From c43307bc804fc0be1792ed769cb14847ee914e38 Mon Sep 17 00:00:00 2001 From: Axios <13862149+AxiosCros@users.noreply.github.com> Date: Wed, 14 Aug 2019 14:34:09 +0800 Subject: [PATCH] Rebuild sdk (#60) * rebuild sdk * fixed ut include Utils.h --- aegis/CMakeLists.txt | 356 +- .../include/alibabacloud/aegis/AegisClient.h | 704 +- .../aegis/model/AddEventProcessRequest.h | 60 + .../aegis/model/AddEventProcessResult.h | 49 + .../model/CopyCustomizeReportConfigRequest.h | 54 + .../model/CopyCustomizeReportConfigResult.h | 49 + .../model/CreateOrUpdateDataSourceRequest.h | 3 + .../aegis/model/CreateScreenSettingRequest.h | 69 + .../aegis/model/CreateScreenSettingResult.h | 51 + .../aegis/model/CreateSuspEventNoteRequest.h | 54 + .../aegis/model/CreateSuspEventNoteResult.h | 53 + .../model/DeleteCustomizeReportRequest.h | 54 + .../aegis/model/DeleteCustomizeReportResult.h | 49 + .../aegis/model/DeleteScreenSettingRequest.h | 6 +- .../aegis/model/DeleteScreenSettingResult.h | 2 + .../aegis/model/DeleteSuspEventNodeRequest.h | 51 + .../aegis/model/DeleteSuspEventNodeResult.h | 53 + .../DescribeAccessKeyLeakDetailRequest.h | 51 + .../model/DescribeAccessKeyLeakDetailResult.h | 87 + .../model/DescribeAccesskeyLeakListRequest.h | 63 + .../model/DescribeAccesskeyLeakListResult.h | 74 + .../model/DescribeAccesskeyRunInfoRequest.h | 48 + .../model/DescribeAccesskeyRunInfoResult.h | 51 + .../model/DescribeAgentInstallStatusResult.h | 1 + .../model/DescribeAlarmEventDetailResult.h | 2 + .../model/DescribeAlarmEventListRequest.h | 6 + .../model/DescribeAlarmEventListResult.h | 2 + .../DescribeAllRegionsStatisticsRequest.h | 3 + .../aegis/model/DescribeAssetListRequest.h | 3 + .../aegis/model/DescribeAssetListResult.h | 1 + .../DescribeBizStatSimpleQueryResultRequest.h | 60 + .../DescribeBizStatSimpleQueryResultResult.h | 60 + .../aegis/model/DescribeChartDataRequest.h | 63 + .../aegis/model/DescribeChartDataResult.h | 85 + .../aegis/model/DescribeChartListRequest.h | 54 + .../aegis/model/DescribeChartListResult.h | 59 + .../model/DescribeCheckWarningCountRequest.h | 60 + .../model/DescribeCheckWarningCountResult.h | 51 + .../aegis/model/DescribeCheckWarningsResult.h | 1 + .../DescribeCustomizeReportChartDataRequest.h | 57 + .../DescribeCustomizeReportChartDataResult.h | 70 + .../DescribeCustomizeReportChartListRequest.h | 51 + .../DescribeCustomizeReportChartListResult.h | 57 + ...scribeCustomizeReportConfigDetailRequest.h | 54 + ...escribeCustomizeReportConfigDetailResult.h | 73 + .../DescribeCustomizeReportListRequest.h | 60 + .../model/DescribeCustomizeReportListResult.h | 59 + .../aegis/model/DescribeDataSourceRequest.h | 12 +- .../aegis/model/DescribeDataSourceResult.h | 1 + .../aegis/model/DescribeDingTalkResult.h | 6 +- .../aegis/model/DescribeEmgVulGroupResult.h | 1 + .../aegis/model/DescribeEntityListRequest.h | 90 + .../aegis/model/DescribeEntityListResult.h | 71 + .../aegis/model/DescribeGrayFuncRequest.h | 51 + .../aegis/model/DescribeGrayFuncResult.h | 51 + .../aegis/model/DescribeGroupedVulRequest.h | 6 + .../aegis/model/DescribeGroupedVulResult.h | 1 + .../model/DescribeHostStatisticsRequest.h | 51 + .../model/DescribeHostStatisticsResult.h | 58 + .../aegis/model/DescribeJoinRuleListResult.h | 6 +- .../model/DescribeLatestActionsRequest.h | 60 + .../aegis/model/DescribeLatestActionsResult.h | 51 + .../aegis/model/DescribeResultListResult.h | 6 +- .../model/DescribeSasAssetStatisticsRequest.h | 3 + .../model/DescribeSasLeftConditionRequest.h | 3 + ...ibeScreenBizStatSimpleQueryResultRequest.h | 63 + ...ribeScreenBizStatSimpleQueryResultResult.h | 60 + .../DescribeScreenCityMonitorDataRequest.h | 54 + .../DescribeScreenCityMonitorDataResult.h | 59 + .../model/DescribeScreenCloudHcRiskRequest.h | 48 + .../model/DescribeScreenCloudHcRiskResult.h | 60 + .../model/DescribeScreenDataMapRequest.h | 48 + .../aegis/model/DescribeScreenDataMapResult.h | 71 + .../model/DescribeScreenEmerRiskRequest.h | 48 + .../model/DescribeScreenEmerRiskResult.h | 59 + .../DescribeScreenFlowRequestCountRequest.h | 48 + .../DescribeScreenFlowRequestCountResult.h | 55 + .../DescribeScreenHostStatisticsResult.h | 1 + .../model/DescribeScreenOperateInfoRequest.h | 3 + .../model/DescribeScreenOperateInfoResult.h | 2 + .../DescribeScreenOssUploadInfoRequest.h | 48 + .../model/DescribeScreenOssUploadInfoResult.h | 63 + .../DescribeScreenRequestTopTypeRequest.h | 51 + .../DescribeScreenRequestTopTypeResult.h | 60 + .../model/DescribeScreenSettingRequest.h | 6 +- .../aegis/model/DescribeScreenSettingResult.h | 23 +- .../aegis/model/DescribeScreenTitlesRequest.h | 48 + .../aegis/model/DescribeScreenTitlesResult.h | 58 + .../DescribeScreenTopRequestAndFlowRequest.h | 48 + .../DescribeScreenTopRequestAndFlowResult.h | 62 + .../aegis/model/DescribeStatisticsRequest.h | 3 + .../model/DescribeStrategyExecDetailResult.h | 1 + .../model/DescribeSupervisonInfoRequest.h | 51 + .../model/DescribeSupervisonInfoResult.h | 55 + .../model/DescribeSuspEventDetailResult.h | 12 + .../model/DescribeTopRiskyAssetsRequest.h | 3 + .../model/DescribeTraceInfoDetailRequest.h | 3 + .../model/DescribeTraceInfoDetailResult.h | 10 + .../model/DescribeTraceInfoNodeListRequest.h | 3 + .../model/DescribeTraceInfoNodeRequest.h | 3 + .../aegis/model/DescribeVersionConfigResult.h | 2 + .../model/DescribeVulLevelStatisticsRequest.h | 6 + .../model/DescribeVulLevelStatisticsResult.h | 1 + .../aegis/model/DescribeVulListRequest.h | 9 + .../aegis/model/DescribeVulListResult.h | 49 +- .../model/DescribeVulMachineListRequest.h | 6 + .../model/DescribeVulNumStatisticsRequest.h | 6 + .../model/DescribeVulNumStatisticsResult.h | 4 + .../model/DescribeVulRelatedProcessRequest.h | 54 + .../model/DescribeVulRelatedProcessResult.h | 63 + .../model/DescribeVulStatisticsRequest.h | 72 + .../aegis/model/DescribeVulStatisticsResult.h | 51 + .../model/DescribeWebLockBindListResult.h | 1 + .../model/DescribeWebLockConfigListResult.h | 3 + .../aegis/model/DescribeWebLockEventsResult.h | 11 +- .../aegis/model/DescribeWebLockStatusResult.h | 2 + .../aegis/model/DescribeWebshellListRequest.h | 69 + .../aegis/model/DescribeWebshellListResult.h | 73 + .../aegis/model/ExportVulRequest.h | 33 +- .../model/IgnoreHcCheckWarningsRequest.h | 3 + .../model/ModifyAccessKeyLeakDealRequest.h | 57 + .../model/ModifyAccessKeyLeakDealResult.h | 49 + .../model/ModifyAccessKeyLeakInstRunRequest.h | 48 + .../model/ModifyAccessKeyLeakInstRunResult.h | 49 + .../model/ModifyRefreshProcessInfoRequest.h | 51 + .../model/ModifyRefreshProcessInfoResult.h | 49 + .../model/ModifyWebLockCreateConfigRequest.h | 9 + .../model/ModifyWebLockUpdateConfigRequest.h | 9 + .../OperationCustomizeReportChartRequest.h | 57 + .../OperationCustomizeReportChartResult.h | 49 + .../model/SaveCustomizeReportConfigRequest.h | 81 + .../model/SaveCustomizeReportConfigResult.h | 51 + .../aegis/model/SendCustomizeReportRequest.h | 54 + .../aegis/model/SendCustomizeReportResult.h | 49 + .../UpdateCustomizeReportStatusRequest.h | 57 + .../model/UpdateCustomizeReportStatusResult.h | 49 + aegis/src/AegisClient.cc | 2796 +++- aegis/src/model/AddEventProcessRequest.cc | 82 + aegis/src/model/AddEventProcessResult.cc | 48 + aegis/src/model/AutoUpgradeSasResult.cc | 9 +- .../AutoUpgradeToSasAdvancedVersionResult.cc | 9 +- aegis/src/model/BatchDeleteWhiteListResult.cc | 9 +- aegis/src/model/CanTrySasResult.cc | 9 +- .../model/CopyCustomizeReportConfigRequest.cc | 60 + .../model/CopyCustomizeReportConfigResult.cc | 48 + aegis/src/model/CreatScreenSettingResult.cc | 9 +- aegis/src/model/CreateInstanceResult.cc | 9 +- aegis/src/model/CreateLogQueryResult.cc | 9 +- .../model/CreateOrUpdateDataSourceRequest.cc | 11 + .../model/CreateOrUpdateDataSourceResult.cc | 9 +- .../src/model/CreateOrUpdateDingTalkResult.cc | 9 +- aegis/src/model/CreateOrUpdateGroupResult.cc | 9 +- .../src/model/CreateOrUpdateJoinRuleResult.cc | 9 +- aegis/src/model/CreateOrUpdateRuleResult.cc | 9 +- aegis/src/model/CreateScreenSettingRequest.cc | 115 + aegis/src/model/CreateScreenSettingResult.cc | 55 + aegis/src/model/CreateSuspEventNoteRequest.cc | 60 + aegis/src/model/CreateSuspEventNoteResult.cc | 62 + .../src/model/CreateSuspiciousExportResult.cc | 9 +- aegis/src/model/CreateUserSettingResult.cc | 9 +- aegis/src/model/CreateUserWhiteListResult.cc | 9 +- aegis/src/model/CreateVulWhitelistResult.cc | 9 +- .../src/model/DeleteCustomizeReportRequest.cc | 60 + .../src/model/DeleteCustomizeReportResult.cc | 48 + aegis/src/model/DeleteDingTalkResult.cc | 9 +- aegis/src/model/DeleteJoinRuleResult.cc | 9 +- aegis/src/model/DeleteLogQueryResult.cc | 9 +- aegis/src/model/DeleteRuleGroupResult.cc | 9 +- aegis/src/model/DeleteRuleResult.cc | 9 +- aegis/src/model/DeleteScreenSettingRequest.cc | 10 +- aegis/src/model/DeleteScreenSettingResult.cc | 16 +- .../src/model/DeleteSearchConditionResult.cc | 9 +- aegis/src/model/DeleteStrategyResult.cc | 9 +- aegis/src/model/DeleteSuspEventNodeRequest.cc | 49 + aegis/src/model/DeleteSuspEventNodeResult.cc | 62 + aegis/src/model/DeleteVulBatchResult.cc | 9 +- aegis/src/model/DeleteVulWhitelistResult.cc | 9 +- .../DescribeAccessKeyLeakDetailRequest.cc | 49 + .../DescribeAccessKeyLeakDetailResult.cc | 181 + .../model/DescribeAccesskeyLeakListRequest.cc | 93 + .../model/DescribeAccesskeyLeakListResult.cc | 114 + .../model/DescribeAccesskeyRunInfoRequest.cc | 38 + .../model/DescribeAccesskeyRunInfoResult.cc | 55 + .../model/DescribeAgentInstallStatusResult.cc | 11 +- .../model/DescribeAlarmEventDetailResult.cc | 13 +- .../model/DescribeAlarmEventListRequest.cc | 23 + .../src/model/DescribeAlarmEventListResult.cc | 13 +- .../DescribeAllRegionsStatisticsRequest.cc | 11 + .../DescribeAllRegionsStatisticsResult.cc | 9 +- .../src/model/DescribeAnalysisCurveResult.cc | 9 +- .../model/DescribeAnalysisHistogramsResult.cc | 9 +- aegis/src/model/DescribeAnalysisLogsResult.cc | 9 +- .../DescribeAnalysisShipperStatusResult.cc | 9 +- .../model/DescribeAnalysisSlsIndexResult.cc | 9 +- .../model/DescribeAnalysisStatisticsResult.cc | 9 +- .../src/model/DescribeApiBuySummaryResult.cc | 9 +- .../model/DescribeAssetDetailByUuidResult.cc | 9 +- aegis/src/model/DescribeAssetListRequest.cc | 11 + aegis/src/model/DescribeAssetListResult.cc | 11 +- aegis/src/model/DescribeAssetSummaryResult.cc | 9 +- .../model/DescribeAttackAnalysisDataResult.cc | 9 +- .../src/model/DescribeAutoDelConfigResult.cc | 9 +- ...DescribeBizStatSimpleQueryResultRequest.cc | 82 + .../DescribeBizStatSimpleQueryResultResult.cc | 79 + aegis/src/model/DescribeBuySummaryResult.cc | 9 +- aegis/src/model/DescribeCanTrySasResult.cc | 9 +- .../src/model/DescribeCanUpgradeSasResult.cc | 9 +- aegis/src/model/DescribeChartDataRequest.cc | 93 + aegis/src/model/DescribeChartDataResult.cc | 119 + aegis/src/model/DescribeChartListRequest.cc | 60 + aegis/src/model/DescribeChartListResult.cc | 69 + .../model/DescribeCheckWarningCountRequest.cc | 82 + .../model/DescribeCheckWarningCountResult.cc | 55 + .../model/DescribeCheckWarningDetailResult.cc | 9 +- .../DescribeCheckWarningSummaryResult.cc | 9 +- .../src/model/DescribeCheckWarningsResult.cc | 11 +- .../model/DescribeConcernNecessityResult.cc | 9 +- ...DescribeCustomizeReportChartDataRequest.cc | 71 + .../DescribeCustomizeReportChartDataResult.cc | 87 + ...DescribeCustomizeReportChartListRequest.cc | 49 + .../DescribeCustomizeReportChartListResult.cc | 65 + ...cribeCustomizeReportConfigDetailRequest.cc | 60 + ...scribeCustomizeReportConfigDetailResult.cc | 132 + .../DescribeCustomizeReportListRequest.cc | 82 + .../DescribeCustomizeReportListResult.cc | 69 + aegis/src/model/DescribeDataSourceRequest.cc | 44 +- aegis/src/model/DescribeDataSourceResult.cc | 11 +- .../src/model/DescribeDefenceThreadResult.cc | 9 +- aegis/src/model/DescribeDingTalkResult.cc | 15 +- aegis/src/model/DescribeEcsStsStatusResult.cc | 9 +- aegis/src/model/DescribeEmgNoticeResult.cc | 9 +- .../model/DescribeEmgUserAgreementResult.cc | 9 +- aegis/src/model/DescribeEmgVulGroupResult.cc | 11 +- aegis/src/model/DescribeEntityListRequest.cc | 192 + aegis/src/model/DescribeEntityListResult.cc | 102 + .../model/DescribeEventCountCurveResult.cc | 9 +- .../model/DescribeEventLevelCountResult.cc | 9 +- aegis/src/model/DescribeExportInfoResult.cc | 9 +- aegis/src/model/DescribeFilterFieldsResult.cc | 9 +- aegis/src/model/DescribeGrayFuncRequest.cc | 49 + aegis/src/model/DescribeGrayFuncResult.cc | 55 + aegis/src/model/DescribeGroupListResult.cc | 9 +- aegis/src/model/DescribeGroupStructResult.cc | 9 +- aegis/src/model/DescribeGroupedVulRequest.cc | 22 + aegis/src/model/DescribeGroupedVulResult.cc | 11 +- aegis/src/model/DescribeHistogramResult.cc | 9 +- .../model/DescribeHostStatisticsRequest.cc | 49 + .../src/model/DescribeHostStatisticsResult.cc | 66 + .../model/DescribeInstanceStatisticsResult.cc | 9 +- aegis/src/model/DescribeJoinRuleListResult.cc | 15 +- .../src/model/DescribeLatestActionsRequest.cc | 82 + .../src/model/DescribeLatestActionsResult.cc | 55 + .../DescribeListAccessKeyIdAuthResult.cc | 9 +- aegis/src/model/DescribeLogInfoResult.cc | 9 +- aegis/src/model/DescribeLogItemsResult.cc | 9 +- aegis/src/model/DescribeLogMetaResult.cc | 9 +- aegis/src/model/DescribeLogQueryResult.cc | 9 +- .../model/DescribeLogShipperStatusResult.cc | 9 +- aegis/src/model/DescribeLoginLogsResult.cc | 9 +- .../model/DescribeLogstoreStorageResult.cc | 9 +- aegis/src/model/DescribeMacConfigResult.cc | 9 +- .../src/model/DescribeMachineConfigResult.cc | 9 +- aegis/src/model/DescribeMetaDataResult.cc | 9 +- .../model/DescribeNsasSuspEventTypeResult.cc | 9 +- aegis/src/model/DescribeOperateInfoResult.cc | 9 +- aegis/src/model/DescribeQuaraFileResult.cc | 9 +- aegis/src/model/DescribeResultListResult.cc | 15 +- aegis/src/model/DescribeRiskTypeResult.cc | 9 +- .../src/model/DescribeRiskWhiteListResult.cc | 9 +- aegis/src/model/DescribeRisksResult.cc | 9 +- aegis/src/model/DescribeRuleListResult.cc | 9 +- .../DescribeSasAssetStatisticsColumnResult.cc | 9 +- .../DescribeSasAssetStatisticsRequest.cc | 11 + .../model/DescribeSasAssetStatisticsResult.cc | 9 +- .../model/DescribeSasLeftConditionRequest.cc | 11 + .../model/DescribeSasLeftConditionResult.cc | 9 +- .../DescribeScreenAlarmEventListResult.cc | 9 +- .../DescribeScreenAttackAnalysisDataResult.cc | 9 +- ...beScreenBizStatSimpleQueryResultRequest.cc | 93 + ...ibeScreenBizStatSimpleQueryResultResult.cc | 79 + .../DescribeScreenCityMonitorDataRequest.cc | 60 + .../DescribeScreenCityMonitorDataResult.cc | 72 + .../model/DescribeScreenCloudHcRiskRequest.cc | 38 + .../model/DescribeScreenCloudHcRiskResult.cc | 74 + .../src/model/DescribeScreenDataMapRequest.cc | 38 + .../src/model/DescribeScreenDataMapResult.cc | 92 + .../model/DescribeScreenEmerRiskRequest.cc | 38 + .../src/model/DescribeScreenEmerRiskResult.cc | 72 + .../DescribeScreenFlowRequestCountRequest.cc | 38 + .../DescribeScreenFlowRequestCountResult.cc | 69 + .../DescribeScreenHostStatisticsResult.cc | 12 +- .../model/DescribeScreenOperateInfoRequest.cc | 11 + .../model/DescribeScreenOperateInfoResult.cc | 16 +- .../DescribeScreenOssUploadInfoRequest.cc | 38 + .../DescribeScreenOssUploadInfoResult.cc | 97 + .../DescribeScreenRequestTopTypeRequest.cc | 49 + .../DescribeScreenRequestTopTypeResult.cc | 77 + .../model/DescribeScreenScoreThreadResult.cc | 9 +- .../DescribeScreenSecurityStatInfoResult.cc | 9 +- .../src/model/DescribeScreenSettingRequest.cc | 10 +- .../src/model/DescribeScreenSettingResult.cc | 69 +- .../src/model/DescribeScreenSettingsResult.cc | 9 +- .../model/DescribeScreenSummaryInfoResult.cc | 9 +- .../src/model/DescribeScreenTitlesRequest.cc | 38 + aegis/src/model/DescribeScreenTitlesResult.cc | 70 + .../DescribeScreenTopRequestAndFlowRequest.cc | 38 + .../DescribeScreenTopRequestAndFlowResult.cc | 84 + .../DescribeScreenVersionConfigResult.cc | 9 +- .../model/DescribeSearchConditionResult.cc | 9 +- .../model/DescribeSecureSuggestionResult.cc | 9 +- .../model/DescribeSecurityStatInfoResult.cc | 9 +- aegis/src/model/DescribeSlsProjectResult.cc | 9 +- aegis/src/model/DescribeStatisticsRequest.cc | 11 + aegis/src/model/DescribeStatisticsResult.cc | 9 +- .../model/DescribeStrategyExecDetailResult.cc | 11 +- .../model/DescribeStrategyProcessResult.cc | 9 +- .../src/model/DescribeStrategyTargetResult.cc | 9 +- .../src/model/DescribeStratetyDetailResult.cc | 9 +- aegis/src/model/DescribeStratetyResult.cc | 9 +- aegis/src/model/DescribeSummaryInfoResult.cc | 9 +- .../model/DescribeSupervisonInfoRequest.cc | 49 + .../src/model/DescribeSupervisonInfoResult.cc | 69 + .../model/DescribeSuspEventDetailResult.cc | 40 +- .../DescribeSuspEventExportInfoResult.cc | 9 +- .../DescribeSuspEventQuaraFilesResult.cc | 9 +- .../src/model/DescribeSuspEventTypesResult.cc | 9 +- .../DescribeSuspEventUserSettingResult.cc | 9 +- aegis/src/model/DescribeSuspEventsResult.cc | 9 +- .../DescribeSuspTrendStatisticsResult.cc | 9 +- .../model/DescribeSuspiciousEventsResult.cc | 9 +- .../DescribeSuspiciousExportInfoResult.cc | 9 +- .../DescribeSuspiciousOverallConfigResult.cc | 9 +- .../DescribeSuspiciousUUIDConfigResult.cc | 9 +- aegis/src/model/DescribeTargetConfigResult.cc | 9 +- aegis/src/model/DescribeTargetResult.cc | 9 +- .../model/DescribeTopRiskyAssetsRequest.cc | 11 + .../src/model/DescribeTopRiskyAssetsResult.cc | 9 +- aegis/src/model/DescribeTopicListResult.cc | 9 +- .../model/DescribeTotalStatisticsResult.cc | 9 +- .../model/DescribeTraceInfoDetailRequest.cc | 11 + .../model/DescribeTraceInfoDetailResult.cc | 27 +- .../model/DescribeTraceInfoNodeListRequest.cc | 11 + .../model/DescribeTraceInfoNodeListResult.cc | 9 +- .../src/model/DescribeTraceInfoNodeRequest.cc | 11 + .../src/model/DescribeTraceInfoNodeResult.cc | 9 +- aegis/src/model/DescribeUserSettingResult.cc | 9 +- aegis/src/model/DescribeUuidConfigResult.cc | 9 +- .../src/model/DescribeVersionConfigResult.cc | 16 +- aegis/src/model/DescribeVulBatchResult.cc | 9 +- aegis/src/model/DescribeVulConfigResult.cc | 9 +- aegis/src/model/DescribeVulDetailsResult.cc | 9 +- .../src/model/DescribeVulExportInfoResult.cc | 9 +- aegis/src/model/DescribeVulLevelResult.cc | 9 +- .../DescribeVulLevelStatisticsRequest.cc | 22 + .../model/DescribeVulLevelStatisticsResult.cc | 11 +- aegis/src/model/DescribeVulListRequest.cc | 33 + aegis/src/model/DescribeVulListResult.cc | 91 +- .../model/DescribeVulMachineListRequest.cc | 22 + .../src/model/DescribeVulMachineListResult.cc | 9 +- .../model/DescribeVulNumStatisticsRequest.cc | 22 + .../model/DescribeVulNumStatisticsResult.cc | 23 +- .../model/DescribeVulRelatedProcessRequest.cc | 60 + .../model/DescribeVulRelatedProcessResult.cc | 83 + .../src/model/DescribeVulStatisticsRequest.cc | 126 + .../src/model/DescribeVulStatisticsResult.cc | 55 + .../DescribeVulTargetStatisticsResult.cc | 9 +- aegis/src/model/DescribeVulWhitelistResult.cc | 9 +- .../DescribeVulnerabilitySummaryResult.cc | 9 +- .../model/DescribeWarningMachinesResult.cc | 9 +- aegis/src/model/DescribeWarningResult.cc | 9 +- .../model/DescribeWebLockBindListResult.cc | 11 +- .../model/DescribeWebLockConfigListResult.cc | 15 +- .../src/model/DescribeWebLockEventsResult.cc | 11 +- .../model/DescribeWebLockMachineListResult.cc | 9 +- .../src/model/DescribeWebLockStatusResult.cc | 16 +- .../src/model/DescribeWebshellListRequest.cc | 115 + aegis/src/model/DescribeWebshellListResult.cc | 109 + aegis/src/model/DescribeWebshellResult.cc | 9 +- .../src/model/DescribeWhiteListAssetResult.cc | 9 +- .../model/DescribeWhiteListAuthorizeResult.cc | 9 +- .../DescribeWhiteListEffectiveAssetsResult.cc | 9 +- .../model/DescribeWhiteListProcessResult.cc | 9 +- .../DescribeWhiteListStrategyCountResult.cc | 9 +- .../DescribeWhiteListStrategyListResult.cc | 9 +- ...scribeWhiteListStrategyStatisticsResult.cc | 9 +- ...escribeWhiteListStrategyUuidCountResult.cc | 9 +- .../DescribeYesterdayStatisticsResult.cc | 9 +- aegis/src/model/DescribesummaryResult.cc | 9 +- aegis/src/model/DownloadLogResult.cc | 9 +- aegis/src/model/ExecStrategyResult.cc | 9 +- .../ExecuteRuleEngineActualTimeResult.cc | 9 +- aegis/src/model/ExportSuspEventsResult.cc | 9 +- aegis/src/model/ExportVulRequest.cc | 109 +- aegis/src/model/ExportVulResult.cc | 9 +- aegis/src/model/ExportWarningResult.cc | 9 +- aegis/src/model/GetAccountStatisticsResult.cc | 9 +- aegis/src/model/GetCrackStatisticsResult.cc | 9 +- aegis/src/model/GetEntityListResult.cc | 9 +- aegis/src/model/GetStatisticsByUuidResult.cc | 9 +- aegis/src/model/GetStatisticsResult.cc | 9 +- .../src/model/IgnoreHcCheckWarningsRequest.cc | 11 + .../src/model/IgnoreHcCheckWarningsResult.cc | 9 +- .../model/ModifyAccessKeyLeakDealRequest.cc | 71 + .../model/ModifyAccessKeyLeakDealResult.cc | 48 + .../ModifyAccessKeyLeakInstRunRequest.cc | 38 + .../model/ModifyAccessKeyLeakInstRunResult.cc | 48 + aegis/src/model/ModifyAssetGroupResult.cc | 9 +- aegis/src/model/ModifyAutoDelConfigResult.cc | 9 +- aegis/src/model/ModifyBatchIgnoreVulResult.cc | 9 +- .../model/ModifyClearLogstoreStorageResult.cc | 9 +- .../src/model/ModifyConcernNecessityResult.cc | 9 +- aegis/src/model/ModifyEmgVulSubmitResult.cc | 9 +- aegis/src/model/ModifyLogMetaStatusResult.cc | 9 +- aegis/src/model/ModifyMachineConfigResult.cc | 9 +- aegis/src/model/ModifyOpenLogShipperResult.cc | 9 +- .../model/ModifyRefreshProcessInfoRequest.cc | 49 + .../model/ModifyRefreshProcessInfoResult.cc | 48 + .../ModifySasAssetStatisticsColumnResult.cc | 9 +- aegis/src/model/ModifySaveVulBatchResult.cc | 9 +- aegis/src/model/ModifyScreenSettingResult.cc | 9 +- .../src/model/ModifySearchConditionResult.cc | 9 +- aegis/src/model/ModifyStrategyResult.cc | 9 +- aegis/src/model/ModifyStrategyTargetResult.cc | 9 +- aegis/src/model/ModifyTargetConfigResult.cc | 9 +- aegis/src/model/ModifyVulConfigResult.cc | 9 +- aegis/src/model/ModifyVulLevelResult.cc | 9 +- aegis/src/model/ModifyVulTargetResult.cc | 9 +- .../model/ModifyWebLockCreateConfigRequest.cc | 33 + .../model/ModifyWebLockCreateConfigResult.cc | 9 +- .../model/ModifyWebLockDeleteConfigResult.cc | 9 +- .../model/ModifyWebLockMachineListResult.cc | 9 +- .../model/ModifyWebLockOperateEventsResult.cc | 9 +- aegis/src/model/ModifyWebLockRefreshResult.cc | 9 +- aegis/src/model/ModifyWebLockStatusResult.cc | 9 +- .../model/ModifyWebLockUpdateConfigRequest.cc | 33 + .../model/ModifyWebLockUpdateConfigResult.cc | 9 +- aegis/src/model/OpenSasTrialResult.cc | 9 +- .../model/OperateAgentClientInstallResult.cc | 9 +- aegis/src/model/OperateResultResult.cc | 9 +- .../src/model/OperateSuspiciousEventResult.cc | 9 +- .../OperateSuspiciousOverallConfigResult.cc | 9 +- .../OperateSuspiciousTargetConfigResult.cc | 9 +- aegis/src/model/OperateVulResult.cc | 9 +- aegis/src/model/OperateWarningResult.cc | 9 +- .../OperationCustomizeReportChartRequest.cc | 71 + .../OperationCustomizeReportChartResult.cc | 48 + aegis/src/model/OperationSuspEventsResult.cc | 9 +- aegis/src/model/QueryCrackEventResult.cc | 9 +- aegis/src/model/QueryLoginEventResult.cc | 9 +- aegis/src/model/ReleaseInstanceResult.cc | 9 +- aegis/src/model/RenewInstanceResult.cc | 9 +- aegis/src/model/RollbackQuaraFileResult.cc | 9 +- .../model/RollbackSuspEventQuaraFileResult.cc | 9 +- .../model/SaveCustomizeReportConfigRequest.cc | 159 + .../model/SaveCustomizeReportConfigResult.cc | 55 + .../model/SaveSuspEventUserSettingResult.cc | 9 +- .../SaveWhiteListStrategyAssetsResult.cc | 9 +- .../src/model/SaveWhiteListStrategyResult.cc | 9 +- aegis/src/model/SendCustomizeReportRequest.cc | 60 + aegis/src/model/SendCustomizeReportResult.cc | 48 + aegis/src/model/SetDatasourceStatusResult.cc | 9 +- aegis/src/model/TransformLeakageResult.cc | 9 +- .../UpdateCustomizeReportStatusRequest.cc | 71 + .../UpdateCustomizeReportStatusResult.cc | 48 + .../UpdateWhiteListProcessStatusResult.cc | 9 +- .../UpdateWhiteListStrategyRelationResult.cc | 9 +- .../UpdateWhiteListStrategyStatusResult.cc | 9 +- aegis/src/model/UpgradeInstanceResult.cc | 9 +- aegis/src/model/ValidateHcWarningsResult.cc | 9 +- afs/CMakeLists.txt | 8 +- afs/include/alibabacloud/afs/AfsClient.h | 16 +- afs/src/AfsClient.cc | 72 +- afs/src/model/AnalyzeNvcRequest.cc | 6 +- afs/src/model/AnalyzeNvcResult.cc | 9 +- afs/src/model/AuthenticateSigRequest.cc | 14 +- afs/src/model/AuthenticateSigResult.cc | 9 +- afs/src/model/ConfigurationStyleRequest.cc | 10 +- afs/src/model/ConfigurationStyleResult.cc | 9 +- afs/src/model/CreateConfigurationRequest.cc | 12 +- afs/src/model/CreateConfigurationResult.cc | 9 +- afs/src/model/DescribeCaptchaDayRequest.cc | 10 +- afs/src/model/DescribeCaptchaDayResult.cc | 9 +- afs/src/model/DescribeCaptchaIpCityRequest.cc | 10 +- afs/src/model/DescribeCaptchaIpCityResult.cc | 9 +- afs/src/model/DescribeCaptchaMinRequest.cc | 10 +- afs/src/model/DescribeCaptchaMinResult.cc | 9 +- afs/src/model/DescribeCaptchaOrderRequest.cc | 4 +- afs/src/model/DescribeCaptchaOrderResult.cc | 9 +- afs/src/model/DescribeCaptchaRiskRequest.cc | 8 +- afs/src/model/DescribeCaptchaRiskResult.cc | 9 +- afs/src/model/DescribeConfigNameRequest.cc | 2 +- afs/src/model/DescribeConfigNameResult.cc | 9 +- afs/src/model/DescribeEarlyWarningRequest.cc | 2 +- afs/src/model/DescribeEarlyWarningResult.cc | 9 +- afs/src/model/DescribeOrderInfoRequest.cc | 2 +- afs/src/model/DescribeOrderInfoResult.cc | 9 +- .../model/DescribePersonMachineListRequest.cc | 2 +- .../model/DescribePersonMachineListResult.cc | 9 +- afs/src/model/SetEarlyWarningRequest.cc | 16 +- afs/src/model/SetEarlyWarningResult.cc | 9 +- afs/src/model/UpdateConfigNameRequest.cc | 8 +- afs/src/model/UpdateConfigNameResult.cc | 9 +- alidns/CMakeLists.txt | 52 +- .../alibabacloud/alidns/AlidnsClient.h | 104 +- .../alidns/model/AddDomainGroupRequest.h | 3 - .../alidns/model/AddDomainRequest.h | 6 + .../alidns/model/ChangeDomainGroupRequest.h | 3 - .../alidns/model/DeleteDomainGroupRequest.h | 3 - .../model/DescribeBatchResultDetailResult.h | 4 +- .../model/DescribeDomainGroupsRequest.h | 3 - .../alidns/model/DescribeDomainLogsResult.h | 1 + .../model/DescribeDomainRecordsRequest.h | 9 + .../model/DescribeDomainStatisticsRequest.h | 60 + .../model/DescribeDomainStatisticsResult.h | 56 + .../DescribeDomainStatisticsSummaryRequest.h | 78 + .../DescribeDomainStatisticsSummaryResult.h | 64 + .../alidns/model/DescribeDomainsRequest.h | 3 + .../alidns/model/DescribeGtmInstanceResult.h | 18 +- .../DescribeGtmInstanceSystemCnameRequest.h | 54 + .../DescribeGtmInstanceSystemCnameResult.h | 51 + .../model/DescribeGtmInstancesRequest.h | 3 + .../alidns/model/DescribeGtmInstancesResult.h | 9 +- .../model/DescribeRecordStatisticsRequest.h | 63 + .../model/DescribeRecordStatisticsResult.h | 56 + .../DescribeRecordStatisticsSummaryRequest.h | 81 + .../DescribeRecordStatisticsSummaryResult.h | 64 + .../model/DescribeSubDomainRecordsRequest.h | 3 + .../alidns/model/OperateBatchDomainRequest.h | 3 + .../alidns/model/SetDNSSLBStatusRequest.h | 3 + .../alidns/model/UpdateDomainGroupRequest.h | 3 - .../UpdateGtmInstanceGlobalConfigRequest.h | 6 + alidns/src/AlidnsClient.cc | 468 +- alidns/src/model/AddDomainGroupRequest.cc | 17 +- alidns/src/model/AddDomainGroupResult.cc | 9 +- alidns/src/model/AddDomainRecordRequest.cc | 20 +- alidns/src/model/AddDomainRecordResult.cc | 9 +- alidns/src/model/AddDomainRequest.cc | 30 +- alidns/src/model/AddDomainResult.cc | 9 +- .../src/model/AddGtmAccessStrategyRequest.cc | 14 +- .../src/model/AddGtmAccessStrategyResult.cc | 9 +- alidns/src/model/AddGtmAddressPoolRequest.cc | 18 +- alidns/src/model/AddGtmAddressPoolResult.cc | 9 +- alidns/src/model/AddGtmMonitorRequest.cc | 22 +- alidns/src/model/AddGtmMonitorResult.cc | 9 +- alidns/src/model/ChangeDomainGroupRequest.cc | 19 +- alidns/src/model/ChangeDomainGroupResult.cc | 9 +- .../model/ChangeDomainOfDnsProductRequest.cc | 12 +- .../model/ChangeDomainOfDnsProductResult.cc | 9 +- alidns/src/model/CheckDomainRecordRequest.cc | 14 +- alidns/src/model/CheckDomainRecordResult.cc | 9 +- alidns/src/model/CreateInstanceRequest.cc | 16 +- alidns/src/model/CreateInstanceResult.cc | 9 +- alidns/src/model/DeleteDomainGroupRequest.cc | 17 +- alidns/src/model/DeleteDomainGroupResult.cc | 9 +- alidns/src/model/DeleteDomainRecordRequest.cc | 8 +- alidns/src/model/DeleteDomainRecordResult.cc | 9 +- alidns/src/model/DeleteDomainRequest.cc | 8 +- alidns/src/model/DeleteDomainResult.cc | 9 +- .../model/DeleteGtmAccessStrategyRequest.cc | 6 +- .../model/DeleteGtmAccessStrategyResult.cc | 9 +- .../src/model/DeleteGtmAddressPoolRequest.cc | 6 +- .../src/model/DeleteGtmAddressPoolResult.cc | 9 +- .../model/DeleteSubDomainRecordsRequest.cc | 12 +- .../src/model/DeleteSubDomainRecordsResult.cc | 9 +- .../model/DescribeBatchResultCountRequest.cc | 8 +- .../model/DescribeBatchResultCountResult.cc | 9 +- .../model/DescribeBatchResultDetailRequest.cc | 12 +- .../model/DescribeBatchResultDetailResult.cc | 13 +- .../model/DescribeDNSSLBSubDomainsRequest.cc | 12 +- .../model/DescribeDNSSLBSubDomainsResult.cc | 9 +- .../DescribeDnsProductInstanceRequest.cc | 8 +- .../model/DescribeDnsProductInstanceResult.cc | 9 +- .../DescribeDnsProductInstancesRequest.cc | 12 +- .../DescribeDnsProductInstancesResult.cc | 9 +- .../src/model/DescribeDomainGroupsRequest.cc | 21 +- .../src/model/DescribeDomainGroupsResult.cc | 9 +- alidns/src/model/DescribeDomainInfoRequest.cc | 10 +- alidns/src/model/DescribeDomainInfoResult.cc | 9 +- alidns/src/model/DescribeDomainLogsRequest.cc | 18 +- alidns/src/model/DescribeDomainLogsResult.cc | 11 +- alidns/src/model/DescribeDomainNsRequest.cc | 8 +- alidns/src/model/DescribeDomainNsResult.cc | 9 +- .../model/DescribeDomainRecordInfoRequest.cc | 8 +- .../model/DescribeDomainRecordInfoResult.cc | 9 +- .../src/model/DescribeDomainRecordsRequest.cc | 59 +- .../src/model/DescribeDomainRecordsResult.cc | 9 +- .../model/DescribeDomainStatisticsRequest.cc | 82 + .../model/DescribeDomainStatisticsResult.cc | 63 + .../DescribeDomainStatisticsSummaryRequest.cc | 148 + .../DescribeDomainStatisticsSummaryResult.cc | 91 + alidns/src/model/DescribeDomainsRequest.cc | 25 +- alidns/src/model/DescribeDomainsResult.cc | 9 +- .../DescribeGtmAccessStrategiesRequest.cc | 10 +- .../DescribeGtmAccessStrategiesResult.cc | 9 +- ...GtmAccessStrategyAvailableConfigRequest.cc | 6 +- ...eGtmAccessStrategyAvailableConfigResult.cc | 9 +- .../model/DescribeGtmAccessStrategyRequest.cc | 6 +- .../model/DescribeGtmAccessStrategyResult.cc | 9 +- .../DescribeGtmAvailableAlertGroupRequest.cc | 4 +- .../DescribeGtmAvailableAlertGroupResult.cc | 9 +- .../DescribeGtmInstanceAddressPoolRequest.cc | 6 +- .../DescribeGtmInstanceAddressPoolResult.cc | 9 +- .../DescribeGtmInstanceAddressPoolsRequest.cc | 10 +- .../DescribeGtmInstanceAddressPoolsResult.cc | 9 +- .../src/model/DescribeGtmInstanceRequest.cc | 6 +- alidns/src/model/DescribeGtmInstanceResult.cc | 50 +- .../model/DescribeGtmInstanceStatusRequest.cc | 6 +- .../model/DescribeGtmInstanceStatusResult.cc | 9 +- .../DescribeGtmInstanceSystemCnameRequest.cc | 60 + .../DescribeGtmInstanceSystemCnameResult.cc | 55 + .../src/model/DescribeGtmInstancesRequest.cc | 21 +- .../src/model/DescribeGtmInstancesResult.cc | 11 +- alidns/src/model/DescribeGtmLogsRequest.cc | 16 +- alidns/src/model/DescribeGtmLogsResult.cc | 9 +- ...escribeGtmMonitorAvailableConfigRequest.cc | 4 +- ...DescribeGtmMonitorAvailableConfigResult.cc | 9 +- .../model/DescribeGtmMonitorConfigRequest.cc | 6 +- .../model/DescribeGtmMonitorConfigResult.cc | 9 +- alidns/src/model/DescribeRecordLogsRequest.cc | 18 +- alidns/src/model/DescribeRecordLogsResult.cc | 9 +- .../model/DescribeRecordStatisticsRequest.cc | 93 + .../model/DescribeRecordStatisticsResult.cc | 63 + .../DescribeRecordStatisticsSummaryRequest.cc | 159 + .../DescribeRecordStatisticsSummaryResult.cc | 91 + .../model/DescribeSubDomainRecordsRequest.cc | 27 +- .../model/DescribeSubDomainRecordsResult.cc | 9 +- .../src/model/DescribeSupportLinesRequest.cc | 8 +- .../src/model/DescribeSupportLinesResult.cc | 9 +- alidns/src/model/GetMainDomainNameRequest.cc | 8 +- alidns/src/model/GetMainDomainNameResult.cc | 9 +- .../model/ModifyHichinaDomainDNSRequest.cc | 8 +- .../src/model/ModifyHichinaDomainDNSResult.cc | 9 +- alidns/src/model/OperateBatchDomainRequest.cc | 23 +- alidns/src/model/OperateBatchDomainResult.cc | 9 +- .../model/QueryCreateInstancePriceRequest.cc | 12 +- .../model/QueryCreateInstancePriceResult.cc | 9 +- alidns/src/model/SetDNSSLBStatusRequest.cc | 21 +- alidns/src/model/SetDNSSLBStatusResult.cc | 9 +- .../src/model/SetDomainRecordStatusRequest.cc | 10 +- .../src/model/SetDomainRecordStatusResult.cc | 9 +- alidns/src/model/SetGtmAccessModeRequest.cc | 8 +- alidns/src/model/SetGtmAccessModeResult.cc | 9 +- .../src/model/SetGtmMonitorStatusRequest.cc | 8 +- alidns/src/model/SetGtmMonitorStatusResult.cc | 9 +- alidns/src/model/UpdateDNSSLBWeightRequest.cc | 10 +- alidns/src/model/UpdateDNSSLBWeightResult.cc | 9 +- alidns/src/model/UpdateDomainGroupRequest.cc | 19 +- alidns/src/model/UpdateDomainGroupResult.cc | 9 +- alidns/src/model/UpdateDomainRecordRequest.cc | 20 +- alidns/src/model/UpdateDomainRecordResult.cc | 9 +- .../model/UpdateGtmAccessStrategyRequest.cc | 14 +- .../model/UpdateGtmAccessStrategyResult.cc | 9 +- .../src/model/UpdateGtmAddressPoolRequest.cc | 18 +- .../src/model/UpdateGtmAddressPoolResult.cc | 9 +- .../UpdateGtmInstanceGlobalConfigRequest.cc | 38 +- .../UpdateGtmInstanceGlobalConfigResult.cc | 9 +- alidns/src/model/UpdateGtmMonitorRequest.cc | 22 +- alidns/src/model/UpdateGtmMonitorResult.cc | 9 +- alimt/src/model/TranslateECommerceRequest.cc | 10 +- alimt/src/model/TranslateECommerceResult.cc | 9 +- alimt/src/model/TranslateGeneralRequest.cc | 10 +- alimt/src/model/TranslateGeneralResult.cc | 9 +- arms/CMakeLists.txt | 248 +- arms/include/alibabacloud/arms/ARMSClient.h | 284 +- arms/include/alibabacloud/arms/ARMSExport.h | 62 +- .../model/CreateAlertContactGroupRequest.h | 88 +- .../model/CreateAlertContactGroupResult.h | 96 +- .../arms/model/CreateAlertContactRequest.h | 88 +- .../arms/model/CreateAlertContactResult.h | 96 +- .../arms/model/CreateRetcodeAppRequest.h | 88 +- .../arms/model/CreateRetcodeAppResult.h | 96 +- .../arms/model/DeleteRetcodeAppRequest.h | 88 +- .../arms/model/DeleteRetcodeAppResult.h | 96 +- .../arms/model/ImportAppAlertRulesRequest.h | 88 +- .../arms/model/ImportAppAlertRulesResult.h | 96 +- .../arms/model/ListRetcodeAppsRequest.h | 88 +- .../arms/model/ListRetcodeAppsResult.h | 96 +- .../arms/model/ListTraceAppsRequest.h | 88 +- .../arms/model/ListTraceAppsResult.h | 96 +- .../arms/model/QueryDatasetRequest.h | 88 +- .../arms/model/QueryDatasetResult.h | 96 +- .../arms/model/QueryMetricRequest.h | 88 +- .../arms/model/QueryMetricResult.h | 96 +- .../model/SearchAlertContactGroupRequest.h | 88 +- .../model/SearchAlertContactGroupResult.h | 96 +- .../arms/model/SearchAlertContactRequest.h | 88 +- .../arms/model/SearchAlertContactResult.h | 96 +- .../model/SearchRetcodeAppByPageRequest.h | 88 +- .../arms/model/SearchRetcodeAppByPageResult.h | 96 +- .../arms/model/SearchTraceAppByNameRequest.h | 88 +- .../arms/model/SearchTraceAppByNameResult.h | 96 +- .../arms/model/SearchTraceAppByPageRequest.h | 88 +- .../arms/model/SearchTraceAppByPageResult.h | 96 +- arms/src/ARMSClient.cc | 1436 +- .../model/CreateAlertContactGroupRequest.cc | 54 +- .../model/CreateAlertContactGroupResult.cc | 93 +- arms/src/model/CreateAlertContactRequest.cc | 54 +- arms/src/model/CreateAlertContactResult.cc | 93 +- arms/src/model/CreateRetcodeAppRequest.cc | 54 +- arms/src/model/CreateRetcodeAppResult.cc | 93 +- arms/src/model/DeleteRetcodeAppRequest.cc | 54 +- arms/src/model/DeleteRetcodeAppResult.cc | 93 +- arms/src/model/ImportAppAlertRulesRequest.cc | 54 +- arms/src/model/ImportAppAlertRulesResult.cc | 93 +- arms/src/model/ListRetcodeAppsRequest.cc | 54 +- arms/src/model/ListRetcodeAppsResult.cc | 93 +- arms/src/model/ListTraceAppsRequest.cc | 54 +- arms/src/model/ListTraceAppsResult.cc | 93 +- arms/src/model/QueryDatasetRequest.cc | 54 +- arms/src/model/QueryDatasetResult.cc | 93 +- arms/src/model/QueryMetricRequest.cc | 54 +- arms/src/model/QueryMetricResult.cc | 93 +- .../model/SearchAlertContactGroupRequest.cc | 54 +- .../model/SearchAlertContactGroupResult.cc | 93 +- arms/src/model/SearchAlertContactRequest.cc | 54 +- arms/src/model/SearchAlertContactResult.cc | 93 +- .../model/SearchRetcodeAppByPageRequest.cc | 54 +- .../src/model/SearchRetcodeAppByPageResult.cc | 93 +- arms/src/model/SearchTraceAppByNameRequest.cc | 54 +- arms/src/model/SearchTraceAppByNameResult.cc | 93 +- arms/src/model/SearchTraceAppByPageRequest.cc | 54 +- arms/src/model/SearchTraceAppByPageResult.cc | 93 +- .../src/model/ARMSQueryDataSetRequest.cc | 18 +- .../src/model/ARMSQueryDataSetResult.cc | 9 +- .../src/model/WhereInDimQueryRequest.cc | 22 +- .../src/model/WhereInDimQueryResult.cc | 9 +- bssopenapi/CMakeLists.txt | 72 +- .../bssopenapi/BssOpenApiClient.h | 764 +- .../bssopenapi/BssOpenApiExport.h | 62 +- .../bssopenapi/model/ApplyInvoiceRequest.h | 88 +- .../bssopenapi/model/ApplyInvoiceResult.h | 96 +- .../bssopenapi/model/CancelOrderRequest.h | 88 +- .../bssopenapi/model/CancelOrderResult.h | 96 +- .../ChangeResellerConsumeAmountRequest.h | 88 +- .../model/ChangeResellerConsumeAmountResult.h | 96 +- .../model/ConvertChargeTypeRequest.h | 88 +- .../model/ConvertChargeTypeResult.h | 96 +- .../bssopenapi/model/CreateAgAccountRequest.h | 88 +- .../bssopenapi/model/CreateAgAccountResult.h | 96 +- .../bssopenapi/model/CreateInstanceRequest.h | 88 +- .../bssopenapi/model/CreateInstanceResult.h | 96 +- .../model/CreateResellerUserQuotaRequest.h | 88 +- .../model/CreateResellerUserQuotaResult.h | 96 +- .../model/CreateResourcePackageRequest.h | 88 +- .../model/CreateResourcePackageResult.h | 96 +- .../model/DescribePricingModuleRequest.h | 88 +- .../model/DescribePricingModuleResult.h | 96 +- .../DescribeResourcePackageProductRequest.h | 88 +- .../DescribeResourcePackageProductResult.h | 96 +- .../model/EnableBillGenerationRequest.h | 88 +- .../model/EnableBillGenerationResult.h | 96 +- .../model/GetCustomerAccountInfoRequest.h | 88 +- .../model/GetCustomerAccountInfoResult.h | 96 +- .../bssopenapi/model/GetCustomerListRequest.h | 88 +- .../bssopenapi/model/GetCustomerListResult.h | 96 +- .../bssopenapi/model/GetOrderDetailRequest.h | 88 +- .../bssopenapi/model/GetOrderDetailResult.h | 96 +- .../model/GetPayAsYouGoPriceRequest.h | 88 +- .../model/GetPayAsYouGoPriceResult.h | 96 +- .../model/GetResourcePackagePriceRequest.h | 88 +- .../model/GetResourcePackagePriceResult.h | 96 +- .../model/GetSubscriptionPriceRequest.h | 88 +- .../model/GetSubscriptionPriceResult.h | 96 +- .../bssopenapi/model/ModifyInstanceRequest.h | 88 +- .../bssopenapi/model/ModifyInstanceResult.h | 96 +- .../model/QueryAccountBalanceRequest.h | 88 +- .../model/QueryAccountBalanceResult.h | 96 +- .../model/QueryAccountTransactionsRequest.h | 88 +- .../model/QueryAccountTransactionsResult.h | 96 +- .../model/QueryAvailableInstancesRequest.h | 88 +- .../model/QueryAvailableInstancesResult.h | 96 +- .../model/QueryBillOverviewRequest.h | 88 +- .../model/QueryBillOverviewResult.h | 96 +- .../bssopenapi/model/QueryBillRequest.h | 88 +- .../bssopenapi/model/QueryBillResult.h | 96 +- .../model/QueryCashCouponsRequest.h | 88 +- .../bssopenapi/model/QueryCashCouponsResult.h | 96 +- .../model/QueryCustomerAddressListRequest.h | 88 +- .../model/QueryCustomerAddressListResult.h | 96 +- .../model/QueryEvaluateListRequest.h | 88 +- .../model/QueryEvaluateListResult.h | 96 +- .../model/QueryInstanceBillRequest.h | 88 +- .../model/QueryInstanceBillResult.h | 96 +- .../model/QueryInstanceGaapCostRequest.h | 88 +- .../model/QueryInstanceGaapCostResult.h | 96 +- .../model/QueryInvoicingCustomerListRequest.h | 88 +- .../model/QueryInvoicingCustomerListResult.h | 96 +- .../model/QueryMonthlyBillRequest.h | 88 +- .../bssopenapi/model/QueryMonthlyBillResult.h | 96 +- .../QueryMonthlyInstanceConsumptionRequest.h | 88 +- .../QueryMonthlyInstanceConsumptionResult.h | 96 +- .../bssopenapi/model/QueryOrdersRequest.h | 88 +- .../bssopenapi/model/QueryOrdersResult.h | 96 +- .../model/QueryPrepaidCardsRequest.h | 88 +- .../model/QueryPrepaidCardsResult.h | 96 +- .../model/QueryProductListRequest.h | 88 +- .../bssopenapi/model/QueryProductListResult.h | 96 +- .../bssopenapi/model/QueryRedeemRequest.h | 88 +- .../bssopenapi/model/QueryRedeemResult.h | 96 +- .../QueryResellerAvailableQuotaRequest.h | 88 +- .../model/QueryResellerAvailableQuotaResult.h | 96 +- .../QueryResourcePackageInstancesRequest.h | 88 +- .../QueryResourcePackageInstancesResult.h | 96 +- .../model/QuerySettlementBillRequest.h | 88 +- .../model/QuerySettlementBillResult.h | 96 +- .../model/QueryUserOmsDataRequest.h | 88 +- .../bssopenapi/model/QueryUserOmsDataResult.h | 96 +- .../bssopenapi/model/RenewInstanceRequest.h | 88 +- .../bssopenapi/model/RenewInstanceResult.h | 96 +- .../bssopenapi/model/SetRenewalRequest.h | 88 +- .../bssopenapi/model/SetRenewalResult.h | 96 +- .../SetResellerUserAlarmThresholdRequest.h | 88 +- .../SetResellerUserAlarmThresholdResult.h | 96 +- .../model/SetResellerUserQuotaRequest.h | 88 +- .../model/SetResellerUserQuotaResult.h | 96 +- .../model/SetResellerUserStatusRequest.h | 88 +- .../model/SetResellerUserStatusResult.h | 96 +- .../model/SubscribeBillToOSSRequest.h | 88 +- .../model/SubscribeBillToOSSResult.h | 96 +- .../model/UnsubscribeBillToOSSRequest.h | 88 +- .../model/UnsubscribeBillToOSSResult.h | 96 +- bssopenapi/src/BssOpenApiClient.cc | 3920 +++-- bssopenapi/src/model/ApplyInvoiceRequest.cc | 54 +- bssopenapi/src/model/ApplyInvoiceResult.cc | 93 +- bssopenapi/src/model/CancelOrderRequest.cc | 54 +- bssopenapi/src/model/CancelOrderResult.cc | 93 +- .../ChangeResellerConsumeAmountRequest.cc | 54 +- .../ChangeResellerConsumeAmountResult.cc | 93 +- .../src/model/ConvertChargeTypeRequest.cc | 54 +- .../src/model/ConvertChargeTypeResult.cc | 93 +- .../src/model/CreateAgAccountRequest.cc | 54 +- bssopenapi/src/model/CreateAgAccountResult.cc | 93 +- bssopenapi/src/model/CreateInstanceRequest.cc | 54 +- bssopenapi/src/model/CreateInstanceResult.cc | 93 +- .../model/CreateResellerUserQuotaRequest.cc | 54 +- .../model/CreateResellerUserQuotaResult.cc | 93 +- .../src/model/CreateResourcePackageRequest.cc | 54 +- .../src/model/CreateResourcePackageResult.cc | 93 +- .../src/model/DescribePricingModuleRequest.cc | 54 +- .../src/model/DescribePricingModuleResult.cc | 93 +- .../DescribeResourcePackageProductRequest.cc | 54 +- .../DescribeResourcePackageProductResult.cc | 93 +- .../src/model/EnableBillGenerationRequest.cc | 54 +- .../src/model/EnableBillGenerationResult.cc | 93 +- .../model/GetCustomerAccountInfoRequest.cc | 54 +- .../src/model/GetCustomerAccountInfoResult.cc | 93 +- .../src/model/GetCustomerListRequest.cc | 54 +- bssopenapi/src/model/GetCustomerListResult.cc | 93 +- bssopenapi/src/model/GetOrderDetailRequest.cc | 54 +- bssopenapi/src/model/GetOrderDetailResult.cc | 93 +- .../src/model/GetPayAsYouGoPriceRequest.cc | 54 +- .../src/model/GetPayAsYouGoPriceResult.cc | 93 +- .../model/GetResourcePackagePriceRequest.cc | 54 +- .../model/GetResourcePackagePriceResult.cc | 93 +- .../src/model/GetSubscriptionPriceRequest.cc | 54 +- .../src/model/GetSubscriptionPriceResult.cc | 93 +- bssopenapi/src/model/ModifyInstanceRequest.cc | 54 +- bssopenapi/src/model/ModifyInstanceResult.cc | 93 +- .../src/model/QueryAccountBalanceRequest.cc | 54 +- .../src/model/QueryAccountBalanceResult.cc | 93 +- .../model/QueryAccountTransactionsRequest.cc | 54 +- .../model/QueryAccountTransactionsResult.cc | 93 +- .../model/QueryAvailableInstancesRequest.cc | 54 +- .../model/QueryAvailableInstancesResult.cc | 93 +- .../src/model/QueryBillOverviewRequest.cc | 54 +- .../src/model/QueryBillOverviewResult.cc | 93 +- bssopenapi/src/model/QueryBillRequest.cc | 54 +- bssopenapi/src/model/QueryBillResult.cc | 93 +- .../src/model/QueryCashCouponsRequest.cc | 54 +- .../src/model/QueryCashCouponsResult.cc | 93 +- .../model/QueryCustomerAddressListRequest.cc | 54 +- .../model/QueryCustomerAddressListResult.cc | 93 +- .../src/model/QueryEvaluateListRequest.cc | 54 +- .../src/model/QueryEvaluateListResult.cc | 93 +- .../src/model/QueryInstanceBillRequest.cc | 54 +- .../src/model/QueryInstanceBillResult.cc | 93 +- .../src/model/QueryInstanceGaapCostRequest.cc | 54 +- .../src/model/QueryInstanceGaapCostResult.cc | 93 +- .../QueryInvoicingCustomerListRequest.cc | 54 +- .../model/QueryInvoicingCustomerListResult.cc | 93 +- .../src/model/QueryMonthlyBillRequest.cc | 54 +- .../src/model/QueryMonthlyBillResult.cc | 93 +- .../QueryMonthlyInstanceConsumptionRequest.cc | 54 +- .../QueryMonthlyInstanceConsumptionResult.cc | 93 +- bssopenapi/src/model/QueryOrdersRequest.cc | 54 +- bssopenapi/src/model/QueryOrdersResult.cc | 93 +- .../src/model/QueryPrepaidCardsRequest.cc | 54 +- .../src/model/QueryPrepaidCardsResult.cc | 93 +- .../src/model/QueryProductListRequest.cc | 54 +- .../src/model/QueryProductListResult.cc | 93 +- bssopenapi/src/model/QueryRedeemRequest.cc | 54 +- bssopenapi/src/model/QueryRedeemResult.cc | 93 +- .../QueryResellerAvailableQuotaRequest.cc | 54 +- .../QueryResellerAvailableQuotaResult.cc | 93 +- .../QueryResourcePackageInstancesRequest.cc | 54 +- .../QueryResourcePackageInstancesResult.cc | 93 +- .../src/model/QuerySettlementBillRequest.cc | 54 +- .../src/model/QuerySettlementBillResult.cc | 93 +- .../src/model/QueryUserOmsDataRequest.cc | 54 +- .../src/model/QueryUserOmsDataResult.cc | 93 +- bssopenapi/src/model/RenewInstanceRequest.cc | 54 +- bssopenapi/src/model/RenewInstanceResult.cc | 93 +- bssopenapi/src/model/SetRenewalRequest.cc | 54 +- bssopenapi/src/model/SetRenewalResult.cc | 93 +- .../SetResellerUserAlarmThresholdRequest.cc | 54 +- .../SetResellerUserAlarmThresholdResult.cc | 93 +- .../src/model/SetResellerUserQuotaRequest.cc | 54 +- .../src/model/SetResellerUserQuotaResult.cc | 93 +- .../src/model/SetResellerUserStatusRequest.cc | 54 +- .../src/model/SetResellerUserStatusResult.cc | 93 +- .../src/model/SubscribeBillToOSSRequest.cc | 54 +- .../src/model/SubscribeBillToOSSResult.cc | 93 +- .../src/model/UnsubscribeBillToOSSRequest.cc | 54 +- .../src/model/UnsubscribeBillToOSSResult.cc | 93 +- cas/CMakeLists.txt | 204 +- cas/include/alibabacloud/cas/CasClient.h | 408 +- .../model/CreateOrderRefundRecordRequest.h | 54 + .../cas/model/CreateOrderRefundRecordResult.h | 49 + .../cas/model/CreateSignatureDocumentResult.h | 2 + .../CreateSignaturePeopleCertificateResult.h | 2 + .../cas/model/CreateSignatureRequest.h | 3 + .../cas/model/CreateSignatureResult.h | 4 + .../model/DescribeCertificateDetailResult.h | 2 + .../model/DescribeCertificateListRequest.h | 26 +- .../cas/model/DescribeCertificateListResult.h | 4 + .../DescribeCertificateStatusCountRequest.h | 14 + .../DescribeCertificateStatusCountResult.h | 2 + ...DescribeOrderCountForConsoleIndexRequest.h | 54 + .../DescribeOrderCountForConsoleIndexResult.h | 51 + .../cas/model/DescribeOrderDetailResult.h | 42 +- .../cas/model/DescribeOrderListRequest.h | 8 + .../cas/model/DescribeOrderListResult.h | 1 + .../model/DescribeOrderRefundRecordRequest.h | 48 + .../model/DescribeOrderRefundRecordResult.h | 51 + .../cas/model/DescribeRenewOrderRequest.h | 51 + .../cas/model/DescribeRenewOrderResult.h | 51 + .../DescribeSignatureProductStateRequest.h | 48 + .../DescribeSignatureProductStateResult.h | 51 + .../cas/model/ListTagKeysRequest.h | 60 + .../cas/model/ListTagKeysResult.h | 62 + .../cas/model/ListTagResourcesRequest.h | 68 + .../cas/model/ListTagResourcesResult.h | 60 + .../cas/model/TagResourcesRequest.h | 74 + .../cas/model/TagResourcesResult.h | 49 + .../cas/model/UntagResourcesRequest.h | 63 + .../cas/model/UntagResourcesResult.h | 49 + cas/src/CasClient.cc | 1572 +- cas/src/model/CreateAliDnsRecordIdRequest.cc | 8 +- cas/src/model/CreateAliDnsRecordIdResult.cc | 9 +- cas/src/model/CreateCertificateNameRequest.cc | 8 +- cas/src/model/CreateCertificateNameResult.cc | 9 +- cas/src/model/CreateCertificateRequest.cc | 10 +- cas/src/model/CreateCertificateResult.cc | 9 +- .../model/CreateCooperationOrderRequest.cc | 10 +- cas/src/model/CreateCooperationOrderResult.cc | 9 +- cas/src/model/CreateDeploymentRequest.cc | 12 +- cas/src/model/CreateDeploymentResult.cc | 9 +- ...eDomainVerifyConfigurationStatusRequest.cc | 8 +- ...teDomainVerifyConfigurationStatusResult.cc | 9 +- .../CreateFilingSignatureDocumentRequest.cc | 6 +- .../CreateFilingSignatureDocumentResult.cc | 9 +- cas/src/model/CreateOrderAuditRequest.cc | 8 +- cas/src/model/CreateOrderAuditResult.cc | 9 +- cas/src/model/CreateOrderCancelRequest.cc | 6 +- cas/src/model/CreateOrderCancelResult.cc | 9 +- cas/src/model/CreateOrderDocumentRequest.cc | 12 +- cas/src/model/CreateOrderDocumentResult.cc | 9 +- cas/src/model/CreateOrderMaterialRequest.cc | 52 +- cas/src/model/CreateOrderMaterialResult.cc | 9 +- .../model/CreateOrderRefundRecordRequest.cc | 60 + .../model/CreateOrderRefundRecordResult.cc | 48 + cas/src/model/CreateOrderRevokeRequest.cc | 8 +- cas/src/model/CreateOrderRevokeResult.cc | 9 +- .../model/CreateSignatureDocumentRequest.cc | 8 +- .../model/CreateSignatureDocumentResult.cc | 16 +- ...CreateSignaturePeopleCertificateRequest.cc | 12 +- .../CreateSignaturePeopleCertificateResult.cc | 16 +- cas/src/model/CreateSignatureRequest.cc | 45 +- cas/src/model/CreateSignatureResult.cc | 23 +- cas/src/model/CreateUnDeploymentRequest.cc | 6 +- cas/src/model/CreateUnDeploymentResult.cc | 9 +- cas/src/model/CreateWebSignatureRequest.cc | 34 +- cas/src/model/CreateWebSignatureResult.cc | 9 +- cas/src/model/DeleteCertificateRequest.cc | 6 +- cas/src/model/DeleteCertificateResult.cc | 9 +- cas/src/model/DeleteOrderRequest.cc | 6 +- cas/src/model/DeleteOrderResult.cc | 9 +- .../DescribeCertificateBrandListRequest.cc | 4 +- .../DescribeCertificateBrandListResult.cc | 9 +- .../model/DescribeCertificateDetailRequest.cc | 6 +- .../model/DescribeCertificateDetailResult.cc | 16 +- .../model/DescribeCertificateListRequest.cc | 81 +- .../model/DescribeCertificateListResult.cc | 17 +- .../DescribeCertificateStatusCountRequest.cc | 43 +- .../DescribeCertificateStatusCountResult.cc | 16 +- .../model/DescribeDeploymentDetailRequest.cc | 6 +- .../model/DescribeDeploymentDetailResult.cc | 9 +- .../DescribeDeploymentDomainListRequest.cc | 8 +- .../DescribeDeploymentDomainListResult.cc | 9 +- .../model/DescribeDeploymentProductRequest.cc | 6 +- .../model/DescribeDeploymentProductResult.cc | 9 +- .../DescribeDeploymentRegionListRequest.cc | 8 +- .../DescribeDeploymentRegionListResult.cc | 9 +- ...eDomainVerifyConfigurationStatusRequest.cc | 6 +- ...beDomainVerifyConfigurationStatusResult.cc | 9 +- .../model/DescribeDomainVerifyInfoRequest.cc | 6 +- .../model/DescribeDomainVerifyInfoResult.cc | 9 +- .../DescribeDownloadCertificateRequest.cc | 8 +- .../DescribeDownloadCertificateResult.cc | 9 +- ...ownloadDomainVerifyConfigurationRequest.cc | 6 +- ...DownloadDomainVerifyConfigurationResult.cc | 9 +- .../model/DescribeExpectationResultRequest.cc | 8 +- .../model/DescribeExpectationResultResult.cc | 9 +- cas/src/model/DescribeHelpListRequest.cc | 6 +- cas/src/model/DescribeHelpListResult.cc | 9 +- cas/src/model/DescribeLocationListRequest.cc | 4 +- cas/src/model/DescribeLocationListResult.cc | 9 +- .../model/DescribeOSSDownloadInfoRequest.cc | 6 +- .../model/DescribeOSSDownloadInfoResult.cc | 9 +- cas/src/model/DescribeOSSUploadInfoRequest.cc | 8 +- cas/src/model/DescribeOSSUploadInfoResult.cc | 9 +- .../DescribeOrderAuditFailRecordRequest.cc | 6 +- .../DescribeOrderAuditFailRecordResult.cc | 9 +- ...escribeOrderCountForConsoleIndexRequest.cc | 60 + ...DescribeOrderCountForConsoleIndexResult.cc | 55 + cas/src/model/DescribeOrderDetailRequest.cc | 6 +- cas/src/model/DescribeOrderDetailResult.cc | 140 +- cas/src/model/DescribeOrderDocumentRequest.cc | 8 +- cas/src/model/DescribeOrderDocumentResult.cc | 9 +- cas/src/model/DescribeOrderListRequest.cc | 31 +- cas/src/model/DescribeOrderListResult.cc | 11 +- cas/src/model/DescribeOrderMaterialRequest.cc | 6 +- cas/src/model/DescribeOrderMaterialResult.cc | 9 +- .../model/DescribeOrderRefundRecordRequest.cc | 38 + .../model/DescribeOrderRefundRecordResult.cc | 55 + cas/src/model/DescribeRenewOrderRequest.cc | 49 + cas/src/model/DescribeRenewOrderResult.cc | 55 + .../model/DescribeSignatureCapacityRequest.cc | 4 +- .../model/DescribeSignatureCapacityResult.cc | 9 +- .../DescribeSignatureProductStateRequest.cc | 38 + .../DescribeSignatureProductStateResult.cc | 55 + .../DescribeSignatureStatisticsRequest.cc | 4 +- .../DescribeSignatureStatisticsResult.cc | 9 +- .../DescribeSignatureTradeDetailRequest.cc | 6 +- .../DescribeSignatureTradeDetailResult.cc | 9 +- .../DescribeSignatureTradeListRequest.cc | 12 +- .../model/DescribeSignatureTradeListResult.cc | 9 +- cas/src/model/DescribeStsAuthStatusRequest.cc | 6 +- cas/src/model/DescribeStsAuthStatusResult.cc | 9 +- cas/src/model/ListTagKeysRequest.cc | 82 + cas/src/model/ListTagKeysResult.cc | 84 + cas/src/model/ListTagResourcesRequest.cc | 100 + cas/src/model/ListTagResourcesResult.cc | 74 + cas/src/model/TagResourcesRequest.cc | 122 + cas/src/model/TagResourcesResult.cc | 48 + cas/src/model/UntagResourcesRequest.cc | 95 + cas/src/model/UntagResourcesResult.cc | 48 + cbn/CMakeLists.txt | 76 +- cbn/include/alibabacloud/cbn/CbnClient.h | 152 +- .../cbn/model/ActiveFlowLogRequest.h | 69 + .../cbn/model/ActiveFlowLogResult.h | 51 + .../cbn/model/CreateCenRouteMapRequest.h | 138 + .../cbn/model/CreateCenRouteMapResult.h | 51 + .../cbn/model/CreateFlowlogRequest.h | 78 + .../cbn/model/CreateFlowlogResult.h | 53 + .../cbn/model/DeactiveFlowLogRequest.h | 69 + .../cbn/model/DeactiveFlowLogResult.h | 51 + .../cbn/model/DeleteCenRouteMapRequest.h | 66 + .../cbn/model/DeleteCenRouteMapResult.h | 49 + .../cbn/model/DeleteFlowlogRequest.h | 69 + .../cbn/model/DeleteFlowlogResult.h | 51 + .../DescribeCenBandwidthPackagesResult.h | 2 + ...cribeCenChildInstanceRouteEntriesRequest.h | 78 + ...scribeCenChildInstanceRouteEntriesResult.h | 86 + ...scribeCenRegionDomainRouteEntriesRequest.h | 3 + ...escribeCenRegionDomainRouteEntriesResult.h | 17 + .../cbn/model/DescribeCenRouteMapsRequest.h | 75 + .../cbn/model/DescribeCenRouteMapsResult.h | 89 + .../cbn/model/DescribeFlowlogsRequest.h | 90 + .../cbn/model/DescribeFlowlogsResult.h | 71 + .../cbn/model/ModifyCenRouteMapRequest.h | 138 + .../cbn/model/ModifyCenRouteMapResult.h | 49 + .../cbn/model/ModifyFlowLogAttributeRequest.h | 75 + .../cbn/model/ModifyFlowLogAttributeResult.h | 51 + .../ResolveAndRouteServiceInCenRequest.h | 6 +- cbn/src/CbnClient.cc | 684 +- cbn/src/model/ActiveFlowLogRequest.cc | 115 + cbn/src/model/ActiveFlowLogResult.cc | 55 + .../AssociateCenBandwidthPackageRequest.cc | 12 +- .../AssociateCenBandwidthPackageResult.cc | 9 +- .../model/AttachCenChildInstanceRequest.cc | 18 +- cbn/src/model/AttachCenChildInstanceResult.cc | 9 +- .../model/CreateCenBandwidthPackageRequest.cc | 28 +- .../model/CreateCenBandwidthPackageResult.cc | 9 +- cbn/src/model/CreateCenRequest.cc | 16 +- cbn/src/model/CreateCenResult.cc | 9 +- cbn/src/model/CreateCenRouteMapRequest.cc | 380 + cbn/src/model/CreateCenRouteMapResult.cc | 55 + cbn/src/model/CreateFlowlogRequest.cc | 148 + cbn/src/model/CreateFlowlogResult.cc | 62 + cbn/src/model/DeactiveFlowLogRequest.cc | 115 + cbn/src/model/DeactiveFlowLogResult.cc | 55 + .../model/DeleteCenBandwidthPackageRequest.cc | 10 +- .../model/DeleteCenBandwidthPackageResult.cc | 9 +- cbn/src/model/DeleteCenRequest.cc | 10 +- cbn/src/model/DeleteCenResult.cc | 9 +- cbn/src/model/DeleteCenRouteMapRequest.cc | 104 + cbn/src/model/DeleteCenRouteMapResult.cc | 48 + cbn/src/model/DeleteFlowlogRequest.cc | 115 + cbn/src/model/DeleteFlowlogResult.cc | 55 + .../model/DeleteRouteServiceInCenRequest.cc | 16 +- .../model/DeleteRouteServiceInCenResult.cc | 9 +- ...enAttachedChildInstanceAttributeRequest.cc | 16 +- ...CenAttachedChildInstanceAttributeResult.cc | 9 +- ...escribeCenAttachedChildInstancesRequest.cc | 18 +- ...DescribeCenAttachedChildInstancesResult.cc | 9 +- .../DescribeCenBandwidthPackagesRequest.cc | 18 +- .../DescribeCenBandwidthPackagesResult.cc | 13 +- ...ribeCenChildInstanceRouteEntriesRequest.cc | 148 + ...cribeCenChildInstanceRouteEntriesResult.cc | 130 + ...GeographicSpanRemainingBandwidthRequest.cc | 18 +- ...nGeographicSpanRemainingBandwidthResult.cc | 9 +- .../DescribeCenGeographicSpansRequest.cc | 14 +- .../model/DescribeCenGeographicSpansResult.cc | 9 +- ...ibeCenInterRegionBandwidthLimitsRequest.cc | 14 +- ...ribeCenInterRegionBandwidthLimitsResult.cc | 9 +- .../DescribeCenPrivateZoneRoutesRequest.cc | 14 +- .../DescribeCenPrivateZoneRoutesResult.cc | 9 +- ...cribeCenRegionDomainRouteEntriesRequest.cc | 27 +- ...scribeCenRegionDomainRouteEntriesResult.cc | 41 +- cbn/src/model/DescribeCenRouteMapsRequest.cc | 137 + cbn/src/model/DescribeCenRouteMapsResult.cc | 150 + .../model/DescribeCenVbrHealthCheckRequest.cc | 20 +- .../model/DescribeCenVbrHealthCheckResult.cc | 9 +- cbn/src/model/DescribeCensRequest.cc | 20 +- cbn/src/model/DescribeCensResult.cc | 9 +- .../DescribeChildInstanceRegionsRequest.cc | 10 +- .../DescribeChildInstanceRegionsResult.cc | 9 +- cbn/src/model/DescribeFlowlogsRequest.cc | 192 + cbn/src/model/DescribeFlowlogsResult.cc | 105 + ...scribeGeographicRegionMembershipRequest.cc | 14 +- ...escribeGeographicRegionMembershipResult.cc | 9 +- .../model/DescribeGrantRulesToCenRequest.cc | 14 +- .../model/DescribeGrantRulesToCenResult.cc | 9 +- .../DescribePublishedRouteEntriesRequest.cc | 20 +- .../DescribePublishedRouteEntriesResult.cc | 9 +- cbn/src/model/DescribeRouteConflictRequest.cc | 22 +- cbn/src/model/DescribeRouteConflictResult.cc | 9 +- .../DescribeRouteServicesInCenRequest.cc | 20 +- .../model/DescribeRouteServicesInCenResult.cc | 9 +- .../model/DetachCenChildInstanceRequest.cc | 20 +- cbn/src/model/DetachCenChildInstanceResult.cc | 9 +- .../model/DisableCenVbrHealthCheckRequest.cc | 16 +- .../model/DisableCenVbrHealthCheckResult.cc | 9 +- .../model/EnableCenVbrHealthCheckRequest.cc | 20 +- .../model/EnableCenVbrHealthCheckResult.cc | 9 +- cbn/src/model/ModifyCenAttributeRequest.cc | 16 +- cbn/src/model/ModifyCenAttributeResult.cc | 9 +- ...difyCenBandwidthPackageAttributeRequest.cc | 14 +- ...odifyCenBandwidthPackageAttributeResult.cc | 9 +- .../ModifyCenBandwidthPackageSpecRequest.cc | 12 +- .../ModifyCenBandwidthPackageSpecResult.cc | 9 +- cbn/src/model/ModifyCenRouteMapRequest.cc | 380 + cbn/src/model/ModifyCenRouteMapResult.cc | 48 + .../model/ModifyFlowLogAttributeRequest.cc | 137 + cbn/src/model/ModifyFlowLogAttributeResult.cc | 55 + cbn/src/model/PublishRouteEntriesRequest.cc | 16 +- cbn/src/model/PublishRouteEntriesResult.cc | 9 +- .../ResolveAndRouteServiceInCenRequest.cc | 41 +- .../ResolveAndRouteServiceInCenResult.cc | 9 +- .../RoutePrivateZoneInCenToVpcRequest.cc | 16 +- .../model/RoutePrivateZoneInCenToVpcResult.cc | 9 +- .../SetCenInterRegionBandwidthLimitRequest.cc | 16 +- .../SetCenInterRegionBandwidthLimitResult.cc | 9 +- .../UnassociateCenBandwidthPackageRequest.cc | 12 +- .../UnassociateCenBandwidthPackageResult.cc | 9 +- .../UnroutePrivateZoneInCenToVpcRequest.cc | 12 +- .../UnroutePrivateZoneInCenToVpcResult.cc | 9 +- cbn/src/model/UntagResourcesRequest.cc | 18 +- cbn/src/model/UntagResourcesResult.cc | 9 +- .../WithdrawPublishedRouteEntriesRequest.cc | 16 +- .../WithdrawPublishedRouteEntriesResult.cc | 9 +- ccc/CMakeLists.txt | 616 +- ccc/include/alibabacloud/ccc/CCCClient.h | 1232 +- .../ccc/model/AddAgentDeviceRequest.h | 63 + .../ccc/model/AddAgentDeviceResult.h | 59 + .../ccc/model/AddBulkPhoneNumbersRequest.h | 63 + .../ccc/model/AddBulkPhoneNumbersResult.h | 92 + .../ccc/model/AddNumberToSkillGroupRequest.h | 57 + .../ccc/model/AddNumberToSkillGroupResult.h | 57 + .../model/CallOnlinePrivacyNumberRequest.h | 57 + .../ccc/model/CallOnlinePrivacyNumberResult.h | 67 + ...mitContactFlowVersionModificationRequest.h | 60 + ...mmitContactFlowVersionModificationResult.h | 71 + .../ccc/model/CreateCCCPostOrderRequest.h | 48 + .../ccc/model/CreateCCCPostOrderResult.h | 59 + .../ccc/model/CreateCabInstanceRequest.h | 57 + .../ccc/model/CreateCabInstanceResult.h | 69 + .../ccc/model/CreateContactFlowRequest.h | 66 + .../ccc/model/CreateContactFlowResult.h | 94 + .../ccc/model/CreateFaultRequest.h | 108 + .../ccc/model/CreateFaultResult.h | 57 + .../ccc/model/CreateInstanceRequest.h | 78 + .../ccc/model/CreateInstanceResult.h | 109 + .../ccc/model/CreateMediaRequest.h | 75 + .../ccc/model/CreateMediaResult.h | 68 + .../model/CreatePredictiveJobGroupRequest.h | 72 + .../model/CreatePredictiveJobGroupResult.h | 59 + .../ccc/model/CreateSkillGroupRequest.h | 6 + .../ccc/model/CreateUserRequest.h | 3 + .../ccc/model/CreateVoiceAppraiseRequest.h | 60 + .../ccc/model/CreateVoiceAppraiseResult.h | 57 + .../ccc/model/DeleteInstanceRequest.h | 51 + .../ccc/model/DeleteInstanceResult.h | 57 + .../ccc/model/DeleteMediaRequest.h | 54 + .../ccc/model/DeleteMediaResult.h | 57 + .../alibabacloud/ccc/model/DialExRequest.h | 66 + .../alibabacloud/ccc/model/DialExResult.h | 65 + .../alibabacloud/ccc/model/DialogueRequest.h | 3 + .../model/DownloadAllTypeRecordingRequest.h | 57 + .../model/DownloadAllTypeRecordingResult.h | 64 + .../ccc/model/DownloadCabRecordingRequest.h | 51 + .../ccc/model/DownloadCabRecordingResult.h | 64 + .../alibabacloud/ccc/model/FindUsersRequest.h | 60 + .../alibabacloud/ccc/model/FindUsersResult.h | 104 + .../ccc/model/GetAgentStateRequest.h | 57 + .../ccc/model/GetAgentStateResult.h | 69 + .../GetCallMeasureSummaryReportRequest.h | 66 + .../model/GetCallMeasureSummaryReportResult.h | 89 + ...etContactIdentifyByOutBoundTaskIdRequest.h | 51 + ...GetContactIdentifyByOutBoundTaskIdResult.h | 65 + .../GetContactInfoByOutboundTaskIdRequest.h | 54 + .../GetContactInfoByOutboundTaskIdResult.h | 65 + .../ccc/model/GetInstanceRequest.h | 51 + .../ccc/model/GetInstanceResult.h | 105 + .../ccc/model/GetInstanceStateRequest.h | 51 + .../ccc/model/GetInstanceStateResult.h | 68 + ...etInstanceSummaryReportByIntervalRequest.h | 66 + ...GetInstanceSummaryReportByIntervalResult.h | 133 + .../model/GetInstanceSummaryReportRequest.h | 63 + .../model/GetInstanceSummaryReportResult.h | 127 + ...nstanceSummaryReportSinceMidnightRequest.h | 57 + ...InstanceSummaryReportSinceMidnightResult.h | 128 + .../ccc/model/GetJobFileUploadUrlRequest.h | 51 + .../ccc/model/GetJobFileUploadUrlResult.h | 61 + .../ccc/model/GetJobStatusByCallIdResult.h | 1 + .../ccc/model/GetJobsProgressRequest.h | 54 + .../ccc/model/GetJobsProgressResult.h | 74 + .../ccc/model/GetPredictiveJobRequest.h | 51 + .../ccc/model/GetPredictiveJobResult.h | 112 + .../model/GetRecordOssUploadParamRequest.h | 54 + .../ccc/model/GetRecordOssUploadParamResult.h | 71 + .../ccc/model/GetSmsConfigRequest.h | 54 + .../ccc/model/GetSmsConfigResult.h | 72 + .../ccc/model/GetTURNCredentialsRequest.h | 54 + .../ccc/model/GetTURNCredentialsResult.h | 61 + .../ccc/model/GetTURNServerListRequest.h | 51 + .../ccc/model/GetTURNServerListResult.h | 59 + .../ccc/model/ListAgentDevicesRequest.h | 60 + .../ccc/model/ListAgentDevicesResult.h | 70 + .../ccc/model/ListAgentEventsRequest.h | 63 + .../ccc/model/ListAgentEventsResult.h | 73 + .../ccc/model/ListAgentStatesRequest.h | 66 + .../ccc/model/ListAgentStatesResult.h | 76 + ...ListAgentSummaryReportsByIntervalRequest.h | 72 + .../ListAgentSummaryReportsByIntervalResult.h | 140 + .../model/ListAgentSummaryReportsRequest.h | 69 + .../ccc/model/ListAgentSummaryReportsResult.h | 134 + ...tAgentSummaryReportsSinceMidnightRequest.h | 63 + ...stAgentSummaryReportsSinceMidnightResult.h | 135 + .../ccc/model/ListCallDetailRecordsRequest.h | 27 +- .../ccc/model/ListCallDetailRecordsResult.h | 24 +- .../ListCallEventDetailByContactIdRequest.h | 54 + .../ListCallEventDetailByContactIdResult.h | 86 + .../ListCallMeasureSummaryReportsRequest.h | 51 + .../ListCallMeasureSummaryReportsResult.h | 69 + .../ccc/model/ListInstancesOfUserRequest.h | 48 + .../ccc/model/ListInstancesOfUserResult.h | 105 + .../ccc/model/ListIvrTrackingDetailRequest.h | 72 + .../ccc/model/ListIvrTrackingDetailResult.h | 83 + .../ccc/model/ListMediasRequest.h | 60 + .../alibabacloud/ccc/model/ListMediasResult.h | 78 + .../ListOutboundPhoneNumberOfUserRequest.h | 54 + .../ListOutboundPhoneNumberOfUserResult.h | 88 + .../ccc/model/ListPhoneNumbersResult.h | 26 +- .../model/ListPredictiveJobGroupsRequest.h | 69 + .../ccc/model/ListPredictiveJobGroupsResult.h | 111 + .../ccc/model/ListPredictiveJobStatusResult.h | 53 +- .../ListPrivacyNumberCallDetailsRequest.h | 72 + .../ListPrivacyNumberCallDetailsResult.h | 80 + .../ccc/model/ListRecentCallRecordsRequest.h | 66 + .../ccc/model/ListRecentCallRecordsResult.h | 117 + .../model/ListRecordingOfDualTrackRequest.h | 75 + .../model/ListRecordingOfDualTrackResult.h | 82 + .../model/ListRecordingsByContactIdResult.h | 2 + .../ccc/model/ListSkillGroupStatesRequest.h | 60 + .../ccc/model/ListSkillGroupStatesResult.h | 79 + ...killGroupSummaryReportsByIntervalRequest.h | 69 + ...SkillGroupSummaryReportsByIntervalResult.h | 146 + .../ListSkillGroupSummaryReportsRequest.h | 66 + .../ListSkillGroupSummaryReportsResult.h | 140 + ...lGroupSummaryReportsSinceMidnightRequest.h | 60 + ...llGroupSummaryReportsSinceMidnightResult.h | 141 + .../ccc/model/ListSkillGroupsOfUserResult.h | 1 + .../ccc/model/ListSkillGroupsResult.h | 1 + .../alibabacloud/ccc/model/ListUsersResult.h | 1 + .../ccc/model/ListVoiceAppraiseRequest.h | 51 + .../ccc/model/ListVoiceAppraiseResult.h | 91 + .../ccc/model/ModifyAgentDeviceRequest.h | 57 + .../ccc/model/ModifyAgentDeviceResult.h | 57 + .../ccc/model/ModifyCabInstanceRequest.h | 60 + .../ccc/model/ModifyCabInstanceResult.h | 69 + .../ccc/model/ModifyMediaRequest.h | 75 + .../ccc/model/ModifyMediaResult.h | 67 + .../model/ModifyNotificationConfigRequest.h | 69 + .../model/ModifyNotificationConfigResult.h | 71 + .../ccc/model/ModifyPhoneNumberRequest.h | 3 + .../ccc/model/ModifyPhoneNumberResult.h | 6 + .../ModifyPrivacyNumberCallDetailRequest.h | 57 + .../ModifyPrivacyNumberCallDetailResult.h | 57 + .../ccc/model/ModifySkillGroupOfUserRequest.h | 63 + .../ccc/model/ModifySkillGroupOfUserResult.h | 57 + .../ModifySkillGroupOutboundNumbersRequest.h | 60 + .../ModifySkillGroupOutboundNumbersResult.h | 57 + .../ccc/model/ModifySkillGroupRequest.h | 6 + .../ccc/model/ModifyUserRequest.h | 3 + .../model/PickGlobalOutboundNumbersRequest.h | 63 + .../model/PickGlobalOutboundNumbersResult.h | 76 + .../model/PickOutboundNumbersByTagsRequest.h | 66 + .../model/PickOutboundNumbersByTagsResult.h | 76 + .../ccc/model/PickOutboundNumbersRequest.h | 60 + .../ccc/model/PickOutboundNumbersResult.h | 76 + .../ccc/model/PreCreateMediaRequest.h | 66 + .../ccc/model/PreCreateMediaResult.h | 66 + .../ccc/model/PreModifyMediaRequest.h | 66 + .../ccc/model/PreModifyMediaResult.h | 66 + .../model/PredictiveRecordFailureRequest.h | 72 + .../ccc/model/PredictiveRecordFailureResult.h | 57 + .../model/PredictiveRecordSuccessRequest.h | 72 + .../ccc/model/PredictiveRecordSuccessResult.h | 57 + .../model/PublishContactFlowVersionRequest.h | 57 + .../model/PublishContactFlowVersionResult.h | 57 + .../model/PublishPredictiveJobGroupRequest.h | 54 + .../model/PublishPredictiveJobGroupResult.h | 57 + .../ccc/model/QueryRedialIndicatorRequest.h | 57 + .../ccc/model/QueryRedialIndicatorResult.h | 59 + .../model/RemoveNumberFromSkillGroupRequest.h | 57 + .../model/RemoveNumberFromSkillGroupResult.h | 57 + .../model/RemoveUsersFromSkillGroupRequest.h | 57 + .../model/RemoveUsersFromSkillGroupResult.h | 57 + .../ccc/model/RequestLoginInfoResult.h | 8 + .../alibabacloud/ccc/model/SaveStatsRequest.h | 72 + .../alibabacloud/ccc/model/SaveStatsResult.h | 59 + .../ccc/model/SaveWebRTCStatsRequest.h | 75 + .../ccc/model/SaveWebRTCStatsResult.h | 59 + .../model/SendPredefinedShortMessageRequest.h | 60 + .../model/SendPredefinedShortMessageResult.h | 59 + .../ccc/model/SimpleDialRequest.h | 60 + .../alibabacloud/ccc/model/SimpleDialResult.h | 65 + .../ccc/model/SubmitCabRecordingRequest.h | 60 + .../ccc/model/SubmitCabRecordingResult.h | 57 + ccc/src/CCCClient.cc | 4248 ++++- ccc/src/model/AddAgentDeviceRequest.cc | 93 + ccc/src/model/AddAgentDeviceResult.cc | 83 + ccc/src/model/AddBulkPhoneNumbersRequest.cc | 95 + ccc/src/model/AddBulkPhoneNumbersResult.cc | 150 + ccc/src/model/AddNumberToSkillGroupRequest.cc | 71 + ccc/src/model/AddNumberToSkillGroupResult.cc | 76 + ccc/src/model/AddPhoneNumberRequest.cc | 10 +- ccc/src/model/AddPhoneNumberResult.cc | 9 +- ccc/src/model/AssignJobsRequest.cc | 12 +- ccc/src/model/AssignJobsResult.cc | 9 +- ccc/src/model/AssignUsersRequest.cc | 12 +- ccc/src/model/AssignUsersResult.cc | 9 +- .../model/CallOnlinePrivacyNumberRequest.cc | 71 + .../model/CallOnlinePrivacyNumberResult.cc | 92 + ccc/src/model/CancelJobsRequest.cc | 12 +- ccc/src/model/CancelJobsResult.cc | 9 +- ccc/src/model/CancelPredictiveJobsRequest.cc | 8 +- ccc/src/model/CancelPredictiveJobsResult.cc | 9 +- ...itContactFlowVersionModificationRequest.cc | 82 + ...mitContactFlowVersionModificationResult.cc | 100 + ccc/src/model/CreateBatchJobsRequest.cc | 16 +- ccc/src/model/CreateBatchJobsResult.cc | 9 +- ccc/src/model/CreateCCCPostOrderRequest.cc | 38 + ccc/src/model/CreateCCCPostOrderResult.cc | 83 + ccc/src/model/CreateCabInstanceRequest.cc | 71 + ccc/src/model/CreateCabInstanceResult.cc | 96 + ccc/src/model/CreateContactFlowRequest.cc | 104 + ccc/src/model/CreateContactFlowResult.cc | 142 + ccc/src/model/CreateFaultRequest.cc | 258 + ccc/src/model/CreateFaultResult.cc | 76 + ccc/src/model/CreateInstanceRequest.cc | 151 + ccc/src/model/CreateInstanceResult.cc | 169 + ccc/src/model/CreateJobGroupRequest.cc | 12 +- ccc/src/model/CreateJobGroupResult.cc | 9 +- ccc/src/model/CreateMediaRequest.cc | 137 + ccc/src/model/CreateMediaResult.cc | 94 + .../model/CreatePredictiveJobGroupRequest.cc | 127 + .../model/CreatePredictiveJobGroupResult.cc | 83 + ccc/src/model/CreatePredictiveJobsRequest.cc | 8 +- ccc/src/model/CreatePredictiveJobsResult.cc | 9 +- .../CreateScenarioFromTemplateRequest.cc | 10 +- .../model/CreateScenarioFromTemplateResult.cc | 9 +- ccc/src/model/CreateScenarioRequest.cc | 12 +- ccc/src/model/CreateScenarioResult.cc | 9 +- ccc/src/model/CreateSkillGroupRequest.cc | 36 +- ccc/src/model/CreateSkillGroupResult.cc | 9 +- ccc/src/model/CreateSurveyRequest.cc | 20 +- ccc/src/model/CreateSurveyResult.cc | 9 +- ccc/src/model/CreateUserRequest.cc | 29 +- ccc/src/model/CreateUserResult.cc | 9 +- ccc/src/model/CreateVoiceAppraiseRequest.cc | 82 + ccc/src/model/CreateVoiceAppraiseResult.cc | 76 + ccc/src/model/DeleteInstanceRequest.cc | 49 + ccc/src/model/DeleteInstanceResult.cc | 76 + ccc/src/model/DeleteJobGroupRequest.cc | 4 +- ccc/src/model/DeleteJobGroupResult.cc | 9 +- ccc/src/model/DeleteMediaRequest.cc | 60 + ccc/src/model/DeleteMediaResult.cc | 76 + ccc/src/model/DeleteSkillGroupRequest.cc | 6 +- ccc/src/model/DeleteSkillGroupResult.cc | 9 +- ccc/src/model/DeleteSurveyRequest.cc | 6 +- ccc/src/model/DeleteSurveyResult.cc | 9 +- ccc/src/model/DialExRequest.cc | 104 + ccc/src/model/DialExResult.cc | 104 + ccc/src/model/DialogueRequest.cc | 31 +- ccc/src/model/DialogueResult.cc | 9 +- .../model/DownloadAllTypeRecordingRequest.cc | 71 + .../model/DownloadAllTypeRecordingResult.cc | 91 + ccc/src/model/DownloadCabRecordingRequest.cc | 49 + ccc/src/model/DownloadCabRecordingResult.cc | 86 + ...DownloadOriginalStatisticsReportRequest.cc | 4 +- .../DownloadOriginalStatisticsReportResult.cc | 9 +- ccc/src/model/DownloadRecordingRequest.cc | 8 +- ccc/src/model/DownloadRecordingResult.cc | 9 +- .../DownloadUnreachableContactsRequest.cc | 4 +- .../DownloadUnreachableContactsResult.cc | 9 +- ccc/src/model/FindUsersRequest.cc | 82 + ccc/src/model/FindUsersResult.cc | 146 + .../GenerateAgentStatisticReportRequest.cc | 14 +- .../GenerateAgentStatisticReportResult.cc | 9 +- ccc/src/model/GetAgentDataRequest.cc | 14 +- ccc/src/model/GetAgentDataResult.cc | 9 +- ccc/src/model/GetAgentStateRequest.cc | 71 + ccc/src/model/GetAgentStateResult.cc | 96 + .../GetCallMeasureSummaryReportRequest.cc | 104 + .../GetCallMeasureSummaryReportResult.cc | 130 + ccc/src/model/GetConfigRequest.cc | 10 +- ccc/src/model/GetConfigResult.cc | 9 +- ...tContactIdentifyByOutBoundTaskIdRequest.cc | 49 + ...etContactIdentifyByOutBoundTaskIdResult.cc | 88 + .../GetContactInfoByOutboundTaskIdRequest.cc | 60 + .../GetContactInfoByOutboundTaskIdResult.cc | 88 + ...GetConversationDetailByContactIdRequest.cc | 10 +- .../GetConversationDetailByContactIdResult.cc | 9 +- ccc/src/model/GetConversationListRequest.cc | 4 +- ccc/src/model/GetConversationListResult.cc | 9 +- ccc/src/model/GetInstanceRequest.cc | 49 + ccc/src/model/GetInstanceResult.cc | 157 + ccc/src/model/GetInstanceStateRequest.cc | 49 + ccc/src/model/GetInstanceStateResult.cc | 92 + ...tInstanceSummaryReportByIntervalRequest.cc | 104 + ...etInstanceSummaryReportByIntervalResult.cc | 201 + .../model/GetInstanceSummaryReportRequest.cc | 93 + .../model/GetInstanceSummaryReportResult.cc | 191 + ...stanceSummaryReportSinceMidnightRequest.cc | 71 + ...nstanceSummaryReportSinceMidnightResult.cc | 193 + .../model/GetJobDataUploadParamsRequest.cc | 4 +- ccc/src/model/GetJobDataUploadParamsResult.cc | 9 +- ccc/src/model/GetJobFileUploadUrlRequest.cc | 49 + ccc/src/model/GetJobFileUploadUrlResult.cc | 90 + ccc/src/model/GetJobGroupRequest.cc | 4 +- ccc/src/model/GetJobGroupResult.cc | 9 +- ccc/src/model/GetJobListRequest.cc | 12 +- ccc/src/model/GetJobListResult.cc | 9 +- ccc/src/model/GetJobRequest.cc | 4 +- ccc/src/model/GetJobResult.cc | 9 +- ccc/src/model/GetJobStatusByCallIdRequest.cc | 4 +- ccc/src/model/GetJobStatusByCallIdResult.cc | 11 +- .../GetJobTemplateDownloadParamsRequest.cc | 4 +- .../GetJobTemplateDownloadParamsResult.cc | 9 +- ccc/src/model/GetJobsProgressRequest.cc | 60 + ccc/src/model/GetJobsProgressResult.cc | 106 + ccc/src/model/GetNumberRegionInfoRequest.cc | 6 +- ccc/src/model/GetNumberRegionInfoResult.cc | 9 +- ccc/src/model/GetPredictiveJobRequest.cc | 49 + ccc/src/model/GetPredictiveJobResult.cc | 172 + .../model/GetRecordOssUploadParamRequest.cc | 60 + .../model/GetRecordOssUploadParamResult.cc | 125 + ccc/src/model/GetScenarioRequest.cc | 4 +- ccc/src/model/GetScenarioResult.cc | 9 +- ccc/src/model/GetServiceExtensionsRequest.cc | 6 +- ccc/src/model/GetServiceExtensionsResult.cc | 9 +- ccc/src/model/GetSmsConfigRequest.cc | 61 + ccc/src/model/GetSmsConfigResult.cc | 107 + ccc/src/model/GetSurveyRequest.cc | 6 +- ccc/src/model/GetSurveyResult.cc | 9 +- ccc/src/model/GetTURNCredentialsRequest.cc | 60 + ccc/src/model/GetTURNCredentialsResult.cc | 90 + ccc/src/model/GetTURNServerListRequest.cc | 49 + ccc/src/model/GetTURNServerListResult.cc | 83 + ccc/src/model/GetTaskListRequest.cc | 4 +- ccc/src/model/GetTaskListResult.cc | 9 +- ccc/src/model/GetUserRequest.cc | 6 +- ccc/src/model/GetUserResult.cc | 9 +- ccc/src/model/LaunchAppraiseRequest.cc | 6 +- ccc/src/model/LaunchAppraiseResult.cc | 9 +- .../LaunchShortMessageAppraiseRequest.cc | 12 +- .../model/LaunchShortMessageAppraiseResult.cc | 9 +- ccc/src/model/ListAgentDevicesRequest.cc | 82 + ccc/src/model/ListAgentDevicesResult.cc | 103 + ccc/src/model/ListAgentEventsRequest.cc | 95 + ccc/src/model/ListAgentEventsResult.cc | 107 + ccc/src/model/ListAgentStatesRequest.cc | 104 + ccc/src/model/ListAgentStatesResult.cc | 108 + ...istAgentSummaryReportsByIntervalRequest.cc | 126 + ...ListAgentSummaryReportsByIntervalResult.cc | 213 + .../model/ListAgentSummaryReportsRequest.cc | 115 + .../model/ListAgentSummaryReportsResult.cc | 203 + ...AgentSummaryReportsSinceMidnightRequest.cc | 93 + ...tAgentSummaryReportsSinceMidnightResult.cc | 205 + ...istBasicStatisticsReportSubItemsRequest.cc | 10 +- ...ListBasicStatisticsReportSubItemsResult.cc | 9 +- ccc/src/model/ListCallDetailRecordsRequest.cc | 115 +- ccc/src/model/ListCallDetailRecordsResult.cc | 53 +- .../ListCallEventDetailByContactIdRequest.cc | 60 + .../ListCallEventDetailByContactIdResult.cc | 121 + .../ListCallMeasureSummaryReportsRequest.cc | 49 + .../ListCallMeasureSummaryReportsResult.cc | 101 + ccc/src/model/ListConfigRequest.cc | 6 +- ccc/src/model/ListConfigResult.cc | 9 +- ccc/src/model/ListContactFlowsRequest.cc | 4 +- ccc/src/model/ListContactFlowsResult.cc | 9 +- ccc/src/model/ListInstancesOfUserRequest.cc | 38 + ccc/src/model/ListInstancesOfUserResult.cc | 162 + ccc/src/model/ListIvrTrackingDetailRequest.cc | 126 + ccc/src/model/ListIvrTrackingDetailResult.cc | 122 + ccc/src/model/ListJobGroupsRequest.cc | 10 +- ccc/src/model/ListJobGroupsResult.cc | 9 +- ccc/src/model/ListJobStatusRequest.cc | 20 +- ccc/src/model/ListJobStatusResult.cc | 9 +- ccc/src/model/ListJobsByGroupRequest.cc | 12 +- ccc/src/model/ListJobsByGroupResult.cc | 9 +- ccc/src/model/ListMediasRequest.cc | 82 + ccc/src/model/ListMediasResult.cc | 112 + .../ListOutboundPhoneNumberOfUserRequest.cc | 60 + .../ListOutboundPhoneNumberOfUserResult.cc | 132 + ccc/src/model/ListPhoneNumbersRequest.cc | 6 +- ccc/src/model/ListPhoneNumbersResult.cc | 44 +- .../model/ListPredictiveJobGroupsRequest.cc | 115 + .../model/ListPredictiveJobGroupsResult.cc | 160 + .../model/ListPredictiveJobStatusRequest.cc | 18 +- .../model/ListPredictiveJobStatusResult.cc | 94 +- .../ListPrivacyNumberCallDetailsRequest.cc | 126 + .../ListPrivacyNumberCallDetailsResult.cc | 116 + ccc/src/model/ListPrivilegesOfUserRequest.cc | 6 +- ccc/src/model/ListPrivilegesOfUserResult.cc | 9 +- ccc/src/model/ListRealTimeAgentRequest.cc | 4 +- ccc/src/model/ListRealTimeAgentResult.cc | 9 +- ccc/src/model/ListRecentCallRecordsRequest.cc | 104 + ccc/src/model/ListRecentCallRecordsResult.cc | 186 + .../model/ListRecordingOfDualTrackRequest.cc | 137 + .../model/ListRecordingOfDualTrackResult.cc | 120 + .../model/ListRecordingsByContactIdRequest.cc | 6 +- .../model/ListRecordingsByContactIdResult.cc | 13 +- ccc/src/model/ListRecordingsRequest.cc | 18 +- ccc/src/model/ListRecordingsResult.cc | 9 +- ccc/src/model/ListRolesRequest.cc | 4 +- ccc/src/model/ListRolesResult.cc | 9 +- ccc/src/model/ListScenarioTemplatesResult.cc | 9 +- ccc/src/model/ListScenariosRequest.cc | 2 +- ccc/src/model/ListScenariosResult.cc | 9 +- ccc/src/model/ListSkillGroupStatesRequest.cc | 82 + ccc/src/model/ListSkillGroupStatesResult.cc | 114 + ...illGroupSummaryReportsByIntervalRequest.cc | 115 + ...killGroupSummaryReportsByIntervalResult.cc | 225 + .../ListSkillGroupSummaryReportsRequest.cc | 104 + .../ListSkillGroupSummaryReportsResult.cc | 215 + ...GroupSummaryReportsSinceMidnightRequest.cc | 82 + ...lGroupSummaryReportsSinceMidnightResult.cc | 217 + ccc/src/model/ListSkillGroupsOfUserRequest.cc | 6 +- ccc/src/model/ListSkillGroupsOfUserResult.cc | 11 +- ccc/src/model/ListSkillGroupsRequest.cc | 4 +- ccc/src/model/ListSkillGroupsResult.cc | 11 +- ccc/src/model/ListSurveysRequest.cc | 4 +- ccc/src/model/ListSurveysResult.cc | 9 +- .../model/ListUnreachableContactsRequest.cc | 8 +- .../model/ListUnreachableContactsResult.cc | 9 +- ccc/src/model/ListUsersOfSkillGroupRequest.cc | 10 +- ccc/src/model/ListUsersOfSkillGroupResult.cc | 9 +- ccc/src/model/ListUsersRequest.cc | 8 +- ccc/src/model/ListUsersResult.cc | 11 +- ccc/src/model/ListVoiceAppraiseRequest.cc | 49 + ccc/src/model/ListVoiceAppraiseResult.cc | 139 + ccc/src/model/ModifyAgentDeviceRequest.cc | 71 + ccc/src/model/ModifyAgentDeviceResult.cc | 76 + ccc/src/model/ModifyCabInstanceRequest.cc | 82 + ccc/src/model/ModifyCabInstanceResult.cc | 96 + ccc/src/model/ModifyMediaRequest.cc | 137 + ccc/src/model/ModifyMediaResult.cc | 92 + .../model/ModifyNotificationConfigRequest.cc | 100 + .../model/ModifyNotificationConfigResult.cc | 114 + ccc/src/model/ModifyPhoneNumberRequest.cc | 22 +- ccc/src/model/ModifyPhoneNumberResult.cc | 19 +- .../ModifyPrivacyNumberCallDetailRequest.cc | 71 + .../ModifyPrivacyNumberCallDetailResult.cc | 76 + ccc/src/model/ModifyScenarioRequest.cc | 10 +- ccc/src/model/ModifyScenarioResult.cc | 9 +- .../model/ModifySkillGroupOfUserRequest.cc | 96 + ccc/src/model/ModifySkillGroupOfUserResult.cc | 76 + .../ModifySkillGroupOutboundNumbersRequest.cc | 83 + .../ModifySkillGroupOutboundNumbersResult.cc | 76 + ccc/src/model/ModifySkillGroupRequest.cc | 38 +- ccc/src/model/ModifySkillGroupResult.cc | 9 +- ccc/src/model/ModifySurveyRequest.cc | 24 +- ccc/src/model/ModifySurveyResult.cc | 9 +- ccc/src/model/ModifyUserRequest.cc | 29 +- ccc/src/model/ModifyUserResult.cc | 9 +- .../model/PickGlobalOutboundNumbersRequest.cc | 94 + .../model/PickGlobalOutboundNumbersResult.cc | 101 + ccc/src/model/PickLocalNumberRequest.cc | 8 +- ccc/src/model/PickLocalNumberResult.cc | 9 +- .../model/PickOutboundNumbersByTagsRequest.cc | 107 + .../model/PickOutboundNumbersByTagsResult.cc | 101 + ccc/src/model/PickOutboundNumbersRequest.cc | 83 + ccc/src/model/PickOutboundNumbersResult.cc | 101 + ccc/src/model/PreCreateMediaRequest.cc | 104 + ccc/src/model/PreCreateMediaResult.cc | 90 + ccc/src/model/PreModifyMediaRequest.cc | 104 + ccc/src/model/PreModifyMediaResult.cc | 90 + .../model/PredictiveRecordFailureRequest.cc | 126 + .../model/PredictiveRecordFailureResult.cc | 76 + .../model/PredictiveRecordSuccessRequest.cc | 126 + .../model/PredictiveRecordSuccessResult.cc | 76 + .../model/PublishContactFlowVersionRequest.cc | 71 + .../model/PublishContactFlowVersionResult.cc | 76 + .../model/PublishPredictiveJobGroupRequest.cc | 60 + .../model/PublishPredictiveJobGroupResult.cc | 76 + ccc/src/model/PublishSurveyRequest.cc | 6 +- ccc/src/model/PublishSurveyResult.cc | 9 +- ccc/src/model/QueryRedialIndicatorRequest.cc | 71 + ccc/src/model/QueryRedialIndicatorResult.cc | 83 + ccc/src/model/RefreshTokenRequest.cc | 4 +- ccc/src/model/RefreshTokenResult.cc | 9 +- .../RemoveNumberFromSkillGroupRequest.cc | 71 + .../model/RemoveNumberFromSkillGroupResult.cc | 76 + ccc/src/model/RemovePhoneNumberRequest.cc | 6 +- ccc/src/model/RemovePhoneNumberResult.cc | 9 +- .../model/RemoveUsersFromSkillGroupRequest.cc | 72 + .../model/RemoveUsersFromSkillGroupResult.cc | 76 + ccc/src/model/RemoveUsersRequest.cc | 6 +- ccc/src/model/RemoveUsersResult.cc | 9 +- ccc/src/model/RequestLoginInfoRequest.cc | 4 +- ccc/src/model/RequestLoginInfoResult.cc | 23 +- ccc/src/model/ResumeJobsRequest.cc | 12 +- ccc/src/model/ResumeJobsResult.cc | 9 +- ccc/src/model/SaveStatsRequest.cc | 126 + ccc/src/model/SaveStatsResult.cc | 83 + ccc/src/model/SaveWebRTCStatsRequest.cc | 137 + ccc/src/model/SaveWebRTCStatsResult.cc | 83 + .../SendPredefinedShortMessageRequest.cc | 82 + .../model/SendPredefinedShortMessageResult.cc | 83 + ccc/src/model/SimpleDialRequest.cc | 82 + ccc/src/model/SimpleDialResult.cc | 104 + ccc/src/model/StartBack2BackCallRequest.cc | 12 +- ccc/src/model/StartBack2BackCallResult.cc | 9 +- ccc/src/model/StartJobRequest.cc | 12 +- ccc/src/model/StartJobResult.cc | 9 +- ccc/src/model/SubmitBatchJobsRequest.cc | 4 +- ccc/src/model/SubmitBatchJobsResult.cc | 9 +- ccc/src/model/SubmitCabRecordingRequest.cc | 82 + ccc/src/model/SubmitCabRecordingResult.cc | 76 + ccc/src/model/SuspendJobsRequest.cc | 12 +- ccc/src/model/SuspendJobsResult.cc | 9 +- ccc/src/model/TwoPartiesCallRequest.cc | 10 +- ccc/src/model/TwoPartiesCallResult.cc | 9 +- ccs/src/model/CreateTicketRequest.cc | 10 +- ccs/src/model/CreateTicketResult.cc | 9 +- ccs/src/model/GetHotlineRecordRequest.cc | 4 +- ccs/src/model/GetHotlineRecordResult.cc | 9 +- ccs/src/model/ProceedTicketRequest.cc | 10 +- ccs/src/model/ProceedTicketResult.cc | 9 +- ccs/src/model/QueryHotlineRecordRequest.cc | 32 +- ccs/src/model/QueryHotlineRecordResult.cc | 9 +- ccs/src/model/QueryTicketRequest.cc | 16 +- ccs/src/model/QueryTicketResult.cc | 9 +- cdn/CMakeLists.txt | 152 +- cdn/include/alibabacloud/cdn/CdnClient.h | 304 +- .../DescribeDomainBpsDataByTimeStampRequest.h | 72 +- .../DescribeDomainBpsDataByTimeStampResult.h | 1 + ...ibeRangeDataByLocateAndIspServiceRequest.h | 81 +- cdn/src/CdnClient.cc | 1266 +- cdn/src/model/AddCdnDomainRequest.cc | 28 +- cdn/src/model/AddCdnDomainResult.cc | 9 +- cdn/src/model/AddFCTriggerRequest.cc | 56 +- cdn/src/model/AddFCTriggerResult.cc | 9 +- .../model/AddLiveAppRecordConfigRequest.cc | 14 +- cdn/src/model/AddLiveAppRecordConfigResult.cc | 9 +- .../model/AddLiveAppSnapshotConfigRequest.cc | 18 +- .../model/AddLiveAppSnapshotConfigResult.cc | 9 +- cdn/src/model/AddLiveDomainMappingRequest.cc | 8 +- cdn/src/model/AddLiveDomainMappingResult.cc | 9 +- .../model/AddLiveStreamTranscodeRequest.cc | 16 +- cdn/src/model/AddLiveStreamTranscodeResult.cc | 9 +- .../BatchDeleteCdnDomainConfigRequest.cc | 10 +- .../model/BatchDeleteCdnDomainConfigResult.cc | 9 +- .../model/BatchSetCdnDomainConfigRequest.cc | 10 +- .../model/BatchSetCdnDomainConfigResult.cc | 9 +- ...CreateLiveStreamRecordIndexFilesRequest.cc | 20 +- .../CreateLiveStreamRecordIndexFilesResult.cc | 9 +- .../model/DeleteCacheExpiredConfigRequest.cc | 10 +- .../model/DeleteCacheExpiredConfigResult.cc | 9 +- cdn/src/model/DeleteCdnDomainRequest.cc | 8 +- cdn/src/model/DeleteCdnDomainResult.cc | 9 +- cdn/src/model/DeleteFCTriggerRequest.cc | 44 +- cdn/src/model/DeleteFCTriggerResult.cc | 9 +- .../model/DeleteHttpHeaderConfigRequest.cc | 8 +- cdn/src/model/DeleteHttpHeaderConfigResult.cc | 9 +- .../model/DeleteLiveAppRecordConfigRequest.cc | 8 +- .../model/DeleteLiveAppRecordConfigResult.cc | 9 +- .../DeleteLiveAppSnapshotConfigRequest.cc | 8 +- .../DeleteLiveAppSnapshotConfigResult.cc | 9 +- .../model/DeleteLiveDomainMappingRequest.cc | 8 +- .../model/DeleteLiveDomainMappingResult.cc | 9 +- .../model/DeleteLiveStreamTranscodeRequest.cc | 12 +- .../model/DeleteLiveStreamTranscodeResult.cc | 9 +- cdn/src/model/DeleteSpecificConfigRequest.cc | 10 +- cdn/src/model/DeleteSpecificConfigResult.cc | 9 +- .../model/DescribeCdnDomainConfigsRequest.cc | 8 +- .../model/DescribeCdnDomainConfigsResult.cc | 9 +- .../model/DescribeCdnDomainDetailRequest.cc | 6 +- .../model/DescribeCdnDomainDetailResult.cc | 9 +- cdn/src/model/DescribeCdnDomainLogsRequest.cc | 16 +- cdn/src/model/DescribeCdnDomainLogsResult.cc | 9 +- .../model/DescribeCdnMonitorDataRequest.cc | 52 +- cdn/src/model/DescribeCdnMonitorDataResult.cc | 9 +- .../model/DescribeCdnRegionAndIspRequest.cc | 4 +- .../model/DescribeCdnRegionAndIspResult.cc | 9 +- cdn/src/model/DescribeCdnServiceRequest.cc | 4 +- cdn/src/model/DescribeCdnServiceResult.cc | 9 +- cdn/src/model/DescribeCdnTypesRequest.cc | 6 +- cdn/src/model/DescribeCdnTypesResult.cc | 9 +- cdn/src/model/DescribeCdnUserQuotaRequest.cc | 4 +- cdn/src/model/DescribeCdnUserQuotaResult.cc | 9 +- .../model/DescribeCustomLogConfigRequest.cc | 44 +- .../model/DescribeCustomLogConfigResult.cc | 9 +- ...escribeDomainAverageResponseTimeRequest.cc | 60 +- ...DescribeDomainAverageResponseTimeResult.cc | 9 +- ...DescribeDomainBpsDataByTimeStampRequest.cc | 248 +- .../DescribeDomainBpsDataByTimeStampResult.cc | 11 +- cdn/src/model/DescribeDomainBpsDataRequest.cc | 60 +- cdn/src/model/DescribeDomainBpsDataResult.cc | 9 +- .../DescribeDomainCertificateInfoRequest.cc | 44 +- .../DescribeDomainCertificateInfoResult.cc | 9 +- cdn/src/model/DescribeDomainCnameRequest.cc | 42 +- cdn/src/model/DescribeDomainCnameResult.cc | 9 +- cdn/src/model/DescribeDomainConfigsRequest.cc | 8 +- cdn/src/model/DescribeDomainConfigsResult.cc | 9 +- .../DescribeDomainCustomLogConfigRequest.cc | 44 +- .../DescribeDomainCustomLogConfigResult.cc | 9 +- ...ribeDomainFileSizeProportionDataRequest.cc | 10 +- ...cribeDomainFileSizeProportionDataResult.cc | 9 +- .../model/DescribeDomainFlowDataRequest.cc | 58 +- cdn/src/model/DescribeDomainFlowDataResult.cc | 9 +- .../model/DescribeDomainHitRateDataRequest.cc | 52 +- .../model/DescribeDomainHitRateDataResult.cc | 9 +- .../DescribeDomainHttpCodeDataRequest.cc | 58 +- .../model/DescribeDomainHttpCodeDataResult.cc | 9 +- cdn/src/model/DescribeDomainISPDataRequest.cc | 50 +- cdn/src/model/DescribeDomainISPDataResult.cc | 9 +- .../DescribeDomainMax95BpsDataRequest.cc | 48 +- .../model/DescribeDomainMax95BpsDataResult.cc | 9 +- .../model/DescribeDomainPathDataRequest.cc | 54 +- cdn/src/model/DescribeDomainPathDataResult.cc | 9 +- cdn/src/model/DescribeDomainPvDataRequest.cc | 10 +- cdn/src/model/DescribeDomainPvDataResult.cc | 9 +- cdn/src/model/DescribeDomainQpsDataRequest.cc | 56 +- cdn/src/model/DescribeDomainQpsDataResult.cc | 9 +- .../DescribeDomainRealTimeBpsDataRequest.cc | 54 +- .../DescribeDomainRealTimeBpsDataResult.cc | 9 +- ...ibeDomainRealTimeByteHitRateDataRequest.cc | 50 +- ...ribeDomainRealTimeByteHitRateDataResult.cc | 9 +- ...scribeDomainRealTimeHttpCodeDataRequest.cc | 56 +- ...escribeDomainRealTimeHttpCodeDataResult.cc | 9 +- .../DescribeDomainRealTimeQpsDataRequest.cc | 54 +- .../DescribeDomainRealTimeQpsDataResult.cc | 9 +- ...ribeDomainRealTimeReqHitRateDataRequest.cc | 50 +- ...cribeDomainRealTimeReqHitRateDataResult.cc | 9 +- ...DescribeDomainRealTimeSrcBpsDataRequest.cc | 52 +- .../DescribeDomainRealTimeSrcBpsDataResult.cc | 9 +- ...ribeDomainRealTimeSrcTrafficDataRequest.cc | 52 +- ...cribeDomainRealTimeSrcTrafficDataResult.cc | 9 +- .../model/DescribeDomainRegionDataRequest.cc | 50 +- .../model/DescribeDomainRegionDataResult.cc | 9 +- .../DescribeDomainReqHitRateDataRequest.cc | 52 +- .../DescribeDomainReqHitRateDataResult.cc | 9 +- .../model/DescribeDomainSlowRatioRequest.cc | 50 +- .../model/DescribeDomainSlowRatioResult.cc | 9 +- .../model/DescribeDomainSrcBpsDataRequest.cc | 56 +- .../model/DescribeDomainSrcBpsDataResult.cc | 9 +- .../model/DescribeDomainSrcFlowDataRequest.cc | 56 +- .../model/DescribeDomainSrcFlowDataResult.cc | 9 +- .../DescribeDomainTopReferVisitRequest.cc | 10 +- .../DescribeDomainTopReferVisitResult.cc | 9 +- .../model/DescribeDomainTopUrlVisitRequest.cc | 10 +- .../model/DescribeDomainTopUrlVisitResult.cc | 9 +- cdn/src/model/DescribeDomainUvDataRequest.cc | 10 +- cdn/src/model/DescribeDomainUvDataResult.cc | 9 +- .../model/DescribeDomainsBySourceRequest.cc | 6 +- .../model/DescribeDomainsBySourceResult.cc | 9 +- .../model/DescribeDomainsUsageByDayRequest.cc | 50 +- .../model/DescribeDomainsUsageByDayResult.cc | 9 +- cdn/src/model/DescribeFCTriggerRequest.cc | 44 +- cdn/src/model/DescribeFCTriggerResult.cc | 9 +- cdn/src/model/DescribeIpInfoRequest.cc | 6 +- cdn/src/model/DescribeIpInfoResult.cc | 9 +- .../model/DescribeL2VipsByDomainRequest.cc | 6 +- cdn/src/model/DescribeL2VipsByDomainResult.cc | 9 +- .../DescribeL2VipsByDynamicDomainRequest.cc | 44 +- .../DescribeL2VipsByDynamicDomainResult.cc | 9 +- .../DescribeLivePullStreamConfigRequest.cc | 6 +- .../DescribeLivePullStreamConfigResult.cc | 9 +- .../model/DescribeLiveRecordConfigRequest.cc | 6 +- .../model/DescribeLiveRecordConfigResult.cc | 9 +- .../DescribeLiveSnapshotConfigRequest.cc | 16 +- .../model/DescribeLiveSnapshotConfigResult.cc | 9 +- .../DescribeLiveStreamBitRateDataRequest.cc | 14 +- .../DescribeLiveStreamBitRateDataResult.cc | 9 +- .../DescribeLiveStreamOnlineUserNumRequest.cc | 16 +- .../DescribeLiveStreamOnlineUserNumResult.cc | 9 +- .../DescribeLiveStreamRecordContentRequest.cc | 14 +- .../DescribeLiveStreamRecordContentResult.cc | 9 +- ...escribeLiveStreamRecordIndexFileRequest.cc | 12 +- ...DescribeLiveStreamRecordIndexFileResult.cc | 9 +- ...scribeLiveStreamRecordIndexFilesRequest.cc | 14 +- ...escribeLiveStreamRecordIndexFilesResult.cc | 9 +- .../DescribeLiveStreamSnapshotInfoRequest.cc | 16 +- .../DescribeLiveStreamSnapshotInfoResult.cc | 9 +- .../DescribeLiveStreamTranscodeInfoRequest.cc | 6 +- .../DescribeLiveStreamTranscodeInfoResult.cc | 9 +- .../DescribeLiveStreamsBlockListRequest.cc | 6 +- .../DescribeLiveStreamsBlockListResult.cc | 9 +- ...escribeLiveStreamsControlHistoryRequest.cc | 12 +- ...DescribeLiveStreamsControlHistoryResult.cc | 9 +- ...veStreamsFrameRateAndBitRateDataRequest.cc | 14 +- ...iveStreamsFrameRateAndBitRateDataResult.cc | 9 +- .../DescribeLiveStreamsOnlineListRequest.cc | 14 +- .../DescribeLiveStreamsOnlineListResult.cc | 9 +- .../DescribeLiveStreamsPublishListRequest.cc | 18 +- .../DescribeLiveStreamsPublishListResult.cc | 9 +- ...beRangeDataByLocateAndIspServiceRequest.cc | 269 +- ...ibeRangeDataByLocateAndIspServiceResult.cc | 9 +- cdn/src/model/DescribeRefreshQuotaRequest.cc | 4 +- cdn/src/model/DescribeRefreshQuotaResult.cc | 9 +- cdn/src/model/DescribeRefreshTasksRequest.cc | 24 +- cdn/src/model/DescribeRefreshTasksResult.cc | 9 +- .../model/DescribeTopDomainsByFlowRequest.cc | 50 +- .../model/DescribeTopDomainsByFlowResult.cc | 9 +- cdn/src/model/DescribeUserConfigsRequest.cc | 6 +- cdn/src/model/DescribeUserConfigsResult.cc | 9 +- .../DescribeUserCustomLogConfigRequest.cc | 2 +- .../DescribeUserCustomLogConfigResult.cc | 9 +- .../DescribeUserCustomerLabelsRequest.cc | 8 +- .../model/DescribeUserCustomerLabelsResult.cc | 9 +- cdn/src/model/DescribeUserDomainsRequest.cc | 26 +- cdn/src/model/DescribeUserDomainsResult.cc | 9 +- cdn/src/model/ForbidLiveStreamRequest.cc | 14 +- cdn/src/model/ForbidLiveStreamResult.cc | 9 +- .../model/ListDomainsByLogConfigIdRequest.cc | 44 +- .../model/ListDomainsByLogConfigIdResult.cc | 9 +- cdn/src/model/ModifyCdnDomainRequest.cc | 18 +- cdn/src/model/ModifyCdnDomainResult.cc | 9 +- cdn/src/model/ModifyCdnServiceRequest.cc | 6 +- cdn/src/model/ModifyCdnServiceResult.cc | 9 +- .../ModifyDomainCustomLogConfigRequest.cc | 46 +- .../ModifyDomainCustomLogConfigResult.cc | 9 +- .../ModifyFileCacheExpiredConfigRequest.cc | 14 +- .../ModifyFileCacheExpiredConfigResult.cc | 9 +- .../model/ModifyHttpHeaderConfigRequest.cc | 12 +- cdn/src/model/ModifyHttpHeaderConfigResult.cc | 9 +- .../ModifyPathCacheExpiredConfigRequest.cc | 14 +- .../ModifyPathCacheExpiredConfigResult.cc | 9 +- .../model/ModifyUserCustomLogConfigRequest.cc | 46 +- .../model/ModifyUserCustomLogConfigResult.cc | 9 +- cdn/src/model/OpenCdnServiceRequest.cc | 6 +- cdn/src/model/OpenCdnServiceResult.cc | 9 +- cdn/src/model/PushObjectCacheRequest.cc | 8 +- cdn/src/model/PushObjectCacheResult.cc | 9 +- cdn/src/model/RefreshObjectCachesRequest.cc | 8 +- cdn/src/model/RefreshObjectCachesResult.cc | 9 +- cdn/src/model/ResumeLiveStreamRequest.cc | 12 +- cdn/src/model/ResumeLiveStreamResult.cc | 9 +- cdn/src/model/SetCcConfigRequest.cc | 10 +- cdn/src/model/SetCcConfigResult.cc | 9 +- .../SetDomainGreenManagerConfigRequest.cc | 46 +- .../SetDomainGreenManagerConfigResult.cc | 9 +- .../SetDomainServerCertificateRequest.cc | 20 +- .../model/SetDomainServerCertificateResult.cc | 9 +- cdn/src/model/SetDynamicConfigRequest.cc | 16 +- cdn/src/model/SetDynamicConfigResult.cc | 9 +- cdn/src/model/SetErrorPageConfigRequest.cc | 10 +- cdn/src/model/SetErrorPageConfigResult.cc | 9 +- .../model/SetFileCacheExpiredConfigRequest.cc | 12 +- .../model/SetFileCacheExpiredConfigResult.cc | 9 +- .../model/SetForceRedirectConfigRequest.cc | 8 +- cdn/src/model/SetForceRedirectConfigResult.cc | 9 +- .../model/SetForwardSchemeConfigRequest.cc | 12 +- cdn/src/model/SetForwardSchemeConfigResult.cc | 9 +- .../model/SetHttpErrorPageConfigRequest.cc | 10 +- cdn/src/model/SetHttpErrorPageConfigResult.cc | 9 +- cdn/src/model/SetHttpHeaderConfigRequest.cc | 12 +- cdn/src/model/SetHttpHeaderConfigResult.cc | 9 +- cdn/src/model/SetHttpsOptionConfigRequest.cc | 8 +- cdn/src/model/SetHttpsOptionConfigResult.cc | 9 +- .../SetIgnoreQueryStringConfigRequest.cc | 12 +- .../model/SetIgnoreQueryStringConfigResult.cc | 9 +- cdn/src/model/SetIpAllowListConfigRequest.cc | 8 +- cdn/src/model/SetIpAllowListConfigResult.cc | 9 +- cdn/src/model/SetIpBlackListConfigRequest.cc | 8 +- cdn/src/model/SetIpBlackListConfigResult.cc | 9 +- cdn/src/model/SetL2OssKeyConfigRequest.cc | 8 +- cdn/src/model/SetL2OssKeyConfigResult.cc | 9 +- .../SetLiveStreamsNotifyUrlConfigRequest.cc | 8 +- .../SetLiveStreamsNotifyUrlConfigResult.cc | 9 +- cdn/src/model/SetOptimizeConfigRequest.cc | 8 +- cdn/src/model/SetOptimizeConfigResult.cc | 9 +- cdn/src/model/SetPageCompressConfigRequest.cc | 8 +- cdn/src/model/SetPageCompressConfigResult.cc | 9 +- .../model/SetPathCacheExpiredConfigRequest.cc | 12 +- .../model/SetPathCacheExpiredConfigResult.cc | 9 +- cdn/src/model/SetRangeConfigRequest.cc | 8 +- cdn/src/model/SetRangeConfigResult.cc | 9 +- cdn/src/model/SetRefererConfigRequest.cc | 14 +- cdn/src/model/SetRefererConfigResult.cc | 9 +- .../SetRemoveQueryStringConfigRequest.cc | 10 +- .../model/SetRemoveQueryStringConfigResult.cc | 9 +- cdn/src/model/SetReqAuthConfigRequest.cc | 16 +- cdn/src/model/SetReqAuthConfigResult.cc | 9 +- cdn/src/model/SetReqHeaderConfigRequest.cc | 12 +- cdn/src/model/SetReqHeaderConfigResult.cc | 9 +- cdn/src/model/SetSourceHostConfigRequest.cc | 10 +- cdn/src/model/SetSourceHostConfigResult.cc | 9 +- .../model/SetUserGreenManagerConfigRequest.cc | 8 +- .../model/SetUserGreenManagerConfigResult.cc | 9 +- cdn/src/model/SetVideoSeekConfigRequest.cc | 8 +- cdn/src/model/SetVideoSeekConfigResult.cc | 9 +- cdn/src/model/SetWaitingRoomConfigRequest.cc | 54 +- cdn/src/model/SetWaitingRoomConfigResult.cc | 9 +- cdn/src/model/StartCdnDomainRequest.cc | 6 +- cdn/src/model/StartCdnDomainResult.cc | 9 +- .../model/StartMixStreamsServiceRequest.cc | 20 +- cdn/src/model/StartMixStreamsServiceResult.cc | 9 +- cdn/src/model/StopCdnDomainRequest.cc | 6 +- cdn/src/model/StopCdnDomainResult.cc | 9 +- cdn/src/model/StopMixStreamsServiceRequest.cc | 16 +- cdn/src/model/StopMixStreamsServiceResult.cc | 9 +- cdn/src/model/UpdateFCTriggerRequest.cc | 52 +- cdn/src/model/UpdateFCTriggerResult.cc | 9 +- .../UpdateLiveAppSnapshotConfigRequest.cc | 18 +- .../UpdateLiveAppSnapshotConfigResult.cc | 9 +- chatbot/CMakeLists.txt | 196 +- .../alibabacloud/chatbot/ChatbotClient.h | 392 + .../model/ActivatePerspectiveRequest.h | 48 + .../chatbot/model/ActivatePerspectiveResult.h | 49 + .../chatbot/model/AddSynonymRequest.h | 51 + .../chatbot/model/AddSynonymResult.h | 49 + .../chatbot/model/AppendEntityMemberRequest.h | 54 + .../chatbot/model/AppendEntityMemberResult.h | 51 + .../alibabacloud/chatbot/model/ChatRequest.h | 3 + .../alibabacloud/chatbot/model/ChatResult.h | 1 + .../chatbot/model/CreateCategoryRequest.h | 51 + .../chatbot/model/CreateCategoryResult.h | 53 + .../chatbot/model/CreateCoreWordRequest.h | 48 + .../chatbot/model/CreateCoreWordResult.h | 51 + .../chatbot/model/CreateDialogRequest.h | 54 + .../chatbot/model/CreateDialogResult.h | 51 + .../chatbot/model/CreateEntityRequest.h | 60 + .../chatbot/model/CreateEntityResult.h | 51 + .../chatbot/model/CreateIntentRequest.h | 51 + .../chatbot/model/CreateIntentResult.h | 51 + .../chatbot/model/CreateKnowledgeRequest.h | 48 + .../chatbot/model/CreateKnowledgeResult.h | 51 + .../chatbot/model/CreatePerspectiveRequest.h | 48 + .../chatbot/model/CreatePerspectiveResult.h | 51 + .../chatbot/model/DeleteCategoryRequest.h | 48 + .../chatbot/model/DeleteCategoryResult.h | 51 + .../chatbot/model/DeleteCoreWordRequest.h | 48 + .../chatbot/model/DeleteCoreWordResult.h | 51 + .../chatbot/model/DeleteDialogRequest.h | 48 + .../chatbot/model/DeleteDialogResult.h | 49 + .../chatbot/model/DeleteEntityRequest.h | 48 + .../chatbot/model/DeleteEntityResult.h | 51 + .../chatbot/model/DeleteIntentRequest.h | 48 + .../chatbot/model/DeleteIntentResult.h | 51 + .../chatbot/model/DeleteKnowledgeRequest.h | 48 + .../chatbot/model/DeleteKnowledgeResult.h | 49 + .../chatbot/model/DescribeCategoryRequest.h | 48 + .../chatbot/model/DescribeCategoryResult.h | 55 + .../chatbot/model/DescribeCoreWordRequest.h | 48 + .../chatbot/model/DescribeCoreWordResult.h | 59 + .../chatbot/model/DescribeDialogFlowRequest.h | 48 + .../chatbot/model/DescribeDialogFlowResult.h | 208 + .../chatbot/model/DescribeDialogRequest.h | 48 + .../chatbot/model/DescribeDialogResult.h | 73 + .../chatbot/model/DescribeEntitiesRequest.h | 48 + .../chatbot/model/DescribeEntitiesResult.h | 76 + .../chatbot/model/DescribeIntentRequest.h | 48 + .../chatbot/model/DescribeIntentResult.h | 109 + .../chatbot/model/DescribeKnowledgeRequest.h | 48 + .../chatbot/model/DescribeKnowledgeResult.h | 106 + .../model/DescribePerspectiveRequest.h | 48 + .../chatbot/model/DescribePerspectiveResult.h | 67 + .../chatbot/model/DisableDialogFlowRequest.h | 48 + .../chatbot/model/DisableDialogFlowResult.h | 49 + .../chatbot/model/DisableKnowledgeRequest.h | 48 + .../chatbot/model/DisableKnowledgeResult.h | 49 + .../chatbot/model/FeedbackRequest.h | 57 + .../chatbot/model/FeedbackResult.h | 53 + .../model/MoveKnowledgeCategoryRequest.h | 51 + .../model/MoveKnowledgeCategoryResult.h | 49 + .../chatbot/model/PublishDialogFlowRequest.h | 48 + .../chatbot/model/PublishDialogFlowResult.h | 49 + .../chatbot/model/PublishKnowledgeRequest.h | 48 + .../chatbot/model/PublishKnowledgeResult.h | 49 + .../chatbot/model/QueryCategoriesRequest.h | 51 + .../chatbot/model/QueryCategoriesResult.h | 58 + .../chatbot/model/QueryCoreWordsRequest.h | 57 + .../chatbot/model/QueryCoreWordsResult.h | 65 + .../chatbot/model/QueryDialogsRequest.h | 57 + .../chatbot/model/QueryDialogsResult.h | 72 + .../chatbot/model/QueryEntitiesRequest.h | 57 + .../chatbot/model/QueryEntitiesResult.h | 76 + .../chatbot/model/QueryIntentsRequest.h | 57 + .../chatbot/model/QueryIntentsResult.h | 105 + .../chatbot/model/QueryKnowledgesRequest.h | 60 + .../chatbot/model/QueryKnowledgesResult.h | 72 + .../chatbot/model/QueryPerspectivesRequest.h | 45 + .../chatbot/model/QueryPerspectivesResult.h | 63 + .../model/QuerySystemEntitiesRequest.h | 48 + .../chatbot/model/QuerySystemEntitiesResult.h | 57 + .../chatbot/model/RemoveEntityMemberRequest.h | 54 + .../chatbot/model/RemoveEntityMemberResult.h | 51 + .../chatbot/model/RemoveSynonymRequest.h | 51 + .../chatbot/model/RemoveSynonymResult.h | 49 + .../chatbot/model/TestDialogFlowRequest.h | 48 + .../chatbot/model/TestDialogFlowResult.h | 49 + .../chatbot/model/UpdateCategoryRequest.h | 51 + .../chatbot/model/UpdateCategoryResult.h | 51 + .../chatbot/model/UpdateCoreWordRequest.h | 51 + .../chatbot/model/UpdateCoreWordResult.h | 51 + .../chatbot/model/UpdateDialogFlowRequest.h | 51 + .../chatbot/model/UpdateDialogFlowResult.h | 49 + .../chatbot/model/UpdateDialogRequest.h | 54 + .../chatbot/model/UpdateDialogResult.h | 49 + .../chatbot/model/UpdateEntityRequest.h | 60 + .../chatbot/model/UpdateEntityResult.h | 51 + .../chatbot/model/UpdateIntentRequest.h | 51 + .../chatbot/model/UpdateIntentResult.h | 51 + .../chatbot/model/UpdateKnowledgeRequest.h | 48 + .../chatbot/model/UpdateKnowledgeResult.h | 51 + .../chatbot/model/UpdatePerspectiveRequest.h | 51 + .../chatbot/model/UpdatePerspectiveResult.h | 49 + chatbot/src/ChatbotClient.cc | 1770 ++- .../src/model/ActivatePerspectiveRequest.cc | 38 + .../src/model/ActivatePerspectiveResult.cc | 48 + chatbot/src/model/AddSynonymRequest.cc | 49 + chatbot/src/model/AddSynonymResult.cc | 48 + .../src/model/AppendEntityMemberRequest.cc | 60 + chatbot/src/model/AppendEntityMemberResult.cc | 55 + chatbot/src/model/ChatRequest.cc | 29 +- chatbot/src/model/ChatResult.cc | 11 +- chatbot/src/model/CreateCategoryRequest.cc | 49 + chatbot/src/model/CreateCategoryResult.cc | 62 + chatbot/src/model/CreateCoreWordRequest.cc | 38 + chatbot/src/model/CreateCoreWordResult.cc | 55 + chatbot/src/model/CreateDialogRequest.cc | 60 + chatbot/src/model/CreateDialogResult.cc | 55 + chatbot/src/model/CreateEntityRequest.cc | 82 + chatbot/src/model/CreateEntityResult.cc | 55 + chatbot/src/model/CreateIntentRequest.cc | 49 + chatbot/src/model/CreateIntentResult.cc | 55 + chatbot/src/model/CreateKnowledgeRequest.cc | 38 + chatbot/src/model/CreateKnowledgeResult.cc | 55 + chatbot/src/model/CreatePerspectiveRequest.cc | 38 + chatbot/src/model/CreatePerspectiveResult.cc | 55 + chatbot/src/model/DeleteCategoryRequest.cc | 38 + chatbot/src/model/DeleteCategoryResult.cc | 55 + chatbot/src/model/DeleteCoreWordRequest.cc | 38 + chatbot/src/model/DeleteCoreWordResult.cc | 55 + chatbot/src/model/DeleteDialogRequest.cc | 38 + chatbot/src/model/DeleteDialogResult.cc | 48 + chatbot/src/model/DeleteEntityRequest.cc | 38 + chatbot/src/model/DeleteEntityResult.cc | 55 + chatbot/src/model/DeleteIntentRequest.cc | 38 + chatbot/src/model/DeleteIntentResult.cc | 55 + chatbot/src/model/DeleteKnowledgeRequest.cc | 38 + chatbot/src/model/DeleteKnowledgeResult.cc | 48 + chatbot/src/model/DescribeCategoryRequest.cc | 38 + chatbot/src/model/DescribeCategoryResult.cc | 69 + chatbot/src/model/DescribeCoreWordRequest.cc | 38 + chatbot/src/model/DescribeCoreWordResult.cc | 84 + .../src/model/DescribeDialogFlowRequest.cc | 38 + chatbot/src/model/DescribeDialogFlowResult.cc | 320 + chatbot/src/model/DescribeDialogRequest.cc | 38 + chatbot/src/model/DescribeDialogResult.cc | 132 + chatbot/src/model/DescribeEntitiesRequest.cc | 38 + chatbot/src/model/DescribeEntitiesResult.cc | 134 + chatbot/src/model/DescribeIntentRequest.cc | 38 + chatbot/src/model/DescribeIntentResult.cc | 200 + chatbot/src/model/DescribeKnowledgeRequest.cc | 38 + chatbot/src/model/DescribeKnowledgeResult.cc | 210 + .../src/model/DescribePerspectiveRequest.cc | 38 + .../src/model/DescribePerspectiveResult.cc | 111 + chatbot/src/model/DisableDialogFlowRequest.cc | 38 + chatbot/src/model/DisableDialogFlowResult.cc | 48 + chatbot/src/model/DisableKnowledgeRequest.cc | 38 + chatbot/src/model/DisableKnowledgeResult.cc | 48 + chatbot/src/model/FeedbackRequest.cc | 71 + chatbot/src/model/FeedbackResult.cc | 62 + .../src/model/MoveKnowledgeCategoryRequest.cc | 49 + .../src/model/MoveKnowledgeCategoryResult.cc | 48 + chatbot/src/model/PublishDialogFlowRequest.cc | 38 + chatbot/src/model/PublishDialogFlowResult.cc | 48 + chatbot/src/model/PublishKnowledgeRequest.cc | 38 + chatbot/src/model/PublishKnowledgeResult.cc | 48 + chatbot/src/model/QueryCategoriesRequest.cc | 49 + chatbot/src/model/QueryCategoriesResult.cc | 68 + chatbot/src/model/QueryCoreWordsRequest.cc | 71 + chatbot/src/model/QueryCoreWordsResult.cc | 91 + chatbot/src/model/QueryDialogsRequest.cc | 71 + chatbot/src/model/QueryDialogsResult.cc | 104 + chatbot/src/model/QueryEntitiesRequest.cc | 71 + chatbot/src/model/QueryEntitiesResult.cc | 111 + chatbot/src/model/QueryIntentsRequest.cc | 71 + chatbot/src/model/QueryIntentsResult.cc | 163 + chatbot/src/model/QueryKnowledgesRequest.cc | 82 + chatbot/src/model/QueryKnowledgesResult.cc | 105 + chatbot/src/model/QueryPerspectivesRequest.cc | 27 + chatbot/src/model/QueryPerspectivesResult.cc | 77 + .../src/model/QuerySystemEntitiesRequest.cc | 38 + .../src/model/QuerySystemEntitiesResult.cc | 65 + .../src/model/RemoveEntityMemberRequest.cc | 60 + chatbot/src/model/RemoveEntityMemberResult.cc | 55 + chatbot/src/model/RemoveSynonymRequest.cc | 49 + chatbot/src/model/RemoveSynonymResult.cc | 48 + chatbot/src/model/TestDialogFlowRequest.cc | 38 + chatbot/src/model/TestDialogFlowResult.cc | 48 + chatbot/src/model/UpdateCategoryRequest.cc | 49 + chatbot/src/model/UpdateCategoryResult.cc | 55 + chatbot/src/model/UpdateCoreWordRequest.cc | 49 + chatbot/src/model/UpdateCoreWordResult.cc | 55 + chatbot/src/model/UpdateDialogFlowRequest.cc | 49 + chatbot/src/model/UpdateDialogFlowResult.cc | 48 + chatbot/src/model/UpdateDialogRequest.cc | 60 + chatbot/src/model/UpdateDialogResult.cc | 48 + chatbot/src/model/UpdateEntityRequest.cc | 82 + chatbot/src/model/UpdateEntityResult.cc | 55 + chatbot/src/model/UpdateIntentRequest.cc | 49 + chatbot/src/model/UpdateIntentResult.cc | 55 + chatbot/src/model/UpdateKnowledgeRequest.cc | 38 + chatbot/src/model/UpdateKnowledgeResult.cc | 55 + chatbot/src/model/UpdatePerspectiveRequest.cc | 49 + chatbot/src/model/UpdatePerspectiveResult.cc | 48 + cloudapi/CMakeLists.txt | 494 + .../alibabacloud/cloudapi/CloudAPIClient.h | 870 ++ .../alibabacloud/cloudapi/CloudAPIExport.h | 62 +- .../cloudapi/model/AbolishApiRequest.h | 88 +- .../cloudapi/model/AbolishApiResult.h | 96 +- .../model/AddIpControlPolicyItemRequest.h | 88 +- .../model/AddIpControlPolicyItemResult.h | 96 +- .../model/AddTrafficSpecialControlRequest.h | 88 +- .../model/AddTrafficSpecialControlResult.h | 96 +- .../cloudapi/model/CreateApiGroupRequest.h | 88 +- .../cloudapi/model/CreateApiGroupResult.h | 96 +- .../cloudapi/model/CreateApiRequest.h | 88 +- .../cloudapi/model/CreateApiResult.h | 96 +- .../model/CreateApiStageVariableRequest.h | 88 +- .../model/CreateApiStageVariableResult.h | 96 +- .../cloudapi/model/CreateAppRequest.h | 88 +- .../cloudapi/model/CreateAppResult.h | 96 +- .../model/CreateIntranetDomainRequest.h | 88 +- .../model/CreateIntranetDomainResult.h | 96 +- .../cloudapi/model/CreateIpControlRequest.h | 88 +- .../cloudapi/model/CreateIpControlResult.h | 96 +- .../cloudapi/model/CreateLogConfigRequest.h | 88 +- .../cloudapi/model/CreateLogConfigResult.h | 96 +- .../cloudapi/model/CreateSignatureRequest.h | 88 +- .../cloudapi/model/CreateSignatureResult.h | 96 +- .../model/CreateTrafficControlRequest.h | 88 +- .../model/CreateTrafficControlResult.h | 96 +- .../DeleteAllTrafficSpecialControlRequest.h | 88 +- .../DeleteAllTrafficSpecialControlResult.h | 96 +- .../cloudapi/model/DeleteApiGroupRequest.h | 88 +- .../cloudapi/model/DeleteApiGroupResult.h | 96 +- .../cloudapi/model/DeleteApiRequest.h | 88 +- .../cloudapi/model/DeleteApiResult.h | 96 +- .../model/DeleteApiStageVariableRequest.h | 88 +- .../model/DeleteApiStageVariableResult.h | 96 +- .../cloudapi/model/DeleteAppRequest.h | 88 +- .../cloudapi/model/DeleteAppResult.h | 96 +- .../model/DeleteDomainCertificateRequest.h | 88 +- .../model/DeleteDomainCertificateResult.h | 96 +- .../cloudapi/model/DeleteDomainRequest.h | 88 +- .../cloudapi/model/DeleteDomainResult.h | 96 +- .../cloudapi/model/DeleteIpControlRequest.h | 88 +- .../cloudapi/model/DeleteIpControlResult.h | 96 +- .../cloudapi/model/DeleteLogConfigRequest.h | 88 +- .../cloudapi/model/DeleteLogConfigResult.h | 96 +- .../cloudapi/model/DeleteSignatureRequest.h | 88 +- .../cloudapi/model/DeleteSignatureResult.h | 96 +- .../model/DeleteTrafficControlRequest.h | 88 +- .../model/DeleteTrafficControlResult.h | 96 +- .../DeleteTrafficSpecialControlRequest.h | 88 +- .../model/DeleteTrafficSpecialControlResult.h | 96 +- .../cloudapi/model/DeployApiRequest.h | 88 +- .../cloudapi/model/DeployApiResult.h | 96 +- .../cloudapi/model/DescribeApiDocRequest.h | 88 +- .../cloudapi/model/DescribeApiDocResult.h | 96 +- .../model/DescribeApiErrorDataRequest.h | 88 +- .../model/DescribeApiErrorDataResult.h | 96 +- .../cloudapi/model/DescribeApiGroupRequest.h | 88 +- .../cloudapi/model/DescribeApiGroupResult.h | 96 +- .../cloudapi/model/DescribeApiGroupsRequest.h | 88 +- .../cloudapi/model/DescribeApiGroupsResult.h | 96 +- .../model/DescribeApiHistoriesRequest.h | 88 +- .../model/DescribeApiHistoriesResult.h | 96 +- .../model/DescribeApiHistoryRequest.h | 88 +- .../cloudapi/model/DescribeApiHistoryResult.h | 96 +- .../model/DescribeApiIpControlsRequest.h | 88 +- .../model/DescribeApiIpControlsResult.h | 96 +- .../model/DescribeApiLatencyDataRequest.h | 88 +- .../model/DescribeApiLatencyDataResult.h | 96 +- .../model/DescribeApiQpsDataRequest.h | 88 +- .../cloudapi/model/DescribeApiQpsDataResult.h | 96 +- .../cloudapi/model/DescribeApiRequest.h | 88 +- .../cloudapi/model/DescribeApiResult.h | 96 +- .../model/DescribeApiSignaturesRequest.h | 88 +- .../model/DescribeApiSignaturesResult.h | 96 +- .../cloudapi/model/DescribeApiStageRequest.h | 88 +- .../cloudapi/model/DescribeApiStageResult.h | 96 +- .../model/DescribeApiTrafficControlsRequest.h | 88 +- .../model/DescribeApiTrafficControlsResult.h | 96 +- .../model/DescribeApiTrafficDataRequest.h | 88 +- .../model/DescribeApiTrafficDataResult.h | 96 +- .../cloudapi/model/DescribeApisByAppRequest.h | 88 +- .../cloudapi/model/DescribeApisByAppResult.h | 96 +- .../model/DescribeApisByIpControlRequest.h | 88 +- .../model/DescribeApisByIpControlResult.h | 96 +- .../model/DescribeApisBySignatureRequest.h | 88 +- .../model/DescribeApisBySignatureResult.h | 96 +- .../DescribeApisByTrafficControlRequest.h | 88 +- .../DescribeApisByTrafficControlResult.h | 96 +- .../cloudapi/model/DescribeApisRequest.h | 88 +- .../cloudapi/model/DescribeApisResult.h | 96 +- .../model/DescribeAppAttributesRequest.h | 88 +- .../model/DescribeAppAttributesResult.h | 96 +- .../cloudapi/model/DescribeAppRequest.h | 88 +- .../cloudapi/model/DescribeAppResult.h | 96 +- .../model/DescribeAppSecurityRequest.h | 88 +- .../model/DescribeAppSecurityResult.h | 96 +- .../cloudapi/model/DescribeAppsRequest.h | 88 +- .../cloudapi/model/DescribeAppsResult.h | 96 +- .../model/DescribeAuthorizedApisRequest.h | 88 +- .../model/DescribeAuthorizedApisResult.h | 96 +- .../model/DescribeAuthorizedAppsRequest.h | 88 +- .../model/DescribeAuthorizedAppsResult.h | 96 +- .../model/DescribeDeployedApiRequest.h | 88 +- .../model/DescribeDeployedApiResult.h | 96 +- .../model/DescribeDeployedApisRequest.h | 88 +- .../model/DescribeDeployedApisResult.h | 96 +- .../cloudapi/model/DescribeDomainRequest.h | 88 +- .../cloudapi/model/DescribeDomainResult.h | 96 +- .../model/DescribeDomainsResolutionRequest.h | 88 +- .../model/DescribeDomainsResolutionResult.h | 96 +- .../model/DescribeHistoryApisRequest.h | 88 +- .../model/DescribeHistoryApisResult.h | 96 +- .../DescribeIpControlPolicyItemsRequest.h | 88 +- .../DescribeIpControlPolicyItemsResult.h | 96 +- .../model/DescribeIpControlsRequest.h | 88 +- .../cloudapi/model/DescribeIpControlsResult.h | 96 +- .../cloudapi/model/DescribeLogConfigRequest.h | 88 +- .../cloudapi/model/DescribeLogConfigResult.h | 96 +- .../model/DescribePurchasedApiGroupRequest.h | 88 +- .../model/DescribePurchasedApiGroupResult.h | 96 +- .../model/DescribePurchasedApiGroupsRequest.h | 88 +- .../model/DescribePurchasedApiGroupsResult.h | 96 +- .../model/DescribePurchasedApisRequest.h | 88 +- .../model/DescribePurchasedApisResult.h | 96 +- .../cloudapi/model/DescribeRegionsRequest.h | 88 +- .../cloudapi/model/DescribeRegionsResult.h | 96 +- .../model/DescribeSignaturesByApiRequest.h | 88 +- .../model/DescribeSignaturesByApiResult.h | 96 +- .../model/DescribeSignaturesRequest.h | 88 +- .../cloudapi/model/DescribeSignaturesResult.h | 96 +- .../model/DescribeSystemParametersRequest.h | 88 +- .../model/DescribeSystemParametersResult.h | 96 +- .../DescribeTrafficControlsByApiRequest.h | 88 +- .../DescribeTrafficControlsByApiResult.h | 96 +- .../model/DescribeTrafficControlsRequest.h | 88 +- .../model/DescribeTrafficControlsResult.h | 96 +- .../model/DescribeVpcAccessesRequest.h | 88 +- .../model/DescribeVpcAccessesResult.h | 96 +- .../cloudapi/model/ImportSwaggerRequest.h | 88 +- .../cloudapi/model/ImportSwaggerResult.h | 96 +- .../cloudapi/model/ListTagResourcesRequest.h | 88 +- .../cloudapi/model/ListTagResourcesResult.h | 96 +- .../cloudapi/model/ModifyApiGroupRequest.h | 88 +- .../cloudapi/model/ModifyApiGroupResult.h | 96 +- .../cloudapi/model/ModifyApiRequest.h | 88 +- .../cloudapi/model/ModifyApiResult.h | 96 +- .../cloudapi/model/ModifyAppRequest.h | 88 +- .../cloudapi/model/ModifyAppResult.h | 96 +- .../model/ModifyIpControlPolicyItemRequest.h | 88 +- .../model/ModifyIpControlPolicyItemResult.h | 96 +- .../cloudapi/model/ModifyIpControlRequest.h | 88 +- .../cloudapi/model/ModifyIpControlResult.h | 96 +- .../cloudapi/model/ModifyLogConfigRequest.h | 88 +- .../cloudapi/model/ModifyLogConfigResult.h | 96 +- .../cloudapi/model/ModifySignatureRequest.h | 88 +- .../cloudapi/model/ModifySignatureResult.h | 96 +- .../model/ModifyTrafficControlRequest.h | 88 +- .../model/ModifyTrafficControlResult.h | 96 +- .../cloudapi/model/ReactivateDomainRequest.h | 88 +- .../cloudapi/model/ReactivateDomainResult.h | 96 +- .../model/RemoveApisAuthoritiesRequest.h | 88 +- .../model/RemoveApisAuthoritiesResult.h | 96 +- .../model/RemoveAppsAuthoritiesRequest.h | 88 +- .../model/RemoveAppsAuthoritiesResult.h | 96 +- .../model/RemoveIpControlApisRequest.h | 88 +- .../model/RemoveIpControlApisResult.h | 96 +- .../model/RemoveIpControlPolicyItemRequest.h | 88 +- .../model/RemoveIpControlPolicyItemResult.h | 96 +- .../model/RemoveSignatureApisRequest.h | 88 +- .../model/RemoveSignatureApisResult.h | 96 +- .../model/RemoveTrafficControlApisRequest.h | 88 +- .../model/RemoveTrafficControlApisResult.h | 96 +- .../cloudapi/model/RemoveVpcAccessRequest.h | 88 +- .../cloudapi/model/RemoveVpcAccessResult.h | 96 +- .../cloudapi/model/ResetAppCodeRequest.h | 88 +- .../cloudapi/model/ResetAppCodeResult.h | 96 +- .../cloudapi/model/ResetAppSecretRequest.h | 88 +- .../cloudapi/model/ResetAppSecretResult.h | 96 +- .../cloudapi/model/SdkGenerateByAppRequest.h | 88 +- .../cloudapi/model/SdkGenerateByAppResult.h | 96 +- .../model/SdkGenerateByGroupRequest.h | 88 +- .../cloudapi/model/SdkGenerateByGroupResult.h | 96 +- .../model/SetApisAuthoritiesRequest.h | 88 +- .../cloudapi/model/SetApisAuthoritiesResult.h | 96 +- .../model/SetAppsAuthoritiesRequest.h | 88 +- .../cloudapi/model/SetAppsAuthoritiesResult.h | 96 +- .../model/SetDomainCertificateRequest.h | 88 +- .../model/SetDomainCertificateResult.h | 96 +- .../cloudapi/model/SetDomainRequest.h | 88 +- .../cloudapi/model/SetDomainResult.h | 96 +- .../model/SetDomainWebSocketStatusRequest.h | 88 +- .../model/SetDomainWebSocketStatusResult.h | 96 +- .../cloudapi/model/SetIpControlApisRequest.h | 88 +- .../cloudapi/model/SetIpControlApisResult.h | 96 +- .../cloudapi/model/SetSignatureApisRequest.h | 88 +- .../cloudapi/model/SetSignatureApisResult.h | 96 +- .../model/SetTrafficControlApisRequest.h | 88 +- .../model/SetTrafficControlApisResult.h | 96 +- .../cloudapi/model/SetVpcAccessRequest.h | 88 +- .../cloudapi/model/SetVpcAccessResult.h | 96 +- .../cloudapi/model/SwitchApiRequest.h | 88 +- .../cloudapi/model/SwitchApiResult.h | 96 +- .../cloudapi/model/TagResourcesRequest.h | 88 +- .../cloudapi/model/TagResourcesResult.h | 96 +- .../cloudapi/model/UntagResourcesRequest.h | 88 +- .../cloudapi/model/UntagResourcesResult.h | 96 +- cloudapi/src/CloudAPIClient.cc | 3761 +++++ cloudapi/src/model/AbolishApiRequest.cc | 54 +- cloudapi/src/model/AbolishApiResult.cc | 93 +- .../model/AddIpControlPolicyItemRequest.cc | 54 +- .../src/model/AddIpControlPolicyItemResult.cc | 93 +- .../model/AddTrafficSpecialControlRequest.cc | 54 +- .../model/AddTrafficSpecialControlResult.cc | 93 +- cloudapi/src/model/CreateApiGroupRequest.cc | 54 +- cloudapi/src/model/CreateApiGroupResult.cc | 93 +- cloudapi/src/model/CreateApiRequest.cc | 54 +- cloudapi/src/model/CreateApiResult.cc | 93 +- .../model/CreateApiStageVariableRequest.cc | 54 +- .../src/model/CreateApiStageVariableResult.cc | 93 +- cloudapi/src/model/CreateAppRequest.cc | 54 +- cloudapi/src/model/CreateAppResult.cc | 93 +- .../src/model/CreateIntranetDomainRequest.cc | 54 +- .../src/model/CreateIntranetDomainResult.cc | 93 +- cloudapi/src/model/CreateIpControlRequest.cc | 54 +- cloudapi/src/model/CreateIpControlResult.cc | 93 +- cloudapi/src/model/CreateLogConfigRequest.cc | 54 +- cloudapi/src/model/CreateLogConfigResult.cc | 93 +- cloudapi/src/model/CreateSignatureRequest.cc | 54 +- cloudapi/src/model/CreateSignatureResult.cc | 93 +- .../src/model/CreateTrafficControlRequest.cc | 54 +- .../src/model/CreateTrafficControlResult.cc | 93 +- .../DeleteAllTrafficSpecialControlRequest.cc | 54 +- .../DeleteAllTrafficSpecialControlResult.cc | 93 +- cloudapi/src/model/DeleteApiGroupRequest.cc | 54 +- cloudapi/src/model/DeleteApiGroupResult.cc | 93 +- cloudapi/src/model/DeleteApiRequest.cc | 54 +- cloudapi/src/model/DeleteApiResult.cc | 93 +- .../model/DeleteApiStageVariableRequest.cc | 54 +- .../src/model/DeleteApiStageVariableResult.cc | 93 +- cloudapi/src/model/DeleteAppRequest.cc | 54 +- cloudapi/src/model/DeleteAppResult.cc | 93 +- .../model/DeleteDomainCertificateRequest.cc | 54 +- .../model/DeleteDomainCertificateResult.cc | 93 +- cloudapi/src/model/DeleteDomainRequest.cc | 54 +- cloudapi/src/model/DeleteDomainResult.cc | 93 +- cloudapi/src/model/DeleteIpControlRequest.cc | 54 +- cloudapi/src/model/DeleteIpControlResult.cc | 93 +- cloudapi/src/model/DeleteLogConfigRequest.cc | 54 +- cloudapi/src/model/DeleteLogConfigResult.cc | 93 +- cloudapi/src/model/DeleteSignatureRequest.cc | 54 +- cloudapi/src/model/DeleteSignatureResult.cc | 93 +- .../src/model/DeleteTrafficControlRequest.cc | 54 +- .../src/model/DeleteTrafficControlResult.cc | 93 +- .../DeleteTrafficSpecialControlRequest.cc | 54 +- .../DeleteTrafficSpecialControlResult.cc | 93 +- cloudapi/src/model/DeployApiRequest.cc | 54 +- cloudapi/src/model/DeployApiResult.cc | 93 +- cloudapi/src/model/DescribeApiDocRequest.cc | 54 +- cloudapi/src/model/DescribeApiDocResult.cc | 93 +- .../src/model/DescribeApiErrorDataRequest.cc | 54 +- .../src/model/DescribeApiErrorDataResult.cc | 93 +- cloudapi/src/model/DescribeApiGroupRequest.cc | 54 +- cloudapi/src/model/DescribeApiGroupResult.cc | 93 +- .../src/model/DescribeApiGroupsRequest.cc | 54 +- cloudapi/src/model/DescribeApiGroupsResult.cc | 93 +- .../src/model/DescribeApiHistoriesRequest.cc | 54 +- .../src/model/DescribeApiHistoriesResult.cc | 93 +- .../src/model/DescribeApiHistoryRequest.cc | 54 +- .../src/model/DescribeApiHistoryResult.cc | 93 +- .../src/model/DescribeApiIpControlsRequest.cc | 54 +- .../src/model/DescribeApiIpControlsResult.cc | 93 +- .../model/DescribeApiLatencyDataRequest.cc | 54 +- .../src/model/DescribeApiLatencyDataResult.cc | 93 +- .../src/model/DescribeApiQpsDataRequest.cc | 54 +- .../src/model/DescribeApiQpsDataResult.cc | 93 +- cloudapi/src/model/DescribeApiRequest.cc | 54 +- cloudapi/src/model/DescribeApiResult.cc | 93 +- .../src/model/DescribeApiSignaturesRequest.cc | 54 +- .../src/model/DescribeApiSignaturesResult.cc | 93 +- cloudapi/src/model/DescribeApiStageRequest.cc | 54 +- cloudapi/src/model/DescribeApiStageResult.cc | 93 +- .../DescribeApiTrafficControlsRequest.cc | 54 +- .../model/DescribeApiTrafficControlsResult.cc | 93 +- .../model/DescribeApiTrafficDataRequest.cc | 54 +- .../src/model/DescribeApiTrafficDataResult.cc | 93 +- .../src/model/DescribeApisByAppRequest.cc | 54 +- cloudapi/src/model/DescribeApisByAppResult.cc | 93 +- .../model/DescribeApisByIpControlRequest.cc | 54 +- .../model/DescribeApisByIpControlResult.cc | 93 +- .../model/DescribeApisBySignatureRequest.cc | 54 +- .../model/DescribeApisBySignatureResult.cc | 93 +- .../DescribeApisByTrafficControlRequest.cc | 54 +- .../DescribeApisByTrafficControlResult.cc | 93 +- cloudapi/src/model/DescribeApisRequest.cc | 54 +- cloudapi/src/model/DescribeApisResult.cc | 93 +- .../src/model/DescribeAppAttributesRequest.cc | 54 +- .../src/model/DescribeAppAttributesResult.cc | 93 +- cloudapi/src/model/DescribeAppRequest.cc | 54 +- cloudapi/src/model/DescribeAppResult.cc | 93 +- .../src/model/DescribeAppSecurityRequest.cc | 54 +- .../src/model/DescribeAppSecurityResult.cc | 93 +- cloudapi/src/model/DescribeAppsRequest.cc | 54 +- cloudapi/src/model/DescribeAppsResult.cc | 93 +- .../model/DescribeAuthorizedApisRequest.cc | 54 +- .../src/model/DescribeAuthorizedApisResult.cc | 93 +- .../model/DescribeAuthorizedAppsRequest.cc | 54 +- .../src/model/DescribeAuthorizedAppsResult.cc | 93 +- .../src/model/DescribeDeployedApiRequest.cc | 54 +- .../src/model/DescribeDeployedApiResult.cc | 93 +- .../src/model/DescribeDeployedApisRequest.cc | 54 +- .../src/model/DescribeDeployedApisResult.cc | 93 +- cloudapi/src/model/DescribeDomainRequest.cc | 54 +- cloudapi/src/model/DescribeDomainResult.cc | 93 +- .../model/DescribeDomainsResolutionRequest.cc | 54 +- .../model/DescribeDomainsResolutionResult.cc | 93 +- .../src/model/DescribeHistoryApisRequest.cc | 54 +- .../src/model/DescribeHistoryApisResult.cc | 93 +- .../DescribeIpControlPolicyItemsRequest.cc | 54 +- .../DescribeIpControlPolicyItemsResult.cc | 93 +- .../src/model/DescribeIpControlsRequest.cc | 54 +- .../src/model/DescribeIpControlsResult.cc | 93 +- .../src/model/DescribeLogConfigRequest.cc | 54 +- cloudapi/src/model/DescribeLogConfigResult.cc | 93 +- .../model/DescribePurchasedApiGroupRequest.cc | 54 +- .../model/DescribePurchasedApiGroupResult.cc | 93 +- .../DescribePurchasedApiGroupsRequest.cc | 54 +- .../model/DescribePurchasedApiGroupsResult.cc | 93 +- .../src/model/DescribePurchasedApisRequest.cc | 54 +- .../src/model/DescribePurchasedApisResult.cc | 93 +- cloudapi/src/model/DescribeRegionsRequest.cc | 54 +- cloudapi/src/model/DescribeRegionsResult.cc | 93 +- .../model/DescribeSignaturesByApiRequest.cc | 54 +- .../model/DescribeSignaturesByApiResult.cc | 93 +- .../src/model/DescribeSignaturesRequest.cc | 54 +- .../src/model/DescribeSignaturesResult.cc | 93 +- .../model/DescribeSystemParametersRequest.cc | 54 +- .../model/DescribeSystemParametersResult.cc | 93 +- .../DescribeTrafficControlsByApiRequest.cc | 54 +- .../DescribeTrafficControlsByApiResult.cc | 93 +- .../model/DescribeTrafficControlsRequest.cc | 54 +- .../model/DescribeTrafficControlsResult.cc | 93 +- .../src/model/DescribeVpcAccessesRequest.cc | 54 +- .../src/model/DescribeVpcAccessesResult.cc | 93 +- cloudapi/src/model/ImportSwaggerRequest.cc | 54 +- cloudapi/src/model/ImportSwaggerResult.cc | 93 +- cloudapi/src/model/ListTagResourcesRequest.cc | 54 +- cloudapi/src/model/ListTagResourcesResult.cc | 93 +- cloudapi/src/model/ModifyApiGroupRequest.cc | 54 +- cloudapi/src/model/ModifyApiGroupResult.cc | 93 +- cloudapi/src/model/ModifyApiRequest.cc | 54 +- cloudapi/src/model/ModifyApiResult.cc | 93 +- cloudapi/src/model/ModifyAppRequest.cc | 54 +- cloudapi/src/model/ModifyAppResult.cc | 93 +- .../model/ModifyIpControlPolicyItemRequest.cc | 54 +- .../model/ModifyIpControlPolicyItemResult.cc | 93 +- cloudapi/src/model/ModifyIpControlRequest.cc | 54 +- cloudapi/src/model/ModifyIpControlResult.cc | 93 +- cloudapi/src/model/ModifyLogConfigRequest.cc | 54 +- cloudapi/src/model/ModifyLogConfigResult.cc | 93 +- cloudapi/src/model/ModifySignatureRequest.cc | 54 +- cloudapi/src/model/ModifySignatureResult.cc | 93 +- .../src/model/ModifyTrafficControlRequest.cc | 54 +- .../src/model/ModifyTrafficControlResult.cc | 93 +- cloudapi/src/model/ReactivateDomainRequest.cc | 54 +- cloudapi/src/model/ReactivateDomainResult.cc | 93 +- .../src/model/RemoveApisAuthoritiesRequest.cc | 54 +- .../src/model/RemoveApisAuthoritiesResult.cc | 93 +- .../src/model/RemoveAppsAuthoritiesRequest.cc | 54 +- .../src/model/RemoveAppsAuthoritiesResult.cc | 93 +- .../src/model/RemoveIpControlApisRequest.cc | 54 +- .../src/model/RemoveIpControlApisResult.cc | 93 +- .../model/RemoveIpControlPolicyItemRequest.cc | 54 +- .../model/RemoveIpControlPolicyItemResult.cc | 93 +- .../src/model/RemoveSignatureApisRequest.cc | 54 +- .../src/model/RemoveSignatureApisResult.cc | 93 +- .../model/RemoveTrafficControlApisRequest.cc | 54 +- .../model/RemoveTrafficControlApisResult.cc | 93 +- cloudapi/src/model/RemoveVpcAccessRequest.cc | 54 +- cloudapi/src/model/RemoveVpcAccessResult.cc | 93 +- cloudapi/src/model/ResetAppCodeRequest.cc | 54 +- cloudapi/src/model/ResetAppCodeResult.cc | 93 +- cloudapi/src/model/ResetAppSecretRequest.cc | 54 +- cloudapi/src/model/ResetAppSecretResult.cc | 93 +- cloudapi/src/model/SdkGenerateByAppRequest.cc | 54 +- cloudapi/src/model/SdkGenerateByAppResult.cc | 93 +- .../src/model/SdkGenerateByGroupRequest.cc | 54 +- .../src/model/SdkGenerateByGroupResult.cc | 93 +- .../src/model/SetApisAuthoritiesRequest.cc | 54 +- .../src/model/SetApisAuthoritiesResult.cc | 93 +- .../src/model/SetAppsAuthoritiesRequest.cc | 54 +- .../src/model/SetAppsAuthoritiesResult.cc | 93 +- .../src/model/SetDomainCertificateRequest.cc | 54 +- .../src/model/SetDomainCertificateResult.cc | 93 +- cloudapi/src/model/SetDomainRequest.cc | 54 +- cloudapi/src/model/SetDomainResult.cc | 93 +- .../model/SetDomainWebSocketStatusRequest.cc | 54 +- .../model/SetDomainWebSocketStatusResult.cc | 93 +- cloudapi/src/model/SetIpControlApisRequest.cc | 54 +- cloudapi/src/model/SetIpControlApisResult.cc | 93 +- cloudapi/src/model/SetSignatureApisRequest.cc | 54 +- cloudapi/src/model/SetSignatureApisResult.cc | 93 +- .../src/model/SetTrafficControlApisRequest.cc | 54 +- .../src/model/SetTrafficControlApisResult.cc | 93 +- cloudapi/src/model/SetVpcAccessRequest.cc | 54 +- cloudapi/src/model/SetVpcAccessResult.cc | 93 +- cloudapi/src/model/SwitchApiRequest.cc | 54 +- cloudapi/src/model/SwitchApiResult.cc | 93 +- cloudapi/src/model/TagResourcesRequest.cc | 54 +- cloudapi/src/model/TagResourcesResult.cc | 93 +- cloudapi/src/model/UntagResourcesRequest.cc | 54 +- cloudapi/src/model/UntagResourcesResult.cc | 93 +- cloudauth/CMakeLists.txt | 204 +- .../alibabacloud/cloudauth/CloudauthClient.h | 188 +- .../alibabacloud/cloudauth/CloudauthExport.h | 62 +- .../cloudauth/model/CompareFacesRequest.h | 88 +- .../cloudauth/model/CompareFacesResult.h | 96 +- .../cloudauth/model/CreateAuthKeyRequest.h | 88 +- .../cloudauth/model/CreateAuthKeyResult.h | 96 +- .../cloudauth/model/CreateVerifySDKRequest.h | 88 +- .../cloudauth/model/CreateVerifySDKResult.h | 96 +- .../model/DescribeDeviceInfoRequest.h | 88 +- .../model/DescribeDeviceInfoResult.h | 96 +- .../model/DescribeVerifySDKRequest.h | 88 +- .../cloudauth/model/DescribeVerifySDKResult.h | 96 +- .../model/DetectFaceAttributesRequest.h | 88 +- .../model/DetectFaceAttributesResult.h | 96 +- .../cloudauth/model/GetMaterialsRequest.h | 88 +- .../cloudauth/model/GetMaterialsResult.h | 96 +- .../cloudauth/model/GetStatusRequest.h | 88 +- .../cloudauth/model/GetStatusResult.h | 96 +- .../cloudauth/model/GetVerifyTokenRequest.h | 88 +- .../cloudauth/model/GetVerifyTokenResult.h | 96 +- .../cloudauth/model/ModifyDeviceInfoRequest.h | 88 +- .../cloudauth/model/ModifyDeviceInfoResult.h | 96 +- .../cloudauth/model/SubmitMaterialsRequest.h | 88 +- .../cloudauth/model/SubmitMaterialsResult.h | 96 +- .../model/SubmitVerificationRequest.h | 88 +- .../model/SubmitVerificationResult.h | 96 +- cloudauth/src/CloudauthClient.cc | 968 +- cloudauth/src/model/CompareFacesRequest.cc | 54 +- cloudauth/src/model/CompareFacesResult.cc | 93 +- cloudauth/src/model/CreateAuthKeyRequest.cc | 54 +- cloudauth/src/model/CreateAuthKeyResult.cc | 93 +- cloudauth/src/model/CreateVerifySDKRequest.cc | 54 +- cloudauth/src/model/CreateVerifySDKResult.cc | 93 +- .../src/model/DescribeDeviceInfoRequest.cc | 54 +- .../src/model/DescribeDeviceInfoResult.cc | 93 +- .../src/model/DescribeVerifySDKRequest.cc | 54 +- .../src/model/DescribeVerifySDKResult.cc | 93 +- .../src/model/DetectFaceAttributesRequest.cc | 54 +- .../src/model/DetectFaceAttributesResult.cc | 93 +- cloudauth/src/model/GetMaterialsRequest.cc | 54 +- cloudauth/src/model/GetMaterialsResult.cc | 93 +- cloudauth/src/model/GetStatusRequest.cc | 54 +- cloudauth/src/model/GetStatusResult.cc | 93 +- cloudauth/src/model/GetVerifyTokenRequest.cc | 54 +- cloudauth/src/model/GetVerifyTokenResult.cc | 93 +- .../src/model/ModifyDeviceInfoRequest.cc | 54 +- cloudauth/src/model/ModifyDeviceInfoResult.cc | 93 +- cloudauth/src/model/SubmitMaterialsRequest.cc | 54 +- cloudauth/src/model/SubmitMaterialsResult.cc | 93 +- .../src/model/SubmitVerificationRequest.cc | 54 +- .../src/model/SubmitVerificationResult.cc | 93 +- cloudphoto/CMakeLists.txt | 40 +- .../cloudphoto/CloudPhotoClient.h | 80 +- .../cloudphoto/model/FetchLibrariesRequest.h | 3 + .../cloudphoto/model/FetchLibrariesResult.h | 1 + cloudphoto/src/CloudPhotoClient.cc | 360 +- cloudphoto/src/model/ActivatePhotosRequest.cc | 6 +- cloudphoto/src/model/ActivatePhotosResult.cc | 9 +- cloudphoto/src/model/AddAlbumPhotosRequest.cc | 8 +- cloudphoto/src/model/AddAlbumPhotosResult.cc | 9 +- cloudphoto/src/model/CreateAlbumRequest.cc | 8 +- cloudphoto/src/model/CreateAlbumResult.cc | 9 +- cloudphoto/src/model/CreateEventRequest.cc | 22 +- cloudphoto/src/model/CreateEventResult.cc | 9 +- cloudphoto/src/model/CreatePhotoRequest.cc | 20 +- cloudphoto/src/model/CreatePhotoResult.cc | 9 +- .../src/model/CreatePhotoStoreRequest.cc | 8 +- .../src/model/CreatePhotoStoreResult.cc | 9 +- .../src/model/CreateTransactionRequest.cc | 12 +- .../src/model/CreateTransactionResult.cc | 9 +- cloudphoto/src/model/DeleteAlbumsRequest.cc | 6 +- cloudphoto/src/model/DeleteAlbumsResult.cc | 9 +- cloudphoto/src/model/DeleteEventRequest.cc | 6 +- cloudphoto/src/model/DeleteEventResult.cc | 9 +- cloudphoto/src/model/DeleteFacesRequest.cc | 6 +- cloudphoto/src/model/DeleteFacesResult.cc | 9 +- .../src/model/DeletePhotoStoreRequest.cc | 2 +- .../src/model/DeletePhotoStoreResult.cc | 9 +- cloudphoto/src/model/DeletePhotosRequest.cc | 6 +- cloudphoto/src/model/DeletePhotosResult.cc | 9 +- cloudphoto/src/model/EditEventRequest.cc | 24 +- cloudphoto/src/model/EditEventResult.cc | 9 +- cloudphoto/src/model/EditPhotoStoreRequest.cc | 12 +- cloudphoto/src/model/EditPhotoStoreResult.cc | 9 +- cloudphoto/src/model/EditPhotosRequest.cc | 14 +- cloudphoto/src/model/EditPhotosResult.cc | 9 +- .../src/model/FetchAlbumTagPhotosRequest.cc | 12 +- .../src/model/FetchAlbumTagPhotosResult.cc | 9 +- cloudphoto/src/model/FetchLibrariesRequest.cc | 17 +- cloudphoto/src/model/FetchLibrariesResult.cc | 11 +- .../src/model/FetchMomentPhotosRequest.cc | 14 +- .../src/model/FetchMomentPhotosResult.cc | 9 +- cloudphoto/src/model/FetchPhotosRequest.cc | 14 +- cloudphoto/src/model/FetchPhotosResult.cc | 9 +- .../src/model/GetAlbumsByNamesRequest.cc | 6 +- .../src/model/GetAlbumsByNamesResult.cc | 9 +- cloudphoto/src/model/GetDownloadUrlRequest.cc | 6 +- cloudphoto/src/model/GetDownloadUrlResult.cc | 9 +- .../src/model/GetDownloadUrlsRequest.cc | 6 +- cloudphoto/src/model/GetDownloadUrlsResult.cc | 9 +- cloudphoto/src/model/GetEventRequest.cc | 6 +- cloudphoto/src/model/GetEventResult.cc | 9 +- .../src/model/GetFramedPhotoUrlsRequest.cc | 8 +- .../src/model/GetFramedPhotoUrlsResult.cc | 9 +- cloudphoto/src/model/GetLibraryRequest.cc | 4 +- cloudphoto/src/model/GetLibraryResult.cc | 9 +- cloudphoto/src/model/GetPhotoStoreRequest.cc | 2 +- cloudphoto/src/model/GetPhotoStoreResult.cc | 9 +- .../src/model/GetPhotosByMd5sRequest.cc | 8 +- cloudphoto/src/model/GetPhotosByMd5sResult.cc | 9 +- cloudphoto/src/model/GetPhotosRequest.cc | 6 +- cloudphoto/src/model/GetPhotosResult.cc | 9 +- .../src/model/GetPrivateAccessUrlsRequest.cc | 8 +- .../src/model/GetPrivateAccessUrlsResult.cc | 9 +- .../src/model/GetPublicAccessUrlsRequest.cc | 10 +- .../src/model/GetPublicAccessUrlsResult.cc | 9 +- cloudphoto/src/model/GetQuotaRequest.cc | 4 +- cloudphoto/src/model/GetQuotaResult.cc | 9 +- .../src/model/GetSimilarPhotosRequest.cc | 6 +- .../src/model/GetSimilarPhotosResult.cc | 9 +- cloudphoto/src/model/GetThumbnailRequest.cc | 8 +- cloudphoto/src/model/GetThumbnailResult.cc | 9 +- cloudphoto/src/model/GetThumbnailsRequest.cc | 8 +- cloudphoto/src/model/GetThumbnailsResult.cc | 9 +- cloudphoto/src/model/GetVideoCoverRequest.cc | 8 +- cloudphoto/src/model/GetVideoCoverResult.cc | 9 +- .../src/model/InactivatePhotosRequest.cc | 8 +- .../src/model/InactivatePhotosResult.cc | 9 +- cloudphoto/src/model/LikePhotoRequest.cc | 6 +- cloudphoto/src/model/LikePhotoResult.cc | 9 +- .../src/model/ListAlbumPhotosRequest.cc | 14 +- cloudphoto/src/model/ListAlbumPhotosResult.cc | 9 +- cloudphoto/src/model/ListAlbumsRequest.cc | 12 +- cloudphoto/src/model/ListAlbumsResult.cc | 9 +- cloudphoto/src/model/ListEventsRequest.cc | 10 +- cloudphoto/src/model/ListEventsResult.cc | 9 +- cloudphoto/src/model/ListFacePhotosRequest.cc | 14 +- cloudphoto/src/model/ListFacePhotosResult.cc | 9 +- cloudphoto/src/model/ListFacesRequest.cc | 14 +- cloudphoto/src/model/ListFacesResult.cc | 9 +- .../src/model/ListMomentPhotosRequest.cc | 14 +- .../src/model/ListMomentPhotosResult.cc | 9 +- cloudphoto/src/model/ListMomentsRequest.cc | 12 +- cloudphoto/src/model/ListMomentsResult.cc | 9 +- cloudphoto/src/model/ListPhotoFacesRequest.cc | 6 +- cloudphoto/src/model/ListPhotoFacesResult.cc | 9 +- cloudphoto/src/model/ListPhotoStoresResult.cc | 9 +- cloudphoto/src/model/ListPhotoTagsRequest.cc | 8 +- cloudphoto/src/model/ListPhotoTagsResult.cc | 9 +- cloudphoto/src/model/ListPhotosRequest.cc | 12 +- cloudphoto/src/model/ListPhotosResult.cc | 9 +- .../src/model/ListRegisteredTagsRequest.cc | 4 +- .../src/model/ListRegisteredTagsResult.cc | 9 +- cloudphoto/src/model/ListTagPhotosRequest.cc | 14 +- cloudphoto/src/model/ListTagPhotosResult.cc | 9 +- cloudphoto/src/model/ListTagsRequest.cc | 6 +- cloudphoto/src/model/ListTagsResult.cc | 9 +- .../src/model/ListTimeLinePhotosRequest.cc | 18 +- .../src/model/ListTimeLinePhotosResult.cc | 9 +- cloudphoto/src/model/ListTimeLinesRequest.cc | 18 +- cloudphoto/src/model/ListTimeLinesResult.cc | 9 +- cloudphoto/src/model/MergeFacesRequest.cc | 8 +- cloudphoto/src/model/MergeFacesResult.cc | 9 +- .../src/model/MoveAlbumPhotosRequest.cc | 10 +- cloudphoto/src/model/MoveAlbumPhotosResult.cc | 9 +- cloudphoto/src/model/MoveFacePhotosRequest.cc | 10 +- cloudphoto/src/model/MoveFacePhotosResult.cc | 9 +- .../src/model/ReactivatePhotosRequest.cc | 6 +- .../src/model/ReactivatePhotosResult.cc | 9 +- cloudphoto/src/model/RegisterPhotoRequest.cc | 26 +- cloudphoto/src/model/RegisterPhotoResult.cc | 9 +- cloudphoto/src/model/RegisterTagRequest.cc | 8 +- cloudphoto/src/model/RegisterTagResult.cc | 9 +- .../src/model/RemoveAlbumPhotosRequest.cc | 8 +- .../src/model/RemoveAlbumPhotosResult.cc | 9 +- .../src/model/RemoveFacePhotosRequest.cc | 8 +- .../src/model/RemoveFacePhotosResult.cc | 9 +- cloudphoto/src/model/RenameAlbumRequest.cc | 8 +- cloudphoto/src/model/RenameAlbumResult.cc | 9 +- cloudphoto/src/model/RenameFaceRequest.cc | 8 +- cloudphoto/src/model/RenameFaceResult.cc | 9 +- cloudphoto/src/model/SearchPhotosRequest.cc | 10 +- cloudphoto/src/model/SearchPhotosResult.cc | 9 +- cloudphoto/src/model/SetAlbumCoverRequest.cc | 8 +- cloudphoto/src/model/SetAlbumCoverResult.cc | 9 +- cloudphoto/src/model/SetFaceCoverRequest.cc | 8 +- cloudphoto/src/model/SetFaceCoverResult.cc | 9 +- cloudphoto/src/model/SetMeRequest.cc | 6 +- cloudphoto/src/model/SetMeResult.cc | 9 +- cloudphoto/src/model/SetQuotaRequest.cc | 6 +- cloudphoto/src/model/SetQuotaResult.cc | 9 +- cloudphoto/src/model/TagPhotoRequest.cc | 10 +- cloudphoto/src/model/TagPhotoResult.cc | 9 +- cloudphoto/src/model/ToggleFeaturesRequest.cc | 6 +- cloudphoto/src/model/ToggleFeaturesResult.cc | 9 +- cloudwf/CMakeLists.txt | 180 +- .../alibabacloud/cloudwf/CloudwfClient.h | 352 +- cloudwf/src/CloudwfClient.cc | 1530 +- cloudwf/src/model/AddApgroupConfigRequest.cc | 8 +- cloudwf/src/model/AddApgroupConfigResult.cc | 9 +- .../src/model/AliyunRegisterApAssetRequest.cc | 8 +- .../src/model/AliyunRegisterApAssetResult.cc | 9 +- cloudwf/src/model/ApgroupBatchAddApRequest.cc | 6 +- cloudwf/src/model/ApgroupBatchAddApResult.cc | 9 +- .../src/model/ApgroupBatchDeleteApRequest.cc | 4 +- .../src/model/ApgroupBatchDeleteApResult.cc | 9 +- cloudwf/src/model/AreaCreateRequest.cc | 8 +- cloudwf/src/model/AreaCreateResult.cc | 9 +- cloudwf/src/model/AreaDeleteRequest.cc | 6 +- cloudwf/src/model/AreaDeleteResult.cc | 9 +- cloudwf/src/model/AreaInfoRequest.cc | 6 +- cloudwf/src/model/AreaInfoResult.cc | 9 +- cloudwf/src/model/AreaShowListRequest.cc | 8 +- cloudwf/src/model/AreaShowListResult.cc | 9 +- cloudwf/src/model/AreaUpdateRequest.cc | 10 +- cloudwf/src/model/AreaUpdateResult.cc | 9 +- .../model/BatchChangeGroupApNameRequest.cc | 4 +- .../src/model/BatchChangeGroupApNameResult.cc | 9 +- .../src/model/BatchRegisterApAssetRequest.cc | 4 +- .../src/model/BatchRegisterApAssetResult.cc | 9 +- .../src/model/BatchSaveApPositionRequest.cc | 4 +- .../src/model/BatchSaveApPositionResult.cc | 9 +- cloudwf/src/model/BusinessCreateRequest.cc | 26 +- cloudwf/src/model/BusinessCreateResult.cc | 9 +- cloudwf/src/model/BusinessInfoRequest.cc | 4 +- cloudwf/src/model/BusinessInfoResult.cc | 9 +- cloudwf/src/model/BusinessShowListRequest.cc | 6 +- cloudwf/src/model/BusinessShowListResult.cc | 9 +- cloudwf/src/model/BusinessUpdateRequest.cc | 16 +- cloudwf/src/model/BusinessUpdateResult.cc | 9 +- cloudwf/src/model/CeaseInstanceRequest.cc | 6 +- cloudwf/src/model/CeaseInstanceResult.cc | 9 +- .../src/model/CheckRootPermissionRequest.cc | 2 +- .../src/model/CheckRootPermissionResult.cc | 9 +- ...CheckUmengDataAnalysisPermissionRequest.cc | 2 +- .../CheckUmengDataAnalysisPermissionResult.cc | 9 +- cloudwf/src/model/ConfigAutoRenewRequest.cc | 10 +- cloudwf/src/model/ConfigAutoRenewResult.cc | 9 +- cloudwf/src/model/CreateRenewOrderRequest.cc | 6 +- cloudwf/src/model/CreateRenewOrderResult.cc | 9 +- .../CreateSubAccountPermissionRequest.cc | 14 +- .../model/CreateSubAccountPermissionResult.cc | 9 +- cloudwf/src/model/DelApPositionRequest.cc | 6 +- cloudwf/src/model/DelApPositionResult.cc | 9 +- .../src/model/DelPageConfigTemplateRequest.cc | 4 +- .../src/model/DelPageConfigTemplateResult.cc | 9 +- cloudwf/src/model/DelPortalTempRequest.cc | 4 +- cloudwf/src/model/DelPortalTempResult.cc | 9 +- .../model/DelSubAccountPermissionRequest.cc | 4 +- .../model/DelSubAccountPermissionResult.cc | 9 +- .../DelUmengPagePermission4RootRequest.cc | 4 +- .../DelUmengPagePermission4RootResult.cc | 9 +- .../model/DeleteApRadioSsidConfigRequest.cc | 6 +- .../model/DeleteApRadioSsidConfigResult.cc | 9 +- .../src/model/DeleteApgroupConfigRequest.cc | 4 +- .../src/model/DeleteApgroupConfigResult.cc | 9 +- .../model/DeleteApgroupSsidConfigRequest.cc | 6 +- .../model/DeleteApgroupSsidConfigResult.cc | 9 +- cloudwf/src/model/DeletePositionMapRequest.cc | 4 +- cloudwf/src/model/DeletePositionMapResult.cc | 9 +- cloudwf/src/model/DeviceBatchCreateRequest.cc | 6 +- cloudwf/src/model/DeviceBatchCreateResult.cc | 9 +- cloudwf/src/model/DeviceCreateRequest.cc | 12 +- cloudwf/src/model/DeviceCreateResult.cc | 9 +- cloudwf/src/model/DeviceDeleteRequest.cc | 6 +- cloudwf/src/model/DeviceDeleteResult.cc | 9 +- cloudwf/src/model/DeviceShowListRequest.cc | 12 +- cloudwf/src/model/DeviceShowListResult.cc | 9 +- cloudwf/src/model/DeviceUpdateRequest.cc | 8 +- cloudwf/src/model/DeviceUpdateResult.cc | 9 +- cloudwf/src/model/ExcelToJsonRequest.cc | 4 +- cloudwf/src/model/ExcelToJsonResult.cc | 9 +- cloudwf/src/model/FindApRequest.cc | 4 +- cloudwf/src/model/FindApResult.cc | 9 +- cloudwf/src/model/FrequencyAnalyseRequest.cc | 4 +- cloudwf/src/model/FrequencyAnalyseResult.cc | 9 +- cloudwf/src/model/GetAccountConfigRequest.cc | 4 +- cloudwf/src/model/GetAccountConfigResult.cc | 9 +- cloudwf/src/model/GetAddApsProgressRequest.cc | 4 +- cloudwf/src/model/GetAddApsProgressResult.cc | 9 +- .../model/GetAllActiveShopByGroupRequest.cc | 6 +- .../model/GetAllActiveShopByGroupResult.cc | 9 +- cloudwf/src/model/GetAllApModelRequest.cc | 2 +- cloudwf/src/model/GetAllApModelResult.cc | 9 +- .../src/model/GetApDetailedConfigRequest.cc | 4 +- .../src/model/GetApDetailedConfigResult.cc | 9 +- .../src/model/GetApDetailedStatusRequest.cc | 4 +- .../src/model/GetApDetailedStatusResult.cc | 9 +- cloudwf/src/model/GetApPortalBindRequest.cc | 6 +- cloudwf/src/model/GetApPortalBindResult.cc | 9 +- .../model/GetApRunHistoryTimeSerRequest.cc | 8 +- .../src/model/GetApRunHistoryTimeSerResult.cc | 9 +- cloudwf/src/model/GetApStaMiscAggRequest.cc | 4 +- cloudwf/src/model/GetApStaMiscAggResult.cc | 9 +- cloudwf/src/model/GetApTopRequest.cc | 4 +- cloudwf/src/model/GetApTopResult.cc | 9 +- .../model/GetApgroupConfigProgressRequest.cc | 4 +- .../model/GetApgroupConfigProgressResult.cc | 9 +- .../model/GetApgroupDetailedConfigRequest.cc | 4 +- .../model/GetApgroupDetailedConfigResult.cc | 9 +- .../GetApgroupPortalConfigProgressRequest.cc | 4 +- .../GetApgroupPortalConfigProgressResult.cc | 9 +- ...GetApgroupScanConfigSaveProgressRequest.cc | 4 +- .../GetApgroupScanConfigSaveProgressResult.cc | 9 +- .../GetApgroupSsidConfigProgressRequest.cc | 4 +- .../GetApgroupSsidConfigProgressResult.cc | 9 +- .../GetBatchSaveApAssetProgressRequest.cc | 2 +- .../GetBatchSaveApAssetProgressResult.cc | 9 +- cloudwf/src/model/GetBidRequest.cc | 6 +- cloudwf/src/model/GetBidResult.cc | 9 +- cloudwf/src/model/GetBids4Uid4RootRequest.cc | 4 +- cloudwf/src/model/GetBids4Uid4RootResult.cc | 9 +- cloudwf/src/model/GetBindAp4UmengRequest.cc | 2 +- cloudwf/src/model/GetBindAp4UmengResult.cc | 9 +- cloudwf/src/model/GetCrowdListRequest.cc | 18 +- cloudwf/src/model/GetCrowdListResult.cc | 9 +- cloudwf/src/model/GetDailyStatisticRequest.cc | 4 +- cloudwf/src/model/GetDailyStatisticResult.cc | 9 +- .../src/model/GetDeviceInfoByMacRequest.cc | 4 +- cloudwf/src/model/GetDeviceInfoByMacResult.cc | 9 +- .../GetGroupApChangeNameTemplateRequest.cc | 2 +- .../GetGroupApChangeNameTemplateResult.cc | 9 +- .../GetGroupApRadioConfigProgressRequest.cc | 4 +- .../GetGroupApRadioConfigProgressResult.cc | 9 +- .../GetGroupApRadioConfigTemplateRequest.cc | 2 +- .../GetGroupApRadioConfigTemplateResult.cc | 9 +- .../GetGroupApRadioOnoffProgressRequest.cc | 4 +- .../GetGroupApRadioOnoffProgressResult.cc | 9 +- .../model/GetGroupApRepairProgressRequest.cc | 4 +- .../model/GetGroupApRepairProgressResult.cc | 9 +- cloudwf/src/model/GetInstanceByShopRequest.cc | 4 +- cloudwf/src/model/GetInstanceByShopResult.cc | 9 +- .../src/model/GetLatestApStatisticRequest.cc | 4 +- .../src/model/GetLatestApStatisticResult.cc | 9 +- .../src/model/GetLatestStaStatisticRequest.cc | 4 +- .../src/model/GetLatestStaStatisticResult.cc | 9 +- cloudwf/src/model/GetMapUrlRequest.cc | 4 +- cloudwf/src/model/GetMapUrlResult.cc | 9 +- .../src/model/GetOnlineApTimeSerRequest.cc | 14 +- cloudwf/src/model/GetOnlineApTimeSerResult.cc | 9 +- .../src/model/GetOnlineStaTimeSerRequest.cc | 14 +- .../src/model/GetOnlineStaTimeSerResult.cc | 9 +- cloudwf/src/model/GetOssServerSignRequest.cc | 4 +- cloudwf/src/model/GetOssServerSignResult.cc | 9 +- .../src/model/GetPageConfigTemplateRequest.cc | 4 +- .../src/model/GetPageConfigTemplateResult.cc | 9 +- cloudwf/src/model/GetPagePropertiesRequest.cc | 2 +- cloudwf/src/model/GetPagePropertiesResult.cc | 9 +- .../src/model/GetPortalTempDetailRequest.cc | 6 +- .../src/model/GetPortalTempDetailResult.cc | 9 +- .../GetProbeDataSubscriberConfigRequest.cc | 4 +- .../GetProbeDataSubscriberConfigResult.cc | 9 +- .../model/GetRadioRunHistoryTimeSerRequest.cc | 4 +- .../model/GetRadioRunHistoryTimeSerResult.cc | 9 +- cloudwf/src/model/GetScanModeRequest.cc | 4 +- cloudwf/src/model/GetScanModeResult.cc | 9 +- .../src/model/GetScanProbeTimeSerRequest.cc | 14 +- .../src/model/GetScanProbeTimeSerResult.cc | 9 +- .../GetSendCommandByMacProgressRequest.cc | 2 +- .../GetSendCommandByMacProgressResult.cc | 9 +- .../src/model/GetSidsAndGids4BidRequest.cc | 6 +- cloudwf/src/model/GetSidsAndGids4BidResult.cc | 9 +- .../src/model/GetStaDetailedStatusRequest.cc | 4 +- .../src/model/GetStaDetailedStatusResult.cc | 9 +- .../model/GetStaRunHistoryTimeSerRequest.cc | 4 +- .../model/GetStaRunHistoryTimeSerResult.cc | 9 +- cloudwf/src/model/GetStaTopRequest.cc | 4 +- cloudwf/src/model/GetStaTopResult.cc | 9 +- .../model/GetSubAccountPermissionRequest.cc | 4 +- .../model/GetSubAccountPermissionResult.cc | 9 +- .../src/model/GetSubAccountStatusRequest.cc | 2 +- .../src/model/GetSubAccountStatusResult.cc | 9 +- .../GetUmengPagePermission4RootRequest.cc | 4 +- .../GetUmengPagePermission4RootResult.cc | 9 +- .../model/GetUpgradeAPGroupProgressRequest.cc | 2 +- .../model/GetUpgradeAPGroupProgressResult.cc | 9 +- .../src/model/GetUpgradeAPProgressRequest.cc | 2 +- .../src/model/GetUpgradeAPProgressResult.cc | 9 +- cloudwf/src/model/GetUpgradeImgRequest.cc | 4 +- cloudwf/src/model/GetUpgradeImgResult.cc | 9 +- .../GetUserUmengPagePermissionRequest.cc | 4 +- .../model/GetUserUmengPagePermissionResult.cc | 9 +- cloudwf/src/model/GroupDetailsRequest.cc | 4 +- cloudwf/src/model/GroupDetailsResult.cc | 9 +- cloudwf/src/model/GroupIntimeRequest.cc | 4 +- cloudwf/src/model/GroupIntimeResult.cc | 9 +- cloudwf/src/model/GroupOverviewRequest.cc | 4 +- cloudwf/src/model/GroupOverviewResult.cc | 9 +- cloudwf/src/model/GroupTrendRequest.cc | 4 +- cloudwf/src/model/GroupTrendResult.cc | 9 +- .../src/model/HeadquartersOverviewRequest.cc | 4 +- .../src/model/HeadquartersOverviewResult.cc | 9 +- .../src/model/HeadquartersRankingRequest.cc | 4 +- .../src/model/HeadquartersRankingResult.cc | 9 +- .../model/HeadquartersToolsCoincideRequest.cc | 4 +- .../model/HeadquartersToolsCoincideResult.cc | 9 +- .../model/HeadquartersToolsContrastRequest.cc | 4 +- .../model/HeadquartersToolsContrastResult.cc | 9 +- .../src/model/HeadquartersToolsO2ORequest.cc | 4 +- .../src/model/HeadquartersToolsO2OResult.cc | 9 +- cloudwf/src/model/HeadquartersTrendRequest.cc | 4 +- cloudwf/src/model/HeadquartersTrendResult.cc | 9 +- cloudwf/src/model/InnerCheckOrderRequest.cc | 4 +- cloudwf/src/model/InnerCheckOrderResult.cc | 9 +- .../src/model/InnerProduceCloudWFRequest.cc | 4 +- .../src/model/InnerProduceCloudWFResult.cc | 9 +- .../src/model/KickAndClearPMKcacheRequest.cc | 4 +- .../src/model/KickAndClearPMKcacheResult.cc | 9 +- cloudwf/src/model/KickStaRequest.cc | 4 +- cloudwf/src/model/KickStaResult.cc | 9 +- cloudwf/src/model/ListAccountConfigRequest.cc | 12 +- cloudwf/src/model/ListAccountConfigResult.cc | 9 +- .../src/model/ListApAssetCanBeAddedRequest.cc | 14 +- .../src/model/ListApAssetCanBeAddedResult.cc | 9 +- cloudwf/src/model/ListApAssetRequest.cc | 18 +- cloudwf/src/model/ListApAssetResult.cc | 9 +- cloudwf/src/model/ListApDetailInfoRequest.cc | 4 +- cloudwf/src/model/ListApDetailInfoResult.cc | 9 +- cloudwf/src/model/ListApPositionMapRequest.cc | 18 +- cloudwf/src/model/ListApPositionMapResult.cc | 9 +- cloudwf/src/model/ListApPositionRequest.cc | 4 +- cloudwf/src/model/ListApPositionResult.cc | 9 +- .../src/model/ListApPositionStatusRequest.cc | 4 +- .../src/model/ListApPositionStatusResult.cc | 9 +- cloudwf/src/model/ListApRadioStatusRequest.cc | 22 +- cloudwf/src/model/ListApRadioStatusResult.cc | 9 +- cloudwf/src/model/ListApStaStatusRequest.cc | 22 +- cloudwf/src/model/ListApStaStatusResult.cc | 9 +- cloudwf/src/model/ListApStatusRequest.cc | 28 +- cloudwf/src/model/ListApStatusResult.cc | 9 +- cloudwf/src/model/ListApUpgradeRequest.cc | 16 +- cloudwf/src/model/ListApUpgradeResult.cc | 9 +- cloudwf/src/model/ListApgroupConfigRequest.cc | 14 +- cloudwf/src/model/ListApgroupConfigResult.cc | 9 +- cloudwf/src/model/ListBriefApConfigRequest.cc | 18 +- cloudwf/src/model/ListBriefApConfigResult.cc | 9 +- .../model/ListBriefConfigByActionRequest.cc | 8 +- .../model/ListBriefConfigByActionResult.cc | 9 +- .../src/model/ListBusinessDetailsRequest.cc | 12 +- .../src/model/ListBusinessDetailsResult.cc | 9 +- cloudwf/src/model/ListBusinessesRequest.cc | 2 +- cloudwf/src/model/ListBusinessesResult.cc | 9 +- .../src/model/ListConfigByActionRequest.cc | 8 +- cloudwf/src/model/ListConfigByActionResult.cc | 9 +- .../model/ListGroupApBriefConfigRequest.cc | 18 +- .../src/model/ListGroupApBriefConfigResult.cc | 9 +- .../model/ListPageConfigTemplateRequest.cc | 8 +- .../src/model/ListPageConfigTemplateResult.cc | 9 +- .../src/model/ListPortalTemplateRequest.cc | 12 +- cloudwf/src/model/ListPortalTemplateResult.cc | 9 +- cloudwf/src/model/ListProbeinfoRequest.cc | 16 +- cloudwf/src/model/ListProbeinfoResult.cc | 9 +- cloudwf/src/model/ListStaOnoffLogRequest.cc | 18 +- cloudwf/src/model/ListStaOnoffLogResult.cc | 9 +- cloudwf/src/model/ListStaStatusRequest.cc | 28 +- cloudwf/src/model/ListStaStatusResult.cc | 9 +- .../model/ListSubAccountPermissionRequest.cc | 8 +- .../model/ListSubAccountPermissionResult.cc | 9 +- .../ListUmengPagePermission4RootRequest.cc | 12 +- .../ListUmengPagePermission4RootResult.cc | 9 +- cloudwf/src/model/ListUpgradeImgRequest.cc | 6 +- cloudwf/src/model/ListUpgradeImgResult.cc | 9 +- .../ModifySubAccountPermissionRequest.cc | 12 +- .../model/ModifySubAccountPermissionResult.cc | 9 +- .../src/model/OemFlowrateAnalyseRequest.cc | 4 +- cloudwf/src/model/OemFlowrateAnalyseResult.cc | 9 +- .../model/OemFlowrateIntelligentRequest.cc | 4 +- .../src/model/OemFlowrateIntelligentResult.cc | 9 +- .../src/model/OemFlowrateMonitorRequest.cc | 4 +- cloudwf/src/model/OemFlowrateMonitorResult.cc | 9 +- .../src/model/OemFlowrateOverviewRequest.cc | 4 +- .../src/model/OemFlowrateOverviewResult.cc | 9 +- .../src/model/OemFlowrateRankingRequest.cc | 4 +- cloudwf/src/model/OemFlowrateRankingResult.cc | 9 +- cloudwf/src/model/OemHeatLineRequest.cc | 4 +- cloudwf/src/model/OemHeatLineResult.cc | 9 +- cloudwf/src/model/OemHeatMapRequest.cc | 4 +- cloudwf/src/model/OemHeatMapResult.cc | 9 +- cloudwf/src/model/OemHeatSettingRequest.cc | 4 +- cloudwf/src/model/OemHeatSettingResult.cc | 9 +- .../src/model/OemMarketingCustomerRequest.cc | 4 +- .../src/model/OemMarketingCustomerResult.cc | 9 +- .../src/model/OemMarketingPotentialRequest.cc | 4 +- .../src/model/OemMarketingPotentialResult.cc | 9 +- .../model/OemMarketingSettingDataRequest.cc | 4 +- .../model/OemMarketingSettingDataResult.cc | 9 +- cloudwf/src/model/OemSitingContrastRequest.cc | 4 +- cloudwf/src/model/OemSitingContrastResult.cc | 9 +- cloudwf/src/model/OemSitingSelctionRequest.cc | 4 +- cloudwf/src/model/OemSitingSelctionResult.cc | 9 +- cloudwf/src/model/OnoffGroupApRadioRequest.cc | 6 +- cloudwf/src/model/OnoffGroupApRadioResult.cc | 9 +- cloudwf/src/model/PeripheryAnalyseRequest.cc | 4 +- cloudwf/src/model/PeripheryAnalyseResult.cc | 9 +- cloudwf/src/model/ProduceInstanceRequest.cc | 6 +- cloudwf/src/model/ProduceInstanceResult.cc | 9 +- cloudwf/src/model/ProfileBaseRequest.cc | 10 +- cloudwf/src/model/ProfileBaseResult.cc | 9 +- cloudwf/src/model/ProfileConsumeRequest.cc | 10 +- cloudwf/src/model/ProfileConsumeResult.cc | 9 +- cloudwf/src/model/ProfileDistrictRequest.cc | 10 +- cloudwf/src/model/ProfileDistrictResult.cc | 9 +- .../src/model/ProfileHistoryListRequest.cc | 10 +- cloudwf/src/model/ProfileHistoryListResult.cc | 9 +- cloudwf/src/model/ProfileHistoryRequest.cc | 10 +- cloudwf/src/model/ProfileHistoryResult.cc | 9 +- cloudwf/src/model/ProfileMediaRequest.cc | 10 +- cloudwf/src/model/ProfileMediaResult.cc | 9 +- cloudwf/src/model/ProfileTagRequest.cc | 16 +- cloudwf/src/model/ProfileTagResult.cc | 9 +- cloudwf/src/model/ProfileTradeRequest.cc | 10 +- cloudwf/src/model/ProfileTradeResult.cc | 9 +- cloudwf/src/model/PutOssFileRequest.cc | 4 +- cloudwf/src/model/PutOssFileResult.cc | 9 +- cloudwf/src/model/QueryRenewPriceRequest.cc | 6 +- cloudwf/src/model/QueryRenewPriceResult.cc | 9 +- cloudwf/src/model/ReleaseInstanceRequest.cc | 6 +- cloudwf/src/model/ReleaseInstanceResult.cc | 9 +- cloudwf/src/model/RepairApRequest.cc | 4 +- cloudwf/src/model/RepairApResult.cc | 9 +- cloudwf/src/model/RepairGroupApRequest.cc | 4 +- cloudwf/src/model/RepairGroupApResult.cc | 9 +- cloudwf/src/model/ReportDayRequest.cc | 8 +- cloudwf/src/model/ReportDayResult.cc | 9 +- cloudwf/src/model/ReportHourRequest.cc | 8 +- cloudwf/src/model/ReportHourResult.cc | 9 +- cloudwf/src/model/ReportMinuteRequest.cc | 8 +- cloudwf/src/model/ReportMinuteResult.cc | 9 +- cloudwf/src/model/ReportRealtimeRequest.cc | 4 +- cloudwf/src/model/ReportRealtimeResult.cc | 9 +- cloudwf/src/model/ReportZoneDayRequest.cc | 8 +- cloudwf/src/model/ReportZoneDayResult.cc | 9 +- cloudwf/src/model/ReportZoneHourRequest.cc | 8 +- cloudwf/src/model/ReportZoneHourResult.cc | 9 +- cloudwf/src/model/ReportZoneMinuteRequest.cc | 8 +- cloudwf/src/model/ReportZoneMinuteResult.cc | 9 +- .../src/model/ReportZoneRealtimeRequest.cc | 4 +- cloudwf/src/model/ReportZoneRealtimeResult.cc | 9 +- cloudwf/src/model/ResetApConfigRequest.cc | 4 +- cloudwf/src/model/ResetApConfigResult.cc | 9 +- cloudwf/src/model/ResetApRequest.cc | 4 +- cloudwf/src/model/ResetApResult.cc | 9 +- cloudwf/src/model/ResumeInstanceRequest.cc | 6 +- cloudwf/src/model/ResumeInstanceResult.cc | 9 +- cloudwf/src/model/SaveAccountConfigRequest.cc | 4 +- cloudwf/src/model/SaveAccountConfigResult.cc | 9 +- cloudwf/src/model/SaveApConfigRequest.cc | 24 +- cloudwf/src/model/SaveApConfigResult.cc | 9 +- cloudwf/src/model/SaveApMapInfoRequest.cc | 4 +- cloudwf/src/model/SaveApMapInfoResult.cc | 9 +- .../src/model/SaveApPortalConfigRequest.cc | 20 +- cloudwf/src/model/SaveApPortalConfigResult.cc | 9 +- cloudwf/src/model/SaveApRadioConfigRequest.cc | 42 +- cloudwf/src/model/SaveApRadioConfigResult.cc | 9 +- .../src/model/SaveApRadioSsidConfigRequest.cc | 88 +- .../src/model/SaveApRadioSsidConfigResult.cc | 9 +- cloudwf/src/model/SaveApScanConfigRequest.cc | 6 +- cloudwf/src/model/SaveApScanConfigResult.cc | 9 +- cloudwf/src/model/SaveApgroupConfigRequest.cc | 20 +- cloudwf/src/model/SaveApgroupConfigResult.cc | 9 +- .../src/model/SaveApgroupScanConfigRequest.cc | 6 +- .../src/model/SaveApgroupScanConfigResult.cc | 9 +- .../src/model/SaveApgroupSsidConfigRequest.cc | 4 +- .../src/model/SaveApgroupSsidConfigResult.cc | 9 +- .../model/SaveGroupApRadioConfigRequest.cc | 4 +- .../src/model/SaveGroupApRadioConfigResult.cc | 9 +- .../model/SavePageConfigTemplateRequest.cc | 12 +- .../src/model/SavePageConfigTemplateResult.cc | 9 +- cloudwf/src/model/SavePortalConfigRequest.cc | 4 +- cloudwf/src/model/SavePortalConfigResult.cc | 9 +- .../src/model/SavePortalTemplateRequest.cc | 14 +- cloudwf/src/model/SavePortalTemplateResult.cc | 9 +- .../model/SaveProbeDataSubscriberRequest.cc | 18 +- .../model/SaveProbeDataSubscriberResult.cc | 9 +- cloudwf/src/model/SaveStaStatusRequest.cc | 6 +- cloudwf/src/model/SaveStaStatusResult.cc | 9 +- .../SaveUmengPagePermission4RootRequest.cc | 12 +- .../SaveUmengPagePermission4RootResult.cc | 9 +- cloudwf/src/model/SendCommandByMacRequest.cc | 6 +- cloudwf/src/model/SendCommandByMacResult.cc | 9 +- cloudwf/src/model/SetScanModeRequest.cc | 6 +- cloudwf/src/model/SetScanModeResult.cc | 9 +- .../src/model/SetUpgradeImgByModelRequest.cc | 10 +- .../src/model/SetUpgradeImgByModelResult.cc | 9 +- cloudwf/src/model/ShopActionCustomeRequest.cc | 4 +- cloudwf/src/model/ShopActionCustomeResult.cc | 9 +- .../src/model/ShopActionReturningRequest.cc | 4 +- .../src/model/ShopActionReturningResult.cc | 9 +- cloudwf/src/model/ShopCameraRequest.cc | 4 +- cloudwf/src/model/ShopCameraResult.cc | 9 +- cloudwf/src/model/ShopCreateRequest.cc | 40 +- cloudwf/src/model/ShopCreateResult.cc | 9 +- .../src/model/ShopCreatemarketingRequest.cc | 10 +- .../src/model/ShopCreatemarketingResult.cc | 9 +- cloudwf/src/model/ShopDataAlarmRequest.cc | 12 +- cloudwf/src/model/ShopDataAlarmResult.cc | 9 +- cloudwf/src/model/ShopDeleteRequest.cc | 4 +- cloudwf/src/model/ShopDeleteResult.cc | 9 +- .../src/model/ShopDeletemarketingRequest.cc | 6 +- .../src/model/ShopDeletemarketingResult.cc | 9 +- cloudwf/src/model/ShopGetfiltermacRequest.cc | 4 +- cloudwf/src/model/ShopGetfiltermacResult.cc | 9 +- cloudwf/src/model/ShopGetredressRequest.cc | 4 +- cloudwf/src/model/ShopGetredressResult.cc | 9 +- cloudwf/src/model/ShopGroupCreateRequest.cc | 10 +- cloudwf/src/model/ShopGroupCreateResult.cc | 9 +- cloudwf/src/model/ShopGroupDeleteRequest.cc | 4 +- cloudwf/src/model/ShopGroupDeleteResult.cc | 9 +- cloudwf/src/model/ShopGroupInfoRequest.cc | 4 +- cloudwf/src/model/ShopGroupInfoResult.cc | 9 +- cloudwf/src/model/ShopGroupShowListRequest.cc | 8 +- cloudwf/src/model/ShopGroupShowListResult.cc | 9 +- cloudwf/src/model/ShopGroupUpdateRequest.cc | 10 +- cloudwf/src/model/ShopGroupUpdateResult.cc | 9 +- cloudwf/src/model/ShopInfoRequest.cc | 4 +- cloudwf/src/model/ShopInfoResult.cc | 9 +- cloudwf/src/model/ShopMarketingListRequest.cc | 10 +- cloudwf/src/model/ShopMarketingListResult.cc | 9 +- cloudwf/src/model/ShopOverviewRequest.cc | 4 +- cloudwf/src/model/ShopOverviewResult.cc | 9 +- cloudwf/src/model/ShopSetfiltermacRequest.cc | 6 +- cloudwf/src/model/ShopSetfiltermacResult.cc | 9 +- cloudwf/src/model/ShopSetredressRequest.cc | 26 +- cloudwf/src/model/ShopSetredressResult.cc | 9 +- cloudwf/src/model/ShopShowListRequest.cc | 18 +- cloudwf/src/model/ShopShowListResult.cc | 9 +- cloudwf/src/model/ShopUpdateRequest.cc | 40 +- cloudwf/src/model/ShopUpdateResult.cc | 9 +- cloudwf/src/model/UpLoadMapRequest.cc | 12 +- cloudwf/src/model/UpLoadMapResult.cc | 9 +- cloudwf/src/model/UpgradeAPGroupRequest.cc | 4 +- cloudwf/src/model/UpgradeAPGroupResult.cc | 9 +- cloudwf/src/model/UpgradeAPRequest.cc | 4 +- cloudwf/src/model/UpgradeAPResult.cc | 9 +- cloudwf/src/model/UserAnalyseRequest.cc | 4 +- cloudwf/src/model/UserAnalyseResult.cc | 9 +- cloudwf/src/model/UserDataCreateRequest.cc | 10 +- cloudwf/src/model/UserDataCreateResult.cc | 9 +- cloudwf/src/model/UserDataDeleteRequest.cc | 6 +- cloudwf/src/model/UserDataDeleteResult.cc | 9 +- cloudwf/src/model/UserDataShowListRequest.cc | 12 +- cloudwf/src/model/UserDataShowListResult.cc | 9 +- cloudwf/src/model/UserDataUpdateRequest.cc | 12 +- cloudwf/src/model/UserDataUpdateResult.cc | 9 +- cms/CMakeLists.txt | 112 +- cms/include/alibabacloud/cms/CmsClient.h | 224 +- .../model/DescribeAlertHistoryListRequest.h | 87 + .../model/DescribeAlertHistoryListResult.h | 86 + .../model/DescribeMetricRuleTargetsRequest.h | 48 + .../model/DescribeMetricRuleTargetsResult.h | 61 + .../DescribeSiteMonitorISPAreaCityRequest.h | 51 + .../DescribeSiteMonitorISPAreaCityResult.h | 68 + .../DescribeSiteMonitorISPCityListRequest.h | 51 + .../DescribeSiteMonitorISPCityListResult.h | 66 + .../cms/model/PutMetricRuleTargetsRequest.h | 60 + .../cms/model/PutMetricRuleTargetsResult.h | 67 + .../model/RemoveMetricRuleTargetsRequest.h | 57 + .../cms/model/RemoveMetricRuleTargetsResult.h | 61 + cms/src/CmsClient.cc | 954 +- cms/src/model/AccessKeyGetRequest.cc | 2 +- cms/src/model/AccessKeyGetResult.cc | 9 +- cms/src/model/AddMyGroupInstancesRequest.cc | 4 +- cms/src/model/AddMyGroupInstancesResult.cc | 9 +- .../model/ApplyMonitoringTemplateRequest.cc | 16 +- .../model/ApplyMonitoringTemplateResult.cc | 9 +- cms/src/model/ApplyTemplateRequest.cc | 14 +- cms/src/model/ApplyTemplateResult.cc | 9 +- cms/src/model/CreateAlarmRequest.cc | 32 +- cms/src/model/CreateAlarmResult.cc | 9 +- .../model/CreateMonitoringTemplateRequest.cc | 10 +- .../model/CreateMonitoringTemplateResult.cc | 9 +- .../model/CreateMyGroupAlertBatchRequest.cc | 4 +- .../model/CreateMyGroupAlertBatchResult.cc | 9 +- cms/src/model/CreateMyGroupsRequest.cc | 12 +- cms/src/model/CreateMyGroupsResult.cc | 9 +- cms/src/model/CreateNotifyPolicyRequest.cc | 14 +- cms/src/model/CreateNotifyPolicyResult.cc | 9 +- cms/src/model/CreateTaskRequest.cc | 18 +- cms/src/model/CreateTaskResult.cc | 9 +- cms/src/model/DeleteAlarmRequest.cc | 2 +- cms/src/model/DeleteAlarmResult.cc | 9 +- cms/src/model/DeleteCustomMetricRequest.cc | 8 +- cms/src/model/DeleteCustomMetricResult.cc | 9 +- cms/src/model/DeleteEventRuleRequest.cc | 4 +- cms/src/model/DeleteEventRuleResult.cc | 9 +- cms/src/model/DeleteEventTargetsRequest.cc | 4 +- cms/src/model/DeleteEventTargetsResult.cc | 9 +- .../model/DeleteGroupDynamicRuleRequest.cc | 4 +- cms/src/model/DeleteGroupDynamicRuleResult.cc | 9 +- .../model/DeleteMonitoringTemplateRequest.cc | 2 +- .../model/DeleteMonitoringTemplateResult.cc | 9 +- .../model/DeleteMyGroupInstancesRequest.cc | 8 +- cms/src/model/DeleteMyGroupInstancesResult.cc | 9 +- cms/src/model/DeleteMyGroupsRequest.cc | 2 +- cms/src/model/DeleteMyGroupsResult.cc | 9 +- cms/src/model/DeleteNotifyPolicyRequest.cc | 12 +- cms/src/model/DeleteNotifyPolicyResult.cc | 9 +- cms/src/model/DeleteTasksRequest.cc | 4 +- cms/src/model/DeleteTasksResult.cc | 9 +- cms/src/model/DescribeAlarmHistoryRequest.cc | 28 +- cms/src/model/DescribeAlarmHistoryResult.cc | 9 +- .../DescribeAlarmsForResourcesRequest.cc | 16 +- .../model/DescribeAlarmsForResourcesResult.cc | 9 +- cms/src/model/DescribeAlarmsRequest.cc | 22 +- cms/src/model/DescribeAlarmsResult.cc | 9 +- .../model/DescribeAlertHistoryListRequest.cc | 181 + .../model/DescribeAlertHistoryListResult.cc | 140 + cms/src/model/DescribeContactRequest.cc | 2 +- cms/src/model/DescribeContactResult.cc | 9 +- cms/src/model/DescribeEventRuleRequest.cc | 2 +- cms/src/model/DescribeEventRuleResult.cc | 9 +- cms/src/model/DescribeISPAreaCityRequest.cc | 4 +- cms/src/model/DescribeISPAreaCityResult.cc | 9 +- .../model/DescribeMetricRuleTargetsRequest.cc | 38 + .../model/DescribeMetricRuleTargetsResult.cc | 79 + .../DescribeSiteMonitorISPAreaCityRequest.cc | 49 + .../DescribeSiteMonitorISPAreaCityResult.cc | 99 + .../DescribeSiteMonitorISPCityListRequest.cc | 49 + .../DescribeSiteMonitorISPCityListResult.cc | 92 + cms/src/model/DescribeTaskDetailRequest.cc | 2 +- cms/src/model/DescribeTaskDetailResult.cc | 9 +- cms/src/model/DescribeTasksRequest.cc | 10 +- cms/src/model/DescribeTasksResult.cc | 9 +- cms/src/model/DisableActiveAlertRequest.cc | 4 +- cms/src/model/DisableActiveAlertResult.cc | 9 +- cms/src/model/DisableAlarmRequest.cc | 2 +- cms/src/model/DisableAlarmResult.cc | 9 +- cms/src/model/DisableEventRuleRequest.cc | 4 +- cms/src/model/DisableEventRuleResult.cc | 9 +- cms/src/model/EnableActiveAlertRequest.cc | 4 +- cms/src/model/EnableActiveAlertResult.cc | 9 +- cms/src/model/EnableAlarmRequest.cc | 2 +- cms/src/model/EnableAlarmResult.cc | 9 +- cms/src/model/EnableEventRuleRequest.cc | 4 +- cms/src/model/EnableEventRuleResult.cc | 9 +- cms/src/model/GetContactsRequest.cc | 2 +- cms/src/model/GetContactsResult.cc | 9 +- cms/src/model/GetMonitoringTemplateRequest.cc | 4 +- cms/src/model/GetMonitoringTemplateResult.cc | 9 +- cms/src/model/GetMyGroupAlertRequest.cc | 4 +- cms/src/model/GetMyGroupAlertResult.cc | 9 +- cms/src/model/GetMyGroupsRequest.cc | 12 +- cms/src/model/GetMyGroupsResult.cc | 9 +- cms/src/model/GetNotifyPolicyRequest.cc | 12 +- cms/src/model/GetNotifyPolicyResult.cc | 9 +- cms/src/model/ListActiveAlertRuleRequest.cc | 4 +- cms/src/model/ListActiveAlertRuleResult.cc | 9 +- cms/src/model/ListAlarmHistoryRequest.cc | 12 +- cms/src/model/ListAlarmHistoryResult.cc | 9 +- cms/src/model/ListAlarmRequest.cc | 16 +- cms/src/model/ListAlarmResult.cc | 9 +- cms/src/model/ListContactGroupRequest.cc | 4 +- cms/src/model/ListContactGroupResult.cc | 9 +- cms/src/model/ListEventRulesRequest.cc | 8 +- cms/src/model/ListEventRulesResult.cc | 9 +- .../model/ListEventTargetsByRuleRequest.cc | 2 +- cms/src/model/ListEventTargetsByRuleResult.cc | 9 +- cms/src/model/ListGroupDynamicRuleRequest.cc | 2 +- cms/src/model/ListGroupDynamicRuleResult.cc | 9 +- .../model/ListMonitoringTemplatesRequest.cc | 14 +- .../model/ListMonitoringTemplatesResult.cc | 9 +- cms/src/model/ListMyGroupCategoriesRequest.cc | 2 +- cms/src/model/ListMyGroupCategoriesResult.cc | 9 +- .../ListMyGroupInstancesDetailsRequest.cc | 14 +- .../ListMyGroupInstancesDetailsResult.cc | 9 +- cms/src/model/ListMyGroupInstancesRequest.cc | 14 +- cms/src/model/ListMyGroupInstancesResult.cc | 9 +- cms/src/model/ListMyGroupsRequest.cc | 16 +- cms/src/model/ListMyGroupsResult.cc | 9 +- cms/src/model/ListNotifyPolicyRequest.cc | 14 +- cms/src/model/ListNotifyPolicyResult.cc | 9 +- .../model/ListProductOfActiveAlertRequest.cc | 2 +- .../model/ListProductOfActiveAlertResult.cc | 9 +- cms/src/model/ModifyTaskRequest.cc | 18 +- cms/src/model/ModifyTaskResult.cc | 9 +- cms/src/model/NodeInstallRequest.cc | 6 +- cms/src/model/NodeInstallResult.cc | 9 +- cms/src/model/NodeListRequest.cc | 18 +- cms/src/model/NodeListResult.cc | 9 +- cms/src/model/NodeProcessCreateRequest.cc | 10 +- cms/src/model/NodeProcessCreateResult.cc | 9 +- cms/src/model/NodeProcessDeleteRequest.cc | 6 +- cms/src/model/NodeProcessDeleteResult.cc | 9 +- cms/src/model/NodeProcessesRequest.cc | 2 +- cms/src/model/NodeProcessesResult.cc | 9 +- cms/src/model/NodeStatusListRequest.cc | 2 +- cms/src/model/NodeStatusListResult.cc | 9 +- cms/src/model/NodeStatusRequest.cc | 2 +- cms/src/model/NodeStatusResult.cc | 9 +- cms/src/model/NodeUninstallRequest.cc | 2 +- cms/src/model/NodeUninstallResult.cc | 9 +- cms/src/model/ProfileGetRequest.cc | 2 +- cms/src/model/ProfileGetResult.cc | 9 +- cms/src/model/ProfileSetRequest.cc | 8 +- cms/src/model/ProfileSetResult.cc | 9 +- cms/src/model/PutCustomMetricRequest.cc | 2 +- cms/src/model/PutCustomMetricResult.cc | 9 +- cms/src/model/PutEventRequest.cc | 2 +- cms/src/model/PutEventResult.cc | 9 +- cms/src/model/PutEventRuleRequest.cc | 20 +- cms/src/model/PutEventRuleResult.cc | 9 +- cms/src/model/PutEventTargetsRequest.cc | 38 +- cms/src/model/PutEventTargetsResult.cc | 9 +- cms/src/model/PutGroupDynamicRuleRequest.cc | 4 +- cms/src/model/PutGroupDynamicRuleResult.cc | 9 +- cms/src/model/PutMetricAlarmRequest.cc | 48 +- cms/src/model/PutMetricAlarmResult.cc | 9 +- cms/src/model/PutMetricRuleTargetsRequest.cc | 67 + cms/src/model/PutMetricRuleTargetsResult.cc | 87 + cms/src/model/QueryCustomEventCountRequest.cc | 2 +- cms/src/model/QueryCustomEventCountResult.cc | 9 +- .../model/QueryCustomEventDetailRequest.cc | 2 +- cms/src/model/QueryCustomEventDetailResult.cc | 9 +- .../model/QueryCustomEventHistogramRequest.cc | 2 +- .../model/QueryCustomEventHistogramResult.cc | 9 +- cms/src/model/QueryCustomMetricListRequest.cc | 14 +- cms/src/model/QueryCustomMetricListResult.cc | 9 +- .../model/QueryErrorDistributionRequest.cc | 4 +- cms/src/model/QueryErrorDistributionResult.cc | 9 +- cms/src/model/QueryMetricDataRequest.cc | 20 +- cms/src/model/QueryMetricDataResult.cc | 9 +- cms/src/model/QueryMetricLastRequest.cc | 24 +- cms/src/model/QueryMetricLastResult.cc | 9 +- cms/src/model/QueryMetricListRequest.cc | 22 +- cms/src/model/QueryMetricListResult.cc | 9 +- cms/src/model/QueryMetricMetaRequest.cc | 10 +- cms/src/model/QueryMetricMetaResult.cc | 9 +- cms/src/model/QueryMetricTopRequest.cc | 24 +- cms/src/model/QueryMetricTopResult.cc | 9 +- cms/src/model/QueryProjectMetaRequest.cc | 6 +- cms/src/model/QueryProjectMetaResult.cc | 9 +- .../model/QueryStaticsAvailabilityRequest.cc | 4 +- .../model/QueryStaticsAvailabilityResult.cc | 9 +- cms/src/model/QueryStaticsErrorRateRequest.cc | 4 +- cms/src/model/QueryStaticsErrorRateResult.cc | 9 +- .../model/QueryStaticsResponseTimeRequest.cc | 4 +- .../model/QueryStaticsResponseTimeResult.cc | 9 +- cms/src/model/QuerySystemEventCountRequest.cc | 2 +- cms/src/model/QuerySystemEventCountResult.cc | 9 +- cms/src/model/QuerySystemEventDemoRequest.cc | 4 +- cms/src/model/QuerySystemEventDemoResult.cc | 9 +- .../model/QuerySystemEventDetailRequest.cc | 2 +- cms/src/model/QuerySystemEventDetailResult.cc | 9 +- .../model/QuerySystemEventHistogramRequest.cc | 2 +- .../model/QuerySystemEventHistogramResult.cc | 9 +- cms/src/model/QueryTaskConfigResult.cc | 9 +- cms/src/model/QueryTaskMonitorDataRequest.cc | 16 +- cms/src/model/QueryTaskMonitorDataResult.cc | 9 +- .../model/RemoveMetricRuleTargetsRequest.cc | 74 + .../model/RemoveMetricRuleTargetsResult.cc | 78 + cms/src/model/SendDryRunSystemEventRequest.cc | 8 +- cms/src/model/SendDryRunSystemEventResult.cc | 9 +- cms/src/model/StartTasksRequest.cc | 2 +- cms/src/model/StartTasksResult.cc | 9 +- cms/src/model/StopTasksRequest.cc | 2 +- cms/src/model/StopTasksResult.cc | 9 +- cms/src/model/TaskConfigCreateRequest.cc | 16 +- cms/src/model/TaskConfigCreateResult.cc | 9 +- cms/src/model/TaskConfigDeleteRequest.cc | 2 +- cms/src/model/TaskConfigDeleteResult.cc | 9 +- cms/src/model/TaskConfigEnableRequest.cc | 4 +- cms/src/model/TaskConfigEnableResult.cc | 9 +- cms/src/model/TaskConfigListRequest.cc | 10 +- cms/src/model/TaskConfigListResult.cc | 9 +- cms/src/model/TaskConfigModifyRequest.cc | 18 +- cms/src/model/TaskConfigModifyResult.cc | 9 +- cms/src/model/TaskConfigUnhealthyRequest.cc | 2 +- cms/src/model/TaskConfigUnhealthyResult.cc | 9 +- cms/src/model/UpdateAlarmRequest.cc | 28 +- cms/src/model/UpdateAlarmResult.cc | 9 +- .../model/UpdateMonitoringTemplateRequest.cc | 12 +- .../model/UpdateMonitoringTemplateResult.cc | 9 +- cms/src/model/UpdateMyGroupAlertRequest.cc | 2 +- cms/src/model/UpdateMyGroupAlertResult.cc | 9 +- .../model/UpdateMyGroupInstancesRequest.cc | 4 +- cms/src/model/UpdateMyGroupInstancesResult.cc | 9 +- cms/src/model/UpdateMyGroupMembersRequest.cc | 6 +- cms/src/model/UpdateMyGroupMembersResult.cc | 9 +- cms/src/model/UpdateMyGroupsRequest.cc | 12 +- cms/src/model/UpdateMyGroupsResult.cc | 9 +- cr/CMakeLists.txt | 88 +- cr/include/alibabacloud/cr/CrClient.h | 176 +- cr/src/CrClient.cc | 414 +- cr/src/model/CancelRepoBuildRequest.cc | 8 +- cr/src/model/CancelRepoBuildResult.cc | 9 +- cr/src/model/CreateCollectionRequest.cc | 2 +- cr/src/model/CreateCollectionResult.cc | 9 +- .../CreateNamespaceAuthorizationRequest.cc | 4 +- .../CreateNamespaceAuthorizationResult.cc | 9 +- cr/src/model/CreateNamespaceRequest.cc | 2 +- cr/src/model/CreateNamespaceResult.cc | 9 +- .../model/CreateRepoAuthorizationRequest.cc | 6 +- cr/src/model/CreateRepoAuthorizationResult.cc | 9 +- cr/src/model/CreateRepoBuildRuleRequest.cc | 6 +- cr/src/model/CreateRepoBuildRuleResult.cc | 9 +- cr/src/model/CreateRepoRequest.cc | 2 +- cr/src/model/CreateRepoResult.cc | 9 +- cr/src/model/CreateRepoSyncTaskRequest.cc | 6 +- cr/src/model/CreateRepoSyncTaskResult.cc | 9 +- cr/src/model/CreateRepoWebhookRequest.cc | 6 +- cr/src/model/CreateRepoWebhookResult.cc | 9 +- cr/src/model/CreateUserInfoRequest.cc | 2 +- cr/src/model/CreateUserInfoResult.cc | 9 +- .../model/CreateUserSourceAccountRequest.cc | 2 +- cr/src/model/CreateUserSourceAccountResult.cc | 9 +- cr/src/model/DeleteCollectionRequest.cc | 4 +- cr/src/model/DeleteCollectionResult.cc | 9 +- cr/src/model/DeleteImageRequest.cc | 8 +- cr/src/model/DeleteImageResult.cc | 9 +- .../DeleteNamespaceAuthorizationRequest.cc | 6 +- .../DeleteNamespaceAuthorizationResult.cc | 9 +- cr/src/model/DeleteNamespaceRequest.cc | 4 +- cr/src/model/DeleteNamespaceResult.cc | 9 +- .../model/DeleteRepoAuthorizationRequest.cc | 8 +- cr/src/model/DeleteRepoAuthorizationResult.cc | 9 +- cr/src/model/DeleteRepoBuildRuleRequest.cc | 8 +- cr/src/model/DeleteRepoBuildRuleResult.cc | 9 +- cr/src/model/DeleteRepoRequest.cc | 6 +- cr/src/model/DeleteRepoResult.cc | 9 +- cr/src/model/DeleteRepoWebhookRequest.cc | 8 +- cr/src/model/DeleteRepoWebhookResult.cc | 9 +- .../model/DeleteUserSourceAccountRequest.cc | 4 +- cr/src/model/DeleteUserSourceAccountResult.cc | 9 +- cr/src/model/GetAuthorizationTokenRequest.cc | 2 +- cr/src/model/GetAuthorizationTokenResult.cc | 9 +- cr/src/model/GetCollectionRequest.cc | 6 +- cr/src/model/GetCollectionResult.cc | 9 +- cr/src/model/GetImageLayerRequest.cc | 8 +- cr/src/model/GetImageLayerResult.cc | 9 +- cr/src/model/GetImageManifestRequest.cc | 10 +- cr/src/model/GetImageManifestResult.cc | 9 +- cr/src/model/GetImageScanRequest.cc | 8 +- cr/src/model/GetImageScanResult.cc | 9 +- cr/src/model/GetMirrorListRequest.cc | 2 +- cr/src/model/GetMirrorListResult.cc | 9 +- .../GetNamespaceAuthorizationListRequest.cc | 6 +- .../GetNamespaceAuthorizationListResult.cc | 9 +- cr/src/model/GetNamespaceListRequest.cc | 6 +- cr/src/model/GetNamespaceListResult.cc | 9 +- cr/src/model/GetNamespaceRequest.cc | 4 +- cr/src/model/GetNamespaceResult.cc | 9 +- cr/src/model/GetRegionListRequest.cc | 2 +- cr/src/model/GetRegionListResult.cc | 9 +- cr/src/model/GetRegionRequest.cc | 2 +- cr/src/model/GetRegionResult.cc | 9 +- .../model/GetRepoAuthorizationListRequest.cc | 8 +- .../model/GetRepoAuthorizationListResult.cc | 9 +- cr/src/model/GetRepoBatchRequest.cc | 4 +- cr/src/model/GetRepoBatchResult.cc | 9 +- cr/src/model/GetRepoBuildListRequest.cc | 10 +- cr/src/model/GetRepoBuildListResult.cc | 9 +- cr/src/model/GetRepoBuildLogsRequest.cc | 8 +- cr/src/model/GetRepoBuildLogsResult.cc | 9 +- cr/src/model/GetRepoBuildRuleListRequest.cc | 6 +- cr/src/model/GetRepoBuildRuleListResult.cc | 9 +- cr/src/model/GetRepoBuildStatusRequest.cc | 8 +- cr/src/model/GetRepoBuildStatusResult.cc | 9 +- cr/src/model/GetRepoListByNamespaceRequest.cc | 10 +- cr/src/model/GetRepoListByNamespaceResult.cc | 9 +- cr/src/model/GetRepoListRequest.cc | 8 +- cr/src/model/GetRepoListResult.cc | 9 +- cr/src/model/GetRepoRequest.cc | 6 +- cr/src/model/GetRepoResult.cc | 9 +- cr/src/model/GetRepoSourceRepoRequest.cc | 6 +- cr/src/model/GetRepoSourceRepoResult.cc | 9 +- cr/src/model/GetRepoSyncTaskListRequest.cc | 10 +- cr/src/model/GetRepoSyncTaskListResult.cc | 9 +- cr/src/model/GetRepoSyncTaskRequest.cc | 8 +- cr/src/model/GetRepoSyncTaskResult.cc | 9 +- cr/src/model/GetRepoTagsRequest.cc | 10 +- cr/src/model/GetRepoTagsResult.cc | 9 +- cr/src/model/GetRepoWebhookLogListRequest.cc | 8 +- cr/src/model/GetRepoWebhookLogListResult.cc | 9 +- cr/src/model/GetRepoWebhookRequest.cc | 6 +- cr/src/model/GetRepoWebhookResult.cc | 9 +- cr/src/model/GetSearchRequest.cc | 10 +- cr/src/model/GetSearchResult.cc | 9 +- cr/src/model/GetSubUserListRequest.cc | 2 +- cr/src/model/GetSubUserListResult.cc | 9 +- cr/src/model/GetUserInfoRequest.cc | 2 +- cr/src/model/GetUserInfoResult.cc | 9 +- cr/src/model/GetUserSourceAccountRequest.cc | 4 +- cr/src/model/GetUserSourceAccountResult.cc | 9 +- cr/src/model/GetUserSourceRepoListRequest.cc | 4 +- cr/src/model/GetUserSourceRepoListResult.cc | 9 +- .../model/GetUserSourceRepoRefListRequest.cc | 8 +- .../model/GetUserSourceRepoRefListResult.cc | 9 +- cr/src/model/SearchRepoRequest.cc | 10 +- cr/src/model/SearchRepoResult.cc | 9 +- cr/src/model/StartImageScanRequest.cc | 8 +- cr/src/model/StartImageScanResult.cc | 9 +- cr/src/model/StartRepoBuildByRuleRequest.cc | 8 +- cr/src/model/StartRepoBuildByRuleResult.cc | 9 +- cr/src/model/StartRepoBuildRequest.cc | 6 +- cr/src/model/StartRepoBuildResult.cc | 9 +- .../UpdateNamespaceAuthorizationRequest.cc | 6 +- .../UpdateNamespaceAuthorizationResult.cc | 9 +- cr/src/model/UpdateNamespaceRequest.cc | 4 +- cr/src/model/UpdateNamespaceResult.cc | 9 +- .../model/UpdateRepoAuthorizationRequest.cc | 8 +- cr/src/model/UpdateRepoAuthorizationResult.cc | 9 +- cr/src/model/UpdateRepoBuildRuleRequest.cc | 8 +- cr/src/model/UpdateRepoBuildRuleResult.cc | 9 +- cr/src/model/UpdateRepoRequest.cc | 6 +- cr/src/model/UpdateRepoResult.cc | 9 +- cr/src/model/UpdateRepoSourceRepoRequest.cc | 6 +- cr/src/model/UpdateRepoSourceRepoResult.cc | 9 +- cr/src/model/UpdateRepoWebhookRequest.cc | 8 +- cr/src/model/UpdateRepoWebhookResult.cc | 9 +- cr/src/model/UpdateUserInfoRequest.cc | 2 +- cr/src/model/UpdateUserInfoResult.cc | 9 +- crm/CMakeLists.txt | 16 +- crm/include/alibabacloud/crm/CrmClient.h | 32 +- crm/src/CrmClient.cc | 144 +- .../AddIdentityCertifiedForBidUserRequest.cc | 14 +- .../AddIdentityCertifiedForBidUserResult.cc | 9 +- crm/src/model/AddLabelForBidRequest.cc | 8 +- crm/src/model/AddLabelForBidResult.cc | 9 +- crm/src/model/AddLabelRequest.cc | 12 +- crm/src/model/AddLabelResult.cc | 9 +- .../BatchGetAliyunIdByAliyunPkRequest.cc | 2 +- .../model/BatchGetAliyunIdByAliyunPkResult.cc | 9 +- crm/src/model/CheckLabelForBidRequest.cc | 6 +- crm/src/model/CheckLabelForBidResult.cc | 9 +- crm/src/model/CheckLabelRequest.cc | 6 +- crm/src/model/CheckLabelResult.cc | 9 +- crm/src/model/DeleteLabelForBidRequest.cc | 6 +- crm/src/model/DeleteLabelForBidResult.cc | 9 +- crm/src/model/DeleteLabelRequest.cc | 10 +- crm/src/model/DeleteLabelResult.cc | 9 +- crm/src/model/GetAliyunPkByAliyunIdRequest.cc | 2 +- crm/src/model/GetAliyunPkByAliyunIdResult.cc | 9 +- .../model/QueryBidUserCertifiedInfoRequest.cc | 4 +- .../model/QueryBidUserCertifiedInfoResult.cc | 9 +- crm/src/model/QueryCustomerLabelRequest.cc | 2 +- crm/src/model/QueryCustomerLabelResult.cc | 9 +- ...emoveIdentityCertifiedForBidUserRequest.cc | 4 +- ...RemoveIdentityCertifiedForBidUserResult.cc | 9 +- cs/CMakeLists.txt | 28 +- cs/include/alibabacloud/cs/CSClient.h | 56 +- .../CreateClusterByResourcesGroupRequest.h | 48 + .../CreateClusterByResourcesGroupResult.h | 49 + .../cs/model/DeleteClusterNodesRequest.h | 48 + .../cs/model/DeleteClusterNodesResult.h | 49 + .../DescribeClusterAttachScriptsRequest.h | 48 + .../DescribeClusterAttachScriptsResult.h | 49 + .../DescribeClusterUserKubeconfigRequest.h | 3 + .../cs/model/ModifyClusterRequest.h | 48 + .../cs/model/ModifyClusterResult.h | 49 + .../cs/model/ScaleOutClusterRequest.h | 48 + .../cs/model/ScaleOutClusterResult.h | 49 + cs/src/CSClient.cc | 252 +- cs/src/model/AttachInstancesRequest.cc | 2 +- cs/src/model/AttachInstancesResult.cc | 9 +- .../CreateClusterByResourcesGroupRequest.cc | 38 + .../CreateClusterByResourcesGroupResult.cc | 48 + cs/src/model/CreateClusterResult.cc | 9 +- cs/src/model/DeleteClusterNodesRequest.cc | 38 + cs/src/model/DeleteClusterNodesResult.cc | 48 + cs/src/model/DeleteClusterRequest.cc | 2 +- cs/src/model/DeleteClusterResult.cc | 9 +- cs/src/model/DescribeApiVersionResult.cc | 9 +- .../DescribeClusterAttachScriptsRequest.cc | 38 + .../DescribeClusterAttachScriptsResult.cc | 48 + cs/src/model/DescribeClusterCertsRequest.cc | 2 +- cs/src/model/DescribeClusterCertsResult.cc | 9 +- cs/src/model/DescribeClusterDetailRequest.cc | 2 +- cs/src/model/DescribeClusterDetailResult.cc | 9 +- .../model/DescribeClusterEndpointsRequest.cc | 2 +- .../model/DescribeClusterEndpointsResult.cc | 9 +- cs/src/model/DescribeClusterLogsRequest.cc | 2 +- cs/src/model/DescribeClusterLogsResult.cc | 9 +- .../DescribeClusterUserKubeconfigRequest.cc | 13 +- .../DescribeClusterUserKubeconfigResult.cc | 9 +- cs/src/model/DescribeClustersRequest.cc | 4 +- cs/src/model/DescribeClustersResult.cc | 9 +- cs/src/model/ModifyClusterRequest.cc | 38 + cs/src/model/ModifyClusterResult.cc | 48 + cs/src/model/ScaleClusterRequest.cc | 2 +- cs/src/model/ScaleClusterResult.cc | 9 +- cs/src/model/ScaleOutClusterRequest.cc | 38 + cs/src/model/ScaleOutClusterResult.cc | 48 + csb/CMakeLists.txt | 80 +- csb/include/alibabacloud/csb/CSBClient.h | 152 +- .../csb/model/FindApprovalOrderListRequest.h | 9 +- .../csb/model/ImportCredentialsRequest.h | 54 + .../csb/model/ImportCredentialsResult.h | 69 + csb/src/CSBClient.cc | 456 +- csb/src/model/ApproveOrderListRequest.cc | 4 +- csb/src/model/ApproveOrderListResult.cc | 9 +- csb/src/model/CheckServiceExistRequest.cc | 6 +- csb/src/model/CheckServiceExistResult.cc | 9 +- .../model/CommitSuccessedServicesRequest.cc | 6 +- .../model/CommitSuccessedServicesResult.cc | 9 +- csb/src/model/CreateCredentialsRequest.cc | 6 +- csb/src/model/CreateCredentialsResult.cc | 9 +- csb/src/model/CreateOrderRequest.cc | 6 +- csb/src/model/CreateOrderResult.cc | 9 +- csb/src/model/CreateProjectRequest.cc | 6 +- csb/src/model/CreateProjectResult.cc | 9 +- csb/src/model/CreateServiceRequest.cc | 6 +- csb/src/model/CreateServiceResult.cc | 9 +- csb/src/model/DeleteCasServiceRequest.cc | 10 +- csb/src/model/DeleteCasServiceResult.cc | 9 +- csb/src/model/DeleteCredentialsListRequest.cc | 8 +- csb/src/model/DeleteCredentialsListResult.cc | 9 +- csb/src/model/DeleteOrderListRequest.cc | 4 +- csb/src/model/DeleteOrderListResult.cc | 9 +- csb/src/model/DeleteProjectListRequest.cc | 6 +- csb/src/model/DeleteProjectListResult.cc | 9 +- csb/src/model/DeleteProjectRequest.cc | 6 +- csb/src/model/DeleteProjectResult.cc | 9 +- csb/src/model/DeleteServiceListRequest.cc | 6 +- csb/src/model/DeleteServiceListResult.cc | 9 +- csb/src/model/DeleteServiceRequest.cc | 6 +- csb/src/model/DeleteServiceResult.cc | 9 +- csb/src/model/DeleteUnionCasServiceRequest.cc | 10 +- csb/src/model/DeleteUnionCasServiceResult.cc | 9 +- csb/src/model/FindApprovalOrderListRequest.cc | 45 +- csb/src/model/FindApprovalOrderListResult.cc | 9 +- .../model/FindApproveServiceListRequest.cc | 14 +- csb/src/model/FindApproveServiceListResult.cc | 9 +- csb/src/model/FindCredentialsListRequest.cc | 8 +- csb/src/model/FindCredentialsListResult.cc | 9 +- csb/src/model/FindInstanceListRequest.cc | 10 +- csb/src/model/FindInstanceListResult.cc | 9 +- csb/src/model/FindOrderableListRequest.cc | 12 +- csb/src/model/FindOrderableListResult.cc | 9 +- csb/src/model/FindOrderedListRequest.cc | 18 +- csb/src/model/FindOrderedListResult.cc | 9 +- csb/src/model/FindProjectListRequest.cc | 8 +- csb/src/model/FindProjectListResult.cc | 9 +- csb/src/model/FindProjectsNameListRequest.cc | 6 +- csb/src/model/FindProjectsNameListResult.cc | 9 +- csb/src/model/FindServiceListRequest.cc | 16 +- csb/src/model/FindServiceListResult.cc | 9 +- .../FindServiceStatisticalDataRequest.cc | 10 +- .../model/FindServiceStatisticalDataResult.cc | 9 +- csb/src/model/GetInstanceRequest.cc | 4 +- csb/src/model/GetInstanceResult.cc | 9 +- csb/src/model/GetOrderRequest.cc | 6 +- csb/src/model/GetOrderResult.cc | 9 +- csb/src/model/GetProjectRequest.cc | 6 +- csb/src/model/GetProjectResult.cc | 9 +- csb/src/model/GetServiceRequest.cc | 6 +- csb/src/model/GetServiceResult.cc | 9 +- csb/src/model/ImportCredentialsRequest.cc | 60 + csb/src/model/ImportCredentialsResult.cc | 76 + csb/src/model/PublishCasServiceRequest.cc | 6 +- csb/src/model/PublishCasServiceResult.cc | 9 +- .../model/PublishUnionCasServiceRequest.cc | 6 +- csb/src/model/PublishUnionCasServiceResult.cc | 9 +- csb/src/model/RenewCredentialsRequest.cc | 4 +- csb/src/model/RenewCredentialsResult.cc | 9 +- csb/src/model/ReplaceCredentialRequest.cc | 4 +- csb/src/model/ReplaceCredentialResult.cc | 9 +- csb/src/model/UpdateOrderListRequest.cc | 4 +- csb/src/model/UpdateOrderListResult.cc | 9 +- csb/src/model/UpdateOrderRequest.cc | 6 +- csb/src/model/UpdateOrderResult.cc | 9 +- .../model/UpdateProjectListStatusRequest.cc | 6 +- .../model/UpdateProjectListStatusResult.cc | 9 +- csb/src/model/UpdateProjectRequest.cc | 6 +- csb/src/model/UpdateProjectResult.cc | 9 +- .../model/UpdateServiceListStatusRequest.cc | 6 +- .../model/UpdateServiceListStatusResult.cc | 9 +- csb/src/model/UpdateServiceQPSRequest.cc | 6 +- csb/src/model/UpdateServiceQPSResult.cc | 9 +- csb/src/model/UpdateServiceRequest.cc | 6 +- csb/src/model/UpdateServiceResult.cc | 9 +- cusanalytic_sc_online/CMakeLists.txt | 138 + .../Cusanalytic_sc_onlineClient.h | 240 +- .../Cusanalytic_sc_onlineExport.h | 62 +- .../model/DescribeActionDataRequest.h | 88 +- .../model/DescribeActionDataResult.h | 100 +- .../model/DescribeLocationsRequest.h | 88 +- .../model/DescribeLocationsResult.h | 108 +- .../model/GetActionCursorRequest.h | 48 + .../model/GetActionCursorResult.h | 55 + .../model/GetAnalyzeCommodityDataRequest.h | 88 +- .../model/GetAnalyzeCommodityDataResult.h | 96 +- .../model/GetAnalyzePlaceDataRequest.h | 88 +- .../model/GetAnalyzePlaceDataResult.h | 96 +- .../model/GetEMapRequest.h | 88 +- .../model/GetEMapResult.h | 96 +- .../model/GetHeatMapDataRequest.h | 88 +- .../model/GetHeatMapDataResult.h | 96 +- .../model/GetImageUrlRequest.h | 54 + .../model/GetImageUrlResult.h | 60 + .../model/GetLocationsRequest.h | 88 +- .../model/GetLocationsResult.h | 96 +- .../model/GetOverviewDataRequest.h | 88 +- .../model/GetOverviewDataResult.h | 96 +- .../model/GetPortrayalRequest.h | 88 +- .../model/GetPortrayalResult.h | 96 +- .../model/GetSupportStoreRequest.h | 88 +- .../model/GetSupportStoreResult.h | 96 +- .../model/ListVisitorsRequest.h | 88 +- .../model/ListVisitorsResult.h | 96 +- .../model/SearchPersonByImgRequest.h | 88 +- .../model/SearchPersonByImgResult.h | 96 +- .../src/Cusanalytic_sc_onlineClient.cc | 1040 +- .../src/model/DescribeActionDataRequest.cc | 54 +- .../src/model/DescribeActionDataResult.cc | 107 +- .../src/model/DescribeLocationsRequest.cc | 54 +- .../src/model/DescribeLocationsResult.cc | 103 +- .../src/model/GetActionCursorRequest.cc | 38 + .../src/model/GetActionCursorResult.cc | 69 + .../model/GetAnalyzeCommodityDataRequest.cc | 54 +- .../model/GetAnalyzeCommodityDataResult.cc | 93 +- .../src/model/GetAnalyzePlaceDataRequest.cc | 54 +- .../src/model/GetAnalyzePlaceDataResult.cc | 93 +- .../src/model/GetEMapRequest.cc | 54 +- .../src/model/GetEMapResult.cc | 93 +- .../src/model/GetHeatMapDataRequest.cc | 54 +- .../src/model/GetHeatMapDataResult.cc | 93 +- .../src/model/GetImageUrlRequest.cc | 60 + .../src/model/GetImageUrlResult.cc | 77 + .../src/model/GetLocationsRequest.cc | 54 +- .../src/model/GetLocationsResult.cc | 93 +- .../src/model/GetOverviewDataRequest.cc | 54 +- .../src/model/GetOverviewDataResult.cc | 93 +- .../src/model/GetPortrayalRequest.cc | 54 +- .../src/model/GetPortrayalResult.cc | 93 +- .../src/model/GetSupportStoreRequest.cc | 54 +- .../src/model/GetSupportStoreResult.cc | 93 +- .../src/model/ListVisitorsRequest.cc | 54 +- .../src/model/ListVisitorsResult.cc | 93 +- .../src/model/SearchPersonByImgRequest.cc | 54 +- .../src/model/SearchPersonByImgResult.cc | 93 +- dbs/CMakeLists.txt | 16 + dbs/include/alibabacloud/dbs/DbsClient.h | 16 +- dbs/include/alibabacloud/dbs/DbsExport.h | 62 +- .../dbs/model/ConfigureBackupPlanRequest.h | 88 +- .../dbs/model/ConfigureBackupPlanResult.h | 96 +- .../dbs/model/CreateBackupPlanRequest.h | 88 +- .../dbs/model/CreateBackupPlanResult.h | 96 +- .../dbs/model/CreateRestoreTaskRequest.h | 88 +- .../dbs/model/CreateRestoreTaskResult.h | 96 +- .../model/DescribeBackupGatewayListRequest.h | 88 +- .../model/DescribeBackupGatewayListResult.h | 96 +- .../dbs/model/DescribeBackupPlanListRequest.h | 88 +- .../dbs/model/DescribeBackupPlanListResult.h | 96 +- .../dbs/model/DescribeFullBackupListRequest.h | 88 +- .../dbs/model/DescribeFullBackupListResult.h | 96 +- .../DescribeIncrementBackupListRequest.h | 88 +- .../model/DescribeIncrementBackupListResult.h | 96 +- .../dbs/model/DescribeNodeCidrListRequest.h | 88 +- .../dbs/model/DescribeNodeCidrListResult.h | 96 +- .../model/DescribeRestoreTaskListRequest.h | 88 +- .../dbs/model/DescribeRestoreTaskListResult.h | 96 +- .../dbs/model/ModifyBackupObjectsRequest.h | 88 +- .../dbs/model/ModifyBackupObjectsResult.h | 96 +- .../dbs/model/ModifyBackupPlanNameRequest.h | 88 +- .../dbs/model/ModifyBackupPlanNameResult.h | 96 +- .../model/ModifyBackupSourceEndpointRequest.h | 88 +- .../model/ModifyBackupSourceEndpointResult.h | 96 +- .../dbs/model/ModifyBackupStrategyRequest.h | 88 +- .../dbs/model/ModifyBackupStrategyResult.h | 96 +- .../dbs/model/RenewBackupPlanRequest.h | 88 +- .../dbs/model/RenewBackupPlanResult.h | 96 +- .../dbs/model/StartBackupPlanRequest.h | 88 +- .../dbs/model/StartBackupPlanResult.h | 96 +- .../dbs/model/StartRestoreTaskRequest.h | 88 +- .../dbs/model/StartRestoreTaskResult.h | 96 +- .../dbs/model/StopBackupPlanRequest.h | 88 +- .../dbs/model/StopBackupPlanResult.h | 96 +- dbs/src/DbsClient.cc | 78 +- dbs/src/model/ConfigureBackupPlanRequest.cc | 54 +- dbs/src/model/ConfigureBackupPlanResult.cc | 93 +- dbs/src/model/CreateBackupPlanRequest.cc | 54 +- dbs/src/model/CreateBackupPlanResult.cc | 93 +- dbs/src/model/CreateRestoreTaskRequest.cc | 54 +- dbs/src/model/CreateRestoreTaskResult.cc | 93 +- .../model/DescribeBackupGatewayListRequest.cc | 54 +- .../model/DescribeBackupGatewayListResult.cc | 93 +- .../model/DescribeBackupPlanListRequest.cc | 54 +- dbs/src/model/DescribeBackupPlanListResult.cc | 93 +- .../model/DescribeFullBackupListRequest.cc | 54 +- dbs/src/model/DescribeFullBackupListResult.cc | 93 +- .../DescribeIncrementBackupListRequest.cc | 54 +- .../DescribeIncrementBackupListResult.cc | 93 +- dbs/src/model/DescribeNodeCidrListRequest.cc | 54 +- dbs/src/model/DescribeNodeCidrListResult.cc | 93 +- .../model/DescribeRestoreTaskListRequest.cc | 54 +- .../model/DescribeRestoreTaskListResult.cc | 93 +- dbs/src/model/ModifyBackupObjectsRequest.cc | 54 +- dbs/src/model/ModifyBackupObjectsResult.cc | 93 +- dbs/src/model/ModifyBackupPlanNameRequest.cc | 54 +- dbs/src/model/ModifyBackupPlanNameResult.cc | 93 +- .../ModifyBackupSourceEndpointRequest.cc | 54 +- .../model/ModifyBackupSourceEndpointResult.cc | 93 +- dbs/src/model/ModifyBackupStrategyRequest.cc | 54 +- dbs/src/model/ModifyBackupStrategyResult.cc | 93 +- dbs/src/model/RenewBackupPlanRequest.cc | 54 +- dbs/src/model/RenewBackupPlanResult.cc | 93 +- dbs/src/model/StartBackupPlanRequest.cc | 54 +- dbs/src/model/StartBackupPlanResult.cc | 93 +- dbs/src/model/StartRestoreTaskRequest.cc | 54 +- dbs/src/model/StartRestoreTaskResult.cc | 93 +- dbs/src/model/StopBackupPlanRequest.cc | 54 +- dbs/src/model/StopBackupPlanResult.cc | 93 +- dcdn/CMakeLists.txt | 240 +- dcdn/include/alibabacloud/dcdn/DcdnClient.h | 472 +- .../dcdn/model/AddDcdnDomainRequest.h | 3 - .../dcdn/model/AddDcdnIpaDomainRequest.h | 72 + .../dcdn/model/AddDcdnIpaDomainResult.h | 49 + .../BatchDeleteDcdnDomainConfigsRequest.h | 3 - .../model/BatchSetDcdnDomainConfigsRequest.h | 3 - .../BatchSetDcdnIpaDomainConfigsRequest.h | 60 + .../BatchSetDcdnIpaDomainConfigsResult.h | 49 + .../dcdn/model/DeleteDcdnDomainRequest.h | 3 - .../dcdn/model/DeleteDcdnIpaDomainRequest.h | 60 + .../dcdn/model/DeleteDcdnIpaDomainResult.h | 49 + .../DescribeDcdnCertificateDetailRequest.h | 3 - .../DescribeDcdnCertificateListRequest.h | 3 - .../model/DescribeDcdnDomainConfigsRequest.h | 3 - .../model/DescribeDcdnDomainDetailRequest.h | 3 - .../DescribeDcdnDomainIpaBpsDataRequest.h | 135 + .../DescribeDcdnDomainIpaBpsDataResult.h | 64 + .../DescribeDcdnDomainIpaTrafficDataRequest.h | 135 + .../DescribeDcdnDomainIpaTrafficDataResult.h | 64 + .../dcdn/model/DescribeDcdnDomainLogRequest.h | 3 + .../dcdn/model/DescribeDcdnDomainLogResult.h | 4 +- .../model/DescribeDcdnDomainPvDataRequest.h | 60 + .../model/DescribeDcdnDomainPvDataResult.h | 64 + ...DescribeDcdnDomainRealTimeBpsDataRequest.h | 129 + .../DescribeDcdnDomainRealTimeBpsDataResult.h | 56 + ...DcdnDomainRealTimeByteHitRateDataRequest.h | 123 + ...eDcdnDomainRealTimeByteHitRateDataResult.h | 56 + ...ibeDcdnDomainRealTimeHttpCodeDataRequest.h | 129 + ...ribeDcdnDomainRealTimeHttpCodeDataResult.h | 70 + ...DescribeDcdnDomainRealTimeQpsDataRequest.h | 129 + .../DescribeDcdnDomainRealTimeQpsDataResult.h | 56 + ...eDcdnDomainRealTimeReqHitRateDataRequest.h | 123 + ...beDcdnDomainRealTimeReqHitRateDataResult.h | 56 + ...cribeDcdnDomainRealTimeSrcBpsDataRequest.h | 123 + ...scribeDcdnDomainRealTimeSrcBpsDataResult.h | 64 + ...eDcdnDomainRealTimeSrcTrafficDataRequest.h | 123 + ...beDcdnDomainRealTimeSrcTrafficDataResult.h | 64 + .../DescribeDcdnDomainTopReferVisitRequest.h | 3 - .../DescribeDcdnDomainTopUrlVisitRequest.h | 3 - .../model/DescribeDcdnDomainUvDataRequest.h | 60 + .../model/DescribeDcdnDomainUvDataResult.h | 64 + .../DescribeDcdnIpaDomainConfigsRequest.h | 57 + .../DescribeDcdnIpaDomainConfigsResult.h | 63 + .../DescribeDcdnIpaDomainDetailRequest.h | 54 + .../model/DescribeDcdnIpaDomainDetailResult.h | 75 + .../model/DescribeDcdnIpaServiceRequest.h | 51 + .../dcdn/model/DescribeDcdnIpaServiceResult.h | 65 + .../model/DescribeDcdnIpaUserDomainsRequest.h | 78 + .../model/DescribeDcdnIpaUserDomainsResult.h | 78 + .../model/DescribeDcdnRefreshQuotaRequest.h | 3 - .../model/DescribeDcdnRefreshTasksRequest.h | 3 - .../dcdn/model/DescribeDcdnServiceRequest.h | 3 - .../model/DescribeDcdnUserDomainsRequest.h | 27 +- .../dcdn/model/DescribeDcdnUserQuotaRequest.h | 3 - .../DescribeDcdnUserResourcePackageRequest.h | 3 - .../DescribeDcdnUserResourcePackageResult.h | 1 + .../model/DescribeUserDcdnIpaStatusRequest.h | 51 + .../model/DescribeUserDcdnIpaStatusResult.h | 57 + .../model/DescribeUserDcdnStatusRequest.h | 3 - .../ModifyDCdnDomainSchdmByPropertyRequest.h | 117 + .../ModifyDCdnDomainSchdmByPropertyResult.h | 49 + .../model/PreloadDcdnObjectCachesRequest.h | 3 - .../model/RefreshDcdnObjectCachesRequest.h | 3 - .../model/SetDcdnDomainCertificateRequest.h | 3 - .../dcdn/model/StartDcdnDomainRequest.h | 3 - .../dcdn/model/StartDcdnIpaDomainRequest.h | 54 + .../dcdn/model/StartDcdnIpaDomainResult.h | 49 + .../dcdn/model/StopDcdnDomainRequest.h | 3 - .../dcdn/model/StopDcdnIpaDomainRequest.h | 54 + .../dcdn/model/StopDcdnIpaDomainResult.h | 49 + .../dcdn/model/UpdateDcdnDomainRequest.h | 3 - .../dcdn/model/UpdateDcdnIpaDomainRequest.h | 63 + .../dcdn/model/UpdateDcdnIpaDomainResult.h | 49 + dcdn/src/DcdnClient.cc | 1800 ++- dcdn/src/model/AddDcdnDomainRequest.cc | 29 +- dcdn/src/model/AddDcdnDomainResult.cc | 9 +- dcdn/src/model/AddDcdnIpaDomainRequest.cc | 126 + dcdn/src/model/AddDcdnIpaDomainResult.cc | 48 + .../BatchDeleteDcdnDomainConfigsRequest.cc | 21 +- .../BatchDeleteDcdnDomainConfigsResult.cc | 9 +- .../model/BatchSetDcdnDomainConfigsRequest.cc | 21 +- .../model/BatchSetDcdnDomainConfigsResult.cc | 9 +- .../BatchSetDcdnIpaDomainConfigsRequest.cc | 82 + .../BatchSetDcdnIpaDomainConfigsResult.cc | 48 + dcdn/src/model/DeleteDcdnDomainRequest.cc | 21 +- dcdn/src/model/DeleteDcdnDomainResult.cc | 9 +- dcdn/src/model/DeleteDcdnIpaDomainRequest.cc | 82 + dcdn/src/model/DeleteDcdnIpaDomainResult.cc | 48 + .../DescribeDcdnCertificateDetailRequest.cc | 17 +- .../DescribeDcdnCertificateDetailResult.cc | 9 +- .../DescribeDcdnCertificateListRequest.cc | 17 +- .../DescribeDcdnCertificateListResult.cc | 9 +- .../model/DescribeDcdnDomainBpsDataRequest.cc | 58 +- .../model/DescribeDcdnDomainBpsDataResult.cc | 9 +- ...escribeDcdnDomainCertificateInfoRequest.cc | 44 +- ...DescribeDcdnDomainCertificateInfoResult.cc | 9 +- .../model/DescribeDcdnDomainCnameRequest.cc | 44 +- .../model/DescribeDcdnDomainCnameResult.cc | 9 +- .../model/DescribeDcdnDomainConfigsRequest.cc | 19 +- .../model/DescribeDcdnDomainConfigsResult.cc | 9 +- .../model/DescribeDcdnDomainDetailRequest.cc | 17 +- .../model/DescribeDcdnDomainDetailResult.cc | 9 +- .../DescribeDcdnDomainHitRateDataRequest.cc | 52 +- .../DescribeDcdnDomainHitRateDataResult.cc | 9 +- .../DescribeDcdnDomainHttpCodeDataRequest.cc | 54 +- .../DescribeDcdnDomainHttpCodeDataResult.cc | 9 +- .../DescribeDcdnDomainIpaBpsDataRequest.cc | 357 + .../DescribeDcdnDomainIpaBpsDataResult.cc | 91 + ...DescribeDcdnDomainIpaTrafficDataRequest.cc | 357 + .../DescribeDcdnDomainIpaTrafficDataResult.cc | 91 + .../model/DescribeDcdnDomainIspDataRequest.cc | 48 +- .../model/DescribeDcdnDomainIspDataResult.cc | 9 +- .../src/model/DescribeDcdnDomainLogRequest.cc | 61 +- dcdn/src/model/DescribeDcdnDomainLogResult.cc | 28 +- .../DescribeDcdnDomainOriginBpsDataRequest.cc | 56 +- .../DescribeDcdnDomainOriginBpsDataResult.cc | 9 +- ...cribeDcdnDomainOriginTrafficDataRequest.cc | 56 +- ...scribeDcdnDomainOriginTrafficDataResult.cc | 9 +- .../model/DescribeDcdnDomainPvDataRequest.cc | 82 + .../model/DescribeDcdnDomainPvDataResult.cc | 91 + .../model/DescribeDcdnDomainQpsDataRequest.cc | 58 +- .../model/DescribeDcdnDomainQpsDataResult.cc | 9 +- ...escribeDcdnDomainRealTimeBpsDataRequest.cc | 335 + ...DescribeDcdnDomainRealTimeBpsDataResult.cc | 63 + ...cdnDomainRealTimeByteHitRateDataRequest.cc | 313 + ...DcdnDomainRealTimeByteHitRateDataResult.cc | 63 + ...beDcdnDomainRealTimeHttpCodeDataRequest.cc | 335 + ...ibeDcdnDomainRealTimeHttpCodeDataResult.cc | 101 + ...escribeDcdnDomainRealTimeQpsDataRequest.cc | 335 + ...DescribeDcdnDomainRealTimeQpsDataResult.cc | 63 + ...DcdnDomainRealTimeReqHitRateDataRequest.cc | 313 + ...eDcdnDomainRealTimeReqHitRateDataResult.cc | 63 + ...ribeDcdnDomainRealTimeSrcBpsDataRequest.cc | 313 + ...cribeDcdnDomainRealTimeSrcBpsDataResult.cc | 91 + ...DcdnDomainRealTimeSrcTrafficDataRequest.cc | 313 + ...eDcdnDomainRealTimeSrcTrafficDataResult.cc | 91 + .../DescribeDcdnDomainRegionDataRequest.cc | 48 +- .../DescribeDcdnDomainRegionDataResult.cc | 9 +- .../DescribeDcdnDomainTopReferVisitRequest.cc | 21 +- .../DescribeDcdnDomainTopReferVisitResult.cc | 9 +- .../DescribeDcdnDomainTopUrlVisitRequest.cc | 21 +- .../DescribeDcdnDomainTopUrlVisitResult.cc | 9 +- .../DescribeDcdnDomainTrafficDataRequest.cc | 58 +- .../DescribeDcdnDomainTrafficDataResult.cc | 9 +- .../model/DescribeDcdnDomainUvDataRequest.cc | 82 + .../model/DescribeDcdnDomainUvDataResult.cc | 91 + ...scribeDcdnDomainWebsocketBpsDataRequest.cc | 58 +- ...escribeDcdnDomainWebsocketBpsDataResult.cc | 9 +- ...eDcdnDomainWebsocketHttpCodeDataRequest.cc | 54 +- ...beDcdnDomainWebsocketHttpCodeDataResult.cc | 9 +- ...beDcdnDomainWebsocketTrafficDataRequest.cc | 58 +- ...ibeDcdnDomainWebsocketTrafficDataResult.cc | 9 +- .../DescribeDcdnIpaDomainConfigsRequest.cc | 71 + .../DescribeDcdnIpaDomainConfigsResult.cc | 75 + .../DescribeDcdnIpaDomainDetailRequest.cc | 60 + .../DescribeDcdnIpaDomainDetailResult.cc | 94 + .../model/DescribeDcdnIpaServiceRequest.cc | 49 + .../src/model/DescribeDcdnIpaServiceResult.cc | 96 + .../DescribeDcdnIpaUserDomainsRequest.cc | 148 + .../model/DescribeDcdnIpaUserDomainsResult.cc | 114 + .../model/DescribeDcdnRefreshQuotaRequest.cc | 15 +- .../model/DescribeDcdnRefreshQuotaResult.cc | 9 +- .../model/DescribeDcdnRefreshTasksRequest.cc | 35 +- .../model/DescribeDcdnRefreshTasksResult.cc | 9 +- dcdn/src/model/DescribeDcdnServiceRequest.cc | 15 +- dcdn/src/model/DescribeDcdnServiceResult.cc | 9 +- .../DescribeDcdnTopDomainsByFlowRequest.cc | 48 +- .../DescribeDcdnTopDomainsByFlowResult.cc | 9 +- .../model/DescribeDcdnUserDomainsRequest.cc | 153 +- .../model/DescribeDcdnUserDomainsResult.cc | 9 +- .../src/model/DescribeDcdnUserQuotaRequest.cc | 15 +- dcdn/src/model/DescribeDcdnUserQuotaResult.cc | 9 +- .../DescribeDcdnUserResourcePackageRequest.cc | 15 +- .../DescribeDcdnUserResourcePackageResult.cc | 11 +- .../model/DescribeUserDcdnIpaStatusRequest.cc | 49 + .../model/DescribeUserDcdnIpaStatusResult.cc | 76 + .../model/DescribeUserDcdnStatusRequest.cc | 15 +- .../src/model/DescribeUserDcdnStatusResult.cc | 9 +- .../ModifyDCdnDomainSchdmByPropertyRequest.cc | 291 + .../ModifyDCdnDomainSchdmByPropertyResult.cc | 48 + .../model/PreloadDcdnObjectCachesRequest.cc | 19 +- .../model/PreloadDcdnObjectCachesResult.cc | 9 +- .../model/RefreshDcdnObjectCachesRequest.cc | 19 +- .../model/RefreshDcdnObjectCachesResult.cc | 9 +- .../model/SetDcdnDomainCertificateRequest.cc | 31 +- .../model/SetDcdnDomainCertificateResult.cc | 9 +- dcdn/src/model/StartDcdnDomainRequest.cc | 17 +- dcdn/src/model/StartDcdnDomainResult.cc | 9 +- dcdn/src/model/StartDcdnIpaDomainRequest.cc | 60 + dcdn/src/model/StartDcdnIpaDomainResult.cc | 48 + dcdn/src/model/StopDcdnDomainRequest.cc | 17 +- dcdn/src/model/StopDcdnDomainResult.cc | 9 +- dcdn/src/model/StopDcdnIpaDomainRequest.cc | 60 + dcdn/src/model/StopDcdnIpaDomainResult.cc | 48 + dcdn/src/model/UpdateDcdnDomainRequest.cc | 23 +- dcdn/src/model/UpdateDcdnDomainResult.cc | 9 +- dcdn/src/model/UpdateDcdnIpaDomainRequest.cc | 93 + dcdn/src/model/UpdateDcdnIpaDomainResult.cc | 48 + dds/CMakeLists.txt | 412 +- dds/include/alibabacloud/dds/DdsClient.h | 144 +- ...AllocateNodePrivateNetworkAddressRequest.h | 81 + .../AllocateNodePrivateNetworkAddressResult.h | 49 + .../dds/model/CreateDBInstanceRequest.h | 3 + .../dds/model/DescribeAccountsResult.h | 1 + .../model/DescribeDBInstanceAttributeResult.h | 16 + .../dds/model/DescribeErrorLogRecordsResult.h | 2 +- .../dds/model/DescribeRoleZoneInfoRequest.h | 69 + .../dds/model/DescribeRoleZoneInfoResult.h | 59 + .../model/DescribeRunningLogRecordsResult.h | 2 +- .../DescribeShardingNetworkAddressResult.h | 1 + .../dds/model/ModifyDBInstanceSpecRequest.h | 3 + .../model/ModifyInstanceVpcAuthModeRequest.h | 75 + .../model/ModifyInstanceVpcAuthModeResult.h | 49 + .../ReleaseNodePrivateNetworkAddressRequest.h | 75 + .../ReleaseNodePrivateNetworkAddressResult.h | 49 + .../dds/model/SwitchDBInstanceHARequest.h | 3 + dds/src/DdsClient.cc | 546 +- ...llocateNodePrivateNetworkAddressRequest.cc | 159 + ...AllocateNodePrivateNetworkAddressResult.cc | 48 + .../AllocatePublicNetworkAddressResult.cc | 9 +- dds/src/model/CheckRecoveryConditionResult.cc | 9 +- dds/src/model/CreateAccountResult.cc | 9 +- dds/src/model/CreateBackupResult.cc | 9 +- dds/src/model/CreateDBInstanceRequest.cc | 11 + dds/src/model/CreateDBInstanceResult.cc | 9 +- dds/src/model/CreateNodeResult.cc | 9 +- .../model/CreateRecommendationTaskResult.cc | 9 +- .../model/CreateShardingDBInstanceResult.cc | 9 +- .../model/CreateStaticVerificationResult.cc | 9 +- dds/src/model/DeleteDBInstanceResult.cc | 9 +- dds/src/model/DeleteNodeResult.cc | 9 +- dds/src/model/DescribeAccountsResult.cc | 11 +- .../DescribeActiveOperationTaskCountResult.cc | 9 +- ...DescribeActiveOperationTaskRegionResult.cc | 9 +- .../DescribeActiveOperationTaskResult.cc | 9 +- .../DescribeActiveOperationTaskTypeResult.cc | 9 +- dds/src/model/DescribeAuditFilesResult.cc | 9 +- dds/src/model/DescribeAuditLogFilterResult.cc | 9 +- dds/src/model/DescribeAuditPolicyResult.cc | 9 +- dds/src/model/DescribeAuditRecordsResult.cc | 9 +- .../DescribeAvailableEngineVersionResult.cc | 9 +- .../model/DescribeAvailableTimeRangeResult.cc | 9 +- .../model/DescribeAvaliableTimeRangeResult.cc | 9 +- dds/src/model/DescribeBackupDBsResult.cc | 9 +- dds/src/model/DescribeBackupPolicyResult.cc | 9 +- dds/src/model/DescribeBackupsResult.cc | 9 +- .../DescribeDBInstanceAttributeResult.cc | 39 +- .../model/DescribeDBInstanceMonitorResult.cc | 9 +- .../DescribeDBInstancePerformanceResult.cc | 9 +- dds/src/model/DescribeDBInstanceSSLResult.cc | 9 +- dds/src/model/DescribeDBInstancesResult.cc | 9 +- .../model/DescribeErrorLogRecordsResult.cc | 11 +- .../DescribeIndexRecommendationResult.cc | 9 +- ...cribeInstanceAutoRenewalAttributeResult.cc | 9 +- .../model/DescribeKernelReleaseNotesResult.cc | 9 +- ...cribeParameterModificationHistoryResult.cc | 9 +- .../model/DescribeParameterTemplatesResult.cc | 9 +- dds/src/model/DescribeParametersResult.cc | 9 +- dds/src/model/DescribeRdsVSwitchsResult.cc | 9 +- dds/src/model/DescribeRdsVpcsResult.cc | 9 +- dds/src/model/DescribeRegionsResult.cc | 9 +- dds/src/model/DescribeRenewalPriceResult.cc | 9 +- .../DescribeReplicaConflictInfoResult.cc | 9 +- ...DescribeReplicaInitializeProgressResult.cc | 9 +- .../model/DescribeReplicaPerformanceResult.cc | 9 +- dds/src/model/DescribeReplicaSetRoleResult.cc | 9 +- dds/src/model/DescribeReplicaUsageResult.cc | 9 +- dds/src/model/DescribeReplicasResult.cc | 9 +- .../model/DescribeReplicationGroupResult.cc | 9 +- dds/src/model/DescribeRoleZoneInfoRequest.cc | 115 + dds/src/model/DescribeRoleZoneInfoResult.cc | 69 + .../model/DescribeRunningLogRecordsResult.cc | 11 +- dds/src/model/DescribeSecurityIpsResult.cc | 9 +- .../DescribeShardingNetworkAddressResult.cc | 11 +- dds/src/model/DescribeSlowLogRecordsResult.cc | 9 +- .../DescribeStaticVerificationListResult.cc | 9 +- dds/src/model/DescribeStrategyResult.cc | 9 +- .../model/DescribeVerificationListResult.cc | 9 +- dds/src/model/DestroyInstanceResult.cc | 9 +- dds/src/model/EvaluateFailOverSwitchResult.cc | 9 +- dds/src/model/ListTagResourcesResult.cc | 9 +- dds/src/model/MigrateAvailableZoneResult.cc | 9 +- dds/src/model/MigrateToOtherZoneResult.cc | 9 +- .../model/ModifyAccountDescriptionResult.cc | 9 +- .../model/ModifyActiveOperationTaskResult.cc | 9 +- dds/src/model/ModifyAuditLogFilterResult.cc | 9 +- dds/src/model/ModifyAuditPolicyResult.cc | 9 +- dds/src/model/ModifyBackupPolicyResult.cc | 9 +- .../ModifyDBInstanceConnectionStringResult.cc | 9 +- .../ModifyDBInstanceDescriptionResult.cc | 9 +- .../ModifyDBInstanceMaintainTimeResult.cc | 9 +- .../model/ModifyDBInstanceMonitorResult.cc | 9 +- .../ModifyDBInstanceNetExpireTimeResult.cc | 9 +- .../ModifyDBInstanceNetworkTypeResult.cc | 9 +- dds/src/model/ModifyDBInstanceSSLResult.cc | 9 +- dds/src/model/ModifyDBInstanceSpecRequest.cc | 11 + dds/src/model/ModifyDBInstanceSpecResult.cc | 9 +- dds/src/model/ModifyGuardDomainModeResult.cc | 9 +- ...odifyInstanceAutoRenewalAttributeResult.cc | 9 +- .../model/ModifyInstanceVpcAuthModeRequest.cc | 137 + .../model/ModifyInstanceVpcAuthModeResult.cc | 48 + dds/src/model/ModifyNodeSpecResult.cc | 9 +- dds/src/model/ModifyParametersResult.cc | 9 +- .../model/ModifyReplicaDescriptionResult.cc | 9 +- dds/src/model/ModifyReplicaModeResult.cc | 9 +- .../model/ModifyReplicaRecoveryModeResult.cc | 9 +- dds/src/model/ModifyReplicaRelationResult.cc | 9 +- .../ModifyReplicaVerificationModeResult.cc | 9 +- dds/src/model/ModifySecurityIpsResult.cc | 9 +- ...ReleaseNodePrivateNetworkAddressRequest.cc | 137 + .../ReleaseNodePrivateNetworkAddressResult.cc | 48 + .../ReleasePublicNetworkAddressResult.cc | 9 +- dds/src/model/ReleaseReplicaResult.cc | 9 +- dds/src/model/RenewDBInstanceResult.cc | 9 +- dds/src/model/ResetAccountPasswordResult.cc | 9 +- dds/src/model/RestartDBInstanceResult.cc | 9 +- dds/src/model/RestoreDBInstanceResult.cc | 9 +- dds/src/model/SampleResult.cc | 9 +- dds/src/model/SwitchDBInstanceHARequest.cc | 11 + dds/src/model/SwitchDBInstanceHAResult.cc | 9 +- dds/src/model/SwithcDBInstanceHAResult.cc | 9 +- dds/src/model/TagResourcesResult.cc | 9 +- dds/src/model/TransformToPrePaidResult.cc | 9 +- dds/src/model/UntagResourcesResult.cc | 9 +- .../UpgradeDBInstanceEngineVersionResult.cc | 9 +- .../UpgradeDBInstanceKernelVersionResult.cc | 9 +- domain/CMakeLists.txt | 112 +- .../alibabacloud/domain/DomainClient.h | 224 +- .../domain/model/CancelTaskRequest.h | 54 + .../domain/model/CancelTaskResult.h | 49 + .../domain/model/CheckDomainRequest.h | 3 - .../model/QueryAdvancedDomainListResult.h | 4 + .../domain/model/QueryArtExtensionRequest.h | 54 + .../domain/model/QueryArtExtensionResult.h | 69 + .../domain/model/QueryDSRecordRequest.h | 54 + .../domain/model/QueryDSRecordResult.h | 58 + .../model/QueryDomainByDomainNameRequest.h | 54 + .../model/QueryDomainByDomainNameResult.h | 97 + .../model/QueryQualificationDetailResult.h | 1 - .../model/QueryRegistrantProfilesRequest.h | 6 + .../model/QueryRegistrantProfilesResult.h | 1 + .../domain/model/QueryTaskListResult.h | 2 + ...BatchTaskForCreatingOrderActivateRequest.h | 12 + ...veBatchTaskForCreatingOrderRedeemRequest.h | 12 + ...aveBatchTaskForCreatingOrderRenewRequest.h | 12 + ...BatchTaskForCreatingOrderTransferRequest.h | 12 + .../model/SaveRegistrantProfileRequest.h | 3 + .../SaveSingleTaskForAddingDSRecordRequest.h | 66 + .../SaveSingleTaskForAddingDSRecordResult.h | 51 + ...ingleTaskForCreatingOrderActivateRequest.h | 12 + ...eSingleTaskForCreatingOrderRedeemRequest.h | 12 + ...veSingleTaskForCreatingOrderRenewRequest.h | 12 + ...ingleTaskForCreatingOrderTransferRequest.h | 12 + ...SaveSingleTaskForDeletingDSRecordRequest.h | 57 + .../SaveSingleTaskForDeletingDSRecordResult.h | 51 + ...aveSingleTaskForModifyingDSRecordRequest.h | 66 + ...SaveSingleTaskForModifyingDSRecordResult.h | 51 + ...SaveSingleTaskForSaveArtExtensionRequest.h | 81 + .../SaveSingleTaskForSaveArtExtensionResult.h | 51 + ...ingleTaskForSynchronizingDSRecordRequest.h | 54 + ...SingleTaskForSynchronizingDSRecordResult.h | 51 + .../domain/model/ScrollDomainListRequest.h | 111 + .../domain/model/ScrollDomainListResult.h | 81 + .../domain/model/VerifyContactFieldRequest.h | 3 + domain/src/DomainClient.cc | 744 +- .../src/model/AcknowledgeTaskResultRequest.cc | 6 +- .../src/model/AcknowledgeTaskResultResult.cc | 9 +- ...tchFuzzyMatchDomainSensitiveWordRequest.cc | 6 +- ...atchFuzzyMatchDomainSensitiveWordResult.cc | 9 +- .../model/CancelDomainVerificationRequest.cc | 10 +- .../model/CancelDomainVerificationResult.cc | 9 +- .../CancelQualificationVerificationRequest.cc | 10 +- .../CancelQualificationVerificationResult.cc | 9 +- domain/src/model/CancelTaskRequest.cc | 60 + domain/src/model/CancelTaskResult.cc | 48 + domain/src/model/CheckDomainRequest.cc | 21 +- domain/src/model/CheckDomainResult.cc | 9 +- .../model/CheckDomainSunriseClaimRequest.cc | 6 +- .../model/CheckDomainSunriseClaimResult.cc | 9 +- .../model/CheckMaxYearOfServerLockRequest.cc | 8 +- .../model/CheckMaxYearOfServerLockResult.cc | 9 +- .../CheckProcessingServerLockApplyRequest.cc | 8 +- .../CheckProcessingServerLockApplyResult.cc | 9 +- .../CheckTransferInFeasibilityRequest.cc | 8 +- .../model/CheckTransferInFeasibilityResult.cc | 9 +- .../model/ConfirmTransferInEmailRequest.cc | 8 +- .../src/model/ConfirmTransferInEmailResult.cc | 9 +- domain/src/model/DeleteDomainGroupRequest.cc | 6 +- domain/src/model/DeleteDomainGroupResult.cc | 9 +- .../model/DeleteEmailVerificationRequest.cc | 6 +- .../model/DeleteEmailVerificationResult.cc | 9 +- .../model/DeleteRegistrantProfileRequest.cc | 6 +- .../model/DeleteRegistrantProfileResult.cc | 9 +- domain/src/model/EmailVerifiedRequest.cc | 6 +- domain/src/model/EmailVerifiedResult.cc | 9 +- .../FuzzyMatchDomainSensitiveWordRequest.cc | 6 +- .../FuzzyMatchDomainSensitiveWordResult.cc | 9 +- .../GetQualificationUploadPolicyRequest.cc | 4 +- .../GetQualificationUploadPolicyResult.cc | 9 +- .../src/model/ListEmailVerificationRequest.cc | 16 +- .../src/model/ListEmailVerificationResult.cc | 9 +- domain/src/model/ListServerLockRequest.cc | 22 +- domain/src/model/ListServerLockResult.cc | 9 +- domain/src/model/LookupTmchNoticeRequest.cc | 6 +- domain/src/model/LookupTmchNoticeResult.cc | 9 +- domain/src/model/PollTaskResultRequest.cc | 16 +- domain/src/model/PollTaskResultResult.cc | 9 +- .../model/QueryAdvancedDomainListRequest.cc | 52 +- .../model/QueryAdvancedDomainListResult.cc | 18 +- domain/src/model/QueryArtExtensionRequest.cc | 60 + domain/src/model/QueryArtExtensionResult.cc | 118 + domain/src/model/QueryChangeLogListRequest.cc | 14 +- domain/src/model/QueryChangeLogListResult.cc | 9 +- domain/src/model/QueryContactInfoRequest.cc | 8 +- domain/src/model/QueryContactInfoResult.cc | 9 +- domain/src/model/QueryDSRecordRequest.cc | 60 + domain/src/model/QueryDSRecordResult.cc | 67 + domain/src/model/QueryDnsHostRequest.cc | 6 +- domain/src/model/QueryDnsHostResult.cc | 9 +- .../model/QueryDomainAdminDivisionRequest.cc | 4 +- .../model/QueryDomainAdminDivisionResult.cc | 9 +- .../model/QueryDomainByDomainNameRequest.cc | 60 + .../model/QueryDomainByDomainNameResult.cc | 217 + .../model/QueryDomainByInstanceIdRequest.cc | 6 +- .../model/QueryDomainByInstanceIdResult.cc | 9 +- .../src/model/QueryDomainGroupListRequest.cc | 8 +- .../src/model/QueryDomainGroupListResult.cc | 9 +- domain/src/model/QueryDomainListRequest.cc | 28 +- domain/src/model/QueryDomainListResult.cc | 9 +- ...ryDomainRealNameVerificationInfoRequest.cc | 8 +- ...eryDomainRealNameVerificationInfoResult.cc | 9 +- domain/src/model/QueryDomainSuffixRequest.cc | 4 +- domain/src/model/QueryDomainSuffixResult.cc | 9 +- .../model/QueryEmailVerificationRequest.cc | 6 +- .../src/model/QueryEmailVerificationResult.cc | 9 +- .../src/model/QueryEnsAssociationRequest.cc | 6 +- domain/src/model/QueryEnsAssociationResult.cc | 9 +- ...sonForDomainRealNameVerificationRequest.cc | 8 +- ...asonForDomainRealNameVerificationResult.cc | 9 +- ...trantProfileRealNameVerificationRequest.cc | 6 +- ...strantProfileRealNameVerificationResult.cc | 9 +- ...ailingReasonListForQualificationRequest.cc | 10 +- ...FailingReasonListForQualificationResult.cc | 9 +- .../model/QueryLocalEnsAssociationRequest.cc | 6 +- .../model/QueryLocalEnsAssociationResult.cc | 9 +- .../model/QueryQualificationDetailRequest.cc | 8 +- .../model/QueryQualificationDetailResult.cc | 11 +- ...tProfileRealNameVerificationInfoRequest.cc | 8 +- ...ntProfileRealNameVerificationInfoResult.cc | 9 +- .../model/QueryRegistrantProfilesRequest.cc | 42 +- .../model/QueryRegistrantProfilesResult.cc | 11 +- domain/src/model/QueryServerLockRequest.cc | 6 +- domain/src/model/QueryServerLockResult.cc | 9 +- .../model/QueryTaskDetailHistoryRequest.cc | 16 +- .../src/model/QueryTaskDetailHistoryResult.cc | 9 +- .../src/model/QueryTaskDetailListRequest.cc | 16 +- domain/src/model/QueryTaskDetailListResult.cc | 9 +- .../src/model/QueryTaskInfoHistoryRequest.cc | 14 +- .../src/model/QueryTaskInfoHistoryResult.cc | 9 +- domain/src/model/QueryTaskListRequest.cc | 12 +- domain/src/model/QueryTaskListResult.cc | 13 +- .../QueryTransferInByInstanceIdRequest.cc | 6 +- .../QueryTransferInByInstanceIdResult.cc | 9 +- .../src/model/QueryTransferInListRequest.cc | 16 +- domain/src/model/QueryTransferInListResult.cc | 9 +- .../src/model/QueryTransferOutInfoRequest.cc | 6 +- .../src/model/QueryTransferOutInfoResult.cc | 9 +- ...trantProfileRealNameVerificationRequest.cc | 12 +- ...strantProfileRealNameVerificationResult.cc | 9 +- .../model/ResendEmailVerificationRequest.cc | 6 +- .../model/ResendEmailVerificationResult.cc | 9 +- .../ResetQualificationVerificationRequest.cc | 8 +- .../ResetQualificationVerificationResult.cc | 9 +- .../src/model/SaveBatchDomainRemarkRequest.cc | 8 +- .../src/model/SaveBatchDomainRemarkResult.cc | 9 +- ...atchTaskForCreatingOrderActivateRequest.cc | 100 +- ...BatchTaskForCreatingOrderActivateResult.cc | 9 +- ...eBatchTaskForCreatingOrderRedeemRequest.cc | 52 +- ...veBatchTaskForCreatingOrderRedeemResult.cc | 9 +- ...veBatchTaskForCreatingOrderRenewRequest.cc | 54 +- ...aveBatchTaskForCreatingOrderRenewResult.cc | 9 +- ...atchTaskForCreatingOrderTransferRequest.cc | 56 +- ...BatchTaskForCreatingOrderTransferResult.cc | 9 +- ...tchTaskForDomainNameProxyServiceRequest.cc | 8 +- ...atchTaskForDomainNameProxyServiceResult.cc | 9 +- ...veBatchTaskForModifyingDomainDnsRequest.cc | 10 +- ...aveBatchTaskForModifyingDomainDnsResult.cc | 9 +- ...chTaskForTransferProhibitionLockRequest.cc | 8 +- ...tchTaskForTransferProhibitionLockResult.cc | 9 +- ...atchTaskForUpdateProhibitionLockRequest.cc | 8 +- ...BatchTaskForUpdateProhibitionLockResult.cc | 9 +- ...rUpdatingContactInfoByNewContactRequest.cc | 44 +- ...orUpdatingContactInfoByNewContactResult.cc | 9 +- ...ContactInfoByRegistrantProfileIdRequest.cc | 12 +- ...gContactInfoByRegistrantProfileIdResult.cc | 9 +- domain/src/model/SaveDomainGroupRequest.cc | 8 +- domain/src/model/SaveDomainGroupResult.cc | 9 +- .../src/model/SaveRegistrantProfileRequest.cc | 53 +- .../src/model/SaveRegistrantProfileResult.cc | 9 +- .../SaveSingleTaskForAddingDSRecordRequest.cc | 104 + .../SaveSingleTaskForAddingDSRecordResult.cc | 55 + ...ingleTaskForApprovingTransferOutRequest.cc | 6 +- ...SingleTaskForApprovingTransferOutResult.cc | 9 +- .../SaveSingleTaskForAssociatingEnsRequest.cc | 8 +- .../SaveSingleTaskForAssociatingEnsResult.cc | 9 +- ...SingleTaskForCancelingTransferInRequest.cc | 6 +- ...eSingleTaskForCancelingTransferInResult.cc | 9 +- ...ingleTaskForCancelingTransferOutRequest.cc | 6 +- ...SingleTaskForCancelingTransferOutResult.cc | 9 +- ...SaveSingleTaskForCreatingDnsHostRequest.cc | 10 +- .../SaveSingleTaskForCreatingDnsHostResult.cc | 9 +- ...ngleTaskForCreatingOrderActivateRequest.cc | 100 +- ...ingleTaskForCreatingOrderActivateResult.cc | 9 +- ...SingleTaskForCreatingOrderRedeemRequest.cc | 52 +- ...eSingleTaskForCreatingOrderRedeemResult.cc | 9 +- ...eSingleTaskForCreatingOrderRenewRequest.cc | 54 +- ...veSingleTaskForCreatingOrderRenewResult.cc | 9 +- ...ngleTaskForCreatingOrderTransferRequest.cc | 56 +- ...ingleTaskForCreatingOrderTransferResult.cc | 9 +- ...aveSingleTaskForDeletingDSRecordRequest.cc | 71 + ...SaveSingleTaskForDeletingDSRecordResult.cc | 55 + ...SaveSingleTaskForDeletingDnsHostRequest.cc | 8 +- .../SaveSingleTaskForDeletingDnsHostResult.cc | 9 +- ...veSingleTaskForDisassociatingEnsRequest.cc | 6 +- ...aveSingleTaskForDisassociatingEnsResult.cc | 9 +- ...gleTaskForDomainNameProxyServiceRequest.cc | 8 +- ...ngleTaskForDomainNameProxyServiceResult.cc | 9 +- ...veSingleTaskForModifyingDSRecordRequest.cc | 104 + ...aveSingleTaskForModifyingDSRecordResult.cc | 55 + ...aveSingleTaskForModifyingDnsHostRequest.cc | 10 +- ...SaveSingleTaskForModifyingDnsHostResult.cc | 9 +- ...ueryingTransferAuthorizationCodeRequest.cc | 6 +- ...QueryingTransferAuthorizationCodeResult.cc | 9 +- ...aveSingleTaskForSaveArtExtensionRequest.cc | 159 + ...SaveSingleTaskForSaveArtExtensionResult.cc | 55 + ...ngleTaskForSynchronizingDSRecordRequest.cc | 60 + ...ingleTaskForSynchronizingDSRecordResult.cc | 55 + ...ingleTaskForSynchronizingDnsHostRequest.cc | 6 +- ...SingleTaskForSynchronizingDnsHostResult.cc | 9 +- ...leTaskForTransferProhibitionLockRequest.cc | 8 +- ...gleTaskForTransferProhibitionLockResult.cc | 9 +- ...ngleTaskForUpdateProhibitionLockRequest.cc | 8 +- ...ingleTaskForUpdateProhibitionLockResult.cc | 9 +- ...SingleTaskForUpdatingContactInfoRequest.cc | 14 +- ...eSingleTaskForUpdatingContactInfoResult.cc | 9 +- ...aveTaskForSubmittingDomainDeleteRequest.cc | 6 +- ...SaveTaskForSubmittingDomainDeleteResult.cc | 9 +- ...VerificationByIdentityCredentialRequest.cc | 12 +- ...eVerificationByIdentityCredentialResult.cc | 9 +- ...erificationByRegistrantProfileIDRequest.cc | 10 +- ...VerificationByRegistrantProfileIDResult.cc | 9 +- ...gistrantInfoByIdentityCredentialRequest.cc | 48 +- ...egistrantInfoByIdentityCredentialResult.cc | 9 +- ...istrantInfoByRegistrantProfileIDRequest.cc | 10 +- ...gistrantInfoByRegistrantProfileIDResult.cc | 9 +- domain/src/model/ScrollDomainListRequest.cc | 269 + domain/src/model/ScrollDomainListResult.cc | 123 + .../model/SubmitEmailVerificationRequest.cc | 8 +- .../model/SubmitEmailVerificationResult.cc | 9 +- .../model/TransferInCheckMailTokenRequest.cc | 6 +- .../model/TransferInCheckMailTokenResult.cc | 9 +- ...ReenterTransferAuthorizationCodeRequest.cc | 8 +- ...nReenterTransferAuthorizationCodeResult.cc | 9 +- .../TransferInRefetchWhoisEmailRequest.cc | 6 +- .../TransferInRefetchWhoisEmailResult.cc | 9 +- .../model/TransferInResendMailTokenRequest.cc | 6 +- .../model/TransferInResendMailTokenResult.cc | 9 +- .../model/UpdateDomainToDomainGroupRequest.cc | 14 +- .../model/UpdateDomainToDomainGroupResult.cc | 9 +- domain/src/model/VerifyContactFieldRequest.cc | 49 +- domain/src/model/VerifyContactFieldResult.cc | 9 +- domain/src/model/VerifyEmailRequest.cc | 6 +- domain/src/model/VerifyEmailResult.cc | 9 +- drds/CMakeLists.txt | 8 + drds/include/alibabacloud/drds/DrdsClient.h | 16 + .../drds/model/CreateDrdsInstanceRequest.h | 12 + .../DescribeDrdsInstanceDbMonitorRequest.h | 63 + .../DescribeDrdsInstanceDbMonitorResult.h | 64 + .../DescribeDrdsInstanceMonitorRequest.h | 63 + .../model/DescribeDrdsInstanceMonitorResult.h | 64 + .../drds/model/DescribeDrdsInstancesRequest.h | 3 + .../drds/model/DescribeDrdsInstancesResult.h | 9 +- .../drds/model/DescribeShardDBsResult.h | 1 + drds/src/DrdsClient.cc | 78 +- drds/src/model/CreateDrdsAccountRequest.cc | 10 +- drds/src/model/CreateDrdsAccountResult.cc | 9 +- drds/src/model/CreateDrdsDBRequest.cc | 12 +- drds/src/model/CreateDrdsDBResult.cc | 9 +- drds/src/model/CreateDrdsInstanceRequest.cc | 68 +- drds/src/model/CreateDrdsInstanceResult.cc | 9 +- .../src/model/CreateReadOnlyAccountRequest.cc | 8 +- drds/src/model/CreateReadOnlyAccountResult.cc | 9 +- drds/src/model/DeleteDrdsDBRequest.cc | 6 +- drds/src/model/DeleteDrdsDBResult.cc | 9 +- drds/src/model/DeleteFailedDrdsDBRequest.cc | 6 +- drds/src/model/DeleteFailedDrdsDBResult.cc | 9 +- ...DescribeCreateDrdsInstanceStatusRequest.cc | 4 +- .../DescribeCreateDrdsInstanceStatusResult.cc | 9 +- .../model/DescribeDrdsDBIpWhiteListRequest.cc | 8 +- .../model/DescribeDrdsDBIpWhiteListResult.cc | 9 +- drds/src/model/DescribeDrdsDBRequest.cc | 6 +- drds/src/model/DescribeDrdsDBResult.cc | 9 +- drds/src/model/DescribeDrdsDBsRequest.cc | 4 +- drds/src/model/DescribeDrdsDBsResult.cc | 9 +- .../DescribeDrdsInstanceDbMonitorRequest.cc | 93 + .../DescribeDrdsInstanceDbMonitorResult.cc | 80 + .../DescribeDrdsInstanceMonitorRequest.cc | 93 + .../DescribeDrdsInstanceMonitorResult.cc | 80 + ...cribeDrdsInstanceNetInfoForInnerRequest.cc | 4 +- ...scribeDrdsInstanceNetInfoForInnerResult.cc | 9 +- drds/src/model/DescribeDrdsInstanceRequest.cc | 4 +- drds/src/model/DescribeDrdsInstanceResult.cc | 9 +- .../src/model/DescribeDrdsInstancesRequest.cc | 17 +- drds/src/model/DescribeDrdsInstancesResult.cc | 16 +- drds/src/model/DescribeRdsListRequest.cc | 6 +- drds/src/model/DescribeRdsListResult.cc | 9 +- .../model/DescribeReadOnlyAccountRequest.cc | 6 +- .../model/DescribeReadOnlyAccountResult.cc | 9 +- drds/src/model/DescribeRegionsRequest.cc | 2 +- drds/src/model/DescribeRegionsResult.cc | 9 +- drds/src/model/DescribeShardDBsRequest.cc | 6 +- drds/src/model/DescribeShardDBsResult.cc | 11 +- .../DescribeShardDbConnectionInfoRequest.cc | 8 +- .../DescribeShardDbConnectionInfoResult.cc | 9 +- drds/src/model/ModifyDrdsDBPasswdRequest.cc | 8 +- drds/src/model/ModifyDrdsDBPasswdResult.cc | 9 +- .../ModifyDrdsInstanceDescriptionRequest.cc | 6 +- .../ModifyDrdsInstanceDescriptionResult.cc | 9 +- .../src/model/ModifyDrdsIpWhiteListRequest.cc | 14 +- drds/src/model/ModifyDrdsIpWhiteListResult.cc | 9 +- drds/src/model/ModifyFullTableScanRequest.cc | 10 +- drds/src/model/ModifyFullTableScanResult.cc | 9 +- drds/src/model/ModifyRdsReadWeightRequest.cc | 10 +- drds/src/model/ModifyRdsReadWeightResult.cc | 9 +- .../ModifyReadOnlyAccountPasswordRequest.cc | 12 +- .../ModifyReadOnlyAccountPasswordResult.cc | 9 +- .../model/QueryInstanceInfoByConnRequest.cc | 8 +- .../model/QueryInstanceInfoByConnResult.cc | 9 +- drds/src/model/RemoveDrdsInstanceRequest.cc | 4 +- drds/src/model/RemoveDrdsInstanceResult.cc | 9 +- .../src/model/RemoveReadOnlyAccountRequest.cc | 8 +- drds/src/model/RemoveReadOnlyAccountResult.cc | 9 +- dysmsapi/src/model/QuerySendDetailsRequest.cc | 18 +- dysmsapi/src/model/QuerySendDetailsResult.cc | 9 +- dysmsapi/src/model/SendBatchSmsRequest.cc | 18 +- dysmsapi/src/model/SendBatchSmsResult.cc | 9 +- dysmsapi/src/model/SendSmsRequest.cc | 20 +- dysmsapi/src/model/SendSmsResult.cc | 9 +- dyvmsapi/CMakeLists.txt | 112 +- .../alibabacloud/dyvmsapi/DyvmsapiClient.h | 224 +- .../dyvmsapi/model/AddRtcAccountRequest.h | 60 + .../dyvmsapi/model/AddRtcAccountResult.h | 55 + .../model/BatchRobotSmartCallRequest.h | 90 + .../model/BatchRobotSmartCallResult.h | 55 + .../model/CancelOrderRobotTaskRequest.h | 60 + .../model/CancelOrderRobotTaskResult.h | 55 + .../dyvmsapi/model/CancelRobotTaskRequest.h | 60 + .../dyvmsapi/model/CancelRobotTaskResult.h | 55 + .../dyvmsapi/model/CreateRobotTaskRequest.h | 87 + .../dyvmsapi/model/CreateRobotTaskResult.h | 55 + .../dyvmsapi/model/DeleteRobotTaskRequest.h | 60 + .../dyvmsapi/model/DeleteRobotTaskResult.h | 55 + .../dyvmsapi/model/GetRtcTokenRequest.h | 66 + .../dyvmsapi/model/GetRtcTokenResult.h | 55 + .../dyvmsapi/model/IvrCallRequest.h | 2 +- .../model/QueryCallDetailByTaskIdRequest.h | 66 + .../model/QueryCallDetailByTaskIdResult.h | 55 + .../model/QueryRobotInfoListRequest.h | 60 + .../dyvmsapi/model/QueryRobotInfoListResult.h | 55 + .../model/QueryRobotTaskCallDetailRequest.h | 66 + .../model/QueryRobotTaskCallDetailResult.h | 55 + .../model/QueryRobotTaskCallListRequest.h | 87 + .../model/QueryRobotTaskCallListResult.h | 55 + .../model/QueryRobotTaskDetailRequest.h | 60 + .../model/QueryRobotTaskDetailResult.h | 55 + .../model/QueryRobotTaskListRequest.h | 72 + .../dyvmsapi/model/QueryRobotTaskListResult.h | 55 + .../model/QueryRobotv2AllListRequest.h | 57 + .../model/QueryRobotv2AllListResult.h | 55 + .../dyvmsapi/model/SmartCallOperateRequest.h | 66 + .../dyvmsapi/model/SmartCallOperateResult.h | 55 + .../dyvmsapi/model/SmartCallRequest.h | 63 +- .../dyvmsapi/model/StartRobotTaskRequest.h | 63 + .../dyvmsapi/model/StartRobotTaskResult.h | 55 + .../dyvmsapi/model/StopRobotTaskRequest.h | 60 + .../dyvmsapi/model/StopRobotTaskResult.h | 55 + .../model/UploadRobotTaskCalledFileRequest.h | 69 + .../model/UploadRobotTaskCalledFileResult.h | 55 + .../dyvmsapi/model/VoipGetTokenRequest.h | 3 + dyvmsapi/src/DyvmsapiClient.cc | 852 +- dyvmsapi/src/model/AddRtcAccountRequest.cc | 82 + dyvmsapi/src/model/AddRtcAccountResult.cc | 69 + .../src/model/BatchRobotSmartCallRequest.cc | 192 + .../src/model/BatchRobotSmartCallResult.cc | 69 + dyvmsapi/src/model/CancelCallRequest.cc | 10 +- dyvmsapi/src/model/CancelCallResult.cc | 9 +- .../src/model/CancelOrderRobotTaskRequest.cc | 82 + .../src/model/CancelOrderRobotTaskResult.cc | 69 + dyvmsapi/src/model/CancelRobotTaskRequest.cc | 82 + dyvmsapi/src/model/CancelRobotTaskResult.cc | 69 + dyvmsapi/src/model/ClickToDialRequest.cc | 26 +- dyvmsapi/src/model/ClickToDialResult.cc | 9 +- dyvmsapi/src/model/CreateRobotTaskRequest.cc | 181 + dyvmsapi/src/model/CreateRobotTaskResult.cc | 69 + dyvmsapi/src/model/DeleteRobotTaskRequest.cc | 82 + dyvmsapi/src/model/DeleteRobotTaskResult.cc | 69 + dyvmsapi/src/model/GetRtcTokenRequest.cc | 104 + dyvmsapi/src/model/GetRtcTokenResult.cc | 69 + dyvmsapi/src/model/IvrCallRequest.cc | 32 +- dyvmsapi/src/model/IvrCallResult.cc | 9 +- .../model/QueryCallDetailByCallIdRequest.cc | 14 +- .../model/QueryCallDetailByCallIdResult.cc | 9 +- .../model/QueryCallDetailByTaskIdRequest.cc | 104 + .../model/QueryCallDetailByTaskIdResult.cc | 69 + .../src/model/QueryRobotInfoListRequest.cc | 82 + .../src/model/QueryRobotInfoListResult.cc | 69 + .../model/QueryRobotTaskCallDetailRequest.cc | 104 + .../model/QueryRobotTaskCallDetailResult.cc | 69 + .../model/QueryRobotTaskCallListRequest.cc | 181 + .../src/model/QueryRobotTaskCallListResult.cc | 69 + .../src/model/QueryRobotTaskDetailRequest.cc | 82 + .../src/model/QueryRobotTaskDetailResult.cc | 69 + .../src/model/QueryRobotTaskListRequest.cc | 126 + .../src/model/QueryRobotTaskListResult.cc | 69 + .../src/model/QueryRobotv2AllListRequest.cc | 71 + .../src/model/QueryRobotv2AllListResult.cc | 69 + dyvmsapi/src/model/SingleCallByTtsRequest.cc | 24 +- dyvmsapi/src/model/SingleCallByTtsResult.cc | 9 +- .../src/model/SingleCallByVoiceRequest.cc | 22 +- dyvmsapi/src/model/SingleCallByVoiceResult.cc | 9 +- dyvmsapi/src/model/SmartCallOperateRequest.cc | 104 + dyvmsapi/src/model/SmartCallOperateResult.cc | 69 + dyvmsapi/src/model/SmartCallRequest.cc | 215 +- dyvmsapi/src/model/SmartCallResult.cc | 9 +- dyvmsapi/src/model/StartRobotTaskRequest.cc | 93 + dyvmsapi/src/model/StartRobotTaskResult.cc | 69 + dyvmsapi/src/model/StopRobotTaskRequest.cc | 82 + dyvmsapi/src/model/StopRobotTaskResult.cc | 69 + .../model/UploadRobotTaskCalledFileRequest.cc | 115 + .../model/UploadRobotTaskCalledFileResult.cc | 69 + dyvmsapi/src/model/VoipAddAccountRequest.cc | 10 +- dyvmsapi/src/model/VoipAddAccountResult.cc | 9 +- dyvmsapi/src/model/VoipGetTokenRequest.cc | 23 +- dyvmsapi/src/model/VoipGetTokenResult.cc | 9 +- ecs/CMakeLists.txt | 1096 +- ecs/include/alibabacloud/ecs/EcsClient.h | 488 +- ecs/include/alibabacloud/ecs/EcsExport.h | 62 +- .../model/AcceptInquiredSystemEventRequest.h | 88 +- .../model/AcceptInquiredSystemEventResult.h | 96 +- .../model/ActivateRouterInterfaceRequest.h | 88 +- .../ecs/model/ActivateRouterInterfaceResult.h | 96 +- .../ecs/model/AddBandwidthPackageIpsRequest.h | 88 +- .../ecs/model/AddBandwidthPackageIpsResult.h | 96 +- .../alibabacloud/ecs/model/AddTagsRequest.h | 88 +- .../alibabacloud/ecs/model/AddTagsResult.h | 96 +- .../ecs/model/AllocateDedicatedHostsRequest.h | 88 +- .../ecs/model/AllocateDedicatedHostsResult.h | 96 +- .../ecs/model/AllocateEipAddressRequest.h | 88 +- .../ecs/model/AllocateEipAddressResult.h | 96 +- .../model/AllocatePublicIpAddressRequest.h | 88 +- .../ecs/model/AllocatePublicIpAddressResult.h | 96 +- .../model/ApplyAutoSnapshotPolicyRequest.h | 88 +- .../ecs/model/ApplyAutoSnapshotPolicyResult.h | 96 +- .../ecs/model/AssignIpv6AddressesRequest.h | 88 +- .../ecs/model/AssignIpv6AddressesResult.h | 96 +- .../model/AssignPrivateIpAddressesRequest.h | 88 +- .../model/AssignPrivateIpAddressesResult.h | 96 +- .../ecs/model/AssociateEipAddressRequest.h | 88 +- .../ecs/model/AssociateEipAddressResult.h | 96 +- .../ecs/model/AssociateHaVipRequest.h | 88 +- .../ecs/model/AssociateHaVipResult.h | 96 +- .../ecs/model/AttachClassicLinkVpcRequest.h | 88 +- .../ecs/model/AttachClassicLinkVpcResult.h | 96 +- .../ecs/model/AttachDiskRequest.h | 88 +- .../alibabacloud/ecs/model/AttachDiskResult.h | 96 +- .../ecs/model/AttachInstanceRamRoleRequest.h | 88 +- .../ecs/model/AttachInstanceRamRoleResult.h | 96 +- .../ecs/model/AttachKeyPairRequest.h | 88 +- .../ecs/model/AttachKeyPairResult.h | 96 +- .../ecs/model/AttachNetworkInterfaceRequest.h | 88 +- .../ecs/model/AttachNetworkInterfaceResult.h | 96 +- .../AuthorizeSecurityGroupEgressRequest.h | 88 +- .../AuthorizeSecurityGroupEgressResult.h | 96 +- .../ecs/model/AuthorizeSecurityGroupRequest.h | 88 +- .../ecs/model/AuthorizeSecurityGroupResult.h | 96 +- .../model/CancelAutoSnapshotPolicyRequest.h | 88 +- .../model/CancelAutoSnapshotPolicyResult.h | 96 +- .../ecs/model/CancelCopyImageRequest.h | 88 +- .../ecs/model/CancelCopyImageResult.h | 96 +- .../model/CancelPhysicalConnectionRequest.h | 88 +- .../model/CancelPhysicalConnectionResult.h | 96 +- .../CancelSimulatedSystemEventsRequest.h | 88 +- .../model/CancelSimulatedSystemEventsResult.h | 96 +- .../ecs/model/CancelTaskRequest.h | 88 +- .../alibabacloud/ecs/model/CancelTaskResult.h | 96 +- .../ecs/model/ConnectRouterInterfaceRequest.h | 88 +- .../ecs/model/ConnectRouterInterfaceResult.h | 96 +- .../model/ConvertNatPublicIpToEipRequest.h | 88 +- .../ecs/model/ConvertNatPublicIpToEipResult.h | 96 +- .../alibabacloud/ecs/model/CopyImageRequest.h | 88 +- .../alibabacloud/ecs/model/CopyImageResult.h | 96 +- .../CreateAutoProvisioningGroupRequest.h | 88 +- .../model/CreateAutoProvisioningGroupResult.h | 96 +- .../model/CreateAutoSnapshotPolicyRequest.h | 88 +- .../model/CreateAutoSnapshotPolicyResult.h | 96 +- .../ecs/model/CreateCommandRequest.h | 88 +- .../ecs/model/CreateCommandResult.h | 96 +- .../ecs/model/CreateDeploymentSetRequest.h | 88 +- .../ecs/model/CreateDeploymentSetResult.h | 96 +- .../ecs/model/CreateDiskRequest.h | 88 +- .../alibabacloud/ecs/model/CreateDiskResult.h | 96 +- .../ecs/model/CreateFleetRequest.h | 88 +- .../ecs/model/CreateFleetResult.h | 96 +- .../ecs/model/CreateForwardEntryRequest.h | 88 +- .../ecs/model/CreateForwardEntryResult.h | 96 +- .../ecs/model/CreateHaVipRequest.h | 88 +- .../ecs/model/CreateHaVipResult.h | 96 +- .../ecs/model/CreateHpcClusterRequest.h | 88 +- .../ecs/model/CreateHpcClusterResult.h | 96 +- .../ecs/model/CreateImageRequest.h | 88 +- .../ecs/model/CreateImageResult.h | 96 +- .../ecs/model/CreateInstanceRequest.h | 88 +- .../ecs/model/CreateInstanceResult.h | 96 +- .../ecs/model/CreateKeyPairRequest.h | 88 +- .../ecs/model/CreateKeyPairResult.h | 96 +- .../ecs/model/CreateLaunchTemplateRequest.h | 88 +- .../ecs/model/CreateLaunchTemplateResult.h | 96 +- .../CreateLaunchTemplateVersionRequest.h | 88 +- .../model/CreateLaunchTemplateVersionResult.h | 96 +- .../ecs/model/CreateNatGatewayRequest.h | 88 +- .../ecs/model/CreateNatGatewayResult.h | 96 +- .../CreateNetworkInterfacePermissionRequest.h | 88 +- .../CreateNetworkInterfacePermissionResult.h | 96 +- .../ecs/model/CreateNetworkInterfaceRequest.h | 88 +- .../ecs/model/CreateNetworkInterfaceResult.h | 96 +- .../model/CreatePhysicalConnectionRequest.h | 88 +- .../model/CreatePhysicalConnectionResult.h | 96 +- .../ecs/model/CreateRouteEntryRequest.h | 88 +- .../ecs/model/CreateRouteEntryResult.h | 96 +- .../ecs/model/CreateRouterInterfaceRequest.h | 88 +- .../ecs/model/CreateRouterInterfaceResult.h | 96 +- .../ecs/model/CreateSecurityGroupRequest.h | 88 +- .../ecs/model/CreateSecurityGroupResult.h | 96 +- .../CreateSimulatedSystemEventsRequest.h | 88 +- .../model/CreateSimulatedSystemEventsResult.h | 96 +- .../ecs/model/CreateSnapshotRequest.h | 88 +- .../ecs/model/CreateSnapshotResult.h | 96 +- .../ecs/model/CreateStorageSetRequest.h | 88 +- .../ecs/model/CreateStorageSetResult.h | 96 +- .../ecs/model/CreateVSwitchRequest.h | 88 +- .../ecs/model/CreateVSwitchResult.h | 96 +- .../model/CreateVirtualBorderRouterRequest.h | 88 +- .../model/CreateVirtualBorderRouterResult.h | 96 +- .../alibabacloud/ecs/model/CreateVpcRequest.h | 88 +- .../alibabacloud/ecs/model/CreateVpcResult.h | 96 +- .../model/DeactivateRouterInterfaceRequest.h | 88 +- .../model/DeactivateRouterInterfaceResult.h | 96 +- .../DeleteAutoProvisioningGroupRequest.h | 88 +- .../model/DeleteAutoProvisioningGroupResult.h | 96 +- .../model/DeleteAutoSnapshotPolicyRequest.h | 88 +- .../model/DeleteAutoSnapshotPolicyResult.h | 96 +- .../ecs/model/DeleteBandwidthPackageRequest.h | 88 +- .../ecs/model/DeleteBandwidthPackageResult.h | 96 +- .../ecs/model/DeleteCommandRequest.h | 88 +- .../ecs/model/DeleteCommandResult.h | 96 +- .../ecs/model/DeleteDeploymentSetRequest.h | 88 +- .../ecs/model/DeleteDeploymentSetResult.h | 96 +- .../ecs/model/DeleteDiskRequest.h | 88 +- .../alibabacloud/ecs/model/DeleteDiskResult.h | 96 +- .../ecs/model/DeleteFleetRequest.h | 88 +- .../ecs/model/DeleteFleetResult.h | 96 +- .../ecs/model/DeleteForwardEntryRequest.h | 88 +- .../ecs/model/DeleteForwardEntryResult.h | 96 +- .../ecs/model/DeleteHaVipRequest.h | 88 +- .../ecs/model/DeleteHaVipResult.h | 96 +- .../ecs/model/DeleteHpcClusterRequest.h | 88 +- .../ecs/model/DeleteHpcClusterResult.h | 96 +- .../ecs/model/DeleteImageRequest.h | 88 +- .../ecs/model/DeleteImageResult.h | 96 +- .../ecs/model/DeleteInstanceRequest.h | 88 +- .../ecs/model/DeleteInstanceResult.h | 96 +- .../ecs/model/DeleteInstancesRequest.h | 88 +- .../ecs/model/DeleteInstancesResult.h | 96 +- .../ecs/model/DeleteKeyPairsRequest.h | 88 +- .../ecs/model/DeleteKeyPairsResult.h | 96 +- .../ecs/model/DeleteLaunchTemplateRequest.h | 88 +- .../ecs/model/DeleteLaunchTemplateResult.h | 96 +- .../DeleteLaunchTemplateVersionRequest.h | 88 +- .../model/DeleteLaunchTemplateVersionResult.h | 96 +- .../ecs/model/DeleteNatGatewayRequest.h | 88 +- .../ecs/model/DeleteNatGatewayResult.h | 96 +- .../DeleteNetworkInterfacePermissionRequest.h | 88 +- .../DeleteNetworkInterfacePermissionResult.h | 96 +- .../ecs/model/DeleteNetworkInterfaceRequest.h | 88 +- .../ecs/model/DeleteNetworkInterfaceResult.h | 96 +- .../model/DeletePhysicalConnectionRequest.h | 88 +- .../model/DeletePhysicalConnectionResult.h | 96 +- .../ecs/model/DeleteRouteEntryRequest.h | 88 +- .../ecs/model/DeleteRouteEntryResult.h | 96 +- .../ecs/model/DeleteRouterInterfaceRequest.h | 88 +- .../ecs/model/DeleteRouterInterfaceResult.h | 96 +- .../ecs/model/DeleteSecurityGroupRequest.h | 88 +- .../ecs/model/DeleteSecurityGroupResult.h | 96 +- .../ecs/model/DeleteSnapshotRequest.h | 88 +- .../ecs/model/DeleteSnapshotResult.h | 96 +- .../ecs/model/DeleteStorageSetRequest.h | 88 +- .../ecs/model/DeleteStorageSetResult.h | 96 +- .../ecs/model/DeleteVSwitchRequest.h | 88 +- .../ecs/model/DeleteVSwitchResult.h | 96 +- .../model/DeleteVirtualBorderRouterRequest.h | 88 +- .../model/DeleteVirtualBorderRouterResult.h | 96 +- .../alibabacloud/ecs/model/DeleteVpcRequest.h | 88 +- .../alibabacloud/ecs/model/DeleteVpcResult.h | 96 +- .../ecs/model/DescribeAccessPointsRequest.h | 88 +- .../ecs/model/DescribeAccessPointsResult.h | 96 +- .../model/DescribeAccountAttributesRequest.h | 88 +- .../model/DescribeAccountAttributesResult.h | 96 +- ...cribeAutoProvisioningGroupHistoryRequest.h | 88 +- ...scribeAutoProvisioningGroupHistoryResult.h | 96 +- ...ibeAutoProvisioningGroupInstancesRequest.h | 88 +- ...ribeAutoProvisioningGroupInstancesResult.h | 96 +- .../DescribeAutoProvisioningGroupsRequest.h | 88 +- .../DescribeAutoProvisioningGroupsResult.h | 96 +- .../DescribeAutoSnapshotPolicyExRequest.h | 88 +- .../DescribeAutoSnapshotPolicyExResult.h | 96 +- .../model/DescribeAvailableResourceRequest.h | 88 +- .../model/DescribeAvailableResourceResult.h | 96 +- .../DescribeBandwidthLimitationRequest.h | 88 +- .../model/DescribeBandwidthLimitationResult.h | 96 +- .../model/DescribeBandwidthPackagesRequest.h | 88 +- .../model/DescribeBandwidthPackagesResult.h | 96 +- .../DescribeClassicLinkInstancesRequest.h | 88 +- .../DescribeClassicLinkInstancesResult.h | 96 +- .../DescribeCloudAssistantStatusRequest.h | 88 +- .../DescribeCloudAssistantStatusResult.h | 96 +- .../ecs/model/DescribeClustersRequest.h | 88 +- .../ecs/model/DescribeClustersResult.h | 96 +- .../ecs/model/DescribeCommandsRequest.h | 88 +- .../ecs/model/DescribeCommandsResult.h | 96 +- .../DescribeDedicatedHostAutoRenewRequest.h | 88 +- .../DescribeDedicatedHostAutoRenewResult.h | 96 +- .../model/DescribeDedicatedHostTypesRequest.h | 88 +- .../model/DescribeDedicatedHostTypesResult.h | 96 +- .../ecs/model/DescribeDedicatedHostsRequest.h | 88 +- .../ecs/model/DescribeDedicatedHostsResult.h | 96 +- .../ecs/model/DescribeDemandsRequest.h | 88 +- .../ecs/model/DescribeDemandsResult.h | 96 +- .../ecs/model/DescribeDeploymentSetsRequest.h | 88 +- .../ecs/model/DescribeDeploymentSetsResult.h | 96 +- .../model/DescribeDiskMonitorDataRequest.h | 88 +- .../ecs/model/DescribeDiskMonitorDataResult.h | 96 +- .../model/DescribeDisksFullStatusRequest.h | 88 +- .../ecs/model/DescribeDisksFullStatusResult.h | 96 +- .../ecs/model/DescribeDisksRequest.h | 88 +- .../ecs/model/DescribeDisksResult.h | 96 +- .../ecs/model/DescribeEipAddressesRequest.h | 88 +- .../ecs/model/DescribeEipAddressesResult.h | 96 +- .../ecs/model/DescribeEipMonitorDataRequest.h | 88 +- .../ecs/model/DescribeEipMonitorDataResult.h | 96 +- .../ecs/model/DescribeEniMonitorDataRequest.h | 88 +- .../ecs/model/DescribeEniMonitorDataResult.h | 96 +- .../ecs/model/DescribeFleetHistoryRequest.h | 88 +- .../ecs/model/DescribeFleetHistoryResult.h | 96 +- .../ecs/model/DescribeFleetInstancesRequest.h | 88 +- .../ecs/model/DescribeFleetInstancesResult.h | 96 +- .../ecs/model/DescribeFleetsRequest.h | 88 +- .../ecs/model/DescribeFleetsResult.h | 96 +- .../DescribeForwardTableEntriesRequest.h | 88 +- .../model/DescribeForwardTableEntriesResult.h | 96 +- .../ecs/model/DescribeHaVipsRequest.h | 88 +- .../ecs/model/DescribeHaVipsResult.h | 96 +- .../ecs/model/DescribeHpcClustersRequest.h | 88 +- .../ecs/model/DescribeHpcClustersResult.h | 96 +- .../DescribeImageSharePermissionRequest.h | 88 +- .../DescribeImageSharePermissionResult.h | 96 +- ...DescribeImageSupportInstanceTypesRequest.h | 88 +- .../DescribeImageSupportInstanceTypesResult.h | 96 +- .../ecs/model/DescribeImagesRequest.h | 88 +- .../ecs/model/DescribeImagesResult.h | 96 +- .../model/DescribeInstanceAttributeRequest.h | 88 +- .../model/DescribeInstanceAttributeResult.h | 96 +- ...escribeInstanceAutoRenewAttributeRequest.h | 88 +- ...DescribeInstanceAutoRenewAttributeResult.h | 96 +- .../DescribeInstanceHistoryEventsRequest.h | 88 +- .../DescribeInstanceHistoryEventsResult.h | 96 +- .../DescribeInstanceMonitorDataRequest.h | 88 +- .../model/DescribeInstanceMonitorDataResult.h | 96 +- ...DescribeInstancePhysicalAttributeRequest.h | 88 +- .../DescribeInstancePhysicalAttributeResult.h | 96 +- .../model/DescribeInstanceRamRoleRequest.h | 88 +- .../ecs/model/DescribeInstanceRamRoleResult.h | 96 +- .../ecs/model/DescribeInstanceStatusRequest.h | 88 +- .../ecs/model/DescribeInstanceStatusResult.h | 96 +- .../model/DescribeInstanceTopologyRequest.h | 88 +- .../model/DescribeInstanceTopologyResult.h | 96 +- .../DescribeInstanceTypeFamiliesRequest.h | 88 +- .../DescribeInstanceTypeFamiliesResult.h | 96 +- .../ecs/model/DescribeInstanceTypesRequest.h | 88 +- .../ecs/model/DescribeInstanceTypesResult.h | 96 +- .../model/DescribeInstanceVncPasswdRequest.h | 88 +- .../model/DescribeInstanceVncPasswdResult.h | 96 +- .../ecs/model/DescribeInstanceVncUrlRequest.h | 88 +- .../ecs/model/DescribeInstanceVncUrlResult.h | 96 +- .../DescribeInstancesFullStatusRequest.h | 88 +- .../model/DescribeInstancesFullStatusResult.h | 96 +- .../ecs/model/DescribeInstancesRequest.h | 88 +- .../ecs/model/DescribeInstancesResult.h | 96 +- .../model/DescribeInvocationResultsRequest.h | 88 +- .../model/DescribeInvocationResultsResult.h | 96 +- .../ecs/model/DescribeInvocationsRequest.h | 88 +- .../ecs/model/DescribeInvocationsResult.h | 96 +- .../ecs/model/DescribeKeyPairsRequest.h | 88 +- .../ecs/model/DescribeKeyPairsResult.h | 96 +- .../DescribeLaunchTemplateVersionsRequest.h | 88 +- .../DescribeLaunchTemplateVersionsResult.h | 96 +- .../model/DescribeLaunchTemplatesRequest.h | 88 +- .../ecs/model/DescribeLaunchTemplatesResult.h | 96 +- .../ecs/model/DescribeLimitationRequest.h | 88 +- .../ecs/model/DescribeLimitationResult.h | 96 +- .../ecs/model/DescribeNatGatewaysRequest.h | 88 +- .../ecs/model/DescribeNatGatewaysResult.h | 96 +- ...scribeNetworkInterfacePermissionsRequest.h | 88 +- ...escribeNetworkInterfacePermissionsResult.h | 96 +- .../model/DescribeNetworkInterfacesRequest.h | 88 +- .../model/DescribeNetworkInterfacesResult.h | 96 +- .../DescribeNewProjectEipMonitorDataRequest.h | 88 +- .../DescribeNewProjectEipMonitorDataResult.h | 96 +- .../DescribePhysicalConnectionsRequest.h | 88 +- .../model/DescribePhysicalConnectionsResult.h | 96 +- .../ecs/model/DescribePriceRequest.h | 88 +- .../ecs/model/DescribePriceResult.h | 96 +- .../DescribeRecommendInstanceTypeRequest.h | 88 +- .../DescribeRecommendInstanceTypeResult.h | 96 +- .../ecs/model/DescribeRegionsRequest.h | 88 +- .../ecs/model/DescribeRegionsResult.h | 96 +- .../ecs/model/DescribeRenewalPriceRequest.h | 88 +- .../ecs/model/DescribeRenewalPriceResult.h | 96 +- .../model/DescribeReservedInstancesRequest.h | 88 +- .../model/DescribeReservedInstancesResult.h | 96 +- .../ecs/model/DescribeResourceByTagsRequest.h | 88 +- .../ecs/model/DescribeResourceByTagsResult.h | 96 +- .../DescribeResourcesModificationRequest.h | 88 +- .../DescribeResourcesModificationResult.h | 96 +- .../ecs/model/DescribeRouteTablesRequest.h | 88 +- .../ecs/model/DescribeRouteTablesResult.h | 96 +- .../model/DescribeRouterInterfacesRequest.h | 88 +- .../model/DescribeRouterInterfacesResult.h | 96 +- .../DescribeSecurityGroupAttributeRequest.h | 88 +- .../DescribeSecurityGroupAttributeResult.h | 96 +- .../DescribeSecurityGroupReferencesRequest.h | 88 +- .../DescribeSecurityGroupReferencesResult.h | 96 +- .../ecs/model/DescribeSecurityGroupsRequest.h | 88 +- .../ecs/model/DescribeSecurityGroupsResult.h | 96 +- .../ecs/model/DescribeSnapshotLinksRequest.h | 88 +- .../ecs/model/DescribeSnapshotLinksResult.h | 98 +- .../DescribeSnapshotMonitorDataRequest.h | 88 +- .../model/DescribeSnapshotMonitorDataResult.h | 96 +- .../model/DescribeSnapshotPackageRequest.h | 88 +- .../ecs/model/DescribeSnapshotPackageResult.h | 96 +- .../ecs/model/DescribeSnapshotsRequest.h | 88 +- .../ecs/model/DescribeSnapshotsResult.h | 96 +- .../ecs/model/DescribeSnapshotsUsageRequest.h | 88 +- .../ecs/model/DescribeSnapshotsUsageResult.h | 96 +- .../model/DescribeSpotPriceHistoryRequest.h | 88 +- .../model/DescribeSpotPriceHistoryResult.h | 96 +- .../model/DescribeStorageSetDetailsRequest.h | 88 +- .../model/DescribeStorageSetDetailsResult.h | 96 +- .../ecs/model/DescribeStorageSetsRequest.h | 88 +- .../ecs/model/DescribeStorageSetsResult.h | 96 +- .../ecs/model/DescribeTagsRequest.h | 88 +- .../ecs/model/DescribeTagsResult.h | 96 +- .../ecs/model/DescribeTaskAttributeRequest.h | 88 +- .../ecs/model/DescribeTaskAttributeResult.h | 96 +- .../ecs/model/DescribeTasksRequest.h | 88 +- .../ecs/model/DescribeTasksResult.h | 96 +- .../DescribeUserBusinessBehaviorRequest.h | 88 +- .../DescribeUserBusinessBehaviorResult.h | 96 +- .../ecs/model/DescribeUserDataRequest.h | 88 +- .../ecs/model/DescribeUserDataResult.h | 96 +- .../ecs/model/DescribeVRoutersRequest.h | 88 +- .../ecs/model/DescribeVRoutersResult.h | 96 +- .../ecs/model/DescribeVSwitchesRequest.h | 88 +- .../ecs/model/DescribeVSwitchesResult.h | 96 +- ...orderRoutersForPhysicalConnectionRequest.h | 88 +- ...BorderRoutersForPhysicalConnectionResult.h | 96 +- .../DescribeVirtualBorderRoutersRequest.h | 88 +- .../DescribeVirtualBorderRoutersResult.h | 96 +- .../ecs/model/DescribeVpcsRequest.h | 88 +- .../ecs/model/DescribeVpcsResult.h | 96 +- .../ecs/model/DescribeZonesRequest.h | 88 +- .../ecs/model/DescribeZonesResult.h | 96 +- .../ecs/model/DetachClassicLinkVpcRequest.h | 88 +- .../ecs/model/DetachClassicLinkVpcResult.h | 96 +- .../ecs/model/DetachDiskRequest.h | 88 +- .../alibabacloud/ecs/model/DetachDiskResult.h | 96 +- .../ecs/model/DetachInstanceRamRoleRequest.h | 88 +- .../ecs/model/DetachInstanceRamRoleResult.h | 96 +- .../ecs/model/DetachKeyPairRequest.h | 88 +- .../ecs/model/DetachKeyPairResult.h | 96 +- .../ecs/model/DetachNetworkInterfaceRequest.h | 88 +- .../ecs/model/DetachNetworkInterfaceResult.h | 96 +- .../ecs/model/EipFillParamsRequest.h | 88 +- .../ecs/model/EipFillParamsResult.h | 96 +- .../ecs/model/EipFillProductRequest.h | 88 +- .../ecs/model/EipFillProductResult.h | 96 +- .../ecs/model/EipNotifyPaidRequest.h | 88 +- .../ecs/model/EipNotifyPaidResult.h | 96 +- .../model/EnablePhysicalConnectionRequest.h | 88 +- .../model/EnablePhysicalConnectionResult.h | 96 +- .../ecs/model/ExportImageRequest.h | 88 +- .../ecs/model/ExportImageResult.h | 96 +- .../ecs/model/ExportSnapshotRequest.h | 88 +- .../ecs/model/ExportSnapshotResult.h | 96 +- .../model/GetInstanceConsoleOutputRequest.h | 88 +- .../model/GetInstanceConsoleOutputResult.h | 96 +- .../ecs/model/GetInstanceScreenshotRequest.h | 88 +- .../ecs/model/GetInstanceScreenshotResult.h | 96 +- .../ecs/model/ImportImageRequest.h | 88 +- .../ecs/model/ImportImageResult.h | 96 +- .../ecs/model/ImportKeyPairRequest.h | 88 +- .../ecs/model/ImportKeyPairResult.h | 96 +- .../ecs/model/ImportSnapshotRequest.h | 88 +- .../ecs/model/ImportSnapshotResult.h | 96 +- .../ecs/model/InstallCloudAssistantRequest.h | 88 +- .../ecs/model/InstallCloudAssistantResult.h | 96 +- .../ecs/model/InvokeCommandRequest.h | 94 +- .../ecs/model/InvokeCommandResult.h | 96 +- .../ecs/model/JoinResourceGroupRequest.h | 88 +- .../ecs/model/JoinResourceGroupResult.h | 96 +- .../ecs/model/JoinSecurityGroupRequest.h | 88 +- .../ecs/model/JoinSecurityGroupResult.h | 96 +- .../ecs/model/LeaveSecurityGroupRequest.h | 88 +- .../ecs/model/LeaveSecurityGroupResult.h | 96 +- .../ecs/model/ListTagResourcesRequest.h | 88 +- .../ecs/model/ListTagResourcesResult.h | 96 +- .../ModifyAutoProvisioningGroupRequest.h | 88 +- .../model/ModifyAutoProvisioningGroupResult.h | 96 +- .../model/ModifyAutoSnapshotPolicyExRequest.h | 88 +- .../model/ModifyAutoSnapshotPolicyExResult.h | 96 +- .../model/ModifyAutoSnapshotPolicyRequest.h | 88 +- .../model/ModifyAutoSnapshotPolicyResult.h | 96 +- .../model/ModifyBandwidthPackageSpecRequest.h | 88 +- .../model/ModifyBandwidthPackageSpecResult.h | 96 +- .../ecs/model/ModifyCommandRequest.h | 88 +- .../ecs/model/ModifyCommandResult.h | 96 +- .../ModifyDedicatedHostAttributeRequest.h | 88 +- .../ModifyDedicatedHostAttributeResult.h | 96 +- ...odifyDedicatedHostAutoReleaseTimeRequest.h | 88 +- ...ModifyDedicatedHostAutoReleaseTimeResult.h | 96 +- ...fyDedicatedHostAutoRenewAttributeRequest.h | 88 +- ...ifyDedicatedHostAutoRenewAttributeResult.h | 96 +- .../ModifyDeploymentSetAttributeRequest.h | 88 +- .../ModifyDeploymentSetAttributeResult.h | 96 +- .../ecs/model/ModifyDiskAttributeRequest.h | 88 +- .../ecs/model/ModifyDiskAttributeResult.h | 96 +- .../ecs/model/ModifyDiskChargeTypeRequest.h | 88 +- .../ecs/model/ModifyDiskChargeTypeResult.h | 96 +- .../ecs/model/ModifyDiskSpecRequest.h | 88 +- .../ecs/model/ModifyDiskSpecResult.h | 96 +- .../model/ModifyEipAddressAttributeRequest.h | 88 +- .../model/ModifyEipAddressAttributeResult.h | 96 +- .../ecs/model/ModifyFleetRequest.h | 88 +- .../ecs/model/ModifyFleetResult.h | 96 +- .../ecs/model/ModifyForwardEntryRequest.h | 88 +- .../ecs/model/ModifyForwardEntryResult.h | 96 +- .../ecs/model/ModifyHaVipAttributeRequest.h | 88 +- .../ecs/model/ModifyHaVipAttributeResult.h | 96 +- .../model/ModifyHpcClusterAttributeRequest.h | 88 +- .../model/ModifyHpcClusterAttributeResult.h | 96 +- .../ecs/model/ModifyImageAttributeRequest.h | 88 +- .../ecs/model/ModifyImageAttributeResult.h | 96 +- .../ModifyImageShareGroupPermissionRequest.h | 88 +- .../ModifyImageShareGroupPermissionResult.h | 96 +- .../model/ModifyImageSharePermissionRequest.h | 88 +- .../model/ModifyImageSharePermissionResult.h | 96 +- .../model/ModifyInstanceAttributeRequest.h | 88 +- .../ecs/model/ModifyInstanceAttributeResult.h | 96 +- .../ModifyInstanceAutoReleaseTimeRequest.h | 88 +- .../ModifyInstanceAutoReleaseTimeResult.h | 96 +- .../ModifyInstanceAutoRenewAttributeRequest.h | 88 +- .../ModifyInstanceAutoRenewAttributeResult.h | 96 +- .../model/ModifyInstanceChargeTypeRequest.h | 88 +- .../model/ModifyInstanceChargeTypeResult.h | 96 +- .../model/ModifyInstanceDeploymentRequest.h | 88 +- .../model/ModifyInstanceDeploymentResult.h | 96 +- .../model/ModifyInstanceNetworkSpecRequest.h | 88 +- .../model/ModifyInstanceNetworkSpecResult.h | 96 +- .../ecs/model/ModifyInstanceSpecRequest.h | 88 +- .../ecs/model/ModifyInstanceSpecResult.h | 96 +- .../model/ModifyInstanceVncPasswdRequest.h | 88 +- .../ecs/model/ModifyInstanceVncPasswdResult.h | 96 +- .../model/ModifyInstanceVpcAttributeRequest.h | 88 +- .../model/ModifyInstanceVpcAttributeResult.h | 96 +- ...odifyLaunchTemplateDefaultVersionRequest.h | 88 +- ...ModifyLaunchTemplateDefaultVersionResult.h | 96 +- .../ModifyNetworkInterfaceAttributeRequest.h | 88 +- .../ModifyNetworkInterfaceAttributeResult.h | 96 +- ...ModifyPhysicalConnectionAttributeRequest.h | 88 +- .../ModifyPhysicalConnectionAttributeResult.h | 96 +- .../model/ModifyPrepayInstanceSpecRequest.h | 88 +- .../model/ModifyPrepayInstanceSpecResult.h | 96 +- .../ModifyReservedInstanceAttributeRequest.h | 88 +- .../ModifyReservedInstanceAttributeResult.h | 96 +- .../model/ModifyReservedInstancesRequest.h | 88 +- .../ecs/model/ModifyReservedInstancesResult.h | 96 +- .../ModifyRouterInterfaceAttributeRequest.h | 88 +- .../ModifyRouterInterfaceAttributeResult.h | 96 +- .../model/ModifyRouterInterfaceSpecRequest.h | 88 +- .../model/ModifyRouterInterfaceSpecResult.h | 96 +- .../ModifySecurityGroupAttributeRequest.h | 88 +- .../ModifySecurityGroupAttributeResult.h | 96 +- .../ModifySecurityGroupEgressRuleRequest.h | 88 +- .../ModifySecurityGroupEgressRuleResult.h | 96 +- .../model/ModifySecurityGroupPolicyRequest.h | 88 +- .../model/ModifySecurityGroupPolicyResult.h | 96 +- .../model/ModifySecurityGroupRuleRequest.h | 88 +- .../ecs/model/ModifySecurityGroupRuleResult.h | 96 +- .../model/ModifySnapshotAttributeRequest.h | 88 +- .../ecs/model/ModifySnapshotAttributeResult.h | 96 +- .../model/ModifyStorageSetAttributeRequest.h | 88 +- .../model/ModifyStorageSetAttributeResult.h | 96 +- .../model/ModifyUserBusinessBehaviorRequest.h | 88 +- .../model/ModifyUserBusinessBehaviorResult.h | 96 +- .../ecs/model/ModifyVRouterAttributeRequest.h | 88 +- .../ecs/model/ModifyVRouterAttributeResult.h | 96 +- .../ecs/model/ModifyVSwitchAttributeRequest.h | 88 +- .../ecs/model/ModifyVSwitchAttributeResult.h | 96 +- ...odifyVirtualBorderRouterAttributeRequest.h | 88 +- ...ModifyVirtualBorderRouterAttributeResult.h | 96 +- .../ecs/model/ModifyVpcAttributeRequest.h | 88 +- .../ecs/model/ModifyVpcAttributeResult.h | 96 +- ...PurchaseReservedInstancesOfferingRequest.h | 88 +- .../PurchaseReservedInstancesOfferingResult.h | 96 +- .../ecs/model/ReActivateInstancesRequest.h | 88 +- .../ecs/model/ReActivateInstancesResult.h | 96 +- .../ecs/model/ReInitDiskRequest.h | 88 +- .../alibabacloud/ecs/model/ReInitDiskResult.h | 96 +- .../ecs/model/RebootInstanceRequest.h | 88 +- .../ecs/model/RebootInstanceResult.h | 96 +- .../model/RecoverVirtualBorderRouterRequest.h | 88 +- .../model/RecoverVirtualBorderRouterResult.h | 96 +- .../ecs/model/RedeployInstanceRequest.h | 88 +- .../ecs/model/RedeployInstanceResult.h | 96 +- .../ecs/model/ReleaseDedicatedHostRequest.h | 88 +- .../ecs/model/ReleaseDedicatedHostResult.h | 96 +- .../ecs/model/ReleaseEipAddressRequest.h | 88 +- .../ecs/model/ReleaseEipAddressResult.h | 96 +- .../ecs/model/ReleasePublicIpAddressRequest.h | 88 +- .../ecs/model/ReleasePublicIpAddressResult.h | 96 +- .../model/RemoveBandwidthPackageIpsRequest.h | 88 +- .../model/RemoveBandwidthPackageIpsResult.h | 96 +- .../ecs/model/RemoveTagsRequest.h | 88 +- .../alibabacloud/ecs/model/RemoveTagsResult.h | 96 +- .../ecs/model/RenewDedicatedHostsRequest.h | 88 +- .../ecs/model/RenewDedicatedHostsResult.h | 96 +- .../ecs/model/RenewInstanceRequest.h | 88 +- .../ecs/model/RenewInstanceResult.h | 96 +- .../ecs/model/ReplaceSystemDiskRequest.h | 88 +- .../ecs/model/ReplaceSystemDiskResult.h | 96 +- .../ecs/model/ReportInstancesStatusRequest.h | 88 +- .../ecs/model/ReportInstancesStatusResult.h | 96 +- .../alibabacloud/ecs/model/ResetDiskRequest.h | 88 +- .../alibabacloud/ecs/model/ResetDiskResult.h | 96 +- .../ecs/model/ResizeDiskRequest.h | 88 +- .../alibabacloud/ecs/model/ResizeDiskResult.h | 96 +- .../model/RevokeSecurityGroupEgressRequest.h | 88 +- .../model/RevokeSecurityGroupEgressResult.h | 96 +- .../ecs/model/RevokeSecurityGroupRequest.h | 88 +- .../ecs/model/RevokeSecurityGroupResult.h | 96 +- .../ecs/model/RunInstancesRequest.h | 88 +- .../ecs/model/RunInstancesResult.h | 96 +- .../ecs/model/StartInstanceRequest.h | 88 +- .../ecs/model/StartInstanceResult.h | 96 +- .../ecs/model/StopInstanceRequest.h | 88 +- .../ecs/model/StopInstanceResult.h | 96 +- .../ecs/model/StopInvocationRequest.h | 88 +- .../ecs/model/StopInvocationResult.h | 96 +- .../ecs/model/TagResourcesRequest.h | 88 +- .../ecs/model/TagResourcesResult.h | 96 +- .../TerminatePhysicalConnectionRequest.h | 88 +- .../model/TerminatePhysicalConnectionResult.h | 96 +- .../TerminateVirtualBorderRouterRequest.h | 88 +- .../TerminateVirtualBorderRouterResult.h | 96 +- .../ecs/model/UnassignIpv6AddressesRequest.h | 88 +- .../ecs/model/UnassignIpv6AddressesResult.h | 96 +- .../model/UnassignPrivateIpAddressesRequest.h | 88 +- .../model/UnassignPrivateIpAddressesResult.h | 96 +- .../ecs/model/UnassociateEipAddressRequest.h | 88 +- .../ecs/model/UnassociateEipAddressResult.h | 96 +- .../ecs/model/UnassociateHaVipRequest.h | 88 +- .../ecs/model/UnassociateHaVipResult.h | 96 +- .../ecs/model/UntagResourcesRequest.h | 88 +- .../ecs/model/UntagResourcesResult.h | 96 +- ecs/src/EcsClient.cc | 1764 ++- .../model/AcceptInquiredSystemEventRequest.cc | 54 +- .../model/AcceptInquiredSystemEventResult.cc | 93 +- .../model/ActivateRouterInterfaceRequest.cc | 54 +- .../model/ActivateRouterInterfaceResult.cc | 93 +- .../model/AddBandwidthPackageIpsRequest.cc | 54 +- ecs/src/model/AddBandwidthPackageIpsResult.cc | 93 +- ecs/src/model/AddTagsRequest.cc | 54 +- ecs/src/model/AddTagsResult.cc | 93 +- .../model/AllocateDedicatedHostsRequest.cc | 54 +- ecs/src/model/AllocateDedicatedHostsResult.cc | 93 +- ecs/src/model/AllocateEipAddressRequest.cc | 54 +- ecs/src/model/AllocateEipAddressResult.cc | 93 +- .../model/AllocatePublicIpAddressRequest.cc | 54 +- .../model/AllocatePublicIpAddressResult.cc | 93 +- .../model/ApplyAutoSnapshotPolicyRequest.cc | 54 +- .../model/ApplyAutoSnapshotPolicyResult.cc | 93 +- ecs/src/model/AssignIpv6AddressesRequest.cc | 54 +- ecs/src/model/AssignIpv6AddressesResult.cc | 93 +- .../model/AssignPrivateIpAddressesRequest.cc | 54 +- .../model/AssignPrivateIpAddressesResult.cc | 93 +- ecs/src/model/AssociateEipAddressRequest.cc | 54 +- ecs/src/model/AssociateEipAddressResult.cc | 93 +- ecs/src/model/AssociateHaVipRequest.cc | 54 +- ecs/src/model/AssociateHaVipResult.cc | 93 +- ecs/src/model/AttachClassicLinkVpcRequest.cc | 54 +- ecs/src/model/AttachClassicLinkVpcResult.cc | 93 +- ecs/src/model/AttachDiskRequest.cc | 54 +- ecs/src/model/AttachDiskResult.cc | 93 +- ecs/src/model/AttachInstanceRamRoleRequest.cc | 54 +- ecs/src/model/AttachInstanceRamRoleResult.cc | 93 +- ecs/src/model/AttachKeyPairRequest.cc | 54 +- ecs/src/model/AttachKeyPairResult.cc | 93 +- .../model/AttachNetworkInterfaceRequest.cc | 54 +- ecs/src/model/AttachNetworkInterfaceResult.cc | 93 +- .../AuthorizeSecurityGroupEgressRequest.cc | 54 +- .../AuthorizeSecurityGroupEgressResult.cc | 93 +- .../model/AuthorizeSecurityGroupRequest.cc | 54 +- ecs/src/model/AuthorizeSecurityGroupResult.cc | 93 +- .../model/CancelAutoSnapshotPolicyRequest.cc | 54 +- .../model/CancelAutoSnapshotPolicyResult.cc | 93 +- ecs/src/model/CancelCopyImageRequest.cc | 54 +- ecs/src/model/CancelCopyImageResult.cc | 93 +- .../model/CancelPhysicalConnectionRequest.cc | 54 +- .../model/CancelPhysicalConnectionResult.cc | 93 +- .../CancelSimulatedSystemEventsRequest.cc | 54 +- .../CancelSimulatedSystemEventsResult.cc | 93 +- ecs/src/model/CancelTaskRequest.cc | 54 +- ecs/src/model/CancelTaskResult.cc | 93 +- .../model/ConnectRouterInterfaceRequest.cc | 54 +- ecs/src/model/ConnectRouterInterfaceResult.cc | 93 +- .../model/ConvertNatPublicIpToEipRequest.cc | 54 +- .../model/ConvertNatPublicIpToEipResult.cc | 93 +- ecs/src/model/CopyImageRequest.cc | 54 +- ecs/src/model/CopyImageResult.cc | 93 +- .../CreateAutoProvisioningGroupRequest.cc | 54 +- .../CreateAutoProvisioningGroupResult.cc | 93 +- .../model/CreateAutoSnapshotPolicyRequest.cc | 54 +- .../model/CreateAutoSnapshotPolicyResult.cc | 93 +- ecs/src/model/CreateCommandRequest.cc | 54 +- ecs/src/model/CreateCommandResult.cc | 93 +- ecs/src/model/CreateDeploymentSetRequest.cc | 54 +- ecs/src/model/CreateDeploymentSetResult.cc | 93 +- ecs/src/model/CreateDiskRequest.cc | 54 +- ecs/src/model/CreateDiskResult.cc | 93 +- ecs/src/model/CreateFleetRequest.cc | 54 +- ecs/src/model/CreateFleetResult.cc | 93 +- ecs/src/model/CreateForwardEntryRequest.cc | 54 +- ecs/src/model/CreateForwardEntryResult.cc | 93 +- ecs/src/model/CreateHaVipRequest.cc | 54 +- ecs/src/model/CreateHaVipResult.cc | 93 +- ecs/src/model/CreateHpcClusterRequest.cc | 54 +- ecs/src/model/CreateHpcClusterResult.cc | 93 +- ecs/src/model/CreateImageRequest.cc | 54 +- ecs/src/model/CreateImageResult.cc | 93 +- ecs/src/model/CreateInstanceRequest.cc | 54 +- ecs/src/model/CreateInstanceResult.cc | 93 +- ecs/src/model/CreateKeyPairRequest.cc | 54 +- ecs/src/model/CreateKeyPairResult.cc | 93 +- ecs/src/model/CreateLaunchTemplateRequest.cc | 54 +- ecs/src/model/CreateLaunchTemplateResult.cc | 93 +- .../CreateLaunchTemplateVersionRequest.cc | 54 +- .../CreateLaunchTemplateVersionResult.cc | 93 +- ecs/src/model/CreateNatGatewayRequest.cc | 54 +- ecs/src/model/CreateNatGatewayResult.cc | 93 +- ...CreateNetworkInterfacePermissionRequest.cc | 54 +- .../CreateNetworkInterfacePermissionResult.cc | 93 +- .../model/CreateNetworkInterfaceRequest.cc | 54 +- ecs/src/model/CreateNetworkInterfaceResult.cc | 93 +- .../model/CreatePhysicalConnectionRequest.cc | 54 +- .../model/CreatePhysicalConnectionResult.cc | 93 +- ecs/src/model/CreateRouteEntryRequest.cc | 54 +- ecs/src/model/CreateRouteEntryResult.cc | 93 +- ecs/src/model/CreateRouterInterfaceRequest.cc | 54 +- ecs/src/model/CreateRouterInterfaceResult.cc | 93 +- ecs/src/model/CreateSecurityGroupRequest.cc | 54 +- ecs/src/model/CreateSecurityGroupResult.cc | 93 +- .../CreateSimulatedSystemEventsRequest.cc | 54 +- .../CreateSimulatedSystemEventsResult.cc | 93 +- ecs/src/model/CreateSnapshotRequest.cc | 54 +- ecs/src/model/CreateSnapshotResult.cc | 93 +- ecs/src/model/CreateStorageSetRequest.cc | 54 +- ecs/src/model/CreateStorageSetResult.cc | 93 +- ecs/src/model/CreateVSwitchRequest.cc | 54 +- ecs/src/model/CreateVSwitchResult.cc | 93 +- .../model/CreateVirtualBorderRouterRequest.cc | 54 +- .../model/CreateVirtualBorderRouterResult.cc | 93 +- ecs/src/model/CreateVpcRequest.cc | 54 +- ecs/src/model/CreateVpcResult.cc | 93 +- .../model/DeactivateRouterInterfaceRequest.cc | 54 +- .../model/DeactivateRouterInterfaceResult.cc | 93 +- .../DeleteAutoProvisioningGroupRequest.cc | 54 +- .../DeleteAutoProvisioningGroupResult.cc | 93 +- .../model/DeleteAutoSnapshotPolicyRequest.cc | 54 +- .../model/DeleteAutoSnapshotPolicyResult.cc | 93 +- .../model/DeleteBandwidthPackageRequest.cc | 54 +- ecs/src/model/DeleteBandwidthPackageResult.cc | 93 +- ecs/src/model/DeleteCommandRequest.cc | 54 +- ecs/src/model/DeleteCommandResult.cc | 93 +- ecs/src/model/DeleteDeploymentSetRequest.cc | 54 +- ecs/src/model/DeleteDeploymentSetResult.cc | 93 +- ecs/src/model/DeleteDiskRequest.cc | 54 +- ecs/src/model/DeleteDiskResult.cc | 93 +- ecs/src/model/DeleteFleetRequest.cc | 54 +- ecs/src/model/DeleteFleetResult.cc | 93 +- ecs/src/model/DeleteForwardEntryRequest.cc | 54 +- ecs/src/model/DeleteForwardEntryResult.cc | 93 +- ecs/src/model/DeleteHaVipRequest.cc | 54 +- ecs/src/model/DeleteHaVipResult.cc | 93 +- ecs/src/model/DeleteHpcClusterRequest.cc | 54 +- ecs/src/model/DeleteHpcClusterResult.cc | 93 +- ecs/src/model/DeleteImageRequest.cc | 54 +- ecs/src/model/DeleteImageResult.cc | 93 +- ecs/src/model/DeleteInstanceRequest.cc | 54 +- ecs/src/model/DeleteInstanceResult.cc | 93 +- ecs/src/model/DeleteInstancesRequest.cc | 54 +- ecs/src/model/DeleteInstancesResult.cc | 93 +- ecs/src/model/DeleteKeyPairsRequest.cc | 54 +- ecs/src/model/DeleteKeyPairsResult.cc | 93 +- ecs/src/model/DeleteLaunchTemplateRequest.cc | 54 +- ecs/src/model/DeleteLaunchTemplateResult.cc | 93 +- .../DeleteLaunchTemplateVersionRequest.cc | 54 +- .../DeleteLaunchTemplateVersionResult.cc | 93 +- ecs/src/model/DeleteNatGatewayRequest.cc | 54 +- ecs/src/model/DeleteNatGatewayResult.cc | 93 +- ...DeleteNetworkInterfacePermissionRequest.cc | 54 +- .../DeleteNetworkInterfacePermissionResult.cc | 93 +- .../model/DeleteNetworkInterfaceRequest.cc | 54 +- ecs/src/model/DeleteNetworkInterfaceResult.cc | 93 +- .../model/DeletePhysicalConnectionRequest.cc | 54 +- .../model/DeletePhysicalConnectionResult.cc | 93 +- ecs/src/model/DeleteRouteEntryRequest.cc | 54 +- ecs/src/model/DeleteRouteEntryResult.cc | 93 +- ecs/src/model/DeleteRouterInterfaceRequest.cc | 54 +- ecs/src/model/DeleteRouterInterfaceResult.cc | 93 +- ecs/src/model/DeleteSecurityGroupRequest.cc | 54 +- ecs/src/model/DeleteSecurityGroupResult.cc | 93 +- ecs/src/model/DeleteSnapshotRequest.cc | 54 +- ecs/src/model/DeleteSnapshotResult.cc | 93 +- ecs/src/model/DeleteStorageSetRequest.cc | 54 +- ecs/src/model/DeleteStorageSetResult.cc | 93 +- ecs/src/model/DeleteVSwitchRequest.cc | 54 +- ecs/src/model/DeleteVSwitchResult.cc | 93 +- .../model/DeleteVirtualBorderRouterRequest.cc | 54 +- .../model/DeleteVirtualBorderRouterResult.cc | 93 +- ecs/src/model/DeleteVpcRequest.cc | 54 +- ecs/src/model/DeleteVpcResult.cc | 93 +- ecs/src/model/DescribeAccessPointsRequest.cc | 54 +- ecs/src/model/DescribeAccessPointsResult.cc | 93 +- .../model/DescribeAccountAttributesRequest.cc | 54 +- .../model/DescribeAccountAttributesResult.cc | 93 +- ...ribeAutoProvisioningGroupHistoryRequest.cc | 54 +- ...cribeAutoProvisioningGroupHistoryResult.cc | 93 +- ...beAutoProvisioningGroupInstancesRequest.cc | 54 +- ...ibeAutoProvisioningGroupInstancesResult.cc | 93 +- .../DescribeAutoProvisioningGroupsRequest.cc | 54 +- .../DescribeAutoProvisioningGroupsResult.cc | 93 +- .../DescribeAutoSnapshotPolicyExRequest.cc | 54 +- .../DescribeAutoSnapshotPolicyExResult.cc | 93 +- .../model/DescribeAvailableResourceRequest.cc | 54 +- .../model/DescribeAvailableResourceResult.cc | 93 +- .../DescribeBandwidthLimitationRequest.cc | 54 +- .../DescribeBandwidthLimitationResult.cc | 93 +- .../model/DescribeBandwidthPackagesRequest.cc | 54 +- .../model/DescribeBandwidthPackagesResult.cc | 93 +- .../DescribeClassicLinkInstancesRequest.cc | 54 +- .../DescribeClassicLinkInstancesResult.cc | 93 +- .../DescribeCloudAssistantStatusRequest.cc | 54 +- .../DescribeCloudAssistantStatusResult.cc | 93 +- ecs/src/model/DescribeClustersRequest.cc | 54 +- ecs/src/model/DescribeClustersResult.cc | 93 +- ecs/src/model/DescribeCommandsRequest.cc | 54 +- ecs/src/model/DescribeCommandsResult.cc | 93 +- .../DescribeDedicatedHostAutoRenewRequest.cc | 54 +- .../DescribeDedicatedHostAutoRenewResult.cc | 93 +- .../DescribeDedicatedHostTypesRequest.cc | 54 +- .../model/DescribeDedicatedHostTypesResult.cc | 93 +- .../model/DescribeDedicatedHostsRequest.cc | 54 +- ecs/src/model/DescribeDedicatedHostsResult.cc | 93 +- ecs/src/model/DescribeDemandsRequest.cc | 54 +- ecs/src/model/DescribeDemandsResult.cc | 93 +- .../model/DescribeDeploymentSetsRequest.cc | 54 +- ecs/src/model/DescribeDeploymentSetsResult.cc | 93 +- .../model/DescribeDiskMonitorDataRequest.cc | 54 +- .../model/DescribeDiskMonitorDataResult.cc | 93 +- .../model/DescribeDisksFullStatusRequest.cc | 54 +- .../model/DescribeDisksFullStatusResult.cc | 93 +- ecs/src/model/DescribeDisksRequest.cc | 54 +- ecs/src/model/DescribeDisksResult.cc | 93 +- ecs/src/model/DescribeEipAddressesRequest.cc | 54 +- ecs/src/model/DescribeEipAddressesResult.cc | 93 +- .../model/DescribeEipMonitorDataRequest.cc | 54 +- ecs/src/model/DescribeEipMonitorDataResult.cc | 93 +- .../model/DescribeEniMonitorDataRequest.cc | 54 +- ecs/src/model/DescribeEniMonitorDataResult.cc | 93 +- ecs/src/model/DescribeFleetHistoryRequest.cc | 54 +- ecs/src/model/DescribeFleetHistoryResult.cc | 93 +- .../model/DescribeFleetInstancesRequest.cc | 54 +- ecs/src/model/DescribeFleetInstancesResult.cc | 93 +- ecs/src/model/DescribeFleetsRequest.cc | 54 +- ecs/src/model/DescribeFleetsResult.cc | 93 +- .../DescribeForwardTableEntriesRequest.cc | 54 +- .../DescribeForwardTableEntriesResult.cc | 93 +- ecs/src/model/DescribeHaVipsRequest.cc | 54 +- ecs/src/model/DescribeHaVipsResult.cc | 93 +- ecs/src/model/DescribeHpcClustersRequest.cc | 54 +- ecs/src/model/DescribeHpcClustersResult.cc | 93 +- .../DescribeImageSharePermissionRequest.cc | 54 +- .../DescribeImageSharePermissionResult.cc | 93 +- ...escribeImageSupportInstanceTypesRequest.cc | 54 +- ...DescribeImageSupportInstanceTypesResult.cc | 93 +- ecs/src/model/DescribeImagesRequest.cc | 54 +- ecs/src/model/DescribeImagesResult.cc | 93 +- .../model/DescribeInstanceAttributeRequest.cc | 54 +- .../model/DescribeInstanceAttributeResult.cc | 93 +- ...scribeInstanceAutoRenewAttributeRequest.cc | 54 +- ...escribeInstanceAutoRenewAttributeResult.cc | 93 +- .../DescribeInstanceHistoryEventsRequest.cc | 54 +- .../DescribeInstanceHistoryEventsResult.cc | 93 +- .../DescribeInstanceMonitorDataRequest.cc | 54 +- .../DescribeInstanceMonitorDataResult.cc | 93 +- ...escribeInstancePhysicalAttributeRequest.cc | 54 +- ...DescribeInstancePhysicalAttributeResult.cc | 93 +- .../model/DescribeInstanceRamRoleRequest.cc | 54 +- .../model/DescribeInstanceRamRoleResult.cc | 93 +- .../model/DescribeInstanceStatusRequest.cc | 54 +- ecs/src/model/DescribeInstanceStatusResult.cc | 93 +- .../model/DescribeInstanceTopologyRequest.cc | 54 +- .../model/DescribeInstanceTopologyResult.cc | 93 +- .../DescribeInstanceTypeFamiliesRequest.cc | 54 +- .../DescribeInstanceTypeFamiliesResult.cc | 93 +- ecs/src/model/DescribeInstanceTypesRequest.cc | 54 +- ecs/src/model/DescribeInstanceTypesResult.cc | 93 +- .../model/DescribeInstanceVncPasswdRequest.cc | 54 +- .../model/DescribeInstanceVncPasswdResult.cc | 93 +- .../model/DescribeInstanceVncUrlRequest.cc | 54 +- ecs/src/model/DescribeInstanceVncUrlResult.cc | 93 +- .../DescribeInstancesFullStatusRequest.cc | 54 +- .../DescribeInstancesFullStatusResult.cc | 93 +- ecs/src/model/DescribeInstancesRequest.cc | 54 +- ecs/src/model/DescribeInstancesResult.cc | 93 +- .../model/DescribeInvocationResultsRequest.cc | 54 +- .../model/DescribeInvocationResultsResult.cc | 93 +- ecs/src/model/DescribeInvocationsRequest.cc | 54 +- ecs/src/model/DescribeInvocationsResult.cc | 93 +- ecs/src/model/DescribeKeyPairsRequest.cc | 54 +- ecs/src/model/DescribeKeyPairsResult.cc | 93 +- .../DescribeLaunchTemplateVersionsRequest.cc | 54 +- .../DescribeLaunchTemplateVersionsResult.cc | 93 +- .../model/DescribeLaunchTemplatesRequest.cc | 54 +- .../model/DescribeLaunchTemplatesResult.cc | 93 +- ecs/src/model/DescribeLimitationRequest.cc | 54 +- ecs/src/model/DescribeLimitationResult.cc | 93 +- ecs/src/model/DescribeNatGatewaysRequest.cc | 54 +- ecs/src/model/DescribeNatGatewaysResult.cc | 93 +- ...cribeNetworkInterfacePermissionsRequest.cc | 54 +- ...scribeNetworkInterfacePermissionsResult.cc | 93 +- .../model/DescribeNetworkInterfacesRequest.cc | 54 +- .../model/DescribeNetworkInterfacesResult.cc | 93 +- ...DescribeNewProjectEipMonitorDataRequest.cc | 54 +- .../DescribeNewProjectEipMonitorDataResult.cc | 93 +- .../DescribePhysicalConnectionsRequest.cc | 54 +- .../DescribePhysicalConnectionsResult.cc | 93 +- ecs/src/model/DescribePriceRequest.cc | 54 +- ecs/src/model/DescribePriceResult.cc | 93 +- .../DescribeRecommendInstanceTypeRequest.cc | 54 +- .../DescribeRecommendInstanceTypeResult.cc | 93 +- ecs/src/model/DescribeRegionsRequest.cc | 54 +- ecs/src/model/DescribeRegionsResult.cc | 93 +- ecs/src/model/DescribeRenewalPriceRequest.cc | 54 +- ecs/src/model/DescribeRenewalPriceResult.cc | 93 +- .../model/DescribeReservedInstancesRequest.cc | 54 +- .../model/DescribeReservedInstancesResult.cc | 93 +- .../model/DescribeResourceByTagsRequest.cc | 54 +- ecs/src/model/DescribeResourceByTagsResult.cc | 93 +- .../DescribeResourcesModificationRequest.cc | 54 +- .../DescribeResourcesModificationResult.cc | 93 +- ecs/src/model/DescribeRouteTablesRequest.cc | 54 +- ecs/src/model/DescribeRouteTablesResult.cc | 93 +- .../model/DescribeRouterInterfacesRequest.cc | 54 +- .../model/DescribeRouterInterfacesResult.cc | 93 +- .../DescribeSecurityGroupAttributeRequest.cc | 54 +- .../DescribeSecurityGroupAttributeResult.cc | 93 +- .../DescribeSecurityGroupReferencesRequest.cc | 54 +- .../DescribeSecurityGroupReferencesResult.cc | 93 +- .../model/DescribeSecurityGroupsRequest.cc | 54 +- ecs/src/model/DescribeSecurityGroupsResult.cc | 93 +- ecs/src/model/DescribeSnapshotLinksRequest.cc | 54 +- ecs/src/model/DescribeSnapshotLinksResult.cc | 95 +- .../DescribeSnapshotMonitorDataRequest.cc | 54 +- .../DescribeSnapshotMonitorDataResult.cc | 93 +- .../model/DescribeSnapshotPackageRequest.cc | 54 +- .../model/DescribeSnapshotPackageResult.cc | 93 +- ecs/src/model/DescribeSnapshotsRequest.cc | 54 +- ecs/src/model/DescribeSnapshotsResult.cc | 93 +- .../model/DescribeSnapshotsUsageRequest.cc | 54 +- ecs/src/model/DescribeSnapshotsUsageResult.cc | 93 +- .../model/DescribeSpotPriceHistoryRequest.cc | 54 +- .../model/DescribeSpotPriceHistoryResult.cc | 93 +- .../model/DescribeStorageSetDetailsRequest.cc | 54 +- .../model/DescribeStorageSetDetailsResult.cc | 93 +- ecs/src/model/DescribeStorageSetsRequest.cc | 54 +- ecs/src/model/DescribeStorageSetsResult.cc | 93 +- ecs/src/model/DescribeTagsRequest.cc | 54 +- ecs/src/model/DescribeTagsResult.cc | 93 +- ecs/src/model/DescribeTaskAttributeRequest.cc | 54 +- ecs/src/model/DescribeTaskAttributeResult.cc | 93 +- ecs/src/model/DescribeTasksRequest.cc | 54 +- ecs/src/model/DescribeTasksResult.cc | 93 +- .../DescribeUserBusinessBehaviorRequest.cc | 54 +- .../DescribeUserBusinessBehaviorResult.cc | 93 +- ecs/src/model/DescribeUserDataRequest.cc | 54 +- ecs/src/model/DescribeUserDataResult.cc | 93 +- ecs/src/model/DescribeVRoutersRequest.cc | 54 +- ecs/src/model/DescribeVRoutersResult.cc | 93 +- ecs/src/model/DescribeVSwitchesRequest.cc | 54 +- ecs/src/model/DescribeVSwitchesResult.cc | 93 +- ...rderRoutersForPhysicalConnectionRequest.cc | 54 +- ...orderRoutersForPhysicalConnectionResult.cc | 93 +- .../DescribeVirtualBorderRoutersRequest.cc | 54 +- .../DescribeVirtualBorderRoutersResult.cc | 93 +- ecs/src/model/DescribeVpcsRequest.cc | 54 +- ecs/src/model/DescribeVpcsResult.cc | 93 +- ecs/src/model/DescribeZonesRequest.cc | 54 +- ecs/src/model/DescribeZonesResult.cc | 93 +- ecs/src/model/DetachClassicLinkVpcRequest.cc | 54 +- ecs/src/model/DetachClassicLinkVpcResult.cc | 93 +- ecs/src/model/DetachDiskRequest.cc | 54 +- ecs/src/model/DetachDiskResult.cc | 93 +- ecs/src/model/DetachInstanceRamRoleRequest.cc | 54 +- ecs/src/model/DetachInstanceRamRoleResult.cc | 93 +- ecs/src/model/DetachKeyPairRequest.cc | 54 +- ecs/src/model/DetachKeyPairResult.cc | 93 +- .../model/DetachNetworkInterfaceRequest.cc | 54 +- ecs/src/model/DetachNetworkInterfaceResult.cc | 93 +- ecs/src/model/EipFillParamsRequest.cc | 54 +- ecs/src/model/EipFillParamsResult.cc | 93 +- ecs/src/model/EipFillProductRequest.cc | 54 +- ecs/src/model/EipFillProductResult.cc | 93 +- ecs/src/model/EipNotifyPaidRequest.cc | 54 +- ecs/src/model/EipNotifyPaidResult.cc | 93 +- .../model/EnablePhysicalConnectionRequest.cc | 54 +- .../model/EnablePhysicalConnectionResult.cc | 93 +- ecs/src/model/ExportImageRequest.cc | 54 +- ecs/src/model/ExportImageResult.cc | 93 +- ecs/src/model/ExportSnapshotRequest.cc | 54 +- ecs/src/model/ExportSnapshotResult.cc | 93 +- .../model/GetInstanceConsoleOutputRequest.cc | 54 +- .../model/GetInstanceConsoleOutputResult.cc | 93 +- ecs/src/model/GetInstanceScreenshotRequest.cc | 54 +- ecs/src/model/GetInstanceScreenshotResult.cc | 93 +- ecs/src/model/ImportImageRequest.cc | 54 +- ecs/src/model/ImportImageResult.cc | 93 +- ecs/src/model/ImportKeyPairRequest.cc | 54 +- ecs/src/model/ImportKeyPairResult.cc | 93 +- ecs/src/model/ImportSnapshotRequest.cc | 54 +- ecs/src/model/ImportSnapshotResult.cc | 93 +- ecs/src/model/InstallCloudAssistantRequest.cc | 54 +- ecs/src/model/InstallCloudAssistantResult.cc | 93 +- ecs/src/model/InvokeCommandRequest.cc | 60 +- ecs/src/model/InvokeCommandResult.cc | 93 +- ecs/src/model/JoinResourceGroupRequest.cc | 54 +- ecs/src/model/JoinResourceGroupResult.cc | 93 +- ecs/src/model/JoinSecurityGroupRequest.cc | 54 +- ecs/src/model/JoinSecurityGroupResult.cc | 93 +- ecs/src/model/LeaveSecurityGroupRequest.cc | 54 +- ecs/src/model/LeaveSecurityGroupResult.cc | 93 +- ecs/src/model/ListTagResourcesRequest.cc | 54 +- ecs/src/model/ListTagResourcesResult.cc | 93 +- .../ModifyAutoProvisioningGroupRequest.cc | 54 +- .../ModifyAutoProvisioningGroupResult.cc | 93 +- .../ModifyAutoSnapshotPolicyExRequest.cc | 54 +- .../model/ModifyAutoSnapshotPolicyExResult.cc | 93 +- .../model/ModifyAutoSnapshotPolicyRequest.cc | 54 +- .../model/ModifyAutoSnapshotPolicyResult.cc | 93 +- .../ModifyBandwidthPackageSpecRequest.cc | 54 +- .../model/ModifyBandwidthPackageSpecResult.cc | 93 +- ecs/src/model/ModifyCommandRequest.cc | 54 +- ecs/src/model/ModifyCommandResult.cc | 93 +- .../ModifyDedicatedHostAttributeRequest.cc | 54 +- .../ModifyDedicatedHostAttributeResult.cc | 93 +- ...difyDedicatedHostAutoReleaseTimeRequest.cc | 54 +- ...odifyDedicatedHostAutoReleaseTimeResult.cc | 93 +- ...yDedicatedHostAutoRenewAttributeRequest.cc | 54 +- ...fyDedicatedHostAutoRenewAttributeResult.cc | 93 +- .../ModifyDeploymentSetAttributeRequest.cc | 54 +- .../ModifyDeploymentSetAttributeResult.cc | 93 +- ecs/src/model/ModifyDiskAttributeRequest.cc | 54 +- ecs/src/model/ModifyDiskAttributeResult.cc | 93 +- ecs/src/model/ModifyDiskChargeTypeRequest.cc | 54 +- ecs/src/model/ModifyDiskChargeTypeResult.cc | 93 +- ecs/src/model/ModifyDiskSpecRequest.cc | 54 +- ecs/src/model/ModifyDiskSpecResult.cc | 93 +- .../model/ModifyEipAddressAttributeRequest.cc | 54 +- .../model/ModifyEipAddressAttributeResult.cc | 93 +- ecs/src/model/ModifyFleetRequest.cc | 54 +- ecs/src/model/ModifyFleetResult.cc | 93 +- ecs/src/model/ModifyForwardEntryRequest.cc | 54 +- ecs/src/model/ModifyForwardEntryResult.cc | 93 +- ecs/src/model/ModifyHaVipAttributeRequest.cc | 54 +- ecs/src/model/ModifyHaVipAttributeResult.cc | 93 +- .../model/ModifyHpcClusterAttributeRequest.cc | 54 +- .../model/ModifyHpcClusterAttributeResult.cc | 93 +- ecs/src/model/ModifyImageAttributeRequest.cc | 54 +- ecs/src/model/ModifyImageAttributeResult.cc | 93 +- .../ModifyImageShareGroupPermissionRequest.cc | 54 +- .../ModifyImageShareGroupPermissionResult.cc | 93 +- .../ModifyImageSharePermissionRequest.cc | 54 +- .../model/ModifyImageSharePermissionResult.cc | 93 +- .../model/ModifyInstanceAttributeRequest.cc | 54 +- .../model/ModifyInstanceAttributeResult.cc | 93 +- .../ModifyInstanceAutoReleaseTimeRequest.cc | 54 +- .../ModifyInstanceAutoReleaseTimeResult.cc | 93 +- ...ModifyInstanceAutoRenewAttributeRequest.cc | 54 +- .../ModifyInstanceAutoRenewAttributeResult.cc | 93 +- .../model/ModifyInstanceChargeTypeRequest.cc | 54 +- .../model/ModifyInstanceChargeTypeResult.cc | 93 +- .../model/ModifyInstanceDeploymentRequest.cc | 54 +- .../model/ModifyInstanceDeploymentResult.cc | 93 +- .../model/ModifyInstanceNetworkSpecRequest.cc | 54 +- .../model/ModifyInstanceNetworkSpecResult.cc | 93 +- ecs/src/model/ModifyInstanceSpecRequest.cc | 54 +- ecs/src/model/ModifyInstanceSpecResult.cc | 93 +- .../model/ModifyInstanceVncPasswdRequest.cc | 54 +- .../model/ModifyInstanceVncPasswdResult.cc | 93 +- .../ModifyInstanceVpcAttributeRequest.cc | 54 +- .../model/ModifyInstanceVpcAttributeResult.cc | 93 +- ...difyLaunchTemplateDefaultVersionRequest.cc | 54 +- ...odifyLaunchTemplateDefaultVersionResult.cc | 93 +- .../ModifyNetworkInterfaceAttributeRequest.cc | 54 +- .../ModifyNetworkInterfaceAttributeResult.cc | 93 +- ...odifyPhysicalConnectionAttributeRequest.cc | 54 +- ...ModifyPhysicalConnectionAttributeResult.cc | 93 +- .../model/ModifyPrepayInstanceSpecRequest.cc | 54 +- .../model/ModifyPrepayInstanceSpecResult.cc | 93 +- .../ModifyReservedInstanceAttributeRequest.cc | 54 +- .../ModifyReservedInstanceAttributeResult.cc | 93 +- .../model/ModifyReservedInstancesRequest.cc | 54 +- .../model/ModifyReservedInstancesResult.cc | 93 +- .../ModifyRouterInterfaceAttributeRequest.cc | 54 +- .../ModifyRouterInterfaceAttributeResult.cc | 93 +- .../model/ModifyRouterInterfaceSpecRequest.cc | 54 +- .../model/ModifyRouterInterfaceSpecResult.cc | 93 +- .../ModifySecurityGroupAttributeRequest.cc | 54 +- .../ModifySecurityGroupAttributeResult.cc | 93 +- .../ModifySecurityGroupEgressRuleRequest.cc | 54 +- .../ModifySecurityGroupEgressRuleResult.cc | 93 +- .../model/ModifySecurityGroupPolicyRequest.cc | 54 +- .../model/ModifySecurityGroupPolicyResult.cc | 93 +- .../model/ModifySecurityGroupRuleRequest.cc | 54 +- .../model/ModifySecurityGroupRuleResult.cc | 93 +- .../model/ModifySnapshotAttributeRequest.cc | 54 +- .../model/ModifySnapshotAttributeResult.cc | 93 +- .../model/ModifyStorageSetAttributeRequest.cc | 54 +- .../model/ModifyStorageSetAttributeResult.cc | 93 +- .../ModifyUserBusinessBehaviorRequest.cc | 54 +- .../model/ModifyUserBusinessBehaviorResult.cc | 93 +- .../model/ModifyVRouterAttributeRequest.cc | 54 +- ecs/src/model/ModifyVRouterAttributeResult.cc | 93 +- .../model/ModifyVSwitchAttributeRequest.cc | 54 +- ecs/src/model/ModifyVSwitchAttributeResult.cc | 93 +- ...difyVirtualBorderRouterAttributeRequest.cc | 54 +- ...odifyVirtualBorderRouterAttributeResult.cc | 93 +- ecs/src/model/ModifyVpcAttributeRequest.cc | 54 +- ecs/src/model/ModifyVpcAttributeResult.cc | 93 +- ...urchaseReservedInstancesOfferingRequest.cc | 54 +- ...PurchaseReservedInstancesOfferingResult.cc | 93 +- ecs/src/model/ReActivateInstancesRequest.cc | 54 +- ecs/src/model/ReActivateInstancesResult.cc | 93 +- ecs/src/model/ReInitDiskRequest.cc | 54 +- ecs/src/model/ReInitDiskResult.cc | 93 +- ecs/src/model/RebootInstanceRequest.cc | 54 +- ecs/src/model/RebootInstanceResult.cc | 93 +- .../RecoverVirtualBorderRouterRequest.cc | 54 +- .../model/RecoverVirtualBorderRouterResult.cc | 93 +- ecs/src/model/RedeployInstanceRequest.cc | 54 +- ecs/src/model/RedeployInstanceResult.cc | 93 +- ecs/src/model/ReleaseDedicatedHostRequest.cc | 54 +- ecs/src/model/ReleaseDedicatedHostResult.cc | 93 +- ecs/src/model/ReleaseEipAddressRequest.cc | 54 +- ecs/src/model/ReleaseEipAddressResult.cc | 93 +- .../model/ReleasePublicIpAddressRequest.cc | 54 +- ecs/src/model/ReleasePublicIpAddressResult.cc | 93 +- .../model/RemoveBandwidthPackageIpsRequest.cc | 54 +- .../model/RemoveBandwidthPackageIpsResult.cc | 93 +- ecs/src/model/RemoveTagsRequest.cc | 54 +- ecs/src/model/RemoveTagsResult.cc | 93 +- ecs/src/model/RenewDedicatedHostsRequest.cc | 54 +- ecs/src/model/RenewDedicatedHostsResult.cc | 93 +- ecs/src/model/RenewInstanceRequest.cc | 54 +- ecs/src/model/RenewInstanceResult.cc | 93 +- ecs/src/model/ReplaceSystemDiskRequest.cc | 54 +- ecs/src/model/ReplaceSystemDiskResult.cc | 93 +- ecs/src/model/ReportInstancesStatusRequest.cc | 54 +- ecs/src/model/ReportInstancesStatusResult.cc | 93 +- ecs/src/model/ResetDiskRequest.cc | 54 +- ecs/src/model/ResetDiskResult.cc | 93 +- ecs/src/model/ResizeDiskRequest.cc | 54 +- ecs/src/model/ResizeDiskResult.cc | 93 +- .../model/RevokeSecurityGroupEgressRequest.cc | 54 +- .../model/RevokeSecurityGroupEgressResult.cc | 93 +- ecs/src/model/RevokeSecurityGroupRequest.cc | 54 +- ecs/src/model/RevokeSecurityGroupResult.cc | 93 +- ecs/src/model/RunInstancesRequest.cc | 54 +- ecs/src/model/RunInstancesResult.cc | 93 +- ecs/src/model/StartInstanceRequest.cc | 54 +- ecs/src/model/StartInstanceResult.cc | 93 +- ecs/src/model/StopInstanceRequest.cc | 54 +- ecs/src/model/StopInstanceResult.cc | 93 +- ecs/src/model/StopInvocationRequest.cc | 54 +- ecs/src/model/StopInvocationResult.cc | 93 +- ecs/src/model/TagResourcesRequest.cc | 54 +- ecs/src/model/TagResourcesResult.cc | 93 +- .../TerminatePhysicalConnectionRequest.cc | 54 +- .../TerminatePhysicalConnectionResult.cc | 93 +- .../TerminateVirtualBorderRouterRequest.cc | 54 +- .../TerminateVirtualBorderRouterResult.cc | 93 +- ecs/src/model/UnassignIpv6AddressesRequest.cc | 54 +- ecs/src/model/UnassignIpv6AddressesResult.cc | 93 +- .../UnassignPrivateIpAddressesRequest.cc | 54 +- .../model/UnassignPrivateIpAddressesResult.cc | 93 +- ecs/src/model/UnassociateEipAddressRequest.cc | 54 +- ecs/src/model/UnassociateEipAddressResult.cc | 93 +- ecs/src/model/UnassociateHaVipRequest.cc | 54 +- ecs/src/model/UnassociateHaVipResult.cc | 93 +- ecs/src/model/UntagResourcesRequest.cc | 54 +- ecs/src/model/UntagResourcesResult.cc | 93 +- ehpc/CMakeLists.txt | 424 +- ehpc/include/alibabacloud/ehpc/EHPCClient.h | 760 +- .../alibabacloud/ehpc/model/AddNodesRequest.h | 3 + .../ehpc/model/CreateClusterRequest.h | 3 + .../ehpc/model/CreateGWSClusterRequest.h | 57 + .../ehpc/model/CreateGWSClusterResult.h | 51 + .../ehpc/model/CreateGWSImageRequest.h | 54 + .../ehpc/model/CreateGWSImageResult.h | 51 + .../ehpc/model/CreateGWSInstanceRequest.h | 96 + .../ehpc/model/CreateGWSInstanceResult.h | 51 + .../ehpc/model/CreateHybridClusterRequest.h | 17 +- .../ehpc/model/DeleteGWSClusterRequest.h | 51 + .../ehpc/model/DeleteGWSClusterResult.h | 49 + .../ehpc/model/DeleteGWSInstanceRequest.h | 51 + .../ehpc/model/DeleteGWSInstanceResult.h | 49 + .../ehpc/model/DescribeGWSClustersRequest.h | 57 + .../ehpc/model/DescribeGWSClustersResult.h | 67 + .../ehpc/model/DescribeGWSImagesRequest.h | 54 + .../ehpc/model/DescribeGWSImagesResult.h | 67 + .../ehpc/model/DescribeGWSInstancesRequest.h | 60 + .../ehpc/model/DescribeGWSInstancesResult.h | 76 + .../model/DescribeNFSClientStatusRequest.h | 51 + .../model/DescribeNFSClientStatusResult.h | 59 + .../ehpc/model/GetAutoScaleConfigResult.h | 1 + .../ehpc/model/GetGWSConnectTicketRequest.h | 54 + .../ehpc/model/GetGWSConnectTicketResult.h | 51 + .../ehpc/model/InstallNFSClientRequest.h | 51 + .../ehpc/model/InstallNFSClientResult.h | 51 + .../ehpc/model/ListAvailableEcsTypesRequest.h | 3 + .../ehpc/model/ListAvailableEcsTypesResult.h | 1 + .../ehpc/model/ListClustersMetaResult.h | 1 + .../alibabacloud/ehpc/model/ListNodesResult.h | 1 + .../ehpc/model/ListQueuesResult.h | 2 + .../alibabacloud/ehpc/model/MountNFSRequest.h | 57 + .../alibabacloud/ehpc/model/MountNFSResult.h | 51 + .../model/QueryServicePackAndPriceRequest.h | 48 + .../model/QueryServicePackAndPriceResult.h | 72 + .../ehpc/model/SetGWSInstanceUserRequest.h | 57 + .../ehpc/model/SetGWSInstanceUserResult.h | 49 + .../ehpc/model/StartGWSInstanceRequest.h | 51 + .../ehpc/model/StartGWSInstanceResult.h | 49 + .../ehpc/model/StopGWSInstanceRequest.h | 51 + .../ehpc/model/StopGWSInstanceResult.h | 49 + .../ehpc/model/UpdateQueueConfigRequest.h | 60 + .../ehpc/model/UpdateQueueConfigResult.h | 49 + ehpc/src/EHPCClient.cc | 3264 ++-- ehpc/src/model/AddContainerAppResult.cc | 9 +- ehpc/src/model/AddLocalNodesResult.cc | 9 +- ehpc/src/model/AddNodesRequest.cc | 11 + ehpc/src/model/AddNodesResult.cc | 9 +- ehpc/src/model/AddQueueResult.cc | 9 +- ehpc/src/model/AddUsersResult.cc | 9 +- ehpc/src/model/CreateClusterRequest.cc | 11 + ehpc/src/model/CreateClusterResult.cc | 9 +- ehpc/src/model/CreateGWSClusterRequest.cc | 71 + ehpc/src/model/CreateGWSClusterResult.cc | 55 + ehpc/src/model/CreateGWSImageRequest.cc | 60 + ehpc/src/model/CreateGWSImageResult.cc | 55 + ehpc/src/model/CreateGWSInstanceRequest.cc | 214 + ehpc/src/model/CreateGWSInstanceResult.cc | 55 + ehpc/src/model/CreateHybridClusterRequest.cc | 26 +- ehpc/src/model/CreateHybridClusterResult.cc | 9 +- ehpc/src/model/CreateJobFileResult.cc | 9 +- ehpc/src/model/CreateJobTemplateResult.cc | 9 +- ehpc/src/model/DeleteClusterResult.cc | 9 +- ehpc/src/model/DeleteContainerAppsResult.cc | 9 +- ehpc/src/model/DeleteGWSClusterRequest.cc | 49 + ehpc/src/model/DeleteGWSClusterResult.cc | 48 + ehpc/src/model/DeleteGWSInstanceRequest.cc | 49 + ehpc/src/model/DeleteGWSInstanceResult.cc | 48 + ehpc/src/model/DeleteImageResult.cc | 9 +- ehpc/src/model/DeleteJobTemplatesResult.cc | 9 +- ehpc/src/model/DeleteJobsResult.cc | 9 +- ehpc/src/model/DeleteNodesResult.cc | 9 +- ehpc/src/model/DeleteQueueResult.cc | 9 +- ehpc/src/model/DeleteUsersResult.cc | 9 +- .../model/DescribeAutoScaleConfigResult.cc | 9 +- ehpc/src/model/DescribeClusterResult.cc | 9 +- ehpc/src/model/DescribeContainerAppResult.cc | 9 +- ehpc/src/model/DescribeGWSClustersRequest.cc | 71 + ehpc/src/model/DescribeGWSClustersResult.cc | 97 + ehpc/src/model/DescribeGWSImagesRequest.cc | 60 + ehpc/src/model/DescribeGWSImagesResult.cc | 94 + ehpc/src/model/DescribeGWSInstancesRequest.cc | 82 + ehpc/src/model/DescribeGWSInstancesResult.cc | 110 + .../model/DescribeImageGatewayConfigResult.cc | 9 +- ehpc/src/model/DescribeImagePriceResult.cc | 9 +- ehpc/src/model/DescribeImageResult.cc | 9 +- ehpc/src/model/DescribeJobResult.cc | 9 +- .../model/DescribeNFSClientStatusRequest.cc | 49 + .../model/DescribeNFSClientStatusResult.cc | 67 + ehpc/src/model/DescribePriceResult.cc | 9 +- ehpc/src/model/EditJobTemplateResult.cc | 9 +- ehpc/src/model/GetAccountingReportResult.cc | 9 +- ehpc/src/model/GetAutoScaleConfigResult.cc | 11 +- ehpc/src/model/GetCloudMetricLogsResult.cc | 9 +- .../model/GetCloudMetricProfilingResult.cc | 9 +- ehpc/src/model/GetClusterVolumesResult.cc | 9 +- ehpc/src/model/GetGWSConnectTicketRequest.cc | 60 + ehpc/src/model/GetGWSConnectTicketResult.cc | 55 + .../src/model/GetHybridClusterConfigResult.cc | 9 +- .../src/model/GetVisualServiceStatusResult.cc | 9 +- ehpc/src/model/InstallNFSClientRequest.cc | 49 + ehpc/src/model/InstallNFSClientResult.cc | 55 + ehpc/src/model/InstallSoftwareResult.cc | 9 +- ehpc/src/model/InvokeShellCommandResult.cc | 9 +- .../src/model/ListAvailableEcsTypesRequest.cc | 11 + ehpc/src/model/ListAvailableEcsTypesResult.cc | 11 +- .../ListAvailableFileSystemTypesResult.cc | 9 +- .../model/ListCloudMetricProfilingsResult.cc | 9 +- ehpc/src/model/ListClusterLogsResult.cc | 9 +- ehpc/src/model/ListClustersMetaResult.cc | 11 +- ehpc/src/model/ListClustersResult.cc | 9 +- ehpc/src/model/ListCommandsResult.cc | 9 +- ehpc/src/model/ListContainerAppsResult.cc | 9 +- ehpc/src/model/ListContainerImagesResult.cc | 9 +- ehpc/src/model/ListCpfsFileSystemsResult.cc | 9 +- .../model/ListCurrentClientVersionResult.cc | 9 +- ehpc/src/model/ListCustomImagesResult.cc | 9 +- .../ListFileSystemWithMountTargetsResult.cc | 9 +- ehpc/src/model/ListImagesResult.cc | 9 +- ehpc/src/model/ListInstalledSoftwareResult.cc | 9 +- ehpc/src/model/ListInvocationResultsResult.cc | 9 +- ehpc/src/model/ListInvocationStatusResult.cc | 9 +- ehpc/src/model/ListJobTemplatesResult.cc | 9 +- ehpc/src/model/ListJobsResult.cc | 9 +- ehpc/src/model/ListNodesByQueueResult.cc | 9 +- ehpc/src/model/ListNodesNoPagingResult.cc | 9 +- ehpc/src/model/ListNodesResult.cc | 11 +- ehpc/src/model/ListPreferredEcsTypesResult.cc | 9 +- ehpc/src/model/ListQueuesResult.cc | 13 +- ehpc/src/model/ListRegionsResult.cc | 9 +- ehpc/src/model/ListSoftwaresResult.cc | 9 +- ehpc/src/model/ListUsersResult.cc | 9 +- ehpc/src/model/ListVolumesResult.cc | 9 +- .../model/ModifyClusterAttributesResult.cc | 9 +- .../ModifyContainerAppAttributesResult.cc | 9 +- .../model/ModifyImageGatewayConfigResult.cc | 9 +- ehpc/src/model/ModifyUserGroupsResult.cc | 9 +- ehpc/src/model/ModifyUserPasswordsResult.cc | 9 +- .../model/ModifyVisualServicePasswdResult.cc | 9 +- ehpc/src/model/MountNFSRequest.cc | 71 + ehpc/src/model/MountNFSResult.cc | 55 + ehpc/src/model/PullImageResult.cc | 9 +- .../model/QueryServicePackAndPriceRequest.cc | 38 + .../model/QueryServicePackAndPriceResult.cc | 116 + ehpc/src/model/RecoverClusterResult.cc | 9 +- ehpc/src/model/RerunJobsResult.cc | 9 +- ehpc/src/model/ResetNodesResult.cc | 9 +- .../model/RunCloudMetricProfilingResult.cc | 9 +- ehpc/src/model/SetAutoScaleConfigResult.cc | 9 +- ehpc/src/model/SetGWSInstanceUserRequest.cc | 71 + ehpc/src/model/SetGWSInstanceUserResult.cc | 48 + ehpc/src/model/SetJobUserResult.cc | 9 +- ehpc/src/model/SetQueueResult.cc | 9 +- ehpc/src/model/StartClusterResult.cc | 9 +- ehpc/src/model/StartGWSInstanceRequest.cc | 49 + ehpc/src/model/StartGWSInstanceResult.cc | 48 + ehpc/src/model/StartNodesResult.cc | 9 +- ehpc/src/model/StartVisualServiceResult.cc | 9 +- ehpc/src/model/StopClusterResult.cc | 9 +- ehpc/src/model/StopGWSInstanceRequest.cc | 49 + ehpc/src/model/StopGWSInstanceResult.cc | 48 + ehpc/src/model/StopJobsResult.cc | 9 +- ehpc/src/model/StopNodesResult.cc | 9 +- ehpc/src/model/StopVisualServiceResult.cc | 9 +- ehpc/src/model/SubmitJobResult.cc | 9 +- ehpc/src/model/UninstallSoftwareResult.cc | 9 +- ehpc/src/model/UpdateClusterVolumesResult.cc | 9 +- ehpc/src/model/UpdateQueueConfigRequest.cc | 82 + ehpc/src/model/UpdateQueueConfigResult.cc | 48 + ehpc/src/model/UpgradeClientResult.cc | 9 +- emr/CMakeLists.txt | 1700 +- emr/include/alibabacloud/emr/EmrClient.h | 3400 ++-- .../model/AddClusterServiceForAdminRequest.h | 66 + .../model/AddClusterServiceForAdminResult.h | 49 + .../alibabacloud/emr/model/AddHpHostRequest.h | 77 + .../alibabacloud/emr/model/AddHpHostResult.h | 51 + .../emr/model/AddResourceToUsersRequest.h | 102 + .../emr/model/AddResourceToUsersResult.h | 53 + .../emr/model/AddUserResourceRoleRequest.h | 102 + .../emr/model/AddUserResourceRoleResult.h | 53 + .../emr/model/CloneDataSourceRequest.h | 3 + .../emr/model/CloneETLJobRequest.h | 3 + .../emr/model/CreateBackupPlanRequest.h | 102 + .../emr/model/CreateBackupPlanResult.h | 59 + .../emr/model/CreateBackupRequest.h | 96 + .../emr/model/CreateBackupResult.h | 81 + .../emr/model/CreateBackupRuleRequest.h | 105 + .../emr/model/CreateBackupRuleResult.h | 61 + .../emr/model/CreateBatchUsersRequest.h | 109 + .../emr/model/CreateBatchUsersResult.h | 53 + .../emr/model/CreateClusterTemplateRequest.h | 9 + .../emr/model/CreateClusterV2Request.h | 6 + .../model/CreateClusterWithHostPoolRequest.h | 113 + .../model/CreateClusterWithHostPoolResult.h | 55 + .../model/CreateClusterWithTemplateRequest.h | 3 + .../emr/model/CreateETLJobRequest.h | 3 + .../emr/model/CreateHostPoolRequest.h | 73 + .../emr/model/CreateHostPoolResult.h | 51 + .../emr/model/CreateUserGroupRequest.h | 102 + .../emr/model/CreateUserGroupResult.h | 53 + .../emr/model/CreateUserRequest.h | 120 + .../alibabacloud/emr/model/CreateUserResult.h | 53 + .../model/DeleteBatchResourceUsersRequest.h | 99 + .../model/DeleteBatchResourceUsersResult.h | 53 + .../emr/model/DeleteHostPoolRequest.h | 57 + .../emr/model/DeleteHostPoolResult.h | 49 + .../emr/model/DeleteResourceUserRequest.h | 99 + .../emr/model/DeleteResourceUserResult.h | 53 + .../emr/model/DeleteUserGroupRequest.h | 93 + .../emr/model/DeleteUserGroupResult.h | 53 + .../emr/model/DeleteUserResourceRoleRequest.h | 102 + .../emr/model/DeleteUserResourceRoleResult.h | 53 + .../model/DescribeClusterBasicInfoResult.h | 79 +- ...ResourcePoolSchedulerTypeForAdminRequest.h | 60 + ...rResourcePoolSchedulerTypeForAdminResult.h | 55 + ...cribeClusterServiceConfigForAdminRequest.h | 75 + ...scribeClusterServiceConfigForAdminResult.h | 110 + ...beClusterServiceConfigTagForAdminRequest.h | 66 + ...ibeClusterServiceConfigTagForAdminResult.h | 62 + .../emr/model/DescribeClusterTemplateResult.h | 4 + .../emr/model/DescribeClusterV2Result.h | 8 + .../DescribeDataSourceSchemaTableResult.h | 2 + .../emr/model/DescribeETLJobInstanceResult.h | 15 +- .../emr/model/DescribeETLJobResult.h | 2 +- .../emr/model/DescribeETLJobSqlSchemaResult.h | 2 + .../DescribeETLJobStageOutputSchemaResult.h | 2 + .../emr/model/DescribeHostPoolRequest.h | 60 + .../emr/model/DescribeHostPoolResult.h | 63 + .../emr/model/DescribeHpHostRequest.h | 57 + .../emr/model/DescribeHpHostResult.h | 83 + .../emr/model/DescribeKafkaBrokerRequest.h | 60 + .../emr/model/DescribeKafkaBrokerResult.h | 87 + .../emr/model/DescribeKafkaReassignRequest.h | 57 + .../emr/model/DescribeKafkaReassignResult.h | 65 + .../emr/model/DescribeUserGroupRequest.h | 93 + .../emr/model/DescribeUserGroupResult.h | 70 + .../emr/model/DescribeUserRequest.h | 93 + .../emr/model/DescribeUserResult.h | 105 + .../DescribeWorkspaceRepoSettingRequest.h | 93 + .../DescribeWorkspaceRepoSettingResult.h | 64 + .../DescribeWorkspaceResourceSettingRequest.h | 93 + .../DescribeWorkspaceResourceSettingResult.h | 55 + .../emr/model/GetAuditLogsRequest.h | 117 + .../emr/model/GetAuditLogsResult.h | 65 + .../emr/model/GetBackInfoRequest.h | 45 + .../emr/model/GetBackInfoResult.h | 74 + .../emr/model/GetBackPlanInfoRequest.h | 93 + .../emr/model/GetBackPlanInfoResult.h | 59 + .../emr/model/GetBackupInfoRequest.h | 93 + .../emr/model/GetBackupInfoResult.h | 72 + .../emr/model/GetBackupRuleInfoRequest.h | 93 + .../emr/model/GetBackupRuleInfoResult.h | 61 + .../emr/model/GetFlowAuditLogsRequest.h | 129 + .../emr/model/GetFlowAuditLogsResult.h | 69 + .../emr/model/GetMetadataTypeListRequest.h | 54 + .../emr/model/GetMetadataTypeListResult.h | 56 + .../emr/model/ListApmApplicationRequest.h | 102 + .../emr/model/ListApmApplicationResult.h | 85 + .../emr/model/ListBackupPlansRequest.h | 123 + .../emr/model/ListBackupPlansResult.h | 65 + .../emr/model/ListBackupRulesRequest.h | 123 + .../emr/model/ListBackupRulesResult.h | 66 + .../emr/model/ListBackupsRequest.h | 135 + .../emr/model/ListBackupsResult.h | 74 + .../ListClusterHostComponentForAdminRequest.h | 84 + .../ListClusterHostComponentForAdminResult.h | 77 + .../emr/model/ListClusterHostGroupResult.h | 21 +- .../emr/model/ListClusterHostResult.h | 2 + .../ListClusterInstalledServiceRequest.h | 63 + .../model/ListClusterInstalledServiceResult.h | 73 + ...usterServiceConfigHistoryForAdminRequest.h | 72 + ...lusterServiceConfigHistoryForAdminResult.h | 70 + ...CustomActionSupportConfigForAdminRequest.h | 66 + ...eCustomActionSupportConfigForAdminResult.h | 55 + .../model/ListClusterSupportServiceRequest.h | 57 + .../model/ListClusterSupportServiceResult.h | 62 + .../emr/model/ListClusterTagForAdminRequest.h | 60 + .../emr/model/ListClusterTagForAdminResult.h | 62 + .../emr/model/ListClusterTemplatesResult.h | 3 + .../emr/model/ListClustersRequest.h | 3 + .../emr/model/ListClustersResult.h | 2 + .../model/ListDataSourceSchemaTableResult.h | 2 + .../emr/model/ListETLJobInstanceResult.h | 15 +- .../emr/model/ListETLJobReleaseRequest.h | 72 + .../emr/model/ListETLJobReleaseResult.h | 66 + .../emr/model/ListEmrAvailableConfigResult.h | 2 + .../emr/model/ListFlowJobHistoryRequest.h | 12 + .../emr/model/ListHostPoolRequest.h | 60 + .../emr/model/ListHostPoolResult.h | 67 + .../emr/model/ListHpHostRequest.h | 69 + .../alibabacloud/emr/model/ListHpHostResult.h | 81 + .../emr/model/ListKafkaBrokerRequest.h | 63 + .../emr/model/ListKafkaBrokerResult.h | 74 + .../emr/model/ListKafkaReassignRequest.h | 66 + .../emr/model/ListKafkaReassignResult.h | 68 + .../emr/model/ListKafkaReassignTopicRequest.h | 63 + .../emr/model/ListKafkaReassignTopicResult.h | 66 + .../model/ListKafkaTopicStatisticsRequest.h | 75 + .../model/ListKafkaTopicStatisticsResult.h | 77 + .../emr/model/ListNavSubTreeRequest.h | 9 + .../model/ListResourcePoolForAdminRequest.h | 69 + .../model/ListResourcePoolForAdminResult.h | 110 + .../alibabacloud/emr/model/ListRolesRequest.h | 93 + .../alibabacloud/emr/model/ListRolesResult.h | 62 + .../alibabacloud/emr/model/ListStackRequest.h | 66 + .../alibabacloud/emr/model/ListStackResult.h | 63 + .../emr/model/ListStackServiceRequest.h | 60 + .../emr/model/ListStackServiceResult.h | 69 + .../emr/model/ListStreamingSqlQueryRequest.h | 93 + .../emr/model/ListStreamingSqlQueryResult.h | 68 + .../ListSupportedServiceNameForAdminRequest.h | 57 + .../ListSupportedServiceNameForAdminResult.h | 51 + .../emr/model/ListUserGroupsRequest.h | 93 + .../emr/model/ListUserGroupsResult.h | 70 + .../emr/model/ListUsersByConditionRequest.h | 93 + .../emr/model/ListUsersByConditionResult.h | 99 + .../model/MetastoreDescribeKafkaTopicResult.h | 4 + .../model/MetastoreListKafkaTopicRequest.h | 3 + .../emr/model/MetastoreListKafkaTopicResult.h | 2 + ...odifyClusterServiceConfigForAdminRequest.h | 90 + ...ModifyClusterServiceConfigForAdminResult.h | 49 + .../model/ModifyClusterServiceConfigRequest.h | 30 +- .../emr/model/ModifyClusterTemplateRequest.h | 9 + .../emr/model/ModifyHostPoolRequest.h | 63 + .../emr/model/ModifyHostPoolResult.h | 51 + .../emr/model/ModifyHpHostRequest.h | 105 + .../emr/model/ModifyHpHostResult.h | 51 + .../emr/model/OfflineKafkaBrokerRequest.h | 63 + .../emr/model/OfflineKafkaBrokerResult.h | 49 + .../emr/model/PageListResourceUsersRequest.h | 105 + .../emr/model/PageListResourceUsersResult.h | 80 + .../emr/model/PageListUserGroupsRequest.h | 99 + .../emr/model/PageListUserGroupsResult.h | 76 + .../emr/model/PageListUsersRequest.h | 99 + .../emr/model/PageListUsersResult.h | 105 + .../emr/model/PlanComponentTopoRequest.h | 92 + .../emr/model/PlanComponentTopoResult.h | 61 + .../emr/model/PlanHostNameRequest.h | 73 + .../emr/model/PlanHostNameResult.h | 56 + .../emr/model/QueryInfoByTokenRequest.h | 45 + .../emr/model/QueryInfoByTokenResult.h | 53 + .../emr/model/QueryUserActionsPolicyRequest.h | 102 + .../emr/model/QueryUserActionsPolicyResult.h | 61 + .../emr/model/QueryUserPoliciesRequest.h | 96 + .../emr/model/QueryUserPoliciesResult.h | 61 + .../emr/model/ReassignKafkaRequest.h | 63 + .../emr/model/ReassignKafkaResult.h | 49 + .../emr/model/RefreshBackupListRequest.h | 93 + .../emr/model/RefreshBackupListResult.h | 81 + ...efreshClusterResourcePoolForAdminRequest.h | 63 + ...RefreshClusterResourcePoolForAdminResult.h | 53 + .../emr/model/ReleaseETLJobRequest.h | 3 + .../emr/model/RemoveBackupPlanRequest.h | 93 + .../emr/model/RemoveBackupPlanResult.h | 51 + .../emr/model/RemoveBackupRequest.h | 96 + .../emr/model/RemoveBackupResult.h | 81 + .../emr/model/RemoveBackupRuleRequest.h | 93 + .../emr/model/RemoveBackupRuleResult.h | 51 + .../emr/model/RemoveHpHostRequest.h | 57 + .../emr/model/RemoveHpHostResult.h | 49 + .../RenderResourcePoolXmlForAdminRequest.h | 63 + .../RenderResourcePoolXmlForAdminResult.h | 51 + .../model/ResizeClusterWithHostPoolRequest.h | 80 + .../model/ResizeClusterWithHostPoolResult.h | 55 + .../emr/model/RestoreBackupRequest.h | 96 + .../emr/model/RestoreBackupResult.h | 81 + .../emr/model/RetrySyncUserAccountRequest.h | 102 + .../emr/model/RetrySyncUserAccountResult.h | 53 + .../model/SaveBatchUserAccountInfoRequest.h | 111 + .../model/SaveBatchUserAccountInfoResult.h | 53 + .../emr/model/SaveUserAccountInfoRequest.h | 105 + .../emr/model/SaveUserAccountInfoResult.h | 53 + .../StartKafkaBrokerDiskBalancerRequest.h | 66 + .../StartKafkaBrokerDiskBalancerResult.h | 49 + ...tartKafkaPreferredReplicaElectionRequest.h | 57 + ...StartKafkaPreferredReplicaElectionResult.h | 49 + .../alibabacloud/emr/model/SubmitFlowResult.h | 4 + .../emr/model/UpdateETLJobRequest.h | 42 +- .../model/UpdateKafkaReassignParamRequest.h | 60 + .../model/UpdateKafkaReassignParamResult.h | 49 + .../emr/model/UpdateUserGroupRequest.h | 105 + .../emr/model/UpdateUserGroupResult.h | 53 + .../emr/model/UpdateUserRequest.h | 120 + .../alibabacloud/emr/model/UpdateUserResult.h | 53 + .../emr/model/UpdateUserStatusRequest.h | 96 + .../emr/model/UpdateUserStatusResult.h | 53 + .../model/UpdateWorkspaceRepoSettingRequest.h | 110 + .../model/UpdateWorkspaceRepoSettingResult.h | 49 + .../UpdateWorkspaceResourceSettingRequest.h | 96 + .../UpdateWorkspaceResourceSettingResult.h | 49 + emr/src/EmrClient.cc | 12978 ++++++++++------ .../model/AddClusterServiceForAdminRequest.cc | 104 + .../model/AddClusterServiceForAdminResult.cc | 48 + emr/src/model/AddClusterServiceRequest.cc | 12 +- emr/src/model/AddClusterServiceResult.cc | 9 +- emr/src/model/AddHpHostRequest.cc | 100 + emr/src/model/AddHpHostResult.cc | 55 + emr/src/model/AddResourceToUsersRequest.cc | 238 + emr/src/model/AddResourceToUsersResult.cc | 62 + emr/src/model/AddUserResourceRoleRequest.cc | 236 + emr/src/model/AddUserResourceRoleResult.cc | 62 + emr/src/model/AttachClusterForNoteRequest.cc | 10 +- emr/src/model/AttachClusterForNoteResult.cc | 9 +- emr/src/model/AttachPubIpRequest.cc | 10 +- emr/src/model/AttachPubIpResult.cc | 9 +- .../model/AuthorizeSecurityGroupRequest.cc | 12 +- emr/src/model/AuthorizeSecurityGroupResult.cc | 9 +- emr/src/model/CancelETLJobReleaseRequest.cc | 10 +- emr/src/model/CancelETLJobReleaseResult.cc | 9 +- emr/src/model/CancelOrderRequest.cc | 8 +- emr/src/model/CancelOrderResult.cc | 9 +- emr/src/model/CheckDataSourceRequest.cc | 12 +- emr/src/model/CheckDataSourceResult.cc | 9 +- emr/src/model/CloneDataSourceRequest.cc | 19 +- emr/src/model/CloneDataSourceResult.cc | 9 +- emr/src/model/CloneETLJobRequest.cc | 19 +- emr/src/model/CloneETLJobResult.cc | 9 +- emr/src/model/CloneFlowJobRequest.cc | 6 +- emr/src/model/CloneFlowJobResult.cc | 9 +- emr/src/model/CloneFlowRequest.cc | 6 +- emr/src/model/CloneFlowResult.cc | 9 +- emr/src/model/CommonApiWhiteListRequest.cc | 6 +- emr/src/model/CommonApiWhiteListResult.cc | 9 +- emr/src/model/ContextQueryLogRequest.cc | 24 +- emr/src/model/ContextQueryLogResult.cc | 9 +- emr/src/model/CreateAlertContactRequest.cc | 16 +- emr/src/model/CreateAlertContactResult.cc | 9 +- .../model/CreateAlertDingDingGroupRequest.cc | 12 +- .../model/CreateAlertDingDingGroupResult.cc | 9 +- emr/src/model/CreateAlertUserGroupRequest.cc | 12 +- emr/src/model/CreateAlertUserGroupResult.cc | 9 +- emr/src/model/CreateBackupPlanRequest.cc | 236 + emr/src/model/CreateBackupPlanResult.cc | 83 + emr/src/model/CreateBackupRequest.cc | 214 + emr/src/model/CreateBackupResult.cc | 160 + emr/src/model/CreateBackupRuleRequest.cc | 247 + emr/src/model/CreateBackupRuleResult.cc | 90 + emr/src/model/CreateBatchUsersRequest.cc | 246 + emr/src/model/CreateBatchUsersResult.cc | 62 + .../model/CreateClusterHostGroupRequest.cc | 14 +- emr/src/model/CreateClusterHostGroupResult.cc | 9 +- emr/src/model/CreateClusterScriptRequest.cc | 16 +- emr/src/model/CreateClusterScriptResult.cc | 9 +- emr/src/model/CreateClusterTemplateRequest.cc | 147 +- emr/src/model/CreateClusterTemplateResult.cc | 9 +- emr/src/model/CreateClusterV2Request.cc | 160 +- emr/src/model/CreateClusterV2Result.cc | 9 +- .../model/CreateClusterWithHostPoolRequest.cc | 203 + .../model/CreateClusterWithHostPoolResult.cc | 69 + .../model/CreateClusterWithTemplateRequest.cc | 19 +- .../model/CreateClusterWithTemplateResult.cc | 9 +- emr/src/model/CreateDataSourceRequest.cc | 18 +- emr/src/model/CreateDataSourceResult.cc | 9 +- emr/src/model/CreateETLJobRequest.cc | 27 +- emr/src/model/CreateETLJobResult.cc | 9 +- emr/src/model/CreateExecutionPlanRequest.cc | 102 +- emr/src/model/CreateExecutionPlanResult.cc | 9 +- emr/src/model/CreateFlowCategoryRequest.cc | 10 +- emr/src/model/CreateFlowCategoryResult.cc | 9 +- emr/src/model/CreateFlowForWebRequest.cc | 32 +- emr/src/model/CreateFlowForWebResult.cc | 9 +- emr/src/model/CreateFlowJobRequest.cc | 40 +- emr/src/model/CreateFlowJobResult.cc | 9 +- .../CreateFlowProjectClusterSettingRequest.cc | 16 +- .../CreateFlowProjectClusterSettingResult.cc | 9 +- emr/src/model/CreateFlowProjectRequest.cc | 6 +- emr/src/model/CreateFlowProjectResult.cc | 9 +- emr/src/model/CreateFlowProjectUserRequest.cc | 8 +- emr/src/model/CreateFlowProjectUserResult.cc | 9 +- emr/src/model/CreateFlowRequest.cc | 32 +- emr/src/model/CreateFlowResult.cc | 9 +- emr/src/model/CreateHostPoolRequest.cc | 112 + emr/src/model/CreateHostPoolResult.cc | 55 + emr/src/model/CreateJobRequest.cc | 18 +- emr/src/model/CreateJobResult.cc | 9 +- emr/src/model/CreateNavNodeRequest.cc | 18 +- emr/src/model/CreateNavNodeResult.cc | 9 +- emr/src/model/CreateNoteRequest.cc | 12 +- emr/src/model/CreateNoteResult.cc | 9 +- emr/src/model/CreateParagraphRequest.cc | 10 +- emr/src/model/CreateParagraphResult.cc | 9 +- emr/src/model/CreateResourcePoolRequest.cc | 30 +- emr/src/model/CreateResourcePoolResult.cc | 9 +- emr/src/model/CreateResourceQueueRequest.cc | 26 +- emr/src/model/CreateResourceQueueResult.cc | 9 +- emr/src/model/CreateScalingRuleRequest.cc | 52 +- emr/src/model/CreateScalingRuleResult.cc | 9 +- .../model/CreateScalingTaskGroupRequest.cc | 56 +- emr/src/model/CreateScalingTaskGroupResult.cc | 9 +- emr/src/model/CreateUserGroupRequest.cc | 237 + emr/src/model/CreateUserGroupResult.cc | 62 + emr/src/model/CreateUserPasswordRequest.cc | 18 +- emr/src/model/CreateUserPasswordResult.cc | 9 +- emr/src/model/CreateUserRequest.cc | 289 + emr/src/model/CreateUserResult.cc | 62 + emr/src/model/CreateUserStatisticsRequest.cc | 6 +- emr/src/model/CreateUserStatisticsResult.cc | 9 +- emr/src/model/CreateUsersRequest.cc | 14 +- emr/src/model/CreateUsersResult.cc | 9 +- .../model/CreateVerificationCodeRequest.cc | 10 +- emr/src/model/CreateVerificationCodeResult.cc | 9 +- emr/src/model/DeleteAlertContactsRequest.cc | 8 +- emr/src/model/DeleteAlertContactsResult.cc | 9 +- .../model/DeleteAlertDingDingGroupsRequest.cc | 8 +- .../model/DeleteAlertDingDingGroupsResult.cc | 9 +- emr/src/model/DeleteAlertUserGroupsRequest.cc | 8 +- emr/src/model/DeleteAlertUserGroupsResult.cc | 9 +- .../model/DeleteBatchResourceUsersRequest.cc | 226 + .../model/DeleteBatchResourceUsersResult.cc | 62 + .../model/DeleteClusterHostGroupRequest.cc | 10 +- emr/src/model/DeleteClusterHostGroupResult.cc | 9 +- emr/src/model/DeleteClusterScriptRequest.cc | 8 +- emr/src/model/DeleteClusterScriptResult.cc | 9 +- emr/src/model/DeleteClusterTemplateRequest.cc | 8 +- emr/src/model/DeleteClusterTemplateResult.cc | 9 +- emr/src/model/DeleteDataSourceRequest.cc | 8 +- emr/src/model/DeleteDataSourceResult.cc | 9 +- emr/src/model/DeleteETLJobRequest.cc | 8 +- emr/src/model/DeleteETLJobResult.cc | 9 +- emr/src/model/DeleteExecutionPlanRequest.cc | 8 +- emr/src/model/DeleteExecutionPlanResult.cc | 9 +- emr/src/model/DeleteFlowCategoryRequest.cc | 6 +- emr/src/model/DeleteFlowCategoryResult.cc | 9 +- emr/src/model/DeleteFlowJobRequest.cc | 6 +- emr/src/model/DeleteFlowJobResult.cc | 9 +- emr/src/model/DeleteFlowProjectByIdRequest.cc | 4 +- emr/src/model/DeleteFlowProjectByIdResult.cc | 9 +- .../DeleteFlowProjectClusterSettingRequest.cc | 6 +- .../DeleteFlowProjectClusterSettingResult.cc | 9 +- emr/src/model/DeleteFlowProjectRequest.cc | 4 +- emr/src/model/DeleteFlowProjectResult.cc | 9 +- emr/src/model/DeleteFlowProjectUserRequest.cc | 6 +- emr/src/model/DeleteFlowProjectUserResult.cc | 9 +- emr/src/model/DeleteFlowRequest.cc | 6 +- emr/src/model/DeleteFlowResult.cc | 9 +- emr/src/model/DeleteHostPoolRequest.cc | 71 + emr/src/model/DeleteHostPoolResult.cc | 48 + emr/src/model/DeleteJobRequest.cc | 8 +- emr/src/model/DeleteJobResult.cc | 9 +- emr/src/model/DeleteNavNodeRequest.cc | 10 +- emr/src/model/DeleteNavNodeResult.cc | 9 +- emr/src/model/DeleteNoteRequest.cc | 8 +- emr/src/model/DeleteNoteResult.cc | 9 +- emr/src/model/DeleteParagraphRequest.cc | 10 +- emr/src/model/DeleteParagraphResult.cc | 9 +- emr/src/model/DeleteResourcePoolRequest.cc | 10 +- emr/src/model/DeleteResourcePoolResult.cc | 9 +- emr/src/model/DeleteResourceQueueRequest.cc | 10 +- emr/src/model/DeleteResourceQueueResult.cc | 9 +- emr/src/model/DeleteResourceUserRequest.cc | 225 + emr/src/model/DeleteResourceUserResult.cc | 62 + emr/src/model/DeleteScalingRuleRequest.cc | 12 +- emr/src/model/DeleteScalingRuleResult.cc | 9 +- .../model/DeleteScalingTaskGroupRequest.cc | 10 +- emr/src/model/DeleteScalingTaskGroupResult.cc | 9 +- emr/src/model/DeleteUserGroupRequest.cc | 203 + emr/src/model/DeleteUserGroupResult.cc | 62 + emr/src/model/DeleteUserRequest.cc | 12 +- .../model/DeleteUserResourceRoleRequest.cc | 236 + emr/src/model/DeleteUserResourceRoleResult.cc | 62 + emr/src/model/DeleteUserResult.cc | 9 +- .../DescribeAvailableInstanceTypeRequest.cc | 8 +- .../DescribeAvailableInstanceTypeResult.cc | 9 +- .../model/DescribeClusterBasicInfoRequest.cc | 8 +- .../model/DescribeClusterBasicInfoResult.cc | 104 +- emr/src/model/DescribeClusterOpLogRequest.cc | 12 +- emr/src/model/DescribeClusterOpLogResult.cc | 9 +- ...cribeClusterOperationHostTaskLogRequest.cc | 16 +- ...scribeClusterOperationHostTaskLogResult.cc | 9 +- ...esourcePoolSchedulerTypeForAdminRequest.cc | 82 + ...ResourcePoolSchedulerTypeForAdminResult.cc | 69 + ...ClusterResourcePoolSchedulerTypeRequest.cc | 8 +- ...eClusterResourcePoolSchedulerTypeResult.cc | 9 +- emr/src/model/DescribeClusterScriptRequest.cc | 8 +- emr/src/model/DescribeClusterScriptResult.cc | 9 +- ...ribeClusterServiceConfigForAdminRequest.cc | 137 + ...cribeClusterServiceConfigForAdminResult.cc | 145 + ...cribeClusterServiceConfigHistoryRequest.cc | 12 +- ...scribeClusterServiceConfigHistoryResult.cc | 9 +- .../DescribeClusterServiceConfigRequest.cc | 18 +- .../DescribeClusterServiceConfigResult.cc | 9 +- ...eClusterServiceConfigTagForAdminRequest.cc | 104 + ...beClusterServiceConfigTagForAdminResult.cc | 73 + .../DescribeClusterServiceConfigTagRequest.cc | 12 +- .../DescribeClusterServiceConfigTagResult.cc | 9 +- .../model/DescribeClusterServiceRequest.cc | 10 +- emr/src/model/DescribeClusterServiceResult.cc | 9 +- .../model/DescribeClusterStatisticsRequest.cc | 8 +- .../model/DescribeClusterStatisticsResult.cc | 9 +- .../model/DescribeClusterTemplateRequest.cc | 6 +- .../model/DescribeClusterTemplateResult.cc | 17 +- emr/src/model/DescribeClusterV2Request.cc | 8 +- emr/src/model/DescribeClusterV2Result.cc | 18 +- .../model/DescribeDataSourceCommandRequest.cc | 8 +- .../model/DescribeDataSourceCommandResult.cc | 9 +- emr/src/model/DescribeDataSourceRequest.cc | 8 +- emr/src/model/DescribeDataSourceResult.cc | 9 +- ...DescribeDataSourceSchemaDatabaseRequest.cc | 10 +- .../DescribeDataSourceSchemaDatabaseResult.cc | 9 +- .../DescribeDataSourceSchemaTableRequest.cc | 12 +- .../DescribeDataSourceSchemaTableResult.cc | 13 +- .../model/DescribeETLJobInstanceRequest.cc | 8 +- emr/src/model/DescribeETLJobInstanceResult.cc | 32 +- emr/src/model/DescribeETLJobRequest.cc | 8 +- emr/src/model/DescribeETLJobResult.cc | 15 +- .../model/DescribeETLJobSqlSchemaRequest.cc | 8 +- .../model/DescribeETLJobSqlSchemaResult.cc | 13 +- .../DescribeETLJobStageOutputSchemaRequest.cc | 10 +- .../DescribeETLJobStageOutputSchemaResult.cc | 13 +- .../model/DescribeEmrMainVersionRequest.cc | 8 +- emr/src/model/DescribeEmrMainVersionResult.cc | 9 +- emr/src/model/DescribeExecutionPlanRequest.cc | 8 +- emr/src/model/DescribeExecutionPlanResult.cc | 9 +- emr/src/model/DescribeFlowCategoryRequest.cc | 6 +- emr/src/model/DescribeFlowCategoryResult.cc | 9 +- .../model/DescribeFlowCategoryTreeRequest.cc | 6 +- .../model/DescribeFlowCategoryTreeResult.cc | 9 +- emr/src/model/DescribeFlowInstanceRequest.cc | 6 +- emr/src/model/DescribeFlowInstanceResult.cc | 9 +- emr/src/model/DescribeFlowJobRequest.cc | 6 +- emr/src/model/DescribeFlowJobResult.cc | 9 +- .../model/DescribeFlowJobStatisticRequest.cc | 6 +- .../model/DescribeFlowJobStatisticResult.cc | 9 +- ...ribeFlowNodeInstanceContainerLogRequest.cc | 16 +- ...cribeFlowNodeInstanceContainerLogResult.cc | 9 +- ...cribeFlowNodeInstanceLauncherLogRequest.cc | 20 +- ...scribeFlowNodeInstanceLauncherLogResult.cc | 9 +- .../model/DescribeFlowNodeInstanceRequest.cc | 6 +- .../model/DescribeFlowNodeInstanceResult.cc | 9 +- ...escribeFlowProjectClusterSettingRequest.cc | 6 +- ...DescribeFlowProjectClusterSettingResult.cc | 9 +- emr/src/model/DescribeFlowProjectRequest.cc | 4 +- emr/src/model/DescribeFlowProjectResult.cc | 9 +- emr/src/model/DescribeFlowRequest.cc | 6 +- emr/src/model/DescribeFlowResult.cc | 9 +- .../DescribeFlowVariableCollectionRequest.cc | 4 +- .../DescribeFlowVariableCollectionResult.cc | 9 +- emr/src/model/DescribeHostPoolRequest.cc | 82 + emr/src/model/DescribeHostPoolResult.cc | 97 + emr/src/model/DescribeHpHostRequest.cc | 71 + emr/src/model/DescribeHpHostResult.cc | 157 + emr/src/model/DescribeJobRequest.cc | 8 +- emr/src/model/DescribeJobResult.cc | 9 +- emr/src/model/DescribeKafkaBrokerRequest.cc | 82 + emr/src/model/DescribeKafkaBrokerResult.cc | 165 + emr/src/model/DescribeKafkaReassignRequest.cc | 71 + emr/src/model/DescribeKafkaReassignResult.cc | 104 + emr/src/model/DescribeNoteRequest.cc | 8 +- emr/src/model/DescribeNoteResult.cc | 9 +- emr/src/model/DescribeParagraphRequest.cc | 10 +- emr/src/model/DescribeParagraphResult.cc | 9 +- .../model/DescribeScalingActivityRequest.cc | 12 +- .../model/DescribeScalingActivityResult.cc | 9 +- emr/src/model/DescribeScalingRuleRequest.cc | 12 +- emr/src/model/DescribeScalingRuleResult.cc | 9 +- .../model/DescribeScalingTaskGroupRequest.cc | 10 +- .../model/DescribeScalingTaskGroupResult.cc | 9 +- .../DescribeSecurityGroupAttributeRequest.cc | 8 +- .../DescribeSecurityGroupAttributeResult.cc | 9 +- emr/src/model/DescribeUserGroupRequest.cc | 203 + emr/src/model/DescribeUserGroupResult.cc | 106 + emr/src/model/DescribeUserRequest.cc | 203 + emr/src/model/DescribeUserResult.cc | 188 + .../model/DescribeUserStatisticsRequest.cc | 8 +- emr/src/model/DescribeUserStatisticsResult.cc | 9 +- .../DescribeWorkspaceRepoSettingRequest.cc | 203 + .../DescribeWorkspaceRepoSettingResult.cc | 70 + ...DescribeWorkspaceResourceSettingRequest.cc | 203 + .../DescribeWorkspaceResourceSettingResult.cc | 56 + emr/src/model/DetachClusterForNoteRequest.cc | 8 +- emr/src/model/DetachClusterForNoteResult.cc | 9 +- emr/src/model/GetAuditLogsRequest.cc | 291 + emr/src/model/GetAuditLogsResult.cc | 90 + emr/src/model/GetBackInfoRequest.cc | 27 + emr/src/model/GetBackInfoResult.cc | 121 + emr/src/model/GetBackPlanInfoRequest.cc | 203 + emr/src/model/GetBackPlanInfoResult.cc | 83 + emr/src/model/GetBackupInfoRequest.cc | 203 + emr/src/model/GetBackupInfoResult.cc | 114 + emr/src/model/GetBackupRuleInfoRequest.cc | 203 + emr/src/model/GetBackupRuleInfoResult.cc | 90 + emr/src/model/GetFlowAuditLogsRequest.cc | 335 + emr/src/model/GetFlowAuditLogsResult.cc | 98 + .../GetHdfsCapacityStatisticInfoRequest.cc | 12 +- .../GetHdfsCapacityStatisticInfoResult.cc | 9 +- .../model/GetJobInputStatisticInfoRequest.cc | 16 +- .../model/GetJobInputStatisticInfoResult.cc | 9 +- emr/src/model/GetJobMigrateResultRequest.cc | 8 +- emr/src/model/GetJobMigrateResultResult.cc | 9 +- .../model/GetJobOutputStatisticInfoRequest.cc | 16 +- .../model/GetJobOutputStatisticInfoResult.cc | 9 +- .../GetJobRunningTimeStatisticInfoRequest.cc | 16 +- .../GetJobRunningTimeStatisticInfoResult.cc | 9 +- emr/src/model/GetLogDownloadUrlRequest.cc | 14 +- emr/src/model/GetLogDownloadUrlResult.cc | 9 +- emr/src/model/GetLogHistogramRequest.cc | 20 +- emr/src/model/GetLogHistogramResult.cc | 9 +- emr/src/model/GetMetadataTypeListRequest.cc | 60 + emr/src/model/GetMetadataTypeListResult.cc | 65 + emr/src/model/GetOpsCommandDetailRequest.cc | 8 +- emr/src/model/GetOpsCommandDetailResult.cc | 9 +- .../model/GetOpsCommandResultOnceRequest.cc | 10 +- .../model/GetOpsCommandResultOnceResult.cc | 9 +- emr/src/model/GetOpsCommandResultRequest.cc | 14 +- emr/src/model/GetOpsCommandResultResult.cc | 9 +- .../GetQueueInputStatisticInfoRequest.cc | 12 +- .../model/GetQueueInputStatisticInfoResult.cc | 9 +- .../GetQueueOutputStatisticInfoRequest.cc | 12 +- .../GetQueueOutputStatisticInfoResult.cc | 9 +- .../GetQueueSubmissionStatisticInfoRequest.cc | 16 +- .../GetQueueSubmissionStatisticInfoResult.cc | 9 +- .../model/GetSupportedOpsCommandRequest.cc | 6 +- emr/src/model/GetSupportedOpsCommandResult.cc | 9 +- .../model/GetUserInputStatisticInfoRequest.cc | 12 +- .../model/GetUserInputStatisticInfoResult.cc | 9 +- .../GetUserOutputStatisticInfoRequest.cc | 12 +- .../model/GetUserOutputStatisticInfoResult.cc | 9 +- .../GetUserSubmissionStatisticInfoRequest.cc | 16 +- .../GetUserSubmissionStatisticInfoResult.cc | 9 +- emr/src/model/KillETLJobInstanceRequest.cc | 8 +- emr/src/model/KillETLJobInstanceResult.cc | 9 +- .../model/KillExecutionJobInstanceRequest.cc | 8 +- .../model/KillExecutionJobInstanceResult.cc | 9 +- .../model/KillExecutionPlanInstanceRequest.cc | 8 +- .../model/KillExecutionPlanInstanceResult.cc | 9 +- emr/src/model/KillFlowJobRequest.cc | 6 +- emr/src/model/KillFlowJobResult.cc | 9 +- emr/src/model/KillFlowRequest.cc | 6 +- emr/src/model/KillFlowResult.cc | 9 +- emr/src/model/ListAlertContactsRequest.cc | 12 +- emr/src/model/ListAlertContactsResult.cc | 9 +- .../model/ListAlertDingDingGroupRequest.cc | 12 +- emr/src/model/ListAlertDingDingGroupResult.cc | 9 +- emr/src/model/ListAlertUserGroupRequest.cc | 12 +- emr/src/model/ListAlertUserGroupResult.cc | 9 +- emr/src/model/ListApmApplicationRequest.cc | 236 + emr/src/model/ListApmApplicationResult.cc | 130 + emr/src/model/ListBackupPlansRequest.cc | 313 + emr/src/model/ListBackupPlansResult.cc | 90 + emr/src/model/ListBackupRulesRequest.cc | 313 + emr/src/model/ListBackupRulesResult.cc | 92 + emr/src/model/ListBackupsRequest.cc | 358 + emr/src/model/ListBackupsResult.cc | 101 + ...ListClusterHostComponentForAdminRequest.cc | 170 + .../ListClusterHostComponentForAdminResult.cc | 114 + .../model/ListClusterHostComponentRequest.cc | 24 +- .../model/ListClusterHostComponentResult.cc | 9 +- emr/src/model/ListClusterHostGroupRequest.cc | 20 +- emr/src/model/ListClusterHostGroupResult.cc | 15 +- emr/src/model/ListClusterHostRequest.cc | 28 +- emr/src/model/ListClusterHostResult.cc | 13 +- .../ListClusterInstalledServiceRequest.cc | 93 + .../ListClusterInstalledServiceResult.cc | 95 + .../model/ListClusterOperationHostRequest.cc | 16 +- .../model/ListClusterOperationHostResult.cc | 9 +- .../ListClusterOperationHostTaskRequest.cc | 18 +- .../ListClusterOperationHostTaskResult.cc | 9 +- emr/src/model/ListClusterOperationRequest.cc | 16 +- emr/src/model/ListClusterOperationResult.cc | 9 +- emr/src/model/ListClusterScriptsRequest.cc | 8 +- emr/src/model/ListClusterScriptsResult.cc | 9 +- ...lusterServiceComponentHealthInfoRequest.cc | 10 +- ...ClusterServiceComponentHealthInfoResult.cc | 9 +- ...sterServiceConfigHistoryForAdminRequest.cc | 126 + ...usterServiceConfigHistoryForAdminResult.cc | 100 + .../ListClusterServiceConfigHistoryRequest.cc | 16 +- .../ListClusterServiceConfigHistoryResult.cc | 9 +- ...ustomActionSupportConfigForAdminRequest.cc | 104 + ...CustomActionSupportConfigForAdminResult.cc | 61 + ...ServiceCustomActionSupportConfigRequest.cc | 12 +- ...rServiceCustomActionSupportConfigResult.cc | 9 +- .../ListClusterServiceQuickLinkRequest.cc | 10 +- .../ListClusterServiceQuickLinkResult.cc | 9 +- emr/src/model/ListClusterServiceRequest.cc | 12 +- emr/src/model/ListClusterServiceResult.cc | 9 +- .../model/ListClusterSupportServiceRequest.cc | 71 + .../model/ListClusterSupportServiceResult.cc | 81 + .../model/ListClusterTagForAdminRequest.cc | 83 + emr/src/model/ListClusterTagForAdminResult.cc | 73 + emr/src/model/ListClusterTagRequest.cc | 8 +- emr/src/model/ListClusterTagResult.cc | 9 +- emr/src/model/ListClusterTemplatesRequest.cc | 12 +- emr/src/model/ListClusterTemplatesResult.cc | 15 +- emr/src/model/ListClustersRequest.cc | 33 +- emr/src/model/ListClustersResult.cc | 13 +- emr/src/model/ListDataSourceRequest.cc | 20 +- emr/src/model/ListDataSourceResult.cc | 9 +- .../ListDataSourceSchemaDatabaseRequest.cc | 10 +- .../ListDataSourceSchemaDatabaseResult.cc | 9 +- .../model/ListDataSourceSchemaTableRequest.cc | 12 +- .../model/ListDataSourceSchemaTableResult.cc | 13 +- emr/src/model/ListDependedServiceRequest.cc | 10 +- emr/src/model/ListDependedServiceResult.cc | 9 +- emr/src/model/ListETLJobInstanceRequest.cc | 16 +- emr/src/model/ListETLJobInstanceResult.cc | 32 +- emr/src/model/ListETLJobReleaseRequest.cc | 126 + emr/src/model/ListETLJobReleaseResult.cc | 92 + .../model/ListETLJobTriggerEntityRequest.cc | 8 +- .../model/ListETLJobTriggerEntityResult.cc | 9 +- .../model/ListEmrAvailableConfigRequest.cc | 6 +- emr/src/model/ListEmrAvailableConfigResult.cc | 13 +- .../model/ListEmrAvailableResourceRequest.cc | 28 +- .../model/ListEmrAvailableResourceResult.cc | 9 +- emr/src/model/ListEmrMainVersionRequest.cc | 16 +- emr/src/model/ListEmrMainVersionResult.cc | 9 +- .../ListExecutePlanMigrateInfoRequest.cc | 12 +- .../model/ListExecutePlanMigrateInfoResult.cc | 9 +- .../ListExecutionPlanInstanceTrendRequest.cc | 6 +- .../ListExecutionPlanInstanceTrendResult.cc | 9 +- .../ListExecutionPlanInstancesRequest.cc | 18 +- .../model/ListExecutionPlanInstancesResult.cc | 9 +- emr/src/model/ListExecutionPlansRequest.cc | 24 +- emr/src/model/ListExecutionPlansResult.cc | 9 +- ...ListFailureJobExecutionInstancesRequest.cc | 8 +- .../ListFailureJobExecutionInstancesResult.cc | 9 +- emr/src/model/ListFlowCategoryRequest.cc | 12 +- emr/src/model/ListFlowCategoryResult.cc | 9 +- .../model/ListFlowClusterAllHostsRequest.cc | 6 +- .../model/ListFlowClusterAllHostsResult.cc | 9 +- emr/src/model/ListFlowClusterAllRequest.cc | 2 +- emr/src/model/ListFlowClusterAllResult.cc | 9 +- emr/src/model/ListFlowClusterHostRequest.cc | 6 +- emr/src/model/ListFlowClusterHostResult.cc | 9 +- emr/src/model/ListFlowClusterRequest.cc | 8 +- emr/src/model/ListFlowClusterResult.cc | 9 +- emr/src/model/ListFlowInstanceRequest.cc | 26 +- emr/src/model/ListFlowInstanceResult.cc | 9 +- emr/src/model/ListFlowJobHistoryRequest.cc | 55 +- emr/src/model/ListFlowJobHistoryResult.cc | 9 +- emr/src/model/ListFlowJobRequest.cc | 16 +- emr/src/model/ListFlowJobResult.cc | 9 +- ...tFlowNodeInstanceContainerStatusRequest.cc | 10 +- ...stFlowNodeInstanceContainerStatusResult.cc | 9 +- emr/src/model/ListFlowNodeInstanceRequest.cc | 16 +- emr/src/model/ListFlowNodeInstanceResult.cc | 9 +- emr/src/model/ListFlowNodeSqlResultRequest.cc | 12 +- emr/src/model/ListFlowNodeSqlResultResult.cc | 9 +- .../ListFlowProjectClusterSettingRequest.cc | 8 +- .../ListFlowProjectClusterSettingResult.cc | 9 +- emr/src/model/ListFlowProjectRequest.cc | 10 +- emr/src/model/ListFlowProjectResult.cc | 9 +- emr/src/model/ListFlowProjectUserRequest.cc | 8 +- emr/src/model/ListFlowProjectUserResult.cc | 9 +- emr/src/model/ListFlowRequest.cc | 20 +- emr/src/model/ListFlowResult.cc | 9 +- emr/src/model/ListHostPoolRequest.cc | 82 + emr/src/model/ListHostPoolResult.cc | 94 + emr/src/model/ListHpHostRequest.cc | 115 + emr/src/model/ListHpHostResult.cc | 121 + .../ListJobExecutionInstanceTrendRequest.cc | 6 +- .../ListJobExecutionInstanceTrendResult.cc | 9 +- .../model/ListJobExecutionInstancesRequest.cc | 14 +- .../model/ListJobExecutionInstancesResult.cc | 9 +- .../ListJobExecutionPlanHierarchyRequest.cc | 10 +- .../ListJobExecutionPlanHierarchyResult.cc | 9 +- .../ListJobExecutionPlanParamsRequest.cc | 8 +- .../model/ListJobExecutionPlanParamsResult.cc | 9 +- .../model/ListJobInstanceWorkersRequest.cc | 8 +- emr/src/model/ListJobInstanceWorkersResult.cc | 9 +- emr/src/model/ListJobMigrateInfoRequest.cc | 12 +- emr/src/model/ListJobMigrateInfoResult.cc | 9 +- emr/src/model/ListJobsRequest.cc | 16 +- emr/src/model/ListJobsResult.cc | 9 +- emr/src/model/ListKafkaBrokerRequest.cc | 93 + emr/src/model/ListKafkaBrokerResult.cc | 108 + emr/src/model/ListKafkaReassignRequest.cc | 104 + emr/src/model/ListKafkaReassignResult.cc | 96 + .../model/ListKafkaReassignTopicRequest.cc | 93 + emr/src/model/ListKafkaReassignTopicResult.cc | 92 + .../model/ListKafkaTopicStatisticsRequest.cc | 137 + .../model/ListKafkaTopicStatisticsResult.cc | 107 + emr/src/model/ListNavSubTreeRequest.cc | 47 +- emr/src/model/ListNavSubTreeResult.cc | 9 +- emr/src/model/ListNotesRequest.cc | 6 +- emr/src/model/ListNotesResult.cc | 9 +- emr/src/model/ListOpsOperationRequest.cc | 10 +- emr/src/model/ListOpsOperationResult.cc | 9 +- emr/src/model/ListOpsOperationTaskRequest.cc | 10 +- emr/src/model/ListOpsOperationTaskResult.cc | 9 +- emr/src/model/ListRequiredServiceRequest.cc | 10 +- emr/src/model/ListRequiredServiceResult.cc | 9 +- .../model/ListResourcePoolForAdminRequest.cc | 115 + .../model/ListResourcePoolForAdminResult.cc | 160 + emr/src/model/ListResourcePoolRequest.cc | 14 +- emr/src/model/ListResourcePoolResult.cc | 9 +- emr/src/model/ListResourceQueueRequest.cc | 16 +- emr/src/model/ListResourceQueueResult.cc | 9 +- emr/src/model/ListRolesRequest.cc | 203 + emr/src/model/ListRolesResult.cc | 78 + emr/src/model/ListScalingActivityRequest.cc | 14 +- emr/src/model/ListScalingActivityResult.cc | 9 +- emr/src/model/ListScalingRuleRequest.cc | 14 +- emr/src/model/ListScalingRuleResult.cc | 9 +- emr/src/model/ListScalingTaskGroupRequest.cc | 8 +- emr/src/model/ListScalingTaskGroupResult.cc | 9 +- emr/src/model/ListServiceLogRequest.cc | 16 +- emr/src/model/ListServiceLogResult.cc | 9 +- emr/src/model/ListSlsLogstoreInfoRequest.cc | 12 +- emr/src/model/ListSlsLogstoreInfoResult.cc | 9 +- emr/src/model/ListStackRequest.cc | 104 + emr/src/model/ListStackResult.cc | 86 + emr/src/model/ListStackServiceRequest.cc | 82 + emr/src/model/ListStackServiceResult.cc | 93 + emr/src/model/ListStreamingSqlQueryRequest.cc | 203 + emr/src/model/ListStreamingSqlQueryResult.cc | 96 + ...ListSupportedServiceNameForAdminRequest.cc | 71 + .../ListSupportedServiceNameForAdminResult.cc | 56 + .../model/ListSupportedServiceNameRequest.cc | 6 +- .../model/ListSupportedServiceNameResult.cc | 9 +- emr/src/model/ListUserGroupsRequest.cc | 203 + emr/src/model/ListUserGroupsResult.cc | 92 + emr/src/model/ListUserStatisticsRequest.cc | 14 +- emr/src/model/ListUserStatisticsResult.cc | 9 +- emr/src/model/ListUsersByConditionRequest.cc | 203 + emr/src/model/ListUsersByConditionResult.cc | 144 + emr/src/model/ListUsersRequest.cc | 10 +- emr/src/model/ListUsersResult.cc | 9 +- .../MetastoreCreateDataResourceRequest.cc | 18 +- .../MetastoreCreateDataResourceResult.cc | 9 +- .../model/MetastoreCreateDatabaseRequest.cc | 20 +- .../model/MetastoreCreateDatabaseResult.cc | 9 +- .../model/MetastoreCreateKafkaTopicRequest.cc | 18 +- .../model/MetastoreCreateKafkaTopicResult.cc | 9 +- emr/src/model/MetastoreCreateTableRequest.cc | 34 +- emr/src/model/MetastoreCreateTableResult.cc | 9 +- emr/src/model/MetastoreDataPreviewRequest.cc | 10 +- emr/src/model/MetastoreDataPreviewResult.cc | 9 +- .../MetastoreDeleteDataResourceRequest.cc | 8 +- .../MetastoreDeleteDataResourceResult.cc | 9 +- .../model/MetastoreDeleteKafkaTopicRequest.cc | 8 +- .../model/MetastoreDeleteKafkaTopicResult.cc | 9 +- .../MetastoreDescribeDataSourceRequest.cc | 8 +- .../MetastoreDescribeDataSourceResult.cc | 9 +- .../model/MetastoreDescribeDatabaseRequest.cc | 10 +- .../model/MetastoreDescribeDatabaseResult.cc | 9 +- ...astoreDescribeKafkaConsumerGroupRequest.cc | 10 +- ...tastoreDescribeKafkaConsumerGroupResult.cc | 9 +- .../MetastoreDescribeKafkaTopicRequest.cc | 8 +- .../MetastoreDescribeKafkaTopicResult.cc | 23 +- .../model/MetastoreDescribeTableRequest.cc | 14 +- emr/src/model/MetastoreDescribeTableResult.cc | 9 +- emr/src/model/MetastoreDescribeTaskRequest.cc | 8 +- emr/src/model/MetastoreDescribeTaskResult.cc | 9 +- emr/src/model/MetastoreDropDatabaseRequest.cc | 10 +- emr/src/model/MetastoreDropDatabaseResult.cc | 9 +- emr/src/model/MetastoreDropTableRequest.cc | 14 +- emr/src/model/MetastoreDropTableResult.cc | 9 +- .../MetastoreListDataResourcesRequest.cc | 6 +- .../model/MetastoreListDataResourcesResult.cc | 9 +- .../model/MetastoreListDataSourceRequest.cc | 16 +- .../model/MetastoreListDataSourceResult.cc | 9 +- .../model/MetastoreListDatabasesRequest.cc | 14 +- emr/src/model/MetastoreListDatabasesResult.cc | 9 +- .../MetastoreListKafkaConsumerGroupRequest.cc | 12 +- .../MetastoreListKafkaConsumerGroupResult.cc | 9 +- .../model/MetastoreListKafkaTopicRequest.cc | 27 +- .../model/MetastoreListKafkaTopicResult.cc | 13 +- .../MetastoreListTablePartitionRequest.cc | 14 +- .../MetastoreListTablePartitionResult.cc | 9 +- emr/src/model/MetastoreListTablesRequest.cc | 20 +- emr/src/model/MetastoreListTablesResult.cc | 9 +- emr/src/model/MetastoreListTaskRequest.cc | 20 +- emr/src/model/MetastoreListTaskResult.cc | 9 +- .../MetastoreModifyDataResourceRequest.cc | 16 +- .../MetastoreModifyDataResourceResult.cc | 9 +- emr/src/model/MetastoreRetryTaskRequest.cc | 8 +- emr/src/model/MetastoreRetryTaskResult.cc | 9 +- emr/src/model/MetastoreSearchTablesRequest.cc | 10 +- emr/src/model/MetastoreSearchTablesResult.cc | 9 +- .../MetastoreUpdateKafkaTopicBatchRequest.cc | 10 +- .../MetastoreUpdateKafkaTopicBatchResult.cc | 9 +- .../model/MetastoreUpdateKafkaTopicRequest.cc | 14 +- .../model/MetastoreUpdateKafkaTopicResult.cc | 9 +- emr/src/model/MetastoreUpdateTableRequest.cc | 24 +- emr/src/model/MetastoreUpdateTableResult.cc | 9 +- .../MigrateClusterHostGroupHostRequest.cc | 12 +- .../MigrateClusterHostGroupHostResult.cc | 9 +- emr/src/model/MigrateJobsRequest.cc | 8 +- emr/src/model/MigrateJobsResult.cc | 9 +- emr/src/model/ModifyAlertContactRequest.cc | 18 +- emr/src/model/ModifyAlertContactResult.cc | 9 +- .../model/ModifyAlertDingDingGroupRequest.cc | 14 +- .../model/ModifyAlertDingDingGroupResult.cc | 9 +- emr/src/model/ModifyAlertUserGroupRequest.cc | 14 +- emr/src/model/ModifyAlertUserGroupResult.cc | 9 +- .../model/ModifyClusterHostGroupRequest.cc | 18 +- emr/src/model/ModifyClusterHostGroupResult.cc | 9 +- emr/src/model/ModifyClusterNameRequest.cc | 10 +- emr/src/model/ModifyClusterNameResult.cc | 9 +- ...difyClusterServiceConfigForAdminRequest.cc | 193 + ...odifyClusterServiceConfigForAdminResult.cc | 48 + .../ModifyClusterServiceConfigRequest.cc | 125 +- .../model/ModifyClusterServiceConfigResult.cc | 9 +- emr/src/model/ModifyClusterTemplateRequest.cc | 151 +- emr/src/model/ModifyClusterTemplateResult.cc | 9 +- .../ModifyExecutionPlanBasicInfoRequest.cc | 12 +- .../ModifyExecutionPlanBasicInfoResult.cc | 9 +- .../ModifyExecutionPlanClusterInfoRequest.cc | 68 +- .../ModifyExecutionPlanClusterInfoResult.cc | 9 +- .../ModifyExecutionPlanJobInfoRequest.cc | 10 +- .../model/ModifyExecutionPlanJobInfoResult.cc | 9 +- emr/src/model/ModifyExecutionPlanRequest.cc | 106 +- emr/src/model/ModifyExecutionPlanResult.cc | 9 +- .../ModifyExecutionPlanScheduleInfoRequest.cc | 20 +- .../ModifyExecutionPlanScheduleInfoResult.cc | 9 +- emr/src/model/ModifyFlowCategoryRequest.cc | 10 +- emr/src/model/ModifyFlowCategoryResult.cc | 9 +- emr/src/model/ModifyFlowForWebRequest.cc | 38 +- emr/src/model/ModifyFlowForWebResult.cc | 9 +- emr/src/model/ModifyFlowJobRequest.cc | 38 +- emr/src/model/ModifyFlowJobResult.cc | 9 +- .../ModifyFlowProjectClusterSettingRequest.cc | 16 +- .../ModifyFlowProjectClusterSettingResult.cc | 9 +- emr/src/model/ModifyFlowProjectRequest.cc | 8 +- emr/src/model/ModifyFlowProjectResult.cc | 9 +- emr/src/model/ModifyFlowRequest.cc | 38 +- emr/src/model/ModifyFlowResult.cc | 9 +- .../ModifyFlowVariableCollectionRequest.cc | 4 +- .../ModifyFlowVariableCollectionResult.cc | 9 +- emr/src/model/ModifyHostPoolRequest.cc | 93 + emr/src/model/ModifyHostPoolResult.cc | 55 + emr/src/model/ModifyHpHostRequest.cc | 232 + emr/src/model/ModifyHpHostResult.cc | 55 + .../ModifyJobExecutionPlanFolderRequest.cc | 10 +- .../ModifyJobExecutionPlanFolderResult.cc | 9 +- .../ModifyJobExecutionPlanParamRequest.cc | 10 +- .../ModifyJobExecutionPlanParamResult.cc | 9 +- emr/src/model/ModifyJobRequest.cc | 20 +- emr/src/model/ModifyJobResult.cc | 9 +- emr/src/model/ModifyResourcePoolRequest.cc | 26 +- emr/src/model/ModifyResourcePoolResult.cc | 9 +- .../ModifyResourcePoolSchedulerTypeRequest.cc | 10 +- .../ModifyResourcePoolSchedulerTypeResult.cc | 9 +- emr/src/model/ModifyResourceQueueRequest.cc | 30 +- emr/src/model/ModifyResourceQueueResult.cc | 9 +- emr/src/model/ModifyScalingRuleRequest.cc | 52 +- emr/src/model/ModifyScalingRuleResult.cc | 9 +- .../model/ModifyScalingTaskGroupRequest.cc | 18 +- emr/src/model/ModifyScalingTaskGroupResult.cc | 9 +- emr/src/model/ModifyUserStatisticsRequest.cc | 20 +- emr/src/model/ModifyUserStatisticsResult.cc | 9 +- emr/src/model/OfflineKafkaBrokerRequest.cc | 93 + emr/src/model/OfflineKafkaBrokerResult.cc | 48 + .../model/OperateExistsNodeClusterRequest.cc | 52 +- .../model/OperateExistsNodeClusterResult.cc | 9 +- emr/src/model/PageListResourceUsersRequest.cc | 247 + emr/src/model/PageListResourceUsersResult.cc | 121 + emr/src/model/PageListUserGroupsRequest.cc | 225 + emr/src/model/PageListUserGroupsResult.cc | 113 + emr/src/model/PageListUsersRequest.cc | 225 + emr/src/model/PageListUsersResult.cc | 165 + emr/src/model/PlanComponentTopoRequest.cc | 157 + emr/src/model/PlanComponentTopoResult.cc | 74 + emr/src/model/PlanHostNameRequest.cc | 105 + emr/src/model/PlanHostNameResult.cc | 63 + emr/src/model/QueryAlarmHistoryRequest.cc | 16 +- emr/src/model/QueryAlarmHistoryResult.cc | 9 +- emr/src/model/QueryAlarmRulesRequest.cc | 8 +- emr/src/model/QueryAlarmRulesResult.cc | 9 +- emr/src/model/QueryInfoByTokenRequest.cc | 27 + emr/src/model/QueryInfoByTokenResult.cc | 62 + emr/src/model/QuerySlsMetricDataRequest.cc | 18 +- emr/src/model/QuerySlsMetricDataResult.cc | 9 +- .../model/QueryUserActionsPolicyRequest.cc | 237 + emr/src/model/QueryUserActionsPolicyResult.cc | 76 + emr/src/model/QueryUserPoliciesRequest.cc | 214 + emr/src/model/QueryUserPoliciesResult.cc | 76 + emr/src/model/ReassignKafkaRequest.cc | 94 + emr/src/model/ReassignKafkaResult.cc | 48 + emr/src/model/RefreshBackupListRequest.cc | 203 + emr/src/model/RefreshBackupListResult.cc | 160 + ...freshClusterResourcePoolForAdminRequest.cc | 93 + ...efreshClusterResourcePoolForAdminResult.cc | 62 + .../RefreshClusterResourcePoolRequest.cc | 10 +- .../model/RefreshClusterResourcePoolResult.cc | 9 +- .../model/ReleaseClusterHostGroupRequest.cc | 12 +- .../model/ReleaseClusterHostGroupResult.cc | 9 +- emr/src/model/ReleaseClusterRequest.cc | 10 +- emr/src/model/ReleaseClusterResult.cc | 9 +- emr/src/model/ReleaseETLJobRequest.cc | 19 +- emr/src/model/ReleaseETLJobResult.cc | 9 +- emr/src/model/RemoveBackupPlanRequest.cc | 203 + emr/src/model/RemoveBackupPlanResult.cc | 55 + emr/src/model/RemoveBackupRequest.cc | 215 + emr/src/model/RemoveBackupResult.cc | 160 + emr/src/model/RemoveBackupRuleRequest.cc | 203 + emr/src/model/RemoveBackupRuleResult.cc | 55 + emr/src/model/RemoveClusterHostsRequest.cc | 10 +- emr/src/model/RemoveClusterHostsResult.cc | 9 +- emr/src/model/RemoveHpHostRequest.cc | 71 + emr/src/model/RemoveHpHostResult.cc | 48 + .../RenderResourcePoolXmlForAdminRequest.cc | 93 + .../RenderResourcePoolXmlForAdminResult.cc | 55 + emr/src/model/RenderResourcePoolXmlRequest.cc | 10 +- emr/src/model/RenderResourcePoolXmlResult.cc | 9 +- emr/src/model/RerunFlowRequest.cc | 8 +- emr/src/model/RerunFlowResult.cc | 9 +- emr/src/model/ResizeClusterV2Request.cc | 56 +- emr/src/model/ResizeClusterV2Result.cc | 9 +- .../model/ResizeClusterWithHostPoolRequest.cc | 112 + .../model/ResizeClusterWithHostPoolResult.cc | 69 + .../model/ResolveETLJobSqlSchemaRequest.cc | 14 +- emr/src/model/ResolveETLJobSqlSchemaResult.cc | 9 +- emr/src/model/RestoreBackupRequest.cc | 214 + emr/src/model/RestoreBackupResult.cc | 160 + .../ResumeExecutionPlanInstanceRequest.cc | 8 +- .../ResumeExecutionPlanInstanceResult.cc | 9 +- .../ResumeExecutionPlanSchedulerRequest.cc | 8 +- .../ResumeExecutionPlanSchedulerResult.cc | 9 +- emr/src/model/ResumeFlowRequest.cc | 6 +- emr/src/model/ResumeFlowResult.cc | 9 +- .../RetryExecutionPlanInstanceRequest.cc | 12 +- .../model/RetryExecutionPlanInstanceResult.cc | 9 +- emr/src/model/RetryExecutionPlanRequest.cc | 10 +- emr/src/model/RetryExecutionPlanResult.cc | 9 +- emr/src/model/RetrySyncUserAccountRequest.cc | 237 + emr/src/model/RetrySyncUserAccountResult.cc | 62 + .../model/RunClusterServiceActionRequest.cc | 38 +- .../model/RunClusterServiceActionResult.cc | 9 +- emr/src/model/RunETLJobRequest.cc | 14 +- emr/src/model/RunETLJobResult.cc | 9 +- emr/src/model/RunExecutionPlanRequest.cc | 10 +- emr/src/model/RunExecutionPlanResult.cc | 9 +- emr/src/model/RunNoteParagraphsRequest.cc | 8 +- emr/src/model/RunNoteParagraphsResult.cc | 9 +- emr/src/model/RunOpsCommandRequest.cc | 18 +- emr/src/model/RunOpsCommandResult.cc | 9 +- emr/src/model/RunParagraphRequest.cc | 12 +- emr/src/model/RunParagraphResult.cc | 9 +- .../model/SaveBatchUserAccountInfoRequest.cc | 270 + .../model/SaveBatchUserAccountInfoResult.cc | 62 + emr/src/model/SaveParagraphRequest.cc | 12 +- emr/src/model/SaveParagraphResult.cc | 9 +- emr/src/model/SaveUserAccountInfoRequest.cc | 247 + emr/src/model/SaveUserAccountInfoResult.cc | 62 + emr/src/model/SearchLogRequest.cc | 26 +- emr/src/model/SearchLogResult.cc | 9 +- emr/src/model/StartFlowRequest.cc | 6 +- emr/src/model/StartFlowResult.cc | 9 +- .../StartKafkaBrokerDiskBalancerRequest.cc | 104 + .../StartKafkaBrokerDiskBalancerResult.cc | 48 + ...artKafkaPreferredReplicaElectionRequest.cc | 71 + ...tartKafkaPreferredReplicaElectionResult.cc | 48 + emr/src/model/StopParagraphRequest.cc | 10 +- emr/src/model/StopParagraphResult.cc | 9 +- emr/src/model/SubmitFlowJobRequest.cc | 12 +- emr/src/model/SubmitFlowJobResult.cc | 9 +- emr/src/model/SubmitFlowRequest.cc | 8 +- emr/src/model/SubmitFlowResult.cc | 23 +- .../SuspendExecutionPlanInstanceRequest.cc | 8 +- .../SuspendExecutionPlanInstanceResult.cc | 9 +- .../SuspendExecutionPlanSchedulerRequest.cc | 8 +- .../SuspendExecutionPlanSchedulerResult.cc | 9 +- emr/src/model/SuspendFlowRequest.cc | 6 +- emr/src/model/SuspendFlowResult.cc | 9 +- .../SyncDataSourceSchemaDatabaseRequest.cc | 12 +- .../SyncDataSourceSchemaDatabaseResult.cc | 9 +- .../model/SyncDataSourceSchemaTableRequest.cc | 14 +- .../model/SyncDataSourceSchemaTableResult.cc | 9 +- .../model/TerminateClusterOperationRequest.cc | 10 +- .../model/TerminateClusterOperationResult.cc | 9 +- emr/src/model/UpdateDataSourceRequest.cc | 14 +- emr/src/model/UpdateDataSourceResult.cc | 9 +- emr/src/model/UpdateETLJobRequest.cc | 150 +- emr/src/model/UpdateETLJobResult.cc | 9 +- emr/src/model/UpdateETLJobStageRequest.cc | 16 +- emr/src/model/UpdateETLJobStageResult.cc | 9 +- .../model/UpdateKafkaReassignParamRequest.cc | 82 + .../model/UpdateKafkaReassignParamResult.cc | 48 + emr/src/model/UpdateNavNodeRequest.cc | 14 +- emr/src/model/UpdateNavNodeResult.cc | 9 +- emr/src/model/UpdateProjectSettingRequest.cc | 12 +- emr/src/model/UpdateProjectSettingResult.cc | 9 +- emr/src/model/UpdateUserGroupRequest.cc | 248 + emr/src/model/UpdateUserGroupResult.cc | 62 + emr/src/model/UpdateUserRequest.cc | 289 + emr/src/model/UpdateUserResult.cc | 62 + emr/src/model/UpdateUserStatusRequest.cc | 214 + emr/src/model/UpdateUserStatusResult.cc | 62 + .../UpdateWorkspaceRepoSettingRequest.cc | 238 + .../model/UpdateWorkspaceRepoSettingResult.cc | 48 + .../UpdateWorkspaceResourceSettingRequest.cc | 214 + .../UpdateWorkspaceResourceSettingResult.cc | 48 + ess/CMakeLists.txt | 32 +- ess/include/alibabacloud/ess/EssClient.h | 64 +- .../model/CreateScalingConfigurationRequest.h | 12 + .../ess/model/CreateScalingGroupRequest.h | 60 +- .../ess/model/CreateScalingRuleRequest.h | 15 + .../ess/model/DescribeRegionsRequest.h | 3 + .../ess/model/DescribeRegionsResult.h | 2 + .../DescribeScalingConfigurationsResult.h | 3 + .../ess/model/DescribeScalingGroupsResult.h | 4 + .../ess/model/DescribeScalingRulesResult.h | 16 + .../ess/model/DescribeScheduledTasksResult.h | 2 + .../model/ModifyScalingConfigurationRequest.h | 9 + .../ess/model/ModifyScalingGroupRequest.h | 12 + .../ess/model/ModifyScalingRuleRequest.h | 15 + .../ess/model/ModifyScheduledTaskRequest.h | 6 + ess/src/EssClient.cc | 288 +- ess/src/model/AttachDBInstancesResult.cc | 9 +- ess/src/model/AttachInstancesResult.cc | 9 +- ess/src/model/AttachLoadBalancersResult.cc | 9 +- ess/src/model/AttachVServerGroupsResult.cc | 9 +- .../model/CompleteLifecycleActionResult.cc | 9 +- ess/src/model/CreateAlarmResult.cc | 9 +- ess/src/model/CreateLifecycleHookResult.cc | 9 +- .../CreateNotificationConfigurationResult.cc | 9 +- .../CreateScalingConfigurationRequest.cc | 45 + .../model/CreateScalingConfigurationResult.cc | 9 +- ess/src/model/CreateScalingGroupRequest.cc | 222 +- ess/src/model/CreateScalingGroupResult.cc | 9 +- ess/src/model/CreateScalingRuleRequest.cc | 55 + ess/src/model/CreateScalingRuleResult.cc | 9 +- ess/src/model/CreateScheduledTaskResult.cc | 9 +- .../DeactivateScalingConfigurationResult.cc | 9 +- ess/src/model/DeleteAlarmResult.cc | 9 +- ess/src/model/DeleteLifecycleHookResult.cc | 9 +- .../DeleteNotificationConfigurationResult.cc | 9 +- .../model/DeleteScalingConfigurationResult.cc | 9 +- ess/src/model/DeleteScalingGroupResult.cc | 9 +- ess/src/model/DeleteScalingRuleResult.cc | 9 +- ess/src/model/DeleteScheduledTaskResult.cc | 9 +- ess/src/model/DescribeAlarmsResult.cc | 9 +- ess/src/model/DescribeAlertConfigResult.cc | 9 +- .../model/DescribeCapacityHistoryResult.cc | 9 +- ess/src/model/DescribeLifecycleHooksResult.cc | 9 +- ess/src/model/DescribeLimitationResult.cc | 9 +- ...escribeNotificationConfigurationsResult.cc | 9 +- .../model/DescribeNotificationTypesResult.cc | 9 +- ess/src/model/DescribeRegionsRequest.cc | 11 + ess/src/model/DescribeRegionsResult.cc | 13 +- .../model/DescribeScalingActivitiesResult.cc | 9 +- .../DescribeScalingActivityDetailResult.cc | 9 +- .../DescribeScalingConfigurationsResult.cc | 16 +- ess/src/model/DescribeScalingGroupsResult.cc | 17 +- .../model/DescribeScalingInstancesResult.cc | 9 +- ess/src/model/DescribeScalingRulesResult.cc | 39 +- ess/src/model/DescribeScheduledTasksResult.cc | 13 +- ess/src/model/DetachDBInstancesResult.cc | 9 +- ess/src/model/DetachInstancesResult.cc | 9 +- ess/src/model/DetachLoadBalancersResult.cc | 9 +- ess/src/model/DetachVServerGroupsResult.cc | 9 +- ess/src/model/DisableAlarmResult.cc | 9 +- ess/src/model/DisableScalingGroupResult.cc | 9 +- ess/src/model/EnableAlarmResult.cc | 9 +- ess/src/model/EnableScalingGroupResult.cc | 9 +- ess/src/model/EnterStandbyResult.cc | 9 +- ess/src/model/ExecuteScalingRuleResult.cc | 9 +- ess/src/model/ExitStandbyResult.cc | 9 +- ess/src/model/ModifyAlarmResult.cc | 9 +- ess/src/model/ModifyAlertConfigResult.cc | 9 +- ess/src/model/ModifyLifecycleHookResult.cc | 9 +- .../ModifyNotificationConfigurationResult.cc | 9 +- .../ModifyScalingConfigurationRequest.cc | 34 + .../model/ModifyScalingConfigurationResult.cc | 9 +- ess/src/model/ModifyScalingGroupRequest.cc | 44 + ess/src/model/ModifyScalingGroupResult.cc | 9 +- ess/src/model/ModifyScalingRuleRequest.cc | 55 + ess/src/model/ModifyScalingRuleResult.cc | 9 +- ess/src/model/ModifyScheduledTaskRequest.cc | 22 + ess/src/model/ModifyScheduledTaskResult.cc | 9 +- ess/src/model/RebalanceInstancesResult.cc | 9 +- .../RecordLifecycleActionHeartbeatResult.cc | 9 +- ess/src/model/RemoveInstancesResult.cc | 9 +- ess/src/model/SetInstancesProtectionResult.cc | 9 +- ess/src/model/VerifyAuthenticationResult.cc | 9 +- ess/src/model/VerifyUserResult.cc | 9 +- gpdb/CMakeLists.txt | 28 +- gpdb/include/alibabacloud/gpdb/GpdbClient.h | 56 +- .../gpdb/model/UpgradeDBInstanceRequest.h | 66 + .../gpdb/model/UpgradeDBInstanceResult.h | 53 + gpdb/src/GpdbClient.cc | 198 +- .../model/AddBuDBInstanceRelationRequest.cc | 8 +- .../model/AddBuDBInstanceRelationResult.cc | 9 +- ...AllocateInstancePublicConnectionRequest.cc | 14 +- .../AllocateInstancePublicConnectionResult.cc | 9 +- gpdb/src/model/CreateAccountRequest.cc | 14 +- gpdb/src/model/CreateAccountResult.cc | 9 +- gpdb/src/model/CreateDBInstanceRequest.cc | 36 +- gpdb/src/model/CreateDBInstanceResult.cc | 9 +- gpdb/src/model/DeleteDBInstanceRequest.cc | 8 +- gpdb/src/model/DeleteDBInstanceResult.cc | 9 +- gpdb/src/model/DeleteDatabaseRequest.cc | 6 +- gpdb/src/model/DeleteDatabaseResult.cc | 9 +- gpdb/src/model/DescribeAccountsRequest.cc | 6 +- gpdb/src/model/DescribeAccountsResult.cc | 9 +- .../DescribeDBInstanceAttributeRequest.cc | 6 +- .../DescribeDBInstanceAttributeResult.cc | 9 +- .../DescribeDBInstanceIPArrayListRequest.cc | 4 +- .../DescribeDBInstanceIPArrayListResult.cc | 9 +- .../model/DescribeDBInstanceNetInfoRequest.cc | 4 +- .../model/DescribeDBInstanceNetInfoResult.cc | 9 +- .../DescribeDBInstancePerformanceRequest.cc | 10 +- .../DescribeDBInstancePerformanceResult.cc | 9 +- gpdb/src/model/DescribeDBInstancesRequest.cc | 20 +- gpdb/src/model/DescribeDBInstancesResult.cc | 9 +- gpdb/src/model/DescribeRdsVSwitchsRequest.cc | 18 +- gpdb/src/model/DescribeRdsVSwitchsResult.cc | 9 +- gpdb/src/model/DescribeRdsVpcsRequest.cc | 16 +- gpdb/src/model/DescribeRdsVpcsResult.cc | 9 +- gpdb/src/model/DescribeRegionsRequest.cc | 2 +- gpdb/src/model/DescribeRegionsResult.cc | 9 +- .../src/model/DescribeResourceUsageRequest.cc | 4 +- gpdb/src/model/DescribeResourceUsageResult.cc | 9 +- .../DescribeSQLCollectorPolicyRequest.cc | 4 +- .../model/DescribeSQLCollectorPolicyResult.cc | 9 +- gpdb/src/model/DescribeSQLLogFilesRequest.cc | 10 +- gpdb/src/model/DescribeSQLLogFilesResult.cc | 9 +- .../src/model/DescribeSQLLogRecordsRequest.cc | 20 +- gpdb/src/model/DescribeSQLLogRecordsResult.cc | 9 +- .../model/DescribeSlowLogRecordsRequest.cc | 16 +- .../src/model/DescribeSlowLogRecordsResult.cc | 9 +- gpdb/src/model/ListTagResourcesRequest.cc | 22 +- gpdb/src/model/ListTagResourcesResult.cc | 9 +- .../model/ModifyAccountDescriptionRequest.cc | 8 +- .../model/ModifyAccountDescriptionResult.cc | 9 +- .../ModifyDBInstanceConnectionModeRequest.cc | 6 +- .../ModifyDBInstanceConnectionModeResult.cc | 9 +- ...ModifyDBInstanceConnectionStringRequest.cc | 10 +- .../ModifyDBInstanceConnectionStringResult.cc | 9 +- .../ModifyDBInstanceDescriptionRequest.cc | 6 +- .../ModifyDBInstanceDescriptionResult.cc | 9 +- .../ModifyDBInstanceMaintainTimeRequest.cc | 8 +- .../ModifyDBInstanceMaintainTimeResult.cc | 9 +- .../ModifyDBInstanceNetworkTypeRequest.cc | 12 +- .../ModifyDBInstanceNetworkTypeResult.cc | 9 +- .../model/ModifySQLCollectorPolicyRequest.cc | 6 +- .../model/ModifySQLCollectorPolicyResult.cc | 9 +- gpdb/src/model/ModifySecurityIpsRequest.cc | 10 +- gpdb/src/model/ModifySecurityIpsResult.cc | 9 +- .../ReleaseInstancePublicConnectionRequest.cc | 6 +- .../ReleaseInstancePublicConnectionResult.cc | 9 +- gpdb/src/model/ResetAccountPasswordRequest.cc | 8 +- gpdb/src/model/ResetAccountPasswordResult.cc | 9 +- gpdb/src/model/RestartDBInstanceRequest.cc | 6 +- gpdb/src/model/RestartDBInstanceResult.cc | 9 +- .../model/SwitchDBInstanceNetTypeRequest.cc | 8 +- .../model/SwitchDBInstanceNetTypeResult.cc | 9 +- gpdb/src/model/TagResourcesRequest.cc | 20 +- gpdb/src/model/TagResourcesResult.cc | 9 +- gpdb/src/model/UntagResourcesRequest.cc | 20 +- gpdb/src/model/UntagResourcesResult.cc | 9 +- gpdb/src/model/UpgradeDBInstanceRequest.cc | 104 + gpdb/src/model/UpgradeDBInstanceResult.cc | 62 + green/CMakeLists.txt | 116 +- .../include/alibabacloud/green/GreenClient.h | 224 +- .../include/alibabacloud/green/GreenExport.h | 62 +- .../green/model/DescribeUserBizTypesRequest.h | 51 + .../green/model/DescribeUserBizTypesResult.h | 60 + green/src/GreenClient.cc | 900 +- .../src/model/CreatCustomOcrTemplateResult.cc | 9 +- green/src/model/CreateBizTypeResult.cc | 9 +- green/src/model/CreateCdiBagResult.cc | 9 +- green/src/model/CreateCdiBaseBagResult.cc | 9 +- green/src/model/CreateImageLibResult.cc | 9 +- green/src/model/CreateKeywordLibResult.cc | 9 +- green/src/model/CreateKeywordResult.cc | 9 +- .../src/model/CreateWebSiteInstanceResult.cc | 9 +- .../CreateWebsiteIndexPageBaselineResult.cc | 9 +- .../model/DeleteCustomOcrTemplateResult.cc | 9 +- green/src/model/DeleteImageFromLibResult.cc | 9 +- green/src/model/DeleteImageLibResult.cc | 9 +- green/src/model/DeleteKeywordLibResult.cc | 9 +- green/src/model/DeleteKeywordResult.cc | 9 +- .../model/DeleteNotificationContactsResult.cc | 9 +- green/src/model/DescribeAppInfoResult.cc | 9 +- .../model/DescribeAuditContentItemResult.cc | 9 +- green/src/model/DescribeAuditContentResult.cc | 9 +- green/src/model/DescribeAuditSettingResult.cc | 9 +- .../src/model/DescribeBizTypeSettingResult.cc | 9 +- green/src/model/DescribeBizTypesResult.cc | 9 +- .../model/DescribeCustomOcrTemplateResult.cc | 9 +- green/src/model/DescribeImageFromLibResult.cc | 9 +- green/src/model/DescribeImageLibResult.cc | 9 +- .../model/DescribeImageUploadInfoResult.cc | 9 +- green/src/model/DescribeKeywordLibResult.cc | 9 +- green/src/model/DescribeKeywordResult.cc | 9 +- .../DescribeNotificationSettingResult.cc | 9 +- green/src/model/DescribeOpenApiUsageResult.cc | 9 +- .../model/DescribeOssCallbackSettingResult.cc | 9 +- .../DescribeOssIncrementCheckSettingResult.cc | 9 +- .../DescribeOssIncrementOverviewResult.cc | 9 +- .../model/DescribeOssIncrementStatsResult.cc | 9 +- .../src/model/DescribeOssResultItemsResult.cc | 9 +- .../src/model/DescribeOssStockStatusResult.cc | 9 +- green/src/model/DescribeSdkUrlResult.cc | 9 +- .../DescribeUpdatePackageResultResult.cc | 9 +- green/src/model/DescribeUploadInfoResult.cc | 9 +- .../src/model/DescribeUserBizTypesRequest.cc | 49 + green/src/model/DescribeUserBizTypesResult.cc | 86 + green/src/model/DescribeUserStatusResult.cc | 9 +- green/src/model/DescribeViewContentResult.cc | 9 +- .../DescribeWebsiteIndexPageBaselineResult.cc | 9 +- .../model/DescribeWebsiteInstanceIdResult.cc | 9 +- .../DescribeWebsiteInstanceKeyUrlResult.cc | 9 +- .../model/DescribeWebsiteInstanceResult.cc | 9 +- .../DescribeWebsiteScanResultDetailResult.cc | 9 +- .../model/DescribeWebsiteScanResultResult.cc | 9 +- green/src/model/DescribeWebsiteStatResult.cc | 9 +- .../model/DescribeWebsiteVerifyInfoResult.cc | 9 +- green/src/model/ExportKeywordsResult.cc | 9 +- green/src/model/ExportOssResultResult.cc | 9 +- green/src/model/ImportKeywordsResult.cc | 9 +- green/src/model/MarkAuditContentItemResult.cc | 9 +- green/src/model/MarkAuditContentResult.cc | 9 +- green/src/model/MarkOssResultResult.cc | 9 +- .../src/model/MarkWebsiteScanResultResult.cc | 9 +- green/src/model/RefundCdiBagResult.cc | 9 +- green/src/model/RefundCdiBaseBagResult.cc | 9 +- .../src/model/RefundWebSiteInstanceResult.cc | 9 +- green/src/model/RenewWebSiteInstanceResult.cc | 9 +- .../src/model/SendVerifyCodeToEmailResult.cc | 9 +- .../src/model/SendVerifyCodeToPhoneResult.cc | 9 +- green/src/model/SendWebsiteFeedbackResult.cc | 9 +- green/src/model/UpdateAppPackageResult.cc | 9 +- green/src/model/UpdateAuditSettingResult.cc | 9 +- green/src/model/UpdateBizTypeSettingResult.cc | 9 +- .../model/UpdateCustomOcrTemplateResult.cc | 9 +- green/src/model/UpdateImageLibResult.cc | 9 +- green/src/model/UpdateKeywordLibResult.cc | 9 +- .../model/UpdateNotificationSettingResult.cc | 9 +- .../model/UpdateOssCallbackSettingResult.cc | 9 +- .../UpdateOssIncrementCheckSettingResult.cc | 9 +- green/src/model/UpdateOssStockStatusResult.cc | 9 +- .../UpdateWebsiteInstanceKeyUrlResult.cc | 9 +- .../src/model/UpdateWebsiteInstanceResult.cc | 9 +- .../UpdateWebsiteInstanceStatusResult.cc | 9 +- green/src/model/UpgradeCdiBaseBagResult.cc | 9 +- green/src/model/UploadImageToLibResult.cc | 9 +- .../model/VerifyCustomOcrTemplateResult.cc | 9 +- green/src/model/VerifyEmailResult.cc | 9 +- green/src/model/VerifyPhoneResult.cc | 9 +- .../src/model/VerifyWebsiteInstanceResult.cc | 9 +- hsm/src/model/ConfigNetworkRequest.cc | 12 +- hsm/src/model/ConfigNetworkResult.cc | 9 +- hsm/src/model/ConfigWhiteListRequest.cc | 8 +- hsm/src/model/ConfigWhiteListResult.cc | 9 +- hsm/src/model/CreateInstanceRequest.cc | 16 +- hsm/src/model/CreateInstanceResult.cc | 9 +- hsm/src/model/DescribeInstancesRequest.cc | 12 +- hsm/src/model/DescribeInstancesResult.cc | 9 +- hsm/src/model/DescribeRegionsRequest.cc | 4 +- hsm/src/model/DescribeRegionsResult.cc | 9 +- hsm/src/model/ModifyInstanceRequest.cc | 8 +- hsm/src/model/ModifyInstanceResult.cc | 9 +- hsm/src/model/ReleaseInstanceRequest.cc | 4 +- hsm/src/model/ReleaseInstanceResult.cc | 9 +- hsm/src/model/RenewInstanceRequest.cc | 10 +- hsm/src/model/RenewInstanceResult.cc | 9 +- httpdns/src/model/AddDomainRequest.cc | 6 +- httpdns/src/model/AddDomainResult.cc | 9 +- httpdns/src/model/DeleteDomainRequest.cc | 6 +- httpdns/src/model/DeleteDomainResult.cc | 9 +- httpdns/src/model/DescribeDomainsRequest.cc | 8 +- httpdns/src/model/DescribeDomainsResult.cc | 9 +- httpdns/src/model/GetAccountInfoRequest.cc | 2 +- httpdns/src/model/GetAccountInfoResult.cc | 9 +- .../model/GetResolveCountSummaryRequest.cc | 6 +- .../src/model/GetResolveCountSummaryResult.cc | 9 +- .../src/model/GetResolveStatisticsRequest.cc | 10 +- .../src/model/GetResolveStatisticsResult.cc | 9 +- httpdns/src/model/ListDomainsRequest.cc | 6 +- httpdns/src/model/ListDomainsResult.cc | 9 +- imagesearch/src/model/AddItemRequest.cc | 2 +- imagesearch/src/model/AddItemResult.cc | 9 +- imagesearch/src/model/DeleteItemRequest.cc | 2 +- imagesearch/src/model/DeleteItemResult.cc | 9 +- imagesearch/src/model/SearchItemRequest.cc | 2 +- imagesearch/src/model/SearchItemResult.cc | 9 +- imm/CMakeLists.txt | 548 +- imm/include/alibabacloud/imm/ImmClient.h | 944 +- imm/include/alibabacloud/imm/ImmExport.h | 62 +- .../imm/model/CompareFaceRequest.h | 88 +- .../imm/model/CompareFaceResult.h | 96 +- .../imm/model/CompareImageFacesRequest.h | 88 +- .../imm/model/CompareImageFacesResult.h | 96 +- .../imm/model/ConvertOfficeFormatRequest.h | 88 +- .../imm/model/ConvertOfficeFormatResult.h | 96 +- .../model/CreateCADConversionTaskRequest.h | 88 +- .../imm/model/CreateCADConversionTaskResult.h | 96 +- .../imm/model/CreateDocIndexTaskRequest.h | 88 +- .../imm/model/CreateDocIndexTaskResult.h | 96 +- .../imm/model/CreateFaceSetRequest.h | 88 +- .../imm/model/CreateFaceSetResult.h | 96 +- .../imm/model/CreateGroupFacesJobRequest.h | 88 +- .../imm/model/CreateGroupFacesJobResult.h | 96 +- .../model/CreateMergeFaceGroupsJobRequest.h | 88 +- .../model/CreateMergeFaceGroupsJobResult.h | 96 +- .../model/CreateOfficeConversionTaskRequest.h | 88 +- .../model/CreateOfficeConversionTaskResult.h | 96 +- .../model/CreatePornBatchDetectJobRequest.h | 88 +- .../model/CreatePornBatchDetectJobResult.h | 96 +- .../alibabacloud/imm/model/CreateSetRequest.h | 88 +- .../alibabacloud/imm/model/CreateSetResult.h | 96 +- .../imm/model/CreateTagJobRequest.h | 88 +- .../imm/model/CreateTagJobResult.h | 96 +- .../imm/model/CreateTagSetRequest.h | 88 +- .../imm/model/CreateTagSetResult.h | 96 +- .../imm/model/CreateVideoAnalyseTaskRequest.h | 88 +- .../imm/model/CreateVideoAnalyseTaskResult.h | 96 +- .../model/CreateVideoCompressTaskRequest.h | 88 +- .../imm/model/CreateVideoCompressTaskResult.h | 96 +- .../imm/model/DeleteDocIndexRequest.h | 88 +- .../imm/model/DeleteDocIndexResult.h | 96 +- .../imm/model/DeleteFaceJobRequest.h | 88 +- .../imm/model/DeleteFaceJobResult.h | 96 +- .../imm/model/DeleteFaceSearchGroupRequest.h | 88 +- .../imm/model/DeleteFaceSearchGroupResult.h | 96 +- .../model/DeleteFaceSearchImageByIdRequest.h | 88 +- .../model/DeleteFaceSearchImageByIdResult.h | 96 +- .../imm/model/DeleteFaceSearchUserRequest.h | 88 +- .../imm/model/DeleteFaceSearchUserResult.h | 96 +- .../imm/model/DeleteImageJobRequest.h | 88 +- .../imm/model/DeleteImageJobResult.h | 96 +- .../imm/model/DeleteImageRequest.h | 88 +- .../imm/model/DeleteImageResult.h | 96 +- .../model/DeleteOfficeConversionTaskRequest.h | 88 +- .../model/DeleteOfficeConversionTaskResult.h | 96 +- .../imm/model/DeletePhotoProcessTaskRequest.h | 88 +- .../imm/model/DeletePhotoProcessTaskResult.h | 96 +- .../model/DeletePornBatchDetectJobRequest.h | 88 +- .../model/DeletePornBatchDetectJobResult.h | 96 +- .../imm/model/DeleteProjectRequest.h | 88 +- .../imm/model/DeleteProjectResult.h | 96 +- .../alibabacloud/imm/model/DeleteSetRequest.h | 88 +- .../alibabacloud/imm/model/DeleteSetResult.h | 96 +- .../imm/model/DeleteTagByNameRequest.h | 88 +- .../imm/model/DeleteTagByNameResult.h | 96 +- .../imm/model/DeleteTagByUrlRequest.h | 88 +- .../imm/model/DeleteTagByUrlResult.h | 96 +- .../imm/model/DeleteTagJobRequest.h | 88 +- .../imm/model/DeleteTagJobResult.h | 96 +- .../imm/model/DeleteTagSetRequest.h | 88 +- .../imm/model/DeleteTagSetResult.h | 96 +- .../imm/model/DeleteVideoRequest.h | 88 +- .../imm/model/DeleteVideoResult.h | 96 +- .../imm/model/DeleteVideoTaskRequest.h | 88 +- .../imm/model/DeleteVideoTaskResult.h | 96 +- .../imm/model/DescribeRegionsRequest.h | 88 +- .../imm/model/DescribeRegionsResult.h | 96 +- .../imm/model/DetectClothesRequest.h | 88 +- .../imm/model/DetectClothesResult.h | 96 +- .../imm/model/DetectImageBodiesRequest.h | 88 +- .../imm/model/DetectImageBodiesResult.h | 96 +- .../imm/model/DetectImageCelebrityRequest.h | 88 +- .../imm/model/DetectImageCelebrityResult.h | 96 +- .../imm/model/DetectImageFacesRequest.h | 88 +- .../imm/model/DetectImageFacesResult.h | 96 +- .../imm/model/DetectImageLogosRequest.h | 88 +- .../imm/model/DetectImageLogosResult.h | 96 +- .../imm/model/DetectImageTagsRequest.h | 88 +- .../imm/model/DetectImageTagsResult.h | 96 +- .../imm/model/DetectImageTextsRequest.h | 88 +- .../imm/model/DetectImageTextsResult.h | 96 +- .../imm/model/DetectLogoRequest.h | 88 +- .../alibabacloud/imm/model/DetectLogoResult.h | 96 +- .../imm/model/DetectQRCodesRequest.h | 88 +- .../imm/model/DetectQRCodesResult.h | 96 +- .../alibabacloud/imm/model/DetectTagRequest.h | 88 +- .../alibabacloud/imm/model/DetectTagResult.h | 96 +- .../imm/model/FindImagesByTagNamesRequest.h | 88 +- .../imm/model/FindImagesByTagNamesResult.h | 96 +- .../imm/model/FindImagesRequest.h | 88 +- .../alibabacloud/imm/model/FindImagesResult.h | 96 +- .../imm/model/FindSimilarFacesRequest.h | 91 +- .../imm/model/FindSimilarFacesResult.h | 119 +- .../imm/model/GetDocIndexRequest.h | 88 +- .../imm/model/GetDocIndexResult.h | 96 +- .../imm/model/GetDocIndexTaskRequest.h | 88 +- .../imm/model/GetDocIndexTaskResult.h | 96 +- .../imm/model/GetFaceSearchGroupRequest.h | 88 +- .../imm/model/GetFaceSearchGroupResult.h | 96 +- .../imm/model/GetFaceSearchImageRequest.h | 88 +- .../imm/model/GetFaceSearchImageResult.h | 96 +- .../imm/model/GetFaceSearchUserRequest.h | 88 +- .../imm/model/GetFaceSearchUserResult.h | 96 +- .../imm/model/GetImageJobRequest.h | 88 +- .../imm/model/GetImageJobResult.h | 96 +- .../alibabacloud/imm/model/GetImageRequest.h | 88 +- .../alibabacloud/imm/model/GetImageResult.h | 96 +- .../imm/model/GetMediaMetaRequest.h | 88 +- .../imm/model/GetMediaMetaResult.h | 96 +- .../model/GetOfficeConversionTaskRequest.h | 88 +- .../imm/model/GetOfficeConversionTaskResult.h | 96 +- .../imm/model/GetPhotoProcessTaskRequest.h | 88 +- .../imm/model/GetPhotoProcessTaskResult.h | 96 +- .../imm/model/GetPornBatchDetectJobRequest.h | 88 +- .../imm/model/GetPornBatchDetectJobResult.h | 96 +- .../imm/model/GetProjectRequest.h | 88 +- .../alibabacloud/imm/model/GetProjectResult.h | 96 +- .../alibabacloud/imm/model/GetSetRequest.h | 88 +- .../alibabacloud/imm/model/GetSetResult.h | 96 +- .../alibabacloud/imm/model/GetTagJobRequest.h | 88 +- .../alibabacloud/imm/model/GetTagJobResult.h | 96 +- .../alibabacloud/imm/model/GetTagSetRequest.h | 88 +- .../alibabacloud/imm/model/GetTagSetResult.h | 96 +- .../alibabacloud/imm/model/GetVideoRequest.h | 88 +- .../alibabacloud/imm/model/GetVideoResult.h | 96 +- .../imm/model/GetVideoTaskRequest.h | 88 +- .../imm/model/GetVideoTaskResult.h | 96 +- .../imm/model/IndexImageRequest.h | 88 +- .../alibabacloud/imm/model/IndexImageResult.h | 96 +- .../alibabacloud/imm/model/IndexTagRequest.h | 88 +- .../alibabacloud/imm/model/IndexTagResult.h | 96 +- .../imm/model/IndexVideoRequest.h | 88 +- .../alibabacloud/imm/model/IndexVideoResult.h | 96 +- .../imm/model/ListFaceGroupsRequest.h | 88 +- .../imm/model/ListFaceGroupsResult.h | 96 +- .../model/ListFaceSearchGroupImagesRequest.h | 88 +- .../model/ListFaceSearchGroupImagesResult.h | 96 +- .../model/ListFaceSearchGroupUsersRequest.h | 88 +- .../model/ListFaceSearchGroupUsersResult.h | 96 +- .../imm/model/ListFaceSearchGroupsRequest.h | 88 +- .../imm/model/ListFaceSearchGroupsResult.h | 96 +- .../imm/model/ListImageJobsRequest.h | 88 +- .../imm/model/ListImageJobsResult.h | 96 +- .../imm/model/ListImagesRequest.h | 88 +- .../alibabacloud/imm/model/ListImagesResult.h | 96 +- .../model/ListOfficeConversionTaskRequest.h | 88 +- .../model/ListOfficeConversionTaskResult.h | 96 +- .../imm/model/ListPhotoProcessTasksRequest.h | 88 +- .../imm/model/ListPhotoProcessTasksResult.h | 96 +- .../model/ListPornBatchDetectJobsRequest.h | 88 +- .../imm/model/ListPornBatchDetectJobsResult.h | 96 +- .../imm/model/ListProjectAPIsRequest.h | 88 +- .../imm/model/ListProjectAPIsResult.h | 96 +- .../imm/model/ListProjectsRequest.h | 88 +- .../imm/model/ListProjectsResult.h | 96 +- .../imm/model/ListSetTagsRequest.h | 88 +- .../imm/model/ListSetTagsResult.h | 96 +- .../alibabacloud/imm/model/ListSetsRequest.h | 88 +- .../alibabacloud/imm/model/ListSetsResult.h | 96 +- .../imm/model/ListTagJobsRequest.h | 88 +- .../imm/model/ListTagJobsResult.h | 96 +- .../imm/model/ListTagNamesRequest.h | 88 +- .../imm/model/ListTagNamesResult.h | 96 +- .../imm/model/ListTagPhotosRequest.h | 88 +- .../imm/model/ListTagPhotosResult.h | 96 +- .../imm/model/ListTagSetsRequest.h | 88 +- .../imm/model/ListTagSetsResult.h | 96 +- .../imm/model/ListVideoAudiosRequest.h | 88 +- .../imm/model/ListVideoAudiosResult.h | 96 +- .../imm/model/ListVideoFramesRequest.h | 88 +- .../imm/model/ListVideoFramesResult.h | 96 +- .../imm/model/ListVideoTasksRequest.h | 88 +- .../imm/model/ListVideoTasksResult.h | 96 +- .../imm/model/ListVideosRequest.h | 88 +- .../alibabacloud/imm/model/ListVideosResult.h | 96 +- .../imm/model/PhotoProcessRequest.h | 88 +- .../imm/model/PhotoProcessResult.h | 96 +- .../imm/model/PutProjectRequest.h | 88 +- .../alibabacloud/imm/model/PutProjectResult.h | 96 +- .../imm/model/RegistFaceRequest.h | 88 +- .../alibabacloud/imm/model/RegistFaceResult.h | 96 +- .../imm/model/SearchDocIndexRequest.h | 88 +- .../imm/model/SearchDocIndexResult.h | 96 +- .../imm/model/SearchFaceRequest.h | 88 +- .../alibabacloud/imm/model/SearchFaceResult.h | 96 +- .../imm/model/UpdateDocIndexMetaRequest.h | 88 +- .../imm/model/UpdateDocIndexMetaResult.h | 96 +- .../imm/model/UpdateFaceGroupRequest.h | 88 +- .../imm/model/UpdateFaceGroupResult.h | 96 +- .../imm/model/UpdateImageRequest.h | 88 +- .../imm/model/UpdateImageResult.h | 96 +- .../imm/model/UpdateProjectRequest.h | 88 +- .../imm/model/UpdateProjectResult.h | 96 +- .../alibabacloud/imm/model/UpdateSetRequest.h | 88 +- .../alibabacloud/imm/model/UpdateSetResult.h | 96 +- imm/src/ImmClient.cc | 7160 ++++----- imm/src/model/CompareFaceRequest.cc | 54 +- imm/src/model/CompareFaceResult.cc | 93 +- imm/src/model/CompareImageFacesRequest.cc | 54 +- imm/src/model/CompareImageFacesResult.cc | 93 +- imm/src/model/ConvertOfficeFormatRequest.cc | 54 +- imm/src/model/ConvertOfficeFormatResult.cc | 93 +- .../model/CreateCADConversionTaskRequest.cc | 54 +- .../model/CreateCADConversionTaskResult.cc | 93 +- imm/src/model/CreateDocIndexTaskRequest.cc | 54 +- imm/src/model/CreateDocIndexTaskResult.cc | 93 +- imm/src/model/CreateFaceSetRequest.cc | 54 +- imm/src/model/CreateFaceSetResult.cc | 93 +- imm/src/model/CreateGroupFacesJobRequest.cc | 54 +- imm/src/model/CreateGroupFacesJobResult.cc | 93 +- .../model/CreateMergeFaceGroupsJobRequest.cc | 54 +- .../model/CreateMergeFaceGroupsJobResult.cc | 93 +- .../CreateOfficeConversionTaskRequest.cc | 54 +- .../model/CreateOfficeConversionTaskResult.cc | 93 +- .../model/CreatePornBatchDetectJobRequest.cc | 54 +- .../model/CreatePornBatchDetectJobResult.cc | 93 +- imm/src/model/CreateSetRequest.cc | 54 +- imm/src/model/CreateSetResult.cc | 93 +- imm/src/model/CreateTagJobRequest.cc | 54 +- imm/src/model/CreateTagJobResult.cc | 93 +- imm/src/model/CreateTagSetRequest.cc | 54 +- imm/src/model/CreateTagSetResult.cc | 93 +- .../model/CreateVideoAnalyseTaskRequest.cc | 54 +- imm/src/model/CreateVideoAnalyseTaskResult.cc | 93 +- .../model/CreateVideoCompressTaskRequest.cc | 54 +- .../model/CreateVideoCompressTaskResult.cc | 93 +- imm/src/model/DeleteDocIndexRequest.cc | 54 +- imm/src/model/DeleteDocIndexResult.cc | 93 +- imm/src/model/DeleteFaceJobRequest.cc | 54 +- imm/src/model/DeleteFaceJobResult.cc | 93 +- imm/src/model/DeleteFaceSearchGroupRequest.cc | 54 +- imm/src/model/DeleteFaceSearchGroupResult.cc | 93 +- .../model/DeleteFaceSearchImageByIdRequest.cc | 54 +- .../model/DeleteFaceSearchImageByIdResult.cc | 93 +- imm/src/model/DeleteFaceSearchUserRequest.cc | 54 +- imm/src/model/DeleteFaceSearchUserResult.cc | 93 +- imm/src/model/DeleteImageJobRequest.cc | 54 +- imm/src/model/DeleteImageJobResult.cc | 93 +- imm/src/model/DeleteImageRequest.cc | 54 +- imm/src/model/DeleteImageResult.cc | 93 +- .../DeleteOfficeConversionTaskRequest.cc | 54 +- .../model/DeleteOfficeConversionTaskResult.cc | 93 +- .../model/DeletePhotoProcessTaskRequest.cc | 54 +- imm/src/model/DeletePhotoProcessTaskResult.cc | 93 +- .../model/DeletePornBatchDetectJobRequest.cc | 54 +- .../model/DeletePornBatchDetectJobResult.cc | 93 +- imm/src/model/DeleteProjectRequest.cc | 54 +- imm/src/model/DeleteProjectResult.cc | 93 +- imm/src/model/DeleteSetRequest.cc | 54 +- imm/src/model/DeleteSetResult.cc | 93 +- imm/src/model/DeleteTagByNameRequest.cc | 54 +- imm/src/model/DeleteTagByNameResult.cc | 93 +- imm/src/model/DeleteTagByUrlRequest.cc | 54 +- imm/src/model/DeleteTagByUrlResult.cc | 93 +- imm/src/model/DeleteTagJobRequest.cc | 54 +- imm/src/model/DeleteTagJobResult.cc | 93 +- imm/src/model/DeleteTagSetRequest.cc | 54 +- imm/src/model/DeleteTagSetResult.cc | 93 +- imm/src/model/DeleteVideoRequest.cc | 54 +- imm/src/model/DeleteVideoResult.cc | 93 +- imm/src/model/DeleteVideoTaskRequest.cc | 54 +- imm/src/model/DeleteVideoTaskResult.cc | 93 +- imm/src/model/DescribeRegionsRequest.cc | 54 +- imm/src/model/DescribeRegionsResult.cc | 93 +- imm/src/model/DetectClothesRequest.cc | 54 +- imm/src/model/DetectClothesResult.cc | 93 +- imm/src/model/DetectImageBodiesRequest.cc | 54 +- imm/src/model/DetectImageBodiesResult.cc | 93 +- imm/src/model/DetectImageCelebrityRequest.cc | 54 +- imm/src/model/DetectImageCelebrityResult.cc | 93 +- imm/src/model/DetectImageFacesRequest.cc | 54 +- imm/src/model/DetectImageFacesResult.cc | 93 +- imm/src/model/DetectImageLogosRequest.cc | 54 +- imm/src/model/DetectImageLogosResult.cc | 93 +- imm/src/model/DetectImageTagsRequest.cc | 54 +- imm/src/model/DetectImageTagsResult.cc | 93 +- imm/src/model/DetectImageTextsRequest.cc | 54 +- imm/src/model/DetectImageTextsResult.cc | 93 +- imm/src/model/DetectLogoRequest.cc | 54 +- imm/src/model/DetectLogoResult.cc | 93 +- imm/src/model/DetectQRCodesRequest.cc | 54 +- imm/src/model/DetectQRCodesResult.cc | 93 +- imm/src/model/DetectTagRequest.cc | 54 +- imm/src/model/DetectTagResult.cc | 93 +- imm/src/model/FindImagesByTagNamesRequest.cc | 54 +- imm/src/model/FindImagesByTagNamesResult.cc | 93 +- imm/src/model/FindImagesRequest.cc | 54 +- imm/src/model/FindImagesResult.cc | 93 +- imm/src/model/FindSimilarFacesRequest.cc | 65 +- imm/src/model/FindSimilarFacesResult.cc | 133 +- imm/src/model/GetDocIndexRequest.cc | 54 +- imm/src/model/GetDocIndexResult.cc | 93 +- imm/src/model/GetDocIndexTaskRequest.cc | 54 +- imm/src/model/GetDocIndexTaskResult.cc | 93 +- imm/src/model/GetFaceSearchGroupRequest.cc | 54 +- imm/src/model/GetFaceSearchGroupResult.cc | 93 +- imm/src/model/GetFaceSearchImageRequest.cc | 54 +- imm/src/model/GetFaceSearchImageResult.cc | 93 +- imm/src/model/GetFaceSearchUserRequest.cc | 54 +- imm/src/model/GetFaceSearchUserResult.cc | 93 +- imm/src/model/GetImageJobRequest.cc | 54 +- imm/src/model/GetImageJobResult.cc | 93 +- imm/src/model/GetImageRequest.cc | 54 +- imm/src/model/GetImageResult.cc | 93 +- imm/src/model/GetMediaMetaRequest.cc | 54 +- imm/src/model/GetMediaMetaResult.cc | 93 +- .../model/GetOfficeConversionTaskRequest.cc | 54 +- .../model/GetOfficeConversionTaskResult.cc | 93 +- imm/src/model/GetPhotoProcessTaskRequest.cc | 54 +- imm/src/model/GetPhotoProcessTaskResult.cc | 93 +- imm/src/model/GetPornBatchDetectJobRequest.cc | 54 +- imm/src/model/GetPornBatchDetectJobResult.cc | 93 +- imm/src/model/GetProjectRequest.cc | 54 +- imm/src/model/GetProjectResult.cc | 93 +- imm/src/model/GetSetRequest.cc | 54 +- imm/src/model/GetSetResult.cc | 93 +- imm/src/model/GetTagJobRequest.cc | 54 +- imm/src/model/GetTagJobResult.cc | 93 +- imm/src/model/GetTagSetRequest.cc | 54 +- imm/src/model/GetTagSetResult.cc | 93 +- imm/src/model/GetVideoRequest.cc | 54 +- imm/src/model/GetVideoResult.cc | 93 +- imm/src/model/GetVideoTaskRequest.cc | 54 +- imm/src/model/GetVideoTaskResult.cc | 93 +- imm/src/model/IndexImageRequest.cc | 54 +- imm/src/model/IndexImageResult.cc | 93 +- imm/src/model/IndexTagRequest.cc | 54 +- imm/src/model/IndexTagResult.cc | 93 +- imm/src/model/IndexVideoRequest.cc | 54 +- imm/src/model/IndexVideoResult.cc | 93 +- imm/src/model/ListFaceGroupsRequest.cc | 54 +- imm/src/model/ListFaceGroupsResult.cc | 93 +- .../model/ListFaceSearchGroupImagesRequest.cc | 54 +- .../model/ListFaceSearchGroupImagesResult.cc | 93 +- .../model/ListFaceSearchGroupUsersRequest.cc | 54 +- .../model/ListFaceSearchGroupUsersResult.cc | 93 +- imm/src/model/ListFaceSearchGroupsRequest.cc | 54 +- imm/src/model/ListFaceSearchGroupsResult.cc | 93 +- imm/src/model/ListImageJobsRequest.cc | 54 +- imm/src/model/ListImageJobsResult.cc | 93 +- imm/src/model/ListImagesRequest.cc | 54 +- imm/src/model/ListImagesResult.cc | 93 +- .../model/ListOfficeConversionTaskRequest.cc | 54 +- .../model/ListOfficeConversionTaskResult.cc | 93 +- imm/src/model/ListPhotoProcessTasksRequest.cc | 54 +- imm/src/model/ListPhotoProcessTasksResult.cc | 93 +- .../model/ListPornBatchDetectJobsRequest.cc | 54 +- .../model/ListPornBatchDetectJobsResult.cc | 93 +- imm/src/model/ListProjectAPIsRequest.cc | 54 +- imm/src/model/ListProjectAPIsResult.cc | 93 +- imm/src/model/ListProjectsRequest.cc | 54 +- imm/src/model/ListProjectsResult.cc | 93 +- imm/src/model/ListSetTagsRequest.cc | 54 +- imm/src/model/ListSetTagsResult.cc | 93 +- imm/src/model/ListSetsRequest.cc | 54 +- imm/src/model/ListSetsResult.cc | 93 +- imm/src/model/ListTagJobsRequest.cc | 54 +- imm/src/model/ListTagJobsResult.cc | 93 +- imm/src/model/ListTagNamesRequest.cc | 54 +- imm/src/model/ListTagNamesResult.cc | 93 +- imm/src/model/ListTagPhotosRequest.cc | 54 +- imm/src/model/ListTagPhotosResult.cc | 93 +- imm/src/model/ListTagSetsRequest.cc | 54 +- imm/src/model/ListTagSetsResult.cc | 93 +- imm/src/model/ListVideoAudiosRequest.cc | 54 +- imm/src/model/ListVideoAudiosResult.cc | 93 +- imm/src/model/ListVideoFramesRequest.cc | 54 +- imm/src/model/ListVideoFramesResult.cc | 93 +- imm/src/model/ListVideoTasksRequest.cc | 54 +- imm/src/model/ListVideoTasksResult.cc | 93 +- imm/src/model/ListVideosRequest.cc | 54 +- imm/src/model/ListVideosResult.cc | 93 +- imm/src/model/PhotoProcessRequest.cc | 54 +- imm/src/model/PhotoProcessResult.cc | 93 +- imm/src/model/PutProjectRequest.cc | 54 +- imm/src/model/PutProjectResult.cc | 93 +- imm/src/model/RegistFaceRequest.cc | 54 +- imm/src/model/RegistFaceResult.cc | 93 +- imm/src/model/SearchDocIndexRequest.cc | 54 +- imm/src/model/SearchDocIndexResult.cc | 93 +- imm/src/model/SearchFaceRequest.cc | 54 +- imm/src/model/SearchFaceResult.cc | 93 +- imm/src/model/UpdateDocIndexMetaRequest.cc | 54 +- imm/src/model/UpdateDocIndexMetaResult.cc | 93 +- imm/src/model/UpdateFaceGroupRequest.cc | 54 +- imm/src/model/UpdateFaceGroupResult.cc | 93 +- imm/src/model/UpdateImageRequest.cc | 54 +- imm/src/model/UpdateImageResult.cc | 93 +- imm/src/model/UpdateProjectRequest.cc | 54 +- imm/src/model/UpdateProjectResult.cc | 93 +- imm/src/model/UpdateSetRequest.cc | 54 +- imm/src/model/UpdateSetResult.cc | 93 +- iot/CMakeLists.txt | 136 +- iot/include/alibabacloud/iot/IotClient.h | 264 +- iot/src/IotClient.cc | 1032 +- ivision/CMakeLists.txt | 76 +- .../alibabacloud/ivision/IvisionClient.h | 152 +- .../ivision/model/CreateFaceGroupRequest.h | 120 + .../ivision/model/CreateFaceGroupResult.h | 51 + .../ivision/model/CreateProjectRequest.h | 3 + .../model/CreateStreamPredictRequest.h | 9 + .../ivision/model/DeleteFaceGroupRequest.h | 120 + .../ivision/model/DeleteFaceGroupResult.h | 51 + .../ivision/model/DescribeFaceGroupsRequest.h | 126 + .../ivision/model/DescribeFaceGroupsResult.h | 65 + .../model/DescribePredictDatasRequest.h | 3 + .../DescribeStreamPredictResultRequest.h | 3 + .../model/DescribeStreamPredictResultResult.h | 33 +- .../model/DescribeStreamPredictsRequest.h | 3 + .../ivision/model/ImagePredictRequest.h | 123 + .../ivision/model/ImagePredictResult.h | 62 + .../ivision/model/RegisterFaceRequest.h | 126 + .../ivision/model/RegisterFaceResult.h | 65 + .../ivision/model/SearchFaceRequest.h | 132 + .../ivision/model/SearchFaceResult.h | 67 + .../ivision/model/UnregisterFaceRequest.h | 123 + .../ivision/model/UnregisterFaceResult.h | 53 + ivision/src/IvisionClient.cc | 630 +- ivision/src/model/CreateFaceGroupRequest.cc | 302 + ivision/src/model/CreateFaceGroupResult.cc | 55 + ivision/src/model/CreateProjectRequest.cc | 11 + ivision/src/model/CreateProjectResult.cc | 9 +- .../src/model/CreateStreamPredictRequest.cc | 33 + .../src/model/CreateStreamPredictResult.cc | 9 +- ivision/src/model/CreateTagResult.cc | 9 +- .../model/CreateTrainDataRegionTagResult.cc | 9 +- ivision/src/model/CreateTrainDataTagResult.cc | 9 +- .../CreateTrainDatasFromPredictionResult.cc | 9 +- .../model/CreateTrainDatasFromUrlsResult.cc | 9 +- .../src/model/CreateTrainDatasTagResult.cc | 9 +- ivision/src/model/CreateUploadTokenResult.cc | 9 +- ivision/src/model/DeleteFaceGroupRequest.cc | 302 + ivision/src/model/DeleteFaceGroupResult.cc | 55 + ivision/src/model/DeleteIterationResult.cc | 9 +- ivision/src/model/DeletePredictDatasResult.cc | 9 +- ivision/src/model/DeleteProjectResult.cc | 9 +- .../src/model/DeleteStreamPredictResult.cc | 9 +- ivision/src/model/DeleteTagResult.cc | 9 +- ivision/src/model/DeleteTrainDatasResult.cc | 9 +- .../src/model/DeleteTrainDatasTagResult.cc | 9 +- .../src/model/DescribeFaceGroupsRequest.cc | 324 + ivision/src/model/DescribeFaceGroupsResult.cc | 93 + ivision/src/model/DescribeIterationsResult.cc | 9 +- .../src/model/DescribePredictDatasRequest.cc | 11 + .../src/model/DescribePredictDatasResult.cc | 9 +- ivision/src/model/DescribeProjectsResult.cc | 9 +- .../DescribeStreamPredictResultRequest.cc | 11 + .../DescribeStreamPredictResultResult.cc | 57 +- .../model/DescribeStreamPredictsRequest.cc | 11 + .../src/model/DescribeStreamPredictsResult.cc | 9 +- ivision/src/model/DescribeTagsResult.cc | 9 +- .../model/DescribeTrainDatasByIdsResult.cc | 9 +- ivision/src/model/DescribeTrainDatasResult.cc | 9 +- .../src/model/DescribeTrainResultResult.cc | 9 +- ivision/src/model/ImagePredictRequest.cc | 313 + ivision/src/model/ImagePredictResult.cc | 70 + .../src/model/ModifyProjectAttributeResult.cc | 9 +- ivision/src/model/ModifyTagAttributeResult.cc | 9 +- ...ModifyTrainDataRegionTagAttributeResult.cc | 9 +- .../ModifyTrainDataTagAttributeResult.cc | 9 +- ivision/src/model/PredictImageResult.cc | 9 +- ivision/src/model/RegisterFaceRequest.cc | 324 + ivision/src/model/RegisterFaceResult.cc | 77 + ivision/src/model/SearchFaceRequest.cc | 346 + ivision/src/model/SearchFaceResult.cc | 84 + ivision/src/model/StartStreamPredictResult.cc | 9 +- ivision/src/model/StopStreamPredictResult.cc | 9 +- ivision/src/model/TrainProjectResult.cc | 9 +- ivision/src/model/UnregisterFaceRequest.cc | 313 + ivision/src/model/UnregisterFaceResult.cc | 62 + jarvis-public/src/Jarvis-publicClient.cc | 6 +- .../src/model/DescribeAttackEventRequest.cc | 18 +- .../src/model/DescribeAttackEventResult.cc | 9 +- .../src/model/DescribeAttackedIpRequest.cc | 18 +- .../src/model/DescribeAttackedIpResult.cc | 9 +- .../model/DescribeCountAttackEventRequest.cc | 18 +- .../model/DescribeCountAttackEventResult.cc | 9 +- .../src/model/DescribePhoneInfoRequest.cc | 8 +- .../src/model/DescribePhoneInfoResult.cc | 9 +- jarvis/CMakeLists.txt | 64 +- .../alibabacloud/jarvis/JarvisClient.h | 128 +- .../model/CreateIpWhiteBaselineRequest.h | 63 + .../model/CreateIpWhiteBaselineResult.h | 51 + .../model/CreateUidWhiteBaselineRequest.h | 63 + .../model/CreateUidWhiteBaselineResult.h | 51 + .../model/DeleteIpWhiteBaselineRequest.h | 60 + .../model/DeleteIpWhiteBaselineResult.h | 51 + .../model/DeleteUidWhiteBaselineRequest.h | 60 + .../model/DeleteUidWhiteBaselineResult.h | 51 + .../model/DeleteWhiteListConditionalRequest.h | 63 + .../model/DeleteWhiteListConditionalResult.h | 51 + .../DeleteWhiteListDbItemConditionalRequest.h | 63 + .../DeleteWhiteListDbItemConditionalResult.h | 51 + .../model/DescribeCpmcPunishListRequest.h | 3 + .../model/DescribeCpmcPunishListResult.h | 11 +- .../model/DescribeIpWhiteBaselineRequest.h | 69 + .../model/DescribeIpWhiteBaselineResult.h | 71 + .../model/DescribeUidWhiteBaselineRequest.h | 69 + .../model/DescribeUidWhiteBaselineResult.h | 71 + .../model/ModifyIpWhiteBaselineRequest.h | 66 + .../model/ModifyIpWhiteBaselineResult.h | 51 + .../model/ModifyUidWhiteBaselineRequest.h | 66 + .../model/ModifyUidWhiteBaselineResult.h | 51 + jarvis/src/JarvisClient.cc | 414 +- .../CreateAccessWhiteListGroupRequest.cc | 24 +- .../model/CreateAccessWhiteListGroupResult.cc | 9 +- .../src/model/CreateAllEcsWhiteListRequest.cc | 8 +- .../src/model/CreateAllEcsWhiteListResult.cc | 9 +- jarvis/src/model/CreateCdnIpRequest.cc | 10 +- jarvis/src/model/CreateCdnIpResult.cc | 9 +- .../src/model/CreateCdnSubscriptionRequest.cc | 10 +- .../src/model/CreateCdnSubscriptionResult.cc | 9 +- .../CreateConsoleAccessWhiteListRequest.cc | 24 +- .../CreateConsoleAccessWhiteListResult.cc | 9 +- .../model/CreateCpmcPunishFeedBackRequest.cc | 22 +- .../model/CreateCpmcPunishFeedBackResult.cc | 9 +- .../src/model/CreateIpWhiteBaselineRequest.cc | 93 + .../src/model/CreateIpWhiteBaselineResult.cc | 55 + .../model/CreateUidWhiteBaselineRequest.cc | 93 + .../src/model/CreateUidWhiteBaselineResult.cc | 55 + .../model/CreateUidWhiteListGroupRequest.cc | 22 +- .../model/CreateUidWhiteListGroupResult.cc | 9 +- .../DeleteAccessWhiteListGroupRequest.cc | 8 +- .../model/DeleteAccessWhiteListGroupResult.cc | 9 +- jarvis/src/model/DeleteCdnIpRequest.cc | 12 +- jarvis/src/model/DeleteCdnIpResult.cc | 9 +- .../src/model/DeleteCdnSubscriptionRequest.cc | 8 +- .../src/model/DeleteCdnSubscriptionResult.cc | 9 +- .../DeleteConsoleAccessWhiteListRequest.cc | 8 +- .../DeleteConsoleAccessWhiteListResult.cc | 9 +- .../src/model/DeleteIpWhiteBaselineRequest.cc | 82 + .../src/model/DeleteIpWhiteBaselineResult.cc | 55 + .../model/DeleteUidWhiteBaselineRequest.cc | 82 + .../src/model/DeleteUidWhiteBaselineResult.cc | 55 + .../model/DeleteUidWhiteListGroupRequest.cc | 8 +- .../model/DeleteUidWhiteListGroupResult.cc | 9 +- .../DeleteWhiteListConditionalRequest.cc | 93 + .../model/DeleteWhiteListConditionalResult.cc | 55 + ...DeleteWhiteListDbItemConditionalRequest.cc | 93 + .../DeleteWhiteListDbItemConditionalResult.cc | 55 + .../DescribeAccessWhiteListEipListRequest.cc | 6 +- .../DescribeAccessWhiteListEipListResult.cc | 9 +- .../DescribeAccessWhiteListGroupRequest.cc | 20 +- .../DescribeAccessWhiteListGroupResult.cc | 9 +- .../DescribeAccessWhiteListSlbListRequest.cc | 6 +- .../DescribeAccessWhiteListSlbListResult.cc | 9 +- .../DescribeAccessWhitelistEcsListRequest.cc | 6 +- .../DescribeAccessWhitelistEcsListResult.cc | 9 +- jarvis/src/model/DescribeCdnCertifyRequest.cc | 6 +- jarvis/src/model/DescribeCdnCertifyResult.cc | 9 +- jarvis/src/model/DescribeCdnIpListRequest.cc | 14 +- jarvis/src/model/DescribeCdnIpListResult.cc | 9 +- .../model/DescribeCdnSubscriptionRequest.cc | 14 +- .../model/DescribeCdnSubscriptionResult.cc | 9 +- jarvis/src/model/DescribeCdnVendorRequest.cc | 10 +- jarvis/src/model/DescribeCdnVendorResult.cc | 9 +- .../DescribeConsoleAccessWhiteListRequest.cc | 20 +- .../DescribeConsoleAccessWhiteListResult.cc | 9 +- .../model/DescribeCpmcPunishListRequest.cc | 25 +- .../src/model/DescribeCpmcPunishListResult.cc | 11 +- .../model/DescribeDdosDefenseInfoRequest.cc | 8 +- .../model/DescribeDdosDefenseInfoResult.cc | 9 +- .../src/model/DescribeEcsListPageRequest.cc | 10 +- jarvis/src/model/DescribeEcsListPageResult.cc | 9 +- .../model/DescribeIpWhiteBaselineRequest.cc | 115 + .../model/DescribeIpWhiteBaselineResult.cc | 92 + jarvis/src/model/DescribePhoneInfoRequest.cc | 8 +- jarvis/src/model/DescribePhoneInfoResult.cc | 9 +- jarvis/src/model/DescribePunishListRequest.cc | 16 +- jarvis/src/model/DescribePunishListResult.cc | 9 +- .../model/DescribeResetRecordListRequest.cc | 18 +- .../model/DescribeResetRecordListResult.cc | 9 +- .../DescribeResetRecordQueryCountRequest.cc | 6 +- .../DescribeResetRecordQueryCountResult.cc | 9 +- .../model/DescribeRiskListDetailRequest.cc | 22 +- .../src/model/DescribeRiskListDetailResult.cc | 9 +- jarvis/src/model/DescribeRiskTrendRequest.cc | 12 +- jarvis/src/model/DescribeRiskTrendResult.cc | 9 +- jarvis/src/model/DescribeSpecialEcsRequest.cc | 8 +- jarvis/src/model/DescribeSpecialEcsResult.cc | 9 +- jarvis/src/model/DescribeUidGcLevelRequest.cc | 6 +- jarvis/src/model/DescribeUidGcLevelResult.cc | 9 +- .../model/DescribeUidWhiteBaselineRequest.cc | 115 + .../model/DescribeUidWhiteBaselineResult.cc | 92 + .../model/DescribeUidWhiteListGroupRequest.cc | 18 +- .../model/DescribeUidWhiteListGroupResult.cc | 9 +- .../ModifyAccessWhiteListAutoShareRequest.cc | 14 +- .../ModifyAccessWhiteListAutoShareResult.cc | 9 +- .../src/model/ModifyIpWhiteBaselineRequest.cc | 104 + .../src/model/ModifyIpWhiteBaselineResult.cc | 55 + .../model/ModifyUidWhiteBaselineRequest.cc | 104 + .../src/model/ModifyUidWhiteBaselineResult.cc | 55 + .../ModifyUidWhiteListAutoShareRequest.cc | 14 +- .../ModifyUidWhiteListAutoShareResult.cc | 9 +- kms/CMakeLists.txt | 28 +- kms/include/alibabacloud/kms/KmsClient.h | 56 +- .../kms/model/CancelKeyDeletionRequest.h | 3 - .../kms/model/CreateAliasRequest.h | 3 - .../alibabacloud/kms/model/CreateKeyRequest.h | 6 +- .../alibabacloud/kms/model/CreateKeyResult.h | 1 + .../alibabacloud/kms/model/DecryptRequest.h | 3 - .../kms/model/DeleteAliasRequest.h | 3 - .../kms/model/DeleteKeyMaterialRequest.h | 3 - .../kms/model/DescribeKeyRequest.h | 3 - .../kms/model/DescribeKeyResult.h | 1 + .../kms/model/DescribeRegionsRequest.h | 3 - .../kms/model/DescribeServiceRequest.h | 45 + .../kms/model/DescribeServiceResult.h | 55 + .../kms/model/DisableKeyRequest.h | 3 - .../alibabacloud/kms/model/EnableKeyRequest.h | 3 - .../alibabacloud/kms/model/EncryptRequest.h | 3 - .../kms/model/GenerateDataKeyRequest.h | 3 - .../kms/model/GetParametersForImportRequest.h | 3 - .../kms/model/ImportKeyMaterialRequest.h | 3 - .../kms/model/ListAliasesByKeyIdRequest.h | 3 - .../kms/model/ListAliasesRequest.h | 3 - .../alibabacloud/kms/model/ListKeysRequest.h | 3 - .../kms/model/ListResourceTagsRequest.h | 3 - .../kms/model/ScheduleKeyDeletionRequest.h | 3 - .../kms/model/TagResourceRequest.h | 3 - .../kms/model/UntagResourceRequest.h | 3 - .../kms/model/UpdateAliasRequest.h | 3 - kms/src/KmsClient.cc | 252 +- kms/src/model/CancelKeyDeletionRequest.cc | 13 +- kms/src/model/CancelKeyDeletionResult.cc | 9 +- kms/src/model/CreateAliasRequest.cc | 15 +- kms/src/model/CreateAliasResult.cc | 9 +- kms/src/model/CreateKeyRequest.cc | 28 +- kms/src/model/CreateKeyResult.cc | 11 +- kms/src/model/DecryptRequest.cc | 15 +- kms/src/model/DecryptResult.cc | 9 +- kms/src/model/DeleteAliasRequest.cc | 13 +- kms/src/model/DeleteAliasResult.cc | 9 +- kms/src/model/DeleteKeyMaterialRequest.cc | 13 +- kms/src/model/DeleteKeyMaterialResult.cc | 9 +- kms/src/model/DescribeKeyRequest.cc | 13 +- kms/src/model/DescribeKeyResult.cc | 11 +- kms/src/model/DescribeRegionsRequest.cc | 11 - kms/src/model/DescribeRegionsResult.cc | 9 +- kms/src/model/DescribeServiceRequest.cc | 27 + kms/src/model/DescribeServiceResult.cc | 61 + kms/src/model/DisableKeyRequest.cc | 13 +- kms/src/model/DisableKeyResult.cc | 9 +- kms/src/model/EnableKeyRequest.cc | 13 +- kms/src/model/EnableKeyResult.cc | 9 +- kms/src/model/EncryptRequest.cc | 17 +- kms/src/model/EncryptResult.cc | 9 +- kms/src/model/GenerateDataKeyRequest.cc | 19 +- kms/src/model/GenerateDataKeyResult.cc | 9 +- .../model/GetParametersForImportRequest.cc | 17 +- kms/src/model/GetParametersForImportResult.cc | 9 +- kms/src/model/ImportKeyMaterialRequest.cc | 19 +- kms/src/model/ImportKeyMaterialResult.cc | 9 +- kms/src/model/ListAliasesByKeyIdRequest.cc | 17 +- kms/src/model/ListAliasesByKeyIdResult.cc | 9 +- kms/src/model/ListAliasesRequest.cc | 15 +- kms/src/model/ListAliasesResult.cc | 9 +- kms/src/model/ListKeysRequest.cc | 15 +- kms/src/model/ListKeysResult.cc | 9 +- kms/src/model/ListResourceTagsRequest.cc | 13 +- kms/src/model/ListResourceTagsResult.cc | 9 +- kms/src/model/ScheduleKeyDeletionRequest.cc | 15 +- kms/src/model/ScheduleKeyDeletionResult.cc | 9 +- kms/src/model/TagResourceRequest.cc | 15 +- kms/src/model/TagResourceResult.cc | 9 +- kms/src/model/UntagResourceRequest.cc | 15 +- kms/src/model/UntagResourceResult.cc | 9 +- kms/src/model/UpdateAliasRequest.cc | 15 +- kms/src/model/UpdateAliasResult.cc | 9 +- linkface/CMakeLists.txt | 16 +- .../alibabacloud/linkface/LinkFaceClient.h | 32 +- .../model/DeleteDeviceAllGroupRequest.h | 54 + .../model/DeleteDeviceAllGroupResult.h | 55 + .../linkface/model/DeleteDeviceGroupRequest.h | 57 + .../linkface/model/DeleteDeviceGroupResult.h | 55 + .../linkface/model/QueryAddUserInfoRequest.h | 3 + .../model/QuerySyncPicScheduleRequest.h | 3 + linkface/src/LinkFaceClient.cc | 150 +- linkface/src/model/CreateGroupRequest.cc | 2 +- linkface/src/model/CreateGroupResult.cc | 9 +- .../src/model/DeleteDeviceAllGroupRequest.cc | 60 + .../src/model/DeleteDeviceAllGroupResult.cc | 69 + .../src/model/DeleteDeviceGroupRequest.cc | 71 + linkface/src/model/DeleteDeviceGroupResult.cc | 69 + linkface/src/model/DeleteFaceRequest.cc | 4 +- linkface/src/model/DeleteFaceResult.cc | 9 +- linkface/src/model/DeleteGroupRequest.cc | 2 +- linkface/src/model/DeleteGroupResult.cc | 9 +- linkface/src/model/LinkFaceRequest.cc | 4 +- linkface/src/model/LinkFaceResult.cc | 9 +- linkface/src/model/QueryAddUserInfoRequest.cc | 17 +- linkface/src/model/QueryAddUserInfoResult.cc | 9 +- linkface/src/model/QueryAllGroupsRequest.cc | 4 +- linkface/src/model/QueryAllGroupsResult.cc | 9 +- .../src/model/QueryAuthenticationRequest.cc | 12 +- .../src/model/QueryAuthenticationResult.cc | 9 +- linkface/src/model/QueryFaceRequest.cc | 2 +- linkface/src/model/QueryFaceResult.cc | 9 +- linkface/src/model/QueryGroupUsersRequest.cc | 6 +- linkface/src/model/QueryGroupUsersResult.cc | 9 +- linkface/src/model/QueryLicensesRequest.cc | 6 +- linkface/src/model/QueryLicensesResult.cc | 9 +- .../src/model/QuerySyncPicScheduleRequest.cc | 17 +- .../src/model/QuerySyncPicScheduleResult.cc | 9 +- linkface/src/model/RegisterFaceRequest.cc | 8 +- linkface/src/model/RegisterFaceResult.cc | 9 +- linkface/src/model/SearchFaceRequest.cc | 4 +- linkface/src/model/SearchFaceResult.cc | 9 +- linkface/src/model/SyncFacePicturesRequest.cc | 8 +- linkface/src/model/SyncFacePicturesResult.cc | 9 +- linkface/src/model/UnlinkFaceRequest.cc | 4 +- linkface/src/model/UnlinkFaceResult.cc | 9 +- linkface/src/model/UpdateFaceRequest.cc | 6 +- linkface/src/model/UpdateFaceResult.cc | 9 +- live/CMakeLists.txt | 816 +- live/include/alibabacloud/live/LiveClient.h | 392 +- .../model/AddLiveRecordVodConfigRequest.h | 99 +- .../model/DeleteLiveRecordVodConfigRequest.h | 84 +- ...cribeLiveDomainBpsDataByTimeStampRequest.h | 135 + ...scribeLiveDomainBpsDataByTimeStampResult.h | 62 + ...LiveDomainFrameRateAndBitRateDataRequest.h | 135 + ...eLiveDomainFrameRateAndBitRateDataResult.h | 58 + .../DescribeLiveDomainOnlineUserNumRequest.h | 126 + .../DescribeLiveDomainOnlineUserNumResult.h | 65 + .../DescribeLiveRecordVodConfigsRequest.h | 96 +- live/src/LiveClient.cc | 1440 +- live/src/model/AddCasterComponentResult.cc | 9 +- .../AddCasterEpisodeGroupContentResult.cc | 9 +- live/src/model/AddCasterEpisodeGroupResult.cc | 9 +- live/src/model/AddCasterEpisodeResult.cc | 9 +- live/src/model/AddCasterLayoutResult.cc | 9 +- live/src/model/AddCasterProgramResult.cc | 9 +- .../src/model/AddCasterVideoResourceResult.cc | 9 +- .../AddCustomLiveStreamTranscodeResult.cc | 9 +- .../src/model/AddLiveAppRecordConfigResult.cc | 9 +- .../model/AddLiveAppSnapshotConfigResult.cc | 9 +- .../model/AddLiveDetectNotifyConfigResult.cc | 9 +- live/src/model/AddLiveDomainMappingResult.cc | 9 +- live/src/model/AddLiveDomainResult.cc | 9 +- .../AddLivePullStreamInfoConfigResult.cc | 9 +- .../model/AddLiveRecordNotifyConfigResult.cc | 9 +- .../model/AddLiveRecordVodConfigRequest.cc | 327 +- .../src/model/AddLiveRecordVodConfigResult.cc | 9 +- .../AddLiveSnapshotDetectPornConfigResult.cc | 9 +- .../src/model/AddLiveStreamTranscodeResult.cc | 9 +- live/src/model/AddTrancodeSEIResult.cc | 9 +- live/src/model/AllowPushStreamResult.cc | 9 +- live/src/model/ApplyBoardTokenResult.cc | 9 +- live/src/model/ApplyRecordTokenResult.cc | 9 +- .../BatchDeleteLiveDomainConfigsResult.cc | 9 +- .../model/BatchSetLiveDomainConfigsResult.cc | 9 +- live/src/model/CompleteBoardRecordResult.cc | 9 +- live/src/model/CompleteBoardResult.cc | 9 +- live/src/model/CopyCasterResult.cc | 9 +- live/src/model/CopyCasterSceneConfigResult.cc | 9 +- live/src/model/CreateBoardResult.cc | 9 +- live/src/model/CreateCasterResult.cc | 9 +- .../CreateLiveStreamRecordIndexFilesResult.cc | 9 +- live/src/model/CreateRoomResult.cc | 9 +- live/src/model/DeleteBoardResult.cc | 9 +- live/src/model/DeleteCasterComponentResult.cc | 9 +- .../model/DeleteCasterEpisodeGroupResult.cc | 9 +- live/src/model/DeleteCasterEpisodeResult.cc | 9 +- live/src/model/DeleteCasterLayoutResult.cc | 9 +- live/src/model/DeleteCasterProgramResult.cc | 9 +- live/src/model/DeleteCasterResult.cc | 9 +- .../model/DeleteCasterSceneConfigResult.cc | 9 +- .../model/DeleteCasterVideoResourceResult.cc | 9 +- .../model/DeleteLiveAppRecordConfigResult.cc | 9 +- .../DeleteLiveAppSnapshotConfigResult.cc | 9 +- .../DeleteLiveDetectNotifyConfigResult.cc | 9 +- .../model/DeleteLiveDomainMappingResult.cc | 9 +- live/src/model/DeleteLiveDomainResult.cc | 9 +- ...eleteLiveLazyPullStreamInfoConfigResult.cc | 9 +- .../DeleteLivePullStreamInfoConfigResult.cc | 9 +- .../DeleteLiveRecordNotifyConfigResult.cc | 9 +- .../model/DeleteLiveRecordVodConfigRequest.cc | 272 +- .../model/DeleteLiveRecordVodConfigResult.cc | 9 +- ...eleteLiveSnapshotDetectPornConfigResult.cc | 9 +- .../model/DeleteLiveStreamTranscodeResult.cc | 9 +- .../DeleteLiveStreamsNotifyUrlConfigResult.cc | 9 +- live/src/model/DeleteRoomResult.cc | 9 +- live/src/model/DescribeBoardEventsResult.cc | 9 +- live/src/model/DescribeBoardSnapshotResult.cc | 9 +- live/src/model/DescribeBoardsResult.cc | 9 +- .../src/model/DescribeCasterChannelsResult.cc | 9 +- .../model/DescribeCasterComponentsResult.cc | 9 +- live/src/model/DescribeCasterConfigResult.cc | 9 +- live/src/model/DescribeCasterLayoutsResult.cc | 9 +- live/src/model/DescribeCasterProgramResult.cc | 9 +- live/src/model/DescribeCasterRtcInfoResult.cc | 9 +- .../model/DescribeCasterSceneAudioResult.cc | 9 +- live/src/model/DescribeCasterScenesResult.cc | 9 +- .../model/DescribeCasterStreamUrlResult.cc | 9 +- .../DescribeCasterVideoResourcesResult.cc | 9 +- live/src/model/DescribeCastersResult.cc | 9 +- .../DescribeForbidPushStreamRoomListResult.cc | 9 +- ...cribeHlsLiveStreamRealTimeBpsDataResult.cc | 9 +- .../DescribeLiveCertificateDetailResult.cc | 9 +- .../DescribeLiveCertificateListResult.cc | 9 +- .../DescribeLiveDetectNotifyConfigResult.cc | 9 +- ...ribeLiveDomainBpsDataByTimeStampRequest.cc | 357 + ...cribeLiveDomainBpsDataByTimeStampResult.cc | 81 + .../model/DescribeLiveDomainBpsDataResult.cc | 9 +- .../model/DescribeLiveDomainConfigsResult.cc | 9 +- .../model/DescribeLiveDomainDetailResult.cc | 9 +- ...iveDomainFrameRateAndBitRateDataRequest.cc | 357 + ...LiveDomainFrameRateAndBitRateDataResult.cc | 67 + .../model/DescribeLiveDomainMappingResult.cc | 9 +- .../DescribeLiveDomainOnlineUserNumRequest.cc | 324 + .../DescribeLiveDomainOnlineUserNumResult.cc | 85 + ...DescribeLiveDomainRealTimeBpsDataResult.cc | 9 +- ...ibeLiveDomainRealTimeHttpCodeDataResult.cc | 9 +- ...ribeLiveDomainRealTimeTrafficDataResult.cc | 9 +- .../DescribeLiveDomainRecordDataResult.cc | 9 +- .../DescribeLiveDomainSnapshotDataResult.cc | 9 +- .../DescribeLiveDomainTrafficDataResult.cc | 9 +- .../DescribeLiveDomainTranscodeDataResult.cc | 9 +- .../DescribeLiveLazyPullStreamConfigResult.cc | 9 +- .../DescribeLivePullStreamConfigResult.cc | 9 +- .../model/DescribeLiveRecordConfigResult.cc | 9 +- .../DescribeLiveRecordNotifyConfigResult.cc | 9 +- .../DescribeLiveRecordVodConfigsRequest.cc | 316 +- .../DescribeLiveRecordVodConfigsResult.cc | 9 +- .../model/DescribeLiveSnapshotConfigResult.cc | 9 +- ...cribeLiveSnapshotDetectPornConfigResult.cc | 9 +- .../DescribeLiveStreamBitRateDataResult.cc | 9 +- .../model/DescribeLiveStreamCountResult.cc | 9 +- .../DescribeLiveStreamDelayConfigResult.cc | 9 +- .../DescribeLiveStreamHistoryUserNumResult.cc | 9 +- .../DescribeLiveStreamOnlineUserNumResult.cc | 9 +- ...eLiveStreamOptimizedFeatureConfigResult.cc | 9 +- .../DescribeLiveStreamRecordContentResult.cc | 9 +- ...DescribeLiveStreamRecordIndexFileResult.cc | 9 +- ...escribeLiveStreamRecordIndexFilesResult.cc | 9 +- .../DescribeLiveStreamSnapshotInfoResult.cc | 9 +- .../DescribeLiveStreamTranscodeInfoResult.cc | 9 +- ...cribeLiveStreamTranscodeStreamNumResult.cc | 9 +- .../DescribeLiveStreamsBlockListResult.cc | 9 +- ...DescribeLiveStreamsControlHistoryResult.cc | 9 +- ...iveStreamsFrameRateAndBitRateDataResult.cc | 9 +- ...escribeLiveStreamsNotifyUrlConfigResult.cc | 9 +- .../DescribeLiveStreamsOnlineListResult.cc | 9 +- .../DescribeLiveStreamsPublishListResult.cc | 9 +- .../DescribeLiveTopDomainsByFlowResult.cc | 9 +- .../model/DescribeLiveUserDomainsResult.cc | 9 +- live/src/model/DescribeRecordResult.cc | 9 +- live/src/model/DescribeRecordsResult.cc | 9 +- .../DescribeRoomKickoutUserListResult.cc | 9 +- live/src/model/DescribeRoomListResult.cc | 9 +- live/src/model/DescribeRoomStatusResult.cc | 9 +- live/src/model/DescribeUpBpsPeakDataResult.cc | 9 +- .../model/DescribeUpBpsPeakOfLineResult.cc | 9 +- .../DescribeUpPeakPublishStreamDataResult.cc | 9 +- live/src/model/EffectCasterUrgentResult.cc | 9 +- .../model/EffectCasterVideoResourceResult.cc | 9 +- live/src/model/ForbidLiveStreamResult.cc | 9 +- live/src/model/ForbidPushStreamResult.cc | 9 +- live/src/model/JoinBoardResult.cc | 9 +- live/src/model/ModifyCasterComponentResult.cc | 9 +- live/src/model/ModifyCasterEpisodeResult.cc | 9 +- live/src/model/ModifyCasterLayoutResult.cc | 9 +- live/src/model/ModifyCasterProgramResult.cc | 9 +- .../model/ModifyCasterVideoResourceResult.cc | 9 +- .../ModifyLiveDomainSchdmByPropertyResult.cc | 9 +- live/src/model/RealTimeRecordCommandResult.cc | 9 +- .../model/RealTimeSnapshotCommandResult.cc | 9 +- live/src/model/ResumeLiveStreamResult.cc | 9 +- live/src/model/SendRoomNotificationResult.cc | 9 +- .../model/SendRoomUserNotificationResult.cc | 9 +- live/src/model/SetBoardCallbackResult.cc | 9 +- live/src/model/SetCasterChannelResult.cc | 9 +- live/src/model/SetCasterConfigResult.cc | 9 +- live/src/model/SetCasterSceneConfigResult.cc | 9 +- .../model/SetLiveDomainCertificateResult.cc | 9 +- .../SetLiveLazyPullStreamInfoConfigResult.cc | 9 +- .../model/SetLiveStreamDelayConfigResult.cc | 9 +- ...tLiveStreamOptimizedFeatureConfigResult.cc | 9 +- .../SetLiveStreamsNotifyUrlConfigResult.cc | 9 +- live/src/model/StartBoardRecordResult.cc | 9 +- live/src/model/StartCasterResult.cc | 9 +- live/src/model/StartCasterSceneResult.cc | 9 +- live/src/model/StartLiveDomainResult.cc | 9 +- live/src/model/StartLiveIndexResult.cc | 9 +- live/src/model/StopCasterResult.cc | 9 +- live/src/model/StopCasterSceneResult.cc | 9 +- live/src/model/StopLiveDomainResult.cc | 9 +- live/src/model/StopLiveIndexResult.cc | 9 +- live/src/model/UpdateBoardCallbackResult.cc | 9 +- live/src/model/UpdateBoardResult.cc | 9 +- .../src/model/UpdateCasterSceneAudioResult.cc | 9 +- .../model/UpdateCasterSceneConfigResult.cc | 9 +- .../UpdateLiveAppSnapshotConfigResult.cc | 9 +- .../UpdateLiveDetectNotifyConfigResult.cc | 9 +- .../UpdateLiveRecordNotifyConfigResult.cc | 9 +- ...pdateLiveSnapshotDetectPornConfigResult.cc | 9 +- .../model/UpdateLiveTopLevelDomainResult.cc | 9 +- lubancloud/CMakeLists.txt | 8 +- .../lubancloud/LubancloudClient.h | 16 +- lubancloud/src/LubancloudClient.cc | 78 +- .../src/model/BuyOriginPicturesRequest.cc | 18 +- .../src/model/BuyOriginPicturesResult.cc | 9 +- lubancloud/src/model/GetStylesRequest.cc | 2 +- lubancloud/src/model/GetStylesResult.cc | 9 +- .../src/model/QueryCutoutTaskResultRequest.cc | 18 +- .../src/model/QueryCutoutTaskResultResult.cc | 9 +- .../model/QueryGenerateTaskResultRequest.cc | 18 +- .../model/QueryGenerateTaskResultResult.cc | 9 +- .../src/model/SubmitCutoutTaskRequest.cc | 18 +- .../src/model/SubmitCutoutTaskResult.cc | 9 +- .../src/model/SubmitGenerateTaskRequest.cc | 34 +- .../src/model/SubmitGenerateTaskResult.cc | 9 +- mopen/CMakeLists.txt | 8 +- .../include/alibabacloud/mopen/MoPenClient.h | 16 +- mopen/src/MoPenClient.cc | 72 +- mopen/src/model/MoPenAddGroupMemberRequest.cc | 4 +- mopen/src/model/MoPenAddGroupMemberResult.cc | 9 +- mopen/src/model/MoPenBindIsvRequest.cc | 4 +- mopen/src/model/MoPenBindIsvResult.cc | 9 +- mopen/src/model/MoPenCreateDeviceRequest.cc | 4 +- mopen/src/model/MoPenCreateDeviceResult.cc | 9 +- .../model/MoPenDeleteGroupMemberRequest.cc | 4 +- .../src/model/MoPenDeleteGroupMemberResult.cc | 9 +- mopen/src/model/MoPenDeleteGroupRequest.cc | 2 +- mopen/src/model/MoPenDeleteGroupResult.cc | 9 +- mopen/src/model/MoPenDoRecognizeRequest.cc | 14 +- mopen/src/model/MoPenDoRecognizeResult.cc | 9 +- mopen/src/model/MoPenFindGroupRequest.cc | 2 +- mopen/src/model/MoPenFindGroupResult.cc | 9 +- mopen/src/model/MoPenQueryCanvasRequest.cc | 8 +- mopen/src/model/MoPenQueryCanvasResult.cc | 9 +- .../src/model/MoPenSendMqttMessageRequest.cc | 4 +- mopen/src/model/MoPenSendMqttMessageResult.cc | 9 +- mopen/src/model/MopenCreateGroupRequest.cc | 2 +- mopen/src/model/MopenCreateGroupResult.cc | 9 +- mts/CMakeLists.txt | 220 +- mts/include/alibabacloud/mts/MtsClient.h | 440 +- .../DescribeMtsUserResourcePackageRequest.h | 51 + .../DescribeMtsUserResourcePackageResult.h | 60 + .../mts/model/QueryCoverJobListRequest.h | 18 + .../mts/model/QueryCoverJobListResult.h | 2 + .../mts/model/QueryFpCompareJobListRequest.h | 63 + .../mts/model/QueryFpCompareJobListResult.h | 148 + .../model/QueryMediaCensorJobDetailResult.h | 3 +- .../model/QueryMediaCensorJobListRequest.h | 81 + .../mts/model/QueryMediaCensorJobListResult.h | 153 + .../mts/model/QuerySnapshotJobListRequest.h | 18 + .../mts/model/QuerySnapshotJobListResult.h | 2 + .../mts/model/SubmitBeautifyJobsRequest.h | 72 + .../mts/model/SubmitBeautifyJobsResult.h | 88 + .../mts/model/SubmitFpCompareJobRequest.h | 78 + .../mts/model/SubmitFpCompareJobResult.h | 51 + mts/src/MtsClient.cc | 1440 +- mts/src/model/ActivateMediaWorkflowRequest.cc | 12 +- mts/src/model/ActivateMediaWorkflowResult.cc | 9 +- mts/src/model/AddAsrPipelineRequest.cc | 16 +- mts/src/model/AddAsrPipelineResult.cc | 9 +- mts/src/model/AddCategoryRequest.cc | 14 +- mts/src/model/AddCategoryResult.cc | 9 +- mts/src/model/AddCensorPipelineRequest.cc | 16 +- mts/src/model/AddCensorPipelineResult.cc | 9 +- mts/src/model/AddCoverPipelineRequest.cc | 18 +- mts/src/model/AddCoverPipelineResult.cc | 9 +- mts/src/model/AddMCTemplateRequest.cc | 32 +- mts/src/model/AddMCTemplateResult.cc | 9 +- mts/src/model/AddMediaRequest.cc | 30 +- mts/src/model/AddMediaResult.cc | 9 +- mts/src/model/AddMediaTagRequest.cc | 14 +- mts/src/model/AddMediaTagResult.cc | 9 +- mts/src/model/AddMediaWorkflowRequest.cc | 16 +- mts/src/model/AddMediaWorkflowResult.cc | 9 +- mts/src/model/AddPipelineRequest.cc | 20 +- mts/src/model/AddPipelineResult.cc | 9 +- mts/src/model/AddPornPipelineRequest.cc | 16 +- mts/src/model/AddPornPipelineResult.cc | 9 +- mts/src/model/AddTemplateRequest.cc | 22 +- mts/src/model/AddTemplateResult.cc | 9 +- mts/src/model/AddTerrorismPipelineRequest.cc | 16 +- mts/src/model/AddTerrorismPipelineResult.cc | 9 +- mts/src/model/AddWaterMarkTemplateRequest.cc | 14 +- mts/src/model/AddWaterMarkTemplateResult.cc | 9 +- mts/src/model/BindInputBucketRequest.cc | 14 +- mts/src/model/BindInputBucketResult.cc | 9 +- mts/src/model/BindOutputBucketRequest.cc | 14 +- mts/src/model/BindOutputBucketResult.cc | 9 +- mts/src/model/CancelJobRequest.cc | 12 +- mts/src/model/CancelJobResult.cc | 9 +- mts/src/model/CategoryTreeRequest.cc | 10 +- mts/src/model/CategoryTreeResult.cc | 9 +- mts/src/model/CheckResourceRequest.cc | 28 +- mts/src/model/CheckResourceResult.cc | 9 +- mts/src/model/CreateMcuTemplateRequest.cc | 12 +- mts/src/model/CreateMcuTemplateResult.cc | 9 +- mts/src/model/CreateSessionRequest.cc | 16 +- mts/src/model/CreateSessionResult.cc | 9 +- .../model/DeactivateMediaWorkflowRequest.cc | 12 +- .../model/DeactivateMediaWorkflowResult.cc | 9 +- mts/src/model/DecryptKeyRequest.cc | 14 +- mts/src/model/DecryptKeyResult.cc | 9 +- mts/src/model/DeleteCategoryRequest.cc | 12 +- mts/src/model/DeleteCategoryResult.cc | 9 +- mts/src/model/DeleteMCTemplateRequest.cc | 12 +- mts/src/model/DeleteMCTemplateResult.cc | 9 +- mts/src/model/DeleteMcuJobRequest.cc | 12 +- mts/src/model/DeleteMcuJobResult.cc | 9 +- mts/src/model/DeleteMcuTemplateRequest.cc | 12 +- mts/src/model/DeleteMcuTemplateResult.cc | 9 +- mts/src/model/DeleteMediaRequest.cc | 12 +- mts/src/model/DeleteMediaResult.cc | 9 +- mts/src/model/DeleteMediaTagRequest.cc | 14 +- mts/src/model/DeleteMediaTagResult.cc | 9 +- mts/src/model/DeleteMediaWorkflowRequest.cc | 12 +- mts/src/model/DeleteMediaWorkflowResult.cc | 9 +- mts/src/model/DeletePipelineRequest.cc | 12 +- mts/src/model/DeletePipelineResult.cc | 9 +- mts/src/model/DeleteTemplateRequest.cc | 12 +- mts/src/model/DeleteTemplateResult.cc | 9 +- .../model/DeleteWaterMarkTemplateRequest.cc | 12 +- .../model/DeleteWaterMarkTemplateResult.cc | 9 +- .../DescribeMtsUserResourcePackageRequest.cc | 49 + .../DescribeMtsUserResourcePackageResult.cc | 71 + mts/src/model/GetLicenseRequest.cc | 20 +- mts/src/model/GetLicenseResult.cc | 9 +- mts/src/model/GetPackageRequest.cc | 12 +- mts/src/model/GetPackageResult.cc | 9 +- mts/src/model/ListAllCategoryRequest.cc | 10 +- mts/src/model/ListAllCategoryResult.cc | 9 +- mts/src/model/ListAllMediaBucketRequest.cc | 14 +- mts/src/model/ListAllMediaBucketResult.cc | 9 +- mts/src/model/ListAsrPipelineRequest.cc | 16 +- mts/src/model/ListAsrPipelineResult.cc | 9 +- mts/src/model/ListCensorPipelineRequest.cc | 16 +- mts/src/model/ListCensorPipelineResult.cc | 9 +- mts/src/model/ListCoverPipelineRequest.cc | 16 +- mts/src/model/ListCoverPipelineResult.cc | 9 +- mts/src/model/ListJobRequest.cc | 22 +- mts/src/model/ListJobResult.cc | 9 +- mts/src/model/ListMediaRequest.cc | 18 +- mts/src/model/ListMediaResult.cc | 9 +- .../ListMediaWorkflowExecutionsRequest.cc | 20 +- .../ListMediaWorkflowExecutionsResult.cc | 9 +- mts/src/model/ListPornPipelineRequest.cc | 16 +- mts/src/model/ListPornPipelineResult.cc | 9 +- mts/src/model/ListTerrorismPipelineRequest.cc | 16 +- mts/src/model/ListTerrorismPipelineResult.cc | 9 +- mts/src/model/LogicalDeleteResourceRequest.cc | 22 +- mts/src/model/LogicalDeleteResourceResult.cc | 9 +- .../model/PhysicalDeleteResourceRequest.cc | 22 +- mts/src/model/PhysicalDeleteResourceResult.cc | 9 +- mts/src/model/PlayInfoRequest.cc | 26 +- mts/src/model/PlayInfoResult.cc | 9 +- mts/src/model/PlayerAuthRequest.cc | 10 +- mts/src/model/PlayerAuthResult.cc | 9 +- mts/src/model/QueryAnalysisJobListRequest.cc | 12 +- mts/src/model/QueryAnalysisJobListResult.cc | 9 +- .../model/QueryAnnotationJobListRequest.cc | 12 +- mts/src/model/QueryAnnotationJobListResult.cc | 9 +- mts/src/model/QueryAsrJobListRequest.cc | 12 +- mts/src/model/QueryAsrJobListResult.cc | 9 +- mts/src/model/QueryAsrPipelineListRequest.cc | 12 +- mts/src/model/QueryAsrPipelineListResult.cc | 9 +- mts/src/model/QueryAuthConfigRequest.cc | 10 +- mts/src/model/QueryAuthConfigResult.cc | 9 +- mts/src/model/QueryCensorJobListRequest.cc | 12 +- mts/src/model/QueryCensorJobListResult.cc | 9 +- .../model/QueryCensorPipelineListRequest.cc | 12 +- .../model/QueryCensorPipelineListResult.cc | 9 +- mts/src/model/QueryComplexJobListRequest.cc | 12 +- mts/src/model/QueryComplexJobListResult.cc | 9 +- mts/src/model/QueryCoverJobListRequest.cc | 78 +- mts/src/model/QueryCoverJobListResult.cc | 16 +- .../model/QueryCoverPipelineListRequest.cc | 12 +- mts/src/model/QueryCoverPipelineListResult.cc | 9 +- mts/src/model/QueryEditingJobListRequest.cc | 12 +- mts/src/model/QueryEditingJobListResult.cc | 9 +- mts/src/model/QueryFacerecogJobListRequest.cc | 12 +- mts/src/model/QueryFacerecogJobListResult.cc | 9 +- mts/src/model/QueryFpCompareJobListRequest.cc | 93 + mts/src/model/QueryFpCompareJobListResult.cc | 186 + mts/src/model/QueryFpImportResultRequest.cc | 18 +- mts/src/model/QueryFpImportResultResult.cc | 9 +- mts/src/model/QueryFpShotJobListRequest.cc | 26 +- mts/src/model/QueryFpShotJobListResult.cc | 9 +- .../model/QueryImageSearchJobListRequest.cc | 12 +- .../model/QueryImageSearchJobListResult.cc | 9 +- mts/src/model/QueryJobListRequest.cc | 12 +- mts/src/model/QueryJobListResult.cc | 9 +- mts/src/model/QueryMCJobListRequest.cc | 24 +- mts/src/model/QueryMCJobListResult.cc | 9 +- mts/src/model/QueryMCTemplateListRequest.cc | 12 +- mts/src/model/QueryMCTemplateListResult.cc | 9 +- mts/src/model/QueryMcuJobRequest.cc | 12 +- mts/src/model/QueryMcuJobResult.cc | 9 +- mts/src/model/QueryMcuTemplateRequest.cc | 12 +- mts/src/model/QueryMcuTemplateResult.cc | 9 +- .../model/QueryMediaCensorJobDetailRequest.cc | 16 +- .../model/QueryMediaCensorJobDetailResult.cc | 15 +- .../model/QueryMediaCensorJobListRequest.cc | 159 + .../model/QueryMediaCensorJobListResult.cc | 205 + .../model/QueryMediaDetailJobListRequest.cc | 12 +- .../model/QueryMediaDetailJobListResult.cc | 9 +- .../model/QueryMediaFpDeleteJobListRequest.cc | 12 +- .../model/QueryMediaFpDeleteJobListResult.cc | 9 +- mts/src/model/QueryMediaInfoJobListRequest.cc | 12 +- mts/src/model/QueryMediaInfoJobListResult.cc | 9 +- mts/src/model/QueryMediaListByURLRequest.cc | 20 +- mts/src/model/QueryMediaListByURLResult.cc | 9 +- mts/src/model/QueryMediaListRequest.cc | 20 +- mts/src/model/QueryMediaListResult.cc | 9 +- .../QueryMediaWorkflowExecutionListRequest.cc | 12 +- .../QueryMediaWorkflowExecutionListResult.cc | 9 +- .../model/QueryMediaWorkflowListRequest.cc | 12 +- mts/src/model/QueryMediaWorkflowListResult.cc | 9 +- mts/src/model/QueryPipelineListRequest.cc | 12 +- mts/src/model/QueryPipelineListResult.cc | 9 +- mts/src/model/QueryPornJobListRequest.cc | 12 +- mts/src/model/QueryPornJobListResult.cc | 9 +- mts/src/model/QueryPornPipelineListRequest.cc | 12 +- mts/src/model/QueryPornPipelineListResult.cc | 9 +- mts/src/model/QuerySnapshotJobListRequest.cc | 78 +- mts/src/model/QuerySnapshotJobListResult.cc | 16 +- mts/src/model/QuerySubtitleJobListRequest.cc | 12 +- mts/src/model/QuerySubtitleJobListResult.cc | 9 +- mts/src/model/QueryTagJobListRequest.cc | 12 +- mts/src/model/QueryTagJobListResult.cc | 9 +- mts/src/model/QueryTemplateListRequest.cc | 12 +- mts/src/model/QueryTemplateListResult.cc | 9 +- mts/src/model/QueryTerrorismJobListRequest.cc | 12 +- mts/src/model/QueryTerrorismJobListResult.cc | 9 +- .../QueryTerrorismPipelineListRequest.cc | 12 +- .../model/QueryTerrorismPipelineListResult.cc | 9 +- mts/src/model/QueryVideoGifJobListRequest.cc | 12 +- mts/src/model/QueryVideoGifJobListResult.cc | 9 +- mts/src/model/QueryVideoPoseJobListRequest.cc | 12 +- mts/src/model/QueryVideoPoseJobListResult.cc | 9 +- .../model/QueryVideoSplitJobListRequest.cc | 12 +- mts/src/model/QueryVideoSplitJobListResult.cc | 9 +- .../model/QueryVideoSummaryJobListRequest.cc | 12 +- .../model/QueryVideoSummaryJobListResult.cc | 9 +- .../QueryWaterMarkTemplateListRequest.cc | 12 +- .../model/QueryWaterMarkTemplateListResult.cc | 9 +- .../RefreshCdnDomainConfigsCacheRequest.cc | 12 +- .../RefreshCdnDomainConfigsCacheResult.cc | 9 +- .../model/RegisterMediaDetailPersonRequest.cc | 18 +- .../model/RegisterMediaDetailPersonResult.cc | 9 +- .../RegisterMediaDetailScenarioRequest.cc | 16 +- .../RegisterMediaDetailScenarioResult.cc | 9 +- .../model/ReportAnnotationJobResultRequest.cc | 16 +- .../model/ReportAnnotationJobResultResult.cc | 9 +- mts/src/model/ReportCensorJobResultRequest.cc | 16 +- mts/src/model/ReportCensorJobResultResult.cc | 9 +- mts/src/model/ReportCoverJobResultRequest.cc | 14 +- mts/src/model/ReportCoverJobResultResult.cc | 9 +- .../model/ReportFacerecogJobResultRequest.cc | 16 +- .../model/ReportFacerecogJobResultResult.cc | 9 +- mts/src/model/ReportFpShotJobResultRequest.cc | 16 +- mts/src/model/ReportFpShotJobResultResult.cc | 9 +- .../ReportMediaDetailJobResultRequest.cc | 16 +- .../model/ReportMediaDetailJobResultResult.cc | 9 +- mts/src/model/ReportPornJobResultRequest.cc | 16 +- mts/src/model/ReportPornJobResultResult.cc | 9 +- mts/src/model/ReportTagJobResultRequest.cc | 16 +- mts/src/model/ReportTagJobResultResult.cc | 9 +- .../model/ReportTerrorismJobResultRequest.cc | 16 +- .../model/ReportTerrorismJobResultResult.cc | 9 +- .../model/ReportVideoSplitJobResultRequest.cc | 16 +- .../model/ReportVideoSplitJobResultResult.cc | 9 +- mts/src/model/SearchMediaRequest.cc | 30 +- mts/src/model/SearchMediaResult.cc | 9 +- mts/src/model/SearchMediaWorkflowRequest.cc | 16 +- mts/src/model/SearchMediaWorkflowResult.cc | 9 +- mts/src/model/SearchPipelineRequest.cc | 16 +- mts/src/model/SearchPipelineResult.cc | 9 +- mts/src/model/SearchTemplateRequest.cc | 16 +- mts/src/model/SearchTemplateResult.cc | 9 +- .../model/SearchWaterMarkTemplateRequest.cc | 16 +- .../model/SearchWaterMarkTemplateResult.cc | 9 +- mts/src/model/SetAuthConfigRequest.cc | 14 +- mts/src/model/SetAuthConfigResult.cc | 9 +- mts/src/model/SubmitAnalysisJobRequest.cc | 20 +- mts/src/model/SubmitAnalysisJobResult.cc | 9 +- mts/src/model/SubmitAnnotationJobRequest.cc | 18 +- mts/src/model/SubmitAnnotationJobResult.cc | 9 +- mts/src/model/SubmitAsrJobRequest.cc | 18 +- mts/src/model/SubmitAsrJobResult.cc | 9 +- mts/src/model/SubmitBeautifyJobsRequest.cc | 126 + mts/src/model/SubmitBeautifyJobsResult.cc | 99 + mts/src/model/SubmitComplexJobRequest.cc | 24 +- mts/src/model/SubmitComplexJobResult.cc | 9 +- mts/src/model/SubmitCoverJobRequest.cc | 18 +- mts/src/model/SubmitCoverJobResult.cc | 9 +- mts/src/model/SubmitEditingJobsRequest.cc | 20 +- mts/src/model/SubmitEditingJobsResult.cc | 9 +- mts/src/model/SubmitFacerecogJobRequest.cc | 18 +- mts/src/model/SubmitFacerecogJobResult.cc | 9 +- mts/src/model/SubmitFpCompareJobRequest.cc | 148 + mts/src/model/SubmitFpCompareJobResult.cc | 55 + mts/src/model/SubmitFpShotJobRequest.cc | 18 +- mts/src/model/SubmitFpShotJobResult.cc | 9 +- mts/src/model/SubmitImageQualityJobRequest.cc | 16 +- mts/src/model/SubmitImageQualityJobResult.cc | 9 +- mts/src/model/SubmitImageSearchJobRequest.cc | 22 +- mts/src/model/SubmitImageSearchJobResult.cc | 9 +- mts/src/model/SubmitJobsRequest.cc | 20 +- mts/src/model/SubmitJobsResult.cc | 9 +- mts/src/model/SubmitMCJobRequest.cc | 22 +- mts/src/model/SubmitMCJobResult.cc | 9 +- mts/src/model/SubmitMcuJobRequest.cc | 20 +- mts/src/model/SubmitMcuJobResult.cc | 9 +- mts/src/model/SubmitMediaCensorJobRequest.cc | 26 +- mts/src/model/SubmitMediaCensorJobResult.cc | 9 +- mts/src/model/SubmitMediaDetailJobRequest.cc | 18 +- mts/src/model/SubmitMediaDetailJobResult.cc | 9 +- .../model/SubmitMediaFpDeleteJobRequest.cc | 18 +- mts/src/model/SubmitMediaFpDeleteJobResult.cc | 9 +- mts/src/model/SubmitMediaInfoJobRequest.cc | 18 +- mts/src/model/SubmitMediaInfoJobResult.cc | 9 +- mts/src/model/SubmitPornJobRequest.cc | 18 +- mts/src/model/SubmitPornJobResult.cc | 9 +- mts/src/model/SubmitSnapshotJobRequest.cc | 18 +- mts/src/model/SubmitSnapshotJobResult.cc | 9 +- mts/src/model/SubmitSubtitleJobRequest.cc | 18 +- mts/src/model/SubmitSubtitleJobResult.cc | 9 +- mts/src/model/SubmitTagJobRequest.cc | 18 +- mts/src/model/SubmitTagJobResult.cc | 9 +- mts/src/model/SubmitTerrorismJobRequest.cc | 18 +- mts/src/model/SubmitTerrorismJobResult.cc | 9 +- mts/src/model/SubmitVideoGifJobRequest.cc | 18 +- mts/src/model/SubmitVideoGifJobResult.cc | 9 +- mts/src/model/SubmitVideoPoseJobRequest.cc | 18 +- mts/src/model/SubmitVideoPoseJobResult.cc | 9 +- mts/src/model/SubmitVideoSplitJobRequest.cc | 18 +- mts/src/model/SubmitVideoSplitJobResult.cc | 9 +- mts/src/model/SubmitVideoSummaryJobRequest.cc | 18 +- mts/src/model/SubmitVideoSummaryJobResult.cc | 9 +- mts/src/model/UnbindInputBucketRequest.cc | 14 +- mts/src/model/UnbindInputBucketResult.cc | 9 +- mts/src/model/UnbindOutputBucketRequest.cc | 12 +- mts/src/model/UnbindOutputBucketResult.cc | 9 +- mts/src/model/UpdateAsrPipelineRequest.cc | 20 +- mts/src/model/UpdateAsrPipelineResult.cc | 9 +- mts/src/model/UpdateCategoryNameRequest.cc | 14 +- mts/src/model/UpdateCategoryNameResult.cc | 9 +- mts/src/model/UpdateCensorPipelineRequest.cc | 20 +- mts/src/model/UpdateCensorPipelineResult.cc | 9 +- mts/src/model/UpdateCoverPipelineRequest.cc | 22 +- mts/src/model/UpdateCoverPipelineResult.cc | 9 +- mts/src/model/UpdateMCTemplateRequest.cc | 34 +- mts/src/model/UpdateMCTemplateResult.cc | 9 +- mts/src/model/UpdateMcuTemplateRequest.cc | 14 +- mts/src/model/UpdateMcuTemplateResult.cc | 9 +- mts/src/model/UpdateMediaCategoryRequest.cc | 14 +- mts/src/model/UpdateMediaCategoryResult.cc | 9 +- mts/src/model/UpdateMediaCoverRequest.cc | 14 +- mts/src/model/UpdateMediaCoverResult.cc | 9 +- .../model/UpdateMediaPublishStateRequest.cc | 14 +- .../model/UpdateMediaPublishStateResult.cc | 9 +- mts/src/model/UpdateMediaRequest.cc | 22 +- mts/src/model/UpdateMediaResult.cc | 9 +- mts/src/model/UpdateMediaWorkflowRequest.cc | 14 +- mts/src/model/UpdateMediaWorkflowResult.cc | 9 +- .../UpdateMediaWorkflowTriggerModeRequest.cc | 14 +- .../UpdateMediaWorkflowTriggerModeResult.cc | 9 +- mts/src/model/UpdatePipelineRequest.cc | 20 +- mts/src/model/UpdatePipelineResult.cc | 9 +- mts/src/model/UpdatePornPipelineRequest.cc | 20 +- mts/src/model/UpdatePornPipelineResult.cc | 9 +- mts/src/model/UpdateTemplateRequest.cc | 24 +- mts/src/model/UpdateTemplateResult.cc | 9 +- .../model/UpdateTerrorismPipelineRequest.cc | 20 +- .../model/UpdateTerrorismPipelineResult.cc | 9 +- .../model/UpdateWaterMarkTemplateRequest.cc | 16 +- .../model/UpdateWaterMarkTemplateResult.cc | 9 +- ons/CMakeLists.txt | 32 +- ons/include/alibabacloud/ons/OnsClient.h | 64 +- .../ons/model/OnsConsumerAccumulateRequest.h | 3 - .../model/OnsConsumerGetConnectionRequest.h | 3 - .../ons/model/OnsConsumerResetOffsetRequest.h | 3 - .../ons/model/OnsConsumerStatusRequest.h | 3 - .../ons/model/OnsConsumerStatusResult.h | 1 + .../ons/model/OnsConsumerTimeSpanRequest.h | 3 - .../ons/model/OnsDLQMessageGetByIdRequest.h | 3 - .../OnsDLQMessagePageQueryByGroupIdRequest.h | 3 - .../model/OnsDLQMessageResendByIdRequest.h | 3 - .../ons/model/OnsGroupConsumerUpdateRequest.h | 3 - .../ons/model/OnsGroupCreateRequest.h | 3 - .../ons/model/OnsGroupDeleteRequest.h | 3 - .../ons/model/OnsGroupListRequest.h | 3 - .../ons/model/OnsGroupListResult.h | 1 + .../ons/model/OnsGroupSubDetailRequest.h | 3 - .../ons/model/OnsInstanceBaseInfoRequest.h | 3 - .../ons/model/OnsInstanceBaseInfoResult.h | 1 + .../ons/model/OnsInstanceCreateRequest.h | 3 - .../ons/model/OnsInstanceDeleteRequest.h | 3 - .../model/OnsInstanceInServiceListRequest.h | 3 - .../ons/model/OnsInstanceUpdateRequest.h | 3 - .../ons/model/OnsMessageGetByKeyRequest.h | 3 - .../ons/model/OnsMessageGetByMsgIdRequest.h | 3 - .../model/OnsMessagePageQueryByTopicRequest.h | 3 - .../ons/model/OnsMessagePushRequest.h | 3 - .../ons/model/OnsMessageSendRequest.h | 3 - .../ons/model/OnsMessageTraceRequest.h | 3 - .../ons/model/OnsMqttGroupIdCreateRequest.h | 3 - .../ons/model/OnsMqttGroupIdDeleteRequest.h | 3 - .../ons/model/OnsMqttGroupIdListRequest.h | 3 - .../OnsMqttQueryClientByClientIdRequest.h | 3 - .../OnsMqttQueryClientByGroupIdRequest.h | 3 - .../model/OnsMqttQueryClientByTopicRequest.h | 3 - .../model/OnsMqttQueryHistoryOnlineRequest.h | 3 - .../model/OnsMqttQueryMsgTransTrendRequest.h | 3 - .../ons/model/OnsRegionListRequest.h | 3 - .../ons/model/OnsTopicCreateRequest.h | 3 - .../ons/model/OnsTopicDeleteRequest.h | 3 - .../ons/model/OnsTopicListRequest.h | 3 - .../ons/model/OnsTopicStatusRequest.h | 3 - .../ons/model/OnsTopicSubDetailRequest.h | 3 - .../ons/model/OnsTopicUpdateRequest.h | 3 - .../ons/model/OnsTraceGetResultRequest.h | 3 - .../ons/model/OnsTraceQueryByMsgIdRequest.h | 3 - .../ons/model/OnsTraceQueryByMsgKeyRequest.h | 3 - .../ons/model/OnsTrendGroupOutputTpsRequest.h | 3 - .../ons/model/OnsTrendTopicInputTpsRequest.h | 3 - .../ons/model/OnsWarnCreateRequest.h | 3 - .../ons/model/OnsWarnDeleteRequest.h | 3 - ons/src/OnsClient.cc | 234 +- ons/src/model/OnsConsumerAccumulateRequest.cc | 11 - ons/src/model/OnsConsumerAccumulateResult.cc | 9 +- .../model/OnsConsumerGetConnectionRequest.cc | 11 - .../model/OnsConsumerGetConnectionResult.cc | 9 +- .../model/OnsConsumerResetOffsetRequest.cc | 11 - ons/src/model/OnsConsumerResetOffsetResult.cc | 9 +- ons/src/model/OnsConsumerStatusRequest.cc | 11 - ons/src/model/OnsConsumerStatusResult.cc | 11 +- ons/src/model/OnsConsumerTimeSpanRequest.cc | 11 - ons/src/model/OnsConsumerTimeSpanResult.cc | 9 +- ons/src/model/OnsDLQMessageGetByIdRequest.cc | 11 - ons/src/model/OnsDLQMessageGetByIdResult.cc | 9 +- .../OnsDLQMessagePageQueryByGroupIdRequest.cc | 11 - .../OnsDLQMessagePageQueryByGroupIdResult.cc | 9 +- .../model/OnsDLQMessageResendByIdRequest.cc | 11 - .../model/OnsDLQMessageResendByIdResult.cc | 9 +- .../model/OnsGroupConsumerUpdateRequest.cc | 11 - ons/src/model/OnsGroupConsumerUpdateResult.cc | 9 +- ons/src/model/OnsGroupCreateRequest.cc | 11 - ons/src/model/OnsGroupCreateResult.cc | 9 +- ons/src/model/OnsGroupDeleteRequest.cc | 11 - ons/src/model/OnsGroupDeleteResult.cc | 9 +- ons/src/model/OnsGroupListRequest.cc | 11 - ons/src/model/OnsGroupListResult.cc | 11 +- ons/src/model/OnsGroupSubDetailRequest.cc | 11 - ons/src/model/OnsGroupSubDetailResult.cc | 9 +- ons/src/model/OnsInstanceBaseInfoRequest.cc | 11 - ons/src/model/OnsInstanceBaseInfoResult.cc | 11 +- ons/src/model/OnsInstanceCreateRequest.cc | 11 - ons/src/model/OnsInstanceCreateResult.cc | 9 +- ons/src/model/OnsInstanceDeleteRequest.cc | 11 - ons/src/model/OnsInstanceDeleteResult.cc | 9 +- .../model/OnsInstanceInServiceListRequest.cc | 11 - .../model/OnsInstanceInServiceListResult.cc | 9 +- ons/src/model/OnsInstanceUpdateRequest.cc | 11 - ons/src/model/OnsInstanceUpdateResult.cc | 9 +- ons/src/model/OnsMessageGetByKeyRequest.cc | 11 - ons/src/model/OnsMessageGetByKeyResult.cc | 9 +- ons/src/model/OnsMessageGetByMsgIdRequest.cc | 11 - ons/src/model/OnsMessageGetByMsgIdResult.cc | 9 +- .../OnsMessagePageQueryByTopicRequest.cc | 11 - .../model/OnsMessagePageQueryByTopicResult.cc | 9 +- ons/src/model/OnsMessagePushRequest.cc | 11 - ons/src/model/OnsMessagePushResult.cc | 9 +- ons/src/model/OnsMessageSendRequest.cc | 11 - ons/src/model/OnsMessageSendResult.cc | 9 +- ons/src/model/OnsMessageTraceRequest.cc | 11 - ons/src/model/OnsMessageTraceResult.cc | 9 +- ons/src/model/OnsMqttGroupIdCreateRequest.cc | 11 - ons/src/model/OnsMqttGroupIdCreateResult.cc | 9 +- ons/src/model/OnsMqttGroupIdDeleteRequest.cc | 11 - ons/src/model/OnsMqttGroupIdDeleteResult.cc | 9 +- ons/src/model/OnsMqttGroupIdListRequest.cc | 11 - ons/src/model/OnsMqttGroupIdListResult.cc | 9 +- .../OnsMqttQueryClientByClientIdRequest.cc | 11 - .../OnsMqttQueryClientByClientIdResult.cc | 9 +- .../OnsMqttQueryClientByGroupIdRequest.cc | 11 - .../OnsMqttQueryClientByGroupIdResult.cc | 9 +- .../model/OnsMqttQueryClientByTopicRequest.cc | 11 - .../model/OnsMqttQueryClientByTopicResult.cc | 9 +- .../model/OnsMqttQueryHistoryOnlineRequest.cc | 11 - .../model/OnsMqttQueryHistoryOnlineResult.cc | 9 +- .../model/OnsMqttQueryMsgTransTrendRequest.cc | 11 - .../model/OnsMqttQueryMsgTransTrendResult.cc | 9 +- ons/src/model/OnsRegionListRequest.cc | 11 - ons/src/model/OnsRegionListResult.cc | 9 +- ons/src/model/OnsTopicCreateRequest.cc | 11 - ons/src/model/OnsTopicCreateResult.cc | 9 +- ons/src/model/OnsTopicDeleteRequest.cc | 11 - ons/src/model/OnsTopicDeleteResult.cc | 9 +- ons/src/model/OnsTopicListRequest.cc | 11 - ons/src/model/OnsTopicListResult.cc | 9 +- ons/src/model/OnsTopicStatusRequest.cc | 11 - ons/src/model/OnsTopicStatusResult.cc | 9 +- ons/src/model/OnsTopicSubDetailRequest.cc | 11 - ons/src/model/OnsTopicSubDetailResult.cc | 9 +- ons/src/model/OnsTopicUpdateRequest.cc | 11 - ons/src/model/OnsTopicUpdateResult.cc | 9 +- ons/src/model/OnsTraceGetResultRequest.cc | 11 - ons/src/model/OnsTraceGetResultResult.cc | 9 +- ons/src/model/OnsTraceQueryByMsgIdRequest.cc | 11 - ons/src/model/OnsTraceQueryByMsgIdResult.cc | 9 +- ons/src/model/OnsTraceQueryByMsgKeyRequest.cc | 11 - ons/src/model/OnsTraceQueryByMsgKeyResult.cc | 9 +- .../model/OnsTrendGroupOutputTpsRequest.cc | 11 - ons/src/model/OnsTrendGroupOutputTpsResult.cc | 9 +- ons/src/model/OnsTrendTopicInputTpsRequest.cc | 11 - ons/src/model/OnsTrendTopicInputTpsResult.cc | 9 +- ons/src/model/OnsWarnCreateRequest.cc | 11 - ons/src/model/OnsWarnCreateResult.cc | 9 +- ons/src/model/OnsWarnDeleteRequest.cc | 11 - ons/src/model/OnsWarnDeleteResult.cc | 9 +- openanalytics/CMakeLists.txt | 8 +- .../openanalytics/OpenanalyticsClient.h | 16 +- openanalytics/src/OpenanalyticsClient.cc | 72 +- .../src/model/CloseProductAccountRequest.cc | 26 +- .../src/model/CloseProductAccountResult.cc | 9 +- .../src/model/DescribeRegionListRequest.cc | 16 +- .../src/model/DescribeRegionListResult.cc | 9 +- openanalytics/src/model/GetAllowIPRequest.cc | 22 +- openanalytics/src/model/GetAllowIPResult.cc | 9 +- .../src/model/GetEndPointByDomainRequest.cc | 22 +- .../src/model/GetEndPointByDomainResult.cc | 9 +- .../src/model/GetProductStatusRequest.cc | 26 +- .../src/model/GetProductStatusResult.cc | 9 +- .../src/model/GetRegionStatusRequest.cc | 20 +- .../src/model/GetRegionStatusResult.cc | 9 +- .../src/model/OpenProductAccountRequest.cc | 26 +- .../src/model/OpenProductAccountResult.cc | 9 +- .../src/model/QueryEndPointListRequest.cc | 20 +- .../src/model/QueryEndPointListResult.cc | 9 +- openanalytics/src/model/SetAllowIPRequest.cc | 26 +- openanalytics/src/model/SetAllowIPResult.cc | 9 +- ots/CMakeLists.txt | 16 +- ots/include/alibabacloud/ots/OtsClient.h | 32 +- ots/src/OtsClient.cc | 144 +- ots/src/model/BindInstance2VpcRequest.cc | 16 +- ots/src/model/BindInstance2VpcResult.cc | 9 +- ots/src/model/DeleteInstanceRequest.cc | 6 +- ots/src/model/DeleteInstanceResult.cc | 9 +- ots/src/model/DeleteTagsRequest.cc | 10 +- ots/src/model/DeleteTagsResult.cc | 9 +- ots/src/model/GetInstanceRequest.cc | 6 +- ots/src/model/GetInstanceResult.cc | 9 +- ots/src/model/InsertInstanceRequest.cc | 16 +- ots/src/model/InsertInstanceResult.cc | 9 +- ots/src/model/InsertTagsRequest.cc | 10 +- ots/src/model/InsertTagsResult.cc | 9 +- ots/src/model/ListClusterTypeRequest.cc | 4 +- ots/src/model/ListClusterTypeResult.cc | 9 +- ots/src/model/ListInstanceRequest.cc | 12 +- ots/src/model/ListInstanceResult.cc | 9 +- ots/src/model/ListTagsRequest.cc | 14 +- ots/src/model/ListTagsResult.cc | 9 +- ots/src/model/ListVpcInfoByInstanceRequest.cc | 10 +- ots/src/model/ListVpcInfoByInstanceResult.cc | 9 +- ots/src/model/ListVpcInfoByVpcRequest.cc | 14 +- ots/src/model/ListVpcInfoByVpcResult.cc | 9 +- ots/src/model/UnbindInstance2VpcRequest.cc | 10 +- ots/src/model/UnbindInstance2VpcResult.cc | 9 +- ots/src/model/UpdateInstanceRequest.cc | 8 +- ots/src/model/UpdateInstanceResult.cc | 9 +- polardb/CMakeLists.txt | 286 + .../alibabacloud/polardb/PolardbClient.h | 454 + .../alibabacloud/polardb/PolardbExport.h | 62 +- .../model/AbortDBClusterMigrationRequest.h | 69 + .../model/AbortDBClusterMigrationResult.h | 49 + .../model/CloseDBClusterMigrationRequest.h | 88 +- .../model/CloseDBClusterMigrationResult.h | 96 +- .../model/ContinueDBClusterMigrationRequest.h | 69 + .../model/ContinueDBClusterMigrationResult.h | 49 + .../polardb/model/CreateAccountRequest.h | 88 +- .../polardb/model/CreateAccountResult.h | 96 +- .../polardb/model/CreateBackupRequest.h | 88 +- .../polardb/model/CreateBackupResult.h | 96 +- .../model/CreateDBClusterEndpointRequest.h | 88 +- .../model/CreateDBClusterEndpointResult.h | 96 +- .../polardb/model/CreateDBClusterRequest.h | 88 +- .../polardb/model/CreateDBClusterResult.h | 96 +- .../model/CreateDBEndpointAddressRequest.h | 88 +- .../model/CreateDBEndpointAddressResult.h | 96 +- .../polardb/model/CreateDBNodesRequest.h | 88 +- .../polardb/model/CreateDBNodesResult.h | 96 +- .../polardb/model/CreateDatabaseRequest.h | 88 +- .../polardb/model/CreateDatabaseResult.h | 96 +- .../polardb/model/DeleteAccountRequest.h | 88 +- .../polardb/model/DeleteAccountResult.h | 96 +- .../polardb/model/DeleteBackupRequest.h | 88 +- .../polardb/model/DeleteBackupResult.h | 96 +- .../model/DeleteDBClusterEndpointRequest.h | 88 +- .../model/DeleteDBClusterEndpointResult.h | 96 +- .../polardb/model/DeleteDBClusterRequest.h | 88 +- .../polardb/model/DeleteDBClusterResult.h | 96 +- .../model/DeleteDBEndpointAddressRequest.h | 88 +- .../model/DeleteDBEndpointAddressResult.h | 96 +- .../polardb/model/DeleteDBNodesRequest.h | 88 +- .../polardb/model/DeleteDBNodesResult.h | 96 +- .../polardb/model/DeleteDatabaseRequest.h | 88 +- .../polardb/model/DeleteDatabaseResult.h | 96 +- .../polardb/model/DescribeAccountsRequest.h | 88 +- .../polardb/model/DescribeAccountsResult.h | 96 +- .../model/DescribeAutoRenewAttributeRequest.h | 88 +- .../model/DescribeAutoRenewAttributeResult.h | 96 +- .../model/DescribeBackupPolicyRequest.h | 88 +- .../model/DescribeBackupPolicyResult.h | 96 +- .../polardb/model/DescribeBackupsRequest.h | 88 +- .../polardb/model/DescribeBackupsResult.h | 96 +- .../DescribeDBClusterAccessWhitelistRequest.h | 88 +- .../DescribeDBClusterAccessWhitelistResult.h | 96 +- .../model/DescribeDBClusterAttributeRequest.h | 88 +- .../model/DescribeDBClusterAttributeResult.h | 100 +- .../model/DescribeDBClusterEndpointsRequest.h | 88 +- .../model/DescribeDBClusterEndpointsResult.h | 96 +- .../model/DescribeDBClusterMigrationRequest.h | 88 +- .../model/DescribeDBClusterMigrationResult.h | 98 +- .../DescribeDBClusterParametersRequest.h | 88 +- .../model/DescribeDBClusterParametersResult.h | 96 +- .../polardb/model/DescribeDBClustersRequest.h | 88 +- .../polardb/model/DescribeDBClustersResult.h | 96 +- .../polardb/model/DescribeDatabasesRequest.h | 88 +- .../polardb/model/DescribeDatabasesResult.h | 96 +- .../polardb/model/DescribeRegionsRequest.h | 88 +- .../polardb/model/DescribeRegionsResult.h | 96 +- .../model/GrantAccountPrivilegeRequest.h | 88 +- .../model/GrantAccountPrivilegeResult.h | 96 +- .../polardb/model/ListTagResourcesRequest.h | 88 +- .../polardb/model/ListTagResourcesResult.h | 96 +- .../model/LockDBClusterDeletionRequest.h | 88 +- .../model/LockDBClusterDeletionResult.h | 96 +- .../model/ModifyAccountDescriptionRequest.h | 88 +- .../model/ModifyAccountDescriptionResult.h | 96 +- .../model/ModifyAccountPasswordRequest.h | 88 +- .../model/ModifyAccountPasswordResult.h | 96 +- .../model/ModifyAutoRenewAttributeRequest.h | 88 +- .../model/ModifyAutoRenewAttributeResult.h | 96 +- .../polardb/model/ModifyBackupPolicyRequest.h | 88 +- .../polardb/model/ModifyBackupPolicyResult.h | 96 +- .../ModifyDBClusterAccessWhitelistRequest.h | 88 +- .../ModifyDBClusterAccessWhitelistResult.h | 96 +- .../model/ModifyDBClusterDescriptionRequest.h | 88 +- .../model/ModifyDBClusterDescriptionResult.h | 96 +- .../model/ModifyDBClusterEndpointRequest.h | 88 +- .../model/ModifyDBClusterEndpointResult.h | 96 +- .../ModifyDBClusterMaintainTimeRequest.h | 88 +- .../model/ModifyDBClusterMaintainTimeResult.h | 96 +- .../model/ModifyDBClusterMigrationRequest.h | 88 +- .../model/ModifyDBClusterMigrationResult.h | 96 +- .../model/ModifyDBClusterParametersRequest.h | 88 +- .../model/ModifyDBClusterParametersResult.h | 96 +- .../model/ModifyDBDescriptionRequest.h | 88 +- .../polardb/model/ModifyDBDescriptionResult.h | 96 +- .../model/ModifyDBEndpointAddressRequest.h | 88 +- .../model/ModifyDBEndpointAddressResult.h | 96 +- .../polardb/model/ModifyDBNodeClassRequest.h | 88 +- .../polardb/model/ModifyDBNodeClassResult.h | 96 +- .../polardb/model/ResetAccountRequest.h | 88 +- .../polardb/model/ResetAccountResult.h | 96 +- .../polardb/model/RestartDBNodeRequest.h | 88 +- .../polardb/model/RestartDBNodeResult.h | 96 +- .../model/RevokeAccountPrivilegeRequest.h | 88 +- .../model/RevokeAccountPrivilegeResult.h | 96 +- .../polardb/model/TagResourcesRequest.h | 88 +- .../polardb/model/TagResourcesResult.h | 96 +- .../model/UnlockDBClusterDeletionRequest.h | 88 +- .../model/UnlockDBClusterDeletionResult.h | 96 +- .../polardb/model/UntagResourcesRequest.h | 88 +- .../polardb/model/UntagResourcesResult.h | 96 +- polardb/src/PolardbClient.cc | 1889 +++ .../model/AbortDBClusterMigrationRequest.cc | 115 + .../model/AbortDBClusterMigrationResult.cc | 48 + .../model/CloseDBClusterMigrationRequest.cc | 54 +- .../model/CloseDBClusterMigrationResult.cc | 93 +- .../ContinueDBClusterMigrationRequest.cc | 115 + .../model/ContinueDBClusterMigrationResult.cc | 48 + polardb/src/model/CreateAccountRequest.cc | 54 +- polardb/src/model/CreateAccountResult.cc | 93 +- polardb/src/model/CreateBackupRequest.cc | 54 +- polardb/src/model/CreateBackupResult.cc | 93 +- .../model/CreateDBClusterEndpointRequest.cc | 54 +- .../model/CreateDBClusterEndpointResult.cc | 93 +- polardb/src/model/CreateDBClusterRequest.cc | 54 +- polardb/src/model/CreateDBClusterResult.cc | 93 +- .../model/CreateDBEndpointAddressRequest.cc | 54 +- .../model/CreateDBEndpointAddressResult.cc | 93 +- polardb/src/model/CreateDBNodesRequest.cc | 54 +- polardb/src/model/CreateDBNodesResult.cc | 93 +- polardb/src/model/CreateDatabaseRequest.cc | 54 +- polardb/src/model/CreateDatabaseResult.cc | 93 +- polardb/src/model/DeleteAccountRequest.cc | 54 +- polardb/src/model/DeleteAccountResult.cc | 93 +- polardb/src/model/DeleteBackupRequest.cc | 54 +- polardb/src/model/DeleteBackupResult.cc | 93 +- .../model/DeleteDBClusterEndpointRequest.cc | 54 +- .../model/DeleteDBClusterEndpointResult.cc | 93 +- polardb/src/model/DeleteDBClusterRequest.cc | 54 +- polardb/src/model/DeleteDBClusterResult.cc | 93 +- .../model/DeleteDBEndpointAddressRequest.cc | 54 +- .../model/DeleteDBEndpointAddressResult.cc | 93 +- polardb/src/model/DeleteDBNodesRequest.cc | 54 +- polardb/src/model/DeleteDBNodesResult.cc | 93 +- polardb/src/model/DeleteDatabaseRequest.cc | 54 +- polardb/src/model/DeleteDatabaseResult.cc | 93 +- polardb/src/model/DescribeAccountsRequest.cc | 54 +- polardb/src/model/DescribeAccountsResult.cc | 93 +- .../DescribeAutoRenewAttributeRequest.cc | 54 +- .../model/DescribeAutoRenewAttributeResult.cc | 93 +- .../src/model/DescribeBackupPolicyRequest.cc | 54 +- .../src/model/DescribeBackupPolicyResult.cc | 93 +- polardb/src/model/DescribeBackupsRequest.cc | 54 +- polardb/src/model/DescribeBackupsResult.cc | 93 +- ...DescribeDBClusterAccessWhitelistRequest.cc | 54 +- .../DescribeDBClusterAccessWhitelistResult.cc | 93 +- .../DescribeDBClusterAttributeRequest.cc | 54 +- .../model/DescribeDBClusterAttributeResult.cc | 97 +- .../DescribeDBClusterEndpointsRequest.cc | 54 +- .../model/DescribeDBClusterEndpointsResult.cc | 93 +- .../DescribeDBClusterMigrationRequest.cc | 54 +- .../model/DescribeDBClusterMigrationResult.cc | 100 +- .../DescribeDBClusterParametersRequest.cc | 54 +- .../DescribeDBClusterParametersResult.cc | 93 +- .../src/model/DescribeDBClustersRequest.cc | 54 +- polardb/src/model/DescribeDBClustersResult.cc | 93 +- polardb/src/model/DescribeDatabasesRequest.cc | 54 +- polardb/src/model/DescribeDatabasesResult.cc | 93 +- polardb/src/model/DescribeRegionsRequest.cc | 54 +- polardb/src/model/DescribeRegionsResult.cc | 93 +- .../src/model/GrantAccountPrivilegeRequest.cc | 54 +- .../src/model/GrantAccountPrivilegeResult.cc | 93 +- polardb/src/model/ListTagResourcesRequest.cc | 54 +- polardb/src/model/ListTagResourcesResult.cc | 93 +- .../src/model/LockDBClusterDeletionRequest.cc | 54 +- .../src/model/LockDBClusterDeletionResult.cc | 93 +- .../model/ModifyAccountDescriptionRequest.cc | 54 +- .../model/ModifyAccountDescriptionResult.cc | 93 +- .../src/model/ModifyAccountPasswordRequest.cc | 54 +- .../src/model/ModifyAccountPasswordResult.cc | 93 +- .../model/ModifyAutoRenewAttributeRequest.cc | 54 +- .../model/ModifyAutoRenewAttributeResult.cc | 93 +- .../src/model/ModifyBackupPolicyRequest.cc | 54 +- polardb/src/model/ModifyBackupPolicyResult.cc | 93 +- .../ModifyDBClusterAccessWhitelistRequest.cc | 54 +- .../ModifyDBClusterAccessWhitelistResult.cc | 93 +- .../ModifyDBClusterDescriptionRequest.cc | 54 +- .../model/ModifyDBClusterDescriptionResult.cc | 93 +- .../model/ModifyDBClusterEndpointRequest.cc | 54 +- .../model/ModifyDBClusterEndpointResult.cc | 93 +- .../ModifyDBClusterMaintainTimeRequest.cc | 54 +- .../ModifyDBClusterMaintainTimeResult.cc | 93 +- .../model/ModifyDBClusterMigrationRequest.cc | 54 +- .../model/ModifyDBClusterMigrationResult.cc | 93 +- .../model/ModifyDBClusterParametersRequest.cc | 54 +- .../model/ModifyDBClusterParametersResult.cc | 93 +- .../src/model/ModifyDBDescriptionRequest.cc | 54 +- .../src/model/ModifyDBDescriptionResult.cc | 93 +- .../model/ModifyDBEndpointAddressRequest.cc | 54 +- .../model/ModifyDBEndpointAddressResult.cc | 93 +- polardb/src/model/ModifyDBNodeClassRequest.cc | 54 +- polardb/src/model/ModifyDBNodeClassResult.cc | 93 +- polardb/src/model/ResetAccountRequest.cc | 54 +- polardb/src/model/ResetAccountResult.cc | 93 +- polardb/src/model/RestartDBNodeRequest.cc | 54 +- polardb/src/model/RestartDBNodeResult.cc | 93 +- .../model/RevokeAccountPrivilegeRequest.cc | 54 +- .../src/model/RevokeAccountPrivilegeResult.cc | 93 +- polardb/src/model/TagResourcesRequest.cc | 54 +- polardb/src/model/TagResourcesResult.cc | 93 +- .../model/UnlockDBClusterDeletionRequest.cc | 54 +- .../model/UnlockDBClusterDeletionResult.cc | 93 +- polardb/src/model/UntagResourcesRequest.cc | 54 +- polardb/src/model/UntagResourcesResult.cc | 93 +- push/CMakeLists.txt | 16 +- push/include/alibabacloud/push/PushClient.h | 32 +- push/src/PushClient.cc | 150 +- push/src/model/BindAliasRequest.cc | 8 +- push/src/model/BindAliasResult.cc | 9 +- push/src/model/BindPhoneRequest.cc | 8 +- push/src/model/BindPhoneResult.cc | 9 +- push/src/model/BindTagRequest.cc | 10 +- push/src/model/BindTagResult.cc | 9 +- push/src/model/CancelPushRequest.cc | 6 +- push/src/model/CancelPushResult.cc | 9 +- push/src/model/CheckDeviceRequest.cc | 6 +- push/src/model/CheckDeviceResult.cc | 9 +- push/src/model/CheckDevicesRequest.cc | 6 +- push/src/model/CheckDevicesResult.cc | 9 +- push/src/model/ListPushRecordsRequest.cc | 14 +- push/src/model/ListPushRecordsResult.cc | 9 +- push/src/model/ListSummaryAppsRequest.cc | 2 +- push/src/model/ListSummaryAppsResult.cc | 9 +- push/src/model/ListTagsRequest.cc | 4 +- push/src/model/ListTagsResult.cc | 9 +- push/src/model/PushMessageToAndroidRequest.cc | 14 +- push/src/model/PushMessageToAndroidResult.cc | 9 +- push/src/model/PushMessageToiOSRequest.cc | 14 +- push/src/model/PushMessageToiOSResult.cc | 9 +- push/src/model/PushNoticeToAndroidRequest.cc | 16 +- push/src/model/PushNoticeToAndroidResult.cc | 9 +- push/src/model/PushNoticeToiOSRequest.cc | 18 +- push/src/model/PushNoticeToiOSResult.cc | 9 +- push/src/model/PushRequest.cc | 90 +- push/src/model/PushResult.cc | 9 +- push/src/model/QueryAliasesRequest.cc | 6 +- push/src/model/QueryAliasesResult.cc | 9 +- push/src/model/QueryDeviceInfoRequest.cc | 6 +- push/src/model/QueryDeviceInfoResult.cc | 9 +- push/src/model/QueryDeviceStatRequest.cc | 12 +- push/src/model/QueryDeviceStatResult.cc | 9 +- .../src/model/QueryDevicesByAccountRequest.cc | 6 +- push/src/model/QueryDevicesByAccountResult.cc | 9 +- push/src/model/QueryDevicesByAliasRequest.cc | 6 +- push/src/model/QueryDevicesByAliasResult.cc | 9 +- push/src/model/QueryPushListRequest.cc | 14 +- push/src/model/QueryPushListResult.cc | 9 +- push/src/model/QueryPushStatByAppRequest.cc | 10 +- push/src/model/QueryPushStatByAppResult.cc | 9 +- push/src/model/QueryPushStatByMsgRequest.cc | 6 +- push/src/model/QueryPushStatByMsgResult.cc | 9 +- push/src/model/QueryTagsRequest.cc | 8 +- push/src/model/QueryTagsResult.cc | 9 +- .../src/model/QueryUniqueDeviceStatRequest.cc | 10 +- push/src/model/QueryUniqueDeviceStatResult.cc | 9 +- push/src/model/RemoveTagRequest.cc | 6 +- push/src/model/RemoveTagResult.cc | 9 +- push/src/model/UnbindAliasRequest.cc | 10 +- push/src/model/UnbindAliasResult.cc | 9 +- push/src/model/UnbindPhoneRequest.cc | 6 +- push/src/model/UnbindPhoneResult.cc | 9 +- push/src/model/UnbindTagRequest.cc | 10 +- push/src/model/UnbindTagResult.cc | 9 +- pvtz/CMakeLists.txt | 8 +- pvtz/include/alibabacloud/pvtz/PvtzClient.h | 16 +- .../alibabacloud/pvtz/model/AddZoneRequest.h | 3 + .../pvtz/model/DescribeZoneInfoResult.h | 2 + .../pvtz/model/DescribeZonesRequest.h | 3 + pvtz/src/PvtzClient.cc | 72 +- pvtz/src/model/AddZoneRecordRequest.cc | 16 +- pvtz/src/model/AddZoneRecordResult.cc | 9 +- pvtz/src/model/AddZoneRequest.cc | 19 +- pvtz/src/model/AddZoneResult.cc | 9 +- pvtz/src/model/BindZoneVpcRequest.cc | 10 +- pvtz/src/model/BindZoneVpcResult.cc | 9 +- pvtz/src/model/CheckZoneNameRequest.cc | 6 +- pvtz/src/model/CheckZoneNameResult.cc | 9 +- pvtz/src/model/DeleteZoneRecordRequest.cc | 6 +- pvtz/src/model/DeleteZoneRecordResult.cc | 9 +- pvtz/src/model/DeleteZoneRequest.cc | 6 +- pvtz/src/model/DeleteZoneResult.cc | 9 +- pvtz/src/model/DescribeChangeLogsRequest.cc | 18 +- pvtz/src/model/DescribeChangeLogsResult.cc | 9 +- pvtz/src/model/DescribeRegionsRequest.cc | 6 +- pvtz/src/model/DescribeRegionsResult.cc | 9 +- pvtz/src/model/DescribeRequestGraphRequest.cc | 12 +- pvtz/src/model/DescribeRequestGraphResult.cc | 9 +- .../model/DescribeStatisticSummaryRequest.cc | 4 +- .../model/DescribeStatisticSummaryResult.cc | 9 +- .../model/DescribeUserServiceStatusRequest.cc | 4 +- .../model/DescribeUserServiceStatusResult.cc | 9 +- pvtz/src/model/DescribeZoneInfoRequest.cc | 6 +- pvtz/src/model/DescribeZoneInfoResult.cc | 16 +- pvtz/src/model/DescribeZoneRecordsRequest.cc | 16 +- pvtz/src/model/DescribeZoneRecordsResult.cc | 9 +- pvtz/src/model/DescribeZoneVpcTreeRequest.cc | 4 +- pvtz/src/model/DescribeZoneVpcTreeResult.cc | 9 +- pvtz/src/model/DescribeZonesRequest.cc | 27 +- pvtz/src/model/DescribeZonesResult.cc | 9 +- pvtz/src/model/SetProxyPatternRequest.cc | 8 +- pvtz/src/model/SetProxyPatternResult.cc | 9 +- pvtz/src/model/SetZoneRecordStatusRequest.cc | 8 +- pvtz/src/model/SetZoneRecordStatusResult.cc | 9 +- pvtz/src/model/UpdateZoneRecordRequest.cc | 16 +- pvtz/src/model/UpdateZoneRecordResult.cc | 9 +- pvtz/src/model/UpdateZoneRemarkRequest.cc | 8 +- pvtz/src/model/UpdateZoneRemarkResult.cc | 9 +- r-kvstore/CMakeLists.txt | 464 +- .../alibabacloud/r-kvstore/R_kvstoreClient.h | 176 +- .../r-kvstore/model/CreateInstanceRequest.h | 9 + .../model/CreateShardingInstanceRequest.h | 156 + .../model/CreateShardingInstanceResult.h | 62 + .../model/DescribeAvailableResourceRequest.h | 75 + .../model/DescribeAvailableResourceResult.h | 98 + .../model/DescribeShardingInstancesRequest.h | 69 + .../model/DescribeShardingInstancesResult.h | 64 + .../model/DescribeSlowLogRecordsRequest.h | 3 + .../r-kvstore/model/DescribeTagsRequest.h | 69 + .../r-kvstore/model/DescribeTagsResult.h | 58 + r-kvstore/src/R-kvstoreClient.cc | 582 +- .../AllocateInstancePublicConnectionResult.cc | 9 +- r-kvstore/src/model/CreateAccountResult.cc | 9 +- r-kvstore/src/model/CreateBackupResult.cc | 9 +- .../model/CreateCacheAnalysisTaskResult.cc | 9 +- r-kvstore/src/model/CreateInstanceRequest.cc | 33 + r-kvstore/src/model/CreateInstanceResult.cc | 9 +- .../model/CreateShardingInstanceRequest.cc | 434 + .../src/model/CreateShardingInstanceResult.cc | 81 + r-kvstore/src/model/CreateSnapshotResult.cc | 9 +- .../model/CreateStaticVerificationResult.cc | 9 +- .../src/model/CreateTempInstanceResult.cc | 9 +- r-kvstore/src/model/DeleteAccountResult.cc | 9 +- r-kvstore/src/model/DeleteInstanceResult.cc | 9 +- r-kvstore/src/model/DeleteSnapshotResult.cc | 9 +- .../src/model/DeleteSnapshotSettingsResult.cc | 9 +- .../src/model/DeleteTempInstanceResult.cc | 9 +- r-kvstore/src/model/DescribeAccountsResult.cc | 9 +- .../DescribeActiveOperationTaskCountResult.cc | 9 +- ...DescribeActiveOperationTaskRegionResult.cc | 9 +- .../DescribeActiveOperationTaskResult.cc | 9 +- .../DescribeActiveOperationTaskTypeResult.cc | 9 +- .../src/model/DescribeAuditRecordsResult.cc | 9 +- .../model/DescribeAvailableResourceRequest.cc | 137 + .../model/DescribeAvailableResourceResult.cc | 131 + .../src/model/DescribeBackupPolicyResult.cc | 9 +- r-kvstore/src/model/DescribeBackupsResult.cc | 9 +- .../DescribeCacheAnalysisReportListResult.cc | 9 +- .../DescribeCacheAnalysisReportResult.cc | 9 +- .../src/model/DescribeCertificationResult.cc | 9 +- .../model/DescribeDBInstanceMonitorResult.cc | 9 +- .../model/DescribeDBInstanceNetInfoResult.cc | 9 +- .../model/DescribeErrorLogRecordsResult.cc | 9 +- .../DescribeHistoryMonitorValuesResult.cc | 9 +- .../model/DescribeInstanceAttributeResult.cc | 9 +- ...cribeInstanceAutoRenewalAttributeResult.cc | 9 +- .../src/model/DescribeInstanceConfigResult.cc | 9 +- .../src/model/DescribeInstanceSSLResult.cc | 9 +- .../DescribeInstancesByExpireTimeResult.cc | 9 +- .../src/model/DescribeInstancesResult.cc | 9 +- .../model/DescribeIntranetAttributeResult.cc | 9 +- .../DescribeLogicInstanceTopologyResult.cc | 9 +- .../src/model/DescribeMonitorItemsResult.cc | 9 +- ...escribeMonthlyServiceStatusDetailResult.cc | 9 +- .../DescribeMonthlyServiceStatusResult.cc | 9 +- ...cribeParameterModificationHistoryResult.cc | 9 +- .../model/DescribeParameterTemplatesResult.cc | 9 +- .../src/model/DescribeParametersResult.cc | 9 +- .../src/model/DescribeRdsVSwitchsResult.cc | 9 +- r-kvstore/src/model/DescribeRdsVpcsResult.cc | 9 +- r-kvstore/src/model/DescribeRegionsResult.cc | 9 +- .../DescribeReplicaConflictInfoResult.cc | 9 +- ...DescribeReplicaInitializeProgressResult.cc | 9 +- .../model/DescribeReplicaPerformanceResult.cc | 9 +- .../src/model/DescribeReplicaUsageResult.cc | 9 +- r-kvstore/src/model/DescribeReplicasResult.cc | 9 +- .../model/DescribeRunningLogRecordsResult.cc | 9 +- .../src/model/DescribeSecurityIpsResult.cc | 9 +- .../model/DescribeShardingInstancesRequest.cc | 115 + .../model/DescribeShardingInstancesResult.cc | 80 + .../model/DescribeSlowLogRecordsRequest.cc | 11 + .../src/model/DescribeSlowLogRecordsResult.cc | 9 +- .../src/model/DescribeSnapshotsResult.cc | 9 +- .../DescribeStaticVerificationListResult.cc | 9 +- r-kvstore/src/model/DescribeStrategyResult.cc | 9 +- r-kvstore/src/model/DescribeTagsRequest.cc | 115 + r-kvstore/src/model/DescribeTagsResult.cc | 71 + .../src/model/DescribeTempInstanceResult.cc | 9 +- .../model/DescribeVerificationListResult.cc | 9 +- r-kvstore/src/model/DescribeZonesResult.cc | 9 +- r-kvstore/src/model/DestroyInstanceResult.cc | 9 +- .../src/model/EvaluateFailOverSwitchResult.cc | 9 +- r-kvstore/src/model/FlushInstanceResult.cc | 9 +- .../src/model/GetSnapshotSettingsResult.cc | 9 +- .../src/model/GrantAccountPrivilegeResult.cc | 9 +- r-kvstore/src/model/ListTagResourcesResult.cc | 9 +- .../src/model/MigrateToOtherZoneResult.cc | 9 +- .../model/ModifyAccountDescriptionResult.cc | 9 +- .../model/ModifyActiveOperationTaskResult.cc | 9 +- .../src/model/ModifyAuditLogConfigResult.cc | 9 +- .../src/model/ModifyBackupPolicyResult.cc | 9 +- .../src/model/ModifyCertificationResult.cc | 9 +- .../ModifyDBInstanceConnectionStringResult.cc | 9 +- .../model/ModifyDBInstanceMonitorResult.cc | 9 +- .../src/model/ModifyGuardDomainModeResult.cc | 9 +- .../model/ModifyInstanceAttributeResult.cc | 9 +- ...odifyInstanceAutoRenewalAttributeResult.cc | 9 +- .../src/model/ModifyInstanceConfigResult.cc | 9 +- .../model/ModifyInstanceMaintainTimeResult.cc | 9 +- .../model/ModifyInstanceMajorVersionResult.cc | 9 +- .../model/ModifyInstanceMinorVersionResult.cc | 9 +- .../ModifyInstanceNetExpireTimeResult.cc | 9 +- .../src/model/ModifyInstanceSSLResult.cc | 9 +- .../model/ModifyInstanceSpecPreCheckResult.cc | 9 +- .../src/model/ModifyInstanceSpecResult.cc | 9 +- .../model/ModifyInstanceVpcAuthModeResult.cc | 9 +- .../model/ModifyIntranetAttributeResult.cc | 9 +- .../model/ModifyReplicaDescriptionResult.cc | 9 +- .../src/model/ModifyReplicaModeResult.cc | 9 +- .../model/ModifyReplicaRecoveryModeResult.cc | 9 +- .../src/model/ModifyReplicaRelationResult.cc | 9 +- .../ModifyReplicaVerificationModeResult.cc | 9 +- .../src/model/ModifySecurityIpsResult.cc | 9 +- r-kvstore/src/model/QueryTaskResult.cc | 9 +- .../ReleaseInstancePublicConnectionResult.cc | 9 +- r-kvstore/src/model/ReleaseReplicaResult.cc | 9 +- r-kvstore/src/model/RenewInstanceResult.cc | 9 +- .../src/model/RenewMultiInstanceResult.cc | 9 +- .../src/model/ResetAccountPasswordResult.cc | 9 +- r-kvstore/src/model/ResetAccountResult.cc | 9 +- r-kvstore/src/model/RestartInstanceResult.cc | 9 +- r-kvstore/src/model/RestoreInstanceResult.cc | 9 +- r-kvstore/src/model/RestoreSnapshotResult.cc | 9 +- .../src/model/RevokeAccountPrivilegeResult.cc | 9 +- .../src/model/SetSnapshotSettingsResult.cc | 9 +- r-kvstore/src/model/SwitchNetworkResult.cc | 9 +- .../src/model/SwitchTempInstanceResult.cc | 9 +- r-kvstore/src/model/TagResourcesResult.cc | 9 +- .../src/model/TransformToPrePaidResult.cc | 9 +- .../src/model/UnlinkReplicaInstanceResult.cc | 9 +- r-kvstore/src/model/UntagResourcesResult.cc | 9 +- r-kvstore/src/model/VerifyPasswordResult.cc | 9 +- ram/CMakeLists.txt | 76 +- ram/include/alibabacloud/ram/RamClient.h | 144 +- .../ram/model/CreatePolicyVersionRequest.h | 3 + .../alibabacloud/ram/model/GetPolicyResult.h | 9 + ram/src/RamClient.cc | 648 +- ram/src/model/AddUserToGroupRequest.cc | 4 +- ram/src/model/AddUserToGroupResult.cc | 9 +- ram/src/model/AttachPolicyToGroupRequest.cc | 6 +- ram/src/model/AttachPolicyToGroupResult.cc | 9 +- ram/src/model/AttachPolicyToRoleRequest.cc | 6 +- ram/src/model/AttachPolicyToRoleResult.cc | 9 +- ram/src/model/AttachPolicyToUserRequest.cc | 6 +- ram/src/model/AttachPolicyToUserResult.cc | 9 +- ram/src/model/BindMFADeviceRequest.cc | 8 +- ram/src/model/BindMFADeviceResult.cc | 9 +- ram/src/model/ChangePasswordRequest.cc | 4 +- ram/src/model/ChangePasswordResult.cc | 9 +- ram/src/model/ClearAccountAliasResult.cc | 9 +- ram/src/model/CreateAccessKeyRequest.cc | 2 +- ram/src/model/CreateAccessKeyResult.cc | 9 +- ram/src/model/CreateGroupRequest.cc | 4 +- ram/src/model/CreateGroupResult.cc | 9 +- ram/src/model/CreateLoginProfileRequest.cc | 8 +- ram/src/model/CreateLoginProfileResult.cc | 9 +- ram/src/model/CreatePolicyRequest.cc | 6 +- ram/src/model/CreatePolicyResult.cc | 9 +- ram/src/model/CreatePolicyVersionRequest.cc | 17 +- ram/src/model/CreatePolicyVersionResult.cc | 9 +- ram/src/model/CreateRoleRequest.cc | 6 +- ram/src/model/CreateRoleResult.cc | 9 +- ram/src/model/CreateUserRequest.cc | 10 +- ram/src/model/CreateUserResult.cc | 9 +- .../model/CreateVirtualMFADeviceRequest.cc | 2 +- ram/src/model/CreateVirtualMFADeviceResult.cc | 9 +- ram/src/model/DeleteAccessKeyRequest.cc | 4 +- ram/src/model/DeleteAccessKeyResult.cc | 9 +- ram/src/model/DeleteGroupRequest.cc | 2 +- ram/src/model/DeleteGroupResult.cc | 9 +- ram/src/model/DeleteLoginProfileRequest.cc | 2 +- ram/src/model/DeleteLoginProfileResult.cc | 9 +- ram/src/model/DeletePolicyRequest.cc | 2 +- ram/src/model/DeletePolicyResult.cc | 9 +- ram/src/model/DeletePolicyVersionRequest.cc | 4 +- ram/src/model/DeletePolicyVersionResult.cc | 9 +- ram/src/model/DeleteRoleRequest.cc | 2 +- ram/src/model/DeleteRoleResult.cc | 9 +- ram/src/model/DeleteUserRequest.cc | 2 +- ram/src/model/DeleteUserResult.cc | 9 +- .../model/DeleteVirtualMFADeviceRequest.cc | 2 +- ram/src/model/DeleteVirtualMFADeviceResult.cc | 9 +- ram/src/model/DetachPolicyFromGroupRequest.cc | 6 +- ram/src/model/DetachPolicyFromGroupResult.cc | 9 +- ram/src/model/DetachPolicyFromRoleRequest.cc | 6 +- ram/src/model/DetachPolicyFromRoleResult.cc | 9 +- ram/src/model/DetachPolicyFromUserRequest.cc | 6 +- ram/src/model/DetachPolicyFromUserResult.cc | 9 +- ram/src/model/GetAccessKeyLastUsedRequest.cc | 4 +- ram/src/model/GetAccessKeyLastUsedResult.cc | 9 +- ram/src/model/GetAccountAliasResult.cc | 9 +- ram/src/model/GetGroupRequest.cc | 2 +- ram/src/model/GetGroupResult.cc | 9 +- ram/src/model/GetLoginProfileRequest.cc | 2 +- ram/src/model/GetLoginProfileResult.cc | 9 +- ram/src/model/GetPasswordPolicyResult.cc | 9 +- ram/src/model/GetPolicyRequest.cc | 4 +- ram/src/model/GetPolicyResult.cc | 23 +- ram/src/model/GetPolicyVersionRequest.cc | 6 +- ram/src/model/GetPolicyVersionResult.cc | 9 +- ram/src/model/GetRoleRequest.cc | 2 +- ram/src/model/GetRoleResult.cc | 9 +- ram/src/model/GetSecurityPreferenceResult.cc | 9 +- ram/src/model/GetUserMFAInfoRequest.cc | 2 +- ram/src/model/GetUserMFAInfoResult.cc | 9 +- ram/src/model/GetUserRequest.cc | 2 +- ram/src/model/GetUserResult.cc | 9 +- ram/src/model/ListAccessKeysRequest.cc | 2 +- ram/src/model/ListAccessKeysResult.cc | 9 +- ram/src/model/ListEntitiesForPolicyRequest.cc | 4 +- ram/src/model/ListEntitiesForPolicyResult.cc | 9 +- ram/src/model/ListGroupsForUserRequest.cc | 2 +- ram/src/model/ListGroupsForUserResult.cc | 9 +- ram/src/model/ListGroupsRequest.cc | 4 +- ram/src/model/ListGroupsResult.cc | 9 +- ram/src/model/ListPoliciesForGroupRequest.cc | 2 +- ram/src/model/ListPoliciesForGroupResult.cc | 9 +- ram/src/model/ListPoliciesForRoleRequest.cc | 2 +- ram/src/model/ListPoliciesForRoleResult.cc | 9 +- ram/src/model/ListPoliciesForUserRequest.cc | 2 +- ram/src/model/ListPoliciesForUserResult.cc | 9 +- ram/src/model/ListPoliciesRequest.cc | 6 +- ram/src/model/ListPoliciesResult.cc | 9 +- ram/src/model/ListPolicyVersionsRequest.cc | 4 +- ram/src/model/ListPolicyVersionsResult.cc | 9 +- ram/src/model/ListRolesRequest.cc | 4 +- ram/src/model/ListRolesResult.cc | 9 +- ram/src/model/ListUsersForGroupRequest.cc | 6 +- ram/src/model/ListUsersForGroupResult.cc | 9 +- ram/src/model/ListUsersRequest.cc | 4 +- ram/src/model/ListUsersResult.cc | 9 +- ram/src/model/ListVirtualMFADevicesResult.cc | 9 +- ram/src/model/RemoveUserFromGroupRequest.cc | 4 +- ram/src/model/RemoveUserFromGroupResult.cc | 9 +- ram/src/model/SetAccountAliasRequest.cc | 2 +- ram/src/model/SetAccountAliasResult.cc | 9 +- .../model/SetDefaultPolicyVersionRequest.cc | 4 +- .../model/SetDefaultPolicyVersionResult.cc | 9 +- ram/src/model/SetPasswordPolicyRequest.cc | 18 +- ram/src/model/SetPasswordPolicyResult.cc | 9 +- ram/src/model/SetSecurityPreferenceRequest.cc | 14 +- ram/src/model/SetSecurityPreferenceResult.cc | 9 +- ram/src/model/UnbindMFADeviceRequest.cc | 2 +- ram/src/model/UnbindMFADeviceResult.cc | 9 +- ram/src/model/UpdateAccessKeyRequest.cc | 6 +- ram/src/model/UpdateAccessKeyResult.cc | 9 +- ram/src/model/UpdateGroupRequest.cc | 6 +- ram/src/model/UpdateGroupResult.cc | 9 +- ram/src/model/UpdateLoginProfileRequest.cc | 8 +- ram/src/model/UpdateLoginProfileResult.cc | 9 +- ram/src/model/UpdateRoleRequest.cc | 4 +- ram/src/model/UpdateRoleResult.cc | 9 +- ram/src/model/UpdateUserRequest.cc | 12 +- ram/src/model/UpdateUserResult.cc | 9 +- rds/CMakeLists.txt | 776 +- rds/include/alibabacloud/rds/RdsClient.h | 1436 +- rds/include/alibabacloud/rds/RdsExport.h | 62 +- .../rds/model/AddTagsToResourceRequest.h | 88 +- .../rds/model/AddTagsToResourceResult.h | 96 +- ...AllocateInstancePrivateConnectionRequest.h | 88 +- .../AllocateInstancePrivateConnectionResult.h | 96 +- .../AllocateInstancePublicConnectionRequest.h | 88 +- .../AllocateInstancePublicConnectionResult.h | 96 +- .../AllocateInstanceVpcNetworkTypeRequest.h | 88 +- .../AllocateInstanceVpcNetworkTypeResult.h | 96 +- ...ocateReadWriteSplittingConnectionRequest.h | 88 +- ...locateReadWriteSplittingConnectionResult.h | 96 +- .../model/CalculateDBInstanceWeightRequest.h | 88 +- .../model/CalculateDBInstanceWeightResult.h | 96 +- .../rds/model/CancelImportRequest.h | 88 +- .../rds/model/CancelImportResult.h | 96 +- .../model/CheckAccountNameAvailableRequest.h | 88 +- .../model/CheckAccountNameAvailableResult.h | 96 +- .../model/CheckCreateDdrDBInstanceRequest.h | 102 + .../model/CheckCreateDdrDBInstanceResult.h | 51 + .../rds/model/CheckInstanceExistRequest.h | 88 +- .../rds/model/CheckInstanceExistResult.h | 96 +- .../model/CheckRecoveryConditionsRequest.h | 88 +- .../rds/model/CheckRecoveryConditionsResult.h | 96 +- .../rds/model/CheckResourceRequest.h | 88 +- .../rds/model/CheckResourceResult.h | 96 +- .../rds/model/CloneDBInstanceRequest.h | 148 +- .../rds/model/CloneDBInstanceResult.h | 96 +- .../CopyDatabaseBetweenInstancesRequest.h | 88 +- .../CopyDatabaseBetweenInstancesResult.h | 96 +- .../rds/model/CopyDatabaseRequest.h | 88 +- .../rds/model/CopyDatabaseResult.h | 96 +- .../rds/model/CreateAccountRequest.h | 88 +- .../rds/model/CreateAccountResult.h | 96 +- .../rds/model/CreateBackupRequest.h | 88 +- .../rds/model/CreateBackupResult.h | 96 +- .../model/CreateDBInstanceReplicaRequest.h | 88 +- .../rds/model/CreateDBInstanceReplicaResult.h | 96 +- .../rds/model/CreateDBInstanceRequest.h | 97 +- .../rds/model/CreateDBInstanceResult.h | 96 +- .../rds/model/CreateDatabaseRequest.h | 88 +- .../rds/model/CreateDatabaseResult.h | 96 +- .../rds/model/CreateDdrInstanceRequest.h | 156 + .../rds/model/CreateDdrInstanceResult.h | 57 + .../rds/model/CreateDiagnosticReportRequest.h | 88 +- .../rds/model/CreateDiagnosticReportResult.h | 96 +- .../CreateMigrateTaskForSQLServerRequest.h | 88 +- .../CreateMigrateTaskForSQLServerResult.h | 96 +- .../rds/model/CreateMigrateTaskRequest.h | 88 +- .../rds/model/CreateMigrateTaskResult.h | 96 +- .../model/CreateOnlineDatabaseTaskRequest.h | 88 +- .../model/CreateOnlineDatabaseTaskResult.h | 96 +- .../model/CreateReadOnlyDBInstanceRequest.h | 88 +- .../model/CreateReadOnlyDBInstanceResult.h | 96 +- .../rds/model/CreateTempDBInstanceRequest.h | 88 +- .../rds/model/CreateTempDBInstanceResult.h | 96 +- .../rds/model/DeleteAccountRequest.h | 88 +- .../rds/model/DeleteAccountResult.h | 96 +- .../rds/model/DeleteBackupRequest.h | 88 +- .../rds/model/DeleteBackupResult.h | 96 +- .../rds/model/DeleteDBInstanceRequest.h | 88 +- .../rds/model/DeleteDBInstanceResult.h | 96 +- .../rds/model/DeleteDatabaseRequest.h | 88 +- .../rds/model/DeleteDatabaseResult.h | 96 +- .../model/DescibeImportsFromDatabaseRequest.h | 88 +- .../model/DescibeImportsFromDatabaseResult.h | 96 +- .../rds/model/DescribeAccountsRequest.h | 88 +- .../rds/model/DescribeAccountsResult.h | 96 +- .../DescribeAvailableCrossRegionRequest.h | 60 + .../DescribeAvailableCrossRegionResult.h | 51 + .../DescribeAvailableInstanceClassRequest.h | 88 +- .../DescribeAvailableInstanceClassResult.h | 96 +- .../DescribeAvailableRecoveryTimeRequest.h | 63 + .../DescribeAvailableRecoveryTimeResult.h | 59 + .../model/DescribeAvailableResourceRequest.h | 91 +- .../model/DescribeAvailableResourceResult.h | 123 +- .../rds/model/DescribeBackupDatabaseRequest.h | 88 +- .../rds/model/DescribeBackupDatabaseResult.h | 96 +- .../rds/model/DescribeBackupPolicyRequest.h | 88 +- .../rds/model/DescribeBackupPolicyResult.h | 96 +- .../rds/model/DescribeBackupTasksRequest.h | 88 +- .../rds/model/DescribeBackupTasksResult.h | 96 +- .../rds/model/DescribeBackupsRequest.h | 88 +- .../rds/model/DescribeBackupsResult.h | 96 +- .../rds/model/DescribeBinlogFilesRequest.h | 88 +- .../rds/model/DescribeBinlogFilesResult.h | 96 +- .../model/DescribeCharacterSetNameRequest.h | 88 +- .../model/DescribeCharacterSetNameResult.h | 96 +- .../DescribeCloudDbExpertServiceRequest.h | 88 +- .../DescribeCloudDbExpertServiceResult.h | 96 +- .../model/DescribeCollationTimeZonesRequest.h | 88 +- .../model/DescribeCollationTimeZonesResult.h | 96 +- ...scribeCrossRegionBackupDBInstanceRequest.h | 69 + ...escribeCrossRegionBackupDBInstanceResult.h | 81 + .../model/DescribeCrossRegionBackupsRequest.h | 81 + .../model/DescribeCrossRegionBackupsResult.h | 85 + ...DescribeCrossRegionLogBackupFilesRequest.h | 78 + .../DescribeCrossRegionLogBackupFilesResult.h | 78 + .../DescribeDBInstanceAttributeRequest.h | 88 +- .../model/DescribeDBInstanceAttributeResult.h | 97 +- .../model/DescribeDBInstanceByTagsRequest.h | 88 +- .../model/DescribeDBInstanceByTagsResult.h | 96 +- .../model/DescribeDBInstanceHAConfigRequest.h | 88 +- .../model/DescribeDBInstanceHAConfigResult.h | 96 +- .../DescribeDBInstanceIPArrayListRequest.h | 88 +- .../DescribeDBInstanceIPArrayListResult.h | 96 +- .../DescribeDBInstanceIpHostnameRequest.h | 69 + .../DescribeDBInstanceIpHostnameResult.h | 53 + .../model/DescribeDBInstanceMonitorRequest.h | 88 +- .../model/DescribeDBInstanceMonitorResult.h | 96 +- .../model/DescribeDBInstanceNetInfoRequest.h | 88 +- .../model/DescribeDBInstanceNetInfoResult.h | 96 +- .../DescribeDBInstancePerformanceRequest.h | 88 +- .../DescribeDBInstancePerformanceResult.h | 96 +- ...cribeDBInstanceProxyConfigurationRequest.h | 88 +- ...scribeDBInstanceProxyConfigurationResult.h | 96 +- .../rds/model/DescribeDBInstanceSSLRequest.h | 88 +- .../rds/model/DescribeDBInstanceSSLResult.h | 96 +- .../rds/model/DescribeDBInstanceTDERequest.h | 88 +- .../rds/model/DescribeDBInstanceTDEResult.h | 96 +- .../model/DescribeDBInstancesAsCsvRequest.h | 88 +- .../model/DescribeDBInstancesAsCsvResult.h | 96 +- .../DescribeDBInstancesByExpireTimeRequest.h | 88 +- .../DescribeDBInstancesByExpireTimeResult.h | 96 +- .../DescribeDBInstancesByPerformanceRequest.h | 88 +- .../DescribeDBInstancesByPerformanceResult.h | 96 +- .../rds/model/DescribeDBInstancesRequest.h | 88 +- .../rds/model/DescribeDBInstancesResult.h | 97 +- ...ibeDTCSecurityIpHostsForSQLServerRequest.h | 69 + ...ribeDTCSecurityIpHostsForSQLServerResult.h | 60 + .../rds/model/DescribeDatabasesRequest.h | 88 +- .../rds/model/DescribeDatabasesResult.h | 96 +- .../DescribeDiagnosticReportListRequest.h | 88 +- .../DescribeDiagnosticReportListResult.h | 96 +- .../rds/model/DescribeErrorLogsRequest.h | 88 +- .../rds/model/DescribeErrorLogsResult.h | 96 +- ...cribeInstanceAutoRenewalAttributeRequest.h | 88 +- ...scribeInstanceAutoRenewalAttributeResult.h | 96 +- ...DescribeInstanceCrossBackupPolicyRequest.h | 63 + .../DescribeInstanceCrossBackupPolicyResult.h | 91 + .../DescribeInstanceVpcMigrateInfoRequest.h | 88 +- .../DescribeInstanceVpcMigrateInfoResult.h | 96 +- .../rds/model/DescribeLogBackupFilesRequest.h | 88 +- .../rds/model/DescribeLogBackupFilesResult.h | 96 +- .../rds/model/DescribeMetaListRequest.h | 88 +- .../rds/model/DescribeMetaListResult.h | 96 +- .../DescribeMigrateTasksForSQLServerRequest.h | 88 +- .../DescribeMigrateTasksForSQLServerResult.h | 96 +- .../rds/model/DescribeMigrateTasksRequest.h | 88 +- .../rds/model/DescribeMigrateTasksResult.h | 96 +- .../model/DescribeModifyParameterLogRequest.h | 88 +- .../model/DescribeModifyParameterLogResult.h | 96 +- .../DescribeOssDownloadsForSQLServerRequest.h | 88 +- .../DescribeOssDownloadsForSQLServerResult.h | 96 +- .../rds/model/DescribeOssDownloadsRequest.h | 88 +- .../rds/model/DescribeOssDownloadsResult.h | 96 +- .../model/DescribeParameterTemplatesRequest.h | 88 +- .../model/DescribeParameterTemplatesResult.h | 96 +- .../rds/model/DescribeParametersRequest.h | 88 +- .../rds/model/DescribeParametersResult.h | 96 +- .../rds/model/DescribePriceRequest.h | 88 +- .../rds/model/DescribePriceResult.h | 96 +- .../DescribeProxyFunctionSupportRequest.h | 88 +- .../DescribeProxyFunctionSupportResult.h | 96 +- .../DescribeReadDBInstanceDelayRequest.h | 88 +- .../model/DescribeReadDBInstanceDelayResult.h | 96 +- .../rds/model/DescribeRegionsRequest.h | 88 +- .../rds/model/DescribeRegionsResult.h | 96 +- .../rds/model/DescribeRenewalPriceRequest.h | 88 +- .../rds/model/DescribeRenewalPriceResult.h | 96 +- .../rds/model/DescribeResourceUsageRequest.h | 88 +- .../rds/model/DescribeResourceUsageResult.h | 96 +- .../rds/model/DescribeSQLLogFilesRequest.h | 88 +- .../rds/model/DescribeSQLLogFilesResult.h | 96 +- .../rds/model/DescribeSQLLogRecordsRequest.h | 88 +- .../rds/model/DescribeSQLLogRecordsResult.h | 96 +- .../model/DescribeSQLLogReportListRequest.h | 88 +- .../model/DescribeSQLLogReportListResult.h | 96 +- .../rds/model/DescribeSQLLogReportsRequest.h | 88 +- .../rds/model/DescribeSQLLogReportsResult.h | 96 +- .../rds/model/DescribeSQLReportsRequest.h | 88 +- .../rds/model/DescribeSQLReportsResult.h | 96 +- ...escribeSecurityGroupConfigurationRequest.h | 88 +- ...DescribeSecurityGroupConfigurationResult.h | 96 +- .../rds/model/DescribeSlowLogRecordsRequest.h | 88 +- .../rds/model/DescribeSlowLogRecordsResult.h | 96 +- .../rds/model/DescribeSlowLogsRequest.h | 88 +- .../rds/model/DescribeSlowLogsResult.h | 96 +- .../rds/model/DescribeTagsRequest.h | 88 +- .../rds/model/DescribeTagsResult.h | 96 +- .../rds/model/DescribeTaskInfoRequest.h | 88 +- .../rds/model/DescribeTaskInfoResult.h | 96 +- .../rds/model/DescribeTasksRequest.h | 88 +- .../rds/model/DescribeTasksResult.h | 96 +- .../rds/model/DescribeTemplatesListRequest.h | 88 +- .../rds/model/DescribeTemplatesListResult.h | 96 +- .../model/EvaluateSupportByokShowRequest.h | 88 +- .../rds/model/EvaluateSupportByokShowResult.h | 96 +- .../rds/model/GrantAccountPrivilegeRequest.h | 88 +- .../rds/model/GrantAccountPrivilegeResult.h | 96 +- .../model/GrantOperatorPermissionRequest.h | 88 +- .../rds/model/GrantOperatorPermissionResult.h | 96 +- .../rds/model/ImportDataForSQLServerRequest.h | 88 +- .../rds/model/ImportDataForSQLServerResult.h | 96 +- .../ImportDatabaseBetweenInstancesRequest.h | 88 +- .../ImportDatabaseBetweenInstancesResult.h | 96 +- .../rds/model/MigrateSecurityIPModeRequest.h | 88 +- .../rds/model/MigrateSecurityIPModeResult.h | 96 +- .../rds/model/MigrateToOtherRegionRequest.h | 88 +- .../rds/model/MigrateToOtherRegionResult.h | 96 +- .../rds/model/MigrateToOtherZoneRequest.h | 88 +- .../rds/model/MigrateToOtherZoneResult.h | 96 +- .../model/ModifyAccountDescriptionRequest.h | 88 +- .../model/ModifyAccountDescriptionResult.h | 96 +- .../rds/model/ModifyBackupPolicyRequest.h | 88 +- .../rds/model/ModifyBackupPolicyResult.h | 96 +- .../model/ModifyCollationTimeZoneRequest.h | 88 +- .../rds/model/ModifyCollationTimeZoneResult.h | 96 +- .../rds/model/ModifyDBDescriptionRequest.h | 88 +- .../rds/model/ModifyDBDescriptionResult.h | 96 +- ...DBInstanceAutoUpgradeMinorVersionRequest.h | 66 + ...yDBInstanceAutoUpgradeMinorVersionResult.h | 49 + .../ModifyDBInstanceConnectionModeRequest.h | 88 +- .../ModifyDBInstanceConnectionModeResult.h | 96 +- .../ModifyDBInstanceConnectionStringRequest.h | 88 +- .../ModifyDBInstanceConnectionStringResult.h | 96 +- .../ModifyDBInstanceDescriptionRequest.h | 88 +- .../model/ModifyDBInstanceDescriptionResult.h | 96 +- .../model/ModifyDBInstanceHAConfigRequest.h | 88 +- .../model/ModifyDBInstanceHAConfigResult.h | 96 +- .../ModifyDBInstanceMaintainTimeRequest.h | 88 +- .../ModifyDBInstanceMaintainTimeResult.h | 96 +- .../model/ModifyDBInstanceMonitorRequest.h | 88 +- .../rds/model/ModifyDBInstanceMonitorResult.h | 96 +- ...ModifyDBInstanceNetworkExpireTimeRequest.h | 88 +- .../ModifyDBInstanceNetworkExpireTimeResult.h | 96 +- .../ModifyDBInstanceNetworkTypeRequest.h | 88 +- .../model/ModifyDBInstanceNetworkTypeResult.h | 96 +- .../model/ModifyDBInstancePayTypeRequest.h | 87 + .../rds/model/ModifyDBInstancePayTypeResult.h | 53 + ...odifyDBInstanceProxyConfigurationRequest.h | 88 +- ...ModifyDBInstanceProxyConfigurationResult.h | 96 +- .../rds/model/ModifyDBInstanceSSLRequest.h | 88 +- .../rds/model/ModifyDBInstanceSSLResult.h | 96 +- .../rds/model/ModifyDBInstanceSpecRequest.h | 88 +- .../rds/model/ModifyDBInstanceSpecResult.h | 96 +- .../rds/model/ModifyDBInstanceTDERequest.h | 88 +- .../rds/model/ModifyDBInstanceTDEResult.h | 96 +- ...ifyDTCSecurityIpHostsForSQLServerRequest.h | 75 + ...difyDTCSecurityIpHostsForSQLServerResult.h | 55 + ...odifyInstanceAutoRenewalAttributeRequest.h | 88 +- ...ModifyInstanceAutoRenewalAttributeResult.h | 96 +- .../ModifyInstanceCrossBackupPolicyRequest.h | 93 + .../ModifyInstanceCrossBackupPolicyResult.h | 71 + .../model/ModifyMySQLDBInstanceDelayRequest.h | 88 +- .../model/ModifyMySQLDBInstanceDelayResult.h | 96 +- .../rds/model/ModifyParameterRequest.h | 91 +- .../rds/model/ModifyParameterResult.h | 96 +- ...odifyReadWriteSplittingConnectionRequest.h | 88 +- ...ModifyReadWriteSplittingConnectionResult.h | 96 +- ...donlyInstanceDelayReplicationTimeRequest.h | 88 +- ...adonlyInstanceDelayReplicationTimeResult.h | 96 +- .../model/ModifyReplicaDescriptionRequest.h | 88 +- .../model/ModifyReplicaDescriptionResult.h | 96 +- .../rds/model/ModifyResourceGroupRequest.h | 88 +- .../rds/model/ModifyResourceGroupResult.h | 96 +- .../model/ModifySQLCollectorPolicyRequest.h | 88 +- .../model/ModifySQLCollectorPolicyResult.h | 96 +- .../ModifySecurityGroupConfigurationRequest.h | 88 +- .../ModifySecurityGroupConfigurationResult.h | 96 +- .../rds/model/ModifySecurityIpsRequest.h | 88 +- .../rds/model/ModifySecurityIpsResult.h | 96 +- .../rds/model/PurgeDBInstanceLogRequest.h | 88 +- .../rds/model/PurgeDBInstanceLogResult.h | 96 +- .../rds/model/RecoveryDBInstanceRequest.h | 88 +- .../rds/model/RecoveryDBInstanceResult.h | 96 +- .../ReleaseInstancePublicConnectionRequest.h | 88 +- .../ReleaseInstancePublicConnectionResult.h | 96 +- ...leaseReadWriteSplittingConnectionRequest.h | 88 +- ...eleaseReadWriteSplittingConnectionResult.h | 96 +- .../rds/model/RemoveTagsFromResourceRequest.h | 88 +- .../rds/model/RemoveTagsFromResourceResult.h | 96 +- .../rds/model/RenewInstanceRequest.h | 88 +- .../rds/model/RenewInstanceResult.h | 96 +- .../RequestServiceOfCloudDBExpertRequest.h | 88 +- .../RequestServiceOfCloudDBExpertResult.h | 96 +- .../rds/model/ResetAccountForPGRequest.h | 88 +- .../rds/model/ResetAccountForPGResult.h | 96 +- .../rds/model/ResetAccountPasswordRequest.h | 88 +- .../rds/model/ResetAccountPasswordResult.h | 96 +- .../rds/model/ResetAccountRequest.h | 88 +- .../rds/model/ResetAccountResult.h | 96 +- .../rds/model/RestartDBInstanceRequest.h | 88 +- .../rds/model/RestartDBInstanceResult.h | 96 +- .../rds/model/RestoreDBInstanceRequest.h | 88 +- .../rds/model/RestoreDBInstanceResult.h | 96 +- .../rds/model/RestoreTableRequest.h | 88 +- .../rds/model/RestoreTableResult.h | 96 +- .../rds/model/RevokeAccountPrivilegeRequest.h | 88 +- .../rds/model/RevokeAccountPrivilegeResult.h | 96 +- .../model/RevokeOperatorPermissionRequest.h | 88 +- .../model/RevokeOperatorPermissionResult.h | 96 +- .../rds/model/SwitchDBInstanceHARequest.h | 88 +- .../rds/model/SwitchDBInstanceHAResult.h | 96 +- .../model/SwitchDBInstanceNetTypeRequest.h | 88 +- .../rds/model/SwitchDBInstanceNetTypeResult.h | 96 +- .../rds/model/SwitchDBInstanceVpcRequest.h | 88 +- .../rds/model/SwitchDBInstanceVpcResult.h | 96 +- .../UpgradeDBInstanceEngineVersionRequest.h | 88 +- .../UpgradeDBInstanceEngineVersionResult.h | 96 +- .../UpgradeDBInstanceKernelVersionRequest.h | 88 +- .../UpgradeDBInstanceKernelVersionResult.h | 96 +- rds/src/RdsClient.cc | 10760 +++++++------ rds/src/model/AddTagsToResourceRequest.cc | 54 +- rds/src/model/AddTagsToResourceResult.cc | 93 +- ...llocateInstancePrivateConnectionRequest.cc | 54 +- ...AllocateInstancePrivateConnectionResult.cc | 93 +- ...AllocateInstancePublicConnectionRequest.cc | 54 +- .../AllocateInstancePublicConnectionResult.cc | 93 +- .../AllocateInstanceVpcNetworkTypeRequest.cc | 54 +- .../AllocateInstanceVpcNetworkTypeResult.cc | 93 +- ...cateReadWriteSplittingConnectionRequest.cc | 54 +- ...ocateReadWriteSplittingConnectionResult.cc | 93 +- .../model/CalculateDBInstanceWeightRequest.cc | 54 +- .../model/CalculateDBInstanceWeightResult.cc | 93 +- rds/src/model/CancelImportRequest.cc | 54 +- rds/src/model/CancelImportResult.cc | 93 +- .../model/CheckAccountNameAvailableRequest.cc | 54 +- .../model/CheckAccountNameAvailableResult.cc | 93 +- .../model/CheckCreateDdrDBInstanceRequest.cc | 236 + .../model/CheckCreateDdrDBInstanceResult.cc | 55 + rds/src/model/CheckInstanceExistRequest.cc | 54 +- rds/src/model/CheckInstanceExistResult.cc | 93 +- .../model/CheckRecoveryConditionsRequest.cc | 54 +- .../model/CheckRecoveryConditionsResult.cc | 93 +- rds/src/model/CheckResourceRequest.cc | 54 +- rds/src/model/CheckResourceResult.cc | 93 +- rds/src/model/CloneDBInstanceRequest.cc | 262 +- rds/src/model/CloneDBInstanceResult.cc | 93 +- .../CopyDatabaseBetweenInstancesRequest.cc | 54 +- .../CopyDatabaseBetweenInstancesResult.cc | 93 +- rds/src/model/CopyDatabaseRequest.cc | 54 +- rds/src/model/CopyDatabaseResult.cc | 93 +- rds/src/model/CreateAccountRequest.cc | 54 +- rds/src/model/CreateAccountResult.cc | 93 +- rds/src/model/CreateBackupRequest.cc | 54 +- rds/src/model/CreateBackupResult.cc | 93 +- .../model/CreateDBInstanceReplicaRequest.cc | 54 +- .../model/CreateDBInstanceReplicaResult.cc | 93 +- rds/src/model/CreateDBInstanceRequest.cc | 87 +- rds/src/model/CreateDBInstanceResult.cc | 93 +- rds/src/model/CreateDatabaseRequest.cc | 54 +- rds/src/model/CreateDatabaseResult.cc | 93 +- rds/src/model/CreateDdrInstanceRequest.cc | 434 + rds/src/model/CreateDdrInstanceResult.cc | 76 + .../model/CreateDiagnosticReportRequest.cc | 54 +- rds/src/model/CreateDiagnosticReportResult.cc | 93 +- .../CreateMigrateTaskForSQLServerRequest.cc | 54 +- .../CreateMigrateTaskForSQLServerResult.cc | 93 +- rds/src/model/CreateMigrateTaskRequest.cc | 54 +- rds/src/model/CreateMigrateTaskResult.cc | 93 +- .../model/CreateOnlineDatabaseTaskRequest.cc | 54 +- .../model/CreateOnlineDatabaseTaskResult.cc | 93 +- .../model/CreateReadOnlyDBInstanceRequest.cc | 54 +- .../model/CreateReadOnlyDBInstanceResult.cc | 93 +- rds/src/model/CreateTempDBInstanceRequest.cc | 54 +- rds/src/model/CreateTempDBInstanceResult.cc | 93 +- rds/src/model/DeleteAccountRequest.cc | 54 +- rds/src/model/DeleteAccountResult.cc | 93 +- rds/src/model/DeleteBackupRequest.cc | 54 +- rds/src/model/DeleteBackupResult.cc | 93 +- rds/src/model/DeleteDBInstanceRequest.cc | 54 +- rds/src/model/DeleteDBInstanceResult.cc | 93 +- rds/src/model/DeleteDatabaseRequest.cc | 54 +- rds/src/model/DeleteDatabaseResult.cc | 93 +- .../DescibeImportsFromDatabaseRequest.cc | 54 +- .../model/DescibeImportsFromDatabaseResult.cc | 93 +- rds/src/model/DescribeAccountsRequest.cc | 54 +- rds/src/model/DescribeAccountsResult.cc | 93 +- .../DescribeAvailableCrossRegionRequest.cc | 82 + .../DescribeAvailableCrossRegionResult.cc | 56 + .../DescribeAvailableInstanceClassRequest.cc | 54 +- .../DescribeAvailableInstanceClassResult.cc | 93 +- .../DescribeAvailableRecoveryTimeRequest.cc | 93 + .../DescribeAvailableRecoveryTimeResult.cc | 83 + .../model/DescribeAvailableResourceRequest.cc | 65 +- .../model/DescribeAvailableResourceResult.cc | 152 +- .../model/DescribeBackupDatabaseRequest.cc | 54 +- rds/src/model/DescribeBackupDatabaseResult.cc | 93 +- rds/src/model/DescribeBackupPolicyRequest.cc | 54 +- rds/src/model/DescribeBackupPolicyResult.cc | 93 +- rds/src/model/DescribeBackupTasksRequest.cc | 54 +- rds/src/model/DescribeBackupTasksResult.cc | 93 +- rds/src/model/DescribeBackupsRequest.cc | 54 +- rds/src/model/DescribeBackupsResult.cc | 93 +- rds/src/model/DescribeBinlogFilesRequest.cc | 54 +- rds/src/model/DescribeBinlogFilesResult.cc | 93 +- .../model/DescribeCharacterSetNameRequest.cc | 54 +- .../model/DescribeCharacterSetNameResult.cc | 93 +- .../DescribeCloudDbExpertServiceRequest.cc | 54 +- .../DescribeCloudDbExpertServiceResult.cc | 93 +- .../DescribeCollationTimeZonesRequest.cc | 54 +- .../model/DescribeCollationTimeZonesResult.cc | 93 +- ...cribeCrossRegionBackupDBInstanceRequest.cc | 115 + ...scribeCrossRegionBackupDBInstanceResult.cc | 128 + .../DescribeCrossRegionBackupsRequest.cc | 159 + .../model/DescribeCrossRegionBackupsResult.cc | 140 + ...escribeCrossRegionLogBackupFilesRequest.cc | 148 + ...DescribeCrossRegionLogBackupFilesResult.cc | 128 + .../DescribeDBInstanceAttributeRequest.cc | 54 +- .../DescribeDBInstanceAttributeResult.cc | 95 +- .../model/DescribeDBInstanceByTagsRequest.cc | 54 +- .../model/DescribeDBInstanceByTagsResult.cc | 93 +- .../DescribeDBInstanceHAConfigRequest.cc | 54 +- .../model/DescribeDBInstanceHAConfigResult.cc | 93 +- .../DescribeDBInstanceIPArrayListRequest.cc | 54 +- .../DescribeDBInstanceIPArrayListResult.cc | 93 +- .../DescribeDBInstanceIpHostnameRequest.cc | 115 + .../DescribeDBInstanceIpHostnameResult.cc | 62 + .../model/DescribeDBInstanceMonitorRequest.cc | 54 +- .../model/DescribeDBInstanceMonitorResult.cc | 93 +- .../model/DescribeDBInstanceNetInfoRequest.cc | 54 +- .../model/DescribeDBInstanceNetInfoResult.cc | 93 +- .../DescribeDBInstancePerformanceRequest.cc | 54 +- .../DescribeDBInstancePerformanceResult.cc | 93 +- ...ribeDBInstanceProxyConfigurationRequest.cc | 54 +- ...cribeDBInstanceProxyConfigurationResult.cc | 93 +- rds/src/model/DescribeDBInstanceSSLRequest.cc | 54 +- rds/src/model/DescribeDBInstanceSSLResult.cc | 93 +- rds/src/model/DescribeDBInstanceTDERequest.cc | 54 +- rds/src/model/DescribeDBInstanceTDEResult.cc | 93 +- .../model/DescribeDBInstancesAsCsvRequest.cc | 54 +- .../model/DescribeDBInstancesAsCsvResult.cc | 93 +- .../DescribeDBInstancesByExpireTimeRequest.cc | 54 +- .../DescribeDBInstancesByExpireTimeResult.cc | 93 +- ...DescribeDBInstancesByPerformanceRequest.cc | 54 +- .../DescribeDBInstancesByPerformanceResult.cc | 93 +- rds/src/model/DescribeDBInstancesRequest.cc | 54 +- rds/src/model/DescribeDBInstancesResult.cc | 95 +- ...beDTCSecurityIpHostsForSQLServerRequest.cc | 115 + ...ibeDTCSecurityIpHostsForSQLServerResult.cc | 77 + rds/src/model/DescribeDatabasesRequest.cc | 54 +- rds/src/model/DescribeDatabasesResult.cc | 93 +- .../DescribeDiagnosticReportListRequest.cc | 54 +- .../DescribeDiagnosticReportListResult.cc | 93 +- rds/src/model/DescribeErrorLogsRequest.cc | 54 +- rds/src/model/DescribeErrorLogsResult.cc | 93 +- ...ribeInstanceAutoRenewalAttributeRequest.cc | 54 +- ...cribeInstanceAutoRenewalAttributeResult.cc | 93 +- ...escribeInstanceCrossBackupPolicyRequest.cc | 93 + ...DescribeInstanceCrossBackupPolicyResult.cc | 195 + .../DescribeInstanceVpcMigrateInfoRequest.cc | 54 +- .../DescribeInstanceVpcMigrateInfoResult.cc | 93 +- .../model/DescribeLogBackupFilesRequest.cc | 54 +- rds/src/model/DescribeLogBackupFilesResult.cc | 93 +- rds/src/model/DescribeMetaListRequest.cc | 54 +- rds/src/model/DescribeMetaListResult.cc | 93 +- ...DescribeMigrateTasksForSQLServerRequest.cc | 54 +- .../DescribeMigrateTasksForSQLServerResult.cc | 93 +- rds/src/model/DescribeMigrateTasksRequest.cc | 54 +- rds/src/model/DescribeMigrateTasksResult.cc | 93 +- .../DescribeModifyParameterLogRequest.cc | 54 +- .../model/DescribeModifyParameterLogResult.cc | 93 +- ...DescribeOssDownloadsForSQLServerRequest.cc | 54 +- .../DescribeOssDownloadsForSQLServerResult.cc | 93 +- rds/src/model/DescribeOssDownloadsRequest.cc | 54 +- rds/src/model/DescribeOssDownloadsResult.cc | 93 +- .../DescribeParameterTemplatesRequest.cc | 54 +- .../model/DescribeParameterTemplatesResult.cc | 93 +- rds/src/model/DescribeParametersRequest.cc | 54 +- rds/src/model/DescribeParametersResult.cc | 93 +- rds/src/model/DescribePriceRequest.cc | 54 +- rds/src/model/DescribePriceResult.cc | 93 +- .../DescribeProxyFunctionSupportRequest.cc | 54 +- .../DescribeProxyFunctionSupportResult.cc | 93 +- .../DescribeReadDBInstanceDelayRequest.cc | 54 +- .../DescribeReadDBInstanceDelayResult.cc | 93 +- rds/src/model/DescribeRegionsRequest.cc | 54 +- rds/src/model/DescribeRegionsResult.cc | 93 +- rds/src/model/DescribeRenewalPriceRequest.cc | 54 +- rds/src/model/DescribeRenewalPriceResult.cc | 93 +- rds/src/model/DescribeResourceUsageRequest.cc | 54 +- rds/src/model/DescribeResourceUsageResult.cc | 93 +- rds/src/model/DescribeSQLLogFilesRequest.cc | 54 +- rds/src/model/DescribeSQLLogFilesResult.cc | 93 +- rds/src/model/DescribeSQLLogRecordsRequest.cc | 54 +- rds/src/model/DescribeSQLLogRecordsResult.cc | 93 +- .../model/DescribeSQLLogReportListRequest.cc | 54 +- .../model/DescribeSQLLogReportListResult.cc | 93 +- rds/src/model/DescribeSQLLogReportsRequest.cc | 54 +- rds/src/model/DescribeSQLLogReportsResult.cc | 93 +- rds/src/model/DescribeSQLReportsRequest.cc | 54 +- rds/src/model/DescribeSQLReportsResult.cc | 93 +- ...scribeSecurityGroupConfigurationRequest.cc | 54 +- ...escribeSecurityGroupConfigurationResult.cc | 93 +- .../model/DescribeSlowLogRecordsRequest.cc | 54 +- rds/src/model/DescribeSlowLogRecordsResult.cc | 93 +- rds/src/model/DescribeSlowLogsRequest.cc | 54 +- rds/src/model/DescribeSlowLogsResult.cc | 93 +- rds/src/model/DescribeTagsRequest.cc | 54 +- rds/src/model/DescribeTagsResult.cc | 93 +- rds/src/model/DescribeTaskInfoRequest.cc | 54 +- rds/src/model/DescribeTaskInfoResult.cc | 93 +- rds/src/model/DescribeTasksRequest.cc | 54 +- rds/src/model/DescribeTasksResult.cc | 93 +- rds/src/model/DescribeTemplatesListRequest.cc | 54 +- rds/src/model/DescribeTemplatesListResult.cc | 93 +- .../model/EvaluateSupportByokShowRequest.cc | 54 +- .../model/EvaluateSupportByokShowResult.cc | 93 +- rds/src/model/GrantAccountPrivilegeRequest.cc | 54 +- rds/src/model/GrantAccountPrivilegeResult.cc | 93 +- .../model/GrantOperatorPermissionRequest.cc | 54 +- .../model/GrantOperatorPermissionResult.cc | 93 +- .../model/ImportDataForSQLServerRequest.cc | 54 +- rds/src/model/ImportDataForSQLServerResult.cc | 93 +- .../ImportDatabaseBetweenInstancesRequest.cc | 54 +- .../ImportDatabaseBetweenInstancesResult.cc | 93 +- rds/src/model/MigrateSecurityIPModeRequest.cc | 54 +- rds/src/model/MigrateSecurityIPModeResult.cc | 93 +- rds/src/model/MigrateToOtherRegionRequest.cc | 54 +- rds/src/model/MigrateToOtherRegionResult.cc | 93 +- rds/src/model/MigrateToOtherZoneRequest.cc | 54 +- rds/src/model/MigrateToOtherZoneResult.cc | 93 +- .../model/ModifyAccountDescriptionRequest.cc | 54 +- .../model/ModifyAccountDescriptionResult.cc | 93 +- rds/src/model/ModifyBackupPolicyRequest.cc | 54 +- rds/src/model/ModifyBackupPolicyResult.cc | 93 +- .../model/ModifyCollationTimeZoneRequest.cc | 54 +- .../model/ModifyCollationTimeZoneResult.cc | 93 +- rds/src/model/ModifyDBDescriptionRequest.cc | 54 +- rds/src/model/ModifyDBDescriptionResult.cc | 93 +- ...BInstanceAutoUpgradeMinorVersionRequest.cc | 104 + ...DBInstanceAutoUpgradeMinorVersionResult.cc | 48 + .../ModifyDBInstanceConnectionModeRequest.cc | 54 +- .../ModifyDBInstanceConnectionModeResult.cc | 93 +- ...ModifyDBInstanceConnectionStringRequest.cc | 54 +- .../ModifyDBInstanceConnectionStringResult.cc | 93 +- .../ModifyDBInstanceDescriptionRequest.cc | 54 +- .../ModifyDBInstanceDescriptionResult.cc | 93 +- .../model/ModifyDBInstanceHAConfigRequest.cc | 54 +- .../model/ModifyDBInstanceHAConfigResult.cc | 93 +- .../ModifyDBInstanceMaintainTimeRequest.cc | 54 +- .../ModifyDBInstanceMaintainTimeResult.cc | 93 +- .../model/ModifyDBInstanceMonitorRequest.cc | 54 +- .../model/ModifyDBInstanceMonitorResult.cc | 93 +- ...odifyDBInstanceNetworkExpireTimeRequest.cc | 54 +- ...ModifyDBInstanceNetworkExpireTimeResult.cc | 93 +- .../ModifyDBInstanceNetworkTypeRequest.cc | 54 +- .../ModifyDBInstanceNetworkTypeResult.cc | 93 +- .../model/ModifyDBInstancePayTypeRequest.cc | 181 + .../model/ModifyDBInstancePayTypeResult.cc | 62 + ...difyDBInstanceProxyConfigurationRequest.cc | 54 +- ...odifyDBInstanceProxyConfigurationResult.cc | 93 +- rds/src/model/ModifyDBInstanceSSLRequest.cc | 54 +- rds/src/model/ModifyDBInstanceSSLResult.cc | 93 +- rds/src/model/ModifyDBInstanceSpecRequest.cc | 54 +- rds/src/model/ModifyDBInstanceSpecResult.cc | 93 +- rds/src/model/ModifyDBInstanceTDERequest.cc | 54 +- rds/src/model/ModifyDBInstanceTDEResult.cc | 93 +- ...fyDTCSecurityIpHostsForSQLServerRequest.cc | 137 + ...ifyDTCSecurityIpHostsForSQLServerResult.cc | 69 + ...difyInstanceAutoRenewalAttributeRequest.cc | 54 +- ...odifyInstanceAutoRenewalAttributeResult.cc | 93 +- .../ModifyInstanceCrossBackupPolicyRequest.cc | 203 + .../ModifyInstanceCrossBackupPolicyResult.cc | 125 + .../ModifyMySQLDBInstanceDelayRequest.cc | 54 +- .../model/ModifyMySQLDBInstanceDelayResult.cc | 93 +- rds/src/model/ModifyParameterRequest.cc | 65 +- rds/src/model/ModifyParameterResult.cc | 93 +- ...difyReadWriteSplittingConnectionRequest.cc | 54 +- ...odifyReadWriteSplittingConnectionResult.cc | 93 +- ...onlyInstanceDelayReplicationTimeRequest.cc | 54 +- ...donlyInstanceDelayReplicationTimeResult.cc | 93 +- .../model/ModifyReplicaDescriptionRequest.cc | 54 +- .../model/ModifyReplicaDescriptionResult.cc | 93 +- rds/src/model/ModifyResourceGroupRequest.cc | 54 +- rds/src/model/ModifyResourceGroupResult.cc | 93 +- .../model/ModifySQLCollectorPolicyRequest.cc | 54 +- .../model/ModifySQLCollectorPolicyResult.cc | 93 +- ...ModifySecurityGroupConfigurationRequest.cc | 54 +- .../ModifySecurityGroupConfigurationResult.cc | 93 +- rds/src/model/ModifySecurityIpsRequest.cc | 54 +- rds/src/model/ModifySecurityIpsResult.cc | 93 +- rds/src/model/PurgeDBInstanceLogRequest.cc | 54 +- rds/src/model/PurgeDBInstanceLogResult.cc | 93 +- rds/src/model/RecoveryDBInstanceRequest.cc | 54 +- rds/src/model/RecoveryDBInstanceResult.cc | 93 +- .../ReleaseInstancePublicConnectionRequest.cc | 54 +- .../ReleaseInstancePublicConnectionResult.cc | 93 +- ...easeReadWriteSplittingConnectionRequest.cc | 54 +- ...leaseReadWriteSplittingConnectionResult.cc | 93 +- .../model/RemoveTagsFromResourceRequest.cc | 54 +- rds/src/model/RemoveTagsFromResourceResult.cc | 93 +- rds/src/model/RenewInstanceRequest.cc | 54 +- rds/src/model/RenewInstanceResult.cc | 93 +- .../RequestServiceOfCloudDBExpertRequest.cc | 54 +- .../RequestServiceOfCloudDBExpertResult.cc | 93 +- rds/src/model/ResetAccountForPGRequest.cc | 54 +- rds/src/model/ResetAccountForPGResult.cc | 93 +- rds/src/model/ResetAccountPasswordRequest.cc | 54 +- rds/src/model/ResetAccountPasswordResult.cc | 93 +- rds/src/model/ResetAccountRequest.cc | 54 +- rds/src/model/ResetAccountResult.cc | 93 +- rds/src/model/RestartDBInstanceRequest.cc | 54 +- rds/src/model/RestartDBInstanceResult.cc | 93 +- rds/src/model/RestoreDBInstanceRequest.cc | 54 +- rds/src/model/RestoreDBInstanceResult.cc | 93 +- rds/src/model/RestoreTableRequest.cc | 54 +- rds/src/model/RestoreTableResult.cc | 93 +- .../model/RevokeAccountPrivilegeRequest.cc | 54 +- rds/src/model/RevokeAccountPrivilegeResult.cc | 93 +- .../model/RevokeOperatorPermissionRequest.cc | 54 +- .../model/RevokeOperatorPermissionResult.cc | 93 +- rds/src/model/SwitchDBInstanceHARequest.cc | 54 +- rds/src/model/SwitchDBInstanceHAResult.cc | 93 +- .../model/SwitchDBInstanceNetTypeRequest.cc | 54 +- .../model/SwitchDBInstanceNetTypeResult.cc | 93 +- rds/src/model/SwitchDBInstanceVpcRequest.cc | 54 +- rds/src/model/SwitchDBInstanceVpcResult.cc | 93 +- .../UpgradeDBInstanceEngineVersionRequest.cc | 54 +- .../UpgradeDBInstanceEngineVersionResult.cc | 93 +- .../UpgradeDBInstanceKernelVersionRequest.cc | 54 +- .../UpgradeDBInstanceKernelVersionResult.cc | 93 +- rtc/CMakeLists.txt | 84 +- rtc/include/alibabacloud/rtc/RtcClient.h | 168 +- .../rtc/model/CreateChannelRequest.h | 75 +- .../rtc/model/CreateChannelTokenRequest.h | 9 +- .../rtc/model/DeleteChannelRequest.h | 75 +- .../DescribeChannelParticipantsRequest.h | 126 + .../model/DescribeChannelParticipantsResult.h | 57 + .../model/DescribeRtcChannelCntDataRequest.h | 123 + .../model/DescribeRtcChannelCntDataResult.h | 56 + .../rtc/model/DescribeRtcChannelListRequest.h | 135 + .../rtc/model/DescribeRtcChannelListResult.h | 65 + .../model/DescribeRtcChannelMetricRequest.h | 120 + .../model/DescribeRtcChannelMetricResult.h | 86 + .../model/DescribeRtcChannelUserListRequest.h | 126 + .../model/DescribeRtcChannelUserListResult.h | 75 + .../model/DescribeRtcDurationDataRequest.h | 123 + .../rtc/model/DescribeRtcDurationDataResult.h | 61 + .../DescribeRtcPeakChannelCntDataRequest.h | 123 + .../DescribeRtcPeakChannelCntDataResult.h | 57 + .../model/DescribeRtcPeakUserCntDataRequest.h | 123 + .../model/DescribeRtcPeakUserCntDataResult.h | 57 + .../rtc/model/DescribeRtcUserCntDataRequest.h | 123 + .../rtc/model/DescribeRtcUserCntDataResult.h | 56 + .../rtc/model/RemoveTerminalsRequest.h | 9 +- .../rtc/model/StartMPUTaskRequest.h | 9 + .../rtc/model/UpdateChannelRequest.h | 9 +- rtc/src/RtcClient.cc | 702 +- rtc/src/model/CreateChannelRequest.cc | 285 +- rtc/src/model/CreateChannelResult.cc | 9 +- rtc/src/model/CreateChannelTokenRequest.cc | 83 +- rtc/src/model/CreateChannelTokenResult.cc | 9 +- rtc/src/model/CreateConferenceRequest.cc | 52 +- rtc/src/model/CreateConferenceResult.cc | 9 +- rtc/src/model/CreateTemplateRequest.cc | 72 +- rtc/src/model/CreateTemplateResult.cc | 9 +- rtc/src/model/DeleteChannelRequest.cc | 285 +- rtc/src/model/DeleteChannelResult.cc | 9 +- rtc/src/model/DeleteConferenceRequest.cc | 44 +- rtc/src/model/DeleteConferenceResult.cc | 9 +- rtc/src/model/DeleteTemplateRequest.cc | 44 +- rtc/src/model/DeleteTemplateResult.cc | 9 +- rtc/src/model/DescribeAppsRequest.cc | 50 +- rtc/src/model/DescribeAppsResult.cc | 9 +- .../DescribeChannelParticipantsRequest.cc | 324 + .../DescribeChannelParticipantsResult.cc | 77 + .../DescribeConferenceAuthInfoRequest.cc | 44 +- .../model/DescribeConferenceAuthInfoResult.cc | 9 +- .../DescribeRealTimeRecordDetailRequest.cc | 46 +- .../DescribeRealTimeRecordDetailResult.cc | 9 +- .../DescribeRealTimeRecordListRequest.cc | 44 +- .../model/DescribeRealTimeRecordListResult.cc | 9 +- rtc/src/model/DescribeRecordDetailRequest.cc | 50 +- rtc/src/model/DescribeRecordDetailResult.cc | 9 +- rtc/src/model/DescribeRecordListRequest.cc | 58 +- rtc/src/model/DescribeRecordListResult.cc | 9 +- .../model/DescribeRtcChannelCntDataRequest.cc | 313 + .../model/DescribeRtcChannelCntDataResult.cc | 63 + .../model/DescribeRtcChannelListRequest.cc | 357 + rtc/src/model/DescribeRtcChannelListResult.cc | 91 + .../model/DescribeRtcChannelMetricRequest.cc | 302 + .../model/DescribeRtcChannelMetricResult.cc | 90 + .../DescribeRtcChannelUserListRequest.cc | 324 + .../model/DescribeRtcChannelUserListResult.cc | 110 + .../model/DescribeRtcDurationDataRequest.cc | 313 + .../model/DescribeRtcDurationDataResult.cc | 73 + .../DescribeRtcPeakChannelCntDataRequest.cc | 313 + .../DescribeRtcPeakChannelCntDataResult.cc | 65 + .../DescribeRtcPeakUserCntDataRequest.cc | 313 + .../model/DescribeRtcPeakUserCntDataResult.cc | 65 + .../model/DescribeRtcUserCntDataRequest.cc | 313 + rtc/src/model/DescribeRtcUserCntDataResult.cc | 63 + rtc/src/model/DescribeStatisRequest.cc | 54 +- rtc/src/model/DescribeStatisResult.cc | 9 +- rtc/src/model/GetAllTemplateRequest.cc | 42 +- rtc/src/model/GetAllTemplateResult.cc | 9 +- rtc/src/model/GetMPUTaskStatusRequest.cc | 46 +- rtc/src/model/GetMPUTaskStatusResult.cc | 9 +- rtc/src/model/GetTaskParamRequest.cc | 44 +- rtc/src/model/GetTaskParamResult.cc | 9 +- rtc/src/model/GetTaskStatusRequest.cc | 46 +- rtc/src/model/GetTaskStatusResult.cc | 9 +- rtc/src/model/GetTemplateInfoRequest.cc | 44 +- rtc/src/model/GetTemplateInfoResult.cc | 9 +- rtc/src/model/ModifyAppRequest.cc | 44 +- rtc/src/model/ModifyAppResult.cc | 9 +- rtc/src/model/ModifyConferenceRequest.cc | 52 +- rtc/src/model/ModifyConferenceResult.cc | 9 +- rtc/src/model/MuteAudioAllRequest.cc | 46 +- rtc/src/model/MuteAudioAllResult.cc | 9 +- rtc/src/model/MuteAudioRequest.cc | 46 +- rtc/src/model/MuteAudioResult.cc | 9 +- rtc/src/model/ReceiveNotifyRequest.cc | 52 +- rtc/src/model/ReceiveNotifyResult.cc | 9 +- rtc/src/model/RemoveParticipantsRequest.cc | 46 +- rtc/src/model/RemoveParticipantsResult.cc | 9 +- rtc/src/model/RemoveTerminalsRequest.cc | 79 +- rtc/src/model/RemoveTerminalsResult.cc | 9 +- rtc/src/model/StartMPUTaskRequest.cc | 95 +- rtc/src/model/StartMPUTaskResult.cc | 9 +- rtc/src/model/StartTaskRequest.cc | 54 +- rtc/src/model/StartTaskResult.cc | 9 +- rtc/src/model/StopMPUTaskRequest.cc | 46 +- rtc/src/model/StopMPUTaskResult.cc | 9 +- rtc/src/model/StopTaskRequest.cc | 46 +- rtc/src/model/StopTaskResult.cc | 9 +- rtc/src/model/UnmuteAudioAllRequest.cc | 46 +- rtc/src/model/UnmuteAudioAllResult.cc | 9 +- rtc/src/model/UnmuteAudioRequest.cc | 46 +- rtc/src/model/UnmuteAudioResult.cc | 9 +- rtc/src/model/UpdateChannelRequest.cc | 79 +- rtc/src/model/UpdateChannelResult.cc | 9 +- rtc/src/model/UpdateTaskParamRequest.cc | 54 +- rtc/src/model/UpdateTaskParamResult.cc | 9 +- saf/src/model/ExecuteRequestRequest.cc | 4 +- saf/src/model/ExecuteRequestResult.cc | 9 +- sas-api/CMakeLists.txt | 8 +- .../alibabacloud/sas-api/Sas_apiClient.h | 16 +- sas-api/src/Sas-apiClient.cc | 72 +- .../DescribeAccountProfileByKeyRequest.cc | 4 +- .../DescribeAccountProfileByKeyResult.cc | 9 +- .../DescribeAccountProfileByKeyWordRequest.cc | 4 +- .../DescribeAccountProfileByKeyWordResult.cc | 9 +- .../src/model/DescribeHitRateColumnRequest.cc | 10 +- .../src/model/DescribeHitRateColumnResult.cc | 9 +- .../src/model/DescribeHitRatePieRequest.cc | 10 +- sas-api/src/model/DescribeHitRatePieResult.cc | 9 +- .../src/model/DescribePerDateDataRequest.cc | 4 +- .../src/model/DescribePerDateDataResult.cc | 9 +- .../model/DescribeThreatDistributeRequest.cc | 10 +- .../model/DescribeThreatDistributeResult.cc | 9 +- .../model/DescribeThreatTypeLinesRequest.cc | 4 +- .../model/DescribeThreatTypeLinesResult.cc | 9 +- .../model/DescribeTotalAndRateLineRequest.cc | 4 +- .../model/DescribeTotalAndRateLineResult.cc | 9 +- sas-api/src/model/GetAccountProfileRequest.cc | 24 +- sas-api/src/model/GetAccountProfileResult.cc | 9 +- sas-api/src/model/GetInstanceCountRequest.cc | 2 +- sas-api/src/model/GetInstanceCountResult.cc | 9 +- sas-api/src/model/GetIpProfileRequest.cc | 20 +- sas-api/src/model/GetIpProfileResult.cc | 9 +- sas-api/src/model/GetPhoneProfileRequest.cc | 8 +- sas-api/src/model/GetPhoneProfileResult.cc | 9 +- sas/CMakeLists.txt | 140 +- sas/include/alibabacloud/sas/SasClient.h | 56 +- .../DescribeRiskCheckItemResultRequest.h | 63 + .../model/DescribeRiskCheckItemResultResult.h | 60 + .../model/DescribeRiskCheckResultRequest.h | 6 + .../sas/model/DescribeRiskCheckResultResult.h | 10 +- .../model/DescribeRiskCheckSummaryResult.h | 2 + sas/src/SasClient.cc | 252 +- .../model/DescribeAlarmEventDetailResult.cc | 9 +- sas/src/model/DescribeAlarmEventListResult.cc | 9 +- sas/src/model/DescribeAutoDelConfigResult.cc | 9 +- .../model/DescribeCheckWarningDetailResult.cc | 9 +- .../DescribeCheckWarningSummaryResult.cc | 9 +- sas/src/model/DescribeCheckWarningsResult.cc | 9 +- .../model/DescribeConcernNecessityResult.cc | 9 +- sas/src/model/DescribeEmgVulGroupResult.cc | 9 +- sas/src/model/DescribeGroupedVulResult.cc | 9 +- .../DescribeRiskCheckItemResultRequest.cc | 93 + .../DescribeRiskCheckItemResultResult.cc | 66 + .../model/DescribeRiskCheckResultRequest.cc | 23 + .../model/DescribeRiskCheckResultResult.cc | 13 +- .../model/DescribeRiskCheckSummaryResult.cc | 13 +- sas/src/model/DescribeRiskItemTypeResult.cc | 9 +- ...scribeSecurityCheckScheduleConfigResult.cc | 9 +- .../model/DescribeStrategyExecDetailResult.cc | 9 +- sas/src/model/DescribeStratetyResult.cc | 9 +- .../model/DescribeSuspEventDetailResult.cc | 9 +- sas/src/model/DescribeSuspEventsResult.cc | 9 +- ...DescribeUserBaselineAuthorizationResult.cc | 9 +- sas/src/model/DescribeVulDetailsResult.cc | 9 +- sas/src/model/DescribeVulListResult.cc | 9 +- sas/src/model/DescribeVulWhitelistResult.cc | 9 +- .../model/DescribeWarningMachinesResult.cc | 9 +- sas/src/model/ModifyAutoDelConfigResult.cc | 9 +- sas/src/model/ModifyConcernNecessityResult.cc | 9 +- .../model/ModifyCreateVulWhitelistResult.cc | 9 +- .../model/ModifyDeleteVulWhitelistResult.cc | 9 +- sas/src/model/ModifyEmgVulSubmitResult.cc | 9 +- sas/src/model/ModifyOperateVulResult.cc | 9 +- sas/src/model/ModifyPushAllTaskResult.cc | 9 +- sas/src/model/ModifyRiskCheckStatusResult.cc | 9 +- .../ModifyRiskSingleResultStatusResult.cc | 9 +- ...ModifySecurityCheckScheduleConfigResult.cc | 9 +- .../model/StartBaselineSecurityCheckResult.cc | 9 +- scdn/CMakeLists.txt | 172 +- scdn/include/alibabacloud/scdn/ScdnClient.h | 344 +- .../scdn/model/AddScdnDomainRequest.h | 3 - .../BatchDeleteScdnDomainConfigsRequest.h | 3 - .../model/BatchSetScdnDomainConfigsRequest.h | 60 + .../model/BatchSetScdnDomainConfigsResult.h | 49 + .../scdn/model/BatchUpdateScdnDomainRequest.h | 3 - .../scdn/model/CheckScdnServiceRequest.h | 3 - .../scdn/model/DeleteScdnDomainRequest.h | 3 - .../DescribeScdnCertificateDetailRequest.h | 3 - .../DescribeScdnCertificateListRequest.h | 3 - .../model/DescribeScdnDomainConfigsRequest.h | 3 - .../model/DescribeScdnDomainDetailRequest.h | 3 - .../scdn/model/DescribeScdnDomainLogRequest.h | 6 +- .../scdn/model/DescribeScdnDomainLogResult.h | 6 +- .../model/DescribeScdnDomainPvDataRequest.h | 69 +- .../model/DescribeScdnDomainPvDataResult.h | 4 - .../DescribeScdnDomainTopReferVisitRequest.h | 3 - .../DescribeScdnDomainTopUrlVisitRequest.h | 3 - .../model/DescribeScdnDomainUvDataRequest.h | 69 +- .../model/DescribeScdnDomainUvDataResult.h | 4 - .../scdn/model/DescribeScdnIpInfoRequest.h | 3 - .../model/DescribeScdnRefreshQuotaRequest.h | 3 - .../model/DescribeScdnRefreshTasksRequest.h | 3 - .../scdn/model/DescribeScdnServiceRequest.h | 3 - .../scdn/model/DescribeScdnServiceResult.h | 52 +- .../model/DescribeScdnUserDomainsRequest.h | 27 +- .../scdn/model/DescribeScdnUserQuotaRequest.h | 3 - .../scdn/model/OpenScdnServiceRequest.h | 3 - .../model/PreloadScdnObjectCachesRequest.h | 3 - .../model/RefreshScdnObjectCachesRequest.h | 3 - .../model/SetScdnDomainCertificateRequest.h | 3 - .../scdn/model/StartScdnDomainRequest.h | 3 - .../scdn/model/StopScdnDomainRequest.h | 3 - .../scdn/model/UpdateScdnDomainRequest.h | 3 - scdn/src/ScdnClient.cc | 1554 +- scdn/src/model/AddScdnDomainRequest.cc | 27 +- scdn/src/model/AddScdnDomainResult.cc | 9 +- .../BatchDeleteScdnDomainConfigsRequest.cc | 21 +- .../BatchDeleteScdnDomainConfigsResult.cc | 9 +- .../model/BatchSetScdnDomainConfigsRequest.cc | 82 + .../model/BatchSetScdnDomainConfigsResult.cc | 48 + .../src/model/BatchUpdateScdnDomainRequest.cc | 23 +- scdn/src/model/BatchUpdateScdnDomainResult.cc | 9 +- scdn/src/model/CheckScdnServiceRequest.cc | 15 +- scdn/src/model/CheckScdnServiceResult.cc | 9 +- scdn/src/model/DeleteScdnDomainRequest.cc | 21 +- scdn/src/model/DeleteScdnDomainResult.cc | 9 +- .../DescribeScdnCertificateDetailRequest.cc | 17 +- .../DescribeScdnCertificateDetailResult.cc | 9 +- .../DescribeScdnCertificateListRequest.cc | 17 +- .../DescribeScdnCertificateListResult.cc | 9 +- .../model/DescribeScdnDomainBpsDataRequest.cc | 54 +- .../model/DescribeScdnDomainBpsDataResult.cc | 9 +- ...escribeScdnDomainCertificateInfoRequest.cc | 44 +- ...DescribeScdnDomainCertificateInfoResult.cc | 9 +- .../model/DescribeScdnDomainCnameRequest.cc | 44 +- .../model/DescribeScdnDomainCnameResult.cc | 9 +- .../model/DescribeScdnDomainConfigsRequest.cc | 19 +- .../model/DescribeScdnDomainConfigsResult.cc | 9 +- .../model/DescribeScdnDomainDetailRequest.cc | 17 +- .../model/DescribeScdnDomainDetailResult.cc | 9 +- .../DescribeScdnDomainHitRateDataRequest.cc | 52 +- .../DescribeScdnDomainHitRateDataResult.cc | 9 +- .../DescribeScdnDomainHttpCodeDataRequest.cc | 54 +- .../DescribeScdnDomainHttpCodeDataResult.cc | 9 +- .../model/DescribeScdnDomainIspDataRequest.cc | 48 +- .../model/DescribeScdnDomainIspDataResult.cc | 9 +- .../src/model/DescribeScdnDomainLogRequest.cc | 72 +- scdn/src/model/DescribeScdnDomainLogResult.cc | 28 +- .../DescribeScdnDomainOriginBpsDataRequest.cc | 52 +- .../DescribeScdnDomainOriginBpsDataResult.cc | 9 +- ...cribeScdnDomainOriginTrafficDataRequest.cc | 52 +- ...scribeScdnDomainOriginTrafficDataResult.cc | 9 +- .../model/DescribeScdnDomainPvDataRequest.cc | 253 +- .../model/DescribeScdnDomainPvDataResult.cc | 27 +- .../model/DescribeScdnDomainQpsDataRequest.cc | 54 +- .../model/DescribeScdnDomainQpsDataResult.cc | 9 +- ...escribeScdnDomainRealTimeBpsDataRequest.cc | 52 +- ...DescribeScdnDomainRealTimeBpsDataResult.cc | 9 +- ...cdnDomainRealTimeByteHitRateDataRequest.cc | 48 +- ...ScdnDomainRealTimeByteHitRateDataResult.cc | 9 +- ...beScdnDomainRealTimeHttpCodeDataRequest.cc | 56 +- ...ibeScdnDomainRealTimeHttpCodeDataResult.cc | 9 +- ...escribeScdnDomainRealTimeQpsDataRequest.cc | 52 +- ...DescribeScdnDomainRealTimeQpsDataResult.cc | 9 +- ...ScdnDomainRealTimeReqHitRateDataRequest.cc | 48 +- ...eScdnDomainRealTimeReqHitRateDataResult.cc | 9 +- ...ribeScdnDomainRealTimeSrcBpsDataRequest.cc | 52 +- ...cribeScdnDomainRealTimeSrcBpsDataResult.cc | 9 +- ...ScdnDomainRealTimeSrcTrafficDataRequest.cc | 52 +- ...eScdnDomainRealTimeSrcTrafficDataResult.cc | 9 +- ...ibeScdnDomainRealTimeTrafficDataRequest.cc | 52 +- ...ribeScdnDomainRealTimeTrafficDataResult.cc | 9 +- .../DescribeScdnDomainRegionDataRequest.cc | 48 +- .../DescribeScdnDomainRegionDataResult.cc | 9 +- .../DescribeScdnDomainTopReferVisitRequest.cc | 21 +- .../DescribeScdnDomainTopReferVisitResult.cc | 9 +- .../DescribeScdnDomainTopUrlVisitRequest.cc | 21 +- .../DescribeScdnDomainTopUrlVisitResult.cc | 9 +- .../DescribeScdnDomainTrafficDataRequest.cc | 54 +- .../DescribeScdnDomainTrafficDataResult.cc | 9 +- .../model/DescribeScdnDomainUvDataRequest.cc | 253 +- .../model/DescribeScdnDomainUvDataResult.cc | 27 +- scdn/src/model/DescribeScdnIpInfoRequest.cc | 17 +- scdn/src/model/DescribeScdnIpInfoResult.cc | 9 +- .../model/DescribeScdnRefreshQuotaRequest.cc | 15 +- .../model/DescribeScdnRefreshQuotaResult.cc | 9 +- .../model/DescribeScdnRefreshTasksRequest.cc | 35 +- .../model/DescribeScdnRefreshTasksResult.cc | 9 +- scdn/src/model/DescribeScdnServiceRequest.cc | 15 +- scdn/src/model/DescribeScdnServiceResult.cc | 159 +- .../DescribeScdnTopDomainsByFlowRequest.cc | 48 +- .../DescribeScdnTopDomainsByFlowResult.cc | 9 +- .../model/DescribeScdnUserDomainsRequest.cc | 153 +- .../model/DescribeScdnUserDomainsResult.cc | 9 +- .../src/model/DescribeScdnUserQuotaRequest.cc | 15 +- scdn/src/model/DescribeScdnUserQuotaResult.cc | 9 +- scdn/src/model/OpenScdnServiceRequest.cc | 31 +- scdn/src/model/OpenScdnServiceResult.cc | 9 +- .../model/PreloadScdnObjectCachesRequest.cc | 19 +- .../model/PreloadScdnObjectCachesResult.cc | 9 +- .../model/RefreshScdnObjectCachesRequest.cc | 19 +- .../model/RefreshScdnObjectCachesResult.cc | 9 +- .../SetDomainServerCertificateRequest.cc | 18 +- .../model/SetDomainServerCertificateResult.cc | 9 +- .../model/SetScdnDomainCertificateRequest.cc | 31 +- .../model/SetScdnDomainCertificateResult.cc | 9 +- scdn/src/model/StartScdnDomainRequest.cc | 17 +- scdn/src/model/StartScdnDomainResult.cc | 9 +- scdn/src/model/StopScdnDomainRequest.cc | 17 +- scdn/src/model/StopScdnDomainResult.cc | 9 +- scdn/src/model/UpdateScdnDomainRequest.cc | 21 +- scdn/src/model/UpdateScdnDomainResult.cc | 9 +- sddp/CMakeLists.txt | 312 +- sddp/include/alibabacloud/sddp/SddpClient.h | 460 +- sddp/include/alibabacloud/sddp/SddpExport.h | 62 +- .../sddp/model/CreateConfigRequest.h | 88 +- .../sddp/model/CreateConfigResult.h | 96 +- .../sddp/model/CreateDataLimitRequest.h | 88 +- .../sddp/model/CreateDataLimitResult.h | 96 +- .../sddp/model/CreateRuleRequest.h | 88 +- .../sddp/model/CreateRuleResult.h | 96 +- .../sddp/model/CreateUserAuthRequest.h | 88 +- .../sddp/model/CreateUserAuthResult.h | 96 +- .../sddp/model/DeleteDataLimitRequest.h | 88 +- .../sddp/model/DeleteDataLimitResult.h | 96 +- .../sddp/model/DeleteRuleRequest.h | 88 +- .../sddp/model/DeleteRuleResult.h | 96 +- .../sddp/model/DescribeAccountDetailRequest.h | 88 +- .../sddp/model/DescribeAccountDetailResult.h | 96 +- .../sddp/model/DescribeAccountsRequest.h | 88 +- .../sddp/model/DescribeAccountsResult.h | 96 +- .../sddp/model/DescribeAuthAccountsRequest.h | 88 +- .../sddp/model/DescribeAuthAccountsResult.h | 96 +- .../model/DescribeCloudDatabasesRequest.h | 88 +- .../sddp/model/DescribeCloudDatabasesResult.h | 96 +- .../model/DescribeCloudInstancesRequest.h | 88 +- .../sddp/model/DescribeCloudInstancesResult.h | 96 +- .../sddp/model/DescribeColumnsRequest.h | 94 +- .../sddp/model/DescribeColumnsResult.h | 96 +- .../sddp/model/DescribeConfigsRequest.h | 88 +- .../sddp/model/DescribeConfigsResult.h | 96 +- .../sddp/model/DescribeDataAssetsRequest.h | 88 +- .../sddp/model/DescribeDataAssetsResult.h | 96 +- .../model/DescribeDataHubConnectorsRequest.h | 88 +- .../model/DescribeDataHubConnectorsResult.h | 96 +- .../model/DescribeDataHubProjectsRequest.h | 88 +- .../model/DescribeDataHubProjectsResult.h | 96 +- .../DescribeDataHubSubscriptionsRequest.h | 88 +- .../DescribeDataHubSubscriptionsResult.h | 96 +- .../sddp/model/DescribeDataHubTopicsRequest.h | 88 +- .../sddp/model/DescribeDataHubTopicsResult.h | 96 +- .../model/DescribeDataLimitDetailRequest.h | 88 +- .../model/DescribeDataLimitDetailResult.h | 99 +- .../sddp/model/DescribeDataLimitsRequest.h | 88 +- .../sddp/model/DescribeDataLimitsResult.h | 98 +- .../sddp/model/DescribeDepartsRequest.h | 88 +- .../sddp/model/DescribeDepartsResult.h | 96 +- .../sddp/model/DescribeEventDetailRequest.h | 88 +- .../sddp/model/DescribeEventDetailResult.h | 102 +- .../sddp/model/DescribeEventTypesRequest.h | 88 +- .../sddp/model/DescribeEventTypesResult.h | 96 +- .../sddp/model/DescribeEventsRequest.h | 88 +- .../sddp/model/DescribeEventsResult.h | 96 +- .../sddp/model/DescribeInstancesRequest.h | 88 +- .../sddp/model/DescribeInstancesResult.h | 96 +- .../model/DescribeOssObjectDetailRequest.h | 88 +- .../model/DescribeOssObjectDetailResult.h | 96 +- .../sddp/model/DescribeOssObjectsRequest.h | 88 +- .../sddp/model/DescribeOssObjectsResult.h | 96 +- .../sddp/model/DescribePackagesRequest.h | 88 +- .../sddp/model/DescribePackagesResult.h | 96 +- .../sddp/model/DescribePrivilegesRequest.h | 88 +- .../sddp/model/DescribePrivilegesResult.h | 96 +- .../sddp/model/DescribeRulesRequest.h | 88 +- .../sddp/model/DescribeRulesResult.h | 96 +- .../sddp/model/DescribeTablesRequest.h | 91 +- .../sddp/model/DescribeTablesResult.h | 96 +- .../sddp/model/DescribeUserStatusRequest.h | 88 +- .../sddp/model/DescribeUserStatusResult.h | 107 +- .../sddp/model/ModifyDataLimitRequest.h | 88 +- .../sddp/model/ModifyDataLimitResult.h | 96 +- .../sddp/model/ModifyDefaultLevelRequest.h | 88 +- .../sddp/model/ModifyDefaultLevelResult.h | 96 +- .../sddp/model/ModifyEventStatusRequest.h | 88 +- .../sddp/model/ModifyEventStatusResult.h | 96 +- .../sddp/model/ModifyEventTypeStatusRequest.h | 88 +- .../sddp/model/ModifyEventTypeStatusResult.h | 96 +- .../sddp/model/ModifyRuleRequest.h | 88 +- .../sddp/model/ModifyRuleResult.h | 96 +- .../sddp/model/ModifyRuleStatusRequest.h | 88 +- .../sddp/model/ModifyRuleStatusResult.h | 96 +- .../sddp/model/ValidateConnectorRequest.h | 88 +- .../sddp/model/ValidateConnectorResult.h | 96 +- sddp/src/SddpClient.cc | 2912 ++-- sddp/src/model/CreateConfigRequest.cc | 54 +- sddp/src/model/CreateConfigResult.cc | 93 +- sddp/src/model/CreateDataLimitRequest.cc | 54 +- sddp/src/model/CreateDataLimitResult.cc | 93 +- sddp/src/model/CreateRuleRequest.cc | 54 +- sddp/src/model/CreateRuleResult.cc | 93 +- sddp/src/model/CreateUserAuthRequest.cc | 54 +- sddp/src/model/CreateUserAuthResult.cc | 93 +- sddp/src/model/DeleteDataLimitRequest.cc | 54 +- sddp/src/model/DeleteDataLimitResult.cc | 93 +- sddp/src/model/DeleteRuleRequest.cc | 54 +- sddp/src/model/DeleteRuleResult.cc | 93 +- .../src/model/DescribeAccountDetailRequest.cc | 54 +- sddp/src/model/DescribeAccountDetailResult.cc | 93 +- sddp/src/model/DescribeAccountsRequest.cc | 54 +- sddp/src/model/DescribeAccountsResult.cc | 93 +- sddp/src/model/DescribeAuthAccountsRequest.cc | 54 +- sddp/src/model/DescribeAuthAccountsResult.cc | 93 +- .../model/DescribeCloudDatabasesRequest.cc | 54 +- .../src/model/DescribeCloudDatabasesResult.cc | 93 +- .../model/DescribeCloudInstancesRequest.cc | 54 +- .../src/model/DescribeCloudInstancesResult.cc | 93 +- sddp/src/model/DescribeColumnsRequest.cc | 68 +- sddp/src/model/DescribeColumnsResult.cc | 93 +- sddp/src/model/DescribeConfigsRequest.cc | 54 +- sddp/src/model/DescribeConfigsResult.cc | 93 +- sddp/src/model/DescribeDataAssetsRequest.cc | 54 +- sddp/src/model/DescribeDataAssetsResult.cc | 93 +- .../model/DescribeDataHubConnectorsRequest.cc | 54 +- .../model/DescribeDataHubConnectorsResult.cc | 93 +- .../model/DescribeDataHubProjectsRequest.cc | 54 +- .../model/DescribeDataHubProjectsResult.cc | 93 +- .../DescribeDataHubSubscriptionsRequest.cc | 54 +- .../DescribeDataHubSubscriptionsResult.cc | 93 +- .../src/model/DescribeDataHubTopicsRequest.cc | 54 +- sddp/src/model/DescribeDataHubTopicsResult.cc | 93 +- .../model/DescribeDataLimitDetailRequest.cc | 54 +- .../model/DescribeDataLimitDetailResult.cc | 99 +- sddp/src/model/DescribeDataLimitsRequest.cc | 54 +- sddp/src/model/DescribeDataLimitsResult.cc | 97 +- sddp/src/model/DescribeDepartsRequest.cc | 54 +- sddp/src/model/DescribeDepartsResult.cc | 93 +- sddp/src/model/DescribeEventDetailRequest.cc | 54 +- sddp/src/model/DescribeEventDetailResult.cc | 103 +- sddp/src/model/DescribeEventTypesRequest.cc | 54 +- sddp/src/model/DescribeEventTypesResult.cc | 93 +- sddp/src/model/DescribeEventsRequest.cc | 54 +- sddp/src/model/DescribeEventsResult.cc | 93 +- sddp/src/model/DescribeInstancesRequest.cc | 54 +- sddp/src/model/DescribeInstancesResult.cc | 93 +- .../model/DescribeOssObjectDetailRequest.cc | 54 +- .../model/DescribeOssObjectDetailResult.cc | 93 +- sddp/src/model/DescribeOssObjectsRequest.cc | 54 +- sddp/src/model/DescribeOssObjectsResult.cc | 93 +- sddp/src/model/DescribePackagesRequest.cc | 54 +- sddp/src/model/DescribePackagesResult.cc | 93 +- sddp/src/model/DescribePrivilegesRequest.cc | 54 +- sddp/src/model/DescribePrivilegesResult.cc | 93 +- sddp/src/model/DescribeRulesRequest.cc | 54 +- sddp/src/model/DescribeRulesResult.cc | 93 +- sddp/src/model/DescribeTablesRequest.cc | 61 +- sddp/src/model/DescribeTablesResult.cc | 93 +- sddp/src/model/DescribeUserStatusRequest.cc | 54 +- sddp/src/model/DescribeUserStatusResult.cc | 111 +- sddp/src/model/ModifyDataLimitRequest.cc | 54 +- sddp/src/model/ModifyDataLimitResult.cc | 93 +- sddp/src/model/ModifyDefaultLevelRequest.cc | 54 +- sddp/src/model/ModifyDefaultLevelResult.cc | 93 +- sddp/src/model/ModifyEventStatusRequest.cc | 54 +- sddp/src/model/ModifyEventStatusResult.cc | 93 +- .../src/model/ModifyEventTypeStatusRequest.cc | 54 +- sddp/src/model/ModifyEventTypeStatusResult.cc | 93 +- sddp/src/model/ModifyRuleRequest.cc | 54 +- sddp/src/model/ModifyRuleResult.cc | 93 +- sddp/src/model/ModifyRuleStatusRequest.cc | 54 +- sddp/src/model/ModifyRuleStatusResult.cc | 93 +- sddp/src/model/ValidateConnectorRequest.cc | 54 +- sddp/src/model/ValidateConnectorResult.cc | 93 +- slb/CMakeLists.txt | 72 +- slb/include/alibabacloud/slb/SlbClient.h | 144 +- .../slb/model/AddBackendServersResult.h | 2 +- .../model/AddListenerWhiteListItemRequest.h | 3 + .../AddVServerGroupBackendServersResult.h | 2 +- .../model/CreateAccessControlListRequest.h | 3 + .../CreateLoadBalancerHTTPListenerRequest.h | 6 + .../CreateLoadBalancerHTTPSListenerRequest.h | 9 + .../slb/model/CreateLoadBalancerRequest.h | 9 + .../CreateLoadBalancerTCPListenerRequest.h | 3 + .../CreateMasterSlaveServerGroupResult.h | 2 +- .../CreateMasterSlaveVServerGroupResult.h | 1 + .../slb/model/CreateRulesRequest.h | 3 + .../slb/model/CreateVServerGroupResult.h | 2 +- .../model/DeleteLoadBalancerListenerRequest.h | 3 + ...DescribeAccessControlListAttributeResult.h | 2 + .../model/DescribeAccessControlListsRequest.h | 11 + .../model/DescribeAccessControlListsResult.h | 7 + .../model/DescribeAvailableResourceRequest.h | 69 + .../model/DescribeAvailableResourceResult.h | 62 + .../slb/model/DescribeCACertificatesRequest.h | 8 + .../slb/model/DescribeCACertificatesResult.h | 6 + .../slb/model/DescribeHealthStatusRequest.h | 3 + .../slb/model/DescribeHealthStatusResult.h | 1 + ...ibeListenerAccessControlAttributeRequest.h | 3 + .../DescribeLoadBalancerAttributeRequest.h | 3 + .../DescribeLoadBalancerAttributeResult.h | 15 +- ...eLoadBalancerHTTPListenerAttributeResult.h | 4 + ...LoadBalancerHTTPSListenerAttributeResult.h | 6 + ...beLoadBalancerTCPListenerAttributeResult.h | 2 + .../slb/model/DescribeLoadBalancersRequest.h | 8 + .../slb/model/DescribeLoadBalancersResult.h | 6 + ...ibeMasterSlaveServerGroupAttributeResult.h | 4 +- ...beMasterSlaveVServerGroupAttributeResult.h | 1 + .../slb/model/DescribeRuleAttributeResult.h | 2 + .../slb/model/DescribeRulesRequest.h | 3 + .../model/DescribeServerCertificatesRequest.h | 8 + .../model/DescribeServerCertificatesResult.h | 6 + .../DescribeVServerGroupAttributeResult.h | 4 +- .../ModifyLoadBalancerInternetSpecRequest.h | 21 +- .../ModifyVServerGroupBackendServersResult.h | 2 +- .../slb/model/RemoveBackendServersResult.h | 1 + .../RemoveListenerWhiteListItemRequest.h | 3 + .../RemoveVServerGroupBackendServersResult.h | 2 +- .../slb/model/SetBackendServersResult.h | 2 +- .../SetListenerAccessControlStatusRequest.h | 3 + .../SetLoadBalancerDeleteProtectionRequest.h | 72 + .../SetLoadBalancerDeleteProtectionResult.h | 49 + ...LoadBalancerHTTPListenerAttributeRequest.h | 6 + ...oadBalancerHTTPSListenerAttributeRequest.h | 9 + ...tLoadBalancerTCPListenerAttributeRequest.h | 3 + .../model/SetVServerGroupAttributeResult.h | 2 +- .../model/StartLoadBalancerListenerRequest.h | 3 + .../model/StopLoadBalancerListenerRequest.h | 3 + slb/src/SlbClient.cc | 594 +- .../model/AddAccessControlListEntryRequest.cc | 20 +- .../model/AddAccessControlListEntryResult.cc | 9 +- slb/src/model/AddBackendServersRequest.cc | 18 +- slb/src/model/AddBackendServersResult.cc | 13 +- .../model/AddListenerWhiteListItemRequest.cc | 31 +- .../model/AddListenerWhiteListItemResult.cc | 9 +- slb/src/model/AddTagsRequest.cc | 16 +- slb/src/model/AddTagsResult.cc | 9 +- .../AddVServerGroupBackendServersRequest.cc | 18 +- .../AddVServerGroupBackendServersResult.cc | 13 +- .../model/CreateAccessControlListRequest.cc | 31 +- .../model/CreateAccessControlListResult.cc | 9 +- slb/src/model/CreateDomainExtensionRequest.cc | 22 +- slb/src/model/CreateDomainExtensionResult.cc | 9 +- .../CreateLoadBalancerHTTPListenerRequest.cc | 104 +- .../CreateLoadBalancerHTTPListenerResult.cc | 9 +- .../CreateLoadBalancerHTTPSListenerRequest.cc | 119 +- .../CreateLoadBalancerHTTPSListenerResult.cc | 9 +- slb/src/model/CreateLoadBalancerRequest.cc | 81 +- slb/src/model/CreateLoadBalancerResult.cc | 9 +- .../CreateLoadBalancerTCPListenerRequest.cc | 73 +- .../CreateLoadBalancerTCPListenerResult.cc | 9 +- .../CreateLoadBalancerUDPListenerRequest.cc | 56 +- .../CreateLoadBalancerUDPListenerResult.cc | 9 +- .../CreateMasterSlaveServerGroupRequest.cc | 20 +- .../CreateMasterSlaveServerGroupResult.cc | 13 +- .../CreateMasterSlaveVServerGroupRequest.cc | 22 +- .../CreateMasterSlaveVServerGroupResult.cc | 11 +- slb/src/model/CreateRulesRequest.cc | 31 +- slb/src/model/CreateRulesResult.cc | 9 +- slb/src/model/CreateVServerGroupRequest.cc | 20 +- slb/src/model/CreateVServerGroupResult.cc | 13 +- .../model/DeleteAccessControlListRequest.cc | 18 +- .../model/DeleteAccessControlListResult.cc | 9 +- slb/src/model/DeleteCACertificateRequest.cc | 14 +- slb/src/model/DeleteCACertificateResult.cc | 9 +- slb/src/model/DeleteDomainExtensionRequest.cc | 16 +- slb/src/model/DeleteDomainExtensionResult.cc | 9 +- .../DeleteLoadBalancerListenerRequest.cc | 29 +- .../model/DeleteLoadBalancerListenerResult.cc | 9 +- slb/src/model/DeleteLoadBalancerRequest.cc | 16 +- slb/src/model/DeleteLoadBalancerResult.cc | 9 +- .../DeleteMasterSlaveServerGroupRequest.cc | 16 +- .../DeleteMasterSlaveServerGroupResult.cc | 9 +- .../DeleteMasterSlaveVServerGroupRequest.cc | 18 +- .../DeleteMasterSlaveVServerGroupResult.cc | 9 +- slb/src/model/DeleteRulesRequest.cc | 16 +- slb/src/model/DeleteRulesResult.cc | 9 +- .../model/DeleteServerCertificateRequest.cc | 16 +- .../model/DeleteServerCertificateResult.cc | 9 +- slb/src/model/DeleteVServerGroupRequest.cc | 16 +- slb/src/model/DeleteVServerGroupResult.cc | 9 +- ...scribeAccessControlListAttributeRequest.cc | 20 +- ...escribeAccessControlListAttributeResult.cc | 16 +- .../DescribeAccessControlListsRequest.cc | 52 +- .../model/DescribeAccessControlListsResult.cc | 21 +- .../model/DescribeAvailableResourceRequest.cc | 115 + .../model/DescribeAvailableResourceResult.cc | 73 + .../model/DescribeCACertificatesRequest.cc | 33 +- slb/src/model/DescribeCACertificatesResult.cc | 19 +- .../model/DescribeDomainExtensionsRequest.cc | 20 +- .../model/DescribeDomainExtensionsResult.cc | 9 +- slb/src/model/DescribeHealthStatusRequest.cc | 29 +- slb/src/model/DescribeHealthStatusResult.cc | 11 +- ...beListenerAccessControlAttributeRequest.cc | 29 +- ...ibeListenerAccessControlAttributeResult.cc | 9 +- .../DescribeLoadBalancerAttributeRequest.cc | 27 +- .../DescribeLoadBalancerAttributeResult.cc | 57 +- ...oadBalancerHTTPListenerAttributeRequest.cc | 18 +- ...LoadBalancerHTTPListenerAttributeResult.cc | 23 +- ...adBalancerHTTPSListenerAttributeRequest.cc | 18 +- ...oadBalancerHTTPSListenerAttributeResult.cc | 30 +- ...LoadBalancerTCPListenerAttributeRequest.cc | 18 +- ...eLoadBalancerTCPListenerAttributeResult.cc | 16 +- ...LoadBalancerUDPListenerAttributeRequest.cc | 18 +- ...eLoadBalancerUDPListenerAttributeResult.cc | 9 +- slb/src/model/DescribeLoadBalancersRequest.cc | 69 +- slb/src/model/DescribeLoadBalancersResult.cc | 19 +- ...eMasterSlaveServerGroupAttributeRequest.cc | 16 +- ...beMasterSlaveServerGroupAttributeResult.cc | 20 +- .../DescribeMasterSlaveServerGroupsRequest.cc | 18 +- .../DescribeMasterSlaveServerGroupsResult.cc | 9 +- ...MasterSlaveVServerGroupAttributeRequest.cc | 18 +- ...eMasterSlaveVServerGroupAttributeResult.cc | 11 +- ...DescribeMasterSlaveVServerGroupsRequest.cc | 18 +- .../DescribeMasterSlaveVServerGroupsResult.cc | 9 +- slb/src/model/DescribeRegionsRequest.cc | 16 +- slb/src/model/DescribeRegionsResult.cc | 9 +- slb/src/model/DescribeRuleAttributeRequest.cc | 16 +- slb/src/model/DescribeRuleAttributeResult.cc | 16 +- slb/src/model/DescribeRulesRequest.cc | 29 +- slb/src/model/DescribeRulesResult.cc | 9 +- .../DescribeServerCertificatesRequest.cc | 35 +- .../model/DescribeServerCertificatesResult.cc | 19 +- slb/src/model/DescribeTagsRequest.cc | 22 +- slb/src/model/DescribeTagsResult.cc | 9 +- .../DescribeVServerGroupAttributeRequest.cc | 16 +- .../DescribeVServerGroupAttributeResult.cc | 20 +- slb/src/model/DescribeVServerGroupsRequest.cc | 20 +- slb/src/model/DescribeVServerGroupsResult.cc | 9 +- slb/src/model/DescribeZonesRequest.cc | 14 +- slb/src/model/DescribeZonesResult.cc | 9 +- .../ModifyLoadBalancerInstanceSpecRequest.cc | 20 +- .../ModifyLoadBalancerInstanceSpecResult.cc | 9 +- .../ModifyLoadBalancerInternetSpecRequest.cc | 93 +- .../ModifyLoadBalancerInternetSpecResult.cc | 9 +- .../model/ModifyLoadBalancerPayTypeRequest.cc | 24 +- .../model/ModifyLoadBalancerPayTypeResult.cc | 9 +- ...ModifyVServerGroupBackendServersRequest.cc | 20 +- .../ModifyVServerGroupBackendServersResult.cc | 13 +- .../RemoveAccessControlListEntryRequest.cc | 20 +- .../RemoveAccessControlListEntryResult.cc | 9 +- slb/src/model/RemoveBackendServersRequest.cc | 18 +- slb/src/model/RemoveBackendServersResult.cc | 11 +- .../RemoveListenerWhiteListItemRequest.cc | 31 +- .../RemoveListenerWhiteListItemResult.cc | 9 +- slb/src/model/RemoveTagsRequest.cc | 16 +- slb/src/model/RemoveTagsResult.cc | 9 +- ...RemoveVServerGroupBackendServersRequest.cc | 18 +- .../RemoveVServerGroupBackendServersResult.cc | 13 +- .../SetAccessControlListAttributeRequest.cc | 20 +- .../SetAccessControlListAttributeResult.cc | 9 +- slb/src/model/SetBackendServersRequest.cc | 18 +- slb/src/model/SetBackendServersResult.cc | 13 +- slb/src/model/SetCACertificateNameRequest.cc | 16 +- slb/src/model/SetCACertificateNameResult.cc | 9 +- .../SetDomainExtensionAttributeRequest.cc | 18 +- .../SetDomainExtensionAttributeResult.cc | 9 +- .../SetListenerAccessControlStatusRequest.cc | 31 +- .../SetListenerAccessControlStatusResult.cc | 9 +- .../SetLoadBalancerDeleteProtectionRequest.cc | 126 + .../SetLoadBalancerDeleteProtectionResult.cc | 48 + ...oadBalancerHTTPListenerAttributeRequest.cc | 100 +- ...LoadBalancerHTTPListenerAttributeResult.cc | 9 +- ...adBalancerHTTPSListenerAttributeRequest.cc | 119 +- ...oadBalancerHTTPSListenerAttributeResult.cc | 9 +- slb/src/model/SetLoadBalancerNameRequest.cc | 18 +- slb/src/model/SetLoadBalancerNameResult.cc | 9 +- slb/src/model/SetLoadBalancerStatusRequest.cc | 18 +- slb/src/model/SetLoadBalancerStatusResult.cc | 9 +- ...LoadBalancerTCPListenerAttributeRequest.cc | 77 +- ...tLoadBalancerTCPListenerAttributeResult.cc | 9 +- ...LoadBalancerUDPListenerAttributeRequest.cc | 58 +- ...tLoadBalancerUDPListenerAttributeResult.cc | 9 +- slb/src/model/SetRuleRequest.cc | 50 +- slb/src/model/SetRuleResult.cc | 9 +- .../model/SetServerCertificateNameRequest.cc | 18 +- .../model/SetServerCertificateNameResult.cc | 9 +- .../model/SetVServerGroupAttributeRequest.cc | 20 +- .../model/SetVServerGroupAttributeResult.cc | 13 +- .../model/StartLoadBalancerListenerRequest.cc | 29 +- .../model/StartLoadBalancerListenerResult.cc | 9 +- .../model/StopLoadBalancerListenerRequest.cc | 29 +- .../model/StopLoadBalancerListenerResult.cc | 9 +- slb/src/model/UploadCACertificateRequest.cc | 18 +- slb/src/model/UploadCACertificateResult.cc | 9 +- .../model/UploadServerCertificateRequest.cc | 26 +- .../model/UploadServerCertificateResult.cc | 9 +- smartag/CMakeLists.txt | 588 +- .../alibabacloud/smartag/SmartagClient.h | 1244 +- .../alibabacloud/smartag/SmartagExport.h | 62 +- .../model/ActivateSmartAccessGatewayRequest.h | 88 +- .../model/ActivateSmartAccessGatewayResult.h | 96 +- .../smartag/model/ActiveFlowLogRequest.h | 63 + .../smartag/model/ActiveFlowLogResult.h | 49 + .../smartag/model/AddACLRuleRequest.h | 91 +- .../smartag/model/AddACLRuleResult.h | 110 +- .../smartag/model/AddDnatEntryRequest.h | 81 + .../smartag/model/AddDnatEntryResult.h | 51 + .../AddNetworkOptimizationSettingRequest.h | 88 +- .../AddNetworkOptimizationSettingResult.h | 96 +- .../smartag/model/AddSnatEntryRequest.h | 69 + .../smartag/model/AddSnatEntryResult.h | 51 + .../smartag/model/AssociateACLRequest.h | 88 +- .../smartag/model/AssociateACLResult.h | 96 +- .../smartag/model/AssociateFlowLogRequest.h | 66 + .../smartag/model/AssociateFlowLogResult.h | 49 + .../smartag/model/AssociateQosRequest.h | 66 + .../smartag/model/AssociateQosResult.h | 49 + .../AttachNetworkOptimizationSagsRequest.h | 88 +- .../AttachNetworkOptimizationSagsResult.h | 96 +- .../model/BindSmartAccessGatewayRequest.h | 91 +- .../model/BindSmartAccessGatewayResult.h | 96 +- .../smartag/model/BindVbrRequest.h | 69 + .../smartag/model/BindVbrResult.h | 49 + .../model/ClearSagRouteableAddressRequest.h | 88 +- .../model/ClearSagRouteableAddressResult.h | 96 +- .../smartag/model/CreateACLRequest.h | 88 +- .../smartag/model/CreateACLResult.h | 96 +- .../model/CreateCloudConnectNetworkRequest.h | 88 +- .../model/CreateCloudConnectNetworkResult.h | 96 +- .../model/CreateDedicatedLineBackupRequest.h | 88 +- .../model/CreateDedicatedLineBackupResult.h | 96 +- .../smartag/model/CreateFlowLogRequest.h | 93 + .../smartag/model/CreateFlowLogResult.h | 51 + .../model/CreateNetworkOptimizationRequest.h | 88 +- .../model/CreateNetworkOptimizationResult.h | 96 +- .../smartag/model/CreateQosCarRequest.h | 87 + .../smartag/model/CreateQosCarResult.h | 69 + .../smartag/model/CreateQosPolicyRequest.h | 90 + .../smartag/model/CreateQosPolicyResult.h | 71 + .../smartag/model/CreateQosRequest.h | 63 + .../smartag/model/CreateQosResult.h | 51 + .../model/CreateSAGLinkLevelHaRequest.h | 88 +- .../model/CreateSAGLinkLevelHaResult.h | 96 +- ...reateSmartAccessGatewayClientUserRequest.h | 88 +- ...CreateSmartAccessGatewayClientUserResult.h | 96 +- .../model/CreateSmartAccessGatewayRequest.h | 88 +- .../model/CreateSmartAccessGatewayResult.h | 96 +- .../CreateSmartAccessGatewaySoftwareRequest.h | 88 +- .../CreateSmartAccessGatewaySoftwareResult.h | 96 +- .../smartag/model/DeactiveFlowLogRequest.h | 63 + .../smartag/model/DeactiveFlowLogResult.h | 49 + .../smartag/model/DeleteACLRequest.h | 88 +- .../smartag/model/DeleteACLResult.h | 96 +- .../smartag/model/DeleteACLRuleRequest.h | 88 +- .../smartag/model/DeleteACLRuleResult.h | 96 +- .../model/DeleteCloudConnectNetworkRequest.h | 88 +- .../model/DeleteCloudConnectNetworkResult.h | 96 +- .../model/DeleteDedicatedLineBackupRequest.h | 88 +- .../model/DeleteDedicatedLineBackupResult.h | 96 +- .../smartag/model/DeleteDnatEntryRequest.h | 66 + .../smartag/model/DeleteDnatEntryResult.h | 49 + .../smartag/model/DeleteFlowLogRequest.h | 63 + .../smartag/model/DeleteFlowLogResult.h | 49 + .../model/DeleteNetworkOptimizationRequest.h | 88 +- .../model/DeleteNetworkOptimizationResult.h | 96 +- .../DeleteNetworkOptimizationSettingRequest.h | 88 +- .../DeleteNetworkOptimizationSettingResult.h | 96 +- .../smartag/model/DeleteQosCarRequest.h | 66 + .../smartag/model/DeleteQosCarResult.h | 49 + .../smartag/model/DeleteQosPolicyRequest.h | 66 + .../smartag/model/DeleteQosPolicyResult.h | 49 + .../smartag/model/DeleteQosRequest.h | 63 + .../smartag/model/DeleteQosResult.h | 49 + .../model/DeleteSAGLinkLevelHaRequest.h | 88 +- .../model/DeleteSAGLinkLevelHaResult.h | 96 +- ...eleteSmartAccessGatewayClientUserRequest.h | 88 +- ...DeleteSmartAccessGatewayClientUserResult.h | 96 +- .../smartag/model/DeleteSnatEntryRequest.h | 66 + .../smartag/model/DeleteSnatEntryResult.h | 49 + .../model/DescribeACLAttributeRequest.h | 88 +- .../model/DescribeACLAttributeResult.h | 103 +- .../smartag/model/DescribeACLsRequest.h | 88 +- .../smartag/model/DescribeACLsResult.h | 96 +- ...scribeBindableSmartAccessGatewaysRequest.h | 72 + ...escribeBindableSmartAccessGatewaysResult.h | 63 + .../DescribeCloudConnectNetworksRequest.h | 88 +- .../DescribeCloudConnectNetworksResult.h | 101 +- .../model/DescribeDnatEntriesRequest.h | 72 + .../smartag/model/DescribeDnatEntriesResult.h | 68 + .../model/DescribeFlowLogSagsRequest.h | 69 + .../smartag/model/DescribeFlowLogSagsResult.h | 63 + .../smartag/model/DescribeFlowLogsRequest.h | 81 + .../smartag/model/DescribeFlowLogsResult.h | 73 + .../smartag/model/DescribeGrantRulesRequest.h | 88 +- .../smartag/model/DescribeGrantRulesResult.h | 98 +- .../model/DescribeGrantSagRulesRequest.h | 69 + .../model/DescribeGrantSagRulesResult.h | 65 + .../DescribeNetworkOptimizationSagsRequest.h | 94 +- .../DescribeNetworkOptimizationSagsResult.h | 100 +- ...scribeNetworkOptimizationSettingsRequest.h | 94 +- ...escribeNetworkOptimizationSettingsResult.h | 100 +- .../DescribeNetworkOptimizationsRequest.h | 94 +- .../DescribeNetworkOptimizationsResult.h | 100 +- .../smartag/model/DescribeQosCarsRequest.h | 78 + .../smartag/model/DescribeQosCarsResult.h | 70 + .../model/DescribeQosPoliciesRequest.h | 78 + .../smartag/model/DescribeQosPoliciesResult.h | 71 + .../smartag/model/DescribeQosesRequest.h | 72 + .../smartag/model/DescribeQosesResult.h | 64 + .../smartag/model/DescribeRegionsRequest.h | 88 +- .../smartag/model/DescribeRegionsResult.h | 96 +- ...DescribeSagOnlineClientStatisticsRequest.h | 88 +- .../DescribeSagOnlineClientStatisticsResult.h | 96 +- .../DescribeSagRouteableAddressRequest.h | 88 +- .../model/DescribeSagRouteableAddressResult.h | 96 +- ...scribeSmartAccessGatewayAttributeRequest.h | 63 + ...escribeSmartAccessGatewayAttributeResult.h | 108 + ...ribeSmartAccessGatewayClientUsersRequest.h | 94 +- ...cribeSmartAccessGatewayClientUsersResult.h | 101 +- .../DescribeSmartAccessGatewayHaRequest.h | 88 +- .../DescribeSmartAccessGatewayHaResult.h | 96 +- .../DescribeSmartAccessGatewayRoutesRequest.h | 69 + .../DescribeSmartAccessGatewayRoutesResult.h | 66 + ...escribeSmartAccessGatewayVersionsRequest.h | 88 +- ...DescribeSmartAccessGatewayVersionsResult.h | 96 +- .../DescribeSmartAccessGatewaysRequest.h | 88 +- .../model/DescribeSmartAccessGatewaysResult.h | 130 +- .../model/DescribeSnatEntriesRequest.h | 69 + .../smartag/model/DescribeSnatEntriesResult.h | 64 + .../model/DescribeUnbindFlowLogSagsRequest.h | 60 + .../model/DescribeUnbindFlowLogSagsResult.h | 59 + .../model/DescribeUserFlowStatisticsRequest.h | 88 +- .../model/DescribeUserFlowStatisticsResult.h | 96 +- ...escribeUserOnlineClientStatisticsRequest.h | 88 +- ...DescribeUserOnlineClientStatisticsResult.h | 96 +- .../model/DescribeUserOnlineClientsRequest.h | 88 +- .../model/DescribeUserOnlineClientsResult.h | 96 +- .../DetachNetworkOptimizationSagsRequest.h | 88 +- .../DetachNetworkOptimizationSagsResult.h | 96 +- .../DisableSmartAccessGatewayUserRequest.h | 66 + .../DisableSmartAccessGatewayUserResult.h | 49 + .../smartag/model/DisassociateACLRequest.h | 88 +- .../smartag/model/DisassociateACLResult.h | 96 +- .../model/DisassociateFlowLogRequest.h | 66 + .../smartag/model/DisassociateFlowLogResult.h | 49 + .../smartag/model/DisassociateQosRequest.h | 66 + .../smartag/model/DisassociateQosResult.h | 49 + .../DowngradeSmartAccessGatewayRequest.h | 88 +- .../model/DowngradeSmartAccessGatewayResult.h | 96 +- .../EnableSmartAccessGatewayUserRequest.h | 66 + .../EnableSmartAccessGatewayUserResult.h | 49 + .../GetCloudConnectNetworkUseLimitRequest.h | 88 +- .../GetCloudConnectNetworkUseLimitResult.h | 96 +- .../GetSmartAccessGatewayUseLimitRequest.h | 88 +- .../GetSmartAccessGatewayUseLimitResult.h | 96 +- .../smartag/model/GrantInstanceToCbnRequest.h | 88 +- .../smartag/model/GrantInstanceToCbnResult.h | 96 +- .../model/GrantSagInstanceToCcnRequest.h | 69 + .../model/GrantSagInstanceToCcnResult.h | 51 + .../smartag/model/KickOutClientsRequest.h | 88 +- .../smartag/model/KickOutClientsResult.h | 96 +- .../smartag/model/ModifyACLRequest.h | 88 +- .../smartag/model/ModifyACLResult.h | 96 +- .../smartag/model/ModifyACLRuleRequest.h | 91 +- .../smartag/model/ModifyACLRuleResult.h | 96 +- .../model/ModifyCloudConnectNetworkRequest.h | 94 +- .../model/ModifyCloudConnectNetworkResult.h | 96 +- .../model/ModifyFlowLogAttributeRequest.h | 96 + .../model/ModifyFlowLogAttributeResult.h | 49 + .../model/ModifyNetworkOptimizationRequest.h | 88 +- .../model/ModifyNetworkOptimizationResult.h | 96 +- .../smartag/model/ModifyQosCarRequest.h | 90 + .../smartag/model/ModifyQosCarResult.h | 49 + .../smartag/model/ModifyQosPolicyRequest.h | 93 + .../smartag/model/ModifyQosPolicyResult.h | 49 + .../smartag/model/ModifyQosRequest.h | 66 + .../smartag/model/ModifyQosResult.h | 49 + .../model/ModifySagRemoteAccessRequest.h | 66 + .../model/ModifySagRemoteAccessResult.h | 59 + .../smartag/model/ModifySerialNumberRequest.h | 88 +- .../smartag/model/ModifySerialNumberResult.h | 96 +- ...odifySmartAccessGatewayClientUserRequest.h | 88 +- ...ModifySmartAccessGatewayClientUserResult.h | 96 +- .../model/ModifySmartAccessGatewayRequest.h | 91 +- .../model/ModifySmartAccessGatewayResult.h | 96 +- ...difySmartAccessGatewayUpBandwidthRequest.h | 69 + ...odifySmartAccessGatewayUpBandwidthResult.h | 49 + .../model/RebootSmartAccessGatewayRequest.h | 88 +- .../model/RebootSmartAccessGatewayResult.h | 96 +- ...rtAccessGatewayClientUserPasswordRequest.h | 88 +- ...artAccessGatewayClientUserPasswordResult.h | 96 +- .../model/RevokeInstanceFromCbnRequest.h | 88 +- .../model/RevokeInstanceFromCbnResult.h | 96 +- .../model/RevokeSagInstanceFromCcnRequest.h | 66 + .../model/RevokeSagInstanceFromCcnResult.h | 49 + .../model/SetSagRouteableAddressRequest.h | 88 +- .../model/SetSagRouteableAddressResult.h | 96 +- .../model/SwitchCloudBoxHaStateRequest.h | 88 +- .../model/SwitchCloudBoxHaStateResult.h | 96 +- .../smartag/model/SwitchSAGHaStateRequest.h | 88 +- .../smartag/model/SwitchSAGHaStateResult.h | 96 +- .../model/UnbindSmartAccessGatewayRequest.h | 91 +- .../model/UnbindSmartAccessGatewayResult.h | 96 +- .../smartag/model/UnbindVbrRequest.h | 69 + .../smartag/model/UnbindVbrResult.h | 49 + .../smartag/model/UnicomOrderConfirmRequest.h | 88 +- .../smartag/model/UnicomOrderConfirmResult.h | 96 +- .../smartag/model/UnicomSignConfirmRequest.h | 88 +- .../smartag/model/UnicomSignConfirmResult.h | 96 +- .../model/UnlockSmartAccessGatewayRequest.h | 88 +- .../model/UnlockSmartAccessGatewayResult.h | 96 +- .../UpdateSmartAccessGatewayVersionRequest.h | 88 +- .../UpdateSmartAccessGatewayVersionResult.h | 96 +- .../model/UpgradeSmartAccessGatewayRequest.h | 88 +- .../model/UpgradeSmartAccessGatewayResult.h | 96 +- smartag/src/SmartagClient.cc | 6368 +++++--- .../ActivateSmartAccessGatewayRequest.cc | 54 +- .../model/ActivateSmartAccessGatewayResult.cc | 93 +- smartag/src/model/ActiveFlowLogRequest.cc | 93 + smartag/src/model/ActiveFlowLogResult.cc | 48 + smartag/src/model/AddACLRuleRequest.cc | 65 +- smartag/src/model/AddACLRuleResult.cc | 130 +- smartag/src/model/AddDnatEntryRequest.cc | 159 + smartag/src/model/AddDnatEntryResult.cc | 55 + .../AddNetworkOptimizationSettingRequest.cc | 54 +- .../AddNetworkOptimizationSettingResult.cc | 93 +- smartag/src/model/AddSnatEntryRequest.cc | 115 + smartag/src/model/AddSnatEntryResult.cc | 55 + smartag/src/model/AssociateACLRequest.cc | 54 +- smartag/src/model/AssociateACLResult.cc | 93 +- smartag/src/model/AssociateFlowLogRequest.cc | 104 + smartag/src/model/AssociateFlowLogResult.cc | 48 + smartag/src/model/AssociateQosRequest.cc | 104 + smartag/src/model/AssociateQosResult.cc | 48 + .../AttachNetworkOptimizationSagsRequest.cc | 54 +- .../AttachNetworkOptimizationSagsResult.cc | 93 +- .../model/BindSmartAccessGatewayRequest.cc | 65 +- .../src/model/BindSmartAccessGatewayResult.cc | 93 +- smartag/src/model/BindVbrRequest.cc | 115 + smartag/src/model/BindVbrResult.cc | 48 + .../model/ClearSagRouteableAddressRequest.cc | 54 +- .../model/ClearSagRouteableAddressResult.cc | 93 +- smartag/src/model/CreateACLRequest.cc | 54 +- smartag/src/model/CreateACLResult.cc | 93 +- .../model/CreateCloudConnectNetworkRequest.cc | 54 +- .../model/CreateCloudConnectNetworkResult.cc | 93 +- .../model/CreateDedicatedLineBackupRequest.cc | 54 +- .../model/CreateDedicatedLineBackupResult.cc | 93 +- smartag/src/model/CreateFlowLogRequest.cc | 203 + smartag/src/model/CreateFlowLogResult.cc | 55 + .../model/CreateNetworkOptimizationRequest.cc | 54 +- .../model/CreateNetworkOptimizationResult.cc | 93 +- smartag/src/model/CreateQosCarRequest.cc | 181 + smartag/src/model/CreateQosCarResult.cc | 118 + smartag/src/model/CreateQosPolicyRequest.cc | 192 + smartag/src/model/CreateQosPolicyResult.cc | 125 + smartag/src/model/CreateQosRequest.cc | 93 + smartag/src/model/CreateQosResult.cc | 55 + .../src/model/CreateSAGLinkLevelHaRequest.cc | 54 +- .../src/model/CreateSAGLinkLevelHaResult.cc | 93 +- ...eateSmartAccessGatewayClientUserRequest.cc | 54 +- ...reateSmartAccessGatewayClientUserResult.cc | 93 +- .../model/CreateSmartAccessGatewayRequest.cc | 54 +- .../model/CreateSmartAccessGatewayResult.cc | 93 +- ...CreateSmartAccessGatewaySoftwareRequest.cc | 54 +- .../CreateSmartAccessGatewaySoftwareResult.cc | 93 +- smartag/src/model/DeactiveFlowLogRequest.cc | 93 + smartag/src/model/DeactiveFlowLogResult.cc | 48 + smartag/src/model/DeleteACLRequest.cc | 54 +- smartag/src/model/DeleteACLResult.cc | 93 +- smartag/src/model/DeleteACLRuleRequest.cc | 54 +- smartag/src/model/DeleteACLRuleResult.cc | 93 +- .../model/DeleteCloudConnectNetworkRequest.cc | 54 +- .../model/DeleteCloudConnectNetworkResult.cc | 93 +- .../model/DeleteDedicatedLineBackupRequest.cc | 54 +- .../model/DeleteDedicatedLineBackupResult.cc | 93 +- smartag/src/model/DeleteDnatEntryRequest.cc | 104 + smartag/src/model/DeleteDnatEntryResult.cc | 48 + smartag/src/model/DeleteFlowLogRequest.cc | 93 + smartag/src/model/DeleteFlowLogResult.cc | 48 + .../model/DeleteNetworkOptimizationRequest.cc | 54 +- .../model/DeleteNetworkOptimizationResult.cc | 93 +- ...DeleteNetworkOptimizationSettingRequest.cc | 54 +- .../DeleteNetworkOptimizationSettingResult.cc | 93 +- smartag/src/model/DeleteQosCarRequest.cc | 104 + smartag/src/model/DeleteQosCarResult.cc | 48 + smartag/src/model/DeleteQosPolicyRequest.cc | 104 + smartag/src/model/DeleteQosPolicyResult.cc | 48 + smartag/src/model/DeleteQosRequest.cc | 93 + smartag/src/model/DeleteQosResult.cc | 48 + .../src/model/DeleteSAGLinkLevelHaRequest.cc | 54 +- .../src/model/DeleteSAGLinkLevelHaResult.cc | 93 +- ...leteSmartAccessGatewayClientUserRequest.cc | 54 +- ...eleteSmartAccessGatewayClientUserResult.cc | 93 +- smartag/src/model/DeleteSnatEntryRequest.cc | 104 + smartag/src/model/DeleteSnatEntryResult.cc | 48 + .../src/model/DescribeACLAttributeRequest.cc | 54 +- .../src/model/DescribeACLAttributeResult.cc | 95 +- smartag/src/model/DescribeACLsRequest.cc | 54 +- smartag/src/model/DescribeACLsResult.cc | 93 +- ...cribeBindableSmartAccessGatewaysRequest.cc | 126 + ...scribeBindableSmartAccessGatewaysResult.cc | 86 + .../DescribeCloudConnectNetworksRequest.cc | 54 +- .../DescribeCloudConnectNetworksResult.cc | 95 +- .../src/model/DescribeDnatEntriesRequest.cc | 126 + .../src/model/DescribeDnatEntriesResult.cc | 96 + .../src/model/DescribeFlowLogSagsRequest.cc | 115 + .../src/model/DescribeFlowLogSagsResult.cc | 86 + smartag/src/model/DescribeFlowLogsRequest.cc | 159 + smartag/src/model/DescribeFlowLogsResult.cc | 106 + .../src/model/DescribeGrantRulesRequest.cc | 54 +- smartag/src/model/DescribeGrantRulesResult.cc | 97 +- .../src/model/DescribeGrantSagRulesRequest.cc | 115 + .../src/model/DescribeGrantSagRulesResult.cc | 90 + .../DescribeNetworkOptimizationSagsRequest.cc | 76 +- .../DescribeNetworkOptimizationSagsResult.cc | 107 +- ...cribeNetworkOptimizationSettingsRequest.cc | 76 +- ...scribeNetworkOptimizationSettingsResult.cc | 101 +- .../DescribeNetworkOptimizationsRequest.cc | 76 +- .../DescribeNetworkOptimizationsResult.cc | 101 +- smartag/src/model/DescribeQosCarsRequest.cc | 148 + smartag/src/model/DescribeQosCarsResult.cc | 100 + .../src/model/DescribeQosPoliciesRequest.cc | 148 + .../src/model/DescribeQosPoliciesResult.cc | 102 + smartag/src/model/DescribeQosesRequest.cc | 126 + smartag/src/model/DescribeQosesResult.cc | 88 + smartag/src/model/DescribeRegionsRequest.cc | 54 +- smartag/src/model/DescribeRegionsResult.cc | 93 +- ...escribeSagOnlineClientStatisticsRequest.cc | 54 +- ...DescribeSagOnlineClientStatisticsResult.cc | 93 +- .../DescribeSagRouteableAddressRequest.cc | 54 +- .../DescribeSagRouteableAddressResult.cc | 93 +- ...cribeSmartAccessGatewayAttributeRequest.cc | 93 + ...scribeSmartAccessGatewayAttributeResult.cc | 222 + ...ibeSmartAccessGatewayClientUsersRequest.cc | 76 +- ...ribeSmartAccessGatewayClientUsersResult.cc | 103 +- .../DescribeSmartAccessGatewayHaRequest.cc | 54 +- .../DescribeSmartAccessGatewayHaResult.cc | 93 +- ...DescribeSmartAccessGatewayRoutesRequest.cc | 115 + .../DescribeSmartAccessGatewayRoutesResult.cc | 92 + ...scribeSmartAccessGatewayVersionsRequest.cc | 54 +- ...escribeSmartAccessGatewayVersionsResult.cc | 93 +- .../DescribeSmartAccessGatewaysRequest.cc | 54 +- .../DescribeSmartAccessGatewaysResult.cc | 133 +- .../src/model/DescribeSnatEntriesRequest.cc | 115 + .../src/model/DescribeSnatEntriesResult.cc | 88 + .../model/DescribeUnbindFlowLogSagsRequest.cc | 82 + .../model/DescribeUnbindFlowLogSagsResult.cc | 72 + .../DescribeUserFlowStatisticsRequest.cc | 54 +- .../model/DescribeUserFlowStatisticsResult.cc | 93 +- ...scribeUserOnlineClientStatisticsRequest.cc | 54 +- ...escribeUserOnlineClientStatisticsResult.cc | 93 +- .../model/DescribeUserOnlineClientsRequest.cc | 54 +- .../model/DescribeUserOnlineClientsResult.cc | 93 +- .../DetachNetworkOptimizationSagsRequest.cc | 54 +- .../DetachNetworkOptimizationSagsResult.cc | 93 +- .../DisableSmartAccessGatewayUserRequest.cc | 104 + .../DisableSmartAccessGatewayUserResult.cc | 48 + smartag/src/model/DisassociateACLRequest.cc | 54 +- smartag/src/model/DisassociateACLResult.cc | 93 +- .../src/model/DisassociateFlowLogRequest.cc | 104 + .../src/model/DisassociateFlowLogResult.cc | 48 + smartag/src/model/DisassociateQosRequest.cc | 104 + smartag/src/model/DisassociateQosResult.cc | 48 + .../DowngradeSmartAccessGatewayRequest.cc | 54 +- .../DowngradeSmartAccessGatewayResult.cc | 93 +- .../EnableSmartAccessGatewayUserRequest.cc | 104 + .../EnableSmartAccessGatewayUserResult.cc | 48 + .../GetCloudConnectNetworkUseLimitRequest.cc | 54 +- .../GetCloudConnectNetworkUseLimitResult.cc | 93 +- .../GetSmartAccessGatewayUseLimitRequest.cc | 54 +- .../GetSmartAccessGatewayUseLimitResult.cc | 93 +- .../src/model/GrantInstanceToCbnRequest.cc | 54 +- smartag/src/model/GrantInstanceToCbnResult.cc | 93 +- .../src/model/GrantSagInstanceToCcnRequest.cc | 115 + .../src/model/GrantSagInstanceToCcnResult.cc | 55 + smartag/src/model/KickOutClientsRequest.cc | 54 +- smartag/src/model/KickOutClientsResult.cc | 93 +- smartag/src/model/ModifyACLRequest.cc | 54 +- smartag/src/model/ModifyACLResult.cc | 93 +- smartag/src/model/ModifyACLRuleRequest.cc | 65 +- smartag/src/model/ModifyACLRuleResult.cc | 93 +- .../model/ModifyCloudConnectNetworkRequest.cc | 76 +- .../model/ModifyCloudConnectNetworkResult.cc | 93 +- .../model/ModifyFlowLogAttributeRequest.cc | 214 + .../src/model/ModifyFlowLogAttributeResult.cc | 48 + .../model/ModifyNetworkOptimizationRequest.cc | 54 +- .../model/ModifyNetworkOptimizationResult.cc | 93 +- smartag/src/model/ModifyQosCarRequest.cc | 192 + smartag/src/model/ModifyQosCarResult.cc | 48 + smartag/src/model/ModifyQosPolicyRequest.cc | 203 + smartag/src/model/ModifyQosPolicyResult.cc | 48 + smartag/src/model/ModifyQosRequest.cc | 104 + smartag/src/model/ModifyQosResult.cc | 48 + .../src/model/ModifySagRemoteAccessRequest.cc | 104 + .../src/model/ModifySagRemoteAccessResult.cc | 83 + .../src/model/ModifySerialNumberRequest.cc | 54 +- smartag/src/model/ModifySerialNumberResult.cc | 93 +- ...difySmartAccessGatewayClientUserRequest.cc | 54 +- ...odifySmartAccessGatewayClientUserResult.cc | 93 +- .../model/ModifySmartAccessGatewayRequest.cc | 65 +- .../model/ModifySmartAccessGatewayResult.cc | 93 +- ...ifySmartAccessGatewayUpBandwidthRequest.cc | 115 + ...difySmartAccessGatewayUpBandwidthResult.cc | 48 + .../model/RebootSmartAccessGatewayRequest.cc | 54 +- .../model/RebootSmartAccessGatewayResult.cc | 93 +- ...tAccessGatewayClientUserPasswordRequest.cc | 54 +- ...rtAccessGatewayClientUserPasswordResult.cc | 93 +- .../src/model/RevokeInstanceFromCbnRequest.cc | 54 +- .../src/model/RevokeInstanceFromCbnResult.cc | 93 +- .../model/RevokeSagInstanceFromCcnRequest.cc | 104 + .../model/RevokeSagInstanceFromCcnResult.cc | 48 + .../model/SetSagRouteableAddressRequest.cc | 54 +- .../src/model/SetSagRouteableAddressResult.cc | 93 +- .../src/model/SwitchCloudBoxHaStateRequest.cc | 54 +- .../src/model/SwitchCloudBoxHaStateResult.cc | 93 +- smartag/src/model/SwitchSAGHaStateRequest.cc | 54 +- smartag/src/model/SwitchSAGHaStateResult.cc | 93 +- .../model/UnbindSmartAccessGatewayRequest.cc | 65 +- .../model/UnbindSmartAccessGatewayResult.cc | 93 +- smartag/src/model/UnbindVbrRequest.cc | 115 + smartag/src/model/UnbindVbrResult.cc | 48 + .../src/model/UnicomOrderConfirmRequest.cc | 54 +- smartag/src/model/UnicomOrderConfirmResult.cc | 93 +- smartag/src/model/UnicomSignConfirmRequest.cc | 54 +- smartag/src/model/UnicomSignConfirmResult.cc | 93 +- .../model/UnlockSmartAccessGatewayRequest.cc | 54 +- .../model/UnlockSmartAccessGatewayResult.cc | 93 +- .../UpdateSmartAccessGatewayVersionRequest.cc | 54 +- .../UpdateSmartAccessGatewayVersionResult.cc | 93 +- .../model/UpgradeSmartAccessGatewayRequest.cc | 54 +- .../model/UpgradeSmartAccessGatewayResult.cc | 93 +- snsuapi/CMakeLists.txt | 8 +- .../alibabacloud/snsuapi/SnsuapiClient.h | 16 +- snsuapi/src/SnsuapiClient.cc | 72 +- snsuapi/src/model/BandOfferOrderRequest.cc | 12 +- snsuapi/src/model/BandOfferOrderResult.cc | 9 +- snsuapi/src/model/BandPrecheckRequest.cc | 12 +- snsuapi/src/model/BandPrecheckResult.cc | 9 +- snsuapi/src/model/BandStartSpeedUpRequest.cc | 20 +- snsuapi/src/model/BandStartSpeedUpResult.cc | 9 +- snsuapi/src/model/BandStatusQueryRequest.cc | 10 +- snsuapi/src/model/BandStatusQueryResult.cc | 9 +- snsuapi/src/model/BandStopSpeedUpRequest.cc | 16 +- snsuapi/src/model/BandStopSpeedUpResult.cc | 9 +- .../src/model/MobileStartSpeedUpRequest.cc | 20 +- snsuapi/src/model/MobileStartSpeedUpResult.cc | 9 +- snsuapi/src/model/MobileStatusQueryRequest.cc | 10 +- snsuapi/src/model/MobileStatusQueryResult.cc | 9 +- snsuapi/src/model/MobileStopSpeedUpRequest.cc | 10 +- snsuapi/src/model/MobileStopSpeedUpResult.cc | 9 +- sts/CMakeLists.txt | 8 +- sts/include/alibabacloud/sts/StsClient.h | 8 + .../sts/model/AssumeRoleWithSAMLRequest.h | 60 + .../sts/model/AssumeRoleWithSAMLResult.h | 74 + sts/src/StsClient.cc | 36 + sts/src/model/AssumeRoleRequest.cc | 8 +- sts/src/model/AssumeRoleResult.cc | 9 +- sts/src/model/AssumeRoleWithSAMLRequest.cc | 82 + sts/src/model/AssumeRoleWithSAMLResult.cc | 86 + sts/src/model/GetCallerIdentityResult.cc | 9 +- .../alibabacloud/tesladam/TeslaDamClient.h | 50 +- .../tesladam/model/ActionDiskCheckResult.h | 12 +- .../tesladam/model/ActionDiskMaskResult.h | 12 +- .../tesladam/model/ActionDiskRmaResult.h | 12 +- .../tesladam/model/ActionResult.h | 12 +- .../tesladam/model/HostGetsResult.h | 34 +- tesladam/src/TeslaDamClient.cc | 18 +- tesladam/src/model/ActionDiskCheckRequest.cc | 4 +- tesladam/src/model/ActionDiskCheckResult.cc | 51 +- tesladam/src/model/ActionDiskMaskRequest.cc | 6 +- tesladam/src/model/ActionDiskMaskResult.cc | 51 +- tesladam/src/model/ActionDiskRmaRequest.cc | 14 +- tesladam/src/model/ActionDiskRmaResult.cc | 51 +- tesladam/src/model/ActionRequest.cc | 4 +- tesladam/src/model/ActionResult.cc | 51 +- tesladam/src/model/HostGetsRequest.cc | 8 +- tesladam/src/model/HostGetsResult.cc | 91 +- teslamaxcompute/CMakeLists.txt | 8 +- .../teslamaxcompute/TeslaMaxComputeClient.h | 16 +- teslamaxcompute/src/TeslaMaxComputeClient.cc | 72 +- .../src/model/GetClusterInstanceRequest.cc | 10 +- .../src/model/GetClusterInstanceResult.cc | 9 +- .../model/GetInstancesStatusCountRequest.cc | 8 +- .../model/GetInstancesStatusCountResult.cc | 9 +- .../src/model/GetProjectInstanceRequest.cc | 10 +- .../src/model/GetProjectInstanceResult.cc | 9 +- .../src/model/GetQuotaHistoryInfoRequest.cc | 10 +- .../src/model/GetQuotaHistoryInfoResult.cc | 9 +- .../src/model/GetQuotaInstanceRequest.cc | 14 +- .../src/model/GetQuotaInstanceResult.cc | 9 +- .../src/model/GetUserInstanceRequest.cc | 10 +- .../src/model/GetUserInstanceResult.cc | 9 +- .../src/model/QueryCustomerSaleInfoRequest.cc | 2 +- .../src/model/QueryCustomerSaleInfoResult.cc | 9 +- .../src/model/QueryResourceInventoryResult.cc | 9 +- .../src/model/QueryTopologyResult.cc | 9 +- .../src/model/BatchGetJobMetricInfoRequest.cc | 2 +- .../src/model/BatchGetJobMetricInfoResult.cc | 9 +- .../model/BatchGetPluginConfigInfoRequest.cc | 2 +- .../model/BatchGetPluginConfigInfoResult.cc | 9 +- .../src/model/GetJobTopologyRequest.cc | 2 +- teslastream/src/model/GetJobTopologyResult.cc | 9 +- test/core/commonclient_ut.cc | 2 +- test/core/timeout_ut.cc | 2 +- test/core/utils_ut.cc | 2 +- trademark/CMakeLists.txt | 220 +- .../alibabacloud/trademark/TrademarkClient.h | 464 +- .../model/CreateIntentionOrderRequest.h | 51 + .../model/CreateIntentionOrderResult.h | 55 + .../model/InsertTradeIntentionUserRequest.h | 3 + .../model/QueryCommunicationLogsRequest.h | 9 + .../model/QueryIntentionDetailRequest.h | 48 + .../model/QueryIntentionDetailResult.h | 71 + .../model/QueryIntentionListRequest.h | 63 + .../model/QueryIntentionListResult.h | 71 + .../QueryTradeIntentionUserListRequest.h | 12 + .../model/QueryTradeIntentionUserListResult.h | 5 +- .../QueryTradeMarkApplicationDetailResult.h | 8 +- ...yTradeMarkApplicationsByIntentionRequest.h | 57 + ...ryTradeMarkApplicationsByIntentionResult.h | 91 + .../model/QueryTradeMarkApplicationsRequest.h | 24 +- .../model/QueryTradeMarkApplicationsResult.h | 2 + .../model/QueryTradeProduceListResult.h | 1 + .../model/WriteCommunicationLogRequest.h | 54 + .../model/WriteCommunicationLogResult.h | 55 + .../WriteIntentionCommunicationLogRequest.h | 54 + .../WriteIntentionCommunicationLogResult.h | 55 + trademark/src/TrademarkClient.cc | 1926 ++- trademark/src/model/ApplyNotaryPostResult.cc | 9 +- trademark/src/model/BindMaterialResult.cc | 9 +- trademark/src/model/CancelTradeOrderResult.cc | 9 +- trademark/src/model/CheckLoaFillResult.cc | 9 +- trademark/src/model/CombineLoaResult.cc | 9 +- .../src/model/ConvertImageToGrayResult.cc | 9 +- .../src/model/CreateIntentionOrderRequest.cc | 49 + .../src/model/CreateIntentionOrderResult.cc | 70 + .../src/model/CreateTrademarkOrderResult.cc | 9 +- trademark/src/model/DeleteMaterialResult.cc | 9 +- .../src/model/DeleteTmMonitorRuleResult.cc | 9 +- trademark/src/model/DenySupplementResult.cc | 9 +- trademark/src/model/FillLogisticsResult.cc | 9 +- .../src/model/FilterUnavailableCodesResult.cc | 9 +- trademark/src/model/GenerateQrCodeResult.cc | 9 +- .../model/GenerateUploadFilePolicyResult.cc | 9 +- trademark/src/model/GetNotaryOrderResult.cc | 9 +- trademark/src/model/InsertMaterialResult.cc | 9 +- trademark/src/model/InsertRenewInfoResult.cc | 9 +- .../src/model/InsertTmMonitorRuleResult.cc | 9 +- .../model/InsertTradeIntentionUserRequest.cc | 11 + .../model/InsertTradeIntentionUserResult.cc | 9 +- trademark/src/model/ListNotaryInfosResult.cc | 9 +- trademark/src/model/ListNotaryOrdersResult.cc | 9 +- .../model/QueryCommunicationLogsRequest.cc | 33 + .../src/model/QueryCommunicationLogsResult.cc | 9 +- .../src/model/QueryCredentialsInfoResult.cc | 9 +- .../src/model/QueryIntentionDetailRequest.cc | 38 + .../src/model/QueryIntentionDetailResult.cc | 125 + .../src/model/QueryIntentionListRequest.cc | 93 + .../src/model/QueryIntentionListResult.cc | 105 + .../src/model/QueryMaterialListResult.cc | 9 +- trademark/src/model/QueryMaterialResult.cc | 9 +- .../src/model/QueryMonitorKeywordsResult.cc | 9 +- .../src/model/QueryOssResourcesResult.cc | 9 +- .../model/QueryQrCodeUploadStatusResult.cc | 9 +- .../src/model/QuerySupplementDetailResult.cc | 9 +- trademark/src/model/QueryTaskListResult.cc | 9 +- .../QueryTradeIntentionUserListRequest.cc | 44 + .../QueryTradeIntentionUserListResult.cc | 19 +- .../QueryTradeMarkApplicationDetailResult.cc | 27 +- .../QueryTradeMarkApplicationLogsResult.cc | 9 +- ...TradeMarkApplicationsByIntentionRequest.cc | 71 + ...yTradeMarkApplicationsByIntentionResult.cc | 136 + .../QueryTradeMarkApplicationsRequest.cc | 88 +- .../model/QueryTradeMarkApplicationsResult.cc | 13 +- .../model/QueryTradeProduceDetailResult.cc | 9 +- .../src/model/QueryTradeProduceListResult.cc | 11 +- .../QueryTrademarkMonitorResultsResult.cc | 9 +- .../model/QueryTrademarkMonitorRulesResult.cc | 9 +- .../src/model/QueryTrademarkPriceResult.cc | 9 +- trademark/src/model/RefundProduceResult.cc | 9 +- trademark/src/model/SaveTaskResult.cc | 9 +- trademark/src/model/StartNotaryResult.cc | 9 +- .../model/StoreMaterialTemporarilyResult.cc | 9 +- trademark/src/model/SubmitSupplementResult.cc | 9 +- trademark/src/model/UpdateMaterialResult.cc | 9 +- .../src/model/UpdateSendMaterialNumResult.cc | 9 +- .../src/model/UpdateTmMonitorRuleResult.cc | 9 +- trademark/src/model/UploadNotaryDataResult.cc | 9 +- .../src/model/WriteCommunicationLogRequest.cc | 60 + .../src/model/WriteCommunicationLogResult.cc | 69 + .../WriteIntentionCommunicationLogRequest.cc | 60 + .../WriteIntentionCommunicationLogResult.cc | 69 + ubsms/CMakeLists.txt | 8 +- .../include/alibabacloud/ubsms/UbsmsClient.h | 16 +- ubsms/src/UbsmsClient.cc | 72 +- .../model/DescribeBusinessStatusRequest.cc | 4 +- .../src/model/DescribeBusinessStatusResult.cc | 9 +- .../model/NotifyUserBusinessCommandRequest.cc | 14 +- .../model/NotifyUserBusinessCommandResult.cc | 9 +- .../src/model/SetUserBusinessStatusRequest.cc | 8 +- .../src/model/SetUserBusinessStatusResult.cc | 9 +- vod/CMakeLists.txt | 504 +- vod/include/alibabacloud/vod/VodClient.h | 240 +- .../vod/model/ListAppInfoResult.h | 2 + .../ModifyVodDomainSchdmByPropertyRequest.h | 120 + .../ModifyVodDomainSchdmByPropertyResult.h | 49 + vod/src/VodClient.cc | 918 +- vod/src/model/AddAITemplateResult.cc | 9 +- vod/src/model/AddCategoryResult.cc | 9 +- vod/src/model/AddEditingProjectResult.cc | 9 +- .../model/AddTranscodeTemplateGroupResult.cc | 9 +- vod/src/model/AddVodDomainResult.cc | 9 +- vod/src/model/AddVodTemplateResult.cc | 9 +- vod/src/model/AddWatermarkResult.cc | 9 +- .../model/AttachAppPolicyToIdentityResult.cc | 9 +- .../model/BatchSetVodDomainConfigsResult.cc | 9 +- vod/src/model/BatchStartVodDomainResult.cc | 9 +- vod/src/model/BatchStopVodDomainResult.cc | 9 +- vod/src/model/CreateAppInfoResult.cc | 9 +- vod/src/model/CreateAuditResult.cc | 9 +- .../model/CreateUploadAttachedMediaResult.cc | 9 +- vod/src/model/CreateUploadImageResult.cc | 9 +- vod/src/model/CreateUploadVideoResult.cc | 9 +- vod/src/model/DeleteAITemplateResult.cc | 9 +- vod/src/model/DeleteAppInfoResult.cc | 9 +- vod/src/model/DeleteAttachedMediaResult.cc | 9 +- vod/src/model/DeleteCategoryResult.cc | 9 +- vod/src/model/DeleteEditingProjectResult.cc | 9 +- vod/src/model/DeleteImageResult.cc | 9 +- vod/src/model/DeleteMessageCallbackResult.cc | 9 +- vod/src/model/DeleteMezzaninesResult.cc | 9 +- vod/src/model/DeleteMultipartUploadResult.cc | 9 +- vod/src/model/DeleteStreamResult.cc | 9 +- .../DeleteTranscodeTemplateGroupResult.cc | 9 +- vod/src/model/DeleteVideoResult.cc | 9 +- vod/src/model/DeleteVodDomainResult.cc | 9 +- .../model/DeleteVodSpecificConfigResult.cc | 9 +- vod/src/model/DeleteVodTemplateResult.cc | 9 +- vod/src/model/DeleteWatermarkResult.cc | 9 +- vod/src/model/DescribePlayTopVideosResult.cc | 9 +- vod/src/model/DescribePlayUserAvgResult.cc | 9 +- vod/src/model/DescribePlayUserTotalResult.cc | 9 +- .../model/DescribePlayVideoStatisResult.cc | 9 +- vod/src/model/DescribeVodAIDataResult.cc | 9 +- .../model/DescribeVodCertificateListResult.cc | 9 +- .../model/DescribeVodDomainBpsDataResult.cc | 9 +- .../DescribeVodDomainCertificateInfoResult.cc | 9 +- .../model/DescribeVodDomainConfigsResult.cc | 9 +- .../model/DescribeVodDomainDetailResult.cc | 9 +- vod/src/model/DescribeVodDomainLogResult.cc | 9 +- .../DescribeVodDomainTrafficDataResult.cc | 9 +- .../model/DescribeVodDomainUsageDataResult.cc | 9 +- .../model/DescribeVodRefreshQuotaResult.cc | 9 +- .../model/DescribeVodRefreshTasksResult.cc | 9 +- vod/src/model/DescribeVodStorageDataResult.cc | 9 +- .../model/DescribeVodTranscodeDataResult.cc | 9 +- vod/src/model/DescribeVodUserDomainsResult.cc | 9 +- .../DetachAppPolicyFromIdentityResult.cc | 9 +- vod/src/model/GetAIMediaAuditJobResult.cc | 9 +- vod/src/model/GetAITemplateResult.cc | 9 +- vod/src/model/GetAIVideoTagResultResult.cc | 9 +- vod/src/model/GetAppInfosResult.cc | 9 +- vod/src/model/GetAttachedMediaInfoResult.cc | 9 +- vod/src/model/GetAuditHistoryResult.cc | 9 +- vod/src/model/GetCategoriesResult.cc | 9 +- vod/src/model/GetDefaultAITemplateResult.cc | 9 +- .../model/GetEditingProjectMaterialsResult.cc | 9 +- vod/src/model/GetEditingProjectResult.cc | 9 +- vod/src/model/GetImageInfoResult.cc | 9 +- .../model/GetMediaAuditResultDetailResult.cc | 9 +- vod/src/model/GetMediaAuditResultResult.cc | 9 +- .../GetMediaAuditResultTimelineResult.cc | 9 +- vod/src/model/GetMediaDNAResultResult.cc | 9 +- vod/src/model/GetMessageCallbackResult.cc | 9 +- vod/src/model/GetMezzanineInfoResult.cc | 9 +- vod/src/model/GetPlayInfoResult.cc | 9 +- vod/src/model/GetTranscodeSummaryResult.cc | 9 +- vod/src/model/GetTranscodeTaskResult.cc | 9 +- .../model/GetTranscodeTemplateGroupResult.cc | 9 +- vod/src/model/GetURLUploadInfosResult.cc | 9 +- vod/src/model/GetUploadDetailsResult.cc | 9 +- vod/src/model/GetVideoInfoResult.cc | 9 +- vod/src/model/GetVideoInfosResult.cc | 9 +- vod/src/model/GetVideoListResult.cc | 9 +- vod/src/model/GetVideoPlayAuthResult.cc | 9 +- vod/src/model/GetVodTemplateResult.cc | 9 +- vod/src/model/GetWatermarkResult.cc | 9 +- vod/src/model/ListAIJobResult.cc | 9 +- vod/src/model/ListAITemplateResult.cc | 9 +- vod/src/model/ListAppInfoResult.cc | 16 +- .../model/ListAppPoliciesForIdentityResult.cc | 9 +- vod/src/model/ListAuditSecurityIpResult.cc | 9 +- vod/src/model/ListLiveRecordVideoResult.cc | 9 +- vod/src/model/ListSnapshotsResult.cc | 9 +- vod/src/model/ListTranscodeTaskResult.cc | 9 +- .../model/ListTranscodeTemplateGroupResult.cc | 9 +- vod/src/model/ListVodTemplateResult.cc | 9 +- vod/src/model/ListWatermarkResult.cc | 9 +- .../ModifyVodDomainSchdmByPropertyRequest.cc | 302 + .../ModifyVodDomainSchdmByPropertyResult.cc | 48 + vod/src/model/MoveAppResourceResult.cc | 9 +- vod/src/model/PreloadVodObjectCachesResult.cc | 9 +- .../model/ProduceEditingProjectVideoResult.cc | 9 +- vod/src/model/RefreshUploadVideoResult.cc | 9 +- vod/src/model/RefreshVodObjectCachesResult.cc | 9 +- vod/src/model/RegisterMediaResult.cc | 9 +- vod/src/model/SearchEditingProjectResult.cc | 9 +- vod/src/model/SearchMediaResult.cc | 9 +- vod/src/model/SetAuditSecurityIpResult.cc | 9 +- vod/src/model/SetDefaultAITemplateResult.cc | 9 +- .../SetDefaultTranscodeTemplateGroupResult.cc | 9 +- vod/src/model/SetDefaultWatermarkResult.cc | 9 +- .../model/SetEditingProjectMaterialsResult.cc | 9 +- vod/src/model/SetMessageCallbackResult.cc | 9 +- .../model/SetVodDomainCertificateResult.cc | 9 +- vod/src/model/SubmitAIJobResult.cc | 9 +- vod/src/model/SubmitAIMediaAuditJobResult.cc | 9 +- vod/src/model/SubmitPreprocessJobsResult.cc | 9 +- vod/src/model/SubmitSnapshotJobResult.cc | 9 +- vod/src/model/SubmitTranscodeJobsResult.cc | 9 +- vod/src/model/UpdateAITemplateResult.cc | 9 +- vod/src/model/UpdateAppInfoResult.cc | 9 +- .../model/UpdateAttachedMediaInfosResult.cc | 9 +- vod/src/model/UpdateCategoryResult.cc | 9 +- vod/src/model/UpdateEditingProjectResult.cc | 9 +- vod/src/model/UpdateImageInfosResult.cc | 9 +- .../UpdateTranscodeTemplateGroupResult.cc | 9 +- vod/src/model/UpdateVideoInfoResult.cc | 9 +- vod/src/model/UpdateVideoInfosResult.cc | 9 +- vod/src/model/UpdateVodDomainResult.cc | 9 +- vod/src/model/UpdateVodTemplateResult.cc | 9 +- vod/src/model/UpdateWatermarkResult.cc | 9 +- vod/src/model/UploadMediaByURLResult.cc | 9 +- vpc/CMakeLists.txt | 852 +- vpc/include/alibabacloud/vpc/VpcClient.h | 1704 +- .../vpc/model/AllocateEipAddressRequest.h | 3 + .../model/ApplyPhysicalConnectionLOARequest.h | 95 + .../model/ApplyPhysicalConnectionLOAResult.h | 49 + .../vpc/model/AssociateEipAddressRequest.h | 3 + .../vpc/model/AssociateNetworkAclRequest.h | 125 + .../vpc/model/AssociateNetworkAclResult.h | 49 + ...CommonBandwidthPackageIpBandwidthRequest.h | 66 + ...lCommonBandwidthPackageIpBandwidthResult.h | 49 + .../CompletePhysicalConnectionLOARequest.h | 72 + .../CompletePhysicalConnectionLOAResult.h | 49 + .../vpc/model/CopyNetworkAclEntriesRequest.h | 120 + .../vpc/model/CopyNetworkAclEntriesResult.h | 49 + .../vpc/model/CreateBgpPeerRequest.h | 3 + .../CreateExpressCloudConnectionRequest.h | 93 + .../CreateExpressCloudConnectionResult.h | 51 + .../vpc/model/CreateHaVipRequest.h | 3 + .../vpc/model/CreateHaVipResult.h | 2 + .../vpc/model/CreateNetworkAclRequest.h | 123 + .../vpc/model/CreateNetworkAclResult.h | 94 + ...ePhysicalConnectionOccupancyOrderRequest.h | 78 + ...tePhysicalConnectionOccupancyOrderResult.h | 49 + ...reatePhysicalConnectionSetupOrderRequest.h | 78 + ...CreatePhysicalConnectionSetupOrderResult.h | 53 + .../vpc/model/CreateVpnConnectionRequest.h | 6 + .../vpc/model/CreateVpnPbrRouteEntryRequest.h | 87 + .../vpc/model/CreateVpnPbrRouteEntryResult.h | 67 + .../vpc/model/CreateVpnRouteEntryRequest.h | 84 + .../vpc/model/CreateVpnRouteEntryResult.h | 65 + .../vpc/model/DeleteExpressConnectRequest.h | 69 + .../vpc/model/DeleteExpressConnectResult.h | 49 + .../vpc/model/DeleteNetworkAclRequest.h | 117 + .../vpc/model/DeleteNetworkAclResult.h | 49 + .../vpc/model/DeleteVpnPbrRouteEntryRequest.h | 81 + .../vpc/model/DeleteVpnPbrRouteEntryResult.h | 49 + .../vpc/model/DeleteVpnRouteEntryRequest.h | 78 + .../vpc/model/DeleteVpnRouteEntryResult.h | 49 + .../vpc/model/DescribeBgpPeersResult.h | 1 + .../vpc/model/DescribeEipAddressesResult.h | 2 + .../vpc/model/DescribeEipGatewayInfoRequest.h | 117 + .../vpc/model/DescribeEipGatewayInfoResult.h | 61 + .../DescribeExpressCloudConnectionsRequest.h | 74 + .../DescribeExpressCloudConnectionsResult.h | 98 + .../vpc/model/DescribeHaVipsResult.h | 10 +- .../DescribeNetworkAclAttributesRequest.h | 117 + .../DescribeNetworkAclAttributesResult.h | 92 + .../vpc/model/DescribeNetworkAclsRequest.h | 135 + .../vpc/model/DescribeNetworkAclsResult.h | 98 + .../DescribePhysicalConnectionLOARequest.h | 66 + .../DescribePhysicalConnectionLOAResult.h | 73 + .../DescribePhysicalConnectionsRequest.h | 3 + .../model/DescribePhysicalConnectionsResult.h | 14 +- .../vpc/model/DescribeRouteEntryListRequest.h | 147 + .../vpc/model/DescribeRouteEntryListResult.h | 79 + .../vpc/model/DescribeRouteTableListResult.h | 1 + .../vpc/model/DescribeRouteTablesResult.h | 11 +- .../model/DescribeVSwitchAttributesRequest.h | 3 + .../model/DescribeVSwitchAttributesResult.h | 2 + .../vpc/model/DescribeVSwitchesRequest.h | 3 + .../vpc/model/DescribeVSwitchesResult.h | 1 + ...BorderRoutersForPhysicalConnectionResult.h | 9 +- .../DescribeVirtualBorderRoutersResult.h | 13 +- .../vpc/model/DescribeVpcAttributeRequest.h | 3 + .../vpc/model/DescribeVpcAttributeResult.h | 2 + .../vpc/model/DescribeVpcsRequest.h | 3 + .../vpc/model/DescribeVpcsResult.h | 2 + .../vpc/model/DescribeVpnConnectionResult.h | 11 + .../vpc/model/DescribeVpnConnectionsResult.h | 10 + .../vpc/model/DescribeVpnGatewayResult.h | 2 + .../vpc/model/DescribeVpnGatewaysResult.h | 1 + .../model/DescribeVpnPbrRouteEntriesRequest.h | 69 + .../model/DescribeVpnPbrRouteEntriesResult.h | 67 + .../model/DescribeVpnRouteEntriesRequest.h | 69 + .../vpc/model/DescribeVpnRouteEntriesResult.h | 66 + .../model/DescribeVpnSslServerLogsRequest.h | 78 + .../model/DescribeVpnSslServerLogsResult.h | 59 + .../vpc/model/ListTagResourcesRequest.h | 65 + .../vpc/model/ListTagResourcesResult.h | 60 + .../vpc/model/ModifyBgpPeerAttributeRequest.h | 75 + .../vpc/model/ModifyBgpPeerAttributeResult.h | 49 + ...CommonBandwidthPackageIpBandwidthRequest.h | 69 + ...yCommonBandwidthPackageIpBandwidthResult.h | 49 + ...fyExpressCloudConnectionAttributeRequest.h | 69 + ...ifyExpressCloudConnectionAttributeResult.h | 49 + ...fyExpressCloudConnectionBandwidthRequest.h | 66 + ...ifyExpressCloudConnectionBandwidthResult.h | 49 + .../vpc/model/ModifyHaVipAttributeRequest.h | 3 + .../model/ModifyNetworkAclAttributesRequest.h | 123 + .../model/ModifyNetworkAclAttributesResult.h | 49 + ...odifyVirtualBorderRouterAttributeRequest.h | 9 + .../ModifyVpnConnectionAttributeRequest.h | 6 + .../ModifyVpnConnectionAttributeResult.h | 10 + .../ModifyVpnPbrRouteEntryWeightRequest.h | 84 + .../ModifyVpnPbrRouteEntryWeightResult.h | 49 + .../model/ModifyVpnRouteEntryWeightRequest.h | 81 + .../model/ModifyVpnRouteEntryWeightResult.h | 49 + .../vpc/model/PublishVpnRouteEntryRequest.h | 78 + .../vpc/model/PublishVpnRouteEntryResult.h | 49 + .../vpc/model/TagResourcesRequest.h | 62 + .../vpc/model/TagResourcesResult.h | 49 + .../vpc/model/UnTagResourcesRequest.h | 57 + .../vpc/model/UnTagResourcesResult.h | 49 + .../vpc/model/UnassociateNetworkAclRequest.h | 125 + .../vpc/model/UnassociateNetworkAclResult.h | 49 + .../model/UpdateNetworkAclEntriesRequest.h | 151 + .../vpc/model/UpdateNetworkAclEntriesResult.h | 49 + vpc/src/VpcClient.cc | 6750 ++++---- .../model/ActivateRouterInterfaceRequest.cc | 10 +- .../model/ActivateRouterInterfaceResult.cc | 9 +- vpc/src/model/ActiveFlowLogRequest.cc | 12 +- vpc/src/model/ActiveFlowLogResult.cc | 9 +- .../model/AddBandwidthPackageIpsRequest.cc | 16 +- vpc/src/model/AddBandwidthPackageIpsResult.cc | 9 +- vpc/src/model/AddBgpNetworkRequest.cc | 18 +- vpc/src/model/AddBgpNetworkResult.cc | 9 +- .../AddCommonBandwidthPackageIpRequest.cc | 14 +- .../AddCommonBandwidthPackageIpResult.cc | 9 +- .../AddGlobalAccelerationInstanceIpRequest.cc | 14 +- .../AddGlobalAccelerationInstanceIpResult.cc | 9 +- .../AddIPv6TranslatorAclListEntryRequest.cc | 16 +- .../AddIPv6TranslatorAclListEntryResult.cc | 9 +- vpc/src/model/AllocateEipAddressRequest.cc | 41 +- vpc/src/model/AllocateEipAddressResult.cc | 9 +- .../AllocateIpv6InternetBandwidthRequest.cc | 58 +- .../AllocateIpv6InternetBandwidthResult.cc | 9 +- .../ApplyPhysicalConnectionLOARequest.cc | 190 + .../model/ApplyPhysicalConnectionLOAResult.cc | 48 + vpc/src/model/AssociateEipAddressRequest.cc | 31 +- vpc/src/model/AssociateEipAddressResult.cc | 9 +- ...ociateGlobalAccelerationInstanceRequest.cc | 18 +- ...sociateGlobalAccelerationInstanceResult.cc | 9 +- vpc/src/model/AssociateHaVipRequest.cc | 16 +- vpc/src/model/AssociateHaVipResult.cc | 9 +- vpc/src/model/AssociateNetworkAclRequest.cc | 308 + vpc/src/model/AssociateNetworkAclResult.cc | 48 + ...lConnectionToVirtualBorderRouterRequest.cc | 26 +- ...alConnectionToVirtualBorderRouterResult.cc | 9 +- vpc/src/model/AssociateRouteTableRequest.cc | 54 +- vpc/src/model/AssociateRouteTableResult.cc | 9 +- ...ommonBandwidthPackageIpBandwidthRequest.cc | 104 + ...CommonBandwidthPackageIpBandwidthResult.cc | 48 + .../model/CancelPhysicalConnectionRequest.cc | 14 +- .../model/CancelPhysicalConnectionResult.cc | 9 +- .../CompletePhysicalConnectionLOARequest.cc | 126 + .../CompletePhysicalConnectionLOAResult.cc | 48 + .../model/ConnectRouterInterfaceRequest.cc | 10 +- vpc/src/model/ConnectRouterInterfaceResult.cc | 9 +- .../model/ConvertBandwidthPackageRequest.cc | 48 +- .../model/ConvertBandwidthPackageResult.cc | 9 +- vpc/src/model/CopyNetworkAclEntriesRequest.cc | 302 + vpc/src/model/CopyNetworkAclEntriesResult.cc | 48 + .../model/CreateBandwidthPackageRequest.cc | 28 +- vpc/src/model/CreateBandwidthPackageResult.cc | 9 +- vpc/src/model/CreateBgpGroupRequest.cc | 24 +- vpc/src/model/CreateBgpGroupResult.cc | 9 +- vpc/src/model/CreateBgpPeerRequest.cc | 27 +- vpc/src/model/CreateBgpPeerResult.cc | 9 +- .../CreateCommonBandwidthPackageRequest.cc | 28 +- .../CreateCommonBandwidthPackageResult.cc | 9 +- vpc/src/model/CreateCustomerGatewayRequest.cc | 18 +- vpc/src/model/CreateCustomerGatewayResult.cc | 9 +- .../CreateExpressCloudConnectionRequest.cc | 203 + .../CreateExpressCloudConnectionResult.cc | 55 + vpc/src/model/CreateFlowLogRequest.cc | 24 +- vpc/src/model/CreateFlowLogResult.cc | 9 +- vpc/src/model/CreateForwardEntryRequest.cc | 24 +- vpc/src/model/CreateForwardEntryResult.cc | 9 +- ...CreateGlobalAccelerationInstanceRequest.cc | 24 +- .../CreateGlobalAccelerationInstanceResult.cc | 9 +- vpc/src/model/CreateHaVipRequest.cc | 29 +- vpc/src/model/CreateHaVipResult.cc | 16 +- .../CreateIPv6TranslatorAclListRequest.cc | 14 +- .../CreateIPv6TranslatorAclListResult.cc | 9 +- .../model/CreateIPv6TranslatorEntryRequest.cc | 32 +- .../model/CreateIPv6TranslatorEntryResult.cc | 9 +- vpc/src/model/CreateIPv6TranslatorRequest.cc | 26 +- vpc/src/model/CreateIPv6TranslatorResult.cc | 9 +- .../model/CreateIpv6EgressOnlyRuleRequest.cc | 60 +- .../model/CreateIpv6EgressOnlyRuleResult.cc | 9 +- vpc/src/model/CreateIpv6GatewayRequest.cc | 58 +- vpc/src/model/CreateIpv6GatewayResult.cc | 9 +- vpc/src/model/CreateNatGatewayRequest.cc | 38 +- vpc/src/model/CreateNatGatewayResult.cc | 9 +- vpc/src/model/CreateNetworkAclRequest.cc | 313 + vpc/src/model/CreateNetworkAclResult.cc | 131 + ...PhysicalConnectionOccupancyOrderRequest.cc | 148 + ...ePhysicalConnectionOccupancyOrderResult.cc | 48 + .../model/CreatePhysicalConnectionRequest.cc | 32 +- .../model/CreatePhysicalConnectionResult.cc | 9 +- ...eatePhysicalConnectionSetupOrderRequest.cc | 148 + ...reatePhysicalConnectionSetupOrderResult.cc | 62 + vpc/src/model/CreateRouteEntryRequest.cc | 30 +- vpc/src/model/CreateRouteEntryResult.cc | 9 +- vpc/src/model/CreateRouteTableRequest.cc | 56 +- vpc/src/model/CreateRouteTableResult.cc | 9 +- vpc/src/model/CreateRouterInterfaceRequest.cc | 50 +- vpc/src/model/CreateRouterInterfaceResult.cc | 9 +- vpc/src/model/CreateSnatEntryRequest.cc | 20 +- vpc/src/model/CreateSnatEntryResult.cc | 9 +- .../model/CreateSslVpnClientCertRequest.cc | 16 +- vpc/src/model/CreateSslVpnClientCertResult.cc | 9 +- vpc/src/model/CreateSslVpnServerRequest.cc | 28 +- vpc/src/model/CreateSslVpnServerResult.cc | 9 +- vpc/src/model/CreateVSwitchRequest.cc | 24 +- vpc/src/model/CreateVSwitchResult.cc | 9 +- .../model/CreateVirtualBorderRouterRequest.cc | 30 +- .../model/CreateVirtualBorderRouterResult.cc | 9 +- vpc/src/model/CreateVpcRequest.cc | 26 +- vpc/src/model/CreateVpcResult.cc | 9 +- vpc/src/model/CreateVpnConnectionRequest.cc | 50 +- vpc/src/model/CreateVpnConnectionResult.cc | 9 +- vpc/src/model/CreateVpnGatewayRequest.cc | 28 +- vpc/src/model/CreateVpnGatewayResult.cc | 9 +- .../model/CreateVpnPbrRouteEntryRequest.cc | 181 + vpc/src/model/CreateVpnPbrRouteEntryResult.cc | 111 + vpc/src/model/CreateVpnRouteEntryRequest.cc | 170 + vpc/src/model/CreateVpnRouteEntryResult.cc | 104 + .../model/DeactivateRouterInterfaceRequest.cc | 10 +- .../model/DeactivateRouterInterfaceResult.cc | 9 +- vpc/src/model/DeactiveFlowLogRequest.cc | 12 +- vpc/src/model/DeactiveFlowLogResult.cc | 9 +- .../model/DeleteBandwidthPackageRequest.cc | 14 +- vpc/src/model/DeleteBandwidthPackageResult.cc | 9 +- vpc/src/model/DeleteBgpGroupRequest.cc | 14 +- vpc/src/model/DeleteBgpGroupResult.cc | 9 +- vpc/src/model/DeleteBgpNetworkRequest.cc | 16 +- vpc/src/model/DeleteBgpNetworkResult.cc | 9 +- vpc/src/model/DeleteBgpPeerRequest.cc | 14 +- vpc/src/model/DeleteBgpPeerResult.cc | 9 +- .../DeleteCommonBandwidthPackageRequest.cc | 14 +- .../DeleteCommonBandwidthPackageResult.cc | 9 +- vpc/src/model/DeleteCustomerGatewayRequest.cc | 14 +- vpc/src/model/DeleteCustomerGatewayResult.cc | 9 +- vpc/src/model/DeleteExpressConnectRequest.cc | 115 + vpc/src/model/DeleteExpressConnectResult.cc | 48 + vpc/src/model/DeleteFlowLogRequest.cc | 12 +- vpc/src/model/DeleteFlowLogResult.cc | 9 +- vpc/src/model/DeleteForwardEntryRequest.cc | 14 +- vpc/src/model/DeleteForwardEntryResult.cc | 9 +- ...DeleteGlobalAccelerationInstanceRequest.cc | 12 +- .../DeleteGlobalAccelerationInstanceResult.cc | 9 +- vpc/src/model/DeleteHaVipRequest.cc | 14 +- vpc/src/model/DeleteHaVipResult.cc | 9 +- .../DeleteIPv6TranslatorAclListRequest.cc | 14 +- .../DeleteIPv6TranslatorAclListResult.cc | 9 +- .../model/DeleteIPv6TranslatorEntryRequest.cc | 16 +- .../model/DeleteIPv6TranslatorEntryResult.cc | 9 +- vpc/src/model/DeleteIPv6TranslatorRequest.cc | 14 +- vpc/src/model/DeleteIPv6TranslatorResult.cc | 9 +- .../model/DeleteIpv6EgressOnlyRuleRequest.cc | 52 +- .../model/DeleteIpv6EgressOnlyRuleResult.cc | 9 +- vpc/src/model/DeleteIpv6GatewayRequest.cc | 50 +- vpc/src/model/DeleteIpv6GatewayResult.cc | 9 +- .../DeleteIpv6InternetBandwidthRequest.cc | 52 +- .../DeleteIpv6InternetBandwidthResult.cc | 9 +- vpc/src/model/DeleteNatGatewayRequest.cc | 14 +- vpc/src/model/DeleteNatGatewayResult.cc | 9 +- vpc/src/model/DeleteNetworkAclRequest.cc | 291 + vpc/src/model/DeleteNetworkAclResult.cc | 48 + .../model/DeletePhysicalConnectionRequest.cc | 16 +- .../model/DeletePhysicalConnectionResult.cc | 9 +- vpc/src/model/DeleteRouteEntryRequest.cc | 22 +- vpc/src/model/DeleteRouteEntryResult.cc | 9 +- vpc/src/model/DeleteRouteTableRequest.cc | 50 +- vpc/src/model/DeleteRouteTableResult.cc | 9 +- vpc/src/model/DeleteRouterInterfaceRequest.cc | 14 +- vpc/src/model/DeleteRouterInterfaceResult.cc | 9 +- vpc/src/model/DeleteSnatEntryRequest.cc | 14 +- vpc/src/model/DeleteSnatEntryResult.cc | 9 +- .../model/DeleteSslVpnClientCertRequest.cc | 14 +- vpc/src/model/DeleteSslVpnClientCertResult.cc | 9 +- vpc/src/model/DeleteSslVpnServerRequest.cc | 14 +- vpc/src/model/DeleteSslVpnServerResult.cc | 9 +- vpc/src/model/DeleteVSwitchRequest.cc | 12 +- vpc/src/model/DeleteVSwitchResult.cc | 9 +- .../model/DeleteVirtualBorderRouterRequest.cc | 14 +- .../model/DeleteVirtualBorderRouterResult.cc | 9 +- vpc/src/model/DeleteVpcRequest.cc | 12 +- vpc/src/model/DeleteVpcResult.cc | 9 +- vpc/src/model/DeleteVpnConnectionRequest.cc | 14 +- vpc/src/model/DeleteVpnConnectionResult.cc | 9 +- vpc/src/model/DeleteVpnGatewayRequest.cc | 14 +- vpc/src/model/DeleteVpnGatewayResult.cc | 9 +- .../model/DeleteVpnPbrRouteEntryRequest.cc | 159 + vpc/src/model/DeleteVpnPbrRouteEntryResult.cc | 48 + vpc/src/model/DeleteVpnRouteEntryRequest.cc | 148 + vpc/src/model/DeleteVpnRouteEntryResult.cc | 48 + vpc/src/model/DescribeAccessPointsRequest.cc | 22 +- vpc/src/model/DescribeAccessPointsResult.cc | 9 +- .../model/DescribeBandwidthPackagesRequest.cc | 18 +- .../model/DescribeBandwidthPackagesResult.cc | 9 +- vpc/src/model/DescribeBgpGroupsRequest.cc | 20 +- vpc/src/model/DescribeBgpGroupsResult.cc | 9 +- vpc/src/model/DescribeBgpNetworksRequest.cc | 16 +- vpc/src/model/DescribeBgpNetworksResult.cc | 9 +- vpc/src/model/DescribeBgpPeersRequest.cc | 22 +- vpc/src/model/DescribeBgpPeersResult.cc | 11 +- .../DescribeCommonBandwidthPackagesRequest.cc | 22 +- .../DescribeCommonBandwidthPackagesResult.cc | 9 +- .../model/DescribeCustomerGatewayRequest.cc | 12 +- .../model/DescribeCustomerGatewayResult.cc | 9 +- .../model/DescribeCustomerGatewaysRequest.cc | 16 +- .../model/DescribeCustomerGatewaysResult.cc | 9 +- vpc/src/model/DescribeEipAddressesRequest.cc | 46 +- vpc/src/model/DescribeEipAddressesResult.cc | 13 +- .../model/DescribeEipGatewayInfoRequest.cc | 291 + vpc/src/model/DescribeEipGatewayInfoResult.cc | 79 + .../model/DescribeEipMonitorDataRequest.cc | 18 +- vpc/src/model/DescribeEipMonitorDataResult.cc | 9 +- .../DescribeExpressCloudConnectionsRequest.cc | 121 + .../DescribeExpressCloudConnectionsResult.cc | 154 + vpc/src/model/DescribeFlowLogsRequest.cc | 32 +- vpc/src/model/DescribeFlowLogsResult.cc | 9 +- .../DescribeForwardTableEntriesRequest.cc | 30 +- .../DescribeForwardTableEntriesResult.cc | 9 +- ...cribeGlobalAccelerationInstancesRequest.cc | 30 +- ...scribeGlobalAccelerationInstancesResult.cc | 9 +- .../model/DescribeGrantRulesToCenRequest.cc | 18 +- .../model/DescribeGrantRulesToCenResult.cc | 9 +- vpc/src/model/DescribeHaVipsRequest.cc | 18 +- vpc/src/model/DescribeHaVipsResult.cc | 13 +- ...eIPv6TranslatorAclListAttributesRequest.cc | 16 +- ...beIPv6TranslatorAclListAttributesResult.cc | 9 +- .../DescribeIPv6TranslatorAclListsRequest.cc | 18 +- .../DescribeIPv6TranslatorAclListsResult.cc | 9 +- .../DescribeIPv6TranslatorEntriesRequest.cc | 38 +- .../DescribeIPv6TranslatorEntriesResult.cc | 9 +- .../model/DescribeIPv6TranslatorsRequest.cc | 30 +- .../model/DescribeIPv6TranslatorsResult.cc | 9 +- vpc/src/model/DescribeIpv6AddressesRequest.cc | 70 +- vpc/src/model/DescribeIpv6AddressesResult.cc | 9 +- .../DescribeIpv6EgressOnlyRulesRequest.cc | 62 +- .../DescribeIpv6EgressOnlyRulesResult.cc | 9 +- .../DescribeIpv6GatewayAttributeRequest.cc | 50 +- .../DescribeIpv6GatewayAttributeResult.cc | 9 +- vpc/src/model/DescribeIpv6GatewaysRequest.cc | 58 +- vpc/src/model/DescribeIpv6GatewaysResult.cc | 9 +- vpc/src/model/DescribeNatGatewaysRequest.cc | 24 +- vpc/src/model/DescribeNatGatewaysResult.cc | 9 +- .../DescribeNetworkAclAttributesRequest.cc | 291 + .../DescribeNetworkAclAttributesResult.cc | 124 + vpc/src/model/DescribeNetworkAclsRequest.cc | 357 + vpc/src/model/DescribeNetworkAclsResult.cc | 150 + .../DescribePhysicalConnectionLOARequest.cc | 104 + .../DescribePhysicalConnectionLOAResult.cc | 90 + .../DescribePhysicalConnectionsRequest.cc | 31 +- .../DescribePhysicalConnectionsResult.cc | 25 +- vpc/src/model/DescribeRegionsRequest.cc | 12 +- vpc/src/model/DescribeRegionsResult.cc | 9 +- .../model/DescribeRouteEntryListRequest.cc | 401 + vpc/src/model/DescribeRouteEntryListResult.cc | 103 + .../model/DescribeRouteTableListRequest.cc | 30 +- vpc/src/model/DescribeRouteTableListResult.cc | 11 +- vpc/src/model/DescribeRouteTablesRequest.cc | 28 +- vpc/src/model/DescribeRouteTablesResult.cc | 15 +- .../model/DescribeRouterInterfacesRequest.cc | 18 +- .../model/DescribeRouterInterfacesResult.cc | 9 +- ...latedGlobalAccelerationInstancesRequest.cc | 14 +- ...elatedGlobalAccelerationInstancesResult.cc | 9 +- .../model/DescribeSnatTableEntriesRequest.cc | 26 +- .../model/DescribeSnatTableEntriesResult.cc | 9 +- .../model/DescribeSslVpnClientCertRequest.cc | 12 +- .../model/DescribeSslVpnClientCertResult.cc | 9 +- .../model/DescribeSslVpnClientCertsRequest.cc | 20 +- .../model/DescribeSslVpnClientCertsResult.cc | 9 +- vpc/src/model/DescribeSslVpnServersRequest.cc | 20 +- vpc/src/model/DescribeSslVpnServersResult.cc | 9 +- vpc/src/model/DescribeVRoutersRequest.cc | 16 +- vpc/src/model/DescribeVRoutersResult.cc | 9 +- .../model/DescribeVSwitchAttributesRequest.cc | 23 +- .../model/DescribeVSwitchAttributesResult.cc | 16 +- vpc/src/model/DescribeVSwitchesRequest.cc | 43 +- vpc/src/model/DescribeVSwitchesResult.cc | 11 +- ...rderRoutersForPhysicalConnectionRequest.cc | 18 +- ...orderRoutersForPhysicalConnectionResult.cc | 15 +- .../DescribeVirtualBorderRoutersRequest.cc | 16 +- .../DescribeVirtualBorderRoutersResult.cc | 19 +- vpc/src/model/DescribeVpcAttributeRequest.cc | 25 +- vpc/src/model/DescribeVpcAttributeResult.cc | 16 +- vpc/src/model/DescribeVpcsRequest.cc | 37 +- vpc/src/model/DescribeVpcsResult.cc | 13 +- vpc/src/model/DescribeVpnConnectionRequest.cc | 12 +- vpc/src/model/DescribeVpnConnectionResult.cc | 27 +- .../model/DescribeVpnConnectionsRequest.cc | 20 +- vpc/src/model/DescribeVpnConnectionsResult.cc | 22 +- vpc/src/model/DescribeVpnGatewayRequest.cc | 12 +- vpc/src/model/DescribeVpnGatewayResult.cc | 16 +- vpc/src/model/DescribeVpnGatewaysRequest.cc | 22 +- vpc/src/model/DescribeVpnGatewaysResult.cc | 11 +- .../DescribeVpnPbrRouteEntriesRequest.cc | 115 + .../model/DescribeVpnPbrRouteEntriesResult.cc | 94 + .../model/DescribeVpnRouteEntriesRequest.cc | 115 + .../model/DescribeVpnRouteEntriesResult.cc | 92 + .../model/DescribeVpnSslServerLogsRequest.cc | 148 + .../model/DescribeVpnSslServerLogsResult.cc | 84 + vpc/src/model/DescribeZonesRequest.cc | 10 +- vpc/src/model/DescribeZonesResult.cc | 9 +- vpc/src/model/DisableVpcClassicLinkRequest.cc | 14 +- vpc/src/model/DisableVpcClassicLinkResult.cc | 9 +- .../DownloadVpnConnectionConfigRequest.cc | 12 +- .../DownloadVpnConnectionConfigResult.cc | 9 +- .../model/EnablePhysicalConnectionRequest.cc | 14 +- .../model/EnablePhysicalConnectionResult.cc | 9 +- vpc/src/model/EnableVpcClassicLinkRequest.cc | 14 +- vpc/src/model/EnableVpcClassicLinkResult.cc | 9 +- vpc/src/model/GrantInstanceToCenRequest.cc | 20 +- vpc/src/model/GrantInstanceToCenResult.cc | 9 +- vpc/src/model/ListTagResourcesRequest.cc | 89 + vpc/src/model/ListTagResourcesResult.cc | 74 + .../ModifyBandwidthPackageAttributeRequest.cc | 16 +- .../ModifyBandwidthPackageAttributeResult.cc | 9 +- .../ModifyBandwidthPackageSpecRequest.cc | 14 +- .../model/ModifyBandwidthPackageSpecResult.cc | 9 +- .../model/ModifyBgpGroupAttributeRequest.cc | 24 +- .../model/ModifyBgpGroupAttributeResult.cc | 9 +- .../model/ModifyBgpPeerAttributeRequest.cc | 137 + vpc/src/model/ModifyBgpPeerAttributeResult.cc | 48 + ...yCommonBandwidthPackageAttributeRequest.cc | 16 +- ...fyCommonBandwidthPackageAttributeResult.cc | 9 +- ...ommonBandwidthPackageIpBandwidthRequest.cc | 115 + ...CommonBandwidthPackageIpBandwidthResult.cc | 48 + ...ifyCommonBandwidthPackagePayTypeRequest.cc | 28 +- ...difyCommonBandwidthPackagePayTypeResult.cc | 9 +- ...ModifyCommonBandwidthPackageSpecRequest.cc | 14 +- .../ModifyCommonBandwidthPackageSpecResult.cc | 9 +- .../ModifyCustomerGatewayAttributeRequest.cc | 18 +- .../ModifyCustomerGatewayAttributeResult.cc | 9 +- .../model/ModifyEipAddressAttributeRequest.cc | 18 +- .../model/ModifyEipAddressAttributeResult.cc | 9 +- ...yExpressCloudConnectionAttributeRequest.cc | 115 + ...fyExpressCloudConnectionAttributeResult.cc | 48 + ...yExpressCloudConnectionBandwidthRequest.cc | 104 + ...fyExpressCloudConnectionBandwidthResult.cc | 48 + .../model/ModifyFlowLogAttributeRequest.cc | 16 +- vpc/src/model/ModifyFlowLogAttributeResult.cc | 9 +- vpc/src/model/ModifyForwardEntryRequest.cc | 26 +- vpc/src/model/ModifyForwardEntryResult.cc | 9 +- ...alAccelerationInstanceAttributesRequest.cc | 16 +- ...balAccelerationInstanceAttributesResult.cc | 9 +- ...fyGlobalAccelerationInstanceSpecRequest.cc | 14 +- ...ifyGlobalAccelerationInstanceSpecResult.cc | 9 +- vpc/src/model/ModifyHaVipAttributeRequest.cc | 27 +- vpc/src/model/ModifyHaVipAttributeResult.cc | 9 +- ...ModifyIPv6TranslatorAclAttributeRequest.cc | 16 +- .../ModifyIPv6TranslatorAclAttributeResult.cc | 9 +- ...ModifyIPv6TranslatorAclListEntryRequest.cc | 16 +- .../ModifyIPv6TranslatorAclListEntryResult.cc | 9 +- .../ModifyIPv6TranslatorAttributeRequest.cc | 18 +- .../ModifyIPv6TranslatorAttributeResult.cc | 9 +- .../ModifyIPv6TranslatorBandwidthRequest.cc | 18 +- .../ModifyIPv6TranslatorBandwidthResult.cc | 9 +- .../model/ModifyIPv6TranslatorEntryRequest.cc | 32 +- .../model/ModifyIPv6TranslatorEntryResult.cc | 9 +- .../ModifyIpv6AddressAttributeRequest.cc | 54 +- .../model/ModifyIpv6AddressAttributeResult.cc | 9 +- .../ModifyIpv6GatewayAttributeRequest.cc | 54 +- .../model/ModifyIpv6GatewayAttributeResult.cc | 9 +- vpc/src/model/ModifyIpv6GatewaySpecRequest.cc | 54 +- vpc/src/model/ModifyIpv6GatewaySpecResult.cc | 9 +- .../ModifyIpv6InternetBandwidthRequest.cc | 56 +- .../ModifyIpv6InternetBandwidthResult.cc | 9 +- .../model/ModifyNatGatewayAttributeRequest.cc | 16 +- .../model/ModifyNatGatewayAttributeResult.cc | 9 +- vpc/src/model/ModifyNatGatewaySpecRequest.cc | 18 +- vpc/src/model/ModifyNatGatewaySpecResult.cc | 9 +- .../ModifyNetworkAclAttributesRequest.cc | 313 + .../model/ModifyNetworkAclAttributesResult.cc | 48 + ...odifyPhysicalConnectionAttributeRequest.cc | 30 +- ...ModifyPhysicalConnectionAttributeResult.cc | 9 +- vpc/src/model/ModifyRouteEntryRequest.cc | 12 +- vpc/src/model/ModifyRouteEntryResult.cc | 9 +- .../ModifyRouteTableAttributesRequest.cc | 24 +- .../model/ModifyRouteTableAttributesResult.cc | 9 +- .../ModifyRouterInterfaceAttributeRequest.cc | 28 +- .../ModifyRouterInterfaceAttributeResult.cc | 9 +- .../model/ModifyRouterInterfaceSpecRequest.cc | 16 +- .../model/ModifyRouterInterfaceSpecResult.cc | 9 +- vpc/src/model/ModifySnatEntryRequest.cc | 18 +- vpc/src/model/ModifySnatEntryResult.cc | 9 +- .../model/ModifySslVpnClientCertRequest.cc | 16 +- vpc/src/model/ModifySslVpnClientCertResult.cc | 9 +- vpc/src/model/ModifySslVpnServerRequest.cc | 28 +- vpc/src/model/ModifySslVpnServerResult.cc | 9 +- .../model/ModifyVRouterAttributeRequest.cc | 16 +- vpc/src/model/ModifyVRouterAttributeResult.cc | 9 +- .../model/ModifyVSwitchAttributeRequest.cc | 18 +- vpc/src/model/ModifyVSwitchAttributeResult.cc | 9 +- ...difyVirtualBorderRouterAttributeRequest.cc | 63 +- ...odifyVirtualBorderRouterAttributeResult.cc | 9 +- vpc/src/model/ModifyVpcAttributeRequest.cc | 20 +- vpc/src/model/ModifyVpcAttributeResult.cc | 9 +- .../ModifyVpnConnectionAttributeRequest.cc | 48 +- .../ModifyVpnConnectionAttributeResult.cc | 25 +- .../model/ModifyVpnGatewayAttributeRequest.cc | 18 +- .../model/ModifyVpnGatewayAttributeResult.cc | 9 +- .../ModifyVpnPbrRouteEntryWeightRequest.cc | 170 + .../ModifyVpnPbrRouteEntryWeightResult.cc | 48 + .../model/ModifyVpnRouteEntryWeightRequest.cc | 159 + .../model/ModifyVpnRouteEntryWeightResult.cc | 48 + vpc/src/model/PublishVpnRouteEntryRequest.cc | 148 + vpc/src/model/PublishVpnRouteEntryResult.cc | 48 + .../RecoverVirtualBorderRouterRequest.cc | 14 +- .../model/RecoverVirtualBorderRouterResult.cc | 9 +- vpc/src/model/ReleaseEipAddressRequest.cc | 12 +- vpc/src/model/ReleaseEipAddressResult.cc | 9 +- .../model/RemoveBandwidthPackageIpsRequest.cc | 16 +- .../model/RemoveBandwidthPackageIpsResult.cc | 9 +- .../RemoveCommonBandwidthPackageIpRequest.cc | 14 +- .../RemoveCommonBandwidthPackageIpResult.cc | 9 +- ...moveGlobalAccelerationInstanceIpRequest.cc | 14 +- ...emoveGlobalAccelerationInstanceIpResult.cc | 9 +- ...RemoveIPv6TranslatorAclListEntryRequest.cc | 16 +- .../RemoveIPv6TranslatorAclListEntryResult.cc | 9 +- vpc/src/model/RevokeInstanceFromCenRequest.cc | 20 +- vpc/src/model/RevokeInstanceFromCenResult.cc | 9 +- vpc/src/model/TagResourcesRequest.cc | 78 + vpc/src/model/TagResourcesResult.cc | 48 + .../TerminatePhysicalConnectionRequest.cc | 14 +- .../TerminatePhysicalConnectionResult.cc | 9 +- .../TerminateVirtualBorderRouterRequest.cc | 14 +- .../TerminateVirtualBorderRouterResult.cc | 9 +- vpc/src/model/UnTagResourcesRequest.cc | 73 + vpc/src/model/UnTagResourcesResult.cc | 48 + vpc/src/model/UnassociateEipAddressRequest.cc | 20 +- vpc/src/model/UnassociateEipAddressResult.cc | 9 +- ...ociateGlobalAccelerationInstanceRequest.cc | 14 +- ...sociateGlobalAccelerationInstanceResult.cc | 9 +- vpc/src/model/UnassociateHaVipRequest.cc | 18 +- vpc/src/model/UnassociateHaVipResult.cc | 9 +- vpc/src/model/UnassociateNetworkAclRequest.cc | 308 + vpc/src/model/UnassociateNetworkAclResult.cc | 48 + ...onnectionFromVirtualBorderRouterRequest.cc | 16 +- ...ConnectionFromVirtualBorderRouterResult.cc | 9 +- vpc/src/model/UnassociateRouteTableRequest.cc | 54 +- vpc/src/model/UnassociateRouteTableResult.cc | 9 +- .../model/UpdateNetworkAclEntriesRequest.cc | 359 + .../model/UpdateNetworkAclEntriesResult.cc | 48 + .../xspace/model/QueryCustomerByIdResult.h | 4 + xspace/src/XspaceClient.cc | 6 +- xspace/src/model/QueryCustomerByIdRequest.cc | 2 +- xspace/src/model/QueryCustomerByIdResult.cc | 17 +- .../src/model/QueryCustomerByPhoneRequest.cc | 2 +- .../src/model/QueryCustomerByPhoneResult.cc | 9 +- yundun-ds/CMakeLists.txt | 188 +- .../alibabacloud/yundun-ds/Yundun_dsClient.h | 128 +- .../model/DescribeDataCountsResult.h | 4 +- .../model/DescribeDataLimitSetResult.h | 2 + .../model/DescribeDataTotalCountResult.h | 4 +- yundun-ds/src/Yundun-dsClient.cc | 528 +- yundun-ds/src/model/CreateConfigResult.cc | 9 +- yundun-ds/src/model/CreateDataLimitResult.cc | 9 +- yundun-ds/src/model/CreateRuleResult.cc | 9 +- yundun-ds/src/model/CreateUserAuthResult.cc | 9 +- yundun-ds/src/model/DeleteDataLimitResult.cc | 9 +- yundun-ds/src/model/DeleteRuleResult.cc | 9 +- .../src/model/DescribeAccountDetailResult.cc | 9 +- yundun-ds/src/model/DescribeAccountsResult.cc | 9 +- .../src/model/DescribeAuthAccountsResult.cc | 9 +- yundun-ds/src/model/DescribeColumnsResult.cc | 9 +- .../src/model/DescribeConditionsResult.cc | 9 +- yundun-ds/src/model/DescribeConfigsResult.cc | 9 +- .../src/model/DescribeDataAssetsResult.cc | 9 +- .../src/model/DescribeDataCountsResult.cc | 31 +- .../model/DescribeDataHubConnectorsResult.cc | 9 +- .../model/DescribeDataHubProjectsResult.cc | 9 +- .../DescribeDataHubSubscriptionsResult.cc | 9 +- .../src/model/DescribeDataHubTopicsResult.cc | 9 +- .../src/model/DescribeDataLimitSetResult.cc | 13 +- .../src/model/DescribeDataTotalCountResult.cc | 35 +- .../src/model/DescribeDepartCountsResult.cc | 9 +- .../model/DescribeDepartTotalCountResult.cc | 9 +- yundun-ds/src/model/DescribeDepartsResult.cc | 9 +- .../src/model/DescribeEventCountsResult.cc | 9 +- .../src/model/DescribeEventDetailResult.cc | 9 +- .../model/DescribeEventTotalCountResult.cc | 9 +- .../src/model/DescribeEventTypesResult.cc | 9 +- yundun-ds/src/model/DescribeEventsResult.cc | 9 +- .../src/model/DescribeFlowTotalCountResult.cc | 9 +- .../src/model/DescribeInstancesResult.cc | 9 +- .../model/DescribeOssObjectDetailResult.cc | 9 +- .../src/model/DescribeOssObjectsResult.cc | 9 +- yundun-ds/src/model/DescribePackagesResult.cc | 9 +- .../src/model/DescribePrivilegesResult.cc | 9 +- .../src/model/DescribeRuleTotalCountResult.cc | 9 +- yundun-ds/src/model/DescribeRulesResult.cc | 9 +- yundun-ds/src/model/DescribeTablesResult.cc | 9 +- .../src/model/DescribeTotalCountResult.cc | 9 +- .../DescribeTransferEventCountsResult.cc | 9 +- .../src/model/DescribeUserStatusResult.cc | 9 +- .../src/model/ModifyDefaultLevelResult.cc | 9 +- .../src/model/ModifyEventStatusResult.cc | 9 +- .../src/model/ModifyEventTypeStatusResult.cc | 9 +- yundun-ds/src/model/ModifyRuleResult.cc | 9 +- yundun-ds/src/model/ModifyRuleStatusResult.cc | 9 +- .../src/model/ValidateConnectorResult.cc | 9 +- yundun/CMakeLists.txt | 16 +- .../alibabacloud/yundun/YundunClient.h | 32 +- yundun/src/YundunClient.cc | 36 +- yundun/src/model/AllMalwareNumResult.cc | 9 +- .../src/model/CurrentDdosAttackNumResult.cc | 9 +- .../src/model/TodayAegisOnlineRateResult.cc | 9 +- yundun/src/model/TodayAllkbpsResult.cc | 9 +- yundun/src/model/TodayAllppsResult.cc | 9 +- yundun/src/model/TodayBackdoorResult.cc | 9 +- yundun/src/model/TodayCrackInterceptResult.cc | 9 +- yundun/src/model/TodayMalwareNumResult.cc | 9 +- yundun/src/model/TodayqpsByRegionResult.cc | 9 +- yundun/src/model/WebAttackNumResult.cc | 9 +- 11893 files changed, 462166 insertions(+), 221301 deletions(-) create mode 100644 aegis/include/alibabacloud/aegis/model/AddEventProcessRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/AddEventProcessResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/CreateScreenSettingRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/CreateScreenSettingResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeChartDataRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeChartDataResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeChartListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeChartListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeEntityListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeEntityListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeGrayFuncRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeGrayFuncResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeLatestActionsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeLatestActionsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeWebshellListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeWebshellListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/SendCustomizeReportRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/SendCustomizeReportResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusResult.h create mode 100644 aegis/src/model/AddEventProcessRequest.cc create mode 100644 aegis/src/model/AddEventProcessResult.cc create mode 100644 aegis/src/model/CopyCustomizeReportConfigRequest.cc create mode 100644 aegis/src/model/CopyCustomizeReportConfigResult.cc create mode 100644 aegis/src/model/CreateScreenSettingRequest.cc create mode 100644 aegis/src/model/CreateScreenSettingResult.cc create mode 100644 aegis/src/model/CreateSuspEventNoteRequest.cc create mode 100644 aegis/src/model/CreateSuspEventNoteResult.cc create mode 100644 aegis/src/model/DeleteCustomizeReportRequest.cc create mode 100644 aegis/src/model/DeleteCustomizeReportResult.cc create mode 100644 aegis/src/model/DeleteSuspEventNodeRequest.cc create mode 100644 aegis/src/model/DeleteSuspEventNodeResult.cc create mode 100644 aegis/src/model/DescribeAccessKeyLeakDetailRequest.cc create mode 100644 aegis/src/model/DescribeAccessKeyLeakDetailResult.cc create mode 100644 aegis/src/model/DescribeAccesskeyLeakListRequest.cc create mode 100644 aegis/src/model/DescribeAccesskeyLeakListResult.cc create mode 100644 aegis/src/model/DescribeAccesskeyRunInfoRequest.cc create mode 100644 aegis/src/model/DescribeAccesskeyRunInfoResult.cc create mode 100644 aegis/src/model/DescribeBizStatSimpleQueryResultRequest.cc create mode 100644 aegis/src/model/DescribeBizStatSimpleQueryResultResult.cc create mode 100644 aegis/src/model/DescribeChartDataRequest.cc create mode 100644 aegis/src/model/DescribeChartDataResult.cc create mode 100644 aegis/src/model/DescribeChartListRequest.cc create mode 100644 aegis/src/model/DescribeChartListResult.cc create mode 100644 aegis/src/model/DescribeCheckWarningCountRequest.cc create mode 100644 aegis/src/model/DescribeCheckWarningCountResult.cc create mode 100644 aegis/src/model/DescribeCustomizeReportChartDataRequest.cc create mode 100644 aegis/src/model/DescribeCustomizeReportChartDataResult.cc create mode 100644 aegis/src/model/DescribeCustomizeReportChartListRequest.cc create mode 100644 aegis/src/model/DescribeCustomizeReportChartListResult.cc create mode 100644 aegis/src/model/DescribeCustomizeReportConfigDetailRequest.cc create mode 100644 aegis/src/model/DescribeCustomizeReportConfigDetailResult.cc create mode 100644 aegis/src/model/DescribeCustomizeReportListRequest.cc create mode 100644 aegis/src/model/DescribeCustomizeReportListResult.cc create mode 100644 aegis/src/model/DescribeEntityListRequest.cc create mode 100644 aegis/src/model/DescribeEntityListResult.cc create mode 100644 aegis/src/model/DescribeGrayFuncRequest.cc create mode 100644 aegis/src/model/DescribeGrayFuncResult.cc create mode 100644 aegis/src/model/DescribeHostStatisticsRequest.cc create mode 100644 aegis/src/model/DescribeHostStatisticsResult.cc create mode 100644 aegis/src/model/DescribeLatestActionsRequest.cc create mode 100644 aegis/src/model/DescribeLatestActionsResult.cc create mode 100644 aegis/src/model/DescribeScreenBizStatSimpleQueryResultRequest.cc create mode 100644 aegis/src/model/DescribeScreenBizStatSimpleQueryResultResult.cc create mode 100644 aegis/src/model/DescribeScreenCityMonitorDataRequest.cc create mode 100644 aegis/src/model/DescribeScreenCityMonitorDataResult.cc create mode 100644 aegis/src/model/DescribeScreenCloudHcRiskRequest.cc create mode 100644 aegis/src/model/DescribeScreenCloudHcRiskResult.cc create mode 100644 aegis/src/model/DescribeScreenDataMapRequest.cc create mode 100644 aegis/src/model/DescribeScreenDataMapResult.cc create mode 100644 aegis/src/model/DescribeScreenEmerRiskRequest.cc create mode 100644 aegis/src/model/DescribeScreenEmerRiskResult.cc create mode 100644 aegis/src/model/DescribeScreenFlowRequestCountRequest.cc create mode 100644 aegis/src/model/DescribeScreenFlowRequestCountResult.cc create mode 100644 aegis/src/model/DescribeScreenOssUploadInfoRequest.cc create mode 100644 aegis/src/model/DescribeScreenOssUploadInfoResult.cc create mode 100644 aegis/src/model/DescribeScreenRequestTopTypeRequest.cc create mode 100644 aegis/src/model/DescribeScreenRequestTopTypeResult.cc create mode 100644 aegis/src/model/DescribeScreenTitlesRequest.cc create mode 100644 aegis/src/model/DescribeScreenTitlesResult.cc create mode 100644 aegis/src/model/DescribeScreenTopRequestAndFlowRequest.cc create mode 100644 aegis/src/model/DescribeScreenTopRequestAndFlowResult.cc create mode 100644 aegis/src/model/DescribeSupervisonInfoRequest.cc create mode 100644 aegis/src/model/DescribeSupervisonInfoResult.cc create mode 100644 aegis/src/model/DescribeVulRelatedProcessRequest.cc create mode 100644 aegis/src/model/DescribeVulRelatedProcessResult.cc create mode 100644 aegis/src/model/DescribeVulStatisticsRequest.cc create mode 100644 aegis/src/model/DescribeVulStatisticsResult.cc create mode 100644 aegis/src/model/DescribeWebshellListRequest.cc create mode 100644 aegis/src/model/DescribeWebshellListResult.cc create mode 100644 aegis/src/model/ModifyAccessKeyLeakDealRequest.cc create mode 100644 aegis/src/model/ModifyAccessKeyLeakDealResult.cc create mode 100644 aegis/src/model/ModifyAccessKeyLeakInstRunRequest.cc create mode 100644 aegis/src/model/ModifyAccessKeyLeakInstRunResult.cc create mode 100644 aegis/src/model/ModifyRefreshProcessInfoRequest.cc create mode 100644 aegis/src/model/ModifyRefreshProcessInfoResult.cc create mode 100644 aegis/src/model/OperationCustomizeReportChartRequest.cc create mode 100644 aegis/src/model/OperationCustomizeReportChartResult.cc create mode 100644 aegis/src/model/SaveCustomizeReportConfigRequest.cc create mode 100644 aegis/src/model/SaveCustomizeReportConfigResult.cc create mode 100644 aegis/src/model/SendCustomizeReportRequest.cc create mode 100644 aegis/src/model/SendCustomizeReportResult.cc create mode 100644 aegis/src/model/UpdateCustomizeReportStatusRequest.cc create mode 100644 aegis/src/model/UpdateCustomizeReportStatusResult.cc create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsResult.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryResult.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameResult.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsResult.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h create mode 100644 alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryResult.h create mode 100644 alidns/src/model/DescribeDomainStatisticsRequest.cc create mode 100644 alidns/src/model/DescribeDomainStatisticsResult.cc create mode 100644 alidns/src/model/DescribeDomainStatisticsSummaryRequest.cc create mode 100644 alidns/src/model/DescribeDomainStatisticsSummaryResult.cc create mode 100644 alidns/src/model/DescribeGtmInstanceSystemCnameRequest.cc create mode 100644 alidns/src/model/DescribeGtmInstanceSystemCnameResult.cc create mode 100644 alidns/src/model/DescribeRecordStatisticsRequest.cc create mode 100644 alidns/src/model/DescribeRecordStatisticsResult.cc create mode 100644 alidns/src/model/DescribeRecordStatisticsSummaryRequest.cc create mode 100644 alidns/src/model/DescribeRecordStatisticsSummaryResult.cc create mode 100644 cas/include/alibabacloud/cas/model/CreateOrderRefundRecordRequest.h create mode 100644 cas/include/alibabacloud/cas/model/CreateOrderRefundRecordResult.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexRequest.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexResult.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordRequest.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordResult.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeRenewOrderRequest.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeRenewOrderResult.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeSignatureProductStateRequest.h create mode 100644 cas/include/alibabacloud/cas/model/DescribeSignatureProductStateResult.h create mode 100644 cas/include/alibabacloud/cas/model/ListTagKeysRequest.h create mode 100644 cas/include/alibabacloud/cas/model/ListTagKeysResult.h create mode 100644 cas/include/alibabacloud/cas/model/ListTagResourcesRequest.h create mode 100644 cas/include/alibabacloud/cas/model/ListTagResourcesResult.h create mode 100644 cas/include/alibabacloud/cas/model/TagResourcesRequest.h create mode 100644 cas/include/alibabacloud/cas/model/TagResourcesResult.h create mode 100644 cas/include/alibabacloud/cas/model/UntagResourcesRequest.h create mode 100644 cas/include/alibabacloud/cas/model/UntagResourcesResult.h create mode 100644 cas/src/model/CreateOrderRefundRecordRequest.cc create mode 100644 cas/src/model/CreateOrderRefundRecordResult.cc create mode 100644 cas/src/model/DescribeOrderCountForConsoleIndexRequest.cc create mode 100644 cas/src/model/DescribeOrderCountForConsoleIndexResult.cc create mode 100644 cas/src/model/DescribeOrderRefundRecordRequest.cc create mode 100644 cas/src/model/DescribeOrderRefundRecordResult.cc create mode 100644 cas/src/model/DescribeRenewOrderRequest.cc create mode 100644 cas/src/model/DescribeRenewOrderResult.cc create mode 100644 cas/src/model/DescribeSignatureProductStateRequest.cc create mode 100644 cas/src/model/DescribeSignatureProductStateResult.cc create mode 100644 cas/src/model/ListTagKeysRequest.cc create mode 100644 cas/src/model/ListTagKeysResult.cc create mode 100644 cas/src/model/ListTagResourcesRequest.cc create mode 100644 cas/src/model/ListTagResourcesResult.cc create mode 100644 cas/src/model/TagResourcesRequest.cc create mode 100644 cas/src/model/TagResourcesResult.cc create mode 100644 cas/src/model/UntagResourcesRequest.cc create mode 100644 cas/src/model/UntagResourcesResult.cc create mode 100644 cbn/include/alibabacloud/cbn/model/ActiveFlowLogRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/ActiveFlowLogResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/CreateCenRouteMapResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/CreateFlowlogRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/CreateFlowlogResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeactiveFlowLogRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeactiveFlowLogResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeleteFlowlogRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeleteFlowlogResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/DescribeFlowlogsRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/DescribeFlowlogsResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeResult.h create mode 100644 cbn/src/model/ActiveFlowLogRequest.cc create mode 100644 cbn/src/model/ActiveFlowLogResult.cc create mode 100644 cbn/src/model/CreateCenRouteMapRequest.cc create mode 100644 cbn/src/model/CreateCenRouteMapResult.cc create mode 100644 cbn/src/model/CreateFlowlogRequest.cc create mode 100644 cbn/src/model/CreateFlowlogResult.cc create mode 100644 cbn/src/model/DeactiveFlowLogRequest.cc create mode 100644 cbn/src/model/DeactiveFlowLogResult.cc create mode 100644 cbn/src/model/DeleteCenRouteMapRequest.cc create mode 100644 cbn/src/model/DeleteCenRouteMapResult.cc create mode 100644 cbn/src/model/DeleteFlowlogRequest.cc create mode 100644 cbn/src/model/DeleteFlowlogResult.cc create mode 100644 cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc create mode 100644 cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc create mode 100644 cbn/src/model/DescribeCenRouteMapsRequest.cc create mode 100644 cbn/src/model/DescribeCenRouteMapsResult.cc create mode 100644 cbn/src/model/DescribeFlowlogsRequest.cc create mode 100644 cbn/src/model/DescribeFlowlogsResult.cc create mode 100644 cbn/src/model/ModifyCenRouteMapRequest.cc create mode 100644 cbn/src/model/ModifyCenRouteMapResult.cc create mode 100644 cbn/src/model/ModifyFlowLogAttributeRequest.cc create mode 100644 cbn/src/model/ModifyFlowLogAttributeResult.cc create mode 100644 ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateFaultResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateMediaResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DialExRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DialExResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/FindUsersRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/FindUsersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetAgentStateRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetAgentStateResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobsProgressRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetJobsProgressResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetPredictiveJobRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetPredictiveJobResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/GetTURNServerListResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListMediasRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListMediasResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyMediaRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyMediaResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PreCreateMediaRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PreCreateMediaResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PreModifyMediaRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PreModifyMediaResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SaveStatsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SaveStatsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SimpleDialRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SimpleDialResult.h create mode 100644 ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h create mode 100644 ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h create mode 100644 ccc/src/model/AddAgentDeviceRequest.cc create mode 100644 ccc/src/model/AddAgentDeviceResult.cc create mode 100644 ccc/src/model/AddBulkPhoneNumbersRequest.cc create mode 100644 ccc/src/model/AddBulkPhoneNumbersResult.cc create mode 100644 ccc/src/model/AddNumberToSkillGroupRequest.cc create mode 100644 ccc/src/model/AddNumberToSkillGroupResult.cc create mode 100644 ccc/src/model/CallOnlinePrivacyNumberRequest.cc create mode 100644 ccc/src/model/CallOnlinePrivacyNumberResult.cc create mode 100644 ccc/src/model/CommitContactFlowVersionModificationRequest.cc create mode 100644 ccc/src/model/CommitContactFlowVersionModificationResult.cc create mode 100644 ccc/src/model/CreateCCCPostOrderRequest.cc create mode 100644 ccc/src/model/CreateCCCPostOrderResult.cc create mode 100644 ccc/src/model/CreateCabInstanceRequest.cc create mode 100644 ccc/src/model/CreateCabInstanceResult.cc create mode 100644 ccc/src/model/CreateContactFlowRequest.cc create mode 100644 ccc/src/model/CreateContactFlowResult.cc create mode 100644 ccc/src/model/CreateFaultRequest.cc create mode 100644 ccc/src/model/CreateFaultResult.cc create mode 100644 ccc/src/model/CreateInstanceRequest.cc create mode 100644 ccc/src/model/CreateInstanceResult.cc create mode 100644 ccc/src/model/CreateMediaRequest.cc create mode 100644 ccc/src/model/CreateMediaResult.cc create mode 100644 ccc/src/model/CreatePredictiveJobGroupRequest.cc create mode 100644 ccc/src/model/CreatePredictiveJobGroupResult.cc create mode 100644 ccc/src/model/CreateVoiceAppraiseRequest.cc create mode 100644 ccc/src/model/CreateVoiceAppraiseResult.cc create mode 100644 ccc/src/model/DeleteInstanceRequest.cc create mode 100644 ccc/src/model/DeleteInstanceResult.cc create mode 100644 ccc/src/model/DeleteMediaRequest.cc create mode 100644 ccc/src/model/DeleteMediaResult.cc create mode 100644 ccc/src/model/DialExRequest.cc create mode 100644 ccc/src/model/DialExResult.cc create mode 100644 ccc/src/model/DownloadAllTypeRecordingRequest.cc create mode 100644 ccc/src/model/DownloadAllTypeRecordingResult.cc create mode 100644 ccc/src/model/DownloadCabRecordingRequest.cc create mode 100644 ccc/src/model/DownloadCabRecordingResult.cc create mode 100644 ccc/src/model/FindUsersRequest.cc create mode 100644 ccc/src/model/FindUsersResult.cc create mode 100644 ccc/src/model/GetAgentStateRequest.cc create mode 100644 ccc/src/model/GetAgentStateResult.cc create mode 100644 ccc/src/model/GetCallMeasureSummaryReportRequest.cc create mode 100644 ccc/src/model/GetCallMeasureSummaryReportResult.cc create mode 100644 ccc/src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc create mode 100644 ccc/src/model/GetContactIdentifyByOutBoundTaskIdResult.cc create mode 100644 ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc create mode 100644 ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc create mode 100644 ccc/src/model/GetInstanceRequest.cc create mode 100644 ccc/src/model/GetInstanceResult.cc create mode 100644 ccc/src/model/GetInstanceStateRequest.cc create mode 100644 ccc/src/model/GetInstanceStateResult.cc create mode 100644 ccc/src/model/GetInstanceSummaryReportByIntervalRequest.cc create mode 100644 ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc create mode 100644 ccc/src/model/GetInstanceSummaryReportRequest.cc create mode 100644 ccc/src/model/GetInstanceSummaryReportResult.cc create mode 100644 ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc create mode 100644 ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc create mode 100644 ccc/src/model/GetJobFileUploadUrlRequest.cc create mode 100644 ccc/src/model/GetJobFileUploadUrlResult.cc create mode 100644 ccc/src/model/GetJobsProgressRequest.cc create mode 100644 ccc/src/model/GetJobsProgressResult.cc create mode 100644 ccc/src/model/GetPredictiveJobRequest.cc create mode 100644 ccc/src/model/GetPredictiveJobResult.cc create mode 100644 ccc/src/model/GetRecordOssUploadParamRequest.cc create mode 100644 ccc/src/model/GetRecordOssUploadParamResult.cc create mode 100644 ccc/src/model/GetSmsConfigRequest.cc create mode 100644 ccc/src/model/GetSmsConfigResult.cc create mode 100644 ccc/src/model/GetTURNCredentialsRequest.cc create mode 100644 ccc/src/model/GetTURNCredentialsResult.cc create mode 100644 ccc/src/model/GetTURNServerListRequest.cc create mode 100644 ccc/src/model/GetTURNServerListResult.cc create mode 100644 ccc/src/model/ListAgentDevicesRequest.cc create mode 100644 ccc/src/model/ListAgentDevicesResult.cc create mode 100644 ccc/src/model/ListAgentEventsRequest.cc create mode 100644 ccc/src/model/ListAgentEventsResult.cc create mode 100644 ccc/src/model/ListAgentStatesRequest.cc create mode 100644 ccc/src/model/ListAgentStatesResult.cc create mode 100644 ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc create mode 100644 ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc create mode 100644 ccc/src/model/ListAgentSummaryReportsRequest.cc create mode 100644 ccc/src/model/ListAgentSummaryReportsResult.cc create mode 100644 ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.cc create mode 100644 ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc create mode 100644 ccc/src/model/ListCallEventDetailByContactIdRequest.cc create mode 100644 ccc/src/model/ListCallEventDetailByContactIdResult.cc create mode 100644 ccc/src/model/ListCallMeasureSummaryReportsRequest.cc create mode 100644 ccc/src/model/ListCallMeasureSummaryReportsResult.cc create mode 100644 ccc/src/model/ListInstancesOfUserRequest.cc create mode 100644 ccc/src/model/ListInstancesOfUserResult.cc create mode 100644 ccc/src/model/ListIvrTrackingDetailRequest.cc create mode 100644 ccc/src/model/ListIvrTrackingDetailResult.cc create mode 100644 ccc/src/model/ListMediasRequest.cc create mode 100644 ccc/src/model/ListMediasResult.cc create mode 100644 ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc create mode 100644 ccc/src/model/ListOutboundPhoneNumberOfUserResult.cc create mode 100644 ccc/src/model/ListPredictiveJobGroupsRequest.cc create mode 100644 ccc/src/model/ListPredictiveJobGroupsResult.cc create mode 100644 ccc/src/model/ListPrivacyNumberCallDetailsRequest.cc create mode 100644 ccc/src/model/ListPrivacyNumberCallDetailsResult.cc create mode 100644 ccc/src/model/ListRecentCallRecordsRequest.cc create mode 100644 ccc/src/model/ListRecentCallRecordsResult.cc create mode 100644 ccc/src/model/ListRecordingOfDualTrackRequest.cc create mode 100644 ccc/src/model/ListRecordingOfDualTrackResult.cc create mode 100644 ccc/src/model/ListSkillGroupStatesRequest.cc create mode 100644 ccc/src/model/ListSkillGroupStatesResult.cc create mode 100644 ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc create mode 100644 ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc create mode 100644 ccc/src/model/ListSkillGroupSummaryReportsRequest.cc create mode 100644 ccc/src/model/ListSkillGroupSummaryReportsResult.cc create mode 100644 ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc create mode 100644 ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc create mode 100644 ccc/src/model/ListVoiceAppraiseRequest.cc create mode 100644 ccc/src/model/ListVoiceAppraiseResult.cc create mode 100644 ccc/src/model/ModifyAgentDeviceRequest.cc create mode 100644 ccc/src/model/ModifyAgentDeviceResult.cc create mode 100644 ccc/src/model/ModifyCabInstanceRequest.cc create mode 100644 ccc/src/model/ModifyCabInstanceResult.cc create mode 100644 ccc/src/model/ModifyMediaRequest.cc create mode 100644 ccc/src/model/ModifyMediaResult.cc create mode 100644 ccc/src/model/ModifyNotificationConfigRequest.cc create mode 100644 ccc/src/model/ModifyNotificationConfigResult.cc create mode 100644 ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc create mode 100644 ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc create mode 100644 ccc/src/model/ModifySkillGroupOfUserRequest.cc create mode 100644 ccc/src/model/ModifySkillGroupOfUserResult.cc create mode 100644 ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc create mode 100644 ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc create mode 100644 ccc/src/model/PickGlobalOutboundNumbersRequest.cc create mode 100644 ccc/src/model/PickGlobalOutboundNumbersResult.cc create mode 100644 ccc/src/model/PickOutboundNumbersByTagsRequest.cc create mode 100644 ccc/src/model/PickOutboundNumbersByTagsResult.cc create mode 100644 ccc/src/model/PickOutboundNumbersRequest.cc create mode 100644 ccc/src/model/PickOutboundNumbersResult.cc create mode 100644 ccc/src/model/PreCreateMediaRequest.cc create mode 100644 ccc/src/model/PreCreateMediaResult.cc create mode 100644 ccc/src/model/PreModifyMediaRequest.cc create mode 100644 ccc/src/model/PreModifyMediaResult.cc create mode 100644 ccc/src/model/PredictiveRecordFailureRequest.cc create mode 100644 ccc/src/model/PredictiveRecordFailureResult.cc create mode 100644 ccc/src/model/PredictiveRecordSuccessRequest.cc create mode 100644 ccc/src/model/PredictiveRecordSuccessResult.cc create mode 100644 ccc/src/model/PublishContactFlowVersionRequest.cc create mode 100644 ccc/src/model/PublishContactFlowVersionResult.cc create mode 100644 ccc/src/model/PublishPredictiveJobGroupRequest.cc create mode 100644 ccc/src/model/PublishPredictiveJobGroupResult.cc create mode 100644 ccc/src/model/QueryRedialIndicatorRequest.cc create mode 100644 ccc/src/model/QueryRedialIndicatorResult.cc create mode 100644 ccc/src/model/RemoveNumberFromSkillGroupRequest.cc create mode 100644 ccc/src/model/RemoveNumberFromSkillGroupResult.cc create mode 100644 ccc/src/model/RemoveUsersFromSkillGroupRequest.cc create mode 100644 ccc/src/model/RemoveUsersFromSkillGroupResult.cc create mode 100644 ccc/src/model/SaveStatsRequest.cc create mode 100644 ccc/src/model/SaveStatsResult.cc create mode 100644 ccc/src/model/SaveWebRTCStatsRequest.cc create mode 100644 ccc/src/model/SaveWebRTCStatsResult.cc create mode 100644 ccc/src/model/SendPredefinedShortMessageRequest.cc create mode 100644 ccc/src/model/SendPredefinedShortMessageResult.cc create mode 100644 ccc/src/model/SimpleDialRequest.cc create mode 100644 ccc/src/model/SimpleDialResult.cc create mode 100644 ccc/src/model/SubmitCabRecordingRequest.cc create mode 100644 ccc/src/model/SubmitCabRecordingResult.cc create mode 100644 chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/AddSynonymRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/AddSynonymResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateCategoryRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateCategoryResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateCoreWordRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateCoreWordResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateDialogRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateDialogResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateEntityRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateEntityResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateIntentRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateIntentResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteCategoryRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteCategoryResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteDialogRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteDialogResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteEntityRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteEntityResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteIntentRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteIntentResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeCategoryRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeCategoryResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeDialogRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeDialogResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeIntentRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeIntentResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/FeedbackRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/FeedbackResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryCategoriesRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryCategoriesResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryDialogsRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryDialogsResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryEntitiesRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryEntitiesResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryIntentsRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryIntentsResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/RemoveSynonymRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/RemoveSynonymResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/TestDialogFlowRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/TestDialogFlowResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateCategoryRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateCategoryResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateDialogRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateDialogResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateEntityRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateEntityResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateIntentRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateIntentResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeResult.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveRequest.h create mode 100644 chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveResult.h create mode 100644 chatbot/src/model/ActivatePerspectiveRequest.cc create mode 100644 chatbot/src/model/ActivatePerspectiveResult.cc create mode 100644 chatbot/src/model/AddSynonymRequest.cc create mode 100644 chatbot/src/model/AddSynonymResult.cc create mode 100644 chatbot/src/model/AppendEntityMemberRequest.cc create mode 100644 chatbot/src/model/AppendEntityMemberResult.cc create mode 100644 chatbot/src/model/CreateCategoryRequest.cc create mode 100644 chatbot/src/model/CreateCategoryResult.cc create mode 100644 chatbot/src/model/CreateCoreWordRequest.cc create mode 100644 chatbot/src/model/CreateCoreWordResult.cc create mode 100644 chatbot/src/model/CreateDialogRequest.cc create mode 100644 chatbot/src/model/CreateDialogResult.cc create mode 100644 chatbot/src/model/CreateEntityRequest.cc create mode 100644 chatbot/src/model/CreateEntityResult.cc create mode 100644 chatbot/src/model/CreateIntentRequest.cc create mode 100644 chatbot/src/model/CreateIntentResult.cc create mode 100644 chatbot/src/model/CreateKnowledgeRequest.cc create mode 100644 chatbot/src/model/CreateKnowledgeResult.cc create mode 100644 chatbot/src/model/CreatePerspectiveRequest.cc create mode 100644 chatbot/src/model/CreatePerspectiveResult.cc create mode 100644 chatbot/src/model/DeleteCategoryRequest.cc create mode 100644 chatbot/src/model/DeleteCategoryResult.cc create mode 100644 chatbot/src/model/DeleteCoreWordRequest.cc create mode 100644 chatbot/src/model/DeleteCoreWordResult.cc create mode 100644 chatbot/src/model/DeleteDialogRequest.cc create mode 100644 chatbot/src/model/DeleteDialogResult.cc create mode 100644 chatbot/src/model/DeleteEntityRequest.cc create mode 100644 chatbot/src/model/DeleteEntityResult.cc create mode 100644 chatbot/src/model/DeleteIntentRequest.cc create mode 100644 chatbot/src/model/DeleteIntentResult.cc create mode 100644 chatbot/src/model/DeleteKnowledgeRequest.cc create mode 100644 chatbot/src/model/DeleteKnowledgeResult.cc create mode 100644 chatbot/src/model/DescribeCategoryRequest.cc create mode 100644 chatbot/src/model/DescribeCategoryResult.cc create mode 100644 chatbot/src/model/DescribeCoreWordRequest.cc create mode 100644 chatbot/src/model/DescribeCoreWordResult.cc create mode 100644 chatbot/src/model/DescribeDialogFlowRequest.cc create mode 100644 chatbot/src/model/DescribeDialogFlowResult.cc create mode 100644 chatbot/src/model/DescribeDialogRequest.cc create mode 100644 chatbot/src/model/DescribeDialogResult.cc create mode 100644 chatbot/src/model/DescribeEntitiesRequest.cc create mode 100644 chatbot/src/model/DescribeEntitiesResult.cc create mode 100644 chatbot/src/model/DescribeIntentRequest.cc create mode 100644 chatbot/src/model/DescribeIntentResult.cc create mode 100644 chatbot/src/model/DescribeKnowledgeRequest.cc create mode 100644 chatbot/src/model/DescribeKnowledgeResult.cc create mode 100644 chatbot/src/model/DescribePerspectiveRequest.cc create mode 100644 chatbot/src/model/DescribePerspectiveResult.cc create mode 100644 chatbot/src/model/DisableDialogFlowRequest.cc create mode 100644 chatbot/src/model/DisableDialogFlowResult.cc create mode 100644 chatbot/src/model/DisableKnowledgeRequest.cc create mode 100644 chatbot/src/model/DisableKnowledgeResult.cc create mode 100644 chatbot/src/model/FeedbackRequest.cc create mode 100644 chatbot/src/model/FeedbackResult.cc create mode 100644 chatbot/src/model/MoveKnowledgeCategoryRequest.cc create mode 100644 chatbot/src/model/MoveKnowledgeCategoryResult.cc create mode 100644 chatbot/src/model/PublishDialogFlowRequest.cc create mode 100644 chatbot/src/model/PublishDialogFlowResult.cc create mode 100644 chatbot/src/model/PublishKnowledgeRequest.cc create mode 100644 chatbot/src/model/PublishKnowledgeResult.cc create mode 100644 chatbot/src/model/QueryCategoriesRequest.cc create mode 100644 chatbot/src/model/QueryCategoriesResult.cc create mode 100644 chatbot/src/model/QueryCoreWordsRequest.cc create mode 100644 chatbot/src/model/QueryCoreWordsResult.cc create mode 100644 chatbot/src/model/QueryDialogsRequest.cc create mode 100644 chatbot/src/model/QueryDialogsResult.cc create mode 100644 chatbot/src/model/QueryEntitiesRequest.cc create mode 100644 chatbot/src/model/QueryEntitiesResult.cc create mode 100644 chatbot/src/model/QueryIntentsRequest.cc create mode 100644 chatbot/src/model/QueryIntentsResult.cc create mode 100644 chatbot/src/model/QueryKnowledgesRequest.cc create mode 100644 chatbot/src/model/QueryKnowledgesResult.cc create mode 100644 chatbot/src/model/QueryPerspectivesRequest.cc create mode 100644 chatbot/src/model/QueryPerspectivesResult.cc create mode 100644 chatbot/src/model/QuerySystemEntitiesRequest.cc create mode 100644 chatbot/src/model/QuerySystemEntitiesResult.cc create mode 100644 chatbot/src/model/RemoveEntityMemberRequest.cc create mode 100644 chatbot/src/model/RemoveEntityMemberResult.cc create mode 100644 chatbot/src/model/RemoveSynonymRequest.cc create mode 100644 chatbot/src/model/RemoveSynonymResult.cc create mode 100644 chatbot/src/model/TestDialogFlowRequest.cc create mode 100644 chatbot/src/model/TestDialogFlowResult.cc create mode 100644 chatbot/src/model/UpdateCategoryRequest.cc create mode 100644 chatbot/src/model/UpdateCategoryResult.cc create mode 100644 chatbot/src/model/UpdateCoreWordRequest.cc create mode 100644 chatbot/src/model/UpdateCoreWordResult.cc create mode 100644 chatbot/src/model/UpdateDialogFlowRequest.cc create mode 100644 chatbot/src/model/UpdateDialogFlowResult.cc create mode 100644 chatbot/src/model/UpdateDialogRequest.cc create mode 100644 chatbot/src/model/UpdateDialogResult.cc create mode 100644 chatbot/src/model/UpdateEntityRequest.cc create mode 100644 chatbot/src/model/UpdateEntityResult.cc create mode 100644 chatbot/src/model/UpdateIntentRequest.cc create mode 100644 chatbot/src/model/UpdateIntentResult.cc create mode 100644 chatbot/src/model/UpdateKnowledgeRequest.cc create mode 100644 chatbot/src/model/UpdateKnowledgeResult.cc create mode 100644 chatbot/src/model/UpdatePerspectiveRequest.cc create mode 100644 chatbot/src/model/UpdatePerspectiveResult.cc create mode 100644 cloudapi/CMakeLists.txt create mode 100644 cloudapi/include/alibabacloud/cloudapi/CloudAPIClient.h create mode 100644 cloudapi/src/CloudAPIClient.cc create mode 100644 cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h create mode 100644 cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h create mode 100644 cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h create mode 100644 cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsResult.h create mode 100644 cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h create mode 100644 cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h create mode 100644 cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h create mode 100644 cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h create mode 100644 cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h create mode 100644 cms/include/alibabacloud/cms/model/PutMetricRuleTargetsResult.h create mode 100644 cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h create mode 100644 cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h create mode 100644 cms/src/model/DescribeAlertHistoryListRequest.cc create mode 100644 cms/src/model/DescribeAlertHistoryListResult.cc create mode 100644 cms/src/model/DescribeMetricRuleTargetsRequest.cc create mode 100644 cms/src/model/DescribeMetricRuleTargetsResult.cc create mode 100644 cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc create mode 100644 cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc create mode 100644 cms/src/model/DescribeSiteMonitorISPCityListRequest.cc create mode 100644 cms/src/model/DescribeSiteMonitorISPCityListResult.cc create mode 100644 cms/src/model/PutMetricRuleTargetsRequest.cc create mode 100644 cms/src/model/PutMetricRuleTargetsResult.cc create mode 100644 cms/src/model/RemoveMetricRuleTargetsRequest.cc create mode 100644 cms/src/model/RemoveMetricRuleTargetsResult.cc create mode 100644 cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupRequest.h create mode 100644 cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupResult.h create mode 100644 cs/include/alibabacloud/cs/model/DeleteClusterNodesRequest.h create mode 100644 cs/include/alibabacloud/cs/model/DeleteClusterNodesResult.h create mode 100644 cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsRequest.h create mode 100644 cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsResult.h create mode 100644 cs/include/alibabacloud/cs/model/ModifyClusterRequest.h create mode 100644 cs/include/alibabacloud/cs/model/ModifyClusterResult.h create mode 100644 cs/include/alibabacloud/cs/model/ScaleOutClusterRequest.h create mode 100644 cs/include/alibabacloud/cs/model/ScaleOutClusterResult.h create mode 100644 cs/src/model/CreateClusterByResourcesGroupRequest.cc create mode 100644 cs/src/model/CreateClusterByResourcesGroupResult.cc create mode 100644 cs/src/model/DeleteClusterNodesRequest.cc create mode 100644 cs/src/model/DeleteClusterNodesResult.cc create mode 100644 cs/src/model/DescribeClusterAttachScriptsRequest.cc create mode 100644 cs/src/model/DescribeClusterAttachScriptsResult.cc create mode 100644 cs/src/model/ModifyClusterRequest.cc create mode 100644 cs/src/model/ModifyClusterResult.cc create mode 100644 cs/src/model/ScaleOutClusterRequest.cc create mode 100644 cs/src/model/ScaleOutClusterResult.cc create mode 100644 csb/include/alibabacloud/csb/model/ImportCredentialsRequest.h create mode 100644 csb/include/alibabacloud/csb/model/ImportCredentialsResult.h create mode 100644 csb/src/model/ImportCredentialsRequest.cc create mode 100644 csb/src/model/ImportCredentialsResult.cc create mode 100644 cusanalytic_sc_online/CMakeLists.txt create mode 100644 cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorRequest.h create mode 100644 cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorResult.h create mode 100644 cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlRequest.h create mode 100644 cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlResult.h create mode 100644 cusanalytic_sc_online/src/model/GetActionCursorRequest.cc create mode 100644 cusanalytic_sc_online/src/model/GetActionCursorResult.cc create mode 100644 cusanalytic_sc_online/src/model/GetImageUrlRequest.cc create mode 100644 cusanalytic_sc_online/src/model/GetImageUrlResult.cc create mode 100644 dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h create mode 100644 dcdn/src/model/AddDcdnIpaDomainRequest.cc create mode 100644 dcdn/src/model/AddDcdnIpaDomainResult.cc create mode 100644 dcdn/src/model/BatchSetDcdnIpaDomainConfigsRequest.cc create mode 100644 dcdn/src/model/BatchSetDcdnIpaDomainConfigsResult.cc create mode 100644 dcdn/src/model/DeleteDcdnIpaDomainRequest.cc create mode 100644 dcdn/src/model/DeleteDcdnIpaDomainResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainIpaBpsDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainIpaBpsDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainIpaTrafficDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainIpaTrafficDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainPvDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainPvDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainUvDataRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnDomainUvDataResult.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaDomainConfigsRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaDomainConfigsResult.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaDomainDetailRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaDomainDetailResult.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaServiceRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaServiceResult.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaUserDomainsRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnIpaUserDomainsResult.cc create mode 100644 dcdn/src/model/DescribeUserDcdnIpaStatusRequest.cc create mode 100644 dcdn/src/model/DescribeUserDcdnIpaStatusResult.cc create mode 100644 dcdn/src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc create mode 100644 dcdn/src/model/ModifyDCdnDomainSchdmByPropertyResult.cc create mode 100644 dcdn/src/model/StartDcdnIpaDomainRequest.cc create mode 100644 dcdn/src/model/StartDcdnIpaDomainResult.cc create mode 100644 dcdn/src/model/StopDcdnIpaDomainRequest.cc create mode 100644 dcdn/src/model/StopDcdnIpaDomainResult.cc create mode 100644 dcdn/src/model/UpdateDcdnIpaDomainRequest.cc create mode 100644 dcdn/src/model/UpdateDcdnIpaDomainResult.cc create mode 100644 dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressRequest.h create mode 100644 dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressResult.h create mode 100644 dds/src/model/AllocateNodePrivateNetworkAddressRequest.cc create mode 100644 dds/src/model/AllocateNodePrivateNetworkAddressResult.cc create mode 100644 dds/src/model/DescribeRoleZoneInfoRequest.cc create mode 100644 dds/src/model/DescribeRoleZoneInfoResult.cc create mode 100644 dds/src/model/ModifyInstanceVpcAuthModeRequest.cc create mode 100644 dds/src/model/ModifyInstanceVpcAuthModeResult.cc create mode 100644 dds/src/model/ReleaseNodePrivateNetworkAddressRequest.cc create mode 100644 dds/src/model/ReleaseNodePrivateNetworkAddressResult.cc create mode 100644 domain/include/alibabacloud/domain/model/CancelTaskRequest.h create mode 100644 domain/include/alibabacloud/domain/model/CancelTaskResult.h create mode 100644 domain/include/alibabacloud/domain/model/QueryArtExtensionRequest.h create mode 100644 domain/include/alibabacloud/domain/model/QueryArtExtensionResult.h create mode 100644 domain/include/alibabacloud/domain/model/QueryDSRecordRequest.h create mode 100644 domain/include/alibabacloud/domain/model/QueryDSRecordResult.h create mode 100644 domain/include/alibabacloud/domain/model/QueryDomainByDomainNameRequest.h create mode 100644 domain/include/alibabacloud/domain/model/QueryDomainByDomainNameResult.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordRequest.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordResult.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordRequest.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordResult.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordRequest.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordResult.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionRequest.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionResult.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordRequest.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordResult.h create mode 100644 domain/include/alibabacloud/domain/model/ScrollDomainListRequest.h create mode 100644 domain/include/alibabacloud/domain/model/ScrollDomainListResult.h create mode 100644 domain/src/model/CancelTaskRequest.cc create mode 100644 domain/src/model/CancelTaskResult.cc create mode 100644 domain/src/model/QueryArtExtensionRequest.cc create mode 100644 domain/src/model/QueryArtExtensionResult.cc create mode 100644 domain/src/model/QueryDSRecordRequest.cc create mode 100644 domain/src/model/QueryDSRecordResult.cc create mode 100644 domain/src/model/QueryDomainByDomainNameRequest.cc create mode 100644 domain/src/model/QueryDomainByDomainNameResult.cc create mode 100644 domain/src/model/SaveSingleTaskForAddingDSRecordRequest.cc create mode 100644 domain/src/model/SaveSingleTaskForAddingDSRecordResult.cc create mode 100644 domain/src/model/SaveSingleTaskForDeletingDSRecordRequest.cc create mode 100644 domain/src/model/SaveSingleTaskForDeletingDSRecordResult.cc create mode 100644 domain/src/model/SaveSingleTaskForModifyingDSRecordRequest.cc create mode 100644 domain/src/model/SaveSingleTaskForModifyingDSRecordResult.cc create mode 100644 domain/src/model/SaveSingleTaskForSaveArtExtensionRequest.cc create mode 100644 domain/src/model/SaveSingleTaskForSaveArtExtensionResult.cc create mode 100644 domain/src/model/SaveSingleTaskForSynchronizingDSRecordRequest.cc create mode 100644 domain/src/model/SaveSingleTaskForSynchronizingDSRecordResult.cc create mode 100644 domain/src/model/ScrollDomainListRequest.cc create mode 100644 domain/src/model/ScrollDomainListResult.cc create mode 100644 drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorRequest.h create mode 100644 drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorResult.h create mode 100644 drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorRequest.h create mode 100644 drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorResult.h create mode 100644 drds/src/model/DescribeDrdsInstanceDbMonitorRequest.cc create mode 100644 drds/src/model/DescribeDrdsInstanceDbMonitorResult.cc create mode 100644 drds/src/model/DescribeDrdsInstanceMonitorRequest.cc create mode 100644 drds/src/model/DescribeDrdsInstanceMonitorResult.cc create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskResult.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileRequest.h create mode 100644 dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileResult.h create mode 100644 dyvmsapi/src/model/AddRtcAccountRequest.cc create mode 100644 dyvmsapi/src/model/AddRtcAccountResult.cc create mode 100644 dyvmsapi/src/model/BatchRobotSmartCallRequest.cc create mode 100644 dyvmsapi/src/model/BatchRobotSmartCallResult.cc create mode 100644 dyvmsapi/src/model/CancelOrderRobotTaskRequest.cc create mode 100644 dyvmsapi/src/model/CancelOrderRobotTaskResult.cc create mode 100644 dyvmsapi/src/model/CancelRobotTaskRequest.cc create mode 100644 dyvmsapi/src/model/CancelRobotTaskResult.cc create mode 100644 dyvmsapi/src/model/CreateRobotTaskRequest.cc create mode 100644 dyvmsapi/src/model/CreateRobotTaskResult.cc create mode 100644 dyvmsapi/src/model/DeleteRobotTaskRequest.cc create mode 100644 dyvmsapi/src/model/DeleteRobotTaskResult.cc create mode 100644 dyvmsapi/src/model/GetRtcTokenRequest.cc create mode 100644 dyvmsapi/src/model/GetRtcTokenResult.cc create mode 100644 dyvmsapi/src/model/QueryCallDetailByTaskIdRequest.cc create mode 100644 dyvmsapi/src/model/QueryCallDetailByTaskIdResult.cc create mode 100644 dyvmsapi/src/model/QueryRobotInfoListRequest.cc create mode 100644 dyvmsapi/src/model/QueryRobotInfoListResult.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskCallDetailRequest.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskCallDetailResult.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskCallListRequest.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskCallListResult.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskDetailRequest.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskDetailResult.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskListRequest.cc create mode 100644 dyvmsapi/src/model/QueryRobotTaskListResult.cc create mode 100644 dyvmsapi/src/model/QueryRobotv2AllListRequest.cc create mode 100644 dyvmsapi/src/model/QueryRobotv2AllListResult.cc create mode 100644 dyvmsapi/src/model/SmartCallOperateRequest.cc create mode 100644 dyvmsapi/src/model/SmartCallOperateResult.cc create mode 100644 dyvmsapi/src/model/StartRobotTaskRequest.cc create mode 100644 dyvmsapi/src/model/StartRobotTaskResult.cc create mode 100644 dyvmsapi/src/model/StopRobotTaskRequest.cc create mode 100644 dyvmsapi/src/model/StopRobotTaskResult.cc create mode 100644 dyvmsapi/src/model/UploadRobotTaskCalledFileRequest.cc create mode 100644 dyvmsapi/src/model/UploadRobotTaskCalledFileResult.cc create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InstallNFSClientRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InstallNFSClientResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h create mode 100644 ehpc/src/model/CreateGWSClusterRequest.cc create mode 100644 ehpc/src/model/CreateGWSClusterResult.cc create mode 100644 ehpc/src/model/CreateGWSImageRequest.cc create mode 100644 ehpc/src/model/CreateGWSImageResult.cc create mode 100644 ehpc/src/model/CreateGWSInstanceRequest.cc create mode 100644 ehpc/src/model/CreateGWSInstanceResult.cc create mode 100644 ehpc/src/model/DeleteGWSClusterRequest.cc create mode 100644 ehpc/src/model/DeleteGWSClusterResult.cc create mode 100644 ehpc/src/model/DeleteGWSInstanceRequest.cc create mode 100644 ehpc/src/model/DeleteGWSInstanceResult.cc create mode 100644 ehpc/src/model/DescribeGWSClustersRequest.cc create mode 100644 ehpc/src/model/DescribeGWSClustersResult.cc create mode 100644 ehpc/src/model/DescribeGWSImagesRequest.cc create mode 100644 ehpc/src/model/DescribeGWSImagesResult.cc create mode 100644 ehpc/src/model/DescribeGWSInstancesRequest.cc create mode 100644 ehpc/src/model/DescribeGWSInstancesResult.cc create mode 100644 ehpc/src/model/DescribeNFSClientStatusRequest.cc create mode 100644 ehpc/src/model/DescribeNFSClientStatusResult.cc create mode 100644 ehpc/src/model/GetGWSConnectTicketRequest.cc create mode 100644 ehpc/src/model/GetGWSConnectTicketResult.cc create mode 100644 ehpc/src/model/InstallNFSClientRequest.cc create mode 100644 ehpc/src/model/InstallNFSClientResult.cc create mode 100644 ehpc/src/model/MountNFSRequest.cc create mode 100644 ehpc/src/model/MountNFSResult.cc create mode 100644 ehpc/src/model/QueryServicePackAndPriceRequest.cc create mode 100644 ehpc/src/model/QueryServicePackAndPriceResult.cc create mode 100644 ehpc/src/model/SetGWSInstanceUserRequest.cc create mode 100644 ehpc/src/model/SetGWSInstanceUserResult.cc create mode 100644 ehpc/src/model/StartGWSInstanceRequest.cc create mode 100644 ehpc/src/model/StartGWSInstanceResult.cc create mode 100644 ehpc/src/model/StopGWSInstanceRequest.cc create mode 100644 ehpc/src/model/StopGWSInstanceResult.cc create mode 100644 ehpc/src/model/UpdateQueueConfigRequest.cc create mode 100644 ehpc/src/model/UpdateQueueConfigResult.cc create mode 100644 emr/include/alibabacloud/emr/model/AddClusterServiceForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/AddClusterServiceForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/AddHpHostRequest.h create mode 100644 emr/include/alibabacloud/emr/model/AddHpHostResult.h create mode 100644 emr/include/alibabacloud/emr/model/AddResourceToUsersRequest.h create mode 100644 emr/include/alibabacloud/emr/model/AddResourceToUsersResult.h create mode 100644 emr/include/alibabacloud/emr/model/AddUserResourceRoleRequest.h create mode 100644 emr/include/alibabacloud/emr/model/AddUserResourceRoleResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBackupPlanRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBackupPlanResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBackupRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBackupResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBackupRuleRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBackupRuleResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBatchUsersRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateBatchUsersResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateHostPoolRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateHostPoolResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateUserGroupRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateUserGroupResult.h create mode 100644 emr/include/alibabacloud/emr/model/CreateUserRequest.h create mode 100644 emr/include/alibabacloud/emr/model/CreateUserResult.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersResult.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteHostPoolRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteHostPoolResult.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteResourceUserRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteResourceUserResult.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteUserGroupRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteUserGroupResult.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteUserResourceRoleRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DeleteUserResourceRoleResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeHostPoolRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeHostPoolResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeHpHostRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeHpHostResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeKafkaBrokerRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeKafkaBrokerResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeKafkaReassignRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeKafkaReassignResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeUserGroupRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeUserGroupResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeUserRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeUserResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingResult.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingRequest.h create mode 100644 emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingResult.h create mode 100644 emr/include/alibabacloud/emr/model/GetAuditLogsRequest.h create mode 100644 emr/include/alibabacloud/emr/model/GetAuditLogsResult.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackInfoRequest.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackInfoResult.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackPlanInfoRequest.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackPlanInfoResult.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackupInfoRequest.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackupInfoResult.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackupRuleInfoRequest.h create mode 100644 emr/include/alibabacloud/emr/model/GetBackupRuleInfoResult.h create mode 100644 emr/include/alibabacloud/emr/model/GetFlowAuditLogsRequest.h create mode 100644 emr/include/alibabacloud/emr/model/GetFlowAuditLogsResult.h create mode 100644 emr/include/alibabacloud/emr/model/GetMetadataTypeListRequest.h create mode 100644 emr/include/alibabacloud/emr/model/GetMetadataTypeListResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListApmApplicationRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListApmApplicationResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListBackupPlansRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListBackupPlansResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListBackupRulesRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListBackupRulesResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListBackupsRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListBackupsResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterInstalledServiceRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterInstalledServiceResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterSupportServiceRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterSupportServiceResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterTagForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListClusterTagForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListETLJobReleaseRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListETLJobReleaseResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListHostPoolRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListHostPoolResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListHpHostRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListHpHostResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaBrokerRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaBrokerResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaReassignRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaReassignResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaReassignTopicRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaReassignTopicResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListResourcePoolForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListResourcePoolForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListRolesRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListRolesResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListStackRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListStackResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListStackServiceRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListStackServiceResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListStreamingSqlQueryRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListStreamingSqlQueryResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListUserGroupsRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListUserGroupsResult.h create mode 100644 emr/include/alibabacloud/emr/model/ListUsersByConditionRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ListUsersByConditionResult.h create mode 100644 emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ModifyHostPoolRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ModifyHostPoolResult.h create mode 100644 emr/include/alibabacloud/emr/model/ModifyHpHostRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ModifyHpHostResult.h create mode 100644 emr/include/alibabacloud/emr/model/OfflineKafkaBrokerRequest.h create mode 100644 emr/include/alibabacloud/emr/model/OfflineKafkaBrokerResult.h create mode 100644 emr/include/alibabacloud/emr/model/PageListResourceUsersRequest.h create mode 100644 emr/include/alibabacloud/emr/model/PageListResourceUsersResult.h create mode 100644 emr/include/alibabacloud/emr/model/PageListUserGroupsRequest.h create mode 100644 emr/include/alibabacloud/emr/model/PageListUserGroupsResult.h create mode 100644 emr/include/alibabacloud/emr/model/PageListUsersRequest.h create mode 100644 emr/include/alibabacloud/emr/model/PageListUsersResult.h create mode 100644 emr/include/alibabacloud/emr/model/PlanComponentTopoRequest.h create mode 100644 emr/include/alibabacloud/emr/model/PlanComponentTopoResult.h create mode 100644 emr/include/alibabacloud/emr/model/PlanHostNameRequest.h create mode 100644 emr/include/alibabacloud/emr/model/PlanHostNameResult.h create mode 100644 emr/include/alibabacloud/emr/model/QueryInfoByTokenRequest.h create mode 100644 emr/include/alibabacloud/emr/model/QueryInfoByTokenResult.h create mode 100644 emr/include/alibabacloud/emr/model/QueryUserActionsPolicyRequest.h create mode 100644 emr/include/alibabacloud/emr/model/QueryUserActionsPolicyResult.h create mode 100644 emr/include/alibabacloud/emr/model/QueryUserPoliciesRequest.h create mode 100644 emr/include/alibabacloud/emr/model/QueryUserPoliciesResult.h create mode 100644 emr/include/alibabacloud/emr/model/ReassignKafkaRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ReassignKafkaResult.h create mode 100644 emr/include/alibabacloud/emr/model/RefreshBackupListRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RefreshBackupListResult.h create mode 100644 emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveBackupPlanRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveBackupPlanResult.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveBackupRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveBackupResult.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveBackupRuleRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveBackupRuleResult.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveHpHostRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RemoveHpHostResult.h create mode 100644 emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminResult.h create mode 100644 emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolRequest.h create mode 100644 emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolResult.h create mode 100644 emr/include/alibabacloud/emr/model/RestoreBackupRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RestoreBackupResult.h create mode 100644 emr/include/alibabacloud/emr/model/RetrySyncUserAccountRequest.h create mode 100644 emr/include/alibabacloud/emr/model/RetrySyncUserAccountResult.h create mode 100644 emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoRequest.h create mode 100644 emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoResult.h create mode 100644 emr/include/alibabacloud/emr/model/SaveUserAccountInfoRequest.h create mode 100644 emr/include/alibabacloud/emr/model/SaveUserAccountInfoResult.h create mode 100644 emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerRequest.h create mode 100644 emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerResult.h create mode 100644 emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionRequest.h create mode 100644 emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionResult.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamRequest.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamResult.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateUserGroupRequest.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateUserGroupResult.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateUserRequest.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateUserResult.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateUserStatusRequest.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateUserStatusResult.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingRequest.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingResult.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingRequest.h create mode 100644 emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingResult.h create mode 100644 emr/src/model/AddClusterServiceForAdminRequest.cc create mode 100644 emr/src/model/AddClusterServiceForAdminResult.cc create mode 100644 emr/src/model/AddHpHostRequest.cc create mode 100644 emr/src/model/AddHpHostResult.cc create mode 100644 emr/src/model/AddResourceToUsersRequest.cc create mode 100644 emr/src/model/AddResourceToUsersResult.cc create mode 100644 emr/src/model/AddUserResourceRoleRequest.cc create mode 100644 emr/src/model/AddUserResourceRoleResult.cc create mode 100644 emr/src/model/CreateBackupPlanRequest.cc create mode 100644 emr/src/model/CreateBackupPlanResult.cc create mode 100644 emr/src/model/CreateBackupRequest.cc create mode 100644 emr/src/model/CreateBackupResult.cc create mode 100644 emr/src/model/CreateBackupRuleRequest.cc create mode 100644 emr/src/model/CreateBackupRuleResult.cc create mode 100644 emr/src/model/CreateBatchUsersRequest.cc create mode 100644 emr/src/model/CreateBatchUsersResult.cc create mode 100644 emr/src/model/CreateClusterWithHostPoolRequest.cc create mode 100644 emr/src/model/CreateClusterWithHostPoolResult.cc create mode 100644 emr/src/model/CreateHostPoolRequest.cc create mode 100644 emr/src/model/CreateHostPoolResult.cc create mode 100644 emr/src/model/CreateUserGroupRequest.cc create mode 100644 emr/src/model/CreateUserGroupResult.cc create mode 100644 emr/src/model/CreateUserRequest.cc create mode 100644 emr/src/model/CreateUserResult.cc create mode 100644 emr/src/model/DeleteBatchResourceUsersRequest.cc create mode 100644 emr/src/model/DeleteBatchResourceUsersResult.cc create mode 100644 emr/src/model/DeleteHostPoolRequest.cc create mode 100644 emr/src/model/DeleteHostPoolResult.cc create mode 100644 emr/src/model/DeleteResourceUserRequest.cc create mode 100644 emr/src/model/DeleteResourceUserResult.cc create mode 100644 emr/src/model/DeleteUserGroupRequest.cc create mode 100644 emr/src/model/DeleteUserGroupResult.cc create mode 100644 emr/src/model/DeleteUserResourceRoleRequest.cc create mode 100644 emr/src/model/DeleteUserResourceRoleResult.cc create mode 100644 emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.cc create mode 100644 emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.cc create mode 100644 emr/src/model/DescribeClusterServiceConfigForAdminRequest.cc create mode 100644 emr/src/model/DescribeClusterServiceConfigForAdminResult.cc create mode 100644 emr/src/model/DescribeClusterServiceConfigTagForAdminRequest.cc create mode 100644 emr/src/model/DescribeClusterServiceConfigTagForAdminResult.cc create mode 100644 emr/src/model/DescribeHostPoolRequest.cc create mode 100644 emr/src/model/DescribeHostPoolResult.cc create mode 100644 emr/src/model/DescribeHpHostRequest.cc create mode 100644 emr/src/model/DescribeHpHostResult.cc create mode 100644 emr/src/model/DescribeKafkaBrokerRequest.cc create mode 100644 emr/src/model/DescribeKafkaBrokerResult.cc create mode 100644 emr/src/model/DescribeKafkaReassignRequest.cc create mode 100644 emr/src/model/DescribeKafkaReassignResult.cc create mode 100644 emr/src/model/DescribeUserGroupRequest.cc create mode 100644 emr/src/model/DescribeUserGroupResult.cc create mode 100644 emr/src/model/DescribeUserRequest.cc create mode 100644 emr/src/model/DescribeUserResult.cc create mode 100644 emr/src/model/DescribeWorkspaceRepoSettingRequest.cc create mode 100644 emr/src/model/DescribeWorkspaceRepoSettingResult.cc create mode 100644 emr/src/model/DescribeWorkspaceResourceSettingRequest.cc create mode 100644 emr/src/model/DescribeWorkspaceResourceSettingResult.cc create mode 100644 emr/src/model/GetAuditLogsRequest.cc create mode 100644 emr/src/model/GetAuditLogsResult.cc create mode 100644 emr/src/model/GetBackInfoRequest.cc create mode 100644 emr/src/model/GetBackInfoResult.cc create mode 100644 emr/src/model/GetBackPlanInfoRequest.cc create mode 100644 emr/src/model/GetBackPlanInfoResult.cc create mode 100644 emr/src/model/GetBackupInfoRequest.cc create mode 100644 emr/src/model/GetBackupInfoResult.cc create mode 100644 emr/src/model/GetBackupRuleInfoRequest.cc create mode 100644 emr/src/model/GetBackupRuleInfoResult.cc create mode 100644 emr/src/model/GetFlowAuditLogsRequest.cc create mode 100644 emr/src/model/GetFlowAuditLogsResult.cc create mode 100644 emr/src/model/GetMetadataTypeListRequest.cc create mode 100644 emr/src/model/GetMetadataTypeListResult.cc create mode 100644 emr/src/model/ListApmApplicationRequest.cc create mode 100644 emr/src/model/ListApmApplicationResult.cc create mode 100644 emr/src/model/ListBackupPlansRequest.cc create mode 100644 emr/src/model/ListBackupPlansResult.cc create mode 100644 emr/src/model/ListBackupRulesRequest.cc create mode 100644 emr/src/model/ListBackupRulesResult.cc create mode 100644 emr/src/model/ListBackupsRequest.cc create mode 100644 emr/src/model/ListBackupsResult.cc create mode 100644 emr/src/model/ListClusterHostComponentForAdminRequest.cc create mode 100644 emr/src/model/ListClusterHostComponentForAdminResult.cc create mode 100644 emr/src/model/ListClusterInstalledServiceRequest.cc create mode 100644 emr/src/model/ListClusterInstalledServiceResult.cc create mode 100644 emr/src/model/ListClusterServiceConfigHistoryForAdminRequest.cc create mode 100644 emr/src/model/ListClusterServiceConfigHistoryForAdminResult.cc create mode 100644 emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.cc create mode 100644 emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminResult.cc create mode 100644 emr/src/model/ListClusterSupportServiceRequest.cc create mode 100644 emr/src/model/ListClusterSupportServiceResult.cc create mode 100644 emr/src/model/ListClusterTagForAdminRequest.cc create mode 100644 emr/src/model/ListClusterTagForAdminResult.cc create mode 100644 emr/src/model/ListETLJobReleaseRequest.cc create mode 100644 emr/src/model/ListETLJobReleaseResult.cc create mode 100644 emr/src/model/ListHostPoolRequest.cc create mode 100644 emr/src/model/ListHostPoolResult.cc create mode 100644 emr/src/model/ListHpHostRequest.cc create mode 100644 emr/src/model/ListHpHostResult.cc create mode 100644 emr/src/model/ListKafkaBrokerRequest.cc create mode 100644 emr/src/model/ListKafkaBrokerResult.cc create mode 100644 emr/src/model/ListKafkaReassignRequest.cc create mode 100644 emr/src/model/ListKafkaReassignResult.cc create mode 100644 emr/src/model/ListKafkaReassignTopicRequest.cc create mode 100644 emr/src/model/ListKafkaReassignTopicResult.cc create mode 100644 emr/src/model/ListKafkaTopicStatisticsRequest.cc create mode 100644 emr/src/model/ListKafkaTopicStatisticsResult.cc create mode 100644 emr/src/model/ListResourcePoolForAdminRequest.cc create mode 100644 emr/src/model/ListResourcePoolForAdminResult.cc create mode 100644 emr/src/model/ListRolesRequest.cc create mode 100644 emr/src/model/ListRolesResult.cc create mode 100644 emr/src/model/ListStackRequest.cc create mode 100644 emr/src/model/ListStackResult.cc create mode 100644 emr/src/model/ListStackServiceRequest.cc create mode 100644 emr/src/model/ListStackServiceResult.cc create mode 100644 emr/src/model/ListStreamingSqlQueryRequest.cc create mode 100644 emr/src/model/ListStreamingSqlQueryResult.cc create mode 100644 emr/src/model/ListSupportedServiceNameForAdminRequest.cc create mode 100644 emr/src/model/ListSupportedServiceNameForAdminResult.cc create mode 100644 emr/src/model/ListUserGroupsRequest.cc create mode 100644 emr/src/model/ListUserGroupsResult.cc create mode 100644 emr/src/model/ListUsersByConditionRequest.cc create mode 100644 emr/src/model/ListUsersByConditionResult.cc create mode 100644 emr/src/model/ModifyClusterServiceConfigForAdminRequest.cc create mode 100644 emr/src/model/ModifyClusterServiceConfigForAdminResult.cc create mode 100644 emr/src/model/ModifyHostPoolRequest.cc create mode 100644 emr/src/model/ModifyHostPoolResult.cc create mode 100644 emr/src/model/ModifyHpHostRequest.cc create mode 100644 emr/src/model/ModifyHpHostResult.cc create mode 100644 emr/src/model/OfflineKafkaBrokerRequest.cc create mode 100644 emr/src/model/OfflineKafkaBrokerResult.cc create mode 100644 emr/src/model/PageListResourceUsersRequest.cc create mode 100644 emr/src/model/PageListResourceUsersResult.cc create mode 100644 emr/src/model/PageListUserGroupsRequest.cc create mode 100644 emr/src/model/PageListUserGroupsResult.cc create mode 100644 emr/src/model/PageListUsersRequest.cc create mode 100644 emr/src/model/PageListUsersResult.cc create mode 100644 emr/src/model/PlanComponentTopoRequest.cc create mode 100644 emr/src/model/PlanComponentTopoResult.cc create mode 100644 emr/src/model/PlanHostNameRequest.cc create mode 100644 emr/src/model/PlanHostNameResult.cc create mode 100644 emr/src/model/QueryInfoByTokenRequest.cc create mode 100644 emr/src/model/QueryInfoByTokenResult.cc create mode 100644 emr/src/model/QueryUserActionsPolicyRequest.cc create mode 100644 emr/src/model/QueryUserActionsPolicyResult.cc create mode 100644 emr/src/model/QueryUserPoliciesRequest.cc create mode 100644 emr/src/model/QueryUserPoliciesResult.cc create mode 100644 emr/src/model/ReassignKafkaRequest.cc create mode 100644 emr/src/model/ReassignKafkaResult.cc create mode 100644 emr/src/model/RefreshBackupListRequest.cc create mode 100644 emr/src/model/RefreshBackupListResult.cc create mode 100644 emr/src/model/RefreshClusterResourcePoolForAdminRequest.cc create mode 100644 emr/src/model/RefreshClusterResourcePoolForAdminResult.cc create mode 100644 emr/src/model/RemoveBackupPlanRequest.cc create mode 100644 emr/src/model/RemoveBackupPlanResult.cc create mode 100644 emr/src/model/RemoveBackupRequest.cc create mode 100644 emr/src/model/RemoveBackupResult.cc create mode 100644 emr/src/model/RemoveBackupRuleRequest.cc create mode 100644 emr/src/model/RemoveBackupRuleResult.cc create mode 100644 emr/src/model/RemoveHpHostRequest.cc create mode 100644 emr/src/model/RemoveHpHostResult.cc create mode 100644 emr/src/model/RenderResourcePoolXmlForAdminRequest.cc create mode 100644 emr/src/model/RenderResourcePoolXmlForAdminResult.cc create mode 100644 emr/src/model/ResizeClusterWithHostPoolRequest.cc create mode 100644 emr/src/model/ResizeClusterWithHostPoolResult.cc create mode 100644 emr/src/model/RestoreBackupRequest.cc create mode 100644 emr/src/model/RestoreBackupResult.cc create mode 100644 emr/src/model/RetrySyncUserAccountRequest.cc create mode 100644 emr/src/model/RetrySyncUserAccountResult.cc create mode 100644 emr/src/model/SaveBatchUserAccountInfoRequest.cc create mode 100644 emr/src/model/SaveBatchUserAccountInfoResult.cc create mode 100644 emr/src/model/SaveUserAccountInfoRequest.cc create mode 100644 emr/src/model/SaveUserAccountInfoResult.cc create mode 100644 emr/src/model/StartKafkaBrokerDiskBalancerRequest.cc create mode 100644 emr/src/model/StartKafkaBrokerDiskBalancerResult.cc create mode 100644 emr/src/model/StartKafkaPreferredReplicaElectionRequest.cc create mode 100644 emr/src/model/StartKafkaPreferredReplicaElectionResult.cc create mode 100644 emr/src/model/UpdateKafkaReassignParamRequest.cc create mode 100644 emr/src/model/UpdateKafkaReassignParamResult.cc create mode 100644 emr/src/model/UpdateUserGroupRequest.cc create mode 100644 emr/src/model/UpdateUserGroupResult.cc create mode 100644 emr/src/model/UpdateUserRequest.cc create mode 100644 emr/src/model/UpdateUserResult.cc create mode 100644 emr/src/model/UpdateUserStatusRequest.cc create mode 100644 emr/src/model/UpdateUserStatusResult.cc create mode 100644 emr/src/model/UpdateWorkspaceRepoSettingRequest.cc create mode 100644 emr/src/model/UpdateWorkspaceRepoSettingResult.cc create mode 100644 emr/src/model/UpdateWorkspaceResourceSettingRequest.cc create mode 100644 emr/src/model/UpdateWorkspaceResourceSettingResult.cc create mode 100644 gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceResult.h create mode 100644 gpdb/src/model/UpgradeDBInstanceRequest.cc create mode 100644 gpdb/src/model/UpgradeDBInstanceResult.cc create mode 100644 green/include/alibabacloud/green/model/DescribeUserBizTypesRequest.h create mode 100644 green/include/alibabacloud/green/model/DescribeUserBizTypesResult.h create mode 100644 green/src/model/DescribeUserBizTypesRequest.cc create mode 100644 green/src/model/DescribeUserBizTypesResult.cc create mode 100644 ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/CreateFaceGroupResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DeleteFaceGroupResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/ImagePredictResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/RegisterFaceResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/SearchFaceResult.h create mode 100644 ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/UnregisterFaceResult.h create mode 100644 ivision/src/model/CreateFaceGroupRequest.cc create mode 100644 ivision/src/model/CreateFaceGroupResult.cc create mode 100644 ivision/src/model/DeleteFaceGroupRequest.cc create mode 100644 ivision/src/model/DeleteFaceGroupResult.cc create mode 100644 ivision/src/model/DescribeFaceGroupsRequest.cc create mode 100644 ivision/src/model/DescribeFaceGroupsResult.cc create mode 100644 ivision/src/model/ImagePredictRequest.cc create mode 100644 ivision/src/model/ImagePredictResult.cc create mode 100644 ivision/src/model/RegisterFaceRequest.cc create mode 100644 ivision/src/model/RegisterFaceResult.cc create mode 100644 ivision/src/model/SearchFaceRequest.cc create mode 100644 ivision/src/model/SearchFaceResult.cc create mode 100644 ivision/src/model/UnregisterFaceRequest.cc create mode 100644 ivision/src/model/UnregisterFaceResult.cc create mode 100644 jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineResult.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineRequest.h create mode 100644 jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineResult.h create mode 100644 jarvis/src/model/CreateIpWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/CreateIpWhiteBaselineResult.cc create mode 100644 jarvis/src/model/CreateUidWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/CreateUidWhiteBaselineResult.cc create mode 100644 jarvis/src/model/DeleteIpWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/DeleteIpWhiteBaselineResult.cc create mode 100644 jarvis/src/model/DeleteUidWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/DeleteUidWhiteBaselineResult.cc create mode 100644 jarvis/src/model/DeleteWhiteListConditionalRequest.cc create mode 100644 jarvis/src/model/DeleteWhiteListConditionalResult.cc create mode 100644 jarvis/src/model/DeleteWhiteListDbItemConditionalRequest.cc create mode 100644 jarvis/src/model/DeleteWhiteListDbItemConditionalResult.cc create mode 100644 jarvis/src/model/DescribeIpWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/DescribeIpWhiteBaselineResult.cc create mode 100644 jarvis/src/model/DescribeUidWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/DescribeUidWhiteBaselineResult.cc create mode 100644 jarvis/src/model/ModifyIpWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/ModifyIpWhiteBaselineResult.cc create mode 100644 jarvis/src/model/ModifyUidWhiteBaselineRequest.cc create mode 100644 jarvis/src/model/ModifyUidWhiteBaselineResult.cc create mode 100644 kms/include/alibabacloud/kms/model/DescribeServiceRequest.h create mode 100644 kms/include/alibabacloud/kms/model/DescribeServiceResult.h create mode 100644 kms/src/model/DescribeServiceRequest.cc create mode 100644 kms/src/model/DescribeServiceResult.cc create mode 100644 linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupRequest.h create mode 100644 linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupResult.h create mode 100644 linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupRequest.h create mode 100644 linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupResult.h create mode 100644 linkface/src/model/DeleteDeviceAllGroupRequest.cc create mode 100644 linkface/src/model/DeleteDeviceAllGroupResult.cc create mode 100644 linkface/src/model/DeleteDeviceGroupRequest.cc create mode 100644 linkface/src/model/DeleteDeviceGroupResult.cc create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.h create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataResult.h create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumRequest.h create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumResult.h create mode 100644 live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc create mode 100644 live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc create mode 100644 live/src/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.cc create mode 100644 live/src/model/DescribeLiveDomainFrameRateAndBitRateDataResult.cc create mode 100644 live/src/model/DescribeLiveDomainOnlineUserNumRequest.cc create mode 100644 live/src/model/DescribeLiveDomainOnlineUserNumResult.cc create mode 100644 mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h create mode 100644 mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h create mode 100644 mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h create mode 100644 mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h create mode 100644 mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h create mode 100644 mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h create mode 100644 mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h create mode 100644 mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h create mode 100644 mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h create mode 100644 mts/include/alibabacloud/mts/model/SubmitFpCompareJobResult.h create mode 100644 mts/src/model/DescribeMtsUserResourcePackageRequest.cc create mode 100644 mts/src/model/DescribeMtsUserResourcePackageResult.cc create mode 100644 mts/src/model/QueryFpCompareJobListRequest.cc create mode 100644 mts/src/model/QueryFpCompareJobListResult.cc create mode 100644 mts/src/model/QueryMediaCensorJobListRequest.cc create mode 100644 mts/src/model/QueryMediaCensorJobListResult.cc create mode 100644 mts/src/model/SubmitBeautifyJobsRequest.cc create mode 100644 mts/src/model/SubmitBeautifyJobsResult.cc create mode 100644 mts/src/model/SubmitFpCompareJobRequest.cc create mode 100644 mts/src/model/SubmitFpCompareJobResult.cc create mode 100644 polardb/CMakeLists.txt create mode 100644 polardb/include/alibabacloud/polardb/PolardbClient.h create mode 100644 polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h create mode 100644 polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h create mode 100644 polardb/src/PolardbClient.cc create mode 100644 polardb/src/model/AbortDBClusterMigrationRequest.cc create mode 100644 polardb/src/model/AbortDBClusterMigrationResult.cc create mode 100644 polardb/src/model/ContinueDBClusterMigrationRequest.cc create mode 100644 polardb/src/model/ContinueDBClusterMigrationResult.cc create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceRequest.h create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceResult.h create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceRequest.h create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceResult.h create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesRequest.h create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesResult.h create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsRequest.h create mode 100644 r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsResult.h create mode 100644 r-kvstore/src/model/CreateShardingInstanceRequest.cc create mode 100644 r-kvstore/src/model/CreateShardingInstanceResult.cc create mode 100644 r-kvstore/src/model/DescribeAvailableResourceRequest.cc create mode 100644 r-kvstore/src/model/DescribeAvailableResourceResult.cc create mode 100644 r-kvstore/src/model/DescribeShardingInstancesRequest.cc create mode 100644 r-kvstore/src/model/DescribeShardingInstancesResult.cc create mode 100644 r-kvstore/src/model/DescribeTagsRequest.cc create mode 100644 r-kvstore/src/model/DescribeTagsResult.cc create mode 100644 rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceRequest.h create mode 100644 rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceResult.h create mode 100644 rds/include/alibabacloud/rds/model/CreateDdrInstanceRequest.h create mode 100644 rds/include/alibabacloud/rds/model/CreateDdrInstanceResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerResult.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyRequest.h create mode 100644 rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyResult.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeRequest.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeResult.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerRequest.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerResult.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyRequest.h create mode 100644 rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyResult.h create mode 100644 rds/src/model/CheckCreateDdrDBInstanceRequest.cc create mode 100644 rds/src/model/CheckCreateDdrDBInstanceResult.cc create mode 100644 rds/src/model/CreateDdrInstanceRequest.cc create mode 100644 rds/src/model/CreateDdrInstanceResult.cc create mode 100644 rds/src/model/DescribeAvailableCrossRegionRequest.cc create mode 100644 rds/src/model/DescribeAvailableCrossRegionResult.cc create mode 100644 rds/src/model/DescribeAvailableRecoveryTimeRequest.cc create mode 100644 rds/src/model/DescribeAvailableRecoveryTimeResult.cc create mode 100644 rds/src/model/DescribeCrossRegionBackupDBInstanceRequest.cc create mode 100644 rds/src/model/DescribeCrossRegionBackupDBInstanceResult.cc create mode 100644 rds/src/model/DescribeCrossRegionBackupsRequest.cc create mode 100644 rds/src/model/DescribeCrossRegionBackupsResult.cc create mode 100644 rds/src/model/DescribeCrossRegionLogBackupFilesRequest.cc create mode 100644 rds/src/model/DescribeCrossRegionLogBackupFilesResult.cc create mode 100644 rds/src/model/DescribeDBInstanceIpHostnameRequest.cc create mode 100644 rds/src/model/DescribeDBInstanceIpHostnameResult.cc create mode 100644 rds/src/model/DescribeDTCSecurityIpHostsForSQLServerRequest.cc create mode 100644 rds/src/model/DescribeDTCSecurityIpHostsForSQLServerResult.cc create mode 100644 rds/src/model/DescribeInstanceCrossBackupPolicyRequest.cc create mode 100644 rds/src/model/DescribeInstanceCrossBackupPolicyResult.cc create mode 100644 rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.cc create mode 100644 rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.cc create mode 100644 rds/src/model/ModifyDBInstancePayTypeRequest.cc create mode 100644 rds/src/model/ModifyDBInstancePayTypeResult.cc create mode 100644 rds/src/model/ModifyDTCSecurityIpHostsForSQLServerRequest.cc create mode 100644 rds/src/model/ModifyDTCSecurityIpHostsForSQLServerResult.cc create mode 100644 rds/src/model/ModifyInstanceCrossBackupPolicyRequest.cc create mode 100644 rds/src/model/ModifyInstanceCrossBackupPolicyResult.cc create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h create mode 100644 rtc/src/model/DescribeChannelParticipantsRequest.cc create mode 100644 rtc/src/model/DescribeChannelParticipantsResult.cc create mode 100644 rtc/src/model/DescribeRtcChannelCntDataRequest.cc create mode 100644 rtc/src/model/DescribeRtcChannelCntDataResult.cc create mode 100644 rtc/src/model/DescribeRtcChannelListRequest.cc create mode 100644 rtc/src/model/DescribeRtcChannelListResult.cc create mode 100644 rtc/src/model/DescribeRtcChannelMetricRequest.cc create mode 100644 rtc/src/model/DescribeRtcChannelMetricResult.cc create mode 100644 rtc/src/model/DescribeRtcChannelUserListRequest.cc create mode 100644 rtc/src/model/DescribeRtcChannelUserListResult.cc create mode 100644 rtc/src/model/DescribeRtcDurationDataRequest.cc create mode 100644 rtc/src/model/DescribeRtcDurationDataResult.cc create mode 100644 rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc create mode 100644 rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc create mode 100644 rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc create mode 100644 rtc/src/model/DescribeRtcPeakUserCntDataResult.cc create mode 100644 rtc/src/model/DescribeRtcUserCntDataRequest.cc create mode 100644 rtc/src/model/DescribeRtcUserCntDataResult.cc create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultResult.h create mode 100644 sas/src/model/DescribeRiskCheckItemResultRequest.cc create mode 100644 sas/src/model/DescribeRiskCheckItemResultResult.cc create mode 100644 scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsRequest.h create mode 100644 scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsResult.h create mode 100644 scdn/src/model/BatchSetScdnDomainConfigsRequest.cc create mode 100644 scdn/src/model/BatchSetScdnDomainConfigsResult.cc create mode 100644 slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h create mode 100644 slb/src/model/DescribeAvailableResourceRequest.cc create mode 100644 slb/src/model/DescribeAvailableResourceResult.cc create mode 100644 slb/src/model/SetLoadBalancerDeleteProtectionRequest.cc create mode 100644 slb/src/model/SetLoadBalancerDeleteProtectionResult.cc create mode 100644 smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/ActiveFlowLogResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/AddDnatEntryResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/AddSnatEntryResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/AssociateFlowLogResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/AssociateQosRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/AssociateQosResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/BindVbrRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/BindVbrResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateQosRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/CreateQosResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeactiveFlowLogResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteDnatEntryResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteFlowLogResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteQosCarResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteQosPolicyResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteQosRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteQosResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DeleteSnatEntryResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeQosesResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DisassociateFlowLogResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/DisassociateQosResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyQosCarResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyQosPolicyResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyQosRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifyQosResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnResult.h create mode 100644 smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.h create mode 100644 smartag/include/alibabacloud/smartag/model/UnbindVbrResult.h create mode 100644 smartag/src/model/ActiveFlowLogRequest.cc create mode 100644 smartag/src/model/ActiveFlowLogResult.cc create mode 100644 smartag/src/model/AddDnatEntryRequest.cc create mode 100644 smartag/src/model/AddDnatEntryResult.cc create mode 100644 smartag/src/model/AddSnatEntryRequest.cc create mode 100644 smartag/src/model/AddSnatEntryResult.cc create mode 100644 smartag/src/model/AssociateFlowLogRequest.cc create mode 100644 smartag/src/model/AssociateFlowLogResult.cc create mode 100644 smartag/src/model/AssociateQosRequest.cc create mode 100644 smartag/src/model/AssociateQosResult.cc create mode 100644 smartag/src/model/BindVbrRequest.cc create mode 100644 smartag/src/model/BindVbrResult.cc create mode 100644 smartag/src/model/CreateFlowLogRequest.cc create mode 100644 smartag/src/model/CreateFlowLogResult.cc create mode 100644 smartag/src/model/CreateQosCarRequest.cc create mode 100644 smartag/src/model/CreateQosCarResult.cc create mode 100644 smartag/src/model/CreateQosPolicyRequest.cc create mode 100644 smartag/src/model/CreateQosPolicyResult.cc create mode 100644 smartag/src/model/CreateQosRequest.cc create mode 100644 smartag/src/model/CreateQosResult.cc create mode 100644 smartag/src/model/DeactiveFlowLogRequest.cc create mode 100644 smartag/src/model/DeactiveFlowLogResult.cc create mode 100644 smartag/src/model/DeleteDnatEntryRequest.cc create mode 100644 smartag/src/model/DeleteDnatEntryResult.cc create mode 100644 smartag/src/model/DeleteFlowLogRequest.cc create mode 100644 smartag/src/model/DeleteFlowLogResult.cc create mode 100644 smartag/src/model/DeleteQosCarRequest.cc create mode 100644 smartag/src/model/DeleteQosCarResult.cc create mode 100644 smartag/src/model/DeleteQosPolicyRequest.cc create mode 100644 smartag/src/model/DeleteQosPolicyResult.cc create mode 100644 smartag/src/model/DeleteQosRequest.cc create mode 100644 smartag/src/model/DeleteQosResult.cc create mode 100644 smartag/src/model/DeleteSnatEntryRequest.cc create mode 100644 smartag/src/model/DeleteSnatEntryResult.cc create mode 100644 smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.cc create mode 100644 smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc create mode 100644 smartag/src/model/DescribeDnatEntriesRequest.cc create mode 100644 smartag/src/model/DescribeDnatEntriesResult.cc create mode 100644 smartag/src/model/DescribeFlowLogSagsRequest.cc create mode 100644 smartag/src/model/DescribeFlowLogSagsResult.cc create mode 100644 smartag/src/model/DescribeFlowLogsRequest.cc create mode 100644 smartag/src/model/DescribeFlowLogsResult.cc create mode 100644 smartag/src/model/DescribeGrantSagRulesRequest.cc create mode 100644 smartag/src/model/DescribeGrantSagRulesResult.cc create mode 100644 smartag/src/model/DescribeQosCarsRequest.cc create mode 100644 smartag/src/model/DescribeQosCarsResult.cc create mode 100644 smartag/src/model/DescribeQosPoliciesRequest.cc create mode 100644 smartag/src/model/DescribeQosPoliciesResult.cc create mode 100644 smartag/src/model/DescribeQosesRequest.cc create mode 100644 smartag/src/model/DescribeQosesResult.cc create mode 100644 smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.cc create mode 100644 smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc create mode 100644 smartag/src/model/DescribeSmartAccessGatewayRoutesRequest.cc create mode 100644 smartag/src/model/DescribeSmartAccessGatewayRoutesResult.cc create mode 100644 smartag/src/model/DescribeSnatEntriesRequest.cc create mode 100644 smartag/src/model/DescribeSnatEntriesResult.cc create mode 100644 smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc create mode 100644 smartag/src/model/DescribeUnbindFlowLogSagsResult.cc create mode 100644 smartag/src/model/DisableSmartAccessGatewayUserRequest.cc create mode 100644 smartag/src/model/DisableSmartAccessGatewayUserResult.cc create mode 100644 smartag/src/model/DisassociateFlowLogRequest.cc create mode 100644 smartag/src/model/DisassociateFlowLogResult.cc create mode 100644 smartag/src/model/DisassociateQosRequest.cc create mode 100644 smartag/src/model/DisassociateQosResult.cc create mode 100644 smartag/src/model/EnableSmartAccessGatewayUserRequest.cc create mode 100644 smartag/src/model/EnableSmartAccessGatewayUserResult.cc create mode 100644 smartag/src/model/GrantSagInstanceToCcnRequest.cc create mode 100644 smartag/src/model/GrantSagInstanceToCcnResult.cc create mode 100644 smartag/src/model/ModifyFlowLogAttributeRequest.cc create mode 100644 smartag/src/model/ModifyFlowLogAttributeResult.cc create mode 100644 smartag/src/model/ModifyQosCarRequest.cc create mode 100644 smartag/src/model/ModifyQosCarResult.cc create mode 100644 smartag/src/model/ModifyQosPolicyRequest.cc create mode 100644 smartag/src/model/ModifyQosPolicyResult.cc create mode 100644 smartag/src/model/ModifyQosRequest.cc create mode 100644 smartag/src/model/ModifyQosResult.cc create mode 100644 smartag/src/model/ModifySagRemoteAccessRequest.cc create mode 100644 smartag/src/model/ModifySagRemoteAccessResult.cc create mode 100644 smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc create mode 100644 smartag/src/model/ModifySmartAccessGatewayUpBandwidthResult.cc create mode 100644 smartag/src/model/RevokeSagInstanceFromCcnRequest.cc create mode 100644 smartag/src/model/RevokeSagInstanceFromCcnResult.cc create mode 100644 smartag/src/model/UnbindVbrRequest.cc create mode 100644 smartag/src/model/UnbindVbrResult.cc create mode 100644 sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLRequest.h create mode 100644 sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLResult.h create mode 100644 sts/src/model/AssumeRoleWithSAMLRequest.cc create mode 100644 sts/src/model/AssumeRoleWithSAMLResult.cc create mode 100644 trademark/include/alibabacloud/trademark/model/CreateIntentionOrderRequest.h create mode 100644 trademark/include/alibabacloud/trademark/model/CreateIntentionOrderResult.h create mode 100644 trademark/include/alibabacloud/trademark/model/QueryIntentionDetailRequest.h create mode 100644 trademark/include/alibabacloud/trademark/model/QueryIntentionDetailResult.h create mode 100644 trademark/include/alibabacloud/trademark/model/QueryIntentionListRequest.h create mode 100644 trademark/include/alibabacloud/trademark/model/QueryIntentionListResult.h create mode 100644 trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionRequest.h create mode 100644 trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionResult.h create mode 100644 trademark/include/alibabacloud/trademark/model/WriteCommunicationLogRequest.h create mode 100644 trademark/include/alibabacloud/trademark/model/WriteCommunicationLogResult.h create mode 100644 trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogRequest.h create mode 100644 trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogResult.h create mode 100644 trademark/src/model/CreateIntentionOrderRequest.cc create mode 100644 trademark/src/model/CreateIntentionOrderResult.cc create mode 100644 trademark/src/model/QueryIntentionDetailRequest.cc create mode 100644 trademark/src/model/QueryIntentionDetailResult.cc create mode 100644 trademark/src/model/QueryIntentionListRequest.cc create mode 100644 trademark/src/model/QueryIntentionListResult.cc create mode 100644 trademark/src/model/QueryTradeMarkApplicationsByIntentionRequest.cc create mode 100644 trademark/src/model/QueryTradeMarkApplicationsByIntentionResult.cc create mode 100644 trademark/src/model/WriteCommunicationLogRequest.cc create mode 100644 trademark/src/model/WriteCommunicationLogResult.cc create mode 100644 trademark/src/model/WriteIntentionCommunicationLogRequest.cc create mode 100644 trademark/src/model/WriteIntentionCommunicationLogResult.cc create mode 100644 vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyRequest.h create mode 100644 vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyResult.h create mode 100644 vod/src/model/ModifyVodDomainSchdmByPropertyRequest.cc create mode 100644 vod/src/model/ModifyVodDomainSchdmByPropertyResult.cc create mode 100644 vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOAResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/AssociateNetworkAclResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOAResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteExpressConnectResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteNetworkAclResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/TagResourcesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/UnTagResourcesResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclResult.h create mode 100644 vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h create mode 100644 vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesResult.h create mode 100644 vpc/src/model/ApplyPhysicalConnectionLOARequest.cc create mode 100644 vpc/src/model/ApplyPhysicalConnectionLOAResult.cc create mode 100644 vpc/src/model/AssociateNetworkAclRequest.cc create mode 100644 vpc/src/model/AssociateNetworkAclResult.cc create mode 100644 vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc create mode 100644 vpc/src/model/CancelCommonBandwidthPackageIpBandwidthResult.cc create mode 100644 vpc/src/model/CompletePhysicalConnectionLOARequest.cc create mode 100644 vpc/src/model/CompletePhysicalConnectionLOAResult.cc create mode 100644 vpc/src/model/CopyNetworkAclEntriesRequest.cc create mode 100644 vpc/src/model/CopyNetworkAclEntriesResult.cc create mode 100644 vpc/src/model/CreateExpressCloudConnectionRequest.cc create mode 100644 vpc/src/model/CreateExpressCloudConnectionResult.cc create mode 100644 vpc/src/model/CreateNetworkAclRequest.cc create mode 100644 vpc/src/model/CreateNetworkAclResult.cc create mode 100644 vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc create mode 100644 vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc create mode 100644 vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc create mode 100644 vpc/src/model/CreatePhysicalConnectionSetupOrderResult.cc create mode 100644 vpc/src/model/CreateVpnPbrRouteEntryRequest.cc create mode 100644 vpc/src/model/CreateVpnPbrRouteEntryResult.cc create mode 100644 vpc/src/model/CreateVpnRouteEntryRequest.cc create mode 100644 vpc/src/model/CreateVpnRouteEntryResult.cc create mode 100644 vpc/src/model/DeleteExpressConnectRequest.cc create mode 100644 vpc/src/model/DeleteExpressConnectResult.cc create mode 100644 vpc/src/model/DeleteNetworkAclRequest.cc create mode 100644 vpc/src/model/DeleteNetworkAclResult.cc create mode 100644 vpc/src/model/DeleteVpnPbrRouteEntryRequest.cc create mode 100644 vpc/src/model/DeleteVpnPbrRouteEntryResult.cc create mode 100644 vpc/src/model/DeleteVpnRouteEntryRequest.cc create mode 100644 vpc/src/model/DeleteVpnRouteEntryResult.cc create mode 100644 vpc/src/model/DescribeEipGatewayInfoRequest.cc create mode 100644 vpc/src/model/DescribeEipGatewayInfoResult.cc create mode 100644 vpc/src/model/DescribeExpressCloudConnectionsRequest.cc create mode 100644 vpc/src/model/DescribeExpressCloudConnectionsResult.cc create mode 100644 vpc/src/model/DescribeNetworkAclAttributesRequest.cc create mode 100644 vpc/src/model/DescribeNetworkAclAttributesResult.cc create mode 100644 vpc/src/model/DescribeNetworkAclsRequest.cc create mode 100644 vpc/src/model/DescribeNetworkAclsResult.cc create mode 100644 vpc/src/model/DescribePhysicalConnectionLOARequest.cc create mode 100644 vpc/src/model/DescribePhysicalConnectionLOAResult.cc create mode 100644 vpc/src/model/DescribeRouteEntryListRequest.cc create mode 100644 vpc/src/model/DescribeRouteEntryListResult.cc create mode 100644 vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc create mode 100644 vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc create mode 100644 vpc/src/model/DescribeVpnRouteEntriesRequest.cc create mode 100644 vpc/src/model/DescribeVpnRouteEntriesResult.cc create mode 100644 vpc/src/model/DescribeVpnSslServerLogsRequest.cc create mode 100644 vpc/src/model/DescribeVpnSslServerLogsResult.cc create mode 100644 vpc/src/model/ListTagResourcesRequest.cc create mode 100644 vpc/src/model/ListTagResourcesResult.cc create mode 100644 vpc/src/model/ModifyBgpPeerAttributeRequest.cc create mode 100644 vpc/src/model/ModifyBgpPeerAttributeResult.cc create mode 100644 vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc create mode 100644 vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthResult.cc create mode 100644 vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc create mode 100644 vpc/src/model/ModifyExpressCloudConnectionAttributeResult.cc create mode 100644 vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.cc create mode 100644 vpc/src/model/ModifyExpressCloudConnectionBandwidthResult.cc create mode 100644 vpc/src/model/ModifyNetworkAclAttributesRequest.cc create mode 100644 vpc/src/model/ModifyNetworkAclAttributesResult.cc create mode 100644 vpc/src/model/ModifyVpnPbrRouteEntryWeightRequest.cc create mode 100644 vpc/src/model/ModifyVpnPbrRouteEntryWeightResult.cc create mode 100644 vpc/src/model/ModifyVpnRouteEntryWeightRequest.cc create mode 100644 vpc/src/model/ModifyVpnRouteEntryWeightResult.cc create mode 100644 vpc/src/model/PublishVpnRouteEntryRequest.cc create mode 100644 vpc/src/model/PublishVpnRouteEntryResult.cc create mode 100644 vpc/src/model/TagResourcesRequest.cc create mode 100644 vpc/src/model/TagResourcesResult.cc create mode 100644 vpc/src/model/UnTagResourcesRequest.cc create mode 100644 vpc/src/model/UnTagResourcesResult.cc create mode 100644 vpc/src/model/UnassociateNetworkAclRequest.cc create mode 100644 vpc/src/model/UnassociateNetworkAclResult.cc create mode 100644 vpc/src/model/UpdateNetworkAclEntriesRequest.cc create mode 100644 vpc/src/model/UpdateNetworkAclEntriesResult.cc diff --git a/aegis/CMakeLists.txt b/aegis/CMakeLists.txt index edfaa02ff..e61a1a09c 100644 --- a/aegis/CMakeLists.txt +++ b/aegis/CMakeLists.txt @@ -27,12 +27,16 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeCanUpgradeSasResult.h include/alibabacloud/aegis/model/DescribeTraceInfoNodeRequest.h include/alibabacloud/aegis/model/DescribeTraceInfoNodeResult.h + include/alibabacloud/aegis/model/SaveCustomizeReportConfigRequest.h + include/alibabacloud/aegis/model/SaveCustomizeReportConfigResult.h + include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskRequest.h + include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskResult.h include/alibabacloud/aegis/model/DescribeScreenAttackAnalysisDataRequest.h include/alibabacloud/aegis/model/DescribeScreenAttackAnalysisDataResult.h - include/alibabacloud/aegis/model/DescribeAutoDelConfigRequest.h - include/alibabacloud/aegis/model/DescribeAutoDelConfigResult.h include/alibabacloud/aegis/model/DescribeVulListRequest.h include/alibabacloud/aegis/model/DescribeVulListResult.h + include/alibabacloud/aegis/model/DescribeAutoDelConfigRequest.h + include/alibabacloud/aegis/model/DescribeAutoDelConfigResult.h include/alibabacloud/aegis/model/ModifyWebLockUpdateConfigRequest.h include/alibabacloud/aegis/model/ModifyWebLockUpdateConfigResult.h include/alibabacloud/aegis/model/DescribeVulnerabilitySummaryRequest.h @@ -49,6 +53,10 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/ExportWarningResult.h include/alibabacloud/aegis/model/DescribeEcsStsStatusRequest.h include/alibabacloud/aegis/model/DescribeEcsStsStatusResult.h + include/alibabacloud/aegis/model/DescribeCustomizeReportListRequest.h + include/alibabacloud/aegis/model/DescribeCustomizeReportListResult.h + include/alibabacloud/aegis/model/DescribeSupervisonInfoRequest.h + include/alibabacloud/aegis/model/DescribeSupervisonInfoResult.h include/alibabacloud/aegis/model/UpdateWhiteListStrategyRelationRequest.h include/alibabacloud/aegis/model/UpdateWhiteListStrategyRelationResult.h include/alibabacloud/aegis/model/DeleteStrategyRequest.h @@ -59,30 +67,44 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/OpenSasTrialResult.h include/alibabacloud/aegis/model/ModifyVulLevelRequest.h include/alibabacloud/aegis/model/ModifyVulLevelResult.h + include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoRequest.h + include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoResult.h include/alibabacloud/aegis/model/ModifyVulTargetRequest.h include/alibabacloud/aegis/model/ModifyVulTargetResult.h include/alibabacloud/aegis/model/ModifyBatchIgnoreVulRequest.h include/alibabacloud/aegis/model/ModifyBatchIgnoreVulResult.h - include/alibabacloud/aegis/model/DescribeSummaryInfoRequest.h - include/alibabacloud/aegis/model/DescribeSummaryInfoResult.h include/alibabacloud/aegis/model/DescribeStrategyProcessRequest.h include/alibabacloud/aegis/model/DescribeStrategyProcessResult.h + include/alibabacloud/aegis/model/DescribeSummaryInfoRequest.h + include/alibabacloud/aegis/model/DescribeSummaryInfoResult.h include/alibabacloud/aegis/model/DescribeSuspTrendStatisticsRequest.h include/alibabacloud/aegis/model/DescribeSuspTrendStatisticsResult.h include/alibabacloud/aegis/model/DescribeDataSourceRequest.h include/alibabacloud/aegis/model/DescribeDataSourceResult.h include/alibabacloud/aegis/model/DescribeResultListRequest.h include/alibabacloud/aegis/model/DescribeResultListResult.h + include/alibabacloud/aegis/model/DescribeGrayFuncRequest.h + include/alibabacloud/aegis/model/DescribeGrayFuncResult.h + include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataRequest.h + include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataResult.h + include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultRequest.h + include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultResult.h include/alibabacloud/aegis/model/DownloadLogRequest.h include/alibabacloud/aegis/model/DownloadLogResult.h include/alibabacloud/aegis/model/DescribeTargetConfigRequest.h include/alibabacloud/aegis/model/DescribeTargetConfigResult.h + include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoRequest.h + include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoResult.h + include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountRequest.h + include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountResult.h include/alibabacloud/aegis/model/DescribeVulNumStatisticsRequest.h include/alibabacloud/aegis/model/DescribeVulNumStatisticsResult.h include/alibabacloud/aegis/model/DescribeLogInfoRequest.h include/alibabacloud/aegis/model/DescribeLogInfoResult.h include/alibabacloud/aegis/model/GetAccountStatisticsRequest.h include/alibabacloud/aegis/model/GetAccountStatisticsResult.h + include/alibabacloud/aegis/model/DescribeScreenEmerRiskRequest.h + include/alibabacloud/aegis/model/DescribeScreenEmerRiskResult.h include/alibabacloud/aegis/model/DescribeUuidConfigRequest.h include/alibabacloud/aegis/model/DescribeUuidConfigResult.h include/alibabacloud/aegis/model/DescribeScreenHostStatisticsRequest.h @@ -99,26 +121,32 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/ModifySasAssetStatisticsColumnResult.h include/alibabacloud/aegis/model/DescribeTraceInfoNodeListRequest.h include/alibabacloud/aegis/model/DescribeTraceInfoNodeListResult.h - include/alibabacloud/aegis/model/DescribeAnalysisSlsIndexRequest.h - include/alibabacloud/aegis/model/DescribeAnalysisSlsIndexResult.h include/alibabacloud/aegis/model/ModifyWebLockCreateConfigRequest.h include/alibabacloud/aegis/model/ModifyWebLockCreateConfigResult.h + include/alibabacloud/aegis/model/DescribeAnalysisSlsIndexRequest.h + include/alibabacloud/aegis/model/DescribeAnalysisSlsIndexResult.h include/alibabacloud/aegis/model/DeleteRuleGroupRequest.h include/alibabacloud/aegis/model/DeleteRuleGroupResult.h + include/alibabacloud/aegis/model/DescribeScreenDataMapRequest.h + include/alibabacloud/aegis/model/DescribeScreenDataMapResult.h include/alibabacloud/aegis/model/DescribeStatisticsRequest.h include/alibabacloud/aegis/model/DescribeStatisticsResult.h include/alibabacloud/aegis/model/DescribeAlarmEventDetailRequest.h include/alibabacloud/aegis/model/DescribeAlarmEventDetailResult.h include/alibabacloud/aegis/model/CreateSuspiciousExportRequest.h include/alibabacloud/aegis/model/CreateSuspiciousExportResult.h + include/alibabacloud/aegis/model/DescribeWebshellListRequest.h + include/alibabacloud/aegis/model/DescribeWebshellListResult.h + include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultRequest.h + include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultResult.h include/alibabacloud/aegis/model/OperateVulRequest.h include/alibabacloud/aegis/model/OperateVulResult.h include/alibabacloud/aegis/model/GetCrackStatisticsRequest.h include/alibabacloud/aegis/model/GetCrackStatisticsResult.h - include/alibabacloud/aegis/model/DescribeConcernNecessityRequest.h - include/alibabacloud/aegis/model/DescribeConcernNecessityResult.h include/alibabacloud/aegis/model/OperateAgentClientInstallRequest.h include/alibabacloud/aegis/model/OperateAgentClientInstallResult.h + include/alibabacloud/aegis/model/DescribeConcernNecessityRequest.h + include/alibabacloud/aegis/model/DescribeConcernNecessityResult.h include/alibabacloud/aegis/model/DescribeScreenScoreThreadRequest.h include/alibabacloud/aegis/model/DescribeScreenScoreThreadResult.h include/alibabacloud/aegis/model/DescribeBuySummaryRequest.h @@ -129,14 +157,18 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeSuspiciousUUIDConfigResult.h include/alibabacloud/aegis/model/DescribeTopicListRequest.h include/alibabacloud/aegis/model/DescribeTopicListResult.h - include/alibabacloud/aegis/model/DescribeAssetDetailByUuidRequest.h - include/alibabacloud/aegis/model/DescribeAssetDetailByUuidResult.h include/alibabacloud/aegis/model/DescribeScreenVersionConfigRequest.h include/alibabacloud/aegis/model/DescribeScreenVersionConfigResult.h + include/alibabacloud/aegis/model/DescribeAssetDetailByUuidRequest.h + include/alibabacloud/aegis/model/DescribeAssetDetailByUuidResult.h + include/alibabacloud/aegis/model/CreateScreenSettingRequest.h + include/alibabacloud/aegis/model/CreateScreenSettingResult.h include/alibabacloud/aegis/model/DescribeVulExportInfoRequest.h include/alibabacloud/aegis/model/DescribeVulExportInfoResult.h include/alibabacloud/aegis/model/DeleteRuleRequest.h include/alibabacloud/aegis/model/DeleteRuleResult.h + include/alibabacloud/aegis/model/DescribeChartListRequest.h + include/alibabacloud/aegis/model/DescribeChartListResult.h include/alibabacloud/aegis/model/DescribeSuspEventDetailRequest.h include/alibabacloud/aegis/model/DescribeSuspEventDetailResult.h include/alibabacloud/aegis/model/DescribeEventLevelCountRequest.h @@ -155,20 +187,26 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeVulDetailsResult.h include/alibabacloud/aegis/model/DescribeLogItemsRequest.h include/alibabacloud/aegis/model/DescribeLogItemsResult.h - include/alibabacloud/aegis/model/DescribeWebLockEventsRequest.h - include/alibabacloud/aegis/model/DescribeWebLockEventsResult.h include/alibabacloud/aegis/model/ExecStrategyRequest.h include/alibabacloud/aegis/model/ExecStrategyResult.h + include/alibabacloud/aegis/model/DescribeWebLockEventsRequest.h + include/alibabacloud/aegis/model/DescribeWebLockEventsResult.h include/alibabacloud/aegis/model/DescribeSuspEventExportInfoRequest.h include/alibabacloud/aegis/model/DescribeSuspEventExportInfoResult.h include/alibabacloud/aegis/model/OperationSuspEventsRequest.h include/alibabacloud/aegis/model/OperationSuspEventsResult.h include/alibabacloud/aegis/model/DescribeSasAssetStatisticsRequest.h include/alibabacloud/aegis/model/DescribeSasAssetStatisticsResult.h + include/alibabacloud/aegis/model/SendCustomizeReportRequest.h + include/alibabacloud/aegis/model/SendCustomizeReportResult.h include/alibabacloud/aegis/model/DescribeDefenceThreadRequest.h include/alibabacloud/aegis/model/DescribeDefenceThreadResult.h + include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowRequest.h + include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowResult.h include/alibabacloud/aegis/model/CreateVulWhitelistRequest.h include/alibabacloud/aegis/model/CreateVulWhitelistResult.h + include/alibabacloud/aegis/model/DescribeLatestActionsRequest.h + include/alibabacloud/aegis/model/DescribeLatestActionsResult.h include/alibabacloud/aegis/model/ModifyConcernNecessityRequest.h include/alibabacloud/aegis/model/ModifyConcernNecessityResult.h include/alibabacloud/aegis/model/GetStatisticsByUuidRequest.h @@ -177,10 +215,16 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/ModifyVulConfigResult.h include/alibabacloud/aegis/model/GetStatisticsRequest.h include/alibabacloud/aegis/model/GetStatisticsResult.h - include/alibabacloud/aegis/model/DescribesummaryRequest.h - include/alibabacloud/aegis/model/DescribesummaryResult.h include/alibabacloud/aegis/model/DescribeSuspEventsRequest.h include/alibabacloud/aegis/model/DescribeSuspEventsResult.h + include/alibabacloud/aegis/model/DescribesummaryRequest.h + include/alibabacloud/aegis/model/DescribesummaryResult.h + include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealRequest.h + include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealResult.h + include/alibabacloud/aegis/model/DescribeCheckWarningCountRequest.h + include/alibabacloud/aegis/model/DescribeCheckWarningCountResult.h + include/alibabacloud/aegis/model/CopyCustomizeReportConfigRequest.h + include/alibabacloud/aegis/model/CopyCustomizeReportConfigResult.h include/alibabacloud/aegis/model/CreateOrUpdateDataSourceRequest.h include/alibabacloud/aegis/model/CreateOrUpdateDataSourceResult.h include/alibabacloud/aegis/model/DescribeVulWhitelistRequest.h @@ -193,10 +237,10 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeWhiteListStrategyListResult.h include/alibabacloud/aegis/model/DescribeTraceInfoDetailRequest.h include/alibabacloud/aegis/model/DescribeTraceInfoDetailResult.h - include/alibabacloud/aegis/model/DescribeGroupListRequest.h - include/alibabacloud/aegis/model/DescribeGroupListResult.h include/alibabacloud/aegis/model/DescribeCanTrySasRequest.h include/alibabacloud/aegis/model/DescribeCanTrySasResult.h + include/alibabacloud/aegis/model/DescribeGroupListRequest.h + include/alibabacloud/aegis/model/DescribeGroupListResult.h include/alibabacloud/aegis/model/DescribeTargetRequest.h include/alibabacloud/aegis/model/DescribeTargetResult.h include/alibabacloud/aegis/model/DescribeWebshellRequest.h @@ -211,22 +255,36 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeWarningMachinesResult.h include/alibabacloud/aegis/model/ModifySearchConditionRequest.h include/alibabacloud/aegis/model/ModifySearchConditionResult.h + include/alibabacloud/aegis/model/DescribeScreenTitlesRequest.h + include/alibabacloud/aegis/model/DescribeScreenTitlesResult.h include/alibabacloud/aegis/model/DescribeWhiteListStrategyUuidCountRequest.h include/alibabacloud/aegis/model/DescribeWhiteListStrategyUuidCountResult.h + include/alibabacloud/aegis/model/DeleteCustomizeReportRequest.h + include/alibabacloud/aegis/model/DeleteCustomizeReportResult.h include/alibabacloud/aegis/model/DescribeGroupedVulRequest.h include/alibabacloud/aegis/model/DescribeGroupedVulResult.h include/alibabacloud/aegis/model/ModifyWebLockDeleteConfigRequest.h include/alibabacloud/aegis/model/ModifyWebLockDeleteConfigResult.h + include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunRequest.h + include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunResult.h + include/alibabacloud/aegis/model/CreateSuspEventNoteRequest.h + include/alibabacloud/aegis/model/CreateSuspEventNoteResult.h include/alibabacloud/aegis/model/CreateUserWhiteListRequest.h include/alibabacloud/aegis/model/CreateUserWhiteListResult.h include/alibabacloud/aegis/model/DescribeSecureSuggestionRequest.h include/alibabacloud/aegis/model/DescribeSecureSuggestionResult.h + include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailRequest.h + include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailResult.h + include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeRequest.h + include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeResult.h include/alibabacloud/aegis/model/DescribeSuspiciousOverallConfigRequest.h include/alibabacloud/aegis/model/DescribeSuspiciousOverallConfigResult.h - include/alibabacloud/aegis/model/DescribeAnalysisCurveRequest.h - include/alibabacloud/aegis/model/DescribeAnalysisCurveResult.h + include/alibabacloud/aegis/model/DescribeAccesskeyLeakListRequest.h + include/alibabacloud/aegis/model/DescribeAccesskeyLeakListResult.h include/alibabacloud/aegis/model/DescribeScreenAlarmEventListRequest.h include/alibabacloud/aegis/model/DescribeScreenAlarmEventListResult.h + include/alibabacloud/aegis/model/DescribeAnalysisCurveRequest.h + include/alibabacloud/aegis/model/DescribeAnalysisCurveResult.h include/alibabacloud/aegis/model/CreatScreenSettingRequest.h include/alibabacloud/aegis/model/CreatScreenSettingResult.h include/alibabacloud/aegis/model/DescribeAlarmEventListRequest.h @@ -249,10 +307,12 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeLogMetaResult.h include/alibabacloud/aegis/model/DescribeQuaraFileRequest.h include/alibabacloud/aegis/model/DescribeQuaraFileResult.h - include/alibabacloud/aegis/model/DescribeTotalStatisticsRequest.h - include/alibabacloud/aegis/model/DescribeTotalStatisticsResult.h + include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataRequest.h + include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataResult.h include/alibabacloud/aegis/model/DescribeWhiteListStrategyStatisticsRequest.h include/alibabacloud/aegis/model/DescribeWhiteListStrategyStatisticsResult.h + include/alibabacloud/aegis/model/DescribeTotalStatisticsRequest.h + include/alibabacloud/aegis/model/DescribeTotalStatisticsResult.h include/alibabacloud/aegis/model/AutoUpgradeToSasAdvancedVersionRequest.h include/alibabacloud/aegis/model/AutoUpgradeToSasAdvancedVersionResult.h include/alibabacloud/aegis/model/DescribeStratetyRequest.h @@ -261,12 +321,16 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeAnalysisStatisticsResult.h include/alibabacloud/aegis/model/DescribeWebLockConfigListRequest.h include/alibabacloud/aegis/model/DescribeWebLockConfigListResult.h + include/alibabacloud/aegis/model/DescribeVulStatisticsRequest.h + include/alibabacloud/aegis/model/DescribeVulStatisticsResult.h include/alibabacloud/aegis/model/ModifyAutoDelConfigRequest.h include/alibabacloud/aegis/model/ModifyAutoDelConfigResult.h - include/alibabacloud/aegis/model/DescribeUserSettingRequest.h - include/alibabacloud/aegis/model/DescribeUserSettingResult.h include/alibabacloud/aegis/model/DescribeVulBatchRequest.h include/alibabacloud/aegis/model/DescribeVulBatchResult.h + include/alibabacloud/aegis/model/DescribeUserSettingRequest.h + include/alibabacloud/aegis/model/DescribeUserSettingResult.h + include/alibabacloud/aegis/model/DescribeEntityListRequest.h + include/alibabacloud/aegis/model/DescribeEntityListResult.h include/alibabacloud/aegis/model/ReleaseInstanceRequest.h include/alibabacloud/aegis/model/ReleaseInstanceResult.h include/alibabacloud/aegis/model/DescribeVulLevelRequest.h @@ -281,6 +345,8 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/RenewInstanceResult.h include/alibabacloud/aegis/model/OperateResultRequest.h include/alibabacloud/aegis/model/OperateResultResult.h + include/alibabacloud/aegis/model/DescribeCustomizeReportChartListRequest.h + include/alibabacloud/aegis/model/DescribeCustomizeReportChartListResult.h include/alibabacloud/aegis/model/RollbackSuspEventQuaraFileRequest.h include/alibabacloud/aegis/model/RollbackSuspEventQuaraFileResult.h include/alibabacloud/aegis/model/DescribeLogstoreStorageRequest.h @@ -309,18 +375,22 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeGroupStructResult.h include/alibabacloud/aegis/model/DescribeRiskWhiteListRequest.h include/alibabacloud/aegis/model/DescribeRiskWhiteListResult.h + include/alibabacloud/aegis/model/OperationCustomizeReportChartRequest.h + include/alibabacloud/aegis/model/OperationCustomizeReportChartResult.h include/alibabacloud/aegis/model/ModifyAssetGroupRequest.h include/alibabacloud/aegis/model/ModifyAssetGroupResult.h + include/alibabacloud/aegis/model/DescribeVulRelatedProcessRequest.h + include/alibabacloud/aegis/model/DescribeVulRelatedProcessResult.h include/alibabacloud/aegis/model/DescribeSasLeftConditionRequest.h include/alibabacloud/aegis/model/DescribeSasLeftConditionResult.h include/alibabacloud/aegis/model/DescribeSasAssetStatisticsColumnRequest.h include/alibabacloud/aegis/model/DescribeSasAssetStatisticsColumnResult.h include/alibabacloud/aegis/model/CreateOrUpdateRuleRequest.h include/alibabacloud/aegis/model/CreateOrUpdateRuleResult.h - include/alibabacloud/aegis/model/ModifyLogMetaStatusRequest.h - include/alibabacloud/aegis/model/ModifyLogMetaStatusResult.h include/alibabacloud/aegis/model/DescribeYesterdayStatisticsRequest.h include/alibabacloud/aegis/model/DescribeYesterdayStatisticsResult.h + include/alibabacloud/aegis/model/ModifyLogMetaStatusRequest.h + include/alibabacloud/aegis/model/ModifyLogMetaStatusResult.h include/alibabacloud/aegis/model/DescribeSuspiciousExportInfoRequest.h include/alibabacloud/aegis/model/DescribeSuspiciousExportInfoResult.h include/alibabacloud/aegis/model/DeleteScreenSettingRequest.h @@ -347,28 +417,34 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/TransformLeakageResult.h include/alibabacloud/aegis/model/DescribeAssetListRequest.h include/alibabacloud/aegis/model/DescribeAssetListResult.h - include/alibabacloud/aegis/model/ModifyMachineConfigRequest.h - include/alibabacloud/aegis/model/ModifyMachineConfigResult.h include/alibabacloud/aegis/model/DescribeVersionConfigRequest.h include/alibabacloud/aegis/model/DescribeVersionConfigResult.h - include/alibabacloud/aegis/model/DescribeMacConfigRequest.h - include/alibabacloud/aegis/model/DescribeMacConfigResult.h + include/alibabacloud/aegis/model/ModifyMachineConfigRequest.h + include/alibabacloud/aegis/model/ModifyMachineConfigResult.h + include/alibabacloud/aegis/model/AddEventProcessRequest.h + include/alibabacloud/aegis/model/AddEventProcessResult.h + include/alibabacloud/aegis/model/DescribeChartDataRequest.h + include/alibabacloud/aegis/model/DescribeChartDataResult.h include/alibabacloud/aegis/model/RollbackQuaraFileRequest.h include/alibabacloud/aegis/model/RollbackQuaraFileResult.h + include/alibabacloud/aegis/model/DescribeMacConfigRequest.h + include/alibabacloud/aegis/model/DescribeMacConfigResult.h include/alibabacloud/aegis/model/DescribeApiBuySummaryRequest.h include/alibabacloud/aegis/model/DescribeApiBuySummaryResult.h - include/alibabacloud/aegis/model/DescribeWebLockMachineListRequest.h - include/alibabacloud/aegis/model/DescribeWebLockMachineListResult.h include/alibabacloud/aegis/model/DeleteVulBatchRequest.h include/alibabacloud/aegis/model/DeleteVulBatchResult.h + include/alibabacloud/aegis/model/DescribeWebLockMachineListRequest.h + include/alibabacloud/aegis/model/DescribeWebLockMachineListResult.h include/alibabacloud/aegis/model/ModifyWebLockStatusRequest.h include/alibabacloud/aegis/model/ModifyWebLockStatusResult.h include/alibabacloud/aegis/model/UpdateWhiteListProcessStatusRequest.h include/alibabacloud/aegis/model/UpdateWhiteListProcessStatusResult.h - include/alibabacloud/aegis/model/DescribeScreenSettingRequest.h - include/alibabacloud/aegis/model/DescribeScreenSettingResult.h include/alibabacloud/aegis/model/CreateLogQueryRequest.h include/alibabacloud/aegis/model/CreateLogQueryResult.h + include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailRequest.h + include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailResult.h + include/alibabacloud/aegis/model/DescribeScreenSettingRequest.h + include/alibabacloud/aegis/model/DescribeScreenSettingResult.h include/alibabacloud/aegis/model/DescribeWarningRequest.h include/alibabacloud/aegis/model/DescribeWarningResult.h include/alibabacloud/aegis/model/DescribeWhiteListProcessRequest.h @@ -395,10 +471,10 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeStratetyDetailResult.h include/alibabacloud/aegis/model/DescribeHistogramRequest.h include/alibabacloud/aegis/model/DescribeHistogramResult.h - include/alibabacloud/aegis/model/DescribeDingTalkRequest.h - include/alibabacloud/aegis/model/DescribeDingTalkResult.h include/alibabacloud/aegis/model/DescribeLoginLogsRequest.h include/alibabacloud/aegis/model/DescribeLoginLogsResult.h + include/alibabacloud/aegis/model/DescribeDingTalkRequest.h + include/alibabacloud/aegis/model/DescribeDingTalkResult.h include/alibabacloud/aegis/model/DescribeMetaDataRequest.h include/alibabacloud/aegis/model/DescribeMetaDataResult.h include/alibabacloud/aegis/model/DescribeWebLockStatusRequest.h @@ -409,30 +485,32 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeNsasSuspEventTypeResult.h include/alibabacloud/aegis/model/ModifyScreenSettingRequest.h include/alibabacloud/aegis/model/ModifyScreenSettingResult.h - include/alibabacloud/aegis/model/ModifyStrategyRequest.h - include/alibabacloud/aegis/model/ModifyStrategyResult.h include/alibabacloud/aegis/model/DescribeEmgNoticeRequest.h include/alibabacloud/aegis/model/DescribeEmgNoticeResult.h + include/alibabacloud/aegis/model/ModifyStrategyRequest.h + include/alibabacloud/aegis/model/ModifyStrategyResult.h include/alibabacloud/aegis/model/DescribeScreenOperateInfoRequest.h include/alibabacloud/aegis/model/DescribeScreenOperateInfoResult.h include/alibabacloud/aegis/model/DescribeJoinRuleListRequest.h include/alibabacloud/aegis/model/DescribeJoinRuleListResult.h include/alibabacloud/aegis/model/DescribeSuspEventQuaraFilesRequest.h include/alibabacloud/aegis/model/DescribeSuspEventQuaraFilesResult.h - include/alibabacloud/aegis/model/ValidateHcWarningsRequest.h - include/alibabacloud/aegis/model/ValidateHcWarningsResult.h include/alibabacloud/aegis/model/CreateOrUpdateJoinRuleRequest.h include/alibabacloud/aegis/model/CreateOrUpdateJoinRuleResult.h + include/alibabacloud/aegis/model/ValidateHcWarningsRequest.h + include/alibabacloud/aegis/model/ValidateHcWarningsResult.h include/alibabacloud/aegis/model/AutoUpgradeSasRequest.h include/alibabacloud/aegis/model/AutoUpgradeSasResult.h + include/alibabacloud/aegis/model/ModifyRefreshProcessInfoRequest.h + include/alibabacloud/aegis/model/ModifyRefreshProcessInfoResult.h include/alibabacloud/aegis/model/DescribeEmgUserAgreementRequest.h include/alibabacloud/aegis/model/DescribeEmgUserAgreementResult.h - include/alibabacloud/aegis/model/ModifyWebLockMachineListRequest.h - include/alibabacloud/aegis/model/ModifyWebLockMachineListResult.h include/alibabacloud/aegis/model/ModifyEmgVulSubmitRequest.h include/alibabacloud/aegis/model/ModifyEmgVulSubmitResult.h include/alibabacloud/aegis/model/DeleteLogQueryRequest.h include/alibabacloud/aegis/model/DeleteLogQueryResult.h + include/alibabacloud/aegis/model/ModifyWebLockMachineListRequest.h + include/alibabacloud/aegis/model/ModifyWebLockMachineListResult.h include/alibabacloud/aegis/model/ModifyTargetConfigRequest.h include/alibabacloud/aegis/model/ModifyTargetConfigResult.h include/alibabacloud/aegis/model/IgnoreHcCheckWarningsRequest.h @@ -441,34 +519,40 @@ set(aegis_public_header_model include/alibabacloud/aegis/model/DescribeExportInfoResult.h include/alibabacloud/aegis/model/DescribeSuspEventUserSettingRequest.h include/alibabacloud/aegis/model/DescribeSuspEventUserSettingResult.h - include/alibabacloud/aegis/model/DescribeWhiteListStrategyCountRequest.h - include/alibabacloud/aegis/model/DescribeWhiteListStrategyCountResult.h include/alibabacloud/aegis/model/DescribeVulConfigRequest.h include/alibabacloud/aegis/model/DescribeVulConfigResult.h + include/alibabacloud/aegis/model/DescribeWhiteListStrategyCountRequest.h + include/alibabacloud/aegis/model/DescribeWhiteListStrategyCountResult.h include/alibabacloud/aegis/model/ModifyWebLockRefreshRequest.h include/alibabacloud/aegis/model/ModifyWebLockRefreshResult.h include/alibabacloud/aegis/model/DescribeEventCountCurveRequest.h include/alibabacloud/aegis/model/DescribeEventCountCurveResult.h include/alibabacloud/aegis/model/DescribeWhiteListAssetRequest.h include/alibabacloud/aegis/model/DescribeWhiteListAssetResult.h + include/alibabacloud/aegis/model/UpdateCustomizeReportStatusRequest.h + include/alibabacloud/aegis/model/UpdateCustomizeReportStatusResult.h include/alibabacloud/aegis/model/ModifyClearLogstoreStorageRequest.h include/alibabacloud/aegis/model/ModifyClearLogstoreStorageResult.h include/alibabacloud/aegis/model/ModifyStrategyTargetRequest.h include/alibabacloud/aegis/model/ModifyStrategyTargetResult.h include/alibabacloud/aegis/model/DescribeCheckWarningsRequest.h include/alibabacloud/aegis/model/DescribeCheckWarningsResult.h - include/alibabacloud/aegis/model/DescribeSecurityStatInfoRequest.h - include/alibabacloud/aegis/model/DescribeSecurityStatInfoResult.h + include/alibabacloud/aegis/model/DeleteSuspEventNodeRequest.h + include/alibabacloud/aegis/model/DeleteSuspEventNodeResult.h + include/alibabacloud/aegis/model/DescribeHostStatisticsRequest.h + include/alibabacloud/aegis/model/DescribeHostStatisticsResult.h include/alibabacloud/aegis/model/SaveWhiteListStrategyRequest.h include/alibabacloud/aegis/model/SaveWhiteListStrategyResult.h + include/alibabacloud/aegis/model/DescribeSecurityStatInfoRequest.h + include/alibabacloud/aegis/model/DescribeSecurityStatInfoResult.h include/alibabacloud/aegis/model/DescribeFilterFieldsRequest.h include/alibabacloud/aegis/model/DescribeFilterFieldsResult.h + include/alibabacloud/aegis/model/DescribeInstanceStatisticsRequest.h + include/alibabacloud/aegis/model/DescribeInstanceStatisticsResult.h include/alibabacloud/aegis/model/DescribeScreenSecurityStatInfoRequest.h include/alibabacloud/aegis/model/DescribeScreenSecurityStatInfoResult.h include/alibabacloud/aegis/model/OperateSuspiciousOverallConfigRequest.h - include/alibabacloud/aegis/model/OperateSuspiciousOverallConfigResult.h - include/alibabacloud/aegis/model/DescribeInstanceStatisticsRequest.h - include/alibabacloud/aegis/model/DescribeInstanceStatisticsResult.h ) + include/alibabacloud/aegis/model/OperateSuspiciousOverallConfigResult.h ) set(aegis_src src/AegisClient.cc @@ -478,12 +562,16 @@ set(aegis_src src/model/DescribeCanUpgradeSasResult.cc src/model/DescribeTraceInfoNodeRequest.cc src/model/DescribeTraceInfoNodeResult.cc + src/model/SaveCustomizeReportConfigRequest.cc + src/model/SaveCustomizeReportConfigResult.cc + src/model/DescribeScreenCloudHcRiskRequest.cc + src/model/DescribeScreenCloudHcRiskResult.cc src/model/DescribeScreenAttackAnalysisDataRequest.cc src/model/DescribeScreenAttackAnalysisDataResult.cc - src/model/DescribeAutoDelConfigRequest.cc - src/model/DescribeAutoDelConfigResult.cc src/model/DescribeVulListRequest.cc src/model/DescribeVulListResult.cc + src/model/DescribeAutoDelConfigRequest.cc + src/model/DescribeAutoDelConfigResult.cc src/model/ModifyWebLockUpdateConfigRequest.cc src/model/ModifyWebLockUpdateConfigResult.cc src/model/DescribeVulnerabilitySummaryRequest.cc @@ -500,6 +588,10 @@ set(aegis_src src/model/ExportWarningResult.cc src/model/DescribeEcsStsStatusRequest.cc src/model/DescribeEcsStsStatusResult.cc + src/model/DescribeCustomizeReportListRequest.cc + src/model/DescribeCustomizeReportListResult.cc + src/model/DescribeSupervisonInfoRequest.cc + src/model/DescribeSupervisonInfoResult.cc src/model/UpdateWhiteListStrategyRelationRequest.cc src/model/UpdateWhiteListStrategyRelationResult.cc src/model/DeleteStrategyRequest.cc @@ -510,30 +602,44 @@ set(aegis_src src/model/OpenSasTrialResult.cc src/model/ModifyVulLevelRequest.cc src/model/ModifyVulLevelResult.cc + src/model/DescribeScreenOssUploadInfoRequest.cc + src/model/DescribeScreenOssUploadInfoResult.cc src/model/ModifyVulTargetRequest.cc src/model/ModifyVulTargetResult.cc src/model/ModifyBatchIgnoreVulRequest.cc src/model/ModifyBatchIgnoreVulResult.cc - src/model/DescribeSummaryInfoRequest.cc - src/model/DescribeSummaryInfoResult.cc src/model/DescribeStrategyProcessRequest.cc src/model/DescribeStrategyProcessResult.cc + src/model/DescribeSummaryInfoRequest.cc + src/model/DescribeSummaryInfoResult.cc src/model/DescribeSuspTrendStatisticsRequest.cc src/model/DescribeSuspTrendStatisticsResult.cc src/model/DescribeDataSourceRequest.cc src/model/DescribeDataSourceResult.cc src/model/DescribeResultListRequest.cc src/model/DescribeResultListResult.cc + src/model/DescribeGrayFuncRequest.cc + src/model/DescribeGrayFuncResult.cc + src/model/DescribeCustomizeReportChartDataRequest.cc + src/model/DescribeCustomizeReportChartDataResult.cc + src/model/DescribeScreenBizStatSimpleQueryResultRequest.cc + src/model/DescribeScreenBizStatSimpleQueryResultResult.cc src/model/DownloadLogRequest.cc src/model/DownloadLogResult.cc src/model/DescribeTargetConfigRequest.cc src/model/DescribeTargetConfigResult.cc + src/model/DescribeAccesskeyRunInfoRequest.cc + src/model/DescribeAccesskeyRunInfoResult.cc + src/model/DescribeScreenFlowRequestCountRequest.cc + src/model/DescribeScreenFlowRequestCountResult.cc src/model/DescribeVulNumStatisticsRequest.cc src/model/DescribeVulNumStatisticsResult.cc src/model/DescribeLogInfoRequest.cc src/model/DescribeLogInfoResult.cc src/model/GetAccountStatisticsRequest.cc src/model/GetAccountStatisticsResult.cc + src/model/DescribeScreenEmerRiskRequest.cc + src/model/DescribeScreenEmerRiskResult.cc src/model/DescribeUuidConfigRequest.cc src/model/DescribeUuidConfigResult.cc src/model/DescribeScreenHostStatisticsRequest.cc @@ -550,26 +656,32 @@ set(aegis_src src/model/ModifySasAssetStatisticsColumnResult.cc src/model/DescribeTraceInfoNodeListRequest.cc src/model/DescribeTraceInfoNodeListResult.cc - src/model/DescribeAnalysisSlsIndexRequest.cc - src/model/DescribeAnalysisSlsIndexResult.cc src/model/ModifyWebLockCreateConfigRequest.cc src/model/ModifyWebLockCreateConfigResult.cc + src/model/DescribeAnalysisSlsIndexRequest.cc + src/model/DescribeAnalysisSlsIndexResult.cc src/model/DeleteRuleGroupRequest.cc src/model/DeleteRuleGroupResult.cc + src/model/DescribeScreenDataMapRequest.cc + src/model/DescribeScreenDataMapResult.cc src/model/DescribeStatisticsRequest.cc src/model/DescribeStatisticsResult.cc src/model/DescribeAlarmEventDetailRequest.cc src/model/DescribeAlarmEventDetailResult.cc src/model/CreateSuspiciousExportRequest.cc src/model/CreateSuspiciousExportResult.cc + src/model/DescribeWebshellListRequest.cc + src/model/DescribeWebshellListResult.cc + src/model/DescribeBizStatSimpleQueryResultRequest.cc + src/model/DescribeBizStatSimpleQueryResultResult.cc src/model/OperateVulRequest.cc src/model/OperateVulResult.cc src/model/GetCrackStatisticsRequest.cc src/model/GetCrackStatisticsResult.cc - src/model/DescribeConcernNecessityRequest.cc - src/model/DescribeConcernNecessityResult.cc src/model/OperateAgentClientInstallRequest.cc src/model/OperateAgentClientInstallResult.cc + src/model/DescribeConcernNecessityRequest.cc + src/model/DescribeConcernNecessityResult.cc src/model/DescribeScreenScoreThreadRequest.cc src/model/DescribeScreenScoreThreadResult.cc src/model/DescribeBuySummaryRequest.cc @@ -580,14 +692,18 @@ set(aegis_src src/model/DescribeSuspiciousUUIDConfigResult.cc src/model/DescribeTopicListRequest.cc src/model/DescribeTopicListResult.cc - src/model/DescribeAssetDetailByUuidRequest.cc - src/model/DescribeAssetDetailByUuidResult.cc src/model/DescribeScreenVersionConfigRequest.cc src/model/DescribeScreenVersionConfigResult.cc + src/model/DescribeAssetDetailByUuidRequest.cc + src/model/DescribeAssetDetailByUuidResult.cc + src/model/CreateScreenSettingRequest.cc + src/model/CreateScreenSettingResult.cc src/model/DescribeVulExportInfoRequest.cc src/model/DescribeVulExportInfoResult.cc src/model/DeleteRuleRequest.cc src/model/DeleteRuleResult.cc + src/model/DescribeChartListRequest.cc + src/model/DescribeChartListResult.cc src/model/DescribeSuspEventDetailRequest.cc src/model/DescribeSuspEventDetailResult.cc src/model/DescribeEventLevelCountRequest.cc @@ -606,20 +722,26 @@ set(aegis_src src/model/DescribeVulDetailsResult.cc src/model/DescribeLogItemsRequest.cc src/model/DescribeLogItemsResult.cc - src/model/DescribeWebLockEventsRequest.cc - src/model/DescribeWebLockEventsResult.cc src/model/ExecStrategyRequest.cc src/model/ExecStrategyResult.cc + src/model/DescribeWebLockEventsRequest.cc + src/model/DescribeWebLockEventsResult.cc src/model/DescribeSuspEventExportInfoRequest.cc src/model/DescribeSuspEventExportInfoResult.cc src/model/OperationSuspEventsRequest.cc src/model/OperationSuspEventsResult.cc src/model/DescribeSasAssetStatisticsRequest.cc src/model/DescribeSasAssetStatisticsResult.cc + src/model/SendCustomizeReportRequest.cc + src/model/SendCustomizeReportResult.cc src/model/DescribeDefenceThreadRequest.cc src/model/DescribeDefenceThreadResult.cc + src/model/DescribeScreenTopRequestAndFlowRequest.cc + src/model/DescribeScreenTopRequestAndFlowResult.cc src/model/CreateVulWhitelistRequest.cc src/model/CreateVulWhitelistResult.cc + src/model/DescribeLatestActionsRequest.cc + src/model/DescribeLatestActionsResult.cc src/model/ModifyConcernNecessityRequest.cc src/model/ModifyConcernNecessityResult.cc src/model/GetStatisticsByUuidRequest.cc @@ -628,10 +750,16 @@ set(aegis_src src/model/ModifyVulConfigResult.cc src/model/GetStatisticsRequest.cc src/model/GetStatisticsResult.cc - src/model/DescribesummaryRequest.cc - src/model/DescribesummaryResult.cc src/model/DescribeSuspEventsRequest.cc src/model/DescribeSuspEventsResult.cc + src/model/DescribesummaryRequest.cc + src/model/DescribesummaryResult.cc + src/model/ModifyAccessKeyLeakDealRequest.cc + src/model/ModifyAccessKeyLeakDealResult.cc + src/model/DescribeCheckWarningCountRequest.cc + src/model/DescribeCheckWarningCountResult.cc + src/model/CopyCustomizeReportConfigRequest.cc + src/model/CopyCustomizeReportConfigResult.cc src/model/CreateOrUpdateDataSourceRequest.cc src/model/CreateOrUpdateDataSourceResult.cc src/model/DescribeVulWhitelistRequest.cc @@ -644,10 +772,10 @@ set(aegis_src src/model/DescribeWhiteListStrategyListResult.cc src/model/DescribeTraceInfoDetailRequest.cc src/model/DescribeTraceInfoDetailResult.cc - src/model/DescribeGroupListRequest.cc - src/model/DescribeGroupListResult.cc src/model/DescribeCanTrySasRequest.cc src/model/DescribeCanTrySasResult.cc + src/model/DescribeGroupListRequest.cc + src/model/DescribeGroupListResult.cc src/model/DescribeTargetRequest.cc src/model/DescribeTargetResult.cc src/model/DescribeWebshellRequest.cc @@ -662,22 +790,36 @@ set(aegis_src src/model/DescribeWarningMachinesResult.cc src/model/ModifySearchConditionRequest.cc src/model/ModifySearchConditionResult.cc + src/model/DescribeScreenTitlesRequest.cc + src/model/DescribeScreenTitlesResult.cc src/model/DescribeWhiteListStrategyUuidCountRequest.cc src/model/DescribeWhiteListStrategyUuidCountResult.cc + src/model/DeleteCustomizeReportRequest.cc + src/model/DeleteCustomizeReportResult.cc src/model/DescribeGroupedVulRequest.cc src/model/DescribeGroupedVulResult.cc src/model/ModifyWebLockDeleteConfigRequest.cc src/model/ModifyWebLockDeleteConfigResult.cc + src/model/ModifyAccessKeyLeakInstRunRequest.cc + src/model/ModifyAccessKeyLeakInstRunResult.cc + src/model/CreateSuspEventNoteRequest.cc + src/model/CreateSuspEventNoteResult.cc src/model/CreateUserWhiteListRequest.cc src/model/CreateUserWhiteListResult.cc src/model/DescribeSecureSuggestionRequest.cc src/model/DescribeSecureSuggestionResult.cc + src/model/DescribeCustomizeReportConfigDetailRequest.cc + src/model/DescribeCustomizeReportConfigDetailResult.cc + src/model/DescribeScreenRequestTopTypeRequest.cc + src/model/DescribeScreenRequestTopTypeResult.cc src/model/DescribeSuspiciousOverallConfigRequest.cc src/model/DescribeSuspiciousOverallConfigResult.cc - src/model/DescribeAnalysisCurveRequest.cc - src/model/DescribeAnalysisCurveResult.cc + src/model/DescribeAccesskeyLeakListRequest.cc + src/model/DescribeAccesskeyLeakListResult.cc src/model/DescribeScreenAlarmEventListRequest.cc src/model/DescribeScreenAlarmEventListResult.cc + src/model/DescribeAnalysisCurveRequest.cc + src/model/DescribeAnalysisCurveResult.cc src/model/CreatScreenSettingRequest.cc src/model/CreatScreenSettingResult.cc src/model/DescribeAlarmEventListRequest.cc @@ -700,10 +842,12 @@ set(aegis_src src/model/DescribeLogMetaResult.cc src/model/DescribeQuaraFileRequest.cc src/model/DescribeQuaraFileResult.cc - src/model/DescribeTotalStatisticsRequest.cc - src/model/DescribeTotalStatisticsResult.cc + src/model/DescribeScreenCityMonitorDataRequest.cc + src/model/DescribeScreenCityMonitorDataResult.cc src/model/DescribeWhiteListStrategyStatisticsRequest.cc src/model/DescribeWhiteListStrategyStatisticsResult.cc + src/model/DescribeTotalStatisticsRequest.cc + src/model/DescribeTotalStatisticsResult.cc src/model/AutoUpgradeToSasAdvancedVersionRequest.cc src/model/AutoUpgradeToSasAdvancedVersionResult.cc src/model/DescribeStratetyRequest.cc @@ -712,12 +856,16 @@ set(aegis_src src/model/DescribeAnalysisStatisticsResult.cc src/model/DescribeWebLockConfigListRequest.cc src/model/DescribeWebLockConfigListResult.cc + src/model/DescribeVulStatisticsRequest.cc + src/model/DescribeVulStatisticsResult.cc src/model/ModifyAutoDelConfigRequest.cc src/model/ModifyAutoDelConfigResult.cc - src/model/DescribeUserSettingRequest.cc - src/model/DescribeUserSettingResult.cc src/model/DescribeVulBatchRequest.cc src/model/DescribeVulBatchResult.cc + src/model/DescribeUserSettingRequest.cc + src/model/DescribeUserSettingResult.cc + src/model/DescribeEntityListRequest.cc + src/model/DescribeEntityListResult.cc src/model/ReleaseInstanceRequest.cc src/model/ReleaseInstanceResult.cc src/model/DescribeVulLevelRequest.cc @@ -732,6 +880,8 @@ set(aegis_src src/model/RenewInstanceResult.cc src/model/OperateResultRequest.cc src/model/OperateResultResult.cc + src/model/DescribeCustomizeReportChartListRequest.cc + src/model/DescribeCustomizeReportChartListResult.cc src/model/RollbackSuspEventQuaraFileRequest.cc src/model/RollbackSuspEventQuaraFileResult.cc src/model/DescribeLogstoreStorageRequest.cc @@ -760,18 +910,22 @@ set(aegis_src src/model/DescribeGroupStructResult.cc src/model/DescribeRiskWhiteListRequest.cc src/model/DescribeRiskWhiteListResult.cc + src/model/OperationCustomizeReportChartRequest.cc + src/model/OperationCustomizeReportChartResult.cc src/model/ModifyAssetGroupRequest.cc src/model/ModifyAssetGroupResult.cc + src/model/DescribeVulRelatedProcessRequest.cc + src/model/DescribeVulRelatedProcessResult.cc src/model/DescribeSasLeftConditionRequest.cc src/model/DescribeSasLeftConditionResult.cc src/model/DescribeSasAssetStatisticsColumnRequest.cc src/model/DescribeSasAssetStatisticsColumnResult.cc src/model/CreateOrUpdateRuleRequest.cc src/model/CreateOrUpdateRuleResult.cc - src/model/ModifyLogMetaStatusRequest.cc - src/model/ModifyLogMetaStatusResult.cc src/model/DescribeYesterdayStatisticsRequest.cc src/model/DescribeYesterdayStatisticsResult.cc + src/model/ModifyLogMetaStatusRequest.cc + src/model/ModifyLogMetaStatusResult.cc src/model/DescribeSuspiciousExportInfoRequest.cc src/model/DescribeSuspiciousExportInfoResult.cc src/model/DeleteScreenSettingRequest.cc @@ -798,28 +952,34 @@ set(aegis_src src/model/TransformLeakageResult.cc src/model/DescribeAssetListRequest.cc src/model/DescribeAssetListResult.cc - src/model/ModifyMachineConfigRequest.cc - src/model/ModifyMachineConfigResult.cc src/model/DescribeVersionConfigRequest.cc src/model/DescribeVersionConfigResult.cc - src/model/DescribeMacConfigRequest.cc - src/model/DescribeMacConfigResult.cc + src/model/ModifyMachineConfigRequest.cc + src/model/ModifyMachineConfigResult.cc + src/model/AddEventProcessRequest.cc + src/model/AddEventProcessResult.cc + src/model/DescribeChartDataRequest.cc + src/model/DescribeChartDataResult.cc src/model/RollbackQuaraFileRequest.cc src/model/RollbackQuaraFileResult.cc + src/model/DescribeMacConfigRequest.cc + src/model/DescribeMacConfigResult.cc src/model/DescribeApiBuySummaryRequest.cc src/model/DescribeApiBuySummaryResult.cc - src/model/DescribeWebLockMachineListRequest.cc - src/model/DescribeWebLockMachineListResult.cc src/model/DeleteVulBatchRequest.cc src/model/DeleteVulBatchResult.cc + src/model/DescribeWebLockMachineListRequest.cc + src/model/DescribeWebLockMachineListResult.cc src/model/ModifyWebLockStatusRequest.cc src/model/ModifyWebLockStatusResult.cc src/model/UpdateWhiteListProcessStatusRequest.cc src/model/UpdateWhiteListProcessStatusResult.cc - src/model/DescribeScreenSettingRequest.cc - src/model/DescribeScreenSettingResult.cc src/model/CreateLogQueryRequest.cc src/model/CreateLogQueryResult.cc + src/model/DescribeAccessKeyLeakDetailRequest.cc + src/model/DescribeAccessKeyLeakDetailResult.cc + src/model/DescribeScreenSettingRequest.cc + src/model/DescribeScreenSettingResult.cc src/model/DescribeWarningRequest.cc src/model/DescribeWarningResult.cc src/model/DescribeWhiteListProcessRequest.cc @@ -846,10 +1006,10 @@ set(aegis_src src/model/DescribeStratetyDetailResult.cc src/model/DescribeHistogramRequest.cc src/model/DescribeHistogramResult.cc - src/model/DescribeDingTalkRequest.cc - src/model/DescribeDingTalkResult.cc src/model/DescribeLoginLogsRequest.cc src/model/DescribeLoginLogsResult.cc + src/model/DescribeDingTalkRequest.cc + src/model/DescribeDingTalkResult.cc src/model/DescribeMetaDataRequest.cc src/model/DescribeMetaDataResult.cc src/model/DescribeWebLockStatusRequest.cc @@ -860,30 +1020,32 @@ set(aegis_src src/model/DescribeNsasSuspEventTypeResult.cc src/model/ModifyScreenSettingRequest.cc src/model/ModifyScreenSettingResult.cc - src/model/ModifyStrategyRequest.cc - src/model/ModifyStrategyResult.cc src/model/DescribeEmgNoticeRequest.cc src/model/DescribeEmgNoticeResult.cc + src/model/ModifyStrategyRequest.cc + src/model/ModifyStrategyResult.cc src/model/DescribeScreenOperateInfoRequest.cc src/model/DescribeScreenOperateInfoResult.cc src/model/DescribeJoinRuleListRequest.cc src/model/DescribeJoinRuleListResult.cc src/model/DescribeSuspEventQuaraFilesRequest.cc src/model/DescribeSuspEventQuaraFilesResult.cc - src/model/ValidateHcWarningsRequest.cc - src/model/ValidateHcWarningsResult.cc src/model/CreateOrUpdateJoinRuleRequest.cc src/model/CreateOrUpdateJoinRuleResult.cc + src/model/ValidateHcWarningsRequest.cc + src/model/ValidateHcWarningsResult.cc src/model/AutoUpgradeSasRequest.cc src/model/AutoUpgradeSasResult.cc + src/model/ModifyRefreshProcessInfoRequest.cc + src/model/ModifyRefreshProcessInfoResult.cc src/model/DescribeEmgUserAgreementRequest.cc src/model/DescribeEmgUserAgreementResult.cc - src/model/ModifyWebLockMachineListRequest.cc - src/model/ModifyWebLockMachineListResult.cc src/model/ModifyEmgVulSubmitRequest.cc src/model/ModifyEmgVulSubmitResult.cc src/model/DeleteLogQueryRequest.cc src/model/DeleteLogQueryResult.cc + src/model/ModifyWebLockMachineListRequest.cc + src/model/ModifyWebLockMachineListResult.cc src/model/ModifyTargetConfigRequest.cc src/model/ModifyTargetConfigResult.cc src/model/IgnoreHcCheckWarningsRequest.cc @@ -892,34 +1054,40 @@ set(aegis_src src/model/DescribeExportInfoResult.cc src/model/DescribeSuspEventUserSettingRequest.cc src/model/DescribeSuspEventUserSettingResult.cc - src/model/DescribeWhiteListStrategyCountRequest.cc - src/model/DescribeWhiteListStrategyCountResult.cc src/model/DescribeVulConfigRequest.cc src/model/DescribeVulConfigResult.cc + src/model/DescribeWhiteListStrategyCountRequest.cc + src/model/DescribeWhiteListStrategyCountResult.cc src/model/ModifyWebLockRefreshRequest.cc src/model/ModifyWebLockRefreshResult.cc src/model/DescribeEventCountCurveRequest.cc src/model/DescribeEventCountCurveResult.cc src/model/DescribeWhiteListAssetRequest.cc src/model/DescribeWhiteListAssetResult.cc + src/model/UpdateCustomizeReportStatusRequest.cc + src/model/UpdateCustomizeReportStatusResult.cc src/model/ModifyClearLogstoreStorageRequest.cc src/model/ModifyClearLogstoreStorageResult.cc src/model/ModifyStrategyTargetRequest.cc src/model/ModifyStrategyTargetResult.cc src/model/DescribeCheckWarningsRequest.cc src/model/DescribeCheckWarningsResult.cc - src/model/DescribeSecurityStatInfoRequest.cc - src/model/DescribeSecurityStatInfoResult.cc + src/model/DeleteSuspEventNodeRequest.cc + src/model/DeleteSuspEventNodeResult.cc + src/model/DescribeHostStatisticsRequest.cc + src/model/DescribeHostStatisticsResult.cc src/model/SaveWhiteListStrategyRequest.cc src/model/SaveWhiteListStrategyResult.cc + src/model/DescribeSecurityStatInfoRequest.cc + src/model/DescribeSecurityStatInfoResult.cc src/model/DescribeFilterFieldsRequest.cc src/model/DescribeFilterFieldsResult.cc + src/model/DescribeInstanceStatisticsRequest.cc + src/model/DescribeInstanceStatisticsResult.cc src/model/DescribeScreenSecurityStatInfoRequest.cc src/model/DescribeScreenSecurityStatInfoResult.cc src/model/OperateSuspiciousOverallConfigRequest.cc - src/model/OperateSuspiciousOverallConfigResult.cc - src/model/DescribeInstanceStatisticsRequest.cc - src/model/DescribeInstanceStatisticsResult.cc ) + src/model/OperateSuspiciousOverallConfigResult.cc ) add_library(aegis ${LIB_TYPE} ${aegis_public_header} diff --git a/aegis/include/alibabacloud/aegis/AegisClient.h b/aegis/include/alibabacloud/aegis/AegisClient.h index f11518105..d4d5c3ae4 100644 --- a/aegis/include/alibabacloud/aegis/AegisClient.h +++ b/aegis/include/alibabacloud/aegis/AegisClient.h @@ -28,12 +28,16 @@ #include "model/DescribeCanUpgradeSasResult.h" #include "model/DescribeTraceInfoNodeRequest.h" #include "model/DescribeTraceInfoNodeResult.h" +#include "model/SaveCustomizeReportConfigRequest.h" +#include "model/SaveCustomizeReportConfigResult.h" +#include "model/DescribeScreenCloudHcRiskRequest.h" +#include "model/DescribeScreenCloudHcRiskResult.h" #include "model/DescribeScreenAttackAnalysisDataRequest.h" #include "model/DescribeScreenAttackAnalysisDataResult.h" -#include "model/DescribeAutoDelConfigRequest.h" -#include "model/DescribeAutoDelConfigResult.h" #include "model/DescribeVulListRequest.h" #include "model/DescribeVulListResult.h" +#include "model/DescribeAutoDelConfigRequest.h" +#include "model/DescribeAutoDelConfigResult.h" #include "model/ModifyWebLockUpdateConfigRequest.h" #include "model/ModifyWebLockUpdateConfigResult.h" #include "model/DescribeVulnerabilitySummaryRequest.h" @@ -50,6 +54,10 @@ #include "model/ExportWarningResult.h" #include "model/DescribeEcsStsStatusRequest.h" #include "model/DescribeEcsStsStatusResult.h" +#include "model/DescribeCustomizeReportListRequest.h" +#include "model/DescribeCustomizeReportListResult.h" +#include "model/DescribeSupervisonInfoRequest.h" +#include "model/DescribeSupervisonInfoResult.h" #include "model/UpdateWhiteListStrategyRelationRequest.h" #include "model/UpdateWhiteListStrategyRelationResult.h" #include "model/DeleteStrategyRequest.h" @@ -60,30 +68,44 @@ #include "model/OpenSasTrialResult.h" #include "model/ModifyVulLevelRequest.h" #include "model/ModifyVulLevelResult.h" +#include "model/DescribeScreenOssUploadInfoRequest.h" +#include "model/DescribeScreenOssUploadInfoResult.h" #include "model/ModifyVulTargetRequest.h" #include "model/ModifyVulTargetResult.h" #include "model/ModifyBatchIgnoreVulRequest.h" #include "model/ModifyBatchIgnoreVulResult.h" -#include "model/DescribeSummaryInfoRequest.h" -#include "model/DescribeSummaryInfoResult.h" #include "model/DescribeStrategyProcessRequest.h" #include "model/DescribeStrategyProcessResult.h" +#include "model/DescribeSummaryInfoRequest.h" +#include "model/DescribeSummaryInfoResult.h" #include "model/DescribeSuspTrendStatisticsRequest.h" #include "model/DescribeSuspTrendStatisticsResult.h" #include "model/DescribeDataSourceRequest.h" #include "model/DescribeDataSourceResult.h" #include "model/DescribeResultListRequest.h" #include "model/DescribeResultListResult.h" +#include "model/DescribeGrayFuncRequest.h" +#include "model/DescribeGrayFuncResult.h" +#include "model/DescribeCustomizeReportChartDataRequest.h" +#include "model/DescribeCustomizeReportChartDataResult.h" +#include "model/DescribeScreenBizStatSimpleQueryResultRequest.h" +#include "model/DescribeScreenBizStatSimpleQueryResultResult.h" #include "model/DownloadLogRequest.h" #include "model/DownloadLogResult.h" #include "model/DescribeTargetConfigRequest.h" #include "model/DescribeTargetConfigResult.h" +#include "model/DescribeAccesskeyRunInfoRequest.h" +#include "model/DescribeAccesskeyRunInfoResult.h" +#include "model/DescribeScreenFlowRequestCountRequest.h" +#include "model/DescribeScreenFlowRequestCountResult.h" #include "model/DescribeVulNumStatisticsRequest.h" #include "model/DescribeVulNumStatisticsResult.h" #include "model/DescribeLogInfoRequest.h" #include "model/DescribeLogInfoResult.h" #include "model/GetAccountStatisticsRequest.h" #include "model/GetAccountStatisticsResult.h" +#include "model/DescribeScreenEmerRiskRequest.h" +#include "model/DescribeScreenEmerRiskResult.h" #include "model/DescribeUuidConfigRequest.h" #include "model/DescribeUuidConfigResult.h" #include "model/DescribeScreenHostStatisticsRequest.h" @@ -100,26 +122,32 @@ #include "model/ModifySasAssetStatisticsColumnResult.h" #include "model/DescribeTraceInfoNodeListRequest.h" #include "model/DescribeTraceInfoNodeListResult.h" -#include "model/DescribeAnalysisSlsIndexRequest.h" -#include "model/DescribeAnalysisSlsIndexResult.h" #include "model/ModifyWebLockCreateConfigRequest.h" #include "model/ModifyWebLockCreateConfigResult.h" +#include "model/DescribeAnalysisSlsIndexRequest.h" +#include "model/DescribeAnalysisSlsIndexResult.h" #include "model/DeleteRuleGroupRequest.h" #include "model/DeleteRuleGroupResult.h" +#include "model/DescribeScreenDataMapRequest.h" +#include "model/DescribeScreenDataMapResult.h" #include "model/DescribeStatisticsRequest.h" #include "model/DescribeStatisticsResult.h" #include "model/DescribeAlarmEventDetailRequest.h" #include "model/DescribeAlarmEventDetailResult.h" #include "model/CreateSuspiciousExportRequest.h" #include "model/CreateSuspiciousExportResult.h" +#include "model/DescribeWebshellListRequest.h" +#include "model/DescribeWebshellListResult.h" +#include "model/DescribeBizStatSimpleQueryResultRequest.h" +#include "model/DescribeBizStatSimpleQueryResultResult.h" #include "model/OperateVulRequest.h" #include "model/OperateVulResult.h" #include "model/GetCrackStatisticsRequest.h" #include "model/GetCrackStatisticsResult.h" -#include "model/DescribeConcernNecessityRequest.h" -#include "model/DescribeConcernNecessityResult.h" #include "model/OperateAgentClientInstallRequest.h" #include "model/OperateAgentClientInstallResult.h" +#include "model/DescribeConcernNecessityRequest.h" +#include "model/DescribeConcernNecessityResult.h" #include "model/DescribeScreenScoreThreadRequest.h" #include "model/DescribeScreenScoreThreadResult.h" #include "model/DescribeBuySummaryRequest.h" @@ -130,14 +158,18 @@ #include "model/DescribeSuspiciousUUIDConfigResult.h" #include "model/DescribeTopicListRequest.h" #include "model/DescribeTopicListResult.h" -#include "model/DescribeAssetDetailByUuidRequest.h" -#include "model/DescribeAssetDetailByUuidResult.h" #include "model/DescribeScreenVersionConfigRequest.h" #include "model/DescribeScreenVersionConfigResult.h" +#include "model/DescribeAssetDetailByUuidRequest.h" +#include "model/DescribeAssetDetailByUuidResult.h" +#include "model/CreateScreenSettingRequest.h" +#include "model/CreateScreenSettingResult.h" #include "model/DescribeVulExportInfoRequest.h" #include "model/DescribeVulExportInfoResult.h" #include "model/DeleteRuleRequest.h" #include "model/DeleteRuleResult.h" +#include "model/DescribeChartListRequest.h" +#include "model/DescribeChartListResult.h" #include "model/DescribeSuspEventDetailRequest.h" #include "model/DescribeSuspEventDetailResult.h" #include "model/DescribeEventLevelCountRequest.h" @@ -156,20 +188,26 @@ #include "model/DescribeVulDetailsResult.h" #include "model/DescribeLogItemsRequest.h" #include "model/DescribeLogItemsResult.h" -#include "model/DescribeWebLockEventsRequest.h" -#include "model/DescribeWebLockEventsResult.h" #include "model/ExecStrategyRequest.h" #include "model/ExecStrategyResult.h" +#include "model/DescribeWebLockEventsRequest.h" +#include "model/DescribeWebLockEventsResult.h" #include "model/DescribeSuspEventExportInfoRequest.h" #include "model/DescribeSuspEventExportInfoResult.h" #include "model/OperationSuspEventsRequest.h" #include "model/OperationSuspEventsResult.h" #include "model/DescribeSasAssetStatisticsRequest.h" #include "model/DescribeSasAssetStatisticsResult.h" +#include "model/SendCustomizeReportRequest.h" +#include "model/SendCustomizeReportResult.h" #include "model/DescribeDefenceThreadRequest.h" #include "model/DescribeDefenceThreadResult.h" +#include "model/DescribeScreenTopRequestAndFlowRequest.h" +#include "model/DescribeScreenTopRequestAndFlowResult.h" #include "model/CreateVulWhitelistRequest.h" #include "model/CreateVulWhitelistResult.h" +#include "model/DescribeLatestActionsRequest.h" +#include "model/DescribeLatestActionsResult.h" #include "model/ModifyConcernNecessityRequest.h" #include "model/ModifyConcernNecessityResult.h" #include "model/GetStatisticsByUuidRequest.h" @@ -178,10 +216,16 @@ #include "model/ModifyVulConfigResult.h" #include "model/GetStatisticsRequest.h" #include "model/GetStatisticsResult.h" -#include "model/DescribesummaryRequest.h" -#include "model/DescribesummaryResult.h" #include "model/DescribeSuspEventsRequest.h" #include "model/DescribeSuspEventsResult.h" +#include "model/DescribesummaryRequest.h" +#include "model/DescribesummaryResult.h" +#include "model/ModifyAccessKeyLeakDealRequest.h" +#include "model/ModifyAccessKeyLeakDealResult.h" +#include "model/DescribeCheckWarningCountRequest.h" +#include "model/DescribeCheckWarningCountResult.h" +#include "model/CopyCustomizeReportConfigRequest.h" +#include "model/CopyCustomizeReportConfigResult.h" #include "model/CreateOrUpdateDataSourceRequest.h" #include "model/CreateOrUpdateDataSourceResult.h" #include "model/DescribeVulWhitelistRequest.h" @@ -194,10 +238,10 @@ #include "model/DescribeWhiteListStrategyListResult.h" #include "model/DescribeTraceInfoDetailRequest.h" #include "model/DescribeTraceInfoDetailResult.h" -#include "model/DescribeGroupListRequest.h" -#include "model/DescribeGroupListResult.h" #include "model/DescribeCanTrySasRequest.h" #include "model/DescribeCanTrySasResult.h" +#include "model/DescribeGroupListRequest.h" +#include "model/DescribeGroupListResult.h" #include "model/DescribeTargetRequest.h" #include "model/DescribeTargetResult.h" #include "model/DescribeWebshellRequest.h" @@ -212,22 +256,36 @@ #include "model/DescribeWarningMachinesResult.h" #include "model/ModifySearchConditionRequest.h" #include "model/ModifySearchConditionResult.h" +#include "model/DescribeScreenTitlesRequest.h" +#include "model/DescribeScreenTitlesResult.h" #include "model/DescribeWhiteListStrategyUuidCountRequest.h" #include "model/DescribeWhiteListStrategyUuidCountResult.h" +#include "model/DeleteCustomizeReportRequest.h" +#include "model/DeleteCustomizeReportResult.h" #include "model/DescribeGroupedVulRequest.h" #include "model/DescribeGroupedVulResult.h" #include "model/ModifyWebLockDeleteConfigRequest.h" #include "model/ModifyWebLockDeleteConfigResult.h" +#include "model/ModifyAccessKeyLeakInstRunRequest.h" +#include "model/ModifyAccessKeyLeakInstRunResult.h" +#include "model/CreateSuspEventNoteRequest.h" +#include "model/CreateSuspEventNoteResult.h" #include "model/CreateUserWhiteListRequest.h" #include "model/CreateUserWhiteListResult.h" #include "model/DescribeSecureSuggestionRequest.h" #include "model/DescribeSecureSuggestionResult.h" +#include "model/DescribeCustomizeReportConfigDetailRequest.h" +#include "model/DescribeCustomizeReportConfigDetailResult.h" +#include "model/DescribeScreenRequestTopTypeRequest.h" +#include "model/DescribeScreenRequestTopTypeResult.h" #include "model/DescribeSuspiciousOverallConfigRequest.h" #include "model/DescribeSuspiciousOverallConfigResult.h" -#include "model/DescribeAnalysisCurveRequest.h" -#include "model/DescribeAnalysisCurveResult.h" +#include "model/DescribeAccesskeyLeakListRequest.h" +#include "model/DescribeAccesskeyLeakListResult.h" #include "model/DescribeScreenAlarmEventListRequest.h" #include "model/DescribeScreenAlarmEventListResult.h" +#include "model/DescribeAnalysisCurveRequest.h" +#include "model/DescribeAnalysisCurveResult.h" #include "model/CreatScreenSettingRequest.h" #include "model/CreatScreenSettingResult.h" #include "model/DescribeAlarmEventListRequest.h" @@ -250,10 +308,12 @@ #include "model/DescribeLogMetaResult.h" #include "model/DescribeQuaraFileRequest.h" #include "model/DescribeQuaraFileResult.h" -#include "model/DescribeTotalStatisticsRequest.h" -#include "model/DescribeTotalStatisticsResult.h" +#include "model/DescribeScreenCityMonitorDataRequest.h" +#include "model/DescribeScreenCityMonitorDataResult.h" #include "model/DescribeWhiteListStrategyStatisticsRequest.h" #include "model/DescribeWhiteListStrategyStatisticsResult.h" +#include "model/DescribeTotalStatisticsRequest.h" +#include "model/DescribeTotalStatisticsResult.h" #include "model/AutoUpgradeToSasAdvancedVersionRequest.h" #include "model/AutoUpgradeToSasAdvancedVersionResult.h" #include "model/DescribeStratetyRequest.h" @@ -262,12 +322,16 @@ #include "model/DescribeAnalysisStatisticsResult.h" #include "model/DescribeWebLockConfigListRequest.h" #include "model/DescribeWebLockConfigListResult.h" +#include "model/DescribeVulStatisticsRequest.h" +#include "model/DescribeVulStatisticsResult.h" #include "model/ModifyAutoDelConfigRequest.h" #include "model/ModifyAutoDelConfigResult.h" -#include "model/DescribeUserSettingRequest.h" -#include "model/DescribeUserSettingResult.h" #include "model/DescribeVulBatchRequest.h" #include "model/DescribeVulBatchResult.h" +#include "model/DescribeUserSettingRequest.h" +#include "model/DescribeUserSettingResult.h" +#include "model/DescribeEntityListRequest.h" +#include "model/DescribeEntityListResult.h" #include "model/ReleaseInstanceRequest.h" #include "model/ReleaseInstanceResult.h" #include "model/DescribeVulLevelRequest.h" @@ -282,6 +346,8 @@ #include "model/RenewInstanceResult.h" #include "model/OperateResultRequest.h" #include "model/OperateResultResult.h" +#include "model/DescribeCustomizeReportChartListRequest.h" +#include "model/DescribeCustomizeReportChartListResult.h" #include "model/RollbackSuspEventQuaraFileRequest.h" #include "model/RollbackSuspEventQuaraFileResult.h" #include "model/DescribeLogstoreStorageRequest.h" @@ -310,18 +376,22 @@ #include "model/DescribeGroupStructResult.h" #include "model/DescribeRiskWhiteListRequest.h" #include "model/DescribeRiskWhiteListResult.h" +#include "model/OperationCustomizeReportChartRequest.h" +#include "model/OperationCustomizeReportChartResult.h" #include "model/ModifyAssetGroupRequest.h" #include "model/ModifyAssetGroupResult.h" +#include "model/DescribeVulRelatedProcessRequest.h" +#include "model/DescribeVulRelatedProcessResult.h" #include "model/DescribeSasLeftConditionRequest.h" #include "model/DescribeSasLeftConditionResult.h" #include "model/DescribeSasAssetStatisticsColumnRequest.h" #include "model/DescribeSasAssetStatisticsColumnResult.h" #include "model/CreateOrUpdateRuleRequest.h" #include "model/CreateOrUpdateRuleResult.h" -#include "model/ModifyLogMetaStatusRequest.h" -#include "model/ModifyLogMetaStatusResult.h" #include "model/DescribeYesterdayStatisticsRequest.h" #include "model/DescribeYesterdayStatisticsResult.h" +#include "model/ModifyLogMetaStatusRequest.h" +#include "model/ModifyLogMetaStatusResult.h" #include "model/DescribeSuspiciousExportInfoRequest.h" #include "model/DescribeSuspiciousExportInfoResult.h" #include "model/DeleteScreenSettingRequest.h" @@ -348,28 +418,34 @@ #include "model/TransformLeakageResult.h" #include "model/DescribeAssetListRequest.h" #include "model/DescribeAssetListResult.h" -#include "model/ModifyMachineConfigRequest.h" -#include "model/ModifyMachineConfigResult.h" #include "model/DescribeVersionConfigRequest.h" #include "model/DescribeVersionConfigResult.h" -#include "model/DescribeMacConfigRequest.h" -#include "model/DescribeMacConfigResult.h" +#include "model/ModifyMachineConfigRequest.h" +#include "model/ModifyMachineConfigResult.h" +#include "model/AddEventProcessRequest.h" +#include "model/AddEventProcessResult.h" +#include "model/DescribeChartDataRequest.h" +#include "model/DescribeChartDataResult.h" #include "model/RollbackQuaraFileRequest.h" #include "model/RollbackQuaraFileResult.h" +#include "model/DescribeMacConfigRequest.h" +#include "model/DescribeMacConfigResult.h" #include "model/DescribeApiBuySummaryRequest.h" #include "model/DescribeApiBuySummaryResult.h" -#include "model/DescribeWebLockMachineListRequest.h" -#include "model/DescribeWebLockMachineListResult.h" #include "model/DeleteVulBatchRequest.h" #include "model/DeleteVulBatchResult.h" +#include "model/DescribeWebLockMachineListRequest.h" +#include "model/DescribeWebLockMachineListResult.h" #include "model/ModifyWebLockStatusRequest.h" #include "model/ModifyWebLockStatusResult.h" #include "model/UpdateWhiteListProcessStatusRequest.h" #include "model/UpdateWhiteListProcessStatusResult.h" -#include "model/DescribeScreenSettingRequest.h" -#include "model/DescribeScreenSettingResult.h" #include "model/CreateLogQueryRequest.h" #include "model/CreateLogQueryResult.h" +#include "model/DescribeAccessKeyLeakDetailRequest.h" +#include "model/DescribeAccessKeyLeakDetailResult.h" +#include "model/DescribeScreenSettingRequest.h" +#include "model/DescribeScreenSettingResult.h" #include "model/DescribeWarningRequest.h" #include "model/DescribeWarningResult.h" #include "model/DescribeWhiteListProcessRequest.h" @@ -396,10 +472,10 @@ #include "model/DescribeStratetyDetailResult.h" #include "model/DescribeHistogramRequest.h" #include "model/DescribeHistogramResult.h" -#include "model/DescribeDingTalkRequest.h" -#include "model/DescribeDingTalkResult.h" #include "model/DescribeLoginLogsRequest.h" #include "model/DescribeLoginLogsResult.h" +#include "model/DescribeDingTalkRequest.h" +#include "model/DescribeDingTalkResult.h" #include "model/DescribeMetaDataRequest.h" #include "model/DescribeMetaDataResult.h" #include "model/DescribeWebLockStatusRequest.h" @@ -410,30 +486,32 @@ #include "model/DescribeNsasSuspEventTypeResult.h" #include "model/ModifyScreenSettingRequest.h" #include "model/ModifyScreenSettingResult.h" -#include "model/ModifyStrategyRequest.h" -#include "model/ModifyStrategyResult.h" #include "model/DescribeEmgNoticeRequest.h" #include "model/DescribeEmgNoticeResult.h" +#include "model/ModifyStrategyRequest.h" +#include "model/ModifyStrategyResult.h" #include "model/DescribeScreenOperateInfoRequest.h" #include "model/DescribeScreenOperateInfoResult.h" #include "model/DescribeJoinRuleListRequest.h" #include "model/DescribeJoinRuleListResult.h" #include "model/DescribeSuspEventQuaraFilesRequest.h" #include "model/DescribeSuspEventQuaraFilesResult.h" -#include "model/ValidateHcWarningsRequest.h" -#include "model/ValidateHcWarningsResult.h" #include "model/CreateOrUpdateJoinRuleRequest.h" #include "model/CreateOrUpdateJoinRuleResult.h" +#include "model/ValidateHcWarningsRequest.h" +#include "model/ValidateHcWarningsResult.h" #include "model/AutoUpgradeSasRequest.h" #include "model/AutoUpgradeSasResult.h" +#include "model/ModifyRefreshProcessInfoRequest.h" +#include "model/ModifyRefreshProcessInfoResult.h" #include "model/DescribeEmgUserAgreementRequest.h" #include "model/DescribeEmgUserAgreementResult.h" -#include "model/ModifyWebLockMachineListRequest.h" -#include "model/ModifyWebLockMachineListResult.h" #include "model/ModifyEmgVulSubmitRequest.h" #include "model/ModifyEmgVulSubmitResult.h" #include "model/DeleteLogQueryRequest.h" #include "model/DeleteLogQueryResult.h" +#include "model/ModifyWebLockMachineListRequest.h" +#include "model/ModifyWebLockMachineListResult.h" #include "model/ModifyTargetConfigRequest.h" #include "model/ModifyTargetConfigResult.h" #include "model/IgnoreHcCheckWarningsRequest.h" @@ -442,34 +520,40 @@ #include "model/DescribeExportInfoResult.h" #include "model/DescribeSuspEventUserSettingRequest.h" #include "model/DescribeSuspEventUserSettingResult.h" -#include "model/DescribeWhiteListStrategyCountRequest.h" -#include "model/DescribeWhiteListStrategyCountResult.h" #include "model/DescribeVulConfigRequest.h" #include "model/DescribeVulConfigResult.h" +#include "model/DescribeWhiteListStrategyCountRequest.h" +#include "model/DescribeWhiteListStrategyCountResult.h" #include "model/ModifyWebLockRefreshRequest.h" #include "model/ModifyWebLockRefreshResult.h" #include "model/DescribeEventCountCurveRequest.h" #include "model/DescribeEventCountCurveResult.h" #include "model/DescribeWhiteListAssetRequest.h" #include "model/DescribeWhiteListAssetResult.h" +#include "model/UpdateCustomizeReportStatusRequest.h" +#include "model/UpdateCustomizeReportStatusResult.h" #include "model/ModifyClearLogstoreStorageRequest.h" #include "model/ModifyClearLogstoreStorageResult.h" #include "model/ModifyStrategyTargetRequest.h" #include "model/ModifyStrategyTargetResult.h" #include "model/DescribeCheckWarningsRequest.h" #include "model/DescribeCheckWarningsResult.h" -#include "model/DescribeSecurityStatInfoRequest.h" -#include "model/DescribeSecurityStatInfoResult.h" +#include "model/DeleteSuspEventNodeRequest.h" +#include "model/DeleteSuspEventNodeResult.h" +#include "model/DescribeHostStatisticsRequest.h" +#include "model/DescribeHostStatisticsResult.h" #include "model/SaveWhiteListStrategyRequest.h" #include "model/SaveWhiteListStrategyResult.h" +#include "model/DescribeSecurityStatInfoRequest.h" +#include "model/DescribeSecurityStatInfoResult.h" #include "model/DescribeFilterFieldsRequest.h" #include "model/DescribeFilterFieldsResult.h" +#include "model/DescribeInstanceStatisticsRequest.h" +#include "model/DescribeInstanceStatisticsResult.h" #include "model/DescribeScreenSecurityStatInfoRequest.h" #include "model/DescribeScreenSecurityStatInfoResult.h" #include "model/OperateSuspiciousOverallConfigRequest.h" #include "model/OperateSuspiciousOverallConfigResult.h" -#include "model/DescribeInstanceStatisticsRequest.h" -#include "model/DescribeInstanceStatisticsResult.h" namespace AlibabaCloud @@ -488,15 +572,21 @@ namespace AlibabaCloud typedef Outcome DescribeTraceInfoNodeOutcome; typedef std::future DescribeTraceInfoNodeOutcomeCallable; typedef std::function&)> DescribeTraceInfoNodeAsyncHandler; + typedef Outcome SaveCustomizeReportConfigOutcome; + typedef std::future SaveCustomizeReportConfigOutcomeCallable; + typedef std::function&)> SaveCustomizeReportConfigAsyncHandler; + typedef Outcome DescribeScreenCloudHcRiskOutcome; + typedef std::future DescribeScreenCloudHcRiskOutcomeCallable; + typedef std::function&)> DescribeScreenCloudHcRiskAsyncHandler; typedef Outcome DescribeScreenAttackAnalysisDataOutcome; typedef std::future DescribeScreenAttackAnalysisDataOutcomeCallable; typedef std::function&)> DescribeScreenAttackAnalysisDataAsyncHandler; - typedef Outcome DescribeAutoDelConfigOutcome; - typedef std::future DescribeAutoDelConfigOutcomeCallable; - typedef std::function&)> DescribeAutoDelConfigAsyncHandler; typedef Outcome DescribeVulListOutcome; typedef std::future DescribeVulListOutcomeCallable; typedef std::function&)> DescribeVulListAsyncHandler; + typedef Outcome DescribeAutoDelConfigOutcome; + typedef std::future DescribeAutoDelConfigOutcomeCallable; + typedef std::function&)> DescribeAutoDelConfigAsyncHandler; typedef Outcome ModifyWebLockUpdateConfigOutcome; typedef std::future ModifyWebLockUpdateConfigOutcomeCallable; typedef std::function&)> ModifyWebLockUpdateConfigAsyncHandler; @@ -521,6 +611,12 @@ namespace AlibabaCloud typedef Outcome DescribeEcsStsStatusOutcome; typedef std::future DescribeEcsStsStatusOutcomeCallable; typedef std::function&)> DescribeEcsStsStatusAsyncHandler; + typedef Outcome DescribeCustomizeReportListOutcome; + typedef std::future DescribeCustomizeReportListOutcomeCallable; + typedef std::function&)> DescribeCustomizeReportListAsyncHandler; + typedef Outcome DescribeSupervisonInfoOutcome; + typedef std::future DescribeSupervisonInfoOutcomeCallable; + typedef std::function&)> DescribeSupervisonInfoAsyncHandler; typedef Outcome UpdateWhiteListStrategyRelationOutcome; typedef std::future UpdateWhiteListStrategyRelationOutcomeCallable; typedef std::function&)> UpdateWhiteListStrategyRelationAsyncHandler; @@ -536,18 +632,21 @@ namespace AlibabaCloud typedef Outcome ModifyVulLevelOutcome; typedef std::future ModifyVulLevelOutcomeCallable; typedef std::function&)> ModifyVulLevelAsyncHandler; + typedef Outcome DescribeScreenOssUploadInfoOutcome; + typedef std::future DescribeScreenOssUploadInfoOutcomeCallable; + typedef std::function&)> DescribeScreenOssUploadInfoAsyncHandler; typedef Outcome ModifyVulTargetOutcome; typedef std::future ModifyVulTargetOutcomeCallable; typedef std::function&)> ModifyVulTargetAsyncHandler; typedef Outcome ModifyBatchIgnoreVulOutcome; typedef std::future ModifyBatchIgnoreVulOutcomeCallable; typedef std::function&)> ModifyBatchIgnoreVulAsyncHandler; - typedef Outcome DescribeSummaryInfoOutcome; - typedef std::future DescribeSummaryInfoOutcomeCallable; - typedef std::function&)> DescribeSummaryInfoAsyncHandler; typedef Outcome DescribeStrategyProcessOutcome; typedef std::future DescribeStrategyProcessOutcomeCallable; typedef std::function&)> DescribeStrategyProcessAsyncHandler; + typedef Outcome DescribeSummaryInfoOutcome; + typedef std::future DescribeSummaryInfoOutcomeCallable; + typedef std::function&)> DescribeSummaryInfoAsyncHandler; typedef Outcome DescribeSuspTrendStatisticsOutcome; typedef std::future DescribeSuspTrendStatisticsOutcomeCallable; typedef std::function&)> DescribeSuspTrendStatisticsAsyncHandler; @@ -557,12 +656,27 @@ namespace AlibabaCloud typedef Outcome DescribeResultListOutcome; typedef std::future DescribeResultListOutcomeCallable; typedef std::function&)> DescribeResultListAsyncHandler; + typedef Outcome DescribeGrayFuncOutcome; + typedef std::future DescribeGrayFuncOutcomeCallable; + typedef std::function&)> DescribeGrayFuncAsyncHandler; + typedef Outcome DescribeCustomizeReportChartDataOutcome; + typedef std::future DescribeCustomizeReportChartDataOutcomeCallable; + typedef std::function&)> DescribeCustomizeReportChartDataAsyncHandler; + typedef Outcome DescribeScreenBizStatSimpleQueryResultOutcome; + typedef std::future DescribeScreenBizStatSimpleQueryResultOutcomeCallable; + typedef std::function&)> DescribeScreenBizStatSimpleQueryResultAsyncHandler; typedef Outcome DownloadLogOutcome; typedef std::future DownloadLogOutcomeCallable; typedef std::function&)> DownloadLogAsyncHandler; typedef Outcome DescribeTargetConfigOutcome; typedef std::future DescribeTargetConfigOutcomeCallable; typedef std::function&)> DescribeTargetConfigAsyncHandler; + typedef Outcome DescribeAccesskeyRunInfoOutcome; + typedef std::future DescribeAccesskeyRunInfoOutcomeCallable; + typedef std::function&)> DescribeAccesskeyRunInfoAsyncHandler; + typedef Outcome DescribeScreenFlowRequestCountOutcome; + typedef std::future DescribeScreenFlowRequestCountOutcomeCallable; + typedef std::function&)> DescribeScreenFlowRequestCountAsyncHandler; typedef Outcome DescribeVulNumStatisticsOutcome; typedef std::future DescribeVulNumStatisticsOutcomeCallable; typedef std::function&)> DescribeVulNumStatisticsAsyncHandler; @@ -572,6 +686,9 @@ namespace AlibabaCloud typedef Outcome GetAccountStatisticsOutcome; typedef std::future GetAccountStatisticsOutcomeCallable; typedef std::function&)> GetAccountStatisticsAsyncHandler; + typedef Outcome DescribeScreenEmerRiskOutcome; + typedef std::future DescribeScreenEmerRiskOutcomeCallable; + typedef std::function&)> DescribeScreenEmerRiskAsyncHandler; typedef Outcome DescribeUuidConfigOutcome; typedef std::future DescribeUuidConfigOutcomeCallable; typedef std::function&)> DescribeUuidConfigAsyncHandler; @@ -596,15 +713,18 @@ namespace AlibabaCloud typedef Outcome DescribeTraceInfoNodeListOutcome; typedef std::future DescribeTraceInfoNodeListOutcomeCallable; typedef std::function&)> DescribeTraceInfoNodeListAsyncHandler; - typedef Outcome DescribeAnalysisSlsIndexOutcome; - typedef std::future DescribeAnalysisSlsIndexOutcomeCallable; - typedef std::function&)> DescribeAnalysisSlsIndexAsyncHandler; typedef Outcome ModifyWebLockCreateConfigOutcome; typedef std::future ModifyWebLockCreateConfigOutcomeCallable; typedef std::function&)> ModifyWebLockCreateConfigAsyncHandler; + typedef Outcome DescribeAnalysisSlsIndexOutcome; + typedef std::future DescribeAnalysisSlsIndexOutcomeCallable; + typedef std::function&)> DescribeAnalysisSlsIndexAsyncHandler; typedef Outcome DeleteRuleGroupOutcome; typedef std::future DeleteRuleGroupOutcomeCallable; typedef std::function&)> DeleteRuleGroupAsyncHandler; + typedef Outcome DescribeScreenDataMapOutcome; + typedef std::future DescribeScreenDataMapOutcomeCallable; + typedef std::function&)> DescribeScreenDataMapAsyncHandler; typedef Outcome DescribeStatisticsOutcome; typedef std::future DescribeStatisticsOutcomeCallable; typedef std::function&)> DescribeStatisticsAsyncHandler; @@ -614,18 +734,24 @@ namespace AlibabaCloud typedef Outcome CreateSuspiciousExportOutcome; typedef std::future CreateSuspiciousExportOutcomeCallable; typedef std::function&)> CreateSuspiciousExportAsyncHandler; + typedef Outcome DescribeWebshellListOutcome; + typedef std::future DescribeWebshellListOutcomeCallable; + typedef std::function&)> DescribeWebshellListAsyncHandler; + typedef Outcome DescribeBizStatSimpleQueryResultOutcome; + typedef std::future DescribeBizStatSimpleQueryResultOutcomeCallable; + typedef std::function&)> DescribeBizStatSimpleQueryResultAsyncHandler; typedef Outcome OperateVulOutcome; typedef std::future OperateVulOutcomeCallable; typedef std::function&)> OperateVulAsyncHandler; typedef Outcome GetCrackStatisticsOutcome; typedef std::future GetCrackStatisticsOutcomeCallable; typedef std::function&)> GetCrackStatisticsAsyncHandler; - typedef Outcome DescribeConcernNecessityOutcome; - typedef std::future DescribeConcernNecessityOutcomeCallable; - typedef std::function&)> DescribeConcernNecessityAsyncHandler; typedef Outcome OperateAgentClientInstallOutcome; typedef std::future OperateAgentClientInstallOutcomeCallable; typedef std::function&)> OperateAgentClientInstallAsyncHandler; + typedef Outcome DescribeConcernNecessityOutcome; + typedef std::future DescribeConcernNecessityOutcomeCallable; + typedef std::function&)> DescribeConcernNecessityAsyncHandler; typedef Outcome DescribeScreenScoreThreadOutcome; typedef std::future DescribeScreenScoreThreadOutcomeCallable; typedef std::function&)> DescribeScreenScoreThreadAsyncHandler; @@ -641,18 +767,24 @@ namespace AlibabaCloud typedef Outcome DescribeTopicListOutcome; typedef std::future DescribeTopicListOutcomeCallable; typedef std::function&)> DescribeTopicListAsyncHandler; - typedef Outcome DescribeAssetDetailByUuidOutcome; - typedef std::future DescribeAssetDetailByUuidOutcomeCallable; - typedef std::function&)> DescribeAssetDetailByUuidAsyncHandler; typedef Outcome DescribeScreenVersionConfigOutcome; typedef std::future DescribeScreenVersionConfigOutcomeCallable; typedef std::function&)> DescribeScreenVersionConfigAsyncHandler; + typedef Outcome DescribeAssetDetailByUuidOutcome; + typedef std::future DescribeAssetDetailByUuidOutcomeCallable; + typedef std::function&)> DescribeAssetDetailByUuidAsyncHandler; + typedef Outcome CreateScreenSettingOutcome; + typedef std::future CreateScreenSettingOutcomeCallable; + typedef std::function&)> CreateScreenSettingAsyncHandler; typedef Outcome DescribeVulExportInfoOutcome; typedef std::future DescribeVulExportInfoOutcomeCallable; typedef std::function&)> DescribeVulExportInfoAsyncHandler; typedef Outcome DeleteRuleOutcome; typedef std::future DeleteRuleOutcomeCallable; typedef std::function&)> DeleteRuleAsyncHandler; + typedef Outcome DescribeChartListOutcome; + typedef std::future DescribeChartListOutcomeCallable; + typedef std::function&)> DescribeChartListAsyncHandler; typedef Outcome DescribeSuspEventDetailOutcome; typedef std::future DescribeSuspEventDetailOutcomeCallable; typedef std::function&)> DescribeSuspEventDetailAsyncHandler; @@ -680,12 +812,12 @@ namespace AlibabaCloud typedef Outcome DescribeLogItemsOutcome; typedef std::future DescribeLogItemsOutcomeCallable; typedef std::function&)> DescribeLogItemsAsyncHandler; - typedef Outcome DescribeWebLockEventsOutcome; - typedef std::future DescribeWebLockEventsOutcomeCallable; - typedef std::function&)> DescribeWebLockEventsAsyncHandler; typedef Outcome ExecStrategyOutcome; typedef std::future ExecStrategyOutcomeCallable; typedef std::function&)> ExecStrategyAsyncHandler; + typedef Outcome DescribeWebLockEventsOutcome; + typedef std::future DescribeWebLockEventsOutcomeCallable; + typedef std::function&)> DescribeWebLockEventsAsyncHandler; typedef Outcome DescribeSuspEventExportInfoOutcome; typedef std::future DescribeSuspEventExportInfoOutcomeCallable; typedef std::function&)> DescribeSuspEventExportInfoAsyncHandler; @@ -695,12 +827,21 @@ namespace AlibabaCloud typedef Outcome DescribeSasAssetStatisticsOutcome; typedef std::future DescribeSasAssetStatisticsOutcomeCallable; typedef std::function&)> DescribeSasAssetStatisticsAsyncHandler; + typedef Outcome SendCustomizeReportOutcome; + typedef std::future SendCustomizeReportOutcomeCallable; + typedef std::function&)> SendCustomizeReportAsyncHandler; typedef Outcome DescribeDefenceThreadOutcome; typedef std::future DescribeDefenceThreadOutcomeCallable; typedef std::function&)> DescribeDefenceThreadAsyncHandler; + typedef Outcome DescribeScreenTopRequestAndFlowOutcome; + typedef std::future DescribeScreenTopRequestAndFlowOutcomeCallable; + typedef std::function&)> DescribeScreenTopRequestAndFlowAsyncHandler; typedef Outcome CreateVulWhitelistOutcome; typedef std::future CreateVulWhitelistOutcomeCallable; typedef std::function&)> CreateVulWhitelistAsyncHandler; + typedef Outcome DescribeLatestActionsOutcome; + typedef std::future DescribeLatestActionsOutcomeCallable; + typedef std::function&)> DescribeLatestActionsAsyncHandler; typedef Outcome ModifyConcernNecessityOutcome; typedef std::future ModifyConcernNecessityOutcomeCallable; typedef std::function&)> ModifyConcernNecessityAsyncHandler; @@ -713,12 +854,21 @@ namespace AlibabaCloud typedef Outcome GetStatisticsOutcome; typedef std::future GetStatisticsOutcomeCallable; typedef std::function&)> GetStatisticsAsyncHandler; - typedef Outcome DescribesummaryOutcome; - typedef std::future DescribesummaryOutcomeCallable; - typedef std::function&)> DescribesummaryAsyncHandler; typedef Outcome DescribeSuspEventsOutcome; typedef std::future DescribeSuspEventsOutcomeCallable; typedef std::function&)> DescribeSuspEventsAsyncHandler; + typedef Outcome DescribesummaryOutcome; + typedef std::future DescribesummaryOutcomeCallable; + typedef std::function&)> DescribesummaryAsyncHandler; + typedef Outcome ModifyAccessKeyLeakDealOutcome; + typedef std::future ModifyAccessKeyLeakDealOutcomeCallable; + typedef std::function&)> ModifyAccessKeyLeakDealAsyncHandler; + typedef Outcome DescribeCheckWarningCountOutcome; + typedef std::future DescribeCheckWarningCountOutcomeCallable; + typedef std::function&)> DescribeCheckWarningCountAsyncHandler; + typedef Outcome CopyCustomizeReportConfigOutcome; + typedef std::future CopyCustomizeReportConfigOutcomeCallable; + typedef std::function&)> CopyCustomizeReportConfigAsyncHandler; typedef Outcome CreateOrUpdateDataSourceOutcome; typedef std::future CreateOrUpdateDataSourceOutcomeCallable; typedef std::function&)> CreateOrUpdateDataSourceAsyncHandler; @@ -737,12 +887,12 @@ namespace AlibabaCloud typedef Outcome DescribeTraceInfoDetailOutcome; typedef std::future DescribeTraceInfoDetailOutcomeCallable; typedef std::function&)> DescribeTraceInfoDetailAsyncHandler; - typedef Outcome DescribeGroupListOutcome; - typedef std::future DescribeGroupListOutcomeCallable; - typedef std::function&)> DescribeGroupListAsyncHandler; typedef Outcome DescribeCanTrySasOutcome; typedef std::future DescribeCanTrySasOutcomeCallable; typedef std::function&)> DescribeCanTrySasAsyncHandler; + typedef Outcome DescribeGroupListOutcome; + typedef std::future DescribeGroupListOutcomeCallable; + typedef std::function&)> DescribeGroupListAsyncHandler; typedef Outcome DescribeTargetOutcome; typedef std::future DescribeTargetOutcomeCallable; typedef std::function&)> DescribeTargetAsyncHandler; @@ -764,30 +914,51 @@ namespace AlibabaCloud typedef Outcome ModifySearchConditionOutcome; typedef std::future ModifySearchConditionOutcomeCallable; typedef std::function&)> ModifySearchConditionAsyncHandler; + typedef Outcome DescribeScreenTitlesOutcome; + typedef std::future DescribeScreenTitlesOutcomeCallable; + typedef std::function&)> DescribeScreenTitlesAsyncHandler; typedef Outcome DescribeWhiteListStrategyUuidCountOutcome; typedef std::future DescribeWhiteListStrategyUuidCountOutcomeCallable; typedef std::function&)> DescribeWhiteListStrategyUuidCountAsyncHandler; + typedef Outcome DeleteCustomizeReportOutcome; + typedef std::future DeleteCustomizeReportOutcomeCallable; + typedef std::function&)> DeleteCustomizeReportAsyncHandler; typedef Outcome DescribeGroupedVulOutcome; typedef std::future DescribeGroupedVulOutcomeCallable; typedef std::function&)> DescribeGroupedVulAsyncHandler; typedef Outcome ModifyWebLockDeleteConfigOutcome; typedef std::future ModifyWebLockDeleteConfigOutcomeCallable; typedef std::function&)> ModifyWebLockDeleteConfigAsyncHandler; + typedef Outcome ModifyAccessKeyLeakInstRunOutcome; + typedef std::future ModifyAccessKeyLeakInstRunOutcomeCallable; + typedef std::function&)> ModifyAccessKeyLeakInstRunAsyncHandler; + typedef Outcome CreateSuspEventNoteOutcome; + typedef std::future CreateSuspEventNoteOutcomeCallable; + typedef std::function&)> CreateSuspEventNoteAsyncHandler; typedef Outcome CreateUserWhiteListOutcome; typedef std::future CreateUserWhiteListOutcomeCallable; typedef std::function&)> CreateUserWhiteListAsyncHandler; typedef Outcome DescribeSecureSuggestionOutcome; typedef std::future DescribeSecureSuggestionOutcomeCallable; typedef std::function&)> DescribeSecureSuggestionAsyncHandler; + typedef Outcome DescribeCustomizeReportConfigDetailOutcome; + typedef std::future DescribeCustomizeReportConfigDetailOutcomeCallable; + typedef std::function&)> DescribeCustomizeReportConfigDetailAsyncHandler; + typedef Outcome DescribeScreenRequestTopTypeOutcome; + typedef std::future DescribeScreenRequestTopTypeOutcomeCallable; + typedef std::function&)> DescribeScreenRequestTopTypeAsyncHandler; typedef Outcome DescribeSuspiciousOverallConfigOutcome; typedef std::future DescribeSuspiciousOverallConfigOutcomeCallable; typedef std::function&)> DescribeSuspiciousOverallConfigAsyncHandler; - typedef Outcome DescribeAnalysisCurveOutcome; - typedef std::future DescribeAnalysisCurveOutcomeCallable; - typedef std::function&)> DescribeAnalysisCurveAsyncHandler; + typedef Outcome DescribeAccesskeyLeakListOutcome; + typedef std::future DescribeAccesskeyLeakListOutcomeCallable; + typedef std::function&)> DescribeAccesskeyLeakListAsyncHandler; typedef Outcome DescribeScreenAlarmEventListOutcome; typedef std::future DescribeScreenAlarmEventListOutcomeCallable; typedef std::function&)> DescribeScreenAlarmEventListAsyncHandler; + typedef Outcome DescribeAnalysisCurveOutcome; + typedef std::future DescribeAnalysisCurveOutcomeCallable; + typedef std::function&)> DescribeAnalysisCurveAsyncHandler; typedef Outcome CreatScreenSettingOutcome; typedef std::future CreatScreenSettingOutcomeCallable; typedef std::function&)> CreatScreenSettingAsyncHandler; @@ -821,12 +992,15 @@ namespace AlibabaCloud typedef Outcome DescribeQuaraFileOutcome; typedef std::future DescribeQuaraFileOutcomeCallable; typedef std::function&)> DescribeQuaraFileAsyncHandler; - typedef Outcome DescribeTotalStatisticsOutcome; - typedef std::future DescribeTotalStatisticsOutcomeCallable; - typedef std::function&)> DescribeTotalStatisticsAsyncHandler; + typedef Outcome DescribeScreenCityMonitorDataOutcome; + typedef std::future DescribeScreenCityMonitorDataOutcomeCallable; + typedef std::function&)> DescribeScreenCityMonitorDataAsyncHandler; typedef Outcome DescribeWhiteListStrategyStatisticsOutcome; typedef std::future DescribeWhiteListStrategyStatisticsOutcomeCallable; typedef std::function&)> DescribeWhiteListStrategyStatisticsAsyncHandler; + typedef Outcome DescribeTotalStatisticsOutcome; + typedef std::future DescribeTotalStatisticsOutcomeCallable; + typedef std::function&)> DescribeTotalStatisticsAsyncHandler; typedef Outcome AutoUpgradeToSasAdvancedVersionOutcome; typedef std::future AutoUpgradeToSasAdvancedVersionOutcomeCallable; typedef std::function&)> AutoUpgradeToSasAdvancedVersionAsyncHandler; @@ -839,15 +1013,21 @@ namespace AlibabaCloud typedef Outcome DescribeWebLockConfigListOutcome; typedef std::future DescribeWebLockConfigListOutcomeCallable; typedef std::function&)> DescribeWebLockConfigListAsyncHandler; + typedef Outcome DescribeVulStatisticsOutcome; + typedef std::future DescribeVulStatisticsOutcomeCallable; + typedef std::function&)> DescribeVulStatisticsAsyncHandler; typedef Outcome ModifyAutoDelConfigOutcome; typedef std::future ModifyAutoDelConfigOutcomeCallable; typedef std::function&)> ModifyAutoDelConfigAsyncHandler; - typedef Outcome DescribeUserSettingOutcome; - typedef std::future DescribeUserSettingOutcomeCallable; - typedef std::function&)> DescribeUserSettingAsyncHandler; typedef Outcome DescribeVulBatchOutcome; typedef std::future DescribeVulBatchOutcomeCallable; typedef std::function&)> DescribeVulBatchAsyncHandler; + typedef Outcome DescribeUserSettingOutcome; + typedef std::future DescribeUserSettingOutcomeCallable; + typedef std::function&)> DescribeUserSettingAsyncHandler; + typedef Outcome DescribeEntityListOutcome; + typedef std::future DescribeEntityListOutcomeCallable; + typedef std::function&)> DescribeEntityListAsyncHandler; typedef Outcome ReleaseInstanceOutcome; typedef std::future ReleaseInstanceOutcomeCallable; typedef std::function&)> ReleaseInstanceAsyncHandler; @@ -869,6 +1049,9 @@ namespace AlibabaCloud typedef Outcome OperateResultOutcome; typedef std::future OperateResultOutcomeCallable; typedef std::function&)> OperateResultAsyncHandler; + typedef Outcome DescribeCustomizeReportChartListOutcome; + typedef std::future DescribeCustomizeReportChartListOutcomeCallable; + typedef std::function&)> DescribeCustomizeReportChartListAsyncHandler; typedef Outcome RollbackSuspEventQuaraFileOutcome; typedef std::future RollbackSuspEventQuaraFileOutcomeCallable; typedef std::function&)> RollbackSuspEventQuaraFileAsyncHandler; @@ -911,9 +1094,15 @@ namespace AlibabaCloud typedef Outcome DescribeRiskWhiteListOutcome; typedef std::future DescribeRiskWhiteListOutcomeCallable; typedef std::function&)> DescribeRiskWhiteListAsyncHandler; + typedef Outcome OperationCustomizeReportChartOutcome; + typedef std::future OperationCustomizeReportChartOutcomeCallable; + typedef std::function&)> OperationCustomizeReportChartAsyncHandler; typedef Outcome ModifyAssetGroupOutcome; typedef std::future ModifyAssetGroupOutcomeCallable; typedef std::function&)> ModifyAssetGroupAsyncHandler; + typedef Outcome DescribeVulRelatedProcessOutcome; + typedef std::future DescribeVulRelatedProcessOutcomeCallable; + typedef std::function&)> DescribeVulRelatedProcessAsyncHandler; typedef Outcome DescribeSasLeftConditionOutcome; typedef std::future DescribeSasLeftConditionOutcomeCallable; typedef std::function&)> DescribeSasLeftConditionAsyncHandler; @@ -923,12 +1112,12 @@ namespace AlibabaCloud typedef Outcome CreateOrUpdateRuleOutcome; typedef std::future CreateOrUpdateRuleOutcomeCallable; typedef std::function&)> CreateOrUpdateRuleAsyncHandler; - typedef Outcome ModifyLogMetaStatusOutcome; - typedef std::future ModifyLogMetaStatusOutcomeCallable; - typedef std::function&)> ModifyLogMetaStatusAsyncHandler; typedef Outcome DescribeYesterdayStatisticsOutcome; typedef std::future DescribeYesterdayStatisticsOutcomeCallable; typedef std::function&)> DescribeYesterdayStatisticsAsyncHandler; + typedef Outcome ModifyLogMetaStatusOutcome; + typedef std::future ModifyLogMetaStatusOutcomeCallable; + typedef std::function&)> ModifyLogMetaStatusAsyncHandler; typedef Outcome DescribeSuspiciousExportInfoOutcome; typedef std::future DescribeSuspiciousExportInfoOutcomeCallable; typedef std::function&)> DescribeSuspiciousExportInfoAsyncHandler; @@ -968,39 +1157,48 @@ namespace AlibabaCloud typedef Outcome DescribeAssetListOutcome; typedef std::future DescribeAssetListOutcomeCallable; typedef std::function&)> DescribeAssetListAsyncHandler; - typedef Outcome ModifyMachineConfigOutcome; - typedef std::future ModifyMachineConfigOutcomeCallable; - typedef std::function&)> ModifyMachineConfigAsyncHandler; typedef Outcome DescribeVersionConfigOutcome; typedef std::future DescribeVersionConfigOutcomeCallable; typedef std::function&)> DescribeVersionConfigAsyncHandler; - typedef Outcome DescribeMacConfigOutcome; - typedef std::future DescribeMacConfigOutcomeCallable; - typedef std::function&)> DescribeMacConfigAsyncHandler; + typedef Outcome ModifyMachineConfigOutcome; + typedef std::future ModifyMachineConfigOutcomeCallable; + typedef std::function&)> ModifyMachineConfigAsyncHandler; + typedef Outcome AddEventProcessOutcome; + typedef std::future AddEventProcessOutcomeCallable; + typedef std::function&)> AddEventProcessAsyncHandler; + typedef Outcome DescribeChartDataOutcome; + typedef std::future DescribeChartDataOutcomeCallable; + typedef std::function&)> DescribeChartDataAsyncHandler; typedef Outcome RollbackQuaraFileOutcome; typedef std::future RollbackQuaraFileOutcomeCallable; typedef std::function&)> RollbackQuaraFileAsyncHandler; + typedef Outcome DescribeMacConfigOutcome; + typedef std::future DescribeMacConfigOutcomeCallable; + typedef std::function&)> DescribeMacConfigAsyncHandler; typedef Outcome DescribeApiBuySummaryOutcome; typedef std::future DescribeApiBuySummaryOutcomeCallable; typedef std::function&)> DescribeApiBuySummaryAsyncHandler; - typedef Outcome DescribeWebLockMachineListOutcome; - typedef std::future DescribeWebLockMachineListOutcomeCallable; - typedef std::function&)> DescribeWebLockMachineListAsyncHandler; typedef Outcome DeleteVulBatchOutcome; typedef std::future DeleteVulBatchOutcomeCallable; typedef std::function&)> DeleteVulBatchAsyncHandler; + typedef Outcome DescribeWebLockMachineListOutcome; + typedef std::future DescribeWebLockMachineListOutcomeCallable; + typedef std::function&)> DescribeWebLockMachineListAsyncHandler; typedef Outcome ModifyWebLockStatusOutcome; typedef std::future ModifyWebLockStatusOutcomeCallable; typedef std::function&)> ModifyWebLockStatusAsyncHandler; typedef Outcome UpdateWhiteListProcessStatusOutcome; typedef std::future UpdateWhiteListProcessStatusOutcomeCallable; typedef std::function&)> UpdateWhiteListProcessStatusAsyncHandler; - typedef Outcome DescribeScreenSettingOutcome; - typedef std::future DescribeScreenSettingOutcomeCallable; - typedef std::function&)> DescribeScreenSettingAsyncHandler; typedef Outcome CreateLogQueryOutcome; typedef std::future CreateLogQueryOutcomeCallable; typedef std::function&)> CreateLogQueryAsyncHandler; + typedef Outcome DescribeAccessKeyLeakDetailOutcome; + typedef std::future DescribeAccessKeyLeakDetailOutcomeCallable; + typedef std::function&)> DescribeAccessKeyLeakDetailAsyncHandler; + typedef Outcome DescribeScreenSettingOutcome; + typedef std::future DescribeScreenSettingOutcomeCallable; + typedef std::function&)> DescribeScreenSettingAsyncHandler; typedef Outcome DescribeWarningOutcome; typedef std::future DescribeWarningOutcomeCallable; typedef std::function&)> DescribeWarningAsyncHandler; @@ -1040,12 +1238,12 @@ namespace AlibabaCloud typedef Outcome DescribeHistogramOutcome; typedef std::future DescribeHistogramOutcomeCallable; typedef std::function&)> DescribeHistogramAsyncHandler; - typedef Outcome DescribeDingTalkOutcome; - typedef std::future DescribeDingTalkOutcomeCallable; - typedef std::function&)> DescribeDingTalkAsyncHandler; typedef Outcome DescribeLoginLogsOutcome; typedef std::future DescribeLoginLogsOutcomeCallable; typedef std::function&)> DescribeLoginLogsAsyncHandler; + typedef Outcome DescribeDingTalkOutcome; + typedef std::future DescribeDingTalkOutcomeCallable; + typedef std::function&)> DescribeDingTalkAsyncHandler; typedef Outcome DescribeMetaDataOutcome; typedef std::future DescribeMetaDataOutcomeCallable; typedef std::function&)> DescribeMetaDataAsyncHandler; @@ -1061,12 +1259,12 @@ namespace AlibabaCloud typedef Outcome ModifyScreenSettingOutcome; typedef std::future ModifyScreenSettingOutcomeCallable; typedef std::function&)> ModifyScreenSettingAsyncHandler; - typedef Outcome ModifyStrategyOutcome; - typedef std::future ModifyStrategyOutcomeCallable; - typedef std::function&)> ModifyStrategyAsyncHandler; typedef Outcome DescribeEmgNoticeOutcome; typedef std::future DescribeEmgNoticeOutcomeCallable; typedef std::function&)> DescribeEmgNoticeAsyncHandler; + typedef Outcome ModifyStrategyOutcome; + typedef std::future ModifyStrategyOutcomeCallable; + typedef std::function&)> ModifyStrategyAsyncHandler; typedef Outcome DescribeScreenOperateInfoOutcome; typedef std::future DescribeScreenOperateInfoOutcomeCallable; typedef std::function&)> DescribeScreenOperateInfoAsyncHandler; @@ -1076,27 +1274,30 @@ namespace AlibabaCloud typedef Outcome DescribeSuspEventQuaraFilesOutcome; typedef std::future DescribeSuspEventQuaraFilesOutcomeCallable; typedef std::function&)> DescribeSuspEventQuaraFilesAsyncHandler; - typedef Outcome ValidateHcWarningsOutcome; - typedef std::future ValidateHcWarningsOutcomeCallable; - typedef std::function&)> ValidateHcWarningsAsyncHandler; typedef Outcome CreateOrUpdateJoinRuleOutcome; typedef std::future CreateOrUpdateJoinRuleOutcomeCallable; typedef std::function&)> CreateOrUpdateJoinRuleAsyncHandler; + typedef Outcome ValidateHcWarningsOutcome; + typedef std::future ValidateHcWarningsOutcomeCallable; + typedef std::function&)> ValidateHcWarningsAsyncHandler; typedef Outcome AutoUpgradeSasOutcome; typedef std::future AutoUpgradeSasOutcomeCallable; typedef std::function&)> AutoUpgradeSasAsyncHandler; + typedef Outcome ModifyRefreshProcessInfoOutcome; + typedef std::future ModifyRefreshProcessInfoOutcomeCallable; + typedef std::function&)> ModifyRefreshProcessInfoAsyncHandler; typedef Outcome DescribeEmgUserAgreementOutcome; typedef std::future DescribeEmgUserAgreementOutcomeCallable; typedef std::function&)> DescribeEmgUserAgreementAsyncHandler; - typedef Outcome ModifyWebLockMachineListOutcome; - typedef std::future ModifyWebLockMachineListOutcomeCallable; - typedef std::function&)> ModifyWebLockMachineListAsyncHandler; typedef Outcome ModifyEmgVulSubmitOutcome; typedef std::future ModifyEmgVulSubmitOutcomeCallable; typedef std::function&)> ModifyEmgVulSubmitAsyncHandler; typedef Outcome DeleteLogQueryOutcome; typedef std::future DeleteLogQueryOutcomeCallable; typedef std::function&)> DeleteLogQueryAsyncHandler; + typedef Outcome ModifyWebLockMachineListOutcome; + typedef std::future ModifyWebLockMachineListOutcomeCallable; + typedef std::function&)> ModifyWebLockMachineListAsyncHandler; typedef Outcome ModifyTargetConfigOutcome; typedef std::future ModifyTargetConfigOutcomeCallable; typedef std::function&)> ModifyTargetConfigAsyncHandler; @@ -1109,12 +1310,12 @@ namespace AlibabaCloud typedef Outcome DescribeSuspEventUserSettingOutcome; typedef std::future DescribeSuspEventUserSettingOutcomeCallable; typedef std::function&)> DescribeSuspEventUserSettingAsyncHandler; - typedef Outcome DescribeWhiteListStrategyCountOutcome; - typedef std::future DescribeWhiteListStrategyCountOutcomeCallable; - typedef std::function&)> DescribeWhiteListStrategyCountAsyncHandler; typedef Outcome DescribeVulConfigOutcome; typedef std::future DescribeVulConfigOutcomeCallable; typedef std::function&)> DescribeVulConfigAsyncHandler; + typedef Outcome DescribeWhiteListStrategyCountOutcome; + typedef std::future DescribeWhiteListStrategyCountOutcomeCallable; + typedef std::function&)> DescribeWhiteListStrategyCountAsyncHandler; typedef Outcome ModifyWebLockRefreshOutcome; typedef std::future ModifyWebLockRefreshOutcomeCallable; typedef std::function&)> ModifyWebLockRefreshAsyncHandler; @@ -1124,6 +1325,9 @@ namespace AlibabaCloud typedef Outcome DescribeWhiteListAssetOutcome; typedef std::future DescribeWhiteListAssetOutcomeCallable; typedef std::function&)> DescribeWhiteListAssetAsyncHandler; + typedef Outcome UpdateCustomizeReportStatusOutcome; + typedef std::future UpdateCustomizeReportStatusOutcomeCallable; + typedef std::function&)> UpdateCustomizeReportStatusAsyncHandler; typedef Outcome ModifyClearLogstoreStorageOutcome; typedef std::future ModifyClearLogstoreStorageOutcomeCallable; typedef std::function&)> ModifyClearLogstoreStorageAsyncHandler; @@ -1133,24 +1337,30 @@ namespace AlibabaCloud typedef Outcome DescribeCheckWarningsOutcome; typedef std::future DescribeCheckWarningsOutcomeCallable; typedef std::function&)> DescribeCheckWarningsAsyncHandler; - typedef Outcome DescribeSecurityStatInfoOutcome; - typedef std::future DescribeSecurityStatInfoOutcomeCallable; - typedef std::function&)> DescribeSecurityStatInfoAsyncHandler; + typedef Outcome DeleteSuspEventNodeOutcome; + typedef std::future DeleteSuspEventNodeOutcomeCallable; + typedef std::function&)> DeleteSuspEventNodeAsyncHandler; + typedef Outcome DescribeHostStatisticsOutcome; + typedef std::future DescribeHostStatisticsOutcomeCallable; + typedef std::function&)> DescribeHostStatisticsAsyncHandler; typedef Outcome SaveWhiteListStrategyOutcome; typedef std::future SaveWhiteListStrategyOutcomeCallable; typedef std::function&)> SaveWhiteListStrategyAsyncHandler; + typedef Outcome DescribeSecurityStatInfoOutcome; + typedef std::future DescribeSecurityStatInfoOutcomeCallable; + typedef std::function&)> DescribeSecurityStatInfoAsyncHandler; typedef Outcome DescribeFilterFieldsOutcome; typedef std::future DescribeFilterFieldsOutcomeCallable; typedef std::function&)> DescribeFilterFieldsAsyncHandler; + typedef Outcome DescribeInstanceStatisticsOutcome; + typedef std::future DescribeInstanceStatisticsOutcomeCallable; + typedef std::function&)> DescribeInstanceStatisticsAsyncHandler; typedef Outcome DescribeScreenSecurityStatInfoOutcome; typedef std::future DescribeScreenSecurityStatInfoOutcomeCallable; typedef std::function&)> DescribeScreenSecurityStatInfoAsyncHandler; typedef Outcome OperateSuspiciousOverallConfigOutcome; typedef std::future OperateSuspiciousOverallConfigOutcomeCallable; typedef std::function&)> OperateSuspiciousOverallConfigAsyncHandler; - typedef Outcome DescribeInstanceStatisticsOutcome; - typedef std::future DescribeInstanceStatisticsOutcomeCallable; - typedef std::function&)> DescribeInstanceStatisticsAsyncHandler; AegisClient(const Credentials &credentials, const ClientConfiguration &configuration); AegisClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -1165,15 +1375,21 @@ namespace AlibabaCloud DescribeTraceInfoNodeOutcome describeTraceInfoNode(const Model::DescribeTraceInfoNodeRequest &request)const; void describeTraceInfoNodeAsync(const Model::DescribeTraceInfoNodeRequest& request, const DescribeTraceInfoNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTraceInfoNodeOutcomeCallable describeTraceInfoNodeCallable(const Model::DescribeTraceInfoNodeRequest& request) const; + SaveCustomizeReportConfigOutcome saveCustomizeReportConfig(const Model::SaveCustomizeReportConfigRequest &request)const; + void saveCustomizeReportConfigAsync(const Model::SaveCustomizeReportConfigRequest& request, const SaveCustomizeReportConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveCustomizeReportConfigOutcomeCallable saveCustomizeReportConfigCallable(const Model::SaveCustomizeReportConfigRequest& request) const; + DescribeScreenCloudHcRiskOutcome describeScreenCloudHcRisk(const Model::DescribeScreenCloudHcRiskRequest &request)const; + void describeScreenCloudHcRiskAsync(const Model::DescribeScreenCloudHcRiskRequest& request, const DescribeScreenCloudHcRiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenCloudHcRiskOutcomeCallable describeScreenCloudHcRiskCallable(const Model::DescribeScreenCloudHcRiskRequest& request) const; DescribeScreenAttackAnalysisDataOutcome describeScreenAttackAnalysisData(const Model::DescribeScreenAttackAnalysisDataRequest &request)const; void describeScreenAttackAnalysisDataAsync(const Model::DescribeScreenAttackAnalysisDataRequest& request, const DescribeScreenAttackAnalysisDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScreenAttackAnalysisDataOutcomeCallable describeScreenAttackAnalysisDataCallable(const Model::DescribeScreenAttackAnalysisDataRequest& request) const; - DescribeAutoDelConfigOutcome describeAutoDelConfig(const Model::DescribeAutoDelConfigRequest &request)const; - void describeAutoDelConfigAsync(const Model::DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAutoDelConfigOutcomeCallable describeAutoDelConfigCallable(const Model::DescribeAutoDelConfigRequest& request) const; DescribeVulListOutcome describeVulList(const Model::DescribeVulListRequest &request)const; void describeVulListAsync(const Model::DescribeVulListRequest& request, const DescribeVulListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVulListOutcomeCallable describeVulListCallable(const Model::DescribeVulListRequest& request) const; + DescribeAutoDelConfigOutcome describeAutoDelConfig(const Model::DescribeAutoDelConfigRequest &request)const; + void describeAutoDelConfigAsync(const Model::DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoDelConfigOutcomeCallable describeAutoDelConfigCallable(const Model::DescribeAutoDelConfigRequest& request) const; ModifyWebLockUpdateConfigOutcome modifyWebLockUpdateConfig(const Model::ModifyWebLockUpdateConfigRequest &request)const; void modifyWebLockUpdateConfigAsync(const Model::ModifyWebLockUpdateConfigRequest& request, const ModifyWebLockUpdateConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyWebLockUpdateConfigOutcomeCallable modifyWebLockUpdateConfigCallable(const Model::ModifyWebLockUpdateConfigRequest& request) const; @@ -1198,6 +1414,12 @@ namespace AlibabaCloud DescribeEcsStsStatusOutcome describeEcsStsStatus(const Model::DescribeEcsStsStatusRequest &request)const; void describeEcsStsStatusAsync(const Model::DescribeEcsStsStatusRequest& request, const DescribeEcsStsStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEcsStsStatusOutcomeCallable describeEcsStsStatusCallable(const Model::DescribeEcsStsStatusRequest& request) const; + DescribeCustomizeReportListOutcome describeCustomizeReportList(const Model::DescribeCustomizeReportListRequest &request)const; + void describeCustomizeReportListAsync(const Model::DescribeCustomizeReportListRequest& request, const DescribeCustomizeReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomizeReportListOutcomeCallable describeCustomizeReportListCallable(const Model::DescribeCustomizeReportListRequest& request) const; + DescribeSupervisonInfoOutcome describeSupervisonInfo(const Model::DescribeSupervisonInfoRequest &request)const; + void describeSupervisonInfoAsync(const Model::DescribeSupervisonInfoRequest& request, const DescribeSupervisonInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSupervisonInfoOutcomeCallable describeSupervisonInfoCallable(const Model::DescribeSupervisonInfoRequest& request) const; UpdateWhiteListStrategyRelationOutcome updateWhiteListStrategyRelation(const Model::UpdateWhiteListStrategyRelationRequest &request)const; void updateWhiteListStrategyRelationAsync(const Model::UpdateWhiteListStrategyRelationRequest& request, const UpdateWhiteListStrategyRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateWhiteListStrategyRelationOutcomeCallable updateWhiteListStrategyRelationCallable(const Model::UpdateWhiteListStrategyRelationRequest& request) const; @@ -1213,18 +1435,21 @@ namespace AlibabaCloud ModifyVulLevelOutcome modifyVulLevel(const Model::ModifyVulLevelRequest &request)const; void modifyVulLevelAsync(const Model::ModifyVulLevelRequest& request, const ModifyVulLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVulLevelOutcomeCallable modifyVulLevelCallable(const Model::ModifyVulLevelRequest& request) const; + DescribeScreenOssUploadInfoOutcome describeScreenOssUploadInfo(const Model::DescribeScreenOssUploadInfoRequest &request)const; + void describeScreenOssUploadInfoAsync(const Model::DescribeScreenOssUploadInfoRequest& request, const DescribeScreenOssUploadInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenOssUploadInfoOutcomeCallable describeScreenOssUploadInfoCallable(const Model::DescribeScreenOssUploadInfoRequest& request) const; ModifyVulTargetOutcome modifyVulTarget(const Model::ModifyVulTargetRequest &request)const; void modifyVulTargetAsync(const Model::ModifyVulTargetRequest& request, const ModifyVulTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVulTargetOutcomeCallable modifyVulTargetCallable(const Model::ModifyVulTargetRequest& request) const; ModifyBatchIgnoreVulOutcome modifyBatchIgnoreVul(const Model::ModifyBatchIgnoreVulRequest &request)const; void modifyBatchIgnoreVulAsync(const Model::ModifyBatchIgnoreVulRequest& request, const ModifyBatchIgnoreVulAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBatchIgnoreVulOutcomeCallable modifyBatchIgnoreVulCallable(const Model::ModifyBatchIgnoreVulRequest& request) const; - DescribeSummaryInfoOutcome describeSummaryInfo(const Model::DescribeSummaryInfoRequest &request)const; - void describeSummaryInfoAsync(const Model::DescribeSummaryInfoRequest& request, const DescribeSummaryInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSummaryInfoOutcomeCallable describeSummaryInfoCallable(const Model::DescribeSummaryInfoRequest& request) const; DescribeStrategyProcessOutcome describeStrategyProcess(const Model::DescribeStrategyProcessRequest &request)const; void describeStrategyProcessAsync(const Model::DescribeStrategyProcessRequest& request, const DescribeStrategyProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStrategyProcessOutcomeCallable describeStrategyProcessCallable(const Model::DescribeStrategyProcessRequest& request) const; + DescribeSummaryInfoOutcome describeSummaryInfo(const Model::DescribeSummaryInfoRequest &request)const; + void describeSummaryInfoAsync(const Model::DescribeSummaryInfoRequest& request, const DescribeSummaryInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSummaryInfoOutcomeCallable describeSummaryInfoCallable(const Model::DescribeSummaryInfoRequest& request) const; DescribeSuspTrendStatisticsOutcome describeSuspTrendStatistics(const Model::DescribeSuspTrendStatisticsRequest &request)const; void describeSuspTrendStatisticsAsync(const Model::DescribeSuspTrendStatisticsRequest& request, const DescribeSuspTrendStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspTrendStatisticsOutcomeCallable describeSuspTrendStatisticsCallable(const Model::DescribeSuspTrendStatisticsRequest& request) const; @@ -1234,12 +1459,27 @@ namespace AlibabaCloud DescribeResultListOutcome describeResultList(const Model::DescribeResultListRequest &request)const; void describeResultListAsync(const Model::DescribeResultListRequest& request, const DescribeResultListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeResultListOutcomeCallable describeResultListCallable(const Model::DescribeResultListRequest& request) const; + DescribeGrayFuncOutcome describeGrayFunc(const Model::DescribeGrayFuncRequest &request)const; + void describeGrayFuncAsync(const Model::DescribeGrayFuncRequest& request, const DescribeGrayFuncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrayFuncOutcomeCallable describeGrayFuncCallable(const Model::DescribeGrayFuncRequest& request) const; + DescribeCustomizeReportChartDataOutcome describeCustomizeReportChartData(const Model::DescribeCustomizeReportChartDataRequest &request)const; + void describeCustomizeReportChartDataAsync(const Model::DescribeCustomizeReportChartDataRequest& request, const DescribeCustomizeReportChartDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomizeReportChartDataOutcomeCallable describeCustomizeReportChartDataCallable(const Model::DescribeCustomizeReportChartDataRequest& request) const; + DescribeScreenBizStatSimpleQueryResultOutcome describeScreenBizStatSimpleQueryResult(const Model::DescribeScreenBizStatSimpleQueryResultRequest &request)const; + void describeScreenBizStatSimpleQueryResultAsync(const Model::DescribeScreenBizStatSimpleQueryResultRequest& request, const DescribeScreenBizStatSimpleQueryResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenBizStatSimpleQueryResultOutcomeCallable describeScreenBizStatSimpleQueryResultCallable(const Model::DescribeScreenBizStatSimpleQueryResultRequest& request) const; DownloadLogOutcome downloadLog(const Model::DownloadLogRequest &request)const; void downloadLogAsync(const Model::DownloadLogRequest& request, const DownloadLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DownloadLogOutcomeCallable downloadLogCallable(const Model::DownloadLogRequest& request) const; DescribeTargetConfigOutcome describeTargetConfig(const Model::DescribeTargetConfigRequest &request)const; void describeTargetConfigAsync(const Model::DescribeTargetConfigRequest& request, const DescribeTargetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTargetConfigOutcomeCallable describeTargetConfigCallable(const Model::DescribeTargetConfigRequest& request) const; + DescribeAccesskeyRunInfoOutcome describeAccesskeyRunInfo(const Model::DescribeAccesskeyRunInfoRequest &request)const; + void describeAccesskeyRunInfoAsync(const Model::DescribeAccesskeyRunInfoRequest& request, const DescribeAccesskeyRunInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccesskeyRunInfoOutcomeCallable describeAccesskeyRunInfoCallable(const Model::DescribeAccesskeyRunInfoRequest& request) const; + DescribeScreenFlowRequestCountOutcome describeScreenFlowRequestCount(const Model::DescribeScreenFlowRequestCountRequest &request)const; + void describeScreenFlowRequestCountAsync(const Model::DescribeScreenFlowRequestCountRequest& request, const DescribeScreenFlowRequestCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenFlowRequestCountOutcomeCallable describeScreenFlowRequestCountCallable(const Model::DescribeScreenFlowRequestCountRequest& request) const; DescribeVulNumStatisticsOutcome describeVulNumStatistics(const Model::DescribeVulNumStatisticsRequest &request)const; void describeVulNumStatisticsAsync(const Model::DescribeVulNumStatisticsRequest& request, const DescribeVulNumStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVulNumStatisticsOutcomeCallable describeVulNumStatisticsCallable(const Model::DescribeVulNumStatisticsRequest& request) const; @@ -1249,6 +1489,9 @@ namespace AlibabaCloud GetAccountStatisticsOutcome getAccountStatistics(const Model::GetAccountStatisticsRequest &request)const; void getAccountStatisticsAsync(const Model::GetAccountStatisticsRequest& request, const GetAccountStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAccountStatisticsOutcomeCallable getAccountStatisticsCallable(const Model::GetAccountStatisticsRequest& request) const; + DescribeScreenEmerRiskOutcome describeScreenEmerRisk(const Model::DescribeScreenEmerRiskRequest &request)const; + void describeScreenEmerRiskAsync(const Model::DescribeScreenEmerRiskRequest& request, const DescribeScreenEmerRiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenEmerRiskOutcomeCallable describeScreenEmerRiskCallable(const Model::DescribeScreenEmerRiskRequest& request) const; DescribeUuidConfigOutcome describeUuidConfig(const Model::DescribeUuidConfigRequest &request)const; void describeUuidConfigAsync(const Model::DescribeUuidConfigRequest& request, const DescribeUuidConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUuidConfigOutcomeCallable describeUuidConfigCallable(const Model::DescribeUuidConfigRequest& request) const; @@ -1273,15 +1516,18 @@ namespace AlibabaCloud DescribeTraceInfoNodeListOutcome describeTraceInfoNodeList(const Model::DescribeTraceInfoNodeListRequest &request)const; void describeTraceInfoNodeListAsync(const Model::DescribeTraceInfoNodeListRequest& request, const DescribeTraceInfoNodeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTraceInfoNodeListOutcomeCallable describeTraceInfoNodeListCallable(const Model::DescribeTraceInfoNodeListRequest& request) const; - DescribeAnalysisSlsIndexOutcome describeAnalysisSlsIndex(const Model::DescribeAnalysisSlsIndexRequest &request)const; - void describeAnalysisSlsIndexAsync(const Model::DescribeAnalysisSlsIndexRequest& request, const DescribeAnalysisSlsIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAnalysisSlsIndexOutcomeCallable describeAnalysisSlsIndexCallable(const Model::DescribeAnalysisSlsIndexRequest& request) const; ModifyWebLockCreateConfigOutcome modifyWebLockCreateConfig(const Model::ModifyWebLockCreateConfigRequest &request)const; void modifyWebLockCreateConfigAsync(const Model::ModifyWebLockCreateConfigRequest& request, const ModifyWebLockCreateConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyWebLockCreateConfigOutcomeCallable modifyWebLockCreateConfigCallable(const Model::ModifyWebLockCreateConfigRequest& request) const; + DescribeAnalysisSlsIndexOutcome describeAnalysisSlsIndex(const Model::DescribeAnalysisSlsIndexRequest &request)const; + void describeAnalysisSlsIndexAsync(const Model::DescribeAnalysisSlsIndexRequest& request, const DescribeAnalysisSlsIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAnalysisSlsIndexOutcomeCallable describeAnalysisSlsIndexCallable(const Model::DescribeAnalysisSlsIndexRequest& request) const; DeleteRuleGroupOutcome deleteRuleGroup(const Model::DeleteRuleGroupRequest &request)const; void deleteRuleGroupAsync(const Model::DeleteRuleGroupRequest& request, const DeleteRuleGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRuleGroupOutcomeCallable deleteRuleGroupCallable(const Model::DeleteRuleGroupRequest& request) const; + DescribeScreenDataMapOutcome describeScreenDataMap(const Model::DescribeScreenDataMapRequest &request)const; + void describeScreenDataMapAsync(const Model::DescribeScreenDataMapRequest& request, const DescribeScreenDataMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenDataMapOutcomeCallable describeScreenDataMapCallable(const Model::DescribeScreenDataMapRequest& request) const; DescribeStatisticsOutcome describeStatistics(const Model::DescribeStatisticsRequest &request)const; void describeStatisticsAsync(const Model::DescribeStatisticsRequest& request, const DescribeStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStatisticsOutcomeCallable describeStatisticsCallable(const Model::DescribeStatisticsRequest& request) const; @@ -1291,18 +1537,24 @@ namespace AlibabaCloud CreateSuspiciousExportOutcome createSuspiciousExport(const Model::CreateSuspiciousExportRequest &request)const; void createSuspiciousExportAsync(const Model::CreateSuspiciousExportRequest& request, const CreateSuspiciousExportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSuspiciousExportOutcomeCallable createSuspiciousExportCallable(const Model::CreateSuspiciousExportRequest& request) const; + DescribeWebshellListOutcome describeWebshellList(const Model::DescribeWebshellListRequest &request)const; + void describeWebshellListAsync(const Model::DescribeWebshellListRequest& request, const DescribeWebshellListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWebshellListOutcomeCallable describeWebshellListCallable(const Model::DescribeWebshellListRequest& request) const; + DescribeBizStatSimpleQueryResultOutcome describeBizStatSimpleQueryResult(const Model::DescribeBizStatSimpleQueryResultRequest &request)const; + void describeBizStatSimpleQueryResultAsync(const Model::DescribeBizStatSimpleQueryResultRequest& request, const DescribeBizStatSimpleQueryResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBizStatSimpleQueryResultOutcomeCallable describeBizStatSimpleQueryResultCallable(const Model::DescribeBizStatSimpleQueryResultRequest& request) const; OperateVulOutcome operateVul(const Model::OperateVulRequest &request)const; void operateVulAsync(const Model::OperateVulRequest& request, const OperateVulAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OperateVulOutcomeCallable operateVulCallable(const Model::OperateVulRequest& request) const; GetCrackStatisticsOutcome getCrackStatistics(const Model::GetCrackStatisticsRequest &request)const; void getCrackStatisticsAsync(const Model::GetCrackStatisticsRequest& request, const GetCrackStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCrackStatisticsOutcomeCallable getCrackStatisticsCallable(const Model::GetCrackStatisticsRequest& request) const; - DescribeConcernNecessityOutcome describeConcernNecessity(const Model::DescribeConcernNecessityRequest &request)const; - void describeConcernNecessityAsync(const Model::DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConcernNecessityOutcomeCallable describeConcernNecessityCallable(const Model::DescribeConcernNecessityRequest& request) const; OperateAgentClientInstallOutcome operateAgentClientInstall(const Model::OperateAgentClientInstallRequest &request)const; void operateAgentClientInstallAsync(const Model::OperateAgentClientInstallRequest& request, const OperateAgentClientInstallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OperateAgentClientInstallOutcomeCallable operateAgentClientInstallCallable(const Model::OperateAgentClientInstallRequest& request) const; + DescribeConcernNecessityOutcome describeConcernNecessity(const Model::DescribeConcernNecessityRequest &request)const; + void describeConcernNecessityAsync(const Model::DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConcernNecessityOutcomeCallable describeConcernNecessityCallable(const Model::DescribeConcernNecessityRequest& request) const; DescribeScreenScoreThreadOutcome describeScreenScoreThread(const Model::DescribeScreenScoreThreadRequest &request)const; void describeScreenScoreThreadAsync(const Model::DescribeScreenScoreThreadRequest& request, const DescribeScreenScoreThreadAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScreenScoreThreadOutcomeCallable describeScreenScoreThreadCallable(const Model::DescribeScreenScoreThreadRequest& request) const; @@ -1318,18 +1570,24 @@ namespace AlibabaCloud DescribeTopicListOutcome describeTopicList(const Model::DescribeTopicListRequest &request)const; void describeTopicListAsync(const Model::DescribeTopicListRequest& request, const DescribeTopicListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTopicListOutcomeCallable describeTopicListCallable(const Model::DescribeTopicListRequest& request) const; - DescribeAssetDetailByUuidOutcome describeAssetDetailByUuid(const Model::DescribeAssetDetailByUuidRequest &request)const; - void describeAssetDetailByUuidAsync(const Model::DescribeAssetDetailByUuidRequest& request, const DescribeAssetDetailByUuidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAssetDetailByUuidOutcomeCallable describeAssetDetailByUuidCallable(const Model::DescribeAssetDetailByUuidRequest& request) const; DescribeScreenVersionConfigOutcome describeScreenVersionConfig(const Model::DescribeScreenVersionConfigRequest &request)const; void describeScreenVersionConfigAsync(const Model::DescribeScreenVersionConfigRequest& request, const DescribeScreenVersionConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScreenVersionConfigOutcomeCallable describeScreenVersionConfigCallable(const Model::DescribeScreenVersionConfigRequest& request) const; + DescribeAssetDetailByUuidOutcome describeAssetDetailByUuid(const Model::DescribeAssetDetailByUuidRequest &request)const; + void describeAssetDetailByUuidAsync(const Model::DescribeAssetDetailByUuidRequest& request, const DescribeAssetDetailByUuidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAssetDetailByUuidOutcomeCallable describeAssetDetailByUuidCallable(const Model::DescribeAssetDetailByUuidRequest& request) const; + CreateScreenSettingOutcome createScreenSetting(const Model::CreateScreenSettingRequest &request)const; + void createScreenSettingAsync(const Model::CreateScreenSettingRequest& request, const CreateScreenSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScreenSettingOutcomeCallable createScreenSettingCallable(const Model::CreateScreenSettingRequest& request) const; DescribeVulExportInfoOutcome describeVulExportInfo(const Model::DescribeVulExportInfoRequest &request)const; void describeVulExportInfoAsync(const Model::DescribeVulExportInfoRequest& request, const DescribeVulExportInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVulExportInfoOutcomeCallable describeVulExportInfoCallable(const Model::DescribeVulExportInfoRequest& request) const; DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; + DescribeChartListOutcome describeChartList(const Model::DescribeChartListRequest &request)const; + void describeChartListAsync(const Model::DescribeChartListRequest& request, const DescribeChartListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeChartListOutcomeCallable describeChartListCallable(const Model::DescribeChartListRequest& request) const; DescribeSuspEventDetailOutcome describeSuspEventDetail(const Model::DescribeSuspEventDetailRequest &request)const; void describeSuspEventDetailAsync(const Model::DescribeSuspEventDetailRequest& request, const DescribeSuspEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspEventDetailOutcomeCallable describeSuspEventDetailCallable(const Model::DescribeSuspEventDetailRequest& request) const; @@ -1357,12 +1615,12 @@ namespace AlibabaCloud DescribeLogItemsOutcome describeLogItems(const Model::DescribeLogItemsRequest &request)const; void describeLogItemsAsync(const Model::DescribeLogItemsRequest& request, const DescribeLogItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLogItemsOutcomeCallable describeLogItemsCallable(const Model::DescribeLogItemsRequest& request) const; - DescribeWebLockEventsOutcome describeWebLockEvents(const Model::DescribeWebLockEventsRequest &request)const; - void describeWebLockEventsAsync(const Model::DescribeWebLockEventsRequest& request, const DescribeWebLockEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeWebLockEventsOutcomeCallable describeWebLockEventsCallable(const Model::DescribeWebLockEventsRequest& request) const; ExecStrategyOutcome execStrategy(const Model::ExecStrategyRequest &request)const; void execStrategyAsync(const Model::ExecStrategyRequest& request, const ExecStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExecStrategyOutcomeCallable execStrategyCallable(const Model::ExecStrategyRequest& request) const; + DescribeWebLockEventsOutcome describeWebLockEvents(const Model::DescribeWebLockEventsRequest &request)const; + void describeWebLockEventsAsync(const Model::DescribeWebLockEventsRequest& request, const DescribeWebLockEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWebLockEventsOutcomeCallable describeWebLockEventsCallable(const Model::DescribeWebLockEventsRequest& request) const; DescribeSuspEventExportInfoOutcome describeSuspEventExportInfo(const Model::DescribeSuspEventExportInfoRequest &request)const; void describeSuspEventExportInfoAsync(const Model::DescribeSuspEventExportInfoRequest& request, const DescribeSuspEventExportInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspEventExportInfoOutcomeCallable describeSuspEventExportInfoCallable(const Model::DescribeSuspEventExportInfoRequest& request) const; @@ -1372,12 +1630,21 @@ namespace AlibabaCloud DescribeSasAssetStatisticsOutcome describeSasAssetStatistics(const Model::DescribeSasAssetStatisticsRequest &request)const; void describeSasAssetStatisticsAsync(const Model::DescribeSasAssetStatisticsRequest& request, const DescribeSasAssetStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSasAssetStatisticsOutcomeCallable describeSasAssetStatisticsCallable(const Model::DescribeSasAssetStatisticsRequest& request) const; + SendCustomizeReportOutcome sendCustomizeReport(const Model::SendCustomizeReportRequest &request)const; + void sendCustomizeReportAsync(const Model::SendCustomizeReportRequest& request, const SendCustomizeReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendCustomizeReportOutcomeCallable sendCustomizeReportCallable(const Model::SendCustomizeReportRequest& request) const; DescribeDefenceThreadOutcome describeDefenceThread(const Model::DescribeDefenceThreadRequest &request)const; void describeDefenceThreadAsync(const Model::DescribeDefenceThreadRequest& request, const DescribeDefenceThreadAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDefenceThreadOutcomeCallable describeDefenceThreadCallable(const Model::DescribeDefenceThreadRequest& request) const; + DescribeScreenTopRequestAndFlowOutcome describeScreenTopRequestAndFlow(const Model::DescribeScreenTopRequestAndFlowRequest &request)const; + void describeScreenTopRequestAndFlowAsync(const Model::DescribeScreenTopRequestAndFlowRequest& request, const DescribeScreenTopRequestAndFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenTopRequestAndFlowOutcomeCallable describeScreenTopRequestAndFlowCallable(const Model::DescribeScreenTopRequestAndFlowRequest& request) const; CreateVulWhitelistOutcome createVulWhitelist(const Model::CreateVulWhitelistRequest &request)const; void createVulWhitelistAsync(const Model::CreateVulWhitelistRequest& request, const CreateVulWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVulWhitelistOutcomeCallable createVulWhitelistCallable(const Model::CreateVulWhitelistRequest& request) const; + DescribeLatestActionsOutcome describeLatestActions(const Model::DescribeLatestActionsRequest &request)const; + void describeLatestActionsAsync(const Model::DescribeLatestActionsRequest& request, const DescribeLatestActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLatestActionsOutcomeCallable describeLatestActionsCallable(const Model::DescribeLatestActionsRequest& request) const; ModifyConcernNecessityOutcome modifyConcernNecessity(const Model::ModifyConcernNecessityRequest &request)const; void modifyConcernNecessityAsync(const Model::ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyConcernNecessityOutcomeCallable modifyConcernNecessityCallable(const Model::ModifyConcernNecessityRequest& request) const; @@ -1390,12 +1657,21 @@ namespace AlibabaCloud GetStatisticsOutcome getStatistics(const Model::GetStatisticsRequest &request)const; void getStatisticsAsync(const Model::GetStatisticsRequest& request, const GetStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStatisticsOutcomeCallable getStatisticsCallable(const Model::GetStatisticsRequest& request) const; - DescribesummaryOutcome describesummary(const Model::DescribesummaryRequest &request)const; - void describesummaryAsync(const Model::DescribesummaryRequest& request, const DescribesummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribesummaryOutcomeCallable describesummaryCallable(const Model::DescribesummaryRequest& request) const; DescribeSuspEventsOutcome describeSuspEvents(const Model::DescribeSuspEventsRequest &request)const; void describeSuspEventsAsync(const Model::DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspEventsOutcomeCallable describeSuspEventsCallable(const Model::DescribeSuspEventsRequest& request) const; + DescribesummaryOutcome describesummary(const Model::DescribesummaryRequest &request)const; + void describesummaryAsync(const Model::DescribesummaryRequest& request, const DescribesummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribesummaryOutcomeCallable describesummaryCallable(const Model::DescribesummaryRequest& request) const; + ModifyAccessKeyLeakDealOutcome modifyAccessKeyLeakDeal(const Model::ModifyAccessKeyLeakDealRequest &request)const; + void modifyAccessKeyLeakDealAsync(const Model::ModifyAccessKeyLeakDealRequest& request, const ModifyAccessKeyLeakDealAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccessKeyLeakDealOutcomeCallable modifyAccessKeyLeakDealCallable(const Model::ModifyAccessKeyLeakDealRequest& request) const; + DescribeCheckWarningCountOutcome describeCheckWarningCount(const Model::DescribeCheckWarningCountRequest &request)const; + void describeCheckWarningCountAsync(const Model::DescribeCheckWarningCountRequest& request, const DescribeCheckWarningCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCheckWarningCountOutcomeCallable describeCheckWarningCountCallable(const Model::DescribeCheckWarningCountRequest& request) const; + CopyCustomizeReportConfigOutcome copyCustomizeReportConfig(const Model::CopyCustomizeReportConfigRequest &request)const; + void copyCustomizeReportConfigAsync(const Model::CopyCustomizeReportConfigRequest& request, const CopyCustomizeReportConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyCustomizeReportConfigOutcomeCallable copyCustomizeReportConfigCallable(const Model::CopyCustomizeReportConfigRequest& request) const; CreateOrUpdateDataSourceOutcome createOrUpdateDataSource(const Model::CreateOrUpdateDataSourceRequest &request)const; void createOrUpdateDataSourceAsync(const Model::CreateOrUpdateDataSourceRequest& request, const CreateOrUpdateDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrUpdateDataSourceOutcomeCallable createOrUpdateDataSourceCallable(const Model::CreateOrUpdateDataSourceRequest& request) const; @@ -1414,12 +1690,12 @@ namespace AlibabaCloud DescribeTraceInfoDetailOutcome describeTraceInfoDetail(const Model::DescribeTraceInfoDetailRequest &request)const; void describeTraceInfoDetailAsync(const Model::DescribeTraceInfoDetailRequest& request, const DescribeTraceInfoDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTraceInfoDetailOutcomeCallable describeTraceInfoDetailCallable(const Model::DescribeTraceInfoDetailRequest& request) const; - DescribeGroupListOutcome describeGroupList(const Model::DescribeGroupListRequest &request)const; - void describeGroupListAsync(const Model::DescribeGroupListRequest& request, const DescribeGroupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeGroupListOutcomeCallable describeGroupListCallable(const Model::DescribeGroupListRequest& request) const; DescribeCanTrySasOutcome describeCanTrySas(const Model::DescribeCanTrySasRequest &request)const; void describeCanTrySasAsync(const Model::DescribeCanTrySasRequest& request, const DescribeCanTrySasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCanTrySasOutcomeCallable describeCanTrySasCallable(const Model::DescribeCanTrySasRequest& request) const; + DescribeGroupListOutcome describeGroupList(const Model::DescribeGroupListRequest &request)const; + void describeGroupListAsync(const Model::DescribeGroupListRequest& request, const DescribeGroupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGroupListOutcomeCallable describeGroupListCallable(const Model::DescribeGroupListRequest& request) const; DescribeTargetOutcome describeTarget(const Model::DescribeTargetRequest &request)const; void describeTargetAsync(const Model::DescribeTargetRequest& request, const DescribeTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTargetOutcomeCallable describeTargetCallable(const Model::DescribeTargetRequest& request) const; @@ -1441,30 +1717,51 @@ namespace AlibabaCloud ModifySearchConditionOutcome modifySearchCondition(const Model::ModifySearchConditionRequest &request)const; void modifySearchConditionAsync(const Model::ModifySearchConditionRequest& request, const ModifySearchConditionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySearchConditionOutcomeCallable modifySearchConditionCallable(const Model::ModifySearchConditionRequest& request) const; + DescribeScreenTitlesOutcome describeScreenTitles(const Model::DescribeScreenTitlesRequest &request)const; + void describeScreenTitlesAsync(const Model::DescribeScreenTitlesRequest& request, const DescribeScreenTitlesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenTitlesOutcomeCallable describeScreenTitlesCallable(const Model::DescribeScreenTitlesRequest& request) const; DescribeWhiteListStrategyUuidCountOutcome describeWhiteListStrategyUuidCount(const Model::DescribeWhiteListStrategyUuidCountRequest &request)const; void describeWhiteListStrategyUuidCountAsync(const Model::DescribeWhiteListStrategyUuidCountRequest& request, const DescribeWhiteListStrategyUuidCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWhiteListStrategyUuidCountOutcomeCallable describeWhiteListStrategyUuidCountCallable(const Model::DescribeWhiteListStrategyUuidCountRequest& request) const; + DeleteCustomizeReportOutcome deleteCustomizeReport(const Model::DeleteCustomizeReportRequest &request)const; + void deleteCustomizeReportAsync(const Model::DeleteCustomizeReportRequest& request, const DeleteCustomizeReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomizeReportOutcomeCallable deleteCustomizeReportCallable(const Model::DeleteCustomizeReportRequest& request) const; DescribeGroupedVulOutcome describeGroupedVul(const Model::DescribeGroupedVulRequest &request)const; void describeGroupedVulAsync(const Model::DescribeGroupedVulRequest& request, const DescribeGroupedVulAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGroupedVulOutcomeCallable describeGroupedVulCallable(const Model::DescribeGroupedVulRequest& request) const; ModifyWebLockDeleteConfigOutcome modifyWebLockDeleteConfig(const Model::ModifyWebLockDeleteConfigRequest &request)const; void modifyWebLockDeleteConfigAsync(const Model::ModifyWebLockDeleteConfigRequest& request, const ModifyWebLockDeleteConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyWebLockDeleteConfigOutcomeCallable modifyWebLockDeleteConfigCallable(const Model::ModifyWebLockDeleteConfigRequest& request) const; + ModifyAccessKeyLeakInstRunOutcome modifyAccessKeyLeakInstRun(const Model::ModifyAccessKeyLeakInstRunRequest &request)const; + void modifyAccessKeyLeakInstRunAsync(const Model::ModifyAccessKeyLeakInstRunRequest& request, const ModifyAccessKeyLeakInstRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccessKeyLeakInstRunOutcomeCallable modifyAccessKeyLeakInstRunCallable(const Model::ModifyAccessKeyLeakInstRunRequest& request) const; + CreateSuspEventNoteOutcome createSuspEventNote(const Model::CreateSuspEventNoteRequest &request)const; + void createSuspEventNoteAsync(const Model::CreateSuspEventNoteRequest& request, const CreateSuspEventNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSuspEventNoteOutcomeCallable createSuspEventNoteCallable(const Model::CreateSuspEventNoteRequest& request) const; CreateUserWhiteListOutcome createUserWhiteList(const Model::CreateUserWhiteListRequest &request)const; void createUserWhiteListAsync(const Model::CreateUserWhiteListRequest& request, const CreateUserWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserWhiteListOutcomeCallable createUserWhiteListCallable(const Model::CreateUserWhiteListRequest& request) const; DescribeSecureSuggestionOutcome describeSecureSuggestion(const Model::DescribeSecureSuggestionRequest &request)const; void describeSecureSuggestionAsync(const Model::DescribeSecureSuggestionRequest& request, const DescribeSecureSuggestionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecureSuggestionOutcomeCallable describeSecureSuggestionCallable(const Model::DescribeSecureSuggestionRequest& request) const; + DescribeCustomizeReportConfigDetailOutcome describeCustomizeReportConfigDetail(const Model::DescribeCustomizeReportConfigDetailRequest &request)const; + void describeCustomizeReportConfigDetailAsync(const Model::DescribeCustomizeReportConfigDetailRequest& request, const DescribeCustomizeReportConfigDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomizeReportConfigDetailOutcomeCallable describeCustomizeReportConfigDetailCallable(const Model::DescribeCustomizeReportConfigDetailRequest& request) const; + DescribeScreenRequestTopTypeOutcome describeScreenRequestTopType(const Model::DescribeScreenRequestTopTypeRequest &request)const; + void describeScreenRequestTopTypeAsync(const Model::DescribeScreenRequestTopTypeRequest& request, const DescribeScreenRequestTopTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenRequestTopTypeOutcomeCallable describeScreenRequestTopTypeCallable(const Model::DescribeScreenRequestTopTypeRequest& request) const; DescribeSuspiciousOverallConfigOutcome describeSuspiciousOverallConfig(const Model::DescribeSuspiciousOverallConfigRequest &request)const; void describeSuspiciousOverallConfigAsync(const Model::DescribeSuspiciousOverallConfigRequest& request, const DescribeSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspiciousOverallConfigOutcomeCallable describeSuspiciousOverallConfigCallable(const Model::DescribeSuspiciousOverallConfigRequest& request) const; - DescribeAnalysisCurveOutcome describeAnalysisCurve(const Model::DescribeAnalysisCurveRequest &request)const; - void describeAnalysisCurveAsync(const Model::DescribeAnalysisCurveRequest& request, const DescribeAnalysisCurveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAnalysisCurveOutcomeCallable describeAnalysisCurveCallable(const Model::DescribeAnalysisCurveRequest& request) const; + DescribeAccesskeyLeakListOutcome describeAccesskeyLeakList(const Model::DescribeAccesskeyLeakListRequest &request)const; + void describeAccesskeyLeakListAsync(const Model::DescribeAccesskeyLeakListRequest& request, const DescribeAccesskeyLeakListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccesskeyLeakListOutcomeCallable describeAccesskeyLeakListCallable(const Model::DescribeAccesskeyLeakListRequest& request) const; DescribeScreenAlarmEventListOutcome describeScreenAlarmEventList(const Model::DescribeScreenAlarmEventListRequest &request)const; void describeScreenAlarmEventListAsync(const Model::DescribeScreenAlarmEventListRequest& request, const DescribeScreenAlarmEventListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScreenAlarmEventListOutcomeCallable describeScreenAlarmEventListCallable(const Model::DescribeScreenAlarmEventListRequest& request) const; + DescribeAnalysisCurveOutcome describeAnalysisCurve(const Model::DescribeAnalysisCurveRequest &request)const; + void describeAnalysisCurveAsync(const Model::DescribeAnalysisCurveRequest& request, const DescribeAnalysisCurveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAnalysisCurveOutcomeCallable describeAnalysisCurveCallable(const Model::DescribeAnalysisCurveRequest& request) const; CreatScreenSettingOutcome creatScreenSetting(const Model::CreatScreenSettingRequest &request)const; void creatScreenSettingAsync(const Model::CreatScreenSettingRequest& request, const CreatScreenSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatScreenSettingOutcomeCallable creatScreenSettingCallable(const Model::CreatScreenSettingRequest& request) const; @@ -1498,12 +1795,15 @@ namespace AlibabaCloud DescribeQuaraFileOutcome describeQuaraFile(const Model::DescribeQuaraFileRequest &request)const; void describeQuaraFileAsync(const Model::DescribeQuaraFileRequest& request, const DescribeQuaraFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeQuaraFileOutcomeCallable describeQuaraFileCallable(const Model::DescribeQuaraFileRequest& request) const; - DescribeTotalStatisticsOutcome describeTotalStatistics(const Model::DescribeTotalStatisticsRequest &request)const; - void describeTotalStatisticsAsync(const Model::DescribeTotalStatisticsRequest& request, const DescribeTotalStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTotalStatisticsOutcomeCallable describeTotalStatisticsCallable(const Model::DescribeTotalStatisticsRequest& request) const; + DescribeScreenCityMonitorDataOutcome describeScreenCityMonitorData(const Model::DescribeScreenCityMonitorDataRequest &request)const; + void describeScreenCityMonitorDataAsync(const Model::DescribeScreenCityMonitorDataRequest& request, const DescribeScreenCityMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenCityMonitorDataOutcomeCallable describeScreenCityMonitorDataCallable(const Model::DescribeScreenCityMonitorDataRequest& request) const; DescribeWhiteListStrategyStatisticsOutcome describeWhiteListStrategyStatistics(const Model::DescribeWhiteListStrategyStatisticsRequest &request)const; void describeWhiteListStrategyStatisticsAsync(const Model::DescribeWhiteListStrategyStatisticsRequest& request, const DescribeWhiteListStrategyStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWhiteListStrategyStatisticsOutcomeCallable describeWhiteListStrategyStatisticsCallable(const Model::DescribeWhiteListStrategyStatisticsRequest& request) const; + DescribeTotalStatisticsOutcome describeTotalStatistics(const Model::DescribeTotalStatisticsRequest &request)const; + void describeTotalStatisticsAsync(const Model::DescribeTotalStatisticsRequest& request, const DescribeTotalStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTotalStatisticsOutcomeCallable describeTotalStatisticsCallable(const Model::DescribeTotalStatisticsRequest& request) const; AutoUpgradeToSasAdvancedVersionOutcome autoUpgradeToSasAdvancedVersion(const Model::AutoUpgradeToSasAdvancedVersionRequest &request)const; void autoUpgradeToSasAdvancedVersionAsync(const Model::AutoUpgradeToSasAdvancedVersionRequest& request, const AutoUpgradeToSasAdvancedVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AutoUpgradeToSasAdvancedVersionOutcomeCallable autoUpgradeToSasAdvancedVersionCallable(const Model::AutoUpgradeToSasAdvancedVersionRequest& request) const; @@ -1516,15 +1816,21 @@ namespace AlibabaCloud DescribeWebLockConfigListOutcome describeWebLockConfigList(const Model::DescribeWebLockConfigListRequest &request)const; void describeWebLockConfigListAsync(const Model::DescribeWebLockConfigListRequest& request, const DescribeWebLockConfigListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWebLockConfigListOutcomeCallable describeWebLockConfigListCallable(const Model::DescribeWebLockConfigListRequest& request) const; + DescribeVulStatisticsOutcome describeVulStatistics(const Model::DescribeVulStatisticsRequest &request)const; + void describeVulStatisticsAsync(const Model::DescribeVulStatisticsRequest& request, const DescribeVulStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVulStatisticsOutcomeCallable describeVulStatisticsCallable(const Model::DescribeVulStatisticsRequest& request) const; ModifyAutoDelConfigOutcome modifyAutoDelConfig(const Model::ModifyAutoDelConfigRequest &request)const; void modifyAutoDelConfigAsync(const Model::ModifyAutoDelConfigRequest& request, const ModifyAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAutoDelConfigOutcomeCallable modifyAutoDelConfigCallable(const Model::ModifyAutoDelConfigRequest& request) const; - DescribeUserSettingOutcome describeUserSetting(const Model::DescribeUserSettingRequest &request)const; - void describeUserSettingAsync(const Model::DescribeUserSettingRequest& request, const DescribeUserSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserSettingOutcomeCallable describeUserSettingCallable(const Model::DescribeUserSettingRequest& request) const; DescribeVulBatchOutcome describeVulBatch(const Model::DescribeVulBatchRequest &request)const; void describeVulBatchAsync(const Model::DescribeVulBatchRequest& request, const DescribeVulBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVulBatchOutcomeCallable describeVulBatchCallable(const Model::DescribeVulBatchRequest& request) const; + DescribeUserSettingOutcome describeUserSetting(const Model::DescribeUserSettingRequest &request)const; + void describeUserSettingAsync(const Model::DescribeUserSettingRequest& request, const DescribeUserSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserSettingOutcomeCallable describeUserSettingCallable(const Model::DescribeUserSettingRequest& request) const; + DescribeEntityListOutcome describeEntityList(const Model::DescribeEntityListRequest &request)const; + void describeEntityListAsync(const Model::DescribeEntityListRequest& request, const DescribeEntityListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEntityListOutcomeCallable describeEntityListCallable(const Model::DescribeEntityListRequest& request) const; ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const; void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const; @@ -1546,6 +1852,9 @@ namespace AlibabaCloud OperateResultOutcome operateResult(const Model::OperateResultRequest &request)const; void operateResultAsync(const Model::OperateResultRequest& request, const OperateResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OperateResultOutcomeCallable operateResultCallable(const Model::OperateResultRequest& request) const; + DescribeCustomizeReportChartListOutcome describeCustomizeReportChartList(const Model::DescribeCustomizeReportChartListRequest &request)const; + void describeCustomizeReportChartListAsync(const Model::DescribeCustomizeReportChartListRequest& request, const DescribeCustomizeReportChartListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomizeReportChartListOutcomeCallable describeCustomizeReportChartListCallable(const Model::DescribeCustomizeReportChartListRequest& request) const; RollbackSuspEventQuaraFileOutcome rollbackSuspEventQuaraFile(const Model::RollbackSuspEventQuaraFileRequest &request)const; void rollbackSuspEventQuaraFileAsync(const Model::RollbackSuspEventQuaraFileRequest& request, const RollbackSuspEventQuaraFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RollbackSuspEventQuaraFileOutcomeCallable rollbackSuspEventQuaraFileCallable(const Model::RollbackSuspEventQuaraFileRequest& request) const; @@ -1588,9 +1897,15 @@ namespace AlibabaCloud DescribeRiskWhiteListOutcome describeRiskWhiteList(const Model::DescribeRiskWhiteListRequest &request)const; void describeRiskWhiteListAsync(const Model::DescribeRiskWhiteListRequest& request, const DescribeRiskWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRiskWhiteListOutcomeCallable describeRiskWhiteListCallable(const Model::DescribeRiskWhiteListRequest& request) const; + OperationCustomizeReportChartOutcome operationCustomizeReportChart(const Model::OperationCustomizeReportChartRequest &request)const; + void operationCustomizeReportChartAsync(const Model::OperationCustomizeReportChartRequest& request, const OperationCustomizeReportChartAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperationCustomizeReportChartOutcomeCallable operationCustomizeReportChartCallable(const Model::OperationCustomizeReportChartRequest& request) const; ModifyAssetGroupOutcome modifyAssetGroup(const Model::ModifyAssetGroupRequest &request)const; void modifyAssetGroupAsync(const Model::ModifyAssetGroupRequest& request, const ModifyAssetGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAssetGroupOutcomeCallable modifyAssetGroupCallable(const Model::ModifyAssetGroupRequest& request) const; + DescribeVulRelatedProcessOutcome describeVulRelatedProcess(const Model::DescribeVulRelatedProcessRequest &request)const; + void describeVulRelatedProcessAsync(const Model::DescribeVulRelatedProcessRequest& request, const DescribeVulRelatedProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVulRelatedProcessOutcomeCallable describeVulRelatedProcessCallable(const Model::DescribeVulRelatedProcessRequest& request) const; DescribeSasLeftConditionOutcome describeSasLeftCondition(const Model::DescribeSasLeftConditionRequest &request)const; void describeSasLeftConditionAsync(const Model::DescribeSasLeftConditionRequest& request, const DescribeSasLeftConditionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSasLeftConditionOutcomeCallable describeSasLeftConditionCallable(const Model::DescribeSasLeftConditionRequest& request) const; @@ -1600,12 +1915,12 @@ namespace AlibabaCloud CreateOrUpdateRuleOutcome createOrUpdateRule(const Model::CreateOrUpdateRuleRequest &request)const; void createOrUpdateRuleAsync(const Model::CreateOrUpdateRuleRequest& request, const CreateOrUpdateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrUpdateRuleOutcomeCallable createOrUpdateRuleCallable(const Model::CreateOrUpdateRuleRequest& request) const; - ModifyLogMetaStatusOutcome modifyLogMetaStatus(const Model::ModifyLogMetaStatusRequest &request)const; - void modifyLogMetaStatusAsync(const Model::ModifyLogMetaStatusRequest& request, const ModifyLogMetaStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyLogMetaStatusOutcomeCallable modifyLogMetaStatusCallable(const Model::ModifyLogMetaStatusRequest& request) const; DescribeYesterdayStatisticsOutcome describeYesterdayStatistics(const Model::DescribeYesterdayStatisticsRequest &request)const; void describeYesterdayStatisticsAsync(const Model::DescribeYesterdayStatisticsRequest& request, const DescribeYesterdayStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeYesterdayStatisticsOutcomeCallable describeYesterdayStatisticsCallable(const Model::DescribeYesterdayStatisticsRequest& request) const; + ModifyLogMetaStatusOutcome modifyLogMetaStatus(const Model::ModifyLogMetaStatusRequest &request)const; + void modifyLogMetaStatusAsync(const Model::ModifyLogMetaStatusRequest& request, const ModifyLogMetaStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLogMetaStatusOutcomeCallable modifyLogMetaStatusCallable(const Model::ModifyLogMetaStatusRequest& request) const; DescribeSuspiciousExportInfoOutcome describeSuspiciousExportInfo(const Model::DescribeSuspiciousExportInfoRequest &request)const; void describeSuspiciousExportInfoAsync(const Model::DescribeSuspiciousExportInfoRequest& request, const DescribeSuspiciousExportInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspiciousExportInfoOutcomeCallable describeSuspiciousExportInfoCallable(const Model::DescribeSuspiciousExportInfoRequest& request) const; @@ -1645,39 +1960,48 @@ namespace AlibabaCloud DescribeAssetListOutcome describeAssetList(const Model::DescribeAssetListRequest &request)const; void describeAssetListAsync(const Model::DescribeAssetListRequest& request, const DescribeAssetListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAssetListOutcomeCallable describeAssetListCallable(const Model::DescribeAssetListRequest& request) const; - ModifyMachineConfigOutcome modifyMachineConfig(const Model::ModifyMachineConfigRequest &request)const; - void modifyMachineConfigAsync(const Model::ModifyMachineConfigRequest& request, const ModifyMachineConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyMachineConfigOutcomeCallable modifyMachineConfigCallable(const Model::ModifyMachineConfigRequest& request) const; DescribeVersionConfigOutcome describeVersionConfig(const Model::DescribeVersionConfigRequest &request)const; void describeVersionConfigAsync(const Model::DescribeVersionConfigRequest& request, const DescribeVersionConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVersionConfigOutcomeCallable describeVersionConfigCallable(const Model::DescribeVersionConfigRequest& request) const; - DescribeMacConfigOutcome describeMacConfig(const Model::DescribeMacConfigRequest &request)const; - void describeMacConfigAsync(const Model::DescribeMacConfigRequest& request, const DescribeMacConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMacConfigOutcomeCallable describeMacConfigCallable(const Model::DescribeMacConfigRequest& request) const; + ModifyMachineConfigOutcome modifyMachineConfig(const Model::ModifyMachineConfigRequest &request)const; + void modifyMachineConfigAsync(const Model::ModifyMachineConfigRequest& request, const ModifyMachineConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyMachineConfigOutcomeCallable modifyMachineConfigCallable(const Model::ModifyMachineConfigRequest& request) const; + AddEventProcessOutcome addEventProcess(const Model::AddEventProcessRequest &request)const; + void addEventProcessAsync(const Model::AddEventProcessRequest& request, const AddEventProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddEventProcessOutcomeCallable addEventProcessCallable(const Model::AddEventProcessRequest& request) const; + DescribeChartDataOutcome describeChartData(const Model::DescribeChartDataRequest &request)const; + void describeChartDataAsync(const Model::DescribeChartDataRequest& request, const DescribeChartDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeChartDataOutcomeCallable describeChartDataCallable(const Model::DescribeChartDataRequest& request) const; RollbackQuaraFileOutcome rollbackQuaraFile(const Model::RollbackQuaraFileRequest &request)const; void rollbackQuaraFileAsync(const Model::RollbackQuaraFileRequest& request, const RollbackQuaraFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RollbackQuaraFileOutcomeCallable rollbackQuaraFileCallable(const Model::RollbackQuaraFileRequest& request) const; + DescribeMacConfigOutcome describeMacConfig(const Model::DescribeMacConfigRequest &request)const; + void describeMacConfigAsync(const Model::DescribeMacConfigRequest& request, const DescribeMacConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMacConfigOutcomeCallable describeMacConfigCallable(const Model::DescribeMacConfigRequest& request) const; DescribeApiBuySummaryOutcome describeApiBuySummary(const Model::DescribeApiBuySummaryRequest &request)const; void describeApiBuySummaryAsync(const Model::DescribeApiBuySummaryRequest& request, const DescribeApiBuySummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeApiBuySummaryOutcomeCallable describeApiBuySummaryCallable(const Model::DescribeApiBuySummaryRequest& request) const; - DescribeWebLockMachineListOutcome describeWebLockMachineList(const Model::DescribeWebLockMachineListRequest &request)const; - void describeWebLockMachineListAsync(const Model::DescribeWebLockMachineListRequest& request, const DescribeWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeWebLockMachineListOutcomeCallable describeWebLockMachineListCallable(const Model::DescribeWebLockMachineListRequest& request) const; DeleteVulBatchOutcome deleteVulBatch(const Model::DeleteVulBatchRequest &request)const; void deleteVulBatchAsync(const Model::DeleteVulBatchRequest& request, const DeleteVulBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVulBatchOutcomeCallable deleteVulBatchCallable(const Model::DeleteVulBatchRequest& request) const; + DescribeWebLockMachineListOutcome describeWebLockMachineList(const Model::DescribeWebLockMachineListRequest &request)const; + void describeWebLockMachineListAsync(const Model::DescribeWebLockMachineListRequest& request, const DescribeWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWebLockMachineListOutcomeCallable describeWebLockMachineListCallable(const Model::DescribeWebLockMachineListRequest& request) const; ModifyWebLockStatusOutcome modifyWebLockStatus(const Model::ModifyWebLockStatusRequest &request)const; void modifyWebLockStatusAsync(const Model::ModifyWebLockStatusRequest& request, const ModifyWebLockStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyWebLockStatusOutcomeCallable modifyWebLockStatusCallable(const Model::ModifyWebLockStatusRequest& request) const; UpdateWhiteListProcessStatusOutcome updateWhiteListProcessStatus(const Model::UpdateWhiteListProcessStatusRequest &request)const; void updateWhiteListProcessStatusAsync(const Model::UpdateWhiteListProcessStatusRequest& request, const UpdateWhiteListProcessStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateWhiteListProcessStatusOutcomeCallable updateWhiteListProcessStatusCallable(const Model::UpdateWhiteListProcessStatusRequest& request) const; - DescribeScreenSettingOutcome describeScreenSetting(const Model::DescribeScreenSettingRequest &request)const; - void describeScreenSettingAsync(const Model::DescribeScreenSettingRequest& request, const DescribeScreenSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScreenSettingOutcomeCallable describeScreenSettingCallable(const Model::DescribeScreenSettingRequest& request) const; CreateLogQueryOutcome createLogQuery(const Model::CreateLogQueryRequest &request)const; void createLogQueryAsync(const Model::CreateLogQueryRequest& request, const CreateLogQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLogQueryOutcomeCallable createLogQueryCallable(const Model::CreateLogQueryRequest& request) const; + DescribeAccessKeyLeakDetailOutcome describeAccessKeyLeakDetail(const Model::DescribeAccessKeyLeakDetailRequest &request)const; + void describeAccessKeyLeakDetailAsync(const Model::DescribeAccessKeyLeakDetailRequest& request, const DescribeAccessKeyLeakDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessKeyLeakDetailOutcomeCallable describeAccessKeyLeakDetailCallable(const Model::DescribeAccessKeyLeakDetailRequest& request) const; + DescribeScreenSettingOutcome describeScreenSetting(const Model::DescribeScreenSettingRequest &request)const; + void describeScreenSettingAsync(const Model::DescribeScreenSettingRequest& request, const DescribeScreenSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScreenSettingOutcomeCallable describeScreenSettingCallable(const Model::DescribeScreenSettingRequest& request) const; DescribeWarningOutcome describeWarning(const Model::DescribeWarningRequest &request)const; void describeWarningAsync(const Model::DescribeWarningRequest& request, const DescribeWarningAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWarningOutcomeCallable describeWarningCallable(const Model::DescribeWarningRequest& request) const; @@ -1717,12 +2041,12 @@ namespace AlibabaCloud DescribeHistogramOutcome describeHistogram(const Model::DescribeHistogramRequest &request)const; void describeHistogramAsync(const Model::DescribeHistogramRequest& request, const DescribeHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeHistogramOutcomeCallable describeHistogramCallable(const Model::DescribeHistogramRequest& request) const; - DescribeDingTalkOutcome describeDingTalk(const Model::DescribeDingTalkRequest &request)const; - void describeDingTalkAsync(const Model::DescribeDingTalkRequest& request, const DescribeDingTalkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDingTalkOutcomeCallable describeDingTalkCallable(const Model::DescribeDingTalkRequest& request) const; DescribeLoginLogsOutcome describeLoginLogs(const Model::DescribeLoginLogsRequest &request)const; void describeLoginLogsAsync(const Model::DescribeLoginLogsRequest& request, const DescribeLoginLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoginLogsOutcomeCallable describeLoginLogsCallable(const Model::DescribeLoginLogsRequest& request) const; + DescribeDingTalkOutcome describeDingTalk(const Model::DescribeDingTalkRequest &request)const; + void describeDingTalkAsync(const Model::DescribeDingTalkRequest& request, const DescribeDingTalkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDingTalkOutcomeCallable describeDingTalkCallable(const Model::DescribeDingTalkRequest& request) const; DescribeMetaDataOutcome describeMetaData(const Model::DescribeMetaDataRequest &request)const; void describeMetaDataAsync(const Model::DescribeMetaDataRequest& request, const DescribeMetaDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMetaDataOutcomeCallable describeMetaDataCallable(const Model::DescribeMetaDataRequest& request) const; @@ -1738,12 +2062,12 @@ namespace AlibabaCloud ModifyScreenSettingOutcome modifyScreenSetting(const Model::ModifyScreenSettingRequest &request)const; void modifyScreenSettingAsync(const Model::ModifyScreenSettingRequest& request, const ModifyScreenSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyScreenSettingOutcomeCallable modifyScreenSettingCallable(const Model::ModifyScreenSettingRequest& request) const; - ModifyStrategyOutcome modifyStrategy(const Model::ModifyStrategyRequest &request)const; - void modifyStrategyAsync(const Model::ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyStrategyOutcomeCallable modifyStrategyCallable(const Model::ModifyStrategyRequest& request) const; DescribeEmgNoticeOutcome describeEmgNotice(const Model::DescribeEmgNoticeRequest &request)const; void describeEmgNoticeAsync(const Model::DescribeEmgNoticeRequest& request, const DescribeEmgNoticeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEmgNoticeOutcomeCallable describeEmgNoticeCallable(const Model::DescribeEmgNoticeRequest& request) const; + ModifyStrategyOutcome modifyStrategy(const Model::ModifyStrategyRequest &request)const; + void modifyStrategyAsync(const Model::ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyStrategyOutcomeCallable modifyStrategyCallable(const Model::ModifyStrategyRequest& request) const; DescribeScreenOperateInfoOutcome describeScreenOperateInfo(const Model::DescribeScreenOperateInfoRequest &request)const; void describeScreenOperateInfoAsync(const Model::DescribeScreenOperateInfoRequest& request, const DescribeScreenOperateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScreenOperateInfoOutcomeCallable describeScreenOperateInfoCallable(const Model::DescribeScreenOperateInfoRequest& request) const; @@ -1753,27 +2077,30 @@ namespace AlibabaCloud DescribeSuspEventQuaraFilesOutcome describeSuspEventQuaraFiles(const Model::DescribeSuspEventQuaraFilesRequest &request)const; void describeSuspEventQuaraFilesAsync(const Model::DescribeSuspEventQuaraFilesRequest& request, const DescribeSuspEventQuaraFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspEventQuaraFilesOutcomeCallable describeSuspEventQuaraFilesCallable(const Model::DescribeSuspEventQuaraFilesRequest& request) const; - ValidateHcWarningsOutcome validateHcWarnings(const Model::ValidateHcWarningsRequest &request)const; - void validateHcWarningsAsync(const Model::ValidateHcWarningsRequest& request, const ValidateHcWarningsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ValidateHcWarningsOutcomeCallable validateHcWarningsCallable(const Model::ValidateHcWarningsRequest& request) const; CreateOrUpdateJoinRuleOutcome createOrUpdateJoinRule(const Model::CreateOrUpdateJoinRuleRequest &request)const; void createOrUpdateJoinRuleAsync(const Model::CreateOrUpdateJoinRuleRequest& request, const CreateOrUpdateJoinRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrUpdateJoinRuleOutcomeCallable createOrUpdateJoinRuleCallable(const Model::CreateOrUpdateJoinRuleRequest& request) const; + ValidateHcWarningsOutcome validateHcWarnings(const Model::ValidateHcWarningsRequest &request)const; + void validateHcWarningsAsync(const Model::ValidateHcWarningsRequest& request, const ValidateHcWarningsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateHcWarningsOutcomeCallable validateHcWarningsCallable(const Model::ValidateHcWarningsRequest& request) const; AutoUpgradeSasOutcome autoUpgradeSas(const Model::AutoUpgradeSasRequest &request)const; void autoUpgradeSasAsync(const Model::AutoUpgradeSasRequest& request, const AutoUpgradeSasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AutoUpgradeSasOutcomeCallable autoUpgradeSasCallable(const Model::AutoUpgradeSasRequest& request) const; + ModifyRefreshProcessInfoOutcome modifyRefreshProcessInfo(const Model::ModifyRefreshProcessInfoRequest &request)const; + void modifyRefreshProcessInfoAsync(const Model::ModifyRefreshProcessInfoRequest& request, const ModifyRefreshProcessInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRefreshProcessInfoOutcomeCallable modifyRefreshProcessInfoCallable(const Model::ModifyRefreshProcessInfoRequest& request) const; DescribeEmgUserAgreementOutcome describeEmgUserAgreement(const Model::DescribeEmgUserAgreementRequest &request)const; void describeEmgUserAgreementAsync(const Model::DescribeEmgUserAgreementRequest& request, const DescribeEmgUserAgreementAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEmgUserAgreementOutcomeCallable describeEmgUserAgreementCallable(const Model::DescribeEmgUserAgreementRequest& request) const; - ModifyWebLockMachineListOutcome modifyWebLockMachineList(const Model::ModifyWebLockMachineListRequest &request)const; - void modifyWebLockMachineListAsync(const Model::ModifyWebLockMachineListRequest& request, const ModifyWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyWebLockMachineListOutcomeCallable modifyWebLockMachineListCallable(const Model::ModifyWebLockMachineListRequest& request) const; ModifyEmgVulSubmitOutcome modifyEmgVulSubmit(const Model::ModifyEmgVulSubmitRequest &request)const; void modifyEmgVulSubmitAsync(const Model::ModifyEmgVulSubmitRequest& request, const ModifyEmgVulSubmitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEmgVulSubmitOutcomeCallable modifyEmgVulSubmitCallable(const Model::ModifyEmgVulSubmitRequest& request) const; DeleteLogQueryOutcome deleteLogQuery(const Model::DeleteLogQueryRequest &request)const; void deleteLogQueryAsync(const Model::DeleteLogQueryRequest& request, const DeleteLogQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLogQueryOutcomeCallable deleteLogQueryCallable(const Model::DeleteLogQueryRequest& request) const; + ModifyWebLockMachineListOutcome modifyWebLockMachineList(const Model::ModifyWebLockMachineListRequest &request)const; + void modifyWebLockMachineListAsync(const Model::ModifyWebLockMachineListRequest& request, const ModifyWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyWebLockMachineListOutcomeCallable modifyWebLockMachineListCallable(const Model::ModifyWebLockMachineListRequest& request) const; ModifyTargetConfigOutcome modifyTargetConfig(const Model::ModifyTargetConfigRequest &request)const; void modifyTargetConfigAsync(const Model::ModifyTargetConfigRequest& request, const ModifyTargetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyTargetConfigOutcomeCallable modifyTargetConfigCallable(const Model::ModifyTargetConfigRequest& request) const; @@ -1786,12 +2113,12 @@ namespace AlibabaCloud DescribeSuspEventUserSettingOutcome describeSuspEventUserSetting(const Model::DescribeSuspEventUserSettingRequest &request)const; void describeSuspEventUserSettingAsync(const Model::DescribeSuspEventUserSettingRequest& request, const DescribeSuspEventUserSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspEventUserSettingOutcomeCallable describeSuspEventUserSettingCallable(const Model::DescribeSuspEventUserSettingRequest& request) const; - DescribeWhiteListStrategyCountOutcome describeWhiteListStrategyCount(const Model::DescribeWhiteListStrategyCountRequest &request)const; - void describeWhiteListStrategyCountAsync(const Model::DescribeWhiteListStrategyCountRequest& request, const DescribeWhiteListStrategyCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeWhiteListStrategyCountOutcomeCallable describeWhiteListStrategyCountCallable(const Model::DescribeWhiteListStrategyCountRequest& request) const; DescribeVulConfigOutcome describeVulConfig(const Model::DescribeVulConfigRequest &request)const; void describeVulConfigAsync(const Model::DescribeVulConfigRequest& request, const DescribeVulConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVulConfigOutcomeCallable describeVulConfigCallable(const Model::DescribeVulConfigRequest& request) const; + DescribeWhiteListStrategyCountOutcome describeWhiteListStrategyCount(const Model::DescribeWhiteListStrategyCountRequest &request)const; + void describeWhiteListStrategyCountAsync(const Model::DescribeWhiteListStrategyCountRequest& request, const DescribeWhiteListStrategyCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWhiteListStrategyCountOutcomeCallable describeWhiteListStrategyCountCallable(const Model::DescribeWhiteListStrategyCountRequest& request) const; ModifyWebLockRefreshOutcome modifyWebLockRefresh(const Model::ModifyWebLockRefreshRequest &request)const; void modifyWebLockRefreshAsync(const Model::ModifyWebLockRefreshRequest& request, const ModifyWebLockRefreshAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyWebLockRefreshOutcomeCallable modifyWebLockRefreshCallable(const Model::ModifyWebLockRefreshRequest& request) const; @@ -1801,6 +2128,9 @@ namespace AlibabaCloud DescribeWhiteListAssetOutcome describeWhiteListAsset(const Model::DescribeWhiteListAssetRequest &request)const; void describeWhiteListAssetAsync(const Model::DescribeWhiteListAssetRequest& request, const DescribeWhiteListAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWhiteListAssetOutcomeCallable describeWhiteListAssetCallable(const Model::DescribeWhiteListAssetRequest& request) const; + UpdateCustomizeReportStatusOutcome updateCustomizeReportStatus(const Model::UpdateCustomizeReportStatusRequest &request)const; + void updateCustomizeReportStatusAsync(const Model::UpdateCustomizeReportStatusRequest& request, const UpdateCustomizeReportStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCustomizeReportStatusOutcomeCallable updateCustomizeReportStatusCallable(const Model::UpdateCustomizeReportStatusRequest& request) const; ModifyClearLogstoreStorageOutcome modifyClearLogstoreStorage(const Model::ModifyClearLogstoreStorageRequest &request)const; void modifyClearLogstoreStorageAsync(const Model::ModifyClearLogstoreStorageRequest& request, const ModifyClearLogstoreStorageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyClearLogstoreStorageOutcomeCallable modifyClearLogstoreStorageCallable(const Model::ModifyClearLogstoreStorageRequest& request) const; @@ -1810,24 +2140,30 @@ namespace AlibabaCloud DescribeCheckWarningsOutcome describeCheckWarnings(const Model::DescribeCheckWarningsRequest &request)const; void describeCheckWarningsAsync(const Model::DescribeCheckWarningsRequest& request, const DescribeCheckWarningsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCheckWarningsOutcomeCallable describeCheckWarningsCallable(const Model::DescribeCheckWarningsRequest& request) const; - DescribeSecurityStatInfoOutcome describeSecurityStatInfo(const Model::DescribeSecurityStatInfoRequest &request)const; - void describeSecurityStatInfoAsync(const Model::DescribeSecurityStatInfoRequest& request, const DescribeSecurityStatInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSecurityStatInfoOutcomeCallable describeSecurityStatInfoCallable(const Model::DescribeSecurityStatInfoRequest& request) const; + DeleteSuspEventNodeOutcome deleteSuspEventNode(const Model::DeleteSuspEventNodeRequest &request)const; + void deleteSuspEventNodeAsync(const Model::DeleteSuspEventNodeRequest& request, const DeleteSuspEventNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSuspEventNodeOutcomeCallable deleteSuspEventNodeCallable(const Model::DeleteSuspEventNodeRequest& request) const; + DescribeHostStatisticsOutcome describeHostStatistics(const Model::DescribeHostStatisticsRequest &request)const; + void describeHostStatisticsAsync(const Model::DescribeHostStatisticsRequest& request, const DescribeHostStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHostStatisticsOutcomeCallable describeHostStatisticsCallable(const Model::DescribeHostStatisticsRequest& request) const; SaveWhiteListStrategyOutcome saveWhiteListStrategy(const Model::SaveWhiteListStrategyRequest &request)const; void saveWhiteListStrategyAsync(const Model::SaveWhiteListStrategyRequest& request, const SaveWhiteListStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveWhiteListStrategyOutcomeCallable saveWhiteListStrategyCallable(const Model::SaveWhiteListStrategyRequest& request) const; + DescribeSecurityStatInfoOutcome describeSecurityStatInfo(const Model::DescribeSecurityStatInfoRequest &request)const; + void describeSecurityStatInfoAsync(const Model::DescribeSecurityStatInfoRequest& request, const DescribeSecurityStatInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityStatInfoOutcomeCallable describeSecurityStatInfoCallable(const Model::DescribeSecurityStatInfoRequest& request) const; DescribeFilterFieldsOutcome describeFilterFields(const Model::DescribeFilterFieldsRequest &request)const; void describeFilterFieldsAsync(const Model::DescribeFilterFieldsRequest& request, const DescribeFilterFieldsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFilterFieldsOutcomeCallable describeFilterFieldsCallable(const Model::DescribeFilterFieldsRequest& request) const; + DescribeInstanceStatisticsOutcome describeInstanceStatistics(const Model::DescribeInstanceStatisticsRequest &request)const; + void describeInstanceStatisticsAsync(const Model::DescribeInstanceStatisticsRequest& request, const DescribeInstanceStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceStatisticsOutcomeCallable describeInstanceStatisticsCallable(const Model::DescribeInstanceStatisticsRequest& request) const; DescribeScreenSecurityStatInfoOutcome describeScreenSecurityStatInfo(const Model::DescribeScreenSecurityStatInfoRequest &request)const; void describeScreenSecurityStatInfoAsync(const Model::DescribeScreenSecurityStatInfoRequest& request, const DescribeScreenSecurityStatInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScreenSecurityStatInfoOutcomeCallable describeScreenSecurityStatInfoCallable(const Model::DescribeScreenSecurityStatInfoRequest& request) const; OperateSuspiciousOverallConfigOutcome operateSuspiciousOverallConfig(const Model::OperateSuspiciousOverallConfigRequest &request)const; void operateSuspiciousOverallConfigAsync(const Model::OperateSuspiciousOverallConfigRequest& request, const OperateSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OperateSuspiciousOverallConfigOutcomeCallable operateSuspiciousOverallConfigCallable(const Model::OperateSuspiciousOverallConfigRequest& request) const; - DescribeInstanceStatisticsOutcome describeInstanceStatistics(const Model::DescribeInstanceStatisticsRequest &request)const; - void describeInstanceStatisticsAsync(const Model::DescribeInstanceStatisticsRequest& request, const DescribeInstanceStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeInstanceStatisticsOutcomeCallable describeInstanceStatisticsCallable(const Model::DescribeInstanceStatisticsRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/aegis/include/alibabacloud/aegis/model/AddEventProcessRequest.h b/aegis/include/alibabacloud/aegis/model/AddEventProcessRequest.h new file mode 100644 index 000000000..a3bdb3f44 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/AddEventProcessRequest.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_AEGIS_MODEL_ADDEVENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_ADDEVENTPROCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT AddEventProcessRequest : public RpcServiceRequest + { + + public: + AddEventProcessRequest(); + ~AddEventProcessRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getWarningType()const; + void setWarningType(const std::string& warningType); + std::string getSuspiciousEventIds()const; + void setSuspiciousEventIds(const std::string& suspiciousEventIds); + std::string getFrom()const; + void setFrom(const std::string& from); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string warningType_; + std::string suspiciousEventIds_; + std::string from_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_ADDEVENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/AddEventProcessResult.h b/aegis/include/alibabacloud/aegis/model/AddEventProcessResult.h new file mode 100644 index 000000000..d977fa56f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/AddEventProcessResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_ADDEVENTPROCESSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_ADDEVENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT AddEventProcessResult : public ServiceResult + { + public: + + + AddEventProcessResult(); + explicit AddEventProcessResult(const std::string &payload); + ~AddEventProcessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_ADDEVENTPROCESSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigRequest.h b/aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigRequest.h new file mode 100644 index 000000000..c36181a43 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigRequest.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_AEGIS_MODEL_COPYCUSTOMIZEREPORTCONFIGREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_COPYCUSTOMIZEREPORTCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CopyCustomizeReportConfigRequest : public RpcServiceRequest + { + + public: + CopyCustomizeReportConfigRequest(); + ~CopyCustomizeReportConfigRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long reportId_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_COPYCUSTOMIZEREPORTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigResult.h b/aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigResult.h new file mode 100644 index 000000000..f71d31c47 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CopyCustomizeReportConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_COPYCUSTOMIZEREPORTCONFIGRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_COPYCUSTOMIZEREPORTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CopyCustomizeReportConfigResult : public ServiceResult + { + public: + + + CopyCustomizeReportConfigResult(); + explicit CopyCustomizeReportConfigResult(const std::string &payload); + ~CopyCustomizeReportConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_COPYCUSTOMIZEREPORTCONFIGRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CreateOrUpdateDataSourceRequest.h b/aegis/include/alibabacloud/aegis/model/CreateOrUpdateDataSourceRequest.h index 1aaacf9a7..f98f3c43b 100644 --- a/aegis/include/alibabacloud/aegis/model/CreateOrUpdateDataSourceRequest.h +++ b/aegis/include/alibabacloud/aegis/model/CreateOrUpdateDataSourceRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getProjectName()const; void setProjectName(const std::string& projectName); + std::string getConfigType()const; + void setConfigType(const std::string& configType); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLogStoreName()const; @@ -50,6 +52,7 @@ namespace AlibabaCloud private: std::string projectName_; + std::string configType_; std::string sourceIp_; std::string logStoreName_; std::string datasourceDescription_; diff --git a/aegis/include/alibabacloud/aegis/model/CreateScreenSettingRequest.h b/aegis/include/alibabacloud/aegis/model/CreateScreenSettingRequest.h new file mode 100644 index 000000000..e0a002961 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CreateScreenSettingRequest.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_AEGIS_MODEL_CREATESCREENSETTINGREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_CREATESCREENSETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CreateScreenSettingRequest : public RpcServiceRequest + { + + public: + CreateScreenSettingRequest(); + ~CreateScreenSettingRequest(); + + std::string getScreenDataMap()const; + void setScreenDataMap(const std::string& screenDataMap); + int getScreenDefault()const; + void setScreenDefault(int screenDefault); + bool getLogoPower()const; + void setLogoPower(bool logoPower); + std::string getMonitorUrl()const; + void setMonitorUrl(const std::string& monitorUrl); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getId()const; + void setId(int id); + std::string getTitle()const; + void setTitle(const std::string& title); + std::string getLogoUrl()const; + void setLogoUrl(const std::string& logoUrl); + + private: + std::string screenDataMap_; + int screenDefault_; + bool logoPower_; + std::string monitorUrl_; + std::string sourceIp_; + int id_; + std::string title_; + std::string logoUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_CREATESCREENSETTINGREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CreateScreenSettingResult.h b/aegis/include/alibabacloud/aegis/model/CreateScreenSettingResult.h new file mode 100644 index 000000000..8036a1589 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CreateScreenSettingResult.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_AEGIS_MODEL_CREATESCREENSETTINGRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_CREATESCREENSETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CreateScreenSettingResult : public ServiceResult + { + public: + + + CreateScreenSettingResult(); + explicit CreateScreenSettingResult(const std::string &payload); + ~CreateScreenSettingResult(); + int getId()const; + + protected: + void parse(const std::string &payload); + private: + int id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_CREATESCREENSETTINGRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteRequest.h b/aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteRequest.h new file mode 100644 index 000000000..ed54d6e2b --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteRequest.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_AEGIS_MODEL_CREATESUSPEVENTNOTEREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_CREATESUSPEVENTNOTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CreateSuspEventNoteRequest : public RpcServiceRequest + { + + public: + CreateSuspEventNoteRequest(); + ~CreateSuspEventNoteRequest(); + + int getEventId()const; + void setEventId(int eventId); + std::string getNote()const; + void setNote(const std::string& note); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + int eventId_; + std::string note_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_CREATESUSPEVENTNOTEREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteResult.h b/aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteResult.h new file mode 100644 index 000000000..bbdd1a358 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CreateSuspEventNoteResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_CREATESUSPEVENTNOTERESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_CREATESUSPEVENTNOTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CreateSuspEventNoteResult : public ServiceResult + { + public: + + + CreateSuspEventNoteResult(); + explicit CreateSuspEventNoteResult(const std::string &payload); + ~CreateSuspEventNoteResult(); + int getHttpStatusCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_CREATESUSPEVENTNOTERESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportRequest.h b/aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportRequest.h new file mode 100644 index 000000000..5725200f0 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportRequest.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_AEGIS_MODEL_DELETECUSTOMIZEREPORTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DELETECUSTOMIZEREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DeleteCustomizeReportRequest : public RpcServiceRequest + { + + public: + DeleteCustomizeReportRequest(); + ~DeleteCustomizeReportRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long reportId_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DELETECUSTOMIZEREPORTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportResult.h b/aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportResult.h new file mode 100644 index 000000000..8a281e981 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DeleteCustomizeReportResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DELETECUSTOMIZEREPORTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DELETECUSTOMIZEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DeleteCustomizeReportResult : public ServiceResult + { + public: + + + DeleteCustomizeReportResult(); + explicit DeleteCustomizeReportResult(const std::string &payload); + ~DeleteCustomizeReportResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DELETECUSTOMIZEREPORTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingRequest.h b/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingRequest.h index 1f13a8e45..79d6e5962 100644 --- a/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingRequest.h @@ -37,12 +37,12 @@ namespace AlibabaCloud std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); - std::string getScreenTitle()const; - void setScreenTitle(const std::string& screenTitle); + std::string getId()const; + void setId(const std::string& id); private: std::string sourceIp_; - std::string screenTitle_; + std::string id_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingResult.h b/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingResult.h index ffbe62040..ebf0ff0c3 100644 --- a/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingResult.h +++ b/aegis/include/alibabacloud/aegis/model/DeleteScreenSettingResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud DeleteScreenSettingResult(); explicit DeleteScreenSettingResult(const std::string &payload); ~DeleteScreenSettingResult(); + bool getSuccess()const; protected: void parse(const std::string &payload); private: + bool success_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeRequest.h b/aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeRequest.h new file mode 100644 index 000000000..70b39b09e --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeRequest.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_AEGIS_MODEL_DELETESUSPEVENTNODEREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DELETESUSPEVENTNODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DeleteSuspEventNodeRequest : public RpcServiceRequest + { + + public: + DeleteSuspEventNodeRequest(); + ~DeleteSuspEventNodeRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getNoteId()const; + void setNoteId(int noteId); + + private: + std::string sourceIp_; + int noteId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DELETESUSPEVENTNODEREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeResult.h b/aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeResult.h new file mode 100644 index 000000000..9be30e28f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DeleteSuspEventNodeResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DELETESUSPEVENTNODERESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DELETESUSPEVENTNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DeleteSuspEventNodeResult : public ServiceResult + { + public: + + + DeleteSuspEventNodeResult(); + explicit DeleteSuspEventNodeResult(const std::string &payload); + ~DeleteSuspEventNodeResult(); + int getHttpStatusCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DELETESUSPEVENTNODERESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailRequest.h new file mode 100644 index 000000000..b5a41b113 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailRequest.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_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKDETAILREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeAccessKeyLeakDetailRequest : public RpcServiceRequest + { + + public: + DescribeAccessKeyLeakDetailRequest(); + ~DescribeAccessKeyLeakDetailRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getId()const; + void setId(long id); + + private: + std::string sourceIp_; + long id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKDETAILREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailResult.h b/aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailResult.h new file mode 100644 index 000000000..8a35a90ee --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeAccessKeyLeakDetailResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKDETAILRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeAccessKeyLeakDetailResult : public ServiceResult + { + public: + + + DescribeAccessKeyLeakDetailResult(); + explicit DescribeAccessKeyLeakDetailResult(const std::string &payload); + ~DescribeAccessKeyLeakDetailResult(); + std::string getGithubRepoName()const; + std::string getGithubRepoUrl()const; + std::string getGithubFileName()const; + std::string getDealType()const; + std::string getWhitelistStatus()const; + std::string getGmtModified()const; + std::string getCode()const; + std::string getSource()const; + std::string getRemark()const; + std::string getGmtCreate()const; + std::string getType()const; + std::string getGithubUserPicUrl()const; + std::string getGithubFileUpdateTime()const; + std::string getAccesskeyId()const; + std::string getGithubFileUrl()const; + std::string getGithubFileType()const; + std::string getAsset()const; + std::string getGithubUser()const; + std::string getDealTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string githubRepoName_; + std::string githubRepoUrl_; + std::string githubFileName_; + std::string dealType_; + std::string whitelistStatus_; + std::string gmtModified_; + std::string code_; + std::string source_; + std::string remark_; + std::string gmtCreate_; + std::string type_; + std::string githubUserPicUrl_; + std::string githubFileUpdateTime_; + std::string accesskeyId_; + std::string githubFileUrl_; + std::string githubFileType_; + std::string asset_; + std::string githubUser_; + std::string dealTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKDETAILRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListRequest.h new file mode 100644 index 000000000..c8487ec67 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListRequest.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_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeAccesskeyLeakListRequest : public RpcServiceRequest + { + + public: + DescribeAccesskeyLeakListRequest(); + ~DescribeAccesskeyLeakListRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getQuery()const; + void setQuery(const std::string& query); + int getPageSize()const; + void setPageSize(int pageSize); + long getStartTs()const; + void setStartTs(long startTs); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string sourceIp_; + std::string query_; + int pageSize_; + long startTs_; + int currentPage_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListResult.h new file mode 100644 index 000000000..869bc1a34 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyLeakListResult.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_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeAccesskeyLeakListResult : public ServiceResult + { + public: + struct AccessKeyLeak + { + std::string status; + std::string aliUserName; + std::string type; + std::string dealType; + std::string accesskeyId; + long gmtModified; + std::string asset; + long id; + std::string dealTime; + std::string userType; + }; + + + DescribeAccesskeyLeakListResult(); + explicit DescribeAccesskeyLeakListResult(const std::string &payload); + ~DescribeAccesskeyLeakListResult(); + int getAkLeakCount()const; + std::vector getAccessKeyLeakList()const; + int getTotalCount()const; + int getPageSize()const; + long getGmtLast()const; + int getCurrentPage()const; + + protected: + void parse(const std::string &payload); + private: + int akLeakCount_; + std::vector accessKeyLeakList_; + int totalCount_; + int pageSize_; + long gmtLast_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYLEAKLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoRequest.h new file mode 100644 index 000000000..bab1cd00d --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoRequest.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_AEGIS_MODEL_DESCRIBEACCESSKEYRUNINFOREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYRUNINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeAccesskeyRunInfoRequest : public RpcServiceRequest + { + + public: + DescribeAccesskeyRunInfoRequest(); + ~DescribeAccesskeyRunInfoRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYRUNINFOREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoResult.h b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoResult.h new file mode 100644 index 000000000..2a66368ad --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeAccesskeyRunInfoResult.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_AEGIS_MODEL_DESCRIBEACCESSKEYRUNINFORESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYRUNINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeAccesskeyRunInfoResult : public ServiceResult + { + public: + + + DescribeAccesskeyRunInfoResult(); + explicit DescribeAccesskeyRunInfoResult(const std::string &payload); + ~DescribeAccesskeyRunInfoResult(); + bool getStop()const; + + protected: + void parse(const std::string &payload); + private: + bool stop_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEACCESSKEYRUNINFORESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAgentInstallStatusResult.h b/aegis/include/alibabacloud/aegis/model/DescribeAgentInstallStatusResult.h index 0db7399bd..e20f6787f 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeAgentInstallStatusResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeAgentInstallStatusResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string uuid; std::string message; + std::string resuleCode; int result; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventDetailResult.h b/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventDetailResult.h index 6708e80df..205fc176f 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventDetailResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventDetailResult.h @@ -49,8 +49,10 @@ namespace AlibabaCloud long endTime; std::vector causeDetails; long startTime; + std::string accessCode; std::string intranetIp; bool hasTraceInfo; + bool dealed; std::string dataSource; std::string instanceName; std::string type; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListRequest.h index 75c4f8fbc..cd689df59 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setAlarmEventName(const std::string& alarmEventName); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getPageSize()const; void setPageSize(const std::string& pageSize); std::string getAlarmEventType()const; @@ -55,10 +57,13 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getLevels()const; void setLevels(const std::string& levels); + std::vector getOperateErrorCodeList()const; + void setOperateErrorCodeList(const std::vector& operateErrorCodeList); private: std::string alarmEventName_; std::string sourceIp_; + std::string groupId_; std::string pageSize_; std::string alarmEventType_; std::string dealed_; @@ -67,6 +72,7 @@ namespace AlibabaCloud int currentPage_; std::string lang_; std::string levels_; + std::vector operateErrorCodeList_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListResult.h index c61359d7e..aa2a2dca1 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeAlarmEventListResult.h @@ -44,7 +44,9 @@ namespace AlibabaCloud bool canCancelFault; std::string description; long endTime; + std::string operateErrorCode; std::string alarmEventName; + std::string securityEventIds; long startTime; long gmtModified; std::string saleVersion; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAllRegionsStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeAllRegionsStatisticsRequest.h index df490f4cd..3e2e68551 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeAllRegionsStatisticsRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeAllRegionsStatisticsRequest.h @@ -65,6 +65,8 @@ namespace AlibabaCloud void setWebGroupId(long webGroupId); int getPageSize()const; void setPageSize(int pageSize); + std::string getFrom()const; + void setFrom(const std::string& from); int getAction1()const; void setAction1(int action1); std::string getTag()const; @@ -90,6 +92,7 @@ namespace AlibabaCloud std::string sourceIp_; long webGroupId_; int pageSize_; + std::string from_; int action1_; std::string tag_; int flow_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAssetListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeAssetListRequest.h index 0d629cf80..0aa06f6f2 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeAssetListRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeAssetListRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); int getPageSize()const; void setPageSize(int pageSize); + std::string getFrom()const; + void setFrom(const std::string& from); int getCurrentPage()const; void setCurrentPage(int currentPage); std::string getLang()const; @@ -49,6 +51,7 @@ namespace AlibabaCloud private: std::string sourceIp_; int pageSize_; + std::string from_; int currentPage_; std::string lang_; std::string filterConditions_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeAssetListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeAssetListResult.h index 87f8bc975..2f7887713 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeAssetListResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeAssetListResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Asset { std::string instanceName; + std::string status; std::string assetType; std::string clientStatus; std::string uuid; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultRequest.h new file mode 100644 index 000000000..189f60906 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultRequest.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_AEGIS_MODEL_DESCRIBEBIZSTATSIMPLEQUERYRESULTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEBIZSTATSIMPLEQUERYRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeBizStatSimpleQueryResultRequest : public RpcServiceRequest + { + + public: + DescribeBizStatSimpleQueryResultRequest(); + ~DescribeBizStatSimpleQueryResultRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getCustomTimeRange()const; + void setCustomTimeRange(int customTimeRange); + std::string getCustomQuery()const; + void setCustomQuery(const std::string& customQuery); + + private: + std::string sourceIp_; + std::string endTime_; + std::string startTime_; + int customTimeRange_; + std::string customQuery_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEBIZSTATSIMPLEQUERYRESULTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultResult.h b/aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultResult.h new file mode 100644 index 000000000..c365ac8c9 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeBizStatSimpleQueryResultResult.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_AEGIS_MODEL_DESCRIBEBIZSTATSIMPLEQUERYRESULTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEBIZSTATSIMPLEQUERYRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeBizStatSimpleQueryResultResult : public ServiceResult + { + public: + struct BizStatTrendDOS + { + std::string bizName; + std::vector valueArray; + }; + + + DescribeBizStatSimpleQueryResultResult(); + explicit DescribeBizStatSimpleQueryResultResult(const std::string &payload); + ~DescribeBizStatSimpleQueryResultResult(); + std::vector getTrendDataArr()const; + std::vector getDataTimeArray()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trendDataArr_; + std::vector dataTimeArray_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEBIZSTATSIMPLEQUERYRESULTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeChartDataRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeChartDataRequest.h new file mode 100644 index 000000000..74df655f9 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeChartDataRequest.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_AEGIS_MODEL_DESCRIBECHARTDATAREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeChartDataRequest : public RpcServiceRequest + { + + public: + DescribeChartDataRequest(); + ~DescribeChartDataRequest(); + + long getTimeEnd()const; + void setTimeEnd(long timeEnd); + std::string getRangeUnit()const; + void setRangeUnit(const std::string& rangeUnit); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getCharId()const; + void setCharId(const std::string& charId); + std::string getLang()const; + void setLang(const std::string& lang); + long getTimeStart()const; + void setTimeStart(long timeStart); + + private: + long timeEnd_; + std::string rangeUnit_; + std::string sourceIp_; + std::string charId_; + std::string lang_; + long timeStart_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTDATAREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeChartDataResult.h b/aegis/include/alibabacloud/aegis/model/DescribeChartDataResult.h new file mode 100644 index 000000000..099fba166 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeChartDataResult.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_AEGIS_MODEL_DESCRIBECHARTDATARESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeChartDataResult : public ServiceResult + { + public: + struct CoordinateData + { + struct YAxisDo + { + std::string type; + std::string color; + std::vector value; + std::string name; + }; + std::vector yAxisList; + std::vector xAxis; + }; + struct SingleData + { + std::string type; + std::string color; + long value; + std::string name; + }; + struct MultipleDataItem + { + std::string type; + std::string color; + long value; + std::string name; + }; + + + DescribeChartDataResult(); + explicit DescribeChartDataResult(const std::string &payload); + ~DescribeChartDataResult(); + std::string getChartDataType()const; + std::vector getMultipleData()const; + CoordinateData getCoordinateData()const; + std::string getChartType()const; + SingleData getSingleData()const; + + protected: + void parse(const std::string &payload); + private: + std::string chartDataType_; + std::vector multipleData_; + CoordinateData coordinateData_; + std::string chartType_; + SingleData singleData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTDATARESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeChartListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeChartListRequest.h new file mode 100644 index 000000000..c428b530f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeChartListRequest.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_AEGIS_MODEL_DESCRIBECHARTLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeChartListRequest : public RpcServiceRequest + { + + public: + DescribeChartListRequest(); + ~DescribeChartListRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string projectCode_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeChartListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeChartListResult.h new file mode 100644 index 000000000..296ca938b --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeChartListResult.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_AEGIS_MODEL_DESCRIBECHARTLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeChartListResult : public ServiceResult + { + public: + struct Chart + { + std::string businessName; + std::string chartName; + std::string businessType; + std::string chartType; + std::string chartId; + }; + + + DescribeChartListResult(); + explicit DescribeChartListResult(const std::string &payload); + ~DescribeChartListResult(); + std::vector getChartList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector chartList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHARTLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountRequest.h new file mode 100644 index 000000000..ce813b898 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountRequest.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_AEGIS_MODEL_DESCRIBECHECKWARNINGCOUNTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHECKWARNINGCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCheckWarningCountRequest : public RpcServiceRequest + { + + public: + DescribeCheckWarningCountRequest(); + ~DescribeCheckWarningCountRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + long getRiskId()const; + void setRiskId(long riskId); + long getCheckId()const; + void setCheckId(long checkId); + int getStatus()const; + void setStatus(int status); + + private: + std::string sourceIp_; + std::string lang_; + long riskId_; + long checkId_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHECKWARNINGCOUNTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountResult.h b/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountResult.h new file mode 100644 index 000000000..84cc386a9 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningCountResult.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_AEGIS_MODEL_DESCRIBECHECKWARNINGCOUNTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHECKWARNINGCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCheckWarningCountResult : public ServiceResult + { + public: + + + DescribeCheckWarningCountResult(); + explicit DescribeCheckWarningCountResult(const std::string &payload); + ~DescribeCheckWarningCountResult(); + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECHECKWARNINGCOUNTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningsResult.h index c16d0ffa1..a3222fc2b 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningsResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeCheckWarningsResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud long checkId; long checkWarningId; std::string level; + std::string reason; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataRequest.h new file mode 100644 index 000000000..faf7f0a41 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataRequest.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTDATAREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportChartDataRequest : public RpcServiceRequest + { + + public: + DescribeCustomizeReportChartDataRequest(); + ~DescribeCustomizeReportChartDataRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getChartIds()const; + void setChartIds(const std::string& chartIds); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long reportId_; + std::string chartIds_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTDATAREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataResult.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataResult.h new file mode 100644 index 000000000..ff66e61b5 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartDataResult.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTDATARESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportChartDataResult : public ServiceResult + { + public: + struct Chart + { + struct Data + { + struct ChartData + { + int value; + std::string name; + }; + int old; + std::vector chartDataList; + int count; + std::string name; + }; + std::vector dataList; + std::string type; + std::string chartName; + std::string chartId; + }; + + + DescribeCustomizeReportChartDataResult(); + explicit DescribeCustomizeReportChartDataResult(const std::string &payload); + ~DescribeCustomizeReportChartDataResult(); + std::vector getChartList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector chartList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTDATARESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListRequest.h new file mode 100644 index 000000000..b6e0c7747 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListRequest.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportChartListRequest : public RpcServiceRequest + { + + public: + DescribeCustomizeReportChartListRequest(); + ~DescribeCustomizeReportChartListRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListResult.h new file mode 100644 index 000000000..f63a4a0e9 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportChartListResult.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportChartListResult : public ServiceResult + { + public: + struct Chart + { + std::string area; + std::string chartName; + std::string chartId; + }; + + + DescribeCustomizeReportChartListResult(); + explicit DescribeCustomizeReportChartListResult(const std::string &payload); + ~DescribeCustomizeReportChartListResult(); + std::vector getChartList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector chartList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCHARTLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailRequest.h new file mode 100644 index 000000000..d101a164d --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailRequest.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCONFIGDETAILREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCONFIGDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportConfigDetailRequest : public RpcServiceRequest + { + + public: + DescribeCustomizeReportConfigDetailRequest(); + ~DescribeCustomizeReportConfigDetailRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long reportId_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCONFIGDETAILREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailResult.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailResult.h new file mode 100644 index 000000000..8547823a4 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportConfigDetailResult.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCONFIGDETAILRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCONFIGDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportConfigDetailResult : public ServiceResult + { + public: + + + DescribeCustomizeReportConfigDetailResult(); + explicit DescribeCustomizeReportConfigDetailResult(const std::string &payload); + ~DescribeCustomizeReportConfigDetailResult(); + int getIsDefault()const; + std::string getSendTime()const; + std::string getChartIds()const; + std::string getRecipients()const; + long getReportId()const; + std::string getTitle()const; + std::string getReportStatus()const; + std::string getReportStartDate()const; + std::string getReportType()const; + std::string getReportLang()const; + std::string getReportSendType()const; + std::string getReportEndDate()const; + + protected: + void parse(const std::string &payload); + private: + int isDefault_; + std::string sendTime_; + std::string chartIds_; + std::string recipients_; + long reportId_; + std::string title_; + std::string reportStatus_; + std::string reportStartDate_; + std::string reportType_; + std::string reportLang_; + std::string reportSendType_; + std::string reportEndDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTCONFIGDETAILRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListRequest.h new file mode 100644 index 000000000..7865df5f5 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListRequest.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportListRequest : public RpcServiceRequest + { + + public: + DescribeCustomizeReportListRequest(); + ~DescribeCustomizeReportListRequest(); + + int getReportType()const; + void setReportType(int reportType); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + int getReportStatus()const; + void setReportStatus(int reportStatus); + std::string getTitle()const; + void setTitle(const std::string& title); + + private: + int reportType_; + std::string sourceIp_; + std::string lang_; + int reportStatus_; + std::string title_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListResult.h new file mode 100644 index 000000000..9bc1a109f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeCustomizeReportListResult.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_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeCustomizeReportListResult : public ServiceResult + { + public: + struct Report + { + std::string isDefault; + long reportId; + std::string title; + std::string reportStatus; + int reportType; + }; + + + DescribeCustomizeReportListResult(); + explicit DescribeCustomizeReportListResult(const std::string &payload); + ~DescribeCustomizeReportListResult(); + std::vector getReportList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector reportList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBECUSTOMIZEREPORTLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeDataSourceRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeDataSourceRequest.h index 415697d2e..f1d651b09 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeDataSourceRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeDataSourceRequest.h @@ -35,23 +35,17 @@ namespace AlibabaCloud DescribeDataSourceRequest(); ~DescribeDataSourceRequest(); + std::string getConfigType()const; + void setConfigType(const std::string& configType); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); - std::string getDescription()const; - void setDescription(const std::string& description); - long getId()const; - void setId(long id); std::string getLang()const; void setLang(const std::string& lang); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); private: + std::string configType_; std::string sourceIp_; - std::string description_; - long id_; std::string lang_; - std::string groupName_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeDataSourceResult.h b/aegis/include/alibabacloud/aegis/model/DescribeDataSourceResult.h index 3181f9559..81c14ec66 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeDataSourceResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeDataSourceResult.h @@ -49,6 +49,7 @@ namespace AlibabaCloud }; std::string description; std::vector metaDataFields; + std::string dataSourceName; std::string dateSourceName; int dataSourceId; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeDingTalkResult.h b/aegis/include/alibabacloud/aegis/model/DescribeDingTalkResult.h index af18bfeea..f8a5cce2e 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeDingTalkResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeDingTalkResult.h @@ -38,7 +38,7 @@ namespace AlibabaCloud int pageSize; int currentPage; }; - struct ActionListItem + struct ActionListArr { std::string actionName; long gmtCreate; @@ -54,13 +54,13 @@ namespace AlibabaCloud explicit DescribeDingTalkResult(const std::string &payload); ~DescribeDingTalkResult(); PageInfo getPageInfo()const; - std::vector getActionList()const; + std::vector getActionList()const; protected: void parse(const std::string &payload); private: PageInfo pageInfo_; - std::vector actionList_; + std::vector actionList_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeEmgVulGroupResult.h b/aegis/include/alibabacloud/aegis/model/DescribeEmgVulGroupResult.h index ea28023c1..7efa4d581 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeEmgVulGroupResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeEmgVulGroupResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud int pendingCount; int status; std::string type; + int progress; std::string description; std::string aliasName; long gmtPublish; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeEntityListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeEntityListRequest.h new file mode 100644 index 000000000..ceea7f3dd --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeEntityListRequest.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_AEGIS_MODEL_DESCRIBEENTITYLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEENTITYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeEntityListRequest : public RpcServiceRequest + { + + public: + DescribeEntityListRequest(); + ~DescribeEntityListRequest(); + + std::string getOs()const; + void setOs(const std::string& os); + std::string getTagIdList()const; + void setTagIdList(const std::string& tagIdList); + long getGroupId()const; + void setGroupId(long groupId); + std::string getHealth()const; + void setHealth(const std::string& health); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getTrojan()const; + void setTrojan(const std::string& trojan); + std::string getSuspicious()const; + void setSuspicious(const std::string& suspicious); + std::string getRegionNo()const; + void setRegionNo(const std::string& regionNo); + std::string getPatch()const; + void setPatch(const std::string& patch); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getFrom()const; + void setFrom(const std::string& from); + std::string getAccount()const; + void setAccount(const std::string& account); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string os_; + std::string tagIdList_; + long groupId_; + std::string health_; + int currentPage_; + std::string remark_; + std::string trojan_; + std::string suspicious_; + std::string regionNo_; + std::string patch_; + std::string sourceIp_; + int pageSize_; + std::string from_; + std::string account_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEENTITYLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeEntityListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeEntityListResult.h new file mode 100644 index 000000000..8e7d7ad1a --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeEntityListResult.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_AEGIS_MODEL_DESCRIBEENTITYLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEENTITYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeEntityListResult : public ServiceResult + { + public: + struct Entity + { + std::string instanceName; + bool clientStatus; + std::string aegisVersion; + std::string buyVersion; + std::string uuid; + std::string os; + std::string ip; + std::string region; + bool aegisOnline; + int flag; + long groupId; + }; + + + DescribeEntityListResult(); + explicit DescribeEntityListResult(const std::string &payload); + ~DescribeEntityListResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getEntityList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector entityList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEENTITYLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeGrayFuncRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeGrayFuncRequest.h new file mode 100644 index 000000000..d1a6be1b5 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeGrayFuncRequest.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_AEGIS_MODEL_DESCRIBEGRAYFUNCREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEGRAYFUNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeGrayFuncRequest : public RpcServiceRequest + { + + public: + DescribeGrayFuncRequest(); + ~DescribeGrayFuncRequest(); + + std::string getCondition()const; + void setCondition(const std::string& condition); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string condition_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEGRAYFUNCREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeGrayFuncResult.h b/aegis/include/alibabacloud/aegis/model/DescribeGrayFuncResult.h new file mode 100644 index 000000000..69d9a29b5 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeGrayFuncResult.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_AEGIS_MODEL_DESCRIBEGRAYFUNCRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEGRAYFUNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeGrayFuncResult : public ServiceResult + { + public: + + + DescribeGrayFuncResult(); + explicit DescribeGrayFuncResult(const std::string &payload); + ~DescribeGrayFuncResult(); + bool getIsGrayArg()const; + + protected: + void parse(const std::string &payload); + private: + bool isGrayArg_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEGRAYFUNCRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulRequest.h index d2d7b7440..2300c5c7c 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulRequest.h @@ -39,6 +39,10 @@ namespace AlibabaCloud void setStatusList(const std::string& statusList); std::string getLevel()const; void setLevel(const std::string& level); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getCveId()const; + void setCveId(const std::string& cveId); std::string getOrderBy()const; void setOrderBy(const std::string& orderBy); std::string getDealed()const; @@ -77,6 +81,8 @@ namespace AlibabaCloud private: std::string statusList_; std::string level_; + std::string groupId_; + std::string cveId_; std::string orderBy_; std::string dealed_; int currentPage_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulResult.h b/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulResult.h index dc633348f..a8856ea20 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeGroupedVulResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string aliasName; int asapCount; int nntfCount; + std::string tags; std::string name; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsRequest.h new file mode 100644 index 000000000..c6323e132 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsRequest.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_AEGIS_MODEL_DESCRIBEHOSTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEHOSTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeHostStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeHostStatisticsRequest(); + ~DescribeHostStatisticsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getFrom()const; + void setFrom(const std::string& from); + + private: + std::string sourceIp_; + std::string from_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEHOSTSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsResult.h new file mode 100644 index 000000000..8c37c4db9 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeHostStatisticsResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBEHOSTSTATISTICSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEHOSTSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeHostStatisticsResult : public ServiceResult + { + public: + struct Data + { + std::vector weaknessMachineNames; + std::vector suspEventUuids; + std::vector weaknessUuids; + std::vector suspEventMachineNames; + }; + + + DescribeHostStatisticsResult(); + explicit DescribeHostStatisticsResult(const std::string &payload); + ~DescribeHostStatisticsResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEHOSTSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeJoinRuleListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeJoinRuleListResult.h index 6f039a3e8..39814cce2 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeJoinRuleListResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeJoinRuleListResult.h @@ -39,7 +39,7 @@ namespace AlibabaCloud int currentPage; int count; }; - struct JoinRuleListItem + struct JoinRuleListArr { bool needGroup; std::string description; @@ -62,13 +62,13 @@ namespace AlibabaCloud explicit DescribeJoinRuleListResult(const std::string &payload); ~DescribeJoinRuleListResult(); PageInfo getPageInfo()const; - std::vector getJoinRuleList()const; + std::vector getJoinRuleList()const; protected: void parse(const std::string &payload); private: PageInfo pageInfo_; - std::vector joinRuleList_; + std::vector joinRuleList_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeLatestActionsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeLatestActionsRequest.h new file mode 100644 index 000000000..cef446473 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeLatestActionsRequest.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_AEGIS_MODEL_DESCRIBELATESTACTIONSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBELATESTACTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeLatestActionsRequest : public RpcServiceRequest + { + + public: + DescribeLatestActionsRequest(); + ~DescribeLatestActionsRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getFrom()const; + void setFrom(const std::string& from); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getSecureToken()const; + void setSecureToken(const std::string& secureToken); + + private: + std::string sourceIp_; + int pageSize_; + std::string from_; + int currentPage_; + std::string secureToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBELATESTACTIONSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeLatestActionsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeLatestActionsResult.h new file mode 100644 index 000000000..96e8b416a --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeLatestActionsResult.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_AEGIS_MODEL_DESCRIBELATESTACTIONSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBELATESTACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeLatestActionsResult : public ServiceResult + { + public: + + + DescribeLatestActionsResult(); + explicit DescribeLatestActionsResult(const std::string &payload); + ~DescribeLatestActionsResult(); + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBELATESTACTIONSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeResultListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeResultListResult.h index 1e884e9e3..06a18a4c8 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeResultListResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeResultListResult.h @@ -39,7 +39,7 @@ namespace AlibabaCloud int currentPage; int count; }; - struct ResultListItem + struct ResultListArr { long lastOperate; int status; @@ -68,13 +68,13 @@ namespace AlibabaCloud explicit DescribeResultListResult(const std::string &payload); ~DescribeResultListResult(); PageInfo getPageInfo()const; - std::vector getResultList()const; + std::vector getResultList()const; protected: void parse(const std::string &payload); private: PageInfo pageInfo_; - std::vector resultList_; + std::vector resultList_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeSasAssetStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeSasAssetStatisticsRequest.h index 2c8a9ef51..b44b5e835 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeSasAssetStatisticsRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeSasAssetStatisticsRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setStatisticsColumn(const std::string& statisticsColumn); int getPageSize()const; void setPageSize(int pageSize); + std::string getFrom()const; + void setFrom(const std::string& from); int getCurrentPage()const; void setCurrentPage(int currentPage); std::string getUuids()const; @@ -50,6 +52,7 @@ namespace AlibabaCloud std::string sourceIp_; std::string statisticsColumn_; int pageSize_; + std::string from_; int currentPage_; std::string uuids_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeSasLeftConditionRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeSasLeftConditionRequest.h index c1444961c..9719c774e 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeSasLeftConditionRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeSasLeftConditionRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); std::string getConditionType()const; void setConditionType(const std::string& conditionType); + std::string getFrom()const; + void setFrom(const std::string& from); std::string getLang()const; void setLang(const std::string& lang); std::string getFilterConditions()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: std::string sourceIp_; std::string conditionType_; + std::string from_; std::string lang_; std::string filterConditions_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultRequest.h new file mode 100644 index 000000000..a4f374d35 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultRequest.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_AEGIS_MODEL_DESCRIBESCREENBIZSTATSIMPLEQUERYRESULTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENBIZSTATSIMPLEQUERYRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenBizStatSimpleQueryResultRequest : public RpcServiceRequest + { + + public: + DescribeScreenBizStatSimpleQueryResultRequest(); + ~DescribeScreenBizStatSimpleQueryResultRequest(); + + std::string getRangeUnit()const; + void setRangeUnit(const std::string& rangeUnit); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getCustomQuery()const; + void setCustomQuery(const std::string& customQuery); + int getRangeValue()const; + void setRangeValue(int rangeValue); + + private: + std::string rangeUnit_; + std::string sourceIp_; + long endTime_; + long startTime_; + std::string customQuery_; + int rangeValue_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENBIZSTATSIMPLEQUERYRESULTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultResult.h new file mode 100644 index 000000000..25c8bba18 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenBizStatSimpleQueryResultResult.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_AEGIS_MODEL_DESCRIBESCREENBIZSTATSIMPLEQUERYRESULTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENBIZSTATSIMPLEQUERYRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenBizStatSimpleQueryResultResult : public ServiceResult + { + public: + struct BizStatTrendDOS + { + std::string bizName; + std::vector valueArray; + }; + + + DescribeScreenBizStatSimpleQueryResultResult(); + explicit DescribeScreenBizStatSimpleQueryResultResult(const std::string &payload); + ~DescribeScreenBizStatSimpleQueryResultResult(); + std::vector getTrendDataArr()const; + std::vector getDataTimeArray()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trendDataArr_; + std::vector dataTimeArray_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENBIZSTATSIMPLEQUERYRESULTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataRequest.h new file mode 100644 index 000000000..a14bc3cf9 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataRequest.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_AEGIS_MODEL_DESCRIBESCREENCITYMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCITYMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenCityMonitorDataRequest : public RpcServiceRequest + { + + public: + DescribeScreenCityMonitorDataRequest(); + ~DescribeScreenCityMonitorDataRequest(); + + int getScreenId()const; + void setScreenId(int screenId); + std::string getDateType()const; + void setDateType(const std::string& dateType); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + int screenId_; + std::string dateType_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCITYMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataResult.h new file mode 100644 index 000000000..424d6e844 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenCityMonitorDataResult.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_AEGIS_MODEL_DESCRIBESCREENCITYMONITORDATARESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCITYMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenCityMonitorDataResult : public ServiceResult + { + public: + struct MonitorDataItem + { + std::string availability; + std::string returnTime; + std::string city; + }; + + + DescribeScreenCityMonitorDataResult(); + explicit DescribeScreenCityMonitorDataResult(const std::string &payload); + ~DescribeScreenCityMonitorDataResult(); + std::vector getMonitorData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector monitorData_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCITYMONITORDATARESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskRequest.h new file mode 100644 index 000000000..6bbfa6638 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskRequest.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_AEGIS_MODEL_DESCRIBESCREENCLOUDHCRISKREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCLOUDHCRISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenCloudHcRiskRequest : public RpcServiceRequest + { + + public: + DescribeScreenCloudHcRiskRequest(); + ~DescribeScreenCloudHcRiskRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCLOUDHCRISKREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskResult.h new file mode 100644 index 000000000..23ea06e67 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenCloudHcRiskResult.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_AEGIS_MODEL_DESCRIBESCREENCLOUDHCRISKRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCLOUDHCRISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenCloudHcRiskResult : public ServiceResult + { + public: + struct CloudHcRiskItem + { + std::string checkItem; + int affectCount; + bool pass; + std::string level; + }; + + + DescribeScreenCloudHcRiskResult(); + explicit DescribeScreenCloudHcRiskResult(const std::string &payload); + ~DescribeScreenCloudHcRiskResult(); + std::vector getCloudHcRiskItems()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cloudHcRiskItems_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENCLOUDHCRISKRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapRequest.h new file mode 100644 index 000000000..f53c2051c --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapRequest.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_AEGIS_MODEL_DESCRIBESCREENDATAMAPREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENDATAMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenDataMapRequest : public RpcServiceRequest + { + + public: + DescribeScreenDataMapRequest(); + ~DescribeScreenDataMapRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENDATAMAPREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapResult.h new file mode 100644 index 000000000..d1731fe9b --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenDataMapResult.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_AEGIS_MODEL_DESCRIBESCREENDATAMAPRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENDATAMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenDataMapResult : public ServiceResult + { + public: + struct SasScreenType + { + struct SasScreenModel + { + struct IntegerItem + { + std::string value; + std::string unit; + }; + std::string title; + std::string id; + std::string code; + std::vector date; + }; + std::string type; + std::string typeCode; + std::vector typeData; + }; + + + DescribeScreenDataMapResult(); + explicit DescribeScreenDataMapResult(const std::string &payload); + ~DescribeScreenDataMapResult(); + std::vector getSasScreenTypeList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sasScreenTypeList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENDATAMAPRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskRequest.h new file mode 100644 index 000000000..322b4917a --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskRequest.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_AEGIS_MODEL_DESCRIBESCREENEMERRISKREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENEMERRISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenEmerRiskRequest : public RpcServiceRequest + { + + public: + DescribeScreenEmerRiskRequest(); + ~DescribeScreenEmerRiskRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENEMERRISKREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskResult.h new file mode 100644 index 000000000..870d2cef4 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenEmerRiskResult.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_AEGIS_MODEL_DESCRIBESCREENEMERRISKRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENEMERRISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenEmerRiskResult : public ServiceResult + { + public: + struct CloudHcRiskItem + { + int affectCount; + std::string level; + std::string vulName; + }; + + + DescribeScreenEmerRiskResult(); + explicit DescribeScreenEmerRiskResult(const std::string &payload); + ~DescribeScreenEmerRiskResult(); + std::vector getCloudHcRiskItems()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cloudHcRiskItems_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENEMERRISKRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountRequest.h new file mode 100644 index 000000000..7f138ad97 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountRequest.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_AEGIS_MODEL_DESCRIBESCREENFLOWREQUESTCOUNTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENFLOWREQUESTCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenFlowRequestCountRequest : public RpcServiceRequest + { + + public: + DescribeScreenFlowRequestCountRequest(); + ~DescribeScreenFlowRequestCountRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENFLOWREQUESTCOUNTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountResult.h new file mode 100644 index 000000000..c36650d84 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenFlowRequestCountResult.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_AEGIS_MODEL_DESCRIBESCREENFLOWREQUESTCOUNTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENFLOWREQUESTCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenFlowRequestCountResult : public ServiceResult + { + public: + + + DescribeScreenFlowRequestCountResult(); + explicit DescribeScreenFlowRequestCountResult(const std::string &payload); + ~DescribeScreenFlowRequestCountResult(); + int getFlowTotalCount()const; + int getRequestTotalCount()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int flowTotalCount_; + int requestTotalCount_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENFLOWREQUESTCOUNTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenHostStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenHostStatisticsResult.h index fd8aed98d..74b585d82 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeScreenHostStatisticsResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenHostStatisticsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Data { std::vector weaknessMachineNames; + std::vector safeCount; std::vector suspEventUuids; std::vector weaknessUuids; std::vector suspEventMachineNames; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoRequest.h index 826705fd4..8bca64310 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoRequest.h @@ -37,11 +37,14 @@ namespace AlibabaCloud std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); + long getStartTime()const; + void setStartTime(long startTime); std::string getLang()const; void setLang(const std::string& lang); private: std::string sourceIp_; + long startTime_; std::string lang_; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoResult.h index d88c2786f..348eaa521 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenOperateInfoResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud explicit DescribeScreenOperateInfoResult(const std::string &payload); ~DescribeScreenOperateInfoResult(); std::vector getVulValueArray()const; + bool getSuccessA()const; int getSecurityEventDealedCount()const; std::vector getSuspEventValueArray()const; int getVulnerabilityDealedCount()const; @@ -50,6 +51,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::vector vulValueArray_; + bool successA_; int securityEventDealedCount_; std::vector suspEventValueArray_; int vulnerabilityDealedCount_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoRequest.h new file mode 100644 index 000000000..391db7a8b --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoRequest.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_AEGIS_MODEL_DESCRIBESCREENOSSUPLOADINFOREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENOSSUPLOADINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenOssUploadInfoRequest : public RpcServiceRequest + { + + public: + DescribeScreenOssUploadInfoRequest(); + ~DescribeScreenOssUploadInfoRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENOSSUPLOADINFOREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoResult.h new file mode 100644 index 000000000..cc42651d7 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenOssUploadInfoResult.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_AEGIS_MODEL_DESCRIBESCREENOSSUPLOADINFORESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENOSSUPLOADINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenOssUploadInfoResult : public ServiceResult + { + public: + + + DescribeScreenOssUploadInfoResult(); + explicit DescribeScreenOssUploadInfoResult(const std::string &payload); + ~DescribeScreenOssUploadInfoResult(); + std::string getPolicy()const; + int getExpire()const; + std::string getAccessId()const; + std::string getSignature()const; + std::string getHost()const; + bool getSuccess()const; + std::string getKey()const; + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + int expire_; + std::string accessId_; + std::string signature_; + std::string host_; + bool success_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENOSSUPLOADINFORESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeRequest.h new file mode 100644 index 000000000..8307c7381 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeRequest.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_AEGIS_MODEL_DESCRIBESCREENREQUESTTOPTYPEREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENREQUESTTOPTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenRequestTopTypeRequest : public RpcServiceRequest + { + + public: + DescribeScreenRequestTopTypeRequest(); + ~DescribeScreenRequestTopTypeRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string sourceIp_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENREQUESTTOPTYPEREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeResult.h new file mode 100644 index 000000000..26ecb823f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenRequestTopTypeResult.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_AEGIS_MODEL_DESCRIBESCREENREQUESTTOPTYPERESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENREQUESTTOPTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenRequestTopTypeResult : public ServiceResult + { + public: + struct TopType + { + std::string type; + int count; + }; + + + DescribeScreenRequestTopTypeResult(); + explicit DescribeScreenRequestTopTypeResult(const std::string &payload); + ~DescribeScreenRequestTopTypeResult(); + int getTotalCount()const; + std::vector getTopTypes()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector topTypes_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENREQUESTTOPTYPERESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingRequest.h index 06c18d963..022a6eef5 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingRequest.h @@ -37,12 +37,12 @@ namespace AlibabaCloud std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); - std::string getScreenTitle()const; - void setScreenTitle(const std::string& screenTitle); + std::string getId()const; + void setId(const std::string& id); private: std::string sourceIp_; - std::string screenTitle_; + std::string id_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingResult.h index a7c394453..acc5a506d 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenSettingResult.h @@ -32,22 +32,31 @@ namespace AlibabaCloud class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenSettingResult : public ServiceResult { public: - struct SasScreenSetting - { - std::string screenSettingIdMap; - std::string screenSettingTitle; - }; DescribeScreenSettingResult(); explicit DescribeScreenSettingResult(const std::string &payload); ~DescribeScreenSettingResult(); - SasScreenSetting getSasScreenSetting()const; + bool getLogoPower()const; + std::string getMonitorUrl()const; + int getScreenId()const; + std::string getLogoUrl()const; + std::string getScreenDataMap()const; + std::string getTitle()const; + int getScreenDefault()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - SasScreenSetting sasScreenSetting_; + bool logoPower_; + std::string monitorUrl_; + int screenId_; + std::string logoUrl_; + std::string screenDataMap_; + std::string title_; + int screenDefault_; + bool success_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesRequest.h new file mode 100644 index 000000000..647fb4476 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesRequest.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_AEGIS_MODEL_DESCRIBESCREENTITLESREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTITLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenTitlesRequest : public RpcServiceRequest + { + + public: + DescribeScreenTitlesRequest(); + ~DescribeScreenTitlesRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTITLESREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesResult.h new file mode 100644 index 000000000..102d67af3 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenTitlesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTITLESRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTITLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenTitlesResult : public ServiceResult + { + public: + struct SasScreenSetting + { + std::string screenTitle; + long screenID; + }; + + + DescribeScreenTitlesResult(); + explicit DescribeScreenTitlesResult(const std::string &payload); + ~DescribeScreenTitlesResult(); + std::vector getSasScreenSettingList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sasScreenSettingList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTITLESRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowRequest.h new file mode 100644 index 000000000..5ca926856 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowRequest.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_AEGIS_MODEL_DESCRIBESCREENTOPREQUESTANDFLOWREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTOPREQUESTANDFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenTopRequestAndFlowRequest : public RpcServiceRequest + { + + public: + DescribeScreenTopRequestAndFlowRequest(); + ~DescribeScreenTopRequestAndFlowRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTOPREQUESTANDFLOWREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowResult.h b/aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowResult.h new file mode 100644 index 000000000..684b2ed06 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeScreenTopRequestAndFlowResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTOPREQUESTANDFLOWRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTOPREQUESTANDFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeScreenTopRequestAndFlowResult : public ServiceResult + { + public: + struct TopRequestsIpCountDOSItem + { + std::string ip; + int reqCount; + }; + + + DescribeScreenTopRequestAndFlowResult(); + explicit DescribeScreenTopRequestAndFlowResult(const std::string &payload); + ~DescribeScreenTopRequestAndFlowResult(); + int getNormalFlow()const; + std::vector getTopRequestsIpCountDOS()const; + bool getSuccess()const; + int getAbnormalFlow()const; + + protected: + void parse(const std::string &payload); + private: + int normalFlow_; + std::vector topRequestsIpCountDOS_; + bool success_; + int abnormalFlow_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESCREENTOPREQUESTANDFLOWRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeStatisticsRequest.h index 76bf93cca..e6214cd0e 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeStatisticsRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeStatisticsRequest.h @@ -37,9 +37,12 @@ namespace AlibabaCloud std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); + std::string getFrom()const; + void setFrom(const std::string& from); private: std::string sourceIp_; + std::string from_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStrategyExecDetailResult.h b/aegis/include/alibabacloud/aegis/model/DescribeStrategyExecDetailResult.h index 54007cf07..047e46af3 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeStrategyExecDetailResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeStrategyExecDetailResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct FailedEcs { std::string instanceName; + std::string internetIp; std::string iP; std::string intranetIp; std::string reason; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoRequest.h new file mode 100644 index 000000000..864e0f4d8 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoRequest.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_AEGIS_MODEL_DESCRIBESUPERVISONINFOREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUPERVISONINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeSupervisonInfoRequest : public RpcServiceRequest + { + + public: + DescribeSupervisonInfoRequest(); + ~DescribeSupervisonInfoRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUPERVISONINFOREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoResult.h b/aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoResult.h new file mode 100644 index 000000000..c9fa637f1 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeSupervisonInfoResult.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_AEGIS_MODEL_DESCRIBESUPERVISONINFORESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUPERVISONINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeSupervisonInfoResult : public ServiceResult + { + public: + + + DescribeSupervisonInfoResult(); + explicit DescribeSupervisonInfoResult(const std::string &payload); + ~DescribeSupervisonInfoResult(); + long getVirusDatabaseUpdateTime()const; + long getLatestScanTime()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long virusDatabaseUpdateTime_; + long latestScanTime_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUPERVISONINFORESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeSuspEventDetailResult.h b/aegis/include/alibabacloud/aegis/model/DescribeSuspEventDetailResult.h index d5e724b7d..513cd74a1 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeSuspEventDetailResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeSuspEventDetailResult.h @@ -39,6 +39,12 @@ namespace AlibabaCloud std::string infoType; std::string name; }; + struct EventNote + { + long noteId; + std::string noteTime; + std::string note; + }; DescribeSuspEventDetailResult(); @@ -47,6 +53,8 @@ namespace AlibabaCloud std::string getEventDesc()const; std::string getEventTypeDesc()const; std::string getEventStatus()const; + std::string getAccessCode()const; + std::vector getEventNotes()const; std::string getEventName()const; std::string getSaleVersion()const; std::string getIntranetIp()const; @@ -58,6 +66,7 @@ namespace AlibabaCloud std::vector getDetails()const; std::string getUuid()const; std::string getInternetIp()const; + std::string getAlarmUniqueInfo()const; std::string getLevel()const; int getId()const; std::string getLastTime()const; @@ -69,6 +78,8 @@ namespace AlibabaCloud std::string eventDesc_; std::string eventTypeDesc_; std::string eventStatus_; + std::string accessCode_; + std::vector eventNotes_; std::string eventName_; std::string saleVersion_; std::string intranetIp_; @@ -80,6 +91,7 @@ namespace AlibabaCloud std::vector details_; std::string uuid_; std::string internetIp_; + std::string alarmUniqueInfo_; std::string level_; int id_; std::string lastTime_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeTopRiskyAssetsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeTopRiskyAssetsRequest.h index b808c0bf1..abef6e172 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeTopRiskyAssetsRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeTopRiskyAssetsRequest.h @@ -39,10 +39,13 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); int getPageSize()const; void setPageSize(int pageSize); + std::string getFrom()const; + void setFrom(const std::string& from); private: std::string sourceIp_; int pageSize_; + std::string from_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailRequest.h index 8fb493a24..4c91b8c8a 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setType(const std::string& type); std::string getUuid()const; void setUuid(const std::string& uuid); + long getIncidentTime()const; + void setIncidentTime(long incidentTime); private: std::string sourceIp_; @@ -55,6 +57,7 @@ namespace AlibabaCloud std::string lang_; std::string type_; std::string uuid_; + long incidentTime_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailResult.h b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailResult.h index b456f37ff..c3740751d 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoDetailResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { struct Edge { + std::string type; std::string endId; std::string time; int count; @@ -70,6 +71,15 @@ namespace AlibabaCloud int offset; std::string name; }; + struct RelationType + { + std::string relationTypeId; + std::string displayColor; + int directed; + std::string name; + std::string showType; + }; + std::vector relationTypeList; std::vector entityTypeList; std::vector edgeList; std::vector vertexList; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeListRequest.h index 22b03271c..c7dbe6a27 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeListRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeListRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setType(const std::string& type); std::string getUuid()const; void setUuid(const std::string& uuid); + long getIncidentTime()const; + void setIncidentTime(long incidentTime); private: std::string sourceIp_; @@ -64,6 +66,7 @@ namespace AlibabaCloud std::string lang_; std::string type_; std::string uuid_; + long incidentTime_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeRequest.h index 909558e75..60df24eb0 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeTraceInfoNodeRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getType()const; void setType(const std::string& type); + long getIncidentTime()const; + void setIncidentTime(long incidentTime); std::string getUuid()const; void setUuid(const std::string& uuid); std::string getEventName()const; @@ -56,6 +58,7 @@ namespace AlibabaCloud std::string from_; std::string lang_; std::string type_; + long incidentTime_; std::string uuid_; std::string eventName_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVersionConfigResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVersionConfigResult.h index c9c0993b5..c7095c282 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVersionConfigResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVersionConfigResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud int getLogCapacity()const; int getFlag()const; int getSasLog()const; + long getGmtCreate()const; long getReleaseTime()const; int getVersion()const; int getAvdsFlag()const; @@ -70,6 +71,7 @@ namespace AlibabaCloud int logCapacity_; int flag_; int sasLog_; + long gmtCreate_; long releaseTime_; int version_; int avdsFlag_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsRequest.h index 4fef22ac0..8e483bada 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsRequest.h @@ -39,15 +39,21 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); long getEndTs()const; void setEndTs(long endTs); + std::string getFrom()const; + void setFrom(const std::string& from); long getStartTs()const; void setStartTs(long startTs); + std::string getIncludeApp()const; + void setIncludeApp(const std::string& includeApp); std::string getUuids()const; void setUuids(const std::string& uuids); private: std::string sourceIp_; long endTs_; + std::string from_; long startTs_; + std::string includeApp_; std::string uuids_; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsResult.h index 2fccb5152..2fa079da9 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulLevelStatisticsResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud int vulLaterSum; int vulLowTotal; int emgNum; + int appNum; int vulAsapSum; int vulSeriousTotal; int vulNntfSum; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h index 1ddf3cf8c..cbbfd27b6 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h @@ -41,6 +41,10 @@ namespace AlibabaCloud void setLevel(const std::string& level); std::string getResource()const; void setResource(const std::string& resource); + std::string getCveId()const; + void setCveId(const std::string& cveId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getRemark()const; void setRemark(const std::string& remark); std::string getDealed()const; @@ -61,6 +65,8 @@ namespace AlibabaCloud void setName(const std::string& name); int getPageSize()const; void setPageSize(int pageSize); + std::string getIds()const; + void setIds(const std::string& ids); std::string getLang()const; void setLang(const std::string& lang); long getCreateTsEnd()const; @@ -74,6 +80,8 @@ namespace AlibabaCloud std::string statusList_; std::string level_; std::string resource_; + std::string cveId_; + std::string groupId_; std::string remark_; std::string dealed_; int currentPage_; @@ -84,6 +92,7 @@ namespace AlibabaCloud std::string sourceIp_; std::string name_; int pageSize_; + std::string ids_; std::string lang_; long createTsEnd_; std::string necessity_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h index 07619d284..952851b74 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h @@ -47,7 +47,7 @@ namespace AlibabaCloud std::string enviroment_factor; std::string assets_factor; }; - struct RpmEntityListItem + struct RpmEntity { std::string path; std::string updateCmd; @@ -56,22 +56,51 @@ namespace AlibabaCloud std::string matchDetail; std::string name; }; - int status; - std::vector cveList; + std::string description; std::string os; + std::string ip; + std::string reason; + std::string cwe; + std::string target; + std::string wasc; + std::string aliasName; + std::string osRelease; + std::string solution; + std::string vulType; + int status; + std::string owasp; + std::string reference; Necessity necessity; long lastTs; - std::vector rpmEntityList; + std::vector rpmEntityList; + std::string title; std::string absolutePath; - std::string reason; - std::string target; - std::string aliasName; std::string proof; std::string level; + std::string effect; std::string tag; - std::string osRelease; + std::string emgProof; long primaryId; }; + struct ProcessInfo + { + struct Process + { + struct SubProcess + { + std::string pname; + std::string pid; + std::string rpm; + }; + std::string pname; + std::string pid; + std::vector subProcessList; + std::string rpm; + }; + int totalCount; + std::vector processList; + long gmtLastTs; + }; std::string ip; std::string osVersion; std::string product; @@ -82,11 +111,13 @@ namespace AlibabaCloud std::string internetIp; std::string aliasName; long recordId; + std::string canFix; ExtendContentJson extendContentJson; int status; std::string instanceId; long lastTs; std::string necessity; + ProcessInfo processInfo; std::string needReboot; std::string resultMessage; int groupId; @@ -97,6 +128,8 @@ namespace AlibabaCloud std::string related; std::string level; std::string tag; + std::string regionId; + bool online; long primaryId; std::string resultCode; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulMachineListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulMachineListRequest.h index 78b383126..04819be25 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVulMachineListRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulMachineListRequest.h @@ -39,15 +39,21 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); long getEndTs()const; void setEndTs(long endTs); + std::string getFrom()const; + void setFrom(const std::string& from); long getStartTs()const; void setStartTs(long startTs); + std::string getIncludeApp()const; + void setIncludeApp(const std::string& includeApp); std::string getUuids()const; void setUuids(const std::string& uuids); private: std::string sourceIp_; long endTs_; + std::string from_; long startTs_; + std::string includeApp_; std::string uuids_; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsRequest.h index 8bfee812e..38b8689fe 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsRequest.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsRequest.h @@ -39,10 +39,14 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); long getEndTs()const; void setEndTs(long endTs); + std::string getFrom()const; + void setFrom(const std::string& from); long getStartTs()const; void setStartTs(long startTs); long getCreateTsEnd()const; void setCreateTsEnd(long createTsEnd); + std::string getIncludeApp()const; + void setIncludeApp(const std::string& includeApp); long getCreateTsStart()const; void setCreateTsStart(long createTsStart); std::string getUuids()const; @@ -51,8 +55,10 @@ namespace AlibabaCloud private: std::string sourceIp_; long endTs_; + std::string from_; long startTs_; long createTsEnd_; + std::string includeApp_; long createTsStart_; std::string uuids_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsResult.h index 02bc08864..0bd485ff0 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulNumStatisticsResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud DescribeVulNumStatisticsResult(); explicit DescribeVulNumStatisticsResult(const std::string &payload); ~DescribeVulNumStatisticsResult(); + int getAppCnt()const; int getVulDealedTotalNum()const; int getVulAsapSum()const; int getVulLaterSum()const; @@ -46,10 +47,12 @@ namespace AlibabaCloud int getCmsDealedTotalNum()const; int getEmgNum()const; int getSysNum()const; + int getAppNum()const; protected: void parse(const std::string &payload); private: + int appCnt_; int vulDealedTotalNum_; int vulAsapSum_; int vulLaterSum_; @@ -59,6 +62,7 @@ namespace AlibabaCloud int cmsDealedTotalNum_; int emgNum_; int sysNum_; + int appNum_; }; } diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessRequest.h new file mode 100644 index 000000000..b6af6d0c1 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessRequest.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_AEGIS_MODEL_DESCRIBEVULRELATEDPROCESSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULRELATEDPROCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulRelatedProcessRequest : public RpcServiceRequest + { + + public: + DescribeVulRelatedProcessRequest(); + ~DescribeVulRelatedProcessRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getId()const; + void setId(int id); + std::string getPpid()const; + void setPpid(const std::string& ppid); + + private: + std::string sourceIp_; + int id_; + std::string ppid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULRELATEDPROCESSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessResult.h new file mode 100644 index 000000000..dd5405769 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulRelatedProcessResult.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_AEGIS_MODEL_DESCRIBEVULRELATEDPROCESSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULRELATEDPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulRelatedProcessResult : public ServiceResult + { + public: + struct Process + { + std::string pname; + std::string uuid; + std::string pid; + std::string ppid; + std::string rpm; + }; + + + DescribeVulRelatedProcessResult(); + explicit DescribeVulRelatedProcessResult(const std::string &payload); + ~DescribeVulRelatedProcessResult(); + int getTotalCount()const; + std::vector getProcessList()const; + long getGmtLastTs()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector processList_; + long gmtLastTs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULRELATEDPROCESSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsRequest.h new file mode 100644 index 000000000..67ced7ee0 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsRequest.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_AEGIS_MODEL_DESCRIBEVULSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeVulStatisticsRequest(); + ~DescribeVulStatisticsRequest(); + + std::string getEndModifyTimePatch()const; + void setEndModifyTimePatch(const std::string& endModifyTimePatch); + std::string getRemarkPatch()const; + void setRemarkPatch(const std::string& remarkPatch); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getEndFindTimePatch()const; + void setEndFindTimePatch(const std::string& endFindTimePatch); + std::string getStartModifyTimePatch()const; + void setStartModifyTimePatch(const std::string& startModifyTimePatch); + std::string getStartFindTimePatch()const; + void setStartFindTimePatch(const std::string& startFindTimePatch); + std::string getFrom()const; + void setFrom(const std::string& from); + std::string getDistribution()const; + void setDistribution(const std::string& distribution); + std::string getUuid()const; + void setUuid(const std::string& uuid); + + private: + std::string endModifyTimePatch_; + std::string remarkPatch_; + std::string sourceIp_; + std::string endFindTimePatch_; + std::string startModifyTimePatch_; + std::string startFindTimePatch_; + std::string from_; + std::string distribution_; + std::string uuid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsResult.h new file mode 100644 index 000000000..d4029b069 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulStatisticsResult.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_AEGIS_MODEL_DESCRIBEVULSTATISTICSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulStatisticsResult : public ServiceResult + { + public: + + + DescribeVulStatisticsResult(); + explicit DescribeVulStatisticsResult(const std::string &payload); + ~DescribeVulStatisticsResult(); + int getHttpStatusCode()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebLockBindListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeWebLockBindListResult.h index 3a987714c..58f1527ea 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeWebLockBindListResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebLockBindListResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string serviceCode; std::string internetIp; std::string os; + int percent; std::string serviceStatus; std::string dirCount; std::string serviceDetail; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebLockConfigListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeWebLockConfigListResult.h index c032fdf57..45d6541db 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeWebLockConfigListResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebLockConfigListResult.h @@ -34,8 +34,11 @@ namespace AlibabaCloud public: struct ConfigInfo { + std::string inclusiveFileType; + std::string exclusiveFile; std::string uuid; std::string exclusiveDir; + std::string mode; std::string localBackupDir; std::string exclusiveFileType; std::string id; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebLockEventsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeWebLockEventsResult.h index 0e3000d06..c8e10f55a 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeWebLockEventsResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebLockEventsResult.h @@ -34,17 +34,18 @@ namespace AlibabaCloud public: struct EventInfo { - std::string instanceName; std::string status; std::string path; - std::string uuid; - std::string internetIp; std::string eventType; std::string ip; - std::string level; std::string eventName; - long gmtEvent; std::string intranetIp; + std::string instanceName; + std::string uuid; + std::string internetIp; + std::string level; + long id; + long gmtEvent; std::string solution; }; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebLockStatusResult.h b/aegis/include/alibabacloud/aegis/model/DescribeWebLockStatusResult.h index 3220cef54..40a15cc91 100644 --- a/aegis/include/alibabacloud/aegis/model/DescribeWebLockStatusResult.h +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebLockStatusResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud explicit DescribeWebLockStatusResult(const std::string &payload); ~DescribeWebLockStatusResult(); int getBindCount()const; + int getDirCount()const; long getExpireTime()const; int getAuthCount()const; @@ -45,6 +46,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: int bindCount_; + int dirCount_; long expireTime_; int authCount_; diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebshellListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeWebshellListRequest.h new file mode 100644 index 000000000..8df7f1927 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebshellListRequest.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_AEGIS_MODEL_DESCRIBEWEBSHELLLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeWebshellListRequest : public RpcServiceRequest + { + + public: + DescribeWebshellListRequest(); + ~DescribeWebshellListRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getDealed()const; + void setDealed(const std::string& dealed); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getTag()const; + void setTag(const std::string& tag); + int getStatus()const; + void setStatus(int status); + + private: + std::string sourceIp_; + std::string groupId_; + int pageSize_; + int currentPage_; + std::string dealed_; + std::string remark_; + std::string tag_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebshellListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeWebshellListResult.h new file mode 100644 index 000000000..33817e9bf --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebshellListResult.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_AEGIS_MODEL_DESCRIBEWEBSHELLLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeWebshellListResult : public ServiceResult + { + public: + struct Data + { + std::string foundTime; + int status; + int trojanSize; + std::string uuid; + std::string machineName; + std::string trojanType; + std::string trojanPath; + std::string domain; + std::string machineIp; + std::string firstFoundTime; + std::string downloadUrl; + }; + + + DescribeWebshellListResult(); + explicit DescribeWebshellListResult(const std::string &payload); + ~DescribeWebshellListResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getWebshells()const; + int getPage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector webshells_; + int page_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ExportVulRequest.h b/aegis/include/alibabacloud/aegis/model/ExportVulRequest.h index c20fb845b..e48c72cc1 100644 --- a/aegis/include/alibabacloud/aegis/model/ExportVulRequest.h +++ b/aegis/include/alibabacloud/aegis/model/ExportVulRequest.h @@ -35,42 +35,45 @@ namespace AlibabaCloud ExportVulRequest(); ~ExportVulRequest(); - std::string getBatchName()const; - void setBatchName(const std::string& batchName); - std::string getAliasName()const; - void setAliasName(const std::string& aliasName); std::string getStatusList()const; void setStatusList(const std::string& statusList); - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); std::string getLevel()const; void setLevel(const std::string& level); std::string getResource()const; void setResource(const std::string& resource); - std::string getName()const; - void setName(const std::string& name); + std::string getRemark()const; + void setRemark(const std::string& remark); std::string getDealed()const; void setDealed(const std::string& dealed); - std::string getLang()const; - void setLang(const std::string& lang); std::string getType()const; void setType(const std::string& type); + std::string getBatchName()const; + void setBatchName(const std::string& batchName); + std::string getAliasName()const; + void setAliasName(const std::string& aliasName); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getName()const; + void setName(const std::string& name); + std::string getLang()const; + void setLang(const std::string& lang); std::string getNecessity()const; void setNecessity(const std::string& necessity); std::string getUuids()const; void setUuids(const std::string& uuids); private: - std::string batchName_; - std::string aliasName_; std::string statusList_; - std::string sourceIp_; std::string level_; std::string resource_; - std::string name_; + std::string remark_; std::string dealed_; - std::string lang_; std::string type_; + std::string batchName_; + std::string aliasName_; + std::string sourceIp_; + std::string name_; + std::string lang_; std::string necessity_; std::string uuids_; diff --git a/aegis/include/alibabacloud/aegis/model/IgnoreHcCheckWarningsRequest.h b/aegis/include/alibabacloud/aegis/model/IgnoreHcCheckWarningsRequest.h index 91095bfe5..f1b36fd16 100644 --- a/aegis/include/alibabacloud/aegis/model/IgnoreHcCheckWarningsRequest.h +++ b/aegis/include/alibabacloud/aegis/model/IgnoreHcCheckWarningsRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); std::string getCheckWarningIds()const; void setCheckWarningIds(const std::string& checkWarningIds); + std::string getCheckIds()const; + void setCheckIds(const std::string& checkIds); std::string getRiskId()const; void setRiskId(const std::string& riskId); long getType()const; @@ -50,6 +52,7 @@ namespace AlibabaCloud std::string reason_; std::string sourceIp_; std::string checkWarningIds_; + std::string checkIds_; std::string riskId_; long type_; diff --git a/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealRequest.h new file mode 100644 index 000000000..48c931e76 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealRequest.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_AEGIS_MODEL_MODIFYACCESSKEYLEAKDEALREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKDEALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyAccessKeyLeakDealRequest : public RpcServiceRequest + { + + public: + ModifyAccessKeyLeakDealRequest(); + ~ModifyAccessKeyLeakDealRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRemark()const; + void setRemark(const std::string& remark); + long getId()const; + void setId(long id); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string sourceIp_; + std::string remark_; + long id_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKDEALREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealResult.h b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealResult.h new file mode 100644 index 000000000..213bf151f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakDealResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKDEALRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKDEALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyAccessKeyLeakDealResult : public ServiceResult + { + public: + + + ModifyAccessKeyLeakDealResult(); + explicit ModifyAccessKeyLeakDealResult(const std::string &payload); + ~ModifyAccessKeyLeakDealResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKDEALRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunRequest.h new file mode 100644 index 000000000..9e4eadd71 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunRequest.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_AEGIS_MODEL_MODIFYACCESSKEYLEAKINSTRUNREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKINSTRUNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyAccessKeyLeakInstRunRequest : public RpcServiceRequest + { + + public: + ModifyAccessKeyLeakInstRunRequest(); + ~ModifyAccessKeyLeakInstRunRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKINSTRUNREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunResult.h b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunResult.h new file mode 100644 index 000000000..f1296b038 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyAccessKeyLeakInstRunResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKINSTRUNRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKINSTRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyAccessKeyLeakInstRunResult : public ServiceResult + { + public: + + + ModifyAccessKeyLeakInstRunResult(); + explicit ModifyAccessKeyLeakInstRunResult(const std::string &payload); + ~ModifyAccessKeyLeakInstRunResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYACCESSKEYLEAKINSTRUNRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoRequest.h new file mode 100644 index 000000000..81b6a27f7 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoRequest.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_AEGIS_MODEL_MODIFYREFRESHPROCESSINFOREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYREFRESHPROCESSINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyRefreshProcessInfoRequest : public RpcServiceRequest + { + + public: + ModifyRefreshProcessInfoRequest(); + ~ModifyRefreshProcessInfoRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getUuid()const; + void setUuid(const std::string& uuid); + + private: + std::string sourceIp_; + std::string uuid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYREFRESHPROCESSINFOREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoResult.h b/aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoResult.h new file mode 100644 index 000000000..c14571367 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyRefreshProcessInfoResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_MODIFYREFRESHPROCESSINFORESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYREFRESHPROCESSINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyRefreshProcessInfoResult : public ServiceResult + { + public: + + + ModifyRefreshProcessInfoResult(); + explicit ModifyRefreshProcessInfoResult(const std::string &payload); + ~ModifyRefreshProcessInfoResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYREFRESHPROCESSINFORESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyWebLockCreateConfigRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyWebLockCreateConfigRequest.h index e73729d5a..ef1ccc3e7 100644 --- a/aegis/include/alibabacloud/aegis/model/ModifyWebLockCreateConfigRequest.h +++ b/aegis/include/alibabacloud/aegis/model/ModifyWebLockCreateConfigRequest.h @@ -37,6 +37,12 @@ namespace AlibabaCloud std::string getLocalBackupDir()const; void setLocalBackupDir(const std::string& localBackupDir); + std::string getMode()const; + void setMode(const std::string& mode); + std::string getInclusiveFileType()const; + void setInclusiveFileType(const std::string& inclusiveFileType); + std::string getExclusiveFile()const; + void setExclusiveFile(const std::string& exclusiveFile); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getExclusiveFileType()const; @@ -52,6 +58,9 @@ namespace AlibabaCloud private: std::string localBackupDir_; + std::string mode_; + std::string inclusiveFileType_; + std::string exclusiveFile_; std::string sourceIp_; std::string exclusiveFileType_; std::string lang_; diff --git a/aegis/include/alibabacloud/aegis/model/ModifyWebLockUpdateConfigRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyWebLockUpdateConfigRequest.h index 17dcf0179..6ece3c648 100644 --- a/aegis/include/alibabacloud/aegis/model/ModifyWebLockUpdateConfigRequest.h +++ b/aegis/include/alibabacloud/aegis/model/ModifyWebLockUpdateConfigRequest.h @@ -37,6 +37,12 @@ namespace AlibabaCloud std::string getLocalBackupDir()const; void setLocalBackupDir(const std::string& localBackupDir); + std::string getMode()const; + void setMode(const std::string& mode); + std::string getInclusiveFileType()const; + void setInclusiveFileType(const std::string& inclusiveFileType); + std::string getExclusiveFile()const; + void setExclusiveFile(const std::string& exclusiveFile); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getExclusiveFileType()const; @@ -54,6 +60,9 @@ namespace AlibabaCloud private: std::string localBackupDir_; + std::string mode_; + std::string inclusiveFileType_; + std::string exclusiveFile_; std::string sourceIp_; std::string exclusiveFileType_; int id_; diff --git a/aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartRequest.h b/aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartRequest.h new file mode 100644 index 000000000..0cbe7a9bc --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartRequest.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_AEGIS_MODEL_OPERATIONCUSTOMIZEREPORTCHARTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_OPERATIONCUSTOMIZEREPORTCHARTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT OperationCustomizeReportChartRequest : public RpcServiceRequest + { + + public: + OperationCustomizeReportChartRequest(); + ~OperationCustomizeReportChartRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getChartIds()const; + void setChartIds(const std::string& chartIds); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long reportId_; + std::string chartIds_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_OPERATIONCUSTOMIZEREPORTCHARTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartResult.h b/aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartResult.h new file mode 100644 index 000000000..60ea8e20e --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/OperationCustomizeReportChartResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_OPERATIONCUSTOMIZEREPORTCHARTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_OPERATIONCUSTOMIZEREPORTCHARTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT OperationCustomizeReportChartResult : public ServiceResult + { + public: + + + OperationCustomizeReportChartResult(); + explicit OperationCustomizeReportChartResult(const std::string &payload); + ~OperationCustomizeReportChartResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_OPERATIONCUSTOMIZEREPORTCHARTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigRequest.h b/aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigRequest.h new file mode 100644 index 000000000..23ce032ba --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_SAVECUSTOMIZEREPORTCONFIGREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_SAVECUSTOMIZEREPORTCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT SaveCustomizeReportConfigRequest : public RpcServiceRequest + { + + public: + SaveCustomizeReportConfigRequest(); + ~SaveCustomizeReportConfigRequest(); + + int getReportSendType()const; + void setReportSendType(int reportSendType); + int getReportType()const; + void setReportType(int reportType); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getReportEndDate()const; + void setReportEndDate(const std::string& reportEndDate); + std::string getReportStartDate()const; + void setReportStartDate(const std::string& reportStartDate); + std::string getRecipients()const; + void setRecipients(const std::string& recipients); + std::string getReportLang()const; + void setReportLang(const std::string& reportLang); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getTitle()const; + void setTitle(const std::string& title); + std::string getSendTime()const; + void setSendTime(const std::string& sendTime); + int getReportStatus()const; + void setReportStatus(int reportStatus); + + private: + int reportSendType_; + int reportType_; + std::string sourceIp_; + long reportId_; + std::string reportEndDate_; + std::string reportStartDate_; + std::string recipients_; + std::string reportLang_; + std::string lang_; + std::string title_; + std::string sendTime_; + int reportStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_SAVECUSTOMIZEREPORTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigResult.h b/aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigResult.h new file mode 100644 index 000000000..87430703c --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/SaveCustomizeReportConfigResult.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_AEGIS_MODEL_SAVECUSTOMIZEREPORTCONFIGRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_SAVECUSTOMIZEREPORTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT SaveCustomizeReportConfigResult : public ServiceResult + { + public: + + + SaveCustomizeReportConfigResult(); + explicit SaveCustomizeReportConfigResult(const std::string &payload); + ~SaveCustomizeReportConfigResult(); + long getReportId()const; + + protected: + void parse(const std::string &payload); + private: + long reportId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_SAVECUSTOMIZEREPORTCONFIGRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/SendCustomizeReportRequest.h b/aegis/include/alibabacloud/aegis/model/SendCustomizeReportRequest.h new file mode 100644 index 000000000..c62833306 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/SendCustomizeReportRequest.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_AEGIS_MODEL_SENDCUSTOMIZEREPORTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_SENDCUSTOMIZEREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT SendCustomizeReportRequest : public RpcServiceRequest + { + + public: + SendCustomizeReportRequest(); + ~SendCustomizeReportRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + long reportId_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_SENDCUSTOMIZEREPORTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/SendCustomizeReportResult.h b/aegis/include/alibabacloud/aegis/model/SendCustomizeReportResult.h new file mode 100644 index 000000000..b81fce062 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/SendCustomizeReportResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_SENDCUSTOMIZEREPORTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_SENDCUSTOMIZEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT SendCustomizeReportResult : public ServiceResult + { + public: + + + SendCustomizeReportResult(); + explicit SendCustomizeReportResult(const std::string &payload); + ~SendCustomizeReportResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_SENDCUSTOMIZEREPORTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusRequest.h b/aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusRequest.h new file mode 100644 index 000000000..90594fb78 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusRequest.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_AEGIS_MODEL_UPDATECUSTOMIZEREPORTSTATUSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_UPDATECUSTOMIZEREPORTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT UpdateCustomizeReportStatusRequest : public RpcServiceRequest + { + + public: + UpdateCustomizeReportStatusRequest(); + ~UpdateCustomizeReportStatusRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getReportId()const; + void setReportId(long reportId); + std::string getLang()const; + void setLang(const std::string& lang); + int getReportStatus()const; + void setReportStatus(int reportStatus); + + private: + std::string sourceIp_; + long reportId_; + std::string lang_; + int reportStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_UPDATECUSTOMIZEREPORTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusResult.h b/aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusResult.h new file mode 100644 index 000000000..c2c126960 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/UpdateCustomizeReportStatusResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_UPDATECUSTOMIZEREPORTSTATUSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_UPDATECUSTOMIZEREPORTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT UpdateCustomizeReportStatusResult : public ServiceResult + { + public: + + + UpdateCustomizeReportStatusResult(); + explicit UpdateCustomizeReportStatusResult(const std::string &payload); + ~UpdateCustomizeReportStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_UPDATECUSTOMIZEREPORTSTATUSRESULT_H_ \ No newline at end of file diff --git a/aegis/src/AegisClient.cc b/aegis/src/AegisClient.cc index 37549726a..260c3fd2b 100644 --- a/aegis/src/AegisClient.cc +++ b/aegis/src/AegisClient.cc @@ -31,21 +31,21 @@ AegisClient::AegisClient(const Credentials &credentials, const ClientConfigurati RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "vipaegis"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "aegis"); } AegisClient::AegisClient(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, "vipaegis"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "aegis"); } AegisClient::AegisClient(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, "vipaegis"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "aegis"); } AegisClient::~AegisClient() @@ -159,6 +159,78 @@ AegisClient::DescribeTraceInfoNodeOutcomeCallable AegisClient::describeTraceInfo return task->get_future(); } +AegisClient::SaveCustomizeReportConfigOutcome AegisClient::saveCustomizeReportConfig(const SaveCustomizeReportConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveCustomizeReportConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveCustomizeReportConfigOutcome(SaveCustomizeReportConfigResult(outcome.result())); + else + return SaveCustomizeReportConfigOutcome(outcome.error()); +} + +void AegisClient::saveCustomizeReportConfigAsync(const SaveCustomizeReportConfigRequest& request, const SaveCustomizeReportConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveCustomizeReportConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::SaveCustomizeReportConfigOutcomeCallable AegisClient::saveCustomizeReportConfigCallable(const SaveCustomizeReportConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveCustomizeReportConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeScreenCloudHcRiskOutcome AegisClient::describeScreenCloudHcRisk(const DescribeScreenCloudHcRiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenCloudHcRiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenCloudHcRiskOutcome(DescribeScreenCloudHcRiskResult(outcome.result())); + else + return DescribeScreenCloudHcRiskOutcome(outcome.error()); +} + +void AegisClient::describeScreenCloudHcRiskAsync(const DescribeScreenCloudHcRiskRequest& request, const DescribeScreenCloudHcRiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenCloudHcRisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenCloudHcRiskOutcomeCallable AegisClient::describeScreenCloudHcRiskCallable(const DescribeScreenCloudHcRiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenCloudHcRisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeScreenAttackAnalysisDataOutcome AegisClient::describeScreenAttackAnalysisData(const DescribeScreenAttackAnalysisDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,42 +267,6 @@ AegisClient::DescribeScreenAttackAnalysisDataOutcomeCallable AegisClient::descri return task->get_future(); } -AegisClient::DescribeAutoDelConfigOutcome AegisClient::describeAutoDelConfig(const DescribeAutoDelConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAutoDelConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAutoDelConfigOutcome(DescribeAutoDelConfigResult(outcome.result())); - else - return DescribeAutoDelConfigOutcome(outcome.error()); -} - -void AegisClient::describeAutoDelConfigAsync(const DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAutoDelConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeAutoDelConfigOutcomeCallable AegisClient::describeAutoDelConfigCallable(const DescribeAutoDelConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAutoDelConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeVulListOutcome AegisClient::describeVulList(const DescribeVulListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +303,42 @@ AegisClient::DescribeVulListOutcomeCallable AegisClient::describeVulListCallable return task->get_future(); } +AegisClient::DescribeAutoDelConfigOutcome AegisClient::describeAutoDelConfig(const DescribeAutoDelConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoDelConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoDelConfigOutcome(DescribeAutoDelConfigResult(outcome.result())); + else + return DescribeAutoDelConfigOutcome(outcome.error()); +} + +void AegisClient::describeAutoDelConfigAsync(const DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoDelConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeAutoDelConfigOutcomeCallable AegisClient::describeAutoDelConfigCallable(const DescribeAutoDelConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoDelConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyWebLockUpdateConfigOutcome AegisClient::modifyWebLockUpdateConfig(const ModifyWebLockUpdateConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +627,78 @@ AegisClient::DescribeEcsStsStatusOutcomeCallable AegisClient::describeEcsStsStat return task->get_future(); } +AegisClient::DescribeCustomizeReportListOutcome AegisClient::describeCustomizeReportList(const DescribeCustomizeReportListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomizeReportListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomizeReportListOutcome(DescribeCustomizeReportListResult(outcome.result())); + else + return DescribeCustomizeReportListOutcome(outcome.error()); +} + +void AegisClient::describeCustomizeReportListAsync(const DescribeCustomizeReportListRequest& request, const DescribeCustomizeReportListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomizeReportList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeCustomizeReportListOutcomeCallable AegisClient::describeCustomizeReportListCallable(const DescribeCustomizeReportListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomizeReportList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeSupervisonInfoOutcome AegisClient::describeSupervisonInfo(const DescribeSupervisonInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSupervisonInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSupervisonInfoOutcome(DescribeSupervisonInfoResult(outcome.result())); + else + return DescribeSupervisonInfoOutcome(outcome.error()); +} + +void AegisClient::describeSupervisonInfoAsync(const DescribeSupervisonInfoRequest& request, const DescribeSupervisonInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSupervisonInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeSupervisonInfoOutcomeCallable AegisClient::describeSupervisonInfoCallable(const DescribeSupervisonInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSupervisonInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::UpdateWhiteListStrategyRelationOutcome AegisClient::updateWhiteListStrategyRelation(const UpdateWhiteListStrategyRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +879,42 @@ AegisClient::ModifyVulLevelOutcomeCallable AegisClient::modifyVulLevelCallable(c return task->get_future(); } +AegisClient::DescribeScreenOssUploadInfoOutcome AegisClient::describeScreenOssUploadInfo(const DescribeScreenOssUploadInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenOssUploadInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenOssUploadInfoOutcome(DescribeScreenOssUploadInfoResult(outcome.result())); + else + return DescribeScreenOssUploadInfoOutcome(outcome.error()); +} + +void AegisClient::describeScreenOssUploadInfoAsync(const DescribeScreenOssUploadInfoRequest& request, const DescribeScreenOssUploadInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenOssUploadInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenOssUploadInfoOutcomeCallable AegisClient::describeScreenOssUploadInfoCallable(const DescribeScreenOssUploadInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenOssUploadInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyVulTargetOutcome AegisClient::modifyVulTarget(const ModifyVulTargetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,42 +987,6 @@ AegisClient::ModifyBatchIgnoreVulOutcomeCallable AegisClient::modifyBatchIgnoreV return task->get_future(); } -AegisClient::DescribeSummaryInfoOutcome AegisClient::describeSummaryInfo(const DescribeSummaryInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSummaryInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSummaryInfoOutcome(DescribeSummaryInfoResult(outcome.result())); - else - return DescribeSummaryInfoOutcome(outcome.error()); -} - -void AegisClient::describeSummaryInfoAsync(const DescribeSummaryInfoRequest& request, const DescribeSummaryInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSummaryInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeSummaryInfoOutcomeCallable AegisClient::describeSummaryInfoCallable(const DescribeSummaryInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSummaryInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeStrategyProcessOutcome AegisClient::describeStrategyProcess(const DescribeStrategyProcessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +1023,42 @@ AegisClient::DescribeStrategyProcessOutcomeCallable AegisClient::describeStrateg return task->get_future(); } +AegisClient::DescribeSummaryInfoOutcome AegisClient::describeSummaryInfo(const DescribeSummaryInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSummaryInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSummaryInfoOutcome(DescribeSummaryInfoResult(outcome.result())); + else + return DescribeSummaryInfoOutcome(outcome.error()); +} + +void AegisClient::describeSummaryInfoAsync(const DescribeSummaryInfoRequest& request, const DescribeSummaryInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSummaryInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeSummaryInfoOutcomeCallable AegisClient::describeSummaryInfoCallable(const DescribeSummaryInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSummaryInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeSuspTrendStatisticsOutcome AegisClient::describeSuspTrendStatistics(const DescribeSuspTrendStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1167,114 @@ AegisClient::DescribeResultListOutcomeCallable AegisClient::describeResultListCa return task->get_future(); } +AegisClient::DescribeGrayFuncOutcome AegisClient::describeGrayFunc(const DescribeGrayFuncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrayFuncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrayFuncOutcome(DescribeGrayFuncResult(outcome.result())); + else + return DescribeGrayFuncOutcome(outcome.error()); +} + +void AegisClient::describeGrayFuncAsync(const DescribeGrayFuncRequest& request, const DescribeGrayFuncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrayFunc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeGrayFuncOutcomeCallable AegisClient::describeGrayFuncCallable(const DescribeGrayFuncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrayFunc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeCustomizeReportChartDataOutcome AegisClient::describeCustomizeReportChartData(const DescribeCustomizeReportChartDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomizeReportChartDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomizeReportChartDataOutcome(DescribeCustomizeReportChartDataResult(outcome.result())); + else + return DescribeCustomizeReportChartDataOutcome(outcome.error()); +} + +void AegisClient::describeCustomizeReportChartDataAsync(const DescribeCustomizeReportChartDataRequest& request, const DescribeCustomizeReportChartDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomizeReportChartData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeCustomizeReportChartDataOutcomeCallable AegisClient::describeCustomizeReportChartDataCallable(const DescribeCustomizeReportChartDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomizeReportChartData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeScreenBizStatSimpleQueryResultOutcome AegisClient::describeScreenBizStatSimpleQueryResult(const DescribeScreenBizStatSimpleQueryResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenBizStatSimpleQueryResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenBizStatSimpleQueryResultOutcome(DescribeScreenBizStatSimpleQueryResultResult(outcome.result())); + else + return DescribeScreenBizStatSimpleQueryResultOutcome(outcome.error()); +} + +void AegisClient::describeScreenBizStatSimpleQueryResultAsync(const DescribeScreenBizStatSimpleQueryResultRequest& request, const DescribeScreenBizStatSimpleQueryResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenBizStatSimpleQueryResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenBizStatSimpleQueryResultOutcomeCallable AegisClient::describeScreenBizStatSimpleQueryResultCallable(const DescribeScreenBizStatSimpleQueryResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenBizStatSimpleQueryResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DownloadLogOutcome AegisClient::downloadLog(const DownloadLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1347,78 @@ AegisClient::DescribeTargetConfigOutcomeCallable AegisClient::describeTargetConf return task->get_future(); } +AegisClient::DescribeAccesskeyRunInfoOutcome AegisClient::describeAccesskeyRunInfo(const DescribeAccesskeyRunInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccesskeyRunInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccesskeyRunInfoOutcome(DescribeAccesskeyRunInfoResult(outcome.result())); + else + return DescribeAccesskeyRunInfoOutcome(outcome.error()); +} + +void AegisClient::describeAccesskeyRunInfoAsync(const DescribeAccesskeyRunInfoRequest& request, const DescribeAccesskeyRunInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccesskeyRunInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeAccesskeyRunInfoOutcomeCallable AegisClient::describeAccesskeyRunInfoCallable(const DescribeAccesskeyRunInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccesskeyRunInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeScreenFlowRequestCountOutcome AegisClient::describeScreenFlowRequestCount(const DescribeScreenFlowRequestCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenFlowRequestCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenFlowRequestCountOutcome(DescribeScreenFlowRequestCountResult(outcome.result())); + else + return DescribeScreenFlowRequestCountOutcome(outcome.error()); +} + +void AegisClient::describeScreenFlowRequestCountAsync(const DescribeScreenFlowRequestCountRequest& request, const DescribeScreenFlowRequestCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenFlowRequestCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenFlowRequestCountOutcomeCallable AegisClient::describeScreenFlowRequestCountCallable(const DescribeScreenFlowRequestCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenFlowRequestCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeVulNumStatisticsOutcome AegisClient::describeVulNumStatistics(const DescribeVulNumStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1527,42 @@ AegisClient::GetAccountStatisticsOutcomeCallable AegisClient::getAccountStatisti return task->get_future(); } +AegisClient::DescribeScreenEmerRiskOutcome AegisClient::describeScreenEmerRisk(const DescribeScreenEmerRiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenEmerRiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenEmerRiskOutcome(DescribeScreenEmerRiskResult(outcome.result())); + else + return DescribeScreenEmerRiskOutcome(outcome.error()); +} + +void AegisClient::describeScreenEmerRiskAsync(const DescribeScreenEmerRiskRequest& request, const DescribeScreenEmerRiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenEmerRisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenEmerRiskOutcomeCallable AegisClient::describeScreenEmerRiskCallable(const DescribeScreenEmerRiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenEmerRisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeUuidConfigOutcome AegisClient::describeUuidConfig(const DescribeUuidConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,42 +1851,6 @@ AegisClient::DescribeTraceInfoNodeListOutcomeCallable AegisClient::describeTrace return task->get_future(); } -AegisClient::DescribeAnalysisSlsIndexOutcome AegisClient::describeAnalysisSlsIndex(const DescribeAnalysisSlsIndexRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAnalysisSlsIndexOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAnalysisSlsIndexOutcome(DescribeAnalysisSlsIndexResult(outcome.result())); - else - return DescribeAnalysisSlsIndexOutcome(outcome.error()); -} - -void AegisClient::describeAnalysisSlsIndexAsync(const DescribeAnalysisSlsIndexRequest& request, const DescribeAnalysisSlsIndexAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAnalysisSlsIndex(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeAnalysisSlsIndexOutcomeCallable AegisClient::describeAnalysisSlsIndexCallable(const DescribeAnalysisSlsIndexRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAnalysisSlsIndex(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::ModifyWebLockCreateConfigOutcome AegisClient::modifyWebLockCreateConfig(const ModifyWebLockCreateConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1887,42 @@ AegisClient::ModifyWebLockCreateConfigOutcomeCallable AegisClient::modifyWebLock return task->get_future(); } +AegisClient::DescribeAnalysisSlsIndexOutcome AegisClient::describeAnalysisSlsIndex(const DescribeAnalysisSlsIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAnalysisSlsIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAnalysisSlsIndexOutcome(DescribeAnalysisSlsIndexResult(outcome.result())); + else + return DescribeAnalysisSlsIndexOutcome(outcome.error()); +} + +void AegisClient::describeAnalysisSlsIndexAsync(const DescribeAnalysisSlsIndexRequest& request, const DescribeAnalysisSlsIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAnalysisSlsIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeAnalysisSlsIndexOutcomeCallable AegisClient::describeAnalysisSlsIndexCallable(const DescribeAnalysisSlsIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAnalysisSlsIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DeleteRuleGroupOutcome AegisClient::deleteRuleGroup(const DeleteRuleGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1959,42 @@ AegisClient::DeleteRuleGroupOutcomeCallable AegisClient::deleteRuleGroupCallable return task->get_future(); } +AegisClient::DescribeScreenDataMapOutcome AegisClient::describeScreenDataMap(const DescribeScreenDataMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenDataMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenDataMapOutcome(DescribeScreenDataMapResult(outcome.result())); + else + return DescribeScreenDataMapOutcome(outcome.error()); +} + +void AegisClient::describeScreenDataMapAsync(const DescribeScreenDataMapRequest& request, const DescribeScreenDataMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenDataMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenDataMapOutcomeCallable AegisClient::describeScreenDataMapCallable(const DescribeScreenDataMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenDataMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeStatisticsOutcome AegisClient::describeStatistics(const DescribeStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +2103,78 @@ AegisClient::CreateSuspiciousExportOutcomeCallable AegisClient::createSuspicious return task->get_future(); } +AegisClient::DescribeWebshellListOutcome AegisClient::describeWebshellList(const DescribeWebshellListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWebshellListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWebshellListOutcome(DescribeWebshellListResult(outcome.result())); + else + return DescribeWebshellListOutcome(outcome.error()); +} + +void AegisClient::describeWebshellListAsync(const DescribeWebshellListRequest& request, const DescribeWebshellListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWebshellList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeWebshellListOutcomeCallable AegisClient::describeWebshellListCallable(const DescribeWebshellListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWebshellList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeBizStatSimpleQueryResultOutcome AegisClient::describeBizStatSimpleQueryResult(const DescribeBizStatSimpleQueryResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBizStatSimpleQueryResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBizStatSimpleQueryResultOutcome(DescribeBizStatSimpleQueryResultResult(outcome.result())); + else + return DescribeBizStatSimpleQueryResultOutcome(outcome.error()); +} + +void AegisClient::describeBizStatSimpleQueryResultAsync(const DescribeBizStatSimpleQueryResultRequest& request, const DescribeBizStatSimpleQueryResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBizStatSimpleQueryResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeBizStatSimpleQueryResultOutcomeCallable AegisClient::describeBizStatSimpleQueryResultCallable(const DescribeBizStatSimpleQueryResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBizStatSimpleQueryResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::OperateVulOutcome AegisClient::operateVul(const OperateVulRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,42 +2247,6 @@ AegisClient::GetCrackStatisticsOutcomeCallable AegisClient::getCrackStatisticsCa return task->get_future(); } -AegisClient::DescribeConcernNecessityOutcome AegisClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeConcernNecessityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeConcernNecessityOutcome(DescribeConcernNecessityResult(outcome.result())); - else - return DescribeConcernNecessityOutcome(outcome.error()); -} - -void AegisClient::describeConcernNecessityAsync(const DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeConcernNecessity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeConcernNecessityOutcomeCallable AegisClient::describeConcernNecessityCallable(const DescribeConcernNecessityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeConcernNecessity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::OperateAgentClientInstallOutcome AegisClient::operateAgentClientInstall(const OperateAgentClientInstallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1815,6 +2283,42 @@ AegisClient::OperateAgentClientInstallOutcomeCallable AegisClient::operateAgentC return task->get_future(); } +AegisClient::DescribeConcernNecessityOutcome AegisClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConcernNecessityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConcernNecessityOutcome(DescribeConcernNecessityResult(outcome.result())); + else + return DescribeConcernNecessityOutcome(outcome.error()); +} + +void AegisClient::describeConcernNecessityAsync(const DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConcernNecessity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeConcernNecessityOutcomeCallable AegisClient::describeConcernNecessityCallable(const DescribeConcernNecessityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConcernNecessity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeScreenScoreThreadOutcome AegisClient::describeScreenScoreThread(const DescribeScreenScoreThreadRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2499,42 @@ AegisClient::DescribeTopicListOutcomeCallable AegisClient::describeTopicListCall return task->get_future(); } +AegisClient::DescribeScreenVersionConfigOutcome AegisClient::describeScreenVersionConfig(const DescribeScreenVersionConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenVersionConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenVersionConfigOutcome(DescribeScreenVersionConfigResult(outcome.result())); + else + return DescribeScreenVersionConfigOutcome(outcome.error()); +} + +void AegisClient::describeScreenVersionConfigAsync(const DescribeScreenVersionConfigRequest& request, const DescribeScreenVersionConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenVersionConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenVersionConfigOutcomeCallable AegisClient::describeScreenVersionConfigCallable(const DescribeScreenVersionConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenVersionConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeAssetDetailByUuidOutcome AegisClient::describeAssetDetailByUuid(const DescribeAssetDetailByUuidRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,36 +2571,36 @@ AegisClient::DescribeAssetDetailByUuidOutcomeCallable AegisClient::describeAsset return task->get_future(); } -AegisClient::DescribeScreenVersionConfigOutcome AegisClient::describeScreenVersionConfig(const DescribeScreenVersionConfigRequest &request) const +AegisClient::CreateScreenSettingOutcome AegisClient::createScreenSetting(const CreateScreenSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeScreenVersionConfigOutcome(endpointOutcome.error()); + return CreateScreenSettingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeScreenVersionConfigOutcome(DescribeScreenVersionConfigResult(outcome.result())); + return CreateScreenSettingOutcome(CreateScreenSettingResult(outcome.result())); else - return DescribeScreenVersionConfigOutcome(outcome.error()); + return CreateScreenSettingOutcome(outcome.error()); } -void AegisClient::describeScreenVersionConfigAsync(const DescribeScreenVersionConfigRequest& request, const DescribeScreenVersionConfigAsyncHandler& handler, const std::shared_ptr& context) const +void AegisClient::createScreenSettingAsync(const CreateScreenSettingRequest& request, const CreateScreenSettingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeScreenVersionConfig(request), context); + handler(this, request, createScreenSetting(request), context); }; asyncExecute(new Runnable(fn)); } -AegisClient::DescribeScreenVersionConfigOutcomeCallable AegisClient::describeScreenVersionConfigCallable(const DescribeScreenVersionConfigRequest &request) const +AegisClient::CreateScreenSettingOutcomeCallable AegisClient::createScreenSettingCallable(const CreateScreenSettingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeScreenVersionConfig(request); + return this->createScreenSetting(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2139,6 +2679,42 @@ AegisClient::DeleteRuleOutcomeCallable AegisClient::deleteRuleCallable(const Del return task->get_future(); } +AegisClient::DescribeChartListOutcome AegisClient::describeChartList(const DescribeChartListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeChartListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeChartListOutcome(DescribeChartListResult(outcome.result())); + else + return DescribeChartListOutcome(outcome.error()); +} + +void AegisClient::describeChartListAsync(const DescribeChartListRequest& request, const DescribeChartListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeChartList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeChartListOutcomeCallable AegisClient::describeChartListCallable(const DescribeChartListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeChartList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeSuspEventDetailOutcome AegisClient::describeSuspEventDetail(const DescribeSuspEventDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2463,42 +3039,6 @@ AegisClient::DescribeLogItemsOutcomeCallable AegisClient::describeLogItemsCallab return task->get_future(); } -AegisClient::DescribeWebLockEventsOutcome AegisClient::describeWebLockEvents(const DescribeWebLockEventsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeWebLockEventsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeWebLockEventsOutcome(DescribeWebLockEventsResult(outcome.result())); - else - return DescribeWebLockEventsOutcome(outcome.error()); -} - -void AegisClient::describeWebLockEventsAsync(const DescribeWebLockEventsRequest& request, const DescribeWebLockEventsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeWebLockEvents(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeWebLockEventsOutcomeCallable AegisClient::describeWebLockEventsCallable(const DescribeWebLockEventsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeWebLockEvents(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::ExecStrategyOutcome AegisClient::execStrategy(const ExecStrategyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2535,6 +3075,42 @@ AegisClient::ExecStrategyOutcomeCallable AegisClient::execStrategyCallable(const return task->get_future(); } +AegisClient::DescribeWebLockEventsOutcome AegisClient::describeWebLockEvents(const DescribeWebLockEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWebLockEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWebLockEventsOutcome(DescribeWebLockEventsResult(outcome.result())); + else + return DescribeWebLockEventsOutcome(outcome.error()); +} + +void AegisClient::describeWebLockEventsAsync(const DescribeWebLockEventsRequest& request, const DescribeWebLockEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWebLockEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeWebLockEventsOutcomeCallable AegisClient::describeWebLockEventsCallable(const DescribeWebLockEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWebLockEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeSuspEventExportInfoOutcome AegisClient::describeSuspEventExportInfo(const DescribeSuspEventExportInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2643,6 +3219,42 @@ AegisClient::DescribeSasAssetStatisticsOutcomeCallable AegisClient::describeSasA return task->get_future(); } +AegisClient::SendCustomizeReportOutcome AegisClient::sendCustomizeReport(const SendCustomizeReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendCustomizeReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendCustomizeReportOutcome(SendCustomizeReportResult(outcome.result())); + else + return SendCustomizeReportOutcome(outcome.error()); +} + +void AegisClient::sendCustomizeReportAsync(const SendCustomizeReportRequest& request, const SendCustomizeReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendCustomizeReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::SendCustomizeReportOutcomeCallable AegisClient::sendCustomizeReportCallable(const SendCustomizeReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendCustomizeReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeDefenceThreadOutcome AegisClient::describeDefenceThread(const DescribeDefenceThreadRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +3291,42 @@ AegisClient::DescribeDefenceThreadOutcomeCallable AegisClient::describeDefenceTh return task->get_future(); } +AegisClient::DescribeScreenTopRequestAndFlowOutcome AegisClient::describeScreenTopRequestAndFlow(const DescribeScreenTopRequestAndFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenTopRequestAndFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenTopRequestAndFlowOutcome(DescribeScreenTopRequestAndFlowResult(outcome.result())); + else + return DescribeScreenTopRequestAndFlowOutcome(outcome.error()); +} + +void AegisClient::describeScreenTopRequestAndFlowAsync(const DescribeScreenTopRequestAndFlowRequest& request, const DescribeScreenTopRequestAndFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenTopRequestAndFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenTopRequestAndFlowOutcomeCallable AegisClient::describeScreenTopRequestAndFlowCallable(const DescribeScreenTopRequestAndFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenTopRequestAndFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::CreateVulWhitelistOutcome AegisClient::createVulWhitelist(const CreateVulWhitelistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2715,6 +3363,42 @@ AegisClient::CreateVulWhitelistOutcomeCallable AegisClient::createVulWhitelistCa return task->get_future(); } +AegisClient::DescribeLatestActionsOutcome AegisClient::describeLatestActions(const DescribeLatestActionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLatestActionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLatestActionsOutcome(DescribeLatestActionsResult(outcome.result())); + else + return DescribeLatestActionsOutcome(outcome.error()); +} + +void AegisClient::describeLatestActionsAsync(const DescribeLatestActionsRequest& request, const DescribeLatestActionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLatestActions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeLatestActionsOutcomeCallable AegisClient::describeLatestActionsCallable(const DescribeLatestActionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLatestActions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyConcernNecessityOutcome AegisClient::modifyConcernNecessity(const ModifyConcernNecessityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3543,42 @@ AegisClient::GetStatisticsOutcomeCallable AegisClient::getStatisticsCallable(con return task->get_future(); } +AegisClient::DescribeSuspEventsOutcome AegisClient::describeSuspEvents(const DescribeSuspEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSuspEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSuspEventsOutcome(DescribeSuspEventsResult(outcome.result())); + else + return DescribeSuspEventsOutcome(outcome.error()); +} + +void AegisClient::describeSuspEventsAsync(const DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSuspEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeSuspEventsOutcomeCallable AegisClient::describeSuspEventsCallable(const DescribeSuspEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSuspEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribesummaryOutcome AegisClient::describesummary(const DescribesummaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2895,36 +3615,108 @@ AegisClient::DescribesummaryOutcomeCallable AegisClient::describesummaryCallable return task->get_future(); } -AegisClient::DescribeSuspEventsOutcome AegisClient::describeSuspEvents(const DescribeSuspEventsRequest &request) const +AegisClient::ModifyAccessKeyLeakDealOutcome AegisClient::modifyAccessKeyLeakDeal(const ModifyAccessKeyLeakDealRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSuspEventsOutcome(endpointOutcome.error()); + return ModifyAccessKeyLeakDealOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSuspEventsOutcome(DescribeSuspEventsResult(outcome.result())); + return ModifyAccessKeyLeakDealOutcome(ModifyAccessKeyLeakDealResult(outcome.result())); else - return DescribeSuspEventsOutcome(outcome.error()); + return ModifyAccessKeyLeakDealOutcome(outcome.error()); } -void AegisClient::describeSuspEventsAsync(const DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr& context) const +void AegisClient::modifyAccessKeyLeakDealAsync(const ModifyAccessKeyLeakDealRequest& request, const ModifyAccessKeyLeakDealAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSuspEvents(request), context); + handler(this, request, modifyAccessKeyLeakDeal(request), context); }; asyncExecute(new Runnable(fn)); } -AegisClient::DescribeSuspEventsOutcomeCallable AegisClient::describeSuspEventsCallable(const DescribeSuspEventsRequest &request) const +AegisClient::ModifyAccessKeyLeakDealOutcomeCallable AegisClient::modifyAccessKeyLeakDealCallable(const ModifyAccessKeyLeakDealRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSuspEvents(request); + return this->modifyAccessKeyLeakDeal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeCheckWarningCountOutcome AegisClient::describeCheckWarningCount(const DescribeCheckWarningCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCheckWarningCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCheckWarningCountOutcome(DescribeCheckWarningCountResult(outcome.result())); + else + return DescribeCheckWarningCountOutcome(outcome.error()); +} + +void AegisClient::describeCheckWarningCountAsync(const DescribeCheckWarningCountRequest& request, const DescribeCheckWarningCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCheckWarningCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeCheckWarningCountOutcomeCallable AegisClient::describeCheckWarningCountCallable(const DescribeCheckWarningCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCheckWarningCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::CopyCustomizeReportConfigOutcome AegisClient::copyCustomizeReportConfig(const CopyCustomizeReportConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CopyCustomizeReportConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyCustomizeReportConfigOutcome(CopyCustomizeReportConfigResult(outcome.result())); + else + return CopyCustomizeReportConfigOutcome(outcome.error()); +} + +void AegisClient::copyCustomizeReportConfigAsync(const CopyCustomizeReportConfigRequest& request, const CopyCustomizeReportConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyCustomizeReportConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::CopyCustomizeReportConfigOutcomeCallable AegisClient::copyCustomizeReportConfigCallable(const CopyCustomizeReportConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyCustomizeReportConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3147,42 +3939,6 @@ AegisClient::DescribeTraceInfoDetailOutcomeCallable AegisClient::describeTraceIn return task->get_future(); } -AegisClient::DescribeGroupListOutcome AegisClient::describeGroupList(const DescribeGroupListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeGroupListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeGroupListOutcome(DescribeGroupListResult(outcome.result())); - else - return DescribeGroupListOutcome(outcome.error()); -} - -void AegisClient::describeGroupListAsync(const DescribeGroupListRequest& request, const DescribeGroupListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeGroupList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeGroupListOutcomeCallable AegisClient::describeGroupListCallable(const DescribeGroupListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeGroupList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeCanTrySasOutcome AegisClient::describeCanTrySas(const DescribeCanTrySasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3975,42 @@ AegisClient::DescribeCanTrySasOutcomeCallable AegisClient::describeCanTrySasCall return task->get_future(); } +AegisClient::DescribeGroupListOutcome AegisClient::describeGroupList(const DescribeGroupListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupListOutcome(DescribeGroupListResult(outcome.result())); + else + return DescribeGroupListOutcome(outcome.error()); +} + +void AegisClient::describeGroupListAsync(const DescribeGroupListRequest& request, const DescribeGroupListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroupList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeGroupListOutcomeCallable AegisClient::describeGroupListCallable(const DescribeGroupListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroupList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeTargetOutcome AegisClient::describeTarget(const DescribeTargetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3471,6 +4263,42 @@ AegisClient::ModifySearchConditionOutcomeCallable AegisClient::modifySearchCondi return task->get_future(); } +AegisClient::DescribeScreenTitlesOutcome AegisClient::describeScreenTitles(const DescribeScreenTitlesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenTitlesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenTitlesOutcome(DescribeScreenTitlesResult(outcome.result())); + else + return DescribeScreenTitlesOutcome(outcome.error()); +} + +void AegisClient::describeScreenTitlesAsync(const DescribeScreenTitlesRequest& request, const DescribeScreenTitlesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenTitles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenTitlesOutcomeCallable AegisClient::describeScreenTitlesCallable(const DescribeScreenTitlesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenTitles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeWhiteListStrategyUuidCountOutcome AegisClient::describeWhiteListStrategyUuidCount(const DescribeWhiteListStrategyUuidCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,6 +4335,42 @@ AegisClient::DescribeWhiteListStrategyUuidCountOutcomeCallable AegisClient::desc return task->get_future(); } +AegisClient::DeleteCustomizeReportOutcome AegisClient::deleteCustomizeReport(const DeleteCustomizeReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomizeReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomizeReportOutcome(DeleteCustomizeReportResult(outcome.result())); + else + return DeleteCustomizeReportOutcome(outcome.error()); +} + +void AegisClient::deleteCustomizeReportAsync(const DeleteCustomizeReportRequest& request, const DeleteCustomizeReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomizeReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DeleteCustomizeReportOutcomeCallable AegisClient::deleteCustomizeReportCallable(const DeleteCustomizeReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomizeReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeGroupedVulOutcome AegisClient::describeGroupedVul(const DescribeGroupedVulRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +4443,78 @@ AegisClient::ModifyWebLockDeleteConfigOutcomeCallable AegisClient::modifyWebLock return task->get_future(); } +AegisClient::ModifyAccessKeyLeakInstRunOutcome AegisClient::modifyAccessKeyLeakInstRun(const ModifyAccessKeyLeakInstRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccessKeyLeakInstRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccessKeyLeakInstRunOutcome(ModifyAccessKeyLeakInstRunResult(outcome.result())); + else + return ModifyAccessKeyLeakInstRunOutcome(outcome.error()); +} + +void AegisClient::modifyAccessKeyLeakInstRunAsync(const ModifyAccessKeyLeakInstRunRequest& request, const ModifyAccessKeyLeakInstRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccessKeyLeakInstRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyAccessKeyLeakInstRunOutcomeCallable AegisClient::modifyAccessKeyLeakInstRunCallable(const ModifyAccessKeyLeakInstRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccessKeyLeakInstRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::CreateSuspEventNoteOutcome AegisClient::createSuspEventNote(const CreateSuspEventNoteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSuspEventNoteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSuspEventNoteOutcome(CreateSuspEventNoteResult(outcome.result())); + else + return CreateSuspEventNoteOutcome(outcome.error()); +} + +void AegisClient::createSuspEventNoteAsync(const CreateSuspEventNoteRequest& request, const CreateSuspEventNoteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSuspEventNote(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::CreateSuspEventNoteOutcomeCallable AegisClient::createSuspEventNoteCallable(const CreateSuspEventNoteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSuspEventNote(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::CreateUserWhiteListOutcome AegisClient::createUserWhiteList(const CreateUserWhiteListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3651,6 +4587,78 @@ AegisClient::DescribeSecureSuggestionOutcomeCallable AegisClient::describeSecure return task->get_future(); } +AegisClient::DescribeCustomizeReportConfigDetailOutcome AegisClient::describeCustomizeReportConfigDetail(const DescribeCustomizeReportConfigDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomizeReportConfigDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomizeReportConfigDetailOutcome(DescribeCustomizeReportConfigDetailResult(outcome.result())); + else + return DescribeCustomizeReportConfigDetailOutcome(outcome.error()); +} + +void AegisClient::describeCustomizeReportConfigDetailAsync(const DescribeCustomizeReportConfigDetailRequest& request, const DescribeCustomizeReportConfigDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomizeReportConfigDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeCustomizeReportConfigDetailOutcomeCallable AegisClient::describeCustomizeReportConfigDetailCallable(const DescribeCustomizeReportConfigDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomizeReportConfigDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeScreenRequestTopTypeOutcome AegisClient::describeScreenRequestTopType(const DescribeScreenRequestTopTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenRequestTopTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenRequestTopTypeOutcome(DescribeScreenRequestTopTypeResult(outcome.result())); + else + return DescribeScreenRequestTopTypeOutcome(outcome.error()); +} + +void AegisClient::describeScreenRequestTopTypeAsync(const DescribeScreenRequestTopTypeRequest& request, const DescribeScreenRequestTopTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenRequestTopType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenRequestTopTypeOutcomeCallable AegisClient::describeScreenRequestTopTypeCallable(const DescribeScreenRequestTopTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenRequestTopType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeSuspiciousOverallConfigOutcome AegisClient::describeSuspiciousOverallConfig(const DescribeSuspiciousOverallConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3687,36 +4695,36 @@ AegisClient::DescribeSuspiciousOverallConfigOutcomeCallable AegisClient::describ return task->get_future(); } -AegisClient::DescribeAnalysisCurveOutcome AegisClient::describeAnalysisCurve(const DescribeAnalysisCurveRequest &request) const +AegisClient::DescribeAccesskeyLeakListOutcome AegisClient::describeAccesskeyLeakList(const DescribeAccesskeyLeakListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAnalysisCurveOutcome(endpointOutcome.error()); + return DescribeAccesskeyLeakListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAnalysisCurveOutcome(DescribeAnalysisCurveResult(outcome.result())); + return DescribeAccesskeyLeakListOutcome(DescribeAccesskeyLeakListResult(outcome.result())); else - return DescribeAnalysisCurveOutcome(outcome.error()); + return DescribeAccesskeyLeakListOutcome(outcome.error()); } -void AegisClient::describeAnalysisCurveAsync(const DescribeAnalysisCurveRequest& request, const DescribeAnalysisCurveAsyncHandler& handler, const std::shared_ptr& context) const +void AegisClient::describeAccesskeyLeakListAsync(const DescribeAccesskeyLeakListRequest& request, const DescribeAccesskeyLeakListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeAnalysisCurve(request), context); + handler(this, request, describeAccesskeyLeakList(request), context); }; asyncExecute(new Runnable(fn)); } -AegisClient::DescribeAnalysisCurveOutcomeCallable AegisClient::describeAnalysisCurveCallable(const DescribeAnalysisCurveRequest &request) const +AegisClient::DescribeAccesskeyLeakListOutcomeCallable AegisClient::describeAccesskeyLeakListCallable(const DescribeAccesskeyLeakListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeAnalysisCurve(request); + return this->describeAccesskeyLeakList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3759,6 +4767,42 @@ AegisClient::DescribeScreenAlarmEventListOutcomeCallable AegisClient::describeSc return task->get_future(); } +AegisClient::DescribeAnalysisCurveOutcome AegisClient::describeAnalysisCurve(const DescribeAnalysisCurveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAnalysisCurveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAnalysisCurveOutcome(DescribeAnalysisCurveResult(outcome.result())); + else + return DescribeAnalysisCurveOutcome(outcome.error()); +} + +void AegisClient::describeAnalysisCurveAsync(const DescribeAnalysisCurveRequest& request, const DescribeAnalysisCurveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAnalysisCurve(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeAnalysisCurveOutcomeCallable AegisClient::describeAnalysisCurveCallable(const DescribeAnalysisCurveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAnalysisCurve(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::CreatScreenSettingOutcome AegisClient::creatScreenSetting(const CreatScreenSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4155,36 +5199,36 @@ AegisClient::DescribeQuaraFileOutcomeCallable AegisClient::describeQuaraFileCall return task->get_future(); } -AegisClient::DescribeTotalStatisticsOutcome AegisClient::describeTotalStatistics(const DescribeTotalStatisticsRequest &request) const +AegisClient::DescribeScreenCityMonitorDataOutcome AegisClient::describeScreenCityMonitorData(const DescribeScreenCityMonitorDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeTotalStatisticsOutcome(endpointOutcome.error()); + return DescribeScreenCityMonitorDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeTotalStatisticsOutcome(DescribeTotalStatisticsResult(outcome.result())); + return DescribeScreenCityMonitorDataOutcome(DescribeScreenCityMonitorDataResult(outcome.result())); else - return DescribeTotalStatisticsOutcome(outcome.error()); + return DescribeScreenCityMonitorDataOutcome(outcome.error()); } -void AegisClient::describeTotalStatisticsAsync(const DescribeTotalStatisticsRequest& request, const DescribeTotalStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +void AegisClient::describeScreenCityMonitorDataAsync(const DescribeScreenCityMonitorDataRequest& request, const DescribeScreenCityMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeTotalStatistics(request), context); + handler(this, request, describeScreenCityMonitorData(request), context); }; asyncExecute(new Runnable(fn)); } -AegisClient::DescribeTotalStatisticsOutcomeCallable AegisClient::describeTotalStatisticsCallable(const DescribeTotalStatisticsRequest &request) const +AegisClient::DescribeScreenCityMonitorDataOutcomeCallable AegisClient::describeScreenCityMonitorDataCallable(const DescribeScreenCityMonitorDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeTotalStatistics(request); + return this->describeScreenCityMonitorData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4227,6 +5271,42 @@ AegisClient::DescribeWhiteListStrategyStatisticsOutcomeCallable AegisClient::des return task->get_future(); } +AegisClient::DescribeTotalStatisticsOutcome AegisClient::describeTotalStatistics(const DescribeTotalStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTotalStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTotalStatisticsOutcome(DescribeTotalStatisticsResult(outcome.result())); + else + return DescribeTotalStatisticsOutcome(outcome.error()); +} + +void AegisClient::describeTotalStatisticsAsync(const DescribeTotalStatisticsRequest& request, const DescribeTotalStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTotalStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeTotalStatisticsOutcomeCallable AegisClient::describeTotalStatisticsCallable(const DescribeTotalStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTotalStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::AutoUpgradeToSasAdvancedVersionOutcome AegisClient::autoUpgradeToSasAdvancedVersion(const AutoUpgradeToSasAdvancedVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4371,6 +5451,42 @@ AegisClient::DescribeWebLockConfigListOutcomeCallable AegisClient::describeWebLo return task->get_future(); } +AegisClient::DescribeVulStatisticsOutcome AegisClient::describeVulStatistics(const DescribeVulStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVulStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVulStatisticsOutcome(DescribeVulStatisticsResult(outcome.result())); + else + return DescribeVulStatisticsOutcome(outcome.error()); +} + +void AegisClient::describeVulStatisticsAsync(const DescribeVulStatisticsRequest& request, const DescribeVulStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVulStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeVulStatisticsOutcomeCallable AegisClient::describeVulStatisticsCallable(const DescribeVulStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVulStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyAutoDelConfigOutcome AegisClient::modifyAutoDelConfig(const ModifyAutoDelConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,6 +5523,42 @@ AegisClient::ModifyAutoDelConfigOutcomeCallable AegisClient::modifyAutoDelConfig return task->get_future(); } +AegisClient::DescribeVulBatchOutcome AegisClient::describeVulBatch(const DescribeVulBatchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVulBatchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVulBatchOutcome(DescribeVulBatchResult(outcome.result())); + else + return DescribeVulBatchOutcome(outcome.error()); +} + +void AegisClient::describeVulBatchAsync(const DescribeVulBatchRequest& request, const DescribeVulBatchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVulBatch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeVulBatchOutcomeCallable AegisClient::describeVulBatchCallable(const DescribeVulBatchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVulBatch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeUserSettingOutcome AegisClient::describeUserSetting(const DescribeUserSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4443,36 +5595,36 @@ AegisClient::DescribeUserSettingOutcomeCallable AegisClient::describeUserSetting return task->get_future(); } -AegisClient::DescribeVulBatchOutcome AegisClient::describeVulBatch(const DescribeVulBatchRequest &request) const +AegisClient::DescribeEntityListOutcome AegisClient::describeEntityList(const DescribeEntityListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeVulBatchOutcome(endpointOutcome.error()); + return DescribeEntityListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeVulBatchOutcome(DescribeVulBatchResult(outcome.result())); + return DescribeEntityListOutcome(DescribeEntityListResult(outcome.result())); else - return DescribeVulBatchOutcome(outcome.error()); + return DescribeEntityListOutcome(outcome.error()); } -void AegisClient::describeVulBatchAsync(const DescribeVulBatchRequest& request, const DescribeVulBatchAsyncHandler& handler, const std::shared_ptr& context) const +void AegisClient::describeEntityListAsync(const DescribeEntityListRequest& request, const DescribeEntityListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeVulBatch(request), context); + handler(this, request, describeEntityList(request), context); }; asyncExecute(new Runnable(fn)); } -AegisClient::DescribeVulBatchOutcomeCallable AegisClient::describeVulBatchCallable(const DescribeVulBatchRequest &request) const +AegisClient::DescribeEntityListOutcomeCallable AegisClient::describeEntityListCallable(const DescribeEntityListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeVulBatch(request); + return this->describeEntityList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4731,6 +5883,42 @@ AegisClient::OperateResultOutcomeCallable AegisClient::operateResultCallable(con return task->get_future(); } +AegisClient::DescribeCustomizeReportChartListOutcome AegisClient::describeCustomizeReportChartList(const DescribeCustomizeReportChartListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomizeReportChartListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomizeReportChartListOutcome(DescribeCustomizeReportChartListResult(outcome.result())); + else + return DescribeCustomizeReportChartListOutcome(outcome.error()); +} + +void AegisClient::describeCustomizeReportChartListAsync(const DescribeCustomizeReportChartListRequest& request, const DescribeCustomizeReportChartListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomizeReportChartList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeCustomizeReportChartListOutcomeCallable AegisClient::describeCustomizeReportChartListCallable(const DescribeCustomizeReportChartListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomizeReportChartList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::RollbackSuspEventQuaraFileOutcome AegisClient::rollbackSuspEventQuaraFile(const RollbackSuspEventQuaraFileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5235,6 +6423,42 @@ AegisClient::DescribeRiskWhiteListOutcomeCallable AegisClient::describeRiskWhite return task->get_future(); } +AegisClient::OperationCustomizeReportChartOutcome AegisClient::operationCustomizeReportChart(const OperationCustomizeReportChartRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperationCustomizeReportChartOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperationCustomizeReportChartOutcome(OperationCustomizeReportChartResult(outcome.result())); + else + return OperationCustomizeReportChartOutcome(outcome.error()); +} + +void AegisClient::operationCustomizeReportChartAsync(const OperationCustomizeReportChartRequest& request, const OperationCustomizeReportChartAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operationCustomizeReportChart(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::OperationCustomizeReportChartOutcomeCallable AegisClient::operationCustomizeReportChartCallable(const OperationCustomizeReportChartRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operationCustomizeReportChart(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyAssetGroupOutcome AegisClient::modifyAssetGroup(const ModifyAssetGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5271,6 +6495,42 @@ AegisClient::ModifyAssetGroupOutcomeCallable AegisClient::modifyAssetGroupCallab return task->get_future(); } +AegisClient::DescribeVulRelatedProcessOutcome AegisClient::describeVulRelatedProcess(const DescribeVulRelatedProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVulRelatedProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVulRelatedProcessOutcome(DescribeVulRelatedProcessResult(outcome.result())); + else + return DescribeVulRelatedProcessOutcome(outcome.error()); +} + +void AegisClient::describeVulRelatedProcessAsync(const DescribeVulRelatedProcessRequest& request, const DescribeVulRelatedProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVulRelatedProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeVulRelatedProcessOutcomeCallable AegisClient::describeVulRelatedProcessCallable(const DescribeVulRelatedProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVulRelatedProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeSasLeftConditionOutcome AegisClient::describeSasLeftCondition(const DescribeSasLeftConditionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5379,42 +6639,6 @@ AegisClient::CreateOrUpdateRuleOutcomeCallable AegisClient::createOrUpdateRuleCa return task->get_future(); } -AegisClient::ModifyLogMetaStatusOutcome AegisClient::modifyLogMetaStatus(const ModifyLogMetaStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyLogMetaStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyLogMetaStatusOutcome(ModifyLogMetaStatusResult(outcome.result())); - else - return ModifyLogMetaStatusOutcome(outcome.error()); -} - -void AegisClient::modifyLogMetaStatusAsync(const ModifyLogMetaStatusRequest& request, const ModifyLogMetaStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyLogMetaStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::ModifyLogMetaStatusOutcomeCallable AegisClient::modifyLogMetaStatusCallable(const ModifyLogMetaStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyLogMetaStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeYesterdayStatisticsOutcome AegisClient::describeYesterdayStatistics(const DescribeYesterdayStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5451,6 +6675,42 @@ AegisClient::DescribeYesterdayStatisticsOutcomeCallable AegisClient::describeYes return task->get_future(); } +AegisClient::ModifyLogMetaStatusOutcome AegisClient::modifyLogMetaStatus(const ModifyLogMetaStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLogMetaStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLogMetaStatusOutcome(ModifyLogMetaStatusResult(outcome.result())); + else + return ModifyLogMetaStatusOutcome(outcome.error()); +} + +void AegisClient::modifyLogMetaStatusAsync(const ModifyLogMetaStatusRequest& request, const ModifyLogMetaStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLogMetaStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyLogMetaStatusOutcomeCallable AegisClient::modifyLogMetaStatusCallable(const ModifyLogMetaStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLogMetaStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeSuspiciousExportInfoOutcome AegisClient::describeSuspiciousExportInfo(const DescribeSuspiciousExportInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5919,42 +7179,6 @@ AegisClient::DescribeAssetListOutcomeCallable AegisClient::describeAssetListCall return task->get_future(); } -AegisClient::ModifyMachineConfigOutcome AegisClient::modifyMachineConfig(const ModifyMachineConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyMachineConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyMachineConfigOutcome(ModifyMachineConfigResult(outcome.result())); - else - return ModifyMachineConfigOutcome(outcome.error()); -} - -void AegisClient::modifyMachineConfigAsync(const ModifyMachineConfigRequest& request, const ModifyMachineConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyMachineConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::ModifyMachineConfigOutcomeCallable AegisClient::modifyMachineConfigCallable(const ModifyMachineConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyMachineConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeVersionConfigOutcome AegisClient::describeVersionConfig(const DescribeVersionConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5991,36 +7215,108 @@ AegisClient::DescribeVersionConfigOutcomeCallable AegisClient::describeVersionCo return task->get_future(); } -AegisClient::DescribeMacConfigOutcome AegisClient::describeMacConfig(const DescribeMacConfigRequest &request) const +AegisClient::ModifyMachineConfigOutcome AegisClient::modifyMachineConfig(const ModifyMachineConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeMacConfigOutcome(endpointOutcome.error()); + return ModifyMachineConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeMacConfigOutcome(DescribeMacConfigResult(outcome.result())); + return ModifyMachineConfigOutcome(ModifyMachineConfigResult(outcome.result())); else - return DescribeMacConfigOutcome(outcome.error()); + return ModifyMachineConfigOutcome(outcome.error()); } -void AegisClient::describeMacConfigAsync(const DescribeMacConfigRequest& request, const DescribeMacConfigAsyncHandler& handler, const std::shared_ptr& context) const +void AegisClient::modifyMachineConfigAsync(const ModifyMachineConfigRequest& request, const ModifyMachineConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeMacConfig(request), context); + handler(this, request, modifyMachineConfig(request), context); }; asyncExecute(new Runnable(fn)); } -AegisClient::DescribeMacConfigOutcomeCallable AegisClient::describeMacConfigCallable(const DescribeMacConfigRequest &request) const +AegisClient::ModifyMachineConfigOutcomeCallable AegisClient::modifyMachineConfigCallable(const ModifyMachineConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeMacConfig(request); + return this->modifyMachineConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::AddEventProcessOutcome AegisClient::addEventProcess(const AddEventProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddEventProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddEventProcessOutcome(AddEventProcessResult(outcome.result())); + else + return AddEventProcessOutcome(outcome.error()); +} + +void AegisClient::addEventProcessAsync(const AddEventProcessRequest& request, const AddEventProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addEventProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::AddEventProcessOutcomeCallable AegisClient::addEventProcessCallable(const AddEventProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addEventProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeChartDataOutcome AegisClient::describeChartData(const DescribeChartDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeChartDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeChartDataOutcome(DescribeChartDataResult(outcome.result())); + else + return DescribeChartDataOutcome(outcome.error()); +} + +void AegisClient::describeChartDataAsync(const DescribeChartDataRequest& request, const DescribeChartDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeChartData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeChartDataOutcomeCallable AegisClient::describeChartDataCallable(const DescribeChartDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeChartData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -6063,6 +7359,42 @@ AegisClient::RollbackQuaraFileOutcomeCallable AegisClient::rollbackQuaraFileCall return task->get_future(); } +AegisClient::DescribeMacConfigOutcome AegisClient::describeMacConfig(const DescribeMacConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMacConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMacConfigOutcome(DescribeMacConfigResult(outcome.result())); + else + return DescribeMacConfigOutcome(outcome.error()); +} + +void AegisClient::describeMacConfigAsync(const DescribeMacConfigRequest& request, const DescribeMacConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMacConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeMacConfigOutcomeCallable AegisClient::describeMacConfigCallable(const DescribeMacConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMacConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeApiBuySummaryOutcome AegisClient::describeApiBuySummary(const DescribeApiBuySummaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6099,42 +7431,6 @@ AegisClient::DescribeApiBuySummaryOutcomeCallable AegisClient::describeApiBuySum return task->get_future(); } -AegisClient::DescribeWebLockMachineListOutcome AegisClient::describeWebLockMachineList(const DescribeWebLockMachineListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeWebLockMachineListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeWebLockMachineListOutcome(DescribeWebLockMachineListResult(outcome.result())); - else - return DescribeWebLockMachineListOutcome(outcome.error()); -} - -void AegisClient::describeWebLockMachineListAsync(const DescribeWebLockMachineListRequest& request, const DescribeWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeWebLockMachineList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeWebLockMachineListOutcomeCallable AegisClient::describeWebLockMachineListCallable(const DescribeWebLockMachineListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeWebLockMachineList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DeleteVulBatchOutcome AegisClient::deleteVulBatch(const DeleteVulBatchRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6171,6 +7467,42 @@ AegisClient::DeleteVulBatchOutcomeCallable AegisClient::deleteVulBatchCallable(c return task->get_future(); } +AegisClient::DescribeWebLockMachineListOutcome AegisClient::describeWebLockMachineList(const DescribeWebLockMachineListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWebLockMachineListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWebLockMachineListOutcome(DescribeWebLockMachineListResult(outcome.result())); + else + return DescribeWebLockMachineListOutcome(outcome.error()); +} + +void AegisClient::describeWebLockMachineListAsync(const DescribeWebLockMachineListRequest& request, const DescribeWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWebLockMachineList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeWebLockMachineListOutcomeCallable AegisClient::describeWebLockMachineListCallable(const DescribeWebLockMachineListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWebLockMachineList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyWebLockStatusOutcome AegisClient::modifyWebLockStatus(const ModifyWebLockStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6243,42 +7575,6 @@ AegisClient::UpdateWhiteListProcessStatusOutcomeCallable AegisClient::updateWhit return task->get_future(); } -AegisClient::DescribeScreenSettingOutcome AegisClient::describeScreenSetting(const DescribeScreenSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScreenSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScreenSettingOutcome(DescribeScreenSettingResult(outcome.result())); - else - return DescribeScreenSettingOutcome(outcome.error()); -} - -void AegisClient::describeScreenSettingAsync(const DescribeScreenSettingRequest& request, const DescribeScreenSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScreenSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeScreenSettingOutcomeCallable AegisClient::describeScreenSettingCallable(const DescribeScreenSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScreenSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::CreateLogQueryOutcome AegisClient::createLogQuery(const CreateLogQueryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6315,6 +7611,78 @@ AegisClient::CreateLogQueryOutcomeCallable AegisClient::createLogQueryCallable(c return task->get_future(); } +AegisClient::DescribeAccessKeyLeakDetailOutcome AegisClient::describeAccessKeyLeakDetail(const DescribeAccessKeyLeakDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessKeyLeakDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessKeyLeakDetailOutcome(DescribeAccessKeyLeakDetailResult(outcome.result())); + else + return DescribeAccessKeyLeakDetailOutcome(outcome.error()); +} + +void AegisClient::describeAccessKeyLeakDetailAsync(const DescribeAccessKeyLeakDetailRequest& request, const DescribeAccessKeyLeakDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessKeyLeakDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeAccessKeyLeakDetailOutcomeCallable AegisClient::describeAccessKeyLeakDetailCallable(const DescribeAccessKeyLeakDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessKeyLeakDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeScreenSettingOutcome AegisClient::describeScreenSetting(const DescribeScreenSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScreenSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScreenSettingOutcome(DescribeScreenSettingResult(outcome.result())); + else + return DescribeScreenSettingOutcome(outcome.error()); +} + +void AegisClient::describeScreenSettingAsync(const DescribeScreenSettingRequest& request, const DescribeScreenSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScreenSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeScreenSettingOutcomeCallable AegisClient::describeScreenSettingCallable(const DescribeScreenSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScreenSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeWarningOutcome AegisClient::describeWarning(const DescribeWarningRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6783,42 +8151,6 @@ AegisClient::DescribeHistogramOutcomeCallable AegisClient::describeHistogramCall return task->get_future(); } -AegisClient::DescribeDingTalkOutcome AegisClient::describeDingTalk(const DescribeDingTalkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDingTalkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDingTalkOutcome(DescribeDingTalkResult(outcome.result())); - else - return DescribeDingTalkOutcome(outcome.error()); -} - -void AegisClient::describeDingTalkAsync(const DescribeDingTalkRequest& request, const DescribeDingTalkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDingTalk(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeDingTalkOutcomeCallable AegisClient::describeDingTalkCallable(const DescribeDingTalkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDingTalk(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeLoginLogsOutcome AegisClient::describeLoginLogs(const DescribeLoginLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6855,6 +8187,42 @@ AegisClient::DescribeLoginLogsOutcomeCallable AegisClient::describeLoginLogsCall return task->get_future(); } +AegisClient::DescribeDingTalkOutcome AegisClient::describeDingTalk(const DescribeDingTalkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDingTalkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDingTalkOutcome(DescribeDingTalkResult(outcome.result())); + else + return DescribeDingTalkOutcome(outcome.error()); +} + +void AegisClient::describeDingTalkAsync(const DescribeDingTalkRequest& request, const DescribeDingTalkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDingTalk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeDingTalkOutcomeCallable AegisClient::describeDingTalkCallable(const DescribeDingTalkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDingTalk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeMetaDataOutcome AegisClient::describeMetaData(const DescribeMetaDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7035,42 +8403,6 @@ AegisClient::ModifyScreenSettingOutcomeCallable AegisClient::modifyScreenSetting return task->get_future(); } -AegisClient::ModifyStrategyOutcome AegisClient::modifyStrategy(const ModifyStrategyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyStrategyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyStrategyOutcome(ModifyStrategyResult(outcome.result())); - else - return ModifyStrategyOutcome(outcome.error()); -} - -void AegisClient::modifyStrategyAsync(const ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyStrategy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::ModifyStrategyOutcomeCallable AegisClient::modifyStrategyCallable(const ModifyStrategyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyStrategy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeEmgNoticeOutcome AegisClient::describeEmgNotice(const DescribeEmgNoticeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7107,6 +8439,42 @@ AegisClient::DescribeEmgNoticeOutcomeCallable AegisClient::describeEmgNoticeCall return task->get_future(); } +AegisClient::ModifyStrategyOutcome AegisClient::modifyStrategy(const ModifyStrategyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyStrategyOutcome(ModifyStrategyResult(outcome.result())); + else + return ModifyStrategyOutcome(outcome.error()); +} + +void AegisClient::modifyStrategyAsync(const ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyStrategyOutcomeCallable AegisClient::modifyStrategyCallable(const ModifyStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeScreenOperateInfoOutcome AegisClient::describeScreenOperateInfo(const DescribeScreenOperateInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7215,42 +8583,6 @@ AegisClient::DescribeSuspEventQuaraFilesOutcomeCallable AegisClient::describeSus return task->get_future(); } -AegisClient::ValidateHcWarningsOutcome AegisClient::validateHcWarnings(const ValidateHcWarningsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ValidateHcWarningsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ValidateHcWarningsOutcome(ValidateHcWarningsResult(outcome.result())); - else - return ValidateHcWarningsOutcome(outcome.error()); -} - -void AegisClient::validateHcWarningsAsync(const ValidateHcWarningsRequest& request, const ValidateHcWarningsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, validateHcWarnings(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::ValidateHcWarningsOutcomeCallable AegisClient::validateHcWarningsCallable(const ValidateHcWarningsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->validateHcWarnings(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::CreateOrUpdateJoinRuleOutcome AegisClient::createOrUpdateJoinRule(const CreateOrUpdateJoinRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7287,6 +8619,42 @@ AegisClient::CreateOrUpdateJoinRuleOutcomeCallable AegisClient::createOrUpdateJo return task->get_future(); } +AegisClient::ValidateHcWarningsOutcome AegisClient::validateHcWarnings(const ValidateHcWarningsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateHcWarningsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateHcWarningsOutcome(ValidateHcWarningsResult(outcome.result())); + else + return ValidateHcWarningsOutcome(outcome.error()); +} + +void AegisClient::validateHcWarningsAsync(const ValidateHcWarningsRequest& request, const ValidateHcWarningsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateHcWarnings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ValidateHcWarningsOutcomeCallable AegisClient::validateHcWarningsCallable(const ValidateHcWarningsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateHcWarnings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::AutoUpgradeSasOutcome AegisClient::autoUpgradeSas(const AutoUpgradeSasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7323,6 +8691,42 @@ AegisClient::AutoUpgradeSasOutcomeCallable AegisClient::autoUpgradeSasCallable(c return task->get_future(); } +AegisClient::ModifyRefreshProcessInfoOutcome AegisClient::modifyRefreshProcessInfo(const ModifyRefreshProcessInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRefreshProcessInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRefreshProcessInfoOutcome(ModifyRefreshProcessInfoResult(outcome.result())); + else + return ModifyRefreshProcessInfoOutcome(outcome.error()); +} + +void AegisClient::modifyRefreshProcessInfoAsync(const ModifyRefreshProcessInfoRequest& request, const ModifyRefreshProcessInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRefreshProcessInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyRefreshProcessInfoOutcomeCallable AegisClient::modifyRefreshProcessInfoCallable(const ModifyRefreshProcessInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRefreshProcessInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeEmgUserAgreementOutcome AegisClient::describeEmgUserAgreement(const DescribeEmgUserAgreementRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7359,42 +8763,6 @@ AegisClient::DescribeEmgUserAgreementOutcomeCallable AegisClient::describeEmgUse return task->get_future(); } -AegisClient::ModifyWebLockMachineListOutcome AegisClient::modifyWebLockMachineList(const ModifyWebLockMachineListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyWebLockMachineListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyWebLockMachineListOutcome(ModifyWebLockMachineListResult(outcome.result())); - else - return ModifyWebLockMachineListOutcome(outcome.error()); -} - -void AegisClient::modifyWebLockMachineListAsync(const ModifyWebLockMachineListRequest& request, const ModifyWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyWebLockMachineList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::ModifyWebLockMachineListOutcomeCallable AegisClient::modifyWebLockMachineListCallable(const ModifyWebLockMachineListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyWebLockMachineList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::ModifyEmgVulSubmitOutcome AegisClient::modifyEmgVulSubmit(const ModifyEmgVulSubmitRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7467,6 +8835,42 @@ AegisClient::DeleteLogQueryOutcomeCallable AegisClient::deleteLogQueryCallable(c return task->get_future(); } +AegisClient::ModifyWebLockMachineListOutcome AegisClient::modifyWebLockMachineList(const ModifyWebLockMachineListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyWebLockMachineListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyWebLockMachineListOutcome(ModifyWebLockMachineListResult(outcome.result())); + else + return ModifyWebLockMachineListOutcome(outcome.error()); +} + +void AegisClient::modifyWebLockMachineListAsync(const ModifyWebLockMachineListRequest& request, const ModifyWebLockMachineListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyWebLockMachineList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyWebLockMachineListOutcomeCallable AegisClient::modifyWebLockMachineListCallable(const ModifyWebLockMachineListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyWebLockMachineList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyTargetConfigOutcome AegisClient::modifyTargetConfig(const ModifyTargetConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7611,42 +9015,6 @@ AegisClient::DescribeSuspEventUserSettingOutcomeCallable AegisClient::describeSu return task->get_future(); } -AegisClient::DescribeWhiteListStrategyCountOutcome AegisClient::describeWhiteListStrategyCount(const DescribeWhiteListStrategyCountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeWhiteListStrategyCountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeWhiteListStrategyCountOutcome(DescribeWhiteListStrategyCountResult(outcome.result())); - else - return DescribeWhiteListStrategyCountOutcome(outcome.error()); -} - -void AegisClient::describeWhiteListStrategyCountAsync(const DescribeWhiteListStrategyCountRequest& request, const DescribeWhiteListStrategyCountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeWhiteListStrategyCount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeWhiteListStrategyCountOutcomeCallable AegisClient::describeWhiteListStrategyCountCallable(const DescribeWhiteListStrategyCountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeWhiteListStrategyCount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AegisClient::DescribeVulConfigOutcome AegisClient::describeVulConfig(const DescribeVulConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7683,6 +9051,42 @@ AegisClient::DescribeVulConfigOutcomeCallable AegisClient::describeVulConfigCall return task->get_future(); } +AegisClient::DescribeWhiteListStrategyCountOutcome AegisClient::describeWhiteListStrategyCount(const DescribeWhiteListStrategyCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWhiteListStrategyCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWhiteListStrategyCountOutcome(DescribeWhiteListStrategyCountResult(outcome.result())); + else + return DescribeWhiteListStrategyCountOutcome(outcome.error()); +} + +void AegisClient::describeWhiteListStrategyCountAsync(const DescribeWhiteListStrategyCountRequest& request, const DescribeWhiteListStrategyCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWhiteListStrategyCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeWhiteListStrategyCountOutcomeCallable AegisClient::describeWhiteListStrategyCountCallable(const DescribeWhiteListStrategyCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWhiteListStrategyCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyWebLockRefreshOutcome AegisClient::modifyWebLockRefresh(const ModifyWebLockRefreshRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7791,6 +9195,42 @@ AegisClient::DescribeWhiteListAssetOutcomeCallable AegisClient::describeWhiteLis return task->get_future(); } +AegisClient::UpdateCustomizeReportStatusOutcome AegisClient::updateCustomizeReportStatus(const UpdateCustomizeReportStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCustomizeReportStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCustomizeReportStatusOutcome(UpdateCustomizeReportStatusResult(outcome.result())); + else + return UpdateCustomizeReportStatusOutcome(outcome.error()); +} + +void AegisClient::updateCustomizeReportStatusAsync(const UpdateCustomizeReportStatusRequest& request, const UpdateCustomizeReportStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCustomizeReportStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::UpdateCustomizeReportStatusOutcomeCallable AegisClient::updateCustomizeReportStatusCallable(const UpdateCustomizeReportStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCustomizeReportStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::ModifyClearLogstoreStorageOutcome AegisClient::modifyClearLogstoreStorage(const ModifyClearLogstoreStorageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7899,36 +9339,72 @@ AegisClient::DescribeCheckWarningsOutcomeCallable AegisClient::describeCheckWarn return task->get_future(); } -AegisClient::DescribeSecurityStatInfoOutcome AegisClient::describeSecurityStatInfo(const DescribeSecurityStatInfoRequest &request) const +AegisClient::DeleteSuspEventNodeOutcome AegisClient::deleteSuspEventNode(const DeleteSuspEventNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSecurityStatInfoOutcome(endpointOutcome.error()); + return DeleteSuspEventNodeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSecurityStatInfoOutcome(DescribeSecurityStatInfoResult(outcome.result())); + return DeleteSuspEventNodeOutcome(DeleteSuspEventNodeResult(outcome.result())); else - return DescribeSecurityStatInfoOutcome(outcome.error()); + return DeleteSuspEventNodeOutcome(outcome.error()); } -void AegisClient::describeSecurityStatInfoAsync(const DescribeSecurityStatInfoRequest& request, const DescribeSecurityStatInfoAsyncHandler& handler, const std::shared_ptr& context) const +void AegisClient::deleteSuspEventNodeAsync(const DeleteSuspEventNodeRequest& request, const DeleteSuspEventNodeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSecurityStatInfo(request), context); + handler(this, request, deleteSuspEventNode(request), context); }; asyncExecute(new Runnable(fn)); } -AegisClient::DescribeSecurityStatInfoOutcomeCallable AegisClient::describeSecurityStatInfoCallable(const DescribeSecurityStatInfoRequest &request) const +AegisClient::DeleteSuspEventNodeOutcomeCallable AegisClient::deleteSuspEventNodeCallable(const DeleteSuspEventNodeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSecurityStatInfo(request); + return this->deleteSuspEventNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeHostStatisticsOutcome AegisClient::describeHostStatistics(const DescribeHostStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHostStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHostStatisticsOutcome(DescribeHostStatisticsResult(outcome.result())); + else + return DescribeHostStatisticsOutcome(outcome.error()); +} + +void AegisClient::describeHostStatisticsAsync(const DescribeHostStatisticsRequest& request, const DescribeHostStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHostStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeHostStatisticsOutcomeCallable AegisClient::describeHostStatisticsCallable(const DescribeHostStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHostStatistics(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -7971,6 +9447,42 @@ AegisClient::SaveWhiteListStrategyOutcomeCallable AegisClient::saveWhiteListStra return task->get_future(); } +AegisClient::DescribeSecurityStatInfoOutcome AegisClient::describeSecurityStatInfo(const DescribeSecurityStatInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityStatInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityStatInfoOutcome(DescribeSecurityStatInfoResult(outcome.result())); + else + return DescribeSecurityStatInfoOutcome(outcome.error()); +} + +void AegisClient::describeSecurityStatInfoAsync(const DescribeSecurityStatInfoRequest& request, const DescribeSecurityStatInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityStatInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeSecurityStatInfoOutcomeCallable AegisClient::describeSecurityStatInfoCallable(const DescribeSecurityStatInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityStatInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeFilterFieldsOutcome AegisClient::describeFilterFields(const DescribeFilterFieldsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8007,6 +9519,42 @@ AegisClient::DescribeFilterFieldsOutcomeCallable AegisClient::describeFilterFiel return task->get_future(); } +AegisClient::DescribeInstanceStatisticsOutcome AegisClient::describeInstanceStatistics(const DescribeInstanceStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceStatisticsOutcome(DescribeInstanceStatisticsResult(outcome.result())); + else + return DescribeInstanceStatisticsOutcome(outcome.error()); +} + +void AegisClient::describeInstanceStatisticsAsync(const DescribeInstanceStatisticsRequest& request, const DescribeInstanceStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeInstanceStatisticsOutcomeCallable AegisClient::describeInstanceStatisticsCallable(const DescribeInstanceStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AegisClient::DescribeScreenSecurityStatInfoOutcome AegisClient::describeScreenSecurityStatInfo(const DescribeScreenSecurityStatInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8079,39 +9627,3 @@ AegisClient::OperateSuspiciousOverallConfigOutcomeCallable AegisClient::operateS return task->get_future(); } -AegisClient::DescribeInstanceStatisticsOutcome AegisClient::describeInstanceStatistics(const DescribeInstanceStatisticsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeInstanceStatisticsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeInstanceStatisticsOutcome(DescribeInstanceStatisticsResult(outcome.result())); - else - return DescribeInstanceStatisticsOutcome(outcome.error()); -} - -void AegisClient::describeInstanceStatisticsAsync(const DescribeInstanceStatisticsRequest& request, const DescribeInstanceStatisticsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeInstanceStatistics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AegisClient::DescribeInstanceStatisticsOutcomeCallable AegisClient::describeInstanceStatisticsCallable(const DescribeInstanceStatisticsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeInstanceStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - diff --git a/aegis/src/model/AddEventProcessRequest.cc b/aegis/src/model/AddEventProcessRequest.cc new file mode 100644 index 000000000..801cce6cb --- /dev/null +++ b/aegis/src/model/AddEventProcessRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::AddEventProcessRequest; + +AddEventProcessRequest::AddEventProcessRequest() : + RpcServiceRequest("aegis", "2016-11-11", "AddEventProcess") +{} + +AddEventProcessRequest::~AddEventProcessRequest() +{} + +std::string AddEventProcessRequest::getSourceIp()const +{ + return sourceIp_; +} + +void AddEventProcessRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string AddEventProcessRequest::getWarningType()const +{ + return warningType_; +} + +void AddEventProcessRequest::setWarningType(const std::string& warningType) +{ + warningType_ = warningType; + setCoreParameter("WarningType", warningType); +} + +std::string AddEventProcessRequest::getSuspiciousEventIds()const +{ + return suspiciousEventIds_; +} + +void AddEventProcessRequest::setSuspiciousEventIds(const std::string& suspiciousEventIds) +{ + suspiciousEventIds_ = suspiciousEventIds; + setCoreParameter("SuspiciousEventIds", suspiciousEventIds); +} + +std::string AddEventProcessRequest::getFrom()const +{ + return from_; +} + +void AddEventProcessRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +std::string AddEventProcessRequest::getLang()const +{ + return lang_; +} + +void AddEventProcessRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/AddEventProcessResult.cc b/aegis/src/model/AddEventProcessResult.cc new file mode 100644 index 000000000..333fec5b5 --- /dev/null +++ b/aegis/src/model/AddEventProcessResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +AddEventProcessResult::AddEventProcessResult() : + ServiceResult() +{} + +AddEventProcessResult::AddEventProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddEventProcessResult::~AddEventProcessResult() +{} + +void AddEventProcessResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/AutoUpgradeSasResult.cc b/aegis/src/model/AutoUpgradeSasResult.cc index a35aac61d..783d7a764 100644 --- a/aegis/src/model/AutoUpgradeSasResult.cc +++ b/aegis/src/model/AutoUpgradeSasResult.cc @@ -35,10 +35,13 @@ AutoUpgradeSasResult::~AutoUpgradeSasResult() void AutoUpgradeSasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/aegis/src/model/AutoUpgradeToSasAdvancedVersionResult.cc b/aegis/src/model/AutoUpgradeToSasAdvancedVersionResult.cc index db3731457..5a4bfd7b6 100644 --- a/aegis/src/model/AutoUpgradeToSasAdvancedVersionResult.cc +++ b/aegis/src/model/AutoUpgradeToSasAdvancedVersionResult.cc @@ -35,10 +35,13 @@ AutoUpgradeToSasAdvancedVersionResult::~AutoUpgradeToSasAdvancedVersionResult() void AutoUpgradeToSasAdvancedVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/BatchDeleteWhiteListResult.cc b/aegis/src/model/BatchDeleteWhiteListResult.cc index bf730c1e7..5f6166714 100644 --- a/aegis/src/model/BatchDeleteWhiteListResult.cc +++ b/aegis/src/model/BatchDeleteWhiteListResult.cc @@ -35,10 +35,13 @@ BatchDeleteWhiteListResult::~BatchDeleteWhiteListResult() void BatchDeleteWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CanTrySasResult.cc b/aegis/src/model/CanTrySasResult.cc index dcce1457e..e59e34392 100644 --- a/aegis/src/model/CanTrySasResult.cc +++ b/aegis/src/model/CanTrySasResult.cc @@ -35,10 +35,13 @@ CanTrySasResult::~CanTrySasResult() void CanTrySasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CanTry"].isNull()) canTry_ = std::stoi(value["CanTry"].asString()); diff --git a/aegis/src/model/CopyCustomizeReportConfigRequest.cc b/aegis/src/model/CopyCustomizeReportConfigRequest.cc new file mode 100644 index 000000000..25d7f18d1 --- /dev/null +++ b/aegis/src/model/CopyCustomizeReportConfigRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::CopyCustomizeReportConfigRequest; + +CopyCustomizeReportConfigRequest::CopyCustomizeReportConfigRequest() : + RpcServiceRequest("aegis", "2016-11-11", "CopyCustomizeReportConfig") +{} + +CopyCustomizeReportConfigRequest::~CopyCustomizeReportConfigRequest() +{} + +std::string CopyCustomizeReportConfigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CopyCustomizeReportConfigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long CopyCustomizeReportConfigRequest::getReportId()const +{ + return reportId_; +} + +void CopyCustomizeReportConfigRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string CopyCustomizeReportConfigRequest::getLang()const +{ + return lang_; +} + +void CopyCustomizeReportConfigRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/CopyCustomizeReportConfigResult.cc b/aegis/src/model/CopyCustomizeReportConfigResult.cc new file mode 100644 index 000000000..b679741be --- /dev/null +++ b/aegis/src/model/CopyCustomizeReportConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +CopyCustomizeReportConfigResult::CopyCustomizeReportConfigResult() : + ServiceResult() +{} + +CopyCustomizeReportConfigResult::CopyCustomizeReportConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyCustomizeReportConfigResult::~CopyCustomizeReportConfigResult() +{} + +void CopyCustomizeReportConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/CreatScreenSettingResult.cc b/aegis/src/model/CreatScreenSettingResult.cc index 365584ee7..9a381629e 100644 --- a/aegis/src/model/CreatScreenSettingResult.cc +++ b/aegis/src/model/CreatScreenSettingResult.cc @@ -35,10 +35,13 @@ CreatScreenSettingResult::~CreatScreenSettingResult() void CreatScreenSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateInstanceResult.cc b/aegis/src/model/CreateInstanceResult.cc index a875088a5..6214056f9 100644 --- a/aegis/src/model/CreateInstanceResult.cc +++ b/aegis/src/model/CreateInstanceResult.cc @@ -35,10 +35,13 @@ CreateInstanceResult::~CreateInstanceResult() void CreateInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/aegis/src/model/CreateLogQueryResult.cc b/aegis/src/model/CreateLogQueryResult.cc index ae20da0f0..7164b8a50 100644 --- a/aegis/src/model/CreateLogQueryResult.cc +++ b/aegis/src/model/CreateLogQueryResult.cc @@ -35,10 +35,13 @@ CreateLogQueryResult::~CreateLogQueryResult() void CreateLogQueryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateOrUpdateDataSourceRequest.cc b/aegis/src/model/CreateOrUpdateDataSourceRequest.cc index ec6f6a314..b337c249c 100644 --- a/aegis/src/model/CreateOrUpdateDataSourceRequest.cc +++ b/aegis/src/model/CreateOrUpdateDataSourceRequest.cc @@ -36,6 +36,17 @@ void CreateOrUpdateDataSourceRequest::setProjectName(const std::string& projectN setCoreParameter("ProjectName", projectName); } +std::string CreateOrUpdateDataSourceRequest::getConfigType()const +{ + return configType_; +} + +void CreateOrUpdateDataSourceRequest::setConfigType(const std::string& configType) +{ + configType_ = configType; + setCoreParameter("ConfigType", configType); +} + std::string CreateOrUpdateDataSourceRequest::getSourceIp()const { return sourceIp_; diff --git a/aegis/src/model/CreateOrUpdateDataSourceResult.cc b/aegis/src/model/CreateOrUpdateDataSourceResult.cc index 3bfbd135e..075d61a61 100644 --- a/aegis/src/model/CreateOrUpdateDataSourceResult.cc +++ b/aegis/src/model/CreateOrUpdateDataSourceResult.cc @@ -35,10 +35,13 @@ CreateOrUpdateDataSourceResult::~CreateOrUpdateDataSourceResult() void CreateOrUpdateDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateOrUpdateDingTalkResult.cc b/aegis/src/model/CreateOrUpdateDingTalkResult.cc index 6e15b27bf..901e8b7d9 100644 --- a/aegis/src/model/CreateOrUpdateDingTalkResult.cc +++ b/aegis/src/model/CreateOrUpdateDingTalkResult.cc @@ -35,10 +35,13 @@ CreateOrUpdateDingTalkResult::~CreateOrUpdateDingTalkResult() void CreateOrUpdateDingTalkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateOrUpdateGroupResult.cc b/aegis/src/model/CreateOrUpdateGroupResult.cc index 20d5f407c..a5700cc74 100644 --- a/aegis/src/model/CreateOrUpdateGroupResult.cc +++ b/aegis/src/model/CreateOrUpdateGroupResult.cc @@ -35,10 +35,13 @@ CreateOrUpdateGroupResult::~CreateOrUpdateGroupResult() void CreateOrUpdateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateOrUpdateJoinRuleResult.cc b/aegis/src/model/CreateOrUpdateJoinRuleResult.cc index 21831a370..ad7507f56 100644 --- a/aegis/src/model/CreateOrUpdateJoinRuleResult.cc +++ b/aegis/src/model/CreateOrUpdateJoinRuleResult.cc @@ -35,10 +35,13 @@ CreateOrUpdateJoinRuleResult::~CreateOrUpdateJoinRuleResult() void CreateOrUpdateJoinRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateOrUpdateRuleResult.cc b/aegis/src/model/CreateOrUpdateRuleResult.cc index bcab67603..88e0d1335 100644 --- a/aegis/src/model/CreateOrUpdateRuleResult.cc +++ b/aegis/src/model/CreateOrUpdateRuleResult.cc @@ -35,10 +35,13 @@ CreateOrUpdateRuleResult::~CreateOrUpdateRuleResult() void CreateOrUpdateRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateScreenSettingRequest.cc b/aegis/src/model/CreateScreenSettingRequest.cc new file mode 100644 index 000000000..bef0b2b3b --- /dev/null +++ b/aegis/src/model/CreateScreenSettingRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::CreateScreenSettingRequest; + +CreateScreenSettingRequest::CreateScreenSettingRequest() : + RpcServiceRequest("aegis", "2016-11-11", "CreateScreenSetting") +{} + +CreateScreenSettingRequest::~CreateScreenSettingRequest() +{} + +std::string CreateScreenSettingRequest::getScreenDataMap()const +{ + return screenDataMap_; +} + +void CreateScreenSettingRequest::setScreenDataMap(const std::string& screenDataMap) +{ + screenDataMap_ = screenDataMap; + setCoreParameter("ScreenDataMap", screenDataMap); +} + +int CreateScreenSettingRequest::getScreenDefault()const +{ + return screenDefault_; +} + +void CreateScreenSettingRequest::setScreenDefault(int screenDefault) +{ + screenDefault_ = screenDefault; + setCoreParameter("ScreenDefault", std::to_string(screenDefault)); +} + +bool CreateScreenSettingRequest::getLogoPower()const +{ + return logoPower_; +} + +void CreateScreenSettingRequest::setLogoPower(bool logoPower) +{ + logoPower_ = logoPower; + setCoreParameter("LogoPower", logoPower ? "true" : "false"); +} + +std::string CreateScreenSettingRequest::getMonitorUrl()const +{ + return monitorUrl_; +} + +void CreateScreenSettingRequest::setMonitorUrl(const std::string& monitorUrl) +{ + monitorUrl_ = monitorUrl; + setCoreParameter("MonitorUrl", monitorUrl); +} + +std::string CreateScreenSettingRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateScreenSettingRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int CreateScreenSettingRequest::getId()const +{ + return id_; +} + +void CreateScreenSettingRequest::setId(int id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string CreateScreenSettingRequest::getTitle()const +{ + return title_; +} + +void CreateScreenSettingRequest::setTitle(const std::string& title) +{ + title_ = title; + setCoreParameter("Title", title); +} + +std::string CreateScreenSettingRequest::getLogoUrl()const +{ + return logoUrl_; +} + +void CreateScreenSettingRequest::setLogoUrl(const std::string& logoUrl) +{ + logoUrl_ = logoUrl; + setCoreParameter("LogoUrl", logoUrl); +} + diff --git a/aegis/src/model/CreateScreenSettingResult.cc b/aegis/src/model/CreateScreenSettingResult.cc new file mode 100644 index 000000000..47ffef55a --- /dev/null +++ b/aegis/src/model/CreateScreenSettingResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +CreateScreenSettingResult::CreateScreenSettingResult() : + ServiceResult() +{} + +CreateScreenSettingResult::CreateScreenSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateScreenSettingResult::~CreateScreenSettingResult() +{} + +void CreateScreenSettingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = std::stoi(value["Id"].asString()); + +} + +int CreateScreenSettingResult::getId()const +{ + return id_; +} + diff --git a/aegis/src/model/CreateSuspEventNoteRequest.cc b/aegis/src/model/CreateSuspEventNoteRequest.cc new file mode 100644 index 000000000..f0f1ed3d7 --- /dev/null +++ b/aegis/src/model/CreateSuspEventNoteRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::CreateSuspEventNoteRequest; + +CreateSuspEventNoteRequest::CreateSuspEventNoteRequest() : + RpcServiceRequest("aegis", "2016-11-11", "CreateSuspEventNote") +{} + +CreateSuspEventNoteRequest::~CreateSuspEventNoteRequest() +{} + +int CreateSuspEventNoteRequest::getEventId()const +{ + return eventId_; +} + +void CreateSuspEventNoteRequest::setEventId(int eventId) +{ + eventId_ = eventId; + setCoreParameter("EventId", std::to_string(eventId)); +} + +std::string CreateSuspEventNoteRequest::getNote()const +{ + return note_; +} + +void CreateSuspEventNoteRequest::setNote(const std::string& note) +{ + note_ = note; + setCoreParameter("Note", note); +} + +std::string CreateSuspEventNoteRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateSuspEventNoteRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/CreateSuspEventNoteResult.cc b/aegis/src/model/CreateSuspEventNoteResult.cc new file mode 100644 index 000000000..9835110b9 --- /dev/null +++ b/aegis/src/model/CreateSuspEventNoteResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +CreateSuspEventNoteResult::CreateSuspEventNoteResult() : + ServiceResult() +{} + +CreateSuspEventNoteResult::CreateSuspEventNoteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSuspEventNoteResult::~CreateSuspEventNoteResult() +{} + +void CreateSuspEventNoteResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int CreateSuspEventNoteResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool CreateSuspEventNoteResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/CreateSuspiciousExportResult.cc b/aegis/src/model/CreateSuspiciousExportResult.cc index 21629f201..89e4bcdb1 100644 --- a/aegis/src/model/CreateSuspiciousExportResult.cc +++ b/aegis/src/model/CreateSuspiciousExportResult.cc @@ -35,10 +35,13 @@ CreateSuspiciousExportResult::~CreateSuspiciousExportResult() void CreateSuspiciousExportResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/aegis/src/model/CreateUserSettingResult.cc b/aegis/src/model/CreateUserSettingResult.cc index 26c6eecda..6227e24fa 100644 --- a/aegis/src/model/CreateUserSettingResult.cc +++ b/aegis/src/model/CreateUserSettingResult.cc @@ -35,10 +35,13 @@ CreateUserSettingResult::~CreateUserSettingResult() void CreateUserSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateUserWhiteListResult.cc b/aegis/src/model/CreateUserWhiteListResult.cc index 2479c592a..150c1b77b 100644 --- a/aegis/src/model/CreateUserWhiteListResult.cc +++ b/aegis/src/model/CreateUserWhiteListResult.cc @@ -35,10 +35,13 @@ CreateUserWhiteListResult::~CreateUserWhiteListResult() void CreateUserWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/CreateVulWhitelistResult.cc b/aegis/src/model/CreateVulWhitelistResult.cc index 71bc793e9..b56b81360 100644 --- a/aegis/src/model/CreateVulWhitelistResult.cc +++ b/aegis/src/model/CreateVulWhitelistResult.cc @@ -35,10 +35,13 @@ CreateVulWhitelistResult::~CreateVulWhitelistResult() void CreateVulWhitelistResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteCustomizeReportRequest.cc b/aegis/src/model/DeleteCustomizeReportRequest.cc new file mode 100644 index 000000000..7da659a49 --- /dev/null +++ b/aegis/src/model/DeleteCustomizeReportRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DeleteCustomizeReportRequest; + +DeleteCustomizeReportRequest::DeleteCustomizeReportRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DeleteCustomizeReport") +{} + +DeleteCustomizeReportRequest::~DeleteCustomizeReportRequest() +{} + +std::string DeleteCustomizeReportRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteCustomizeReportRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DeleteCustomizeReportRequest::getReportId()const +{ + return reportId_; +} + +void DeleteCustomizeReportRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string DeleteCustomizeReportRequest::getLang()const +{ + return lang_; +} + +void DeleteCustomizeReportRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/DeleteCustomizeReportResult.cc b/aegis/src/model/DeleteCustomizeReportResult.cc new file mode 100644 index 000000000..8fc44791b --- /dev/null +++ b/aegis/src/model/DeleteCustomizeReportResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DeleteCustomizeReportResult::DeleteCustomizeReportResult() : + ServiceResult() +{} + +DeleteCustomizeReportResult::DeleteCustomizeReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomizeReportResult::~DeleteCustomizeReportResult() +{} + +void DeleteCustomizeReportResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/DeleteDingTalkResult.cc b/aegis/src/model/DeleteDingTalkResult.cc index 3b4e42538..217bbe5cf 100644 --- a/aegis/src/model/DeleteDingTalkResult.cc +++ b/aegis/src/model/DeleteDingTalkResult.cc @@ -35,10 +35,13 @@ DeleteDingTalkResult::~DeleteDingTalkResult() void DeleteDingTalkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteJoinRuleResult.cc b/aegis/src/model/DeleteJoinRuleResult.cc index 4ddcbf2f7..e8cf47fef 100644 --- a/aegis/src/model/DeleteJoinRuleResult.cc +++ b/aegis/src/model/DeleteJoinRuleResult.cc @@ -35,10 +35,13 @@ DeleteJoinRuleResult::~DeleteJoinRuleResult() void DeleteJoinRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteLogQueryResult.cc b/aegis/src/model/DeleteLogQueryResult.cc index a0a61ed32..740a3e94e 100644 --- a/aegis/src/model/DeleteLogQueryResult.cc +++ b/aegis/src/model/DeleteLogQueryResult.cc @@ -35,10 +35,13 @@ DeleteLogQueryResult::~DeleteLogQueryResult() void DeleteLogQueryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteRuleGroupResult.cc b/aegis/src/model/DeleteRuleGroupResult.cc index 90722c540..b1a318a45 100644 --- a/aegis/src/model/DeleteRuleGroupResult.cc +++ b/aegis/src/model/DeleteRuleGroupResult.cc @@ -35,10 +35,13 @@ DeleteRuleGroupResult::~DeleteRuleGroupResult() void DeleteRuleGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteRuleResult.cc b/aegis/src/model/DeleteRuleResult.cc index f9357415d..8ff47173c 100644 --- a/aegis/src/model/DeleteRuleResult.cc +++ b/aegis/src/model/DeleteRuleResult.cc @@ -35,10 +35,13 @@ DeleteRuleResult::~DeleteRuleResult() void DeleteRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteScreenSettingRequest.cc b/aegis/src/model/DeleteScreenSettingRequest.cc index 8bbe75a6a..0be9d4e21 100644 --- a/aegis/src/model/DeleteScreenSettingRequest.cc +++ b/aegis/src/model/DeleteScreenSettingRequest.cc @@ -36,14 +36,14 @@ void DeleteScreenSettingRequest::setSourceIp(const std::string& sourceIp) setCoreParameter("SourceIp", sourceIp); } -std::string DeleteScreenSettingRequest::getScreenTitle()const +std::string DeleteScreenSettingRequest::getId()const { - return screenTitle_; + return id_; } -void DeleteScreenSettingRequest::setScreenTitle(const std::string& screenTitle) +void DeleteScreenSettingRequest::setId(const std::string& id) { - screenTitle_ = screenTitle; - setCoreParameter("ScreenTitle", screenTitle); + id_ = id; + setCoreParameter("Id", id); } diff --git a/aegis/src/model/DeleteScreenSettingResult.cc b/aegis/src/model/DeleteScreenSettingResult.cc index dcda76079..059fc1feb 100644 --- a/aegis/src/model/DeleteScreenSettingResult.cc +++ b/aegis/src/model/DeleteScreenSettingResult.cc @@ -35,11 +35,21 @@ DeleteScreenSettingResult::~DeleteScreenSettingResult() void DeleteScreenSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } +bool DeleteScreenSettingResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DeleteSearchConditionResult.cc b/aegis/src/model/DeleteSearchConditionResult.cc index 78c98a258..67a942a18 100644 --- a/aegis/src/model/DeleteSearchConditionResult.cc +++ b/aegis/src/model/DeleteSearchConditionResult.cc @@ -35,10 +35,13 @@ DeleteSearchConditionResult::~DeleteSearchConditionResult() void DeleteSearchConditionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteStrategyResult.cc b/aegis/src/model/DeleteStrategyResult.cc index 5a975126b..c987ecaba 100644 --- a/aegis/src/model/DeleteStrategyResult.cc +++ b/aegis/src/model/DeleteStrategyResult.cc @@ -35,10 +35,13 @@ DeleteStrategyResult::~DeleteStrategyResult() void DeleteStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteSuspEventNodeRequest.cc b/aegis/src/model/DeleteSuspEventNodeRequest.cc new file mode 100644 index 000000000..a87bd3cc6 --- /dev/null +++ b/aegis/src/model/DeleteSuspEventNodeRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DeleteSuspEventNodeRequest; + +DeleteSuspEventNodeRequest::DeleteSuspEventNodeRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DeleteSuspEventNode") +{} + +DeleteSuspEventNodeRequest::~DeleteSuspEventNodeRequest() +{} + +std::string DeleteSuspEventNodeRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteSuspEventNodeRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DeleteSuspEventNodeRequest::getNoteId()const +{ + return noteId_; +} + +void DeleteSuspEventNodeRequest::setNoteId(int noteId) +{ + noteId_ = noteId; + setCoreParameter("NoteId", std::to_string(noteId)); +} + diff --git a/aegis/src/model/DeleteSuspEventNodeResult.cc b/aegis/src/model/DeleteSuspEventNodeResult.cc new file mode 100644 index 000000000..ce8f7e8c5 --- /dev/null +++ b/aegis/src/model/DeleteSuspEventNodeResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DeleteSuspEventNodeResult::DeleteSuspEventNodeResult() : + ServiceResult() +{} + +DeleteSuspEventNodeResult::DeleteSuspEventNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSuspEventNodeResult::~DeleteSuspEventNodeResult() +{} + +void DeleteSuspEventNodeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int DeleteSuspEventNodeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool DeleteSuspEventNodeResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DeleteVulBatchResult.cc b/aegis/src/model/DeleteVulBatchResult.cc index a657ba6c7..e73ccc35d 100644 --- a/aegis/src/model/DeleteVulBatchResult.cc +++ b/aegis/src/model/DeleteVulBatchResult.cc @@ -35,10 +35,13 @@ DeleteVulBatchResult::~DeleteVulBatchResult() void DeleteVulBatchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DeleteVulWhitelistResult.cc b/aegis/src/model/DeleteVulWhitelistResult.cc index bfc27d7a2..7511a0090 100644 --- a/aegis/src/model/DeleteVulWhitelistResult.cc +++ b/aegis/src/model/DeleteVulWhitelistResult.cc @@ -35,10 +35,13 @@ DeleteVulWhitelistResult::~DeleteVulWhitelistResult() void DeleteVulWhitelistResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/DescribeAccessKeyLeakDetailRequest.cc b/aegis/src/model/DescribeAccessKeyLeakDetailRequest.cc new file mode 100644 index 000000000..c47d5ab90 --- /dev/null +++ b/aegis/src/model/DescribeAccessKeyLeakDetailRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeAccessKeyLeakDetailRequest; + +DescribeAccessKeyLeakDetailRequest::DescribeAccessKeyLeakDetailRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeAccessKeyLeakDetail") +{} + +DescribeAccessKeyLeakDetailRequest::~DescribeAccessKeyLeakDetailRequest() +{} + +std::string DescribeAccessKeyLeakDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAccessKeyLeakDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeAccessKeyLeakDetailRequest::getId()const +{ + return id_; +} + +void DescribeAccessKeyLeakDetailRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + diff --git a/aegis/src/model/DescribeAccessKeyLeakDetailResult.cc b/aegis/src/model/DescribeAccessKeyLeakDetailResult.cc new file mode 100644 index 000000000..703020080 --- /dev/null +++ b/aegis/src/model/DescribeAccessKeyLeakDetailResult.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeAccessKeyLeakDetailResult::DescribeAccessKeyLeakDetailResult() : + ServiceResult() +{} + +DescribeAccessKeyLeakDetailResult::DescribeAccessKeyLeakDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessKeyLeakDetailResult::~DescribeAccessKeyLeakDetailResult() +{} + +void DescribeAccessKeyLeakDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["GmtModified"].isNull()) + gmtModified_ = value["GmtModified"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = value["GmtCreate"].asString(); + if(!value["AccesskeyId"].isNull()) + accesskeyId_ = value["AccesskeyId"].asString(); + if(!value["Source"].isNull()) + source_ = value["Source"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["GithubUser"].isNull()) + githubUser_ = value["GithubUser"].asString(); + if(!value["GithubUserPicUrl"].isNull()) + githubUserPicUrl_ = value["GithubUserPicUrl"].asString(); + if(!value["GithubFileName"].isNull()) + githubFileName_ = value["GithubFileName"].asString(); + if(!value["GithubFileUrl"].isNull()) + githubFileUrl_ = value["GithubFileUrl"].asString(); + if(!value["GithubFileType"].isNull()) + githubFileType_ = value["GithubFileType"].asString(); + if(!value["GithubRepoName"].isNull()) + githubRepoName_ = value["GithubRepoName"].asString(); + if(!value["GithubRepoUrl"].isNull()) + githubRepoUrl_ = value["GithubRepoUrl"].asString(); + if(!value["GithubFileUpdateTime"].isNull()) + githubFileUpdateTime_ = value["GithubFileUpdateTime"].asString(); + if(!value["Asset"].isNull()) + asset_ = value["Asset"].asString(); + if(!value["WhitelistStatus"].isNull()) + whitelistStatus_ = value["WhitelistStatus"].asString(); + if(!value["Remark"].isNull()) + remark_ = value["Remark"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DealType"].isNull()) + dealType_ = value["DealType"].asString(); + if(!value["DealTime"].isNull()) + dealTime_ = value["DealTime"].asString(); + +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubRepoName()const +{ + return githubRepoName_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubRepoUrl()const +{ + return githubRepoUrl_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubFileName()const +{ + return githubFileName_; +} + +std::string DescribeAccessKeyLeakDetailResult::getDealType()const +{ + return dealType_; +} + +std::string DescribeAccessKeyLeakDetailResult::getWhitelistStatus()const +{ + return whitelistStatus_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string DescribeAccessKeyLeakDetailResult::getCode()const +{ + return code_; +} + +std::string DescribeAccessKeyLeakDetailResult::getSource()const +{ + return source_; +} + +std::string DescribeAccessKeyLeakDetailResult::getRemark()const +{ + return remark_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string DescribeAccessKeyLeakDetailResult::getType()const +{ + return type_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubUserPicUrl()const +{ + return githubUserPicUrl_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubFileUpdateTime()const +{ + return githubFileUpdateTime_; +} + +std::string DescribeAccessKeyLeakDetailResult::getAccesskeyId()const +{ + return accesskeyId_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubFileUrl()const +{ + return githubFileUrl_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubFileType()const +{ + return githubFileType_; +} + +std::string DescribeAccessKeyLeakDetailResult::getAsset()const +{ + return asset_; +} + +std::string DescribeAccessKeyLeakDetailResult::getGithubUser()const +{ + return githubUser_; +} + +std::string DescribeAccessKeyLeakDetailResult::getDealTime()const +{ + return dealTime_; +} + diff --git a/aegis/src/model/DescribeAccesskeyLeakListRequest.cc b/aegis/src/model/DescribeAccesskeyLeakListRequest.cc new file mode 100644 index 000000000..c70a91930 --- /dev/null +++ b/aegis/src/model/DescribeAccesskeyLeakListRequest.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 + +using AlibabaCloud::Aegis::Model::DescribeAccesskeyLeakListRequest; + +DescribeAccesskeyLeakListRequest::DescribeAccesskeyLeakListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeAccesskeyLeakList") +{} + +DescribeAccesskeyLeakListRequest::~DescribeAccesskeyLeakListRequest() +{} + +std::string DescribeAccesskeyLeakListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAccesskeyLeakListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeAccesskeyLeakListRequest::getQuery()const +{ + return query_; +} + +void DescribeAccesskeyLeakListRequest::setQuery(const std::string& query) +{ + query_ = query; + setCoreParameter("Query", query); +} + +int DescribeAccesskeyLeakListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccesskeyLeakListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeAccesskeyLeakListRequest::getStartTs()const +{ + return startTs_; +} + +void DescribeAccesskeyLeakListRequest::setStartTs(long startTs) +{ + startTs_ = startTs; + setCoreParameter("StartTs", std::to_string(startTs)); +} + +int DescribeAccesskeyLeakListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeAccesskeyLeakListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeAccesskeyLeakListRequest::getStatus()const +{ + return status_; +} + +void DescribeAccesskeyLeakListRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/aegis/src/model/DescribeAccesskeyLeakListResult.cc b/aegis/src/model/DescribeAccesskeyLeakListResult.cc new file mode 100644 index 000000000..b28b9a3c9 --- /dev/null +++ b/aegis/src/model/DescribeAccesskeyLeakListResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeAccesskeyLeakListResult::DescribeAccesskeyLeakListResult() : + ServiceResult() +{} + +DescribeAccesskeyLeakListResult::DescribeAccesskeyLeakListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccesskeyLeakListResult::~DescribeAccesskeyLeakListResult() +{} + +void DescribeAccesskeyLeakListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allAccessKeyLeakList = value["AccessKeyLeakList"]["AccessKeyLeak"]; + for (auto value : allAccessKeyLeakList) + { + AccessKeyLeak accessKeyLeakListObject; + if(!value["Id"].isNull()) + accessKeyLeakListObject.id = std::stol(value["Id"].asString()); + if(!value["GmtModified"].isNull()) + accessKeyLeakListObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["Asset"].isNull()) + accessKeyLeakListObject.asset = value["Asset"].asString(); + if(!value["Type"].isNull()) + accessKeyLeakListObject.type = value["Type"].asString(); + if(!value["AccesskeyId"].isNull()) + accessKeyLeakListObject.accesskeyId = value["AccesskeyId"].asString(); + if(!value["Status"].isNull()) + accessKeyLeakListObject.status = value["Status"].asString(); + if(!value["AliUserName"].isNull()) + accessKeyLeakListObject.aliUserName = value["AliUserName"].asString(); + if(!value["DealType"].isNull()) + accessKeyLeakListObject.dealType = value["DealType"].asString(); + if(!value["DealTime"].isNull()) + accessKeyLeakListObject.dealTime = value["DealTime"].asString(); + if(!value["UserType"].isNull()) + accessKeyLeakListObject.userType = value["UserType"].asString(); + accessKeyLeakList_.push_back(accessKeyLeakListObject); + } + if(!value["GmtLast"].isNull()) + gmtLast_ = std::stol(value["GmtLast"].asString()); + if(!value["AkLeakCount"].isNull()) + akLeakCount_ = std::stoi(value["AkLeakCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeAccesskeyLeakListResult::getAkLeakCount()const +{ + return akLeakCount_; +} + +std::vector DescribeAccesskeyLeakListResult::getAccessKeyLeakList()const +{ + return accessKeyLeakList_; +} + +int DescribeAccesskeyLeakListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeAccesskeyLeakListResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeAccesskeyLeakListResult::getGmtLast()const +{ + return gmtLast_; +} + +int DescribeAccesskeyLeakListResult::getCurrentPage()const +{ + return currentPage_; +} + diff --git a/aegis/src/model/DescribeAccesskeyRunInfoRequest.cc b/aegis/src/model/DescribeAccesskeyRunInfoRequest.cc new file mode 100644 index 000000000..e0e3ae38e --- /dev/null +++ b/aegis/src/model/DescribeAccesskeyRunInfoRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeAccesskeyRunInfoRequest; + +DescribeAccesskeyRunInfoRequest::DescribeAccesskeyRunInfoRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeAccesskeyRunInfo") +{} + +DescribeAccesskeyRunInfoRequest::~DescribeAccesskeyRunInfoRequest() +{} + +std::string DescribeAccesskeyRunInfoRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAccesskeyRunInfoRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeAccesskeyRunInfoResult.cc b/aegis/src/model/DescribeAccesskeyRunInfoResult.cc new file mode 100644 index 000000000..7512c51de --- /dev/null +++ b/aegis/src/model/DescribeAccesskeyRunInfoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeAccesskeyRunInfoResult::DescribeAccesskeyRunInfoResult() : + ServiceResult() +{} + +DescribeAccesskeyRunInfoResult::DescribeAccesskeyRunInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccesskeyRunInfoResult::~DescribeAccesskeyRunInfoResult() +{} + +void DescribeAccesskeyRunInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Stop"].isNull()) + stop_ = value["Stop"].asString() == "true"; + +} + +bool DescribeAccesskeyRunInfoResult::getStop()const +{ + return stop_; +} + diff --git a/aegis/src/model/DescribeAgentInstallStatusResult.cc b/aegis/src/model/DescribeAgentInstallStatusResult.cc index c49ba496b..e8ca9b1e5 100644 --- a/aegis/src/model/DescribeAgentInstallStatusResult.cc +++ b/aegis/src/model/DescribeAgentInstallStatusResult.cc @@ -35,10 +35,13 @@ DescribeAgentInstallStatusResult::~DescribeAgentInstallStatusResult() void DescribeAgentInstallStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAegisClientInvokeStatusResponseList = value["AegisClientInvokeStatusResponseList"]["AegisClientInvokeStatusResponse"]; for (auto value : allAegisClientInvokeStatusResponseList) @@ -50,6 +53,8 @@ void DescribeAgentInstallStatusResult::parse(const std::string &payload) aegisClientInvokeStatusResponseListObject.message = value["Message"].asString(); if(!value["Result"].isNull()) aegisClientInvokeStatusResponseListObject.result = std::stoi(value["Result"].asString()); + if(!value["ResuleCode"].isNull()) + aegisClientInvokeStatusResponseListObject.resuleCode = value["ResuleCode"].asString(); aegisClientInvokeStatusResponseList_.push_back(aegisClientInvokeStatusResponseListObject); } diff --git a/aegis/src/model/DescribeAlarmEventDetailResult.cc b/aegis/src/model/DescribeAlarmEventDetailResult.cc index ed03d052f..24c3846b6 100644 --- a/aegis/src/model/DescribeAlarmEventDetailResult.cc +++ b/aegis/src/model/DescribeAlarmEventDetailResult.cc @@ -35,10 +35,13 @@ DescribeAlarmEventDetailResult::~DescribeAlarmEventDetailResult() void DescribeAlarmEventDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["InternetIp"].isNull()) @@ -73,6 +76,10 @@ void DescribeAlarmEventDetailResult::parse(const std::string &payload) data_.canCancelFault = dataNode["CanCancelFault"].asString() == "true"; if(!dataNode["HasTraceInfo"].isNull()) data_.hasTraceInfo = dataNode["HasTraceInfo"].asString() == "true"; + if(!dataNode["AccessCode"].isNull()) + data_.accessCode = dataNode["AccessCode"].asString(); + if(!dataNode["Dealed"].isNull()) + data_.dealed = dataNode["Dealed"].asString() == "true"; auto allCauseDetails = value["CauseDetails"]["CauseDetail"]; for (auto value : allCauseDetails) { diff --git a/aegis/src/model/DescribeAlarmEventListRequest.cc b/aegis/src/model/DescribeAlarmEventListRequest.cc index e44ecdf70..92c62a867 100644 --- a/aegis/src/model/DescribeAlarmEventListRequest.cc +++ b/aegis/src/model/DescribeAlarmEventListRequest.cc @@ -47,6 +47,17 @@ void DescribeAlarmEventListRequest::setSourceIp(const std::string& sourceIp) setCoreParameter("SourceIp", sourceIp); } +std::string DescribeAlarmEventListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeAlarmEventListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + std::string DescribeAlarmEventListRequest::getPageSize()const { return pageSize_; @@ -135,3 +146,15 @@ void DescribeAlarmEventListRequest::setLevels(const std::string& levels) setCoreParameter("Levels", levels); } +std::vector DescribeAlarmEventListRequest::getOperateErrorCodeList()const +{ + return operateErrorCodeList_; +} + +void DescribeAlarmEventListRequest::setOperateErrorCodeList(const std::vector& operateErrorCodeList) +{ + operateErrorCodeList_ = operateErrorCodeList; + for(int i = 0; i!= operateErrorCodeList.size(); i++) + setCoreParameter("OperateErrorCodeList."+ std::to_string(i), operateErrorCodeList.at(i)); +} + diff --git a/aegis/src/model/DescribeAlarmEventListResult.cc b/aegis/src/model/DescribeAlarmEventListResult.cc index 3d580ebcb..fe384c76e 100644 --- a/aegis/src/model/DescribeAlarmEventListResult.cc +++ b/aegis/src/model/DescribeAlarmEventListResult.cc @@ -35,10 +35,13 @@ DescribeAlarmEventListResult::~DescribeAlarmEventListResult() void DescribeAlarmEventListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspEvents = value["SuspEvents"]["SuspEventsItem"]; for (auto value : allSuspEvents) @@ -84,6 +87,10 @@ void DescribeAlarmEventListResult::parse(const std::string &payload) suspEventsObject.gmtModified = std::stol(value["GmtModified"].asString()); if(!value["HasTraceInfo"].isNull()) suspEventsObject.hasTraceInfo = value["HasTraceInfo"].asString() == "true"; + if(!value["SecurityEventIds"].isNull()) + suspEventsObject.securityEventIds = value["SecurityEventIds"].asString(); + if(!value["OperateErrorCode"].isNull()) + suspEventsObject.operateErrorCode = value["OperateErrorCode"].asString(); suspEvents_.push_back(suspEventsObject); } auto pageInfoNode = value["PageInfo"]; diff --git a/aegis/src/model/DescribeAllRegionsStatisticsRequest.cc b/aegis/src/model/DescribeAllRegionsStatisticsRequest.cc index 186bddc8e..3181eb5cb 100644 --- a/aegis/src/model/DescribeAllRegionsStatisticsRequest.cc +++ b/aegis/src/model/DescribeAllRegionsStatisticsRequest.cc @@ -190,6 +190,17 @@ void DescribeAllRegionsStatisticsRequest::setPageSize(int pageSize) setCoreParameter("PageSize", std::to_string(pageSize)); } +std::string DescribeAllRegionsStatisticsRequest::getFrom()const +{ + return from_; +} + +void DescribeAllRegionsStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + int DescribeAllRegionsStatisticsRequest::getAction1()const { return action1_; diff --git a/aegis/src/model/DescribeAllRegionsStatisticsResult.cc b/aegis/src/model/DescribeAllRegionsStatisticsResult.cc index 7c689d011..36d7e675d 100644 --- a/aegis/src/model/DescribeAllRegionsStatisticsResult.cc +++ b/aegis/src/model/DescribeAllRegionsStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeAllRegionsStatisticsResult::~DescribeAllRegionsStatisticsResult() void DescribeAllRegionsStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Account"].isNull()) diff --git a/aegis/src/model/DescribeAnalysisCurveResult.cc b/aegis/src/model/DescribeAnalysisCurveResult.cc index 11f6919d8..f17928830 100644 --- a/aegis/src/model/DescribeAnalysisCurveResult.cc +++ b/aegis/src/model/DescribeAnalysisCurveResult.cc @@ -35,10 +35,13 @@ DescribeAnalysisCurveResult::~DescribeAnalysisCurveResult() void DescribeAnalysisCurveResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto curvesNode = value["Curves"]; auto allOriginalCurveList = value["OriginalCurveList"]["OriginalCurve"]; diff --git a/aegis/src/model/DescribeAnalysisHistogramsResult.cc b/aegis/src/model/DescribeAnalysisHistogramsResult.cc index 807320bba..1d2115a95 100644 --- a/aegis/src/model/DescribeAnalysisHistogramsResult.cc +++ b/aegis/src/model/DescribeAnalysisHistogramsResult.cc @@ -35,10 +35,13 @@ DescribeAnalysisHistogramsResult::~DescribeAnalysisHistogramsResult() void DescribeAnalysisHistogramsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto histogramsNode = value["Histograms"]; if(!histogramsNode["Histograms"].isNull()) diff --git a/aegis/src/model/DescribeAnalysisLogsResult.cc b/aegis/src/model/DescribeAnalysisLogsResult.cc index 64fde598a..2b5cc14a6 100644 --- a/aegis/src/model/DescribeAnalysisLogsResult.cc +++ b/aegis/src/model/DescribeAnalysisLogsResult.cc @@ -35,10 +35,13 @@ DescribeAnalysisLogsResult::~DescribeAnalysisLogsResult() void DescribeAnalysisLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto logsNode = value["Logs"]; if(!logsNode["ProcessedRow"].isNull()) diff --git a/aegis/src/model/DescribeAnalysisShipperStatusResult.cc b/aegis/src/model/DescribeAnalysisShipperStatusResult.cc index 22d518f1e..10cfd1233 100644 --- a/aegis/src/model/DescribeAnalysisShipperStatusResult.cc +++ b/aegis/src/model/DescribeAnalysisShipperStatusResult.cc @@ -35,10 +35,13 @@ DescribeAnalysisShipperStatusResult::~DescribeAnalysisShipperStatusResult() void DescribeAnalysisShipperStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto shipperDataNode = value["ShipperData"]; if(!shipperDataNode["AuthStatus"].isNull()) diff --git a/aegis/src/model/DescribeAnalysisSlsIndexResult.cc b/aegis/src/model/DescribeAnalysisSlsIndexResult.cc index cae97461e..4ac468f45 100644 --- a/aegis/src/model/DescribeAnalysisSlsIndexResult.cc +++ b/aegis/src/model/DescribeAnalysisSlsIndexResult.cc @@ -35,10 +35,13 @@ DescribeAnalysisSlsIndexResult::~DescribeAnalysisSlsIndexResult() void DescribeAnalysisSlsIndexResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto slsIndexNode = value["SlsIndex"]; if(!slsIndexNode["Index"].isNull()) diff --git a/aegis/src/model/DescribeAnalysisStatisticsResult.cc b/aegis/src/model/DescribeAnalysisStatisticsResult.cc index 695d468ff..22977f7e7 100644 --- a/aegis/src/model/DescribeAnalysisStatisticsResult.cc +++ b/aegis/src/model/DescribeAnalysisStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeAnalysisStatisticsResult::~DescribeAnalysisStatisticsResult() void DescribeAnalysisStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto statisticsNode = value["Statistics"]; if(!statisticsNode["Total"].isNull()) diff --git a/aegis/src/model/DescribeApiBuySummaryResult.cc b/aegis/src/model/DescribeApiBuySummaryResult.cc index 49e6e847e..7b29e81f9 100644 --- a/aegis/src/model/DescribeApiBuySummaryResult.cc +++ b/aegis/src/model/DescribeApiBuySummaryResult.cc @@ -35,10 +35,13 @@ DescribeApiBuySummaryResult::~DescribeApiBuySummaryResult() void DescribeApiBuySummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto buySummaryNode = value["BuySummary"]; if(!buySummaryNode["Status"].isNull()) diff --git a/aegis/src/model/DescribeAssetDetailByUuidResult.cc b/aegis/src/model/DescribeAssetDetailByUuidResult.cc index 0a8b750cd..93e5632a4 100644 --- a/aegis/src/model/DescribeAssetDetailByUuidResult.cc +++ b/aegis/src/model/DescribeAssetDetailByUuidResult.cc @@ -35,10 +35,13 @@ DescribeAssetDetailByUuidResult::~DescribeAssetDetailByUuidResult() void DescribeAssetDetailByUuidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto assetDetailNode = value["AssetDetail"]; if(!assetDetailNode["InternetIp"].isNull()) diff --git a/aegis/src/model/DescribeAssetListRequest.cc b/aegis/src/model/DescribeAssetListRequest.cc index 2c9415e65..d1dc9218c 100644 --- a/aegis/src/model/DescribeAssetListRequest.cc +++ b/aegis/src/model/DescribeAssetListRequest.cc @@ -47,6 +47,17 @@ void DescribeAssetListRequest::setPageSize(int pageSize) setCoreParameter("PageSize", std::to_string(pageSize)); } +std::string DescribeAssetListRequest::getFrom()const +{ + return from_; +} + +void DescribeAssetListRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + int DescribeAssetListRequest::getCurrentPage()const { return currentPage_; diff --git a/aegis/src/model/DescribeAssetListResult.cc b/aegis/src/model/DescribeAssetListResult.cc index 8668bce27..6f483d2ad 100644 --- a/aegis/src/model/DescribeAssetListResult.cc +++ b/aegis/src/model/DescribeAssetListResult.cc @@ -35,10 +35,13 @@ DescribeAssetListResult::~DescribeAssetListResult() void DescribeAssetListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAssetList = value["AssetList"]["Asset"]; for (auto value : allAssetList) @@ -64,6 +67,8 @@ void DescribeAssetListResult::parse(const std::string &payload) assetListObject.region = value["Region"].asString(); if(!value["RegionName"].isNull()) assetListObject.regionName = value["RegionName"].asString(); + if(!value["Status"].isNull()) + assetListObject.status = value["Status"].asString(); assetList_.push_back(assetListObject); } if(!value["PageSize"].isNull()) diff --git a/aegis/src/model/DescribeAssetSummaryResult.cc b/aegis/src/model/DescribeAssetSummaryResult.cc index 57ee26ced..f34057bdf 100644 --- a/aegis/src/model/DescribeAssetSummaryResult.cc +++ b/aegis/src/model/DescribeAssetSummaryResult.cc @@ -35,10 +35,13 @@ DescribeAssetSummaryResult::~DescribeAssetSummaryResult() void DescribeAssetSummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto summaryNode = value["Summary"]; if(!summaryNode["TotalCount"].isNull()) diff --git a/aegis/src/model/DescribeAttackAnalysisDataResult.cc b/aegis/src/model/DescribeAttackAnalysisDataResult.cc index 4eaa24baf..b3e8a3b65 100644 --- a/aegis/src/model/DescribeAttackAnalysisDataResult.cc +++ b/aegis/src/model/DescribeAttackAnalysisDataResult.cc @@ -35,10 +35,13 @@ DescribeAttackAnalysisDataResult::~DescribeAttackAnalysisDataResult() void DescribeAttackAnalysisDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); diff --git a/aegis/src/model/DescribeAutoDelConfigResult.cc b/aegis/src/model/DescribeAutoDelConfigResult.cc index 4f7a5a864..43f001ed3 100644 --- a/aegis/src/model/DescribeAutoDelConfigResult.cc +++ b/aegis/src/model/DescribeAutoDelConfigResult.cc @@ -35,10 +35,13 @@ DescribeAutoDelConfigResult::~DescribeAutoDelConfigResult() void DescribeAutoDelConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Days"].isNull()) days_ = std::stoi(value["Days"].asString()); diff --git a/aegis/src/model/DescribeBizStatSimpleQueryResultRequest.cc b/aegis/src/model/DescribeBizStatSimpleQueryResultRequest.cc new file mode 100644 index 000000000..0ffc7f39b --- /dev/null +++ b/aegis/src/model/DescribeBizStatSimpleQueryResultRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeBizStatSimpleQueryResultRequest; + +DescribeBizStatSimpleQueryResultRequest::DescribeBizStatSimpleQueryResultRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeBizStatSimpleQueryResult") +{} + +DescribeBizStatSimpleQueryResultRequest::~DescribeBizStatSimpleQueryResultRequest() +{} + +std::string DescribeBizStatSimpleQueryResultRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeBizStatSimpleQueryResultRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeBizStatSimpleQueryResultRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeBizStatSimpleQueryResultRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeBizStatSimpleQueryResultRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeBizStatSimpleQueryResultRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int DescribeBizStatSimpleQueryResultRequest::getCustomTimeRange()const +{ + return customTimeRange_; +} + +void DescribeBizStatSimpleQueryResultRequest::setCustomTimeRange(int customTimeRange) +{ + customTimeRange_ = customTimeRange; + setCoreParameter("CustomTimeRange", std::to_string(customTimeRange)); +} + +std::string DescribeBizStatSimpleQueryResultRequest::getCustomQuery()const +{ + return customQuery_; +} + +void DescribeBizStatSimpleQueryResultRequest::setCustomQuery(const std::string& customQuery) +{ + customQuery_ = customQuery; + setCoreParameter("CustomQuery", customQuery); +} + diff --git a/aegis/src/model/DescribeBizStatSimpleQueryResultResult.cc b/aegis/src/model/DescribeBizStatSimpleQueryResultResult.cc new file mode 100644 index 000000000..447b8d3dc --- /dev/null +++ b/aegis/src/model/DescribeBizStatSimpleQueryResultResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeBizStatSimpleQueryResultResult::DescribeBizStatSimpleQueryResultResult() : + ServiceResult() +{} + +DescribeBizStatSimpleQueryResultResult::DescribeBizStatSimpleQueryResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBizStatSimpleQueryResultResult::~DescribeBizStatSimpleQueryResultResult() +{} + +void DescribeBizStatSimpleQueryResultResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTrendDataArr = value["TrendDataArr"]["BizStatTrendDOS"]; + for (auto value : allTrendDataArr) + { + BizStatTrendDOS trendDataArrObject; + if(!value["BizName"].isNull()) + trendDataArrObject.bizName = value["BizName"].asString(); + auto allValueArray = value["ValueArray"]["IntegerItem"]; + for (auto value : allValueArray) + trendDataArrObject.valueArray.push_back(value.asString()); + trendDataArr_.push_back(trendDataArrObject); + } + auto allDataTimeArray = value["DataTimeArray"]["StringItem"]; + for (const auto &item : allDataTimeArray) + dataTimeArray_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeBizStatSimpleQueryResultResult::getTrendDataArr()const +{ + return trendDataArr_; +} + +std::vector DescribeBizStatSimpleQueryResultResult::getDataTimeArray()const +{ + return dataTimeArray_; +} + +bool DescribeBizStatSimpleQueryResultResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeBuySummaryResult.cc b/aegis/src/model/DescribeBuySummaryResult.cc index 3d1f379e0..f43f3e295 100644 --- a/aegis/src/model/DescribeBuySummaryResult.cc +++ b/aegis/src/model/DescribeBuySummaryResult.cc @@ -35,10 +35,13 @@ DescribeBuySummaryResult::~DescribeBuySummaryResult() void DescribeBuySummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto buySummaryNode = value["BuySummary"]; if(!buySummaryNode["ExpireDateTimestamp"].isNull()) diff --git a/aegis/src/model/DescribeCanTrySasResult.cc b/aegis/src/model/DescribeCanTrySasResult.cc index 12f7235eb..4ee068d18 100644 --- a/aegis/src/model/DescribeCanTrySasResult.cc +++ b/aegis/src/model/DescribeCanTrySasResult.cc @@ -35,10 +35,13 @@ DescribeCanTrySasResult::~DescribeCanTrySasResult() void DescribeCanTrySasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CanTry"].isNull()) canTry_ = std::stoi(value["CanTry"].asString()); diff --git a/aegis/src/model/DescribeCanUpgradeSasResult.cc b/aegis/src/model/DescribeCanUpgradeSasResult.cc index fbc590cc8..f78ef81f4 100644 --- a/aegis/src/model/DescribeCanUpgradeSasResult.cc +++ b/aegis/src/model/DescribeCanUpgradeSasResult.cc @@ -35,10 +35,13 @@ DescribeCanUpgradeSasResult::~DescribeCanUpgradeSasResult() void DescribeCanUpgradeSasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/aegis/src/model/DescribeChartDataRequest.cc b/aegis/src/model/DescribeChartDataRequest.cc new file mode 100644 index 000000000..736e0146b --- /dev/null +++ b/aegis/src/model/DescribeChartDataRequest.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 + +using AlibabaCloud::Aegis::Model::DescribeChartDataRequest; + +DescribeChartDataRequest::DescribeChartDataRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeChartData") +{} + +DescribeChartDataRequest::~DescribeChartDataRequest() +{} + +long DescribeChartDataRequest::getTimeEnd()const +{ + return timeEnd_; +} + +void DescribeChartDataRequest::setTimeEnd(long timeEnd) +{ + timeEnd_ = timeEnd; + setCoreParameter("TimeEnd", std::to_string(timeEnd)); +} + +std::string DescribeChartDataRequest::getRangeUnit()const +{ + return rangeUnit_; +} + +void DescribeChartDataRequest::setRangeUnit(const std::string& rangeUnit) +{ + rangeUnit_ = rangeUnit; + setCoreParameter("RangeUnit", rangeUnit); +} + +std::string DescribeChartDataRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeChartDataRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeChartDataRequest::getCharId()const +{ + return charId_; +} + +void DescribeChartDataRequest::setCharId(const std::string& charId) +{ + charId_ = charId; + setCoreParameter("CharId", charId); +} + +std::string DescribeChartDataRequest::getLang()const +{ + return lang_; +} + +void DescribeChartDataRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeChartDataRequest::getTimeStart()const +{ + return timeStart_; +} + +void DescribeChartDataRequest::setTimeStart(long timeStart) +{ + timeStart_ = timeStart; + setCoreParameter("TimeStart", std::to_string(timeStart)); +} + diff --git a/aegis/src/model/DescribeChartDataResult.cc b/aegis/src/model/DescribeChartDataResult.cc new file mode 100644 index 000000000..4bafb3c16 --- /dev/null +++ b/aegis/src/model/DescribeChartDataResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeChartDataResult::DescribeChartDataResult() : + ServiceResult() +{} + +DescribeChartDataResult::DescribeChartDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeChartDataResult::~DescribeChartDataResult() +{} + +void DescribeChartDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allMultipleData = value["MultipleData"]["MultipleDataItem"]; + for (auto value : allMultipleData) + { + MultipleDataItem multipleDataObject; + if(!value["Type"].isNull()) + multipleDataObject.type = value["Type"].asString(); + if(!value["Name"].isNull()) + multipleDataObject.name = value["Name"].asString(); + if(!value["Color"].isNull()) + multipleDataObject.color = value["Color"].asString(); + if(!value["Value"].isNull()) + multipleDataObject.value = std::stol(value["Value"].asString()); + multipleData_.push_back(multipleDataObject); + } + auto coordinateDataNode = value["CoordinateData"]; + auto allYAxisList = value["YAxisList"]["YAxisDo"]; + for (auto value : allYAxisList) + { + CoordinateData::YAxisDo yAxisDoObject; + if(!value["Type"].isNull()) + yAxisDoObject.type = value["Type"].asString(); + if(!value["Name"].isNull()) + yAxisDoObject.name = value["Name"].asString(); + if(!value["Color"].isNull()) + yAxisDoObject.color = value["Color"].asString(); + auto allValue = value["Value"]["LongItem"]; + for (auto value : allValue) + yAxisDoObject.value.push_back(value.asString()); + coordinateData_.yAxisList.push_back(yAxisDoObject); + } + auto allXAxis = coordinateDataNode["XAxis"]["StringItem"]; + for (auto value : allXAxis) + coordinateData_.xAxis.push_back(value.asString()); + auto singleDataNode = value["SingleData"]; + if(!singleDataNode["Type"].isNull()) + singleData_.type = singleDataNode["Type"].asString(); + if(!singleDataNode["Name"].isNull()) + singleData_.name = singleDataNode["Name"].asString(); + if(!singleDataNode["Color"].isNull()) + singleData_.color = singleDataNode["Color"].asString(); + if(!singleDataNode["Value"].isNull()) + singleData_.value = std::stol(singleDataNode["Value"].asString()); + if(!value["ChartType"].isNull()) + chartType_ = value["ChartType"].asString(); + if(!value["ChartDataType"].isNull()) + chartDataType_ = value["ChartDataType"].asString(); + +} + +std::string DescribeChartDataResult::getChartDataType()const +{ + return chartDataType_; +} + +std::vector DescribeChartDataResult::getMultipleData()const +{ + return multipleData_; +} + +DescribeChartDataResult::CoordinateData DescribeChartDataResult::getCoordinateData()const +{ + return coordinateData_; +} + +std::string DescribeChartDataResult::getChartType()const +{ + return chartType_; +} + +DescribeChartDataResult::SingleData DescribeChartDataResult::getSingleData()const +{ + return singleData_; +} + diff --git a/aegis/src/model/DescribeChartListRequest.cc b/aegis/src/model/DescribeChartListRequest.cc new file mode 100644 index 000000000..79e5eee5a --- /dev/null +++ b/aegis/src/model/DescribeChartListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeChartListRequest; + +DescribeChartListRequest::DescribeChartListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeChartList") +{} + +DescribeChartListRequest::~DescribeChartListRequest() +{} + +std::string DescribeChartListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeChartListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeChartListRequest::getProjectCode()const +{ + return projectCode_; +} + +void DescribeChartListRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setCoreParameter("ProjectCode", projectCode); +} + +std::string DescribeChartListRequest::getLang()const +{ + return lang_; +} + +void DescribeChartListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/DescribeChartListResult.cc b/aegis/src/model/DescribeChartListResult.cc new file mode 100644 index 000000000..838d77428 --- /dev/null +++ b/aegis/src/model/DescribeChartListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeChartListResult::DescribeChartListResult() : + ServiceResult() +{} + +DescribeChartListResult::DescribeChartListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeChartListResult::~DescribeChartListResult() +{} + +void DescribeChartListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allChartList = value["ChartList"]["chart"]; + for (auto value : allChartList) + { + Chart chartListObject; + if(!value["ChartId"].isNull()) + chartListObject.chartId = value["ChartId"].asString(); + if(!value["ChartName"].isNull()) + chartListObject.chartName = value["ChartName"].asString(); + if(!value["BusinessType"].isNull()) + chartListObject.businessType = value["BusinessType"].asString(); + if(!value["BusinessName"].isNull()) + chartListObject.businessName = value["BusinessName"].asString(); + if(!value["ChartType"].isNull()) + chartListObject.chartType = value["ChartType"].asString(); + chartList_.push_back(chartListObject); + } + +} + +std::vector DescribeChartListResult::getChartList()const +{ + return chartList_; +} + diff --git a/aegis/src/model/DescribeCheckWarningCountRequest.cc b/aegis/src/model/DescribeCheckWarningCountRequest.cc new file mode 100644 index 000000000..fcfaf5f5e --- /dev/null +++ b/aegis/src/model/DescribeCheckWarningCountRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeCheckWarningCountRequest; + +DescribeCheckWarningCountRequest::DescribeCheckWarningCountRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeCheckWarningCount") +{} + +DescribeCheckWarningCountRequest::~DescribeCheckWarningCountRequest() +{} + +std::string DescribeCheckWarningCountRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCheckWarningCountRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeCheckWarningCountRequest::getLang()const +{ + return lang_; +} + +void DescribeCheckWarningCountRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeCheckWarningCountRequest::getRiskId()const +{ + return riskId_; +} + +void DescribeCheckWarningCountRequest::setRiskId(long riskId) +{ + riskId_ = riskId; + setCoreParameter("RiskId", std::to_string(riskId)); +} + +long DescribeCheckWarningCountRequest::getCheckId()const +{ + return checkId_; +} + +void DescribeCheckWarningCountRequest::setCheckId(long checkId) +{ + checkId_ = checkId; + setCoreParameter("CheckId", std::to_string(checkId)); +} + +int DescribeCheckWarningCountRequest::getStatus()const +{ + return status_; +} + +void DescribeCheckWarningCountRequest::setStatus(int status) +{ + status_ = status; + setCoreParameter("Status", std::to_string(status)); +} + diff --git a/aegis/src/model/DescribeCheckWarningCountResult.cc b/aegis/src/model/DescribeCheckWarningCountResult.cc new file mode 100644 index 000000000..6a30cc5b8 --- /dev/null +++ b/aegis/src/model/DescribeCheckWarningCountResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeCheckWarningCountResult::DescribeCheckWarningCountResult() : + ServiceResult() +{} + +DescribeCheckWarningCountResult::DescribeCheckWarningCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCheckWarningCountResult::~DescribeCheckWarningCountResult() +{} + +void DescribeCheckWarningCountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int DescribeCheckWarningCountResult::getCount()const +{ + return count_; +} + diff --git a/aegis/src/model/DescribeCheckWarningDetailResult.cc b/aegis/src/model/DescribeCheckWarningDetailResult.cc index dece93880..47b8410ac 100644 --- a/aegis/src/model/DescribeCheckWarningDetailResult.cc +++ b/aegis/src/model/DescribeCheckWarningDetailResult.cc @@ -35,10 +35,13 @@ DescribeCheckWarningDetailResult::~DescribeCheckWarningDetailResult() void DescribeCheckWarningDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CheckId"].isNull()) checkId_ = std::stol(value["CheckId"].asString()); diff --git a/aegis/src/model/DescribeCheckWarningSummaryResult.cc b/aegis/src/model/DescribeCheckWarningSummaryResult.cc index b5bfdfe9e..0d218a961 100644 --- a/aegis/src/model/DescribeCheckWarningSummaryResult.cc +++ b/aegis/src/model/DescribeCheckWarningSummaryResult.cc @@ -35,10 +35,13 @@ DescribeCheckWarningSummaryResult::~DescribeCheckWarningSummaryResult() void DescribeCheckWarningSummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWarningSummarys = value["WarningSummarys"]["WarningSummary"]; for (auto value : allWarningSummarys) diff --git a/aegis/src/model/DescribeCheckWarningsResult.cc b/aegis/src/model/DescribeCheckWarningsResult.cc index 1bdff939d..67602ab8e 100644 --- a/aegis/src/model/DescribeCheckWarningsResult.cc +++ b/aegis/src/model/DescribeCheckWarningsResult.cc @@ -35,10 +35,13 @@ DescribeCheckWarningsResult::~DescribeCheckWarningsResult() void DescribeCheckWarningsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCheckWarnings = value["CheckWarnings"]["CheckWarning"]; for (auto value : allCheckWarnings) @@ -58,6 +61,8 @@ void DescribeCheckWarningsResult::parse(const std::string &payload) checkWarningsObject.type = value["Type"].asString(); if(!value["Status"].isNull()) checkWarningsObject.status = std::stoi(value["Status"].asString()); + if(!value["Reason"].isNull()) + checkWarningsObject.reason = value["Reason"].asString(); checkWarnings_.push_back(checkWarningsObject); } if(!value["Count"].isNull()) diff --git a/aegis/src/model/DescribeConcernNecessityResult.cc b/aegis/src/model/DescribeConcernNecessityResult.cc index c08cf2a51..bf70ab8bb 100644 --- a/aegis/src/model/DescribeConcernNecessityResult.cc +++ b/aegis/src/model/DescribeConcernNecessityResult.cc @@ -35,10 +35,13 @@ DescribeConcernNecessityResult::~DescribeConcernNecessityResult() void DescribeConcernNecessityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConcernNecessity = value["ConcernNecessity"]["Necessity"]; for (const auto &item : allConcernNecessity) diff --git a/aegis/src/model/DescribeCustomizeReportChartDataRequest.cc b/aegis/src/model/DescribeCustomizeReportChartDataRequest.cc new file mode 100644 index 000000000..dd136f411 --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportChartDataRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeCustomizeReportChartDataRequest; + +DescribeCustomizeReportChartDataRequest::DescribeCustomizeReportChartDataRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportChartData") +{} + +DescribeCustomizeReportChartDataRequest::~DescribeCustomizeReportChartDataRequest() +{} + +std::string DescribeCustomizeReportChartDataRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCustomizeReportChartDataRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeCustomizeReportChartDataRequest::getReportId()const +{ + return reportId_; +} + +void DescribeCustomizeReportChartDataRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string DescribeCustomizeReportChartDataRequest::getChartIds()const +{ + return chartIds_; +} + +void DescribeCustomizeReportChartDataRequest::setChartIds(const std::string& chartIds) +{ + chartIds_ = chartIds; + setCoreParameter("ChartIds", chartIds); +} + +std::string DescribeCustomizeReportChartDataRequest::getLang()const +{ + return lang_; +} + +void DescribeCustomizeReportChartDataRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/DescribeCustomizeReportChartDataResult.cc b/aegis/src/model/DescribeCustomizeReportChartDataResult.cc new file mode 100644 index 000000000..87b1d38ed --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportChartDataResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeCustomizeReportChartDataResult::DescribeCustomizeReportChartDataResult() : + ServiceResult() +{} + +DescribeCustomizeReportChartDataResult::DescribeCustomizeReportChartDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomizeReportChartDataResult::~DescribeCustomizeReportChartDataResult() +{} + +void DescribeCustomizeReportChartDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allChartList = value["ChartList"]["chart"]; + for (auto value : allChartList) + { + Chart chartListObject; + if(!value["ChartId"].isNull()) + chartListObject.chartId = value["ChartId"].asString(); + if(!value["ChartName"].isNull()) + chartListObject.chartName = value["ChartName"].asString(); + if(!value["Type"].isNull()) + chartListObject.type = value["Type"].asString(); + auto allDataList = value["DataList"]["data"]; + for (auto value : allDataList) + { + Chart::Data dataListObject; + if(!value["Name"].isNull()) + dataListObject.name = value["Name"].asString(); + if(!value["Count"].isNull()) + dataListObject.count = std::stoi(value["Count"].asString()); + if(!value["Old"].isNull()) + dataListObject.old = std::stoi(value["Old"].asString()); + auto allChartDataList = value["ChartDataList"]["chartData"]; + for (auto value : allChartDataList) + { + Chart::Data::ChartData chartDataListObject; + if(!value["Name"].isNull()) + chartDataListObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + chartDataListObject.value = std::stoi(value["Value"].asString()); + dataListObject.chartDataList.push_back(chartDataListObject); + } + chartListObject.dataList.push_back(dataListObject); + } + chartList_.push_back(chartListObject); + } + +} + +std::vector DescribeCustomizeReportChartDataResult::getChartList()const +{ + return chartList_; +} + diff --git a/aegis/src/model/DescribeCustomizeReportChartListRequest.cc b/aegis/src/model/DescribeCustomizeReportChartListRequest.cc new file mode 100644 index 000000000..dd7c4886d --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportChartListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeCustomizeReportChartListRequest; + +DescribeCustomizeReportChartListRequest::DescribeCustomizeReportChartListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportChartList") +{} + +DescribeCustomizeReportChartListRequest::~DescribeCustomizeReportChartListRequest() +{} + +std::string DescribeCustomizeReportChartListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCustomizeReportChartListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeCustomizeReportChartListRequest::getLang()const +{ + return lang_; +} + +void DescribeCustomizeReportChartListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/DescribeCustomizeReportChartListResult.cc b/aegis/src/model/DescribeCustomizeReportChartListResult.cc new file mode 100644 index 000000000..126c24602 --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportChartListResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeCustomizeReportChartListResult::DescribeCustomizeReportChartListResult() : + ServiceResult() +{} + +DescribeCustomizeReportChartListResult::DescribeCustomizeReportChartListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomizeReportChartListResult::~DescribeCustomizeReportChartListResult() +{} + +void DescribeCustomizeReportChartListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allChartList = value["ChartList"]["chart"]; + for (auto value : allChartList) + { + Chart chartListObject; + if(!value["ChartId"].isNull()) + chartListObject.chartId = value["ChartId"].asString(); + if(!value["ChartName"].isNull()) + chartListObject.chartName = value["ChartName"].asString(); + if(!value["Area"].isNull()) + chartListObject.area = value["Area"].asString(); + chartList_.push_back(chartListObject); + } + +} + +std::vector DescribeCustomizeReportChartListResult::getChartList()const +{ + return chartList_; +} + diff --git a/aegis/src/model/DescribeCustomizeReportConfigDetailRequest.cc b/aegis/src/model/DescribeCustomizeReportConfigDetailRequest.cc new file mode 100644 index 000000000..8b51c947c --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportConfigDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeCustomizeReportConfigDetailRequest; + +DescribeCustomizeReportConfigDetailRequest::DescribeCustomizeReportConfigDetailRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportConfigDetail") +{} + +DescribeCustomizeReportConfigDetailRequest::~DescribeCustomizeReportConfigDetailRequest() +{} + +std::string DescribeCustomizeReportConfigDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCustomizeReportConfigDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeCustomizeReportConfigDetailRequest::getReportId()const +{ + return reportId_; +} + +void DescribeCustomizeReportConfigDetailRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string DescribeCustomizeReportConfigDetailRequest::getLang()const +{ + return lang_; +} + +void DescribeCustomizeReportConfigDetailRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/DescribeCustomizeReportConfigDetailResult.cc b/aegis/src/model/DescribeCustomizeReportConfigDetailResult.cc new file mode 100644 index 000000000..1edde6dee --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportConfigDetailResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeCustomizeReportConfigDetailResult::DescribeCustomizeReportConfigDetailResult() : + ServiceResult() +{} + +DescribeCustomizeReportConfigDetailResult::DescribeCustomizeReportConfigDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomizeReportConfigDetailResult::~DescribeCustomizeReportConfigDetailResult() +{} + +void DescribeCustomizeReportConfigDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ReportId"].isNull()) + reportId_ = std::stol(value["ReportId"].asString()); + if(!value["Title"].isNull()) + title_ = value["Title"].asString(); + if(!value["ReportType"].isNull()) + reportType_ = value["ReportType"].asString(); + if(!value["ReportStatus"].isNull()) + reportStatus_ = value["ReportStatus"].asString(); + if(!value["SendTime"].isNull()) + sendTime_ = value["SendTime"].asString(); + if(!value["ReportSendType"].isNull()) + reportSendType_ = value["ReportSendType"].asString(); + if(!value["ReportStartDate"].isNull()) + reportStartDate_ = value["ReportStartDate"].asString(); + if(!value["ReportEndDate"].isNull()) + reportEndDate_ = value["ReportEndDate"].asString(); + if(!value["Recipients"].isNull()) + recipients_ = value["Recipients"].asString(); + if(!value["ChartIds"].isNull()) + chartIds_ = value["ChartIds"].asString(); + if(!value["IsDefault"].isNull()) + isDefault_ = std::stoi(value["IsDefault"].asString()); + if(!value["ReportLang"].isNull()) + reportLang_ = value["ReportLang"].asString(); + +} + +int DescribeCustomizeReportConfigDetailResult::getIsDefault()const +{ + return isDefault_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getSendTime()const +{ + return sendTime_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getChartIds()const +{ + return chartIds_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getRecipients()const +{ + return recipients_; +} + +long DescribeCustomizeReportConfigDetailResult::getReportId()const +{ + return reportId_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getTitle()const +{ + return title_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getReportStatus()const +{ + return reportStatus_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getReportStartDate()const +{ + return reportStartDate_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getReportType()const +{ + return reportType_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getReportLang()const +{ + return reportLang_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getReportSendType()const +{ + return reportSendType_; +} + +std::string DescribeCustomizeReportConfigDetailResult::getReportEndDate()const +{ + return reportEndDate_; +} + diff --git a/aegis/src/model/DescribeCustomizeReportListRequest.cc b/aegis/src/model/DescribeCustomizeReportListRequest.cc new file mode 100644 index 000000000..142e27d01 --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeCustomizeReportListRequest; + +DescribeCustomizeReportListRequest::DescribeCustomizeReportListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportList") +{} + +DescribeCustomizeReportListRequest::~DescribeCustomizeReportListRequest() +{} + +int DescribeCustomizeReportListRequest::getReportType()const +{ + return reportType_; +} + +void DescribeCustomizeReportListRequest::setReportType(int reportType) +{ + reportType_ = reportType; + setCoreParameter("ReportType", std::to_string(reportType)); +} + +std::string DescribeCustomizeReportListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCustomizeReportListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeCustomizeReportListRequest::getLang()const +{ + return lang_; +} + +void DescribeCustomizeReportListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int DescribeCustomizeReportListRequest::getReportStatus()const +{ + return reportStatus_; +} + +void DescribeCustomizeReportListRequest::setReportStatus(int reportStatus) +{ + reportStatus_ = reportStatus; + setCoreParameter("ReportStatus", std::to_string(reportStatus)); +} + +std::string DescribeCustomizeReportListRequest::getTitle()const +{ + return title_; +} + +void DescribeCustomizeReportListRequest::setTitle(const std::string& title) +{ + title_ = title; + setCoreParameter("Title", title); +} + diff --git a/aegis/src/model/DescribeCustomizeReportListResult.cc b/aegis/src/model/DescribeCustomizeReportListResult.cc new file mode 100644 index 000000000..33fe0563b --- /dev/null +++ b/aegis/src/model/DescribeCustomizeReportListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeCustomizeReportListResult::DescribeCustomizeReportListResult() : + ServiceResult() +{} + +DescribeCustomizeReportListResult::DescribeCustomizeReportListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomizeReportListResult::~DescribeCustomizeReportListResult() +{} + +void DescribeCustomizeReportListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allReportList = value["ReportList"]["Report"]; + for (auto value : allReportList) + { + Report reportListObject; + if(!value["ReportId"].isNull()) + reportListObject.reportId = std::stol(value["ReportId"].asString()); + if(!value["Title"].isNull()) + reportListObject.title = value["Title"].asString(); + if(!value["ReportType"].isNull()) + reportListObject.reportType = std::stoi(value["ReportType"].asString()); + if(!value["ReportStatus"].isNull()) + reportListObject.reportStatus = value["ReportStatus"].asString(); + if(!value["IsDefault"].isNull()) + reportListObject.isDefault = value["IsDefault"].asString(); + reportList_.push_back(reportListObject); + } + +} + +std::vector DescribeCustomizeReportListResult::getReportList()const +{ + return reportList_; +} + diff --git a/aegis/src/model/DescribeDataSourceRequest.cc b/aegis/src/model/DescribeDataSourceRequest.cc index 9944e255d..f0f8206f1 100644 --- a/aegis/src/model/DescribeDataSourceRequest.cc +++ b/aegis/src/model/DescribeDataSourceRequest.cc @@ -25,6 +25,17 @@ DescribeDataSourceRequest::DescribeDataSourceRequest() : DescribeDataSourceRequest::~DescribeDataSourceRequest() {} +std::string DescribeDataSourceRequest::getConfigType()const +{ + return configType_; +} + +void DescribeDataSourceRequest::setConfigType(const std::string& configType) +{ + configType_ = configType; + setCoreParameter("ConfigType", configType); +} + std::string DescribeDataSourceRequest::getSourceIp()const { return sourceIp_; @@ -36,28 +47,6 @@ void DescribeDataSourceRequest::setSourceIp(const std::string& sourceIp) setCoreParameter("SourceIp", sourceIp); } -std::string DescribeDataSourceRequest::getDescription()const -{ - return description_; -} - -void DescribeDataSourceRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -long DescribeDataSourceRequest::getId()const -{ - return id_; -} - -void DescribeDataSourceRequest::setId(long id) -{ - id_ = id; - setCoreParameter("Id", std::to_string(id)); -} - std::string DescribeDataSourceRequest::getLang()const { return lang_; @@ -69,14 +58,3 @@ void DescribeDataSourceRequest::setLang(const std::string& lang) setCoreParameter("Lang", lang); } -std::string DescribeDataSourceRequest::getGroupName()const -{ - return groupName_; -} - -void DescribeDataSourceRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setCoreParameter("GroupName", groupName); -} - diff --git a/aegis/src/model/DescribeDataSourceResult.cc b/aegis/src/model/DescribeDataSourceResult.cc index af294597d..915fc4de1 100644 --- a/aegis/src/model/DescribeDataSourceResult.cc +++ b/aegis/src/model/DescribeDataSourceResult.cc @@ -35,10 +35,13 @@ DescribeDataSourceResult::~DescribeDataSourceResult() void DescribeDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMetaDatas = value["MetaDatas"]["Data"]; for (auto value : allMetaDatas) @@ -48,6 +51,8 @@ void DescribeDataSourceResult::parse(const std::string &payload) metaDatasObject.dataSourceId = std::stoi(value["DataSourceId"].asString()); if(!value["DateSourceName"].isNull()) metaDatasObject.dateSourceName = value["DateSourceName"].asString(); + if(!value["DataSourceName"].isNull()) + metaDatasObject.dataSourceName = value["DataSourceName"].asString(); if(!value["Description"].isNull()) metaDatasObject.description = value["Description"].asString(); auto allMetaDataFields = value["MetaDataFields"]["MetaDataField"]; diff --git a/aegis/src/model/DescribeDefenceThreadResult.cc b/aegis/src/model/DescribeDefenceThreadResult.cc index d691d0cd8..1a8cba898 100644 --- a/aegis/src/model/DescribeDefenceThreadResult.cc +++ b/aegis/src/model/DescribeDefenceThreadResult.cc @@ -35,10 +35,13 @@ DescribeDefenceThreadResult::~DescribeDefenceThreadResult() void DescribeDefenceThreadResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDefenceAaggregatCountArray = value["DefenceAaggregatCountArray"]["IntegerItem"]; for (const auto &item : allDefenceAaggregatCountArray) diff --git a/aegis/src/model/DescribeDingTalkResult.cc b/aegis/src/model/DescribeDingTalkResult.cc index 4ee5a96eb..c18d8cd67 100644 --- a/aegis/src/model/DescribeDingTalkResult.cc +++ b/aegis/src/model/DescribeDingTalkResult.cc @@ -35,15 +35,18 @@ DescribeDingTalkResult::~DescribeDingTalkResult() void DescribeDingTalkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - auto allActionList = value["ActionList"]["ActionListItem"]; + auto allActionList = value["ActionList"]["ActionListArr"]; for (auto value : allActionList) { - ActionListItem actionListObject; + ActionListArr actionListObject; if(!value["GmtModified"].isNull()) actionListObject.gmtModified = std::stol(value["GmtModified"].asString()); if(!value["Id"].isNull()) @@ -75,7 +78,7 @@ DescribeDingTalkResult::PageInfo DescribeDingTalkResult::getPageInfo()const return pageInfo_; } -std::vector DescribeDingTalkResult::getActionList()const +std::vector DescribeDingTalkResult::getActionList()const { return actionList_; } diff --git a/aegis/src/model/DescribeEcsStsStatusResult.cc b/aegis/src/model/DescribeEcsStsStatusResult.cc index 22033396d..52e038d13 100644 --- a/aegis/src/model/DescribeEcsStsStatusResult.cc +++ b/aegis/src/model/DescribeEcsStsStatusResult.cc @@ -35,10 +35,13 @@ DescribeEcsStsStatusResult::~DescribeEcsStsStatusResult() void DescribeEcsStsStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Grant"].isNull()) grant_ = value["Grant"].asString() == "true"; diff --git a/aegis/src/model/DescribeEmgNoticeResult.cc b/aegis/src/model/DescribeEmgNoticeResult.cc index 5b2e30ae7..d9b543c60 100644 --- a/aegis/src/model/DescribeEmgNoticeResult.cc +++ b/aegis/src/model/DescribeEmgNoticeResult.cc @@ -35,10 +35,13 @@ DescribeEmgNoticeResult::~DescribeEmgNoticeResult() void DescribeEmgNoticeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEmgVulGroupList = value["EmgVulGroupList"]["EmgVulGroup"]; for (auto value : allEmgVulGroupList) diff --git a/aegis/src/model/DescribeEmgUserAgreementResult.cc b/aegis/src/model/DescribeEmgUserAgreementResult.cc index 9a9a37cc7..39d19e68f 100644 --- a/aegis/src/model/DescribeEmgUserAgreementResult.cc +++ b/aegis/src/model/DescribeEmgUserAgreementResult.cc @@ -35,10 +35,13 @@ DescribeEmgUserAgreementResult::~DescribeEmgUserAgreementResult() void DescribeEmgUserAgreementResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Auth"].isNull()) auth_ = value["Auth"].asString() == "true"; diff --git a/aegis/src/model/DescribeEmgVulGroupResult.cc b/aegis/src/model/DescribeEmgVulGroupResult.cc index a51054841..5f93bcc4d 100644 --- a/aegis/src/model/DescribeEmgVulGroupResult.cc +++ b/aegis/src/model/DescribeEmgVulGroupResult.cc @@ -35,10 +35,13 @@ DescribeEmgVulGroupResult::~DescribeEmgVulGroupResult() void DescribeEmgVulGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEmgVulGroupList = value["EmgVulGroupList"]["EmgVulGroup"]; for (auto value : allEmgVulGroupList) @@ -58,6 +61,8 @@ void DescribeEmgVulGroupResult::parse(const std::string &payload) emgVulGroupListObject.type = value["Type"].asString(); if(!value["Status"].isNull()) emgVulGroupListObject.status = std::stoi(value["Status"].asString()); + if(!value["Progress"].isNull()) + emgVulGroupListObject.progress = std::stoi(value["Progress"].asString()); emgVulGroupList_.push_back(emgVulGroupListObject); } if(!value["TotalCount"].isNull()) diff --git a/aegis/src/model/DescribeEntityListRequest.cc b/aegis/src/model/DescribeEntityListRequest.cc new file mode 100644 index 000000000..3d868bd8e --- /dev/null +++ b/aegis/src/model/DescribeEntityListRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeEntityListRequest; + +DescribeEntityListRequest::DescribeEntityListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeEntityList") +{} + +DescribeEntityListRequest::~DescribeEntityListRequest() +{} + +std::string DescribeEntityListRequest::getOs()const +{ + return os_; +} + +void DescribeEntityListRequest::setOs(const std::string& os) +{ + os_ = os; + setCoreParameter("Os", os); +} + +std::string DescribeEntityListRequest::getTagIdList()const +{ + return tagIdList_; +} + +void DescribeEntityListRequest::setTagIdList(const std::string& tagIdList) +{ + tagIdList_ = tagIdList; + setCoreParameter("TagIdList", tagIdList); +} + +long DescribeEntityListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeEntityListRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +std::string DescribeEntityListRequest::getHealth()const +{ + return health_; +} + +void DescribeEntityListRequest::setHealth(const std::string& health) +{ + health_ = health; + setCoreParameter("Health", health); +} + +int DescribeEntityListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeEntityListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeEntityListRequest::getRemark()const +{ + return remark_; +} + +void DescribeEntityListRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string DescribeEntityListRequest::getTrojan()const +{ + return trojan_; +} + +void DescribeEntityListRequest::setTrojan(const std::string& trojan) +{ + trojan_ = trojan; + setCoreParameter("Trojan", trojan); +} + +std::string DescribeEntityListRequest::getSuspicious()const +{ + return suspicious_; +} + +void DescribeEntityListRequest::setSuspicious(const std::string& suspicious) +{ + suspicious_ = suspicious; + setCoreParameter("Suspicious", suspicious); +} + +std::string DescribeEntityListRequest::getRegionNo()const +{ + return regionNo_; +} + +void DescribeEntityListRequest::setRegionNo(const std::string& regionNo) +{ + regionNo_ = regionNo; + setCoreParameter("RegionNo", regionNo); +} + +std::string DescribeEntityListRequest::getPatch()const +{ + return patch_; +} + +void DescribeEntityListRequest::setPatch(const std::string& patch) +{ + patch_ = patch; + setCoreParameter("Patch", patch); +} + +std::string DescribeEntityListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeEntityListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeEntityListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEntityListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeEntityListRequest::getFrom()const +{ + return from_; +} + +void DescribeEntityListRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +std::string DescribeEntityListRequest::getAccount()const +{ + return account_; +} + +void DescribeEntityListRequest::setAccount(const std::string& account) +{ + account_ = account; + setCoreParameter("Account", account); +} + +std::string DescribeEntityListRequest::getStatus()const +{ + return status_; +} + +void DescribeEntityListRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/aegis/src/model/DescribeEntityListResult.cc b/aegis/src/model/DescribeEntityListResult.cc new file mode 100644 index 000000000..7c6e7fda7 --- /dev/null +++ b/aegis/src/model/DescribeEntityListResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeEntityListResult::DescribeEntityListResult() : + ServiceResult() +{} + +DescribeEntityListResult::DescribeEntityListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEntityListResult::~DescribeEntityListResult() +{} + +void DescribeEntityListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allEntityList = value["EntityList"]["Entity"]; + for (auto value : allEntityList) + { + Entity entityListObject; + if(!value["AegisOnline"].isNull()) + entityListObject.aegisOnline = value["AegisOnline"].asString() == "true"; + if(!value["Flag"].isNull()) + entityListObject.flag = std::stoi(value["Flag"].asString()); + if(!value["Os"].isNull()) + entityListObject.os = value["Os"].asString(); + if(!value["InstanceName"].isNull()) + entityListObject.instanceName = value["InstanceName"].asString(); + if(!value["AegisVersion"].isNull()) + entityListObject.aegisVersion = value["AegisVersion"].asString(); + if(!value["GroupId"].isNull()) + entityListObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["Ip"].isNull()) + entityListObject.ip = value["Ip"].asString(); + if(!value["ClientStatus"].isNull()) + entityListObject.clientStatus = value["ClientStatus"].asString() == "true"; + if(!value["Region"].isNull()) + entityListObject.region = value["Region"].asString(); + if(!value["BuyVersion"].isNull()) + entityListObject.buyVersion = value["BuyVersion"].asString(); + if(!value["Uuid"].isNull()) + entityListObject.uuid = value["Uuid"].asString(); + entityList_.push_back(entityListObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeEntityListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEntityListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeEntityListResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeEntityListResult::getEntityList()const +{ + return entityList_; +} + diff --git a/aegis/src/model/DescribeEventCountCurveResult.cc b/aegis/src/model/DescribeEventCountCurveResult.cc index 24242abee..cc4008df5 100644 --- a/aegis/src/model/DescribeEventCountCurveResult.cc +++ b/aegis/src/model/DescribeEventCountCurveResult.cc @@ -35,10 +35,13 @@ DescribeEventCountCurveResult::~DescribeEventCountCurveResult() void DescribeEventCountCurveResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto curveDataNode = value["CurveData"]; auto allItems = value["Items"]["Item"]; diff --git a/aegis/src/model/DescribeEventLevelCountResult.cc b/aegis/src/model/DescribeEventLevelCountResult.cc index af2755185..7d2185620 100644 --- a/aegis/src/model/DescribeEventLevelCountResult.cc +++ b/aegis/src/model/DescribeEventLevelCountResult.cc @@ -35,10 +35,13 @@ DescribeEventLevelCountResult::~DescribeEventLevelCountResult() void DescribeEventLevelCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto eventLevelsNode = value["EventLevels"]; if(!eventLevelsNode["Serious"].isNull()) diff --git a/aegis/src/model/DescribeExportInfoResult.cc b/aegis/src/model/DescribeExportInfoResult.cc index 6102fbc2f..cf347f807 100644 --- a/aegis/src/model/DescribeExportInfoResult.cc +++ b/aegis/src/model/DescribeExportInfoResult.cc @@ -35,10 +35,13 @@ DescribeExportInfoResult::~DescribeExportInfoResult() void DescribeExportInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["FileName"].isNull()) fileName_ = value["FileName"].asString(); diff --git a/aegis/src/model/DescribeFilterFieldsResult.cc b/aegis/src/model/DescribeFilterFieldsResult.cc index 08dcf93c6..f8eb6f781 100644 --- a/aegis/src/model/DescribeFilterFieldsResult.cc +++ b/aegis/src/model/DescribeFilterFieldsResult.cc @@ -35,10 +35,13 @@ DescribeFilterFieldsResult::~DescribeFilterFieldsResult() void DescribeFilterFieldsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogFilterList = value["LogFilterList"]["LogFilterListItem"]; for (auto value : allLogFilterList) diff --git a/aegis/src/model/DescribeGrayFuncRequest.cc b/aegis/src/model/DescribeGrayFuncRequest.cc new file mode 100644 index 000000000..0518cc185 --- /dev/null +++ b/aegis/src/model/DescribeGrayFuncRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeGrayFuncRequest; + +DescribeGrayFuncRequest::DescribeGrayFuncRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeGrayFunc") +{} + +DescribeGrayFuncRequest::~DescribeGrayFuncRequest() +{} + +std::string DescribeGrayFuncRequest::getCondition()const +{ + return condition_; +} + +void DescribeGrayFuncRequest::setCondition(const std::string& condition) +{ + condition_ = condition; + setCoreParameter("Condition", condition); +} + +std::string DescribeGrayFuncRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeGrayFuncRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeGrayFuncResult.cc b/aegis/src/model/DescribeGrayFuncResult.cc new file mode 100644 index 000000000..da8301308 --- /dev/null +++ b/aegis/src/model/DescribeGrayFuncResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeGrayFuncResult::DescribeGrayFuncResult() : + ServiceResult() +{} + +DescribeGrayFuncResult::DescribeGrayFuncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGrayFuncResult::~DescribeGrayFuncResult() +{} + +void DescribeGrayFuncResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["IsGrayArg"].isNull()) + isGrayArg_ = value["IsGrayArg"].asString() == "true"; + +} + +bool DescribeGrayFuncResult::getIsGrayArg()const +{ + return isGrayArg_; +} + diff --git a/aegis/src/model/DescribeGroupListResult.cc b/aegis/src/model/DescribeGroupListResult.cc index e9ca9001e..837063a46 100644 --- a/aegis/src/model/DescribeGroupListResult.cc +++ b/aegis/src/model/DescribeGroupListResult.cc @@ -35,10 +35,13 @@ DescribeGroupListResult::~DescribeGroupListResult() void DescribeGroupListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRuleGroups = value["RuleGroups"]["RuleGroupsItem"]; for (auto value : allRuleGroups) diff --git a/aegis/src/model/DescribeGroupStructResult.cc b/aegis/src/model/DescribeGroupStructResult.cc index b29b607e2..05a6fc3bc 100644 --- a/aegis/src/model/DescribeGroupStructResult.cc +++ b/aegis/src/model/DescribeGroupStructResult.cc @@ -35,10 +35,13 @@ DescribeGroupStructResult::~DescribeGroupStructResult() void DescribeGroupStructResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGroups = value["Groups"]["Group"]; for (const auto &item : allGroups) diff --git a/aegis/src/model/DescribeGroupedVulRequest.cc b/aegis/src/model/DescribeGroupedVulRequest.cc index d13225dc9..2d235482b 100644 --- a/aegis/src/model/DescribeGroupedVulRequest.cc +++ b/aegis/src/model/DescribeGroupedVulRequest.cc @@ -47,6 +47,28 @@ void DescribeGroupedVulRequest::setLevel(const std::string& level) setCoreParameter("Level", level); } +std::string DescribeGroupedVulRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeGroupedVulRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeGroupedVulRequest::getCveId()const +{ + return cveId_; +} + +void DescribeGroupedVulRequest::setCveId(const std::string& cveId) +{ + cveId_ = cveId; + setCoreParameter("CveId", cveId); +} + std::string DescribeGroupedVulRequest::getOrderBy()const { return orderBy_; diff --git a/aegis/src/model/DescribeGroupedVulResult.cc b/aegis/src/model/DescribeGroupedVulResult.cc index 08d7c61e8..e72c91372 100644 --- a/aegis/src/model/DescribeGroupedVulResult.cc +++ b/aegis/src/model/DescribeGroupedVulResult.cc @@ -35,10 +35,13 @@ DescribeGroupedVulResult::~DescribeGroupedVulResult() void DescribeGroupedVulResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGroupedVulItems = value["GroupedVulItems"]["GroupedVulItem"]; for (auto value : allGroupedVulItems) @@ -62,6 +65,8 @@ void DescribeGroupedVulResult::parse(const std::string &payload) groupedVulItemsObject.nntfCount = std::stoi(value["NntfCount"].asString()); if(!value["HandledCount"].isNull()) groupedVulItemsObject.handledCount = std::stoi(value["HandledCount"].asString()); + if(!value["Tags"].isNull()) + groupedVulItemsObject.tags = value["Tags"].asString(); groupedVulItems_.push_back(groupedVulItemsObject); } if(!value["PageSize"].isNull()) diff --git a/aegis/src/model/DescribeHistogramResult.cc b/aegis/src/model/DescribeHistogramResult.cc index 58d292a4d..8e89eda14 100644 --- a/aegis/src/model/DescribeHistogramResult.cc +++ b/aegis/src/model/DescribeHistogramResult.cc @@ -35,10 +35,13 @@ DescribeHistogramResult::~DescribeHistogramResult() void DescribeHistogramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/aegis/src/model/DescribeHostStatisticsRequest.cc b/aegis/src/model/DescribeHostStatisticsRequest.cc new file mode 100644 index 000000000..c19ecc0de --- /dev/null +++ b/aegis/src/model/DescribeHostStatisticsRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeHostStatisticsRequest; + +DescribeHostStatisticsRequest::DescribeHostStatisticsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeHostStatistics") +{} + +DescribeHostStatisticsRequest::~DescribeHostStatisticsRequest() +{} + +std::string DescribeHostStatisticsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeHostStatisticsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeHostStatisticsRequest::getFrom()const +{ + return from_; +} + +void DescribeHostStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + diff --git a/aegis/src/model/DescribeHostStatisticsResult.cc b/aegis/src/model/DescribeHostStatisticsResult.cc new file mode 100644 index 000000000..4a2226fb6 --- /dev/null +++ b/aegis/src/model/DescribeHostStatisticsResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeHostStatisticsResult::DescribeHostStatisticsResult() : + ServiceResult() +{} + +DescribeHostStatisticsResult::DescribeHostStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHostStatisticsResult::~DescribeHostStatisticsResult() +{} + +void DescribeHostStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allWeaknessUuids = dataNode["WeaknessUuids"]["StringItem"]; + for (auto value : allWeaknessUuids) + data_.weaknessUuids.push_back(value.asString()); + auto allSuspEventUuids = dataNode["SuspEventUuids"]["StringItem"]; + for (auto value : allSuspEventUuids) + data_.suspEventUuids.push_back(value.asString()); + auto allSuspEventMachineNames = dataNode["SuspEventMachineNames"]["StringItem"]; + for (auto value : allSuspEventMachineNames) + data_.suspEventMachineNames.push_back(value.asString()); + auto allWeaknessMachineNames = dataNode["WeaknessMachineNames"]["StringItem"]; + for (auto value : allWeaknessMachineNames) + data_.weaknessMachineNames.push_back(value.asString()); + +} + +DescribeHostStatisticsResult::Data DescribeHostStatisticsResult::getData()const +{ + return data_; +} + diff --git a/aegis/src/model/DescribeInstanceStatisticsResult.cc b/aegis/src/model/DescribeInstanceStatisticsResult.cc index 7df401eb4..cc6e78c1f 100644 --- a/aegis/src/model/DescribeInstanceStatisticsResult.cc +++ b/aegis/src/model/DescribeInstanceStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeInstanceStatisticsResult::~DescribeInstanceStatisticsResult() void DescribeInstanceStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Entity"]; for (auto value : allData) diff --git a/aegis/src/model/DescribeJoinRuleListResult.cc b/aegis/src/model/DescribeJoinRuleListResult.cc index d046d3f37..8a0036829 100644 --- a/aegis/src/model/DescribeJoinRuleListResult.cc +++ b/aegis/src/model/DescribeJoinRuleListResult.cc @@ -35,15 +35,18 @@ DescribeJoinRuleListResult::~DescribeJoinRuleListResult() void DescribeJoinRuleListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - auto allJoinRuleList = value["JoinRuleList"]["JoinRuleListItem"]; + auto allJoinRuleList = value["JoinRuleList"]["JoinRuleListArr"]; for (auto value : allJoinRuleList) { - JoinRuleListItem joinRuleListObject; + JoinRuleListArr joinRuleListObject; if(!value["TimeWindow"].isNull()) joinRuleListObject.timeWindow = std::stoi(value["TimeWindow"].asString()); if(!value["WarnLevel"].isNull()) @@ -91,7 +94,7 @@ DescribeJoinRuleListResult::PageInfo DescribeJoinRuleListResult::getPageInfo()co return pageInfo_; } -std::vector DescribeJoinRuleListResult::getJoinRuleList()const +std::vector DescribeJoinRuleListResult::getJoinRuleList()const { return joinRuleList_; } diff --git a/aegis/src/model/DescribeLatestActionsRequest.cc b/aegis/src/model/DescribeLatestActionsRequest.cc new file mode 100644 index 000000000..ace386a12 --- /dev/null +++ b/aegis/src/model/DescribeLatestActionsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeLatestActionsRequest; + +DescribeLatestActionsRequest::DescribeLatestActionsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeLatestActions") +{} + +DescribeLatestActionsRequest::~DescribeLatestActionsRequest() +{} + +std::string DescribeLatestActionsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeLatestActionsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeLatestActionsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeLatestActionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeLatestActionsRequest::getFrom()const +{ + return from_; +} + +void DescribeLatestActionsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +int DescribeLatestActionsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeLatestActionsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeLatestActionsRequest::getSecureToken()const +{ + return secureToken_; +} + +void DescribeLatestActionsRequest::setSecureToken(const std::string& secureToken) +{ + secureToken_ = secureToken; + setCoreParameter("SecureToken", secureToken); +} + diff --git a/aegis/src/model/DescribeLatestActionsResult.cc b/aegis/src/model/DescribeLatestActionsResult.cc new file mode 100644 index 000000000..4cb2a79d4 --- /dev/null +++ b/aegis/src/model/DescribeLatestActionsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeLatestActionsResult::DescribeLatestActionsResult() : + ServiceResult() +{} + +DescribeLatestActionsResult::DescribeLatestActionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLatestActionsResult::~DescribeLatestActionsResult() +{} + +void DescribeLatestActionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int DescribeLatestActionsResult::getCount()const +{ + return count_; +} + diff --git a/aegis/src/model/DescribeListAccessKeyIdAuthResult.cc b/aegis/src/model/DescribeListAccessKeyIdAuthResult.cc index 17dcd9155..77de9a756 100644 --- a/aegis/src/model/DescribeListAccessKeyIdAuthResult.cc +++ b/aegis/src/model/DescribeListAccessKeyIdAuthResult.cc @@ -35,10 +35,13 @@ DescribeListAccessKeyIdAuthResult::~DescribeListAccessKeyIdAuthResult() void DescribeListAccessKeyIdAuthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Auth"].isNull()) auth_ = value["Auth"].asString() == "true"; diff --git a/aegis/src/model/DescribeLogInfoResult.cc b/aegis/src/model/DescribeLogInfoResult.cc index d6ba2ddca..77721c8f8 100644 --- a/aegis/src/model/DescribeLogInfoResult.cc +++ b/aegis/src/model/DescribeLogInfoResult.cc @@ -35,10 +35,13 @@ DescribeLogInfoResult::~DescribeLogInfoResult() void DescribeLogInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogInfoItems = value["LogInfoItems"]["Item"]; for (auto value : allLogInfoItems) diff --git a/aegis/src/model/DescribeLogItemsResult.cc b/aegis/src/model/DescribeLogItemsResult.cc index 2afdc106e..b48f1999f 100644 --- a/aegis/src/model/DescribeLogItemsResult.cc +++ b/aegis/src/model/DescribeLogItemsResult.cc @@ -35,10 +35,13 @@ DescribeLogItemsResult::~DescribeLogItemsResult() void DescribeLogItemsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogsList = value["LogsList"]["LogsListItem"]; for (auto value : allLogsList) diff --git a/aegis/src/model/DescribeLogMetaResult.cc b/aegis/src/model/DescribeLogMetaResult.cc index 216a0a882..43596bb19 100644 --- a/aegis/src/model/DescribeLogMetaResult.cc +++ b/aegis/src/model/DescribeLogMetaResult.cc @@ -35,10 +35,13 @@ DescribeLogMetaResult::~DescribeLogMetaResult() void DescribeLogMetaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogMetaList = value["LogMetaList"]["LogMeta"]; for (auto value : allLogMetaList) diff --git a/aegis/src/model/DescribeLogQueryResult.cc b/aegis/src/model/DescribeLogQueryResult.cc index b1e790729..5e8aed678 100644 --- a/aegis/src/model/DescribeLogQueryResult.cc +++ b/aegis/src/model/DescribeLogQueryResult.cc @@ -35,10 +35,13 @@ DescribeLogQueryResult::~DescribeLogQueryResult() void DescribeLogQueryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQueryItems = value["QueryItems"]["QueryItemsItem"]; for (auto value : allQueryItems) diff --git a/aegis/src/model/DescribeLogShipperStatusResult.cc b/aegis/src/model/DescribeLogShipperStatusResult.cc index 05ec3c2e0..be1507691 100644 --- a/aegis/src/model/DescribeLogShipperStatusResult.cc +++ b/aegis/src/model/DescribeLogShipperStatusResult.cc @@ -35,10 +35,13 @@ DescribeLogShipperStatusResult::~DescribeLogShipperStatusResult() void DescribeLogShipperStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto logShipperStatusNode = value["LogShipperStatus"]; if(!logShipperStatusNode["BuyStatus"].isNull()) diff --git a/aegis/src/model/DescribeLoginLogsResult.cc b/aegis/src/model/DescribeLoginLogsResult.cc index 6cf9bc442..fa2bb0afa 100644 --- a/aegis/src/model/DescribeLoginLogsResult.cc +++ b/aegis/src/model/DescribeLoginLogsResult.cc @@ -35,10 +35,13 @@ DescribeLoginLogsResult::~DescribeLoginLogsResult() void DescribeLoginLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogList = value["LogList"]["LogListItem"]; for (auto value : allLogList) diff --git a/aegis/src/model/DescribeLogstoreStorageResult.cc b/aegis/src/model/DescribeLogstoreStorageResult.cc index f32051f27..485d1b240 100644 --- a/aegis/src/model/DescribeLogstoreStorageResult.cc +++ b/aegis/src/model/DescribeLogstoreStorageResult.cc @@ -35,10 +35,13 @@ DescribeLogstoreStorageResult::~DescribeLogstoreStorageResult() void DescribeLogstoreStorageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Logstore"].isNull()) logstore_ = value["Logstore"].asString(); diff --git a/aegis/src/model/DescribeMacConfigResult.cc b/aegis/src/model/DescribeMacConfigResult.cc index 36f287ea5..b66f272b0 100644 --- a/aegis/src/model/DescribeMacConfigResult.cc +++ b/aegis/src/model/DescribeMacConfigResult.cc @@ -35,10 +35,13 @@ DescribeMacConfigResult::~DescribeMacConfigResult() void DescribeMacConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigs = value["Configs"]["Config"]; for (auto value : allConfigs) diff --git a/aegis/src/model/DescribeMachineConfigResult.cc b/aegis/src/model/DescribeMachineConfigResult.cc index 9214b3f20..676435258 100644 --- a/aegis/src/model/DescribeMachineConfigResult.cc +++ b/aegis/src/model/DescribeMachineConfigResult.cc @@ -35,10 +35,13 @@ DescribeMachineConfigResult::~DescribeMachineConfigResult() void DescribeMachineConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigTargets = value["ConfigTargets"]["ConfigTarget"]; for (auto value : allConfigTargets) diff --git a/aegis/src/model/DescribeMetaDataResult.cc b/aegis/src/model/DescribeMetaDataResult.cc index 35ca38655..7b6cf8147 100644 --- a/aegis/src/model/DescribeMetaDataResult.cc +++ b/aegis/src/model/DescribeMetaDataResult.cc @@ -35,10 +35,13 @@ DescribeMetaDataResult::~DescribeMetaDataResult() void DescribeMetaDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto metaDataNode = value["MetaData"]; if(!metaDataNode["LogStoreName"].isNull()) diff --git a/aegis/src/model/DescribeNsasSuspEventTypeResult.cc b/aegis/src/model/DescribeNsasSuspEventTypeResult.cc index fe78a20ef..1d3b4cf35 100644 --- a/aegis/src/model/DescribeNsasSuspEventTypeResult.cc +++ b/aegis/src/model/DescribeNsasSuspEventTypeResult.cc @@ -35,10 +35,13 @@ DescribeNsasSuspEventTypeResult::~DescribeNsasSuspEventTypeResult() void DescribeNsasSuspEventTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEventTypes = value["EventTypes"]["Data"]; for (auto value : allEventTypes) diff --git a/aegis/src/model/DescribeOperateInfoResult.cc b/aegis/src/model/DescribeOperateInfoResult.cc index 91c12e82e..eb5667d49 100644 --- a/aegis/src/model/DescribeOperateInfoResult.cc +++ b/aegis/src/model/DescribeOperateInfoResult.cc @@ -35,10 +35,13 @@ DescribeOperateInfoResult::~DescribeOperateInfoResult() void DescribeOperateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspEventValueArray = value["SuspEventValueArray"]["IntegerItem"]; for (const auto &item : allSuspEventValueArray) diff --git a/aegis/src/model/DescribeQuaraFileResult.cc b/aegis/src/model/DescribeQuaraFileResult.cc index e6aeb2afc..a2b3ce0e6 100644 --- a/aegis/src/model/DescribeQuaraFileResult.cc +++ b/aegis/src/model/DescribeQuaraFileResult.cc @@ -35,10 +35,13 @@ DescribeQuaraFileResult::~DescribeQuaraFileResult() void DescribeQuaraFileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQuaraFiles = value["QuaraFiles"]["QuaraFile"]; for (auto value : allQuaraFiles) diff --git a/aegis/src/model/DescribeResultListResult.cc b/aegis/src/model/DescribeResultListResult.cc index 8723ab00f..96d08f6f3 100644 --- a/aegis/src/model/DescribeResultListResult.cc +++ b/aegis/src/model/DescribeResultListResult.cc @@ -35,15 +35,18 @@ DescribeResultListResult::~DescribeResultListResult() void DescribeResultListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - auto allResultList = value["ResultList"]["ResultListItem"]; + auto allResultList = value["ResultList"]["ResultListArr"]; for (auto value : allResultList) { - ResultListItem resultListObject; + ResultListArr resultListObject; if(!value["LastTimestamp"].isNull()) resultListObject.lastTimestamp = std::stol(value["LastTimestamp"].asString()); if(!value["ModifiedTimestamp"].isNull()) @@ -103,7 +106,7 @@ DescribeResultListResult::PageInfo DescribeResultListResult::getPageInfo()const return pageInfo_; } -std::vector DescribeResultListResult::getResultList()const +std::vector DescribeResultListResult::getResultList()const { return resultList_; } diff --git a/aegis/src/model/DescribeRiskTypeResult.cc b/aegis/src/model/DescribeRiskTypeResult.cc index 4a2eac221..f69a50f16 100644 --- a/aegis/src/model/DescribeRiskTypeResult.cc +++ b/aegis/src/model/DescribeRiskTypeResult.cc @@ -35,10 +35,13 @@ DescribeRiskTypeResult::~DescribeRiskTypeResult() void DescribeRiskTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRiskTypes = value["RiskTypes"]["RiskType"]; for (auto value : allRiskTypes) diff --git a/aegis/src/model/DescribeRiskWhiteListResult.cc b/aegis/src/model/DescribeRiskWhiteListResult.cc index c9387467f..083665c86 100644 --- a/aegis/src/model/DescribeRiskWhiteListResult.cc +++ b/aegis/src/model/DescribeRiskWhiteListResult.cc @@ -35,10 +35,13 @@ DescribeRiskWhiteListResult::~DescribeRiskWhiteListResult() void DescribeRiskWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWhiteLists = value["WhiteLists"]["WhiteList"]; for (auto value : allWhiteLists) diff --git a/aegis/src/model/DescribeRisksResult.cc b/aegis/src/model/DescribeRisksResult.cc index 5a9410ecd..302bedeb9 100644 --- a/aegis/src/model/DescribeRisksResult.cc +++ b/aegis/src/model/DescribeRisksResult.cc @@ -35,10 +35,13 @@ DescribeRisksResult::~DescribeRisksResult() void DescribeRisksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRisks = value["Risks"]["Risk"]; for (auto value : allRisks) diff --git a/aegis/src/model/DescribeRuleListResult.cc b/aegis/src/model/DescribeRuleListResult.cc index 532daead0..8ed532709 100644 --- a/aegis/src/model/DescribeRuleListResult.cc +++ b/aegis/src/model/DescribeRuleListResult.cc @@ -35,10 +35,13 @@ DescribeRuleListResult::~DescribeRuleListResult() void DescribeRuleListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["RulesItem"]; for (auto value : allRules) diff --git a/aegis/src/model/DescribeSasAssetStatisticsColumnResult.cc b/aegis/src/model/DescribeSasAssetStatisticsColumnResult.cc index 9af83f215..31f1eb661 100644 --- a/aegis/src/model/DescribeSasAssetStatisticsColumnResult.cc +++ b/aegis/src/model/DescribeSasAssetStatisticsColumnResult.cc @@ -35,10 +35,13 @@ DescribeSasAssetStatisticsColumnResult::~DescribeSasAssetStatisticsColumnResult( void DescribeSasAssetStatisticsColumnResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["StatisticsColumn"].isNull()) statisticsColumn_ = value["StatisticsColumn"].asString(); diff --git a/aegis/src/model/DescribeSasAssetStatisticsRequest.cc b/aegis/src/model/DescribeSasAssetStatisticsRequest.cc index 88b8e37c3..751541532 100644 --- a/aegis/src/model/DescribeSasAssetStatisticsRequest.cc +++ b/aegis/src/model/DescribeSasAssetStatisticsRequest.cc @@ -58,6 +58,17 @@ void DescribeSasAssetStatisticsRequest::setPageSize(int pageSize) setCoreParameter("PageSize", std::to_string(pageSize)); } +std::string DescribeSasAssetStatisticsRequest::getFrom()const +{ + return from_; +} + +void DescribeSasAssetStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + int DescribeSasAssetStatisticsRequest::getCurrentPage()const { return currentPage_; diff --git a/aegis/src/model/DescribeSasAssetStatisticsResult.cc b/aegis/src/model/DescribeSasAssetStatisticsResult.cc index 2a7568506..335775750 100644 --- a/aegis/src/model/DescribeSasAssetStatisticsResult.cc +++ b/aegis/src/model/DescribeSasAssetStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeSasAssetStatisticsResult::~DescribeSasAssetStatisticsResult() void DescribeSasAssetStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAssetList = value["AssetList"]["Asset"]; for (auto value : allAssetList) diff --git a/aegis/src/model/DescribeSasLeftConditionRequest.cc b/aegis/src/model/DescribeSasLeftConditionRequest.cc index 4af4e88cb..335946579 100644 --- a/aegis/src/model/DescribeSasLeftConditionRequest.cc +++ b/aegis/src/model/DescribeSasLeftConditionRequest.cc @@ -47,6 +47,17 @@ void DescribeSasLeftConditionRequest::setConditionType(const std::string& condit setCoreParameter("ConditionType", conditionType); } +std::string DescribeSasLeftConditionRequest::getFrom()const +{ + return from_; +} + +void DescribeSasLeftConditionRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + std::string DescribeSasLeftConditionRequest::getLang()const { return lang_; diff --git a/aegis/src/model/DescribeSasLeftConditionResult.cc b/aegis/src/model/DescribeSasLeftConditionResult.cc index 00bde3035..a89258dc1 100644 --- a/aegis/src/model/DescribeSasLeftConditionResult.cc +++ b/aegis/src/model/DescribeSasLeftConditionResult.cc @@ -35,10 +35,13 @@ DescribeSasLeftConditionResult::~DescribeSasLeftConditionResult() void DescribeSasLeftConditionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConditionList = value["ConditionList"]["Condition"]; for (auto value : allConditionList) diff --git a/aegis/src/model/DescribeScreenAlarmEventListResult.cc b/aegis/src/model/DescribeScreenAlarmEventListResult.cc index caffdc120..7d7aa11d2 100644 --- a/aegis/src/model/DescribeScreenAlarmEventListResult.cc +++ b/aegis/src/model/DescribeScreenAlarmEventListResult.cc @@ -35,10 +35,13 @@ DescribeScreenAlarmEventListResult::~DescribeScreenAlarmEventListResult() void DescribeScreenAlarmEventListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspEvents = value["SuspEvents"]["SuspEventsItem"]; for (auto value : allSuspEvents) diff --git a/aegis/src/model/DescribeScreenAttackAnalysisDataResult.cc b/aegis/src/model/DescribeScreenAttackAnalysisDataResult.cc index 2b7ded30a..a2c303bc2 100644 --- a/aegis/src/model/DescribeScreenAttackAnalysisDataResult.cc +++ b/aegis/src/model/DescribeScreenAttackAnalysisDataResult.cc @@ -35,10 +35,13 @@ DescribeScreenAttackAnalysisDataResult::~DescribeScreenAttackAnalysisDataResult( void DescribeScreenAttackAnalysisDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); diff --git a/aegis/src/model/DescribeScreenBizStatSimpleQueryResultRequest.cc b/aegis/src/model/DescribeScreenBizStatSimpleQueryResultRequest.cc new file mode 100644 index 000000000..994ba5175 --- /dev/null +++ b/aegis/src/model/DescribeScreenBizStatSimpleQueryResultRequest.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 + +using AlibabaCloud::Aegis::Model::DescribeScreenBizStatSimpleQueryResultRequest; + +DescribeScreenBizStatSimpleQueryResultRequest::DescribeScreenBizStatSimpleQueryResultRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenBizStatSimpleQueryResult") +{} + +DescribeScreenBizStatSimpleQueryResultRequest::~DescribeScreenBizStatSimpleQueryResultRequest() +{} + +std::string DescribeScreenBizStatSimpleQueryResultRequest::getRangeUnit()const +{ + return rangeUnit_; +} + +void DescribeScreenBizStatSimpleQueryResultRequest::setRangeUnit(const std::string& rangeUnit) +{ + rangeUnit_ = rangeUnit; + setCoreParameter("RangeUnit", rangeUnit); +} + +std::string DescribeScreenBizStatSimpleQueryResultRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenBizStatSimpleQueryResultRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeScreenBizStatSimpleQueryResultRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeScreenBizStatSimpleQueryResultRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +long DescribeScreenBizStatSimpleQueryResultRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeScreenBizStatSimpleQueryResultRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +std::string DescribeScreenBizStatSimpleQueryResultRequest::getCustomQuery()const +{ + return customQuery_; +} + +void DescribeScreenBizStatSimpleQueryResultRequest::setCustomQuery(const std::string& customQuery) +{ + customQuery_ = customQuery; + setCoreParameter("CustomQuery", customQuery); +} + +int DescribeScreenBizStatSimpleQueryResultRequest::getRangeValue()const +{ + return rangeValue_; +} + +void DescribeScreenBizStatSimpleQueryResultRequest::setRangeValue(int rangeValue) +{ + rangeValue_ = rangeValue; + setCoreParameter("RangeValue", std::to_string(rangeValue)); +} + diff --git a/aegis/src/model/DescribeScreenBizStatSimpleQueryResultResult.cc b/aegis/src/model/DescribeScreenBizStatSimpleQueryResultResult.cc new file mode 100644 index 000000000..50a4f5e9b --- /dev/null +++ b/aegis/src/model/DescribeScreenBizStatSimpleQueryResultResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenBizStatSimpleQueryResultResult::DescribeScreenBizStatSimpleQueryResultResult() : + ServiceResult() +{} + +DescribeScreenBizStatSimpleQueryResultResult::DescribeScreenBizStatSimpleQueryResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenBizStatSimpleQueryResultResult::~DescribeScreenBizStatSimpleQueryResultResult() +{} + +void DescribeScreenBizStatSimpleQueryResultResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTrendDataArr = value["TrendDataArr"]["BizStatTrendDOS"]; + for (auto value : allTrendDataArr) + { + BizStatTrendDOS trendDataArrObject; + if(!value["BizName"].isNull()) + trendDataArrObject.bizName = value["BizName"].asString(); + auto allValueArray = value["ValueArray"]["IntegerItem"]; + for (auto value : allValueArray) + trendDataArrObject.valueArray.push_back(value.asString()); + trendDataArr_.push_back(trendDataArrObject); + } + auto allDataTimeArray = value["DataTimeArray"]["StringItem"]; + for (const auto &item : allDataTimeArray) + dataTimeArray_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeScreenBizStatSimpleQueryResultResult::getTrendDataArr()const +{ + return trendDataArr_; +} + +std::vector DescribeScreenBizStatSimpleQueryResultResult::getDataTimeArray()const +{ + return dataTimeArray_; +} + +bool DescribeScreenBizStatSimpleQueryResultResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenCityMonitorDataRequest.cc b/aegis/src/model/DescribeScreenCityMonitorDataRequest.cc new file mode 100644 index 000000000..fd7eadddf --- /dev/null +++ b/aegis/src/model/DescribeScreenCityMonitorDataRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeScreenCityMonitorDataRequest; + +DescribeScreenCityMonitorDataRequest::DescribeScreenCityMonitorDataRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenCityMonitorData") +{} + +DescribeScreenCityMonitorDataRequest::~DescribeScreenCityMonitorDataRequest() +{} + +int DescribeScreenCityMonitorDataRequest::getScreenId()const +{ + return screenId_; +} + +void DescribeScreenCityMonitorDataRequest::setScreenId(int screenId) +{ + screenId_ = screenId; + setCoreParameter("ScreenId", std::to_string(screenId)); +} + +std::string DescribeScreenCityMonitorDataRequest::getDateType()const +{ + return dateType_; +} + +void DescribeScreenCityMonitorDataRequest::setDateType(const std::string& dateType) +{ + dateType_ = dateType; + setCoreParameter("DateType", dateType); +} + +std::string DescribeScreenCityMonitorDataRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenCityMonitorDataRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenCityMonitorDataResult.cc b/aegis/src/model/DescribeScreenCityMonitorDataResult.cc new file mode 100644 index 000000000..82e9bcb0b --- /dev/null +++ b/aegis/src/model/DescribeScreenCityMonitorDataResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenCityMonitorDataResult::DescribeScreenCityMonitorDataResult() : + ServiceResult() +{} + +DescribeScreenCityMonitorDataResult::DescribeScreenCityMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenCityMonitorDataResult::~DescribeScreenCityMonitorDataResult() +{} + +void DescribeScreenCityMonitorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allMonitorData = value["MonitorData"]["MonitorDataItem"]; + for (auto value : allMonitorData) + { + MonitorDataItem monitorDataObject; + if(!value["City"].isNull()) + monitorDataObject.city = value["City"].asString(); + if(!value["Availability"].isNull()) + monitorDataObject.availability = value["Availability"].asString(); + if(!value["ReturnTime"].isNull()) + monitorDataObject.returnTime = value["ReturnTime"].asString(); + monitorData_.push_back(monitorDataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeScreenCityMonitorDataResult::getMonitorData()const +{ + return monitorData_; +} + +bool DescribeScreenCityMonitorDataResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenCloudHcRiskRequest.cc b/aegis/src/model/DescribeScreenCloudHcRiskRequest.cc new file mode 100644 index 000000000..2f578dc30 --- /dev/null +++ b/aegis/src/model/DescribeScreenCloudHcRiskRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenCloudHcRiskRequest; + +DescribeScreenCloudHcRiskRequest::DescribeScreenCloudHcRiskRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenCloudHcRisk") +{} + +DescribeScreenCloudHcRiskRequest::~DescribeScreenCloudHcRiskRequest() +{} + +std::string DescribeScreenCloudHcRiskRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenCloudHcRiskRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenCloudHcRiskResult.cc b/aegis/src/model/DescribeScreenCloudHcRiskResult.cc new file mode 100644 index 000000000..1a696ac90 --- /dev/null +++ b/aegis/src/model/DescribeScreenCloudHcRiskResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenCloudHcRiskResult::DescribeScreenCloudHcRiskResult() : + ServiceResult() +{} + +DescribeScreenCloudHcRiskResult::DescribeScreenCloudHcRiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenCloudHcRiskResult::~DescribeScreenCloudHcRiskResult() +{} + +void DescribeScreenCloudHcRiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allCloudHcRiskItems = value["CloudHcRiskItems"]["CloudHcRiskItem"]; + for (auto value : allCloudHcRiskItems) + { + CloudHcRiskItem cloudHcRiskItemsObject; + if(!value["Level"].isNull()) + cloudHcRiskItemsObject.level = value["Level"].asString(); + if(!value["CheckItem"].isNull()) + cloudHcRiskItemsObject.checkItem = value["CheckItem"].asString(); + if(!value["AffectCount"].isNull()) + cloudHcRiskItemsObject.affectCount = std::stoi(value["AffectCount"].asString()); + if(!value["Pass"].isNull()) + cloudHcRiskItemsObject.pass = value["Pass"].asString() == "true"; + cloudHcRiskItems_.push_back(cloudHcRiskItemsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeScreenCloudHcRiskResult::getCloudHcRiskItems()const +{ + return cloudHcRiskItems_; +} + +bool DescribeScreenCloudHcRiskResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenDataMapRequest.cc b/aegis/src/model/DescribeScreenDataMapRequest.cc new file mode 100644 index 000000000..0badeef88 --- /dev/null +++ b/aegis/src/model/DescribeScreenDataMapRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenDataMapRequest; + +DescribeScreenDataMapRequest::DescribeScreenDataMapRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenDataMap") +{} + +DescribeScreenDataMapRequest::~DescribeScreenDataMapRequest() +{} + +std::string DescribeScreenDataMapRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenDataMapRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenDataMapResult.cc b/aegis/src/model/DescribeScreenDataMapResult.cc new file mode 100644 index 000000000..162853266 --- /dev/null +++ b/aegis/src/model/DescribeScreenDataMapResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenDataMapResult::DescribeScreenDataMapResult() : + ServiceResult() +{} + +DescribeScreenDataMapResult::DescribeScreenDataMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenDataMapResult::~DescribeScreenDataMapResult() +{} + +void DescribeScreenDataMapResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSasScreenTypeList = value["SasScreenTypeList"]["SasScreenType"]; + for (auto value : allSasScreenTypeList) + { + SasScreenType sasScreenTypeListObject; + if(!value["Type"].isNull()) + sasScreenTypeListObject.type = value["Type"].asString(); + if(!value["TypeCode"].isNull()) + sasScreenTypeListObject.typeCode = value["TypeCode"].asString(); + auto allTypeData = value["TypeData"]["SasScreenModel"]; + for (auto value : allTypeData) + { + SasScreenType::SasScreenModel typeDataObject; + if(!value["Code"].isNull()) + typeDataObject.code = value["Code"].asString(); + if(!value["Id"].isNull()) + typeDataObject.id = value["Id"].asString(); + if(!value["Title"].isNull()) + typeDataObject.title = value["Title"].asString(); + auto allDate = value["Date"]["IntegerItem"]; + for (auto value : allDate) + { + SasScreenType::SasScreenModel::IntegerItem dateObject; + if(!value["Value"].isNull()) + dateObject.value = value["Value"].asString(); + if(!value["Unit"].isNull()) + dateObject.unit = value["Unit"].asString(); + typeDataObject.date.push_back(dateObject); + } + sasScreenTypeListObject.typeData.push_back(typeDataObject); + } + sasScreenTypeList_.push_back(sasScreenTypeListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeScreenDataMapResult::getSasScreenTypeList()const +{ + return sasScreenTypeList_; +} + +bool DescribeScreenDataMapResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenEmerRiskRequest.cc b/aegis/src/model/DescribeScreenEmerRiskRequest.cc new file mode 100644 index 000000000..51ff760ca --- /dev/null +++ b/aegis/src/model/DescribeScreenEmerRiskRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenEmerRiskRequest; + +DescribeScreenEmerRiskRequest::DescribeScreenEmerRiskRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenEmerRisk") +{} + +DescribeScreenEmerRiskRequest::~DescribeScreenEmerRiskRequest() +{} + +std::string DescribeScreenEmerRiskRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenEmerRiskRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenEmerRiskResult.cc b/aegis/src/model/DescribeScreenEmerRiskResult.cc new file mode 100644 index 000000000..086a35d2d --- /dev/null +++ b/aegis/src/model/DescribeScreenEmerRiskResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenEmerRiskResult::DescribeScreenEmerRiskResult() : + ServiceResult() +{} + +DescribeScreenEmerRiskResult::DescribeScreenEmerRiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenEmerRiskResult::~DescribeScreenEmerRiskResult() +{} + +void DescribeScreenEmerRiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allCloudHcRiskItems = value["CloudHcRiskItems"]["CloudHcRiskItem"]; + for (auto value : allCloudHcRiskItems) + { + CloudHcRiskItem cloudHcRiskItemsObject; + if(!value["Level"].isNull()) + cloudHcRiskItemsObject.level = value["Level"].asString(); + if(!value["VulName"].isNull()) + cloudHcRiskItemsObject.vulName = value["VulName"].asString(); + if(!value["AffectCount"].isNull()) + cloudHcRiskItemsObject.affectCount = std::stoi(value["AffectCount"].asString()); + cloudHcRiskItems_.push_back(cloudHcRiskItemsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeScreenEmerRiskResult::getCloudHcRiskItems()const +{ + return cloudHcRiskItems_; +} + +bool DescribeScreenEmerRiskResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenFlowRequestCountRequest.cc b/aegis/src/model/DescribeScreenFlowRequestCountRequest.cc new file mode 100644 index 000000000..2ec3fe7a2 --- /dev/null +++ b/aegis/src/model/DescribeScreenFlowRequestCountRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenFlowRequestCountRequest; + +DescribeScreenFlowRequestCountRequest::DescribeScreenFlowRequestCountRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenFlowRequestCount") +{} + +DescribeScreenFlowRequestCountRequest::~DescribeScreenFlowRequestCountRequest() +{} + +std::string DescribeScreenFlowRequestCountRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenFlowRequestCountRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenFlowRequestCountResult.cc b/aegis/src/model/DescribeScreenFlowRequestCountResult.cc new file mode 100644 index 000000000..8251b0d85 --- /dev/null +++ b/aegis/src/model/DescribeScreenFlowRequestCountResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenFlowRequestCountResult::DescribeScreenFlowRequestCountResult() : + ServiceResult() +{} + +DescribeScreenFlowRequestCountResult::DescribeScreenFlowRequestCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenFlowRequestCountResult::~DescribeScreenFlowRequestCountResult() +{} + +void DescribeScreenFlowRequestCountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["RequestTotalCount"].isNull()) + requestTotalCount_ = std::stoi(value["RequestTotalCount"].asString()); + if(!value["FlowTotalCount"].isNull()) + flowTotalCount_ = std::stoi(value["FlowTotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int DescribeScreenFlowRequestCountResult::getFlowTotalCount()const +{ + return flowTotalCount_; +} + +int DescribeScreenFlowRequestCountResult::getRequestTotalCount()const +{ + return requestTotalCount_; +} + +bool DescribeScreenFlowRequestCountResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenHostStatisticsResult.cc b/aegis/src/model/DescribeScreenHostStatisticsResult.cc index 3be940529..b4a10674a 100644 --- a/aegis/src/model/DescribeScreenHostStatisticsResult.cc +++ b/aegis/src/model/DescribeScreenHostStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeScreenHostStatisticsResult::~DescribeScreenHostStatisticsResult() void DescribeScreenHostStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allWeaknessUuids = dataNode["WeaknessUuids"]["StringItem"]; @@ -53,6 +56,9 @@ void DescribeScreenHostStatisticsResult::parse(const std::string &payload) auto allWeaknessMachineNames = dataNode["WeaknessMachineNames"]["StringItem"]; for (auto value : allWeaknessMachineNames) data_.weaknessMachineNames.push_back(value.asString()); + auto allSafeCount = dataNode["SafeCount"]["StringItem"]; + for (auto value : allSafeCount) + data_.safeCount.push_back(value.asString()); } diff --git a/aegis/src/model/DescribeScreenOperateInfoRequest.cc b/aegis/src/model/DescribeScreenOperateInfoRequest.cc index 3d125bc8a..4cf1d4acb 100644 --- a/aegis/src/model/DescribeScreenOperateInfoRequest.cc +++ b/aegis/src/model/DescribeScreenOperateInfoRequest.cc @@ -36,6 +36,17 @@ void DescribeScreenOperateInfoRequest::setSourceIp(const std::string& sourceIp) setCoreParameter("SourceIp", sourceIp); } +long DescribeScreenOperateInfoRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeScreenOperateInfoRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + std::string DescribeScreenOperateInfoRequest::getLang()const { return lang_; diff --git a/aegis/src/model/DescribeScreenOperateInfoResult.cc b/aegis/src/model/DescribeScreenOperateInfoResult.cc index 9d15811ef..834c9fc50 100644 --- a/aegis/src/model/DescribeScreenOperateInfoResult.cc +++ b/aegis/src/model/DescribeScreenOperateInfoResult.cc @@ -35,10 +35,13 @@ DescribeScreenOperateInfoResult::~DescribeScreenOperateInfoResult() void DescribeScreenOperateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspEventValueArray = value["SuspEventValueArray"]["IntegerItem"]; for (const auto &item : allSuspEventValueArray) @@ -60,6 +63,8 @@ void DescribeScreenOperateInfoResult::parse(const std::string &payload) vulnerabilityDealedCount_ = std::stoi(value["VulnerabilityDealedCount"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["SuccessA"].isNull()) + successA_ = value["SuccessA"].asString() == "true"; } @@ -68,6 +73,11 @@ std::vector DescribeScreenOperateInfoResult::getVulValueArray()cons return vulValueArray_; } +bool DescribeScreenOperateInfoResult::getSuccessA()const +{ + return successA_; +} + int DescribeScreenOperateInfoResult::getSecurityEventDealedCount()const { return securityEventDealedCount_; diff --git a/aegis/src/model/DescribeScreenOssUploadInfoRequest.cc b/aegis/src/model/DescribeScreenOssUploadInfoRequest.cc new file mode 100644 index 000000000..092ff0985 --- /dev/null +++ b/aegis/src/model/DescribeScreenOssUploadInfoRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenOssUploadInfoRequest; + +DescribeScreenOssUploadInfoRequest::DescribeScreenOssUploadInfoRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenOssUploadInfo") +{} + +DescribeScreenOssUploadInfoRequest::~DescribeScreenOssUploadInfoRequest() +{} + +std::string DescribeScreenOssUploadInfoRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenOssUploadInfoRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenOssUploadInfoResult.cc b/aegis/src/model/DescribeScreenOssUploadInfoResult.cc new file mode 100644 index 000000000..d868035c9 --- /dev/null +++ b/aegis/src/model/DescribeScreenOssUploadInfoResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenOssUploadInfoResult::DescribeScreenOssUploadInfoResult() : + ServiceResult() +{} + +DescribeScreenOssUploadInfoResult::DescribeScreenOssUploadInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenOssUploadInfoResult::~DescribeScreenOssUploadInfoResult() +{} + +void DescribeScreenOssUploadInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["AccessId"].isNull()) + accessId_ = value["AccessId"].asString(); + if(!value["Policy"].isNull()) + policy_ = value["Policy"].asString(); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["Signature"].isNull()) + signature_ = value["Signature"].asString(); + if(!value["Expire"].isNull()) + expire_ = std::stoi(value["Expire"].asString()); + if(!value["Key"].isNull()) + key_ = value["Key"].asString(); + +} + +std::string DescribeScreenOssUploadInfoResult::getPolicy()const +{ + return policy_; +} + +int DescribeScreenOssUploadInfoResult::getExpire()const +{ + return expire_; +} + +std::string DescribeScreenOssUploadInfoResult::getAccessId()const +{ + return accessId_; +} + +std::string DescribeScreenOssUploadInfoResult::getSignature()const +{ + return signature_; +} + +std::string DescribeScreenOssUploadInfoResult::getHost()const +{ + return host_; +} + +bool DescribeScreenOssUploadInfoResult::getSuccess()const +{ + return success_; +} + +std::string DescribeScreenOssUploadInfoResult::getKey()const +{ + return key_; +} + diff --git a/aegis/src/model/DescribeScreenRequestTopTypeRequest.cc b/aegis/src/model/DescribeScreenRequestTopTypeRequest.cc new file mode 100644 index 000000000..b88ddcaf0 --- /dev/null +++ b/aegis/src/model/DescribeScreenRequestTopTypeRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenRequestTopTypeRequest; + +DescribeScreenRequestTopTypeRequest::DescribeScreenRequestTopTypeRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenRequestTopType") +{} + +DescribeScreenRequestTopTypeRequest::~DescribeScreenRequestTopTypeRequest() +{} + +std::string DescribeScreenRequestTopTypeRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenRequestTopTypeRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeScreenRequestTopTypeRequest::getType()const +{ + return type_; +} + +void DescribeScreenRequestTopTypeRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + diff --git a/aegis/src/model/DescribeScreenRequestTopTypeResult.cc b/aegis/src/model/DescribeScreenRequestTopTypeResult.cc new file mode 100644 index 000000000..47bd66f19 --- /dev/null +++ b/aegis/src/model/DescribeScreenRequestTopTypeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenRequestTopTypeResult::DescribeScreenRequestTopTypeResult() : + ServiceResult() +{} + +DescribeScreenRequestTopTypeResult::DescribeScreenRequestTopTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenRequestTopTypeResult::~DescribeScreenRequestTopTypeResult() +{} + +void DescribeScreenRequestTopTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTopTypes = value["TopTypes"]["TopType"]; + for (auto value : allTopTypes) + { + TopType topTypesObject; + if(!value["Count"].isNull()) + topTypesObject.count = std::stoi(value["Count"].asString()); + if(!value["Type"].isNull()) + topTypesObject.type = value["Type"].asString(); + topTypes_.push_back(topTypesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int DescribeScreenRequestTopTypeResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeScreenRequestTopTypeResult::getTopTypes()const +{ + return topTypes_; +} + +bool DescribeScreenRequestTopTypeResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenScoreThreadResult.cc b/aegis/src/model/DescribeScreenScoreThreadResult.cc index 20289d23e..6cab2bc57 100644 --- a/aegis/src/model/DescribeScreenScoreThreadResult.cc +++ b/aegis/src/model/DescribeScreenScoreThreadResult.cc @@ -35,10 +35,13 @@ DescribeScreenScoreThreadResult::~DescribeScreenScoreThreadResult() void DescribeScreenScoreThreadResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allSocreThreadDate = dataNode["SocreThreadDate"]["StringItem"]; diff --git a/aegis/src/model/DescribeScreenSecurityStatInfoResult.cc b/aegis/src/model/DescribeScreenSecurityStatInfoResult.cc index 86e4d6694..bbc31bdea 100644 --- a/aegis/src/model/DescribeScreenSecurityStatInfoResult.cc +++ b/aegis/src/model/DescribeScreenSecurityStatInfoResult.cc @@ -35,10 +35,13 @@ DescribeScreenSecurityStatInfoResult::~DescribeScreenSecurityStatInfoResult() void DescribeScreenSecurityStatInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto securityEventNode = value["SecurityEvent"]; if(!securityEventNode["SeriousCount"].isNull()) diff --git a/aegis/src/model/DescribeScreenSettingRequest.cc b/aegis/src/model/DescribeScreenSettingRequest.cc index 5ee539a11..57671a836 100644 --- a/aegis/src/model/DescribeScreenSettingRequest.cc +++ b/aegis/src/model/DescribeScreenSettingRequest.cc @@ -36,14 +36,14 @@ void DescribeScreenSettingRequest::setSourceIp(const std::string& sourceIp) setCoreParameter("SourceIp", sourceIp); } -std::string DescribeScreenSettingRequest::getScreenTitle()const +std::string DescribeScreenSettingRequest::getId()const { - return screenTitle_; + return id_; } -void DescribeScreenSettingRequest::setScreenTitle(const std::string& screenTitle) +void DescribeScreenSettingRequest::setId(const std::string& id) { - screenTitle_ = screenTitle; - setCoreParameter("ScreenTitle", screenTitle); + id_ = id; + setCoreParameter("Id", id); } diff --git a/aegis/src/model/DescribeScreenSettingResult.cc b/aegis/src/model/DescribeScreenSettingResult.cc index 79dee30c7..13e2f8dc4 100644 --- a/aegis/src/model/DescribeScreenSettingResult.cc +++ b/aegis/src/model/DescribeScreenSettingResult.cc @@ -35,21 +35,70 @@ DescribeScreenSettingResult::~DescribeScreenSettingResult() void DescribeScreenSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - auto sasScreenSettingNode = value["SasScreenSetting"]; - if(!sasScreenSettingNode["ScreenSettingTitle"].isNull()) - sasScreenSetting_.screenSettingTitle = sasScreenSettingNode["ScreenSettingTitle"].asString(); - if(!sasScreenSettingNode["ScreenSettingIdMap"].isNull()) - sasScreenSetting_.screenSettingIdMap = sasScreenSettingNode["ScreenSettingIdMap"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["MonitorUrl"].isNull()) + monitorUrl_ = value["MonitorUrl"].asString(); + if(!value["LogoPower"].isNull()) + logoPower_ = value["LogoPower"].asString() == "true"; + if(!value["Title"].isNull()) + title_ = value["Title"].asString(); + if(!value["ScreenDataMap"].isNull()) + screenDataMap_ = value["ScreenDataMap"].asString(); + if(!value["ScreenDefault"].isNull()) + screenDefault_ = std::stoi(value["ScreenDefault"].asString()); + if(!value["ScreenId"].isNull()) + screenId_ = std::stoi(value["ScreenId"].asString()); + if(!value["LogoUrl"].isNull()) + logoUrl_ = value["LogoUrl"].asString(); } -DescribeScreenSettingResult::SasScreenSetting DescribeScreenSettingResult::getSasScreenSetting()const +bool DescribeScreenSettingResult::getLogoPower()const { - return sasScreenSetting_; + return logoPower_; +} + +std::string DescribeScreenSettingResult::getMonitorUrl()const +{ + return monitorUrl_; +} + +int DescribeScreenSettingResult::getScreenId()const +{ + return screenId_; +} + +std::string DescribeScreenSettingResult::getLogoUrl()const +{ + return logoUrl_; +} + +std::string DescribeScreenSettingResult::getScreenDataMap()const +{ + return screenDataMap_; +} + +std::string DescribeScreenSettingResult::getTitle()const +{ + return title_; +} + +int DescribeScreenSettingResult::getScreenDefault()const +{ + return screenDefault_; +} + +bool DescribeScreenSettingResult::getSuccess()const +{ + return success_; } diff --git a/aegis/src/model/DescribeScreenSettingsResult.cc b/aegis/src/model/DescribeScreenSettingsResult.cc index f7e576b91..360723749 100644 --- a/aegis/src/model/DescribeScreenSettingsResult.cc +++ b/aegis/src/model/DescribeScreenSettingsResult.cc @@ -35,10 +35,13 @@ DescribeScreenSettingsResult::~DescribeScreenSettingsResult() void DescribeScreenSettingsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSasScreenSettingList = value["SasScreenSettingList"]["SasScreenSettingListItem"]; for (auto value : allSasScreenSettingList) diff --git a/aegis/src/model/DescribeScreenSummaryInfoResult.cc b/aegis/src/model/DescribeScreenSummaryInfoResult.cc index 5b9988de9..7a3aadb78 100644 --- a/aegis/src/model/DescribeScreenSummaryInfoResult.cc +++ b/aegis/src/model/DescribeScreenSummaryInfoResult.cc @@ -35,10 +35,13 @@ DescribeScreenSummaryInfoResult::~DescribeScreenSummaryInfoResult() void DescribeScreenSummaryInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AegisClientOfflineCount"].isNull()) aegisClientOfflineCount_ = std::stoi(value["AegisClientOfflineCount"].asString()); diff --git a/aegis/src/model/DescribeScreenTitlesRequest.cc b/aegis/src/model/DescribeScreenTitlesRequest.cc new file mode 100644 index 000000000..48d6b76af --- /dev/null +++ b/aegis/src/model/DescribeScreenTitlesRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenTitlesRequest; + +DescribeScreenTitlesRequest::DescribeScreenTitlesRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenTitles") +{} + +DescribeScreenTitlesRequest::~DescribeScreenTitlesRequest() +{} + +std::string DescribeScreenTitlesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenTitlesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenTitlesResult.cc b/aegis/src/model/DescribeScreenTitlesResult.cc new file mode 100644 index 000000000..227546312 --- /dev/null +++ b/aegis/src/model/DescribeScreenTitlesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenTitlesResult::DescribeScreenTitlesResult() : + ServiceResult() +{} + +DescribeScreenTitlesResult::DescribeScreenTitlesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenTitlesResult::~DescribeScreenTitlesResult() +{} + +void DescribeScreenTitlesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSasScreenSettingList = value["SasScreenSettingList"]["SasScreenSetting"]; + for (auto value : allSasScreenSettingList) + { + SasScreenSetting sasScreenSettingListObject; + if(!value["ScreenID"].isNull()) + sasScreenSettingListObject.screenID = std::stol(value["ScreenID"].asString()); + if(!value["ScreenTitle"].isNull()) + sasScreenSettingListObject.screenTitle = value["ScreenTitle"].asString(); + sasScreenSettingList_.push_back(sasScreenSettingListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeScreenTitlesResult::getSasScreenSettingList()const +{ + return sasScreenSettingList_; +} + +bool DescribeScreenTitlesResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeScreenTopRequestAndFlowRequest.cc b/aegis/src/model/DescribeScreenTopRequestAndFlowRequest.cc new file mode 100644 index 000000000..10497d21d --- /dev/null +++ b/aegis/src/model/DescribeScreenTopRequestAndFlowRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeScreenTopRequestAndFlowRequest; + +DescribeScreenTopRequestAndFlowRequest::DescribeScreenTopRequestAndFlowRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeScreenTopRequestAndFlow") +{} + +DescribeScreenTopRequestAndFlowRequest::~DescribeScreenTopRequestAndFlowRequest() +{} + +std::string DescribeScreenTopRequestAndFlowRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeScreenTopRequestAndFlowRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeScreenTopRequestAndFlowResult.cc b/aegis/src/model/DescribeScreenTopRequestAndFlowResult.cc new file mode 100644 index 000000000..9adeb17ff --- /dev/null +++ b/aegis/src/model/DescribeScreenTopRequestAndFlowResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeScreenTopRequestAndFlowResult::DescribeScreenTopRequestAndFlowResult() : + ServiceResult() +{} + +DescribeScreenTopRequestAndFlowResult::DescribeScreenTopRequestAndFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeScreenTopRequestAndFlowResult::~DescribeScreenTopRequestAndFlowResult() +{} + +void DescribeScreenTopRequestAndFlowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTopRequestsIpCountDOS = value["TopRequestsIpCountDOS"]["TopRequestsIpCountDOSItem"]; + for (auto value : allTopRequestsIpCountDOS) + { + TopRequestsIpCountDOSItem topRequestsIpCountDOSObject; + if(!value["ReqCount"].isNull()) + topRequestsIpCountDOSObject.reqCount = std::stoi(value["ReqCount"].asString()); + if(!value["Ip"].isNull()) + topRequestsIpCountDOSObject.ip = value["Ip"].asString(); + topRequestsIpCountDOS_.push_back(topRequestsIpCountDOSObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["NormalFlow"].isNull()) + normalFlow_ = std::stoi(value["NormalFlow"].asString()); + if(!value["AbnormalFlow"].isNull()) + abnormalFlow_ = std::stoi(value["AbnormalFlow"].asString()); + +} + +int DescribeScreenTopRequestAndFlowResult::getNormalFlow()const +{ + return normalFlow_; +} + +std::vector DescribeScreenTopRequestAndFlowResult::getTopRequestsIpCountDOS()const +{ + return topRequestsIpCountDOS_; +} + +bool DescribeScreenTopRequestAndFlowResult::getSuccess()const +{ + return success_; +} + +int DescribeScreenTopRequestAndFlowResult::getAbnormalFlow()const +{ + return abnormalFlow_; +} + diff --git a/aegis/src/model/DescribeScreenVersionConfigResult.cc b/aegis/src/model/DescribeScreenVersionConfigResult.cc index 5b3389a98..076d82891 100644 --- a/aegis/src/model/DescribeScreenVersionConfigResult.cc +++ b/aegis/src/model/DescribeScreenVersionConfigResult.cc @@ -35,10 +35,13 @@ DescribeScreenVersionConfigResult::~DescribeScreenVersionConfigResult() void DescribeScreenVersionConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AssetLevel"].isNull()) assetLevel_ = std::stoi(value["AssetLevel"].asString()); diff --git a/aegis/src/model/DescribeSearchConditionResult.cc b/aegis/src/model/DescribeSearchConditionResult.cc index 9695f657c..7896af68d 100644 --- a/aegis/src/model/DescribeSearchConditionResult.cc +++ b/aegis/src/model/DescribeSearchConditionResult.cc @@ -35,10 +35,13 @@ DescribeSearchConditionResult::~DescribeSearchConditionResult() void DescribeSearchConditionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConditionList = value["ConditionList"]["Condition"]; for (auto value : allConditionList) diff --git a/aegis/src/model/DescribeSecureSuggestionResult.cc b/aegis/src/model/DescribeSecureSuggestionResult.cc index 08bd49068..1fbec1d1e 100644 --- a/aegis/src/model/DescribeSecureSuggestionResult.cc +++ b/aegis/src/model/DescribeSecureSuggestionResult.cc @@ -35,10 +35,13 @@ DescribeSecureSuggestionResult::~DescribeSecureSuggestionResult() void DescribeSecureSuggestionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuggestions = value["Suggestions"]["Suggestion"]; for (auto value : allSuggestions) diff --git a/aegis/src/model/DescribeSecurityStatInfoResult.cc b/aegis/src/model/DescribeSecurityStatInfoResult.cc index 33b3239c5..baa2afcd6 100644 --- a/aegis/src/model/DescribeSecurityStatInfoResult.cc +++ b/aegis/src/model/DescribeSecurityStatInfoResult.cc @@ -35,10 +35,13 @@ DescribeSecurityStatInfoResult::~DescribeSecurityStatInfoResult() void DescribeSecurityStatInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto securityEventNode = value["SecurityEvent"]; if(!securityEventNode["SeriousCount"].isNull()) diff --git a/aegis/src/model/DescribeSlsProjectResult.cc b/aegis/src/model/DescribeSlsProjectResult.cc index b84630ea5..3b03d2b0e 100644 --- a/aegis/src/model/DescribeSlsProjectResult.cc +++ b/aegis/src/model/DescribeSlsProjectResult.cc @@ -35,10 +35,13 @@ DescribeSlsProjectResult::~DescribeSlsProjectResult() void DescribeSlsProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSlsProjectData = value["SlsProjectData"]["SlsProjectDataItem"]; for (auto value : allSlsProjectData) diff --git a/aegis/src/model/DescribeStatisticsRequest.cc b/aegis/src/model/DescribeStatisticsRequest.cc index bb039cd0e..cc1bf3155 100644 --- a/aegis/src/model/DescribeStatisticsRequest.cc +++ b/aegis/src/model/DescribeStatisticsRequest.cc @@ -36,3 +36,14 @@ void DescribeStatisticsRequest::setSourceIp(const std::string& sourceIp) setCoreParameter("SourceIp", sourceIp); } +std::string DescribeStatisticsRequest::getFrom()const +{ + return from_; +} + +void DescribeStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + diff --git a/aegis/src/model/DescribeStatisticsResult.cc b/aegis/src/model/DescribeStatisticsResult.cc index abd1b6319..11c0c3f86 100644 --- a/aegis/src/model/DescribeStatisticsResult.cc +++ b/aegis/src/model/DescribeStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeStatisticsResult::~DescribeStatisticsResult() void DescribeStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto statisticsNode = value["Statistics"]; if(!statisticsNode["VulAsapSum"].isNull()) diff --git a/aegis/src/model/DescribeStrategyExecDetailResult.cc b/aegis/src/model/DescribeStrategyExecDetailResult.cc index 57c21d0f2..c663c688c 100644 --- a/aegis/src/model/DescribeStrategyExecDetailResult.cc +++ b/aegis/src/model/DescribeStrategyExecDetailResult.cc @@ -35,10 +35,13 @@ DescribeStrategyExecDetailResult::~DescribeStrategyExecDetailResult() void DescribeStrategyExecDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFailedEcsList = value["FailedEcsList"]["FailedEcs"]; for (auto value : allFailedEcsList) @@ -50,6 +53,8 @@ void DescribeStrategyExecDetailResult::parse(const std::string &payload) failedEcsListObject.instanceName = value["InstanceName"].asString(); if(!value["IP"].isNull()) failedEcsListObject.iP = value["IP"].asString(); + if(!value["InternetIp"].isNull()) + failedEcsListObject.internetIp = value["InternetIp"].asString(); if(!value["IntranetIp"].isNull()) failedEcsListObject.intranetIp = value["IntranetIp"].asString(); failedEcsList_.push_back(failedEcsListObject); diff --git a/aegis/src/model/DescribeStrategyProcessResult.cc b/aegis/src/model/DescribeStrategyProcessResult.cc index c51a131dc..813a3a285 100644 --- a/aegis/src/model/DescribeStrategyProcessResult.cc +++ b/aegis/src/model/DescribeStrategyProcessResult.cc @@ -35,10 +35,13 @@ DescribeStrategyProcessResult::~DescribeStrategyProcessResult() void DescribeStrategyProcessResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["StrategyId"].isNull()) strategyId_ = std::stol(value["StrategyId"].asString()); diff --git a/aegis/src/model/DescribeStrategyTargetResult.cc b/aegis/src/model/DescribeStrategyTargetResult.cc index bff3f52e1..1c8dbf144 100644 --- a/aegis/src/model/DescribeStrategyTargetResult.cc +++ b/aegis/src/model/DescribeStrategyTargetResult.cc @@ -35,10 +35,13 @@ DescribeStrategyTargetResult::~DescribeStrategyTargetResult() void DescribeStrategyTargetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStrategyTargets = value["StrategyTargets"]["StrategyTarget"]; for (auto value : allStrategyTargets) diff --git a/aegis/src/model/DescribeStratetyDetailResult.cc b/aegis/src/model/DescribeStratetyDetailResult.cc index 0d1955c37..ca813a693 100644 --- a/aegis/src/model/DescribeStratetyDetailResult.cc +++ b/aegis/src/model/DescribeStratetyDetailResult.cc @@ -35,10 +35,13 @@ DescribeStratetyDetailResult::~DescribeStratetyDetailResult() void DescribeStratetyDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto strategyNode = value["Strategy"]; if(!strategyNode["CycleDays"].isNull()) diff --git a/aegis/src/model/DescribeStratetyResult.cc b/aegis/src/model/DescribeStratetyResult.cc index b2a95075e..4d0f9e75e 100644 --- a/aegis/src/model/DescribeStratetyResult.cc +++ b/aegis/src/model/DescribeStratetyResult.cc @@ -35,10 +35,13 @@ DescribeStratetyResult::~DescribeStratetyResult() void DescribeStratetyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStrategies = value["Strategies"]["Strategy"]; for (auto value : allStrategies) diff --git a/aegis/src/model/DescribeSummaryInfoResult.cc b/aegis/src/model/DescribeSummaryInfoResult.cc index bb046429b..295e98d90 100644 --- a/aegis/src/model/DescribeSummaryInfoResult.cc +++ b/aegis/src/model/DescribeSummaryInfoResult.cc @@ -35,10 +35,13 @@ DescribeSummaryInfoResult::~DescribeSummaryInfoResult() void DescribeSummaryInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AegisClientOfflineCount"].isNull()) aegisClientOfflineCount_ = std::stoi(value["AegisClientOfflineCount"].asString()); diff --git a/aegis/src/model/DescribeSupervisonInfoRequest.cc b/aegis/src/model/DescribeSupervisonInfoRequest.cc new file mode 100644 index 000000000..1b2b83c4a --- /dev/null +++ b/aegis/src/model/DescribeSupervisonInfoRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeSupervisonInfoRequest; + +DescribeSupervisonInfoRequest::DescribeSupervisonInfoRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeSupervisonInfo") +{} + +DescribeSupervisonInfoRequest::~DescribeSupervisonInfoRequest() +{} + +std::string DescribeSupervisonInfoRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeSupervisonInfoRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeSupervisonInfoRequest::getLang()const +{ + return lang_; +} + +void DescribeSupervisonInfoRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/DescribeSupervisonInfoResult.cc b/aegis/src/model/DescribeSupervisonInfoResult.cc new file mode 100644 index 000000000..cb2adb9cb --- /dev/null +++ b/aegis/src/model/DescribeSupervisonInfoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeSupervisonInfoResult::DescribeSupervisonInfoResult() : + ServiceResult() +{} + +DescribeSupervisonInfoResult::DescribeSupervisonInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSupervisonInfoResult::~DescribeSupervisonInfoResult() +{} + +void DescribeSupervisonInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["LatestScanTime"].isNull()) + latestScanTime_ = std::stol(value["LatestScanTime"].asString()); + if(!value["VirusDatabaseUpdateTime"].isNull()) + virusDatabaseUpdateTime_ = std::stol(value["VirusDatabaseUpdateTime"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +long DescribeSupervisonInfoResult::getVirusDatabaseUpdateTime()const +{ + return virusDatabaseUpdateTime_; +} + +long DescribeSupervisonInfoResult::getLatestScanTime()const +{ + return latestScanTime_; +} + +bool DescribeSupervisonInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeSuspEventDetailResult.cc b/aegis/src/model/DescribeSuspEventDetailResult.cc index 29e79a636..762ed2636 100644 --- a/aegis/src/model/DescribeSuspEventDetailResult.cc +++ b/aegis/src/model/DescribeSuspEventDetailResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventDetailResult::~DescribeSuspEventDetailResult() void DescribeSuspEventDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDetails = value["Details"]["QuaraFile"]; for (auto value : allDetails) @@ -54,6 +57,18 @@ void DescribeSuspEventDetailResult::parse(const std::string &payload) detailsObject.value = value["Value"].asString(); details_.push_back(detailsObject); } + auto allEventNotes = value["EventNotes"]["EventNote"]; + for (auto value : allEventNotes) + { + EventNote eventNotesObject; + if(!value["NoteTime"].isNull()) + eventNotesObject.noteTime = value["NoteTime"].asString(); + if(!value["Note"].isNull()) + eventNotesObject.note = value["Note"].asString(); + if(!value["NoteId"].isNull()) + eventNotesObject.noteId = std::stol(value["NoteId"].asString()); + eventNotes_.push_back(eventNotesObject); + } if(!value["LastTime"].isNull()) lastTime_ = value["LastTime"].asString(); if(!value["Id"].isNull()) @@ -88,6 +103,10 @@ void DescribeSuspEventDetailResult::parse(const std::string &payload) eventName_ = value["EventName"].asString(); if(!value["CanBeDealOnLine"].isNull()) canBeDealOnLine_ = value["CanBeDealOnLine"].asString() == "true"; + if(!value["AccessCode"].isNull()) + accessCode_ = value["AccessCode"].asString(); + if(!value["AlarmUniqueInfo"].isNull()) + alarmUniqueInfo_ = value["AlarmUniqueInfo"].asString(); } @@ -106,6 +125,16 @@ std::string DescribeSuspEventDetailResult::getEventStatus()const return eventStatus_; } +std::string DescribeSuspEventDetailResult::getAccessCode()const +{ + return accessCode_; +} + +std::vector DescribeSuspEventDetailResult::getEventNotes()const +{ + return eventNotes_; +} + std::string DescribeSuspEventDetailResult::getEventName()const { return eventName_; @@ -161,6 +190,11 @@ std::string DescribeSuspEventDetailResult::getInternetIp()const return internetIp_; } +std::string DescribeSuspEventDetailResult::getAlarmUniqueInfo()const +{ + return alarmUniqueInfo_; +} + std::string DescribeSuspEventDetailResult::getLevel()const { return level_; diff --git a/aegis/src/model/DescribeSuspEventExportInfoResult.cc b/aegis/src/model/DescribeSuspEventExportInfoResult.cc index 74cd2ee24..98d6f853e 100644 --- a/aegis/src/model/DescribeSuspEventExportInfoResult.cc +++ b/aegis/src/model/DescribeSuspEventExportInfoResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventExportInfoResult::~DescribeSuspEventExportInfoResult() void DescribeSuspEventExportInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["FileName"].isNull()) fileName_ = value["FileName"].asString(); diff --git a/aegis/src/model/DescribeSuspEventQuaraFilesResult.cc b/aegis/src/model/DescribeSuspEventQuaraFilesResult.cc index b10057907..f6443c686 100644 --- a/aegis/src/model/DescribeSuspEventQuaraFilesResult.cc +++ b/aegis/src/model/DescribeSuspEventQuaraFilesResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventQuaraFilesResult::~DescribeSuspEventQuaraFilesResult() void DescribeSuspEventQuaraFilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQuaraFiles = value["QuaraFiles"]["QuaraFile"]; for (auto value : allQuaraFiles) diff --git a/aegis/src/model/DescribeSuspEventTypesResult.cc b/aegis/src/model/DescribeSuspEventTypesResult.cc index 1d336aab4..87daac7c0 100644 --- a/aegis/src/model/DescribeSuspEventTypesResult.cc +++ b/aegis/src/model/DescribeSuspEventTypesResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventTypesResult::~DescribeSuspEventTypesResult() void DescribeSuspEventTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEventTypes = value["EventTypes"]["Data"]; for (auto value : allEventTypes) diff --git a/aegis/src/model/DescribeSuspEventUserSettingResult.cc b/aegis/src/model/DescribeSuspEventUserSettingResult.cc index 11cfeba74..f328bb452 100644 --- a/aegis/src/model/DescribeSuspEventUserSettingResult.cc +++ b/aegis/src/model/DescribeSuspEventUserSettingResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventUserSettingResult::~DescribeSuspEventUserSettingResult() void DescribeSuspEventUserSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLevelsOn = value["LevelsOn"]["StringItem"]; for (const auto &item : allLevelsOn) diff --git a/aegis/src/model/DescribeSuspEventsResult.cc b/aegis/src/model/DescribeSuspEventsResult.cc index 81fef5d58..14272e970 100644 --- a/aegis/src/model/DescribeSuspEventsResult.cc +++ b/aegis/src/model/DescribeSuspEventsResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventsResult::~DescribeSuspEventsResult() void DescribeSuspEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspEvents = value["SuspEvents"]["WarningSummary"]; for (auto value : allSuspEvents) diff --git a/aegis/src/model/DescribeSuspTrendStatisticsResult.cc b/aegis/src/model/DescribeSuspTrendStatisticsResult.cc index e0486a6bb..1ba03ea14 100644 --- a/aegis/src/model/DescribeSuspTrendStatisticsResult.cc +++ b/aegis/src/model/DescribeSuspTrendStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeSuspTrendStatisticsResult::~DescribeSuspTrendStatisticsResult() void DescribeSuspTrendStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspiciousItems = value["SuspiciousItems"]["StringItem"]; for (const auto &item : allSuspiciousItems) diff --git a/aegis/src/model/DescribeSuspiciousEventsResult.cc b/aegis/src/model/DescribeSuspiciousEventsResult.cc index 15f3bd249..7d2bbeadd 100644 --- a/aegis/src/model/DescribeSuspiciousEventsResult.cc +++ b/aegis/src/model/DescribeSuspiciousEventsResult.cc @@ -35,10 +35,13 @@ DescribeSuspiciousEventsResult::~DescribeSuspiciousEventsResult() void DescribeSuspiciousEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogList = value["LogList"]["LogListItem"]; for (auto value : allLogList) diff --git a/aegis/src/model/DescribeSuspiciousExportInfoResult.cc b/aegis/src/model/DescribeSuspiciousExportInfoResult.cc index ef414e5e4..f3b174c60 100644 --- a/aegis/src/model/DescribeSuspiciousExportInfoResult.cc +++ b/aegis/src/model/DescribeSuspiciousExportInfoResult.cc @@ -35,10 +35,13 @@ DescribeSuspiciousExportInfoResult::~DescribeSuspiciousExportInfoResult() void DescribeSuspiciousExportInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stoi(value["Id"].asString()); diff --git a/aegis/src/model/DescribeSuspiciousOverallConfigResult.cc b/aegis/src/model/DescribeSuspiciousOverallConfigResult.cc index f8858ce8c..a3c599960 100644 --- a/aegis/src/model/DescribeSuspiciousOverallConfigResult.cc +++ b/aegis/src/model/DescribeSuspiciousOverallConfigResult.cc @@ -35,10 +35,13 @@ DescribeSuspiciousOverallConfigResult::~DescribeSuspiciousOverallConfigResult() void DescribeSuspiciousOverallConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto overallConfigNode = value["OverallConfig"]; if(!overallConfigNode["Type"].isNull()) diff --git a/aegis/src/model/DescribeSuspiciousUUIDConfigResult.cc b/aegis/src/model/DescribeSuspiciousUUIDConfigResult.cc index 1b2e0baf8..785ccd6f8 100644 --- a/aegis/src/model/DescribeSuspiciousUUIDConfigResult.cc +++ b/aegis/src/model/DescribeSuspiciousUUIDConfigResult.cc @@ -35,10 +35,13 @@ DescribeSuspiciousUUIDConfigResult::~DescribeSuspiciousUUIDConfigResult() void DescribeSuspiciousUUIDConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUUIDList = value["UUIDList"]["StringItem"]; for (const auto &item : allUUIDList) diff --git a/aegis/src/model/DescribeTargetConfigResult.cc b/aegis/src/model/DescribeTargetConfigResult.cc index 630e6801b..4641e8fb2 100644 --- a/aegis/src/model/DescribeTargetConfigResult.cc +++ b/aegis/src/model/DescribeTargetConfigResult.cc @@ -35,10 +35,13 @@ DescribeTargetConfigResult::~DescribeTargetConfigResult() void DescribeTargetConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTargetConfigs = value["TargetConfigs"]["TargetConfig"]; for (auto value : allTargetConfigs) diff --git a/aegis/src/model/DescribeTargetResult.cc b/aegis/src/model/DescribeTargetResult.cc index d7478b652..62002ffcc 100644 --- a/aegis/src/model/DescribeTargetResult.cc +++ b/aegis/src/model/DescribeTargetResult.cc @@ -35,10 +35,13 @@ DescribeTargetResult::~DescribeTargetResult() void DescribeTargetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTargets = value["Targets"]["Target"]; for (auto value : allTargets) diff --git a/aegis/src/model/DescribeTopRiskyAssetsRequest.cc b/aegis/src/model/DescribeTopRiskyAssetsRequest.cc index db14fa61e..8dac46e76 100644 --- a/aegis/src/model/DescribeTopRiskyAssetsRequest.cc +++ b/aegis/src/model/DescribeTopRiskyAssetsRequest.cc @@ -47,3 +47,14 @@ void DescribeTopRiskyAssetsRequest::setPageSize(int pageSize) setCoreParameter("PageSize", std::to_string(pageSize)); } +std::string DescribeTopRiskyAssetsRequest::getFrom()const +{ + return from_; +} + +void DescribeTopRiskyAssetsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + diff --git a/aegis/src/model/DescribeTopRiskyAssetsResult.cc b/aegis/src/model/DescribeTopRiskyAssetsResult.cc index b72defc52..d199cb872 100644 --- a/aegis/src/model/DescribeTopRiskyAssetsResult.cc +++ b/aegis/src/model/DescribeTopRiskyAssetsResult.cc @@ -35,10 +35,13 @@ DescribeTopRiskyAssetsResult::~DescribeTopRiskyAssetsResult() void DescribeTopRiskyAssetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopRiskyAssets = value["TopRiskyAssets"]["TopRiskyAsset"]; for (auto value : allTopRiskyAssets) diff --git a/aegis/src/model/DescribeTopicListResult.cc b/aegis/src/model/DescribeTopicListResult.cc index c167e5a68..61f711647 100644 --- a/aegis/src/model/DescribeTopicListResult.cc +++ b/aegis/src/model/DescribeTopicListResult.cc @@ -35,10 +35,13 @@ DescribeTopicListResult::~DescribeTopicListResult() void DescribeTopicListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopicList = value["TopicList"]["StringItem"]; for (const auto &item : allTopicList) diff --git a/aegis/src/model/DescribeTotalStatisticsResult.cc b/aegis/src/model/DescribeTotalStatisticsResult.cc index cf70da617..0f6521d47 100644 --- a/aegis/src/model/DescribeTotalStatisticsResult.cc +++ b/aegis/src/model/DescribeTotalStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeTotalStatisticsResult::~DescribeTotalStatisticsResult() void DescribeTotalStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VulAsapSum"].isNull()) vulAsapSum_ = std::stoi(value["VulAsapSum"].asString()); diff --git a/aegis/src/model/DescribeTraceInfoDetailRequest.cc b/aegis/src/model/DescribeTraceInfoDetailRequest.cc index 561bdc937..5234f736e 100644 --- a/aegis/src/model/DescribeTraceInfoDetailRequest.cc +++ b/aegis/src/model/DescribeTraceInfoDetailRequest.cc @@ -91,3 +91,14 @@ void DescribeTraceInfoDetailRequest::setUuid(const std::string& uuid) setCoreParameter("Uuid", uuid); } +long DescribeTraceInfoDetailRequest::getIncidentTime()const +{ + return incidentTime_; +} + +void DescribeTraceInfoDetailRequest::setIncidentTime(long incidentTime) +{ + incidentTime_ = incidentTime; + setCoreParameter("IncidentTime", std::to_string(incidentTime)); +} + diff --git a/aegis/src/model/DescribeTraceInfoDetailResult.cc b/aegis/src/model/DescribeTraceInfoDetailResult.cc index ae2824460..412047aab 100644 --- a/aegis/src/model/DescribeTraceInfoDetailResult.cc +++ b/aegis/src/model/DescribeTraceInfoDetailResult.cc @@ -35,10 +35,13 @@ DescribeTraceInfoDetailResult::~DescribeTraceInfoDetailResult() void DescribeTraceInfoDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto traceInfoDetailNode = value["TraceInfoDetail"]; auto allEdgeList = value["EdgeList"]["Edge"]; @@ -53,6 +56,8 @@ void DescribeTraceInfoDetailResult::parse(const std::string &payload) edgeObject.count = std::stoi(value["Count"].asString()); if(!value["Time"].isNull()) edgeObject.time = value["Time"].asString(); + if(!value["Type"].isNull()) + edgeObject.type = value["Type"].asString(); traceInfoDetail_.edgeList.push_back(edgeObject); } auto allVertexList = value["VertexList"]["Vertex"]; @@ -111,6 +116,22 @@ void DescribeTraceInfoDetailResult::parse(const std::string &payload) entityTypeObject.gmtCreate = std::stol(value["GmtCreate"].asString()); traceInfoDetail_.entityTypeList.push_back(entityTypeObject); } + auto allRelationTypeList = value["RelationTypeList"]["RelationType"]; + for (auto value : allRelationTypeList) + { + TraceInfoDetail::RelationType relationTypeObject; + if(!value["RelationTypeId"].isNull()) + relationTypeObject.relationTypeId = value["RelationTypeId"].asString(); + if(!value["Name"].isNull()) + relationTypeObject.name = value["Name"].asString(); + if(!value["Directed"].isNull()) + relationTypeObject.directed = std::stoi(value["Directed"].asString()); + if(!value["DisplayColor"].isNull()) + relationTypeObject.displayColor = value["DisplayColor"].asString(); + if(!value["ShowType"].isNull()) + relationTypeObject.showType = value["ShowType"].asString(); + traceInfoDetail_.relationTypeList.push_back(relationTypeObject); + } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/aegis/src/model/DescribeTraceInfoNodeListRequest.cc b/aegis/src/model/DescribeTraceInfoNodeListRequest.cc index c4bb6df1c..d79b933a5 100644 --- a/aegis/src/model/DescribeTraceInfoNodeListRequest.cc +++ b/aegis/src/model/DescribeTraceInfoNodeListRequest.cc @@ -124,3 +124,14 @@ void DescribeTraceInfoNodeListRequest::setUuid(const std::string& uuid) setCoreParameter("Uuid", uuid); } +long DescribeTraceInfoNodeListRequest::getIncidentTime()const +{ + return incidentTime_; +} + +void DescribeTraceInfoNodeListRequest::setIncidentTime(long incidentTime) +{ + incidentTime_ = incidentTime; + setCoreParameter("IncidentTime", std::to_string(incidentTime)); +} + diff --git a/aegis/src/model/DescribeTraceInfoNodeListResult.cc b/aegis/src/model/DescribeTraceInfoNodeListResult.cc index cb9aee2b5..9b11a7d4b 100644 --- a/aegis/src/model/DescribeTraceInfoNodeListResult.cc +++ b/aegis/src/model/DescribeTraceInfoNodeListResult.cc @@ -35,10 +35,13 @@ DescribeTraceInfoNodeListResult::~DescribeTraceInfoNodeListResult() void DescribeTraceInfoNodeListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto nodeListInfoNode = value["NodeListInfo"]; auto allEdgeList = value["EdgeList"]["Edge"]; diff --git a/aegis/src/model/DescribeTraceInfoNodeRequest.cc b/aegis/src/model/DescribeTraceInfoNodeRequest.cc index d40b26d42..1d49d6b04 100644 --- a/aegis/src/model/DescribeTraceInfoNodeRequest.cc +++ b/aegis/src/model/DescribeTraceInfoNodeRequest.cc @@ -80,6 +80,17 @@ void DescribeTraceInfoNodeRequest::setType(const std::string& type) setCoreParameter("Type", type); } +long DescribeTraceInfoNodeRequest::getIncidentTime()const +{ + return incidentTime_; +} + +void DescribeTraceInfoNodeRequest::setIncidentTime(long incidentTime) +{ + incidentTime_ = incidentTime; + setCoreParameter("IncidentTime", std::to_string(incidentTime)); +} + std::string DescribeTraceInfoNodeRequest::getUuid()const { return uuid_; diff --git a/aegis/src/model/DescribeTraceInfoNodeResult.cc b/aegis/src/model/DescribeTraceInfoNodeResult.cc index 4c25eaa5c..34cb8aaf3 100644 --- a/aegis/src/model/DescribeTraceInfoNodeResult.cc +++ b/aegis/src/model/DescribeTraceInfoNodeResult.cc @@ -35,10 +35,13 @@ DescribeTraceInfoNodeResult::~DescribeTraceInfoNodeResult() void DescribeTraceInfoNodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto nodeNode = value["Node"]; if(!nodeNode["Name"].isNull()) diff --git a/aegis/src/model/DescribeUserSettingResult.cc b/aegis/src/model/DescribeUserSettingResult.cc index ea0afaaaa..f132335a5 100644 --- a/aegis/src/model/DescribeUserSettingResult.cc +++ b/aegis/src/model/DescribeUserSettingResult.cc @@ -35,10 +35,13 @@ DescribeUserSettingResult::~DescribeUserSettingResult() void DescribeUserSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InvalidWarningKeepDays"].isNull()) invalidWarningKeepDays_ = std::stoi(value["InvalidWarningKeepDays"].asString()); diff --git a/aegis/src/model/DescribeUuidConfigResult.cc b/aegis/src/model/DescribeUuidConfigResult.cc index 895dc8f9d..3bb7ea276 100644 --- a/aegis/src/model/DescribeUuidConfigResult.cc +++ b/aegis/src/model/DescribeUuidConfigResult.cc @@ -35,10 +35,13 @@ DescribeUuidConfigResult::~DescribeUuidConfigResult() void DescribeUuidConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Flag"].isNull()) diff --git a/aegis/src/model/DescribeVersionConfigResult.cc b/aegis/src/model/DescribeVersionConfigResult.cc index 7470d027a..844a77efa 100644 --- a/aegis/src/model/DescribeVersionConfigResult.cc +++ b/aegis/src/model/DescribeVersionConfigResult.cc @@ -35,10 +35,13 @@ DescribeVersionConfigResult::~DescribeVersionConfigResult() void DescribeVersionConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AssetLevel"].isNull()) assetLevel_ = std::stoi(value["AssetLevel"].asString()); @@ -78,6 +81,8 @@ void DescribeVersionConfigResult::parse(const std::string &payload) appWhiteList_ = std::stoi(value["AppWhiteList"].asString()); if(!value["SlsCapacity"].isNull()) slsCapacity_ = std::stol(value["SlsCapacity"].asString()); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); } @@ -131,6 +136,11 @@ int DescribeVersionConfigResult::getSasLog()const return sasLog_; } +long DescribeVersionConfigResult::getGmtCreate()const +{ + return gmtCreate_; +} + long DescribeVersionConfigResult::getReleaseTime()const { return releaseTime_; diff --git a/aegis/src/model/DescribeVulBatchResult.cc b/aegis/src/model/DescribeVulBatchResult.cc index d94362f7f..7c6b5eefb 100644 --- a/aegis/src/model/DescribeVulBatchResult.cc +++ b/aegis/src/model/DescribeVulBatchResult.cc @@ -35,10 +35,13 @@ DescribeVulBatchResult::~DescribeVulBatchResult() void DescribeVulBatchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBatchNames = value["BatchNames"]["BatchName"]; for (const auto &item : allBatchNames) diff --git a/aegis/src/model/DescribeVulConfigResult.cc b/aegis/src/model/DescribeVulConfigResult.cc index 4a6c30ff5..d2055641c 100644 --- a/aegis/src/model/DescribeVulConfigResult.cc +++ b/aegis/src/model/DescribeVulConfigResult.cc @@ -35,10 +35,13 @@ DescribeVulConfigResult::~DescribeVulConfigResult() void DescribeVulConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTargetConfigs = value["TargetConfigs"]["TargetConfig"]; for (auto value : allTargetConfigs) diff --git a/aegis/src/model/DescribeVulDetailsResult.cc b/aegis/src/model/DescribeVulDetailsResult.cc index a63652e8f..64c829887 100644 --- a/aegis/src/model/DescribeVulDetailsResult.cc +++ b/aegis/src/model/DescribeVulDetailsResult.cc @@ -35,10 +35,13 @@ DescribeVulDetailsResult::~DescribeVulDetailsResult() void DescribeVulDetailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCves = value["Cves"]["Cve"]; for (auto value : allCves) diff --git a/aegis/src/model/DescribeVulExportInfoResult.cc b/aegis/src/model/DescribeVulExportInfoResult.cc index 72f9cece2..8f660716f 100644 --- a/aegis/src/model/DescribeVulExportInfoResult.cc +++ b/aegis/src/model/DescribeVulExportInfoResult.cc @@ -35,10 +35,13 @@ DescribeVulExportInfoResult::~DescribeVulExportInfoResult() void DescribeVulExportInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/aegis/src/model/DescribeVulLevelResult.cc b/aegis/src/model/DescribeVulLevelResult.cc index 037f6390a..43a2ba8bc 100644 --- a/aegis/src/model/DescribeVulLevelResult.cc +++ b/aegis/src/model/DescribeVulLevelResult.cc @@ -35,10 +35,13 @@ DescribeVulLevelResult::~DescribeVulLevelResult() void DescribeVulLevelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConcernLevels = value["ConcernLevels"]["ConcernLevel"]; for (const auto &item : allConcernLevels) diff --git a/aegis/src/model/DescribeVulLevelStatisticsRequest.cc b/aegis/src/model/DescribeVulLevelStatisticsRequest.cc index 46126a5e3..8ad47157f 100644 --- a/aegis/src/model/DescribeVulLevelStatisticsRequest.cc +++ b/aegis/src/model/DescribeVulLevelStatisticsRequest.cc @@ -47,6 +47,17 @@ void DescribeVulLevelStatisticsRequest::setEndTs(long endTs) setCoreParameter("EndTs", std::to_string(endTs)); } +std::string DescribeVulLevelStatisticsRequest::getFrom()const +{ + return from_; +} + +void DescribeVulLevelStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + long DescribeVulLevelStatisticsRequest::getStartTs()const { return startTs_; @@ -58,6 +69,17 @@ void DescribeVulLevelStatisticsRequest::setStartTs(long startTs) setCoreParameter("StartTs", std::to_string(startTs)); } +std::string DescribeVulLevelStatisticsRequest::getIncludeApp()const +{ + return includeApp_; +} + +void DescribeVulLevelStatisticsRequest::setIncludeApp(const std::string& includeApp) +{ + includeApp_ = includeApp; + setCoreParameter("IncludeApp", includeApp); +} + std::string DescribeVulLevelStatisticsRequest::getUuids()const { return uuids_; diff --git a/aegis/src/model/DescribeVulLevelStatisticsResult.cc b/aegis/src/model/DescribeVulLevelStatisticsResult.cc index 857cd438f..a9dae9469 100644 --- a/aegis/src/model/DescribeVulLevelStatisticsResult.cc +++ b/aegis/src/model/DescribeVulLevelStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeVulLevelStatisticsResult::~DescribeVulLevelStatisticsResult() void DescribeVulLevelStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLevelStatistics = value["LevelStatistics"]["LevelStatistic"]; for (auto value : allLevelStatistics) @@ -54,6 +57,8 @@ void DescribeVulLevelStatisticsResult::parse(const std::string &payload) levelStatisticsObject.sysNum = std::stoi(value["SysNum"].asString()); if(!value["CmsNum"].isNull()) levelStatisticsObject.cmsNum = std::stoi(value["CmsNum"].asString()); + if(!value["AppNum"].isNull()) + levelStatisticsObject.appNum = std::stoi(value["AppNum"].asString()); if(!value["CmsDealedTotalNum"].isNull()) levelStatisticsObject.cmsDealedTotalNum = std::stoi(value["CmsDealedTotalNum"].asString()); if(!value["VulDealedTotalNum"].isNull()) diff --git a/aegis/src/model/DescribeVulListRequest.cc b/aegis/src/model/DescribeVulListRequest.cc index 580ee7f30..3ca7a62c8 100644 --- a/aegis/src/model/DescribeVulListRequest.cc +++ b/aegis/src/model/DescribeVulListRequest.cc @@ -58,6 +58,28 @@ void DescribeVulListRequest::setResource(const std::string& resource) setCoreParameter("Resource", resource); } +std::string DescribeVulListRequest::getCveId()const +{ + return cveId_; +} + +void DescribeVulListRequest::setCveId(const std::string& cveId) +{ + cveId_ = cveId; + setCoreParameter("CveId", cveId); +} + +std::string DescribeVulListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeVulListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + std::string DescribeVulListRequest::getRemark()const { return remark_; @@ -168,6 +190,17 @@ void DescribeVulListRequest::setPageSize(int pageSize) setCoreParameter("PageSize", std::to_string(pageSize)); } +std::string DescribeVulListRequest::getIds()const +{ + return ids_; +} + +void DescribeVulListRequest::setIds(const std::string& ids) +{ + ids_ = ids; + setCoreParameter("Ids", ids); +} + std::string DescribeVulListRequest::getLang()const { return lang_; diff --git a/aegis/src/model/DescribeVulListResult.cc b/aegis/src/model/DescribeVulListResult.cc index a9f8b0e0e..533c4c200 100644 --- a/aegis/src/model/DescribeVulListResult.cc +++ b/aegis/src/model/DescribeVulListResult.cc @@ -35,10 +35,13 @@ DescribeVulListResult::~DescribeVulListResult() void DescribeVulListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVulRecords = value["VulRecords"]["VulRecord"]; for (auto value : allVulRecords) @@ -92,10 +95,16 @@ void DescribeVulListResult::parse(const std::string &payload) vulRecordsObject.intranetIp = value["IntranetIp"].asString(); if(!value["Ip"].isNull()) vulRecordsObject.ip = value["Ip"].asString(); + if(!value["Online"].isNull()) + vulRecordsObject.online = value["Online"].asString() == "true"; + if(!value["RegionId"].isNull()) + vulRecordsObject.regionId = value["RegionId"].asString(); if(!value["OsVersion"].isNull()) vulRecordsObject.osVersion = value["OsVersion"].asString(); if(!value["NeedReboot"].isNull()) vulRecordsObject.needReboot = value["NeedReboot"].asString(); + if(!value["CanFix"].isNull()) + vulRecordsObject.canFix = value["CanFix"].asString(); auto extendContentJsonNode = value["ExtendContentJson"]; if(!extendContentJsonNode["Os"].isNull()) vulRecordsObject.extendContentJson.os = extendContentJsonNode["Os"].asString(); @@ -117,27 +126,49 @@ void DescribeVulListResult::parse(const std::string &payload) vulRecordsObject.extendContentJson.absolutePath = extendContentJsonNode["AbsolutePath"].asString(); if(!extendContentJsonNode["Target"].isNull()) vulRecordsObject.extendContentJson.target = extendContentJsonNode["Target"].asString(); - if(!extendContentJsonNode["Proof"].isNull()) - vulRecordsObject.extendContentJson.proof = extendContentJsonNode["Proof"].asString(); + if(!extendContentJsonNode["EmgProof"].isNull()) + vulRecordsObject.extendContentJson.emgProof = extendContentJsonNode["EmgProof"].asString(); if(!extendContentJsonNode["Reason"].isNull()) vulRecordsObject.extendContentJson.reason = extendContentJsonNode["Reason"].asString(); - auto allRpmEntityList = value["RpmEntityList"]["RpmEntityListItem"]; + if(!extendContentJsonNode["Title"].isNull()) + vulRecordsObject.extendContentJson.title = extendContentJsonNode["Title"].asString(); + if(!extendContentJsonNode["Description"].isNull()) + vulRecordsObject.extendContentJson.description = extendContentJsonNode["Description"].asString(); + if(!extendContentJsonNode["Ip"].isNull()) + vulRecordsObject.extendContentJson.ip = extendContentJsonNode["Ip"].asString(); + if(!extendContentJsonNode["Owasp"].isNull()) + vulRecordsObject.extendContentJson.owasp = extendContentJsonNode["Owasp"].asString(); + if(!extendContentJsonNode["Cwe"].isNull()) + vulRecordsObject.extendContentJson.cwe = extendContentJsonNode["Cwe"].asString(); + if(!extendContentJsonNode["Wasc"].isNull()) + vulRecordsObject.extendContentJson.wasc = extendContentJsonNode["Wasc"].asString(); + if(!extendContentJsonNode["VulType"].isNull()) + vulRecordsObject.extendContentJson.vulType = extendContentJsonNode["VulType"].asString(); + if(!extendContentJsonNode["Effect"].isNull()) + vulRecordsObject.extendContentJson.effect = extendContentJsonNode["Effect"].asString(); + if(!extendContentJsonNode["Solution"].isNull()) + vulRecordsObject.extendContentJson.solution = extendContentJsonNode["Solution"].asString(); + if(!extendContentJsonNode["Reference"].isNull()) + vulRecordsObject.extendContentJson.reference = extendContentJsonNode["Reference"].asString(); + if(!extendContentJsonNode["Proof"].isNull()) + vulRecordsObject.extendContentJson.proof = extendContentJsonNode["Proof"].asString(); + auto allRpmEntityList = value["RpmEntityList"]["RpmEntity"]; for (auto value : allRpmEntityList) { - VulRecord::ExtendContentJson::RpmEntityListItem rpmEntityListItemObject; + VulRecord::ExtendContentJson::RpmEntity rpmEntityObject; if(!value["FullVersion"].isNull()) - rpmEntityListItemObject.fullVersion = value["FullVersion"].asString(); + rpmEntityObject.fullVersion = value["FullVersion"].asString(); if(!value["MatchDetail"].isNull()) - rpmEntityListItemObject.matchDetail = value["MatchDetail"].asString(); + rpmEntityObject.matchDetail = value["MatchDetail"].asString(); if(!value["Name"].isNull()) - rpmEntityListItemObject.name = value["Name"].asString(); + rpmEntityObject.name = value["Name"].asString(); if(!value["Path"].isNull()) - rpmEntityListItemObject.path = value["Path"].asString(); + rpmEntityObject.path = value["Path"].asString(); if(!value["UpdateCmd"].isNull()) - rpmEntityListItemObject.updateCmd = value["UpdateCmd"].asString(); + rpmEntityObject.updateCmd = value["UpdateCmd"].asString(); if(!value["Version"].isNull()) - rpmEntityListItemObject.version = value["Version"].asString(); - vulRecordsObject.extendContentJson.rpmEntityList.push_back(rpmEntityListItemObject); + rpmEntityObject.version = value["Version"].asString(); + vulRecordsObject.extendContentJson.rpmEntityList.push_back(rpmEntityObject); } auto necessityNode = extendContentJsonNode["Necessity"]; if(!necessityNode["Cvss_factor"].isNull()) @@ -156,9 +187,35 @@ void DescribeVulListResult::parse(const std::string &payload) vulRecordsObject.extendContentJson.necessity.total_score = necessityNode["Total_score"].asString(); if(!necessityNode["Time_factor"].isNull()) vulRecordsObject.extendContentJson.necessity.time_factor = necessityNode["Time_factor"].asString(); - auto allCveList = extendContentJsonNode["cveList"]["CveList"]; - for (auto value : allCveList) - vulRecordsObject.extendContentJson.cveList.push_back(value.asString()); + auto processInfoNode = value["ProcessInfo"]; + if(!processInfoNode["GmtLastTs"].isNull()) + vulRecordsObject.processInfo.gmtLastTs = std::stol(processInfoNode["GmtLastTs"].asString()); + if(!processInfoNode["TotalCount"].isNull()) + vulRecordsObject.processInfo.totalCount = std::stoi(processInfoNode["TotalCount"].asString()); + auto allProcessList = value["ProcessList"]["Process"]; + for (auto value : allProcessList) + { + VulRecord::ProcessInfo::Process processObject; + if(!value["Rpm"].isNull()) + processObject.rpm = value["Rpm"].asString(); + if(!value["Pname"].isNull()) + processObject.pname = value["Pname"].asString(); + if(!value["Pid"].isNull()) + processObject.pid = value["Pid"].asString(); + auto allSubProcessList = value["SubProcessList"]["SubProcess"]; + for (auto value : allSubProcessList) + { + VulRecord::ProcessInfo::Process::SubProcess subProcessListObject; + if(!value["Rpm"].isNull()) + subProcessListObject.rpm = value["Rpm"].asString(); + if(!value["Pname"].isNull()) + subProcessListObject.pname = value["Pname"].asString(); + if(!value["Pid"].isNull()) + subProcessListObject.pid = value["Pid"].asString(); + processObject.subProcessList.push_back(subProcessListObject); + } + vulRecordsObject.processInfo.processList.push_back(processObject); + } vulRecords_.push_back(vulRecordsObject); } if(!value["PageSize"].isNull()) diff --git a/aegis/src/model/DescribeVulMachineListRequest.cc b/aegis/src/model/DescribeVulMachineListRequest.cc index 47f2cdb8c..a1e73f673 100644 --- a/aegis/src/model/DescribeVulMachineListRequest.cc +++ b/aegis/src/model/DescribeVulMachineListRequest.cc @@ -47,6 +47,17 @@ void DescribeVulMachineListRequest::setEndTs(long endTs) setCoreParameter("EndTs", std::to_string(endTs)); } +std::string DescribeVulMachineListRequest::getFrom()const +{ + return from_; +} + +void DescribeVulMachineListRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + long DescribeVulMachineListRequest::getStartTs()const { return startTs_; @@ -58,6 +69,17 @@ void DescribeVulMachineListRequest::setStartTs(long startTs) setCoreParameter("StartTs", std::to_string(startTs)); } +std::string DescribeVulMachineListRequest::getIncludeApp()const +{ + return includeApp_; +} + +void DescribeVulMachineListRequest::setIncludeApp(const std::string& includeApp) +{ + includeApp_ = includeApp; + setCoreParameter("IncludeApp", includeApp); +} + std::string DescribeVulMachineListRequest::getUuids()const { return uuids_; diff --git a/aegis/src/model/DescribeVulMachineListResult.cc b/aegis/src/model/DescribeVulMachineListResult.cc index 4b67fa234..bbc39d1a8 100644 --- a/aegis/src/model/DescribeVulMachineListResult.cc +++ b/aegis/src/model/DescribeVulMachineListResult.cc @@ -35,10 +35,13 @@ DescribeVulMachineListResult::~DescribeVulMachineListResult() void DescribeVulMachineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMachineStatistics = value["MachineStatistics"]["MachineStatistic"]; for (auto value : allMachineStatistics) diff --git a/aegis/src/model/DescribeVulNumStatisticsRequest.cc b/aegis/src/model/DescribeVulNumStatisticsRequest.cc index f8d4a90dd..adeba4bc3 100644 --- a/aegis/src/model/DescribeVulNumStatisticsRequest.cc +++ b/aegis/src/model/DescribeVulNumStatisticsRequest.cc @@ -47,6 +47,17 @@ void DescribeVulNumStatisticsRequest::setEndTs(long endTs) setCoreParameter("EndTs", std::to_string(endTs)); } +std::string DescribeVulNumStatisticsRequest::getFrom()const +{ + return from_; +} + +void DescribeVulNumStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + long DescribeVulNumStatisticsRequest::getStartTs()const { return startTs_; @@ -69,6 +80,17 @@ void DescribeVulNumStatisticsRequest::setCreateTsEnd(long createTsEnd) setCoreParameter("CreateTsEnd", std::to_string(createTsEnd)); } +std::string DescribeVulNumStatisticsRequest::getIncludeApp()const +{ + return includeApp_; +} + +void DescribeVulNumStatisticsRequest::setIncludeApp(const std::string& includeApp) +{ + includeApp_ = includeApp; + setCoreParameter("IncludeApp", includeApp); +} + long DescribeVulNumStatisticsRequest::getCreateTsStart()const { return createTsStart_; diff --git a/aegis/src/model/DescribeVulNumStatisticsResult.cc b/aegis/src/model/DescribeVulNumStatisticsResult.cc index 149abcd45..c9deb028e 100644 --- a/aegis/src/model/DescribeVulNumStatisticsResult.cc +++ b/aegis/src/model/DescribeVulNumStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeVulNumStatisticsResult::~DescribeVulNumStatisticsResult() void DescribeVulNumStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CveNum"].isNull()) cveNum_ = std::stoi(value["CveNum"].asString()); @@ -48,6 +51,8 @@ void DescribeVulNumStatisticsResult::parse(const std::string &payload) sysNum_ = std::stoi(value["SysNum"].asString()); if(!value["CmsNum"].isNull()) cmsNum_ = std::stoi(value["CmsNum"].asString()); + if(!value["AppNum"].isNull()) + appNum_ = std::stoi(value["AppNum"].asString()); if(!value["CmsDealedTotalNum"].isNull()) cmsDealedTotalNum_ = std::stoi(value["CmsDealedTotalNum"].asString()); if(!value["VulDealedTotalNum"].isNull()) @@ -58,9 +63,16 @@ void DescribeVulNumStatisticsResult::parse(const std::string &payload) vulLaterSum_ = std::stoi(value["VulLaterSum"].asString()); if(!value["VulNntfSum"].isNull()) vulNntfSum_ = std::stoi(value["VulNntfSum"].asString()); + if(!value["AppCnt"].isNull()) + appCnt_ = std::stoi(value["AppCnt"].asString()); } +int DescribeVulNumStatisticsResult::getAppCnt()const +{ + return appCnt_; +} + int DescribeVulNumStatisticsResult::getVulDealedTotalNum()const { return vulDealedTotalNum_; @@ -106,3 +118,8 @@ int DescribeVulNumStatisticsResult::getSysNum()const return sysNum_; } +int DescribeVulNumStatisticsResult::getAppNum()const +{ + return appNum_; +} + diff --git a/aegis/src/model/DescribeVulRelatedProcessRequest.cc b/aegis/src/model/DescribeVulRelatedProcessRequest.cc new file mode 100644 index 000000000..0eece8eb6 --- /dev/null +++ b/aegis/src/model/DescribeVulRelatedProcessRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::DescribeVulRelatedProcessRequest; + +DescribeVulRelatedProcessRequest::DescribeVulRelatedProcessRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeVulRelatedProcess") +{} + +DescribeVulRelatedProcessRequest::~DescribeVulRelatedProcessRequest() +{} + +std::string DescribeVulRelatedProcessRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeVulRelatedProcessRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeVulRelatedProcessRequest::getId()const +{ + return id_; +} + +void DescribeVulRelatedProcessRequest::setId(int id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string DescribeVulRelatedProcessRequest::getPpid()const +{ + return ppid_; +} + +void DescribeVulRelatedProcessRequest::setPpid(const std::string& ppid) +{ + ppid_ = ppid; + setCoreParameter("Ppid", ppid); +} + diff --git a/aegis/src/model/DescribeVulRelatedProcessResult.cc b/aegis/src/model/DescribeVulRelatedProcessResult.cc new file mode 100644 index 000000000..8b27ca25c --- /dev/null +++ b/aegis/src/model/DescribeVulRelatedProcessResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeVulRelatedProcessResult::DescribeVulRelatedProcessResult() : + ServiceResult() +{} + +DescribeVulRelatedProcessResult::DescribeVulRelatedProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVulRelatedProcessResult::~DescribeVulRelatedProcessResult() +{} + +void DescribeVulRelatedProcessResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allProcessList = value["ProcessList"]["Process"]; + for (auto value : allProcessList) + { + Process processListObject; + if(!value["Uuid"].isNull()) + processListObject.uuid = value["Uuid"].asString(); + if(!value["Rpm"].isNull()) + processListObject.rpm = value["Rpm"].asString(); + if(!value["Pname"].isNull()) + processListObject.pname = value["Pname"].asString(); + if(!value["Pid"].isNull()) + processListObject.pid = value["Pid"].asString(); + if(!value["Ppid"].isNull()) + processListObject.ppid = value["Ppid"].asString(); + processList_.push_back(processListObject); + } + if(!value["GmtLastTs"].isNull()) + gmtLastTs_ = std::stol(value["GmtLastTs"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVulRelatedProcessResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeVulRelatedProcessResult::getProcessList()const +{ + return processList_; +} + +long DescribeVulRelatedProcessResult::getGmtLastTs()const +{ + return gmtLastTs_; +} + diff --git a/aegis/src/model/DescribeVulStatisticsRequest.cc b/aegis/src/model/DescribeVulStatisticsRequest.cc new file mode 100644 index 000000000..60e23f6bd --- /dev/null +++ b/aegis/src/model/DescribeVulStatisticsRequest.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::Aegis::Model::DescribeVulStatisticsRequest; + +DescribeVulStatisticsRequest::DescribeVulStatisticsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeVulStatistics") +{} + +DescribeVulStatisticsRequest::~DescribeVulStatisticsRequest() +{} + +std::string DescribeVulStatisticsRequest::getEndModifyTimePatch()const +{ + return endModifyTimePatch_; +} + +void DescribeVulStatisticsRequest::setEndModifyTimePatch(const std::string& endModifyTimePatch) +{ + endModifyTimePatch_ = endModifyTimePatch; + setCoreParameter("EndModifyTimePatch", endModifyTimePatch); +} + +std::string DescribeVulStatisticsRequest::getRemarkPatch()const +{ + return remarkPatch_; +} + +void DescribeVulStatisticsRequest::setRemarkPatch(const std::string& remarkPatch) +{ + remarkPatch_ = remarkPatch; + setCoreParameter("RemarkPatch", remarkPatch); +} + +std::string DescribeVulStatisticsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeVulStatisticsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeVulStatisticsRequest::getEndFindTimePatch()const +{ + return endFindTimePatch_; +} + +void DescribeVulStatisticsRequest::setEndFindTimePatch(const std::string& endFindTimePatch) +{ + endFindTimePatch_ = endFindTimePatch; + setCoreParameter("EndFindTimePatch", endFindTimePatch); +} + +std::string DescribeVulStatisticsRequest::getStartModifyTimePatch()const +{ + return startModifyTimePatch_; +} + +void DescribeVulStatisticsRequest::setStartModifyTimePatch(const std::string& startModifyTimePatch) +{ + startModifyTimePatch_ = startModifyTimePatch; + setCoreParameter("StartModifyTimePatch", startModifyTimePatch); +} + +std::string DescribeVulStatisticsRequest::getStartFindTimePatch()const +{ + return startFindTimePatch_; +} + +void DescribeVulStatisticsRequest::setStartFindTimePatch(const std::string& startFindTimePatch) +{ + startFindTimePatch_ = startFindTimePatch; + setCoreParameter("StartFindTimePatch", startFindTimePatch); +} + +std::string DescribeVulStatisticsRequest::getFrom()const +{ + return from_; +} + +void DescribeVulStatisticsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +std::string DescribeVulStatisticsRequest::getDistribution()const +{ + return distribution_; +} + +void DescribeVulStatisticsRequest::setDistribution(const std::string& distribution) +{ + distribution_ = distribution; + setCoreParameter("Distribution", distribution); +} + +std::string DescribeVulStatisticsRequest::getUuid()const +{ + return uuid_; +} + +void DescribeVulStatisticsRequest::setUuid(const std::string& uuid) +{ + uuid_ = uuid; + setCoreParameter("Uuid", uuid); +} + diff --git a/aegis/src/model/DescribeVulStatisticsResult.cc b/aegis/src/model/DescribeVulStatisticsResult.cc new file mode 100644 index 000000000..fe7e9db7c --- /dev/null +++ b/aegis/src/model/DescribeVulStatisticsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeVulStatisticsResult::DescribeVulStatisticsResult() : + ServiceResult() +{} + +DescribeVulStatisticsResult::DescribeVulStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVulStatisticsResult::~DescribeVulStatisticsResult() +{} + +void DescribeVulStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int DescribeVulStatisticsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + diff --git a/aegis/src/model/DescribeVulTargetStatisticsResult.cc b/aegis/src/model/DescribeVulTargetStatisticsResult.cc index 79caf8014..ba120d1e0 100644 --- a/aegis/src/model/DescribeVulTargetStatisticsResult.cc +++ b/aegis/src/model/DescribeVulTargetStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeVulTargetStatisticsResult::~DescribeVulTargetStatisticsResult() void DescribeVulTargetStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTargetStats = value["TargetStats"]["TargetStat"]; for (auto value : allTargetStats) diff --git a/aegis/src/model/DescribeVulWhitelistResult.cc b/aegis/src/model/DescribeVulWhitelistResult.cc index 46eb450ed..95ecbb665 100644 --- a/aegis/src/model/DescribeVulWhitelistResult.cc +++ b/aegis/src/model/DescribeVulWhitelistResult.cc @@ -35,10 +35,13 @@ DescribeVulWhitelistResult::~DescribeVulWhitelistResult() void DescribeVulWhitelistResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVulWhitelists = value["VulWhitelists"]["VulWhitelist"]; for (auto value : allVulWhitelists) diff --git a/aegis/src/model/DescribeVulnerabilitySummaryResult.cc b/aegis/src/model/DescribeVulnerabilitySummaryResult.cc index c39746413..7e56cdad3 100644 --- a/aegis/src/model/DescribeVulnerabilitySummaryResult.cc +++ b/aegis/src/model/DescribeVulnerabilitySummaryResult.cc @@ -35,10 +35,13 @@ DescribeVulnerabilitySummaryResult::~DescribeVulnerabilitySummaryResult() void DescribeVulnerabilitySummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/aegis/src/model/DescribeWarningMachinesResult.cc b/aegis/src/model/DescribeWarningMachinesResult.cc index 09ddad903..6c0a850da 100644 --- a/aegis/src/model/DescribeWarningMachinesResult.cc +++ b/aegis/src/model/DescribeWarningMachinesResult.cc @@ -35,10 +35,13 @@ DescribeWarningMachinesResult::~DescribeWarningMachinesResult() void DescribeWarningMachinesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWarningMachines = value["WarningMachines"]["WarningMachine"]; for (auto value : allWarningMachines) diff --git a/aegis/src/model/DescribeWarningResult.cc b/aegis/src/model/DescribeWarningResult.cc index 163ae6369..2f442b251 100644 --- a/aegis/src/model/DescribeWarningResult.cc +++ b/aegis/src/model/DescribeWarningResult.cc @@ -35,10 +35,13 @@ DescribeWarningResult::~DescribeWarningResult() void DescribeWarningResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWarnings = value["Warnings"]["Warning"]; for (auto value : allWarnings) diff --git a/aegis/src/model/DescribeWebLockBindListResult.cc b/aegis/src/model/DescribeWebLockBindListResult.cc index 3bd9a4668..ae2957760 100644 --- a/aegis/src/model/DescribeWebLockBindListResult.cc +++ b/aegis/src/model/DescribeWebLockBindListResult.cc @@ -35,10 +35,13 @@ DescribeWebLockBindListResult::~DescribeWebLockBindListResult() void DescribeWebLockBindListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBindList = value["BindList"]["Bind"]; for (auto value : allBindList) @@ -64,6 +67,8 @@ void DescribeWebLockBindListResult::parse(const std::string &payload) bindListObject.serviceDetail = value["ServiceDetail"].asString(); if(!value["Status"].isNull()) bindListObject.status = value["Status"].asString(); + if(!value["Percent"].isNull()) + bindListObject.percent = std::stoi(value["Percent"].asString()); bindList_.push_back(bindListObject); } if(!value["PageSize"].isNull()) diff --git a/aegis/src/model/DescribeWebLockConfigListResult.cc b/aegis/src/model/DescribeWebLockConfigListResult.cc index 300c0d994..fd080826d 100644 --- a/aegis/src/model/DescribeWebLockConfigListResult.cc +++ b/aegis/src/model/DescribeWebLockConfigListResult.cc @@ -35,10 +35,13 @@ DescribeWebLockConfigListResult::~DescribeWebLockConfigListResult() void DescribeWebLockConfigListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigList = value["ConfigList"]["ConfigInfo"]; for (auto value : allConfigList) @@ -56,6 +59,12 @@ void DescribeWebLockConfigListResult::parse(const std::string &payload) configListObject.exclusiveFileType = value["ExclusiveFileType"].asString(); if(!value["LocalBackupDir"].isNull()) configListObject.localBackupDir = value["LocalBackupDir"].asString(); + if(!value["Mode"].isNull()) + configListObject.mode = value["Mode"].asString(); + if(!value["InclusiveFileType"].isNull()) + configListObject.inclusiveFileType = value["InclusiveFileType"].asString(); + if(!value["ExclusiveFile"].isNull()) + configListObject.exclusiveFile = value["ExclusiveFile"].asString(); configList_.push_back(configListObject); } if(!value["TotalCount"].isNull()) diff --git a/aegis/src/model/DescribeWebLockEventsResult.cc b/aegis/src/model/DescribeWebLockEventsResult.cc index 507534f47..91d2396bb 100644 --- a/aegis/src/model/DescribeWebLockEventsResult.cc +++ b/aegis/src/model/DescribeWebLockEventsResult.cc @@ -35,15 +35,20 @@ DescribeWebLockEventsResult::~DescribeWebLockEventsResult() void DescribeWebLockEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEventList = value["EventList"]["EventInfo"]; for (auto value : allEventList) { EventInfo eventListObject; + if(!value["Id"].isNull()) + eventListObject.id = std::stol(value["Id"].asString()); if(!value["Uuid"].isNull()) eventListObject.uuid = value["Uuid"].asString(); if(!value["Ip"].isNull()) diff --git a/aegis/src/model/DescribeWebLockMachineListResult.cc b/aegis/src/model/DescribeWebLockMachineListResult.cc index d76a94eaa..92b171657 100644 --- a/aegis/src/model/DescribeWebLockMachineListResult.cc +++ b/aegis/src/model/DescribeWebLockMachineListResult.cc @@ -35,10 +35,13 @@ DescribeWebLockMachineListResult::~DescribeWebLockMachineListResult() void DescribeWebLockMachineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMachineList = value["MachineList"]["MachineInfo"]; for (auto value : allMachineList) diff --git a/aegis/src/model/DescribeWebLockStatusResult.cc b/aegis/src/model/DescribeWebLockStatusResult.cc index 423d83f0f..06d41e110 100644 --- a/aegis/src/model/DescribeWebLockStatusResult.cc +++ b/aegis/src/model/DescribeWebLockStatusResult.cc @@ -35,10 +35,13 @@ DescribeWebLockStatusResult::~DescribeWebLockStatusResult() void DescribeWebLockStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AuthCount"].isNull()) authCount_ = std::stoi(value["AuthCount"].asString()); @@ -46,6 +49,8 @@ void DescribeWebLockStatusResult::parse(const std::string &payload) bindCount_ = std::stoi(value["BindCount"].asString()); if(!value["ExpireTime"].isNull()) expireTime_ = std::stol(value["ExpireTime"].asString()); + if(!value["DirCount"].isNull()) + dirCount_ = std::stoi(value["DirCount"].asString()); } @@ -54,6 +59,11 @@ int DescribeWebLockStatusResult::getBindCount()const return bindCount_; } +int DescribeWebLockStatusResult::getDirCount()const +{ + return dirCount_; +} + long DescribeWebLockStatusResult::getExpireTime()const { return expireTime_; diff --git a/aegis/src/model/DescribeWebshellListRequest.cc b/aegis/src/model/DescribeWebshellListRequest.cc new file mode 100644 index 000000000..5f436783b --- /dev/null +++ b/aegis/src/model/DescribeWebshellListRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::DescribeWebshellListRequest; + +DescribeWebshellListRequest::DescribeWebshellListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeWebshellList") +{} + +DescribeWebshellListRequest::~DescribeWebshellListRequest() +{} + +std::string DescribeWebshellListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeWebshellListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeWebshellListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeWebshellListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +int DescribeWebshellListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeWebshellListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeWebshellListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeWebshellListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeWebshellListRequest::getDealed()const +{ + return dealed_; +} + +void DescribeWebshellListRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setCoreParameter("Dealed", dealed); +} + +std::string DescribeWebshellListRequest::getRemark()const +{ + return remark_; +} + +void DescribeWebshellListRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string DescribeWebshellListRequest::getTag()const +{ + return tag_; +} + +void DescribeWebshellListRequest::setTag(const std::string& tag) +{ + tag_ = tag; + setCoreParameter("Tag", tag); +} + +int DescribeWebshellListRequest::getStatus()const +{ + return status_; +} + +void DescribeWebshellListRequest::setStatus(int status) +{ + status_ = status; + setCoreParameter("Status", std::to_string(status)); +} + diff --git a/aegis/src/model/DescribeWebshellListResult.cc b/aegis/src/model/DescribeWebshellListResult.cc new file mode 100644 index 000000000..116f62f70 --- /dev/null +++ b/aegis/src/model/DescribeWebshellListResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeWebshellListResult::DescribeWebshellListResult() : + ServiceResult() +{} + +DescribeWebshellListResult::DescribeWebshellListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWebshellListResult::~DescribeWebshellListResult() +{} + +void DescribeWebshellListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allWebshells = value["Webshells"]["Data"]; + for (auto value : allWebshells) + { + Data webshellsObject; + if(!value["FoundTime"].isNull()) + webshellsObject.foundTime = value["FoundTime"].asString(); + if(!value["TrojanType"].isNull()) + webshellsObject.trojanType = value["TrojanType"].asString(); + if(!value["TrojanSize"].isNull()) + webshellsObject.trojanSize = std::stoi(value["TrojanSize"].asString()); + if(!value["FirstFoundTime"].isNull()) + webshellsObject.firstFoundTime = value["FirstFoundTime"].asString(); + if(!value["Domain"].isNull()) + webshellsObject.domain = value["Domain"].asString(); + if(!value["DownloadUrl"].isNull()) + webshellsObject.downloadUrl = value["DownloadUrl"].asString(); + if(!value["TrojanPath"].isNull()) + webshellsObject.trojanPath = value["TrojanPath"].asString(); + if(!value["Uuid"].isNull()) + webshellsObject.uuid = value["Uuid"].asString(); + if(!value["MachineName"].isNull()) + webshellsObject.machineName = value["MachineName"].asString(); + if(!value["Status"].isNull()) + webshellsObject.status = std::stoi(value["Status"].asString()); + if(!value["MachineIp"].isNull()) + webshellsObject.machineIp = value["MachineIp"].asString(); + webshells_.push_back(webshellsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeWebshellListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeWebshellListResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeWebshellListResult::getWebshells()const +{ + return webshells_; +} + +int DescribeWebshellListResult::getPage()const +{ + return page_; +} + +bool DescribeWebshellListResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/DescribeWebshellResult.cc b/aegis/src/model/DescribeWebshellResult.cc index 5f70f865c..87457fa5d 100644 --- a/aegis/src/model/DescribeWebshellResult.cc +++ b/aegis/src/model/DescribeWebshellResult.cc @@ -35,10 +35,13 @@ DescribeWebshellResult::~DescribeWebshellResult() void DescribeWebshellResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWebshellList = value["WebshellList"]["WebshellListItem"]; for (auto value : allWebshellList) diff --git a/aegis/src/model/DescribeWhiteListAssetResult.cc b/aegis/src/model/DescribeWhiteListAssetResult.cc index 1bc06e9e2..96d534d17 100644 --- a/aegis/src/model/DescribeWhiteListAssetResult.cc +++ b/aegis/src/model/DescribeWhiteListAssetResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListAssetResult::~DescribeWhiteListAssetResult() void DescribeWhiteListAssetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAssets = value["Assets"]["Asset"]; for (auto value : allAssets) diff --git a/aegis/src/model/DescribeWhiteListAuthorizeResult.cc b/aegis/src/model/DescribeWhiteListAuthorizeResult.cc index c9e96df40..10ef16a28 100644 --- a/aegis/src/model/DescribeWhiteListAuthorizeResult.cc +++ b/aegis/src/model/DescribeWhiteListAuthorizeResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListAuthorizeResult::~DescribeWhiteListAuthorizeResult() void DescribeWhiteListAuthorizeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AvailableAuthorizeNum"].isNull()) availableAuthorizeNum_ = std::stoi(value["AvailableAuthorizeNum"].asString()); diff --git a/aegis/src/model/DescribeWhiteListEffectiveAssetsResult.cc b/aegis/src/model/DescribeWhiteListEffectiveAssetsResult.cc index cd9619de0..983ca2cb2 100644 --- a/aegis/src/model/DescribeWhiteListEffectiveAssetsResult.cc +++ b/aegis/src/model/DescribeWhiteListEffectiveAssetsResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListEffectiveAssetsResult::~DescribeWhiteListEffectiveAssetsResult( void DescribeWhiteListEffectiveAssetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAssets = value["Assets"]["Asset"]; for (auto value : allAssets) diff --git a/aegis/src/model/DescribeWhiteListProcessResult.cc b/aegis/src/model/DescribeWhiteListProcessResult.cc index d4e9ed973..e17a8f054 100644 --- a/aegis/src/model/DescribeWhiteListProcessResult.cc +++ b/aegis/src/model/DescribeWhiteListProcessResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListProcessResult::~DescribeWhiteListProcessResult() void DescribeWhiteListProcessResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allProcesses = value["Processes"]["Process"]; for (auto value : allProcesses) diff --git a/aegis/src/model/DescribeWhiteListStrategyCountResult.cc b/aegis/src/model/DescribeWhiteListStrategyCountResult.cc index 614243ca9..166ade192 100644 --- a/aegis/src/model/DescribeWhiteListStrategyCountResult.cc +++ b/aegis/src/model/DescribeWhiteListStrategyCountResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListStrategyCountResult::~DescribeWhiteListStrategyCountResult() void DescribeWhiteListStrategyCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["StrategyCount"].isNull()) strategyCount_ = std::stoi(value["StrategyCount"].asString()); diff --git a/aegis/src/model/DescribeWhiteListStrategyListResult.cc b/aegis/src/model/DescribeWhiteListStrategyListResult.cc index 06a22e4bb..4f042d7d6 100644 --- a/aegis/src/model/DescribeWhiteListStrategyListResult.cc +++ b/aegis/src/model/DescribeWhiteListStrategyListResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListStrategyListResult::~DescribeWhiteListStrategyListResult() void DescribeWhiteListStrategyListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStrategies = value["Strategies"]["Strategy"]; for (auto value : allStrategies) diff --git a/aegis/src/model/DescribeWhiteListStrategyStatisticsResult.cc b/aegis/src/model/DescribeWhiteListStrategyStatisticsResult.cc index 3918af1ed..e48c512ee 100644 --- a/aegis/src/model/DescribeWhiteListStrategyStatisticsResult.cc +++ b/aegis/src/model/DescribeWhiteListStrategyStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListStrategyStatisticsResult::~DescribeWhiteListStrategyStatisticsR void DescribeWhiteListStrategyStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStrategies = value["Strategies"]["Strategy"]; for (auto value : allStrategies) diff --git a/aegis/src/model/DescribeWhiteListStrategyUuidCountResult.cc b/aegis/src/model/DescribeWhiteListStrategyUuidCountResult.cc index 26f2d2884..9f0546403 100644 --- a/aegis/src/model/DescribeWhiteListStrategyUuidCountResult.cc +++ b/aegis/src/model/DescribeWhiteListStrategyUuidCountResult.cc @@ -35,10 +35,13 @@ DescribeWhiteListStrategyUuidCountResult::~DescribeWhiteListStrategyUuidCountRes void DescribeWhiteListStrategyUuidCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["UuidCount"].isNull()) uuidCount_ = std::stoi(value["UuidCount"].asString()); diff --git a/aegis/src/model/DescribeYesterdayStatisticsResult.cc b/aegis/src/model/DescribeYesterdayStatisticsResult.cc index b75d43c64..5a9c8345c 100644 --- a/aegis/src/model/DescribeYesterdayStatisticsResult.cc +++ b/aegis/src/model/DescribeYesterdayStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeYesterdayStatisticsResult::~DescribeYesterdayStatisticsResult() void DescribeYesterdayStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); diff --git a/aegis/src/model/DescribesummaryResult.cc b/aegis/src/model/DescribesummaryResult.cc index d382738b2..321a70a9e 100644 --- a/aegis/src/model/DescribesummaryResult.cc +++ b/aegis/src/model/DescribesummaryResult.cc @@ -35,10 +35,13 @@ DescribesummaryResult::~DescribesummaryResult() void DescribesummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWarningSummarys = value["WarningSummarys"]["WarningSummary"]; for (auto value : allWarningSummarys) diff --git a/aegis/src/model/DownloadLogResult.cc b/aegis/src/model/DownloadLogResult.cc index 286d33995..0310edf4e 100644 --- a/aegis/src/model/DownloadLogResult.cc +++ b/aegis/src/model/DownloadLogResult.cc @@ -35,10 +35,13 @@ DownloadLogResult::~DownloadLogResult() void DownloadLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStackTrace = value["StackTrace"]["StackTraceItem"]; for (auto value : allStackTrace) diff --git a/aegis/src/model/ExecStrategyResult.cc b/aegis/src/model/ExecStrategyResult.cc index affae2822..701f40d15 100644 --- a/aegis/src/model/ExecStrategyResult.cc +++ b/aegis/src/model/ExecStrategyResult.cc @@ -35,10 +35,13 @@ ExecStrategyResult::~ExecStrategyResult() void ExecStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ExecuteRuleEngineActualTimeResult.cc b/aegis/src/model/ExecuteRuleEngineActualTimeResult.cc index 3bda1e956..c6a4f1ccf 100644 --- a/aegis/src/model/ExecuteRuleEngineActualTimeResult.cc +++ b/aegis/src/model/ExecuteRuleEngineActualTimeResult.cc @@ -35,10 +35,13 @@ ExecuteRuleEngineActualTimeResult::~ExecuteRuleEngineActualTimeResult() void ExecuteRuleEngineActualTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ExecResult"].isNull()) execResult_ = value["ExecResult"].asString(); diff --git a/aegis/src/model/ExportSuspEventsResult.cc b/aegis/src/model/ExportSuspEventsResult.cc index 48f44bf22..4324f86c2 100644 --- a/aegis/src/model/ExportSuspEventsResult.cc +++ b/aegis/src/model/ExportSuspEventsResult.cc @@ -35,10 +35,13 @@ ExportSuspEventsResult::~ExportSuspEventsResult() void ExportSuspEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["FileName"].isNull()) fileName_ = std::stoi(value["FileName"].asString()); diff --git a/aegis/src/model/ExportVulRequest.cc b/aegis/src/model/ExportVulRequest.cc index 225ffbbff..b23226d7f 100644 --- a/aegis/src/model/ExportVulRequest.cc +++ b/aegis/src/model/ExportVulRequest.cc @@ -25,28 +25,6 @@ ExportVulRequest::ExportVulRequest() : ExportVulRequest::~ExportVulRequest() {} -std::string ExportVulRequest::getBatchName()const -{ - return batchName_; -} - -void ExportVulRequest::setBatchName(const std::string& batchName) -{ - batchName_ = batchName; - setCoreParameter("BatchName", batchName); -} - -std::string ExportVulRequest::getAliasName()const -{ - return aliasName_; -} - -void ExportVulRequest::setAliasName(const std::string& aliasName) -{ - aliasName_ = aliasName; - setCoreParameter("AliasName", aliasName); -} - std::string ExportVulRequest::getStatusList()const { return statusList_; @@ -58,17 +36,6 @@ void ExportVulRequest::setStatusList(const std::string& statusList) setCoreParameter("StatusList", statusList); } -std::string ExportVulRequest::getSourceIp()const -{ - return sourceIp_; -} - -void ExportVulRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setCoreParameter("SourceIp", sourceIp); -} - std::string ExportVulRequest::getLevel()const { return level_; @@ -91,15 +58,15 @@ void ExportVulRequest::setResource(const std::string& resource) setCoreParameter("Resource", resource); } -std::string ExportVulRequest::getName()const +std::string ExportVulRequest::getRemark()const { - return name_; + return remark_; } -void ExportVulRequest::setName(const std::string& name) +void ExportVulRequest::setRemark(const std::string& remark) { - name_ = name; - setCoreParameter("Name", name); + remark_ = remark; + setCoreParameter("Remark", remark); } std::string ExportVulRequest::getDealed()const @@ -113,17 +80,6 @@ void ExportVulRequest::setDealed(const std::string& dealed) setCoreParameter("Dealed", dealed); } -std::string ExportVulRequest::getLang()const -{ - return lang_; -} - -void ExportVulRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setCoreParameter("Lang", lang); -} - std::string ExportVulRequest::getType()const { return type_; @@ -135,6 +91,61 @@ void ExportVulRequest::setType(const std::string& type) setCoreParameter("Type", type); } +std::string ExportVulRequest::getBatchName()const +{ + return batchName_; +} + +void ExportVulRequest::setBatchName(const std::string& batchName) +{ + batchName_ = batchName; + setCoreParameter("BatchName", batchName); +} + +std::string ExportVulRequest::getAliasName()const +{ + return aliasName_; +} + +void ExportVulRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setCoreParameter("AliasName", aliasName); +} + +std::string ExportVulRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ExportVulRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ExportVulRequest::getName()const +{ + return name_; +} + +void ExportVulRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string ExportVulRequest::getLang()const +{ + return lang_; +} + +void ExportVulRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + std::string ExportVulRequest::getNecessity()const { return necessity_; diff --git a/aegis/src/model/ExportVulResult.cc b/aegis/src/model/ExportVulResult.cc index 874267949..7e1224c64 100644 --- a/aegis/src/model/ExportVulResult.cc +++ b/aegis/src/model/ExportVulResult.cc @@ -35,10 +35,13 @@ ExportVulResult::~ExportVulResult() void ExportVulResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/aegis/src/model/ExportWarningResult.cc b/aegis/src/model/ExportWarningResult.cc index 36207f6fc..8d92ada8c 100644 --- a/aegis/src/model/ExportWarningResult.cc +++ b/aegis/src/model/ExportWarningResult.cc @@ -35,10 +35,13 @@ ExportWarningResult::~ExportWarningResult() void ExportWarningResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/aegis/src/model/GetAccountStatisticsResult.cc b/aegis/src/model/GetAccountStatisticsResult.cc index 385312b4f..f95c907b5 100644 --- a/aegis/src/model/GetAccountStatisticsResult.cc +++ b/aegis/src/model/GetAccountStatisticsResult.cc @@ -35,10 +35,13 @@ GetAccountStatisticsResult::~GetAccountStatisticsResult() void GetAccountStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["RemoteLogin"].isNull()) diff --git a/aegis/src/model/GetCrackStatisticsResult.cc b/aegis/src/model/GetCrackStatisticsResult.cc index 23d559bc5..9c250633c 100644 --- a/aegis/src/model/GetCrackStatisticsResult.cc +++ b/aegis/src/model/GetCrackStatisticsResult.cc @@ -35,10 +35,13 @@ GetCrackStatisticsResult::~GetCrackStatisticsResult() void GetCrackStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Intercepted"].isNull()) diff --git a/aegis/src/model/GetEntityListResult.cc b/aegis/src/model/GetEntityListResult.cc index 482a7421b..55eccd5cb 100644 --- a/aegis/src/model/GetEntityListResult.cc +++ b/aegis/src/model/GetEntityListResult.cc @@ -35,10 +35,13 @@ GetEntityListResult::~GetEntityListResult() void GetEntityListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allList = value["List"]["Entity"]; diff --git a/aegis/src/model/GetStatisticsByUuidResult.cc b/aegis/src/model/GetStatisticsByUuidResult.cc index b714ae373..c891118c5 100644 --- a/aegis/src/model/GetStatisticsByUuidResult.cc +++ b/aegis/src/model/GetStatisticsByUuidResult.cc @@ -35,10 +35,13 @@ GetStatisticsByUuidResult::~GetStatisticsByUuidResult() void GetStatisticsByUuidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Entity"]; for (auto value : allData) diff --git a/aegis/src/model/GetStatisticsResult.cc b/aegis/src/model/GetStatisticsResult.cc index 5f9de08be..35f3a5cf9 100644 --- a/aegis/src/model/GetStatisticsResult.cc +++ b/aegis/src/model/GetStatisticsResult.cc @@ -35,10 +35,13 @@ GetStatisticsResult::~GetStatisticsResult() void GetStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Account"].isNull()) diff --git a/aegis/src/model/IgnoreHcCheckWarningsRequest.cc b/aegis/src/model/IgnoreHcCheckWarningsRequest.cc index f04d0e07a..703c04065 100644 --- a/aegis/src/model/IgnoreHcCheckWarningsRequest.cc +++ b/aegis/src/model/IgnoreHcCheckWarningsRequest.cc @@ -58,6 +58,17 @@ void IgnoreHcCheckWarningsRequest::setCheckWarningIds(const std::string& checkWa setCoreParameter("CheckWarningIds", checkWarningIds); } +std::string IgnoreHcCheckWarningsRequest::getCheckIds()const +{ + return checkIds_; +} + +void IgnoreHcCheckWarningsRequest::setCheckIds(const std::string& checkIds) +{ + checkIds_ = checkIds; + setCoreParameter("CheckIds", checkIds); +} + std::string IgnoreHcCheckWarningsRequest::getRiskId()const { return riskId_; diff --git a/aegis/src/model/IgnoreHcCheckWarningsResult.cc b/aegis/src/model/IgnoreHcCheckWarningsResult.cc index 3692bef01..45c9d2002 100644 --- a/aegis/src/model/IgnoreHcCheckWarningsResult.cc +++ b/aegis/src/model/IgnoreHcCheckWarningsResult.cc @@ -35,10 +35,13 @@ IgnoreHcCheckWarningsResult::~IgnoreHcCheckWarningsResult() void IgnoreHcCheckWarningsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyAccessKeyLeakDealRequest.cc b/aegis/src/model/ModifyAccessKeyLeakDealRequest.cc new file mode 100644 index 000000000..7893aaa7e --- /dev/null +++ b/aegis/src/model/ModifyAccessKeyLeakDealRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::ModifyAccessKeyLeakDealRequest; + +ModifyAccessKeyLeakDealRequest::ModifyAccessKeyLeakDealRequest() : + RpcServiceRequest("aegis", "2016-11-11", "ModifyAccessKeyLeakDeal") +{} + +ModifyAccessKeyLeakDealRequest::~ModifyAccessKeyLeakDealRequest() +{} + +std::string ModifyAccessKeyLeakDealRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyAccessKeyLeakDealRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyAccessKeyLeakDealRequest::getRemark()const +{ + return remark_; +} + +void ModifyAccessKeyLeakDealRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +long ModifyAccessKeyLeakDealRequest::getId()const +{ + return id_; +} + +void ModifyAccessKeyLeakDealRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string ModifyAccessKeyLeakDealRequest::getType()const +{ + return type_; +} + +void ModifyAccessKeyLeakDealRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + diff --git a/aegis/src/model/ModifyAccessKeyLeakDealResult.cc b/aegis/src/model/ModifyAccessKeyLeakDealResult.cc new file mode 100644 index 000000000..b36020b7f --- /dev/null +++ b/aegis/src/model/ModifyAccessKeyLeakDealResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +ModifyAccessKeyLeakDealResult::ModifyAccessKeyLeakDealResult() : + ServiceResult() +{} + +ModifyAccessKeyLeakDealResult::ModifyAccessKeyLeakDealResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccessKeyLeakDealResult::~ModifyAccessKeyLeakDealResult() +{} + +void ModifyAccessKeyLeakDealResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/ModifyAccessKeyLeakInstRunRequest.cc b/aegis/src/model/ModifyAccessKeyLeakInstRunRequest.cc new file mode 100644 index 000000000..564f5195f --- /dev/null +++ b/aegis/src/model/ModifyAccessKeyLeakInstRunRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::ModifyAccessKeyLeakInstRunRequest; + +ModifyAccessKeyLeakInstRunRequest::ModifyAccessKeyLeakInstRunRequest() : + RpcServiceRequest("aegis", "2016-11-11", "ModifyAccessKeyLeakInstRun") +{} + +ModifyAccessKeyLeakInstRunRequest::~ModifyAccessKeyLeakInstRunRequest() +{} + +std::string ModifyAccessKeyLeakInstRunRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyAccessKeyLeakInstRunRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/ModifyAccessKeyLeakInstRunResult.cc b/aegis/src/model/ModifyAccessKeyLeakInstRunResult.cc new file mode 100644 index 000000000..fb5f05dd2 --- /dev/null +++ b/aegis/src/model/ModifyAccessKeyLeakInstRunResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +ModifyAccessKeyLeakInstRunResult::ModifyAccessKeyLeakInstRunResult() : + ServiceResult() +{} + +ModifyAccessKeyLeakInstRunResult::ModifyAccessKeyLeakInstRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccessKeyLeakInstRunResult::~ModifyAccessKeyLeakInstRunResult() +{} + +void ModifyAccessKeyLeakInstRunResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/ModifyAssetGroupResult.cc b/aegis/src/model/ModifyAssetGroupResult.cc index a241776a9..c3547453a 100644 --- a/aegis/src/model/ModifyAssetGroupResult.cc +++ b/aegis/src/model/ModifyAssetGroupResult.cc @@ -35,10 +35,13 @@ ModifyAssetGroupResult::~ModifyAssetGroupResult() void ModifyAssetGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyAutoDelConfigResult.cc b/aegis/src/model/ModifyAutoDelConfigResult.cc index 65dab6afd..3405845c4 100644 --- a/aegis/src/model/ModifyAutoDelConfigResult.cc +++ b/aegis/src/model/ModifyAutoDelConfigResult.cc @@ -35,10 +35,13 @@ ModifyAutoDelConfigResult::~ModifyAutoDelConfigResult() void ModifyAutoDelConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyBatchIgnoreVulResult.cc b/aegis/src/model/ModifyBatchIgnoreVulResult.cc index cd61250bc..ea8f6b46a 100644 --- a/aegis/src/model/ModifyBatchIgnoreVulResult.cc +++ b/aegis/src/model/ModifyBatchIgnoreVulResult.cc @@ -35,10 +35,13 @@ ModifyBatchIgnoreVulResult::~ModifyBatchIgnoreVulResult() void ModifyBatchIgnoreVulResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyClearLogstoreStorageResult.cc b/aegis/src/model/ModifyClearLogstoreStorageResult.cc index e49a68556..9ad821d0a 100644 --- a/aegis/src/model/ModifyClearLogstoreStorageResult.cc +++ b/aegis/src/model/ModifyClearLogstoreStorageResult.cc @@ -35,10 +35,13 @@ ModifyClearLogstoreStorageResult::~ModifyClearLogstoreStorageResult() void ModifyClearLogstoreStorageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyConcernNecessityResult.cc b/aegis/src/model/ModifyConcernNecessityResult.cc index 58b37f172..c63ad80ab 100644 --- a/aegis/src/model/ModifyConcernNecessityResult.cc +++ b/aegis/src/model/ModifyConcernNecessityResult.cc @@ -35,10 +35,13 @@ ModifyConcernNecessityResult::~ModifyConcernNecessityResult() void ModifyConcernNecessityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyEmgVulSubmitResult.cc b/aegis/src/model/ModifyEmgVulSubmitResult.cc index fd0614889..b57cac933 100644 --- a/aegis/src/model/ModifyEmgVulSubmitResult.cc +++ b/aegis/src/model/ModifyEmgVulSubmitResult.cc @@ -35,10 +35,13 @@ ModifyEmgVulSubmitResult::~ModifyEmgVulSubmitResult() void ModifyEmgVulSubmitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyLogMetaStatusResult.cc b/aegis/src/model/ModifyLogMetaStatusResult.cc index 9de40bd4d..b07437cd0 100644 --- a/aegis/src/model/ModifyLogMetaStatusResult.cc +++ b/aegis/src/model/ModifyLogMetaStatusResult.cc @@ -35,10 +35,13 @@ ModifyLogMetaStatusResult::~ModifyLogMetaStatusResult() void ModifyLogMetaStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyMachineConfigResult.cc b/aegis/src/model/ModifyMachineConfigResult.cc index 3eb057d37..458c657b4 100644 --- a/aegis/src/model/ModifyMachineConfigResult.cc +++ b/aegis/src/model/ModifyMachineConfigResult.cc @@ -35,10 +35,13 @@ ModifyMachineConfigResult::~ModifyMachineConfigResult() void ModifyMachineConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyOpenLogShipperResult.cc b/aegis/src/model/ModifyOpenLogShipperResult.cc index 8bb452ba1..01cb8bb9c 100644 --- a/aegis/src/model/ModifyOpenLogShipperResult.cc +++ b/aegis/src/model/ModifyOpenLogShipperResult.cc @@ -35,10 +35,13 @@ ModifyOpenLogShipperResult::~ModifyOpenLogShipperResult() void ModifyOpenLogShipperResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyRefreshProcessInfoRequest.cc b/aegis/src/model/ModifyRefreshProcessInfoRequest.cc new file mode 100644 index 000000000..113230432 --- /dev/null +++ b/aegis/src/model/ModifyRefreshProcessInfoRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Aegis::Model::ModifyRefreshProcessInfoRequest; + +ModifyRefreshProcessInfoRequest::ModifyRefreshProcessInfoRequest() : + RpcServiceRequest("aegis", "2016-11-11", "ModifyRefreshProcessInfo") +{} + +ModifyRefreshProcessInfoRequest::~ModifyRefreshProcessInfoRequest() +{} + +std::string ModifyRefreshProcessInfoRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyRefreshProcessInfoRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyRefreshProcessInfoRequest::getUuid()const +{ + return uuid_; +} + +void ModifyRefreshProcessInfoRequest::setUuid(const std::string& uuid) +{ + uuid_ = uuid; + setCoreParameter("Uuid", uuid); +} + diff --git a/aegis/src/model/ModifyRefreshProcessInfoResult.cc b/aegis/src/model/ModifyRefreshProcessInfoResult.cc new file mode 100644 index 000000000..0d4253bfb --- /dev/null +++ b/aegis/src/model/ModifyRefreshProcessInfoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +ModifyRefreshProcessInfoResult::ModifyRefreshProcessInfoResult() : + ServiceResult() +{} + +ModifyRefreshProcessInfoResult::ModifyRefreshProcessInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRefreshProcessInfoResult::~ModifyRefreshProcessInfoResult() +{} + +void ModifyRefreshProcessInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/ModifySasAssetStatisticsColumnResult.cc b/aegis/src/model/ModifySasAssetStatisticsColumnResult.cc index b0b01cb5c..986fb2ffa 100644 --- a/aegis/src/model/ModifySasAssetStatisticsColumnResult.cc +++ b/aegis/src/model/ModifySasAssetStatisticsColumnResult.cc @@ -35,10 +35,13 @@ ModifySasAssetStatisticsColumnResult::~ModifySasAssetStatisticsColumnResult() void ModifySasAssetStatisticsColumnResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifySaveVulBatchResult.cc b/aegis/src/model/ModifySaveVulBatchResult.cc index 752ac443c..28603c36f 100644 --- a/aegis/src/model/ModifySaveVulBatchResult.cc +++ b/aegis/src/model/ModifySaveVulBatchResult.cc @@ -35,10 +35,13 @@ ModifySaveVulBatchResult::~ModifySaveVulBatchResult() void ModifySaveVulBatchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyScreenSettingResult.cc b/aegis/src/model/ModifyScreenSettingResult.cc index db4c9f49a..18167d15e 100644 --- a/aegis/src/model/ModifyScreenSettingResult.cc +++ b/aegis/src/model/ModifyScreenSettingResult.cc @@ -35,10 +35,13 @@ ModifyScreenSettingResult::~ModifyScreenSettingResult() void ModifyScreenSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifySearchConditionResult.cc b/aegis/src/model/ModifySearchConditionResult.cc index 18ffa228b..b30466049 100644 --- a/aegis/src/model/ModifySearchConditionResult.cc +++ b/aegis/src/model/ModifySearchConditionResult.cc @@ -35,10 +35,13 @@ ModifySearchConditionResult::~ModifySearchConditionResult() void ModifySearchConditionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyStrategyResult.cc b/aegis/src/model/ModifyStrategyResult.cc index b2e6c3e35..8f0226fde 100644 --- a/aegis/src/model/ModifyStrategyResult.cc +++ b/aegis/src/model/ModifyStrategyResult.cc @@ -35,10 +35,13 @@ ModifyStrategyResult::~ModifyStrategyResult() void ModifyStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; if(!resultNode["StrategyId"].isNull()) diff --git a/aegis/src/model/ModifyStrategyTargetResult.cc b/aegis/src/model/ModifyStrategyTargetResult.cc index be3307c91..a10db89eb 100644 --- a/aegis/src/model/ModifyStrategyTargetResult.cc +++ b/aegis/src/model/ModifyStrategyTargetResult.cc @@ -35,10 +35,13 @@ ModifyStrategyTargetResult::~ModifyStrategyTargetResult() void ModifyStrategyTargetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyTargetConfigResult.cc b/aegis/src/model/ModifyTargetConfigResult.cc index 5a8d69c3d..255d5ba79 100644 --- a/aegis/src/model/ModifyTargetConfigResult.cc +++ b/aegis/src/model/ModifyTargetConfigResult.cc @@ -35,10 +35,13 @@ ModifyTargetConfigResult::~ModifyTargetConfigResult() void ModifyTargetConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyVulConfigResult.cc b/aegis/src/model/ModifyVulConfigResult.cc index ae9cdcdd0..f820104e8 100644 --- a/aegis/src/model/ModifyVulConfigResult.cc +++ b/aegis/src/model/ModifyVulConfigResult.cc @@ -35,10 +35,13 @@ ModifyVulConfigResult::~ModifyVulConfigResult() void ModifyVulConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyVulLevelResult.cc b/aegis/src/model/ModifyVulLevelResult.cc index 63cbbf748..bbc96bfee 100644 --- a/aegis/src/model/ModifyVulLevelResult.cc +++ b/aegis/src/model/ModifyVulLevelResult.cc @@ -35,10 +35,13 @@ ModifyVulLevelResult::~ModifyVulLevelResult() void ModifyVulLevelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyVulTargetResult.cc b/aegis/src/model/ModifyVulTargetResult.cc index bb6e946e3..e8d085993 100644 --- a/aegis/src/model/ModifyVulTargetResult.cc +++ b/aegis/src/model/ModifyVulTargetResult.cc @@ -35,10 +35,13 @@ ModifyVulTargetResult::~ModifyVulTargetResult() void ModifyVulTargetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyWebLockCreateConfigRequest.cc b/aegis/src/model/ModifyWebLockCreateConfigRequest.cc index 8db47fb8c..c26efa730 100644 --- a/aegis/src/model/ModifyWebLockCreateConfigRequest.cc +++ b/aegis/src/model/ModifyWebLockCreateConfigRequest.cc @@ -36,6 +36,39 @@ void ModifyWebLockCreateConfigRequest::setLocalBackupDir(const std::string& loca setCoreParameter("LocalBackupDir", localBackupDir); } +std::string ModifyWebLockCreateConfigRequest::getMode()const +{ + return mode_; +} + +void ModifyWebLockCreateConfigRequest::setMode(const std::string& mode) +{ + mode_ = mode; + setCoreParameter("Mode", mode); +} + +std::string ModifyWebLockCreateConfigRequest::getInclusiveFileType()const +{ + return inclusiveFileType_; +} + +void ModifyWebLockCreateConfigRequest::setInclusiveFileType(const std::string& inclusiveFileType) +{ + inclusiveFileType_ = inclusiveFileType; + setCoreParameter("InclusiveFileType", inclusiveFileType); +} + +std::string ModifyWebLockCreateConfigRequest::getExclusiveFile()const +{ + return exclusiveFile_; +} + +void ModifyWebLockCreateConfigRequest::setExclusiveFile(const std::string& exclusiveFile) +{ + exclusiveFile_ = exclusiveFile; + setCoreParameter("ExclusiveFile", exclusiveFile); +} + std::string ModifyWebLockCreateConfigRequest::getSourceIp()const { return sourceIp_; diff --git a/aegis/src/model/ModifyWebLockCreateConfigResult.cc b/aegis/src/model/ModifyWebLockCreateConfigResult.cc index 0c033ad38..135bd06f4 100644 --- a/aegis/src/model/ModifyWebLockCreateConfigResult.cc +++ b/aegis/src/model/ModifyWebLockCreateConfigResult.cc @@ -35,10 +35,13 @@ ModifyWebLockCreateConfigResult::~ModifyWebLockCreateConfigResult() void ModifyWebLockCreateConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyWebLockDeleteConfigResult.cc b/aegis/src/model/ModifyWebLockDeleteConfigResult.cc index e50cb66b6..9b70c7a11 100644 --- a/aegis/src/model/ModifyWebLockDeleteConfigResult.cc +++ b/aegis/src/model/ModifyWebLockDeleteConfigResult.cc @@ -35,10 +35,13 @@ ModifyWebLockDeleteConfigResult::~ModifyWebLockDeleteConfigResult() void ModifyWebLockDeleteConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyWebLockMachineListResult.cc b/aegis/src/model/ModifyWebLockMachineListResult.cc index f0f0bb4cb..efa6d209e 100644 --- a/aegis/src/model/ModifyWebLockMachineListResult.cc +++ b/aegis/src/model/ModifyWebLockMachineListResult.cc @@ -35,10 +35,13 @@ ModifyWebLockMachineListResult::~ModifyWebLockMachineListResult() void ModifyWebLockMachineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyWebLockOperateEventsResult.cc b/aegis/src/model/ModifyWebLockOperateEventsResult.cc index b156a0b28..d5c6ae630 100644 --- a/aegis/src/model/ModifyWebLockOperateEventsResult.cc +++ b/aegis/src/model/ModifyWebLockOperateEventsResult.cc @@ -35,10 +35,13 @@ ModifyWebLockOperateEventsResult::~ModifyWebLockOperateEventsResult() void ModifyWebLockOperateEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyWebLockRefreshResult.cc b/aegis/src/model/ModifyWebLockRefreshResult.cc index 171d74b00..65aff73bd 100644 --- a/aegis/src/model/ModifyWebLockRefreshResult.cc +++ b/aegis/src/model/ModifyWebLockRefreshResult.cc @@ -35,10 +35,13 @@ ModifyWebLockRefreshResult::~ModifyWebLockRefreshResult() void ModifyWebLockRefreshResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyWebLockStatusResult.cc b/aegis/src/model/ModifyWebLockStatusResult.cc index ed99ac3a2..a793cfc50 100644 --- a/aegis/src/model/ModifyWebLockStatusResult.cc +++ b/aegis/src/model/ModifyWebLockStatusResult.cc @@ -35,10 +35,13 @@ ModifyWebLockStatusResult::~ModifyWebLockStatusResult() void ModifyWebLockStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/ModifyWebLockUpdateConfigRequest.cc b/aegis/src/model/ModifyWebLockUpdateConfigRequest.cc index 447794308..ef790e28f 100644 --- a/aegis/src/model/ModifyWebLockUpdateConfigRequest.cc +++ b/aegis/src/model/ModifyWebLockUpdateConfigRequest.cc @@ -36,6 +36,39 @@ void ModifyWebLockUpdateConfigRequest::setLocalBackupDir(const std::string& loca setCoreParameter("LocalBackupDir", localBackupDir); } +std::string ModifyWebLockUpdateConfigRequest::getMode()const +{ + return mode_; +} + +void ModifyWebLockUpdateConfigRequest::setMode(const std::string& mode) +{ + mode_ = mode; + setCoreParameter("Mode", mode); +} + +std::string ModifyWebLockUpdateConfigRequest::getInclusiveFileType()const +{ + return inclusiveFileType_; +} + +void ModifyWebLockUpdateConfigRequest::setInclusiveFileType(const std::string& inclusiveFileType) +{ + inclusiveFileType_ = inclusiveFileType; + setCoreParameter("InclusiveFileType", inclusiveFileType); +} + +std::string ModifyWebLockUpdateConfigRequest::getExclusiveFile()const +{ + return exclusiveFile_; +} + +void ModifyWebLockUpdateConfigRequest::setExclusiveFile(const std::string& exclusiveFile) +{ + exclusiveFile_ = exclusiveFile; + setCoreParameter("ExclusiveFile", exclusiveFile); +} + std::string ModifyWebLockUpdateConfigRequest::getSourceIp()const { return sourceIp_; diff --git a/aegis/src/model/ModifyWebLockUpdateConfigResult.cc b/aegis/src/model/ModifyWebLockUpdateConfigResult.cc index fb3a0339d..f99eeb7df 100644 --- a/aegis/src/model/ModifyWebLockUpdateConfigResult.cc +++ b/aegis/src/model/ModifyWebLockUpdateConfigResult.cc @@ -35,10 +35,13 @@ ModifyWebLockUpdateConfigResult::~ModifyWebLockUpdateConfigResult() void ModifyWebLockUpdateConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OpenSasTrialResult.cc b/aegis/src/model/OpenSasTrialResult.cc index e6df96728..9ef6acecb 100644 --- a/aegis/src/model/OpenSasTrialResult.cc +++ b/aegis/src/model/OpenSasTrialResult.cc @@ -35,10 +35,13 @@ OpenSasTrialResult::~OpenSasTrialResult() void OpenSasTrialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OperateAgentClientInstallResult.cc b/aegis/src/model/OperateAgentClientInstallResult.cc index ad60f2882..2e004ac52 100644 --- a/aegis/src/model/OperateAgentClientInstallResult.cc +++ b/aegis/src/model/OperateAgentClientInstallResult.cc @@ -35,10 +35,13 @@ OperateAgentClientInstallResult::~OperateAgentClientInstallResult() void OperateAgentClientInstallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAegisCelintInstallResposeList = value["AegisCelintInstallResposeList"]["AegisCelintInstallRespose"]; for (auto value : allAegisCelintInstallResposeList) diff --git a/aegis/src/model/OperateResultResult.cc b/aegis/src/model/OperateResultResult.cc index 829ca3782..fd76f60dd 100644 --- a/aegis/src/model/OperateResultResult.cc +++ b/aegis/src/model/OperateResultResult.cc @@ -35,10 +35,13 @@ OperateResultResult::~OperateResultResult() void OperateResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OperateSuspiciousEventResult.cc b/aegis/src/model/OperateSuspiciousEventResult.cc index 7335e1b6d..fab48a98b 100644 --- a/aegis/src/model/OperateSuspiciousEventResult.cc +++ b/aegis/src/model/OperateSuspiciousEventResult.cc @@ -35,10 +35,13 @@ OperateSuspiciousEventResult::~OperateSuspiciousEventResult() void OperateSuspiciousEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OperateSuspiciousOverallConfigResult.cc b/aegis/src/model/OperateSuspiciousOverallConfigResult.cc index 38c2eebc6..0a90a9f2b 100644 --- a/aegis/src/model/OperateSuspiciousOverallConfigResult.cc +++ b/aegis/src/model/OperateSuspiciousOverallConfigResult.cc @@ -35,10 +35,13 @@ OperateSuspiciousOverallConfigResult::~OperateSuspiciousOverallConfigResult() void OperateSuspiciousOverallConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OperateSuspiciousTargetConfigResult.cc b/aegis/src/model/OperateSuspiciousTargetConfigResult.cc index 281f1fa9f..1e7a2002f 100644 --- a/aegis/src/model/OperateSuspiciousTargetConfigResult.cc +++ b/aegis/src/model/OperateSuspiciousTargetConfigResult.cc @@ -35,10 +35,13 @@ OperateSuspiciousTargetConfigResult::~OperateSuspiciousTargetConfigResult() void OperateSuspiciousTargetConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OperateVulResult.cc b/aegis/src/model/OperateVulResult.cc index d6066c464..5e943c131 100644 --- a/aegis/src/model/OperateVulResult.cc +++ b/aegis/src/model/OperateVulResult.cc @@ -35,10 +35,13 @@ OperateVulResult::~OperateVulResult() void OperateVulResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OperateWarningResult.cc b/aegis/src/model/OperateWarningResult.cc index 42c6d6499..937f29c80 100644 --- a/aegis/src/model/OperateWarningResult.cc +++ b/aegis/src/model/OperateWarningResult.cc @@ -35,10 +35,13 @@ OperateWarningResult::~OperateWarningResult() void OperateWarningResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/OperationCustomizeReportChartRequest.cc b/aegis/src/model/OperationCustomizeReportChartRequest.cc new file mode 100644 index 000000000..fe2fb3a2f --- /dev/null +++ b/aegis/src/model/OperationCustomizeReportChartRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::OperationCustomizeReportChartRequest; + +OperationCustomizeReportChartRequest::OperationCustomizeReportChartRequest() : + RpcServiceRequest("aegis", "2016-11-11", "OperationCustomizeReportChart") +{} + +OperationCustomizeReportChartRequest::~OperationCustomizeReportChartRequest() +{} + +std::string OperationCustomizeReportChartRequest::getSourceIp()const +{ + return sourceIp_; +} + +void OperationCustomizeReportChartRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long OperationCustomizeReportChartRequest::getReportId()const +{ + return reportId_; +} + +void OperationCustomizeReportChartRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string OperationCustomizeReportChartRequest::getChartIds()const +{ + return chartIds_; +} + +void OperationCustomizeReportChartRequest::setChartIds(const std::string& chartIds) +{ + chartIds_ = chartIds; + setCoreParameter("ChartIds", chartIds); +} + +std::string OperationCustomizeReportChartRequest::getLang()const +{ + return lang_; +} + +void OperationCustomizeReportChartRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/OperationCustomizeReportChartResult.cc b/aegis/src/model/OperationCustomizeReportChartResult.cc new file mode 100644 index 000000000..f70b66092 --- /dev/null +++ b/aegis/src/model/OperationCustomizeReportChartResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +OperationCustomizeReportChartResult::OperationCustomizeReportChartResult() : + ServiceResult() +{} + +OperationCustomizeReportChartResult::OperationCustomizeReportChartResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperationCustomizeReportChartResult::~OperationCustomizeReportChartResult() +{} + +void OperationCustomizeReportChartResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/OperationSuspEventsResult.cc b/aegis/src/model/OperationSuspEventsResult.cc index 07c443cd0..9c1435d9b 100644 --- a/aegis/src/model/OperationSuspEventsResult.cc +++ b/aegis/src/model/OperationSuspEventsResult.cc @@ -35,10 +35,13 @@ OperationSuspEventsResult::~OperationSuspEventsResult() void OperationSuspEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/aegis/src/model/QueryCrackEventResult.cc b/aegis/src/model/QueryCrackEventResult.cc index 616f6a3ff..adba5394f 100644 --- a/aegis/src/model/QueryCrackEventResult.cc +++ b/aegis/src/model/QueryCrackEventResult.cc @@ -35,10 +35,13 @@ QueryCrackEventResult::~QueryCrackEventResult() void QueryCrackEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allList = value["List"]["Entity"]; diff --git a/aegis/src/model/QueryLoginEventResult.cc b/aegis/src/model/QueryLoginEventResult.cc index a2a0bb3e7..2b231fcdf 100644 --- a/aegis/src/model/QueryLoginEventResult.cc +++ b/aegis/src/model/QueryLoginEventResult.cc @@ -35,10 +35,13 @@ QueryLoginEventResult::~QueryLoginEventResult() void QueryLoginEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allList = value["List"]["Entity"]; diff --git a/aegis/src/model/ReleaseInstanceResult.cc b/aegis/src/model/ReleaseInstanceResult.cc index 23fe4eff6..33e06971e 100644 --- a/aegis/src/model/ReleaseInstanceResult.cc +++ b/aegis/src/model/ReleaseInstanceResult.cc @@ -35,10 +35,13 @@ ReleaseInstanceResult::~ReleaseInstanceResult() void ReleaseInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/RenewInstanceResult.cc b/aegis/src/model/RenewInstanceResult.cc index 9e60f326b..0b98bce5d 100644 --- a/aegis/src/model/RenewInstanceResult.cc +++ b/aegis/src/model/RenewInstanceResult.cc @@ -35,10 +35,13 @@ RenewInstanceResult::~RenewInstanceResult() void RenewInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/aegis/src/model/RollbackQuaraFileResult.cc b/aegis/src/model/RollbackQuaraFileResult.cc index 22e02b7af..70af3ac47 100644 --- a/aegis/src/model/RollbackQuaraFileResult.cc +++ b/aegis/src/model/RollbackQuaraFileResult.cc @@ -35,10 +35,13 @@ RollbackQuaraFileResult::~RollbackQuaraFileResult() void RollbackQuaraFileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); diff --git a/aegis/src/model/RollbackSuspEventQuaraFileResult.cc b/aegis/src/model/RollbackSuspEventQuaraFileResult.cc index e29837215..bb135ccf1 100644 --- a/aegis/src/model/RollbackSuspEventQuaraFileResult.cc +++ b/aegis/src/model/RollbackSuspEventQuaraFileResult.cc @@ -35,10 +35,13 @@ RollbackSuspEventQuaraFileResult::~RollbackSuspEventQuaraFileResult() void RollbackSuspEventQuaraFileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/SaveCustomizeReportConfigRequest.cc b/aegis/src/model/SaveCustomizeReportConfigRequest.cc new file mode 100644 index 000000000..8003da2c5 --- /dev/null +++ b/aegis/src/model/SaveCustomizeReportConfigRequest.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 + +using AlibabaCloud::Aegis::Model::SaveCustomizeReportConfigRequest; + +SaveCustomizeReportConfigRequest::SaveCustomizeReportConfigRequest() : + RpcServiceRequest("aegis", "2016-11-11", "SaveCustomizeReportConfig") +{} + +SaveCustomizeReportConfigRequest::~SaveCustomizeReportConfigRequest() +{} + +int SaveCustomizeReportConfigRequest::getReportSendType()const +{ + return reportSendType_; +} + +void SaveCustomizeReportConfigRequest::setReportSendType(int reportSendType) +{ + reportSendType_ = reportSendType; + setCoreParameter("ReportSendType", std::to_string(reportSendType)); +} + +int SaveCustomizeReportConfigRequest::getReportType()const +{ + return reportType_; +} + +void SaveCustomizeReportConfigRequest::setReportType(int reportType) +{ + reportType_ = reportType; + setCoreParameter("ReportType", std::to_string(reportType)); +} + +std::string SaveCustomizeReportConfigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void SaveCustomizeReportConfigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long SaveCustomizeReportConfigRequest::getReportId()const +{ + return reportId_; +} + +void SaveCustomizeReportConfigRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string SaveCustomizeReportConfigRequest::getReportEndDate()const +{ + return reportEndDate_; +} + +void SaveCustomizeReportConfigRequest::setReportEndDate(const std::string& reportEndDate) +{ + reportEndDate_ = reportEndDate; + setCoreParameter("ReportEndDate", reportEndDate); +} + +std::string SaveCustomizeReportConfigRequest::getReportStartDate()const +{ + return reportStartDate_; +} + +void SaveCustomizeReportConfigRequest::setReportStartDate(const std::string& reportStartDate) +{ + reportStartDate_ = reportStartDate; + setCoreParameter("ReportStartDate", reportStartDate); +} + +std::string SaveCustomizeReportConfigRequest::getRecipients()const +{ + return recipients_; +} + +void SaveCustomizeReportConfigRequest::setRecipients(const std::string& recipients) +{ + recipients_ = recipients; + setCoreParameter("Recipients", recipients); +} + +std::string SaveCustomizeReportConfigRequest::getReportLang()const +{ + return reportLang_; +} + +void SaveCustomizeReportConfigRequest::setReportLang(const std::string& reportLang) +{ + reportLang_ = reportLang; + setCoreParameter("ReportLang", reportLang); +} + +std::string SaveCustomizeReportConfigRequest::getLang()const +{ + return lang_; +} + +void SaveCustomizeReportConfigRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string SaveCustomizeReportConfigRequest::getTitle()const +{ + return title_; +} + +void SaveCustomizeReportConfigRequest::setTitle(const std::string& title) +{ + title_ = title; + setCoreParameter("Title", title); +} + +std::string SaveCustomizeReportConfigRequest::getSendTime()const +{ + return sendTime_; +} + +void SaveCustomizeReportConfigRequest::setSendTime(const std::string& sendTime) +{ + sendTime_ = sendTime; + setCoreParameter("SendTime", sendTime); +} + +int SaveCustomizeReportConfigRequest::getReportStatus()const +{ + return reportStatus_; +} + +void SaveCustomizeReportConfigRequest::setReportStatus(int reportStatus) +{ + reportStatus_ = reportStatus; + setCoreParameter("ReportStatus", std::to_string(reportStatus)); +} + diff --git a/aegis/src/model/SaveCustomizeReportConfigResult.cc b/aegis/src/model/SaveCustomizeReportConfigResult.cc new file mode 100644 index 000000000..71e63271c --- /dev/null +++ b/aegis/src/model/SaveCustomizeReportConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +SaveCustomizeReportConfigResult::SaveCustomizeReportConfigResult() : + ServiceResult() +{} + +SaveCustomizeReportConfigResult::SaveCustomizeReportConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveCustomizeReportConfigResult::~SaveCustomizeReportConfigResult() +{} + +void SaveCustomizeReportConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ReportId"].isNull()) + reportId_ = std::stol(value["ReportId"].asString()); + +} + +long SaveCustomizeReportConfigResult::getReportId()const +{ + return reportId_; +} + diff --git a/aegis/src/model/SaveSuspEventUserSettingResult.cc b/aegis/src/model/SaveSuspEventUserSettingResult.cc index 4a7a7de0e..a033e5f0c 100644 --- a/aegis/src/model/SaveSuspEventUserSettingResult.cc +++ b/aegis/src/model/SaveSuspEventUserSettingResult.cc @@ -35,10 +35,13 @@ SaveSuspEventUserSettingResult::~SaveSuspEventUserSettingResult() void SaveSuspEventUserSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/SaveWhiteListStrategyAssetsResult.cc b/aegis/src/model/SaveWhiteListStrategyAssetsResult.cc index fd3479062..94a8c4d36 100644 --- a/aegis/src/model/SaveWhiteListStrategyAssetsResult.cc +++ b/aegis/src/model/SaveWhiteListStrategyAssetsResult.cc @@ -35,10 +35,13 @@ SaveWhiteListStrategyAssetsResult::~SaveWhiteListStrategyAssetsResult() void SaveWhiteListStrategyAssetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/SaveWhiteListStrategyResult.cc b/aegis/src/model/SaveWhiteListStrategyResult.cc index 46bca4eca..bdc852b04 100644 --- a/aegis/src/model/SaveWhiteListStrategyResult.cc +++ b/aegis/src/model/SaveWhiteListStrategyResult.cc @@ -35,10 +35,13 @@ SaveWhiteListStrategyResult::~SaveWhiteListStrategyResult() void SaveWhiteListStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["StrategyId"].isNull()) strategyId_ = std::stol(value["StrategyId"].asString()); diff --git a/aegis/src/model/SendCustomizeReportRequest.cc b/aegis/src/model/SendCustomizeReportRequest.cc new file mode 100644 index 000000000..8ef5d042e --- /dev/null +++ b/aegis/src/model/SendCustomizeReportRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::SendCustomizeReportRequest; + +SendCustomizeReportRequest::SendCustomizeReportRequest() : + RpcServiceRequest("aegis", "2016-11-11", "SendCustomizeReport") +{} + +SendCustomizeReportRequest::~SendCustomizeReportRequest() +{} + +std::string SendCustomizeReportRequest::getSourceIp()const +{ + return sourceIp_; +} + +void SendCustomizeReportRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long SendCustomizeReportRequest::getReportId()const +{ + return reportId_; +} + +void SendCustomizeReportRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string SendCustomizeReportRequest::getLang()const +{ + return lang_; +} + +void SendCustomizeReportRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/aegis/src/model/SendCustomizeReportResult.cc b/aegis/src/model/SendCustomizeReportResult.cc new file mode 100644 index 000000000..71794d009 --- /dev/null +++ b/aegis/src/model/SendCustomizeReportResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +SendCustomizeReportResult::SendCustomizeReportResult() : + ServiceResult() +{} + +SendCustomizeReportResult::SendCustomizeReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendCustomizeReportResult::~SendCustomizeReportResult() +{} + +void SendCustomizeReportResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/SetDatasourceStatusResult.cc b/aegis/src/model/SetDatasourceStatusResult.cc index e0f172860..44bf0fbb4 100644 --- a/aegis/src/model/SetDatasourceStatusResult.cc +++ b/aegis/src/model/SetDatasourceStatusResult.cc @@ -35,10 +35,13 @@ SetDatasourceStatusResult::~SetDatasourceStatusResult() void SetDatasourceStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/TransformLeakageResult.cc b/aegis/src/model/TransformLeakageResult.cc index 339718d32..9c0a03102 100644 --- a/aegis/src/model/TransformLeakageResult.cc +++ b/aegis/src/model/TransformLeakageResult.cc @@ -35,10 +35,13 @@ TransformLeakageResult::~TransformLeakageResult() void TransformLeakageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/aegis/src/model/UpdateCustomizeReportStatusRequest.cc b/aegis/src/model/UpdateCustomizeReportStatusRequest.cc new file mode 100644 index 000000000..f367fa5dc --- /dev/null +++ b/aegis/src/model/UpdateCustomizeReportStatusRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Aegis::Model::UpdateCustomizeReportStatusRequest; + +UpdateCustomizeReportStatusRequest::UpdateCustomizeReportStatusRequest() : + RpcServiceRequest("aegis", "2016-11-11", "UpdateCustomizeReportStatus") +{} + +UpdateCustomizeReportStatusRequest::~UpdateCustomizeReportStatusRequest() +{} + +std::string UpdateCustomizeReportStatusRequest::getSourceIp()const +{ + return sourceIp_; +} + +void UpdateCustomizeReportStatusRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long UpdateCustomizeReportStatusRequest::getReportId()const +{ + return reportId_; +} + +void UpdateCustomizeReportStatusRequest::setReportId(long reportId) +{ + reportId_ = reportId; + setCoreParameter("ReportId", std::to_string(reportId)); +} + +std::string UpdateCustomizeReportStatusRequest::getLang()const +{ + return lang_; +} + +void UpdateCustomizeReportStatusRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int UpdateCustomizeReportStatusRequest::getReportStatus()const +{ + return reportStatus_; +} + +void UpdateCustomizeReportStatusRequest::setReportStatus(int reportStatus) +{ + reportStatus_ = reportStatus; + setCoreParameter("ReportStatus", std::to_string(reportStatus)); +} + diff --git a/aegis/src/model/UpdateCustomizeReportStatusResult.cc b/aegis/src/model/UpdateCustomizeReportStatusResult.cc new file mode 100644 index 000000000..175dc9b80 --- /dev/null +++ b/aegis/src/model/UpdateCustomizeReportStatusResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +UpdateCustomizeReportStatusResult::UpdateCustomizeReportStatusResult() : + ServiceResult() +{} + +UpdateCustomizeReportStatusResult::UpdateCustomizeReportStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCustomizeReportStatusResult::~UpdateCustomizeReportStatusResult() +{} + +void UpdateCustomizeReportStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/UpdateWhiteListProcessStatusResult.cc b/aegis/src/model/UpdateWhiteListProcessStatusResult.cc index bb89716b6..d5486077f 100644 --- a/aegis/src/model/UpdateWhiteListProcessStatusResult.cc +++ b/aegis/src/model/UpdateWhiteListProcessStatusResult.cc @@ -35,10 +35,13 @@ UpdateWhiteListProcessStatusResult::~UpdateWhiteListProcessStatusResult() void UpdateWhiteListProcessStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/UpdateWhiteListStrategyRelationResult.cc b/aegis/src/model/UpdateWhiteListStrategyRelationResult.cc index 4095a1761..867455b2e 100644 --- a/aegis/src/model/UpdateWhiteListStrategyRelationResult.cc +++ b/aegis/src/model/UpdateWhiteListStrategyRelationResult.cc @@ -35,10 +35,13 @@ UpdateWhiteListStrategyRelationResult::~UpdateWhiteListStrategyRelationResult() void UpdateWhiteListStrategyRelationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/UpdateWhiteListStrategyStatusResult.cc b/aegis/src/model/UpdateWhiteListStrategyStatusResult.cc index be7353311..dae41e0d0 100644 --- a/aegis/src/model/UpdateWhiteListStrategyStatusResult.cc +++ b/aegis/src/model/UpdateWhiteListStrategyStatusResult.cc @@ -35,10 +35,13 @@ UpdateWhiteListStrategyStatusResult::~UpdateWhiteListStrategyStatusResult() void UpdateWhiteListStrategyStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/aegis/src/model/UpgradeInstanceResult.cc b/aegis/src/model/UpgradeInstanceResult.cc index e104d1de1..9645f7078 100644 --- a/aegis/src/model/UpgradeInstanceResult.cc +++ b/aegis/src/model/UpgradeInstanceResult.cc @@ -35,10 +35,13 @@ UpgradeInstanceResult::~UpgradeInstanceResult() void UpgradeInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/aegis/src/model/ValidateHcWarningsResult.cc b/aegis/src/model/ValidateHcWarningsResult.cc index 1d9f1897a..8c43134b4 100644 --- a/aegis/src/model/ValidateHcWarningsResult.cc +++ b/aegis/src/model/ValidateHcWarningsResult.cc @@ -35,10 +35,13 @@ ValidateHcWarningsResult::~ValidateHcWarningsResult() void ValidateHcWarningsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/afs/CMakeLists.txt b/afs/CMakeLists.txt index 5ac926620..58dde3fb6 100644 --- a/afs/CMakeLists.txt +++ b/afs/CMakeLists.txt @@ -45,10 +45,10 @@ set(afs_public_header_model include/alibabacloud/afs/model/AuthenticateSigResult.h include/alibabacloud/afs/model/DescribeConfigNameRequest.h include/alibabacloud/afs/model/DescribeConfigNameResult.h - include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h - include/alibabacloud/afs/model/DescribeCaptchaDayResult.h include/alibabacloud/afs/model/UpdateConfigNameRequest.h include/alibabacloud/afs/model/UpdateConfigNameResult.h + include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h + include/alibabacloud/afs/model/DescribeCaptchaDayResult.h include/alibabacloud/afs/model/DescribePersonMachineListRequest.h include/alibabacloud/afs/model/DescribePersonMachineListResult.h ) @@ -78,10 +78,10 @@ set(afs_src src/model/AuthenticateSigResult.cc src/model/DescribeConfigNameRequest.cc src/model/DescribeConfigNameResult.cc - src/model/DescribeCaptchaDayRequest.cc - src/model/DescribeCaptchaDayResult.cc src/model/UpdateConfigNameRequest.cc src/model/UpdateConfigNameResult.cc + src/model/DescribeCaptchaDayRequest.cc + src/model/DescribeCaptchaDayResult.cc src/model/DescribePersonMachineListRequest.cc src/model/DescribePersonMachineListResult.cc ) diff --git a/afs/include/alibabacloud/afs/AfsClient.h b/afs/include/alibabacloud/afs/AfsClient.h index 10395a5f7..d05377971 100644 --- a/afs/include/alibabacloud/afs/AfsClient.h +++ b/afs/include/alibabacloud/afs/AfsClient.h @@ -46,10 +46,10 @@ #include "model/AuthenticateSigResult.h" #include "model/DescribeConfigNameRequest.h" #include "model/DescribeConfigNameResult.h" -#include "model/DescribeCaptchaDayRequest.h" -#include "model/DescribeCaptchaDayResult.h" #include "model/UpdateConfigNameRequest.h" #include "model/UpdateConfigNameResult.h" +#include "model/DescribeCaptchaDayRequest.h" +#include "model/DescribeCaptchaDayResult.h" #include "model/DescribePersonMachineListRequest.h" #include "model/DescribePersonMachineListResult.h" @@ -97,12 +97,12 @@ namespace AlibabaCloud typedef Outcome DescribeConfigNameOutcome; typedef std::future DescribeConfigNameOutcomeCallable; typedef std::function&)> DescribeConfigNameAsyncHandler; - typedef Outcome DescribeCaptchaDayOutcome; - typedef std::future DescribeCaptchaDayOutcomeCallable; - typedef std::function&)> DescribeCaptchaDayAsyncHandler; typedef Outcome UpdateConfigNameOutcome; typedef std::future UpdateConfigNameOutcomeCallable; typedef std::function&)> UpdateConfigNameAsyncHandler; + typedef Outcome DescribeCaptchaDayOutcome; + typedef std::future DescribeCaptchaDayOutcomeCallable; + typedef std::function&)> DescribeCaptchaDayAsyncHandler; typedef Outcome DescribePersonMachineListOutcome; typedef std::future DescribePersonMachineListOutcomeCallable; typedef std::function&)> DescribePersonMachineListAsyncHandler; @@ -147,12 +147,12 @@ namespace AlibabaCloud DescribeConfigNameOutcome describeConfigName(const Model::DescribeConfigNameRequest &request)const; void describeConfigNameAsync(const Model::DescribeConfigNameRequest& request, const DescribeConfigNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeConfigNameOutcomeCallable describeConfigNameCallable(const Model::DescribeConfigNameRequest& request) const; - DescribeCaptchaDayOutcome describeCaptchaDay(const Model::DescribeCaptchaDayRequest &request)const; - void describeCaptchaDayAsync(const Model::DescribeCaptchaDayRequest& request, const DescribeCaptchaDayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCaptchaDayOutcomeCallable describeCaptchaDayCallable(const Model::DescribeCaptchaDayRequest& request) const; UpdateConfigNameOutcome updateConfigName(const Model::UpdateConfigNameRequest &request)const; void updateConfigNameAsync(const Model::UpdateConfigNameRequest& request, const UpdateConfigNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateConfigNameOutcomeCallable updateConfigNameCallable(const Model::UpdateConfigNameRequest& request) const; + DescribeCaptchaDayOutcome describeCaptchaDay(const Model::DescribeCaptchaDayRequest &request)const; + void describeCaptchaDayAsync(const Model::DescribeCaptchaDayRequest& request, const DescribeCaptchaDayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCaptchaDayOutcomeCallable describeCaptchaDayCallable(const Model::DescribeCaptchaDayRequest& request) const; DescribePersonMachineListOutcome describePersonMachineList(const Model::DescribePersonMachineListRequest &request)const; void describePersonMachineListAsync(const Model::DescribePersonMachineListRequest& request, const DescribePersonMachineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePersonMachineListOutcomeCallable describePersonMachineListCallable(const Model::DescribePersonMachineListRequest& request) const; diff --git a/afs/src/AfsClient.cc b/afs/src/AfsClient.cc index 71ebb09f1..e9275171b 100644 --- a/afs/src/AfsClient.cc +++ b/afs/src/AfsClient.cc @@ -483,42 +483,6 @@ AfsClient::DescribeConfigNameOutcomeCallable AfsClient::describeConfigNameCallab return task->get_future(); } -AfsClient::DescribeCaptchaDayOutcome AfsClient::describeCaptchaDay(const DescribeCaptchaDayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCaptchaDayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCaptchaDayOutcome(DescribeCaptchaDayResult(outcome.result())); - else - return DescribeCaptchaDayOutcome(outcome.error()); -} - -void AfsClient::describeCaptchaDayAsync(const DescribeCaptchaDayRequest& request, const DescribeCaptchaDayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCaptchaDay(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AfsClient::DescribeCaptchaDayOutcomeCallable AfsClient::describeCaptchaDayCallable(const DescribeCaptchaDayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCaptchaDay(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AfsClient::UpdateConfigNameOutcome AfsClient::updateConfigName(const UpdateConfigNameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +519,42 @@ AfsClient::UpdateConfigNameOutcomeCallable AfsClient::updateConfigNameCallable(c return task->get_future(); } +AfsClient::DescribeCaptchaDayOutcome AfsClient::describeCaptchaDay(const DescribeCaptchaDayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCaptchaDayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCaptchaDayOutcome(DescribeCaptchaDayResult(outcome.result())); + else + return DescribeCaptchaDayOutcome(outcome.error()); +} + +void AfsClient::describeCaptchaDayAsync(const DescribeCaptchaDayRequest& request, const DescribeCaptchaDayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCaptchaDay(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribeCaptchaDayOutcomeCallable AfsClient::describeCaptchaDayCallable(const DescribeCaptchaDayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCaptchaDay(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AfsClient::DescribePersonMachineListOutcome AfsClient::describePersonMachineList(const DescribePersonMachineListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/afs/src/model/AnalyzeNvcRequest.cc b/afs/src/model/AnalyzeNvcRequest.cc index 9edd88c93..875b5a95a 100644 --- a/afs/src/model/AnalyzeNvcRequest.cc +++ b/afs/src/model/AnalyzeNvcRequest.cc @@ -33,7 +33,7 @@ std::string AnalyzeNvcRequest::getSourceIp()const void AnalyzeNvcRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string AnalyzeNvcRequest::getData()const @@ -44,7 +44,7 @@ std::string AnalyzeNvcRequest::getData()const void AnalyzeNvcRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string AnalyzeNvcRequest::getScoreJsonStr()const @@ -55,6 +55,6 @@ std::string AnalyzeNvcRequest::getScoreJsonStr()const void AnalyzeNvcRequest::setScoreJsonStr(const std::string& scoreJsonStr) { scoreJsonStr_ = scoreJsonStr; - setParameter("ScoreJsonStr", scoreJsonStr); + setCoreParameter("ScoreJsonStr", scoreJsonStr); } diff --git a/afs/src/model/AnalyzeNvcResult.cc b/afs/src/model/AnalyzeNvcResult.cc index 144607fc9..d1db30450 100644 --- a/afs/src/model/AnalyzeNvcResult.cc +++ b/afs/src/model/AnalyzeNvcResult.cc @@ -35,10 +35,13 @@ AnalyzeNvcResult::~AnalyzeNvcResult() void AnalyzeNvcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizCode"].isNull()) bizCode_ = value["BizCode"].asString(); diff --git a/afs/src/model/AuthenticateSigRequest.cc b/afs/src/model/AuthenticateSigRequest.cc index a8e2f3657..8d3cd5615 100644 --- a/afs/src/model/AuthenticateSigRequest.cc +++ b/afs/src/model/AuthenticateSigRequest.cc @@ -33,7 +33,7 @@ std::string AuthenticateSigRequest::getSig()const void AuthenticateSigRequest::setSig(const std::string& sig) { sig_ = sig; - setParameter("Sig", sig); + setCoreParameter("Sig", sig); } std::string AuthenticateSigRequest::getRemoteIp()const @@ -44,7 +44,7 @@ std::string AuthenticateSigRequest::getRemoteIp()const void AuthenticateSigRequest::setRemoteIp(const std::string& remoteIp) { remoteIp_ = remoteIp; - setParameter("RemoteIp", remoteIp); + setCoreParameter("RemoteIp", remoteIp); } std::string AuthenticateSigRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string AuthenticateSigRequest::getSourceIp()const void AuthenticateSigRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string AuthenticateSigRequest::getAppKey()const @@ -66,7 +66,7 @@ std::string AuthenticateSigRequest::getAppKey()const void AuthenticateSigRequest::setAppKey(const std::string& appKey) { appKey_ = appKey; - setParameter("AppKey", appKey); + setCoreParameter("AppKey", appKey); } std::string AuthenticateSigRequest::getSessionId()const @@ -77,7 +77,7 @@ std::string AuthenticateSigRequest::getSessionId()const void AuthenticateSigRequest::setSessionId(const std::string& sessionId) { sessionId_ = sessionId; - setParameter("SessionId", sessionId); + setCoreParameter("SessionId", sessionId); } std::string AuthenticateSigRequest::getToken()const @@ -88,7 +88,7 @@ std::string AuthenticateSigRequest::getToken()const void AuthenticateSigRequest::setToken(const std::string& token) { token_ = token; - setParameter("Token", token); + setCoreParameter("Token", token); } std::string AuthenticateSigRequest::getScene()const @@ -99,6 +99,6 @@ std::string AuthenticateSigRequest::getScene()const void AuthenticateSigRequest::setScene(const std::string& scene) { scene_ = scene; - setParameter("Scene", scene); + setCoreParameter("Scene", scene); } diff --git a/afs/src/model/AuthenticateSigResult.cc b/afs/src/model/AuthenticateSigResult.cc index c70f77a7a..da83b751e 100644 --- a/afs/src/model/AuthenticateSigResult.cc +++ b/afs/src/model/AuthenticateSigResult.cc @@ -35,10 +35,13 @@ AuthenticateSigResult::~AuthenticateSigResult() void AuthenticateSigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/afs/src/model/ConfigurationStyleRequest.cc b/afs/src/model/ConfigurationStyleRequest.cc index b8b0c294b..e3eafb75f 100644 --- a/afs/src/model/ConfigurationStyleRequest.cc +++ b/afs/src/model/ConfigurationStyleRequest.cc @@ -33,7 +33,7 @@ std::string ConfigurationStyleRequest::getSourceIp()const void ConfigurationStyleRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string ConfigurationStyleRequest::getConfigurationMethod()const @@ -44,7 +44,7 @@ std::string ConfigurationStyleRequest::getConfigurationMethod()const void ConfigurationStyleRequest::setConfigurationMethod(const std::string& configurationMethod) { configurationMethod_ = configurationMethod; - setParameter("ConfigurationMethod", configurationMethod); + setCoreParameter("ConfigurationMethod", configurationMethod); } std::string ConfigurationStyleRequest::getRefExtId()const @@ -55,7 +55,7 @@ std::string ConfigurationStyleRequest::getRefExtId()const void ConfigurationStyleRequest::setRefExtId(const std::string& refExtId) { refExtId_ = refExtId; - setParameter("RefExtId", refExtId); + setCoreParameter("RefExtId", refExtId); } std::string ConfigurationStyleRequest::getApplyType()const @@ -66,7 +66,7 @@ std::string ConfigurationStyleRequest::getApplyType()const void ConfigurationStyleRequest::setApplyType(const std::string& applyType) { applyType_ = applyType; - setParameter("ApplyType", applyType); + setCoreParameter("ApplyType", applyType); } std::string ConfigurationStyleRequest::getScene()const @@ -77,6 +77,6 @@ std::string ConfigurationStyleRequest::getScene()const void ConfigurationStyleRequest::setScene(const std::string& scene) { scene_ = scene; - setParameter("Scene", scene); + setCoreParameter("Scene", scene); } diff --git a/afs/src/model/ConfigurationStyleResult.cc b/afs/src/model/ConfigurationStyleResult.cc index c771b5a50..580068c79 100644 --- a/afs/src/model/ConfigurationStyleResult.cc +++ b/afs/src/model/ConfigurationStyleResult.cc @@ -35,10 +35,13 @@ ConfigurationStyleResult::~ConfigurationStyleResult() void ConfigurationStyleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto codeDataNode = value["CodeData"]; if(!codeDataNode["Html"].isNull()) diff --git a/afs/src/model/CreateConfigurationRequest.cc b/afs/src/model/CreateConfigurationRequest.cc index 66cc50cda..b124ec0e8 100644 --- a/afs/src/model/CreateConfigurationRequest.cc +++ b/afs/src/model/CreateConfigurationRequest.cc @@ -33,7 +33,7 @@ std::string CreateConfigurationRequest::getSourceIp()const void CreateConfigurationRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateConfigurationRequest::getConfigurationName()const @@ -44,7 +44,7 @@ std::string CreateConfigurationRequest::getConfigurationName()const void CreateConfigurationRequest::setConfigurationName(const std::string& configurationName) { configurationName_ = configurationName; - setParameter("ConfigurationName", configurationName); + setCoreParameter("ConfigurationName", configurationName); } std::string CreateConfigurationRequest::getMaxPV()const @@ -55,7 +55,7 @@ std::string CreateConfigurationRequest::getMaxPV()const void CreateConfigurationRequest::setMaxPV(const std::string& maxPV) { maxPV_ = maxPV; - setParameter("MaxPV", maxPV); + setCoreParameter("MaxPV", maxPV); } std::string CreateConfigurationRequest::getConfigurationMethod()const @@ -66,7 +66,7 @@ std::string CreateConfigurationRequest::getConfigurationMethod()const void CreateConfigurationRequest::setConfigurationMethod(const std::string& configurationMethod) { configurationMethod_ = configurationMethod; - setParameter("ConfigurationMethod", configurationMethod); + setCoreParameter("ConfigurationMethod", configurationMethod); } std::string CreateConfigurationRequest::getApplyType()const @@ -77,7 +77,7 @@ std::string CreateConfigurationRequest::getApplyType()const void CreateConfigurationRequest::setApplyType(const std::string& applyType) { applyType_ = applyType; - setParameter("ApplyType", applyType); + setCoreParameter("ApplyType", applyType); } std::string CreateConfigurationRequest::getScene()const @@ -88,6 +88,6 @@ std::string CreateConfigurationRequest::getScene()const void CreateConfigurationRequest::setScene(const std::string& scene) { scene_ = scene; - setParameter("Scene", scene); + setCoreParameter("Scene", scene); } diff --git a/afs/src/model/CreateConfigurationResult.cc b/afs/src/model/CreateConfigurationResult.cc index 7e12fae44..38a40e12f 100644 --- a/afs/src/model/CreateConfigurationResult.cc +++ b/afs/src/model/CreateConfigurationResult.cc @@ -35,10 +35,13 @@ CreateConfigurationResult::~CreateConfigurationResult() void CreateConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizCode"].isNull()) bizCode_ = value["BizCode"].asString(); diff --git a/afs/src/model/DescribeCaptchaDayRequest.cc b/afs/src/model/DescribeCaptchaDayRequest.cc index 1619a5326..7cc659337 100644 --- a/afs/src/model/DescribeCaptchaDayRequest.cc +++ b/afs/src/model/DescribeCaptchaDayRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCaptchaDayRequest::getSourceIp()const void DescribeCaptchaDayRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCaptchaDayRequest::getConfigName()const @@ -44,7 +44,7 @@ std::string DescribeCaptchaDayRequest::getConfigName()const void DescribeCaptchaDayRequest::setConfigName(const std::string& configName) { configName_ = configName; - setParameter("ConfigName", configName); + setCoreParameter("ConfigName", configName); } std::string DescribeCaptchaDayRequest::getRefExtId()const @@ -55,7 +55,7 @@ std::string DescribeCaptchaDayRequest::getRefExtId()const void DescribeCaptchaDayRequest::setRefExtId(const std::string& refExtId) { refExtId_ = refExtId; - setParameter("RefExtId", refExtId); + setCoreParameter("RefExtId", refExtId); } std::string DescribeCaptchaDayRequest::getTime()const @@ -66,7 +66,7 @@ std::string DescribeCaptchaDayRequest::getTime()const void DescribeCaptchaDayRequest::setTime(const std::string& time) { time_ = time; - setParameter("Time", time); + setCoreParameter("Time", time); } std::string DescribeCaptchaDayRequest::getType()const @@ -77,6 +77,6 @@ std::string DescribeCaptchaDayRequest::getType()const void DescribeCaptchaDayRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } diff --git a/afs/src/model/DescribeCaptchaDayResult.cc b/afs/src/model/DescribeCaptchaDayResult.cc index 2125ca19a..06e39020d 100644 --- a/afs/src/model/DescribeCaptchaDayResult.cc +++ b/afs/src/model/DescribeCaptchaDayResult.cc @@ -35,10 +35,13 @@ DescribeCaptchaDayResult::~DescribeCaptchaDayResult() void DescribeCaptchaDayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto captchaDayNode = value["CaptchaDay"]; if(!captchaDayNode["Init"].isNull()) diff --git a/afs/src/model/DescribeCaptchaIpCityRequest.cc b/afs/src/model/DescribeCaptchaIpCityRequest.cc index 30f9677a2..c81c420dd 100644 --- a/afs/src/model/DescribeCaptchaIpCityRequest.cc +++ b/afs/src/model/DescribeCaptchaIpCityRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCaptchaIpCityRequest::getSourceIp()const void DescribeCaptchaIpCityRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCaptchaIpCityRequest::getConfigName()const @@ -44,7 +44,7 @@ std::string DescribeCaptchaIpCityRequest::getConfigName()const void DescribeCaptchaIpCityRequest::setConfigName(const std::string& configName) { configName_ = configName; - setParameter("ConfigName", configName); + setCoreParameter("ConfigName", configName); } std::string DescribeCaptchaIpCityRequest::getRefExtId()const @@ -55,7 +55,7 @@ std::string DescribeCaptchaIpCityRequest::getRefExtId()const void DescribeCaptchaIpCityRequest::setRefExtId(const std::string& refExtId) { refExtId_ = refExtId; - setParameter("RefExtId", refExtId); + setCoreParameter("RefExtId", refExtId); } std::string DescribeCaptchaIpCityRequest::getTime()const @@ -66,7 +66,7 @@ std::string DescribeCaptchaIpCityRequest::getTime()const void DescribeCaptchaIpCityRequest::setTime(const std::string& time) { time_ = time; - setParameter("Time", time); + setCoreParameter("Time", time); } std::string DescribeCaptchaIpCityRequest::getType()const @@ -77,6 +77,6 @@ std::string DescribeCaptchaIpCityRequest::getType()const void DescribeCaptchaIpCityRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } diff --git a/afs/src/model/DescribeCaptchaIpCityResult.cc b/afs/src/model/DescribeCaptchaIpCityResult.cc index fe7227048..04e199850 100644 --- a/afs/src/model/DescribeCaptchaIpCityResult.cc +++ b/afs/src/model/DescribeCaptchaIpCityResult.cc @@ -35,10 +35,13 @@ DescribeCaptchaIpCityResult::~DescribeCaptchaIpCityResult() void DescribeCaptchaIpCityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCaptchaCities = value["CaptchaCities"]["CaptchaCitie"]; for (auto value : allCaptchaCities) diff --git a/afs/src/model/DescribeCaptchaMinRequest.cc b/afs/src/model/DescribeCaptchaMinRequest.cc index 66856be86..fd7ae9724 100644 --- a/afs/src/model/DescribeCaptchaMinRequest.cc +++ b/afs/src/model/DescribeCaptchaMinRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCaptchaMinRequest::getSourceIp()const void DescribeCaptchaMinRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCaptchaMinRequest::getConfigName()const @@ -44,7 +44,7 @@ std::string DescribeCaptchaMinRequest::getConfigName()const void DescribeCaptchaMinRequest::setConfigName(const std::string& configName) { configName_ = configName; - setParameter("ConfigName", configName); + setCoreParameter("ConfigName", configName); } std::string DescribeCaptchaMinRequest::getRefExtId()const @@ -55,7 +55,7 @@ std::string DescribeCaptchaMinRequest::getRefExtId()const void DescribeCaptchaMinRequest::setRefExtId(const std::string& refExtId) { refExtId_ = refExtId; - setParameter("RefExtId", refExtId); + setCoreParameter("RefExtId", refExtId); } std::string DescribeCaptchaMinRequest::getTime()const @@ -66,7 +66,7 @@ std::string DescribeCaptchaMinRequest::getTime()const void DescribeCaptchaMinRequest::setTime(const std::string& time) { time_ = time; - setParameter("Time", time); + setCoreParameter("Time", time); } std::string DescribeCaptchaMinRequest::getType()const @@ -77,6 +77,6 @@ std::string DescribeCaptchaMinRequest::getType()const void DescribeCaptchaMinRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } diff --git a/afs/src/model/DescribeCaptchaMinResult.cc b/afs/src/model/DescribeCaptchaMinResult.cc index 105601705..8420d1545 100644 --- a/afs/src/model/DescribeCaptchaMinResult.cc +++ b/afs/src/model/DescribeCaptchaMinResult.cc @@ -35,10 +35,13 @@ DescribeCaptchaMinResult::~DescribeCaptchaMinResult() void DescribeCaptchaMinResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCaptchaMins = value["CaptchaMins"]["CaptchaMin"]; for (auto value : allCaptchaMins) diff --git a/afs/src/model/DescribeCaptchaOrderRequest.cc b/afs/src/model/DescribeCaptchaOrderRequest.cc index 00551ce55..edb86c6bd 100644 --- a/afs/src/model/DescribeCaptchaOrderRequest.cc +++ b/afs/src/model/DescribeCaptchaOrderRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCaptchaOrderRequest::getSourceIp()const void DescribeCaptchaOrderRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCaptchaOrderRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeCaptchaOrderRequest::getLang()const void DescribeCaptchaOrderRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/afs/src/model/DescribeCaptchaOrderResult.cc b/afs/src/model/DescribeCaptchaOrderResult.cc index 568d209ea..87de802ac 100644 --- a/afs/src/model/DescribeCaptchaOrderResult.cc +++ b/afs/src/model/DescribeCaptchaOrderResult.cc @@ -35,10 +35,13 @@ DescribeCaptchaOrderResult::~DescribeCaptchaOrderResult() void DescribeCaptchaOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizCode"].isNull()) bizCode_ = value["BizCode"].asString(); diff --git a/afs/src/model/DescribeCaptchaRiskRequest.cc b/afs/src/model/DescribeCaptchaRiskRequest.cc index 56d74e4e5..07ae5bbb6 100644 --- a/afs/src/model/DescribeCaptchaRiskRequest.cc +++ b/afs/src/model/DescribeCaptchaRiskRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCaptchaRiskRequest::getSourceIp()const void DescribeCaptchaRiskRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCaptchaRiskRequest::getConfigName()const @@ -44,7 +44,7 @@ std::string DescribeCaptchaRiskRequest::getConfigName()const void DescribeCaptchaRiskRequest::setConfigName(const std::string& configName) { configName_ = configName; - setParameter("ConfigName", configName); + setCoreParameter("ConfigName", configName); } std::string DescribeCaptchaRiskRequest::getRefExtId()const @@ -55,7 +55,7 @@ std::string DescribeCaptchaRiskRequest::getRefExtId()const void DescribeCaptchaRiskRequest::setRefExtId(const std::string& refExtId) { refExtId_ = refExtId; - setParameter("RefExtId", refExtId); + setCoreParameter("RefExtId", refExtId); } std::string DescribeCaptchaRiskRequest::getTime()const @@ -66,6 +66,6 @@ std::string DescribeCaptchaRiskRequest::getTime()const void DescribeCaptchaRiskRequest::setTime(const std::string& time) { time_ = time; - setParameter("Time", time); + setCoreParameter("Time", time); } diff --git a/afs/src/model/DescribeCaptchaRiskResult.cc b/afs/src/model/DescribeCaptchaRiskResult.cc index 8f73f396f..bc978b984 100644 --- a/afs/src/model/DescribeCaptchaRiskResult.cc +++ b/afs/src/model/DescribeCaptchaRiskResult.cc @@ -35,10 +35,13 @@ DescribeCaptchaRiskResult::~DescribeCaptchaRiskResult() void DescribeCaptchaRiskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizCode"].isNull()) bizCode_ = value["BizCode"].asString(); diff --git a/afs/src/model/DescribeConfigNameRequest.cc b/afs/src/model/DescribeConfigNameRequest.cc index 603f6ec38..324534212 100644 --- a/afs/src/model/DescribeConfigNameRequest.cc +++ b/afs/src/model/DescribeConfigNameRequest.cc @@ -33,6 +33,6 @@ std::string DescribeConfigNameRequest::getSourceIp()const void DescribeConfigNameRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } diff --git a/afs/src/model/DescribeConfigNameResult.cc b/afs/src/model/DescribeConfigNameResult.cc index fc22f506b..2eb9c6532 100644 --- a/afs/src/model/DescribeConfigNameResult.cc +++ b/afs/src/model/DescribeConfigNameResult.cc @@ -35,10 +35,13 @@ DescribeConfigNameResult::~DescribeConfigNameResult() void DescribeConfigNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigNames = value["ConfigNames"]["ConfigName"]; for (auto value : allConfigNames) diff --git a/afs/src/model/DescribeEarlyWarningRequest.cc b/afs/src/model/DescribeEarlyWarningRequest.cc index 6829489df..e8e6152ab 100644 --- a/afs/src/model/DescribeEarlyWarningRequest.cc +++ b/afs/src/model/DescribeEarlyWarningRequest.cc @@ -33,6 +33,6 @@ std::string DescribeEarlyWarningRequest::getSourceIp()const void DescribeEarlyWarningRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } diff --git a/afs/src/model/DescribeEarlyWarningResult.cc b/afs/src/model/DescribeEarlyWarningResult.cc index 27a76ad8d..8c852c10d 100644 --- a/afs/src/model/DescribeEarlyWarningResult.cc +++ b/afs/src/model/DescribeEarlyWarningResult.cc @@ -35,10 +35,13 @@ DescribeEarlyWarningResult::~DescribeEarlyWarningResult() void DescribeEarlyWarningResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEarlyWarnings = value["EarlyWarnings"]["EarlyWarning"]; for (auto value : allEarlyWarnings) diff --git a/afs/src/model/DescribeOrderInfoRequest.cc b/afs/src/model/DescribeOrderInfoRequest.cc index 0c44a257a..434f86379 100644 --- a/afs/src/model/DescribeOrderInfoRequest.cc +++ b/afs/src/model/DescribeOrderInfoRequest.cc @@ -33,6 +33,6 @@ std::string DescribeOrderInfoRequest::getSourceIp()const void DescribeOrderInfoRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } diff --git a/afs/src/model/DescribeOrderInfoResult.cc b/afs/src/model/DescribeOrderInfoResult.cc index 81a8f871f..d14004233 100644 --- a/afs/src/model/DescribeOrderInfoResult.cc +++ b/afs/src/model/DescribeOrderInfoResult.cc @@ -35,10 +35,13 @@ DescribeOrderInfoResult::~DescribeOrderInfoResult() void DescribeOrderInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizCode"].isNull()) bizCode_ = value["BizCode"].asString(); diff --git a/afs/src/model/DescribePersonMachineListRequest.cc b/afs/src/model/DescribePersonMachineListRequest.cc index c63e1b173..ec6c99988 100644 --- a/afs/src/model/DescribePersonMachineListRequest.cc +++ b/afs/src/model/DescribePersonMachineListRequest.cc @@ -33,6 +33,6 @@ std::string DescribePersonMachineListRequest::getSourceIp()const void DescribePersonMachineListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } diff --git a/afs/src/model/DescribePersonMachineListResult.cc b/afs/src/model/DescribePersonMachineListResult.cc index 84ebf6251..214c26674 100644 --- a/afs/src/model/DescribePersonMachineListResult.cc +++ b/afs/src/model/DescribePersonMachineListResult.cc @@ -35,10 +35,13 @@ DescribePersonMachineListResult::~DescribePersonMachineListResult() void DescribePersonMachineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto personMachineResNode = value["PersonMachineRes"]; if(!personMachineResNode["HasConfiguration"].isNull()) diff --git a/afs/src/model/SetEarlyWarningRequest.cc b/afs/src/model/SetEarlyWarningRequest.cc index 89ab747fb..fec985895 100644 --- a/afs/src/model/SetEarlyWarningRequest.cc +++ b/afs/src/model/SetEarlyWarningRequest.cc @@ -33,7 +33,7 @@ std::string SetEarlyWarningRequest::getTimeEnd()const void SetEarlyWarningRequest::setTimeEnd(const std::string& timeEnd) { timeEnd_ = timeEnd; - setParameter("TimeEnd", timeEnd); + setCoreParameter("TimeEnd", timeEnd); } bool SetEarlyWarningRequest::getWarnOpen()const @@ -44,7 +44,7 @@ bool SetEarlyWarningRequest::getWarnOpen()const void SetEarlyWarningRequest::setWarnOpen(bool warnOpen) { warnOpen_ = warnOpen; - setParameter("WarnOpen", std::to_string(warnOpen)); + setCoreParameter("WarnOpen", warnOpen ? "true" : "false"); } std::string SetEarlyWarningRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string SetEarlyWarningRequest::getSourceIp()const void SetEarlyWarningRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string SetEarlyWarningRequest::getChannel()const @@ -66,7 +66,7 @@ std::string SetEarlyWarningRequest::getChannel()const void SetEarlyWarningRequest::setChannel(const std::string& channel) { channel_ = channel; - setParameter("Channel", channel); + setCoreParameter("Channel", channel); } std::string SetEarlyWarningRequest::getTitle()const @@ -77,7 +77,7 @@ std::string SetEarlyWarningRequest::getTitle()const void SetEarlyWarningRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } bool SetEarlyWarningRequest::getTimeOpen()const @@ -88,7 +88,7 @@ bool SetEarlyWarningRequest::getTimeOpen()const void SetEarlyWarningRequest::setTimeOpen(bool timeOpen) { timeOpen_ = timeOpen; - setParameter("TimeOpen", std::to_string(timeOpen)); + setCoreParameter("TimeOpen", timeOpen ? "true" : "false"); } std::string SetEarlyWarningRequest::getTimeBegin()const @@ -99,7 +99,7 @@ std::string SetEarlyWarningRequest::getTimeBegin()const void SetEarlyWarningRequest::setTimeBegin(const std::string& timeBegin) { timeBegin_ = timeBegin; - setParameter("TimeBegin", timeBegin); + setCoreParameter("TimeBegin", timeBegin); } std::string SetEarlyWarningRequest::getFrequency()const @@ -110,6 +110,6 @@ std::string SetEarlyWarningRequest::getFrequency()const void SetEarlyWarningRequest::setFrequency(const std::string& frequency) { frequency_ = frequency; - setParameter("Frequency", frequency); + setCoreParameter("Frequency", frequency); } diff --git a/afs/src/model/SetEarlyWarningResult.cc b/afs/src/model/SetEarlyWarningResult.cc index afcf1541d..a43c57a87 100644 --- a/afs/src/model/SetEarlyWarningResult.cc +++ b/afs/src/model/SetEarlyWarningResult.cc @@ -35,10 +35,13 @@ SetEarlyWarningResult::~SetEarlyWarningResult() void SetEarlyWarningResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizCode"].isNull()) bizCode_ = value["BizCode"].asString(); diff --git a/afs/src/model/UpdateConfigNameRequest.cc b/afs/src/model/UpdateConfigNameRequest.cc index 1cb65d70b..2c3448f1b 100644 --- a/afs/src/model/UpdateConfigNameRequest.cc +++ b/afs/src/model/UpdateConfigNameRequest.cc @@ -33,7 +33,7 @@ std::string UpdateConfigNameRequest::getSourceIp()const void UpdateConfigNameRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string UpdateConfigNameRequest::getConfigName()const @@ -44,7 +44,7 @@ std::string UpdateConfigNameRequest::getConfigName()const void UpdateConfigNameRequest::setConfigName(const std::string& configName) { configName_ = configName; - setParameter("ConfigName", configName); + setCoreParameter("ConfigName", configName); } std::string UpdateConfigNameRequest::getRefExtId()const @@ -55,7 +55,7 @@ std::string UpdateConfigNameRequest::getRefExtId()const void UpdateConfigNameRequest::setRefExtId(const std::string& refExtId) { refExtId_ = refExtId; - setParameter("RefExtId", refExtId); + setCoreParameter("RefExtId", refExtId); } std::string UpdateConfigNameRequest::getLang()const @@ -66,6 +66,6 @@ std::string UpdateConfigNameRequest::getLang()const void UpdateConfigNameRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/afs/src/model/UpdateConfigNameResult.cc b/afs/src/model/UpdateConfigNameResult.cc index 4295b29a9..f32b4396f 100644 --- a/afs/src/model/UpdateConfigNameResult.cc +++ b/afs/src/model/UpdateConfigNameResult.cc @@ -35,10 +35,13 @@ UpdateConfigNameResult::~UpdateConfigNameResult() void UpdateConfigNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizCode"].isNull()) bizCode_ = value["BizCode"].asString(); diff --git a/alidns/CMakeLists.txt b/alidns/CMakeLists.txt index 1b05fc48b..719d54277 100644 --- a/alidns/CMakeLists.txt +++ b/alidns/CMakeLists.txt @@ -23,10 +23,10 @@ set(alidns_public_header set(alidns_public_header_model include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.h include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsResult.h - include/alibabacloud/alidns/model/SetGtmAccessModeRequest.h - include/alibabacloud/alidns/model/SetGtmAccessModeResult.h include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h include/alibabacloud/alidns/model/ModifyHichinaDomainDNSResult.h + include/alibabacloud/alidns/model/SetGtmAccessModeRequest.h + include/alibabacloud/alidns/model/SetGtmAccessModeResult.h include/alibabacloud/alidns/model/CreateInstanceRequest.h include/alibabacloud/alidns/model/CreateInstanceResult.h include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h @@ -45,12 +45,12 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigResult.h include/alibabacloud/alidns/model/UpdateDomainRecordRequest.h include/alibabacloud/alidns/model/UpdateDomainRecordResult.h + include/alibabacloud/alidns/model/DeleteDomainRecordRequest.h + include/alibabacloud/alidns/model/DeleteDomainRecordResult.h include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h include/alibabacloud/alidns/model/DescribeDomainGroupsResult.h include/alibabacloud/alidns/model/UpdateGtmAccessStrategyRequest.h include/alibabacloud/alidns/model/UpdateGtmAccessStrategyResult.h - include/alibabacloud/alidns/model/DeleteDomainRecordRequest.h - include/alibabacloud/alidns/model/DeleteDomainRecordResult.h include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h include/alibabacloud/alidns/model/DescribeDomainRecordsResult.h include/alibabacloud/alidns/model/DescribeDomainRecordInfoRequest.h @@ -69,10 +69,10 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/UpdateDomainGroupResult.h include/alibabacloud/alidns/model/DescribeDnsProductInstancesRequest.h include/alibabacloud/alidns/model/DescribeDnsProductInstancesResult.h - include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h - include/alibabacloud/alidns/model/SetGtmMonitorStatusResult.h include/alibabacloud/alidns/model/DescribeDnsProductInstanceRequest.h include/alibabacloud/alidns/model/DescribeDnsProductInstanceResult.h + include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h + include/alibabacloud/alidns/model/SetGtmMonitorStatusResult.h include/alibabacloud/alidns/model/DescribeGtmLogsRequest.h include/alibabacloud/alidns/model/DescribeGtmLogsResult.h include/alibabacloud/alidns/model/OperateBatchDomainRequest.h @@ -91,10 +91,20 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/DescribeGtmInstanceResult.h include/alibabacloud/alidns/model/DescribeDomainInfoRequest.h include/alibabacloud/alidns/model/DescribeDomainInfoResult.h + include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h + include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryResult.h include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsRequest.h include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsResult.h + include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h + include/alibabacloud/alidns/model/DescribeRecordStatisticsResult.h + include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h + include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryResult.h include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h include/alibabacloud/alidns/model/DescribeSupportLinesResult.h + include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h + include/alibabacloud/alidns/model/DescribeDomainStatisticsResult.h + include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.h + include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameResult.h include/alibabacloud/alidns/model/AddDomainRecordRequest.h include/alibabacloud/alidns/model/AddDomainRecordResult.h include/alibabacloud/alidns/model/DescribeGtmMonitorAvailableConfigRequest.h @@ -127,10 +137,10 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/AddGtmAddressPoolResult.h include/alibabacloud/alidns/model/DeleteSubDomainRecordsRequest.h include/alibabacloud/alidns/model/DeleteSubDomainRecordsResult.h - include/alibabacloud/alidns/model/UpdateGtmMonitorRequest.h - include/alibabacloud/alidns/model/UpdateGtmMonitorResult.h include/alibabacloud/alidns/model/DescribeDomainNsRequest.h include/alibabacloud/alidns/model/DescribeDomainNsResult.h + include/alibabacloud/alidns/model/UpdateGtmMonitorRequest.h + include/alibabacloud/alidns/model/UpdateGtmMonitorResult.h include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h include/alibabacloud/alidns/model/SetDNSSLBStatusResult.h include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigRequest.h @@ -142,10 +152,10 @@ set(alidns_src src/AlidnsClient.cc src/model/DescribeDNSSLBSubDomainsRequest.cc src/model/DescribeDNSSLBSubDomainsResult.cc - src/model/SetGtmAccessModeRequest.cc - src/model/SetGtmAccessModeResult.cc src/model/ModifyHichinaDomainDNSRequest.cc src/model/ModifyHichinaDomainDNSResult.cc + src/model/SetGtmAccessModeRequest.cc + src/model/SetGtmAccessModeResult.cc src/model/CreateInstanceRequest.cc src/model/CreateInstanceResult.cc src/model/DescribeSubDomainRecordsRequest.cc @@ -164,12 +174,12 @@ set(alidns_src src/model/UpdateGtmInstanceGlobalConfigResult.cc src/model/UpdateDomainRecordRequest.cc src/model/UpdateDomainRecordResult.cc + src/model/DeleteDomainRecordRequest.cc + src/model/DeleteDomainRecordResult.cc src/model/DescribeDomainGroupsRequest.cc src/model/DescribeDomainGroupsResult.cc src/model/UpdateGtmAccessStrategyRequest.cc src/model/UpdateGtmAccessStrategyResult.cc - src/model/DeleteDomainRecordRequest.cc - src/model/DeleteDomainRecordResult.cc src/model/DescribeDomainRecordsRequest.cc src/model/DescribeDomainRecordsResult.cc src/model/DescribeDomainRecordInfoRequest.cc @@ -188,10 +198,10 @@ set(alidns_src src/model/UpdateDomainGroupResult.cc src/model/DescribeDnsProductInstancesRequest.cc src/model/DescribeDnsProductInstancesResult.cc - src/model/SetGtmMonitorStatusRequest.cc - src/model/SetGtmMonitorStatusResult.cc src/model/DescribeDnsProductInstanceRequest.cc src/model/DescribeDnsProductInstanceResult.cc + src/model/SetGtmMonitorStatusRequest.cc + src/model/SetGtmMonitorStatusResult.cc src/model/DescribeGtmLogsRequest.cc src/model/DescribeGtmLogsResult.cc src/model/OperateBatchDomainRequest.cc @@ -210,10 +220,20 @@ set(alidns_src src/model/DescribeGtmInstanceResult.cc src/model/DescribeDomainInfoRequest.cc src/model/DescribeDomainInfoResult.cc + src/model/DescribeRecordStatisticsSummaryRequest.cc + src/model/DescribeRecordStatisticsSummaryResult.cc src/model/DescribeGtmInstanceAddressPoolsRequest.cc src/model/DescribeGtmInstanceAddressPoolsResult.cc + src/model/DescribeRecordStatisticsRequest.cc + src/model/DescribeRecordStatisticsResult.cc + src/model/DescribeDomainStatisticsSummaryRequest.cc + src/model/DescribeDomainStatisticsSummaryResult.cc src/model/DescribeSupportLinesRequest.cc src/model/DescribeSupportLinesResult.cc + src/model/DescribeDomainStatisticsRequest.cc + src/model/DescribeDomainStatisticsResult.cc + src/model/DescribeGtmInstanceSystemCnameRequest.cc + src/model/DescribeGtmInstanceSystemCnameResult.cc src/model/AddDomainRecordRequest.cc src/model/AddDomainRecordResult.cc src/model/DescribeGtmMonitorAvailableConfigRequest.cc @@ -246,10 +266,10 @@ set(alidns_src src/model/AddGtmAddressPoolResult.cc src/model/DeleteSubDomainRecordsRequest.cc src/model/DeleteSubDomainRecordsResult.cc - src/model/UpdateGtmMonitorRequest.cc - src/model/UpdateGtmMonitorResult.cc src/model/DescribeDomainNsRequest.cc src/model/DescribeDomainNsResult.cc + src/model/UpdateGtmMonitorRequest.cc + src/model/UpdateGtmMonitorResult.cc src/model/SetDNSSLBStatusRequest.cc src/model/SetDNSSLBStatusResult.cc src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc diff --git a/alidns/include/alibabacloud/alidns/AlidnsClient.h b/alidns/include/alibabacloud/alidns/AlidnsClient.h index c4a53426c..88bb68e1b 100644 --- a/alidns/include/alibabacloud/alidns/AlidnsClient.h +++ b/alidns/include/alibabacloud/alidns/AlidnsClient.h @@ -24,10 +24,10 @@ #include "AlidnsExport.h" #include "model/DescribeDNSSLBSubDomainsRequest.h" #include "model/DescribeDNSSLBSubDomainsResult.h" -#include "model/SetGtmAccessModeRequest.h" -#include "model/SetGtmAccessModeResult.h" #include "model/ModifyHichinaDomainDNSRequest.h" #include "model/ModifyHichinaDomainDNSResult.h" +#include "model/SetGtmAccessModeRequest.h" +#include "model/SetGtmAccessModeResult.h" #include "model/CreateInstanceRequest.h" #include "model/CreateInstanceResult.h" #include "model/DescribeSubDomainRecordsRequest.h" @@ -46,12 +46,12 @@ #include "model/UpdateGtmInstanceGlobalConfigResult.h" #include "model/UpdateDomainRecordRequest.h" #include "model/UpdateDomainRecordResult.h" +#include "model/DeleteDomainRecordRequest.h" +#include "model/DeleteDomainRecordResult.h" #include "model/DescribeDomainGroupsRequest.h" #include "model/DescribeDomainGroupsResult.h" #include "model/UpdateGtmAccessStrategyRequest.h" #include "model/UpdateGtmAccessStrategyResult.h" -#include "model/DeleteDomainRecordRequest.h" -#include "model/DeleteDomainRecordResult.h" #include "model/DescribeDomainRecordsRequest.h" #include "model/DescribeDomainRecordsResult.h" #include "model/DescribeDomainRecordInfoRequest.h" @@ -70,10 +70,10 @@ #include "model/UpdateDomainGroupResult.h" #include "model/DescribeDnsProductInstancesRequest.h" #include "model/DescribeDnsProductInstancesResult.h" -#include "model/SetGtmMonitorStatusRequest.h" -#include "model/SetGtmMonitorStatusResult.h" #include "model/DescribeDnsProductInstanceRequest.h" #include "model/DescribeDnsProductInstanceResult.h" +#include "model/SetGtmMonitorStatusRequest.h" +#include "model/SetGtmMonitorStatusResult.h" #include "model/DescribeGtmLogsRequest.h" #include "model/DescribeGtmLogsResult.h" #include "model/OperateBatchDomainRequest.h" @@ -92,10 +92,20 @@ #include "model/DescribeGtmInstanceResult.h" #include "model/DescribeDomainInfoRequest.h" #include "model/DescribeDomainInfoResult.h" +#include "model/DescribeRecordStatisticsSummaryRequest.h" +#include "model/DescribeRecordStatisticsSummaryResult.h" #include "model/DescribeGtmInstanceAddressPoolsRequest.h" #include "model/DescribeGtmInstanceAddressPoolsResult.h" +#include "model/DescribeRecordStatisticsRequest.h" +#include "model/DescribeRecordStatisticsResult.h" +#include "model/DescribeDomainStatisticsSummaryRequest.h" +#include "model/DescribeDomainStatisticsSummaryResult.h" #include "model/DescribeSupportLinesRequest.h" #include "model/DescribeSupportLinesResult.h" +#include "model/DescribeDomainStatisticsRequest.h" +#include "model/DescribeDomainStatisticsResult.h" +#include "model/DescribeGtmInstanceSystemCnameRequest.h" +#include "model/DescribeGtmInstanceSystemCnameResult.h" #include "model/AddDomainRecordRequest.h" #include "model/AddDomainRecordResult.h" #include "model/DescribeGtmMonitorAvailableConfigRequest.h" @@ -128,10 +138,10 @@ #include "model/AddGtmAddressPoolResult.h" #include "model/DeleteSubDomainRecordsRequest.h" #include "model/DeleteSubDomainRecordsResult.h" -#include "model/UpdateGtmMonitorRequest.h" -#include "model/UpdateGtmMonitorResult.h" #include "model/DescribeDomainNsRequest.h" #include "model/DescribeDomainNsResult.h" +#include "model/UpdateGtmMonitorRequest.h" +#include "model/UpdateGtmMonitorResult.h" #include "model/SetDNSSLBStatusRequest.h" #include "model/SetDNSSLBStatusResult.h" #include "model/DescribeGtmAccessStrategyAvailableConfigRequest.h" @@ -150,12 +160,12 @@ namespace AlibabaCloud typedef Outcome DescribeDNSSLBSubDomainsOutcome; typedef std::future DescribeDNSSLBSubDomainsOutcomeCallable; typedef std::function&)> DescribeDNSSLBSubDomainsAsyncHandler; - typedef Outcome SetGtmAccessModeOutcome; - typedef std::future SetGtmAccessModeOutcomeCallable; - typedef std::function&)> SetGtmAccessModeAsyncHandler; typedef Outcome ModifyHichinaDomainDNSOutcome; typedef std::future ModifyHichinaDomainDNSOutcomeCallable; typedef std::function&)> ModifyHichinaDomainDNSAsyncHandler; + typedef Outcome SetGtmAccessModeOutcome; + typedef std::future SetGtmAccessModeOutcomeCallable; + typedef std::function&)> SetGtmAccessModeAsyncHandler; typedef Outcome CreateInstanceOutcome; typedef std::future CreateInstanceOutcomeCallable; typedef std::function&)> CreateInstanceAsyncHandler; @@ -183,15 +193,15 @@ namespace AlibabaCloud typedef Outcome UpdateDomainRecordOutcome; typedef std::future UpdateDomainRecordOutcomeCallable; typedef std::function&)> UpdateDomainRecordAsyncHandler; + typedef Outcome DeleteDomainRecordOutcome; + typedef std::future DeleteDomainRecordOutcomeCallable; + typedef std::function&)> DeleteDomainRecordAsyncHandler; typedef Outcome DescribeDomainGroupsOutcome; typedef std::future DescribeDomainGroupsOutcomeCallable; typedef std::function&)> DescribeDomainGroupsAsyncHandler; typedef Outcome UpdateGtmAccessStrategyOutcome; typedef std::future UpdateGtmAccessStrategyOutcomeCallable; typedef std::function&)> UpdateGtmAccessStrategyAsyncHandler; - typedef Outcome DeleteDomainRecordOutcome; - typedef std::future DeleteDomainRecordOutcomeCallable; - typedef std::function&)> DeleteDomainRecordAsyncHandler; typedef Outcome DescribeDomainRecordsOutcome; typedef std::future DescribeDomainRecordsOutcomeCallable; typedef std::function&)> DescribeDomainRecordsAsyncHandler; @@ -219,12 +229,12 @@ namespace AlibabaCloud typedef Outcome DescribeDnsProductInstancesOutcome; typedef std::future DescribeDnsProductInstancesOutcomeCallable; typedef std::function&)> DescribeDnsProductInstancesAsyncHandler; - typedef Outcome SetGtmMonitorStatusOutcome; - typedef std::future SetGtmMonitorStatusOutcomeCallable; - typedef std::function&)> SetGtmMonitorStatusAsyncHandler; typedef Outcome DescribeDnsProductInstanceOutcome; typedef std::future DescribeDnsProductInstanceOutcomeCallable; typedef std::function&)> DescribeDnsProductInstanceAsyncHandler; + typedef Outcome SetGtmMonitorStatusOutcome; + typedef std::future SetGtmMonitorStatusOutcomeCallable; + typedef std::function&)> SetGtmMonitorStatusAsyncHandler; typedef Outcome DescribeGtmLogsOutcome; typedef std::future DescribeGtmLogsOutcomeCallable; typedef std::function&)> DescribeGtmLogsAsyncHandler; @@ -252,12 +262,27 @@ namespace AlibabaCloud typedef Outcome DescribeDomainInfoOutcome; typedef std::future DescribeDomainInfoOutcomeCallable; typedef std::function&)> DescribeDomainInfoAsyncHandler; + typedef Outcome DescribeRecordStatisticsSummaryOutcome; + typedef std::future DescribeRecordStatisticsSummaryOutcomeCallable; + typedef std::function&)> DescribeRecordStatisticsSummaryAsyncHandler; typedef Outcome DescribeGtmInstanceAddressPoolsOutcome; typedef std::future DescribeGtmInstanceAddressPoolsOutcomeCallable; typedef std::function&)> DescribeGtmInstanceAddressPoolsAsyncHandler; + typedef Outcome DescribeRecordStatisticsOutcome; + typedef std::future DescribeRecordStatisticsOutcomeCallable; + typedef std::function&)> DescribeRecordStatisticsAsyncHandler; + typedef Outcome DescribeDomainStatisticsSummaryOutcome; + typedef std::future DescribeDomainStatisticsSummaryOutcomeCallable; + typedef std::function&)> DescribeDomainStatisticsSummaryAsyncHandler; typedef Outcome DescribeSupportLinesOutcome; typedef std::future DescribeSupportLinesOutcomeCallable; typedef std::function&)> DescribeSupportLinesAsyncHandler; + typedef Outcome DescribeDomainStatisticsOutcome; + typedef std::future DescribeDomainStatisticsOutcomeCallable; + typedef std::function&)> DescribeDomainStatisticsAsyncHandler; + typedef Outcome DescribeGtmInstanceSystemCnameOutcome; + typedef std::future DescribeGtmInstanceSystemCnameOutcomeCallable; + typedef std::function&)> DescribeGtmInstanceSystemCnameAsyncHandler; typedef Outcome AddDomainRecordOutcome; typedef std::future AddDomainRecordOutcomeCallable; typedef std::function&)> AddDomainRecordAsyncHandler; @@ -306,12 +331,12 @@ namespace AlibabaCloud typedef Outcome DeleteSubDomainRecordsOutcome; typedef std::future DeleteSubDomainRecordsOutcomeCallable; typedef std::function&)> DeleteSubDomainRecordsAsyncHandler; - typedef Outcome UpdateGtmMonitorOutcome; - typedef std::future UpdateGtmMonitorOutcomeCallable; - typedef std::function&)> UpdateGtmMonitorAsyncHandler; typedef Outcome DescribeDomainNsOutcome; typedef std::future DescribeDomainNsOutcomeCallable; typedef std::function&)> DescribeDomainNsAsyncHandler; + typedef Outcome UpdateGtmMonitorOutcome; + typedef std::future UpdateGtmMonitorOutcomeCallable; + typedef std::function&)> UpdateGtmMonitorAsyncHandler; typedef Outcome SetDNSSLBStatusOutcome; typedef std::future SetDNSSLBStatusOutcomeCallable; typedef std::function&)> SetDNSSLBStatusAsyncHandler; @@ -329,12 +354,12 @@ namespace AlibabaCloud DescribeDNSSLBSubDomainsOutcome describeDNSSLBSubDomains(const Model::DescribeDNSSLBSubDomainsRequest &request)const; void describeDNSSLBSubDomainsAsync(const Model::DescribeDNSSLBSubDomainsRequest& request, const DescribeDNSSLBSubDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDNSSLBSubDomainsOutcomeCallable describeDNSSLBSubDomainsCallable(const Model::DescribeDNSSLBSubDomainsRequest& request) const; - SetGtmAccessModeOutcome setGtmAccessMode(const Model::SetGtmAccessModeRequest &request)const; - void setGtmAccessModeAsync(const Model::SetGtmAccessModeRequest& request, const SetGtmAccessModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetGtmAccessModeOutcomeCallable setGtmAccessModeCallable(const Model::SetGtmAccessModeRequest& request) const; ModifyHichinaDomainDNSOutcome modifyHichinaDomainDNS(const Model::ModifyHichinaDomainDNSRequest &request)const; void modifyHichinaDomainDNSAsync(const Model::ModifyHichinaDomainDNSRequest& request, const ModifyHichinaDomainDNSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyHichinaDomainDNSOutcomeCallable modifyHichinaDomainDNSCallable(const Model::ModifyHichinaDomainDNSRequest& request) const; + SetGtmAccessModeOutcome setGtmAccessMode(const Model::SetGtmAccessModeRequest &request)const; + void setGtmAccessModeAsync(const Model::SetGtmAccessModeRequest& request, const SetGtmAccessModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGtmAccessModeOutcomeCallable setGtmAccessModeCallable(const Model::SetGtmAccessModeRequest& request) const; CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; @@ -362,15 +387,15 @@ namespace AlibabaCloud UpdateDomainRecordOutcome updateDomainRecord(const Model::UpdateDomainRecordRequest &request)const; void updateDomainRecordAsync(const Model::UpdateDomainRecordRequest& request, const UpdateDomainRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDomainRecordOutcomeCallable updateDomainRecordCallable(const Model::UpdateDomainRecordRequest& request) const; + DeleteDomainRecordOutcome deleteDomainRecord(const Model::DeleteDomainRecordRequest &request)const; + void deleteDomainRecordAsync(const Model::DeleteDomainRecordRequest& request, const DeleteDomainRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDomainRecordOutcomeCallable deleteDomainRecordCallable(const Model::DeleteDomainRecordRequest& request) const; DescribeDomainGroupsOutcome describeDomainGroups(const Model::DescribeDomainGroupsRequest &request)const; void describeDomainGroupsAsync(const Model::DescribeDomainGroupsRequest& request, const DescribeDomainGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainGroupsOutcomeCallable describeDomainGroupsCallable(const Model::DescribeDomainGroupsRequest& request) const; UpdateGtmAccessStrategyOutcome updateGtmAccessStrategy(const Model::UpdateGtmAccessStrategyRequest &request)const; void updateGtmAccessStrategyAsync(const Model::UpdateGtmAccessStrategyRequest& request, const UpdateGtmAccessStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGtmAccessStrategyOutcomeCallable updateGtmAccessStrategyCallable(const Model::UpdateGtmAccessStrategyRequest& request) const; - DeleteDomainRecordOutcome deleteDomainRecord(const Model::DeleteDomainRecordRequest &request)const; - void deleteDomainRecordAsync(const Model::DeleteDomainRecordRequest& request, const DeleteDomainRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDomainRecordOutcomeCallable deleteDomainRecordCallable(const Model::DeleteDomainRecordRequest& request) const; DescribeDomainRecordsOutcome describeDomainRecords(const Model::DescribeDomainRecordsRequest &request)const; void describeDomainRecordsAsync(const Model::DescribeDomainRecordsRequest& request, const DescribeDomainRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRecordsOutcomeCallable describeDomainRecordsCallable(const Model::DescribeDomainRecordsRequest& request) const; @@ -398,12 +423,12 @@ namespace AlibabaCloud DescribeDnsProductInstancesOutcome describeDnsProductInstances(const Model::DescribeDnsProductInstancesRequest &request)const; void describeDnsProductInstancesAsync(const Model::DescribeDnsProductInstancesRequest& request, const DescribeDnsProductInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDnsProductInstancesOutcomeCallable describeDnsProductInstancesCallable(const Model::DescribeDnsProductInstancesRequest& request) const; - SetGtmMonitorStatusOutcome setGtmMonitorStatus(const Model::SetGtmMonitorStatusRequest &request)const; - void setGtmMonitorStatusAsync(const Model::SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetGtmMonitorStatusOutcomeCallable setGtmMonitorStatusCallable(const Model::SetGtmMonitorStatusRequest& request) const; DescribeDnsProductInstanceOutcome describeDnsProductInstance(const Model::DescribeDnsProductInstanceRequest &request)const; void describeDnsProductInstanceAsync(const Model::DescribeDnsProductInstanceRequest& request, const DescribeDnsProductInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDnsProductInstanceOutcomeCallable describeDnsProductInstanceCallable(const Model::DescribeDnsProductInstanceRequest& request) const; + SetGtmMonitorStatusOutcome setGtmMonitorStatus(const Model::SetGtmMonitorStatusRequest &request)const; + void setGtmMonitorStatusAsync(const Model::SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGtmMonitorStatusOutcomeCallable setGtmMonitorStatusCallable(const Model::SetGtmMonitorStatusRequest& request) const; DescribeGtmLogsOutcome describeGtmLogs(const Model::DescribeGtmLogsRequest &request)const; void describeGtmLogsAsync(const Model::DescribeGtmLogsRequest& request, const DescribeGtmLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGtmLogsOutcomeCallable describeGtmLogsCallable(const Model::DescribeGtmLogsRequest& request) const; @@ -431,12 +456,27 @@ namespace AlibabaCloud DescribeDomainInfoOutcome describeDomainInfo(const Model::DescribeDomainInfoRequest &request)const; void describeDomainInfoAsync(const Model::DescribeDomainInfoRequest& request, const DescribeDomainInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainInfoOutcomeCallable describeDomainInfoCallable(const Model::DescribeDomainInfoRequest& request) const; + DescribeRecordStatisticsSummaryOutcome describeRecordStatisticsSummary(const Model::DescribeRecordStatisticsSummaryRequest &request)const; + void describeRecordStatisticsSummaryAsync(const Model::DescribeRecordStatisticsSummaryRequest& request, const DescribeRecordStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecordStatisticsSummaryOutcomeCallable describeRecordStatisticsSummaryCallable(const Model::DescribeRecordStatisticsSummaryRequest& request) const; DescribeGtmInstanceAddressPoolsOutcome describeGtmInstanceAddressPools(const Model::DescribeGtmInstanceAddressPoolsRequest &request)const; void describeGtmInstanceAddressPoolsAsync(const Model::DescribeGtmInstanceAddressPoolsRequest& request, const DescribeGtmInstanceAddressPoolsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGtmInstanceAddressPoolsOutcomeCallable describeGtmInstanceAddressPoolsCallable(const Model::DescribeGtmInstanceAddressPoolsRequest& request) const; + DescribeRecordStatisticsOutcome describeRecordStatistics(const Model::DescribeRecordStatisticsRequest &request)const; + void describeRecordStatisticsAsync(const Model::DescribeRecordStatisticsRequest& request, const DescribeRecordStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecordStatisticsOutcomeCallable describeRecordStatisticsCallable(const Model::DescribeRecordStatisticsRequest& request) const; + DescribeDomainStatisticsSummaryOutcome describeDomainStatisticsSummary(const Model::DescribeDomainStatisticsSummaryRequest &request)const; + void describeDomainStatisticsSummaryAsync(const Model::DescribeDomainStatisticsSummaryRequest& request, const DescribeDomainStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainStatisticsSummaryOutcomeCallable describeDomainStatisticsSummaryCallable(const Model::DescribeDomainStatisticsSummaryRequest& request) const; DescribeSupportLinesOutcome describeSupportLines(const Model::DescribeSupportLinesRequest &request)const; void describeSupportLinesAsync(const Model::DescribeSupportLinesRequest& request, const DescribeSupportLinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSupportLinesOutcomeCallable describeSupportLinesCallable(const Model::DescribeSupportLinesRequest& request) const; + DescribeDomainStatisticsOutcome describeDomainStatistics(const Model::DescribeDomainStatisticsRequest &request)const; + void describeDomainStatisticsAsync(const Model::DescribeDomainStatisticsRequest& request, const DescribeDomainStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainStatisticsOutcomeCallable describeDomainStatisticsCallable(const Model::DescribeDomainStatisticsRequest& request) const; + DescribeGtmInstanceSystemCnameOutcome describeGtmInstanceSystemCname(const Model::DescribeGtmInstanceSystemCnameRequest &request)const; + void describeGtmInstanceSystemCnameAsync(const Model::DescribeGtmInstanceSystemCnameRequest& request, const DescribeGtmInstanceSystemCnameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGtmInstanceSystemCnameOutcomeCallable describeGtmInstanceSystemCnameCallable(const Model::DescribeGtmInstanceSystemCnameRequest& request) const; AddDomainRecordOutcome addDomainRecord(const Model::AddDomainRecordRequest &request)const; void addDomainRecordAsync(const Model::AddDomainRecordRequest& request, const AddDomainRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddDomainRecordOutcomeCallable addDomainRecordCallable(const Model::AddDomainRecordRequest& request) const; @@ -485,12 +525,12 @@ namespace AlibabaCloud DeleteSubDomainRecordsOutcome deleteSubDomainRecords(const Model::DeleteSubDomainRecordsRequest &request)const; void deleteSubDomainRecordsAsync(const Model::DeleteSubDomainRecordsRequest& request, const DeleteSubDomainRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSubDomainRecordsOutcomeCallable deleteSubDomainRecordsCallable(const Model::DeleteSubDomainRecordsRequest& request) const; - UpdateGtmMonitorOutcome updateGtmMonitor(const Model::UpdateGtmMonitorRequest &request)const; - void updateGtmMonitorAsync(const Model::UpdateGtmMonitorRequest& request, const UpdateGtmMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateGtmMonitorOutcomeCallable updateGtmMonitorCallable(const Model::UpdateGtmMonitorRequest& request) const; DescribeDomainNsOutcome describeDomainNs(const Model::DescribeDomainNsRequest &request)const; void describeDomainNsAsync(const Model::DescribeDomainNsRequest& request, const DescribeDomainNsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainNsOutcomeCallable describeDomainNsCallable(const Model::DescribeDomainNsRequest& request) const; + UpdateGtmMonitorOutcome updateGtmMonitor(const Model::UpdateGtmMonitorRequest &request)const; + void updateGtmMonitorAsync(const Model::UpdateGtmMonitorRequest& request, const UpdateGtmMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGtmMonitorOutcomeCallable updateGtmMonitorCallable(const Model::UpdateGtmMonitorRequest& request) const; SetDNSSLBStatusOutcome setDNSSLBStatus(const Model::SetDNSSLBStatusRequest &request)const; void setDNSSLBStatusAsync(const Model::SetDNSSLBStatusRequest& request, const SetDNSSLBStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDNSSLBStatusOutcomeCallable setDNSSLBStatusCallable(const Model::SetDNSSLBStatusRequest& request) const; diff --git a/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.h index 78f177454..393d8c58e 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getGroupName()const; void setGroupName(const std::string& groupName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string userClientIp_; std::string lang_; std::string groupName_; - std::string accessKeyId_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/AddDomainRequest.h b/alidns/include/alibabacloud/alidns/model/AddDomainRequest.h index ecf87ec06..44b0755fb 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDomainRequest.h @@ -35,18 +35,24 @@ namespace AlibabaCloud AddDomainRequest(); ~AddDomainRequest(); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getGroupId()const; void setGroupId(const std::string& groupId); std::string getDomainName()const; void setDomainName(const std::string& domainName); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); std::string getLang()const; void setLang(const std::string& lang); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); private: + std::string resourceGroupId_; std::string groupId_; std::string domainName_; + std::string userClientIp_; std::string lang_; std::string accessKeyId_; diff --git a/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h index bc5cc1a3d..503ad9efd 100644 --- a/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); std::string getLang()const; void setLang(const std::string& lang); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string groupId_; std::string userClientIp_; std::string domainName_; std::string lang_; - std::string accessKeyId_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h index b2050be38..14ad371a1 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setUserClientIp(const std::string& userClientIp); std::string getLang()const; void setLang(const std::string& lang); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string groupId_; std::string userClientIp_; std::string lang_; - std::string accessKeyId_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h index 602ab5b90..053788cfe 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h @@ -37,9 +37,9 @@ namespace AlibabaCloud std::string rr; bool status; std::string operateDateStr; - int priority; + std::string priority; std::string rrStatus; - int ttl; + std::string ttl; std::string reason; std::string batchType; std::string remark; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h index 5f67ee7c5..baadb2a72 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setKeyWord(const std::string& keyWord); long getPageNumber()const; void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string userClientIp_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string lang_; std::string keyWord_; long pageNumber_; - std::string accessKeyId_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h index 2ddba003f..d2e80880b 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string actionTime; std::string action; std::string message; + std::string zoneId; std::string domainName; long actionTimestamp; std::string clientIp; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h index 43d71ee15..706489245 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h @@ -37,12 +37,16 @@ namespace AlibabaCloud std::string getValueKeyWord()const; void setValueKeyWord(const std::string& valueKeyWord); + std::string getLine()const; + void setLine(const std::string& line); long getGroupId()const; void setGroupId(long groupId); std::string getDomainName()const; void setDomainName(const std::string& domainName); std::string getOrderBy()const; void setOrderBy(const std::string& orderBy); + std::string getType()const; + void setType(const std::string& type); long getPageNumber()const; void setPageNumber(long pageNumber); std::string getUserClientIp()const; @@ -61,12 +65,16 @@ namespace AlibabaCloud void setRRKeyWord(const std::string& rRKeyWord); std::string getDirection()const; void setDirection(const std::string& direction); + std::string getStatus()const; + void setStatus(const std::string& status); private: std::string valueKeyWord_; + std::string line_; long groupId_; std::string domainName_; std::string orderBy_; + std::string type_; long pageNumber_; std::string userClientIp_; long pageSize_; @@ -76,6 +84,7 @@ namespace AlibabaCloud std::string typeKeyWord_; std::string rRKeyWord_; std::string direction_; + std::string status_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h new file mode 100644 index 000000000..e5abcc672 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeDomainStatisticsRequest(); + ~DescribeDomainStatisticsRequest(); + + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + + private: + std::string endDate_; + std::string userClientIp_; + std::string domainName_; + std::string lang_; + std::string startDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsResult.h new file mode 100644 index 000000000..ac742d318 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsResult : public ServiceResult + { + public: + struct Statistic + { + long count; + long timestamp; + }; + + + DescribeDomainStatisticsResult(); + explicit DescribeDomainStatisticsResult(const std::string &payload); + ~DescribeDomainStatisticsResult(); + std::vector getStatistics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector statistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h new file mode 100644 index 000000000..d6da1764f --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsSummaryRequest : public RpcServiceRequest + { + + public: + DescribeDomainStatisticsSummaryRequest(); + ~DescribeDomainStatisticsSummaryRequest(); + + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); + std::string getSearchMode()const; + void setSearchMode(const std::string& searchMode); + long getThreshold()const; + void setThreshold(long threshold); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::string getDirection()const; + void setDirection(const std::string& direction); + + private: + std::string endDate_; + std::string userClientIp_; + long pageSize_; + std::string orderBy_; + std::string searchMode_; + long threshold_; + std::string lang_; + std::string startDate_; + std::string keyword_; + long pageNumber_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryResult.h new file mode 100644 index 000000000..0b90f905f --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryResult.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_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsSummaryResult : public ServiceResult + { + public: + struct Statistic + { + std::string domainName; + long count; + }; + + + DescribeDomainStatisticsSummaryResult(); + explicit DescribeDomainStatisticsSummaryResult(const std::string &payload); + ~DescribeDomainStatisticsSummaryResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotalPages()const; + int getTotalItems()const; + std::vector getStatistics()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + std::vector statistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h index ed5131a9e..9e6e36c70 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DescribeDomainsRequest(); ~DescribeDomainsRequest(); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getGroupId()const; void setGroupId(const std::string& groupId); std::string getUserClientIp()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud void setPageNumber(long pageNumber); private: + std::string resourceGroupId_; std::string groupId_; std::string userClientIp_; long pageSize_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceResult.h index bdd769b1a..8d472f21c 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceResult.h @@ -37,33 +37,35 @@ namespace AlibabaCloud DescribeGtmInstanceResult(); explicit DescribeGtmInstanceResult(const std::string &payload); ~DescribeGtmInstanceResult(); - std::string getInstanceName()const; - std::string getVersionCode()const; long getExpireTimestamp()const; std::string getUserDomainName()const; - std::string getAlertGroup()const; std::string getLbaStrategy()const; std::string getInstanceId()const; std::string getCreateTime()const; - std::string getExpireTime()const; + std::string getCnameMode()const; std::string getCname()const; int getTtl()const; + std::string getInstanceName()const; + std::string getVersionCode()const; + std::string getAlertGroup()const; + std::string getExpireTime()const; long getCreateTimestamp()const; protected: void parse(const std::string &payload); private: - std::string instanceName_; - std::string versionCode_; long expireTimestamp_; std::string userDomainName_; - std::string alertGroup_; std::string lbaStrategy_; std::string instanceId_; std::string createTime_; - std::string expireTime_; + std::string cnameMode_; std::string cname_; int ttl_; + std::string instanceName_; + std::string versionCode_; + std::string alertGroup_; + std::string expireTime_; long createTimestamp_; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.h new file mode 100644 index 000000000..7690af3e2 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceSystemCnameRequest : public RpcServiceRequest + { + + public: + DescribeGtmInstanceSystemCnameRequest(); + ~DescribeGtmInstanceSystemCnameRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameResult.h new file mode 100644 index 000000000..75ee41c4d --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameResult.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMERESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceSystemCnameResult : public ServiceResult + { + public: + + + DescribeGtmInstanceSystemCnameResult(); + explicit DescribeGtmInstanceSystemCnameResult(const std::string &payload); + ~DescribeGtmInstanceSystemCnameResult(); + std::string getSystemCname()const; + + protected: + void parse(const std::string &payload); + private: + std::string systemCname_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMERESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.h index 31d90c5e2..e14a4aad6 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DescribeGtmInstancesRequest(); ~DescribeGtmInstancesRequest(); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); int getPageSize()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); private: + std::string resourceGroupId_; std::string userClientIp_; int pageSize_; std::string lang_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesResult.h index f28b93b0e..1b6fd879f 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesResult.h @@ -34,17 +34,18 @@ namespace AlibabaCloud public: struct GtmInstance { - std::string instanceName; - std::string versionCode; long expireTimestamp; std::string userDomainName; - std::string alertGroup; std::string lbaStrategy; std::string instanceId; std::string createTime; - std::string expireTime; + std::string cnameMode; std::string cname; int ttl; + std::string instanceName; + std::string versionCode; + std::string alertGroup; + std::string expireTime; long createTimestamp; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h new file mode 100644 index 000000000..ececbc037 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.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_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeRecordStatisticsRequest(); + ~DescribeRecordStatisticsRequest(); + + std::string getRr()const; + void setRr(const std::string& rr); + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + + private: + std::string rr_; + std::string endDate_; + std::string userClientIp_; + std::string domainName_; + std::string lang_; + std::string startDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsResult.h new file mode 100644 index 000000000..2c156bbdb --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsResult : public ServiceResult + { + public: + struct Statistic + { + long count; + long timestamp; + }; + + + DescribeRecordStatisticsResult(); + explicit DescribeRecordStatisticsResult(const std::string &payload); + ~DescribeRecordStatisticsResult(); + std::vector getStatistics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector statistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h new file mode 100644 index 000000000..d74df07ba --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsSummaryRequest : public RpcServiceRequest + { + + public: + DescribeRecordStatisticsSummaryRequest(); + ~DescribeRecordStatisticsSummaryRequest(); + + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); + std::string getSearchMode()const; + void setSearchMode(const std::string& searchMode); + long getThreshold()const; + void setThreshold(long threshold); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::string getDirection()const; + void setDirection(const std::string& direction); + + private: + std::string endDate_; + std::string userClientIp_; + long pageSize_; + std::string domainName_; + std::string orderBy_; + std::string searchMode_; + long threshold_; + std::string lang_; + std::string startDate_; + std::string keyword_; + long pageNumber_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryResult.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryResult.h new file mode 100644 index 000000000..143cb68c5 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryResult.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_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsSummaryResult : public ServiceResult + { + public: + struct Statistic + { + std::string subDomain; + long count; + }; + + + DescribeRecordStatisticsSummaryResult(); + explicit DescribeRecordStatisticsSummaryResult(const std::string &payload); + ~DescribeRecordStatisticsSummaryResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotalPages()const; + int getTotalItems()const; + std::vector getStatistics()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + std::vector statistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h index 309414f86..0a280e4f2 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setUserClientIp(const std::string& userClientIp); long getPageSize()const; void setPageSize(long pageSize); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); std::string getSubDomain()const; void setSubDomain(const std::string& subDomain); std::string getLang()const; @@ -56,6 +58,7 @@ namespace AlibabaCloud std::string line_; std::string userClientIp_; long pageSize_; + std::string domainName_; std::string subDomain_; std::string lang_; std::string type_; diff --git a/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h b/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h index 1ba4048e8..2f0b45635 100644 --- a/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h @@ -33,12 +33,15 @@ namespace AlibabaCloud struct DomainRecordInfo { std::string rr; + std::string newType; + std::string newValue; std::string line; std::string domain; std::string type; int priority; std::string value; int ttl; + std::string newRr; }; public: diff --git a/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h b/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h index 719ef3d0b..3da5b63ca 100644 --- a/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); std::string getSubDomain()const; void setSubDomain(const std::string& subDomain); std::string getLang()const; @@ -48,6 +50,7 @@ namespace AlibabaCloud private: std::string userClientIp_; + std::string domainName_; std::string subDomain_; std::string lang_; bool open_; diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h index 49992c7bc..f53e93493 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getGroupName()const; void setGroupName(const std::string& groupName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string groupId_; std::string userClientIp_; std::string lang_; std::string groupName_; - std::string accessKeyId_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.h index 626687e29..1cb2e64a6 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setInstanceName(const std::string& instanceName); std::string getUserDomainName()const; void setUserDomainName(const std::string& userDomainName); + std::string getCnameMode()const; + void setCnameMode(const std::string& cnameMode); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); std::string getLbaStrategy()const; @@ -51,16 +53,20 @@ namespace AlibabaCloud void setLang(const std::string& lang); int getTtl()const; void setTtl(int ttl); + std::string getCnameCustomDomainName()const; + void setCnameCustomDomainName(const std::string& cnameCustomDomainName); private: std::string alertGroup_; std::string instanceId_; std::string instanceName_; std::string userDomainName_; + std::string cnameMode_; std::string userClientIp_; std::string lbaStrategy_; std::string lang_; int ttl_; + std::string cnameCustomDomainName_; }; } diff --git a/alidns/src/AlidnsClient.cc b/alidns/src/AlidnsClient.cc index 9f06c23ee..5fbf411da 100644 --- a/alidns/src/AlidnsClient.cc +++ b/alidns/src/AlidnsClient.cc @@ -87,42 +87,6 @@ AlidnsClient::DescribeDNSSLBSubDomainsOutcomeCallable AlidnsClient::describeDNSS return task->get_future(); } -AlidnsClient::SetGtmAccessModeOutcome AlidnsClient::setGtmAccessMode(const SetGtmAccessModeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetGtmAccessModeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetGtmAccessModeOutcome(SetGtmAccessModeResult(outcome.result())); - else - return SetGtmAccessModeOutcome(outcome.error()); -} - -void AlidnsClient::setGtmAccessModeAsync(const SetGtmAccessModeRequest& request, const SetGtmAccessModeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setGtmAccessMode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AlidnsClient::SetGtmAccessModeOutcomeCallable AlidnsClient::setGtmAccessModeCallable(const SetGtmAccessModeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setGtmAccessMode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AlidnsClient::ModifyHichinaDomainDNSOutcome AlidnsClient::modifyHichinaDomainDNS(const ModifyHichinaDomainDNSRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +123,42 @@ AlidnsClient::ModifyHichinaDomainDNSOutcomeCallable AlidnsClient::modifyHichinaD return task->get_future(); } +AlidnsClient::SetGtmAccessModeOutcome AlidnsClient::setGtmAccessMode(const SetGtmAccessModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGtmAccessModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGtmAccessModeOutcome(SetGtmAccessModeResult(outcome.result())); + else + return SetGtmAccessModeOutcome(outcome.error()); +} + +void AlidnsClient::setGtmAccessModeAsync(const SetGtmAccessModeRequest& request, const SetGtmAccessModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGtmAccessMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::SetGtmAccessModeOutcomeCallable AlidnsClient::setGtmAccessModeCallable(const SetGtmAccessModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGtmAccessMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::CreateInstanceOutcome AlidnsClient::createInstance(const CreateInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +483,42 @@ AlidnsClient::UpdateDomainRecordOutcomeCallable AlidnsClient::updateDomainRecord return task->get_future(); } +AlidnsClient::DeleteDomainRecordOutcome AlidnsClient::deleteDomainRecord(const DeleteDomainRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDomainRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDomainRecordOutcome(DeleteDomainRecordResult(outcome.result())); + else + return DeleteDomainRecordOutcome(outcome.error()); +} + +void AlidnsClient::deleteDomainRecordAsync(const DeleteDomainRecordRequest& request, const DeleteDomainRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDomainRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DeleteDomainRecordOutcomeCallable AlidnsClient::deleteDomainRecordCallable(const DeleteDomainRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDomainRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::DescribeDomainGroupsOutcome AlidnsClient::describeDomainGroups(const DescribeDomainGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,42 +591,6 @@ AlidnsClient::UpdateGtmAccessStrategyOutcomeCallable AlidnsClient::updateGtmAcce return task->get_future(); } -AlidnsClient::DeleteDomainRecordOutcome AlidnsClient::deleteDomainRecord(const DeleteDomainRecordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDomainRecordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDomainRecordOutcome(DeleteDomainRecordResult(outcome.result())); - else - return DeleteDomainRecordOutcome(outcome.error()); -} - -void AlidnsClient::deleteDomainRecordAsync(const DeleteDomainRecordRequest& request, const DeleteDomainRecordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDomainRecord(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AlidnsClient::DeleteDomainRecordOutcomeCallable AlidnsClient::deleteDomainRecordCallable(const DeleteDomainRecordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDomainRecord(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AlidnsClient::DescribeDomainRecordsOutcome AlidnsClient::describeDomainRecords(const DescribeDomainRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,42 +915,6 @@ AlidnsClient::DescribeDnsProductInstancesOutcomeCallable AlidnsClient::describeD return task->get_future(); } -AlidnsClient::SetGtmMonitorStatusOutcome AlidnsClient::setGtmMonitorStatus(const SetGtmMonitorStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetGtmMonitorStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetGtmMonitorStatusOutcome(SetGtmMonitorStatusResult(outcome.result())); - else - return SetGtmMonitorStatusOutcome(outcome.error()); -} - -void AlidnsClient::setGtmMonitorStatusAsync(const SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setGtmMonitorStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AlidnsClient::SetGtmMonitorStatusOutcomeCallable AlidnsClient::setGtmMonitorStatusCallable(const SetGtmMonitorStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setGtmMonitorStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AlidnsClient::DescribeDnsProductInstanceOutcome AlidnsClient::describeDnsProductInstance(const DescribeDnsProductInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +951,42 @@ AlidnsClient::DescribeDnsProductInstanceOutcomeCallable AlidnsClient::describeDn return task->get_future(); } +AlidnsClient::SetGtmMonitorStatusOutcome AlidnsClient::setGtmMonitorStatus(const SetGtmMonitorStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGtmMonitorStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGtmMonitorStatusOutcome(SetGtmMonitorStatusResult(outcome.result())); + else + return SetGtmMonitorStatusOutcome(outcome.error()); +} + +void AlidnsClient::setGtmMonitorStatusAsync(const SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGtmMonitorStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::SetGtmMonitorStatusOutcomeCallable AlidnsClient::setGtmMonitorStatusCallable(const SetGtmMonitorStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGtmMonitorStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::DescribeGtmLogsOutcome AlidnsClient::describeGtmLogs(const DescribeGtmLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1311,42 @@ AlidnsClient::DescribeDomainInfoOutcomeCallable AlidnsClient::describeDomainInfo return task->get_future(); } +AlidnsClient::DescribeRecordStatisticsSummaryOutcome AlidnsClient::describeRecordStatisticsSummary(const DescribeRecordStatisticsSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecordStatisticsSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecordStatisticsSummaryOutcome(DescribeRecordStatisticsSummaryResult(outcome.result())); + else + return DescribeRecordStatisticsSummaryOutcome(outcome.error()); +} + +void AlidnsClient::describeRecordStatisticsSummaryAsync(const DescribeRecordStatisticsSummaryRequest& request, const DescribeRecordStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecordStatisticsSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeRecordStatisticsSummaryOutcomeCallable AlidnsClient::describeRecordStatisticsSummaryCallable(const DescribeRecordStatisticsSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecordStatisticsSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::DescribeGtmInstanceAddressPoolsOutcome AlidnsClient::describeGtmInstanceAddressPools(const DescribeGtmInstanceAddressPoolsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1383,78 @@ AlidnsClient::DescribeGtmInstanceAddressPoolsOutcomeCallable AlidnsClient::descr return task->get_future(); } +AlidnsClient::DescribeRecordStatisticsOutcome AlidnsClient::describeRecordStatistics(const DescribeRecordStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecordStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecordStatisticsOutcome(DescribeRecordStatisticsResult(outcome.result())); + else + return DescribeRecordStatisticsOutcome(outcome.error()); +} + +void AlidnsClient::describeRecordStatisticsAsync(const DescribeRecordStatisticsRequest& request, const DescribeRecordStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecordStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeRecordStatisticsOutcomeCallable AlidnsClient::describeRecordStatisticsCallable(const DescribeRecordStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecordStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlidnsClient::DescribeDomainStatisticsSummaryOutcome AlidnsClient::describeDomainStatisticsSummary(const DescribeDomainStatisticsSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainStatisticsSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainStatisticsSummaryOutcome(DescribeDomainStatisticsSummaryResult(outcome.result())); + else + return DescribeDomainStatisticsSummaryOutcome(outcome.error()); +} + +void AlidnsClient::describeDomainStatisticsSummaryAsync(const DescribeDomainStatisticsSummaryRequest& request, const DescribeDomainStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainStatisticsSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeDomainStatisticsSummaryOutcomeCallable AlidnsClient::describeDomainStatisticsSummaryCallable(const DescribeDomainStatisticsSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainStatisticsSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::DescribeSupportLinesOutcome AlidnsClient::describeSupportLines(const DescribeSupportLinesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +1491,78 @@ AlidnsClient::DescribeSupportLinesOutcomeCallable AlidnsClient::describeSupportL return task->get_future(); } +AlidnsClient::DescribeDomainStatisticsOutcome AlidnsClient::describeDomainStatistics(const DescribeDomainStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainStatisticsOutcome(DescribeDomainStatisticsResult(outcome.result())); + else + return DescribeDomainStatisticsOutcome(outcome.error()); +} + +void AlidnsClient::describeDomainStatisticsAsync(const DescribeDomainStatisticsRequest& request, const DescribeDomainStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeDomainStatisticsOutcomeCallable AlidnsClient::describeDomainStatisticsCallable(const DescribeDomainStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlidnsClient::DescribeGtmInstanceSystemCnameOutcome AlidnsClient::describeGtmInstanceSystemCname(const DescribeGtmInstanceSystemCnameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGtmInstanceSystemCnameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGtmInstanceSystemCnameOutcome(DescribeGtmInstanceSystemCnameResult(outcome.result())); + else + return DescribeGtmInstanceSystemCnameOutcome(outcome.error()); +} + +void AlidnsClient::describeGtmInstanceSystemCnameAsync(const DescribeGtmInstanceSystemCnameRequest& request, const DescribeGtmInstanceSystemCnameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGtmInstanceSystemCname(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeGtmInstanceSystemCnameOutcomeCallable AlidnsClient::describeGtmInstanceSystemCnameCallable(const DescribeGtmInstanceSystemCnameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGtmInstanceSystemCname(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::AddDomainRecordOutcome AlidnsClient::addDomainRecord(const AddDomainRecordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,42 +2139,6 @@ AlidnsClient::DeleteSubDomainRecordsOutcomeCallable AlidnsClient::deleteSubDomai return task->get_future(); } -AlidnsClient::UpdateGtmMonitorOutcome AlidnsClient::updateGtmMonitor(const UpdateGtmMonitorRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateGtmMonitorOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateGtmMonitorOutcome(UpdateGtmMonitorResult(outcome.result())); - else - return UpdateGtmMonitorOutcome(outcome.error()); -} - -void AlidnsClient::updateGtmMonitorAsync(const UpdateGtmMonitorRequest& request, const UpdateGtmMonitorAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateGtmMonitor(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AlidnsClient::UpdateGtmMonitorOutcomeCallable AlidnsClient::updateGtmMonitorCallable(const UpdateGtmMonitorRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateGtmMonitor(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AlidnsClient::DescribeDomainNsOutcome AlidnsClient::describeDomainNs(const DescribeDomainNsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2175,42 @@ AlidnsClient::DescribeDomainNsOutcomeCallable AlidnsClient::describeDomainNsCall return task->get_future(); } +AlidnsClient::UpdateGtmMonitorOutcome AlidnsClient::updateGtmMonitor(const UpdateGtmMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGtmMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGtmMonitorOutcome(UpdateGtmMonitorResult(outcome.result())); + else + return UpdateGtmMonitorOutcome(outcome.error()); +} + +void AlidnsClient::updateGtmMonitorAsync(const UpdateGtmMonitorRequest& request, const UpdateGtmMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGtmMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::UpdateGtmMonitorOutcomeCallable AlidnsClient::updateGtmMonitorCallable(const UpdateGtmMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGtmMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::SetDNSSLBStatusOutcome AlidnsClient::setDNSSLBStatus(const SetDNSSLBStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/alidns/src/model/AddDomainGroupRequest.cc b/alidns/src/model/AddDomainGroupRequest.cc index 517f6d9b5..3fec45fc2 100644 --- a/alidns/src/model/AddDomainGroupRequest.cc +++ b/alidns/src/model/AddDomainGroupRequest.cc @@ -33,7 +33,7 @@ std::string AddDomainGroupRequest::getUserClientIp()const void AddDomainGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string AddDomainGroupRequest::getLang()const @@ -44,7 +44,7 @@ std::string AddDomainGroupRequest::getLang()const void AddDomainGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string AddDomainGroupRequest::getGroupName()const @@ -55,17 +55,6 @@ std::string AddDomainGroupRequest::getGroupName()const void AddDomainGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); -} - -std::string AddDomainGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddDomainGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("GroupName", groupName); } diff --git a/alidns/src/model/AddDomainGroupResult.cc b/alidns/src/model/AddDomainGroupResult.cc index bc86e687c..86738bc0a 100644 --- a/alidns/src/model/AddDomainGroupResult.cc +++ b/alidns/src/model/AddDomainGroupResult.cc @@ -35,10 +35,13 @@ AddDomainGroupResult::~AddDomainGroupResult() void AddDomainGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); diff --git a/alidns/src/model/AddDomainRecordRequest.cc b/alidns/src/model/AddDomainRecordRequest.cc index cd4b48cda..26041193f 100644 --- a/alidns/src/model/AddDomainRecordRequest.cc +++ b/alidns/src/model/AddDomainRecordRequest.cc @@ -33,7 +33,7 @@ std::string AddDomainRecordRequest::getRR()const void AddDomainRecordRequest::setRR(const std::string& rR) { rR_ = rR; - setParameter("RR", rR); + setCoreParameter("RR", rR); } std::string AddDomainRecordRequest::getLine()const @@ -44,7 +44,7 @@ std::string AddDomainRecordRequest::getLine()const void AddDomainRecordRequest::setLine(const std::string& line) { line_ = line; - setParameter("Line", line); + setCoreParameter("Line", line); } std::string AddDomainRecordRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string AddDomainRecordRequest::getUserClientIp()const void AddDomainRecordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string AddDomainRecordRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string AddDomainRecordRequest::getDomainName()const void AddDomainRecordRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string AddDomainRecordRequest::getLang()const @@ -77,7 +77,7 @@ std::string AddDomainRecordRequest::getLang()const void AddDomainRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string AddDomainRecordRequest::getType()const @@ -88,7 +88,7 @@ std::string AddDomainRecordRequest::getType()const void AddDomainRecordRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } long AddDomainRecordRequest::getPriority()const @@ -99,7 +99,7 @@ long AddDomainRecordRequest::getPriority()const void AddDomainRecordRequest::setPriority(long priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string AddDomainRecordRequest::getValue()const @@ -110,7 +110,7 @@ std::string AddDomainRecordRequest::getValue()const void AddDomainRecordRequest::setValue(const std::string& value) { value_ = value; - setParameter("Value", value); + setCoreParameter("Value", value); } long AddDomainRecordRequest::getTTL()const @@ -121,7 +121,7 @@ long AddDomainRecordRequest::getTTL()const void AddDomainRecordRequest::setTTL(long tTL) { tTL_ = tTL; - setParameter("TTL", std::to_string(tTL)); + setCoreParameter("TTL", std::to_string(tTL)); } std::string AddDomainRecordRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string AddDomainRecordRequest::getAccessKeyId()const void AddDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/AddDomainRecordResult.cc b/alidns/src/model/AddDomainRecordResult.cc index 146c52343..128acb9ac 100644 --- a/alidns/src/model/AddDomainRecordResult.cc +++ b/alidns/src/model/AddDomainRecordResult.cc @@ -35,10 +35,13 @@ AddDomainRecordResult::~AddDomainRecordResult() void AddDomainRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = value["RecordId"].asString(); diff --git a/alidns/src/model/AddDomainRequest.cc b/alidns/src/model/AddDomainRequest.cc index 9c9967867..d6e26a9d2 100644 --- a/alidns/src/model/AddDomainRequest.cc +++ b/alidns/src/model/AddDomainRequest.cc @@ -25,6 +25,17 @@ AddDomainRequest::AddDomainRequest() : AddDomainRequest::~AddDomainRequest() {} +std::string AddDomainRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AddDomainRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + std::string AddDomainRequest::getGroupId()const { return groupId_; @@ -33,7 +44,7 @@ std::string AddDomainRequest::getGroupId()const void AddDomainRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string AddDomainRequest::getDomainName()const @@ -44,7 +55,18 @@ std::string AddDomainRequest::getDomainName()const void AddDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); +} + +std::string AddDomainRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void AddDomainRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); } std::string AddDomainRequest::getLang()const @@ -55,7 +77,7 @@ std::string AddDomainRequest::getLang()const void AddDomainRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string AddDomainRequest::getAccessKeyId()const @@ -66,6 +88,6 @@ std::string AddDomainRequest::getAccessKeyId()const void AddDomainRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/AddDomainResult.cc b/alidns/src/model/AddDomainResult.cc index 017996992..e69fd746d 100644 --- a/alidns/src/model/AddDomainResult.cc +++ b/alidns/src/model/AddDomainResult.cc @@ -35,10 +35,13 @@ AddDomainResult::~AddDomainResult() void AddDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDnsServers = value["DnsServers"]["DnsServer"]; for (const auto &item : allDnsServers) diff --git a/alidns/src/model/AddGtmAccessStrategyRequest.cc b/alidns/src/model/AddGtmAccessStrategyRequest.cc index 558cff8e3..bedc8be7b 100644 --- a/alidns/src/model/AddGtmAccessStrategyRequest.cc +++ b/alidns/src/model/AddGtmAccessStrategyRequest.cc @@ -33,7 +33,7 @@ std::string AddGtmAccessStrategyRequest::getStrategyName()const void AddGtmAccessStrategyRequest::setStrategyName(const std::string& strategyName) { strategyName_ = strategyName; - setParameter("StrategyName", strategyName); + setCoreParameter("StrategyName", strategyName); } std::string AddGtmAccessStrategyRequest::getDefaultAddrPoolId()const @@ -44,7 +44,7 @@ std::string AddGtmAccessStrategyRequest::getDefaultAddrPoolId()const void AddGtmAccessStrategyRequest::setDefaultAddrPoolId(const std::string& defaultAddrPoolId) { defaultAddrPoolId_ = defaultAddrPoolId; - setParameter("DefaultAddrPoolId", defaultAddrPoolId); + setCoreParameter("DefaultAddrPoolId", defaultAddrPoolId); } std::string AddGtmAccessStrategyRequest::getAccessLines()const @@ -55,7 +55,7 @@ std::string AddGtmAccessStrategyRequest::getAccessLines()const void AddGtmAccessStrategyRequest::setAccessLines(const std::string& accessLines) { accessLines_ = accessLines; - setParameter("AccessLines", accessLines); + setCoreParameter("AccessLines", accessLines); } std::string AddGtmAccessStrategyRequest::getInstanceId()const @@ -66,7 +66,7 @@ std::string AddGtmAccessStrategyRequest::getInstanceId()const void AddGtmAccessStrategyRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string AddGtmAccessStrategyRequest::getFailoverAddrPoolId()const @@ -77,7 +77,7 @@ std::string AddGtmAccessStrategyRequest::getFailoverAddrPoolId()const void AddGtmAccessStrategyRequest::setFailoverAddrPoolId(const std::string& failoverAddrPoolId) { failoverAddrPoolId_ = failoverAddrPoolId; - setParameter("FailoverAddrPoolId", failoverAddrPoolId); + setCoreParameter("FailoverAddrPoolId", failoverAddrPoolId); } std::string AddGtmAccessStrategyRequest::getUserClientIp()const @@ -88,7 +88,7 @@ std::string AddGtmAccessStrategyRequest::getUserClientIp()const void AddGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string AddGtmAccessStrategyRequest::getLang()const @@ -99,6 +99,6 @@ std::string AddGtmAccessStrategyRequest::getLang()const void AddGtmAccessStrategyRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/AddGtmAccessStrategyResult.cc b/alidns/src/model/AddGtmAccessStrategyResult.cc index 2c1b48a02..6ac76b6b9 100644 --- a/alidns/src/model/AddGtmAccessStrategyResult.cc +++ b/alidns/src/model/AddGtmAccessStrategyResult.cc @@ -35,10 +35,13 @@ AddGtmAccessStrategyResult::~AddGtmAccessStrategyResult() void AddGtmAccessStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["StrategyId"].isNull()) strategyId_ = value["StrategyId"].asString(); diff --git a/alidns/src/model/AddGtmAddressPoolRequest.cc b/alidns/src/model/AddGtmAddressPoolRequest.cc index 04f9b59b9..6a1904f46 100644 --- a/alidns/src/model/AddGtmAddressPoolRequest.cc +++ b/alidns/src/model/AddGtmAddressPoolRequest.cc @@ -33,7 +33,7 @@ std::string AddGtmAddressPoolRequest::getInstanceId()const void AddGtmAddressPoolRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string AddGtmAddressPoolRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string AddGtmAddressPoolRequest::getUserClientIp()const void AddGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string AddGtmAddressPoolRequest::getName()const @@ -55,7 +55,7 @@ std::string AddGtmAddressPoolRequest::getName()const void AddGtmAddressPoolRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddGtmAddressPoolRequest::getLang()const @@ -66,7 +66,7 @@ std::string AddGtmAddressPoolRequest::getLang()const void AddGtmAddressPoolRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string AddGtmAddressPoolRequest::getType()const @@ -77,7 +77,7 @@ std::string AddGtmAddressPoolRequest::getType()const void AddGtmAddressPoolRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::vector AddGtmAddressPoolRequest::getAddr()const @@ -92,9 +92,9 @@ void AddGtmAddressPoolRequest::setAddr(const std::vector& addr) for(int i = 0; i!= addr.size(); i++) { auto obj = addr.at(i); std::string str ="Addr."+ std::to_string(i); - setParameter(str + ".Mode", obj.mode); - setParameter(str + ".LbaWeight", std::to_string(obj.lbaWeight)); - setParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Mode", obj.mode); + setCoreParameter(str + ".LbaWeight", std::to_string(obj.lbaWeight)); + setCoreParameter(str + ".Value", obj.value); } } @@ -106,6 +106,6 @@ int AddGtmAddressPoolRequest::getMinAvailableAddrNum()const void AddGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum) { minAvailableAddrNum_ = minAvailableAddrNum; - setParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum)); + setCoreParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum)); } diff --git a/alidns/src/model/AddGtmAddressPoolResult.cc b/alidns/src/model/AddGtmAddressPoolResult.cc index b80fe5b05..cdfc98bfc 100644 --- a/alidns/src/model/AddGtmAddressPoolResult.cc +++ b/alidns/src/model/AddGtmAddressPoolResult.cc @@ -35,10 +35,13 @@ AddGtmAddressPoolResult::~AddGtmAddressPoolResult() void AddGtmAddressPoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AddrPoolId"].isNull()) addrPoolId_ = value["AddrPoolId"].asString(); diff --git a/alidns/src/model/AddGtmMonitorRequest.cc b/alidns/src/model/AddGtmMonitorRequest.cc index 2f60d883b..7c63a1da0 100644 --- a/alidns/src/model/AddGtmMonitorRequest.cc +++ b/alidns/src/model/AddGtmMonitorRequest.cc @@ -33,7 +33,7 @@ std::string AddGtmMonitorRequest::getMonitorExtendInfo()const void AddGtmMonitorRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) { monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); + setCoreParameter("MonitorExtendInfo", monitorExtendInfo); } std::string AddGtmMonitorRequest::getAddrPoolId()const @@ -44,7 +44,7 @@ std::string AddGtmMonitorRequest::getAddrPoolId()const void AddGtmMonitorRequest::setAddrPoolId(const std::string& addrPoolId) { addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); + setCoreParameter("AddrPoolId", addrPoolId); } std::string AddGtmMonitorRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string AddGtmMonitorRequest::getUserClientIp()const void AddGtmMonitorRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string AddGtmMonitorRequest::getName()const @@ -66,7 +66,7 @@ std::string AddGtmMonitorRequest::getName()const void AddGtmMonitorRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int AddGtmMonitorRequest::getEvaluationCount()const @@ -77,7 +77,7 @@ int AddGtmMonitorRequest::getEvaluationCount()const void AddGtmMonitorRequest::setEvaluationCount(int evaluationCount) { evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); + setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); } std::string AddGtmMonitorRequest::getProtocolType()const @@ -88,7 +88,7 @@ std::string AddGtmMonitorRequest::getProtocolType()const void AddGtmMonitorRequest::setProtocolType(const std::string& protocolType) { protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); + setCoreParameter("ProtocolType", protocolType); } int AddGtmMonitorRequest::getInterval()const @@ -99,7 +99,7 @@ int AddGtmMonitorRequest::getInterval()const void AddGtmMonitorRequest::setInterval(int interval) { interval_ = interval; - setParameter("Interval", std::to_string(interval)); + setCoreParameter("Interval", std::to_string(interval)); } std::string AddGtmMonitorRequest::getLang()const @@ -110,7 +110,7 @@ std::string AddGtmMonitorRequest::getLang()const void AddGtmMonitorRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int AddGtmMonitorRequest::getTimeout()const @@ -121,7 +121,7 @@ int AddGtmMonitorRequest::getTimeout()const void AddGtmMonitorRequest::setTimeout(int timeout) { timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); + setCoreParameter("Timeout", std::to_string(timeout)); } std::vector AddGtmMonitorRequest::getIspCityNode()const @@ -136,8 +136,8 @@ void AddGtmMonitorRequest::setIspCityNode(const std::vector& ispCit for(int i = 0; i!= ispCityNode.size(); i++) { auto obj = ispCityNode.at(i); std::string str ="IspCityNode."+ std::to_string(i); - setParameter(str + ".CityCode", obj.cityCode); - setParameter(str + ".IspCode", obj.ispCode); + setCoreParameter(str + ".CityCode", obj.cityCode); + setCoreParameter(str + ".IspCode", obj.ispCode); } } diff --git a/alidns/src/model/AddGtmMonitorResult.cc b/alidns/src/model/AddGtmMonitorResult.cc index 8fe763e2a..cbfcb304e 100644 --- a/alidns/src/model/AddGtmMonitorResult.cc +++ b/alidns/src/model/AddGtmMonitorResult.cc @@ -35,10 +35,13 @@ AddGtmMonitorResult::~AddGtmMonitorResult() void AddGtmMonitorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MonitorConfigId"].isNull()) monitorConfigId_ = value["MonitorConfigId"].asString(); diff --git a/alidns/src/model/ChangeDomainGroupRequest.cc b/alidns/src/model/ChangeDomainGroupRequest.cc index eee331b3c..9bf1b85b8 100644 --- a/alidns/src/model/ChangeDomainGroupRequest.cc +++ b/alidns/src/model/ChangeDomainGroupRequest.cc @@ -33,7 +33,7 @@ std::string ChangeDomainGroupRequest::getGroupId()const void ChangeDomainGroupRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string ChangeDomainGroupRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string ChangeDomainGroupRequest::getUserClientIp()const void ChangeDomainGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string ChangeDomainGroupRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string ChangeDomainGroupRequest::getDomainName()const void ChangeDomainGroupRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string ChangeDomainGroupRequest::getLang()const @@ -66,17 +66,6 @@ std::string ChangeDomainGroupRequest::getLang()const void ChangeDomainGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); -} - -std::string ChangeDomainGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ChangeDomainGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/ChangeDomainGroupResult.cc b/alidns/src/model/ChangeDomainGroupResult.cc index 9310be69e..cbbcb96aa 100644 --- a/alidns/src/model/ChangeDomainGroupResult.cc +++ b/alidns/src/model/ChangeDomainGroupResult.cc @@ -35,10 +35,13 @@ ChangeDomainGroupResult::~ChangeDomainGroupResult() void ChangeDomainGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); diff --git a/alidns/src/model/ChangeDomainOfDnsProductRequest.cc b/alidns/src/model/ChangeDomainOfDnsProductRequest.cc index f38faae58..535b5daea 100644 --- a/alidns/src/model/ChangeDomainOfDnsProductRequest.cc +++ b/alidns/src/model/ChangeDomainOfDnsProductRequest.cc @@ -33,7 +33,7 @@ std::string ChangeDomainOfDnsProductRequest::getInstanceId()const void ChangeDomainOfDnsProductRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ChangeDomainOfDnsProductRequest::getNewDomain()const @@ -44,7 +44,7 @@ std::string ChangeDomainOfDnsProductRequest::getNewDomain()const void ChangeDomainOfDnsProductRequest::setNewDomain(const std::string& newDomain) { newDomain_ = newDomain; - setParameter("NewDomain", newDomain); + setCoreParameter("NewDomain", newDomain); } std::string ChangeDomainOfDnsProductRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string ChangeDomainOfDnsProductRequest::getUserClientIp()const void ChangeDomainOfDnsProductRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } bool ChangeDomainOfDnsProductRequest::getForce()const @@ -66,7 +66,7 @@ bool ChangeDomainOfDnsProductRequest::getForce()const void ChangeDomainOfDnsProductRequest::setForce(bool force) { force_ = force; - setParameter("Force", force ? "true" : "false"); + setCoreParameter("Force", force ? "true" : "false"); } std::string ChangeDomainOfDnsProductRequest::getLang()const @@ -77,7 +77,7 @@ std::string ChangeDomainOfDnsProductRequest::getLang()const void ChangeDomainOfDnsProductRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string ChangeDomainOfDnsProductRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ChangeDomainOfDnsProductRequest::getAccessKeyId()const void ChangeDomainOfDnsProductRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/ChangeDomainOfDnsProductResult.cc b/alidns/src/model/ChangeDomainOfDnsProductResult.cc index beb864ff9..edd57455a 100644 --- a/alidns/src/model/ChangeDomainOfDnsProductResult.cc +++ b/alidns/src/model/ChangeDomainOfDnsProductResult.cc @@ -35,10 +35,13 @@ ChangeDomainOfDnsProductResult::~ChangeDomainOfDnsProductResult() void ChangeDomainOfDnsProductResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OriginalDomain"].isNull()) originalDomain_ = value["OriginalDomain"].asString(); diff --git a/alidns/src/model/CheckDomainRecordRequest.cc b/alidns/src/model/CheckDomainRecordRequest.cc index 450fa7414..bb8a8917e 100644 --- a/alidns/src/model/CheckDomainRecordRequest.cc +++ b/alidns/src/model/CheckDomainRecordRequest.cc @@ -33,7 +33,7 @@ std::string CheckDomainRecordRequest::getRR()const void CheckDomainRecordRequest::setRR(const std::string& rR) { rR_ = rR; - setParameter("RR", rR); + setCoreParameter("RR", rR); } std::string CheckDomainRecordRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string CheckDomainRecordRequest::getUserClientIp()const void CheckDomainRecordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CheckDomainRecordRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string CheckDomainRecordRequest::getDomainName()const void CheckDomainRecordRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string CheckDomainRecordRequest::getLang()const @@ -66,7 +66,7 @@ std::string CheckDomainRecordRequest::getLang()const void CheckDomainRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CheckDomainRecordRequest::getType()const @@ -77,7 +77,7 @@ std::string CheckDomainRecordRequest::getType()const void CheckDomainRecordRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CheckDomainRecordRequest::getValue()const @@ -88,7 +88,7 @@ std::string CheckDomainRecordRequest::getValue()const void CheckDomainRecordRequest::setValue(const std::string& value) { value_ = value; - setParameter("Value", value); + setCoreParameter("Value", value); } std::string CheckDomainRecordRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string CheckDomainRecordRequest::getAccessKeyId()const void CheckDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/CheckDomainRecordResult.cc b/alidns/src/model/CheckDomainRecordResult.cc index 9e02d15cb..f017d4f9c 100644 --- a/alidns/src/model/CheckDomainRecordResult.cc +++ b/alidns/src/model/CheckDomainRecordResult.cc @@ -35,10 +35,13 @@ CheckDomainRecordResult::~CheckDomainRecordResult() void CheckDomainRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["IsExist"].isNull()) isExist_ = value["IsExist"].asString() == "true"; diff --git a/alidns/src/model/CreateInstanceRequest.cc b/alidns/src/model/CreateInstanceRequest.cc index f4222e598..c5e748524 100644 --- a/alidns/src/model/CreateInstanceRequest.cc +++ b/alidns/src/model/CreateInstanceRequest.cc @@ -33,7 +33,7 @@ int CreateInstanceRequest::getMonth()const void CreateInstanceRequest::setMonth(int month) { month_ = month; - setParameter("Month", std::to_string(month)); + setCoreParameter("Month", std::to_string(month)); } std::string CreateInstanceRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string CreateInstanceRequest::getUserClientIp()const void CreateInstanceRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CreateInstanceRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string CreateInstanceRequest::getDomainName()const void CreateInstanceRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string CreateInstanceRequest::getLang()const @@ -66,7 +66,7 @@ std::string CreateInstanceRequest::getLang()const void CreateInstanceRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateInstanceRequest::getInstanceVersion()const @@ -77,7 +77,7 @@ std::string CreateInstanceRequest::getInstanceVersion()const void CreateInstanceRequest::setInstanceVersion(const std::string& instanceVersion) { instanceVersion_ = instanceVersion; - setParameter("InstanceVersion", instanceVersion); + setCoreParameter("InstanceVersion", instanceVersion); } long CreateInstanceRequest::getOwnerId()const @@ -88,7 +88,7 @@ long CreateInstanceRequest::getOwnerId()const void CreateInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateInstanceRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string CreateInstanceRequest::getAccessKeyId()const void CreateInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateInstanceRequest::getToken()const @@ -110,6 +110,6 @@ std::string CreateInstanceRequest::getToken()const void CreateInstanceRequest::setToken(const std::string& token) { token_ = token; - setParameter("Token", token); + setCoreParameter("Token", token); } diff --git a/alidns/src/model/CreateInstanceResult.cc b/alidns/src/model/CreateInstanceResult.cc index 48ebcd0c5..4e14c1252 100644 --- a/alidns/src/model/CreateInstanceResult.cc +++ b/alidns/src/model/CreateInstanceResult.cc @@ -35,10 +35,13 @@ CreateInstanceResult::~CreateInstanceResult() void CreateInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/alidns/src/model/DeleteDomainGroupRequest.cc b/alidns/src/model/DeleteDomainGroupRequest.cc index 3679a08f3..d1227fcd8 100644 --- a/alidns/src/model/DeleteDomainGroupRequest.cc +++ b/alidns/src/model/DeleteDomainGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDomainGroupRequest::getGroupId()const void DeleteDomainGroupRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DeleteDomainGroupRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DeleteDomainGroupRequest::getUserClientIp()const void DeleteDomainGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteDomainGroupRequest::getLang()const @@ -55,17 +55,6 @@ std::string DeleteDomainGroupRequest::getLang()const void DeleteDomainGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); -} - -std::string DeleteDomainGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteDomainGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DeleteDomainGroupResult.cc b/alidns/src/model/DeleteDomainGroupResult.cc index f387d7b4c..f31fc07f4 100644 --- a/alidns/src/model/DeleteDomainGroupResult.cc +++ b/alidns/src/model/DeleteDomainGroupResult.cc @@ -35,10 +35,13 @@ DeleteDomainGroupResult::~DeleteDomainGroupResult() void DeleteDomainGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["GroupName"].isNull()) groupName_ = value["GroupName"].asString(); diff --git a/alidns/src/model/DeleteDomainRecordRequest.cc b/alidns/src/model/DeleteDomainRecordRequest.cc index 474c7d7b3..97b29fd2f 100644 --- a/alidns/src/model/DeleteDomainRecordRequest.cc +++ b/alidns/src/model/DeleteDomainRecordRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDomainRecordRequest::getRecordId()const void DeleteDomainRecordRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string DeleteDomainRecordRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DeleteDomainRecordRequest::getUserClientIp()const void DeleteDomainRecordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteDomainRecordRequest::getLang()const @@ -55,7 +55,7 @@ std::string DeleteDomainRecordRequest::getLang()const void DeleteDomainRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteDomainRecordRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteDomainRecordRequest::getAccessKeyId()const void DeleteDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DeleteDomainRecordResult.cc b/alidns/src/model/DeleteDomainRecordResult.cc index 8ec12960e..c22a072fe 100644 --- a/alidns/src/model/DeleteDomainRecordResult.cc +++ b/alidns/src/model/DeleteDomainRecordResult.cc @@ -35,10 +35,13 @@ DeleteDomainRecordResult::~DeleteDomainRecordResult() void DeleteDomainRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = value["RecordId"].asString(); diff --git a/alidns/src/model/DeleteDomainRequest.cc b/alidns/src/model/DeleteDomainRequest.cc index 42fd8de37..e3d18e65d 100644 --- a/alidns/src/model/DeleteDomainRequest.cc +++ b/alidns/src/model/DeleteDomainRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDomainRequest::getUserClientIp()const void DeleteDomainRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DeleteDomainRequest::getDomainName()const void DeleteDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DeleteDomainRequest::getLang()const @@ -55,7 +55,7 @@ std::string DeleteDomainRequest::getLang()const void DeleteDomainRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteDomainRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteDomainRequest::getAccessKeyId()const void DeleteDomainRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DeleteDomainResult.cc b/alidns/src/model/DeleteDomainResult.cc index 0887bf1c9..d884eadb8 100644 --- a/alidns/src/model/DeleteDomainResult.cc +++ b/alidns/src/model/DeleteDomainResult.cc @@ -35,10 +35,13 @@ DeleteDomainResult::~DeleteDomainResult() void DeleteDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); diff --git a/alidns/src/model/DeleteGtmAccessStrategyRequest.cc b/alidns/src/model/DeleteGtmAccessStrategyRequest.cc index b89fd7c02..c643db3f9 100644 --- a/alidns/src/model/DeleteGtmAccessStrategyRequest.cc +++ b/alidns/src/model/DeleteGtmAccessStrategyRequest.cc @@ -33,7 +33,7 @@ std::string DeleteGtmAccessStrategyRequest::getUserClientIp()const void DeleteGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteGtmAccessStrategyRequest::getStrategyId()const @@ -44,7 +44,7 @@ std::string DeleteGtmAccessStrategyRequest::getStrategyId()const void DeleteGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) { strategyId_ = strategyId; - setParameter("StrategyId", strategyId); + setCoreParameter("StrategyId", strategyId); } std::string DeleteGtmAccessStrategyRequest::getLang()const @@ -55,6 +55,6 @@ std::string DeleteGtmAccessStrategyRequest::getLang()const void DeleteGtmAccessStrategyRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DeleteGtmAccessStrategyResult.cc b/alidns/src/model/DeleteGtmAccessStrategyResult.cc index 10912a4e0..38995b006 100644 --- a/alidns/src/model/DeleteGtmAccessStrategyResult.cc +++ b/alidns/src/model/DeleteGtmAccessStrategyResult.cc @@ -35,10 +35,13 @@ DeleteGtmAccessStrategyResult::~DeleteGtmAccessStrategyResult() void DeleteGtmAccessStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alidns/src/model/DeleteGtmAddressPoolRequest.cc b/alidns/src/model/DeleteGtmAddressPoolRequest.cc index 9a07c71b7..56694f1ce 100644 --- a/alidns/src/model/DeleteGtmAddressPoolRequest.cc +++ b/alidns/src/model/DeleteGtmAddressPoolRequest.cc @@ -33,7 +33,7 @@ std::string DeleteGtmAddressPoolRequest::getAddrPoolId()const void DeleteGtmAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) { addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); + setCoreParameter("AddrPoolId", addrPoolId); } std::string DeleteGtmAddressPoolRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DeleteGtmAddressPoolRequest::getUserClientIp()const void DeleteGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteGtmAddressPoolRequest::getLang()const @@ -55,6 +55,6 @@ std::string DeleteGtmAddressPoolRequest::getLang()const void DeleteGtmAddressPoolRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DeleteGtmAddressPoolResult.cc b/alidns/src/model/DeleteGtmAddressPoolResult.cc index fe94f430a..f46236760 100644 --- a/alidns/src/model/DeleteGtmAddressPoolResult.cc +++ b/alidns/src/model/DeleteGtmAddressPoolResult.cc @@ -35,10 +35,13 @@ DeleteGtmAddressPoolResult::~DeleteGtmAddressPoolResult() void DeleteGtmAddressPoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alidns/src/model/DeleteSubDomainRecordsRequest.cc b/alidns/src/model/DeleteSubDomainRecordsRequest.cc index 8c9b8d55b..d18ac5cf4 100644 --- a/alidns/src/model/DeleteSubDomainRecordsRequest.cc +++ b/alidns/src/model/DeleteSubDomainRecordsRequest.cc @@ -33,7 +33,7 @@ std::string DeleteSubDomainRecordsRequest::getRR()const void DeleteSubDomainRecordsRequest::setRR(const std::string& rR) { rR_ = rR; - setParameter("RR", rR); + setCoreParameter("RR", rR); } std::string DeleteSubDomainRecordsRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DeleteSubDomainRecordsRequest::getUserClientIp()const void DeleteSubDomainRecordsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteSubDomainRecordsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DeleteSubDomainRecordsRequest::getDomainName()const void DeleteSubDomainRecordsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DeleteSubDomainRecordsRequest::getLang()const @@ -66,7 +66,7 @@ std::string DeleteSubDomainRecordsRequest::getLang()const void DeleteSubDomainRecordsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteSubDomainRecordsRequest::getType()const @@ -77,7 +77,7 @@ std::string DeleteSubDomainRecordsRequest::getType()const void DeleteSubDomainRecordsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string DeleteSubDomainRecordsRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteSubDomainRecordsRequest::getAccessKeyId()const void DeleteSubDomainRecordsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DeleteSubDomainRecordsResult.cc b/alidns/src/model/DeleteSubDomainRecordsResult.cc index a8c410442..dab33d268 100644 --- a/alidns/src/model/DeleteSubDomainRecordsResult.cc +++ b/alidns/src/model/DeleteSubDomainRecordsResult.cc @@ -35,10 +35,13 @@ DeleteSubDomainRecordsResult::~DeleteSubDomainRecordsResult() void DeleteSubDomainRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RR"].isNull()) rR_ = value["RR"].asString(); diff --git a/alidns/src/model/DescribeBatchResultCountRequest.cc b/alidns/src/model/DescribeBatchResultCountRequest.cc index e1be1c6c7..b36e5c438 100644 --- a/alidns/src/model/DescribeBatchResultCountRequest.cc +++ b/alidns/src/model/DescribeBatchResultCountRequest.cc @@ -33,7 +33,7 @@ std::string DescribeBatchResultCountRequest::getBatchType()const void DescribeBatchResultCountRequest::setBatchType(const std::string& batchType) { batchType_ = batchType; - setParameter("BatchType", batchType); + setCoreParameter("BatchType", batchType); } std::string DescribeBatchResultCountRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeBatchResultCountRequest::getUserClientIp()const void DescribeBatchResultCountRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeBatchResultCountRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeBatchResultCountRequest::getLang()const void DescribeBatchResultCountRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DescribeBatchResultCountRequest::getTaskId()const @@ -66,6 +66,6 @@ long DescribeBatchResultCountRequest::getTaskId()const void DescribeBatchResultCountRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } diff --git a/alidns/src/model/DescribeBatchResultCountResult.cc b/alidns/src/model/DescribeBatchResultCountResult.cc index a63cc7ed4..438f81ace 100644 --- a/alidns/src/model/DescribeBatchResultCountResult.cc +++ b/alidns/src/model/DescribeBatchResultCountResult.cc @@ -35,10 +35,13 @@ DescribeBatchResultCountResult::~DescribeBatchResultCountResult() void DescribeBatchResultCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Status"].isNull()) status_ = std::stoi(value["Status"].asString()); diff --git a/alidns/src/model/DescribeBatchResultDetailRequest.cc b/alidns/src/model/DescribeBatchResultDetailRequest.cc index 85e71dd19..453bd4d47 100644 --- a/alidns/src/model/DescribeBatchResultDetailRequest.cc +++ b/alidns/src/model/DescribeBatchResultDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeBatchResultDetailRequest::getBatchType()const void DescribeBatchResultDetailRequest::setBatchType(const std::string& batchType) { batchType_ = batchType; - setParameter("BatchType", batchType); + setCoreParameter("BatchType", batchType); } std::string DescribeBatchResultDetailRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeBatchResultDetailRequest::getUserClientIp()const void DescribeBatchResultDetailRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int DescribeBatchResultDetailRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeBatchResultDetailRequest::getPageSize()const void DescribeBatchResultDetailRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeBatchResultDetailRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeBatchResultDetailRequest::getLang()const void DescribeBatchResultDetailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int DescribeBatchResultDetailRequest::getPageNumber()const @@ -77,7 +77,7 @@ int DescribeBatchResultDetailRequest::getPageNumber()const void DescribeBatchResultDetailRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } long DescribeBatchResultDetailRequest::getTaskId()const @@ -88,6 +88,6 @@ long DescribeBatchResultDetailRequest::getTaskId()const void DescribeBatchResultDetailRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } diff --git a/alidns/src/model/DescribeBatchResultDetailResult.cc b/alidns/src/model/DescribeBatchResultDetailResult.cc index 380db5060..8f7134d58 100644 --- a/alidns/src/model/DescribeBatchResultDetailResult.cc +++ b/alidns/src/model/DescribeBatchResultDetailResult.cc @@ -35,10 +35,13 @@ DescribeBatchResultDetailResult::~DescribeBatchResultDetailResult() void DescribeBatchResultDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBatchResultDetails = value["BatchResultDetails"]["BatchResultDetail"]; for (auto value : allBatchResultDetails) @@ -67,9 +70,9 @@ void DescribeBatchResultDetailResult::parse(const std::string &payload) if(!value["Line"].isNull()) batchResultDetailsObject.line = value["Line"].asString(); if(!value["Priority"].isNull()) - batchResultDetailsObject.priority = std::stoi(value["Priority"].asString()); + batchResultDetailsObject.priority = value["Priority"].asString(); if(!value["Ttl"].isNull()) - batchResultDetailsObject.ttl = std::stoi(value["Ttl"].asString()); + batchResultDetailsObject.ttl = value["Ttl"].asString(); if(!value["RecordId"].isNull()) batchResultDetailsObject.recordId = value["RecordId"].asString(); if(!value["Remark"].isNull()) diff --git a/alidns/src/model/DescribeDNSSLBSubDomainsRequest.cc b/alidns/src/model/DescribeDNSSLBSubDomainsRequest.cc index 438c747d9..56c36d2da 100644 --- a/alidns/src/model/DescribeDNSSLBSubDomainsRequest.cc +++ b/alidns/src/model/DescribeDNSSLBSubDomainsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDNSSLBSubDomainsRequest::getUserClientIp()const void DescribeDNSSLBSubDomainsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const void DescribeDNSSLBSubDomainsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeDNSSLBSubDomainsRequest::getPageSize()const @@ -55,7 +55,7 @@ long DescribeDNSSLBSubDomainsRequest::getPageSize()const void DescribeDNSSLBSubDomainsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDNSSLBSubDomainsRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeDNSSLBSubDomainsRequest::getLang()const void DescribeDNSSLBSubDomainsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DescribeDNSSLBSubDomainsRequest::getPageNumber()const @@ -77,7 +77,7 @@ long DescribeDNSSLBSubDomainsRequest::getPageNumber()const void DescribeDNSSLBSubDomainsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDNSSLBSubDomainsRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DescribeDNSSLBSubDomainsRequest::getAccessKeyId()const void DescribeDNSSLBSubDomainsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc b/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc index b8398baf1..c848173cf 100644 --- a/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc +++ b/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc @@ -35,10 +35,13 @@ DescribeDNSSLBSubDomainsResult::~DescribeDNSSLBSubDomainsResult() void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSlbSubDomains = value["SlbSubDomains"]["SlbSubDomain"]; for (auto value : allSlbSubDomains) diff --git a/alidns/src/model/DescribeDnsProductInstanceRequest.cc b/alidns/src/model/DescribeDnsProductInstanceRequest.cc index f3659d40e..7ca1ad11b 100644 --- a/alidns/src/model/DescribeDnsProductInstanceRequest.cc +++ b/alidns/src/model/DescribeDnsProductInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDnsProductInstanceRequest::getInstanceId()const void DescribeDnsProductInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeDnsProductInstanceRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeDnsProductInstanceRequest::getUserClientIp()const void DescribeDnsProductInstanceRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeDnsProductInstanceRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeDnsProductInstanceRequest::getLang()const void DescribeDnsProductInstanceRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDnsProductInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeDnsProductInstanceRequest::getAccessKeyId()const void DescribeDnsProductInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeDnsProductInstanceResult.cc b/alidns/src/model/DescribeDnsProductInstanceResult.cc index a21e18fdc..da367f930 100644 --- a/alidns/src/model/DescribeDnsProductInstanceResult.cc +++ b/alidns/src/model/DescribeDnsProductInstanceResult.cc @@ -35,10 +35,13 @@ DescribeDnsProductInstanceResult::~DescribeDnsProductInstanceResult() void DescribeDnsProductInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDnsServers = value["DnsServers"]["DnsServer"]; for (const auto &item : allDnsServers) diff --git a/alidns/src/model/DescribeDnsProductInstancesRequest.cc b/alidns/src/model/DescribeDnsProductInstancesRequest.cc index 9e0271432..172b600eb 100644 --- a/alidns/src/model/DescribeDnsProductInstancesRequest.cc +++ b/alidns/src/model/DescribeDnsProductInstancesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDnsProductInstancesRequest::getUserClientIp()const void DescribeDnsProductInstancesRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long DescribeDnsProductInstancesRequest::getPageSize()const @@ -44,7 +44,7 @@ long DescribeDnsProductInstancesRequest::getPageSize()const void DescribeDnsProductInstancesRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDnsProductInstancesRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeDnsProductInstancesRequest::getLang()const void DescribeDnsProductInstancesRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDnsProductInstancesRequest::getVersionCode()const @@ -66,7 +66,7 @@ std::string DescribeDnsProductInstancesRequest::getVersionCode()const void DescribeDnsProductInstancesRequest::setVersionCode(const std::string& versionCode) { versionCode_ = versionCode; - setParameter("VersionCode", versionCode); + setCoreParameter("VersionCode", versionCode); } long DescribeDnsProductInstancesRequest::getPageNumber()const @@ -77,7 +77,7 @@ long DescribeDnsProductInstancesRequest::getPageNumber()const void DescribeDnsProductInstancesRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDnsProductInstancesRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DescribeDnsProductInstancesRequest::getAccessKeyId()const void DescribeDnsProductInstancesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeDnsProductInstancesResult.cc b/alidns/src/model/DescribeDnsProductInstancesResult.cc index 4b5f72ac5..4e9df833d 100644 --- a/alidns/src/model/DescribeDnsProductInstancesResult.cc +++ b/alidns/src/model/DescribeDnsProductInstancesResult.cc @@ -35,10 +35,13 @@ DescribeDnsProductInstancesResult::~DescribeDnsProductInstancesResult() void DescribeDnsProductInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDnsProducts = value["DnsProducts"]["DnsProduct"]; for (auto value : allDnsProducts) diff --git a/alidns/src/model/DescribeDomainGroupsRequest.cc b/alidns/src/model/DescribeDomainGroupsRequest.cc index 397a12389..f25a5dee4 100644 --- a/alidns/src/model/DescribeDomainGroupsRequest.cc +++ b/alidns/src/model/DescribeDomainGroupsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainGroupsRequest::getUserClientIp()const void DescribeDomainGroupsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long DescribeDomainGroupsRequest::getPageSize()const @@ -44,7 +44,7 @@ long DescribeDomainGroupsRequest::getPageSize()const void DescribeDomainGroupsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDomainGroupsRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeDomainGroupsRequest::getLang()const void DescribeDomainGroupsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDomainGroupsRequest::getKeyWord()const @@ -66,7 +66,7 @@ std::string DescribeDomainGroupsRequest::getKeyWord()const void DescribeDomainGroupsRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } long DescribeDomainGroupsRequest::getPageNumber()const @@ -77,17 +77,6 @@ long DescribeDomainGroupsRequest::getPageNumber()const void DescribeDomainGroupsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeDomainGroupsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDomainGroupsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/alidns/src/model/DescribeDomainGroupsResult.cc b/alidns/src/model/DescribeDomainGroupsResult.cc index 9f79b7e4f..b0cd80626 100644 --- a/alidns/src/model/DescribeDomainGroupsResult.cc +++ b/alidns/src/model/DescribeDomainGroupsResult.cc @@ -35,10 +35,13 @@ DescribeDomainGroupsResult::~DescribeDomainGroupsResult() void DescribeDomainGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainGroups = value["DomainGroups"]["DomainGroup"]; for (auto value : allDomainGroups) diff --git a/alidns/src/model/DescribeDomainInfoRequest.cc b/alidns/src/model/DescribeDomainInfoRequest.cc index c9a379e0d..f785a4fdc 100644 --- a/alidns/src/model/DescribeDomainInfoRequest.cc +++ b/alidns/src/model/DescribeDomainInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainInfoRequest::getUserClientIp()const void DescribeDomainInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeDomainInfoRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainInfoRequest::getDomainName()const void DescribeDomainInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainInfoRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeDomainInfoRequest::getLang()const void DescribeDomainInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDomainInfoRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string DescribeDomainInfoRequest::getAccessKeyId()const void DescribeDomainInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeDomainInfoRequest::getNeedDetailAttributes()const @@ -77,6 +77,6 @@ bool DescribeDomainInfoRequest::getNeedDetailAttributes()const void DescribeDomainInfoRequest::setNeedDetailAttributes(bool needDetailAttributes) { needDetailAttributes_ = needDetailAttributes; - setParameter("NeedDetailAttributes", needDetailAttributes ? "true" : "false"); + setCoreParameter("NeedDetailAttributes", needDetailAttributes ? "true" : "false"); } diff --git a/alidns/src/model/DescribeDomainInfoResult.cc b/alidns/src/model/DescribeDomainInfoResult.cc index d5b5f124a..8e1a44932 100644 --- a/alidns/src/model/DescribeDomainInfoResult.cc +++ b/alidns/src/model/DescribeDomainInfoResult.cc @@ -35,10 +35,13 @@ DescribeDomainInfoResult::~DescribeDomainInfoResult() void DescribeDomainInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordLines = value["RecordLines"]["RecordLine"]; for (auto value : allRecordLines) diff --git a/alidns/src/model/DescribeDomainLogsRequest.cc b/alidns/src/model/DescribeDomainLogsRequest.cc index e52687304..baa2edf64 100644 --- a/alidns/src/model/DescribeDomainLogsRequest.cc +++ b/alidns/src/model/DescribeDomainLogsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainLogsRequest::getEndDate()const void DescribeDomainLogsRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string DescribeDomainLogsRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string DescribeDomainLogsRequest::getGroupId()const void DescribeDomainLogsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DescribeDomainLogsRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string DescribeDomainLogsRequest::getUserClientIp()const void DescribeDomainLogsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long DescribeDomainLogsRequest::getPageSize()const @@ -66,7 +66,7 @@ long DescribeDomainLogsRequest::getPageSize()const void DescribeDomainLogsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDomainLogsRequest::getLang()const @@ -77,7 +77,7 @@ std::string DescribeDomainLogsRequest::getLang()const void DescribeDomainLogsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDomainLogsRequest::getKeyWord()const @@ -88,7 +88,7 @@ std::string DescribeDomainLogsRequest::getKeyWord()const void DescribeDomainLogsRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } std::string DescribeDomainLogsRequest::getStartDate()const @@ -99,7 +99,7 @@ std::string DescribeDomainLogsRequest::getStartDate()const void DescribeDomainLogsRequest::setStartDate(const std::string& startDate) { startDate_ = startDate; - setParameter("StartDate", startDate); + setCoreParameter("StartDate", startDate); } std::string DescribeDomainLogsRequest::getType()const @@ -110,7 +110,7 @@ std::string DescribeDomainLogsRequest::getType()const void DescribeDomainLogsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } long DescribeDomainLogsRequest::getPageNumber()const @@ -121,6 +121,6 @@ long DescribeDomainLogsRequest::getPageNumber()const void DescribeDomainLogsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/alidns/src/model/DescribeDomainLogsResult.cc b/alidns/src/model/DescribeDomainLogsResult.cc index e6150c63a..6496ccdf1 100644 --- a/alidns/src/model/DescribeDomainLogsResult.cc +++ b/alidns/src/model/DescribeDomainLogsResult.cc @@ -35,10 +35,13 @@ DescribeDomainLogsResult::~DescribeDomainLogsResult() void DescribeDomainLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainLogs = value["DomainLogs"]["DomainLog"]; for (auto value : allDomainLogs) @@ -56,6 +59,8 @@ void DescribeDomainLogsResult::parse(const std::string &payload) domainLogsObject.message = value["Message"].asString(); if(!value["ClientIp"].isNull()) domainLogsObject.clientIp = value["ClientIp"].asString(); + if(!value["ZoneId"].isNull()) + domainLogsObject.zoneId = value["ZoneId"].asString(); domainLogs_.push_back(domainLogsObject); } if(!value["TotalCount"].isNull()) diff --git a/alidns/src/model/DescribeDomainNsRequest.cc b/alidns/src/model/DescribeDomainNsRequest.cc index d76ae6bc9..06cd13349 100644 --- a/alidns/src/model/DescribeDomainNsRequest.cc +++ b/alidns/src/model/DescribeDomainNsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainNsRequest::getUserClientIp()const void DescribeDomainNsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeDomainNsRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainNsRequest::getDomainName()const void DescribeDomainNsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainNsRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeDomainNsRequest::getLang()const void DescribeDomainNsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDomainNsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeDomainNsRequest::getAccessKeyId()const void DescribeDomainNsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeDomainNsResult.cc b/alidns/src/model/DescribeDomainNsResult.cc index 922287d64..feb2098a7 100644 --- a/alidns/src/model/DescribeDomainNsResult.cc +++ b/alidns/src/model/DescribeDomainNsResult.cc @@ -35,10 +35,13 @@ DescribeDomainNsResult::~DescribeDomainNsResult() void DescribeDomainNsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDnsServers = value["DnsServers"]["DnsServer"]; for (const auto &item : allDnsServers) diff --git a/alidns/src/model/DescribeDomainRecordInfoRequest.cc b/alidns/src/model/DescribeDomainRecordInfoRequest.cc index 36e6af47b..7147ff580 100644 --- a/alidns/src/model/DescribeDomainRecordInfoRequest.cc +++ b/alidns/src/model/DescribeDomainRecordInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainRecordInfoRequest::getRecordId()const void DescribeDomainRecordInfoRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string DescribeDomainRecordInfoRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeDomainRecordInfoRequest::getUserClientIp()const void DescribeDomainRecordInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeDomainRecordInfoRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeDomainRecordInfoRequest::getLang()const void DescribeDomainRecordInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDomainRecordInfoRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeDomainRecordInfoRequest::getAccessKeyId()const void DescribeDomainRecordInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeDomainRecordInfoResult.cc b/alidns/src/model/DescribeDomainRecordInfoResult.cc index fbcd9ddea..a07725fe5 100644 --- a/alidns/src/model/DescribeDomainRecordInfoResult.cc +++ b/alidns/src/model/DescribeDomainRecordInfoResult.cc @@ -35,10 +35,13 @@ DescribeDomainRecordInfoResult::~DescribeDomainRecordInfoResult() void DescribeDomainRecordInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainId"].isNull()) domainId_ = value["DomainId"].asString(); diff --git a/alidns/src/model/DescribeDomainRecordsRequest.cc b/alidns/src/model/DescribeDomainRecordsRequest.cc index 94c91d253..69e63d5df 100644 --- a/alidns/src/model/DescribeDomainRecordsRequest.cc +++ b/alidns/src/model/DescribeDomainRecordsRequest.cc @@ -33,7 +33,18 @@ std::string DescribeDomainRecordsRequest::getValueKeyWord()const void DescribeDomainRecordsRequest::setValueKeyWord(const std::string& valueKeyWord) { valueKeyWord_ = valueKeyWord; - setParameter("ValueKeyWord", valueKeyWord); + setCoreParameter("ValueKeyWord", valueKeyWord); +} + +std::string DescribeDomainRecordsRequest::getLine()const +{ + return line_; +} + +void DescribeDomainRecordsRequest::setLine(const std::string& line) +{ + line_ = line; + setCoreParameter("Line", line); } long DescribeDomainRecordsRequest::getGroupId()const @@ -44,7 +55,7 @@ long DescribeDomainRecordsRequest::getGroupId()const void DescribeDomainRecordsRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string DescribeDomainRecordsRequest::getDomainName()const @@ -55,7 +66,7 @@ std::string DescribeDomainRecordsRequest::getDomainName()const void DescribeDomainRecordsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRecordsRequest::getOrderBy()const @@ -66,7 +77,18 @@ std::string DescribeDomainRecordsRequest::getOrderBy()const void DescribeDomainRecordsRequest::setOrderBy(const std::string& orderBy) { orderBy_ = orderBy; - setParameter("OrderBy", orderBy); + setCoreParameter("OrderBy", orderBy); +} + +std::string DescribeDomainRecordsRequest::getType()const +{ + return type_; +} + +void DescribeDomainRecordsRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); } long DescribeDomainRecordsRequest::getPageNumber()const @@ -77,7 +99,7 @@ long DescribeDomainRecordsRequest::getPageNumber()const void DescribeDomainRecordsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDomainRecordsRequest::getUserClientIp()const @@ -88,7 +110,7 @@ std::string DescribeDomainRecordsRequest::getUserClientIp()const void DescribeDomainRecordsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long DescribeDomainRecordsRequest::getPageSize()const @@ -99,7 +121,7 @@ long DescribeDomainRecordsRequest::getPageSize()const void DescribeDomainRecordsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDomainRecordsRequest::getSearchMode()const @@ -110,7 +132,7 @@ std::string DescribeDomainRecordsRequest::getSearchMode()const void DescribeDomainRecordsRequest::setSearchMode(const std::string& searchMode) { searchMode_ = searchMode; - setParameter("SearchMode", searchMode); + setCoreParameter("SearchMode", searchMode); } std::string DescribeDomainRecordsRequest::getLang()const @@ -121,7 +143,7 @@ std::string DescribeDomainRecordsRequest::getLang()const void DescribeDomainRecordsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDomainRecordsRequest::getKeyWord()const @@ -132,7 +154,7 @@ std::string DescribeDomainRecordsRequest::getKeyWord()const void DescribeDomainRecordsRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } std::string DescribeDomainRecordsRequest::getTypeKeyWord()const @@ -143,7 +165,7 @@ std::string DescribeDomainRecordsRequest::getTypeKeyWord()const void DescribeDomainRecordsRequest::setTypeKeyWord(const std::string& typeKeyWord) { typeKeyWord_ = typeKeyWord; - setParameter("TypeKeyWord", typeKeyWord); + setCoreParameter("TypeKeyWord", typeKeyWord); } std::string DescribeDomainRecordsRequest::getRRKeyWord()const @@ -154,7 +176,7 @@ std::string DescribeDomainRecordsRequest::getRRKeyWord()const void DescribeDomainRecordsRequest::setRRKeyWord(const std::string& rRKeyWord) { rRKeyWord_ = rRKeyWord; - setParameter("RRKeyWord", rRKeyWord); + setCoreParameter("RRKeyWord", rRKeyWord); } std::string DescribeDomainRecordsRequest::getDirection()const @@ -165,6 +187,17 @@ std::string DescribeDomainRecordsRequest::getDirection()const void DescribeDomainRecordsRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); +} + +std::string DescribeDomainRecordsRequest::getStatus()const +{ + return status_; +} + +void DescribeDomainRecordsRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); } diff --git a/alidns/src/model/DescribeDomainRecordsResult.cc b/alidns/src/model/DescribeDomainRecordsResult.cc index b4376a4e1..48cef7c97 100644 --- a/alidns/src/model/DescribeDomainRecordsResult.cc +++ b/alidns/src/model/DescribeDomainRecordsResult.cc @@ -35,10 +35,13 @@ DescribeDomainRecordsResult::~DescribeDomainRecordsResult() void DescribeDomainRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainRecords = value["DomainRecords"]["Record"]; for (auto value : allDomainRecords) diff --git a/alidns/src/model/DescribeDomainStatisticsRequest.cc b/alidns/src/model/DescribeDomainStatisticsRequest.cc new file mode 100644 index 000000000..46396511e --- /dev/null +++ b/alidns/src/model/DescribeDomainStatisticsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainStatisticsRequest; + +DescribeDomainStatisticsRequest::DescribeDomainStatisticsRequest() : + RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainStatistics") +{} + +DescribeDomainStatisticsRequest::~DescribeDomainStatisticsRequest() +{} + +std::string DescribeDomainStatisticsRequest::getEndDate()const +{ + return endDate_; +} + +void DescribeDomainStatisticsRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setCoreParameter("EndDate", endDate); +} + +std::string DescribeDomainStatisticsRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void DescribeDomainStatisticsRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string DescribeDomainStatisticsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDomainStatisticsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDomainStatisticsRequest::getLang()const +{ + return lang_; +} + +void DescribeDomainStatisticsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeDomainStatisticsRequest::getStartDate()const +{ + return startDate_; +} + +void DescribeDomainStatisticsRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setCoreParameter("StartDate", startDate); +} + diff --git a/alidns/src/model/DescribeDomainStatisticsResult.cc b/alidns/src/model/DescribeDomainStatisticsResult.cc new file mode 100644 index 000000000..675811d89 --- /dev/null +++ b/alidns/src/model/DescribeDomainStatisticsResult.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 +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeDomainStatisticsResult::DescribeDomainStatisticsResult() : + ServiceResult() +{} + +DescribeDomainStatisticsResult::DescribeDomainStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainStatisticsResult::~DescribeDomainStatisticsResult() +{} + +void DescribeDomainStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allStatistics = value["Statistics"]["Statistic"]; + for (auto value : allStatistics) + { + Statistic statisticsObject; + if(!value["Timestamp"].isNull()) + statisticsObject.timestamp = std::stol(value["Timestamp"].asString()); + if(!value["Count"].isNull()) + statisticsObject.count = std::stol(value["Count"].asString()); + statistics_.push_back(statisticsObject); + } + +} + +std::vector DescribeDomainStatisticsResult::getStatistics()const +{ + return statistics_; +} + diff --git a/alidns/src/model/DescribeDomainStatisticsSummaryRequest.cc b/alidns/src/model/DescribeDomainStatisticsSummaryRequest.cc new file mode 100644 index 000000000..147254023 --- /dev/null +++ b/alidns/src/model/DescribeDomainStatisticsSummaryRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainStatisticsSummaryRequest; + +DescribeDomainStatisticsSummaryRequest::DescribeDomainStatisticsSummaryRequest() : + RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainStatisticsSummary") +{} + +DescribeDomainStatisticsSummaryRequest::~DescribeDomainStatisticsSummaryRequest() +{} + +std::string DescribeDomainStatisticsSummaryRequest::getEndDate()const +{ + return endDate_; +} + +void DescribeDomainStatisticsSummaryRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setCoreParameter("EndDate", endDate); +} + +std::string DescribeDomainStatisticsSummaryRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void DescribeDomainStatisticsSummaryRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +long DescribeDomainStatisticsSummaryRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDomainStatisticsSummaryRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDomainStatisticsSummaryRequest::getOrderBy()const +{ + return orderBy_; +} + +void DescribeDomainStatisticsSummaryRequest::setOrderBy(const std::string& orderBy) +{ + orderBy_ = orderBy; + setCoreParameter("OrderBy", orderBy); +} + +std::string DescribeDomainStatisticsSummaryRequest::getSearchMode()const +{ + return searchMode_; +} + +void DescribeDomainStatisticsSummaryRequest::setSearchMode(const std::string& searchMode) +{ + searchMode_ = searchMode; + setCoreParameter("SearchMode", searchMode); +} + +long DescribeDomainStatisticsSummaryRequest::getThreshold()const +{ + return threshold_; +} + +void DescribeDomainStatisticsSummaryRequest::setThreshold(long threshold) +{ + threshold_ = threshold; + setCoreParameter("Threshold", std::to_string(threshold)); +} + +std::string DescribeDomainStatisticsSummaryRequest::getLang()const +{ + return lang_; +} + +void DescribeDomainStatisticsSummaryRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeDomainStatisticsSummaryRequest::getStartDate()const +{ + return startDate_; +} + +void DescribeDomainStatisticsSummaryRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setCoreParameter("StartDate", startDate); +} + +std::string DescribeDomainStatisticsSummaryRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeDomainStatisticsSummaryRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setCoreParameter("Keyword", keyword); +} + +long DescribeDomainStatisticsSummaryRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDomainStatisticsSummaryRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDomainStatisticsSummaryRequest::getDirection()const +{ + return direction_; +} + +void DescribeDomainStatisticsSummaryRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setCoreParameter("Direction", direction); +} + diff --git a/alidns/src/model/DescribeDomainStatisticsSummaryResult.cc b/alidns/src/model/DescribeDomainStatisticsSummaryResult.cc new file mode 100644 index 000000000..88a0cd6ad --- /dev/null +++ b/alidns/src/model/DescribeDomainStatisticsSummaryResult.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::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeDomainStatisticsSummaryResult::DescribeDomainStatisticsSummaryResult() : + ServiceResult() +{} + +DescribeDomainStatisticsSummaryResult::DescribeDomainStatisticsSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainStatisticsSummaryResult::~DescribeDomainStatisticsSummaryResult() +{} + +void DescribeDomainStatisticsSummaryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allStatistics = value["Statistics"]["Statistic"]; + for (auto value : allStatistics) + { + Statistic statisticsObject; + if(!value["DomainName"].isNull()) + statisticsObject.domainName = value["DomainName"].asString(); + if(!value["Count"].isNull()) + statisticsObject.count = std::stol(value["Count"].asString()); + statistics_.push_back(statisticsObject); + } + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeDomainStatisticsSummaryResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDomainStatisticsSummaryResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeDomainStatisticsSummaryResult::getTotalPages()const +{ + return totalPages_; +} + +int DescribeDomainStatisticsSummaryResult::getTotalItems()const +{ + return totalItems_; +} + +std::vector DescribeDomainStatisticsSummaryResult::getStatistics()const +{ + return statistics_; +} + diff --git a/alidns/src/model/DescribeDomainsRequest.cc b/alidns/src/model/DescribeDomainsRequest.cc index 4c3abf649..d4c5f349e 100644 --- a/alidns/src/model/DescribeDomainsRequest.cc +++ b/alidns/src/model/DescribeDomainsRequest.cc @@ -25,6 +25,17 @@ DescribeDomainsRequest::DescribeDomainsRequest() : DescribeDomainsRequest::~DescribeDomainsRequest() {} +std::string DescribeDomainsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeDomainsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + std::string DescribeDomainsRequest::getGroupId()const { return groupId_; @@ -33,7 +44,7 @@ std::string DescribeDomainsRequest::getGroupId()const void DescribeDomainsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DescribeDomainsRequest::getUserClientIp()const @@ -44,7 +55,7 @@ std::string DescribeDomainsRequest::getUserClientIp()const void DescribeDomainsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long DescribeDomainsRequest::getPageSize()const @@ -55,7 +66,7 @@ long DescribeDomainsRequest::getPageSize()const void DescribeDomainsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDomainsRequest::getSearchMode()const @@ -66,7 +77,7 @@ std::string DescribeDomainsRequest::getSearchMode()const void DescribeDomainsRequest::setSearchMode(const std::string& searchMode) { searchMode_ = searchMode; - setParameter("SearchMode", searchMode); + setCoreParameter("SearchMode", searchMode); } std::string DescribeDomainsRequest::getLang()const @@ -77,7 +88,7 @@ std::string DescribeDomainsRequest::getLang()const void DescribeDomainsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeDomainsRequest::getKeyWord()const @@ -88,7 +99,7 @@ std::string DescribeDomainsRequest::getKeyWord()const void DescribeDomainsRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } long DescribeDomainsRequest::getPageNumber()const @@ -99,6 +110,6 @@ long DescribeDomainsRequest::getPageNumber()const void DescribeDomainsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/alidns/src/model/DescribeDomainsResult.cc b/alidns/src/model/DescribeDomainsResult.cc index 59e942ac6..77ea7da58 100644 --- a/alidns/src/model/DescribeDomainsResult.cc +++ b/alidns/src/model/DescribeDomainsResult.cc @@ -35,10 +35,13 @@ DescribeDomainsResult::~DescribeDomainsResult() void DescribeDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["Domain"]; for (auto value : allDomains) diff --git a/alidns/src/model/DescribeGtmAccessStrategiesRequest.cc b/alidns/src/model/DescribeGtmAccessStrategiesRequest.cc index 0d5f4abb7..2cbcf1174 100644 --- a/alidns/src/model/DescribeGtmAccessStrategiesRequest.cc +++ b/alidns/src/model/DescribeGtmAccessStrategiesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmAccessStrategiesRequest::getInstanceId()const void DescribeGtmAccessStrategiesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeGtmAccessStrategiesRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeGtmAccessStrategiesRequest::getUserClientIp()const void DescribeGtmAccessStrategiesRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int DescribeGtmAccessStrategiesRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeGtmAccessStrategiesRequest::getPageSize()const void DescribeGtmAccessStrategiesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeGtmAccessStrategiesRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeGtmAccessStrategiesRequest::getLang()const void DescribeGtmAccessStrategiesRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int DescribeGtmAccessStrategiesRequest::getPageNumber()const @@ -77,6 +77,6 @@ int DescribeGtmAccessStrategiesRequest::getPageNumber()const void DescribeGtmAccessStrategiesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/alidns/src/model/DescribeGtmAccessStrategiesResult.cc b/alidns/src/model/DescribeGtmAccessStrategiesResult.cc index 5d4d0ac90..207b798d9 100644 --- a/alidns/src/model/DescribeGtmAccessStrategiesResult.cc +++ b/alidns/src/model/DescribeGtmAccessStrategiesResult.cc @@ -35,10 +35,13 @@ DescribeGtmAccessStrategiesResult::~DescribeGtmAccessStrategiesResult() void DescribeGtmAccessStrategiesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStrategies = value["Strategies"]["Strategy"]; for (auto value : allStrategies) diff --git a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc index 799ff3b86..c2df6f5b7 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmAccessStrategyAvailableConfigRequest::getInstanceId()cons void DescribeGtmAccessStrategyAvailableConfigRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeGtmAccessStrategyAvailableConfigRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeGtmAccessStrategyAvailableConfigRequest::getUserClientIp()co void DescribeGtmAccessStrategyAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmAccessStrategyAvailableConfigRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeGtmAccessStrategyAvailableConfigRequest::getLang()const void DescribeGtmAccessStrategyAvailableConfigRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc index 0ba177e92..3cfa167c0 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc @@ -35,10 +35,13 @@ DescribeGtmAccessStrategyAvailableConfigResult::~DescribeGtmAccessStrategyAvaila void DescribeGtmAccessStrategyAvailableConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAddrPools = value["AddrPools"]["AddrPool"]; for (auto value : allAddrPools) diff --git a/alidns/src/model/DescribeGtmAccessStrategyRequest.cc b/alidns/src/model/DescribeGtmAccessStrategyRequest.cc index b23c06de4..c38d6270f 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyRequest.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmAccessStrategyRequest::getUserClientIp()const void DescribeGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmAccessStrategyRequest::getStrategyId()const @@ -44,7 +44,7 @@ std::string DescribeGtmAccessStrategyRequest::getStrategyId()const void DescribeGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) { strategyId_ = strategyId; - setParameter("StrategyId", strategyId); + setCoreParameter("StrategyId", strategyId); } std::string DescribeGtmAccessStrategyRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeGtmAccessStrategyRequest::getLang()const void DescribeGtmAccessStrategyRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmAccessStrategyResult.cc b/alidns/src/model/DescribeGtmAccessStrategyResult.cc index d1dfb82c4..591bce7ae 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyResult.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyResult.cc @@ -35,10 +35,13 @@ DescribeGtmAccessStrategyResult::~DescribeGtmAccessStrategyResult() void DescribeGtmAccessStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLines = value["Lines"]["Line"]; for (auto value : allLines) diff --git a/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.cc b/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.cc index e45f1d084..12a4c4ef4 100644 --- a/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.cc +++ b/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmAvailableAlertGroupRequest::getUserClientIp()const void DescribeGtmAvailableAlertGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmAvailableAlertGroupRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeGtmAvailableAlertGroupRequest::getLang()const void DescribeGtmAvailableAlertGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmAvailableAlertGroupResult.cc b/alidns/src/model/DescribeGtmAvailableAlertGroupResult.cc index 8fcec9a22..2307423c2 100644 --- a/alidns/src/model/DescribeGtmAvailableAlertGroupResult.cc +++ b/alidns/src/model/DescribeGtmAvailableAlertGroupResult.cc @@ -35,10 +35,13 @@ DescribeGtmAvailableAlertGroupResult::~DescribeGtmAvailableAlertGroupResult() void DescribeGtmAvailableAlertGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AvailableAlertGroup"].isNull()) availableAlertGroup_ = value["AvailableAlertGroup"].asString(); diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.cc index deba9bb7c..10536c5be 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmInstanceAddressPoolRequest::getAddrPoolId()const void DescribeGtmInstanceAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) { addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); + setCoreParameter("AddrPoolId", addrPoolId); } std::string DescribeGtmInstanceAddressPoolRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeGtmInstanceAddressPoolRequest::getUserClientIp()const void DescribeGtmInstanceAddressPoolRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmInstanceAddressPoolRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeGtmInstanceAddressPoolRequest::getLang()const void DescribeGtmInstanceAddressPoolRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc index baa76d61f..47c6c604f 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc @@ -35,10 +35,13 @@ DescribeGtmInstanceAddressPoolResult::~DescribeGtmInstanceAddressPoolResult() void DescribeGtmInstanceAddressPoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAddrs = value["Addrs"]["Addr"]; for (auto value : allAddrs) diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.cc index 87ea8177b..bfc32c8ba 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmInstanceAddressPoolsRequest::getInstanceId()const void DescribeGtmInstanceAddressPoolsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeGtmInstanceAddressPoolsRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeGtmInstanceAddressPoolsRequest::getUserClientIp()const void DescribeGtmInstanceAddressPoolsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int DescribeGtmInstanceAddressPoolsRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeGtmInstanceAddressPoolsRequest::getPageSize()const void DescribeGtmInstanceAddressPoolsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeGtmInstanceAddressPoolsRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeGtmInstanceAddressPoolsRequest::getLang()const void DescribeGtmInstanceAddressPoolsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int DescribeGtmInstanceAddressPoolsRequest::getPageNumber()const @@ -77,6 +77,6 @@ int DescribeGtmInstanceAddressPoolsRequest::getPageNumber()const void DescribeGtmInstanceAddressPoolsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc index a09db650a..452bc58f8 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc @@ -35,10 +35,13 @@ DescribeGtmInstanceAddressPoolsResult::~DescribeGtmInstanceAddressPoolsResult() void DescribeGtmInstanceAddressPoolsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAddrPools = value["AddrPools"]["AddrPool"]; for (auto value : allAddrPools) diff --git a/alidns/src/model/DescribeGtmInstanceRequest.cc b/alidns/src/model/DescribeGtmInstanceRequest.cc index 270866d82..44d2802aa 100644 --- a/alidns/src/model/DescribeGtmInstanceRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmInstanceRequest::getInstanceId()const void DescribeGtmInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeGtmInstanceRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeGtmInstanceRequest::getUserClientIp()const void DescribeGtmInstanceRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmInstanceRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeGtmInstanceRequest::getLang()const void DescribeGtmInstanceRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmInstanceResult.cc b/alidns/src/model/DescribeGtmInstanceResult.cc index 7ddf04b13..496b28242 100644 --- a/alidns/src/model/DescribeGtmInstanceResult.cc +++ b/alidns/src/model/DescribeGtmInstanceResult.cc @@ -35,10 +35,13 @@ DescribeGtmInstanceResult::~DescribeGtmInstanceResult() void DescribeGtmInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); @@ -64,19 +67,11 @@ void DescribeGtmInstanceResult::parse(const std::string &payload) createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); if(!value["AlertGroup"].isNull()) alertGroup_ = value["AlertGroup"].asString(); + if(!value["CnameMode"].isNull()) + cnameMode_ = value["CnameMode"].asString(); } -std::string DescribeGtmInstanceResult::getInstanceName()const -{ - return instanceName_; -} - -std::string DescribeGtmInstanceResult::getVersionCode()const -{ - return versionCode_; -} - long DescribeGtmInstanceResult::getExpireTimestamp()const { return expireTimestamp_; @@ -87,11 +82,6 @@ std::string DescribeGtmInstanceResult::getUserDomainName()const return userDomainName_; } -std::string DescribeGtmInstanceResult::getAlertGroup()const -{ - return alertGroup_; -} - std::string DescribeGtmInstanceResult::getLbaStrategy()const { return lbaStrategy_; @@ -107,9 +97,9 @@ std::string DescribeGtmInstanceResult::getCreateTime()const return createTime_; } -std::string DescribeGtmInstanceResult::getExpireTime()const +std::string DescribeGtmInstanceResult::getCnameMode()const { - return expireTime_; + return cnameMode_; } std::string DescribeGtmInstanceResult::getCname()const @@ -122,6 +112,26 @@ int DescribeGtmInstanceResult::getTtl()const return ttl_; } +std::string DescribeGtmInstanceResult::getInstanceName()const +{ + return instanceName_; +} + +std::string DescribeGtmInstanceResult::getVersionCode()const +{ + return versionCode_; +} + +std::string DescribeGtmInstanceResult::getAlertGroup()const +{ + return alertGroup_; +} + +std::string DescribeGtmInstanceResult::getExpireTime()const +{ + return expireTime_; +} + long DescribeGtmInstanceResult::getCreateTimestamp()const { return createTimestamp_; diff --git a/alidns/src/model/DescribeGtmInstanceStatusRequest.cc b/alidns/src/model/DescribeGtmInstanceStatusRequest.cc index dd68335cb..07b93bbed 100644 --- a/alidns/src/model/DescribeGtmInstanceStatusRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmInstanceStatusRequest::getInstanceId()const void DescribeGtmInstanceStatusRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeGtmInstanceStatusRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeGtmInstanceStatusRequest::getUserClientIp()const void DescribeGtmInstanceStatusRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmInstanceStatusRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeGtmInstanceStatusRequest::getLang()const void DescribeGtmInstanceStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmInstanceStatusResult.cc b/alidns/src/model/DescribeGtmInstanceStatusResult.cc index 15e2e66ab..11a9edbb9 100644 --- a/alidns/src/model/DescribeGtmInstanceStatusResult.cc +++ b/alidns/src/model/DescribeGtmInstanceStatusResult.cc @@ -35,10 +35,13 @@ DescribeGtmInstanceStatusResult::~DescribeGtmInstanceStatusResult() void DescribeGtmInstanceStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AccessStatus"].isNull()) accessStatus_ = value["AccessStatus"].asString(); diff --git a/alidns/src/model/DescribeGtmInstanceSystemCnameRequest.cc b/alidns/src/model/DescribeGtmInstanceSystemCnameRequest.cc new file mode 100644 index 000000000..47c648f3d --- /dev/null +++ b/alidns/src/model/DescribeGtmInstanceSystemCnameRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmInstanceSystemCnameRequest; + +DescribeGtmInstanceSystemCnameRequest::DescribeGtmInstanceSystemCnameRequest() : + RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceSystemCname") +{} + +DescribeGtmInstanceSystemCnameRequest::~DescribeGtmInstanceSystemCnameRequest() +{} + +std::string DescribeGtmInstanceSystemCnameRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeGtmInstanceSystemCnameRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeGtmInstanceSystemCnameRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void DescribeGtmInstanceSystemCnameRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string DescribeGtmInstanceSystemCnameRequest::getLang()const +{ + return lang_; +} + +void DescribeGtmInstanceSystemCnameRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/alidns/src/model/DescribeGtmInstanceSystemCnameResult.cc b/alidns/src/model/DescribeGtmInstanceSystemCnameResult.cc new file mode 100644 index 000000000..7294aefdb --- /dev/null +++ b/alidns/src/model/DescribeGtmInstanceSystemCnameResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeGtmInstanceSystemCnameResult::DescribeGtmInstanceSystemCnameResult() : + ServiceResult() +{} + +DescribeGtmInstanceSystemCnameResult::DescribeGtmInstanceSystemCnameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGtmInstanceSystemCnameResult::~DescribeGtmInstanceSystemCnameResult() +{} + +void DescribeGtmInstanceSystemCnameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["SystemCname"].isNull()) + systemCname_ = value["SystemCname"].asString(); + +} + +std::string DescribeGtmInstanceSystemCnameResult::getSystemCname()const +{ + return systemCname_; +} + diff --git a/alidns/src/model/DescribeGtmInstancesRequest.cc b/alidns/src/model/DescribeGtmInstancesRequest.cc index 8fe595093..2b309c4b5 100644 --- a/alidns/src/model/DescribeGtmInstancesRequest.cc +++ b/alidns/src/model/DescribeGtmInstancesRequest.cc @@ -25,6 +25,17 @@ DescribeGtmInstancesRequest::DescribeGtmInstancesRequest() : DescribeGtmInstancesRequest::~DescribeGtmInstancesRequest() {} +std::string DescribeGtmInstancesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeGtmInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + std::string DescribeGtmInstancesRequest::getUserClientIp()const { return userClientIp_; @@ -33,7 +44,7 @@ std::string DescribeGtmInstancesRequest::getUserClientIp()const void DescribeGtmInstancesRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int DescribeGtmInstancesRequest::getPageSize()const @@ -44,7 +55,7 @@ int DescribeGtmInstancesRequest::getPageSize()const void DescribeGtmInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeGtmInstancesRequest::getLang()const @@ -55,7 +66,7 @@ std::string DescribeGtmInstancesRequest::getLang()const void DescribeGtmInstancesRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeGtmInstancesRequest::getKeyword()const @@ -66,7 +77,7 @@ std::string DescribeGtmInstancesRequest::getKeyword()const void DescribeGtmInstancesRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } int DescribeGtmInstancesRequest::getPageNumber()const @@ -77,6 +88,6 @@ int DescribeGtmInstancesRequest::getPageNumber()const void DescribeGtmInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/alidns/src/model/DescribeGtmInstancesResult.cc b/alidns/src/model/DescribeGtmInstancesResult.cc index cce64bdbe..b745e2e3e 100644 --- a/alidns/src/model/DescribeGtmInstancesResult.cc +++ b/alidns/src/model/DescribeGtmInstancesResult.cc @@ -35,10 +35,13 @@ DescribeGtmInstancesResult::~DescribeGtmInstancesResult() void DescribeGtmInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGtmInstances = value["GtmInstances"]["GtmInstance"]; for (auto value : allGtmInstances) @@ -68,6 +71,8 @@ void DescribeGtmInstancesResult::parse(const std::string &payload) gtmInstancesObject.expireTimestamp = std::stol(value["ExpireTimestamp"].asString()); if(!value["AlertGroup"].isNull()) gtmInstancesObject.alertGroup = value["AlertGroup"].asString(); + if(!value["CnameMode"].isNull()) + gtmInstancesObject.cnameMode = value["CnameMode"].asString(); gtmInstances_.push_back(gtmInstancesObject); } if(!value["PageNumber"].isNull()) diff --git a/alidns/src/model/DescribeGtmLogsRequest.cc b/alidns/src/model/DescribeGtmLogsRequest.cc index e35b48269..592bfdb85 100644 --- a/alidns/src/model/DescribeGtmLogsRequest.cc +++ b/alidns/src/model/DescribeGtmLogsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmLogsRequest::getInstanceId()const void DescribeGtmLogsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeGtmLogsRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeGtmLogsRequest::getUserClientIp()const void DescribeGtmLogsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int DescribeGtmLogsRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeGtmLogsRequest::getPageSize()const void DescribeGtmLogsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeGtmLogsRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeGtmLogsRequest::getLang()const void DescribeGtmLogsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeGtmLogsRequest::getKeyword()const @@ -77,7 +77,7 @@ std::string DescribeGtmLogsRequest::getKeyword()const void DescribeGtmLogsRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } long DescribeGtmLogsRequest::getStartTimestamp()const @@ -88,7 +88,7 @@ long DescribeGtmLogsRequest::getStartTimestamp()const void DescribeGtmLogsRequest::setStartTimestamp(long startTimestamp) { startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); + setCoreParameter("StartTimestamp", std::to_string(startTimestamp)); } int DescribeGtmLogsRequest::getPageNumber()const @@ -99,7 +99,7 @@ int DescribeGtmLogsRequest::getPageNumber()const void DescribeGtmLogsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } long DescribeGtmLogsRequest::getEndTimestamp()const @@ -110,6 +110,6 @@ long DescribeGtmLogsRequest::getEndTimestamp()const void DescribeGtmLogsRequest::setEndTimestamp(long endTimestamp) { endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); + setCoreParameter("EndTimestamp", std::to_string(endTimestamp)); } diff --git a/alidns/src/model/DescribeGtmLogsResult.cc b/alidns/src/model/DescribeGtmLogsResult.cc index fdde7e5c1..b31373bf0 100644 --- a/alidns/src/model/DescribeGtmLogsResult.cc +++ b/alidns/src/model/DescribeGtmLogsResult.cc @@ -35,10 +35,13 @@ DescribeGtmLogsResult::~DescribeGtmLogsResult() void DescribeGtmLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogs = value["Logs"]["Log"]; for (auto value : allLogs) diff --git a/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.cc b/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.cc index f617db627..48b5c866c 100644 --- a/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmMonitorAvailableConfigRequest::getUserClientIp()const void DescribeGtmMonitorAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmMonitorAvailableConfigRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeGtmMonitorAvailableConfigRequest::getLang()const void DescribeGtmMonitorAvailableConfigRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc b/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc index 248bf9376..9cf4335dc 100644 --- a/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc +++ b/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc @@ -35,10 +35,13 @@ DescribeGtmMonitorAvailableConfigResult::~DescribeGtmMonitorAvailableConfigResul void DescribeGtmMonitorAvailableConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIspCityNodes = value["IspCityNodes"]["IspCityNode"]; for (auto value : allIspCityNodes) diff --git a/alidns/src/model/DescribeGtmMonitorConfigRequest.cc b/alidns/src/model/DescribeGtmMonitorConfigRequest.cc index 8f25707b6..3d0a4a3b6 100644 --- a/alidns/src/model/DescribeGtmMonitorConfigRequest.cc +++ b/alidns/src/model/DescribeGtmMonitorConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGtmMonitorConfigRequest::getUserClientIp()const void DescribeGtmMonitorConfigRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeGtmMonitorConfigRequest::getMonitorConfigId()const @@ -44,7 +44,7 @@ std::string DescribeGtmMonitorConfigRequest::getMonitorConfigId()const void DescribeGtmMonitorConfigRequest::setMonitorConfigId(const std::string& monitorConfigId) { monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); + setCoreParameter("MonitorConfigId", monitorConfigId); } std::string DescribeGtmMonitorConfigRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeGtmMonitorConfigRequest::getLang()const void DescribeGtmMonitorConfigRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/DescribeGtmMonitorConfigResult.cc b/alidns/src/model/DescribeGtmMonitorConfigResult.cc index a377aba9b..bcc6452d6 100644 --- a/alidns/src/model/DescribeGtmMonitorConfigResult.cc +++ b/alidns/src/model/DescribeGtmMonitorConfigResult.cc @@ -35,10 +35,13 @@ DescribeGtmMonitorConfigResult::~DescribeGtmMonitorConfigResult() void DescribeGtmMonitorConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIspCityNodes = value["IspCityNodes"]["IspCityNode"]; for (auto value : allIspCityNodes) diff --git a/alidns/src/model/DescribeRecordLogsRequest.cc b/alidns/src/model/DescribeRecordLogsRequest.cc index 2124df7e4..b5efc43d1 100644 --- a/alidns/src/model/DescribeRecordLogsRequest.cc +++ b/alidns/src/model/DescribeRecordLogsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRecordLogsRequest::getEndDate()const void DescribeRecordLogsRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string DescribeRecordLogsRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeRecordLogsRequest::getUserClientIp()const void DescribeRecordLogsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeRecordLogsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeRecordLogsRequest::getDomainName()const void DescribeRecordLogsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeRecordLogsRequest::getPageSize()const @@ -66,7 +66,7 @@ long DescribeRecordLogsRequest::getPageSize()const void DescribeRecordLogsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeRecordLogsRequest::getLang()const @@ -77,7 +77,7 @@ std::string DescribeRecordLogsRequest::getLang()const void DescribeRecordLogsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeRecordLogsRequest::getKeyWord()const @@ -88,7 +88,7 @@ std::string DescribeRecordLogsRequest::getKeyWord()const void DescribeRecordLogsRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } std::string DescribeRecordLogsRequest::getStartDate()const @@ -99,7 +99,7 @@ std::string DescribeRecordLogsRequest::getStartDate()const void DescribeRecordLogsRequest::setStartDate(const std::string& startDate) { startDate_ = startDate; - setParameter("StartDate", startDate); + setCoreParameter("StartDate", startDate); } long DescribeRecordLogsRequest::getPageNumber()const @@ -110,7 +110,7 @@ long DescribeRecordLogsRequest::getPageNumber()const void DescribeRecordLogsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeRecordLogsRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string DescribeRecordLogsRequest::getAccessKeyId()const void DescribeRecordLogsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeRecordLogsResult.cc b/alidns/src/model/DescribeRecordLogsResult.cc index c7a859fc0..d6e397cd8 100644 --- a/alidns/src/model/DescribeRecordLogsResult.cc +++ b/alidns/src/model/DescribeRecordLogsResult.cc @@ -35,10 +35,13 @@ DescribeRecordLogsResult::~DescribeRecordLogsResult() void DescribeRecordLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordLogs = value["RecordLogs"]["RecordLog"]; for (auto value : allRecordLogs) diff --git a/alidns/src/model/DescribeRecordStatisticsRequest.cc b/alidns/src/model/DescribeRecordStatisticsRequest.cc new file mode 100644 index 000000000..94877b814 --- /dev/null +++ b/alidns/src/model/DescribeRecordStatisticsRequest.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 + +using AlibabaCloud::Alidns::Model::DescribeRecordStatisticsRequest; + +DescribeRecordStatisticsRequest::DescribeRecordStatisticsRequest() : + RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordStatistics") +{} + +DescribeRecordStatisticsRequest::~DescribeRecordStatisticsRequest() +{} + +std::string DescribeRecordStatisticsRequest::getRr()const +{ + return rr_; +} + +void DescribeRecordStatisticsRequest::setRr(const std::string& rr) +{ + rr_ = rr; + setCoreParameter("Rr", rr); +} + +std::string DescribeRecordStatisticsRequest::getEndDate()const +{ + return endDate_; +} + +void DescribeRecordStatisticsRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setCoreParameter("EndDate", endDate); +} + +std::string DescribeRecordStatisticsRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void DescribeRecordStatisticsRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string DescribeRecordStatisticsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeRecordStatisticsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeRecordStatisticsRequest::getLang()const +{ + return lang_; +} + +void DescribeRecordStatisticsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeRecordStatisticsRequest::getStartDate()const +{ + return startDate_; +} + +void DescribeRecordStatisticsRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setCoreParameter("StartDate", startDate); +} + diff --git a/alidns/src/model/DescribeRecordStatisticsResult.cc b/alidns/src/model/DescribeRecordStatisticsResult.cc new file mode 100644 index 000000000..22b58baff --- /dev/null +++ b/alidns/src/model/DescribeRecordStatisticsResult.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 +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeRecordStatisticsResult::DescribeRecordStatisticsResult() : + ServiceResult() +{} + +DescribeRecordStatisticsResult::DescribeRecordStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecordStatisticsResult::~DescribeRecordStatisticsResult() +{} + +void DescribeRecordStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allStatistics = value["Statistics"]["Statistic"]; + for (auto value : allStatistics) + { + Statistic statisticsObject; + if(!value["Timestamp"].isNull()) + statisticsObject.timestamp = std::stol(value["Timestamp"].asString()); + if(!value["Count"].isNull()) + statisticsObject.count = std::stol(value["Count"].asString()); + statistics_.push_back(statisticsObject); + } + +} + +std::vector DescribeRecordStatisticsResult::getStatistics()const +{ + return statistics_; +} + diff --git a/alidns/src/model/DescribeRecordStatisticsSummaryRequest.cc b/alidns/src/model/DescribeRecordStatisticsSummaryRequest.cc new file mode 100644 index 000000000..ac5fa424f --- /dev/null +++ b/alidns/src/model/DescribeRecordStatisticsSummaryRequest.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 + +using AlibabaCloud::Alidns::Model::DescribeRecordStatisticsSummaryRequest; + +DescribeRecordStatisticsSummaryRequest::DescribeRecordStatisticsSummaryRequest() : + RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordStatisticsSummary") +{} + +DescribeRecordStatisticsSummaryRequest::~DescribeRecordStatisticsSummaryRequest() +{} + +std::string DescribeRecordStatisticsSummaryRequest::getEndDate()const +{ + return endDate_; +} + +void DescribeRecordStatisticsSummaryRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setCoreParameter("EndDate", endDate); +} + +std::string DescribeRecordStatisticsSummaryRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void DescribeRecordStatisticsSummaryRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +long DescribeRecordStatisticsSummaryRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRecordStatisticsSummaryRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRecordStatisticsSummaryRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeRecordStatisticsSummaryRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeRecordStatisticsSummaryRequest::getOrderBy()const +{ + return orderBy_; +} + +void DescribeRecordStatisticsSummaryRequest::setOrderBy(const std::string& orderBy) +{ + orderBy_ = orderBy; + setCoreParameter("OrderBy", orderBy); +} + +std::string DescribeRecordStatisticsSummaryRequest::getSearchMode()const +{ + return searchMode_; +} + +void DescribeRecordStatisticsSummaryRequest::setSearchMode(const std::string& searchMode) +{ + searchMode_ = searchMode; + setCoreParameter("SearchMode", searchMode); +} + +long DescribeRecordStatisticsSummaryRequest::getThreshold()const +{ + return threshold_; +} + +void DescribeRecordStatisticsSummaryRequest::setThreshold(long threshold) +{ + threshold_ = threshold; + setCoreParameter("Threshold", std::to_string(threshold)); +} + +std::string DescribeRecordStatisticsSummaryRequest::getLang()const +{ + return lang_; +} + +void DescribeRecordStatisticsSummaryRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeRecordStatisticsSummaryRequest::getStartDate()const +{ + return startDate_; +} + +void DescribeRecordStatisticsSummaryRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setCoreParameter("StartDate", startDate); +} + +std::string DescribeRecordStatisticsSummaryRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeRecordStatisticsSummaryRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setCoreParameter("Keyword", keyword); +} + +long DescribeRecordStatisticsSummaryRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRecordStatisticsSummaryRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRecordStatisticsSummaryRequest::getDirection()const +{ + return direction_; +} + +void DescribeRecordStatisticsSummaryRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setCoreParameter("Direction", direction); +} + diff --git a/alidns/src/model/DescribeRecordStatisticsSummaryResult.cc b/alidns/src/model/DescribeRecordStatisticsSummaryResult.cc new file mode 100644 index 000000000..05262181d --- /dev/null +++ b/alidns/src/model/DescribeRecordStatisticsSummaryResult.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::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeRecordStatisticsSummaryResult::DescribeRecordStatisticsSummaryResult() : + ServiceResult() +{} + +DescribeRecordStatisticsSummaryResult::DescribeRecordStatisticsSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecordStatisticsSummaryResult::~DescribeRecordStatisticsSummaryResult() +{} + +void DescribeRecordStatisticsSummaryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allStatistics = value["Statistics"]["Statistic"]; + for (auto value : allStatistics) + { + Statistic statisticsObject; + if(!value["SubDomain"].isNull()) + statisticsObject.subDomain = value["SubDomain"].asString(); + if(!value["Count"].isNull()) + statisticsObject.count = std::stol(value["Count"].asString()); + statistics_.push_back(statisticsObject); + } + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeRecordStatisticsSummaryResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeRecordStatisticsSummaryResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeRecordStatisticsSummaryResult::getTotalPages()const +{ + return totalPages_; +} + +int DescribeRecordStatisticsSummaryResult::getTotalItems()const +{ + return totalItems_; +} + +std::vector DescribeRecordStatisticsSummaryResult::getStatistics()const +{ + return statistics_; +} + diff --git a/alidns/src/model/DescribeSubDomainRecordsRequest.cc b/alidns/src/model/DescribeSubDomainRecordsRequest.cc index 74ab7fdcd..a3fb75905 100644 --- a/alidns/src/model/DescribeSubDomainRecordsRequest.cc +++ b/alidns/src/model/DescribeSubDomainRecordsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSubDomainRecordsRequest::getLine()const void DescribeSubDomainRecordsRequest::setLine(const std::string& line) { line_ = line; - setParameter("Line", line); + setCoreParameter("Line", line); } std::string DescribeSubDomainRecordsRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeSubDomainRecordsRequest::getUserClientIp()const void DescribeSubDomainRecordsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long DescribeSubDomainRecordsRequest::getPageSize()const @@ -55,7 +55,18 @@ long DescribeSubDomainRecordsRequest::getPageSize()const void DescribeSubDomainRecordsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSubDomainRecordsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeSubDomainRecordsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); } std::string DescribeSubDomainRecordsRequest::getSubDomain()const @@ -66,7 +77,7 @@ std::string DescribeSubDomainRecordsRequest::getSubDomain()const void DescribeSubDomainRecordsRequest::setSubDomain(const std::string& subDomain) { subDomain_ = subDomain; - setParameter("SubDomain", subDomain); + setCoreParameter("SubDomain", subDomain); } std::string DescribeSubDomainRecordsRequest::getLang()const @@ -77,7 +88,7 @@ std::string DescribeSubDomainRecordsRequest::getLang()const void DescribeSubDomainRecordsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeSubDomainRecordsRequest::getType()const @@ -88,7 +99,7 @@ std::string DescribeSubDomainRecordsRequest::getType()const void DescribeSubDomainRecordsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } long DescribeSubDomainRecordsRequest::getPageNumber()const @@ -99,7 +110,7 @@ long DescribeSubDomainRecordsRequest::getPageNumber()const void DescribeSubDomainRecordsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeSubDomainRecordsRequest::getAccessKeyId()const @@ -110,6 +121,6 @@ std::string DescribeSubDomainRecordsRequest::getAccessKeyId()const void DescribeSubDomainRecordsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeSubDomainRecordsResult.cc b/alidns/src/model/DescribeSubDomainRecordsResult.cc index 37970c161..2f0b60787 100644 --- a/alidns/src/model/DescribeSubDomainRecordsResult.cc +++ b/alidns/src/model/DescribeSubDomainRecordsResult.cc @@ -35,10 +35,13 @@ DescribeSubDomainRecordsResult::~DescribeSubDomainRecordsResult() void DescribeSubDomainRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainRecords = value["DomainRecords"]["Record"]; for (auto value : allDomainRecords) diff --git a/alidns/src/model/DescribeSupportLinesRequest.cc b/alidns/src/model/DescribeSupportLinesRequest.cc index 6cf92db47..48c36615d 100644 --- a/alidns/src/model/DescribeSupportLinesRequest.cc +++ b/alidns/src/model/DescribeSupportLinesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSupportLinesRequest::getUserClientIp()const void DescribeSupportLinesRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeSupportLinesRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeSupportLinesRequest::getDomainName()const void DescribeSupportLinesRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeSupportLinesRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeSupportLinesRequest::getLang()const void DescribeSupportLinesRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeSupportLinesRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeSupportLinesRequest::getAccessKeyId()const void DescribeSupportLinesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/DescribeSupportLinesResult.cc b/alidns/src/model/DescribeSupportLinesResult.cc index f4b8f7c25..a138b0d7a 100644 --- a/alidns/src/model/DescribeSupportLinesResult.cc +++ b/alidns/src/model/DescribeSupportLinesResult.cc @@ -35,10 +35,13 @@ DescribeSupportLinesResult::~DescribeSupportLinesResult() void DescribeSupportLinesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordLines = value["RecordLines"]["RecordLine"]; for (auto value : allRecordLines) diff --git a/alidns/src/model/GetMainDomainNameRequest.cc b/alidns/src/model/GetMainDomainNameRequest.cc index 2ee093048..04d7a9523 100644 --- a/alidns/src/model/GetMainDomainNameRequest.cc +++ b/alidns/src/model/GetMainDomainNameRequest.cc @@ -33,7 +33,7 @@ std::string GetMainDomainNameRequest::getInputString()const void GetMainDomainNameRequest::setInputString(const std::string& inputString) { inputString_ = inputString; - setParameter("InputString", inputString); + setCoreParameter("InputString", inputString); } std::string GetMainDomainNameRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string GetMainDomainNameRequest::getUserClientIp()const void GetMainDomainNameRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string GetMainDomainNameRequest::getLang()const @@ -55,7 +55,7 @@ std::string GetMainDomainNameRequest::getLang()const void GetMainDomainNameRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string GetMainDomainNameRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string GetMainDomainNameRequest::getAccessKeyId()const void GetMainDomainNameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/GetMainDomainNameResult.cc b/alidns/src/model/GetMainDomainNameResult.cc index 22b15c946..d0762cd85 100644 --- a/alidns/src/model/GetMainDomainNameResult.cc +++ b/alidns/src/model/GetMainDomainNameResult.cc @@ -35,10 +35,13 @@ GetMainDomainNameResult::~GetMainDomainNameResult() void GetMainDomainNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); diff --git a/alidns/src/model/ModifyHichinaDomainDNSRequest.cc b/alidns/src/model/ModifyHichinaDomainDNSRequest.cc index 75f0a8c5b..28dd6c036 100644 --- a/alidns/src/model/ModifyHichinaDomainDNSRequest.cc +++ b/alidns/src/model/ModifyHichinaDomainDNSRequest.cc @@ -33,7 +33,7 @@ std::string ModifyHichinaDomainDNSRequest::getUserClientIp()const void ModifyHichinaDomainDNSRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string ModifyHichinaDomainDNSRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string ModifyHichinaDomainDNSRequest::getDomainName()const void ModifyHichinaDomainDNSRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string ModifyHichinaDomainDNSRequest::getLang()const @@ -55,7 +55,7 @@ std::string ModifyHichinaDomainDNSRequest::getLang()const void ModifyHichinaDomainDNSRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string ModifyHichinaDomainDNSRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ModifyHichinaDomainDNSRequest::getAccessKeyId()const void ModifyHichinaDomainDNSRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/ModifyHichinaDomainDNSResult.cc b/alidns/src/model/ModifyHichinaDomainDNSResult.cc index a13d6b129..c669b6682 100644 --- a/alidns/src/model/ModifyHichinaDomainDNSResult.cc +++ b/alidns/src/model/ModifyHichinaDomainDNSResult.cc @@ -35,10 +35,13 @@ ModifyHichinaDomainDNSResult::~ModifyHichinaDomainDNSResult() void ModifyHichinaDomainDNSResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOriginalDnsServers = value["OriginalDnsServers"]["DnsServer"]; for (const auto &item : allOriginalDnsServers) diff --git a/alidns/src/model/OperateBatchDomainRequest.cc b/alidns/src/model/OperateBatchDomainRequest.cc index a43b63388..fd2fb84f6 100644 --- a/alidns/src/model/OperateBatchDomainRequest.cc +++ b/alidns/src/model/OperateBatchDomainRequest.cc @@ -33,7 +33,7 @@ std::string OperateBatchDomainRequest::getUserClientIp()const void OperateBatchDomainRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::vector OperateBatchDomainRequest::getDomainRecordInfo()const @@ -48,13 +48,16 @@ void OperateBatchDomainRequest::setDomainRecordInfo(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); diff --git a/alidns/src/model/QueryCreateInstancePriceRequest.cc b/alidns/src/model/QueryCreateInstancePriceRequest.cc index 095137ce7..d990afb12 100644 --- a/alidns/src/model/QueryCreateInstancePriceRequest.cc +++ b/alidns/src/model/QueryCreateInstancePriceRequest.cc @@ -33,7 +33,7 @@ int QueryCreateInstancePriceRequest::getMonth()const void QueryCreateInstancePriceRequest::setMonth(int month) { month_ = month; - setParameter("Month", std::to_string(month)); + setCoreParameter("Month", std::to_string(month)); } std::string QueryCreateInstancePriceRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryCreateInstancePriceRequest::getUserClientIp()const void QueryCreateInstancePriceRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryCreateInstancePriceRequest::getLang()const @@ -55,7 +55,7 @@ std::string QueryCreateInstancePriceRequest::getLang()const void QueryCreateInstancePriceRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string QueryCreateInstancePriceRequest::getInstanceVersion()const @@ -66,7 +66,7 @@ std::string QueryCreateInstancePriceRequest::getInstanceVersion()const void QueryCreateInstancePriceRequest::setInstanceVersion(const std::string& instanceVersion) { instanceVersion_ = instanceVersion; - setParameter("InstanceVersion", instanceVersion); + setCoreParameter("InstanceVersion", instanceVersion); } long QueryCreateInstancePriceRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryCreateInstancePriceRequest::getOwnerId()const void QueryCreateInstancePriceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryCreateInstancePriceRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryCreateInstancePriceRequest::getAccessKeyId()const void QueryCreateInstancePriceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/QueryCreateInstancePriceResult.cc b/alidns/src/model/QueryCreateInstancePriceResult.cc index fcc8c5b7c..93696a5b1 100644 --- a/alidns/src/model/QueryCreateInstancePriceResult.cc +++ b/alidns/src/model/QueryCreateInstancePriceResult.cc @@ -35,10 +35,13 @@ QueryCreateInstancePriceResult::~QueryCreateInstancePriceResult() void QueryCreateInstancePriceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) diff --git a/alidns/src/model/SetDNSSLBStatusRequest.cc b/alidns/src/model/SetDNSSLBStatusRequest.cc index 8a79019ef..c2c78450f 100644 --- a/alidns/src/model/SetDNSSLBStatusRequest.cc +++ b/alidns/src/model/SetDNSSLBStatusRequest.cc @@ -33,7 +33,18 @@ std::string SetDNSSLBStatusRequest::getUserClientIp()const void SetDNSSLBStatusRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); +} + +std::string SetDNSSLBStatusRequest::getDomainName()const +{ + return domainName_; +} + +void SetDNSSLBStatusRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); } std::string SetDNSSLBStatusRequest::getSubDomain()const @@ -44,7 +55,7 @@ std::string SetDNSSLBStatusRequest::getSubDomain()const void SetDNSSLBStatusRequest::setSubDomain(const std::string& subDomain) { subDomain_ = subDomain; - setParameter("SubDomain", subDomain); + setCoreParameter("SubDomain", subDomain); } std::string SetDNSSLBStatusRequest::getLang()const @@ -55,7 +66,7 @@ std::string SetDNSSLBStatusRequest::getLang()const void SetDNSSLBStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SetDNSSLBStatusRequest::getOpen()const @@ -66,7 +77,7 @@ bool SetDNSSLBStatusRequest::getOpen()const void SetDNSSLBStatusRequest::setOpen(bool open) { open_ = open; - setParameter("Open", open ? "true" : "false"); + setCoreParameter("Open", open ? "true" : "false"); } std::string SetDNSSLBStatusRequest::getAccessKeyId()const @@ -77,6 +88,6 @@ std::string SetDNSSLBStatusRequest::getAccessKeyId()const void SetDNSSLBStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/SetDNSSLBStatusResult.cc b/alidns/src/model/SetDNSSLBStatusResult.cc index a4c7e279e..db33b0688 100644 --- a/alidns/src/model/SetDNSSLBStatusResult.cc +++ b/alidns/src/model/SetDNSSLBStatusResult.cc @@ -35,10 +35,13 @@ SetDNSSLBStatusResult::~SetDNSSLBStatusResult() void SetDNSSLBStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordCount"].isNull()) recordCount_ = std::stol(value["RecordCount"].asString()); diff --git a/alidns/src/model/SetDomainRecordStatusRequest.cc b/alidns/src/model/SetDomainRecordStatusRequest.cc index fde617682..1fde6566b 100644 --- a/alidns/src/model/SetDomainRecordStatusRequest.cc +++ b/alidns/src/model/SetDomainRecordStatusRequest.cc @@ -33,7 +33,7 @@ std::string SetDomainRecordStatusRequest::getRecordId()const void SetDomainRecordStatusRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string SetDomainRecordStatusRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SetDomainRecordStatusRequest::getUserClientIp()const void SetDomainRecordStatusRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SetDomainRecordStatusRequest::getLang()const @@ -55,7 +55,7 @@ std::string SetDomainRecordStatusRequest::getLang()const void SetDomainRecordStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SetDomainRecordStatusRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string SetDomainRecordStatusRequest::getAccessKeyId()const void SetDomainRecordStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SetDomainRecordStatusRequest::getStatus()const @@ -77,6 +77,6 @@ std::string SetDomainRecordStatusRequest::getStatus()const void SetDomainRecordStatusRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/alidns/src/model/SetDomainRecordStatusResult.cc b/alidns/src/model/SetDomainRecordStatusResult.cc index 7f550d012..8c733e16e 100644 --- a/alidns/src/model/SetDomainRecordStatusResult.cc +++ b/alidns/src/model/SetDomainRecordStatusResult.cc @@ -35,10 +35,13 @@ SetDomainRecordStatusResult::~SetDomainRecordStatusResult() void SetDomainRecordStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = value["RecordId"].asString(); diff --git a/alidns/src/model/SetGtmAccessModeRequest.cc b/alidns/src/model/SetGtmAccessModeRequest.cc index 87323304e..3e7f7778f 100644 --- a/alidns/src/model/SetGtmAccessModeRequest.cc +++ b/alidns/src/model/SetGtmAccessModeRequest.cc @@ -33,7 +33,7 @@ std::string SetGtmAccessModeRequest::getUserClientIp()const void SetGtmAccessModeRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SetGtmAccessModeRequest::getStrategyId()const @@ -44,7 +44,7 @@ std::string SetGtmAccessModeRequest::getStrategyId()const void SetGtmAccessModeRequest::setStrategyId(const std::string& strategyId) { strategyId_ = strategyId; - setParameter("StrategyId", strategyId); + setCoreParameter("StrategyId", strategyId); } std::string SetGtmAccessModeRequest::getLang()const @@ -55,7 +55,7 @@ std::string SetGtmAccessModeRequest::getLang()const void SetGtmAccessModeRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SetGtmAccessModeRequest::getAccessMode()const @@ -66,6 +66,6 @@ std::string SetGtmAccessModeRequest::getAccessMode()const void SetGtmAccessModeRequest::setAccessMode(const std::string& accessMode) { accessMode_ = accessMode; - setParameter("AccessMode", accessMode); + setCoreParameter("AccessMode", accessMode); } diff --git a/alidns/src/model/SetGtmAccessModeResult.cc b/alidns/src/model/SetGtmAccessModeResult.cc index b50d13b72..2026c808c 100644 --- a/alidns/src/model/SetGtmAccessModeResult.cc +++ b/alidns/src/model/SetGtmAccessModeResult.cc @@ -35,10 +35,13 @@ SetGtmAccessModeResult::~SetGtmAccessModeResult() void SetGtmAccessModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alidns/src/model/SetGtmMonitorStatusRequest.cc b/alidns/src/model/SetGtmMonitorStatusRequest.cc index b66c041b8..25395bfbf 100644 --- a/alidns/src/model/SetGtmMonitorStatusRequest.cc +++ b/alidns/src/model/SetGtmMonitorStatusRequest.cc @@ -33,7 +33,7 @@ std::string SetGtmMonitorStatusRequest::getUserClientIp()const void SetGtmMonitorStatusRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SetGtmMonitorStatusRequest::getMonitorConfigId()const @@ -44,7 +44,7 @@ std::string SetGtmMonitorStatusRequest::getMonitorConfigId()const void SetGtmMonitorStatusRequest::setMonitorConfigId(const std::string& monitorConfigId) { monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); + setCoreParameter("MonitorConfigId", monitorConfigId); } std::string SetGtmMonitorStatusRequest::getLang()const @@ -55,7 +55,7 @@ std::string SetGtmMonitorStatusRequest::getLang()const void SetGtmMonitorStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SetGtmMonitorStatusRequest::getStatus()const @@ -66,6 +66,6 @@ std::string SetGtmMonitorStatusRequest::getStatus()const void SetGtmMonitorStatusRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/alidns/src/model/SetGtmMonitorStatusResult.cc b/alidns/src/model/SetGtmMonitorStatusResult.cc index 98a214d99..5efd04315 100644 --- a/alidns/src/model/SetGtmMonitorStatusResult.cc +++ b/alidns/src/model/SetGtmMonitorStatusResult.cc @@ -35,10 +35,13 @@ SetGtmMonitorStatusResult::~SetGtmMonitorStatusResult() void SetGtmMonitorStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alidns/src/model/UpdateDNSSLBWeightRequest.cc b/alidns/src/model/UpdateDNSSLBWeightRequest.cc index 8b40bbc67..4990996d9 100644 --- a/alidns/src/model/UpdateDNSSLBWeightRequest.cc +++ b/alidns/src/model/UpdateDNSSLBWeightRequest.cc @@ -33,7 +33,7 @@ std::string UpdateDNSSLBWeightRequest::getRecordId()const void UpdateDNSSLBWeightRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string UpdateDNSSLBWeightRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string UpdateDNSSLBWeightRequest::getUserClientIp()const void UpdateDNSSLBWeightRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int UpdateDNSSLBWeightRequest::getWeight()const @@ -55,7 +55,7 @@ int UpdateDNSSLBWeightRequest::getWeight()const void UpdateDNSSLBWeightRequest::setWeight(int weight) { weight_ = weight; - setParameter("Weight", std::to_string(weight)); + setCoreParameter("Weight", std::to_string(weight)); } std::string UpdateDNSSLBWeightRequest::getLang()const @@ -66,7 +66,7 @@ std::string UpdateDNSSLBWeightRequest::getLang()const void UpdateDNSSLBWeightRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string UpdateDNSSLBWeightRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string UpdateDNSSLBWeightRequest::getAccessKeyId()const void UpdateDNSSLBWeightRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/UpdateDNSSLBWeightResult.cc b/alidns/src/model/UpdateDNSSLBWeightResult.cc index 871cd9a71..957ef9811 100644 --- a/alidns/src/model/UpdateDNSSLBWeightResult.cc +++ b/alidns/src/model/UpdateDNSSLBWeightResult.cc @@ -35,10 +35,13 @@ UpdateDNSSLBWeightResult::~UpdateDNSSLBWeightResult() void UpdateDNSSLBWeightResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = value["RecordId"].asString(); diff --git a/alidns/src/model/UpdateDomainGroupRequest.cc b/alidns/src/model/UpdateDomainGroupRequest.cc index aa4f78329..492368762 100644 --- a/alidns/src/model/UpdateDomainGroupRequest.cc +++ b/alidns/src/model/UpdateDomainGroupRequest.cc @@ -33,7 +33,7 @@ std::string UpdateDomainGroupRequest::getGroupId()const void UpdateDomainGroupRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string UpdateDomainGroupRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string UpdateDomainGroupRequest::getUserClientIp()const void UpdateDomainGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateDomainGroupRequest::getLang()const @@ -55,7 +55,7 @@ std::string UpdateDomainGroupRequest::getLang()const void UpdateDomainGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string UpdateDomainGroupRequest::getGroupName()const @@ -66,17 +66,6 @@ std::string UpdateDomainGroupRequest::getGroupName()const void UpdateDomainGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); -} - -std::string UpdateDomainGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateDomainGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("GroupName", groupName); } diff --git a/alidns/src/model/UpdateDomainGroupResult.cc b/alidns/src/model/UpdateDomainGroupResult.cc index 5ee58bf64..ced1dbc89 100644 --- a/alidns/src/model/UpdateDomainGroupResult.cc +++ b/alidns/src/model/UpdateDomainGroupResult.cc @@ -35,10 +35,13 @@ UpdateDomainGroupResult::~UpdateDomainGroupResult() void UpdateDomainGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); diff --git a/alidns/src/model/UpdateDomainRecordRequest.cc b/alidns/src/model/UpdateDomainRecordRequest.cc index c8f6c5d4e..ab727d89c 100644 --- a/alidns/src/model/UpdateDomainRecordRequest.cc +++ b/alidns/src/model/UpdateDomainRecordRequest.cc @@ -33,7 +33,7 @@ std::string UpdateDomainRecordRequest::getRecordId()const void UpdateDomainRecordRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string UpdateDomainRecordRequest::getRR()const @@ -44,7 +44,7 @@ std::string UpdateDomainRecordRequest::getRR()const void UpdateDomainRecordRequest::setRR(const std::string& rR) { rR_ = rR; - setParameter("RR", rR); + setCoreParameter("RR", rR); } std::string UpdateDomainRecordRequest::getLine()const @@ -55,7 +55,7 @@ std::string UpdateDomainRecordRequest::getLine()const void UpdateDomainRecordRequest::setLine(const std::string& line) { line_ = line; - setParameter("Line", line); + setCoreParameter("Line", line); } std::string UpdateDomainRecordRequest::getUserClientIp()const @@ -66,7 +66,7 @@ std::string UpdateDomainRecordRequest::getUserClientIp()const void UpdateDomainRecordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateDomainRecordRequest::getLang()const @@ -77,7 +77,7 @@ std::string UpdateDomainRecordRequest::getLang()const void UpdateDomainRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string UpdateDomainRecordRequest::getType()const @@ -88,7 +88,7 @@ std::string UpdateDomainRecordRequest::getType()const void UpdateDomainRecordRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } long UpdateDomainRecordRequest::getPriority()const @@ -99,7 +99,7 @@ long UpdateDomainRecordRequest::getPriority()const void UpdateDomainRecordRequest::setPriority(long priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string UpdateDomainRecordRequest::getValue()const @@ -110,7 +110,7 @@ std::string UpdateDomainRecordRequest::getValue()const void UpdateDomainRecordRequest::setValue(const std::string& value) { value_ = value; - setParameter("Value", value); + setCoreParameter("Value", value); } long UpdateDomainRecordRequest::getTTL()const @@ -121,7 +121,7 @@ long UpdateDomainRecordRequest::getTTL()const void UpdateDomainRecordRequest::setTTL(long tTL) { tTL_ = tTL; - setParameter("TTL", std::to_string(tTL)); + setCoreParameter("TTL", std::to_string(tTL)); } std::string UpdateDomainRecordRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string UpdateDomainRecordRequest::getAccessKeyId()const void UpdateDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/alidns/src/model/UpdateDomainRecordResult.cc b/alidns/src/model/UpdateDomainRecordResult.cc index e0a9d8409..f0215f703 100644 --- a/alidns/src/model/UpdateDomainRecordResult.cc +++ b/alidns/src/model/UpdateDomainRecordResult.cc @@ -35,10 +35,13 @@ UpdateDomainRecordResult::~UpdateDomainRecordResult() void UpdateDomainRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = value["RecordId"].asString(); diff --git a/alidns/src/model/UpdateGtmAccessStrategyRequest.cc b/alidns/src/model/UpdateGtmAccessStrategyRequest.cc index df9c10248..ec462efa7 100644 --- a/alidns/src/model/UpdateGtmAccessStrategyRequest.cc +++ b/alidns/src/model/UpdateGtmAccessStrategyRequest.cc @@ -33,7 +33,7 @@ std::string UpdateGtmAccessStrategyRequest::getStrategyName()const void UpdateGtmAccessStrategyRequest::setStrategyName(const std::string& strategyName) { strategyName_ = strategyName; - setParameter("StrategyName", strategyName); + setCoreParameter("StrategyName", strategyName); } std::string UpdateGtmAccessStrategyRequest::getDefaultAddrPoolId()const @@ -44,7 +44,7 @@ std::string UpdateGtmAccessStrategyRequest::getDefaultAddrPoolId()const void UpdateGtmAccessStrategyRequest::setDefaultAddrPoolId(const std::string& defaultAddrPoolId) { defaultAddrPoolId_ = defaultAddrPoolId; - setParameter("DefaultAddrPoolId", defaultAddrPoolId); + setCoreParameter("DefaultAddrPoolId", defaultAddrPoolId); } std::string UpdateGtmAccessStrategyRequest::getAccessLines()const @@ -55,7 +55,7 @@ std::string UpdateGtmAccessStrategyRequest::getAccessLines()const void UpdateGtmAccessStrategyRequest::setAccessLines(const std::string& accessLines) { accessLines_ = accessLines; - setParameter("AccessLines", accessLines); + setCoreParameter("AccessLines", accessLines); } std::string UpdateGtmAccessStrategyRequest::getFailoverAddrPoolId()const @@ -66,7 +66,7 @@ std::string UpdateGtmAccessStrategyRequest::getFailoverAddrPoolId()const void UpdateGtmAccessStrategyRequest::setFailoverAddrPoolId(const std::string& failoverAddrPoolId) { failoverAddrPoolId_ = failoverAddrPoolId; - setParameter("FailoverAddrPoolId", failoverAddrPoolId); + setCoreParameter("FailoverAddrPoolId", failoverAddrPoolId); } std::string UpdateGtmAccessStrategyRequest::getUserClientIp()const @@ -77,7 +77,7 @@ std::string UpdateGtmAccessStrategyRequest::getUserClientIp()const void UpdateGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateGtmAccessStrategyRequest::getStrategyId()const @@ -88,7 +88,7 @@ std::string UpdateGtmAccessStrategyRequest::getStrategyId()const void UpdateGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) { strategyId_ = strategyId; - setParameter("StrategyId", strategyId); + setCoreParameter("StrategyId", strategyId); } std::string UpdateGtmAccessStrategyRequest::getLang()const @@ -99,6 +99,6 @@ std::string UpdateGtmAccessStrategyRequest::getLang()const void UpdateGtmAccessStrategyRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/alidns/src/model/UpdateGtmAccessStrategyResult.cc b/alidns/src/model/UpdateGtmAccessStrategyResult.cc index b020bd517..0d2dbd618 100644 --- a/alidns/src/model/UpdateGtmAccessStrategyResult.cc +++ b/alidns/src/model/UpdateGtmAccessStrategyResult.cc @@ -35,10 +35,13 @@ UpdateGtmAccessStrategyResult::~UpdateGtmAccessStrategyResult() void UpdateGtmAccessStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alidns/src/model/UpdateGtmAddressPoolRequest.cc b/alidns/src/model/UpdateGtmAddressPoolRequest.cc index 565d76aa6..01d2e4329 100644 --- a/alidns/src/model/UpdateGtmAddressPoolRequest.cc +++ b/alidns/src/model/UpdateGtmAddressPoolRequest.cc @@ -33,7 +33,7 @@ std::string UpdateGtmAddressPoolRequest::getAddrPoolId()const void UpdateGtmAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) { addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); + setCoreParameter("AddrPoolId", addrPoolId); } std::string UpdateGtmAddressPoolRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string UpdateGtmAddressPoolRequest::getUserClientIp()const void UpdateGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateGtmAddressPoolRequest::getName()const @@ -55,7 +55,7 @@ std::string UpdateGtmAddressPoolRequest::getName()const void UpdateGtmAddressPoolRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateGtmAddressPoolRequest::getLang()const @@ -66,7 +66,7 @@ std::string UpdateGtmAddressPoolRequest::getLang()const void UpdateGtmAddressPoolRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string UpdateGtmAddressPoolRequest::getType()const @@ -77,7 +77,7 @@ std::string UpdateGtmAddressPoolRequest::getType()const void UpdateGtmAddressPoolRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::vector UpdateGtmAddressPoolRequest::getAddr()const @@ -92,9 +92,9 @@ void UpdateGtmAddressPoolRequest::setAddr(const std::vector& addr) for(int i = 0; i!= addr.size(); i++) { auto obj = addr.at(i); std::string str ="Addr."+ std::to_string(i); - setParameter(str + ".Mode", obj.mode); - setParameter(str + ".LbaWeight", std::to_string(obj.lbaWeight)); - setParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Mode", obj.mode); + setCoreParameter(str + ".LbaWeight", std::to_string(obj.lbaWeight)); + setCoreParameter(str + ".Value", obj.value); } } @@ -106,6 +106,6 @@ int UpdateGtmAddressPoolRequest::getMinAvailableAddrNum()const void UpdateGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum) { minAvailableAddrNum_ = minAvailableAddrNum; - setParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum)); + setCoreParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum)); } diff --git a/alidns/src/model/UpdateGtmAddressPoolResult.cc b/alidns/src/model/UpdateGtmAddressPoolResult.cc index fbe75e942..eb029e9b2 100644 --- a/alidns/src/model/UpdateGtmAddressPoolResult.cc +++ b/alidns/src/model/UpdateGtmAddressPoolResult.cc @@ -35,10 +35,13 @@ UpdateGtmAddressPoolResult::~UpdateGtmAddressPoolResult() void UpdateGtmAddressPoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.cc b/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.cc index a4cfd20bd..c72ffc93e 100644 --- a/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.cc +++ b/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.cc @@ -33,7 +33,7 @@ std::string UpdateGtmInstanceGlobalConfigRequest::getAlertGroup()const void UpdateGtmInstanceGlobalConfigRequest::setAlertGroup(const std::string& alertGroup) { alertGroup_ = alertGroup; - setParameter("AlertGroup", alertGroup); + setCoreParameter("AlertGroup", alertGroup); } std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceId()const void UpdateGtmInstanceGlobalConfigRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceName()const @@ -55,7 +55,7 @@ std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceName()const void UpdateGtmInstanceGlobalConfigRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } std::string UpdateGtmInstanceGlobalConfigRequest::getUserDomainName()const @@ -66,7 +66,18 @@ std::string UpdateGtmInstanceGlobalConfigRequest::getUserDomainName()const void UpdateGtmInstanceGlobalConfigRequest::setUserDomainName(const std::string& userDomainName) { userDomainName_ = userDomainName; - setParameter("UserDomainName", userDomainName); + setCoreParameter("UserDomainName", userDomainName); +} + +std::string UpdateGtmInstanceGlobalConfigRequest::getCnameMode()const +{ + return cnameMode_; +} + +void UpdateGtmInstanceGlobalConfigRequest::setCnameMode(const std::string& cnameMode) +{ + cnameMode_ = cnameMode; + setCoreParameter("CnameMode", cnameMode); } std::string UpdateGtmInstanceGlobalConfigRequest::getUserClientIp()const @@ -77,7 +88,7 @@ std::string UpdateGtmInstanceGlobalConfigRequest::getUserClientIp()const void UpdateGtmInstanceGlobalConfigRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateGtmInstanceGlobalConfigRequest::getLbaStrategy()const @@ -88,7 +99,7 @@ std::string UpdateGtmInstanceGlobalConfigRequest::getLbaStrategy()const void UpdateGtmInstanceGlobalConfigRequest::setLbaStrategy(const std::string& lbaStrategy) { lbaStrategy_ = lbaStrategy; - setParameter("LbaStrategy", lbaStrategy); + setCoreParameter("LbaStrategy", lbaStrategy); } std::string UpdateGtmInstanceGlobalConfigRequest::getLang()const @@ -99,7 +110,7 @@ std::string UpdateGtmInstanceGlobalConfigRequest::getLang()const void UpdateGtmInstanceGlobalConfigRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int UpdateGtmInstanceGlobalConfigRequest::getTtl()const @@ -110,6 +121,17 @@ int UpdateGtmInstanceGlobalConfigRequest::getTtl()const void UpdateGtmInstanceGlobalConfigRequest::setTtl(int ttl) { ttl_ = ttl; - setParameter("Ttl", std::to_string(ttl)); + setCoreParameter("Ttl", std::to_string(ttl)); +} + +std::string UpdateGtmInstanceGlobalConfigRequest::getCnameCustomDomainName()const +{ + return cnameCustomDomainName_; +} + +void UpdateGtmInstanceGlobalConfigRequest::setCnameCustomDomainName(const std::string& cnameCustomDomainName) +{ + cnameCustomDomainName_ = cnameCustomDomainName; + setCoreParameter("CnameCustomDomainName", cnameCustomDomainName); } diff --git a/alidns/src/model/UpdateGtmInstanceGlobalConfigResult.cc b/alidns/src/model/UpdateGtmInstanceGlobalConfigResult.cc index 79d6b1f1b..7bd494cc2 100644 --- a/alidns/src/model/UpdateGtmInstanceGlobalConfigResult.cc +++ b/alidns/src/model/UpdateGtmInstanceGlobalConfigResult.cc @@ -35,10 +35,13 @@ UpdateGtmInstanceGlobalConfigResult::~UpdateGtmInstanceGlobalConfigResult() void UpdateGtmInstanceGlobalConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alidns/src/model/UpdateGtmMonitorRequest.cc b/alidns/src/model/UpdateGtmMonitorRequest.cc index b29bce052..3beba4866 100644 --- a/alidns/src/model/UpdateGtmMonitorRequest.cc +++ b/alidns/src/model/UpdateGtmMonitorRequest.cc @@ -33,7 +33,7 @@ std::string UpdateGtmMonitorRequest::getMonitorExtendInfo()const void UpdateGtmMonitorRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) { monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); + setCoreParameter("MonitorExtendInfo", monitorExtendInfo); } std::string UpdateGtmMonitorRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string UpdateGtmMonitorRequest::getUserClientIp()const void UpdateGtmMonitorRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateGtmMonitorRequest::getName()const @@ -55,7 +55,7 @@ std::string UpdateGtmMonitorRequest::getName()const void UpdateGtmMonitorRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateGtmMonitorRequest::getMonitorConfigId()const @@ -66,7 +66,7 @@ std::string UpdateGtmMonitorRequest::getMonitorConfigId()const void UpdateGtmMonitorRequest::setMonitorConfigId(const std::string& monitorConfigId) { monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); + setCoreParameter("MonitorConfigId", monitorConfigId); } int UpdateGtmMonitorRequest::getEvaluationCount()const @@ -77,7 +77,7 @@ int UpdateGtmMonitorRequest::getEvaluationCount()const void UpdateGtmMonitorRequest::setEvaluationCount(int evaluationCount) { evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); + setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); } std::string UpdateGtmMonitorRequest::getProtocolType()const @@ -88,7 +88,7 @@ std::string UpdateGtmMonitorRequest::getProtocolType()const void UpdateGtmMonitorRequest::setProtocolType(const std::string& protocolType) { protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); + setCoreParameter("ProtocolType", protocolType); } int UpdateGtmMonitorRequest::getInterval()const @@ -99,7 +99,7 @@ int UpdateGtmMonitorRequest::getInterval()const void UpdateGtmMonitorRequest::setInterval(int interval) { interval_ = interval; - setParameter("Interval", std::to_string(interval)); + setCoreParameter("Interval", std::to_string(interval)); } std::string UpdateGtmMonitorRequest::getLang()const @@ -110,7 +110,7 @@ std::string UpdateGtmMonitorRequest::getLang()const void UpdateGtmMonitorRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int UpdateGtmMonitorRequest::getTimeout()const @@ -121,7 +121,7 @@ int UpdateGtmMonitorRequest::getTimeout()const void UpdateGtmMonitorRequest::setTimeout(int timeout) { timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); + setCoreParameter("Timeout", std::to_string(timeout)); } std::vector UpdateGtmMonitorRequest::getIspCityNode()const @@ -136,8 +136,8 @@ void UpdateGtmMonitorRequest::setIspCityNode(const std::vector& isp for(int i = 0; i!= ispCityNode.size(); i++) { auto obj = ispCityNode.at(i); std::string str ="IspCityNode."+ std::to_string(i); - setParameter(str + ".CityCode", obj.cityCode); - setParameter(str + ".IspCode", obj.ispCode); + setCoreParameter(str + ".CityCode", obj.cityCode); + setCoreParameter(str + ".IspCode", obj.ispCode); } } diff --git a/alidns/src/model/UpdateGtmMonitorResult.cc b/alidns/src/model/UpdateGtmMonitorResult.cc index 4516cf4b5..b8b5d7dbf 100644 --- a/alidns/src/model/UpdateGtmMonitorResult.cc +++ b/alidns/src/model/UpdateGtmMonitorResult.cc @@ -35,10 +35,13 @@ UpdateGtmMonitorResult::~UpdateGtmMonitorResult() void UpdateGtmMonitorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/alimt/src/model/TranslateECommerceRequest.cc b/alimt/src/model/TranslateECommerceRequest.cc index 6bb837a1e..e52e329fa 100644 --- a/alimt/src/model/TranslateECommerceRequest.cc +++ b/alimt/src/model/TranslateECommerceRequest.cc @@ -33,7 +33,7 @@ std::string TranslateECommerceRequest::getSourceLanguage()const void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage) { sourceLanguage_ = sourceLanguage; - setParameter("SourceLanguage", sourceLanguage); + setCoreParameter("SourceLanguage", sourceLanguage); } std::string TranslateECommerceRequest::getSourceText()const @@ -44,7 +44,7 @@ std::string TranslateECommerceRequest::getSourceText()const void TranslateECommerceRequest::setSourceText(const std::string& sourceText) { sourceText_ = sourceText; - setParameter("SourceText", sourceText); + setCoreParameter("SourceText", sourceText); } std::string TranslateECommerceRequest::getFormatType()const @@ -55,7 +55,7 @@ std::string TranslateECommerceRequest::getFormatType()const void TranslateECommerceRequest::setFormatType(const std::string& formatType) { formatType_ = formatType; - setParameter("FormatType", formatType); + setCoreParameter("FormatType", formatType); } std::string TranslateECommerceRequest::getTargetLanguage()const @@ -66,7 +66,7 @@ std::string TranslateECommerceRequest::getTargetLanguage()const void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage) { targetLanguage_ = targetLanguage; - setParameter("TargetLanguage", targetLanguage); + setCoreParameter("TargetLanguage", targetLanguage); } std::string TranslateECommerceRequest::getScene()const @@ -77,6 +77,6 @@ std::string TranslateECommerceRequest::getScene()const void TranslateECommerceRequest::setScene(const std::string& scene) { scene_ = scene; - setParameter("Scene", scene); + setCoreParameter("Scene", scene); } diff --git a/alimt/src/model/TranslateECommerceResult.cc b/alimt/src/model/TranslateECommerceResult.cc index 2d302dd20..93a0a547f 100644 --- a/alimt/src/model/TranslateECommerceResult.cc +++ b/alimt/src/model/TranslateECommerceResult.cc @@ -35,10 +35,13 @@ TranslateECommerceResult::~TranslateECommerceResult() void TranslateECommerceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Translated"].isNull()) diff --git a/alimt/src/model/TranslateGeneralRequest.cc b/alimt/src/model/TranslateGeneralRequest.cc index 68a53adcd..2bfcf7034 100644 --- a/alimt/src/model/TranslateGeneralRequest.cc +++ b/alimt/src/model/TranslateGeneralRequest.cc @@ -33,7 +33,7 @@ std::string TranslateGeneralRequest::getSourceLanguage()const void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage) { sourceLanguage_ = sourceLanguage; - setParameter("SourceLanguage", sourceLanguage); + setCoreParameter("SourceLanguage", sourceLanguage); } std::string TranslateGeneralRequest::getSourceText()const @@ -44,7 +44,7 @@ std::string TranslateGeneralRequest::getSourceText()const void TranslateGeneralRequest::setSourceText(const std::string& sourceText) { sourceText_ = sourceText; - setParameter("SourceText", sourceText); + setCoreParameter("SourceText", sourceText); } std::string TranslateGeneralRequest::getFormatType()const @@ -55,7 +55,7 @@ std::string TranslateGeneralRequest::getFormatType()const void TranslateGeneralRequest::setFormatType(const std::string& formatType) { formatType_ = formatType; - setParameter("FormatType", formatType); + setCoreParameter("FormatType", formatType); } std::string TranslateGeneralRequest::getTargetLanguage()const @@ -66,7 +66,7 @@ std::string TranslateGeneralRequest::getTargetLanguage()const void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage) { targetLanguage_ = targetLanguage; - setParameter("TargetLanguage", targetLanguage); + setCoreParameter("TargetLanguage", targetLanguage); } std::string TranslateGeneralRequest::getScene()const @@ -77,6 +77,6 @@ std::string TranslateGeneralRequest::getScene()const void TranslateGeneralRequest::setScene(const std::string& scene) { scene_ = scene; - setParameter("Scene", scene); + setCoreParameter("Scene", scene); } diff --git a/alimt/src/model/TranslateGeneralResult.cc b/alimt/src/model/TranslateGeneralResult.cc index 1ac6ba579..ad0cf611d 100644 --- a/alimt/src/model/TranslateGeneralResult.cc +++ b/alimt/src/model/TranslateGeneralResult.cc @@ -35,10 +35,13 @@ TranslateGeneralResult::~TranslateGeneralResult() void TranslateGeneralResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Translated"].isNull()) diff --git a/arms/CMakeLists.txt b/arms/CMakeLists.txt index 9f79db0b9..ff3fc5704 100644 --- a/arms/CMakeLists.txt +++ b/arms/CMakeLists.txt @@ -1,82 +1,174 @@ -# -# Copyright 2009-2017 Alibaba Cloud All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(arms_public_header include/alibabacloud/arms/ARMSClient.h - include/alibabacloud/arms/ARMSExport.h ) - -set(arms_public_header_model ) - + include/alibabacloud/arms/ARMSExport.h ) + +set(arms_public_header_model + include/alibabacloud/arms/model/SearchAlertContactRequest.h + include/alibabacloud/arms/model/SearchAlertContactResult.h + include/alibabacloud/arms/model/GetTraceRequest.h + include/alibabacloud/arms/model/GetTraceResult.h + include/alibabacloud/arms/model/ListTraceAppsRequest.h + include/alibabacloud/arms/model/ListTraceAppsResult.h + include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h + include/alibabacloud/arms/model/DeleteRetcodeAppResult.h + include/alibabacloud/arms/model/SearchTraceAppByPageRequest.h + include/alibabacloud/arms/model/SearchTraceAppByPageResult.h + include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h + include/alibabacloud/arms/model/ImportAppAlertRulesResult.h + include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h + include/alibabacloud/arms/model/CreateAlertContactGroupResult.h + include/alibabacloud/arms/model/QueryDatasetRequest.h + include/alibabacloud/arms/model/QueryDatasetResult.h + include/alibabacloud/arms/model/SearchTraceAppByNameRequest.h + include/alibabacloud/arms/model/SearchTraceAppByNameResult.h + include/alibabacloud/arms/model/SearchRetcodeAppByPageRequest.h + include/alibabacloud/arms/model/SearchRetcodeAppByPageResult.h + include/alibabacloud/arms/model/ListRetcodeAppsRequest.h + include/alibabacloud/arms/model/ListRetcodeAppsResult.h + include/alibabacloud/arms/model/GetSpanNamesRequest.h + include/alibabacloud/arms/model/GetSpanNamesResult.h + include/alibabacloud/arms/model/GetServicesRequest.h + include/alibabacloud/arms/model/GetServicesResult.h + include/alibabacloud/arms/model/MetricQueryRequest.h + include/alibabacloud/arms/model/MetricQueryResult.h + include/alibabacloud/arms/model/SearchTracesRequest.h + include/alibabacloud/arms/model/SearchTracesResult.h + include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h + include/alibabacloud/arms/model/SearchAlertContactGroupResult.h + include/alibabacloud/arms/model/CreateAlertContactRequest.h + include/alibabacloud/arms/model/CreateAlertContactResult.h + include/alibabacloud/arms/model/QueryMetricRequest.h + include/alibabacloud/arms/model/QueryMetricResult.h + include/alibabacloud/arms/model/SearchTraceCountRequest.h + include/alibabacloud/arms/model/SearchTraceCountResult.h + include/alibabacloud/arms/model/GetTagKeyRequest.h + include/alibabacloud/arms/model/GetTagKeyResult.h + include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h + include/alibabacloud/arms/model/ARMSQueryDataSetResult.h + include/alibabacloud/arms/model/CreateRetcodeAppRequest.h + include/alibabacloud/arms/model/CreateRetcodeAppResult.h + include/alibabacloud/arms/model/GetTagValRequest.h + include/alibabacloud/arms/model/GetTagValResult.h ) + set(arms_src - src/ARMSClient.cc ) - -add_library(arms ${LIB_TYPE} - ${arms_public_header} - ${arms_public_header_model} - ${arms_src}) - -set_target_properties(arms - 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}arms - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(arms - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_ARMS_LIBRARY) -endif() - -target_include_directories(arms - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(arms - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(arms - jsoncpp) - target_include_directories(arms - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(arms - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(arms - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(arms - PRIVATE /usr/include/jsoncpp) - target_link_libraries(arms - jsoncpp) -endif() - -install(FILES ${arms_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms) -install(FILES ${arms_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms/model) -install(TARGETS arms - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/ARMSClient.cc + src/model/SearchAlertContactRequest.cc + src/model/SearchAlertContactResult.cc + src/model/GetTraceRequest.cc + src/model/GetTraceResult.cc + src/model/ListTraceAppsRequest.cc + src/model/ListTraceAppsResult.cc + src/model/DeleteRetcodeAppRequest.cc + src/model/DeleteRetcodeAppResult.cc + src/model/SearchTraceAppByPageRequest.cc + src/model/SearchTraceAppByPageResult.cc + src/model/ImportAppAlertRulesRequest.cc + src/model/ImportAppAlertRulesResult.cc + src/model/CreateAlertContactGroupRequest.cc + src/model/CreateAlertContactGroupResult.cc + src/model/QueryDatasetRequest.cc + src/model/QueryDatasetResult.cc + src/model/SearchTraceAppByNameRequest.cc + src/model/SearchTraceAppByNameResult.cc + src/model/SearchRetcodeAppByPageRequest.cc + src/model/SearchRetcodeAppByPageResult.cc + src/model/ListRetcodeAppsRequest.cc + src/model/ListRetcodeAppsResult.cc + src/model/GetSpanNamesRequest.cc + src/model/GetSpanNamesResult.cc + src/model/GetServicesRequest.cc + src/model/GetServicesResult.cc + src/model/MetricQueryRequest.cc + src/model/MetricQueryResult.cc + src/model/SearchTracesRequest.cc + src/model/SearchTracesResult.cc + src/model/SearchAlertContactGroupRequest.cc + src/model/SearchAlertContactGroupResult.cc + src/model/CreateAlertContactRequest.cc + src/model/CreateAlertContactResult.cc + src/model/QueryMetricRequest.cc + src/model/QueryMetricResult.cc + src/model/SearchTraceCountRequest.cc + src/model/SearchTraceCountResult.cc + src/model/GetTagKeyRequest.cc + src/model/GetTagKeyResult.cc + src/model/ARMSQueryDataSetRequest.cc + src/model/ARMSQueryDataSetResult.cc + src/model/CreateRetcodeAppRequest.cc + src/model/CreateRetcodeAppResult.cc + src/model/GetTagValRequest.cc + src/model/GetTagValResult.cc ) + +add_library(arms ${LIB_TYPE} + ${arms_public_header} + ${arms_public_header_model} + ${arms_src}) + +set_target_properties(arms + 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}arms + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(arms + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ARMS_LIBRARY) +endif() + +target_include_directories(arms + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(arms + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(arms + jsoncpp) + target_include_directories(arms + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(arms + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(arms + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(arms + PRIVATE /usr/include/jsoncpp) + target_link_libraries(arms + jsoncpp) +endif() + +install(FILES ${arms_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms) +install(FILES ${arms_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms/model) +install(TARGETS arms + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/ARMSClient.h b/arms/include/alibabacloud/arms/ARMSClient.h index 87ee280b8..e72bc37f9 100644 --- a/arms/include/alibabacloud/arms/ARMSClient.h +++ b/arms/include/alibabacloud/arms/ARMSClient.h @@ -1,29 +1,31 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_ARMSCLIENT_H_ -#define ALIBABACLOUD_ARMS_ARMSCLIENT_H_ - -#include -#include -#include -#include -#include "ARMSExport.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_ARMSCLIENT_H_ +#define ALIBABACLOUD_ARMS_ARMSCLIENT_H_ + +#include +#include +#include +#include +#include "ARMSExport.h" #include "model/SearchAlertContactRequest.h" #include "model/SearchAlertContactResult.h" +#include "model/GetTraceRequest.h" +#include "model/GetTraceResult.h" #include "model/ListTraceAppsRequest.h" #include "model/ListTraceAppsResult.h" #include "model/DeleteRetcodeAppRequest.h" @@ -36,123 +38,193 @@ #include "model/CreateAlertContactGroupResult.h" #include "model/QueryDatasetRequest.h" #include "model/QueryDatasetResult.h" -#include "model/SearchRetcodeAppByPageRequest.h" -#include "model/SearchRetcodeAppByPageResult.h" #include "model/SearchTraceAppByNameRequest.h" #include "model/SearchTraceAppByNameResult.h" +#include "model/SearchRetcodeAppByPageRequest.h" +#include "model/SearchRetcodeAppByPageResult.h" #include "model/ListRetcodeAppsRequest.h" #include "model/ListRetcodeAppsResult.h" +#include "model/GetSpanNamesRequest.h" +#include "model/GetSpanNamesResult.h" +#include "model/GetServicesRequest.h" +#include "model/GetServicesResult.h" +#include "model/MetricQueryRequest.h" +#include "model/MetricQueryResult.h" +#include "model/SearchTracesRequest.h" +#include "model/SearchTracesResult.h" #include "model/SearchAlertContactGroupRequest.h" #include "model/SearchAlertContactGroupResult.h" #include "model/CreateAlertContactRequest.h" #include "model/CreateAlertContactResult.h" #include "model/QueryMetricRequest.h" #include "model/QueryMetricResult.h" +#include "model/SearchTraceCountRequest.h" +#include "model/SearchTraceCountResult.h" +#include "model/GetTagKeyRequest.h" +#include "model/GetTagKeyResult.h" +#include "model/ARMSQueryDataSetRequest.h" +#include "model/ARMSQueryDataSetResult.h" #include "model/CreateRetcodeAppRequest.h" #include "model/CreateRetcodeAppResult.h" - - -namespace AlibabaCloud -{ - namespace ARMS - { - class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient - { - public: - typedef Outcome SearchAlertContactOutcome; - typedef std::future SearchAlertContactOutcomeCallable; +#include "model/GetTagValRequest.h" +#include "model/GetTagValResult.h" + + +namespace AlibabaCloud +{ + namespace ARMS + { + class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient + { + public: + typedef Outcome SearchAlertContactOutcome; + typedef std::future SearchAlertContactOutcomeCallable; typedef std::function&)> SearchAlertContactAsyncHandler; - typedef Outcome ListTraceAppsOutcome; - typedef std::future ListTraceAppsOutcomeCallable; + typedef Outcome GetTraceOutcome; + typedef std::future GetTraceOutcomeCallable; + typedef std::function&)> GetTraceAsyncHandler; + typedef Outcome ListTraceAppsOutcome; + typedef std::future ListTraceAppsOutcomeCallable; typedef std::function&)> ListTraceAppsAsyncHandler; - typedef Outcome DeleteRetcodeAppOutcome; - typedef std::future DeleteRetcodeAppOutcomeCallable; + typedef Outcome DeleteRetcodeAppOutcome; + typedef std::future DeleteRetcodeAppOutcomeCallable; typedef std::function&)> DeleteRetcodeAppAsyncHandler; - typedef Outcome SearchTraceAppByPageOutcome; - typedef std::future SearchTraceAppByPageOutcomeCallable; + typedef Outcome SearchTraceAppByPageOutcome; + typedef std::future SearchTraceAppByPageOutcomeCallable; typedef std::function&)> SearchTraceAppByPageAsyncHandler; - typedef Outcome ImportAppAlertRulesOutcome; - typedef std::future ImportAppAlertRulesOutcomeCallable; + typedef Outcome ImportAppAlertRulesOutcome; + typedef std::future ImportAppAlertRulesOutcomeCallable; typedef std::function&)> ImportAppAlertRulesAsyncHandler; - typedef Outcome CreateAlertContactGroupOutcome; - typedef std::future CreateAlertContactGroupOutcomeCallable; + typedef Outcome CreateAlertContactGroupOutcome; + typedef std::future CreateAlertContactGroupOutcomeCallable; typedef std::function&)> CreateAlertContactGroupAsyncHandler; - typedef Outcome QueryDatasetOutcome; - typedef std::future QueryDatasetOutcomeCallable; + typedef Outcome QueryDatasetOutcome; + typedef std::future QueryDatasetOutcomeCallable; typedef std::function&)> QueryDatasetAsyncHandler; - typedef Outcome SearchRetcodeAppByPageOutcome; - typedef std::future SearchRetcodeAppByPageOutcomeCallable; - typedef std::function&)> SearchRetcodeAppByPageAsyncHandler; - typedef Outcome SearchTraceAppByNameOutcome; - typedef std::future SearchTraceAppByNameOutcomeCallable; + typedef Outcome SearchTraceAppByNameOutcome; + typedef std::future SearchTraceAppByNameOutcomeCallable; typedef std::function&)> SearchTraceAppByNameAsyncHandler; - typedef Outcome ListRetcodeAppsOutcome; - typedef std::future ListRetcodeAppsOutcomeCallable; + typedef Outcome SearchRetcodeAppByPageOutcome; + typedef std::future SearchRetcodeAppByPageOutcomeCallable; + typedef std::function&)> SearchRetcodeAppByPageAsyncHandler; + typedef Outcome ListRetcodeAppsOutcome; + typedef std::future ListRetcodeAppsOutcomeCallable; typedef std::function&)> ListRetcodeAppsAsyncHandler; - typedef Outcome SearchAlertContactGroupOutcome; - typedef std::future SearchAlertContactGroupOutcomeCallable; + typedef Outcome GetSpanNamesOutcome; + typedef std::future GetSpanNamesOutcomeCallable; + typedef std::function&)> GetSpanNamesAsyncHandler; + typedef Outcome GetServicesOutcome; + typedef std::future GetServicesOutcomeCallable; + typedef std::function&)> GetServicesAsyncHandler; + typedef Outcome MetricQueryOutcome; + typedef std::future MetricQueryOutcomeCallable; + typedef std::function&)> MetricQueryAsyncHandler; + typedef Outcome SearchTracesOutcome; + typedef std::future SearchTracesOutcomeCallable; + typedef std::function&)> SearchTracesAsyncHandler; + typedef Outcome SearchAlertContactGroupOutcome; + typedef std::future SearchAlertContactGroupOutcomeCallable; typedef std::function&)> SearchAlertContactGroupAsyncHandler; - typedef Outcome CreateAlertContactOutcome; - typedef std::future CreateAlertContactOutcomeCallable; + typedef Outcome CreateAlertContactOutcome; + typedef std::future CreateAlertContactOutcomeCallable; typedef std::function&)> CreateAlertContactAsyncHandler; - typedef Outcome QueryMetricOutcome; - typedef std::future QueryMetricOutcomeCallable; + typedef Outcome QueryMetricOutcome; + typedef std::future QueryMetricOutcomeCallable; typedef std::function&)> QueryMetricAsyncHandler; - typedef Outcome CreateRetcodeAppOutcome; - typedef std::future CreateRetcodeAppOutcomeCallable; + typedef Outcome SearchTraceCountOutcome; + typedef std::future SearchTraceCountOutcomeCallable; + typedef std::function&)> SearchTraceCountAsyncHandler; + typedef Outcome GetTagKeyOutcome; + typedef std::future GetTagKeyOutcomeCallable; + typedef std::function&)> GetTagKeyAsyncHandler; + typedef Outcome ARMSQueryDataSetOutcome; + typedef std::future ARMSQueryDataSetOutcomeCallable; + typedef std::function&)> ARMSQueryDataSetAsyncHandler; + typedef Outcome CreateRetcodeAppOutcome; + typedef std::future CreateRetcodeAppOutcomeCallable; typedef std::function&)> CreateRetcodeAppAsyncHandler; - - ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration); - ARMSClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~ARMSClient(); - SearchAlertContactOutcome searchAlertContact(const Model::SearchAlertContactRequest &request)const; - void searchAlertContactAsync(const Model::SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + typedef Outcome GetTagValOutcome; + typedef std::future GetTagValOutcomeCallable; + typedef std::function&)> GetTagValAsyncHandler; + + ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration); + ARMSClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ARMSClient(); + SearchAlertContactOutcome searchAlertContact(const Model::SearchAlertContactRequest &request)const; + void searchAlertContactAsync(const Model::SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchAlertContactOutcomeCallable searchAlertContactCallable(const Model::SearchAlertContactRequest& request) const; - ListTraceAppsOutcome listTraceApps(const Model::ListTraceAppsRequest &request)const; - void listTraceAppsAsync(const Model::ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTraceOutcome getTrace(const Model::GetTraceRequest &request)const; + void getTraceAsync(const Model::GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTraceOutcomeCallable getTraceCallable(const Model::GetTraceRequest& request) const; + ListTraceAppsOutcome listTraceApps(const Model::ListTraceAppsRequest &request)const; + void listTraceAppsAsync(const Model::ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTraceAppsOutcomeCallable listTraceAppsCallable(const Model::ListTraceAppsRequest& request) const; - DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const; - void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const; + void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const; - SearchTraceAppByPageOutcome searchTraceAppByPage(const Model::SearchTraceAppByPageRequest &request)const; - void searchTraceAppByPageAsync(const Model::SearchTraceAppByPageRequest& request, const SearchTraceAppByPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTraceAppByPageOutcome searchTraceAppByPage(const Model::SearchTraceAppByPageRequest &request)const; + void searchTraceAppByPageAsync(const Model::SearchTraceAppByPageRequest& request, const SearchTraceAppByPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchTraceAppByPageOutcomeCallable searchTraceAppByPageCallable(const Model::SearchTraceAppByPageRequest& request) const; - ImportAppAlertRulesOutcome importAppAlertRules(const Model::ImportAppAlertRulesRequest &request)const; - void importAppAlertRulesAsync(const Model::ImportAppAlertRulesRequest& request, const ImportAppAlertRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportAppAlertRulesOutcome importAppAlertRules(const Model::ImportAppAlertRulesRequest &request)const; + void importAppAlertRulesAsync(const Model::ImportAppAlertRulesRequest& request, const ImportAppAlertRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportAppAlertRulesOutcomeCallable importAppAlertRulesCallable(const Model::ImportAppAlertRulesRequest& request) const; - CreateAlertContactGroupOutcome createAlertContactGroup(const Model::CreateAlertContactGroupRequest &request)const; - void createAlertContactGroupAsync(const Model::CreateAlertContactGroupRequest& request, const CreateAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAlertContactGroupOutcome createAlertContactGroup(const Model::CreateAlertContactGroupRequest &request)const; + void createAlertContactGroupAsync(const Model::CreateAlertContactGroupRequest& request, const CreateAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAlertContactGroupOutcomeCallable createAlertContactGroupCallable(const Model::CreateAlertContactGroupRequest& request) const; - QueryDatasetOutcome queryDataset(const Model::QueryDatasetRequest &request)const; - void queryDatasetAsync(const Model::QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDatasetOutcome queryDataset(const Model::QueryDatasetRequest &request)const; + void queryDatasetAsync(const Model::QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDatasetOutcomeCallable queryDatasetCallable(const Model::QueryDatasetRequest& request) const; - SearchRetcodeAppByPageOutcome searchRetcodeAppByPage(const Model::SearchRetcodeAppByPageRequest &request)const; - void searchRetcodeAppByPageAsync(const Model::SearchRetcodeAppByPageRequest& request, const SearchRetcodeAppByPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchRetcodeAppByPageOutcomeCallable searchRetcodeAppByPageCallable(const Model::SearchRetcodeAppByPageRequest& request) const; - SearchTraceAppByNameOutcome searchTraceAppByName(const Model::SearchTraceAppByNameRequest &request)const; - void searchTraceAppByNameAsync(const Model::SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTraceAppByNameOutcome searchTraceAppByName(const Model::SearchTraceAppByNameRequest &request)const; + void searchTraceAppByNameAsync(const Model::SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchTraceAppByNameOutcomeCallable searchTraceAppByNameCallable(const Model::SearchTraceAppByNameRequest& request) const; - ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const; - void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchRetcodeAppByPageOutcome searchRetcodeAppByPage(const Model::SearchRetcodeAppByPageRequest &request)const; + void searchRetcodeAppByPageAsync(const Model::SearchRetcodeAppByPageRequest& request, const SearchRetcodeAppByPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchRetcodeAppByPageOutcomeCallable searchRetcodeAppByPageCallable(const Model::SearchRetcodeAppByPageRequest& request) const; + ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const; + void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRetcodeAppsOutcomeCallable listRetcodeAppsCallable(const Model::ListRetcodeAppsRequest& request) const; - SearchAlertContactGroupOutcome searchAlertContactGroup(const Model::SearchAlertContactGroupRequest &request)const; - void searchAlertContactGroupAsync(const Model::SearchAlertContactGroupRequest& request, const SearchAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSpanNamesOutcome getSpanNames(const Model::GetSpanNamesRequest &request)const; + void getSpanNamesAsync(const Model::GetSpanNamesRequest& request, const GetSpanNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSpanNamesOutcomeCallable getSpanNamesCallable(const Model::GetSpanNamesRequest& request) const; + GetServicesOutcome getServices(const Model::GetServicesRequest &request)const; + void getServicesAsync(const Model::GetServicesRequest& request, const GetServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServicesOutcomeCallable getServicesCallable(const Model::GetServicesRequest& request) const; + MetricQueryOutcome metricQuery(const Model::MetricQueryRequest &request)const; + void metricQueryAsync(const Model::MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetricQueryOutcomeCallable metricQueryCallable(const Model::MetricQueryRequest& request) const; + SearchTracesOutcome searchTraces(const Model::SearchTracesRequest &request)const; + void searchTracesAsync(const Model::SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTracesOutcomeCallable searchTracesCallable(const Model::SearchTracesRequest& request) const; + SearchAlertContactGroupOutcome searchAlertContactGroup(const Model::SearchAlertContactGroupRequest &request)const; + void searchAlertContactGroupAsync(const Model::SearchAlertContactGroupRequest& request, const SearchAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchAlertContactGroupOutcomeCallable searchAlertContactGroupCallable(const Model::SearchAlertContactGroupRequest& request) const; - CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const; - void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const; + void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& request) const; - QueryMetricOutcome queryMetric(const Model::QueryMetricRequest &request)const; - void queryMetricAsync(const Model::QueryMetricRequest& request, const QueryMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMetricOutcome queryMetric(const Model::QueryMetricRequest &request)const; + void queryMetricAsync(const Model::QueryMetricRequest& request, const QueryMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMetricOutcomeCallable queryMetricCallable(const Model::QueryMetricRequest& request) const; - CreateRetcodeAppOutcome createRetcodeApp(const Model::CreateRetcodeAppRequest &request)const; - void createRetcodeAppAsync(const Model::CreateRetcodeAppRequest& request, const CreateRetcodeAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTraceCountOutcome searchTraceCount(const Model::SearchTraceCountRequest &request)const; + void searchTraceCountAsync(const Model::SearchTraceCountRequest& request, const SearchTraceCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTraceCountOutcomeCallable searchTraceCountCallable(const Model::SearchTraceCountRequest& request) const; + GetTagKeyOutcome getTagKey(const Model::GetTagKeyRequest &request)const; + void getTagKeyAsync(const Model::GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTagKeyOutcomeCallable getTagKeyCallable(const Model::GetTagKeyRequest& request) const; + ARMSQueryDataSetOutcome aRMSQueryDataSet(const Model::ARMSQueryDataSetRequest &request)const; + void aRMSQueryDataSetAsync(const Model::ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ARMSQueryDataSetOutcomeCallable aRMSQueryDataSetCallable(const Model::ARMSQueryDataSetRequest& request) const; + CreateRetcodeAppOutcome createRetcodeApp(const Model::CreateRetcodeAppRequest &request)const; + void createRetcodeAppAsync(const Model::CreateRetcodeAppRequest& request, const CreateRetcodeAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRetcodeAppOutcomeCallable createRetcodeAppCallable(const Model::CreateRetcodeAppRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_ARMS_ARMSCLIENT_H_ + GetTagValOutcome getTagVal(const Model::GetTagValRequest &request)const; + void getTagValAsync(const Model::GetTagValRequest& request, const GetTagValAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTagValOutcomeCallable getTagValCallable(const Model::GetTagValRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ARMS_ARMSCLIENT_H_ diff --git a/arms/include/alibabacloud/arms/ARMSExport.h b/arms/include/alibabacloud/arms/ARMSExport.h index 1d0505dae..6746ec690 100644 --- a/arms/include/alibabacloud/arms/ARMSExport.h +++ b/arms/include/alibabacloud/arms/ARMSExport.h @@ -1,32 +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_ARMS_ARMSEXPORT_H_ -#define ALIBABACLOUD_ARMS_ARMSEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_ARMS_LIBRARY) -# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_ARMS_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_ARMSEXPORT_H_ +#define ALIBABACLOUD_ARMS_ARMSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ARMS_LIBRARY) +# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ARMS_EXPORT +#endif + #endif // !ALIBABACLOUD_ARMS_ARMSEXPORT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h b/arms/include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h index b9205a61e..adf6db146 100644 --- a/arms/include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h +++ b/arms/include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h @@ -1,54 +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_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactGroupRequest : public RpcServiceRequest - { - - public: - CreateAlertContactGroupRequest(); - ~CreateAlertContactGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactGroupRequest : public RpcServiceRequest + { + + public: + CreateAlertContactGroupRequest(); + ~CreateAlertContactGroupRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getContactGroupName()const; void setContactGroupName(const std::string& contactGroupName); std::string getContactIds()const; void setContactIds(const std::string& contactIds); - - private: + + private: std::string regionId_; std::string contactGroupName_; std::string contactIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/CreateAlertContactGroupResult.h b/arms/include/alibabacloud/arms/model/CreateAlertContactGroupResult.h index 069e449cb..ea7c97584 100644 --- a/arms/include/alibabacloud/arms/model/CreateAlertContactGroupResult.h +++ b/arms/include/alibabacloud/arms/model/CreateAlertContactGroupResult.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactGroupResult : public ServiceResult - { - public: - - - CreateAlertContactGroupResult(); - explicit CreateAlertContactGroupResult(const std::string &payload); - ~CreateAlertContactGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactGroupResult : public ServiceResult + { + public: + + + CreateAlertContactGroupResult(); + explicit CreateAlertContactGroupResult(const std::string &payload); + ~CreateAlertContactGroupResult(); std::string getContactGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string contactGroupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/CreateAlertContactRequest.h b/arms/include/alibabacloud/arms/model/CreateAlertContactRequest.h index 60fb249ed..4bfee1840 100644 --- a/arms/include/alibabacloud/arms/model/CreateAlertContactRequest.h +++ b/arms/include/alibabacloud/arms/model/CreateAlertContactRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactRequest : public RpcServiceRequest - { - - public: - CreateAlertContactRequest(); - ~CreateAlertContactRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactRequest : public RpcServiceRequest + { + + public: + CreateAlertContactRequest(); + ~CreateAlertContactRequest(); + std::string getContactName()const; void setContactName(const std::string& contactName); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setEmail(const std::string& email); bool getSystemNoc()const; void setSystemNoc(bool systemNoc); - - private: + + private: std::string contactName_; std::string regionId_; std::string phoneNum_; std::string dingRobotWebhookUrl_; std::string email_; bool systemNoc_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/CreateAlertContactResult.h b/arms/include/alibabacloud/arms/model/CreateAlertContactResult.h index f960c50f5..3a9cf9e20 100644 --- a/arms/include/alibabacloud/arms/model/CreateAlertContactResult.h +++ b/arms/include/alibabacloud/arms/model/CreateAlertContactResult.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactResult : public ServiceResult - { - public: - - - CreateAlertContactResult(); - explicit CreateAlertContactResult(const std::string &payload); - ~CreateAlertContactResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactResult : public ServiceResult + { + public: + + + CreateAlertContactResult(); + explicit CreateAlertContactResult(const std::string &payload); + ~CreateAlertContactResult(); std::string getContactId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string contactId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/CreateRetcodeAppRequest.h b/arms/include/alibabacloud/arms/model/CreateRetcodeAppRequest.h index 2f6b2ca2f..b7f8d8c01 100644 --- a/arms/include/alibabacloud/arms/model/CreateRetcodeAppRequest.h +++ b/arms/include/alibabacloud/arms/model/CreateRetcodeAppRequest.h @@ -1,54 +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_ARMS_MODEL_CREATERETCODEAPPREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT CreateRetcodeAppRequest : public RpcServiceRequest - { - - public: - CreateRetcodeAppRequest(); - ~CreateRetcodeAppRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT CreateRetcodeAppRequest : public RpcServiceRequest + { + + public: + CreateRetcodeAppRequest(); + ~CreateRetcodeAppRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getRetcodeAppName()const; void setRetcodeAppName(const std::string& retcodeAppName); std::string getRetcodeAppType()const; void setRetcodeAppType(const std::string& retcodeAppType); - - private: + + private: std::string regionId_; std::string retcodeAppName_; std::string retcodeAppType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/CreateRetcodeAppResult.h b/arms/include/alibabacloud/arms/model/CreateRetcodeAppResult.h index 5833a4d1d..4717181ef 100644 --- a/arms/include/alibabacloud/arms/model/CreateRetcodeAppResult.h +++ b/arms/include/alibabacloud/arms/model/CreateRetcodeAppResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT CreateRetcodeAppResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT CreateRetcodeAppResult : public ServiceResult + { + public: struct RetcodeAppDataBean { long appId; std::string pid; }; - - - CreateRetcodeAppResult(); - explicit CreateRetcodeAppResult(const std::string &payload); - ~CreateRetcodeAppResult(); + + + CreateRetcodeAppResult(); + explicit CreateRetcodeAppResult(const std::string &payload); + ~CreateRetcodeAppResult(); RetcodeAppDataBean getRetcodeAppDataBean()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: RetcodeAppDataBean retcodeAppDataBean_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_CREATERETCODEAPPRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h b/arms/include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h index e83957eb9..8da322be8 100644 --- a/arms/include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h +++ b/arms/include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT DeleteRetcodeAppRequest : public RpcServiceRequest - { - - public: - DeleteRetcodeAppRequest(); - ~DeleteRetcodeAppRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT DeleteRetcodeAppRequest : public RpcServiceRequest + { + + public: + DeleteRetcodeAppRequest(); + ~DeleteRetcodeAppRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getAppId()const; void setAppId(const std::string& appId); - - private: + + private: std::string regionId_; std::string appId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/DeleteRetcodeAppResult.h b/arms/include/alibabacloud/arms/model/DeleteRetcodeAppResult.h index 594d52702..0ab3d4d49 100644 --- a/arms/include/alibabacloud/arms/model/DeleteRetcodeAppResult.h +++ b/arms/include/alibabacloud/arms/model/DeleteRetcodeAppResult.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT DeleteRetcodeAppResult : public ServiceResult - { - public: - - - DeleteRetcodeAppResult(); - explicit DeleteRetcodeAppResult(const std::string &payload); - ~DeleteRetcodeAppResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT DeleteRetcodeAppResult : public ServiceResult + { + public: + + + DeleteRetcodeAppResult(); + explicit DeleteRetcodeAppResult(const std::string &payload); + ~DeleteRetcodeAppResult(); std::string getData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string data_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_DELETERETCODEAPPRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h b/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h index 573746064..0f51c72bc 100644 --- a/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h +++ b/arms/include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ImportAppAlertRulesRequest : public RpcServiceRequest - { - - public: - ImportAppAlertRulesRequest(); - ~ImportAppAlertRulesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT ImportAppAlertRulesRequest : public RpcServiceRequest + { + + public: + ImportAppAlertRulesRequest(); + ~ImportAppAlertRulesRequest(); + bool getIsAutoStart()const; void setIsAutoStart(bool isAutoStart); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setPids(const std::string& pids); std::string getTemplateAlertId()const; void setTemplateAlertId(const std::string& templateAlertId); - - private: + + private: bool isAutoStart_; std::string regionId_; std::string contactGroupIds_; std::string pids_; std::string templateAlertId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ImportAppAlertRulesResult.h b/arms/include/alibabacloud/arms/model/ImportAppAlertRulesResult.h index c2b58671e..b26bf11f0 100644 --- a/arms/include/alibabacloud/arms/model/ImportAppAlertRulesResult.h +++ b/arms/include/alibabacloud/arms/model/ImportAppAlertRulesResult.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ImportAppAlertRulesResult : public ServiceResult - { - public: - - - ImportAppAlertRulesResult(); - explicit ImportAppAlertRulesResult(const std::string &payload); - ~ImportAppAlertRulesResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT ImportAppAlertRulesResult : public ServiceResult + { + public: + + + ImportAppAlertRulesResult(); + explicit ImportAppAlertRulesResult(const std::string &payload); + ~ImportAppAlertRulesResult(); std::string getData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string data_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTAPPALERTRULESRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ListRetcodeAppsRequest.h b/arms/include/alibabacloud/arms/model/ListRetcodeAppsRequest.h index 89640de65..f9a9a400c 100644 --- a/arms/include/alibabacloud/arms/model/ListRetcodeAppsRequest.h +++ b/arms/include/alibabacloud/arms/model/ListRetcodeAppsRequest.h @@ -1,54 +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_ARMS_MODEL_LISTRETCODEAPPSREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ListRetcodeAppsRequest : public RpcServiceRequest - { - - public: - ListRetcodeAppsRequest(); - ~ListRetcodeAppsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT ListRetcodeAppsRequest : public RpcServiceRequest + { + + public: + ListRetcodeAppsRequest(); + ~ListRetcodeAppsRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string regionId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ListRetcodeAppsResult.h b/arms/include/alibabacloud/arms/model/ListRetcodeAppsResult.h index f34e4d70c..5c86fe897 100644 --- a/arms/include/alibabacloud/arms/model/ListRetcodeAppsResult.h +++ b/arms/include/alibabacloud/arms/model/ListRetcodeAppsResult.h @@ -1,57 +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_ARMS_MODEL_LISTRETCODEAPPSRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ListRetcodeAppsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT ListRetcodeAppsResult : public ServiceResult + { + public: struct RetcodeApp { long appId; std::string pid; std::string appName; }; - - - ListRetcodeAppsResult(); - explicit ListRetcodeAppsResult(const std::string &payload); - ~ListRetcodeAppsResult(); + + + ListRetcodeAppsResult(); + explicit ListRetcodeAppsResult(const std::string &payload); + ~ListRetcodeAppsResult(); std::vector getRetcodeApps()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector retcodeApps_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_LISTRETCODEAPPSRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ListTraceAppsRequest.h b/arms/include/alibabacloud/arms/model/ListTraceAppsRequest.h index 6d284677f..a0236231c 100644 --- a/arms/include/alibabacloud/arms/model/ListTraceAppsRequest.h +++ b/arms/include/alibabacloud/arms/model/ListTraceAppsRequest.h @@ -1,48 +1,48 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ListTraceAppsRequest : public RpcServiceRequest - { - - public: - ListTraceAppsRequest(); - ~ListTraceAppsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT ListTraceAppsRequest : public RpcServiceRequest + { + + public: + ListTraceAppsRequest(); + ~ListTraceAppsRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); - - private: + + private: std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/ListTraceAppsResult.h b/arms/include/alibabacloud/arms/model/ListTraceAppsResult.h index d038365da..f79dffed9 100644 --- a/arms/include/alibabacloud/arms/model/ListTraceAppsResult.h +++ b/arms/include/alibabacloud/arms/model/ListTraceAppsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT ListTraceAppsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT ListTraceAppsResult : public ServiceResult + { + public: struct TraceApp { std::string type; @@ -43,26 +43,26 @@ namespace AlibabaCloud std::string regionId; std::string appName; }; - - - ListTraceAppsResult(); - explicit ListTraceAppsResult(const std::string &payload); - ~ListTraceAppsResult(); + + + ListTraceAppsResult(); + explicit ListTraceAppsResult(const std::string &payload); + ~ListTraceAppsResult(); std::vector getTraceApps()const; std::string getMessage()const; int getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector traceApps_; std::string message_; int code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_LISTTRACEAPPSRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/QueryDatasetRequest.h b/arms/include/alibabacloud/arms/model/QueryDatasetRequest.h index 59973ffb2..379e88cc6 100644 --- a/arms/include/alibabacloud/arms/model/QueryDatasetRequest.h +++ b/arms/include/alibabacloud/arms/model/QueryDatasetRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYDATASETREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_QUERYDATASETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT QueryDatasetRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYDATASETREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_QUERYDATASETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT QueryDatasetRequest : public RpcServiceRequest + { struct OptionalDims { std::string type; @@ -48,11 +48,11 @@ namespace AlibabaCloud std::string value; std::string key; }; - - public: - QueryDatasetRequest(); - ~QueryDatasetRequest(); - + + public: + QueryDatasetRequest(); + ~QueryDatasetRequest(); + std::string getDateStr()const; void setDateStr(const std::string& dateStr); long getMinTime()const; @@ -83,8 +83,8 @@ namespace AlibabaCloud void setRequiredDims(const std::vector& requiredDims); std::vector getDimensions()const; void setDimensions(const std::vector& dimensions); - - private: + + private: std::string dateStr_; long minTime_; bool reduceTail_; @@ -100,9 +100,9 @@ namespace AlibabaCloud long datasetId_; std::vector requiredDims_; std::vector dimensions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_QUERYDATASETREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/QueryDatasetResult.h b/arms/include/alibabacloud/arms/model/QueryDatasetResult.h index 273912c92..8af7b5629 100644 --- a/arms/include/alibabacloud/arms/model/QueryDatasetResult.h +++ b/arms/include/alibabacloud/arms/model/QueryDatasetResult.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYDATASETRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_QUERYDATASETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT QueryDatasetResult : public ServiceResult - { - public: - - - QueryDatasetResult(); - explicit QueryDatasetResult(const std::string &payload); - ~QueryDatasetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYDATASETRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_QUERYDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT QueryDatasetResult : public ServiceResult + { + public: + + + QueryDatasetResult(); + explicit QueryDatasetResult(const std::string &payload); + ~QueryDatasetResult(); std::string getData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string data_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_QUERYDATASETRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/QueryMetricRequest.h b/arms/include/alibabacloud/arms/model/QueryMetricRequest.h index 1f949ef6a..338500f77 100644 --- a/arms/include/alibabacloud/arms/model/QueryMetricRequest.h +++ b/arms/include/alibabacloud/arms/model/QueryMetricRequest.h @@ -1,45 +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_ARMS_MODEL_QUERYMETRICREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT QueryMetricRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYMETRICREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT QueryMetricRequest : public RpcServiceRequest + { struct Filters { std::string value; std::string key; }; - - public: - QueryMetricRequest(); - ~QueryMetricRequest(); - + + public: + QueryMetricRequest(); + ~QueryMetricRequest(); + std::vector getMeasures()const; void setMeasures(const std::vector& measures); int getIntervalInSec()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud void setDimensions(const std::vector& dimensions); std::string getOrder()const; void setOrder(const std::string& order); - - private: + + private: std::vector measures_; int intervalInSec_; std::string metric_; @@ -75,9 +75,9 @@ namespace AlibabaCloud std::vector filters_; std::vector dimensions_; std::string order_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_QUERYMETRICREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/QueryMetricResult.h b/arms/include/alibabacloud/arms/model/QueryMetricResult.h index a578d08ae..39945d2a2 100644 --- a/arms/include/alibabacloud/arms/model/QueryMetricResult.h +++ b/arms/include/alibabacloud/arms/model/QueryMetricResult.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYMETRICRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT QueryMetricResult : public ServiceResult - { - public: - - - QueryMetricResult(); - explicit QueryMetricResult(const std::string &payload); - ~QueryMetricResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_QUERYMETRICRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_QUERYMETRICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT QueryMetricResult : public ServiceResult + { + public: + + + QueryMetricResult(); + explicit QueryMetricResult(const std::string &payload); + ~QueryMetricResult(); std::string getData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string data_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_QUERYMETRICRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h b/arms/include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h index 416fbc7f9..a2d0bc93d 100644 --- a/arms/include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h +++ b/arms/include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactGroupRequest : public RpcServiceRequest - { - - public: - SearchAlertContactGroupRequest(); - ~SearchAlertContactGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactGroupRequest : public RpcServiceRequest + { + + public: + SearchAlertContactGroupRequest(); + ~SearchAlertContactGroupRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getContactGroupName()const; void setContactGroupName(const std::string& contactGroupName); - - private: + + private: std::string regionId_; std::string contactGroupName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchAlertContactGroupResult.h b/arms/include/alibabacloud/arms/model/SearchAlertContactGroupResult.h index a1e8252fe..eaa26aa50 100644 --- a/arms/include/alibabacloud/arms/model/SearchAlertContactGroupResult.h +++ b/arms/include/alibabacloud/arms/model/SearchAlertContactGroupResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactGroupResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactGroupResult : public ServiceResult + { + public: struct ContactGroup { long contactGroupId; @@ -40,20 +40,20 @@ namespace AlibabaCloud long createTime; long updateTime; }; - - - SearchAlertContactGroupResult(); - explicit SearchAlertContactGroupResult(const std::string &payload); - ~SearchAlertContactGroupResult(); + + + SearchAlertContactGroupResult(); + explicit SearchAlertContactGroupResult(const std::string &payload); + ~SearchAlertContactGroupResult(); std::vector getContactGroups()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector contactGroups_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTGROUPRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchAlertContactRequest.h b/arms/include/alibabacloud/arms/model/SearchAlertContactRequest.h index 714a5e52f..ddf5a31c7 100644 --- a/arms/include/alibabacloud/arms/model/SearchAlertContactRequest.h +++ b/arms/include/alibabacloud/arms/model/SearchAlertContactRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactRequest : public RpcServiceRequest - { - - public: - SearchAlertContactRequest(); - ~SearchAlertContactRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactRequest : public RpcServiceRequest + { + + public: + SearchAlertContactRequest(); + ~SearchAlertContactRequest(); + std::string getContactName()const; void setContactName(const std::string& contactName); std::string getPhone()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setCurrentPage(const std::string& currentPage); std::string getEmail()const; void setEmail(const std::string& email); - - private: + + private: std::string contactName_; std::string phone_; std::string regionId_; std::string pageSize_; std::string currentPage_; std::string email_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchAlertContactResult.h b/arms/include/alibabacloud/arms/model/SearchAlertContactResult.h index d74d62775..7c22ddfe8 100644 --- a/arms/include/alibabacloud/arms/model/SearchAlertContactResult.h +++ b/arms/include/alibabacloud/arms/model/SearchAlertContactResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTRESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTRESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchAlertContactResult : public ServiceResult + { + public: struct PageBean { struct Contact @@ -51,20 +51,20 @@ namespace AlibabaCloud int pageSize; int pageNumber; }; - - - SearchAlertContactResult(); - explicit SearchAlertContactResult(const std::string &payload); - ~SearchAlertContactResult(); + + + SearchAlertContactResult(); + explicit SearchAlertContactResult(const std::string &payload); + ~SearchAlertContactResult(); PageBean getPageBean()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: PageBean pageBean_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTCONTACTRESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageRequest.h b/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageRequest.h index 780168c6b..198a79029 100644 --- a/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageRequest.h +++ b/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGEREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchRetcodeAppByPageRequest : public RpcServiceRequest - { - - public: - SearchRetcodeAppByPageRequest(); - ~SearchRetcodeAppByPageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGEREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchRetcodeAppByPageRequest : public RpcServiceRequest + { + + public: + SearchRetcodeAppByPageRequest(); + ~SearchRetcodeAppByPageRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getRetcodeAppName()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setPageSize(int pageSize); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string regionId_; std::string retcodeAppName_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGEREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageResult.h b/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageResult.h index 0ef589eac..ba01a330f 100644 --- a/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageResult.h +++ b/arms/include/alibabacloud/arms/model/SearchRetcodeAppByPageResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGERESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchRetcodeAppByPageResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGERESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchRetcodeAppByPageResult : public ServiceResult + { + public: struct PageBean { struct RetcodeApp @@ -50,20 +50,20 @@ namespace AlibabaCloud int pageNumber; std::vector retcodeApps; }; - - - SearchRetcodeAppByPageResult(); - explicit SearchRetcodeAppByPageResult(const std::string &payload); - ~SearchRetcodeAppByPageResult(); + + + SearchRetcodeAppByPageResult(); + explicit SearchRetcodeAppByPageResult(const std::string &payload); + ~SearchRetcodeAppByPageResult(); PageBean getPageBean()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: PageBean pageBean_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHRETCODEAPPBYPAGERESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTraceAppByNameRequest.h b/arms/include/alibabacloud/arms/model/SearchTraceAppByNameRequest.h index 34397613f..28d5e592b 100644 --- a/arms/include/alibabacloud/arms/model/SearchTraceAppByNameRequest.h +++ b/arms/include/alibabacloud/arms/model/SearchTraceAppByNameRequest.h @@ -1,51 +1,51 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMEREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByNameRequest : public RpcServiceRequest - { - - public: - SearchTraceAppByNameRequest(); - ~SearchTraceAppByNameRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMEREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByNameRequest : public RpcServiceRequest + { + + public: + SearchTraceAppByNameRequest(); + ~SearchTraceAppByNameRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getTraceAppName()const; void setTraceAppName(const std::string& traceAppName); - - private: + + private: std::string regionId_; std::string traceAppName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMEREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTraceAppByNameResult.h b/arms/include/alibabacloud/arms/model/SearchTraceAppByNameResult.h index 8b2164809..385356995 100644 --- a/arms/include/alibabacloud/arms/model/SearchTraceAppByNameResult.h +++ b/arms/include/alibabacloud/arms/model/SearchTraceAppByNameResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMERESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByNameResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMERESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByNameResult : public ServiceResult + { + public: struct TraceApp { std::string type; @@ -43,20 +43,20 @@ namespace AlibabaCloud std::string regionId; std::string appName; }; - - - SearchTraceAppByNameResult(); - explicit SearchTraceAppByNameResult(const std::string &payload); - ~SearchTraceAppByNameResult(); + + + SearchTraceAppByNameResult(); + explicit SearchTraceAppByNameResult(const std::string &payload); + ~SearchTraceAppByNameResult(); std::vector getTraceApps()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector traceApps_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYNAMERESULT_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTraceAppByPageRequest.h b/arms/include/alibabacloud/arms/model/SearchTraceAppByPageRequest.h index 2a2c517d4..b62fea347 100644 --- a/arms/include/alibabacloud/arms/model/SearchTraceAppByPageRequest.h +++ b/arms/include/alibabacloud/arms/model/SearchTraceAppByPageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGEREQUEST_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByPageRequest : public RpcServiceRequest - { - - public: - SearchTraceAppByPageRequest(); - ~SearchTraceAppByPageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGEREQUEST_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByPageRequest : public RpcServiceRequest + { + + public: + SearchTraceAppByPageRequest(); + ~SearchTraceAppByPageRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getTraceAppName()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setPageSize(int pageSize); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string regionId_; std::string traceAppName_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGEREQUEST_H_ \ No newline at end of file diff --git a/arms/include/alibabacloud/arms/model/SearchTraceAppByPageResult.h b/arms/include/alibabacloud/arms/model/SearchTraceAppByPageResult.h index 6898c9840..e3e42bcbc 100644 --- a/arms/include/alibabacloud/arms/model/SearchTraceAppByPageResult.h +++ b/arms/include/alibabacloud/arms/model/SearchTraceAppByPageResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGERESULT_H_ -#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace ARMS - { - namespace Model - { - class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByPageResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGERESULT_H_ +#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ARMS + { + namespace Model + { + class ALIBABACLOUD_ARMS_EXPORT SearchTraceAppByPageResult : public ServiceResult + { + public: struct PageBean { struct TraceApp @@ -50,20 +50,20 @@ namespace AlibabaCloud int pageSize; int pageNumber; }; - - - SearchTraceAppByPageResult(); - explicit SearchTraceAppByPageResult(const std::string &payload); - ~SearchTraceAppByPageResult(); + + + SearchTraceAppByPageResult(); + explicit SearchTraceAppByPageResult(const std::string &payload); + ~SearchTraceAppByPageResult(); PageBean getPageBean()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: PageBean pageBean_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACEAPPBYPAGERESULT_H_ \ No newline at end of file diff --git a/arms/src/ARMSClient.cc b/arms/src/ARMSClient.cc index b8920106c..4107e1316 100644 --- a/arms/src/ARMSClient.cc +++ b/arms/src/ARMSClient.cc @@ -1,557 +1,881 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -namespace -{ - const std::string SERVICE_NAME = "ARMS"; -} - -ARMSClient::ARMSClient(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, "arms"); -} - -ARMSClient::ARMSClient(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, "arms"); -} - -ARMSClient::ARMSClient(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, "arms"); -} - -ARMSClient::~ARMSClient() -{} - -ARMSClient::SearchAlertContactOutcome ARMSClient::searchAlertContact(const SearchAlertContactRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchAlertContactOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchAlertContactOutcome(SearchAlertContactResult(outcome.result())); - else - return SearchAlertContactOutcome(outcome.error()); -} - -void ARMSClient::searchAlertContactAsync(const SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchAlertContact(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchAlertContactOutcomeCallable ARMSClient::searchAlertContactCallable(const SearchAlertContactRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchAlertContact(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::ListTraceAppsOutcome ARMSClient::listTraceApps(const ListTraceAppsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTraceAppsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTraceAppsOutcome(ListTraceAppsResult(outcome.result())); - else - return ListTraceAppsOutcome(outcome.error()); -} - -void ARMSClient::listTraceAppsAsync(const ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTraceApps(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::ListTraceAppsOutcomeCallable ARMSClient::listTraceAppsCallable(const ListTraceAppsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTraceApps(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::DeleteRetcodeAppOutcome ARMSClient::deleteRetcodeApp(const DeleteRetcodeAppRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteRetcodeAppOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteRetcodeAppOutcome(DeleteRetcodeAppResult(outcome.result())); - else - return DeleteRetcodeAppOutcome(outcome.error()); -} - -void ARMSClient::deleteRetcodeAppAsync(const DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteRetcodeApp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable(const DeleteRetcodeAppRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteRetcodeApp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::SearchTraceAppByPageOutcome ARMSClient::searchTraceAppByPage(const SearchTraceAppByPageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchTraceAppByPageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchTraceAppByPageOutcome(SearchTraceAppByPageResult(outcome.result())); - else - return SearchTraceAppByPageOutcome(outcome.error()); -} - -void ARMSClient::searchTraceAppByPageAsync(const SearchTraceAppByPageRequest& request, const SearchTraceAppByPageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchTraceAppByPage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchTraceAppByPageOutcomeCallable ARMSClient::searchTraceAppByPageCallable(const SearchTraceAppByPageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchTraceAppByPage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::ImportAppAlertRulesOutcome ARMSClient::importAppAlertRules(const ImportAppAlertRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ImportAppAlertRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ImportAppAlertRulesOutcome(ImportAppAlertRulesResult(outcome.result())); - else - return ImportAppAlertRulesOutcome(outcome.error()); -} - -void ARMSClient::importAppAlertRulesAsync(const ImportAppAlertRulesRequest& request, const ImportAppAlertRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, importAppAlertRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::ImportAppAlertRulesOutcomeCallable ARMSClient::importAppAlertRulesCallable(const ImportAppAlertRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->importAppAlertRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::CreateAlertContactGroupOutcome ARMSClient::createAlertContactGroup(const CreateAlertContactGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAlertContactGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAlertContactGroupOutcome(CreateAlertContactGroupResult(outcome.result())); - else - return CreateAlertContactGroupOutcome(outcome.error()); -} - -void ARMSClient::createAlertContactGroupAsync(const CreateAlertContactGroupRequest& request, const CreateAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAlertContactGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::CreateAlertContactGroupOutcomeCallable ARMSClient::createAlertContactGroupCallable(const CreateAlertContactGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAlertContactGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::QueryDatasetOutcome ARMSClient::queryDataset(const QueryDatasetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryDatasetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryDatasetOutcome(QueryDatasetResult(outcome.result())); - else - return QueryDatasetOutcome(outcome.error()); -} - -void ARMSClient::queryDatasetAsync(const QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryDataset(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::QueryDatasetOutcomeCallable ARMSClient::queryDatasetCallable(const QueryDatasetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryDataset(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::SearchRetcodeAppByPageOutcome ARMSClient::searchRetcodeAppByPage(const SearchRetcodeAppByPageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchRetcodeAppByPageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchRetcodeAppByPageOutcome(SearchRetcodeAppByPageResult(outcome.result())); - else - return SearchRetcodeAppByPageOutcome(outcome.error()); -} - -void ARMSClient::searchRetcodeAppByPageAsync(const SearchRetcodeAppByPageRequest& request, const SearchRetcodeAppByPageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchRetcodeAppByPage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchRetcodeAppByPageOutcomeCallable ARMSClient::searchRetcodeAppByPageCallable(const SearchRetcodeAppByPageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchRetcodeAppByPage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::SearchTraceAppByNameOutcome ARMSClient::searchTraceAppByName(const SearchTraceAppByNameRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchTraceAppByNameOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchTraceAppByNameOutcome(SearchTraceAppByNameResult(outcome.result())); - else - return SearchTraceAppByNameOutcome(outcome.error()); -} - -void ARMSClient::searchTraceAppByNameAsync(const SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchTraceAppByName(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchTraceAppByNameOutcomeCallable ARMSClient::searchTraceAppByNameCallable(const SearchTraceAppByNameRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchTraceAppByName(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::ListRetcodeAppsOutcome ARMSClient::listRetcodeApps(const ListRetcodeAppsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListRetcodeAppsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListRetcodeAppsOutcome(ListRetcodeAppsResult(outcome.result())); - else - return ListRetcodeAppsOutcome(outcome.error()); -} - -void ARMSClient::listRetcodeAppsAsync(const ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listRetcodeApps(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::ListRetcodeAppsOutcomeCallable ARMSClient::listRetcodeAppsCallable(const ListRetcodeAppsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listRetcodeApps(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::SearchAlertContactGroupOutcome ARMSClient::searchAlertContactGroup(const SearchAlertContactGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchAlertContactGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchAlertContactGroupOutcome(SearchAlertContactGroupResult(outcome.result())); - else - return SearchAlertContactGroupOutcome(outcome.error()); -} - -void ARMSClient::searchAlertContactGroupAsync(const SearchAlertContactGroupRequest& request, const SearchAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchAlertContactGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::SearchAlertContactGroupOutcomeCallable ARMSClient::searchAlertContactGroupCallable(const SearchAlertContactGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchAlertContactGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAlertContactOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAlertContactOutcome(CreateAlertContactResult(outcome.result())); - else - return CreateAlertContactOutcome(outcome.error()); -} - -void ARMSClient::createAlertContactAsync(const CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAlertContact(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::CreateAlertContactOutcomeCallable ARMSClient::createAlertContactCallable(const CreateAlertContactRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAlertContact(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::QueryMetricOutcome ARMSClient::queryMetric(const QueryMetricRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMetricOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMetricOutcome(QueryMetricResult(outcome.result())); - else - return QueryMetricOutcome(outcome.error()); -} - -void ARMSClient::queryMetricAsync(const QueryMetricRequest& request, const QueryMetricAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMetric(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::QueryMetricOutcomeCallable ARMSClient::queryMetricCallable(const QueryMetricRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMetric(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ARMSClient::CreateRetcodeAppOutcome ARMSClient::createRetcodeApp(const CreateRetcodeAppRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateRetcodeAppOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateRetcodeAppOutcome(CreateRetcodeAppResult(outcome.result())); - else - return CreateRetcodeAppOutcome(outcome.error()); -} - -void ARMSClient::createRetcodeAppAsync(const CreateRetcodeAppRequest& request, const CreateRetcodeAppAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createRetcodeApp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ARMSClient::CreateRetcodeAppOutcomeCallable ARMSClient::createRetcodeAppCallable(const CreateRetcodeAppRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createRetcodeApp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +namespace +{ + const std::string SERVICE_NAME = "ARMS"; +} + +ARMSClient::ARMSClient(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, "arms"); +} + +ARMSClient::ARMSClient(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, "arms"); +} + +ARMSClient::ARMSClient(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, "arms"); +} + +ARMSClient::~ARMSClient() +{} + +ARMSClient::SearchAlertContactOutcome ARMSClient::searchAlertContact(const SearchAlertContactRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchAlertContactOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchAlertContactOutcome(SearchAlertContactResult(outcome.result())); + else + return SearchAlertContactOutcome(outcome.error()); +} + +void ARMSClient::searchAlertContactAsync(const SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchAlertContact(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchAlertContactOutcomeCallable ARMSClient::searchAlertContactCallable(const SearchAlertContactRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchAlertContact(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::GetTraceOutcome ARMSClient::getTrace(const GetTraceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTraceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTraceOutcome(GetTraceResult(outcome.result())); + else + return GetTraceOutcome(outcome.error()); +} + +void ARMSClient::getTraceAsync(const GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTrace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::GetTraceOutcomeCallable ARMSClient::getTraceCallable(const GetTraceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTrace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::ListTraceAppsOutcome ARMSClient::listTraceApps(const ListTraceAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTraceAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTraceAppsOutcome(ListTraceAppsResult(outcome.result())); + else + return ListTraceAppsOutcome(outcome.error()); +} + +void ARMSClient::listTraceAppsAsync(const ListTraceAppsRequest& request, const ListTraceAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTraceApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::ListTraceAppsOutcomeCallable ARMSClient::listTraceAppsCallable(const ListTraceAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTraceApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::DeleteRetcodeAppOutcome ARMSClient::deleteRetcodeApp(const DeleteRetcodeAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRetcodeAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRetcodeAppOutcome(DeleteRetcodeAppResult(outcome.result())); + else + return DeleteRetcodeAppOutcome(outcome.error()); +} + +void ARMSClient::deleteRetcodeAppAsync(const DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRetcodeApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable(const DeleteRetcodeAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRetcodeApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::SearchTraceAppByPageOutcome ARMSClient::searchTraceAppByPage(const SearchTraceAppByPageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTraceAppByPageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTraceAppByPageOutcome(SearchTraceAppByPageResult(outcome.result())); + else + return SearchTraceAppByPageOutcome(outcome.error()); +} + +void ARMSClient::searchTraceAppByPageAsync(const SearchTraceAppByPageRequest& request, const SearchTraceAppByPageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTraceAppByPage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchTraceAppByPageOutcomeCallable ARMSClient::searchTraceAppByPageCallable(const SearchTraceAppByPageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTraceAppByPage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::ImportAppAlertRulesOutcome ARMSClient::importAppAlertRules(const ImportAppAlertRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportAppAlertRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportAppAlertRulesOutcome(ImportAppAlertRulesResult(outcome.result())); + else + return ImportAppAlertRulesOutcome(outcome.error()); +} + +void ARMSClient::importAppAlertRulesAsync(const ImportAppAlertRulesRequest& request, const ImportAppAlertRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importAppAlertRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::ImportAppAlertRulesOutcomeCallable ARMSClient::importAppAlertRulesCallable(const ImportAppAlertRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importAppAlertRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::CreateAlertContactGroupOutcome ARMSClient::createAlertContactGroup(const CreateAlertContactGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAlertContactGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAlertContactGroupOutcome(CreateAlertContactGroupResult(outcome.result())); + else + return CreateAlertContactGroupOutcome(outcome.error()); +} + +void ARMSClient::createAlertContactGroupAsync(const CreateAlertContactGroupRequest& request, const CreateAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAlertContactGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::CreateAlertContactGroupOutcomeCallable ARMSClient::createAlertContactGroupCallable(const CreateAlertContactGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAlertContactGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::QueryDatasetOutcome ARMSClient::queryDataset(const QueryDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDatasetOutcome(QueryDatasetResult(outcome.result())); + else + return QueryDatasetOutcome(outcome.error()); +} + +void ARMSClient::queryDatasetAsync(const QueryDatasetRequest& request, const QueryDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::QueryDatasetOutcomeCallable ARMSClient::queryDatasetCallable(const QueryDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::SearchTraceAppByNameOutcome ARMSClient::searchTraceAppByName(const SearchTraceAppByNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTraceAppByNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTraceAppByNameOutcome(SearchTraceAppByNameResult(outcome.result())); + else + return SearchTraceAppByNameOutcome(outcome.error()); +} + +void ARMSClient::searchTraceAppByNameAsync(const SearchTraceAppByNameRequest& request, const SearchTraceAppByNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTraceAppByName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchTraceAppByNameOutcomeCallable ARMSClient::searchTraceAppByNameCallable(const SearchTraceAppByNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTraceAppByName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::SearchRetcodeAppByPageOutcome ARMSClient::searchRetcodeAppByPage(const SearchRetcodeAppByPageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchRetcodeAppByPageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchRetcodeAppByPageOutcome(SearchRetcodeAppByPageResult(outcome.result())); + else + return SearchRetcodeAppByPageOutcome(outcome.error()); +} + +void ARMSClient::searchRetcodeAppByPageAsync(const SearchRetcodeAppByPageRequest& request, const SearchRetcodeAppByPageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchRetcodeAppByPage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchRetcodeAppByPageOutcomeCallable ARMSClient::searchRetcodeAppByPageCallable(const SearchRetcodeAppByPageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchRetcodeAppByPage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::ListRetcodeAppsOutcome ARMSClient::listRetcodeApps(const ListRetcodeAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRetcodeAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRetcodeAppsOutcome(ListRetcodeAppsResult(outcome.result())); + else + return ListRetcodeAppsOutcome(outcome.error()); +} + +void ARMSClient::listRetcodeAppsAsync(const ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRetcodeApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::ListRetcodeAppsOutcomeCallable ARMSClient::listRetcodeAppsCallable(const ListRetcodeAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRetcodeApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::GetSpanNamesOutcome ARMSClient::getSpanNames(const GetSpanNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSpanNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSpanNamesOutcome(GetSpanNamesResult(outcome.result())); + else + return GetSpanNamesOutcome(outcome.error()); +} + +void ARMSClient::getSpanNamesAsync(const GetSpanNamesRequest& request, const GetSpanNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSpanNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::GetSpanNamesOutcomeCallable ARMSClient::getSpanNamesCallable(const GetSpanNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSpanNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::GetServicesOutcome ARMSClient::getServices(const GetServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServicesOutcome(GetServicesResult(outcome.result())); + else + return GetServicesOutcome(outcome.error()); +} + +void ARMSClient::getServicesAsync(const GetServicesRequest& request, const GetServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::GetServicesOutcomeCallable ARMSClient::getServicesCallable(const GetServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::MetricQueryOutcome ARMSClient::metricQuery(const MetricQueryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetricQueryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetricQueryOutcome(MetricQueryResult(outcome.result())); + else + return MetricQueryOutcome(outcome.error()); +} + +void ARMSClient::metricQueryAsync(const MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metricQuery(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::MetricQueryOutcomeCallable ARMSClient::metricQueryCallable(const MetricQueryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metricQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::SearchTracesOutcome ARMSClient::searchTraces(const SearchTracesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTracesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTracesOutcome(SearchTracesResult(outcome.result())); + else + return SearchTracesOutcome(outcome.error()); +} + +void ARMSClient::searchTracesAsync(const SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTraces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchTracesOutcomeCallable ARMSClient::searchTracesCallable(const SearchTracesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTraces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::SearchAlertContactGroupOutcome ARMSClient::searchAlertContactGroup(const SearchAlertContactGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchAlertContactGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchAlertContactGroupOutcome(SearchAlertContactGroupResult(outcome.result())); + else + return SearchAlertContactGroupOutcome(outcome.error()); +} + +void ARMSClient::searchAlertContactGroupAsync(const SearchAlertContactGroupRequest& request, const SearchAlertContactGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchAlertContactGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchAlertContactGroupOutcomeCallable ARMSClient::searchAlertContactGroupCallable(const SearchAlertContactGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchAlertContactGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAlertContactOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAlertContactOutcome(CreateAlertContactResult(outcome.result())); + else + return CreateAlertContactOutcome(outcome.error()); +} + +void ARMSClient::createAlertContactAsync(const CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAlertContact(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::CreateAlertContactOutcomeCallable ARMSClient::createAlertContactCallable(const CreateAlertContactRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAlertContact(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::QueryMetricOutcome ARMSClient::queryMetric(const QueryMetricRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMetricOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMetricOutcome(QueryMetricResult(outcome.result())); + else + return QueryMetricOutcome(outcome.error()); +} + +void ARMSClient::queryMetricAsync(const QueryMetricRequest& request, const QueryMetricAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMetric(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::QueryMetricOutcomeCallable ARMSClient::queryMetricCallable(const QueryMetricRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMetric(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::SearchTraceCountOutcome ARMSClient::searchTraceCount(const SearchTraceCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTraceCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTraceCountOutcome(SearchTraceCountResult(outcome.result())); + else + return SearchTraceCountOutcome(outcome.error()); +} + +void ARMSClient::searchTraceCountAsync(const SearchTraceCountRequest& request, const SearchTraceCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTraceCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::SearchTraceCountOutcomeCallable ARMSClient::searchTraceCountCallable(const SearchTraceCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTraceCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::GetTagKeyOutcome ARMSClient::getTagKey(const GetTagKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTagKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTagKeyOutcome(GetTagKeyResult(outcome.result())); + else + return GetTagKeyOutcome(outcome.error()); +} + +void ARMSClient::getTagKeyAsync(const GetTagKeyRequest& request, const GetTagKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTagKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::GetTagKeyOutcomeCallable ARMSClient::getTagKeyCallable(const GetTagKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTagKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::ARMSQueryDataSetOutcome ARMSClient::aRMSQueryDataSet(const ARMSQueryDataSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ARMSQueryDataSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ARMSQueryDataSetOutcome(ARMSQueryDataSetResult(outcome.result())); + else + return ARMSQueryDataSetOutcome(outcome.error()); +} + +void ARMSClient::aRMSQueryDataSetAsync(const ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, aRMSQueryDataSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::ARMSQueryDataSetOutcomeCallable ARMSClient::aRMSQueryDataSetCallable(const ARMSQueryDataSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->aRMSQueryDataSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::CreateRetcodeAppOutcome ARMSClient::createRetcodeApp(const CreateRetcodeAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRetcodeAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRetcodeAppOutcome(CreateRetcodeAppResult(outcome.result())); + else + return CreateRetcodeAppOutcome(outcome.error()); +} + +void ARMSClient::createRetcodeAppAsync(const CreateRetcodeAppRequest& request, const CreateRetcodeAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRetcodeApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::CreateRetcodeAppOutcomeCallable ARMSClient::createRetcodeAppCallable(const CreateRetcodeAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRetcodeApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ARMSClient::GetTagValOutcome ARMSClient::getTagVal(const GetTagValRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTagValOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTagValOutcome(GetTagValResult(outcome.result())); + else + return GetTagValOutcome(outcome.error()); +} + +void ARMSClient::getTagValAsync(const GetTagValRequest& request, const GetTagValAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTagVal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ARMSClient::GetTagValOutcomeCallable ARMSClient::getTagValCallable(const GetTagValRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTagVal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/arms/src/model/CreateAlertContactGroupRequest.cc b/arms/src/model/CreateAlertContactGroupRequest.cc index f9d2c7d7c..62adb6bcf 100644 --- a/arms/src/model/CreateAlertContactGroupRequest.cc +++ b/arms/src/model/CreateAlertContactGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::CreateAlertContactGroupRequest; - -CreateAlertContactGroupRequest::CreateAlertContactGroupRequest() : - RpcServiceRequest("arms", "2019-08-08", "CreateAlertContactGroup") -{} - -CreateAlertContactGroupRequest::~CreateAlertContactGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::CreateAlertContactGroupRequest; + +CreateAlertContactGroupRequest::CreateAlertContactGroupRequest() : + RpcServiceRequest("arms", "2019-08-08", "CreateAlertContactGroup") +{} + +CreateAlertContactGroupRequest::~CreateAlertContactGroupRequest() +{} + std::string CreateAlertContactGroupRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/CreateAlertContactGroupResult.cc b/arms/src/model/CreateAlertContactGroupResult.cc index bae7514de..dcfccb476 100644 --- a/arms/src/model/CreateAlertContactGroupResult.cc +++ b/arms/src/model/CreateAlertContactGroupResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -CreateAlertContactGroupResult::CreateAlertContactGroupResult() : - ServiceResult() -{} - -CreateAlertContactGroupResult::CreateAlertContactGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAlertContactGroupResult::~CreateAlertContactGroupResult() -{} - -void CreateAlertContactGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +CreateAlertContactGroupResult::CreateAlertContactGroupResult() : + ServiceResult() +{} + +CreateAlertContactGroupResult::CreateAlertContactGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAlertContactGroupResult::~CreateAlertContactGroupResult() +{} + +void CreateAlertContactGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ContactGroupId"].isNull()) contactGroupId_ = value["ContactGroupId"].asString(); - -} - + +} + std::string CreateAlertContactGroupResult::getContactGroupId()const { return contactGroupId_; diff --git a/arms/src/model/CreateAlertContactRequest.cc b/arms/src/model/CreateAlertContactRequest.cc index f49ded004..7337b516d 100644 --- a/arms/src/model/CreateAlertContactRequest.cc +++ b/arms/src/model/CreateAlertContactRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::CreateAlertContactRequest; - -CreateAlertContactRequest::CreateAlertContactRequest() : - RpcServiceRequest("arms", "2019-08-08", "CreateAlertContact") -{} - -CreateAlertContactRequest::~CreateAlertContactRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::CreateAlertContactRequest; + +CreateAlertContactRequest::CreateAlertContactRequest() : + RpcServiceRequest("arms", "2019-08-08", "CreateAlertContact") +{} + +CreateAlertContactRequest::~CreateAlertContactRequest() +{} + std::string CreateAlertContactRequest::getContactName()const { return contactName_; diff --git a/arms/src/model/CreateAlertContactResult.cc b/arms/src/model/CreateAlertContactResult.cc index 57d0a0244..72485171a 100644 --- a/arms/src/model/CreateAlertContactResult.cc +++ b/arms/src/model/CreateAlertContactResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -CreateAlertContactResult::CreateAlertContactResult() : - ServiceResult() -{} - -CreateAlertContactResult::CreateAlertContactResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAlertContactResult::~CreateAlertContactResult() -{} - -void CreateAlertContactResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +CreateAlertContactResult::CreateAlertContactResult() : + ServiceResult() +{} + +CreateAlertContactResult::CreateAlertContactResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAlertContactResult::~CreateAlertContactResult() +{} + +void CreateAlertContactResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ContactId"].isNull()) contactId_ = value["ContactId"].asString(); - -} - + +} + std::string CreateAlertContactResult::getContactId()const { return contactId_; diff --git a/arms/src/model/CreateRetcodeAppRequest.cc b/arms/src/model/CreateRetcodeAppRequest.cc index 228b3cc6c..71b116d5f 100644 --- a/arms/src/model/CreateRetcodeAppRequest.cc +++ b/arms/src/model/CreateRetcodeAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::CreateRetcodeAppRequest; - -CreateRetcodeAppRequest::CreateRetcodeAppRequest() : - RpcServiceRequest("arms", "2019-08-08", "CreateRetcodeApp") -{} - -CreateRetcodeAppRequest::~CreateRetcodeAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::CreateRetcodeAppRequest; + +CreateRetcodeAppRequest::CreateRetcodeAppRequest() : + RpcServiceRequest("arms", "2019-08-08", "CreateRetcodeApp") +{} + +CreateRetcodeAppRequest::~CreateRetcodeAppRequest() +{} + std::string CreateRetcodeAppRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/CreateRetcodeAppResult.cc b/arms/src/model/CreateRetcodeAppResult.cc index ebe0aed25..fbdf14ac4 100644 --- a/arms/src/model/CreateRetcodeAppResult.cc +++ b/arms/src/model/CreateRetcodeAppResult.cc @@ -1,53 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -CreateRetcodeAppResult::CreateRetcodeAppResult() : - ServiceResult() -{} - -CreateRetcodeAppResult::CreateRetcodeAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateRetcodeAppResult::~CreateRetcodeAppResult() -{} - -void CreateRetcodeAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +CreateRetcodeAppResult::CreateRetcodeAppResult() : + ServiceResult() +{} + +CreateRetcodeAppResult::CreateRetcodeAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRetcodeAppResult::~CreateRetcodeAppResult() +{} + +void CreateRetcodeAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto retcodeAppDataBeanNode = value["RetcodeAppDataBean"]; if(!retcodeAppDataBeanNode["AppId"].isNull()) retcodeAppDataBean_.appId = std::stol(retcodeAppDataBeanNode["AppId"].asString()); if(!retcodeAppDataBeanNode["Pid"].isNull()) retcodeAppDataBean_.pid = retcodeAppDataBeanNode["Pid"].asString(); - -} - + +} + CreateRetcodeAppResult::RetcodeAppDataBean CreateRetcodeAppResult::getRetcodeAppDataBean()const { return retcodeAppDataBean_; diff --git a/arms/src/model/DeleteRetcodeAppRequest.cc b/arms/src/model/DeleteRetcodeAppRequest.cc index 5a46265b3..88f3c3fb6 100644 --- a/arms/src/model/DeleteRetcodeAppRequest.cc +++ b/arms/src/model/DeleteRetcodeAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::DeleteRetcodeAppRequest; - -DeleteRetcodeAppRequest::DeleteRetcodeAppRequest() : - RpcServiceRequest("arms", "2019-08-08", "DeleteRetcodeApp") -{} - -DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::DeleteRetcodeAppRequest; + +DeleteRetcodeAppRequest::DeleteRetcodeAppRequest() : + RpcServiceRequest("arms", "2019-08-08", "DeleteRetcodeApp") +{} + +DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest() +{} + std::string DeleteRetcodeAppRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/DeleteRetcodeAppResult.cc b/arms/src/model/DeleteRetcodeAppResult.cc index 47f3b9f7d..7d20194ce 100644 --- a/arms/src/model/DeleteRetcodeAppResult.cc +++ b/arms/src/model/DeleteRetcodeAppResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -DeleteRetcodeAppResult::DeleteRetcodeAppResult() : - ServiceResult() -{} - -DeleteRetcodeAppResult::DeleteRetcodeAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteRetcodeAppResult::~DeleteRetcodeAppResult() -{} - -void DeleteRetcodeAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +DeleteRetcodeAppResult::DeleteRetcodeAppResult() : + ServiceResult() +{} + +DeleteRetcodeAppResult::DeleteRetcodeAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRetcodeAppResult::~DeleteRetcodeAppResult() +{} + +void DeleteRetcodeAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); - -} - + +} + std::string DeleteRetcodeAppResult::getData()const { return data_; diff --git a/arms/src/model/ImportAppAlertRulesRequest.cc b/arms/src/model/ImportAppAlertRulesRequest.cc index 303020493..ca0489a80 100644 --- a/arms/src/model/ImportAppAlertRulesRequest.cc +++ b/arms/src/model/ImportAppAlertRulesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::ImportAppAlertRulesRequest; - -ImportAppAlertRulesRequest::ImportAppAlertRulesRequest() : - RpcServiceRequest("arms", "2019-08-08", "ImportAppAlertRules") -{} - -ImportAppAlertRulesRequest::~ImportAppAlertRulesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::ImportAppAlertRulesRequest; + +ImportAppAlertRulesRequest::ImportAppAlertRulesRequest() : + RpcServiceRequest("arms", "2019-08-08", "ImportAppAlertRules") +{} + +ImportAppAlertRulesRequest::~ImportAppAlertRulesRequest() +{} + bool ImportAppAlertRulesRequest::getIsAutoStart()const { return isAutoStart_; diff --git a/arms/src/model/ImportAppAlertRulesResult.cc b/arms/src/model/ImportAppAlertRulesResult.cc index df5c91eff..b53fd4fd6 100644 --- a/arms/src/model/ImportAppAlertRulesResult.cc +++ b/arms/src/model/ImportAppAlertRulesResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -ImportAppAlertRulesResult::ImportAppAlertRulesResult() : - ServiceResult() -{} - -ImportAppAlertRulesResult::ImportAppAlertRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportAppAlertRulesResult::~ImportAppAlertRulesResult() -{} - -void ImportAppAlertRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +ImportAppAlertRulesResult::ImportAppAlertRulesResult() : + ServiceResult() +{} + +ImportAppAlertRulesResult::ImportAppAlertRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportAppAlertRulesResult::~ImportAppAlertRulesResult() +{} + +void ImportAppAlertRulesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); - -} - + +} + std::string ImportAppAlertRulesResult::getData()const { return data_; diff --git a/arms/src/model/ListRetcodeAppsRequest.cc b/arms/src/model/ListRetcodeAppsRequest.cc index 943edc594..0f25ad86a 100644 --- a/arms/src/model/ListRetcodeAppsRequest.cc +++ b/arms/src/model/ListRetcodeAppsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::ListRetcodeAppsRequest; - -ListRetcodeAppsRequest::ListRetcodeAppsRequest() : - RpcServiceRequest("arms", "2019-08-08", "ListRetcodeApps") -{} - -ListRetcodeAppsRequest::~ListRetcodeAppsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::ListRetcodeAppsRequest; + +ListRetcodeAppsRequest::ListRetcodeAppsRequest() : + RpcServiceRequest("arms", "2019-08-08", "ListRetcodeApps") +{} + +ListRetcodeAppsRequest::~ListRetcodeAppsRequest() +{} + std::string ListRetcodeAppsRequest::getSecurityToken()const { return securityToken_; diff --git a/arms/src/model/ListRetcodeAppsResult.cc b/arms/src/model/ListRetcodeAppsResult.cc index da0855c67..b526d2404 100644 --- a/arms/src/model/ListRetcodeAppsResult.cc +++ b/arms/src/model/ListRetcodeAppsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -ListRetcodeAppsResult::ListRetcodeAppsResult() : - ServiceResult() -{} - -ListRetcodeAppsResult::ListRetcodeAppsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListRetcodeAppsResult::~ListRetcodeAppsResult() -{} - -void ListRetcodeAppsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +ListRetcodeAppsResult::ListRetcodeAppsResult() : + ServiceResult() +{} + +ListRetcodeAppsResult::ListRetcodeAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRetcodeAppsResult::~ListRetcodeAppsResult() +{} + +void ListRetcodeAppsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRetcodeApps = value["RetcodeApps"]["RetcodeApp"]; for (auto value : allRetcodeApps) { @@ -52,9 +55,9 @@ void ListRetcodeAppsResult::parse(const std::string &payload) retcodeAppsObject.appName = value["AppName"].asString(); retcodeApps_.push_back(retcodeAppsObject); } - -} - + +} + std::vector ListRetcodeAppsResult::getRetcodeApps()const { return retcodeApps_; diff --git a/arms/src/model/ListTraceAppsRequest.cc b/arms/src/model/ListTraceAppsRequest.cc index e5e6d9f80..7c52595d4 100644 --- a/arms/src/model/ListTraceAppsRequest.cc +++ b/arms/src/model/ListTraceAppsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::ListTraceAppsRequest; - -ListTraceAppsRequest::ListTraceAppsRequest() : - RpcServiceRequest("arms", "2019-08-08", "ListTraceApps") -{} - -ListTraceAppsRequest::~ListTraceAppsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::ListTraceAppsRequest; + +ListTraceAppsRequest::ListTraceAppsRequest() : + RpcServiceRequest("arms", "2019-08-08", "ListTraceApps") +{} + +ListTraceAppsRequest::~ListTraceAppsRequest() +{} + std::string ListTraceAppsRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/ListTraceAppsResult.cc b/arms/src/model/ListTraceAppsResult.cc index 2745faf77..0f9542618 100644 --- a/arms/src/model/ListTraceAppsResult.cc +++ b/arms/src/model/ListTraceAppsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -ListTraceAppsResult::ListTraceAppsResult() : - ServiceResult() -{} - -ListTraceAppsResult::ListTraceAppsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTraceAppsResult::~ListTraceAppsResult() -{} - -void ListTraceAppsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +ListTraceAppsResult::ListTraceAppsResult() : + ServiceResult() +{} + +ListTraceAppsResult::ListTraceAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTraceAppsResult::~ListTraceAppsResult() +{} + +void ListTraceAppsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTraceApps = value["TraceApps"]["TraceApp"]; for (auto value : allTraceApps) { @@ -68,9 +71,9 @@ void ListTraceAppsResult::parse(const std::string &payload) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::vector ListTraceAppsResult::getTraceApps()const { return traceApps_; diff --git a/arms/src/model/QueryDatasetRequest.cc b/arms/src/model/QueryDatasetRequest.cc index cfcd2a0ed..c6d595ce3 100644 --- a/arms/src/model/QueryDatasetRequest.cc +++ b/arms/src/model/QueryDatasetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::QueryDatasetRequest; - -QueryDatasetRequest::QueryDatasetRequest() : - RpcServiceRequest("arms", "2019-08-08", "QueryDataset") -{} - -QueryDatasetRequest::~QueryDatasetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::QueryDatasetRequest; + +QueryDatasetRequest::QueryDatasetRequest() : + RpcServiceRequest("arms", "2019-08-08", "QueryDataset") +{} + +QueryDatasetRequest::~QueryDatasetRequest() +{} + std::string QueryDatasetRequest::getDateStr()const { return dateStr_; diff --git a/arms/src/model/QueryDatasetResult.cc b/arms/src/model/QueryDatasetResult.cc index 7258e81ba..363176c4b 100644 --- a/arms/src/model/QueryDatasetResult.cc +++ b/arms/src/model/QueryDatasetResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -QueryDatasetResult::QueryDatasetResult() : - ServiceResult() -{} - -QueryDatasetResult::QueryDatasetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryDatasetResult::~QueryDatasetResult() -{} - -void QueryDatasetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +QueryDatasetResult::QueryDatasetResult() : + ServiceResult() +{} + +QueryDatasetResult::QueryDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDatasetResult::~QueryDatasetResult() +{} + +void QueryDatasetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); - -} - + +} + std::string QueryDatasetResult::getData()const { return data_; diff --git a/arms/src/model/QueryMetricRequest.cc b/arms/src/model/QueryMetricRequest.cc index 461db4bc8..59c326d10 100644 --- a/arms/src/model/QueryMetricRequest.cc +++ b/arms/src/model/QueryMetricRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::QueryMetricRequest; - -QueryMetricRequest::QueryMetricRequest() : - RpcServiceRequest("arms", "2019-08-08", "QueryMetric") -{} - -QueryMetricRequest::~QueryMetricRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::QueryMetricRequest; + +QueryMetricRequest::QueryMetricRequest() : + RpcServiceRequest("arms", "2019-08-08", "QueryMetric") +{} + +QueryMetricRequest::~QueryMetricRequest() +{} + std::vector QueryMetricRequest::getMeasures()const { return measures_; diff --git a/arms/src/model/QueryMetricResult.cc b/arms/src/model/QueryMetricResult.cc index 3ff1d6121..ee5aa6168 100644 --- a/arms/src/model/QueryMetricResult.cc +++ b/arms/src/model/QueryMetricResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -QueryMetricResult::QueryMetricResult() : - ServiceResult() -{} - -QueryMetricResult::QueryMetricResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryMetricResult::~QueryMetricResult() -{} - -void QueryMetricResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +QueryMetricResult::QueryMetricResult() : + ServiceResult() +{} + +QueryMetricResult::QueryMetricResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMetricResult::~QueryMetricResult() +{} + +void QueryMetricResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); - -} - + +} + std::string QueryMetricResult::getData()const { return data_; diff --git a/arms/src/model/SearchAlertContactGroupRequest.cc b/arms/src/model/SearchAlertContactGroupRequest.cc index 0f48b4f23..0c74481aa 100644 --- a/arms/src/model/SearchAlertContactGroupRequest.cc +++ b/arms/src/model/SearchAlertContactGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::SearchAlertContactGroupRequest; - -SearchAlertContactGroupRequest::SearchAlertContactGroupRequest() : - RpcServiceRequest("arms", "2019-08-08", "SearchAlertContactGroup") -{} - -SearchAlertContactGroupRequest::~SearchAlertContactGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::SearchAlertContactGroupRequest; + +SearchAlertContactGroupRequest::SearchAlertContactGroupRequest() : + RpcServiceRequest("arms", "2019-08-08", "SearchAlertContactGroup") +{} + +SearchAlertContactGroupRequest::~SearchAlertContactGroupRequest() +{} + std::string SearchAlertContactGroupRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/SearchAlertContactGroupResult.cc b/arms/src/model/SearchAlertContactGroupResult.cc index 7b393a877..a05020278 100644 --- a/arms/src/model/SearchAlertContactGroupResult.cc +++ b/arms/src/model/SearchAlertContactGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -SearchAlertContactGroupResult::SearchAlertContactGroupResult() : - ServiceResult() -{} - -SearchAlertContactGroupResult::SearchAlertContactGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchAlertContactGroupResult::~SearchAlertContactGroupResult() -{} - -void SearchAlertContactGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +SearchAlertContactGroupResult::SearchAlertContactGroupResult() : + ServiceResult() +{} + +SearchAlertContactGroupResult::SearchAlertContactGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchAlertContactGroupResult::~SearchAlertContactGroupResult() +{} + +void SearchAlertContactGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allContactGroups = value["ContactGroups"]["ContactGroup"]; for (auto value : allContactGroups) { @@ -56,9 +59,9 @@ void SearchAlertContactGroupResult::parse(const std::string &payload) contactGroupsObject.updateTime = std::stol(value["UpdateTime"].asString()); contactGroups_.push_back(contactGroupsObject); } - -} - + +} + std::vector SearchAlertContactGroupResult::getContactGroups()const { return contactGroups_; diff --git a/arms/src/model/SearchAlertContactRequest.cc b/arms/src/model/SearchAlertContactRequest.cc index d1af2fce9..c9af9f82a 100644 --- a/arms/src/model/SearchAlertContactRequest.cc +++ b/arms/src/model/SearchAlertContactRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::SearchAlertContactRequest; - -SearchAlertContactRequest::SearchAlertContactRequest() : - RpcServiceRequest("arms", "2019-08-08", "SearchAlertContact") -{} - -SearchAlertContactRequest::~SearchAlertContactRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::SearchAlertContactRequest; + +SearchAlertContactRequest::SearchAlertContactRequest() : + RpcServiceRequest("arms", "2019-08-08", "SearchAlertContact") +{} + +SearchAlertContactRequest::~SearchAlertContactRequest() +{} + std::string SearchAlertContactRequest::getContactName()const { return contactName_; diff --git a/arms/src/model/SearchAlertContactResult.cc b/arms/src/model/SearchAlertContactResult.cc index 1a13695b0..5acdabbbb 100644 --- a/arms/src/model/SearchAlertContactResult.cc +++ b/arms/src/model/SearchAlertContactResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -SearchAlertContactResult::SearchAlertContactResult() : - ServiceResult() -{} - -SearchAlertContactResult::SearchAlertContactResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchAlertContactResult::~SearchAlertContactResult() -{} - -void SearchAlertContactResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +SearchAlertContactResult::SearchAlertContactResult() : + ServiceResult() +{} + +SearchAlertContactResult::SearchAlertContactResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchAlertContactResult::~SearchAlertContactResult() +{} + +void SearchAlertContactResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto pageBeanNode = value["PageBean"]; if(!pageBeanNode["TotalCount"].isNull()) pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString()); @@ -71,9 +74,9 @@ void SearchAlertContactResult::parse(const std::string &payload) contactObject.systemNoc = value["SystemNoc"].asString() == "true"; pageBean_.contacts.push_back(contactObject); } - -} - + +} + SearchAlertContactResult::PageBean SearchAlertContactResult::getPageBean()const { return pageBean_; diff --git a/arms/src/model/SearchRetcodeAppByPageRequest.cc b/arms/src/model/SearchRetcodeAppByPageRequest.cc index 34b9dea0b..63cc8042c 100644 --- a/arms/src/model/SearchRetcodeAppByPageRequest.cc +++ b/arms/src/model/SearchRetcodeAppByPageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::SearchRetcodeAppByPageRequest; - -SearchRetcodeAppByPageRequest::SearchRetcodeAppByPageRequest() : - RpcServiceRequest("arms", "2019-08-08", "SearchRetcodeAppByPage") -{} - -SearchRetcodeAppByPageRequest::~SearchRetcodeAppByPageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::SearchRetcodeAppByPageRequest; + +SearchRetcodeAppByPageRequest::SearchRetcodeAppByPageRequest() : + RpcServiceRequest("arms", "2019-08-08", "SearchRetcodeAppByPage") +{} + +SearchRetcodeAppByPageRequest::~SearchRetcodeAppByPageRequest() +{} + std::string SearchRetcodeAppByPageRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/SearchRetcodeAppByPageResult.cc b/arms/src/model/SearchRetcodeAppByPageResult.cc index 7318d2d2c..6311ffa2f 100644 --- a/arms/src/model/SearchRetcodeAppByPageResult.cc +++ b/arms/src/model/SearchRetcodeAppByPageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult() : - ServiceResult() -{} - -SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchRetcodeAppByPageResult::~SearchRetcodeAppByPageResult() -{} - -void SearchRetcodeAppByPageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult() : + ServiceResult() +{} + +SearchRetcodeAppByPageResult::SearchRetcodeAppByPageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchRetcodeAppByPageResult::~SearchRetcodeAppByPageResult() +{} + +void SearchRetcodeAppByPageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto pageBeanNode = value["PageBean"]; if(!pageBeanNode["TotalCount"].isNull()) pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString()); @@ -69,9 +72,9 @@ void SearchRetcodeAppByPageResult::parse(const std::string &payload) retcodeAppObject.updateTime = std::stol(value["UpdateTime"].asString()); pageBean_.retcodeApps.push_back(retcodeAppObject); } - -} - + +} + SearchRetcodeAppByPageResult::PageBean SearchRetcodeAppByPageResult::getPageBean()const { return pageBean_; diff --git a/arms/src/model/SearchTraceAppByNameRequest.cc b/arms/src/model/SearchTraceAppByNameRequest.cc index e91b9c4e9..2e24e2d03 100644 --- a/arms/src/model/SearchTraceAppByNameRequest.cc +++ b/arms/src/model/SearchTraceAppByNameRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::SearchTraceAppByNameRequest; - -SearchTraceAppByNameRequest::SearchTraceAppByNameRequest() : - RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByName") -{} - -SearchTraceAppByNameRequest::~SearchTraceAppByNameRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::SearchTraceAppByNameRequest; + +SearchTraceAppByNameRequest::SearchTraceAppByNameRequest() : + RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByName") +{} + +SearchTraceAppByNameRequest::~SearchTraceAppByNameRequest() +{} + std::string SearchTraceAppByNameRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/SearchTraceAppByNameResult.cc b/arms/src/model/SearchTraceAppByNameResult.cc index 1379f9b1a..21462b1bb 100644 --- a/arms/src/model/SearchTraceAppByNameResult.cc +++ b/arms/src/model/SearchTraceAppByNameResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -SearchTraceAppByNameResult::SearchTraceAppByNameResult() : - ServiceResult() -{} - -SearchTraceAppByNameResult::SearchTraceAppByNameResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchTraceAppByNameResult::~SearchTraceAppByNameResult() -{} - -void SearchTraceAppByNameResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +SearchTraceAppByNameResult::SearchTraceAppByNameResult() : + ServiceResult() +{} + +SearchTraceAppByNameResult::SearchTraceAppByNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchTraceAppByNameResult::~SearchTraceAppByNameResult() +{} + +void SearchTraceAppByNameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTraceApps = value["TraceApps"]["TraceApp"]; for (auto value : allTraceApps) { @@ -62,9 +65,9 @@ void SearchTraceAppByNameResult::parse(const std::string &payload) traceAppsObject.updateTime = std::stol(value["UpdateTime"].asString()); traceApps_.push_back(traceAppsObject); } - -} - + +} + std::vector SearchTraceAppByNameResult::getTraceApps()const { return traceApps_; diff --git a/arms/src/model/SearchTraceAppByPageRequest.cc b/arms/src/model/SearchTraceAppByPageRequest.cc index 73d3cdaf8..d5bef90c0 100644 --- a/arms/src/model/SearchTraceAppByPageRequest.cc +++ b/arms/src/model/SearchTraceAppByPageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::ARMS::Model::SearchTraceAppByPageRequest; - -SearchTraceAppByPageRequest::SearchTraceAppByPageRequest() : - RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByPage") -{} - -SearchTraceAppByPageRequest::~SearchTraceAppByPageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ARMS::Model::SearchTraceAppByPageRequest; + +SearchTraceAppByPageRequest::SearchTraceAppByPageRequest() : + RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByPage") +{} + +SearchTraceAppByPageRequest::~SearchTraceAppByPageRequest() +{} + std::string SearchTraceAppByPageRequest::getRegionId()const { return regionId_; diff --git a/arms/src/model/SearchTraceAppByPageResult.cc b/arms/src/model/SearchTraceAppByPageResult.cc index 3ef584a2f..5eae12c03 100644 --- a/arms/src/model/SearchTraceAppByPageResult.cc +++ b/arms/src/model/SearchTraceAppByPageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::ARMS; -using namespace AlibabaCloud::ARMS::Model; - -SearchTraceAppByPageResult::SearchTraceAppByPageResult() : - ServiceResult() -{} - -SearchTraceAppByPageResult::SearchTraceAppByPageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchTraceAppByPageResult::~SearchTraceAppByPageResult() -{} - -void SearchTraceAppByPageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ARMS; +using namespace AlibabaCloud::ARMS::Model; + +SearchTraceAppByPageResult::SearchTraceAppByPageResult() : + ServiceResult() +{} + +SearchTraceAppByPageResult::SearchTraceAppByPageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchTraceAppByPageResult::~SearchTraceAppByPageResult() +{} + +void SearchTraceAppByPageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto pageBeanNode = value["PageBean"]; if(!pageBeanNode["TotalCount"].isNull()) pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString()); @@ -69,9 +72,9 @@ void SearchTraceAppByPageResult::parse(const std::string &payload) traceAppObject.updateTime = std::stol(value["UpdateTime"].asString()); pageBean_.traceApps.push_back(traceAppObject); } - -} - + +} + SearchTraceAppByPageResult::PageBean SearchTraceAppByPageResult::getPageBean()const { return pageBean_; diff --git a/arms4finance/src/model/ARMSQueryDataSetRequest.cc b/arms4finance/src/model/ARMSQueryDataSetRequest.cc index 048aa4ecb..ce0279c09 100644 --- a/arms4finance/src/model/ARMSQueryDataSetRequest.cc +++ b/arms4finance/src/model/ARMSQueryDataSetRequest.cc @@ -34,7 +34,7 @@ void ARMSQueryDataSetRequest::setMeasures(const std::vector& measur { measures_ = measures; for(int i = 0; i!= measures.size(); i++) - setParameter("Measures."+ std::to_string(i), measures.at(i)); + setCoreParameter("Measures."+ std::to_string(i), measures.at(i)); } int ARMSQueryDataSetRequest::getIntervalInSec()const @@ -45,7 +45,7 @@ int ARMSQueryDataSetRequest::getIntervalInSec()const void ARMSQueryDataSetRequest::setIntervalInSec(int intervalInSec) { intervalInSec_ = intervalInSec; - setParameter("IntervalInSec", std::to_string(intervalInSec)); + setCoreParameter("IntervalInSec", std::to_string(intervalInSec)); } std::string ARMSQueryDataSetRequest::getDateStr()const @@ -56,7 +56,7 @@ std::string ARMSQueryDataSetRequest::getDateStr()const void ARMSQueryDataSetRequest::setDateStr(const std::string& dateStr) { dateStr_ = dateStr; - setParameter("DateStr", dateStr); + setCoreParameter("DateStr", dateStr); } bool ARMSQueryDataSetRequest::getIsDrillDown()const @@ -67,7 +67,7 @@ bool ARMSQueryDataSetRequest::getIsDrillDown()const void ARMSQueryDataSetRequest::setIsDrillDown(bool isDrillDown) { isDrillDown_ = isDrillDown; - setParameter("IsDrillDown", std::to_string(isDrillDown)); + setCoreParameter("IsDrillDown", isDrillDown ? "true" : "false"); } long ARMSQueryDataSetRequest::getMinTime()const @@ -78,7 +78,7 @@ long ARMSQueryDataSetRequest::getMinTime()const void ARMSQueryDataSetRequest::setMinTime(long minTime) { minTime_ = minTime; - setParameter("MinTime", std::to_string(minTime)); + setCoreParameter("MinTime", std::to_string(minTime)); } long ARMSQueryDataSetRequest::getDatasetId()const @@ -89,7 +89,7 @@ long ARMSQueryDataSetRequest::getDatasetId()const void ARMSQueryDataSetRequest::setDatasetId(long datasetId) { datasetId_ = datasetId; - setParameter("DatasetId", std::to_string(datasetId)); + setCoreParameter("DatasetId", std::to_string(datasetId)); } long ARMSQueryDataSetRequest::getMaxTime()const @@ -100,7 +100,7 @@ long ARMSQueryDataSetRequest::getMaxTime()const void ARMSQueryDataSetRequest::setMaxTime(long maxTime) { maxTime_ = maxTime; - setParameter("MaxTime", std::to_string(maxTime)); + setCoreParameter("MaxTime", std::to_string(maxTime)); } std::vector ARMSQueryDataSetRequest::getDimensions()const @@ -115,8 +115,8 @@ void ARMSQueryDataSetRequest::setDimensions(const std::vector& dimen for(int i = 0; i!= dimensions.size(); i++) { auto obj = dimensions.at(i); std::string str ="Dimensions."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } diff --git a/arms4finance/src/model/ARMSQueryDataSetResult.cc b/arms4finance/src/model/ARMSQueryDataSetResult.cc index e256ab853..10cc14de5 100644 --- a/arms4finance/src/model/ARMSQueryDataSetResult.cc +++ b/arms4finance/src/model/ARMSQueryDataSetResult.cc @@ -35,10 +35,13 @@ ARMSQueryDataSetResult::~ARMSQueryDataSetResult() void ARMSQueryDataSetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); diff --git a/arms4finance/src/model/WhereInDimQueryRequest.cc b/arms4finance/src/model/WhereInDimQueryRequest.cc index 1b8b18c07..7d04d8a71 100644 --- a/arms4finance/src/model/WhereInDimQueryRequest.cc +++ b/arms4finance/src/model/WhereInDimQueryRequest.cc @@ -33,7 +33,7 @@ std::string WhereInDimQueryRequest::getWhereInKey()const void WhereInDimQueryRequest::setWhereInKey(const std::string& whereInKey) { whereInKey_ = whereInKey; - setParameter("WhereInKey", whereInKey); + setCoreParameter("WhereInKey", whereInKey); } std::vector WhereInDimQueryRequest::getMeasures()const @@ -45,7 +45,7 @@ void WhereInDimQueryRequest::setMeasures(const std::vector& measure { measures_ = measures; for(int i = 0; i!= measures.size(); i++) - setParameter("Measures."+ std::to_string(i), measures.at(i)); + setCoreParameter("Measures."+ std::to_string(i), measures.at(i)); } int WhereInDimQueryRequest::getIntervalInSec()const @@ -56,7 +56,7 @@ int WhereInDimQueryRequest::getIntervalInSec()const void WhereInDimQueryRequest::setIntervalInSec(int intervalInSec) { intervalInSec_ = intervalInSec; - setParameter("IntervalInSec", std::to_string(intervalInSec)); + setCoreParameter("IntervalInSec", std::to_string(intervalInSec)); } std::string WhereInDimQueryRequest::getDateStr()const @@ -67,7 +67,7 @@ std::string WhereInDimQueryRequest::getDateStr()const void WhereInDimQueryRequest::setDateStr(const std::string& dateStr) { dateStr_ = dateStr; - setParameter("DateStr", dateStr); + setCoreParameter("DateStr", dateStr); } bool WhereInDimQueryRequest::getIsDrillDown()const @@ -78,7 +78,7 @@ bool WhereInDimQueryRequest::getIsDrillDown()const void WhereInDimQueryRequest::setIsDrillDown(bool isDrillDown) { isDrillDown_ = isDrillDown; - setParameter("IsDrillDown", std::to_string(isDrillDown)); + setCoreParameter("IsDrillDown", isDrillDown ? "true" : "false"); } long WhereInDimQueryRequest::getMinTime()const @@ -89,7 +89,7 @@ long WhereInDimQueryRequest::getMinTime()const void WhereInDimQueryRequest::setMinTime(long minTime) { minTime_ = minTime; - setParameter("MinTime", std::to_string(minTime)); + setCoreParameter("MinTime", std::to_string(minTime)); } long WhereInDimQueryRequest::getDatasetId()const @@ -100,7 +100,7 @@ long WhereInDimQueryRequest::getDatasetId()const void WhereInDimQueryRequest::setDatasetId(long datasetId) { datasetId_ = datasetId; - setParameter("DatasetId", std::to_string(datasetId)); + setCoreParameter("DatasetId", std::to_string(datasetId)); } std::vector WhereInDimQueryRequest::getWhereInValues()const @@ -112,7 +112,7 @@ void WhereInDimQueryRequest::setWhereInValues(const std::vector& wh { whereInValues_ = whereInValues; for(int i = 0; i!= whereInValues.size(); i++) - setParameter("WhereInValues."+ std::to_string(i), whereInValues.at(i)); + setCoreParameter("WhereInValues."+ std::to_string(i), whereInValues.at(i)); } long WhereInDimQueryRequest::getMaxTime()const @@ -123,7 +123,7 @@ long WhereInDimQueryRequest::getMaxTime()const void WhereInDimQueryRequest::setMaxTime(long maxTime) { maxTime_ = maxTime; - setParameter("MaxTime", std::to_string(maxTime)); + setCoreParameter("MaxTime", std::to_string(maxTime)); } std::vector WhereInDimQueryRequest::getDimensions()const @@ -138,8 +138,8 @@ void WhereInDimQueryRequest::setDimensions(const std::vector& dimens for(int i = 0; i!= dimensions.size(); i++) { auto obj = dimensions.at(i); std::string str ="Dimensions."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } diff --git a/arms4finance/src/model/WhereInDimQueryResult.cc b/arms4finance/src/model/WhereInDimQueryResult.cc index e6e8ae33f..09cbe35ee 100644 --- a/arms4finance/src/model/WhereInDimQueryResult.cc +++ b/arms4finance/src/model/WhereInDimQueryResult.cc @@ -35,10 +35,13 @@ WhereInDimQueryResult::~WhereInDimQueryResult() void WhereInDimQueryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); diff --git a/bssopenapi/CMakeLists.txt b/bssopenapi/CMakeLists.txt index 2f9b8fc10..afe180e0a 100644 --- a/bssopenapi/CMakeLists.txt +++ b/bssopenapi/CMakeLists.txt @@ -23,6 +23,8 @@ set(bssopenapi_public_header set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h + include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h + include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h include/alibabacloud/bssopenapi/model/CreateUserQuotaRequest.h include/alibabacloud/bssopenapi/model/CreateUserQuotaResult.h include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h @@ -33,6 +35,8 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h include/alibabacloud/bssopenapi/model/QueryUserAlarmThresholdRequest.h include/alibabacloud/bssopenapi/model/QueryUserAlarmThresholdResult.h + include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h + include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h include/alibabacloud/bssopenapi/model/SubscribeDetailRequest.h include/alibabacloud/bssopenapi/model/SubscribeDetailResult.h include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h @@ -45,6 +49,10 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h include/alibabacloud/bssopenapi/model/RenewInstanceResult.h + include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h + include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h + include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h + include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h @@ -53,10 +61,10 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h - include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h - include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h include/alibabacloud/bssopenapi/model/QueryEnduserStatusRequest.h include/alibabacloud/bssopenapi/model/QueryEnduserStatusResult.h + include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h + include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h @@ -65,6 +73,8 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/SetUserQuotaResult.h include/alibabacloud/bssopenapi/model/UnsubscribeExportToOSSRequest.h include/alibabacloud/bssopenapi/model/UnsubscribeExportToOSSResult.h + include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h + include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h include/alibabacloud/bssopenapi/model/QueryPriceListRequest.h include/alibabacloud/bssopenapi/model/QueryPriceListResult.h include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h @@ -75,32 +85,42 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h - include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h - include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h include/alibabacloud/bssopenapi/model/ChangeConsumeAmountRequest.h include/alibabacloud/bssopenapi/model/ChangeConsumeAmountResult.h include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h include/alibabacloud/bssopenapi/model/QueryProductListRequest.h include/alibabacloud/bssopenapi/model/QueryProductListResult.h + include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h + include/alibabacloud/bssopenapi/model/GetCustomerListResult.h + include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h + include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h include/alibabacloud/bssopenapi/model/SetUserAlarmThresholdRequest.h include/alibabacloud/bssopenapi/model/SetUserAlarmThresholdResult.h include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h + include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h + include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h + include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h + include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h include/alibabacloud/bssopenapi/model/QueryAccountBookListRequest.h include/alibabacloud/bssopenapi/model/QueryAccountBookListResult.h - include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h - include/alibabacloud/bssopenapi/model/QueryOrdersResult.h include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h + include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h + include/alibabacloud/bssopenapi/model/QueryOrdersResult.h include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h + include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h + include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h + include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h + include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h include/alibabacloud/bssopenapi/model/SubscribeExportToOSSRequest.h @@ -113,10 +133,10 @@ set(bssopenapi_public_header_model include/alibabacloud/bssopenapi/model/QueryBillResult.h include/alibabacloud/bssopenapi/model/SetRenewalRequest.h include/alibabacloud/bssopenapi/model/SetRenewalResult.h - include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h - include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h + include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h + include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h @@ -126,6 +146,8 @@ set(bssopenapi_src src/BssOpenApiClient.cc src/model/QueryMonthlyBillRequest.cc src/model/QueryMonthlyBillResult.cc + src/model/QueryAccountTransactionsRequest.cc + src/model/QueryAccountTransactionsResult.cc src/model/CreateUserQuotaRequest.cc src/model/CreateUserQuotaResult.cc src/model/CreateInstanceRequest.cc @@ -136,6 +158,8 @@ set(bssopenapi_src src/model/QueryResourcePackageInstancesResult.cc src/model/QueryUserAlarmThresholdRequest.cc src/model/QueryUserAlarmThresholdResult.cc + src/model/SetResellerUserQuotaRequest.cc + src/model/SetResellerUserQuotaResult.cc src/model/SubscribeDetailRequest.cc src/model/SubscribeDetailResult.cc src/model/EnableBillGenerationRequest.cc @@ -148,6 +172,10 @@ set(bssopenapi_src src/model/QueryAccountBalanceResult.cc src/model/RenewInstanceRequest.cc src/model/RenewInstanceResult.cc + src/model/SetResellerUserAlarmThresholdRequest.cc + src/model/SetResellerUserAlarmThresholdResult.cc + src/model/CreateAgAccountRequest.cc + src/model/CreateAgAccountResult.cc src/model/QueryInstanceGaapCostRequest.cc src/model/QueryInstanceGaapCostResult.cc src/model/QueryMonthlyInstanceConsumptionRequest.cc @@ -156,10 +184,10 @@ set(bssopenapi_src src/model/QueryPrepaidCardsResult.cc src/model/QueryAvailableInstancesRequest.cc src/model/QueryAvailableInstancesResult.cc - src/model/GetOrderDetailRequest.cc - src/model/GetOrderDetailResult.cc src/model/QueryEnduserStatusRequest.cc src/model/QueryEnduserStatusResult.cc + src/model/GetOrderDetailRequest.cc + src/model/GetOrderDetailResult.cc src/model/ModifyInstanceRequest.cc src/model/ModifyInstanceResult.cc src/model/QueryCustomerAddressListRequest.cc @@ -168,6 +196,8 @@ set(bssopenapi_src src/model/SetUserQuotaResult.cc src/model/UnsubscribeExportToOSSRequest.cc src/model/UnsubscribeExportToOSSResult.cc + src/model/CreateResellerUserQuotaRequest.cc + src/model/CreateResellerUserQuotaResult.cc src/model/QueryPriceListRequest.cc src/model/QueryPriceListResult.cc src/model/QueryRedeemRequest.cc @@ -178,32 +208,42 @@ set(bssopenapi_src src/model/GetPayAsYouGoPriceResult.cc src/model/GetResourcePackagePriceRequest.cc src/model/GetResourcePackagePriceResult.cc - src/model/UnsubscribeBillToOSSRequest.cc - src/model/UnsubscribeBillToOSSResult.cc src/model/ChangeConsumeAmountRequest.cc src/model/ChangeConsumeAmountResult.cc src/model/ApplyInvoiceRequest.cc src/model/ApplyInvoiceResult.cc src/model/QueryProductListRequest.cc src/model/QueryProductListResult.cc + src/model/GetCustomerListRequest.cc + src/model/GetCustomerListResult.cc + src/model/UnsubscribeBillToOSSRequest.cc + src/model/UnsubscribeBillToOSSResult.cc src/model/SetUserAlarmThresholdRequest.cc src/model/SetUserAlarmThresholdResult.cc src/model/GetSubscriptionPriceRequest.cc src/model/GetSubscriptionPriceResult.cc + src/model/QueryResellerAvailableQuotaRequest.cc + src/model/QueryResellerAvailableQuotaResult.cc + src/model/SetResellerUserStatusRequest.cc + src/model/SetResellerUserStatusResult.cc src/model/QueryAccountBookListRequest.cc src/model/QueryAccountBookListResult.cc - src/model/QueryOrdersRequest.cc - src/model/QueryOrdersResult.cc src/model/QueryCashCouponsRequest.cc src/model/QueryCashCouponsResult.cc + src/model/QueryOrdersRequest.cc + src/model/QueryOrdersResult.cc src/model/QueryEvaluateListRequest.cc src/model/QueryEvaluateListResult.cc src/model/DescribePricingModuleRequest.cc src/model/DescribePricingModuleResult.cc src/model/DescribeResourcePackageProductRequest.cc src/model/DescribeResourcePackageProductResult.cc + src/model/ChangeResellerConsumeAmountRequest.cc + src/model/ChangeResellerConsumeAmountResult.cc src/model/CreateResourcePackageRequest.cc src/model/CreateResourcePackageResult.cc + src/model/GetCustomerAccountInfoRequest.cc + src/model/GetCustomerAccountInfoResult.cc src/model/QueryInstanceBillRequest.cc src/model/QueryInstanceBillResult.cc src/model/SubscribeExportToOSSRequest.cc @@ -216,10 +256,10 @@ set(bssopenapi_src src/model/QueryBillResult.cc src/model/SetRenewalRequest.cc src/model/SetRenewalResult.cc - src/model/ConvertChargeTypeRequest.cc - src/model/ConvertChargeTypeResult.cc src/model/QueryBillOverviewRequest.cc src/model/QueryBillOverviewResult.cc + src/model/ConvertChargeTypeRequest.cc + src/model/ConvertChargeTypeResult.cc src/model/QuerySettlementBillRequest.cc src/model/QuerySettlementBillResult.cc src/model/QueryUserOmsDataRequest.cc diff --git a/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h b/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h index 074843fea..de7887f5e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiClient.h @@ -1,53 +1,83 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_BSSOPENAPICLIENT_H_ -#define ALIBABACLOUD_BSSOPENAPI_BSSOPENAPICLIENT_H_ - -#include -#include -#include -#include -#include "BssOpenApiExport.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_BSSOPENAPICLIENT_H_ +#define ALIBABACLOUD_BSSOPENAPI_BSSOPENAPICLIENT_H_ + +#include +#include +#include +#include +#include "BssOpenApiExport.h" #include "model/QueryMonthlyBillRequest.h" #include "model/QueryMonthlyBillResult.h" +#include "model/QueryAccountTransactionsRequest.h" +#include "model/QueryAccountTransactionsResult.h" +#include "model/CreateUserQuotaRequest.h" +#include "model/CreateUserQuotaResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" +#include "model/CancelOrderRequest.h" +#include "model/CancelOrderResult.h" +#include "model/QueryResourcePackageInstancesRequest.h" +#include "model/QueryResourcePackageInstancesResult.h" +#include "model/QueryUserAlarmThresholdRequest.h" +#include "model/QueryUserAlarmThresholdResult.h" +#include "model/SetResellerUserQuotaRequest.h" +#include "model/SetResellerUserQuotaResult.h" +#include "model/SubscribeDetailRequest.h" +#include "model/SubscribeDetailResult.h" +#include "model/EnableBillGenerationRequest.h" +#include "model/EnableBillGenerationResult.h" +#include "model/SetEnduserStatusRequest.h" +#include "model/SetEnduserStatusResult.h" +#include "model/QueryInvoicingCustomerListRequest.h" +#include "model/QueryInvoicingCustomerListResult.h" +#include "model/QueryAccountBalanceRequest.h" +#include "model/QueryAccountBalanceResult.h" +#include "model/RenewInstanceRequest.h" +#include "model/RenewInstanceResult.h" +#include "model/SetResellerUserAlarmThresholdRequest.h" +#include "model/SetResellerUserAlarmThresholdResult.h" +#include "model/CreateAgAccountRequest.h" +#include "model/CreateAgAccountResult.h" #include "model/QueryInstanceGaapCostRequest.h" #include "model/QueryInstanceGaapCostResult.h" #include "model/QueryMonthlyInstanceConsumptionRequest.h" #include "model/QueryMonthlyInstanceConsumptionResult.h" -#include "model/QueryAccountTransactionsRequest.h" -#include "model/QueryAccountTransactionsResult.h" #include "model/QueryPrepaidCardsRequest.h" #include "model/QueryPrepaidCardsResult.h" #include "model/QueryAvailableInstancesRequest.h" #include "model/QueryAvailableInstancesResult.h" -#include "model/CreateInstanceRequest.h" -#include "model/CreateInstanceResult.h" +#include "model/QueryEnduserStatusRequest.h" +#include "model/QueryEnduserStatusResult.h" #include "model/GetOrderDetailRequest.h" #include "model/GetOrderDetailResult.h" -#include "model/QueryCustomerAddressListRequest.h" -#include "model/QueryCustomerAddressListResult.h" #include "model/ModifyInstanceRequest.h" #include "model/ModifyInstanceResult.h" -#include "model/CancelOrderRequest.h" -#include "model/CancelOrderResult.h" +#include "model/QueryCustomerAddressListRequest.h" +#include "model/QueryCustomerAddressListResult.h" +#include "model/SetUserQuotaRequest.h" +#include "model/SetUserQuotaResult.h" +#include "model/UnsubscribeExportToOSSRequest.h" +#include "model/UnsubscribeExportToOSSResult.h" #include "model/CreateResellerUserQuotaRequest.h" #include "model/CreateResellerUserQuotaResult.h" -#include "model/QueryResourcePackageInstancesRequest.h" -#include "model/QueryResourcePackageInstancesResult.h" +#include "model/QueryPriceListRequest.h" +#include "model/QueryPriceListResult.h" #include "model/QueryRedeemRequest.h" #include "model/QueryRedeemResult.h" #include "model/SubscribeBillToOSSRequest.h" @@ -56,359 +86,441 @@ #include "model/GetPayAsYouGoPriceResult.h" #include "model/GetResourcePackagePriceRequest.h" #include "model/GetResourcePackagePriceResult.h" -#include "model/QueryProductListRequest.h" -#include "model/QueryProductListResult.h" +#include "model/ChangeConsumeAmountRequest.h" +#include "model/ChangeConsumeAmountResult.h" #include "model/ApplyInvoiceRequest.h" #include "model/ApplyInvoiceResult.h" -#include "model/UnsubscribeBillToOSSRequest.h" -#include "model/UnsubscribeBillToOSSResult.h" +#include "model/QueryProductListRequest.h" +#include "model/QueryProductListResult.h" #include "model/GetCustomerListRequest.h" #include "model/GetCustomerListResult.h" +#include "model/UnsubscribeBillToOSSRequest.h" +#include "model/UnsubscribeBillToOSSResult.h" +#include "model/SetUserAlarmThresholdRequest.h" +#include "model/SetUserAlarmThresholdResult.h" #include "model/GetSubscriptionPriceRequest.h" #include "model/GetSubscriptionPriceResult.h" #include "model/QueryResellerAvailableQuotaRequest.h" #include "model/QueryResellerAvailableQuotaResult.h" -#include "model/SetResellerUserQuotaRequest.h" -#include "model/SetResellerUserQuotaResult.h" #include "model/SetResellerUserStatusRequest.h" #include "model/SetResellerUserStatusResult.h" -#include "model/EnableBillGenerationRequest.h" -#include "model/EnableBillGenerationResult.h" -#include "model/QueryOrdersRequest.h" -#include "model/QueryOrdersResult.h" +#include "model/QueryAccountBookListRequest.h" +#include "model/QueryAccountBookListResult.h" #include "model/QueryCashCouponsRequest.h" #include "model/QueryCashCouponsResult.h" -#include "model/QueryInvoicingCustomerListRequest.h" -#include "model/QueryInvoicingCustomerListResult.h" -#include "model/DescribePricingModuleRequest.h" -#include "model/DescribePricingModuleResult.h" +#include "model/QueryOrdersRequest.h" +#include "model/QueryOrdersResult.h" #include "model/QueryEvaluateListRequest.h" #include "model/QueryEvaluateListResult.h" -#include "model/QueryAccountBalanceRequest.h" -#include "model/QueryAccountBalanceResult.h" +#include "model/DescribePricingModuleRequest.h" +#include "model/DescribePricingModuleResult.h" #include "model/DescribeResourcePackageProductRequest.h" #include "model/DescribeResourcePackageProductResult.h" #include "model/ChangeResellerConsumeAmountRequest.h" #include "model/ChangeResellerConsumeAmountResult.h" -#include "model/RenewInstanceRequest.h" -#include "model/RenewInstanceResult.h" #include "model/CreateResourcePackageRequest.h" #include "model/CreateResourcePackageResult.h" #include "model/GetCustomerAccountInfoRequest.h" #include "model/GetCustomerAccountInfoResult.h" #include "model/QueryInstanceBillRequest.h" #include "model/QueryInstanceBillResult.h" -#include "model/SetResellerUserAlarmThresholdRequest.h" -#include "model/SetResellerUserAlarmThresholdResult.h" +#include "model/SubscribeExportToOSSRequest.h" +#include "model/SubscribeExportToOSSResult.h" +#include "model/QueryAvaliableQuotaRequest.h" +#include "model/QueryAvaliableQuotaResult.h" +#include "model/QueryPriceRequest.h" +#include "model/QueryPriceResult.h" #include "model/QueryBillRequest.h" #include "model/QueryBillResult.h" #include "model/SetRenewalRequest.h" #include "model/SetRenewalResult.h" -#include "model/CreateAgAccountRequest.h" -#include "model/CreateAgAccountResult.h" -#include "model/ConvertChargeTypeRequest.h" -#include "model/ConvertChargeTypeResult.h" #include "model/QueryBillOverviewRequest.h" #include "model/QueryBillOverviewResult.h" +#include "model/ConvertChargeTypeRequest.h" +#include "model/ConvertChargeTypeResult.h" #include "model/QuerySettlementBillRequest.h" #include "model/QuerySettlementBillResult.h" #include "model/QueryUserOmsDataRequest.h" #include "model/QueryUserOmsDataResult.h" - - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT BssOpenApiClient : public RpcServiceClient - { - public: - typedef Outcome QueryMonthlyBillOutcome; - typedef std::future QueryMonthlyBillOutcomeCallable; + + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT BssOpenApiClient : public RpcServiceClient + { + public: + typedef Outcome QueryMonthlyBillOutcome; + typedef std::future QueryMonthlyBillOutcomeCallable; typedef std::function&)> QueryMonthlyBillAsyncHandler; - typedef Outcome QueryInstanceGaapCostOutcome; - typedef std::future QueryInstanceGaapCostOutcomeCallable; - typedef std::function&)> QueryInstanceGaapCostAsyncHandler; - typedef Outcome QueryMonthlyInstanceConsumptionOutcome; - typedef std::future QueryMonthlyInstanceConsumptionOutcomeCallable; - typedef std::function&)> QueryMonthlyInstanceConsumptionAsyncHandler; - typedef Outcome QueryAccountTransactionsOutcome; - typedef std::future QueryAccountTransactionsOutcomeCallable; + typedef Outcome QueryAccountTransactionsOutcome; + typedef std::future QueryAccountTransactionsOutcomeCallable; typedef std::function&)> QueryAccountTransactionsAsyncHandler; - typedef Outcome QueryPrepaidCardsOutcome; - typedef std::future QueryPrepaidCardsOutcomeCallable; - typedef std::function&)> QueryPrepaidCardsAsyncHandler; - typedef Outcome QueryAvailableInstancesOutcome; - typedef std::future QueryAvailableInstancesOutcomeCallable; - typedef std::function&)> QueryAvailableInstancesAsyncHandler; - typedef Outcome CreateInstanceOutcome; - typedef std::future CreateInstanceOutcomeCallable; + typedef Outcome CreateUserQuotaOutcome; + typedef std::future CreateUserQuotaOutcomeCallable; + typedef std::function&)> CreateUserQuotaAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; typedef std::function&)> CreateInstanceAsyncHandler; - typedef Outcome GetOrderDetailOutcome; - typedef std::future GetOrderDetailOutcomeCallable; - typedef std::function&)> GetOrderDetailAsyncHandler; - typedef Outcome QueryCustomerAddressListOutcome; - typedef std::future QueryCustomerAddressListOutcomeCallable; - typedef std::function&)> QueryCustomerAddressListAsyncHandler; - typedef Outcome ModifyInstanceOutcome; - typedef std::future ModifyInstanceOutcomeCallable; - typedef std::function&)> ModifyInstanceAsyncHandler; - typedef Outcome CancelOrderOutcome; - typedef std::future CancelOrderOutcomeCallable; + typedef Outcome CancelOrderOutcome; + typedef std::future CancelOrderOutcomeCallable; typedef std::function&)> CancelOrderAsyncHandler; - typedef Outcome CreateResellerUserQuotaOutcome; - typedef std::future CreateResellerUserQuotaOutcomeCallable; - typedef std::function&)> CreateResellerUserQuotaAsyncHandler; - typedef Outcome QueryResourcePackageInstancesOutcome; - typedef std::future QueryResourcePackageInstancesOutcomeCallable; + typedef Outcome QueryResourcePackageInstancesOutcome; + typedef std::future QueryResourcePackageInstancesOutcomeCallable; typedef std::function&)> QueryResourcePackageInstancesAsyncHandler; - typedef Outcome QueryRedeemOutcome; - typedef std::future QueryRedeemOutcomeCallable; - typedef std::function&)> QueryRedeemAsyncHandler; - typedef Outcome SubscribeBillToOSSOutcome; - typedef std::future SubscribeBillToOSSOutcomeCallable; - typedef std::function&)> SubscribeBillToOSSAsyncHandler; - typedef Outcome GetPayAsYouGoPriceOutcome; - typedef std::future GetPayAsYouGoPriceOutcomeCallable; - typedef std::function&)> GetPayAsYouGoPriceAsyncHandler; - typedef Outcome GetResourcePackagePriceOutcome; - typedef std::future GetResourcePackagePriceOutcomeCallable; - typedef std::function&)> GetResourcePackagePriceAsyncHandler; - typedef Outcome QueryProductListOutcome; - typedef std::future QueryProductListOutcomeCallable; - typedef std::function&)> QueryProductListAsyncHandler; - typedef Outcome ApplyInvoiceOutcome; - typedef std::future ApplyInvoiceOutcomeCallable; - typedef std::function&)> ApplyInvoiceAsyncHandler; - typedef Outcome UnsubscribeBillToOSSOutcome; - typedef std::future UnsubscribeBillToOSSOutcomeCallable; - typedef std::function&)> UnsubscribeBillToOSSAsyncHandler; - typedef Outcome GetCustomerListOutcome; - typedef std::future GetCustomerListOutcomeCallable; - typedef std::function&)> GetCustomerListAsyncHandler; - typedef Outcome GetSubscriptionPriceOutcome; - typedef std::future GetSubscriptionPriceOutcomeCallable; - typedef std::function&)> GetSubscriptionPriceAsyncHandler; - typedef Outcome QueryResellerAvailableQuotaOutcome; - typedef std::future QueryResellerAvailableQuotaOutcomeCallable; - typedef std::function&)> QueryResellerAvailableQuotaAsyncHandler; - typedef Outcome SetResellerUserQuotaOutcome; - typedef std::future SetResellerUserQuotaOutcomeCallable; + typedef Outcome QueryUserAlarmThresholdOutcome; + typedef std::future QueryUserAlarmThresholdOutcomeCallable; + typedef std::function&)> QueryUserAlarmThresholdAsyncHandler; + typedef Outcome SetResellerUserQuotaOutcome; + typedef std::future SetResellerUserQuotaOutcomeCallable; typedef std::function&)> SetResellerUserQuotaAsyncHandler; - typedef Outcome SetResellerUserStatusOutcome; - typedef std::future SetResellerUserStatusOutcomeCallable; - typedef std::function&)> SetResellerUserStatusAsyncHandler; - typedef Outcome EnableBillGenerationOutcome; - typedef std::future EnableBillGenerationOutcomeCallable; + typedef Outcome SubscribeDetailOutcome; + typedef std::future SubscribeDetailOutcomeCallable; + typedef std::function&)> SubscribeDetailAsyncHandler; + typedef Outcome EnableBillGenerationOutcome; + typedef std::future EnableBillGenerationOutcomeCallable; typedef std::function&)> EnableBillGenerationAsyncHandler; - typedef Outcome QueryOrdersOutcome; - typedef std::future QueryOrdersOutcomeCallable; - typedef std::function&)> QueryOrdersAsyncHandler; - typedef Outcome QueryCashCouponsOutcome; - typedef std::future QueryCashCouponsOutcomeCallable; - typedef std::function&)> QueryCashCouponsAsyncHandler; - typedef Outcome QueryInvoicingCustomerListOutcome; - typedef std::future QueryInvoicingCustomerListOutcomeCallable; + typedef Outcome SetEnduserStatusOutcome; + typedef std::future SetEnduserStatusOutcomeCallable; + typedef std::function&)> SetEnduserStatusAsyncHandler; + typedef Outcome QueryInvoicingCustomerListOutcome; + typedef std::future QueryInvoicingCustomerListOutcomeCallable; typedef std::function&)> QueryInvoicingCustomerListAsyncHandler; - typedef Outcome DescribePricingModuleOutcome; - typedef std::future DescribePricingModuleOutcomeCallable; - typedef std::function&)> DescribePricingModuleAsyncHandler; - typedef Outcome QueryEvaluateListOutcome; - typedef std::future QueryEvaluateListOutcomeCallable; - typedef std::function&)> QueryEvaluateListAsyncHandler; - typedef Outcome QueryAccountBalanceOutcome; - typedef std::future QueryAccountBalanceOutcomeCallable; + typedef Outcome QueryAccountBalanceOutcome; + typedef std::future QueryAccountBalanceOutcomeCallable; typedef std::function&)> QueryAccountBalanceAsyncHandler; - typedef Outcome DescribeResourcePackageProductOutcome; - typedef std::future DescribeResourcePackageProductOutcomeCallable; - typedef std::function&)> DescribeResourcePackageProductAsyncHandler; - typedef Outcome ChangeResellerConsumeAmountOutcome; - typedef std::future ChangeResellerConsumeAmountOutcomeCallable; - typedef std::function&)> ChangeResellerConsumeAmountAsyncHandler; - typedef Outcome RenewInstanceOutcome; - typedef std::future RenewInstanceOutcomeCallable; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; typedef std::function&)> RenewInstanceAsyncHandler; - typedef Outcome CreateResourcePackageOutcome; - typedef std::future CreateResourcePackageOutcomeCallable; - typedef std::function&)> CreateResourcePackageAsyncHandler; - typedef Outcome GetCustomerAccountInfoOutcome; - typedef std::future GetCustomerAccountInfoOutcomeCallable; - typedef std::function&)> GetCustomerAccountInfoAsyncHandler; - typedef Outcome QueryInstanceBillOutcome; - typedef std::future QueryInstanceBillOutcomeCallable; - typedef std::function&)> QueryInstanceBillAsyncHandler; - typedef Outcome SetResellerUserAlarmThresholdOutcome; - typedef std::future SetResellerUserAlarmThresholdOutcomeCallable; + typedef Outcome SetResellerUserAlarmThresholdOutcome; + typedef std::future SetResellerUserAlarmThresholdOutcomeCallable; typedef std::function&)> SetResellerUserAlarmThresholdAsyncHandler; - typedef Outcome QueryBillOutcome; - typedef std::future QueryBillOutcomeCallable; - typedef std::function&)> QueryBillAsyncHandler; - typedef Outcome SetRenewalOutcome; - typedef std::future SetRenewalOutcomeCallable; - typedef std::function&)> SetRenewalAsyncHandler; - typedef Outcome CreateAgAccountOutcome; - typedef std::future CreateAgAccountOutcomeCallable; + typedef Outcome CreateAgAccountOutcome; + typedef std::future CreateAgAccountOutcomeCallable; typedef std::function&)> CreateAgAccountAsyncHandler; - typedef Outcome ConvertChargeTypeOutcome; - typedef std::future ConvertChargeTypeOutcomeCallable; - typedef std::function&)> ConvertChargeTypeAsyncHandler; - typedef Outcome QueryBillOverviewOutcome; - typedef std::future QueryBillOverviewOutcomeCallable; + typedef Outcome QueryInstanceGaapCostOutcome; + typedef std::future QueryInstanceGaapCostOutcomeCallable; + typedef std::function&)> QueryInstanceGaapCostAsyncHandler; + typedef Outcome QueryMonthlyInstanceConsumptionOutcome; + typedef std::future QueryMonthlyInstanceConsumptionOutcomeCallable; + typedef std::function&)> QueryMonthlyInstanceConsumptionAsyncHandler; + typedef Outcome QueryPrepaidCardsOutcome; + typedef std::future QueryPrepaidCardsOutcomeCallable; + typedef std::function&)> QueryPrepaidCardsAsyncHandler; + typedef Outcome QueryAvailableInstancesOutcome; + typedef std::future QueryAvailableInstancesOutcomeCallable; + typedef std::function&)> QueryAvailableInstancesAsyncHandler; + typedef Outcome QueryEnduserStatusOutcome; + typedef std::future QueryEnduserStatusOutcomeCallable; + typedef std::function&)> QueryEnduserStatusAsyncHandler; + typedef Outcome GetOrderDetailOutcome; + typedef std::future GetOrderDetailOutcomeCallable; + typedef std::function&)> GetOrderDetailAsyncHandler; + typedef Outcome ModifyInstanceOutcome; + typedef std::future ModifyInstanceOutcomeCallable; + typedef std::function&)> ModifyInstanceAsyncHandler; + typedef Outcome QueryCustomerAddressListOutcome; + typedef std::future QueryCustomerAddressListOutcomeCallable; + typedef std::function&)> QueryCustomerAddressListAsyncHandler; + typedef Outcome SetUserQuotaOutcome; + typedef std::future SetUserQuotaOutcomeCallable; + typedef std::function&)> SetUserQuotaAsyncHandler; + typedef Outcome UnsubscribeExportToOSSOutcome; + typedef std::future UnsubscribeExportToOSSOutcomeCallable; + typedef std::function&)> UnsubscribeExportToOSSAsyncHandler; + typedef Outcome CreateResellerUserQuotaOutcome; + typedef std::future CreateResellerUserQuotaOutcomeCallable; + typedef std::function&)> CreateResellerUserQuotaAsyncHandler; + typedef Outcome QueryPriceListOutcome; + typedef std::future QueryPriceListOutcomeCallable; + typedef std::function&)> QueryPriceListAsyncHandler; + typedef Outcome QueryRedeemOutcome; + typedef std::future QueryRedeemOutcomeCallable; + typedef std::function&)> QueryRedeemAsyncHandler; + typedef Outcome SubscribeBillToOSSOutcome; + typedef std::future SubscribeBillToOSSOutcomeCallable; + typedef std::function&)> SubscribeBillToOSSAsyncHandler; + typedef Outcome GetPayAsYouGoPriceOutcome; + typedef std::future GetPayAsYouGoPriceOutcomeCallable; + typedef std::function&)> GetPayAsYouGoPriceAsyncHandler; + typedef Outcome GetResourcePackagePriceOutcome; + typedef std::future GetResourcePackagePriceOutcomeCallable; + typedef std::function&)> GetResourcePackagePriceAsyncHandler; + typedef Outcome ChangeConsumeAmountOutcome; + typedef std::future ChangeConsumeAmountOutcomeCallable; + typedef std::function&)> ChangeConsumeAmountAsyncHandler; + typedef Outcome ApplyInvoiceOutcome; + typedef std::future ApplyInvoiceOutcomeCallable; + typedef std::function&)> ApplyInvoiceAsyncHandler; + typedef Outcome QueryProductListOutcome; + typedef std::future QueryProductListOutcomeCallable; + typedef std::function&)> QueryProductListAsyncHandler; + typedef Outcome GetCustomerListOutcome; + typedef std::future GetCustomerListOutcomeCallable; + typedef std::function&)> GetCustomerListAsyncHandler; + typedef Outcome UnsubscribeBillToOSSOutcome; + typedef std::future UnsubscribeBillToOSSOutcomeCallable; + typedef std::function&)> UnsubscribeBillToOSSAsyncHandler; + typedef Outcome SetUserAlarmThresholdOutcome; + typedef std::future SetUserAlarmThresholdOutcomeCallable; + typedef std::function&)> SetUserAlarmThresholdAsyncHandler; + typedef Outcome GetSubscriptionPriceOutcome; + typedef std::future GetSubscriptionPriceOutcomeCallable; + typedef std::function&)> GetSubscriptionPriceAsyncHandler; + typedef Outcome QueryResellerAvailableQuotaOutcome; + typedef std::future QueryResellerAvailableQuotaOutcomeCallable; + typedef std::function&)> QueryResellerAvailableQuotaAsyncHandler; + typedef Outcome SetResellerUserStatusOutcome; + typedef std::future SetResellerUserStatusOutcomeCallable; + typedef std::function&)> SetResellerUserStatusAsyncHandler; + typedef Outcome QueryAccountBookListOutcome; + typedef std::future QueryAccountBookListOutcomeCallable; + typedef std::function&)> QueryAccountBookListAsyncHandler; + typedef Outcome QueryCashCouponsOutcome; + typedef std::future QueryCashCouponsOutcomeCallable; + typedef std::function&)> QueryCashCouponsAsyncHandler; + typedef Outcome QueryOrdersOutcome; + typedef std::future QueryOrdersOutcomeCallable; + typedef std::function&)> QueryOrdersAsyncHandler; + typedef Outcome QueryEvaluateListOutcome; + typedef std::future QueryEvaluateListOutcomeCallable; + typedef std::function&)> QueryEvaluateListAsyncHandler; + typedef Outcome DescribePricingModuleOutcome; + typedef std::future DescribePricingModuleOutcomeCallable; + typedef std::function&)> DescribePricingModuleAsyncHandler; + typedef Outcome DescribeResourcePackageProductOutcome; + typedef std::future DescribeResourcePackageProductOutcomeCallable; + typedef std::function&)> DescribeResourcePackageProductAsyncHandler; + typedef Outcome ChangeResellerConsumeAmountOutcome; + typedef std::future ChangeResellerConsumeAmountOutcomeCallable; + typedef std::function&)> ChangeResellerConsumeAmountAsyncHandler; + typedef Outcome CreateResourcePackageOutcome; + typedef std::future CreateResourcePackageOutcomeCallable; + typedef std::function&)> CreateResourcePackageAsyncHandler; + typedef Outcome GetCustomerAccountInfoOutcome; + typedef std::future GetCustomerAccountInfoOutcomeCallable; + typedef std::function&)> GetCustomerAccountInfoAsyncHandler; + typedef Outcome QueryInstanceBillOutcome; + typedef std::future QueryInstanceBillOutcomeCallable; + typedef std::function&)> QueryInstanceBillAsyncHandler; + typedef Outcome SubscribeExportToOSSOutcome; + typedef std::future SubscribeExportToOSSOutcomeCallable; + typedef std::function&)> SubscribeExportToOSSAsyncHandler; + typedef Outcome QueryAvaliableQuotaOutcome; + typedef std::future QueryAvaliableQuotaOutcomeCallable; + typedef std::function&)> QueryAvaliableQuotaAsyncHandler; + typedef Outcome QueryPriceOutcome; + typedef std::future QueryPriceOutcomeCallable; + typedef std::function&)> QueryPriceAsyncHandler; + typedef Outcome QueryBillOutcome; + typedef std::future QueryBillOutcomeCallable; + typedef std::function&)> QueryBillAsyncHandler; + typedef Outcome SetRenewalOutcome; + typedef std::future SetRenewalOutcomeCallable; + typedef std::function&)> SetRenewalAsyncHandler; + typedef Outcome QueryBillOverviewOutcome; + typedef std::future QueryBillOverviewOutcomeCallable; typedef std::function&)> QueryBillOverviewAsyncHandler; - typedef Outcome QuerySettlementBillOutcome; - typedef std::future QuerySettlementBillOutcomeCallable; + typedef Outcome ConvertChargeTypeOutcome; + typedef std::future ConvertChargeTypeOutcomeCallable; + typedef std::function&)> ConvertChargeTypeAsyncHandler; + typedef Outcome QuerySettlementBillOutcome; + typedef std::future QuerySettlementBillOutcomeCallable; typedef std::function&)> QuerySettlementBillAsyncHandler; - typedef Outcome QueryUserOmsDataOutcome; - typedef std::future QueryUserOmsDataOutcomeCallable; + typedef Outcome QueryUserOmsDataOutcome; + typedef std::future QueryUserOmsDataOutcomeCallable; typedef std::function&)> QueryUserOmsDataAsyncHandler; - - BssOpenApiClient(const Credentials &credentials, const ClientConfiguration &configuration); - BssOpenApiClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - BssOpenApiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~BssOpenApiClient(); - QueryMonthlyBillOutcome queryMonthlyBill(const Model::QueryMonthlyBillRequest &request)const; - void queryMonthlyBillAsync(const Model::QueryMonthlyBillRequest& request, const QueryMonthlyBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + + BssOpenApiClient(const Credentials &credentials, const ClientConfiguration &configuration); + BssOpenApiClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + BssOpenApiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~BssOpenApiClient(); + QueryMonthlyBillOutcome queryMonthlyBill(const Model::QueryMonthlyBillRequest &request)const; + void queryMonthlyBillAsync(const Model::QueryMonthlyBillRequest& request, const QueryMonthlyBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMonthlyBillOutcomeCallable queryMonthlyBillCallable(const Model::QueryMonthlyBillRequest& request) const; - QueryInstanceGaapCostOutcome queryInstanceGaapCost(const Model::QueryInstanceGaapCostRequest &request)const; - void queryInstanceGaapCostAsync(const Model::QueryInstanceGaapCostRequest& request, const QueryInstanceGaapCostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryInstanceGaapCostOutcomeCallable queryInstanceGaapCostCallable(const Model::QueryInstanceGaapCostRequest& request) const; - QueryMonthlyInstanceConsumptionOutcome queryMonthlyInstanceConsumption(const Model::QueryMonthlyInstanceConsumptionRequest &request)const; - void queryMonthlyInstanceConsumptionAsync(const Model::QueryMonthlyInstanceConsumptionRequest& request, const QueryMonthlyInstanceConsumptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMonthlyInstanceConsumptionOutcomeCallable queryMonthlyInstanceConsumptionCallable(const Model::QueryMonthlyInstanceConsumptionRequest& request) const; - QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const; - void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const; + void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryAccountTransactionsOutcomeCallable queryAccountTransactionsCallable(const Model::QueryAccountTransactionsRequest& request) const; - QueryPrepaidCardsOutcome queryPrepaidCards(const Model::QueryPrepaidCardsRequest &request)const; - void queryPrepaidCardsAsync(const Model::QueryPrepaidCardsRequest& request, const QueryPrepaidCardsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryPrepaidCardsOutcomeCallable queryPrepaidCardsCallable(const Model::QueryPrepaidCardsRequest& request) const; - QueryAvailableInstancesOutcome queryAvailableInstances(const Model::QueryAvailableInstancesRequest &request)const; - void queryAvailableInstancesAsync(const Model::QueryAvailableInstancesRequest& request, const QueryAvailableInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryAvailableInstancesOutcomeCallable queryAvailableInstancesCallable(const Model::QueryAvailableInstancesRequest& request) const; - CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; - void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserQuotaOutcome createUserQuota(const Model::CreateUserQuotaRequest &request)const; + void createUserQuotaAsync(const Model::CreateUserQuotaRequest& request, const CreateUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserQuotaOutcomeCallable createUserQuotaCallable(const Model::CreateUserQuotaRequest& request) const; + CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; + void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; - GetOrderDetailOutcome getOrderDetail(const Model::GetOrderDetailRequest &request)const; - void getOrderDetailAsync(const Model::GetOrderDetailRequest& request, const GetOrderDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOrderDetailOutcomeCallable getOrderDetailCallable(const Model::GetOrderDetailRequest& request) const; - QueryCustomerAddressListOutcome queryCustomerAddressList(const Model::QueryCustomerAddressListRequest &request)const; - void queryCustomerAddressListAsync(const Model::QueryCustomerAddressListRequest& request, const QueryCustomerAddressListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomerAddressListOutcomeCallable queryCustomerAddressListCallable(const Model::QueryCustomerAddressListRequest& request) const; - ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const; - void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const; - CancelOrderOutcome cancelOrder(const Model::CancelOrderRequest &request)const; - void cancelOrderAsync(const Model::CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelOrderOutcome cancelOrder(const Model::CancelOrderRequest &request)const; + void cancelOrderAsync(const Model::CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelOrderOutcomeCallable cancelOrderCallable(const Model::CancelOrderRequest& request) const; - CreateResellerUserQuotaOutcome createResellerUserQuota(const Model::CreateResellerUserQuotaRequest &request)const; - void createResellerUserQuotaAsync(const Model::CreateResellerUserQuotaRequest& request, const CreateResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateResellerUserQuotaOutcomeCallable createResellerUserQuotaCallable(const Model::CreateResellerUserQuotaRequest& request) const; - QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const; - void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const; + void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const; - QueryRedeemOutcome queryRedeem(const Model::QueryRedeemRequest &request)const; - void queryRedeemAsync(const Model::QueryRedeemRequest& request, const QueryRedeemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryRedeemOutcomeCallable queryRedeemCallable(const Model::QueryRedeemRequest& request) const; - SubscribeBillToOSSOutcome subscribeBillToOSS(const Model::SubscribeBillToOSSRequest &request)const; - void subscribeBillToOSSAsync(const Model::SubscribeBillToOSSRequest& request, const SubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubscribeBillToOSSOutcomeCallable subscribeBillToOSSCallable(const Model::SubscribeBillToOSSRequest& request) const; - GetPayAsYouGoPriceOutcome getPayAsYouGoPrice(const Model::GetPayAsYouGoPriceRequest &request)const; - void getPayAsYouGoPriceAsync(const Model::GetPayAsYouGoPriceRequest& request, const GetPayAsYouGoPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPayAsYouGoPriceOutcomeCallable getPayAsYouGoPriceCallable(const Model::GetPayAsYouGoPriceRequest& request) const; - GetResourcePackagePriceOutcome getResourcePackagePrice(const Model::GetResourcePackagePriceRequest &request)const; - void getResourcePackagePriceAsync(const Model::GetResourcePackagePriceRequest& request, const GetResourcePackagePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetResourcePackagePriceOutcomeCallable getResourcePackagePriceCallable(const Model::GetResourcePackagePriceRequest& request) const; - QueryProductListOutcome queryProductList(const Model::QueryProductListRequest &request)const; - void queryProductListAsync(const Model::QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryProductListOutcomeCallable queryProductListCallable(const Model::QueryProductListRequest& request) const; - ApplyInvoiceOutcome applyInvoice(const Model::ApplyInvoiceRequest &request)const; - void applyInvoiceAsync(const Model::ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ApplyInvoiceOutcomeCallable applyInvoiceCallable(const Model::ApplyInvoiceRequest& request) const; - UnsubscribeBillToOSSOutcome unsubscribeBillToOSS(const Model::UnsubscribeBillToOSSRequest &request)const; - void unsubscribeBillToOSSAsync(const Model::UnsubscribeBillToOSSRequest& request, const UnsubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnsubscribeBillToOSSOutcomeCallable unsubscribeBillToOSSCallable(const Model::UnsubscribeBillToOSSRequest& request) const; - GetCustomerListOutcome getCustomerList(const Model::GetCustomerListRequest &request)const; - void getCustomerListAsync(const Model::GetCustomerListRequest& request, const GetCustomerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCustomerListOutcomeCallable getCustomerListCallable(const Model::GetCustomerListRequest& request) const; - GetSubscriptionPriceOutcome getSubscriptionPrice(const Model::GetSubscriptionPriceRequest &request)const; - void getSubscriptionPriceAsync(const Model::GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSubscriptionPriceOutcomeCallable getSubscriptionPriceCallable(const Model::GetSubscriptionPriceRequest& request) const; - QueryResellerAvailableQuotaOutcome queryResellerAvailableQuota(const Model::QueryResellerAvailableQuotaRequest &request)const; - void queryResellerAvailableQuotaAsync(const Model::QueryResellerAvailableQuotaRequest& request, const QueryResellerAvailableQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryResellerAvailableQuotaOutcomeCallable queryResellerAvailableQuotaCallable(const Model::QueryResellerAvailableQuotaRequest& request) const; - SetResellerUserQuotaOutcome setResellerUserQuota(const Model::SetResellerUserQuotaRequest &request)const; - void setResellerUserQuotaAsync(const Model::SetResellerUserQuotaRequest& request, const SetResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryUserAlarmThresholdOutcome queryUserAlarmThreshold(const Model::QueryUserAlarmThresholdRequest &request)const; + void queryUserAlarmThresholdAsync(const Model::QueryUserAlarmThresholdRequest& request, const QueryUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryUserAlarmThresholdOutcomeCallable queryUserAlarmThresholdCallable(const Model::QueryUserAlarmThresholdRequest& request) const; + SetResellerUserQuotaOutcome setResellerUserQuota(const Model::SetResellerUserQuotaRequest &request)const; + void setResellerUserQuotaAsync(const Model::SetResellerUserQuotaRequest& request, const SetResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetResellerUserQuotaOutcomeCallable setResellerUserQuotaCallable(const Model::SetResellerUserQuotaRequest& request) const; - SetResellerUserStatusOutcome setResellerUserStatus(const Model::SetResellerUserStatusRequest &request)const; - void setResellerUserStatusAsync(const Model::SetResellerUserStatusRequest& request, const SetResellerUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetResellerUserStatusOutcomeCallable setResellerUserStatusCallable(const Model::SetResellerUserStatusRequest& request) const; - EnableBillGenerationOutcome enableBillGeneration(const Model::EnableBillGenerationRequest &request)const; - void enableBillGenerationAsync(const Model::EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubscribeDetailOutcome subscribeDetail(const Model::SubscribeDetailRequest &request)const; + void subscribeDetailAsync(const Model::SubscribeDetailRequest& request, const SubscribeDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubscribeDetailOutcomeCallable subscribeDetailCallable(const Model::SubscribeDetailRequest& request) const; + EnableBillGenerationOutcome enableBillGeneration(const Model::EnableBillGenerationRequest &request)const; + void enableBillGenerationAsync(const Model::EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableBillGenerationOutcomeCallable enableBillGenerationCallable(const Model::EnableBillGenerationRequest& request) const; - QueryOrdersOutcome queryOrders(const Model::QueryOrdersRequest &request)const; - void queryOrdersAsync(const Model::QueryOrdersRequest& request, const QueryOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryOrdersOutcomeCallable queryOrdersCallable(const Model::QueryOrdersRequest& request) const; - QueryCashCouponsOutcome queryCashCoupons(const Model::QueryCashCouponsRequest &request)const; - void queryCashCouponsAsync(const Model::QueryCashCouponsRequest& request, const QueryCashCouponsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCashCouponsOutcomeCallable queryCashCouponsCallable(const Model::QueryCashCouponsRequest& request) const; - QueryInvoicingCustomerListOutcome queryInvoicingCustomerList(const Model::QueryInvoicingCustomerListRequest &request)const; - void queryInvoicingCustomerListAsync(const Model::QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetEnduserStatusOutcome setEnduserStatus(const Model::SetEnduserStatusRequest &request)const; + void setEnduserStatusAsync(const Model::SetEnduserStatusRequest& request, const SetEnduserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetEnduserStatusOutcomeCallable setEnduserStatusCallable(const Model::SetEnduserStatusRequest& request) const; + QueryInvoicingCustomerListOutcome queryInvoicingCustomerList(const Model::QueryInvoicingCustomerListRequest &request)const; + void queryInvoicingCustomerListAsync(const Model::QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryInvoicingCustomerListOutcomeCallable queryInvoicingCustomerListCallable(const Model::QueryInvoicingCustomerListRequest& request) const; - DescribePricingModuleOutcome describePricingModule(const Model::DescribePricingModuleRequest &request)const; - void describePricingModuleAsync(const Model::DescribePricingModuleRequest& request, const DescribePricingModuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePricingModuleOutcomeCallable describePricingModuleCallable(const Model::DescribePricingModuleRequest& request) const; - QueryEvaluateListOutcome queryEvaluateList(const Model::QueryEvaluateListRequest &request)const; - void queryEvaluateListAsync(const Model::QueryEvaluateListRequest& request, const QueryEvaluateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryEvaluateListOutcomeCallable queryEvaluateListCallable(const Model::QueryEvaluateListRequest& request) const; - QueryAccountBalanceOutcome queryAccountBalance(const Model::QueryAccountBalanceRequest &request)const; - void queryAccountBalanceAsync(const Model::QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryAccountBalanceOutcome queryAccountBalance(const Model::QueryAccountBalanceRequest &request)const; + void queryAccountBalanceAsync(const Model::QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryAccountBalanceOutcomeCallable queryAccountBalanceCallable(const Model::QueryAccountBalanceRequest& request) const; - DescribeResourcePackageProductOutcome describeResourcePackageProduct(const Model::DescribeResourcePackageProductRequest &request)const; - void describeResourcePackageProductAsync(const Model::DescribeResourcePackageProductRequest& request, const DescribeResourcePackageProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeResourcePackageProductOutcomeCallable describeResourcePackageProductCallable(const Model::DescribeResourcePackageProductRequest& request) const; - ChangeResellerConsumeAmountOutcome changeResellerConsumeAmount(const Model::ChangeResellerConsumeAmountRequest &request)const; - void changeResellerConsumeAmountAsync(const Model::ChangeResellerConsumeAmountRequest& request, const ChangeResellerConsumeAmountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ChangeResellerConsumeAmountOutcomeCallable changeResellerConsumeAmountCallable(const Model::ChangeResellerConsumeAmountRequest& request) const; - RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; - void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; + void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; - CreateResourcePackageOutcome createResourcePackage(const Model::CreateResourcePackageRequest &request)const; - void createResourcePackageAsync(const Model::CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateResourcePackageOutcomeCallable createResourcePackageCallable(const Model::CreateResourcePackageRequest& request) const; - GetCustomerAccountInfoOutcome getCustomerAccountInfo(const Model::GetCustomerAccountInfoRequest &request)const; - void getCustomerAccountInfoAsync(const Model::GetCustomerAccountInfoRequest& request, const GetCustomerAccountInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCustomerAccountInfoOutcomeCallable getCustomerAccountInfoCallable(const Model::GetCustomerAccountInfoRequest& request) const; - QueryInstanceBillOutcome queryInstanceBill(const Model::QueryInstanceBillRequest &request)const; - void queryInstanceBillAsync(const Model::QueryInstanceBillRequest& request, const QueryInstanceBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryInstanceBillOutcomeCallable queryInstanceBillCallable(const Model::QueryInstanceBillRequest& request) const; - SetResellerUserAlarmThresholdOutcome setResellerUserAlarmThreshold(const Model::SetResellerUserAlarmThresholdRequest &request)const; - void setResellerUserAlarmThresholdAsync(const Model::SetResellerUserAlarmThresholdRequest& request, const SetResellerUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetResellerUserAlarmThresholdOutcome setResellerUserAlarmThreshold(const Model::SetResellerUserAlarmThresholdRequest &request)const; + void setResellerUserAlarmThresholdAsync(const Model::SetResellerUserAlarmThresholdRequest& request, const SetResellerUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetResellerUserAlarmThresholdOutcomeCallable setResellerUserAlarmThresholdCallable(const Model::SetResellerUserAlarmThresholdRequest& request) const; - QueryBillOutcome queryBill(const Model::QueryBillRequest &request)const; - void queryBillAsync(const Model::QueryBillRequest& request, const QueryBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryBillOutcomeCallable queryBillCallable(const Model::QueryBillRequest& request) const; - SetRenewalOutcome setRenewal(const Model::SetRenewalRequest &request)const; - void setRenewalAsync(const Model::SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetRenewalOutcomeCallable setRenewalCallable(const Model::SetRenewalRequest& request) const; - CreateAgAccountOutcome createAgAccount(const Model::CreateAgAccountRequest &request)const; - void createAgAccountAsync(const Model::CreateAgAccountRequest& request, const CreateAgAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAgAccountOutcome createAgAccount(const Model::CreateAgAccountRequest &request)const; + void createAgAccountAsync(const Model::CreateAgAccountRequest& request, const CreateAgAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAgAccountOutcomeCallable createAgAccountCallable(const Model::CreateAgAccountRequest& request) const; - ConvertChargeTypeOutcome convertChargeType(const Model::ConvertChargeTypeRequest &request)const; - void convertChargeTypeAsync(const Model::ConvertChargeTypeRequest& request, const ConvertChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConvertChargeTypeOutcomeCallable convertChargeTypeCallable(const Model::ConvertChargeTypeRequest& request) const; - QueryBillOverviewOutcome queryBillOverview(const Model::QueryBillOverviewRequest &request)const; - void queryBillOverviewAsync(const Model::QueryBillOverviewRequest& request, const QueryBillOverviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryInstanceGaapCostOutcome queryInstanceGaapCost(const Model::QueryInstanceGaapCostRequest &request)const; + void queryInstanceGaapCostAsync(const Model::QueryInstanceGaapCostRequest& request, const QueryInstanceGaapCostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryInstanceGaapCostOutcomeCallable queryInstanceGaapCostCallable(const Model::QueryInstanceGaapCostRequest& request) const; + QueryMonthlyInstanceConsumptionOutcome queryMonthlyInstanceConsumption(const Model::QueryMonthlyInstanceConsumptionRequest &request)const; + void queryMonthlyInstanceConsumptionAsync(const Model::QueryMonthlyInstanceConsumptionRequest& request, const QueryMonthlyInstanceConsumptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMonthlyInstanceConsumptionOutcomeCallable queryMonthlyInstanceConsumptionCallable(const Model::QueryMonthlyInstanceConsumptionRequest& request) const; + QueryPrepaidCardsOutcome queryPrepaidCards(const Model::QueryPrepaidCardsRequest &request)const; + void queryPrepaidCardsAsync(const Model::QueryPrepaidCardsRequest& request, const QueryPrepaidCardsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPrepaidCardsOutcomeCallable queryPrepaidCardsCallable(const Model::QueryPrepaidCardsRequest& request) const; + QueryAvailableInstancesOutcome queryAvailableInstances(const Model::QueryAvailableInstancesRequest &request)const; + void queryAvailableInstancesAsync(const Model::QueryAvailableInstancesRequest& request, const QueryAvailableInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryAvailableInstancesOutcomeCallable queryAvailableInstancesCallable(const Model::QueryAvailableInstancesRequest& request) const; + QueryEnduserStatusOutcome queryEnduserStatus(const Model::QueryEnduserStatusRequest &request)const; + void queryEnduserStatusAsync(const Model::QueryEnduserStatusRequest& request, const QueryEnduserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryEnduserStatusOutcomeCallable queryEnduserStatusCallable(const Model::QueryEnduserStatusRequest& request) const; + GetOrderDetailOutcome getOrderDetail(const Model::GetOrderDetailRequest &request)const; + void getOrderDetailAsync(const Model::GetOrderDetailRequest& request, const GetOrderDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrderDetailOutcomeCallable getOrderDetailCallable(const Model::GetOrderDetailRequest& request) const; + ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const; + void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const; + QueryCustomerAddressListOutcome queryCustomerAddressList(const Model::QueryCustomerAddressListRequest &request)const; + void queryCustomerAddressListAsync(const Model::QueryCustomerAddressListRequest& request, const QueryCustomerAddressListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCustomerAddressListOutcomeCallable queryCustomerAddressListCallable(const Model::QueryCustomerAddressListRequest& request) const; + SetUserQuotaOutcome setUserQuota(const Model::SetUserQuotaRequest &request)const; + void setUserQuotaAsync(const Model::SetUserQuotaRequest& request, const SetUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetUserQuotaOutcomeCallable setUserQuotaCallable(const Model::SetUserQuotaRequest& request) const; + UnsubscribeExportToOSSOutcome unsubscribeExportToOSS(const Model::UnsubscribeExportToOSSRequest &request)const; + void unsubscribeExportToOSSAsync(const Model::UnsubscribeExportToOSSRequest& request, const UnsubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnsubscribeExportToOSSOutcomeCallable unsubscribeExportToOSSCallable(const Model::UnsubscribeExportToOSSRequest& request) const; + CreateResellerUserQuotaOutcome createResellerUserQuota(const Model::CreateResellerUserQuotaRequest &request)const; + void createResellerUserQuotaAsync(const Model::CreateResellerUserQuotaRequest& request, const CreateResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateResellerUserQuotaOutcomeCallable createResellerUserQuotaCallable(const Model::CreateResellerUserQuotaRequest& request) const; + QueryPriceListOutcome queryPriceList(const Model::QueryPriceListRequest &request)const; + void queryPriceListAsync(const Model::QueryPriceListRequest& request, const QueryPriceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPriceListOutcomeCallable queryPriceListCallable(const Model::QueryPriceListRequest& request) const; + QueryRedeemOutcome queryRedeem(const Model::QueryRedeemRequest &request)const; + void queryRedeemAsync(const Model::QueryRedeemRequest& request, const QueryRedeemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRedeemOutcomeCallable queryRedeemCallable(const Model::QueryRedeemRequest& request) const; + SubscribeBillToOSSOutcome subscribeBillToOSS(const Model::SubscribeBillToOSSRequest &request)const; + void subscribeBillToOSSAsync(const Model::SubscribeBillToOSSRequest& request, const SubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubscribeBillToOSSOutcomeCallable subscribeBillToOSSCallable(const Model::SubscribeBillToOSSRequest& request) const; + GetPayAsYouGoPriceOutcome getPayAsYouGoPrice(const Model::GetPayAsYouGoPriceRequest &request)const; + void getPayAsYouGoPriceAsync(const Model::GetPayAsYouGoPriceRequest& request, const GetPayAsYouGoPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPayAsYouGoPriceOutcomeCallable getPayAsYouGoPriceCallable(const Model::GetPayAsYouGoPriceRequest& request) const; + GetResourcePackagePriceOutcome getResourcePackagePrice(const Model::GetResourcePackagePriceRequest &request)const; + void getResourcePackagePriceAsync(const Model::GetResourcePackagePriceRequest& request, const GetResourcePackagePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourcePackagePriceOutcomeCallable getResourcePackagePriceCallable(const Model::GetResourcePackagePriceRequest& request) const; + ChangeConsumeAmountOutcome changeConsumeAmount(const Model::ChangeConsumeAmountRequest &request)const; + void changeConsumeAmountAsync(const Model::ChangeConsumeAmountRequest& request, const ChangeConsumeAmountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeConsumeAmountOutcomeCallable changeConsumeAmountCallable(const Model::ChangeConsumeAmountRequest& request) const; + ApplyInvoiceOutcome applyInvoice(const Model::ApplyInvoiceRequest &request)const; + void applyInvoiceAsync(const Model::ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApplyInvoiceOutcomeCallable applyInvoiceCallable(const Model::ApplyInvoiceRequest& request) const; + QueryProductListOutcome queryProductList(const Model::QueryProductListRequest &request)const; + void queryProductListAsync(const Model::QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryProductListOutcomeCallable queryProductListCallable(const Model::QueryProductListRequest& request) const; + GetCustomerListOutcome getCustomerList(const Model::GetCustomerListRequest &request)const; + void getCustomerListAsync(const Model::GetCustomerListRequest& request, const GetCustomerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCustomerListOutcomeCallable getCustomerListCallable(const Model::GetCustomerListRequest& request) const; + UnsubscribeBillToOSSOutcome unsubscribeBillToOSS(const Model::UnsubscribeBillToOSSRequest &request)const; + void unsubscribeBillToOSSAsync(const Model::UnsubscribeBillToOSSRequest& request, const UnsubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnsubscribeBillToOSSOutcomeCallable unsubscribeBillToOSSCallable(const Model::UnsubscribeBillToOSSRequest& request) const; + SetUserAlarmThresholdOutcome setUserAlarmThreshold(const Model::SetUserAlarmThresholdRequest &request)const; + void setUserAlarmThresholdAsync(const Model::SetUserAlarmThresholdRequest& request, const SetUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetUserAlarmThresholdOutcomeCallable setUserAlarmThresholdCallable(const Model::SetUserAlarmThresholdRequest& request) const; + GetSubscriptionPriceOutcome getSubscriptionPrice(const Model::GetSubscriptionPriceRequest &request)const; + void getSubscriptionPriceAsync(const Model::GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSubscriptionPriceOutcomeCallable getSubscriptionPriceCallable(const Model::GetSubscriptionPriceRequest& request) const; + QueryResellerAvailableQuotaOutcome queryResellerAvailableQuota(const Model::QueryResellerAvailableQuotaRequest &request)const; + void queryResellerAvailableQuotaAsync(const Model::QueryResellerAvailableQuotaRequest& request, const QueryResellerAvailableQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryResellerAvailableQuotaOutcomeCallable queryResellerAvailableQuotaCallable(const Model::QueryResellerAvailableQuotaRequest& request) const; + SetResellerUserStatusOutcome setResellerUserStatus(const Model::SetResellerUserStatusRequest &request)const; + void setResellerUserStatusAsync(const Model::SetResellerUserStatusRequest& request, const SetResellerUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetResellerUserStatusOutcomeCallable setResellerUserStatusCallable(const Model::SetResellerUserStatusRequest& request) const; + QueryAccountBookListOutcome queryAccountBookList(const Model::QueryAccountBookListRequest &request)const; + void queryAccountBookListAsync(const Model::QueryAccountBookListRequest& request, const QueryAccountBookListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryAccountBookListOutcomeCallable queryAccountBookListCallable(const Model::QueryAccountBookListRequest& request) const; + QueryCashCouponsOutcome queryCashCoupons(const Model::QueryCashCouponsRequest &request)const; + void queryCashCouponsAsync(const Model::QueryCashCouponsRequest& request, const QueryCashCouponsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCashCouponsOutcomeCallable queryCashCouponsCallable(const Model::QueryCashCouponsRequest& request) const; + QueryOrdersOutcome queryOrders(const Model::QueryOrdersRequest &request)const; + void queryOrdersAsync(const Model::QueryOrdersRequest& request, const QueryOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryOrdersOutcomeCallable queryOrdersCallable(const Model::QueryOrdersRequest& request) const; + QueryEvaluateListOutcome queryEvaluateList(const Model::QueryEvaluateListRequest &request)const; + void queryEvaluateListAsync(const Model::QueryEvaluateListRequest& request, const QueryEvaluateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryEvaluateListOutcomeCallable queryEvaluateListCallable(const Model::QueryEvaluateListRequest& request) const; + DescribePricingModuleOutcome describePricingModule(const Model::DescribePricingModuleRequest &request)const; + void describePricingModuleAsync(const Model::DescribePricingModuleRequest& request, const DescribePricingModuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePricingModuleOutcomeCallable describePricingModuleCallable(const Model::DescribePricingModuleRequest& request) const; + DescribeResourcePackageProductOutcome describeResourcePackageProduct(const Model::DescribeResourcePackageProductRequest &request)const; + void describeResourcePackageProductAsync(const Model::DescribeResourcePackageProductRequest& request, const DescribeResourcePackageProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourcePackageProductOutcomeCallable describeResourcePackageProductCallable(const Model::DescribeResourcePackageProductRequest& request) const; + ChangeResellerConsumeAmountOutcome changeResellerConsumeAmount(const Model::ChangeResellerConsumeAmountRequest &request)const; + void changeResellerConsumeAmountAsync(const Model::ChangeResellerConsumeAmountRequest& request, const ChangeResellerConsumeAmountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeResellerConsumeAmountOutcomeCallable changeResellerConsumeAmountCallable(const Model::ChangeResellerConsumeAmountRequest& request) const; + CreateResourcePackageOutcome createResourcePackage(const Model::CreateResourcePackageRequest &request)const; + void createResourcePackageAsync(const Model::CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateResourcePackageOutcomeCallable createResourcePackageCallable(const Model::CreateResourcePackageRequest& request) const; + GetCustomerAccountInfoOutcome getCustomerAccountInfo(const Model::GetCustomerAccountInfoRequest &request)const; + void getCustomerAccountInfoAsync(const Model::GetCustomerAccountInfoRequest& request, const GetCustomerAccountInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCustomerAccountInfoOutcomeCallable getCustomerAccountInfoCallable(const Model::GetCustomerAccountInfoRequest& request) const; + QueryInstanceBillOutcome queryInstanceBill(const Model::QueryInstanceBillRequest &request)const; + void queryInstanceBillAsync(const Model::QueryInstanceBillRequest& request, const QueryInstanceBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryInstanceBillOutcomeCallable queryInstanceBillCallable(const Model::QueryInstanceBillRequest& request) const; + SubscribeExportToOSSOutcome subscribeExportToOSS(const Model::SubscribeExportToOSSRequest &request)const; + void subscribeExportToOSSAsync(const Model::SubscribeExportToOSSRequest& request, const SubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubscribeExportToOSSOutcomeCallable subscribeExportToOSSCallable(const Model::SubscribeExportToOSSRequest& request) const; + QueryAvaliableQuotaOutcome queryAvaliableQuota(const Model::QueryAvaliableQuotaRequest &request)const; + void queryAvaliableQuotaAsync(const Model::QueryAvaliableQuotaRequest& request, const QueryAvaliableQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryAvaliableQuotaOutcomeCallable queryAvaliableQuotaCallable(const Model::QueryAvaliableQuotaRequest& request) const; + QueryPriceOutcome queryPrice(const Model::QueryPriceRequest &request)const; + void queryPriceAsync(const Model::QueryPriceRequest& request, const QueryPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPriceOutcomeCallable queryPriceCallable(const Model::QueryPriceRequest& request) const; + QueryBillOutcome queryBill(const Model::QueryBillRequest &request)const; + void queryBillAsync(const Model::QueryBillRequest& request, const QueryBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryBillOutcomeCallable queryBillCallable(const Model::QueryBillRequest& request) const; + SetRenewalOutcome setRenewal(const Model::SetRenewalRequest &request)const; + void setRenewalAsync(const Model::SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetRenewalOutcomeCallable setRenewalCallable(const Model::SetRenewalRequest& request) const; + QueryBillOverviewOutcome queryBillOverview(const Model::QueryBillOverviewRequest &request)const; + void queryBillOverviewAsync(const Model::QueryBillOverviewRequest& request, const QueryBillOverviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryBillOverviewOutcomeCallable queryBillOverviewCallable(const Model::QueryBillOverviewRequest& request) const; - QuerySettlementBillOutcome querySettlementBill(const Model::QuerySettlementBillRequest &request)const; - void querySettlementBillAsync(const Model::QuerySettlementBillRequest& request, const QuerySettlementBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertChargeTypeOutcome convertChargeType(const Model::ConvertChargeTypeRequest &request)const; + void convertChargeTypeAsync(const Model::ConvertChargeTypeRequest& request, const ConvertChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertChargeTypeOutcomeCallable convertChargeTypeCallable(const Model::ConvertChargeTypeRequest& request) const; + QuerySettlementBillOutcome querySettlementBill(const Model::QuerySettlementBillRequest &request)const; + void querySettlementBillAsync(const Model::QuerySettlementBillRequest& request, const QuerySettlementBillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySettlementBillOutcomeCallable querySettlementBillCallable(const Model::QuerySettlementBillRequest& request) const; - QueryUserOmsDataOutcome queryUserOmsData(const Model::QueryUserOmsDataRequest &request)const; - void queryUserOmsDataAsync(const Model::QueryUserOmsDataRequest& request, const QueryUserOmsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryUserOmsDataOutcome queryUserOmsData(const Model::QueryUserOmsDataRequest &request)const; + void queryUserOmsDataAsync(const Model::QueryUserOmsDataRequest& request, const QueryUserOmsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryUserOmsDataOutcomeCallable queryUserOmsDataCallable(const Model::QueryUserOmsDataRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_BSSOPENAPI_BSSOPENAPICLIENT_H_ + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_BSSOPENAPI_BSSOPENAPICLIENT_H_ diff --git a/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiExport.h b/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiExport.h index e418bfd13..d50b5f788 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiExport.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/BssOpenApiExport.h @@ -1,32 +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_BSSOPENAPI_BSSOPENAPIEXPORT_H_ -#define ALIBABACLOUD_BSSOPENAPI_BSSOPENAPIEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_BSSOPENAPI_LIBRARY) -# define ALIBABACLOUD_BSSOPENAPI_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_BSSOPENAPI_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_BSSOPENAPI_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_BSSOPENAPIEXPORT_H_ +#define ALIBABACLOUD_BSSOPENAPI_BSSOPENAPIEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_BSSOPENAPI_LIBRARY) +# define ALIBABACLOUD_BSSOPENAPI_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_BSSOPENAPI_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_BSSOPENAPI_EXPORT +#endif + #endif // !ALIBABACLOUD_BSSOPENAPI_BSSOPENAPIEXPORT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h index 212314aec..546dc7b45 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ApplyInvoiceRequest : public RpcServiceRequest - { - - public: - ApplyInvoiceRequest(); - ~ApplyInvoiceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ApplyInvoiceRequest : public RpcServiceRequest + { + + public: + ApplyInvoiceRequest(); + ~ApplyInvoiceRequest(); + int getInvoicingType()const; void setInvoicingType(int invoicingType); std::string getApplyUserNick()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setAddressId(long addressId); long getCallerUid()const; void setCallerUid(long callerUid); - - private: + + private: int invoicingType_; std::string applyUserNick_; bool invoiceByAmount_; @@ -70,9 +70,9 @@ namespace AlibabaCloud long invoiceAmount_; long addressId_; long callerUid_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h index e5b19ea43..2013480f0 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ApplyInvoiceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ApplyInvoiceResult : public ServiceResult + { + public: struct Data { long invoiceApplyId; }; - - - ApplyInvoiceResult(); - explicit ApplyInvoiceResult(const std::string &payload); - ~ApplyInvoiceResult(); + + + ApplyInvoiceResult(); + explicit ApplyInvoiceResult(const std::string &payload); + ~ApplyInvoiceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_APPLYINVOICERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h index d5c081029..aa809675a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderRequest.h @@ -1,51 +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_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CancelOrderRequest : public RpcServiceRequest - { - - public: - CancelOrderRequest(); - ~CancelOrderRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CancelOrderRequest : public RpcServiceRequest + { + + public: + CancelOrderRequest(); + ~CancelOrderRequest(); + std::string getOrderId()const; void setOrderId(const std::string& orderId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string orderId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderResult.h index 0e266d4d9..c6b137af4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CancelOrderResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CancelOrderResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CancelOrderResult : public ServiceResult + { + public: struct Data { std::string hostId; }; - - - CancelOrderResult(); - explicit CancelOrderResult(const std::string &payload); - ~CancelOrderResult(); + + + CancelOrderResult(); + explicit CancelOrderResult(const std::string &payload); + ~CancelOrderResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CANCELORDERRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h index 822bd2c38..2df1b5365 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountRequest : public RpcServiceRequest - { - - public: - ChangeResellerConsumeAmountRequest(); - ~ChangeResellerConsumeAmountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountRequest : public RpcServiceRequest + { + + public: + ChangeResellerConsumeAmountRequest(); + ~ChangeResellerConsumeAmountRequest(); + std::string getAdjustType()const; void setAdjustType(const std::string& adjustType); std::string getAmount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getBusinessType()const; void setBusinessType(const std::string& businessType); - - private: + + private: std::string adjustType_; std::string amount_; std::string outBizId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string source_; long ownerId_; std::string businessType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h index 01a92d9d2..7b5449299 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h @@ -1,57 +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_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountResult : public ServiceResult - { - public: - - - ChangeResellerConsumeAmountResult(); - explicit ChangeResellerConsumeAmountResult(const std::string &payload); - ~ChangeResellerConsumeAmountResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountResult : public ServiceResult + { + public: + + + ChangeResellerConsumeAmountResult(); + explicit ChangeResellerConsumeAmountResult(const std::string &payload); + ~ChangeResellerConsumeAmountResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h index 81dc1a6da..a0f781888 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ConvertChargeTypeRequest : public RpcServiceRequest - { - - public: - ConvertChargeTypeRequest(); - ~ConvertChargeTypeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ConvertChargeTypeRequest : public RpcServiceRequest + { + + public: + ConvertChargeTypeRequest(); + ~ConvertChargeTypeRequest(); + int getPeriod()const; void setPeriod(int period); std::string getProductCode()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: int period_; std::string productCode_; std::string instanceId_; std::string subscriptionType_; long ownerId_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h index 1a4dcb90e..3f62860b2 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ConvertChargeTypeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ConvertChargeTypeResult : public ServiceResult + { + public: struct Data { std::string orderId; }; - - - ConvertChargeTypeResult(); - explicit ConvertChargeTypeResult(const std::string &payload); - ~ConvertChargeTypeResult(); + + + ConvertChargeTypeResult(); + explicit ConvertChargeTypeResult(const std::string &payload); + ~ConvertChargeTypeResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CONVERTCHARGETYPERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h index 9a2346c3d..28be3ad62 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountRequest : public RpcServiceRequest - { - - public: - CreateAgAccountRequest(); - ~CreateAgAccountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountRequest : public RpcServiceRequest + { + + public: + CreateAgAccountRequest(); + ~CreateAgAccountRequest(); + std::string getFirstName()const; void setFirstName(const std::string& firstName); std::string getLoginEmail()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setNationCode(const std::string& nationCode); std::string getLastName()const; void setLastName(const std::string& lastName); - - private: + + private: std::string firstName_; std::string loginEmail_; std::string provinceName_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string enterpriseName_; std::string nationCode_; std::string lastName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h index 0e0d7690f..a9085cfcb 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountResult : public ServiceResult + { + public: struct AgRelationDto { std::string type; @@ -39,26 +39,26 @@ namespace AlibabaCloud std::string pk; std::string ramAdminRoleName; }; - - - CreateAgAccountResult(); - explicit CreateAgAccountResult(const std::string &payload); - ~CreateAgAccountResult(); + + + CreateAgAccountResult(); + explicit CreateAgAccountResult(const std::string &payload); + ~CreateAgAccountResult(); std::string getMessage()const; AgRelationDto getAgRelationDto()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; AgRelationDto agRelationDto_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h index 916a371dd..14034c695 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h @@ -1,45 +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_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateInstanceRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateInstanceRequest : public RpcServiceRequest + { struct Parameter { std::string code; std::string value; }; - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - + + public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); int getPeriod()const; @@ -58,8 +58,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; int period_; std::string clientToken_; @@ -69,9 +69,9 @@ namespace AlibabaCloud std::string renewalStatus_; long ownerId_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceResult.h index 9e2304074..fcee4486c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceResult.h @@ -1,62 +1,62 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateInstanceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateInstanceResult : public ServiceResult + { + public: struct Data { std::string instanceId; std::string orderId; }; - - - CreateInstanceResult(); - explicit CreateInstanceResult(const std::string &payload); - ~CreateInstanceResult(); + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h index 27cae8f3b..c0f588368 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaRequest : public RpcServiceRequest - { - - public: - CreateResellerUserQuotaRequest(); - ~CreateResellerUserQuotaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaRequest : public RpcServiceRequest + { + + public: + CreateResellerUserQuotaRequest(); + ~CreateResellerUserQuotaRequest(); + std::string getAmount()const; void setAmount(const std::string& amount); std::string getOutBizId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setCurrency(const std::string& currency); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string amount_; std::string outBizId_; std::string currency_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h index 977049a16..5e949eb19 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h @@ -1,57 +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_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaResult : public ServiceResult - { - public: - - - CreateResellerUserQuotaResult(); - explicit CreateResellerUserQuotaResult(const std::string &payload); - ~CreateResellerUserQuotaResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaResult : public ServiceResult + { + public: + + + CreateResellerUserQuotaResult(); + explicit CreateResellerUserQuotaResult(const std::string &payload); + ~CreateResellerUserQuotaResult(); std::string getMessage()const; bool getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; bool data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h index c595f0b29..773f043e4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResourcePackageRequest : public RpcServiceRequest - { - - public: - CreateResourcePackageRequest(); - ~CreateResourcePackageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResourcePackageRequest : public RpcServiceRequest + { + + public: + CreateResourcePackageRequest(); + ~CreateResourcePackageRequest(); + int getDuration()const; void setDuration(int duration); std::string getProductCode()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setEffectiveDate(const std::string& effectiveDate); std::string getPricingCycle()const; void setPricingCycle(const std::string& pricingCycle); - - private: + + private: int duration_; std::string productCode_; std::string specification_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string packageType_; std::string effectiveDate_; std::string pricingCycle_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h index ff07fb852..e8d36f467 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h @@ -1,64 +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_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResourcePackageResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResourcePackageResult : public ServiceResult + { + public: struct Data { std::string instanceId; long orderId; }; - - - CreateResourcePackageResult(); - explicit CreateResourcePackageResult(const std::string &payload); - ~CreateResourcePackageResult(); + + + CreateResourcePackageResult(); + explicit CreateResourcePackageResult(const std::string &payload); + ~CreateResourcePackageResult(); std::string getMessage()const; Data getData()const; long getOrderId()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; long orderId_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESOURCEPACKAGERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h index 7428a7b98..eefe25318 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribePricingModuleRequest : public RpcServiceRequest - { - - public: - DescribePricingModuleRequest(); - ~DescribePricingModuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribePricingModuleRequest : public RpcServiceRequest + { + + public: + DescribePricingModuleRequest(); + ~DescribePricingModuleRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSubscriptionType()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string subscriptionType_; long ownerId_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h index 7ebb9a692..f7ed2d1f3 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribePricingModuleResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribePricingModuleResult : public ServiceResult + { + public: struct Data { struct Module @@ -59,26 +59,26 @@ namespace AlibabaCloud std::vector attributeList; std::vector moduleList; }; - - - DescribePricingModuleResult(); - explicit DescribePricingModuleResult(const std::string &payload); - ~DescribePricingModuleResult(); + + + DescribePricingModuleResult(); + explicit DescribePricingModuleResult(const std::string &payload); + ~DescribePricingModuleResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEPRICINGMODULERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h index 6f0ea0e15..202dd9c5b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h @@ -1,48 +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_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourcePackageProductRequest : public RpcServiceRequest - { - - public: - DescribeResourcePackageProductRequest(); - ~DescribeResourcePackageProductRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourcePackageProductRequest : public RpcServiceRequest + { + + public: + DescribeResourcePackageProductRequest(); + ~DescribeResourcePackageProductRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); - - private: + + private: std::string productCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h index 5e08c07a0..2d9b504ce 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourcePackageProductResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT DescribeResourcePackageProductResult : public ServiceResult + { + public: struct Data { struct ResourcePackage @@ -67,28 +67,28 @@ namespace AlibabaCloud }; std::vector resourcePackages; }; - - - DescribeResourcePackageProductResult(); - explicit DescribeResourcePackageProductResult(const std::string &payload); - ~DescribeResourcePackageProductResult(); + + + DescribeResourcePackageProductResult(); + explicit DescribeResourcePackageProductResult(const std::string &payload); + ~DescribeResourcePackageProductResult(); std::string getMessage()const; Data getData()const; long getOrderId()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; long orderId_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBERESOURCEPACKAGEPRODUCTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h index d7dace38a..edc278f21 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h @@ -1,51 +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_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT EnableBillGenerationRequest : public RpcServiceRequest - { - - public: - EnableBillGenerationRequest(); - ~EnableBillGenerationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT EnableBillGenerationRequest : public RpcServiceRequest + { + + public: + EnableBillGenerationRequest(); + ~EnableBillGenerationRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string productCode_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h index bf0356f6d..43981c3e8 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT EnableBillGenerationResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT EnableBillGenerationResult : public ServiceResult + { + public: struct Data { bool boolean; }; - - - EnableBillGenerationResult(); - explicit EnableBillGenerationResult(const std::string &payload); - ~EnableBillGenerationResult(); + + + EnableBillGenerationResult(); + explicit EnableBillGenerationResult(const std::string &payload); + ~EnableBillGenerationResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ENABLEBILLGENERATIONRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h index db0792e15..822216391 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h @@ -1,48 +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_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoRequest : public RpcServiceRequest - { - - public: - GetCustomerAccountInfoRequest(); - ~GetCustomerAccountInfoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoRequest : public RpcServiceRequest + { + + public: + GetCustomerAccountInfoRequest(); + ~GetCustomerAccountInfoRequest(); + long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h index 5b79e3538..8e1d260e8 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoResult : public ServiceResult + { + public: struct Data { std::string loginEmail; @@ -41,26 +41,26 @@ namespace AlibabaCloud bool isCertified; std::string accountType; }; - - - GetCustomerAccountInfoResult(); - explicit GetCustomerAccountInfoResult(const std::string &payload); - ~GetCustomerAccountInfoResult(); + + + GetCustomerAccountInfoResult(); + explicit GetCustomerAccountInfoResult(const std::string &payload); + ~GetCustomerAccountInfoResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h index 28998e217..b15eae737 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h @@ -1,45 +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_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListRequest : public RpcServiceRequest - { - - public: - GetCustomerListRequest(); - ~GetCustomerListRequest(); - - - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListRequest : public RpcServiceRequest + { + + public: + GetCustomerListRequest(); + ~GetCustomerListRequest(); + + + private: + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h index 74ab80587..d07ee027e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListResult : public ServiceResult + { + public: struct Data { std::vector uidList; }; - - - GetCustomerListResult(); - explicit GetCustomerListResult(const std::string &payload); - ~GetCustomerListResult(); + + + GetCustomerListResult(); + explicit GetCustomerListResult(const std::string &payload); + ~GetCustomerListResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h index 576113118..6573d2ebf 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h @@ -1,51 +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_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetOrderDetailRequest : public RpcServiceRequest - { - - public: - GetOrderDetailRequest(); - ~GetOrderDetailRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetOrderDetailRequest : public RpcServiceRequest + { + + public: + GetOrderDetailRequest(); + ~GetOrderDetailRequest(); + std::string getOrderId()const; void setOrderId(const std::string& orderId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string orderId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h index a866081d1..6475b1187 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetOrderDetailResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetOrderDetailResult : public ServiceResult + { + public: struct Data { struct Order @@ -69,26 +69,26 @@ namespace AlibabaCloud std::vector orderList; std::string hostName; }; - - - GetOrderDetailResult(); - explicit GetOrderDetailResult(const std::string &payload); - ~GetOrderDetailResult(); + + + GetOrderDetailResult(); + explicit GetOrderDetailResult(const std::string &payload); + ~GetOrderDetailResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETORDERDETAILRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h index 96e6bf565..59e0cec2f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceRequest.h @@ -1,46 +1,46 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetPayAsYouGoPriceRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetPayAsYouGoPriceRequest : public RpcServiceRequest + { struct ModuleList { std::string moduleCode; std::string priceType; std::string config; }; - - public: - GetPayAsYouGoPriceRequest(); - ~GetPayAsYouGoPriceRequest(); - + + public: + GetPayAsYouGoPriceRequest(); + ~GetPayAsYouGoPriceRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSubscriptionType()const; @@ -53,17 +53,17 @@ namespace AlibabaCloud void setRegion(const std::string& region); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string subscriptionType_; std::vector moduleList_; long ownerId_; std::string region_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h index c8885025c..27f27630a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetPayAsYouGoPriceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetPayAsYouGoPriceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetPayAsYouGoPriceResult : public ServiceResult + { + public: struct Data { struct ModuleDetail @@ -52,26 +52,26 @@ namespace AlibabaCloud std::vector moduleDetails; std::vector promotionDetails; }; - - - GetPayAsYouGoPriceResult(); - explicit GetPayAsYouGoPriceResult(const std::string &payload); - ~GetPayAsYouGoPriceResult(); + + + GetPayAsYouGoPriceResult(); + explicit GetPayAsYouGoPriceResult(const std::string &payload); + ~GetPayAsYouGoPriceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETPAYASYOUGOPRICERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h index ed7a51edf..6a7c89ef2 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetResourcePackagePriceRequest : public RpcServiceRequest - { - - public: - GetResourcePackagePriceRequest(); - ~GetResourcePackagePriceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetResourcePackagePriceRequest : public RpcServiceRequest + { + + public: + GetResourcePackagePriceRequest(); + ~GetResourcePackagePriceRequest(); + int getDuration()const; void setDuration(int duration); std::string getProductCode()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setEffectiveDate(const std::string& effectiveDate); std::string getPricingCycle()const; void setPricingCycle(const std::string& pricingCycle); - - private: + + private: int duration_; std::string productCode_; std::string specification_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string packageType_; std::string effectiveDate_; std::string pricingCycle_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h index 806b62241..523fc5211 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetResourcePackagePriceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetResourcePackagePriceResult : public ServiceResult + { + public: struct Data { struct Promotion @@ -45,26 +45,26 @@ namespace AlibabaCloud float discountPrice; float tradePrice; }; - - - GetResourcePackagePriceResult(); - explicit GetResourcePackagePriceResult(const std::string &payload); - ~GetResourcePackagePriceResult(); + + + GetResourcePackagePriceResult(); + explicit GetResourcePackagePriceResult(const std::string &payload); + ~GetResourcePackagePriceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETRESOURCEPACKAGEPRICERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h index 44871e648..31c3ba3b4 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetSubscriptionPriceRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetSubscriptionPriceRequest : public RpcServiceRequest + { struct ModuleList { std::string moduleCode; @@ -37,11 +37,11 @@ namespace AlibabaCloud std::string tag; std::string config; }; - - public: - GetSubscriptionPriceRequest(); - ~GetSubscriptionPriceRequest(); - + + public: + GetSubscriptionPriceRequest(); + ~GetSubscriptionPriceRequest(); + int getServicePeriodQuantity()const; void setServicePeriodQuantity(int servicePeriodQuantity); std::string getProductCode()const; @@ -64,8 +64,8 @@ namespace AlibabaCloud void setOrderType(const std::string& orderType); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: int servicePeriodQuantity_; std::string productCode_; std::string instanceId_; @@ -77,9 +77,9 @@ namespace AlibabaCloud std::string region_; std::string orderType_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h index 87d3027b1..29fa94987 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT GetSubscriptionPriceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetSubscriptionPriceResult : public ServiceResult + { + public: struct Data { struct ModuleDetail @@ -56,26 +56,26 @@ namespace AlibabaCloud std::vector promotionDetails; float tradePrice; }; - - - GetSubscriptionPriceResult(); - explicit GetSubscriptionPriceResult(const std::string &payload); - ~GetSubscriptionPriceResult(); + + + GetSubscriptionPriceResult(); + explicit GetSubscriptionPriceResult(const std::string &payload); + ~GetSubscriptionPriceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETSUBSCRIPTIONPRICERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h index 1c1bef416..b2ba18e99 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h @@ -1,45 +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_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyInstanceRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyInstanceRequest : public RpcServiceRequest + { struct Parameter { std::string code; std::string value; }; - - public: - ModifyInstanceRequest(); - ~ModifyInstanceRequest(); - + + public: + ModifyInstanceRequest(); + ~ModifyInstanceRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getInstanceId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string instanceId_; std::string clientToken_; @@ -66,9 +66,9 @@ namespace AlibabaCloud std::vector parameter_; long ownerId_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h index 39907c1e2..095688f0d 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h @@ -1,62 +1,62 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyInstanceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyInstanceResult : public ServiceResult + { + public: struct Data { std::string hostId; std::string orderId; }; - - - ModifyInstanceResult(); - explicit ModifyInstanceResult(const std::string &payload); - ~ModifyInstanceResult(); + + + ModifyInstanceResult(); + explicit ModifyInstanceResult(const std::string &payload); + ~ModifyInstanceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYINSTANCERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h index d5574ef22..754a1a738 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h @@ -1,45 +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_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBalanceRequest : public RpcServiceRequest - { - - public: - QueryAccountBalanceRequest(); - ~QueryAccountBalanceRequest(); - - - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBalanceRequest : public RpcServiceRequest + { + + public: + QueryAccountBalanceRequest(); + ~QueryAccountBalanceRequest(); + + + private: + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h index 4a4b2d43e..28e91229a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBalanceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountBalanceResult : public ServiceResult + { + public: struct Data { std::string availableCashAmount; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string availableAmount; std::string creditAmount; }; - - - QueryAccountBalanceResult(); - explicit QueryAccountBalanceResult(const std::string &payload); - ~QueryAccountBalanceResult(); + + + QueryAccountBalanceResult(); + explicit QueryAccountBalanceResult(const std::string &payload); + ~QueryAccountBalanceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBALANCERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h index f5fa59077..3137e52b5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsRequest : public RpcServiceRequest - { - - public: - QueryAccountTransactionsRequest(); - ~QueryAccountTransactionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsRequest : public RpcServiceRequest + { + + public: + QueryAccountTransactionsRequest(); + ~QueryAccountTransactionsRequest(); + std::string getRecordID()const; void setRecordID(const std::string& recordID); int getPageSize()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getCreateTimeEnd()const; void setCreateTimeEnd(const std::string& createTimeEnd); - - private: + + private: std::string recordID_; int pageSize_; std::string transactionChannelSN_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string transactionNumber_; int pageNum_; std::string createTimeEnd_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h index 9c03abe3b..2cb9c3364 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsResult : public ServiceResult + { + public: struct Data { struct AccountTransactionsListItem @@ -56,26 +56,26 @@ namespace AlibabaCloud std::vector accountTransactionsList; std::string accountName; }; - - - QueryAccountTransactionsResult(); - explicit QueryAccountTransactionsResult(const std::string &payload); - ~QueryAccountTransactionsResult(); + + + QueryAccountTransactionsResult(); + explicit QueryAccountTransactionsResult(const std::string &payload); + ~QueryAccountTransactionsResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h index a056df22c..bd2a7127c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAvailableInstancesRequest : public RpcServiceRequest - { - - public: - QueryAvailableInstancesRequest(); - ~QueryAvailableInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAvailableInstancesRequest : public RpcServiceRequest + { + + public: + QueryAvailableInstancesRequest(); + ~QueryAvailableInstancesRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSubscriptionType()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setRegion(const std::string& region); std::string getRenewStatus()const; void setRenewStatus(const std::string& renewStatus); - - private: + + private: std::string productCode_; std::string subscriptionType_; long ownerId_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string createTimeStart_; std::string region_; std::string renewStatus_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h index 4e7c76abc..5fc7649c5 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAvailableInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAvailableInstancesResult : public ServiceResult + { + public: struct Data { struct Instance @@ -60,26 +60,26 @@ namespace AlibabaCloud int pageSize; std::vector instanceList; }; - - - QueryAvailableInstancesResult(); - explicit QueryAvailableInstancesResult(const std::string &payload); - ~QueryAvailableInstancesResult(); + + + QueryAvailableInstancesResult(); + explicit QueryAvailableInstancesResult(const std::string &payload); + ~QueryAvailableInstancesResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVAILABLEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h index 42af728d9..3d9f4d404 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillOverviewRequest : public RpcServiceRequest - { - - public: - QueryBillOverviewRequest(); - ~QueryBillOverviewRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillOverviewRequest : public RpcServiceRequest + { + + public: + QueryBillOverviewRequest(); + ~QueryBillOverviewRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSubscriptionType()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setBillingCycle(const std::string& billingCycle); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string subscriptionType_; std::string billingCycle_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h index 50f1b04c7..e1bcff051 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillOverviewResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillOverviewResult : public ServiceResult + { + public: struct Data { struct Item @@ -62,26 +62,26 @@ namespace AlibabaCloud std::vector items; std::string accountName; }; - - - QueryBillOverviewResult(); - explicit QueryBillOverviewResult(const std::string &payload); - ~QueryBillOverviewResult(); + + + QueryBillOverviewResult(); + explicit QueryBillOverviewResult(const std::string &payload); + ~QueryBillOverviewResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLOVERVIEWRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h index 3f25cce2f..9c110827e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillRequest : public RpcServiceRequest - { - - public: - QueryBillRequest(); - ~QueryBillRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillRequest : public RpcServiceRequest + { + + public: + QueryBillRequest(); + ~QueryBillRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); bool getIsHideZeroCharge()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; bool isHideZeroCharge_; bool isDisplayLocalCurrency_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNum_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h index 73625a0ad..81e4aba30 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryBillResult : public ServiceResult + { + public: struct Data { struct Item @@ -72,26 +72,26 @@ namespace AlibabaCloud std::vector items; std::string accountName; }; - - - QueryBillResult(); - explicit QueryBillResult(const std::string &payload); - ~QueryBillResult(); + + + QueryBillResult(); + explicit QueryBillResult(const std::string &payload); + ~QueryBillResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYBILLRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h index b808dad6e..e730bf6fb 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h @@ -1,54 +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_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCashCouponsRequest : public RpcServiceRequest - { - - public: - QueryCashCouponsRequest(); - ~QueryCashCouponsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCashCouponsRequest : public RpcServiceRequest + { + + public: + QueryCashCouponsRequest(); + ~QueryCashCouponsRequest(); + std::string getExpiryTimeEnd()const; void setExpiryTimeEnd(const std::string& expiryTimeEnd); std::string getExpiryTimeStart()const; void setExpiryTimeStart(const std::string& expiryTimeStart); bool getEffectiveOrNot()const; void setEffectiveOrNot(bool effectiveOrNot); - - private: + + private: std::string expiryTimeEnd_; std::string expiryTimeStart_; bool effectiveOrNot_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h index ef05cfb63..eef1f2df0 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCashCouponsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCashCouponsResult : public ServiceResult + { + public: struct CashCoupon { std::string status; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string grantedTime; std::string applicableScenarios; }; - - - QueryCashCouponsResult(); - explicit QueryCashCouponsResult(const std::string &payload); - ~QueryCashCouponsResult(); + + + QueryCashCouponsResult(); + explicit QueryCashCouponsResult(const std::string &payload); + ~QueryCashCouponsResult(); std::string getMessage()const; std::vector getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::vector data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCASHCOUPONSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h index 262ba3304..983f70a88 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h @@ -1,54 +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_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCustomerAddressListRequest : public RpcServiceRequest - { - - public: - QueryCustomerAddressListRequest(); - ~QueryCustomerAddressListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCustomerAddressListRequest : public RpcServiceRequest + { + + public: + QueryCustomerAddressListRequest(); + ~QueryCustomerAddressListRequest(); + long getCallerBid()const; void setCallerBid(long callerBid); long getOwnerId()const; void setOwnerId(long ownerId); long getCallerUid()const; void setCallerUid(long callerUid); - - private: + + private: long callerBid_; long ownerId_; long callerUid_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h index 6c0e9942a..3463ce07c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCustomerAddressListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCustomerAddressListResult : public ServiceResult + { + public: struct Data { struct CustomerInvoiceAddress @@ -51,26 +51,26 @@ namespace AlibabaCloud }; std::vector customerInvoiceAddressList; }; - - - QueryCustomerAddressListResult(); - explicit QueryCustomerAddressListResult(const std::string &payload); - ~QueryCustomerAddressListResult(); + + + QueryCustomerAddressListResult(); + explicit QueryCustomerAddressListResult(const std::string &payload); + ~QueryCustomerAddressListResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCUSTOMERADDRESSLISTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h index 32c0c97d4..105a1fc37 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryEvaluateListRequest : public RpcServiceRequest - { - - public: - QueryEvaluateListRequest(); - ~QueryEvaluateListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryEvaluateListRequest : public RpcServiceRequest + { + + public: + QueryEvaluateListRequest(); + ~QueryEvaluateListRequest(); + std::string getEndSearchTime()const; void setEndSearchTime(const std::string& endSearchTime); std::string getOutBizId()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setStartAmount(long startAmount); std::string getStartBizTime()const; void setStartBizTime(const std::string& startBizTime); - - private: + + private: std::string endSearchTime_; std::string outBizId_; int sortType_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string billCycle_; long startAmount_; std::string startBizTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h index e5ab1192b..7d25725dc 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryEvaluateListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryEvaluateListResult : public ServiceResult + { + public: struct Data { struct Evaluate @@ -66,26 +66,26 @@ namespace AlibabaCloud std::string hostId; std::vector evaluateList; }; - - - QueryEvaluateListResult(); - explicit QueryEvaluateListResult(const std::string &payload); - ~QueryEvaluateListResult(); + + + QueryEvaluateListResult(); + explicit QueryEvaluateListResult(const std::string &payload); + ~QueryEvaluateListResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYEVALUATELISTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h index cfb197d37..d3e6a8497 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceBillRequest : public RpcServiceRequest - { - - public: - QueryInstanceBillRequest(); - ~QueryInstanceBillRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceBillRequest : public RpcServiceRequest + { + + public: + QueryInstanceBillRequest(); + ~QueryInstanceBillRequest(); + bool getIsBillingItem()const; void setIsBillingItem(bool isBillingItem); std::string getProductCode()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: bool isBillingItem_; std::string productCode_; bool isHideZeroCharge_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; int pageNum_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h index fbcc0752e..00537db12 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceBillResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceBillResult : public ServiceResult + { + public: struct Data { struct Item @@ -79,26 +79,26 @@ namespace AlibabaCloud std::vector items; std::string accountName; }; - - - QueryInstanceBillResult(); - explicit QueryInstanceBillResult(const std::string &payload); - ~QueryInstanceBillResult(); + + + QueryInstanceBillResult(); + explicit QueryInstanceBillResult(const std::string &payload); + ~QueryInstanceBillResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBILLRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h index 8310e7462..612701b23 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceGaapCostRequest : public RpcServiceRequest - { - - public: - QueryInstanceGaapCostRequest(); - ~QueryInstanceGaapCostRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceGaapCostRequest : public RpcServiceRequest + { + + public: + QueryInstanceGaapCostRequest(); + ~QueryInstanceGaapCostRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSubscriptionType()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string subscriptionType_; int pageSize_; std::string billingCycle_; int pageNum_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h index e4fa8e28a..2c7d1f08f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceGaapCostResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInstanceGaapCostResult : public ServiceResult + { + public: struct Data { struct Module @@ -95,26 +95,26 @@ namespace AlibabaCloud std::vector modules; std::string hostId; }; - - - QueryInstanceGaapCostResult(); - explicit QueryInstanceGaapCostResult(const std::string &payload); - ~QueryInstanceGaapCostResult(); + + + QueryInstanceGaapCostResult(); + explicit QueryInstanceGaapCostResult(const std::string &payload); + ~QueryInstanceGaapCostResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEGAAPCOSTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h index ecd17c4b9..2bf75290b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h @@ -1,48 +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_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInvoicingCustomerListRequest : public RpcServiceRequest - { - - public: - QueryInvoicingCustomerListRequest(); - ~QueryInvoicingCustomerListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInvoicingCustomerListRequest : public RpcServiceRequest + { + + public: + QueryInvoicingCustomerListRequest(); + ~QueryInvoicingCustomerListRequest(); + long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h index f1d7a8c17..cddc3f1da 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInvoicingCustomerListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryInvoicingCustomerListResult : public ServiceResult + { + public: struct Data { struct CustomerInvoice @@ -60,26 +60,26 @@ namespace AlibabaCloud }; std::vector customerInvoiceList; }; - - - QueryInvoicingCustomerListResult(); - explicit QueryInvoicingCustomerListResult(const std::string &payload); - ~QueryInvoicingCustomerListResult(); + + + QueryInvoicingCustomerListResult(); + explicit QueryInvoicingCustomerListResult(const std::string &payload); + ~QueryInvoicingCustomerListResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINVOICINGCUSTOMERLISTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h index 55d78a1ff..8dea71be8 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h @@ -1,48 +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_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyBillRequest : public RpcServiceRequest - { - - public: - QueryMonthlyBillRequest(); - ~QueryMonthlyBillRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyBillRequest : public RpcServiceRequest + { + + public: + QueryMonthlyBillRequest(); + ~QueryMonthlyBillRequest(); + std::string getBillingCycle()const; void setBillingCycle(const std::string& billingCycle); - - private: + + private: std::string billingCycle_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h index ecda82dec..e7e16509f 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyBillResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyBillResult : public ServiceResult + { + public: struct Data { struct Item @@ -62,26 +62,26 @@ namespace AlibabaCloud std::vector items; float newInvoiceAmount; }; - - - QueryMonthlyBillResult(); - explicit QueryMonthlyBillResult(const std::string &payload); - ~QueryMonthlyBillResult(); + + + QueryMonthlyBillResult(); + explicit QueryMonthlyBillResult(const std::string &payload); + ~QueryMonthlyBillResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYBILLRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h index 40dd2e18c..447ea4467 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyInstanceConsumptionRequest : public RpcServiceRequest - { - - public: - QueryMonthlyInstanceConsumptionRequest(); - ~QueryMonthlyInstanceConsumptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyInstanceConsumptionRequest : public RpcServiceRequest + { + + public: + QueryMonthlyInstanceConsumptionRequest(); + ~QueryMonthlyInstanceConsumptionRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSubscriptionType()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string subscriptionType_; int pageSize_; @@ -58,9 +58,9 @@ namespace AlibabaCloud long ownerId_; int pageNum_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h index 9419e0385..7f59a0a1e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyInstanceConsumptionResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryMonthlyInstanceConsumptionResult : public ServiceResult + { + public: struct Data { struct Item @@ -60,26 +60,26 @@ namespace AlibabaCloud int pageSize; std::vector items; }; - - - QueryMonthlyInstanceConsumptionResult(); - explicit QueryMonthlyInstanceConsumptionResult(const std::string &payload); - ~QueryMonthlyInstanceConsumptionResult(); + + + QueryMonthlyInstanceConsumptionResult(); + explicit QueryMonthlyInstanceConsumptionResult(const std::string &payload); + ~QueryMonthlyInstanceConsumptionResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYMONTHLYINSTANCECONSUMPTIONRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h index fe9413bd7..ee5d51f08 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryOrdersRequest : public RpcServiceRequest - { - - public: - QueryOrdersRequest(); - ~QueryOrdersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryOrdersRequest : public RpcServiceRequest + { + + public: + QueryOrdersRequest(); + ~QueryOrdersRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSubscriptionType()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setProductType(const std::string& productType); std::string getOrderType()const; void setOrderType(const std::string& orderType); - - private: + + private: std::string productCode_; std::string subscriptionType_; int pageSize_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string createTimeEnd_; std::string productType_; std::string orderType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h index 7ebbf1b7d..ae03d23ae 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryOrdersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryOrdersResult : public ServiceResult + { + public: struct Data { struct Order @@ -59,26 +59,26 @@ namespace AlibabaCloud std::vector orderList; std::string hostName; }; - - - QueryOrdersResult(); - explicit QueryOrdersResult(const std::string &payload); - ~QueryOrdersResult(); + + + QueryOrdersResult(); + explicit QueryOrdersResult(const std::string &payload); + ~QueryOrdersResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYORDERSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h index 9a767c91f..b004887e9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h @@ -1,54 +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_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPrepaidCardsRequest : public RpcServiceRequest - { - - public: - QueryPrepaidCardsRequest(); - ~QueryPrepaidCardsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPrepaidCardsRequest : public RpcServiceRequest + { + + public: + QueryPrepaidCardsRequest(); + ~QueryPrepaidCardsRequest(); + std::string getExpiryTimeEnd()const; void setExpiryTimeEnd(const std::string& expiryTimeEnd); std::string getExpiryTimeStart()const; void setExpiryTimeStart(const std::string& expiryTimeStart); bool getEffectiveOrNot()const; void setEffectiveOrNot(bool effectiveOrNot); - - private: + + private: std::string expiryTimeEnd_; std::string expiryTimeStart_; bool effectiveOrNot_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h index b62cf965f..bdd8f5191 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPrepaidCardsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryPrepaidCardsResult : public ServiceResult + { + public: struct PrepaidCard { std::string status; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string grantedTime; std::string applicableScenarios; }; - - - QueryPrepaidCardsResult(); - explicit QueryPrepaidCardsResult(const std::string &payload); - ~QueryPrepaidCardsResult(); + + + QueryPrepaidCardsResult(); + explicit QueryPrepaidCardsResult(const std::string &payload); + ~QueryPrepaidCardsResult(); std::string getMessage()const; std::vector getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::vector data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPREPAIDCARDSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h index fbd9d323b..683f2a400 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListRequest.h @@ -1,54 +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_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryProductListRequest : public RpcServiceRequest - { - - public: - QueryProductListRequest(); - ~QueryProductListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryProductListRequest : public RpcServiceRequest + { + + public: + QueryProductListRequest(); + ~QueryProductListRequest(); + bool getQueryTotalCount()const; void setQueryTotalCount(bool queryTotalCount); int getPageSize()const; void setPageSize(int pageSize); int getPageNum()const; void setPageNum(int pageNum); - - private: + + private: bool queryTotalCount_; int pageSize_; int pageNum_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListResult.h index 2660fa5c4..189461b64 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryProductListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryProductListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryProductListResult : public ServiceResult + { + public: struct Data { struct Product @@ -46,26 +46,26 @@ namespace AlibabaCloud int pageNum; int pageSize; }; - - - QueryProductListResult(); - explicit QueryProductListResult(const std::string &payload); - ~QueryProductListResult(); + + + QueryProductListResult(); + explicit QueryProductListResult(const std::string &payload); + ~QueryProductListResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRODUCTLISTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h index 8fb1f6fdd..70fec1255 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRedeemRequest : public RpcServiceRequest - { - - public: - QueryRedeemRequest(); - ~QueryRedeemRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRedeemRequest : public RpcServiceRequest + { + + public: + QueryRedeemRequest(); + ~QueryRedeemRequest(); + std::string getExpiryTimeEnd()const; void setExpiryTimeEnd(const std::string& expiryTimeEnd); int getPageSize()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setPageNum(int pageNum); bool getEffectiveOrNot()const; void setEffectiveOrNot(bool effectiveOrNot); - - private: + + private: std::string expiryTimeEnd_; int pageSize_; std::string expiryTimeStart_; int pageNum_; bool effectiveOrNot_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h index 6c4e25b34..5d2c7f580 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryRedeemResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRedeemResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRedeemResult : public ServiceResult + { + public: struct Data { struct RedeemItem @@ -52,26 +52,26 @@ namespace AlibabaCloud long pageSize; std::vector redeem; }; - - - QueryRedeemResult(); - explicit QueryRedeemResult(const std::string &payload); - ~QueryRedeemResult(); + + + QueryRedeemResult(); + explicit QueryRedeemResult(const std::string &payload); + ~QueryRedeemResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYREDEEMRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h index 3e33efb93..7083aff0e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h @@ -1,51 +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_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaRequest : public RpcServiceRequest - { - - public: - QueryResellerAvailableQuotaRequest(); - ~QueryResellerAvailableQuotaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaRequest : public RpcServiceRequest + { + + public: + QueryResellerAvailableQuotaRequest(); + ~QueryResellerAvailableQuotaRequest(); + std::string getItemCodes()const; void setItemCodes(const std::string& itemCodes); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string itemCodes_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h index 8eba0a34d..8f8fbc9f9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h @@ -1,57 +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_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaResult : public ServiceResult - { - public: - - - QueryResellerAvailableQuotaResult(); - explicit QueryResellerAvailableQuotaResult(const std::string &payload); - ~QueryResellerAvailableQuotaResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaResult : public ServiceResult + { + public: + + + QueryResellerAvailableQuotaResult(); + explicit QueryResellerAvailableQuotaResult(const std::string &payload); + ~QueryResellerAvailableQuotaResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h index b8e69b0a1..954a8d6f3 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResourcePackageInstancesRequest : public RpcServiceRequest - { - - public: - QueryResourcePackageInstancesRequest(); - ~QueryResourcePackageInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResourcePackageInstancesRequest : public RpcServiceRequest + { + + public: + QueryResourcePackageInstancesRequest(); + ~QueryResourcePackageInstancesRequest(); + std::string getExpiryTimeEnd()const; void setExpiryTimeEnd(const std::string& expiryTimeEnd); std::string getProductCode()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setExpiryTimeStart(const std::string& expiryTimeStart); int getPageNum()const; void setPageNum(int pageNum); - - private: + + private: std::string expiryTimeEnd_; std::string productCode_; int pageSize_; long ownerId_; std::string expiryTimeStart_; int pageNum_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h index 392312571..992d8cfd9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResourcePackageInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResourcePackageInstancesResult : public ServiceResult + { + public: struct Data { struct Instance @@ -56,11 +56,11 @@ namespace AlibabaCloud std::string pageSize; std::string hostId; }; - - - QueryResourcePackageInstancesResult(); - explicit QueryResourcePackageInstancesResult(const std::string &payload); - ~QueryResourcePackageInstancesResult(); + + + QueryResourcePackageInstancesResult(); + explicit QueryResourcePackageInstancesResult(const std::string &payload); + ~QueryResourcePackageInstancesResult(); std::string getMessage()const; int getPageSize()const; int getTotal()const; @@ -68,10 +68,10 @@ namespace AlibabaCloud int getPage()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; int pageSize_; int total_; @@ -79,9 +79,9 @@ namespace AlibabaCloud int page_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESOURCEPACKAGEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h index 8aca8e1e8..499ad0543 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettlementBillRequest : public RpcServiceRequest - { - - public: - QuerySettlementBillRequest(); - ~QuerySettlementBillRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettlementBillRequest : public RpcServiceRequest + { + + public: + QuerySettlementBillRequest(); + ~QuerySettlementBillRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); bool getIsHideZeroCharge()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setType(const std::string& type); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; bool isHideZeroCharge_; std::string subscriptionType_; @@ -70,9 +70,9 @@ namespace AlibabaCloud int pageNum_; std::string type_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h index 5bfbda6d5..4c1b70f12 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettlementBillResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettlementBillResult : public ServiceResult + { + public: struct Data { struct Item @@ -86,26 +86,26 @@ namespace AlibabaCloud int pageSize; std::vector items; }; - - - QuerySettlementBillResult(); - explicit QuerySettlementBillResult(const std::string &payload); - ~QuerySettlementBillResult(); + + + QuerySettlementBillResult(); + explicit QuerySettlementBillResult(const std::string &payload); + ~QuerySettlementBillResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEMENTBILLRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h index 64902ecb0..7c0040824 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryUserOmsDataRequest : public RpcServiceRequest - { - - public: - QueryUserOmsDataRequest(); - ~QueryUserOmsDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryUserOmsDataRequest : public RpcServiceRequest + { + + public: + QueryUserOmsDataRequest(); + ~QueryUserOmsDataRequest(); + std::string getDataType()const; void setDataType(const std::string& dataType); std::string getMarker()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getTable()const; void setTable(const std::string& table); - - private: + + private: std::string dataType_; std::string marker_; int pageSize_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string startTime_; long ownerId_; std::string table_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATAREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataResult.h index ff6a4ee18..629d40f15 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryUserOmsDataResult.h @@ -1,63 +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_BSSOPENAPI_MODEL_QUERYUSEROMSDATARESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryUserOmsDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATARESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryUserOmsDataResult : public ServiceResult + { + public: struct Data { std::string marker; std::string hostId; std::vector omsData; }; - - - QueryUserOmsDataResult(); - explicit QueryUserOmsDataResult(const std::string &payload); - ~QueryUserOmsDataResult(); + + + QueryUserOmsDataResult(); + explicit QueryUserOmsDataResult(const std::string &payload); + ~QueryUserOmsDataResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSEROMSDATARESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h index 33c065ea5..f4676515b 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewInstanceRequest : public RpcServiceRequest - { - - public: - RenewInstanceRequest(); - ~RenewInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewInstanceRequest : public RpcServiceRequest + { + + public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getInstanceId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string instanceId_; std::string clientToken_; int renewPeriod_; long ownerId_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceResult.h index a129d5da4..0767f3ecd 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/RenewInstanceResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCERESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewInstanceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT RenewInstanceResult : public ServiceResult + { + public: struct Data { std::string orderId; }; - - - RenewInstanceResult(); - explicit RenewInstanceResult(const std::string &payload); - ~RenewInstanceResult(); + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h index 9d464fd23..842d52983 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetRenewalRequest : public RpcServiceRequest - { - - public: - SetRenewalRequest(); - ~SetRenewalRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetRenewalRequest : public RpcServiceRequest + { + + public: + SetRenewalRequest(); + ~SetRenewalRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getInstanceIDs()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getProductType()const; void setProductType(const std::string& productType); - - private: + + private: std::string productCode_; std::string instanceIDs_; std::string subscriptionType_; @@ -61,9 +61,9 @@ namespace AlibabaCloud int renewalPeriod_; long ownerId_; std::string productType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalResult.h index 0cac534e5..c160dc26e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetRenewalResult.h @@ -1,55 +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_BSSOPENAPI_MODEL_SETRENEWALRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetRenewalResult : public ServiceResult - { - public: - - - SetRenewalResult(); - explicit SetRenewalResult(const std::string &payload); - ~SetRenewalResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetRenewalResult : public ServiceResult + { + public: + + + SetRenewalResult(); + explicit SetRenewalResult(const std::string &payload); + ~SetRenewalResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRENEWALRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h index 161e1883f..ae37de8fd 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h @@ -1,54 +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_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdRequest : public RpcServiceRequest - { - - public: - SetResellerUserAlarmThresholdRequest(); - ~SetResellerUserAlarmThresholdRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdRequest : public RpcServiceRequest + { + + public: + SetResellerUserAlarmThresholdRequest(); + ~SetResellerUserAlarmThresholdRequest(); + std::string getAlarmType()const; void setAlarmType(const std::string& alarmType); std::string getAlarmThresholds()const; void setAlarmThresholds(const std::string& alarmThresholds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string alarmType_; std::string alarmThresholds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h index 6fdb75cb5..4e6b3cec9 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h @@ -1,57 +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_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdResult : public ServiceResult - { - public: - - - SetResellerUserAlarmThresholdResult(); - explicit SetResellerUserAlarmThresholdResult(const std::string &payload); - ~SetResellerUserAlarmThresholdResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdResult : public ServiceResult + { + public: + + + SetResellerUserAlarmThresholdResult(); + explicit SetResellerUserAlarmThresholdResult(const std::string &payload); + ~SetResellerUserAlarmThresholdResult(); std::string getMessage()const; bool getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; bool data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h index 7c93f6316..63542b6f2 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaRequest : public RpcServiceRequest - { - - public: - SetResellerUserQuotaRequest(); - ~SetResellerUserQuotaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaRequest : public RpcServiceRequest + { + + public: + SetResellerUserQuotaRequest(); + ~SetResellerUserQuotaRequest(); + std::string getAmount()const; void setAmount(const std::string& amount); std::string getOutBizId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setCurrency(const std::string& currency); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string amount_; std::string outBizId_; std::string currency_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h index 6ab3be6af..c8e6e9044 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h @@ -1,57 +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_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaResult : public ServiceResult - { - public: - - - SetResellerUserQuotaResult(); - explicit SetResellerUserQuotaResult(const std::string &payload); - ~SetResellerUserQuotaResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaResult : public ServiceResult + { + public: + + + SetResellerUserQuotaResult(); + explicit SetResellerUserQuotaResult(const std::string &payload); + ~SetResellerUserQuotaResult(); std::string getMessage()const; bool getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; bool data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h index b7e7c03dd..8a9b4ac0c 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h @@ -1,54 +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_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusRequest : public RpcServiceRequest - { - - public: - SetResellerUserStatusRequest(); - ~SetResellerUserStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusRequest : public RpcServiceRequest + { + + public: + SetResellerUserStatusRequest(); + ~SetResellerUserStatusRequest(); + std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); std::string getStatus()const; void setStatus(const std::string& status); std::string getBusinessType()const; void setBusinessType(const std::string& businessType); - - private: + + private: std::string ownerId_; std::string status_; std::string businessType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h index 7f823d2d7..6fba4c7e7 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h @@ -1,57 +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_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusResult : public ServiceResult - { - public: - - - SetResellerUserStatusResult(); - explicit SetResellerUserStatusResult(const std::string &payload); - ~SetResellerUserStatusResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusResult : public ServiceResult + { + public: + + + SetResellerUserStatusResult(); + explicit SetResellerUserStatusResult(const std::string &payload); + ~SetResellerUserStatusResult(); std::string getMessage()const; bool getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; bool data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h index 8296f69b1..3610b4b47 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSRequest : public RpcServiceRequest - { - - public: - SubscribeBillToOSSRequest(); - ~SubscribeBillToOSSRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSRequest : public RpcServiceRequest + { + + public: + SubscribeBillToOSSRequest(); + ~SubscribeBillToOSSRequest(); + long getBucketOwnerId()const; void setBucketOwnerId(long bucketOwnerId); std::string getSubscribeType()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setSubscribeBucket(const std::string& subscribeBucket); std::string getMultAccountRelSubscribe()const; void setMultAccountRelSubscribe(const std::string& multAccountRelSubscribe); - - private: + + private: long bucketOwnerId_; std::string subscribeType_; std::string subscribeBucket_; std::string multAccountRelSubscribe_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h index 835c392de..e6871e829 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h @@ -1,55 +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_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSResult : public ServiceResult - { - public: - - - SubscribeBillToOSSResult(); - explicit SubscribeBillToOSSResult(const std::string &payload); - ~SubscribeBillToOSSResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SubscribeBillToOSSResult : public ServiceResult + { + public: + + + SubscribeBillToOSSResult(); + explicit SubscribeBillToOSSResult(const std::string &payload); + ~SubscribeBillToOSSResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEBILLTOOSSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h index 52194c2c8..47d5b2e4e 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h @@ -1,51 +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_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSRequest : public RpcServiceRequest - { - - public: - UnsubscribeBillToOSSRequest(); - ~UnsubscribeBillToOSSRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSRequest : public RpcServiceRequest + { + + public: + UnsubscribeBillToOSSRequest(); + ~UnsubscribeBillToOSSRequest(); + std::string getSubscribeType()const; void setSubscribeType(const std::string& subscribeType); std::string getMultAccountRelSubscribe()const; void setMultAccountRelSubscribe(const std::string& multAccountRelSubscribe); - - private: + + private: std::string subscribeType_; std::string multAccountRelSubscribe_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h index 44f3a991d..98725997a 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h @@ -1,55 +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_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_ -#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace BssOpenApi - { - namespace Model - { - class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSResult : public ServiceResult - { - public: - - - UnsubscribeBillToOSSResult(); - explicit UnsubscribeBillToOSSResult(const std::string &payload); - ~UnsubscribeBillToOSSResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT UnsubscribeBillToOSSResult : public ServiceResult + { + public: + + + UnsubscribeBillToOSSResult(); + explicit UnsubscribeBillToOSSResult(const std::string &payload); + ~UnsubscribeBillToOSSResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEBILLTOOSSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/src/BssOpenApiClient.cc b/bssopenapi/src/BssOpenApiClient.cc index fc1d23ec2..45505ebdb 100644 --- a/bssopenapi/src/BssOpenApiClient.cc +++ b/bssopenapi/src/BssOpenApiClient.cc @@ -1,1709 +1,2213 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -namespace -{ - const std::string SERVICE_NAME = "BssOpenApi"; -} - -BssOpenApiClient::BssOpenApiClient(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, ""); -} - -BssOpenApiClient::BssOpenApiClient(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, ""); -} - -BssOpenApiClient::BssOpenApiClient(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, ""); -} - -BssOpenApiClient::~BssOpenApiClient() -{} - -BssOpenApiClient::QueryMonthlyBillOutcome BssOpenApiClient::queryMonthlyBill(const QueryMonthlyBillRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMonthlyBillOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMonthlyBillOutcome(QueryMonthlyBillResult(outcome.result())); - else - return QueryMonthlyBillOutcome(outcome.error()); -} - -void BssOpenApiClient::queryMonthlyBillAsync(const QueryMonthlyBillRequest& request, const QueryMonthlyBillAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMonthlyBill(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryMonthlyBillOutcomeCallable BssOpenApiClient::queryMonthlyBillCallable(const QueryMonthlyBillRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMonthlyBill(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryInstanceGaapCostOutcome BssOpenApiClient::queryInstanceGaapCost(const QueryInstanceGaapCostRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryInstanceGaapCostOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryInstanceGaapCostOutcome(QueryInstanceGaapCostResult(outcome.result())); - else - return QueryInstanceGaapCostOutcome(outcome.error()); -} - -void BssOpenApiClient::queryInstanceGaapCostAsync(const QueryInstanceGaapCostRequest& request, const QueryInstanceGaapCostAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryInstanceGaapCost(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryInstanceGaapCostOutcomeCallable BssOpenApiClient::queryInstanceGaapCostCallable(const QueryInstanceGaapCostRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryInstanceGaapCost(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryMonthlyInstanceConsumptionOutcome BssOpenApiClient::queryMonthlyInstanceConsumption(const QueryMonthlyInstanceConsumptionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMonthlyInstanceConsumptionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMonthlyInstanceConsumptionOutcome(QueryMonthlyInstanceConsumptionResult(outcome.result())); - else - return QueryMonthlyInstanceConsumptionOutcome(outcome.error()); -} - -void BssOpenApiClient::queryMonthlyInstanceConsumptionAsync(const QueryMonthlyInstanceConsumptionRequest& request, const QueryMonthlyInstanceConsumptionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMonthlyInstanceConsumption(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryMonthlyInstanceConsumptionOutcomeCallable BssOpenApiClient::queryMonthlyInstanceConsumptionCallable(const QueryMonthlyInstanceConsumptionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMonthlyInstanceConsumption(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryAccountTransactionsOutcome BssOpenApiClient::queryAccountTransactions(const QueryAccountTransactionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryAccountTransactionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryAccountTransactionsOutcome(QueryAccountTransactionsResult(outcome.result())); - else - return QueryAccountTransactionsOutcome(outcome.error()); -} - -void BssOpenApiClient::queryAccountTransactionsAsync(const QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryAccountTransactions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryAccountTransactionsOutcomeCallable BssOpenApiClient::queryAccountTransactionsCallable(const QueryAccountTransactionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryAccountTransactions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryPrepaidCardsOutcome BssOpenApiClient::queryPrepaidCards(const QueryPrepaidCardsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryPrepaidCardsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryPrepaidCardsOutcome(QueryPrepaidCardsResult(outcome.result())); - else - return QueryPrepaidCardsOutcome(outcome.error()); -} - -void BssOpenApiClient::queryPrepaidCardsAsync(const QueryPrepaidCardsRequest& request, const QueryPrepaidCardsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryPrepaidCards(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryPrepaidCardsOutcomeCallable BssOpenApiClient::queryPrepaidCardsCallable(const QueryPrepaidCardsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryPrepaidCards(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryAvailableInstancesOutcome BssOpenApiClient::queryAvailableInstances(const QueryAvailableInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryAvailableInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryAvailableInstancesOutcome(QueryAvailableInstancesResult(outcome.result())); - else - return QueryAvailableInstancesOutcome(outcome.error()); -} - -void BssOpenApiClient::queryAvailableInstancesAsync(const QueryAvailableInstancesRequest& request, const QueryAvailableInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryAvailableInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryAvailableInstancesOutcomeCallable BssOpenApiClient::queryAvailableInstancesCallable(const QueryAvailableInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryAvailableInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::CreateInstanceOutcome BssOpenApiClient::createInstance(const CreateInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); - else - return CreateInstanceOutcome(outcome.error()); -} - -void BssOpenApiClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::CreateInstanceOutcomeCallable BssOpenApiClient::createInstanceCallable(const CreateInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::GetOrderDetailOutcome BssOpenApiClient::getOrderDetail(const GetOrderDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOrderDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOrderDetailOutcome(GetOrderDetailResult(outcome.result())); - else - return GetOrderDetailOutcome(outcome.error()); -} - -void BssOpenApiClient::getOrderDetailAsync(const GetOrderDetailRequest& request, const GetOrderDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOrderDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::GetOrderDetailOutcomeCallable BssOpenApiClient::getOrderDetailCallable(const GetOrderDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOrderDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryCustomerAddressListOutcome BssOpenApiClient::queryCustomerAddressList(const QueryCustomerAddressListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCustomerAddressListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCustomerAddressListOutcome(QueryCustomerAddressListResult(outcome.result())); - else - return QueryCustomerAddressListOutcome(outcome.error()); -} - -void BssOpenApiClient::queryCustomerAddressListAsync(const QueryCustomerAddressListRequest& request, const QueryCustomerAddressListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCustomerAddressList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryCustomerAddressListOutcomeCallable BssOpenApiClient::queryCustomerAddressListCallable(const QueryCustomerAddressListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCustomerAddressList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::ModifyInstanceOutcome BssOpenApiClient::modifyInstance(const ModifyInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyInstanceOutcome(ModifyInstanceResult(outcome.result())); - else - return ModifyInstanceOutcome(outcome.error()); -} - -void BssOpenApiClient::modifyInstanceAsync(const ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::ModifyInstanceOutcomeCallable BssOpenApiClient::modifyInstanceCallable(const ModifyInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::CancelOrderOutcome BssOpenApiClient::cancelOrder(const CancelOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CancelOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CancelOrderOutcome(CancelOrderResult(outcome.result())); - else - return CancelOrderOutcome(outcome.error()); -} - -void BssOpenApiClient::cancelOrderAsync(const CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cancelOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::CancelOrderOutcomeCallable BssOpenApiClient::cancelOrderCallable(const CancelOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cancelOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::CreateResellerUserQuotaOutcome BssOpenApiClient::createResellerUserQuota(const CreateResellerUserQuotaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateResellerUserQuotaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateResellerUserQuotaOutcome(CreateResellerUserQuotaResult(outcome.result())); - else - return CreateResellerUserQuotaOutcome(outcome.error()); -} - -void BssOpenApiClient::createResellerUserQuotaAsync(const CreateResellerUserQuotaRequest& request, const CreateResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createResellerUserQuota(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::CreateResellerUserQuotaOutcomeCallable BssOpenApiClient::createResellerUserQuotaCallable(const CreateResellerUserQuotaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createResellerUserQuota(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryResourcePackageInstancesOutcome BssOpenApiClient::queryResourcePackageInstances(const QueryResourcePackageInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryResourcePackageInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryResourcePackageInstancesOutcome(QueryResourcePackageInstancesResult(outcome.result())); - else - return QueryResourcePackageInstancesOutcome(outcome.error()); -} - -void BssOpenApiClient::queryResourcePackageInstancesAsync(const QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryResourcePackageInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient::queryResourcePackageInstancesCallable(const QueryResourcePackageInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryResourcePackageInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryRedeemOutcome BssOpenApiClient::queryRedeem(const QueryRedeemRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryRedeemOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryRedeemOutcome(QueryRedeemResult(outcome.result())); - else - return QueryRedeemOutcome(outcome.error()); -} - -void BssOpenApiClient::queryRedeemAsync(const QueryRedeemRequest& request, const QueryRedeemAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryRedeem(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryRedeemOutcomeCallable BssOpenApiClient::queryRedeemCallable(const QueryRedeemRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryRedeem(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::SubscribeBillToOSSOutcome BssOpenApiClient::subscribeBillToOSS(const SubscribeBillToOSSRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubscribeBillToOSSOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubscribeBillToOSSOutcome(SubscribeBillToOSSResult(outcome.result())); - else - return SubscribeBillToOSSOutcome(outcome.error()); -} - -void BssOpenApiClient::subscribeBillToOSSAsync(const SubscribeBillToOSSRequest& request, const SubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, subscribeBillToOSS(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::SubscribeBillToOSSOutcomeCallable BssOpenApiClient::subscribeBillToOSSCallable(const SubscribeBillToOSSRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->subscribeBillToOSS(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::GetPayAsYouGoPriceOutcome BssOpenApiClient::getPayAsYouGoPrice(const GetPayAsYouGoPriceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPayAsYouGoPriceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPayAsYouGoPriceOutcome(GetPayAsYouGoPriceResult(outcome.result())); - else - return GetPayAsYouGoPriceOutcome(outcome.error()); -} - -void BssOpenApiClient::getPayAsYouGoPriceAsync(const GetPayAsYouGoPriceRequest& request, const GetPayAsYouGoPriceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPayAsYouGoPrice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::GetPayAsYouGoPriceOutcomeCallable BssOpenApiClient::getPayAsYouGoPriceCallable(const GetPayAsYouGoPriceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPayAsYouGoPrice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::GetResourcePackagePriceOutcome BssOpenApiClient::getResourcePackagePrice(const GetResourcePackagePriceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetResourcePackagePriceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetResourcePackagePriceOutcome(GetResourcePackagePriceResult(outcome.result())); - else - return GetResourcePackagePriceOutcome(outcome.error()); -} - -void BssOpenApiClient::getResourcePackagePriceAsync(const GetResourcePackagePriceRequest& request, const GetResourcePackagePriceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getResourcePackagePrice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::GetResourcePackagePriceOutcomeCallable BssOpenApiClient::getResourcePackagePriceCallable(const GetResourcePackagePriceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getResourcePackagePrice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryProductListOutcome BssOpenApiClient::queryProductList(const QueryProductListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryProductListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryProductListOutcome(QueryProductListResult(outcome.result())); - else - return QueryProductListOutcome(outcome.error()); -} - -void BssOpenApiClient::queryProductListAsync(const QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryProductList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryProductListOutcomeCallable BssOpenApiClient::queryProductListCallable(const QueryProductListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryProductList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::ApplyInvoiceOutcome BssOpenApiClient::applyInvoice(const ApplyInvoiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ApplyInvoiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ApplyInvoiceOutcome(ApplyInvoiceResult(outcome.result())); - else - return ApplyInvoiceOutcome(outcome.error()); -} - -void BssOpenApiClient::applyInvoiceAsync(const ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, applyInvoice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::ApplyInvoiceOutcomeCallable BssOpenApiClient::applyInvoiceCallable(const ApplyInvoiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->applyInvoice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::UnsubscribeBillToOSSOutcome BssOpenApiClient::unsubscribeBillToOSS(const UnsubscribeBillToOSSRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnsubscribeBillToOSSOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnsubscribeBillToOSSOutcome(UnsubscribeBillToOSSResult(outcome.result())); - else - return UnsubscribeBillToOSSOutcome(outcome.error()); -} - -void BssOpenApiClient::unsubscribeBillToOSSAsync(const UnsubscribeBillToOSSRequest& request, const UnsubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unsubscribeBillToOSS(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::UnsubscribeBillToOSSOutcomeCallable BssOpenApiClient::unsubscribeBillToOSSCallable(const UnsubscribeBillToOSSRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unsubscribeBillToOSS(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::GetCustomerListOutcome BssOpenApiClient::getCustomerList(const GetCustomerListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCustomerListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCustomerListOutcome(GetCustomerListResult(outcome.result())); - else - return GetCustomerListOutcome(outcome.error()); -} - -void BssOpenApiClient::getCustomerListAsync(const GetCustomerListRequest& request, const GetCustomerListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCustomerList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::GetCustomerListOutcomeCallable BssOpenApiClient::getCustomerListCallable(const GetCustomerListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCustomerList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::GetSubscriptionPriceOutcome BssOpenApiClient::getSubscriptionPrice(const GetSubscriptionPriceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSubscriptionPriceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSubscriptionPriceOutcome(GetSubscriptionPriceResult(outcome.result())); - else - return GetSubscriptionPriceOutcome(outcome.error()); -} - -void BssOpenApiClient::getSubscriptionPriceAsync(const GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSubscriptionPrice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubscriptionPriceCallable(const GetSubscriptionPriceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSubscriptionPrice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryResellerAvailableQuotaOutcome BssOpenApiClient::queryResellerAvailableQuota(const QueryResellerAvailableQuotaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryResellerAvailableQuotaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryResellerAvailableQuotaOutcome(QueryResellerAvailableQuotaResult(outcome.result())); - else - return QueryResellerAvailableQuotaOutcome(outcome.error()); -} - -void BssOpenApiClient::queryResellerAvailableQuotaAsync(const QueryResellerAvailableQuotaRequest& request, const QueryResellerAvailableQuotaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryResellerAvailableQuota(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryResellerAvailableQuotaOutcomeCallable BssOpenApiClient::queryResellerAvailableQuotaCallable(const QueryResellerAvailableQuotaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryResellerAvailableQuota(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::SetResellerUserQuotaOutcome BssOpenApiClient::setResellerUserQuota(const SetResellerUserQuotaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetResellerUserQuotaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetResellerUserQuotaOutcome(SetResellerUserQuotaResult(outcome.result())); - else - return SetResellerUserQuotaOutcome(outcome.error()); -} - -void BssOpenApiClient::setResellerUserQuotaAsync(const SetResellerUserQuotaRequest& request, const SetResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setResellerUserQuota(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::SetResellerUserQuotaOutcomeCallable BssOpenApiClient::setResellerUserQuotaCallable(const SetResellerUserQuotaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setResellerUserQuota(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::SetResellerUserStatusOutcome BssOpenApiClient::setResellerUserStatus(const SetResellerUserStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetResellerUserStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetResellerUserStatusOutcome(SetResellerUserStatusResult(outcome.result())); - else - return SetResellerUserStatusOutcome(outcome.error()); -} - -void BssOpenApiClient::setResellerUserStatusAsync(const SetResellerUserStatusRequest& request, const SetResellerUserStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setResellerUserStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::SetResellerUserStatusOutcomeCallable BssOpenApiClient::setResellerUserStatusCallable(const SetResellerUserStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setResellerUserStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EnableBillGenerationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EnableBillGenerationOutcome(EnableBillGenerationResult(outcome.result())); - else - return EnableBillGenerationOutcome(outcome.error()); -} - -void BssOpenApiClient::enableBillGenerationAsync(const EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, enableBillGeneration(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBillGenerationCallable(const EnableBillGenerationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->enableBillGeneration(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryOrdersOutcome BssOpenApiClient::queryOrders(const QueryOrdersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryOrdersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryOrdersOutcome(QueryOrdersResult(outcome.result())); - else - return QueryOrdersOutcome(outcome.error()); -} - -void BssOpenApiClient::queryOrdersAsync(const QueryOrdersRequest& request, const QueryOrdersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryOrders(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryOrdersOutcomeCallable BssOpenApiClient::queryOrdersCallable(const QueryOrdersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryOrders(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryCashCouponsOutcome BssOpenApiClient::queryCashCoupons(const QueryCashCouponsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCashCouponsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCashCouponsOutcome(QueryCashCouponsResult(outcome.result())); - else - return QueryCashCouponsOutcome(outcome.error()); -} - -void BssOpenApiClient::queryCashCouponsAsync(const QueryCashCouponsRequest& request, const QueryCashCouponsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCashCoupons(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryCashCouponsOutcomeCallable BssOpenApiClient::queryCashCouponsCallable(const QueryCashCouponsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCashCoupons(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryInvoicingCustomerListOutcome BssOpenApiClient::queryInvoicingCustomerList(const QueryInvoicingCustomerListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryInvoicingCustomerListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryInvoicingCustomerListOutcome(QueryInvoicingCustomerListResult(outcome.result())); - else - return QueryInvoicingCustomerListOutcome(outcome.error()); -} - -void BssOpenApiClient::queryInvoicingCustomerListAsync(const QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryInvoicingCustomerList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryInvoicingCustomerListOutcomeCallable BssOpenApiClient::queryInvoicingCustomerListCallable(const QueryInvoicingCustomerListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryInvoicingCustomerList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::DescribePricingModuleOutcome BssOpenApiClient::describePricingModule(const DescribePricingModuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePricingModuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePricingModuleOutcome(DescribePricingModuleResult(outcome.result())); - else - return DescribePricingModuleOutcome(outcome.error()); -} - -void BssOpenApiClient::describePricingModuleAsync(const DescribePricingModuleRequest& request, const DescribePricingModuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePricingModule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::DescribePricingModuleOutcomeCallable BssOpenApiClient::describePricingModuleCallable(const DescribePricingModuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePricingModule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryEvaluateListOutcome BssOpenApiClient::queryEvaluateList(const QueryEvaluateListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryEvaluateListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryEvaluateListOutcome(QueryEvaluateListResult(outcome.result())); - else - return QueryEvaluateListOutcome(outcome.error()); -} - -void BssOpenApiClient::queryEvaluateListAsync(const QueryEvaluateListRequest& request, const QueryEvaluateListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryEvaluateList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryEvaluateListOutcomeCallable BssOpenApiClient::queryEvaluateListCallable(const QueryEvaluateListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryEvaluateList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryAccountBalanceOutcome BssOpenApiClient::queryAccountBalance(const QueryAccountBalanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryAccountBalanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryAccountBalanceOutcome(QueryAccountBalanceResult(outcome.result())); - else - return QueryAccountBalanceOutcome(outcome.error()); -} - -void BssOpenApiClient::queryAccountBalanceAsync(const QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryAccountBalance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryAccountBalanceOutcomeCallable BssOpenApiClient::queryAccountBalanceCallable(const QueryAccountBalanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryAccountBalance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::DescribeResourcePackageProductOutcome BssOpenApiClient::describeResourcePackageProduct(const DescribeResourcePackageProductRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeResourcePackageProductOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeResourcePackageProductOutcome(DescribeResourcePackageProductResult(outcome.result())); - else - return DescribeResourcePackageProductOutcome(outcome.error()); -} - -void BssOpenApiClient::describeResourcePackageProductAsync(const DescribeResourcePackageProductRequest& request, const DescribeResourcePackageProductAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeResourcePackageProduct(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::DescribeResourcePackageProductOutcomeCallable BssOpenApiClient::describeResourcePackageProductCallable(const DescribeResourcePackageProductRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeResourcePackageProduct(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::ChangeResellerConsumeAmountOutcome BssOpenApiClient::changeResellerConsumeAmount(const ChangeResellerConsumeAmountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ChangeResellerConsumeAmountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ChangeResellerConsumeAmountOutcome(ChangeResellerConsumeAmountResult(outcome.result())); - else - return ChangeResellerConsumeAmountOutcome(outcome.error()); -} - -void BssOpenApiClient::changeResellerConsumeAmountAsync(const ChangeResellerConsumeAmountRequest& request, const ChangeResellerConsumeAmountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, changeResellerConsumeAmount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::ChangeResellerConsumeAmountOutcomeCallable BssOpenApiClient::changeResellerConsumeAmountCallable(const ChangeResellerConsumeAmountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->changeResellerConsumeAmount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::RenewInstanceOutcome BssOpenApiClient::renewInstance(const RenewInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RenewInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); - else - return RenewInstanceOutcome(outcome.error()); -} - -void BssOpenApiClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, renewInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::RenewInstanceOutcomeCallable BssOpenApiClient::renewInstanceCallable(const RenewInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->renewInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::CreateResourcePackageOutcome BssOpenApiClient::createResourcePackage(const CreateResourcePackageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateResourcePackageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateResourcePackageOutcome(CreateResourcePackageResult(outcome.result())); - else - return CreateResourcePackageOutcome(outcome.error()); -} - -void BssOpenApiClient::createResourcePackageAsync(const CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createResourcePackage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::CreateResourcePackageOutcomeCallable BssOpenApiClient::createResourcePackageCallable(const CreateResourcePackageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createResourcePackage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::GetCustomerAccountInfoOutcome BssOpenApiClient::getCustomerAccountInfo(const GetCustomerAccountInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCustomerAccountInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCustomerAccountInfoOutcome(GetCustomerAccountInfoResult(outcome.result())); - else - return GetCustomerAccountInfoOutcome(outcome.error()); -} - -void BssOpenApiClient::getCustomerAccountInfoAsync(const GetCustomerAccountInfoRequest& request, const GetCustomerAccountInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCustomerAccountInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::GetCustomerAccountInfoOutcomeCallable BssOpenApiClient::getCustomerAccountInfoCallable(const GetCustomerAccountInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCustomerAccountInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryInstanceBillOutcome BssOpenApiClient::queryInstanceBill(const QueryInstanceBillRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryInstanceBillOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryInstanceBillOutcome(QueryInstanceBillResult(outcome.result())); - else - return QueryInstanceBillOutcome(outcome.error()); -} - -void BssOpenApiClient::queryInstanceBillAsync(const QueryInstanceBillRequest& request, const QueryInstanceBillAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryInstanceBill(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryInstanceBillOutcomeCallable BssOpenApiClient::queryInstanceBillCallable(const QueryInstanceBillRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryInstanceBill(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::SetResellerUserAlarmThresholdOutcome BssOpenApiClient::setResellerUserAlarmThreshold(const SetResellerUserAlarmThresholdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetResellerUserAlarmThresholdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetResellerUserAlarmThresholdOutcome(SetResellerUserAlarmThresholdResult(outcome.result())); - else - return SetResellerUserAlarmThresholdOutcome(outcome.error()); -} - -void BssOpenApiClient::setResellerUserAlarmThresholdAsync(const SetResellerUserAlarmThresholdRequest& request, const SetResellerUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setResellerUserAlarmThreshold(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::SetResellerUserAlarmThresholdOutcomeCallable BssOpenApiClient::setResellerUserAlarmThresholdCallable(const SetResellerUserAlarmThresholdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setResellerUserAlarmThreshold(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryBillOutcome BssOpenApiClient::queryBill(const QueryBillRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryBillOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryBillOutcome(QueryBillResult(outcome.result())); - else - return QueryBillOutcome(outcome.error()); -} - -void BssOpenApiClient::queryBillAsync(const QueryBillRequest& request, const QueryBillAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryBill(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryBillOutcomeCallable BssOpenApiClient::queryBillCallable(const QueryBillRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryBill(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::SetRenewalOutcome BssOpenApiClient::setRenewal(const SetRenewalRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetRenewalOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetRenewalOutcome(SetRenewalResult(outcome.result())); - else - return SetRenewalOutcome(outcome.error()); -} - -void BssOpenApiClient::setRenewalAsync(const SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setRenewal(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::SetRenewalOutcomeCallable BssOpenApiClient::setRenewalCallable(const SetRenewalRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setRenewal(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::CreateAgAccountOutcome BssOpenApiClient::createAgAccount(const CreateAgAccountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAgAccountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAgAccountOutcome(CreateAgAccountResult(outcome.result())); - else - return CreateAgAccountOutcome(outcome.error()); -} - -void BssOpenApiClient::createAgAccountAsync(const CreateAgAccountRequest& request, const CreateAgAccountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAgAccount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::CreateAgAccountOutcomeCallable BssOpenApiClient::createAgAccountCallable(const CreateAgAccountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAgAccount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::ConvertChargeTypeOutcome BssOpenApiClient::convertChargeType(const ConvertChargeTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConvertChargeTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConvertChargeTypeOutcome(ConvertChargeTypeResult(outcome.result())); - else - return ConvertChargeTypeOutcome(outcome.error()); -} - -void BssOpenApiClient::convertChargeTypeAsync(const ConvertChargeTypeRequest& request, const ConvertChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, convertChargeType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::ConvertChargeTypeOutcomeCallable BssOpenApiClient::convertChargeTypeCallable(const ConvertChargeTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->convertChargeType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryBillOverviewOutcome BssOpenApiClient::queryBillOverview(const QueryBillOverviewRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryBillOverviewOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryBillOverviewOutcome(QueryBillOverviewResult(outcome.result())); - else - return QueryBillOverviewOutcome(outcome.error()); -} - -void BssOpenApiClient::queryBillOverviewAsync(const QueryBillOverviewRequest& request, const QueryBillOverviewAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryBillOverview(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryBillOverviewOutcomeCallable BssOpenApiClient::queryBillOverviewCallable(const QueryBillOverviewRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryBillOverview(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QuerySettlementBillOutcome BssOpenApiClient::querySettlementBill(const QuerySettlementBillRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySettlementBillOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySettlementBillOutcome(QuerySettlementBillResult(outcome.result())); - else - return QuerySettlementBillOutcome(outcome.error()); -} - -void BssOpenApiClient::querySettlementBillAsync(const QuerySettlementBillRequest& request, const QuerySettlementBillAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySettlementBill(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QuerySettlementBillOutcomeCallable BssOpenApiClient::querySettlementBillCallable(const QuerySettlementBillRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySettlementBill(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -BssOpenApiClient::QueryUserOmsDataOutcome BssOpenApiClient::queryUserOmsData(const QueryUserOmsDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryUserOmsDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryUserOmsDataOutcome(QueryUserOmsDataResult(outcome.result())); - else - return QueryUserOmsDataOutcome(outcome.error()); -} - -void BssOpenApiClient::queryUserOmsDataAsync(const QueryUserOmsDataRequest& request, const QueryUserOmsDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryUserOmsData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -BssOpenApiClient::QueryUserOmsDataOutcomeCallable BssOpenApiClient::queryUserOmsDataCallable(const QueryUserOmsDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryUserOmsData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +namespace +{ + const std::string SERVICE_NAME = "BssOpenApi"; +} + +BssOpenApiClient::BssOpenApiClient(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, "bssopenapi"); +} + +BssOpenApiClient::BssOpenApiClient(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, "bssopenapi"); +} + +BssOpenApiClient::BssOpenApiClient(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, "bssopenapi"); +} + +BssOpenApiClient::~BssOpenApiClient() +{} + +BssOpenApiClient::QueryMonthlyBillOutcome BssOpenApiClient::queryMonthlyBill(const QueryMonthlyBillRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMonthlyBillOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMonthlyBillOutcome(QueryMonthlyBillResult(outcome.result())); + else + return QueryMonthlyBillOutcome(outcome.error()); +} + +void BssOpenApiClient::queryMonthlyBillAsync(const QueryMonthlyBillRequest& request, const QueryMonthlyBillAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMonthlyBill(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryMonthlyBillOutcomeCallable BssOpenApiClient::queryMonthlyBillCallable(const QueryMonthlyBillRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMonthlyBill(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryAccountTransactionsOutcome BssOpenApiClient::queryAccountTransactions(const QueryAccountTransactionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAccountTransactionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAccountTransactionsOutcome(QueryAccountTransactionsResult(outcome.result())); + else + return QueryAccountTransactionsOutcome(outcome.error()); +} + +void BssOpenApiClient::queryAccountTransactionsAsync(const QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAccountTransactions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryAccountTransactionsOutcomeCallable BssOpenApiClient::queryAccountTransactionsCallable(const QueryAccountTransactionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAccountTransactions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::CreateUserQuotaOutcome BssOpenApiClient::createUserQuota(const CreateUserQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserQuotaOutcome(CreateUserQuotaResult(outcome.result())); + else + return CreateUserQuotaOutcome(outcome.error()); +} + +void BssOpenApiClient::createUserQuotaAsync(const CreateUserQuotaRequest& request, const CreateUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::CreateUserQuotaOutcomeCallable BssOpenApiClient::createUserQuotaCallable(const CreateUserQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::CreateInstanceOutcome BssOpenApiClient::createInstance(const CreateInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + else + return CreateInstanceOutcome(outcome.error()); +} + +void BssOpenApiClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::CreateInstanceOutcomeCallable BssOpenApiClient::createInstanceCallable(const CreateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::CancelOrderOutcome BssOpenApiClient::cancelOrder(const CancelOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelOrderOutcome(CancelOrderResult(outcome.result())); + else + return CancelOrderOutcome(outcome.error()); +} + +void BssOpenApiClient::cancelOrderAsync(const CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::CancelOrderOutcomeCallable BssOpenApiClient::cancelOrderCallable(const CancelOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryResourcePackageInstancesOutcome BssOpenApiClient::queryResourcePackageInstances(const QueryResourcePackageInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryResourcePackageInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryResourcePackageInstancesOutcome(QueryResourcePackageInstancesResult(outcome.result())); + else + return QueryResourcePackageInstancesOutcome(outcome.error()); +} + +void BssOpenApiClient::queryResourcePackageInstancesAsync(const QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryResourcePackageInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient::queryResourcePackageInstancesCallable(const QueryResourcePackageInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryResourcePackageInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryUserAlarmThresholdOutcome BssOpenApiClient::queryUserAlarmThreshold(const QueryUserAlarmThresholdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryUserAlarmThresholdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryUserAlarmThresholdOutcome(QueryUserAlarmThresholdResult(outcome.result())); + else + return QueryUserAlarmThresholdOutcome(outcome.error()); +} + +void BssOpenApiClient::queryUserAlarmThresholdAsync(const QueryUserAlarmThresholdRequest& request, const QueryUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryUserAlarmThreshold(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryUserAlarmThresholdOutcomeCallable BssOpenApiClient::queryUserAlarmThresholdCallable(const QueryUserAlarmThresholdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryUserAlarmThreshold(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SetResellerUserQuotaOutcome BssOpenApiClient::setResellerUserQuota(const SetResellerUserQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetResellerUserQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetResellerUserQuotaOutcome(SetResellerUserQuotaResult(outcome.result())); + else + return SetResellerUserQuotaOutcome(outcome.error()); +} + +void BssOpenApiClient::setResellerUserQuotaAsync(const SetResellerUserQuotaRequest& request, const SetResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setResellerUserQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SetResellerUserQuotaOutcomeCallable BssOpenApiClient::setResellerUserQuotaCallable(const SetResellerUserQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setResellerUserQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SubscribeDetailOutcome BssOpenApiClient::subscribeDetail(const SubscribeDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubscribeDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubscribeDetailOutcome(SubscribeDetailResult(outcome.result())); + else + return SubscribeDetailOutcome(outcome.error()); +} + +void BssOpenApiClient::subscribeDetailAsync(const SubscribeDetailRequest& request, const SubscribeDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, subscribeDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SubscribeDetailOutcomeCallable BssOpenApiClient::subscribeDetailCallable(const SubscribeDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->subscribeDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableBillGenerationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableBillGenerationOutcome(EnableBillGenerationResult(outcome.result())); + else + return EnableBillGenerationOutcome(outcome.error()); +} + +void BssOpenApiClient::enableBillGenerationAsync(const EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableBillGeneration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBillGenerationCallable(const EnableBillGenerationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableBillGeneration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SetEnduserStatusOutcome BssOpenApiClient::setEnduserStatus(const SetEnduserStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetEnduserStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetEnduserStatusOutcome(SetEnduserStatusResult(outcome.result())); + else + return SetEnduserStatusOutcome(outcome.error()); +} + +void BssOpenApiClient::setEnduserStatusAsync(const SetEnduserStatusRequest& request, const SetEnduserStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setEnduserStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SetEnduserStatusOutcomeCallable BssOpenApiClient::setEnduserStatusCallable(const SetEnduserStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setEnduserStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryInvoicingCustomerListOutcome BssOpenApiClient::queryInvoicingCustomerList(const QueryInvoicingCustomerListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryInvoicingCustomerListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryInvoicingCustomerListOutcome(QueryInvoicingCustomerListResult(outcome.result())); + else + return QueryInvoicingCustomerListOutcome(outcome.error()); +} + +void BssOpenApiClient::queryInvoicingCustomerListAsync(const QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryInvoicingCustomerList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryInvoicingCustomerListOutcomeCallable BssOpenApiClient::queryInvoicingCustomerListCallable(const QueryInvoicingCustomerListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryInvoicingCustomerList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryAccountBalanceOutcome BssOpenApiClient::queryAccountBalance(const QueryAccountBalanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAccountBalanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAccountBalanceOutcome(QueryAccountBalanceResult(outcome.result())); + else + return QueryAccountBalanceOutcome(outcome.error()); +} + +void BssOpenApiClient::queryAccountBalanceAsync(const QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAccountBalance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryAccountBalanceOutcomeCallable BssOpenApiClient::queryAccountBalanceCallable(const QueryAccountBalanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAccountBalance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::RenewInstanceOutcome BssOpenApiClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); + else + return RenewInstanceOutcome(outcome.error()); +} + +void BssOpenApiClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::RenewInstanceOutcomeCallable BssOpenApiClient::renewInstanceCallable(const RenewInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SetResellerUserAlarmThresholdOutcome BssOpenApiClient::setResellerUserAlarmThreshold(const SetResellerUserAlarmThresholdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetResellerUserAlarmThresholdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetResellerUserAlarmThresholdOutcome(SetResellerUserAlarmThresholdResult(outcome.result())); + else + return SetResellerUserAlarmThresholdOutcome(outcome.error()); +} + +void BssOpenApiClient::setResellerUserAlarmThresholdAsync(const SetResellerUserAlarmThresholdRequest& request, const SetResellerUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setResellerUserAlarmThreshold(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SetResellerUserAlarmThresholdOutcomeCallable BssOpenApiClient::setResellerUserAlarmThresholdCallable(const SetResellerUserAlarmThresholdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setResellerUserAlarmThreshold(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::CreateAgAccountOutcome BssOpenApiClient::createAgAccount(const CreateAgAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAgAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAgAccountOutcome(CreateAgAccountResult(outcome.result())); + else + return CreateAgAccountOutcome(outcome.error()); +} + +void BssOpenApiClient::createAgAccountAsync(const CreateAgAccountRequest& request, const CreateAgAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAgAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::CreateAgAccountOutcomeCallable BssOpenApiClient::createAgAccountCallable(const CreateAgAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAgAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryInstanceGaapCostOutcome BssOpenApiClient::queryInstanceGaapCost(const QueryInstanceGaapCostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryInstanceGaapCostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryInstanceGaapCostOutcome(QueryInstanceGaapCostResult(outcome.result())); + else + return QueryInstanceGaapCostOutcome(outcome.error()); +} + +void BssOpenApiClient::queryInstanceGaapCostAsync(const QueryInstanceGaapCostRequest& request, const QueryInstanceGaapCostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryInstanceGaapCost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryInstanceGaapCostOutcomeCallable BssOpenApiClient::queryInstanceGaapCostCallable(const QueryInstanceGaapCostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryInstanceGaapCost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryMonthlyInstanceConsumptionOutcome BssOpenApiClient::queryMonthlyInstanceConsumption(const QueryMonthlyInstanceConsumptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMonthlyInstanceConsumptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMonthlyInstanceConsumptionOutcome(QueryMonthlyInstanceConsumptionResult(outcome.result())); + else + return QueryMonthlyInstanceConsumptionOutcome(outcome.error()); +} + +void BssOpenApiClient::queryMonthlyInstanceConsumptionAsync(const QueryMonthlyInstanceConsumptionRequest& request, const QueryMonthlyInstanceConsumptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMonthlyInstanceConsumption(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryMonthlyInstanceConsumptionOutcomeCallable BssOpenApiClient::queryMonthlyInstanceConsumptionCallable(const QueryMonthlyInstanceConsumptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMonthlyInstanceConsumption(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryPrepaidCardsOutcome BssOpenApiClient::queryPrepaidCards(const QueryPrepaidCardsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPrepaidCardsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPrepaidCardsOutcome(QueryPrepaidCardsResult(outcome.result())); + else + return QueryPrepaidCardsOutcome(outcome.error()); +} + +void BssOpenApiClient::queryPrepaidCardsAsync(const QueryPrepaidCardsRequest& request, const QueryPrepaidCardsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPrepaidCards(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryPrepaidCardsOutcomeCallable BssOpenApiClient::queryPrepaidCardsCallable(const QueryPrepaidCardsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPrepaidCards(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryAvailableInstancesOutcome BssOpenApiClient::queryAvailableInstances(const QueryAvailableInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAvailableInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAvailableInstancesOutcome(QueryAvailableInstancesResult(outcome.result())); + else + return QueryAvailableInstancesOutcome(outcome.error()); +} + +void BssOpenApiClient::queryAvailableInstancesAsync(const QueryAvailableInstancesRequest& request, const QueryAvailableInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAvailableInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryAvailableInstancesOutcomeCallable BssOpenApiClient::queryAvailableInstancesCallable(const QueryAvailableInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAvailableInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryEnduserStatusOutcome BssOpenApiClient::queryEnduserStatus(const QueryEnduserStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryEnduserStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryEnduserStatusOutcome(QueryEnduserStatusResult(outcome.result())); + else + return QueryEnduserStatusOutcome(outcome.error()); +} + +void BssOpenApiClient::queryEnduserStatusAsync(const QueryEnduserStatusRequest& request, const QueryEnduserStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryEnduserStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryEnduserStatusOutcomeCallable BssOpenApiClient::queryEnduserStatusCallable(const QueryEnduserStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryEnduserStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::GetOrderDetailOutcome BssOpenApiClient::getOrderDetail(const GetOrderDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOrderDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOrderDetailOutcome(GetOrderDetailResult(outcome.result())); + else + return GetOrderDetailOutcome(outcome.error()); +} + +void BssOpenApiClient::getOrderDetailAsync(const GetOrderDetailRequest& request, const GetOrderDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOrderDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::GetOrderDetailOutcomeCallable BssOpenApiClient::getOrderDetailCallable(const GetOrderDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOrderDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::ModifyInstanceOutcome BssOpenApiClient::modifyInstance(const ModifyInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceOutcome(ModifyInstanceResult(outcome.result())); + else + return ModifyInstanceOutcome(outcome.error()); +} + +void BssOpenApiClient::modifyInstanceAsync(const ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::ModifyInstanceOutcomeCallable BssOpenApiClient::modifyInstanceCallable(const ModifyInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryCustomerAddressListOutcome BssOpenApiClient::queryCustomerAddressList(const QueryCustomerAddressListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCustomerAddressListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCustomerAddressListOutcome(QueryCustomerAddressListResult(outcome.result())); + else + return QueryCustomerAddressListOutcome(outcome.error()); +} + +void BssOpenApiClient::queryCustomerAddressListAsync(const QueryCustomerAddressListRequest& request, const QueryCustomerAddressListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCustomerAddressList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryCustomerAddressListOutcomeCallable BssOpenApiClient::queryCustomerAddressListCallable(const QueryCustomerAddressListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCustomerAddressList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SetUserQuotaOutcome BssOpenApiClient::setUserQuota(const SetUserQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetUserQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetUserQuotaOutcome(SetUserQuotaResult(outcome.result())); + else + return SetUserQuotaOutcome(outcome.error()); +} + +void BssOpenApiClient::setUserQuotaAsync(const SetUserQuotaRequest& request, const SetUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setUserQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SetUserQuotaOutcomeCallable BssOpenApiClient::setUserQuotaCallable(const SetUserQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setUserQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::UnsubscribeExportToOSSOutcome BssOpenApiClient::unsubscribeExportToOSS(const UnsubscribeExportToOSSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnsubscribeExportToOSSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnsubscribeExportToOSSOutcome(UnsubscribeExportToOSSResult(outcome.result())); + else + return UnsubscribeExportToOSSOutcome(outcome.error()); +} + +void BssOpenApiClient::unsubscribeExportToOSSAsync(const UnsubscribeExportToOSSRequest& request, const UnsubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unsubscribeExportToOSS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::UnsubscribeExportToOSSOutcomeCallable BssOpenApiClient::unsubscribeExportToOSSCallable(const UnsubscribeExportToOSSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unsubscribeExportToOSS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::CreateResellerUserQuotaOutcome BssOpenApiClient::createResellerUserQuota(const CreateResellerUserQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateResellerUserQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateResellerUserQuotaOutcome(CreateResellerUserQuotaResult(outcome.result())); + else + return CreateResellerUserQuotaOutcome(outcome.error()); +} + +void BssOpenApiClient::createResellerUserQuotaAsync(const CreateResellerUserQuotaRequest& request, const CreateResellerUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createResellerUserQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::CreateResellerUserQuotaOutcomeCallable BssOpenApiClient::createResellerUserQuotaCallable(const CreateResellerUserQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createResellerUserQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryPriceListOutcome BssOpenApiClient::queryPriceList(const QueryPriceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPriceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPriceListOutcome(QueryPriceListResult(outcome.result())); + else + return QueryPriceListOutcome(outcome.error()); +} + +void BssOpenApiClient::queryPriceListAsync(const QueryPriceListRequest& request, const QueryPriceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPriceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryPriceListOutcomeCallable BssOpenApiClient::queryPriceListCallable(const QueryPriceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPriceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryRedeemOutcome BssOpenApiClient::queryRedeem(const QueryRedeemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRedeemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRedeemOutcome(QueryRedeemResult(outcome.result())); + else + return QueryRedeemOutcome(outcome.error()); +} + +void BssOpenApiClient::queryRedeemAsync(const QueryRedeemRequest& request, const QueryRedeemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRedeem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryRedeemOutcomeCallable BssOpenApiClient::queryRedeemCallable(const QueryRedeemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRedeem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SubscribeBillToOSSOutcome BssOpenApiClient::subscribeBillToOSS(const SubscribeBillToOSSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubscribeBillToOSSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubscribeBillToOSSOutcome(SubscribeBillToOSSResult(outcome.result())); + else + return SubscribeBillToOSSOutcome(outcome.error()); +} + +void BssOpenApiClient::subscribeBillToOSSAsync(const SubscribeBillToOSSRequest& request, const SubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, subscribeBillToOSS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SubscribeBillToOSSOutcomeCallable BssOpenApiClient::subscribeBillToOSSCallable(const SubscribeBillToOSSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->subscribeBillToOSS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::GetPayAsYouGoPriceOutcome BssOpenApiClient::getPayAsYouGoPrice(const GetPayAsYouGoPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPayAsYouGoPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPayAsYouGoPriceOutcome(GetPayAsYouGoPriceResult(outcome.result())); + else + return GetPayAsYouGoPriceOutcome(outcome.error()); +} + +void BssOpenApiClient::getPayAsYouGoPriceAsync(const GetPayAsYouGoPriceRequest& request, const GetPayAsYouGoPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPayAsYouGoPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::GetPayAsYouGoPriceOutcomeCallable BssOpenApiClient::getPayAsYouGoPriceCallable(const GetPayAsYouGoPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPayAsYouGoPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::GetResourcePackagePriceOutcome BssOpenApiClient::getResourcePackagePrice(const GetResourcePackagePriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourcePackagePriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourcePackagePriceOutcome(GetResourcePackagePriceResult(outcome.result())); + else + return GetResourcePackagePriceOutcome(outcome.error()); +} + +void BssOpenApiClient::getResourcePackagePriceAsync(const GetResourcePackagePriceRequest& request, const GetResourcePackagePriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourcePackagePrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::GetResourcePackagePriceOutcomeCallable BssOpenApiClient::getResourcePackagePriceCallable(const GetResourcePackagePriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourcePackagePrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::ChangeConsumeAmountOutcome BssOpenApiClient::changeConsumeAmount(const ChangeConsumeAmountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeConsumeAmountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeConsumeAmountOutcome(ChangeConsumeAmountResult(outcome.result())); + else + return ChangeConsumeAmountOutcome(outcome.error()); +} + +void BssOpenApiClient::changeConsumeAmountAsync(const ChangeConsumeAmountRequest& request, const ChangeConsumeAmountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeConsumeAmount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::ChangeConsumeAmountOutcomeCallable BssOpenApiClient::changeConsumeAmountCallable(const ChangeConsumeAmountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeConsumeAmount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::ApplyInvoiceOutcome BssOpenApiClient::applyInvoice(const ApplyInvoiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApplyInvoiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplyInvoiceOutcome(ApplyInvoiceResult(outcome.result())); + else + return ApplyInvoiceOutcome(outcome.error()); +} + +void BssOpenApiClient::applyInvoiceAsync(const ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applyInvoice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::ApplyInvoiceOutcomeCallable BssOpenApiClient::applyInvoiceCallable(const ApplyInvoiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applyInvoice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryProductListOutcome BssOpenApiClient::queryProductList(const QueryProductListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryProductListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryProductListOutcome(QueryProductListResult(outcome.result())); + else + return QueryProductListOutcome(outcome.error()); +} + +void BssOpenApiClient::queryProductListAsync(const QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryProductList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryProductListOutcomeCallable BssOpenApiClient::queryProductListCallable(const QueryProductListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryProductList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::GetCustomerListOutcome BssOpenApiClient::getCustomerList(const GetCustomerListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCustomerListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCustomerListOutcome(GetCustomerListResult(outcome.result())); + else + return GetCustomerListOutcome(outcome.error()); +} + +void BssOpenApiClient::getCustomerListAsync(const GetCustomerListRequest& request, const GetCustomerListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCustomerList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::GetCustomerListOutcomeCallable BssOpenApiClient::getCustomerListCallable(const GetCustomerListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCustomerList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::UnsubscribeBillToOSSOutcome BssOpenApiClient::unsubscribeBillToOSS(const UnsubscribeBillToOSSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnsubscribeBillToOSSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnsubscribeBillToOSSOutcome(UnsubscribeBillToOSSResult(outcome.result())); + else + return UnsubscribeBillToOSSOutcome(outcome.error()); +} + +void BssOpenApiClient::unsubscribeBillToOSSAsync(const UnsubscribeBillToOSSRequest& request, const UnsubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unsubscribeBillToOSS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::UnsubscribeBillToOSSOutcomeCallable BssOpenApiClient::unsubscribeBillToOSSCallable(const UnsubscribeBillToOSSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unsubscribeBillToOSS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SetUserAlarmThresholdOutcome BssOpenApiClient::setUserAlarmThreshold(const SetUserAlarmThresholdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetUserAlarmThresholdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetUserAlarmThresholdOutcome(SetUserAlarmThresholdResult(outcome.result())); + else + return SetUserAlarmThresholdOutcome(outcome.error()); +} + +void BssOpenApiClient::setUserAlarmThresholdAsync(const SetUserAlarmThresholdRequest& request, const SetUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setUserAlarmThreshold(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SetUserAlarmThresholdOutcomeCallable BssOpenApiClient::setUserAlarmThresholdCallable(const SetUserAlarmThresholdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setUserAlarmThreshold(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::GetSubscriptionPriceOutcome BssOpenApiClient::getSubscriptionPrice(const GetSubscriptionPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSubscriptionPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSubscriptionPriceOutcome(GetSubscriptionPriceResult(outcome.result())); + else + return GetSubscriptionPriceOutcome(outcome.error()); +} + +void BssOpenApiClient::getSubscriptionPriceAsync(const GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSubscriptionPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubscriptionPriceCallable(const GetSubscriptionPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSubscriptionPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryResellerAvailableQuotaOutcome BssOpenApiClient::queryResellerAvailableQuota(const QueryResellerAvailableQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryResellerAvailableQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryResellerAvailableQuotaOutcome(QueryResellerAvailableQuotaResult(outcome.result())); + else + return QueryResellerAvailableQuotaOutcome(outcome.error()); +} + +void BssOpenApiClient::queryResellerAvailableQuotaAsync(const QueryResellerAvailableQuotaRequest& request, const QueryResellerAvailableQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryResellerAvailableQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryResellerAvailableQuotaOutcomeCallable BssOpenApiClient::queryResellerAvailableQuotaCallable(const QueryResellerAvailableQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryResellerAvailableQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SetResellerUserStatusOutcome BssOpenApiClient::setResellerUserStatus(const SetResellerUserStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetResellerUserStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetResellerUserStatusOutcome(SetResellerUserStatusResult(outcome.result())); + else + return SetResellerUserStatusOutcome(outcome.error()); +} + +void BssOpenApiClient::setResellerUserStatusAsync(const SetResellerUserStatusRequest& request, const SetResellerUserStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setResellerUserStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SetResellerUserStatusOutcomeCallable BssOpenApiClient::setResellerUserStatusCallable(const SetResellerUserStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setResellerUserStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryAccountBookListOutcome BssOpenApiClient::queryAccountBookList(const QueryAccountBookListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAccountBookListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAccountBookListOutcome(QueryAccountBookListResult(outcome.result())); + else + return QueryAccountBookListOutcome(outcome.error()); +} + +void BssOpenApiClient::queryAccountBookListAsync(const QueryAccountBookListRequest& request, const QueryAccountBookListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAccountBookList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryAccountBookListOutcomeCallable BssOpenApiClient::queryAccountBookListCallable(const QueryAccountBookListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAccountBookList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryCashCouponsOutcome BssOpenApiClient::queryCashCoupons(const QueryCashCouponsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCashCouponsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCashCouponsOutcome(QueryCashCouponsResult(outcome.result())); + else + return QueryCashCouponsOutcome(outcome.error()); +} + +void BssOpenApiClient::queryCashCouponsAsync(const QueryCashCouponsRequest& request, const QueryCashCouponsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCashCoupons(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryCashCouponsOutcomeCallable BssOpenApiClient::queryCashCouponsCallable(const QueryCashCouponsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCashCoupons(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryOrdersOutcome BssOpenApiClient::queryOrders(const QueryOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryOrdersOutcome(QueryOrdersResult(outcome.result())); + else + return QueryOrdersOutcome(outcome.error()); +} + +void BssOpenApiClient::queryOrdersAsync(const QueryOrdersRequest& request, const QueryOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryOrdersOutcomeCallable BssOpenApiClient::queryOrdersCallable(const QueryOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryEvaluateListOutcome BssOpenApiClient::queryEvaluateList(const QueryEvaluateListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryEvaluateListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryEvaluateListOutcome(QueryEvaluateListResult(outcome.result())); + else + return QueryEvaluateListOutcome(outcome.error()); +} + +void BssOpenApiClient::queryEvaluateListAsync(const QueryEvaluateListRequest& request, const QueryEvaluateListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryEvaluateList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryEvaluateListOutcomeCallable BssOpenApiClient::queryEvaluateListCallable(const QueryEvaluateListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryEvaluateList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::DescribePricingModuleOutcome BssOpenApiClient::describePricingModule(const DescribePricingModuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePricingModuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePricingModuleOutcome(DescribePricingModuleResult(outcome.result())); + else + return DescribePricingModuleOutcome(outcome.error()); +} + +void BssOpenApiClient::describePricingModuleAsync(const DescribePricingModuleRequest& request, const DescribePricingModuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePricingModule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::DescribePricingModuleOutcomeCallable BssOpenApiClient::describePricingModuleCallable(const DescribePricingModuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePricingModule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::DescribeResourcePackageProductOutcome BssOpenApiClient::describeResourcePackageProduct(const DescribeResourcePackageProductRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourcePackageProductOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourcePackageProductOutcome(DescribeResourcePackageProductResult(outcome.result())); + else + return DescribeResourcePackageProductOutcome(outcome.error()); +} + +void BssOpenApiClient::describeResourcePackageProductAsync(const DescribeResourcePackageProductRequest& request, const DescribeResourcePackageProductAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourcePackageProduct(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::DescribeResourcePackageProductOutcomeCallable BssOpenApiClient::describeResourcePackageProductCallable(const DescribeResourcePackageProductRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourcePackageProduct(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::ChangeResellerConsumeAmountOutcome BssOpenApiClient::changeResellerConsumeAmount(const ChangeResellerConsumeAmountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeResellerConsumeAmountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeResellerConsumeAmountOutcome(ChangeResellerConsumeAmountResult(outcome.result())); + else + return ChangeResellerConsumeAmountOutcome(outcome.error()); +} + +void BssOpenApiClient::changeResellerConsumeAmountAsync(const ChangeResellerConsumeAmountRequest& request, const ChangeResellerConsumeAmountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeResellerConsumeAmount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::ChangeResellerConsumeAmountOutcomeCallable BssOpenApiClient::changeResellerConsumeAmountCallable(const ChangeResellerConsumeAmountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeResellerConsumeAmount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::CreateResourcePackageOutcome BssOpenApiClient::createResourcePackage(const CreateResourcePackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateResourcePackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateResourcePackageOutcome(CreateResourcePackageResult(outcome.result())); + else + return CreateResourcePackageOutcome(outcome.error()); +} + +void BssOpenApiClient::createResourcePackageAsync(const CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createResourcePackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::CreateResourcePackageOutcomeCallable BssOpenApiClient::createResourcePackageCallable(const CreateResourcePackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createResourcePackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::GetCustomerAccountInfoOutcome BssOpenApiClient::getCustomerAccountInfo(const GetCustomerAccountInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCustomerAccountInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCustomerAccountInfoOutcome(GetCustomerAccountInfoResult(outcome.result())); + else + return GetCustomerAccountInfoOutcome(outcome.error()); +} + +void BssOpenApiClient::getCustomerAccountInfoAsync(const GetCustomerAccountInfoRequest& request, const GetCustomerAccountInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCustomerAccountInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::GetCustomerAccountInfoOutcomeCallable BssOpenApiClient::getCustomerAccountInfoCallable(const GetCustomerAccountInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCustomerAccountInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryInstanceBillOutcome BssOpenApiClient::queryInstanceBill(const QueryInstanceBillRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryInstanceBillOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryInstanceBillOutcome(QueryInstanceBillResult(outcome.result())); + else + return QueryInstanceBillOutcome(outcome.error()); +} + +void BssOpenApiClient::queryInstanceBillAsync(const QueryInstanceBillRequest& request, const QueryInstanceBillAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryInstanceBill(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryInstanceBillOutcomeCallable BssOpenApiClient::queryInstanceBillCallable(const QueryInstanceBillRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryInstanceBill(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SubscribeExportToOSSOutcome BssOpenApiClient::subscribeExportToOSS(const SubscribeExportToOSSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubscribeExportToOSSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubscribeExportToOSSOutcome(SubscribeExportToOSSResult(outcome.result())); + else + return SubscribeExportToOSSOutcome(outcome.error()); +} + +void BssOpenApiClient::subscribeExportToOSSAsync(const SubscribeExportToOSSRequest& request, const SubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, subscribeExportToOSS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SubscribeExportToOSSOutcomeCallable BssOpenApiClient::subscribeExportToOSSCallable(const SubscribeExportToOSSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->subscribeExportToOSS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryAvaliableQuotaOutcome BssOpenApiClient::queryAvaliableQuota(const QueryAvaliableQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAvaliableQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAvaliableQuotaOutcome(QueryAvaliableQuotaResult(outcome.result())); + else + return QueryAvaliableQuotaOutcome(outcome.error()); +} + +void BssOpenApiClient::queryAvaliableQuotaAsync(const QueryAvaliableQuotaRequest& request, const QueryAvaliableQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAvaliableQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryAvaliableQuotaOutcomeCallable BssOpenApiClient::queryAvaliableQuotaCallable(const QueryAvaliableQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAvaliableQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryPriceOutcome BssOpenApiClient::queryPrice(const QueryPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPriceOutcome(QueryPriceResult(outcome.result())); + else + return QueryPriceOutcome(outcome.error()); +} + +void BssOpenApiClient::queryPriceAsync(const QueryPriceRequest& request, const QueryPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryPriceOutcomeCallable BssOpenApiClient::queryPriceCallable(const QueryPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryBillOutcome BssOpenApiClient::queryBill(const QueryBillRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryBillOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryBillOutcome(QueryBillResult(outcome.result())); + else + return QueryBillOutcome(outcome.error()); +} + +void BssOpenApiClient::queryBillAsync(const QueryBillRequest& request, const QueryBillAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryBill(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryBillOutcomeCallable BssOpenApiClient::queryBillCallable(const QueryBillRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryBill(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::SetRenewalOutcome BssOpenApiClient::setRenewal(const SetRenewalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetRenewalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetRenewalOutcome(SetRenewalResult(outcome.result())); + else + return SetRenewalOutcome(outcome.error()); +} + +void BssOpenApiClient::setRenewalAsync(const SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setRenewal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::SetRenewalOutcomeCallable BssOpenApiClient::setRenewalCallable(const SetRenewalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setRenewal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryBillOverviewOutcome BssOpenApiClient::queryBillOverview(const QueryBillOverviewRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryBillOverviewOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryBillOverviewOutcome(QueryBillOverviewResult(outcome.result())); + else + return QueryBillOverviewOutcome(outcome.error()); +} + +void BssOpenApiClient::queryBillOverviewAsync(const QueryBillOverviewRequest& request, const QueryBillOverviewAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryBillOverview(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryBillOverviewOutcomeCallable BssOpenApiClient::queryBillOverviewCallable(const QueryBillOverviewRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryBillOverview(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::ConvertChargeTypeOutcome BssOpenApiClient::convertChargeType(const ConvertChargeTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConvertChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConvertChargeTypeOutcome(ConvertChargeTypeResult(outcome.result())); + else + return ConvertChargeTypeOutcome(outcome.error()); +} + +void BssOpenApiClient::convertChargeTypeAsync(const ConvertChargeTypeRequest& request, const ConvertChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, convertChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::ConvertChargeTypeOutcomeCallable BssOpenApiClient::convertChargeTypeCallable(const ConvertChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->convertChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QuerySettlementBillOutcome BssOpenApiClient::querySettlementBill(const QuerySettlementBillRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySettlementBillOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySettlementBillOutcome(QuerySettlementBillResult(outcome.result())); + else + return QuerySettlementBillOutcome(outcome.error()); +} + +void BssOpenApiClient::querySettlementBillAsync(const QuerySettlementBillRequest& request, const QuerySettlementBillAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySettlementBill(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QuerySettlementBillOutcomeCallable BssOpenApiClient::querySettlementBillCallable(const QuerySettlementBillRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySettlementBill(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +BssOpenApiClient::QueryUserOmsDataOutcome BssOpenApiClient::queryUserOmsData(const QueryUserOmsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryUserOmsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryUserOmsDataOutcome(QueryUserOmsDataResult(outcome.result())); + else + return QueryUserOmsDataOutcome(outcome.error()); +} + +void BssOpenApiClient::queryUserOmsDataAsync(const QueryUserOmsDataRequest& request, const QueryUserOmsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryUserOmsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +BssOpenApiClient::QueryUserOmsDataOutcomeCallable BssOpenApiClient::queryUserOmsDataCallable(const QueryUserOmsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryUserOmsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/bssopenapi/src/model/ApplyInvoiceRequest.cc b/bssopenapi/src/model/ApplyInvoiceRequest.cc index e5044a358..0a1952957 100644 --- a/bssopenapi/src/model/ApplyInvoiceRequest.cc +++ b/bssopenapi/src/model/ApplyInvoiceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::ApplyInvoiceRequest; - -ApplyInvoiceRequest::ApplyInvoiceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice") -{} - -ApplyInvoiceRequest::~ApplyInvoiceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::ApplyInvoiceRequest; + +ApplyInvoiceRequest::ApplyInvoiceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "ApplyInvoice") +{} + +ApplyInvoiceRequest::~ApplyInvoiceRequest() +{} + int ApplyInvoiceRequest::getInvoicingType()const { return invoicingType_; diff --git a/bssopenapi/src/model/ApplyInvoiceResult.cc b/bssopenapi/src/model/ApplyInvoiceResult.cc index 1c9b857bb..50445f984 100644 --- a/bssopenapi/src/model/ApplyInvoiceResult.cc +++ b/bssopenapi/src/model/ApplyInvoiceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -ApplyInvoiceResult::ApplyInvoiceResult() : - ServiceResult() -{} - -ApplyInvoiceResult::ApplyInvoiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ApplyInvoiceResult::~ApplyInvoiceResult() -{} - -void ApplyInvoiceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +ApplyInvoiceResult::ApplyInvoiceResult() : + ServiceResult() +{} + +ApplyInvoiceResult::ApplyInvoiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyInvoiceResult::~ApplyInvoiceResult() +{} + +void ApplyInvoiceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["InvoiceApplyId"].isNull()) data_.invoiceApplyId = std::stol(dataNode["InvoiceApplyId"].asString()); @@ -49,9 +52,9 @@ void ApplyInvoiceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string ApplyInvoiceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/CancelOrderRequest.cc b/bssopenapi/src/model/CancelOrderRequest.cc index 605085c03..6b455c98d 100644 --- a/bssopenapi/src/model/CancelOrderRequest.cc +++ b/bssopenapi/src/model/CancelOrderRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::CancelOrderRequest; - -CancelOrderRequest::CancelOrderRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CancelOrder") -{} - -CancelOrderRequest::~CancelOrderRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::CancelOrderRequest; + +CancelOrderRequest::CancelOrderRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "CancelOrder") +{} + +CancelOrderRequest::~CancelOrderRequest() +{} + std::string CancelOrderRequest::getOrderId()const { return orderId_; diff --git a/bssopenapi/src/model/CancelOrderResult.cc b/bssopenapi/src/model/CancelOrderResult.cc index 9edba10d9..e03079a92 100644 --- a/bssopenapi/src/model/CancelOrderResult.cc +++ b/bssopenapi/src/model/CancelOrderResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -CancelOrderResult::CancelOrderResult() : - ServiceResult() -{} - -CancelOrderResult::CancelOrderResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelOrderResult::~CancelOrderResult() -{} - -void CancelOrderResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CancelOrderResult::CancelOrderResult() : + ServiceResult() +{} + +CancelOrderResult::CancelOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelOrderResult::~CancelOrderResult() +{} + +void CancelOrderResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["HostId"].isNull()) data_.hostId = dataNode["HostId"].asString(); @@ -49,9 +52,9 @@ void CancelOrderResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string CancelOrderResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc b/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc index a07475b2d..9c00ab092 100644 --- a/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc +++ b/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::ChangeResellerConsumeAmountRequest; - -ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeResellerConsumeAmount") -{} - -ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::ChangeResellerConsumeAmountRequest; + +ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeResellerConsumeAmount") +{} + +ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest() +{} + std::string ChangeResellerConsumeAmountRequest::getAdjustType()const { return adjustType_; diff --git a/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc b/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc index e7e73553a..a067b44ff 100644 --- a/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc +++ b/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult() : - ServiceResult() -{} - -ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ChangeResellerConsumeAmountResult::~ChangeResellerConsumeAmountResult() -{} - -void ChangeResellerConsumeAmountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult() : + ServiceResult() +{} + +ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeResellerConsumeAmountResult::~ChangeResellerConsumeAmountResult() +{} + +void ChangeResellerConsumeAmountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) @@ -48,9 +51,9 @@ void ChangeResellerConsumeAmountResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = value["Data"].asString(); - -} - + +} + std::string ChangeResellerConsumeAmountResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/ConvertChargeTypeRequest.cc b/bssopenapi/src/model/ConvertChargeTypeRequest.cc index 227b260bb..a5b92cfca 100644 --- a/bssopenapi/src/model/ConvertChargeTypeRequest.cc +++ b/bssopenapi/src/model/ConvertChargeTypeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::ConvertChargeTypeRequest; - -ConvertChargeTypeRequest::ConvertChargeTypeRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType") -{} - -ConvertChargeTypeRequest::~ConvertChargeTypeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::ConvertChargeTypeRequest; + +ConvertChargeTypeRequest::ConvertChargeTypeRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "ConvertChargeType") +{} + +ConvertChargeTypeRequest::~ConvertChargeTypeRequest() +{} + int ConvertChargeTypeRequest::getPeriod()const { return period_; diff --git a/bssopenapi/src/model/ConvertChargeTypeResult.cc b/bssopenapi/src/model/ConvertChargeTypeResult.cc index a643b5ed9..7dc0b8231 100644 --- a/bssopenapi/src/model/ConvertChargeTypeResult.cc +++ b/bssopenapi/src/model/ConvertChargeTypeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -ConvertChargeTypeResult::ConvertChargeTypeResult() : - ServiceResult() -{} - -ConvertChargeTypeResult::ConvertChargeTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConvertChargeTypeResult::~ConvertChargeTypeResult() -{} - -void ConvertChargeTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +ConvertChargeTypeResult::ConvertChargeTypeResult() : + ServiceResult() +{} + +ConvertChargeTypeResult::ConvertChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConvertChargeTypeResult::~ConvertChargeTypeResult() +{} + +void ConvertChargeTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["OrderId"].isNull()) data_.orderId = dataNode["OrderId"].asString(); @@ -49,9 +52,9 @@ void ConvertChargeTypeResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string ConvertChargeTypeResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/CreateAgAccountRequest.cc b/bssopenapi/src/model/CreateAgAccountRequest.cc index 9799d5750..f71b5f1c2 100644 --- a/bssopenapi/src/model/CreateAgAccountRequest.cc +++ b/bssopenapi/src/model/CreateAgAccountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateAgAccountRequest; - -CreateAgAccountRequest::CreateAgAccountRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateAgAccount") -{} - -CreateAgAccountRequest::~CreateAgAccountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateAgAccountRequest; + +CreateAgAccountRequest::CreateAgAccountRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "CreateAgAccount") +{} + +CreateAgAccountRequest::~CreateAgAccountRequest() +{} + std::string CreateAgAccountRequest::getFirstName()const { return firstName_; diff --git a/bssopenapi/src/model/CreateAgAccountResult.cc b/bssopenapi/src/model/CreateAgAccountResult.cc index 9d88b947e..e31d6b72c 100644 --- a/bssopenapi/src/model/CreateAgAccountResult.cc +++ b/bssopenapi/src/model/CreateAgAccountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -CreateAgAccountResult::CreateAgAccountResult() : - ServiceResult() -{} - -CreateAgAccountResult::CreateAgAccountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAgAccountResult::~CreateAgAccountResult() -{} - -void CreateAgAccountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CreateAgAccountResult::CreateAgAccountResult() : + ServiceResult() +{} + +CreateAgAccountResult::CreateAgAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAgAccountResult::~CreateAgAccountResult() +{} + +void CreateAgAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto agRelationDtoNode = value["AgRelationDto"]; if(!agRelationDtoNode["Pk"].isNull()) agRelationDto_.pk = agRelationDtoNode["Pk"].asString(); @@ -55,9 +58,9 @@ void CreateAgAccountResult::parse(const std::string &payload) message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - -} - + +} + std::string CreateAgAccountResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/CreateInstanceRequest.cc b/bssopenapi/src/model/CreateInstanceRequest.cc index 27e8c5634..dc41f50ce 100644 --- a/bssopenapi/src/model/CreateInstanceRequest.cc +++ b/bssopenapi/src/model/CreateInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateInstanceRequest; - -CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateInstance") -{} - -CreateInstanceRequest::~CreateInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "CreateInstance") +{} + +CreateInstanceRequest::~CreateInstanceRequest() +{} + std::string CreateInstanceRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/CreateInstanceResult.cc b/bssopenapi/src/model/CreateInstanceResult.cc index bcf2ff650..b8b38274a 100644 --- a/bssopenapi/src/model/CreateInstanceResult.cc +++ b/bssopenapi/src/model/CreateInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -CreateInstanceResult::CreateInstanceResult() : - ServiceResult() -{} - -CreateInstanceResult::CreateInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateInstanceResult::~CreateInstanceResult() -{} - -void CreateInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CreateInstanceResult::CreateInstanceResult() : + ServiceResult() +{} + +CreateInstanceResult::CreateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceResult::~CreateInstanceResult() +{} + +void CreateInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["InstanceId"].isNull()) data_.instanceId = dataNode["InstanceId"].asString(); @@ -51,9 +54,9 @@ void CreateInstanceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string CreateInstanceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc b/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc index 7765f66ed..1cd5b82d5 100644 --- a/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc +++ b/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateResellerUserQuotaRequest; - -CreateResellerUserQuotaRequest::CreateResellerUserQuotaRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResellerUserQuota") -{} - -CreateResellerUserQuotaRequest::~CreateResellerUserQuotaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateResellerUserQuotaRequest; + +CreateResellerUserQuotaRequest::CreateResellerUserQuotaRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResellerUserQuota") +{} + +CreateResellerUserQuotaRequest::~CreateResellerUserQuotaRequest() +{} + std::string CreateResellerUserQuotaRequest::getAmount()const { return amount_; diff --git a/bssopenapi/src/model/CreateResellerUserQuotaResult.cc b/bssopenapi/src/model/CreateResellerUserQuotaResult.cc index 3bd28146a..3e950a08f 100644 --- a/bssopenapi/src/model/CreateResellerUserQuotaResult.cc +++ b/bssopenapi/src/model/CreateResellerUserQuotaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -CreateResellerUserQuotaResult::CreateResellerUserQuotaResult() : - ServiceResult() -{} - -CreateResellerUserQuotaResult::CreateResellerUserQuotaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateResellerUserQuotaResult::~CreateResellerUserQuotaResult() -{} - -void CreateResellerUserQuotaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CreateResellerUserQuotaResult::CreateResellerUserQuotaResult() : + ServiceResult() +{} + +CreateResellerUserQuotaResult::CreateResellerUserQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateResellerUserQuotaResult::~CreateResellerUserQuotaResult() +{} + +void CreateResellerUserQuotaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) @@ -48,9 +51,9 @@ void CreateResellerUserQuotaResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - -} - + +} + std::string CreateResellerUserQuotaResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/CreateResourcePackageRequest.cc b/bssopenapi/src/model/CreateResourcePackageRequest.cc index 9965ace93..a38d4730a 100644 --- a/bssopenapi/src/model/CreateResourcePackageRequest.cc +++ b/bssopenapi/src/model/CreateResourcePackageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateResourcePackageRequest; - -CreateResourcePackageRequest::CreateResourcePackageRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage") -{} - -CreateResourcePackageRequest::~CreateResourcePackageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::CreateResourcePackageRequest; + +CreateResourcePackageRequest::CreateResourcePackageRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResourcePackage") +{} + +CreateResourcePackageRequest::~CreateResourcePackageRequest() +{} + int CreateResourcePackageRequest::getDuration()const { return duration_; diff --git a/bssopenapi/src/model/CreateResourcePackageResult.cc b/bssopenapi/src/model/CreateResourcePackageResult.cc index 7943f9bf6..66cba219f 100644 --- a/bssopenapi/src/model/CreateResourcePackageResult.cc +++ b/bssopenapi/src/model/CreateResourcePackageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -CreateResourcePackageResult::CreateResourcePackageResult() : - ServiceResult() -{} - -CreateResourcePackageResult::CreateResourcePackageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateResourcePackageResult::~CreateResourcePackageResult() -{} - -void CreateResourcePackageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CreateResourcePackageResult::CreateResourcePackageResult() : + ServiceResult() +{} + +CreateResourcePackageResult::CreateResourcePackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateResourcePackageResult::~CreateResourcePackageResult() +{} + +void CreateResourcePackageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["OrderId"].isNull()) data_.orderId = std::stol(dataNode["OrderId"].asString()); @@ -53,9 +56,9 @@ void CreateResourcePackageResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string CreateResourcePackageResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/DescribePricingModuleRequest.cc b/bssopenapi/src/model/DescribePricingModuleRequest.cc index 2c6cb656e..d2a7ab3c2 100644 --- a/bssopenapi/src/model/DescribePricingModuleRequest.cc +++ b/bssopenapi/src/model/DescribePricingModuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::DescribePricingModuleRequest; - -DescribePricingModuleRequest::DescribePricingModuleRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribePricingModule") -{} - -DescribePricingModuleRequest::~DescribePricingModuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::DescribePricingModuleRequest; + +DescribePricingModuleRequest::DescribePricingModuleRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "DescribePricingModule") +{} + +DescribePricingModuleRequest::~DescribePricingModuleRequest() +{} + std::string DescribePricingModuleRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/DescribePricingModuleResult.cc b/bssopenapi/src/model/DescribePricingModuleResult.cc index 7dd1cd0fe..06b4273a6 100644 --- a/bssopenapi/src/model/DescribePricingModuleResult.cc +++ b/bssopenapi/src/model/DescribePricingModuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -DescribePricingModuleResult::DescribePricingModuleResult() : - ServiceResult() -{} - -DescribePricingModuleResult::DescribePricingModuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePricingModuleResult::~DescribePricingModuleResult() -{} - -void DescribePricingModuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +DescribePricingModuleResult::DescribePricingModuleResult() : + ServiceResult() +{} + +DescribePricingModuleResult::DescribePricingModuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePricingModuleResult::~DescribePricingModuleResult() +{} + +void DescribePricingModuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allModuleList = value["ModuleList"]["Module"]; for (auto value : allModuleList) @@ -90,9 +93,9 @@ void DescribePricingModuleResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string DescribePricingModuleResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc b/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc index bfb654b15..5e05589ac 100644 --- a/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc +++ b/bssopenapi/src/model/DescribeResourcePackageProductRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::DescribeResourcePackageProductRequest; - -DescribeResourcePackageProductRequest::DescribeResourcePackageProductRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourcePackageProduct") -{} - -DescribeResourcePackageProductRequest::~DescribeResourcePackageProductRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::DescribeResourcePackageProductRequest; + +DescribeResourcePackageProductRequest::DescribeResourcePackageProductRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeResourcePackageProduct") +{} + +DescribeResourcePackageProductRequest::~DescribeResourcePackageProductRequest() +{} + std::string DescribeResourcePackageProductRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/DescribeResourcePackageProductResult.cc b/bssopenapi/src/model/DescribeResourcePackageProductResult.cc index 0d44224f5..7c65e86b8 100644 --- a/bssopenapi/src/model/DescribeResourcePackageProductResult.cc +++ b/bssopenapi/src/model/DescribeResourcePackageProductResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -DescribeResourcePackageProductResult::DescribeResourcePackageProductResult() : - ServiceResult() -{} - -DescribeResourcePackageProductResult::DescribeResourcePackageProductResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeResourcePackageProductResult::~DescribeResourcePackageProductResult() -{} - -void DescribeResourcePackageProductResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +DescribeResourcePackageProductResult::DescribeResourcePackageProductResult() : + ServiceResult() +{} + +DescribeResourcePackageProductResult::DescribeResourcePackageProductResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourcePackageProductResult::~DescribeResourcePackageProductResult() +{} + +void DescribeResourcePackageProductResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allResourcePackages = value["ResourcePackages"]["ResourcePackage"]; for (auto value : allResourcePackages) @@ -103,9 +106,9 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string DescribeResourcePackageProductResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/EnableBillGenerationRequest.cc b/bssopenapi/src/model/EnableBillGenerationRequest.cc index 503ebb07b..feedf61b1 100644 --- a/bssopenapi/src/model/EnableBillGenerationRequest.cc +++ b/bssopenapi/src/model/EnableBillGenerationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::EnableBillGenerationRequest; - -EnableBillGenerationRequest::EnableBillGenerationRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "EnableBillGeneration") -{} - -EnableBillGenerationRequest::~EnableBillGenerationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::EnableBillGenerationRequest; + +EnableBillGenerationRequest::EnableBillGenerationRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "EnableBillGeneration") +{} + +EnableBillGenerationRequest::~EnableBillGenerationRequest() +{} + std::string EnableBillGenerationRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/EnableBillGenerationResult.cc b/bssopenapi/src/model/EnableBillGenerationResult.cc index 224c3b896..ad0bd20ae 100644 --- a/bssopenapi/src/model/EnableBillGenerationResult.cc +++ b/bssopenapi/src/model/EnableBillGenerationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -EnableBillGenerationResult::EnableBillGenerationResult() : - ServiceResult() -{} - -EnableBillGenerationResult::EnableBillGenerationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EnableBillGenerationResult::~EnableBillGenerationResult() -{} - -void EnableBillGenerationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +EnableBillGenerationResult::EnableBillGenerationResult() : + ServiceResult() +{} + +EnableBillGenerationResult::EnableBillGenerationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableBillGenerationResult::~EnableBillGenerationResult() +{} + +void EnableBillGenerationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Boolean"].isNull()) data_.boolean = dataNode["Boolean"].asString() == "true"; @@ -49,9 +52,9 @@ void EnableBillGenerationResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string EnableBillGenerationResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc b/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc index d5eb10a98..f0817a862 100644 --- a/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc +++ b/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetCustomerAccountInfoRequest; - -GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo") -{} - -GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetCustomerAccountInfoRequest; + +GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo") +{} + +GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest() +{} + long GetCustomerAccountInfoRequest::getOwnerId()const { return ownerId_; diff --git a/bssopenapi/src/model/GetCustomerAccountInfoResult.cc b/bssopenapi/src/model/GetCustomerAccountInfoResult.cc index e3bc707c0..8c818603d 100644 --- a/bssopenapi/src/model/GetCustomerAccountInfoResult.cc +++ b/bssopenapi/src/model/GetCustomerAccountInfoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -GetCustomerAccountInfoResult::GetCustomerAccountInfoResult() : - ServiceResult() -{} - -GetCustomerAccountInfoResult::GetCustomerAccountInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCustomerAccountInfoResult::~GetCustomerAccountInfoResult() -{} - -void GetCustomerAccountInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetCustomerAccountInfoResult::GetCustomerAccountInfoResult() : + ServiceResult() +{} + +GetCustomerAccountInfoResult::GetCustomerAccountInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCustomerAccountInfoResult::~GetCustomerAccountInfoResult() +{} + +void GetCustomerAccountInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["LoginEmail"].isNull()) data_.loginEmail = dataNode["LoginEmail"].asString(); @@ -59,9 +62,9 @@ void GetCustomerAccountInfoResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetCustomerAccountInfoResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/GetCustomerListRequest.cc b/bssopenapi/src/model/GetCustomerListRequest.cc index 442e6d0c7..3c84c22c9 100644 --- a/bssopenapi/src/model/GetCustomerListRequest.cc +++ b/bssopenapi/src/model/GetCustomerListRequest.cc @@ -1,27 +1,27 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetCustomerListRequest; - -GetCustomerListRequest::GetCustomerListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList") -{} - -GetCustomerListRequest::~GetCustomerListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetCustomerListRequest; + +GetCustomerListRequest::GetCustomerListRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList") +{} + +GetCustomerListRequest::~GetCustomerListRequest() +{} + diff --git a/bssopenapi/src/model/GetCustomerListResult.cc b/bssopenapi/src/model/GetCustomerListResult.cc index e9048c882..23f30f1bf 100644 --- a/bssopenapi/src/model/GetCustomerListResult.cc +++ b/bssopenapi/src/model/GetCustomerListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -GetCustomerListResult::GetCustomerListResult() : - ServiceResult() -{} - -GetCustomerListResult::GetCustomerListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCustomerListResult::~GetCustomerListResult() -{} - -void GetCustomerListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetCustomerListResult::GetCustomerListResult() : + ServiceResult() +{} + +GetCustomerListResult::GetCustomerListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCustomerListResult::~GetCustomerListResult() +{} + +void GetCustomerListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allUidList = dataNode["UidList"]["Item"]; for (auto value : allUidList) @@ -50,9 +53,9 @@ void GetCustomerListResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetCustomerListResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/GetOrderDetailRequest.cc b/bssopenapi/src/model/GetOrderDetailRequest.cc index e2023abce..317abb919 100644 --- a/bssopenapi/src/model/GetOrderDetailRequest.cc +++ b/bssopenapi/src/model/GetOrderDetailRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetOrderDetailRequest; - -GetOrderDetailRequest::GetOrderDetailRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetOrderDetail") -{} - -GetOrderDetailRequest::~GetOrderDetailRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetOrderDetailRequest; + +GetOrderDetailRequest::GetOrderDetailRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetOrderDetail") +{} + +GetOrderDetailRequest::~GetOrderDetailRequest() +{} + std::string GetOrderDetailRequest::getOrderId()const { return orderId_; diff --git a/bssopenapi/src/model/GetOrderDetailResult.cc b/bssopenapi/src/model/GetOrderDetailResult.cc index da08bd3fc..36fe3641e 100644 --- a/bssopenapi/src/model/GetOrderDetailResult.cc +++ b/bssopenapi/src/model/GetOrderDetailResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -GetOrderDetailResult::GetOrderDetailResult() : - ServiceResult() -{} - -GetOrderDetailResult::GetOrderDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetOrderDetailResult::~GetOrderDetailResult() -{} - -void GetOrderDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetOrderDetailResult::GetOrderDetailResult() : + ServiceResult() +{} + +GetOrderDetailResult::GetOrderDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOrderDetailResult::~GetOrderDetailResult() +{} + +void GetOrderDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["HostName"].isNull()) data_.hostName = dataNode["HostName"].asString(); @@ -113,9 +116,9 @@ void GetOrderDetailResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetOrderDetailResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc b/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc index 28cd13a9e..a1b104d20 100644 --- a/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc +++ b/bssopenapi/src/model/GetPayAsYouGoPriceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetPayAsYouGoPriceRequest; - -GetPayAsYouGoPriceRequest::GetPayAsYouGoPriceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetPayAsYouGoPrice") -{} - -GetPayAsYouGoPriceRequest::~GetPayAsYouGoPriceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetPayAsYouGoPriceRequest; + +GetPayAsYouGoPriceRequest::GetPayAsYouGoPriceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetPayAsYouGoPrice") +{} + +GetPayAsYouGoPriceRequest::~GetPayAsYouGoPriceRequest() +{} + std::string GetPayAsYouGoPriceRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc b/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc index 7908ce2da..862aae636 100644 --- a/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc +++ b/bssopenapi/src/model/GetPayAsYouGoPriceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult() : - ServiceResult() -{} - -GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetPayAsYouGoPriceResult::~GetPayAsYouGoPriceResult() -{} - -void GetPayAsYouGoPriceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult() : + ServiceResult() +{} + +GetPayAsYouGoPriceResult::GetPayAsYouGoPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPayAsYouGoPriceResult::~GetPayAsYouGoPriceResult() +{} + +void GetPayAsYouGoPriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Currency"].isNull()) data_.currency = dataNode["Currency"].asString(); @@ -77,9 +80,9 @@ void GetPayAsYouGoPriceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetPayAsYouGoPriceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/GetResourcePackagePriceRequest.cc b/bssopenapi/src/model/GetResourcePackagePriceRequest.cc index 45b691252..5153d78cb 100644 --- a/bssopenapi/src/model/GetResourcePackagePriceRequest.cc +++ b/bssopenapi/src/model/GetResourcePackagePriceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetResourcePackagePriceRequest; - -GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice") -{} - -GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetResourcePackagePriceRequest; + +GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice") +{} + +GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest() +{} + int GetResourcePackagePriceRequest::getDuration()const { return duration_; diff --git a/bssopenapi/src/model/GetResourcePackagePriceResult.cc b/bssopenapi/src/model/GetResourcePackagePriceResult.cc index 5607fb245..0383b3970 100644 --- a/bssopenapi/src/model/GetResourcePackagePriceResult.cc +++ b/bssopenapi/src/model/GetResourcePackagePriceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -GetResourcePackagePriceResult::GetResourcePackagePriceResult() : - ServiceResult() -{} - -GetResourcePackagePriceResult::GetResourcePackagePriceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetResourcePackagePriceResult::~GetResourcePackagePriceResult() -{} - -void GetResourcePackagePriceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetResourcePackagePriceResult::GetResourcePackagePriceResult() : + ServiceResult() +{} + +GetResourcePackagePriceResult::GetResourcePackagePriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourcePackagePriceResult::~GetResourcePackagePriceResult() +{} + +void GetResourcePackagePriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Currency"].isNull()) data_.currency = dataNode["Currency"].asString(); @@ -65,9 +68,9 @@ void GetResourcePackagePriceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetResourcePackagePriceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/GetSubscriptionPriceRequest.cc b/bssopenapi/src/model/GetSubscriptionPriceRequest.cc index 17c2479c6..5f9c2253b 100644 --- a/bssopenapi/src/model/GetSubscriptionPriceRequest.cc +++ b/bssopenapi/src/model/GetSubscriptionPriceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetSubscriptionPriceRequest; - -GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice") -{} - -GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::GetSubscriptionPriceRequest; + +GetSubscriptionPriceRequest::GetSubscriptionPriceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetSubscriptionPrice") +{} + +GetSubscriptionPriceRequest::~GetSubscriptionPriceRequest() +{} + int GetSubscriptionPriceRequest::getServicePeriodQuantity()const { return servicePeriodQuantity_; diff --git a/bssopenapi/src/model/GetSubscriptionPriceResult.cc b/bssopenapi/src/model/GetSubscriptionPriceResult.cc index a9aacaab1..6dab8f30e 100644 --- a/bssopenapi/src/model/GetSubscriptionPriceResult.cc +++ b/bssopenapi/src/model/GetSubscriptionPriceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -GetSubscriptionPriceResult::GetSubscriptionPriceResult() : - ServiceResult() -{} - -GetSubscriptionPriceResult::GetSubscriptionPriceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSubscriptionPriceResult::~GetSubscriptionPriceResult() -{} - -void GetSubscriptionPriceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetSubscriptionPriceResult::GetSubscriptionPriceResult() : + ServiceResult() +{} + +GetSubscriptionPriceResult::GetSubscriptionPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSubscriptionPriceResult::~GetSubscriptionPriceResult() +{} + +void GetSubscriptionPriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["OriginalPrice"].isNull()) data_.originalPrice = std::stof(dataNode["OriginalPrice"].asString()); @@ -85,9 +88,9 @@ void GetSubscriptionPriceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetSubscriptionPriceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/ModifyInstanceRequest.cc b/bssopenapi/src/model/ModifyInstanceRequest.cc index c413d8ead..a50834ea8 100644 --- a/bssopenapi/src/model/ModifyInstanceRequest.cc +++ b/bssopenapi/src/model/ModifyInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::ModifyInstanceRequest; - -ModifyInstanceRequest::ModifyInstanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyInstance") -{} - -ModifyInstanceRequest::~ModifyInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::ModifyInstanceRequest; + +ModifyInstanceRequest::ModifyInstanceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyInstance") +{} + +ModifyInstanceRequest::~ModifyInstanceRequest() +{} + std::string ModifyInstanceRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/ModifyInstanceResult.cc b/bssopenapi/src/model/ModifyInstanceResult.cc index 2d26a63aa..0a1fa5cc8 100644 --- a/bssopenapi/src/model/ModifyInstanceResult.cc +++ b/bssopenapi/src/model/ModifyInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -ModifyInstanceResult::ModifyInstanceResult() : - ServiceResult() -{} - -ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceResult::~ModifyInstanceResult() -{} - -void ModifyInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +ModifyInstanceResult::ModifyInstanceResult() : + ServiceResult() +{} + +ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceResult::~ModifyInstanceResult() +{} + +void ModifyInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["HostId"].isNull()) data_.hostId = dataNode["HostId"].asString(); @@ -51,9 +54,9 @@ void ModifyInstanceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string ModifyInstanceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryAccountBalanceRequest.cc b/bssopenapi/src/model/QueryAccountBalanceRequest.cc index 4b02adc18..894f72dae 100644 --- a/bssopenapi/src/model/QueryAccountBalanceRequest.cc +++ b/bssopenapi/src/model/QueryAccountBalanceRequest.cc @@ -1,27 +1,27 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryAccountBalanceRequest; - -QueryAccountBalanceRequest::QueryAccountBalanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance") -{} - -QueryAccountBalanceRequest::~QueryAccountBalanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryAccountBalanceRequest; + +QueryAccountBalanceRequest::QueryAccountBalanceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBalance") +{} + +QueryAccountBalanceRequest::~QueryAccountBalanceRequest() +{} + diff --git a/bssopenapi/src/model/QueryAccountBalanceResult.cc b/bssopenapi/src/model/QueryAccountBalanceResult.cc index 6f7c1df93..272782bbf 100644 --- a/bssopenapi/src/model/QueryAccountBalanceResult.cc +++ b/bssopenapi/src/model/QueryAccountBalanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryAccountBalanceResult::QueryAccountBalanceResult() : - ServiceResult() -{} - -QueryAccountBalanceResult::QueryAccountBalanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryAccountBalanceResult::~QueryAccountBalanceResult() -{} - -void QueryAccountBalanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryAccountBalanceResult::QueryAccountBalanceResult() : + ServiceResult() +{} + +QueryAccountBalanceResult::QueryAccountBalanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryAccountBalanceResult::~QueryAccountBalanceResult() +{} + +void QueryAccountBalanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["AvailableAmount"].isNull()) data_.availableAmount = dataNode["AvailableAmount"].asString(); @@ -57,9 +60,9 @@ void QueryAccountBalanceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryAccountBalanceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryAccountTransactionsRequest.cc b/bssopenapi/src/model/QueryAccountTransactionsRequest.cc index b0fffb2c2..fb66b65d9 100644 --- a/bssopenapi/src/model/QueryAccountTransactionsRequest.cc +++ b/bssopenapi/src/model/QueryAccountTransactionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryAccountTransactionsRequest; - -QueryAccountTransactionsRequest::QueryAccountTransactionsRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactions") -{} - -QueryAccountTransactionsRequest::~QueryAccountTransactionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryAccountTransactionsRequest; + +QueryAccountTransactionsRequest::QueryAccountTransactionsRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactions") +{} + +QueryAccountTransactionsRequest::~QueryAccountTransactionsRequest() +{} + std::string QueryAccountTransactionsRequest::getRecordID()const { return recordID_; diff --git a/bssopenapi/src/model/QueryAccountTransactionsResult.cc b/bssopenapi/src/model/QueryAccountTransactionsResult.cc index 31902340c..241d541c6 100644 --- a/bssopenapi/src/model/QueryAccountTransactionsResult.cc +++ b/bssopenapi/src/model/QueryAccountTransactionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryAccountTransactionsResult::QueryAccountTransactionsResult() : - ServiceResult() -{} - -QueryAccountTransactionsResult::QueryAccountTransactionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryAccountTransactionsResult::~QueryAccountTransactionsResult() -{} - -void QueryAccountTransactionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryAccountTransactionsResult::QueryAccountTransactionsResult() : + ServiceResult() +{} + +QueryAccountTransactionsResult::QueryAccountTransactionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryAccountTransactionsResult::~QueryAccountTransactionsResult() +{} + +void QueryAccountTransactionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["AccountName"].isNull()) data_.accountName = dataNode["AccountName"].asString(); @@ -87,9 +90,9 @@ void QueryAccountTransactionsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryAccountTransactionsResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryAvailableInstancesRequest.cc b/bssopenapi/src/model/QueryAvailableInstancesRequest.cc index 653f7f4e3..722ff7cb2 100644 --- a/bssopenapi/src/model/QueryAvailableInstancesRequest.cc +++ b/bssopenapi/src/model/QueryAvailableInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryAvailableInstancesRequest; - -QueryAvailableInstancesRequest::QueryAvailableInstancesRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvailableInstances") -{} - -QueryAvailableInstancesRequest::~QueryAvailableInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryAvailableInstancesRequest; + +QueryAvailableInstancesRequest::QueryAvailableInstancesRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvailableInstances") +{} + +QueryAvailableInstancesRequest::~QueryAvailableInstancesRequest() +{} + std::string QueryAvailableInstancesRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/QueryAvailableInstancesResult.cc b/bssopenapi/src/model/QueryAvailableInstancesResult.cc index 4a5b012f2..ddd2d51b4 100644 --- a/bssopenapi/src/model/QueryAvailableInstancesResult.cc +++ b/bssopenapi/src/model/QueryAvailableInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryAvailableInstancesResult::QueryAvailableInstancesResult() : - ServiceResult() -{} - -QueryAvailableInstancesResult::QueryAvailableInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryAvailableInstancesResult::~QueryAvailableInstancesResult() -{} - -void QueryAvailableInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryAvailableInstancesResult::QueryAvailableInstancesResult() : + ServiceResult() +{} + +QueryAvailableInstancesResult::QueryAvailableInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryAvailableInstancesResult::~QueryAvailableInstancesResult() +{} + +void QueryAvailableInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); @@ -95,9 +98,9 @@ void QueryAvailableInstancesResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryAvailableInstancesResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryBillOverviewRequest.cc b/bssopenapi/src/model/QueryBillOverviewRequest.cc index ddf99429a..55bd01346 100644 --- a/bssopenapi/src/model/QueryBillOverviewRequest.cc +++ b/bssopenapi/src/model/QueryBillOverviewRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryBillOverviewRequest; - -QueryBillOverviewRequest::QueryBillOverviewRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBillOverview") -{} - -QueryBillOverviewRequest::~QueryBillOverviewRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryBillOverviewRequest; + +QueryBillOverviewRequest::QueryBillOverviewRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBillOverview") +{} + +QueryBillOverviewRequest::~QueryBillOverviewRequest() +{} + std::string QueryBillOverviewRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/QueryBillOverviewResult.cc b/bssopenapi/src/model/QueryBillOverviewResult.cc index e76f44c6f..bcee7c10a 100644 --- a/bssopenapi/src/model/QueryBillOverviewResult.cc +++ b/bssopenapi/src/model/QueryBillOverviewResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryBillOverviewResult::QueryBillOverviewResult() : - ServiceResult() -{} - -QueryBillOverviewResult::QueryBillOverviewResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryBillOverviewResult::~QueryBillOverviewResult() -{} - -void QueryBillOverviewResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryBillOverviewResult::QueryBillOverviewResult() : + ServiceResult() +{} + +QueryBillOverviewResult::QueryBillOverviewResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryBillOverviewResult::~QueryBillOverviewResult() +{} + +void QueryBillOverviewResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["BillingCycle"].isNull()) data_.billingCycle = dataNode["BillingCycle"].asString(); @@ -99,9 +102,9 @@ void QueryBillOverviewResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryBillOverviewResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryBillRequest.cc b/bssopenapi/src/model/QueryBillRequest.cc index 058e36bbe..827de04f1 100644 --- a/bssopenapi/src/model/QueryBillRequest.cc +++ b/bssopenapi/src/model/QueryBillRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryBillRequest; - -QueryBillRequest::QueryBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBill") -{} - -QueryBillRequest::~QueryBillRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryBillRequest; + +QueryBillRequest::QueryBillRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryBill") +{} + +QueryBillRequest::~QueryBillRequest() +{} + std::string QueryBillRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/QueryBillResult.cc b/bssopenapi/src/model/QueryBillResult.cc index 162393ac9..3170ba840 100644 --- a/bssopenapi/src/model/QueryBillResult.cc +++ b/bssopenapi/src/model/QueryBillResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryBillResult::QueryBillResult() : - ServiceResult() -{} - -QueryBillResult::QueryBillResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryBillResult::~QueryBillResult() -{} - -void QueryBillResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryBillResult::QueryBillResult() : + ServiceResult() +{} + +QueryBillResult::QueryBillResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryBillResult::~QueryBillResult() +{} + +void QueryBillResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["BillingCycle"].isNull()) data_.billingCycle = dataNode["BillingCycle"].asString(); @@ -119,9 +122,9 @@ void QueryBillResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryBillResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryCashCouponsRequest.cc b/bssopenapi/src/model/QueryCashCouponsRequest.cc index 3ac3dff45..c928a09a4 100644 --- a/bssopenapi/src/model/QueryCashCouponsRequest.cc +++ b/bssopenapi/src/model/QueryCashCouponsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryCashCouponsRequest; - -QueryCashCouponsRequest::QueryCashCouponsRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCashCoupons") -{} - -QueryCashCouponsRequest::~QueryCashCouponsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryCashCouponsRequest; + +QueryCashCouponsRequest::QueryCashCouponsRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCashCoupons") +{} + +QueryCashCouponsRequest::~QueryCashCouponsRequest() +{} + std::string QueryCashCouponsRequest::getExpiryTimeEnd()const { return expiryTimeEnd_; diff --git a/bssopenapi/src/model/QueryCashCouponsResult.cc b/bssopenapi/src/model/QueryCashCouponsResult.cc index 3d35277a8..598827437 100644 --- a/bssopenapi/src/model/QueryCashCouponsResult.cc +++ b/bssopenapi/src/model/QueryCashCouponsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryCashCouponsResult::QueryCashCouponsResult() : - ServiceResult() -{} - -QueryCashCouponsResult::QueryCashCouponsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryCashCouponsResult::~QueryCashCouponsResult() -{} - -void QueryCashCouponsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryCashCouponsResult::QueryCashCouponsResult() : + ServiceResult() +{} + +QueryCashCouponsResult::QueryCashCouponsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCashCouponsResult::~QueryCashCouponsResult() +{} + +void QueryCashCouponsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["CashCoupon"]; for (auto value : allData) { @@ -72,9 +75,9 @@ void QueryCashCouponsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryCashCouponsResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryCustomerAddressListRequest.cc b/bssopenapi/src/model/QueryCustomerAddressListRequest.cc index 9fd3d5dfd..624e97942 100644 --- a/bssopenapi/src/model/QueryCustomerAddressListRequest.cc +++ b/bssopenapi/src/model/QueryCustomerAddressListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryCustomerAddressListRequest; - -QueryCustomerAddressListRequest::QueryCustomerAddressListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCustomerAddressList") -{} - -QueryCustomerAddressListRequest::~QueryCustomerAddressListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryCustomerAddressListRequest; + +QueryCustomerAddressListRequest::QueryCustomerAddressListRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCustomerAddressList") +{} + +QueryCustomerAddressListRequest::~QueryCustomerAddressListRequest() +{} + long QueryCustomerAddressListRequest::getCallerBid()const { return callerBid_; diff --git a/bssopenapi/src/model/QueryCustomerAddressListResult.cc b/bssopenapi/src/model/QueryCustomerAddressListResult.cc index 42c0235a6..857a0b0d6 100644 --- a/bssopenapi/src/model/QueryCustomerAddressListResult.cc +++ b/bssopenapi/src/model/QueryCustomerAddressListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryCustomerAddressListResult::QueryCustomerAddressListResult() : - ServiceResult() -{} - -QueryCustomerAddressListResult::QueryCustomerAddressListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryCustomerAddressListResult::~QueryCustomerAddressListResult() -{} - -void QueryCustomerAddressListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryCustomerAddressListResult::QueryCustomerAddressListResult() : + ServiceResult() +{} + +QueryCustomerAddressListResult::QueryCustomerAddressListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCustomerAddressListResult::~QueryCustomerAddressListResult() +{} + +void QueryCustomerAddressListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allCustomerInvoiceAddressList = value["CustomerInvoiceAddressList"]["CustomerInvoiceAddress"]; for (auto value : allCustomerInvoiceAddressList) @@ -77,9 +80,9 @@ void QueryCustomerAddressListResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryCustomerAddressListResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryEvaluateListRequest.cc b/bssopenapi/src/model/QueryEvaluateListRequest.cc index 72434b9ca..58912584c 100644 --- a/bssopenapi/src/model/QueryEvaluateListRequest.cc +++ b/bssopenapi/src/model/QueryEvaluateListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryEvaluateListRequest; - -QueryEvaluateListRequest::QueryEvaluateListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEvaluateList") -{} - -QueryEvaluateListRequest::~QueryEvaluateListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryEvaluateListRequest; + +QueryEvaluateListRequest::QueryEvaluateListRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEvaluateList") +{} + +QueryEvaluateListRequest::~QueryEvaluateListRequest() +{} + std::string QueryEvaluateListRequest::getEndSearchTime()const { return endSearchTime_; diff --git a/bssopenapi/src/model/QueryEvaluateListResult.cc b/bssopenapi/src/model/QueryEvaluateListResult.cc index e05f07a81..91010850e 100644 --- a/bssopenapi/src/model/QueryEvaluateListResult.cc +++ b/bssopenapi/src/model/QueryEvaluateListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryEvaluateListResult::QueryEvaluateListResult() : - ServiceResult() -{} - -QueryEvaluateListResult::QueryEvaluateListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryEvaluateListResult::~QueryEvaluateListResult() -{} - -void QueryEvaluateListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryEvaluateListResult::QueryEvaluateListResult() : + ServiceResult() +{} + +QueryEvaluateListResult::QueryEvaluateListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryEvaluateListResult::~QueryEvaluateListResult() +{} + +void QueryEvaluateListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["HostId"].isNull()) data_.hostId = dataNode["HostId"].asString(); @@ -107,9 +110,9 @@ void QueryEvaluateListResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryEvaluateListResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryInstanceBillRequest.cc b/bssopenapi/src/model/QueryInstanceBillRequest.cc index 2b9287eef..f6469a3ab 100644 --- a/bssopenapi/src/model/QueryInstanceBillRequest.cc +++ b/bssopenapi/src/model/QueryInstanceBillRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryInstanceBillRequest; - -QueryInstanceBillRequest::QueryInstanceBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceBill") -{} - -QueryInstanceBillRequest::~QueryInstanceBillRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryInstanceBillRequest; + +QueryInstanceBillRequest::QueryInstanceBillRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceBill") +{} + +QueryInstanceBillRequest::~QueryInstanceBillRequest() +{} + bool QueryInstanceBillRequest::getIsBillingItem()const { return isBillingItem_; diff --git a/bssopenapi/src/model/QueryInstanceBillResult.cc b/bssopenapi/src/model/QueryInstanceBillResult.cc index 7df4a41b3..404767421 100644 --- a/bssopenapi/src/model/QueryInstanceBillResult.cc +++ b/bssopenapi/src/model/QueryInstanceBillResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryInstanceBillResult::QueryInstanceBillResult() : - ServiceResult() -{} - -QueryInstanceBillResult::QueryInstanceBillResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryInstanceBillResult::~QueryInstanceBillResult() -{} - -void QueryInstanceBillResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryInstanceBillResult::QueryInstanceBillResult() : + ServiceResult() +{} + +QueryInstanceBillResult::QueryInstanceBillResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryInstanceBillResult::~QueryInstanceBillResult() +{} + +void QueryInstanceBillResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["BillingCycle"].isNull()) data_.billingCycle = dataNode["BillingCycle"].asString(); @@ -133,9 +136,9 @@ void QueryInstanceBillResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryInstanceBillResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc b/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc index ad2186dba..e09b4c6ff 100644 --- a/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc +++ b/bssopenapi/src/model/QueryInstanceGaapCostRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryInstanceGaapCostRequest; - -QueryInstanceGaapCostRequest::QueryInstanceGaapCostRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceGaapCost") -{} - -QueryInstanceGaapCostRequest::~QueryInstanceGaapCostRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryInstanceGaapCostRequest; + +QueryInstanceGaapCostRequest::QueryInstanceGaapCostRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceGaapCost") +{} + +QueryInstanceGaapCostRequest::~QueryInstanceGaapCostRequest() +{} + std::string QueryInstanceGaapCostRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/QueryInstanceGaapCostResult.cc b/bssopenapi/src/model/QueryInstanceGaapCostResult.cc index 824996770..8db531a71 100644 --- a/bssopenapi/src/model/QueryInstanceGaapCostResult.cc +++ b/bssopenapi/src/model/QueryInstanceGaapCostResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryInstanceGaapCostResult::QueryInstanceGaapCostResult() : - ServiceResult() -{} - -QueryInstanceGaapCostResult::QueryInstanceGaapCostResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryInstanceGaapCostResult::~QueryInstanceGaapCostResult() -{} - -void QueryInstanceGaapCostResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryInstanceGaapCostResult::QueryInstanceGaapCostResult() : + ServiceResult() +{} + +QueryInstanceGaapCostResult::QueryInstanceGaapCostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryInstanceGaapCostResult::~QueryInstanceGaapCostResult() +{} + +void QueryInstanceGaapCostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["HostId"].isNull()) data_.hostId = dataNode["HostId"].asString(); @@ -165,9 +168,9 @@ void QueryInstanceGaapCostResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryInstanceGaapCostResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc b/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc index 6e772d0b2..3298d4a92 100644 --- a/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc +++ b/bssopenapi/src/model/QueryInvoicingCustomerListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryInvoicingCustomerListRequest; - -QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInvoicingCustomerList") -{} - -QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryInvoicingCustomerListRequest; + +QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInvoicingCustomerList") +{} + +QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest() +{} + long QueryInvoicingCustomerListRequest::getOwnerId()const { return ownerId_; diff --git a/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc b/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc index 40a236820..79c0ffa94 100644 --- a/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc +++ b/bssopenapi/src/model/QueryInvoicingCustomerListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult() : - ServiceResult() -{} - -QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryInvoicingCustomerListResult::~QueryInvoicingCustomerListResult() -{} - -void QueryInvoicingCustomerListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult() : + ServiceResult() +{} + +QueryInvoicingCustomerListResult::QueryInvoicingCustomerListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryInvoicingCustomerListResult::~QueryInvoicingCustomerListResult() +{} + +void QueryInvoicingCustomerListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allCustomerInvoiceList = value["CustomerInvoiceList"]["CustomerInvoice"]; for (auto value : allCustomerInvoiceList) @@ -95,9 +98,9 @@ void QueryInvoicingCustomerListResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryInvoicingCustomerListResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryMonthlyBillRequest.cc b/bssopenapi/src/model/QueryMonthlyBillRequest.cc index e4e184b41..61e87e07a 100644 --- a/bssopenapi/src/model/QueryMonthlyBillRequest.cc +++ b/bssopenapi/src/model/QueryMonthlyBillRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryMonthlyBillRequest; - -QueryMonthlyBillRequest::QueryMonthlyBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyBill") -{} - -QueryMonthlyBillRequest::~QueryMonthlyBillRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryMonthlyBillRequest; + +QueryMonthlyBillRequest::QueryMonthlyBillRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyBill") +{} + +QueryMonthlyBillRequest::~QueryMonthlyBillRequest() +{} + std::string QueryMonthlyBillRequest::getBillingCycle()const { return billingCycle_; diff --git a/bssopenapi/src/model/QueryMonthlyBillResult.cc b/bssopenapi/src/model/QueryMonthlyBillResult.cc index d1fe6f27d..0b3733c93 100644 --- a/bssopenapi/src/model/QueryMonthlyBillResult.cc +++ b/bssopenapi/src/model/QueryMonthlyBillResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryMonthlyBillResult::QueryMonthlyBillResult() : - ServiceResult() -{} - -QueryMonthlyBillResult::QueryMonthlyBillResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryMonthlyBillResult::~QueryMonthlyBillResult() -{} - -void QueryMonthlyBillResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryMonthlyBillResult::QueryMonthlyBillResult() : + ServiceResult() +{} + +QueryMonthlyBillResult::QueryMonthlyBillResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMonthlyBillResult::~QueryMonthlyBillResult() +{} + +void QueryMonthlyBillResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["OutstandingAmount"].isNull()) data_.outstandingAmount = std::stof(dataNode["OutstandingAmount"].asString()); @@ -99,9 +102,9 @@ void QueryMonthlyBillResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryMonthlyBillResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc index f6fa97aea..0da969d54 100644 --- a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc +++ b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryMonthlyInstanceConsumptionRequest; - -QueryMonthlyInstanceConsumptionRequest::QueryMonthlyInstanceConsumptionRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyInstanceConsumption") -{} - -QueryMonthlyInstanceConsumptionRequest::~QueryMonthlyInstanceConsumptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryMonthlyInstanceConsumptionRequest; + +QueryMonthlyInstanceConsumptionRequest::QueryMonthlyInstanceConsumptionRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryMonthlyInstanceConsumption") +{} + +QueryMonthlyInstanceConsumptionRequest::~QueryMonthlyInstanceConsumptionRequest() +{} + std::string QueryMonthlyInstanceConsumptionRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc index 2cc51d836..6491edab8 100644 --- a/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc +++ b/bssopenapi/src/model/QueryMonthlyInstanceConsumptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult() : - ServiceResult() -{} - -QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryMonthlyInstanceConsumptionResult::~QueryMonthlyInstanceConsumptionResult() -{} - -void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult() : + ServiceResult() +{} + +QueryMonthlyInstanceConsumptionResult::QueryMonthlyInstanceConsumptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMonthlyInstanceConsumptionResult::~QueryMonthlyInstanceConsumptionResult() +{} + +void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); @@ -95,9 +98,9 @@ void QueryMonthlyInstanceConsumptionResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryMonthlyInstanceConsumptionResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryOrdersRequest.cc b/bssopenapi/src/model/QueryOrdersRequest.cc index 071f878f8..22af2deb5 100644 --- a/bssopenapi/src/model/QueryOrdersRequest.cc +++ b/bssopenapi/src/model/QueryOrdersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryOrdersRequest; - -QueryOrdersRequest::QueryOrdersRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryOrders") -{} - -QueryOrdersRequest::~QueryOrdersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryOrdersRequest; + +QueryOrdersRequest::QueryOrdersRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryOrders") +{} + +QueryOrdersRequest::~QueryOrdersRequest() +{} + std::string QueryOrdersRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/QueryOrdersResult.cc b/bssopenapi/src/model/QueryOrdersResult.cc index d079317c5..73515a214 100644 --- a/bssopenapi/src/model/QueryOrdersResult.cc +++ b/bssopenapi/src/model/QueryOrdersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryOrdersResult::QueryOrdersResult() : - ServiceResult() -{} - -QueryOrdersResult::QueryOrdersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryOrdersResult::~QueryOrdersResult() -{} - -void QueryOrdersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryOrdersResult::QueryOrdersResult() : + ServiceResult() +{} + +QueryOrdersResult::QueryOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryOrdersResult::~QueryOrdersResult() +{} + +void QueryOrdersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["HostName"].isNull()) data_.hostName = dataNode["HostName"].asString(); @@ -93,9 +96,9 @@ void QueryOrdersResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryOrdersResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryPrepaidCardsRequest.cc b/bssopenapi/src/model/QueryPrepaidCardsRequest.cc index 1dae0fad8..39d7db519 100644 --- a/bssopenapi/src/model/QueryPrepaidCardsRequest.cc +++ b/bssopenapi/src/model/QueryPrepaidCardsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryPrepaidCardsRequest; - -QueryPrepaidCardsRequest::QueryPrepaidCardsRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrepaidCards") -{} - -QueryPrepaidCardsRequest::~QueryPrepaidCardsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryPrepaidCardsRequest; + +QueryPrepaidCardsRequest::QueryPrepaidCardsRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrepaidCards") +{} + +QueryPrepaidCardsRequest::~QueryPrepaidCardsRequest() +{} + std::string QueryPrepaidCardsRequest::getExpiryTimeEnd()const { return expiryTimeEnd_; diff --git a/bssopenapi/src/model/QueryPrepaidCardsResult.cc b/bssopenapi/src/model/QueryPrepaidCardsResult.cc index cf00ad42d..266c6309e 100644 --- a/bssopenapi/src/model/QueryPrepaidCardsResult.cc +++ b/bssopenapi/src/model/QueryPrepaidCardsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryPrepaidCardsResult::QueryPrepaidCardsResult() : - ServiceResult() -{} - -QueryPrepaidCardsResult::QueryPrepaidCardsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryPrepaidCardsResult::~QueryPrepaidCardsResult() -{} - -void QueryPrepaidCardsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryPrepaidCardsResult::QueryPrepaidCardsResult() : + ServiceResult() +{} + +QueryPrepaidCardsResult::QueryPrepaidCardsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryPrepaidCardsResult::~QueryPrepaidCardsResult() +{} + +void QueryPrepaidCardsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["PrepaidCard"]; for (auto value : allData) { @@ -72,9 +75,9 @@ void QueryPrepaidCardsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryPrepaidCardsResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryProductListRequest.cc b/bssopenapi/src/model/QueryProductListRequest.cc index f429fbe92..b0b49a18e 100644 --- a/bssopenapi/src/model/QueryProductListRequest.cc +++ b/bssopenapi/src/model/QueryProductListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryProductListRequest; - -QueryProductListRequest::QueryProductListRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryProductList") -{} - -QueryProductListRequest::~QueryProductListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryProductListRequest; + +QueryProductListRequest::QueryProductListRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryProductList") +{} + +QueryProductListRequest::~QueryProductListRequest() +{} + bool QueryProductListRequest::getQueryTotalCount()const { return queryTotalCount_; diff --git a/bssopenapi/src/model/QueryProductListResult.cc b/bssopenapi/src/model/QueryProductListResult.cc index fe15ccd6b..99d25b759 100644 --- a/bssopenapi/src/model/QueryProductListResult.cc +++ b/bssopenapi/src/model/QueryProductListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryProductListResult::QueryProductListResult() : - ServiceResult() -{} - -QueryProductListResult::QueryProductListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryProductListResult::~QueryProductListResult() -{} - -void QueryProductListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryProductListResult::QueryProductListResult() : + ServiceResult() +{} + +QueryProductListResult::QueryProductListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryProductListResult::~QueryProductListResult() +{} + +void QueryProductListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); @@ -67,9 +70,9 @@ void QueryProductListResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryProductListResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryRedeemRequest.cc b/bssopenapi/src/model/QueryRedeemRequest.cc index 5e3ce5529..8c2789a96 100644 --- a/bssopenapi/src/model/QueryRedeemRequest.cc +++ b/bssopenapi/src/model/QueryRedeemRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryRedeemRequest; - -QueryRedeemRequest::QueryRedeemRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRedeem") -{} - -QueryRedeemRequest::~QueryRedeemRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryRedeemRequest; + +QueryRedeemRequest::QueryRedeemRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRedeem") +{} + +QueryRedeemRequest::~QueryRedeemRequest() +{} + std::string QueryRedeemRequest::getExpiryTimeEnd()const { return expiryTimeEnd_; diff --git a/bssopenapi/src/model/QueryRedeemResult.cc b/bssopenapi/src/model/QueryRedeemResult.cc index 65be31b29..f64c6d2b2 100644 --- a/bssopenapi/src/model/QueryRedeemResult.cc +++ b/bssopenapi/src/model/QueryRedeemResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryRedeemResult::QueryRedeemResult() : - ServiceResult() -{} - -QueryRedeemResult::QueryRedeemResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryRedeemResult::~QueryRedeemResult() -{} - -void QueryRedeemResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryRedeemResult::QueryRedeemResult() : + ServiceResult() +{} + +QueryRedeemResult::QueryRedeemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRedeemResult::~QueryRedeemResult() +{} + +void QueryRedeemResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stol(dataNode["PageNum"].asString()); @@ -79,9 +82,9 @@ void QueryRedeemResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryRedeemResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc b/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc index cfd86c5f4..01fbef3af 100644 --- a/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc +++ b/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryResellerAvailableQuotaRequest; - -QueryResellerAvailableQuotaRequest::QueryResellerAvailableQuotaRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResellerAvailableQuota") -{} - -QueryResellerAvailableQuotaRequest::~QueryResellerAvailableQuotaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryResellerAvailableQuotaRequest; + +QueryResellerAvailableQuotaRequest::QueryResellerAvailableQuotaRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResellerAvailableQuota") +{} + +QueryResellerAvailableQuotaRequest::~QueryResellerAvailableQuotaRequest() +{} + std::string QueryResellerAvailableQuotaRequest::getItemCodes()const { return itemCodes_; diff --git a/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc b/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc index eb824c392..261e5ff7c 100644 --- a/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc +++ b/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult() : - ServiceResult() -{} - -QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryResellerAvailableQuotaResult::~QueryResellerAvailableQuotaResult() -{} - -void QueryResellerAvailableQuotaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult() : + ServiceResult() +{} + +QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryResellerAvailableQuotaResult::~QueryResellerAvailableQuotaResult() +{} + +void QueryResellerAvailableQuotaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) @@ -48,9 +51,9 @@ void QueryResellerAvailableQuotaResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = value["Data"].asString(); - -} - + +} + std::string QueryResellerAvailableQuotaResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc b/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc index 82c3895cf..95549da4e 100644 --- a/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc +++ b/bssopenapi/src/model/QueryResourcePackageInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryResourcePackageInstancesRequest; - -QueryResourcePackageInstancesRequest::QueryResourcePackageInstancesRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResourcePackageInstances") -{} - -QueryResourcePackageInstancesRequest::~QueryResourcePackageInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryResourcePackageInstancesRequest; + +QueryResourcePackageInstancesRequest::QueryResourcePackageInstancesRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResourcePackageInstances") +{} + +QueryResourcePackageInstancesRequest::~QueryResourcePackageInstancesRequest() +{} + std::string QueryResourcePackageInstancesRequest::getExpiryTimeEnd()const { return expiryTimeEnd_; diff --git a/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc b/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc index 914def3c8..d88283961 100644 --- a/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc +++ b/bssopenapi/src/model/QueryResourcePackageInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult() : - ServiceResult() -{} - -QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryResourcePackageInstancesResult::~QueryResourcePackageInstancesResult() -{} - -void QueryResourcePackageInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult() : + ServiceResult() +{} + +QueryResourcePackageInstancesResult::QueryResourcePackageInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryResourcePackageInstancesResult::~QueryResourcePackageInstancesResult() +{} + +void QueryResourcePackageInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["HostId"].isNull()) data_.hostId = dataNode["HostId"].asString(); @@ -94,9 +97,9 @@ void QueryResourcePackageInstancesResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); - -} - + +} + std::string QueryResourcePackageInstancesResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QuerySettlementBillRequest.cc b/bssopenapi/src/model/QuerySettlementBillRequest.cc index f90ad7f24..47f1bdd0e 100644 --- a/bssopenapi/src/model/QuerySettlementBillRequest.cc +++ b/bssopenapi/src/model/QuerySettlementBillRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QuerySettlementBillRequest; - -QuerySettlementBillRequest::QuerySettlementBillRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettlementBill") -{} - -QuerySettlementBillRequest::~QuerySettlementBillRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QuerySettlementBillRequest; + +QuerySettlementBillRequest::QuerySettlementBillRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettlementBill") +{} + +QuerySettlementBillRequest::~QuerySettlementBillRequest() +{} + std::string QuerySettlementBillRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/QuerySettlementBillResult.cc b/bssopenapi/src/model/QuerySettlementBillResult.cc index 0b437b5fa..442051775 100644 --- a/bssopenapi/src/model/QuerySettlementBillResult.cc +++ b/bssopenapi/src/model/QuerySettlementBillResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QuerySettlementBillResult::QuerySettlementBillResult() : - ServiceResult() -{} - -QuerySettlementBillResult::QuerySettlementBillResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QuerySettlementBillResult::~QuerySettlementBillResult() -{} - -void QuerySettlementBillResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QuerySettlementBillResult::QuerySettlementBillResult() : + ServiceResult() +{} + +QuerySettlementBillResult::QuerySettlementBillResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySettlementBillResult::~QuerySettlementBillResult() +{} + +void QuerySettlementBillResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["PageNum"].isNull()) data_.pageNum = std::stoi(dataNode["PageNum"].asString()); @@ -147,9 +150,9 @@ void QuerySettlementBillResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QuerySettlementBillResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/QueryUserOmsDataRequest.cc b/bssopenapi/src/model/QueryUserOmsDataRequest.cc index e3950ad24..58078724a 100644 --- a/bssopenapi/src/model/QueryUserOmsDataRequest.cc +++ b/bssopenapi/src/model/QueryUserOmsDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryUserOmsDataRequest; - -QueryUserOmsDataRequest::QueryUserOmsDataRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserOmsData") -{} - -QueryUserOmsDataRequest::~QueryUserOmsDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::QueryUserOmsDataRequest; + +QueryUserOmsDataRequest::QueryUserOmsDataRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserOmsData") +{} + +QueryUserOmsDataRequest::~QueryUserOmsDataRequest() +{} + std::string QueryUserOmsDataRequest::getDataType()const { return dataType_; diff --git a/bssopenapi/src/model/QueryUserOmsDataResult.cc b/bssopenapi/src/model/QueryUserOmsDataResult.cc index 469d77b03..86ed2b51f 100644 --- a/bssopenapi/src/model/QueryUserOmsDataResult.cc +++ b/bssopenapi/src/model/QueryUserOmsDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -QueryUserOmsDataResult::QueryUserOmsDataResult() : - ServiceResult() -{} - -QueryUserOmsDataResult::QueryUserOmsDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryUserOmsDataResult::~QueryUserOmsDataResult() -{} - -void QueryUserOmsDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryUserOmsDataResult::QueryUserOmsDataResult() : + ServiceResult() +{} + +QueryUserOmsDataResult::QueryUserOmsDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryUserOmsDataResult::~QueryUserOmsDataResult() +{} + +void QueryUserOmsDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Marker"].isNull()) data_.marker = dataNode["Marker"].asString(); @@ -54,9 +57,9 @@ void QueryUserOmsDataResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string QueryUserOmsDataResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/RenewInstanceRequest.cc b/bssopenapi/src/model/RenewInstanceRequest.cc index 7ca3ad72a..9b150b07d 100644 --- a/bssopenapi/src/model/RenewInstanceRequest.cc +++ b/bssopenapi/src/model/RenewInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::RenewInstanceRequest; - -RenewInstanceRequest::RenewInstanceRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "RenewInstance") -{} - -RenewInstanceRequest::~RenewInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "RenewInstance") +{} + +RenewInstanceRequest::~RenewInstanceRequest() +{} + std::string RenewInstanceRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/RenewInstanceResult.cc b/bssopenapi/src/model/RenewInstanceResult.cc index 14af04ae4..fb0106329 100644 --- a/bssopenapi/src/model/RenewInstanceResult.cc +++ b/bssopenapi/src/model/RenewInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -RenewInstanceResult::RenewInstanceResult() : - ServiceResult() -{} - -RenewInstanceResult::RenewInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RenewInstanceResult::~RenewInstanceResult() -{} - -void RenewInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +RenewInstanceResult::RenewInstanceResult() : + ServiceResult() +{} + +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewInstanceResult::~RenewInstanceResult() +{} + +void RenewInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["OrderId"].isNull()) data_.orderId = dataNode["OrderId"].asString(); @@ -49,9 +52,9 @@ void RenewInstanceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string RenewInstanceResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/SetRenewalRequest.cc b/bssopenapi/src/model/SetRenewalRequest.cc index 12e44aee0..6692c5ade 100644 --- a/bssopenapi/src/model/SetRenewalRequest.cc +++ b/bssopenapi/src/model/SetRenewalRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetRenewalRequest; - -SetRenewalRequest::SetRenewalRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetRenewal") -{} - -SetRenewalRequest::~SetRenewalRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetRenewalRequest; + +SetRenewalRequest::SetRenewalRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SetRenewal") +{} + +SetRenewalRequest::~SetRenewalRequest() +{} + std::string SetRenewalRequest::getProductCode()const { return productCode_; diff --git a/bssopenapi/src/model/SetRenewalResult.cc b/bssopenapi/src/model/SetRenewalResult.cc index 9d5984c81..cfdd54668 100644 --- a/bssopenapi/src/model/SetRenewalResult.cc +++ b/bssopenapi/src/model/SetRenewalResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -SetRenewalResult::SetRenewalResult() : - ServiceResult() -{} - -SetRenewalResult::SetRenewalResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetRenewalResult::~SetRenewalResult() -{} - -void SetRenewalResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SetRenewalResult::SetRenewalResult() : + ServiceResult() +{} + +SetRenewalResult::SetRenewalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetRenewalResult::~SetRenewalResult() +{} + +void SetRenewalResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string SetRenewalResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc b/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc index 002e057ec..66c1a260c 100644 --- a/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc +++ b/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetResellerUserAlarmThresholdRequest; - -SetResellerUserAlarmThresholdRequest::SetResellerUserAlarmThresholdRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserAlarmThreshold") -{} - -SetResellerUserAlarmThresholdRequest::~SetResellerUserAlarmThresholdRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetResellerUserAlarmThresholdRequest; + +SetResellerUserAlarmThresholdRequest::SetResellerUserAlarmThresholdRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserAlarmThreshold") +{} + +SetResellerUserAlarmThresholdRequest::~SetResellerUserAlarmThresholdRequest() +{} + std::string SetResellerUserAlarmThresholdRequest::getAlarmType()const { return alarmType_; diff --git a/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc b/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc index 818b228a2..4e5ac7a16 100644 --- a/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc +++ b/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult() : - ServiceResult() -{} - -SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetResellerUserAlarmThresholdResult::~SetResellerUserAlarmThresholdResult() -{} - -void SetResellerUserAlarmThresholdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult() : + ServiceResult() +{} + +SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetResellerUserAlarmThresholdResult::~SetResellerUserAlarmThresholdResult() +{} + +void SetResellerUserAlarmThresholdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) @@ -48,9 +51,9 @@ void SetResellerUserAlarmThresholdResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - -} - + +} + std::string SetResellerUserAlarmThresholdResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/SetResellerUserQuotaRequest.cc b/bssopenapi/src/model/SetResellerUserQuotaRequest.cc index ec35bd28a..2e8c47873 100644 --- a/bssopenapi/src/model/SetResellerUserQuotaRequest.cc +++ b/bssopenapi/src/model/SetResellerUserQuotaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetResellerUserQuotaRequest; - -SetResellerUserQuotaRequest::SetResellerUserQuotaRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserQuota") -{} - -SetResellerUserQuotaRequest::~SetResellerUserQuotaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetResellerUserQuotaRequest; + +SetResellerUserQuotaRequest::SetResellerUserQuotaRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserQuota") +{} + +SetResellerUserQuotaRequest::~SetResellerUserQuotaRequest() +{} + std::string SetResellerUserQuotaRequest::getAmount()const { return amount_; diff --git a/bssopenapi/src/model/SetResellerUserQuotaResult.cc b/bssopenapi/src/model/SetResellerUserQuotaResult.cc index 656616eba..de0764c1b 100644 --- a/bssopenapi/src/model/SetResellerUserQuotaResult.cc +++ b/bssopenapi/src/model/SetResellerUserQuotaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -SetResellerUserQuotaResult::SetResellerUserQuotaResult() : - ServiceResult() -{} - -SetResellerUserQuotaResult::SetResellerUserQuotaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetResellerUserQuotaResult::~SetResellerUserQuotaResult() -{} - -void SetResellerUserQuotaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SetResellerUserQuotaResult::SetResellerUserQuotaResult() : + ServiceResult() +{} + +SetResellerUserQuotaResult::SetResellerUserQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetResellerUserQuotaResult::~SetResellerUserQuotaResult() +{} + +void SetResellerUserQuotaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) @@ -48,9 +51,9 @@ void SetResellerUserQuotaResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - -} - + +} + std::string SetResellerUserQuotaResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/SetResellerUserStatusRequest.cc b/bssopenapi/src/model/SetResellerUserStatusRequest.cc index dfc6b84be..c8dde7caa 100644 --- a/bssopenapi/src/model/SetResellerUserStatusRequest.cc +++ b/bssopenapi/src/model/SetResellerUserStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetResellerUserStatusRequest; - -SetResellerUserStatusRequest::SetResellerUserStatusRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserStatus") -{} - -SetResellerUserStatusRequest::~SetResellerUserStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::SetResellerUserStatusRequest; + +SetResellerUserStatusRequest::SetResellerUserStatusRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserStatus") +{} + +SetResellerUserStatusRequest::~SetResellerUserStatusRequest() +{} + std::string SetResellerUserStatusRequest::getOwnerId()const { return ownerId_; diff --git a/bssopenapi/src/model/SetResellerUserStatusResult.cc b/bssopenapi/src/model/SetResellerUserStatusResult.cc index 9124b0add..00ef0c461 100644 --- a/bssopenapi/src/model/SetResellerUserStatusResult.cc +++ b/bssopenapi/src/model/SetResellerUserStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -SetResellerUserStatusResult::SetResellerUserStatusResult() : - ServiceResult() -{} - -SetResellerUserStatusResult::SetResellerUserStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetResellerUserStatusResult::~SetResellerUserStatusResult() -{} - -void SetResellerUserStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SetResellerUserStatusResult::SetResellerUserStatusResult() : + ServiceResult() +{} + +SetResellerUserStatusResult::SetResellerUserStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetResellerUserStatusResult::~SetResellerUserStatusResult() +{} + +void SetResellerUserStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) @@ -48,9 +51,9 @@ void SetResellerUserStatusResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - -} - + +} + std::string SetResellerUserStatusResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/SubscribeBillToOSSRequest.cc b/bssopenapi/src/model/SubscribeBillToOSSRequest.cc index 6ba2a0c84..e8115d0c4 100644 --- a/bssopenapi/src/model/SubscribeBillToOSSRequest.cc +++ b/bssopenapi/src/model/SubscribeBillToOSSRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::SubscribeBillToOSSRequest; - -SubscribeBillToOSSRequest::SubscribeBillToOSSRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeBillToOSS") -{} - -SubscribeBillToOSSRequest::~SubscribeBillToOSSRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::SubscribeBillToOSSRequest; + +SubscribeBillToOSSRequest::SubscribeBillToOSSRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeBillToOSS") +{} + +SubscribeBillToOSSRequest::~SubscribeBillToOSSRequest() +{} + long SubscribeBillToOSSRequest::getBucketOwnerId()const { return bucketOwnerId_; diff --git a/bssopenapi/src/model/SubscribeBillToOSSResult.cc b/bssopenapi/src/model/SubscribeBillToOSSResult.cc index a0ac0cc74..c3e435356 100644 --- a/bssopenapi/src/model/SubscribeBillToOSSResult.cc +++ b/bssopenapi/src/model/SubscribeBillToOSSResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -SubscribeBillToOSSResult::SubscribeBillToOSSResult() : - ServiceResult() -{} - -SubscribeBillToOSSResult::SubscribeBillToOSSResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SubscribeBillToOSSResult::~SubscribeBillToOSSResult() -{} - -void SubscribeBillToOSSResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SubscribeBillToOSSResult::SubscribeBillToOSSResult() : + ServiceResult() +{} + +SubscribeBillToOSSResult::SubscribeBillToOSSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubscribeBillToOSSResult::~SubscribeBillToOSSResult() +{} + +void SubscribeBillToOSSResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string SubscribeBillToOSSResult::getMessage()const { return message_; diff --git a/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc b/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc index 60d51811c..b9bb908b1 100644 --- a/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc +++ b/bssopenapi/src/model/UnsubscribeBillToOSSRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::BssOpenApi::Model::UnsubscribeBillToOSSRequest; - -UnsubscribeBillToOSSRequest::UnsubscribeBillToOSSRequest() : - RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeBillToOSS") -{} - -UnsubscribeBillToOSSRequest::~UnsubscribeBillToOSSRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi::Model::UnsubscribeBillToOSSRequest; + +UnsubscribeBillToOSSRequest::UnsubscribeBillToOSSRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeBillToOSS") +{} + +UnsubscribeBillToOSSRequest::~UnsubscribeBillToOSSRequest() +{} + std::string UnsubscribeBillToOSSRequest::getSubscribeType()const { return subscribeType_; diff --git a/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc b/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc index 4bee3d2dd..8d7c8ecb8 100644 --- a/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc +++ b/bssopenapi/src/model/UnsubscribeBillToOSSResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::BssOpenApi; -using namespace AlibabaCloud::BssOpenApi::Model; - -UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult() : - ServiceResult() -{} - -UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnsubscribeBillToOSSResult::~UnsubscribeBillToOSSResult() -{} - -void UnsubscribeBillToOSSResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult() : + ServiceResult() +{} + +UnsubscribeBillToOSSResult::UnsubscribeBillToOSSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnsubscribeBillToOSSResult::~UnsubscribeBillToOSSResult() +{} + +void UnsubscribeBillToOSSResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string UnsubscribeBillToOSSResult::getMessage()const { return message_; diff --git a/cas/CMakeLists.txt b/cas/CMakeLists.txt index 0945ab6d7..10fffa296 100644 --- a/cas/CMakeLists.txt +++ b/cas/CMakeLists.txt @@ -21,72 +21,56 @@ set(cas_public_header include/alibabacloud/cas/CasExport.h ) set(cas_public_header_model - include/alibabacloud/cas/model/CreateSignatureRequest.h - include/alibabacloud/cas/model/CreateSignatureResult.h include/alibabacloud/cas/model/DescribeCertificateStatusCountRequest.h include/alibabacloud/cas/model/DescribeCertificateStatusCountResult.h + include/alibabacloud/cas/model/DescribeSignatureProductStateRequest.h + include/alibabacloud/cas/model/DescribeSignatureProductStateResult.h + include/alibabacloud/cas/model/DescribeOrderRefundRecordRequest.h + include/alibabacloud/cas/model/DescribeOrderRefundRecordResult.h + include/alibabacloud/cas/model/DescribeOrderMaterialRequest.h + include/alibabacloud/cas/model/DescribeOrderMaterialResult.h include/alibabacloud/cas/model/CreateOrderDocumentRequest.h include/alibabacloud/cas/model/CreateOrderDocumentResult.h include/alibabacloud/cas/model/DescribeExpectationResultRequest.h include/alibabacloud/cas/model/DescribeExpectationResultResult.h - include/alibabacloud/cas/model/DescribeOrderMaterialRequest.h - include/alibabacloud/cas/model/DescribeOrderMaterialResult.h + include/alibabacloud/cas/model/ListTagResourcesRequest.h + include/alibabacloud/cas/model/ListTagResourcesResult.h + include/alibabacloud/cas/model/UntagResourcesRequest.h + include/alibabacloud/cas/model/UntagResourcesResult.h include/alibabacloud/cas/model/CreateSignaturePeopleCertificateRequest.h include/alibabacloud/cas/model/CreateSignaturePeopleCertificateResult.h include/alibabacloud/cas/model/DescribeCertificateListRequest.h include/alibabacloud/cas/model/DescribeCertificateListResult.h - include/alibabacloud/cas/model/DescribeCertificateBrandListRequest.h - include/alibabacloud/cas/model/DescribeCertificateBrandListResult.h include/alibabacloud/cas/model/DescribeDomainVerifyConfigurationStatusRequest.h include/alibabacloud/cas/model/DescribeDomainVerifyConfigurationStatusResult.h + include/alibabacloud/cas/model/DescribeRenewOrderRequest.h + include/alibabacloud/cas/model/DescribeRenewOrderResult.h include/alibabacloud/cas/model/CreateOrderCancelRequest.h include/alibabacloud/cas/model/CreateOrderCancelResult.h - include/alibabacloud/cas/model/CreateAliDnsRecordIdRequest.h - include/alibabacloud/cas/model/CreateAliDnsRecordIdResult.h include/alibabacloud/cas/model/CreateCertificateRequest.h include/alibabacloud/cas/model/CreateCertificateResult.h - include/alibabacloud/cas/model/CreateWebSignatureRequest.h - include/alibabacloud/cas/model/CreateWebSignatureResult.h - include/alibabacloud/cas/model/CreateUnDeploymentRequest.h - include/alibabacloud/cas/model/CreateUnDeploymentResult.h include/alibabacloud/cas/model/DescribeDownloadCertificateRequest.h include/alibabacloud/cas/model/DescribeDownloadCertificateResult.h - include/alibabacloud/cas/model/DescribeCertificateDetailRequest.h - include/alibabacloud/cas/model/DescribeCertificateDetailResult.h - include/alibabacloud/cas/model/CreateOrderMaterialRequest.h - include/alibabacloud/cas/model/CreateOrderMaterialResult.h + include/alibabacloud/cas/model/CreateUnDeploymentRequest.h + include/alibabacloud/cas/model/CreateUnDeploymentResult.h include/alibabacloud/cas/model/DescribeSignatureStatisticsRequest.h include/alibabacloud/cas/model/DescribeSignatureStatisticsResult.h - include/alibabacloud/cas/model/DescribeSignatureTradeListRequest.h - include/alibabacloud/cas/model/DescribeSignatureTradeListResult.h - include/alibabacloud/cas/model/CreateFilingSignatureDocumentRequest.h - include/alibabacloud/cas/model/CreateFilingSignatureDocumentResult.h + include/alibabacloud/cas/model/CreateOrderMaterialRequest.h + include/alibabacloud/cas/model/CreateOrderMaterialResult.h include/alibabacloud/cas/model/DescribeDownloadDomainVerifyConfigurationRequest.h include/alibabacloud/cas/model/DescribeDownloadDomainVerifyConfigurationResult.h - include/alibabacloud/cas/model/DescribeOSSDownloadInfoRequest.h - include/alibabacloud/cas/model/DescribeOSSDownloadInfoResult.h - include/alibabacloud/cas/model/CreateCooperationOrderRequest.h - include/alibabacloud/cas/model/CreateCooperationOrderResult.h include/alibabacloud/cas/model/DescribeDeploymentRegionListRequest.h include/alibabacloud/cas/model/DescribeDeploymentRegionListResult.h - include/alibabacloud/cas/model/CreateOrderAuditRequest.h - include/alibabacloud/cas/model/CreateOrderAuditResult.h - include/alibabacloud/cas/model/DeleteOrderRequest.h - include/alibabacloud/cas/model/DeleteOrderResult.h - include/alibabacloud/cas/model/DescribeHelpListRequest.h - include/alibabacloud/cas/model/DescribeHelpListResult.h include/alibabacloud/cas/model/DescribeStsAuthStatusRequest.h include/alibabacloud/cas/model/DescribeStsAuthStatusResult.h - include/alibabacloud/cas/model/DescribeDeploymentDetailRequest.h - include/alibabacloud/cas/model/DescribeDeploymentDetailResult.h - include/alibabacloud/cas/model/DescribeDomainVerifyInfoRequest.h - include/alibabacloud/cas/model/DescribeDomainVerifyInfoResult.h - include/alibabacloud/cas/model/CreateDeploymentRequest.h - include/alibabacloud/cas/model/CreateDeploymentResult.h include/alibabacloud/cas/model/DescribeOrderDocumentRequest.h include/alibabacloud/cas/model/DescribeOrderDocumentResult.h + include/alibabacloud/cas/model/CreateDeploymentRequest.h + include/alibabacloud/cas/model/CreateDeploymentResult.h include/alibabacloud/cas/model/CreateDomainVerifyConfigurationStatusRequest.h include/alibabacloud/cas/model/CreateDomainVerifyConfigurationStatusResult.h + include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexRequest.h + include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexResult.h include/alibabacloud/cas/model/CreateSignatureDocumentRequest.h include/alibabacloud/cas/model/CreateSignatureDocumentResult.h include/alibabacloud/cas/model/DescribeOrderAuditFailRecordRequest.h @@ -97,91 +81,109 @@ set(cas_public_header_model include/alibabacloud/cas/model/CreateOrderRevokeResult.h include/alibabacloud/cas/model/DeleteCertificateRequest.h include/alibabacloud/cas/model/DeleteCertificateResult.h + include/alibabacloud/cas/model/DescribeLocationListRequest.h + include/alibabacloud/cas/model/DescribeLocationListResult.h + include/alibabacloud/cas/model/DescribeSignatureCapacityRequest.h + include/alibabacloud/cas/model/DescribeSignatureCapacityResult.h + include/alibabacloud/cas/model/DescribeSignatureTradeDetailRequest.h + include/alibabacloud/cas/model/DescribeSignatureTradeDetailResult.h + include/alibabacloud/cas/model/ListTagKeysRequest.h + include/alibabacloud/cas/model/ListTagKeysResult.h + include/alibabacloud/cas/model/CreateSignatureRequest.h + include/alibabacloud/cas/model/CreateSignatureResult.h + include/alibabacloud/cas/model/DescribeCertificateBrandListRequest.h + include/alibabacloud/cas/model/DescribeCertificateBrandListResult.h + include/alibabacloud/cas/model/CreateAliDnsRecordIdRequest.h + include/alibabacloud/cas/model/CreateAliDnsRecordIdResult.h + include/alibabacloud/cas/model/CreateWebSignatureRequest.h + include/alibabacloud/cas/model/CreateWebSignatureResult.h + include/alibabacloud/cas/model/DescribeCertificateDetailRequest.h + include/alibabacloud/cas/model/DescribeCertificateDetailResult.h + include/alibabacloud/cas/model/DescribeSignatureTradeListRequest.h + include/alibabacloud/cas/model/DescribeSignatureTradeListResult.h + include/alibabacloud/cas/model/CreateFilingSignatureDocumentRequest.h + include/alibabacloud/cas/model/CreateFilingSignatureDocumentResult.h + include/alibabacloud/cas/model/DescribeOSSDownloadInfoRequest.h + include/alibabacloud/cas/model/DescribeOSSDownloadInfoResult.h + include/alibabacloud/cas/model/CreateCooperationOrderRequest.h + include/alibabacloud/cas/model/CreateCooperationOrderResult.h + include/alibabacloud/cas/model/DeleteOrderRequest.h + include/alibabacloud/cas/model/DeleteOrderResult.h + include/alibabacloud/cas/model/CreateOrderAuditRequest.h + include/alibabacloud/cas/model/CreateOrderAuditResult.h + include/alibabacloud/cas/model/DescribeHelpListRequest.h + include/alibabacloud/cas/model/DescribeHelpListResult.h + include/alibabacloud/cas/model/DescribeDeploymentDetailRequest.h + include/alibabacloud/cas/model/DescribeDeploymentDetailResult.h + include/alibabacloud/cas/model/DescribeDomainVerifyInfoRequest.h + include/alibabacloud/cas/model/DescribeDomainVerifyInfoResult.h + include/alibabacloud/cas/model/TagResourcesRequest.h + include/alibabacloud/cas/model/TagResourcesResult.h include/alibabacloud/cas/model/DescribeOrderDetailRequest.h include/alibabacloud/cas/model/DescribeOrderDetailResult.h include/alibabacloud/cas/model/DescribeOSSUploadInfoRequest.h include/alibabacloud/cas/model/DescribeOSSUploadInfoResult.h - include/alibabacloud/cas/model/DescribeLocationListRequest.h - include/alibabacloud/cas/model/DescribeLocationListResult.h + include/alibabacloud/cas/model/CreateOrderRefundRecordRequest.h + include/alibabacloud/cas/model/CreateOrderRefundRecordResult.h include/alibabacloud/cas/model/DescribeDeploymentProductRequest.h include/alibabacloud/cas/model/DescribeDeploymentProductResult.h - include/alibabacloud/cas/model/DescribeSignatureCapacityRequest.h - include/alibabacloud/cas/model/DescribeSignatureCapacityResult.h include/alibabacloud/cas/model/DescribeDeploymentDomainListRequest.h include/alibabacloud/cas/model/DescribeDeploymentDomainListResult.h - include/alibabacloud/cas/model/DescribeSignatureTradeDetailRequest.h - include/alibabacloud/cas/model/DescribeSignatureTradeDetailResult.h include/alibabacloud/cas/model/CreateCertificateNameRequest.h include/alibabacloud/cas/model/CreateCertificateNameResult.h ) set(cas_src src/CasClient.cc - src/model/CreateSignatureRequest.cc - src/model/CreateSignatureResult.cc src/model/DescribeCertificateStatusCountRequest.cc src/model/DescribeCertificateStatusCountResult.cc + src/model/DescribeSignatureProductStateRequest.cc + src/model/DescribeSignatureProductStateResult.cc + src/model/DescribeOrderRefundRecordRequest.cc + src/model/DescribeOrderRefundRecordResult.cc + src/model/DescribeOrderMaterialRequest.cc + src/model/DescribeOrderMaterialResult.cc src/model/CreateOrderDocumentRequest.cc src/model/CreateOrderDocumentResult.cc src/model/DescribeExpectationResultRequest.cc src/model/DescribeExpectationResultResult.cc - src/model/DescribeOrderMaterialRequest.cc - src/model/DescribeOrderMaterialResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc src/model/CreateSignaturePeopleCertificateRequest.cc src/model/CreateSignaturePeopleCertificateResult.cc src/model/DescribeCertificateListRequest.cc src/model/DescribeCertificateListResult.cc - src/model/DescribeCertificateBrandListRequest.cc - src/model/DescribeCertificateBrandListResult.cc src/model/DescribeDomainVerifyConfigurationStatusRequest.cc src/model/DescribeDomainVerifyConfigurationStatusResult.cc + src/model/DescribeRenewOrderRequest.cc + src/model/DescribeRenewOrderResult.cc src/model/CreateOrderCancelRequest.cc src/model/CreateOrderCancelResult.cc - src/model/CreateAliDnsRecordIdRequest.cc - src/model/CreateAliDnsRecordIdResult.cc src/model/CreateCertificateRequest.cc src/model/CreateCertificateResult.cc - src/model/CreateWebSignatureRequest.cc - src/model/CreateWebSignatureResult.cc - src/model/CreateUnDeploymentRequest.cc - src/model/CreateUnDeploymentResult.cc src/model/DescribeDownloadCertificateRequest.cc src/model/DescribeDownloadCertificateResult.cc - src/model/DescribeCertificateDetailRequest.cc - src/model/DescribeCertificateDetailResult.cc - src/model/CreateOrderMaterialRequest.cc - src/model/CreateOrderMaterialResult.cc + src/model/CreateUnDeploymentRequest.cc + src/model/CreateUnDeploymentResult.cc src/model/DescribeSignatureStatisticsRequest.cc src/model/DescribeSignatureStatisticsResult.cc - src/model/DescribeSignatureTradeListRequest.cc - src/model/DescribeSignatureTradeListResult.cc - src/model/CreateFilingSignatureDocumentRequest.cc - src/model/CreateFilingSignatureDocumentResult.cc + src/model/CreateOrderMaterialRequest.cc + src/model/CreateOrderMaterialResult.cc src/model/DescribeDownloadDomainVerifyConfigurationRequest.cc src/model/DescribeDownloadDomainVerifyConfigurationResult.cc - src/model/DescribeOSSDownloadInfoRequest.cc - src/model/DescribeOSSDownloadInfoResult.cc - src/model/CreateCooperationOrderRequest.cc - src/model/CreateCooperationOrderResult.cc src/model/DescribeDeploymentRegionListRequest.cc src/model/DescribeDeploymentRegionListResult.cc - src/model/CreateOrderAuditRequest.cc - src/model/CreateOrderAuditResult.cc - src/model/DeleteOrderRequest.cc - src/model/DeleteOrderResult.cc - src/model/DescribeHelpListRequest.cc - src/model/DescribeHelpListResult.cc src/model/DescribeStsAuthStatusRequest.cc src/model/DescribeStsAuthStatusResult.cc - src/model/DescribeDeploymentDetailRequest.cc - src/model/DescribeDeploymentDetailResult.cc - src/model/DescribeDomainVerifyInfoRequest.cc - src/model/DescribeDomainVerifyInfoResult.cc - src/model/CreateDeploymentRequest.cc - src/model/CreateDeploymentResult.cc src/model/DescribeOrderDocumentRequest.cc src/model/DescribeOrderDocumentResult.cc + src/model/CreateDeploymentRequest.cc + src/model/CreateDeploymentResult.cc src/model/CreateDomainVerifyConfigurationStatusRequest.cc src/model/CreateDomainVerifyConfigurationStatusResult.cc + src/model/DescribeOrderCountForConsoleIndexRequest.cc + src/model/DescribeOrderCountForConsoleIndexResult.cc src/model/CreateSignatureDocumentRequest.cc src/model/CreateSignatureDocumentResult.cc src/model/DescribeOrderAuditFailRecordRequest.cc @@ -192,20 +194,54 @@ set(cas_src src/model/CreateOrderRevokeResult.cc src/model/DeleteCertificateRequest.cc src/model/DeleteCertificateResult.cc + src/model/DescribeLocationListRequest.cc + src/model/DescribeLocationListResult.cc + src/model/DescribeSignatureCapacityRequest.cc + src/model/DescribeSignatureCapacityResult.cc + src/model/DescribeSignatureTradeDetailRequest.cc + src/model/DescribeSignatureTradeDetailResult.cc + src/model/ListTagKeysRequest.cc + src/model/ListTagKeysResult.cc + src/model/CreateSignatureRequest.cc + src/model/CreateSignatureResult.cc + src/model/DescribeCertificateBrandListRequest.cc + src/model/DescribeCertificateBrandListResult.cc + src/model/CreateAliDnsRecordIdRequest.cc + src/model/CreateAliDnsRecordIdResult.cc + src/model/CreateWebSignatureRequest.cc + src/model/CreateWebSignatureResult.cc + src/model/DescribeCertificateDetailRequest.cc + src/model/DescribeCertificateDetailResult.cc + src/model/DescribeSignatureTradeListRequest.cc + src/model/DescribeSignatureTradeListResult.cc + src/model/CreateFilingSignatureDocumentRequest.cc + src/model/CreateFilingSignatureDocumentResult.cc + src/model/DescribeOSSDownloadInfoRequest.cc + src/model/DescribeOSSDownloadInfoResult.cc + src/model/CreateCooperationOrderRequest.cc + src/model/CreateCooperationOrderResult.cc + src/model/DeleteOrderRequest.cc + src/model/DeleteOrderResult.cc + src/model/CreateOrderAuditRequest.cc + src/model/CreateOrderAuditResult.cc + src/model/DescribeHelpListRequest.cc + src/model/DescribeHelpListResult.cc + src/model/DescribeDeploymentDetailRequest.cc + src/model/DescribeDeploymentDetailResult.cc + src/model/DescribeDomainVerifyInfoRequest.cc + src/model/DescribeDomainVerifyInfoResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc src/model/DescribeOrderDetailRequest.cc src/model/DescribeOrderDetailResult.cc src/model/DescribeOSSUploadInfoRequest.cc src/model/DescribeOSSUploadInfoResult.cc - src/model/DescribeLocationListRequest.cc - src/model/DescribeLocationListResult.cc + src/model/CreateOrderRefundRecordRequest.cc + src/model/CreateOrderRefundRecordResult.cc src/model/DescribeDeploymentProductRequest.cc src/model/DescribeDeploymentProductResult.cc - src/model/DescribeSignatureCapacityRequest.cc - src/model/DescribeSignatureCapacityResult.cc src/model/DescribeDeploymentDomainListRequest.cc src/model/DescribeDeploymentDomainListResult.cc - src/model/DescribeSignatureTradeDetailRequest.cc - src/model/DescribeSignatureTradeDetailResult.cc src/model/CreateCertificateNameRequest.cc src/model/CreateCertificateNameResult.cc ) diff --git a/cas/include/alibabacloud/cas/CasClient.h b/cas/include/alibabacloud/cas/CasClient.h index 9f08cefa9..576f6278f 100644 --- a/cas/include/alibabacloud/cas/CasClient.h +++ b/cas/include/alibabacloud/cas/CasClient.h @@ -22,72 +22,56 @@ #include #include #include "CasExport.h" -#include "model/CreateSignatureRequest.h" -#include "model/CreateSignatureResult.h" #include "model/DescribeCertificateStatusCountRequest.h" #include "model/DescribeCertificateStatusCountResult.h" +#include "model/DescribeSignatureProductStateRequest.h" +#include "model/DescribeSignatureProductStateResult.h" +#include "model/DescribeOrderRefundRecordRequest.h" +#include "model/DescribeOrderRefundRecordResult.h" +#include "model/DescribeOrderMaterialRequest.h" +#include "model/DescribeOrderMaterialResult.h" #include "model/CreateOrderDocumentRequest.h" #include "model/CreateOrderDocumentResult.h" #include "model/DescribeExpectationResultRequest.h" #include "model/DescribeExpectationResultResult.h" -#include "model/DescribeOrderMaterialRequest.h" -#include "model/DescribeOrderMaterialResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" #include "model/CreateSignaturePeopleCertificateRequest.h" #include "model/CreateSignaturePeopleCertificateResult.h" #include "model/DescribeCertificateListRequest.h" #include "model/DescribeCertificateListResult.h" -#include "model/DescribeCertificateBrandListRequest.h" -#include "model/DescribeCertificateBrandListResult.h" #include "model/DescribeDomainVerifyConfigurationStatusRequest.h" #include "model/DescribeDomainVerifyConfigurationStatusResult.h" +#include "model/DescribeRenewOrderRequest.h" +#include "model/DescribeRenewOrderResult.h" #include "model/CreateOrderCancelRequest.h" #include "model/CreateOrderCancelResult.h" -#include "model/CreateAliDnsRecordIdRequest.h" -#include "model/CreateAliDnsRecordIdResult.h" #include "model/CreateCertificateRequest.h" #include "model/CreateCertificateResult.h" -#include "model/CreateWebSignatureRequest.h" -#include "model/CreateWebSignatureResult.h" -#include "model/CreateUnDeploymentRequest.h" -#include "model/CreateUnDeploymentResult.h" #include "model/DescribeDownloadCertificateRequest.h" #include "model/DescribeDownloadCertificateResult.h" -#include "model/DescribeCertificateDetailRequest.h" -#include "model/DescribeCertificateDetailResult.h" -#include "model/CreateOrderMaterialRequest.h" -#include "model/CreateOrderMaterialResult.h" +#include "model/CreateUnDeploymentRequest.h" +#include "model/CreateUnDeploymentResult.h" #include "model/DescribeSignatureStatisticsRequest.h" #include "model/DescribeSignatureStatisticsResult.h" -#include "model/DescribeSignatureTradeListRequest.h" -#include "model/DescribeSignatureTradeListResult.h" -#include "model/CreateFilingSignatureDocumentRequest.h" -#include "model/CreateFilingSignatureDocumentResult.h" +#include "model/CreateOrderMaterialRequest.h" +#include "model/CreateOrderMaterialResult.h" #include "model/DescribeDownloadDomainVerifyConfigurationRequest.h" #include "model/DescribeDownloadDomainVerifyConfigurationResult.h" -#include "model/DescribeOSSDownloadInfoRequest.h" -#include "model/DescribeOSSDownloadInfoResult.h" -#include "model/CreateCooperationOrderRequest.h" -#include "model/CreateCooperationOrderResult.h" #include "model/DescribeDeploymentRegionListRequest.h" #include "model/DescribeDeploymentRegionListResult.h" -#include "model/CreateOrderAuditRequest.h" -#include "model/CreateOrderAuditResult.h" -#include "model/DeleteOrderRequest.h" -#include "model/DeleteOrderResult.h" -#include "model/DescribeHelpListRequest.h" -#include "model/DescribeHelpListResult.h" #include "model/DescribeStsAuthStatusRequest.h" #include "model/DescribeStsAuthStatusResult.h" -#include "model/DescribeDeploymentDetailRequest.h" -#include "model/DescribeDeploymentDetailResult.h" -#include "model/DescribeDomainVerifyInfoRequest.h" -#include "model/DescribeDomainVerifyInfoResult.h" -#include "model/CreateDeploymentRequest.h" -#include "model/CreateDeploymentResult.h" #include "model/DescribeOrderDocumentRequest.h" #include "model/DescribeOrderDocumentResult.h" +#include "model/CreateDeploymentRequest.h" +#include "model/CreateDeploymentResult.h" #include "model/CreateDomainVerifyConfigurationStatusRequest.h" #include "model/CreateDomainVerifyConfigurationStatusResult.h" +#include "model/DescribeOrderCountForConsoleIndexRequest.h" +#include "model/DescribeOrderCountForConsoleIndexResult.h" #include "model/CreateSignatureDocumentRequest.h" #include "model/CreateSignatureDocumentResult.h" #include "model/DescribeOrderAuditFailRecordRequest.h" @@ -98,20 +82,54 @@ #include "model/CreateOrderRevokeResult.h" #include "model/DeleteCertificateRequest.h" #include "model/DeleteCertificateResult.h" +#include "model/DescribeLocationListRequest.h" +#include "model/DescribeLocationListResult.h" +#include "model/DescribeSignatureCapacityRequest.h" +#include "model/DescribeSignatureCapacityResult.h" +#include "model/DescribeSignatureTradeDetailRequest.h" +#include "model/DescribeSignatureTradeDetailResult.h" +#include "model/ListTagKeysRequest.h" +#include "model/ListTagKeysResult.h" +#include "model/CreateSignatureRequest.h" +#include "model/CreateSignatureResult.h" +#include "model/DescribeCertificateBrandListRequest.h" +#include "model/DescribeCertificateBrandListResult.h" +#include "model/CreateAliDnsRecordIdRequest.h" +#include "model/CreateAliDnsRecordIdResult.h" +#include "model/CreateWebSignatureRequest.h" +#include "model/CreateWebSignatureResult.h" +#include "model/DescribeCertificateDetailRequest.h" +#include "model/DescribeCertificateDetailResult.h" +#include "model/DescribeSignatureTradeListRequest.h" +#include "model/DescribeSignatureTradeListResult.h" +#include "model/CreateFilingSignatureDocumentRequest.h" +#include "model/CreateFilingSignatureDocumentResult.h" +#include "model/DescribeOSSDownloadInfoRequest.h" +#include "model/DescribeOSSDownloadInfoResult.h" +#include "model/CreateCooperationOrderRequest.h" +#include "model/CreateCooperationOrderResult.h" +#include "model/DeleteOrderRequest.h" +#include "model/DeleteOrderResult.h" +#include "model/CreateOrderAuditRequest.h" +#include "model/CreateOrderAuditResult.h" +#include "model/DescribeHelpListRequest.h" +#include "model/DescribeHelpListResult.h" +#include "model/DescribeDeploymentDetailRequest.h" +#include "model/DescribeDeploymentDetailResult.h" +#include "model/DescribeDomainVerifyInfoRequest.h" +#include "model/DescribeDomainVerifyInfoResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" #include "model/DescribeOrderDetailRequest.h" #include "model/DescribeOrderDetailResult.h" #include "model/DescribeOSSUploadInfoRequest.h" #include "model/DescribeOSSUploadInfoResult.h" -#include "model/DescribeLocationListRequest.h" -#include "model/DescribeLocationListResult.h" +#include "model/CreateOrderRefundRecordRequest.h" +#include "model/CreateOrderRefundRecordResult.h" #include "model/DescribeDeploymentProductRequest.h" #include "model/DescribeDeploymentProductResult.h" -#include "model/DescribeSignatureCapacityRequest.h" -#include "model/DescribeSignatureCapacityResult.h" #include "model/DescribeDeploymentDomainListRequest.h" #include "model/DescribeDeploymentDomainListResult.h" -#include "model/DescribeSignatureTradeDetailRequest.h" -#include "model/DescribeSignatureTradeDetailResult.h" #include "model/CreateCertificateNameRequest.h" #include "model/CreateCertificateNameResult.h" @@ -123,105 +141,81 @@ namespace AlibabaCloud class ALIBABACLOUD_CAS_EXPORT CasClient : public RpcServiceClient { public: - typedef Outcome CreateSignatureOutcome; - typedef std::future CreateSignatureOutcomeCallable; - typedef std::function&)> CreateSignatureAsyncHandler; typedef Outcome DescribeCertificateStatusCountOutcome; typedef std::future DescribeCertificateStatusCountOutcomeCallable; typedef std::function&)> DescribeCertificateStatusCountAsyncHandler; + typedef Outcome DescribeSignatureProductStateOutcome; + typedef std::future DescribeSignatureProductStateOutcomeCallable; + typedef std::function&)> DescribeSignatureProductStateAsyncHandler; + typedef Outcome DescribeOrderRefundRecordOutcome; + typedef std::future DescribeOrderRefundRecordOutcomeCallable; + typedef std::function&)> DescribeOrderRefundRecordAsyncHandler; + typedef Outcome DescribeOrderMaterialOutcome; + typedef std::future DescribeOrderMaterialOutcomeCallable; + typedef std::function&)> DescribeOrderMaterialAsyncHandler; typedef Outcome CreateOrderDocumentOutcome; typedef std::future CreateOrderDocumentOutcomeCallable; typedef std::function&)> CreateOrderDocumentAsyncHandler; typedef Outcome DescribeExpectationResultOutcome; typedef std::future DescribeExpectationResultOutcomeCallable; typedef std::function&)> DescribeExpectationResultAsyncHandler; - typedef Outcome DescribeOrderMaterialOutcome; - typedef std::future DescribeOrderMaterialOutcomeCallable; - typedef std::function&)> DescribeOrderMaterialAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; typedef Outcome CreateSignaturePeopleCertificateOutcome; typedef std::future CreateSignaturePeopleCertificateOutcomeCallable; typedef std::function&)> CreateSignaturePeopleCertificateAsyncHandler; typedef Outcome DescribeCertificateListOutcome; typedef std::future DescribeCertificateListOutcomeCallable; typedef std::function&)> DescribeCertificateListAsyncHandler; - typedef Outcome DescribeCertificateBrandListOutcome; - typedef std::future DescribeCertificateBrandListOutcomeCallable; - typedef std::function&)> DescribeCertificateBrandListAsyncHandler; typedef Outcome DescribeDomainVerifyConfigurationStatusOutcome; typedef std::future DescribeDomainVerifyConfigurationStatusOutcomeCallable; typedef std::function&)> DescribeDomainVerifyConfigurationStatusAsyncHandler; + typedef Outcome DescribeRenewOrderOutcome; + typedef std::future DescribeRenewOrderOutcomeCallable; + typedef std::function&)> DescribeRenewOrderAsyncHandler; typedef Outcome CreateOrderCancelOutcome; typedef std::future CreateOrderCancelOutcomeCallable; typedef std::function&)> CreateOrderCancelAsyncHandler; - typedef Outcome CreateAliDnsRecordIdOutcome; - typedef std::future CreateAliDnsRecordIdOutcomeCallable; - typedef std::function&)> CreateAliDnsRecordIdAsyncHandler; typedef Outcome CreateCertificateOutcome; typedef std::future CreateCertificateOutcomeCallable; typedef std::function&)> CreateCertificateAsyncHandler; - typedef Outcome CreateWebSignatureOutcome; - typedef std::future CreateWebSignatureOutcomeCallable; - typedef std::function&)> CreateWebSignatureAsyncHandler; - typedef Outcome CreateUnDeploymentOutcome; - typedef std::future CreateUnDeploymentOutcomeCallable; - typedef std::function&)> CreateUnDeploymentAsyncHandler; typedef Outcome DescribeDownloadCertificateOutcome; typedef std::future DescribeDownloadCertificateOutcomeCallable; typedef std::function&)> DescribeDownloadCertificateAsyncHandler; - typedef Outcome DescribeCertificateDetailOutcome; - typedef std::future DescribeCertificateDetailOutcomeCallable; - typedef std::function&)> DescribeCertificateDetailAsyncHandler; - typedef Outcome CreateOrderMaterialOutcome; - typedef std::future CreateOrderMaterialOutcomeCallable; - typedef std::function&)> CreateOrderMaterialAsyncHandler; + typedef Outcome CreateUnDeploymentOutcome; + typedef std::future CreateUnDeploymentOutcomeCallable; + typedef std::function&)> CreateUnDeploymentAsyncHandler; typedef Outcome DescribeSignatureStatisticsOutcome; typedef std::future DescribeSignatureStatisticsOutcomeCallable; typedef std::function&)> DescribeSignatureStatisticsAsyncHandler; - typedef Outcome DescribeSignatureTradeListOutcome; - typedef std::future DescribeSignatureTradeListOutcomeCallable; - typedef std::function&)> DescribeSignatureTradeListAsyncHandler; - typedef Outcome CreateFilingSignatureDocumentOutcome; - typedef std::future CreateFilingSignatureDocumentOutcomeCallable; - typedef std::function&)> CreateFilingSignatureDocumentAsyncHandler; + typedef Outcome CreateOrderMaterialOutcome; + typedef std::future CreateOrderMaterialOutcomeCallable; + typedef std::function&)> CreateOrderMaterialAsyncHandler; typedef Outcome DescribeDownloadDomainVerifyConfigurationOutcome; typedef std::future DescribeDownloadDomainVerifyConfigurationOutcomeCallable; typedef std::function&)> DescribeDownloadDomainVerifyConfigurationAsyncHandler; - typedef Outcome DescribeOSSDownloadInfoOutcome; - typedef std::future DescribeOSSDownloadInfoOutcomeCallable; - typedef std::function&)> DescribeOSSDownloadInfoAsyncHandler; - typedef Outcome CreateCooperationOrderOutcome; - typedef std::future CreateCooperationOrderOutcomeCallable; - typedef std::function&)> CreateCooperationOrderAsyncHandler; typedef Outcome DescribeDeploymentRegionListOutcome; typedef std::future DescribeDeploymentRegionListOutcomeCallable; typedef std::function&)> DescribeDeploymentRegionListAsyncHandler; - typedef Outcome CreateOrderAuditOutcome; - typedef std::future CreateOrderAuditOutcomeCallable; - typedef std::function&)> CreateOrderAuditAsyncHandler; - typedef Outcome DeleteOrderOutcome; - typedef std::future DeleteOrderOutcomeCallable; - typedef std::function&)> DeleteOrderAsyncHandler; - typedef Outcome DescribeHelpListOutcome; - typedef std::future DescribeHelpListOutcomeCallable; - typedef std::function&)> DescribeHelpListAsyncHandler; typedef Outcome DescribeStsAuthStatusOutcome; typedef std::future DescribeStsAuthStatusOutcomeCallable; typedef std::function&)> DescribeStsAuthStatusAsyncHandler; - typedef Outcome DescribeDeploymentDetailOutcome; - typedef std::future DescribeDeploymentDetailOutcomeCallable; - typedef std::function&)> DescribeDeploymentDetailAsyncHandler; - typedef Outcome DescribeDomainVerifyInfoOutcome; - typedef std::future DescribeDomainVerifyInfoOutcomeCallable; - typedef std::function&)> DescribeDomainVerifyInfoAsyncHandler; - typedef Outcome CreateDeploymentOutcome; - typedef std::future CreateDeploymentOutcomeCallable; - typedef std::function&)> CreateDeploymentAsyncHandler; typedef Outcome DescribeOrderDocumentOutcome; typedef std::future DescribeOrderDocumentOutcomeCallable; typedef std::function&)> DescribeOrderDocumentAsyncHandler; + typedef Outcome CreateDeploymentOutcome; + typedef std::future CreateDeploymentOutcomeCallable; + typedef std::function&)> CreateDeploymentAsyncHandler; typedef Outcome CreateDomainVerifyConfigurationStatusOutcome; typedef std::future CreateDomainVerifyConfigurationStatusOutcomeCallable; typedef std::function&)> CreateDomainVerifyConfigurationStatusAsyncHandler; + typedef Outcome DescribeOrderCountForConsoleIndexOutcome; + typedef std::future DescribeOrderCountForConsoleIndexOutcomeCallable; + typedef std::function&)> DescribeOrderCountForConsoleIndexAsyncHandler; typedef Outcome CreateSignatureDocumentOutcome; typedef std::future CreateSignatureDocumentOutcomeCallable; typedef std::function&)> CreateSignatureDocumentAsyncHandler; @@ -237,27 +231,78 @@ namespace AlibabaCloud typedef Outcome DeleteCertificateOutcome; typedef std::future DeleteCertificateOutcomeCallable; typedef std::function&)> DeleteCertificateAsyncHandler; + typedef Outcome DescribeLocationListOutcome; + typedef std::future DescribeLocationListOutcomeCallable; + typedef std::function&)> DescribeLocationListAsyncHandler; + typedef Outcome DescribeSignatureCapacityOutcome; + typedef std::future DescribeSignatureCapacityOutcomeCallable; + typedef std::function&)> DescribeSignatureCapacityAsyncHandler; + typedef Outcome DescribeSignatureTradeDetailOutcome; + typedef std::future DescribeSignatureTradeDetailOutcomeCallable; + typedef std::function&)> DescribeSignatureTradeDetailAsyncHandler; + typedef Outcome ListTagKeysOutcome; + typedef std::future ListTagKeysOutcomeCallable; + typedef std::function&)> ListTagKeysAsyncHandler; + typedef Outcome CreateSignatureOutcome; + typedef std::future CreateSignatureOutcomeCallable; + typedef std::function&)> CreateSignatureAsyncHandler; + typedef Outcome DescribeCertificateBrandListOutcome; + typedef std::future DescribeCertificateBrandListOutcomeCallable; + typedef std::function&)> DescribeCertificateBrandListAsyncHandler; + typedef Outcome CreateAliDnsRecordIdOutcome; + typedef std::future CreateAliDnsRecordIdOutcomeCallable; + typedef std::function&)> CreateAliDnsRecordIdAsyncHandler; + typedef Outcome CreateWebSignatureOutcome; + typedef std::future CreateWebSignatureOutcomeCallable; + typedef std::function&)> CreateWebSignatureAsyncHandler; + typedef Outcome DescribeCertificateDetailOutcome; + typedef std::future DescribeCertificateDetailOutcomeCallable; + typedef std::function&)> DescribeCertificateDetailAsyncHandler; + typedef Outcome DescribeSignatureTradeListOutcome; + typedef std::future DescribeSignatureTradeListOutcomeCallable; + typedef std::function&)> DescribeSignatureTradeListAsyncHandler; + typedef Outcome CreateFilingSignatureDocumentOutcome; + typedef std::future CreateFilingSignatureDocumentOutcomeCallable; + typedef std::function&)> CreateFilingSignatureDocumentAsyncHandler; + typedef Outcome DescribeOSSDownloadInfoOutcome; + typedef std::future DescribeOSSDownloadInfoOutcomeCallable; + typedef std::function&)> DescribeOSSDownloadInfoAsyncHandler; + typedef Outcome CreateCooperationOrderOutcome; + typedef std::future CreateCooperationOrderOutcomeCallable; + typedef std::function&)> CreateCooperationOrderAsyncHandler; + typedef Outcome DeleteOrderOutcome; + typedef std::future DeleteOrderOutcomeCallable; + typedef std::function&)> DeleteOrderAsyncHandler; + typedef Outcome CreateOrderAuditOutcome; + typedef std::future CreateOrderAuditOutcomeCallable; + typedef std::function&)> CreateOrderAuditAsyncHandler; + typedef Outcome DescribeHelpListOutcome; + typedef std::future DescribeHelpListOutcomeCallable; + typedef std::function&)> DescribeHelpListAsyncHandler; + typedef Outcome DescribeDeploymentDetailOutcome; + typedef std::future DescribeDeploymentDetailOutcomeCallable; + typedef std::function&)> DescribeDeploymentDetailAsyncHandler; + typedef Outcome DescribeDomainVerifyInfoOutcome; + typedef std::future DescribeDomainVerifyInfoOutcomeCallable; + typedef std::function&)> DescribeDomainVerifyInfoAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; typedef Outcome DescribeOrderDetailOutcome; typedef std::future DescribeOrderDetailOutcomeCallable; typedef std::function&)> DescribeOrderDetailAsyncHandler; typedef Outcome DescribeOSSUploadInfoOutcome; typedef std::future DescribeOSSUploadInfoOutcomeCallable; typedef std::function&)> DescribeOSSUploadInfoAsyncHandler; - typedef Outcome DescribeLocationListOutcome; - typedef std::future DescribeLocationListOutcomeCallable; - typedef std::function&)> DescribeLocationListAsyncHandler; + typedef Outcome CreateOrderRefundRecordOutcome; + typedef std::future CreateOrderRefundRecordOutcomeCallable; + typedef std::function&)> CreateOrderRefundRecordAsyncHandler; typedef Outcome DescribeDeploymentProductOutcome; typedef std::future DescribeDeploymentProductOutcomeCallable; typedef std::function&)> DescribeDeploymentProductAsyncHandler; - typedef Outcome DescribeSignatureCapacityOutcome; - typedef std::future DescribeSignatureCapacityOutcomeCallable; - typedef std::function&)> DescribeSignatureCapacityAsyncHandler; typedef Outcome DescribeDeploymentDomainListOutcome; typedef std::future DescribeDeploymentDomainListOutcomeCallable; typedef std::function&)> DescribeDeploymentDomainListAsyncHandler; - typedef Outcome DescribeSignatureTradeDetailOutcome; - typedef std::future DescribeSignatureTradeDetailOutcomeCallable; - typedef std::function&)> DescribeSignatureTradeDetailAsyncHandler; typedef Outcome CreateCertificateNameOutcome; typedef std::future CreateCertificateNameOutcomeCallable; typedef std::function&)> CreateCertificateNameAsyncHandler; @@ -266,105 +311,81 @@ namespace AlibabaCloud CasClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CasClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CasClient(); - CreateSignatureOutcome createSignature(const Model::CreateSignatureRequest &request)const; - void createSignatureAsync(const Model::CreateSignatureRequest& request, const CreateSignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateSignatureOutcomeCallable createSignatureCallable(const Model::CreateSignatureRequest& request) const; DescribeCertificateStatusCountOutcome describeCertificateStatusCount(const Model::DescribeCertificateStatusCountRequest &request)const; void describeCertificateStatusCountAsync(const Model::DescribeCertificateStatusCountRequest& request, const DescribeCertificateStatusCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCertificateStatusCountOutcomeCallable describeCertificateStatusCountCallable(const Model::DescribeCertificateStatusCountRequest& request) const; + DescribeSignatureProductStateOutcome describeSignatureProductState(const Model::DescribeSignatureProductStateRequest &request)const; + void describeSignatureProductStateAsync(const Model::DescribeSignatureProductStateRequest& request, const DescribeSignatureProductStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSignatureProductStateOutcomeCallable describeSignatureProductStateCallable(const Model::DescribeSignatureProductStateRequest& request) const; + DescribeOrderRefundRecordOutcome describeOrderRefundRecord(const Model::DescribeOrderRefundRecordRequest &request)const; + void describeOrderRefundRecordAsync(const Model::DescribeOrderRefundRecordRequest& request, const DescribeOrderRefundRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOrderRefundRecordOutcomeCallable describeOrderRefundRecordCallable(const Model::DescribeOrderRefundRecordRequest& request) const; + DescribeOrderMaterialOutcome describeOrderMaterial(const Model::DescribeOrderMaterialRequest &request)const; + void describeOrderMaterialAsync(const Model::DescribeOrderMaterialRequest& request, const DescribeOrderMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOrderMaterialOutcomeCallable describeOrderMaterialCallable(const Model::DescribeOrderMaterialRequest& request) const; CreateOrderDocumentOutcome createOrderDocument(const Model::CreateOrderDocumentRequest &request)const; void createOrderDocumentAsync(const Model::CreateOrderDocumentRequest& request, const CreateOrderDocumentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrderDocumentOutcomeCallable createOrderDocumentCallable(const Model::CreateOrderDocumentRequest& request) const; DescribeExpectationResultOutcome describeExpectationResult(const Model::DescribeExpectationResultRequest &request)const; void describeExpectationResultAsync(const Model::DescribeExpectationResultRequest& request, const DescribeExpectationResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeExpectationResultOutcomeCallable describeExpectationResultCallable(const Model::DescribeExpectationResultRequest& request) const; - DescribeOrderMaterialOutcome describeOrderMaterial(const Model::DescribeOrderMaterialRequest &request)const; - void describeOrderMaterialAsync(const Model::DescribeOrderMaterialRequest& request, const DescribeOrderMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeOrderMaterialOutcomeCallable describeOrderMaterialCallable(const Model::DescribeOrderMaterialRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; CreateSignaturePeopleCertificateOutcome createSignaturePeopleCertificate(const Model::CreateSignaturePeopleCertificateRequest &request)const; void createSignaturePeopleCertificateAsync(const Model::CreateSignaturePeopleCertificateRequest& request, const CreateSignaturePeopleCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSignaturePeopleCertificateOutcomeCallable createSignaturePeopleCertificateCallable(const Model::CreateSignaturePeopleCertificateRequest& request) const; DescribeCertificateListOutcome describeCertificateList(const Model::DescribeCertificateListRequest &request)const; void describeCertificateListAsync(const Model::DescribeCertificateListRequest& request, const DescribeCertificateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCertificateListOutcomeCallable describeCertificateListCallable(const Model::DescribeCertificateListRequest& request) const; - DescribeCertificateBrandListOutcome describeCertificateBrandList(const Model::DescribeCertificateBrandListRequest &request)const; - void describeCertificateBrandListAsync(const Model::DescribeCertificateBrandListRequest& request, const DescribeCertificateBrandListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCertificateBrandListOutcomeCallable describeCertificateBrandListCallable(const Model::DescribeCertificateBrandListRequest& request) const; DescribeDomainVerifyConfigurationStatusOutcome describeDomainVerifyConfigurationStatus(const Model::DescribeDomainVerifyConfigurationStatusRequest &request)const; void describeDomainVerifyConfigurationStatusAsync(const Model::DescribeDomainVerifyConfigurationStatusRequest& request, const DescribeDomainVerifyConfigurationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainVerifyConfigurationStatusOutcomeCallable describeDomainVerifyConfigurationStatusCallable(const Model::DescribeDomainVerifyConfigurationStatusRequest& request) const; + DescribeRenewOrderOutcome describeRenewOrder(const Model::DescribeRenewOrderRequest &request)const; + void describeRenewOrderAsync(const Model::DescribeRenewOrderRequest& request, const DescribeRenewOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRenewOrderOutcomeCallable describeRenewOrderCallable(const Model::DescribeRenewOrderRequest& request) const; CreateOrderCancelOutcome createOrderCancel(const Model::CreateOrderCancelRequest &request)const; void createOrderCancelAsync(const Model::CreateOrderCancelRequest& request, const CreateOrderCancelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrderCancelOutcomeCallable createOrderCancelCallable(const Model::CreateOrderCancelRequest& request) const; - CreateAliDnsRecordIdOutcome createAliDnsRecordId(const Model::CreateAliDnsRecordIdRequest &request)const; - void createAliDnsRecordIdAsync(const Model::CreateAliDnsRecordIdRequest& request, const CreateAliDnsRecordIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAliDnsRecordIdOutcomeCallable createAliDnsRecordIdCallable(const Model::CreateAliDnsRecordIdRequest& request) const; CreateCertificateOutcome createCertificate(const Model::CreateCertificateRequest &request)const; void createCertificateAsync(const Model::CreateCertificateRequest& request, const CreateCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCertificateOutcomeCallable createCertificateCallable(const Model::CreateCertificateRequest& request) const; - CreateWebSignatureOutcome createWebSignature(const Model::CreateWebSignatureRequest &request)const; - void createWebSignatureAsync(const Model::CreateWebSignatureRequest& request, const CreateWebSignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateWebSignatureOutcomeCallable createWebSignatureCallable(const Model::CreateWebSignatureRequest& request) const; - CreateUnDeploymentOutcome createUnDeployment(const Model::CreateUnDeploymentRequest &request)const; - void createUnDeploymentAsync(const Model::CreateUnDeploymentRequest& request, const CreateUnDeploymentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateUnDeploymentOutcomeCallable createUnDeploymentCallable(const Model::CreateUnDeploymentRequest& request) const; DescribeDownloadCertificateOutcome describeDownloadCertificate(const Model::DescribeDownloadCertificateRequest &request)const; void describeDownloadCertificateAsync(const Model::DescribeDownloadCertificateRequest& request, const DescribeDownloadCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDownloadCertificateOutcomeCallable describeDownloadCertificateCallable(const Model::DescribeDownloadCertificateRequest& request) const; - DescribeCertificateDetailOutcome describeCertificateDetail(const Model::DescribeCertificateDetailRequest &request)const; - void describeCertificateDetailAsync(const Model::DescribeCertificateDetailRequest& request, const DescribeCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCertificateDetailOutcomeCallable describeCertificateDetailCallable(const Model::DescribeCertificateDetailRequest& request) const; - CreateOrderMaterialOutcome createOrderMaterial(const Model::CreateOrderMaterialRequest &request)const; - void createOrderMaterialAsync(const Model::CreateOrderMaterialRequest& request, const CreateOrderMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateOrderMaterialOutcomeCallable createOrderMaterialCallable(const Model::CreateOrderMaterialRequest& request) const; + CreateUnDeploymentOutcome createUnDeployment(const Model::CreateUnDeploymentRequest &request)const; + void createUnDeploymentAsync(const Model::CreateUnDeploymentRequest& request, const CreateUnDeploymentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUnDeploymentOutcomeCallable createUnDeploymentCallable(const Model::CreateUnDeploymentRequest& request) const; DescribeSignatureStatisticsOutcome describeSignatureStatistics(const Model::DescribeSignatureStatisticsRequest &request)const; void describeSignatureStatisticsAsync(const Model::DescribeSignatureStatisticsRequest& request, const DescribeSignatureStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSignatureStatisticsOutcomeCallable describeSignatureStatisticsCallable(const Model::DescribeSignatureStatisticsRequest& request) const; - DescribeSignatureTradeListOutcome describeSignatureTradeList(const Model::DescribeSignatureTradeListRequest &request)const; - void describeSignatureTradeListAsync(const Model::DescribeSignatureTradeListRequest& request, const DescribeSignatureTradeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSignatureTradeListOutcomeCallable describeSignatureTradeListCallable(const Model::DescribeSignatureTradeListRequest& request) const; - CreateFilingSignatureDocumentOutcome createFilingSignatureDocument(const Model::CreateFilingSignatureDocumentRequest &request)const; - void createFilingSignatureDocumentAsync(const Model::CreateFilingSignatureDocumentRequest& request, const CreateFilingSignatureDocumentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFilingSignatureDocumentOutcomeCallable createFilingSignatureDocumentCallable(const Model::CreateFilingSignatureDocumentRequest& request) const; + CreateOrderMaterialOutcome createOrderMaterial(const Model::CreateOrderMaterialRequest &request)const; + void createOrderMaterialAsync(const Model::CreateOrderMaterialRequest& request, const CreateOrderMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOrderMaterialOutcomeCallable createOrderMaterialCallable(const Model::CreateOrderMaterialRequest& request) const; DescribeDownloadDomainVerifyConfigurationOutcome describeDownloadDomainVerifyConfiguration(const Model::DescribeDownloadDomainVerifyConfigurationRequest &request)const; void describeDownloadDomainVerifyConfigurationAsync(const Model::DescribeDownloadDomainVerifyConfigurationRequest& request, const DescribeDownloadDomainVerifyConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDownloadDomainVerifyConfigurationOutcomeCallable describeDownloadDomainVerifyConfigurationCallable(const Model::DescribeDownloadDomainVerifyConfigurationRequest& request) const; - DescribeOSSDownloadInfoOutcome describeOSSDownloadInfo(const Model::DescribeOSSDownloadInfoRequest &request)const; - void describeOSSDownloadInfoAsync(const Model::DescribeOSSDownloadInfoRequest& request, const DescribeOSSDownloadInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeOSSDownloadInfoOutcomeCallable describeOSSDownloadInfoCallable(const Model::DescribeOSSDownloadInfoRequest& request) const; - CreateCooperationOrderOutcome createCooperationOrder(const Model::CreateCooperationOrderRequest &request)const; - void createCooperationOrderAsync(const Model::CreateCooperationOrderRequest& request, const CreateCooperationOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCooperationOrderOutcomeCallable createCooperationOrderCallable(const Model::CreateCooperationOrderRequest& request) const; DescribeDeploymentRegionListOutcome describeDeploymentRegionList(const Model::DescribeDeploymentRegionListRequest &request)const; void describeDeploymentRegionListAsync(const Model::DescribeDeploymentRegionListRequest& request, const DescribeDeploymentRegionListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDeploymentRegionListOutcomeCallable describeDeploymentRegionListCallable(const Model::DescribeDeploymentRegionListRequest& request) const; - CreateOrderAuditOutcome createOrderAudit(const Model::CreateOrderAuditRequest &request)const; - void createOrderAuditAsync(const Model::CreateOrderAuditRequest& request, const CreateOrderAuditAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateOrderAuditOutcomeCallable createOrderAuditCallable(const Model::CreateOrderAuditRequest& request) const; - DeleteOrderOutcome deleteOrder(const Model::DeleteOrderRequest &request)const; - void deleteOrderAsync(const Model::DeleteOrderRequest& request, const DeleteOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteOrderOutcomeCallable deleteOrderCallable(const Model::DeleteOrderRequest& request) const; - DescribeHelpListOutcome describeHelpList(const Model::DescribeHelpListRequest &request)const; - void describeHelpListAsync(const Model::DescribeHelpListRequest& request, const DescribeHelpListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeHelpListOutcomeCallable describeHelpListCallable(const Model::DescribeHelpListRequest& request) const; DescribeStsAuthStatusOutcome describeStsAuthStatus(const Model::DescribeStsAuthStatusRequest &request)const; void describeStsAuthStatusAsync(const Model::DescribeStsAuthStatusRequest& request, const DescribeStsAuthStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStsAuthStatusOutcomeCallable describeStsAuthStatusCallable(const Model::DescribeStsAuthStatusRequest& request) const; - DescribeDeploymentDetailOutcome describeDeploymentDetail(const Model::DescribeDeploymentDetailRequest &request)const; - void describeDeploymentDetailAsync(const Model::DescribeDeploymentDetailRequest& request, const DescribeDeploymentDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDeploymentDetailOutcomeCallable describeDeploymentDetailCallable(const Model::DescribeDeploymentDetailRequest& request) const; - DescribeDomainVerifyInfoOutcome describeDomainVerifyInfo(const Model::DescribeDomainVerifyInfoRequest &request)const; - void describeDomainVerifyInfoAsync(const Model::DescribeDomainVerifyInfoRequest& request, const DescribeDomainVerifyInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDomainVerifyInfoOutcomeCallable describeDomainVerifyInfoCallable(const Model::DescribeDomainVerifyInfoRequest& request) const; - CreateDeploymentOutcome createDeployment(const Model::CreateDeploymentRequest &request)const; - void createDeploymentAsync(const Model::CreateDeploymentRequest& request, const CreateDeploymentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDeploymentOutcomeCallable createDeploymentCallable(const Model::CreateDeploymentRequest& request) const; DescribeOrderDocumentOutcome describeOrderDocument(const Model::DescribeOrderDocumentRequest &request)const; void describeOrderDocumentAsync(const Model::DescribeOrderDocumentRequest& request, const DescribeOrderDocumentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOrderDocumentOutcomeCallable describeOrderDocumentCallable(const Model::DescribeOrderDocumentRequest& request) const; + CreateDeploymentOutcome createDeployment(const Model::CreateDeploymentRequest &request)const; + void createDeploymentAsync(const Model::CreateDeploymentRequest& request, const CreateDeploymentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDeploymentOutcomeCallable createDeploymentCallable(const Model::CreateDeploymentRequest& request) const; CreateDomainVerifyConfigurationStatusOutcome createDomainVerifyConfigurationStatus(const Model::CreateDomainVerifyConfigurationStatusRequest &request)const; void createDomainVerifyConfigurationStatusAsync(const Model::CreateDomainVerifyConfigurationStatusRequest& request, const CreateDomainVerifyConfigurationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDomainVerifyConfigurationStatusOutcomeCallable createDomainVerifyConfigurationStatusCallable(const Model::CreateDomainVerifyConfigurationStatusRequest& request) const; + DescribeOrderCountForConsoleIndexOutcome describeOrderCountForConsoleIndex(const Model::DescribeOrderCountForConsoleIndexRequest &request)const; + void describeOrderCountForConsoleIndexAsync(const Model::DescribeOrderCountForConsoleIndexRequest& request, const DescribeOrderCountForConsoleIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOrderCountForConsoleIndexOutcomeCallable describeOrderCountForConsoleIndexCallable(const Model::DescribeOrderCountForConsoleIndexRequest& request) const; CreateSignatureDocumentOutcome createSignatureDocument(const Model::CreateSignatureDocumentRequest &request)const; void createSignatureDocumentAsync(const Model::CreateSignatureDocumentRequest& request, const CreateSignatureDocumentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSignatureDocumentOutcomeCallable createSignatureDocumentCallable(const Model::CreateSignatureDocumentRequest& request) const; @@ -380,27 +401,78 @@ namespace AlibabaCloud DeleteCertificateOutcome deleteCertificate(const Model::DeleteCertificateRequest &request)const; void deleteCertificateAsync(const Model::DeleteCertificateRequest& request, const DeleteCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCertificateOutcomeCallable deleteCertificateCallable(const Model::DeleteCertificateRequest& request) const; + DescribeLocationListOutcome describeLocationList(const Model::DescribeLocationListRequest &request)const; + void describeLocationListAsync(const Model::DescribeLocationListRequest& request, const DescribeLocationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLocationListOutcomeCallable describeLocationListCallable(const Model::DescribeLocationListRequest& request) const; + DescribeSignatureCapacityOutcome describeSignatureCapacity(const Model::DescribeSignatureCapacityRequest &request)const; + void describeSignatureCapacityAsync(const Model::DescribeSignatureCapacityRequest& request, const DescribeSignatureCapacityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSignatureCapacityOutcomeCallable describeSignatureCapacityCallable(const Model::DescribeSignatureCapacityRequest& request) const; + DescribeSignatureTradeDetailOutcome describeSignatureTradeDetail(const Model::DescribeSignatureTradeDetailRequest &request)const; + void describeSignatureTradeDetailAsync(const Model::DescribeSignatureTradeDetailRequest& request, const DescribeSignatureTradeDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSignatureTradeDetailOutcomeCallable describeSignatureTradeDetailCallable(const Model::DescribeSignatureTradeDetailRequest& request) const; + ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const; + void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const; + CreateSignatureOutcome createSignature(const Model::CreateSignatureRequest &request)const; + void createSignatureAsync(const Model::CreateSignatureRequest& request, const CreateSignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSignatureOutcomeCallable createSignatureCallable(const Model::CreateSignatureRequest& request) const; + DescribeCertificateBrandListOutcome describeCertificateBrandList(const Model::DescribeCertificateBrandListRequest &request)const; + void describeCertificateBrandListAsync(const Model::DescribeCertificateBrandListRequest& request, const DescribeCertificateBrandListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCertificateBrandListOutcomeCallable describeCertificateBrandListCallable(const Model::DescribeCertificateBrandListRequest& request) const; + CreateAliDnsRecordIdOutcome createAliDnsRecordId(const Model::CreateAliDnsRecordIdRequest &request)const; + void createAliDnsRecordIdAsync(const Model::CreateAliDnsRecordIdRequest& request, const CreateAliDnsRecordIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAliDnsRecordIdOutcomeCallable createAliDnsRecordIdCallable(const Model::CreateAliDnsRecordIdRequest& request) const; + CreateWebSignatureOutcome createWebSignature(const Model::CreateWebSignatureRequest &request)const; + void createWebSignatureAsync(const Model::CreateWebSignatureRequest& request, const CreateWebSignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWebSignatureOutcomeCallable createWebSignatureCallable(const Model::CreateWebSignatureRequest& request) const; + DescribeCertificateDetailOutcome describeCertificateDetail(const Model::DescribeCertificateDetailRequest &request)const; + void describeCertificateDetailAsync(const Model::DescribeCertificateDetailRequest& request, const DescribeCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCertificateDetailOutcomeCallable describeCertificateDetailCallable(const Model::DescribeCertificateDetailRequest& request) const; + DescribeSignatureTradeListOutcome describeSignatureTradeList(const Model::DescribeSignatureTradeListRequest &request)const; + void describeSignatureTradeListAsync(const Model::DescribeSignatureTradeListRequest& request, const DescribeSignatureTradeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSignatureTradeListOutcomeCallable describeSignatureTradeListCallable(const Model::DescribeSignatureTradeListRequest& request) const; + CreateFilingSignatureDocumentOutcome createFilingSignatureDocument(const Model::CreateFilingSignatureDocumentRequest &request)const; + void createFilingSignatureDocumentAsync(const Model::CreateFilingSignatureDocumentRequest& request, const CreateFilingSignatureDocumentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFilingSignatureDocumentOutcomeCallable createFilingSignatureDocumentCallable(const Model::CreateFilingSignatureDocumentRequest& request) const; + DescribeOSSDownloadInfoOutcome describeOSSDownloadInfo(const Model::DescribeOSSDownloadInfoRequest &request)const; + void describeOSSDownloadInfoAsync(const Model::DescribeOSSDownloadInfoRequest& request, const DescribeOSSDownloadInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOSSDownloadInfoOutcomeCallable describeOSSDownloadInfoCallable(const Model::DescribeOSSDownloadInfoRequest& request) const; + CreateCooperationOrderOutcome createCooperationOrder(const Model::CreateCooperationOrderRequest &request)const; + void createCooperationOrderAsync(const Model::CreateCooperationOrderRequest& request, const CreateCooperationOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCooperationOrderOutcomeCallable createCooperationOrderCallable(const Model::CreateCooperationOrderRequest& request) const; + DeleteOrderOutcome deleteOrder(const Model::DeleteOrderRequest &request)const; + void deleteOrderAsync(const Model::DeleteOrderRequest& request, const DeleteOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOrderOutcomeCallable deleteOrderCallable(const Model::DeleteOrderRequest& request) const; + CreateOrderAuditOutcome createOrderAudit(const Model::CreateOrderAuditRequest &request)const; + void createOrderAuditAsync(const Model::CreateOrderAuditRequest& request, const CreateOrderAuditAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOrderAuditOutcomeCallable createOrderAuditCallable(const Model::CreateOrderAuditRequest& request) const; + DescribeHelpListOutcome describeHelpList(const Model::DescribeHelpListRequest &request)const; + void describeHelpListAsync(const Model::DescribeHelpListRequest& request, const DescribeHelpListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHelpListOutcomeCallable describeHelpListCallable(const Model::DescribeHelpListRequest& request) const; + DescribeDeploymentDetailOutcome describeDeploymentDetail(const Model::DescribeDeploymentDetailRequest &request)const; + void describeDeploymentDetailAsync(const Model::DescribeDeploymentDetailRequest& request, const DescribeDeploymentDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeploymentDetailOutcomeCallable describeDeploymentDetailCallable(const Model::DescribeDeploymentDetailRequest& request) const; + DescribeDomainVerifyInfoOutcome describeDomainVerifyInfo(const Model::DescribeDomainVerifyInfoRequest &request)const; + void describeDomainVerifyInfoAsync(const Model::DescribeDomainVerifyInfoRequest& request, const DescribeDomainVerifyInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainVerifyInfoOutcomeCallable describeDomainVerifyInfoCallable(const Model::DescribeDomainVerifyInfoRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; DescribeOrderDetailOutcome describeOrderDetail(const Model::DescribeOrderDetailRequest &request)const; void describeOrderDetailAsync(const Model::DescribeOrderDetailRequest& request, const DescribeOrderDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOrderDetailOutcomeCallable describeOrderDetailCallable(const Model::DescribeOrderDetailRequest& request) const; DescribeOSSUploadInfoOutcome describeOSSUploadInfo(const Model::DescribeOSSUploadInfoRequest &request)const; void describeOSSUploadInfoAsync(const Model::DescribeOSSUploadInfoRequest& request, const DescribeOSSUploadInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOSSUploadInfoOutcomeCallable describeOSSUploadInfoCallable(const Model::DescribeOSSUploadInfoRequest& request) const; - DescribeLocationListOutcome describeLocationList(const Model::DescribeLocationListRequest &request)const; - void describeLocationListAsync(const Model::DescribeLocationListRequest& request, const DescribeLocationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLocationListOutcomeCallable describeLocationListCallable(const Model::DescribeLocationListRequest& request) const; + CreateOrderRefundRecordOutcome createOrderRefundRecord(const Model::CreateOrderRefundRecordRequest &request)const; + void createOrderRefundRecordAsync(const Model::CreateOrderRefundRecordRequest& request, const CreateOrderRefundRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOrderRefundRecordOutcomeCallable createOrderRefundRecordCallable(const Model::CreateOrderRefundRecordRequest& request) const; DescribeDeploymentProductOutcome describeDeploymentProduct(const Model::DescribeDeploymentProductRequest &request)const; void describeDeploymentProductAsync(const Model::DescribeDeploymentProductRequest& request, const DescribeDeploymentProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDeploymentProductOutcomeCallable describeDeploymentProductCallable(const Model::DescribeDeploymentProductRequest& request) const; - DescribeSignatureCapacityOutcome describeSignatureCapacity(const Model::DescribeSignatureCapacityRequest &request)const; - void describeSignatureCapacityAsync(const Model::DescribeSignatureCapacityRequest& request, const DescribeSignatureCapacityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSignatureCapacityOutcomeCallable describeSignatureCapacityCallable(const Model::DescribeSignatureCapacityRequest& request) const; DescribeDeploymentDomainListOutcome describeDeploymentDomainList(const Model::DescribeDeploymentDomainListRequest &request)const; void describeDeploymentDomainListAsync(const Model::DescribeDeploymentDomainListRequest& request, const DescribeDeploymentDomainListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDeploymentDomainListOutcomeCallable describeDeploymentDomainListCallable(const Model::DescribeDeploymentDomainListRequest& request) const; - DescribeSignatureTradeDetailOutcome describeSignatureTradeDetail(const Model::DescribeSignatureTradeDetailRequest &request)const; - void describeSignatureTradeDetailAsync(const Model::DescribeSignatureTradeDetailRequest& request, const DescribeSignatureTradeDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSignatureTradeDetailOutcomeCallable describeSignatureTradeDetailCallable(const Model::DescribeSignatureTradeDetailRequest& request) const; CreateCertificateNameOutcome createCertificateName(const Model::CreateCertificateNameRequest &request)const; void createCertificateNameAsync(const Model::CreateCertificateNameRequest& request, const CreateCertificateNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCertificateNameOutcomeCallable createCertificateNameCallable(const Model::CreateCertificateNameRequest& request) const; diff --git a/cas/include/alibabacloud/cas/model/CreateOrderRefundRecordRequest.h b/cas/include/alibabacloud/cas/model/CreateOrderRefundRecordRequest.h new file mode 100644 index 000000000..d02c91c40 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateOrderRefundRecordRequest.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_CAS_MODEL_CREATEORDERREFUNDRECORDREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEORDERREFUNDRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT CreateOrderRefundRecordRequest : public RpcServiceRequest + { + + public: + CreateOrderRefundRecordRequest(); + ~CreateOrderRefundRecordRequest(); + + std::string getReason()const; + void setReason(const std::string& reason); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getOrderId()const; + void setOrderId(long orderId); + + private: + std::string reason_; + std::string sourceIp_; + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEORDERREFUNDRECORDREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateOrderRefundRecordResult.h b/cas/include/alibabacloud/cas/model/CreateOrderRefundRecordResult.h new file mode 100644 index 000000000..4d657b364 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateOrderRefundRecordResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATEORDERREFUNDRECORDRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEORDERREFUNDRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT CreateOrderRefundRecordResult : public ServiceResult + { + public: + + + CreateOrderRefundRecordResult(); + explicit CreateOrderRefundRecordResult(const std::string &payload); + ~CreateOrderRefundRecordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEORDERREFUNDRECORDRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateSignatureDocumentResult.h b/cas/include/alibabacloud/cas/model/CreateSignatureDocumentResult.h index 8fae2a228..5f811dddf 100644 --- a/cas/include/alibabacloud/cas/model/CreateSignatureDocumentResult.h +++ b/cas/include/alibabacloud/cas/model/CreateSignatureDocumentResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud CreateSignatureDocumentResult(); explicit CreateSignatureDocumentResult(const std::string &payload); ~CreateSignatureDocumentResult(); + std::string getDocId()const; protected: void parse(const std::string &payload); private: + std::string docId_; }; } diff --git a/cas/include/alibabacloud/cas/model/CreateSignaturePeopleCertificateResult.h b/cas/include/alibabacloud/cas/model/CreateSignaturePeopleCertificateResult.h index db63e1950..eb5e31019 100644 --- a/cas/include/alibabacloud/cas/model/CreateSignaturePeopleCertificateResult.h +++ b/cas/include/alibabacloud/cas/model/CreateSignaturePeopleCertificateResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud CreateSignaturePeopleCertificateResult(); explicit CreateSignaturePeopleCertificateResult(const std::string &payload); ~CreateSignaturePeopleCertificateResult(); + std::string getPeopleId()const; protected: void parse(const std::string &payload); private: + std::string peopleId_; }; } diff --git a/cas/include/alibabacloud/cas/model/CreateSignatureRequest.h b/cas/include/alibabacloud/cas/model/CreateSignatureRequest.h index 18ebe132e..5087e37cd 100644 --- a/cas/include/alibabacloud/cas/model/CreateSignatureRequest.h +++ b/cas/include/alibabacloud/cas/model/CreateSignatureRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud CreateSignatureRequest(); ~CreateSignatureRequest(); + std::string getIconId()const; + void setIconId(const std::string& iconId); int getQuantity()const; void setQuantity(int quantity); std::string getHandSignImg()const; @@ -71,6 +73,7 @@ namespace AlibabaCloud void setKeywordStrategy(int keywordStrategy); private: + std::string iconId_; int quantity_; std::string handSignImg_; std::string docId_; diff --git a/cas/include/alibabacloud/cas/model/CreateSignatureResult.h b/cas/include/alibabacloud/cas/model/CreateSignatureResult.h index 393774ac5..8f6d6a438 100644 --- a/cas/include/alibabacloud/cas/model/CreateSignatureResult.h +++ b/cas/include/alibabacloud/cas/model/CreateSignatureResult.h @@ -37,10 +37,14 @@ namespace AlibabaCloud CreateSignatureResult(); explicit CreateSignatureResult(const std::string &payload); ~CreateSignatureResult(); + std::string getDocContent()const; + std::string getTransactionId()const; protected: void parse(const std::string &payload); private: + std::string docContent_; + std::string transactionId_; }; } diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificateDetailResult.h b/cas/include/alibabacloud/cas/model/DescribeCertificateDetailResult.h index b79f7c7fc..d1fc0058e 100644 --- a/cas/include/alibabacloud/cas/model/DescribeCertificateDetailResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeCertificateDetailResult.h @@ -49,6 +49,7 @@ namespace AlibabaCloud std::string getDomains()const; std::string getBrandName()const; int getYear()const; + int getAccessDownload()const; long getId()const; long getBeforeDate()const; @@ -67,6 +68,7 @@ namespace AlibabaCloud std::string domains_; std::string brandName_; int year_; + int accessDownload_; long id_; long beforeDate_; diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificateListRequest.h b/cas/include/alibabacloud/cas/model/DescribeCertificateListRequest.h index ae274a666..4580cc276 100644 --- a/cas/include/alibabacloud/cas/model/DescribeCertificateListRequest.h +++ b/cas/include/alibabacloud/cas/model/DescribeCertificateListRequest.h @@ -30,30 +30,50 @@ namespace AlibabaCloud { class ALIBABACLOUD_CAS_EXPORT DescribeCertificateListRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: DescribeCertificateListRequest(); ~DescribeCertificateListRequest(); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); + std::string getSortType()const; + void setSortType(const std::string& sortType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); int getShowSize()const; void setShowSize(int showSize); + std::string getSortColumn()const; + void setSortColumn(const std::string& sortColumn); int getCurrentPage()const; void setCurrentPage(int currentPage); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getLang()const; void setLang(const std::string& lang); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); std::string getStatus()const; void setStatus(const std::string& status); private: + std::string resourceGroupId_; std::string sourceIp_; + std::string sortType_; + std::string regionId_; int showSize_; + std::string sortColumn_; int currentPage_; - std::string keyword_; + std::vector tag_; std::string lang_; + std::string keyword_; std::string status_; }; diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificateListResult.h b/cas/include/alibabacloud/cas/model/DescribeCertificateListResult.h index c354de5eb..fcc583f85 100644 --- a/cas/include/alibabacloud/cas/model/DescribeCertificateListResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeCertificateListResult.h @@ -35,19 +35,23 @@ namespace AlibabaCloud struct Certificate { long afterDate; + bool showRefund; std::string instanceId; std::string sourceType; int showDeployment; std::string certType; int remainingDays; + std::string partnerOrderId; std::string newBuyCertType; long orderId; std::string statusCode; + int newBuyDomainCount; std::string name; std::string brandName; std::string newBuyBrand; std::string orderType; int year; + int accessDownload; long id; std::string deploymentCloudProduct; std::string domain; diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountRequest.h b/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountRequest.h index 855801c13..d79563e78 100644 --- a/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountRequest.h +++ b/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountRequest.h @@ -30,18 +30,32 @@ namespace AlibabaCloud { class ALIBABACLOUD_CAS_EXPORT DescribeCertificateStatusCountRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: DescribeCertificateStatusCountRequest(); ~DescribeCertificateStatusCountRequest(); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getLang()const; void setLang(const std::string& lang); private: + std::string resourceGroupId_; std::string sourceIp_; + std::string regionId_; + std::vector tag_; std::string lang_; }; diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountResult.h b/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountResult.h index a95dcebb8..44b63b56b 100644 --- a/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeCertificateStatusCountResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud int getExpired()const; int getCheckedFail()const; int getChecking()const; + int getRevokeChecking()const; protected: void parse(const std::string &payload); @@ -57,6 +58,7 @@ namespace AlibabaCloud int expired_; int checkedFail_; int checking_; + int revokeChecking_; }; } diff --git a/cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexRequest.h b/cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexRequest.h new file mode 100644 index 000000000..b83941bd7 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexRequest.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_CAS_MODEL_DESCRIBEORDERCOUNTFORCONSOLEINDEXREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERCOUNTFORCONSOLEINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeOrderCountForConsoleIndexRequest : public RpcServiceRequest + { + + public: + DescribeOrderCountForConsoleIndexRequest(); + ~DescribeOrderCountForConsoleIndexRequest(); + + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string resourceGroupId_; + std::string sourceIp_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERCOUNTFORCONSOLEINDEXREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexResult.h b/cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexResult.h new file mode 100644 index 000000000..38b2fe9dd --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeOrderCountForConsoleIndexResult.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_CAS_MODEL_DESCRIBEORDERCOUNTFORCONSOLEINDEXRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERCOUNTFORCONSOLEINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeOrderCountForConsoleIndexResult : public ServiceResult + { + public: + + + DescribeOrderCountForConsoleIndexResult(); + explicit DescribeOrderCountForConsoleIndexResult(const std::string &payload); + ~DescribeOrderCountForConsoleIndexResult(); + bool getBuySuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool buySuccess_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERCOUNTFORCONSOLEINDEXRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeOrderDetailResult.h b/cas/include/alibabacloud/cas/model/DescribeOrderDetailResult.h index 8005f0f10..9b1067e4d 100644 --- a/cas/include/alibabacloud/cas/model/DescribeOrderDetailResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeOrderDetailResult.h @@ -37,32 +37,50 @@ namespace AlibabaCloud DescribeOrderDetailResult(); explicit DescribeOrderDetailResult(const std::string &payload); ~DescribeOrderDetailResult(); - std::string getBrandName()const; - int getYear()const; + int getVerifyStatus()const; + long getAfterDate()const; + bool getShowRefund()const; std::string getInstanceId()const; - std::string getProductAliasName()const; std::string getSourceType()const; std::string getCertType()const; - int getId()const; + int getWildDomainCount()const; long getOrderId()const; + std::string getStatusCode()const; + std::string getBrandName()const; + std::string getOrderType()const; + long getYear()const; + bool getShowCancel()const; + std::string getProductAliasName()const; + long getMaybeIssueDate()const; + long getId()const; std::string getDomain()const; - int getStatusCode()const; - int getBuyDate()const; + long getBuyDate()const; + int getDomainCount()const; + long getBeforeDate()const; protected: void parse(const std::string &payload); private: - std::string brandName_; - int year_; + int verifyStatus_; + long afterDate_; + bool showRefund_; std::string instanceId_; - std::string productAliasName_; std::string sourceType_; std::string certType_; - int id_; + int wildDomainCount_; long orderId_; + std::string statusCode_; + std::string brandName_; + std::string orderType_; + long year_; + bool showCancel_; + std::string productAliasName_; + long maybeIssueDate_; + long id_; std::string domain_; - int statusCode_; - int buyDate_; + long buyDate_; + int domainCount_; + long beforeDate_; }; } diff --git a/cas/include/alibabacloud/cas/model/DescribeOrderListRequest.h b/cas/include/alibabacloud/cas/model/DescribeOrderListRequest.h index 304b85606..72a16e648 100644 --- a/cas/include/alibabacloud/cas/model/DescribeOrderListRequest.h +++ b/cas/include/alibabacloud/cas/model/DescribeOrderListRequest.h @@ -30,6 +30,11 @@ namespace AlibabaCloud { class ALIBABACLOUD_CAS_EXPORT DescribeOrderListRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: DescribeOrderListRequest(); @@ -43,6 +48,8 @@ namespace AlibabaCloud void setBrandId(long brandId); int getCurrentPage()const; void setCurrentPage(int currentPage); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getKeyword()const; void setKeyword(const std::string& keyword); std::string getLang()const; @@ -55,6 +62,7 @@ namespace AlibabaCloud int showSize_; long brandId_; int currentPage_; + std::vector tag_; std::string keyword_; std::string lang_; std::string status_; diff --git a/cas/include/alibabacloud/cas/model/DescribeOrderListResult.h b/cas/include/alibabacloud/cas/model/DescribeOrderListResult.h index 6b7652e82..4e67a0d3a 100644 --- a/cas/include/alibabacloud/cas/model/DescribeOrderListResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeOrderListResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { int verifyStatus; long afterDate; + bool showRefund; std::string instanceId; std::string sourceType; std::string certType; diff --git a/cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordRequest.h b/cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordRequest.h new file mode 100644 index 000000000..de722cea6 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordRequest.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_CAS_MODEL_DESCRIBEORDERREFUNDRECORDREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERREFUNDRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeOrderRefundRecordRequest : public RpcServiceRequest + { + + public: + DescribeOrderRefundRecordRequest(); + ~DescribeOrderRefundRecordRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERREFUNDRECORDREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordResult.h b/cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordResult.h new file mode 100644 index 000000000..3326de0ed --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeOrderRefundRecordResult.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_CAS_MODEL_DESCRIBEORDERREFUNDRECORDRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERREFUNDRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeOrderRefundRecordResult : public ServiceResult + { + public: + + + DescribeOrderRefundRecordResult(); + explicit DescribeOrderRefundRecordResult(const std::string &payload); + ~DescribeOrderRefundRecordResult(); + std::string getOrderRefundList()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderRefundList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBEORDERREFUNDRECORDRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeRenewOrderRequest.h b/cas/include/alibabacloud/cas/model/DescribeRenewOrderRequest.h new file mode 100644 index 000000000..330ff2372 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeRenewOrderRequest.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_CAS_MODEL_DESCRIBERENEWORDERREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBERENEWORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeRenewOrderRequest : public RpcServiceRequest + { + + public: + DescribeRenewOrderRequest(); + ~DescribeRenewOrderRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getOrderId()const; + void setOrderId(long orderId); + + private: + std::string sourceIp_; + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBERENEWORDERREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeRenewOrderResult.h b/cas/include/alibabacloud/cas/model/DescribeRenewOrderResult.h new file mode 100644 index 000000000..41da3447d --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeRenewOrderResult.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_CAS_MODEL_DESCRIBERENEWORDERRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBERENEWORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeRenewOrderResult : public ServiceResult + { + public: + + + DescribeRenewOrderResult(); + explicit DescribeRenewOrderResult(const std::string &payload); + ~DescribeRenewOrderResult(); + long getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBERENEWORDERRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeSignatureProductStateRequest.h b/cas/include/alibabacloud/cas/model/DescribeSignatureProductStateRequest.h new file mode 100644 index 000000000..2d978bc51 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeSignatureProductStateRequest.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_CAS_MODEL_DESCRIBESIGNATUREPRODUCTSTATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBESIGNATUREPRODUCTSTATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeSignatureProductStateRequest : public RpcServiceRequest + { + + public: + DescribeSignatureProductStateRequest(); + ~DescribeSignatureProductStateRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBESIGNATUREPRODUCTSTATEREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeSignatureProductStateResult.h b/cas/include/alibabacloud/cas/model/DescribeSignatureProductStateResult.h new file mode 100644 index 000000000..78c6fb29b --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeSignatureProductStateResult.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_CAS_MODEL_DESCRIBESIGNATUREPRODUCTSTATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBESIGNATUREPRODUCTSTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeSignatureProductStateResult : public ServiceResult + { + public: + + + DescribeSignatureProductStateResult(); + explicit DescribeSignatureProductStateResult(const std::string &payload); + ~DescribeSignatureProductStateResult(); + std::string getState()const; + + protected: + void parse(const std::string &payload); + private: + std::string state_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBESIGNATUREPRODUCTSTATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/ListTagKeysRequest.h b/cas/include/alibabacloud/cas/model/ListTagKeysRequest.h new file mode 100644 index 000000000..740bf5c3f --- /dev/null +++ b/cas/include/alibabacloud/cas/model/ListTagKeysRequest.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_CAS_MODEL_LISTTAGKEYSREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTTAGKEYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT ListTagKeysRequest : public RpcServiceRequest + { + + public: + ListTagKeysRequest(); + ~ListTagKeysRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::string sourceIp_; + std::string regionId_; + int pageSize_; + int currentPage_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_LISTTAGKEYSREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/ListTagKeysResult.h b/cas/include/alibabacloud/cas/model/ListTagKeysResult.h new file mode 100644 index 000000000..29bc4f761 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/ListTagKeysResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_LISTTAGKEYSRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTTAGKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT ListTagKeysResult : public ServiceResult + { + public: + struct TagKey + { + int tagCount; + std::string tagKey; + }; + + + ListTagKeysResult(); + explicit ListTagKeysResult(const std::string &payload); + ~ListTagKeysResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getTagKeys()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector tagKeys_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_LISTTAGKEYSRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/ListTagResourcesRequest.h b/cas/include/alibabacloud/cas/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..881b95725 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/ListTagResourcesRequest.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_CAS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::vector resourceId_; + std::string sourceIp_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/ListTagResourcesResult.h b/cas/include/alibabacloud/cas/model/ListTagResourcesResult.h new file mode 100644 index 000000000..9cf98603a --- /dev/null +++ b/cas/include/alibabacloud/cas/model/ListTagResourcesResult.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_CAS_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/TagResourcesRequest.h b/cas/include/alibabacloud/cas/model/TagResourcesRequest.h new file mode 100644 index 000000000..7930f5fe4 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/TagResourcesRequest.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_CAS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT TagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getScope()const; + void setScope(const std::string& scope); + std::string getTagOwnerUid()const; + void setTagOwnerUid(const std::string& tagOwnerUid); + std::string getTagOwnerBid()const; + void setTagOwnerBid(const std::string& tagOwnerBid); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::vector resourceId_; + std::string sourceIp_; + std::string regionId_; + std::string scope_; + std::string tagOwnerUid_; + std::string tagOwnerBid_; + std::vector tag_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/TagResourcesResult.h b/cas/include/alibabacloud/cas/model/TagResourcesResult.h new file mode 100644 index 000000000..78d500f77 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/TagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/UntagResourcesRequest.h b/cas/include/alibabacloud/cas/model/UntagResourcesRequest.h new file mode 100644 index 000000000..b71670d15 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/UntagResourcesRequest.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_CAS_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + bool all_; + std::vector resourceId_; + std::string sourceIp_; + std::string regionId_; + std::vector tagKey_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/UntagResourcesResult.h b/cas/include/alibabacloud/cas/model/UntagResourcesResult.h new file mode 100644 index 000000000..e3b2dbd7f --- /dev/null +++ b/cas/include/alibabacloud/cas/model/UntagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cas/src/CasClient.cc b/cas/src/CasClient.cc index 0c8fc50e6..9d94aee4b 100644 --- a/cas/src/CasClient.cc +++ b/cas/src/CasClient.cc @@ -31,62 +31,26 @@ CasClient::CasClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cas_esign_fdd"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cas"); } CasClient::CasClient(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, "cas_esign_fdd"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cas"); } CasClient::CasClient(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, "cas_esign_fdd"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cas"); } CasClient::~CasClient() {} -CasClient::CreateSignatureOutcome CasClient::createSignature(const CreateSignatureRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSignatureOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSignatureOutcome(CreateSignatureResult(outcome.result())); - else - return CreateSignatureOutcome(outcome.error()); -} - -void CasClient::createSignatureAsync(const CreateSignatureRequest& request, const CreateSignatureAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSignature(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateSignatureOutcomeCallable CasClient::createSignatureCallable(const CreateSignatureRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSignature(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::DescribeCertificateStatusCountOutcome CasClient::describeCertificateStatusCount(const DescribeCertificateStatusCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +87,114 @@ CasClient::DescribeCertificateStatusCountOutcomeCallable CasClient::describeCert return task->get_future(); } +CasClient::DescribeSignatureProductStateOutcome CasClient::describeSignatureProductState(const DescribeSignatureProductStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSignatureProductStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSignatureProductStateOutcome(DescribeSignatureProductStateResult(outcome.result())); + else + return DescribeSignatureProductStateOutcome(outcome.error()); +} + +void CasClient::describeSignatureProductStateAsync(const DescribeSignatureProductStateRequest& request, const DescribeSignatureProductStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSignatureProductState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeSignatureProductStateOutcomeCallable CasClient::describeSignatureProductStateCallable(const DescribeSignatureProductStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSignatureProductState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeOrderRefundRecordOutcome CasClient::describeOrderRefundRecord(const DescribeOrderRefundRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOrderRefundRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOrderRefundRecordOutcome(DescribeOrderRefundRecordResult(outcome.result())); + else + return DescribeOrderRefundRecordOutcome(outcome.error()); +} + +void CasClient::describeOrderRefundRecordAsync(const DescribeOrderRefundRecordRequest& request, const DescribeOrderRefundRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOrderRefundRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeOrderRefundRecordOutcomeCallable CasClient::describeOrderRefundRecordCallable(const DescribeOrderRefundRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOrderRefundRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeOrderMaterialOutcome CasClient::describeOrderMaterial(const DescribeOrderMaterialRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOrderMaterialOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOrderMaterialOutcome(DescribeOrderMaterialResult(outcome.result())); + else + return DescribeOrderMaterialOutcome(outcome.error()); +} + +void CasClient::describeOrderMaterialAsync(const DescribeOrderMaterialRequest& request, const DescribeOrderMaterialAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOrderMaterial(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeOrderMaterialOutcomeCallable CasClient::describeOrderMaterialCallable(const DescribeOrderMaterialRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOrderMaterial(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CasClient::CreateOrderDocumentOutcome CasClient::createOrderDocument(const CreateOrderDocumentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,36 +267,72 @@ CasClient::DescribeExpectationResultOutcomeCallable CasClient::describeExpectati return task->get_future(); } -CasClient::DescribeOrderMaterialOutcome CasClient::describeOrderMaterial(const DescribeOrderMaterialRequest &request) const +CasClient::ListTagResourcesOutcome CasClient::listTagResources(const ListTagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeOrderMaterialOutcome(endpointOutcome.error()); + return ListTagResourcesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeOrderMaterialOutcome(DescribeOrderMaterialResult(outcome.result())); + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); else - return DescribeOrderMaterialOutcome(outcome.error()); + return ListTagResourcesOutcome(outcome.error()); } -void CasClient::describeOrderMaterialAsync(const DescribeOrderMaterialRequest& request, const DescribeOrderMaterialAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeOrderMaterial(request), context); + handler(this, request, listTagResources(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DescribeOrderMaterialOutcomeCallable CasClient::describeOrderMaterialCallable(const DescribeOrderMaterialRequest &request) const +CasClient::ListTagResourcesOutcomeCallable CasClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeOrderMaterial(request); + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::UntagResourcesOutcome CasClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void CasClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::UntagResourcesOutcomeCallable CasClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -303,42 +411,6 @@ CasClient::DescribeCertificateListOutcomeCallable CasClient::describeCertificate return task->get_future(); } -CasClient::DescribeCertificateBrandListOutcome CasClient::describeCertificateBrandList(const DescribeCertificateBrandListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCertificateBrandListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCertificateBrandListOutcome(DescribeCertificateBrandListResult(outcome.result())); - else - return DescribeCertificateBrandListOutcome(outcome.error()); -} - -void CasClient::describeCertificateBrandListAsync(const DescribeCertificateBrandListRequest& request, const DescribeCertificateBrandListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCertificateBrandList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DescribeCertificateBrandListOutcomeCallable CasClient::describeCertificateBrandListCallable(const DescribeCertificateBrandListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCertificateBrandList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::DescribeDomainVerifyConfigurationStatusOutcome CasClient::describeDomainVerifyConfigurationStatus(const DescribeDomainVerifyConfigurationStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +447,42 @@ CasClient::DescribeDomainVerifyConfigurationStatusOutcomeCallable CasClient::des return task->get_future(); } +CasClient::DescribeRenewOrderOutcome CasClient::describeRenewOrder(const DescribeRenewOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRenewOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRenewOrderOutcome(DescribeRenewOrderResult(outcome.result())); + else + return DescribeRenewOrderOutcome(outcome.error()); +} + +void CasClient::describeRenewOrderAsync(const DescribeRenewOrderRequest& request, const DescribeRenewOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRenewOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeRenewOrderOutcomeCallable CasClient::describeRenewOrderCallable(const DescribeRenewOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRenewOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CasClient::CreateOrderCancelOutcome CasClient::createOrderCancel(const CreateOrderCancelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,42 +519,6 @@ CasClient::CreateOrderCancelOutcomeCallable CasClient::createOrderCancelCallable return task->get_future(); } -CasClient::CreateAliDnsRecordIdOutcome CasClient::createAliDnsRecordId(const CreateAliDnsRecordIdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAliDnsRecordIdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAliDnsRecordIdOutcome(CreateAliDnsRecordIdResult(outcome.result())); - else - return CreateAliDnsRecordIdOutcome(outcome.error()); -} - -void CasClient::createAliDnsRecordIdAsync(const CreateAliDnsRecordIdRequest& request, const CreateAliDnsRecordIdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAliDnsRecordId(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateAliDnsRecordIdOutcomeCallable CasClient::createAliDnsRecordIdCallable(const CreateAliDnsRecordIdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAliDnsRecordId(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::CreateCertificateOutcome CasClient::createCertificate(const CreateCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,78 +555,6 @@ CasClient::CreateCertificateOutcomeCallable CasClient::createCertificateCallable return task->get_future(); } -CasClient::CreateWebSignatureOutcome CasClient::createWebSignature(const CreateWebSignatureRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateWebSignatureOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateWebSignatureOutcome(CreateWebSignatureResult(outcome.result())); - else - return CreateWebSignatureOutcome(outcome.error()); -} - -void CasClient::createWebSignatureAsync(const CreateWebSignatureRequest& request, const CreateWebSignatureAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createWebSignature(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateWebSignatureOutcomeCallable CasClient::createWebSignatureCallable(const CreateWebSignatureRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createWebSignature(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::CreateUnDeploymentOutcome CasClient::createUnDeployment(const CreateUnDeploymentRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateUnDeploymentOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateUnDeploymentOutcome(CreateUnDeploymentResult(outcome.result())); - else - return CreateUnDeploymentOutcome(outcome.error()); -} - -void CasClient::createUnDeploymentAsync(const CreateUnDeploymentRequest& request, const CreateUnDeploymentAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createUnDeployment(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateUnDeploymentOutcomeCallable CasClient::createUnDeploymentCallable(const CreateUnDeploymentRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createUnDeployment(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::DescribeDownloadCertificateOutcome CasClient::describeDownloadCertificate(const DescribeDownloadCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,72 +591,36 @@ CasClient::DescribeDownloadCertificateOutcomeCallable CasClient::describeDownloa return task->get_future(); } -CasClient::DescribeCertificateDetailOutcome CasClient::describeCertificateDetail(const DescribeCertificateDetailRequest &request) const +CasClient::CreateUnDeploymentOutcome CasClient::createUnDeployment(const CreateUnDeploymentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCertificateDetailOutcome(endpointOutcome.error()); + return CreateUnDeploymentOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCertificateDetailOutcome(DescribeCertificateDetailResult(outcome.result())); + return CreateUnDeploymentOutcome(CreateUnDeploymentResult(outcome.result())); else - return DescribeCertificateDetailOutcome(outcome.error()); + return CreateUnDeploymentOutcome(outcome.error()); } -void CasClient::describeCertificateDetailAsync(const DescribeCertificateDetailRequest& request, const DescribeCertificateDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createUnDeploymentAsync(const CreateUnDeploymentRequest& request, const CreateUnDeploymentAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCertificateDetail(request), context); + handler(this, request, createUnDeployment(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DescribeCertificateDetailOutcomeCallable CasClient::describeCertificateDetailCallable(const DescribeCertificateDetailRequest &request) const +CasClient::CreateUnDeploymentOutcomeCallable CasClient::createUnDeploymentCallable(const CreateUnDeploymentRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCertificateDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::CreateOrderMaterialOutcome CasClient::createOrderMaterial(const CreateOrderMaterialRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateOrderMaterialOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateOrderMaterialOutcome(CreateOrderMaterialResult(outcome.result())); - else - return CreateOrderMaterialOutcome(outcome.error()); -} - -void CasClient::createOrderMaterialAsync(const CreateOrderMaterialRequest& request, const CreateOrderMaterialAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createOrderMaterial(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateOrderMaterialOutcomeCallable CasClient::createOrderMaterialCallable(const CreateOrderMaterialRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createOrderMaterial(request); + return this->createUnDeployment(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -699,72 +663,36 @@ CasClient::DescribeSignatureStatisticsOutcomeCallable CasClient::describeSignatu return task->get_future(); } -CasClient::DescribeSignatureTradeListOutcome CasClient::describeSignatureTradeList(const DescribeSignatureTradeListRequest &request) const +CasClient::CreateOrderMaterialOutcome CasClient::createOrderMaterial(const CreateOrderMaterialRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSignatureTradeListOutcome(endpointOutcome.error()); + return CreateOrderMaterialOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSignatureTradeListOutcome(DescribeSignatureTradeListResult(outcome.result())); + return CreateOrderMaterialOutcome(CreateOrderMaterialResult(outcome.result())); else - return DescribeSignatureTradeListOutcome(outcome.error()); + return CreateOrderMaterialOutcome(outcome.error()); } -void CasClient::describeSignatureTradeListAsync(const DescribeSignatureTradeListRequest& request, const DescribeSignatureTradeListAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createOrderMaterialAsync(const CreateOrderMaterialRequest& request, const CreateOrderMaterialAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSignatureTradeList(request), context); + handler(this, request, createOrderMaterial(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DescribeSignatureTradeListOutcomeCallable CasClient::describeSignatureTradeListCallable(const DescribeSignatureTradeListRequest &request) const +CasClient::CreateOrderMaterialOutcomeCallable CasClient::createOrderMaterialCallable(const CreateOrderMaterialRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSignatureTradeList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::CreateFilingSignatureDocumentOutcome CasClient::createFilingSignatureDocument(const CreateFilingSignatureDocumentRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateFilingSignatureDocumentOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateFilingSignatureDocumentOutcome(CreateFilingSignatureDocumentResult(outcome.result())); - else - return CreateFilingSignatureDocumentOutcome(outcome.error()); -} - -void CasClient::createFilingSignatureDocumentAsync(const CreateFilingSignatureDocumentRequest& request, const CreateFilingSignatureDocumentAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createFilingSignatureDocument(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateFilingSignatureDocumentOutcomeCallable CasClient::createFilingSignatureDocumentCallable(const CreateFilingSignatureDocumentRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createFilingSignatureDocument(request); + return this->createOrderMaterial(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -807,78 +735,6 @@ CasClient::DescribeDownloadDomainVerifyConfigurationOutcomeCallable CasClient::d return task->get_future(); } -CasClient::DescribeOSSDownloadInfoOutcome CasClient::describeOSSDownloadInfo(const DescribeOSSDownloadInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeOSSDownloadInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeOSSDownloadInfoOutcome(DescribeOSSDownloadInfoResult(outcome.result())); - else - return DescribeOSSDownloadInfoOutcome(outcome.error()); -} - -void CasClient::describeOSSDownloadInfoAsync(const DescribeOSSDownloadInfoRequest& request, const DescribeOSSDownloadInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeOSSDownloadInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DescribeOSSDownloadInfoOutcomeCallable CasClient::describeOSSDownloadInfoCallable(const DescribeOSSDownloadInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeOSSDownloadInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::CreateCooperationOrderOutcome CasClient::createCooperationOrder(const CreateCooperationOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateCooperationOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateCooperationOrderOutcome(CreateCooperationOrderResult(outcome.result())); - else - return CreateCooperationOrderOutcome(outcome.error()); -} - -void CasClient::createCooperationOrderAsync(const CreateCooperationOrderRequest& request, const CreateCooperationOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createCooperationOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateCooperationOrderOutcomeCallable CasClient::createCooperationOrderCallable(const CreateCooperationOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createCooperationOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::DescribeDeploymentRegionListOutcome CasClient::describeDeploymentRegionList(const DescribeDeploymentRegionListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,114 +771,6 @@ CasClient::DescribeDeploymentRegionListOutcomeCallable CasClient::describeDeploy return task->get_future(); } -CasClient::CreateOrderAuditOutcome CasClient::createOrderAudit(const CreateOrderAuditRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateOrderAuditOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateOrderAuditOutcome(CreateOrderAuditResult(outcome.result())); - else - return CreateOrderAuditOutcome(outcome.error()); -} - -void CasClient::createOrderAuditAsync(const CreateOrderAuditRequest& request, const CreateOrderAuditAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createOrderAudit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::CreateOrderAuditOutcomeCallable CasClient::createOrderAuditCallable(const CreateOrderAuditRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createOrderAudit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::DeleteOrderOutcome CasClient::deleteOrder(const DeleteOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteOrderOutcome(DeleteOrderResult(outcome.result())); - else - return DeleteOrderOutcome(outcome.error()); -} - -void CasClient::deleteOrderAsync(const DeleteOrderRequest& request, const DeleteOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DeleteOrderOutcomeCallable CasClient::deleteOrderCallable(const DeleteOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::DescribeHelpListOutcome CasClient::describeHelpList(const DescribeHelpListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeHelpListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeHelpListOutcome(DescribeHelpListResult(outcome.result())); - else - return DescribeHelpListOutcome(outcome.error()); -} - -void CasClient::describeHelpListAsync(const DescribeHelpListRequest& request, const DescribeHelpListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeHelpList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DescribeHelpListOutcomeCallable CasClient::describeHelpListCallable(const DescribeHelpListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeHelpList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::DescribeStsAuthStatusOutcome CasClient::describeStsAuthStatus(const DescribeStsAuthStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,72 +807,36 @@ CasClient::DescribeStsAuthStatusOutcomeCallable CasClient::describeStsAuthStatus return task->get_future(); } -CasClient::DescribeDeploymentDetailOutcome CasClient::describeDeploymentDetail(const DescribeDeploymentDetailRequest &request) const +CasClient::DescribeOrderDocumentOutcome CasClient::describeOrderDocument(const DescribeOrderDocumentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDeploymentDetailOutcome(endpointOutcome.error()); + return DescribeOrderDocumentOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDeploymentDetailOutcome(DescribeDeploymentDetailResult(outcome.result())); + return DescribeOrderDocumentOutcome(DescribeOrderDocumentResult(outcome.result())); else - return DescribeDeploymentDetailOutcome(outcome.error()); + return DescribeOrderDocumentOutcome(outcome.error()); } -void CasClient::describeDeploymentDetailAsync(const DescribeDeploymentDetailRequest& request, const DescribeDeploymentDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::describeOrderDocumentAsync(const DescribeOrderDocumentRequest& request, const DescribeOrderDocumentAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDeploymentDetail(request), context); + handler(this, request, describeOrderDocument(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DescribeDeploymentDetailOutcomeCallable CasClient::describeDeploymentDetailCallable(const DescribeDeploymentDetailRequest &request) const +CasClient::DescribeOrderDocumentOutcomeCallable CasClient::describeOrderDocumentCallable(const DescribeOrderDocumentRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDeploymentDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::DescribeDomainVerifyInfoOutcome CasClient::describeDomainVerifyInfo(const DescribeDomainVerifyInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDomainVerifyInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDomainVerifyInfoOutcome(DescribeDomainVerifyInfoResult(outcome.result())); - else - return DescribeDomainVerifyInfoOutcome(outcome.error()); -} - -void CasClient::describeDomainVerifyInfoAsync(const DescribeDomainVerifyInfoRequest& request, const DescribeDomainVerifyInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDomainVerifyInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DescribeDomainVerifyInfoOutcomeCallable CasClient::describeDomainVerifyInfoCallable(const DescribeDomainVerifyInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDomainVerifyInfo(request); + return this->describeOrderDocument(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1167,42 +879,6 @@ CasClient::CreateDeploymentOutcomeCallable CasClient::createDeploymentCallable(c return task->get_future(); } -CasClient::DescribeOrderDocumentOutcome CasClient::describeOrderDocument(const DescribeOrderDocumentRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeOrderDocumentOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeOrderDocumentOutcome(DescribeOrderDocumentResult(outcome.result())); - else - return DescribeOrderDocumentOutcome(outcome.error()); -} - -void CasClient::describeOrderDocumentAsync(const DescribeOrderDocumentRequest& request, const DescribeOrderDocumentAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeOrderDocument(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DescribeOrderDocumentOutcomeCallable CasClient::describeOrderDocumentCallable(const DescribeOrderDocumentRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeOrderDocument(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::CreateDomainVerifyConfigurationStatusOutcome CasClient::createDomainVerifyConfigurationStatus(const CreateDomainVerifyConfigurationStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +915,42 @@ CasClient::CreateDomainVerifyConfigurationStatusOutcomeCallable CasClient::creat return task->get_future(); } +CasClient::DescribeOrderCountForConsoleIndexOutcome CasClient::describeOrderCountForConsoleIndex(const DescribeOrderCountForConsoleIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOrderCountForConsoleIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOrderCountForConsoleIndexOutcome(DescribeOrderCountForConsoleIndexResult(outcome.result())); + else + return DescribeOrderCountForConsoleIndexOutcome(outcome.error()); +} + +void CasClient::describeOrderCountForConsoleIndexAsync(const DescribeOrderCountForConsoleIndexRequest& request, const DescribeOrderCountForConsoleIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOrderCountForConsoleIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeOrderCountForConsoleIndexOutcomeCallable CasClient::describeOrderCountForConsoleIndexCallable(const DescribeOrderCountForConsoleIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOrderCountForConsoleIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CasClient::CreateSignatureDocumentOutcome CasClient::createSignatureDocument(const CreateSignatureDocumentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1131,690 @@ CasClient::DeleteCertificateOutcomeCallable CasClient::deleteCertificateCallable return task->get_future(); } +CasClient::DescribeLocationListOutcome CasClient::describeLocationList(const DescribeLocationListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLocationListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLocationListOutcome(DescribeLocationListResult(outcome.result())); + else + return DescribeLocationListOutcome(outcome.error()); +} + +void CasClient::describeLocationListAsync(const DescribeLocationListRequest& request, const DescribeLocationListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLocationList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeLocationListOutcomeCallable CasClient::describeLocationListCallable(const DescribeLocationListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLocationList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeSignatureCapacityOutcome CasClient::describeSignatureCapacity(const DescribeSignatureCapacityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSignatureCapacityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSignatureCapacityOutcome(DescribeSignatureCapacityResult(outcome.result())); + else + return DescribeSignatureCapacityOutcome(outcome.error()); +} + +void CasClient::describeSignatureCapacityAsync(const DescribeSignatureCapacityRequest& request, const DescribeSignatureCapacityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSignatureCapacity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeSignatureCapacityOutcomeCallable CasClient::describeSignatureCapacityCallable(const DescribeSignatureCapacityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSignatureCapacity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeSignatureTradeDetailOutcome CasClient::describeSignatureTradeDetail(const DescribeSignatureTradeDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSignatureTradeDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSignatureTradeDetailOutcome(DescribeSignatureTradeDetailResult(outcome.result())); + else + return DescribeSignatureTradeDetailOutcome(outcome.error()); +} + +void CasClient::describeSignatureTradeDetailAsync(const DescribeSignatureTradeDetailRequest& request, const DescribeSignatureTradeDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSignatureTradeDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeSignatureTradeDetailOutcomeCallable CasClient::describeSignatureTradeDetailCallable(const DescribeSignatureTradeDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSignatureTradeDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::ListTagKeysOutcome CasClient::listTagKeys(const ListTagKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagKeysOutcome(ListTagKeysResult(outcome.result())); + else + return ListTagKeysOutcome(outcome.error()); +} + +void CasClient::listTagKeysAsync(const ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::ListTagKeysOutcomeCallable CasClient::listTagKeysCallable(const ListTagKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::CreateSignatureOutcome CasClient::createSignature(const CreateSignatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSignatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSignatureOutcome(CreateSignatureResult(outcome.result())); + else + return CreateSignatureOutcome(outcome.error()); +} + +void CasClient::createSignatureAsync(const CreateSignatureRequest& request, const CreateSignatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSignature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::CreateSignatureOutcomeCallable CasClient::createSignatureCallable(const CreateSignatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSignature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeCertificateBrandListOutcome CasClient::describeCertificateBrandList(const DescribeCertificateBrandListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCertificateBrandListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCertificateBrandListOutcome(DescribeCertificateBrandListResult(outcome.result())); + else + return DescribeCertificateBrandListOutcome(outcome.error()); +} + +void CasClient::describeCertificateBrandListAsync(const DescribeCertificateBrandListRequest& request, const DescribeCertificateBrandListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCertificateBrandList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeCertificateBrandListOutcomeCallable CasClient::describeCertificateBrandListCallable(const DescribeCertificateBrandListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCertificateBrandList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::CreateAliDnsRecordIdOutcome CasClient::createAliDnsRecordId(const CreateAliDnsRecordIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAliDnsRecordIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAliDnsRecordIdOutcome(CreateAliDnsRecordIdResult(outcome.result())); + else + return CreateAliDnsRecordIdOutcome(outcome.error()); +} + +void CasClient::createAliDnsRecordIdAsync(const CreateAliDnsRecordIdRequest& request, const CreateAliDnsRecordIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAliDnsRecordId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::CreateAliDnsRecordIdOutcomeCallable CasClient::createAliDnsRecordIdCallable(const CreateAliDnsRecordIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAliDnsRecordId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::CreateWebSignatureOutcome CasClient::createWebSignature(const CreateWebSignatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWebSignatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWebSignatureOutcome(CreateWebSignatureResult(outcome.result())); + else + return CreateWebSignatureOutcome(outcome.error()); +} + +void CasClient::createWebSignatureAsync(const CreateWebSignatureRequest& request, const CreateWebSignatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWebSignature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::CreateWebSignatureOutcomeCallable CasClient::createWebSignatureCallable(const CreateWebSignatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWebSignature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeCertificateDetailOutcome CasClient::describeCertificateDetail(const DescribeCertificateDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCertificateDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCertificateDetailOutcome(DescribeCertificateDetailResult(outcome.result())); + else + return DescribeCertificateDetailOutcome(outcome.error()); +} + +void CasClient::describeCertificateDetailAsync(const DescribeCertificateDetailRequest& request, const DescribeCertificateDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCertificateDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeCertificateDetailOutcomeCallable CasClient::describeCertificateDetailCallable(const DescribeCertificateDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCertificateDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeSignatureTradeListOutcome CasClient::describeSignatureTradeList(const DescribeSignatureTradeListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSignatureTradeListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSignatureTradeListOutcome(DescribeSignatureTradeListResult(outcome.result())); + else + return DescribeSignatureTradeListOutcome(outcome.error()); +} + +void CasClient::describeSignatureTradeListAsync(const DescribeSignatureTradeListRequest& request, const DescribeSignatureTradeListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSignatureTradeList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeSignatureTradeListOutcomeCallable CasClient::describeSignatureTradeListCallable(const DescribeSignatureTradeListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSignatureTradeList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::CreateFilingSignatureDocumentOutcome CasClient::createFilingSignatureDocument(const CreateFilingSignatureDocumentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFilingSignatureDocumentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFilingSignatureDocumentOutcome(CreateFilingSignatureDocumentResult(outcome.result())); + else + return CreateFilingSignatureDocumentOutcome(outcome.error()); +} + +void CasClient::createFilingSignatureDocumentAsync(const CreateFilingSignatureDocumentRequest& request, const CreateFilingSignatureDocumentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFilingSignatureDocument(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::CreateFilingSignatureDocumentOutcomeCallable CasClient::createFilingSignatureDocumentCallable(const CreateFilingSignatureDocumentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFilingSignatureDocument(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeOSSDownloadInfoOutcome CasClient::describeOSSDownloadInfo(const DescribeOSSDownloadInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOSSDownloadInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOSSDownloadInfoOutcome(DescribeOSSDownloadInfoResult(outcome.result())); + else + return DescribeOSSDownloadInfoOutcome(outcome.error()); +} + +void CasClient::describeOSSDownloadInfoAsync(const DescribeOSSDownloadInfoRequest& request, const DescribeOSSDownloadInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOSSDownloadInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeOSSDownloadInfoOutcomeCallable CasClient::describeOSSDownloadInfoCallable(const DescribeOSSDownloadInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOSSDownloadInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::CreateCooperationOrderOutcome CasClient::createCooperationOrder(const CreateCooperationOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCooperationOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCooperationOrderOutcome(CreateCooperationOrderResult(outcome.result())); + else + return CreateCooperationOrderOutcome(outcome.error()); +} + +void CasClient::createCooperationOrderAsync(const CreateCooperationOrderRequest& request, const CreateCooperationOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCooperationOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::CreateCooperationOrderOutcomeCallable CasClient::createCooperationOrderCallable(const CreateCooperationOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCooperationOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DeleteOrderOutcome CasClient::deleteOrder(const DeleteOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOrderOutcome(DeleteOrderResult(outcome.result())); + else + return DeleteOrderOutcome(outcome.error()); +} + +void CasClient::deleteOrderAsync(const DeleteOrderRequest& request, const DeleteOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DeleteOrderOutcomeCallable CasClient::deleteOrderCallable(const DeleteOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::CreateOrderAuditOutcome CasClient::createOrderAudit(const CreateOrderAuditRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOrderAuditOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOrderAuditOutcome(CreateOrderAuditResult(outcome.result())); + else + return CreateOrderAuditOutcome(outcome.error()); +} + +void CasClient::createOrderAuditAsync(const CreateOrderAuditRequest& request, const CreateOrderAuditAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOrderAudit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::CreateOrderAuditOutcomeCallable CasClient::createOrderAuditCallable(const CreateOrderAuditRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOrderAudit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeHelpListOutcome CasClient::describeHelpList(const DescribeHelpListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHelpListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHelpListOutcome(DescribeHelpListResult(outcome.result())); + else + return DescribeHelpListOutcome(outcome.error()); +} + +void CasClient::describeHelpListAsync(const DescribeHelpListRequest& request, const DescribeHelpListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHelpList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeHelpListOutcomeCallable CasClient::describeHelpListCallable(const DescribeHelpListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHelpList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeDeploymentDetailOutcome CasClient::describeDeploymentDetail(const DescribeDeploymentDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeploymentDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeploymentDetailOutcome(DescribeDeploymentDetailResult(outcome.result())); + else + return DescribeDeploymentDetailOutcome(outcome.error()); +} + +void CasClient::describeDeploymentDetailAsync(const DescribeDeploymentDetailRequest& request, const DescribeDeploymentDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeploymentDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeDeploymentDetailOutcomeCallable CasClient::describeDeploymentDetailCallable(const DescribeDeploymentDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeploymentDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeDomainVerifyInfoOutcome CasClient::describeDomainVerifyInfo(const DescribeDomainVerifyInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainVerifyInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainVerifyInfoOutcome(DescribeDomainVerifyInfoResult(outcome.result())); + else + return DescribeDomainVerifyInfoOutcome(outcome.error()); +} + +void CasClient::describeDomainVerifyInfoAsync(const DescribeDomainVerifyInfoRequest& request, const DescribeDomainVerifyInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainVerifyInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeDomainVerifyInfoOutcomeCallable CasClient::describeDomainVerifyInfoCallable(const DescribeDomainVerifyInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainVerifyInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::TagResourcesOutcome CasClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void CasClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::TagResourcesOutcomeCallable CasClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CasClient::DescribeOrderDetailOutcome CasClient::describeOrderDetail(const DescribeOrderDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,36 +1887,36 @@ CasClient::DescribeOSSUploadInfoOutcomeCallable CasClient::describeOSSUploadInfo return task->get_future(); } -CasClient::DescribeLocationListOutcome CasClient::describeLocationList(const DescribeLocationListRequest &request) const +CasClient::CreateOrderRefundRecordOutcome CasClient::createOrderRefundRecord(const CreateOrderRefundRecordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeLocationListOutcome(endpointOutcome.error()); + return CreateOrderRefundRecordOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeLocationListOutcome(DescribeLocationListResult(outcome.result())); + return CreateOrderRefundRecordOutcome(CreateOrderRefundRecordResult(outcome.result())); else - return DescribeLocationListOutcome(outcome.error()); + return CreateOrderRefundRecordOutcome(outcome.error()); } -void CasClient::describeLocationListAsync(const DescribeLocationListRequest& request, const DescribeLocationListAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createOrderRefundRecordAsync(const CreateOrderRefundRecordRequest& request, const CreateOrderRefundRecordAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeLocationList(request), context); + handler(this, request, createOrderRefundRecord(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DescribeLocationListOutcomeCallable CasClient::describeLocationListCallable(const DescribeLocationListRequest &request) const +CasClient::CreateOrderRefundRecordOutcomeCallable CasClient::createOrderRefundRecordCallable(const CreateOrderRefundRecordRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeLocationList(request); + return this->createOrderRefundRecord(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1563,42 +1959,6 @@ CasClient::DescribeDeploymentProductOutcomeCallable CasClient::describeDeploymen return task->get_future(); } -CasClient::DescribeSignatureCapacityOutcome CasClient::describeSignatureCapacity(const DescribeSignatureCapacityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSignatureCapacityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSignatureCapacityOutcome(DescribeSignatureCapacityResult(outcome.result())); - else - return DescribeSignatureCapacityOutcome(outcome.error()); -} - -void CasClient::describeSignatureCapacityAsync(const DescribeSignatureCapacityRequest& request, const DescribeSignatureCapacityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSignatureCapacity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DescribeSignatureCapacityOutcomeCallable CasClient::describeSignatureCapacityCallable(const DescribeSignatureCapacityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSignatureCapacity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::DescribeDeploymentDomainListOutcome CasClient::describeDeploymentDomainList(const DescribeDeploymentDomainListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,42 +1995,6 @@ CasClient::DescribeDeploymentDomainListOutcomeCallable CasClient::describeDeploy return task->get_future(); } -CasClient::DescribeSignatureTradeDetailOutcome CasClient::describeSignatureTradeDetail(const DescribeSignatureTradeDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSignatureTradeDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSignatureTradeDetailOutcome(DescribeSignatureTradeDetailResult(outcome.result())); - else - return DescribeSignatureTradeDetailOutcome(outcome.error()); -} - -void CasClient::describeSignatureTradeDetailAsync(const DescribeSignatureTradeDetailRequest& request, const DescribeSignatureTradeDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSignatureTradeDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::DescribeSignatureTradeDetailOutcomeCallable CasClient::describeSignatureTradeDetailCallable(const DescribeSignatureTradeDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSignatureTradeDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CasClient::CreateCertificateNameOutcome CasClient::createCertificateName(const CreateCertificateNameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cas/src/model/CreateAliDnsRecordIdRequest.cc b/cas/src/model/CreateAliDnsRecordIdRequest.cc index 96e639829..a85eff87d 100644 --- a/cas/src/model/CreateAliDnsRecordIdRequest.cc +++ b/cas/src/model/CreateAliDnsRecordIdRequest.cc @@ -33,7 +33,7 @@ std::string CreateAliDnsRecordIdRequest::getRecordId()const void CreateAliDnsRecordIdRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string CreateAliDnsRecordIdRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string CreateAliDnsRecordIdRequest::getSourceIp()const void CreateAliDnsRecordIdRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateAliDnsRecordIdRequest::getOrderId()const @@ -55,7 +55,7 @@ long CreateAliDnsRecordIdRequest::getOrderId()const void CreateAliDnsRecordIdRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string CreateAliDnsRecordIdRequest::getLang()const @@ -66,6 +66,6 @@ std::string CreateAliDnsRecordIdRequest::getLang()const void CreateAliDnsRecordIdRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/CreateAliDnsRecordIdResult.cc b/cas/src/model/CreateAliDnsRecordIdResult.cc index 028015863..77babd8c0 100644 --- a/cas/src/model/CreateAliDnsRecordIdResult.cc +++ b/cas/src/model/CreateAliDnsRecordIdResult.cc @@ -35,10 +35,13 @@ CreateAliDnsRecordIdResult::~CreateAliDnsRecordIdResult() void CreateAliDnsRecordIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateCertificateNameRequest.cc b/cas/src/model/CreateCertificateNameRequest.cc index d4008e984..926c0f69a 100644 --- a/cas/src/model/CreateCertificateNameRequest.cc +++ b/cas/src/model/CreateCertificateNameRequest.cc @@ -33,7 +33,7 @@ std::string CreateCertificateNameRequest::getSourceIp()const void CreateCertificateNameRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateCertificateNameRequest::getCertificateId()const @@ -44,7 +44,7 @@ long CreateCertificateNameRequest::getCertificateId()const void CreateCertificateNameRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string CreateCertificateNameRequest::getName()const @@ -55,7 +55,7 @@ std::string CreateCertificateNameRequest::getName()const void CreateCertificateNameRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateCertificateNameRequest::getLang()const @@ -66,6 +66,6 @@ std::string CreateCertificateNameRequest::getLang()const void CreateCertificateNameRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/CreateCertificateNameResult.cc b/cas/src/model/CreateCertificateNameResult.cc index 3c0c5772c..4c7a06efa 100644 --- a/cas/src/model/CreateCertificateNameResult.cc +++ b/cas/src/model/CreateCertificateNameResult.cc @@ -35,10 +35,13 @@ CreateCertificateNameResult::~CreateCertificateNameResult() void CreateCertificateNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateCertificateRequest.cc b/cas/src/model/CreateCertificateRequest.cc index 37062d15a..7d33d34b3 100644 --- a/cas/src/model/CreateCertificateRequest.cc +++ b/cas/src/model/CreateCertificateRequest.cc @@ -33,7 +33,7 @@ std::string CreateCertificateRequest::getSourceIp()const void CreateCertificateRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateCertificateRequest::getName()const @@ -44,7 +44,7 @@ std::string CreateCertificateRequest::getName()const void CreateCertificateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateCertificateRequest::getCert()const @@ -55,7 +55,7 @@ std::string CreateCertificateRequest::getCert()const void CreateCertificateRequest::setCert(const std::string& cert) { cert_ = cert; - setParameter("Cert", cert); + setCoreParameter("Cert", cert); } std::string CreateCertificateRequest::getLang()const @@ -66,7 +66,7 @@ std::string CreateCertificateRequest::getLang()const void CreateCertificateRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateCertificateRequest::getKey()const @@ -77,6 +77,6 @@ std::string CreateCertificateRequest::getKey()const void CreateCertificateRequest::setKey(const std::string& key) { key_ = key; - setParameter("Key", key); + setCoreParameter("Key", key); } diff --git a/cas/src/model/CreateCertificateResult.cc b/cas/src/model/CreateCertificateResult.cc index 464b7ec05..8f1485f7f 100644 --- a/cas/src/model/CreateCertificateResult.cc +++ b/cas/src/model/CreateCertificateResult.cc @@ -35,10 +35,13 @@ CreateCertificateResult::~CreateCertificateResult() void CreateCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateCooperationOrderRequest.cc b/cas/src/model/CreateCooperationOrderRequest.cc index 88cd7de0b..4fb927da5 100644 --- a/cas/src/model/CreateCooperationOrderRequest.cc +++ b/cas/src/model/CreateCooperationOrderRequest.cc @@ -33,7 +33,7 @@ std::string CreateCooperationOrderRequest::getProductCode()const void CreateCooperationOrderRequest::setProductCode(const std::string& productCode) { productCode_ = productCode; - setParameter("ProductCode", productCode); + setCoreParameter("ProductCode", productCode); } std::string CreateCooperationOrderRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string CreateCooperationOrderRequest::getSourceIp()const void CreateCooperationOrderRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateCooperationOrderRequest::getDomain()const @@ -55,7 +55,7 @@ std::string CreateCooperationOrderRequest::getDomain()const void CreateCooperationOrderRequest::setDomain(const std::string& domain) { domain_ = domain; - setParameter("Domain", domain); + setCoreParameter("Domain", domain); } std::string CreateCooperationOrderRequest::getFrom()const @@ -66,7 +66,7 @@ std::string CreateCooperationOrderRequest::getFrom()const void CreateCooperationOrderRequest::setFrom(const std::string& from) { from_ = from; - setParameter("From", from); + setCoreParameter("From", from); } std::string CreateCooperationOrderRequest::getLang()const @@ -77,6 +77,6 @@ std::string CreateCooperationOrderRequest::getLang()const void CreateCooperationOrderRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/CreateCooperationOrderResult.cc b/cas/src/model/CreateCooperationOrderResult.cc index 5ba8078f1..659137bfa 100644 --- a/cas/src/model/CreateCooperationOrderResult.cc +++ b/cas/src/model/CreateCooperationOrderResult.cc @@ -35,10 +35,13 @@ CreateCooperationOrderResult::~CreateCooperationOrderResult() void CreateCooperationOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); diff --git a/cas/src/model/CreateDeploymentRequest.cc b/cas/src/model/CreateDeploymentRequest.cc index 7982cdf3e..78f2a8f60 100644 --- a/cas/src/model/CreateDeploymentRequest.cc +++ b/cas/src/model/CreateDeploymentRequest.cc @@ -33,7 +33,7 @@ std::string CreateDeploymentRequest::getSourceIp()const void CreateDeploymentRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateDeploymentRequest::getCertificateId()const @@ -44,7 +44,7 @@ long CreateDeploymentRequest::getCertificateId()const void CreateDeploymentRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string CreateDeploymentRequest::getDomain()const @@ -55,7 +55,7 @@ std::string CreateDeploymentRequest::getDomain()const void CreateDeploymentRequest::setDomain(const std::string& domain) { domain_ = domain; - setParameter("Domain", domain); + setCoreParameter("Domain", domain); } std::string CreateDeploymentRequest::getCloudProduct()const @@ -66,7 +66,7 @@ std::string CreateDeploymentRequest::getCloudProduct()const void CreateDeploymentRequest::setCloudProduct(const std::string& cloudProduct) { cloudProduct_ = cloudProduct; - setParameter("CloudProduct", cloudProduct); + setCoreParameter("CloudProduct", cloudProduct); } std::string CreateDeploymentRequest::getLang()const @@ -77,7 +77,7 @@ std::string CreateDeploymentRequest::getLang()const void CreateDeploymentRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateDeploymentRequest::getRegion()const @@ -88,6 +88,6 @@ std::string CreateDeploymentRequest::getRegion()const void CreateDeploymentRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } diff --git a/cas/src/model/CreateDeploymentResult.cc b/cas/src/model/CreateDeploymentResult.cc index c64dc6da9..3f09976a5 100644 --- a/cas/src/model/CreateDeploymentResult.cc +++ b/cas/src/model/CreateDeploymentResult.cc @@ -35,10 +35,13 @@ CreateDeploymentResult::~CreateDeploymentResult() void CreateDeploymentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateDomainVerifyConfigurationStatusRequest.cc b/cas/src/model/CreateDomainVerifyConfigurationStatusRequest.cc index c660c793f..fce806425 100644 --- a/cas/src/model/CreateDomainVerifyConfigurationStatusRequest.cc +++ b/cas/src/model/CreateDomainVerifyConfigurationStatusRequest.cc @@ -33,7 +33,7 @@ std::string CreateDomainVerifyConfigurationStatusRequest::getSourceIp()const void CreateDomainVerifyConfigurationStatusRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateDomainVerifyConfigurationStatusRequest::getOrderId()const @@ -44,7 +44,7 @@ long CreateDomainVerifyConfigurationStatusRequest::getOrderId()const void CreateDomainVerifyConfigurationStatusRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string CreateDomainVerifyConfigurationStatusRequest::getLang()const @@ -55,7 +55,7 @@ std::string CreateDomainVerifyConfigurationStatusRequest::getLang()const void CreateDomainVerifyConfigurationStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateDomainVerifyConfigurationStatusRequest::getType()const @@ -66,6 +66,6 @@ std::string CreateDomainVerifyConfigurationStatusRequest::getType()const void CreateDomainVerifyConfigurationStatusRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } diff --git a/cas/src/model/CreateDomainVerifyConfigurationStatusResult.cc b/cas/src/model/CreateDomainVerifyConfigurationStatusResult.cc index 27a315670..29651c6d4 100644 --- a/cas/src/model/CreateDomainVerifyConfigurationStatusResult.cc +++ b/cas/src/model/CreateDomainVerifyConfigurationStatusResult.cc @@ -35,10 +35,13 @@ CreateDomainVerifyConfigurationStatusResult::~CreateDomainVerifyConfigurationSta void CreateDomainVerifyConfigurationStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateFilingSignatureDocumentRequest.cc b/cas/src/model/CreateFilingSignatureDocumentRequest.cc index 722e097e3..dbb60e605 100644 --- a/cas/src/model/CreateFilingSignatureDocumentRequest.cc +++ b/cas/src/model/CreateFilingSignatureDocumentRequest.cc @@ -33,7 +33,7 @@ std::string CreateFilingSignatureDocumentRequest::getSourceIp()const void CreateFilingSignatureDocumentRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateFilingSignatureDocumentRequest::getDocId()const @@ -44,7 +44,7 @@ std::string CreateFilingSignatureDocumentRequest::getDocId()const void CreateFilingSignatureDocumentRequest::setDocId(const std::string& docId) { docId_ = docId; - setParameter("DocId", docId); + setCoreParameter("DocId", docId); } std::string CreateFilingSignatureDocumentRequest::getLang()const @@ -55,6 +55,6 @@ std::string CreateFilingSignatureDocumentRequest::getLang()const void CreateFilingSignatureDocumentRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/CreateFilingSignatureDocumentResult.cc b/cas/src/model/CreateFilingSignatureDocumentResult.cc index afbabaaa1..fbe65c761 100644 --- a/cas/src/model/CreateFilingSignatureDocumentResult.cc +++ b/cas/src/model/CreateFilingSignatureDocumentResult.cc @@ -35,10 +35,13 @@ CreateFilingSignatureDocumentResult::~CreateFilingSignatureDocumentResult() void CreateFilingSignatureDocumentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateOrderAuditRequest.cc b/cas/src/model/CreateOrderAuditRequest.cc index a41fa0de8..b0bbac57c 100644 --- a/cas/src/model/CreateOrderAuditRequest.cc +++ b/cas/src/model/CreateOrderAuditRequest.cc @@ -33,7 +33,7 @@ std::string CreateOrderAuditRequest::getSourceIp()const void CreateOrderAuditRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateOrderAuditRequest::getOrderId()const @@ -44,7 +44,7 @@ long CreateOrderAuditRequest::getOrderId()const void CreateOrderAuditRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string CreateOrderAuditRequest::getLang()const @@ -55,7 +55,7 @@ std::string CreateOrderAuditRequest::getLang()const void CreateOrderAuditRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateOrderAuditRequest::getType()const @@ -66,6 +66,6 @@ std::string CreateOrderAuditRequest::getType()const void CreateOrderAuditRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } diff --git a/cas/src/model/CreateOrderAuditResult.cc b/cas/src/model/CreateOrderAuditResult.cc index af515086d..41622137d 100644 --- a/cas/src/model/CreateOrderAuditResult.cc +++ b/cas/src/model/CreateOrderAuditResult.cc @@ -35,10 +35,13 @@ CreateOrderAuditResult::~CreateOrderAuditResult() void CreateOrderAuditResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Type"].isNull()) type_ = value["Type"].asString(); diff --git a/cas/src/model/CreateOrderCancelRequest.cc b/cas/src/model/CreateOrderCancelRequest.cc index 13283d37c..7ee253d88 100644 --- a/cas/src/model/CreateOrderCancelRequest.cc +++ b/cas/src/model/CreateOrderCancelRequest.cc @@ -33,7 +33,7 @@ std::string CreateOrderCancelRequest::getSourceIp()const void CreateOrderCancelRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateOrderCancelRequest::getOrderId()const @@ -44,7 +44,7 @@ long CreateOrderCancelRequest::getOrderId()const void CreateOrderCancelRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string CreateOrderCancelRequest::getLang()const @@ -55,6 +55,6 @@ std::string CreateOrderCancelRequest::getLang()const void CreateOrderCancelRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/CreateOrderCancelResult.cc b/cas/src/model/CreateOrderCancelResult.cc index 531527db2..d63edc73b 100644 --- a/cas/src/model/CreateOrderCancelResult.cc +++ b/cas/src/model/CreateOrderCancelResult.cc @@ -35,10 +35,13 @@ CreateOrderCancelResult::~CreateOrderCancelResult() void CreateOrderCancelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateOrderDocumentRequest.cc b/cas/src/model/CreateOrderDocumentRequest.cc index 742eebae8..bc978f04c 100644 --- a/cas/src/model/CreateOrderDocumentRequest.cc +++ b/cas/src/model/CreateOrderDocumentRequest.cc @@ -33,7 +33,7 @@ std::string CreateOrderDocumentRequest::getOssKey()const void CreateOrderDocumentRequest::setOssKey(const std::string& ossKey) { ossKey_ = ossKey; - setParameter("OssKey", ossKey); + setCoreParameter("OssKey", ossKey); } std::string CreateOrderDocumentRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string CreateOrderDocumentRequest::getSourceIp()const void CreateOrderDocumentRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateOrderDocumentRequest::getOrderId()const @@ -55,7 +55,7 @@ long CreateOrderDocumentRequest::getOrderId()const void CreateOrderDocumentRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } int CreateOrderDocumentRequest::getDocumentType()const @@ -66,7 +66,7 @@ int CreateOrderDocumentRequest::getDocumentType()const void CreateOrderDocumentRequest::setDocumentType(int documentType) { documentType_ = documentType; - setParameter("DocumentType", std::to_string(documentType)); + setCoreParameter("DocumentType", std::to_string(documentType)); } std::string CreateOrderDocumentRequest::getLang()const @@ -77,7 +77,7 @@ std::string CreateOrderDocumentRequest::getLang()const void CreateOrderDocumentRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateOrderDocumentRequest::getExtName()const @@ -88,6 +88,6 @@ std::string CreateOrderDocumentRequest::getExtName()const void CreateOrderDocumentRequest::setExtName(const std::string& extName) { extName_ = extName; - setParameter("ExtName", extName); + setCoreParameter("ExtName", extName); } diff --git a/cas/src/model/CreateOrderDocumentResult.cc b/cas/src/model/CreateOrderDocumentResult.cc index 5b940f86d..5c5cf716a 100644 --- a/cas/src/model/CreateOrderDocumentResult.cc +++ b/cas/src/model/CreateOrderDocumentResult.cc @@ -35,10 +35,13 @@ CreateOrderDocumentResult::~CreateOrderDocumentResult() void CreateOrderDocumentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateOrderMaterialRequest.cc b/cas/src/model/CreateOrderMaterialRequest.cc index bde5910f3..980b44940 100644 --- a/cas/src/model/CreateOrderMaterialRequest.cc +++ b/cas/src/model/CreateOrderMaterialRequest.cc @@ -33,7 +33,7 @@ std::string CreateOrderMaterialRequest::getLeaderName()const void CreateOrderMaterialRequest::setLeaderName(const std::string& leaderName) { leaderName_ = leaderName; - setParameter("LeaderName", leaderName); + setCoreParameter("LeaderName", leaderName); } std::string CreateOrderMaterialRequest::getCity()const @@ -44,7 +44,7 @@ std::string CreateOrderMaterialRequest::getCity()const void CreateOrderMaterialRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); + setCoreParameter("City", city); } std::string CreateOrderMaterialRequest::getCountryCode()const @@ -55,7 +55,7 @@ std::string CreateOrderMaterialRequest::getCountryCode()const void CreateOrderMaterialRequest::setCountryCode(const std::string& countryCode) { countryCode_ = countryCode; - setParameter("CountryCode", countryCode); + setCoreParameter("CountryCode", countryCode); } std::string CreateOrderMaterialRequest::getLeaderEmail()const @@ -66,7 +66,7 @@ std::string CreateOrderMaterialRequest::getLeaderEmail()const void CreateOrderMaterialRequest::setLeaderEmail(const std::string& leaderEmail) { leaderEmail_ = leaderEmail; - setParameter("LeaderEmail", leaderEmail); + setCoreParameter("LeaderEmail", leaderEmail); } std::string CreateOrderMaterialRequest::getCompanyAddress()const @@ -77,7 +77,7 @@ std::string CreateOrderMaterialRequest::getCompanyAddress()const void CreateOrderMaterialRequest::setCompanyAddress(const std::string& companyAddress) { companyAddress_ = companyAddress; - setParameter("CompanyAddress", companyAddress); + setCoreParameter("CompanyAddress", companyAddress); } std::string CreateOrderMaterialRequest::getCompanyCode()const @@ -88,7 +88,7 @@ std::string CreateOrderMaterialRequest::getCompanyCode()const void CreateOrderMaterialRequest::setCompanyCode(const std::string& companyCode) { companyCode_ = companyCode; - setParameter("CompanyCode", companyCode); + setCoreParameter("CompanyCode", companyCode); } std::string CreateOrderMaterialRequest::getPersonEmail()const @@ -99,7 +99,7 @@ std::string CreateOrderMaterialRequest::getPersonEmail()const void CreateOrderMaterialRequest::setPersonEmail(const std::string& personEmail) { personEmail_ = personEmail; - setParameter("PersonEmail", personEmail); + setCoreParameter("PersonEmail", personEmail); } std::string CreateOrderMaterialRequest::getProvince()const @@ -110,7 +110,7 @@ std::string CreateOrderMaterialRequest::getProvince()const void CreateOrderMaterialRequest::setProvince(const std::string& province) { province_ = province; - setParameter("Province", province); + setCoreParameter("Province", province); } int CreateOrderMaterialRequest::getDomainAuthType()const @@ -121,7 +121,7 @@ int CreateOrderMaterialRequest::getDomainAuthType()const void CreateOrderMaterialRequest::setDomainAuthType(int domainAuthType) { domainAuthType_ = domainAuthType; - setParameter("DomainAuthType", std::to_string(domainAuthType)); + setCoreParameter("DomainAuthType", std::to_string(domainAuthType)); } std::string CreateOrderMaterialRequest::getLeaderPhone()const @@ -132,7 +132,7 @@ std::string CreateOrderMaterialRequest::getLeaderPhone()const void CreateOrderMaterialRequest::setLeaderPhone(const std::string& leaderPhone) { leaderPhone_ = leaderPhone; - setParameter("LeaderPhone", leaderPhone); + setCoreParameter("LeaderPhone", leaderPhone); } std::string CreateOrderMaterialRequest::getSourceIp()const @@ -143,7 +143,7 @@ std::string CreateOrderMaterialRequest::getSourceIp()const void CreateOrderMaterialRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateOrderMaterialRequest::getCsrContent()const @@ -154,7 +154,7 @@ std::string CreateOrderMaterialRequest::getCsrContent()const void CreateOrderMaterialRequest::setCsrContent(const std::string& csrContent) { csrContent_ = csrContent; - setParameter("CsrContent", csrContent); + setCoreParameter("CsrContent", csrContent); } std::string CreateOrderMaterialRequest::getLang()const @@ -165,7 +165,7 @@ std::string CreateOrderMaterialRequest::getLang()const void CreateOrderMaterialRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateOrderMaterialRequest::getPersonName()const @@ -176,7 +176,7 @@ std::string CreateOrderMaterialRequest::getPersonName()const void CreateOrderMaterialRequest::setPersonName(const std::string& personName) { personName_ = personName; - setParameter("PersonName", personName); + setCoreParameter("PersonName", personName); } std::string CreateOrderMaterialRequest::getPersonIdCardNumber()const @@ -187,7 +187,7 @@ std::string CreateOrderMaterialRequest::getPersonIdCardNumber()const void CreateOrderMaterialRequest::setPersonIdCardNumber(const std::string& personIdCardNumber) { personIdCardNumber_ = personIdCardNumber; - setParameter("PersonIdCardNumber", personIdCardNumber); + setCoreParameter("PersonIdCardNumber", personIdCardNumber); } long CreateOrderMaterialRequest::getOrderId()const @@ -198,7 +198,7 @@ long CreateOrderMaterialRequest::getOrderId()const void CreateOrderMaterialRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string CreateOrderMaterialRequest::getLeaderTitle()const @@ -209,7 +209,7 @@ std::string CreateOrderMaterialRequest::getLeaderTitle()const void CreateOrderMaterialRequest::setLeaderTitle(const std::string& leaderTitle) { leaderTitle_ = leaderTitle; - setParameter("LeaderTitle", leaderTitle); + setCoreParameter("LeaderTitle", leaderTitle); } std::string CreateOrderMaterialRequest::getPersonTitle()const @@ -220,7 +220,7 @@ std::string CreateOrderMaterialRequest::getPersonTitle()const void CreateOrderMaterialRequest::setPersonTitle(const std::string& personTitle) { personTitle_ = personTitle; - setParameter("PersonTitle", personTitle); + setCoreParameter("PersonTitle", personTitle); } std::string CreateOrderMaterialRequest::getPostCode()const @@ -231,7 +231,7 @@ std::string CreateOrderMaterialRequest::getPostCode()const void CreateOrderMaterialRequest::setPostCode(const std::string& postCode) { postCode_ = postCode; - setParameter("PostCode", postCode); + setCoreParameter("PostCode", postCode); } int CreateOrderMaterialRequest::getCreateCsr()const @@ -242,7 +242,7 @@ int CreateOrderMaterialRequest::getCreateCsr()const void CreateOrderMaterialRequest::setCreateCsr(int createCsr) { createCsr_ = createCsr; - setParameter("CreateCsr", std::to_string(createCsr)); + setCoreParameter("CreateCsr", std::to_string(createCsr)); } std::string CreateOrderMaterialRequest::getPersonPhone()const @@ -253,7 +253,7 @@ std::string CreateOrderMaterialRequest::getPersonPhone()const void CreateOrderMaterialRequest::setPersonPhone(const std::string& personPhone) { personPhone_ = personPhone; - setParameter("PersonPhone", personPhone); + setCoreParameter("PersonPhone", personPhone); } std::string CreateOrderMaterialRequest::getCompanyName()const @@ -264,7 +264,7 @@ std::string CreateOrderMaterialRequest::getCompanyName()const void CreateOrderMaterialRequest::setCompanyName(const std::string& companyName) { companyName_ = companyName; - setParameter("CompanyName", companyName); + setCoreParameter("CompanyName", companyName); } std::string CreateOrderMaterialRequest::getCompanyPhone()const @@ -275,7 +275,7 @@ std::string CreateOrderMaterialRequest::getCompanyPhone()const void CreateOrderMaterialRequest::setCompanyPhone(const std::string& companyPhone) { companyPhone_ = companyPhone; - setParameter("CompanyPhone", companyPhone); + setCoreParameter("CompanyPhone", companyPhone); } int CreateOrderMaterialRequest::getCompanyType()const @@ -286,7 +286,7 @@ int CreateOrderMaterialRequest::getCompanyType()const void CreateOrderMaterialRequest::setCompanyType(int companyType) { companyType_ = companyType; - setParameter("CompanyType", std::to_string(companyType)); + setCoreParameter("CompanyType", std::to_string(companyType)); } std::string CreateOrderMaterialRequest::getDomain()const @@ -297,7 +297,7 @@ std::string CreateOrderMaterialRequest::getDomain()const void CreateOrderMaterialRequest::setDomain(const std::string& domain) { domain_ = domain; - setParameter("Domain", domain); + setCoreParameter("Domain", domain); } std::string CreateOrderMaterialRequest::getPersonDepartment()const @@ -308,6 +308,6 @@ std::string CreateOrderMaterialRequest::getPersonDepartment()const void CreateOrderMaterialRequest::setPersonDepartment(const std::string& personDepartment) { personDepartment_ = personDepartment; - setParameter("PersonDepartment", personDepartment); + setCoreParameter("PersonDepartment", personDepartment); } diff --git a/cas/src/model/CreateOrderMaterialResult.cc b/cas/src/model/CreateOrderMaterialResult.cc index cc2144a33..bf5806ec3 100644 --- a/cas/src/model/CreateOrderMaterialResult.cc +++ b/cas/src/model/CreateOrderMaterialResult.cc @@ -35,10 +35,13 @@ CreateOrderMaterialResult::~CreateOrderMaterialResult() void CreateOrderMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateOrderRefundRecordRequest.cc b/cas/src/model/CreateOrderRefundRecordRequest.cc new file mode 100644 index 000000000..04c86ca3d --- /dev/null +++ b/cas/src/model/CreateOrderRefundRecordRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateOrderRefundRecordRequest; + +CreateOrderRefundRecordRequest::CreateOrderRefundRecordRequest() : + RpcServiceRequest("cas", "2018-08-13", "CreateOrderRefundRecord") +{} + +CreateOrderRefundRecordRequest::~CreateOrderRefundRecordRequest() +{} + +std::string CreateOrderRefundRecordRequest::getReason()const +{ + return reason_; +} + +void CreateOrderRefundRecordRequest::setReason(const std::string& reason) +{ + reason_ = reason; + setCoreParameter("Reason", reason); +} + +std::string CreateOrderRefundRecordRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateOrderRefundRecordRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long CreateOrderRefundRecordRequest::getOrderId()const +{ + return orderId_; +} + +void CreateOrderRefundRecordRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setCoreParameter("OrderId", std::to_string(orderId)); +} + diff --git a/cas/src/model/CreateOrderRefundRecordResult.cc b/cas/src/model/CreateOrderRefundRecordResult.cc new file mode 100644 index 000000000..6310e784f --- /dev/null +++ b/cas/src/model/CreateOrderRefundRecordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +CreateOrderRefundRecordResult::CreateOrderRefundRecordResult() : + ServiceResult() +{} + +CreateOrderRefundRecordResult::CreateOrderRefundRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOrderRefundRecordResult::~CreateOrderRefundRecordResult() +{} + +void CreateOrderRefundRecordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cas/src/model/CreateOrderRevokeRequest.cc b/cas/src/model/CreateOrderRevokeRequest.cc index 4b63a1c7d..65cf73804 100644 --- a/cas/src/model/CreateOrderRevokeRequest.cc +++ b/cas/src/model/CreateOrderRevokeRequest.cc @@ -33,7 +33,7 @@ std::string CreateOrderRevokeRequest::getReason()const void CreateOrderRevokeRequest::setReason(const std::string& reason) { reason_ = reason; - setParameter("Reason", reason); + setCoreParameter("Reason", reason); } std::string CreateOrderRevokeRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string CreateOrderRevokeRequest::getSourceIp()const void CreateOrderRevokeRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateOrderRevokeRequest::getOrderId()const @@ -55,7 +55,7 @@ long CreateOrderRevokeRequest::getOrderId()const void CreateOrderRevokeRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string CreateOrderRevokeRequest::getLang()const @@ -66,6 +66,6 @@ std::string CreateOrderRevokeRequest::getLang()const void CreateOrderRevokeRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/CreateOrderRevokeResult.cc b/cas/src/model/CreateOrderRevokeResult.cc index a34b0e757..0c63114d8 100644 --- a/cas/src/model/CreateOrderRevokeResult.cc +++ b/cas/src/model/CreateOrderRevokeResult.cc @@ -35,10 +35,13 @@ CreateOrderRevokeResult::~CreateOrderRevokeResult() void CreateOrderRevokeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateSignatureDocumentRequest.cc b/cas/src/model/CreateSignatureDocumentRequest.cc index 79be9ab1d..6b53459ed 100644 --- a/cas/src/model/CreateSignatureDocumentRequest.cc +++ b/cas/src/model/CreateSignatureDocumentRequest.cc @@ -33,7 +33,7 @@ std::string CreateSignatureDocumentRequest::getSourceIp()const void CreateSignatureDocumentRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateSignatureDocumentRequest::getDocContent()const @@ -44,7 +44,7 @@ std::string CreateSignatureDocumentRequest::getDocContent()const void CreateSignatureDocumentRequest::setDocContent(const std::string& docContent) { docContent_ = docContent; - setParameter("DocContent", docContent); + setCoreParameter("DocContent", docContent); } std::string CreateSignatureDocumentRequest::getLang()const @@ -55,7 +55,7 @@ std::string CreateSignatureDocumentRequest::getLang()const void CreateSignatureDocumentRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateSignatureDocumentRequest::getDocTitle()const @@ -66,6 +66,6 @@ std::string CreateSignatureDocumentRequest::getDocTitle()const void CreateSignatureDocumentRequest::setDocTitle(const std::string& docTitle) { docTitle_ = docTitle; - setParameter("DocTitle", docTitle); + setCoreParameter("DocTitle", docTitle); } diff --git a/cas/src/model/CreateSignatureDocumentResult.cc b/cas/src/model/CreateSignatureDocumentResult.cc index 6d0544147..5cf56a827 100644 --- a/cas/src/model/CreateSignatureDocumentResult.cc +++ b/cas/src/model/CreateSignatureDocumentResult.cc @@ -35,11 +35,21 @@ CreateSignatureDocumentResult::~CreateSignatureDocumentResult() void CreateSignatureDocumentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); + if(!value["DocId"].isNull()) + docId_ = value["DocId"].asString(); } +std::string CreateSignatureDocumentResult::getDocId()const +{ + return docId_; +} + diff --git a/cas/src/model/CreateSignaturePeopleCertificateRequest.cc b/cas/src/model/CreateSignaturePeopleCertificateRequest.cc index e43dcbb69..879d57a60 100644 --- a/cas/src/model/CreateSignaturePeopleCertificateRequest.cc +++ b/cas/src/model/CreateSignaturePeopleCertificateRequest.cc @@ -33,7 +33,7 @@ std::string CreateSignaturePeopleCertificateRequest::getPeopleName()const void CreateSignaturePeopleCertificateRequest::setPeopleName(const std::string& peopleName) { peopleName_ = peopleName; - setParameter("PeopleName", peopleName); + setCoreParameter("PeopleName", peopleName); } std::string CreateSignaturePeopleCertificateRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string CreateSignaturePeopleCertificateRequest::getSourceIp()const void CreateSignaturePeopleCertificateRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateSignaturePeopleCertificateRequest::getMobile()const @@ -55,7 +55,7 @@ std::string CreateSignaturePeopleCertificateRequest::getMobile()const void CreateSignaturePeopleCertificateRequest::setMobile(const std::string& mobile) { mobile_ = mobile; - setParameter("Mobile", mobile); + setCoreParameter("Mobile", mobile); } std::string CreateSignaturePeopleCertificateRequest::getIdentityNumber()const @@ -66,7 +66,7 @@ std::string CreateSignaturePeopleCertificateRequest::getIdentityNumber()const void CreateSignaturePeopleCertificateRequest::setIdentityNumber(const std::string& identityNumber) { identityNumber_ = identityNumber; - setParameter("IdentityNumber", identityNumber); + setCoreParameter("IdentityNumber", identityNumber); } std::string CreateSignaturePeopleCertificateRequest::getLang()const @@ -77,7 +77,7 @@ std::string CreateSignaturePeopleCertificateRequest::getLang()const void CreateSignaturePeopleCertificateRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateSignaturePeopleCertificateRequest::getEmail()const @@ -88,6 +88,6 @@ std::string CreateSignaturePeopleCertificateRequest::getEmail()const void CreateSignaturePeopleCertificateRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } diff --git a/cas/src/model/CreateSignaturePeopleCertificateResult.cc b/cas/src/model/CreateSignaturePeopleCertificateResult.cc index 86db51f4b..be91b1830 100644 --- a/cas/src/model/CreateSignaturePeopleCertificateResult.cc +++ b/cas/src/model/CreateSignaturePeopleCertificateResult.cc @@ -35,11 +35,21 @@ CreateSignaturePeopleCertificateResult::~CreateSignaturePeopleCertificateResult( void CreateSignaturePeopleCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); + if(!value["PeopleId"].isNull()) + peopleId_ = value["PeopleId"].asString(); } +std::string CreateSignaturePeopleCertificateResult::getPeopleId()const +{ + return peopleId_; +} + diff --git a/cas/src/model/CreateSignatureRequest.cc b/cas/src/model/CreateSignatureRequest.cc index eeef83358..d15079e3c 100644 --- a/cas/src/model/CreateSignatureRequest.cc +++ b/cas/src/model/CreateSignatureRequest.cc @@ -25,6 +25,17 @@ CreateSignatureRequest::CreateSignatureRequest() : CreateSignatureRequest::~CreateSignatureRequest() {} +std::string CreateSignatureRequest::getIconId()const +{ + return iconId_; +} + +void CreateSignatureRequest::setIconId(const std::string& iconId) +{ + iconId_ = iconId; + setCoreParameter("IconId", iconId); +} + int CreateSignatureRequest::getQuantity()const { return quantity_; @@ -33,7 +44,7 @@ int CreateSignatureRequest::getQuantity()const void CreateSignatureRequest::setQuantity(int quantity) { quantity_ = quantity; - setParameter("Quantity", std::to_string(quantity)); + setCoreParameter("Quantity", std::to_string(quantity)); } std::string CreateSignatureRequest::getHandSignImg()const @@ -44,7 +55,7 @@ std::string CreateSignatureRequest::getHandSignImg()const void CreateSignatureRequest::setHandSignImg(const std::string& handSignImg) { handSignImg_ = handSignImg; - setParameter("HandSignImg", handSignImg); + setCoreParameter("HandSignImg", handSignImg); } std::string CreateSignatureRequest::getDocId()const @@ -55,7 +66,7 @@ std::string CreateSignatureRequest::getDocId()const void CreateSignatureRequest::setDocId(const std::string& docId) { docId_ = docId; - setParameter("DocId", docId); + setCoreParameter("DocId", docId); } std::string CreateSignatureRequest::getCustomApi()const @@ -66,7 +77,7 @@ std::string CreateSignatureRequest::getCustomApi()const void CreateSignatureRequest::setCustomApi(const std::string& customApi) { customApi_ = customApi; - setParameter("CustomApi", customApi); + setCoreParameter("CustomApi", customApi); } int CreateSignatureRequest::getPositionPage()const @@ -77,7 +88,7 @@ int CreateSignatureRequest::getPositionPage()const void CreateSignatureRequest::setPositionPage(int positionPage) { positionPage_ = positionPage; - setParameter("PositionPage", std::to_string(positionPage)); + setCoreParameter("PositionPage", std::to_string(positionPage)); } std::string CreateSignatureRequest::getDocTitle()const @@ -88,7 +99,7 @@ std::string CreateSignatureRequest::getDocTitle()const void CreateSignatureRequest::setDocTitle(const std::string& docTitle) { docTitle_ = docTitle; - setParameter("DocTitle", docTitle); + setCoreParameter("DocTitle", docTitle); } int CreateSignatureRequest::getPositionX()const @@ -99,7 +110,7 @@ int CreateSignatureRequest::getPositionX()const void CreateSignatureRequest::setPositionX(int positionX) { positionX_ = positionX; - setParameter("PositionX", std::to_string(positionX)); + setCoreParameter("PositionX", std::to_string(positionX)); } int CreateSignatureRequest::getPositionY()const @@ -110,7 +121,7 @@ int CreateSignatureRequest::getPositionY()const void CreateSignatureRequest::setPositionY(int positionY) { positionY_ = positionY; - setParameter("PositionY", std::to_string(positionY)); + setCoreParameter("PositionY", std::to_string(positionY)); } std::string CreateSignatureRequest::getSourceIp()const @@ -121,7 +132,7 @@ std::string CreateSignatureRequest::getSourceIp()const void CreateSignatureRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateSignatureRequest::getPeopleId()const @@ -132,7 +143,7 @@ std::string CreateSignatureRequest::getPeopleId()const void CreateSignatureRequest::setPeopleId(const std::string& peopleId) { peopleId_ = peopleId; - setParameter("PeopleId", peopleId); + setCoreParameter("PeopleId", peopleId); } int CreateSignatureRequest::getPositionType()const @@ -143,7 +154,7 @@ int CreateSignatureRequest::getPositionType()const void CreateSignatureRequest::setPositionType(int positionType) { positionType_ = positionType; - setParameter("PositionType", std::to_string(positionType)); + setCoreParameter("PositionType", std::to_string(positionType)); } std::string CreateSignatureRequest::getSignKeyword()const @@ -154,7 +165,7 @@ std::string CreateSignatureRequest::getSignKeyword()const void CreateSignatureRequest::setSignKeyword(const std::string& signKeyword) { signKeyword_ = signKeyword; - setParameter("SignKeyword", signKeyword); + setCoreParameter("SignKeyword", signKeyword); } std::string CreateSignatureRequest::getNotifyUrl()const @@ -165,7 +176,7 @@ std::string CreateSignatureRequest::getNotifyUrl()const void CreateSignatureRequest::setNotifyUrl(const std::string& notifyUrl) { notifyUrl_ = notifyUrl; - setParameter("NotifyUrl", notifyUrl); + setCoreParameter("NotifyUrl", notifyUrl); } int CreateSignatureRequest::getValidity()const @@ -176,7 +187,7 @@ int CreateSignatureRequest::getValidity()const void CreateSignatureRequest::setValidity(int validity) { validity_ = validity; - setParameter("Validity", std::to_string(validity)); + setCoreParameter("Validity", std::to_string(validity)); } std::string CreateSignatureRequest::getReturnUrl()const @@ -187,7 +198,7 @@ std::string CreateSignatureRequest::getReturnUrl()const void CreateSignatureRequest::setReturnUrl(const std::string& returnUrl) { returnUrl_ = returnUrl; - setParameter("ReturnUrl", returnUrl); + setCoreParameter("ReturnUrl", returnUrl); } std::string CreateSignatureRequest::getLang()const @@ -198,7 +209,7 @@ std::string CreateSignatureRequest::getLang()const void CreateSignatureRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int CreateSignatureRequest::getKeywordStrategy()const @@ -209,6 +220,6 @@ int CreateSignatureRequest::getKeywordStrategy()const void CreateSignatureRequest::setKeywordStrategy(int keywordStrategy) { keywordStrategy_ = keywordStrategy; - setParameter("KeywordStrategy", std::to_string(keywordStrategy)); + setCoreParameter("KeywordStrategy", std::to_string(keywordStrategy)); } diff --git a/cas/src/model/CreateSignatureResult.cc b/cas/src/model/CreateSignatureResult.cc index 6e271e63b..d9ab25441 100644 --- a/cas/src/model/CreateSignatureResult.cc +++ b/cas/src/model/CreateSignatureResult.cc @@ -35,11 +35,28 @@ CreateSignatureResult::~CreateSignatureResult() void CreateSignatureResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); + if(!value["TransactionId"].isNull()) + transactionId_ = value["TransactionId"].asString(); + if(!value["DocContent"].isNull()) + docContent_ = value["DocContent"].asString(); } +std::string CreateSignatureResult::getDocContent()const +{ + return docContent_; +} + +std::string CreateSignatureResult::getTransactionId()const +{ + return transactionId_; +} + diff --git a/cas/src/model/CreateUnDeploymentRequest.cc b/cas/src/model/CreateUnDeploymentRequest.cc index 7630ef3be..fa22116c6 100644 --- a/cas/src/model/CreateUnDeploymentRequest.cc +++ b/cas/src/model/CreateUnDeploymentRequest.cc @@ -33,7 +33,7 @@ std::string CreateUnDeploymentRequest::getSourceIp()const void CreateUnDeploymentRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long CreateUnDeploymentRequest::getDeploymentId()const @@ -44,7 +44,7 @@ long CreateUnDeploymentRequest::getDeploymentId()const void CreateUnDeploymentRequest::setDeploymentId(long deploymentId) { deploymentId_ = deploymentId; - setParameter("DeploymentId", std::to_string(deploymentId)); + setCoreParameter("DeploymentId", std::to_string(deploymentId)); } std::string CreateUnDeploymentRequest::getLang()const @@ -55,6 +55,6 @@ std::string CreateUnDeploymentRequest::getLang()const void CreateUnDeploymentRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/CreateUnDeploymentResult.cc b/cas/src/model/CreateUnDeploymentResult.cc index 537917fe9..f3ca50d59 100644 --- a/cas/src/model/CreateUnDeploymentResult.cc +++ b/cas/src/model/CreateUnDeploymentResult.cc @@ -35,10 +35,13 @@ CreateUnDeploymentResult::~CreateUnDeploymentResult() void CreateUnDeploymentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/CreateWebSignatureRequest.cc b/cas/src/model/CreateWebSignatureRequest.cc index 5cecf7dc8..00b7bf8af 100644 --- a/cas/src/model/CreateWebSignatureRequest.cc +++ b/cas/src/model/CreateWebSignatureRequest.cc @@ -33,7 +33,7 @@ int CreateWebSignatureRequest::getQuantity()const void CreateWebSignatureRequest::setQuantity(int quantity) { quantity_ = quantity; - setParameter("Quantity", std::to_string(quantity)); + setCoreParameter("Quantity", std::to_string(quantity)); } std::string CreateWebSignatureRequest::getHandSignImg()const @@ -44,7 +44,7 @@ std::string CreateWebSignatureRequest::getHandSignImg()const void CreateWebSignatureRequest::setHandSignImg(const std::string& handSignImg) { handSignImg_ = handSignImg; - setParameter("HandSignImg", handSignImg); + setCoreParameter("HandSignImg", handSignImg); } std::string CreateWebSignatureRequest::getDocId()const @@ -55,7 +55,7 @@ std::string CreateWebSignatureRequest::getDocId()const void CreateWebSignatureRequest::setDocId(const std::string& docId) { docId_ = docId; - setParameter("DocId", docId); + setCoreParameter("DocId", docId); } std::string CreateWebSignatureRequest::getCustomApi()const @@ -66,7 +66,7 @@ std::string CreateWebSignatureRequest::getCustomApi()const void CreateWebSignatureRequest::setCustomApi(const std::string& customApi) { customApi_ = customApi; - setParameter("CustomApi", customApi); + setCoreParameter("CustomApi", customApi); } int CreateWebSignatureRequest::getPositionPage()const @@ -77,7 +77,7 @@ int CreateWebSignatureRequest::getPositionPage()const void CreateWebSignatureRequest::setPositionPage(int positionPage) { positionPage_ = positionPage; - setParameter("PositionPage", std::to_string(positionPage)); + setCoreParameter("PositionPage", std::to_string(positionPage)); } std::string CreateWebSignatureRequest::getDocTitle()const @@ -88,7 +88,7 @@ std::string CreateWebSignatureRequest::getDocTitle()const void CreateWebSignatureRequest::setDocTitle(const std::string& docTitle) { docTitle_ = docTitle; - setParameter("DocTitle", docTitle); + setCoreParameter("DocTitle", docTitle); } int CreateWebSignatureRequest::getPositionX()const @@ -99,7 +99,7 @@ int CreateWebSignatureRequest::getPositionX()const void CreateWebSignatureRequest::setPositionX(int positionX) { positionX_ = positionX; - setParameter("PositionX", std::to_string(positionX)); + setCoreParameter("PositionX", std::to_string(positionX)); } int CreateWebSignatureRequest::getPositionY()const @@ -110,7 +110,7 @@ int CreateWebSignatureRequest::getPositionY()const void CreateWebSignatureRequest::setPositionY(int positionY) { positionY_ = positionY; - setParameter("PositionY", std::to_string(positionY)); + setCoreParameter("PositionY", std::to_string(positionY)); } std::string CreateWebSignatureRequest::getSourceIp()const @@ -121,7 +121,7 @@ std::string CreateWebSignatureRequest::getSourceIp()const void CreateWebSignatureRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateWebSignatureRequest::getPeopleId()const @@ -132,7 +132,7 @@ std::string CreateWebSignatureRequest::getPeopleId()const void CreateWebSignatureRequest::setPeopleId(const std::string& peopleId) { peopleId_ = peopleId; - setParameter("PeopleId", peopleId); + setCoreParameter("PeopleId", peopleId); } int CreateWebSignatureRequest::getPositionType()const @@ -143,7 +143,7 @@ int CreateWebSignatureRequest::getPositionType()const void CreateWebSignatureRequest::setPositionType(int positionType) { positionType_ = positionType; - setParameter("PositionType", std::to_string(positionType)); + setCoreParameter("PositionType", std::to_string(positionType)); } std::string CreateWebSignatureRequest::getSignKeyword()const @@ -154,7 +154,7 @@ std::string CreateWebSignatureRequest::getSignKeyword()const void CreateWebSignatureRequest::setSignKeyword(const std::string& signKeyword) { signKeyword_ = signKeyword; - setParameter("SignKeyword", signKeyword); + setCoreParameter("SignKeyword", signKeyword); } std::string CreateWebSignatureRequest::getNotifyUrl()const @@ -165,7 +165,7 @@ std::string CreateWebSignatureRequest::getNotifyUrl()const void CreateWebSignatureRequest::setNotifyUrl(const std::string& notifyUrl) { notifyUrl_ = notifyUrl; - setParameter("NotifyUrl", notifyUrl); + setCoreParameter("NotifyUrl", notifyUrl); } int CreateWebSignatureRequest::getValidity()const @@ -176,7 +176,7 @@ int CreateWebSignatureRequest::getValidity()const void CreateWebSignatureRequest::setValidity(int validity) { validity_ = validity; - setParameter("Validity", std::to_string(validity)); + setCoreParameter("Validity", std::to_string(validity)); } std::string CreateWebSignatureRequest::getReturnUrl()const @@ -187,7 +187,7 @@ std::string CreateWebSignatureRequest::getReturnUrl()const void CreateWebSignatureRequest::setReturnUrl(const std::string& returnUrl) { returnUrl_ = returnUrl; - setParameter("ReturnUrl", returnUrl); + setCoreParameter("ReturnUrl", returnUrl); } std::string CreateWebSignatureRequest::getLang()const @@ -198,7 +198,7 @@ std::string CreateWebSignatureRequest::getLang()const void CreateWebSignatureRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int CreateWebSignatureRequest::getKeywordStrategy()const @@ -209,6 +209,6 @@ int CreateWebSignatureRequest::getKeywordStrategy()const void CreateWebSignatureRequest::setKeywordStrategy(int keywordStrategy) { keywordStrategy_ = keywordStrategy; - setParameter("KeywordStrategy", std::to_string(keywordStrategy)); + setCoreParameter("KeywordStrategy", std::to_string(keywordStrategy)); } diff --git a/cas/src/model/CreateWebSignatureResult.cc b/cas/src/model/CreateWebSignatureResult.cc index 06ca1e520..d7fc82f5a 100644 --- a/cas/src/model/CreateWebSignatureResult.cc +++ b/cas/src/model/CreateWebSignatureResult.cc @@ -35,10 +35,13 @@ CreateWebSignatureResult::~CreateWebSignatureResult() void CreateWebSignatureResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/DeleteCertificateRequest.cc b/cas/src/model/DeleteCertificateRequest.cc index 5757c95be..156d0c6b4 100644 --- a/cas/src/model/DeleteCertificateRequest.cc +++ b/cas/src/model/DeleteCertificateRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCertificateRequest::getSourceIp()const void DeleteCertificateRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DeleteCertificateRequest::getCertificateId()const @@ -44,7 +44,7 @@ long DeleteCertificateRequest::getCertificateId()const void DeleteCertificateRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string DeleteCertificateRequest::getLang()const @@ -55,6 +55,6 @@ std::string DeleteCertificateRequest::getLang()const void DeleteCertificateRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DeleteCertificateResult.cc b/cas/src/model/DeleteCertificateResult.cc index 920183e6d..0321c9d90 100644 --- a/cas/src/model/DeleteCertificateResult.cc +++ b/cas/src/model/DeleteCertificateResult.cc @@ -35,10 +35,13 @@ DeleteCertificateResult::~DeleteCertificateResult() void DeleteCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/DeleteOrderRequest.cc b/cas/src/model/DeleteOrderRequest.cc index b4091c415..c0b4b3b4d 100644 --- a/cas/src/model/DeleteOrderRequest.cc +++ b/cas/src/model/DeleteOrderRequest.cc @@ -33,7 +33,7 @@ std::string DeleteOrderRequest::getSourceIp()const void DeleteOrderRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DeleteOrderRequest::getOrderId()const @@ -44,7 +44,7 @@ long DeleteOrderRequest::getOrderId()const void DeleteOrderRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DeleteOrderRequest::getLang()const @@ -55,6 +55,6 @@ std::string DeleteOrderRequest::getLang()const void DeleteOrderRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DeleteOrderResult.cc b/cas/src/model/DeleteOrderResult.cc index e1c02e0bc..47ed3dbb2 100644 --- a/cas/src/model/DeleteOrderResult.cc +++ b/cas/src/model/DeleteOrderResult.cc @@ -35,10 +35,13 @@ DeleteOrderResult::~DeleteOrderResult() void DeleteOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/DescribeCertificateBrandListRequest.cc b/cas/src/model/DescribeCertificateBrandListRequest.cc index 5cf848fca..c1efc1d7c 100644 --- a/cas/src/model/DescribeCertificateBrandListRequest.cc +++ b/cas/src/model/DescribeCertificateBrandListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCertificateBrandListRequest::getSourceIp()const void DescribeCertificateBrandListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCertificateBrandListRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeCertificateBrandListRequest::getLang()const void DescribeCertificateBrandListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeCertificateBrandListResult.cc b/cas/src/model/DescribeCertificateBrandListResult.cc index 1c9e23b6b..61f258d0f 100644 --- a/cas/src/model/DescribeCertificateBrandListResult.cc +++ b/cas/src/model/DescribeCertificateBrandListResult.cc @@ -35,10 +35,13 @@ DescribeCertificateBrandListResult::~DescribeCertificateBrandListResult() void DescribeCertificateBrandListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBrandList = value["BrandList"]["Brand"]; for (auto value : allBrandList) diff --git a/cas/src/model/DescribeCertificateDetailRequest.cc b/cas/src/model/DescribeCertificateDetailRequest.cc index 8f2e3da1a..29a5df040 100644 --- a/cas/src/model/DescribeCertificateDetailRequest.cc +++ b/cas/src/model/DescribeCertificateDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCertificateDetailRequest::getSourceIp()const void DescribeCertificateDetailRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeCertificateDetailRequest::getCertificateId()const @@ -44,7 +44,7 @@ long DescribeCertificateDetailRequest::getCertificateId()const void DescribeCertificateDetailRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string DescribeCertificateDetailRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeCertificateDetailRequest::getLang()const void DescribeCertificateDetailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeCertificateDetailResult.cc b/cas/src/model/DescribeCertificateDetailResult.cc index 839af31cc..fd9e57eae 100644 --- a/cas/src/model/DescribeCertificateDetailResult.cc +++ b/cas/src/model/DescribeCertificateDetailResult.cc @@ -35,10 +35,13 @@ DescribeCertificateDetailResult::~DescribeCertificateDetailResult() void DescribeCertificateDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); @@ -68,6 +71,8 @@ void DescribeCertificateDetailResult::parse(const std::string &payload) certType_ = value["CertType"].asString(); if(!value["RemainingDays"].isNull()) remainingDays_ = std::stoi(value["RemainingDays"].asString()); + if(!value["AccessDownload"].isNull()) + accessDownload_ = std::stoi(value["AccessDownload"].asString()); } @@ -131,6 +136,11 @@ int DescribeCertificateDetailResult::getYear()const return year_; } +int DescribeCertificateDetailResult::getAccessDownload()const +{ + return accessDownload_; +} + long DescribeCertificateDetailResult::getId()const { return id_; diff --git a/cas/src/model/DescribeCertificateListRequest.cc b/cas/src/model/DescribeCertificateListRequest.cc index 664581a37..f26dbe995 100644 --- a/cas/src/model/DescribeCertificateListRequest.cc +++ b/cas/src/model/DescribeCertificateListRequest.cc @@ -25,6 +25,17 @@ DescribeCertificateListRequest::DescribeCertificateListRequest() : DescribeCertificateListRequest::~DescribeCertificateListRequest() {} +std::string DescribeCertificateListRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeCertificateListRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + std::string DescribeCertificateListRequest::getSourceIp()const { return sourceIp_; @@ -33,7 +44,29 @@ std::string DescribeCertificateListRequest::getSourceIp()const void DescribeCertificateListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeCertificateListRequest::getSortType()const +{ + return sortType_; +} + +void DescribeCertificateListRequest::setSortType(const std::string& sortType) +{ + sortType_ = sortType; + setCoreParameter("SortType", sortType); +} + +std::string DescribeCertificateListRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCertificateListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); } int DescribeCertificateListRequest::getShowSize()const @@ -44,7 +77,18 @@ int DescribeCertificateListRequest::getShowSize()const void DescribeCertificateListRequest::setShowSize(int showSize) { showSize_ = showSize; - setParameter("ShowSize", std::to_string(showSize)); + setCoreParameter("ShowSize", std::to_string(showSize)); +} + +std::string DescribeCertificateListRequest::getSortColumn()const +{ + return sortColumn_; +} + +void DescribeCertificateListRequest::setSortColumn(const std::string& sortColumn) +{ + sortColumn_ = sortColumn; + setCoreParameter("SortColumn", sortColumn); } int DescribeCertificateListRequest::getCurrentPage()const @@ -55,18 +99,24 @@ int DescribeCertificateListRequest::getCurrentPage()const void DescribeCertificateListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } -std::string DescribeCertificateListRequest::getKeyword()const +std::vector DescribeCertificateListRequest::getTag()const { - return keyword_; + return tag_; } -void DescribeCertificateListRequest::setKeyword(const std::string& keyword) +void DescribeCertificateListRequest::setTag(const std::vector& tag) { - keyword_ = keyword; - setParameter("Keyword", keyword); + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } std::string DescribeCertificateListRequest::getLang()const @@ -77,7 +127,18 @@ std::string DescribeCertificateListRequest::getLang()const void DescribeCertificateListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +std::string DescribeCertificateListRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeCertificateListRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setCoreParameter("Keyword", keyword); } std::string DescribeCertificateListRequest::getStatus()const @@ -88,6 +149,6 @@ std::string DescribeCertificateListRequest::getStatus()const void DescribeCertificateListRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cas/src/model/DescribeCertificateListResult.cc b/cas/src/model/DescribeCertificateListResult.cc index 625389180..fa6fd6b90 100644 --- a/cas/src/model/DescribeCertificateListResult.cc +++ b/cas/src/model/DescribeCertificateListResult.cc @@ -35,10 +35,13 @@ DescribeCertificateListResult::~DescribeCertificateListResult() void DescribeCertificateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCertificateList = value["CertificateList"]["Certificate"]; for (auto value : allCertificateList) @@ -80,8 +83,16 @@ void DescribeCertificateListResult::parse(const std::string &payload) certificateListObject.newBuyDomainType = value["NewBuyDomainType"].asString(); if(!value["NewBuyBrand"].isNull()) certificateListObject.newBuyBrand = value["NewBuyBrand"].asString(); + if(!value["NewBuyDomainCount"].isNull()) + certificateListObject.newBuyDomainCount = std::stoi(value["NewBuyDomainCount"].asString()); if(!value["ShowDeployment"].isNull()) certificateListObject.showDeployment = std::stoi(value["ShowDeployment"].asString()); + if(!value["ShowRefund"].isNull()) + certificateListObject.showRefund = value["ShowRefund"].asString() == "true"; + if(!value["AccessDownload"].isNull()) + certificateListObject.accessDownload = std::stoi(value["AccessDownload"].asString()); + if(!value["PartnerOrderId"].isNull()) + certificateListObject.partnerOrderId = value["PartnerOrderId"].asString(); certificateList_.push_back(certificateListObject); } if(!value["TotalCount"].isNull()) diff --git a/cas/src/model/DescribeCertificateStatusCountRequest.cc b/cas/src/model/DescribeCertificateStatusCountRequest.cc index cdecf78ca..5b0d9e089 100644 --- a/cas/src/model/DescribeCertificateStatusCountRequest.cc +++ b/cas/src/model/DescribeCertificateStatusCountRequest.cc @@ -25,6 +25,17 @@ DescribeCertificateStatusCountRequest::DescribeCertificateStatusCountRequest() : DescribeCertificateStatusCountRequest::~DescribeCertificateStatusCountRequest() {} +std::string DescribeCertificateStatusCountRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeCertificateStatusCountRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + std::string DescribeCertificateStatusCountRequest::getSourceIp()const { return sourceIp_; @@ -33,7 +44,35 @@ std::string DescribeCertificateStatusCountRequest::getSourceIp()const void DescribeCertificateStatusCountRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeCertificateStatusCountRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCertificateStatusCountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector DescribeCertificateStatusCountRequest::getTag()const +{ + return tag_; +} + +void DescribeCertificateStatusCountRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } std::string DescribeCertificateStatusCountRequest::getLang()const @@ -44,6 +83,6 @@ std::string DescribeCertificateStatusCountRequest::getLang()const void DescribeCertificateStatusCountRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeCertificateStatusCountResult.cc b/cas/src/model/DescribeCertificateStatusCountResult.cc index 8048c5ad3..2e2afdaa3 100644 --- a/cas/src/model/DescribeCertificateStatusCountResult.cc +++ b/cas/src/model/DescribeCertificateStatusCountResult.cc @@ -35,10 +35,13 @@ DescribeCertificateStatusCountResult::~DescribeCertificateStatusCountResult() void DescribeCertificateStatusCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Payed"].isNull()) payed_ = std::stoi(value["Payed"].asString()); @@ -56,6 +59,8 @@ void DescribeCertificateStatusCountResult::parse(const std::string &payload) willExpired_ = std::stoi(value["WillExpired"].asString()); if(!value["Expired"].isNull()) expired_ = std::stoi(value["Expired"].asString()); + if(!value["RevokeChecking"].isNull()) + revokeChecking_ = std::stoi(value["RevokeChecking"].asString()); } @@ -99,3 +104,8 @@ int DescribeCertificateStatusCountResult::getChecking()const return checking_; } +int DescribeCertificateStatusCountResult::getRevokeChecking()const +{ + return revokeChecking_; +} + diff --git a/cas/src/model/DescribeDeploymentDetailRequest.cc b/cas/src/model/DescribeDeploymentDetailRequest.cc index f0108348d..14e722ee1 100644 --- a/cas/src/model/DescribeDeploymentDetailRequest.cc +++ b/cas/src/model/DescribeDeploymentDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDeploymentDetailRequest::getSourceIp()const void DescribeDeploymentDetailRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeDeploymentDetailRequest::getCertificateId()const @@ -44,7 +44,7 @@ long DescribeDeploymentDetailRequest::getCertificateId()const void DescribeDeploymentDetailRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string DescribeDeploymentDetailRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeDeploymentDetailRequest::getLang()const void DescribeDeploymentDetailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDeploymentDetailResult.cc b/cas/src/model/DescribeDeploymentDetailResult.cc index 4e375c0a6..42573c7da 100644 --- a/cas/src/model/DescribeDeploymentDetailResult.cc +++ b/cas/src/model/DescribeDeploymentDetailResult.cc @@ -35,10 +35,13 @@ DescribeDeploymentDetailResult::~DescribeDeploymentDetailResult() void DescribeDeploymentDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDeploymentDetail = value["DeploymentDetail"]["Deployment"]; for (auto value : allDeploymentDetail) diff --git a/cas/src/model/DescribeDeploymentDomainListRequest.cc b/cas/src/model/DescribeDeploymentDomainListRequest.cc index 4b8848217..970254ca9 100644 --- a/cas/src/model/DescribeDeploymentDomainListRequest.cc +++ b/cas/src/model/DescribeDeploymentDomainListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDeploymentDomainListRequest::getSourceIp()const void DescribeDeploymentDomainListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeDeploymentDomainListRequest::getCertificateId()const @@ -44,7 +44,7 @@ long DescribeDeploymentDomainListRequest::getCertificateId()const void DescribeDeploymentDomainListRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string DescribeDeploymentDomainListRequest::getCloudProduct()const @@ -55,7 +55,7 @@ std::string DescribeDeploymentDomainListRequest::getCloudProduct()const void DescribeDeploymentDomainListRequest::setCloudProduct(const std::string& cloudProduct) { cloudProduct_ = cloudProduct; - setParameter("CloudProduct", cloudProduct); + setCoreParameter("CloudProduct", cloudProduct); } std::string DescribeDeploymentDomainListRequest::getLang()const @@ -66,6 +66,6 @@ std::string DescribeDeploymentDomainListRequest::getLang()const void DescribeDeploymentDomainListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDeploymentDomainListResult.cc b/cas/src/model/DescribeDeploymentDomainListResult.cc index 76df8dd5a..68332f054 100644 --- a/cas/src/model/DescribeDeploymentDomainListResult.cc +++ b/cas/src/model/DescribeDeploymentDomainListResult.cc @@ -35,10 +35,13 @@ DescribeDeploymentDomainListResult::~DescribeDeploymentDomainListResult() void DescribeDeploymentDomainListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainList = value["DomainList"]["domain"]; for (const auto &item : allDomainList) diff --git a/cas/src/model/DescribeDeploymentProductRequest.cc b/cas/src/model/DescribeDeploymentProductRequest.cc index c1324b987..e7d5037bf 100644 --- a/cas/src/model/DescribeDeploymentProductRequest.cc +++ b/cas/src/model/DescribeDeploymentProductRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDeploymentProductRequest::getSourceIp()const void DescribeDeploymentProductRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeDeploymentProductRequest::getCertificateId()const @@ -44,7 +44,7 @@ long DescribeDeploymentProductRequest::getCertificateId()const void DescribeDeploymentProductRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string DescribeDeploymentProductRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeDeploymentProductRequest::getLang()const void DescribeDeploymentProductRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDeploymentProductResult.cc b/cas/src/model/DescribeDeploymentProductResult.cc index ac525755c..eca826b7d 100644 --- a/cas/src/model/DescribeDeploymentProductResult.cc +++ b/cas/src/model/DescribeDeploymentProductResult.cc @@ -35,10 +35,13 @@ DescribeDeploymentProductResult::~DescribeDeploymentProductResult() void DescribeDeploymentProductResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allProductList = value["ProductList"]["product"]; for (const auto &item : allProductList) diff --git a/cas/src/model/DescribeDeploymentRegionListRequest.cc b/cas/src/model/DescribeDeploymentRegionListRequest.cc index 2a0b65130..f070834a0 100644 --- a/cas/src/model/DescribeDeploymentRegionListRequest.cc +++ b/cas/src/model/DescribeDeploymentRegionListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDeploymentRegionListRequest::getSourceIp()const void DescribeDeploymentRegionListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeDeploymentRegionListRequest::getCertificateId()const @@ -44,7 +44,7 @@ long DescribeDeploymentRegionListRequest::getCertificateId()const void DescribeDeploymentRegionListRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string DescribeDeploymentRegionListRequest::getCloudProduct()const @@ -55,7 +55,7 @@ std::string DescribeDeploymentRegionListRequest::getCloudProduct()const void DescribeDeploymentRegionListRequest::setCloudProduct(const std::string& cloudProduct) { cloudProduct_ = cloudProduct; - setParameter("CloudProduct", cloudProduct); + setCoreParameter("CloudProduct", cloudProduct); } std::string DescribeDeploymentRegionListRequest::getLang()const @@ -66,6 +66,6 @@ std::string DescribeDeploymentRegionListRequest::getLang()const void DescribeDeploymentRegionListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDeploymentRegionListResult.cc b/cas/src/model/DescribeDeploymentRegionListResult.cc index 1ab1c3b2f..815c74b55 100644 --- a/cas/src/model/DescribeDeploymentRegionListResult.cc +++ b/cas/src/model/DescribeDeploymentRegionListResult.cc @@ -35,10 +35,13 @@ DescribeDeploymentRegionListResult::~DescribeDeploymentRegionListResult() void DescribeDeploymentRegionListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegionList = value["RegionList"]["region"]; for (const auto &item : allRegionList) diff --git a/cas/src/model/DescribeDomainVerifyConfigurationStatusRequest.cc b/cas/src/model/DescribeDomainVerifyConfigurationStatusRequest.cc index 937eb4bf4..733f3c71b 100644 --- a/cas/src/model/DescribeDomainVerifyConfigurationStatusRequest.cc +++ b/cas/src/model/DescribeDomainVerifyConfigurationStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainVerifyConfigurationStatusRequest::getSourceIp()const void DescribeDomainVerifyConfigurationStatusRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeDomainVerifyConfigurationStatusRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeDomainVerifyConfigurationStatusRequest::getOrderId()const void DescribeDomainVerifyConfigurationStatusRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeDomainVerifyConfigurationStatusRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeDomainVerifyConfigurationStatusRequest::getLang()const void DescribeDomainVerifyConfigurationStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDomainVerifyConfigurationStatusResult.cc b/cas/src/model/DescribeDomainVerifyConfigurationStatusResult.cc index bd19c1bbf..d90ea5e6a 100644 --- a/cas/src/model/DescribeDomainVerifyConfigurationStatusResult.cc +++ b/cas/src/model/DescribeDomainVerifyConfigurationStatusResult.cc @@ -35,10 +35,13 @@ DescribeDomainVerifyConfigurationStatusResult::~DescribeDomainVerifyConfiguratio void DescribeDomainVerifyConfigurationStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/DescribeDomainVerifyInfoRequest.cc b/cas/src/model/DescribeDomainVerifyInfoRequest.cc index d730b1334..ade9e016c 100644 --- a/cas/src/model/DescribeDomainVerifyInfoRequest.cc +++ b/cas/src/model/DescribeDomainVerifyInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainVerifyInfoRequest::getSourceIp()const void DescribeDomainVerifyInfoRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeDomainVerifyInfoRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeDomainVerifyInfoRequest::getOrderId()const void DescribeDomainVerifyInfoRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeDomainVerifyInfoRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeDomainVerifyInfoRequest::getLang()const void DescribeDomainVerifyInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDomainVerifyInfoResult.cc b/cas/src/model/DescribeDomainVerifyInfoResult.cc index be2702dd8..62ef6849e 100644 --- a/cas/src/model/DescribeDomainVerifyInfoResult.cc +++ b/cas/src/model/DescribeDomainVerifyInfoResult.cc @@ -35,10 +35,13 @@ DescribeDomainVerifyInfoResult::~DescribeDomainVerifyInfoResult() void DescribeDomainVerifyInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Type"].isNull()) type_ = value["Type"].asString(); diff --git a/cas/src/model/DescribeDownloadCertificateRequest.cc b/cas/src/model/DescribeDownloadCertificateRequest.cc index 4fb675b4b..4b313ec42 100644 --- a/cas/src/model/DescribeDownloadCertificateRequest.cc +++ b/cas/src/model/DescribeDownloadCertificateRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDownloadCertificateRequest::getSourceIp()const void DescribeDownloadCertificateRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeDownloadCertificateRequest::getServerType()const @@ -44,7 +44,7 @@ std::string DescribeDownloadCertificateRequest::getServerType()const void DescribeDownloadCertificateRequest::setServerType(const std::string& serverType) { serverType_ = serverType; - setParameter("ServerType", serverType); + setCoreParameter("ServerType", serverType); } long DescribeDownloadCertificateRequest::getCertificateId()const @@ -55,7 +55,7 @@ long DescribeDownloadCertificateRequest::getCertificateId()const void DescribeDownloadCertificateRequest::setCertificateId(long certificateId) { certificateId_ = certificateId; - setParameter("CertificateId", std::to_string(certificateId)); + setCoreParameter("CertificateId", std::to_string(certificateId)); } std::string DescribeDownloadCertificateRequest::getLang()const @@ -66,6 +66,6 @@ std::string DescribeDownloadCertificateRequest::getLang()const void DescribeDownloadCertificateRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDownloadCertificateResult.cc b/cas/src/model/DescribeDownloadCertificateResult.cc index 0fe5751f8..03c80d088 100644 --- a/cas/src/model/DescribeDownloadCertificateResult.cc +++ b/cas/src/model/DescribeDownloadCertificateResult.cc @@ -35,10 +35,13 @@ DescribeDownloadCertificateResult::~DescribeDownloadCertificateResult() void DescribeDownloadCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OssKey"].isNull()) ossKey_ = value["OssKey"].asString(); diff --git a/cas/src/model/DescribeDownloadDomainVerifyConfigurationRequest.cc b/cas/src/model/DescribeDownloadDomainVerifyConfigurationRequest.cc index b051e3b80..48e1ee994 100644 --- a/cas/src/model/DescribeDownloadDomainVerifyConfigurationRequest.cc +++ b/cas/src/model/DescribeDownloadDomainVerifyConfigurationRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDownloadDomainVerifyConfigurationRequest::getSourceIp()const void DescribeDownloadDomainVerifyConfigurationRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeDownloadDomainVerifyConfigurationRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeDownloadDomainVerifyConfigurationRequest::getOrderId()const void DescribeDownloadDomainVerifyConfigurationRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeDownloadDomainVerifyConfigurationRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeDownloadDomainVerifyConfigurationRequest::getLang()const void DescribeDownloadDomainVerifyConfigurationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeDownloadDomainVerifyConfigurationResult.cc b/cas/src/model/DescribeDownloadDomainVerifyConfigurationResult.cc index 08a51b3a3..55e3a63ef 100644 --- a/cas/src/model/DescribeDownloadDomainVerifyConfigurationResult.cc +++ b/cas/src/model/DescribeDownloadDomainVerifyConfigurationResult.cc @@ -35,10 +35,13 @@ DescribeDownloadDomainVerifyConfigurationResult::~DescribeDownloadDomainVerifyCo void DescribeDownloadDomainVerifyConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OssKey"].isNull()) ossKey_ = value["OssKey"].asString(); diff --git a/cas/src/model/DescribeExpectationResultRequest.cc b/cas/src/model/DescribeExpectationResultRequest.cc index eea7dc6ed..34fb8e207 100644 --- a/cas/src/model/DescribeExpectationResultRequest.cc +++ b/cas/src/model/DescribeExpectationResultRequest.cc @@ -33,7 +33,7 @@ std::string DescribeExpectationResultRequest::getSourceIp()const void DescribeExpectationResultRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeExpectationResultRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeExpectationResultRequest::getOrderId()const void DescribeExpectationResultRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeExpectationResultRequest::getExpectationType()const @@ -55,7 +55,7 @@ std::string DescribeExpectationResultRequest::getExpectationType()const void DescribeExpectationResultRequest::setExpectationType(const std::string& expectationType) { expectationType_ = expectationType; - setParameter("ExpectationType", expectationType); + setCoreParameter("ExpectationType", expectationType); } std::string DescribeExpectationResultRequest::getLang()const @@ -66,6 +66,6 @@ std::string DescribeExpectationResultRequest::getLang()const void DescribeExpectationResultRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeExpectationResultResult.cc b/cas/src/model/DescribeExpectationResultResult.cc index f834ef9da..7ead86c94 100644 --- a/cas/src/model/DescribeExpectationResultResult.cc +++ b/cas/src/model/DescribeExpectationResultResult.cc @@ -35,10 +35,13 @@ DescribeExpectationResultResult::~DescribeExpectationResultResult() void DescribeExpectationResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ExpectationType"].isNull()) expectationType_ = value["ExpectationType"].asString(); diff --git a/cas/src/model/DescribeHelpListRequest.cc b/cas/src/model/DescribeHelpListRequest.cc index a4d24783e..5fc85dbf4 100644 --- a/cas/src/model/DescribeHelpListRequest.cc +++ b/cas/src/model/DescribeHelpListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeHelpListRequest::getSourceIp()const void DescribeHelpListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeHelpListRequest::getCategory()const @@ -44,7 +44,7 @@ std::string DescribeHelpListRequest::getCategory()const void DescribeHelpListRequest::setCategory(const std::string& category) { category_ = category; - setParameter("Category", category); + setCoreParameter("Category", category); } std::string DescribeHelpListRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeHelpListRequest::getLang()const void DescribeHelpListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeHelpListResult.cc b/cas/src/model/DescribeHelpListResult.cc index 834bb30ba..08eed2e3a 100644 --- a/cas/src/model/DescribeHelpListResult.cc +++ b/cas/src/model/DescribeHelpListResult.cc @@ -35,10 +35,13 @@ DescribeHelpListResult::~DescribeHelpListResult() void DescribeHelpListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpInfoList"].isNull()) helpInfoList_ = value["HelpInfoList"].asString(); diff --git a/cas/src/model/DescribeLocationListRequest.cc b/cas/src/model/DescribeLocationListRequest.cc index f6de32fd1..b78b74850 100644 --- a/cas/src/model/DescribeLocationListRequest.cc +++ b/cas/src/model/DescribeLocationListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLocationListRequest::getSourceIp()const void DescribeLocationListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeLocationListRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeLocationListRequest::getLang()const void DescribeLocationListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeLocationListResult.cc b/cas/src/model/DescribeLocationListResult.cc index 5aecaf018..de9f7864e 100644 --- a/cas/src/model/DescribeLocationListResult.cc +++ b/cas/src/model/DescribeLocationListResult.cc @@ -35,10 +35,13 @@ DescribeLocationListResult::~DescribeLocationListResult() void DescribeLocationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["LocationList"].isNull()) locationList_ = value["LocationList"].asString(); diff --git a/cas/src/model/DescribeOSSDownloadInfoRequest.cc b/cas/src/model/DescribeOSSDownloadInfoRequest.cc index d9bda1ca7..adca15226 100644 --- a/cas/src/model/DescribeOSSDownloadInfoRequest.cc +++ b/cas/src/model/DescribeOSSDownloadInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeOSSDownloadInfoRequest::getSourceIp()const void DescribeOSSDownloadInfoRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeOSSDownloadInfoRequest::getOssKey()const @@ -44,7 +44,7 @@ std::string DescribeOSSDownloadInfoRequest::getOssKey()const void DescribeOSSDownloadInfoRequest::setOssKey(const std::string& ossKey) { ossKey_ = ossKey; - setParameter("OssKey", ossKey); + setCoreParameter("OssKey", ossKey); } std::string DescribeOSSDownloadInfoRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeOSSDownloadInfoRequest::getLang()const void DescribeOSSDownloadInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeOSSDownloadInfoResult.cc b/cas/src/model/DescribeOSSDownloadInfoResult.cc index 3bb37e1c8..6aa029555 100644 --- a/cas/src/model/DescribeOSSDownloadInfoResult.cc +++ b/cas/src/model/DescribeOSSDownloadInfoResult.cc @@ -35,10 +35,13 @@ DescribeOSSDownloadInfoResult::~DescribeOSSDownloadInfoResult() void DescribeOSSDownloadInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DownloadUrl"].isNull()) downloadUrl_ = value["DownloadUrl"].asString(); diff --git a/cas/src/model/DescribeOSSUploadInfoRequest.cc b/cas/src/model/DescribeOSSUploadInfoRequest.cc index dd369b7b2..634910921 100644 --- a/cas/src/model/DescribeOSSUploadInfoRequest.cc +++ b/cas/src/model/DescribeOSSUploadInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeOSSUploadInfoRequest::getSourceIp()const void DescribeOSSUploadInfoRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeOSSUploadInfoRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeOSSUploadInfoRequest::getOrderId()const void DescribeOSSUploadInfoRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } int DescribeOSSUploadInfoRequest::getDocumentType()const @@ -55,7 +55,7 @@ int DescribeOSSUploadInfoRequest::getDocumentType()const void DescribeOSSUploadInfoRequest::setDocumentType(int documentType) { documentType_ = documentType; - setParameter("DocumentType", std::to_string(documentType)); + setCoreParameter("DocumentType", std::to_string(documentType)); } std::string DescribeOSSUploadInfoRequest::getLang()const @@ -66,6 +66,6 @@ std::string DescribeOSSUploadInfoRequest::getLang()const void DescribeOSSUploadInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeOSSUploadInfoResult.cc b/cas/src/model/DescribeOSSUploadInfoResult.cc index 53bc834b7..fa3504210 100644 --- a/cas/src/model/DescribeOSSUploadInfoResult.cc +++ b/cas/src/model/DescribeOSSUploadInfoResult.cc @@ -35,10 +35,13 @@ DescribeOSSUploadInfoResult::~DescribeOSSUploadInfoResult() void DescribeOSSUploadInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AccessId"].isNull()) accessId_ = value["AccessId"].asString(); diff --git a/cas/src/model/DescribeOrderAuditFailRecordRequest.cc b/cas/src/model/DescribeOrderAuditFailRecordRequest.cc index b48f6e832..fa43200cb 100644 --- a/cas/src/model/DescribeOrderAuditFailRecordRequest.cc +++ b/cas/src/model/DescribeOrderAuditFailRecordRequest.cc @@ -33,7 +33,7 @@ std::string DescribeOrderAuditFailRecordRequest::getSourceIp()const void DescribeOrderAuditFailRecordRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeOrderAuditFailRecordRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeOrderAuditFailRecordRequest::getOrderId()const void DescribeOrderAuditFailRecordRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeOrderAuditFailRecordRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeOrderAuditFailRecordRequest::getLang()const void DescribeOrderAuditFailRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeOrderAuditFailRecordResult.cc b/cas/src/model/DescribeOrderAuditFailRecordResult.cc index d7312dd6b..dd5fd7df3 100644 --- a/cas/src/model/DescribeOrderAuditFailRecordResult.cc +++ b/cas/src/model/DescribeOrderAuditFailRecordResult.cc @@ -35,10 +35,13 @@ DescribeOrderAuditFailRecordResult::~DescribeOrderAuditFailRecordResult() void DescribeOrderAuditFailRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AuditNote"].isNull()) auditNote_ = value["AuditNote"].asString(); diff --git a/cas/src/model/DescribeOrderCountForConsoleIndexRequest.cc b/cas/src/model/DescribeOrderCountForConsoleIndexRequest.cc new file mode 100644 index 000000000..f467bfd91 --- /dev/null +++ b/cas/src/model/DescribeOrderCountForConsoleIndexRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cas::Model::DescribeOrderCountForConsoleIndexRequest; + +DescribeOrderCountForConsoleIndexRequest::DescribeOrderCountForConsoleIndexRequest() : + RpcServiceRequest("cas", "2018-08-13", "DescribeOrderCountForConsoleIndex") +{} + +DescribeOrderCountForConsoleIndexRequest::~DescribeOrderCountForConsoleIndexRequest() +{} + +std::string DescribeOrderCountForConsoleIndexRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeOrderCountForConsoleIndexRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeOrderCountForConsoleIndexRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeOrderCountForConsoleIndexRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeOrderCountForConsoleIndexRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeOrderCountForConsoleIndexRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + diff --git a/cas/src/model/DescribeOrderCountForConsoleIndexResult.cc b/cas/src/model/DescribeOrderCountForConsoleIndexResult.cc new file mode 100644 index 000000000..7a79a1cf6 --- /dev/null +++ b/cas/src/model/DescribeOrderCountForConsoleIndexResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeOrderCountForConsoleIndexResult::DescribeOrderCountForConsoleIndexResult() : + ServiceResult() +{} + +DescribeOrderCountForConsoleIndexResult::DescribeOrderCountForConsoleIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOrderCountForConsoleIndexResult::~DescribeOrderCountForConsoleIndexResult() +{} + +void DescribeOrderCountForConsoleIndexResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BuySuccess"].isNull()) + buySuccess_ = value["BuySuccess"].asString() == "true"; + +} + +bool DescribeOrderCountForConsoleIndexResult::getBuySuccess()const +{ + return buySuccess_; +} + diff --git a/cas/src/model/DescribeOrderDetailRequest.cc b/cas/src/model/DescribeOrderDetailRequest.cc index 97e474549..0b2a31b5b 100644 --- a/cas/src/model/DescribeOrderDetailRequest.cc +++ b/cas/src/model/DescribeOrderDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeOrderDetailRequest::getSourceIp()const void DescribeOrderDetailRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeOrderDetailRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeOrderDetailRequest::getOrderId()const void DescribeOrderDetailRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeOrderDetailRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeOrderDetailRequest::getLang()const void DescribeOrderDetailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeOrderDetailResult.cc b/cas/src/model/DescribeOrderDetailResult.cc index 9e51c74c4..bcef0b57d 100644 --- a/cas/src/model/DescribeOrderDetailResult.cc +++ b/cas/src/model/DescribeOrderDetailResult.cc @@ -35,44 +35,70 @@ DescribeOrderDetailResult::~DescribeOrderDetailResult() void DescribeOrderDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) - id_ = std::stoi(value["Id"].asString()); + id_ = std::stol(value["Id"].asString()); if(!value["SourceType"].isNull()) sourceType_ = value["SourceType"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); - if(!value["Year"].isNull()) - year_ = std::stoi(value["Year"].asString()); - if(!value["BuyDate"].isNull()) - buyDate_ = std::stoi(value["BuyDate"].asString()); - if(!value["Domain"].isNull()) - domain_ = value["Domain"].asString(); - if(!value["StatusCode"].isNull()) - statusCode_ = std::stoi(value["StatusCode"].asString()); - if(!value["BrandName"].isNull()) - brandName_ = value["BrandName"].asString(); - if(!value["ProductAliasName"].isNull()) - productAliasName_ = value["ProductAliasName"].asString(); if(!value["CertType"].isNull()) certType_ = value["CertType"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["Year"].isNull()) + year_ = std::stol(value["Year"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + if(!value["OrderType"].isNull()) + orderType_ = value["OrderType"].asString(); + if(!value["BrandName"].isNull()) + brandName_ = value["BrandName"].asString(); + if(!value["BuyDate"].isNull()) + buyDate_ = std::stol(value["BuyDate"].asString()); + if(!value["StatusCode"].isNull()) + statusCode_ = value["StatusCode"].asString(); + if(!value["Domain"].isNull()) + domain_ = value["Domain"].asString(); + if(!value["ProductAliasName"].isNull()) + productAliasName_ = value["ProductAliasName"].asString(); + if(!value["DomainCount"].isNull()) + domainCount_ = std::stoi(value["DomainCount"].asString()); + if(!value["WildDomainCount"].isNull()) + wildDomainCount_ = std::stoi(value["WildDomainCount"].asString()); + if(!value["VerifyStatus"].isNull()) + verifyStatus_ = std::stoi(value["VerifyStatus"].asString()); + if(!value["MaybeIssueDate"].isNull()) + maybeIssueDate_ = std::stol(value["MaybeIssueDate"].asString()); + if(!value["BeforeDate"].isNull()) + beforeDate_ = std::stol(value["BeforeDate"].asString()); + if(!value["AfterDate"].isNull()) + afterDate_ = std::stol(value["AfterDate"].asString()); + if(!value["ShowCancel"].isNull()) + showCancel_ = value["ShowCancel"].asString() == "true"; + if(!value["ShowRefund"].isNull()) + showRefund_ = value["ShowRefund"].asString() == "true"; } -std::string DescribeOrderDetailResult::getBrandName()const +int DescribeOrderDetailResult::getVerifyStatus()const { - return brandName_; + return verifyStatus_; } -int DescribeOrderDetailResult::getYear()const +long DescribeOrderDetailResult::getAfterDate()const { - return year_; + return afterDate_; +} + +bool DescribeOrderDetailResult::getShowRefund()const +{ + return showRefund_; } std::string DescribeOrderDetailResult::getInstanceId()const @@ -80,11 +106,6 @@ std::string DescribeOrderDetailResult::getInstanceId()const return instanceId_; } -std::string DescribeOrderDetailResult::getProductAliasName()const -{ - return productAliasName_; -} - std::string DescribeOrderDetailResult::getSourceType()const { return sourceType_; @@ -95,9 +116,9 @@ std::string DescribeOrderDetailResult::getCertType()const return certType_; } -int DescribeOrderDetailResult::getId()const +int DescribeOrderDetailResult::getWildDomainCount()const { - return id_; + return wildDomainCount_; } long DescribeOrderDetailResult::getOrderId()const @@ -105,18 +126,63 @@ long DescribeOrderDetailResult::getOrderId()const return orderId_; } +std::string DescribeOrderDetailResult::getStatusCode()const +{ + return statusCode_; +} + +std::string DescribeOrderDetailResult::getBrandName()const +{ + return brandName_; +} + +std::string DescribeOrderDetailResult::getOrderType()const +{ + return orderType_; +} + +long DescribeOrderDetailResult::getYear()const +{ + return year_; +} + +bool DescribeOrderDetailResult::getShowCancel()const +{ + return showCancel_; +} + +std::string DescribeOrderDetailResult::getProductAliasName()const +{ + return productAliasName_; +} + +long DescribeOrderDetailResult::getMaybeIssueDate()const +{ + return maybeIssueDate_; +} + +long DescribeOrderDetailResult::getId()const +{ + return id_; +} + std::string DescribeOrderDetailResult::getDomain()const { return domain_; } -int DescribeOrderDetailResult::getStatusCode()const -{ - return statusCode_; -} - -int DescribeOrderDetailResult::getBuyDate()const +long DescribeOrderDetailResult::getBuyDate()const { return buyDate_; } +int DescribeOrderDetailResult::getDomainCount()const +{ + return domainCount_; +} + +long DescribeOrderDetailResult::getBeforeDate()const +{ + return beforeDate_; +} + diff --git a/cas/src/model/DescribeOrderDocumentRequest.cc b/cas/src/model/DescribeOrderDocumentRequest.cc index d3547f2d8..2ba44a064 100644 --- a/cas/src/model/DescribeOrderDocumentRequest.cc +++ b/cas/src/model/DescribeOrderDocumentRequest.cc @@ -33,7 +33,7 @@ std::string DescribeOrderDocumentRequest::getSourceIp()const void DescribeOrderDocumentRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeOrderDocumentRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeOrderDocumentRequest::getOrderId()const void DescribeOrderDocumentRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeOrderDocumentRequest::getType()const @@ -55,7 +55,7 @@ std::string DescribeOrderDocumentRequest::getType()const void DescribeOrderDocumentRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string DescribeOrderDocumentRequest::getLang()const @@ -66,6 +66,6 @@ std::string DescribeOrderDocumentRequest::getLang()const void DescribeOrderDocumentRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeOrderDocumentResult.cc b/cas/src/model/DescribeOrderDocumentResult.cc index 60f4d7320..179f209ad 100644 --- a/cas/src/model/DescribeOrderDocumentResult.cc +++ b/cas/src/model/DescribeOrderDocumentResult.cc @@ -35,10 +35,13 @@ DescribeOrderDocumentResult::~DescribeOrderDocumentResult() void DescribeOrderDocumentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOrderDocumentList = value["OrderDocumentList"]["OrderDocument"]; for (auto value : allOrderDocumentList) diff --git a/cas/src/model/DescribeOrderListRequest.cc b/cas/src/model/DescribeOrderListRequest.cc index 91ffa8610..fbbedfc60 100644 --- a/cas/src/model/DescribeOrderListRequest.cc +++ b/cas/src/model/DescribeOrderListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeOrderListRequest::getSourceIp()const void DescribeOrderListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeOrderListRequest::getShowSize()const @@ -44,7 +44,7 @@ int DescribeOrderListRequest::getShowSize()const void DescribeOrderListRequest::setShowSize(int showSize) { showSize_ = showSize; - setParameter("ShowSize", std::to_string(showSize)); + setCoreParameter("ShowSize", std::to_string(showSize)); } long DescribeOrderListRequest::getBrandId()const @@ -55,7 +55,7 @@ long DescribeOrderListRequest::getBrandId()const void DescribeOrderListRequest::setBrandId(long brandId) { brandId_ = brandId; - setParameter("BrandId", std::to_string(brandId)); + setCoreParameter("BrandId", std::to_string(brandId)); } int DescribeOrderListRequest::getCurrentPage()const @@ -66,7 +66,24 @@ int DescribeOrderListRequest::getCurrentPage()const void DescribeOrderListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::vector DescribeOrderListRequest::getTag()const +{ + return tag_; +} + +void DescribeOrderListRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } std::string DescribeOrderListRequest::getKeyword()const @@ -77,7 +94,7 @@ std::string DescribeOrderListRequest::getKeyword()const void DescribeOrderListRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } std::string DescribeOrderListRequest::getLang()const @@ -88,7 +105,7 @@ std::string DescribeOrderListRequest::getLang()const void DescribeOrderListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeOrderListRequest::getStatus()const @@ -99,6 +116,6 @@ std::string DescribeOrderListRequest::getStatus()const void DescribeOrderListRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cas/src/model/DescribeOrderListResult.cc b/cas/src/model/DescribeOrderListResult.cc index 0e3fa5c21..809d639a2 100644 --- a/cas/src/model/DescribeOrderListResult.cc +++ b/cas/src/model/DescribeOrderListResult.cc @@ -35,10 +35,13 @@ DescribeOrderListResult::~DescribeOrderListResult() void DescribeOrderListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOrderList = value["OrderList"]["Order"]; for (auto value : allOrderList) @@ -82,6 +85,8 @@ void DescribeOrderListResult::parse(const std::string &payload) orderListObject.afterDate = std::stol(value["AfterDate"].asString()); if(!value["ShowCancel"].isNull()) orderListObject.showCancel = value["ShowCancel"].asString() == "true"; + if(!value["ShowRefund"].isNull()) + orderListObject.showRefund = value["ShowRefund"].asString() == "true"; orderList_.push_back(orderListObject); } if(!value["TotalCount"].isNull()) diff --git a/cas/src/model/DescribeOrderMaterialRequest.cc b/cas/src/model/DescribeOrderMaterialRequest.cc index 38de0a3b8..38f9678bf 100644 --- a/cas/src/model/DescribeOrderMaterialRequest.cc +++ b/cas/src/model/DescribeOrderMaterialRequest.cc @@ -33,7 +33,7 @@ std::string DescribeOrderMaterialRequest::getSourceIp()const void DescribeOrderMaterialRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } long DescribeOrderMaterialRequest::getOrderId()const @@ -44,7 +44,7 @@ long DescribeOrderMaterialRequest::getOrderId()const void DescribeOrderMaterialRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string DescribeOrderMaterialRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeOrderMaterialRequest::getLang()const void DescribeOrderMaterialRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeOrderMaterialResult.cc b/cas/src/model/DescribeOrderMaterialResult.cc index aa020df8b..127a38248 100644 --- a/cas/src/model/DescribeOrderMaterialResult.cc +++ b/cas/src/model/DescribeOrderMaterialResult.cc @@ -35,10 +35,13 @@ DescribeOrderMaterialResult::~DescribeOrderMaterialResult() void DescribeOrderMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CompanyName"].isNull()) companyName_ = value["CompanyName"].asString(); diff --git a/cas/src/model/DescribeOrderRefundRecordRequest.cc b/cas/src/model/DescribeOrderRefundRecordRequest.cc new file mode 100644 index 000000000..1e851df9b --- /dev/null +++ b/cas/src/model/DescribeOrderRefundRecordRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cas::Model::DescribeOrderRefundRecordRequest; + +DescribeOrderRefundRecordRequest::DescribeOrderRefundRecordRequest() : + RpcServiceRequest("cas", "2018-08-13", "DescribeOrderRefundRecord") +{} + +DescribeOrderRefundRecordRequest::~DescribeOrderRefundRecordRequest() +{} + +std::string DescribeOrderRefundRecordRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeOrderRefundRecordRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/cas/src/model/DescribeOrderRefundRecordResult.cc b/cas/src/model/DescribeOrderRefundRecordResult.cc new file mode 100644 index 000000000..0f2538099 --- /dev/null +++ b/cas/src/model/DescribeOrderRefundRecordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeOrderRefundRecordResult::DescribeOrderRefundRecordResult() : + ServiceResult() +{} + +DescribeOrderRefundRecordResult::DescribeOrderRefundRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOrderRefundRecordResult::~DescribeOrderRefundRecordResult() +{} + +void DescribeOrderRefundRecordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["OrderRefundList"].isNull()) + orderRefundList_ = value["OrderRefundList"].asString(); + +} + +std::string DescribeOrderRefundRecordResult::getOrderRefundList()const +{ + return orderRefundList_; +} + diff --git a/cas/src/model/DescribeRenewOrderRequest.cc b/cas/src/model/DescribeRenewOrderRequest.cc new file mode 100644 index 000000000..bb0241301 --- /dev/null +++ b/cas/src/model/DescribeRenewOrderRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cas::Model::DescribeRenewOrderRequest; + +DescribeRenewOrderRequest::DescribeRenewOrderRequest() : + RpcServiceRequest("cas", "2018-08-13", "DescribeRenewOrder") +{} + +DescribeRenewOrderRequest::~DescribeRenewOrderRequest() +{} + +std::string DescribeRenewOrderRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeRenewOrderRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeRenewOrderRequest::getOrderId()const +{ + return orderId_; +} + +void DescribeRenewOrderRequest::setOrderId(long orderId) +{ + orderId_ = orderId; + setCoreParameter("OrderId", std::to_string(orderId)); +} + diff --git a/cas/src/model/DescribeRenewOrderResult.cc b/cas/src/model/DescribeRenewOrderResult.cc new file mode 100644 index 000000000..b6b5b25c3 --- /dev/null +++ b/cas/src/model/DescribeRenewOrderResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeRenewOrderResult::DescribeRenewOrderResult() : + ServiceResult() +{} + +DescribeRenewOrderResult::DescribeRenewOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRenewOrderResult::~DescribeRenewOrderResult() +{} + +void DescribeRenewOrderResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + +} + +long DescribeRenewOrderResult::getOrderId()const +{ + return orderId_; +} + diff --git a/cas/src/model/DescribeSignatureCapacityRequest.cc b/cas/src/model/DescribeSignatureCapacityRequest.cc index 6edf190c9..8d4996bf6 100644 --- a/cas/src/model/DescribeSignatureCapacityRequest.cc +++ b/cas/src/model/DescribeSignatureCapacityRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSignatureCapacityRequest::getSourceIp()const void DescribeSignatureCapacityRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeSignatureCapacityRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeSignatureCapacityRequest::getLang()const void DescribeSignatureCapacityRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeSignatureCapacityResult.cc b/cas/src/model/DescribeSignatureCapacityResult.cc index 9e62ccf76..c930396aa 100644 --- a/cas/src/model/DescribeSignatureCapacityResult.cc +++ b/cas/src/model/DescribeSignatureCapacityResult.cc @@ -35,10 +35,13 @@ DescribeSignatureCapacityResult::~DescribeSignatureCapacityResult() void DescribeSignatureCapacityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RemainCount"].isNull()) remainCount_ = std::stoi(value["RemainCount"].asString()); diff --git a/cas/src/model/DescribeSignatureProductStateRequest.cc b/cas/src/model/DescribeSignatureProductStateRequest.cc new file mode 100644 index 000000000..3740b37a1 --- /dev/null +++ b/cas/src/model/DescribeSignatureProductStateRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cas::Model::DescribeSignatureProductStateRequest; + +DescribeSignatureProductStateRequest::DescribeSignatureProductStateRequest() : + RpcServiceRequest("cas", "2018-08-13", "DescribeSignatureProductState") +{} + +DescribeSignatureProductStateRequest::~DescribeSignatureProductStateRequest() +{} + +std::string DescribeSignatureProductStateRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeSignatureProductStateRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/cas/src/model/DescribeSignatureProductStateResult.cc b/cas/src/model/DescribeSignatureProductStateResult.cc new file mode 100644 index 000000000..aac4ff906 --- /dev/null +++ b/cas/src/model/DescribeSignatureProductStateResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeSignatureProductStateResult::DescribeSignatureProductStateResult() : + ServiceResult() +{} + +DescribeSignatureProductStateResult::DescribeSignatureProductStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSignatureProductStateResult::~DescribeSignatureProductStateResult() +{} + +void DescribeSignatureProductStateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string DescribeSignatureProductStateResult::getState()const +{ + return state_; +} + diff --git a/cas/src/model/DescribeSignatureStatisticsRequest.cc b/cas/src/model/DescribeSignatureStatisticsRequest.cc index 7eaf51892..e1ce09497 100644 --- a/cas/src/model/DescribeSignatureStatisticsRequest.cc +++ b/cas/src/model/DescribeSignatureStatisticsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSignatureStatisticsRequest::getSourceIp()const void DescribeSignatureStatisticsRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeSignatureStatisticsRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeSignatureStatisticsRequest::getLang()const void DescribeSignatureStatisticsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeSignatureStatisticsResult.cc b/cas/src/model/DescribeSignatureStatisticsResult.cc index 9a0aa4519..6c2e5bbe5 100644 --- a/cas/src/model/DescribeSignatureStatisticsResult.cc +++ b/cas/src/model/DescribeSignatureStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeSignatureStatisticsResult::~DescribeSignatureStatisticsResult() void DescribeSignatureStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDayDataList = value["DayDataList"]["dayData"]; for (auto value : allDayDataList) diff --git a/cas/src/model/DescribeSignatureTradeDetailRequest.cc b/cas/src/model/DescribeSignatureTradeDetailRequest.cc index de32c309a..9f3d275cc 100644 --- a/cas/src/model/DescribeSignatureTradeDetailRequest.cc +++ b/cas/src/model/DescribeSignatureTradeDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSignatureTradeDetailRequest::getSourceIp()const void DescribeSignatureTradeDetailRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeSignatureTradeDetailRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeSignatureTradeDetailRequest::getLang()const void DescribeSignatureTradeDetailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeSignatureTradeDetailRequest::getTransactionId()const @@ -55,6 +55,6 @@ std::string DescribeSignatureTradeDetailRequest::getTransactionId()const void DescribeSignatureTradeDetailRequest::setTransactionId(const std::string& transactionId) { transactionId_ = transactionId; - setParameter("TransactionId", transactionId); + setCoreParameter("TransactionId", transactionId); } diff --git a/cas/src/model/DescribeSignatureTradeDetailResult.cc b/cas/src/model/DescribeSignatureTradeDetailResult.cc index ddaee31d3..2967edad4 100644 --- a/cas/src/model/DescribeSignatureTradeDetailResult.cc +++ b/cas/src/model/DescribeSignatureTradeDetailResult.cc @@ -35,10 +35,13 @@ DescribeSignatureTradeDetailResult::~DescribeSignatureTradeDetailResult() void DescribeSignatureTradeDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/cas/src/model/DescribeSignatureTradeListRequest.cc b/cas/src/model/DescribeSignatureTradeListRequest.cc index d10c31f30..0985d0b51 100644 --- a/cas/src/model/DescribeSignatureTradeListRequest.cc +++ b/cas/src/model/DescribeSignatureTradeListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSignatureTradeListRequest::getSourceIp()const void DescribeSignatureTradeListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeSignatureTradeListRequest::getShowSize()const @@ -44,7 +44,7 @@ int DescribeSignatureTradeListRequest::getShowSize()const void DescribeSignatureTradeListRequest::setShowSize(int showSize) { showSize_ = showSize; - setParameter("ShowSize", std::to_string(showSize)); + setCoreParameter("ShowSize", std::to_string(showSize)); } std::string DescribeSignatureTradeListRequest::getSearchType()const @@ -55,7 +55,7 @@ std::string DescribeSignatureTradeListRequest::getSearchType()const void DescribeSignatureTradeListRequest::setSearchType(const std::string& searchType) { searchType_ = searchType; - setParameter("SearchType", searchType); + setCoreParameter("SearchType", searchType); } int DescribeSignatureTradeListRequest::getCurrentPage()const @@ -66,7 +66,7 @@ int DescribeSignatureTradeListRequest::getCurrentPage()const void DescribeSignatureTradeListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeSignatureTradeListRequest::getLang()const @@ -77,7 +77,7 @@ std::string DescribeSignatureTradeListRequest::getLang()const void DescribeSignatureTradeListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeSignatureTradeListRequest::getSearchValue()const @@ -88,6 +88,6 @@ std::string DescribeSignatureTradeListRequest::getSearchValue()const void DescribeSignatureTradeListRequest::setSearchValue(const std::string& searchValue) { searchValue_ = searchValue; - setParameter("SearchValue", searchValue); + setCoreParameter("SearchValue", searchValue); } diff --git a/cas/src/model/DescribeSignatureTradeListResult.cc b/cas/src/model/DescribeSignatureTradeListResult.cc index 046210dc5..98fd46f3e 100644 --- a/cas/src/model/DescribeSignatureTradeListResult.cc +++ b/cas/src/model/DescribeSignatureTradeListResult.cc @@ -35,10 +35,13 @@ DescribeSignatureTradeListResult::~DescribeSignatureTradeListResult() void DescribeSignatureTradeListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTradeList = value["TradeList"]["trade"]; for (auto value : allTradeList) diff --git a/cas/src/model/DescribeStsAuthStatusRequest.cc b/cas/src/model/DescribeStsAuthStatusRequest.cc index 46ab24832..09b245df7 100644 --- a/cas/src/model/DescribeStsAuthStatusRequest.cc +++ b/cas/src/model/DescribeStsAuthStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeStsAuthStatusRequest::getSourceIp()const void DescribeStsAuthStatusRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeStsAuthStatusRequest::getCloudProduct()const @@ -44,7 +44,7 @@ std::string DescribeStsAuthStatusRequest::getCloudProduct()const void DescribeStsAuthStatusRequest::setCloudProduct(const std::string& cloudProduct) { cloudProduct_ = cloudProduct; - setParameter("CloudProduct", cloudProduct); + setCoreParameter("CloudProduct", cloudProduct); } std::string DescribeStsAuthStatusRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeStsAuthStatusRequest::getLang()const void DescribeStsAuthStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cas/src/model/DescribeStsAuthStatusResult.cc b/cas/src/model/DescribeStsAuthStatusResult.cc index 589352919..cfe4bb35b 100644 --- a/cas/src/model/DescribeStsAuthStatusResult.cc +++ b/cas/src/model/DescribeStsAuthStatusResult.cc @@ -35,10 +35,13 @@ DescribeStsAuthStatusResult::~DescribeStsAuthStatusResult() void DescribeStsAuthStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cas/src/model/ListTagKeysRequest.cc b/cas/src/model/ListTagKeysRequest.cc new file mode 100644 index 000000000..d72ae222a --- /dev/null +++ b/cas/src/model/ListTagKeysRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cas::Model::ListTagKeysRequest; + +ListTagKeysRequest::ListTagKeysRequest() : + RpcServiceRequest("cas", "2018-08-13", "ListTagKeys") +{} + +ListTagKeysRequest::~ListTagKeysRequest() +{} + +std::string ListTagKeysRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ListTagKeysRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ListTagKeysRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagKeysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListTagKeysRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTagKeysRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int ListTagKeysRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListTagKeysRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListTagKeysRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagKeysRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/cas/src/model/ListTagKeysResult.cc b/cas/src/model/ListTagKeysResult.cc new file mode 100644 index 000000000..29705651c --- /dev/null +++ b/cas/src/model/ListTagKeysResult.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::Cas; +using namespace AlibabaCloud::Cas::Model; + +ListTagKeysResult::ListTagKeysResult() : + ServiceResult() +{} + +ListTagKeysResult::ListTagKeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagKeysResult::~ListTagKeysResult() +{} + +void ListTagKeysResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTagKeys = value["TagKeys"]["TagKey"]; + for (auto value : allTagKeys) + { + TagKey tagKeysObject; + if(!value["TagKey"].isNull()) + tagKeysObject.tagKey = value["TagKey"].asString(); + if(!value["TagCount"].isNull()) + tagKeysObject.tagCount = std::stoi(value["TagCount"].asString()); + tagKeys_.push_back(tagKeysObject); + } + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListTagKeysResult::getTotalCount()const +{ + return totalCount_; +} + +int ListTagKeysResult::getPageSize()const +{ + return pageSize_; +} + +int ListTagKeysResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector ListTagKeysResult::getTagKeys()const +{ + return tagKeys_; +} + diff --git a/cas/src/model/ListTagResourcesRequest.cc b/cas/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..3b32c746c --- /dev/null +++ b/cas/src/model/ListTagResourcesRequest.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 + +using AlibabaCloud::Cas::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("cas", "2018-08-13", "ListTagResources") +{} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string ListTagResourcesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ListTagResourcesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/cas/src/model/ListTagResourcesResult.cc b/cas/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..7e2c3048c --- /dev/null +++ b/cas/src/model/ListTagResourcesResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTagResources = value["TagResources"]["TagResource"]; + for (auto value : allTagResources) + { + TagResource tagResourcesObject; + if(!value["ResourceType"].isNull()) + tagResourcesObject.resourceType = value["ResourceType"].asString(); + if(!value["ResourceId"].isNull()) + tagResourcesObject.resourceId = value["ResourceId"].asString(); + if(!value["TagKey"].isNull()) + tagResourcesObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagResourcesObject.tagValue = value["TagValue"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/cas/src/model/TagResourcesRequest.cc b/cas/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..51a14aea8 --- /dev/null +++ b/cas/src/model/TagResourcesRequest.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 + +using AlibabaCloud::Cas::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("cas", "2018-08-13", "TagResources") +{} + +TagResourcesRequest::~TagResourcesRequest() +{} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string TagResourcesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void TagResourcesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string TagResourcesRequest::getScope()const +{ + return scope_; +} + +void TagResourcesRequest::setScope(const std::string& scope) +{ + scope_ = scope; + setCoreParameter("Scope", scope); +} + +std::string TagResourcesRequest::getTagOwnerUid()const +{ + return tagOwnerUid_; +} + +void TagResourcesRequest::setTagOwnerUid(const std::string& tagOwnerUid) +{ + tagOwnerUid_ = tagOwnerUid; + setCoreParameter("TagOwnerUid", tagOwnerUid); +} + +std::string TagResourcesRequest::getTagOwnerBid()const +{ + return tagOwnerBid_; +} + +void TagResourcesRequest::setTagOwnerBid(const std::string& tagOwnerBid) +{ + tagOwnerBid_ = tagOwnerBid; + setCoreParameter("TagOwnerBid", tagOwnerBid); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/cas/src/model/TagResourcesResult.cc b/cas/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..3d4b13efe --- /dev/null +++ b/cas/src/model/TagResourcesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cas/src/model/UntagResourcesRequest.cc b/cas/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..3b4c94af5 --- /dev/null +++ b/cas/src/model/UntagResourcesRequest.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 + +using AlibabaCloud::Cas::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("cas", "2018-08-13", "UntagResources") +{} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setCoreParameter("All", all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string UntagResourcesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void UntagResourcesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int i = 0; i!= tagKey.size(); i++) + setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i)); +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/cas/src/model/UntagResourcesResult.cc b/cas/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..6d343e277 --- /dev/null +++ b/cas/src/model/UntagResourcesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/CMakeLists.txt b/cbn/CMakeLists.txt index 3ebb6d540..52bbf8463 100644 --- a/cbn/CMakeLists.txt +++ b/cbn/CMakeLists.txt @@ -25,46 +25,60 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenResult.h include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h + include/alibabacloud/cbn/model/ModifyFlowLogAttributeRequest.h + include/alibabacloud/cbn/model/ModifyFlowLogAttributeResult.h + include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h + include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesRequest.h include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesResult.h include/alibabacloud/cbn/model/DescribePublishedRouteEntriesRequest.h include/alibabacloud/cbn/model/DescribePublishedRouteEntriesResult.h - include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h - include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesRequest.h include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesResult.h - include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeRequest.h - include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeResult.h include/alibabacloud/cbn/model/UntagResourcesRequest.h include/alibabacloud/cbn/model/UntagResourcesResult.h + include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeRequest.h + include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeResult.h include/alibabacloud/cbn/model/DisableCenVbrHealthCheckRequest.h include/alibabacloud/cbn/model/DisableCenVbrHealthCheckResult.h - include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h - include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcResult.h include/alibabacloud/cbn/model/CreateCenRequest.h include/alibabacloud/cbn/model/CreateCenResult.h + include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h + include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcResult.h include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckRequest.h include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcRequest.h include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcResult.h + include/alibabacloud/cbn/model/DeleteFlowlogRequest.h + include/alibabacloud/cbn/model/DeleteFlowlogResult.h include/alibabacloud/cbn/model/DescribeCenGeographicSpansRequest.h include/alibabacloud/cbn/model/DescribeCenGeographicSpansResult.h - include/alibabacloud/cbn/model/DescribeCensRequest.h - include/alibabacloud/cbn/model/DescribeCensResult.h include/alibabacloud/cbn/model/EnableCenVbrHealthCheckRequest.h include/alibabacloud/cbn/model/EnableCenVbrHealthCheckResult.h + include/alibabacloud/cbn/model/DescribeCensRequest.h + include/alibabacloud/cbn/model/DescribeCensResult.h include/alibabacloud/cbn/model/DeleteCenRequest.h include/alibabacloud/cbn/model/DeleteCenResult.h include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsRequest.h include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageResult.h + include/alibabacloud/cbn/model/DescribeFlowlogsRequest.h + include/alibabacloud/cbn/model/DescribeFlowlogsResult.h + include/alibabacloud/cbn/model/DeactiveFlowLogRequest.h + include/alibabacloud/cbn/model/DeactiveFlowLogResult.h include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h include/alibabacloud/cbn/model/DescribeChildInstanceRegionsResult.h + include/alibabacloud/cbn/model/ActiveFlowLogRequest.h + include/alibabacloud/cbn/model/ActiveFlowLogResult.h + include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h + include/alibabacloud/cbn/model/ModifyCenRouteMapResult.h include/alibabacloud/cbn/model/DetachCenChildInstanceRequest.h include/alibabacloud/cbn/model/DetachCenChildInstanceResult.h include/alibabacloud/cbn/model/AttachCenChildInstanceRequest.h include/alibabacloud/cbn/model/AttachCenChildInstanceResult.h + include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h + include/alibabacloud/cbn/model/CreateCenRouteMapResult.h include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitRequest.h include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitResult.h include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h @@ -83,12 +97,20 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesRequest.h include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesResult.h + include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.h + include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecRequest.h include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecResult.h + include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h + include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h + include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h + include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesResult.h include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h + include/alibabacloud/cbn/model/CreateFlowlogRequest.h + include/alibabacloud/cbn/model/CreateFlowlogResult.h include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthRequest.h include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthResult.h include/alibabacloud/cbn/model/PublishRouteEntriesRequest.h @@ -102,46 +124,60 @@ set(cbn_src src/model/ResolveAndRouteServiceInCenResult.cc src/model/CreateCenBandwidthPackageRequest.cc src/model/CreateCenBandwidthPackageResult.cc + src/model/ModifyFlowLogAttributeRequest.cc + src/model/ModifyFlowLogAttributeResult.cc + src/model/DescribeGrantRulesToCenRequest.cc + src/model/DescribeGrantRulesToCenResult.cc src/model/WithdrawPublishedRouteEntriesRequest.cc src/model/WithdrawPublishedRouteEntriesResult.cc src/model/DescribePublishedRouteEntriesRequest.cc src/model/DescribePublishedRouteEntriesResult.cc - src/model/DescribeGrantRulesToCenRequest.cc - src/model/DescribeGrantRulesToCenResult.cc src/model/DescribeCenPrivateZoneRoutesRequest.cc src/model/DescribeCenPrivateZoneRoutesResult.cc - src/model/ModifyCenBandwidthPackageAttributeRequest.cc - src/model/ModifyCenBandwidthPackageAttributeResult.cc src/model/UntagResourcesRequest.cc src/model/UntagResourcesResult.cc + src/model/ModifyCenBandwidthPackageAttributeRequest.cc + src/model/ModifyCenBandwidthPackageAttributeResult.cc src/model/DisableCenVbrHealthCheckRequest.cc src/model/DisableCenVbrHealthCheckResult.cc - src/model/UnroutePrivateZoneInCenToVpcRequest.cc - src/model/UnroutePrivateZoneInCenToVpcResult.cc src/model/CreateCenRequest.cc src/model/CreateCenResult.cc + src/model/UnroutePrivateZoneInCenToVpcRequest.cc + src/model/UnroutePrivateZoneInCenToVpcResult.cc src/model/DescribeCenVbrHealthCheckRequest.cc src/model/DescribeCenVbrHealthCheckResult.cc src/model/RoutePrivateZoneInCenToVpcRequest.cc src/model/RoutePrivateZoneInCenToVpcResult.cc + src/model/DeleteFlowlogRequest.cc + src/model/DeleteFlowlogResult.cc src/model/DescribeCenGeographicSpansRequest.cc src/model/DescribeCenGeographicSpansResult.cc - src/model/DescribeCensRequest.cc - src/model/DescribeCensResult.cc src/model/EnableCenVbrHealthCheckRequest.cc src/model/EnableCenVbrHealthCheckResult.cc + src/model/DescribeCensRequest.cc + src/model/DescribeCensResult.cc src/model/DeleteCenRequest.cc src/model/DeleteCenResult.cc src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc src/model/DescribeCenInterRegionBandwidthLimitsResult.cc src/model/UnassociateCenBandwidthPackageRequest.cc src/model/UnassociateCenBandwidthPackageResult.cc + src/model/DescribeFlowlogsRequest.cc + src/model/DescribeFlowlogsResult.cc + src/model/DeactiveFlowLogRequest.cc + src/model/DeactiveFlowLogResult.cc src/model/DescribeChildInstanceRegionsRequest.cc src/model/DescribeChildInstanceRegionsResult.cc + src/model/ActiveFlowLogRequest.cc + src/model/ActiveFlowLogResult.cc + src/model/ModifyCenRouteMapRequest.cc + src/model/ModifyCenRouteMapResult.cc src/model/DetachCenChildInstanceRequest.cc src/model/DetachCenChildInstanceResult.cc src/model/AttachCenChildInstanceRequest.cc src/model/AttachCenChildInstanceResult.cc + src/model/CreateCenRouteMapRequest.cc + src/model/CreateCenRouteMapResult.cc src/model/SetCenInterRegionBandwidthLimitRequest.cc src/model/SetCenInterRegionBandwidthLimitResult.cc src/model/DeleteCenBandwidthPackageRequest.cc @@ -160,12 +196,20 @@ set(cbn_src src/model/DeleteRouteServiceInCenResult.cc src/model/DescribeCenAttachedChildInstancesRequest.cc src/model/DescribeCenAttachedChildInstancesResult.cc + src/model/DeleteCenRouteMapRequest.cc + src/model/DeleteCenRouteMapResult.cc src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc src/model/DescribeCenAttachedChildInstanceAttributeResult.cc src/model/ModifyCenBandwidthPackageSpecRequest.cc src/model/ModifyCenBandwidthPackageSpecResult.cc + src/model/DescribeCenRouteMapsRequest.cc + src/model/DescribeCenRouteMapsResult.cc + src/model/DescribeCenChildInstanceRouteEntriesRequest.cc + src/model/DescribeCenChildInstanceRouteEntriesResult.cc src/model/DescribeCenBandwidthPackagesRequest.cc src/model/DescribeCenBandwidthPackagesResult.cc + src/model/CreateFlowlogRequest.cc + src/model/CreateFlowlogResult.cc src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc src/model/PublishRouteEntriesRequest.cc diff --git a/cbn/include/alibabacloud/cbn/CbnClient.h b/cbn/include/alibabacloud/cbn/CbnClient.h index b496048f7..994397f02 100644 --- a/cbn/include/alibabacloud/cbn/CbnClient.h +++ b/cbn/include/alibabacloud/cbn/CbnClient.h @@ -26,46 +26,60 @@ #include "model/ResolveAndRouteServiceInCenResult.h" #include "model/CreateCenBandwidthPackageRequest.h" #include "model/CreateCenBandwidthPackageResult.h" +#include "model/ModifyFlowLogAttributeRequest.h" +#include "model/ModifyFlowLogAttributeResult.h" +#include "model/DescribeGrantRulesToCenRequest.h" +#include "model/DescribeGrantRulesToCenResult.h" #include "model/WithdrawPublishedRouteEntriesRequest.h" #include "model/WithdrawPublishedRouteEntriesResult.h" #include "model/DescribePublishedRouteEntriesRequest.h" #include "model/DescribePublishedRouteEntriesResult.h" -#include "model/DescribeGrantRulesToCenRequest.h" -#include "model/DescribeGrantRulesToCenResult.h" #include "model/DescribeCenPrivateZoneRoutesRequest.h" #include "model/DescribeCenPrivateZoneRoutesResult.h" -#include "model/ModifyCenBandwidthPackageAttributeRequest.h" -#include "model/ModifyCenBandwidthPackageAttributeResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" +#include "model/ModifyCenBandwidthPackageAttributeRequest.h" +#include "model/ModifyCenBandwidthPackageAttributeResult.h" #include "model/DisableCenVbrHealthCheckRequest.h" #include "model/DisableCenVbrHealthCheckResult.h" -#include "model/UnroutePrivateZoneInCenToVpcRequest.h" -#include "model/UnroutePrivateZoneInCenToVpcResult.h" #include "model/CreateCenRequest.h" #include "model/CreateCenResult.h" +#include "model/UnroutePrivateZoneInCenToVpcRequest.h" +#include "model/UnroutePrivateZoneInCenToVpcResult.h" #include "model/DescribeCenVbrHealthCheckRequest.h" #include "model/DescribeCenVbrHealthCheckResult.h" #include "model/RoutePrivateZoneInCenToVpcRequest.h" #include "model/RoutePrivateZoneInCenToVpcResult.h" +#include "model/DeleteFlowlogRequest.h" +#include "model/DeleteFlowlogResult.h" #include "model/DescribeCenGeographicSpansRequest.h" #include "model/DescribeCenGeographicSpansResult.h" -#include "model/DescribeCensRequest.h" -#include "model/DescribeCensResult.h" #include "model/EnableCenVbrHealthCheckRequest.h" #include "model/EnableCenVbrHealthCheckResult.h" +#include "model/DescribeCensRequest.h" +#include "model/DescribeCensResult.h" #include "model/DeleteCenRequest.h" #include "model/DeleteCenResult.h" #include "model/DescribeCenInterRegionBandwidthLimitsRequest.h" #include "model/DescribeCenInterRegionBandwidthLimitsResult.h" #include "model/UnassociateCenBandwidthPackageRequest.h" #include "model/UnassociateCenBandwidthPackageResult.h" +#include "model/DescribeFlowlogsRequest.h" +#include "model/DescribeFlowlogsResult.h" +#include "model/DeactiveFlowLogRequest.h" +#include "model/DeactiveFlowLogResult.h" #include "model/DescribeChildInstanceRegionsRequest.h" #include "model/DescribeChildInstanceRegionsResult.h" +#include "model/ActiveFlowLogRequest.h" +#include "model/ActiveFlowLogResult.h" +#include "model/ModifyCenRouteMapRequest.h" +#include "model/ModifyCenRouteMapResult.h" #include "model/DetachCenChildInstanceRequest.h" #include "model/DetachCenChildInstanceResult.h" #include "model/AttachCenChildInstanceRequest.h" #include "model/AttachCenChildInstanceResult.h" +#include "model/CreateCenRouteMapRequest.h" +#include "model/CreateCenRouteMapResult.h" #include "model/SetCenInterRegionBandwidthLimitRequest.h" #include "model/SetCenInterRegionBandwidthLimitResult.h" #include "model/DeleteCenBandwidthPackageRequest.h" @@ -84,12 +98,20 @@ #include "model/DeleteRouteServiceInCenResult.h" #include "model/DescribeCenAttachedChildInstancesRequest.h" #include "model/DescribeCenAttachedChildInstancesResult.h" +#include "model/DeleteCenRouteMapRequest.h" +#include "model/DeleteCenRouteMapResult.h" #include "model/DescribeCenAttachedChildInstanceAttributeRequest.h" #include "model/DescribeCenAttachedChildInstanceAttributeResult.h" #include "model/ModifyCenBandwidthPackageSpecRequest.h" #include "model/ModifyCenBandwidthPackageSpecResult.h" +#include "model/DescribeCenRouteMapsRequest.h" +#include "model/DescribeCenRouteMapsResult.h" +#include "model/DescribeCenChildInstanceRouteEntriesRequest.h" +#include "model/DescribeCenChildInstanceRouteEntriesResult.h" #include "model/DescribeCenBandwidthPackagesRequest.h" #include "model/DescribeCenBandwidthPackagesResult.h" +#include "model/CreateFlowlogRequest.h" +#include "model/CreateFlowlogResult.h" #include "model/DescribeCenGeographicSpanRemainingBandwidthRequest.h" #include "model/DescribeCenGeographicSpanRemainingBandwidthResult.h" #include "model/PublishRouteEntriesRequest.h" @@ -111,48 +133,54 @@ namespace AlibabaCloud typedef Outcome CreateCenBandwidthPackageOutcome; typedef std::future CreateCenBandwidthPackageOutcomeCallable; typedef std::function&)> CreateCenBandwidthPackageAsyncHandler; + typedef Outcome ModifyFlowLogAttributeOutcome; + typedef std::future ModifyFlowLogAttributeOutcomeCallable; + typedef std::function&)> ModifyFlowLogAttributeAsyncHandler; + typedef Outcome DescribeGrantRulesToCenOutcome; + typedef std::future DescribeGrantRulesToCenOutcomeCallable; + typedef std::function&)> DescribeGrantRulesToCenAsyncHandler; typedef Outcome WithdrawPublishedRouteEntriesOutcome; typedef std::future WithdrawPublishedRouteEntriesOutcomeCallable; typedef std::function&)> WithdrawPublishedRouteEntriesAsyncHandler; typedef Outcome DescribePublishedRouteEntriesOutcome; typedef std::future DescribePublishedRouteEntriesOutcomeCallable; typedef std::function&)> DescribePublishedRouteEntriesAsyncHandler; - typedef Outcome DescribeGrantRulesToCenOutcome; - typedef std::future DescribeGrantRulesToCenOutcomeCallable; - typedef std::function&)> DescribeGrantRulesToCenAsyncHandler; typedef Outcome DescribeCenPrivateZoneRoutesOutcome; typedef std::future DescribeCenPrivateZoneRoutesOutcomeCallable; typedef std::function&)> DescribeCenPrivateZoneRoutesAsyncHandler; - typedef Outcome ModifyCenBandwidthPackageAttributeOutcome; - typedef std::future ModifyCenBandwidthPackageAttributeOutcomeCallable; - typedef std::function&)> ModifyCenBandwidthPackageAttributeAsyncHandler; typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome ModifyCenBandwidthPackageAttributeOutcome; + typedef std::future ModifyCenBandwidthPackageAttributeOutcomeCallable; + typedef std::function&)> ModifyCenBandwidthPackageAttributeAsyncHandler; typedef Outcome DisableCenVbrHealthCheckOutcome; typedef std::future DisableCenVbrHealthCheckOutcomeCallable; typedef std::function&)> DisableCenVbrHealthCheckAsyncHandler; - typedef Outcome UnroutePrivateZoneInCenToVpcOutcome; - typedef std::future UnroutePrivateZoneInCenToVpcOutcomeCallable; - typedef std::function&)> UnroutePrivateZoneInCenToVpcAsyncHandler; typedef Outcome CreateCenOutcome; typedef std::future CreateCenOutcomeCallable; typedef std::function&)> CreateCenAsyncHandler; + typedef Outcome UnroutePrivateZoneInCenToVpcOutcome; + typedef std::future UnroutePrivateZoneInCenToVpcOutcomeCallable; + typedef std::function&)> UnroutePrivateZoneInCenToVpcAsyncHandler; typedef Outcome DescribeCenVbrHealthCheckOutcome; typedef std::future DescribeCenVbrHealthCheckOutcomeCallable; typedef std::function&)> DescribeCenVbrHealthCheckAsyncHandler; typedef Outcome RoutePrivateZoneInCenToVpcOutcome; typedef std::future RoutePrivateZoneInCenToVpcOutcomeCallable; typedef std::function&)> RoutePrivateZoneInCenToVpcAsyncHandler; + typedef Outcome DeleteFlowlogOutcome; + typedef std::future DeleteFlowlogOutcomeCallable; + typedef std::function&)> DeleteFlowlogAsyncHandler; typedef Outcome DescribeCenGeographicSpansOutcome; typedef std::future DescribeCenGeographicSpansOutcomeCallable; typedef std::function&)> DescribeCenGeographicSpansAsyncHandler; - typedef Outcome DescribeCensOutcome; - typedef std::future DescribeCensOutcomeCallable; - typedef std::function&)> DescribeCensAsyncHandler; typedef Outcome EnableCenVbrHealthCheckOutcome; typedef std::future EnableCenVbrHealthCheckOutcomeCallable; typedef std::function&)> EnableCenVbrHealthCheckAsyncHandler; + typedef Outcome DescribeCensOutcome; + typedef std::future DescribeCensOutcomeCallable; + typedef std::function&)> DescribeCensAsyncHandler; typedef Outcome DeleteCenOutcome; typedef std::future DeleteCenOutcomeCallable; typedef std::function&)> DeleteCenAsyncHandler; @@ -162,15 +190,30 @@ namespace AlibabaCloud typedef Outcome UnassociateCenBandwidthPackageOutcome; typedef std::future UnassociateCenBandwidthPackageOutcomeCallable; typedef std::function&)> UnassociateCenBandwidthPackageAsyncHandler; + typedef Outcome DescribeFlowlogsOutcome; + typedef std::future DescribeFlowlogsOutcomeCallable; + typedef std::function&)> DescribeFlowlogsAsyncHandler; + typedef Outcome DeactiveFlowLogOutcome; + typedef std::future DeactiveFlowLogOutcomeCallable; + typedef std::function&)> DeactiveFlowLogAsyncHandler; typedef Outcome DescribeChildInstanceRegionsOutcome; typedef std::future DescribeChildInstanceRegionsOutcomeCallable; typedef std::function&)> DescribeChildInstanceRegionsAsyncHandler; + typedef Outcome ActiveFlowLogOutcome; + typedef std::future ActiveFlowLogOutcomeCallable; + typedef std::function&)> ActiveFlowLogAsyncHandler; + typedef Outcome ModifyCenRouteMapOutcome; + typedef std::future ModifyCenRouteMapOutcomeCallable; + typedef std::function&)> ModifyCenRouteMapAsyncHandler; typedef Outcome DetachCenChildInstanceOutcome; typedef std::future DetachCenChildInstanceOutcomeCallable; typedef std::function&)> DetachCenChildInstanceAsyncHandler; typedef Outcome AttachCenChildInstanceOutcome; typedef std::future AttachCenChildInstanceOutcomeCallable; typedef std::function&)> AttachCenChildInstanceAsyncHandler; + typedef Outcome CreateCenRouteMapOutcome; + typedef std::future CreateCenRouteMapOutcomeCallable; + typedef std::function&)> CreateCenRouteMapAsyncHandler; typedef Outcome SetCenInterRegionBandwidthLimitOutcome; typedef std::future SetCenInterRegionBandwidthLimitOutcomeCallable; typedef std::function&)> SetCenInterRegionBandwidthLimitAsyncHandler; @@ -198,15 +241,27 @@ namespace AlibabaCloud typedef Outcome DescribeCenAttachedChildInstancesOutcome; typedef std::future DescribeCenAttachedChildInstancesOutcomeCallable; typedef std::function&)> DescribeCenAttachedChildInstancesAsyncHandler; + typedef Outcome DeleteCenRouteMapOutcome; + typedef std::future DeleteCenRouteMapOutcomeCallable; + typedef std::function&)> DeleteCenRouteMapAsyncHandler; typedef Outcome DescribeCenAttachedChildInstanceAttributeOutcome; typedef std::future DescribeCenAttachedChildInstanceAttributeOutcomeCallable; typedef std::function&)> DescribeCenAttachedChildInstanceAttributeAsyncHandler; typedef Outcome ModifyCenBandwidthPackageSpecOutcome; typedef std::future ModifyCenBandwidthPackageSpecOutcomeCallable; typedef std::function&)> ModifyCenBandwidthPackageSpecAsyncHandler; + typedef Outcome DescribeCenRouteMapsOutcome; + typedef std::future DescribeCenRouteMapsOutcomeCallable; + typedef std::function&)> DescribeCenRouteMapsAsyncHandler; + typedef Outcome DescribeCenChildInstanceRouteEntriesOutcome; + typedef std::future DescribeCenChildInstanceRouteEntriesOutcomeCallable; + typedef std::function&)> DescribeCenChildInstanceRouteEntriesAsyncHandler; typedef Outcome DescribeCenBandwidthPackagesOutcome; typedef std::future DescribeCenBandwidthPackagesOutcomeCallable; typedef std::function&)> DescribeCenBandwidthPackagesAsyncHandler; + typedef Outcome CreateFlowlogOutcome; + typedef std::future CreateFlowlogOutcomeCallable; + typedef std::function&)> CreateFlowlogAsyncHandler; typedef Outcome DescribeCenGeographicSpanRemainingBandwidthOutcome; typedef std::future DescribeCenGeographicSpanRemainingBandwidthOutcomeCallable; typedef std::function&)> DescribeCenGeographicSpanRemainingBandwidthAsyncHandler; @@ -227,48 +282,54 @@ namespace AlibabaCloud CreateCenBandwidthPackageOutcome createCenBandwidthPackage(const Model::CreateCenBandwidthPackageRequest &request)const; void createCenBandwidthPackageAsync(const Model::CreateCenBandwidthPackageRequest& request, const CreateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCenBandwidthPackageOutcomeCallable createCenBandwidthPackageCallable(const Model::CreateCenBandwidthPackageRequest& request) const; + ModifyFlowLogAttributeOutcome modifyFlowLogAttribute(const Model::ModifyFlowLogAttributeRequest &request)const; + void modifyFlowLogAttributeAsync(const Model::ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowLogAttributeOutcomeCallable modifyFlowLogAttributeCallable(const Model::ModifyFlowLogAttributeRequest& request) const; + DescribeGrantRulesToCenOutcome describeGrantRulesToCen(const Model::DescribeGrantRulesToCenRequest &request)const; + void describeGrantRulesToCenAsync(const Model::DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrantRulesToCenOutcomeCallable describeGrantRulesToCenCallable(const Model::DescribeGrantRulesToCenRequest& request) const; WithdrawPublishedRouteEntriesOutcome withdrawPublishedRouteEntries(const Model::WithdrawPublishedRouteEntriesRequest &request)const; void withdrawPublishedRouteEntriesAsync(const Model::WithdrawPublishedRouteEntriesRequest& request, const WithdrawPublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; WithdrawPublishedRouteEntriesOutcomeCallable withdrawPublishedRouteEntriesCallable(const Model::WithdrawPublishedRouteEntriesRequest& request) const; DescribePublishedRouteEntriesOutcome describePublishedRouteEntries(const Model::DescribePublishedRouteEntriesRequest &request)const; void describePublishedRouteEntriesAsync(const Model::DescribePublishedRouteEntriesRequest& request, const DescribePublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePublishedRouteEntriesOutcomeCallable describePublishedRouteEntriesCallable(const Model::DescribePublishedRouteEntriesRequest& request) const; - DescribeGrantRulesToCenOutcome describeGrantRulesToCen(const Model::DescribeGrantRulesToCenRequest &request)const; - void describeGrantRulesToCenAsync(const Model::DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeGrantRulesToCenOutcomeCallable describeGrantRulesToCenCallable(const Model::DescribeGrantRulesToCenRequest& request) const; DescribeCenPrivateZoneRoutesOutcome describeCenPrivateZoneRoutes(const Model::DescribeCenPrivateZoneRoutesRequest &request)const; void describeCenPrivateZoneRoutesAsync(const Model::DescribeCenPrivateZoneRoutesRequest& request, const DescribeCenPrivateZoneRoutesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCenPrivateZoneRoutesOutcomeCallable describeCenPrivateZoneRoutesCallable(const Model::DescribeCenPrivateZoneRoutesRequest& request) const; - ModifyCenBandwidthPackageAttributeOutcome modifyCenBandwidthPackageAttribute(const Model::ModifyCenBandwidthPackageAttributeRequest &request)const; - void modifyCenBandwidthPackageAttributeAsync(const Model::ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyCenBandwidthPackageAttributeOutcomeCallable modifyCenBandwidthPackageAttributeCallable(const Model::ModifyCenBandwidthPackageAttributeRequest& request) const; UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + ModifyCenBandwidthPackageAttributeOutcome modifyCenBandwidthPackageAttribute(const Model::ModifyCenBandwidthPackageAttributeRequest &request)const; + void modifyCenBandwidthPackageAttributeAsync(const Model::ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCenBandwidthPackageAttributeOutcomeCallable modifyCenBandwidthPackageAttributeCallable(const Model::ModifyCenBandwidthPackageAttributeRequest& request) const; DisableCenVbrHealthCheckOutcome disableCenVbrHealthCheck(const Model::DisableCenVbrHealthCheckRequest &request)const; void disableCenVbrHealthCheckAsync(const Model::DisableCenVbrHealthCheckRequest& request, const DisableCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableCenVbrHealthCheckOutcomeCallable disableCenVbrHealthCheckCallable(const Model::DisableCenVbrHealthCheckRequest& request) const; - UnroutePrivateZoneInCenToVpcOutcome unroutePrivateZoneInCenToVpc(const Model::UnroutePrivateZoneInCenToVpcRequest &request)const; - void unroutePrivateZoneInCenToVpcAsync(const Model::UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnroutePrivateZoneInCenToVpcOutcomeCallable unroutePrivateZoneInCenToVpcCallable(const Model::UnroutePrivateZoneInCenToVpcRequest& request) const; CreateCenOutcome createCen(const Model::CreateCenRequest &request)const; void createCenAsync(const Model::CreateCenRequest& request, const CreateCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCenOutcomeCallable createCenCallable(const Model::CreateCenRequest& request) const; + UnroutePrivateZoneInCenToVpcOutcome unroutePrivateZoneInCenToVpc(const Model::UnroutePrivateZoneInCenToVpcRequest &request)const; + void unroutePrivateZoneInCenToVpcAsync(const Model::UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnroutePrivateZoneInCenToVpcOutcomeCallable unroutePrivateZoneInCenToVpcCallable(const Model::UnroutePrivateZoneInCenToVpcRequest& request) const; DescribeCenVbrHealthCheckOutcome describeCenVbrHealthCheck(const Model::DescribeCenVbrHealthCheckRequest &request)const; void describeCenVbrHealthCheckAsync(const Model::DescribeCenVbrHealthCheckRequest& request, const DescribeCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCenVbrHealthCheckOutcomeCallable describeCenVbrHealthCheckCallable(const Model::DescribeCenVbrHealthCheckRequest& request) const; RoutePrivateZoneInCenToVpcOutcome routePrivateZoneInCenToVpc(const Model::RoutePrivateZoneInCenToVpcRequest &request)const; void routePrivateZoneInCenToVpcAsync(const Model::RoutePrivateZoneInCenToVpcRequest& request, const RoutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RoutePrivateZoneInCenToVpcOutcomeCallable routePrivateZoneInCenToVpcCallable(const Model::RoutePrivateZoneInCenToVpcRequest& request) const; + DeleteFlowlogOutcome deleteFlowlog(const Model::DeleteFlowlogRequest &request)const; + void deleteFlowlogAsync(const Model::DeleteFlowlogRequest& request, const DeleteFlowlogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowlogOutcomeCallable deleteFlowlogCallable(const Model::DeleteFlowlogRequest& request) const; DescribeCenGeographicSpansOutcome describeCenGeographicSpans(const Model::DescribeCenGeographicSpansRequest &request)const; void describeCenGeographicSpansAsync(const Model::DescribeCenGeographicSpansRequest& request, const DescribeCenGeographicSpansAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCenGeographicSpansOutcomeCallable describeCenGeographicSpansCallable(const Model::DescribeCenGeographicSpansRequest& request) const; - DescribeCensOutcome describeCens(const Model::DescribeCensRequest &request)const; - void describeCensAsync(const Model::DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCensOutcomeCallable describeCensCallable(const Model::DescribeCensRequest& request) const; EnableCenVbrHealthCheckOutcome enableCenVbrHealthCheck(const Model::EnableCenVbrHealthCheckRequest &request)const; void enableCenVbrHealthCheckAsync(const Model::EnableCenVbrHealthCheckRequest& request, const EnableCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableCenVbrHealthCheckOutcomeCallable enableCenVbrHealthCheckCallable(const Model::EnableCenVbrHealthCheckRequest& request) const; + DescribeCensOutcome describeCens(const Model::DescribeCensRequest &request)const; + void describeCensAsync(const Model::DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCensOutcomeCallable describeCensCallable(const Model::DescribeCensRequest& request) const; DeleteCenOutcome deleteCen(const Model::DeleteCenRequest &request)const; void deleteCenAsync(const Model::DeleteCenRequest& request, const DeleteCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCenOutcomeCallable deleteCenCallable(const Model::DeleteCenRequest& request) const; @@ -278,15 +339,30 @@ namespace AlibabaCloud UnassociateCenBandwidthPackageOutcome unassociateCenBandwidthPackage(const Model::UnassociateCenBandwidthPackageRequest &request)const; void unassociateCenBandwidthPackageAsync(const Model::UnassociateCenBandwidthPackageRequest& request, const UnassociateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateCenBandwidthPackageOutcomeCallable unassociateCenBandwidthPackageCallable(const Model::UnassociateCenBandwidthPackageRequest& request) const; + DescribeFlowlogsOutcome describeFlowlogs(const Model::DescribeFlowlogsRequest &request)const; + void describeFlowlogsAsync(const Model::DescribeFlowlogsRequest& request, const DescribeFlowlogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowlogsOutcomeCallable describeFlowlogsCallable(const Model::DescribeFlowlogsRequest& request) const; + DeactiveFlowLogOutcome deactiveFlowLog(const Model::DeactiveFlowLogRequest &request)const; + void deactiveFlowLogAsync(const Model::DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactiveFlowLogOutcomeCallable deactiveFlowLogCallable(const Model::DeactiveFlowLogRequest& request) const; DescribeChildInstanceRegionsOutcome describeChildInstanceRegions(const Model::DescribeChildInstanceRegionsRequest &request)const; void describeChildInstanceRegionsAsync(const Model::DescribeChildInstanceRegionsRequest& request, const DescribeChildInstanceRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeChildInstanceRegionsOutcomeCallable describeChildInstanceRegionsCallable(const Model::DescribeChildInstanceRegionsRequest& request) const; + ActiveFlowLogOutcome activeFlowLog(const Model::ActiveFlowLogRequest &request)const; + void activeFlowLogAsync(const Model::ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActiveFlowLogOutcomeCallable activeFlowLogCallable(const Model::ActiveFlowLogRequest& request) const; + ModifyCenRouteMapOutcome modifyCenRouteMap(const Model::ModifyCenRouteMapRequest &request)const; + void modifyCenRouteMapAsync(const Model::ModifyCenRouteMapRequest& request, const ModifyCenRouteMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCenRouteMapOutcomeCallable modifyCenRouteMapCallable(const Model::ModifyCenRouteMapRequest& request) const; DetachCenChildInstanceOutcome detachCenChildInstance(const Model::DetachCenChildInstanceRequest &request)const; void detachCenChildInstanceAsync(const Model::DetachCenChildInstanceRequest& request, const DetachCenChildInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachCenChildInstanceOutcomeCallable detachCenChildInstanceCallable(const Model::DetachCenChildInstanceRequest& request) const; AttachCenChildInstanceOutcome attachCenChildInstance(const Model::AttachCenChildInstanceRequest &request)const; void attachCenChildInstanceAsync(const Model::AttachCenChildInstanceRequest& request, const AttachCenChildInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachCenChildInstanceOutcomeCallable attachCenChildInstanceCallable(const Model::AttachCenChildInstanceRequest& request) const; + CreateCenRouteMapOutcome createCenRouteMap(const Model::CreateCenRouteMapRequest &request)const; + void createCenRouteMapAsync(const Model::CreateCenRouteMapRequest& request, const CreateCenRouteMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCenRouteMapOutcomeCallable createCenRouteMapCallable(const Model::CreateCenRouteMapRequest& request) const; SetCenInterRegionBandwidthLimitOutcome setCenInterRegionBandwidthLimit(const Model::SetCenInterRegionBandwidthLimitRequest &request)const; void setCenInterRegionBandwidthLimitAsync(const Model::SetCenInterRegionBandwidthLimitRequest& request, const SetCenInterRegionBandwidthLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetCenInterRegionBandwidthLimitOutcomeCallable setCenInterRegionBandwidthLimitCallable(const Model::SetCenInterRegionBandwidthLimitRequest& request) const; @@ -314,15 +390,27 @@ namespace AlibabaCloud DescribeCenAttachedChildInstancesOutcome describeCenAttachedChildInstances(const Model::DescribeCenAttachedChildInstancesRequest &request)const; void describeCenAttachedChildInstancesAsync(const Model::DescribeCenAttachedChildInstancesRequest& request, const DescribeCenAttachedChildInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCenAttachedChildInstancesOutcomeCallable describeCenAttachedChildInstancesCallable(const Model::DescribeCenAttachedChildInstancesRequest& request) const; + DeleteCenRouteMapOutcome deleteCenRouteMap(const Model::DeleteCenRouteMapRequest &request)const; + void deleteCenRouteMapAsync(const Model::DeleteCenRouteMapRequest& request, const DeleteCenRouteMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCenRouteMapOutcomeCallable deleteCenRouteMapCallable(const Model::DeleteCenRouteMapRequest& request) const; DescribeCenAttachedChildInstanceAttributeOutcome describeCenAttachedChildInstanceAttribute(const Model::DescribeCenAttachedChildInstanceAttributeRequest &request)const; void describeCenAttachedChildInstanceAttributeAsync(const Model::DescribeCenAttachedChildInstanceAttributeRequest& request, const DescribeCenAttachedChildInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCenAttachedChildInstanceAttributeOutcomeCallable describeCenAttachedChildInstanceAttributeCallable(const Model::DescribeCenAttachedChildInstanceAttributeRequest& request) const; ModifyCenBandwidthPackageSpecOutcome modifyCenBandwidthPackageSpec(const Model::ModifyCenBandwidthPackageSpecRequest &request)const; void modifyCenBandwidthPackageSpecAsync(const Model::ModifyCenBandwidthPackageSpecRequest& request, const ModifyCenBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCenBandwidthPackageSpecOutcomeCallable modifyCenBandwidthPackageSpecCallable(const Model::ModifyCenBandwidthPackageSpecRequest& request) const; + DescribeCenRouteMapsOutcome describeCenRouteMaps(const Model::DescribeCenRouteMapsRequest &request)const; + void describeCenRouteMapsAsync(const Model::DescribeCenRouteMapsRequest& request, const DescribeCenRouteMapsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenRouteMapsOutcomeCallable describeCenRouteMapsCallable(const Model::DescribeCenRouteMapsRequest& request) const; + DescribeCenChildInstanceRouteEntriesOutcome describeCenChildInstanceRouteEntries(const Model::DescribeCenChildInstanceRouteEntriesRequest &request)const; + void describeCenChildInstanceRouteEntriesAsync(const Model::DescribeCenChildInstanceRouteEntriesRequest& request, const DescribeCenChildInstanceRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenChildInstanceRouteEntriesOutcomeCallable describeCenChildInstanceRouteEntriesCallable(const Model::DescribeCenChildInstanceRouteEntriesRequest& request) const; DescribeCenBandwidthPackagesOutcome describeCenBandwidthPackages(const Model::DescribeCenBandwidthPackagesRequest &request)const; void describeCenBandwidthPackagesAsync(const Model::DescribeCenBandwidthPackagesRequest& request, const DescribeCenBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCenBandwidthPackagesOutcomeCallable describeCenBandwidthPackagesCallable(const Model::DescribeCenBandwidthPackagesRequest& request) const; + CreateFlowlogOutcome createFlowlog(const Model::CreateFlowlogRequest &request)const; + void createFlowlogAsync(const Model::CreateFlowlogRequest& request, const CreateFlowlogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowlogOutcomeCallable createFlowlogCallable(const Model::CreateFlowlogRequest& request) const; DescribeCenGeographicSpanRemainingBandwidthOutcome describeCenGeographicSpanRemainingBandwidth(const Model::DescribeCenGeographicSpanRemainingBandwidthRequest &request)const; void describeCenGeographicSpanRemainingBandwidthAsync(const Model::DescribeCenGeographicSpanRemainingBandwidthRequest& request, const DescribeCenGeographicSpanRemainingBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCenGeographicSpanRemainingBandwidthOutcomeCallable describeCenGeographicSpanRemainingBandwidthCallable(const Model::DescribeCenGeographicSpanRemainingBandwidthRequest& request) const; diff --git a/cbn/include/alibabacloud/cbn/model/ActiveFlowLogRequest.h b/cbn/include/alibabacloud/cbn/model/ActiveFlowLogRequest.h new file mode 100644 index 000000000..29555cd51 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ActiveFlowLogRequest.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_CBN_MODEL_ACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_ACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ActiveFlowLogRequest : public RpcServiceRequest + { + + public: + ActiveFlowLogRequest(); + ~ActiveFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string cenId_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ActiveFlowLogResult.h b/cbn/include/alibabacloud/cbn/model/ActiveFlowLogResult.h new file mode 100644 index 000000000..42dea1e56 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ActiveFlowLogResult.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_CBN_MODEL_ACTIVEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_ACTIVEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ActiveFlowLogResult : public ServiceResult + { + public: + + + ActiveFlowLogResult(); + explicit ActiveFlowLogResult(const std::string &payload); + ~ActiveFlowLogResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ACTIVEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h new file mode 100644 index 000000000..cef458f0b --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_CREATECENROUTEMAPREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENROUTEMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenRouteMapRequest : public RpcServiceRequest + { + + public: + CreateCenRouteMapRequest(); + ~CreateCenRouteMapRequest(); + + std::vector getRouteTypes()const; + void setRouteTypes(const std::vector& routeTypes); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCidrMatchMode()const; + void setCidrMatchMode(const std::string& cidrMatchMode); + std::string getCommunityMatchMode()const; + void setCommunityMatchMode(const std::string& communityMatchMode); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getMapResult()const; + void setMapResult(const std::string& mapResult); + int getAsPathLength()const; + void setAsPathLength(int asPathLength); + std::string getDescription()const; + void setDescription(const std::string& description); + bool getSourceInstanceIdsReverseMatch()const; + void setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch); + int getNextPriority()const; + void setNextPriority(int nextPriority); + std::vector getDestinationCidrBlocks()const; + void setDestinationCidrBlocks(const std::vector& destinationCidrBlocks); + std::vector getDestinationRouteTableIds()const; + void setDestinationRouteTableIds(const std::vector& destinationRouteTableIds); + std::vector getSourceInstanceIds()const; + void setSourceInstanceIds(const std::vector& sourceInstanceIds); + std::vector getSourceRegionIds()const; + void setSourceRegionIds(const std::vector& sourceRegionIds); + std::string getTransmitDirection()const; + void setTransmitDirection(const std::string& transmitDirection); + std::vector getDestinationInstanceIds()const; + void setDestinationInstanceIds(const std::vector& destinationInstanceIds); + std::vector getMatchAsns()const; + void setMatchAsns(const std::vector& matchAsns); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPreference()const; + void setPreference(int preference); + bool getDestinationInstanceIdsReverseMatch()const; + void setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + std::vector getDestinationChildInstanceTypes()const; + void setDestinationChildInstanceTypes(const std::vector& destinationChildInstanceTypes); + std::vector getSourceRouteTableIds()const; + void setSourceRouteTableIds(const std::vector& sourceRouteTableIds); + std::string getAsPathMatchMode()const; + void setAsPathMatchMode(const std::string& asPathMatchMode); + std::vector getSourceChildInstanceTypes()const; + void setSourceChildInstanceTypes(const std::vector& sourceChildInstanceTypes); + std::vector getMatchCommunitySet()const; + void setMatchCommunitySet(const std::vector& matchCommunitySet); + std::string getCommunityOperateMode()const; + void setCommunityOperateMode(const std::string& communityOperateMode); + std::string getCenRegionId()const; + void setCenRegionId(const std::string& cenRegionId); + std::vector getOperateCommunitySet()const; + void setOperateCommunitySet(const std::vector& operateCommunitySet); + + private: + std::vector routeTypes_; + long resourceOwnerId_; + std::string cidrMatchMode_; + std::string communityMatchMode_; + std::string cenId_; + std::string mapResult_; + int asPathLength_; + std::string description_; + bool sourceInstanceIdsReverseMatch_; + int nextPriority_; + std::vector destinationCidrBlocks_; + std::vector destinationRouteTableIds_; + std::vector sourceInstanceIds_; + std::vector sourceRegionIds_; + std::string transmitDirection_; + std::vector destinationInstanceIds_; + std::vector matchAsns_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int preference_; + bool destinationInstanceIdsReverseMatch_; + long ownerId_; + int priority_; + std::vector destinationChildInstanceTypes_; + std::vector sourceRouteTableIds_; + std::string asPathMatchMode_; + std::vector sourceChildInstanceTypes_; + std::vector matchCommunitySet_; + std::string communityOperateMode_; + std::string cenRegionId_; + std::vector operateCommunitySet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENROUTEMAPREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapResult.h b/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapResult.h new file mode 100644 index 000000000..7e0a561c9 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapResult.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_CBN_MODEL_CREATECENROUTEMAPRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENROUTEMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenRouteMapResult : public ServiceResult + { + public: + + + CreateCenRouteMapResult(); + explicit CreateCenRouteMapResult(const std::string &payload); + ~CreateCenRouteMapResult(); + std::string getRouteMapId()const; + + protected: + void parse(const std::string &payload); + private: + std::string routeMapId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENROUTEMAPRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateFlowlogRequest.h b/cbn/include/alibabacloud/cbn/model/CreateFlowlogRequest.h new file mode 100644 index 000000000..a67d5793a --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateFlowlogRequest.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_CBN_MODEL_CREATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateFlowlogRequest : public RpcServiceRequest + { + + public: + CreateFlowlogRequest(); + ~CreateFlowlogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + std::string getLogStoreName()const; + void setLogStoreName(const std::string& logStoreName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogName()const; + void setFlowLogName(const std::string& flowLogName); + + private: + long resourceOwnerId_; + std::string projectName_; + std::string logStoreName_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string cenId_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string flowLogName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateFlowlogResult.h b/cbn/include/alibabacloud/cbn/model/CreateFlowlogResult.h new file mode 100644 index 000000000..03b6d6405 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateFlowlogResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_CREATEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateFlowlogResult : public ServiceResult + { + public: + + + CreateFlowlogResult(); + explicit CreateFlowlogResult(const std::string &payload); + ~CreateFlowlogResult(); + std::string getFlowLogId()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string flowLogId_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeactiveFlowLogRequest.h b/cbn/include/alibabacloud/cbn/model/DeactiveFlowLogRequest.h new file mode 100644 index 000000000..afa5f6472 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeactiveFlowLogRequest.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_CBN_MODEL_DEACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DEACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeactiveFlowLogRequest : public RpcServiceRequest + { + + public: + DeactiveFlowLogRequest(); + ~DeactiveFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string cenId_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DEACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeactiveFlowLogResult.h b/cbn/include/alibabacloud/cbn/model/DeactiveFlowLogResult.h new file mode 100644 index 000000000..0aca76b8d --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeactiveFlowLogResult.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_CBN_MODEL_DEACTIVEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DEACTIVEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeactiveFlowLogResult : public ServiceResult + { + public: + + + DeactiveFlowLogResult(); + explicit DeactiveFlowLogResult(const std::string &payload); + ~DeactiveFlowLogResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DEACTIVEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.h b/cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.h new file mode 100644 index 000000000..903d4e18c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.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_CBN_MODEL_DELETECENROUTEMAPREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENROUTEMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenRouteMapRequest : public RpcServiceRequest + { + + public: + DeleteCenRouteMapRequest(); + ~DeleteCenRouteMapRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCenRegionId()const; + void setCenRegionId(const std::string& cenRegionId); + std::string getRouteMapId()const; + void setRouteMapId(const std::string& routeMapId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string cenRegionId_; + std::string routeMapId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENROUTEMAPREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h b/cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h new file mode 100644 index 000000000..6d4cb0001 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DELETECENROUTEMAPRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENROUTEMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenRouteMapResult : public ServiceResult + { + public: + + + DeleteCenRouteMapResult(); + explicit DeleteCenRouteMapResult(const std::string &payload); + ~DeleteCenRouteMapResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENROUTEMAPRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteFlowlogRequest.h b/cbn/include/alibabacloud/cbn/model/DeleteFlowlogRequest.h new file mode 100644 index 000000000..cebac056a --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteFlowlogRequest.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_CBN_MODEL_DELETEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteFlowlogRequest : public RpcServiceRequest + { + + public: + DeleteFlowlogRequest(); + ~DeleteFlowlogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string cenId_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteFlowlogResult.h b/cbn/include/alibabacloud/cbn/model/DeleteFlowlogResult.h new file mode 100644 index 000000000..d62c3bbfd --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteFlowlogResult.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_CBN_MODEL_DELETEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteFlowlogResult : public ServiceResult + { + public: + + + DeleteFlowlogResult(); + explicit DeleteFlowlogResult(const std::string &payload); + ~DeleteFlowlogResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h index 94660ea0e..b831a5901 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h @@ -42,10 +42,12 @@ namespace AlibabaCloud bool isCrossBorder; std::string businessStatus; std::string name; + std::string typeFor95; std::string bandwidthPackageChargeType; long bandwidth; std::string expiredTime; std::string creationTime; + std::string ratio; std::vector cenIds; std::string cenBandwidthPackageId; }; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h new file mode 100644 index 000000000..369e577c5 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.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_CBN_MODEL_DESCRIBECENCHILDINSTANCEROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENCHILDINSTANCEROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenChildInstanceRouteEntriesRequest : public RpcServiceRequest + { + + public: + DescribeCenChildInstanceRouteEntriesRequest(); + ~DescribeCenChildInstanceRouteEntriesRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + std::string childInstanceType_; + int pageNumber_; + std::string status_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENCHILDINSTANCEROUTEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesResult.h new file mode 100644 index 000000000..bea0ecc0b --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENCHILDINSTANCEROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENCHILDINSTANCEROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenChildInstanceRouteEntriesResult : public ServiceResult + { + public: + struct CenRouteEntry + { + struct CenRouteMapRecord + { + std::string regionId; + std::string routeMapId; + }; + struct Conflict + { + std::string status; + std::string instanceId; + std::string destinationCidrBlock; + std::string regionId; + std::string instanceType; + }; + std::string status; + std::string routeTableId; + std::vector communities; + std::vector conflicts; + std::string destinationCidrBlock; + std::string nextHopInstanceId; + bool operationalMode; + std::string nextHopType; + std::string nextHopRegionId; + std::string type; + std::vector cenRouteMapRecords; + std::vector asPaths; + std::string publishStatus; + }; + + + DescribeCenChildInstanceRouteEntriesResult(); + explicit DescribeCenChildInstanceRouteEntriesResult(const std::string &payload); + ~DescribeCenChildInstanceRouteEntriesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getCenRouteEntries()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector cenRouteEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENCHILDINSTANCEROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h index c28ac31ce..bc168a155 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); + std::string getStatus()const; + void setStatus(const std::string& status); private: long resourceOwnerId_; @@ -61,6 +63,7 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; + std::string status_; }; } diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h index 4e828ee39..a6ee95923 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h @@ -34,10 +34,27 @@ namespace AlibabaCloud public: struct CenRouteEntry { + struct CenRouteMapRecord + { + std::string regionId; + std::string routeMapId; + }; + struct CenOutRouteMapRecord + { + std::string regionId; + std::string routeMapId; + }; + std::vector cenOutRouteMapRecords; + std::string status; + std::string toOtherRegionStatus; std::string nextHopType; std::string nextHopRegionId; std::string type; + std::vector cenRouteMapRecords; + int preference; + std::vector communities; std::string destinationCidrBlock; + std::vector asPaths; std::string nextHopInstanceId; }; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h new file mode 100644 index 000000000..9e12d19dc --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.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_CBN_MODEL_DESCRIBECENROUTEMAPSREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENROUTEMAPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenRouteMapsRequest : public RpcServiceRequest + { + + public: + DescribeCenRouteMapsRequest(); + ~DescribeCenRouteMapsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCenRegionId()const; + void setCenRegionId(const std::string& cenRegionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getRouteMapId()const; + void setRouteMapId(const std::string& routeMapId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getTransmitDirection()const; + void setTransmitDirection(const std::string& transmitDirection); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string cenRegionId_; + int pageSize_; + std::string routeMapId_; + long ownerId_; + int pageNumber_; + std::string transmitDirection_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENROUTEMAPSREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h new file mode 100644 index 000000000..0444678e6 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.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_CBN_MODEL_DESCRIBECENROUTEMAPSRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENROUTEMAPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenRouteMapsResult : public ServiceResult + { + public: + struct RouteMap + { + std::string description; + bool sourceInstanceIdsReverseMatch; + std::string transmitDirection; + std::vector matchCommunitySet; + std::string cenRegionId; + std::vector sourceRouteTableIds; + std::vector destinationInstanceIds; + bool destinationInstanceIdsReverseMatch; + std::vector sourceInstanceIds; + std::vector destinationRouteTableIds; + std::vector destinationCidrBlocks; + std::string routeMapId; + std::vector operateCommunitySet; + std::vector destinationChildInstanceTypes; + std::string status; + int asPathLength; + int priority; + std::vector sourceChildInstanceTypes; + std::string asPathMatchMode; + std::string mapResult; + std::string cidrMatchMode; + std::vector routeTypes; + int preference; + std::string communityOperateMode; + std::string cenId; + int nextPriority; + std::string communityMatchMode; + std::vector matchAsns; + std::vector sourceRegionIds; + }; + + + DescribeCenRouteMapsResult(); + explicit DescribeCenRouteMapsResult(const std::string &payload); + ~DescribeCenRouteMapsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getRouteMaps()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector routeMaps_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENROUTEMAPSRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeFlowlogsRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeFlowlogsRequest.h new file mode 100644 index 000000000..628c7d0ec --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeFlowlogsRequest.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_CBN_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeFlowlogsRequest : public RpcServiceRequest + { + + public: + DescribeFlowlogsRequest(); + ~DescribeFlowlogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + std::string getLogStoreName()const; + void setLogStoreName(const std::string& logStoreName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + std::string getFlowLogName()const; + void setFlowLogName(const std::string& flowLogName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string projectName_; + std::string logStoreName_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string cenId_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string flowLogId_; + std::string flowLogName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeFlowlogsResult.h b/cbn/include/alibabacloud/cbn/model/DescribeFlowlogsResult.h new file mode 100644 index 000000000..93e17191a --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeFlowlogsResult.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_CBN_MODEL_DESCRIBEFLOWLOGSRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEFLOWLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeFlowlogsResult : public ServiceResult + { + public: + struct FlowLog + { + std::string status; + std::string flowLogName; + std::string description; + std::string logStoreName; + std::string projectName; + std::string creationTime; + std::string cenId; + std::string regionId; + std::string flowLogId; + }; + + + DescribeFlowlogsResult(); + explicit DescribeFlowlogsResult(const std::string &payload); + ~DescribeFlowlogsResult(); + std::string getTotalCount()const; + std::vector getFlowLogs()const; + std::string getPageSize()const; + std::string getPageNumber()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::vector flowLogs_; + std::string pageSize_; + std::string pageNumber_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEFLOWLOGSRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h b/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h new file mode 100644 index 000000000..7b6699055 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_MODIFYCENROUTEMAPREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENROUTEMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenRouteMapRequest : public RpcServiceRequest + { + + public: + ModifyCenRouteMapRequest(); + ~ModifyCenRouteMapRequest(); + + std::vector getRouteTypes()const; + void setRouteTypes(const std::vector& routeTypes); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCidrMatchMode()const; + void setCidrMatchMode(const std::string& cidrMatchMode); + std::string getCommunityMatchMode()const; + void setCommunityMatchMode(const std::string& communityMatchMode); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getMapResult()const; + void setMapResult(const std::string& mapResult); + int getAsPathLength()const; + void setAsPathLength(int asPathLength); + std::string getDescription()const; + void setDescription(const std::string& description); + bool getSourceInstanceIdsReverseMatch()const; + void setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch); + int getNextPriority()const; + void setNextPriority(int nextPriority); + std::vector getDestinationCidrBlocks()const; + void setDestinationCidrBlocks(const std::vector& destinationCidrBlocks); + std::vector getDestinationRouteTableIds()const; + void setDestinationRouteTableIds(const std::vector& destinationRouteTableIds); + std::vector getSourceInstanceIds()const; + void setSourceInstanceIds(const std::vector& sourceInstanceIds); + std::vector getSourceRegionIds()const; + void setSourceRegionIds(const std::vector& sourceRegionIds); + std::vector getDestinationInstanceIds()const; + void setDestinationInstanceIds(const std::vector& destinationInstanceIds); + std::vector getMatchAsns()const; + void setMatchAsns(const std::vector& matchAsns); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPreference()const; + void setPreference(int preference); + bool getDestinationInstanceIdsReverseMatch()const; + void setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch); + std::string getRouteMapId()const; + void setRouteMapId(const std::string& routeMapId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + std::vector getDestinationChildInstanceTypes()const; + void setDestinationChildInstanceTypes(const std::vector& destinationChildInstanceTypes); + std::vector getSourceRouteTableIds()const; + void setSourceRouteTableIds(const std::vector& sourceRouteTableIds); + std::string getAsPathMatchMode()const; + void setAsPathMatchMode(const std::string& asPathMatchMode); + std::vector getSourceChildInstanceTypes()const; + void setSourceChildInstanceTypes(const std::vector& sourceChildInstanceTypes); + std::vector getMatchCommunitySet()const; + void setMatchCommunitySet(const std::vector& matchCommunitySet); + std::string getCommunityOperateMode()const; + void setCommunityOperateMode(const std::string& communityOperateMode); + std::string getCenRegionId()const; + void setCenRegionId(const std::string& cenRegionId); + std::vector getOperateCommunitySet()const; + void setOperateCommunitySet(const std::vector& operateCommunitySet); + + private: + std::vector routeTypes_; + long resourceOwnerId_; + std::string cidrMatchMode_; + std::string communityMatchMode_; + std::string cenId_; + std::string mapResult_; + int asPathLength_; + std::string description_; + bool sourceInstanceIdsReverseMatch_; + int nextPriority_; + std::vector destinationCidrBlocks_; + std::vector destinationRouteTableIds_; + std::vector sourceInstanceIds_; + std::vector sourceRegionIds_; + std::vector destinationInstanceIds_; + std::vector matchAsns_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int preference_; + bool destinationInstanceIdsReverseMatch_; + std::string routeMapId_; + long ownerId_; + int priority_; + std::vector destinationChildInstanceTypes_; + std::vector sourceRouteTableIds_; + std::string asPathMatchMode_; + std::vector sourceChildInstanceTypes_; + std::vector matchCommunitySet_; + std::string communityOperateMode_; + std::string cenRegionId_; + std::vector operateCommunitySet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENROUTEMAPREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapResult.h b/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapResult.h new file mode 100644 index 000000000..2cfa92df5 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_MODIFYCENROUTEMAPRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENROUTEMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenRouteMapResult : public ServiceResult + { + public: + + + ModifyCenRouteMapResult(); + explicit ModifyCenRouteMapResult(const std::string &payload); + ~ModifyCenRouteMapResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENROUTEMAPRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeRequest.h b/cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeRequest.h new file mode 100644 index 000000000..6a6c9f323 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeRequest.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_CBN_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyFlowLogAttributeRequest : public RpcServiceRequest + { + + public: + ModifyFlowLogAttributeRequest(); + ~ModifyFlowLogAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + std::string getFlowLogName()const; + void setFlowLogName(const std::string& flowLogName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string cenId_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string flowLogId_; + std::string flowLogName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeResult.h b/cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeResult.h new file mode 100644 index 000000000..414493ded --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyFlowLogAttributeResult.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_CBN_MODEL_MODIFYFLOWLOGATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYFLOWLOGATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyFlowLogAttributeResult : public ServiceResult + { + public: + + + ModifyFlowLogAttributeResult(); + explicit ModifyFlowLogAttributeResult(const std::string &payload); + ~ModifyFlowLogAttributeResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYFLOWLOGATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h b/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h index f337c1ca3..47723273a 100644 --- a/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h +++ b/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::vector getAccessRegionIds()const; + void setAccessRegionIds(const std::vector& accessRegionIds); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getClientToken()const; @@ -49,8 +51,6 @@ namespace AlibabaCloud void setHost(const std::string& host); std::string getHostRegionId()const; void setHostRegionId(const std::string& hostRegionId); - std::string getAccessRegionId()const; - void setAccessRegionId(const std::string& accessRegionId); long getOwnerId()const; void setOwnerId(long ownerId); long getUpdateInterval()const; @@ -58,13 +58,13 @@ namespace AlibabaCloud private: long resourceOwnerId_; + std::vector accessRegionIds_; std::string resourceOwnerAccount_; std::string clientToken_; std::string cenId_; std::string ownerAccount_; std::string host_; std::string hostRegionId_; - std::string accessRegionId_; long ownerId_; long updateInterval_; diff --git a/cbn/src/CbnClient.cc b/cbn/src/CbnClient.cc index 8fa475531..4eea789ad 100644 --- a/cbn/src/CbnClient.cc +++ b/cbn/src/CbnClient.cc @@ -123,6 +123,78 @@ CbnClient::CreateCenBandwidthPackageOutcomeCallable CbnClient::createCenBandwidt return task->get_future(); } +CbnClient::ModifyFlowLogAttributeOutcome CbnClient::modifyFlowLogAttribute(const ModifyFlowLogAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowLogAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowLogAttributeOutcome(ModifyFlowLogAttributeResult(outcome.result())); + else + return ModifyFlowLogAttributeOutcome(outcome.error()); +} + +void CbnClient::modifyFlowLogAttributeAsync(const ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlowLogAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ModifyFlowLogAttributeOutcomeCallable CbnClient::modifyFlowLogAttributeCallable(const ModifyFlowLogAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlowLogAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeGrantRulesToCenOutcome CbnClient::describeGrantRulesToCen(const DescribeGrantRulesToCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrantRulesToCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrantRulesToCenOutcome(DescribeGrantRulesToCenResult(outcome.result())); + else + return DescribeGrantRulesToCenOutcome(outcome.error()); +} + +void CbnClient::describeGrantRulesToCenAsync(const DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrantRulesToCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeGrantRulesToCenOutcomeCallable CbnClient::describeGrantRulesToCenCallable(const DescribeGrantRulesToCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrantRulesToCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::WithdrawPublishedRouteEntriesOutcome CbnClient::withdrawPublishedRouteEntries(const WithdrawPublishedRouteEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,42 +267,6 @@ CbnClient::DescribePublishedRouteEntriesOutcomeCallable CbnClient::describePubli return task->get_future(); } -CbnClient::DescribeGrantRulesToCenOutcome CbnClient::describeGrantRulesToCen(const DescribeGrantRulesToCenRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeGrantRulesToCenOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeGrantRulesToCenOutcome(DescribeGrantRulesToCenResult(outcome.result())); - else - return DescribeGrantRulesToCenOutcome(outcome.error()); -} - -void CbnClient::describeGrantRulesToCenAsync(const DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeGrantRulesToCen(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CbnClient::DescribeGrantRulesToCenOutcomeCallable CbnClient::describeGrantRulesToCenCallable(const DescribeGrantRulesToCenRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeGrantRulesToCen(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CbnClient::DescribeCenPrivateZoneRoutesOutcome CbnClient::describeCenPrivateZoneRoutes(const DescribeCenPrivateZoneRoutesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,42 +303,6 @@ CbnClient::DescribeCenPrivateZoneRoutesOutcomeCallable CbnClient::describeCenPri return task->get_future(); } -CbnClient::ModifyCenBandwidthPackageAttributeOutcome CbnClient::modifyCenBandwidthPackageAttribute(const ModifyCenBandwidthPackageAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCenBandwidthPackageAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCenBandwidthPackageAttributeOutcome(ModifyCenBandwidthPackageAttributeResult(outcome.result())); - else - return ModifyCenBandwidthPackageAttributeOutcome(outcome.error()); -} - -void CbnClient::modifyCenBandwidthPackageAttributeAsync(const ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCenBandwidthPackageAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CbnClient::ModifyCenBandwidthPackageAttributeOutcomeCallable CbnClient::modifyCenBandwidthPackageAttributeCallable(const ModifyCenBandwidthPackageAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCenBandwidthPackageAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CbnClient::UntagResourcesOutcome CbnClient::untagResources(const UntagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +339,42 @@ CbnClient::UntagResourcesOutcomeCallable CbnClient::untagResourcesCallable(const return task->get_future(); } +CbnClient::ModifyCenBandwidthPackageAttributeOutcome CbnClient::modifyCenBandwidthPackageAttribute(const ModifyCenBandwidthPackageAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCenBandwidthPackageAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCenBandwidthPackageAttributeOutcome(ModifyCenBandwidthPackageAttributeResult(outcome.result())); + else + return ModifyCenBandwidthPackageAttributeOutcome(outcome.error()); +} + +void CbnClient::modifyCenBandwidthPackageAttributeAsync(const ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCenBandwidthPackageAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ModifyCenBandwidthPackageAttributeOutcomeCallable CbnClient::modifyCenBandwidthPackageAttributeCallable(const ModifyCenBandwidthPackageAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCenBandwidthPackageAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DisableCenVbrHealthCheckOutcome CbnClient::disableCenVbrHealthCheck(const DisableCenVbrHealthCheckRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,42 +411,6 @@ CbnClient::DisableCenVbrHealthCheckOutcomeCallable CbnClient::disableCenVbrHealt return task->get_future(); } -CbnClient::UnroutePrivateZoneInCenToVpcOutcome CbnClient::unroutePrivateZoneInCenToVpc(const UnroutePrivateZoneInCenToVpcRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnroutePrivateZoneInCenToVpcOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnroutePrivateZoneInCenToVpcOutcome(UnroutePrivateZoneInCenToVpcResult(outcome.result())); - else - return UnroutePrivateZoneInCenToVpcOutcome(outcome.error()); -} - -void CbnClient::unroutePrivateZoneInCenToVpcAsync(const UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unroutePrivateZoneInCenToVpc(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CbnClient::UnroutePrivateZoneInCenToVpcOutcomeCallable CbnClient::unroutePrivateZoneInCenToVpcCallable(const UnroutePrivateZoneInCenToVpcRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unroutePrivateZoneInCenToVpc(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CbnClient::CreateCenOutcome CbnClient::createCen(const CreateCenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +447,42 @@ CbnClient::CreateCenOutcomeCallable CbnClient::createCenCallable(const CreateCen return task->get_future(); } +CbnClient::UnroutePrivateZoneInCenToVpcOutcome CbnClient::unroutePrivateZoneInCenToVpc(const UnroutePrivateZoneInCenToVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnroutePrivateZoneInCenToVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnroutePrivateZoneInCenToVpcOutcome(UnroutePrivateZoneInCenToVpcResult(outcome.result())); + else + return UnroutePrivateZoneInCenToVpcOutcome(outcome.error()); +} + +void CbnClient::unroutePrivateZoneInCenToVpcAsync(const UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unroutePrivateZoneInCenToVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::UnroutePrivateZoneInCenToVpcOutcomeCallable CbnClient::unroutePrivateZoneInCenToVpcCallable(const UnroutePrivateZoneInCenToVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unroutePrivateZoneInCenToVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DescribeCenVbrHealthCheckOutcome CbnClient::describeCenVbrHealthCheck(const DescribeCenVbrHealthCheckRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +555,42 @@ CbnClient::RoutePrivateZoneInCenToVpcOutcomeCallable CbnClient::routePrivateZone return task->get_future(); } +CbnClient::DeleteFlowlogOutcome CbnClient::deleteFlowlog(const DeleteFlowlogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowlogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowlogOutcome(DeleteFlowlogResult(outcome.result())); + else + return DeleteFlowlogOutcome(outcome.error()); +} + +void CbnClient::deleteFlowlogAsync(const DeleteFlowlogRequest& request, const DeleteFlowlogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowlog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DeleteFlowlogOutcomeCallable CbnClient::deleteFlowlogCallable(const DeleteFlowlogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowlog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DescribeCenGeographicSpansOutcome CbnClient::describeCenGeographicSpans(const DescribeCenGeographicSpansRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,42 +627,6 @@ CbnClient::DescribeCenGeographicSpansOutcomeCallable CbnClient::describeCenGeogr return task->get_future(); } -CbnClient::DescribeCensOutcome CbnClient::describeCens(const DescribeCensRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCensOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCensOutcome(DescribeCensResult(outcome.result())); - else - return DescribeCensOutcome(outcome.error()); -} - -void CbnClient::describeCensAsync(const DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCens(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CbnClient::DescribeCensOutcomeCallable CbnClient::describeCensCallable(const DescribeCensRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCens(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CbnClient::EnableCenVbrHealthCheckOutcome CbnClient::enableCenVbrHealthCheck(const EnableCenVbrHealthCheckRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +663,42 @@ CbnClient::EnableCenVbrHealthCheckOutcomeCallable CbnClient::enableCenVbrHealthC return task->get_future(); } +CbnClient::DescribeCensOutcome CbnClient::describeCens(const DescribeCensRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCensOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCensOutcome(DescribeCensResult(outcome.result())); + else + return DescribeCensOutcome(outcome.error()); +} + +void CbnClient::describeCensAsync(const DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCens(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCensOutcomeCallable CbnClient::describeCensCallable(const DescribeCensRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCens(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DeleteCenOutcome CbnClient::deleteCen(const DeleteCenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +807,78 @@ CbnClient::UnassociateCenBandwidthPackageOutcomeCallable CbnClient::unassociateC return task->get_future(); } +CbnClient::DescribeFlowlogsOutcome CbnClient::describeFlowlogs(const DescribeFlowlogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFlowlogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFlowlogsOutcome(DescribeFlowlogsResult(outcome.result())); + else + return DescribeFlowlogsOutcome(outcome.error()); +} + +void CbnClient::describeFlowlogsAsync(const DescribeFlowlogsRequest& request, const DescribeFlowlogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFlowlogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeFlowlogsOutcomeCallable CbnClient::describeFlowlogsCallable(const DescribeFlowlogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFlowlogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DeactiveFlowLogOutcome CbnClient::deactiveFlowLog(const DeactiveFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeactiveFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactiveFlowLogOutcome(DeactiveFlowLogResult(outcome.result())); + else + return DeactiveFlowLogOutcome(outcome.error()); +} + +void CbnClient::deactiveFlowLogAsync(const DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactiveFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DeactiveFlowLogOutcomeCallable CbnClient::deactiveFlowLogCallable(const DeactiveFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactiveFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DescribeChildInstanceRegionsOutcome CbnClient::describeChildInstanceRegions(const DescribeChildInstanceRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +915,78 @@ CbnClient::DescribeChildInstanceRegionsOutcomeCallable CbnClient::describeChildI return task->get_future(); } +CbnClient::ActiveFlowLogOutcome CbnClient::activeFlowLog(const ActiveFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActiveFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActiveFlowLogOutcome(ActiveFlowLogResult(outcome.result())); + else + return ActiveFlowLogOutcome(outcome.error()); +} + +void CbnClient::activeFlowLogAsync(const ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activeFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ActiveFlowLogOutcomeCallable CbnClient::activeFlowLogCallable(const ActiveFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activeFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::ModifyCenRouteMapOutcome CbnClient::modifyCenRouteMap(const ModifyCenRouteMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCenRouteMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCenRouteMapOutcome(ModifyCenRouteMapResult(outcome.result())); + else + return ModifyCenRouteMapOutcome(outcome.error()); +} + +void CbnClient::modifyCenRouteMapAsync(const ModifyCenRouteMapRequest& request, const ModifyCenRouteMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCenRouteMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ModifyCenRouteMapOutcomeCallable CbnClient::modifyCenRouteMapCallable(const ModifyCenRouteMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCenRouteMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DetachCenChildInstanceOutcome CbnClient::detachCenChildInstance(const DetachCenChildInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1059,42 @@ CbnClient::AttachCenChildInstanceOutcomeCallable CbnClient::attachCenChildInstan return task->get_future(); } +CbnClient::CreateCenRouteMapOutcome CbnClient::createCenRouteMap(const CreateCenRouteMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCenRouteMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCenRouteMapOutcome(CreateCenRouteMapResult(outcome.result())); + else + return CreateCenRouteMapOutcome(outcome.error()); +} + +void CbnClient::createCenRouteMapAsync(const CreateCenRouteMapRequest& request, const CreateCenRouteMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCenRouteMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::CreateCenRouteMapOutcomeCallable CbnClient::createCenRouteMapCallable(const CreateCenRouteMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCenRouteMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::SetCenInterRegionBandwidthLimitOutcome CbnClient::setCenInterRegionBandwidthLimit(const SetCenInterRegionBandwidthLimitRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1419,42 @@ CbnClient::DescribeCenAttachedChildInstancesOutcomeCallable CbnClient::describeC return task->get_future(); } +CbnClient::DeleteCenRouteMapOutcome CbnClient::deleteCenRouteMap(const DeleteCenRouteMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCenRouteMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCenRouteMapOutcome(DeleteCenRouteMapResult(outcome.result())); + else + return DeleteCenRouteMapOutcome(outcome.error()); +} + +void CbnClient::deleteCenRouteMapAsync(const DeleteCenRouteMapRequest& request, const DeleteCenRouteMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCenRouteMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DeleteCenRouteMapOutcomeCallable CbnClient::deleteCenRouteMapCallable(const DeleteCenRouteMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCenRouteMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DescribeCenAttachedChildInstanceAttributeOutcome CbnClient::describeCenAttachedChildInstanceAttribute(const DescribeCenAttachedChildInstanceAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1527,78 @@ CbnClient::ModifyCenBandwidthPackageSpecOutcomeCallable CbnClient::modifyCenBand return task->get_future(); } +CbnClient::DescribeCenRouteMapsOutcome CbnClient::describeCenRouteMaps(const DescribeCenRouteMapsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenRouteMapsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenRouteMapsOutcome(DescribeCenRouteMapsResult(outcome.result())); + else + return DescribeCenRouteMapsOutcome(outcome.error()); +} + +void CbnClient::describeCenRouteMapsAsync(const DescribeCenRouteMapsRequest& request, const DescribeCenRouteMapsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenRouteMaps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenRouteMapsOutcomeCallable CbnClient::describeCenRouteMapsCallable(const DescribeCenRouteMapsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenRouteMaps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenChildInstanceRouteEntriesOutcome CbnClient::describeCenChildInstanceRouteEntries(const DescribeCenChildInstanceRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenChildInstanceRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenChildInstanceRouteEntriesOutcome(DescribeCenChildInstanceRouteEntriesResult(outcome.result())); + else + return DescribeCenChildInstanceRouteEntriesOutcome(outcome.error()); +} + +void CbnClient::describeCenChildInstanceRouteEntriesAsync(const DescribeCenChildInstanceRouteEntriesRequest& request, const DescribeCenChildInstanceRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenChildInstanceRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenChildInstanceRouteEntriesOutcomeCallable CbnClient::describeCenChildInstanceRouteEntriesCallable(const DescribeCenChildInstanceRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenChildInstanceRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DescribeCenBandwidthPackagesOutcome CbnClient::describeCenBandwidthPackages(const DescribeCenBandwidthPackagesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1635,42 @@ CbnClient::DescribeCenBandwidthPackagesOutcomeCallable CbnClient::describeCenBan return task->get_future(); } +CbnClient::CreateFlowlogOutcome CbnClient::createFlowlog(const CreateFlowlogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowlogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowlogOutcome(CreateFlowlogResult(outcome.result())); + else + return CreateFlowlogOutcome(outcome.error()); +} + +void CbnClient::createFlowlogAsync(const CreateFlowlogRequest& request, const CreateFlowlogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowlog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::CreateFlowlogOutcomeCallable CbnClient::createFlowlogCallable(const CreateFlowlogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowlog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DescribeCenGeographicSpanRemainingBandwidthOutcome CbnClient::describeCenGeographicSpanRemainingBandwidth(const DescribeCenGeographicSpanRemainingBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cbn/src/model/ActiveFlowLogRequest.cc b/cbn/src/model/ActiveFlowLogRequest.cc new file mode 100644 index 000000000..b272e1aa9 --- /dev/null +++ b/cbn/src/model/ActiveFlowLogRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::ActiveFlowLogRequest; + +ActiveFlowLogRequest::ActiveFlowLogRequest() : + RpcServiceRequest("cbn", "2017-09-12", "ActiveFlowLog") +{} + +ActiveFlowLogRequest::~ActiveFlowLogRequest() +{} + +long ActiveFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ActiveFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ActiveFlowLogRequest::getClientToken()const +{ + return clientToken_; +} + +void ActiveFlowLogRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ActiveFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void ActiveFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ActiveFlowLogRequest::getCenId()const +{ + return cenId_; +} + +void ActiveFlowLogRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string ActiveFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ActiveFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void ActiveFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ActiveFlowLogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/cbn/src/model/ActiveFlowLogResult.cc b/cbn/src/model/ActiveFlowLogResult.cc new file mode 100644 index 000000000..8c49e35e2 --- /dev/null +++ b/cbn/src/model/ActiveFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +ActiveFlowLogResult::ActiveFlowLogResult() : + ServiceResult() +{} + +ActiveFlowLogResult::ActiveFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActiveFlowLogResult::~ActiveFlowLogResult() +{} + +void ActiveFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string ActiveFlowLogResult::getSuccess()const +{ + return success_; +} + diff --git a/cbn/src/model/AssociateCenBandwidthPackageRequest.cc b/cbn/src/model/AssociateCenBandwidthPackageRequest.cc index d04a81e74..e2a06d8f5 100644 --- a/cbn/src/model/AssociateCenBandwidthPackageRequest.cc +++ b/cbn/src/model/AssociateCenBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long AssociateCenBandwidthPackageRequest::getResourceOwnerId()const void AssociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AssociateCenBandwidthPackageRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AssociateCenBandwidthPackageRequest::getResourceOwnerAccount()const void AssociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AssociateCenBandwidthPackageRequest::getCenId()const @@ -55,7 +55,7 @@ std::string AssociateCenBandwidthPackageRequest::getCenId()const void AssociateCenBandwidthPackageRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string AssociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const @@ -66,7 +66,7 @@ std::string AssociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const void AssociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) { cenBandwidthPackageId_ = cenBandwidthPackageId; - setParameter("CenBandwidthPackageId", cenBandwidthPackageId); + setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId); } std::string AssociateCenBandwidthPackageRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string AssociateCenBandwidthPackageRequest::getOwnerAccount()const void AssociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AssociateCenBandwidthPackageRequest::getOwnerId()const @@ -88,6 +88,6 @@ long AssociateCenBandwidthPackageRequest::getOwnerId()const void AssociateCenBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/AssociateCenBandwidthPackageResult.cc b/cbn/src/model/AssociateCenBandwidthPackageResult.cc index df6d412ee..e4350fca8 100644 --- a/cbn/src/model/AssociateCenBandwidthPackageResult.cc +++ b/cbn/src/model/AssociateCenBandwidthPackageResult.cc @@ -35,10 +35,13 @@ AssociateCenBandwidthPackageResult::~AssociateCenBandwidthPackageResult() void AssociateCenBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/AttachCenChildInstanceRequest.cc b/cbn/src/model/AttachCenChildInstanceRequest.cc index ea9d11b9f..ccad6d814 100644 --- a/cbn/src/model/AttachCenChildInstanceRequest.cc +++ b/cbn/src/model/AttachCenChildInstanceRequest.cc @@ -33,7 +33,7 @@ std::string AttachCenChildInstanceRequest::getChildInstanceId()const void AttachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId) { childInstanceId_ = childInstanceId; - setParameter("ChildInstanceId", childInstanceId); + setCoreParameter("ChildInstanceId", childInstanceId); } long AttachCenChildInstanceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AttachCenChildInstanceRequest::getResourceOwnerId()const void AttachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AttachCenChildInstanceRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string AttachCenChildInstanceRequest::getResourceOwnerAccount()const void AttachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AttachCenChildInstanceRequest::getCenId()const @@ -66,7 +66,7 @@ std::string AttachCenChildInstanceRequest::getCenId()const void AttachCenChildInstanceRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string AttachCenChildInstanceRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string AttachCenChildInstanceRequest::getOwnerAccount()const void AttachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AttachCenChildInstanceRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AttachCenChildInstanceRequest::getOwnerId()const void AttachCenChildInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AttachCenChildInstanceRequest::getChildInstanceType()const @@ -99,7 +99,7 @@ std::string AttachCenChildInstanceRequest::getChildInstanceType()const void AttachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } long AttachCenChildInstanceRequest::getChildInstanceOwnerId()const @@ -110,7 +110,7 @@ long AttachCenChildInstanceRequest::getChildInstanceOwnerId()const void AttachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId) { childInstanceOwnerId_ = childInstanceOwnerId; - setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId)); + setCoreParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId)); } std::string AttachCenChildInstanceRequest::getChildInstanceRegionId()const @@ -121,6 +121,6 @@ std::string AttachCenChildInstanceRequest::getChildInstanceRegionId()const void AttachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/AttachCenChildInstanceResult.cc b/cbn/src/model/AttachCenChildInstanceResult.cc index f28caceac..5fee8e9ce 100644 --- a/cbn/src/model/AttachCenChildInstanceResult.cc +++ b/cbn/src/model/AttachCenChildInstanceResult.cc @@ -35,10 +35,13 @@ AttachCenChildInstanceResult::~AttachCenChildInstanceResult() void AttachCenChildInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/CreateCenBandwidthPackageRequest.cc b/cbn/src/model/CreateCenBandwidthPackageRequest.cc index db3d88c29..c3bab8de7 100644 --- a/cbn/src/model/CreateCenBandwidthPackageRequest.cc +++ b/cbn/src/model/CreateCenBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ std::string CreateCenBandwidthPackageRequest::getGeographicRegionBId()const void CreateCenBandwidthPackageRequest::setGeographicRegionBId(const std::string& geographicRegionBId) { geographicRegionBId_ = geographicRegionBId; - setParameter("GeographicRegionBId", geographicRegionBId); + setCoreParameter("GeographicRegionBId", geographicRegionBId); } long CreateCenBandwidthPackageRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateCenBandwidthPackageRequest::getResourceOwnerId()const void CreateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int CreateCenBandwidthPackageRequest::getPeriod()const @@ -55,7 +55,7 @@ int CreateCenBandwidthPackageRequest::getPeriod()const void CreateCenBandwidthPackageRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string CreateCenBandwidthPackageRequest::getGeographicRegionAId()const @@ -66,7 +66,7 @@ std::string CreateCenBandwidthPackageRequest::getGeographicRegionAId()const void CreateCenBandwidthPackageRequest::setGeographicRegionAId(const std::string& geographicRegionAId) { geographicRegionAId_ = geographicRegionAId; - setParameter("GeographicRegionAId", geographicRegionAId); + setCoreParameter("GeographicRegionAId", geographicRegionAId); } bool CreateCenBandwidthPackageRequest::getAutoPay()const @@ -77,7 +77,7 @@ bool CreateCenBandwidthPackageRequest::getAutoPay()const void CreateCenBandwidthPackageRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string CreateCenBandwidthPackageRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateCenBandwidthPackageRequest::getResourceOwnerAccount()const void CreateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateCenBandwidthPackageRequest::getClientToken()const @@ -99,7 +99,7 @@ std::string CreateCenBandwidthPackageRequest::getClientToken()const void CreateCenBandwidthPackageRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } int CreateCenBandwidthPackageRequest::getBandwidth()const @@ -110,7 +110,7 @@ int CreateCenBandwidthPackageRequest::getBandwidth()const void CreateCenBandwidthPackageRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateCenBandwidthPackageRequest::getOwnerAccount()const @@ -121,7 +121,7 @@ std::string CreateCenBandwidthPackageRequest::getOwnerAccount()const void CreateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateCenBandwidthPackageRequest::getDescription()const @@ -132,7 +132,7 @@ std::string CreateCenBandwidthPackageRequest::getDescription()const void CreateCenBandwidthPackageRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateCenBandwidthPackageRequest::getOwnerId()const @@ -143,7 +143,7 @@ long CreateCenBandwidthPackageRequest::getOwnerId()const void CreateCenBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateCenBandwidthPackageRequest::getBandwidthPackageChargeType()const @@ -154,7 +154,7 @@ std::string CreateCenBandwidthPackageRequest::getBandwidthPackageChargeType()con void CreateCenBandwidthPackageRequest::setBandwidthPackageChargeType(const std::string& bandwidthPackageChargeType) { bandwidthPackageChargeType_ = bandwidthPackageChargeType; - setParameter("BandwidthPackageChargeType", bandwidthPackageChargeType); + setCoreParameter("BandwidthPackageChargeType", bandwidthPackageChargeType); } std::string CreateCenBandwidthPackageRequest::getName()const @@ -165,7 +165,7 @@ std::string CreateCenBandwidthPackageRequest::getName()const void CreateCenBandwidthPackageRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateCenBandwidthPackageRequest::getPricingCycle()const @@ -176,6 +176,6 @@ std::string CreateCenBandwidthPackageRequest::getPricingCycle()const void CreateCenBandwidthPackageRequest::setPricingCycle(const std::string& pricingCycle) { pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); + setCoreParameter("PricingCycle", pricingCycle); } diff --git a/cbn/src/model/CreateCenBandwidthPackageResult.cc b/cbn/src/model/CreateCenBandwidthPackageResult.cc index c174fa914..beb35b01e 100644 --- a/cbn/src/model/CreateCenBandwidthPackageResult.cc +++ b/cbn/src/model/CreateCenBandwidthPackageResult.cc @@ -35,10 +35,13 @@ CreateCenBandwidthPackageResult::~CreateCenBandwidthPackageResult() void CreateCenBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CenBandwidthPackageId"].isNull()) cenBandwidthPackageId_ = value["CenBandwidthPackageId"].asString(); diff --git a/cbn/src/model/CreateCenRequest.cc b/cbn/src/model/CreateCenRequest.cc index 98b53bcbd..d8cf68d35 100644 --- a/cbn/src/model/CreateCenRequest.cc +++ b/cbn/src/model/CreateCenRequest.cc @@ -33,7 +33,7 @@ std::string CreateCenRequest::getProtectionLevel()const void CreateCenRequest::setProtectionLevel(const std::string& protectionLevel) { protectionLevel_ = protectionLevel; - setParameter("ProtectionLevel", protectionLevel); + setCoreParameter("ProtectionLevel", protectionLevel); } long CreateCenRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateCenRequest::getResourceOwnerId()const void CreateCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateCenRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateCenRequest::getResourceOwnerAccount()const void CreateCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateCenRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CreateCenRequest::getClientToken()const void CreateCenRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateCenRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateCenRequest::getOwnerAccount()const void CreateCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateCenRequest::getName()const @@ -88,7 +88,7 @@ std::string CreateCenRequest::getName()const void CreateCenRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateCenRequest::getDescription()const @@ -99,7 +99,7 @@ std::string CreateCenRequest::getDescription()const void CreateCenRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateCenRequest::getOwnerId()const @@ -110,6 +110,6 @@ long CreateCenRequest::getOwnerId()const void CreateCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/CreateCenResult.cc b/cbn/src/model/CreateCenResult.cc index c1b033580..66a8a144f 100644 --- a/cbn/src/model/CreateCenResult.cc +++ b/cbn/src/model/CreateCenResult.cc @@ -35,10 +35,13 @@ CreateCenResult::~CreateCenResult() void CreateCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CenId"].isNull()) cenId_ = value["CenId"].asString(); diff --git a/cbn/src/model/CreateCenRouteMapRequest.cc b/cbn/src/model/CreateCenRouteMapRequest.cc new file mode 100644 index 000000000..f6a5b7e81 --- /dev/null +++ b/cbn/src/model/CreateCenRouteMapRequest.cc @@ -0,0 +1,380 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::CreateCenRouteMapRequest; + +CreateCenRouteMapRequest::CreateCenRouteMapRequest() : + RpcServiceRequest("cbn", "2017-09-12", "CreateCenRouteMap") +{} + +CreateCenRouteMapRequest::~CreateCenRouteMapRequest() +{} + +std::vector CreateCenRouteMapRequest::getRouteTypes()const +{ + return routeTypes_; +} + +void CreateCenRouteMapRequest::setRouteTypes(const std::vector& routeTypes) +{ + routeTypes_ = routeTypes; + for(int i = 0; i!= routeTypes.size(); i++) + setCoreParameter("RouteTypes."+ std::to_string(i), routeTypes.at(i)); +} + +long CreateCenRouteMapRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateCenRouteMapRequest::getCidrMatchMode()const +{ + return cidrMatchMode_; +} + +void CreateCenRouteMapRequest::setCidrMatchMode(const std::string& cidrMatchMode) +{ + cidrMatchMode_ = cidrMatchMode; + setCoreParameter("CidrMatchMode", cidrMatchMode); +} + +std::string CreateCenRouteMapRequest::getCommunityMatchMode()const +{ + return communityMatchMode_; +} + +void CreateCenRouteMapRequest::setCommunityMatchMode(const std::string& communityMatchMode) +{ + communityMatchMode_ = communityMatchMode; + setCoreParameter("CommunityMatchMode", communityMatchMode); +} + +std::string CreateCenRouteMapRequest::getCenId()const +{ + return cenId_; +} + +void CreateCenRouteMapRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string CreateCenRouteMapRequest::getMapResult()const +{ + return mapResult_; +} + +void CreateCenRouteMapRequest::setMapResult(const std::string& mapResult) +{ + mapResult_ = mapResult; + setCoreParameter("MapResult", mapResult); +} + +int CreateCenRouteMapRequest::getAsPathLength()const +{ + return asPathLength_; +} + +void CreateCenRouteMapRequest::setAsPathLength(int asPathLength) +{ + asPathLength_ = asPathLength; + setCoreParameter("AsPathLength", std::to_string(asPathLength)); +} + +std::string CreateCenRouteMapRequest::getDescription()const +{ + return description_; +} + +void CreateCenRouteMapRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +bool CreateCenRouteMapRequest::getSourceInstanceIdsReverseMatch()const +{ + return sourceInstanceIdsReverseMatch_; +} + +void CreateCenRouteMapRequest::setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch) +{ + sourceInstanceIdsReverseMatch_ = sourceInstanceIdsReverseMatch; + setCoreParameter("SourceInstanceIdsReverseMatch", sourceInstanceIdsReverseMatch ? "true" : "false"); +} + +int CreateCenRouteMapRequest::getNextPriority()const +{ + return nextPriority_; +} + +void CreateCenRouteMapRequest::setNextPriority(int nextPriority) +{ + nextPriority_ = nextPriority; + setCoreParameter("NextPriority", std::to_string(nextPriority)); +} + +std::vector CreateCenRouteMapRequest::getDestinationCidrBlocks()const +{ + return destinationCidrBlocks_; +} + +void CreateCenRouteMapRequest::setDestinationCidrBlocks(const std::vector& destinationCidrBlocks) +{ + destinationCidrBlocks_ = destinationCidrBlocks; + for(int i = 0; i!= destinationCidrBlocks.size(); i++) + setCoreParameter("DestinationCidrBlocks."+ std::to_string(i), destinationCidrBlocks.at(i)); +} + +std::vector CreateCenRouteMapRequest::getDestinationRouteTableIds()const +{ + return destinationRouteTableIds_; +} + +void CreateCenRouteMapRequest::setDestinationRouteTableIds(const std::vector& destinationRouteTableIds) +{ + destinationRouteTableIds_ = destinationRouteTableIds; + for(int i = 0; i!= destinationRouteTableIds.size(); i++) + setCoreParameter("DestinationRouteTableIds."+ std::to_string(i), destinationRouteTableIds.at(i)); +} + +std::vector CreateCenRouteMapRequest::getSourceInstanceIds()const +{ + return sourceInstanceIds_; +} + +void CreateCenRouteMapRequest::setSourceInstanceIds(const std::vector& sourceInstanceIds) +{ + sourceInstanceIds_ = sourceInstanceIds; + for(int i = 0; i!= sourceInstanceIds.size(); i++) + setCoreParameter("SourceInstanceIds."+ std::to_string(i), sourceInstanceIds.at(i)); +} + +std::vector CreateCenRouteMapRequest::getSourceRegionIds()const +{ + return sourceRegionIds_; +} + +void CreateCenRouteMapRequest::setSourceRegionIds(const std::vector& sourceRegionIds) +{ + sourceRegionIds_ = sourceRegionIds; + for(int i = 0; i!= sourceRegionIds.size(); i++) + setCoreParameter("SourceRegionIds."+ std::to_string(i), sourceRegionIds.at(i)); +} + +std::string CreateCenRouteMapRequest::getTransmitDirection()const +{ + return transmitDirection_; +} + +void CreateCenRouteMapRequest::setTransmitDirection(const std::string& transmitDirection) +{ + transmitDirection_ = transmitDirection; + setCoreParameter("TransmitDirection", transmitDirection); +} + +std::vector CreateCenRouteMapRequest::getDestinationInstanceIds()const +{ + return destinationInstanceIds_; +} + +void CreateCenRouteMapRequest::setDestinationInstanceIds(const std::vector& destinationInstanceIds) +{ + destinationInstanceIds_ = destinationInstanceIds; + for(int i = 0; i!= destinationInstanceIds.size(); i++) + setCoreParameter("DestinationInstanceIds."+ std::to_string(i), destinationInstanceIds.at(i)); +} + +std::vector CreateCenRouteMapRequest::getMatchAsns()const +{ + return matchAsns_; +} + +void CreateCenRouteMapRequest::setMatchAsns(const std::vector& matchAsns) +{ + matchAsns_ = matchAsns; + for(int i = 0; i!= matchAsns.size(); i++) + setCoreParameter("MatchAsns."+ std::to_string(i), std::to_string(matchAsns.at(i))); +} + +std::string CreateCenRouteMapRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateCenRouteMapRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int CreateCenRouteMapRequest::getPreference()const +{ + return preference_; +} + +void CreateCenRouteMapRequest::setPreference(int preference) +{ + preference_ = preference; + setCoreParameter("Preference", std::to_string(preference)); +} + +bool CreateCenRouteMapRequest::getDestinationInstanceIdsReverseMatch()const +{ + return destinationInstanceIdsReverseMatch_; +} + +void CreateCenRouteMapRequest::setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch) +{ + destinationInstanceIdsReverseMatch_ = destinationInstanceIdsReverseMatch; + setCoreParameter("DestinationInstanceIdsReverseMatch", destinationInstanceIdsReverseMatch ? "true" : "false"); +} + +long CreateCenRouteMapRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCenRouteMapRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int CreateCenRouteMapRequest::getPriority()const +{ + return priority_; +} + +void CreateCenRouteMapRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +std::vector CreateCenRouteMapRequest::getDestinationChildInstanceTypes()const +{ + return destinationChildInstanceTypes_; +} + +void CreateCenRouteMapRequest::setDestinationChildInstanceTypes(const std::vector& destinationChildInstanceTypes) +{ + destinationChildInstanceTypes_ = destinationChildInstanceTypes; + for(int i = 0; i!= destinationChildInstanceTypes.size(); i++) + setCoreParameter("DestinationChildInstanceTypes."+ std::to_string(i), destinationChildInstanceTypes.at(i)); +} + +std::vector CreateCenRouteMapRequest::getSourceRouteTableIds()const +{ + return sourceRouteTableIds_; +} + +void CreateCenRouteMapRequest::setSourceRouteTableIds(const std::vector& sourceRouteTableIds) +{ + sourceRouteTableIds_ = sourceRouteTableIds; + for(int i = 0; i!= sourceRouteTableIds.size(); i++) + setCoreParameter("SourceRouteTableIds."+ std::to_string(i), sourceRouteTableIds.at(i)); +} + +std::string CreateCenRouteMapRequest::getAsPathMatchMode()const +{ + return asPathMatchMode_; +} + +void CreateCenRouteMapRequest::setAsPathMatchMode(const std::string& asPathMatchMode) +{ + asPathMatchMode_ = asPathMatchMode; + setCoreParameter("AsPathMatchMode", asPathMatchMode); +} + +std::vector CreateCenRouteMapRequest::getSourceChildInstanceTypes()const +{ + return sourceChildInstanceTypes_; +} + +void CreateCenRouteMapRequest::setSourceChildInstanceTypes(const std::vector& sourceChildInstanceTypes) +{ + sourceChildInstanceTypes_ = sourceChildInstanceTypes; + for(int i = 0; i!= sourceChildInstanceTypes.size(); i++) + setCoreParameter("SourceChildInstanceTypes."+ std::to_string(i), sourceChildInstanceTypes.at(i)); +} + +std::vector CreateCenRouteMapRequest::getMatchCommunitySet()const +{ + return matchCommunitySet_; +} + +void CreateCenRouteMapRequest::setMatchCommunitySet(const std::vector& matchCommunitySet) +{ + matchCommunitySet_ = matchCommunitySet; + for(int i = 0; i!= matchCommunitySet.size(); i++) + setCoreParameter("MatchCommunitySet."+ std::to_string(i), matchCommunitySet.at(i)); +} + +std::string CreateCenRouteMapRequest::getCommunityOperateMode()const +{ + return communityOperateMode_; +} + +void CreateCenRouteMapRequest::setCommunityOperateMode(const std::string& communityOperateMode) +{ + communityOperateMode_ = communityOperateMode; + setCoreParameter("CommunityOperateMode", communityOperateMode); +} + +std::string CreateCenRouteMapRequest::getCenRegionId()const +{ + return cenRegionId_; +} + +void CreateCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId) +{ + cenRegionId_ = cenRegionId; + setCoreParameter("CenRegionId", cenRegionId); +} + +std::vector CreateCenRouteMapRequest::getOperateCommunitySet()const +{ + return operateCommunitySet_; +} + +void CreateCenRouteMapRequest::setOperateCommunitySet(const std::vector& operateCommunitySet) +{ + operateCommunitySet_ = operateCommunitySet; + for(int i = 0; i!= operateCommunitySet.size(); i++) + setCoreParameter("OperateCommunitySet."+ std::to_string(i), operateCommunitySet.at(i)); +} + diff --git a/cbn/src/model/CreateCenRouteMapResult.cc b/cbn/src/model/CreateCenRouteMapResult.cc new file mode 100644 index 000000000..f6512d5e6 --- /dev/null +++ b/cbn/src/model/CreateCenRouteMapResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +CreateCenRouteMapResult::CreateCenRouteMapResult() : + ServiceResult() +{} + +CreateCenRouteMapResult::CreateCenRouteMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCenRouteMapResult::~CreateCenRouteMapResult() +{} + +void CreateCenRouteMapResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["RouteMapId"].isNull()) + routeMapId_ = value["RouteMapId"].asString(); + +} + +std::string CreateCenRouteMapResult::getRouteMapId()const +{ + return routeMapId_; +} + diff --git a/cbn/src/model/CreateFlowlogRequest.cc b/cbn/src/model/CreateFlowlogRequest.cc new file mode 100644 index 000000000..cb517cdbd --- /dev/null +++ b/cbn/src/model/CreateFlowlogRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::CreateFlowlogRequest; + +CreateFlowlogRequest::CreateFlowlogRequest() : + RpcServiceRequest("cbn", "2017-09-12", "CreateFlowlog") +{} + +CreateFlowlogRequest::~CreateFlowlogRequest() +{} + +long CreateFlowlogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateFlowlogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateFlowlogRequest::getProjectName()const +{ + return projectName_; +} + +void CreateFlowlogRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setCoreParameter("ProjectName", projectName); +} + +std::string CreateFlowlogRequest::getLogStoreName()const +{ + return logStoreName_; +} + +void CreateFlowlogRequest::setLogStoreName(const std::string& logStoreName) +{ + logStoreName_ = logStoreName; + setCoreParameter("LogStoreName", logStoreName); +} + +std::string CreateFlowlogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateFlowlogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateFlowlogRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateFlowlogRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateFlowlogRequest::getRegionId()const +{ + return regionId_; +} + +void CreateFlowlogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateFlowlogRequest::getCenId()const +{ + return cenId_; +} + +void CreateFlowlogRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string CreateFlowlogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateFlowlogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateFlowlogRequest::getDescription()const +{ + return description_; +} + +void CreateFlowlogRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long CreateFlowlogRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateFlowlogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateFlowlogRequest::getFlowLogName()const +{ + return flowLogName_; +} + +void CreateFlowlogRequest::setFlowLogName(const std::string& flowLogName) +{ + flowLogName_ = flowLogName; + setCoreParameter("FlowLogName", flowLogName); +} + diff --git a/cbn/src/model/CreateFlowlogResult.cc b/cbn/src/model/CreateFlowlogResult.cc new file mode 100644 index 000000000..fdb6a4ce8 --- /dev/null +++ b/cbn/src/model/CreateFlowlogResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +CreateFlowlogResult::CreateFlowlogResult() : + ServiceResult() +{} + +CreateFlowlogResult::CreateFlowlogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFlowlogResult::~CreateFlowlogResult() +{} + +void CreateFlowlogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["FlowLogId"].isNull()) + flowLogId_ = value["FlowLogId"].asString(); + +} + +std::string CreateFlowlogResult::getFlowLogId()const +{ + return flowLogId_; +} + +std::string CreateFlowlogResult::getSuccess()const +{ + return success_; +} + diff --git a/cbn/src/model/DeactiveFlowLogRequest.cc b/cbn/src/model/DeactiveFlowLogRequest.cc new file mode 100644 index 000000000..a70d82f35 --- /dev/null +++ b/cbn/src/model/DeactiveFlowLogRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DeactiveFlowLogRequest; + +DeactiveFlowLogRequest::DeactiveFlowLogRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DeactiveFlowLog") +{} + +DeactiveFlowLogRequest::~DeactiveFlowLogRequest() +{} + +long DeactiveFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeactiveFlowLogRequest::getClientToken()const +{ + return clientToken_; +} + +void DeactiveFlowLogRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DeactiveFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void DeactiveFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeactiveFlowLogRequest::getCenId()const +{ + return cenId_; +} + +void DeactiveFlowLogRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string DeactiveFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeactiveFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeactiveFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeactiveFlowLogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/cbn/src/model/DeactiveFlowLogResult.cc b/cbn/src/model/DeactiveFlowLogResult.cc new file mode 100644 index 000000000..c42f67f36 --- /dev/null +++ b/cbn/src/model/DeactiveFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DeactiveFlowLogResult::DeactiveFlowLogResult() : + ServiceResult() +{} + +DeactiveFlowLogResult::DeactiveFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeactiveFlowLogResult::~DeactiveFlowLogResult() +{} + +void DeactiveFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string DeactiveFlowLogResult::getSuccess()const +{ + return success_; +} + diff --git a/cbn/src/model/DeleteCenBandwidthPackageRequest.cc b/cbn/src/model/DeleteCenBandwidthPackageRequest.cc index 531c7315f..28c8a4f7c 100644 --- a/cbn/src/model/DeleteCenBandwidthPackageRequest.cc +++ b/cbn/src/model/DeleteCenBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long DeleteCenBandwidthPackageRequest::getResourceOwnerId()const void DeleteCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCenBandwidthPackageRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteCenBandwidthPackageRequest::getResourceOwnerAccount()const void DeleteCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteCenBandwidthPackageRequest::getCenBandwidthPackageId()const @@ -55,7 +55,7 @@ std::string DeleteCenBandwidthPackageRequest::getCenBandwidthPackageId()const void DeleteCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) { cenBandwidthPackageId_ = cenBandwidthPackageId; - setParameter("CenBandwidthPackageId", cenBandwidthPackageId); + setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId); } std::string DeleteCenBandwidthPackageRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteCenBandwidthPackageRequest::getOwnerAccount()const void DeleteCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteCenBandwidthPackageRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DeleteCenBandwidthPackageRequest::getOwnerId()const void DeleteCenBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/DeleteCenBandwidthPackageResult.cc b/cbn/src/model/DeleteCenBandwidthPackageResult.cc index da382d8b6..a0e998b82 100644 --- a/cbn/src/model/DeleteCenBandwidthPackageResult.cc +++ b/cbn/src/model/DeleteCenBandwidthPackageResult.cc @@ -35,10 +35,13 @@ DeleteCenBandwidthPackageResult::~DeleteCenBandwidthPackageResult() void DeleteCenBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/DeleteCenRequest.cc b/cbn/src/model/DeleteCenRequest.cc index 0e54cc3bb..802e283d2 100644 --- a/cbn/src/model/DeleteCenRequest.cc +++ b/cbn/src/model/DeleteCenRequest.cc @@ -33,7 +33,7 @@ long DeleteCenRequest::getResourceOwnerId()const void DeleteCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCenRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteCenRequest::getResourceOwnerAccount()const void DeleteCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteCenRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DeleteCenRequest::getCenId()const void DeleteCenRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DeleteCenRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteCenRequest::getOwnerAccount()const void DeleteCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteCenRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DeleteCenRequest::getOwnerId()const void DeleteCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/DeleteCenResult.cc b/cbn/src/model/DeleteCenResult.cc index 04132eb21..c2df13e86 100644 --- a/cbn/src/model/DeleteCenResult.cc +++ b/cbn/src/model/DeleteCenResult.cc @@ -35,10 +35,13 @@ DeleteCenResult::~DeleteCenResult() void DeleteCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/DeleteCenRouteMapRequest.cc b/cbn/src/model/DeleteCenRouteMapRequest.cc new file mode 100644 index 000000000..d66bb546d --- /dev/null +++ b/cbn/src/model/DeleteCenRouteMapRequest.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 + +using AlibabaCloud::Cbn::Model::DeleteCenRouteMapRequest; + +DeleteCenRouteMapRequest::DeleteCenRouteMapRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DeleteCenRouteMap") +{} + +DeleteCenRouteMapRequest::~DeleteCenRouteMapRequest() +{} + +long DeleteCenRouteMapRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteCenRouteMapRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteCenRouteMapRequest::getCenId()const +{ + return cenId_; +} + +void DeleteCenRouteMapRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string DeleteCenRouteMapRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteCenRouteMapRequest::getCenRegionId()const +{ + return cenRegionId_; +} + +void DeleteCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId) +{ + cenRegionId_ = cenRegionId; + setCoreParameter("CenRegionId", cenRegionId); +} + +std::string DeleteCenRouteMapRequest::getRouteMapId()const +{ + return routeMapId_; +} + +void DeleteCenRouteMapRequest::setRouteMapId(const std::string& routeMapId) +{ + routeMapId_ = routeMapId; + setCoreParameter("RouteMapId", routeMapId); +} + +long DeleteCenRouteMapRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteCenRouteMapRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/DeleteCenRouteMapResult.cc b/cbn/src/model/DeleteCenRouteMapResult.cc new file mode 100644 index 000000000..ff7b869a9 --- /dev/null +++ b/cbn/src/model/DeleteCenRouteMapResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DeleteCenRouteMapResult::DeleteCenRouteMapResult() : + ServiceResult() +{} + +DeleteCenRouteMapResult::DeleteCenRouteMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCenRouteMapResult::~DeleteCenRouteMapResult() +{} + +void DeleteCenRouteMapResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/DeleteFlowlogRequest.cc b/cbn/src/model/DeleteFlowlogRequest.cc new file mode 100644 index 000000000..d2a24f0f4 --- /dev/null +++ b/cbn/src/model/DeleteFlowlogRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DeleteFlowlogRequest; + +DeleteFlowlogRequest::DeleteFlowlogRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DeleteFlowlog") +{} + +DeleteFlowlogRequest::~DeleteFlowlogRequest() +{} + +long DeleteFlowlogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteFlowlogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteFlowlogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteFlowlogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteFlowlogRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteFlowlogRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DeleteFlowlogRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteFlowlogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteFlowlogRequest::getCenId()const +{ + return cenId_; +} + +void DeleteFlowlogRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string DeleteFlowlogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteFlowlogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteFlowlogRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteFlowlogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteFlowlogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DeleteFlowlogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/cbn/src/model/DeleteFlowlogResult.cc b/cbn/src/model/DeleteFlowlogResult.cc new file mode 100644 index 000000000..5edbed9b2 --- /dev/null +++ b/cbn/src/model/DeleteFlowlogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DeleteFlowlogResult::DeleteFlowlogResult() : + ServiceResult() +{} + +DeleteFlowlogResult::DeleteFlowlogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFlowlogResult::~DeleteFlowlogResult() +{} + +void DeleteFlowlogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string DeleteFlowlogResult::getSuccess()const +{ + return success_; +} + diff --git a/cbn/src/model/DeleteRouteServiceInCenRequest.cc b/cbn/src/model/DeleteRouteServiceInCenRequest.cc index 7e9226446..9d35ab7f6 100644 --- a/cbn/src/model/DeleteRouteServiceInCenRequest.cc +++ b/cbn/src/model/DeleteRouteServiceInCenRequest.cc @@ -33,7 +33,7 @@ long DeleteRouteServiceInCenRequest::getResourceOwnerId()const void DeleteRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteRouteServiceInCenRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteRouteServiceInCenRequest::getResourceOwnerAccount()const void DeleteRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteRouteServiceInCenRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DeleteRouteServiceInCenRequest::getCenId()const void DeleteRouteServiceInCenRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DeleteRouteServiceInCenRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteRouteServiceInCenRequest::getOwnerAccount()const void DeleteRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteRouteServiceInCenRequest::getHost()const @@ -77,7 +77,7 @@ std::string DeleteRouteServiceInCenRequest::getHost()const void DeleteRouteServiceInCenRequest::setHost(const std::string& host) { host_ = host; - setParameter("Host", host); + setCoreParameter("Host", host); } std::string DeleteRouteServiceInCenRequest::getHostRegionId()const @@ -88,7 +88,7 @@ std::string DeleteRouteServiceInCenRequest::getHostRegionId()const void DeleteRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId) { hostRegionId_ = hostRegionId; - setParameter("HostRegionId", hostRegionId); + setCoreParameter("HostRegionId", hostRegionId); } std::string DeleteRouteServiceInCenRequest::getAccessRegionId()const @@ -99,7 +99,7 @@ std::string DeleteRouteServiceInCenRequest::getAccessRegionId()const void DeleteRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId) { accessRegionId_ = accessRegionId; - setParameter("AccessRegionId", accessRegionId); + setCoreParameter("AccessRegionId", accessRegionId); } long DeleteRouteServiceInCenRequest::getOwnerId()const @@ -110,6 +110,6 @@ long DeleteRouteServiceInCenRequest::getOwnerId()const void DeleteRouteServiceInCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/DeleteRouteServiceInCenResult.cc b/cbn/src/model/DeleteRouteServiceInCenResult.cc index 15f98856f..d77f1bab3 100644 --- a/cbn/src/model/DeleteRouteServiceInCenResult.cc +++ b/cbn/src/model/DeleteRouteServiceInCenResult.cc @@ -35,10 +35,13 @@ DeleteRouteServiceInCenResult::~DeleteRouteServiceInCenResult() void DeleteRouteServiceInCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc index 4ecda72cc..be85b1b23 100644 --- a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc +++ b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceId void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceId(const std::string& childInstanceId) { childInstanceId_ = childInstanceId; - setParameter("ChildInstanceId", childInstanceId); + setCoreParameter("ChildInstanceId", childInstanceId); } long DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerId()const void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerAc void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenAttachedChildInstanceAttributeRequest::getCenId()const @@ -66,7 +66,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getCenId()const void DescribeCenAttachedChildInstanceAttributeRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribeCenAttachedChildInstanceAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getOwnerAccount()c void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeCenAttachedChildInstanceAttributeRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeCenAttachedChildInstanceAttributeRequest::getOwnerId()const void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceType()const @@ -99,7 +99,7 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceTy void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceRegionId()const @@ -110,6 +110,6 @@ std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceRe void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc index 7a8a8377e..c9111cbe9 100644 --- a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc +++ b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc @@ -35,10 +35,13 @@ DescribeCenAttachedChildInstanceAttributeResult::~DescribeCenAttachedChildInstan void DescribeCenAttachedChildInstanceAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CenId"].isNull()) cenId_ = value["CenId"].asString(); diff --git a/cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc b/cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc index d04151351..f55ec3f55 100644 --- a/cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc +++ b/cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc @@ -33,7 +33,7 @@ long DescribeCenAttachedChildInstancesRequest::getResourceOwnerId()const void DescribeCenAttachedChildInstancesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenAttachedChildInstancesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getResourceOwnerAccount()c void DescribeCenAttachedChildInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenAttachedChildInstancesRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getCenId()const void DescribeCenAttachedChildInstancesRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribeCenAttachedChildInstancesRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getOwnerAccount()const void DescribeCenAttachedChildInstancesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeCenAttachedChildInstancesRequest::getPageSize()const @@ -77,7 +77,7 @@ int DescribeCenAttachedChildInstancesRequest::getPageSize()const void DescribeCenAttachedChildInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCenAttachedChildInstancesRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeCenAttachedChildInstancesRequest::getOwnerId()const void DescribeCenAttachedChildInstancesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceType()const @@ -99,7 +99,7 @@ std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceType()cons void DescribeCenAttachedChildInstancesRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } int DescribeCenAttachedChildInstancesRequest::getPageNumber()const @@ -110,7 +110,7 @@ int DescribeCenAttachedChildInstancesRequest::getPageNumber()const void DescribeCenAttachedChildInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceRegionId()const @@ -121,6 +121,6 @@ std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceRegionId() void DescribeCenAttachedChildInstancesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/DescribeCenAttachedChildInstancesResult.cc b/cbn/src/model/DescribeCenAttachedChildInstancesResult.cc index c3fbbae67..6dcc35252 100644 --- a/cbn/src/model/DescribeCenAttachedChildInstancesResult.cc +++ b/cbn/src/model/DescribeCenAttachedChildInstancesResult.cc @@ -35,10 +35,13 @@ DescribeCenAttachedChildInstancesResult::~DescribeCenAttachedChildInstancesResul void DescribeCenAttachedChildInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allChildInstances = value["ChildInstances"]["ChildInstance"]; for (auto value : allChildInstances) diff --git a/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc b/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc index fa272b1b1..49547e9fe 100644 --- a/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc +++ b/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc @@ -37,8 +37,8 @@ void DescribeCenBandwidthPackagesRequest::setFilter(const std::vector& f for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribeCenBandwidthPackagesRequest::getResourceOwnerId()const void DescribeCenBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenBandwidthPackagesRequest::getResourceOwnerAccount()const @@ -61,7 +61,7 @@ std::string DescribeCenBandwidthPackagesRequest::getResourceOwnerAccount()const void DescribeCenBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenBandwidthPackagesRequest::getOwnerAccount()const @@ -72,7 +72,7 @@ std::string DescribeCenBandwidthPackagesRequest::getOwnerAccount()const void DescribeCenBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeCenBandwidthPackagesRequest::getPageSize()const @@ -83,7 +83,7 @@ int DescribeCenBandwidthPackagesRequest::getPageSize()const void DescribeCenBandwidthPackagesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCenBandwidthPackagesRequest::getOwnerId()const @@ -94,7 +94,7 @@ long DescribeCenBandwidthPackagesRequest::getOwnerId()const void DescribeCenBandwidthPackagesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeCenBandwidthPackagesRequest::getPageNumber()const @@ -105,7 +105,7 @@ int DescribeCenBandwidthPackagesRequest::getPageNumber()const void DescribeCenBandwidthPackagesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } bool DescribeCenBandwidthPackagesRequest::getIsOrKey()const @@ -116,6 +116,6 @@ bool DescribeCenBandwidthPackagesRequest::getIsOrKey()const void DescribeCenBandwidthPackagesRequest::setIsOrKey(bool isOrKey) { isOrKey_ = isOrKey; - setParameter("IsOrKey", std::to_string(isOrKey)); + setCoreParameter("IsOrKey", isOrKey ? "true" : "false"); } diff --git a/cbn/src/model/DescribeCenBandwidthPackagesResult.cc b/cbn/src/model/DescribeCenBandwidthPackagesResult.cc index 87ca6f611..d5fca67ee 100644 --- a/cbn/src/model/DescribeCenBandwidthPackagesResult.cc +++ b/cbn/src/model/DescribeCenBandwidthPackagesResult.cc @@ -35,10 +35,13 @@ DescribeCenBandwidthPackagesResult::~DescribeCenBandwidthPackagesResult() void DescribeCenBandwidthPackagesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCenBandwidthPackages = value["CenBandwidthPackages"]["CenBandwidthPackage"]; for (auto value : allCenBandwidthPackages) @@ -70,6 +73,10 @@ void DescribeCenBandwidthPackagesResult::parse(const std::string &payload) cenBandwidthPackagesObject.status = value["Status"].asString(); if(!value["IsCrossBorder"].isNull()) cenBandwidthPackagesObject.isCrossBorder = value["IsCrossBorder"].asString() == "true"; + if(!value["TypeFor95"].isNull()) + cenBandwidthPackagesObject.typeFor95 = value["TypeFor95"].asString(); + if(!value["Ratio"].isNull()) + cenBandwidthPackagesObject.ratio = value["Ratio"].asString(); auto allCenIds = value["CenIds"]["CenId"]; for (auto value : allCenIds) cenBandwidthPackagesObject.cenIds.push_back(value.asString()); diff --git a/cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc b/cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc new file mode 100644 index 000000000..f49195067 --- /dev/null +++ b/cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeCenChildInstanceRouteEntriesRequest; + +DescribeCenChildInstanceRouteEntriesRequest::DescribeCenChildInstanceRouteEntriesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenChildInstanceRouteEntries") +{} + +DescribeCenChildInstanceRouteEntriesRequest::~DescribeCenChildInstanceRouteEntriesRequest() +{} + +std::string DescribeCenChildInstanceRouteEntriesRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setCoreParameter("ChildInstanceId", childInstanceId); +} + +long DescribeCenChildInstanceRouteEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenChildInstanceRouteEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenChildInstanceRouteEntriesRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string DescribeCenChildInstanceRouteEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeCenChildInstanceRouteEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenChildInstanceRouteEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCenChildInstanceRouteEntriesRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setCoreParameter("ChildInstanceType", childInstanceType); +} + +int DescribeCenChildInstanceRouteEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCenChildInstanceRouteEntriesRequest::getStatus()const +{ + return status_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + +std::string DescribeCenChildInstanceRouteEntriesRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc b/cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc new file mode 100644 index 000000000..3120fb467 --- /dev/null +++ b/cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenChildInstanceRouteEntriesResult::DescribeCenChildInstanceRouteEntriesResult() : + ServiceResult() +{} + +DescribeCenChildInstanceRouteEntriesResult::DescribeCenChildInstanceRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenChildInstanceRouteEntriesResult::~DescribeCenChildInstanceRouteEntriesResult() +{} + +void DescribeCenChildInstanceRouteEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allCenRouteEntries = value["CenRouteEntries"]["CenRouteEntry"]; + for (auto value : allCenRouteEntries) + { + CenRouteEntry cenRouteEntriesObject; + if(!value["DestinationCidrBlock"].isNull()) + cenRouteEntriesObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + if(!value["Type"].isNull()) + cenRouteEntriesObject.type = value["Type"].asString(); + if(!value["NextHopInstanceId"].isNull()) + cenRouteEntriesObject.nextHopInstanceId = value["NextHopInstanceId"].asString(); + if(!value["NextHopType"].isNull()) + cenRouteEntriesObject.nextHopType = value["NextHopType"].asString(); + if(!value["NextHopRegionId"].isNull()) + cenRouteEntriesObject.nextHopRegionId = value["NextHopRegionId"].asString(); + if(!value["Status"].isNull()) + cenRouteEntriesObject.status = value["Status"].asString(); + if(!value["OperationalMode"].isNull()) + cenRouteEntriesObject.operationalMode = value["OperationalMode"].asString() == "true"; + if(!value["PublishStatus"].isNull()) + cenRouteEntriesObject.publishStatus = value["PublishStatus"].asString(); + if(!value["RouteTableId"].isNull()) + cenRouteEntriesObject.routeTableId = value["RouteTableId"].asString(); + auto allCenRouteMapRecords = value["CenRouteMapRecords"]["CenRouteMapRecord"]; + for (auto value : allCenRouteMapRecords) + { + CenRouteEntry::CenRouteMapRecord cenRouteMapRecordsObject; + if(!value["RegionId"].isNull()) + cenRouteMapRecordsObject.regionId = value["RegionId"].asString(); + if(!value["RouteMapId"].isNull()) + cenRouteMapRecordsObject.routeMapId = value["RouteMapId"].asString(); + cenRouteEntriesObject.cenRouteMapRecords.push_back(cenRouteMapRecordsObject); + } + auto allConflicts = value["Conflicts"]["Conflict"]; + for (auto value : allConflicts) + { + CenRouteEntry::Conflict conflictsObject; + if(!value["DestinationCidrBlock"].isNull()) + conflictsObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + if(!value["RegionId"].isNull()) + conflictsObject.regionId = value["RegionId"].asString(); + if(!value["InstanceId"].isNull()) + conflictsObject.instanceId = value["InstanceId"].asString(); + if(!value["InstanceType"].isNull()) + conflictsObject.instanceType = value["InstanceType"].asString(); + if(!value["Status"].isNull()) + conflictsObject.status = value["Status"].asString(); + cenRouteEntriesObject.conflicts.push_back(conflictsObject); + } + auto allAsPaths = value["AsPaths"]["AsPath"]; + for (auto value : allAsPaths) + cenRouteEntriesObject.asPaths.push_back(value.asString()); + auto allCommunities = value["Communities"]["Community"]; + for (auto value : allCommunities) + cenRouteEntriesObject.communities.push_back(value.asString()); + cenRouteEntries_.push_back(cenRouteEntriesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenChildInstanceRouteEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenChildInstanceRouteEntriesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenChildInstanceRouteEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCenChildInstanceRouteEntriesResult::getCenRouteEntries()const +{ + return cenRouteEntries_; +} + diff --git a/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc index 7707486eb..60a3b013b 100644 --- a/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc +++ b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicReg void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionBId(const std::string& geographicRegionBId) { geographicRegionBId_ = geographicRegionBId; - setParameter("GeographicRegionBId", geographicRegionBId); + setCoreParameter("GeographicRegionBId", geographicRegionBId); } long DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerId()con void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicRegionAId()const @@ -55,7 +55,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicReg void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionAId(const std::string& geographicRegionAId) { geographicRegionAId_ = geographicRegionAId; - setParameter("GeographicRegionAId", geographicRegionAId); + setCoreParameter("GeographicRegionAId", geographicRegionAId); } std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwner void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getCenId()const @@ -77,7 +77,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getCenId()const void DescribeCenGeographicSpanRemainingBandwidthRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerAccount( void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageSize()const @@ -99,7 +99,7 @@ int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageSize()const void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerId()const void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageNumber()const @@ -121,6 +121,6 @@ int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageNumber()const void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc index 969e91e0c..8f7d12ad0 100644 --- a/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc +++ b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc @@ -35,10 +35,13 @@ DescribeCenGeographicSpanRemainingBandwidthResult::~DescribeCenGeographicSpanRem void DescribeCenGeographicSpanRemainingBandwidthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RemainingBandwidth"].isNull()) remainingBandwidth_ = std::stol(value["RemainingBandwidth"].asString()); diff --git a/cbn/src/model/DescribeCenGeographicSpansRequest.cc b/cbn/src/model/DescribeCenGeographicSpansRequest.cc index a332dc076..45e9e5274 100644 --- a/cbn/src/model/DescribeCenGeographicSpansRequest.cc +++ b/cbn/src/model/DescribeCenGeographicSpansRequest.cc @@ -33,7 +33,7 @@ long DescribeCenGeographicSpansRequest::getResourceOwnerId()const void DescribeCenGeographicSpansRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenGeographicSpansRequest::getGeographicSpanId()const @@ -44,7 +44,7 @@ std::string DescribeCenGeographicSpansRequest::getGeographicSpanId()const void DescribeCenGeographicSpansRequest::setGeographicSpanId(const std::string& geographicSpanId) { geographicSpanId_ = geographicSpanId; - setParameter("GeographicSpanId", geographicSpanId); + setCoreParameter("GeographicSpanId", geographicSpanId); } std::string DescribeCenGeographicSpansRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeCenGeographicSpansRequest::getResourceOwnerAccount()const void DescribeCenGeographicSpansRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenGeographicSpansRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCenGeographicSpansRequest::getOwnerAccount()const void DescribeCenGeographicSpansRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeCenGeographicSpansRequest::getPageSize()const @@ -77,7 +77,7 @@ int DescribeCenGeographicSpansRequest::getPageSize()const void DescribeCenGeographicSpansRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCenGeographicSpansRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeCenGeographicSpansRequest::getOwnerId()const void DescribeCenGeographicSpansRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeCenGeographicSpansRequest::getPageNumber()const @@ -99,6 +99,6 @@ int DescribeCenGeographicSpansRequest::getPageNumber()const void DescribeCenGeographicSpansRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cbn/src/model/DescribeCenGeographicSpansResult.cc b/cbn/src/model/DescribeCenGeographicSpansResult.cc index 15f6d0a93..6fa88d2ab 100644 --- a/cbn/src/model/DescribeCenGeographicSpansResult.cc +++ b/cbn/src/model/DescribeCenGeographicSpansResult.cc @@ -35,10 +35,13 @@ DescribeCenGeographicSpansResult::~DescribeCenGeographicSpansResult() void DescribeCenGeographicSpansResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGeographicSpanModels = value["GeographicSpanModels"]["GeographicSpanModel"]; for (auto value : allGeographicSpanModels) diff --git a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc index c4cde6ddb..03da80180 100644 --- a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc +++ b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc @@ -33,7 +33,7 @@ long DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerId()const void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerAccoun void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenInterRegionBandwidthLimitsRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DescribeCenInterRegionBandwidthLimitsRequest::getCenId()const void DescribeCenInterRegionBandwidthLimitsRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribeCenInterRegionBandwidthLimitsRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCenInterRegionBandwidthLimitsRequest::getOwnerAccount()const void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize()const @@ -77,7 +77,7 @@ int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize()const void DescribeCenInterRegionBandwidthLimitsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCenInterRegionBandwidthLimitsRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeCenInterRegionBandwidthLimitsRequest::getOwnerId()const void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeCenInterRegionBandwidthLimitsRequest::getPageNumber()const @@ -99,6 +99,6 @@ int DescribeCenInterRegionBandwidthLimitsRequest::getPageNumber()const void DescribeCenInterRegionBandwidthLimitsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc index 2c547047a..8689ca94d 100644 --- a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc +++ b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc @@ -35,10 +35,13 @@ DescribeCenInterRegionBandwidthLimitsResult::~DescribeCenInterRegionBandwidthLim void DescribeCenInterRegionBandwidthLimitsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCenInterRegionBandwidthLimits = value["CenInterRegionBandwidthLimits"]["CenInterRegionBandwidthLimit"]; for (auto value : allCenInterRegionBandwidthLimits) diff --git a/cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc b/cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc index 2c0828622..70b89cf28 100644 --- a/cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc +++ b/cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc @@ -33,7 +33,7 @@ long DescribeCenPrivateZoneRoutesRequest::getResourceOwnerId()const void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenPrivateZoneRoutesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getResourceOwnerAccount()const void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenPrivateZoneRoutesRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getCenId()const void DescribeCenPrivateZoneRoutesRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } int DescribeCenPrivateZoneRoutesRequest::getPageSize()const @@ -66,7 +66,7 @@ int DescribeCenPrivateZoneRoutesRequest::getPageSize()const void DescribeCenPrivateZoneRoutesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeCenPrivateZoneRoutesRequest::getHostRegionId()const @@ -77,7 +77,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getHostRegionId()const void DescribeCenPrivateZoneRoutesRequest::setHostRegionId(const std::string& hostRegionId) { hostRegionId_ = hostRegionId; - setParameter("HostRegionId", hostRegionId); + setCoreParameter("HostRegionId", hostRegionId); } std::string DescribeCenPrivateZoneRoutesRequest::getAccessRegionId()const @@ -88,7 +88,7 @@ std::string DescribeCenPrivateZoneRoutesRequest::getAccessRegionId()const void DescribeCenPrivateZoneRoutesRequest::setAccessRegionId(const std::string& accessRegionId) { accessRegionId_ = accessRegionId; - setParameter("AccessRegionId", accessRegionId); + setCoreParameter("AccessRegionId", accessRegionId); } int DescribeCenPrivateZoneRoutesRequest::getPageNumber()const @@ -99,6 +99,6 @@ int DescribeCenPrivateZoneRoutesRequest::getPageNumber()const void DescribeCenPrivateZoneRoutesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc b/cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc index 32781f9a1..2ab368fd5 100644 --- a/cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc +++ b/cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc @@ -35,10 +35,13 @@ DescribeCenPrivateZoneRoutesResult::~DescribeCenPrivateZoneRoutesResult() void DescribeCenPrivateZoneRoutesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPrivateZoneInfos = value["PrivateZoneInfos"]["PrivateZoneInfo"]; for (auto value : allPrivateZoneInfos) diff --git a/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc b/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc index 8a4275bca..38e49cd77 100644 --- a/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc +++ b/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc @@ -33,7 +33,7 @@ long DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerId()const void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerAccount( void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenRegionDomainRouteEntriesRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getCenId()const void DescribeCenRegionDomainRouteEntriesRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribeCenRegionDomainRouteEntriesRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getOwnerAccount()const void DescribeCenRegionDomainRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeCenRegionDomainRouteEntriesRequest::getCenRegionId()const @@ -77,7 +77,7 @@ std::string DescribeCenRegionDomainRouteEntriesRequest::getCenRegionId()const void DescribeCenRegionDomainRouteEntriesRequest::setCenRegionId(const std::string& cenRegionId) { cenRegionId_ = cenRegionId; - setParameter("CenRegionId", cenRegionId); + setCoreParameter("CenRegionId", cenRegionId); } int DescribeCenRegionDomainRouteEntriesRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeCenRegionDomainRouteEntriesRequest::getPageSize()const void DescribeCenRegionDomainRouteEntriesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCenRegionDomainRouteEntriesRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeCenRegionDomainRouteEntriesRequest::getOwnerId()const void DescribeCenRegionDomainRouteEntriesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeCenRegionDomainRouteEntriesRequest::getPageNumber()const @@ -110,6 +110,17 @@ int DescribeCenRegionDomainRouteEntriesRequest::getPageNumber()const void DescribeCenRegionDomainRouteEntriesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCenRegionDomainRouteEntriesRequest::getStatus()const +{ + return status_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); } diff --git a/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc b/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc index 2e26aed2a..4b50414b6 100644 --- a/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc +++ b/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc @@ -35,10 +35,13 @@ DescribeCenRegionDomainRouteEntriesResult::~DescribeCenRegionDomainRouteEntriesR void DescribeCenRegionDomainRouteEntriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCenRouteEntries = value["CenRouteEntries"]["CenRouteEntry"]; for (auto value : allCenRouteEntries) @@ -54,6 +57,38 @@ void DescribeCenRegionDomainRouteEntriesResult::parse(const std::string &payload cenRouteEntriesObject.nextHopType = value["NextHopType"].asString(); if(!value["NextHopRegionId"].isNull()) cenRouteEntriesObject.nextHopRegionId = value["NextHopRegionId"].asString(); + if(!value["Status"].isNull()) + cenRouteEntriesObject.status = value["Status"].asString(); + if(!value["ToOtherRegionStatus"].isNull()) + cenRouteEntriesObject.toOtherRegionStatus = value["ToOtherRegionStatus"].asString(); + if(!value["Preference"].isNull()) + cenRouteEntriesObject.preference = std::stoi(value["Preference"].asString()); + auto allCenRouteMapRecords = value["CenRouteMapRecords"]["CenRouteMapRecord"]; + for (auto value : allCenRouteMapRecords) + { + CenRouteEntry::CenRouteMapRecord cenRouteMapRecordsObject; + if(!value["RegionId"].isNull()) + cenRouteMapRecordsObject.regionId = value["RegionId"].asString(); + if(!value["RouteMapId"].isNull()) + cenRouteMapRecordsObject.routeMapId = value["RouteMapId"].asString(); + cenRouteEntriesObject.cenRouteMapRecords.push_back(cenRouteMapRecordsObject); + } + auto allCenOutRouteMapRecords = value["CenOutRouteMapRecords"]["CenOutRouteMapRecord"]; + for (auto value : allCenOutRouteMapRecords) + { + CenRouteEntry::CenOutRouteMapRecord cenOutRouteMapRecordsObject; + if(!value["RegionId"].isNull()) + cenOutRouteMapRecordsObject.regionId = value["RegionId"].asString(); + if(!value["RouteMapId"].isNull()) + cenOutRouteMapRecordsObject.routeMapId = value["RouteMapId"].asString(); + cenRouteEntriesObject.cenOutRouteMapRecords.push_back(cenOutRouteMapRecordsObject); + } + auto allAsPaths = value["AsPaths"]["AsPath"]; + for (auto value : allAsPaths) + cenRouteEntriesObject.asPaths.push_back(value.asString()); + auto allCommunities = value["Communities"]["Community"]; + for (auto value : allCommunities) + cenRouteEntriesObject.communities.push_back(value.asString()); cenRouteEntries_.push_back(cenRouteEntriesObject); } if(!value["PageNumber"].isNull()) diff --git a/cbn/src/model/DescribeCenRouteMapsRequest.cc b/cbn/src/model/DescribeCenRouteMapsRequest.cc new file mode 100644 index 000000000..31a28eea8 --- /dev/null +++ b/cbn/src/model/DescribeCenRouteMapsRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribeCenRouteMapsRequest; + +DescribeCenRouteMapsRequest::DescribeCenRouteMapsRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenRouteMaps") +{} + +DescribeCenRouteMapsRequest::~DescribeCenRouteMapsRequest() +{} + +long DescribeCenRouteMapsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenRouteMapsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenRouteMapsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenRouteMapsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenRouteMapsRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenRouteMapsRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string DescribeCenRouteMapsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenRouteMapsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeCenRouteMapsRequest::getCenRegionId()const +{ + return cenRegionId_; +} + +void DescribeCenRouteMapsRequest::setCenRegionId(const std::string& cenRegionId) +{ + cenRegionId_ = cenRegionId; + setCoreParameter("CenRegionId", cenRegionId); +} + +int DescribeCenRouteMapsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenRouteMapsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCenRouteMapsRequest::getRouteMapId()const +{ + return routeMapId_; +} + +void DescribeCenRouteMapsRequest::setRouteMapId(const std::string& routeMapId) +{ + routeMapId_ = routeMapId; + setCoreParameter("RouteMapId", routeMapId); +} + +long DescribeCenRouteMapsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenRouteMapsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCenRouteMapsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenRouteMapsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCenRouteMapsRequest::getTransmitDirection()const +{ + return transmitDirection_; +} + +void DescribeCenRouteMapsRequest::setTransmitDirection(const std::string& transmitDirection) +{ + transmitDirection_ = transmitDirection; + setCoreParameter("TransmitDirection", transmitDirection); +} + diff --git a/cbn/src/model/DescribeCenRouteMapsResult.cc b/cbn/src/model/DescribeCenRouteMapsResult.cc new file mode 100644 index 000000000..e1baf37bf --- /dev/null +++ b/cbn/src/model/DescribeCenRouteMapsResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenRouteMapsResult::DescribeCenRouteMapsResult() : + ServiceResult() +{} + +DescribeCenRouteMapsResult::DescribeCenRouteMapsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenRouteMapsResult::~DescribeCenRouteMapsResult() +{} + +void DescribeCenRouteMapsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRouteMaps = value["RouteMaps"]["RouteMap"]; + for (auto value : allRouteMaps) + { + RouteMap routeMapsObject; + if(!value["Status"].isNull()) + routeMapsObject.status = value["Status"].asString(); + if(!value["RouteMapId"].isNull()) + routeMapsObject.routeMapId = value["RouteMapId"].asString(); + if(!value["CenId"].isNull()) + routeMapsObject.cenId = value["CenId"].asString(); + if(!value["CenRegionId"].isNull()) + routeMapsObject.cenRegionId = value["CenRegionId"].asString(); + if(!value["Description"].isNull()) + routeMapsObject.description = value["Description"].asString(); + if(!value["MapResult"].isNull()) + routeMapsObject.mapResult = value["MapResult"].asString(); + if(!value["Priority"].isNull()) + routeMapsObject.priority = std::stoi(value["Priority"].asString()); + if(!value["NextPriority"].isNull()) + routeMapsObject.nextPriority = std::stoi(value["NextPriority"].asString()); + if(!value["CidrMatchMode"].isNull()) + routeMapsObject.cidrMatchMode = value["CidrMatchMode"].asString(); + if(!value["AsPathMatchMode"].isNull()) + routeMapsObject.asPathMatchMode = value["AsPathMatchMode"].asString(); + if(!value["AsPathLength"].isNull()) + routeMapsObject.asPathLength = std::stoi(value["AsPathLength"].asString()); + if(!value["CommunityMatchMode"].isNull()) + routeMapsObject.communityMatchMode = value["CommunityMatchMode"].asString(); + if(!value["CommunityOperateMode"].isNull()) + routeMapsObject.communityOperateMode = value["CommunityOperateMode"].asString(); + if(!value["Preference"].isNull()) + routeMapsObject.preference = std::stoi(value["Preference"].asString()); + if(!value["TransmitDirection"].isNull()) + routeMapsObject.transmitDirection = value["TransmitDirection"].asString(); + if(!value["SourceInstanceIdsReverseMatch"].isNull()) + routeMapsObject.sourceInstanceIdsReverseMatch = value["SourceInstanceIdsReverseMatch"].asString() == "true"; + if(!value["DestinationInstanceIdsReverseMatch"].isNull()) + routeMapsObject.destinationInstanceIdsReverseMatch = value["DestinationInstanceIdsReverseMatch"].asString() == "true"; + auto allSourceInstanceIds = value["SourceInstanceIds"]["SourceInstanceId"]; + for (auto value : allSourceInstanceIds) + routeMapsObject.sourceInstanceIds.push_back(value.asString()); + auto allDestinationInstanceIds = value["DestinationInstanceIds"]["DestinationInstanceId"]; + for (auto value : allDestinationInstanceIds) + routeMapsObject.destinationInstanceIds.push_back(value.asString()); + auto allSourceRouteTableIds = value["SourceRouteTableIds"]["SourceRouteTableId"]; + for (auto value : allSourceRouteTableIds) + routeMapsObject.sourceRouteTableIds.push_back(value.asString()); + auto allDestinationRouteTableIds = value["DestinationRouteTableIds"]["DestinationRouteTableId"]; + for (auto value : allDestinationRouteTableIds) + routeMapsObject.destinationRouteTableIds.push_back(value.asString()); + auto allSourceRegionIds = value["SourceRegionIds"]["SourceRegionId"]; + for (auto value : allSourceRegionIds) + routeMapsObject.sourceRegionIds.push_back(value.asString()); + auto allSourceChildInstanceTypes = value["SourceChildInstanceTypes"]["SourceChildInstanceType"]; + for (auto value : allSourceChildInstanceTypes) + routeMapsObject.sourceChildInstanceTypes.push_back(value.asString()); + auto allDestinationChildInstanceTypes = value["DestinationChildInstanceTypes"]["DestinationChildInstanceType"]; + for (auto value : allDestinationChildInstanceTypes) + routeMapsObject.destinationChildInstanceTypes.push_back(value.asString()); + auto allDestinationCidrBlocks = value["DestinationCidrBlocks"]["DestinationCidrBlock"]; + for (auto value : allDestinationCidrBlocks) + routeMapsObject.destinationCidrBlocks.push_back(value.asString()); + auto allRouteTypes = value["RouteTypes"]["RouteType"]; + for (auto value : allRouteTypes) + routeMapsObject.routeTypes.push_back(value.asString()); + auto allMatchAsns = value["MatchAsns"]["MatchAsn"]; + for (auto value : allMatchAsns) + routeMapsObject.matchAsns.push_back(value.asString()); + auto allMatchCommunitySet = value["MatchCommunitySet"]["MatchCommunity"]; + for (auto value : allMatchCommunitySet) + routeMapsObject.matchCommunitySet.push_back(value.asString()); + auto allOperateCommunitySet = value["OperateCommunitySet"]["OperateCommunity"]; + for (auto value : allOperateCommunitySet) + routeMapsObject.operateCommunitySet.push_back(value.asString()); + routeMaps_.push_back(routeMapsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenRouteMapsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenRouteMapsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenRouteMapsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCenRouteMapsResult::getRouteMaps()const +{ + return routeMaps_; +} + diff --git a/cbn/src/model/DescribeCenVbrHealthCheckRequest.cc b/cbn/src/model/DescribeCenVbrHealthCheckRequest.cc index 43f71c54b..a83e29701 100644 --- a/cbn/src/model/DescribeCenVbrHealthCheckRequest.cc +++ b/cbn/src/model/DescribeCenVbrHealthCheckRequest.cc @@ -33,7 +33,7 @@ long DescribeCenVbrHealthCheckRequest::getResourceOwnerId()const void DescribeCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCenVbrHealthCheckRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCenVbrHealthCheckRequest::getResourceOwnerAccount()const void DescribeCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCenVbrHealthCheckRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DescribeCenVbrHealthCheckRequest::getCenId()const void DescribeCenVbrHealthCheckRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } long DescribeCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const @@ -66,7 +66,7 @@ long DescribeCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const void DescribeCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) { vbrInstanceOwnerId_ = vbrInstanceOwnerId; - setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); + setCoreParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); } std::string DescribeCenVbrHealthCheckRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeCenVbrHealthCheckRequest::getOwnerAccount()const void DescribeCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceId()const @@ -88,7 +88,7 @@ std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceId()const void DescribeCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId) { vbrInstanceId_ = vbrInstanceId; - setParameter("VbrInstanceId", vbrInstanceId); + setCoreParameter("VbrInstanceId", vbrInstanceId); } int DescribeCenVbrHealthCheckRequest::getPageSize()const @@ -99,7 +99,7 @@ int DescribeCenVbrHealthCheckRequest::getPageSize()const void DescribeCenVbrHealthCheckRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCenVbrHealthCheckRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeCenVbrHealthCheckRequest::getOwnerId()const void DescribeCenVbrHealthCheckRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceRegionId()const @@ -121,7 +121,7 @@ std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceRegionId()const void DescribeCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId) { vbrInstanceRegionId_ = vbrInstanceRegionId; - setParameter("VbrInstanceRegionId", vbrInstanceRegionId); + setCoreParameter("VbrInstanceRegionId", vbrInstanceRegionId); } int DescribeCenVbrHealthCheckRequest::getPageNumber()const @@ -132,6 +132,6 @@ int DescribeCenVbrHealthCheckRequest::getPageNumber()const void DescribeCenVbrHealthCheckRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cbn/src/model/DescribeCenVbrHealthCheckResult.cc b/cbn/src/model/DescribeCenVbrHealthCheckResult.cc index 6a425b96a..59d0d36b2 100644 --- a/cbn/src/model/DescribeCenVbrHealthCheckResult.cc +++ b/cbn/src/model/DescribeCenVbrHealthCheckResult.cc @@ -35,10 +35,13 @@ DescribeCenVbrHealthCheckResult::~DescribeCenVbrHealthCheckResult() void DescribeCenVbrHealthCheckResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVbrHealthChecks = value["VbrHealthChecks"]["VbrHealthCheck"]; for (auto value : allVbrHealthChecks) diff --git a/cbn/src/model/DescribeCensRequest.cc b/cbn/src/model/DescribeCensRequest.cc index a33659777..c7e6d7c70 100644 --- a/cbn/src/model/DescribeCensRequest.cc +++ b/cbn/src/model/DescribeCensRequest.cc @@ -37,8 +37,8 @@ void DescribeCensRequest::setFilter(const std::vector& filter) for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribeCensRequest::getResourceOwnerId()const void DescribeCensRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCensRequest::getResourceOwnerAccount()const @@ -61,7 +61,7 @@ std::string DescribeCensRequest::getResourceOwnerAccount()const void DescribeCensRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCensRequest::getOwnerAccount()const @@ -72,7 +72,7 @@ std::string DescribeCensRequest::getOwnerAccount()const void DescribeCensRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeCensRequest::getPageSize()const @@ -83,7 +83,7 @@ int DescribeCensRequest::getPageSize()const void DescribeCensRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::vector DescribeCensRequest::getTag()const @@ -98,8 +98,8 @@ void DescribeCensRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -111,7 +111,7 @@ long DescribeCensRequest::getOwnerId()const void DescribeCensRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeCensRequest::getPageNumber()const @@ -122,6 +122,6 @@ int DescribeCensRequest::getPageNumber()const void DescribeCensRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cbn/src/model/DescribeCensResult.cc b/cbn/src/model/DescribeCensResult.cc index 1e24e6bae..7c6336178 100644 --- a/cbn/src/model/DescribeCensResult.cc +++ b/cbn/src/model/DescribeCensResult.cc @@ -35,10 +35,13 @@ DescribeCensResult::~DescribeCensResult() void DescribeCensResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCens = value["Cens"]["Cen"]; for (auto value : allCens) diff --git a/cbn/src/model/DescribeChildInstanceRegionsRequest.cc b/cbn/src/model/DescribeChildInstanceRegionsRequest.cc index 3797c561f..706b1663c 100644 --- a/cbn/src/model/DescribeChildInstanceRegionsRequest.cc +++ b/cbn/src/model/DescribeChildInstanceRegionsRequest.cc @@ -33,7 +33,7 @@ long DescribeChildInstanceRegionsRequest::getResourceOwnerId()const void DescribeChildInstanceRegionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeChildInstanceRegionsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeChildInstanceRegionsRequest::getResourceOwnerAccount()const void DescribeChildInstanceRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeChildInstanceRegionsRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeChildInstanceRegionsRequest::getOwnerAccount()const void DescribeChildInstanceRegionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeChildInstanceRegionsRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DescribeChildInstanceRegionsRequest::getOwnerId()const void DescribeChildInstanceRegionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeChildInstanceRegionsRequest::getProductType()const @@ -77,6 +77,6 @@ std::string DescribeChildInstanceRegionsRequest::getProductType()const void DescribeChildInstanceRegionsRequest::setProductType(const std::string& productType) { productType_ = productType; - setParameter("ProductType", productType); + setCoreParameter("ProductType", productType); } diff --git a/cbn/src/model/DescribeChildInstanceRegionsResult.cc b/cbn/src/model/DescribeChildInstanceRegionsResult.cc index 2ad4de97a..c0b31ddce 100644 --- a/cbn/src/model/DescribeChildInstanceRegionsResult.cc +++ b/cbn/src/model/DescribeChildInstanceRegionsResult.cc @@ -35,10 +35,13 @@ DescribeChildInstanceRegionsResult::~DescribeChildInstanceRegionsResult() void DescribeChildInstanceRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/cbn/src/model/DescribeFlowlogsRequest.cc b/cbn/src/model/DescribeFlowlogsRequest.cc new file mode 100644 index 000000000..4b12a3bd9 --- /dev/null +++ b/cbn/src/model/DescribeFlowlogsRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribeFlowlogsRequest; + +DescribeFlowlogsRequest::DescribeFlowlogsRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeFlowlogs") +{} + +DescribeFlowlogsRequest::~DescribeFlowlogsRequest() +{} + +long DescribeFlowlogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeFlowlogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeFlowlogsRequest::getProjectName()const +{ + return projectName_; +} + +void DescribeFlowlogsRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setCoreParameter("ProjectName", projectName); +} + +std::string DescribeFlowlogsRequest::getLogStoreName()const +{ + return logStoreName_; +} + +void DescribeFlowlogsRequest::setLogStoreName(const std::string& logStoreName) +{ + logStoreName_ = logStoreName; + setCoreParameter("LogStoreName", logStoreName); +} + +std::string DescribeFlowlogsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeFlowlogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeFlowlogsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeFlowlogsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DescribeFlowlogsRequest::getCenId()const +{ + return cenId_; +} + +void DescribeFlowlogsRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string DescribeFlowlogsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeFlowlogsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeFlowlogsRequest::getDescription()const +{ + return description_; +} + +void DescribeFlowlogsRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long DescribeFlowlogsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeFlowlogsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeFlowlogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeFlowlogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeFlowlogsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeFlowlogsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeFlowlogsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeFlowlogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeFlowlogsRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DescribeFlowlogsRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + +std::string DescribeFlowlogsRequest::getFlowLogName()const +{ + return flowLogName_; +} + +void DescribeFlowlogsRequest::setFlowLogName(const std::string& flowLogName) +{ + flowLogName_ = flowLogName; + setCoreParameter("FlowLogName", flowLogName); +} + +std::string DescribeFlowlogsRequest::getStatus()const +{ + return status_; +} + +void DescribeFlowlogsRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/cbn/src/model/DescribeFlowlogsResult.cc b/cbn/src/model/DescribeFlowlogsResult.cc new file mode 100644 index 000000000..98d8d2a63 --- /dev/null +++ b/cbn/src/model/DescribeFlowlogsResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeFlowlogsResult::DescribeFlowlogsResult() : + ServiceResult() +{} + +DescribeFlowlogsResult::DescribeFlowlogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFlowlogsResult::~DescribeFlowlogsResult() +{} + +void DescribeFlowlogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allFlowLogs = value["FlowLogs"]["FlowLog"]; + for (auto value : allFlowLogs) + { + FlowLog flowLogsObject; + if(!value["FlowLogId"].isNull()) + flowLogsObject.flowLogId = value["FlowLogId"].asString(); + if(!value["FlowLogName"].isNull()) + flowLogsObject.flowLogName = value["FlowLogName"].asString(); + if(!value["Description"].isNull()) + flowLogsObject.description = value["Description"].asString(); + if(!value["CreationTime"].isNull()) + flowLogsObject.creationTime = value["CreationTime"].asString(); + if(!value["CenId"].isNull()) + flowLogsObject.cenId = value["CenId"].asString(); + if(!value["ProjectName"].isNull()) + flowLogsObject.projectName = value["ProjectName"].asString(); + if(!value["LogStoreName"].isNull()) + flowLogsObject.logStoreName = value["LogStoreName"].asString(); + if(!value["Status"].isNull()) + flowLogsObject.status = value["Status"].asString(); + if(!value["RegionId"].isNull()) + flowLogsObject.regionId = value["RegionId"].asString(); + flowLogs_.push_back(flowLogsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + +} + +std::string DescribeFlowlogsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeFlowlogsResult::getFlowLogs()const +{ + return flowLogs_; +} + +std::string DescribeFlowlogsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeFlowlogsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeFlowlogsResult::getSuccess()const +{ + return success_; +} + diff --git a/cbn/src/model/DescribeGeographicRegionMembershipRequest.cc b/cbn/src/model/DescribeGeographicRegionMembershipRequest.cc index 2a90b142e..2922bd818 100644 --- a/cbn/src/model/DescribeGeographicRegionMembershipRequest.cc +++ b/cbn/src/model/DescribeGeographicRegionMembershipRequest.cc @@ -33,7 +33,7 @@ long DescribeGeographicRegionMembershipRequest::getResourceOwnerId()const void DescribeGeographicRegionMembershipRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeGeographicRegionMembershipRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeGeographicRegionMembershipRequest::getResourceOwnerAccount() void DescribeGeographicRegionMembershipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeGeographicRegionMembershipRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeGeographicRegionMembershipRequest::getOwnerAccount()const void DescribeGeographicRegionMembershipRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeGeographicRegionMembershipRequest::getPageSize()const @@ -66,7 +66,7 @@ int DescribeGeographicRegionMembershipRequest::getPageSize()const void DescribeGeographicRegionMembershipRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeGeographicRegionMembershipRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeGeographicRegionMembershipRequest::getOwnerId()const void DescribeGeographicRegionMembershipRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeGeographicRegionMembershipRequest::getPageNumber()const @@ -88,7 +88,7 @@ int DescribeGeographicRegionMembershipRequest::getPageNumber()const void DescribeGeographicRegionMembershipRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeGeographicRegionMembershipRequest::getGeographicRegionId()const @@ -99,6 +99,6 @@ std::string DescribeGeographicRegionMembershipRequest::getGeographicRegionId()co void DescribeGeographicRegionMembershipRequest::setGeographicRegionId(const std::string& geographicRegionId) { geographicRegionId_ = geographicRegionId; - setParameter("GeographicRegionId", geographicRegionId); + setCoreParameter("GeographicRegionId", geographicRegionId); } diff --git a/cbn/src/model/DescribeGeographicRegionMembershipResult.cc b/cbn/src/model/DescribeGeographicRegionMembershipResult.cc index 701d2dab7..9cb1fdf70 100644 --- a/cbn/src/model/DescribeGeographicRegionMembershipResult.cc +++ b/cbn/src/model/DescribeGeographicRegionMembershipResult.cc @@ -35,10 +35,13 @@ DescribeGeographicRegionMembershipResult::~DescribeGeographicRegionMembershipRes void DescribeGeographicRegionMembershipResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegionIds = value["RegionIds"]["RegionId"]; for (auto value : allRegionIds) diff --git a/cbn/src/model/DescribeGrantRulesToCenRequest.cc b/cbn/src/model/DescribeGrantRulesToCenRequest.cc index 1b66df8d4..8d6631be8 100644 --- a/cbn/src/model/DescribeGrantRulesToCenRequest.cc +++ b/cbn/src/model/DescribeGrantRulesToCenRequest.cc @@ -33,7 +33,7 @@ long DescribeGrantRulesToCenRequest::getResourceOwnerId()const void DescribeGrantRulesToCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const void DescribeGrantRulesToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeGrantRulesToCenRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeGrantRulesToCenRequest::getRegionId()const void DescribeGrantRulesToCenRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeGrantRulesToCenRequest::getCenId()const @@ -66,7 +66,7 @@ std::string DescribeGrantRulesToCenRequest::getCenId()const void DescribeGrantRulesToCenRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const void DescribeGrantRulesToCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeGrantRulesToCenRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeGrantRulesToCenRequest::getOwnerId()const void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeGrantRulesToCenRequest::getProductType()const @@ -99,6 +99,6 @@ std::string DescribeGrantRulesToCenRequest::getProductType()const void DescribeGrantRulesToCenRequest::setProductType(const std::string& productType) { productType_ = productType; - setParameter("ProductType", productType); + setCoreParameter("ProductType", productType); } diff --git a/cbn/src/model/DescribeGrantRulesToCenResult.cc b/cbn/src/model/DescribeGrantRulesToCenResult.cc index cfa4acfd7..5b5899a02 100644 --- a/cbn/src/model/DescribeGrantRulesToCenResult.cc +++ b/cbn/src/model/DescribeGrantRulesToCenResult.cc @@ -35,10 +35,13 @@ DescribeGrantRulesToCenResult::~DescribeGrantRulesToCenResult() void DescribeGrantRulesToCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGrantRules = value["GrantRules"]["GrantRule"]; for (auto value : allGrantRules) diff --git a/cbn/src/model/DescribePublishedRouteEntriesRequest.cc b/cbn/src/model/DescribePublishedRouteEntriesRequest.cc index 0b7f1356e..417f27189 100644 --- a/cbn/src/model/DescribePublishedRouteEntriesRequest.cc +++ b/cbn/src/model/DescribePublishedRouteEntriesRequest.cc @@ -33,7 +33,7 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceId()const void DescribePublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId) { childInstanceId_ = childInstanceId; - setParameter("ChildInstanceId", childInstanceId); + setCoreParameter("ChildInstanceId", childInstanceId); } long DescribePublishedRouteEntriesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribePublishedRouteEntriesRequest::getResourceOwnerId()const void DescribePublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribePublishedRouteEntriesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribePublishedRouteEntriesRequest::getResourceOwnerAccount()const void DescribePublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribePublishedRouteEntriesRequest::getCenId()const @@ -66,7 +66,7 @@ std::string DescribePublishedRouteEntriesRequest::getCenId()const void DescribePublishedRouteEntriesRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribePublishedRouteEntriesRequest::getDestinationCidrBlock()const @@ -77,7 +77,7 @@ std::string DescribePublishedRouteEntriesRequest::getDestinationCidrBlock()const void DescribePublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) { destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); + setCoreParameter("DestinationCidrBlock", destinationCidrBlock); } int DescribePublishedRouteEntriesRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribePublishedRouteEntriesRequest::getPageSize()const void DescribePublishedRouteEntriesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribePublishedRouteEntriesRequest::getChildInstanceType()const @@ -99,7 +99,7 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceType()const void DescribePublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } std::string DescribePublishedRouteEntriesRequest::getChildInstanceRouteTableId()const @@ -110,7 +110,7 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceRouteTableId() void DescribePublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) { childInstanceRouteTableId_ = childInstanceRouteTableId; - setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); + setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); } int DescribePublishedRouteEntriesRequest::getPageNumber()const @@ -121,7 +121,7 @@ int DescribePublishedRouteEntriesRequest::getPageNumber()const void DescribePublishedRouteEntriesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribePublishedRouteEntriesRequest::getChildInstanceRegionId()const @@ -132,6 +132,6 @@ std::string DescribePublishedRouteEntriesRequest::getChildInstanceRegionId()cons void DescribePublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/DescribePublishedRouteEntriesResult.cc b/cbn/src/model/DescribePublishedRouteEntriesResult.cc index 2ec92450d..ff26ae075 100644 --- a/cbn/src/model/DescribePublishedRouteEntriesResult.cc +++ b/cbn/src/model/DescribePublishedRouteEntriesResult.cc @@ -35,10 +35,13 @@ DescribePublishedRouteEntriesResult::~DescribePublishedRouteEntriesResult() void DescribePublishedRouteEntriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPublishedRouteEntries = value["PublishedRouteEntries"]["PublishedRouteEntry"]; for (auto value : allPublishedRouteEntries) diff --git a/cbn/src/model/DescribeRouteConflictRequest.cc b/cbn/src/model/DescribeRouteConflictRequest.cc index 6ff4b9bdb..066174d96 100644 --- a/cbn/src/model/DescribeRouteConflictRequest.cc +++ b/cbn/src/model/DescribeRouteConflictRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRouteConflictRequest::getChildInstanceId()const void DescribeRouteConflictRequest::setChildInstanceId(const std::string& childInstanceId) { childInstanceId_ = childInstanceId; - setParameter("ChildInstanceId", childInstanceId); + setCoreParameter("ChildInstanceId", childInstanceId); } long DescribeRouteConflictRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeRouteConflictRequest::getResourceOwnerId()const void DescribeRouteConflictRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRouteConflictRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRouteConflictRequest::getResourceOwnerAccount()const void DescribeRouteConflictRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRouteConflictRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeRouteConflictRequest::getOwnerAccount()const void DescribeRouteConflictRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeRouteConflictRequest::getDestinationCidrBlock()const @@ -77,7 +77,7 @@ std::string DescribeRouteConflictRequest::getDestinationCidrBlock()const void DescribeRouteConflictRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) { destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); + setCoreParameter("DestinationCidrBlock", destinationCidrBlock); } int DescribeRouteConflictRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeRouteConflictRequest::getPageSize()const void DescribeRouteConflictRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeRouteConflictRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeRouteConflictRequest::getOwnerId()const void DescribeRouteConflictRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRouteConflictRequest::getChildInstanceType()const @@ -110,7 +110,7 @@ std::string DescribeRouteConflictRequest::getChildInstanceType()const void DescribeRouteConflictRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } std::string DescribeRouteConflictRequest::getChildInstanceRouteTableId()const @@ -121,7 +121,7 @@ std::string DescribeRouteConflictRequest::getChildInstanceRouteTableId()const void DescribeRouteConflictRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) { childInstanceRouteTableId_ = childInstanceRouteTableId; - setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); + setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); } int DescribeRouteConflictRequest::getPageNumber()const @@ -132,7 +132,7 @@ int DescribeRouteConflictRequest::getPageNumber()const void DescribeRouteConflictRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeRouteConflictRequest::getChildInstanceRegionId()const @@ -143,6 +143,6 @@ std::string DescribeRouteConflictRequest::getChildInstanceRegionId()const void DescribeRouteConflictRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/DescribeRouteConflictResult.cc b/cbn/src/model/DescribeRouteConflictResult.cc index c51459fa3..2bff23c3a 100644 --- a/cbn/src/model/DescribeRouteConflictResult.cc +++ b/cbn/src/model/DescribeRouteConflictResult.cc @@ -35,10 +35,13 @@ DescribeRouteConflictResult::~DescribeRouteConflictResult() void DescribeRouteConflictResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRouteConflicts = value["RouteConflicts"]["RouteConflict"]; for (auto value : allRouteConflicts) diff --git a/cbn/src/model/DescribeRouteServicesInCenRequest.cc b/cbn/src/model/DescribeRouteServicesInCenRequest.cc index 7b48ef7bb..e89314d2e 100644 --- a/cbn/src/model/DescribeRouteServicesInCenRequest.cc +++ b/cbn/src/model/DescribeRouteServicesInCenRequest.cc @@ -33,7 +33,7 @@ long DescribeRouteServicesInCenRequest::getResourceOwnerId()const void DescribeRouteServicesInCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRouteServicesInCenRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeRouteServicesInCenRequest::getResourceOwnerAccount()const void DescribeRouteServicesInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRouteServicesInCenRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DescribeRouteServicesInCenRequest::getCenId()const void DescribeRouteServicesInCenRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DescribeRouteServicesInCenRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeRouteServicesInCenRequest::getOwnerAccount()const void DescribeRouteServicesInCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeRouteServicesInCenRequest::getPageSize()const @@ -77,7 +77,7 @@ int DescribeRouteServicesInCenRequest::getPageSize()const void DescribeRouteServicesInCenRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeRouteServicesInCenRequest::getHost()const @@ -88,7 +88,7 @@ std::string DescribeRouteServicesInCenRequest::getHost()const void DescribeRouteServicesInCenRequest::setHost(const std::string& host) { host_ = host; - setParameter("Host", host); + setCoreParameter("Host", host); } std::string DescribeRouteServicesInCenRequest::getHostRegionId()const @@ -99,7 +99,7 @@ std::string DescribeRouteServicesInCenRequest::getHostRegionId()const void DescribeRouteServicesInCenRequest::setHostRegionId(const std::string& hostRegionId) { hostRegionId_ = hostRegionId; - setParameter("HostRegionId", hostRegionId); + setCoreParameter("HostRegionId", hostRegionId); } std::string DescribeRouteServicesInCenRequest::getAccessRegionId()const @@ -110,7 +110,7 @@ std::string DescribeRouteServicesInCenRequest::getAccessRegionId()const void DescribeRouteServicesInCenRequest::setAccessRegionId(const std::string& accessRegionId) { accessRegionId_ = accessRegionId; - setParameter("AccessRegionId", accessRegionId); + setCoreParameter("AccessRegionId", accessRegionId); } long DescribeRouteServicesInCenRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeRouteServicesInCenRequest::getOwnerId()const void DescribeRouteServicesInCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeRouteServicesInCenRequest::getPageNumber()const @@ -132,6 +132,6 @@ int DescribeRouteServicesInCenRequest::getPageNumber()const void DescribeRouteServicesInCenRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cbn/src/model/DescribeRouteServicesInCenResult.cc b/cbn/src/model/DescribeRouteServicesInCenResult.cc index 3fe9ce341..cd0562df9 100644 --- a/cbn/src/model/DescribeRouteServicesInCenResult.cc +++ b/cbn/src/model/DescribeRouteServicesInCenResult.cc @@ -35,10 +35,13 @@ DescribeRouteServicesInCenResult::~DescribeRouteServicesInCenResult() void DescribeRouteServicesInCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRouteServiceEntries = value["RouteServiceEntries"]["RouteServiceEntry"]; for (auto value : allRouteServiceEntries) diff --git a/cbn/src/model/DetachCenChildInstanceRequest.cc b/cbn/src/model/DetachCenChildInstanceRequest.cc index 4d492a804..ea7237b41 100644 --- a/cbn/src/model/DetachCenChildInstanceRequest.cc +++ b/cbn/src/model/DetachCenChildInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DetachCenChildInstanceRequest::getChildInstanceId()const void DetachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId) { childInstanceId_ = childInstanceId; - setParameter("ChildInstanceId", childInstanceId); + setCoreParameter("ChildInstanceId", childInstanceId); } long DetachCenChildInstanceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DetachCenChildInstanceRequest::getResourceOwnerId()const void DetachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DetachCenChildInstanceRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DetachCenChildInstanceRequest::getResourceOwnerAccount()const void DetachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DetachCenChildInstanceRequest::getCenId()const @@ -66,7 +66,7 @@ std::string DetachCenChildInstanceRequest::getCenId()const void DetachCenChildInstanceRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string DetachCenChildInstanceRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DetachCenChildInstanceRequest::getOwnerAccount()const void DetachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DetachCenChildInstanceRequest::getCenOwnerId()const @@ -88,7 +88,7 @@ long DetachCenChildInstanceRequest::getCenOwnerId()const void DetachCenChildInstanceRequest::setCenOwnerId(long cenOwnerId) { cenOwnerId_ = cenOwnerId; - setParameter("CenOwnerId", std::to_string(cenOwnerId)); + setCoreParameter("CenOwnerId", std::to_string(cenOwnerId)); } long DetachCenChildInstanceRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DetachCenChildInstanceRequest::getOwnerId()const void DetachCenChildInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DetachCenChildInstanceRequest::getChildInstanceType()const @@ -110,7 +110,7 @@ std::string DetachCenChildInstanceRequest::getChildInstanceType()const void DetachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } long DetachCenChildInstanceRequest::getChildInstanceOwnerId()const @@ -121,7 +121,7 @@ long DetachCenChildInstanceRequest::getChildInstanceOwnerId()const void DetachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId) { childInstanceOwnerId_ = childInstanceOwnerId; - setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId)); + setCoreParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId)); } std::string DetachCenChildInstanceRequest::getChildInstanceRegionId()const @@ -132,6 +132,6 @@ std::string DetachCenChildInstanceRequest::getChildInstanceRegionId()const void DetachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/DetachCenChildInstanceResult.cc b/cbn/src/model/DetachCenChildInstanceResult.cc index 219fa7e25..85173644e 100644 --- a/cbn/src/model/DetachCenChildInstanceResult.cc +++ b/cbn/src/model/DetachCenChildInstanceResult.cc @@ -35,10 +35,13 @@ DetachCenChildInstanceResult::~DetachCenChildInstanceResult() void DetachCenChildInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/DisableCenVbrHealthCheckRequest.cc b/cbn/src/model/DisableCenVbrHealthCheckRequest.cc index e54929b01..ef9b6c15f 100644 --- a/cbn/src/model/DisableCenVbrHealthCheckRequest.cc +++ b/cbn/src/model/DisableCenVbrHealthCheckRequest.cc @@ -33,7 +33,7 @@ long DisableCenVbrHealthCheckRequest::getResourceOwnerId()const void DisableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DisableCenVbrHealthCheckRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DisableCenVbrHealthCheckRequest::getResourceOwnerAccount()const void DisableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DisableCenVbrHealthCheckRequest::getCenId()const @@ -55,7 +55,7 @@ std::string DisableCenVbrHealthCheckRequest::getCenId()const void DisableCenVbrHealthCheckRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } long DisableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const @@ -66,7 +66,7 @@ long DisableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const void DisableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) { vbrInstanceOwnerId_ = vbrInstanceOwnerId; - setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); + setCoreParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); } std::string DisableCenVbrHealthCheckRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DisableCenVbrHealthCheckRequest::getOwnerAccount()const void DisableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DisableCenVbrHealthCheckRequest::getVbrInstanceId()const @@ -88,7 +88,7 @@ std::string DisableCenVbrHealthCheckRequest::getVbrInstanceId()const void DisableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId) { vbrInstanceId_ = vbrInstanceId; - setParameter("VbrInstanceId", vbrInstanceId); + setCoreParameter("VbrInstanceId", vbrInstanceId); } long DisableCenVbrHealthCheckRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DisableCenVbrHealthCheckRequest::getOwnerId()const void DisableCenVbrHealthCheckRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DisableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const @@ -110,6 +110,6 @@ std::string DisableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const void DisableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId) { vbrInstanceRegionId_ = vbrInstanceRegionId; - setParameter("VbrInstanceRegionId", vbrInstanceRegionId); + setCoreParameter("VbrInstanceRegionId", vbrInstanceRegionId); } diff --git a/cbn/src/model/DisableCenVbrHealthCheckResult.cc b/cbn/src/model/DisableCenVbrHealthCheckResult.cc index b849766fa..179f0ae49 100644 --- a/cbn/src/model/DisableCenVbrHealthCheckResult.cc +++ b/cbn/src/model/DisableCenVbrHealthCheckResult.cc @@ -35,10 +35,13 @@ DisableCenVbrHealthCheckResult::~DisableCenVbrHealthCheckResult() void DisableCenVbrHealthCheckResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/EnableCenVbrHealthCheckRequest.cc b/cbn/src/model/EnableCenVbrHealthCheckRequest.cc index 05dcd35b4..2f04a22a1 100644 --- a/cbn/src/model/EnableCenVbrHealthCheckRequest.cc +++ b/cbn/src/model/EnableCenVbrHealthCheckRequest.cc @@ -33,7 +33,7 @@ long EnableCenVbrHealthCheckRequest::getResourceOwnerId()const void EnableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount()const void EnableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string EnableCenVbrHealthCheckRequest::getCenId()const @@ -55,7 +55,7 @@ std::string EnableCenVbrHealthCheckRequest::getCenId()const void EnableCenVbrHealthCheckRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp()const @@ -66,7 +66,7 @@ std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp()const void EnableCenVbrHealthCheckRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) { healthCheckSourceIp_ = healthCheckSourceIp; - setParameter("HealthCheckSourceIp", healthCheckSourceIp); + setCoreParameter("HealthCheckSourceIp", healthCheckSourceIp); } long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const @@ -77,7 +77,7 @@ long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const void EnableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) { vbrInstanceOwnerId_ = vbrInstanceOwnerId; - setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); + setCoreParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); } std::string EnableCenVbrHealthCheckRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string EnableCenVbrHealthCheckRequest::getOwnerAccount()const void EnableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId()const @@ -99,7 +99,7 @@ std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId()const void EnableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId) { vbrInstanceId_ = vbrInstanceId; - setParameter("VbrInstanceId", vbrInstanceId); + setCoreParameter("VbrInstanceId", vbrInstanceId); } std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp()const @@ -110,7 +110,7 @@ std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp()const void EnableCenVbrHealthCheckRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) { healthCheckTargetIp_ = healthCheckTargetIp; - setParameter("HealthCheckTargetIp", healthCheckTargetIp); + setCoreParameter("HealthCheckTargetIp", healthCheckTargetIp); } long EnableCenVbrHealthCheckRequest::getOwnerId()const @@ -121,7 +121,7 @@ long EnableCenVbrHealthCheckRequest::getOwnerId()const void EnableCenVbrHealthCheckRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const @@ -132,6 +132,6 @@ std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const void EnableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId) { vbrInstanceRegionId_ = vbrInstanceRegionId; - setParameter("VbrInstanceRegionId", vbrInstanceRegionId); + setCoreParameter("VbrInstanceRegionId", vbrInstanceRegionId); } diff --git a/cbn/src/model/EnableCenVbrHealthCheckResult.cc b/cbn/src/model/EnableCenVbrHealthCheckResult.cc index c6d1239a3..9f4027f48 100644 --- a/cbn/src/model/EnableCenVbrHealthCheckResult.cc +++ b/cbn/src/model/EnableCenVbrHealthCheckResult.cc @@ -35,10 +35,13 @@ EnableCenVbrHealthCheckResult::~EnableCenVbrHealthCheckResult() void EnableCenVbrHealthCheckResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/ModifyCenAttributeRequest.cc b/cbn/src/model/ModifyCenAttributeRequest.cc index a6e0f59de..45f58484c 100644 --- a/cbn/src/model/ModifyCenAttributeRequest.cc +++ b/cbn/src/model/ModifyCenAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyCenAttributeRequest::getProtectionLevel()const void ModifyCenAttributeRequest::setProtectionLevel(const std::string& protectionLevel) { protectionLevel_ = protectionLevel; - setParameter("ProtectionLevel", protectionLevel); + setCoreParameter("ProtectionLevel", protectionLevel); } long ModifyCenAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyCenAttributeRequest::getResourceOwnerId()const void ModifyCenAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCenAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyCenAttributeRequest::getResourceOwnerAccount()const void ModifyCenAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyCenAttributeRequest::getCenId()const @@ -66,7 +66,7 @@ std::string ModifyCenAttributeRequest::getCenId()const void ModifyCenAttributeRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string ModifyCenAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyCenAttributeRequest::getOwnerAccount()const void ModifyCenAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyCenAttributeRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyCenAttributeRequest::getName()const void ModifyCenAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyCenAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyCenAttributeRequest::getDescription()const void ModifyCenAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyCenAttributeRequest::getOwnerId()const @@ -110,6 +110,6 @@ long ModifyCenAttributeRequest::getOwnerId()const void ModifyCenAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/ModifyCenAttributeResult.cc b/cbn/src/model/ModifyCenAttributeResult.cc index 88758bf3e..c48a73d5c 100644 --- a/cbn/src/model/ModifyCenAttributeResult.cc +++ b/cbn/src/model/ModifyCenAttributeResult.cc @@ -35,10 +35,13 @@ ModifyCenAttributeResult::~ModifyCenAttributeResult() void ModifyCenAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc b/cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc index 7d131671e..0d672f4ae 100644 --- a/cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc +++ b/cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerId()const void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerAccount() void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyCenBandwidthPackageAttributeRequest::getCenBandwidthPackageId()const @@ -55,7 +55,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getCenBandwidthPackageId( void ModifyCenBandwidthPackageAttributeRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) { cenBandwidthPackageId_ = cenBandwidthPackageId; - setParameter("CenBandwidthPackageId", cenBandwidthPackageId); + setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId); } std::string ModifyCenBandwidthPackageAttributeRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getOwnerAccount()const void ModifyCenBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyCenBandwidthPackageAttributeRequest::getName()const @@ -77,7 +77,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getName()const void ModifyCenBandwidthPackageAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyCenBandwidthPackageAttributeRequest::getDescription()const @@ -88,7 +88,7 @@ std::string ModifyCenBandwidthPackageAttributeRequest::getDescription()const void ModifyCenBandwidthPackageAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyCenBandwidthPackageAttributeRequest::getOwnerId()const @@ -99,6 +99,6 @@ long ModifyCenBandwidthPackageAttributeRequest::getOwnerId()const void ModifyCenBandwidthPackageAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc b/cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc index bfd8a19d8..5a5b94bc0 100644 --- a/cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc +++ b/cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc @@ -35,10 +35,13 @@ ModifyCenBandwidthPackageAttributeResult::~ModifyCenBandwidthPackageAttributeRes void ModifyCenBandwidthPackageAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc b/cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc index 5f6b50e42..d675a1ea8 100644 --- a/cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc +++ b/cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc @@ -33,7 +33,7 @@ long ModifyCenBandwidthPackageSpecRequest::getResourceOwnerId()const void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCenBandwidthPackageSpecRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyCenBandwidthPackageSpecRequest::getResourceOwnerAccount()const void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int ModifyCenBandwidthPackageSpecRequest::getBandwidth()const @@ -55,7 +55,7 @@ int ModifyCenBandwidthPackageSpecRequest::getBandwidth()const void ModifyCenBandwidthPackageSpecRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string ModifyCenBandwidthPackageSpecRequest::getCenBandwidthPackageId()const @@ -66,7 +66,7 @@ std::string ModifyCenBandwidthPackageSpecRequest::getCenBandwidthPackageId()cons void ModifyCenBandwidthPackageSpecRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) { cenBandwidthPackageId_ = cenBandwidthPackageId; - setParameter("CenBandwidthPackageId", cenBandwidthPackageId); + setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId); } std::string ModifyCenBandwidthPackageSpecRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyCenBandwidthPackageSpecRequest::getOwnerAccount()const void ModifyCenBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyCenBandwidthPackageSpecRequest::getOwnerId()const @@ -88,6 +88,6 @@ long ModifyCenBandwidthPackageSpecRequest::getOwnerId()const void ModifyCenBandwidthPackageSpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc b/cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc index c6a3b72cb..7d6f9dc5f 100644 --- a/cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc +++ b/cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc @@ -35,10 +35,13 @@ ModifyCenBandwidthPackageSpecResult::~ModifyCenBandwidthPackageSpecResult() void ModifyCenBandwidthPackageSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/ModifyCenRouteMapRequest.cc b/cbn/src/model/ModifyCenRouteMapRequest.cc new file mode 100644 index 000000000..50a6da735 --- /dev/null +++ b/cbn/src/model/ModifyCenRouteMapRequest.cc @@ -0,0 +1,380 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::ModifyCenRouteMapRequest; + +ModifyCenRouteMapRequest::ModifyCenRouteMapRequest() : + RpcServiceRequest("cbn", "2017-09-12", "ModifyCenRouteMap") +{} + +ModifyCenRouteMapRequest::~ModifyCenRouteMapRequest() +{} + +std::vector ModifyCenRouteMapRequest::getRouteTypes()const +{ + return routeTypes_; +} + +void ModifyCenRouteMapRequest::setRouteTypes(const std::vector& routeTypes) +{ + routeTypes_ = routeTypes; + for(int i = 0; i!= routeTypes.size(); i++) + setCoreParameter("RouteTypes."+ std::to_string(i), routeTypes.at(i)); +} + +long ModifyCenRouteMapRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCenRouteMapRequest::getCidrMatchMode()const +{ + return cidrMatchMode_; +} + +void ModifyCenRouteMapRequest::setCidrMatchMode(const std::string& cidrMatchMode) +{ + cidrMatchMode_ = cidrMatchMode; + setCoreParameter("CidrMatchMode", cidrMatchMode); +} + +std::string ModifyCenRouteMapRequest::getCommunityMatchMode()const +{ + return communityMatchMode_; +} + +void ModifyCenRouteMapRequest::setCommunityMatchMode(const std::string& communityMatchMode) +{ + communityMatchMode_ = communityMatchMode; + setCoreParameter("CommunityMatchMode", communityMatchMode); +} + +std::string ModifyCenRouteMapRequest::getCenId()const +{ + return cenId_; +} + +void ModifyCenRouteMapRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string ModifyCenRouteMapRequest::getMapResult()const +{ + return mapResult_; +} + +void ModifyCenRouteMapRequest::setMapResult(const std::string& mapResult) +{ + mapResult_ = mapResult; + setCoreParameter("MapResult", mapResult); +} + +int ModifyCenRouteMapRequest::getAsPathLength()const +{ + return asPathLength_; +} + +void ModifyCenRouteMapRequest::setAsPathLength(int asPathLength) +{ + asPathLength_ = asPathLength; + setCoreParameter("AsPathLength", std::to_string(asPathLength)); +} + +std::string ModifyCenRouteMapRequest::getDescription()const +{ + return description_; +} + +void ModifyCenRouteMapRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +bool ModifyCenRouteMapRequest::getSourceInstanceIdsReverseMatch()const +{ + return sourceInstanceIdsReverseMatch_; +} + +void ModifyCenRouteMapRequest::setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch) +{ + sourceInstanceIdsReverseMatch_ = sourceInstanceIdsReverseMatch; + setCoreParameter("SourceInstanceIdsReverseMatch", sourceInstanceIdsReverseMatch ? "true" : "false"); +} + +int ModifyCenRouteMapRequest::getNextPriority()const +{ + return nextPriority_; +} + +void ModifyCenRouteMapRequest::setNextPriority(int nextPriority) +{ + nextPriority_ = nextPriority; + setCoreParameter("NextPriority", std::to_string(nextPriority)); +} + +std::vector ModifyCenRouteMapRequest::getDestinationCidrBlocks()const +{ + return destinationCidrBlocks_; +} + +void ModifyCenRouteMapRequest::setDestinationCidrBlocks(const std::vector& destinationCidrBlocks) +{ + destinationCidrBlocks_ = destinationCidrBlocks; + for(int i = 0; i!= destinationCidrBlocks.size(); i++) + setCoreParameter("DestinationCidrBlocks."+ std::to_string(i), destinationCidrBlocks.at(i)); +} + +std::vector ModifyCenRouteMapRequest::getDestinationRouteTableIds()const +{ + return destinationRouteTableIds_; +} + +void ModifyCenRouteMapRequest::setDestinationRouteTableIds(const std::vector& destinationRouteTableIds) +{ + destinationRouteTableIds_ = destinationRouteTableIds; + for(int i = 0; i!= destinationRouteTableIds.size(); i++) + setCoreParameter("DestinationRouteTableIds."+ std::to_string(i), destinationRouteTableIds.at(i)); +} + +std::vector ModifyCenRouteMapRequest::getSourceInstanceIds()const +{ + return sourceInstanceIds_; +} + +void ModifyCenRouteMapRequest::setSourceInstanceIds(const std::vector& sourceInstanceIds) +{ + sourceInstanceIds_ = sourceInstanceIds; + for(int i = 0; i!= sourceInstanceIds.size(); i++) + setCoreParameter("SourceInstanceIds."+ std::to_string(i), sourceInstanceIds.at(i)); +} + +std::vector ModifyCenRouteMapRequest::getSourceRegionIds()const +{ + return sourceRegionIds_; +} + +void ModifyCenRouteMapRequest::setSourceRegionIds(const std::vector& sourceRegionIds) +{ + sourceRegionIds_ = sourceRegionIds; + for(int i = 0; i!= sourceRegionIds.size(); i++) + setCoreParameter("SourceRegionIds."+ std::to_string(i), sourceRegionIds.at(i)); +} + +std::vector ModifyCenRouteMapRequest::getDestinationInstanceIds()const +{ + return destinationInstanceIds_; +} + +void ModifyCenRouteMapRequest::setDestinationInstanceIds(const std::vector& destinationInstanceIds) +{ + destinationInstanceIds_ = destinationInstanceIds; + for(int i = 0; i!= destinationInstanceIds.size(); i++) + setCoreParameter("DestinationInstanceIds."+ std::to_string(i), destinationInstanceIds.at(i)); +} + +std::vector ModifyCenRouteMapRequest::getMatchAsns()const +{ + return matchAsns_; +} + +void ModifyCenRouteMapRequest::setMatchAsns(const std::vector& matchAsns) +{ + matchAsns_ = matchAsns; + for(int i = 0; i!= matchAsns.size(); i++) + setCoreParameter("MatchAsns."+ std::to_string(i), std::to_string(matchAsns.at(i))); +} + +std::string ModifyCenRouteMapRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCenRouteMapRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int ModifyCenRouteMapRequest::getPreference()const +{ + return preference_; +} + +void ModifyCenRouteMapRequest::setPreference(int preference) +{ + preference_ = preference; + setCoreParameter("Preference", std::to_string(preference)); +} + +bool ModifyCenRouteMapRequest::getDestinationInstanceIdsReverseMatch()const +{ + return destinationInstanceIdsReverseMatch_; +} + +void ModifyCenRouteMapRequest::setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch) +{ + destinationInstanceIdsReverseMatch_ = destinationInstanceIdsReverseMatch; + setCoreParameter("DestinationInstanceIdsReverseMatch", destinationInstanceIdsReverseMatch ? "true" : "false"); +} + +std::string ModifyCenRouteMapRequest::getRouteMapId()const +{ + return routeMapId_; +} + +void ModifyCenRouteMapRequest::setRouteMapId(const std::string& routeMapId) +{ + routeMapId_ = routeMapId; + setCoreParameter("RouteMapId", routeMapId); +} + +long ModifyCenRouteMapRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCenRouteMapRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyCenRouteMapRequest::getPriority()const +{ + return priority_; +} + +void ModifyCenRouteMapRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +std::vector ModifyCenRouteMapRequest::getDestinationChildInstanceTypes()const +{ + return destinationChildInstanceTypes_; +} + +void ModifyCenRouteMapRequest::setDestinationChildInstanceTypes(const std::vector& destinationChildInstanceTypes) +{ + destinationChildInstanceTypes_ = destinationChildInstanceTypes; + for(int i = 0; i!= destinationChildInstanceTypes.size(); i++) + setCoreParameter("DestinationChildInstanceTypes."+ std::to_string(i), destinationChildInstanceTypes.at(i)); +} + +std::vector ModifyCenRouteMapRequest::getSourceRouteTableIds()const +{ + return sourceRouteTableIds_; +} + +void ModifyCenRouteMapRequest::setSourceRouteTableIds(const std::vector& sourceRouteTableIds) +{ + sourceRouteTableIds_ = sourceRouteTableIds; + for(int i = 0; i!= sourceRouteTableIds.size(); i++) + setCoreParameter("SourceRouteTableIds."+ std::to_string(i), sourceRouteTableIds.at(i)); +} + +std::string ModifyCenRouteMapRequest::getAsPathMatchMode()const +{ + return asPathMatchMode_; +} + +void ModifyCenRouteMapRequest::setAsPathMatchMode(const std::string& asPathMatchMode) +{ + asPathMatchMode_ = asPathMatchMode; + setCoreParameter("AsPathMatchMode", asPathMatchMode); +} + +std::vector ModifyCenRouteMapRequest::getSourceChildInstanceTypes()const +{ + return sourceChildInstanceTypes_; +} + +void ModifyCenRouteMapRequest::setSourceChildInstanceTypes(const std::vector& sourceChildInstanceTypes) +{ + sourceChildInstanceTypes_ = sourceChildInstanceTypes; + for(int i = 0; i!= sourceChildInstanceTypes.size(); i++) + setCoreParameter("SourceChildInstanceTypes."+ std::to_string(i), sourceChildInstanceTypes.at(i)); +} + +std::vector ModifyCenRouteMapRequest::getMatchCommunitySet()const +{ + return matchCommunitySet_; +} + +void ModifyCenRouteMapRequest::setMatchCommunitySet(const std::vector& matchCommunitySet) +{ + matchCommunitySet_ = matchCommunitySet; + for(int i = 0; i!= matchCommunitySet.size(); i++) + setCoreParameter("MatchCommunitySet."+ std::to_string(i), matchCommunitySet.at(i)); +} + +std::string ModifyCenRouteMapRequest::getCommunityOperateMode()const +{ + return communityOperateMode_; +} + +void ModifyCenRouteMapRequest::setCommunityOperateMode(const std::string& communityOperateMode) +{ + communityOperateMode_ = communityOperateMode; + setCoreParameter("CommunityOperateMode", communityOperateMode); +} + +std::string ModifyCenRouteMapRequest::getCenRegionId()const +{ + return cenRegionId_; +} + +void ModifyCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId) +{ + cenRegionId_ = cenRegionId; + setCoreParameter("CenRegionId", cenRegionId); +} + +std::vector ModifyCenRouteMapRequest::getOperateCommunitySet()const +{ + return operateCommunitySet_; +} + +void ModifyCenRouteMapRequest::setOperateCommunitySet(const std::vector& operateCommunitySet) +{ + operateCommunitySet_ = operateCommunitySet; + for(int i = 0; i!= operateCommunitySet.size(); i++) + setCoreParameter("OperateCommunitySet."+ std::to_string(i), operateCommunitySet.at(i)); +} + diff --git a/cbn/src/model/ModifyCenRouteMapResult.cc b/cbn/src/model/ModifyCenRouteMapResult.cc new file mode 100644 index 000000000..1bab270b9 --- /dev/null +++ b/cbn/src/model/ModifyCenRouteMapResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +ModifyCenRouteMapResult::ModifyCenRouteMapResult() : + ServiceResult() +{} + +ModifyCenRouteMapResult::ModifyCenRouteMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCenRouteMapResult::~ModifyCenRouteMapResult() +{} + +void ModifyCenRouteMapResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/ModifyFlowLogAttributeRequest.cc b/cbn/src/model/ModifyFlowLogAttributeRequest.cc new file mode 100644 index 000000000..d9287b1ec --- /dev/null +++ b/cbn/src/model/ModifyFlowLogAttributeRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::ModifyFlowLogAttributeRequest; + +ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() : + RpcServiceRequest("cbn", "2017-09-12", "ModifyFlowLogAttribute") +{} + +ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest() +{} + +long ModifyFlowLogAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyFlowLogAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyFlowLogAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ModifyFlowLogAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyFlowLogAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyFlowLogAttributeRequest::getCenId()const +{ + return cenId_; +} + +void ModifyFlowLogAttributeRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setCoreParameter("CenId", cenId); +} + +std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyFlowLogAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyFlowLogAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long ModifyFlowLogAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyFlowLogAttributeRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + +std::string ModifyFlowLogAttributeRequest::getFlowLogName()const +{ + return flowLogName_; +} + +void ModifyFlowLogAttributeRequest::setFlowLogName(const std::string& flowLogName) +{ + flowLogName_ = flowLogName; + setCoreParameter("FlowLogName", flowLogName); +} + diff --git a/cbn/src/model/ModifyFlowLogAttributeResult.cc b/cbn/src/model/ModifyFlowLogAttributeResult.cc new file mode 100644 index 000000000..6b5c9b51f --- /dev/null +++ b/cbn/src/model/ModifyFlowLogAttributeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +ModifyFlowLogAttributeResult::ModifyFlowLogAttributeResult() : + ServiceResult() +{} + +ModifyFlowLogAttributeResult::ModifyFlowLogAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyFlowLogAttributeResult::~ModifyFlowLogAttributeResult() +{} + +void ModifyFlowLogAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string ModifyFlowLogAttributeResult::getSuccess()const +{ + return success_; +} + diff --git a/cbn/src/model/PublishRouteEntriesRequest.cc b/cbn/src/model/PublishRouteEntriesRequest.cc index 1fdcca20c..c505d6411 100644 --- a/cbn/src/model/PublishRouteEntriesRequest.cc +++ b/cbn/src/model/PublishRouteEntriesRequest.cc @@ -33,7 +33,7 @@ std::string PublishRouteEntriesRequest::getChildInstanceId()const void PublishRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId) { childInstanceId_ = childInstanceId; - setParameter("ChildInstanceId", childInstanceId); + setCoreParameter("ChildInstanceId", childInstanceId); } long PublishRouteEntriesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long PublishRouteEntriesRequest::getResourceOwnerId()const void PublishRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string PublishRouteEntriesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string PublishRouteEntriesRequest::getResourceOwnerAccount()const void PublishRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string PublishRouteEntriesRequest::getCenId()const @@ -66,7 +66,7 @@ std::string PublishRouteEntriesRequest::getCenId()const void PublishRouteEntriesRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string PublishRouteEntriesRequest::getDestinationCidrBlock()const @@ -77,7 +77,7 @@ std::string PublishRouteEntriesRequest::getDestinationCidrBlock()const void PublishRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) { destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); + setCoreParameter("DestinationCidrBlock", destinationCidrBlock); } std::string PublishRouteEntriesRequest::getChildInstanceType()const @@ -88,7 +88,7 @@ std::string PublishRouteEntriesRequest::getChildInstanceType()const void PublishRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } std::string PublishRouteEntriesRequest::getChildInstanceRouteTableId()const @@ -99,7 +99,7 @@ std::string PublishRouteEntriesRequest::getChildInstanceRouteTableId()const void PublishRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) { childInstanceRouteTableId_ = childInstanceRouteTableId; - setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); + setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); } std::string PublishRouteEntriesRequest::getChildInstanceRegionId()const @@ -110,6 +110,6 @@ std::string PublishRouteEntriesRequest::getChildInstanceRegionId()const void PublishRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/PublishRouteEntriesResult.cc b/cbn/src/model/PublishRouteEntriesResult.cc index 60a572873..b87b60fd9 100644 --- a/cbn/src/model/PublishRouteEntriesResult.cc +++ b/cbn/src/model/PublishRouteEntriesResult.cc @@ -35,10 +35,13 @@ PublishRouteEntriesResult::~PublishRouteEntriesResult() void PublishRouteEntriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/ResolveAndRouteServiceInCenRequest.cc b/cbn/src/model/ResolveAndRouteServiceInCenRequest.cc index aa5b2393b..85eea4ef2 100644 --- a/cbn/src/model/ResolveAndRouteServiceInCenRequest.cc +++ b/cbn/src/model/ResolveAndRouteServiceInCenRequest.cc @@ -33,7 +33,19 @@ long ResolveAndRouteServiceInCenRequest::getResourceOwnerId()const void ResolveAndRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ResolveAndRouteServiceInCenRequest::getAccessRegionIds()const +{ + return accessRegionIds_; +} + +void ResolveAndRouteServiceInCenRequest::setAccessRegionIds(const std::vector& accessRegionIds) +{ + accessRegionIds_ = accessRegionIds; + for(int i = 0; i!= accessRegionIds.size(); i++) + setCoreParameter("AccessRegionIds."+ std::to_string(i), accessRegionIds.at(i)); } std::string ResolveAndRouteServiceInCenRequest::getResourceOwnerAccount()const @@ -44,7 +56,7 @@ std::string ResolveAndRouteServiceInCenRequest::getResourceOwnerAccount()const void ResolveAndRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ResolveAndRouteServiceInCenRequest::getClientToken()const @@ -55,7 +67,7 @@ std::string ResolveAndRouteServiceInCenRequest::getClientToken()const void ResolveAndRouteServiceInCenRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ResolveAndRouteServiceInCenRequest::getCenId()const @@ -66,7 +78,7 @@ std::string ResolveAndRouteServiceInCenRequest::getCenId()const void ResolveAndRouteServiceInCenRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string ResolveAndRouteServiceInCenRequest::getOwnerAccount()const @@ -77,7 +89,7 @@ std::string ResolveAndRouteServiceInCenRequest::getOwnerAccount()const void ResolveAndRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ResolveAndRouteServiceInCenRequest::getHost()const @@ -88,7 +100,7 @@ std::string ResolveAndRouteServiceInCenRequest::getHost()const void ResolveAndRouteServiceInCenRequest::setHost(const std::string& host) { host_ = host; - setParameter("Host", host); + setCoreParameter("Host", host); } std::string ResolveAndRouteServiceInCenRequest::getHostRegionId()const @@ -99,18 +111,7 @@ std::string ResolveAndRouteServiceInCenRequest::getHostRegionId()const void ResolveAndRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId) { hostRegionId_ = hostRegionId; - setParameter("HostRegionId", hostRegionId); -} - -std::string ResolveAndRouteServiceInCenRequest::getAccessRegionId()const -{ - return accessRegionId_; -} - -void ResolveAndRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId) -{ - accessRegionId_ = accessRegionId; - setParameter("AccessRegionId", accessRegionId); + setCoreParameter("HostRegionId", hostRegionId); } long ResolveAndRouteServiceInCenRequest::getOwnerId()const @@ -121,7 +122,7 @@ long ResolveAndRouteServiceInCenRequest::getOwnerId()const void ResolveAndRouteServiceInCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long ResolveAndRouteServiceInCenRequest::getUpdateInterval()const @@ -132,6 +133,6 @@ long ResolveAndRouteServiceInCenRequest::getUpdateInterval()const void ResolveAndRouteServiceInCenRequest::setUpdateInterval(long updateInterval) { updateInterval_ = updateInterval; - setParameter("UpdateInterval", std::to_string(updateInterval)); + setCoreParameter("UpdateInterval", std::to_string(updateInterval)); } diff --git a/cbn/src/model/ResolveAndRouteServiceInCenResult.cc b/cbn/src/model/ResolveAndRouteServiceInCenResult.cc index dd148d1c6..29b4a92bd 100644 --- a/cbn/src/model/ResolveAndRouteServiceInCenResult.cc +++ b/cbn/src/model/ResolveAndRouteServiceInCenResult.cc @@ -35,10 +35,13 @@ ResolveAndRouteServiceInCenResult::~ResolveAndRouteServiceInCenResult() void ResolveAndRouteServiceInCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc b/cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc index 7dfb5d12b..73e0b2cee 100644 --- a/cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc +++ b/cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc @@ -33,7 +33,7 @@ long RoutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RoutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RoutePrivateZoneInCenToVpcRequest::getCenId()const @@ -55,7 +55,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getCenId()const void RoutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string RoutePrivateZoneInCenToVpcRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getOwnerAccount()const void RoutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RoutePrivateZoneInCenToVpcRequest::getHostRegionId()const @@ -77,7 +77,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getHostRegionId()const void RoutePrivateZoneInCenToVpcRequest::setHostRegionId(const std::string& hostRegionId) { hostRegionId_ = hostRegionId; - setParameter("HostRegionId", hostRegionId); + setCoreParameter("HostRegionId", hostRegionId); } std::string RoutePrivateZoneInCenToVpcRequest::getAccessRegionId()const @@ -88,7 +88,7 @@ std::string RoutePrivateZoneInCenToVpcRequest::getAccessRegionId()const void RoutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId) { accessRegionId_ = accessRegionId; - setParameter("AccessRegionId", accessRegionId); + setCoreParameter("AccessRegionId", accessRegionId); } long RoutePrivateZoneInCenToVpcRequest::getOwnerId()const @@ -99,7 +99,7 @@ long RoutePrivateZoneInCenToVpcRequest::getOwnerId()const void RoutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RoutePrivateZoneInCenToVpcRequest::getHostVpcId()const @@ -110,6 +110,6 @@ std::string RoutePrivateZoneInCenToVpcRequest::getHostVpcId()const void RoutePrivateZoneInCenToVpcRequest::setHostVpcId(const std::string& hostVpcId) { hostVpcId_ = hostVpcId; - setParameter("HostVpcId", hostVpcId); + setCoreParameter("HostVpcId", hostVpcId); } diff --git a/cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc b/cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc index 48361fb48..10027987c 100644 --- a/cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc +++ b/cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc @@ -35,10 +35,13 @@ RoutePrivateZoneInCenToVpcResult::~RoutePrivateZoneInCenToVpcResult() void RoutePrivateZoneInCenToVpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc b/cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc index 40ad88661..9d4671a9a 100644 --- a/cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc +++ b/cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc @@ -33,7 +33,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getLocalRegionId()const void SetCenInterRegionBandwidthLimitRequest::setLocalRegionId(const std::string& localRegionId) { localRegionId_ = localRegionId; - setParameter("LocalRegionId", localRegionId); + setCoreParameter("LocalRegionId", localRegionId); } long SetCenInterRegionBandwidthLimitRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetCenInterRegionBandwidthLimitRequest::getResourceOwnerId()const void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetCenInterRegionBandwidthLimitRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getResourceOwnerAccount()con void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetCenInterRegionBandwidthLimitRequest::getCenId()const @@ -66,7 +66,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getCenId()const void SetCenInterRegionBandwidthLimitRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string SetCenInterRegionBandwidthLimitRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getOwnerAccount()const void SetCenInterRegionBandwidthLimitRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SetCenInterRegionBandwidthLimitRequest::getOppositeRegionId()const @@ -88,7 +88,7 @@ std::string SetCenInterRegionBandwidthLimitRequest::getOppositeRegionId()const void SetCenInterRegionBandwidthLimitRequest::setOppositeRegionId(const std::string& oppositeRegionId) { oppositeRegionId_ = oppositeRegionId; - setParameter("OppositeRegionId", oppositeRegionId); + setCoreParameter("OppositeRegionId", oppositeRegionId); } long SetCenInterRegionBandwidthLimitRequest::getBandwidthLimit()const @@ -99,7 +99,7 @@ long SetCenInterRegionBandwidthLimitRequest::getBandwidthLimit()const void SetCenInterRegionBandwidthLimitRequest::setBandwidthLimit(long bandwidthLimit) { bandwidthLimit_ = bandwidthLimit; - setParameter("BandwidthLimit", std::to_string(bandwidthLimit)); + setCoreParameter("BandwidthLimit", std::to_string(bandwidthLimit)); } long SetCenInterRegionBandwidthLimitRequest::getOwnerId()const @@ -110,6 +110,6 @@ long SetCenInterRegionBandwidthLimitRequest::getOwnerId()const void SetCenInterRegionBandwidthLimitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc b/cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc index 91b230020..e6fa315af 100644 --- a/cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc +++ b/cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc @@ -35,10 +35,13 @@ SetCenInterRegionBandwidthLimitResult::~SetCenInterRegionBandwidthLimitResult() void SetCenInterRegionBandwidthLimitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/UnassociateCenBandwidthPackageRequest.cc b/cbn/src/model/UnassociateCenBandwidthPackageRequest.cc index 260e41b05..44d042e10 100644 --- a/cbn/src/model/UnassociateCenBandwidthPackageRequest.cc +++ b/cbn/src/model/UnassociateCenBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long UnassociateCenBandwidthPackageRequest::getResourceOwnerId()const void UnassociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnassociateCenBandwidthPackageRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UnassociateCenBandwidthPackageRequest::getResourceOwnerAccount()cons void UnassociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnassociateCenBandwidthPackageRequest::getCenId()const @@ -55,7 +55,7 @@ std::string UnassociateCenBandwidthPackageRequest::getCenId()const void UnassociateCenBandwidthPackageRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string UnassociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const @@ -66,7 +66,7 @@ std::string UnassociateCenBandwidthPackageRequest::getCenBandwidthPackageId()con void UnassociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) { cenBandwidthPackageId_ = cenBandwidthPackageId; - setParameter("CenBandwidthPackageId", cenBandwidthPackageId); + setCoreParameter("CenBandwidthPackageId", cenBandwidthPackageId); } std::string UnassociateCenBandwidthPackageRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string UnassociateCenBandwidthPackageRequest::getOwnerAccount()const void UnassociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UnassociateCenBandwidthPackageRequest::getOwnerId()const @@ -88,6 +88,6 @@ long UnassociateCenBandwidthPackageRequest::getOwnerId()const void UnassociateCenBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/UnassociateCenBandwidthPackageResult.cc b/cbn/src/model/UnassociateCenBandwidthPackageResult.cc index 52fa3e6e5..c070b0b94 100644 --- a/cbn/src/model/UnassociateCenBandwidthPackageResult.cc +++ b/cbn/src/model/UnassociateCenBandwidthPackageResult.cc @@ -35,10 +35,13 @@ UnassociateCenBandwidthPackageResult::~UnassociateCenBandwidthPackageResult() void UnassociateCenBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc b/cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc index 79e19ac12..6374da1d4 100644 --- a/cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc +++ b/cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc @@ -33,7 +33,7 @@ long UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnroutePrivateZoneInCenToVpcRequest::getCenId()const @@ -55,7 +55,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getCenId()const void UnroutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string UnroutePrivateZoneInCenToVpcRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getOwnerAccount()const void UnroutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnroutePrivateZoneInCenToVpcRequest::getAccessRegionId()const @@ -77,7 +77,7 @@ std::string UnroutePrivateZoneInCenToVpcRequest::getAccessRegionId()const void UnroutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId) { accessRegionId_ = accessRegionId; - setParameter("AccessRegionId", accessRegionId); + setCoreParameter("AccessRegionId", accessRegionId); } long UnroutePrivateZoneInCenToVpcRequest::getOwnerId()const @@ -88,6 +88,6 @@ long UnroutePrivateZoneInCenToVpcRequest::getOwnerId()const void UnroutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc b/cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc index 491027a19..bc428f59c 100644 --- a/cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc +++ b/cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc @@ -35,10 +35,13 @@ UnroutePrivateZoneInCenToVpcResult::~UnroutePrivateZoneInCenToVpcResult() void UnroutePrivateZoneInCenToVpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/UntagResourcesRequest.cc b/cbn/src/model/UntagResourcesRequest.cc index 595527e31..54fa2c919 100644 --- a/cbn/src/model/UntagResourcesRequest.cc +++ b/cbn/src/model/UntagResourcesRequest.cc @@ -33,7 +33,7 @@ long UntagResourcesRequest::getResourceOwnerId()const void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector UntagResourcesRequest::getResourceId()const @@ -45,7 +45,7 @@ void UntagResourcesRequest::setResourceId(const std::vector& resour { resourceId_ = resourceId; for(int i = 0; i!= resourceId.size(); i++) - setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); } std::string UntagResourcesRequest::getResourceOwnerAccount()const @@ -56,7 +56,7 @@ std::string UntagResourcesRequest::getResourceOwnerAccount()const void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UntagResourcesRequest::getOwnerAccount()const @@ -67,7 +67,7 @@ std::string UntagResourcesRequest::getOwnerAccount()const void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UntagResourcesRequest::getTagOwnerUid()const @@ -78,7 +78,7 @@ long UntagResourcesRequest::getTagOwnerUid()const void UntagResourcesRequest::setTagOwnerUid(long tagOwnerUid) { tagOwnerUid_ = tagOwnerUid; - setParameter("TagOwnerUid", std::to_string(tagOwnerUid)); + setCoreParameter("TagOwnerUid", std::to_string(tagOwnerUid)); } std::string UntagResourcesRequest::getTagOwnerBid()const @@ -89,7 +89,7 @@ std::string UntagResourcesRequest::getTagOwnerBid()const void UntagResourcesRequest::setTagOwnerBid(const std::string& tagOwnerBid) { tagOwnerBid_ = tagOwnerBid; - setParameter("TagOwnerBid", tagOwnerBid); + setCoreParameter("TagOwnerBid", tagOwnerBid); } long UntagResourcesRequest::getOwnerId()const @@ -100,7 +100,7 @@ long UntagResourcesRequest::getOwnerId()const void UntagResourcesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::vector UntagResourcesRequest::getTagKey()const @@ -112,7 +112,7 @@ void UntagResourcesRequest::setTagKey(const std::vector& tagKey) { tagKey_ = tagKey; for(int i = 0; i!= tagKey.size(); i++) - setParameter("TagKey."+ std::to_string(i), tagKey.at(i)); + setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i)); } std::string UntagResourcesRequest::getResourceType()const @@ -123,6 +123,6 @@ std::string UntagResourcesRequest::getResourceType()const void UntagResourcesRequest::setResourceType(const std::string& resourceType) { resourceType_ = resourceType; - setParameter("ResourceType", resourceType); + setCoreParameter("ResourceType", resourceType); } diff --git a/cbn/src/model/UntagResourcesResult.cc b/cbn/src/model/UntagResourcesResult.cc index c248c9cfc..77c6cffdc 100644 --- a/cbn/src/model/UntagResourcesResult.cc +++ b/cbn/src/model/UntagResourcesResult.cc @@ -35,10 +35,13 @@ UntagResourcesResult::~UntagResourcesResult() void UntagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc b/cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc index 7146cf9c0..21b0cce76 100644 --- a/cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc +++ b/cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc @@ -33,7 +33,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceId()const void WithdrawPublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId) { childInstanceId_ = childInstanceId; - setParameter("ChildInstanceId", childInstanceId); + setCoreParameter("ChildInstanceId", childInstanceId); } long WithdrawPublishedRouteEntriesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long WithdrawPublishedRouteEntriesRequest::getResourceOwnerId()const void WithdrawPublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string WithdrawPublishedRouteEntriesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getResourceOwnerAccount()const void WithdrawPublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string WithdrawPublishedRouteEntriesRequest::getCenId()const @@ -66,7 +66,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getCenId()const void WithdrawPublishedRouteEntriesRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string WithdrawPublishedRouteEntriesRequest::getDestinationCidrBlock()const @@ -77,7 +77,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getDestinationCidrBlock()const void WithdrawPublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) { destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); + setCoreParameter("DestinationCidrBlock", destinationCidrBlock); } std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceType()const @@ -88,7 +88,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceType()const void WithdrawPublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType) { childInstanceType_ = childInstanceType; - setParameter("ChildInstanceType", childInstanceType); + setCoreParameter("ChildInstanceType", childInstanceType); } std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRouteTableId()const @@ -99,7 +99,7 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRouteTableId() void WithdrawPublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) { childInstanceRouteTableId_ = childInstanceRouteTableId; - setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); + setCoreParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); } std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRegionId()const @@ -110,6 +110,6 @@ std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRegionId()cons void WithdrawPublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) { childInstanceRegionId_ = childInstanceRegionId; - setParameter("ChildInstanceRegionId", childInstanceRegionId); + setCoreParameter("ChildInstanceRegionId", childInstanceRegionId); } diff --git a/cbn/src/model/WithdrawPublishedRouteEntriesResult.cc b/cbn/src/model/WithdrawPublishedRouteEntriesResult.cc index 9c9780a88..73f049f47 100644 --- a/cbn/src/model/WithdrawPublishedRouteEntriesResult.cc +++ b/cbn/src/model/WithdrawPublishedRouteEntriesResult.cc @@ -35,10 +35,13 @@ WithdrawPublishedRouteEntriesResult::~WithdrawPublishedRouteEntriesResult() void WithdrawPublishedRouteEntriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 4727a0b93..ed7ddb8be 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -21,42 +21,46 @@ set(ccc_public_header include/alibabacloud/ccc/CCCExport.h ) set(ccc_public_header_model + include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h + include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h + include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdRequest.h + include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdResult.h include/alibabacloud/ccc/model/GetJobListRequest.h include/alibabacloud/ccc/model/GetJobListResult.h include/alibabacloud/ccc/model/ListUsersRequest.h include/alibabacloud/ccc/model/ListUsersResult.h + include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h + include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h include/alibabacloud/ccc/model/TwoPartiesCallRequest.h include/alibabacloud/ccc/model/TwoPartiesCallResult.h - include/alibabacloud/ccc/model/DeleteSurveyRequest.h - include/alibabacloud/ccc/model/DeleteSurveyResult.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h include/alibabacloud/ccc/model/ListPhoneNumbersResult.h + include/alibabacloud/ccc/model/ListMediasRequest.h + include/alibabacloud/ccc/model/ListMediasResult.h include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h include/alibabacloud/ccc/model/DialogueRequest.h include/alibabacloud/ccc/model/DialogueResult.h - include/alibabacloud/ccc/model/RefreshTokenRequest.h - include/alibabacloud/ccc/model/RefreshTokenResult.h + include/alibabacloud/ccc/model/SimpleDialRequest.h + include/alibabacloud/ccc/model/SimpleDialResult.h include/alibabacloud/ccc/model/CreateBatchJobsRequest.h include/alibabacloud/ccc/model/CreateBatchJobsResult.h include/alibabacloud/ccc/model/RequestLoginInfoRequest.h include/alibabacloud/ccc/model/RequestLoginInfoResult.h include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h - include/alibabacloud/ccc/model/RemoveUsersRequest.h - include/alibabacloud/ccc/model/RemoveUsersResult.h + include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h + include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.h include/alibabacloud/ccc/model/CancelPredictiveJobsResult.h - include/alibabacloud/ccc/model/StartBack2BackCallRequest.h - include/alibabacloud/ccc/model/StartBack2BackCallResult.h - include/alibabacloud/ccc/model/PublishSurveyRequest.h - include/alibabacloud/ccc/model/PublishSurveyResult.h - include/alibabacloud/ccc/model/GetUserRequest.h - include/alibabacloud/ccc/model/GetUserResult.h - include/alibabacloud/ccc/model/GetConversationListRequest.h - include/alibabacloud/ccc/model/GetConversationListResult.h + include/alibabacloud/ccc/model/AddAgentDeviceRequest.h + include/alibabacloud/ccc/model/AddAgentDeviceResult.h + include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsRequest.h + include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsResult.h include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h include/alibabacloud/ccc/model/ListJobsByGroupRequest.h @@ -65,159 +69,319 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h include/alibabacloud/ccc/model/ListJobGroupsRequest.h include/alibabacloud/ccc/model/ListJobGroupsResult.h - include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h - include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h include/alibabacloud/ccc/model/AddPhoneNumberRequest.h include/alibabacloud/ccc/model/AddPhoneNumberResult.h - include/alibabacloud/ccc/model/ListRecordingsRequest.h - include/alibabacloud/ccc/model/ListRecordingsResult.h + include/alibabacloud/ccc/model/FindUsersRequest.h + include/alibabacloud/ccc/model/FindUsersResult.h + include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h + include/alibabacloud/ccc/model/DownloadCabRecordingResult.h include/alibabacloud/ccc/model/EncryptRequest.h include/alibabacloud/ccc/model/EncryptResult.h + include/alibabacloud/ccc/model/PredictiveRecordFailureRequest.h + include/alibabacloud/ccc/model/PredictiveRecordFailureResult.h include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h include/alibabacloud/ccc/model/SubmitBatchJobsResult.h include/alibabacloud/ccc/model/ListSurveysRequest.h include/alibabacloud/ccc/model/ListSurveysResult.h include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h - include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h - include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h - include/alibabacloud/ccc/model/SuspendJobsRequest.h - include/alibabacloud/ccc/model/SuspendJobsResult.h - include/alibabacloud/ccc/model/GetJobGroupRequest.h - include/alibabacloud/ccc/model/GetJobGroupResult.h + include/alibabacloud/ccc/model/CreateCCCPostOrderRequest.h + include/alibabacloud/ccc/model/CreateCCCPostOrderResult.h + include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h + include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h + include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h + include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h + include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h + include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h - include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h - include/alibabacloud/ccc/model/ListUnreachableContactsResult.h - include/alibabacloud/ccc/model/ModifySkillGroupRequest.h - include/alibabacloud/ccc/model/ModifySkillGroupResult.h - include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h - include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h + include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h + include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h + include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h + include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h + include/alibabacloud/ccc/model/PredictiveRecordSuccessRequest.h + include/alibabacloud/ccc/model/PredictiveRecordSuccessResult.h + include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h + include/alibabacloud/ccc/model/ModifyCabInstanceResult.h include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h - include/alibabacloud/ccc/model/LaunchAppraiseRequest.h - include/alibabacloud/ccc/model/LaunchAppraiseResult.h include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h include/alibabacloud/ccc/model/DeleteSkillGroupResult.h - include/alibabacloud/ccc/model/ModifyUserRequest.h - include/alibabacloud/ccc/model/ModifyUserResult.h - include/alibabacloud/ccc/model/ListSkillGroupsRequest.h - include/alibabacloud/ccc/model/ListSkillGroupsResult.h - include/alibabacloud/ccc/model/CreateScenarioRequest.h - include/alibabacloud/ccc/model/CreateScenarioResult.h + include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h + include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h + include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h + include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h + include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h + include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h + include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h + include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h + include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h + include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h include/alibabacloud/ccc/model/RemovePhoneNumberResult.h - include/alibabacloud/ccc/model/PickLocalNumberRequest.h - include/alibabacloud/ccc/model/PickLocalNumberResult.h include/alibabacloud/ccc/model/GetJobRequest.h include/alibabacloud/ccc/model/GetJobResult.h + include/alibabacloud/ccc/model/PickLocalNumberRequest.h + include/alibabacloud/ccc/model/PickLocalNumberResult.h + include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h + include/alibabacloud/ccc/model/ListInstancesOfUserResult.h include/alibabacloud/ccc/model/StartJobRequest.h include/alibabacloud/ccc/model/StartJobResult.h include/alibabacloud/ccc/model/CancelJobsRequest.h include/alibabacloud/ccc/model/CancelJobsResult.h - include/alibabacloud/ccc/model/GetConfigRequest.h - include/alibabacloud/ccc/model/GetConfigResult.h - include/alibabacloud/ccc/model/DownloadRecordingRequest.h - include/alibabacloud/ccc/model/DownloadRecordingResult.h - include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h - include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h - include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h - include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h include/alibabacloud/ccc/model/CreateJobGroupRequest.h include/alibabacloud/ccc/model/CreateJobGroupResult.h - include/alibabacloud/ccc/model/GetTaskListRequest.h - include/alibabacloud/ccc/model/GetTaskListResult.h include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h - include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h - include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h - include/alibabacloud/ccc/model/ResumeJobsRequest.h - include/alibabacloud/ccc/model/ResumeJobsResult.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h include/alibabacloud/ccc/model/AssignUsersRequest.h include/alibabacloud/ccc/model/AssignUsersResult.h include/alibabacloud/ccc/model/GetSurveyRequest.h include/alibabacloud/ccc/model/GetSurveyResult.h + include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h + include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h include/alibabacloud/ccc/model/ListRolesRequest.h include/alibabacloud/ccc/model/ListRolesResult.h include/alibabacloud/ccc/model/ListConfigRequest.h include/alibabacloud/ccc/model/ListConfigResult.h - include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h - include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h + include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h + include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h + include/alibabacloud/ccc/model/DeleteMediaRequest.h + include/alibabacloud/ccc/model/DeleteMediaResult.h include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h + include/alibabacloud/ccc/model/CreateUserRequest.h + include/alibabacloud/ccc/model/CreateUserResult.h + include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h + include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h + include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h + include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h + include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h + include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h + include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h + include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h + include/alibabacloud/ccc/model/ModifyMediaRequest.h + include/alibabacloud/ccc/model/ModifyMediaResult.h + include/alibabacloud/ccc/model/PreCreateMediaRequest.h + include/alibabacloud/ccc/model/PreCreateMediaResult.h + include/alibabacloud/ccc/model/ListAgentEventsRequest.h + include/alibabacloud/ccc/model/ListAgentEventsResult.h + include/alibabacloud/ccc/model/GetAgentDataRequest.h + include/alibabacloud/ccc/model/GetAgentDataResult.h + include/alibabacloud/ccc/model/GetInstanceStateRequest.h + include/alibabacloud/ccc/model/GetInstanceStateResult.h + include/alibabacloud/ccc/model/ListJobStatusRequest.h + include/alibabacloud/ccc/model/ListJobStatusResult.h + include/alibabacloud/ccc/model/ModifyScenarioRequest.h + include/alibabacloud/ccc/model/ModifyScenarioResult.h + include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupRequest.h + include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupResult.h + include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h + include/alibabacloud/ccc/model/GetServiceExtensionsResult.h + include/alibabacloud/ccc/model/ListContactFlowsRequest.h + include/alibabacloud/ccc/model/ListContactFlowsResult.h + include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h + include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h + include/alibabacloud/ccc/model/GetTURNServerListRequest.h + include/alibabacloud/ccc/model/GetTURNServerListResult.h + include/alibabacloud/ccc/model/DeleteInstanceRequest.h + include/alibabacloud/ccc/model/DeleteInstanceResult.h + include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h + include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h + include/alibabacloud/ccc/model/GetSmsConfigRequest.h + include/alibabacloud/ccc/model/GetSmsConfigResult.h + include/alibabacloud/ccc/model/DeleteSurveyRequest.h + include/alibabacloud/ccc/model/DeleteSurveyResult.h + include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h + include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h + include/alibabacloud/ccc/model/CreateInstanceRequest.h + include/alibabacloud/ccc/model/CreateInstanceResult.h + include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h + include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h + include/alibabacloud/ccc/model/ListAgentStatesRequest.h + include/alibabacloud/ccc/model/ListAgentStatesResult.h + include/alibabacloud/ccc/model/RefreshTokenRequest.h + include/alibabacloud/ccc/model/RefreshTokenResult.h + include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h + include/alibabacloud/ccc/model/SubmitCabRecordingResult.h + include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h + include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h + include/alibabacloud/ccc/model/RemoveUsersRequest.h + include/alibabacloud/ccc/model/RemoveUsersResult.h + include/alibabacloud/ccc/model/GetPredictiveJobRequest.h + include/alibabacloud/ccc/model/GetPredictiveJobResult.h + include/alibabacloud/ccc/model/StartBack2BackCallRequest.h + include/alibabacloud/ccc/model/StartBack2BackCallResult.h + include/alibabacloud/ccc/model/DialExRequest.h + include/alibabacloud/ccc/model/DialExResult.h + include/alibabacloud/ccc/model/PublishSurveyRequest.h + include/alibabacloud/ccc/model/PublishSurveyResult.h + include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h + include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h + include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h + include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h + include/alibabacloud/ccc/model/GetUserRequest.h + include/alibabacloud/ccc/model/GetUserResult.h + include/alibabacloud/ccc/model/GetConversationListRequest.h + include/alibabacloud/ccc/model/GetConversationListResult.h + include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h + include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h + include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h + include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h + include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h + include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h + include/alibabacloud/ccc/model/ListRecordingsRequest.h + include/alibabacloud/ccc/model/ListRecordingsResult.h + include/alibabacloud/ccc/model/ModifyNotificationConfigRequest.h + include/alibabacloud/ccc/model/ModifyNotificationConfigResult.h + include/alibabacloud/ccc/model/GetInstanceRequest.h + include/alibabacloud/ccc/model/GetInstanceResult.h + include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h + include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h + include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h + include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h + include/alibabacloud/ccc/model/GetJobGroupRequest.h + include/alibabacloud/ccc/model/GetJobGroupResult.h + include/alibabacloud/ccc/model/SuspendJobsRequest.h + include/alibabacloud/ccc/model/SuspendJobsResult.h + include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h + include/alibabacloud/ccc/model/GetTURNCredentialsResult.h + include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h + include/alibabacloud/ccc/model/ListUnreachableContactsResult.h + include/alibabacloud/ccc/model/AddNumberToSkillGroupRequest.h + include/alibabacloud/ccc/model/AddNumberToSkillGroupResult.h + include/alibabacloud/ccc/model/ModifySkillGroupRequest.h + include/alibabacloud/ccc/model/ModifySkillGroupResult.h + include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h + include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h + include/alibabacloud/ccc/model/GetJobsProgressRequest.h + include/alibabacloud/ccc/model/GetJobsProgressResult.h + include/alibabacloud/ccc/model/SaveStatsRequest.h + include/alibabacloud/ccc/model/SaveStatsResult.h + include/alibabacloud/ccc/model/LaunchAppraiseRequest.h + include/alibabacloud/ccc/model/LaunchAppraiseResult.h + include/alibabacloud/ccc/model/ModifyUserRequest.h + include/alibabacloud/ccc/model/ModifyUserResult.h + include/alibabacloud/ccc/model/CreateScenarioRequest.h + include/alibabacloud/ccc/model/CreateScenarioResult.h + include/alibabacloud/ccc/model/ListSkillGroupsRequest.h + include/alibabacloud/ccc/model/ListSkillGroupsResult.h + include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h + include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h + include/alibabacloud/ccc/model/DownloadRecordingRequest.h + include/alibabacloud/ccc/model/DownloadRecordingResult.h + include/alibabacloud/ccc/model/GetConfigRequest.h + include/alibabacloud/ccc/model/GetConfigResult.h + include/alibabacloud/ccc/model/CreateMediaRequest.h + include/alibabacloud/ccc/model/CreateMediaResult.h + include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h + include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h + include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h + include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h + include/alibabacloud/ccc/model/ListPredictiveJobGroupsRequest.h + include/alibabacloud/ccc/model/ListPredictiveJobGroupsResult.h + include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h + include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h + include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h + include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h + include/alibabacloud/ccc/model/GetTaskListRequest.h + include/alibabacloud/ccc/model/GetTaskListResult.h + include/alibabacloud/ccc/model/QueryRedialIndicatorRequest.h + include/alibabacloud/ccc/model/QueryRedialIndicatorResult.h + include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h + include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h + include/alibabacloud/ccc/model/PickOutboundNumbersByTagsRequest.h + include/alibabacloud/ccc/model/PickOutboundNumbersByTagsResult.h + include/alibabacloud/ccc/model/GetAgentStateRequest.h + include/alibabacloud/ccc/model/GetAgentStateResult.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h + include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h + include/alibabacloud/ccc/model/ResumeJobsRequest.h + include/alibabacloud/ccc/model/ResumeJobsResult.h + include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h + include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h + include/alibabacloud/ccc/model/PreModifyMediaRequest.h + include/alibabacloud/ccc/model/PreModifyMediaResult.h + include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h + include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h + include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h + include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h include/alibabacloud/ccc/model/ListScenariosRequest.h include/alibabacloud/ccc/model/ListScenariosResult.h include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h include/alibabacloud/ccc/model/ListRealTimeAgentResult.h include/alibabacloud/ccc/model/AssignJobsRequest.h include/alibabacloud/ccc/model/AssignJobsResult.h - include/alibabacloud/ccc/model/CreateUserRequest.h - include/alibabacloud/ccc/model/CreateUserResult.h - include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h - include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h - include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h - include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h include/alibabacloud/ccc/model/GetScenarioRequest.h include/alibabacloud/ccc/model/GetScenarioResult.h - include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h - include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h - include/alibabacloud/ccc/model/GetAgentDataRequest.h - include/alibabacloud/ccc/model/GetAgentDataResult.h + include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h + include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h + include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h + include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h + include/alibabacloud/ccc/model/ListAgentDevicesRequest.h + include/alibabacloud/ccc/model/ListAgentDevicesResult.h + include/alibabacloud/ccc/model/CreateFaultRequest.h + include/alibabacloud/ccc/model/CreateFaultResult.h include/alibabacloud/ccc/model/CreateSurveyRequest.h include/alibabacloud/ccc/model/CreateSurveyResult.h - include/alibabacloud/ccc/model/ListJobStatusRequest.h - include/alibabacloud/ccc/model/ListJobStatusResult.h + include/alibabacloud/ccc/model/CreateCabInstanceRequest.h + include/alibabacloud/ccc/model/CreateCabInstanceResult.h include/alibabacloud/ccc/model/ModifySurveyRequest.h include/alibabacloud/ccc/model/ModifySurveyResult.h - include/alibabacloud/ccc/model/ModifyScenarioRequest.h - include/alibabacloud/ccc/model/ModifyScenarioResult.h + include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h + include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h include/alibabacloud/ccc/model/CreateSkillGroupRequest.h include/alibabacloud/ccc/model/CreateSkillGroupResult.h - include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h - include/alibabacloud/ccc/model/GetServiceExtensionsResult.h - include/alibabacloud/ccc/model/ListContactFlowsRequest.h - include/alibabacloud/ccc/model/ListContactFlowsResult.h + include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h + include/alibabacloud/ccc/model/PickOutboundNumbersResult.h + include/alibabacloud/ccc/model/CreateContactFlowRequest.h + include/alibabacloud/ccc/model/CreateContactFlowResult.h include/alibabacloud/ccc/model/DeleteJobGroupRequest.h include/alibabacloud/ccc/model/DeleteJobGroupResult.h ) set(ccc_src src/CCCClient.cc + src/model/SaveWebRTCStatsRequest.cc + src/model/SaveWebRTCStatsResult.cc + src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc + src/model/GetContactIdentifyByOutBoundTaskIdResult.cc src/model/GetJobListRequest.cc src/model/GetJobListResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc + src/model/ListCallEventDetailByContactIdRequest.cc + src/model/ListCallEventDetailByContactIdResult.cc src/model/ListSkillGroupsOfUserRequest.cc src/model/ListSkillGroupsOfUserResult.cc src/model/TwoPartiesCallRequest.cc src/model/TwoPartiesCallResult.cc - src/model/DeleteSurveyRequest.cc - src/model/DeleteSurveyResult.cc + src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc + src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc src/model/ListPhoneNumbersRequest.cc src/model/ListPhoneNumbersResult.cc + src/model/ListMediasRequest.cc + src/model/ListMediasResult.cc src/model/DownloadUnreachableContactsRequest.cc src/model/DownloadUnreachableContactsResult.cc src/model/DialogueRequest.cc src/model/DialogueResult.cc - src/model/RefreshTokenRequest.cc - src/model/RefreshTokenResult.cc + src/model/SimpleDialRequest.cc + src/model/SimpleDialResult.cc src/model/CreateBatchJobsRequest.cc src/model/CreateBatchJobsResult.cc src/model/RequestLoginInfoRequest.cc src/model/RequestLoginInfoResult.cc src/model/GetJobTemplateDownloadParamsRequest.cc src/model/GetJobTemplateDownloadParamsResult.cc - src/model/RemoveUsersRequest.cc - src/model/RemoveUsersResult.cc + src/model/DownloadAllTypeRecordingRequest.cc + src/model/DownloadAllTypeRecordingResult.cc src/model/CancelPredictiveJobsRequest.cc src/model/CancelPredictiveJobsResult.cc - src/model/StartBack2BackCallRequest.cc - src/model/StartBack2BackCallResult.cc - src/model/PublishSurveyRequest.cc - src/model/PublishSurveyResult.cc - src/model/GetUserRequest.cc - src/model/GetUserResult.cc - src/model/GetConversationListRequest.cc - src/model/GetConversationListResult.cc + src/model/AddAgentDeviceRequest.cc + src/model/AddAgentDeviceResult.cc + src/model/ListPrivacyNumberCallDetailsRequest.cc + src/model/ListPrivacyNumberCallDetailsResult.cc src/model/ListUsersOfSkillGroupRequest.cc src/model/ListUsersOfSkillGroupResult.cc src/model/ListJobsByGroupRequest.cc @@ -226,118 +390,274 @@ set(ccc_src src/model/ListPredictiveJobStatusResult.cc src/model/ListJobGroupsRequest.cc src/model/ListJobGroupsResult.cc - src/model/ListCallDetailRecordsRequest.cc - src/model/ListCallDetailRecordsResult.cc src/model/AddPhoneNumberRequest.cc src/model/AddPhoneNumberResult.cc - src/model/ListRecordingsRequest.cc - src/model/ListRecordingsResult.cc + src/model/FindUsersRequest.cc + src/model/FindUsersResult.cc + src/model/DownloadCabRecordingRequest.cc + src/model/DownloadCabRecordingResult.cc src/model/EncryptRequest.cc src/model/EncryptResult.cc + src/model/PredictiveRecordFailureRequest.cc + src/model/PredictiveRecordFailureResult.cc src/model/SubmitBatchJobsRequest.cc src/model/SubmitBatchJobsResult.cc src/model/ListSurveysRequest.cc src/model/ListSurveysResult.cc src/model/GetJobDataUploadParamsRequest.cc src/model/GetJobDataUploadParamsResult.cc - src/model/ListBasicStatisticsReportSubItemsRequest.cc - src/model/ListBasicStatisticsReportSubItemsResult.cc - src/model/SuspendJobsRequest.cc - src/model/SuspendJobsResult.cc - src/model/GetJobGroupRequest.cc - src/model/GetJobGroupResult.cc + src/model/CreateCCCPostOrderRequest.cc + src/model/CreateCCCPostOrderResult.cc + src/model/ModifyAgentDeviceRequest.cc + src/model/ModifyAgentDeviceResult.cc + src/model/CreatePredictiveJobGroupRequest.cc + src/model/CreatePredictiveJobGroupResult.cc + src/model/GetCallMeasureSummaryReportRequest.cc + src/model/GetCallMeasureSummaryReportResult.cc src/model/GetJobStatusByCallIdRequest.cc src/model/GetJobStatusByCallIdResult.cc - src/model/ListUnreachableContactsRequest.cc - src/model/ListUnreachableContactsResult.cc - src/model/ModifySkillGroupRequest.cc - src/model/ModifySkillGroupResult.cc - src/model/GetConversationDetailByContactIdRequest.cc - src/model/GetConversationDetailByContactIdResult.cc + src/model/RemoveUsersFromSkillGroupRequest.cc + src/model/RemoveUsersFromSkillGroupResult.cc + src/model/SendPredefinedShortMessageRequest.cc + src/model/SendPredefinedShortMessageResult.cc + src/model/PredictiveRecordSuccessRequest.cc + src/model/PredictiveRecordSuccessResult.cc + src/model/ModifyCabInstanceRequest.cc + src/model/ModifyCabInstanceResult.cc src/model/ListRecordingsByContactIdRequest.cc src/model/ListRecordingsByContactIdResult.cc - src/model/LaunchAppraiseRequest.cc - src/model/LaunchAppraiseResult.cc src/model/DeleteSkillGroupRequest.cc src/model/DeleteSkillGroupResult.cc - src/model/ModifyUserRequest.cc - src/model/ModifyUserResult.cc - src/model/ListSkillGroupsRequest.cc - src/model/ListSkillGroupsResult.cc - src/model/CreateScenarioRequest.cc - src/model/CreateScenarioResult.cc + src/model/GetJobFileUploadUrlRequest.cc + src/model/GetJobFileUploadUrlResult.cc + src/model/CallOnlinePrivacyNumberRequest.cc + src/model/CallOnlinePrivacyNumberResult.cc + src/model/GetRecordOssUploadParamRequest.cc + src/model/GetRecordOssUploadParamResult.cc + src/model/ListRecordingOfDualTrackRequest.cc + src/model/ListRecordingOfDualTrackResult.cc + src/model/CommitContactFlowVersionModificationRequest.cc + src/model/CommitContactFlowVersionModificationResult.cc src/model/RemovePhoneNumberRequest.cc src/model/RemovePhoneNumberResult.cc - src/model/PickLocalNumberRequest.cc - src/model/PickLocalNumberResult.cc src/model/GetJobRequest.cc src/model/GetJobResult.cc + src/model/PickLocalNumberRequest.cc + src/model/PickLocalNumberResult.cc + src/model/ListInstancesOfUserRequest.cc + src/model/ListInstancesOfUserResult.cc src/model/StartJobRequest.cc src/model/StartJobResult.cc src/model/CancelJobsRequest.cc src/model/CancelJobsResult.cc - src/model/GetConfigRequest.cc - src/model/GetConfigResult.cc - src/model/DownloadRecordingRequest.cc - src/model/DownloadRecordingResult.cc - src/model/GenerateAgentStatisticReportRequest.cc - src/model/GenerateAgentStatisticReportResult.cc - src/model/CreateScenarioFromTemplateRequest.cc - src/model/CreateScenarioFromTemplateResult.cc src/model/CreateJobGroupRequest.cc src/model/CreateJobGroupResult.cc - src/model/GetTaskListRequest.cc - src/model/GetTaskListResult.cc src/model/DownloadOriginalStatisticsReportRequest.cc src/model/DownloadOriginalStatisticsReportResult.cc - src/model/ListScenarioTemplatesRequest.cc - src/model/ListScenarioTemplatesResult.cc - src/model/ResumeJobsRequest.cc - src/model/ResumeJobsResult.cc + src/model/ListSkillGroupSummaryReportsRequest.cc + src/model/ListSkillGroupSummaryReportsResult.cc src/model/AssignUsersRequest.cc src/model/AssignUsersResult.cc src/model/GetSurveyRequest.cc src/model/GetSurveyResult.cc + src/model/ListRecentCallRecordsRequest.cc + src/model/ListRecentCallRecordsResult.cc src/model/ListRolesRequest.cc src/model/ListRolesResult.cc src/model/ListConfigRequest.cc src/model/ListConfigResult.cc - src/model/LaunchShortMessageAppraiseRequest.cc - src/model/LaunchShortMessageAppraiseResult.cc + src/model/ListCallMeasureSummaryReportsRequest.cc + src/model/ListCallMeasureSummaryReportsResult.cc + src/model/DeleteMediaRequest.cc + src/model/DeleteMediaResult.cc src/model/ModifyPhoneNumberRequest.cc src/model/ModifyPhoneNumberResult.cc + src/model/CreateUserRequest.cc + src/model/CreateUserResult.cc + src/model/ListPrivilegesOfUserRequest.cc + src/model/ListPrivilegesOfUserResult.cc + src/model/ListSkillGroupStatesRequest.cc + src/model/ListSkillGroupStatesResult.cc + src/model/CreatePredictiveJobsRequest.cc + src/model/CreatePredictiveJobsResult.cc + src/model/GetNumberRegionInfoRequest.cc + src/model/GetNumberRegionInfoResult.cc + src/model/ModifyMediaRequest.cc + src/model/ModifyMediaResult.cc + src/model/PreCreateMediaRequest.cc + src/model/PreCreateMediaResult.cc + src/model/ListAgentEventsRequest.cc + src/model/ListAgentEventsResult.cc + src/model/GetAgentDataRequest.cc + src/model/GetAgentDataResult.cc + src/model/GetInstanceStateRequest.cc + src/model/GetInstanceStateResult.cc + src/model/ListJobStatusRequest.cc + src/model/ListJobStatusResult.cc + src/model/ModifyScenarioRequest.cc + src/model/ModifyScenarioResult.cc + src/model/RemoveNumberFromSkillGroupRequest.cc + src/model/RemoveNumberFromSkillGroupResult.cc + src/model/GetServiceExtensionsRequest.cc + src/model/GetServiceExtensionsResult.cc + src/model/ListContactFlowsRequest.cc + src/model/ListContactFlowsResult.cc + src/model/CreateVoiceAppraiseRequest.cc + src/model/CreateVoiceAppraiseResult.cc + src/model/GetTURNServerListRequest.cc + src/model/GetTURNServerListResult.cc + src/model/DeleteInstanceRequest.cc + src/model/DeleteInstanceResult.cc + src/model/AddBulkPhoneNumbersRequest.cc + src/model/AddBulkPhoneNumbersResult.cc + src/model/GetSmsConfigRequest.cc + src/model/GetSmsConfigResult.cc + src/model/DeleteSurveyRequest.cc + src/model/DeleteSurveyResult.cc + src/model/ModifyPrivacyNumberCallDetailRequest.cc + src/model/ModifyPrivacyNumberCallDetailResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/GetInstanceSummaryReportByIntervalRequest.cc + src/model/GetInstanceSummaryReportByIntervalResult.cc + src/model/ListAgentStatesRequest.cc + src/model/ListAgentStatesResult.cc + src/model/RefreshTokenRequest.cc + src/model/RefreshTokenResult.cc + src/model/SubmitCabRecordingRequest.cc + src/model/SubmitCabRecordingResult.cc + src/model/ListVoiceAppraiseRequest.cc + src/model/ListVoiceAppraiseResult.cc + src/model/RemoveUsersRequest.cc + src/model/RemoveUsersResult.cc + src/model/GetPredictiveJobRequest.cc + src/model/GetPredictiveJobResult.cc + src/model/StartBack2BackCallRequest.cc + src/model/StartBack2BackCallResult.cc + src/model/DialExRequest.cc + src/model/DialExResult.cc + src/model/PublishSurveyRequest.cc + src/model/PublishSurveyResult.cc + src/model/GetInstanceSummaryReportRequest.cc + src/model/GetInstanceSummaryReportResult.cc + src/model/ModifySkillGroupOutboundNumbersRequest.cc + src/model/ModifySkillGroupOutboundNumbersResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/GetConversationListRequest.cc + src/model/GetConversationListResult.cc + src/model/GetInstanceSummaryReportSinceMidnightRequest.cc + src/model/GetInstanceSummaryReportSinceMidnightResult.cc + src/model/ListCallDetailRecordsRequest.cc + src/model/ListCallDetailRecordsResult.cc + src/model/ListIvrTrackingDetailRequest.cc + src/model/ListIvrTrackingDetailResult.cc + src/model/ListRecordingsRequest.cc + src/model/ListRecordingsResult.cc + src/model/ModifyNotificationConfigRequest.cc + src/model/ModifyNotificationConfigResult.cc + src/model/GetInstanceRequest.cc + src/model/GetInstanceResult.cc + src/model/ListAgentSummaryReportsRequest.cc + src/model/ListAgentSummaryReportsResult.cc + src/model/ListBasicStatisticsReportSubItemsRequest.cc + src/model/ListBasicStatisticsReportSubItemsResult.cc + src/model/GetJobGroupRequest.cc + src/model/GetJobGroupResult.cc + src/model/SuspendJobsRequest.cc + src/model/SuspendJobsResult.cc + src/model/GetTURNCredentialsRequest.cc + src/model/GetTURNCredentialsResult.cc + src/model/ListUnreachableContactsRequest.cc + src/model/ListUnreachableContactsResult.cc + src/model/AddNumberToSkillGroupRequest.cc + src/model/AddNumberToSkillGroupResult.cc + src/model/ModifySkillGroupRequest.cc + src/model/ModifySkillGroupResult.cc + src/model/GetConversationDetailByContactIdRequest.cc + src/model/GetConversationDetailByContactIdResult.cc + src/model/GetJobsProgressRequest.cc + src/model/GetJobsProgressResult.cc + src/model/SaveStatsRequest.cc + src/model/SaveStatsResult.cc + src/model/LaunchAppraiseRequest.cc + src/model/LaunchAppraiseResult.cc + src/model/ModifyUserRequest.cc + src/model/ModifyUserResult.cc + src/model/CreateScenarioRequest.cc + src/model/CreateScenarioResult.cc + src/model/ListSkillGroupsRequest.cc + src/model/ListSkillGroupsResult.cc + src/model/ModifySkillGroupOfUserRequest.cc + src/model/ModifySkillGroupOfUserResult.cc + src/model/DownloadRecordingRequest.cc + src/model/DownloadRecordingResult.cc + src/model/GetConfigRequest.cc + src/model/GetConfigResult.cc + src/model/CreateMediaRequest.cc + src/model/CreateMediaResult.cc + src/model/GenerateAgentStatisticReportRequest.cc + src/model/GenerateAgentStatisticReportResult.cc + src/model/ListAgentSummaryReportsSinceMidnightRequest.cc + src/model/ListAgentSummaryReportsSinceMidnightResult.cc + src/model/ListPredictiveJobGroupsRequest.cc + src/model/ListPredictiveJobGroupsResult.cc + src/model/CreateScenarioFromTemplateRequest.cc + src/model/CreateScenarioFromTemplateResult.cc + src/model/PublishContactFlowVersionRequest.cc + src/model/PublishContactFlowVersionResult.cc + src/model/GetTaskListRequest.cc + src/model/GetTaskListResult.cc + src/model/QueryRedialIndicatorRequest.cc + src/model/QueryRedialIndicatorResult.cc + src/model/ListScenarioTemplatesRequest.cc + src/model/ListScenarioTemplatesResult.cc + src/model/PickOutboundNumbersByTagsRequest.cc + src/model/PickOutboundNumbersByTagsResult.cc + src/model/GetAgentStateRequest.cc + src/model/GetAgentStateResult.cc + src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc + src/model/ListSkillGroupSummaryReportsByIntervalResult.cc + src/model/ResumeJobsRequest.cc + src/model/ResumeJobsResult.cc + src/model/ListAgentSummaryReportsByIntervalRequest.cc + src/model/ListAgentSummaryReportsByIntervalResult.cc + src/model/PreModifyMediaRequest.cc + src/model/PreModifyMediaResult.cc + src/model/LaunchShortMessageAppraiseRequest.cc + src/model/LaunchShortMessageAppraiseResult.cc + src/model/GetContactInfoByOutboundTaskIdRequest.cc + src/model/GetContactInfoByOutboundTaskIdResult.cc src/model/ListScenariosRequest.cc src/model/ListScenariosResult.cc src/model/ListRealTimeAgentRequest.cc src/model/ListRealTimeAgentResult.cc src/model/AssignJobsRequest.cc src/model/AssignJobsResult.cc - src/model/CreateUserRequest.cc - src/model/CreateUserResult.cc - src/model/ListPrivilegesOfUserRequest.cc - src/model/ListPrivilegesOfUserResult.cc - src/model/GetNumberRegionInfoRequest.cc - src/model/GetNumberRegionInfoResult.cc src/model/GetScenarioRequest.cc src/model/GetScenarioResult.cc - src/model/CreatePredictiveJobsRequest.cc - src/model/CreatePredictiveJobsResult.cc - src/model/GetAgentDataRequest.cc - src/model/GetAgentDataResult.cc + src/model/ListOutboundPhoneNumberOfUserRequest.cc + src/model/ListOutboundPhoneNumberOfUserResult.cc + src/model/PickGlobalOutboundNumbersRequest.cc + src/model/PickGlobalOutboundNumbersResult.cc + src/model/ListAgentDevicesRequest.cc + src/model/ListAgentDevicesResult.cc + src/model/CreateFaultRequest.cc + src/model/CreateFaultResult.cc src/model/CreateSurveyRequest.cc src/model/CreateSurveyResult.cc - src/model/ListJobStatusRequest.cc - src/model/ListJobStatusResult.cc + src/model/CreateCabInstanceRequest.cc + src/model/CreateCabInstanceResult.cc src/model/ModifySurveyRequest.cc src/model/ModifySurveyResult.cc - src/model/ModifyScenarioRequest.cc - src/model/ModifyScenarioResult.cc + src/model/PublishPredictiveJobGroupRequest.cc + src/model/PublishPredictiveJobGroupResult.cc src/model/CreateSkillGroupRequest.cc src/model/CreateSkillGroupResult.cc - src/model/GetServiceExtensionsRequest.cc - src/model/GetServiceExtensionsResult.cc - src/model/ListContactFlowsRequest.cc - src/model/ListContactFlowsResult.cc + src/model/PickOutboundNumbersRequest.cc + src/model/PickOutboundNumbersResult.cc + src/model/CreateContactFlowRequest.cc + src/model/CreateContactFlowResult.cc src/model/DeleteJobGroupRequest.cc src/model/DeleteJobGroupResult.cc ) diff --git a/ccc/include/alibabacloud/ccc/CCCClient.h b/ccc/include/alibabacloud/ccc/CCCClient.h index 008ceb920..d19f45d3f 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -22,42 +22,46 @@ #include #include #include "CCCExport.h" +#include "model/SaveWebRTCStatsRequest.h" +#include "model/SaveWebRTCStatsResult.h" +#include "model/GetContactIdentifyByOutBoundTaskIdRequest.h" +#include "model/GetContactIdentifyByOutBoundTaskIdResult.h" #include "model/GetJobListRequest.h" #include "model/GetJobListResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" +#include "model/ListCallEventDetailByContactIdRequest.h" +#include "model/ListCallEventDetailByContactIdResult.h" #include "model/ListSkillGroupsOfUserRequest.h" #include "model/ListSkillGroupsOfUserResult.h" #include "model/TwoPartiesCallRequest.h" #include "model/TwoPartiesCallResult.h" -#include "model/DeleteSurveyRequest.h" -#include "model/DeleteSurveyResult.h" +#include "model/ListSkillGroupSummaryReportsSinceMidnightRequest.h" +#include "model/ListSkillGroupSummaryReportsSinceMidnightResult.h" #include "model/ListPhoneNumbersRequest.h" #include "model/ListPhoneNumbersResult.h" +#include "model/ListMediasRequest.h" +#include "model/ListMediasResult.h" #include "model/DownloadUnreachableContactsRequest.h" #include "model/DownloadUnreachableContactsResult.h" #include "model/DialogueRequest.h" #include "model/DialogueResult.h" -#include "model/RefreshTokenRequest.h" -#include "model/RefreshTokenResult.h" +#include "model/SimpleDialRequest.h" +#include "model/SimpleDialResult.h" #include "model/CreateBatchJobsRequest.h" #include "model/CreateBatchJobsResult.h" #include "model/RequestLoginInfoRequest.h" #include "model/RequestLoginInfoResult.h" #include "model/GetJobTemplateDownloadParamsRequest.h" #include "model/GetJobTemplateDownloadParamsResult.h" -#include "model/RemoveUsersRequest.h" -#include "model/RemoveUsersResult.h" +#include "model/DownloadAllTypeRecordingRequest.h" +#include "model/DownloadAllTypeRecordingResult.h" #include "model/CancelPredictiveJobsRequest.h" #include "model/CancelPredictiveJobsResult.h" -#include "model/StartBack2BackCallRequest.h" -#include "model/StartBack2BackCallResult.h" -#include "model/PublishSurveyRequest.h" -#include "model/PublishSurveyResult.h" -#include "model/GetUserRequest.h" -#include "model/GetUserResult.h" -#include "model/GetConversationListRequest.h" -#include "model/GetConversationListResult.h" +#include "model/AddAgentDeviceRequest.h" +#include "model/AddAgentDeviceResult.h" +#include "model/ListPrivacyNumberCallDetailsRequest.h" +#include "model/ListPrivacyNumberCallDetailsResult.h" #include "model/ListUsersOfSkillGroupRequest.h" #include "model/ListUsersOfSkillGroupResult.h" #include "model/ListJobsByGroupRequest.h" @@ -66,118 +70,274 @@ #include "model/ListPredictiveJobStatusResult.h" #include "model/ListJobGroupsRequest.h" #include "model/ListJobGroupsResult.h" -#include "model/ListCallDetailRecordsRequest.h" -#include "model/ListCallDetailRecordsResult.h" #include "model/AddPhoneNumberRequest.h" #include "model/AddPhoneNumberResult.h" -#include "model/ListRecordingsRequest.h" -#include "model/ListRecordingsResult.h" +#include "model/FindUsersRequest.h" +#include "model/FindUsersResult.h" +#include "model/DownloadCabRecordingRequest.h" +#include "model/DownloadCabRecordingResult.h" #include "model/EncryptRequest.h" #include "model/EncryptResult.h" +#include "model/PredictiveRecordFailureRequest.h" +#include "model/PredictiveRecordFailureResult.h" #include "model/SubmitBatchJobsRequest.h" #include "model/SubmitBatchJobsResult.h" #include "model/ListSurveysRequest.h" #include "model/ListSurveysResult.h" #include "model/GetJobDataUploadParamsRequest.h" #include "model/GetJobDataUploadParamsResult.h" -#include "model/ListBasicStatisticsReportSubItemsRequest.h" -#include "model/ListBasicStatisticsReportSubItemsResult.h" -#include "model/SuspendJobsRequest.h" -#include "model/SuspendJobsResult.h" -#include "model/GetJobGroupRequest.h" -#include "model/GetJobGroupResult.h" +#include "model/CreateCCCPostOrderRequest.h" +#include "model/CreateCCCPostOrderResult.h" +#include "model/ModifyAgentDeviceRequest.h" +#include "model/ModifyAgentDeviceResult.h" +#include "model/CreatePredictiveJobGroupRequest.h" +#include "model/CreatePredictiveJobGroupResult.h" +#include "model/GetCallMeasureSummaryReportRequest.h" +#include "model/GetCallMeasureSummaryReportResult.h" #include "model/GetJobStatusByCallIdRequest.h" #include "model/GetJobStatusByCallIdResult.h" -#include "model/ListUnreachableContactsRequest.h" -#include "model/ListUnreachableContactsResult.h" -#include "model/ModifySkillGroupRequest.h" -#include "model/ModifySkillGroupResult.h" -#include "model/GetConversationDetailByContactIdRequest.h" -#include "model/GetConversationDetailByContactIdResult.h" +#include "model/RemoveUsersFromSkillGroupRequest.h" +#include "model/RemoveUsersFromSkillGroupResult.h" +#include "model/SendPredefinedShortMessageRequest.h" +#include "model/SendPredefinedShortMessageResult.h" +#include "model/PredictiveRecordSuccessRequest.h" +#include "model/PredictiveRecordSuccessResult.h" +#include "model/ModifyCabInstanceRequest.h" +#include "model/ModifyCabInstanceResult.h" #include "model/ListRecordingsByContactIdRequest.h" #include "model/ListRecordingsByContactIdResult.h" -#include "model/LaunchAppraiseRequest.h" -#include "model/LaunchAppraiseResult.h" #include "model/DeleteSkillGroupRequest.h" #include "model/DeleteSkillGroupResult.h" -#include "model/ModifyUserRequest.h" -#include "model/ModifyUserResult.h" -#include "model/ListSkillGroupsRequest.h" -#include "model/ListSkillGroupsResult.h" -#include "model/CreateScenarioRequest.h" -#include "model/CreateScenarioResult.h" +#include "model/GetJobFileUploadUrlRequest.h" +#include "model/GetJobFileUploadUrlResult.h" +#include "model/CallOnlinePrivacyNumberRequest.h" +#include "model/CallOnlinePrivacyNumberResult.h" +#include "model/GetRecordOssUploadParamRequest.h" +#include "model/GetRecordOssUploadParamResult.h" +#include "model/ListRecordingOfDualTrackRequest.h" +#include "model/ListRecordingOfDualTrackResult.h" +#include "model/CommitContactFlowVersionModificationRequest.h" +#include "model/CommitContactFlowVersionModificationResult.h" #include "model/RemovePhoneNumberRequest.h" #include "model/RemovePhoneNumberResult.h" -#include "model/PickLocalNumberRequest.h" -#include "model/PickLocalNumberResult.h" #include "model/GetJobRequest.h" #include "model/GetJobResult.h" +#include "model/PickLocalNumberRequest.h" +#include "model/PickLocalNumberResult.h" +#include "model/ListInstancesOfUserRequest.h" +#include "model/ListInstancesOfUserResult.h" #include "model/StartJobRequest.h" #include "model/StartJobResult.h" #include "model/CancelJobsRequest.h" #include "model/CancelJobsResult.h" -#include "model/GetConfigRequest.h" -#include "model/GetConfigResult.h" -#include "model/DownloadRecordingRequest.h" -#include "model/DownloadRecordingResult.h" -#include "model/GenerateAgentStatisticReportRequest.h" -#include "model/GenerateAgentStatisticReportResult.h" -#include "model/CreateScenarioFromTemplateRequest.h" -#include "model/CreateScenarioFromTemplateResult.h" #include "model/CreateJobGroupRequest.h" #include "model/CreateJobGroupResult.h" -#include "model/GetTaskListRequest.h" -#include "model/GetTaskListResult.h" #include "model/DownloadOriginalStatisticsReportRequest.h" #include "model/DownloadOriginalStatisticsReportResult.h" -#include "model/ListScenarioTemplatesRequest.h" -#include "model/ListScenarioTemplatesResult.h" -#include "model/ResumeJobsRequest.h" -#include "model/ResumeJobsResult.h" +#include "model/ListSkillGroupSummaryReportsRequest.h" +#include "model/ListSkillGroupSummaryReportsResult.h" #include "model/AssignUsersRequest.h" #include "model/AssignUsersResult.h" #include "model/GetSurveyRequest.h" #include "model/GetSurveyResult.h" +#include "model/ListRecentCallRecordsRequest.h" +#include "model/ListRecentCallRecordsResult.h" #include "model/ListRolesRequest.h" #include "model/ListRolesResult.h" #include "model/ListConfigRequest.h" #include "model/ListConfigResult.h" -#include "model/LaunchShortMessageAppraiseRequest.h" -#include "model/LaunchShortMessageAppraiseResult.h" +#include "model/ListCallMeasureSummaryReportsRequest.h" +#include "model/ListCallMeasureSummaryReportsResult.h" +#include "model/DeleteMediaRequest.h" +#include "model/DeleteMediaResult.h" #include "model/ModifyPhoneNumberRequest.h" #include "model/ModifyPhoneNumberResult.h" +#include "model/CreateUserRequest.h" +#include "model/CreateUserResult.h" +#include "model/ListPrivilegesOfUserRequest.h" +#include "model/ListPrivilegesOfUserResult.h" +#include "model/ListSkillGroupStatesRequest.h" +#include "model/ListSkillGroupStatesResult.h" +#include "model/CreatePredictiveJobsRequest.h" +#include "model/CreatePredictiveJobsResult.h" +#include "model/GetNumberRegionInfoRequest.h" +#include "model/GetNumberRegionInfoResult.h" +#include "model/ModifyMediaRequest.h" +#include "model/ModifyMediaResult.h" +#include "model/PreCreateMediaRequest.h" +#include "model/PreCreateMediaResult.h" +#include "model/ListAgentEventsRequest.h" +#include "model/ListAgentEventsResult.h" +#include "model/GetAgentDataRequest.h" +#include "model/GetAgentDataResult.h" +#include "model/GetInstanceStateRequest.h" +#include "model/GetInstanceStateResult.h" +#include "model/ListJobStatusRequest.h" +#include "model/ListJobStatusResult.h" +#include "model/ModifyScenarioRequest.h" +#include "model/ModifyScenarioResult.h" +#include "model/RemoveNumberFromSkillGroupRequest.h" +#include "model/RemoveNumberFromSkillGroupResult.h" +#include "model/GetServiceExtensionsRequest.h" +#include "model/GetServiceExtensionsResult.h" +#include "model/ListContactFlowsRequest.h" +#include "model/ListContactFlowsResult.h" +#include "model/CreateVoiceAppraiseRequest.h" +#include "model/CreateVoiceAppraiseResult.h" +#include "model/GetTURNServerListRequest.h" +#include "model/GetTURNServerListResult.h" +#include "model/DeleteInstanceRequest.h" +#include "model/DeleteInstanceResult.h" +#include "model/AddBulkPhoneNumbersRequest.h" +#include "model/AddBulkPhoneNumbersResult.h" +#include "model/GetSmsConfigRequest.h" +#include "model/GetSmsConfigResult.h" +#include "model/DeleteSurveyRequest.h" +#include "model/DeleteSurveyResult.h" +#include "model/ModifyPrivacyNumberCallDetailRequest.h" +#include "model/ModifyPrivacyNumberCallDetailResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" +#include "model/GetInstanceSummaryReportByIntervalRequest.h" +#include "model/GetInstanceSummaryReportByIntervalResult.h" +#include "model/ListAgentStatesRequest.h" +#include "model/ListAgentStatesResult.h" +#include "model/RefreshTokenRequest.h" +#include "model/RefreshTokenResult.h" +#include "model/SubmitCabRecordingRequest.h" +#include "model/SubmitCabRecordingResult.h" +#include "model/ListVoiceAppraiseRequest.h" +#include "model/ListVoiceAppraiseResult.h" +#include "model/RemoveUsersRequest.h" +#include "model/RemoveUsersResult.h" +#include "model/GetPredictiveJobRequest.h" +#include "model/GetPredictiveJobResult.h" +#include "model/StartBack2BackCallRequest.h" +#include "model/StartBack2BackCallResult.h" +#include "model/DialExRequest.h" +#include "model/DialExResult.h" +#include "model/PublishSurveyRequest.h" +#include "model/PublishSurveyResult.h" +#include "model/GetInstanceSummaryReportRequest.h" +#include "model/GetInstanceSummaryReportResult.h" +#include "model/ModifySkillGroupOutboundNumbersRequest.h" +#include "model/ModifySkillGroupOutboundNumbersResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/GetConversationListRequest.h" +#include "model/GetConversationListResult.h" +#include "model/GetInstanceSummaryReportSinceMidnightRequest.h" +#include "model/GetInstanceSummaryReportSinceMidnightResult.h" +#include "model/ListCallDetailRecordsRequest.h" +#include "model/ListCallDetailRecordsResult.h" +#include "model/ListIvrTrackingDetailRequest.h" +#include "model/ListIvrTrackingDetailResult.h" +#include "model/ListRecordingsRequest.h" +#include "model/ListRecordingsResult.h" +#include "model/ModifyNotificationConfigRequest.h" +#include "model/ModifyNotificationConfigResult.h" +#include "model/GetInstanceRequest.h" +#include "model/GetInstanceResult.h" +#include "model/ListAgentSummaryReportsRequest.h" +#include "model/ListAgentSummaryReportsResult.h" +#include "model/ListBasicStatisticsReportSubItemsRequest.h" +#include "model/ListBasicStatisticsReportSubItemsResult.h" +#include "model/GetJobGroupRequest.h" +#include "model/GetJobGroupResult.h" +#include "model/SuspendJobsRequest.h" +#include "model/SuspendJobsResult.h" +#include "model/GetTURNCredentialsRequest.h" +#include "model/GetTURNCredentialsResult.h" +#include "model/ListUnreachableContactsRequest.h" +#include "model/ListUnreachableContactsResult.h" +#include "model/AddNumberToSkillGroupRequest.h" +#include "model/AddNumberToSkillGroupResult.h" +#include "model/ModifySkillGroupRequest.h" +#include "model/ModifySkillGroupResult.h" +#include "model/GetConversationDetailByContactIdRequest.h" +#include "model/GetConversationDetailByContactIdResult.h" +#include "model/GetJobsProgressRequest.h" +#include "model/GetJobsProgressResult.h" +#include "model/SaveStatsRequest.h" +#include "model/SaveStatsResult.h" +#include "model/LaunchAppraiseRequest.h" +#include "model/LaunchAppraiseResult.h" +#include "model/ModifyUserRequest.h" +#include "model/ModifyUserResult.h" +#include "model/CreateScenarioRequest.h" +#include "model/CreateScenarioResult.h" +#include "model/ListSkillGroupsRequest.h" +#include "model/ListSkillGroupsResult.h" +#include "model/ModifySkillGroupOfUserRequest.h" +#include "model/ModifySkillGroupOfUserResult.h" +#include "model/DownloadRecordingRequest.h" +#include "model/DownloadRecordingResult.h" +#include "model/GetConfigRequest.h" +#include "model/GetConfigResult.h" +#include "model/CreateMediaRequest.h" +#include "model/CreateMediaResult.h" +#include "model/GenerateAgentStatisticReportRequest.h" +#include "model/GenerateAgentStatisticReportResult.h" +#include "model/ListAgentSummaryReportsSinceMidnightRequest.h" +#include "model/ListAgentSummaryReportsSinceMidnightResult.h" +#include "model/ListPredictiveJobGroupsRequest.h" +#include "model/ListPredictiveJobGroupsResult.h" +#include "model/CreateScenarioFromTemplateRequest.h" +#include "model/CreateScenarioFromTemplateResult.h" +#include "model/PublishContactFlowVersionRequest.h" +#include "model/PublishContactFlowVersionResult.h" +#include "model/GetTaskListRequest.h" +#include "model/GetTaskListResult.h" +#include "model/QueryRedialIndicatorRequest.h" +#include "model/QueryRedialIndicatorResult.h" +#include "model/ListScenarioTemplatesRequest.h" +#include "model/ListScenarioTemplatesResult.h" +#include "model/PickOutboundNumbersByTagsRequest.h" +#include "model/PickOutboundNumbersByTagsResult.h" +#include "model/GetAgentStateRequest.h" +#include "model/GetAgentStateResult.h" +#include "model/ListSkillGroupSummaryReportsByIntervalRequest.h" +#include "model/ListSkillGroupSummaryReportsByIntervalResult.h" +#include "model/ResumeJobsRequest.h" +#include "model/ResumeJobsResult.h" +#include "model/ListAgentSummaryReportsByIntervalRequest.h" +#include "model/ListAgentSummaryReportsByIntervalResult.h" +#include "model/PreModifyMediaRequest.h" +#include "model/PreModifyMediaResult.h" +#include "model/LaunchShortMessageAppraiseRequest.h" +#include "model/LaunchShortMessageAppraiseResult.h" +#include "model/GetContactInfoByOutboundTaskIdRequest.h" +#include "model/GetContactInfoByOutboundTaskIdResult.h" #include "model/ListScenariosRequest.h" #include "model/ListScenariosResult.h" #include "model/ListRealTimeAgentRequest.h" #include "model/ListRealTimeAgentResult.h" #include "model/AssignJobsRequest.h" #include "model/AssignJobsResult.h" -#include "model/CreateUserRequest.h" -#include "model/CreateUserResult.h" -#include "model/ListPrivilegesOfUserRequest.h" -#include "model/ListPrivilegesOfUserResult.h" -#include "model/GetNumberRegionInfoRequest.h" -#include "model/GetNumberRegionInfoResult.h" #include "model/GetScenarioRequest.h" #include "model/GetScenarioResult.h" -#include "model/CreatePredictiveJobsRequest.h" -#include "model/CreatePredictiveJobsResult.h" -#include "model/GetAgentDataRequest.h" -#include "model/GetAgentDataResult.h" +#include "model/ListOutboundPhoneNumberOfUserRequest.h" +#include "model/ListOutboundPhoneNumberOfUserResult.h" +#include "model/PickGlobalOutboundNumbersRequest.h" +#include "model/PickGlobalOutboundNumbersResult.h" +#include "model/ListAgentDevicesRequest.h" +#include "model/ListAgentDevicesResult.h" +#include "model/CreateFaultRequest.h" +#include "model/CreateFaultResult.h" #include "model/CreateSurveyRequest.h" #include "model/CreateSurveyResult.h" -#include "model/ListJobStatusRequest.h" -#include "model/ListJobStatusResult.h" +#include "model/CreateCabInstanceRequest.h" +#include "model/CreateCabInstanceResult.h" #include "model/ModifySurveyRequest.h" #include "model/ModifySurveyResult.h" -#include "model/ModifyScenarioRequest.h" -#include "model/ModifyScenarioResult.h" +#include "model/PublishPredictiveJobGroupRequest.h" +#include "model/PublishPredictiveJobGroupResult.h" #include "model/CreateSkillGroupRequest.h" #include "model/CreateSkillGroupResult.h" -#include "model/GetServiceExtensionsRequest.h" -#include "model/GetServiceExtensionsResult.h" -#include "model/ListContactFlowsRequest.h" -#include "model/ListContactFlowsResult.h" +#include "model/PickOutboundNumbersRequest.h" +#include "model/PickOutboundNumbersResult.h" +#include "model/CreateContactFlowRequest.h" +#include "model/CreateContactFlowResult.h" #include "model/DeleteJobGroupRequest.h" #include "model/DeleteJobGroupResult.h" @@ -189,33 +349,45 @@ namespace AlibabaCloud class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient { public: + typedef Outcome SaveWebRTCStatsOutcome; + typedef std::future SaveWebRTCStatsOutcomeCallable; + typedef std::function&)> SaveWebRTCStatsAsyncHandler; + typedef Outcome GetContactIdentifyByOutBoundTaskIdOutcome; + typedef std::future GetContactIdentifyByOutBoundTaskIdOutcomeCallable; + typedef std::function&)> GetContactIdentifyByOutBoundTaskIdAsyncHandler; typedef Outcome GetJobListOutcome; typedef std::future GetJobListOutcomeCallable; typedef std::function&)> GetJobListAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome ListCallEventDetailByContactIdOutcome; + typedef std::future ListCallEventDetailByContactIdOutcomeCallable; + typedef std::function&)> ListCallEventDetailByContactIdAsyncHandler; typedef Outcome ListSkillGroupsOfUserOutcome; typedef std::future ListSkillGroupsOfUserOutcomeCallable; typedef std::function&)> ListSkillGroupsOfUserAsyncHandler; typedef Outcome TwoPartiesCallOutcome; typedef std::future TwoPartiesCallOutcomeCallable; typedef std::function&)> TwoPartiesCallAsyncHandler; - typedef Outcome DeleteSurveyOutcome; - typedef std::future DeleteSurveyOutcomeCallable; - typedef std::function&)> DeleteSurveyAsyncHandler; + typedef Outcome ListSkillGroupSummaryReportsSinceMidnightOutcome; + typedef std::future ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable; + typedef std::function&)> ListSkillGroupSummaryReportsSinceMidnightAsyncHandler; typedef Outcome ListPhoneNumbersOutcome; typedef std::future ListPhoneNumbersOutcomeCallable; typedef std::function&)> ListPhoneNumbersAsyncHandler; + typedef Outcome ListMediasOutcome; + typedef std::future ListMediasOutcomeCallable; + typedef std::function&)> ListMediasAsyncHandler; typedef Outcome DownloadUnreachableContactsOutcome; typedef std::future DownloadUnreachableContactsOutcomeCallable; typedef std::function&)> DownloadUnreachableContactsAsyncHandler; typedef Outcome DialogueOutcome; typedef std::future DialogueOutcomeCallable; typedef std::function&)> DialogueAsyncHandler; - typedef Outcome RefreshTokenOutcome; - typedef std::future RefreshTokenOutcomeCallable; - typedef std::function&)> RefreshTokenAsyncHandler; + typedef Outcome SimpleDialOutcome; + typedef std::future SimpleDialOutcomeCallable; + typedef std::function&)> SimpleDialAsyncHandler; typedef Outcome CreateBatchJobsOutcome; typedef std::future CreateBatchJobsOutcomeCallable; typedef std::function&)> CreateBatchJobsAsyncHandler; @@ -225,24 +397,18 @@ namespace AlibabaCloud typedef Outcome GetJobTemplateDownloadParamsOutcome; typedef std::future GetJobTemplateDownloadParamsOutcomeCallable; typedef std::function&)> GetJobTemplateDownloadParamsAsyncHandler; - typedef Outcome RemoveUsersOutcome; - typedef std::future RemoveUsersOutcomeCallable; - typedef std::function&)> RemoveUsersAsyncHandler; + typedef Outcome DownloadAllTypeRecordingOutcome; + typedef std::future DownloadAllTypeRecordingOutcomeCallable; + typedef std::function&)> DownloadAllTypeRecordingAsyncHandler; typedef Outcome CancelPredictiveJobsOutcome; typedef std::future CancelPredictiveJobsOutcomeCallable; typedef std::function&)> CancelPredictiveJobsAsyncHandler; - typedef Outcome StartBack2BackCallOutcome; - typedef std::future StartBack2BackCallOutcomeCallable; - typedef std::function&)> StartBack2BackCallAsyncHandler; - typedef Outcome PublishSurveyOutcome; - typedef std::future PublishSurveyOutcomeCallable; - typedef std::function&)> PublishSurveyAsyncHandler; - typedef Outcome GetUserOutcome; - typedef std::future GetUserOutcomeCallable; - typedef std::function&)> GetUserAsyncHandler; - typedef Outcome GetConversationListOutcome; - typedef std::future GetConversationListOutcomeCallable; - typedef std::function&)> GetConversationListAsyncHandler; + typedef Outcome AddAgentDeviceOutcome; + typedef std::future AddAgentDeviceOutcomeCallable; + typedef std::function&)> AddAgentDeviceAsyncHandler; + typedef Outcome ListPrivacyNumberCallDetailsOutcome; + typedef std::future ListPrivacyNumberCallDetailsOutcomeCallable; + typedef std::function&)> ListPrivacyNumberCallDetailsAsyncHandler; typedef Outcome ListUsersOfSkillGroupOutcome; typedef std::future ListUsersOfSkillGroupOutcomeCallable; typedef std::function&)> ListUsersOfSkillGroupAsyncHandler; @@ -255,18 +421,21 @@ namespace AlibabaCloud typedef Outcome ListJobGroupsOutcome; typedef std::future ListJobGroupsOutcomeCallable; typedef std::function&)> ListJobGroupsAsyncHandler; - typedef Outcome ListCallDetailRecordsOutcome; - typedef std::future ListCallDetailRecordsOutcomeCallable; - typedef std::function&)> ListCallDetailRecordsAsyncHandler; typedef Outcome AddPhoneNumberOutcome; typedef std::future AddPhoneNumberOutcomeCallable; typedef std::function&)> AddPhoneNumberAsyncHandler; - typedef Outcome ListRecordingsOutcome; - typedef std::future ListRecordingsOutcomeCallable; - typedef std::function&)> ListRecordingsAsyncHandler; + typedef Outcome FindUsersOutcome; + typedef std::future FindUsersOutcomeCallable; + typedef std::function&)> FindUsersAsyncHandler; + typedef Outcome DownloadCabRecordingOutcome; + typedef std::future DownloadCabRecordingOutcomeCallable; + typedef std::function&)> DownloadCabRecordingAsyncHandler; typedef Outcome EncryptOutcome; typedef std::future EncryptOutcomeCallable; typedef std::function&)> EncryptAsyncHandler; + typedef Outcome PredictiveRecordFailureOutcome; + typedef std::future PredictiveRecordFailureOutcomeCallable; + typedef std::function&)> PredictiveRecordFailureAsyncHandler; typedef Outcome SubmitBatchJobsOutcome; typedef std::future SubmitBatchJobsOutcomeCallable; typedef std::function&)> SubmitBatchJobsAsyncHandler; @@ -276,105 +445,339 @@ namespace AlibabaCloud typedef Outcome GetJobDataUploadParamsOutcome; typedef std::future GetJobDataUploadParamsOutcomeCallable; typedef std::function&)> GetJobDataUploadParamsAsyncHandler; - typedef Outcome ListBasicStatisticsReportSubItemsOutcome; - typedef std::future ListBasicStatisticsReportSubItemsOutcomeCallable; - typedef std::function&)> ListBasicStatisticsReportSubItemsAsyncHandler; - typedef Outcome SuspendJobsOutcome; - typedef std::future SuspendJobsOutcomeCallable; - typedef std::function&)> SuspendJobsAsyncHandler; - typedef Outcome GetJobGroupOutcome; - typedef std::future GetJobGroupOutcomeCallable; - typedef std::function&)> GetJobGroupAsyncHandler; + typedef Outcome CreateCCCPostOrderOutcome; + typedef std::future CreateCCCPostOrderOutcomeCallable; + typedef std::function&)> CreateCCCPostOrderAsyncHandler; + typedef Outcome ModifyAgentDeviceOutcome; + typedef std::future ModifyAgentDeviceOutcomeCallable; + typedef std::function&)> ModifyAgentDeviceAsyncHandler; + typedef Outcome CreatePredictiveJobGroupOutcome; + typedef std::future CreatePredictiveJobGroupOutcomeCallable; + typedef std::function&)> CreatePredictiveJobGroupAsyncHandler; + typedef Outcome GetCallMeasureSummaryReportOutcome; + typedef std::future GetCallMeasureSummaryReportOutcomeCallable; + typedef std::function&)> GetCallMeasureSummaryReportAsyncHandler; typedef Outcome GetJobStatusByCallIdOutcome; typedef std::future GetJobStatusByCallIdOutcomeCallable; typedef std::function&)> GetJobStatusByCallIdAsyncHandler; - typedef Outcome ListUnreachableContactsOutcome; - typedef std::future ListUnreachableContactsOutcomeCallable; - typedef std::function&)> ListUnreachableContactsAsyncHandler; - typedef Outcome ModifySkillGroupOutcome; - typedef std::future ModifySkillGroupOutcomeCallable; - typedef std::function&)> ModifySkillGroupAsyncHandler; - typedef Outcome GetConversationDetailByContactIdOutcome; - typedef std::future GetConversationDetailByContactIdOutcomeCallable; - typedef std::function&)> GetConversationDetailByContactIdAsyncHandler; + typedef Outcome RemoveUsersFromSkillGroupOutcome; + typedef std::future RemoveUsersFromSkillGroupOutcomeCallable; + typedef std::function&)> RemoveUsersFromSkillGroupAsyncHandler; + typedef Outcome SendPredefinedShortMessageOutcome; + typedef std::future SendPredefinedShortMessageOutcomeCallable; + typedef std::function&)> SendPredefinedShortMessageAsyncHandler; + typedef Outcome PredictiveRecordSuccessOutcome; + typedef std::future PredictiveRecordSuccessOutcomeCallable; + typedef std::function&)> PredictiveRecordSuccessAsyncHandler; + typedef Outcome ModifyCabInstanceOutcome; + typedef std::future ModifyCabInstanceOutcomeCallable; + typedef std::function&)> ModifyCabInstanceAsyncHandler; typedef Outcome ListRecordingsByContactIdOutcome; typedef std::future ListRecordingsByContactIdOutcomeCallable; typedef std::function&)> ListRecordingsByContactIdAsyncHandler; - typedef Outcome LaunchAppraiseOutcome; - typedef std::future LaunchAppraiseOutcomeCallable; - typedef std::function&)> LaunchAppraiseAsyncHandler; typedef Outcome DeleteSkillGroupOutcome; typedef std::future DeleteSkillGroupOutcomeCallable; typedef std::function&)> DeleteSkillGroupAsyncHandler; - typedef Outcome ModifyUserOutcome; - typedef std::future ModifyUserOutcomeCallable; - typedef std::function&)> ModifyUserAsyncHandler; - typedef Outcome ListSkillGroupsOutcome; - typedef std::future ListSkillGroupsOutcomeCallable; - typedef std::function&)> ListSkillGroupsAsyncHandler; - typedef Outcome CreateScenarioOutcome; - typedef std::future CreateScenarioOutcomeCallable; - typedef std::function&)> CreateScenarioAsyncHandler; + typedef Outcome GetJobFileUploadUrlOutcome; + typedef std::future GetJobFileUploadUrlOutcomeCallable; + typedef std::function&)> GetJobFileUploadUrlAsyncHandler; + typedef Outcome CallOnlinePrivacyNumberOutcome; + typedef std::future CallOnlinePrivacyNumberOutcomeCallable; + typedef std::function&)> CallOnlinePrivacyNumberAsyncHandler; + typedef Outcome GetRecordOssUploadParamOutcome; + typedef std::future GetRecordOssUploadParamOutcomeCallable; + typedef std::function&)> GetRecordOssUploadParamAsyncHandler; + typedef Outcome ListRecordingOfDualTrackOutcome; + typedef std::future ListRecordingOfDualTrackOutcomeCallable; + typedef std::function&)> ListRecordingOfDualTrackAsyncHandler; + typedef Outcome CommitContactFlowVersionModificationOutcome; + typedef std::future CommitContactFlowVersionModificationOutcomeCallable; + typedef std::function&)> CommitContactFlowVersionModificationAsyncHandler; typedef Outcome RemovePhoneNumberOutcome; typedef std::future RemovePhoneNumberOutcomeCallable; typedef std::function&)> RemovePhoneNumberAsyncHandler; - typedef Outcome PickLocalNumberOutcome; - typedef std::future PickLocalNumberOutcomeCallable; - typedef std::function&)> PickLocalNumberAsyncHandler; typedef Outcome GetJobOutcome; typedef std::future GetJobOutcomeCallable; typedef std::function&)> GetJobAsyncHandler; + typedef Outcome PickLocalNumberOutcome; + typedef std::future PickLocalNumberOutcomeCallable; + typedef std::function&)> PickLocalNumberAsyncHandler; + typedef Outcome ListInstancesOfUserOutcome; + typedef std::future ListInstancesOfUserOutcomeCallable; + typedef std::function&)> ListInstancesOfUserAsyncHandler; typedef Outcome StartJobOutcome; typedef std::future StartJobOutcomeCallable; typedef std::function&)> StartJobAsyncHandler; typedef Outcome CancelJobsOutcome; typedef std::future CancelJobsOutcomeCallable; typedef std::function&)> CancelJobsAsyncHandler; - typedef Outcome GetConfigOutcome; - typedef std::future GetConfigOutcomeCallable; - typedef std::function&)> GetConfigAsyncHandler; - typedef Outcome DownloadRecordingOutcome; - typedef std::future DownloadRecordingOutcomeCallable; - typedef std::function&)> DownloadRecordingAsyncHandler; - typedef Outcome GenerateAgentStatisticReportOutcome; - typedef std::future GenerateAgentStatisticReportOutcomeCallable; - typedef std::function&)> GenerateAgentStatisticReportAsyncHandler; - typedef Outcome CreateScenarioFromTemplateOutcome; - typedef std::future CreateScenarioFromTemplateOutcomeCallable; - typedef std::function&)> CreateScenarioFromTemplateAsyncHandler; typedef Outcome CreateJobGroupOutcome; typedef std::future CreateJobGroupOutcomeCallable; typedef std::function&)> CreateJobGroupAsyncHandler; - typedef Outcome GetTaskListOutcome; - typedef std::future GetTaskListOutcomeCallable; - typedef std::function&)> GetTaskListAsyncHandler; typedef Outcome DownloadOriginalStatisticsReportOutcome; typedef std::future DownloadOriginalStatisticsReportOutcomeCallable; typedef std::function&)> DownloadOriginalStatisticsReportAsyncHandler; - typedef Outcome ListScenarioTemplatesOutcome; - typedef std::future ListScenarioTemplatesOutcomeCallable; - typedef std::function&)> ListScenarioTemplatesAsyncHandler; - typedef Outcome ResumeJobsOutcome; - typedef std::future ResumeJobsOutcomeCallable; - typedef std::function&)> ResumeJobsAsyncHandler; + typedef Outcome ListSkillGroupSummaryReportsOutcome; + typedef std::future ListSkillGroupSummaryReportsOutcomeCallable; + typedef std::function&)> ListSkillGroupSummaryReportsAsyncHandler; typedef Outcome AssignUsersOutcome; typedef std::future AssignUsersOutcomeCallable; typedef std::function&)> AssignUsersAsyncHandler; typedef Outcome GetSurveyOutcome; typedef std::future GetSurveyOutcomeCallable; typedef std::function&)> GetSurveyAsyncHandler; + typedef Outcome ListRecentCallRecordsOutcome; + typedef std::future ListRecentCallRecordsOutcomeCallable; + typedef std::function&)> ListRecentCallRecordsAsyncHandler; typedef Outcome ListRolesOutcome; typedef std::future ListRolesOutcomeCallable; typedef std::function&)> ListRolesAsyncHandler; typedef Outcome ListConfigOutcome; typedef std::future ListConfigOutcomeCallable; typedef std::function&)> ListConfigAsyncHandler; - typedef Outcome LaunchShortMessageAppraiseOutcome; - typedef std::future LaunchShortMessageAppraiseOutcomeCallable; - typedef std::function&)> LaunchShortMessageAppraiseAsyncHandler; + typedef Outcome ListCallMeasureSummaryReportsOutcome; + typedef std::future ListCallMeasureSummaryReportsOutcomeCallable; + typedef std::function&)> ListCallMeasureSummaryReportsAsyncHandler; + typedef Outcome DeleteMediaOutcome; + typedef std::future DeleteMediaOutcomeCallable; + typedef std::function&)> DeleteMediaAsyncHandler; typedef Outcome ModifyPhoneNumberOutcome; typedef std::future ModifyPhoneNumberOutcomeCallable; typedef std::function&)> ModifyPhoneNumberAsyncHandler; + typedef Outcome CreateUserOutcome; + typedef std::future CreateUserOutcomeCallable; + typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome ListPrivilegesOfUserOutcome; + typedef std::future ListPrivilegesOfUserOutcomeCallable; + typedef std::function&)> ListPrivilegesOfUserAsyncHandler; + typedef Outcome ListSkillGroupStatesOutcome; + typedef std::future ListSkillGroupStatesOutcomeCallable; + typedef std::function&)> ListSkillGroupStatesAsyncHandler; + typedef Outcome CreatePredictiveJobsOutcome; + typedef std::future CreatePredictiveJobsOutcomeCallable; + typedef std::function&)> CreatePredictiveJobsAsyncHandler; + typedef Outcome GetNumberRegionInfoOutcome; + typedef std::future GetNumberRegionInfoOutcomeCallable; + typedef std::function&)> GetNumberRegionInfoAsyncHandler; + typedef Outcome ModifyMediaOutcome; + typedef std::future ModifyMediaOutcomeCallable; + typedef std::function&)> ModifyMediaAsyncHandler; + typedef Outcome PreCreateMediaOutcome; + typedef std::future PreCreateMediaOutcomeCallable; + typedef std::function&)> PreCreateMediaAsyncHandler; + typedef Outcome ListAgentEventsOutcome; + typedef std::future ListAgentEventsOutcomeCallable; + typedef std::function&)> ListAgentEventsAsyncHandler; + typedef Outcome GetAgentDataOutcome; + typedef std::future GetAgentDataOutcomeCallable; + typedef std::function&)> GetAgentDataAsyncHandler; + typedef Outcome GetInstanceStateOutcome; + typedef std::future GetInstanceStateOutcomeCallable; + typedef std::function&)> GetInstanceStateAsyncHandler; + typedef Outcome ListJobStatusOutcome; + typedef std::future ListJobStatusOutcomeCallable; + typedef std::function&)> ListJobStatusAsyncHandler; + typedef Outcome ModifyScenarioOutcome; + typedef std::future ModifyScenarioOutcomeCallable; + typedef std::function&)> ModifyScenarioAsyncHandler; + typedef Outcome RemoveNumberFromSkillGroupOutcome; + typedef std::future RemoveNumberFromSkillGroupOutcomeCallable; + typedef std::function&)> RemoveNumberFromSkillGroupAsyncHandler; + typedef Outcome GetServiceExtensionsOutcome; + typedef std::future GetServiceExtensionsOutcomeCallable; + typedef std::function&)> GetServiceExtensionsAsyncHandler; + typedef Outcome ListContactFlowsOutcome; + typedef std::future ListContactFlowsOutcomeCallable; + typedef std::function&)> ListContactFlowsAsyncHandler; + typedef Outcome CreateVoiceAppraiseOutcome; + typedef std::future CreateVoiceAppraiseOutcomeCallable; + typedef std::function&)> CreateVoiceAppraiseAsyncHandler; + typedef Outcome GetTURNServerListOutcome; + typedef std::future GetTURNServerListOutcomeCallable; + typedef std::function&)> GetTURNServerListAsyncHandler; + typedef Outcome DeleteInstanceOutcome; + typedef std::future DeleteInstanceOutcomeCallable; + typedef std::function&)> DeleteInstanceAsyncHandler; + typedef Outcome AddBulkPhoneNumbersOutcome; + typedef std::future AddBulkPhoneNumbersOutcomeCallable; + typedef std::function&)> AddBulkPhoneNumbersAsyncHandler; + typedef Outcome GetSmsConfigOutcome; + typedef std::future GetSmsConfigOutcomeCallable; + typedef std::function&)> GetSmsConfigAsyncHandler; + typedef Outcome DeleteSurveyOutcome; + typedef std::future DeleteSurveyOutcomeCallable; + typedef std::function&)> DeleteSurveyAsyncHandler; + typedef Outcome ModifyPrivacyNumberCallDetailOutcome; + typedef std::future ModifyPrivacyNumberCallDetailOutcomeCallable; + typedef std::function&)> ModifyPrivacyNumberCallDetailAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; + typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome GetInstanceSummaryReportByIntervalOutcome; + typedef std::future GetInstanceSummaryReportByIntervalOutcomeCallable; + typedef std::function&)> GetInstanceSummaryReportByIntervalAsyncHandler; + typedef Outcome ListAgentStatesOutcome; + typedef std::future ListAgentStatesOutcomeCallable; + typedef std::function&)> ListAgentStatesAsyncHandler; + typedef Outcome RefreshTokenOutcome; + typedef std::future RefreshTokenOutcomeCallable; + typedef std::function&)> RefreshTokenAsyncHandler; + typedef Outcome SubmitCabRecordingOutcome; + typedef std::future SubmitCabRecordingOutcomeCallable; + typedef std::function&)> SubmitCabRecordingAsyncHandler; + typedef Outcome ListVoiceAppraiseOutcome; + typedef std::future ListVoiceAppraiseOutcomeCallable; + typedef std::function&)> ListVoiceAppraiseAsyncHandler; + typedef Outcome RemoveUsersOutcome; + typedef std::future RemoveUsersOutcomeCallable; + typedef std::function&)> RemoveUsersAsyncHandler; + typedef Outcome GetPredictiveJobOutcome; + typedef std::future GetPredictiveJobOutcomeCallable; + typedef std::function&)> GetPredictiveJobAsyncHandler; + typedef Outcome StartBack2BackCallOutcome; + typedef std::future StartBack2BackCallOutcomeCallable; + typedef std::function&)> StartBack2BackCallAsyncHandler; + typedef Outcome DialExOutcome; + typedef std::future DialExOutcomeCallable; + typedef std::function&)> DialExAsyncHandler; + typedef Outcome PublishSurveyOutcome; + typedef std::future PublishSurveyOutcomeCallable; + typedef std::function&)> PublishSurveyAsyncHandler; + typedef Outcome GetInstanceSummaryReportOutcome; + typedef std::future GetInstanceSummaryReportOutcomeCallable; + typedef std::function&)> GetInstanceSummaryReportAsyncHandler; + typedef Outcome ModifySkillGroupOutboundNumbersOutcome; + typedef std::future ModifySkillGroupOutboundNumbersOutcomeCallable; + typedef std::function&)> ModifySkillGroupOutboundNumbersAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; + typedef std::function&)> GetUserAsyncHandler; + typedef Outcome GetConversationListOutcome; + typedef std::future GetConversationListOutcomeCallable; + typedef std::function&)> GetConversationListAsyncHandler; + typedef Outcome GetInstanceSummaryReportSinceMidnightOutcome; + typedef std::future GetInstanceSummaryReportSinceMidnightOutcomeCallable; + typedef std::function&)> GetInstanceSummaryReportSinceMidnightAsyncHandler; + typedef Outcome ListCallDetailRecordsOutcome; + typedef std::future ListCallDetailRecordsOutcomeCallable; + typedef std::function&)> ListCallDetailRecordsAsyncHandler; + typedef Outcome ListIvrTrackingDetailOutcome; + typedef std::future ListIvrTrackingDetailOutcomeCallable; + typedef std::function&)> ListIvrTrackingDetailAsyncHandler; + typedef Outcome ListRecordingsOutcome; + typedef std::future ListRecordingsOutcomeCallable; + typedef std::function&)> ListRecordingsAsyncHandler; + typedef Outcome ModifyNotificationConfigOutcome; + typedef std::future ModifyNotificationConfigOutcomeCallable; + typedef std::function&)> ModifyNotificationConfigAsyncHandler; + typedef Outcome GetInstanceOutcome; + typedef std::future GetInstanceOutcomeCallable; + typedef std::function&)> GetInstanceAsyncHandler; + typedef Outcome ListAgentSummaryReportsOutcome; + typedef std::future ListAgentSummaryReportsOutcomeCallable; + typedef std::function&)> ListAgentSummaryReportsAsyncHandler; + typedef Outcome ListBasicStatisticsReportSubItemsOutcome; + typedef std::future ListBasicStatisticsReportSubItemsOutcomeCallable; + typedef std::function&)> ListBasicStatisticsReportSubItemsAsyncHandler; + typedef Outcome GetJobGroupOutcome; + typedef std::future GetJobGroupOutcomeCallable; + typedef std::function&)> GetJobGroupAsyncHandler; + typedef Outcome SuspendJobsOutcome; + typedef std::future SuspendJobsOutcomeCallable; + typedef std::function&)> SuspendJobsAsyncHandler; + typedef Outcome GetTURNCredentialsOutcome; + typedef std::future GetTURNCredentialsOutcomeCallable; + typedef std::function&)> GetTURNCredentialsAsyncHandler; + typedef Outcome ListUnreachableContactsOutcome; + typedef std::future ListUnreachableContactsOutcomeCallable; + typedef std::function&)> ListUnreachableContactsAsyncHandler; + typedef Outcome AddNumberToSkillGroupOutcome; + typedef std::future AddNumberToSkillGroupOutcomeCallable; + typedef std::function&)> AddNumberToSkillGroupAsyncHandler; + typedef Outcome ModifySkillGroupOutcome; + typedef std::future ModifySkillGroupOutcomeCallable; + typedef std::function&)> ModifySkillGroupAsyncHandler; + typedef Outcome GetConversationDetailByContactIdOutcome; + typedef std::future GetConversationDetailByContactIdOutcomeCallable; + typedef std::function&)> GetConversationDetailByContactIdAsyncHandler; + typedef Outcome GetJobsProgressOutcome; + typedef std::future GetJobsProgressOutcomeCallable; + typedef std::function&)> GetJobsProgressAsyncHandler; + typedef Outcome SaveStatsOutcome; + typedef std::future SaveStatsOutcomeCallable; + typedef std::function&)> SaveStatsAsyncHandler; + typedef Outcome LaunchAppraiseOutcome; + typedef std::future LaunchAppraiseOutcomeCallable; + typedef std::function&)> LaunchAppraiseAsyncHandler; + typedef Outcome ModifyUserOutcome; + typedef std::future ModifyUserOutcomeCallable; + typedef std::function&)> ModifyUserAsyncHandler; + typedef Outcome CreateScenarioOutcome; + typedef std::future CreateScenarioOutcomeCallable; + typedef std::function&)> CreateScenarioAsyncHandler; + typedef Outcome ListSkillGroupsOutcome; + typedef std::future ListSkillGroupsOutcomeCallable; + typedef std::function&)> ListSkillGroupsAsyncHandler; + typedef Outcome ModifySkillGroupOfUserOutcome; + typedef std::future ModifySkillGroupOfUserOutcomeCallable; + typedef std::function&)> ModifySkillGroupOfUserAsyncHandler; + typedef Outcome DownloadRecordingOutcome; + typedef std::future DownloadRecordingOutcomeCallable; + typedef std::function&)> DownloadRecordingAsyncHandler; + typedef Outcome GetConfigOutcome; + typedef std::future GetConfigOutcomeCallable; + typedef std::function&)> GetConfigAsyncHandler; + typedef Outcome CreateMediaOutcome; + typedef std::future CreateMediaOutcomeCallable; + typedef std::function&)> CreateMediaAsyncHandler; + typedef Outcome GenerateAgentStatisticReportOutcome; + typedef std::future GenerateAgentStatisticReportOutcomeCallable; + typedef std::function&)> GenerateAgentStatisticReportAsyncHandler; + typedef Outcome ListAgentSummaryReportsSinceMidnightOutcome; + typedef std::future ListAgentSummaryReportsSinceMidnightOutcomeCallable; + typedef std::function&)> ListAgentSummaryReportsSinceMidnightAsyncHandler; + typedef Outcome ListPredictiveJobGroupsOutcome; + typedef std::future ListPredictiveJobGroupsOutcomeCallable; + typedef std::function&)> ListPredictiveJobGroupsAsyncHandler; + typedef Outcome CreateScenarioFromTemplateOutcome; + typedef std::future CreateScenarioFromTemplateOutcomeCallable; + typedef std::function&)> CreateScenarioFromTemplateAsyncHandler; + typedef Outcome PublishContactFlowVersionOutcome; + typedef std::future PublishContactFlowVersionOutcomeCallable; + typedef std::function&)> PublishContactFlowVersionAsyncHandler; + typedef Outcome GetTaskListOutcome; + typedef std::future GetTaskListOutcomeCallable; + typedef std::function&)> GetTaskListAsyncHandler; + typedef Outcome QueryRedialIndicatorOutcome; + typedef std::future QueryRedialIndicatorOutcomeCallable; + typedef std::function&)> QueryRedialIndicatorAsyncHandler; + typedef Outcome ListScenarioTemplatesOutcome; + typedef std::future ListScenarioTemplatesOutcomeCallable; + typedef std::function&)> ListScenarioTemplatesAsyncHandler; + typedef Outcome PickOutboundNumbersByTagsOutcome; + typedef std::future PickOutboundNumbersByTagsOutcomeCallable; + typedef std::function&)> PickOutboundNumbersByTagsAsyncHandler; + typedef Outcome GetAgentStateOutcome; + typedef std::future GetAgentStateOutcomeCallable; + typedef std::function&)> GetAgentStateAsyncHandler; + typedef Outcome ListSkillGroupSummaryReportsByIntervalOutcome; + typedef std::future ListSkillGroupSummaryReportsByIntervalOutcomeCallable; + typedef std::function&)> ListSkillGroupSummaryReportsByIntervalAsyncHandler; + typedef Outcome ResumeJobsOutcome; + typedef std::future ResumeJobsOutcomeCallable; + typedef std::function&)> ResumeJobsAsyncHandler; + typedef Outcome ListAgentSummaryReportsByIntervalOutcome; + typedef std::future ListAgentSummaryReportsByIntervalOutcomeCallable; + typedef std::function&)> ListAgentSummaryReportsByIntervalAsyncHandler; + typedef Outcome PreModifyMediaOutcome; + typedef std::future PreModifyMediaOutcomeCallable; + typedef std::function&)> PreModifyMediaAsyncHandler; + typedef Outcome LaunchShortMessageAppraiseOutcome; + typedef std::future LaunchShortMessageAppraiseOutcomeCallable; + typedef std::function&)> LaunchShortMessageAppraiseAsyncHandler; + typedef Outcome GetContactInfoByOutboundTaskIdOutcome; + typedef std::future GetContactInfoByOutboundTaskIdOutcomeCallable; + typedef std::function&)> GetContactInfoByOutboundTaskIdAsyncHandler; typedef Outcome ListScenariosOutcome; typedef std::future ListScenariosOutcomeCallable; typedef std::function&)> ListScenariosAsyncHandler; @@ -384,45 +787,42 @@ namespace AlibabaCloud typedef Outcome AssignJobsOutcome; typedef std::future AssignJobsOutcomeCallable; typedef std::function&)> AssignJobsAsyncHandler; - typedef Outcome CreateUserOutcome; - typedef std::future CreateUserOutcomeCallable; - typedef std::function&)> CreateUserAsyncHandler; - typedef Outcome ListPrivilegesOfUserOutcome; - typedef std::future ListPrivilegesOfUserOutcomeCallable; - typedef std::function&)> ListPrivilegesOfUserAsyncHandler; - typedef Outcome GetNumberRegionInfoOutcome; - typedef std::future GetNumberRegionInfoOutcomeCallable; - typedef std::function&)> GetNumberRegionInfoAsyncHandler; typedef Outcome GetScenarioOutcome; typedef std::future GetScenarioOutcomeCallable; typedef std::function&)> GetScenarioAsyncHandler; - typedef Outcome CreatePredictiveJobsOutcome; - typedef std::future CreatePredictiveJobsOutcomeCallable; - typedef std::function&)> CreatePredictiveJobsAsyncHandler; - typedef Outcome GetAgentDataOutcome; - typedef std::future GetAgentDataOutcomeCallable; - typedef std::function&)> GetAgentDataAsyncHandler; + typedef Outcome ListOutboundPhoneNumberOfUserOutcome; + typedef std::future ListOutboundPhoneNumberOfUserOutcomeCallable; + typedef std::function&)> ListOutboundPhoneNumberOfUserAsyncHandler; + typedef Outcome PickGlobalOutboundNumbersOutcome; + typedef std::future PickGlobalOutboundNumbersOutcomeCallable; + typedef std::function&)> PickGlobalOutboundNumbersAsyncHandler; + typedef Outcome ListAgentDevicesOutcome; + typedef std::future ListAgentDevicesOutcomeCallable; + typedef std::function&)> ListAgentDevicesAsyncHandler; + typedef Outcome CreateFaultOutcome; + typedef std::future CreateFaultOutcomeCallable; + typedef std::function&)> CreateFaultAsyncHandler; typedef Outcome CreateSurveyOutcome; typedef std::future CreateSurveyOutcomeCallable; typedef std::function&)> CreateSurveyAsyncHandler; - typedef Outcome ListJobStatusOutcome; - typedef std::future ListJobStatusOutcomeCallable; - typedef std::function&)> ListJobStatusAsyncHandler; + typedef Outcome CreateCabInstanceOutcome; + typedef std::future CreateCabInstanceOutcomeCallable; + typedef std::function&)> CreateCabInstanceAsyncHandler; typedef Outcome ModifySurveyOutcome; typedef std::future ModifySurveyOutcomeCallable; typedef std::function&)> ModifySurveyAsyncHandler; - typedef Outcome ModifyScenarioOutcome; - typedef std::future ModifyScenarioOutcomeCallable; - typedef std::function&)> ModifyScenarioAsyncHandler; + typedef Outcome PublishPredictiveJobGroupOutcome; + typedef std::future PublishPredictiveJobGroupOutcomeCallable; + typedef std::function&)> PublishPredictiveJobGroupAsyncHandler; typedef Outcome CreateSkillGroupOutcome; typedef std::future CreateSkillGroupOutcomeCallable; typedef std::function&)> CreateSkillGroupAsyncHandler; - typedef Outcome GetServiceExtensionsOutcome; - typedef std::future GetServiceExtensionsOutcomeCallable; - typedef std::function&)> GetServiceExtensionsAsyncHandler; - typedef Outcome ListContactFlowsOutcome; - typedef std::future ListContactFlowsOutcomeCallable; - typedef std::function&)> ListContactFlowsAsyncHandler; + typedef Outcome PickOutboundNumbersOutcome; + typedef std::future PickOutboundNumbersOutcomeCallable; + typedef std::function&)> PickOutboundNumbersAsyncHandler; + typedef Outcome CreateContactFlowOutcome; + typedef std::future CreateContactFlowOutcomeCallable; + typedef std::function&)> CreateContactFlowAsyncHandler; typedef Outcome DeleteJobGroupOutcome; typedef std::future DeleteJobGroupOutcomeCallable; typedef std::function&)> DeleteJobGroupAsyncHandler; @@ -431,33 +831,45 @@ namespace AlibabaCloud CCCClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CCCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CCCClient(); + SaveWebRTCStatsOutcome saveWebRTCStats(const Model::SaveWebRTCStatsRequest &request)const; + void saveWebRTCStatsAsync(const Model::SaveWebRTCStatsRequest& request, const SaveWebRTCStatsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveWebRTCStatsOutcomeCallable saveWebRTCStatsCallable(const Model::SaveWebRTCStatsRequest& request) const; + GetContactIdentifyByOutBoundTaskIdOutcome getContactIdentifyByOutBoundTaskId(const Model::GetContactIdentifyByOutBoundTaskIdRequest &request)const; + void getContactIdentifyByOutBoundTaskIdAsync(const Model::GetContactIdentifyByOutBoundTaskIdRequest& request, const GetContactIdentifyByOutBoundTaskIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetContactIdentifyByOutBoundTaskIdOutcomeCallable getContactIdentifyByOutBoundTaskIdCallable(const Model::GetContactIdentifyByOutBoundTaskIdRequest& request) const; GetJobListOutcome getJobList(const Model::GetJobListRequest &request)const; void getJobListAsync(const Model::GetJobListRequest& request, const GetJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetJobListOutcomeCallable getJobListCallable(const Model::GetJobListRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + ListCallEventDetailByContactIdOutcome listCallEventDetailByContactId(const Model::ListCallEventDetailByContactIdRequest &request)const; + void listCallEventDetailByContactIdAsync(const Model::ListCallEventDetailByContactIdRequest& request, const ListCallEventDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCallEventDetailByContactIdOutcomeCallable listCallEventDetailByContactIdCallable(const Model::ListCallEventDetailByContactIdRequest& request) const; ListSkillGroupsOfUserOutcome listSkillGroupsOfUser(const Model::ListSkillGroupsOfUserRequest &request)const; void listSkillGroupsOfUserAsync(const Model::ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSkillGroupsOfUserOutcomeCallable listSkillGroupsOfUserCallable(const Model::ListSkillGroupsOfUserRequest& request) const; TwoPartiesCallOutcome twoPartiesCall(const Model::TwoPartiesCallRequest &request)const; void twoPartiesCallAsync(const Model::TwoPartiesCallRequest& request, const TwoPartiesCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TwoPartiesCallOutcomeCallable twoPartiesCallCallable(const Model::TwoPartiesCallRequest& request) const; - DeleteSurveyOutcome deleteSurvey(const Model::DeleteSurveyRequest &request)const; - void deleteSurveyAsync(const Model::DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSurveyOutcomeCallable deleteSurveyCallable(const Model::DeleteSurveyRequest& request) const; + ListSkillGroupSummaryReportsSinceMidnightOutcome listSkillGroupSummaryReportsSinceMidnight(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest &request)const; + void listSkillGroupSummaryReportsSinceMidnightAsync(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest& request, const ListSkillGroupSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable listSkillGroupSummaryReportsSinceMidnightCallable(const Model::ListSkillGroupSummaryReportsSinceMidnightRequest& request) const; ListPhoneNumbersOutcome listPhoneNumbers(const Model::ListPhoneNumbersRequest &request)const; void listPhoneNumbersAsync(const Model::ListPhoneNumbersRequest& request, const ListPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPhoneNumbersOutcomeCallable listPhoneNumbersCallable(const Model::ListPhoneNumbersRequest& request) const; + ListMediasOutcome listMedias(const Model::ListMediasRequest &request)const; + void listMediasAsync(const Model::ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMediasOutcomeCallable listMediasCallable(const Model::ListMediasRequest& request) const; DownloadUnreachableContactsOutcome downloadUnreachableContacts(const Model::DownloadUnreachableContactsRequest &request)const; void downloadUnreachableContactsAsync(const Model::DownloadUnreachableContactsRequest& request, const DownloadUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DownloadUnreachableContactsOutcomeCallable downloadUnreachableContactsCallable(const Model::DownloadUnreachableContactsRequest& request) const; DialogueOutcome dialogue(const Model::DialogueRequest &request)const; void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const; - RefreshTokenOutcome refreshToken(const Model::RefreshTokenRequest &request)const; - void refreshTokenAsync(const Model::RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RefreshTokenOutcomeCallable refreshTokenCallable(const Model::RefreshTokenRequest& request) const; + SimpleDialOutcome simpleDial(const Model::SimpleDialRequest &request)const; + void simpleDialAsync(const Model::SimpleDialRequest& request, const SimpleDialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SimpleDialOutcomeCallable simpleDialCallable(const Model::SimpleDialRequest& request) const; CreateBatchJobsOutcome createBatchJobs(const Model::CreateBatchJobsRequest &request)const; void createBatchJobsAsync(const Model::CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBatchJobsOutcomeCallable createBatchJobsCallable(const Model::CreateBatchJobsRequest& request) const; @@ -467,24 +879,18 @@ namespace AlibabaCloud GetJobTemplateDownloadParamsOutcome getJobTemplateDownloadParams(const Model::GetJobTemplateDownloadParamsRequest &request)const; void getJobTemplateDownloadParamsAsync(const Model::GetJobTemplateDownloadParamsRequest& request, const GetJobTemplateDownloadParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetJobTemplateDownloadParamsOutcomeCallable getJobTemplateDownloadParamsCallable(const Model::GetJobTemplateDownloadParamsRequest& request) const; - RemoveUsersOutcome removeUsers(const Model::RemoveUsersRequest &request)const; - void removeUsersAsync(const Model::RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveUsersOutcomeCallable removeUsersCallable(const Model::RemoveUsersRequest& request) const; + DownloadAllTypeRecordingOutcome downloadAllTypeRecording(const Model::DownloadAllTypeRecordingRequest &request)const; + void downloadAllTypeRecordingAsync(const Model::DownloadAllTypeRecordingRequest& request, const DownloadAllTypeRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadAllTypeRecordingOutcomeCallable downloadAllTypeRecordingCallable(const Model::DownloadAllTypeRecordingRequest& request) const; CancelPredictiveJobsOutcome cancelPredictiveJobs(const Model::CancelPredictiveJobsRequest &request)const; void cancelPredictiveJobsAsync(const Model::CancelPredictiveJobsRequest& request, const CancelPredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelPredictiveJobsOutcomeCallable cancelPredictiveJobsCallable(const Model::CancelPredictiveJobsRequest& request) const; - StartBack2BackCallOutcome startBack2BackCall(const Model::StartBack2BackCallRequest &request)const; - void startBack2BackCallAsync(const Model::StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartBack2BackCallOutcomeCallable startBack2BackCallCallable(const Model::StartBack2BackCallRequest& request) const; - PublishSurveyOutcome publishSurvey(const Model::PublishSurveyRequest &request)const; - void publishSurveyAsync(const Model::PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PublishSurveyOutcomeCallable publishSurveyCallable(const Model::PublishSurveyRequest& request) const; - GetUserOutcome getUser(const Model::GetUserRequest &request)const; - void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; - GetConversationListOutcome getConversationList(const Model::GetConversationListRequest &request)const; - void getConversationListAsync(const Model::GetConversationListRequest& request, const GetConversationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConversationListOutcomeCallable getConversationListCallable(const Model::GetConversationListRequest& request) const; + AddAgentDeviceOutcome addAgentDevice(const Model::AddAgentDeviceRequest &request)const; + void addAgentDeviceAsync(const Model::AddAgentDeviceRequest& request, const AddAgentDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAgentDeviceOutcomeCallable addAgentDeviceCallable(const Model::AddAgentDeviceRequest& request) const; + ListPrivacyNumberCallDetailsOutcome listPrivacyNumberCallDetails(const Model::ListPrivacyNumberCallDetailsRequest &request)const; + void listPrivacyNumberCallDetailsAsync(const Model::ListPrivacyNumberCallDetailsRequest& request, const ListPrivacyNumberCallDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPrivacyNumberCallDetailsOutcomeCallable listPrivacyNumberCallDetailsCallable(const Model::ListPrivacyNumberCallDetailsRequest& request) const; ListUsersOfSkillGroupOutcome listUsersOfSkillGroup(const Model::ListUsersOfSkillGroupRequest &request)const; void listUsersOfSkillGroupAsync(const Model::ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOfSkillGroupOutcomeCallable listUsersOfSkillGroupCallable(const Model::ListUsersOfSkillGroupRequest& request) const; @@ -497,18 +903,21 @@ namespace AlibabaCloud ListJobGroupsOutcome listJobGroups(const Model::ListJobGroupsRequest &request)const; void listJobGroupsAsync(const Model::ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobGroupsOutcomeCallable listJobGroupsCallable(const Model::ListJobGroupsRequest& request) const; - ListCallDetailRecordsOutcome listCallDetailRecords(const Model::ListCallDetailRecordsRequest &request)const; - void listCallDetailRecordsAsync(const Model::ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCallDetailRecordsOutcomeCallable listCallDetailRecordsCallable(const Model::ListCallDetailRecordsRequest& request) const; AddPhoneNumberOutcome addPhoneNumber(const Model::AddPhoneNumberRequest &request)const; void addPhoneNumberAsync(const Model::AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddPhoneNumberOutcomeCallable addPhoneNumberCallable(const Model::AddPhoneNumberRequest& request) const; - ListRecordingsOutcome listRecordings(const Model::ListRecordingsRequest &request)const; - void listRecordingsAsync(const Model::ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRecordingsOutcomeCallable listRecordingsCallable(const Model::ListRecordingsRequest& request) const; + FindUsersOutcome findUsers(const Model::FindUsersRequest &request)const; + void findUsersAsync(const Model::FindUsersRequest& request, const FindUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindUsersOutcomeCallable findUsersCallable(const Model::FindUsersRequest& request) const; + DownloadCabRecordingOutcome downloadCabRecording(const Model::DownloadCabRecordingRequest &request)const; + void downloadCabRecordingAsync(const Model::DownloadCabRecordingRequest& request, const DownloadCabRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadCabRecordingOutcomeCallable downloadCabRecordingCallable(const Model::DownloadCabRecordingRequest& request) const; EncryptOutcome encrypt(const Model::EncryptRequest &request)const; void encryptAsync(const Model::EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EncryptOutcomeCallable encryptCallable(const Model::EncryptRequest& request) const; + PredictiveRecordFailureOutcome predictiveRecordFailure(const Model::PredictiveRecordFailureRequest &request)const; + void predictiveRecordFailureAsync(const Model::PredictiveRecordFailureRequest& request, const PredictiveRecordFailureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PredictiveRecordFailureOutcomeCallable predictiveRecordFailureCallable(const Model::PredictiveRecordFailureRequest& request) const; SubmitBatchJobsOutcome submitBatchJobs(const Model::SubmitBatchJobsRequest &request)const; void submitBatchJobsAsync(const Model::SubmitBatchJobsRequest& request, const SubmitBatchJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitBatchJobsOutcomeCallable submitBatchJobsCallable(const Model::SubmitBatchJobsRequest& request) const; @@ -518,105 +927,339 @@ namespace AlibabaCloud GetJobDataUploadParamsOutcome getJobDataUploadParams(const Model::GetJobDataUploadParamsRequest &request)const; void getJobDataUploadParamsAsync(const Model::GetJobDataUploadParamsRequest& request, const GetJobDataUploadParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetJobDataUploadParamsOutcomeCallable getJobDataUploadParamsCallable(const Model::GetJobDataUploadParamsRequest& request) const; - ListBasicStatisticsReportSubItemsOutcome listBasicStatisticsReportSubItems(const Model::ListBasicStatisticsReportSubItemsRequest &request)const; - void listBasicStatisticsReportSubItemsAsync(const Model::ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListBasicStatisticsReportSubItemsOutcomeCallable listBasicStatisticsReportSubItemsCallable(const Model::ListBasicStatisticsReportSubItemsRequest& request) const; - SuspendJobsOutcome suspendJobs(const Model::SuspendJobsRequest &request)const; - void suspendJobsAsync(const Model::SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SuspendJobsOutcomeCallable suspendJobsCallable(const Model::SuspendJobsRequest& request) const; - GetJobGroupOutcome getJobGroup(const Model::GetJobGroupRequest &request)const; - void getJobGroupAsync(const Model::GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetJobGroupOutcomeCallable getJobGroupCallable(const Model::GetJobGroupRequest& request) const; + CreateCCCPostOrderOutcome createCCCPostOrder(const Model::CreateCCCPostOrderRequest &request)const; + void createCCCPostOrderAsync(const Model::CreateCCCPostOrderRequest& request, const CreateCCCPostOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCCCPostOrderOutcomeCallable createCCCPostOrderCallable(const Model::CreateCCCPostOrderRequest& request) const; + ModifyAgentDeviceOutcome modifyAgentDevice(const Model::ModifyAgentDeviceRequest &request)const; + void modifyAgentDeviceAsync(const Model::ModifyAgentDeviceRequest& request, const ModifyAgentDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAgentDeviceOutcomeCallable modifyAgentDeviceCallable(const Model::ModifyAgentDeviceRequest& request) const; + CreatePredictiveJobGroupOutcome createPredictiveJobGroup(const Model::CreatePredictiveJobGroupRequest &request)const; + void createPredictiveJobGroupAsync(const Model::CreatePredictiveJobGroupRequest& request, const CreatePredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePredictiveJobGroupOutcomeCallable createPredictiveJobGroupCallable(const Model::CreatePredictiveJobGroupRequest& request) const; + GetCallMeasureSummaryReportOutcome getCallMeasureSummaryReport(const Model::GetCallMeasureSummaryReportRequest &request)const; + void getCallMeasureSummaryReportAsync(const Model::GetCallMeasureSummaryReportRequest& request, const GetCallMeasureSummaryReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCallMeasureSummaryReportOutcomeCallable getCallMeasureSummaryReportCallable(const Model::GetCallMeasureSummaryReportRequest& request) const; GetJobStatusByCallIdOutcome getJobStatusByCallId(const Model::GetJobStatusByCallIdRequest &request)const; void getJobStatusByCallIdAsync(const Model::GetJobStatusByCallIdRequest& request, const GetJobStatusByCallIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetJobStatusByCallIdOutcomeCallable getJobStatusByCallIdCallable(const Model::GetJobStatusByCallIdRequest& request) const; - ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const; - void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& request) const; - ModifySkillGroupOutcome modifySkillGroup(const Model::ModifySkillGroupRequest &request)const; - void modifySkillGroupAsync(const Model::ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySkillGroupOutcomeCallable modifySkillGroupCallable(const Model::ModifySkillGroupRequest& request) const; - GetConversationDetailByContactIdOutcome getConversationDetailByContactId(const Model::GetConversationDetailByContactIdRequest &request)const; - void getConversationDetailByContactIdAsync(const Model::GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConversationDetailByContactIdOutcomeCallable getConversationDetailByContactIdCallable(const Model::GetConversationDetailByContactIdRequest& request) const; + RemoveUsersFromSkillGroupOutcome removeUsersFromSkillGroup(const Model::RemoveUsersFromSkillGroupRequest &request)const; + void removeUsersFromSkillGroupAsync(const Model::RemoveUsersFromSkillGroupRequest& request, const RemoveUsersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveUsersFromSkillGroupOutcomeCallable removeUsersFromSkillGroupCallable(const Model::RemoveUsersFromSkillGroupRequest& request) const; + SendPredefinedShortMessageOutcome sendPredefinedShortMessage(const Model::SendPredefinedShortMessageRequest &request)const; + void sendPredefinedShortMessageAsync(const Model::SendPredefinedShortMessageRequest& request, const SendPredefinedShortMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendPredefinedShortMessageOutcomeCallable sendPredefinedShortMessageCallable(const Model::SendPredefinedShortMessageRequest& request) const; + PredictiveRecordSuccessOutcome predictiveRecordSuccess(const Model::PredictiveRecordSuccessRequest &request)const; + void predictiveRecordSuccessAsync(const Model::PredictiveRecordSuccessRequest& request, const PredictiveRecordSuccessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PredictiveRecordSuccessOutcomeCallable predictiveRecordSuccessCallable(const Model::PredictiveRecordSuccessRequest& request) const; + ModifyCabInstanceOutcome modifyCabInstance(const Model::ModifyCabInstanceRequest &request)const; + void modifyCabInstanceAsync(const Model::ModifyCabInstanceRequest& request, const ModifyCabInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCabInstanceOutcomeCallable modifyCabInstanceCallable(const Model::ModifyCabInstanceRequest& request) const; ListRecordingsByContactIdOutcome listRecordingsByContactId(const Model::ListRecordingsByContactIdRequest &request)const; void listRecordingsByContactIdAsync(const Model::ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRecordingsByContactIdOutcomeCallable listRecordingsByContactIdCallable(const Model::ListRecordingsByContactIdRequest& request) const; - LaunchAppraiseOutcome launchAppraise(const Model::LaunchAppraiseRequest &request)const; - void launchAppraiseAsync(const Model::LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - LaunchAppraiseOutcomeCallable launchAppraiseCallable(const Model::LaunchAppraiseRequest& request) const; DeleteSkillGroupOutcome deleteSkillGroup(const Model::DeleteSkillGroupRequest &request)const; void deleteSkillGroupAsync(const Model::DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSkillGroupOutcomeCallable deleteSkillGroupCallable(const Model::DeleteSkillGroupRequest& request) const; - ModifyUserOutcome modifyUser(const Model::ModifyUserRequest &request)const; - void modifyUserAsync(const Model::ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyUserOutcomeCallable modifyUserCallable(const Model::ModifyUserRequest& request) const; - ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const; - void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const; - CreateScenarioOutcome createScenario(const Model::CreateScenarioRequest &request)const; - void createScenarioAsync(const Model::CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateScenarioOutcomeCallable createScenarioCallable(const Model::CreateScenarioRequest& request) const; + GetJobFileUploadUrlOutcome getJobFileUploadUrl(const Model::GetJobFileUploadUrlRequest &request)const; + void getJobFileUploadUrlAsync(const Model::GetJobFileUploadUrlRequest& request, const GetJobFileUploadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobFileUploadUrlOutcomeCallable getJobFileUploadUrlCallable(const Model::GetJobFileUploadUrlRequest& request) const; + CallOnlinePrivacyNumberOutcome callOnlinePrivacyNumber(const Model::CallOnlinePrivacyNumberRequest &request)const; + void callOnlinePrivacyNumberAsync(const Model::CallOnlinePrivacyNumberRequest& request, const CallOnlinePrivacyNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CallOnlinePrivacyNumberOutcomeCallable callOnlinePrivacyNumberCallable(const Model::CallOnlinePrivacyNumberRequest& request) const; + GetRecordOssUploadParamOutcome getRecordOssUploadParam(const Model::GetRecordOssUploadParamRequest &request)const; + void getRecordOssUploadParamAsync(const Model::GetRecordOssUploadParamRequest& request, const GetRecordOssUploadParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRecordOssUploadParamOutcomeCallable getRecordOssUploadParamCallable(const Model::GetRecordOssUploadParamRequest& request) const; + ListRecordingOfDualTrackOutcome listRecordingOfDualTrack(const Model::ListRecordingOfDualTrackRequest &request)const; + void listRecordingOfDualTrackAsync(const Model::ListRecordingOfDualTrackRequest& request, const ListRecordingOfDualTrackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecordingOfDualTrackOutcomeCallable listRecordingOfDualTrackCallable(const Model::ListRecordingOfDualTrackRequest& request) const; + CommitContactFlowVersionModificationOutcome commitContactFlowVersionModification(const Model::CommitContactFlowVersionModificationRequest &request)const; + void commitContactFlowVersionModificationAsync(const Model::CommitContactFlowVersionModificationRequest& request, const CommitContactFlowVersionModificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CommitContactFlowVersionModificationOutcomeCallable commitContactFlowVersionModificationCallable(const Model::CommitContactFlowVersionModificationRequest& request) const; RemovePhoneNumberOutcome removePhoneNumber(const Model::RemovePhoneNumberRequest &request)const; void removePhoneNumberAsync(const Model::RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemovePhoneNumberOutcomeCallable removePhoneNumberCallable(const Model::RemovePhoneNumberRequest& request) const; - PickLocalNumberOutcome pickLocalNumber(const Model::PickLocalNumberRequest &request)const; - void pickLocalNumberAsync(const Model::PickLocalNumberRequest& request, const PickLocalNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PickLocalNumberOutcomeCallable pickLocalNumberCallable(const Model::PickLocalNumberRequest& request) const; GetJobOutcome getJob(const Model::GetJobRequest &request)const; void getJobAsync(const Model::GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetJobOutcomeCallable getJobCallable(const Model::GetJobRequest& request) const; + PickLocalNumberOutcome pickLocalNumber(const Model::PickLocalNumberRequest &request)const; + void pickLocalNumberAsync(const Model::PickLocalNumberRequest& request, const PickLocalNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PickLocalNumberOutcomeCallable pickLocalNumberCallable(const Model::PickLocalNumberRequest& request) const; + ListInstancesOfUserOutcome listInstancesOfUser(const Model::ListInstancesOfUserRequest &request)const; + void listInstancesOfUserAsync(const Model::ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstancesOfUserOutcomeCallable listInstancesOfUserCallable(const Model::ListInstancesOfUserRequest& request) const; StartJobOutcome startJob(const Model::StartJobRequest &request)const; void startJobAsync(const Model::StartJobRequest& request, const StartJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartJobOutcomeCallable startJobCallable(const Model::StartJobRequest& request) const; CancelJobsOutcome cancelJobs(const Model::CancelJobsRequest &request)const; void cancelJobsAsync(const Model::CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelJobsOutcomeCallable cancelJobsCallable(const Model::CancelJobsRequest& request) const; - GetConfigOutcome getConfig(const Model::GetConfigRequest &request)const; - void getConfigAsync(const Model::GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConfigOutcomeCallable getConfigCallable(const Model::GetConfigRequest& request) const; - DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const; - void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const; - GenerateAgentStatisticReportOutcome generateAgentStatisticReport(const Model::GenerateAgentStatisticReportRequest &request)const; - void generateAgentStatisticReportAsync(const Model::GenerateAgentStatisticReportRequest& request, const GenerateAgentStatisticReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateAgentStatisticReportOutcomeCallable generateAgentStatisticReportCallable(const Model::GenerateAgentStatisticReportRequest& request) const; - CreateScenarioFromTemplateOutcome createScenarioFromTemplate(const Model::CreateScenarioFromTemplateRequest &request)const; - void createScenarioFromTemplateAsync(const Model::CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateScenarioFromTemplateOutcomeCallable createScenarioFromTemplateCallable(const Model::CreateScenarioFromTemplateRequest& request) const; CreateJobGroupOutcome createJobGroup(const Model::CreateJobGroupRequest &request)const; void createJobGroupAsync(const Model::CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateJobGroupOutcomeCallable createJobGroupCallable(const Model::CreateJobGroupRequest& request) const; - GetTaskListOutcome getTaskList(const Model::GetTaskListRequest &request)const; - void getTaskListAsync(const Model::GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetTaskListOutcomeCallable getTaskListCallable(const Model::GetTaskListRequest& request) const; DownloadOriginalStatisticsReportOutcome downloadOriginalStatisticsReport(const Model::DownloadOriginalStatisticsReportRequest &request)const; void downloadOriginalStatisticsReportAsync(const Model::DownloadOriginalStatisticsReportRequest& request, const DownloadOriginalStatisticsReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DownloadOriginalStatisticsReportOutcomeCallable downloadOriginalStatisticsReportCallable(const Model::DownloadOriginalStatisticsReportRequest& request) const; - ListScenarioTemplatesOutcome listScenarioTemplates(const Model::ListScenarioTemplatesRequest &request)const; - void listScenarioTemplatesAsync(const Model::ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListScenarioTemplatesOutcomeCallable listScenarioTemplatesCallable(const Model::ListScenarioTemplatesRequest& request) const; - ResumeJobsOutcome resumeJobs(const Model::ResumeJobsRequest &request)const; - void resumeJobsAsync(const Model::ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumeJobsOutcomeCallable resumeJobsCallable(const Model::ResumeJobsRequest& request) const; + ListSkillGroupSummaryReportsOutcome listSkillGroupSummaryReports(const Model::ListSkillGroupSummaryReportsRequest &request)const; + void listSkillGroupSummaryReportsAsync(const Model::ListSkillGroupSummaryReportsRequest& request, const ListSkillGroupSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupSummaryReportsOutcomeCallable listSkillGroupSummaryReportsCallable(const Model::ListSkillGroupSummaryReportsRequest& request) const; AssignUsersOutcome assignUsers(const Model::AssignUsersRequest &request)const; void assignUsersAsync(const Model::AssignUsersRequest& request, const AssignUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssignUsersOutcomeCallable assignUsersCallable(const Model::AssignUsersRequest& request) const; GetSurveyOutcome getSurvey(const Model::GetSurveyRequest &request)const; void getSurveyAsync(const Model::GetSurveyRequest& request, const GetSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSurveyOutcomeCallable getSurveyCallable(const Model::GetSurveyRequest& request) const; + ListRecentCallRecordsOutcome listRecentCallRecords(const Model::ListRecentCallRecordsRequest &request)const; + void listRecentCallRecordsAsync(const Model::ListRecentCallRecordsRequest& request, const ListRecentCallRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecentCallRecordsOutcomeCallable listRecentCallRecordsCallable(const Model::ListRecentCallRecordsRequest& request) const; ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; ListConfigOutcome listConfig(const Model::ListConfigRequest &request)const; void listConfigAsync(const Model::ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConfigOutcomeCallable listConfigCallable(const Model::ListConfigRequest& request) const; - LaunchShortMessageAppraiseOutcome launchShortMessageAppraise(const Model::LaunchShortMessageAppraiseRequest &request)const; - void launchShortMessageAppraiseAsync(const Model::LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - LaunchShortMessageAppraiseOutcomeCallable launchShortMessageAppraiseCallable(const Model::LaunchShortMessageAppraiseRequest& request) const; + ListCallMeasureSummaryReportsOutcome listCallMeasureSummaryReports(const Model::ListCallMeasureSummaryReportsRequest &request)const; + void listCallMeasureSummaryReportsAsync(const Model::ListCallMeasureSummaryReportsRequest& request, const ListCallMeasureSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCallMeasureSummaryReportsOutcomeCallable listCallMeasureSummaryReportsCallable(const Model::ListCallMeasureSummaryReportsRequest& request) const; + DeleteMediaOutcome deleteMedia(const Model::DeleteMediaRequest &request)const; + void deleteMediaAsync(const Model::DeleteMediaRequest& request, const DeleteMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMediaOutcomeCallable deleteMediaCallable(const Model::DeleteMediaRequest& request) const; ModifyPhoneNumberOutcome modifyPhoneNumber(const Model::ModifyPhoneNumberRequest &request)const; void modifyPhoneNumberAsync(const Model::ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyPhoneNumberOutcomeCallable modifyPhoneNumberCallable(const Model::ModifyPhoneNumberRequest& request) const; + CreateUserOutcome createUser(const Model::CreateUserRequest &request)const; + void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const; + ListPrivilegesOfUserOutcome listPrivilegesOfUser(const Model::ListPrivilegesOfUserRequest &request)const; + void listPrivilegesOfUserAsync(const Model::ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPrivilegesOfUserOutcomeCallable listPrivilegesOfUserCallable(const Model::ListPrivilegesOfUserRequest& request) const; + ListSkillGroupStatesOutcome listSkillGroupStates(const Model::ListSkillGroupStatesRequest &request)const; + void listSkillGroupStatesAsync(const Model::ListSkillGroupStatesRequest& request, const ListSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupStatesOutcomeCallable listSkillGroupStatesCallable(const Model::ListSkillGroupStatesRequest& request) const; + CreatePredictiveJobsOutcome createPredictiveJobs(const Model::CreatePredictiveJobsRequest &request)const; + void createPredictiveJobsAsync(const Model::CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePredictiveJobsOutcomeCallable createPredictiveJobsCallable(const Model::CreatePredictiveJobsRequest& request) const; + GetNumberRegionInfoOutcome getNumberRegionInfo(const Model::GetNumberRegionInfoRequest &request)const; + void getNumberRegionInfoAsync(const Model::GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNumberRegionInfoOutcomeCallable getNumberRegionInfoCallable(const Model::GetNumberRegionInfoRequest& request) const; + ModifyMediaOutcome modifyMedia(const Model::ModifyMediaRequest &request)const; + void modifyMediaAsync(const Model::ModifyMediaRequest& request, const ModifyMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyMediaOutcomeCallable modifyMediaCallable(const Model::ModifyMediaRequest& request) const; + PreCreateMediaOutcome preCreateMedia(const Model::PreCreateMediaRequest &request)const; + void preCreateMediaAsync(const Model::PreCreateMediaRequest& request, const PreCreateMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreCreateMediaOutcomeCallable preCreateMediaCallable(const Model::PreCreateMediaRequest& request) const; + ListAgentEventsOutcome listAgentEvents(const Model::ListAgentEventsRequest &request)const; + void listAgentEventsAsync(const Model::ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentEventsOutcomeCallable listAgentEventsCallable(const Model::ListAgentEventsRequest& request) const; + GetAgentDataOutcome getAgentData(const Model::GetAgentDataRequest &request)const; + void getAgentDataAsync(const Model::GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAgentDataOutcomeCallable getAgentDataCallable(const Model::GetAgentDataRequest& request) const; + GetInstanceStateOutcome getInstanceState(const Model::GetInstanceStateRequest &request)const; + void getInstanceStateAsync(const Model::GetInstanceStateRequest& request, const GetInstanceStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceStateOutcomeCallable getInstanceStateCallable(const Model::GetInstanceStateRequest& request) const; + ListJobStatusOutcome listJobStatus(const Model::ListJobStatusRequest &request)const; + void listJobStatusAsync(const Model::ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobStatusOutcomeCallable listJobStatusCallable(const Model::ListJobStatusRequest& request) const; + ModifyScenarioOutcome modifyScenario(const Model::ModifyScenarioRequest &request)const; + void modifyScenarioAsync(const Model::ModifyScenarioRequest& request, const ModifyScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyScenarioOutcomeCallable modifyScenarioCallable(const Model::ModifyScenarioRequest& request) const; + RemoveNumberFromSkillGroupOutcome removeNumberFromSkillGroup(const Model::RemoveNumberFromSkillGroupRequest &request)const; + void removeNumberFromSkillGroupAsync(const Model::RemoveNumberFromSkillGroupRequest& request, const RemoveNumberFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveNumberFromSkillGroupOutcomeCallable removeNumberFromSkillGroupCallable(const Model::RemoveNumberFromSkillGroupRequest& request) const; + GetServiceExtensionsOutcome getServiceExtensions(const Model::GetServiceExtensionsRequest &request)const; + void getServiceExtensionsAsync(const Model::GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceExtensionsOutcomeCallable getServiceExtensionsCallable(const Model::GetServiceExtensionsRequest& request) const; + ListContactFlowsOutcome listContactFlows(const Model::ListContactFlowsRequest &request)const; + void listContactFlowsAsync(const Model::ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListContactFlowsOutcomeCallable listContactFlowsCallable(const Model::ListContactFlowsRequest& request) const; + CreateVoiceAppraiseOutcome createVoiceAppraise(const Model::CreateVoiceAppraiseRequest &request)const; + void createVoiceAppraiseAsync(const Model::CreateVoiceAppraiseRequest& request, const CreateVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVoiceAppraiseOutcomeCallable createVoiceAppraiseCallable(const Model::CreateVoiceAppraiseRequest& request) const; + GetTURNServerListOutcome getTURNServerList(const Model::GetTURNServerListRequest &request)const; + void getTURNServerListAsync(const Model::GetTURNServerListRequest& request, const GetTURNServerListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTURNServerListOutcomeCallable getTURNServerListCallable(const Model::GetTURNServerListRequest& request) const; + DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; + void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; + AddBulkPhoneNumbersOutcome addBulkPhoneNumbers(const Model::AddBulkPhoneNumbersRequest &request)const; + void addBulkPhoneNumbersAsync(const Model::AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBulkPhoneNumbersOutcomeCallable addBulkPhoneNumbersCallable(const Model::AddBulkPhoneNumbersRequest& request) const; + GetSmsConfigOutcome getSmsConfig(const Model::GetSmsConfigRequest &request)const; + void getSmsConfigAsync(const Model::GetSmsConfigRequest& request, const GetSmsConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSmsConfigOutcomeCallable getSmsConfigCallable(const Model::GetSmsConfigRequest& request) const; + DeleteSurveyOutcome deleteSurvey(const Model::DeleteSurveyRequest &request)const; + void deleteSurveyAsync(const Model::DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSurveyOutcomeCallable deleteSurveyCallable(const Model::DeleteSurveyRequest& request) const; + ModifyPrivacyNumberCallDetailOutcome modifyPrivacyNumberCallDetail(const Model::ModifyPrivacyNumberCallDetailRequest &request)const; + void modifyPrivacyNumberCallDetailAsync(const Model::ModifyPrivacyNumberCallDetailRequest& request, const ModifyPrivacyNumberCallDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPrivacyNumberCallDetailOutcomeCallable modifyPrivacyNumberCallDetailCallable(const Model::ModifyPrivacyNumberCallDetailRequest& request) const; + CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; + void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; + GetInstanceSummaryReportByIntervalOutcome getInstanceSummaryReportByInterval(const Model::GetInstanceSummaryReportByIntervalRequest &request)const; + void getInstanceSummaryReportByIntervalAsync(const Model::GetInstanceSummaryReportByIntervalRequest& request, const GetInstanceSummaryReportByIntervalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceSummaryReportByIntervalOutcomeCallable getInstanceSummaryReportByIntervalCallable(const Model::GetInstanceSummaryReportByIntervalRequest& request) const; + ListAgentStatesOutcome listAgentStates(const Model::ListAgentStatesRequest &request)const; + void listAgentStatesAsync(const Model::ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentStatesOutcomeCallable listAgentStatesCallable(const Model::ListAgentStatesRequest& request) const; + RefreshTokenOutcome refreshToken(const Model::RefreshTokenRequest &request)const; + void refreshTokenAsync(const Model::RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshTokenOutcomeCallable refreshTokenCallable(const Model::RefreshTokenRequest& request) const; + SubmitCabRecordingOutcome submitCabRecording(const Model::SubmitCabRecordingRequest &request)const; + void submitCabRecordingAsync(const Model::SubmitCabRecordingRequest& request, const SubmitCabRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitCabRecordingOutcomeCallable submitCabRecordingCallable(const Model::SubmitCabRecordingRequest& request) const; + ListVoiceAppraiseOutcome listVoiceAppraise(const Model::ListVoiceAppraiseRequest &request)const; + void listVoiceAppraiseAsync(const Model::ListVoiceAppraiseRequest& request, const ListVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVoiceAppraiseOutcomeCallable listVoiceAppraiseCallable(const Model::ListVoiceAppraiseRequest& request) const; + RemoveUsersOutcome removeUsers(const Model::RemoveUsersRequest &request)const; + void removeUsersAsync(const Model::RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveUsersOutcomeCallable removeUsersCallable(const Model::RemoveUsersRequest& request) const; + GetPredictiveJobOutcome getPredictiveJob(const Model::GetPredictiveJobRequest &request)const; + void getPredictiveJobAsync(const Model::GetPredictiveJobRequest& request, const GetPredictiveJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPredictiveJobOutcomeCallable getPredictiveJobCallable(const Model::GetPredictiveJobRequest& request) const; + StartBack2BackCallOutcome startBack2BackCall(const Model::StartBack2BackCallRequest &request)const; + void startBack2BackCallAsync(const Model::StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartBack2BackCallOutcomeCallable startBack2BackCallCallable(const Model::StartBack2BackCallRequest& request) const; + DialExOutcome dialEx(const Model::DialExRequest &request)const; + void dialExAsync(const Model::DialExRequest& request, const DialExAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DialExOutcomeCallable dialExCallable(const Model::DialExRequest& request) const; + PublishSurveyOutcome publishSurvey(const Model::PublishSurveyRequest &request)const; + void publishSurveyAsync(const Model::PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishSurveyOutcomeCallable publishSurveyCallable(const Model::PublishSurveyRequest& request) const; + GetInstanceSummaryReportOutcome getInstanceSummaryReport(const Model::GetInstanceSummaryReportRequest &request)const; + void getInstanceSummaryReportAsync(const Model::GetInstanceSummaryReportRequest& request, const GetInstanceSummaryReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceSummaryReportOutcomeCallable getInstanceSummaryReportCallable(const Model::GetInstanceSummaryReportRequest& request) const; + ModifySkillGroupOutboundNumbersOutcome modifySkillGroupOutboundNumbers(const Model::ModifySkillGroupOutboundNumbersRequest &request)const; + void modifySkillGroupOutboundNumbersAsync(const Model::ModifySkillGroupOutboundNumbersRequest& request, const ModifySkillGroupOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySkillGroupOutboundNumbersOutcomeCallable modifySkillGroupOutboundNumbersCallable(const Model::ModifySkillGroupOutboundNumbersRequest& request) const; + GetUserOutcome getUser(const Model::GetUserRequest &request)const; + void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + GetConversationListOutcome getConversationList(const Model::GetConversationListRequest &request)const; + void getConversationListAsync(const Model::GetConversationListRequest& request, const GetConversationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConversationListOutcomeCallable getConversationListCallable(const Model::GetConversationListRequest& request) const; + GetInstanceSummaryReportSinceMidnightOutcome getInstanceSummaryReportSinceMidnight(const Model::GetInstanceSummaryReportSinceMidnightRequest &request)const; + void getInstanceSummaryReportSinceMidnightAsync(const Model::GetInstanceSummaryReportSinceMidnightRequest& request, const GetInstanceSummaryReportSinceMidnightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceSummaryReportSinceMidnightOutcomeCallable getInstanceSummaryReportSinceMidnightCallable(const Model::GetInstanceSummaryReportSinceMidnightRequest& request) const; + ListCallDetailRecordsOutcome listCallDetailRecords(const Model::ListCallDetailRecordsRequest &request)const; + void listCallDetailRecordsAsync(const Model::ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCallDetailRecordsOutcomeCallable listCallDetailRecordsCallable(const Model::ListCallDetailRecordsRequest& request) const; + ListIvrTrackingDetailOutcome listIvrTrackingDetail(const Model::ListIvrTrackingDetailRequest &request)const; + void listIvrTrackingDetailAsync(const Model::ListIvrTrackingDetailRequest& request, const ListIvrTrackingDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIvrTrackingDetailOutcomeCallable listIvrTrackingDetailCallable(const Model::ListIvrTrackingDetailRequest& request) const; + ListRecordingsOutcome listRecordings(const Model::ListRecordingsRequest &request)const; + void listRecordingsAsync(const Model::ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRecordingsOutcomeCallable listRecordingsCallable(const Model::ListRecordingsRequest& request) const; + ModifyNotificationConfigOutcome modifyNotificationConfig(const Model::ModifyNotificationConfigRequest &request)const; + void modifyNotificationConfigAsync(const Model::ModifyNotificationConfigRequest& request, const ModifyNotificationConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNotificationConfigOutcomeCallable modifyNotificationConfigCallable(const Model::ModifyNotificationConfigRequest& request) const; + GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const; + void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const; + ListAgentSummaryReportsOutcome listAgentSummaryReports(const Model::ListAgentSummaryReportsRequest &request)const; + void listAgentSummaryReportsAsync(const Model::ListAgentSummaryReportsRequest& request, const ListAgentSummaryReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentSummaryReportsOutcomeCallable listAgentSummaryReportsCallable(const Model::ListAgentSummaryReportsRequest& request) const; + ListBasicStatisticsReportSubItemsOutcome listBasicStatisticsReportSubItems(const Model::ListBasicStatisticsReportSubItemsRequest &request)const; + void listBasicStatisticsReportSubItemsAsync(const Model::ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBasicStatisticsReportSubItemsOutcomeCallable listBasicStatisticsReportSubItemsCallable(const Model::ListBasicStatisticsReportSubItemsRequest& request) const; + GetJobGroupOutcome getJobGroup(const Model::GetJobGroupRequest &request)const; + void getJobGroupAsync(const Model::GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobGroupOutcomeCallable getJobGroupCallable(const Model::GetJobGroupRequest& request) const; + SuspendJobsOutcome suspendJobs(const Model::SuspendJobsRequest &request)const; + void suspendJobsAsync(const Model::SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SuspendJobsOutcomeCallable suspendJobsCallable(const Model::SuspendJobsRequest& request) const; + GetTURNCredentialsOutcome getTURNCredentials(const Model::GetTURNCredentialsRequest &request)const; + void getTURNCredentialsAsync(const Model::GetTURNCredentialsRequest& request, const GetTURNCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTURNCredentialsOutcomeCallable getTURNCredentialsCallable(const Model::GetTURNCredentialsRequest& request) const; + ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const; + void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& request) const; + AddNumberToSkillGroupOutcome addNumberToSkillGroup(const Model::AddNumberToSkillGroupRequest &request)const; + void addNumberToSkillGroupAsync(const Model::AddNumberToSkillGroupRequest& request, const AddNumberToSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddNumberToSkillGroupOutcomeCallable addNumberToSkillGroupCallable(const Model::AddNumberToSkillGroupRequest& request) const; + ModifySkillGroupOutcome modifySkillGroup(const Model::ModifySkillGroupRequest &request)const; + void modifySkillGroupAsync(const Model::ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySkillGroupOutcomeCallable modifySkillGroupCallable(const Model::ModifySkillGroupRequest& request) const; + GetConversationDetailByContactIdOutcome getConversationDetailByContactId(const Model::GetConversationDetailByContactIdRequest &request)const; + void getConversationDetailByContactIdAsync(const Model::GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConversationDetailByContactIdOutcomeCallable getConversationDetailByContactIdCallable(const Model::GetConversationDetailByContactIdRequest& request) const; + GetJobsProgressOutcome getJobsProgress(const Model::GetJobsProgressRequest &request)const; + void getJobsProgressAsync(const Model::GetJobsProgressRequest& request, const GetJobsProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobsProgressOutcomeCallable getJobsProgressCallable(const Model::GetJobsProgressRequest& request) const; + SaveStatsOutcome saveStats(const Model::SaveStatsRequest &request)const; + void saveStatsAsync(const Model::SaveStatsRequest& request, const SaveStatsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveStatsOutcomeCallable saveStatsCallable(const Model::SaveStatsRequest& request) const; + LaunchAppraiseOutcome launchAppraise(const Model::LaunchAppraiseRequest &request)const; + void launchAppraiseAsync(const Model::LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchAppraiseOutcomeCallable launchAppraiseCallable(const Model::LaunchAppraiseRequest& request) const; + ModifyUserOutcome modifyUser(const Model::ModifyUserRequest &request)const; + void modifyUserAsync(const Model::ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUserOutcomeCallable modifyUserCallable(const Model::ModifyUserRequest& request) const; + CreateScenarioOutcome createScenario(const Model::CreateScenarioRequest &request)const; + void createScenarioAsync(const Model::CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScenarioOutcomeCallable createScenarioCallable(const Model::CreateScenarioRequest& request) const; + ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const; + void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const; + ModifySkillGroupOfUserOutcome modifySkillGroupOfUser(const Model::ModifySkillGroupOfUserRequest &request)const; + void modifySkillGroupOfUserAsync(const Model::ModifySkillGroupOfUserRequest& request, const ModifySkillGroupOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySkillGroupOfUserOutcomeCallable modifySkillGroupOfUserCallable(const Model::ModifySkillGroupOfUserRequest& request) const; + DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const; + void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const; + GetConfigOutcome getConfig(const Model::GetConfigRequest &request)const; + void getConfigAsync(const Model::GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigOutcomeCallable getConfigCallable(const Model::GetConfigRequest& request) const; + CreateMediaOutcome createMedia(const Model::CreateMediaRequest &request)const; + void createMediaAsync(const Model::CreateMediaRequest& request, const CreateMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMediaOutcomeCallable createMediaCallable(const Model::CreateMediaRequest& request) const; + GenerateAgentStatisticReportOutcome generateAgentStatisticReport(const Model::GenerateAgentStatisticReportRequest &request)const; + void generateAgentStatisticReportAsync(const Model::GenerateAgentStatisticReportRequest& request, const GenerateAgentStatisticReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateAgentStatisticReportOutcomeCallable generateAgentStatisticReportCallable(const Model::GenerateAgentStatisticReportRequest& request) const; + ListAgentSummaryReportsSinceMidnightOutcome listAgentSummaryReportsSinceMidnight(const Model::ListAgentSummaryReportsSinceMidnightRequest &request)const; + void listAgentSummaryReportsSinceMidnightAsync(const Model::ListAgentSummaryReportsSinceMidnightRequest& request, const ListAgentSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentSummaryReportsSinceMidnightOutcomeCallable listAgentSummaryReportsSinceMidnightCallable(const Model::ListAgentSummaryReportsSinceMidnightRequest& request) const; + ListPredictiveJobGroupsOutcome listPredictiveJobGroups(const Model::ListPredictiveJobGroupsRequest &request)const; + void listPredictiveJobGroupsAsync(const Model::ListPredictiveJobGroupsRequest& request, const ListPredictiveJobGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPredictiveJobGroupsOutcomeCallable listPredictiveJobGroupsCallable(const Model::ListPredictiveJobGroupsRequest& request) const; + CreateScenarioFromTemplateOutcome createScenarioFromTemplate(const Model::CreateScenarioFromTemplateRequest &request)const; + void createScenarioFromTemplateAsync(const Model::CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScenarioFromTemplateOutcomeCallable createScenarioFromTemplateCallable(const Model::CreateScenarioFromTemplateRequest& request) const; + PublishContactFlowVersionOutcome publishContactFlowVersion(const Model::PublishContactFlowVersionRequest &request)const; + void publishContactFlowVersionAsync(const Model::PublishContactFlowVersionRequest& request, const PublishContactFlowVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishContactFlowVersionOutcomeCallable publishContactFlowVersionCallable(const Model::PublishContactFlowVersionRequest& request) const; + GetTaskListOutcome getTaskList(const Model::GetTaskListRequest &request)const; + void getTaskListAsync(const Model::GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskListOutcomeCallable getTaskListCallable(const Model::GetTaskListRequest& request) const; + QueryRedialIndicatorOutcome queryRedialIndicator(const Model::QueryRedialIndicatorRequest &request)const; + void queryRedialIndicatorAsync(const Model::QueryRedialIndicatorRequest& request, const QueryRedialIndicatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRedialIndicatorOutcomeCallable queryRedialIndicatorCallable(const Model::QueryRedialIndicatorRequest& request) const; + ListScenarioTemplatesOutcome listScenarioTemplates(const Model::ListScenarioTemplatesRequest &request)const; + void listScenarioTemplatesAsync(const Model::ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScenarioTemplatesOutcomeCallable listScenarioTemplatesCallable(const Model::ListScenarioTemplatesRequest& request) const; + PickOutboundNumbersByTagsOutcome pickOutboundNumbersByTags(const Model::PickOutboundNumbersByTagsRequest &request)const; + void pickOutboundNumbersByTagsAsync(const Model::PickOutboundNumbersByTagsRequest& request, const PickOutboundNumbersByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PickOutboundNumbersByTagsOutcomeCallable pickOutboundNumbersByTagsCallable(const Model::PickOutboundNumbersByTagsRequest& request) const; + GetAgentStateOutcome getAgentState(const Model::GetAgentStateRequest &request)const; + void getAgentStateAsync(const Model::GetAgentStateRequest& request, const GetAgentStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAgentStateOutcomeCallable getAgentStateCallable(const Model::GetAgentStateRequest& request) const; + ListSkillGroupSummaryReportsByIntervalOutcome listSkillGroupSummaryReportsByInterval(const Model::ListSkillGroupSummaryReportsByIntervalRequest &request)const; + void listSkillGroupSummaryReportsByIntervalAsync(const Model::ListSkillGroupSummaryReportsByIntervalRequest& request, const ListSkillGroupSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupSummaryReportsByIntervalOutcomeCallable listSkillGroupSummaryReportsByIntervalCallable(const Model::ListSkillGroupSummaryReportsByIntervalRequest& request) const; + ResumeJobsOutcome resumeJobs(const Model::ResumeJobsRequest &request)const; + void resumeJobsAsync(const Model::ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeJobsOutcomeCallable resumeJobsCallable(const Model::ResumeJobsRequest& request) const; + ListAgentSummaryReportsByIntervalOutcome listAgentSummaryReportsByInterval(const Model::ListAgentSummaryReportsByIntervalRequest &request)const; + void listAgentSummaryReportsByIntervalAsync(const Model::ListAgentSummaryReportsByIntervalRequest& request, const ListAgentSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentSummaryReportsByIntervalOutcomeCallable listAgentSummaryReportsByIntervalCallable(const Model::ListAgentSummaryReportsByIntervalRequest& request) const; + PreModifyMediaOutcome preModifyMedia(const Model::PreModifyMediaRequest &request)const; + void preModifyMediaAsync(const Model::PreModifyMediaRequest& request, const PreModifyMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreModifyMediaOutcomeCallable preModifyMediaCallable(const Model::PreModifyMediaRequest& request) const; + LaunchShortMessageAppraiseOutcome launchShortMessageAppraise(const Model::LaunchShortMessageAppraiseRequest &request)const; + void launchShortMessageAppraiseAsync(const Model::LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchShortMessageAppraiseOutcomeCallable launchShortMessageAppraiseCallable(const Model::LaunchShortMessageAppraiseRequest& request) const; + GetContactInfoByOutboundTaskIdOutcome getContactInfoByOutboundTaskId(const Model::GetContactInfoByOutboundTaskIdRequest &request)const; + void getContactInfoByOutboundTaskIdAsync(const Model::GetContactInfoByOutboundTaskIdRequest& request, const GetContactInfoByOutboundTaskIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetContactInfoByOutboundTaskIdOutcomeCallable getContactInfoByOutboundTaskIdCallable(const Model::GetContactInfoByOutboundTaskIdRequest& request) const; ListScenariosOutcome listScenarios(const Model::ListScenariosRequest &request)const; void listScenariosAsync(const Model::ListScenariosRequest& request, const ListScenariosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListScenariosOutcomeCallable listScenariosCallable(const Model::ListScenariosRequest& request) const; @@ -626,45 +1269,42 @@ namespace AlibabaCloud AssignJobsOutcome assignJobs(const Model::AssignJobsRequest &request)const; void assignJobsAsync(const Model::AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssignJobsOutcomeCallable assignJobsCallable(const Model::AssignJobsRequest& request) const; - CreateUserOutcome createUser(const Model::CreateUserRequest &request)const; - void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const; - ListPrivilegesOfUserOutcome listPrivilegesOfUser(const Model::ListPrivilegesOfUserRequest &request)const; - void listPrivilegesOfUserAsync(const Model::ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPrivilegesOfUserOutcomeCallable listPrivilegesOfUserCallable(const Model::ListPrivilegesOfUserRequest& request) const; - GetNumberRegionInfoOutcome getNumberRegionInfo(const Model::GetNumberRegionInfoRequest &request)const; - void getNumberRegionInfoAsync(const Model::GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNumberRegionInfoOutcomeCallable getNumberRegionInfoCallable(const Model::GetNumberRegionInfoRequest& request) const; GetScenarioOutcome getScenario(const Model::GetScenarioRequest &request)const; void getScenarioAsync(const Model::GetScenarioRequest& request, const GetScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetScenarioOutcomeCallable getScenarioCallable(const Model::GetScenarioRequest& request) const; - CreatePredictiveJobsOutcome createPredictiveJobs(const Model::CreatePredictiveJobsRequest &request)const; - void createPredictiveJobsAsync(const Model::CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreatePredictiveJobsOutcomeCallable createPredictiveJobsCallable(const Model::CreatePredictiveJobsRequest& request) const; - GetAgentDataOutcome getAgentData(const Model::GetAgentDataRequest &request)const; - void getAgentDataAsync(const Model::GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAgentDataOutcomeCallable getAgentDataCallable(const Model::GetAgentDataRequest& request) const; + ListOutboundPhoneNumberOfUserOutcome listOutboundPhoneNumberOfUser(const Model::ListOutboundPhoneNumberOfUserRequest &request)const; + void listOutboundPhoneNumberOfUserAsync(const Model::ListOutboundPhoneNumberOfUserRequest& request, const ListOutboundPhoneNumberOfUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOutboundPhoneNumberOfUserOutcomeCallable listOutboundPhoneNumberOfUserCallable(const Model::ListOutboundPhoneNumberOfUserRequest& request) const; + PickGlobalOutboundNumbersOutcome pickGlobalOutboundNumbers(const Model::PickGlobalOutboundNumbersRequest &request)const; + void pickGlobalOutboundNumbersAsync(const Model::PickGlobalOutboundNumbersRequest& request, const PickGlobalOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PickGlobalOutboundNumbersOutcomeCallable pickGlobalOutboundNumbersCallable(const Model::PickGlobalOutboundNumbersRequest& request) const; + ListAgentDevicesOutcome listAgentDevices(const Model::ListAgentDevicesRequest &request)const; + void listAgentDevicesAsync(const Model::ListAgentDevicesRequest& request, const ListAgentDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentDevicesOutcomeCallable listAgentDevicesCallable(const Model::ListAgentDevicesRequest& request) const; + CreateFaultOutcome createFault(const Model::CreateFaultRequest &request)const; + void createFaultAsync(const Model::CreateFaultRequest& request, const CreateFaultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFaultOutcomeCallable createFaultCallable(const Model::CreateFaultRequest& request) const; CreateSurveyOutcome createSurvey(const Model::CreateSurveyRequest &request)const; void createSurveyAsync(const Model::CreateSurveyRequest& request, const CreateSurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSurveyOutcomeCallable createSurveyCallable(const Model::CreateSurveyRequest& request) const; - ListJobStatusOutcome listJobStatus(const Model::ListJobStatusRequest &request)const; - void listJobStatusAsync(const Model::ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobStatusOutcomeCallable listJobStatusCallable(const Model::ListJobStatusRequest& request) const; + CreateCabInstanceOutcome createCabInstance(const Model::CreateCabInstanceRequest &request)const; + void createCabInstanceAsync(const Model::CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCabInstanceOutcomeCallable createCabInstanceCallable(const Model::CreateCabInstanceRequest& request) const; ModifySurveyOutcome modifySurvey(const Model::ModifySurveyRequest &request)const; void modifySurveyAsync(const Model::ModifySurveyRequest& request, const ModifySurveyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySurveyOutcomeCallable modifySurveyCallable(const Model::ModifySurveyRequest& request) const; - ModifyScenarioOutcome modifyScenario(const Model::ModifyScenarioRequest &request)const; - void modifyScenarioAsync(const Model::ModifyScenarioRequest& request, const ModifyScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyScenarioOutcomeCallable modifyScenarioCallable(const Model::ModifyScenarioRequest& request) const; + PublishPredictiveJobGroupOutcome publishPredictiveJobGroup(const Model::PublishPredictiveJobGroupRequest &request)const; + void publishPredictiveJobGroupAsync(const Model::PublishPredictiveJobGroupRequest& request, const PublishPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishPredictiveJobGroupOutcomeCallable publishPredictiveJobGroupCallable(const Model::PublishPredictiveJobGroupRequest& request) const; CreateSkillGroupOutcome createSkillGroup(const Model::CreateSkillGroupRequest &request)const; void createSkillGroupAsync(const Model::CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSkillGroupOutcomeCallable createSkillGroupCallable(const Model::CreateSkillGroupRequest& request) const; - GetServiceExtensionsOutcome getServiceExtensions(const Model::GetServiceExtensionsRequest &request)const; - void getServiceExtensionsAsync(const Model::GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetServiceExtensionsOutcomeCallable getServiceExtensionsCallable(const Model::GetServiceExtensionsRequest& request) const; - ListContactFlowsOutcome listContactFlows(const Model::ListContactFlowsRequest &request)const; - void listContactFlowsAsync(const Model::ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListContactFlowsOutcomeCallable listContactFlowsCallable(const Model::ListContactFlowsRequest& request) const; + PickOutboundNumbersOutcome pickOutboundNumbers(const Model::PickOutboundNumbersRequest &request)const; + void pickOutboundNumbersAsync(const Model::PickOutboundNumbersRequest& request, const PickOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PickOutboundNumbersOutcomeCallable pickOutboundNumbersCallable(const Model::PickOutboundNumbersRequest& request) const; + CreateContactFlowOutcome createContactFlow(const Model::CreateContactFlowRequest &request)const; + void createContactFlowAsync(const Model::CreateContactFlowRequest& request, const CreateContactFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateContactFlowOutcomeCallable createContactFlowCallable(const Model::CreateContactFlowRequest& request) const; DeleteJobGroupOutcome deleteJobGroup(const Model::DeleteJobGroupRequest &request)const; void deleteJobGroupAsync(const Model::DeleteJobGroupRequest& request, const DeleteJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteJobGroupOutcomeCallable deleteJobGroupCallable(const Model::DeleteJobGroupRequest& request) const; diff --git a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.h new file mode 100644 index 000000000..369acb0db --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceRequest.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_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddAgentDeviceRequest : public RpcServiceRequest + { + + public: + AddAgentDeviceRequest(); + ~AddAgentDeviceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientIp()const; + void setClientIp(const std::string& clientIp); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getClientPort()const; + void setClientPort(const std::string& clientPort); + std::string getBrowserVersion()const; + void setBrowserVersion(const std::string& browserVersion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string clientIp_; + std::string remark_; + std::string clientPort_; + std::string browserVersion_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.h new file mode 100644 index 000000000..168433117 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddAgentDeviceResult.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_CCC_MODEL_ADDAGENTDEVICERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddAgentDeviceResult : public ServiceResult + { + public: + + + AddAgentDeviceResult(); + explicit AddAgentDeviceResult(const std::string &payload); + ~AddAgentDeviceResult(); + std::string getMessage()const; + long getAgentDeviceId()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long agentDeviceId_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDAGENTDEVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.h new file mode 100644 index 000000000..66cc8a02a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersRequest.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_CCC_MODEL_ADDBULKPHONENUMBERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddBulkPhoneNumbersRequest : public RpcServiceRequest + { + + public: + AddBulkPhoneNumbersRequest(); + ~AddBulkPhoneNumbersRequest(); + + std::string getContactFlowId()const; + void setContactFlowId(const std::string& contactFlowId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUsage()const; + void setUsage(const std::string& usage); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + std::vector getPhoneNumber()const; + void setPhoneNumber(const std::vector& phoneNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string contactFlowId_; + std::string instanceId_; + std::string usage_; + std::vector skillGroupId_; + std::vector phoneNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.h new file mode 100644 index 000000000..535ed8c99 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddBulkPhoneNumbersResult.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_CCC_MODEL_ADDBULKPHONENUMBERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddBulkPhoneNumbersResult : public ServiceResult + { + public: + struct PhoneNumber + { + struct ContactFlow + { + std::string type; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; + struct SkillGroup + { + std::string skillGroupName; + std::string skillGroupId; + }; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + std::vector skillGroups; + int trunks; + std::string phoneNumberId; + ContactFlow contactFlow; + std::string phoneNumberDescription; + }; + + + AddBulkPhoneNumbersResult(); + explicit AddBulkPhoneNumbersResult(const std::string &payload); + ~AddBulkPhoneNumbersResult(); + std::vector getArrearagePhoneNumbers()const; + std::vector getPhoneNumbers()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getFailedPhoneNumbers()const; + std::vector getUserdPhoneNumbers()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector arrearagePhoneNumbers_; + std::vector phoneNumbers_; + std::string message_; + int httpStatusCode_; + std::vector failedPhoneNumbers_; + std::vector userdPhoneNumbers_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDBULKPHONENUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupRequest.h new file mode 100644 index 000000000..163026acd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupRequest.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_CCC_MODEL_ADDNUMBERTOSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERTOSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddNumberToSkillGroupRequest : public RpcServiceRequest + { + + public: + AddNumberToSkillGroupRequest(); + ~AddNumberToSkillGroupRequest(); + + std::string getNumber()const; + void setNumber(const std::string& number); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string number_; + std::string instanceId_; + std::string skillGroupId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERTOSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupResult.h new file mode 100644 index 000000000..dba5aeb51 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/AddNumberToSkillGroupResult.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_CCC_MODEL_ADDNUMBERTOSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERTOSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT AddNumberToSkillGroupResult : public ServiceResult + { + public: + + + AddNumberToSkillGroupResult(); + explicit AddNumberToSkillGroupResult(const std::string &payload); + ~AddNumberToSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERTOSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.h new file mode 100644 index 000000000..a072a6509 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberRequest.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_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CallOnlinePrivacyNumberRequest : public RpcServiceRequest + { + + public: + CallOnlinePrivacyNumberRequest(); + ~CallOnlinePrivacyNumberRequest(); + + std::string getTelA()const; + void setTelA(const std::string& telA); + std::string getTelB()const; + void setTelB(const std::string& telB); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string telA_; + std::string telB_; + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.h new file mode 100644 index 000000000..fcfd4a2eb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CallOnlinePrivacyNumberResult.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_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CallOnlinePrivacyNumberResult : public ServiceResult + { + public: + struct Data + { + std::string represent; + std::string callId; + std::string dateCreated; + std::string telX; + std::string statusCode; + }; + + + CallOnlinePrivacyNumberResult(); + explicit CallOnlinePrivacyNumberResult(const std::string &payload); + ~CallOnlinePrivacyNumberResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CALLONLINEPRIVACYNUMBERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.h new file mode 100644 index 000000000..d6f7a0502 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationRequest.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_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CommitContactFlowVersionModificationRequest : public RpcServiceRequest + { + + public: + CommitContactFlowVersionModificationRequest(); + ~CommitContactFlowVersionModificationRequest(); + + std::string getCanvas()const; + void setCanvas(const std::string& canvas); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactFlowVersionId()const; + void setContactFlowVersionId(const std::string& contactFlowVersionId); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string canvas_; + std::string instanceId_; + std::string contactFlowVersionId_; + std::string content_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.h new file mode 100644 index 000000000..c8cf51e32 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CommitContactFlowVersionModificationResult.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_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CommitContactFlowVersionModificationResult : public ServiceResult + { + public: + struct ContactFlowVersion + { + std::string lastModified; + std::string status; + std::string lastModifiedBy; + std::string lockedBy; + std::string contactFlowVersionId; + std::string version; + std::string content; + std::string canvas; + std::string contactFlowVersionDescription; + }; + + + CommitContactFlowVersionModificationResult(); + explicit CommitContactFlowVersionModificationResult(const std::string &payload); + ~CommitContactFlowVersionModificationResult(); + std::string getMessage()const; + ContactFlowVersion getContactFlowVersion()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + ContactFlowVersion contactFlowVersion_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_COMMITCONTACTFLOWVERSIONMODIFICATIONRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderRequest.h b/ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderRequest.h new file mode 100644 index 000000000..5c1829cd9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderRequest.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_CCC_MODEL_CREATECCCPOSTORDERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECCCPOSTORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateCCCPostOrderRequest : public RpcServiceRequest + { + + public: + CreateCCCPostOrderRequest(); + ~CreateCCCPostOrderRequest(); + + std::string getOwnerId()const; + void setOwnerId(const std::string& ownerId); + + private: + std::string ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECCCPOSTORDERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderResult.h b/ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderResult.h new file mode 100644 index 000000000..2b93890b6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateCCCPostOrderResult.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_CCC_MODEL_CREATECCCPOSTORDERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECCCPOSTORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateCCCPostOrderResult : public ServiceResult + { + public: + + + CreateCCCPostOrderResult(); + explicit CreateCCCPostOrderResult(const std::string &payload); + ~CreateCCCPostOrderResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getOrderId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string orderId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECCCPOSTORDERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.h new file mode 100644 index 000000000..56f2542a3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceRequest.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_CCC_MODEL_CREATECABINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateCabInstanceRequest : public RpcServiceRequest + { + + public: + CreateCabInstanceRequest(); + ~CreateCabInstanceRequest(); + + int getMaxConcurrentConversation()const; + void setMaxConcurrentConversation(int maxConcurrentConversation); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getCallCenterInstanceId()const; + void setCallCenterInstanceId(const std::string& callCenterInstanceId); + std::string getInstanceDescription()const; + void setInstanceDescription(const std::string& instanceDescription); + + private: + int maxConcurrentConversation_; + std::string instanceName_; + std::string callCenterInstanceId_; + std::string instanceDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.h new file mode 100644 index 000000000..31f8ac821 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateCabInstanceResult.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_CCC_MODEL_CREATECABINSTANCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateCabInstanceResult : public ServiceResult + { + public: + struct Instance + { + std::string instanceName; + std::string owner; + int maxConcurrentConversation; + std::string instanceId; + long creationTime; + std::string instanceDescription; + std::string callCenterInstanceId; + }; + + + CreateCabInstanceResult(); + explicit CreateCabInstanceResult(const std::string &payload); + ~CreateCabInstanceResult(); + std::string getMessage()const; + Instance getInstance()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Instance instance_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECABINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h b/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.h new file mode 100644 index 000000000..a57ded0df --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateContactFlowRequest.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_CCC_MODEL_CREATECONTACTFLOWREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateContactFlowRequest : public RpcServiceRequest + { + + public: + CreateContactFlowRequest(); + ~CreateContactFlowRequest(); + + std::string getCanvas()const; + void setCanvas(const std::string& canvas); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string canvas_; + std::string instanceId_; + std::string name_; + std::string description_; + std::string type_; + std::string content_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h b/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h new file mode 100644 index 000000000..d64f06ac8 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateContactFlowResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateContactFlowResult : public ServiceResult + { + public: + struct ContactFlow + { + struct ContactFlowVersion + { + std::string lastModified; + std::string status; + std::string lastModifiedBy; + std::string lockedBy; + std::string contactFlowVersionId; + std::string version; + std::string content; + std::string canvas; + std::string contactFlowVersionDescription; + }; + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::vector phoneNumbers; + std::string type; + std::string appliedVersion; + std::vector versions; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; + + + CreateContactFlowResult(); + explicit CreateContactFlowResult(const std::string &payload); + ~CreateContactFlowResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + ContactFlow getContactFlow()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + ContactFlow contactFlow_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATECONTACTFLOWRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h b/ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h new file mode 100644 index 000000000..56c7f4c79 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateFaultRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEFAULTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEFAULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateFaultRequest : public RpcServiceRequest + { + + public: + CreateFaultRequest(); + ~CreateFaultRequest(); + + std::string getSpeakerList()const; + void setSpeakerList(const std::string& speakerList); + long getAgentId()const; + void setAgentId(long agentId); + std::string getAgentOssFileName()const; + void setAgentOssFileName(const std::string& agentOssFileName); + std::string getDescription()const; + void setDescription(const std::string& description); + long getEndTime()const; + void setEndTime(long endTime); + std::string getOperatingSystemVersion()const; + void setOperatingSystemVersion(const std::string& operatingSystemVersion); + long getStartTime()const; + void setStartTime(long startTime); + std::string getMicrophoneList()const; + void setMicrophoneList(const std::string& microphoneList); + std::string getSpeakerEquipment()const; + void setSpeakerEquipment(const std::string& speakerEquipment); + std::string getServicePort()const; + void setServicePort(const std::string& servicePort); + std::string getClientPort()const; + void setClientPort(const std::string& clientPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getServiceIp()const; + void setServiceIp(const std::string& serviceIp); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCustomFilePath()const; + void setCustomFilePath(const std::string& customFilePath); + std::string getClientIp()const; + void setClientIp(const std::string& clientIp); + std::string getAgentFilePath()const; + void setAgentFilePath(const std::string& agentFilePath); + std::string getConnectId()const; + void setConnectId(const std::string& connectId); + std::string getCustomOssFileName()const; + void setCustomOssFileName(const std::string& customOssFileName); + std::string getMicrophoneEquipment()const; + void setMicrophoneEquipment(const std::string& microphoneEquipment); + std::string getBrowserVersion()const; + void setBrowserVersion(const std::string& browserVersion); + + private: + std::string speakerList_; + long agentId_; + std::string agentOssFileName_; + std::string description_; + long endTime_; + std::string operatingSystemVersion_; + long startTime_; + std::string microphoneList_; + std::string speakerEquipment_; + std::string servicePort_; + std::string clientPort_; + std::string accessKeyId_; + std::string serviceIp_; + std::string instanceId_; + std::string customFilePath_; + std::string clientIp_; + std::string agentFilePath_; + std::string connectId_; + std::string customOssFileName_; + std::string microphoneEquipment_; + std::string browserVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEFAULTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h b/ccc/include/alibabacloud/ccc/model/CreateFaultResult.h new file mode 100644 index 000000000..abd530465 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateFaultResult.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_CCC_MODEL_CREATEFAULTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateFaultResult : public ServiceResult + { + public: + + + CreateFaultResult(); + explicit CreateFaultResult(const std::string &payload); + ~CreateFaultResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEFAULTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.h new file mode 100644 index 000000000..33d94d3a4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateInstanceRequest.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_CCC_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateInstanceRequest : public RpcServiceRequest + { + + public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + + std::vector getPhoneNumbers()const; + void setPhoneNumbers(const std::vector& phoneNumbers); + std::vector getUserObject()const; + void setUserObject(const std::vector& userObject); + std::string getName()const; + void setName(const std::string& name); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + std::string getDescription()const; + void setDescription(const std::string& description); + int getStorageMaxDays()const; + void setStorageMaxDays(int storageMaxDays); + int getStorageMaxSize()const; + void setStorageMaxSize(int storageMaxSize); + std::string getDirectoryId()const; + void setDirectoryId(const std::string& directoryId); + std::vector getAdminRamId()const; + void setAdminRamId(const std::vector& adminRamId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector phoneNumbers_; + std::vector userObject_; + std::string name_; + std::string domainName_; + std::string phoneNumber_; + std::string description_; + int storageMaxDays_; + int storageMaxSize_; + std::string directoryId_; + std::vector adminRamId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h b/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h new file mode 100644 index 000000000..9753a5dd1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateInstanceResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateInstanceResult : public ServiceResult + { + public: + struct Instance + { + struct User + { + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + std::string instanceId; + std::string userId; + std::string ramId; + Detail detail; + }; + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::string status; + std::vector phoneNumbers; + std::string owner; + long createdTime; + std::vector successLoginNames; + std::string instanceId; + std::string domainName; + std::string consoleUrl; + int storageMaxSize; + std::vector admin; + std::vector failLoginNames; + std::vector successPhoneNumbers; + std::string instanceName; + int maxOnlineAgents; + std::string tenantId; + std::string directoryId; + std::string storageBucket; + std::vector failPhoneNumbers; + std::string instanceDescription; + int storageMaxDays; + }; + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); + std::string getMessage()const; + Instance getInstance()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Instance instance_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h b/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.h new file mode 100644 index 000000000..d4fc687e0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateMediaRequest.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_CCC_MODEL_CREATEMEDIAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEMEDIAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateMediaRequest : public RpcServiceRequest + { + + public: + CreateMediaRequest(); + ~CreateMediaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getOssFilePath()const; + void setOssFilePath(const std::string& ossFilePath); + std::string getUploadResult()const; + void setUploadResult(const std::string& uploadResult); + std::string getType()const; + void setType(const std::string& type); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getOssFileName()const; + void setOssFileName(const std::string& ossFileName); + + private: + std::string instanceId_; + std::string fileName_; + std::string name_; + std::string description_; + std::string ossFilePath_; + std::string uploadResult_; + std::string type_; + std::string content_; + std::string accessKeyId_; + std::string ossFileName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateMediaResult.h b/ccc/include/alibabacloud/ccc/model/CreateMediaResult.h new file mode 100644 index 000000000..fa75ef2a6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateMediaResult.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_CCC_MODEL_CREATEMEDIARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateMediaResult : public ServiceResult + { + public: + struct MediaUploadParam + { + std::string instance; + std::string fileName; + std::string ossFileName; + std::string id; + std::string name; + std::string ossFilePath; + }; + + + CreateMediaResult(); + explicit CreateMediaResult(const std::string &payload); + ~CreateMediaResult(); + MediaUploadParam getMediaUploadParam()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + MediaUploadParam mediaUploadParam_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEMEDIARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.h new file mode 100644 index 000000000..f945406a7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupRequest.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_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobGroupRequest : public RpcServiceRequest + { + + public: + CreatePredictiveJobGroupRequest(); + ~CreatePredictiveJobGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getIsDraft()const; + void setIsDraft(bool isDraft); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + bool getTimingSchedule()const; + void setTimingSchedule(bool timingSchedule); + std::vector getJobsJson()const; + void setJobsJson(const std::vector& jobsJson); + std::string getJobFilePath()const; + void setJobFilePath(const std::string& jobFilePath); + + private: + std::string instanceId_; + bool isDraft_; + std::string skillGroupId_; + std::string strategyJson_; + std::string name_; + std::string description_; + bool timingSchedule_; + std::vector jobsJson_; + std::string jobFilePath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.h new file mode 100644 index 000000000..fe820fb96 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreatePredictiveJobGroupResult.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_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreatePredictiveJobGroupResult : public ServiceResult + { + public: + + + CreatePredictiveJobGroupResult(); + explicit CreatePredictiveJobGroupResult(const std::string &payload); + ~CreatePredictiveJobGroupResult(); + std::string getJobGroupId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobGroupId_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h index 0902b0dd6..843a224eb 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h @@ -39,12 +39,16 @@ namespace AlibabaCloud void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + bool getAllowPrivateOutboundNumber()const; + void setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber); std::vector getOutboundPhoneNumberId()const; void setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId); std::string getName()const; void setName(const std::string& name); std::string getDescription()const; void setDescription(const std::string& description); + std::string getRoutingStrategy()const; + void setRoutingStrategy(const std::string& routingStrategy); std::vector getUserId()const; void setUserId(const std::vector& userId); std::string getAccessKeyId()const; @@ -53,9 +57,11 @@ namespace AlibabaCloud private: std::vector skillLevel_; std::string instanceId_; + bool allowPrivateOutboundNumber_; std::vector outboundPhoneNumberId_; std::string name_; std::string description_; + std::string routingStrategy_; std::vector userId_; std::string accessKeyId_; diff --git a/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h b/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h index 3244e2977..1d21161fe 100644 --- a/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/CreateUserRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud CreateUserRequest(); ~CreateUserRequest(); + std::string getPrivateOutboundNumberId()const; + void setPrivateOutboundNumberId(const std::string& privateOutboundNumberId); std::vector getSkillLevel()const; void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); private: + std::string privateOutboundNumberId_; std::vector skillLevel_; std::string instanceId_; std::string loginName_; diff --git a/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.h new file mode 100644 index 000000000..dfd14b073 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseRequest.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_CCC_MODEL_CREATEVOICEAPPRAISEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateVoiceAppraiseRequest : public RpcServiceRequest + { + + public: + CreateVoiceAppraiseRequest(); + ~CreateVoiceAppraiseRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactFlowVersionId()const; + void setContactFlowVersionId(const std::string& contactFlowVersionId); + bool getIsAppraise()const; + void setIsAppraise(bool isAppraise); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string contactFlowVersionId_; + bool isAppraise_; + std::string content_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.h new file mode 100644 index 000000000..2e6f5cd33 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/CreateVoiceAppraiseResult.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_CCC_MODEL_CREATEVOICEAPPRAISERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT CreateVoiceAppraiseResult : public ServiceResult + { + public: + + + CreateVoiceAppraiseResult(); + explicit CreateVoiceAppraiseResult(const std::string &payload); + ~CreateVoiceAppraiseResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_CREATEVOICEAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.h new file mode 100644 index 000000000..9250c2927 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteInstanceRequest.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_CCC_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteInstanceRequest : public RpcServiceRequest + { + + public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h b/ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.h new file mode 100644 index 000000000..b6944364c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteInstanceResult.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_CCC_MODEL_DELETEINSTANCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteInstanceResult : public ServiceResult + { + public: + + + DeleteInstanceResult(); + explicit DeleteInstanceResult(const std::string &payload); + ~DeleteInstanceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h b/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.h new file mode 100644 index 000000000..21d1ab2f2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteMediaRequest.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_CCC_MODEL_DELETEMEDIAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteMediaRequest : public RpcServiceRequest + { + + public: + DeleteMediaRequest(); + ~DeleteMediaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string name_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h b/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.h new file mode 100644 index 000000000..3ffe6f252 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DeleteMediaResult.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_CCC_MODEL_DELETEMEDIARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DELETEMEDIARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DeleteMediaResult : public ServiceResult + { + public: + + + DeleteMediaResult(); + explicit DeleteMediaResult(const std::string &payload); + ~DeleteMediaResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DELETEMEDIARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DialExRequest.h b/ccc/include/alibabacloud/ccc/model/DialExRequest.h new file mode 100644 index 000000000..54d4eced1 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DialExRequest.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_CCC_MODEL_DIALEXREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DIALEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DialExRequest : public RpcServiceRequest + { + + public: + DialExRequest(); + ~DialExRequest(); + + std::string getRoutPoint()const; + void setRoutPoint(const std::string& routPoint); + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getProvider()const; + void setProvider(const std::string& provider); + std::string getCallee()const; + void setCallee(const std::string& callee); + int getAnswerMode()const; + void setAnswerMode(int answerMode); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string routPoint_; + std::string caller_; + std::string instanceId_; + std::string provider_; + std::string callee_; + int answerMode_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DIALEXREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DialExResult.h b/ccc/include/alibabacloud/ccc/model/DialExResult.h new file mode 100644 index 000000000..4690e2fbf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DialExResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_DIALEXRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DIALEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DialExResult : public ServiceResult + { + public: + + + DialExResult(); + explicit DialExResult(const std::string &payload); + ~DialExResult(); + std::string getStatusDesc()const; + std::string getTaskId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::string getStatusCode()const; + bool getSuccess()const; + std::string getTimeStamp()const; + + protected: + void parse(const std::string &payload); + private: + std::string statusDesc_; + std::string taskId_; + std::string message_; + int httpStatusCode_; + std::string code_; + std::string statusCode_; + bool success_; + std::string timeStamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DIALEXRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DialogueRequest.h b/ccc/include/alibabacloud/ccc/model/DialogueRequest.h index 4a513a44a..e3a4de3bd 100644 --- a/ccc/include/alibabacloud/ccc/model/DialogueRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DialogueRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setInstanceId(const std::string& instanceId); std::string getCalledNumber()const; void setCalledNumber(const std::string& calledNumber); + long getInstanceOwnerId()const; + void setInstanceOwnerId(long instanceOwnerId); std::string getActionKey()const; void setActionKey(const std::string& actionKey); std::string getActionParams()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud std::string callingNumber_; std::string instanceId_; std::string calledNumber_; + long instanceOwnerId_; std::string actionKey_; std::string actionParams_; std::string callType_; diff --git a/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.h new file mode 100644 index 000000000..31c0aee08 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingRequest.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_CCC_MODEL_DOWNLOADALLTYPERECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadAllTypeRecordingRequest : public RpcServiceRequest + { + + public: + DownloadAllTypeRecordingRequest(); + ~DownloadAllTypeRecordingRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactId()const; + void setContactId(const std::string& contactId); + std::string getChannel()const; + void setChannel(const std::string& channel); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string contactId_; + std::string channel_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.h new file mode 100644 index 000000000..5614fa161 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadAllTypeRecordingResult.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_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadAllTypeRecordingResult : public ServiceResult + { + public: + struct MediaDownloadParam + { + std::string fileName; + std::string signatureUrl; + }; + + + DownloadAllTypeRecordingResult(); + explicit DownloadAllTypeRecordingResult(const std::string &payload); + ~DownloadAllTypeRecordingResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getMediaDownloadParamList()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector mediaDownloadParamList_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADALLTYPERECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.h new file mode 100644 index 000000000..d069040fa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingRequest.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_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadCabRecordingRequest : public RpcServiceRequest + { + + public: + DownloadCabRecordingRequest(); + ~DownloadCabRecordingRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string instanceId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.h new file mode 100644 index 000000000..18f194088 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/DownloadCabRecordingResult.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_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT DownloadCabRecordingResult : public ServiceResult + { + public: + struct MediaDownloadParam + { + std::string fileName; + std::string signatureUrl; + }; + + + DownloadCabRecordingResult(); + explicit DownloadCabRecordingResult(const std::string &payload); + ~DownloadCabRecordingResult(); + MediaDownloadParam getMediaDownloadParam()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + MediaDownloadParam mediaDownloadParam_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADCABRECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/FindUsersRequest.h b/ccc/include/alibabacloud/ccc/model/FindUsersRequest.h new file mode 100644 index 000000000..1d0a661f0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/FindUsersRequest.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_CCC_MODEL_FINDUSERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT FindUsersRequest : public RpcServiceRequest + { + + public: + FindUsersRequest(); + ~FindUsersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCriteria()const; + void setCriteria(const std::string& criteria); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string criteria_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_FINDUSERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/FindUsersResult.h b/ccc/include/alibabacloud/ccc/model/FindUsersResult.h new file mode 100644 index 000000000..8627d2e18 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/FindUsersResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_FINDUSERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_FINDUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT FindUsersResult : public ServiceResult + { + public: + struct Users + { + struct User + { + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + struct Role + { + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; + }; + struct SkillLevel + { + struct Skill + { + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + std::string skillGroupDescription; + }; + Skill skill; + std::string skillLevelId; + int level; + }; + std::vector skillLevels; + std::string privateOutboundNumberId; + std::string instanceId; + std::string userId; + std::string ramId; + std::vector roles; + Detail detail; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + FindUsersResult(); + explicit FindUsersResult(const std::string &payload); + ~FindUsersResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Users getUsers()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Users users_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_FINDUSERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetAgentStateRequest.h b/ccc/include/alibabacloud/ccc/model/GetAgentStateRequest.h new file mode 100644 index 000000000..f241df14f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAgentStateRequest.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_CCC_MODEL_GETAGENTSTATEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAGENTSTATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetAgentStateRequest : public RpcServiceRequest + { + + public: + GetAgentStateRequest(); + ~GetAgentStateRequest(); + + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getDn()const; + void setDn(const std::string& dn); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string agentId_; + std::string instanceId_; + std::string dn_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTSTATEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetAgentStateResult.h b/ccc/include/alibabacloud/ccc/model/GetAgentStateResult.h new file mode 100644 index 000000000..55d20a913 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetAgentStateResult.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_CCC_MODEL_GETAGENTSTATERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETAGENTSTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetAgentStateResult : public ServiceResult + { + public: + struct Data + { + std::string loginName; + std::string stateDuration; + std::string instanceId; + std::string state; + std::string dn; + std::string agentId; + std::string agentName; + }; + + + GetAgentStateResult(); + explicit GetAgentStateResult(const std::string &payload); + ~GetAgentStateResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTSTATERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.h new file mode 100644 index 000000000..9e4202878 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportRequest.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_CCC_MODEL_GETCALLMEASURESUMMARYREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetCallMeasureSummaryReportRequest : public RpcServiceRequest + { + + public: + GetCallMeasureSummaryReportRequest(); + ~GetCallMeasureSummaryReportRequest(); + + std::string getIntervalType()const; + void setIntervalType(const std::string& intervalType); + int getMonth()const; + void setMonth(int month); + int getYear()const; + void setYear(int year); + int getPageSize()const; + void setPageSize(int pageSize); + int getDay()const; + void setDay(int day); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string intervalType_; + int month_; + int year_; + int pageSize_; + int day_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.h new file mode 100644 index 000000000..117b84bda --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetCallMeasureSummaryReportResult.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_CCC_MODEL_GETCALLMEASURESUMMARYREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetCallMeasureSummaryReportResult : public ServiceResult + { + public: + struct SummaryReport + { + long inboundCount; + int month; + long inboundDurationByMinute; + long outboundDurationByMinute; + int year; + long outboundCount; + int day; + }; + struct NumberReports + { + struct NumberReport + { + long inboundCount; + int month; + long inboundDurationByMinute; + long outboundDurationByMinute; + std::string number; + int year; + long outboundCount; + int day; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetCallMeasureSummaryReportResult(); + explicit GetCallMeasureSummaryReportResult(const std::string &payload); + ~GetCallMeasureSummaryReportResult(); + NumberReports getNumberReports()const; + SummaryReport getSummaryReport()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + NumberReports numberReports_; + SummaryReport summaryReport_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCALLMEASURESUMMARYREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdRequest.h new file mode 100644 index 000000000..a8ce84643 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdRequest.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_CCC_MODEL_GETCONTACTIDENTIFYBYOUTBOUNDTASKIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONTACTIDENTIFYBYOUTBOUNDTASKIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetContactIdentifyByOutBoundTaskIdRequest : public RpcServiceRequest + { + + public: + GetContactIdentifyByOutBoundTaskIdRequest(); + ~GetContactIdentifyByOutBoundTaskIdRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getOutboundTaskId()const; + void setOutboundTaskId(const std::string& outboundTaskId); + + private: + std::string instanceId_; + std::string outboundTaskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTIDENTIFYBYOUTBOUNDTASKIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdResult.h b/ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdResult.h new file mode 100644 index 000000000..4b60e01af --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactIdentifyByOutBoundTaskIdResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONTACTIDENTIFYBYOUTBOUNDTASKIDRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONTACTIDENTIFYBYOUTBOUNDTASKIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetContactIdentifyByOutBoundTaskIdResult : public ServiceResult + { + public: + struct ContactIdentity + { + std::string jobGroupId; + std::string userPhone; + std::string contactReferrnceId; + }; + + + GetContactIdentifyByOutBoundTaskIdResult(); + explicit GetContactIdentifyByOutBoundTaskIdResult(const std::string &payload); + ~GetContactIdentifyByOutBoundTaskIdResult(); + std::string getMessage()const; + ContactIdentity getContactIdentity()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + ContactIdentity contactIdentity_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTIDENTIFYBYOUTBOUNDTASKIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.h new file mode 100644 index 000000000..86238bdd4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdRequest.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_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetContactInfoByOutboundTaskIdRequest : public RpcServiceRequest + { + + public: + GetContactInfoByOutboundTaskIdRequest(); + ~GetContactInfoByOutboundTaskIdRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getOutboundTaskId()const; + void setOutboundTaskId(const std::string& outboundTaskId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + + private: + std::string instanceId_; + std::string outboundTaskId_; + std::string skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h new file mode 100644 index 000000000..49f901766 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetContactInfoByOutboundTaskIdResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetContactInfoByOutboundTaskIdResult : public ServiceResult + { + public: + struct ContactIdentity + { + std::string jobGroupId; + std::string userPhone; + std::string contactReferrnceId; + }; + + + GetContactInfoByOutboundTaskIdResult(); + explicit GetContactInfoByOutboundTaskIdResult(const std::string &payload); + ~GetContactInfoByOutboundTaskIdResult(); + std::string getMessage()const; + ContactIdentity getContactIdentity()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + ContactIdentity contactIdentity_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETCONTACTINFOBYOUTBOUNDTASKIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.h new file mode 100644 index 000000000..efdd097eb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceRequest.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_CCC_MODEL_GETINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceRequest : public RpcServiceRequest + { + + public: + GetInstanceRequest(); + ~GetInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.h new file mode 100644 index 000000000..7ff018413 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceResult.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_CCC_MODEL_GETINSTANCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceResult : public ServiceResult + { + public: + struct Instance + { + struct User + { + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + std::string instanceId; + std::string userId; + std::string ramId; + Detail detail; + }; + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::string status; + std::vector phoneNumbers; + std::string owner; + long createdTime; + std::string instanceId; + std::string domainName; + std::string consoleUrl; + int storageMaxSize; + std::vector admin; + std::string instanceName; + int maxOnlineAgents; + std::string tenantId; + std::string directoryId; + std::string storageBucket; + std::string instanceDescription; + int storageMaxDays; + }; + + + GetInstanceResult(); + explicit GetInstanceResult(const std::string &payload); + ~GetInstanceResult(); + std::string getMessage()const; + Instance getInstance()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Instance instance_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.h new file mode 100644 index 000000000..4872f1979 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceStateRequest.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_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceStateRequest : public RpcServiceRequest + { + + public: + GetInstanceStateRequest(); + ~GetInstanceStateRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.h new file mode 100644 index 000000000..834e745fd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceStateResult.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_CCC_MODEL_GETINSTANCESTATERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceStateResult : public ServiceResult + { + public: + struct RealTimeInstanceState + { + struct AgentStateCount + { + std::string state; + long count; + }; + std::vector agentStateDistributions; + }; + + + GetInstanceStateResult(); + explicit GetInstanceStateResult(const std::string &payload); + ~GetInstanceStateResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + RealTimeInstanceState getRealTimeInstanceState()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + RealTimeInstanceState realTimeInstanceState_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESTATERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.h new file mode 100644 index 000000000..d4abc50e5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalRequest.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_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportByIntervalRequest : public RpcServiceRequest + { + + public: + GetInstanceSummaryReportByIntervalRequest(); + ~GetInstanceSummaryReportByIntervalRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + int pageSize_; + std::string endTime_; + std::string interval_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h new file mode 100644 index 000000000..85350fe39 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportByIntervalResult.h @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportByIntervalResult : public ServiceResult + { + public: + struct InstanceTimeIntervalReport + { + struct InstanceSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + long callsAbandonedInQueue; + float serviceLevel20; + long totalWorkTime; + long callsIncomingLine; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsIncomingQueue; + long callsIncomingIVR; + long callsHandled; + long totalRingTime; + long satisfactionSurveysResponded; + float handleRate; + long averageRingTime; + long totalTalkTime; + std::string maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long callsAbandonedInIVR; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string instanceId; + Inbound inbound; + std::string timestamp; + }; + std::string instanceId; + std::vector intervalList; + }; + + + GetInstanceSummaryReportByIntervalResult(); + explicit GetInstanceSummaryReportByIntervalResult(const std::string &payload); + ~GetInstanceSummaryReportByIntervalResult(); + InstanceTimeIntervalReport getInstanceTimeIntervalReport()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + InstanceTimeIntervalReport instanceTimeIntervalReport_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTBYINTERVALRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.h new file mode 100644 index 000000000..4d201f097 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportRequest.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_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportRequest : public RpcServiceRequest + { + + public: + GetInstanceSummaryReportRequest(); + ~GetInstanceSummaryReportRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + int pageSize_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h new file mode 100644 index 000000000..44ed890b4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportResult.h @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportResult : public ServiceResult + { + public: + struct InstanceSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + long callsAbandonedInQueue; + float serviceLevel20; + long totalWorkTime; + long callsIncomingLine; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsIncomingQueue; + long callsIncomingIVR; + long callsHandled; + long totalRingTime; + long satisfactionSurveysResponded; + float handleRate; + long averageRingTime; + long totalTalkTime; + std::string maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long callsAbandonedInIVR; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string instanceId; + Inbound inbound; + }; + + + GetInstanceSummaryReportResult(); + explicit GetInstanceSummaryReportResult(const std::string &payload); + ~GetInstanceSummaryReportResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + InstanceSummaryReport getInstanceSummaryReport()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + InstanceSummaryReport instanceSummaryReport_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.h new file mode 100644 index 000000000..1b243c95c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightRequest.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_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportSinceMidnightRequest : public RpcServiceRequest + { + + public: + GetInstanceSummaryReportSinceMidnightRequest(); + ~GetInstanceSummaryReportSinceMidnightRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h new file mode 100644 index 000000000..09b7b3817 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetInstanceSummaryReportSinceMidnightResult.h @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetInstanceSummaryReportSinceMidnightResult : public ServiceResult + { + public: + struct InstanceSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + long callsAbandonedInQueue; + float serviceLevel20; + long totalWorkTime; + long callsIncomingLine; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsIncomingQueue; + long callsIncomingIVR; + long callsHandled; + long totalRingTime; + long satisfactionSurveysResponded; + float handleRate; + long averageRingTime; + long totalTalkTime; + std::string maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + long callsAbandonedInIVR; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string instanceId; + Inbound inbound; + std::string timestamp; + }; + + + GetInstanceSummaryReportSinceMidnightResult(); + explicit GetInstanceSummaryReportSinceMidnightResult(const std::string &payload); + ~GetInstanceSummaryReportSinceMidnightResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + InstanceSummaryReport getInstanceSummaryReport()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + InstanceSummaryReport instanceSummaryReport_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETINSTANCESUMMARYREPORTSINCEMIDNIGHTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.h new file mode 100644 index 000000000..b7c5720e2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlRequest.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_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlRequest : public RpcServiceRequest + { + + public: + GetJobFileUploadUrlRequest(); + ~GetJobFileUploadUrlRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + + private: + std::string instanceId_; + std::string fileName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h new file mode 100644 index 000000000..0619be30c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobFileUploadUrlResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobFileUploadUrlResult : public ServiceResult + { + public: + + + GetJobFileUploadUrlResult(); + explicit GetJobFileUploadUrlResult(const std::string &payload); + ~GetJobFileUploadUrlResult(); + std::string getFilePath()const; + std::string getUploadUrl()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string filePath_; + std::string uploadUrl_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBFILEUPLOADURLRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h index 6cae598bd..67377840c 100644 --- a/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h +++ b/ccc/include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h @@ -85,6 +85,7 @@ namespace AlibabaCloud std::string calledNumber; std::string taskId; std::string scenarioId; + long endTime; long actualTime; std::string callId; std::vector conversation; diff --git a/ccc/include/alibabacloud/ccc/model/GetJobsProgressRequest.h b/ccc/include/alibabacloud/ccc/model/GetJobsProgressRequest.h new file mode 100644 index 000000000..749b20eb6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobsProgressRequest.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_CCC_MODEL_GETJOBSPROGRESSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBSPROGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobsProgressRequest : public RpcServiceRequest + { + + public: + GetJobsProgressRequest(); + ~GetJobsProgressRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string skillGroupId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBSPROGRESSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetJobsProgressResult.h b/ccc/include/alibabacloud/ccc/model/GetJobsProgressResult.h new file mode 100644 index 000000000..1a7f13163 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetJobsProgressResult.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_CCC_MODEL_GETJOBSPROGRESSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETJOBSPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetJobsProgressResult : public ServiceResult + { + public: + struct JobsProgress + { + std::string status; + int failed; + long startTime; + int executing; + int duration; + int scheduling; + int cancelled; + int totalCompleted; + int totalNotAnswered; + int repeatCall; + int totalJobs; + int paused; + }; + + + GetJobsProgressResult(); + explicit GetJobsProgressResult(const std::string &payload); + ~GetJobsProgressResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + JobsProgress getJobsProgress()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + JobsProgress jobsProgress_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBSPROGRESSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetPredictiveJobRequest.h b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobRequest.h new file mode 100644 index 000000000..e46dc1fe2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobRequest.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_CCC_MODEL_GETPREDICTIVEJOBREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetPredictiveJobRequest : public RpcServiceRequest + { + + public: + GetPredictiveJobRequest(); + ~GetPredictiveJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string jobId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetPredictiveJobResult.h b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobResult.h new file mode 100644 index 000000000..6184dfb9d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetPredictiveJobResult.h @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetPredictiveJobResult : public ServiceResult + { + public: + struct Job + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + struct Task + { + struct Contact1 + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + std::string contactId; + std::string contactName; + std::string jobId; + }; + std::string status; + std::string chatbotId; + long planedTime; + std::string calledNumber; + std::string taskId; + std::string scenarioId; + long actualTime; + std::string callId; + int duration; + std::string brief; + std::string callingNumber; + Contact1 contact1; + std::string jobId; + }; + std::string status; + std::string jobGroupId; + std::vector tasks; + std::string scenarioId; + std::vector contacts; + std::string referenceId; + int priority; + int systemPriority; + std::string failureReason; + std::string strategyId; + std::string jobId; + std::vector callingNumbers; + }; + + + GetPredictiveJobResult(); + explicit GetPredictiveJobResult(const std::string &payload); + ~GetPredictiveJobResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Job getJob()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Job job_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETPREDICTIVEJOBRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.h new file mode 100644 index 000000000..f08328815 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamRequest.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_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetRecordOssUploadParamRequest : public RpcServiceRequest + { + + public: + GetRecordOssUploadParamRequest(); + ~GetRecordOssUploadParamRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string fileName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.h new file mode 100644 index 000000000..6a9a38fcd --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetRecordOssUploadParamResult.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_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetRecordOssUploadParamResult : public ServiceResult + { + public: + + + GetRecordOssUploadParamResult(); + explicit GetRecordOssUploadParamResult(const std::string &payload); + ~GetRecordOssUploadParamResult(); + std::string getPolicy()const; + std::string getMessage()const; + std::string getSignature()const; + int getHttpStatusCode()const; + std::string getOssFileName()const; + std::string getHost()const; + std::string getExpires()const; + std::string getDir()const; + std::string getCode()const; + std::string getOssAccessKeyId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + std::string message_; + std::string signature_; + int httpStatusCode_; + std::string ossFileName_; + std::string host_; + std::string expires_; + std::string dir_; + std::string code_; + std::string ossAccessKeyId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETRECORDOSSUPLOADPARAMRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h b/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.h new file mode 100644 index 000000000..ee2e28b0b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetSmsConfigRequest.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_CCC_MODEL_GETSMSCONFIGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetSmsConfigRequest : public RpcServiceRequest + { + + public: + GetSmsConfigRequest(); + ~GetSmsConfigRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getScenario()const; + void setScenario(const std::vector& scenario); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::vector scenario_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.h b/ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.h new file mode 100644 index 000000000..5761b05ac --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetSmsConfigResult.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_CCC_MODEL_GETSMSCONFIGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetSmsConfigResult : public ServiceResult + { + public: + struct SmsConfig + { + std::string templateCode; + std::string gmtCreate; + std::string description; + std::string extra; + std::string instance; + std::string gmtModified; + long id; + std::string signName; + int scenario; + std::string name; + }; + + + GetSmsConfigResult(); + explicit GetSmsConfigResult(const std::string &payload); + ~GetSmsConfigResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getSmsConfigs()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector smsConfigs_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETSMSCONFIGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h b/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsRequest.h new file mode 100644 index 000000000..92140391e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsRequest.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_CCC_MODEL_GETTURNCREDENTIALSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTURNCREDENTIALSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetTURNCredentialsRequest : public RpcServiceRequest + { + + public: + GetTURNCredentialsRequest(); + ~GetTURNCredentialsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string instanceId_; + std::string accessKeyId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETTURNCREDENTIALSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h b/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h new file mode 100644 index 000000000..eed5c9d12 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetTURNCredentialsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_GETTURNCREDENTIALSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTURNCREDENTIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetTURNCredentialsResult : public ServiceResult + { + public: + + + GetTURNCredentialsResult(); + explicit GetTURNCredentialsResult(const std::string &payload); + ~GetTURNCredentialsResult(); + std::string getMessage()const; + std::string getUsername()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + std::string getPassword()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string username_; + int httpStatusCode_; + std::string code_; + bool success_; + std::string password_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETTURNCREDENTIALSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.h b/ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.h new file mode 100644 index 000000000..f6fe03e0a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetTURNServerListRequest.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_CCC_MODEL_GETTURNSERVERLISTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTURNSERVERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetTURNServerListRequest : public RpcServiceRequest + { + + public: + GetTURNServerListRequest(); + ~GetTURNServerListRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETTURNSERVERLISTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/GetTURNServerListResult.h b/ccc/include/alibabacloud/ccc/model/GetTURNServerListResult.h new file mode 100644 index 000000000..8e4879fc8 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/GetTURNServerListResult.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_CCC_MODEL_GETTURNSERVERLISTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_GETTURNSERVERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT GetTURNServerListResult : public ServiceResult + { + public: + + + GetTURNServerListResult(); + explicit GetTURNServerListResult(const std::string &payload); + ~GetTURNServerListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::string getTurnServerListConfig()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + std::string turnServerListConfig_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_GETTURNSERVERLISTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.h new file mode 100644 index 000000000..f62926f3e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesRequest.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_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentDevicesRequest : public RpcServiceRequest + { + + public: + ListAgentDevicesRequest(); + ~ListAgentDevicesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRamIds()const; + void setRamIds(const std::string& ramIds); + long getStartTime()const; + void setStartTime(long startTime); + long getStopTime()const; + void setStopTime(long stopTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string ramIds_; + long startTime_; + long stopTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.h new file mode 100644 index 000000000..03cf1a516 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentDevicesResult.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_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentDevicesResult : public ServiceResult + { + public: + struct AgentDevice + { + long loginTime; + std::string instanceId; + long ramId; + int isLogin; + std::string clientPort; + std::string clientIp; + std::string browserVersion; + std::string remark; + }; + + + ListAgentDevicesResult(); + explicit ListAgentDevicesResult(const std::string &payload); + ~ListAgentDevicesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::vector getAgentDeviceList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + std::vector agentDeviceList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTDEVICESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.h new file mode 100644 index 000000000..83f23c3c7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentEventsRequest.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_CCC_MODEL_LISTAGENTEVENTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentEventsRequest : public RpcServiceRequest + { + + public: + ListAgentEventsRequest(); + ~ListAgentEventsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getStartTime()const; + void setStartTime(long startTime); + long getStopTime()const; + void setStopTime(long stopTime); + std::vector getEvent()const; + void setEvent(const std::vector& event); + std::vector getRamId()const; + void setRamId(const std::vector& ramId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + long startTime_; + long stopTime_; + std::vector event_; + std::vector ramId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.h new file mode 100644 index 000000000..193951d24 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentEventsResult.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_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentEventsResult : public ServiceResult + { + public: + struct AgentEvent + { + struct SkillGroup + { + std::string skillGroupName; + std::string skillGroupId; + }; + std::vector skillGroupIds; + std::string loginName; + std::string instanceId; + long eventTime; + long ramId; + std::string event; + }; + + + ListAgentEventsResult(); + explicit ListAgentEventsResult(const std::string &payload); + ~ListAgentEventsResult(); + std::vector getAgentEventList()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector agentEventList_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTEVENTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.h new file mode 100644 index 000000000..dc6ace59a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStatesRequest.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_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentStatesRequest : public RpcServiceRequest + { + + public: + ListAgentStatesRequest(); + ~ListAgentStatesRequest(); + + std::string getAgentIds()const; + void setAgentIds(const std::string& agentIds); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getState()const; + void setState(const std::string& state); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string agentIds_; + std::string instanceId_; + std::string skillGroupId_; + int pageSize_; + std::string state_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.h new file mode 100644 index 000000000..9cb11843a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentStatesResult.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_CCC_MODEL_LISTAGENTSTATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentStatesResult : public ServiceResult + { + public: + struct Data + { + struct RealTimeAgentState + { + std::string loginName; + std::string stateDuration; + std::string instanceId; + std::string state; + std::string dn; + std::string agentId; + std::string agentName; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListAgentStatesResult(); + explicit ListAgentStatesResult(const std::string &payload); + ~ListAgentStatesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSTATESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.h new file mode 100644 index 000000000..fda484c16 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalRequest.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_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsByIntervalRequest : public RpcServiceRequest + { + + public: + ListAgentSummaryReportsByIntervalRequest(); + ~ListAgentSummaryReportsByIntervalRequest(); + + std::string getAgentIds()const; + void setAgentIds(const std::string& agentIds); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string agentIds_; + std::string instanceId_; + std::string skillGroupId_; + int pageSize_; + std::string endTime_; + std::string interval_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h new file mode 100644 index 000000000..6814b7586 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsByIntervalResult.h @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsByIntervalResult : public ServiceResult + { + public: + struct PagedAgentSummaryReport + { + struct AgentTimeIntervalReport + { + struct AgentSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long totalWorkTime; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsHandled; + long totalRingTime; + long satisfactionSurveysResponded; + float handleRate; + long averageRingTime; + long totalTalkTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string loginName; + std::string skillGroupIds; + std::string instanceId; + std::string skillGroupNames; + std::string agentId; + std::string agentName; + Inbound inbound; + std::string timestamp; + }; + std::vector intervalList; + std::string agentId; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListAgentSummaryReportsByIntervalResult(); + explicit ListAgentSummaryReportsByIntervalResult(const std::string &payload); + ~ListAgentSummaryReportsByIntervalResult(); + std::string getMessage()const; + PagedAgentSummaryReport getPagedAgentSummaryReport()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + PagedAgentSummaryReport pagedAgentSummaryReport_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSBYINTERVALRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.h new file mode 100644 index 000000000..3b9499c83 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsRequest.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_CCC_MODEL_LISTAGENTSUMMARYREPORTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsRequest : public RpcServiceRequest + { + + public: + ListAgentSummaryReportsRequest(); + ~ListAgentSummaryReportsRequest(); + + std::string getAgentIds()const; + void setAgentIds(const std::string& agentIds); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string agentIds_; + std::string instanceId_; + std::string skillGroupId_; + int pageSize_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h new file mode 100644 index 000000000..0e08d0c7a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsResult.h @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsResult : public ServiceResult + { + public: + struct PagedAgentSummaryReport + { + struct AgentSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long totalWorkTime; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsHandled; + long totalRingTime; + long satisfactionSurveysResponded; + float handleRate; + long averageRingTime; + long totalTalkTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + std::string maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string loginName; + std::string skillGroupIds; + std::string instanceId; + std::string skillGroupNames; + std::string agentId; + std::string agentName; + Inbound inbound; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListAgentSummaryReportsResult(); + explicit ListAgentSummaryReportsResult(const std::string &payload); + ~ListAgentSummaryReportsResult(); + std::string getMessage()const; + PagedAgentSummaryReport getPagedAgentSummaryReport()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + PagedAgentSummaryReport pagedAgentSummaryReport_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.h new file mode 100644 index 000000000..3028cdc85 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightRequest.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_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsSinceMidnightRequest : public RpcServiceRequest + { + + public: + ListAgentSummaryReportsSinceMidnightRequest(); + ~ListAgentSummaryReportsSinceMidnightRequest(); + + std::string getAgentIds()const; + void setAgentIds(const std::string& agentIds); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string agentIds_; + std::string instanceId_; + std::string skillGroupId_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.h new file mode 100644 index 000000000..bac694a15 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListAgentSummaryReportsSinceMidnightResult.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_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListAgentSummaryReportsSinceMidnightResult : public ServiceResult + { + public: + struct PagedAgentSummaryReport + { + struct AgentSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long totalWorkTime; + long satisfactionSurveysOffered; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long callsHandled; + long totalRingTime; + long satisfactionSurveysResponded; + float handleRate; + long averageRingTime; + long totalTalkTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + long averageTalkTime; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + std::string maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string loginName; + std::string skillGroupIds; + std::string instanceId; + std::string skillGroupNames; + std::string agentId; + std::string agentName; + Inbound inbound; + std::string timestamp; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListAgentSummaryReportsSinceMidnightResult(); + explicit ListAgentSummaryReportsSinceMidnightResult(const std::string &payload); + ~ListAgentSummaryReportsSinceMidnightResult(); + std::string getMessage()const; + PagedAgentSummaryReport getPagedAgentSummaryReport()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + PagedAgentSummaryReport pagedAgentSummaryReport_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTAGENTSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h index 11e21c674..b46e29642 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h @@ -35,43 +35,46 @@ namespace AlibabaCloud ListCallDetailRecordsRequest(); ~ListCallDetailRecordsRequest(); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getContactDisposition()const; - void setContactDisposition(const std::string& contactDisposition); std::string getContactType()const; void setContactType(const std::string& contactType); + std::string getContactId()const; + void setContactId(const std::string& contactId); std::string getCriteria()const; void setCriteria(const std::string& criteria); std::string getPhoneNumber()const; void setPhoneNumber(const std::string& phoneNumber); - int getPageSize()const; - void setPageSize(int pageSize); std::string getOrderBy()const; void setOrderBy(const std::string& orderBy); - long getStopTime()const; - void setStopTime(long stopTime); long getStartTime()const; void setStartTime(long startTime); + long getStopTime()const; + void setStopTime(long stopTime); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactDisposition()const; + void setContactDisposition(const std::string& contactDisposition); + int getPageSize()const; + void setPageSize(int pageSize); bool getWithRecording()const; void setWithRecording(bool withRecording); private: - std::string instanceId_; - std::string contactDisposition_; std::string contactType_; + std::string contactId_; std::string criteria_; std::string phoneNumber_; - int pageSize_; std::string orderBy_; - long stopTime_; long startTime_; + long stopTime_; int pageNumber_; std::string accessKeyId_; + std::string instanceId_; + std::string contactDisposition_; + int pageSize_; bool withRecording_; }; diff --git a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h index d156e8fc2..027a9bf4b 100644 --- a/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h @@ -38,32 +38,21 @@ namespace AlibabaCloud { struct CallDetailAgent { - int holdTime; - int workTime; - std::string skillGroupName; - long startTime; - int queueTime; - std::string contactId; + std::string feedback; + std::string satisfaction; std::string agentId; - std::string agentName; - int ringTime; - int talkTime; }; struct Recording { - std::string filePath; - std::string calledNumber; - std::string contactType; - std::string instanceId; + std::string fileDescription; + std::string qualityCheckTid; std::string fileName; - std::string channel; long startTime; int duration; std::string contactId; - std::string callingNumber; - std::string fileDescription; std::string agentId; std::string agentName; + std::string qualityCheckTaskId; }; std::string calledNumber; std::string contactType; @@ -75,8 +64,9 @@ namespace AlibabaCloud int duration; std::vector recordings; std::string contactId; + std::string satisfactionDesc; std::string callingNumber; - std::string extraAttr; + std::string feedback; std::string skillGroupNames; std::string agentNames; }; diff --git a/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.h new file mode 100644 index 000000000..b9d3f3dc0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdRequest.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_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListCallEventDetailByContactIdRequest : public RpcServiceRequest + { + + public: + ListCallEventDetailByContactIdRequest(); + ~ListCallEventDetailByContactIdRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactId()const; + void setContactId(const std::string& contactId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string contactId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h new file mode 100644 index 000000000..4c2e7b6bf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListCallEventDetailByContactIdResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListCallEventDetailByContactIdResult : public ServiceResult + { + public: + struct Data + { + struct CallEventDetail + { + struct DetailData + { + std::string helper; + std::string skillGroup; + std::string hangUper; + std::string eventType; + std::string satisfactionalResearch; + }; + std::string status; + std::string event; + int duration; + std::string agentName; + std::string callMode; + DetailData detailData; + std::string timeStamp; + }; + std::string callee; + std::vector events; + std::string caller; + std::string privacyNumber; + std::string callType; + std::string startTime; + }; + + + ListCallEventDetailByContactIdResult(); + explicit ListCallEventDetailByContactIdResult(const std::string &payload); + ~ListCallEventDetailByContactIdResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLEVENTDETAILBYCONTACTIDRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.h new file mode 100644 index 000000000..3195797ff --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsRequest.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_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListCallMeasureSummaryReportsRequest : public RpcServiceRequest + { + + public: + ListCallMeasureSummaryReportsRequest(); + ~ListCallMeasureSummaryReportsRequest(); + + std::string getIntervalType()const; + void setIntervalType(const std::string& intervalType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string intervalType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.h new file mode 100644 index 000000000..c04a614f4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListCallMeasureSummaryReportsResult.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_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListCallMeasureSummaryReportsResult : public ServiceResult + { + public: + struct CallMeasureSummaryReport + { + long inboundCount; + std::string month; + long inboundDurationByMinute; + long outboundDurationByMinute; + std::string year; + long outboundCount; + std::string day; + }; + + + ListCallMeasureSummaryReportsResult(); + explicit ListCallMeasureSummaryReportsResult(const std::string &payload); + ~ListCallMeasureSummaryReportsResult(); + std::vector getCallMeasureSummaryReportList()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector callMeasureSummaryReportList_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLMEASURESUMMARYREPORTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h new file mode 100644 index 000000000..848368ff9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserRequest.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_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserRequest : public RpcServiceRequest + { + + public: + ListInstancesOfUserRequest(); + ~ListInstancesOfUserRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.h new file mode 100644 index 000000000..3856f11aa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListInstancesOfUserResult.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_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserResult : public ServiceResult + { + public: + struct CallCenterInstance + { + struct User + { + struct Detail + { + std::string loginName; + std::string department; + std::string email; + std::string phone; + std::string displayName; + }; + std::string instanceId; + std::string userId; + std::string ramId; + Detail detail; + }; + struct PhoneNumber + { + std::string usage; + bool testOnly; + bool allowOutbound; + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::string status; + std::vector phoneNumbers; + std::string owner; + long createdTime; + std::string instanceId; + std::string domainName; + std::string consoleUrl; + int storageMaxSize; + std::vector admin; + std::string instanceName; + int maxOnlineAgents; + std::string tenantId; + std::string directoryId; + std::string storageBucket; + std::string instanceDescription; + int storageMaxDays; + }; + + + ListInstancesOfUserResult(); + explicit ListInstancesOfUserResult(const std::string &payload); + ~ListInstancesOfUserResult(); + std::vector getInstances()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.h new file mode 100644 index 000000000..c3576dd78 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailRequest.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_CCC_MODEL_LISTIVRTRACKINGDETAILREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListIvrTrackingDetailRequest : public RpcServiceRequest + { + + public: + ListIvrTrackingDetailRequest(); + ~ListIvrTrackingDetailRequest(); + + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactId()const; + void setContactId(const std::string& contactId); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + int getPageSize()const; + void setPageSize(int pageSize); + long getStartTime()const; + void setStartTime(long startTime); + long getStopTime()const; + void setStopTime(long stopTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string callingNumber_; + std::string instanceId_; + std::string contactId_; + std::string calledNumber_; + int pageSize_; + long startTime_; + long stopTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h new file mode 100644 index 000000000..a7ed3a438 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListIvrTrackingDetailResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListIvrTrackingDetailResult : public ServiceResult + { + public: + struct IvrTrackingDetails + { + struct IvrTrackingDetail + { + std::string status; + std::string calledNumber; + std::string description; + std::string nodeName; + std::string deviceID; + long startTime; + std::string contactId; + std::string callingNumber; + std::string tenantId; + std::string flowName; + std::string nodeType; + std::string outputData; + std::string inputData; + long stopTime; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListIvrTrackingDetailResult(); + explicit ListIvrTrackingDetailResult(const std::string &payload); + ~ListIvrTrackingDetailResult(); + std::string getMessage()const; + IvrTrackingDetails getIvrTrackingDetails()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + IvrTrackingDetails ivrTrackingDetails_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTIVRTRACKINGDETAILRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListMediasRequest.h b/ccc/include/alibabacloud/ccc/model/ListMediasRequest.h new file mode 100644 index 000000000..1e01ced0f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListMediasRequest.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_CCC_MODEL_LISTMEDIASREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTMEDIASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListMediasRequest : public RpcServiceRequest + { + + public: + ListMediasRequest(); + ~ListMediasRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getNamePrefix()const; + void setNamePrefix(const std::string& namePrefix); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + int pageSize_; + std::string namePrefix_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTMEDIASREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListMediasResult.h b/ccc/include/alibabacloud/ccc/model/ListMediasResult.h new file mode 100644 index 000000000..7bfd0748a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListMediasResult.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_CCC_MODEL_LISTMEDIASRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListMediasResult : public ServiceResult + { + public: + struct Medias + { + struct Media + { + std::string filePath; + std::string status; + std::string type; + std::string description; + std::string instance; + std::string content; + std::string fileName; + std::string ossFileName; + std::string name; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListMediasResult(); + explicit ListMediasResult(const std::string &payload); + ~ListMediasResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Medias getMedias()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Medias medias_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTMEDIASRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.h new file mode 100644 index 000000000..b07331a75 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserRequest.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_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListOutboundPhoneNumberOfUserRequest : public RpcServiceRequest + { + + public: + ListOutboundPhoneNumberOfUserRequest(); + ~ListOutboundPhoneNumberOfUserRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.h new file mode 100644 index 000000000..f549539c2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListOutboundPhoneNumberOfUserResult.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_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListOutboundPhoneNumberOfUserResult : public ServiceResult + { + public: + struct PhoneNumber + { + struct PrivacyNumber + { + std::string regionNameCity; + std::string type; + std::string subId; + std::string poolId; + std::string extra; + std::string poolName; + std::string phoneNumber; + std::string telX; + std::string bizId; + }; + std::string usage; + bool testOnly; + bool allowOutbound; + std::string instanceId; + int remainingTime; + bool privateFlag; + int trunks; + std::string city; + std::string phoneNumberId; + std::string province; + std::string phoneNumberDescription; + std::string sipTelX; + std::string number; + PrivacyNumber privacyNumber; + }; + + + ListOutboundPhoneNumberOfUserResult(); + explicit ListOutboundPhoneNumberOfUserResult(const std::string &payload); + ~ListOutboundPhoneNumberOfUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getOutboundPhoneNumbers()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector outboundPhoneNumbers_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTOUTBOUNDPHONENUMBEROFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h index 47726d070..c1aca59ab 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPhoneNumbersResult.h @@ -42,18 +42,40 @@ namespace AlibabaCloud std::string contactFlowName; std::string contactFlowDescription; }; + struct PrivacyNumber + { + std::string regionNameCity; + std::string type; + std::string subId; + std::string poolId; + std::string extra; + std::string poolName; + std::string phoneNumber; + std::string telX; + std::string bizId; + }; + struct SkillGroup + { + std::string skillGroupName; + std::string skillGroupId; + }; + std::string assignee; std::string usage; bool testOnly; bool allowOutbound; - std::string number; std::string instanceId; int remainingTime; + std::vector skillGroups; int trunks; std::string city; std::string phoneNumberId; - ContactFlow contactFlow; std::string province; std::string phoneNumberDescription; + std::string sipTelX; + std::string number; + PrivacyNumber privacyNumber; + int numberCommodityStatus; + ContactFlow contactFlow; }; diff --git a/ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsRequest.h b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsRequest.h new file mode 100644 index 000000000..3d2ccab91 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsRequest.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_CCC_MODEL_LISTPREDICTIVEJOBGROUPSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPredictiveJobGroupsRequest : public RpcServiceRequest + { + + public: + ListPredictiveJobGroupsRequest(); + ~ListPredictiveJobGroupsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCriteria()const; + void setCriteria(const std::string& criteria); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + std::string criteria_; + std::string skillGroupId_; + std::string name_; + int pageSize_; + long endTime_; + long startTime_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsResult.h new file mode 100644 index 000000000..321aadd5c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobGroupsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPredictiveJobGroupsResult : public ServiceResult + { + public: + struct JobGroups + { + struct JobGroup + { + struct Strategy + { + struct TimeFrame + { + std::string endTime; + std::string beginTime; + }; + std::vector workingTime; + int minAttemptInterval; + long endTime; + std::string strategyId; + long startTime; + int maxAttemptsPerDay; + }; + struct Progress + { + struct KeyValuePair + { + std::string value; + std::string key; + }; + std::string status; + std::vector categories; + long startTime; + int duration; + int totalCompleted; + int totalNotAnswered; + int totalJobs; + }; + Progress progress; + std::string description; + std::string endTime; + std::string instanceId; + std::string startTime; + std::string skillGroupId; + std::string name; + std::string jobGroupId; + std::string skillGroupName; + std::string taskType; + long creationTime; + Strategy strategy; + std::string occupancyRate; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListPredictiveJobGroupsResult(); + explicit ListPredictiveJobGroupsResult(const std::string &payload); + ~ListPredictiveJobGroupsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + JobGroups getJobGroups()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + JobGroups jobGroups_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPREDICTIVEJOBGROUPSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h index 7c539931f..14ec9ef62 100644 --- a/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h @@ -47,60 +47,15 @@ namespace AlibabaCloud std::string contactName; std::string jobId; }; - struct KeyValuePair - { - std::string value; - std::string key; - }; - struct Task - { - struct Contact1 - { - std::string role; - std::string honorific; - std::string referenceId; - std::string state; - std::string phoneNumber; - std::string contactId; - std::string contactName; - std::string jobId; - }; - std::string status; - std::string chatbotId; - long planedTime; - std::string calledNumber; - std::string taskId; - std::string scenarioId; - long actualTime; - std::string callId; - int duration; - std::string brief; - std::string callingNumber; - Contact1 contact1; - std::string jobId; - }; - struct SummaryItem - { - std::string taskId; - std::string category; - std::string conversationDetailId; - std::string content; - std::string summaryId; - std::string summaryName; - std::string jobId; - std::string groupId; - }; std::string status; - std::vector tasks; + std::string jobGroupId; std::string scenarioId; - int priority; - std::string strategyId; - std::vector extras; - std::string groupId; std::vector contacts; std::string referenceId; + int priority; + int systemPriority; std::string failureReason; - std::vector summary; + std::string strategyId; std::string jobId; std::vector callingNumbers; }; diff --git a/ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsRequest.h b/ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsRequest.h new file mode 100644 index 000000000..e71a7dae6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsRequest.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_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPrivacyNumberCallDetailsRequest : public RpcServiceRequest + { + + public: + ListPrivacyNumberCallDetailsRequest(); + ~ListPrivacyNumberCallDetailsRequest(); + + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactId()const; + void setContactId(const std::string& contactId); + std::string getAgentName()const; + void setAgentName(const std::string& agentName); + int getPageSize()const; + void setPageSize(int pageSize); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string agentId_; + std::string instanceId_; + std::string contactId_; + std::string agentName_; + int pageSize_; + long endTime_; + long startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsResult.h b/ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsResult.h new file mode 100644 index 000000000..60684e5b2 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListPrivacyNumberCallDetailsResult.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_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListPrivacyNumberCallDetailsResult : public ServiceResult + { + public: + struct PrivacyNumberCallDetails + { + struct PrivacyNumberCallDetail + { + std::string status; + std::string calledNumber; + std::string contactType; + std::string description; + std::string privacyNumber; + std::string agentId; + std::string agentName; + std::string contactId; + long callTime; + std::string callingNumber; + std::string result; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListPrivacyNumberCallDetailsResult(); + explicit ListPrivacyNumberCallDetailsResult(const std::string &payload); + ~ListPrivacyNumberCallDetailsResult(); + PrivacyNumberCallDetails getPrivacyNumberCallDetails()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + PrivacyNumberCallDetails privacyNumberCallDetails_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTPRIVACYNUMBERCALLDETAILSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.h new file mode 100644 index 000000000..d5c4214b3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsRequest.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_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRecentCallRecordsRequest : public RpcServiceRequest + { + + public: + ListRecentCallRecordsRequest(); + ~ListRecentCallRecordsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCriteria()const; + void setCriteria(const std::string& criteria); + int getPageSize()const; + void setPageSize(int pageSize); + long getStartTime()const; + void setStartTime(long startTime); + long getStopTime()const; + void setStopTime(long stopTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string criteria_; + int pageSize_; + long startTime_; + long stopTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.h new file mode 100644 index 000000000..10da7eb1f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecentCallRecordsResult.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_CCC_MODEL_LISTRECENTCALLRECORDSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRecentCallRecordsResult : public ServiceResult + { + public: + struct CallDetailRecords + { + struct CallDetailRecord + { + struct CallDetailAgent + { + int holdTime; + int workTime; + std::string skillGroupName; + std::string feedback; + std::string satisfaction; + long startTime; + int queueTime; + std::string contactId; + std::string agentId; + std::string agentName; + int ringTime; + int talkTime; + }; + struct Recording + { + std::string filePath; + std::string calledNumber; + std::string contactType; + std::string instanceId; + std::string fileName; + std::string channel; + long startTime; + int duration; + std::string contactId; + std::string callingNumber; + std::string fileDescription; + std::string agentId; + std::string agentName; + }; + std::string calledNumber; + std::string contactType; + std::string contactDisposition; + std::string instanceId; + int satisfaction; + std::vector agents; + long startTime; + int duration; + std::vector recordings; + std::string contactId; + std::string satisfactionDesc; + std::string callingNumber; + std::string extraAttr1; + std::string extraAttr; + std::string feedback; + std::string skillGroupNames; + std::string agentNames; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListRecentCallRecordsResult(); + explicit ListRecentCallRecordsResult(const std::string &payload); + ~ListRecentCallRecordsResult(); + std::string getMessage()const; + CallDetailRecords getCallDetailRecords()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + CallDetailRecords callDetailRecords_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECENTCALLRECORDSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.h new file mode 100644 index 000000000..e28513b51 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackRequest.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_CCC_MODEL_LISTRECORDINGOFDUALTRACKREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRecordingOfDualTrackRequest : public RpcServiceRequest + { + + public: + ListRecordingOfDualTrackRequest(); + ~ListRecordingOfDualTrackRequest(); + + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + int getPageSize()const; + void setPageSize(int pageSize); + long getStartTime()const; + void setStartTime(long startTime); + long getStopTime()const; + void setStopTime(long stopTime); + std::string getConnectId()const; + void setConnectId(const std::string& connectId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string callingNumber_; + std::string agentId_; + std::string instanceId_; + std::string calledNumber_; + int pageSize_; + long startTime_; + long stopTime_; + std::string connectId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.h new file mode 100644 index 000000000..72dcb8780 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingOfDualTrackResult.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_CCC_MODEL_LISTRECORDINGOFDUALTRACKRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListRecordingOfDualTrackResult : public ServiceResult + { + public: + struct Recordings + { + struct Recording + { + std::string filePath; + std::string calledNumber; + std::string contactType; + std::string instanceId; + std::string fileName; + std::string channel; + long startTime; + int duration; + std::string contactId; + std::string callingNumber; + std::string fileDescription; + std::string agentId; + std::string agentName; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListRecordingOfDualTrackResult(); + explicit ListRecordingOfDualTrackResult(const std::string &payload); + ~ListRecordingOfDualTrackResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Recordings getRecordings()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Recordings recordings_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGOFDUALTRACKRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h b/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h index e61d090a1..3a3ddd987 100644 --- a/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string calledNumber; std::string contactType; std::string instanceId; + std::string qualityCheckTid; std::string fileName; std::string channel; long startTime; @@ -47,6 +48,7 @@ namespace AlibabaCloud std::string fileDescription; std::string agentId; std::string agentName; + std::string qualityCheckTaskId; }; diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.h new file mode 100644 index 000000000..3cadd80ee --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesRequest.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_CCC_MODEL_LISTSKILLGROUPSTATESREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupStatesRequest : public RpcServiceRequest + { + + public: + ListSkillGroupStatesRequest(); + ~ListSkillGroupStatesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupIds()const; + void setSkillGroupIds(const std::string& skillGroupIds); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string skillGroupIds_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h new file mode 100644 index 000000000..9cbcbd3a9 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupStatesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupStatesResult : public ServiceResult + { + public: + struct Data + { + struct RealTimeSkillGroupState + { + long breakingAgents; + long talkingAgents; + std::string skillGroupName; + std::string instanceId; + long loggedInAgents; + long readyAgents; + long waitingCalls; + std::string skillGroupId; + long longestCall; + long workingAgents; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListSkillGroupStatesResult(); + explicit ListSkillGroupStatesResult(const std::string &payload); + ~ListSkillGroupStatesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSTATESRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.h new file mode 100644 index 000000000..2cd50d73a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalRequest.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_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsByIntervalRequest : public RpcServiceRequest + { + + public: + ListSkillGroupSummaryReportsByIntervalRequest(); + ~ListSkillGroupSummaryReportsByIntervalRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupIds()const; + void setSkillGroupIds(const std::string& skillGroupIds); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string skillGroupIds_; + int pageSize_; + std::string endTime_; + std::string interval_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h new file mode 100644 index 000000000..03d1aaffa --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsByIntervalResult.h @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsByIntervalResult : public ServiceResult + { + public: + struct PagedSkillGroupSummaryReport + { + struct SkillGroupTimeIntervalReport + { + struct SkillGroupSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long totalWorkTime; + long abandonedInQueueOfQueueCount; + long answeredByAgentOfQueueCount; + long giveUpByAgentOfQueueCount; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long totalRingTime; + float handleRate; + long totalTalkTime; + long overFlowInQueueOfQueueCount; + long maxTalkTime; + long averageTalkTime; + long answeredByAgentOfQueueWaitTimeDuration; + long satisfactionSurveysOffered; + long queueWaitTimeDuration; + long callsHandled; + long satisfactionSurveysResponded; + long queueMaxWaitTimeDuration; + long averageRingTime; + long answeredByAgentOfQueueMaxWaitTimeDuration; + long averageWorkTime; + long maxWorkTime; + long inComingQueueOfQueueCount; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + Inbound inbound; + std::string timestamp; + }; + std::vector intervalList; + std::string skillGroupId; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListSkillGroupSummaryReportsByIntervalResult(); + explicit ListSkillGroupSummaryReportsByIntervalResult(const std::string &payload); + ~ListSkillGroupSummaryReportsByIntervalResult(); + PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSBYINTERVALRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.h new file mode 100644 index 000000000..8fcdd10e0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsRequest.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_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsRequest : public RpcServiceRequest + { + + public: + ListSkillGroupSummaryReportsRequest(); + ~ListSkillGroupSummaryReportsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupIds()const; + void setSkillGroupIds(const std::string& skillGroupIds); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string skillGroupIds_; + int pageSize_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h new file mode 100644 index 000000000..08a509284 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsResult.h @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsResult : public ServiceResult + { + public: + struct PagedSkillGroupSummaryReport + { + struct SkillGroupSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long totalWorkTime; + long abandonedInQueueOfQueueCount; + long answeredByAgentOfQueueCount; + long giveUpByAgentOfQueueCount; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long totalRingTime; + float handleRate; + long totalTalkTime; + long overFlowInQueueOfQueueCount; + std::string maxTalkTime; + long averageTalkTime; + long answeredByAgentOfQueueWaitTimeDuration; + long satisfactionSurveysOffered; + long queueWaitTimeDuration; + long callsHandled; + long satisfactionSurveysResponded; + long queueMaxWaitTimeDuration; + long averageRingTime; + long answeredByAgentOfQueueMaxWaitTimeDuration; + long averageWorkTime; + long maxWorkTime; + long inComingQueueOfQueueCount; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + Inbound inbound; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListSkillGroupSummaryReportsResult(); + explicit ListSkillGroupSummaryReportsResult(const std::string &payload); + ~ListSkillGroupSummaryReportsResult(); + PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.h new file mode 100644 index 000000000..a5a9658cb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightRequest.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_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsSinceMidnightRequest : public RpcServiceRequest + { + + public: + ListSkillGroupSummaryReportsSinceMidnightRequest(); + ~ListSkillGroupSummaryReportsSinceMidnightRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroups()const; + void setSkillGroups(const std::string& skillGroups); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string skillGroups_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h new file mode 100644 index 000000000..14a315f1a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupSummaryReportsSinceMidnightResult.h @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListSkillGroupSummaryReportsSinceMidnightResult : public ServiceResult + { + public: + struct PagedSkillGroupSummaryReport + { + struct SkillGroupSummaryReport + { + struct Overall + { + long totalReadyTime; + long totalCalls; + long totalBreakTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long totalTalkTime; + long averageReadyTime; + long totalLoggedInTime; + long maxTalkTime; + long maxReadyTime; + long averageWorkTime; + long maxWorkTime; + float occupancyRate; + long averageTalkTime; + }; + struct Inbound + { + float serviceLevel20; + long totalWorkTime; + long abandonedInQueueOfQueueCount; + long answeredByAgentOfQueueCount; + long giveUpByAgentOfQueueCount; + long callsOffered; + long maxRingTime; + float satisfactionIndex; + long totalRingTime; + float handleRate; + long totalTalkTime; + long overFlowInQueueOfQueueCount; + std::string maxTalkTime; + long averageTalkTime; + long answeredByAgentOfQueueWaitTimeDuration; + long satisfactionSurveysOffered; + long queueWaitTimeDuration; + long callsHandled; + long satisfactionSurveysResponded; + long queueMaxWaitTimeDuration; + long averageRingTime; + long answeredByAgentOfQueueMaxWaitTimeDuration; + long averageWorkTime; + long maxWorkTime; + long inComingQueueOfQueueCount; + }; + struct Outbound + { + long totalDialingTime; + long totalWorkTime; + long satisfactionSurveysOffered; + float satisfactionIndex; + long satisfactionSurveysResponded; + long averageDialingTime; + long callsAnswered; + long callsDialed; + long totalTalkTime; + long maxDialingTime; + long maxTalkTime; + long averageWorkTime; + long maxWorkTime; + float answerRate; + long averageTalkTime; + }; + Overall overall; + Outbound outbound; + std::string skillGroupName; + std::string instanceId; + std::string skillGroupId; + Inbound inbound; + std::string timestamp; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListSkillGroupSummaryReportsSinceMidnightResult(); + explicit ListSkillGroupSummaryReportsSinceMidnightResult(const std::string &payload); + ~ListSkillGroupSummaryReportsSinceMidnightResult(); + PagedSkillGroupSummaryReport getPagedSkillGroupSummaryReport()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + PagedSkillGroupSummaryReport pagedSkillGroupSummaryReport_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSUMMARYREPORTSSINCEMIDNIGHTRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h index 67e9507a0..f1d73ae26 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h @@ -52,6 +52,7 @@ namespace AlibabaCloud }; std::string skillGroupName; std::string instanceId; + std::string routingStrategy; std::string skillGroupId; std::vector outboundPhoneNumbers; std::string skillGroupDescription; diff --git a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h index 7c03b7eff..011265772 100644 --- a/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListSkillGroupsResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud std::string accSkillGroupName; std::string instanceId; int userCount; + std::string routingStrategy; std::string skillGroupId; std::vector outboundPhoneNumbers; std::string accQueueName; diff --git a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h index 910318c7f..6af04c8b1 100644 --- a/ccc/include/alibabacloud/ccc/model/ListUsersResult.h +++ b/ccc/include/alibabacloud/ccc/model/ListUsersResult.h @@ -65,6 +65,7 @@ namespace AlibabaCloud int level; }; std::vector skillLevels; + std::string privateOutboundNumberId; std::string instanceId; std::string userId; bool primary; diff --git a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.h new file mode 100644 index 000000000..214d3e943 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseRequest.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_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListVoiceAppraiseRequest : public RpcServiceRequest + { + + public: + ListVoiceAppraiseRequest(); + ~ListVoiceAppraiseRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h new file mode 100644 index 000000000..6a7b1f57a --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ListVoiceAppraiseResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ListVoiceAppraiseResult : public ServiceResult + { + public: + struct ContactFlow + { + struct ContactFlowVersion + { + std::string lastModified; + std::string status; + std::string lastModifiedBy; + std::string contactFlowVersionId; + std::string version; + std::string content; + std::string contactFlowVersionDescription; + }; + struct PhoneNumber + { + std::string number; + std::string instanceId; + int remainingTime; + int trunks; + std::string phoneNumberId; + std::string phoneNumberDescription; + }; + std::vector phoneNumbers; + std::string type; + std::string appliedVersion; + std::vector versions; + std::string contactFlowId; + std::string instanceId; + std::string contactFlowName; + std::string contactFlowDescription; + }; + + + ListVoiceAppraiseResult(); + explicit ListVoiceAppraiseResult(const std::string &payload); + ~ListVoiceAppraiseResult(); + std::string getMessage()const; + std::string getNotice()const; + int getHttpStatusCode()const; + ContactFlow getContactFlow()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string notice_; + int httpStatusCode_; + ContactFlow contactFlow_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LISTVOICEAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.h new file mode 100644 index 000000000..a9d6d2785 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceRequest.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_CCC_MODEL_MODIFYAGENTDEVICEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyAgentDeviceRequest : public RpcServiceRequest + { + + public: + ModifyAgentDeviceRequest(); + ~ModifyAgentDeviceRequest(); + + long getAgentDeviceId()const; + void setAgentDeviceId(long agentDeviceId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getIsLogin()const; + void setIsLogin(int isLogin); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long agentDeviceId_; + std::string instanceId_; + int isLogin_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.h new file mode 100644 index 000000000..440f94623 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyAgentDeviceResult.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_CCC_MODEL_MODIFYAGENTDEVICERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyAgentDeviceResult : public ServiceResult + { + public: + + + ModifyAgentDeviceResult(); + explicit ModifyAgentDeviceResult(const std::string &payload); + ~ModifyAgentDeviceResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYAGENTDEVICERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.h new file mode 100644 index 000000000..4b92c8753 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceRequest.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_CCC_MODEL_MODIFYCABINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyCabInstanceRequest : public RpcServiceRequest + { + + public: + ModifyCabInstanceRequest(); + ~ModifyCabInstanceRequest(); + + int getMaxConcurrentConversation()const; + void setMaxConcurrentConversation(int maxConcurrentConversation); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getCallCenterInstanceId()const; + void setCallCenterInstanceId(const std::string& callCenterInstanceId); + std::string getInstanceDescription()const; + void setInstanceDescription(const std::string& instanceDescription); + + private: + int maxConcurrentConversation_; + std::string instanceId_; + std::string instanceName_; + std::string callCenterInstanceId_; + std::string instanceDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.h new file mode 100644 index 000000000..06c7c70b4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyCabInstanceResult.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_CCC_MODEL_MODIFYCABINSTANCERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyCabInstanceResult : public ServiceResult + { + public: + struct Instance + { + std::string instanceName; + std::string owner; + int maxConcurrentConversation; + std::string instanceId; + long creationTime; + std::string instanceDescription; + std::string callCenterInstanceId; + }; + + + ModifyCabInstanceResult(); + explicit ModifyCabInstanceResult(const std::string &payload); + ~ModifyCabInstanceResult(); + std::string getMessage()const; + Instance getInstance()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Instance instance_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYCABINSTANCERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyMediaRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyMediaRequest.h new file mode 100644 index 000000000..93c50568f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyMediaRequest.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_CCC_MODEL_MODIFYMEDIAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYMEDIAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyMediaRequest : public RpcServiceRequest + { + + public: + ModifyMediaRequest(); + ~ModifyMediaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getOssFilePath()const; + void setOssFilePath(const std::string& ossFilePath); + std::string getUploadResult()const; + void setUploadResult(const std::string& uploadResult); + std::string getType()const; + void setType(const std::string& type); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getOssFileName()const; + void setOssFileName(const std::string& ossFileName); + + private: + std::string instanceId_; + std::string fileName_; + std::string name_; + std::string description_; + std::string ossFilePath_; + std::string uploadResult_; + std::string type_; + std::string content_; + std::string accessKeyId_; + std::string ossFileName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyMediaResult.h b/ccc/include/alibabacloud/ccc/model/ModifyMediaResult.h new file mode 100644 index 000000000..d7ef5ecd8 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyMediaResult.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_CCC_MODEL_MODIFYMEDIARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYMEDIARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyMediaResult : public ServiceResult + { + public: + struct MediaUploadParam + { + std::string instance; + std::string fileName; + std::string ossFileName; + std::string name; + std::string ossFilePath; + }; + + + ModifyMediaResult(); + explicit ModifyMediaResult(const std::string &payload); + ~ModifyMediaResult(); + MediaUploadParam getMediaUploadParam()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + MediaUploadParam mediaUploadParam_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYMEDIARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigRequest.h new file mode 100644 index 000000000..7bcc967f7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigRequest.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_CCC_MODEL_MODIFYNOTIFICATIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYNOTIFICATIONCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyNotificationConfigRequest : public RpcServiceRequest + { + struct Subscriptions + { + std::string displayName; + std::string name; + bool selected; + }; + + public: + ModifyNotificationConfigRequest(); + ~ModifyNotificationConfigRequest(); + + std::vector getSubscriptions()const; + void setSubscriptions(const std::vector& subscriptions); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessPoint()const; + void setAccessPoint(const std::string& accessPoint); + std::string getTopic()const; + void setTopic(const std::string& topic); + std::string getProducerId()const; + void setProducerId(const std::string& producerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector subscriptions_; + std::string instanceId_; + std::string accessPoint_; + std::string topic_; + std::string producerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYNOTIFICATIONCONFIGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigResult.h b/ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigResult.h new file mode 100644 index 000000000..eaffe7e09 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyNotificationConfigResult.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_CCC_MODEL_MODIFYNOTIFICATIONCONFIGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYNOTIFICATIONCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyNotificationConfigResult : public ServiceResult + { + public: + struct SubscriptionsItem + { + std::string displayName; + bool selected; + std::string name; + }; + + + ModifyNotificationConfigResult(); + explicit ModifyNotificationConfigResult(const std::string &payload); + ~ModifyNotificationConfigResult(); + std::string getMessage()const; + std::vector getSubscriptions()const; + std::string getProducerId()const; + std::string getAccessPoint()const; + int getHttpStatusCode()const; + std::string getTopic()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector subscriptions_; + std::string producerId_; + std::string accessPoint_; + int httpStatusCode_; + std::string topic_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYNOTIFICATIONCONFIGRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h index 9ec0beb7a..51fc39d9c 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setPhoneNumberId(const std::string& phoneNumberId); std::string getUsage()const; void setUsage(const std::string& usage); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); @@ -51,6 +53,7 @@ namespace AlibabaCloud std::string instanceId_; std::string phoneNumberId_; std::string usage_; + std::vector skillGroupId_; std::string accessKeyId_; }; diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h index e7b3b5ddb..65f041ee3 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h @@ -42,12 +42,18 @@ namespace AlibabaCloud std::string contactFlowName; std::string contactFlowDescription; }; + struct SkillGroup + { + std::string skillGroupName; + std::string skillGroupId; + }; std::string usage; bool testOnly; bool allowOutbound; std::string number; std::string instanceId; int remainingTime; + std::vector skillGroups; int trunks; std::string phoneNumberId; ContactFlow contactFlow; diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.h new file mode 100644 index 000000000..1e9135494 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailRequest.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_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyPrivacyNumberCallDetailRequest : public RpcServiceRequest + { + + public: + ModifyPrivacyNumberCallDetailRequest(); + ~ModifyPrivacyNumberCallDetailRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactId()const; + void setContactId(const std::string& contactId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string callId_; + std::string instanceId_; + std::string contactId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.h new file mode 100644 index 000000000..25391a9ef --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifyPrivacyNumberCallDetailResult.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_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifyPrivacyNumberCallDetailResult : public ServiceResult + { + public: + + + ModifyPrivacyNumberCallDetailResult(); + explicit ModifyPrivacyNumberCallDetailResult(const std::string &payload); + ~ModifyPrivacyNumberCallDetailResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPRIVACYNUMBERCALLDETAILRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.h new file mode 100644 index 000000000..3d83edac3 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserRequest.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_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOfUserRequest : public RpcServiceRequest + { + + public: + ModifySkillGroupOfUserRequest(); + ~ModifySkillGroupOfUserRequest(); + + std::vector getSkillLevel()const; + void setSkillLevel(const std::vector& skillLevel); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector skillLevel_; + std::string instanceId_; + std::vector roleId_; + std::vector skillGroupId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.h new file mode 100644 index 000000000..36f42da74 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOfUserResult.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_CCC_MODEL_MODIFYSKILLGROUPOFUSERRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOfUserResult : public ServiceResult + { + public: + + + ModifySkillGroupOfUserResult(); + explicit ModifySkillGroupOfUserResult(const std::string &payload); + ~ModifySkillGroupOfUserResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOFUSERRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.h new file mode 100644 index 000000000..87090d750 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersRequest.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_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOutboundNumbersRequest : public RpcServiceRequest + { + + public: + ModifySkillGroupOutboundNumbersRequest(); + ~ModifySkillGroupOutboundNumbersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getOutboundPhoneNumberId()const; + void setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + int getOperationType()const; + void setOperationType(int operationType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::vector outboundPhoneNumberId_; + std::string skillGroupId_; + int operationType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.h new file mode 100644 index 000000000..4572d1605 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupOutboundNumbersResult.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_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupOutboundNumbersResult : public ServiceResult + { + public: + + + ModifySkillGroupOutboundNumbersResult(); + explicit ModifySkillGroupOutboundNumbersResult(const std::string &payload); + ~ModifySkillGroupOutboundNumbersResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPOUTBOUNDNUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h index 21a5e9c0b..84ed3414b 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifySkillGroupRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + bool getAllowPrivateOutboundNumber()const; + void setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber); std::vector getOutboundPhoneNumberId()const; void setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId); std::string getSkillGroupId()const; @@ -47,6 +49,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getDescription()const; void setDescription(const std::string& description); + std::string getRoutingStrategy()const; + void setRoutingStrategy(const std::string& routingStrategy); std::vector getUserId()const; void setUserId(const std::vector& userId); std::string getAccessKeyId()const; @@ -55,10 +59,12 @@ namespace AlibabaCloud private: std::vector skillLevel_; std::string instanceId_; + bool allowPrivateOutboundNumber_; std::vector outboundPhoneNumberId_; std::string skillGroupId_; std::string name_; std::string description_; + std::string routingStrategy_; std::vector userId_; std::string accessKeyId_; diff --git a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h index 13b5f258e..77e89ac3d 100644 --- a/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h +++ b/ccc/include/alibabacloud/ccc/model/ModifyUserRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud ModifyUserRequest(); ~ModifyUserRequest(); + std::string getPrivateOutboundNumberId()const; + void setPrivateOutboundNumberId(const std::string& privateOutboundNumberId); std::vector getSkillLevel()const; void setSkillLevel(const std::vector& skillLevel); std::string getInstanceId()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); private: + std::string privateOutboundNumberId_; std::vector skillLevel_; std::string instanceId_; std::string phone_; diff --git a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.h new file mode 100644 index 000000000..32ab69fa0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersRequest.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_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickGlobalOutboundNumbersRequest : public RpcServiceRequest + { + + public: + PickGlobalOutboundNumbersRequest(); + ~PickGlobalOutboundNumbersRequest(); + + bool getIsVirtual()const; + void setIsVirtual(bool isVirtual); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + int getCount()const; + void setCount(int count); + std::string getCalleeNumber()const; + void setCalleeNumber(const std::string& calleeNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + bool isVirtual_; + std::string instanceId_; + std::vector skillGroupId_; + int count_; + std::string calleeNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.h new file mode 100644 index 000000000..9a3559332 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickGlobalOutboundNumbersResult.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_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickGlobalOutboundNumbersResult : public ServiceResult + { + public: + struct DialNumberPair + { + struct Callee + { + std::string number; + std::string city; + std::string province; + }; + struct Caller + { + std::string number; + std::string city; + std::string province; + }; + Callee callee; + Caller caller; + }; + + + PickGlobalOutboundNumbersResult(); + explicit PickGlobalOutboundNumbersResult(const std::string &payload); + ~PickGlobalOutboundNumbersResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getDialNumberPairs()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + std::vector dialNumberPairs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKGLOBALOUTBOUNDNUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsRequest.h b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsRequest.h new file mode 100644 index 000000000..80eea8bbb --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsRequest.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_CCC_MODEL_PICKOUTBOUNDNUMBERSBYTAGSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSBYTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickOutboundNumbersByTagsRequest : public RpcServiceRequest + { + + public: + PickOutboundNumbersByTagsRequest(); + ~PickOutboundNumbersByTagsRequest(); + + std::vector getPrioritizedCallerArea()const; + void setPrioritizedCallerArea(const std::vector& prioritizedCallerArea); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getServiceTag()const; + void setServiceTag(const std::vector& serviceTag); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + int getCount()const; + void setCount(int count); + std::string getCalleeNumber()const; + void setCalleeNumber(const std::string& calleeNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::vector prioritizedCallerArea_; + std::string instanceId_; + std::vector serviceTag_; + std::vector skillGroupId_; + int count_; + std::string calleeNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSBYTAGSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsResult.h b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsResult.h new file mode 100644 index 000000000..7dee711ed --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersByTagsResult.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_CCC_MODEL_PICKOUTBOUNDNUMBERSBYTAGSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSBYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickOutboundNumbersByTagsResult : public ServiceResult + { + public: + struct DialNumberPair + { + struct Callee + { + std::string number; + std::string city; + std::string province; + }; + struct Caller + { + std::string number; + std::string city; + std::string province; + }; + Callee callee; + Caller caller; + }; + + + PickOutboundNumbersByTagsResult(); + explicit PickOutboundNumbersByTagsResult(const std::string &payload); + ~PickOutboundNumbersByTagsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getDialNumberPairs()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + std::vector dialNumberPairs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSBYTAGSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h new file mode 100644 index 000000000..277208223 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersRequest.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_CCC_MODEL_PICKOUTBOUNDNUMBERSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickOutboundNumbersRequest : public RpcServiceRequest + { + + public: + PickOutboundNumbersRequest(); + ~PickOutboundNumbersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getCount()const; + void setCount(int count); + std::vector getCandidateNumber()const; + void setCandidateNumber(const std::vector& candidateNumber); + std::string getCalleeNumber()const; + void setCalleeNumber(const std::string& calleeNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + int count_; + std::vector candidateNumber_; + std::string calleeNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.h new file mode 100644 index 000000000..1252ad792 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PickOutboundNumbersResult.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_CCC_MODEL_PICKOUTBOUNDNUMBERSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PickOutboundNumbersResult : public ServiceResult + { + public: + struct DialNumberPair + { + struct Callee + { + std::string number; + std::string city; + std::string province; + }; + struct Caller + { + std::string number; + std::string city; + std::string province; + }; + Callee callee; + Caller caller; + }; + + + PickOutboundNumbersResult(); + explicit PickOutboundNumbersResult(const std::string &payload); + ~PickOutboundNumbersResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getDialNumberPairs()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + std::vector dialNumberPairs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PICKOUTBOUNDNUMBERSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PreCreateMediaRequest.h b/ccc/include/alibabacloud/ccc/model/PreCreateMediaRequest.h new file mode 100644 index 000000000..bdd044a7e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PreCreateMediaRequest.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_CCC_MODEL_PRECREATEMEDIAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PRECREATEMEDIAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PreCreateMediaRequest : public RpcServiceRequest + { + + public: + PreCreateMediaRequest(); + ~PreCreateMediaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string fileName_; + std::string name_; + std::string description_; + std::string type_; + std::string content_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PRECREATEMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PreCreateMediaResult.h b/ccc/include/alibabacloud/ccc/model/PreCreateMediaResult.h new file mode 100644 index 000000000..9e54d9c6c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PreCreateMediaResult.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_CCC_MODEL_PRECREATEMEDIARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PRECREATEMEDIARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PreCreateMediaResult : public ServiceResult + { + public: + struct PreCreateMediaParam + { + std::string ossFile; + std::string ossBucket; + std::string signatureUrl; + std::string ossFilePath; + }; + + + PreCreateMediaResult(); + explicit PreCreateMediaResult(const std::string &payload); + ~PreCreateMediaResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + PreCreateMediaParam getPreCreateMediaParam()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + PreCreateMediaParam preCreateMediaParam_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PRECREATEMEDIARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PreModifyMediaRequest.h b/ccc/include/alibabacloud/ccc/model/PreModifyMediaRequest.h new file mode 100644 index 000000000..6b077172f --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PreModifyMediaRequest.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_CCC_MODEL_PREMODIFYMEDIAREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PREMODIFYMEDIAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PreModifyMediaRequest : public RpcServiceRequest + { + + public: + PreModifyMediaRequest(); + ~PreModifyMediaRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string fileName_; + std::string name_; + std::string description_; + std::string type_; + std::string content_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PREMODIFYMEDIAREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PreModifyMediaResult.h b/ccc/include/alibabacloud/ccc/model/PreModifyMediaResult.h new file mode 100644 index 000000000..4da92303c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PreModifyMediaResult.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_CCC_MODEL_PREMODIFYMEDIARESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PREMODIFYMEDIARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PreModifyMediaResult : public ServiceResult + { + public: + struct PreModifyMediaParam + { + std::string ossFile; + std::string ossBucket; + std::string signatureUrl; + std::string ossFilePath; + }; + + + PreModifyMediaResult(); + explicit PreModifyMediaResult(const std::string &payload); + ~PreModifyMediaResult(); + std::string getMessage()const; + PreModifyMediaParam getPreModifyMediaParam()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + PreModifyMediaParam preModifyMediaParam_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PREMODIFYMEDIARESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureRequest.h b/ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureRequest.h new file mode 100644 index 000000000..dd10f198c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureRequest.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_CCC_MODEL_PREDICTIVERECORDFAILUREREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDFAILUREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PredictiveRecordFailureRequest : public RpcServiceRequest + { + + public: + PredictiveRecordFailureRequest(); + ~PredictiveRecordFailureRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + long getActualTime()const; + void setActualTime(long actualTime); + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getDispositionCode()const; + void setDispositionCode(const std::string& dispositionCode); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getCabInstanceId()const; + void setCabInstanceId(const std::string& cabInstanceId); + long getCabInstanceOwnerId()const; + void setCabInstanceOwnerId(long cabInstanceOwnerId); + + private: + std::string callId_; + long actualTime_; + std::string callingNumber_; + std::string instanceId_; + std::string dispositionCode_; + std::string calledNumber_; + std::string taskId_; + std::string cabInstanceId_; + long cabInstanceOwnerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDFAILUREREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureResult.h b/ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureResult.h new file mode 100644 index 000000000..e53c95bb0 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PredictiveRecordFailureResult.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_CCC_MODEL_PREDICTIVERECORDFAILURERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDFAILURERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PredictiveRecordFailureResult : public ServiceResult + { + public: + + + PredictiveRecordFailureResult(); + explicit PredictiveRecordFailureResult(const std::string &payload); + ~PredictiveRecordFailureResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDFAILURERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessRequest.h b/ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessRequest.h new file mode 100644 index 000000000..696d6b76b --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessRequest.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_CCC_MODEL_PREDICTIVERECORDSUCCESSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDSUCCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PredictiveRecordSuccessRequest : public RpcServiceRequest + { + + public: + PredictiveRecordSuccessRequest(); + ~PredictiveRecordSuccessRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + std::string getCallType()const; + void setCallType(const std::string& callType); + std::string getScenarioId()const; + void setScenarioId(const std::string& scenarioId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getCabInstanceId()const; + void setCabInstanceId(const std::string& cabInstanceId); + long getCabInstanceOwnerId()const; + void setCabInstanceOwnerId(long cabInstanceOwnerId); + + private: + std::string callId_; + std::string callingNumber_; + std::string instanceId_; + std::string calledNumber_; + std::string callType_; + std::string scenarioId_; + std::string taskId_; + std::string cabInstanceId_; + long cabInstanceOwnerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDSUCCESSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessResult.h b/ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessResult.h new file mode 100644 index 000000000..28fddc2e7 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PredictiveRecordSuccessResult.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_CCC_MODEL_PREDICTIVERECORDSUCCESSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDSUCCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PredictiveRecordSuccessResult : public ServiceResult + { + public: + + + PredictiveRecordSuccessResult(); + explicit PredictiveRecordSuccessResult(const std::string &payload); + ~PredictiveRecordSuccessResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PREDICTIVERECORDSUCCESSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.h new file mode 100644 index 000000000..b1fb972c5 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionRequest.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_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishContactFlowVersionRequest : public RpcServiceRequest + { + + public: + PublishContactFlowVersionRequest(); + ~PublishContactFlowVersionRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactFlowVersionId()const; + void setContactFlowVersionId(const std::string& contactFlowVersionId); + bool getUseTianGong()const; + void setUseTianGong(bool useTianGong); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string contactFlowVersionId_; + bool useTianGong_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.h new file mode 100644 index 000000000..80a31ad27 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishContactFlowVersionResult.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_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishContactFlowVersionResult : public ServiceResult + { + public: + + + PublishContactFlowVersionResult(); + explicit PublishContactFlowVersionResult(const std::string &payload); + ~PublishContactFlowVersionResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHCONTACTFLOWVERSIONRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.h new file mode 100644 index 000000000..8e4b9fd2c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupRequest.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_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupRequest : public RpcServiceRequest + { + + public: + PublishPredictiveJobGroupRequest(); + ~PublishPredictiveJobGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string skillGroupId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.h new file mode 100644 index 000000000..63982c551 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/PublishPredictiveJobGroupResult.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_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT PublishPredictiveJobGroupResult : public ServiceResult + { + public: + + + PublishPredictiveJobGroupResult(); + explicit PublishPredictiveJobGroupResult(const std::string &payload); + ~PublishPredictiveJobGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_PUBLISHPREDICTIVEJOBGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorRequest.h b/ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorRequest.h new file mode 100644 index 000000000..dd3615d56 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorRequest.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_CCC_MODEL_QUERYREDIALINDICATORREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_QUERYREDIALINDICATORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT QueryRedialIndicatorRequest : public RpcServiceRequest + { + + public: + QueryRedialIndicatorRequest(); + ~QueryRedialIndicatorRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactId()const; + void setContactId(const std::string& contactId); + bool getMockResponse()const; + void setMockResponse(bool mockResponse); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string contactId_; + bool mockResponse_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_QUERYREDIALINDICATORREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorResult.h b/ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorResult.h new file mode 100644 index 000000000..91d20776d --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/QueryRedialIndicatorResult.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_CCC_MODEL_QUERYREDIALINDICATORRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_QUERYREDIALINDICATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT QueryRedialIndicatorResult : public ServiceResult + { + public: + + + QueryRedialIndicatorResult(); + explicit QueryRedialIndicatorResult(const std::string &payload); + ~QueryRedialIndicatorResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + bool getRedial()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + bool redial_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_QUERYREDIALINDICATORRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupRequest.h new file mode 100644 index 000000000..4f69be55e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupRequest.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_CCC_MODEL_REMOVENUMBERFROMSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVENUMBERFROMSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemoveNumberFromSkillGroupRequest : public RpcServiceRequest + { + + public: + RemoveNumberFromSkillGroupRequest(); + ~RemoveNumberFromSkillGroupRequest(); + + std::string getNumber()const; + void setNumber(const std::string& number); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string number_; + std::string instanceId_; + std::string skillGroupId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVENUMBERFROMSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupResult.h new file mode 100644 index 000000000..9fa5c054c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemoveNumberFromSkillGroupResult.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_CCC_MODEL_REMOVENUMBERFROMSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVENUMBERFROMSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemoveNumberFromSkillGroupResult : public ServiceResult + { + public: + + + RemoveNumberFromSkillGroupResult(); + explicit RemoveNumberFromSkillGroupResult(const std::string &payload); + ~RemoveNumberFromSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVENUMBERFROMSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.h new file mode 100644 index 000000000..b23363edf --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupRequest.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_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemoveUsersFromSkillGroupRequest : public RpcServiceRequest + { + + public: + RemoveUsersFromSkillGroupRequest(); + ~RemoveUsersFromSkillGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::vector getUserId()const; + void setUserId(const std::vector& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string skillGroupId_; + std::vector userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.h new file mode 100644 index 000000000..8461d846c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/RemoveUsersFromSkillGroupResult.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_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT RemoveUsersFromSkillGroupResult : public ServiceResult + { + public: + + + RemoveUsersFromSkillGroupResult(); + explicit RemoveUsersFromSkillGroupResult(const std::string &payload); + ~RemoveUsersFromSkillGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEUSERSFROMSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h index 6cc050863..14bbe80db 100644 --- a/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h +++ b/ccc/include/alibabacloud/ccc/model/RequestLoginInfoResult.h @@ -34,6 +34,13 @@ namespace AlibabaCloud public: struct LoginInfo { + struct Role + { + std::string roleName; + std::string instanceId; + std::string roleDescription; + std::string roleId; + }; std::string agentServerUrl; std::string extension; std::string tenantId; @@ -43,6 +50,7 @@ namespace AlibabaCloud std::string displayName; std::string phoneNumber; std::string region; + std::vector roles; std::string webRtcUrl; }; diff --git a/ccc/include/alibabacloud/ccc/model/SaveStatsRequest.h b/ccc/include/alibabacloud/ccc/model/SaveStatsRequest.h new file mode 100644 index 000000000..f9c4e4d4c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SaveStatsRequest.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_CCC_MODEL_SAVESTATSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SAVESTATSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SaveStatsRequest : public RpcServiceRequest + { + + public: + SaveStatsRequest(); + ~SaveStatsRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getUid()const; + void setUid(const std::string& uid); + long getRecordTime()const; + void setRecordTime(long recordTime); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getStats()const; + void setStats(const std::string& stats); + long getCallStartTime()const; + void setCallStartTime(long callStartTime); + std::string getTenantId()const; + void setTenantId(const std::string& tenantId); + std::string getCalleeNumber()const; + void setCalleeNumber(const std::string& calleeNumber); + std::string getCallerNumber()const; + void setCallerNumber(const std::string& callerNumber); + + private: + std::string callId_; + std::string uid_; + long recordTime_; + std::string instanceId_; + std::string stats_; + long callStartTime_; + std::string tenantId_; + std::string calleeNumber_; + std::string callerNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SAVESTATSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SaveStatsResult.h b/ccc/include/alibabacloud/ccc/model/SaveStatsResult.h new file mode 100644 index 000000000..3286b3e9c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SaveStatsResult.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_CCC_MODEL_SAVESTATSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SAVESTATSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SaveStatsResult : public ServiceResult + { + public: + + + SaveStatsResult(); + explicit SaveStatsResult(const std::string &payload); + ~SaveStatsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getRowCount()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long rowCount_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SAVESTATSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.h new file mode 100644 index 000000000..ea0987d04 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsRequest.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_CCC_MODEL_SAVEWEBRTCSTATSREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SaveWebRTCStatsRequest : public RpcServiceRequest + { + + public: + SaveWebRTCStatsRequest(); + ~SaveWebRTCStatsRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getUid()const; + void setUid(const std::string& uid); + long getRecordTime()const; + void setRecordTime(long recordTime); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getStats()const; + void setStats(const std::string& stats); + long getCallStartTime()const; + void setCallStartTime(long callStartTime); + std::string getTenantId()const; + void setTenantId(const std::string& tenantId); + std::string getCalleeNumber()const; + void setCalleeNumber(const std::string& calleeNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCallerNumber()const; + void setCallerNumber(const std::string& callerNumber); + + private: + std::string callId_; + std::string uid_; + long recordTime_; + std::string instanceId_; + std::string stats_; + long callStartTime_; + std::string tenantId_; + std::string calleeNumber_; + std::string accessKeyId_; + std::string callerNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.h new file mode 100644 index 000000000..8f540d06c --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SaveWebRTCStatsResult.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_CCC_MODEL_SAVEWEBRTCSTATSRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SaveWebRTCStatsResult : public ServiceResult + { + public: + + + SaveWebRTCStatsResult(); + explicit SaveWebRTCStatsResult(const std::string &payload); + ~SaveWebRTCStatsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + long getRowCount()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + long rowCount_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SAVEWEBRTCSTATSRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.h new file mode 100644 index 000000000..d8b598901 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageRequest.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_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SendPredefinedShortMessageRequest : public RpcServiceRequest + { + + public: + SendPredefinedShortMessageRequest(); + ~SendPredefinedShortMessageRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getPhoneNumbers()const; + void setPhoneNumbers(const std::string& phoneNumbers); + long getConfigId()const; + void setConfigId(long configId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTemplateParam()const; + void setTemplateParam(const std::string& templateParam); + + private: + std::string instanceId_; + std::string phoneNumbers_; + long configId_; + std::string accessKeyId_; + std::string templateParam_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.h new file mode 100644 index 000000000..a994a4cdc --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SendPredefinedShortMessageResult.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_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SendPredefinedShortMessageResult : public ServiceResult + { + public: + + + SendPredefinedShortMessageResult(); + explicit SendPredefinedShortMessageResult(const std::string &payload); + ~SendPredefinedShortMessageResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::string getBizId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + std::string bizId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SENDPREDEFINEDSHORTMESSAGERESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SimpleDialRequest.h b/ccc/include/alibabacloud/ccc/model/SimpleDialRequest.h new file mode 100644 index 000000000..05cd10775 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SimpleDialRequest.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_CCC_MODEL_SIMPLEDIALREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SIMPLEDIALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SimpleDialRequest : public RpcServiceRequest + { + + public: + SimpleDialRequest(); + ~SimpleDialRequest(); + + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContractFlowId()const; + void setContractFlowId(const std::string& contractFlowId); + std::string getCallee()const; + void setCallee(const std::string& callee); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string caller_; + std::string instanceId_; + std::string contractFlowId_; + std::string callee_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SIMPLEDIALREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SimpleDialResult.h b/ccc/include/alibabacloud/ccc/model/SimpleDialResult.h new file mode 100644 index 000000000..54dd21eb6 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SimpleDialResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_SIMPLEDIALRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SIMPLEDIALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SimpleDialResult : public ServiceResult + { + public: + + + SimpleDialResult(); + explicit SimpleDialResult(const std::string &payload); + ~SimpleDialResult(); + std::string getStatusDesc()const; + std::string getTaskId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::string getStatusCode()const; + bool getSuccess()const; + std::string getTimeStamp()const; + + protected: + void parse(const std::string &payload); + private: + std::string statusDesc_; + std::string taskId_; + std::string message_; + int httpStatusCode_; + std::string code_; + std::string statusCode_; + bool success_; + std::string timeStamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SIMPLEDIALRESULT_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.h new file mode 100644 index 000000000..c95d994fc --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingRequest.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_CCC_MODEL_SUBMITCABRECORDINGREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SubmitCabRecordingRequest : public RpcServiceRequest + { + + public: + SubmitCabRecordingRequest(); + ~SubmitCabRecordingRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getInstanceOwnerId()const; + void setInstanceOwnerId(long instanceOwnerId); + std::string getMergedRecording()const; + void setMergedRecording(const std::string& mergedRecording); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getResourceRecording()const; + void setResourceRecording(const std::string& resourceRecording); + + private: + std::string instanceId_; + long instanceOwnerId_; + std::string mergedRecording_; + std::string taskId_; + std::string resourceRecording_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.h new file mode 100644 index 000000000..2c44ee9a4 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/SubmitCabRecordingResult.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_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT SubmitCabRecordingResult : public ServiceResult + { + public: + + + SubmitCabRecordingResult(); + explicit SubmitCabRecordingResult(const std::string &payload); + ~SubmitCabRecordingResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCABRECORDINGRESULT_H_ \ No newline at end of file diff --git a/ccc/src/CCCClient.cc b/ccc/src/CCCClient.cc index a383e6b7b..6088b6060 100644 --- a/ccc/src/CCCClient.cc +++ b/ccc/src/CCCClient.cc @@ -51,6 +51,78 @@ CCCClient::CCCClient(const std::string & accessKeyId, const std::string & access CCCClient::~CCCClient() {} +CCCClient::SaveWebRTCStatsOutcome CCCClient::saveWebRTCStats(const SaveWebRTCStatsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveWebRTCStatsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveWebRTCStatsOutcome(SaveWebRTCStatsResult(outcome.result())); + else + return SaveWebRTCStatsOutcome(outcome.error()); +} + +void CCCClient::saveWebRTCStatsAsync(const SaveWebRTCStatsRequest& request, const SaveWebRTCStatsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveWebRTCStats(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::SaveWebRTCStatsOutcomeCallable CCCClient::saveWebRTCStatsCallable(const SaveWebRTCStatsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveWebRTCStats(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetContactIdentifyByOutBoundTaskIdOutcome CCCClient::getContactIdentifyByOutBoundTaskId(const GetContactIdentifyByOutBoundTaskIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetContactIdentifyByOutBoundTaskIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetContactIdentifyByOutBoundTaskIdOutcome(GetContactIdentifyByOutBoundTaskIdResult(outcome.result())); + else + return GetContactIdentifyByOutBoundTaskIdOutcome(outcome.error()); +} + +void CCCClient::getContactIdentifyByOutBoundTaskIdAsync(const GetContactIdentifyByOutBoundTaskIdRequest& request, const GetContactIdentifyByOutBoundTaskIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getContactIdentifyByOutBoundTaskId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetContactIdentifyByOutBoundTaskIdOutcomeCallable CCCClient::getContactIdentifyByOutBoundTaskIdCallable(const GetContactIdentifyByOutBoundTaskIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getContactIdentifyByOutBoundTaskId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::GetJobListOutcome CCCClient::getJobList(const GetJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +195,42 @@ CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsers return task->get_future(); } +CCCClient::ListCallEventDetailByContactIdOutcome CCCClient::listCallEventDetailByContactId(const ListCallEventDetailByContactIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCallEventDetailByContactIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCallEventDetailByContactIdOutcome(ListCallEventDetailByContactIdResult(outcome.result())); + else + return ListCallEventDetailByContactIdOutcome(outcome.error()); +} + +void CCCClient::listCallEventDetailByContactIdAsync(const ListCallEventDetailByContactIdRequest& request, const ListCallEventDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCallEventDetailByContactId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListCallEventDetailByContactIdOutcomeCallable CCCClient::listCallEventDetailByContactIdCallable(const ListCallEventDetailByContactIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCallEventDetailByContactId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,36 +303,36 @@ CCCClient::TwoPartiesCallOutcomeCallable CCCClient::twoPartiesCallCallable(const return task->get_future(); } -CCCClient::DeleteSurveyOutcome CCCClient::deleteSurvey(const DeleteSurveyRequest &request) const +CCCClient::ListSkillGroupSummaryReportsSinceMidnightOutcome CCCClient::listSkillGroupSummaryReportsSinceMidnight(const ListSkillGroupSummaryReportsSinceMidnightRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteSurveyOutcome(endpointOutcome.error()); + return ListSkillGroupSummaryReportsSinceMidnightOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteSurveyOutcome(DeleteSurveyResult(outcome.result())); + return ListSkillGroupSummaryReportsSinceMidnightOutcome(ListSkillGroupSummaryReportsSinceMidnightResult(outcome.result())); else - return DeleteSurveyOutcome(outcome.error()); + return ListSkillGroupSummaryReportsSinceMidnightOutcome(outcome.error()); } -void CCCClient::deleteSurveyAsync(const DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listSkillGroupSummaryReportsSinceMidnightAsync(const ListSkillGroupSummaryReportsSinceMidnightRequest& request, const ListSkillGroupSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteSurvey(request), context); + handler(this, request, listSkillGroupSummaryReportsSinceMidnight(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::DeleteSurveyOutcomeCallable CCCClient::deleteSurveyCallable(const DeleteSurveyRequest &request) const +CCCClient::ListSkillGroupSummaryReportsSinceMidnightOutcomeCallable CCCClient::listSkillGroupSummaryReportsSinceMidnightCallable(const ListSkillGroupSummaryReportsSinceMidnightRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteSurvey(request); + return this->listSkillGroupSummaryReportsSinceMidnight(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -267,6 +375,42 @@ CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(c return task->get_future(); } +CCCClient::ListMediasOutcome CCCClient::listMedias(const ListMediasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMediasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMediasOutcome(ListMediasResult(outcome.result())); + else + return ListMediasOutcome(outcome.error()); +} + +void CCCClient::listMediasAsync(const ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMedias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListMediasOutcomeCallable CCCClient::listMediasCallable(const ListMediasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMedias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::DownloadUnreachableContactsOutcome CCCClient::downloadUnreachableContacts(const DownloadUnreachableContactsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,36 +483,36 @@ CCCClient::DialogueOutcomeCallable CCCClient::dialogueCallable(const DialogueReq return task->get_future(); } -CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const +CCCClient::SimpleDialOutcome CCCClient::simpleDial(const SimpleDialRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RefreshTokenOutcome(endpointOutcome.error()); + return SimpleDialOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RefreshTokenOutcome(RefreshTokenResult(outcome.result())); + return SimpleDialOutcome(SimpleDialResult(outcome.result())); else - return RefreshTokenOutcome(outcome.error()); + return SimpleDialOutcome(outcome.error()); } -void CCCClient::refreshTokenAsync(const RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::simpleDialAsync(const SimpleDialRequest& request, const SimpleDialAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, refreshToken(request), context); + handler(this, request, simpleDial(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const RefreshTokenRequest &request) const +CCCClient::SimpleDialOutcomeCallable CCCClient::simpleDialCallable(const SimpleDialRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->refreshToken(request); + return this->simpleDial(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -483,36 +627,36 @@ CCCClient::GetJobTemplateDownloadParamsOutcomeCallable CCCClient::getJobTemplate return task->get_future(); } -CCCClient::RemoveUsersOutcome CCCClient::removeUsers(const RemoveUsersRequest &request) const +CCCClient::DownloadAllTypeRecordingOutcome CCCClient::downloadAllTypeRecording(const DownloadAllTypeRecordingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RemoveUsersOutcome(endpointOutcome.error()); + return DownloadAllTypeRecordingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RemoveUsersOutcome(RemoveUsersResult(outcome.result())); + return DownloadAllTypeRecordingOutcome(DownloadAllTypeRecordingResult(outcome.result())); else - return RemoveUsersOutcome(outcome.error()); + return DownloadAllTypeRecordingOutcome(outcome.error()); } -void CCCClient::removeUsersAsync(const RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::downloadAllTypeRecordingAsync(const DownloadAllTypeRecordingRequest& request, const DownloadAllTypeRecordingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, removeUsers(request), context); + handler(this, request, downloadAllTypeRecording(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::RemoveUsersOutcomeCallable CCCClient::removeUsersCallable(const RemoveUsersRequest &request) const +CCCClient::DownloadAllTypeRecordingOutcomeCallable CCCClient::downloadAllTypeRecordingCallable(const DownloadAllTypeRecordingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->removeUsers(request); + return this->downloadAllTypeRecording(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -555,144 +699,72 @@ CCCClient::CancelPredictiveJobsOutcomeCallable CCCClient::cancelPredictiveJobsCa return task->get_future(); } -CCCClient::StartBack2BackCallOutcome CCCClient::startBack2BackCall(const StartBack2BackCallRequest &request) const +CCCClient::AddAgentDeviceOutcome CCCClient::addAgentDevice(const AddAgentDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartBack2BackCallOutcome(endpointOutcome.error()); + return AddAgentDeviceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartBack2BackCallOutcome(StartBack2BackCallResult(outcome.result())); + return AddAgentDeviceOutcome(AddAgentDeviceResult(outcome.result())); else - return StartBack2BackCallOutcome(outcome.error()); + return AddAgentDeviceOutcome(outcome.error()); } -void CCCClient::startBack2BackCallAsync(const StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::addAgentDeviceAsync(const AddAgentDeviceRequest& request, const AddAgentDeviceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startBack2BackCall(request), context); + handler(this, request, addAgentDevice(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallable(const StartBack2BackCallRequest &request) const +CCCClient::AddAgentDeviceOutcomeCallable CCCClient::addAgentDeviceCallable(const AddAgentDeviceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startBack2BackCall(request); + return this->addAgentDevice(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::PublishSurveyOutcome CCCClient::publishSurvey(const PublishSurveyRequest &request) const +CCCClient::ListPrivacyNumberCallDetailsOutcome CCCClient::listPrivacyNumberCallDetails(const ListPrivacyNumberCallDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PublishSurveyOutcome(endpointOutcome.error()); + return ListPrivacyNumberCallDetailsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PublishSurveyOutcome(PublishSurveyResult(outcome.result())); + return ListPrivacyNumberCallDetailsOutcome(ListPrivacyNumberCallDetailsResult(outcome.result())); else - return PublishSurveyOutcome(outcome.error()); + return ListPrivacyNumberCallDetailsOutcome(outcome.error()); } -void CCCClient::publishSurveyAsync(const PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listPrivacyNumberCallDetailsAsync(const ListPrivacyNumberCallDetailsRequest& request, const ListPrivacyNumberCallDetailsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, publishSurvey(request), context); + handler(this, request, listPrivacyNumberCallDetails(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::PublishSurveyOutcomeCallable CCCClient::publishSurveyCallable(const PublishSurveyRequest &request) const +CCCClient::ListPrivacyNumberCallDetailsOutcomeCallable CCCClient::listPrivacyNumberCallDetailsCallable(const ListPrivacyNumberCallDetailsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->publishSurvey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUserOutcome(GetUserResult(outcome.result())); - else - return GetUserOutcome(outcome.error()); -} - -void CCCClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetConversationListOutcome CCCClient::getConversationList(const GetConversationListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConversationListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConversationListOutcome(GetConversationListResult(outcome.result())); - else - return GetConversationListOutcome(outcome.error()); -} - -void CCCClient::getConversationListAsync(const GetConversationListRequest& request, const GetConversationListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConversationList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetConversationListOutcomeCallable CCCClient::getConversationListCallable(const GetConversationListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConversationList(request); + return this->listPrivacyNumberCallDetails(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -843,42 +915,6 @@ CCCClient::ListJobGroupsOutcomeCallable CCCClient::listJobGroupsCallable(const L return task->get_future(); } -CCCClient::ListCallDetailRecordsOutcome CCCClient::listCallDetailRecords(const ListCallDetailRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCallDetailRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCallDetailRecordsOutcome(ListCallDetailRecordsResult(outcome.result())); - else - return ListCallDetailRecordsOutcome(outcome.error()); -} - -void CCCClient::listCallDetailRecordsAsync(const ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCallDetailRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecordsCallable(const ListCallDetailRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCallDetailRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,36 +951,72 @@ CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const return task->get_future(); } -CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const +CCCClient::FindUsersOutcome CCCClient::findUsers(const FindUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRecordingsOutcome(endpointOutcome.error()); + return FindUsersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRecordingsOutcome(ListRecordingsResult(outcome.result())); + return FindUsersOutcome(FindUsersResult(outcome.result())); else - return ListRecordingsOutcome(outcome.error()); + return FindUsersOutcome(outcome.error()); } -void CCCClient::listRecordingsAsync(const ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::findUsersAsync(const FindUsersRequest& request, const FindUsersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRecordings(request), context); + handler(this, request, findUsers(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const ListRecordingsRequest &request) const +CCCClient::FindUsersOutcomeCallable CCCClient::findUsersCallable(const FindUsersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRecordings(request); + return this->findUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DownloadCabRecordingOutcome CCCClient::downloadCabRecording(const DownloadCabRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadCabRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadCabRecordingOutcome(DownloadCabRecordingResult(outcome.result())); + else + return DownloadCabRecordingOutcome(outcome.error()); +} + +void CCCClient::downloadCabRecordingAsync(const DownloadCabRecordingRequest& request, const DownloadCabRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadCabRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DownloadCabRecordingOutcomeCallable CCCClient::downloadCabRecordingCallable(const DownloadCabRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadCabRecording(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -987,6 +1059,42 @@ CCCClient::EncryptOutcomeCallable CCCClient::encryptCallable(const EncryptReques return task->get_future(); } +CCCClient::PredictiveRecordFailureOutcome CCCClient::predictiveRecordFailure(const PredictiveRecordFailureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PredictiveRecordFailureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PredictiveRecordFailureOutcome(PredictiveRecordFailureResult(outcome.result())); + else + return PredictiveRecordFailureOutcome(outcome.error()); +} + +void CCCClient::predictiveRecordFailureAsync(const PredictiveRecordFailureRequest& request, const PredictiveRecordFailureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, predictiveRecordFailure(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PredictiveRecordFailureOutcomeCallable CCCClient::predictiveRecordFailureCallable(const PredictiveRecordFailureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->predictiveRecordFailure(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::SubmitBatchJobsOutcome CCCClient::submitBatchJobs(const SubmitBatchJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,108 +1203,144 @@ CCCClient::GetJobDataUploadParamsOutcomeCallable CCCClient::getJobDataUploadPara return task->get_future(); } -CCCClient::ListBasicStatisticsReportSubItemsOutcome CCCClient::listBasicStatisticsReportSubItems(const ListBasicStatisticsReportSubItemsRequest &request) const +CCCClient::CreateCCCPostOrderOutcome CCCClient::createCCCPostOrder(const CreateCCCPostOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListBasicStatisticsReportSubItemsOutcome(endpointOutcome.error()); + return CreateCCCPostOrderOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListBasicStatisticsReportSubItemsOutcome(ListBasicStatisticsReportSubItemsResult(outcome.result())); + return CreateCCCPostOrderOutcome(CreateCCCPostOrderResult(outcome.result())); else - return ListBasicStatisticsReportSubItemsOutcome(outcome.error()); + return CreateCCCPostOrderOutcome(outcome.error()); } -void CCCClient::listBasicStatisticsReportSubItemsAsync(const ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::createCCCPostOrderAsync(const CreateCCCPostOrderRequest& request, const CreateCCCPostOrderAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listBasicStatisticsReportSubItems(request), context); + handler(this, request, createCCCPostOrder(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListBasicStatisticsReportSubItemsOutcomeCallable CCCClient::listBasicStatisticsReportSubItemsCallable(const ListBasicStatisticsReportSubItemsRequest &request) const +CCCClient::CreateCCCPostOrderOutcomeCallable CCCClient::createCCCPostOrderCallable(const CreateCCCPostOrderRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listBasicStatisticsReportSubItems(request); + return this->createCCCPostOrder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::SuspendJobsOutcome CCCClient::suspendJobs(const SuspendJobsRequest &request) const +CCCClient::ModifyAgentDeviceOutcome CCCClient::modifyAgentDevice(const ModifyAgentDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SuspendJobsOutcome(endpointOutcome.error()); + return ModifyAgentDeviceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SuspendJobsOutcome(SuspendJobsResult(outcome.result())); + return ModifyAgentDeviceOutcome(ModifyAgentDeviceResult(outcome.result())); else - return SuspendJobsOutcome(outcome.error()); + return ModifyAgentDeviceOutcome(outcome.error()); } -void CCCClient::suspendJobsAsync(const SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::modifyAgentDeviceAsync(const ModifyAgentDeviceRequest& request, const ModifyAgentDeviceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, suspendJobs(request), context); + handler(this, request, modifyAgentDevice(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::SuspendJobsOutcomeCallable CCCClient::suspendJobsCallable(const SuspendJobsRequest &request) const +CCCClient::ModifyAgentDeviceOutcomeCallable CCCClient::modifyAgentDeviceCallable(const ModifyAgentDeviceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->suspendJobs(request); + return this->modifyAgentDevice(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetJobGroupOutcome CCCClient::getJobGroup(const GetJobGroupRequest &request) const +CCCClient::CreatePredictiveJobGroupOutcome CCCClient::createPredictiveJobGroup(const CreatePredictiveJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetJobGroupOutcome(endpointOutcome.error()); + return CreatePredictiveJobGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetJobGroupOutcome(GetJobGroupResult(outcome.result())); + return CreatePredictiveJobGroupOutcome(CreatePredictiveJobGroupResult(outcome.result())); else - return GetJobGroupOutcome(outcome.error()); + return CreatePredictiveJobGroupOutcome(outcome.error()); } -void CCCClient::getJobGroupAsync(const GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::createPredictiveJobGroupAsync(const CreatePredictiveJobGroupRequest& request, const CreatePredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getJobGroup(request), context); + handler(this, request, createPredictiveJobGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetJobGroupOutcomeCallable CCCClient::getJobGroupCallable(const GetJobGroupRequest &request) const +CCCClient::CreatePredictiveJobGroupOutcomeCallable CCCClient::createPredictiveJobGroupCallable(const CreatePredictiveJobGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getJobGroup(request); + return this->createPredictiveJobGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetCallMeasureSummaryReportOutcome CCCClient::getCallMeasureSummaryReport(const GetCallMeasureSummaryReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCallMeasureSummaryReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCallMeasureSummaryReportOutcome(GetCallMeasureSummaryReportResult(outcome.result())); + else + return GetCallMeasureSummaryReportOutcome(outcome.error()); +} + +void CCCClient::getCallMeasureSummaryReportAsync(const GetCallMeasureSummaryReportRequest& request, const GetCallMeasureSummaryReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCallMeasureSummaryReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetCallMeasureSummaryReportOutcomeCallable CCCClient::getCallMeasureSummaryReportCallable(const GetCallMeasureSummaryReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCallMeasureSummaryReport(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1239,108 +1383,144 @@ CCCClient::GetJobStatusByCallIdOutcomeCallable CCCClient::getJobStatusByCallIdCa return task->get_future(); } -CCCClient::ListUnreachableContactsOutcome CCCClient::listUnreachableContacts(const ListUnreachableContactsRequest &request) const +CCCClient::RemoveUsersFromSkillGroupOutcome CCCClient::removeUsersFromSkillGroup(const RemoveUsersFromSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListUnreachableContactsOutcome(endpointOutcome.error()); + return RemoveUsersFromSkillGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListUnreachableContactsOutcome(ListUnreachableContactsResult(outcome.result())); + return RemoveUsersFromSkillGroupOutcome(RemoveUsersFromSkillGroupResult(outcome.result())); else - return ListUnreachableContactsOutcome(outcome.error()); + return RemoveUsersFromSkillGroupOutcome(outcome.error()); } -void CCCClient::listUnreachableContactsAsync(const ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::removeUsersFromSkillGroupAsync(const RemoveUsersFromSkillGroupRequest& request, const RemoveUsersFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listUnreachableContacts(request), context); + handler(this, request, removeUsersFromSkillGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListUnreachableContactsOutcomeCallable CCCClient::listUnreachableContactsCallable(const ListUnreachableContactsRequest &request) const +CCCClient::RemoveUsersFromSkillGroupOutcomeCallable CCCClient::removeUsersFromSkillGroupCallable(const RemoveUsersFromSkillGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listUnreachableContacts(request); + return this->removeUsersFromSkillGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ModifySkillGroupOutcome CCCClient::modifySkillGroup(const ModifySkillGroupRequest &request) const +CCCClient::SendPredefinedShortMessageOutcome CCCClient::sendPredefinedShortMessage(const SendPredefinedShortMessageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifySkillGroupOutcome(endpointOutcome.error()); + return SendPredefinedShortMessageOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifySkillGroupOutcome(ModifySkillGroupResult(outcome.result())); + return SendPredefinedShortMessageOutcome(SendPredefinedShortMessageResult(outcome.result())); else - return ModifySkillGroupOutcome(outcome.error()); + return SendPredefinedShortMessageOutcome(outcome.error()); } -void CCCClient::modifySkillGroupAsync(const ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::sendPredefinedShortMessageAsync(const SendPredefinedShortMessageRequest& request, const SendPredefinedShortMessageAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifySkillGroup(request), context); + handler(this, request, sendPredefinedShortMessage(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ModifySkillGroupOutcomeCallable CCCClient::modifySkillGroupCallable(const ModifySkillGroupRequest &request) const +CCCClient::SendPredefinedShortMessageOutcomeCallable CCCClient::sendPredefinedShortMessageCallable(const SendPredefinedShortMessageRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifySkillGroup(request); + return this->sendPredefinedShortMessage(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetConversationDetailByContactIdOutcome CCCClient::getConversationDetailByContactId(const GetConversationDetailByContactIdRequest &request) const +CCCClient::PredictiveRecordSuccessOutcome CCCClient::predictiveRecordSuccess(const PredictiveRecordSuccessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetConversationDetailByContactIdOutcome(endpointOutcome.error()); + return PredictiveRecordSuccessOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetConversationDetailByContactIdOutcome(GetConversationDetailByContactIdResult(outcome.result())); + return PredictiveRecordSuccessOutcome(PredictiveRecordSuccessResult(outcome.result())); else - return GetConversationDetailByContactIdOutcome(outcome.error()); + return PredictiveRecordSuccessOutcome(outcome.error()); } -void CCCClient::getConversationDetailByContactIdAsync(const GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::predictiveRecordSuccessAsync(const PredictiveRecordSuccessRequest& request, const PredictiveRecordSuccessAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getConversationDetailByContactId(request), context); + handler(this, request, predictiveRecordSuccess(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetConversationDetailByContactIdOutcomeCallable CCCClient::getConversationDetailByContactIdCallable(const GetConversationDetailByContactIdRequest &request) const +CCCClient::PredictiveRecordSuccessOutcomeCallable CCCClient::predictiveRecordSuccessCallable(const PredictiveRecordSuccessRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getConversationDetailByContactId(request); + return this->predictiveRecordSuccess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyCabInstanceOutcome CCCClient::modifyCabInstance(const ModifyCabInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCabInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCabInstanceOutcome(ModifyCabInstanceResult(outcome.result())); + else + return ModifyCabInstanceOutcome(outcome.error()); +} + +void CCCClient::modifyCabInstanceAsync(const ModifyCabInstanceRequest& request, const ModifyCabInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCabInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyCabInstanceOutcomeCallable CCCClient::modifyCabInstanceCallable(const ModifyCabInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCabInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1383,42 +1563,6 @@ CCCClient::ListRecordingsByContactIdOutcomeCallable CCCClient::listRecordingsByC return task->get_future(); } -CCCClient::LaunchAppraiseOutcome CCCClient::launchAppraise(const LaunchAppraiseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return LaunchAppraiseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return LaunchAppraiseOutcome(LaunchAppraiseResult(outcome.result())); - else - return LaunchAppraiseOutcome(outcome.error()); -} - -void CCCClient::launchAppraiseAsync(const LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, launchAppraise(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::LaunchAppraiseOutcomeCallable CCCClient::launchAppraiseCallable(const LaunchAppraiseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->launchAppraise(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CCCClient::DeleteSkillGroupOutcome CCCClient::deleteSkillGroup(const DeleteSkillGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,108 +1599,180 @@ CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(c return task->get_future(); } -CCCClient::ModifyUserOutcome CCCClient::modifyUser(const ModifyUserRequest &request) const +CCCClient::GetJobFileUploadUrlOutcome CCCClient::getJobFileUploadUrl(const GetJobFileUploadUrlRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyUserOutcome(endpointOutcome.error()); + return GetJobFileUploadUrlOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyUserOutcome(ModifyUserResult(outcome.result())); + return GetJobFileUploadUrlOutcome(GetJobFileUploadUrlResult(outcome.result())); else - return ModifyUserOutcome(outcome.error()); + return GetJobFileUploadUrlOutcome(outcome.error()); } -void CCCClient::modifyUserAsync(const ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getJobFileUploadUrlAsync(const GetJobFileUploadUrlRequest& request, const GetJobFileUploadUrlAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyUser(request), context); + handler(this, request, getJobFileUploadUrl(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ModifyUserOutcomeCallable CCCClient::modifyUserCallable(const ModifyUserRequest &request) const +CCCClient::GetJobFileUploadUrlOutcomeCallable CCCClient::getJobFileUploadUrlCallable(const GetJobFileUploadUrlRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyUser(request); + return this->getJobFileUploadUrl(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const +CCCClient::CallOnlinePrivacyNumberOutcome CCCClient::callOnlinePrivacyNumber(const CallOnlinePrivacyNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSkillGroupsOutcome(endpointOutcome.error()); + return CallOnlinePrivacyNumberOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSkillGroupsOutcome(ListSkillGroupsResult(outcome.result())); + return CallOnlinePrivacyNumberOutcome(CallOnlinePrivacyNumberResult(outcome.result())); else - return ListSkillGroupsOutcome(outcome.error()); + return CallOnlinePrivacyNumberOutcome(outcome.error()); } -void CCCClient::listSkillGroupsAsync(const ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::callOnlinePrivacyNumberAsync(const CallOnlinePrivacyNumberRequest& request, const CallOnlinePrivacyNumberAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listSkillGroups(request), context); + handler(this, request, callOnlinePrivacyNumber(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(const ListSkillGroupsRequest &request) const +CCCClient::CallOnlinePrivacyNumberOutcomeCallable CCCClient::callOnlinePrivacyNumberCallable(const CallOnlinePrivacyNumberRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listSkillGroups(request); + return this->callOnlinePrivacyNumber(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::CreateScenarioOutcome CCCClient::createScenario(const CreateScenarioRequest &request) const +CCCClient::GetRecordOssUploadParamOutcome CCCClient::getRecordOssUploadParam(const GetRecordOssUploadParamRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateScenarioOutcome(endpointOutcome.error()); + return GetRecordOssUploadParamOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateScenarioOutcome(CreateScenarioResult(outcome.result())); + return GetRecordOssUploadParamOutcome(GetRecordOssUploadParamResult(outcome.result())); else - return CreateScenarioOutcome(outcome.error()); + return GetRecordOssUploadParamOutcome(outcome.error()); } -void CCCClient::createScenarioAsync(const CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::getRecordOssUploadParamAsync(const GetRecordOssUploadParamRequest& request, const GetRecordOssUploadParamAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createScenario(request), context); + handler(this, request, getRecordOssUploadParam(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreateScenarioOutcomeCallable CCCClient::createScenarioCallable(const CreateScenarioRequest &request) const +CCCClient::GetRecordOssUploadParamOutcomeCallable CCCClient::getRecordOssUploadParamCallable(const GetRecordOssUploadParamRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createScenario(request); + return this->getRecordOssUploadParam(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListRecordingOfDualTrackOutcome CCCClient::listRecordingOfDualTrack(const ListRecordingOfDualTrackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRecordingOfDualTrackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRecordingOfDualTrackOutcome(ListRecordingOfDualTrackResult(outcome.result())); + else + return ListRecordingOfDualTrackOutcome(outcome.error()); +} + +void CCCClient::listRecordingOfDualTrackAsync(const ListRecordingOfDualTrackRequest& request, const ListRecordingOfDualTrackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRecordingOfDualTrack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListRecordingOfDualTrackOutcomeCallable CCCClient::listRecordingOfDualTrackCallable(const ListRecordingOfDualTrackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRecordingOfDualTrack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CommitContactFlowVersionModificationOutcome CCCClient::commitContactFlowVersionModification(const CommitContactFlowVersionModificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CommitContactFlowVersionModificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CommitContactFlowVersionModificationOutcome(CommitContactFlowVersionModificationResult(outcome.result())); + else + return CommitContactFlowVersionModificationOutcome(outcome.error()); +} + +void CCCClient::commitContactFlowVersionModificationAsync(const CommitContactFlowVersionModificationRequest& request, const CommitContactFlowVersionModificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, commitContactFlowVersionModification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CommitContactFlowVersionModificationOutcomeCallable CCCClient::commitContactFlowVersionModificationCallable(const CommitContactFlowVersionModificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->commitContactFlowVersionModification(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1599,6 +1815,42 @@ CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable return task->get_future(); } +CCCClient::GetJobOutcome CCCClient::getJob(const GetJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobOutcome(GetJobResult(outcome.result())); + else + return GetJobOutcome(outcome.error()); +} + +void CCCClient::getJobAsync(const GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetJobOutcomeCallable CCCClient::getJobCallable(const GetJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::PickLocalNumberOutcome CCCClient::pickLocalNumber(const PickLocalNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,36 +1887,36 @@ CCCClient::PickLocalNumberOutcomeCallable CCCClient::pickLocalNumberCallable(con return task->get_future(); } -CCCClient::GetJobOutcome CCCClient::getJob(const GetJobRequest &request) const +CCCClient::ListInstancesOfUserOutcome CCCClient::listInstancesOfUser(const ListInstancesOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetJobOutcome(endpointOutcome.error()); + return ListInstancesOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetJobOutcome(GetJobResult(outcome.result())); + return ListInstancesOfUserOutcome(ListInstancesOfUserResult(outcome.result())); else - return GetJobOutcome(outcome.error()); + return ListInstancesOfUserOutcome(outcome.error()); } -void CCCClient::getJobAsync(const GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listInstancesOfUserAsync(const ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getJob(request), context); + handler(this, request, listInstancesOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetJobOutcomeCallable CCCClient::getJobCallable(const GetJobRequest &request) const +CCCClient::ListInstancesOfUserOutcomeCallable CCCClient::listInstancesOfUserCallable(const ListInstancesOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getJob(request); + return this->listInstancesOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1743,150 +1995,6 @@ CCCClient::CancelJobsOutcomeCallable CCCClient::cancelJobsCallable(const CancelJ return task->get_future(); } -CCCClient::GetConfigOutcome CCCClient::getConfig(const GetConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConfigOutcome(GetConfigResult(outcome.result())); - else - return GetConfigOutcome(outcome.error()); -} - -void CCCClient::getConfigAsync(const GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetConfigOutcomeCallable CCCClient::getConfigCallable(const GetConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::DownloadRecordingOutcome CCCClient::downloadRecording(const DownloadRecordingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DownloadRecordingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DownloadRecordingOutcome(DownloadRecordingResult(outcome.result())); - else - return DownloadRecordingOutcome(outcome.error()); -} - -void CCCClient::downloadRecordingAsync(const DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, downloadRecording(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::DownloadRecordingOutcomeCallable CCCClient::downloadRecordingCallable(const DownloadRecordingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->downloadRecording(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GenerateAgentStatisticReportOutcome CCCClient::generateAgentStatisticReport(const GenerateAgentStatisticReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateAgentStatisticReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateAgentStatisticReportOutcome(GenerateAgentStatisticReportResult(outcome.result())); - else - return GenerateAgentStatisticReportOutcome(outcome.error()); -} - -void CCCClient::generateAgentStatisticReportAsync(const GenerateAgentStatisticReportRequest& request, const GenerateAgentStatisticReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateAgentStatisticReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GenerateAgentStatisticReportOutcomeCallable CCCClient::generateAgentStatisticReportCallable(const GenerateAgentStatisticReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateAgentStatisticReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::CreateScenarioFromTemplateOutcome CCCClient::createScenarioFromTemplate(const CreateScenarioFromTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateScenarioFromTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateScenarioFromTemplateOutcome(CreateScenarioFromTemplateResult(outcome.result())); - else - return CreateScenarioFromTemplateOutcome(outcome.error()); -} - -void CCCClient::createScenarioFromTemplateAsync(const CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createScenarioFromTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateScenarioFromTemplateOutcomeCallable CCCClient::createScenarioFromTemplateCallable(const CreateScenarioFromTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createScenarioFromTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CCCClient::CreateJobGroupOutcome CCCClient::createJobGroup(const CreateJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,42 +2031,6 @@ CCCClient::CreateJobGroupOutcomeCallable CCCClient::createJobGroupCallable(const return task->get_future(); } -CCCClient::GetTaskListOutcome CCCClient::getTaskList(const GetTaskListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTaskListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTaskListOutcome(GetTaskListResult(outcome.result())); - else - return GetTaskListOutcome(outcome.error()); -} - -void CCCClient::getTaskListAsync(const GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTaskList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetTaskListOutcomeCallable CCCClient::getTaskListCallable(const GetTaskListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTaskList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CCCClient::DownloadOriginalStatisticsReportOutcome CCCClient::downloadOriginalStatisticsReport(const DownloadOriginalStatisticsReportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,72 +2067,36 @@ CCCClient::DownloadOriginalStatisticsReportOutcomeCallable CCCClient::downloadOr return task->get_future(); } -CCCClient::ListScenarioTemplatesOutcome CCCClient::listScenarioTemplates(const ListScenarioTemplatesRequest &request) const +CCCClient::ListSkillGroupSummaryReportsOutcome CCCClient::listSkillGroupSummaryReports(const ListSkillGroupSummaryReportsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListScenarioTemplatesOutcome(endpointOutcome.error()); + return ListSkillGroupSummaryReportsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListScenarioTemplatesOutcome(ListScenarioTemplatesResult(outcome.result())); + return ListSkillGroupSummaryReportsOutcome(ListSkillGroupSummaryReportsResult(outcome.result())); else - return ListScenarioTemplatesOutcome(outcome.error()); + return ListSkillGroupSummaryReportsOutcome(outcome.error()); } -void CCCClient::listScenarioTemplatesAsync(const ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listSkillGroupSummaryReportsAsync(const ListSkillGroupSummaryReportsRequest& request, const ListSkillGroupSummaryReportsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listScenarioTemplates(request), context); + handler(this, request, listSkillGroupSummaryReports(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListScenarioTemplatesOutcomeCallable CCCClient::listScenarioTemplatesCallable(const ListScenarioTemplatesRequest &request) const +CCCClient::ListSkillGroupSummaryReportsOutcomeCallable CCCClient::listSkillGroupSummaryReportsCallable(const ListSkillGroupSummaryReportsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listScenarioTemplates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ResumeJobsOutcome CCCClient::resumeJobs(const ResumeJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResumeJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResumeJobsOutcome(ResumeJobsResult(outcome.result())); - else - return ResumeJobsOutcome(outcome.error()); -} - -void CCCClient::resumeJobsAsync(const ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resumeJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ResumeJobsOutcomeCallable CCCClient::resumeJobsCallable(const ResumeJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resumeJobs(request); + return this->listSkillGroupSummaryReports(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2139,6 +2175,42 @@ CCCClient::GetSurveyOutcomeCallable CCCClient::getSurveyCallable(const GetSurvey return task->get_future(); } +CCCClient::ListRecentCallRecordsOutcome CCCClient::listRecentCallRecords(const ListRecentCallRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRecentCallRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRecentCallRecordsOutcome(ListRecentCallRecordsResult(outcome.result())); + else + return ListRecentCallRecordsOutcome(outcome.error()); +} + +void CCCClient::listRecentCallRecordsAsync(const ListRecentCallRecordsRequest& request, const ListRecentCallRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRecentCallRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListRecentCallRecordsOutcomeCallable CCCClient::listRecentCallRecordsCallable(const ListRecentCallRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRecentCallRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListRolesOutcome CCCClient::listRoles(const ListRolesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2211,36 +2283,72 @@ CCCClient::ListConfigOutcomeCallable CCCClient::listConfigCallable(const ListCon return task->get_future(); } -CCCClient::LaunchShortMessageAppraiseOutcome CCCClient::launchShortMessageAppraise(const LaunchShortMessageAppraiseRequest &request) const +CCCClient::ListCallMeasureSummaryReportsOutcome CCCClient::listCallMeasureSummaryReports(const ListCallMeasureSummaryReportsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return LaunchShortMessageAppraiseOutcome(endpointOutcome.error()); + return ListCallMeasureSummaryReportsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return LaunchShortMessageAppraiseOutcome(LaunchShortMessageAppraiseResult(outcome.result())); + return ListCallMeasureSummaryReportsOutcome(ListCallMeasureSummaryReportsResult(outcome.result())); else - return LaunchShortMessageAppraiseOutcome(outcome.error()); + return ListCallMeasureSummaryReportsOutcome(outcome.error()); } -void CCCClient::launchShortMessageAppraiseAsync(const LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listCallMeasureSummaryReportsAsync(const ListCallMeasureSummaryReportsRequest& request, const ListCallMeasureSummaryReportsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, launchShortMessageAppraise(request), context); + handler(this, request, listCallMeasureSummaryReports(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::LaunchShortMessageAppraiseOutcomeCallable CCCClient::launchShortMessageAppraiseCallable(const LaunchShortMessageAppraiseRequest &request) const +CCCClient::ListCallMeasureSummaryReportsOutcomeCallable CCCClient::listCallMeasureSummaryReportsCallable(const ListCallMeasureSummaryReportsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->launchShortMessageAppraise(request); + return this->listCallMeasureSummaryReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DeleteMediaOutcome CCCClient::deleteMedia(const DeleteMediaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMediaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMediaOutcome(DeleteMediaResult(outcome.result())); + else + return DeleteMediaOutcome(outcome.error()); +} + +void CCCClient::deleteMediaAsync(const DeleteMediaRequest& request, const DeleteMediaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMedia(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DeleteMediaOutcomeCallable CCCClient::deleteMediaCallable(const DeleteMediaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMedia(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2283,6 +2391,2814 @@ CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable return task->get_future(); } +CCCClient::CreateUserOutcome CCCClient::createUser(const CreateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserOutcome(CreateUserResult(outcome.result())); + else + return CreateUserOutcome(outcome.error()); +} + +void CCCClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateUserOutcomeCallable CCCClient::createUserCallable(const CreateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListPrivilegesOfUserOutcome CCCClient::listPrivilegesOfUser(const ListPrivilegesOfUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPrivilegesOfUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPrivilegesOfUserOutcome(ListPrivilegesOfUserResult(outcome.result())); + else + return ListPrivilegesOfUserOutcome(outcome.error()); +} + +void CCCClient::listPrivilegesOfUserAsync(const ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPrivilegesOfUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListPrivilegesOfUserOutcomeCallable CCCClient::listPrivilegesOfUserCallable(const ListPrivilegesOfUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPrivilegesOfUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListSkillGroupStatesOutcome CCCClient::listSkillGroupStates(const ListSkillGroupStatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSkillGroupStatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSkillGroupStatesOutcome(ListSkillGroupStatesResult(outcome.result())); + else + return ListSkillGroupStatesOutcome(outcome.error()); +} + +void CCCClient::listSkillGroupStatesAsync(const ListSkillGroupStatesRequest& request, const ListSkillGroupStatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSkillGroupStates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListSkillGroupStatesOutcomeCallable CCCClient::listSkillGroupStatesCallable(const ListSkillGroupStatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSkillGroupStates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreatePredictiveJobsOutcome CCCClient::createPredictiveJobs(const CreatePredictiveJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePredictiveJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePredictiveJobsOutcome(CreatePredictiveJobsResult(outcome.result())); + else + return CreatePredictiveJobsOutcome(outcome.error()); +} + +void CCCClient::createPredictiveJobsAsync(const CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPredictiveJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreatePredictiveJobsOutcomeCallable CCCClient::createPredictiveJobsCallable(const CreatePredictiveJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPredictiveJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetNumberRegionInfoOutcome CCCClient::getNumberRegionInfo(const GetNumberRegionInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNumberRegionInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNumberRegionInfoOutcome(GetNumberRegionInfoResult(outcome.result())); + else + return GetNumberRegionInfoOutcome(outcome.error()); +} + +void CCCClient::getNumberRegionInfoAsync(const GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNumberRegionInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetNumberRegionInfoOutcomeCallable CCCClient::getNumberRegionInfoCallable(const GetNumberRegionInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNumberRegionInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyMediaOutcome CCCClient::modifyMedia(const ModifyMediaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyMediaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyMediaOutcome(ModifyMediaResult(outcome.result())); + else + return ModifyMediaOutcome(outcome.error()); +} + +void CCCClient::modifyMediaAsync(const ModifyMediaRequest& request, const ModifyMediaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyMedia(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyMediaOutcomeCallable CCCClient::modifyMediaCallable(const ModifyMediaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyMedia(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::PreCreateMediaOutcome CCCClient::preCreateMedia(const PreCreateMediaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreCreateMediaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreCreateMediaOutcome(PreCreateMediaResult(outcome.result())); + else + return PreCreateMediaOutcome(outcome.error()); +} + +void CCCClient::preCreateMediaAsync(const PreCreateMediaRequest& request, const PreCreateMediaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, preCreateMedia(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PreCreateMediaOutcomeCallable CCCClient::preCreateMediaCallable(const PreCreateMediaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->preCreateMedia(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListAgentEventsOutcome CCCClient::listAgentEvents(const ListAgentEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentEventsOutcome(ListAgentEventsResult(outcome.result())); + else + return ListAgentEventsOutcome(outcome.error()); +} + +void CCCClient::listAgentEventsAsync(const ListAgentEventsRequest& request, const ListAgentEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAgentEventsOutcomeCallable CCCClient::listAgentEventsCallable(const ListAgentEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetAgentDataOutcome CCCClient::getAgentData(const GetAgentDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAgentDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAgentDataOutcome(GetAgentDataResult(outcome.result())); + else + return GetAgentDataOutcome(outcome.error()); +} + +void CCCClient::getAgentDataAsync(const GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAgentData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetAgentDataOutcomeCallable CCCClient::getAgentDataCallable(const GetAgentDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAgentData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetInstanceStateOutcome CCCClient::getInstanceState(const GetInstanceStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceStateOutcome(GetInstanceStateResult(outcome.result())); + else + return GetInstanceStateOutcome(outcome.error()); +} + +void CCCClient::getInstanceStateAsync(const GetInstanceStateRequest& request, const GetInstanceStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstanceState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetInstanceStateOutcomeCallable CCCClient::getInstanceStateCallable(const GetInstanceStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstanceState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListJobStatusOutcome CCCClient::listJobStatus(const ListJobStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobStatusOutcome(ListJobStatusResult(outcome.result())); + else + return ListJobStatusOutcome(outcome.error()); +} + +void CCCClient::listJobStatusAsync(const ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListJobStatusOutcomeCallable CCCClient::listJobStatusCallable(const ListJobStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyScenarioOutcome CCCClient::modifyScenario(const ModifyScenarioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyScenarioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyScenarioOutcome(ModifyScenarioResult(outcome.result())); + else + return ModifyScenarioOutcome(outcome.error()); +} + +void CCCClient::modifyScenarioAsync(const ModifyScenarioRequest& request, const ModifyScenarioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyScenario(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyScenarioOutcomeCallable CCCClient::modifyScenarioCallable(const ModifyScenarioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyScenario(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RemoveNumberFromSkillGroupOutcome CCCClient::removeNumberFromSkillGroup(const RemoveNumberFromSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveNumberFromSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveNumberFromSkillGroupOutcome(RemoveNumberFromSkillGroupResult(outcome.result())); + else + return RemoveNumberFromSkillGroupOutcome(outcome.error()); +} + +void CCCClient::removeNumberFromSkillGroupAsync(const RemoveNumberFromSkillGroupRequest& request, const RemoveNumberFromSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeNumberFromSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemoveNumberFromSkillGroupOutcomeCallable CCCClient::removeNumberFromSkillGroupCallable(const RemoveNumberFromSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeNumberFromSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceExtensionsOutcome(GetServiceExtensionsResult(outcome.result())); + else + return GetServiceExtensionsOutcome(outcome.error()); +} + +void CCCClient::getServiceExtensionsAsync(const GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCallable(const GetServiceExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListContactFlowsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result())); + else + return ListContactFlowsOutcome(outcome.error()); +} + +void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listContactFlows(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listContactFlows(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateVoiceAppraiseOutcome CCCClient::createVoiceAppraise(const CreateVoiceAppraiseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVoiceAppraiseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVoiceAppraiseOutcome(CreateVoiceAppraiseResult(outcome.result())); + else + return CreateVoiceAppraiseOutcome(outcome.error()); +} + +void CCCClient::createVoiceAppraiseAsync(const CreateVoiceAppraiseRequest& request, const CreateVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVoiceAppraise(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateVoiceAppraiseOutcomeCallable CCCClient::createVoiceAppraiseCallable(const CreateVoiceAppraiseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVoiceAppraise(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetTURNServerListOutcome CCCClient::getTURNServerList(const GetTURNServerListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTURNServerListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTURNServerListOutcome(GetTURNServerListResult(outcome.result())); + else + return GetTURNServerListOutcome(outcome.error()); +} + +void CCCClient::getTURNServerListAsync(const GetTURNServerListRequest& request, const GetTURNServerListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTURNServerList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetTURNServerListOutcomeCallable CCCClient::getTURNServerListCallable(const GetTURNServerListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTURNServerList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DeleteInstanceOutcome CCCClient::deleteInstance(const DeleteInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteInstanceOutcome(DeleteInstanceResult(outcome.result())); + else + return DeleteInstanceOutcome(outcome.error()); +} + +void CCCClient::deleteInstanceAsync(const DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DeleteInstanceOutcomeCallable CCCClient::deleteInstanceCallable(const DeleteInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::AddBulkPhoneNumbersOutcome CCCClient::addBulkPhoneNumbers(const AddBulkPhoneNumbersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddBulkPhoneNumbersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBulkPhoneNumbersOutcome(AddBulkPhoneNumbersResult(outcome.result())); + else + return AddBulkPhoneNumbersOutcome(outcome.error()); +} + +void CCCClient::addBulkPhoneNumbersAsync(const AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBulkPhoneNumbers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AddBulkPhoneNumbersOutcomeCallable CCCClient::addBulkPhoneNumbersCallable(const AddBulkPhoneNumbersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBulkPhoneNumbers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetSmsConfigOutcome CCCClient::getSmsConfig(const GetSmsConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSmsConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSmsConfigOutcome(GetSmsConfigResult(outcome.result())); + else + return GetSmsConfigOutcome(outcome.error()); +} + +void CCCClient::getSmsConfigAsync(const GetSmsConfigRequest& request, const GetSmsConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSmsConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetSmsConfigOutcomeCallable CCCClient::getSmsConfigCallable(const GetSmsConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSmsConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DeleteSurveyOutcome CCCClient::deleteSurvey(const DeleteSurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSurveyOutcome(DeleteSurveyResult(outcome.result())); + else + return DeleteSurveyOutcome(outcome.error()); +} + +void CCCClient::deleteSurveyAsync(const DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DeleteSurveyOutcomeCallable CCCClient::deleteSurveyCallable(const DeleteSurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSurvey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyPrivacyNumberCallDetailOutcome CCCClient::modifyPrivacyNumberCallDetail(const ModifyPrivacyNumberCallDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPrivacyNumberCallDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPrivacyNumberCallDetailOutcome(ModifyPrivacyNumberCallDetailResult(outcome.result())); + else + return ModifyPrivacyNumberCallDetailOutcome(outcome.error()); +} + +void CCCClient::modifyPrivacyNumberCallDetailAsync(const ModifyPrivacyNumberCallDetailRequest& request, const ModifyPrivacyNumberCallDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPrivacyNumberCallDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyPrivacyNumberCallDetailOutcomeCallable CCCClient::modifyPrivacyNumberCallDetailCallable(const ModifyPrivacyNumberCallDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPrivacyNumberCallDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateInstanceOutcome CCCClient::createInstance(const CreateInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + else + return CreateInstanceOutcome(outcome.error()); +} + +void CCCClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateInstanceOutcomeCallable CCCClient::createInstanceCallable(const CreateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetInstanceSummaryReportByIntervalOutcome CCCClient::getInstanceSummaryReportByInterval(const GetInstanceSummaryReportByIntervalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceSummaryReportByIntervalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceSummaryReportByIntervalOutcome(GetInstanceSummaryReportByIntervalResult(outcome.result())); + else + return GetInstanceSummaryReportByIntervalOutcome(outcome.error()); +} + +void CCCClient::getInstanceSummaryReportByIntervalAsync(const GetInstanceSummaryReportByIntervalRequest& request, const GetInstanceSummaryReportByIntervalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstanceSummaryReportByInterval(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetInstanceSummaryReportByIntervalOutcomeCallable CCCClient::getInstanceSummaryReportByIntervalCallable(const GetInstanceSummaryReportByIntervalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstanceSummaryReportByInterval(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListAgentStatesOutcome CCCClient::listAgentStates(const ListAgentStatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentStatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentStatesOutcome(ListAgentStatesResult(outcome.result())); + else + return ListAgentStatesOutcome(outcome.error()); +} + +void CCCClient::listAgentStatesAsync(const ListAgentStatesRequest& request, const ListAgentStatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentStates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAgentStatesOutcomeCallable CCCClient::listAgentStatesCallable(const ListAgentStatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentStates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshTokenOutcome(RefreshTokenResult(outcome.result())); + else + return RefreshTokenOutcome(outcome.error()); +} + +void CCCClient::refreshTokenAsync(const RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const RefreshTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::SubmitCabRecordingOutcome CCCClient::submitCabRecording(const SubmitCabRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitCabRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitCabRecordingOutcome(SubmitCabRecordingResult(outcome.result())); + else + return SubmitCabRecordingOutcome(outcome.error()); +} + +void CCCClient::submitCabRecordingAsync(const SubmitCabRecordingRequest& request, const SubmitCabRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitCabRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::SubmitCabRecordingOutcomeCallable CCCClient::submitCabRecordingCallable(const SubmitCabRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitCabRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListVoiceAppraiseOutcome CCCClient::listVoiceAppraise(const ListVoiceAppraiseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVoiceAppraiseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVoiceAppraiseOutcome(ListVoiceAppraiseResult(outcome.result())); + else + return ListVoiceAppraiseOutcome(outcome.error()); +} + +void CCCClient::listVoiceAppraiseAsync(const ListVoiceAppraiseRequest& request, const ListVoiceAppraiseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVoiceAppraise(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListVoiceAppraiseOutcomeCallable CCCClient::listVoiceAppraiseCallable(const ListVoiceAppraiseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVoiceAppraise(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::RemoveUsersOutcome CCCClient::removeUsers(const RemoveUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveUsersOutcome(RemoveUsersResult(outcome.result())); + else + return RemoveUsersOutcome(outcome.error()); +} + +void CCCClient::removeUsersAsync(const RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::RemoveUsersOutcomeCallable CCCClient::removeUsersCallable(const RemoveUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetPredictiveJobOutcome CCCClient::getPredictiveJob(const GetPredictiveJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPredictiveJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPredictiveJobOutcome(GetPredictiveJobResult(outcome.result())); + else + return GetPredictiveJobOutcome(outcome.error()); +} + +void CCCClient::getPredictiveJobAsync(const GetPredictiveJobRequest& request, const GetPredictiveJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPredictiveJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetPredictiveJobOutcomeCallable CCCClient::getPredictiveJobCallable(const GetPredictiveJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPredictiveJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::StartBack2BackCallOutcome CCCClient::startBack2BackCall(const StartBack2BackCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartBack2BackCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartBack2BackCallOutcome(StartBack2BackCallResult(outcome.result())); + else + return StartBack2BackCallOutcome(outcome.error()); +} + +void CCCClient::startBack2BackCallAsync(const StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startBack2BackCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallable(const StartBack2BackCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startBack2BackCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DialExOutcome CCCClient::dialEx(const DialExRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DialExOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DialExOutcome(DialExResult(outcome.result())); + else + return DialExOutcome(outcome.error()); +} + +void CCCClient::dialExAsync(const DialExRequest& request, const DialExAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dialEx(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DialExOutcomeCallable CCCClient::dialExCallable(const DialExRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dialEx(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::PublishSurveyOutcome CCCClient::publishSurvey(const PublishSurveyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishSurveyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishSurveyOutcome(PublishSurveyResult(outcome.result())); + else + return PublishSurveyOutcome(outcome.error()); +} + +void CCCClient::publishSurveyAsync(const PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishSurvey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PublishSurveyOutcomeCallable CCCClient::publishSurveyCallable(const PublishSurveyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishSurvey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetInstanceSummaryReportOutcome CCCClient::getInstanceSummaryReport(const GetInstanceSummaryReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceSummaryReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceSummaryReportOutcome(GetInstanceSummaryReportResult(outcome.result())); + else + return GetInstanceSummaryReportOutcome(outcome.error()); +} + +void CCCClient::getInstanceSummaryReportAsync(const GetInstanceSummaryReportRequest& request, const GetInstanceSummaryReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstanceSummaryReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetInstanceSummaryReportOutcomeCallable CCCClient::getInstanceSummaryReportCallable(const GetInstanceSummaryReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstanceSummaryReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifySkillGroupOutboundNumbersOutcome CCCClient::modifySkillGroupOutboundNumbers(const ModifySkillGroupOutboundNumbersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySkillGroupOutboundNumbersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySkillGroupOutboundNumbersOutcome(ModifySkillGroupOutboundNumbersResult(outcome.result())); + else + return ModifySkillGroupOutboundNumbersOutcome(outcome.error()); +} + +void CCCClient::modifySkillGroupOutboundNumbersAsync(const ModifySkillGroupOutboundNumbersRequest& request, const ModifySkillGroupOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySkillGroupOutboundNumbers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifySkillGroupOutboundNumbersOutcomeCallable CCCClient::modifySkillGroupOutboundNumbersCallable(const ModifySkillGroupOutboundNumbersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySkillGroupOutboundNumbers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserOutcome(GetUserResult(outcome.result())); + else + return GetUserOutcome(outcome.error()); +} + +void CCCClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetConversationListOutcome CCCClient::getConversationList(const GetConversationListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConversationListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConversationListOutcome(GetConversationListResult(outcome.result())); + else + return GetConversationListOutcome(outcome.error()); +} + +void CCCClient::getConversationListAsync(const GetConversationListRequest& request, const GetConversationListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConversationList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetConversationListOutcomeCallable CCCClient::getConversationListCallable(const GetConversationListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConversationList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetInstanceSummaryReportSinceMidnightOutcome CCCClient::getInstanceSummaryReportSinceMidnight(const GetInstanceSummaryReportSinceMidnightRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceSummaryReportSinceMidnightOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceSummaryReportSinceMidnightOutcome(GetInstanceSummaryReportSinceMidnightResult(outcome.result())); + else + return GetInstanceSummaryReportSinceMidnightOutcome(outcome.error()); +} + +void CCCClient::getInstanceSummaryReportSinceMidnightAsync(const GetInstanceSummaryReportSinceMidnightRequest& request, const GetInstanceSummaryReportSinceMidnightAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstanceSummaryReportSinceMidnight(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetInstanceSummaryReportSinceMidnightOutcomeCallable CCCClient::getInstanceSummaryReportSinceMidnightCallable(const GetInstanceSummaryReportSinceMidnightRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstanceSummaryReportSinceMidnight(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListCallDetailRecordsOutcome CCCClient::listCallDetailRecords(const ListCallDetailRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCallDetailRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCallDetailRecordsOutcome(ListCallDetailRecordsResult(outcome.result())); + else + return ListCallDetailRecordsOutcome(outcome.error()); +} + +void CCCClient::listCallDetailRecordsAsync(const ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCallDetailRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecordsCallable(const ListCallDetailRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCallDetailRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListIvrTrackingDetailOutcome CCCClient::listIvrTrackingDetail(const ListIvrTrackingDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIvrTrackingDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIvrTrackingDetailOutcome(ListIvrTrackingDetailResult(outcome.result())); + else + return ListIvrTrackingDetailOutcome(outcome.error()); +} + +void CCCClient::listIvrTrackingDetailAsync(const ListIvrTrackingDetailRequest& request, const ListIvrTrackingDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIvrTrackingDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListIvrTrackingDetailOutcomeCallable CCCClient::listIvrTrackingDetailCallable(const ListIvrTrackingDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIvrTrackingDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRecordingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRecordingsOutcome(ListRecordingsResult(outcome.result())); + else + return ListRecordingsOutcome(outcome.error()); +} + +void CCCClient::listRecordingsAsync(const ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRecordings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const ListRecordingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRecordings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyNotificationConfigOutcome CCCClient::modifyNotificationConfig(const ModifyNotificationConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNotificationConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNotificationConfigOutcome(ModifyNotificationConfigResult(outcome.result())); + else + return ModifyNotificationConfigOutcome(outcome.error()); +} + +void CCCClient::modifyNotificationConfigAsync(const ModifyNotificationConfigRequest& request, const ModifyNotificationConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNotificationConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyNotificationConfigOutcomeCallable CCCClient::modifyNotificationConfigCallable(const ModifyNotificationConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNotificationConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetInstanceOutcome CCCClient::getInstance(const GetInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstanceOutcome(GetInstanceResult(outcome.result())); + else + return GetInstanceOutcome(outcome.error()); +} + +void CCCClient::getInstanceAsync(const GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetInstanceOutcomeCallable CCCClient::getInstanceCallable(const GetInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListAgentSummaryReportsOutcome CCCClient::listAgentSummaryReports(const ListAgentSummaryReportsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentSummaryReportsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentSummaryReportsOutcome(ListAgentSummaryReportsResult(outcome.result())); + else + return ListAgentSummaryReportsOutcome(outcome.error()); +} + +void CCCClient::listAgentSummaryReportsAsync(const ListAgentSummaryReportsRequest& request, const ListAgentSummaryReportsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentSummaryReports(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAgentSummaryReportsOutcomeCallable CCCClient::listAgentSummaryReportsCallable(const ListAgentSummaryReportsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentSummaryReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListBasicStatisticsReportSubItemsOutcome CCCClient::listBasicStatisticsReportSubItems(const ListBasicStatisticsReportSubItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBasicStatisticsReportSubItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBasicStatisticsReportSubItemsOutcome(ListBasicStatisticsReportSubItemsResult(outcome.result())); + else + return ListBasicStatisticsReportSubItemsOutcome(outcome.error()); +} + +void CCCClient::listBasicStatisticsReportSubItemsAsync(const ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBasicStatisticsReportSubItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListBasicStatisticsReportSubItemsOutcomeCallable CCCClient::listBasicStatisticsReportSubItemsCallable(const ListBasicStatisticsReportSubItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBasicStatisticsReportSubItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetJobGroupOutcome CCCClient::getJobGroup(const GetJobGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobGroupOutcome(GetJobGroupResult(outcome.result())); + else + return GetJobGroupOutcome(outcome.error()); +} + +void CCCClient::getJobGroupAsync(const GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetJobGroupOutcomeCallable CCCClient::getJobGroupCallable(const GetJobGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::SuspendJobsOutcome CCCClient::suspendJobs(const SuspendJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SuspendJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SuspendJobsOutcome(SuspendJobsResult(outcome.result())); + else + return SuspendJobsOutcome(outcome.error()); +} + +void CCCClient::suspendJobsAsync(const SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, suspendJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::SuspendJobsOutcomeCallable CCCClient::suspendJobsCallable(const SuspendJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->suspendJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetTURNCredentialsOutcome CCCClient::getTURNCredentials(const GetTURNCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTURNCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTURNCredentialsOutcome(GetTURNCredentialsResult(outcome.result())); + else + return GetTURNCredentialsOutcome(outcome.error()); +} + +void CCCClient::getTURNCredentialsAsync(const GetTURNCredentialsRequest& request, const GetTURNCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTURNCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetTURNCredentialsOutcomeCallable CCCClient::getTURNCredentialsCallable(const GetTURNCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTURNCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListUnreachableContactsOutcome CCCClient::listUnreachableContacts(const ListUnreachableContactsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUnreachableContactsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUnreachableContactsOutcome(ListUnreachableContactsResult(outcome.result())); + else + return ListUnreachableContactsOutcome(outcome.error()); +} + +void CCCClient::listUnreachableContactsAsync(const ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUnreachableContacts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListUnreachableContactsOutcomeCallable CCCClient::listUnreachableContactsCallable(const ListUnreachableContactsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUnreachableContacts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::AddNumberToSkillGroupOutcome CCCClient::addNumberToSkillGroup(const AddNumberToSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddNumberToSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddNumberToSkillGroupOutcome(AddNumberToSkillGroupResult(outcome.result())); + else + return AddNumberToSkillGroupOutcome(outcome.error()); +} + +void CCCClient::addNumberToSkillGroupAsync(const AddNumberToSkillGroupRequest& request, const AddNumberToSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addNumberToSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::AddNumberToSkillGroupOutcomeCallable CCCClient::addNumberToSkillGroupCallable(const AddNumberToSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addNumberToSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifySkillGroupOutcome CCCClient::modifySkillGroup(const ModifySkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySkillGroupOutcome(ModifySkillGroupResult(outcome.result())); + else + return ModifySkillGroupOutcome(outcome.error()); +} + +void CCCClient::modifySkillGroupAsync(const ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifySkillGroupOutcomeCallable CCCClient::modifySkillGroupCallable(const ModifySkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetConversationDetailByContactIdOutcome CCCClient::getConversationDetailByContactId(const GetConversationDetailByContactIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConversationDetailByContactIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConversationDetailByContactIdOutcome(GetConversationDetailByContactIdResult(outcome.result())); + else + return GetConversationDetailByContactIdOutcome(outcome.error()); +} + +void CCCClient::getConversationDetailByContactIdAsync(const GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConversationDetailByContactId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetConversationDetailByContactIdOutcomeCallable CCCClient::getConversationDetailByContactIdCallable(const GetConversationDetailByContactIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConversationDetailByContactId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetJobsProgressOutcome CCCClient::getJobsProgress(const GetJobsProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobsProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobsProgressOutcome(GetJobsProgressResult(outcome.result())); + else + return GetJobsProgressOutcome(outcome.error()); +} + +void CCCClient::getJobsProgressAsync(const GetJobsProgressRequest& request, const GetJobsProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobsProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetJobsProgressOutcomeCallable CCCClient::getJobsProgressCallable(const GetJobsProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobsProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::SaveStatsOutcome CCCClient::saveStats(const SaveStatsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveStatsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveStatsOutcome(SaveStatsResult(outcome.result())); + else + return SaveStatsOutcome(outcome.error()); +} + +void CCCClient::saveStatsAsync(const SaveStatsRequest& request, const SaveStatsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveStats(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::SaveStatsOutcomeCallable CCCClient::saveStatsCallable(const SaveStatsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveStats(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::LaunchAppraiseOutcome CCCClient::launchAppraise(const LaunchAppraiseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LaunchAppraiseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LaunchAppraiseOutcome(LaunchAppraiseResult(outcome.result())); + else + return LaunchAppraiseOutcome(outcome.error()); +} + +void CCCClient::launchAppraiseAsync(const LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, launchAppraise(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::LaunchAppraiseOutcomeCallable CCCClient::launchAppraiseCallable(const LaunchAppraiseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->launchAppraise(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifyUserOutcome CCCClient::modifyUser(const ModifyUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyUserOutcome(ModifyUserResult(outcome.result())); + else + return ModifyUserOutcome(outcome.error()); +} + +void CCCClient::modifyUserAsync(const ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifyUserOutcomeCallable CCCClient::modifyUserCallable(const ModifyUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateScenarioOutcome CCCClient::createScenario(const CreateScenarioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateScenarioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateScenarioOutcome(CreateScenarioResult(outcome.result())); + else + return CreateScenarioOutcome(outcome.error()); +} + +void CCCClient::createScenarioAsync(const CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createScenario(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateScenarioOutcomeCallable CCCClient::createScenarioCallable(const CreateScenarioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createScenario(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSkillGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSkillGroupsOutcome(ListSkillGroupsResult(outcome.result())); + else + return ListSkillGroupsOutcome(outcome.error()); +} + +void CCCClient::listSkillGroupsAsync(const ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSkillGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(const ListSkillGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSkillGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ModifySkillGroupOfUserOutcome CCCClient::modifySkillGroupOfUser(const ModifySkillGroupOfUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySkillGroupOfUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySkillGroupOfUserOutcome(ModifySkillGroupOfUserResult(outcome.result())); + else + return ModifySkillGroupOfUserOutcome(outcome.error()); +} + +void CCCClient::modifySkillGroupOfUserAsync(const ModifySkillGroupOfUserRequest& request, const ModifySkillGroupOfUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySkillGroupOfUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ModifySkillGroupOfUserOutcomeCallable CCCClient::modifySkillGroupOfUserCallable(const ModifySkillGroupOfUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySkillGroupOfUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::DownloadRecordingOutcome CCCClient::downloadRecording(const DownloadRecordingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadRecordingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadRecordingOutcome(DownloadRecordingResult(outcome.result())); + else + return DownloadRecordingOutcome(outcome.error()); +} + +void CCCClient::downloadRecordingAsync(const DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadRecording(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::DownloadRecordingOutcomeCallable CCCClient::downloadRecordingCallable(const DownloadRecordingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadRecording(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetConfigOutcome CCCClient::getConfig(const GetConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigOutcome(GetConfigResult(outcome.result())); + else + return GetConfigOutcome(outcome.error()); +} + +void CCCClient::getConfigAsync(const GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetConfigOutcomeCallable CCCClient::getConfigCallable(const GetConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateMediaOutcome CCCClient::createMedia(const CreateMediaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMediaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMediaOutcome(CreateMediaResult(outcome.result())); + else + return CreateMediaOutcome(outcome.error()); +} + +void CCCClient::createMediaAsync(const CreateMediaRequest& request, const CreateMediaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMedia(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateMediaOutcomeCallable CCCClient::createMediaCallable(const CreateMediaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMedia(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GenerateAgentStatisticReportOutcome CCCClient::generateAgentStatisticReport(const GenerateAgentStatisticReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateAgentStatisticReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateAgentStatisticReportOutcome(GenerateAgentStatisticReportResult(outcome.result())); + else + return GenerateAgentStatisticReportOutcome(outcome.error()); +} + +void CCCClient::generateAgentStatisticReportAsync(const GenerateAgentStatisticReportRequest& request, const GenerateAgentStatisticReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateAgentStatisticReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GenerateAgentStatisticReportOutcomeCallable CCCClient::generateAgentStatisticReportCallable(const GenerateAgentStatisticReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateAgentStatisticReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListAgentSummaryReportsSinceMidnightOutcome CCCClient::listAgentSummaryReportsSinceMidnight(const ListAgentSummaryReportsSinceMidnightRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentSummaryReportsSinceMidnightOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentSummaryReportsSinceMidnightOutcome(ListAgentSummaryReportsSinceMidnightResult(outcome.result())); + else + return ListAgentSummaryReportsSinceMidnightOutcome(outcome.error()); +} + +void CCCClient::listAgentSummaryReportsSinceMidnightAsync(const ListAgentSummaryReportsSinceMidnightRequest& request, const ListAgentSummaryReportsSinceMidnightAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentSummaryReportsSinceMidnight(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAgentSummaryReportsSinceMidnightOutcomeCallable CCCClient::listAgentSummaryReportsSinceMidnightCallable(const ListAgentSummaryReportsSinceMidnightRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentSummaryReportsSinceMidnight(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListPredictiveJobGroupsOutcome CCCClient::listPredictiveJobGroups(const ListPredictiveJobGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPredictiveJobGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPredictiveJobGroupsOutcome(ListPredictiveJobGroupsResult(outcome.result())); + else + return ListPredictiveJobGroupsOutcome(outcome.error()); +} + +void CCCClient::listPredictiveJobGroupsAsync(const ListPredictiveJobGroupsRequest& request, const ListPredictiveJobGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPredictiveJobGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListPredictiveJobGroupsOutcomeCallable CCCClient::listPredictiveJobGroupsCallable(const ListPredictiveJobGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPredictiveJobGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateScenarioFromTemplateOutcome CCCClient::createScenarioFromTemplate(const CreateScenarioFromTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateScenarioFromTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateScenarioFromTemplateOutcome(CreateScenarioFromTemplateResult(outcome.result())); + else + return CreateScenarioFromTemplateOutcome(outcome.error()); +} + +void CCCClient::createScenarioFromTemplateAsync(const CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createScenarioFromTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateScenarioFromTemplateOutcomeCallable CCCClient::createScenarioFromTemplateCallable(const CreateScenarioFromTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createScenarioFromTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::PublishContactFlowVersionOutcome CCCClient::publishContactFlowVersion(const PublishContactFlowVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishContactFlowVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishContactFlowVersionOutcome(PublishContactFlowVersionResult(outcome.result())); + else + return PublishContactFlowVersionOutcome(outcome.error()); +} + +void CCCClient::publishContactFlowVersionAsync(const PublishContactFlowVersionRequest& request, const PublishContactFlowVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishContactFlowVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PublishContactFlowVersionOutcomeCallable CCCClient::publishContactFlowVersionCallable(const PublishContactFlowVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishContactFlowVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetTaskListOutcome CCCClient::getTaskList(const GetTaskListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskListOutcome(GetTaskListResult(outcome.result())); + else + return GetTaskListOutcome(outcome.error()); +} + +void CCCClient::getTaskListAsync(const GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetTaskListOutcomeCallable CCCClient::getTaskListCallable(const GetTaskListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::QueryRedialIndicatorOutcome CCCClient::queryRedialIndicator(const QueryRedialIndicatorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRedialIndicatorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRedialIndicatorOutcome(QueryRedialIndicatorResult(outcome.result())); + else + return QueryRedialIndicatorOutcome(outcome.error()); +} + +void CCCClient::queryRedialIndicatorAsync(const QueryRedialIndicatorRequest& request, const QueryRedialIndicatorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRedialIndicator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::QueryRedialIndicatorOutcomeCallable CCCClient::queryRedialIndicatorCallable(const QueryRedialIndicatorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRedialIndicator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListScenarioTemplatesOutcome CCCClient::listScenarioTemplates(const ListScenarioTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScenarioTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScenarioTemplatesOutcome(ListScenarioTemplatesResult(outcome.result())); + else + return ListScenarioTemplatesOutcome(outcome.error()); +} + +void CCCClient::listScenarioTemplatesAsync(const ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScenarioTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListScenarioTemplatesOutcomeCallable CCCClient::listScenarioTemplatesCallable(const ListScenarioTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScenarioTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::PickOutboundNumbersByTagsOutcome CCCClient::pickOutboundNumbersByTags(const PickOutboundNumbersByTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PickOutboundNumbersByTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PickOutboundNumbersByTagsOutcome(PickOutboundNumbersByTagsResult(outcome.result())); + else + return PickOutboundNumbersByTagsOutcome(outcome.error()); +} + +void CCCClient::pickOutboundNumbersByTagsAsync(const PickOutboundNumbersByTagsRequest& request, const PickOutboundNumbersByTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pickOutboundNumbersByTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PickOutboundNumbersByTagsOutcomeCallable CCCClient::pickOutboundNumbersByTagsCallable(const PickOutboundNumbersByTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pickOutboundNumbersByTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetAgentStateOutcome CCCClient::getAgentState(const GetAgentStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAgentStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAgentStateOutcome(GetAgentStateResult(outcome.result())); + else + return GetAgentStateOutcome(outcome.error()); +} + +void CCCClient::getAgentStateAsync(const GetAgentStateRequest& request, const GetAgentStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAgentState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetAgentStateOutcomeCallable CCCClient::getAgentStateCallable(const GetAgentStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAgentState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListSkillGroupSummaryReportsByIntervalOutcome CCCClient::listSkillGroupSummaryReportsByInterval(const ListSkillGroupSummaryReportsByIntervalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSkillGroupSummaryReportsByIntervalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSkillGroupSummaryReportsByIntervalOutcome(ListSkillGroupSummaryReportsByIntervalResult(outcome.result())); + else + return ListSkillGroupSummaryReportsByIntervalOutcome(outcome.error()); +} + +void CCCClient::listSkillGroupSummaryReportsByIntervalAsync(const ListSkillGroupSummaryReportsByIntervalRequest& request, const ListSkillGroupSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSkillGroupSummaryReportsByInterval(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListSkillGroupSummaryReportsByIntervalOutcomeCallable CCCClient::listSkillGroupSummaryReportsByIntervalCallable(const ListSkillGroupSummaryReportsByIntervalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSkillGroupSummaryReportsByInterval(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ResumeJobsOutcome CCCClient::resumeJobs(const ResumeJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeJobsOutcome(ResumeJobsResult(outcome.result())); + else + return ResumeJobsOutcome(outcome.error()); +} + +void CCCClient::resumeJobsAsync(const ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ResumeJobsOutcomeCallable CCCClient::resumeJobsCallable(const ResumeJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListAgentSummaryReportsByIntervalOutcome CCCClient::listAgentSummaryReportsByInterval(const ListAgentSummaryReportsByIntervalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentSummaryReportsByIntervalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentSummaryReportsByIntervalOutcome(ListAgentSummaryReportsByIntervalResult(outcome.result())); + else + return ListAgentSummaryReportsByIntervalOutcome(outcome.error()); +} + +void CCCClient::listAgentSummaryReportsByIntervalAsync(const ListAgentSummaryReportsByIntervalRequest& request, const ListAgentSummaryReportsByIntervalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentSummaryReportsByInterval(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAgentSummaryReportsByIntervalOutcomeCallable CCCClient::listAgentSummaryReportsByIntervalCallable(const ListAgentSummaryReportsByIntervalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentSummaryReportsByInterval(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::PreModifyMediaOutcome CCCClient::preModifyMedia(const PreModifyMediaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreModifyMediaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreModifyMediaOutcome(PreModifyMediaResult(outcome.result())); + else + return PreModifyMediaOutcome(outcome.error()); +} + +void CCCClient::preModifyMediaAsync(const PreModifyMediaRequest& request, const PreModifyMediaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, preModifyMedia(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::PreModifyMediaOutcomeCallable CCCClient::preModifyMediaCallable(const PreModifyMediaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->preModifyMedia(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::LaunchShortMessageAppraiseOutcome CCCClient::launchShortMessageAppraise(const LaunchShortMessageAppraiseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LaunchShortMessageAppraiseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LaunchShortMessageAppraiseOutcome(LaunchShortMessageAppraiseResult(outcome.result())); + else + return LaunchShortMessageAppraiseOutcome(outcome.error()); +} + +void CCCClient::launchShortMessageAppraiseAsync(const LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, launchShortMessageAppraise(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::LaunchShortMessageAppraiseOutcomeCallable CCCClient::launchShortMessageAppraiseCallable(const LaunchShortMessageAppraiseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->launchShortMessageAppraise(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::GetContactInfoByOutboundTaskIdOutcome CCCClient::getContactInfoByOutboundTaskId(const GetContactInfoByOutboundTaskIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetContactInfoByOutboundTaskIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetContactInfoByOutboundTaskIdOutcome(GetContactInfoByOutboundTaskIdResult(outcome.result())); + else + return GetContactInfoByOutboundTaskIdOutcome(outcome.error()); +} + +void CCCClient::getContactInfoByOutboundTaskIdAsync(const GetContactInfoByOutboundTaskIdRequest& request, const GetContactInfoByOutboundTaskIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getContactInfoByOutboundTaskId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::GetContactInfoByOutboundTaskIdOutcomeCallable CCCClient::getContactInfoByOutboundTaskIdCallable(const GetContactInfoByOutboundTaskIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getContactInfoByOutboundTaskId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ListScenariosOutcome CCCClient::listScenarios(const ListScenariosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2391,114 +5307,6 @@ CCCClient::AssignJobsOutcomeCallable CCCClient::assignJobsCallable(const AssignJ return task->get_future(); } -CCCClient::CreateUserOutcome CCCClient::createUser(const CreateUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateUserOutcome(CreateUserResult(outcome.result())); - else - return CreateUserOutcome(outcome.error()); -} - -void CCCClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::CreateUserOutcomeCallable CCCClient::createUserCallable(const CreateUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::ListPrivilegesOfUserOutcome CCCClient::listPrivilegesOfUser(const ListPrivilegesOfUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPrivilegesOfUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPrivilegesOfUserOutcome(ListPrivilegesOfUserResult(outcome.result())); - else - return ListPrivilegesOfUserOutcome(outcome.error()); -} - -void CCCClient::listPrivilegesOfUserAsync(const ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPrivilegesOfUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::ListPrivilegesOfUserOutcomeCallable CCCClient::listPrivilegesOfUserCallable(const ListPrivilegesOfUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPrivilegesOfUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CCCClient::GetNumberRegionInfoOutcome CCCClient::getNumberRegionInfo(const GetNumberRegionInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetNumberRegionInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetNumberRegionInfoOutcome(GetNumberRegionInfoResult(outcome.result())); - else - return GetNumberRegionInfoOutcome(outcome.error()); -} - -void CCCClient::getNumberRegionInfoAsync(const GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getNumberRegionInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CCCClient::GetNumberRegionInfoOutcomeCallable CCCClient::getNumberRegionInfoCallable(const GetNumberRegionInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getNumberRegionInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CCCClient::GetScenarioOutcome CCCClient::getScenario(const GetScenarioRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2535,72 +5343,144 @@ CCCClient::GetScenarioOutcomeCallable CCCClient::getScenarioCallable(const GetSc return task->get_future(); } -CCCClient::CreatePredictiveJobsOutcome CCCClient::createPredictiveJobs(const CreatePredictiveJobsRequest &request) const +CCCClient::ListOutboundPhoneNumberOfUserOutcome CCCClient::listOutboundPhoneNumberOfUser(const ListOutboundPhoneNumberOfUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreatePredictiveJobsOutcome(endpointOutcome.error()); + return ListOutboundPhoneNumberOfUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreatePredictiveJobsOutcome(CreatePredictiveJobsResult(outcome.result())); + return ListOutboundPhoneNumberOfUserOutcome(ListOutboundPhoneNumberOfUserResult(outcome.result())); else - return CreatePredictiveJobsOutcome(outcome.error()); + return ListOutboundPhoneNumberOfUserOutcome(outcome.error()); } -void CCCClient::createPredictiveJobsAsync(const CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::listOutboundPhoneNumberOfUserAsync(const ListOutboundPhoneNumberOfUserRequest& request, const ListOutboundPhoneNumberOfUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createPredictiveJobs(request), context); + handler(this, request, listOutboundPhoneNumberOfUser(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::CreatePredictiveJobsOutcomeCallable CCCClient::createPredictiveJobsCallable(const CreatePredictiveJobsRequest &request) const +CCCClient::ListOutboundPhoneNumberOfUserOutcomeCallable CCCClient::listOutboundPhoneNumberOfUserCallable(const ListOutboundPhoneNumberOfUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createPredictiveJobs(request); + return this->listOutboundPhoneNumberOfUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::GetAgentDataOutcome CCCClient::getAgentData(const GetAgentDataRequest &request) const +CCCClient::PickGlobalOutboundNumbersOutcome CCCClient::pickGlobalOutboundNumbers(const PickGlobalOutboundNumbersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetAgentDataOutcome(endpointOutcome.error()); + return PickGlobalOutboundNumbersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetAgentDataOutcome(GetAgentDataResult(outcome.result())); + return PickGlobalOutboundNumbersOutcome(PickGlobalOutboundNumbersResult(outcome.result())); else - return GetAgentDataOutcome(outcome.error()); + return PickGlobalOutboundNumbersOutcome(outcome.error()); } -void CCCClient::getAgentDataAsync(const GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::pickGlobalOutboundNumbersAsync(const PickGlobalOutboundNumbersRequest& request, const PickGlobalOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getAgentData(request), context); + handler(this, request, pickGlobalOutboundNumbers(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetAgentDataOutcomeCallable CCCClient::getAgentDataCallable(const GetAgentDataRequest &request) const +CCCClient::PickGlobalOutboundNumbersOutcomeCallable CCCClient::pickGlobalOutboundNumbersCallable(const PickGlobalOutboundNumbersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getAgentData(request); + return this->pickGlobalOutboundNumbers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::ListAgentDevicesOutcome CCCClient::listAgentDevices(const ListAgentDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentDevicesOutcome(ListAgentDevicesResult(outcome.result())); + else + return ListAgentDevicesOutcome(outcome.error()); +} + +void CCCClient::listAgentDevicesAsync(const ListAgentDevicesRequest& request, const ListAgentDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::ListAgentDevicesOutcomeCallable CCCClient::listAgentDevicesCallable(const ListAgentDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CCCClient::CreateFaultOutcome CCCClient::createFault(const CreateFaultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFaultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFaultOutcome(CreateFaultResult(outcome.result())); + else + return CreateFaultOutcome(outcome.error()); +} + +void CCCClient::createFaultAsync(const CreateFaultRequest& request, const CreateFaultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFault(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::CreateFaultOutcomeCallable CCCClient::createFaultCallable(const CreateFaultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFault(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2643,36 +5523,36 @@ CCCClient::CreateSurveyOutcomeCallable CCCClient::createSurveyCallable(const Cre return task->get_future(); } -CCCClient::ListJobStatusOutcome CCCClient::listJobStatus(const ListJobStatusRequest &request) const +CCCClient::CreateCabInstanceOutcome CCCClient::createCabInstance(const CreateCabInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobStatusOutcome(endpointOutcome.error()); + return CreateCabInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobStatusOutcome(ListJobStatusResult(outcome.result())); + return CreateCabInstanceOutcome(CreateCabInstanceResult(outcome.result())); else - return ListJobStatusOutcome(outcome.error()); + return CreateCabInstanceOutcome(outcome.error()); } -void CCCClient::listJobStatusAsync(const ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::createCabInstanceAsync(const CreateCabInstanceRequest& request, const CreateCabInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listJobStatus(request), context); + handler(this, request, createCabInstance(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListJobStatusOutcomeCallable CCCClient::listJobStatusCallable(const ListJobStatusRequest &request) const +CCCClient::CreateCabInstanceOutcomeCallable CCCClient::createCabInstanceCallable(const CreateCabInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobStatus(request); + return this->createCabInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2715,36 +5595,36 @@ CCCClient::ModifySurveyOutcomeCallable CCCClient::modifySurveyCallable(const Mod return task->get_future(); } -CCCClient::ModifyScenarioOutcome CCCClient::modifyScenario(const ModifyScenarioRequest &request) const +CCCClient::PublishPredictiveJobGroupOutcome CCCClient::publishPredictiveJobGroup(const PublishPredictiveJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyScenarioOutcome(endpointOutcome.error()); + return PublishPredictiveJobGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyScenarioOutcome(ModifyScenarioResult(outcome.result())); + return PublishPredictiveJobGroupOutcome(PublishPredictiveJobGroupResult(outcome.result())); else - return ModifyScenarioOutcome(outcome.error()); + return PublishPredictiveJobGroupOutcome(outcome.error()); } -void CCCClient::modifyScenarioAsync(const ModifyScenarioRequest& request, const ModifyScenarioAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::publishPredictiveJobGroupAsync(const PublishPredictiveJobGroupRequest& request, const PublishPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyScenario(request), context); + handler(this, request, publishPredictiveJobGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ModifyScenarioOutcomeCallable CCCClient::modifyScenarioCallable(const ModifyScenarioRequest &request) const +CCCClient::PublishPredictiveJobGroupOutcomeCallable CCCClient::publishPredictiveJobGroupCallable(const PublishPredictiveJobGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyScenario(request); + return this->publishPredictiveJobGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2787,72 +5667,72 @@ CCCClient::CreateSkillGroupOutcomeCallable CCCClient::createSkillGroupCallable(c return task->get_future(); } -CCCClient::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const +CCCClient::PickOutboundNumbersOutcome CCCClient::pickOutboundNumbers(const PickOutboundNumbersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetServiceExtensionsOutcome(endpointOutcome.error()); + return PickOutboundNumbersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetServiceExtensionsOutcome(GetServiceExtensionsResult(outcome.result())); + return PickOutboundNumbersOutcome(PickOutboundNumbersResult(outcome.result())); else - return GetServiceExtensionsOutcome(outcome.error()); + return PickOutboundNumbersOutcome(outcome.error()); } -void CCCClient::getServiceExtensionsAsync(const GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::pickOutboundNumbersAsync(const PickOutboundNumbersRequest& request, const PickOutboundNumbersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getServiceExtensions(request), context); + handler(this, request, pickOutboundNumbers(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCallable(const GetServiceExtensionsRequest &request) const +CCCClient::PickOutboundNumbersOutcomeCallable CCCClient::pickOutboundNumbersCallable(const PickOutboundNumbersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getServiceExtensions(request); + return this->pickOutboundNumbers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const +CCCClient::CreateContactFlowOutcome CCCClient::createContactFlow(const CreateContactFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListContactFlowsOutcome(endpointOutcome.error()); + return CreateContactFlowOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result())); + return CreateContactFlowOutcome(CreateContactFlowResult(outcome.result())); else - return ListContactFlowsOutcome(outcome.error()); + return CreateContactFlowOutcome(outcome.error()); } -void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr& context) const +void CCCClient::createContactFlowAsync(const CreateContactFlowRequest& request, const CreateContactFlowAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listContactFlows(request), context); + handler(this, request, createContactFlow(request), context); }; asyncExecute(new Runnable(fn)); } -CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const +CCCClient::CreateContactFlowOutcomeCallable CCCClient::createContactFlowCallable(const CreateContactFlowRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listContactFlows(request); + return this->createContactFlow(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/ccc/src/model/AddAgentDeviceRequest.cc b/ccc/src/model/AddAgentDeviceRequest.cc new file mode 100644 index 000000000..39bff7a49 --- /dev/null +++ b/ccc/src/model/AddAgentDeviceRequest.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 + +using AlibabaCloud::CCC::Model::AddAgentDeviceRequest; + +AddAgentDeviceRequest::AddAgentDeviceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "AddAgentDevice") +{} + +AddAgentDeviceRequest::~AddAgentDeviceRequest() +{} + +std::string AddAgentDeviceRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddAgentDeviceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string AddAgentDeviceRequest::getClientIp()const +{ + return clientIp_; +} + +void AddAgentDeviceRequest::setClientIp(const std::string& clientIp) +{ + clientIp_ = clientIp; + setCoreParameter("ClientIp", clientIp); +} + +std::string AddAgentDeviceRequest::getRemark()const +{ + return remark_; +} + +void AddAgentDeviceRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string AddAgentDeviceRequest::getClientPort()const +{ + return clientPort_; +} + +void AddAgentDeviceRequest::setClientPort(const std::string& clientPort) +{ + clientPort_ = clientPort; + setCoreParameter("ClientPort", clientPort); +} + +std::string AddAgentDeviceRequest::getBrowserVersion()const +{ + return browserVersion_; +} + +void AddAgentDeviceRequest::setBrowserVersion(const std::string& browserVersion) +{ + browserVersion_ = browserVersion; + setCoreParameter("BrowserVersion", browserVersion); +} + +std::string AddAgentDeviceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddAgentDeviceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/AddAgentDeviceResult.cc b/ccc/src/model/AddAgentDeviceResult.cc new file mode 100644 index 000000000..36f369749 --- /dev/null +++ b/ccc/src/model/AddAgentDeviceResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +AddAgentDeviceResult::AddAgentDeviceResult() : + ServiceResult() +{} + +AddAgentDeviceResult::AddAgentDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddAgentDeviceResult::~AddAgentDeviceResult() +{} + +void AddAgentDeviceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AgentDeviceId"].isNull()) + agentDeviceId_ = std::stol(value["AgentDeviceId"].asString()); + +} + +std::string AddAgentDeviceResult::getMessage()const +{ + return message_; +} + +long AddAgentDeviceResult::getAgentDeviceId()const +{ + return agentDeviceId_; +} + +int AddAgentDeviceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddAgentDeviceResult::getCode()const +{ + return code_; +} + +bool AddAgentDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/AddBulkPhoneNumbersRequest.cc b/ccc/src/model/AddBulkPhoneNumbersRequest.cc new file mode 100644 index 000000000..b338a1239 --- /dev/null +++ b/ccc/src/model/AddBulkPhoneNumbersRequest.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 + +using AlibabaCloud::CCC::Model::AddBulkPhoneNumbersRequest; + +AddBulkPhoneNumbersRequest::AddBulkPhoneNumbersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "AddBulkPhoneNumbers") +{} + +AddBulkPhoneNumbersRequest::~AddBulkPhoneNumbersRequest() +{} + +std::string AddBulkPhoneNumbersRequest::getContactFlowId()const +{ + return contactFlowId_; +} + +void AddBulkPhoneNumbersRequest::setContactFlowId(const std::string& contactFlowId) +{ + contactFlowId_ = contactFlowId; + setCoreParameter("ContactFlowId", contactFlowId); +} + +std::string AddBulkPhoneNumbersRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddBulkPhoneNumbersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string AddBulkPhoneNumbersRequest::getUsage()const +{ + return usage_; +} + +void AddBulkPhoneNumbersRequest::setUsage(const std::string& usage) +{ + usage_ = usage; + setCoreParameter("Usage", usage); +} + +std::vector AddBulkPhoneNumbersRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void AddBulkPhoneNumbersRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); +} + +std::vector AddBulkPhoneNumbersRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void AddBulkPhoneNumbersRequest::setPhoneNumber(const std::vector& phoneNumber) +{ + phoneNumber_ = phoneNumber; + for(int i = 0; i!= phoneNumber.size(); i++) + setCoreParameter("PhoneNumber."+ std::to_string(i), phoneNumber.at(i)); +} + +std::string AddBulkPhoneNumbersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddBulkPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/AddBulkPhoneNumbersResult.cc b/ccc/src/model/AddBulkPhoneNumbersResult.cc new file mode 100644 index 000000000..ad5acd147 --- /dev/null +++ b/ccc/src/model/AddBulkPhoneNumbersResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AddBulkPhoneNumbersResult::AddBulkPhoneNumbersResult() : + ServiceResult() +{} + +AddBulkPhoneNumbersResult::AddBulkPhoneNumbersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBulkPhoneNumbersResult::~AddBulkPhoneNumbersResult() +{} + +void AddBulkPhoneNumbersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + PhoneNumber phoneNumbersObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumbersObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumbersObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumbersObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); + auto allSkillGroups = value["SkillGroups"]["SkillGroup"]; + for (auto value : allSkillGroups) + { + PhoneNumber::SkillGroup skillGroupsObject; + if(!value["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + skillGroupsObject.skillGroupName = value["SkillGroupName"].asString(); + phoneNumbersObject.skillGroups.push_back(skillGroupsObject); + } + auto contactFlowNode = value["ContactFlow"]; + if(!contactFlowNode["ContactFlowId"].isNull()) + phoneNumbersObject.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString(); + if(!contactFlowNode["InstanceId"].isNull()) + phoneNumbersObject.contactFlow.instanceId = contactFlowNode["InstanceId"].asString(); + if(!contactFlowNode["ContactFlowName"].isNull()) + phoneNumbersObject.contactFlow.contactFlowName = contactFlowNode["ContactFlowName"].asString(); + if(!contactFlowNode["ContactFlowDescription"].isNull()) + phoneNumbersObject.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); + if(!contactFlowNode["Type"].isNull()) + phoneNumbersObject.contactFlow.type = contactFlowNode["Type"].asString(); + phoneNumbers_.push_back(phoneNumbersObject); + } + auto allArrearagePhoneNumbers = value["ArrearagePhoneNumbers"]["ArrearagePhoneNumber"]; + for (const auto &item : allArrearagePhoneNumbers) + arrearagePhoneNumbers_.push_back(item.asString()); + auto allFailedPhoneNumbers = value["FailedPhoneNumbers"]["FailedPhoneNumber"]; + for (const auto &item : allFailedPhoneNumbers) + failedPhoneNumbers_.push_back(item.asString()); + auto allUserdPhoneNumbers = value["UserdPhoneNumbers"]["UserdPhoneNumber"]; + for (const auto &item : allUserdPhoneNumbers) + userdPhoneNumbers_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector AddBulkPhoneNumbersResult::getArrearagePhoneNumbers()const +{ + return arrearagePhoneNumbers_; +} + +std::vector AddBulkPhoneNumbersResult::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +std::string AddBulkPhoneNumbersResult::getMessage()const +{ + return message_; +} + +int AddBulkPhoneNumbersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector AddBulkPhoneNumbersResult::getFailedPhoneNumbers()const +{ + return failedPhoneNumbers_; +} + +std::vector AddBulkPhoneNumbersResult::getUserdPhoneNumbers()const +{ + return userdPhoneNumbers_; +} + +std::string AddBulkPhoneNumbersResult::getCode()const +{ + return code_; +} + +bool AddBulkPhoneNumbersResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/AddNumberToSkillGroupRequest.cc b/ccc/src/model/AddNumberToSkillGroupRequest.cc new file mode 100644 index 000000000..7f47c2fa0 --- /dev/null +++ b/ccc/src/model/AddNumberToSkillGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::AddNumberToSkillGroupRequest; + +AddNumberToSkillGroupRequest::AddNumberToSkillGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "AddNumberToSkillGroup") +{} + +AddNumberToSkillGroupRequest::~AddNumberToSkillGroupRequest() +{} + +std::string AddNumberToSkillGroupRequest::getNumber()const +{ + return number_; +} + +void AddNumberToSkillGroupRequest::setNumber(const std::string& number) +{ + number_ = number; + setCoreParameter("Number", number); +} + +std::string AddNumberToSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void AddNumberToSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string AddNumberToSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void AddNumberToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +std::string AddNumberToSkillGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddNumberToSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/AddNumberToSkillGroupResult.cc b/ccc/src/model/AddNumberToSkillGroupResult.cc new file mode 100644 index 000000000..596b001af --- /dev/null +++ b/ccc/src/model/AddNumberToSkillGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +AddNumberToSkillGroupResult::AddNumberToSkillGroupResult() : + ServiceResult() +{} + +AddNumberToSkillGroupResult::AddNumberToSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddNumberToSkillGroupResult::~AddNumberToSkillGroupResult() +{} + +void AddNumberToSkillGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string AddNumberToSkillGroupResult::getMessage()const +{ + return message_; +} + +int AddNumberToSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddNumberToSkillGroupResult::getCode()const +{ + return code_; +} + +bool AddNumberToSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/AddPhoneNumberRequest.cc b/ccc/src/model/AddPhoneNumberRequest.cc index c9633a137..f0c3a7ad3 100644 --- a/ccc/src/model/AddPhoneNumberRequest.cc +++ b/ccc/src/model/AddPhoneNumberRequest.cc @@ -33,7 +33,7 @@ std::string AddPhoneNumberRequest::getContactFlowId()const void AddPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId) { contactFlowId_ = contactFlowId; - setParameter("ContactFlowId", contactFlowId); + setCoreParameter("ContactFlowId", contactFlowId); } std::string AddPhoneNumberRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string AddPhoneNumberRequest::getInstanceId()const void AddPhoneNumberRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string AddPhoneNumberRequest::getUsage()const @@ -55,7 +55,7 @@ std::string AddPhoneNumberRequest::getUsage()const void AddPhoneNumberRequest::setUsage(const std::string& usage) { usage_ = usage; - setParameter("Usage", usage); + setCoreParameter("Usage", usage); } std::string AddPhoneNumberRequest::getPhoneNumber()const @@ -66,7 +66,7 @@ std::string AddPhoneNumberRequest::getPhoneNumber()const void AddPhoneNumberRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } std::string AddPhoneNumberRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string AddPhoneNumberRequest::getAccessKeyId()const void AddPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/AddPhoneNumberResult.cc b/ccc/src/model/AddPhoneNumberResult.cc index fe8175c77..84092e277 100644 --- a/ccc/src/model/AddPhoneNumberResult.cc +++ b/ccc/src/model/AddPhoneNumberResult.cc @@ -35,10 +35,13 @@ AddPhoneNumberResult::~AddPhoneNumberResult() void AddPhoneNumberResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto phoneNumberNode = value["PhoneNumber"]; if(!phoneNumberNode["PhoneNumberId"].isNull()) diff --git a/ccc/src/model/AssignJobsRequest.cc b/ccc/src/model/AssignJobsRequest.cc index 5cbf6b82c..237d2500e 100644 --- a/ccc/src/model/AssignJobsRequest.cc +++ b/ccc/src/model/AssignJobsRequest.cc @@ -34,7 +34,7 @@ void AssignJobsRequest::setCallingNumber(const std::vector& calling { callingNumber_ = callingNumber; for(int i = 0; i!= callingNumber.size(); i++) - setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); + setCoreParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); } std::string AssignJobsRequest::getInstanceId()const @@ -45,7 +45,7 @@ std::string AssignJobsRequest::getInstanceId()const void AssignJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string AssignJobsRequest::getGroupId()const @@ -56,7 +56,7 @@ std::string AssignJobsRequest::getGroupId()const void AssignJobsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string AssignJobsRequest::getStrategyJson()const @@ -67,7 +67,7 @@ std::string AssignJobsRequest::getStrategyJson()const void AssignJobsRequest::setStrategyJson(const std::string& strategyJson) { strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); + setCoreParameter("StrategyJson", strategyJson); } std::string AssignJobsRequest::getScenarioId()const @@ -78,7 +78,7 @@ std::string AssignJobsRequest::getScenarioId()const void AssignJobsRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } std::vector AssignJobsRequest::getJobsJson()const @@ -90,6 +90,6 @@ void AssignJobsRequest::setJobsJson(const std::vector& jobsJson) { jobsJson_ = jobsJson; for(int i = 0; i!= jobsJson.size(); i++) - setParameter("JobsJson."+ std::to_string(i), jobsJson.at(i)); + setCoreParameter("JobsJson."+ std::to_string(i), jobsJson.at(i)); } diff --git a/ccc/src/model/AssignJobsResult.cc b/ccc/src/model/AssignJobsResult.cc index a10b848dc..ee5198a62 100644 --- a/ccc/src/model/AssignJobsResult.cc +++ b/ccc/src/model/AssignJobsResult.cc @@ -35,10 +35,13 @@ AssignJobsResult::~AssignJobsResult() void AssignJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/AssignUsersRequest.cc b/ccc/src/model/AssignUsersRequest.cc index 4ed77666b..d8fe1bede 100644 --- a/ccc/src/model/AssignUsersRequest.cc +++ b/ccc/src/model/AssignUsersRequest.cc @@ -34,7 +34,7 @@ void AssignUsersRequest::setUserRamId(const std::vector& userRamId) { userRamId_ = userRamId; for(int i = 0; i!= userRamId.size(); i++) - setParameter("UserRamId."+ std::to_string(i), userRamId.at(i)); + setCoreParameter("UserRamId."+ std::to_string(i), userRamId.at(i)); } std::vector AssignUsersRequest::getSkillLevel()const @@ -46,7 +46,7 @@ void AssignUsersRequest::setSkillLevel(const std::vector& skillLevel) { skillLevel_ = skillLevel; for(int i = 0; i!= skillLevel.size(); i++) - setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); + setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); } std::string AssignUsersRequest::getInstanceId()const @@ -57,7 +57,7 @@ std::string AssignUsersRequest::getInstanceId()const void AssignUsersRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector AssignUsersRequest::getRoleId()const @@ -69,7 +69,7 @@ void AssignUsersRequest::setRoleId(const std::vector& roleId) { roleId_ = roleId; for(int i = 0; i!= roleId.size(); i++) - setParameter("RoleId."+ std::to_string(i), roleId.at(i)); + setCoreParameter("RoleId."+ std::to_string(i), roleId.at(i)); } std::vector AssignUsersRequest::getSkillGroupId()const @@ -81,7 +81,7 @@ void AssignUsersRequest::setSkillGroupId(const std::vector& skillGr { skillGroupId_ = skillGroupId; for(int i = 0; i!= skillGroupId.size(); i++) - setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); } std::string AssignUsersRequest::getAccessKeyId()const @@ -92,6 +92,6 @@ std::string AssignUsersRequest::getAccessKeyId()const void AssignUsersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/AssignUsersResult.cc b/ccc/src/model/AssignUsersResult.cc index 263276188..f7dd444f0 100644 --- a/ccc/src/model/AssignUsersResult.cc +++ b/ccc/src/model/AssignUsersResult.cc @@ -35,10 +35,13 @@ AssignUsersResult::~AssignUsersResult() void AssignUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/CallOnlinePrivacyNumberRequest.cc b/ccc/src/model/CallOnlinePrivacyNumberRequest.cc new file mode 100644 index 000000000..5c73c974e --- /dev/null +++ b/ccc/src/model/CallOnlinePrivacyNumberRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::CallOnlinePrivacyNumberRequest; + +CallOnlinePrivacyNumberRequest::CallOnlinePrivacyNumberRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CallOnlinePrivacyNumber") +{} + +CallOnlinePrivacyNumberRequest::~CallOnlinePrivacyNumberRequest() +{} + +std::string CallOnlinePrivacyNumberRequest::getTelA()const +{ + return telA_; +} + +void CallOnlinePrivacyNumberRequest::setTelA(const std::string& telA) +{ + telA_ = telA; + setCoreParameter("TelA", telA); +} + +std::string CallOnlinePrivacyNumberRequest::getTelB()const +{ + return telB_; +} + +void CallOnlinePrivacyNumberRequest::setTelB(const std::string& telB) +{ + telB_ = telB; + setCoreParameter("TelB", telB); +} + +std::string CallOnlinePrivacyNumberRequest::getInstanceId()const +{ + return instanceId_; +} + +void CallOnlinePrivacyNumberRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CallOnlinePrivacyNumberRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CallOnlinePrivacyNumberRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/CallOnlinePrivacyNumberResult.cc b/ccc/src/model/CallOnlinePrivacyNumberResult.cc new file mode 100644 index 000000000..7ef1466aa --- /dev/null +++ b/ccc/src/model/CallOnlinePrivacyNumberResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult() : + ServiceResult() +{} + +CallOnlinePrivacyNumberResult::CallOnlinePrivacyNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CallOnlinePrivacyNumberResult::~CallOnlinePrivacyNumberResult() +{} + +void CallOnlinePrivacyNumberResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["StatusCode"].isNull()) + data_.statusCode = dataNode["StatusCode"].asString(); + if(!dataNode["DateCreated"].isNull()) + data_.dateCreated = dataNode["DateCreated"].asString(); + if(!dataNode["Represent"].isNull()) + data_.represent = dataNode["Represent"].asString(); + if(!dataNode["TelX"].isNull()) + data_.telX = dataNode["TelX"].asString(); + if(!dataNode["CallId"].isNull()) + data_.callId = dataNode["CallId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CallOnlinePrivacyNumberResult::getMessage()const +{ + return message_; +} + +int CallOnlinePrivacyNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CallOnlinePrivacyNumberResult::Data CallOnlinePrivacyNumberResult::getData()const +{ + return data_; +} + +std::string CallOnlinePrivacyNumberResult::getCode()const +{ + return code_; +} + +bool CallOnlinePrivacyNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CancelJobsRequest.cc b/ccc/src/model/CancelJobsRequest.cc index cacc29f92..345be743c 100644 --- a/ccc/src/model/CancelJobsRequest.cc +++ b/ccc/src/model/CancelJobsRequest.cc @@ -33,7 +33,7 @@ bool CancelJobsRequest::getAll()const void CancelJobsRequest::setAll(bool all) { all_ = all; - setParameter("All", std::to_string(all)); + setCoreParameter("All", all ? "true" : "false"); } std::vector CancelJobsRequest::getJobId()const @@ -45,7 +45,7 @@ void CancelJobsRequest::setJobId(const std::vector& jobId) { jobId_ = jobId; for(int i = 0; i!= jobId.size(); i++) - setParameter("JobId."+ std::to_string(i), jobId.at(i)); + setCoreParameter("JobId."+ std::to_string(i), jobId.at(i)); } std::string CancelJobsRequest::getInstanceId()const @@ -56,7 +56,7 @@ std::string CancelJobsRequest::getInstanceId()const void CancelJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector CancelJobsRequest::getJobReferenceId()const @@ -68,7 +68,7 @@ void CancelJobsRequest::setJobReferenceId(const std::vector& jobRef { jobReferenceId_ = jobReferenceId; for(int i = 0; i!= jobReferenceId.size(); i++) - setParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); + setCoreParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); } std::string CancelJobsRequest::getGroupId()const @@ -79,7 +79,7 @@ std::string CancelJobsRequest::getGroupId()const void CancelJobsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string CancelJobsRequest::getScenarioId()const @@ -90,6 +90,6 @@ std::string CancelJobsRequest::getScenarioId()const void CancelJobsRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/CancelJobsResult.cc b/ccc/src/model/CancelJobsResult.cc index 6df826954..05b07fc53 100644 --- a/ccc/src/model/CancelJobsResult.cc +++ b/ccc/src/model/CancelJobsResult.cc @@ -35,10 +35,13 @@ CancelJobsResult::~CancelJobsResult() void CancelJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/CancelPredictiveJobsRequest.cc b/ccc/src/model/CancelPredictiveJobsRequest.cc index 5692363f5..9a089050b 100644 --- a/ccc/src/model/CancelPredictiveJobsRequest.cc +++ b/ccc/src/model/CancelPredictiveJobsRequest.cc @@ -33,7 +33,7 @@ bool CancelPredictiveJobsRequest::getAll()const void CancelPredictiveJobsRequest::setAll(bool all) { all_ = all; - setParameter("All", std::to_string(all)); + setCoreParameter("All", all ? "true" : "false"); } std::vector CancelPredictiveJobsRequest::getJobId()const @@ -45,7 +45,7 @@ void CancelPredictiveJobsRequest::setJobId(const std::vector& jobId { jobId_ = jobId; for(int i = 0; i!= jobId.size(); i++) - setParameter("JobId."+ std::to_string(i), jobId.at(i)); + setCoreParameter("JobId."+ std::to_string(i), jobId.at(i)); } std::string CancelPredictiveJobsRequest::getInstanceId()const @@ -56,7 +56,7 @@ std::string CancelPredictiveJobsRequest::getInstanceId()const void CancelPredictiveJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CancelPredictiveJobsRequest::getJobGroupId()const @@ -67,6 +67,6 @@ std::string CancelPredictiveJobsRequest::getJobGroupId()const void CancelPredictiveJobsRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } diff --git a/ccc/src/model/CancelPredictiveJobsResult.cc b/ccc/src/model/CancelPredictiveJobsResult.cc index b10a42c40..7bf7a9ab3 100644 --- a/ccc/src/model/CancelPredictiveJobsResult.cc +++ b/ccc/src/model/CancelPredictiveJobsResult.cc @@ -35,10 +35,13 @@ CancelPredictiveJobsResult::~CancelPredictiveJobsResult() void CancelPredictiveJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/CommitContactFlowVersionModificationRequest.cc b/ccc/src/model/CommitContactFlowVersionModificationRequest.cc new file mode 100644 index 000000000..fe8e11acd --- /dev/null +++ b/ccc/src/model/CommitContactFlowVersionModificationRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::CommitContactFlowVersionModificationRequest; + +CommitContactFlowVersionModificationRequest::CommitContactFlowVersionModificationRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CommitContactFlowVersionModification") +{} + +CommitContactFlowVersionModificationRequest::~CommitContactFlowVersionModificationRequest() +{} + +std::string CommitContactFlowVersionModificationRequest::getCanvas()const +{ + return canvas_; +} + +void CommitContactFlowVersionModificationRequest::setCanvas(const std::string& canvas) +{ + canvas_ = canvas; + setCoreParameter("Canvas", canvas); +} + +std::string CommitContactFlowVersionModificationRequest::getInstanceId()const +{ + return instanceId_; +} + +void CommitContactFlowVersionModificationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CommitContactFlowVersionModificationRequest::getContactFlowVersionId()const +{ + return contactFlowVersionId_; +} + +void CommitContactFlowVersionModificationRequest::setContactFlowVersionId(const std::string& contactFlowVersionId) +{ + contactFlowVersionId_ = contactFlowVersionId; + setCoreParameter("ContactFlowVersionId", contactFlowVersionId); +} + +std::string CommitContactFlowVersionModificationRequest::getContent()const +{ + return content_; +} + +void CommitContactFlowVersionModificationRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string CommitContactFlowVersionModificationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CommitContactFlowVersionModificationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/CommitContactFlowVersionModificationResult.cc b/ccc/src/model/CommitContactFlowVersionModificationResult.cc new file mode 100644 index 000000000..d8901693b --- /dev/null +++ b/ccc/src/model/CommitContactFlowVersionModificationResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CommitContactFlowVersionModificationResult::CommitContactFlowVersionModificationResult() : + ServiceResult() +{} + +CommitContactFlowVersionModificationResult::CommitContactFlowVersionModificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CommitContactFlowVersionModificationResult::~CommitContactFlowVersionModificationResult() +{} + +void CommitContactFlowVersionModificationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto contactFlowVersionNode = value["ContactFlowVersion"]; + if(!contactFlowVersionNode["ContactFlowVersionId"].isNull()) + contactFlowVersion_.contactFlowVersionId = contactFlowVersionNode["ContactFlowVersionId"].asString(); + if(!contactFlowVersionNode["Version"].isNull()) + contactFlowVersion_.version = contactFlowVersionNode["Version"].asString(); + if(!contactFlowVersionNode["ContactFlowVersionDescription"].isNull()) + contactFlowVersion_.contactFlowVersionDescription = contactFlowVersionNode["ContactFlowVersionDescription"].asString(); + if(!contactFlowVersionNode["Canvas"].isNull()) + contactFlowVersion_.canvas = contactFlowVersionNode["Canvas"].asString(); + if(!contactFlowVersionNode["Content"].isNull()) + contactFlowVersion_.content = contactFlowVersionNode["Content"].asString(); + if(!contactFlowVersionNode["LastModified"].isNull()) + contactFlowVersion_.lastModified = contactFlowVersionNode["LastModified"].asString(); + if(!contactFlowVersionNode["LastModifiedBy"].isNull()) + contactFlowVersion_.lastModifiedBy = contactFlowVersionNode["LastModifiedBy"].asString(); + if(!contactFlowVersionNode["LockedBy"].isNull()) + contactFlowVersion_.lockedBy = contactFlowVersionNode["LockedBy"].asString(); + if(!contactFlowVersionNode["Status"].isNull()) + contactFlowVersion_.status = contactFlowVersionNode["Status"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CommitContactFlowVersionModificationResult::getMessage()const +{ + return message_; +} + +CommitContactFlowVersionModificationResult::ContactFlowVersion CommitContactFlowVersionModificationResult::getContactFlowVersion()const +{ + return contactFlowVersion_; +} + +int CommitContactFlowVersionModificationResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CommitContactFlowVersionModificationResult::getCode()const +{ + return code_; +} + +bool CommitContactFlowVersionModificationResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateBatchJobsRequest.cc b/ccc/src/model/CreateBatchJobsRequest.cc index 7d8220835..3e5de78b5 100644 --- a/ccc/src/model/CreateBatchJobsRequest.cc +++ b/ccc/src/model/CreateBatchJobsRequest.cc @@ -34,7 +34,7 @@ void CreateBatchJobsRequest::setCallingNumber(const std::vector& ca { callingNumber_ = callingNumber; for(int i = 0; i!= callingNumber.size(); i++) - setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); + setCoreParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); } std::string CreateBatchJobsRequest::getInstanceId()const @@ -45,7 +45,7 @@ std::string CreateBatchJobsRequest::getInstanceId()const void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } bool CreateBatchJobsRequest::getSubmitted()const @@ -56,7 +56,7 @@ bool CreateBatchJobsRequest::getSubmitted()const void CreateBatchJobsRequest::setSubmitted(bool submitted) { submitted_ = submitted; - setParameter("Submitted", std::to_string(submitted)); + setCoreParameter("Submitted", submitted ? "true" : "false"); } std::string CreateBatchJobsRequest::getStrategyJson()const @@ -67,7 +67,7 @@ std::string CreateBatchJobsRequest::getStrategyJson()const void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson) { strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); + setCoreParameter("StrategyJson", strategyJson); } std::string CreateBatchJobsRequest::getName()const @@ -78,7 +78,7 @@ std::string CreateBatchJobsRequest::getName()const void CreateBatchJobsRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateBatchJobsRequest::getDescription()const @@ -89,7 +89,7 @@ std::string CreateBatchJobsRequest::getDescription()const void CreateBatchJobsRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateBatchJobsRequest::getScenarioId()const @@ -100,7 +100,7 @@ std::string CreateBatchJobsRequest::getScenarioId()const void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } std::string CreateBatchJobsRequest::getJobFilePath()const @@ -111,6 +111,6 @@ std::string CreateBatchJobsRequest::getJobFilePath()const void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath) { jobFilePath_ = jobFilePath; - setParameter("JobFilePath", jobFilePath); + setCoreParameter("JobFilePath", jobFilePath); } diff --git a/ccc/src/model/CreateBatchJobsResult.cc b/ccc/src/model/CreateBatchJobsResult.cc index 92bac5496..6cc9ff313 100644 --- a/ccc/src/model/CreateBatchJobsResult.cc +++ b/ccc/src/model/CreateBatchJobsResult.cc @@ -35,10 +35,13 @@ CreateBatchJobsResult::~CreateBatchJobsResult() void CreateBatchJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobGroupNode = value["JobGroup"]; if(!jobGroupNode["JobGroupId"].isNull()) diff --git a/ccc/src/model/CreateCCCPostOrderRequest.cc b/ccc/src/model/CreateCCCPostOrderRequest.cc new file mode 100644 index 000000000..d6ea21b21 --- /dev/null +++ b/ccc/src/model/CreateCCCPostOrderRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::CreateCCCPostOrderRequest; + +CreateCCCPostOrderRequest::CreateCCCPostOrderRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateCCCPostOrder") +{} + +CreateCCCPostOrderRequest::~CreateCCCPostOrderRequest() +{} + +std::string CreateCCCPostOrderRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCCCPostOrderRequest::setOwnerId(const std::string& ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", ownerId); +} + diff --git a/ccc/src/model/CreateCCCPostOrderResult.cc b/ccc/src/model/CreateCCCPostOrderResult.cc new file mode 100644 index 000000000..379364309 --- /dev/null +++ b/ccc/src/model/CreateCCCPostOrderResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateCCCPostOrderResult::CreateCCCPostOrderResult() : + ServiceResult() +{} + +CreateCCCPostOrderResult::CreateCCCPostOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCCCPostOrderResult::~CreateCCCPostOrderResult() +{} + +void CreateCCCPostOrderResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreateCCCPostOrderResult::getMessage()const +{ + return message_; +} + +int CreateCCCPostOrderResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateCCCPostOrderResult::getOrderId()const +{ + return orderId_; +} + +std::string CreateCCCPostOrderResult::getCode()const +{ + return code_; +} + +bool CreateCCCPostOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateCabInstanceRequest.cc b/ccc/src/model/CreateCabInstanceRequest.cc new file mode 100644 index 000000000..0fadca3d8 --- /dev/null +++ b/ccc/src/model/CreateCabInstanceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::CreateCabInstanceRequest; + +CreateCabInstanceRequest::CreateCabInstanceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateCabInstance") +{} + +CreateCabInstanceRequest::~CreateCabInstanceRequest() +{} + +int CreateCabInstanceRequest::getMaxConcurrentConversation()const +{ + return maxConcurrentConversation_; +} + +void CreateCabInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) +{ + maxConcurrentConversation_ = maxConcurrentConversation; + setCoreParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation)); +} + +std::string CreateCabInstanceRequest::getInstanceName()const +{ + return instanceName_; +} + +void CreateCabInstanceRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setCoreParameter("InstanceName", instanceName); +} + +std::string CreateCabInstanceRequest::getCallCenterInstanceId()const +{ + return callCenterInstanceId_; +} + +void CreateCabInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId) +{ + callCenterInstanceId_ = callCenterInstanceId; + setCoreParameter("CallCenterInstanceId", callCenterInstanceId); +} + +std::string CreateCabInstanceRequest::getInstanceDescription()const +{ + return instanceDescription_; +} + +void CreateCabInstanceRequest::setInstanceDescription(const std::string& instanceDescription) +{ + instanceDescription_ = instanceDescription; + setCoreParameter("InstanceDescription", instanceDescription); +} + diff --git a/ccc/src/model/CreateCabInstanceResult.cc b/ccc/src/model/CreateCabInstanceResult.cc new file mode 100644 index 000000000..339d1fab7 --- /dev/null +++ b/ccc/src/model/CreateCabInstanceResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateCabInstanceResult::CreateCabInstanceResult() : + ServiceResult() +{} + +CreateCabInstanceResult::CreateCabInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCabInstanceResult::~CreateCabInstanceResult() +{} + +void CreateCabInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto instanceNode = value["Instance"]; + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["InstanceDescription"].isNull()) + instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); + if(!instanceNode["MaxConcurrentConversation"].isNull()) + instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); + if(!instanceNode["Owner"].isNull()) + instance_.owner = instanceNode["Owner"].asString(); + if(!instanceNode["CreationTime"].isNull()) + instance_.creationTime = std::stol(instanceNode["CreationTime"].asString()); + if(!instanceNode["CallCenterInstanceId"].isNull()) + instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateCabInstanceResult::getMessage()const +{ + return message_; +} + +CreateCabInstanceResult::Instance CreateCabInstanceResult::getInstance()const +{ + return instance_; +} + +int CreateCabInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateCabInstanceResult::getCode()const +{ + return code_; +} + +bool CreateCabInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateContactFlowRequest.cc b/ccc/src/model/CreateContactFlowRequest.cc new file mode 100644 index 000000000..5e24755d8 --- /dev/null +++ b/ccc/src/model/CreateContactFlowRequest.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 + +using AlibabaCloud::CCC::Model::CreateContactFlowRequest; + +CreateContactFlowRequest::CreateContactFlowRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateContactFlow") +{} + +CreateContactFlowRequest::~CreateContactFlowRequest() +{} + +std::string CreateContactFlowRequest::getCanvas()const +{ + return canvas_; +} + +void CreateContactFlowRequest::setCanvas(const std::string& canvas) +{ + canvas_ = canvas; + setCoreParameter("Canvas", canvas); +} + +std::string CreateContactFlowRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateContactFlowRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateContactFlowRequest::getName()const +{ + return name_; +} + +void CreateContactFlowRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateContactFlowRequest::getDescription()const +{ + return description_; +} + +void CreateContactFlowRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateContactFlowRequest::getType()const +{ + return type_; +} + +void CreateContactFlowRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string CreateContactFlowRequest::getContent()const +{ + return content_; +} + +void CreateContactFlowRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string CreateContactFlowRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateContactFlowRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/CreateContactFlowResult.cc b/ccc/src/model/CreateContactFlowResult.cc new file mode 100644 index 000000000..72c999fe3 --- /dev/null +++ b/ccc/src/model/CreateContactFlowResult.cc @@ -0,0 +1,142 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateContactFlowResult::CreateContactFlowResult() : + ServiceResult() +{} + +CreateContactFlowResult::CreateContactFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateContactFlowResult::~CreateContactFlowResult() +{} + +void CreateContactFlowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto contactFlowNode = value["ContactFlow"]; + if(!contactFlowNode["ContactFlowId"].isNull()) + contactFlow_.contactFlowId = contactFlowNode["ContactFlowId"].asString(); + if(!contactFlowNode["InstanceId"].isNull()) + contactFlow_.instanceId = contactFlowNode["InstanceId"].asString(); + if(!contactFlowNode["ContactFlowName"].isNull()) + contactFlow_.contactFlowName = contactFlowNode["ContactFlowName"].asString(); + if(!contactFlowNode["ContactFlowDescription"].isNull()) + contactFlow_.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); + if(!contactFlowNode["Type"].isNull()) + contactFlow_.type = contactFlowNode["Type"].asString(); + if(!contactFlowNode["AppliedVersion"].isNull()) + contactFlow_.appliedVersion = contactFlowNode["AppliedVersion"].asString(); + auto allVersions = value["Versions"]["ContactFlowVersion"]; + for (auto value : allVersions) + { + ContactFlow::ContactFlowVersion contactFlowVersionObject; + if(!value["ContactFlowVersionId"].isNull()) + contactFlowVersionObject.contactFlowVersionId = value["ContactFlowVersionId"].asString(); + if(!value["Version"].isNull()) + contactFlowVersionObject.version = value["Version"].asString(); + if(!value["ContactFlowVersionDescription"].isNull()) + contactFlowVersionObject.contactFlowVersionDescription = value["ContactFlowVersionDescription"].asString(); + if(!value["Canvas"].isNull()) + contactFlowVersionObject.canvas = value["Canvas"].asString(); + if(!value["Content"].isNull()) + contactFlowVersionObject.content = value["Content"].asString(); + if(!value["LastModified"].isNull()) + contactFlowVersionObject.lastModified = value["LastModified"].asString(); + if(!value["LastModifiedBy"].isNull()) + contactFlowVersionObject.lastModifiedBy = value["LastModifiedBy"].asString(); + if(!value["LockedBy"].isNull()) + contactFlowVersionObject.lockedBy = value["LockedBy"].asString(); + if(!value["Status"].isNull()) + contactFlowVersionObject.status = value["Status"].asString(); + contactFlow_.versions.push_back(contactFlowVersionObject); + } + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + ContactFlow::PhoneNumber phoneNumberObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumberObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumberObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumberObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumberObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); + contactFlow_.phoneNumbers.push_back(phoneNumberObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateContactFlowResult::getMessage()const +{ + return message_; +} + +int CreateContactFlowResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CreateContactFlowResult::ContactFlow CreateContactFlowResult::getContactFlow()const +{ + return contactFlow_; +} + +std::string CreateContactFlowResult::getCode()const +{ + return code_; +} + +bool CreateContactFlowResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateFaultRequest.cc b/ccc/src/model/CreateFaultRequest.cc new file mode 100644 index 000000000..da46d1a94 --- /dev/null +++ b/ccc/src/model/CreateFaultRequest.cc @@ -0,0 +1,258 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::CreateFaultRequest; + +CreateFaultRequest::CreateFaultRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateFault") +{} + +CreateFaultRequest::~CreateFaultRequest() +{} + +std::string CreateFaultRequest::getSpeakerList()const +{ + return speakerList_; +} + +void CreateFaultRequest::setSpeakerList(const std::string& speakerList) +{ + speakerList_ = speakerList; + setCoreParameter("SpeakerList", speakerList); +} + +long CreateFaultRequest::getAgentId()const +{ + return agentId_; +} + +void CreateFaultRequest::setAgentId(long agentId) +{ + agentId_ = agentId; + setCoreParameter("AgentId", std::to_string(agentId)); +} + +std::string CreateFaultRequest::getAgentOssFileName()const +{ + return agentOssFileName_; +} + +void CreateFaultRequest::setAgentOssFileName(const std::string& agentOssFileName) +{ + agentOssFileName_ = agentOssFileName; + setCoreParameter("AgentOssFileName", agentOssFileName); +} + +std::string CreateFaultRequest::getDescription()const +{ + return description_; +} + +void CreateFaultRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long CreateFaultRequest::getEndTime()const +{ + return endTime_; +} + +void CreateFaultRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +std::string CreateFaultRequest::getOperatingSystemVersion()const +{ + return operatingSystemVersion_; +} + +void CreateFaultRequest::setOperatingSystemVersion(const std::string& operatingSystemVersion) +{ + operatingSystemVersion_ = operatingSystemVersion; + setCoreParameter("OperatingSystemVersion", operatingSystemVersion); +} + +long CreateFaultRequest::getStartTime()const +{ + return startTime_; +} + +void CreateFaultRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +std::string CreateFaultRequest::getMicrophoneList()const +{ + return microphoneList_; +} + +void CreateFaultRequest::setMicrophoneList(const std::string& microphoneList) +{ + microphoneList_ = microphoneList; + setCoreParameter("MicrophoneList", microphoneList); +} + +std::string CreateFaultRequest::getSpeakerEquipment()const +{ + return speakerEquipment_; +} + +void CreateFaultRequest::setSpeakerEquipment(const std::string& speakerEquipment) +{ + speakerEquipment_ = speakerEquipment; + setCoreParameter("SpeakerEquipment", speakerEquipment); +} + +std::string CreateFaultRequest::getServicePort()const +{ + return servicePort_; +} + +void CreateFaultRequest::setServicePort(const std::string& servicePort) +{ + servicePort_ = servicePort; + setCoreParameter("ServicePort", servicePort); +} + +std::string CreateFaultRequest::getClientPort()const +{ + return clientPort_; +} + +void CreateFaultRequest::setClientPort(const std::string& clientPort) +{ + clientPort_ = clientPort; + setCoreParameter("ClientPort", clientPort); +} + +std::string CreateFaultRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateFaultRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateFaultRequest::getServiceIp()const +{ + return serviceIp_; +} + +void CreateFaultRequest::setServiceIp(const std::string& serviceIp) +{ + serviceIp_ = serviceIp; + setCoreParameter("ServiceIp", serviceIp); +} + +std::string CreateFaultRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateFaultRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateFaultRequest::getCustomFilePath()const +{ + return customFilePath_; +} + +void CreateFaultRequest::setCustomFilePath(const std::string& customFilePath) +{ + customFilePath_ = customFilePath; + setCoreParameter("CustomFilePath", customFilePath); +} + +std::string CreateFaultRequest::getClientIp()const +{ + return clientIp_; +} + +void CreateFaultRequest::setClientIp(const std::string& clientIp) +{ + clientIp_ = clientIp; + setCoreParameter("ClientIp", clientIp); +} + +std::string CreateFaultRequest::getAgentFilePath()const +{ + return agentFilePath_; +} + +void CreateFaultRequest::setAgentFilePath(const std::string& agentFilePath) +{ + agentFilePath_ = agentFilePath; + setCoreParameter("AgentFilePath", agentFilePath); +} + +std::string CreateFaultRequest::getConnectId()const +{ + return connectId_; +} + +void CreateFaultRequest::setConnectId(const std::string& connectId) +{ + connectId_ = connectId; + setCoreParameter("ConnectId", connectId); +} + +std::string CreateFaultRequest::getCustomOssFileName()const +{ + return customOssFileName_; +} + +void CreateFaultRequest::setCustomOssFileName(const std::string& customOssFileName) +{ + customOssFileName_ = customOssFileName; + setCoreParameter("CustomOssFileName", customOssFileName); +} + +std::string CreateFaultRequest::getMicrophoneEquipment()const +{ + return microphoneEquipment_; +} + +void CreateFaultRequest::setMicrophoneEquipment(const std::string& microphoneEquipment) +{ + microphoneEquipment_ = microphoneEquipment; + setCoreParameter("MicrophoneEquipment", microphoneEquipment); +} + +std::string CreateFaultRequest::getBrowserVersion()const +{ + return browserVersion_; +} + +void CreateFaultRequest::setBrowserVersion(const std::string& browserVersion) +{ + browserVersion_ = browserVersion; + setCoreParameter("BrowserVersion", browserVersion); +} + diff --git a/ccc/src/model/CreateFaultResult.cc b/ccc/src/model/CreateFaultResult.cc new file mode 100644 index 000000000..e482f7780 --- /dev/null +++ b/ccc/src/model/CreateFaultResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateFaultResult::CreateFaultResult() : + ServiceResult() +{} + +CreateFaultResult::CreateFaultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFaultResult::~CreateFaultResult() +{} + +void CreateFaultResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateFaultResult::getMessage()const +{ + return message_; +} + +int CreateFaultResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateFaultResult::getCode()const +{ + return code_; +} + +bool CreateFaultResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateInstanceRequest.cc b/ccc/src/model/CreateInstanceRequest.cc new file mode 100644 index 000000000..c51ce8b9a --- /dev/null +++ b/ccc/src/model/CreateInstanceRequest.cc @@ -0,0 +1,151 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateInstance") +{} + +CreateInstanceRequest::~CreateInstanceRequest() +{} + +std::vector CreateInstanceRequest::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +void CreateInstanceRequest::setPhoneNumbers(const std::vector& phoneNumbers) +{ + phoneNumbers_ = phoneNumbers; + for(int i = 0; i!= phoneNumbers.size(); i++) + setCoreParameter("PhoneNumbers."+ std::to_string(i), phoneNumbers.at(i)); +} + +std::vector CreateInstanceRequest::getUserObject()const +{ + return userObject_; +} + +void CreateInstanceRequest::setUserObject(const std::vector& userObject) +{ + userObject_ = userObject; + for(int i = 0; i!= userObject.size(); i++) + setCoreParameter("UserObject."+ std::to_string(i), userObject.at(i)); +} + +std::string CreateInstanceRequest::getName()const +{ + return name_; +} + +void CreateInstanceRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateInstanceRequest::getDomainName()const +{ + return domainName_; +} + +void CreateInstanceRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string CreateInstanceRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void CreateInstanceRequest::setPhoneNumber(const std::string& phoneNumber) +{ + phoneNumber_ = phoneNumber; + setCoreParameter("PhoneNumber", phoneNumber); +} + +std::string CreateInstanceRequest::getDescription()const +{ + return description_; +} + +void CreateInstanceRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +int CreateInstanceRequest::getStorageMaxDays()const +{ + return storageMaxDays_; +} + +void CreateInstanceRequest::setStorageMaxDays(int storageMaxDays) +{ + storageMaxDays_ = storageMaxDays; + setCoreParameter("StorageMaxDays", std::to_string(storageMaxDays)); +} + +int CreateInstanceRequest::getStorageMaxSize()const +{ + return storageMaxSize_; +} + +void CreateInstanceRequest::setStorageMaxSize(int storageMaxSize) +{ + storageMaxSize_ = storageMaxSize; + setCoreParameter("StorageMaxSize", std::to_string(storageMaxSize)); +} + +std::string CreateInstanceRequest::getDirectoryId()const +{ + return directoryId_; +} + +void CreateInstanceRequest::setDirectoryId(const std::string& directoryId) +{ + directoryId_ = directoryId; + setCoreParameter("DirectoryId", directoryId); +} + +std::vector CreateInstanceRequest::getAdminRamId()const +{ + return adminRamId_; +} + +void CreateInstanceRequest::setAdminRamId(const std::vector& adminRamId) +{ + adminRamId_ = adminRamId; + for(int i = 0; i!= adminRamId.size(); i++) + setCoreParameter("AdminRamId."+ std::to_string(i), adminRamId.at(i)); +} + +std::string CreateInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/CreateInstanceResult.cc b/ccc/src/model/CreateInstanceResult.cc new file mode 100644 index 000000000..ddf5e768b --- /dev/null +++ b/ccc/src/model/CreateInstanceResult.cc @@ -0,0 +1,169 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateInstanceResult::CreateInstanceResult() : + ServiceResult() +{} + +CreateInstanceResult::CreateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceResult::~CreateInstanceResult() +{} + +void CreateInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto instanceNode = value["Instance"]; + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["InstanceDescription"].isNull()) + instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); + if(!instanceNode["DomainName"].isNull()) + instance_.domainName = instanceNode["DomainName"].asString(); + if(!instanceNode["ConsoleUrl"].isNull()) + instance_.consoleUrl = instanceNode["ConsoleUrl"].asString(); + if(!instanceNode["StorageBucket"].isNull()) + instance_.storageBucket = instanceNode["StorageBucket"].asString(); + if(!instanceNode["StorageMaxDays"].isNull()) + instance_.storageMaxDays = std::stoi(instanceNode["StorageMaxDays"].asString()); + if(!instanceNode["StorageMaxSize"].isNull()) + instance_.storageMaxSize = std::stoi(instanceNode["StorageMaxSize"].asString()); + if(!instanceNode["MaxOnlineAgents"].isNull()) + instance_.maxOnlineAgents = std::stoi(instanceNode["MaxOnlineAgents"].asString()); + if(!instanceNode["TenantId"].isNull()) + instance_.tenantId = instanceNode["TenantId"].asString(); + if(!instanceNode["Status"].isNull()) + instance_.status = instanceNode["Status"].asString(); + if(!instanceNode["DirectoryId"].isNull()) + instance_.directoryId = instanceNode["DirectoryId"].asString(); + if(!instanceNode["CreatedTime"].isNull()) + instance_.createdTime = std::stol(instanceNode["CreatedTime"].asString()); + if(!instanceNode["Owner"].isNull()) + instance_.owner = instanceNode["Owner"].asString(); + auto allAdmin = value["Admin"]["User"]; + for (auto value : allAdmin) + { + Instance::User userObject; + if(!value["UserId"].isNull()) + userObject.userId = value["UserId"].asString(); + if(!value["RamId"].isNull()) + userObject.ramId = value["RamId"].asString(); + if(!value["InstanceId"].isNull()) + userObject.instanceId = value["InstanceId"].asString(); + auto detailNode = value["Detail"]; + if(!detailNode["LoginName"].isNull()) + userObject.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + userObject.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + userObject.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + userObject.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + userObject.detail.department = detailNode["Department"].asString(); + instance_.admin.push_back(userObject); + } + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + Instance::PhoneNumber phoneNumberObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumberObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumberObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumberObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumberObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); + instance_.phoneNumbers.push_back(phoneNumberObject); + } + auto allSuccessPhoneNumbers = instanceNode["SuccessPhoneNumbers"]["SuccessPhoneNumber"]; + for (auto value : allSuccessPhoneNumbers) + instance_.successPhoneNumbers.push_back(value.asString()); + auto allFailPhoneNumbers = instanceNode["FailPhoneNumbers"]["FailPhoneNumber"]; + for (auto value : allFailPhoneNumbers) + instance_.failPhoneNumbers.push_back(value.asString()); + auto allSuccessLoginNames = instanceNode["SuccessLoginNames"]["SuccessLoginName"]; + for (auto value : allSuccessLoginNames) + instance_.successLoginNames.push_back(value.asString()); + auto allFailLoginNames = instanceNode["FailLoginNames"]["FailLoginName"]; + for (auto value : allFailLoginNames) + instance_.failLoginNames.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateInstanceResult::getMessage()const +{ + return message_; +} + +CreateInstanceResult::Instance CreateInstanceResult::getInstance()const +{ + return instance_; +} + +int CreateInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateInstanceResult::getCode()const +{ + return code_; +} + +bool CreateInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreateJobGroupRequest.cc b/ccc/src/model/CreateJobGroupRequest.cc index 13ac4bec5..bf7602f59 100644 --- a/ccc/src/model/CreateJobGroupRequest.cc +++ b/ccc/src/model/CreateJobGroupRequest.cc @@ -34,7 +34,7 @@ void CreateJobGroupRequest::setCallingNumber(const std::vector& cal { callingNumber_ = callingNumber; for(int i = 0; i!= callingNumber.size(); i++) - setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); + setCoreParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); } std::string CreateJobGroupRequest::getInstanceId()const @@ -45,7 +45,7 @@ std::string CreateJobGroupRequest::getInstanceId()const void CreateJobGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CreateJobGroupRequest::getStrategyJson()const @@ -56,7 +56,7 @@ std::string CreateJobGroupRequest::getStrategyJson()const void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson) { strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); + setCoreParameter("StrategyJson", strategyJson); } std::string CreateJobGroupRequest::getName()const @@ -67,7 +67,7 @@ std::string CreateJobGroupRequest::getName()const void CreateJobGroupRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateJobGroupRequest::getDescription()const @@ -78,7 +78,7 @@ std::string CreateJobGroupRequest::getDescription()const void CreateJobGroupRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateJobGroupRequest::getScenarioId()const @@ -89,6 +89,6 @@ std::string CreateJobGroupRequest::getScenarioId()const void CreateJobGroupRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/CreateJobGroupResult.cc b/ccc/src/model/CreateJobGroupResult.cc index 7c28191fa..8bef45cdb 100644 --- a/ccc/src/model/CreateJobGroupResult.cc +++ b/ccc/src/model/CreateJobGroupResult.cc @@ -35,10 +35,13 @@ CreateJobGroupResult::~CreateJobGroupResult() void CreateJobGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobGroupNode = value["JobGroup"]; if(!jobGroupNode["JobGroupId"].isNull()) diff --git a/ccc/src/model/CreateMediaRequest.cc b/ccc/src/model/CreateMediaRequest.cc new file mode 100644 index 000000000..c0583de23 --- /dev/null +++ b/ccc/src/model/CreateMediaRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::CreateMediaRequest; + +CreateMediaRequest::CreateMediaRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateMedia") +{} + +CreateMediaRequest::~CreateMediaRequest() +{} + +std::string CreateMediaRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateMediaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateMediaRequest::getFileName()const +{ + return fileName_; +} + +void CreateMediaRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setCoreParameter("FileName", fileName); +} + +std::string CreateMediaRequest::getName()const +{ + return name_; +} + +void CreateMediaRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateMediaRequest::getDescription()const +{ + return description_; +} + +void CreateMediaRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateMediaRequest::getOssFilePath()const +{ + return ossFilePath_; +} + +void CreateMediaRequest::setOssFilePath(const std::string& ossFilePath) +{ + ossFilePath_ = ossFilePath; + setCoreParameter("OssFilePath", ossFilePath); +} + +std::string CreateMediaRequest::getUploadResult()const +{ + return uploadResult_; +} + +void CreateMediaRequest::setUploadResult(const std::string& uploadResult) +{ + uploadResult_ = uploadResult; + setCoreParameter("UploadResult", uploadResult); +} + +std::string CreateMediaRequest::getType()const +{ + return type_; +} + +void CreateMediaRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string CreateMediaRequest::getContent()const +{ + return content_; +} + +void CreateMediaRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string CreateMediaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateMediaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateMediaRequest::getOssFileName()const +{ + return ossFileName_; +} + +void CreateMediaRequest::setOssFileName(const std::string& ossFileName) +{ + ossFileName_ = ossFileName; + setCoreParameter("OssFileName", ossFileName); +} + diff --git a/ccc/src/model/CreateMediaResult.cc b/ccc/src/model/CreateMediaResult.cc new file mode 100644 index 000000000..3f1197d1b --- /dev/null +++ b/ccc/src/model/CreateMediaResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateMediaResult::CreateMediaResult() : + ServiceResult() +{} + +CreateMediaResult::CreateMediaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMediaResult::~CreateMediaResult() +{} + +void CreateMediaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto mediaUploadParamNode = value["MediaUploadParam"]; + if(!mediaUploadParamNode["Id"].isNull()) + mediaUploadParam_.id = mediaUploadParamNode["Id"].asString(); + if(!mediaUploadParamNode["Instance"].isNull()) + mediaUploadParam_.instance = mediaUploadParamNode["Instance"].asString(); + if(!mediaUploadParamNode["Name"].isNull()) + mediaUploadParam_.name = mediaUploadParamNode["Name"].asString(); + if(!mediaUploadParamNode["FileName"].isNull()) + mediaUploadParam_.fileName = mediaUploadParamNode["FileName"].asString(); + if(!mediaUploadParamNode["OssFileName"].isNull()) + mediaUploadParam_.ossFileName = mediaUploadParamNode["OssFileName"].asString(); + if(!mediaUploadParamNode["OssFilePath"].isNull()) + mediaUploadParam_.ossFilePath = mediaUploadParamNode["OssFilePath"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +CreateMediaResult::MediaUploadParam CreateMediaResult::getMediaUploadParam()const +{ + return mediaUploadParam_; +} + +std::string CreateMediaResult::getMessage()const +{ + return message_; +} + +int CreateMediaResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateMediaResult::getCode()const +{ + return code_; +} + +bool CreateMediaResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreatePredictiveJobGroupRequest.cc b/ccc/src/model/CreatePredictiveJobGroupRequest.cc new file mode 100644 index 000000000..cb6aa847f --- /dev/null +++ b/ccc/src/model/CreatePredictiveJobGroupRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::CreatePredictiveJobGroupRequest; + +CreatePredictiveJobGroupRequest::CreatePredictiveJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreatePredictiveJobGroup") +{} + +CreatePredictiveJobGroupRequest::~CreatePredictiveJobGroupRequest() +{} + +std::string CreatePredictiveJobGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreatePredictiveJobGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +bool CreatePredictiveJobGroupRequest::getIsDraft()const +{ + return isDraft_; +} + +void CreatePredictiveJobGroupRequest::setIsDraft(bool isDraft) +{ + isDraft_ = isDraft; + setCoreParameter("IsDraft", isDraft ? "true" : "false"); +} + +std::string CreatePredictiveJobGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void CreatePredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +std::string CreatePredictiveJobGroupRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void CreatePredictiveJobGroupRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setCoreParameter("StrategyJson", strategyJson); +} + +std::string CreatePredictiveJobGroupRequest::getName()const +{ + return name_; +} + +void CreatePredictiveJobGroupRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreatePredictiveJobGroupRequest::getDescription()const +{ + return description_; +} + +void CreatePredictiveJobGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +bool CreatePredictiveJobGroupRequest::getTimingSchedule()const +{ + return timingSchedule_; +} + +void CreatePredictiveJobGroupRequest::setTimingSchedule(bool timingSchedule) +{ + timingSchedule_ = timingSchedule; + setCoreParameter("TimingSchedule", timingSchedule ? "true" : "false"); +} + +std::vector CreatePredictiveJobGroupRequest::getJobsJson()const +{ + return jobsJson_; +} + +void CreatePredictiveJobGroupRequest::setJobsJson(const std::vector& jobsJson) +{ + jobsJson_ = jobsJson; + for(int i = 0; i!= jobsJson.size(); i++) + setCoreParameter("JobsJson."+ std::to_string(i), jobsJson.at(i)); +} + +std::string CreatePredictiveJobGroupRequest::getJobFilePath()const +{ + return jobFilePath_; +} + +void CreatePredictiveJobGroupRequest::setJobFilePath(const std::string& jobFilePath) +{ + jobFilePath_ = jobFilePath; + setCoreParameter("JobFilePath", jobFilePath); +} + diff --git a/ccc/src/model/CreatePredictiveJobGroupResult.cc b/ccc/src/model/CreatePredictiveJobGroupResult.cc new file mode 100644 index 000000000..16cdb8b6e --- /dev/null +++ b/ccc/src/model/CreatePredictiveJobGroupResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult() : + ServiceResult() +{} + +CreatePredictiveJobGroupResult::CreatePredictiveJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePredictiveJobGroupResult::~CreatePredictiveJobGroupResult() +{} + +void CreatePredictiveJobGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["JobGroupId"].isNull()) + jobGroupId_ = value["JobGroupId"].asString(); + +} + +std::string CreatePredictiveJobGroupResult::getJobGroupId()const +{ + return jobGroupId_; +} + +std::string CreatePredictiveJobGroupResult::getMessage()const +{ + return message_; +} + +int CreatePredictiveJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreatePredictiveJobGroupResult::getCode()const +{ + return code_; +} + +bool CreatePredictiveJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/CreatePredictiveJobsRequest.cc b/ccc/src/model/CreatePredictiveJobsRequest.cc index a2e3d1ba1..630112c5f 100644 --- a/ccc/src/model/CreatePredictiveJobsRequest.cc +++ b/ccc/src/model/CreatePredictiveJobsRequest.cc @@ -33,7 +33,7 @@ std::string CreatePredictiveJobsRequest::getInstanceId()const void CreatePredictiveJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CreatePredictiveJobsRequest::getSkillGroupId()const @@ -44,7 +44,7 @@ std::string CreatePredictiveJobsRequest::getSkillGroupId()const void CreatePredictiveJobsRequest::setSkillGroupId(const std::string& skillGroupId) { skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); + setCoreParameter("SkillGroupId", skillGroupId); } std::string CreatePredictiveJobsRequest::getStrategyJson()const @@ -55,7 +55,7 @@ std::string CreatePredictiveJobsRequest::getStrategyJson()const void CreatePredictiveJobsRequest::setStrategyJson(const std::string& strategyJson) { strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); + setCoreParameter("StrategyJson", strategyJson); } std::vector CreatePredictiveJobsRequest::getJobsJson()const @@ -67,6 +67,6 @@ void CreatePredictiveJobsRequest::setJobsJson(const std::vector& jo { jobsJson_ = jobsJson; for(int i = 0; i!= jobsJson.size(); i++) - setParameter("JobsJson."+ std::to_string(i), jobsJson.at(i)); + setCoreParameter("JobsJson."+ std::to_string(i), jobsJson.at(i)); } diff --git a/ccc/src/model/CreatePredictiveJobsResult.cc b/ccc/src/model/CreatePredictiveJobsResult.cc index 3047bedd7..427293c56 100644 --- a/ccc/src/model/CreatePredictiveJobsResult.cc +++ b/ccc/src/model/CreatePredictiveJobsResult.cc @@ -35,10 +35,13 @@ CreatePredictiveJobsResult::~CreatePredictiveJobsResult() void CreatePredictiveJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/CreateScenarioFromTemplateRequest.cc b/ccc/src/model/CreateScenarioFromTemplateRequest.cc index 08cb607d8..8677f1040 100644 --- a/ccc/src/model/CreateScenarioFromTemplateRequest.cc +++ b/ccc/src/model/CreateScenarioFromTemplateRequest.cc @@ -33,7 +33,7 @@ std::string CreateScenarioFromTemplateRequest::getVariables()const void CreateScenarioFromTemplateRequest::setVariables(const std::string& variables) { variables_ = variables; - setParameter("Variables", variables); + setCoreParameter("Variables", variables); } std::string CreateScenarioFromTemplateRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string CreateScenarioFromTemplateRequest::getInstanceId()const void CreateScenarioFromTemplateRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CreateScenarioFromTemplateRequest::getName()const @@ -55,7 +55,7 @@ std::string CreateScenarioFromTemplateRequest::getName()const void CreateScenarioFromTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateScenarioFromTemplateRequest::getDescription()const @@ -66,7 +66,7 @@ std::string CreateScenarioFromTemplateRequest::getDescription()const void CreateScenarioFromTemplateRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateScenarioFromTemplateRequest::getTemplateId()const @@ -77,6 +77,6 @@ std::string CreateScenarioFromTemplateRequest::getTemplateId()const void CreateScenarioFromTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } diff --git a/ccc/src/model/CreateScenarioFromTemplateResult.cc b/ccc/src/model/CreateScenarioFromTemplateResult.cc index 6f7c8565d..e17fa8f2c 100644 --- a/ccc/src/model/CreateScenarioFromTemplateResult.cc +++ b/ccc/src/model/CreateScenarioFromTemplateResult.cc @@ -35,10 +35,13 @@ CreateScenarioFromTemplateResult::~CreateScenarioFromTemplateResult() void CreateScenarioFromTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto scenarioNode = value["Scenario"]; if(!scenarioNode["ScenarioId"].isNull()) diff --git a/ccc/src/model/CreateScenarioRequest.cc b/ccc/src/model/CreateScenarioRequest.cc index 4ee24b72d..cbaabbb55 100644 --- a/ccc/src/model/CreateScenarioRequest.cc +++ b/ccc/src/model/CreateScenarioRequest.cc @@ -33,7 +33,7 @@ std::string CreateScenarioRequest::getInstanceId()const void CreateScenarioRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector CreateScenarioRequest::getSurveysJson()const @@ -45,7 +45,7 @@ void CreateScenarioRequest::setSurveysJson(const std::vector& surve { surveysJson_ = surveysJson; for(int i = 0; i!= surveysJson.size(); i++) - setParameter("SurveysJson."+ std::to_string(i), surveysJson.at(i)); + setCoreParameter("SurveysJson."+ std::to_string(i), surveysJson.at(i)); } std::string CreateScenarioRequest::getStrategyJson()const @@ -56,7 +56,7 @@ std::string CreateScenarioRequest::getStrategyJson()const void CreateScenarioRequest::setStrategyJson(const std::string& strategyJson) { strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); + setCoreParameter("StrategyJson", strategyJson); } std::string CreateScenarioRequest::getName()const @@ -67,7 +67,7 @@ std::string CreateScenarioRequest::getName()const void CreateScenarioRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateScenarioRequest::getDescription()const @@ -78,7 +78,7 @@ std::string CreateScenarioRequest::getDescription()const void CreateScenarioRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateScenarioRequest::getType()const @@ -89,6 +89,6 @@ std::string CreateScenarioRequest::getType()const void CreateScenarioRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } diff --git a/ccc/src/model/CreateScenarioResult.cc b/ccc/src/model/CreateScenarioResult.cc index a0ecc1e07..72cd85d98 100644 --- a/ccc/src/model/CreateScenarioResult.cc +++ b/ccc/src/model/CreateScenarioResult.cc @@ -35,10 +35,13 @@ CreateScenarioResult::~CreateScenarioResult() void CreateScenarioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto scenarioNode = value["Scenario"]; if(!scenarioNode["ScenarioId"].isNull()) diff --git a/ccc/src/model/CreateSkillGroupRequest.cc b/ccc/src/model/CreateSkillGroupRequest.cc index 87187580b..c3b6bdd47 100644 --- a/ccc/src/model/CreateSkillGroupRequest.cc +++ b/ccc/src/model/CreateSkillGroupRequest.cc @@ -34,7 +34,7 @@ void CreateSkillGroupRequest::setSkillLevel(const std::vector& skillLevel) { skillLevel_ = skillLevel; for(int i = 0; i!= skillLevel.size(); i++) - setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); + setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); } std::string CreateSkillGroupRequest::getInstanceId()const @@ -45,7 +45,18 @@ std::string CreateSkillGroupRequest::getInstanceId()const void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); +} + +bool CreateSkillGroupRequest::getAllowPrivateOutboundNumber()const +{ + return allowPrivateOutboundNumber_; +} + +void CreateSkillGroupRequest::setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber) +{ + allowPrivateOutboundNumber_ = allowPrivateOutboundNumber; + setCoreParameter("AllowPrivateOutboundNumber", allowPrivateOutboundNumber ? "true" : "false"); } std::vector CreateSkillGroupRequest::getOutboundPhoneNumberId()const @@ -57,7 +68,7 @@ void CreateSkillGroupRequest::setOutboundPhoneNumberId(const std::vector CreateSkillGroupRequest::getUserId()const @@ -91,7 +113,7 @@ void CreateSkillGroupRequest::setUserId(const std::vector& userId) { userId_ = userId; for(int i = 0; i!= userId.size(); i++) - setParameter("UserId."+ std::to_string(i), userId.at(i)); + setCoreParameter("UserId."+ std::to_string(i), userId.at(i)); } std::string CreateSkillGroupRequest::getAccessKeyId()const @@ -102,6 +124,6 @@ std::string CreateSkillGroupRequest::getAccessKeyId()const void CreateSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/CreateSkillGroupResult.cc b/ccc/src/model/CreateSkillGroupResult.cc index 3e897579c..2b858b479 100644 --- a/ccc/src/model/CreateSkillGroupResult.cc +++ b/ccc/src/model/CreateSkillGroupResult.cc @@ -35,10 +35,13 @@ CreateSkillGroupResult::~CreateSkillGroupResult() void CreateSkillGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/CreateSurveyRequest.cc b/ccc/src/model/CreateSurveyRequest.cc index 8b4e12917..0b9ec0272 100644 --- a/ccc/src/model/CreateSurveyRequest.cc +++ b/ccc/src/model/CreateSurveyRequest.cc @@ -33,7 +33,7 @@ std::string CreateSurveyRequest::getInstanceId()const void CreateSurveyRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CreateSurveyRequest::getRole()const @@ -44,7 +44,7 @@ std::string CreateSurveyRequest::getRole()const void CreateSurveyRequest::setRole(const std::string& role) { role_ = role; - setParameter("Role", role); + setCoreParameter("Role", role); } int CreateSurveyRequest::getRound()const @@ -55,7 +55,7 @@ int CreateSurveyRequest::getRound()const void CreateSurveyRequest::setRound(int round) { round_ = round; - setParameter("Round", std::to_string(round)); + setCoreParameter("Round", std::to_string(round)); } std::string CreateSurveyRequest::getFlowJson()const @@ -66,7 +66,7 @@ std::string CreateSurveyRequest::getFlowJson()const void CreateSurveyRequest::setFlowJson(const std::string& flowJson) { flowJson_ = flowJson; - setParameter("FlowJson", flowJson); + setCoreParameter("FlowJson", flowJson); } std::string CreateSurveyRequest::getName()const @@ -77,7 +77,7 @@ std::string CreateSurveyRequest::getName()const void CreateSurveyRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateSurveyRequest::getGlobalQuestions()const @@ -88,7 +88,7 @@ std::string CreateSurveyRequest::getGlobalQuestions()const void CreateSurveyRequest::setGlobalQuestions(const std::string& globalQuestions) { globalQuestions_ = globalQuestions; - setParameter("GlobalQuestions", globalQuestions); + setCoreParameter("GlobalQuestions", globalQuestions); } std::string CreateSurveyRequest::getDescription()const @@ -99,7 +99,7 @@ std::string CreateSurveyRequest::getDescription()const void CreateSurveyRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateSurveyRequest::getCorpora()const @@ -110,7 +110,7 @@ std::string CreateSurveyRequest::getCorpora()const void CreateSurveyRequest::setCorpora(const std::string& corpora) { corpora_ = corpora; - setParameter("Corpora", corpora); + setCoreParameter("Corpora", corpora); } std::string CreateSurveyRequest::getSpeechOptimizationParam()const @@ -121,7 +121,7 @@ std::string CreateSurveyRequest::getSpeechOptimizationParam()const void CreateSurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam) { speechOptimizationParam_ = speechOptimizationParam; - setParameter("SpeechOptimizationParam", speechOptimizationParam); + setCoreParameter("SpeechOptimizationParam", speechOptimizationParam); } std::string CreateSurveyRequest::getScenarioId()const @@ -132,6 +132,6 @@ std::string CreateSurveyRequest::getScenarioId()const void CreateSurveyRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/CreateSurveyResult.cc b/ccc/src/model/CreateSurveyResult.cc index 2f1c19ee8..26d39c972 100644 --- a/ccc/src/model/CreateSurveyResult.cc +++ b/ccc/src/model/CreateSurveyResult.cc @@ -35,10 +35,13 @@ CreateSurveyResult::~CreateSurveyResult() void CreateSurveyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto surveyNode = value["Survey"]; if(!surveyNode["Id"].isNull()) diff --git a/ccc/src/model/CreateUserRequest.cc b/ccc/src/model/CreateUserRequest.cc index d7f29d330..ccc63f8ae 100644 --- a/ccc/src/model/CreateUserRequest.cc +++ b/ccc/src/model/CreateUserRequest.cc @@ -25,6 +25,17 @@ CreateUserRequest::CreateUserRequest() : CreateUserRequest::~CreateUserRequest() {} +std::string CreateUserRequest::getPrivateOutboundNumberId()const +{ + return privateOutboundNumberId_; +} + +void CreateUserRequest::setPrivateOutboundNumberId(const std::string& privateOutboundNumberId) +{ + privateOutboundNumberId_ = privateOutboundNumberId; + setCoreParameter("PrivateOutboundNumberId", privateOutboundNumberId); +} + std::vector CreateUserRequest::getSkillLevel()const { return skillLevel_; @@ -34,7 +45,7 @@ void CreateUserRequest::setSkillLevel(const std::vector& skillLevel) { skillLevel_ = skillLevel; for(int i = 0; i!= skillLevel.size(); i++) - setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); + setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); } std::string CreateUserRequest::getInstanceId()const @@ -45,7 +56,7 @@ std::string CreateUserRequest::getInstanceId()const void CreateUserRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CreateUserRequest::getLoginName()const @@ -56,7 +67,7 @@ std::string CreateUserRequest::getLoginName()const void CreateUserRequest::setLoginName(const std::string& loginName) { loginName_ = loginName; - setParameter("LoginName", loginName); + setCoreParameter("LoginName", loginName); } std::string CreateUserRequest::getPhone()const @@ -67,7 +78,7 @@ std::string CreateUserRequest::getPhone()const void CreateUserRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); + setCoreParameter("Phone", phone); } std::vector CreateUserRequest::getRoleId()const @@ -79,7 +90,7 @@ void CreateUserRequest::setRoleId(const std::vector& roleId) { roleId_ = roleId; for(int i = 0; i!= roleId.size(); i++) - setParameter("RoleId."+ std::to_string(i), roleId.at(i)); + setCoreParameter("RoleId."+ std::to_string(i), roleId.at(i)); } std::string CreateUserRequest::getDisplayName()const @@ -90,7 +101,7 @@ std::string CreateUserRequest::getDisplayName()const void CreateUserRequest::setDisplayName(const std::string& displayName) { displayName_ = displayName; - setParameter("DisplayName", displayName); + setCoreParameter("DisplayName", displayName); } std::vector CreateUserRequest::getSkillGroupId()const @@ -102,7 +113,7 @@ void CreateUserRequest::setSkillGroupId(const std::vector& skillGro { skillGroupId_ = skillGroupId; for(int i = 0; i!= skillGroupId.size(); i++) - setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); } std::string CreateUserRequest::getEmail()const @@ -113,7 +124,7 @@ std::string CreateUserRequest::getEmail()const void CreateUserRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string CreateUserRequest::getAccessKeyId()const @@ -124,6 +135,6 @@ std::string CreateUserRequest::getAccessKeyId()const void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/CreateUserResult.cc b/ccc/src/model/CreateUserResult.cc index f05fc1b76..1ada33b7c 100644 --- a/ccc/src/model/CreateUserResult.cc +++ b/ccc/src/model/CreateUserResult.cc @@ -35,10 +35,13 @@ CreateUserResult::~CreateUserResult() void CreateUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/CreateVoiceAppraiseRequest.cc b/ccc/src/model/CreateVoiceAppraiseRequest.cc new file mode 100644 index 000000000..178aa1db7 --- /dev/null +++ b/ccc/src/model/CreateVoiceAppraiseRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::CreateVoiceAppraiseRequest; + +CreateVoiceAppraiseRequest::CreateVoiceAppraiseRequest() : + RpcServiceRequest("ccc", "2017-07-05", "CreateVoiceAppraise") +{} + +CreateVoiceAppraiseRequest::~CreateVoiceAppraiseRequest() +{} + +std::string CreateVoiceAppraiseRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateVoiceAppraiseRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateVoiceAppraiseRequest::getContactFlowVersionId()const +{ + return contactFlowVersionId_; +} + +void CreateVoiceAppraiseRequest::setContactFlowVersionId(const std::string& contactFlowVersionId) +{ + contactFlowVersionId_ = contactFlowVersionId; + setCoreParameter("ContactFlowVersionId", contactFlowVersionId); +} + +bool CreateVoiceAppraiseRequest::getIsAppraise()const +{ + return isAppraise_; +} + +void CreateVoiceAppraiseRequest::setIsAppraise(bool isAppraise) +{ + isAppraise_ = isAppraise; + setCoreParameter("IsAppraise", isAppraise ? "true" : "false"); +} + +std::string CreateVoiceAppraiseRequest::getContent()const +{ + return content_; +} + +void CreateVoiceAppraiseRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string CreateVoiceAppraiseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateVoiceAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/CreateVoiceAppraiseResult.cc b/ccc/src/model/CreateVoiceAppraiseResult.cc new file mode 100644 index 000000000..deff055c4 --- /dev/null +++ b/ccc/src/model/CreateVoiceAppraiseResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +CreateVoiceAppraiseResult::CreateVoiceAppraiseResult() : + ServiceResult() +{} + +CreateVoiceAppraiseResult::CreateVoiceAppraiseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVoiceAppraiseResult::~CreateVoiceAppraiseResult() +{} + +void CreateVoiceAppraiseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateVoiceAppraiseResult::getMessage()const +{ + return message_; +} + +int CreateVoiceAppraiseResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateVoiceAppraiseResult::getCode()const +{ + return code_; +} + +bool CreateVoiceAppraiseResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteInstanceRequest.cc b/ccc/src/model/DeleteInstanceRequest.cc new file mode 100644 index 000000000..26d62c4af --- /dev/null +++ b/ccc/src/model/DeleteInstanceRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DeleteInstance") +{} + +DeleteInstanceRequest::~DeleteInstanceRequest() +{} + +std::string DeleteInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DeleteInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/DeleteInstanceResult.cc b/ccc/src/model/DeleteInstanceResult.cc new file mode 100644 index 000000000..b27c31202 --- /dev/null +++ b/ccc/src/model/DeleteInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DeleteInstanceResult::DeleteInstanceResult() : + ServiceResult() +{} + +DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteInstanceResult::~DeleteInstanceResult() +{} + +void DeleteInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeleteInstanceResult::getMessage()const +{ + return message_; +} + +int DeleteInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteInstanceResult::getCode()const +{ + return code_; +} + +bool DeleteInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteJobGroupRequest.cc b/ccc/src/model/DeleteJobGroupRequest.cc index 753a4fc79..0517f4400 100644 --- a/ccc/src/model/DeleteJobGroupRequest.cc +++ b/ccc/src/model/DeleteJobGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteJobGroupRequest::getInstanceId()const void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DeleteJobGroupRequest::getJobGroupId()const @@ -44,6 +44,6 @@ std::string DeleteJobGroupRequest::getJobGroupId()const void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } diff --git a/ccc/src/model/DeleteJobGroupResult.cc b/ccc/src/model/DeleteJobGroupResult.cc index 062dabb00..40ec6b079 100644 --- a/ccc/src/model/DeleteJobGroupResult.cc +++ b/ccc/src/model/DeleteJobGroupResult.cc @@ -35,10 +35,13 @@ DeleteJobGroupResult::~DeleteJobGroupResult() void DeleteJobGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/DeleteMediaRequest.cc b/ccc/src/model/DeleteMediaRequest.cc new file mode 100644 index 000000000..eaa72d1b0 --- /dev/null +++ b/ccc/src/model/DeleteMediaRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::DeleteMediaRequest; + +DeleteMediaRequest::DeleteMediaRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DeleteMedia") +{} + +DeleteMediaRequest::~DeleteMediaRequest() +{} + +std::string DeleteMediaRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteMediaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DeleteMediaRequest::getName()const +{ + return name_; +} + +void DeleteMediaRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DeleteMediaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteMediaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/DeleteMediaResult.cc b/ccc/src/model/DeleteMediaResult.cc new file mode 100644 index 000000000..32cfa7b25 --- /dev/null +++ b/ccc/src/model/DeleteMediaResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +DeleteMediaResult::DeleteMediaResult() : + ServiceResult() +{} + +DeleteMediaResult::DeleteMediaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMediaResult::~DeleteMediaResult() +{} + +void DeleteMediaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DeleteMediaResult::getMessage()const +{ + return message_; +} + +int DeleteMediaResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteMediaResult::getCode()const +{ + return code_; +} + +bool DeleteMediaResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DeleteSkillGroupRequest.cc b/ccc/src/model/DeleteSkillGroupRequest.cc index 39fa535c2..76cfe332c 100644 --- a/ccc/src/model/DeleteSkillGroupRequest.cc +++ b/ccc/src/model/DeleteSkillGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteSkillGroupRequest::getInstanceId()const void DeleteSkillGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DeleteSkillGroupRequest::getSkillGroupId()const @@ -44,7 +44,7 @@ std::string DeleteSkillGroupRequest::getSkillGroupId()const void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) { skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); + setCoreParameter("SkillGroupId", skillGroupId); } std::string DeleteSkillGroupRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeleteSkillGroupRequest::getAccessKeyId()const void DeleteSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/DeleteSkillGroupResult.cc b/ccc/src/model/DeleteSkillGroupResult.cc index c8219fe65..56a305642 100644 --- a/ccc/src/model/DeleteSkillGroupResult.cc +++ b/ccc/src/model/DeleteSkillGroupResult.cc @@ -35,10 +35,13 @@ DeleteSkillGroupResult::~DeleteSkillGroupResult() void DeleteSkillGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/DeleteSurveyRequest.cc b/ccc/src/model/DeleteSurveyRequest.cc index 778ff2036..11686c782 100644 --- a/ccc/src/model/DeleteSurveyRequest.cc +++ b/ccc/src/model/DeleteSurveyRequest.cc @@ -33,7 +33,7 @@ std::string DeleteSurveyRequest::getSurveyId()const void DeleteSurveyRequest::setSurveyId(const std::string& surveyId) { surveyId_ = surveyId; - setParameter("SurveyId", surveyId); + setCoreParameter("SurveyId", surveyId); } std::string DeleteSurveyRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string DeleteSurveyRequest::getInstanceId()const void DeleteSurveyRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DeleteSurveyRequest::getScenarioId()const @@ -55,6 +55,6 @@ std::string DeleteSurveyRequest::getScenarioId()const void DeleteSurveyRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/DeleteSurveyResult.cc b/ccc/src/model/DeleteSurveyResult.cc index ee4d8437d..9058d1c91 100644 --- a/ccc/src/model/DeleteSurveyResult.cc +++ b/ccc/src/model/DeleteSurveyResult.cc @@ -35,10 +35,13 @@ DeleteSurveyResult::~DeleteSurveyResult() void DeleteSurveyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/DialExRequest.cc b/ccc/src/model/DialExRequest.cc new file mode 100644 index 000000000..70c2fc7fe --- /dev/null +++ b/ccc/src/model/DialExRequest.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 + +using AlibabaCloud::CCC::Model::DialExRequest; + +DialExRequest::DialExRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DialEx") +{} + +DialExRequest::~DialExRequest() +{} + +std::string DialExRequest::getRoutPoint()const +{ + return routPoint_; +} + +void DialExRequest::setRoutPoint(const std::string& routPoint) +{ + routPoint_ = routPoint; + setCoreParameter("RoutPoint", routPoint); +} + +std::string DialExRequest::getCaller()const +{ + return caller_; +} + +void DialExRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setCoreParameter("Caller", caller); +} + +std::string DialExRequest::getInstanceId()const +{ + return instanceId_; +} + +void DialExRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DialExRequest::getProvider()const +{ + return provider_; +} + +void DialExRequest::setProvider(const std::string& provider) +{ + provider_ = provider; + setCoreParameter("Provider", provider); +} + +std::string DialExRequest::getCallee()const +{ + return callee_; +} + +void DialExRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setCoreParameter("Callee", callee); +} + +int DialExRequest::getAnswerMode()const +{ + return answerMode_; +} + +void DialExRequest::setAnswerMode(int answerMode) +{ + answerMode_ = answerMode; + setCoreParameter("AnswerMode", std::to_string(answerMode)); +} + +std::string DialExRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DialExRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/DialExResult.cc b/ccc/src/model/DialExResult.cc new file mode 100644 index 000000000..9c05b6897 --- /dev/null +++ b/ccc/src/model/DialExResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +DialExResult::DialExResult() : + ServiceResult() +{} + +DialExResult::DialExResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DialExResult::~DialExResult() +{} + +void DialExResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["StatusCode"].isNull()) + statusCode_ = value["StatusCode"].asString(); + if(!value["StatusDesc"].isNull()) + statusDesc_ = value["StatusDesc"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); + +} + +std::string DialExResult::getStatusDesc()const +{ + return statusDesc_; +} + +std::string DialExResult::getTaskId()const +{ + return taskId_; +} + +std::string DialExResult::getMessage()const +{ + return message_; +} + +int DialExResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DialExResult::getCode()const +{ + return code_; +} + +std::string DialExResult::getStatusCode()const +{ + return statusCode_; +} + +bool DialExResult::getSuccess()const +{ + return success_; +} + +std::string DialExResult::getTimeStamp()const +{ + return timeStamp_; +} + diff --git a/ccc/src/model/DialogueRequest.cc b/ccc/src/model/DialogueRequest.cc index d640d03ed..62e2fb504 100644 --- a/ccc/src/model/DialogueRequest.cc +++ b/ccc/src/model/DialogueRequest.cc @@ -33,7 +33,7 @@ std::string DialogueRequest::getCallId()const void DialogueRequest::setCallId(const std::string& callId) { callId_ = callId; - setParameter("CallId", callId); + setCoreParameter("CallId", callId); } std::string DialogueRequest::getCallingNumber()const @@ -44,7 +44,7 @@ std::string DialogueRequest::getCallingNumber()const void DialogueRequest::setCallingNumber(const std::string& callingNumber) { callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); + setCoreParameter("CallingNumber", callingNumber); } std::string DialogueRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string DialogueRequest::getInstanceId()const void DialogueRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DialogueRequest::getCalledNumber()const @@ -66,7 +66,18 @@ std::string DialogueRequest::getCalledNumber()const void DialogueRequest::setCalledNumber(const std::string& calledNumber) { calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); + setCoreParameter("CalledNumber", calledNumber); +} + +long DialogueRequest::getInstanceOwnerId()const +{ + return instanceOwnerId_; +} + +void DialogueRequest::setInstanceOwnerId(long instanceOwnerId) +{ + instanceOwnerId_ = instanceOwnerId; + setCoreParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); } std::string DialogueRequest::getActionKey()const @@ -77,7 +88,7 @@ std::string DialogueRequest::getActionKey()const void DialogueRequest::setActionKey(const std::string& actionKey) { actionKey_ = actionKey; - setParameter("ActionKey", actionKey); + setCoreParameter("ActionKey", actionKey); } std::string DialogueRequest::getActionParams()const @@ -88,7 +99,7 @@ std::string DialogueRequest::getActionParams()const void DialogueRequest::setActionParams(const std::string& actionParams) { actionParams_ = actionParams; - setParameter("ActionParams", actionParams); + setCoreParameter("ActionParams", actionParams); } std::string DialogueRequest::getCallType()const @@ -99,7 +110,7 @@ std::string DialogueRequest::getCallType()const void DialogueRequest::setCallType(const std::string& callType) { callType_ = callType; - setParameter("CallType", callType); + setCoreParameter("CallType", callType); } std::string DialogueRequest::getScenarioId()const @@ -110,7 +121,7 @@ std::string DialogueRequest::getScenarioId()const void DialogueRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } std::string DialogueRequest::getTaskId()const @@ -121,7 +132,7 @@ std::string DialogueRequest::getTaskId()const void DialogueRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string DialogueRequest::getUtterance()const @@ -132,6 +143,6 @@ std::string DialogueRequest::getUtterance()const void DialogueRequest::setUtterance(const std::string& utterance) { utterance_ = utterance; - setParameter("Utterance", utterance); + setCoreParameter("Utterance", utterance); } diff --git a/ccc/src/model/DialogueResult.cc b/ccc/src/model/DialogueResult.cc index 10d2dbb76..98a3c0ff2 100644 --- a/ccc/src/model/DialogueResult.cc +++ b/ccc/src/model/DialogueResult.cc @@ -35,10 +35,13 @@ DialogueResult::~DialogueResult() void DialogueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto feedbackNode = value["Feedback"]; if(!feedbackNode["Content"].isNull()) diff --git a/ccc/src/model/DownloadAllTypeRecordingRequest.cc b/ccc/src/model/DownloadAllTypeRecordingRequest.cc new file mode 100644 index 000000000..309cd2558 --- /dev/null +++ b/ccc/src/model/DownloadAllTypeRecordingRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::DownloadAllTypeRecordingRequest; + +DownloadAllTypeRecordingRequest::DownloadAllTypeRecordingRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DownloadAllTypeRecording") +{} + +DownloadAllTypeRecordingRequest::~DownloadAllTypeRecordingRequest() +{} + +std::string DownloadAllTypeRecordingRequest::getInstanceId()const +{ + return instanceId_; +} + +void DownloadAllTypeRecordingRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DownloadAllTypeRecordingRequest::getContactId()const +{ + return contactId_; +} + +void DownloadAllTypeRecordingRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setCoreParameter("ContactId", contactId); +} + +std::string DownloadAllTypeRecordingRequest::getChannel()const +{ + return channel_; +} + +void DownloadAllTypeRecordingRequest::setChannel(const std::string& channel) +{ + channel_ = channel; + setCoreParameter("Channel", channel); +} + +std::string DownloadAllTypeRecordingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DownloadAllTypeRecordingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/DownloadAllTypeRecordingResult.cc b/ccc/src/model/DownloadAllTypeRecordingResult.cc new file mode 100644 index 000000000..b9826f251 --- /dev/null +++ b/ccc/src/model/DownloadAllTypeRecordingResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +DownloadAllTypeRecordingResult::DownloadAllTypeRecordingResult() : + ServiceResult() +{} + +DownloadAllTypeRecordingResult::DownloadAllTypeRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadAllTypeRecordingResult::~DownloadAllTypeRecordingResult() +{} + +void DownloadAllTypeRecordingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allMediaDownloadParamList = value["MediaDownloadParamList"]["MediaDownloadParam"]; + for (auto value : allMediaDownloadParamList) + { + MediaDownloadParam mediaDownloadParamListObject; + if(!value["SignatureUrl"].isNull()) + mediaDownloadParamListObject.signatureUrl = value["SignatureUrl"].asString(); + if(!value["FileName"].isNull()) + mediaDownloadParamListObject.fileName = value["FileName"].asString(); + mediaDownloadParamList_.push_back(mediaDownloadParamListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DownloadAllTypeRecordingResult::getMessage()const +{ + return message_; +} + +int DownloadAllTypeRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector DownloadAllTypeRecordingResult::getMediaDownloadParamList()const +{ + return mediaDownloadParamList_; +} + +std::string DownloadAllTypeRecordingResult::getCode()const +{ + return code_; +} + +bool DownloadAllTypeRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DownloadCabRecordingRequest.cc b/ccc/src/model/DownloadCabRecordingRequest.cc new file mode 100644 index 000000000..4bde4674a --- /dev/null +++ b/ccc/src/model/DownloadCabRecordingRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::DownloadCabRecordingRequest; + +DownloadCabRecordingRequest::DownloadCabRecordingRequest() : + RpcServiceRequest("ccc", "2017-07-05", "DownloadCabRecording") +{} + +DownloadCabRecordingRequest::~DownloadCabRecordingRequest() +{} + +std::string DownloadCabRecordingRequest::getInstanceId()const +{ + return instanceId_; +} + +void DownloadCabRecordingRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DownloadCabRecordingRequest::getTaskId()const +{ + return taskId_; +} + +void DownloadCabRecordingRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + diff --git a/ccc/src/model/DownloadCabRecordingResult.cc b/ccc/src/model/DownloadCabRecordingResult.cc new file mode 100644 index 000000000..04c70a998 --- /dev/null +++ b/ccc/src/model/DownloadCabRecordingResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +DownloadCabRecordingResult::DownloadCabRecordingResult() : + ServiceResult() +{} + +DownloadCabRecordingResult::DownloadCabRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadCabRecordingResult::~DownloadCabRecordingResult() +{} + +void DownloadCabRecordingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto mediaDownloadParamNode = value["MediaDownloadParam"]; + if(!mediaDownloadParamNode["SignatureUrl"].isNull()) + mediaDownloadParam_.signatureUrl = mediaDownloadParamNode["SignatureUrl"].asString(); + if(!mediaDownloadParamNode["FileName"].isNull()) + mediaDownloadParam_.fileName = mediaDownloadParamNode["FileName"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +DownloadCabRecordingResult::MediaDownloadParam DownloadCabRecordingResult::getMediaDownloadParam()const +{ + return mediaDownloadParam_; +} + +std::string DownloadCabRecordingResult::getMessage()const +{ + return message_; +} + +int DownloadCabRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DownloadCabRecordingResult::getCode()const +{ + return code_; +} + +bool DownloadCabRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc b/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc index 3deaadce6..b9b9692f0 100644 --- a/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc +++ b/ccc/src/model/DownloadOriginalStatisticsReportRequest.cc @@ -33,7 +33,7 @@ std::string DownloadOriginalStatisticsReportRequest::getInstanceId()const void DownloadOriginalStatisticsReportRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DownloadOriginalStatisticsReportRequest::getJobGroupId()const @@ -44,6 +44,6 @@ std::string DownloadOriginalStatisticsReportRequest::getJobGroupId()const void DownloadOriginalStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } diff --git a/ccc/src/model/DownloadOriginalStatisticsReportResult.cc b/ccc/src/model/DownloadOriginalStatisticsReportResult.cc index 1636ef94a..520616886 100644 --- a/ccc/src/model/DownloadOriginalStatisticsReportResult.cc +++ b/ccc/src/model/DownloadOriginalStatisticsReportResult.cc @@ -35,10 +35,13 @@ DownloadOriginalStatisticsReportResult::~DownloadOriginalStatisticsReportResult( void DownloadOriginalStatisticsReportResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto downloadParamsNode = value["DownloadParams"]; if(!downloadParamsNode["SignatureUrl"].isNull()) diff --git a/ccc/src/model/DownloadRecordingRequest.cc b/ccc/src/model/DownloadRecordingRequest.cc index 091685f58..9e9052ca1 100644 --- a/ccc/src/model/DownloadRecordingRequest.cc +++ b/ccc/src/model/DownloadRecordingRequest.cc @@ -33,7 +33,7 @@ std::string DownloadRecordingRequest::getInstanceId()const void DownloadRecordingRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DownloadRecordingRequest::getFileName()const @@ -44,7 +44,7 @@ std::string DownloadRecordingRequest::getFileName()const void DownloadRecordingRequest::setFileName(const std::string& fileName) { fileName_ = fileName; - setParameter("FileName", fileName); + setCoreParameter("FileName", fileName); } std::string DownloadRecordingRequest::getChannel()const @@ -55,7 +55,7 @@ std::string DownloadRecordingRequest::getChannel()const void DownloadRecordingRequest::setChannel(const std::string& channel) { channel_ = channel; - setParameter("Channel", channel); + setCoreParameter("Channel", channel); } std::string DownloadRecordingRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DownloadRecordingRequest::getAccessKeyId()const void DownloadRecordingRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/DownloadRecordingResult.cc b/ccc/src/model/DownloadRecordingResult.cc index 011e2a622..5e7424a49 100644 --- a/ccc/src/model/DownloadRecordingResult.cc +++ b/ccc/src/model/DownloadRecordingResult.cc @@ -35,10 +35,13 @@ DownloadRecordingResult::~DownloadRecordingResult() void DownloadRecordingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaDownloadParamNode = value["MediaDownloadParam"]; if(!mediaDownloadParamNode["SignatureUrl"].isNull()) diff --git a/ccc/src/model/DownloadUnreachableContactsRequest.cc b/ccc/src/model/DownloadUnreachableContactsRequest.cc index a9a062918..2483e5ae9 100644 --- a/ccc/src/model/DownloadUnreachableContactsRequest.cc +++ b/ccc/src/model/DownloadUnreachableContactsRequest.cc @@ -33,7 +33,7 @@ std::string DownloadUnreachableContactsRequest::getInstanceId()const void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DownloadUnreachableContactsRequest::getJobGroupId()const @@ -44,6 +44,6 @@ std::string DownloadUnreachableContactsRequest::getJobGroupId()const void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } diff --git a/ccc/src/model/DownloadUnreachableContactsResult.cc b/ccc/src/model/DownloadUnreachableContactsResult.cc index 80d7ee1c6..2f036c23b 100644 --- a/ccc/src/model/DownloadUnreachableContactsResult.cc +++ b/ccc/src/model/DownloadUnreachableContactsResult.cc @@ -35,10 +35,13 @@ DownloadUnreachableContactsResult::~DownloadUnreachableContactsResult() void DownloadUnreachableContactsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto downloadParamsNode = value["DownloadParams"]; if(!downloadParamsNode["SignatureUrl"].isNull()) diff --git a/ccc/src/model/FindUsersRequest.cc b/ccc/src/model/FindUsersRequest.cc new file mode 100644 index 000000000..5c267da51 --- /dev/null +++ b/ccc/src/model/FindUsersRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::FindUsersRequest; + +FindUsersRequest::FindUsersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "FindUsers") +{} + +FindUsersRequest::~FindUsersRequest() +{} + +std::string FindUsersRequest::getInstanceId()const +{ + return instanceId_; +} + +void FindUsersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string FindUsersRequest::getCriteria()const +{ + return criteria_; +} + +void FindUsersRequest::setCriteria(const std::string& criteria) +{ + criteria_ = criteria; + setCoreParameter("Criteria", criteria); +} + +int FindUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void FindUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int FindUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void FindUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string FindUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void FindUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/FindUsersResult.cc b/ccc/src/model/FindUsersResult.cc new file mode 100644 index 000000000..f04d4f5b6 --- /dev/null +++ b/ccc/src/model/FindUsersResult.cc @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +FindUsersResult::FindUsersResult() : + ServiceResult() +{} + +FindUsersResult::FindUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindUsersResult::~FindUsersResult() +{} + +void FindUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto usersNode = value["Users"]; + if(!usersNode["TotalCount"].isNull()) + users_.totalCount = std::stoi(usersNode["TotalCount"].asString()); + if(!usersNode["PageNumber"].isNull()) + users_.pageNumber = std::stoi(usersNode["PageNumber"].asString()); + if(!usersNode["PageSize"].isNull()) + users_.pageSize = std::stoi(usersNode["PageSize"].asString()); + auto allList = value["List"]["User"]; + for (auto value : allList) + { + Users::User userObject; + if(!value["UserId"].isNull()) + userObject.userId = value["UserId"].asString(); + if(!value["RamId"].isNull()) + userObject.ramId = value["RamId"].asString(); + if(!value["InstanceId"].isNull()) + userObject.instanceId = value["InstanceId"].asString(); + if(!value["PrivateOutboundNumberId"].isNull()) + userObject.privateOutboundNumberId = value["PrivateOutboundNumberId"].asString(); + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + { + Users::User::Role rolesObject; + if(!value["RoleId"].isNull()) + rolesObject.roleId = value["RoleId"].asString(); + if(!value["InstanceId"].isNull()) + rolesObject.instanceId = value["InstanceId"].asString(); + if(!value["RoleName"].isNull()) + rolesObject.roleName = value["RoleName"].asString(); + if(!value["RoleDescription"].isNull()) + rolesObject.roleDescription = value["RoleDescription"].asString(); + userObject.roles.push_back(rolesObject); + } + auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; + for (auto value : allSkillLevels) + { + Users::User::SkillLevel skillLevelsObject; + if(!value["SkillLevelId"].isNull()) + skillLevelsObject.skillLevelId = value["SkillLevelId"].asString(); + if(!value["Level"].isNull()) + skillLevelsObject.level = std::stoi(value["Level"].asString()); + auto skillNode = value["Skill"]; + if(!skillNode["SkillGroupId"].isNull()) + skillLevelsObject.skill.skillGroupId = skillNode["SkillGroupId"].asString(); + if(!skillNode["InstanceId"].isNull()) + skillLevelsObject.skill.instanceId = skillNode["InstanceId"].asString(); + if(!skillNode["SkillGroupName"].isNull()) + skillLevelsObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); + if(!skillNode["SkillGroupDescription"].isNull()) + skillLevelsObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + userObject.skillLevels.push_back(skillLevelsObject); + } + auto detailNode = value["Detail"]; + if(!detailNode["LoginName"].isNull()) + userObject.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + userObject.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + userObject.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + userObject.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + userObject.detail.department = detailNode["Department"].asString(); + users_.list.push_back(userObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string FindUsersResult::getMessage()const +{ + return message_; +} + +int FindUsersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +FindUsersResult::Users FindUsersResult::getUsers()const +{ + return users_; +} + +std::string FindUsersResult::getCode()const +{ + return code_; +} + +bool FindUsersResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GenerateAgentStatisticReportRequest.cc b/ccc/src/model/GenerateAgentStatisticReportRequest.cc index eaba15030..8abeb7e04 100644 --- a/ccc/src/model/GenerateAgentStatisticReportRequest.cc +++ b/ccc/src/model/GenerateAgentStatisticReportRequest.cc @@ -33,7 +33,7 @@ std::string GenerateAgentStatisticReportRequest::getAgentId()const void GenerateAgentStatisticReportRequest::setAgentId(const std::string& agentId) { agentId_ = agentId; - setParameter("AgentId", agentId); + setCoreParameter("AgentId", agentId); } std::string GenerateAgentStatisticReportRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string GenerateAgentStatisticReportRequest::getInstanceId()const void GenerateAgentStatisticReportRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GenerateAgentStatisticReportRequest::getEndDate()const @@ -55,7 +55,7 @@ std::string GenerateAgentStatisticReportRequest::getEndDate()const void GenerateAgentStatisticReportRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } int GenerateAgentStatisticReportRequest::getPageSize()const @@ -66,7 +66,7 @@ int GenerateAgentStatisticReportRequest::getPageSize()const void GenerateAgentStatisticReportRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string GenerateAgentStatisticReportRequest::getStartDate()const @@ -77,7 +77,7 @@ std::string GenerateAgentStatisticReportRequest::getStartDate()const void GenerateAgentStatisticReportRequest::setStartDate(const std::string& startDate) { startDate_ = startDate; - setParameter("StartDate", startDate); + setCoreParameter("StartDate", startDate); } int GenerateAgentStatisticReportRequest::getPageNumber()const @@ -88,7 +88,7 @@ int GenerateAgentStatisticReportRequest::getPageNumber()const void GenerateAgentStatisticReportRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string GenerateAgentStatisticReportRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string GenerateAgentStatisticReportRequest::getAccessKeyId()const void GenerateAgentStatisticReportRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GenerateAgentStatisticReportResult.cc b/ccc/src/model/GenerateAgentStatisticReportResult.cc index ff253694b..f506a5e58 100644 --- a/ccc/src/model/GenerateAgentStatisticReportResult.cc +++ b/ccc/src/model/GenerateAgentStatisticReportResult.cc @@ -35,10 +35,13 @@ GenerateAgentStatisticReportResult::~GenerateAgentStatisticReportResult() void GenerateAgentStatisticReportResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataListNode = value["DataList"]; if(!dataListNode["TotalCount"].isNull()) diff --git a/ccc/src/model/GetAgentDataRequest.cc b/ccc/src/model/GetAgentDataRequest.cc index 152737535..df0b92794 100644 --- a/ccc/src/model/GetAgentDataRequest.cc +++ b/ccc/src/model/GetAgentDataRequest.cc @@ -33,7 +33,7 @@ std::string GetAgentDataRequest::getInstanceId()const void GetAgentDataRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetAgentDataRequest::getStartDay()const @@ -44,7 +44,7 @@ std::string GetAgentDataRequest::getStartDay()const void GetAgentDataRequest::setStartDay(const std::string& startDay) { startDay_ = startDay; - setParameter("StartDay", startDay); + setCoreParameter("StartDay", startDay); } std::string GetAgentDataRequest::getEndDay()const @@ -55,7 +55,7 @@ std::string GetAgentDataRequest::getEndDay()const void GetAgentDataRequest::setEndDay(const std::string& endDay) { endDay_ = endDay; - setParameter("EndDay", endDay); + setCoreParameter("EndDay", endDay); } int GetAgentDataRequest::getPageSize()const @@ -66,7 +66,7 @@ int GetAgentDataRequest::getPageSize()const void GetAgentDataRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string GetAgentDataRequest::getUserId()const @@ -77,7 +77,7 @@ std::string GetAgentDataRequest::getUserId()const void GetAgentDataRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } int GetAgentDataRequest::getPageNumber()const @@ -88,7 +88,7 @@ int GetAgentDataRequest::getPageNumber()const void GetAgentDataRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string GetAgentDataRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string GetAgentDataRequest::getAccessKeyId()const void GetAgentDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GetAgentDataResult.cc b/ccc/src/model/GetAgentDataResult.cc index fb22eabb1..e7c21a617 100644 --- a/ccc/src/model/GetAgentDataResult.cc +++ b/ccc/src/model/GetAgentDataResult.cc @@ -35,10 +35,13 @@ GetAgentDataResult::~GetAgentDataResult() void GetAgentDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataListNode = value["DataList"]; if(!dataListNode["TotalCount"].isNull()) diff --git a/ccc/src/model/GetAgentStateRequest.cc b/ccc/src/model/GetAgentStateRequest.cc new file mode 100644 index 000000000..13d80c03c --- /dev/null +++ b/ccc/src/model/GetAgentStateRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetAgentStateRequest; + +GetAgentStateRequest::GetAgentStateRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetAgentState") +{} + +GetAgentStateRequest::~GetAgentStateRequest() +{} + +std::string GetAgentStateRequest::getAgentId()const +{ + return agentId_; +} + +void GetAgentStateRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setCoreParameter("AgentId", agentId); +} + +std::string GetAgentStateRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetAgentStateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetAgentStateRequest::getDn()const +{ + return dn_; +} + +void GetAgentStateRequest::setDn(const std::string& dn) +{ + dn_ = dn; + setCoreParameter("Dn", dn); +} + +std::string GetAgentStateRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetAgentStateRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetAgentStateResult.cc b/ccc/src/model/GetAgentStateResult.cc new file mode 100644 index 000000000..d0d92de45 --- /dev/null +++ b/ccc/src/model/GetAgentStateResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetAgentStateResult::GetAgentStateResult() : + ServiceResult() +{} + +GetAgentStateResult::GetAgentStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAgentStateResult::~GetAgentStateResult() +{} + +void GetAgentStateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["AgentId"].isNull()) + data_.agentId = dataNode["AgentId"].asString(); + if(!dataNode["LoginName"].isNull()) + data_.loginName = dataNode["LoginName"].asString(); + if(!dataNode["AgentName"].isNull()) + data_.agentName = dataNode["AgentName"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); + if(!dataNode["Dn"].isNull()) + data_.dn = dataNode["Dn"].asString(); + if(!dataNode["StateDuration"].isNull()) + data_.stateDuration = dataNode["StateDuration"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetAgentStateResult::getMessage()const +{ + return message_; +} + +int GetAgentStateResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetAgentStateResult::Data GetAgentStateResult::getData()const +{ + return data_; +} + +std::string GetAgentStateResult::getCode()const +{ + return code_; +} + +bool GetAgentStateResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetCallMeasureSummaryReportRequest.cc b/ccc/src/model/GetCallMeasureSummaryReportRequest.cc new file mode 100644 index 000000000..5274bccf1 --- /dev/null +++ b/ccc/src/model/GetCallMeasureSummaryReportRequest.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 + +using AlibabaCloud::CCC::Model::GetCallMeasureSummaryReportRequest; + +GetCallMeasureSummaryReportRequest::GetCallMeasureSummaryReportRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetCallMeasureSummaryReport") +{} + +GetCallMeasureSummaryReportRequest::~GetCallMeasureSummaryReportRequest() +{} + +std::string GetCallMeasureSummaryReportRequest::getIntervalType()const +{ + return intervalType_; +} + +void GetCallMeasureSummaryReportRequest::setIntervalType(const std::string& intervalType) +{ + intervalType_ = intervalType; + setCoreParameter("IntervalType", intervalType); +} + +int GetCallMeasureSummaryReportRequest::getMonth()const +{ + return month_; +} + +void GetCallMeasureSummaryReportRequest::setMonth(int month) +{ + month_ = month; + setCoreParameter("Month", std::to_string(month)); +} + +int GetCallMeasureSummaryReportRequest::getYear()const +{ + return year_; +} + +void GetCallMeasureSummaryReportRequest::setYear(int year) +{ + year_ = year; + setCoreParameter("Year", std::to_string(year)); +} + +int GetCallMeasureSummaryReportRequest::getPageSize()const +{ + return pageSize_; +} + +void GetCallMeasureSummaryReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int GetCallMeasureSummaryReportRequest::getDay()const +{ + return day_; +} + +void GetCallMeasureSummaryReportRequest::setDay(int day) +{ + day_ = day; + setCoreParameter("Day", std::to_string(day)); +} + +int GetCallMeasureSummaryReportRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetCallMeasureSummaryReportRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetCallMeasureSummaryReportRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetCallMeasureSummaryReportRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetCallMeasureSummaryReportResult.cc b/ccc/src/model/GetCallMeasureSummaryReportResult.cc new file mode 100644 index 000000000..95feea859 --- /dev/null +++ b/ccc/src/model/GetCallMeasureSummaryReportResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetCallMeasureSummaryReportResult::GetCallMeasureSummaryReportResult() : + ServiceResult() +{} + +GetCallMeasureSummaryReportResult::GetCallMeasureSummaryReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCallMeasureSummaryReportResult::~GetCallMeasureSummaryReportResult() +{} + +void GetCallMeasureSummaryReportResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto summaryReportNode = value["SummaryReport"]; + if(!summaryReportNode["Year"].isNull()) + summaryReport_.year = std::stoi(summaryReportNode["Year"].asString()); + if(!summaryReportNode["Month"].isNull()) + summaryReport_.month = std::stoi(summaryReportNode["Month"].asString()); + if(!summaryReportNode["Day"].isNull()) + summaryReport_.day = std::stoi(summaryReportNode["Day"].asString()); + if(!summaryReportNode["InboundCount"].isNull()) + summaryReport_.inboundCount = std::stol(summaryReportNode["InboundCount"].asString()); + if(!summaryReportNode["OutboundCount"].isNull()) + summaryReport_.outboundCount = std::stol(summaryReportNode["OutboundCount"].asString()); + if(!summaryReportNode["OutboundDurationByMinute"].isNull()) + summaryReport_.outboundDurationByMinute = std::stol(summaryReportNode["OutboundDurationByMinute"].asString()); + if(!summaryReportNode["InboundDurationByMinute"].isNull()) + summaryReport_.inboundDurationByMinute = std::stol(summaryReportNode["InboundDurationByMinute"].asString()); + auto numberReportsNode = value["NumberReports"]; + if(!numberReportsNode["TotalCount"].isNull()) + numberReports_.totalCount = std::stoi(numberReportsNode["TotalCount"].asString()); + if(!numberReportsNode["PageNumber"].isNull()) + numberReports_.pageNumber = std::stoi(numberReportsNode["PageNumber"].asString()); + if(!numberReportsNode["PageSize"].isNull()) + numberReports_.pageSize = std::stoi(numberReportsNode["PageSize"].asString()); + auto allList = value["List"]["NumberReport"]; + for (auto value : allList) + { + NumberReports::NumberReport numberReportObject; + if(!value["Number"].isNull()) + numberReportObject.number = value["Number"].asString(); + if(!value["Year"].isNull()) + numberReportObject.year = std::stoi(value["Year"].asString()); + if(!value["Month"].isNull()) + numberReportObject.month = std::stoi(value["Month"].asString()); + if(!value["Day"].isNull()) + numberReportObject.day = std::stoi(value["Day"].asString()); + if(!value["InboundCount"].isNull()) + numberReportObject.inboundCount = std::stol(value["InboundCount"].asString()); + if(!value["OutboundCount"].isNull()) + numberReportObject.outboundCount = std::stol(value["OutboundCount"].asString()); + if(!value["OutboundDurationByMinute"].isNull()) + numberReportObject.outboundDurationByMinute = std::stol(value["OutboundDurationByMinute"].asString()); + if(!value["InboundDurationByMinute"].isNull()) + numberReportObject.inboundDurationByMinute = std::stol(value["InboundDurationByMinute"].asString()); + numberReports_.list.push_back(numberReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetCallMeasureSummaryReportResult::NumberReports GetCallMeasureSummaryReportResult::getNumberReports()const +{ + return numberReports_; +} + +GetCallMeasureSummaryReportResult::SummaryReport GetCallMeasureSummaryReportResult::getSummaryReport()const +{ + return summaryReport_; +} + +std::string GetCallMeasureSummaryReportResult::getMessage()const +{ + return message_; +} + +int GetCallMeasureSummaryReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetCallMeasureSummaryReportResult::getCode()const +{ + return code_; +} + +bool GetCallMeasureSummaryReportResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetConfigRequest.cc b/ccc/src/model/GetConfigRequest.cc index e81c78464..d939dc5b3 100644 --- a/ccc/src/model/GetConfigRequest.cc +++ b/ccc/src/model/GetConfigRequest.cc @@ -33,7 +33,7 @@ std::string GetConfigRequest::getInstanceId()const void GetConfigRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetConfigRequest::getName()const @@ -44,7 +44,7 @@ std::string GetConfigRequest::getName()const void GetConfigRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string GetConfigRequest::getObjectType()const @@ -55,7 +55,7 @@ std::string GetConfigRequest::getObjectType()const void GetConfigRequest::setObjectType(const std::string& objectType) { objectType_ = objectType; - setParameter("ObjectType", objectType); + setCoreParameter("ObjectType", objectType); } std::string GetConfigRequest::getObjectId()const @@ -66,7 +66,7 @@ std::string GetConfigRequest::getObjectId()const void GetConfigRequest::setObjectId(const std::string& objectId) { objectId_ = objectId; - setParameter("ObjectId", objectId); + setCoreParameter("ObjectId", objectId); } std::string GetConfigRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string GetConfigRequest::getAccessKeyId()const void GetConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GetConfigResult.cc b/ccc/src/model/GetConfigResult.cc index a6efbf782..0e776ec24 100644 --- a/ccc/src/model/GetConfigResult.cc +++ b/ccc/src/model/GetConfigResult.cc @@ -35,10 +35,13 @@ GetConfigResult::~GetConfigResult() void GetConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto configItemNode = value["ConfigItem"]; if(!configItemNode["Name"].isNull()) diff --git a/ccc/src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc b/ccc/src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc new file mode 100644 index 000000000..9ce87578a --- /dev/null +++ b/ccc/src/model/GetContactIdentifyByOutBoundTaskIdRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::GetContactIdentifyByOutBoundTaskIdRequest; + +GetContactIdentifyByOutBoundTaskIdRequest::GetContactIdentifyByOutBoundTaskIdRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetContactIdentifyByOutBoundTaskId") +{} + +GetContactIdentifyByOutBoundTaskIdRequest::~GetContactIdentifyByOutBoundTaskIdRequest() +{} + +std::string GetContactIdentifyByOutBoundTaskIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetContactIdentifyByOutBoundTaskIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetContactIdentifyByOutBoundTaskIdRequest::getOutboundTaskId()const +{ + return outboundTaskId_; +} + +void GetContactIdentifyByOutBoundTaskIdRequest::setOutboundTaskId(const std::string& outboundTaskId) +{ + outboundTaskId_ = outboundTaskId; + setCoreParameter("OutboundTaskId", outboundTaskId); +} + diff --git a/ccc/src/model/GetContactIdentifyByOutBoundTaskIdResult.cc b/ccc/src/model/GetContactIdentifyByOutBoundTaskIdResult.cc new file mode 100644 index 000000000..53b738ff5 --- /dev/null +++ b/ccc/src/model/GetContactIdentifyByOutBoundTaskIdResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetContactIdentifyByOutBoundTaskIdResult::GetContactIdentifyByOutBoundTaskIdResult() : + ServiceResult() +{} + +GetContactIdentifyByOutBoundTaskIdResult::GetContactIdentifyByOutBoundTaskIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetContactIdentifyByOutBoundTaskIdResult::~GetContactIdentifyByOutBoundTaskIdResult() +{} + +void GetContactIdentifyByOutBoundTaskIdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto contactIdentityNode = value["ContactIdentity"]; + if(!contactIdentityNode["ContactReferrnceId"].isNull()) + contactIdentity_.contactReferrnceId = contactIdentityNode["ContactReferrnceId"].asString(); + if(!contactIdentityNode["JobGroupId"].isNull()) + contactIdentity_.jobGroupId = contactIdentityNode["JobGroupId"].asString(); + if(!contactIdentityNode["UserPhone"].isNull()) + contactIdentity_.userPhone = contactIdentityNode["UserPhone"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetContactIdentifyByOutBoundTaskIdResult::getMessage()const +{ + return message_; +} + +GetContactIdentifyByOutBoundTaskIdResult::ContactIdentity GetContactIdentifyByOutBoundTaskIdResult::getContactIdentity()const +{ + return contactIdentity_; +} + +int GetContactIdentifyByOutBoundTaskIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetContactIdentifyByOutBoundTaskIdResult::getCode()const +{ + return code_; +} + +bool GetContactIdentifyByOutBoundTaskIdResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc b/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc new file mode 100644 index 000000000..be9ed3cb2 --- /dev/null +++ b/ccc/src/model/GetContactInfoByOutboundTaskIdRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetContactInfoByOutboundTaskIdRequest; + +GetContactInfoByOutboundTaskIdRequest::GetContactInfoByOutboundTaskIdRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetContactInfoByOutboundTaskId") +{} + +GetContactInfoByOutboundTaskIdRequest::~GetContactInfoByOutboundTaskIdRequest() +{} + +std::string GetContactInfoByOutboundTaskIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetContactInfoByOutboundTaskIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetContactInfoByOutboundTaskIdRequest::getOutboundTaskId()const +{ + return outboundTaskId_; +} + +void GetContactInfoByOutboundTaskIdRequest::setOutboundTaskId(const std::string& outboundTaskId) +{ + outboundTaskId_ = outboundTaskId; + setCoreParameter("OutboundTaskId", outboundTaskId); +} + +std::string GetContactInfoByOutboundTaskIdRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void GetContactInfoByOutboundTaskIdRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + diff --git a/ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc b/ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc new file mode 100644 index 000000000..65c5196a0 --- /dev/null +++ b/ccc/src/model/GetContactInfoByOutboundTaskIdResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetContactInfoByOutboundTaskIdResult::GetContactInfoByOutboundTaskIdResult() : + ServiceResult() +{} + +GetContactInfoByOutboundTaskIdResult::GetContactInfoByOutboundTaskIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetContactInfoByOutboundTaskIdResult::~GetContactInfoByOutboundTaskIdResult() +{} + +void GetContactInfoByOutboundTaskIdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto contactIdentityNode = value["ContactIdentity"]; + if(!contactIdentityNode["ContactReferrnceId"].isNull()) + contactIdentity_.contactReferrnceId = contactIdentityNode["ContactReferrnceId"].asString(); + if(!contactIdentityNode["JobGroupId"].isNull()) + contactIdentity_.jobGroupId = contactIdentityNode["JobGroupId"].asString(); + if(!contactIdentityNode["UserPhone"].isNull()) + contactIdentity_.userPhone = contactIdentityNode["UserPhone"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetContactInfoByOutboundTaskIdResult::getMessage()const +{ + return message_; +} + +GetContactInfoByOutboundTaskIdResult::ContactIdentity GetContactInfoByOutboundTaskIdResult::getContactIdentity()const +{ + return contactIdentity_; +} + +int GetContactInfoByOutboundTaskIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetContactInfoByOutboundTaskIdResult::getCode()const +{ + return code_; +} + +bool GetContactInfoByOutboundTaskIdResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetConversationDetailByContactIdRequest.cc b/ccc/src/model/GetConversationDetailByContactIdRequest.cc index bc5fee8df..77659fa1c 100644 --- a/ccc/src/model/GetConversationDetailByContactIdRequest.cc +++ b/ccc/src/model/GetConversationDetailByContactIdRequest.cc @@ -33,7 +33,7 @@ std::string GetConversationDetailByContactIdRequest::getInstanceId()const void GetConversationDetailByContactIdRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetConversationDetailByContactIdRequest::getContactId()const @@ -44,7 +44,7 @@ std::string GetConversationDetailByContactIdRequest::getContactId()const void GetConversationDetailByContactIdRequest::setContactId(const std::string& contactId) { contactId_ = contactId; - setParameter("ContactId", contactId); + setCoreParameter("ContactId", contactId); } int GetConversationDetailByContactIdRequest::getPageSize()const @@ -55,7 +55,7 @@ int GetConversationDetailByContactIdRequest::getPageSize()const void GetConversationDetailByContactIdRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetConversationDetailByContactIdRequest::getPageNumber()const @@ -66,7 +66,7 @@ int GetConversationDetailByContactIdRequest::getPageNumber()const void GetConversationDetailByContactIdRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string GetConversationDetailByContactIdRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string GetConversationDetailByContactIdRequest::getAccessKeyId()const void GetConversationDetailByContactIdRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GetConversationDetailByContactIdResult.cc b/ccc/src/model/GetConversationDetailByContactIdResult.cc index 929f7d9cb..5fffc9600 100644 --- a/ccc/src/model/GetConversationDetailByContactIdResult.cc +++ b/ccc/src/model/GetConversationDetailByContactIdResult.cc @@ -35,10 +35,13 @@ GetConversationDetailByContactIdResult::~GetConversationDetailByContactIdResult( void GetConversationDetailByContactIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataListNode = value["DataList"]; if(!dataListNode["TotalCount"].isNull()) diff --git a/ccc/src/model/GetConversationListRequest.cc b/ccc/src/model/GetConversationListRequest.cc index e4acd14c3..8edfd90bb 100644 --- a/ccc/src/model/GetConversationListRequest.cc +++ b/ccc/src/model/GetConversationListRequest.cc @@ -33,7 +33,7 @@ std::string GetConversationListRequest::getInstanceId()const void GetConversationListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetConversationListRequest::getTaskId()const @@ -44,6 +44,6 @@ std::string GetConversationListRequest::getTaskId()const void GetConversationListRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/ccc/src/model/GetConversationListResult.cc b/ccc/src/model/GetConversationListResult.cc index 242593b4e..01a6013d6 100644 --- a/ccc/src/model/GetConversationListResult.cc +++ b/ccc/src/model/GetConversationListResult.cc @@ -35,10 +35,13 @@ GetConversationListResult::~GetConversationListResult() void GetConversationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConversations = value["Conversations"]["ConversationDetail"]; for (auto value : allConversations) diff --git a/ccc/src/model/GetInstanceRequest.cc b/ccc/src/model/GetInstanceRequest.cc new file mode 100644 index 000000000..518f11166 --- /dev/null +++ b/ccc/src/model/GetInstanceRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::GetInstanceRequest; + +GetInstanceRequest::GetInstanceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetInstance") +{} + +GetInstanceRequest::~GetInstanceRequest() +{} + +std::string GetInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetInstanceResult.cc b/ccc/src/model/GetInstanceResult.cc new file mode 100644 index 000000000..2a1476913 --- /dev/null +++ b/ccc/src/model/GetInstanceResult.cc @@ -0,0 +1,157 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetInstanceResult::GetInstanceResult() : + ServiceResult() +{} + +GetInstanceResult::GetInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceResult::~GetInstanceResult() +{} + +void GetInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto instanceNode = value["Instance"]; + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["InstanceDescription"].isNull()) + instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); + if(!instanceNode["DomainName"].isNull()) + instance_.domainName = instanceNode["DomainName"].asString(); + if(!instanceNode["ConsoleUrl"].isNull()) + instance_.consoleUrl = instanceNode["ConsoleUrl"].asString(); + if(!instanceNode["StorageBucket"].isNull()) + instance_.storageBucket = instanceNode["StorageBucket"].asString(); + if(!instanceNode["StorageMaxDays"].isNull()) + instance_.storageMaxDays = std::stoi(instanceNode["StorageMaxDays"].asString()); + if(!instanceNode["StorageMaxSize"].isNull()) + instance_.storageMaxSize = std::stoi(instanceNode["StorageMaxSize"].asString()); + if(!instanceNode["MaxOnlineAgents"].isNull()) + instance_.maxOnlineAgents = std::stoi(instanceNode["MaxOnlineAgents"].asString()); + if(!instanceNode["TenantId"].isNull()) + instance_.tenantId = instanceNode["TenantId"].asString(); + if(!instanceNode["DirectoryId"].isNull()) + instance_.directoryId = instanceNode["DirectoryId"].asString(); + if(!instanceNode["Status"].isNull()) + instance_.status = instanceNode["Status"].asString(); + if(!instanceNode["CreatedTime"].isNull()) + instance_.createdTime = std::stol(instanceNode["CreatedTime"].asString()); + if(!instanceNode["Owner"].isNull()) + instance_.owner = instanceNode["Owner"].asString(); + auto allAdmin = value["Admin"]["User"]; + for (auto value : allAdmin) + { + Instance::User userObject; + if(!value["UserId"].isNull()) + userObject.userId = value["UserId"].asString(); + if(!value["RamId"].isNull()) + userObject.ramId = value["RamId"].asString(); + if(!value["InstanceId"].isNull()) + userObject.instanceId = value["InstanceId"].asString(); + auto detailNode = value["Detail"]; + if(!detailNode["LoginName"].isNull()) + userObject.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + userObject.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + userObject.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + userObject.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + userObject.detail.department = detailNode["Department"].asString(); + instance_.admin.push_back(userObject); + } + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + Instance::PhoneNumber phoneNumberObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumberObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumberObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumberObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumberObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); + instance_.phoneNumbers.push_back(phoneNumberObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetInstanceResult::getMessage()const +{ + return message_; +} + +GetInstanceResult::Instance GetInstanceResult::getInstance()const +{ + return instance_; +} + +int GetInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetInstanceResult::getCode()const +{ + return code_; +} + +bool GetInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetInstanceStateRequest.cc b/ccc/src/model/GetInstanceStateRequest.cc new file mode 100644 index 000000000..cbf8dc898 --- /dev/null +++ b/ccc/src/model/GetInstanceStateRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::GetInstanceStateRequest; + +GetInstanceStateRequest::GetInstanceStateRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetInstanceState") +{} + +GetInstanceStateRequest::~GetInstanceStateRequest() +{} + +std::string GetInstanceStateRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetInstanceStateRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetInstanceStateRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetInstanceStateRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetInstanceStateResult.cc b/ccc/src/model/GetInstanceStateResult.cc new file mode 100644 index 000000000..e9a932c2f --- /dev/null +++ b/ccc/src/model/GetInstanceStateResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetInstanceStateResult::GetInstanceStateResult() : + ServiceResult() +{} + +GetInstanceStateResult::GetInstanceStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceStateResult::~GetInstanceStateResult() +{} + +void GetInstanceStateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto realTimeInstanceStateNode = value["RealTimeInstanceState"]; + auto allAgentStateDistributions = value["AgentStateDistributions"]["AgentStateCount"]; + for (auto value : allAgentStateDistributions) + { + RealTimeInstanceState::AgentStateCount agentStateCountObject; + if(!value["State"].isNull()) + agentStateCountObject.state = value["State"].asString(); + if(!value["Count"].isNull()) + agentStateCountObject.count = std::stol(value["Count"].asString()); + realTimeInstanceState_.agentStateDistributions.push_back(agentStateCountObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetInstanceStateResult::getMessage()const +{ + return message_; +} + +int GetInstanceStateResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetInstanceStateResult::getCode()const +{ + return code_; +} + +GetInstanceStateResult::RealTimeInstanceState GetInstanceStateResult::getRealTimeInstanceState()const +{ + return realTimeInstanceState_; +} + +bool GetInstanceStateResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetInstanceSummaryReportByIntervalRequest.cc b/ccc/src/model/GetInstanceSummaryReportByIntervalRequest.cc new file mode 100644 index 000000000..f266803f0 --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportByIntervalRequest.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 + +using AlibabaCloud::CCC::Model::GetInstanceSummaryReportByIntervalRequest; + +GetInstanceSummaryReportByIntervalRequest::GetInstanceSummaryReportByIntervalRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetInstanceSummaryReportByInterval") +{} + +GetInstanceSummaryReportByIntervalRequest::~GetInstanceSummaryReportByIntervalRequest() +{} + +std::string GetInstanceSummaryReportByIntervalRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetInstanceSummaryReportByIntervalRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int GetInstanceSummaryReportByIntervalRequest::getPageSize()const +{ + return pageSize_; +} + +void GetInstanceSummaryReportByIntervalRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string GetInstanceSummaryReportByIntervalRequest::getEndTime()const +{ + return endTime_; +} + +void GetInstanceSummaryReportByIntervalRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string GetInstanceSummaryReportByIntervalRequest::getInterval()const +{ + return interval_; +} + +void GetInstanceSummaryReportByIntervalRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string GetInstanceSummaryReportByIntervalRequest::getStartTime()const +{ + return startTime_; +} + +void GetInstanceSummaryReportByIntervalRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int GetInstanceSummaryReportByIntervalRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetInstanceSummaryReportByIntervalRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetInstanceSummaryReportByIntervalRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetInstanceSummaryReportByIntervalRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc b/ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc new file mode 100644 index 000000000..87fbf9571 --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportByIntervalResult.cc @@ -0,0 +1,201 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetInstanceSummaryReportByIntervalResult::GetInstanceSummaryReportByIntervalResult() : + ServiceResult() +{} + +GetInstanceSummaryReportByIntervalResult::GetInstanceSummaryReportByIntervalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceSummaryReportByIntervalResult::~GetInstanceSummaryReportByIntervalResult() +{} + +void GetInstanceSummaryReportByIntervalResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto instanceTimeIntervalReportNode = value["InstanceTimeIntervalReport"]; + if(!instanceTimeIntervalReportNode["InstanceId"].isNull()) + instanceTimeIntervalReport_.instanceId = instanceTimeIntervalReportNode["InstanceId"].asString(); + auto allIntervalList = value["IntervalList"]["InstanceSummaryReport"]; + for (auto value : allIntervalList) + { + InstanceTimeIntervalReport::InstanceSummaryReport instanceSummaryReportObject; + if(!value["Timestamp"].isNull()) + instanceSummaryReportObject.timestamp = value["Timestamp"].asString(); + if(!value["InstanceId"].isNull()) + instanceSummaryReportObject.instanceId = value["InstanceId"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + instanceSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + instanceSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + instanceSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + instanceSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + instanceSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + instanceSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + instanceSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + instanceSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + instanceSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + instanceSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + instanceSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + instanceSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + instanceSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + instanceSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsIncomingLine"].isNull()) + instanceSummaryReportObject.inbound.callsIncomingLine = std::stol(inboundNode["CallsIncomingLine"].asString()); + if(!inboundNode["CallsIncomingIVR"].isNull()) + instanceSummaryReportObject.inbound.callsIncomingIVR = std::stol(inboundNode["CallsIncomingIVR"].asString()); + if(!inboundNode["CallsAbandonedInIVR"].isNull()) + instanceSummaryReportObject.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); + if(!inboundNode["CallsIncomingQueue"].isNull()) + instanceSummaryReportObject.inbound.callsIncomingQueue = std::stol(inboundNode["CallsIncomingQueue"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + instanceSummaryReportObject.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + instanceSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + instanceSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + instanceSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + instanceSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + instanceSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + instanceSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + instanceSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + instanceSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + instanceSummaryReportObject.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); + if(!inboundNode["AverageTalkTime"].isNull()) + instanceSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + instanceSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + instanceSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + instanceSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + instanceSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + instanceSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + instanceSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + instanceSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + instanceSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + instanceSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + instanceSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + instanceSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + instanceSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + instanceSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + instanceSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + instanceSummaryReportObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + instanceSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + instanceSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + instanceTimeIntervalReport_.intervalList.push_back(instanceSummaryReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +GetInstanceSummaryReportByIntervalResult::InstanceTimeIntervalReport GetInstanceSummaryReportByIntervalResult::getInstanceTimeIntervalReport()const +{ + return instanceTimeIntervalReport_; +} + +std::string GetInstanceSummaryReportByIntervalResult::getMessage()const +{ + return message_; +} + +int GetInstanceSummaryReportByIntervalResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetInstanceSummaryReportByIntervalResult::getCode()const +{ + return code_; +} + +bool GetInstanceSummaryReportByIntervalResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetInstanceSummaryReportRequest.cc b/ccc/src/model/GetInstanceSummaryReportRequest.cc new file mode 100644 index 000000000..b386507df --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportRequest.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 + +using AlibabaCloud::CCC::Model::GetInstanceSummaryReportRequest; + +GetInstanceSummaryReportRequest::GetInstanceSummaryReportRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetInstanceSummaryReport") +{} + +GetInstanceSummaryReportRequest::~GetInstanceSummaryReportRequest() +{} + +std::string GetInstanceSummaryReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetInstanceSummaryReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int GetInstanceSummaryReportRequest::getPageSize()const +{ + return pageSize_; +} + +void GetInstanceSummaryReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string GetInstanceSummaryReportRequest::getEndTime()const +{ + return endTime_; +} + +void GetInstanceSummaryReportRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string GetInstanceSummaryReportRequest::getStartTime()const +{ + return startTime_; +} + +void GetInstanceSummaryReportRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int GetInstanceSummaryReportRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetInstanceSummaryReportRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetInstanceSummaryReportRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetInstanceSummaryReportRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetInstanceSummaryReportResult.cc b/ccc/src/model/GetInstanceSummaryReportResult.cc new file mode 100644 index 000000000..1b86d973a --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportResult.cc @@ -0,0 +1,191 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetInstanceSummaryReportResult::GetInstanceSummaryReportResult() : + ServiceResult() +{} + +GetInstanceSummaryReportResult::GetInstanceSummaryReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceSummaryReportResult::~GetInstanceSummaryReportResult() +{} + +void GetInstanceSummaryReportResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto instanceSummaryReportNode = value["InstanceSummaryReport"]; + if(!instanceSummaryReportNode["InstanceId"].isNull()) + instanceSummaryReport_.instanceId = instanceSummaryReportNode["InstanceId"].asString(); + auto overallNode = instanceSummaryReportNode["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + instanceSummaryReport_.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + instanceSummaryReport_.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + instanceSummaryReport_.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + instanceSummaryReport_.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + instanceSummaryReport_.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + instanceSummaryReport_.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + instanceSummaryReport_.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + instanceSummaryReport_.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + instanceSummaryReport_.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + instanceSummaryReport_.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + instanceSummaryReport_.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + instanceSummaryReport_.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + instanceSummaryReport_.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + instanceSummaryReport_.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReport_.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReport_.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = instanceSummaryReportNode["Inbound"]; + if(!inboundNode["CallsIncomingLine"].isNull()) + instanceSummaryReport_.inbound.callsIncomingLine = std::stol(inboundNode["CallsIncomingLine"].asString()); + if(!inboundNode["CallsIncomingIVR"].isNull()) + instanceSummaryReport_.inbound.callsIncomingIVR = std::stol(inboundNode["CallsIncomingIVR"].asString()); + if(!inboundNode["CallsAbandonedInIVR"].isNull()) + instanceSummaryReport_.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); + if(!inboundNode["CallsIncomingQueue"].isNull()) + instanceSummaryReport_.inbound.callsIncomingQueue = std::stol(inboundNode["CallsIncomingQueue"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + instanceSummaryReport_.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + instanceSummaryReport_.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + instanceSummaryReport_.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + instanceSummaryReport_.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + instanceSummaryReport_.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + instanceSummaryReport_.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + instanceSummaryReport_.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + instanceSummaryReport_.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + instanceSummaryReport_.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + instanceSummaryReport_.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); + if(!inboundNode["AverageTalkTime"].isNull()) + instanceSummaryReport_.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + instanceSummaryReport_.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + instanceSummaryReport_.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + instanceSummaryReport_.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + instanceSummaryReport_.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReport_.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReport_.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + auto outboundNode = instanceSummaryReportNode["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + instanceSummaryReport_.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + instanceSummaryReport_.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + instanceSummaryReport_.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + instanceSummaryReport_.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + instanceSummaryReport_.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + instanceSummaryReport_.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + instanceSummaryReport_.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + instanceSummaryReport_.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + instanceSummaryReport_.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + instanceSummaryReport_.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + instanceSummaryReport_.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + instanceSummaryReport_.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + instanceSummaryReport_.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReport_.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReport_.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetInstanceSummaryReportResult::getMessage()const +{ + return message_; +} + +int GetInstanceSummaryReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetInstanceSummaryReportResult::InstanceSummaryReport GetInstanceSummaryReportResult::getInstanceSummaryReport()const +{ + return instanceSummaryReport_; +} + +std::string GetInstanceSummaryReportResult::getCode()const +{ + return code_; +} + +bool GetInstanceSummaryReportResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc b/ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc new file mode 100644 index 000000000..b5a60f294 --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportSinceMidnightRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetInstanceSummaryReportSinceMidnightRequest; + +GetInstanceSummaryReportSinceMidnightRequest::GetInstanceSummaryReportSinceMidnightRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetInstanceSummaryReportSinceMidnight") +{} + +GetInstanceSummaryReportSinceMidnightRequest::~GetInstanceSummaryReportSinceMidnightRequest() +{} + +std::string GetInstanceSummaryReportSinceMidnightRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetInstanceSummaryReportSinceMidnightRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int GetInstanceSummaryReportSinceMidnightRequest::getPageSize()const +{ + return pageSize_; +} + +void GetInstanceSummaryReportSinceMidnightRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int GetInstanceSummaryReportSinceMidnightRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetInstanceSummaryReportSinceMidnightRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetInstanceSummaryReportSinceMidnightRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetInstanceSummaryReportSinceMidnightRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc b/ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc new file mode 100644 index 000000000..f0ad2ef7f --- /dev/null +++ b/ccc/src/model/GetInstanceSummaryReportSinceMidnightResult.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetInstanceSummaryReportSinceMidnightResult::GetInstanceSummaryReportSinceMidnightResult() : + ServiceResult() +{} + +GetInstanceSummaryReportSinceMidnightResult::GetInstanceSummaryReportSinceMidnightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceSummaryReportSinceMidnightResult::~GetInstanceSummaryReportSinceMidnightResult() +{} + +void GetInstanceSummaryReportSinceMidnightResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto instanceSummaryReportNode = value["InstanceSummaryReport"]; + if(!instanceSummaryReportNode["Timestamp"].isNull()) + instanceSummaryReport_.timestamp = instanceSummaryReportNode["Timestamp"].asString(); + if(!instanceSummaryReportNode["InstanceId"].isNull()) + instanceSummaryReport_.instanceId = instanceSummaryReportNode["InstanceId"].asString(); + auto overallNode = instanceSummaryReportNode["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + instanceSummaryReport_.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + instanceSummaryReport_.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + instanceSummaryReport_.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + instanceSummaryReport_.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + instanceSummaryReport_.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + instanceSummaryReport_.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + instanceSummaryReport_.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + instanceSummaryReport_.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + instanceSummaryReport_.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + instanceSummaryReport_.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + instanceSummaryReport_.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + instanceSummaryReport_.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + instanceSummaryReport_.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + instanceSummaryReport_.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReport_.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReport_.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = instanceSummaryReportNode["Inbound"]; + if(!inboundNode["CallsIncomingLine"].isNull()) + instanceSummaryReport_.inbound.callsIncomingLine = std::stol(inboundNode["CallsIncomingLine"].asString()); + if(!inboundNode["CallsIncomingIVR"].isNull()) + instanceSummaryReport_.inbound.callsIncomingIVR = std::stol(inboundNode["CallsIncomingIVR"].asString()); + if(!inboundNode["CallsAbandonedInIVR"].isNull()) + instanceSummaryReport_.inbound.callsAbandonedInIVR = std::stol(inboundNode["CallsAbandonedInIVR"].asString()); + if(!inboundNode["CallsIncomingQueue"].isNull()) + instanceSummaryReport_.inbound.callsIncomingQueue = std::stol(inboundNode["CallsIncomingQueue"].asString()); + if(!inboundNode["CallsAbandonedInQueue"].isNull()) + instanceSummaryReport_.inbound.callsAbandonedInQueue = std::stol(inboundNode["CallsAbandonedInQueue"].asString()); + if(!inboundNode["CallsOffered"].isNull()) + instanceSummaryReport_.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + instanceSummaryReport_.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + instanceSummaryReport_.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + instanceSummaryReport_.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + instanceSummaryReport_.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + instanceSummaryReport_.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + instanceSummaryReport_.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + instanceSummaryReport_.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + instanceSummaryReport_.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); + if(!inboundNode["AverageTalkTime"].isNull()) + instanceSummaryReport_.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + instanceSummaryReport_.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + instanceSummaryReport_.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + instanceSummaryReport_.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + instanceSummaryReport_.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReport_.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReport_.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + auto outboundNode = instanceSummaryReportNode["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + instanceSummaryReport_.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + instanceSummaryReport_.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + instanceSummaryReport_.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + instanceSummaryReport_.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + instanceSummaryReport_.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + instanceSummaryReport_.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + instanceSummaryReport_.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + instanceSummaryReport_.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + instanceSummaryReport_.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + instanceSummaryReport_.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + instanceSummaryReport_.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + instanceSummaryReport_.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + instanceSummaryReport_.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + instanceSummaryReport_.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + instanceSummaryReport_.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetInstanceSummaryReportSinceMidnightResult::getMessage()const +{ + return message_; +} + +int GetInstanceSummaryReportSinceMidnightResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetInstanceSummaryReportSinceMidnightResult::InstanceSummaryReport GetInstanceSummaryReportSinceMidnightResult::getInstanceSummaryReport()const +{ + return instanceSummaryReport_; +} + +std::string GetInstanceSummaryReportSinceMidnightResult::getCode()const +{ + return code_; +} + +bool GetInstanceSummaryReportSinceMidnightResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobDataUploadParamsRequest.cc b/ccc/src/model/GetJobDataUploadParamsRequest.cc index 58d6a09bd..75f224f3e 100644 --- a/ccc/src/model/GetJobDataUploadParamsRequest.cc +++ b/ccc/src/model/GetJobDataUploadParamsRequest.cc @@ -33,7 +33,7 @@ std::string GetJobDataUploadParamsRequest::getInstanceId()const void GetJobDataUploadParamsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetJobDataUploadParamsRequest::getFileName()const @@ -44,6 +44,6 @@ std::string GetJobDataUploadParamsRequest::getFileName()const void GetJobDataUploadParamsRequest::setFileName(const std::string& fileName) { fileName_ = fileName; - setParameter("FileName", fileName); + setCoreParameter("FileName", fileName); } diff --git a/ccc/src/model/GetJobDataUploadParamsResult.cc b/ccc/src/model/GetJobDataUploadParamsResult.cc index 7c5d9269d..022b2a5c6 100644 --- a/ccc/src/model/GetJobDataUploadParamsResult.cc +++ b/ccc/src/model/GetJobDataUploadParamsResult.cc @@ -35,10 +35,13 @@ GetJobDataUploadParamsResult::~GetJobDataUploadParamsResult() void GetJobDataUploadParamsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto uploadParamsNode = value["UploadParams"]; if(!uploadParamsNode["AccessId"].isNull()) diff --git a/ccc/src/model/GetJobFileUploadUrlRequest.cc b/ccc/src/model/GetJobFileUploadUrlRequest.cc new file mode 100644 index 000000000..db2b916e3 --- /dev/null +++ b/ccc/src/model/GetJobFileUploadUrlRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::GetJobFileUploadUrlRequest; + +GetJobFileUploadUrlRequest::GetJobFileUploadUrlRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobFileUploadUrl") +{} + +GetJobFileUploadUrlRequest::~GetJobFileUploadUrlRequest() +{} + +std::string GetJobFileUploadUrlRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobFileUploadUrlRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetJobFileUploadUrlRequest::getFileName()const +{ + return fileName_; +} + +void GetJobFileUploadUrlRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setCoreParameter("FileName", fileName); +} + diff --git a/ccc/src/model/GetJobFileUploadUrlResult.cc b/ccc/src/model/GetJobFileUploadUrlResult.cc new file mode 100644 index 000000000..559683529 --- /dev/null +++ b/ccc/src/model/GetJobFileUploadUrlResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetJobFileUploadUrlResult::GetJobFileUploadUrlResult() : + ServiceResult() +{} + +GetJobFileUploadUrlResult::GetJobFileUploadUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobFileUploadUrlResult::~GetJobFileUploadUrlResult() +{} + +void GetJobFileUploadUrlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["FilePath"].isNull()) + filePath_ = value["FilePath"].asString(); + if(!value["UploadUrl"].isNull()) + uploadUrl_ = value["UploadUrl"].asString(); + +} + +std::string GetJobFileUploadUrlResult::getFilePath()const +{ + return filePath_; +} + +std::string GetJobFileUploadUrlResult::getUploadUrl()const +{ + return uploadUrl_; +} + +std::string GetJobFileUploadUrlResult::getMessage()const +{ + return message_; +} + +int GetJobFileUploadUrlResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobFileUploadUrlResult::getCode()const +{ + return code_; +} + +bool GetJobFileUploadUrlResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetJobGroupRequest.cc b/ccc/src/model/GetJobGroupRequest.cc index b2aa9d8db..03dc97d5d 100644 --- a/ccc/src/model/GetJobGroupRequest.cc +++ b/ccc/src/model/GetJobGroupRequest.cc @@ -33,7 +33,7 @@ std::string GetJobGroupRequest::getInstanceId()const void GetJobGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetJobGroupRequest::getJobGroupId()const @@ -44,6 +44,6 @@ std::string GetJobGroupRequest::getJobGroupId()const void GetJobGroupRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } diff --git a/ccc/src/model/GetJobGroupResult.cc b/ccc/src/model/GetJobGroupResult.cc index 277a13bf6..84dcb5938 100644 --- a/ccc/src/model/GetJobGroupResult.cc +++ b/ccc/src/model/GetJobGroupResult.cc @@ -35,10 +35,13 @@ GetJobGroupResult::~GetJobGroupResult() void GetJobGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobGroupNode = value["JobGroup"]; if(!jobGroupNode["Id"].isNull()) diff --git a/ccc/src/model/GetJobListRequest.cc b/ccc/src/model/GetJobListRequest.cc index 654217ec1..82c53a429 100644 --- a/ccc/src/model/GetJobListRequest.cc +++ b/ccc/src/model/GetJobListRequest.cc @@ -33,7 +33,7 @@ std::string GetJobListRequest::getInstanceId()const void GetJobListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetJobListRequest::getJobGroupId()const @@ -44,7 +44,7 @@ std::string GetJobListRequest::getJobGroupId()const void GetJobListRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } int GetJobListRequest::getPageSize()const @@ -55,7 +55,7 @@ int GetJobListRequest::getPageSize()const void GetJobListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetJobListRequest::getPageNumber()const @@ -66,7 +66,7 @@ int GetJobListRequest::getPageNumber()const void GetJobListRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } int GetJobListRequest::getStatus()const @@ -77,7 +77,7 @@ int GetJobListRequest::getStatus()const void GetJobListRequest::setStatus(int status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", std::to_string(status)); } bool GetJobListRequest::getQueryAll()const @@ -88,6 +88,6 @@ bool GetJobListRequest::getQueryAll()const void GetJobListRequest::setQueryAll(bool queryAll) { queryAll_ = queryAll; - setParameter("QueryAll", std::to_string(queryAll)); + setCoreParameter("QueryAll", queryAll ? "true" : "false"); } diff --git a/ccc/src/model/GetJobListResult.cc b/ccc/src/model/GetJobListResult.cc index 527bc79f0..9cc65e058 100644 --- a/ccc/src/model/GetJobListResult.cc +++ b/ccc/src/model/GetJobListResult.cc @@ -35,10 +35,13 @@ GetJobListResult::~GetJobListResult() void GetJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobsNode = value["Jobs"]; if(!jobsNode["TotalCount"].isNull()) diff --git a/ccc/src/model/GetJobRequest.cc b/ccc/src/model/GetJobRequest.cc index b1e991d25..53b09b99d 100644 --- a/ccc/src/model/GetJobRequest.cc +++ b/ccc/src/model/GetJobRequest.cc @@ -33,7 +33,7 @@ std::string GetJobRequest::getJobId()const void GetJobRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } std::string GetJobRequest::getInstanceId()const @@ -44,6 +44,6 @@ std::string GetJobRequest::getInstanceId()const void GetJobRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/GetJobResult.cc b/ccc/src/model/GetJobResult.cc index e8385fe6f..33ccbd3e5 100644 --- a/ccc/src/model/GetJobResult.cc +++ b/ccc/src/model/GetJobResult.cc @@ -35,10 +35,13 @@ GetJobResult::~GetJobResult() void GetJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobNode = value["Job"]; if(!jobNode["JobId"].isNull()) diff --git a/ccc/src/model/GetJobStatusByCallIdRequest.cc b/ccc/src/model/GetJobStatusByCallIdRequest.cc index d4d551444..82e2f0b87 100644 --- a/ccc/src/model/GetJobStatusByCallIdRequest.cc +++ b/ccc/src/model/GetJobStatusByCallIdRequest.cc @@ -33,7 +33,7 @@ std::string GetJobStatusByCallIdRequest::getCallId()const void GetJobStatusByCallIdRequest::setCallId(const std::string& callId) { callId_ = callId; - setParameter("CallId", callId); + setCoreParameter("CallId", callId); } std::string GetJobStatusByCallIdRequest::getInstanceId()const @@ -44,6 +44,6 @@ std::string GetJobStatusByCallIdRequest::getInstanceId()const void GetJobStatusByCallIdRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/GetJobStatusByCallIdResult.cc b/ccc/src/model/GetJobStatusByCallIdResult.cc index 50f33aa17..09acfdb19 100644 --- a/ccc/src/model/GetJobStatusByCallIdResult.cc +++ b/ccc/src/model/GetJobStatusByCallIdResult.cc @@ -35,10 +35,13 @@ GetJobStatusByCallIdResult::~GetJobStatusByCallIdResult() void GetJobStatusByCallIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobNode = value["Job"]; if(!jobNode["JobId"].isNull()) @@ -105,6 +108,8 @@ void GetJobStatusByCallIdResult::parse(const std::string &payload) taskObject.planedTime = std::stol(value["PlanedTime"].asString()); if(!value["ActualTime"].isNull()) taskObject.actualTime = std::stol(value["ActualTime"].asString()); + if(!value["EndTime"].isNull()) + taskObject.endTime = std::stol(value["EndTime"].asString()); if(!value["CallingNumber"].isNull()) taskObject.callingNumber = value["CallingNumber"].asString(); if(!value["CalledNumber"].isNull()) diff --git a/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc b/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc index a76f541cc..fc5d7a73a 100644 --- a/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc +++ b/ccc/src/model/GetJobTemplateDownloadParamsRequest.cc @@ -33,7 +33,7 @@ std::string GetJobTemplateDownloadParamsRequest::getInstanceId()const void GetJobTemplateDownloadParamsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetJobTemplateDownloadParamsRequest::getScenarioId()const @@ -44,6 +44,6 @@ std::string GetJobTemplateDownloadParamsRequest::getScenarioId()const void GetJobTemplateDownloadParamsRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/GetJobTemplateDownloadParamsResult.cc b/ccc/src/model/GetJobTemplateDownloadParamsResult.cc index 53d1fcff9..549065841 100644 --- a/ccc/src/model/GetJobTemplateDownloadParamsResult.cc +++ b/ccc/src/model/GetJobTemplateDownloadParamsResult.cc @@ -35,10 +35,13 @@ GetJobTemplateDownloadParamsResult::~GetJobTemplateDownloadParamsResult() void GetJobTemplateDownloadParamsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto downloadParamsNode = value["DownloadParams"]; if(!downloadParamsNode["SignatureUrl"].isNull()) diff --git a/ccc/src/model/GetJobsProgressRequest.cc b/ccc/src/model/GetJobsProgressRequest.cc new file mode 100644 index 000000000..99ffaadd6 --- /dev/null +++ b/ccc/src/model/GetJobsProgressRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetJobsProgressRequest; + +GetJobsProgressRequest::GetJobsProgressRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetJobsProgress") +{} + +GetJobsProgressRequest::~GetJobsProgressRequest() +{} + +std::string GetJobsProgressRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetJobsProgressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetJobsProgressRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void GetJobsProgressRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +std::string GetJobsProgressRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void GetJobsProgressRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setCoreParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/GetJobsProgressResult.cc b/ccc/src/model/GetJobsProgressResult.cc new file mode 100644 index 000000000..e18735243 --- /dev/null +++ b/ccc/src/model/GetJobsProgressResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetJobsProgressResult::GetJobsProgressResult() : + ServiceResult() +{} + +GetJobsProgressResult::GetJobsProgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobsProgressResult::~GetJobsProgressResult() +{} + +void GetJobsProgressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto jobsProgressNode = value["JobsProgress"]; + if(!jobsProgressNode["Status"].isNull()) + jobsProgress_.status = jobsProgressNode["Status"].asString(); + if(!jobsProgressNode["StartTime"].isNull()) + jobsProgress_.startTime = std::stol(jobsProgressNode["StartTime"].asString()); + if(!jobsProgressNode["Duration"].isNull()) + jobsProgress_.duration = std::stoi(jobsProgressNode["Duration"].asString()); + if(!jobsProgressNode["TotalJobs"].isNull()) + jobsProgress_.totalJobs = std::stoi(jobsProgressNode["TotalJobs"].asString()); + if(!jobsProgressNode["TotalNotAnswered"].isNull()) + jobsProgress_.totalNotAnswered = std::stoi(jobsProgressNode["TotalNotAnswered"].asString()); + if(!jobsProgressNode["TotalCompleted"].isNull()) + jobsProgress_.totalCompleted = std::stoi(jobsProgressNode["TotalCompleted"].asString()); + if(!jobsProgressNode["Scheduling"].isNull()) + jobsProgress_.scheduling = std::stoi(jobsProgressNode["Scheduling"].asString()); + if(!jobsProgressNode["Executing"].isNull()) + jobsProgress_.executing = std::stoi(jobsProgressNode["Executing"].asString()); + if(!jobsProgressNode["Paused"].isNull()) + jobsProgress_.paused = std::stoi(jobsProgressNode["Paused"].asString()); + if(!jobsProgressNode["Failed"].isNull()) + jobsProgress_.failed = std::stoi(jobsProgressNode["Failed"].asString()); + if(!jobsProgressNode["Cancelled"].isNull()) + jobsProgress_.cancelled = std::stoi(jobsProgressNode["Cancelled"].asString()); + if(!jobsProgressNode["RepeatCall"].isNull()) + jobsProgress_.repeatCall = std::stoi(jobsProgressNode["RepeatCall"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetJobsProgressResult::getMessage()const +{ + return message_; +} + +int GetJobsProgressResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobsProgressResult::getCode()const +{ + return code_; +} + +GetJobsProgressResult::JobsProgress GetJobsProgressResult::getJobsProgress()const +{ + return jobsProgress_; +} + +bool GetJobsProgressResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetNumberRegionInfoRequest.cc b/ccc/src/model/GetNumberRegionInfoRequest.cc index 7663f87c6..0459caf6a 100644 --- a/ccc/src/model/GetNumberRegionInfoRequest.cc +++ b/ccc/src/model/GetNumberRegionInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetNumberRegionInfoRequest::getNumber()const void GetNumberRegionInfoRequest::setNumber(const std::string& number) { number_ = number; - setParameter("Number", number); + setCoreParameter("Number", number); } std::string GetNumberRegionInfoRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string GetNumberRegionInfoRequest::getInstanceId()const void GetNumberRegionInfoRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetNumberRegionInfoRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetNumberRegionInfoRequest::getAccessKeyId()const void GetNumberRegionInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GetNumberRegionInfoResult.cc b/ccc/src/model/GetNumberRegionInfoResult.cc index e5f1958bf..beeb61a51 100644 --- a/ccc/src/model/GetNumberRegionInfoResult.cc +++ b/ccc/src/model/GetNumberRegionInfoResult.cc @@ -35,10 +35,13 @@ GetNumberRegionInfoResult::~GetNumberRegionInfoResult() void GetNumberRegionInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto phoneNumberNode = value["PhoneNumber"]; if(!phoneNumberNode["Number"].isNull()) diff --git a/ccc/src/model/GetPredictiveJobRequest.cc b/ccc/src/model/GetPredictiveJobRequest.cc new file mode 100644 index 000000000..99c5df85c --- /dev/null +++ b/ccc/src/model/GetPredictiveJobRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::GetPredictiveJobRequest; + +GetPredictiveJobRequest::GetPredictiveJobRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetPredictiveJob") +{} + +GetPredictiveJobRequest::~GetPredictiveJobRequest() +{} + +std::string GetPredictiveJobRequest::getJobId()const +{ + return jobId_; +} + +void GetPredictiveJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setCoreParameter("JobId", jobId); +} + +std::string GetPredictiveJobRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetPredictiveJobRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + diff --git a/ccc/src/model/GetPredictiveJobResult.cc b/ccc/src/model/GetPredictiveJobResult.cc new file mode 100644 index 000000000..7bfe45a84 --- /dev/null +++ b/ccc/src/model/GetPredictiveJobResult.cc @@ -0,0 +1,172 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetPredictiveJobResult::GetPredictiveJobResult() : + ServiceResult() +{} + +GetPredictiveJobResult::GetPredictiveJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPredictiveJobResult::~GetPredictiveJobResult() +{} + +void GetPredictiveJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto jobNode = value["Job"]; + if(!jobNode["JobId"].isNull()) + job_.jobId = jobNode["JobId"].asString(); + if(!jobNode["JobGroupId"].isNull()) + job_.jobGroupId = jobNode["JobGroupId"].asString(); + if(!jobNode["ScenarioId"].isNull()) + job_.scenarioId = jobNode["ScenarioId"].asString(); + if(!jobNode["StrategyId"].isNull()) + job_.strategyId = jobNode["StrategyId"].asString(); + if(!jobNode["Priority"].isNull()) + job_.priority = std::stoi(jobNode["Priority"].asString()); + if(!jobNode["SystemPriority"].isNull()) + job_.systemPriority = std::stoi(jobNode["SystemPriority"].asString()); + if(!jobNode["Status"].isNull()) + job_.status = jobNode["Status"].asString(); + if(!jobNode["ReferenceId"].isNull()) + job_.referenceId = jobNode["ReferenceId"].asString(); + if(!jobNode["FailureReason"].isNull()) + job_.failureReason = jobNode["FailureReason"].asString(); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + { + Job::Contact contactObject; + if(!value["ContactId"].isNull()) + contactObject.contactId = value["ContactId"].asString(); + if(!value["ContactName"].isNull()) + contactObject.contactName = value["ContactName"].asString(); + if(!value["Honorific"].isNull()) + contactObject.honorific = value["Honorific"].asString(); + if(!value["Role"].isNull()) + contactObject.role = value["Role"].asString(); + if(!value["PhoneNumber"].isNull()) + contactObject.phoneNumber = value["PhoneNumber"].asString(); + if(!value["State"].isNull()) + contactObject.state = value["State"].asString(); + if(!value["ReferenceId"].isNull()) + contactObject.referenceId = value["ReferenceId"].asString(); + if(!value["JobId"].isNull()) + contactObject.jobId = value["JobId"].asString(); + job_.contacts.push_back(contactObject); + } + auto allTasks = value["Tasks"]["Task"]; + for (auto value : allTasks) + { + Job::Task taskObject; + if(!value["TaskId"].isNull()) + taskObject.taskId = value["TaskId"].asString(); + if(!value["JobId"].isNull()) + taskObject.jobId = value["JobId"].asString(); + if(!value["ScenarioId"].isNull()) + taskObject.scenarioId = value["ScenarioId"].asString(); + if(!value["ChatbotId"].isNull()) + taskObject.chatbotId = value["ChatbotId"].asString(); + if(!value["PlanedTime"].isNull()) + taskObject.planedTime = std::stol(value["PlanedTime"].asString()); + if(!value["ActualTime"].isNull()) + taskObject.actualTime = std::stol(value["ActualTime"].asString()); + if(!value["CallingNumber"].isNull()) + taskObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + taskObject.calledNumber = value["CalledNumber"].asString(); + if(!value["CallId"].isNull()) + taskObject.callId = value["CallId"].asString(); + if(!value["Status"].isNull()) + taskObject.status = value["Status"].asString(); + if(!value["Brief"].isNull()) + taskObject.brief = value["Brief"].asString(); + if(!value["Duration"].isNull()) + taskObject.duration = std::stoi(value["Duration"].asString()); + auto contact1Node = value["Contact"]; + if(!contact1Node["ContactId"].isNull()) + taskObject.contact1.contactId = contact1Node["ContactId"].asString(); + if(!contact1Node["ContactName"].isNull()) + taskObject.contact1.contactName = contact1Node["ContactName"].asString(); + if(!contact1Node["Honorific"].isNull()) + taskObject.contact1.honorific = contact1Node["Honorific"].asString(); + if(!contact1Node["Role"].isNull()) + taskObject.contact1.role = contact1Node["Role"].asString(); + if(!contact1Node["PhoneNumber"].isNull()) + taskObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString(); + if(!contact1Node["State"].isNull()) + taskObject.contact1.state = contact1Node["State"].asString(); + if(!contact1Node["ReferenceId"].isNull()) + taskObject.contact1.referenceId = contact1Node["ReferenceId"].asString(); + if(!contact1Node["JobId"].isNull()) + taskObject.contact1.jobId = contact1Node["JobId"].asString(); + job_.tasks.push_back(taskObject); + } + auto allCallingNumbers = jobNode["CallingNumbers"]["String"]; + for (auto value : allCallingNumbers) + job_.callingNumbers.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetPredictiveJobResult::getMessage()const +{ + return message_; +} + +int GetPredictiveJobResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetPredictiveJobResult::Job GetPredictiveJobResult::getJob()const +{ + return job_; +} + +std::string GetPredictiveJobResult::getCode()const +{ + return code_; +} + +bool GetPredictiveJobResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetRecordOssUploadParamRequest.cc b/ccc/src/model/GetRecordOssUploadParamRequest.cc new file mode 100644 index 000000000..d5ffe79ae --- /dev/null +++ b/ccc/src/model/GetRecordOssUploadParamRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetRecordOssUploadParamRequest; + +GetRecordOssUploadParamRequest::GetRecordOssUploadParamRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetRecordOssUploadParam") +{} + +GetRecordOssUploadParamRequest::~GetRecordOssUploadParamRequest() +{} + +std::string GetRecordOssUploadParamRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetRecordOssUploadParamRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetRecordOssUploadParamRequest::getFileName()const +{ + return fileName_; +} + +void GetRecordOssUploadParamRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setCoreParameter("FileName", fileName); +} + +std::string GetRecordOssUploadParamRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetRecordOssUploadParamRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetRecordOssUploadParamResult.cc b/ccc/src/model/GetRecordOssUploadParamResult.cc new file mode 100644 index 000000000..380f65344 --- /dev/null +++ b/ccc/src/model/GetRecordOssUploadParamResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetRecordOssUploadParamResult::GetRecordOssUploadParamResult() : + ServiceResult() +{} + +GetRecordOssUploadParamResult::GetRecordOssUploadParamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRecordOssUploadParamResult::~GetRecordOssUploadParamResult() +{} + +void GetRecordOssUploadParamResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["OssAccessKeyId"].isNull()) + ossAccessKeyId_ = value["OssAccessKeyId"].asString(); + if(!value["Policy"].isNull()) + policy_ = value["Policy"].asString(); + if(!value["Signature"].isNull()) + signature_ = value["Signature"].asString(); + if(!value["Expires"].isNull()) + expires_ = value["Expires"].asString(); + if(!value["Dir"].isNull()) + dir_ = value["Dir"].asString(); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["OssFileName"].isNull()) + ossFileName_ = value["OssFileName"].asString(); + +} + +std::string GetRecordOssUploadParamResult::getPolicy()const +{ + return policy_; +} + +std::string GetRecordOssUploadParamResult::getMessage()const +{ + return message_; +} + +std::string GetRecordOssUploadParamResult::getSignature()const +{ + return signature_; +} + +int GetRecordOssUploadParamResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetRecordOssUploadParamResult::getOssFileName()const +{ + return ossFileName_; +} + +std::string GetRecordOssUploadParamResult::getHost()const +{ + return host_; +} + +std::string GetRecordOssUploadParamResult::getExpires()const +{ + return expires_; +} + +std::string GetRecordOssUploadParamResult::getDir()const +{ + return dir_; +} + +std::string GetRecordOssUploadParamResult::getCode()const +{ + return code_; +} + +std::string GetRecordOssUploadParamResult::getOssAccessKeyId()const +{ + return ossAccessKeyId_; +} + +bool GetRecordOssUploadParamResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetScenarioRequest.cc b/ccc/src/model/GetScenarioRequest.cc index 207f5b9e1..3d307ad57 100644 --- a/ccc/src/model/GetScenarioRequest.cc +++ b/ccc/src/model/GetScenarioRequest.cc @@ -33,7 +33,7 @@ std::string GetScenarioRequest::getInstanceId()const void GetScenarioRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetScenarioRequest::getScenarioId()const @@ -44,6 +44,6 @@ std::string GetScenarioRequest::getScenarioId()const void GetScenarioRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/GetScenarioResult.cc b/ccc/src/model/GetScenarioResult.cc index be6968b77..564fdc9e6 100644 --- a/ccc/src/model/GetScenarioResult.cc +++ b/ccc/src/model/GetScenarioResult.cc @@ -35,10 +35,13 @@ GetScenarioResult::~GetScenarioResult() void GetScenarioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto scenarioNode = value["Scenario"]; if(!scenarioNode["Id"].isNull()) diff --git a/ccc/src/model/GetServiceExtensionsRequest.cc b/ccc/src/model/GetServiceExtensionsRequest.cc index 7df67828e..0fb34e40a 100644 --- a/ccc/src/model/GetServiceExtensionsRequest.cc +++ b/ccc/src/model/GetServiceExtensionsRequest.cc @@ -33,7 +33,7 @@ std::string GetServiceExtensionsRequest::getServiceType()const void GetServiceExtensionsRequest::setServiceType(const std::string& serviceType) { serviceType_ = serviceType; - setParameter("ServiceType", serviceType); + setCoreParameter("ServiceType", serviceType); } std::string GetServiceExtensionsRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string GetServiceExtensionsRequest::getInstanceId()const void GetServiceExtensionsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetServiceExtensionsRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetServiceExtensionsRequest::getAccessKeyId()const void GetServiceExtensionsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GetServiceExtensionsResult.cc b/ccc/src/model/GetServiceExtensionsResult.cc index 23eebdbf0..401c21d08 100644 --- a/ccc/src/model/GetServiceExtensionsResult.cc +++ b/ccc/src/model/GetServiceExtensionsResult.cc @@ -35,10 +35,13 @@ GetServiceExtensionsResult::~GetServiceExtensionsResult() void GetServiceExtensionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allServiceExtensions = value["ServiceExtensions"]["ServiceExtension"]; for (auto value : allServiceExtensions) diff --git a/ccc/src/model/GetSmsConfigRequest.cc b/ccc/src/model/GetSmsConfigRequest.cc new file mode 100644 index 000000000..1ed2bc0fa --- /dev/null +++ b/ccc/src/model/GetSmsConfigRequest.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::GetSmsConfigRequest; + +GetSmsConfigRequest::GetSmsConfigRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetSmsConfig") +{} + +GetSmsConfigRequest::~GetSmsConfigRequest() +{} + +std::string GetSmsConfigRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetSmsConfigRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::vector GetSmsConfigRequest::getScenario()const +{ + return scenario_; +} + +void GetSmsConfigRequest::setScenario(const std::vector& scenario) +{ + scenario_ = scenario; + for(int i = 0; i!= scenario.size(); i++) + setCoreParameter("Scenario."+ std::to_string(i), std::to_string(scenario.at(i))); +} + +std::string GetSmsConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetSmsConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetSmsConfigResult.cc b/ccc/src/model/GetSmsConfigResult.cc new file mode 100644 index 000000000..f108cf788 --- /dev/null +++ b/ccc/src/model/GetSmsConfigResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetSmsConfigResult::GetSmsConfigResult() : + ServiceResult() +{} + +GetSmsConfigResult::GetSmsConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSmsConfigResult::~GetSmsConfigResult() +{} + +void GetSmsConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSmsConfigs = value["SmsConfigs"]["SmsConfig"]; + for (auto value : allSmsConfigs) + { + SmsConfig smsConfigsObject; + if(!value["Id"].isNull()) + smsConfigsObject.id = std::stol(value["Id"].asString()); + if(!value["Instance"].isNull()) + smsConfigsObject.instance = value["Instance"].asString(); + if(!value["SignName"].isNull()) + smsConfigsObject.signName = value["SignName"].asString(); + if(!value["TemplateCode"].isNull()) + smsConfigsObject.templateCode = value["TemplateCode"].asString(); + if(!value["Scenario"].isNull()) + smsConfigsObject.scenario = std::stoi(value["Scenario"].asString()); + if(!value["Name"].isNull()) + smsConfigsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + smsConfigsObject.description = value["Description"].asString(); + if(!value["Extra"].isNull()) + smsConfigsObject.extra = value["Extra"].asString(); + if(!value["GmtCreate"].isNull()) + smsConfigsObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + smsConfigsObject.gmtModified = value["GmtModified"].asString(); + smsConfigs_.push_back(smsConfigsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetSmsConfigResult::getMessage()const +{ + return message_; +} + +int GetSmsConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetSmsConfigResult::getSmsConfigs()const +{ + return smsConfigs_; +} + +std::string GetSmsConfigResult::getCode()const +{ + return code_; +} + +bool GetSmsConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetSurveyRequest.cc b/ccc/src/model/GetSurveyRequest.cc index 87e7b1001..2f96e040e 100644 --- a/ccc/src/model/GetSurveyRequest.cc +++ b/ccc/src/model/GetSurveyRequest.cc @@ -33,7 +33,7 @@ std::string GetSurveyRequest::getSurveyId()const void GetSurveyRequest::setSurveyId(const std::string& surveyId) { surveyId_ = surveyId; - setParameter("SurveyId", surveyId); + setCoreParameter("SurveyId", surveyId); } std::string GetSurveyRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string GetSurveyRequest::getInstanceId()const void GetSurveyRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetSurveyRequest::getScenarioId()const @@ -55,6 +55,6 @@ std::string GetSurveyRequest::getScenarioId()const void GetSurveyRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/GetSurveyResult.cc b/ccc/src/model/GetSurveyResult.cc index 123e307df..2bb538bf5 100644 --- a/ccc/src/model/GetSurveyResult.cc +++ b/ccc/src/model/GetSurveyResult.cc @@ -35,10 +35,13 @@ GetSurveyResult::~GetSurveyResult() void GetSurveyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto surveyNode = value["Survey"]; if(!surveyNode["Id"].isNull()) diff --git a/ccc/src/model/GetTURNCredentialsRequest.cc b/ccc/src/model/GetTURNCredentialsRequest.cc new file mode 100644 index 000000000..97d69dbbb --- /dev/null +++ b/ccc/src/model/GetTURNCredentialsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::GetTURNCredentialsRequest; + +GetTURNCredentialsRequest::GetTURNCredentialsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetTURNCredentials") +{} + +GetTURNCredentialsRequest::~GetTURNCredentialsRequest() +{} + +std::string GetTURNCredentialsRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTURNCredentialsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetTURNCredentialsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTURNCredentialsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string GetTURNCredentialsRequest::getUserName()const +{ + return userName_; +} + +void GetTURNCredentialsRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/ccc/src/model/GetTURNCredentialsResult.cc b/ccc/src/model/GetTURNCredentialsResult.cc new file mode 100644 index 000000000..54a92dcbe --- /dev/null +++ b/ccc/src/model/GetTURNCredentialsResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetTURNCredentialsResult::GetTURNCredentialsResult() : + ServiceResult() +{} + +GetTURNCredentialsResult::GetTURNCredentialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTURNCredentialsResult::~GetTURNCredentialsResult() +{} + +void GetTURNCredentialsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Username"].isNull()) + username_ = value["Username"].asString(); + if(!value["Password"].isNull()) + password_ = value["Password"].asString(); + +} + +std::string GetTURNCredentialsResult::getMessage()const +{ + return message_; +} + +std::string GetTURNCredentialsResult::getUsername()const +{ + return username_; +} + +int GetTURNCredentialsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetTURNCredentialsResult::getCode()const +{ + return code_; +} + +bool GetTURNCredentialsResult::getSuccess()const +{ + return success_; +} + +std::string GetTURNCredentialsResult::getPassword()const +{ + return password_; +} + diff --git a/ccc/src/model/GetTURNServerListRequest.cc b/ccc/src/model/GetTURNServerListRequest.cc new file mode 100644 index 000000000..daaaaf9dd --- /dev/null +++ b/ccc/src/model/GetTURNServerListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::GetTURNServerListRequest; + +GetTURNServerListRequest::GetTURNServerListRequest() : + RpcServiceRequest("ccc", "2017-07-05", "GetTURNServerList") +{} + +GetTURNServerListRequest::~GetTURNServerListRequest() +{} + +std::string GetTURNServerListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTURNServerListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetTURNServerListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTURNServerListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/GetTURNServerListResult.cc b/ccc/src/model/GetTURNServerListResult.cc new file mode 100644 index 000000000..bd4f1b300 --- /dev/null +++ b/ccc/src/model/GetTURNServerListResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +GetTURNServerListResult::GetTURNServerListResult() : + ServiceResult() +{} + +GetTURNServerListResult::GetTURNServerListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTURNServerListResult::~GetTURNServerListResult() +{} + +void GetTURNServerListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["TurnServerListConfig"].isNull()) + turnServerListConfig_ = value["TurnServerListConfig"].asString(); + +} + +std::string GetTURNServerListResult::getMessage()const +{ + return message_; +} + +int GetTURNServerListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetTURNServerListResult::getCode()const +{ + return code_; +} + +std::string GetTURNServerListResult::getTurnServerListConfig()const +{ + return turnServerListConfig_; +} + +bool GetTURNServerListResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/GetTaskListRequest.cc b/ccc/src/model/GetTaskListRequest.cc index 61154ca09..7162d5b3c 100644 --- a/ccc/src/model/GetTaskListRequest.cc +++ b/ccc/src/model/GetTaskListRequest.cc @@ -33,7 +33,7 @@ std::string GetTaskListRequest::getJobId()const void GetTaskListRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } std::string GetTaskListRequest::getInstanceId()const @@ -44,6 +44,6 @@ std::string GetTaskListRequest::getInstanceId()const void GetTaskListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/GetTaskListResult.cc b/ccc/src/model/GetTaskListResult.cc index 4caf5ae49..e7eeee983 100644 --- a/ccc/src/model/GetTaskListResult.cc +++ b/ccc/src/model/GetTaskListResult.cc @@ -35,10 +35,13 @@ GetTaskListResult::~GetTaskListResult() void GetTaskListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["Task"]; for (auto value : allTasks) diff --git a/ccc/src/model/GetUserRequest.cc b/ccc/src/model/GetUserRequest.cc index 9e613ca34..94a16f12a 100644 --- a/ccc/src/model/GetUserRequest.cc +++ b/ccc/src/model/GetUserRequest.cc @@ -33,7 +33,7 @@ std::string GetUserRequest::getInstanceId()const void GetUserRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GetUserRequest::getUserId()const @@ -44,7 +44,7 @@ std::string GetUserRequest::getUserId()const void GetUserRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string GetUserRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetUserRequest::getAccessKeyId()const void GetUserRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/GetUserResult.cc b/ccc/src/model/GetUserResult.cc index 6d0afa543..068d5a110 100644 --- a/ccc/src/model/GetUserResult.cc +++ b/ccc/src/model/GetUserResult.cc @@ -35,10 +35,13 @@ GetUserResult::~GetUserResult() void GetUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; if(!userNode["UserId"].isNull()) diff --git a/ccc/src/model/LaunchAppraiseRequest.cc b/ccc/src/model/LaunchAppraiseRequest.cc index 297d979d0..9d826ce13 100644 --- a/ccc/src/model/LaunchAppraiseRequest.cc +++ b/ccc/src/model/LaunchAppraiseRequest.cc @@ -33,7 +33,7 @@ std::string LaunchAppraiseRequest::getAcid()const void LaunchAppraiseRequest::setAcid(const std::string& acid) { acid_ = acid; - setParameter("Acid", acid); + setCoreParameter("Acid", acid); } std::string LaunchAppraiseRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string LaunchAppraiseRequest::getInstanceId()const void LaunchAppraiseRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string LaunchAppraiseRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string LaunchAppraiseRequest::getAccessKeyId()const void LaunchAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/LaunchAppraiseResult.cc b/ccc/src/model/LaunchAppraiseResult.cc index 3b5d06f77..b104e3037 100644 --- a/ccc/src/model/LaunchAppraiseResult.cc +++ b/ccc/src/model/LaunchAppraiseResult.cc @@ -35,10 +35,13 @@ LaunchAppraiseResult::~LaunchAppraiseResult() void LaunchAppraiseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/LaunchShortMessageAppraiseRequest.cc b/ccc/src/model/LaunchShortMessageAppraiseRequest.cc index 7065af275..abd0b13e5 100644 --- a/ccc/src/model/LaunchShortMessageAppraiseRequest.cc +++ b/ccc/src/model/LaunchShortMessageAppraiseRequest.cc @@ -33,7 +33,7 @@ std::string LaunchShortMessageAppraiseRequest::getAcid()const void LaunchShortMessageAppraiseRequest::setAcid(const std::string& acid) { acid_ = acid; - setParameter("Acid", acid); + setCoreParameter("Acid", acid); } std::string LaunchShortMessageAppraiseRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string LaunchShortMessageAppraiseRequest::getInstanceId()const void LaunchShortMessageAppraiseRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } int LaunchShortMessageAppraiseRequest::getContactType()const @@ -55,7 +55,7 @@ int LaunchShortMessageAppraiseRequest::getContactType()const void LaunchShortMessageAppraiseRequest::setContactType(int contactType) { contactType_ = contactType; - setParameter("ContactType", std::to_string(contactType)); + setCoreParameter("ContactType", std::to_string(contactType)); } std::string LaunchShortMessageAppraiseRequest::getPhoneNumbers()const @@ -66,7 +66,7 @@ std::string LaunchShortMessageAppraiseRequest::getPhoneNumbers()const void LaunchShortMessageAppraiseRequest::setPhoneNumbers(const std::string& phoneNumbers) { phoneNumbers_ = phoneNumbers; - setParameter("PhoneNumbers", phoneNumbers); + setCoreParameter("PhoneNumbers", phoneNumbers); } std::string LaunchShortMessageAppraiseRequest::getSkillGroupId()const @@ -77,7 +77,7 @@ std::string LaunchShortMessageAppraiseRequest::getSkillGroupId()const void LaunchShortMessageAppraiseRequest::setSkillGroupId(const std::string& skillGroupId) { skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); + setCoreParameter("SkillGroupId", skillGroupId); } std::string LaunchShortMessageAppraiseRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string LaunchShortMessageAppraiseRequest::getAccessKeyId()const void LaunchShortMessageAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/LaunchShortMessageAppraiseResult.cc b/ccc/src/model/LaunchShortMessageAppraiseResult.cc index cbb6f94a4..f97a44306 100644 --- a/ccc/src/model/LaunchShortMessageAppraiseResult.cc +++ b/ccc/src/model/LaunchShortMessageAppraiseResult.cc @@ -35,10 +35,13 @@ LaunchShortMessageAppraiseResult::~LaunchShortMessageAppraiseResult() void LaunchShortMessageAppraiseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/ListAgentDevicesRequest.cc b/ccc/src/model/ListAgentDevicesRequest.cc new file mode 100644 index 000000000..07f0c9ef4 --- /dev/null +++ b/ccc/src/model/ListAgentDevicesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListAgentDevicesRequest; + +ListAgentDevicesRequest::ListAgentDevicesRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListAgentDevices") +{} + +ListAgentDevicesRequest::~ListAgentDevicesRequest() +{} + +std::string ListAgentDevicesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAgentDevicesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListAgentDevicesRequest::getRamIds()const +{ + return ramIds_; +} + +void ListAgentDevicesRequest::setRamIds(const std::string& ramIds) +{ + ramIds_ = ramIds; + setCoreParameter("RamIds", ramIds); +} + +long ListAgentDevicesRequest::getStartTime()const +{ + return startTime_; +} + +void ListAgentDevicesRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +long ListAgentDevicesRequest::getStopTime()const +{ + return stopTime_; +} + +void ListAgentDevicesRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setCoreParameter("StopTime", std::to_string(stopTime)); +} + +std::string ListAgentDevicesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListAgentDevicesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListAgentDevicesResult.cc b/ccc/src/model/ListAgentDevicesResult.cc new file mode 100644 index 000000000..d49a3cc55 --- /dev/null +++ b/ccc/src/model/ListAgentDevicesResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListAgentDevicesResult::ListAgentDevicesResult() : + ServiceResult() +{} + +ListAgentDevicesResult::ListAgentDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentDevicesResult::~ListAgentDevicesResult() +{} + +void ListAgentDevicesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allAgentDeviceList = value["AgentDeviceList"]["AgentDevice"]; + for (auto value : allAgentDeviceList) + { + AgentDevice agentDeviceListObject; + if(!value["InstanceId"].isNull()) + agentDeviceListObject.instanceId = value["InstanceId"].asString(); + if(!value["RamId"].isNull()) + agentDeviceListObject.ramId = std::stol(value["RamId"].asString()); + if(!value["LoginTime"].isNull()) + agentDeviceListObject.loginTime = std::stol(value["LoginTime"].asString()); + if(!value["ClientIp"].isNull()) + agentDeviceListObject.clientIp = value["ClientIp"].asString(); + if(!value["ClientPort"].isNull()) + agentDeviceListObject.clientPort = value["ClientPort"].asString(); + if(!value["BrowserVersion"].isNull()) + agentDeviceListObject.browserVersion = value["BrowserVersion"].asString(); + if(!value["IsLogin"].isNull()) + agentDeviceListObject.isLogin = std::stoi(value["IsLogin"].asString()); + if(!value["Remark"].isNull()) + agentDeviceListObject.remark = value["Remark"].asString(); + agentDeviceList_.push_back(agentDeviceListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListAgentDevicesResult::getMessage()const +{ + return message_; +} + +int ListAgentDevicesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListAgentDevicesResult::getCode()const +{ + return code_; +} + +std::vector ListAgentDevicesResult::getAgentDeviceList()const +{ + return agentDeviceList_; +} + +bool ListAgentDevicesResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListAgentEventsRequest.cc b/ccc/src/model/ListAgentEventsRequest.cc new file mode 100644 index 000000000..ab89a1d04 --- /dev/null +++ b/ccc/src/model/ListAgentEventsRequest.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 + +using AlibabaCloud::CCC::Model::ListAgentEventsRequest; + +ListAgentEventsRequest::ListAgentEventsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListAgentEvents") +{} + +ListAgentEventsRequest::~ListAgentEventsRequest() +{} + +std::string ListAgentEventsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAgentEventsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +long ListAgentEventsRequest::getStartTime()const +{ + return startTime_; +} + +void ListAgentEventsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +long ListAgentEventsRequest::getStopTime()const +{ + return stopTime_; +} + +void ListAgentEventsRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setCoreParameter("StopTime", std::to_string(stopTime)); +} + +std::vector ListAgentEventsRequest::getEvent()const +{ + return event_; +} + +void ListAgentEventsRequest::setEvent(const std::vector& event) +{ + event_ = event; + for(int i = 0; i!= event.size(); i++) + setCoreParameter("Event."+ std::to_string(i), event.at(i)); +} + +std::vector ListAgentEventsRequest::getRamId()const +{ + return ramId_; +} + +void ListAgentEventsRequest::setRamId(const std::vector& ramId) +{ + ramId_ = ramId; + for(int i = 0; i!= ramId.size(); i++) + setCoreParameter("RamId."+ std::to_string(i), ramId.at(i)); +} + +std::string ListAgentEventsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListAgentEventsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListAgentEventsResult.cc b/ccc/src/model/ListAgentEventsResult.cc new file mode 100644 index 000000000..7ef549435 --- /dev/null +++ b/ccc/src/model/ListAgentEventsResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListAgentEventsResult::ListAgentEventsResult() : + ServiceResult() +{} + +ListAgentEventsResult::ListAgentEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentEventsResult::~ListAgentEventsResult() +{} + +void ListAgentEventsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allAgentEventList = value["AgentEventList"]["AgentEvent"]; + for (auto value : allAgentEventList) + { + AgentEvent agentEventListObject; + if(!value["InstanceId"].isNull()) + agentEventListObject.instanceId = value["InstanceId"].asString(); + if(!value["RamId"].isNull()) + agentEventListObject.ramId = std::stol(value["RamId"].asString()); + if(!value["LoginName"].isNull()) + agentEventListObject.loginName = value["LoginName"].asString(); + if(!value["Event"].isNull()) + agentEventListObject.event = value["Event"].asString(); + if(!value["EventTime"].isNull()) + agentEventListObject.eventTime = std::stol(value["EventTime"].asString()); + auto allSkillGroupIds = value["SkillGroupIds"]["SkillGroup"]; + for (auto value : allSkillGroupIds) + { + AgentEvent::SkillGroup skillGroupIdsObject; + if(!value["SkillGroupId"].isNull()) + skillGroupIdsObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + skillGroupIdsObject.skillGroupName = value["SkillGroupName"].asString(); + agentEventListObject.skillGroupIds.push_back(skillGroupIdsObject); + } + agentEventList_.push_back(agentEventListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector ListAgentEventsResult::getAgentEventList()const +{ + return agentEventList_; +} + +std::string ListAgentEventsResult::getMessage()const +{ + return message_; +} + +int ListAgentEventsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListAgentEventsResult::getCode()const +{ + return code_; +} + +bool ListAgentEventsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListAgentStatesRequest.cc b/ccc/src/model/ListAgentStatesRequest.cc new file mode 100644 index 000000000..bfadd555b --- /dev/null +++ b/ccc/src/model/ListAgentStatesRequest.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 + +using AlibabaCloud::CCC::Model::ListAgentStatesRequest; + +ListAgentStatesRequest::ListAgentStatesRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListAgentStates") +{} + +ListAgentStatesRequest::~ListAgentStatesRequest() +{} + +std::string ListAgentStatesRequest::getAgentIds()const +{ + return agentIds_; +} + +void ListAgentStatesRequest::setAgentIds(const std::string& agentIds) +{ + agentIds_ = agentIds; + setCoreParameter("AgentIds", agentIds); +} + +std::string ListAgentStatesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAgentStatesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListAgentStatesRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListAgentStatesRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +int ListAgentStatesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAgentStatesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListAgentStatesRequest::getState()const +{ + return state_; +} + +void ListAgentStatesRequest::setState(const std::string& state) +{ + state_ = state; + setCoreParameter("State", state); +} + +int ListAgentStatesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAgentStatesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListAgentStatesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListAgentStatesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListAgentStatesResult.cc b/ccc/src/model/ListAgentStatesResult.cc new file mode 100644 index 000000000..df6226942 --- /dev/null +++ b/ccc/src/model/ListAgentStatesResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListAgentStatesResult::ListAgentStatesResult() : + ServiceResult() +{} + +ListAgentStatesResult::ListAgentStatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentStatesResult::~ListAgentStatesResult() +{} + +void ListAgentStatesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allList = value["List"]["RealTimeAgentState"]; + for (auto value : allList) + { + Data::RealTimeAgentState realTimeAgentStateObject; + if(!value["InstanceId"].isNull()) + realTimeAgentStateObject.instanceId = value["InstanceId"].asString(); + if(!value["AgentId"].isNull()) + realTimeAgentStateObject.agentId = value["AgentId"].asString(); + if(!value["LoginName"].isNull()) + realTimeAgentStateObject.loginName = value["LoginName"].asString(); + if(!value["AgentName"].isNull()) + realTimeAgentStateObject.agentName = value["AgentName"].asString(); + if(!value["State"].isNull()) + realTimeAgentStateObject.state = value["State"].asString(); + if(!value["Dn"].isNull()) + realTimeAgentStateObject.dn = value["Dn"].asString(); + if(!value["StateDuration"].isNull()) + realTimeAgentStateObject.stateDuration = value["StateDuration"].asString(); + data_.list.push_back(realTimeAgentStateObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListAgentStatesResult::getMessage()const +{ + return message_; +} + +int ListAgentStatesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListAgentStatesResult::Data ListAgentStatesResult::getData()const +{ + return data_; +} + +std::string ListAgentStatesResult::getCode()const +{ + return code_; +} + +bool ListAgentStatesResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc b/ccc/src/model/ListAgentSummaryReportsByIntervalRequest.cc new file mode 100644 index 000000000..053395eb3 --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsByIntervalRequest.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::CCC::Model::ListAgentSummaryReportsByIntervalRequest; + +ListAgentSummaryReportsByIntervalRequest::ListAgentSummaryReportsByIntervalRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListAgentSummaryReportsByInterval") +{} + +ListAgentSummaryReportsByIntervalRequest::~ListAgentSummaryReportsByIntervalRequest() +{} + +std::string ListAgentSummaryReportsByIntervalRequest::getAgentIds()const +{ + return agentIds_; +} + +void ListAgentSummaryReportsByIntervalRequest::setAgentIds(const std::string& agentIds) +{ + agentIds_ = agentIds; + setCoreParameter("AgentIds", agentIds); +} + +std::string ListAgentSummaryReportsByIntervalRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAgentSummaryReportsByIntervalRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListAgentSummaryReportsByIntervalRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListAgentSummaryReportsByIntervalRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +int ListAgentSummaryReportsByIntervalRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAgentSummaryReportsByIntervalRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListAgentSummaryReportsByIntervalRequest::getEndTime()const +{ + return endTime_; +} + +void ListAgentSummaryReportsByIntervalRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string ListAgentSummaryReportsByIntervalRequest::getInterval()const +{ + return interval_; +} + +void ListAgentSummaryReportsByIntervalRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string ListAgentSummaryReportsByIntervalRequest::getStartTime()const +{ + return startTime_; +} + +void ListAgentSummaryReportsByIntervalRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int ListAgentSummaryReportsByIntervalRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAgentSummaryReportsByIntervalRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListAgentSummaryReportsByIntervalRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListAgentSummaryReportsByIntervalRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc b/ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc new file mode 100644 index 000000000..3656a5783 --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsByIntervalResult.cc @@ -0,0 +1,213 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListAgentSummaryReportsByIntervalResult::ListAgentSummaryReportsByIntervalResult() : + ServiceResult() +{} + +ListAgentSummaryReportsByIntervalResult::ListAgentSummaryReportsByIntervalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentSummaryReportsByIntervalResult::~ListAgentSummaryReportsByIntervalResult() +{} + +void ListAgentSummaryReportsByIntervalResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto pagedAgentSummaryReportNode = value["PagedAgentSummaryReport"]; + if(!pagedAgentSummaryReportNode["TotalCount"].isNull()) + pagedAgentSummaryReport_.totalCount = std::stoi(pagedAgentSummaryReportNode["TotalCount"].asString()); + if(!pagedAgentSummaryReportNode["PageNumber"].isNull()) + pagedAgentSummaryReport_.pageNumber = std::stoi(pagedAgentSummaryReportNode["PageNumber"].asString()); + if(!pagedAgentSummaryReportNode["PageSize"].isNull()) + pagedAgentSummaryReport_.pageSize = std::stoi(pagedAgentSummaryReportNode["PageSize"].asString()); + auto allList = value["List"]["AgentTimeIntervalReport"]; + for (auto value : allList) + { + PagedAgentSummaryReport::AgentTimeIntervalReport agentTimeIntervalReportObject; + if(!value["AgentId"].isNull()) + agentTimeIntervalReportObject.agentId = value["AgentId"].asString(); + auto allIntervalList = value["IntervalList"]["AgentSummaryReport"]; + for (auto value : allIntervalList) + { + PagedAgentSummaryReport::AgentTimeIntervalReport::AgentSummaryReport intervalListObject; + if(!value["Timestamp"].isNull()) + intervalListObject.timestamp = value["Timestamp"].asString(); + if(!value["InstanceId"].isNull()) + intervalListObject.instanceId = value["InstanceId"].asString(); + if(!value["AgentId"].isNull()) + intervalListObject.agentId = value["AgentId"].asString(); + if(!value["LoginName"].isNull()) + intervalListObject.loginName = value["LoginName"].asString(); + if(!value["AgentName"].isNull()) + intervalListObject.agentName = value["AgentName"].asString(); + if(!value["SkillGroupIds"].isNull()) + intervalListObject.skillGroupIds = value["SkillGroupIds"].asString(); + if(!value["SkillGroupNames"].isNull()) + intervalListObject.skillGroupNames = value["SkillGroupNames"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + intervalListObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + intervalListObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + intervalListObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + intervalListObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + intervalListObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + intervalListObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + intervalListObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + intervalListObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + intervalListObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + intervalListObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + intervalListObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + intervalListObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + intervalListObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + intervalListObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + intervalListObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsOffered"].isNull()) + intervalListObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + intervalListObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + intervalListObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + intervalListObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + intervalListObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + intervalListObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + intervalListObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + intervalListObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + intervalListObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + intervalListObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + intervalListObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + intervalListObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + intervalListObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + intervalListObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + intervalListObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + intervalListObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + intervalListObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + intervalListObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + intervalListObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + intervalListObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + intervalListObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + intervalListObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + intervalListObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + intervalListObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + intervalListObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + intervalListObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + intervalListObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + intervalListObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + intervalListObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + intervalListObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + intervalListObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + agentTimeIntervalReportObject.intervalList.push_back(intervalListObject); + } + pagedAgentSummaryReport_.list.push_back(agentTimeIntervalReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListAgentSummaryReportsByIntervalResult::getMessage()const +{ + return message_; +} + +ListAgentSummaryReportsByIntervalResult::PagedAgentSummaryReport ListAgentSummaryReportsByIntervalResult::getPagedAgentSummaryReport()const +{ + return pagedAgentSummaryReport_; +} + +int ListAgentSummaryReportsByIntervalResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListAgentSummaryReportsByIntervalResult::getCode()const +{ + return code_; +} + +bool ListAgentSummaryReportsByIntervalResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListAgentSummaryReportsRequest.cc b/ccc/src/model/ListAgentSummaryReportsRequest.cc new file mode 100644 index 000000000..ee51ebba5 --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ListAgentSummaryReportsRequest; + +ListAgentSummaryReportsRequest::ListAgentSummaryReportsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListAgentSummaryReports") +{} + +ListAgentSummaryReportsRequest::~ListAgentSummaryReportsRequest() +{} + +std::string ListAgentSummaryReportsRequest::getAgentIds()const +{ + return agentIds_; +} + +void ListAgentSummaryReportsRequest::setAgentIds(const std::string& agentIds) +{ + agentIds_ = agentIds; + setCoreParameter("AgentIds", agentIds); +} + +std::string ListAgentSummaryReportsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAgentSummaryReportsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListAgentSummaryReportsRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListAgentSummaryReportsRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +int ListAgentSummaryReportsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAgentSummaryReportsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListAgentSummaryReportsRequest::getEndTime()const +{ + return endTime_; +} + +void ListAgentSummaryReportsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string ListAgentSummaryReportsRequest::getStartTime()const +{ + return startTime_; +} + +void ListAgentSummaryReportsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int ListAgentSummaryReportsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAgentSummaryReportsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListAgentSummaryReportsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListAgentSummaryReportsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListAgentSummaryReportsResult.cc b/ccc/src/model/ListAgentSummaryReportsResult.cc new file mode 100644 index 000000000..f28bebb75 --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsResult.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListAgentSummaryReportsResult::ListAgentSummaryReportsResult() : + ServiceResult() +{} + +ListAgentSummaryReportsResult::ListAgentSummaryReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentSummaryReportsResult::~ListAgentSummaryReportsResult() +{} + +void ListAgentSummaryReportsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto pagedAgentSummaryReportNode = value["PagedAgentSummaryReport"]; + if(!pagedAgentSummaryReportNode["TotalCount"].isNull()) + pagedAgentSummaryReport_.totalCount = std::stoi(pagedAgentSummaryReportNode["TotalCount"].asString()); + if(!pagedAgentSummaryReportNode["PageNumber"].isNull()) + pagedAgentSummaryReport_.pageNumber = std::stoi(pagedAgentSummaryReportNode["PageNumber"].asString()); + if(!pagedAgentSummaryReportNode["PageSize"].isNull()) + pagedAgentSummaryReport_.pageSize = std::stoi(pagedAgentSummaryReportNode["PageSize"].asString()); + auto allList = value["List"]["AgentSummaryReport"]; + for (auto value : allList) + { + PagedAgentSummaryReport::AgentSummaryReport agentSummaryReportObject; + if(!value["InstanceId"].isNull()) + agentSummaryReportObject.instanceId = value["InstanceId"].asString(); + if(!value["AgentId"].isNull()) + agentSummaryReportObject.agentId = value["AgentId"].asString(); + if(!value["LoginName"].isNull()) + agentSummaryReportObject.loginName = value["LoginName"].asString(); + if(!value["AgentName"].isNull()) + agentSummaryReportObject.agentName = value["AgentName"].asString(); + if(!value["SkillGroupIds"].isNull()) + agentSummaryReportObject.skillGroupIds = value["SkillGroupIds"].asString(); + if(!value["SkillGroupNames"].isNull()) + agentSummaryReportObject.skillGroupNames = value["SkillGroupNames"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + agentSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + agentSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + agentSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + agentSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + agentSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + agentSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + agentSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + agentSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + agentSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + agentSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + agentSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + agentSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + agentSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + agentSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + agentSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + agentSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsOffered"].isNull()) + agentSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + agentSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + agentSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + agentSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + agentSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + agentSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + agentSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + agentSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + agentSummaryReportObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + agentSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + agentSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + agentSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + agentSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + agentSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + agentSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + agentSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + agentSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + agentSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + agentSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + agentSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + agentSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + agentSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + agentSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + agentSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + agentSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + agentSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + agentSummaryReportObject.outbound.maxWorkTime = outboundNode["MaxWorkTime"].asString(); + if(!outboundNode["AverageWorkTime"].isNull()) + agentSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + agentSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + agentSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + agentSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + pagedAgentSummaryReport_.list.push_back(agentSummaryReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListAgentSummaryReportsResult::getMessage()const +{ + return message_; +} + +ListAgentSummaryReportsResult::PagedAgentSummaryReport ListAgentSummaryReportsResult::getPagedAgentSummaryReport()const +{ + return pagedAgentSummaryReport_; +} + +int ListAgentSummaryReportsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListAgentSummaryReportsResult::getCode()const +{ + return code_; +} + +bool ListAgentSummaryReportsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.cc b/ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.cc new file mode 100644 index 000000000..6ebe31f9f --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsSinceMidnightRequest.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 + +using AlibabaCloud::CCC::Model::ListAgentSummaryReportsSinceMidnightRequest; + +ListAgentSummaryReportsSinceMidnightRequest::ListAgentSummaryReportsSinceMidnightRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListAgentSummaryReportsSinceMidnight") +{} + +ListAgentSummaryReportsSinceMidnightRequest::~ListAgentSummaryReportsSinceMidnightRequest() +{} + +std::string ListAgentSummaryReportsSinceMidnightRequest::getAgentIds()const +{ + return agentIds_; +} + +void ListAgentSummaryReportsSinceMidnightRequest::setAgentIds(const std::string& agentIds) +{ + agentIds_ = agentIds; + setCoreParameter("AgentIds", agentIds); +} + +std::string ListAgentSummaryReportsSinceMidnightRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAgentSummaryReportsSinceMidnightRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListAgentSummaryReportsSinceMidnightRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListAgentSummaryReportsSinceMidnightRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +int ListAgentSummaryReportsSinceMidnightRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAgentSummaryReportsSinceMidnightRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int ListAgentSummaryReportsSinceMidnightRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAgentSummaryReportsSinceMidnightRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListAgentSummaryReportsSinceMidnightRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListAgentSummaryReportsSinceMidnightRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc b/ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc new file mode 100644 index 000000000..01393036c --- /dev/null +++ b/ccc/src/model/ListAgentSummaryReportsSinceMidnightResult.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListAgentSummaryReportsSinceMidnightResult::ListAgentSummaryReportsSinceMidnightResult() : + ServiceResult() +{} + +ListAgentSummaryReportsSinceMidnightResult::ListAgentSummaryReportsSinceMidnightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentSummaryReportsSinceMidnightResult::~ListAgentSummaryReportsSinceMidnightResult() +{} + +void ListAgentSummaryReportsSinceMidnightResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto pagedAgentSummaryReportNode = value["PagedAgentSummaryReport"]; + if(!pagedAgentSummaryReportNode["TotalCount"].isNull()) + pagedAgentSummaryReport_.totalCount = std::stoi(pagedAgentSummaryReportNode["TotalCount"].asString()); + if(!pagedAgentSummaryReportNode["PageNumber"].isNull()) + pagedAgentSummaryReport_.pageNumber = std::stoi(pagedAgentSummaryReportNode["PageNumber"].asString()); + if(!pagedAgentSummaryReportNode["PageSize"].isNull()) + pagedAgentSummaryReport_.pageSize = std::stoi(pagedAgentSummaryReportNode["PageSize"].asString()); + auto allList = value["List"]["AgentSummaryReport"]; + for (auto value : allList) + { + PagedAgentSummaryReport::AgentSummaryReport agentSummaryReportObject; + if(!value["Timestamp"].isNull()) + agentSummaryReportObject.timestamp = value["Timestamp"].asString(); + if(!value["InstanceId"].isNull()) + agentSummaryReportObject.instanceId = value["InstanceId"].asString(); + if(!value["AgentId"].isNull()) + agentSummaryReportObject.agentId = value["AgentId"].asString(); + if(!value["LoginName"].isNull()) + agentSummaryReportObject.loginName = value["LoginName"].asString(); + if(!value["AgentName"].isNull()) + agentSummaryReportObject.agentName = value["AgentName"].asString(); + if(!value["SkillGroupIds"].isNull()) + agentSummaryReportObject.skillGroupIds = value["SkillGroupIds"].asString(); + if(!value["SkillGroupNames"].isNull()) + agentSummaryReportObject.skillGroupNames = value["SkillGroupNames"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + agentSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + agentSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + agentSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + agentSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + agentSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + agentSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + agentSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + agentSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + agentSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + agentSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + agentSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + agentSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + agentSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + agentSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + agentSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + agentSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsOffered"].isNull()) + agentSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + agentSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + agentSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + agentSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + agentSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + agentSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + agentSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + agentSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + agentSummaryReportObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + agentSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + agentSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + agentSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + agentSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + agentSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + agentSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + agentSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + agentSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + agentSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + agentSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + agentSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + agentSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + agentSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + agentSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + agentSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + agentSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + agentSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + agentSummaryReportObject.outbound.maxWorkTime = outboundNode["MaxWorkTime"].asString(); + if(!outboundNode["AverageWorkTime"].isNull()) + agentSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + agentSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + agentSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + agentSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + pagedAgentSummaryReport_.list.push_back(agentSummaryReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListAgentSummaryReportsSinceMidnightResult::getMessage()const +{ + return message_; +} + +ListAgentSummaryReportsSinceMidnightResult::PagedAgentSummaryReport ListAgentSummaryReportsSinceMidnightResult::getPagedAgentSummaryReport()const +{ + return pagedAgentSummaryReport_; +} + +int ListAgentSummaryReportsSinceMidnightResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListAgentSummaryReportsSinceMidnightResult::getCode()const +{ + return code_; +} + +bool ListAgentSummaryReportsSinceMidnightResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc b/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc index 8b86b0470..df6943ae0 100644 --- a/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc +++ b/ccc/src/model/ListBasicStatisticsReportSubItemsRequest.cc @@ -33,7 +33,7 @@ std::string ListBasicStatisticsReportSubItemsRequest::getInstanceId()const void ListBasicStatisticsReportSubItemsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListBasicStatisticsReportSubItemsRequest::getJobGroupId()const @@ -44,7 +44,7 @@ std::string ListBasicStatisticsReportSubItemsRequest::getJobGroupId()const void ListBasicStatisticsReportSubItemsRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } int ListBasicStatisticsReportSubItemsRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListBasicStatisticsReportSubItemsRequest::getPageSize()const void ListBasicStatisticsReportSubItemsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListBasicStatisticsReportSubItemsRequest::getTitle()const @@ -66,7 +66,7 @@ std::string ListBasicStatisticsReportSubItemsRequest::getTitle()const void ListBasicStatisticsReportSubItemsRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } int ListBasicStatisticsReportSubItemsRequest::getPageNumber()const @@ -77,6 +77,6 @@ int ListBasicStatisticsReportSubItemsRequest::getPageNumber()const void ListBasicStatisticsReportSubItemsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc b/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc index 1f4932f00..a9f1a78bb 100644 --- a/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc +++ b/ccc/src/model/ListBasicStatisticsReportSubItemsResult.cc @@ -35,10 +35,13 @@ ListBasicStatisticsReportSubItemsResult::~ListBasicStatisticsReportSubItemsResul void ListBasicStatisticsReportSubItemsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto subItemsNode = value["SubItems"]; if(!subItemsNode["TotalCount"].isNull()) diff --git a/ccc/src/model/ListCallDetailRecordsRequest.cc b/ccc/src/model/ListCallDetailRecordsRequest.cc index cb2a78190..7d1aba9c0 100644 --- a/ccc/src/model/ListCallDetailRecordsRequest.cc +++ b/ccc/src/model/ListCallDetailRecordsRequest.cc @@ -25,28 +25,6 @@ ListCallDetailRecordsRequest::ListCallDetailRecordsRequest() : ListCallDetailRecordsRequest::~ListCallDetailRecordsRequest() {} -std::string ListCallDetailRecordsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListCallDetailRecordsRequest::getContactDisposition()const -{ - return contactDisposition_; -} - -void ListCallDetailRecordsRequest::setContactDisposition(const std::string& contactDisposition) -{ - contactDisposition_ = contactDisposition; - setParameter("ContactDisposition", contactDisposition); -} - std::string ListCallDetailRecordsRequest::getContactType()const { return contactType_; @@ -55,7 +33,18 @@ std::string ListCallDetailRecordsRequest::getContactType()const void ListCallDetailRecordsRequest::setContactType(const std::string& contactType) { contactType_ = contactType; - setParameter("ContactType", contactType); + setCoreParameter("ContactType", contactType); +} + +std::string ListCallDetailRecordsRequest::getContactId()const +{ + return contactId_; +} + +void ListCallDetailRecordsRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setCoreParameter("ContactId", contactId); } std::string ListCallDetailRecordsRequest::getCriteria()const @@ -66,7 +55,7 @@ std::string ListCallDetailRecordsRequest::getCriteria()const void ListCallDetailRecordsRequest::setCriteria(const std::string& criteria) { criteria_ = criteria; - setParameter("Criteria", criteria); + setCoreParameter("Criteria", criteria); } std::string ListCallDetailRecordsRequest::getPhoneNumber()const @@ -77,18 +66,7 @@ std::string ListCallDetailRecordsRequest::getPhoneNumber()const void ListCallDetailRecordsRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -int ListCallDetailRecordsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListCallDetailRecordsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PhoneNumber", phoneNumber); } std::string ListCallDetailRecordsRequest::getOrderBy()const @@ -99,18 +77,7 @@ std::string ListCallDetailRecordsRequest::getOrderBy()const void ListCallDetailRecordsRequest::setOrderBy(const std::string& orderBy) { orderBy_ = orderBy; - setParameter("OrderBy", orderBy); -} - -long ListCallDetailRecordsRequest::getStopTime()const -{ - return stopTime_; -} - -void ListCallDetailRecordsRequest::setStopTime(long stopTime) -{ - stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); + setCoreParameter("OrderBy", orderBy); } long ListCallDetailRecordsRequest::getStartTime()const @@ -121,7 +88,18 @@ long ListCallDetailRecordsRequest::getStartTime()const void ListCallDetailRecordsRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); +} + +long ListCallDetailRecordsRequest::getStopTime()const +{ + return stopTime_; +} + +void ListCallDetailRecordsRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setCoreParameter("StopTime", std::to_string(stopTime)); } int ListCallDetailRecordsRequest::getPageNumber()const @@ -132,7 +110,7 @@ int ListCallDetailRecordsRequest::getPageNumber()const void ListCallDetailRecordsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListCallDetailRecordsRequest::getAccessKeyId()const @@ -143,7 +121,40 @@ std::string ListCallDetailRecordsRequest::getAccessKeyId()const void ListCallDetailRecordsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListCallDetailRecordsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListCallDetailRecordsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListCallDetailRecordsRequest::getContactDisposition()const +{ + return contactDisposition_; +} + +void ListCallDetailRecordsRequest::setContactDisposition(const std::string& contactDisposition) +{ + contactDisposition_ = contactDisposition; + setCoreParameter("ContactDisposition", contactDisposition); +} + +int ListCallDetailRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListCallDetailRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); } bool ListCallDetailRecordsRequest::getWithRecording()const @@ -154,6 +165,6 @@ bool ListCallDetailRecordsRequest::getWithRecording()const void ListCallDetailRecordsRequest::setWithRecording(bool withRecording) { withRecording_ = withRecording; - setParameter("WithRecording", std::to_string(withRecording)); + setCoreParameter("WithRecording", withRecording ? "true" : "false"); } diff --git a/ccc/src/model/ListCallDetailRecordsResult.cc b/ccc/src/model/ListCallDetailRecordsResult.cc index 44d9cb24f..974522e37 100644 --- a/ccc/src/model/ListCallDetailRecordsResult.cc +++ b/ccc/src/model/ListCallDetailRecordsResult.cc @@ -35,10 +35,13 @@ ListCallDetailRecordsResult::~ListCallDetailRecordsResult() void ListCallDetailRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto callDetailRecordsNode = value["CallDetailRecords"]; if(!callDetailRecordsNode["TotalCount"].isNull()) @@ -59,6 +62,10 @@ void ListCallDetailRecordsResult::parse(const std::string &payload) callDetailRecordObject.duration = std::stoi(value["Duration"].asString()); if(!value["Satisfaction"].isNull()) callDetailRecordObject.satisfaction = std::stoi(value["Satisfaction"].asString()); + if(!value["SatisfactionDesc"].isNull()) + callDetailRecordObject.satisfactionDesc = value["SatisfactionDesc"].asString(); + if(!value["Feedback"].isNull()) + callDetailRecordObject.feedback = value["Feedback"].asString(); if(!value["ContactType"].isNull()) callDetailRecordObject.contactType = value["ContactType"].asString(); if(!value["ContactDisposition"].isNull()) @@ -73,32 +80,16 @@ void ListCallDetailRecordsResult::parse(const std::string &payload) callDetailRecordObject.skillGroupNames = value["SkillGroupNames"].asString(); if(!value["InstanceId"].isNull()) callDetailRecordObject.instanceId = value["InstanceId"].asString(); - if(!value["ExtraAttr"].isNull()) - callDetailRecordObject.extraAttr = value["ExtraAttr"].asString(); auto allAgents = value["Agents"]["CallDetailAgent"]; for (auto value : allAgents) { CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject; - if(!value["ContactId"].isNull()) - agentsObject.contactId = value["ContactId"].asString(); if(!value["AgentId"].isNull()) agentsObject.agentId = value["AgentId"].asString(); - if(!value["AgentName"].isNull()) - agentsObject.agentName = value["AgentName"].asString(); - if(!value["SkillGroupName"].isNull()) - agentsObject.skillGroupName = value["SkillGroupName"].asString(); - if(!value["QueueTime"].isNull()) - agentsObject.queueTime = std::stoi(value["QueueTime"].asString()); - if(!value["RingTime"].isNull()) - agentsObject.ringTime = std::stoi(value["RingTime"].asString()); - if(!value["StartTime"].isNull()) - agentsObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["TalkTime"].isNull()) - agentsObject.talkTime = std::stoi(value["TalkTime"].asString()); - if(!value["HoldTime"].isNull()) - agentsObject.holdTime = std::stoi(value["HoldTime"].asString()); - if(!value["WorkTime"].isNull()) - agentsObject.workTime = std::stoi(value["WorkTime"].asString()); + if(!value["Satisfaction"].isNull()) + agentsObject.satisfaction = value["Satisfaction"].asString(); + if(!value["Feedback"].isNull()) + agentsObject.feedback = value["Feedback"].asString(); callDetailRecordObject.agents.push_back(agentsObject); } auto allRecordings = value["Recordings"]["Recording"]; @@ -107,30 +98,22 @@ void ListCallDetailRecordsResult::parse(const std::string &payload) CallDetailRecords::CallDetailRecord::Recording recordingsObject; if(!value["ContactId"].isNull()) recordingsObject.contactId = value["ContactId"].asString(); - if(!value["ContactType"].isNull()) - recordingsObject.contactType = value["ContactType"].asString(); if(!value["AgentId"].isNull()) recordingsObject.agentId = value["AgentId"].asString(); if(!value["AgentName"].isNull()) recordingsObject.agentName = value["AgentName"].asString(); - if(!value["CallingNumber"].isNull()) - recordingsObject.callingNumber = value["CallingNumber"].asString(); - if(!value["CalledNumber"].isNull()) - recordingsObject.calledNumber = value["CalledNumber"].asString(); if(!value["StartTime"].isNull()) recordingsObject.startTime = std::stol(value["StartTime"].asString()); if(!value["Duration"].isNull()) recordingsObject.duration = std::stoi(value["Duration"].asString()); if(!value["FileName"].isNull()) recordingsObject.fileName = value["FileName"].asString(); - if(!value["FilePath"].isNull()) - recordingsObject.filePath = value["FilePath"].asString(); if(!value["FileDescription"].isNull()) recordingsObject.fileDescription = value["FileDescription"].asString(); - if(!value["Channel"].isNull()) - recordingsObject.channel = value["Channel"].asString(); - if(!value["InstanceId"].isNull()) - recordingsObject.instanceId = value["InstanceId"].asString(); + if(!value["QualityCheckTid"].isNull()) + recordingsObject.qualityCheckTid = value["QualityCheckTid"].asString(); + if(!value["QualityCheckTaskId"].isNull()) + recordingsObject.qualityCheckTaskId = value["QualityCheckTaskId"].asString(); callDetailRecordObject.recordings.push_back(recordingsObject); } callDetailRecords_.list.push_back(callDetailRecordObject); diff --git a/ccc/src/model/ListCallEventDetailByContactIdRequest.cc b/ccc/src/model/ListCallEventDetailByContactIdRequest.cc new file mode 100644 index 000000000..1f9ab8fac --- /dev/null +++ b/ccc/src/model/ListCallEventDetailByContactIdRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListCallEventDetailByContactIdRequest; + +ListCallEventDetailByContactIdRequest::ListCallEventDetailByContactIdRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListCallEventDetailByContactId") +{} + +ListCallEventDetailByContactIdRequest::~ListCallEventDetailByContactIdRequest() +{} + +std::string ListCallEventDetailByContactIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListCallEventDetailByContactIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListCallEventDetailByContactIdRequest::getContactId()const +{ + return contactId_; +} + +void ListCallEventDetailByContactIdRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setCoreParameter("ContactId", contactId); +} + +std::string ListCallEventDetailByContactIdRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListCallEventDetailByContactIdRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListCallEventDetailByContactIdResult.cc b/ccc/src/model/ListCallEventDetailByContactIdResult.cc new file mode 100644 index 000000000..d40c612a6 --- /dev/null +++ b/ccc/src/model/ListCallEventDetailByContactIdResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListCallEventDetailByContactIdResult::ListCallEventDetailByContactIdResult() : + ServiceResult() +{} + +ListCallEventDetailByContactIdResult::ListCallEventDetailByContactIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCallEventDetailByContactIdResult::~ListCallEventDetailByContactIdResult() +{} + +void ListCallEventDetailByContactIdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Caller"].isNull()) + data_.caller = dataNode["Caller"].asString(); + if(!dataNode["Callee"].isNull()) + data_.callee = dataNode["Callee"].asString(); + if(!dataNode["CallType"].isNull()) + data_.callType = dataNode["CallType"].asString(); + if(!dataNode["StartTime"].isNull()) + data_.startTime = dataNode["StartTime"].asString(); + if(!dataNode["PrivacyNumber"].isNull()) + data_.privacyNumber = dataNode["PrivacyNumber"].asString(); + auto allEvents = value["Events"]["CallEventDetail"]; + for (auto value : allEvents) + { + Data::CallEventDetail callEventDetailObject; + if(!value["TimeStamp"].isNull()) + callEventDetailObject.timeStamp = value["TimeStamp"].asString(); + if(!value["Event"].isNull()) + callEventDetailObject.event = value["Event"].asString(); + if(!value["AgentName"].isNull()) + callEventDetailObject.agentName = value["AgentName"].asString(); + if(!value["Status"].isNull()) + callEventDetailObject.status = value["Status"].asString(); + if(!value["CallMode"].isNull()) + callEventDetailObject.callMode = value["CallMode"].asString(); + if(!value["Duration"].isNull()) + callEventDetailObject.duration = std::stoi(value["Duration"].asString()); + auto detailDataNode = value["DetailData"]; + if(!detailDataNode["EventType"].isNull()) + callEventDetailObject.detailData.eventType = detailDataNode["EventType"].asString(); + if(!detailDataNode["Helper"].isNull()) + callEventDetailObject.detailData.helper = detailDataNode["Helper"].asString(); + if(!detailDataNode["SatisfactionalResearch"].isNull()) + callEventDetailObject.detailData.satisfactionalResearch = detailDataNode["SatisfactionalResearch"].asString(); + if(!detailDataNode["SkillGroup"].isNull()) + callEventDetailObject.detailData.skillGroup = detailDataNode["SkillGroup"].asString(); + if(!detailDataNode["HangUper"].isNull()) + callEventDetailObject.detailData.hangUper = detailDataNode["HangUper"].asString(); + data_.events.push_back(callEventDetailObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListCallEventDetailByContactIdResult::getMessage()const +{ + return message_; +} + +int ListCallEventDetailByContactIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListCallEventDetailByContactIdResult::Data ListCallEventDetailByContactIdResult::getData()const +{ + return data_; +} + +std::string ListCallEventDetailByContactIdResult::getCode()const +{ + return code_; +} + +bool ListCallEventDetailByContactIdResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListCallMeasureSummaryReportsRequest.cc b/ccc/src/model/ListCallMeasureSummaryReportsRequest.cc new file mode 100644 index 000000000..d4aec0052 --- /dev/null +++ b/ccc/src/model/ListCallMeasureSummaryReportsRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ListCallMeasureSummaryReportsRequest; + +ListCallMeasureSummaryReportsRequest::ListCallMeasureSummaryReportsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListCallMeasureSummaryReports") +{} + +ListCallMeasureSummaryReportsRequest::~ListCallMeasureSummaryReportsRequest() +{} + +std::string ListCallMeasureSummaryReportsRequest::getIntervalType()const +{ + return intervalType_; +} + +void ListCallMeasureSummaryReportsRequest::setIntervalType(const std::string& intervalType) +{ + intervalType_ = intervalType; + setCoreParameter("IntervalType", intervalType); +} + +std::string ListCallMeasureSummaryReportsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListCallMeasureSummaryReportsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListCallMeasureSummaryReportsResult.cc b/ccc/src/model/ListCallMeasureSummaryReportsResult.cc new file mode 100644 index 000000000..20d3e4d28 --- /dev/null +++ b/ccc/src/model/ListCallMeasureSummaryReportsResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListCallMeasureSummaryReportsResult::ListCallMeasureSummaryReportsResult() : + ServiceResult() +{} + +ListCallMeasureSummaryReportsResult::ListCallMeasureSummaryReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCallMeasureSummaryReportsResult::~ListCallMeasureSummaryReportsResult() +{} + +void ListCallMeasureSummaryReportsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allCallMeasureSummaryReportList = value["CallMeasureSummaryReportList"]["CallMeasureSummaryReport"]; + for (auto value : allCallMeasureSummaryReportList) + { + CallMeasureSummaryReport callMeasureSummaryReportListObject; + if(!value["Year"].isNull()) + callMeasureSummaryReportListObject.year = value["Year"].asString(); + if(!value["Month"].isNull()) + callMeasureSummaryReportListObject.month = value["Month"].asString(); + if(!value["Day"].isNull()) + callMeasureSummaryReportListObject.day = value["Day"].asString(); + if(!value["InboundCount"].isNull()) + callMeasureSummaryReportListObject.inboundCount = std::stol(value["InboundCount"].asString()); + if(!value["OutboundCount"].isNull()) + callMeasureSummaryReportListObject.outboundCount = std::stol(value["OutboundCount"].asString()); + if(!value["OutboundDurationByMinute"].isNull()) + callMeasureSummaryReportListObject.outboundDurationByMinute = std::stol(value["OutboundDurationByMinute"].asString()); + if(!value["InboundDurationByMinute"].isNull()) + callMeasureSummaryReportListObject.inboundDurationByMinute = std::stol(value["InboundDurationByMinute"].asString()); + callMeasureSummaryReportList_.push_back(callMeasureSummaryReportListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector ListCallMeasureSummaryReportsResult::getCallMeasureSummaryReportList()const +{ + return callMeasureSummaryReportList_; +} + +std::string ListCallMeasureSummaryReportsResult::getMessage()const +{ + return message_; +} + +int ListCallMeasureSummaryReportsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListCallMeasureSummaryReportsResult::getCode()const +{ + return code_; +} + +bool ListCallMeasureSummaryReportsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListConfigRequest.cc b/ccc/src/model/ListConfigRequest.cc index aca25b17f..deada7772 100644 --- a/ccc/src/model/ListConfigRequest.cc +++ b/ccc/src/model/ListConfigRequest.cc @@ -33,7 +33,7 @@ std::string ListConfigRequest::getInstanceId()const void ListConfigRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector ListConfigRequest::getConfigItem()const @@ -45,7 +45,7 @@ void ListConfigRequest::setConfigItem(const std::vector& configItem { configItem_ = configItem; for(int i = 0; i!= configItem.size(); i++) - setParameter("ConfigItem."+ std::to_string(i), configItem.at(i)); + setCoreParameter("ConfigItem."+ std::to_string(i), configItem.at(i)); } std::string ListConfigRequest::getAccessKeyId()const @@ -56,6 +56,6 @@ std::string ListConfigRequest::getAccessKeyId()const void ListConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListConfigResult.cc b/ccc/src/model/ListConfigResult.cc index 5b0fb5c79..44651d82c 100644 --- a/ccc/src/model/ListConfigResult.cc +++ b/ccc/src/model/ListConfigResult.cc @@ -35,10 +35,13 @@ ListConfigResult::~ListConfigResult() void ListConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigItems = value["ConfigItems"]["ConfigItem"]; for (auto value : allConfigItems) diff --git a/ccc/src/model/ListContactFlowsRequest.cc b/ccc/src/model/ListContactFlowsRequest.cc index 6c67984a0..10ead3e61 100644 --- a/ccc/src/model/ListContactFlowsRequest.cc +++ b/ccc/src/model/ListContactFlowsRequest.cc @@ -33,7 +33,7 @@ std::string ListContactFlowsRequest::getInstanceId()const void ListContactFlowsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListContactFlowsRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListContactFlowsRequest::getAccessKeyId()const void ListContactFlowsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListContactFlowsResult.cc b/ccc/src/model/ListContactFlowsResult.cc index 1e215538f..a0e0c855d 100644 --- a/ccc/src/model/ListContactFlowsResult.cc +++ b/ccc/src/model/ListContactFlowsResult.cc @@ -35,10 +35,13 @@ ListContactFlowsResult::~ListContactFlowsResult() void ListContactFlowsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allContactFlows = value["ContactFlows"]["ContactFlow"]; for (auto value : allContactFlows) diff --git a/ccc/src/model/ListInstancesOfUserRequest.cc b/ccc/src/model/ListInstancesOfUserRequest.cc new file mode 100644 index 000000000..18089254e --- /dev/null +++ b/ccc/src/model/ListInstancesOfUserRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ListInstancesOfUserRequest; + +ListInstancesOfUserRequest::ListInstancesOfUserRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListInstancesOfUser") +{} + +ListInstancesOfUserRequest::~ListInstancesOfUserRequest() +{} + +std::string ListInstancesOfUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListInstancesOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListInstancesOfUserResult.cc b/ccc/src/model/ListInstancesOfUserResult.cc new file mode 100644 index 000000000..5075b7a6b --- /dev/null +++ b/ccc/src/model/ListInstancesOfUserResult.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListInstancesOfUserResult::ListInstancesOfUserResult() : + ServiceResult() +{} + +ListInstancesOfUserResult::ListInstancesOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstancesOfUserResult::~ListInstancesOfUserResult() +{} + +void ListInstancesOfUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allInstances = value["Instances"]["CallCenterInstance"]; + for (auto value : allInstances) + { + CallCenterInstance instancesObject; + if(!value["InstanceId"].isNull()) + instancesObject.instanceId = value["InstanceId"].asString(); + if(!value["InstanceName"].isNull()) + instancesObject.instanceName = value["InstanceName"].asString(); + if(!value["InstanceDescription"].isNull()) + instancesObject.instanceDescription = value["InstanceDescription"].asString(); + if(!value["DomainName"].isNull()) + instancesObject.domainName = value["DomainName"].asString(); + if(!value["ConsoleUrl"].isNull()) + instancesObject.consoleUrl = value["ConsoleUrl"].asString(); + if(!value["StorageBucket"].isNull()) + instancesObject.storageBucket = value["StorageBucket"].asString(); + if(!value["StorageMaxDays"].isNull()) + instancesObject.storageMaxDays = std::stoi(value["StorageMaxDays"].asString()); + if(!value["StorageMaxSize"].isNull()) + instancesObject.storageMaxSize = std::stoi(value["StorageMaxSize"].asString()); + if(!value["MaxOnlineAgents"].isNull()) + instancesObject.maxOnlineAgents = std::stoi(value["MaxOnlineAgents"].asString()); + if(!value["TenantId"].isNull()) + instancesObject.tenantId = value["TenantId"].asString(); + if(!value["DirectoryId"].isNull()) + instancesObject.directoryId = value["DirectoryId"].asString(); + if(!value["Status"].isNull()) + instancesObject.status = value["Status"].asString(); + if(!value["CreatedTime"].isNull()) + instancesObject.createdTime = std::stol(value["CreatedTime"].asString()); + if(!value["Owner"].isNull()) + instancesObject.owner = value["Owner"].asString(); + auto allAdmin = value["Admin"]["User"]; + for (auto value : allAdmin) + { + CallCenterInstance::User adminObject; + if(!value["UserId"].isNull()) + adminObject.userId = value["UserId"].asString(); + if(!value["RamId"].isNull()) + adminObject.ramId = value["RamId"].asString(); + if(!value["InstanceId"].isNull()) + adminObject.instanceId = value["InstanceId"].asString(); + auto detailNode = value["Detail"]; + if(!detailNode["LoginName"].isNull()) + adminObject.detail.loginName = detailNode["LoginName"].asString(); + if(!detailNode["DisplayName"].isNull()) + adminObject.detail.displayName = detailNode["DisplayName"].asString(); + if(!detailNode["Phone"].isNull()) + adminObject.detail.phone = detailNode["Phone"].asString(); + if(!detailNode["Email"].isNull()) + adminObject.detail.email = detailNode["Email"].asString(); + if(!detailNode["Department"].isNull()) + adminObject.detail.department = detailNode["Department"].asString(); + instancesObject.admin.push_back(adminObject); + } + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + CallCenterInstance::PhoneNumber phoneNumbersObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumbersObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumbersObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + phoneNumbersObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); + instancesObject.phoneNumbers.push_back(phoneNumbersObject); + } + instances_.push_back(instancesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector ListInstancesOfUserResult::getInstances()const +{ + return instances_; +} + +std::string ListInstancesOfUserResult::getMessage()const +{ + return message_; +} + +int ListInstancesOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListInstancesOfUserResult::getCode()const +{ + return code_; +} + +bool ListInstancesOfUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListIvrTrackingDetailRequest.cc b/ccc/src/model/ListIvrTrackingDetailRequest.cc new file mode 100644 index 000000000..11feb0046 --- /dev/null +++ b/ccc/src/model/ListIvrTrackingDetailRequest.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::CCC::Model::ListIvrTrackingDetailRequest; + +ListIvrTrackingDetailRequest::ListIvrTrackingDetailRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListIvrTrackingDetail") +{} + +ListIvrTrackingDetailRequest::~ListIvrTrackingDetailRequest() +{} + +std::string ListIvrTrackingDetailRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void ListIvrTrackingDetailRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setCoreParameter("CallingNumber", callingNumber); +} + +std::string ListIvrTrackingDetailRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListIvrTrackingDetailRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListIvrTrackingDetailRequest::getContactId()const +{ + return contactId_; +} + +void ListIvrTrackingDetailRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setCoreParameter("ContactId", contactId); +} + +std::string ListIvrTrackingDetailRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void ListIvrTrackingDetailRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setCoreParameter("CalledNumber", calledNumber); +} + +int ListIvrTrackingDetailRequest::getPageSize()const +{ + return pageSize_; +} + +void ListIvrTrackingDetailRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListIvrTrackingDetailRequest::getStartTime()const +{ + return startTime_; +} + +void ListIvrTrackingDetailRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +long ListIvrTrackingDetailRequest::getStopTime()const +{ + return stopTime_; +} + +void ListIvrTrackingDetailRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setCoreParameter("StopTime", std::to_string(stopTime)); +} + +int ListIvrTrackingDetailRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListIvrTrackingDetailRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListIvrTrackingDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListIvrTrackingDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListIvrTrackingDetailResult.cc b/ccc/src/model/ListIvrTrackingDetailResult.cc new file mode 100644 index 000000000..950de3766 --- /dev/null +++ b/ccc/src/model/ListIvrTrackingDetailResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListIvrTrackingDetailResult::ListIvrTrackingDetailResult() : + ServiceResult() +{} + +ListIvrTrackingDetailResult::ListIvrTrackingDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIvrTrackingDetailResult::~ListIvrTrackingDetailResult() +{} + +void ListIvrTrackingDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto ivrTrackingDetailsNode = value["IvrTrackingDetails"]; + if(!ivrTrackingDetailsNode["TotalCount"].isNull()) + ivrTrackingDetails_.totalCount = std::stoi(ivrTrackingDetailsNode["TotalCount"].asString()); + if(!ivrTrackingDetailsNode["PageNumber"].isNull()) + ivrTrackingDetails_.pageNumber = std::stoi(ivrTrackingDetailsNode["PageNumber"].asString()); + if(!ivrTrackingDetailsNode["PageSize"].isNull()) + ivrTrackingDetails_.pageSize = std::stoi(ivrTrackingDetailsNode["PageSize"].asString()); + auto allList = value["List"]["IvrTrackingDetail"]; + for (auto value : allList) + { + IvrTrackingDetails::IvrTrackingDetail ivrTrackingDetailObject; + if(!value["FlowName"].isNull()) + ivrTrackingDetailObject.flowName = value["FlowName"].asString(); + if(!value["NodeName"].isNull()) + ivrTrackingDetailObject.nodeName = value["NodeName"].asString(); + if(!value["NodeType"].isNull()) + ivrTrackingDetailObject.nodeType = value["NodeType"].asString(); + if(!value["ContactId"].isNull()) + ivrTrackingDetailObject.contactId = value["ContactId"].asString(); + if(!value["CallingNumber"].isNull()) + ivrTrackingDetailObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + ivrTrackingDetailObject.calledNumber = value["CalledNumber"].asString(); + if(!value["StartTime"].isNull()) + ivrTrackingDetailObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["StopTime"].isNull()) + ivrTrackingDetailObject.stopTime = std::stol(value["StopTime"].asString()); + if(!value["Status"].isNull()) + ivrTrackingDetailObject.status = value["Status"].asString(); + if(!value["InputData"].isNull()) + ivrTrackingDetailObject.inputData = value["InputData"].asString(); + if(!value["OutputData"].isNull()) + ivrTrackingDetailObject.outputData = value["OutputData"].asString(); + if(!value["Description"].isNull()) + ivrTrackingDetailObject.description = value["Description"].asString(); + if(!value["DeviceID"].isNull()) + ivrTrackingDetailObject.deviceID = value["DeviceID"].asString(); + if(!value["TenantId"].isNull()) + ivrTrackingDetailObject.tenantId = value["TenantId"].asString(); + ivrTrackingDetails_.list.push_back(ivrTrackingDetailObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListIvrTrackingDetailResult::getMessage()const +{ + return message_; +} + +ListIvrTrackingDetailResult::IvrTrackingDetails ListIvrTrackingDetailResult::getIvrTrackingDetails()const +{ + return ivrTrackingDetails_; +} + +int ListIvrTrackingDetailResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListIvrTrackingDetailResult::getCode()const +{ + return code_; +} + +bool ListIvrTrackingDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListJobGroupsRequest.cc b/ccc/src/model/ListJobGroupsRequest.cc index 11f195864..2017d73bd 100644 --- a/ccc/src/model/ListJobGroupsRequest.cc +++ b/ccc/src/model/ListJobGroupsRequest.cc @@ -33,7 +33,7 @@ std::string ListJobGroupsRequest::getInstanceId()const void ListJobGroupsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } int ListJobGroupsRequest::getPageSize()const @@ -44,7 +44,7 @@ int ListJobGroupsRequest::getPageSize()const void ListJobGroupsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListJobGroupsRequest::getEndTime()const @@ -55,7 +55,7 @@ long ListJobGroupsRequest::getEndTime()const void ListJobGroupsRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } long ListJobGroupsRequest::getStartTime()const @@ -66,7 +66,7 @@ long ListJobGroupsRequest::getStartTime()const void ListJobGroupsRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } int ListJobGroupsRequest::getPageNumber()const @@ -77,6 +77,6 @@ int ListJobGroupsRequest::getPageNumber()const void ListJobGroupsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/ccc/src/model/ListJobGroupsResult.cc b/ccc/src/model/ListJobGroupsResult.cc index 2936204d8..504768d18 100644 --- a/ccc/src/model/ListJobGroupsResult.cc +++ b/ccc/src/model/ListJobGroupsResult.cc @@ -35,10 +35,13 @@ ListJobGroupsResult::~ListJobGroupsResult() void ListJobGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobGroupsNode = value["JobGroups"]; if(!jobGroupsNode["TotalCount"].isNull()) diff --git a/ccc/src/model/ListJobStatusRequest.cc b/ccc/src/model/ListJobStatusRequest.cc index 79ae66258..322bfbf37 100644 --- a/ccc/src/model/ListJobStatusRequest.cc +++ b/ccc/src/model/ListJobStatusRequest.cc @@ -33,7 +33,7 @@ std::string ListJobStatusRequest::getContactName()const void ListJobStatusRequest::setContactName(const std::string& contactName) { contactName_ = contactName; - setParameter("ContactName", contactName); + setCoreParameter("ContactName", contactName); } std::string ListJobStatusRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ListJobStatusRequest::getInstanceId()const void ListJobStatusRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListJobStatusRequest::getTimeAlignment()const @@ -55,7 +55,7 @@ std::string ListJobStatusRequest::getTimeAlignment()const void ListJobStatusRequest::setTimeAlignment(const std::string& timeAlignment) { timeAlignment_ = timeAlignment; - setParameter("TimeAlignment", timeAlignment); + setCoreParameter("TimeAlignment", timeAlignment); } std::string ListJobStatusRequest::getGroupId()const @@ -66,7 +66,7 @@ std::string ListJobStatusRequest::getGroupId()const void ListJobStatusRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string ListJobStatusRequest::getPhoneNumber()const @@ -77,7 +77,7 @@ std::string ListJobStatusRequest::getPhoneNumber()const void ListJobStatusRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } int ListJobStatusRequest::getPageSize()const @@ -88,7 +88,7 @@ int ListJobStatusRequest::getPageSize()const void ListJobStatusRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListJobStatusRequest::getEndTime()const @@ -99,7 +99,7 @@ long ListJobStatusRequest::getEndTime()const void ListJobStatusRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } long ListJobStatusRequest::getStartTime()const @@ -110,7 +110,7 @@ long ListJobStatusRequest::getStartTime()const void ListJobStatusRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string ListJobStatusRequest::getScenarioId()const @@ -121,7 +121,7 @@ std::string ListJobStatusRequest::getScenarioId()const void ListJobStatusRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } int ListJobStatusRequest::getPageNumber()const @@ -132,6 +132,6 @@ int ListJobStatusRequest::getPageNumber()const void ListJobStatusRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/ccc/src/model/ListJobStatusResult.cc b/ccc/src/model/ListJobStatusResult.cc index 077891328..c0c59d4d5 100644 --- a/ccc/src/model/ListJobStatusResult.cc +++ b/ccc/src/model/ListJobStatusResult.cc @@ -35,10 +35,13 @@ ListJobStatusResult::~ListJobStatusResult() void ListJobStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobsNode = value["Jobs"]; if(!jobsNode["TotalCount"].isNull()) diff --git a/ccc/src/model/ListJobsByGroupRequest.cc b/ccc/src/model/ListJobsByGroupRequest.cc index e22a7ad98..6a5339136 100644 --- a/ccc/src/model/ListJobsByGroupRequest.cc +++ b/ccc/src/model/ListJobsByGroupRequest.cc @@ -33,7 +33,7 @@ std::string ListJobsByGroupRequest::getInstanceId()const void ListJobsByGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListJobsByGroupRequest::getJobFailureReason()const @@ -44,7 +44,7 @@ std::string ListJobsByGroupRequest::getJobFailureReason()const void ListJobsByGroupRequest::setJobFailureReason(const std::string& jobFailureReason) { jobFailureReason_ = jobFailureReason; - setParameter("JobFailureReason", jobFailureReason); + setCoreParameter("JobFailureReason", jobFailureReason); } std::string ListJobsByGroupRequest::getJobStatus()const @@ -55,7 +55,7 @@ std::string ListJobsByGroupRequest::getJobStatus()const void ListJobsByGroupRequest::setJobStatus(const std::string& jobStatus) { jobStatus_ = jobStatus; - setParameter("JobStatus", jobStatus); + setCoreParameter("JobStatus", jobStatus); } std::string ListJobsByGroupRequest::getJobGroupId()const @@ -66,7 +66,7 @@ std::string ListJobsByGroupRequest::getJobGroupId()const void ListJobsByGroupRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } int ListJobsByGroupRequest::getPageSize()const @@ -77,7 +77,7 @@ int ListJobsByGroupRequest::getPageSize()const void ListJobsByGroupRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListJobsByGroupRequest::getPageNumber()const @@ -88,6 +88,6 @@ int ListJobsByGroupRequest::getPageNumber()const void ListJobsByGroupRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/ccc/src/model/ListJobsByGroupResult.cc b/ccc/src/model/ListJobsByGroupResult.cc index db6fc2a0e..67fba6432 100644 --- a/ccc/src/model/ListJobsByGroupResult.cc +++ b/ccc/src/model/ListJobsByGroupResult.cc @@ -35,10 +35,13 @@ ListJobsByGroupResult::~ListJobsByGroupResult() void ListJobsByGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobsNode = value["Jobs"]; if(!jobsNode["TotalCount"].isNull()) diff --git a/ccc/src/model/ListMediasRequest.cc b/ccc/src/model/ListMediasRequest.cc new file mode 100644 index 000000000..2a86be826 --- /dev/null +++ b/ccc/src/model/ListMediasRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListMediasRequest; + +ListMediasRequest::ListMediasRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListMedias") +{} + +ListMediasRequest::~ListMediasRequest() +{} + +std::string ListMediasRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListMediasRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int ListMediasRequest::getPageSize()const +{ + return pageSize_; +} + +void ListMediasRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListMediasRequest::getNamePrefix()const +{ + return namePrefix_; +} + +void ListMediasRequest::setNamePrefix(const std::string& namePrefix) +{ + namePrefix_ = namePrefix; + setCoreParameter("NamePrefix", namePrefix); +} + +int ListMediasRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListMediasRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListMediasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListMediasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListMediasResult.cc b/ccc/src/model/ListMediasResult.cc new file mode 100644 index 000000000..cb2c5b9da --- /dev/null +++ b/ccc/src/model/ListMediasResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListMediasResult::ListMediasResult() : + ServiceResult() +{} + +ListMediasResult::ListMediasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMediasResult::~ListMediasResult() +{} + +void ListMediasResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto mediasNode = value["Medias"]; + if(!mediasNode["TotalCount"].isNull()) + medias_.totalCount = std::stoi(mediasNode["TotalCount"].asString()); + if(!mediasNode["PageNumber"].isNull()) + medias_.pageNumber = std::stoi(mediasNode["PageNumber"].asString()); + if(!mediasNode["PageSize"].isNull()) + medias_.pageSize = std::stoi(mediasNode["PageSize"].asString()); + auto allList = value["List"]["Media"]; + for (auto value : allList) + { + Medias::Media mediaObject; + if(!value["Instance"].isNull()) + mediaObject.instance = value["Instance"].asString(); + if(!value["Name"].isNull()) + mediaObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + mediaObject.description = value["Description"].asString(); + if(!value["Type"].isNull()) + mediaObject.type = value["Type"].asString(); + if(!value["Content"].isNull()) + mediaObject.content = value["Content"].asString(); + if(!value["FilePath"].isNull()) + mediaObject.filePath = value["FilePath"].asString(); + if(!value["FileName"].isNull()) + mediaObject.fileName = value["FileName"].asString(); + if(!value["OssFileName"].isNull()) + mediaObject.ossFileName = value["OssFileName"].asString(); + if(!value["Status"].isNull()) + mediaObject.status = value["Status"].asString(); + medias_.list.push_back(mediaObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListMediasResult::getMessage()const +{ + return message_; +} + +int ListMediasResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListMediasResult::Medias ListMediasResult::getMedias()const +{ + return medias_; +} + +std::string ListMediasResult::getCode()const +{ + return code_; +} + +bool ListMediasResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc b/ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc new file mode 100644 index 000000000..72993d767 --- /dev/null +++ b/ccc/src/model/ListOutboundPhoneNumberOfUserRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListOutboundPhoneNumberOfUserRequest; + +ListOutboundPhoneNumberOfUserRequest::ListOutboundPhoneNumberOfUserRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListOutboundPhoneNumberOfUser") +{} + +ListOutboundPhoneNumberOfUserRequest::~ListOutboundPhoneNumberOfUserRequest() +{} + +std::string ListOutboundPhoneNumberOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListOutboundPhoneNumberOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListOutboundPhoneNumberOfUserRequest::getUserId()const +{ + return userId_; +} + +void ListOutboundPhoneNumberOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string ListOutboundPhoneNumberOfUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListOutboundPhoneNumberOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListOutboundPhoneNumberOfUserResult.cc b/ccc/src/model/ListOutboundPhoneNumberOfUserResult.cc new file mode 100644 index 000000000..bfb13a5ab --- /dev/null +++ b/ccc/src/model/ListOutboundPhoneNumberOfUserResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListOutboundPhoneNumberOfUserResult::ListOutboundPhoneNumberOfUserResult() : + ServiceResult() +{} + +ListOutboundPhoneNumberOfUserResult::ListOutboundPhoneNumberOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOutboundPhoneNumberOfUserResult::~ListOutboundPhoneNumberOfUserResult() +{} + +void ListOutboundPhoneNumberOfUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"]; + for (auto value : allOutboundPhoneNumbers) + { + PhoneNumber outboundPhoneNumbersObject; + if(!value["PhoneNumberId"].isNull()) + outboundPhoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + outboundPhoneNumbersObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + outboundPhoneNumbersObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + outboundPhoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["TestOnly"].isNull()) + outboundPhoneNumbersObject.testOnly = value["TestOnly"].asString() == "true"; + if(!value["RemainingTime"].isNull()) + outboundPhoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["AllowOutbound"].isNull()) + outboundPhoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true"; + if(!value["Usage"].isNull()) + outboundPhoneNumbersObject.usage = value["Usage"].asString(); + if(!value["Trunks"].isNull()) + outboundPhoneNumbersObject.trunks = std::stoi(value["Trunks"].asString()); + if(!value["City"].isNull()) + outboundPhoneNumbersObject.city = value["City"].asString(); + if(!value["Province"].isNull()) + outboundPhoneNumbersObject.province = value["Province"].asString(); + if(!value["PrivateFlag"].isNull()) + outboundPhoneNumbersObject.privateFlag = value["PrivateFlag"].asString() == "true"; + if(!value["SipTelX"].isNull()) + outboundPhoneNumbersObject.sipTelX = value["SipTelX"].asString(); + auto privacyNumberNode = value["PrivacyNumber"]; + if(!privacyNumberNode["PoolId"].isNull()) + outboundPhoneNumbersObject.privacyNumber.poolId = privacyNumberNode["PoolId"].asString(); + if(!privacyNumberNode["Type"].isNull()) + outboundPhoneNumbersObject.privacyNumber.type = privacyNumberNode["Type"].asString(); + if(!privacyNumberNode["TelX"].isNull()) + outboundPhoneNumbersObject.privacyNumber.telX = privacyNumberNode["TelX"].asString(); + if(!privacyNumberNode["PoolName"].isNull()) + outboundPhoneNumbersObject.privacyNumber.poolName = privacyNumberNode["PoolName"].asString(); + if(!privacyNumberNode["PhoneNumber"].isNull()) + outboundPhoneNumbersObject.privacyNumber.phoneNumber = privacyNumberNode["PhoneNumber"].asString(); + if(!privacyNumberNode["Extra"].isNull()) + outboundPhoneNumbersObject.privacyNumber.extra = privacyNumberNode["Extra"].asString(); + if(!privacyNumberNode["BizId"].isNull()) + outboundPhoneNumbersObject.privacyNumber.bizId = privacyNumberNode["BizId"].asString(); + if(!privacyNumberNode["SubId"].isNull()) + outboundPhoneNumbersObject.privacyNumber.subId = privacyNumberNode["SubId"].asString(); + if(!privacyNumberNode["RegionNameCity"].isNull()) + outboundPhoneNumbersObject.privacyNumber.regionNameCity = privacyNumberNode["RegionNameCity"].asString(); + outboundPhoneNumbers_.push_back(outboundPhoneNumbersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListOutboundPhoneNumberOfUserResult::getMessage()const +{ + return message_; +} + +int ListOutboundPhoneNumberOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListOutboundPhoneNumberOfUserResult::getOutboundPhoneNumbers()const +{ + return outboundPhoneNumbers_; +} + +std::string ListOutboundPhoneNumberOfUserResult::getCode()const +{ + return code_; +} + +bool ListOutboundPhoneNumberOfUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListPhoneNumbersRequest.cc b/ccc/src/model/ListPhoneNumbersRequest.cc index d58b9ee72..40ec5f7b8 100644 --- a/ccc/src/model/ListPhoneNumbersRequest.cc +++ b/ccc/src/model/ListPhoneNumbersRequest.cc @@ -33,7 +33,7 @@ bool ListPhoneNumbersRequest::getOutboundOnly()const void ListPhoneNumbersRequest::setOutboundOnly(bool outboundOnly) { outboundOnly_ = outboundOnly; - setParameter("OutboundOnly", std::to_string(outboundOnly)); + setCoreParameter("OutboundOnly", outboundOnly ? "true" : "false"); } std::string ListPhoneNumbersRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ListPhoneNumbersRequest::getInstanceId()const void ListPhoneNumbersRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListPhoneNumbersRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListPhoneNumbersRequest::getAccessKeyId()const void ListPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListPhoneNumbersResult.cc b/ccc/src/model/ListPhoneNumbersResult.cc index 6f300246b..7aa7c8df4 100644 --- a/ccc/src/model/ListPhoneNumbersResult.cc +++ b/ccc/src/model/ListPhoneNumbersResult.cc @@ -35,10 +35,13 @@ ListPhoneNumbersResult::~ListPhoneNumbersResult() void ListPhoneNumbersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; for (auto value : allPhoneNumbers) @@ -66,6 +69,22 @@ void ListPhoneNumbersResult::parse(const std::string &payload) phoneNumbersObject.province = value["Province"].asString(); if(!value["City"].isNull()) phoneNumbersObject.city = value["City"].asString(); + if(!value["Assignee"].isNull()) + phoneNumbersObject.assignee = value["Assignee"].asString(); + if(!value["NumberCommodityStatus"].isNull()) + phoneNumbersObject.numberCommodityStatus = std::stoi(value["NumberCommodityStatus"].asString()); + if(!value["SipTelX"].isNull()) + phoneNumbersObject.sipTelX = value["SipTelX"].asString(); + auto allSkillGroups = value["SkillGroups"]["SkillGroup"]; + for (auto value : allSkillGroups) + { + PhoneNumber::SkillGroup skillGroupsObject; + if(!value["SkillGroupId"].isNull()) + skillGroupsObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + skillGroupsObject.skillGroupName = value["SkillGroupName"].asString(); + phoneNumbersObject.skillGroups.push_back(skillGroupsObject); + } auto contactFlowNode = value["ContactFlow"]; if(!contactFlowNode["ContactFlowId"].isNull()) phoneNumbersObject.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString(); @@ -77,6 +96,25 @@ void ListPhoneNumbersResult::parse(const std::string &payload) phoneNumbersObject.contactFlow.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); if(!contactFlowNode["Type"].isNull()) phoneNumbersObject.contactFlow.type = contactFlowNode["Type"].asString(); + auto privacyNumberNode = value["PrivacyNumber"]; + if(!privacyNumberNode["PoolId"].isNull()) + phoneNumbersObject.privacyNumber.poolId = privacyNumberNode["PoolId"].asString(); + if(!privacyNumberNode["Type"].isNull()) + phoneNumbersObject.privacyNumber.type = privacyNumberNode["Type"].asString(); + if(!privacyNumberNode["TelX"].isNull()) + phoneNumbersObject.privacyNumber.telX = privacyNumberNode["TelX"].asString(); + if(!privacyNumberNode["PoolName"].isNull()) + phoneNumbersObject.privacyNumber.poolName = privacyNumberNode["PoolName"].asString(); + if(!privacyNumberNode["PhoneNumber"].isNull()) + phoneNumbersObject.privacyNumber.phoneNumber = privacyNumberNode["PhoneNumber"].asString(); + if(!privacyNumberNode["Extra"].isNull()) + phoneNumbersObject.privacyNumber.extra = privacyNumberNode["Extra"].asString(); + if(!privacyNumberNode["BizId"].isNull()) + phoneNumbersObject.privacyNumber.bizId = privacyNumberNode["BizId"].asString(); + if(!privacyNumberNode["SubId"].isNull()) + phoneNumbersObject.privacyNumber.subId = privacyNumberNode["SubId"].asString(); + if(!privacyNumberNode["RegionNameCity"].isNull()) + phoneNumbersObject.privacyNumber.regionNameCity = privacyNumberNode["RegionNameCity"].asString(); phoneNumbers_.push_back(phoneNumbersObject); } if(!value["Success"].isNull()) diff --git a/ccc/src/model/ListPredictiveJobGroupsRequest.cc b/ccc/src/model/ListPredictiveJobGroupsRequest.cc new file mode 100644 index 000000000..6267c4b9b --- /dev/null +++ b/ccc/src/model/ListPredictiveJobGroupsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ListPredictiveJobGroupsRequest; + +ListPredictiveJobGroupsRequest::ListPredictiveJobGroupsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListPredictiveJobGroups") +{} + +ListPredictiveJobGroupsRequest::~ListPredictiveJobGroupsRequest() +{} + +std::string ListPredictiveJobGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListPredictiveJobGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListPredictiveJobGroupsRequest::getCriteria()const +{ + return criteria_; +} + +void ListPredictiveJobGroupsRequest::setCriteria(const std::string& criteria) +{ + criteria_ = criteria; + setCoreParameter("Criteria", criteria); +} + +std::string ListPredictiveJobGroupsRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListPredictiveJobGroupsRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +std::string ListPredictiveJobGroupsRequest::getName()const +{ + return name_; +} + +void ListPredictiveJobGroupsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int ListPredictiveJobGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPredictiveJobGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListPredictiveJobGroupsRequest::getEndTime()const +{ + return endTime_; +} + +void ListPredictiveJobGroupsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +long ListPredictiveJobGroupsRequest::getStartTime()const +{ + return startTime_; +} + +void ListPredictiveJobGroupsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +int ListPredictiveJobGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPredictiveJobGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ccc/src/model/ListPredictiveJobGroupsResult.cc b/ccc/src/model/ListPredictiveJobGroupsResult.cc new file mode 100644 index 000000000..b8fd60b58 --- /dev/null +++ b/ccc/src/model/ListPredictiveJobGroupsResult.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListPredictiveJobGroupsResult::ListPredictiveJobGroupsResult() : + ServiceResult() +{} + +ListPredictiveJobGroupsResult::ListPredictiveJobGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPredictiveJobGroupsResult::~ListPredictiveJobGroupsResult() +{} + +void ListPredictiveJobGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto jobGroupsNode = value["JobGroups"]; + if(!jobGroupsNode["TotalCount"].isNull()) + jobGroups_.totalCount = std::stoi(jobGroupsNode["TotalCount"].asString()); + if(!jobGroupsNode["PageNumber"].isNull()) + jobGroups_.pageNumber = std::stoi(jobGroupsNode["PageNumber"].asString()); + if(!jobGroupsNode["PageSize"].isNull()) + jobGroups_.pageSize = std::stoi(jobGroupsNode["PageSize"].asString()); + auto allList = value["List"]["JobGroup"]; + for (auto value : allList) + { + JobGroups::JobGroup jobGroupObject; + if(!value["JobGroupId"].isNull()) + jobGroupObject.jobGroupId = value["JobGroupId"].asString(); + if(!value["InstanceId"].isNull()) + jobGroupObject.instanceId = value["InstanceId"].asString(); + if(!value["SkillGroupId"].isNull()) + jobGroupObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + jobGroupObject.skillGroupName = value["SkillGroupName"].asString(); + if(!value["TaskType"].isNull()) + jobGroupObject.taskType = value["TaskType"].asString(); + if(!value["OccupancyRate"].isNull()) + jobGroupObject.occupancyRate = value["OccupancyRate"].asString(); + if(!value["StartTime"].isNull()) + jobGroupObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + jobGroupObject.endTime = value["EndTime"].asString(); + if(!value["Name"].isNull()) + jobGroupObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + jobGroupObject.description = value["Description"].asString(); + if(!value["CreationTime"].isNull()) + jobGroupObject.creationTime = std::stol(value["CreationTime"].asString()); + auto strategyNode = value["Strategy"]; + if(!strategyNode["StrategyId"].isNull()) + jobGroupObject.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["StartTime"].isNull()) + jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + jobGroupObject.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["MinAttemptInterval"].isNull()) + jobGroupObject.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + auto allWorkingTime = value["WorkingTime"]["TimeFrame"]; + for (auto value : allWorkingTime) + { + JobGroups::JobGroup::Strategy::TimeFrame timeFrameObject; + if(!value["BeginTime"].isNull()) + timeFrameObject.beginTime = value["BeginTime"].asString(); + if(!value["EndTime"].isNull()) + timeFrameObject.endTime = value["EndTime"].asString(); + jobGroupObject.strategy.workingTime.push_back(timeFrameObject); + } + auto progressNode = value["Progress"]; + if(!progressNode["TotalJobs"].isNull()) + jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); + if(!progressNode["Status"].isNull()) + jobGroupObject.progress.status = progressNode["Status"].asString(); + if(!progressNode["TotalNotAnswered"].isNull()) + jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString()); + if(!progressNode["TotalCompleted"].isNull()) + jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString()); + if(!progressNode["StartTime"].isNull()) + jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString()); + if(!progressNode["Duration"].isNull()) + jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString()); + auto allCategories = value["Categories"]["KeyValuePair"]; + for (auto value : allCategories) + { + JobGroups::JobGroup::Progress::KeyValuePair keyValuePairObject; + if(!value["Key"].isNull()) + keyValuePairObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + keyValuePairObject.value = value["Value"].asString(); + jobGroupObject.progress.categories.push_back(keyValuePairObject); + } + jobGroups_.list.push_back(jobGroupObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListPredictiveJobGroupsResult::getMessage()const +{ + return message_; +} + +int ListPredictiveJobGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListPredictiveJobGroupsResult::getCode()const +{ + return code_; +} + +ListPredictiveJobGroupsResult::JobGroups ListPredictiveJobGroupsResult::getJobGroups()const +{ + return jobGroups_; +} + +bool ListPredictiveJobGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListPredictiveJobStatusRequest.cc b/ccc/src/model/ListPredictiveJobStatusRequest.cc index 7d5e77034..a0a43c69e 100644 --- a/ccc/src/model/ListPredictiveJobStatusRequest.cc +++ b/ccc/src/model/ListPredictiveJobStatusRequest.cc @@ -33,7 +33,7 @@ std::string ListPredictiveJobStatusRequest::getContactName()const void ListPredictiveJobStatusRequest::setContactName(const std::string& contactName) { contactName_ = contactName; - setParameter("ContactName", contactName); + setCoreParameter("ContactName", contactName); } std::string ListPredictiveJobStatusRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ListPredictiveJobStatusRequest::getInstanceId()const void ListPredictiveJobStatusRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListPredictiveJobStatusRequest::getTimeAlignment()const @@ -55,7 +55,7 @@ std::string ListPredictiveJobStatusRequest::getTimeAlignment()const void ListPredictiveJobStatusRequest::setTimeAlignment(const std::string& timeAlignment) { timeAlignment_ = timeAlignment; - setParameter("TimeAlignment", timeAlignment); + setCoreParameter("TimeAlignment", timeAlignment); } std::string ListPredictiveJobStatusRequest::getJobGroupId()const @@ -66,7 +66,7 @@ std::string ListPredictiveJobStatusRequest::getJobGroupId()const void ListPredictiveJobStatusRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } std::string ListPredictiveJobStatusRequest::getPhoneNumber()const @@ -77,7 +77,7 @@ std::string ListPredictiveJobStatusRequest::getPhoneNumber()const void ListPredictiveJobStatusRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } int ListPredictiveJobStatusRequest::getPageSize()const @@ -88,7 +88,7 @@ int ListPredictiveJobStatusRequest::getPageSize()const void ListPredictiveJobStatusRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListPredictiveJobStatusRequest::getEndTime()const @@ -99,7 +99,7 @@ long ListPredictiveJobStatusRequest::getEndTime()const void ListPredictiveJobStatusRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } long ListPredictiveJobStatusRequest::getStartTime()const @@ -110,7 +110,7 @@ long ListPredictiveJobStatusRequest::getStartTime()const void ListPredictiveJobStatusRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } int ListPredictiveJobStatusRequest::getPageNumber()const @@ -121,6 +121,6 @@ int ListPredictiveJobStatusRequest::getPageNumber()const void ListPredictiveJobStatusRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/ccc/src/model/ListPredictiveJobStatusResult.cc b/ccc/src/model/ListPredictiveJobStatusResult.cc index 561abc656..3e62cf0dd 100644 --- a/ccc/src/model/ListPredictiveJobStatusResult.cc +++ b/ccc/src/model/ListPredictiveJobStatusResult.cc @@ -35,10 +35,13 @@ ListPredictiveJobStatusResult::~ListPredictiveJobStatusResult() void ListPredictiveJobStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto jobsNode = value["Jobs"]; if(!jobsNode["TotalCount"].isNull()) @@ -53,14 +56,16 @@ void ListPredictiveJobStatusResult::parse(const std::string &payload) Jobs::Job jobObject; if(!value["JobId"].isNull()) jobObject.jobId = value["JobId"].asString(); - if(!value["GroupId"].isNull()) - jobObject.groupId = value["GroupId"].asString(); + if(!value["JobGroupId"].isNull()) + jobObject.jobGroupId = value["JobGroupId"].asString(); if(!value["ScenarioId"].isNull()) jobObject.scenarioId = value["ScenarioId"].asString(); if(!value["StrategyId"].isNull()) jobObject.strategyId = value["StrategyId"].asString(); if(!value["Priority"].isNull()) jobObject.priority = std::stoi(value["Priority"].asString()); + if(!value["SystemPriority"].isNull()) + jobObject.systemPriority = std::stoi(value["SystemPriority"].asString()); if(!value["Status"].isNull()) jobObject.status = value["Status"].asString(); if(!value["ReferenceId"].isNull()) @@ -89,85 +94,6 @@ void ListPredictiveJobStatusResult::parse(const std::string &payload) contactsObject.jobId = value["JobId"].asString(); jobObject.contacts.push_back(contactsObject); } - auto allExtras = value["Extras"]["KeyValuePair"]; - for (auto value : allExtras) - { - Jobs::Job::KeyValuePair extrasObject; - if(!value["Key"].isNull()) - extrasObject.key = value["Key"].asString(); - if(!value["Value"].isNull()) - extrasObject.value = value["Value"].asString(); - jobObject.extras.push_back(extrasObject); - } - auto allTasks = value["Tasks"]["Task"]; - for (auto value : allTasks) - { - Jobs::Job::Task tasksObject; - if(!value["TaskId"].isNull()) - tasksObject.taskId = value["TaskId"].asString(); - if(!value["JobId"].isNull()) - tasksObject.jobId = value["JobId"].asString(); - if(!value["ScenarioId"].isNull()) - tasksObject.scenarioId = value["ScenarioId"].asString(); - if(!value["ChatbotId"].isNull()) - tasksObject.chatbotId = value["ChatbotId"].asString(); - if(!value["PlanedTime"].isNull()) - tasksObject.planedTime = std::stol(value["PlanedTime"].asString()); - if(!value["ActualTime"].isNull()) - tasksObject.actualTime = std::stol(value["ActualTime"].asString()); - if(!value["CallingNumber"].isNull()) - tasksObject.callingNumber = value["CallingNumber"].asString(); - if(!value["CalledNumber"].isNull()) - tasksObject.calledNumber = value["CalledNumber"].asString(); - if(!value["CallId"].isNull()) - tasksObject.callId = value["CallId"].asString(); - if(!value["Status"].isNull()) - tasksObject.status = value["Status"].asString(); - if(!value["Brief"].isNull()) - tasksObject.brief = value["Brief"].asString(); - if(!value["Duration"].isNull()) - tasksObject.duration = std::stoi(value["Duration"].asString()); - auto contact1Node = value["Contact"]; - if(!contact1Node["ContactId"].isNull()) - tasksObject.contact1.contactId = contact1Node["ContactId"].asString(); - if(!contact1Node["ContactName"].isNull()) - tasksObject.contact1.contactName = contact1Node["ContactName"].asString(); - if(!contact1Node["Honorific"].isNull()) - tasksObject.contact1.honorific = contact1Node["Honorific"].asString(); - if(!contact1Node["Role"].isNull()) - tasksObject.contact1.role = contact1Node["Role"].asString(); - if(!contact1Node["PhoneNumber"].isNull()) - tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString(); - if(!contact1Node["State"].isNull()) - tasksObject.contact1.state = contact1Node["State"].asString(); - if(!contact1Node["ReferenceId"].isNull()) - tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString(); - if(!contact1Node["JobId"].isNull()) - tasksObject.contact1.jobId = contact1Node["JobId"].asString(); - jobObject.tasks.push_back(tasksObject); - } - auto allSummary = value["Summary"]["SummaryItem"]; - for (auto value : allSummary) - { - Jobs::Job::SummaryItem summaryObject; - if(!value["SummaryId"].isNull()) - summaryObject.summaryId = value["SummaryId"].asString(); - if(!value["GroupId"].isNull()) - summaryObject.groupId = value["GroupId"].asString(); - if(!value["JobId"].isNull()) - summaryObject.jobId = value["JobId"].asString(); - if(!value["TaskId"].isNull()) - summaryObject.taskId = value["TaskId"].asString(); - if(!value["ConversationDetailId"].isNull()) - summaryObject.conversationDetailId = value["ConversationDetailId"].asString(); - if(!value["Category"].isNull()) - summaryObject.category = value["Category"].asString(); - if(!value["SummaryName"].isNull()) - summaryObject.summaryName = value["SummaryName"].asString(); - if(!value["Content"].isNull()) - summaryObject.content = value["Content"].asString(); - jobObject.summary.push_back(summaryObject); - } auto allCallingNumbers = value["CallingNumbers"]["String"]; for (auto value : allCallingNumbers) jobObject.callingNumbers.push_back(value.asString()); diff --git a/ccc/src/model/ListPrivacyNumberCallDetailsRequest.cc b/ccc/src/model/ListPrivacyNumberCallDetailsRequest.cc new file mode 100644 index 000000000..36b6e370a --- /dev/null +++ b/ccc/src/model/ListPrivacyNumberCallDetailsRequest.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::CCC::Model::ListPrivacyNumberCallDetailsRequest; + +ListPrivacyNumberCallDetailsRequest::ListPrivacyNumberCallDetailsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListPrivacyNumberCallDetails") +{} + +ListPrivacyNumberCallDetailsRequest::~ListPrivacyNumberCallDetailsRequest() +{} + +std::string ListPrivacyNumberCallDetailsRequest::getAgentId()const +{ + return agentId_; +} + +void ListPrivacyNumberCallDetailsRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setCoreParameter("AgentId", agentId); +} + +std::string ListPrivacyNumberCallDetailsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListPrivacyNumberCallDetailsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListPrivacyNumberCallDetailsRequest::getContactId()const +{ + return contactId_; +} + +void ListPrivacyNumberCallDetailsRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setCoreParameter("ContactId", contactId); +} + +std::string ListPrivacyNumberCallDetailsRequest::getAgentName()const +{ + return agentName_; +} + +void ListPrivacyNumberCallDetailsRequest::setAgentName(const std::string& agentName) +{ + agentName_ = agentName; + setCoreParameter("AgentName", agentName); +} + +int ListPrivacyNumberCallDetailsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPrivacyNumberCallDetailsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListPrivacyNumberCallDetailsRequest::getEndTime()const +{ + return endTime_; +} + +void ListPrivacyNumberCallDetailsRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +long ListPrivacyNumberCallDetailsRequest::getStartTime()const +{ + return startTime_; +} + +void ListPrivacyNumberCallDetailsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +int ListPrivacyNumberCallDetailsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPrivacyNumberCallDetailsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListPrivacyNumberCallDetailsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListPrivacyNumberCallDetailsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListPrivacyNumberCallDetailsResult.cc b/ccc/src/model/ListPrivacyNumberCallDetailsResult.cc new file mode 100644 index 000000000..af796f13a --- /dev/null +++ b/ccc/src/model/ListPrivacyNumberCallDetailsResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListPrivacyNumberCallDetailsResult::ListPrivacyNumberCallDetailsResult() : + ServiceResult() +{} + +ListPrivacyNumberCallDetailsResult::ListPrivacyNumberCallDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPrivacyNumberCallDetailsResult::~ListPrivacyNumberCallDetailsResult() +{} + +void ListPrivacyNumberCallDetailsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto privacyNumberCallDetailsNode = value["PrivacyNumberCallDetails"]; + if(!privacyNumberCallDetailsNode["TotalCount"].isNull()) + privacyNumberCallDetails_.totalCount = std::stoi(privacyNumberCallDetailsNode["TotalCount"].asString()); + if(!privacyNumberCallDetailsNode["PageNumber"].isNull()) + privacyNumberCallDetails_.pageNumber = std::stoi(privacyNumberCallDetailsNode["PageNumber"].asString()); + if(!privacyNumberCallDetailsNode["PageSize"].isNull()) + privacyNumberCallDetails_.pageSize = std::stoi(privacyNumberCallDetailsNode["PageSize"].asString()); + auto allList = value["List"]["PrivacyNumberCallDetail"]; + for (auto value : allList) + { + PrivacyNumberCallDetails::PrivacyNumberCallDetail privacyNumberCallDetailObject; + if(!value["AgentId"].isNull()) + privacyNumberCallDetailObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + privacyNumberCallDetailObject.agentName = value["AgentName"].asString(); + if(!value["ContactId"].isNull()) + privacyNumberCallDetailObject.contactId = value["ContactId"].asString(); + if(!value["CallingNumber"].isNull()) + privacyNumberCallDetailObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + privacyNumberCallDetailObject.calledNumber = value["CalledNumber"].asString(); + if(!value["PrivacyNumber"].isNull()) + privacyNumberCallDetailObject.privacyNumber = value["PrivacyNumber"].asString(); + if(!value["ContactType"].isNull()) + privacyNumberCallDetailObject.contactType = value["ContactType"].asString(); + if(!value["Result"].isNull()) + privacyNumberCallDetailObject.result = value["Result"].asString(); + if(!value["Description"].isNull()) + privacyNumberCallDetailObject.description = value["Description"].asString(); + if(!value["CallTime"].isNull()) + privacyNumberCallDetailObject.callTime = std::stol(value["CallTime"].asString()); + if(!value["Status"].isNull()) + privacyNumberCallDetailObject.status = value["Status"].asString(); + privacyNumberCallDetails_.list.push_back(privacyNumberCallDetailObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ListPrivacyNumberCallDetailsResult::PrivacyNumberCallDetails ListPrivacyNumberCallDetailsResult::getPrivacyNumberCallDetails()const +{ + return privacyNumberCallDetails_; +} + +std::string ListPrivacyNumberCallDetailsResult::getMessage()const +{ + return message_; +} + +int ListPrivacyNumberCallDetailsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListPrivacyNumberCallDetailsResult::getCode()const +{ + return code_; +} + +bool ListPrivacyNumberCallDetailsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListPrivilegesOfUserRequest.cc b/ccc/src/model/ListPrivilegesOfUserRequest.cc index 9e3fc99de..8561ba942 100644 --- a/ccc/src/model/ListPrivilegesOfUserRequest.cc +++ b/ccc/src/model/ListPrivilegesOfUserRequest.cc @@ -33,7 +33,7 @@ std::string ListPrivilegesOfUserRequest::getInstanceId()const void ListPrivilegesOfUserRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListPrivilegesOfUserRequest::getUserId()const @@ -44,7 +44,7 @@ std::string ListPrivilegesOfUserRequest::getUserId()const void ListPrivilegesOfUserRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string ListPrivilegesOfUserRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListPrivilegesOfUserRequest::getAccessKeyId()const void ListPrivilegesOfUserRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListPrivilegesOfUserResult.cc b/ccc/src/model/ListPrivilegesOfUserResult.cc index d036af020..f2a5b2b3d 100644 --- a/ccc/src/model/ListPrivilegesOfUserResult.cc +++ b/ccc/src/model/ListPrivilegesOfUserResult.cc @@ -35,10 +35,13 @@ ListPrivilegesOfUserResult::~ListPrivilegesOfUserResult() void ListPrivilegesOfUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPrivileges = value["Privileges"]["Privilege"]; for (auto value : allPrivileges) diff --git a/ccc/src/model/ListRealTimeAgentRequest.cc b/ccc/src/model/ListRealTimeAgentRequest.cc index aaa941acf..f487539ac 100644 --- a/ccc/src/model/ListRealTimeAgentRequest.cc +++ b/ccc/src/model/ListRealTimeAgentRequest.cc @@ -33,7 +33,7 @@ std::string ListRealTimeAgentRequest::getInstanceId()const void ListRealTimeAgentRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListRealTimeAgentRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListRealTimeAgentRequest::getAccessKeyId()const void ListRealTimeAgentRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListRealTimeAgentResult.cc b/ccc/src/model/ListRealTimeAgentResult.cc index e8e09c88c..799b5f741 100644 --- a/ccc/src/model/ListRealTimeAgentResult.cc +++ b/ccc/src/model/ListRealTimeAgentResult.cc @@ -35,10 +35,13 @@ ListRealTimeAgentResult::~ListRealTimeAgentResult() void ListRealTimeAgentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["User"]; for (auto value : allData) diff --git a/ccc/src/model/ListRecentCallRecordsRequest.cc b/ccc/src/model/ListRecentCallRecordsRequest.cc new file mode 100644 index 000000000..eef298b5e --- /dev/null +++ b/ccc/src/model/ListRecentCallRecordsRequest.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 + +using AlibabaCloud::CCC::Model::ListRecentCallRecordsRequest; + +ListRecentCallRecordsRequest::ListRecentCallRecordsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListRecentCallRecords") +{} + +ListRecentCallRecordsRequest::~ListRecentCallRecordsRequest() +{} + +std::string ListRecentCallRecordsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRecentCallRecordsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListRecentCallRecordsRequest::getCriteria()const +{ + return criteria_; +} + +void ListRecentCallRecordsRequest::setCriteria(const std::string& criteria) +{ + criteria_ = criteria; + setCoreParameter("Criteria", criteria); +} + +int ListRecentCallRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListRecentCallRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListRecentCallRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void ListRecentCallRecordsRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +long ListRecentCallRecordsRequest::getStopTime()const +{ + return stopTime_; +} + +void ListRecentCallRecordsRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setCoreParameter("StopTime", std::to_string(stopTime)); +} + +int ListRecentCallRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListRecentCallRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListRecentCallRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListRecentCallRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListRecentCallRecordsResult.cc b/ccc/src/model/ListRecentCallRecordsResult.cc new file mode 100644 index 000000000..8a2464500 --- /dev/null +++ b/ccc/src/model/ListRecentCallRecordsResult.cc @@ -0,0 +1,186 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListRecentCallRecordsResult::ListRecentCallRecordsResult() : + ServiceResult() +{} + +ListRecentCallRecordsResult::ListRecentCallRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRecentCallRecordsResult::~ListRecentCallRecordsResult() +{} + +void ListRecentCallRecordsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto callDetailRecordsNode = value["CallDetailRecords"]; + if(!callDetailRecordsNode["TotalCount"].isNull()) + callDetailRecords_.totalCount = std::stoi(callDetailRecordsNode["TotalCount"].asString()); + if(!callDetailRecordsNode["PageNumber"].isNull()) + callDetailRecords_.pageNumber = std::stoi(callDetailRecordsNode["PageNumber"].asString()); + if(!callDetailRecordsNode["PageSize"].isNull()) + callDetailRecords_.pageSize = std::stoi(callDetailRecordsNode["PageSize"].asString()); + auto allList = value["List"]["CallDetailRecord"]; + for (auto value : allList) + { + CallDetailRecords::CallDetailRecord callDetailRecordObject; + if(!value["ContactId"].isNull()) + callDetailRecordObject.contactId = value["ContactId"].asString(); + if(!value["StartTime"].isNull()) + callDetailRecordObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + callDetailRecordObject.duration = std::stoi(value["Duration"].asString()); + if(!value["Satisfaction"].isNull()) + callDetailRecordObject.satisfaction = std::stoi(value["Satisfaction"].asString()); + if(!value["ContactType"].isNull()) + callDetailRecordObject.contactType = value["ContactType"].asString(); + if(!value["ContactDisposition"].isNull()) + callDetailRecordObject.contactDisposition = value["ContactDisposition"].asString(); + if(!value["CallingNumber"].isNull()) + callDetailRecordObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + callDetailRecordObject.calledNumber = value["CalledNumber"].asString(); + if(!value["AgentNames"].isNull()) + callDetailRecordObject.agentNames = value["AgentNames"].asString(); + if(!value["SkillGroupNames"].isNull()) + callDetailRecordObject.skillGroupNames = value["SkillGroupNames"].asString(); + if(!value["InstanceId"].isNull()) + callDetailRecordObject.instanceId = value["InstanceId"].asString(); + if(!value["ExtraAttr"].isNull()) + callDetailRecordObject.extraAttr = value["ExtraAttr"].asString(); + if(!value["ExtraAttr"].isNull()) + callDetailRecordObject.extraAttr1 = value["ExtraAttr"].asString(); + if(!value["SatisfactionDesc"].isNull()) + callDetailRecordObject.satisfactionDesc = value["SatisfactionDesc"].asString(); + if(!value["Feedback"].isNull()) + callDetailRecordObject.feedback = value["Feedback"].asString(); + auto allAgents = value["Agents"]["CallDetailAgent"]; + for (auto value : allAgents) + { + CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject; + if(!value["ContactId"].isNull()) + agentsObject.contactId = value["ContactId"].asString(); + if(!value["AgentId"].isNull()) + agentsObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + agentsObject.agentName = value["AgentName"].asString(); + if(!value["SkillGroupName"].isNull()) + agentsObject.skillGroupName = value["SkillGroupName"].asString(); + if(!value["QueueTime"].isNull()) + agentsObject.queueTime = std::stoi(value["QueueTime"].asString()); + if(!value["RingTime"].isNull()) + agentsObject.ringTime = std::stoi(value["RingTime"].asString()); + if(!value["StartTime"].isNull()) + agentsObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["TalkTime"].isNull()) + agentsObject.talkTime = std::stoi(value["TalkTime"].asString()); + if(!value["HoldTime"].isNull()) + agentsObject.holdTime = std::stoi(value["HoldTime"].asString()); + if(!value["WorkTime"].isNull()) + agentsObject.workTime = std::stoi(value["WorkTime"].asString()); + if(!value["Satisfaction"].isNull()) + agentsObject.satisfaction = value["Satisfaction"].asString(); + if(!value["Feedback"].isNull()) + agentsObject.feedback = value["Feedback"].asString(); + callDetailRecordObject.agents.push_back(agentsObject); + } + auto allRecordings = value["Recordings"]["Recording"]; + for (auto value : allRecordings) + { + CallDetailRecords::CallDetailRecord::Recording recordingsObject; + if(!value["ContactId"].isNull()) + recordingsObject.contactId = value["ContactId"].asString(); + if(!value["ContactType"].isNull()) + recordingsObject.contactType = value["ContactType"].asString(); + if(!value["AgentId"].isNull()) + recordingsObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + recordingsObject.agentName = value["AgentName"].asString(); + if(!value["CallingNumber"].isNull()) + recordingsObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + recordingsObject.calledNumber = value["CalledNumber"].asString(); + if(!value["StartTime"].isNull()) + recordingsObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + recordingsObject.duration = std::stoi(value["Duration"].asString()); + if(!value["FileName"].isNull()) + recordingsObject.fileName = value["FileName"].asString(); + if(!value["FilePath"].isNull()) + recordingsObject.filePath = value["FilePath"].asString(); + if(!value["FileDescription"].isNull()) + recordingsObject.fileDescription = value["FileDescription"].asString(); + if(!value["Channel"].isNull()) + recordingsObject.channel = value["Channel"].asString(); + if(!value["InstanceId"].isNull()) + recordingsObject.instanceId = value["InstanceId"].asString(); + callDetailRecordObject.recordings.push_back(recordingsObject); + } + callDetailRecords_.list.push_back(callDetailRecordObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListRecentCallRecordsResult::getMessage()const +{ + return message_; +} + +ListRecentCallRecordsResult::CallDetailRecords ListRecentCallRecordsResult::getCallDetailRecords()const +{ + return callDetailRecords_; +} + +int ListRecentCallRecordsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListRecentCallRecordsResult::getCode()const +{ + return code_; +} + +bool ListRecentCallRecordsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListRecordingOfDualTrackRequest.cc b/ccc/src/model/ListRecordingOfDualTrackRequest.cc new file mode 100644 index 000000000..ea2362e64 --- /dev/null +++ b/ccc/src/model/ListRecordingOfDualTrackRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ListRecordingOfDualTrackRequest; + +ListRecordingOfDualTrackRequest::ListRecordingOfDualTrackRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListRecordingOfDualTrack") +{} + +ListRecordingOfDualTrackRequest::~ListRecordingOfDualTrackRequest() +{} + +std::string ListRecordingOfDualTrackRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void ListRecordingOfDualTrackRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setCoreParameter("CallingNumber", callingNumber); +} + +std::string ListRecordingOfDualTrackRequest::getAgentId()const +{ + return agentId_; +} + +void ListRecordingOfDualTrackRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setCoreParameter("AgentId", agentId); +} + +std::string ListRecordingOfDualTrackRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListRecordingOfDualTrackRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListRecordingOfDualTrackRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void ListRecordingOfDualTrackRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setCoreParameter("CalledNumber", calledNumber); +} + +int ListRecordingOfDualTrackRequest::getPageSize()const +{ + return pageSize_; +} + +void ListRecordingOfDualTrackRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListRecordingOfDualTrackRequest::getStartTime()const +{ + return startTime_; +} + +void ListRecordingOfDualTrackRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +long ListRecordingOfDualTrackRequest::getStopTime()const +{ + return stopTime_; +} + +void ListRecordingOfDualTrackRequest::setStopTime(long stopTime) +{ + stopTime_ = stopTime; + setCoreParameter("StopTime", std::to_string(stopTime)); +} + +std::string ListRecordingOfDualTrackRequest::getConnectId()const +{ + return connectId_; +} + +void ListRecordingOfDualTrackRequest::setConnectId(const std::string& connectId) +{ + connectId_ = connectId; + setCoreParameter("ConnectId", connectId); +} + +int ListRecordingOfDualTrackRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListRecordingOfDualTrackRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListRecordingOfDualTrackRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListRecordingOfDualTrackRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListRecordingOfDualTrackResult.cc b/ccc/src/model/ListRecordingOfDualTrackResult.cc new file mode 100644 index 000000000..705b764e3 --- /dev/null +++ b/ccc/src/model/ListRecordingOfDualTrackResult.cc @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListRecordingOfDualTrackResult::ListRecordingOfDualTrackResult() : + ServiceResult() +{} + +ListRecordingOfDualTrackResult::ListRecordingOfDualTrackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRecordingOfDualTrackResult::~ListRecordingOfDualTrackResult() +{} + +void ListRecordingOfDualTrackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto recordingsNode = value["Recordings"]; + if(!recordingsNode["TotalCount"].isNull()) + recordings_.totalCount = std::stoi(recordingsNode["TotalCount"].asString()); + if(!recordingsNode["PageNumber"].isNull()) + recordings_.pageNumber = std::stoi(recordingsNode["PageNumber"].asString()); + if(!recordingsNode["PageSize"].isNull()) + recordings_.pageSize = std::stoi(recordingsNode["PageSize"].asString()); + auto allList = value["List"]["Recording"]; + for (auto value : allList) + { + Recordings::Recording recordingObject; + if(!value["ContactId"].isNull()) + recordingObject.contactId = value["ContactId"].asString(); + if(!value["ContactType"].isNull()) + recordingObject.contactType = value["ContactType"].asString(); + if(!value["AgentId"].isNull()) + recordingObject.agentId = value["AgentId"].asString(); + if(!value["AgentName"].isNull()) + recordingObject.agentName = value["AgentName"].asString(); + if(!value["CallingNumber"].isNull()) + recordingObject.callingNumber = value["CallingNumber"].asString(); + if(!value["CalledNumber"].isNull()) + recordingObject.calledNumber = value["CalledNumber"].asString(); + if(!value["StartTime"].isNull()) + recordingObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + recordingObject.duration = std::stoi(value["Duration"].asString()); + if(!value["FileName"].isNull()) + recordingObject.fileName = value["FileName"].asString(); + if(!value["FilePath"].isNull()) + recordingObject.filePath = value["FilePath"].asString(); + if(!value["FileDescription"].isNull()) + recordingObject.fileDescription = value["FileDescription"].asString(); + if(!value["Channel"].isNull()) + recordingObject.channel = value["Channel"].asString(); + if(!value["InstanceId"].isNull()) + recordingObject.instanceId = value["InstanceId"].asString(); + recordings_.list.push_back(recordingObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListRecordingOfDualTrackResult::getMessage()const +{ + return message_; +} + +int ListRecordingOfDualTrackResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListRecordingOfDualTrackResult::Recordings ListRecordingOfDualTrackResult::getRecordings()const +{ + return recordings_; +} + +std::string ListRecordingOfDualTrackResult::getCode()const +{ + return code_; +} + +bool ListRecordingOfDualTrackResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListRecordingsByContactIdRequest.cc b/ccc/src/model/ListRecordingsByContactIdRequest.cc index 45fc79dcc..8781b94b2 100644 --- a/ccc/src/model/ListRecordingsByContactIdRequest.cc +++ b/ccc/src/model/ListRecordingsByContactIdRequest.cc @@ -33,7 +33,7 @@ std::string ListRecordingsByContactIdRequest::getInstanceId()const void ListRecordingsByContactIdRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListRecordingsByContactIdRequest::getContactId()const @@ -44,7 +44,7 @@ std::string ListRecordingsByContactIdRequest::getContactId()const void ListRecordingsByContactIdRequest::setContactId(const std::string& contactId) { contactId_ = contactId; - setParameter("ContactId", contactId); + setCoreParameter("ContactId", contactId); } std::string ListRecordingsByContactIdRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListRecordingsByContactIdRequest::getAccessKeyId()const void ListRecordingsByContactIdRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListRecordingsByContactIdResult.cc b/ccc/src/model/ListRecordingsByContactIdResult.cc index 76c1d438b..458c9b854 100644 --- a/ccc/src/model/ListRecordingsByContactIdResult.cc +++ b/ccc/src/model/ListRecordingsByContactIdResult.cc @@ -35,10 +35,13 @@ ListRecordingsByContactIdResult::~ListRecordingsByContactIdResult() void ListRecordingsByContactIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordings = value["Recordings"]["Recording"]; for (auto value : allRecordings) @@ -70,6 +73,10 @@ void ListRecordingsByContactIdResult::parse(const std::string &payload) recordingsObject.channel = value["Channel"].asString(); if(!value["InstanceId"].isNull()) recordingsObject.instanceId = value["InstanceId"].asString(); + if(!value["QualityCheckTid"].isNull()) + recordingsObject.qualityCheckTid = value["QualityCheckTid"].asString(); + if(!value["QualityCheckTaskId"].isNull()) + recordingsObject.qualityCheckTaskId = value["QualityCheckTaskId"].asString(); recordings_.push_back(recordingsObject); } if(!value["Success"].isNull()) diff --git a/ccc/src/model/ListRecordingsRequest.cc b/ccc/src/model/ListRecordingsRequest.cc index 8b9bb07a5..78ff8a114 100644 --- a/ccc/src/model/ListRecordingsRequest.cc +++ b/ccc/src/model/ListRecordingsRequest.cc @@ -33,7 +33,7 @@ std::string ListRecordingsRequest::getAgentId()const void ListRecordingsRequest::setAgentId(const std::string& agentId) { agentId_ = agentId; - setParameter("AgentId", agentId); + setCoreParameter("AgentId", agentId); } std::string ListRecordingsRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ListRecordingsRequest::getInstanceId()const void ListRecordingsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListRecordingsRequest::getCriteria()const @@ -55,7 +55,7 @@ std::string ListRecordingsRequest::getCriteria()const void ListRecordingsRequest::setCriteria(const std::string& criteria) { criteria_ = criteria; - setParameter("Criteria", criteria); + setCoreParameter("Criteria", criteria); } std::string ListRecordingsRequest::getPhoneNumber()const @@ -66,7 +66,7 @@ std::string ListRecordingsRequest::getPhoneNumber()const void ListRecordingsRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } int ListRecordingsRequest::getPageSize()const @@ -77,7 +77,7 @@ int ListRecordingsRequest::getPageSize()const void ListRecordingsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListRecordingsRequest::getStopTime()const @@ -88,7 +88,7 @@ long ListRecordingsRequest::getStopTime()const void ListRecordingsRequest::setStopTime(long stopTime) { stopTime_ = stopTime; - setParameter("StopTime", std::to_string(stopTime)); + setCoreParameter("StopTime", std::to_string(stopTime)); } long ListRecordingsRequest::getStartTime()const @@ -99,7 +99,7 @@ long ListRecordingsRequest::getStartTime()const void ListRecordingsRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } int ListRecordingsRequest::getPageNumber()const @@ -110,7 +110,7 @@ int ListRecordingsRequest::getPageNumber()const void ListRecordingsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListRecordingsRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ListRecordingsRequest::getAccessKeyId()const void ListRecordingsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListRecordingsResult.cc b/ccc/src/model/ListRecordingsResult.cc index 1d664d558..b19e20c5e 100644 --- a/ccc/src/model/ListRecordingsResult.cc +++ b/ccc/src/model/ListRecordingsResult.cc @@ -35,10 +35,13 @@ ListRecordingsResult::~ListRecordingsResult() void ListRecordingsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto recordingsNode = value["Recordings"]; if(!recordingsNode["TotalCount"].isNull()) diff --git a/ccc/src/model/ListRolesRequest.cc b/ccc/src/model/ListRolesRequest.cc index fad4d95fc..38d5acb95 100644 --- a/ccc/src/model/ListRolesRequest.cc +++ b/ccc/src/model/ListRolesRequest.cc @@ -33,7 +33,7 @@ std::string ListRolesRequest::getInstanceId()const void ListRolesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListRolesRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListRolesRequest::getAccessKeyId()const void ListRolesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListRolesResult.cc b/ccc/src/model/ListRolesResult.cc index 965e9025d..9f9ced805 100644 --- a/ccc/src/model/ListRolesResult.cc +++ b/ccc/src/model/ListRolesResult.cc @@ -35,10 +35,13 @@ ListRolesResult::~ListRolesResult() void ListRolesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRoles = value["Roles"]["Role"]; for (auto value : allRoles) diff --git a/ccc/src/model/ListScenarioTemplatesResult.cc b/ccc/src/model/ListScenarioTemplatesResult.cc index 84f917738..5106993d0 100644 --- a/ccc/src/model/ListScenarioTemplatesResult.cc +++ b/ccc/src/model/ListScenarioTemplatesResult.cc @@ -35,10 +35,13 @@ ListScenarioTemplatesResult::~ListScenarioTemplatesResult() void ListScenarioTemplatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScenarioTemplates = value["ScenarioTemplates"]["Scenario"]; for (auto value : allScenarioTemplates) diff --git a/ccc/src/model/ListScenariosRequest.cc b/ccc/src/model/ListScenariosRequest.cc index 5f5572128..31abb3490 100644 --- a/ccc/src/model/ListScenariosRequest.cc +++ b/ccc/src/model/ListScenariosRequest.cc @@ -33,6 +33,6 @@ std::string ListScenariosRequest::getInstanceId()const void ListScenariosRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/ccc/src/model/ListScenariosResult.cc b/ccc/src/model/ListScenariosResult.cc index e46c541a0..a10e2d1ef 100644 --- a/ccc/src/model/ListScenariosResult.cc +++ b/ccc/src/model/ListScenariosResult.cc @@ -35,10 +35,13 @@ ListScenariosResult::~ListScenariosResult() void ListScenariosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScenarios = value["Scenarios"]["Scenario"]; for (auto value : allScenarios) diff --git a/ccc/src/model/ListSkillGroupStatesRequest.cc b/ccc/src/model/ListSkillGroupStatesRequest.cc new file mode 100644 index 000000000..2510b21a8 --- /dev/null +++ b/ccc/src/model/ListSkillGroupStatesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListSkillGroupStatesRequest; + +ListSkillGroupStatesRequest::ListSkillGroupStatesRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupStates") +{} + +ListSkillGroupStatesRequest::~ListSkillGroupStatesRequest() +{} + +std::string ListSkillGroupStatesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSkillGroupStatesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListSkillGroupStatesRequest::getSkillGroupIds()const +{ + return skillGroupIds_; +} + +void ListSkillGroupStatesRequest::setSkillGroupIds(const std::string& skillGroupIds) +{ + skillGroupIds_ = skillGroupIds; + setCoreParameter("SkillGroupIds", skillGroupIds); +} + +int ListSkillGroupStatesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSkillGroupStatesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int ListSkillGroupStatesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSkillGroupStatesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListSkillGroupStatesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSkillGroupStatesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListSkillGroupStatesResult.cc b/ccc/src/model/ListSkillGroupStatesResult.cc new file mode 100644 index 000000000..e601f4c74 --- /dev/null +++ b/ccc/src/model/ListSkillGroupStatesResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListSkillGroupStatesResult::ListSkillGroupStatesResult() : + ServiceResult() +{} + +ListSkillGroupStatesResult::ListSkillGroupStatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSkillGroupStatesResult::~ListSkillGroupStatesResult() +{} + +void ListSkillGroupStatesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allList = value["List"]["RealTimeSkillGroupState"]; + for (auto value : allList) + { + Data::RealTimeSkillGroupState realTimeSkillGroupStateObject; + if(!value["InstanceId"].isNull()) + realTimeSkillGroupStateObject.instanceId = value["InstanceId"].asString(); + if(!value["SkillGroupId"].isNull()) + realTimeSkillGroupStateObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + realTimeSkillGroupStateObject.skillGroupName = value["SkillGroupName"].asString(); + if(!value["WaitingCalls"].isNull()) + realTimeSkillGroupStateObject.waitingCalls = std::stol(value["WaitingCalls"].asString()); + if(!value["LongestCall"].isNull()) + realTimeSkillGroupStateObject.longestCall = std::stol(value["LongestCall"].asString()); + if(!value["LoggedInAgents"].isNull()) + realTimeSkillGroupStateObject.loggedInAgents = std::stol(value["LoggedInAgents"].asString()); + if(!value["ReadyAgents"].isNull()) + realTimeSkillGroupStateObject.readyAgents = std::stol(value["ReadyAgents"].asString()); + if(!value["BreakingAgents"].isNull()) + realTimeSkillGroupStateObject.breakingAgents = std::stol(value["BreakingAgents"].asString()); + if(!value["TalkingAgents"].isNull()) + realTimeSkillGroupStateObject.talkingAgents = std::stol(value["TalkingAgents"].asString()); + if(!value["WorkingAgents"].isNull()) + realTimeSkillGroupStateObject.workingAgents = std::stol(value["WorkingAgents"].asString()); + data_.list.push_back(realTimeSkillGroupStateObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListSkillGroupStatesResult::getMessage()const +{ + return message_; +} + +int ListSkillGroupStatesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListSkillGroupStatesResult::Data ListSkillGroupStatesResult::getData()const +{ + return data_; +} + +std::string ListSkillGroupStatesResult::getCode()const +{ + return code_; +} + +bool ListSkillGroupStatesResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc new file mode 100644 index 000000000..e39d3c0e8 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ListSkillGroupSummaryReportsByIntervalRequest; + +ListSkillGroupSummaryReportsByIntervalRequest::ListSkillGroupSummaryReportsByIntervalRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupSummaryReportsByInterval") +{} + +ListSkillGroupSummaryReportsByIntervalRequest::~ListSkillGroupSummaryReportsByIntervalRequest() +{} + +std::string ListSkillGroupSummaryReportsByIntervalRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListSkillGroupSummaryReportsByIntervalRequest::getSkillGroupIds()const +{ + return skillGroupIds_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setSkillGroupIds(const std::string& skillGroupIds) +{ + skillGroupIds_ = skillGroupIds; + setCoreParameter("SkillGroupIds", skillGroupIds); +} + +int ListSkillGroupSummaryReportsByIntervalRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListSkillGroupSummaryReportsByIntervalRequest::getEndTime()const +{ + return endTime_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string ListSkillGroupSummaryReportsByIntervalRequest::getInterval()const +{ + return interval_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string ListSkillGroupSummaryReportsByIntervalRequest::getStartTime()const +{ + return startTime_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int ListSkillGroupSummaryReportsByIntervalRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListSkillGroupSummaryReportsByIntervalRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSkillGroupSummaryReportsByIntervalRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc new file mode 100644 index 000000000..f5828fe2c --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsByIntervalResult.cc @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListSkillGroupSummaryReportsByIntervalResult::ListSkillGroupSummaryReportsByIntervalResult() : + ServiceResult() +{} + +ListSkillGroupSummaryReportsByIntervalResult::ListSkillGroupSummaryReportsByIntervalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSkillGroupSummaryReportsByIntervalResult::~ListSkillGroupSummaryReportsByIntervalResult() +{} + +void ListSkillGroupSummaryReportsByIntervalResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto pagedSkillGroupSummaryReportNode = value["PagedSkillGroupSummaryReport"]; + if(!pagedSkillGroupSummaryReportNode["TotalCount"].isNull()) + pagedSkillGroupSummaryReport_.totalCount = std::stoi(pagedSkillGroupSummaryReportNode["TotalCount"].asString()); + if(!pagedSkillGroupSummaryReportNode["PageNumber"].isNull()) + pagedSkillGroupSummaryReport_.pageNumber = std::stoi(pagedSkillGroupSummaryReportNode["PageNumber"].asString()); + if(!pagedSkillGroupSummaryReportNode["PageSize"].isNull()) + pagedSkillGroupSummaryReport_.pageSize = std::stoi(pagedSkillGroupSummaryReportNode["PageSize"].asString()); + auto allList = value["List"]["SkillGroupTimeIntervalReport"]; + for (auto value : allList) + { + PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport skillGroupTimeIntervalReportObject; + if(!value["SkillGroupId"].isNull()) + skillGroupTimeIntervalReportObject.skillGroupId = value["SkillGroupId"].asString(); + auto allIntervalList = value["IntervalList"]["SkillGroupSummaryReport"]; + for (auto value : allIntervalList) + { + PagedSkillGroupSummaryReport::SkillGroupTimeIntervalReport::SkillGroupSummaryReport intervalListObject; + if(!value["Timestamp"].isNull()) + intervalListObject.timestamp = value["Timestamp"].asString(); + if(!value["InstanceId"].isNull()) + intervalListObject.instanceId = value["InstanceId"].asString(); + if(!value["SkillGroupId"].isNull()) + intervalListObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + intervalListObject.skillGroupName = value["SkillGroupName"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + intervalListObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + intervalListObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + intervalListObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + intervalListObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + intervalListObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + intervalListObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + intervalListObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + intervalListObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + intervalListObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + intervalListObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + intervalListObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + intervalListObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + intervalListObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + intervalListObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + intervalListObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + intervalListObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsOffered"].isNull()) + intervalListObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + intervalListObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + intervalListObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + intervalListObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + intervalListObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + intervalListObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + intervalListObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + intervalListObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + intervalListObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString()); + if(!inboundNode["AverageTalkTime"].isNull()) + intervalListObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + intervalListObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + intervalListObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + intervalListObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + intervalListObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + intervalListObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + intervalListObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["InComingQueueOfQueueCount"].isNull()) + intervalListObject.inbound.inComingQueueOfQueueCount = std::stol(inboundNode["InComingQueueOfQueueCount"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueCount"].isNull()) + intervalListObject.inbound.answeredByAgentOfQueueCount = std::stol(inboundNode["AnsweredByAgentOfQueueCount"].asString()); + if(!inboundNode["GiveUpByAgentOfQueueCount"].isNull()) + intervalListObject.inbound.giveUpByAgentOfQueueCount = std::stol(inboundNode["GiveUpByAgentOfQueueCount"].asString()); + if(!inboundNode["AbandonedInQueueOfQueueCount"].isNull()) + intervalListObject.inbound.abandonedInQueueOfQueueCount = std::stol(inboundNode["AbandonedInQueueOfQueueCount"].asString()); + if(!inboundNode["OverFlowInQueueOfQueueCount"].isNull()) + intervalListObject.inbound.overFlowInQueueOfQueueCount = std::stol(inboundNode["OverFlowInQueueOfQueueCount"].asString()); + if(!inboundNode["QueueWaitTimeDuration"].isNull()) + intervalListObject.inbound.queueWaitTimeDuration = std::stol(inboundNode["QueueWaitTimeDuration"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].isNull()) + intervalListObject.inbound.answeredByAgentOfQueueWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].asString()); + if(!inboundNode["QueueMaxWaitTimeDuration"].isNull()) + intervalListObject.inbound.queueMaxWaitTimeDuration = std::stol(inboundNode["QueueMaxWaitTimeDuration"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].isNull()) + intervalListObject.inbound.answeredByAgentOfQueueMaxWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + intervalListObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + intervalListObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + intervalListObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + intervalListObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + intervalListObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + intervalListObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + intervalListObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + intervalListObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + intervalListObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + intervalListObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + intervalListObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + intervalListObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + intervalListObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + intervalListObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + intervalListObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + skillGroupTimeIntervalReportObject.intervalList.push_back(intervalListObject); + } + pagedSkillGroupSummaryReport_.list.push_back(skillGroupTimeIntervalReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ListSkillGroupSummaryReportsByIntervalResult::PagedSkillGroupSummaryReport ListSkillGroupSummaryReportsByIntervalResult::getPagedSkillGroupSummaryReport()const +{ + return pagedSkillGroupSummaryReport_; +} + +std::string ListSkillGroupSummaryReportsByIntervalResult::getMessage()const +{ + return message_; +} + +int ListSkillGroupSummaryReportsByIntervalResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListSkillGroupSummaryReportsByIntervalResult::getCode()const +{ + return code_; +} + +bool ListSkillGroupSummaryReportsByIntervalResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListSkillGroupSummaryReportsRequest.cc b/ccc/src/model/ListSkillGroupSummaryReportsRequest.cc new file mode 100644 index 000000000..89e84feb7 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsRequest.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 + +using AlibabaCloud::CCC::Model::ListSkillGroupSummaryReportsRequest; + +ListSkillGroupSummaryReportsRequest::ListSkillGroupSummaryReportsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupSummaryReports") +{} + +ListSkillGroupSummaryReportsRequest::~ListSkillGroupSummaryReportsRequest() +{} + +std::string ListSkillGroupSummaryReportsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSkillGroupSummaryReportsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListSkillGroupSummaryReportsRequest::getSkillGroupIds()const +{ + return skillGroupIds_; +} + +void ListSkillGroupSummaryReportsRequest::setSkillGroupIds(const std::string& skillGroupIds) +{ + skillGroupIds_ = skillGroupIds; + setCoreParameter("SkillGroupIds", skillGroupIds); +} + +int ListSkillGroupSummaryReportsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSkillGroupSummaryReportsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListSkillGroupSummaryReportsRequest::getEndTime()const +{ + return endTime_; +} + +void ListSkillGroupSummaryReportsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string ListSkillGroupSummaryReportsRequest::getStartTime()const +{ + return startTime_; +} + +void ListSkillGroupSummaryReportsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int ListSkillGroupSummaryReportsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSkillGroupSummaryReportsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListSkillGroupSummaryReportsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSkillGroupSummaryReportsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListSkillGroupSummaryReportsResult.cc b/ccc/src/model/ListSkillGroupSummaryReportsResult.cc new file mode 100644 index 000000000..9bbf76add --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsResult.cc @@ -0,0 +1,215 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListSkillGroupSummaryReportsResult::ListSkillGroupSummaryReportsResult() : + ServiceResult() +{} + +ListSkillGroupSummaryReportsResult::ListSkillGroupSummaryReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSkillGroupSummaryReportsResult::~ListSkillGroupSummaryReportsResult() +{} + +void ListSkillGroupSummaryReportsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto pagedSkillGroupSummaryReportNode = value["PagedSkillGroupSummaryReport"]; + if(!pagedSkillGroupSummaryReportNode["TotalCount"].isNull()) + pagedSkillGroupSummaryReport_.totalCount = std::stoi(pagedSkillGroupSummaryReportNode["TotalCount"].asString()); + if(!pagedSkillGroupSummaryReportNode["PageNumber"].isNull()) + pagedSkillGroupSummaryReport_.pageNumber = std::stoi(pagedSkillGroupSummaryReportNode["PageNumber"].asString()); + if(!pagedSkillGroupSummaryReportNode["PageSize"].isNull()) + pagedSkillGroupSummaryReport_.pageSize = std::stoi(pagedSkillGroupSummaryReportNode["PageSize"].asString()); + auto allList = value["List"]["SkillGroupSummaryReport"]; + for (auto value : allList) + { + PagedSkillGroupSummaryReport::SkillGroupSummaryReport skillGroupSummaryReportObject; + if(!value["InstanceId"].isNull()) + skillGroupSummaryReportObject.instanceId = value["InstanceId"].asString(); + if(!value["SkillGroupId"].isNull()) + skillGroupSummaryReportObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + skillGroupSummaryReportObject.skillGroupName = value["SkillGroupName"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + skillGroupSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + skillGroupSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + skillGroupSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + skillGroupSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + skillGroupSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + skillGroupSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + skillGroupSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + skillGroupSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + skillGroupSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + skillGroupSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + skillGroupSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + skillGroupSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + skillGroupSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + skillGroupSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + skillGroupSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + skillGroupSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsOffered"].isNull()) + skillGroupSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + skillGroupSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + skillGroupSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + skillGroupSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + skillGroupSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + skillGroupSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + skillGroupSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + skillGroupSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + skillGroupSummaryReportObject.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); + if(!inboundNode["AverageTalkTime"].isNull()) + skillGroupSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + skillGroupSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + skillGroupSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + skillGroupSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + skillGroupSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + skillGroupSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + skillGroupSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["InComingQueueOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.inComingQueueOfQueueCount = std::stol(inboundNode["InComingQueueOfQueueCount"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueCount = std::stol(inboundNode["AnsweredByAgentOfQueueCount"].asString()); + if(!inboundNode["GiveUpByAgentOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.giveUpByAgentOfQueueCount = std::stol(inboundNode["GiveUpByAgentOfQueueCount"].asString()); + if(!inboundNode["AbandonedInQueueOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.abandonedInQueueOfQueueCount = std::stol(inboundNode["AbandonedInQueueOfQueueCount"].asString()); + if(!inboundNode["OverFlowInQueueOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.overFlowInQueueOfQueueCount = std::stol(inboundNode["OverFlowInQueueOfQueueCount"].asString()); + if(!inboundNode["QueueWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.queueWaitTimeDuration = std::stol(inboundNode["QueueWaitTimeDuration"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].asString()); + if(!inboundNode["QueueMaxWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.queueMaxWaitTimeDuration = std::stol(inboundNode["QueueMaxWaitTimeDuration"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueMaxWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + skillGroupSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + skillGroupSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + skillGroupSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + skillGroupSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + skillGroupSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + skillGroupSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + skillGroupSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + skillGroupSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + skillGroupSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + skillGroupSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + skillGroupSummaryReportObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + skillGroupSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + skillGroupSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + skillGroupSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + skillGroupSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + pagedSkillGroupSummaryReport_.list.push_back(skillGroupSummaryReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ListSkillGroupSummaryReportsResult::PagedSkillGroupSummaryReport ListSkillGroupSummaryReportsResult::getPagedSkillGroupSummaryReport()const +{ + return pagedSkillGroupSummaryReport_; +} + +std::string ListSkillGroupSummaryReportsResult::getMessage()const +{ + return message_; +} + +int ListSkillGroupSummaryReportsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListSkillGroupSummaryReportsResult::getCode()const +{ + return code_; +} + +bool ListSkillGroupSummaryReportsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc new file mode 100644 index 000000000..09c1937c3 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ListSkillGroupSummaryReportsSinceMidnightRequest; + +ListSkillGroupSummaryReportsSinceMidnightRequest::ListSkillGroupSummaryReportsSinceMidnightRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListSkillGroupSummaryReportsSinceMidnight") +{} + +ListSkillGroupSummaryReportsSinceMidnightRequest::~ListSkillGroupSummaryReportsSinceMidnightRequest() +{} + +std::string ListSkillGroupSummaryReportsSinceMidnightRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSkillGroupSummaryReportsSinceMidnightRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListSkillGroupSummaryReportsSinceMidnightRequest::getSkillGroups()const +{ + return skillGroups_; +} + +void ListSkillGroupSummaryReportsSinceMidnightRequest::setSkillGroups(const std::string& skillGroups) +{ + skillGroups_ = skillGroups; + setCoreParameter("SkillGroups", skillGroups); +} + +int ListSkillGroupSummaryReportsSinceMidnightRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSkillGroupSummaryReportsSinceMidnightRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int ListSkillGroupSummaryReportsSinceMidnightRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSkillGroupSummaryReportsSinceMidnightRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListSkillGroupSummaryReportsSinceMidnightRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSkillGroupSummaryReportsSinceMidnightRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc new file mode 100644 index 000000000..19c44d0a1 --- /dev/null +++ b/ccc/src/model/ListSkillGroupSummaryReportsSinceMidnightResult.cc @@ -0,0 +1,217 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListSkillGroupSummaryReportsSinceMidnightResult::ListSkillGroupSummaryReportsSinceMidnightResult() : + ServiceResult() +{} + +ListSkillGroupSummaryReportsSinceMidnightResult::ListSkillGroupSummaryReportsSinceMidnightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSkillGroupSummaryReportsSinceMidnightResult::~ListSkillGroupSummaryReportsSinceMidnightResult() +{} + +void ListSkillGroupSummaryReportsSinceMidnightResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto pagedSkillGroupSummaryReportNode = value["PagedSkillGroupSummaryReport"]; + if(!pagedSkillGroupSummaryReportNode["TotalCount"].isNull()) + pagedSkillGroupSummaryReport_.totalCount = std::stoi(pagedSkillGroupSummaryReportNode["TotalCount"].asString()); + if(!pagedSkillGroupSummaryReportNode["PageNumber"].isNull()) + pagedSkillGroupSummaryReport_.pageNumber = std::stoi(pagedSkillGroupSummaryReportNode["PageNumber"].asString()); + if(!pagedSkillGroupSummaryReportNode["PageSize"].isNull()) + pagedSkillGroupSummaryReport_.pageSize = std::stoi(pagedSkillGroupSummaryReportNode["PageSize"].asString()); + auto allList = value["List"]["SkillGroupSummaryReport"]; + for (auto value : allList) + { + PagedSkillGroupSummaryReport::SkillGroupSummaryReport skillGroupSummaryReportObject; + if(!value["Timestamp"].isNull()) + skillGroupSummaryReportObject.timestamp = value["Timestamp"].asString(); + if(!value["InstanceId"].isNull()) + skillGroupSummaryReportObject.instanceId = value["InstanceId"].asString(); + if(!value["SkillGroupId"].isNull()) + skillGroupSummaryReportObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + skillGroupSummaryReportObject.skillGroupName = value["SkillGroupName"].asString(); + auto overallNode = value["Overall"]; + if(!overallNode["TotalCalls"].isNull()) + skillGroupSummaryReportObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString()); + if(!overallNode["TotalLoggedInTime"].isNull()) + skillGroupSummaryReportObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString()); + if(!overallNode["TotalBreakTime"].isNull()) + skillGroupSummaryReportObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString()); + if(!overallNode["OccupancyRate"].isNull()) + skillGroupSummaryReportObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString()); + if(!overallNode["TotalReadyTime"].isNull()) + skillGroupSummaryReportObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString()); + if(!overallNode["MaxReadyTime"].isNull()) + skillGroupSummaryReportObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString()); + if(!overallNode["AverageReadyTime"].isNull()) + skillGroupSummaryReportObject.overall.averageReadyTime = std::stol(overallNode["AverageReadyTime"].asString()); + if(!overallNode["TotalTalkTime"].isNull()) + skillGroupSummaryReportObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString()); + if(!overallNode["MaxTalkTime"].isNull()) + skillGroupSummaryReportObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString()); + if(!overallNode["AverageTalkTime"].isNull()) + skillGroupSummaryReportObject.overall.averageTalkTime = std::stol(overallNode["AverageTalkTime"].asString()); + if(!overallNode["TotalWorkTime"].isNull()) + skillGroupSummaryReportObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString()); + if(!overallNode["MaxWorkTime"].isNull()) + skillGroupSummaryReportObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString()); + if(!overallNode["AverageWorkTime"].isNull()) + skillGroupSummaryReportObject.overall.averageWorkTime = std::stol(overallNode["AverageWorkTime"].asString()); + if(!overallNode["SatisfactionIndex"].isNull()) + skillGroupSummaryReportObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString()); + if(!overallNode["SatisfactionSurveysOffered"].isNull()) + skillGroupSummaryReportObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString()); + if(!overallNode["SatisfactionSurveysResponded"].isNull()) + skillGroupSummaryReportObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString()); + auto inboundNode = value["Inbound"]; + if(!inboundNode["CallsOffered"].isNull()) + skillGroupSummaryReportObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString()); + if(!inboundNode["CallsHandled"].isNull()) + skillGroupSummaryReportObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString()); + if(!inboundNode["HandleRate"].isNull()) + skillGroupSummaryReportObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString()); + if(!inboundNode["TotalRingTime"].isNull()) + skillGroupSummaryReportObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString()); + if(!inboundNode["MaxRingTime"].isNull()) + skillGroupSummaryReportObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString()); + if(!inboundNode["AverageRingTime"].isNull()) + skillGroupSummaryReportObject.inbound.averageRingTime = std::stol(inboundNode["AverageRingTime"].asString()); + if(!inboundNode["ServiceLevel20"].isNull()) + skillGroupSummaryReportObject.inbound.serviceLevel20 = std::stof(inboundNode["ServiceLevel20"].asString()); + if(!inboundNode["TotalTalkTime"].isNull()) + skillGroupSummaryReportObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString()); + if(!inboundNode["MaxTalkTime"].isNull()) + skillGroupSummaryReportObject.inbound.maxTalkTime = inboundNode["MaxTalkTime"].asString(); + if(!inboundNode["AverageTalkTime"].isNull()) + skillGroupSummaryReportObject.inbound.averageTalkTime = std::stol(inboundNode["AverageTalkTime"].asString()); + if(!inboundNode["TotalWorkTime"].isNull()) + skillGroupSummaryReportObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString()); + if(!inboundNode["MaxWorkTime"].isNull()) + skillGroupSummaryReportObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString()); + if(!inboundNode["AverageWorkTime"].isNull()) + skillGroupSummaryReportObject.inbound.averageWorkTime = std::stol(inboundNode["AverageWorkTime"].asString()); + if(!inboundNode["SatisfactionIndex"].isNull()) + skillGroupSummaryReportObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString()); + if(!inboundNode["SatisfactionSurveysOffered"].isNull()) + skillGroupSummaryReportObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString()); + if(!inboundNode["SatisfactionSurveysResponded"].isNull()) + skillGroupSummaryReportObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString()); + if(!inboundNode["InComingQueueOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.inComingQueueOfQueueCount = std::stol(inboundNode["InComingQueueOfQueueCount"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueCount = std::stol(inboundNode["AnsweredByAgentOfQueueCount"].asString()); + if(!inboundNode["GiveUpByAgentOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.giveUpByAgentOfQueueCount = std::stol(inboundNode["GiveUpByAgentOfQueueCount"].asString()); + if(!inboundNode["AbandonedInQueueOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.abandonedInQueueOfQueueCount = std::stol(inboundNode["AbandonedInQueueOfQueueCount"].asString()); + if(!inboundNode["OverFlowInQueueOfQueueCount"].isNull()) + skillGroupSummaryReportObject.inbound.overFlowInQueueOfQueueCount = std::stol(inboundNode["OverFlowInQueueOfQueueCount"].asString()); + if(!inboundNode["QueueWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.queueWaitTimeDuration = std::stol(inboundNode["QueueWaitTimeDuration"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueWaitTimeDuration"].asString()); + if(!inboundNode["QueueMaxWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.queueMaxWaitTimeDuration = std::stol(inboundNode["QueueMaxWaitTimeDuration"].asString()); + if(!inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].isNull()) + skillGroupSummaryReportObject.inbound.answeredByAgentOfQueueMaxWaitTimeDuration = std::stol(inboundNode["AnsweredByAgentOfQueueMaxWaitTimeDuration"].asString()); + auto outboundNode = value["Outbound"]; + if(!outboundNode["CallsDialed"].isNull()) + skillGroupSummaryReportObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString()); + if(!outboundNode["CallsAnswered"].isNull()) + skillGroupSummaryReportObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString()); + if(!outboundNode["AnswerRate"].isNull()) + skillGroupSummaryReportObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString()); + if(!outboundNode["TotalDialingTime"].isNull()) + skillGroupSummaryReportObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString()); + if(!outboundNode["MaxDialingTime"].isNull()) + skillGroupSummaryReportObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString()); + if(!outboundNode["AverageDialingTime"].isNull()) + skillGroupSummaryReportObject.outbound.averageDialingTime = std::stol(outboundNode["AverageDialingTime"].asString()); + if(!outboundNode["TotalTalkTime"].isNull()) + skillGroupSummaryReportObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString()); + if(!outboundNode["MaxTalkTime"].isNull()) + skillGroupSummaryReportObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString()); + if(!outboundNode["AverageTalkTime"].isNull()) + skillGroupSummaryReportObject.outbound.averageTalkTime = std::stol(outboundNode["AverageTalkTime"].asString()); + if(!outboundNode["TotalWorkTime"].isNull()) + skillGroupSummaryReportObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString()); + if(!outboundNode["MaxWorkTime"].isNull()) + skillGroupSummaryReportObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString()); + if(!outboundNode["AverageWorkTime"].isNull()) + skillGroupSummaryReportObject.outbound.averageWorkTime = std::stol(outboundNode["AverageWorkTime"].asString()); + if(!outboundNode["SatisfactionIndex"].isNull()) + skillGroupSummaryReportObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString()); + if(!outboundNode["SatisfactionSurveysOffered"].isNull()) + skillGroupSummaryReportObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString()); + if(!outboundNode["SatisfactionSurveysResponded"].isNull()) + skillGroupSummaryReportObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString()); + pagedSkillGroupSummaryReport_.list.push_back(skillGroupSummaryReportObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ListSkillGroupSummaryReportsSinceMidnightResult::PagedSkillGroupSummaryReport ListSkillGroupSummaryReportsSinceMidnightResult::getPagedSkillGroupSummaryReport()const +{ + return pagedSkillGroupSummaryReport_; +} + +std::string ListSkillGroupSummaryReportsSinceMidnightResult::getMessage()const +{ + return message_; +} + +int ListSkillGroupSummaryReportsSinceMidnightResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListSkillGroupSummaryReportsSinceMidnightResult::getCode()const +{ + return code_; +} + +bool ListSkillGroupSummaryReportsSinceMidnightResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ListSkillGroupsOfUserRequest.cc b/ccc/src/model/ListSkillGroupsOfUserRequest.cc index c63e8922b..b34f550ff 100644 --- a/ccc/src/model/ListSkillGroupsOfUserRequest.cc +++ b/ccc/src/model/ListSkillGroupsOfUserRequest.cc @@ -33,7 +33,7 @@ std::string ListSkillGroupsOfUserRequest::getInstanceId()const void ListSkillGroupsOfUserRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListSkillGroupsOfUserRequest::getUserId()const @@ -44,7 +44,7 @@ std::string ListSkillGroupsOfUserRequest::getUserId()const void ListSkillGroupsOfUserRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string ListSkillGroupsOfUserRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListSkillGroupsOfUserRequest::getAccessKeyId()const void ListSkillGroupsOfUserRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListSkillGroupsOfUserResult.cc b/ccc/src/model/ListSkillGroupsOfUserResult.cc index 784812f16..b03e543a7 100644 --- a/ccc/src/model/ListSkillGroupsOfUserResult.cc +++ b/ccc/src/model/ListSkillGroupsOfUserResult.cc @@ -35,10 +35,13 @@ ListSkillGroupsOfUserResult::~ListSkillGroupsOfUserResult() void ListSkillGroupsOfUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSkillLevels = value["SkillLevels"]["SkillLevel"]; for (auto value : allSkillLevels) @@ -57,6 +60,8 @@ void ListSkillGroupsOfUserResult::parse(const std::string &payload) skillLevelsObject.skill.skillGroupName = skillNode["SkillGroupName"].asString(); if(!skillNode["SkillGroupDescription"].isNull()) skillLevelsObject.skill.skillGroupDescription = skillNode["SkillGroupDescription"].asString(); + if(!skillNode["RoutingStrategy"].isNull()) + skillLevelsObject.skill.routingStrategy = skillNode["RoutingStrategy"].asString(); auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"]; for (auto value : allOutboundPhoneNumbers) { diff --git a/ccc/src/model/ListSkillGroupsRequest.cc b/ccc/src/model/ListSkillGroupsRequest.cc index 1967f42fd..30ef27d55 100644 --- a/ccc/src/model/ListSkillGroupsRequest.cc +++ b/ccc/src/model/ListSkillGroupsRequest.cc @@ -33,7 +33,7 @@ std::string ListSkillGroupsRequest::getInstanceId()const void ListSkillGroupsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListSkillGroupsRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListSkillGroupsRequest::getAccessKeyId()const void ListSkillGroupsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListSkillGroupsResult.cc b/ccc/src/model/ListSkillGroupsResult.cc index 647234ffc..2e0db306e 100644 --- a/ccc/src/model/ListSkillGroupsResult.cc +++ b/ccc/src/model/ListSkillGroupsResult.cc @@ -35,10 +35,13 @@ ListSkillGroupsResult::~ListSkillGroupsResult() void ListSkillGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSkillGroups = value["SkillGroups"]["SkillGroup"]; for (auto value : allSkillGroups) @@ -56,6 +59,8 @@ void ListSkillGroupsResult::parse(const std::string &payload) skillGroupsObject.accQueueName = value["AccQueueName"].asString(); if(!value["SkillGroupDescription"].isNull()) skillGroupsObject.skillGroupDescription = value["SkillGroupDescription"].asString(); + if(!value["RoutingStrategy"].isNull()) + skillGroupsObject.routingStrategy = value["RoutingStrategy"].asString(); if(!value["UserCount"].isNull()) skillGroupsObject.userCount = std::stoi(value["UserCount"].asString()); auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"]; diff --git a/ccc/src/model/ListSurveysRequest.cc b/ccc/src/model/ListSurveysRequest.cc index cdad763f4..bda3264e3 100644 --- a/ccc/src/model/ListSurveysRequest.cc +++ b/ccc/src/model/ListSurveysRequest.cc @@ -33,7 +33,7 @@ std::string ListSurveysRequest::getInstanceId()const void ListSurveysRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListSurveysRequest::getScenarioId()const @@ -44,6 +44,6 @@ std::string ListSurveysRequest::getScenarioId()const void ListSurveysRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/ListSurveysResult.cc b/ccc/src/model/ListSurveysResult.cc index a3d3cd1d8..3389f2fbf 100644 --- a/ccc/src/model/ListSurveysResult.cc +++ b/ccc/src/model/ListSurveysResult.cc @@ -35,10 +35,13 @@ ListSurveysResult::~ListSurveysResult() void ListSurveysResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSurveys = value["Surveys"]["Survey"]; for (auto value : allSurveys) diff --git a/ccc/src/model/ListUnreachableContactsRequest.cc b/ccc/src/model/ListUnreachableContactsRequest.cc index 750227ecc..8f8de03a5 100644 --- a/ccc/src/model/ListUnreachableContactsRequest.cc +++ b/ccc/src/model/ListUnreachableContactsRequest.cc @@ -33,7 +33,7 @@ std::string ListUnreachableContactsRequest::getInstanceId()const void ListUnreachableContactsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListUnreachableContactsRequest::getJobGroupId()const @@ -44,7 +44,7 @@ std::string ListUnreachableContactsRequest::getJobGroupId()const void ListUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } int ListUnreachableContactsRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListUnreachableContactsRequest::getPageSize()const void ListUnreachableContactsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListUnreachableContactsRequest::getPageNumber()const @@ -66,6 +66,6 @@ int ListUnreachableContactsRequest::getPageNumber()const void ListUnreachableContactsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/ccc/src/model/ListUnreachableContactsResult.cc b/ccc/src/model/ListUnreachableContactsResult.cc index e3285022c..47a0a8566 100644 --- a/ccc/src/model/ListUnreachableContactsResult.cc +++ b/ccc/src/model/ListUnreachableContactsResult.cc @@ -35,10 +35,13 @@ ListUnreachableContactsResult::~ListUnreachableContactsResult() void ListUnreachableContactsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto unreachableContactsNode = value["UnreachableContacts"]; if(!unreachableContactsNode["TotalCount"].isNull()) diff --git a/ccc/src/model/ListUsersOfSkillGroupRequest.cc b/ccc/src/model/ListUsersOfSkillGroupRequest.cc index 1d9a79767..faf219275 100644 --- a/ccc/src/model/ListUsersOfSkillGroupRequest.cc +++ b/ccc/src/model/ListUsersOfSkillGroupRequest.cc @@ -33,7 +33,7 @@ std::string ListUsersOfSkillGroupRequest::getInstanceId()const void ListUsersOfSkillGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListUsersOfSkillGroupRequest::getSkillGroupId()const @@ -44,7 +44,7 @@ std::string ListUsersOfSkillGroupRequest::getSkillGroupId()const void ListUsersOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) { skillGroupId_ = skillGroupId; - setParameter("SkillGroupId", skillGroupId); + setCoreParameter("SkillGroupId", skillGroupId); } int ListUsersOfSkillGroupRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListUsersOfSkillGroupRequest::getPageSize()const void ListUsersOfSkillGroupRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListUsersOfSkillGroupRequest::getPageNumber()const @@ -66,7 +66,7 @@ int ListUsersOfSkillGroupRequest::getPageNumber()const void ListUsersOfSkillGroupRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListUsersOfSkillGroupRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListUsersOfSkillGroupRequest::getAccessKeyId()const void ListUsersOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListUsersOfSkillGroupResult.cc b/ccc/src/model/ListUsersOfSkillGroupResult.cc index b799fee9f..1a449990d 100644 --- a/ccc/src/model/ListUsersOfSkillGroupResult.cc +++ b/ccc/src/model/ListUsersOfSkillGroupResult.cc @@ -35,10 +35,13 @@ ListUsersOfSkillGroupResult::~ListUsersOfSkillGroupResult() void ListUsersOfSkillGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto usersNode = value["Users"]; if(!usersNode["TotalCount"].isNull()) diff --git a/ccc/src/model/ListUsersRequest.cc b/ccc/src/model/ListUsersRequest.cc index 1b280c79d..cd073c747 100644 --- a/ccc/src/model/ListUsersRequest.cc +++ b/ccc/src/model/ListUsersRequest.cc @@ -33,7 +33,7 @@ std::string ListUsersRequest::getInstanceId()const void ListUsersRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } int ListUsersRequest::getPageSize()const @@ -44,7 +44,7 @@ int ListUsersRequest::getPageSize()const void ListUsersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListUsersRequest::getPageNumber()const @@ -55,7 +55,7 @@ int ListUsersRequest::getPageNumber()const void ListUsersRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListUsersRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListUsersRequest::getAccessKeyId()const void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ListUsersResult.cc b/ccc/src/model/ListUsersResult.cc index 50b0d9429..093437faf 100644 --- a/ccc/src/model/ListUsersResult.cc +++ b/ccc/src/model/ListUsersResult.cc @@ -35,10 +35,13 @@ ListUsersResult::~ListUsersResult() void ListUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto usersNode = value["Users"]; if(!usersNode["TotalCount"].isNull()) @@ -59,6 +62,8 @@ void ListUsersResult::parse(const std::string &payload) userObject.instanceId = value["InstanceId"].asString(); if(!value["Primary"].isNull()) userObject.primary = value["Primary"].asString() == "true"; + if(!value["PrivateOutboundNumberId"].isNull()) + userObject.privateOutboundNumberId = value["PrivateOutboundNumberId"].asString(); auto allRoles = value["Roles"]["Role"]; for (auto value : allRoles) { diff --git a/ccc/src/model/ListVoiceAppraiseRequest.cc b/ccc/src/model/ListVoiceAppraiseRequest.cc new file mode 100644 index 000000000..2217ae4f0 --- /dev/null +++ b/ccc/src/model/ListVoiceAppraiseRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ListVoiceAppraiseRequest; + +ListVoiceAppraiseRequest::ListVoiceAppraiseRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ListVoiceAppraise") +{} + +ListVoiceAppraiseRequest::~ListVoiceAppraiseRequest() +{} + +std::string ListVoiceAppraiseRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListVoiceAppraiseRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListVoiceAppraiseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListVoiceAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ListVoiceAppraiseResult.cc b/ccc/src/model/ListVoiceAppraiseResult.cc new file mode 100644 index 000000000..6fb41984c --- /dev/null +++ b/ccc/src/model/ListVoiceAppraiseResult.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ListVoiceAppraiseResult::ListVoiceAppraiseResult() : + ServiceResult() +{} + +ListVoiceAppraiseResult::ListVoiceAppraiseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVoiceAppraiseResult::~ListVoiceAppraiseResult() +{} + +void ListVoiceAppraiseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto contactFlowNode = value["ContactFlow"]; + if(!contactFlowNode["ContactFlowId"].isNull()) + contactFlow_.contactFlowId = contactFlowNode["ContactFlowId"].asString(); + if(!contactFlowNode["InstanceId"].isNull()) + contactFlow_.instanceId = contactFlowNode["InstanceId"].asString(); + if(!contactFlowNode["ContactFlowName"].isNull()) + contactFlow_.contactFlowName = contactFlowNode["ContactFlowName"].asString(); + if(!contactFlowNode["ContactFlowDescription"].isNull()) + contactFlow_.contactFlowDescription = contactFlowNode["ContactFlowDescription"].asString(); + if(!contactFlowNode["Type"].isNull()) + contactFlow_.type = contactFlowNode["Type"].asString(); + if(!contactFlowNode["AppliedVersion"].isNull()) + contactFlow_.appliedVersion = contactFlowNode["AppliedVersion"].asString(); + auto allVersions = value["Versions"]["ContactFlowVersion"]; + for (auto value : allVersions) + { + ContactFlow::ContactFlowVersion contactFlowVersionObject; + if(!value["ContactFlowVersionId"].isNull()) + contactFlowVersionObject.contactFlowVersionId = value["ContactFlowVersionId"].asString(); + if(!value["Version"].isNull()) + contactFlowVersionObject.version = value["Version"].asString(); + if(!value["ContactFlowVersionDescription"].isNull()) + contactFlowVersionObject.contactFlowVersionDescription = value["ContactFlowVersionDescription"].asString(); + if(!value["Content"].isNull()) + contactFlowVersionObject.content = value["Content"].asString(); + if(!value["LastModified"].isNull()) + contactFlowVersionObject.lastModified = value["LastModified"].asString(); + if(!value["LastModifiedBy"].isNull()) + contactFlowVersionObject.lastModifiedBy = value["LastModifiedBy"].asString(); + if(!value["Status"].isNull()) + contactFlowVersionObject.status = value["Status"].asString(); + contactFlow_.versions.push_back(contactFlowVersionObject); + } + auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"]; + for (auto value : allPhoneNumbers) + { + ContactFlow::PhoneNumber phoneNumberObject; + if(!value["PhoneNumberId"].isNull()) + phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString(); + if(!value["InstanceId"].isNull()) + phoneNumberObject.instanceId = value["InstanceId"].asString(); + if(!value["Number"].isNull()) + phoneNumberObject.number = value["Number"].asString(); + if(!value["PhoneNumberDescription"].isNull()) + phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString(); + if(!value["RemainingTime"].isNull()) + phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["Trunks"].isNull()) + phoneNumberObject.trunks = std::stoi(value["Trunks"].asString()); + contactFlow_.phoneNumbers.push_back(phoneNumberObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Notice"].isNull()) + notice_ = value["Notice"].asString(); + +} + +std::string ListVoiceAppraiseResult::getMessage()const +{ + return message_; +} + +std::string ListVoiceAppraiseResult::getNotice()const +{ + return notice_; +} + +int ListVoiceAppraiseResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListVoiceAppraiseResult::ContactFlow ListVoiceAppraiseResult::getContactFlow()const +{ + return contactFlow_; +} + +std::string ListVoiceAppraiseResult::getCode()const +{ + return code_; +} + +bool ListVoiceAppraiseResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyAgentDeviceRequest.cc b/ccc/src/model/ModifyAgentDeviceRequest.cc new file mode 100644 index 000000000..92294766e --- /dev/null +++ b/ccc/src/model/ModifyAgentDeviceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyAgentDeviceRequest; + +ModifyAgentDeviceRequest::ModifyAgentDeviceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifyAgentDevice") +{} + +ModifyAgentDeviceRequest::~ModifyAgentDeviceRequest() +{} + +long ModifyAgentDeviceRequest::getAgentDeviceId()const +{ + return agentDeviceId_; +} + +void ModifyAgentDeviceRequest::setAgentDeviceId(long agentDeviceId) +{ + agentDeviceId_ = agentDeviceId; + setCoreParameter("AgentDeviceId", std::to_string(agentDeviceId)); +} + +std::string ModifyAgentDeviceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyAgentDeviceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int ModifyAgentDeviceRequest::getIsLogin()const +{ + return isLogin_; +} + +void ModifyAgentDeviceRequest::setIsLogin(int isLogin) +{ + isLogin_ = isLogin; + setCoreParameter("IsLogin", std::to_string(isLogin)); +} + +std::string ModifyAgentDeviceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyAgentDeviceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ModifyAgentDeviceResult.cc b/ccc/src/model/ModifyAgentDeviceResult.cc new file mode 100644 index 000000000..2075d3074 --- /dev/null +++ b/ccc/src/model/ModifyAgentDeviceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyAgentDeviceResult::ModifyAgentDeviceResult() : + ServiceResult() +{} + +ModifyAgentDeviceResult::ModifyAgentDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAgentDeviceResult::~ModifyAgentDeviceResult() +{} + +void ModifyAgentDeviceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifyAgentDeviceResult::getMessage()const +{ + return message_; +} + +int ModifyAgentDeviceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyAgentDeviceResult::getCode()const +{ + return code_; +} + +bool ModifyAgentDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyCabInstanceRequest.cc b/ccc/src/model/ModifyCabInstanceRequest.cc new file mode 100644 index 000000000..a44990a08 --- /dev/null +++ b/ccc/src/model/ModifyCabInstanceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyCabInstanceRequest; + +ModifyCabInstanceRequest::ModifyCabInstanceRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifyCabInstance") +{} + +ModifyCabInstanceRequest::~ModifyCabInstanceRequest() +{} + +int ModifyCabInstanceRequest::getMaxConcurrentConversation()const +{ + return maxConcurrentConversation_; +} + +void ModifyCabInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) +{ + maxConcurrentConversation_ = maxConcurrentConversation; + setCoreParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation)); +} + +std::string ModifyCabInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyCabInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ModifyCabInstanceRequest::getInstanceName()const +{ + return instanceName_; +} + +void ModifyCabInstanceRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setCoreParameter("InstanceName", instanceName); +} + +std::string ModifyCabInstanceRequest::getCallCenterInstanceId()const +{ + return callCenterInstanceId_; +} + +void ModifyCabInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId) +{ + callCenterInstanceId_ = callCenterInstanceId; + setCoreParameter("CallCenterInstanceId", callCenterInstanceId); +} + +std::string ModifyCabInstanceRequest::getInstanceDescription()const +{ + return instanceDescription_; +} + +void ModifyCabInstanceRequest::setInstanceDescription(const std::string& instanceDescription) +{ + instanceDescription_ = instanceDescription; + setCoreParameter("InstanceDescription", instanceDescription); +} + diff --git a/ccc/src/model/ModifyCabInstanceResult.cc b/ccc/src/model/ModifyCabInstanceResult.cc new file mode 100644 index 000000000..54131d539 --- /dev/null +++ b/ccc/src/model/ModifyCabInstanceResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyCabInstanceResult::ModifyCabInstanceResult() : + ServiceResult() +{} + +ModifyCabInstanceResult::ModifyCabInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCabInstanceResult::~ModifyCabInstanceResult() +{} + +void ModifyCabInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto instanceNode = value["Instance"]; + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["InstanceDescription"].isNull()) + instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); + if(!instanceNode["MaxConcurrentConversation"].isNull()) + instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); + if(!instanceNode["Owner"].isNull()) + instance_.owner = instanceNode["Owner"].asString(); + if(!instanceNode["CreationTime"].isNull()) + instance_.creationTime = std::stol(instanceNode["CreationTime"].asString()); + if(!instanceNode["CallCenterInstanceId"].isNull()) + instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifyCabInstanceResult::getMessage()const +{ + return message_; +} + +ModifyCabInstanceResult::Instance ModifyCabInstanceResult::getInstance()const +{ + return instance_; +} + +int ModifyCabInstanceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyCabInstanceResult::getCode()const +{ + return code_; +} + +bool ModifyCabInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyMediaRequest.cc b/ccc/src/model/ModifyMediaRequest.cc new file mode 100644 index 000000000..ac9de1357 --- /dev/null +++ b/ccc/src/model/ModifyMediaRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::ModifyMediaRequest; + +ModifyMediaRequest::ModifyMediaRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifyMedia") +{} + +ModifyMediaRequest::~ModifyMediaRequest() +{} + +std::string ModifyMediaRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyMediaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ModifyMediaRequest::getFileName()const +{ + return fileName_; +} + +void ModifyMediaRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setCoreParameter("FileName", fileName); +} + +std::string ModifyMediaRequest::getName()const +{ + return name_; +} + +void ModifyMediaRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string ModifyMediaRequest::getDescription()const +{ + return description_; +} + +void ModifyMediaRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string ModifyMediaRequest::getOssFilePath()const +{ + return ossFilePath_; +} + +void ModifyMediaRequest::setOssFilePath(const std::string& ossFilePath) +{ + ossFilePath_ = ossFilePath; + setCoreParameter("OssFilePath", ossFilePath); +} + +std::string ModifyMediaRequest::getUploadResult()const +{ + return uploadResult_; +} + +void ModifyMediaRequest::setUploadResult(const std::string& uploadResult) +{ + uploadResult_ = uploadResult; + setCoreParameter("UploadResult", uploadResult); +} + +std::string ModifyMediaRequest::getType()const +{ + return type_; +} + +void ModifyMediaRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string ModifyMediaRequest::getContent()const +{ + return content_; +} + +void ModifyMediaRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string ModifyMediaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyMediaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyMediaRequest::getOssFileName()const +{ + return ossFileName_; +} + +void ModifyMediaRequest::setOssFileName(const std::string& ossFileName) +{ + ossFileName_ = ossFileName; + setCoreParameter("OssFileName", ossFileName); +} + diff --git a/ccc/src/model/ModifyMediaResult.cc b/ccc/src/model/ModifyMediaResult.cc new file mode 100644 index 000000000..ae1fe3bc6 --- /dev/null +++ b/ccc/src/model/ModifyMediaResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyMediaResult::ModifyMediaResult() : + ServiceResult() +{} + +ModifyMediaResult::ModifyMediaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMediaResult::~ModifyMediaResult() +{} + +void ModifyMediaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto mediaUploadParamNode = value["MediaUploadParam"]; + if(!mediaUploadParamNode["Instance"].isNull()) + mediaUploadParam_.instance = mediaUploadParamNode["Instance"].asString(); + if(!mediaUploadParamNode["Name"].isNull()) + mediaUploadParam_.name = mediaUploadParamNode["Name"].asString(); + if(!mediaUploadParamNode["FileName"].isNull()) + mediaUploadParam_.fileName = mediaUploadParamNode["FileName"].asString(); + if(!mediaUploadParamNode["OssFileName"].isNull()) + mediaUploadParam_.ossFileName = mediaUploadParamNode["OssFileName"].asString(); + if(!mediaUploadParamNode["OssFilePath"].isNull()) + mediaUploadParam_.ossFilePath = mediaUploadParamNode["OssFilePath"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +ModifyMediaResult::MediaUploadParam ModifyMediaResult::getMediaUploadParam()const +{ + return mediaUploadParam_; +} + +std::string ModifyMediaResult::getMessage()const +{ + return message_; +} + +int ModifyMediaResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyMediaResult::getCode()const +{ + return code_; +} + +bool ModifyMediaResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyNotificationConfigRequest.cc b/ccc/src/model/ModifyNotificationConfigRequest.cc new file mode 100644 index 000000000..2c1103544 --- /dev/null +++ b/ccc/src/model/ModifyNotificationConfigRequest.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 + +using AlibabaCloud::CCC::Model::ModifyNotificationConfigRequest; + +ModifyNotificationConfigRequest::ModifyNotificationConfigRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifyNotificationConfig") +{} + +ModifyNotificationConfigRequest::~ModifyNotificationConfigRequest() +{} + +std::vector ModifyNotificationConfigRequest::getSubscriptions()const +{ + return subscriptions_; +} + +void ModifyNotificationConfigRequest::setSubscriptions(const std::vector& subscriptions) +{ + subscriptions_ = subscriptions; + int i = 0; + for(int i = 0; i!= subscriptions.size(); i++) { + auto obj = subscriptions.at(i); + std::string str ="Subscriptions."+ std::to_string(i); + setCoreParameter(str + ".DisplayName", obj.displayName); + setCoreParameter(str + ".Name", obj.name); + setCoreParameter(str + ".Selected", obj.selected ? "true" : "false"); + } +} + +std::string ModifyNotificationConfigRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyNotificationConfigRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ModifyNotificationConfigRequest::getAccessPoint()const +{ + return accessPoint_; +} + +void ModifyNotificationConfigRequest::setAccessPoint(const std::string& accessPoint) +{ + accessPoint_ = accessPoint; + setCoreParameter("AccessPoint", accessPoint); +} + +std::string ModifyNotificationConfigRequest::getTopic()const +{ + return topic_; +} + +void ModifyNotificationConfigRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setCoreParameter("Topic", topic); +} + +std::string ModifyNotificationConfigRequest::getProducerId()const +{ + return producerId_; +} + +void ModifyNotificationConfigRequest::setProducerId(const std::string& producerId) +{ + producerId_ = producerId; + setCoreParameter("ProducerId", producerId); +} + +std::string ModifyNotificationConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyNotificationConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ModifyNotificationConfigResult.cc b/ccc/src/model/ModifyNotificationConfigResult.cc new file mode 100644 index 000000000..05f7b1318 --- /dev/null +++ b/ccc/src/model/ModifyNotificationConfigResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyNotificationConfigResult::ModifyNotificationConfigResult() : + ServiceResult() +{} + +ModifyNotificationConfigResult::ModifyNotificationConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNotificationConfigResult::~ModifyNotificationConfigResult() +{} + +void ModifyNotificationConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSubscriptions = value["Subscriptions"]["SubscriptionsItem"]; + for (auto value : allSubscriptions) + { + SubscriptionsItem subscriptionsObject; + if(!value["Name"].isNull()) + subscriptionsObject.name = value["Name"].asString(); + if(!value["Selected"].isNull()) + subscriptionsObject.selected = value["Selected"].asString() == "true"; + if(!value["DisplayName"].isNull()) + subscriptionsObject.displayName = value["DisplayName"].asString(); + subscriptions_.push_back(subscriptionsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ProducerId"].isNull()) + producerId_ = value["ProducerId"].asString(); + if(!value["AccessPoint"].isNull()) + accessPoint_ = value["AccessPoint"].asString(); + if(!value["Topic"].isNull()) + topic_ = value["Topic"].asString(); + +} + +std::string ModifyNotificationConfigResult::getMessage()const +{ + return message_; +} + +std::vector ModifyNotificationConfigResult::getSubscriptions()const +{ + return subscriptions_; +} + +std::string ModifyNotificationConfigResult::getProducerId()const +{ + return producerId_; +} + +std::string ModifyNotificationConfigResult::getAccessPoint()const +{ + return accessPoint_; +} + +int ModifyNotificationConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyNotificationConfigResult::getTopic()const +{ + return topic_; +} + +std::string ModifyNotificationConfigResult::getCode()const +{ + return code_; +} + +bool ModifyNotificationConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyPhoneNumberRequest.cc b/ccc/src/model/ModifyPhoneNumberRequest.cc index d5d7a1b3c..6d89dd6e1 100644 --- a/ccc/src/model/ModifyPhoneNumberRequest.cc +++ b/ccc/src/model/ModifyPhoneNumberRequest.cc @@ -33,7 +33,7 @@ std::string ModifyPhoneNumberRequest::getContactFlowId()const void ModifyPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId) { contactFlowId_ = contactFlowId; - setParameter("ContactFlowId", contactFlowId); + setCoreParameter("ContactFlowId", contactFlowId); } std::string ModifyPhoneNumberRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ModifyPhoneNumberRequest::getInstanceId()const void ModifyPhoneNumberRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ModifyPhoneNumberRequest::getPhoneNumberId()const @@ -55,7 +55,7 @@ std::string ModifyPhoneNumberRequest::getPhoneNumberId()const void ModifyPhoneNumberRequest::setPhoneNumberId(const std::string& phoneNumberId) { phoneNumberId_ = phoneNumberId; - setParameter("PhoneNumberId", phoneNumberId); + setCoreParameter("PhoneNumberId", phoneNumberId); } std::string ModifyPhoneNumberRequest::getUsage()const @@ -66,7 +66,19 @@ std::string ModifyPhoneNumberRequest::getUsage()const void ModifyPhoneNumberRequest::setUsage(const std::string& usage) { usage_ = usage; - setParameter("Usage", usage); + setCoreParameter("Usage", usage); +} + +std::vector ModifyPhoneNumberRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifyPhoneNumberRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); } std::string ModifyPhoneNumberRequest::getAccessKeyId()const @@ -77,6 +89,6 @@ std::string ModifyPhoneNumberRequest::getAccessKeyId()const void ModifyPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ModifyPhoneNumberResult.cc b/ccc/src/model/ModifyPhoneNumberResult.cc index 6ba069f4c..9dfbc363c 100644 --- a/ccc/src/model/ModifyPhoneNumberResult.cc +++ b/ccc/src/model/ModifyPhoneNumberResult.cc @@ -35,10 +35,13 @@ ModifyPhoneNumberResult::~ModifyPhoneNumberResult() void ModifyPhoneNumberResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto phoneNumberNode = value["PhoneNumber"]; if(!phoneNumberNode["PhoneNumberId"].isNull()) @@ -59,6 +62,16 @@ void ModifyPhoneNumberResult::parse(const std::string &payload) phoneNumber_.usage = phoneNumberNode["Usage"].asString(); if(!phoneNumberNode["Trunks"].isNull()) phoneNumber_.trunks = std::stoi(phoneNumberNode["Trunks"].asString()); + auto allSkillGroups = value["SkillGroups"]["SkillGroup"]; + for (auto value : allSkillGroups) + { + PhoneNumber::SkillGroup skillGroupObject; + if(!value["SkillGroupId"].isNull()) + skillGroupObject.skillGroupId = value["SkillGroupId"].asString(); + if(!value["SkillGroupName"].isNull()) + skillGroupObject.skillGroupName = value["SkillGroupName"].asString(); + phoneNumber_.skillGroups.push_back(skillGroupObject); + } auto contactFlowNode = phoneNumberNode["ContactFlow"]; if(!contactFlowNode["ContactFlowId"].isNull()) phoneNumber_.contactFlow.contactFlowId = contactFlowNode["ContactFlowId"].asString(); diff --git a/ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc b/ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc new file mode 100644 index 000000000..bfd38e758 --- /dev/null +++ b/ccc/src/model/ModifyPrivacyNumberCallDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::ModifyPrivacyNumberCallDetailRequest; + +ModifyPrivacyNumberCallDetailRequest::ModifyPrivacyNumberCallDetailRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifyPrivacyNumberCallDetail") +{} + +ModifyPrivacyNumberCallDetailRequest::~ModifyPrivacyNumberCallDetailRequest() +{} + +std::string ModifyPrivacyNumberCallDetailRequest::getCallId()const +{ + return callId_; +} + +void ModifyPrivacyNumberCallDetailRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setCoreParameter("CallId", callId); +} + +std::string ModifyPrivacyNumberCallDetailRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyPrivacyNumberCallDetailRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ModifyPrivacyNumberCallDetailRequest::getContactId()const +{ + return contactId_; +} + +void ModifyPrivacyNumberCallDetailRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setCoreParameter("ContactId", contactId); +} + +std::string ModifyPrivacyNumberCallDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyPrivacyNumberCallDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc b/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc new file mode 100644 index 000000000..6ca20b4f7 --- /dev/null +++ b/ccc/src/model/ModifyPrivacyNumberCallDetailResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifyPrivacyNumberCallDetailResult::ModifyPrivacyNumberCallDetailResult() : + ServiceResult() +{} + +ModifyPrivacyNumberCallDetailResult::ModifyPrivacyNumberCallDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPrivacyNumberCallDetailResult::~ModifyPrivacyNumberCallDetailResult() +{} + +void ModifyPrivacyNumberCallDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifyPrivacyNumberCallDetailResult::getMessage()const +{ + return message_; +} + +int ModifyPrivacyNumberCallDetailResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyPrivacyNumberCallDetailResult::getCode()const +{ + return code_; +} + +bool ModifyPrivacyNumberCallDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifyScenarioRequest.cc b/ccc/src/model/ModifyScenarioRequest.cc index 881082edf..0eed0980f 100644 --- a/ccc/src/model/ModifyScenarioRequest.cc +++ b/ccc/src/model/ModifyScenarioRequest.cc @@ -33,7 +33,7 @@ std::string ModifyScenarioRequest::getVariables()const void ModifyScenarioRequest::setVariables(const std::string& variables) { variables_ = variables; - setParameter("Variables", variables); + setCoreParameter("Variables", variables); } std::string ModifyScenarioRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ModifyScenarioRequest::getInstanceId()const void ModifyScenarioRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ModifyScenarioRequest::getName()const @@ -55,7 +55,7 @@ std::string ModifyScenarioRequest::getName()const void ModifyScenarioRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyScenarioRequest::getDescription()const @@ -66,7 +66,7 @@ std::string ModifyScenarioRequest::getDescription()const void ModifyScenarioRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyScenarioRequest::getScenarioId()const @@ -77,6 +77,6 @@ std::string ModifyScenarioRequest::getScenarioId()const void ModifyScenarioRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/ModifyScenarioResult.cc b/ccc/src/model/ModifyScenarioResult.cc index 2cf071e8b..704ea0d66 100644 --- a/ccc/src/model/ModifyScenarioResult.cc +++ b/ccc/src/model/ModifyScenarioResult.cc @@ -35,10 +35,13 @@ ModifyScenarioResult::~ModifyScenarioResult() void ModifyScenarioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto scenarioNode = value["Scenario"]; if(!scenarioNode["ScenarioId"].isNull()) diff --git a/ccc/src/model/ModifySkillGroupOfUserRequest.cc b/ccc/src/model/ModifySkillGroupOfUserRequest.cc new file mode 100644 index 000000000..37e8c8c8a --- /dev/null +++ b/ccc/src/model/ModifySkillGroupOfUserRequest.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 + +using AlibabaCloud::CCC::Model::ModifySkillGroupOfUserRequest; + +ModifySkillGroupOfUserRequest::ModifySkillGroupOfUserRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifySkillGroupOfUser") +{} + +ModifySkillGroupOfUserRequest::~ModifySkillGroupOfUserRequest() +{} + +std::vector ModifySkillGroupOfUserRequest::getSkillLevel()const +{ + return skillLevel_; +} + +void ModifySkillGroupOfUserRequest::setSkillLevel(const std::vector& skillLevel) +{ + skillLevel_ = skillLevel; + for(int i = 0; i!= skillLevel.size(); i++) + setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); +} + +std::string ModifySkillGroupOfUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySkillGroupOfUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::vector ModifySkillGroupOfUserRequest::getRoleId()const +{ + return roleId_; +} + +void ModifySkillGroupOfUserRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int i = 0; i!= roleId.size(); i++) + setCoreParameter("RoleId."+ std::to_string(i), roleId.at(i)); +} + +std::vector ModifySkillGroupOfUserRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifySkillGroupOfUserRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); +} + +std::string ModifySkillGroupOfUserRequest::getUserId()const +{ + return userId_; +} + +void ModifySkillGroupOfUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string ModifySkillGroupOfUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySkillGroupOfUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ModifySkillGroupOfUserResult.cc b/ccc/src/model/ModifySkillGroupOfUserResult.cc new file mode 100644 index 000000000..93131713a --- /dev/null +++ b/ccc/src/model/ModifySkillGroupOfUserResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult() : + ServiceResult() +{} + +ModifySkillGroupOfUserResult::ModifySkillGroupOfUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySkillGroupOfUserResult::~ModifySkillGroupOfUserResult() +{} + +void ModifySkillGroupOfUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifySkillGroupOfUserResult::getMessage()const +{ + return message_; +} + +int ModifySkillGroupOfUserResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifySkillGroupOfUserResult::getCode()const +{ + return code_; +} + +bool ModifySkillGroupOfUserResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc b/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.cc new file mode 100644 index 000000000..3474cd067 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupOutboundNumbersRequest.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 + +using AlibabaCloud::CCC::Model::ModifySkillGroupOutboundNumbersRequest; + +ModifySkillGroupOutboundNumbersRequest::ModifySkillGroupOutboundNumbersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "ModifySkillGroupOutboundNumbers") +{} + +ModifySkillGroupOutboundNumbersRequest::~ModifySkillGroupOutboundNumbersRequest() +{} + +std::string ModifySkillGroupOutboundNumbersRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifySkillGroupOutboundNumbersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::vector ModifySkillGroupOutboundNumbersRequest::getOutboundPhoneNumberId()const +{ + return outboundPhoneNumberId_; +} + +void ModifySkillGroupOutboundNumbersRequest::setOutboundPhoneNumberId(const std::vector& outboundPhoneNumberId) +{ + outboundPhoneNumberId_ = outboundPhoneNumberId; + for(int i = 0; i!= outboundPhoneNumberId.size(); i++) + setCoreParameter("OutboundPhoneNumberId."+ std::to_string(i), outboundPhoneNumberId.at(i)); +} + +std::string ModifySkillGroupOutboundNumbersRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ModifySkillGroupOutboundNumbersRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +int ModifySkillGroupOutboundNumbersRequest::getOperationType()const +{ + return operationType_; +} + +void ModifySkillGroupOutboundNumbersRequest::setOperationType(int operationType) +{ + operationType_ = operationType; + setCoreParameter("OperationType", std::to_string(operationType)); +} + +std::string ModifySkillGroupOutboundNumbersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySkillGroupOutboundNumbersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc b/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc new file mode 100644 index 000000000..f3f0f0fa2 --- /dev/null +++ b/ccc/src/model/ModifySkillGroupOutboundNumbersResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +ModifySkillGroupOutboundNumbersResult::ModifySkillGroupOutboundNumbersResult() : + ServiceResult() +{} + +ModifySkillGroupOutboundNumbersResult::ModifySkillGroupOutboundNumbersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySkillGroupOutboundNumbersResult::~ModifySkillGroupOutboundNumbersResult() +{} + +void ModifySkillGroupOutboundNumbersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifySkillGroupOutboundNumbersResult::getMessage()const +{ + return message_; +} + +int ModifySkillGroupOutboundNumbersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifySkillGroupOutboundNumbersResult::getCode()const +{ + return code_; +} + +bool ModifySkillGroupOutboundNumbersResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/ModifySkillGroupRequest.cc b/ccc/src/model/ModifySkillGroupRequest.cc index badd42a83..cdb03a785 100644 --- a/ccc/src/model/ModifySkillGroupRequest.cc +++ b/ccc/src/model/ModifySkillGroupRequest.cc @@ -34,7 +34,7 @@ void ModifySkillGroupRequest::setSkillLevel(const std::vector& skillLevel) { skillLevel_ = skillLevel; for(int i = 0; i!= skillLevel.size(); i++) - setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); + setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); } std::string ModifySkillGroupRequest::getInstanceId()const @@ -45,7 +45,18 @@ std::string ModifySkillGroupRequest::getInstanceId()const void ModifySkillGroupRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); +} + +bool ModifySkillGroupRequest::getAllowPrivateOutboundNumber()const +{ + return allowPrivateOutboundNumber_; +} + +void ModifySkillGroupRequest::setAllowPrivateOutboundNumber(bool allowPrivateOutboundNumber) +{ + allowPrivateOutboundNumber_ = allowPrivateOutboundNumber; + setCoreParameter("AllowPrivateOutboundNumber", allowPrivateOutboundNumber ? "true" : "false"); } std::vector ModifySkillGroupRequest::getOutboundPhoneNumberId()const @@ -57,7 +68,7 @@ void ModifySkillGroupRequest::setOutboundPhoneNumberId(const std::vector ModifySkillGroupRequest::getUserId()const @@ -102,7 +124,7 @@ void ModifySkillGroupRequest::setUserId(const std::vector& userId) { userId_ = userId; for(int i = 0; i!= userId.size(); i++) - setParameter("UserId."+ std::to_string(i), userId.at(i)); + setCoreParameter("UserId."+ std::to_string(i), userId.at(i)); } std::string ModifySkillGroupRequest::getAccessKeyId()const @@ -113,6 +135,6 @@ std::string ModifySkillGroupRequest::getAccessKeyId()const void ModifySkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ModifySkillGroupResult.cc b/ccc/src/model/ModifySkillGroupResult.cc index 0eb41fbdc..4a350d636 100644 --- a/ccc/src/model/ModifySkillGroupResult.cc +++ b/ccc/src/model/ModifySkillGroupResult.cc @@ -35,10 +35,13 @@ ModifySkillGroupResult::~ModifySkillGroupResult() void ModifySkillGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/ModifySurveyRequest.cc b/ccc/src/model/ModifySurveyRequest.cc index a000228ee..c021b6da4 100644 --- a/ccc/src/model/ModifySurveyRequest.cc +++ b/ccc/src/model/ModifySurveyRequest.cc @@ -33,7 +33,7 @@ std::string ModifySurveyRequest::getSurveyId()const void ModifySurveyRequest::setSurveyId(const std::string& surveyId) { surveyId_ = surveyId; - setParameter("SurveyId", surveyId); + setCoreParameter("SurveyId", surveyId); } std::string ModifySurveyRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ModifySurveyRequest::getInstanceId()const void ModifySurveyRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ModifySurveyRequest::getRole()const @@ -55,7 +55,7 @@ std::string ModifySurveyRequest::getRole()const void ModifySurveyRequest::setRole(const std::string& role) { role_ = role; - setParameter("Role", role); + setCoreParameter("Role", role); } int ModifySurveyRequest::getRound()const @@ -66,7 +66,7 @@ int ModifySurveyRequest::getRound()const void ModifySurveyRequest::setRound(int round) { round_ = round; - setParameter("Round", std::to_string(round)); + setCoreParameter("Round", std::to_string(round)); } std::string ModifySurveyRequest::getFlowJson()const @@ -77,7 +77,7 @@ std::string ModifySurveyRequest::getFlowJson()const void ModifySurveyRequest::setFlowJson(const std::string& flowJson) { flowJson_ = flowJson; - setParameter("FlowJson", flowJson); + setCoreParameter("FlowJson", flowJson); } std::string ModifySurveyRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifySurveyRequest::getName()const void ModifySurveyRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifySurveyRequest::getGlobalQuestions()const @@ -99,7 +99,7 @@ std::string ModifySurveyRequest::getGlobalQuestions()const void ModifySurveyRequest::setGlobalQuestions(const std::string& globalQuestions) { globalQuestions_ = globalQuestions; - setParameter("GlobalQuestions", globalQuestions); + setCoreParameter("GlobalQuestions", globalQuestions); } std::string ModifySurveyRequest::getDescription()const @@ -110,7 +110,7 @@ std::string ModifySurveyRequest::getDescription()const void ModifySurveyRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifySurveyRequest::getCorpora()const @@ -121,7 +121,7 @@ std::string ModifySurveyRequest::getCorpora()const void ModifySurveyRequest::setCorpora(const std::string& corpora) { corpora_ = corpora; - setParameter("Corpora", corpora); + setCoreParameter("Corpora", corpora); } std::string ModifySurveyRequest::getSpeechOptimizationParam()const @@ -132,7 +132,7 @@ std::string ModifySurveyRequest::getSpeechOptimizationParam()const void ModifySurveyRequest::setSpeechOptimizationParam(const std::string& speechOptimizationParam) { speechOptimizationParam_ = speechOptimizationParam; - setParameter("SpeechOptimizationParam", speechOptimizationParam); + setCoreParameter("SpeechOptimizationParam", speechOptimizationParam); } std::string ModifySurveyRequest::getScenarioId()const @@ -143,7 +143,7 @@ std::string ModifySurveyRequest::getScenarioId()const void ModifySurveyRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } std::string ModifySurveyRequest::getFlowId()const @@ -154,6 +154,6 @@ std::string ModifySurveyRequest::getFlowId()const void ModifySurveyRequest::setFlowId(const std::string& flowId) { flowId_ = flowId; - setParameter("FlowId", flowId); + setCoreParameter("FlowId", flowId); } diff --git a/ccc/src/model/ModifySurveyResult.cc b/ccc/src/model/ModifySurveyResult.cc index f4dec147b..7f44ca6fc 100644 --- a/ccc/src/model/ModifySurveyResult.cc +++ b/ccc/src/model/ModifySurveyResult.cc @@ -35,10 +35,13 @@ ModifySurveyResult::~ModifySurveyResult() void ModifySurveyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto surveyNode = value["Survey"]; if(!surveyNode["Id"].isNull()) diff --git a/ccc/src/model/ModifyUserRequest.cc b/ccc/src/model/ModifyUserRequest.cc index d3b6bfbfd..bde1e5ae1 100644 --- a/ccc/src/model/ModifyUserRequest.cc +++ b/ccc/src/model/ModifyUserRequest.cc @@ -25,6 +25,17 @@ ModifyUserRequest::ModifyUserRequest() : ModifyUserRequest::~ModifyUserRequest() {} +std::string ModifyUserRequest::getPrivateOutboundNumberId()const +{ + return privateOutboundNumberId_; +} + +void ModifyUserRequest::setPrivateOutboundNumberId(const std::string& privateOutboundNumberId) +{ + privateOutboundNumberId_ = privateOutboundNumberId; + setCoreParameter("PrivateOutboundNumberId", privateOutboundNumberId); +} + std::vector ModifyUserRequest::getSkillLevel()const { return skillLevel_; @@ -34,7 +45,7 @@ void ModifyUserRequest::setSkillLevel(const std::vector& skillLevel) { skillLevel_ = skillLevel; for(int i = 0; i!= skillLevel.size(); i++) - setParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); + setCoreParameter("SkillLevel."+ std::to_string(i), std::to_string(skillLevel.at(i))); } std::string ModifyUserRequest::getInstanceId()const @@ -45,7 +56,7 @@ std::string ModifyUserRequest::getInstanceId()const void ModifyUserRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ModifyUserRequest::getPhone()const @@ -56,7 +67,7 @@ std::string ModifyUserRequest::getPhone()const void ModifyUserRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); + setCoreParameter("Phone", phone); } std::vector ModifyUserRequest::getRoleId()const @@ -68,7 +79,7 @@ void ModifyUserRequest::setRoleId(const std::vector& roleId) { roleId_ = roleId; for(int i = 0; i!= roleId.size(); i++) - setParameter("RoleId."+ std::to_string(i), roleId.at(i)); + setCoreParameter("RoleId."+ std::to_string(i), roleId.at(i)); } std::string ModifyUserRequest::getDisplayName()const @@ -79,7 +90,7 @@ std::string ModifyUserRequest::getDisplayName()const void ModifyUserRequest::setDisplayName(const std::string& displayName) { displayName_ = displayName; - setParameter("DisplayName", displayName); + setCoreParameter("DisplayName", displayName); } std::vector ModifyUserRequest::getSkillGroupId()const @@ -91,7 +102,7 @@ void ModifyUserRequest::setSkillGroupId(const std::vector& skillGro { skillGroupId_ = skillGroupId; for(int i = 0; i!= skillGroupId.size(); i++) - setParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); } std::string ModifyUserRequest::getUserId()const @@ -102,7 +113,7 @@ std::string ModifyUserRequest::getUserId()const void ModifyUserRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string ModifyUserRequest::getEmail()const @@ -113,7 +124,7 @@ std::string ModifyUserRequest::getEmail()const void ModifyUserRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string ModifyUserRequest::getAccessKeyId()const @@ -124,6 +135,6 @@ std::string ModifyUserRequest::getAccessKeyId()const void ModifyUserRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/ModifyUserResult.cc b/ccc/src/model/ModifyUserResult.cc index 2a9152f0a..8b54852de 100644 --- a/ccc/src/model/ModifyUserResult.cc +++ b/ccc/src/model/ModifyUserResult.cc @@ -35,10 +35,13 @@ ModifyUserResult::~ModifyUserResult() void ModifyUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/PickGlobalOutboundNumbersRequest.cc b/ccc/src/model/PickGlobalOutboundNumbersRequest.cc new file mode 100644 index 000000000..604d70245 --- /dev/null +++ b/ccc/src/model/PickGlobalOutboundNumbersRequest.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 + +using AlibabaCloud::CCC::Model::PickGlobalOutboundNumbersRequest; + +PickGlobalOutboundNumbersRequest::PickGlobalOutboundNumbersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PickGlobalOutboundNumbers") +{} + +PickGlobalOutboundNumbersRequest::~PickGlobalOutboundNumbersRequest() +{} + +bool PickGlobalOutboundNumbersRequest::getIsVirtual()const +{ + return isVirtual_; +} + +void PickGlobalOutboundNumbersRequest::setIsVirtual(bool isVirtual) +{ + isVirtual_ = isVirtual; + setCoreParameter("IsVirtual", isVirtual ? "true" : "false"); +} + +std::string PickGlobalOutboundNumbersRequest::getInstanceId()const +{ + return instanceId_; +} + +void PickGlobalOutboundNumbersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::vector PickGlobalOutboundNumbersRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void PickGlobalOutboundNumbersRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); +} + +int PickGlobalOutboundNumbersRequest::getCount()const +{ + return count_; +} + +void PickGlobalOutboundNumbersRequest::setCount(int count) +{ + count_ = count; + setCoreParameter("Count", std::to_string(count)); +} + +std::string PickGlobalOutboundNumbersRequest::getCalleeNumber()const +{ + return calleeNumber_; +} + +void PickGlobalOutboundNumbersRequest::setCalleeNumber(const std::string& calleeNumber) +{ + calleeNumber_ = calleeNumber; + setCoreParameter("CalleeNumber", calleeNumber); +} + +std::string PickGlobalOutboundNumbersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PickGlobalOutboundNumbersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/PickGlobalOutboundNumbersResult.cc b/ccc/src/model/PickGlobalOutboundNumbersResult.cc new file mode 100644 index 000000000..de30490c6 --- /dev/null +++ b/ccc/src/model/PickGlobalOutboundNumbersResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +PickGlobalOutboundNumbersResult::PickGlobalOutboundNumbersResult() : + ServiceResult() +{} + +PickGlobalOutboundNumbersResult::PickGlobalOutboundNumbersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PickGlobalOutboundNumbersResult::~PickGlobalOutboundNumbersResult() +{} + +void PickGlobalOutboundNumbersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDialNumberPairs = value["DialNumberPairs"]["DialNumberPair"]; + for (auto value : allDialNumberPairs) + { + DialNumberPair dialNumberPairsObject; + auto calleeNode = value["Callee"]; + if(!calleeNode["Number"].isNull()) + dialNumberPairsObject.callee.number = calleeNode["Number"].asString(); + if(!calleeNode["Province"].isNull()) + dialNumberPairsObject.callee.province = calleeNode["Province"].asString(); + if(!calleeNode["City"].isNull()) + dialNumberPairsObject.callee.city = calleeNode["City"].asString(); + auto callerNode = value["Caller"]; + if(!callerNode["Number"].isNull()) + dialNumberPairsObject.caller.number = callerNode["Number"].asString(); + if(!callerNode["Province"].isNull()) + dialNumberPairsObject.caller.province = callerNode["Province"].asString(); + if(!callerNode["City"].isNull()) + dialNumberPairsObject.caller.city = callerNode["City"].asString(); + dialNumberPairs_.push_back(dialNumberPairsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PickGlobalOutboundNumbersResult::getMessage()const +{ + return message_; +} + +int PickGlobalOutboundNumbersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PickGlobalOutboundNumbersResult::getCode()const +{ + return code_; +} + +bool PickGlobalOutboundNumbersResult::getSuccess()const +{ + return success_; +} + +std::vector PickGlobalOutboundNumbersResult::getDialNumberPairs()const +{ + return dialNumberPairs_; +} + diff --git a/ccc/src/model/PickLocalNumberRequest.cc b/ccc/src/model/PickLocalNumberRequest.cc index ea004f62a..63bedf0b1 100644 --- a/ccc/src/model/PickLocalNumberRequest.cc +++ b/ccc/src/model/PickLocalNumberRequest.cc @@ -33,7 +33,7 @@ std::string PickLocalNumberRequest::getInstanceId()const void PickLocalNumberRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector PickLocalNumberRequest::getCandidateNumber()const @@ -45,7 +45,7 @@ void PickLocalNumberRequest::setCandidateNumber(const std::vector& { candidateNumber_ = candidateNumber; for(int i = 0; i!= candidateNumber.size(); i++) - setParameter("CandidateNumber."+ std::to_string(i), candidateNumber.at(i)); + setCoreParameter("CandidateNumber."+ std::to_string(i), candidateNumber.at(i)); } std::string PickLocalNumberRequest::getCalleeNumber()const @@ -56,7 +56,7 @@ std::string PickLocalNumberRequest::getCalleeNumber()const void PickLocalNumberRequest::setCalleeNumber(const std::string& calleeNumber) { calleeNumber_ = calleeNumber; - setParameter("CalleeNumber", calleeNumber); + setCoreParameter("CalleeNumber", calleeNumber); } std::string PickLocalNumberRequest::getAccessKeyId()const @@ -67,6 +67,6 @@ std::string PickLocalNumberRequest::getAccessKeyId()const void PickLocalNumberRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/PickLocalNumberResult.cc b/ccc/src/model/PickLocalNumberResult.cc index 0c5469d9f..148df9aef 100644 --- a/ccc/src/model/PickLocalNumberResult.cc +++ b/ccc/src/model/PickLocalNumberResult.cc @@ -35,10 +35,13 @@ PickLocalNumberResult::~PickLocalNumberResult() void PickLocalNumberResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto calleeNode = dataNode["Callee"]; diff --git a/ccc/src/model/PickOutboundNumbersByTagsRequest.cc b/ccc/src/model/PickOutboundNumbersByTagsRequest.cc new file mode 100644 index 000000000..703c6be09 --- /dev/null +++ b/ccc/src/model/PickOutboundNumbersByTagsRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::PickOutboundNumbersByTagsRequest; + +PickOutboundNumbersByTagsRequest::PickOutboundNumbersByTagsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PickOutboundNumbersByTags") +{} + +PickOutboundNumbersByTagsRequest::~PickOutboundNumbersByTagsRequest() +{} + +std::vector PickOutboundNumbersByTagsRequest::getPrioritizedCallerArea()const +{ + return prioritizedCallerArea_; +} + +void PickOutboundNumbersByTagsRequest::setPrioritizedCallerArea(const std::vector& prioritizedCallerArea) +{ + prioritizedCallerArea_ = prioritizedCallerArea; + for(int i = 0; i!= prioritizedCallerArea.size(); i++) + setCoreParameter("PrioritizedCallerArea."+ std::to_string(i), prioritizedCallerArea.at(i)); +} + +std::string PickOutboundNumbersByTagsRequest::getInstanceId()const +{ + return instanceId_; +} + +void PickOutboundNumbersByTagsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::vector PickOutboundNumbersByTagsRequest::getServiceTag()const +{ + return serviceTag_; +} + +void PickOutboundNumbersByTagsRequest::setServiceTag(const std::vector& serviceTag) +{ + serviceTag_ = serviceTag; + for(int i = 0; i!= serviceTag.size(); i++) + setCoreParameter("ServiceTag."+ std::to_string(i), serviceTag.at(i)); +} + +std::vector PickOutboundNumbersByTagsRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void PickOutboundNumbersByTagsRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int i = 0; i!= skillGroupId.size(); i++) + setCoreParameter("SkillGroupId."+ std::to_string(i), skillGroupId.at(i)); +} + +int PickOutboundNumbersByTagsRequest::getCount()const +{ + return count_; +} + +void PickOutboundNumbersByTagsRequest::setCount(int count) +{ + count_ = count; + setCoreParameter("Count", std::to_string(count)); +} + +std::string PickOutboundNumbersByTagsRequest::getCalleeNumber()const +{ + return calleeNumber_; +} + +void PickOutboundNumbersByTagsRequest::setCalleeNumber(const std::string& calleeNumber) +{ + calleeNumber_ = calleeNumber; + setCoreParameter("CalleeNumber", calleeNumber); +} + +std::string PickOutboundNumbersByTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PickOutboundNumbersByTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/PickOutboundNumbersByTagsResult.cc b/ccc/src/model/PickOutboundNumbersByTagsResult.cc new file mode 100644 index 000000000..afd33b025 --- /dev/null +++ b/ccc/src/model/PickOutboundNumbersByTagsResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +PickOutboundNumbersByTagsResult::PickOutboundNumbersByTagsResult() : + ServiceResult() +{} + +PickOutboundNumbersByTagsResult::PickOutboundNumbersByTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PickOutboundNumbersByTagsResult::~PickOutboundNumbersByTagsResult() +{} + +void PickOutboundNumbersByTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDialNumberPairs = value["DialNumberPairs"]["DialNumberPair"]; + for (auto value : allDialNumberPairs) + { + DialNumberPair dialNumberPairsObject; + auto calleeNode = value["Callee"]; + if(!calleeNode["Number"].isNull()) + dialNumberPairsObject.callee.number = calleeNode["Number"].asString(); + if(!calleeNode["Province"].isNull()) + dialNumberPairsObject.callee.province = calleeNode["Province"].asString(); + if(!calleeNode["City"].isNull()) + dialNumberPairsObject.callee.city = calleeNode["City"].asString(); + auto callerNode = value["Caller"]; + if(!callerNode["Number"].isNull()) + dialNumberPairsObject.caller.number = callerNode["Number"].asString(); + if(!callerNode["Province"].isNull()) + dialNumberPairsObject.caller.province = callerNode["Province"].asString(); + if(!callerNode["City"].isNull()) + dialNumberPairsObject.caller.city = callerNode["City"].asString(); + dialNumberPairs_.push_back(dialNumberPairsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PickOutboundNumbersByTagsResult::getMessage()const +{ + return message_; +} + +int PickOutboundNumbersByTagsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PickOutboundNumbersByTagsResult::getCode()const +{ + return code_; +} + +bool PickOutboundNumbersByTagsResult::getSuccess()const +{ + return success_; +} + +std::vector PickOutboundNumbersByTagsResult::getDialNumberPairs()const +{ + return dialNumberPairs_; +} + diff --git a/ccc/src/model/PickOutboundNumbersRequest.cc b/ccc/src/model/PickOutboundNumbersRequest.cc new file mode 100644 index 000000000..00ca2305a --- /dev/null +++ b/ccc/src/model/PickOutboundNumbersRequest.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 + +using AlibabaCloud::CCC::Model::PickOutboundNumbersRequest; + +PickOutboundNumbersRequest::PickOutboundNumbersRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PickOutboundNumbers") +{} + +PickOutboundNumbersRequest::~PickOutboundNumbersRequest() +{} + +std::string PickOutboundNumbersRequest::getInstanceId()const +{ + return instanceId_; +} + +void PickOutboundNumbersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int PickOutboundNumbersRequest::getCount()const +{ + return count_; +} + +void PickOutboundNumbersRequest::setCount(int count) +{ + count_ = count; + setCoreParameter("Count", std::to_string(count)); +} + +std::vector PickOutboundNumbersRequest::getCandidateNumber()const +{ + return candidateNumber_; +} + +void PickOutboundNumbersRequest::setCandidateNumber(const std::vector& candidateNumber) +{ + candidateNumber_ = candidateNumber; + for(int i = 0; i!= candidateNumber.size(); i++) + setCoreParameter("CandidateNumber."+ std::to_string(i), candidateNumber.at(i)); +} + +std::string PickOutboundNumbersRequest::getCalleeNumber()const +{ + return calleeNumber_; +} + +void PickOutboundNumbersRequest::setCalleeNumber(const std::string& calleeNumber) +{ + calleeNumber_ = calleeNumber; + setCoreParameter("CalleeNumber", calleeNumber); +} + +std::string PickOutboundNumbersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PickOutboundNumbersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/PickOutboundNumbersResult.cc b/ccc/src/model/PickOutboundNumbersResult.cc new file mode 100644 index 000000000..2146c043e --- /dev/null +++ b/ccc/src/model/PickOutboundNumbersResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +PickOutboundNumbersResult::PickOutboundNumbersResult() : + ServiceResult() +{} + +PickOutboundNumbersResult::PickOutboundNumbersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PickOutboundNumbersResult::~PickOutboundNumbersResult() +{} + +void PickOutboundNumbersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDialNumberPairs = value["DialNumberPairs"]["DialNumberPair"]; + for (auto value : allDialNumberPairs) + { + DialNumberPair dialNumberPairsObject; + auto calleeNode = value["Callee"]; + if(!calleeNode["Number"].isNull()) + dialNumberPairsObject.callee.number = calleeNode["Number"].asString(); + if(!calleeNode["Province"].isNull()) + dialNumberPairsObject.callee.province = calleeNode["Province"].asString(); + if(!calleeNode["City"].isNull()) + dialNumberPairsObject.callee.city = calleeNode["City"].asString(); + auto callerNode = value["Caller"]; + if(!callerNode["Number"].isNull()) + dialNumberPairsObject.caller.number = callerNode["Number"].asString(); + if(!callerNode["Province"].isNull()) + dialNumberPairsObject.caller.province = callerNode["Province"].asString(); + if(!callerNode["City"].isNull()) + dialNumberPairsObject.caller.city = callerNode["City"].asString(); + dialNumberPairs_.push_back(dialNumberPairsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PickOutboundNumbersResult::getMessage()const +{ + return message_; +} + +int PickOutboundNumbersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PickOutboundNumbersResult::getCode()const +{ + return code_; +} + +bool PickOutboundNumbersResult::getSuccess()const +{ + return success_; +} + +std::vector PickOutboundNumbersResult::getDialNumberPairs()const +{ + return dialNumberPairs_; +} + diff --git a/ccc/src/model/PreCreateMediaRequest.cc b/ccc/src/model/PreCreateMediaRequest.cc new file mode 100644 index 000000000..a014ee79f --- /dev/null +++ b/ccc/src/model/PreCreateMediaRequest.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 + +using AlibabaCloud::CCC::Model::PreCreateMediaRequest; + +PreCreateMediaRequest::PreCreateMediaRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PreCreateMedia") +{} + +PreCreateMediaRequest::~PreCreateMediaRequest() +{} + +std::string PreCreateMediaRequest::getInstanceId()const +{ + return instanceId_; +} + +void PreCreateMediaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string PreCreateMediaRequest::getFileName()const +{ + return fileName_; +} + +void PreCreateMediaRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setCoreParameter("FileName", fileName); +} + +std::string PreCreateMediaRequest::getName()const +{ + return name_; +} + +void PreCreateMediaRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string PreCreateMediaRequest::getDescription()const +{ + return description_; +} + +void PreCreateMediaRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string PreCreateMediaRequest::getType()const +{ + return type_; +} + +void PreCreateMediaRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string PreCreateMediaRequest::getContent()const +{ + return content_; +} + +void PreCreateMediaRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string PreCreateMediaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PreCreateMediaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/PreCreateMediaResult.cc b/ccc/src/model/PreCreateMediaResult.cc new file mode 100644 index 000000000..431a0adb0 --- /dev/null +++ b/ccc/src/model/PreCreateMediaResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +PreCreateMediaResult::PreCreateMediaResult() : + ServiceResult() +{} + +PreCreateMediaResult::PreCreateMediaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreCreateMediaResult::~PreCreateMediaResult() +{} + +void PreCreateMediaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto preCreateMediaParamNode = value["PreCreateMediaParam"]; + if(!preCreateMediaParamNode["OssFile"].isNull()) + preCreateMediaParam_.ossFile = preCreateMediaParamNode["OssFile"].asString(); + if(!preCreateMediaParamNode["OssFilePath"].isNull()) + preCreateMediaParam_.ossFilePath = preCreateMediaParamNode["OssFilePath"].asString(); + if(!preCreateMediaParamNode["OssBucket"].isNull()) + preCreateMediaParam_.ossBucket = preCreateMediaParamNode["OssBucket"].asString(); + if(!preCreateMediaParamNode["SignatureUrl"].isNull()) + preCreateMediaParam_.signatureUrl = preCreateMediaParamNode["SignatureUrl"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PreCreateMediaResult::getMessage()const +{ + return message_; +} + +int PreCreateMediaResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +PreCreateMediaResult::PreCreateMediaParam PreCreateMediaResult::getPreCreateMediaParam()const +{ + return preCreateMediaParam_; +} + +std::string PreCreateMediaResult::getCode()const +{ + return code_; +} + +bool PreCreateMediaResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PreModifyMediaRequest.cc b/ccc/src/model/PreModifyMediaRequest.cc new file mode 100644 index 000000000..aeff47bee --- /dev/null +++ b/ccc/src/model/PreModifyMediaRequest.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 + +using AlibabaCloud::CCC::Model::PreModifyMediaRequest; + +PreModifyMediaRequest::PreModifyMediaRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PreModifyMedia") +{} + +PreModifyMediaRequest::~PreModifyMediaRequest() +{} + +std::string PreModifyMediaRequest::getInstanceId()const +{ + return instanceId_; +} + +void PreModifyMediaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string PreModifyMediaRequest::getFileName()const +{ + return fileName_; +} + +void PreModifyMediaRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setCoreParameter("FileName", fileName); +} + +std::string PreModifyMediaRequest::getName()const +{ + return name_; +} + +void PreModifyMediaRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string PreModifyMediaRequest::getDescription()const +{ + return description_; +} + +void PreModifyMediaRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string PreModifyMediaRequest::getType()const +{ + return type_; +} + +void PreModifyMediaRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string PreModifyMediaRequest::getContent()const +{ + return content_; +} + +void PreModifyMediaRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string PreModifyMediaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PreModifyMediaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/PreModifyMediaResult.cc b/ccc/src/model/PreModifyMediaResult.cc new file mode 100644 index 000000000..4bce8ed6c --- /dev/null +++ b/ccc/src/model/PreModifyMediaResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +PreModifyMediaResult::PreModifyMediaResult() : + ServiceResult() +{} + +PreModifyMediaResult::PreModifyMediaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreModifyMediaResult::~PreModifyMediaResult() +{} + +void PreModifyMediaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto preModifyMediaParamNode = value["PreModifyMediaParam"]; + if(!preModifyMediaParamNode["OssFile"].isNull()) + preModifyMediaParam_.ossFile = preModifyMediaParamNode["OssFile"].asString(); + if(!preModifyMediaParamNode["OssFilePath"].isNull()) + preModifyMediaParam_.ossFilePath = preModifyMediaParamNode["OssFilePath"].asString(); + if(!preModifyMediaParamNode["OssBucket"].isNull()) + preModifyMediaParam_.ossBucket = preModifyMediaParamNode["OssBucket"].asString(); + if(!preModifyMediaParamNode["SignatureUrl"].isNull()) + preModifyMediaParam_.signatureUrl = preModifyMediaParamNode["SignatureUrl"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PreModifyMediaResult::getMessage()const +{ + return message_; +} + +PreModifyMediaResult::PreModifyMediaParam PreModifyMediaResult::getPreModifyMediaParam()const +{ + return preModifyMediaParam_; +} + +int PreModifyMediaResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PreModifyMediaResult::getCode()const +{ + return code_; +} + +bool PreModifyMediaResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PredictiveRecordFailureRequest.cc b/ccc/src/model/PredictiveRecordFailureRequest.cc new file mode 100644 index 000000000..f591788df --- /dev/null +++ b/ccc/src/model/PredictiveRecordFailureRequest.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::CCC::Model::PredictiveRecordFailureRequest; + +PredictiveRecordFailureRequest::PredictiveRecordFailureRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PredictiveRecordFailure") +{} + +PredictiveRecordFailureRequest::~PredictiveRecordFailureRequest() +{} + +std::string PredictiveRecordFailureRequest::getCallId()const +{ + return callId_; +} + +void PredictiveRecordFailureRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setCoreParameter("CallId", callId); +} + +long PredictiveRecordFailureRequest::getActualTime()const +{ + return actualTime_; +} + +void PredictiveRecordFailureRequest::setActualTime(long actualTime) +{ + actualTime_ = actualTime; + setCoreParameter("ActualTime", std::to_string(actualTime)); +} + +std::string PredictiveRecordFailureRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void PredictiveRecordFailureRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setCoreParameter("CallingNumber", callingNumber); +} + +std::string PredictiveRecordFailureRequest::getInstanceId()const +{ + return instanceId_; +} + +void PredictiveRecordFailureRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string PredictiveRecordFailureRequest::getDispositionCode()const +{ + return dispositionCode_; +} + +void PredictiveRecordFailureRequest::setDispositionCode(const std::string& dispositionCode) +{ + dispositionCode_ = dispositionCode; + setCoreParameter("DispositionCode", dispositionCode); +} + +std::string PredictiveRecordFailureRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void PredictiveRecordFailureRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setCoreParameter("CalledNumber", calledNumber); +} + +std::string PredictiveRecordFailureRequest::getTaskId()const +{ + return taskId_; +} + +void PredictiveRecordFailureRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + +std::string PredictiveRecordFailureRequest::getCabInstanceId()const +{ + return cabInstanceId_; +} + +void PredictiveRecordFailureRequest::setCabInstanceId(const std::string& cabInstanceId) +{ + cabInstanceId_ = cabInstanceId; + setCoreParameter("CabInstanceId", cabInstanceId); +} + +long PredictiveRecordFailureRequest::getCabInstanceOwnerId()const +{ + return cabInstanceOwnerId_; +} + +void PredictiveRecordFailureRequest::setCabInstanceOwnerId(long cabInstanceOwnerId) +{ + cabInstanceOwnerId_ = cabInstanceOwnerId; + setCoreParameter("CabInstanceOwnerId", std::to_string(cabInstanceOwnerId)); +} + diff --git a/ccc/src/model/PredictiveRecordFailureResult.cc b/ccc/src/model/PredictiveRecordFailureResult.cc new file mode 100644 index 000000000..17d628801 --- /dev/null +++ b/ccc/src/model/PredictiveRecordFailureResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +PredictiveRecordFailureResult::PredictiveRecordFailureResult() : + ServiceResult() +{} + +PredictiveRecordFailureResult::PredictiveRecordFailureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PredictiveRecordFailureResult::~PredictiveRecordFailureResult() +{} + +void PredictiveRecordFailureResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PredictiveRecordFailureResult::getMessage()const +{ + return message_; +} + +int PredictiveRecordFailureResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PredictiveRecordFailureResult::getCode()const +{ + return code_; +} + +bool PredictiveRecordFailureResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PredictiveRecordSuccessRequest.cc b/ccc/src/model/PredictiveRecordSuccessRequest.cc new file mode 100644 index 000000000..ff275759f --- /dev/null +++ b/ccc/src/model/PredictiveRecordSuccessRequest.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::CCC::Model::PredictiveRecordSuccessRequest; + +PredictiveRecordSuccessRequest::PredictiveRecordSuccessRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PredictiveRecordSuccess") +{} + +PredictiveRecordSuccessRequest::~PredictiveRecordSuccessRequest() +{} + +std::string PredictiveRecordSuccessRequest::getCallId()const +{ + return callId_; +} + +void PredictiveRecordSuccessRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setCoreParameter("CallId", callId); +} + +std::string PredictiveRecordSuccessRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void PredictiveRecordSuccessRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setCoreParameter("CallingNumber", callingNumber); +} + +std::string PredictiveRecordSuccessRequest::getInstanceId()const +{ + return instanceId_; +} + +void PredictiveRecordSuccessRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string PredictiveRecordSuccessRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void PredictiveRecordSuccessRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setCoreParameter("CalledNumber", calledNumber); +} + +std::string PredictiveRecordSuccessRequest::getCallType()const +{ + return callType_; +} + +void PredictiveRecordSuccessRequest::setCallType(const std::string& callType) +{ + callType_ = callType; + setCoreParameter("CallType", callType); +} + +std::string PredictiveRecordSuccessRequest::getScenarioId()const +{ + return scenarioId_; +} + +void PredictiveRecordSuccessRequest::setScenarioId(const std::string& scenarioId) +{ + scenarioId_ = scenarioId; + setCoreParameter("ScenarioId", scenarioId); +} + +std::string PredictiveRecordSuccessRequest::getTaskId()const +{ + return taskId_; +} + +void PredictiveRecordSuccessRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + +std::string PredictiveRecordSuccessRequest::getCabInstanceId()const +{ + return cabInstanceId_; +} + +void PredictiveRecordSuccessRequest::setCabInstanceId(const std::string& cabInstanceId) +{ + cabInstanceId_ = cabInstanceId; + setCoreParameter("CabInstanceId", cabInstanceId); +} + +long PredictiveRecordSuccessRequest::getCabInstanceOwnerId()const +{ + return cabInstanceOwnerId_; +} + +void PredictiveRecordSuccessRequest::setCabInstanceOwnerId(long cabInstanceOwnerId) +{ + cabInstanceOwnerId_ = cabInstanceOwnerId; + setCoreParameter("CabInstanceOwnerId", std::to_string(cabInstanceOwnerId)); +} + diff --git a/ccc/src/model/PredictiveRecordSuccessResult.cc b/ccc/src/model/PredictiveRecordSuccessResult.cc new file mode 100644 index 000000000..fc913f7ff --- /dev/null +++ b/ccc/src/model/PredictiveRecordSuccessResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +PredictiveRecordSuccessResult::PredictiveRecordSuccessResult() : + ServiceResult() +{} + +PredictiveRecordSuccessResult::PredictiveRecordSuccessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PredictiveRecordSuccessResult::~PredictiveRecordSuccessResult() +{} + +void PredictiveRecordSuccessResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PredictiveRecordSuccessResult::getMessage()const +{ + return message_; +} + +int PredictiveRecordSuccessResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PredictiveRecordSuccessResult::getCode()const +{ + return code_; +} + +bool PredictiveRecordSuccessResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PublishContactFlowVersionRequest.cc b/ccc/src/model/PublishContactFlowVersionRequest.cc new file mode 100644 index 000000000..4a28290a7 --- /dev/null +++ b/ccc/src/model/PublishContactFlowVersionRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::PublishContactFlowVersionRequest; + +PublishContactFlowVersionRequest::PublishContactFlowVersionRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PublishContactFlowVersion") +{} + +PublishContactFlowVersionRequest::~PublishContactFlowVersionRequest() +{} + +std::string PublishContactFlowVersionRequest::getInstanceId()const +{ + return instanceId_; +} + +void PublishContactFlowVersionRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string PublishContactFlowVersionRequest::getContactFlowVersionId()const +{ + return contactFlowVersionId_; +} + +void PublishContactFlowVersionRequest::setContactFlowVersionId(const std::string& contactFlowVersionId) +{ + contactFlowVersionId_ = contactFlowVersionId; + setCoreParameter("ContactFlowVersionId", contactFlowVersionId); +} + +bool PublishContactFlowVersionRequest::getUseTianGong()const +{ + return useTianGong_; +} + +void PublishContactFlowVersionRequest::setUseTianGong(bool useTianGong) +{ + useTianGong_ = useTianGong; + setCoreParameter("UseTianGong", useTianGong ? "true" : "false"); +} + +std::string PublishContactFlowVersionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PublishContactFlowVersionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/PublishContactFlowVersionResult.cc b/ccc/src/model/PublishContactFlowVersionResult.cc new file mode 100644 index 000000000..784c0f542 --- /dev/null +++ b/ccc/src/model/PublishContactFlowVersionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +PublishContactFlowVersionResult::PublishContactFlowVersionResult() : + ServiceResult() +{} + +PublishContactFlowVersionResult::PublishContactFlowVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishContactFlowVersionResult::~PublishContactFlowVersionResult() +{} + +void PublishContactFlowVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PublishContactFlowVersionResult::getMessage()const +{ + return message_; +} + +int PublishContactFlowVersionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PublishContactFlowVersionResult::getCode()const +{ + return code_; +} + +bool PublishContactFlowVersionResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PublishPredictiveJobGroupRequest.cc b/ccc/src/model/PublishPredictiveJobGroupRequest.cc new file mode 100644 index 000000000..cb86aaf25 --- /dev/null +++ b/ccc/src/model/PublishPredictiveJobGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::PublishPredictiveJobGroupRequest; + +PublishPredictiveJobGroupRequest::PublishPredictiveJobGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "PublishPredictiveJobGroup") +{} + +PublishPredictiveJobGroupRequest::~PublishPredictiveJobGroupRequest() +{} + +std::string PublishPredictiveJobGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void PublishPredictiveJobGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string PublishPredictiveJobGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void PublishPredictiveJobGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +std::string PublishPredictiveJobGroupRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void PublishPredictiveJobGroupRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setCoreParameter("JobGroupId", jobGroupId); +} + diff --git a/ccc/src/model/PublishPredictiveJobGroupResult.cc b/ccc/src/model/PublishPredictiveJobGroupResult.cc new file mode 100644 index 000000000..095fe2fcd --- /dev/null +++ b/ccc/src/model/PublishPredictiveJobGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult() : + ServiceResult() +{} + +PublishPredictiveJobGroupResult::PublishPredictiveJobGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishPredictiveJobGroupResult::~PublishPredictiveJobGroupResult() +{} + +void PublishPredictiveJobGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string PublishPredictiveJobGroupResult::getMessage()const +{ + return message_; +} + +int PublishPredictiveJobGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string PublishPredictiveJobGroupResult::getCode()const +{ + return code_; +} + +bool PublishPredictiveJobGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/PublishSurveyRequest.cc b/ccc/src/model/PublishSurveyRequest.cc index 875235974..28a903223 100644 --- a/ccc/src/model/PublishSurveyRequest.cc +++ b/ccc/src/model/PublishSurveyRequest.cc @@ -33,7 +33,7 @@ std::string PublishSurveyRequest::getSurveyId()const void PublishSurveyRequest::setSurveyId(const std::string& surveyId) { surveyId_ = surveyId; - setParameter("SurveyId", surveyId); + setCoreParameter("SurveyId", surveyId); } std::string PublishSurveyRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string PublishSurveyRequest::getInstanceId()const void PublishSurveyRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string PublishSurveyRequest::getScenarioId()const @@ -55,6 +55,6 @@ std::string PublishSurveyRequest::getScenarioId()const void PublishSurveyRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/PublishSurveyResult.cc b/ccc/src/model/PublishSurveyResult.cc index 0ad6a31aa..7447c3e2e 100644 --- a/ccc/src/model/PublishSurveyResult.cc +++ b/ccc/src/model/PublishSurveyResult.cc @@ -35,10 +35,13 @@ PublishSurveyResult::~PublishSurveyResult() void PublishSurveyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/QueryRedialIndicatorRequest.cc b/ccc/src/model/QueryRedialIndicatorRequest.cc new file mode 100644 index 000000000..1db9128bc --- /dev/null +++ b/ccc/src/model/QueryRedialIndicatorRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::QueryRedialIndicatorRequest; + +QueryRedialIndicatorRequest::QueryRedialIndicatorRequest() : + RpcServiceRequest("ccc", "2017-07-05", "QueryRedialIndicator") +{} + +QueryRedialIndicatorRequest::~QueryRedialIndicatorRequest() +{} + +std::string QueryRedialIndicatorRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryRedialIndicatorRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string QueryRedialIndicatorRequest::getContactId()const +{ + return contactId_; +} + +void QueryRedialIndicatorRequest::setContactId(const std::string& contactId) +{ + contactId_ = contactId; + setCoreParameter("ContactId", contactId); +} + +bool QueryRedialIndicatorRequest::getMockResponse()const +{ + return mockResponse_; +} + +void QueryRedialIndicatorRequest::setMockResponse(bool mockResponse) +{ + mockResponse_ = mockResponse; + setCoreParameter("MockResponse", mockResponse ? "true" : "false"); +} + +std::string QueryRedialIndicatorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRedialIndicatorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/QueryRedialIndicatorResult.cc b/ccc/src/model/QueryRedialIndicatorResult.cc new file mode 100644 index 000000000..ba4286ffa --- /dev/null +++ b/ccc/src/model/QueryRedialIndicatorResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +QueryRedialIndicatorResult::QueryRedialIndicatorResult() : + ServiceResult() +{} + +QueryRedialIndicatorResult::QueryRedialIndicatorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRedialIndicatorResult::~QueryRedialIndicatorResult() +{} + +void QueryRedialIndicatorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Redial"].isNull()) + redial_ = value["Redial"].asString() == "true"; + +} + +std::string QueryRedialIndicatorResult::getMessage()const +{ + return message_; +} + +int QueryRedialIndicatorResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool QueryRedialIndicatorResult::getRedial()const +{ + return redial_; +} + +std::string QueryRedialIndicatorResult::getCode()const +{ + return code_; +} + +bool QueryRedialIndicatorResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RefreshTokenRequest.cc b/ccc/src/model/RefreshTokenRequest.cc index f5a25caea..089218673 100644 --- a/ccc/src/model/RefreshTokenRequest.cc +++ b/ccc/src/model/RefreshTokenRequest.cc @@ -33,7 +33,7 @@ std::string RefreshTokenRequest::getInstanceId()const void RefreshTokenRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string RefreshTokenRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string RefreshTokenRequest::getAccessKeyId()const void RefreshTokenRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/RefreshTokenResult.cc b/ccc/src/model/RefreshTokenResult.cc index ab2190b38..39e2b1772 100644 --- a/ccc/src/model/RefreshTokenResult.cc +++ b/ccc/src/model/RefreshTokenResult.cc @@ -35,10 +35,13 @@ RefreshTokenResult::~RefreshTokenResult() void RefreshTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto tokenNode = value["Token"]; if(!tokenNode["Signature"].isNull()) diff --git a/ccc/src/model/RemoveNumberFromSkillGroupRequest.cc b/ccc/src/model/RemoveNumberFromSkillGroupRequest.cc new file mode 100644 index 000000000..9cdc1f918 --- /dev/null +++ b/ccc/src/model/RemoveNumberFromSkillGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::RemoveNumberFromSkillGroupRequest; + +RemoveNumberFromSkillGroupRequest::RemoveNumberFromSkillGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "RemoveNumberFromSkillGroup") +{} + +RemoveNumberFromSkillGroupRequest::~RemoveNumberFromSkillGroupRequest() +{} + +std::string RemoveNumberFromSkillGroupRequest::getNumber()const +{ + return number_; +} + +void RemoveNumberFromSkillGroupRequest::setNumber(const std::string& number) +{ + number_ = number; + setCoreParameter("Number", number); +} + +std::string RemoveNumberFromSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemoveNumberFromSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string RemoveNumberFromSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void RemoveNumberFromSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +std::string RemoveNumberFromSkillGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveNumberFromSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/RemoveNumberFromSkillGroupResult.cc b/ccc/src/model/RemoveNumberFromSkillGroupResult.cc new file mode 100644 index 000000000..086d0e13a --- /dev/null +++ b/ccc/src/model/RemoveNumberFromSkillGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +RemoveNumberFromSkillGroupResult::RemoveNumberFromSkillGroupResult() : + ServiceResult() +{} + +RemoveNumberFromSkillGroupResult::RemoveNumberFromSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveNumberFromSkillGroupResult::~RemoveNumberFromSkillGroupResult() +{} + +void RemoveNumberFromSkillGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string RemoveNumberFromSkillGroupResult::getMessage()const +{ + return message_; +} + +int RemoveNumberFromSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemoveNumberFromSkillGroupResult::getCode()const +{ + return code_; +} + +bool RemoveNumberFromSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RemovePhoneNumberRequest.cc b/ccc/src/model/RemovePhoneNumberRequest.cc index dda8b5a5c..c2fa09b76 100644 --- a/ccc/src/model/RemovePhoneNumberRequest.cc +++ b/ccc/src/model/RemovePhoneNumberRequest.cc @@ -33,7 +33,7 @@ std::string RemovePhoneNumberRequest::getInstanceId()const void RemovePhoneNumberRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string RemovePhoneNumberRequest::getPhoneNumberId()const @@ -44,7 +44,7 @@ std::string RemovePhoneNumberRequest::getPhoneNumberId()const void RemovePhoneNumberRequest::setPhoneNumberId(const std::string& phoneNumberId) { phoneNumberId_ = phoneNumberId; - setParameter("PhoneNumberId", phoneNumberId); + setCoreParameter("PhoneNumberId", phoneNumberId); } std::string RemovePhoneNumberRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string RemovePhoneNumberRequest::getAccessKeyId()const void RemovePhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/RemovePhoneNumberResult.cc b/ccc/src/model/RemovePhoneNumberResult.cc index d39386f71..4a3897782 100644 --- a/ccc/src/model/RemovePhoneNumberResult.cc +++ b/ccc/src/model/RemovePhoneNumberResult.cc @@ -35,10 +35,13 @@ RemovePhoneNumberResult::~RemovePhoneNumberResult() void RemovePhoneNumberResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc b/ccc/src/model/RemoveUsersFromSkillGroupRequest.cc new file mode 100644 index 000000000..b34b6289e --- /dev/null +++ b/ccc/src/model/RemoveUsersFromSkillGroupRequest.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::CCC::Model::RemoveUsersFromSkillGroupRequest; + +RemoveUsersFromSkillGroupRequest::RemoveUsersFromSkillGroupRequest() : + RpcServiceRequest("ccc", "2017-07-05", "RemoveUsersFromSkillGroup") +{} + +RemoveUsersFromSkillGroupRequest::~RemoveUsersFromSkillGroupRequest() +{} + +std::string RemoveUsersFromSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemoveUsersFromSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string RemoveUsersFromSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void RemoveUsersFromSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setCoreParameter("SkillGroupId", skillGroupId); +} + +std::vector RemoveUsersFromSkillGroupRequest::getUserId()const +{ + return userId_; +} + +void RemoveUsersFromSkillGroupRequest::setUserId(const std::vector& userId) +{ + userId_ = userId; + for(int i = 0; i!= userId.size(); i++) + setCoreParameter("UserId."+ std::to_string(i), userId.at(i)); +} + +std::string RemoveUsersFromSkillGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveUsersFromSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/RemoveUsersFromSkillGroupResult.cc b/ccc/src/model/RemoveUsersFromSkillGroupResult.cc new file mode 100644 index 000000000..80f602295 --- /dev/null +++ b/ccc/src/model/RemoveUsersFromSkillGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +RemoveUsersFromSkillGroupResult::RemoveUsersFromSkillGroupResult() : + ServiceResult() +{} + +RemoveUsersFromSkillGroupResult::RemoveUsersFromSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveUsersFromSkillGroupResult::~RemoveUsersFromSkillGroupResult() +{} + +void RemoveUsersFromSkillGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string RemoveUsersFromSkillGroupResult::getMessage()const +{ + return message_; +} + +int RemoveUsersFromSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemoveUsersFromSkillGroupResult::getCode()const +{ + return code_; +} + +bool RemoveUsersFromSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/RemoveUsersRequest.cc b/ccc/src/model/RemoveUsersRequest.cc index ab4353903..6fd0b904c 100644 --- a/ccc/src/model/RemoveUsersRequest.cc +++ b/ccc/src/model/RemoveUsersRequest.cc @@ -33,7 +33,7 @@ std::string RemoveUsersRequest::getInstanceId()const void RemoveUsersRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector RemoveUsersRequest::getUserId()const @@ -45,7 +45,7 @@ void RemoveUsersRequest::setUserId(const std::vector& userId) { userId_ = userId; for(int i = 0; i!= userId.size(); i++) - setParameter("UserId."+ std::to_string(i), userId.at(i)); + setCoreParameter("UserId."+ std::to_string(i), userId.at(i)); } std::string RemoveUsersRequest::getAccessKeyId()const @@ -56,6 +56,6 @@ std::string RemoveUsersRequest::getAccessKeyId()const void RemoveUsersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/RemoveUsersResult.cc b/ccc/src/model/RemoveUsersResult.cc index da5e56f25..cc281bd82 100644 --- a/ccc/src/model/RemoveUsersResult.cc +++ b/ccc/src/model/RemoveUsersResult.cc @@ -35,10 +35,13 @@ RemoveUsersResult::~RemoveUsersResult() void RemoveUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/RequestLoginInfoRequest.cc b/ccc/src/model/RequestLoginInfoRequest.cc index 91cb3b056..661cfd301 100644 --- a/ccc/src/model/RequestLoginInfoRequest.cc +++ b/ccc/src/model/RequestLoginInfoRequest.cc @@ -33,7 +33,7 @@ std::string RequestLoginInfoRequest::getInstanceId()const void RequestLoginInfoRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string RequestLoginInfoRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string RequestLoginInfoRequest::getAccessKeyId()const void RequestLoginInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/RequestLoginInfoResult.cc b/ccc/src/model/RequestLoginInfoResult.cc index 56ba89434..7fdcf9b10 100644 --- a/ccc/src/model/RequestLoginInfoResult.cc +++ b/ccc/src/model/RequestLoginInfoResult.cc @@ -35,10 +35,13 @@ RequestLoginInfoResult::~RequestLoginInfoResult() void RequestLoginInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto loginInfoNode = value["LoginInfo"]; if(!loginInfoNode["UserName"].isNull()) @@ -61,6 +64,20 @@ void RequestLoginInfoResult::parse(const std::string &payload) loginInfo_.signature = loginInfoNode["Signature"].asString(); if(!loginInfoNode["SignData"].isNull()) loginInfo_.signData = loginInfoNode["SignData"].asString(); + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + { + LoginInfo::Role roleObject; + if(!value["RoleId"].isNull()) + roleObject.roleId = value["RoleId"].asString(); + if(!value["InstanceId"].isNull()) + roleObject.instanceId = value["InstanceId"].asString(); + if(!value["RoleName"].isNull()) + roleObject.roleName = value["RoleName"].asString(); + if(!value["RoleDescription"].isNull()) + roleObject.roleDescription = value["RoleDescription"].asString(); + loginInfo_.roles.push_back(roleObject); + } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/ccc/src/model/ResumeJobsRequest.cc b/ccc/src/model/ResumeJobsRequest.cc index ca7151554..b69cadee6 100644 --- a/ccc/src/model/ResumeJobsRequest.cc +++ b/ccc/src/model/ResumeJobsRequest.cc @@ -33,7 +33,7 @@ bool ResumeJobsRequest::getAll()const void ResumeJobsRequest::setAll(bool all) { all_ = all; - setParameter("All", std::to_string(all)); + setCoreParameter("All", all ? "true" : "false"); } std::vector ResumeJobsRequest::getJobId()const @@ -45,7 +45,7 @@ void ResumeJobsRequest::setJobId(const std::vector& jobId) { jobId_ = jobId; for(int i = 0; i!= jobId.size(); i++) - setParameter("JobId."+ std::to_string(i), jobId.at(i)); + setCoreParameter("JobId."+ std::to_string(i), jobId.at(i)); } std::string ResumeJobsRequest::getInstanceId()const @@ -56,7 +56,7 @@ std::string ResumeJobsRequest::getInstanceId()const void ResumeJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector ResumeJobsRequest::getJobReferenceId()const @@ -68,7 +68,7 @@ void ResumeJobsRequest::setJobReferenceId(const std::vector& jobRef { jobReferenceId_ = jobReferenceId; for(int i = 0; i!= jobReferenceId.size(); i++) - setParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); + setCoreParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); } std::string ResumeJobsRequest::getGroupId()const @@ -79,7 +79,7 @@ std::string ResumeJobsRequest::getGroupId()const void ResumeJobsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string ResumeJobsRequest::getScenarioId()const @@ -90,6 +90,6 @@ std::string ResumeJobsRequest::getScenarioId()const void ResumeJobsRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/ResumeJobsResult.cc b/ccc/src/model/ResumeJobsResult.cc index b7fdd080f..5831d577c 100644 --- a/ccc/src/model/ResumeJobsResult.cc +++ b/ccc/src/model/ResumeJobsResult.cc @@ -35,10 +35,13 @@ ResumeJobsResult::~ResumeJobsResult() void ResumeJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/SaveStatsRequest.cc b/ccc/src/model/SaveStatsRequest.cc new file mode 100644 index 000000000..af4ab0a9e --- /dev/null +++ b/ccc/src/model/SaveStatsRequest.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::CCC::Model::SaveStatsRequest; + +SaveStatsRequest::SaveStatsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SaveStats") +{} + +SaveStatsRequest::~SaveStatsRequest() +{} + +std::string SaveStatsRequest::getCallId()const +{ + return callId_; +} + +void SaveStatsRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setCoreParameter("CallId", callId); +} + +std::string SaveStatsRequest::getUid()const +{ + return uid_; +} + +void SaveStatsRequest::setUid(const std::string& uid) +{ + uid_ = uid; + setCoreParameter("Uid", uid); +} + +long SaveStatsRequest::getRecordTime()const +{ + return recordTime_; +} + +void SaveStatsRequest::setRecordTime(long recordTime) +{ + recordTime_ = recordTime; + setCoreParameter("RecordTime", std::to_string(recordTime)); +} + +std::string SaveStatsRequest::getInstanceId()const +{ + return instanceId_; +} + +void SaveStatsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string SaveStatsRequest::getStats()const +{ + return stats_; +} + +void SaveStatsRequest::setStats(const std::string& stats) +{ + stats_ = stats; + setCoreParameter("Stats", stats); +} + +long SaveStatsRequest::getCallStartTime()const +{ + return callStartTime_; +} + +void SaveStatsRequest::setCallStartTime(long callStartTime) +{ + callStartTime_ = callStartTime; + setCoreParameter("CallStartTime", std::to_string(callStartTime)); +} + +std::string SaveStatsRequest::getTenantId()const +{ + return tenantId_; +} + +void SaveStatsRequest::setTenantId(const std::string& tenantId) +{ + tenantId_ = tenantId; + setCoreParameter("TenantId", tenantId); +} + +std::string SaveStatsRequest::getCalleeNumber()const +{ + return calleeNumber_; +} + +void SaveStatsRequest::setCalleeNumber(const std::string& calleeNumber) +{ + calleeNumber_ = calleeNumber; + setCoreParameter("CalleeNumber", calleeNumber); +} + +std::string SaveStatsRequest::getCallerNumber()const +{ + return callerNumber_; +} + +void SaveStatsRequest::setCallerNumber(const std::string& callerNumber) +{ + callerNumber_ = callerNumber; + setCoreParameter("CallerNumber", callerNumber); +} + diff --git a/ccc/src/model/SaveStatsResult.cc b/ccc/src/model/SaveStatsResult.cc new file mode 100644 index 000000000..91f87333e --- /dev/null +++ b/ccc/src/model/SaveStatsResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +SaveStatsResult::SaveStatsResult() : + ServiceResult() +{} + +SaveStatsResult::SaveStatsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveStatsResult::~SaveStatsResult() +{} + +void SaveStatsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["RowCount"].isNull()) + rowCount_ = std::stol(value["RowCount"].asString()); + +} + +std::string SaveStatsResult::getMessage()const +{ + return message_; +} + +int SaveStatsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long SaveStatsResult::getRowCount()const +{ + return rowCount_; +} + +std::string SaveStatsResult::getCode()const +{ + return code_; +} + +bool SaveStatsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SaveWebRTCStatsRequest.cc b/ccc/src/model/SaveWebRTCStatsRequest.cc new file mode 100644 index 000000000..d92f424f3 --- /dev/null +++ b/ccc/src/model/SaveWebRTCStatsRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CCC::Model::SaveWebRTCStatsRequest; + +SaveWebRTCStatsRequest::SaveWebRTCStatsRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SaveWebRTCStats") +{} + +SaveWebRTCStatsRequest::~SaveWebRTCStatsRequest() +{} + +std::string SaveWebRTCStatsRequest::getCallId()const +{ + return callId_; +} + +void SaveWebRTCStatsRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setCoreParameter("CallId", callId); +} + +std::string SaveWebRTCStatsRequest::getUid()const +{ + return uid_; +} + +void SaveWebRTCStatsRequest::setUid(const std::string& uid) +{ + uid_ = uid; + setCoreParameter("Uid", uid); +} + +long SaveWebRTCStatsRequest::getRecordTime()const +{ + return recordTime_; +} + +void SaveWebRTCStatsRequest::setRecordTime(long recordTime) +{ + recordTime_ = recordTime; + setCoreParameter("RecordTime", std::to_string(recordTime)); +} + +std::string SaveWebRTCStatsRequest::getInstanceId()const +{ + return instanceId_; +} + +void SaveWebRTCStatsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string SaveWebRTCStatsRequest::getStats()const +{ + return stats_; +} + +void SaveWebRTCStatsRequest::setStats(const std::string& stats) +{ + stats_ = stats; + setCoreParameter("Stats", stats); +} + +long SaveWebRTCStatsRequest::getCallStartTime()const +{ + return callStartTime_; +} + +void SaveWebRTCStatsRequest::setCallStartTime(long callStartTime) +{ + callStartTime_ = callStartTime; + setCoreParameter("CallStartTime", std::to_string(callStartTime)); +} + +std::string SaveWebRTCStatsRequest::getTenantId()const +{ + return tenantId_; +} + +void SaveWebRTCStatsRequest::setTenantId(const std::string& tenantId) +{ + tenantId_ = tenantId; + setCoreParameter("TenantId", tenantId); +} + +std::string SaveWebRTCStatsRequest::getCalleeNumber()const +{ + return calleeNumber_; +} + +void SaveWebRTCStatsRequest::setCalleeNumber(const std::string& calleeNumber) +{ + calleeNumber_ = calleeNumber; + setCoreParameter("CalleeNumber", calleeNumber); +} + +std::string SaveWebRTCStatsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SaveWebRTCStatsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SaveWebRTCStatsRequest::getCallerNumber()const +{ + return callerNumber_; +} + +void SaveWebRTCStatsRequest::setCallerNumber(const std::string& callerNumber) +{ + callerNumber_ = callerNumber; + setCoreParameter("CallerNumber", callerNumber); +} + diff --git a/ccc/src/model/SaveWebRTCStatsResult.cc b/ccc/src/model/SaveWebRTCStatsResult.cc new file mode 100644 index 000000000..f14f1eb7e --- /dev/null +++ b/ccc/src/model/SaveWebRTCStatsResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +SaveWebRTCStatsResult::SaveWebRTCStatsResult() : + ServiceResult() +{} + +SaveWebRTCStatsResult::SaveWebRTCStatsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveWebRTCStatsResult::~SaveWebRTCStatsResult() +{} + +void SaveWebRTCStatsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["RowCount"].isNull()) + rowCount_ = std::stol(value["RowCount"].asString()); + +} + +std::string SaveWebRTCStatsResult::getMessage()const +{ + return message_; +} + +int SaveWebRTCStatsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long SaveWebRTCStatsResult::getRowCount()const +{ + return rowCount_; +} + +std::string SaveWebRTCStatsResult::getCode()const +{ + return code_; +} + +bool SaveWebRTCStatsResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SendPredefinedShortMessageRequest.cc b/ccc/src/model/SendPredefinedShortMessageRequest.cc new file mode 100644 index 000000000..c35ead871 --- /dev/null +++ b/ccc/src/model/SendPredefinedShortMessageRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::SendPredefinedShortMessageRequest; + +SendPredefinedShortMessageRequest::SendPredefinedShortMessageRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SendPredefinedShortMessage") +{} + +SendPredefinedShortMessageRequest::~SendPredefinedShortMessageRequest() +{} + +std::string SendPredefinedShortMessageRequest::getInstanceId()const +{ + return instanceId_; +} + +void SendPredefinedShortMessageRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string SendPredefinedShortMessageRequest::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +void SendPredefinedShortMessageRequest::setPhoneNumbers(const std::string& phoneNumbers) +{ + phoneNumbers_ = phoneNumbers; + setCoreParameter("PhoneNumbers", phoneNumbers); +} + +long SendPredefinedShortMessageRequest::getConfigId()const +{ + return configId_; +} + +void SendPredefinedShortMessageRequest::setConfigId(long configId) +{ + configId_ = configId; + setCoreParameter("ConfigId", std::to_string(configId)); +} + +std::string SendPredefinedShortMessageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SendPredefinedShortMessageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SendPredefinedShortMessageRequest::getTemplateParam()const +{ + return templateParam_; +} + +void SendPredefinedShortMessageRequest::setTemplateParam(const std::string& templateParam) +{ + templateParam_ = templateParam; + setCoreParameter("TemplateParam", templateParam); +} + diff --git a/ccc/src/model/SendPredefinedShortMessageResult.cc b/ccc/src/model/SendPredefinedShortMessageResult.cc new file mode 100644 index 000000000..6e8420cf1 --- /dev/null +++ b/ccc/src/model/SendPredefinedShortMessageResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +SendPredefinedShortMessageResult::SendPredefinedShortMessageResult() : + ServiceResult() +{} + +SendPredefinedShortMessageResult::SendPredefinedShortMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendPredefinedShortMessageResult::~SendPredefinedShortMessageResult() +{} + +void SendPredefinedShortMessageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + +} + +std::string SendPredefinedShortMessageResult::getMessage()const +{ + return message_; +} + +int SendPredefinedShortMessageResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SendPredefinedShortMessageResult::getCode()const +{ + return code_; +} + +std::string SendPredefinedShortMessageResult::getBizId()const +{ + return bizId_; +} + +bool SendPredefinedShortMessageResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SimpleDialRequest.cc b/ccc/src/model/SimpleDialRequest.cc new file mode 100644 index 000000000..c3f9f3fd8 --- /dev/null +++ b/ccc/src/model/SimpleDialRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::SimpleDialRequest; + +SimpleDialRequest::SimpleDialRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SimpleDial") +{} + +SimpleDialRequest::~SimpleDialRequest() +{} + +std::string SimpleDialRequest::getCaller()const +{ + return caller_; +} + +void SimpleDialRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setCoreParameter("Caller", caller); +} + +std::string SimpleDialRequest::getInstanceId()const +{ + return instanceId_; +} + +void SimpleDialRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string SimpleDialRequest::getContractFlowId()const +{ + return contractFlowId_; +} + +void SimpleDialRequest::setContractFlowId(const std::string& contractFlowId) +{ + contractFlowId_ = contractFlowId; + setCoreParameter("ContractFlowId", contractFlowId); +} + +std::string SimpleDialRequest::getCallee()const +{ + return callee_; +} + +void SimpleDialRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setCoreParameter("Callee", callee); +} + +std::string SimpleDialRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SimpleDialRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/SimpleDialResult.cc b/ccc/src/model/SimpleDialResult.cc new file mode 100644 index 000000000..f56752a2d --- /dev/null +++ b/ccc/src/model/SimpleDialResult.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::CCC; +using namespace AlibabaCloud::CCC::Model; + +SimpleDialResult::SimpleDialResult() : + ServiceResult() +{} + +SimpleDialResult::SimpleDialResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SimpleDialResult::~SimpleDialResult() +{} + +void SimpleDialResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["StatusCode"].isNull()) + statusCode_ = value["StatusCode"].asString(); + if(!value["StatusDesc"].isNull()) + statusDesc_ = value["StatusDesc"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); + +} + +std::string SimpleDialResult::getStatusDesc()const +{ + return statusDesc_; +} + +std::string SimpleDialResult::getTaskId()const +{ + return taskId_; +} + +std::string SimpleDialResult::getMessage()const +{ + return message_; +} + +int SimpleDialResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SimpleDialResult::getCode()const +{ + return code_; +} + +std::string SimpleDialResult::getStatusCode()const +{ + return statusCode_; +} + +bool SimpleDialResult::getSuccess()const +{ + return success_; +} + +std::string SimpleDialResult::getTimeStamp()const +{ + return timeStamp_; +} + diff --git a/ccc/src/model/StartBack2BackCallRequest.cc b/ccc/src/model/StartBack2BackCallRequest.cc index 5854105ac..227336433 100644 --- a/ccc/src/model/StartBack2BackCallRequest.cc +++ b/ccc/src/model/StartBack2BackCallRequest.cc @@ -33,7 +33,7 @@ std::string StartBack2BackCallRequest::getCaller()const void StartBack2BackCallRequest::setCaller(const std::string& caller) { caller_ = caller; - setParameter("Caller", caller); + setCoreParameter("Caller", caller); } std::string StartBack2BackCallRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string StartBack2BackCallRequest::getInstanceId()const void StartBack2BackCallRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string StartBack2BackCallRequest::getCallCenterNumber()const @@ -55,7 +55,7 @@ std::string StartBack2BackCallRequest::getCallCenterNumber()const void StartBack2BackCallRequest::setCallCenterNumber(const std::string& callCenterNumber) { callCenterNumber_ = callCenterNumber; - setParameter("CallCenterNumber", callCenterNumber); + setCoreParameter("CallCenterNumber", callCenterNumber); } std::string StartBack2BackCallRequest::getCallee()const @@ -66,7 +66,7 @@ std::string StartBack2BackCallRequest::getCallee()const void StartBack2BackCallRequest::setCallee(const std::string& callee) { callee_ = callee; - setParameter("Callee", callee); + setCoreParameter("Callee", callee); } std::string StartBack2BackCallRequest::getWorkflowId()const @@ -77,7 +77,7 @@ std::string StartBack2BackCallRequest::getWorkflowId()const void StartBack2BackCallRequest::setWorkflowId(const std::string& workflowId) { workflowId_ = workflowId; - setParameter("WorkflowId", workflowId); + setCoreParameter("WorkflowId", workflowId); } std::string StartBack2BackCallRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string StartBack2BackCallRequest::getAccessKeyId()const void StartBack2BackCallRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/ccc/src/model/StartBack2BackCallResult.cc b/ccc/src/model/StartBack2BackCallResult.cc index 9ccef6beb..5e60d50f6 100644 --- a/ccc/src/model/StartBack2BackCallResult.cc +++ b/ccc/src/model/StartBack2BackCallResult.cc @@ -35,10 +35,13 @@ StartBack2BackCallResult::~StartBack2BackCallResult() void StartBack2BackCallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/StartJobRequest.cc b/ccc/src/model/StartJobRequest.cc index b05543089..22474ab3d 100644 --- a/ccc/src/model/StartJobRequest.cc +++ b/ccc/src/model/StartJobRequest.cc @@ -33,7 +33,7 @@ std::string StartJobRequest::getJobJson()const void StartJobRequest::setJobJson(const std::string& jobJson) { jobJson_ = jobJson; - setParameter("JobJson", jobJson); + setCoreParameter("JobJson", jobJson); } std::vector StartJobRequest::getCallingNumber()const @@ -45,7 +45,7 @@ void StartJobRequest::setCallingNumber(const std::vector& callingNu { callingNumber_ = callingNumber; for(int i = 0; i!= callingNumber.size(); i++) - setParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); + setCoreParameter("CallingNumber."+ std::to_string(i), callingNumber.at(i)); } std::string StartJobRequest::getInstanceId()const @@ -56,7 +56,7 @@ std::string StartJobRequest::getInstanceId()const void StartJobRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string StartJobRequest::getGroupId()const @@ -67,7 +67,7 @@ std::string StartJobRequest::getGroupId()const void StartJobRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } bool StartJobRequest::getSelfHostedCallCenter()const @@ -78,7 +78,7 @@ bool StartJobRequest::getSelfHostedCallCenter()const void StartJobRequest::setSelfHostedCallCenter(bool selfHostedCallCenter) { selfHostedCallCenter_ = selfHostedCallCenter; - setParameter("SelfHostedCallCenter", std::to_string(selfHostedCallCenter)); + setCoreParameter("SelfHostedCallCenter", selfHostedCallCenter ? "true" : "false"); } std::string StartJobRequest::getScenarioId()const @@ -89,6 +89,6 @@ std::string StartJobRequest::getScenarioId()const void StartJobRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/StartJobResult.cc b/ccc/src/model/StartJobResult.cc index 8c1f6ffee..081c7b063 100644 --- a/ccc/src/model/StartJobResult.cc +++ b/ccc/src/model/StartJobResult.cc @@ -35,10 +35,13 @@ StartJobResult::~StartJobResult() void StartJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTaskIds = value["TaskIds"]["KeyValuePair"]; for (auto value : allTaskIds) diff --git a/ccc/src/model/SubmitBatchJobsRequest.cc b/ccc/src/model/SubmitBatchJobsRequest.cc index 3841a40a1..21ebd38b2 100644 --- a/ccc/src/model/SubmitBatchJobsRequest.cc +++ b/ccc/src/model/SubmitBatchJobsRequest.cc @@ -33,7 +33,7 @@ std::string SubmitBatchJobsRequest::getInstanceId()const void SubmitBatchJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string SubmitBatchJobsRequest::getJobGroupId()const @@ -44,6 +44,6 @@ std::string SubmitBatchJobsRequest::getJobGroupId()const void SubmitBatchJobsRequest::setJobGroupId(const std::string& jobGroupId) { jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); + setCoreParameter("JobGroupId", jobGroupId); } diff --git a/ccc/src/model/SubmitBatchJobsResult.cc b/ccc/src/model/SubmitBatchJobsResult.cc index 61cf165a8..f27226131 100644 --- a/ccc/src/model/SubmitBatchJobsResult.cc +++ b/ccc/src/model/SubmitBatchJobsResult.cc @@ -35,10 +35,13 @@ SubmitBatchJobsResult::~SubmitBatchJobsResult() void SubmitBatchJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/SubmitCabRecordingRequest.cc b/ccc/src/model/SubmitCabRecordingRequest.cc new file mode 100644 index 000000000..d0afad608 --- /dev/null +++ b/ccc/src/model/SubmitCabRecordingRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CCC::Model::SubmitCabRecordingRequest; + +SubmitCabRecordingRequest::SubmitCabRecordingRequest() : + RpcServiceRequest("ccc", "2017-07-05", "SubmitCabRecording") +{} + +SubmitCabRecordingRequest::~SubmitCabRecordingRequest() +{} + +std::string SubmitCabRecordingRequest::getInstanceId()const +{ + return instanceId_; +} + +void SubmitCabRecordingRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +long SubmitCabRecordingRequest::getInstanceOwnerId()const +{ + return instanceOwnerId_; +} + +void SubmitCabRecordingRequest::setInstanceOwnerId(long instanceOwnerId) +{ + instanceOwnerId_ = instanceOwnerId; + setCoreParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +} + +std::string SubmitCabRecordingRequest::getMergedRecording()const +{ + return mergedRecording_; +} + +void SubmitCabRecordingRequest::setMergedRecording(const std::string& mergedRecording) +{ + mergedRecording_ = mergedRecording; + setCoreParameter("MergedRecording", mergedRecording); +} + +std::string SubmitCabRecordingRequest::getTaskId()const +{ + return taskId_; +} + +void SubmitCabRecordingRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + +std::string SubmitCabRecordingRequest::getResourceRecording()const +{ + return resourceRecording_; +} + +void SubmitCabRecordingRequest::setResourceRecording(const std::string& resourceRecording) +{ + resourceRecording_ = resourceRecording; + setCoreParameter("ResourceRecording", resourceRecording); +} + diff --git a/ccc/src/model/SubmitCabRecordingResult.cc b/ccc/src/model/SubmitCabRecordingResult.cc new file mode 100644 index 000000000..40553654a --- /dev/null +++ b/ccc/src/model/SubmitCabRecordingResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +SubmitCabRecordingResult::SubmitCabRecordingResult() : + ServiceResult() +{} + +SubmitCabRecordingResult::SubmitCabRecordingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitCabRecordingResult::~SubmitCabRecordingResult() +{} + +void SubmitCabRecordingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SubmitCabRecordingResult::getMessage()const +{ + return message_; +} + +int SubmitCabRecordingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SubmitCabRecordingResult::getCode()const +{ + return code_; +} + +bool SubmitCabRecordingResult::getSuccess()const +{ + return success_; +} + diff --git a/ccc/src/model/SuspendJobsRequest.cc b/ccc/src/model/SuspendJobsRequest.cc index 473b7032b..e892bbfea 100644 --- a/ccc/src/model/SuspendJobsRequest.cc +++ b/ccc/src/model/SuspendJobsRequest.cc @@ -33,7 +33,7 @@ bool SuspendJobsRequest::getAll()const void SuspendJobsRequest::setAll(bool all) { all_ = all; - setParameter("All", std::to_string(all)); + setCoreParameter("All", all ? "true" : "false"); } std::vector SuspendJobsRequest::getJobId()const @@ -45,7 +45,7 @@ void SuspendJobsRequest::setJobId(const std::vector& jobId) { jobId_ = jobId; for(int i = 0; i!= jobId.size(); i++) - setParameter("JobId."+ std::to_string(i), jobId.at(i)); + setCoreParameter("JobId."+ std::to_string(i), jobId.at(i)); } std::string SuspendJobsRequest::getInstanceId()const @@ -56,7 +56,7 @@ std::string SuspendJobsRequest::getInstanceId()const void SuspendJobsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector SuspendJobsRequest::getJobReferenceId()const @@ -68,7 +68,7 @@ void SuspendJobsRequest::setJobReferenceId(const std::vector& jobRe { jobReferenceId_ = jobReferenceId; for(int i = 0; i!= jobReferenceId.size(); i++) - setParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); + setCoreParameter("JobReferenceId."+ std::to_string(i), jobReferenceId.at(i)); } std::string SuspendJobsRequest::getGroupId()const @@ -79,7 +79,7 @@ std::string SuspendJobsRequest::getGroupId()const void SuspendJobsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string SuspendJobsRequest::getScenarioId()const @@ -90,6 +90,6 @@ std::string SuspendJobsRequest::getScenarioId()const void SuspendJobsRequest::setScenarioId(const std::string& scenarioId) { scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); + setCoreParameter("ScenarioId", scenarioId); } diff --git a/ccc/src/model/SuspendJobsResult.cc b/ccc/src/model/SuspendJobsResult.cc index 6b77df37f..dee9a999b 100644 --- a/ccc/src/model/SuspendJobsResult.cc +++ b/ccc/src/model/SuspendJobsResult.cc @@ -35,10 +35,13 @@ SuspendJobsResult::~SuspendJobsResult() void SuspendJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccc/src/model/TwoPartiesCallRequest.cc b/ccc/src/model/TwoPartiesCallRequest.cc index f1c0cc470..1afa5f29e 100644 --- a/ccc/src/model/TwoPartiesCallRequest.cc +++ b/ccc/src/model/TwoPartiesCallRequest.cc @@ -33,7 +33,7 @@ std::string TwoPartiesCallRequest::getCaller()const void TwoPartiesCallRequest::setCaller(const std::string& caller) { caller_ = caller; - setParameter("Caller", caller); + setCoreParameter("Caller", caller); } std::string TwoPartiesCallRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string TwoPartiesCallRequest::getInstanceId()const void TwoPartiesCallRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string TwoPartiesCallRequest::getCalleeCustomer()const @@ -55,7 +55,7 @@ std::string TwoPartiesCallRequest::getCalleeCustomer()const void TwoPartiesCallRequest::setCalleeCustomer(const std::string& calleeCustomer) { calleeCustomer_ = calleeCustomer; - setParameter("CalleeCustomer", calleeCustomer); + setCoreParameter("CalleeCustomer", calleeCustomer); } std::string TwoPartiesCallRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string TwoPartiesCallRequest::getAccessKeyId()const void TwoPartiesCallRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string TwoPartiesCallRequest::getCalleeAgent()const @@ -77,6 +77,6 @@ std::string TwoPartiesCallRequest::getCalleeAgent()const void TwoPartiesCallRequest::setCalleeAgent(const std::string& calleeAgent) { calleeAgent_ = calleeAgent; - setParameter("CalleeAgent", calleeAgent); + setCoreParameter("CalleeAgent", calleeAgent); } diff --git a/ccc/src/model/TwoPartiesCallResult.cc b/ccc/src/model/TwoPartiesCallResult.cc index e3092a323..7987ca051 100644 --- a/ccc/src/model/TwoPartiesCallResult.cc +++ b/ccc/src/model/TwoPartiesCallResult.cc @@ -35,10 +35,13 @@ TwoPartiesCallResult::~TwoPartiesCallResult() void TwoPartiesCallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ccs/src/model/CreateTicketRequest.cc b/ccs/src/model/CreateTicketRequest.cc index fa60e1eb5..c6644811e 100644 --- a/ccs/src/model/CreateTicketRequest.cc +++ b/ccs/src/model/CreateTicketRequest.cc @@ -33,7 +33,7 @@ std::string CreateTicketRequest::getCreatorId()const void CreateTicketRequest::setCreatorId(const std::string& creatorId) { creatorId_ = creatorId; - setParameter("CreatorId", creatorId); + setCoreParameter("CreatorId", creatorId); } std::string CreateTicketRequest::getDescription()const @@ -44,7 +44,7 @@ std::string CreateTicketRequest::getDescription()const void CreateTicketRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateTicketRequest::getType()const @@ -55,7 +55,7 @@ std::string CreateTicketRequest::getType()const void CreateTicketRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateTicketRequest::getCcsInstanceId()const @@ -66,7 +66,7 @@ std::string CreateTicketRequest::getCcsInstanceId()const void CreateTicketRequest::setCcsInstanceId(const std::string& ccsInstanceId) { ccsInstanceId_ = ccsInstanceId; - setParameter("CcsInstanceId", ccsInstanceId); + setCoreParameter("CcsInstanceId", ccsInstanceId); } std::string CreateTicketRequest::getCustomFields()const @@ -77,6 +77,6 @@ std::string CreateTicketRequest::getCustomFields()const void CreateTicketRequest::setCustomFields(const std::string& customFields) { customFields_ = customFields; - setParameter("CustomFields", customFields); + setCoreParameter("CustomFields", customFields); } diff --git a/ccs/src/model/CreateTicketResult.cc b/ccs/src/model/CreateTicketResult.cc index aca62fc8a..d3d8a0cab 100644 --- a/ccs/src/model/CreateTicketResult.cc +++ b/ccs/src/model/CreateTicketResult.cc @@ -35,10 +35,13 @@ CreateTicketResult::~CreateTicketResult() void CreateTicketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/ccs/src/model/GetHotlineRecordRequest.cc b/ccs/src/model/GetHotlineRecordRequest.cc index 3dad085cf..7979aeaf7 100644 --- a/ccs/src/model/GetHotlineRecordRequest.cc +++ b/ccs/src/model/GetHotlineRecordRequest.cc @@ -33,7 +33,7 @@ std::string GetHotlineRecordRequest::getId()const void GetHotlineRecordRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string GetHotlineRecordRequest::getCcsInstanceId()const @@ -44,6 +44,6 @@ std::string GetHotlineRecordRequest::getCcsInstanceId()const void GetHotlineRecordRequest::setCcsInstanceId(const std::string& ccsInstanceId) { ccsInstanceId_ = ccsInstanceId; - setParameter("CcsInstanceId", ccsInstanceId); + setCoreParameter("CcsInstanceId", ccsInstanceId); } diff --git a/ccs/src/model/GetHotlineRecordResult.cc b/ccs/src/model/GetHotlineRecordResult.cc index d5fe95b61..89f2f1493 100644 --- a/ccs/src/model/GetHotlineRecordResult.cc +++ b/ccs/src/model/GetHotlineRecordResult.cc @@ -35,10 +35,13 @@ GetHotlineRecordResult::~GetHotlineRecordResult() void GetHotlineRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/ccs/src/model/ProceedTicketRequest.cc b/ccs/src/model/ProceedTicketRequest.cc index 7352310cb..8565a6b35 100644 --- a/ccs/src/model/ProceedTicketRequest.cc +++ b/ccs/src/model/ProceedTicketRequest.cc @@ -33,7 +33,7 @@ std::string ProceedTicketRequest::getMemo()const void ProceedTicketRequest::setMemo(const std::string& memo) { memo_ = memo; - setParameter("Memo", memo); + setCoreParameter("Memo", memo); } std::string ProceedTicketRequest::getId()const @@ -44,7 +44,7 @@ std::string ProceedTicketRequest::getId()const void ProceedTicketRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ProceedTicketRequest::getCcsInstanceId()const @@ -55,7 +55,7 @@ std::string ProceedTicketRequest::getCcsInstanceId()const void ProceedTicketRequest::setCcsInstanceId(const std::string& ccsInstanceId) { ccsInstanceId_ = ccsInstanceId; - setParameter("CcsInstanceId", ccsInstanceId); + setCoreParameter("CcsInstanceId", ccsInstanceId); } std::string ProceedTicketRequest::getOperation()const @@ -66,7 +66,7 @@ std::string ProceedTicketRequest::getOperation()const void ProceedTicketRequest::setOperation(const std::string& operation) { operation_ = operation; - setParameter("Operation", operation); + setCoreParameter("Operation", operation); } std::string ProceedTicketRequest::getOperatorId()const @@ -77,6 +77,6 @@ std::string ProceedTicketRequest::getOperatorId()const void ProceedTicketRequest::setOperatorId(const std::string& operatorId) { operatorId_ = operatorId; - setParameter("OperatorId", operatorId); + setCoreParameter("OperatorId", operatorId); } diff --git a/ccs/src/model/ProceedTicketResult.cc b/ccs/src/model/ProceedTicketResult.cc index fafb61998..430a38976 100644 --- a/ccs/src/model/ProceedTicketResult.cc +++ b/ccs/src/model/ProceedTicketResult.cc @@ -35,10 +35,13 @@ ProceedTicketResult::~ProceedTicketResult() void ProceedTicketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ccs/src/model/QueryHotlineRecordRequest.cc b/ccs/src/model/QueryHotlineRecordRequest.cc index 561854b60..78f79b847 100644 --- a/ccs/src/model/QueryHotlineRecordRequest.cc +++ b/ccs/src/model/QueryHotlineRecordRequest.cc @@ -33,7 +33,7 @@ std::string QueryHotlineRecordRequest::getAgentId()const void QueryHotlineRecordRequest::setAgentId(const std::string& agentId) { agentId_ = agentId; - setParameter("AgentId", agentId); + setCoreParameter("AgentId", agentId); } long QueryHotlineRecordRequest::getMaxTalkDuration()const @@ -44,7 +44,7 @@ long QueryHotlineRecordRequest::getMaxTalkDuration()const void QueryHotlineRecordRequest::setMaxTalkDuration(long maxTalkDuration) { maxTalkDuration_ = maxTalkDuration; - setParameter("MaxTalkDuration", std::to_string(maxTalkDuration)); + setCoreParameter("MaxTalkDuration", std::to_string(maxTalkDuration)); } std::string QueryHotlineRecordRequest::getGroupId()const @@ -55,7 +55,7 @@ std::string QueryHotlineRecordRequest::getGroupId()const void QueryHotlineRecordRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string QueryHotlineRecordRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string QueryHotlineRecordRequest::getEndTime()const void QueryHotlineRecordRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string QueryHotlineRecordRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string QueryHotlineRecordRequest::getStartTime()const void QueryHotlineRecordRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } int QueryHotlineRecordRequest::getPageNum()const @@ -88,7 +88,7 @@ int QueryHotlineRecordRequest::getPageNum()const void QueryHotlineRecordRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string QueryHotlineRecordRequest::getSatisfaction()const @@ -99,7 +99,7 @@ std::string QueryHotlineRecordRequest::getSatisfaction()const void QueryHotlineRecordRequest::setSatisfaction(const std::string& satisfaction) { satisfaction_ = satisfaction; - setParameter("Satisfaction", satisfaction); + setCoreParameter("Satisfaction", satisfaction); } long QueryHotlineRecordRequest::getMinTalkDuratoin()const @@ -110,7 +110,7 @@ long QueryHotlineRecordRequest::getMinTalkDuratoin()const void QueryHotlineRecordRequest::setMinTalkDuratoin(long minTalkDuratoin) { minTalkDuratoin_ = minTalkDuratoin; - setParameter("MinTalkDuratoin", std::to_string(minTalkDuratoin)); + setCoreParameter("MinTalkDuratoin", std::to_string(minTalkDuratoin)); } std::string QueryHotlineRecordRequest::getCategoryIds()const @@ -121,7 +121,7 @@ std::string QueryHotlineRecordRequest::getCategoryIds()const void QueryHotlineRecordRequest::setCategoryIds(const std::string& categoryIds) { categoryIds_ = categoryIds; - setParameter("CategoryIds", categoryIds); + setCoreParameter("CategoryIds", categoryIds); } std::string QueryHotlineRecordRequest::getVisitorProvince()const @@ -132,7 +132,7 @@ std::string QueryHotlineRecordRequest::getVisitorProvince()const void QueryHotlineRecordRequest::setVisitorProvince(const std::string& visitorProvince) { visitorProvince_ = visitorProvince; - setParameter("VisitorProvince", visitorProvince); + setCoreParameter("VisitorProvince", visitorProvince); } int QueryHotlineRecordRequest::getPageSize()const @@ -143,7 +143,7 @@ int QueryHotlineRecordRequest::getPageSize()const void QueryHotlineRecordRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryHotlineRecordRequest::getCallType()const @@ -154,7 +154,7 @@ std::string QueryHotlineRecordRequest::getCallType()const void QueryHotlineRecordRequest::setCallType(const std::string& callType) { callType_ = callType; - setParameter("CallType", callType); + setCoreParameter("CallType", callType); } std::string QueryHotlineRecordRequest::getCcsInstanceId()const @@ -165,7 +165,7 @@ std::string QueryHotlineRecordRequest::getCcsInstanceId()const void QueryHotlineRecordRequest::setCcsInstanceId(const std::string& ccsInstanceId) { ccsInstanceId_ = ccsInstanceId; - setParameter("CcsInstanceId", ccsInstanceId); + setCoreParameter("CcsInstanceId", ccsInstanceId); } std::string QueryHotlineRecordRequest::getVisitorPhone()const @@ -176,7 +176,7 @@ std::string QueryHotlineRecordRequest::getVisitorPhone()const void QueryHotlineRecordRequest::setVisitorPhone(const std::string& visitorPhone) { visitorPhone_ = visitorPhone; - setParameter("VisitorPhone", visitorPhone); + setCoreParameter("VisitorPhone", visitorPhone); } std::string QueryHotlineRecordRequest::getVisitorId()const @@ -187,7 +187,7 @@ std::string QueryHotlineRecordRequest::getVisitorId()const void QueryHotlineRecordRequest::setVisitorId(const std::string& visitorId) { visitorId_ = visitorId; - setParameter("VisitorId", visitorId); + setCoreParameter("VisitorId", visitorId); } std::string QueryHotlineRecordRequest::getStatus()const @@ -198,6 +198,6 @@ std::string QueryHotlineRecordRequest::getStatus()const void QueryHotlineRecordRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/ccs/src/model/QueryHotlineRecordResult.cc b/ccs/src/model/QueryHotlineRecordResult.cc index 2c5d26b57..f31229a9e 100644 --- a/ccs/src/model/QueryHotlineRecordResult.cc +++ b/ccs/src/model/QueryHotlineRecordResult.cc @@ -35,10 +35,13 @@ QueryHotlineRecordResult::~QueryHotlineRecordResult() void QueryHotlineRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecords = value["Records"]["HotlineRecord"]; for (auto value : allRecords) diff --git a/ccs/src/model/QueryTicketRequest.cc b/ccs/src/model/QueryTicketRequest.cc index 30fa71415..7c50458f4 100644 --- a/ccs/src/model/QueryTicketRequest.cc +++ b/ccs/src/model/QueryTicketRequest.cc @@ -33,7 +33,7 @@ std::string QueryTicketRequest::getStage()const void QueryTicketRequest::setStage(const std::string& stage) { stage_ = stage; - setParameter("Stage", stage); + setCoreParameter("Stage", stage); } int QueryTicketRequest::getPageSize()const @@ -44,7 +44,7 @@ int QueryTicketRequest::getPageSize()const void QueryTicketRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryTicketRequest::getCreatorId()const @@ -55,7 +55,7 @@ std::string QueryTicketRequest::getCreatorId()const void QueryTicketRequest::setCreatorId(const std::string& creatorId) { creatorId_ = creatorId; - setParameter("CreatorId", creatorId); + setCoreParameter("CreatorId", creatorId); } std::string QueryTicketRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string QueryTicketRequest::getEndTime()const void QueryTicketRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string QueryTicketRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string QueryTicketRequest::getStartTime()const void QueryTicketRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } int QueryTicketRequest::getPageNum()const @@ -88,7 +88,7 @@ int QueryTicketRequest::getPageNum()const void QueryTicketRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string QueryTicketRequest::getType()const @@ -99,7 +99,7 @@ std::string QueryTicketRequest::getType()const void QueryTicketRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string QueryTicketRequest::getCcsInstanceId()const @@ -110,6 +110,6 @@ std::string QueryTicketRequest::getCcsInstanceId()const void QueryTicketRequest::setCcsInstanceId(const std::string& ccsInstanceId) { ccsInstanceId_ = ccsInstanceId; - setParameter("CcsInstanceId", ccsInstanceId); + setCoreParameter("CcsInstanceId", ccsInstanceId); } diff --git a/ccs/src/model/QueryTicketResult.cc b/ccs/src/model/QueryTicketResult.cc index 32acaa0b9..755c8b9f6 100644 --- a/ccs/src/model/QueryTicketResult.cc +++ b/ccs/src/model/QueryTicketResult.cc @@ -35,10 +35,13 @@ QueryTicketResult::~QueryTicketResult() void QueryTicketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTickets = value["Tickets"]["Ticket"]; for (auto value : allTickets) diff --git a/cdn/CMakeLists.txt b/cdn/CMakeLists.txt index 9e4212891..94dd8b03f 100644 --- a/cdn/CMakeLists.txt +++ b/cdn/CMakeLists.txt @@ -23,10 +23,10 @@ set(cdn_public_header set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeCdnCertificateListRequest.h include/alibabacloud/cdn/model/DescribeCdnCertificateListResult.h - include/alibabacloud/cdn/model/DescribeCdnServiceRequest.h - include/alibabacloud/cdn/model/DescribeCdnServiceResult.h include/alibabacloud/cdn/model/SetPathCacheExpiredConfigRequest.h include/alibabacloud/cdn/model/SetPathCacheExpiredConfigResult.h + include/alibabacloud/cdn/model/DescribeCdnServiceRequest.h + include/alibabacloud/cdn/model/DescribeCdnServiceResult.h include/alibabacloud/cdn/model/AddFCTriggerRequest.h include/alibabacloud/cdn/model/AddFCTriggerResult.h include/alibabacloud/cdn/model/CreateLiveStreamRecordIndexFilesRequest.h @@ -35,10 +35,10 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeCdnUserQuotaResult.h include/alibabacloud/cdn/model/ModifyUserCustomLogConfigRequest.h include/alibabacloud/cdn/model/ModifyUserCustomLogConfigResult.h - include/alibabacloud/cdn/model/SetWafConfigRequest.h - include/alibabacloud/cdn/model/SetWafConfigResult.h include/alibabacloud/cdn/model/DescribeCdnDomainConfigsRequest.h include/alibabacloud/cdn/model/DescribeCdnDomainConfigsResult.h + include/alibabacloud/cdn/model/SetWafConfigRequest.h + include/alibabacloud/cdn/model/SetWafConfigResult.h include/alibabacloud/cdn/model/DescribeCdnDomainDetailRequest.h include/alibabacloud/cdn/model/DescribeCdnDomainDetailResult.h include/alibabacloud/cdn/model/DescribeLiveStreamsOnlineListRequest.h @@ -63,18 +63,18 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeDomainReqHitRateDataResult.h include/alibabacloud/cdn/model/StopMixStreamsServiceRequest.h include/alibabacloud/cdn/model/StopMixStreamsServiceResult.h - include/alibabacloud/cdn/model/DescribeCdnDomainByCertificateRequest.h - include/alibabacloud/cdn/model/DescribeCdnDomainByCertificateResult.h include/alibabacloud/cdn/model/DescribeDomainUvDataRequest.h include/alibabacloud/cdn/model/DescribeDomainUvDataResult.h - include/alibabacloud/cdn/model/DescribeCdnHttpsDomainListRequest.h - include/alibabacloud/cdn/model/DescribeCdnHttpsDomainListResult.h + include/alibabacloud/cdn/model/DescribeCdnDomainByCertificateRequest.h + include/alibabacloud/cdn/model/DescribeCdnDomainByCertificateResult.h include/alibabacloud/cdn/model/DeleteSpecificConfigRequest.h include/alibabacloud/cdn/model/DeleteSpecificConfigResult.h - include/alibabacloud/cdn/model/SetRemoveQueryStringConfigRequest.h - include/alibabacloud/cdn/model/SetRemoveQueryStringConfigResult.h + include/alibabacloud/cdn/model/DescribeCdnHttpsDomainListRequest.h + include/alibabacloud/cdn/model/DescribeCdnHttpsDomainListResult.h include/alibabacloud/cdn/model/DeleteCdnDomainRequest.h include/alibabacloud/cdn/model/DeleteCdnDomainResult.h + include/alibabacloud/cdn/model/SetRemoveQueryStringConfigRequest.h + include/alibabacloud/cdn/model/SetRemoveQueryStringConfigResult.h include/alibabacloud/cdn/model/DeleteLiveStreamTranscodeRequest.h include/alibabacloud/cdn/model/DeleteLiveStreamTranscodeResult.h include/alibabacloud/cdn/model/StopCdnDomainRequest.h @@ -111,10 +111,10 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/PushObjectCacheResult.h include/alibabacloud/cdn/model/DescribeDomainRealTimeHttpCodeDataRequest.h include/alibabacloud/cdn/model/DescribeDomainRealTimeHttpCodeDataResult.h - include/alibabacloud/cdn/model/DescribeLiveRecordConfigRequest.h - include/alibabacloud/cdn/model/DescribeLiveRecordConfigResult.h include/alibabacloud/cdn/model/DescribeDomainTrafficDataRequest.h include/alibabacloud/cdn/model/DescribeDomainTrafficDataResult.h + include/alibabacloud/cdn/model/DescribeLiveRecordConfigRequest.h + include/alibabacloud/cdn/model/DescribeLiveRecordConfigResult.h include/alibabacloud/cdn/model/SetForceRedirectConfigRequest.h include/alibabacloud/cdn/model/SetForceRedirectConfigResult.h include/alibabacloud/cdn/model/ListFCTriggerRequest.h @@ -123,10 +123,10 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/SetErrorPageConfigResult.h include/alibabacloud/cdn/model/DescribeLiveStreamOnlineUserNumRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamOnlineUserNumResult.h - include/alibabacloud/cdn/model/DeleteUsageDetailDataExportTaskRequest.h - include/alibabacloud/cdn/model/DeleteUsageDetailDataExportTaskResult.h include/alibabacloud/cdn/model/SetRefererConfigRequest.h include/alibabacloud/cdn/model/SetRefererConfigResult.h + include/alibabacloud/cdn/model/DeleteUsageDetailDataExportTaskRequest.h + include/alibabacloud/cdn/model/DeleteUsageDetailDataExportTaskResult.h include/alibabacloud/cdn/model/DescribeDomainSrcFlowDataRequest.h include/alibabacloud/cdn/model/DescribeDomainSrcFlowDataResult.h include/alibabacloud/cdn/model/DeleteLiveAppSnapshotConfigRequest.h @@ -139,10 +139,10 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/SetReqAuthConfigResult.h include/alibabacloud/cdn/model/SetDynamicConfigRequest.h include/alibabacloud/cdn/model/SetDynamicConfigResult.h - include/alibabacloud/cdn/model/SetDomainGreenManagerConfigRequest.h - include/alibabacloud/cdn/model/SetDomainGreenManagerConfigResult.h include/alibabacloud/cdn/model/SetHttpErrorPageConfigRequest.h include/alibabacloud/cdn/model/SetHttpErrorPageConfigResult.h + include/alibabacloud/cdn/model/SetDomainGreenManagerConfigRequest.h + include/alibabacloud/cdn/model/SetDomainGreenManagerConfigResult.h include/alibabacloud/cdn/model/StartMixStreamsServiceRequest.h include/alibabacloud/cdn/model/StartMixStreamsServiceResult.h include/alibabacloud/cdn/model/DescribeUserCdnStatusRequest.h @@ -163,26 +163,26 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeDomainFlowDataResult.h include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListResult.h - include/alibabacloud/cdn/model/SetIgnoreQueryStringConfigRequest.h - include/alibabacloud/cdn/model/SetIgnoreQueryStringConfigResult.h include/alibabacloud/cdn/model/AddLiveStreamTranscodeRequest.h include/alibabacloud/cdn/model/AddLiveStreamTranscodeResult.h + include/alibabacloud/cdn/model/SetIgnoreQueryStringConfigRequest.h + include/alibabacloud/cdn/model/SetIgnoreQueryStringConfigResult.h include/alibabacloud/cdn/model/DescribeDomainCustomLogConfigRequest.h include/alibabacloud/cdn/model/DescribeDomainCustomLogConfigResult.h - include/alibabacloud/cdn/model/DescribeUserCustomerLabelsRequest.h - include/alibabacloud/cdn/model/DescribeUserCustomerLabelsResult.h include/alibabacloud/cdn/model/DescribeCdnUserResourcePackageRequest.h include/alibabacloud/cdn/model/DescribeCdnUserResourcePackageResult.h + include/alibabacloud/cdn/model/DescribeUserCustomerLabelsRequest.h + include/alibabacloud/cdn/model/DescribeUserCustomerLabelsResult.h include/alibabacloud/cdn/model/BatchUpdateCdnDomainRequest.h include/alibabacloud/cdn/model/BatchUpdateCdnDomainResult.h include/alibabacloud/cdn/model/DescribeDomainTopReferVisitRequest.h include/alibabacloud/cdn/model/DescribeDomainTopReferVisitResult.h include/alibabacloud/cdn/model/DescribeLiveStreamsControlHistoryRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamsControlHistoryResult.h - include/alibabacloud/cdn/model/SetReqHeaderConfigRequest.h - include/alibabacloud/cdn/model/SetReqHeaderConfigResult.h include/alibabacloud/cdn/model/OpenCdnServiceRequest.h include/alibabacloud/cdn/model/OpenCdnServiceResult.h + include/alibabacloud/cdn/model/SetReqHeaderConfigRequest.h + include/alibabacloud/cdn/model/SetReqHeaderConfigResult.h include/alibabacloud/cdn/model/DescribeDomainRealTimeReqHitRateDataRequest.h include/alibabacloud/cdn/model/DescribeDomainRealTimeReqHitRateDataResult.h include/alibabacloud/cdn/model/SetIpBlackListConfigRequest.h @@ -197,18 +197,18 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/SetIpAllowListConfigResult.h include/alibabacloud/cdn/model/DescribeDomainRealTimeQpsDataRequest.h include/alibabacloud/cdn/model/DescribeDomainRealTimeQpsDataResult.h - include/alibabacloud/cdn/model/DescribeDomainBpsDataRequest.h - include/alibabacloud/cdn/model/DescribeDomainBpsDataResult.h include/alibabacloud/cdn/model/RefreshObjectCachesRequest.h include/alibabacloud/cdn/model/RefreshObjectCachesResult.h + include/alibabacloud/cdn/model/DescribeDomainBpsDataRequest.h + include/alibabacloud/cdn/model/DescribeDomainBpsDataResult.h include/alibabacloud/cdn/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h include/alibabacloud/cdn/model/DescribeLiveStreamRecordContentRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamRecordContentResult.h - include/alibabacloud/cdn/model/SetRangeConfigRequest.h - include/alibabacloud/cdn/model/SetRangeConfigResult.h include/alibabacloud/cdn/model/AddCdnDomainRequest.h include/alibabacloud/cdn/model/AddCdnDomainResult.h + include/alibabacloud/cdn/model/SetRangeConfigRequest.h + include/alibabacloud/cdn/model/SetRangeConfigResult.h include/alibabacloud/cdn/model/DescribeDomainCnameRequest.h include/alibabacloud/cdn/model/DescribeDomainCnameResult.h include/alibabacloud/cdn/model/SetCcConfigRequest.h @@ -219,10 +219,10 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeCustomLogConfigResult.h include/alibabacloud/cdn/model/DescribeUserDomainsRequest.h include/alibabacloud/cdn/model/DescribeUserDomainsResult.h - include/alibabacloud/cdn/model/DescribeLiveSnapshotConfigRequest.h - include/alibabacloud/cdn/model/DescribeLiveSnapshotConfigResult.h include/alibabacloud/cdn/model/CreateUserUsageDataExportTaskRequest.h include/alibabacloud/cdn/model/CreateUserUsageDataExportTaskResult.h + include/alibabacloud/cdn/model/DescribeLiveSnapshotConfigRequest.h + include/alibabacloud/cdn/model/DescribeLiveSnapshotConfigResult.h include/alibabacloud/cdn/model/DescribeRefreshTasksRequest.h include/alibabacloud/cdn/model/DescribeRefreshTasksResult.h include/alibabacloud/cdn/model/DeleteFCTriggerRequest.h @@ -245,10 +245,10 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/ModifyPathCacheExpiredConfigResult.h include/alibabacloud/cdn/model/DescribeUserConfigsRequest.h include/alibabacloud/cdn/model/DescribeUserConfigsResult.h - include/alibabacloud/cdn/model/DescribeDomainCertificateInfoRequest.h - include/alibabacloud/cdn/model/DescribeDomainCertificateInfoResult.h include/alibabacloud/cdn/model/DescribeRealtimeDeliveryAccRequest.h include/alibabacloud/cdn/model/DescribeRealtimeDeliveryAccResult.h + include/alibabacloud/cdn/model/DescribeDomainCertificateInfoRequest.h + include/alibabacloud/cdn/model/DescribeDomainCertificateInfoResult.h include/alibabacloud/cdn/model/DescribeLiveStreamRecordIndexFilesRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamRecordIndexFilesResult.h include/alibabacloud/cdn/model/ModifyCdnDomainRequest.h @@ -265,10 +265,10 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeL2VipsByDomainResult.h include/alibabacloud/cdn/model/ModifyHttpHeaderConfigRequest.h include/alibabacloud/cdn/model/ModifyHttpHeaderConfigResult.h - include/alibabacloud/cdn/model/SetDomainServerCertificateRequest.h - include/alibabacloud/cdn/model/SetDomainServerCertificateResult.h include/alibabacloud/cdn/model/BatchSetCdnDomainServerCertificateRequest.h include/alibabacloud/cdn/model/BatchSetCdnDomainServerCertificateResult.h + include/alibabacloud/cdn/model/SetDomainServerCertificateRequest.h + include/alibabacloud/cdn/model/SetDomainServerCertificateResult.h include/alibabacloud/cdn/model/DescribeIpInfoRequest.h include/alibabacloud/cdn/model/DescribeIpInfoResult.h include/alibabacloud/cdn/model/DescribeDomainsBySourceRequest.h @@ -293,30 +293,30 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/AddLiveDomainMappingResult.h include/alibabacloud/cdn/model/DescribeDomainRealTimeSrcBpsDataRequest.h include/alibabacloud/cdn/model/DescribeDomainRealTimeSrcBpsDataResult.h - include/alibabacloud/cdn/model/ResumeLiveStreamRequest.h - include/alibabacloud/cdn/model/ResumeLiveStreamResult.h include/alibabacloud/cdn/model/DescribeUserUsageDataExportTaskRequest.h include/alibabacloud/cdn/model/DescribeUserUsageDataExportTaskResult.h + include/alibabacloud/cdn/model/ResumeLiveStreamRequest.h + include/alibabacloud/cdn/model/ResumeLiveStreamResult.h include/alibabacloud/cdn/model/DescribeFCTriggerRequest.h include/alibabacloud/cdn/model/DescribeFCTriggerResult.h include/alibabacloud/cdn/model/UpdateFCTriggerRequest.h include/alibabacloud/cdn/model/UpdateFCTriggerResult.h include/alibabacloud/cdn/model/DescribeDomainRealTimeBpsDataRequest.h include/alibabacloud/cdn/model/DescribeDomainRealTimeBpsDataResult.h - include/alibabacloud/cdn/model/DescribeLiveStreamsPublishListRequest.h - include/alibabacloud/cdn/model/DescribeLiveStreamsPublishListResult.h include/alibabacloud/cdn/model/DescribeDomainCCAttackInfoRequest.h include/alibabacloud/cdn/model/DescribeDomainCCAttackInfoResult.h + include/alibabacloud/cdn/model/DescribeLiveStreamsPublishListRequest.h + include/alibabacloud/cdn/model/DescribeLiveStreamsPublishListResult.h include/alibabacloud/cdn/model/DescribeDomainRealTimeSrcTrafficDataRequest.h include/alibabacloud/cdn/model/DescribeDomainRealTimeSrcTrafficDataResult.h include/alibabacloud/cdn/model/DescribeDomainMax95BpsDataRequest.h include/alibabacloud/cdn/model/DescribeDomainMax95BpsDataResult.h include/alibabacloud/cdn/model/DescribeDomainUsageDataRequest.h include/alibabacloud/cdn/model/DescribeDomainUsageDataResult.h - include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h - include/alibabacloud/cdn/model/SetWaitingRoomConfigResult.h include/alibabacloud/cdn/model/SetHttpsOptionConfigRequest.h include/alibabacloud/cdn/model/SetHttpsOptionConfigResult.h + include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h + include/alibabacloud/cdn/model/SetWaitingRoomConfigResult.h include/alibabacloud/cdn/model/ListDomainsByLogConfigIdRequest.h include/alibabacloud/cdn/model/ListDomainsByLogConfigIdResult.h include/alibabacloud/cdn/model/DescribeRangeDataByLocateAndIspServiceRequest.h @@ -342,10 +342,10 @@ set(cdn_src src/CdnClient.cc src/model/DescribeCdnCertificateListRequest.cc src/model/DescribeCdnCertificateListResult.cc - src/model/DescribeCdnServiceRequest.cc - src/model/DescribeCdnServiceResult.cc src/model/SetPathCacheExpiredConfigRequest.cc src/model/SetPathCacheExpiredConfigResult.cc + src/model/DescribeCdnServiceRequest.cc + src/model/DescribeCdnServiceResult.cc src/model/AddFCTriggerRequest.cc src/model/AddFCTriggerResult.cc src/model/CreateLiveStreamRecordIndexFilesRequest.cc @@ -354,10 +354,10 @@ set(cdn_src src/model/DescribeCdnUserQuotaResult.cc src/model/ModifyUserCustomLogConfigRequest.cc src/model/ModifyUserCustomLogConfigResult.cc - src/model/SetWafConfigRequest.cc - src/model/SetWafConfigResult.cc src/model/DescribeCdnDomainConfigsRequest.cc src/model/DescribeCdnDomainConfigsResult.cc + src/model/SetWafConfigRequest.cc + src/model/SetWafConfigResult.cc src/model/DescribeCdnDomainDetailRequest.cc src/model/DescribeCdnDomainDetailResult.cc src/model/DescribeLiveStreamsOnlineListRequest.cc @@ -382,18 +382,18 @@ set(cdn_src src/model/DescribeDomainReqHitRateDataResult.cc src/model/StopMixStreamsServiceRequest.cc src/model/StopMixStreamsServiceResult.cc - src/model/DescribeCdnDomainByCertificateRequest.cc - src/model/DescribeCdnDomainByCertificateResult.cc src/model/DescribeDomainUvDataRequest.cc src/model/DescribeDomainUvDataResult.cc - src/model/DescribeCdnHttpsDomainListRequest.cc - src/model/DescribeCdnHttpsDomainListResult.cc + src/model/DescribeCdnDomainByCertificateRequest.cc + src/model/DescribeCdnDomainByCertificateResult.cc src/model/DeleteSpecificConfigRequest.cc src/model/DeleteSpecificConfigResult.cc - src/model/SetRemoveQueryStringConfigRequest.cc - src/model/SetRemoveQueryStringConfigResult.cc + src/model/DescribeCdnHttpsDomainListRequest.cc + src/model/DescribeCdnHttpsDomainListResult.cc src/model/DeleteCdnDomainRequest.cc src/model/DeleteCdnDomainResult.cc + src/model/SetRemoveQueryStringConfigRequest.cc + src/model/SetRemoveQueryStringConfigResult.cc src/model/DeleteLiveStreamTranscodeRequest.cc src/model/DeleteLiveStreamTranscodeResult.cc src/model/StopCdnDomainRequest.cc @@ -430,10 +430,10 @@ set(cdn_src src/model/PushObjectCacheResult.cc src/model/DescribeDomainRealTimeHttpCodeDataRequest.cc src/model/DescribeDomainRealTimeHttpCodeDataResult.cc - src/model/DescribeLiveRecordConfigRequest.cc - src/model/DescribeLiveRecordConfigResult.cc src/model/DescribeDomainTrafficDataRequest.cc src/model/DescribeDomainTrafficDataResult.cc + src/model/DescribeLiveRecordConfigRequest.cc + src/model/DescribeLiveRecordConfigResult.cc src/model/SetForceRedirectConfigRequest.cc src/model/SetForceRedirectConfigResult.cc src/model/ListFCTriggerRequest.cc @@ -442,10 +442,10 @@ set(cdn_src src/model/SetErrorPageConfigResult.cc src/model/DescribeLiveStreamOnlineUserNumRequest.cc src/model/DescribeLiveStreamOnlineUserNumResult.cc - src/model/DeleteUsageDetailDataExportTaskRequest.cc - src/model/DeleteUsageDetailDataExportTaskResult.cc src/model/SetRefererConfigRequest.cc src/model/SetRefererConfigResult.cc + src/model/DeleteUsageDetailDataExportTaskRequest.cc + src/model/DeleteUsageDetailDataExportTaskResult.cc src/model/DescribeDomainSrcFlowDataRequest.cc src/model/DescribeDomainSrcFlowDataResult.cc src/model/DeleteLiveAppSnapshotConfigRequest.cc @@ -458,10 +458,10 @@ set(cdn_src src/model/SetReqAuthConfigResult.cc src/model/SetDynamicConfigRequest.cc src/model/SetDynamicConfigResult.cc - src/model/SetDomainGreenManagerConfigRequest.cc - src/model/SetDomainGreenManagerConfigResult.cc src/model/SetHttpErrorPageConfigRequest.cc src/model/SetHttpErrorPageConfigResult.cc + src/model/SetDomainGreenManagerConfigRequest.cc + src/model/SetDomainGreenManagerConfigResult.cc src/model/StartMixStreamsServiceRequest.cc src/model/StartMixStreamsServiceResult.cc src/model/DescribeUserCdnStatusRequest.cc @@ -482,26 +482,26 @@ set(cdn_src src/model/DescribeDomainFlowDataResult.cc src/model/DescribeLiveStreamsBlockListRequest.cc src/model/DescribeLiveStreamsBlockListResult.cc - src/model/SetIgnoreQueryStringConfigRequest.cc - src/model/SetIgnoreQueryStringConfigResult.cc src/model/AddLiveStreamTranscodeRequest.cc src/model/AddLiveStreamTranscodeResult.cc + src/model/SetIgnoreQueryStringConfigRequest.cc + src/model/SetIgnoreQueryStringConfigResult.cc src/model/DescribeDomainCustomLogConfigRequest.cc src/model/DescribeDomainCustomLogConfigResult.cc - src/model/DescribeUserCustomerLabelsRequest.cc - src/model/DescribeUserCustomerLabelsResult.cc src/model/DescribeCdnUserResourcePackageRequest.cc src/model/DescribeCdnUserResourcePackageResult.cc + src/model/DescribeUserCustomerLabelsRequest.cc + src/model/DescribeUserCustomerLabelsResult.cc src/model/BatchUpdateCdnDomainRequest.cc src/model/BatchUpdateCdnDomainResult.cc src/model/DescribeDomainTopReferVisitRequest.cc src/model/DescribeDomainTopReferVisitResult.cc src/model/DescribeLiveStreamsControlHistoryRequest.cc src/model/DescribeLiveStreamsControlHistoryResult.cc - src/model/SetReqHeaderConfigRequest.cc - src/model/SetReqHeaderConfigResult.cc src/model/OpenCdnServiceRequest.cc src/model/OpenCdnServiceResult.cc + src/model/SetReqHeaderConfigRequest.cc + src/model/SetReqHeaderConfigResult.cc src/model/DescribeDomainRealTimeReqHitRateDataRequest.cc src/model/DescribeDomainRealTimeReqHitRateDataResult.cc src/model/SetIpBlackListConfigRequest.cc @@ -516,18 +516,18 @@ set(cdn_src src/model/SetIpAllowListConfigResult.cc src/model/DescribeDomainRealTimeQpsDataRequest.cc src/model/DescribeDomainRealTimeQpsDataResult.cc - src/model/DescribeDomainBpsDataRequest.cc - src/model/DescribeDomainBpsDataResult.cc src/model/RefreshObjectCachesRequest.cc src/model/RefreshObjectCachesResult.cc + src/model/DescribeDomainBpsDataRequest.cc + src/model/DescribeDomainBpsDataResult.cc src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc src/model/DescribeLiveStreamRecordContentRequest.cc src/model/DescribeLiveStreamRecordContentResult.cc - src/model/SetRangeConfigRequest.cc - src/model/SetRangeConfigResult.cc src/model/AddCdnDomainRequest.cc src/model/AddCdnDomainResult.cc + src/model/SetRangeConfigRequest.cc + src/model/SetRangeConfigResult.cc src/model/DescribeDomainCnameRequest.cc src/model/DescribeDomainCnameResult.cc src/model/SetCcConfigRequest.cc @@ -538,10 +538,10 @@ set(cdn_src src/model/DescribeCustomLogConfigResult.cc src/model/DescribeUserDomainsRequest.cc src/model/DescribeUserDomainsResult.cc - src/model/DescribeLiveSnapshotConfigRequest.cc - src/model/DescribeLiveSnapshotConfigResult.cc src/model/CreateUserUsageDataExportTaskRequest.cc src/model/CreateUserUsageDataExportTaskResult.cc + src/model/DescribeLiveSnapshotConfigRequest.cc + src/model/DescribeLiveSnapshotConfigResult.cc src/model/DescribeRefreshTasksRequest.cc src/model/DescribeRefreshTasksResult.cc src/model/DeleteFCTriggerRequest.cc @@ -564,10 +564,10 @@ set(cdn_src src/model/ModifyPathCacheExpiredConfigResult.cc src/model/DescribeUserConfigsRequest.cc src/model/DescribeUserConfigsResult.cc - src/model/DescribeDomainCertificateInfoRequest.cc - src/model/DescribeDomainCertificateInfoResult.cc src/model/DescribeRealtimeDeliveryAccRequest.cc src/model/DescribeRealtimeDeliveryAccResult.cc + src/model/DescribeDomainCertificateInfoRequest.cc + src/model/DescribeDomainCertificateInfoResult.cc src/model/DescribeLiveStreamRecordIndexFilesRequest.cc src/model/DescribeLiveStreamRecordIndexFilesResult.cc src/model/ModifyCdnDomainRequest.cc @@ -584,10 +584,10 @@ set(cdn_src src/model/DescribeL2VipsByDomainResult.cc src/model/ModifyHttpHeaderConfigRequest.cc src/model/ModifyHttpHeaderConfigResult.cc - src/model/SetDomainServerCertificateRequest.cc - src/model/SetDomainServerCertificateResult.cc src/model/BatchSetCdnDomainServerCertificateRequest.cc src/model/BatchSetCdnDomainServerCertificateResult.cc + src/model/SetDomainServerCertificateRequest.cc + src/model/SetDomainServerCertificateResult.cc src/model/DescribeIpInfoRequest.cc src/model/DescribeIpInfoResult.cc src/model/DescribeDomainsBySourceRequest.cc @@ -612,30 +612,30 @@ set(cdn_src src/model/AddLiveDomainMappingResult.cc src/model/DescribeDomainRealTimeSrcBpsDataRequest.cc src/model/DescribeDomainRealTimeSrcBpsDataResult.cc - src/model/ResumeLiveStreamRequest.cc - src/model/ResumeLiveStreamResult.cc src/model/DescribeUserUsageDataExportTaskRequest.cc src/model/DescribeUserUsageDataExportTaskResult.cc + src/model/ResumeLiveStreamRequest.cc + src/model/ResumeLiveStreamResult.cc src/model/DescribeFCTriggerRequest.cc src/model/DescribeFCTriggerResult.cc src/model/UpdateFCTriggerRequest.cc src/model/UpdateFCTriggerResult.cc src/model/DescribeDomainRealTimeBpsDataRequest.cc src/model/DescribeDomainRealTimeBpsDataResult.cc - src/model/DescribeLiveStreamsPublishListRequest.cc - src/model/DescribeLiveStreamsPublishListResult.cc src/model/DescribeDomainCCAttackInfoRequest.cc src/model/DescribeDomainCCAttackInfoResult.cc + src/model/DescribeLiveStreamsPublishListRequest.cc + src/model/DescribeLiveStreamsPublishListResult.cc src/model/DescribeDomainRealTimeSrcTrafficDataRequest.cc src/model/DescribeDomainRealTimeSrcTrafficDataResult.cc src/model/DescribeDomainMax95BpsDataRequest.cc src/model/DescribeDomainMax95BpsDataResult.cc src/model/DescribeDomainUsageDataRequest.cc src/model/DescribeDomainUsageDataResult.cc - src/model/SetWaitingRoomConfigRequest.cc - src/model/SetWaitingRoomConfigResult.cc src/model/SetHttpsOptionConfigRequest.cc src/model/SetHttpsOptionConfigResult.cc + src/model/SetWaitingRoomConfigRequest.cc + src/model/SetWaitingRoomConfigResult.cc src/model/ListDomainsByLogConfigIdRequest.cc src/model/ListDomainsByLogConfigIdResult.cc src/model/DescribeRangeDataByLocateAndIspServiceRequest.cc diff --git a/cdn/include/alibabacloud/cdn/CdnClient.h b/cdn/include/alibabacloud/cdn/CdnClient.h index 769a4739f..6367c1cd9 100644 --- a/cdn/include/alibabacloud/cdn/CdnClient.h +++ b/cdn/include/alibabacloud/cdn/CdnClient.h @@ -24,10 +24,10 @@ #include "CdnExport.h" #include "model/DescribeCdnCertificateListRequest.h" #include "model/DescribeCdnCertificateListResult.h" -#include "model/DescribeCdnServiceRequest.h" -#include "model/DescribeCdnServiceResult.h" #include "model/SetPathCacheExpiredConfigRequest.h" #include "model/SetPathCacheExpiredConfigResult.h" +#include "model/DescribeCdnServiceRequest.h" +#include "model/DescribeCdnServiceResult.h" #include "model/AddFCTriggerRequest.h" #include "model/AddFCTriggerResult.h" #include "model/CreateLiveStreamRecordIndexFilesRequest.h" @@ -36,10 +36,10 @@ #include "model/DescribeCdnUserQuotaResult.h" #include "model/ModifyUserCustomLogConfigRequest.h" #include "model/ModifyUserCustomLogConfigResult.h" -#include "model/SetWafConfigRequest.h" -#include "model/SetWafConfigResult.h" #include "model/DescribeCdnDomainConfigsRequest.h" #include "model/DescribeCdnDomainConfigsResult.h" +#include "model/SetWafConfigRequest.h" +#include "model/SetWafConfigResult.h" #include "model/DescribeCdnDomainDetailRequest.h" #include "model/DescribeCdnDomainDetailResult.h" #include "model/DescribeLiveStreamsOnlineListRequest.h" @@ -64,18 +64,18 @@ #include "model/DescribeDomainReqHitRateDataResult.h" #include "model/StopMixStreamsServiceRequest.h" #include "model/StopMixStreamsServiceResult.h" -#include "model/DescribeCdnDomainByCertificateRequest.h" -#include "model/DescribeCdnDomainByCertificateResult.h" #include "model/DescribeDomainUvDataRequest.h" #include "model/DescribeDomainUvDataResult.h" -#include "model/DescribeCdnHttpsDomainListRequest.h" -#include "model/DescribeCdnHttpsDomainListResult.h" +#include "model/DescribeCdnDomainByCertificateRequest.h" +#include "model/DescribeCdnDomainByCertificateResult.h" #include "model/DeleteSpecificConfigRequest.h" #include "model/DeleteSpecificConfigResult.h" -#include "model/SetRemoveQueryStringConfigRequest.h" -#include "model/SetRemoveQueryStringConfigResult.h" +#include "model/DescribeCdnHttpsDomainListRequest.h" +#include "model/DescribeCdnHttpsDomainListResult.h" #include "model/DeleteCdnDomainRequest.h" #include "model/DeleteCdnDomainResult.h" +#include "model/SetRemoveQueryStringConfigRequest.h" +#include "model/SetRemoveQueryStringConfigResult.h" #include "model/DeleteLiveStreamTranscodeRequest.h" #include "model/DeleteLiveStreamTranscodeResult.h" #include "model/StopCdnDomainRequest.h" @@ -112,10 +112,10 @@ #include "model/PushObjectCacheResult.h" #include "model/DescribeDomainRealTimeHttpCodeDataRequest.h" #include "model/DescribeDomainRealTimeHttpCodeDataResult.h" -#include "model/DescribeLiveRecordConfigRequest.h" -#include "model/DescribeLiveRecordConfigResult.h" #include "model/DescribeDomainTrafficDataRequest.h" #include "model/DescribeDomainTrafficDataResult.h" +#include "model/DescribeLiveRecordConfigRequest.h" +#include "model/DescribeLiveRecordConfigResult.h" #include "model/SetForceRedirectConfigRequest.h" #include "model/SetForceRedirectConfigResult.h" #include "model/ListFCTriggerRequest.h" @@ -124,10 +124,10 @@ #include "model/SetErrorPageConfigResult.h" #include "model/DescribeLiveStreamOnlineUserNumRequest.h" #include "model/DescribeLiveStreamOnlineUserNumResult.h" -#include "model/DeleteUsageDetailDataExportTaskRequest.h" -#include "model/DeleteUsageDetailDataExportTaskResult.h" #include "model/SetRefererConfigRequest.h" #include "model/SetRefererConfigResult.h" +#include "model/DeleteUsageDetailDataExportTaskRequest.h" +#include "model/DeleteUsageDetailDataExportTaskResult.h" #include "model/DescribeDomainSrcFlowDataRequest.h" #include "model/DescribeDomainSrcFlowDataResult.h" #include "model/DeleteLiveAppSnapshotConfigRequest.h" @@ -140,10 +140,10 @@ #include "model/SetReqAuthConfigResult.h" #include "model/SetDynamicConfigRequest.h" #include "model/SetDynamicConfigResult.h" -#include "model/SetDomainGreenManagerConfigRequest.h" -#include "model/SetDomainGreenManagerConfigResult.h" #include "model/SetHttpErrorPageConfigRequest.h" #include "model/SetHttpErrorPageConfigResult.h" +#include "model/SetDomainGreenManagerConfigRequest.h" +#include "model/SetDomainGreenManagerConfigResult.h" #include "model/StartMixStreamsServiceRequest.h" #include "model/StartMixStreamsServiceResult.h" #include "model/DescribeUserCdnStatusRequest.h" @@ -164,26 +164,26 @@ #include "model/DescribeDomainFlowDataResult.h" #include "model/DescribeLiveStreamsBlockListRequest.h" #include "model/DescribeLiveStreamsBlockListResult.h" -#include "model/SetIgnoreQueryStringConfigRequest.h" -#include "model/SetIgnoreQueryStringConfigResult.h" #include "model/AddLiveStreamTranscodeRequest.h" #include "model/AddLiveStreamTranscodeResult.h" +#include "model/SetIgnoreQueryStringConfigRequest.h" +#include "model/SetIgnoreQueryStringConfigResult.h" #include "model/DescribeDomainCustomLogConfigRequest.h" #include "model/DescribeDomainCustomLogConfigResult.h" -#include "model/DescribeUserCustomerLabelsRequest.h" -#include "model/DescribeUserCustomerLabelsResult.h" #include "model/DescribeCdnUserResourcePackageRequest.h" #include "model/DescribeCdnUserResourcePackageResult.h" +#include "model/DescribeUserCustomerLabelsRequest.h" +#include "model/DescribeUserCustomerLabelsResult.h" #include "model/BatchUpdateCdnDomainRequest.h" #include "model/BatchUpdateCdnDomainResult.h" #include "model/DescribeDomainTopReferVisitRequest.h" #include "model/DescribeDomainTopReferVisitResult.h" #include "model/DescribeLiveStreamsControlHistoryRequest.h" #include "model/DescribeLiveStreamsControlHistoryResult.h" -#include "model/SetReqHeaderConfigRequest.h" -#include "model/SetReqHeaderConfigResult.h" #include "model/OpenCdnServiceRequest.h" #include "model/OpenCdnServiceResult.h" +#include "model/SetReqHeaderConfigRequest.h" +#include "model/SetReqHeaderConfigResult.h" #include "model/DescribeDomainRealTimeReqHitRateDataRequest.h" #include "model/DescribeDomainRealTimeReqHitRateDataResult.h" #include "model/SetIpBlackListConfigRequest.h" @@ -198,18 +198,18 @@ #include "model/SetIpAllowListConfigResult.h" #include "model/DescribeDomainRealTimeQpsDataRequest.h" #include "model/DescribeDomainRealTimeQpsDataResult.h" -#include "model/DescribeDomainBpsDataRequest.h" -#include "model/DescribeDomainBpsDataResult.h" #include "model/RefreshObjectCachesRequest.h" #include "model/RefreshObjectCachesResult.h" +#include "model/DescribeDomainBpsDataRequest.h" +#include "model/DescribeDomainBpsDataResult.h" #include "model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h" #include "model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h" #include "model/DescribeLiveStreamRecordContentRequest.h" #include "model/DescribeLiveStreamRecordContentResult.h" -#include "model/SetRangeConfigRequest.h" -#include "model/SetRangeConfigResult.h" #include "model/AddCdnDomainRequest.h" #include "model/AddCdnDomainResult.h" +#include "model/SetRangeConfigRequest.h" +#include "model/SetRangeConfigResult.h" #include "model/DescribeDomainCnameRequest.h" #include "model/DescribeDomainCnameResult.h" #include "model/SetCcConfigRequest.h" @@ -220,10 +220,10 @@ #include "model/DescribeCustomLogConfigResult.h" #include "model/DescribeUserDomainsRequest.h" #include "model/DescribeUserDomainsResult.h" -#include "model/DescribeLiveSnapshotConfigRequest.h" -#include "model/DescribeLiveSnapshotConfigResult.h" #include "model/CreateUserUsageDataExportTaskRequest.h" #include "model/CreateUserUsageDataExportTaskResult.h" +#include "model/DescribeLiveSnapshotConfigRequest.h" +#include "model/DescribeLiveSnapshotConfigResult.h" #include "model/DescribeRefreshTasksRequest.h" #include "model/DescribeRefreshTasksResult.h" #include "model/DeleteFCTriggerRequest.h" @@ -246,10 +246,10 @@ #include "model/ModifyPathCacheExpiredConfigResult.h" #include "model/DescribeUserConfigsRequest.h" #include "model/DescribeUserConfigsResult.h" -#include "model/DescribeDomainCertificateInfoRequest.h" -#include "model/DescribeDomainCertificateInfoResult.h" #include "model/DescribeRealtimeDeliveryAccRequest.h" #include "model/DescribeRealtimeDeliveryAccResult.h" +#include "model/DescribeDomainCertificateInfoRequest.h" +#include "model/DescribeDomainCertificateInfoResult.h" #include "model/DescribeLiveStreamRecordIndexFilesRequest.h" #include "model/DescribeLiveStreamRecordIndexFilesResult.h" #include "model/ModifyCdnDomainRequest.h" @@ -266,10 +266,10 @@ #include "model/DescribeL2VipsByDomainResult.h" #include "model/ModifyHttpHeaderConfigRequest.h" #include "model/ModifyHttpHeaderConfigResult.h" -#include "model/SetDomainServerCertificateRequest.h" -#include "model/SetDomainServerCertificateResult.h" #include "model/BatchSetCdnDomainServerCertificateRequest.h" #include "model/BatchSetCdnDomainServerCertificateResult.h" +#include "model/SetDomainServerCertificateRequest.h" +#include "model/SetDomainServerCertificateResult.h" #include "model/DescribeIpInfoRequest.h" #include "model/DescribeIpInfoResult.h" #include "model/DescribeDomainsBySourceRequest.h" @@ -294,30 +294,30 @@ #include "model/AddLiveDomainMappingResult.h" #include "model/DescribeDomainRealTimeSrcBpsDataRequest.h" #include "model/DescribeDomainRealTimeSrcBpsDataResult.h" -#include "model/ResumeLiveStreamRequest.h" -#include "model/ResumeLiveStreamResult.h" #include "model/DescribeUserUsageDataExportTaskRequest.h" #include "model/DescribeUserUsageDataExportTaskResult.h" +#include "model/ResumeLiveStreamRequest.h" +#include "model/ResumeLiveStreamResult.h" #include "model/DescribeFCTriggerRequest.h" #include "model/DescribeFCTriggerResult.h" #include "model/UpdateFCTriggerRequest.h" #include "model/UpdateFCTriggerResult.h" #include "model/DescribeDomainRealTimeBpsDataRequest.h" #include "model/DescribeDomainRealTimeBpsDataResult.h" -#include "model/DescribeLiveStreamsPublishListRequest.h" -#include "model/DescribeLiveStreamsPublishListResult.h" #include "model/DescribeDomainCCAttackInfoRequest.h" #include "model/DescribeDomainCCAttackInfoResult.h" +#include "model/DescribeLiveStreamsPublishListRequest.h" +#include "model/DescribeLiveStreamsPublishListResult.h" #include "model/DescribeDomainRealTimeSrcTrafficDataRequest.h" #include "model/DescribeDomainRealTimeSrcTrafficDataResult.h" #include "model/DescribeDomainMax95BpsDataRequest.h" #include "model/DescribeDomainMax95BpsDataResult.h" #include "model/DescribeDomainUsageDataRequest.h" #include "model/DescribeDomainUsageDataResult.h" -#include "model/SetWaitingRoomConfigRequest.h" -#include "model/SetWaitingRoomConfigResult.h" #include "model/SetHttpsOptionConfigRequest.h" #include "model/SetHttpsOptionConfigResult.h" +#include "model/SetWaitingRoomConfigRequest.h" +#include "model/SetWaitingRoomConfigResult.h" #include "model/ListDomainsByLogConfigIdRequest.h" #include "model/ListDomainsByLogConfigIdResult.h" #include "model/DescribeRangeDataByLocateAndIspServiceRequest.h" @@ -350,12 +350,12 @@ namespace AlibabaCloud typedef Outcome DescribeCdnCertificateListOutcome; typedef std::future DescribeCdnCertificateListOutcomeCallable; typedef std::function&)> DescribeCdnCertificateListAsyncHandler; - typedef Outcome DescribeCdnServiceOutcome; - typedef std::future DescribeCdnServiceOutcomeCallable; - typedef std::function&)> DescribeCdnServiceAsyncHandler; typedef Outcome SetPathCacheExpiredConfigOutcome; typedef std::future SetPathCacheExpiredConfigOutcomeCallable; typedef std::function&)> SetPathCacheExpiredConfigAsyncHandler; + typedef Outcome DescribeCdnServiceOutcome; + typedef std::future DescribeCdnServiceOutcomeCallable; + typedef std::function&)> DescribeCdnServiceAsyncHandler; typedef Outcome AddFCTriggerOutcome; typedef std::future AddFCTriggerOutcomeCallable; typedef std::function&)> AddFCTriggerAsyncHandler; @@ -368,12 +368,12 @@ namespace AlibabaCloud typedef Outcome ModifyUserCustomLogConfigOutcome; typedef std::future ModifyUserCustomLogConfigOutcomeCallable; typedef std::function&)> ModifyUserCustomLogConfigAsyncHandler; - typedef Outcome SetWafConfigOutcome; - typedef std::future SetWafConfigOutcomeCallable; - typedef std::function&)> SetWafConfigAsyncHandler; typedef Outcome DescribeCdnDomainConfigsOutcome; typedef std::future DescribeCdnDomainConfigsOutcomeCallable; typedef std::function&)> DescribeCdnDomainConfigsAsyncHandler; + typedef Outcome SetWafConfigOutcome; + typedef std::future SetWafConfigOutcomeCallable; + typedef std::function&)> SetWafConfigAsyncHandler; typedef Outcome DescribeCdnDomainDetailOutcome; typedef std::future DescribeCdnDomainDetailOutcomeCallable; typedef std::function&)> DescribeCdnDomainDetailAsyncHandler; @@ -410,24 +410,24 @@ namespace AlibabaCloud typedef Outcome StopMixStreamsServiceOutcome; typedef std::future StopMixStreamsServiceOutcomeCallable; typedef std::function&)> StopMixStreamsServiceAsyncHandler; - typedef Outcome DescribeCdnDomainByCertificateOutcome; - typedef std::future DescribeCdnDomainByCertificateOutcomeCallable; - typedef std::function&)> DescribeCdnDomainByCertificateAsyncHandler; typedef Outcome DescribeDomainUvDataOutcome; typedef std::future DescribeDomainUvDataOutcomeCallable; typedef std::function&)> DescribeDomainUvDataAsyncHandler; - typedef Outcome DescribeCdnHttpsDomainListOutcome; - typedef std::future DescribeCdnHttpsDomainListOutcomeCallable; - typedef std::function&)> DescribeCdnHttpsDomainListAsyncHandler; + typedef Outcome DescribeCdnDomainByCertificateOutcome; + typedef std::future DescribeCdnDomainByCertificateOutcomeCallable; + typedef std::function&)> DescribeCdnDomainByCertificateAsyncHandler; typedef Outcome DeleteSpecificConfigOutcome; typedef std::future DeleteSpecificConfigOutcomeCallable; typedef std::function&)> DeleteSpecificConfigAsyncHandler; - typedef Outcome SetRemoveQueryStringConfigOutcome; - typedef std::future SetRemoveQueryStringConfigOutcomeCallable; - typedef std::function&)> SetRemoveQueryStringConfigAsyncHandler; + typedef Outcome DescribeCdnHttpsDomainListOutcome; + typedef std::future DescribeCdnHttpsDomainListOutcomeCallable; + typedef std::function&)> DescribeCdnHttpsDomainListAsyncHandler; typedef Outcome DeleteCdnDomainOutcome; typedef std::future DeleteCdnDomainOutcomeCallable; typedef std::function&)> DeleteCdnDomainAsyncHandler; + typedef Outcome SetRemoveQueryStringConfigOutcome; + typedef std::future SetRemoveQueryStringConfigOutcomeCallable; + typedef std::function&)> SetRemoveQueryStringConfigAsyncHandler; typedef Outcome DeleteLiveStreamTranscodeOutcome; typedef std::future DeleteLiveStreamTranscodeOutcomeCallable; typedef std::function&)> DeleteLiveStreamTranscodeAsyncHandler; @@ -482,12 +482,12 @@ namespace AlibabaCloud typedef Outcome DescribeDomainRealTimeHttpCodeDataOutcome; typedef std::future DescribeDomainRealTimeHttpCodeDataOutcomeCallable; typedef std::function&)> DescribeDomainRealTimeHttpCodeDataAsyncHandler; - typedef Outcome DescribeLiveRecordConfigOutcome; - typedef std::future DescribeLiveRecordConfigOutcomeCallable; - typedef std::function&)> DescribeLiveRecordConfigAsyncHandler; typedef Outcome DescribeDomainTrafficDataOutcome; typedef std::future DescribeDomainTrafficDataOutcomeCallable; typedef std::function&)> DescribeDomainTrafficDataAsyncHandler; + typedef Outcome DescribeLiveRecordConfigOutcome; + typedef std::future DescribeLiveRecordConfigOutcomeCallable; + typedef std::function&)> DescribeLiveRecordConfigAsyncHandler; typedef Outcome SetForceRedirectConfigOutcome; typedef std::future SetForceRedirectConfigOutcomeCallable; typedef std::function&)> SetForceRedirectConfigAsyncHandler; @@ -500,12 +500,12 @@ namespace AlibabaCloud typedef Outcome DescribeLiveStreamOnlineUserNumOutcome; typedef std::future DescribeLiveStreamOnlineUserNumOutcomeCallable; typedef std::function&)> DescribeLiveStreamOnlineUserNumAsyncHandler; - typedef Outcome DeleteUsageDetailDataExportTaskOutcome; - typedef std::future DeleteUsageDetailDataExportTaskOutcomeCallable; - typedef std::function&)> DeleteUsageDetailDataExportTaskAsyncHandler; typedef Outcome SetRefererConfigOutcome; typedef std::future SetRefererConfigOutcomeCallable; typedef std::function&)> SetRefererConfigAsyncHandler; + typedef Outcome DeleteUsageDetailDataExportTaskOutcome; + typedef std::future DeleteUsageDetailDataExportTaskOutcomeCallable; + typedef std::function&)> DeleteUsageDetailDataExportTaskAsyncHandler; typedef Outcome DescribeDomainSrcFlowDataOutcome; typedef std::future DescribeDomainSrcFlowDataOutcomeCallable; typedef std::function&)> DescribeDomainSrcFlowDataAsyncHandler; @@ -524,12 +524,12 @@ namespace AlibabaCloud typedef Outcome SetDynamicConfigOutcome; typedef std::future SetDynamicConfigOutcomeCallable; typedef std::function&)> SetDynamicConfigAsyncHandler; - typedef Outcome SetDomainGreenManagerConfigOutcome; - typedef std::future SetDomainGreenManagerConfigOutcomeCallable; - typedef std::function&)> SetDomainGreenManagerConfigAsyncHandler; typedef Outcome SetHttpErrorPageConfigOutcome; typedef std::future SetHttpErrorPageConfigOutcomeCallable; typedef std::function&)> SetHttpErrorPageConfigAsyncHandler; + typedef Outcome SetDomainGreenManagerConfigOutcome; + typedef std::future SetDomainGreenManagerConfigOutcomeCallable; + typedef std::function&)> SetDomainGreenManagerConfigAsyncHandler; typedef Outcome StartMixStreamsServiceOutcome; typedef std::future StartMixStreamsServiceOutcomeCallable; typedef std::function&)> StartMixStreamsServiceAsyncHandler; @@ -560,21 +560,21 @@ namespace AlibabaCloud typedef Outcome DescribeLiveStreamsBlockListOutcome; typedef std::future DescribeLiveStreamsBlockListOutcomeCallable; typedef std::function&)> DescribeLiveStreamsBlockListAsyncHandler; - typedef Outcome SetIgnoreQueryStringConfigOutcome; - typedef std::future SetIgnoreQueryStringConfigOutcomeCallable; - typedef std::function&)> SetIgnoreQueryStringConfigAsyncHandler; typedef Outcome AddLiveStreamTranscodeOutcome; typedef std::future AddLiveStreamTranscodeOutcomeCallable; typedef std::function&)> AddLiveStreamTranscodeAsyncHandler; + typedef Outcome SetIgnoreQueryStringConfigOutcome; + typedef std::future SetIgnoreQueryStringConfigOutcomeCallable; + typedef std::function&)> SetIgnoreQueryStringConfigAsyncHandler; typedef Outcome DescribeDomainCustomLogConfigOutcome; typedef std::future DescribeDomainCustomLogConfigOutcomeCallable; typedef std::function&)> DescribeDomainCustomLogConfigAsyncHandler; - typedef Outcome DescribeUserCustomerLabelsOutcome; - typedef std::future DescribeUserCustomerLabelsOutcomeCallable; - typedef std::function&)> DescribeUserCustomerLabelsAsyncHandler; typedef Outcome DescribeCdnUserResourcePackageOutcome; typedef std::future DescribeCdnUserResourcePackageOutcomeCallable; typedef std::function&)> DescribeCdnUserResourcePackageAsyncHandler; + typedef Outcome DescribeUserCustomerLabelsOutcome; + typedef std::future DescribeUserCustomerLabelsOutcomeCallable; + typedef std::function&)> DescribeUserCustomerLabelsAsyncHandler; typedef Outcome BatchUpdateCdnDomainOutcome; typedef std::future BatchUpdateCdnDomainOutcomeCallable; typedef std::function&)> BatchUpdateCdnDomainAsyncHandler; @@ -584,12 +584,12 @@ namespace AlibabaCloud typedef Outcome DescribeLiveStreamsControlHistoryOutcome; typedef std::future DescribeLiveStreamsControlHistoryOutcomeCallable; typedef std::function&)> DescribeLiveStreamsControlHistoryAsyncHandler; - typedef Outcome SetReqHeaderConfigOutcome; - typedef std::future SetReqHeaderConfigOutcomeCallable; - typedef std::function&)> SetReqHeaderConfigAsyncHandler; typedef Outcome OpenCdnServiceOutcome; typedef std::future OpenCdnServiceOutcomeCallable; typedef std::function&)> OpenCdnServiceAsyncHandler; + typedef Outcome SetReqHeaderConfigOutcome; + typedef std::future SetReqHeaderConfigOutcomeCallable; + typedef std::function&)> SetReqHeaderConfigAsyncHandler; typedef Outcome DescribeDomainRealTimeReqHitRateDataOutcome; typedef std::future DescribeDomainRealTimeReqHitRateDataOutcomeCallable; typedef std::function&)> DescribeDomainRealTimeReqHitRateDataAsyncHandler; @@ -611,24 +611,24 @@ namespace AlibabaCloud typedef Outcome DescribeDomainRealTimeQpsDataOutcome; typedef std::future DescribeDomainRealTimeQpsDataOutcomeCallable; typedef std::function&)> DescribeDomainRealTimeQpsDataAsyncHandler; - typedef Outcome DescribeDomainBpsDataOutcome; - typedef std::future DescribeDomainBpsDataOutcomeCallable; - typedef std::function&)> DescribeDomainBpsDataAsyncHandler; typedef Outcome RefreshObjectCachesOutcome; typedef std::future RefreshObjectCachesOutcomeCallable; typedef std::function&)> RefreshObjectCachesAsyncHandler; + typedef Outcome DescribeDomainBpsDataOutcome; + typedef std::future DescribeDomainBpsDataOutcomeCallable; + typedef std::function&)> DescribeDomainBpsDataAsyncHandler; typedef Outcome DescribeLiveStreamsFrameRateAndBitRateDataOutcome; typedef std::future DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable; typedef std::function&)> DescribeLiveStreamsFrameRateAndBitRateDataAsyncHandler; typedef Outcome DescribeLiveStreamRecordContentOutcome; typedef std::future DescribeLiveStreamRecordContentOutcomeCallable; typedef std::function&)> DescribeLiveStreamRecordContentAsyncHandler; - typedef Outcome SetRangeConfigOutcome; - typedef std::future SetRangeConfigOutcomeCallable; - typedef std::function&)> SetRangeConfigAsyncHandler; typedef Outcome AddCdnDomainOutcome; typedef std::future AddCdnDomainOutcomeCallable; typedef std::function&)> AddCdnDomainAsyncHandler; + typedef Outcome SetRangeConfigOutcome; + typedef std::future SetRangeConfigOutcomeCallable; + typedef std::function&)> SetRangeConfigAsyncHandler; typedef Outcome DescribeDomainCnameOutcome; typedef std::future DescribeDomainCnameOutcomeCallable; typedef std::function&)> DescribeDomainCnameAsyncHandler; @@ -644,12 +644,12 @@ namespace AlibabaCloud typedef Outcome DescribeUserDomainsOutcome; typedef std::future DescribeUserDomainsOutcomeCallable; typedef std::function&)> DescribeUserDomainsAsyncHandler; - typedef Outcome DescribeLiveSnapshotConfigOutcome; - typedef std::future DescribeLiveSnapshotConfigOutcomeCallable; - typedef std::function&)> DescribeLiveSnapshotConfigAsyncHandler; typedef Outcome CreateUserUsageDataExportTaskOutcome; typedef std::future CreateUserUsageDataExportTaskOutcomeCallable; typedef std::function&)> CreateUserUsageDataExportTaskAsyncHandler; + typedef Outcome DescribeLiveSnapshotConfigOutcome; + typedef std::future DescribeLiveSnapshotConfigOutcomeCallable; + typedef std::function&)> DescribeLiveSnapshotConfigAsyncHandler; typedef Outcome DescribeRefreshTasksOutcome; typedef std::future DescribeRefreshTasksOutcomeCallable; typedef std::function&)> DescribeRefreshTasksAsyncHandler; @@ -683,12 +683,12 @@ namespace AlibabaCloud typedef Outcome DescribeUserConfigsOutcome; typedef std::future DescribeUserConfigsOutcomeCallable; typedef std::function&)> DescribeUserConfigsAsyncHandler; - typedef Outcome DescribeDomainCertificateInfoOutcome; - typedef std::future DescribeDomainCertificateInfoOutcomeCallable; - typedef std::function&)> DescribeDomainCertificateInfoAsyncHandler; typedef Outcome DescribeRealtimeDeliveryAccOutcome; typedef std::future DescribeRealtimeDeliveryAccOutcomeCallable; typedef std::function&)> DescribeRealtimeDeliveryAccAsyncHandler; + typedef Outcome DescribeDomainCertificateInfoOutcome; + typedef std::future DescribeDomainCertificateInfoOutcomeCallable; + typedef std::function&)> DescribeDomainCertificateInfoAsyncHandler; typedef Outcome DescribeLiveStreamRecordIndexFilesOutcome; typedef std::future DescribeLiveStreamRecordIndexFilesOutcomeCallable; typedef std::function&)> DescribeLiveStreamRecordIndexFilesAsyncHandler; @@ -713,12 +713,12 @@ namespace AlibabaCloud typedef Outcome ModifyHttpHeaderConfigOutcome; typedef std::future ModifyHttpHeaderConfigOutcomeCallable; typedef std::function&)> ModifyHttpHeaderConfigAsyncHandler; - typedef Outcome SetDomainServerCertificateOutcome; - typedef std::future SetDomainServerCertificateOutcomeCallable; - typedef std::function&)> SetDomainServerCertificateAsyncHandler; typedef Outcome BatchSetCdnDomainServerCertificateOutcome; typedef std::future BatchSetCdnDomainServerCertificateOutcomeCallable; typedef std::function&)> BatchSetCdnDomainServerCertificateAsyncHandler; + typedef Outcome SetDomainServerCertificateOutcome; + typedef std::future SetDomainServerCertificateOutcomeCallable; + typedef std::function&)> SetDomainServerCertificateAsyncHandler; typedef Outcome DescribeIpInfoOutcome; typedef std::future DescribeIpInfoOutcomeCallable; typedef std::function&)> DescribeIpInfoAsyncHandler; @@ -755,12 +755,12 @@ namespace AlibabaCloud typedef Outcome DescribeDomainRealTimeSrcBpsDataOutcome; typedef std::future DescribeDomainRealTimeSrcBpsDataOutcomeCallable; typedef std::function&)> DescribeDomainRealTimeSrcBpsDataAsyncHandler; - typedef Outcome ResumeLiveStreamOutcome; - typedef std::future ResumeLiveStreamOutcomeCallable; - typedef std::function&)> ResumeLiveStreamAsyncHandler; typedef Outcome DescribeUserUsageDataExportTaskOutcome; typedef std::future DescribeUserUsageDataExportTaskOutcomeCallable; typedef std::function&)> DescribeUserUsageDataExportTaskAsyncHandler; + typedef Outcome ResumeLiveStreamOutcome; + typedef std::future ResumeLiveStreamOutcomeCallable; + typedef std::function&)> ResumeLiveStreamAsyncHandler; typedef Outcome DescribeFCTriggerOutcome; typedef std::future DescribeFCTriggerOutcomeCallable; typedef std::function&)> DescribeFCTriggerAsyncHandler; @@ -770,12 +770,12 @@ namespace AlibabaCloud typedef Outcome DescribeDomainRealTimeBpsDataOutcome; typedef std::future DescribeDomainRealTimeBpsDataOutcomeCallable; typedef std::function&)> DescribeDomainRealTimeBpsDataAsyncHandler; - typedef Outcome DescribeLiveStreamsPublishListOutcome; - typedef std::future DescribeLiveStreamsPublishListOutcomeCallable; - typedef std::function&)> DescribeLiveStreamsPublishListAsyncHandler; typedef Outcome DescribeDomainCCAttackInfoOutcome; typedef std::future DescribeDomainCCAttackInfoOutcomeCallable; typedef std::function&)> DescribeDomainCCAttackInfoAsyncHandler; + typedef Outcome DescribeLiveStreamsPublishListOutcome; + typedef std::future DescribeLiveStreamsPublishListOutcomeCallable; + typedef std::function&)> DescribeLiveStreamsPublishListAsyncHandler; typedef Outcome DescribeDomainRealTimeSrcTrafficDataOutcome; typedef std::future DescribeDomainRealTimeSrcTrafficDataOutcomeCallable; typedef std::function&)> DescribeDomainRealTimeSrcTrafficDataAsyncHandler; @@ -785,12 +785,12 @@ namespace AlibabaCloud typedef Outcome DescribeDomainUsageDataOutcome; typedef std::future DescribeDomainUsageDataOutcomeCallable; typedef std::function&)> DescribeDomainUsageDataAsyncHandler; - typedef Outcome SetWaitingRoomConfigOutcome; - typedef std::future SetWaitingRoomConfigOutcomeCallable; - typedef std::function&)> SetWaitingRoomConfigAsyncHandler; typedef Outcome SetHttpsOptionConfigOutcome; typedef std::future SetHttpsOptionConfigOutcomeCallable; typedef std::function&)> SetHttpsOptionConfigAsyncHandler; + typedef Outcome SetWaitingRoomConfigOutcome; + typedef std::future SetWaitingRoomConfigOutcomeCallable; + typedef std::function&)> SetWaitingRoomConfigAsyncHandler; typedef Outcome ListDomainsByLogConfigIdOutcome; typedef std::future ListDomainsByLogConfigIdOutcomeCallable; typedef std::function&)> ListDomainsByLogConfigIdAsyncHandler; @@ -829,12 +829,12 @@ namespace AlibabaCloud DescribeCdnCertificateListOutcome describeCdnCertificateList(const Model::DescribeCdnCertificateListRequest &request)const; void describeCdnCertificateListAsync(const Model::DescribeCdnCertificateListRequest& request, const DescribeCdnCertificateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCdnCertificateListOutcomeCallable describeCdnCertificateListCallable(const Model::DescribeCdnCertificateListRequest& request) const; - DescribeCdnServiceOutcome describeCdnService(const Model::DescribeCdnServiceRequest &request)const; - void describeCdnServiceAsync(const Model::DescribeCdnServiceRequest& request, const DescribeCdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCdnServiceOutcomeCallable describeCdnServiceCallable(const Model::DescribeCdnServiceRequest& request) const; SetPathCacheExpiredConfigOutcome setPathCacheExpiredConfig(const Model::SetPathCacheExpiredConfigRequest &request)const; void setPathCacheExpiredConfigAsync(const Model::SetPathCacheExpiredConfigRequest& request, const SetPathCacheExpiredConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetPathCacheExpiredConfigOutcomeCallable setPathCacheExpiredConfigCallable(const Model::SetPathCacheExpiredConfigRequest& request) const; + DescribeCdnServiceOutcome describeCdnService(const Model::DescribeCdnServiceRequest &request)const; + void describeCdnServiceAsync(const Model::DescribeCdnServiceRequest& request, const DescribeCdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCdnServiceOutcomeCallable describeCdnServiceCallable(const Model::DescribeCdnServiceRequest& request) const; AddFCTriggerOutcome addFCTrigger(const Model::AddFCTriggerRequest &request)const; void addFCTriggerAsync(const Model::AddFCTriggerRequest& request, const AddFCTriggerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddFCTriggerOutcomeCallable addFCTriggerCallable(const Model::AddFCTriggerRequest& request) const; @@ -847,12 +847,12 @@ namespace AlibabaCloud ModifyUserCustomLogConfigOutcome modifyUserCustomLogConfig(const Model::ModifyUserCustomLogConfigRequest &request)const; void modifyUserCustomLogConfigAsync(const Model::ModifyUserCustomLogConfigRequest& request, const ModifyUserCustomLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyUserCustomLogConfigOutcomeCallable modifyUserCustomLogConfigCallable(const Model::ModifyUserCustomLogConfigRequest& request) const; - SetWafConfigOutcome setWafConfig(const Model::SetWafConfigRequest &request)const; - void setWafConfigAsync(const Model::SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetWafConfigOutcomeCallable setWafConfigCallable(const Model::SetWafConfigRequest& request) const; DescribeCdnDomainConfigsOutcome describeCdnDomainConfigs(const Model::DescribeCdnDomainConfigsRequest &request)const; void describeCdnDomainConfigsAsync(const Model::DescribeCdnDomainConfigsRequest& request, const DescribeCdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCdnDomainConfigsOutcomeCallable describeCdnDomainConfigsCallable(const Model::DescribeCdnDomainConfigsRequest& request) const; + SetWafConfigOutcome setWafConfig(const Model::SetWafConfigRequest &request)const; + void setWafConfigAsync(const Model::SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetWafConfigOutcomeCallable setWafConfigCallable(const Model::SetWafConfigRequest& request) const; DescribeCdnDomainDetailOutcome describeCdnDomainDetail(const Model::DescribeCdnDomainDetailRequest &request)const; void describeCdnDomainDetailAsync(const Model::DescribeCdnDomainDetailRequest& request, const DescribeCdnDomainDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCdnDomainDetailOutcomeCallable describeCdnDomainDetailCallable(const Model::DescribeCdnDomainDetailRequest& request) const; @@ -889,24 +889,24 @@ namespace AlibabaCloud StopMixStreamsServiceOutcome stopMixStreamsService(const Model::StopMixStreamsServiceRequest &request)const; void stopMixStreamsServiceAsync(const Model::StopMixStreamsServiceRequest& request, const StopMixStreamsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopMixStreamsServiceOutcomeCallable stopMixStreamsServiceCallable(const Model::StopMixStreamsServiceRequest& request) const; - DescribeCdnDomainByCertificateOutcome describeCdnDomainByCertificate(const Model::DescribeCdnDomainByCertificateRequest &request)const; - void describeCdnDomainByCertificateAsync(const Model::DescribeCdnDomainByCertificateRequest& request, const DescribeCdnDomainByCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCdnDomainByCertificateOutcomeCallable describeCdnDomainByCertificateCallable(const Model::DescribeCdnDomainByCertificateRequest& request) const; DescribeDomainUvDataOutcome describeDomainUvData(const Model::DescribeDomainUvDataRequest &request)const; void describeDomainUvDataAsync(const Model::DescribeDomainUvDataRequest& request, const DescribeDomainUvDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainUvDataOutcomeCallable describeDomainUvDataCallable(const Model::DescribeDomainUvDataRequest& request) const; - DescribeCdnHttpsDomainListOutcome describeCdnHttpsDomainList(const Model::DescribeCdnHttpsDomainListRequest &request)const; - void describeCdnHttpsDomainListAsync(const Model::DescribeCdnHttpsDomainListRequest& request, const DescribeCdnHttpsDomainListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCdnHttpsDomainListOutcomeCallable describeCdnHttpsDomainListCallable(const Model::DescribeCdnHttpsDomainListRequest& request) const; + DescribeCdnDomainByCertificateOutcome describeCdnDomainByCertificate(const Model::DescribeCdnDomainByCertificateRequest &request)const; + void describeCdnDomainByCertificateAsync(const Model::DescribeCdnDomainByCertificateRequest& request, const DescribeCdnDomainByCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCdnDomainByCertificateOutcomeCallable describeCdnDomainByCertificateCallable(const Model::DescribeCdnDomainByCertificateRequest& request) const; DeleteSpecificConfigOutcome deleteSpecificConfig(const Model::DeleteSpecificConfigRequest &request)const; void deleteSpecificConfigAsync(const Model::DeleteSpecificConfigRequest& request, const DeleteSpecificConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSpecificConfigOutcomeCallable deleteSpecificConfigCallable(const Model::DeleteSpecificConfigRequest& request) const; - SetRemoveQueryStringConfigOutcome setRemoveQueryStringConfig(const Model::SetRemoveQueryStringConfigRequest &request)const; - void setRemoveQueryStringConfigAsync(const Model::SetRemoveQueryStringConfigRequest& request, const SetRemoveQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetRemoveQueryStringConfigOutcomeCallable setRemoveQueryStringConfigCallable(const Model::SetRemoveQueryStringConfigRequest& request) const; + DescribeCdnHttpsDomainListOutcome describeCdnHttpsDomainList(const Model::DescribeCdnHttpsDomainListRequest &request)const; + void describeCdnHttpsDomainListAsync(const Model::DescribeCdnHttpsDomainListRequest& request, const DescribeCdnHttpsDomainListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCdnHttpsDomainListOutcomeCallable describeCdnHttpsDomainListCallable(const Model::DescribeCdnHttpsDomainListRequest& request) const; DeleteCdnDomainOutcome deleteCdnDomain(const Model::DeleteCdnDomainRequest &request)const; void deleteCdnDomainAsync(const Model::DeleteCdnDomainRequest& request, const DeleteCdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCdnDomainOutcomeCallable deleteCdnDomainCallable(const Model::DeleteCdnDomainRequest& request) const; + SetRemoveQueryStringConfigOutcome setRemoveQueryStringConfig(const Model::SetRemoveQueryStringConfigRequest &request)const; + void setRemoveQueryStringConfigAsync(const Model::SetRemoveQueryStringConfigRequest& request, const SetRemoveQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetRemoveQueryStringConfigOutcomeCallable setRemoveQueryStringConfigCallable(const Model::SetRemoveQueryStringConfigRequest& request) const; DeleteLiveStreamTranscodeOutcome deleteLiveStreamTranscode(const Model::DeleteLiveStreamTranscodeRequest &request)const; void deleteLiveStreamTranscodeAsync(const Model::DeleteLiveStreamTranscodeRequest& request, const DeleteLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveStreamTranscodeOutcomeCallable deleteLiveStreamTranscodeCallable(const Model::DeleteLiveStreamTranscodeRequest& request) const; @@ -961,12 +961,12 @@ namespace AlibabaCloud DescribeDomainRealTimeHttpCodeDataOutcome describeDomainRealTimeHttpCodeData(const Model::DescribeDomainRealTimeHttpCodeDataRequest &request)const; void describeDomainRealTimeHttpCodeDataAsync(const Model::DescribeDomainRealTimeHttpCodeDataRequest& request, const DescribeDomainRealTimeHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRealTimeHttpCodeDataOutcomeCallable describeDomainRealTimeHttpCodeDataCallable(const Model::DescribeDomainRealTimeHttpCodeDataRequest& request) const; - DescribeLiveRecordConfigOutcome describeLiveRecordConfig(const Model::DescribeLiveRecordConfigRequest &request)const; - void describeLiveRecordConfigAsync(const Model::DescribeLiveRecordConfigRequest& request, const DescribeLiveRecordConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveRecordConfigOutcomeCallable describeLiveRecordConfigCallable(const Model::DescribeLiveRecordConfigRequest& request) const; DescribeDomainTrafficDataOutcome describeDomainTrafficData(const Model::DescribeDomainTrafficDataRequest &request)const; void describeDomainTrafficDataAsync(const Model::DescribeDomainTrafficDataRequest& request, const DescribeDomainTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainTrafficDataOutcomeCallable describeDomainTrafficDataCallable(const Model::DescribeDomainTrafficDataRequest& request) const; + DescribeLiveRecordConfigOutcome describeLiveRecordConfig(const Model::DescribeLiveRecordConfigRequest &request)const; + void describeLiveRecordConfigAsync(const Model::DescribeLiveRecordConfigRequest& request, const DescribeLiveRecordConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveRecordConfigOutcomeCallable describeLiveRecordConfigCallable(const Model::DescribeLiveRecordConfigRequest& request) const; SetForceRedirectConfigOutcome setForceRedirectConfig(const Model::SetForceRedirectConfigRequest &request)const; void setForceRedirectConfigAsync(const Model::SetForceRedirectConfigRequest& request, const SetForceRedirectConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetForceRedirectConfigOutcomeCallable setForceRedirectConfigCallable(const Model::SetForceRedirectConfigRequest& request) const; @@ -979,12 +979,12 @@ namespace AlibabaCloud DescribeLiveStreamOnlineUserNumOutcome describeLiveStreamOnlineUserNum(const Model::DescribeLiveStreamOnlineUserNumRequest &request)const; void describeLiveStreamOnlineUserNumAsync(const Model::DescribeLiveStreamOnlineUserNumRequest& request, const DescribeLiveStreamOnlineUserNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamOnlineUserNumOutcomeCallable describeLiveStreamOnlineUserNumCallable(const Model::DescribeLiveStreamOnlineUserNumRequest& request) const; - DeleteUsageDetailDataExportTaskOutcome deleteUsageDetailDataExportTask(const Model::DeleteUsageDetailDataExportTaskRequest &request)const; - void deleteUsageDetailDataExportTaskAsync(const Model::DeleteUsageDetailDataExportTaskRequest& request, const DeleteUsageDetailDataExportTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteUsageDetailDataExportTaskOutcomeCallable deleteUsageDetailDataExportTaskCallable(const Model::DeleteUsageDetailDataExportTaskRequest& request) const; SetRefererConfigOutcome setRefererConfig(const Model::SetRefererConfigRequest &request)const; void setRefererConfigAsync(const Model::SetRefererConfigRequest& request, const SetRefererConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetRefererConfigOutcomeCallable setRefererConfigCallable(const Model::SetRefererConfigRequest& request) const; + DeleteUsageDetailDataExportTaskOutcome deleteUsageDetailDataExportTask(const Model::DeleteUsageDetailDataExportTaskRequest &request)const; + void deleteUsageDetailDataExportTaskAsync(const Model::DeleteUsageDetailDataExportTaskRequest& request, const DeleteUsageDetailDataExportTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUsageDetailDataExportTaskOutcomeCallable deleteUsageDetailDataExportTaskCallable(const Model::DeleteUsageDetailDataExportTaskRequest& request) const; DescribeDomainSrcFlowDataOutcome describeDomainSrcFlowData(const Model::DescribeDomainSrcFlowDataRequest &request)const; void describeDomainSrcFlowDataAsync(const Model::DescribeDomainSrcFlowDataRequest& request, const DescribeDomainSrcFlowDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainSrcFlowDataOutcomeCallable describeDomainSrcFlowDataCallable(const Model::DescribeDomainSrcFlowDataRequest& request) const; @@ -1003,12 +1003,12 @@ namespace AlibabaCloud SetDynamicConfigOutcome setDynamicConfig(const Model::SetDynamicConfigRequest &request)const; void setDynamicConfigAsync(const Model::SetDynamicConfigRequest& request, const SetDynamicConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDynamicConfigOutcomeCallable setDynamicConfigCallable(const Model::SetDynamicConfigRequest& request) const; - SetDomainGreenManagerConfigOutcome setDomainGreenManagerConfig(const Model::SetDomainGreenManagerConfigRequest &request)const; - void setDomainGreenManagerConfigAsync(const Model::SetDomainGreenManagerConfigRequest& request, const SetDomainGreenManagerConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetDomainGreenManagerConfigOutcomeCallable setDomainGreenManagerConfigCallable(const Model::SetDomainGreenManagerConfigRequest& request) const; SetHttpErrorPageConfigOutcome setHttpErrorPageConfig(const Model::SetHttpErrorPageConfigRequest &request)const; void setHttpErrorPageConfigAsync(const Model::SetHttpErrorPageConfigRequest& request, const SetHttpErrorPageConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetHttpErrorPageConfigOutcomeCallable setHttpErrorPageConfigCallable(const Model::SetHttpErrorPageConfigRequest& request) const; + SetDomainGreenManagerConfigOutcome setDomainGreenManagerConfig(const Model::SetDomainGreenManagerConfigRequest &request)const; + void setDomainGreenManagerConfigAsync(const Model::SetDomainGreenManagerConfigRequest& request, const SetDomainGreenManagerConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDomainGreenManagerConfigOutcomeCallable setDomainGreenManagerConfigCallable(const Model::SetDomainGreenManagerConfigRequest& request) const; StartMixStreamsServiceOutcome startMixStreamsService(const Model::StartMixStreamsServiceRequest &request)const; void startMixStreamsServiceAsync(const Model::StartMixStreamsServiceRequest& request, const StartMixStreamsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartMixStreamsServiceOutcomeCallable startMixStreamsServiceCallable(const Model::StartMixStreamsServiceRequest& request) const; @@ -1039,21 +1039,21 @@ namespace AlibabaCloud DescribeLiveStreamsBlockListOutcome describeLiveStreamsBlockList(const Model::DescribeLiveStreamsBlockListRequest &request)const; void describeLiveStreamsBlockListAsync(const Model::DescribeLiveStreamsBlockListRequest& request, const DescribeLiveStreamsBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsBlockListOutcomeCallable describeLiveStreamsBlockListCallable(const Model::DescribeLiveStreamsBlockListRequest& request) const; - SetIgnoreQueryStringConfigOutcome setIgnoreQueryStringConfig(const Model::SetIgnoreQueryStringConfigRequest &request)const; - void setIgnoreQueryStringConfigAsync(const Model::SetIgnoreQueryStringConfigRequest& request, const SetIgnoreQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetIgnoreQueryStringConfigOutcomeCallable setIgnoreQueryStringConfigCallable(const Model::SetIgnoreQueryStringConfigRequest& request) const; AddLiveStreamTranscodeOutcome addLiveStreamTranscode(const Model::AddLiveStreamTranscodeRequest &request)const; void addLiveStreamTranscodeAsync(const Model::AddLiveStreamTranscodeRequest& request, const AddLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveStreamTranscodeOutcomeCallable addLiveStreamTranscodeCallable(const Model::AddLiveStreamTranscodeRequest& request) const; + SetIgnoreQueryStringConfigOutcome setIgnoreQueryStringConfig(const Model::SetIgnoreQueryStringConfigRequest &request)const; + void setIgnoreQueryStringConfigAsync(const Model::SetIgnoreQueryStringConfigRequest& request, const SetIgnoreQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetIgnoreQueryStringConfigOutcomeCallable setIgnoreQueryStringConfigCallable(const Model::SetIgnoreQueryStringConfigRequest& request) const; DescribeDomainCustomLogConfigOutcome describeDomainCustomLogConfig(const Model::DescribeDomainCustomLogConfigRequest &request)const; void describeDomainCustomLogConfigAsync(const Model::DescribeDomainCustomLogConfigRequest& request, const DescribeDomainCustomLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainCustomLogConfigOutcomeCallable describeDomainCustomLogConfigCallable(const Model::DescribeDomainCustomLogConfigRequest& request) const; - DescribeUserCustomerLabelsOutcome describeUserCustomerLabels(const Model::DescribeUserCustomerLabelsRequest &request)const; - void describeUserCustomerLabelsAsync(const Model::DescribeUserCustomerLabelsRequest& request, const DescribeUserCustomerLabelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserCustomerLabelsOutcomeCallable describeUserCustomerLabelsCallable(const Model::DescribeUserCustomerLabelsRequest& request) const; DescribeCdnUserResourcePackageOutcome describeCdnUserResourcePackage(const Model::DescribeCdnUserResourcePackageRequest &request)const; void describeCdnUserResourcePackageAsync(const Model::DescribeCdnUserResourcePackageRequest& request, const DescribeCdnUserResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCdnUserResourcePackageOutcomeCallable describeCdnUserResourcePackageCallable(const Model::DescribeCdnUserResourcePackageRequest& request) const; + DescribeUserCustomerLabelsOutcome describeUserCustomerLabels(const Model::DescribeUserCustomerLabelsRequest &request)const; + void describeUserCustomerLabelsAsync(const Model::DescribeUserCustomerLabelsRequest& request, const DescribeUserCustomerLabelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserCustomerLabelsOutcomeCallable describeUserCustomerLabelsCallable(const Model::DescribeUserCustomerLabelsRequest& request) const; BatchUpdateCdnDomainOutcome batchUpdateCdnDomain(const Model::BatchUpdateCdnDomainRequest &request)const; void batchUpdateCdnDomainAsync(const Model::BatchUpdateCdnDomainRequest& request, const BatchUpdateCdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchUpdateCdnDomainOutcomeCallable batchUpdateCdnDomainCallable(const Model::BatchUpdateCdnDomainRequest& request) const; @@ -1063,12 +1063,12 @@ namespace AlibabaCloud DescribeLiveStreamsControlHistoryOutcome describeLiveStreamsControlHistory(const Model::DescribeLiveStreamsControlHistoryRequest &request)const; void describeLiveStreamsControlHistoryAsync(const Model::DescribeLiveStreamsControlHistoryRequest& request, const DescribeLiveStreamsControlHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsControlHistoryOutcomeCallable describeLiveStreamsControlHistoryCallable(const Model::DescribeLiveStreamsControlHistoryRequest& request) const; - SetReqHeaderConfigOutcome setReqHeaderConfig(const Model::SetReqHeaderConfigRequest &request)const; - void setReqHeaderConfigAsync(const Model::SetReqHeaderConfigRequest& request, const SetReqHeaderConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetReqHeaderConfigOutcomeCallable setReqHeaderConfigCallable(const Model::SetReqHeaderConfigRequest& request) const; OpenCdnServiceOutcome openCdnService(const Model::OpenCdnServiceRequest &request)const; void openCdnServiceAsync(const Model::OpenCdnServiceRequest& request, const OpenCdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenCdnServiceOutcomeCallable openCdnServiceCallable(const Model::OpenCdnServiceRequest& request) const; + SetReqHeaderConfigOutcome setReqHeaderConfig(const Model::SetReqHeaderConfigRequest &request)const; + void setReqHeaderConfigAsync(const Model::SetReqHeaderConfigRequest& request, const SetReqHeaderConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetReqHeaderConfigOutcomeCallable setReqHeaderConfigCallable(const Model::SetReqHeaderConfigRequest& request) const; DescribeDomainRealTimeReqHitRateDataOutcome describeDomainRealTimeReqHitRateData(const Model::DescribeDomainRealTimeReqHitRateDataRequest &request)const; void describeDomainRealTimeReqHitRateDataAsync(const Model::DescribeDomainRealTimeReqHitRateDataRequest& request, const DescribeDomainRealTimeReqHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRealTimeReqHitRateDataOutcomeCallable describeDomainRealTimeReqHitRateDataCallable(const Model::DescribeDomainRealTimeReqHitRateDataRequest& request) const; @@ -1090,24 +1090,24 @@ namespace AlibabaCloud DescribeDomainRealTimeQpsDataOutcome describeDomainRealTimeQpsData(const Model::DescribeDomainRealTimeQpsDataRequest &request)const; void describeDomainRealTimeQpsDataAsync(const Model::DescribeDomainRealTimeQpsDataRequest& request, const DescribeDomainRealTimeQpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRealTimeQpsDataOutcomeCallable describeDomainRealTimeQpsDataCallable(const Model::DescribeDomainRealTimeQpsDataRequest& request) const; - DescribeDomainBpsDataOutcome describeDomainBpsData(const Model::DescribeDomainBpsDataRequest &request)const; - void describeDomainBpsDataAsync(const Model::DescribeDomainBpsDataRequest& request, const DescribeDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDomainBpsDataOutcomeCallable describeDomainBpsDataCallable(const Model::DescribeDomainBpsDataRequest& request) const; RefreshObjectCachesOutcome refreshObjectCaches(const Model::RefreshObjectCachesRequest &request)const; void refreshObjectCachesAsync(const Model::RefreshObjectCachesRequest& request, const RefreshObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefreshObjectCachesOutcomeCallable refreshObjectCachesCallable(const Model::RefreshObjectCachesRequest& request) const; + DescribeDomainBpsDataOutcome describeDomainBpsData(const Model::DescribeDomainBpsDataRequest &request)const; + void describeDomainBpsDataAsync(const Model::DescribeDomainBpsDataRequest& request, const DescribeDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainBpsDataOutcomeCallable describeDomainBpsDataCallable(const Model::DescribeDomainBpsDataRequest& request) const; DescribeLiveStreamsFrameRateAndBitRateDataOutcome describeLiveStreamsFrameRateAndBitRateData(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest &request)const; void describeLiveStreamsFrameRateAndBitRateDataAsync(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest& request, const DescribeLiveStreamsFrameRateAndBitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable describeLiveStreamsFrameRateAndBitRateDataCallable(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest& request) const; DescribeLiveStreamRecordContentOutcome describeLiveStreamRecordContent(const Model::DescribeLiveStreamRecordContentRequest &request)const; void describeLiveStreamRecordContentAsync(const Model::DescribeLiveStreamRecordContentRequest& request, const DescribeLiveStreamRecordContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamRecordContentOutcomeCallable describeLiveStreamRecordContentCallable(const Model::DescribeLiveStreamRecordContentRequest& request) const; - SetRangeConfigOutcome setRangeConfig(const Model::SetRangeConfigRequest &request)const; - void setRangeConfigAsync(const Model::SetRangeConfigRequest& request, const SetRangeConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetRangeConfigOutcomeCallable setRangeConfigCallable(const Model::SetRangeConfigRequest& request) const; AddCdnDomainOutcome addCdnDomain(const Model::AddCdnDomainRequest &request)const; void addCdnDomainAsync(const Model::AddCdnDomainRequest& request, const AddCdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCdnDomainOutcomeCallable addCdnDomainCallable(const Model::AddCdnDomainRequest& request) const; + SetRangeConfigOutcome setRangeConfig(const Model::SetRangeConfigRequest &request)const; + void setRangeConfigAsync(const Model::SetRangeConfigRequest& request, const SetRangeConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetRangeConfigOutcomeCallable setRangeConfigCallable(const Model::SetRangeConfigRequest& request) const; DescribeDomainCnameOutcome describeDomainCname(const Model::DescribeDomainCnameRequest &request)const; void describeDomainCnameAsync(const Model::DescribeDomainCnameRequest& request, const DescribeDomainCnameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainCnameOutcomeCallable describeDomainCnameCallable(const Model::DescribeDomainCnameRequest& request) const; @@ -1123,12 +1123,12 @@ namespace AlibabaCloud DescribeUserDomainsOutcome describeUserDomains(const Model::DescribeUserDomainsRequest &request)const; void describeUserDomainsAsync(const Model::DescribeUserDomainsRequest& request, const DescribeUserDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserDomainsOutcomeCallable describeUserDomainsCallable(const Model::DescribeUserDomainsRequest& request) const; - DescribeLiveSnapshotConfigOutcome describeLiveSnapshotConfig(const Model::DescribeLiveSnapshotConfigRequest &request)const; - void describeLiveSnapshotConfigAsync(const Model::DescribeLiveSnapshotConfigRequest& request, const DescribeLiveSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveSnapshotConfigOutcomeCallable describeLiveSnapshotConfigCallable(const Model::DescribeLiveSnapshotConfigRequest& request) const; CreateUserUsageDataExportTaskOutcome createUserUsageDataExportTask(const Model::CreateUserUsageDataExportTaskRequest &request)const; void createUserUsageDataExportTaskAsync(const Model::CreateUserUsageDataExportTaskRequest& request, const CreateUserUsageDataExportTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserUsageDataExportTaskOutcomeCallable createUserUsageDataExportTaskCallable(const Model::CreateUserUsageDataExportTaskRequest& request) const; + DescribeLiveSnapshotConfigOutcome describeLiveSnapshotConfig(const Model::DescribeLiveSnapshotConfigRequest &request)const; + void describeLiveSnapshotConfigAsync(const Model::DescribeLiveSnapshotConfigRequest& request, const DescribeLiveSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveSnapshotConfigOutcomeCallable describeLiveSnapshotConfigCallable(const Model::DescribeLiveSnapshotConfigRequest& request) const; DescribeRefreshTasksOutcome describeRefreshTasks(const Model::DescribeRefreshTasksRequest &request)const; void describeRefreshTasksAsync(const Model::DescribeRefreshTasksRequest& request, const DescribeRefreshTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRefreshTasksOutcomeCallable describeRefreshTasksCallable(const Model::DescribeRefreshTasksRequest& request) const; @@ -1162,12 +1162,12 @@ namespace AlibabaCloud DescribeUserConfigsOutcome describeUserConfigs(const Model::DescribeUserConfigsRequest &request)const; void describeUserConfigsAsync(const Model::DescribeUserConfigsRequest& request, const DescribeUserConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserConfigsOutcomeCallable describeUserConfigsCallable(const Model::DescribeUserConfigsRequest& request) const; - DescribeDomainCertificateInfoOutcome describeDomainCertificateInfo(const Model::DescribeDomainCertificateInfoRequest &request)const; - void describeDomainCertificateInfoAsync(const Model::DescribeDomainCertificateInfoRequest& request, const DescribeDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDomainCertificateInfoOutcomeCallable describeDomainCertificateInfoCallable(const Model::DescribeDomainCertificateInfoRequest& request) const; DescribeRealtimeDeliveryAccOutcome describeRealtimeDeliveryAcc(const Model::DescribeRealtimeDeliveryAccRequest &request)const; void describeRealtimeDeliveryAccAsync(const Model::DescribeRealtimeDeliveryAccRequest& request, const DescribeRealtimeDeliveryAccAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRealtimeDeliveryAccOutcomeCallable describeRealtimeDeliveryAccCallable(const Model::DescribeRealtimeDeliveryAccRequest& request) const; + DescribeDomainCertificateInfoOutcome describeDomainCertificateInfo(const Model::DescribeDomainCertificateInfoRequest &request)const; + void describeDomainCertificateInfoAsync(const Model::DescribeDomainCertificateInfoRequest& request, const DescribeDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainCertificateInfoOutcomeCallable describeDomainCertificateInfoCallable(const Model::DescribeDomainCertificateInfoRequest& request) const; DescribeLiveStreamRecordIndexFilesOutcome describeLiveStreamRecordIndexFiles(const Model::DescribeLiveStreamRecordIndexFilesRequest &request)const; void describeLiveStreamRecordIndexFilesAsync(const Model::DescribeLiveStreamRecordIndexFilesRequest& request, const DescribeLiveStreamRecordIndexFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamRecordIndexFilesOutcomeCallable describeLiveStreamRecordIndexFilesCallable(const Model::DescribeLiveStreamRecordIndexFilesRequest& request) const; @@ -1192,12 +1192,12 @@ namespace AlibabaCloud ModifyHttpHeaderConfigOutcome modifyHttpHeaderConfig(const Model::ModifyHttpHeaderConfigRequest &request)const; void modifyHttpHeaderConfigAsync(const Model::ModifyHttpHeaderConfigRequest& request, const ModifyHttpHeaderConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyHttpHeaderConfigOutcomeCallable modifyHttpHeaderConfigCallable(const Model::ModifyHttpHeaderConfigRequest& request) const; - SetDomainServerCertificateOutcome setDomainServerCertificate(const Model::SetDomainServerCertificateRequest &request)const; - void setDomainServerCertificateAsync(const Model::SetDomainServerCertificateRequest& request, const SetDomainServerCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetDomainServerCertificateOutcomeCallable setDomainServerCertificateCallable(const Model::SetDomainServerCertificateRequest& request) const; BatchSetCdnDomainServerCertificateOutcome batchSetCdnDomainServerCertificate(const Model::BatchSetCdnDomainServerCertificateRequest &request)const; void batchSetCdnDomainServerCertificateAsync(const Model::BatchSetCdnDomainServerCertificateRequest& request, const BatchSetCdnDomainServerCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchSetCdnDomainServerCertificateOutcomeCallable batchSetCdnDomainServerCertificateCallable(const Model::BatchSetCdnDomainServerCertificateRequest& request) const; + SetDomainServerCertificateOutcome setDomainServerCertificate(const Model::SetDomainServerCertificateRequest &request)const; + void setDomainServerCertificateAsync(const Model::SetDomainServerCertificateRequest& request, const SetDomainServerCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDomainServerCertificateOutcomeCallable setDomainServerCertificateCallable(const Model::SetDomainServerCertificateRequest& request) const; DescribeIpInfoOutcome describeIpInfo(const Model::DescribeIpInfoRequest &request)const; void describeIpInfoAsync(const Model::DescribeIpInfoRequest& request, const DescribeIpInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIpInfoOutcomeCallable describeIpInfoCallable(const Model::DescribeIpInfoRequest& request) const; @@ -1234,12 +1234,12 @@ namespace AlibabaCloud DescribeDomainRealTimeSrcBpsDataOutcome describeDomainRealTimeSrcBpsData(const Model::DescribeDomainRealTimeSrcBpsDataRequest &request)const; void describeDomainRealTimeSrcBpsDataAsync(const Model::DescribeDomainRealTimeSrcBpsDataRequest& request, const DescribeDomainRealTimeSrcBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRealTimeSrcBpsDataOutcomeCallable describeDomainRealTimeSrcBpsDataCallable(const Model::DescribeDomainRealTimeSrcBpsDataRequest& request) const; - ResumeLiveStreamOutcome resumeLiveStream(const Model::ResumeLiveStreamRequest &request)const; - void resumeLiveStreamAsync(const Model::ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumeLiveStreamOutcomeCallable resumeLiveStreamCallable(const Model::ResumeLiveStreamRequest& request) const; DescribeUserUsageDataExportTaskOutcome describeUserUsageDataExportTask(const Model::DescribeUserUsageDataExportTaskRequest &request)const; void describeUserUsageDataExportTaskAsync(const Model::DescribeUserUsageDataExportTaskRequest& request, const DescribeUserUsageDataExportTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserUsageDataExportTaskOutcomeCallable describeUserUsageDataExportTaskCallable(const Model::DescribeUserUsageDataExportTaskRequest& request) const; + ResumeLiveStreamOutcome resumeLiveStream(const Model::ResumeLiveStreamRequest &request)const; + void resumeLiveStreamAsync(const Model::ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeLiveStreamOutcomeCallable resumeLiveStreamCallable(const Model::ResumeLiveStreamRequest& request) const; DescribeFCTriggerOutcome describeFCTrigger(const Model::DescribeFCTriggerRequest &request)const; void describeFCTriggerAsync(const Model::DescribeFCTriggerRequest& request, const DescribeFCTriggerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFCTriggerOutcomeCallable describeFCTriggerCallable(const Model::DescribeFCTriggerRequest& request) const; @@ -1249,12 +1249,12 @@ namespace AlibabaCloud DescribeDomainRealTimeBpsDataOutcome describeDomainRealTimeBpsData(const Model::DescribeDomainRealTimeBpsDataRequest &request)const; void describeDomainRealTimeBpsDataAsync(const Model::DescribeDomainRealTimeBpsDataRequest& request, const DescribeDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRealTimeBpsDataOutcomeCallable describeDomainRealTimeBpsDataCallable(const Model::DescribeDomainRealTimeBpsDataRequest& request) const; - DescribeLiveStreamsPublishListOutcome describeLiveStreamsPublishList(const Model::DescribeLiveStreamsPublishListRequest &request)const; - void describeLiveStreamsPublishListAsync(const Model::DescribeLiveStreamsPublishListRequest& request, const DescribeLiveStreamsPublishListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamsPublishListOutcomeCallable describeLiveStreamsPublishListCallable(const Model::DescribeLiveStreamsPublishListRequest& request) const; DescribeDomainCCAttackInfoOutcome describeDomainCCAttackInfo(const Model::DescribeDomainCCAttackInfoRequest &request)const; void describeDomainCCAttackInfoAsync(const Model::DescribeDomainCCAttackInfoRequest& request, const DescribeDomainCCAttackInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainCCAttackInfoOutcomeCallable describeDomainCCAttackInfoCallable(const Model::DescribeDomainCCAttackInfoRequest& request) const; + DescribeLiveStreamsPublishListOutcome describeLiveStreamsPublishList(const Model::DescribeLiveStreamsPublishListRequest &request)const; + void describeLiveStreamsPublishListAsync(const Model::DescribeLiveStreamsPublishListRequest& request, const DescribeLiveStreamsPublishListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveStreamsPublishListOutcomeCallable describeLiveStreamsPublishListCallable(const Model::DescribeLiveStreamsPublishListRequest& request) const; DescribeDomainRealTimeSrcTrafficDataOutcome describeDomainRealTimeSrcTrafficData(const Model::DescribeDomainRealTimeSrcTrafficDataRequest &request)const; void describeDomainRealTimeSrcTrafficDataAsync(const Model::DescribeDomainRealTimeSrcTrafficDataRequest& request, const DescribeDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRealTimeSrcTrafficDataOutcomeCallable describeDomainRealTimeSrcTrafficDataCallable(const Model::DescribeDomainRealTimeSrcTrafficDataRequest& request) const; @@ -1264,12 +1264,12 @@ namespace AlibabaCloud DescribeDomainUsageDataOutcome describeDomainUsageData(const Model::DescribeDomainUsageDataRequest &request)const; void describeDomainUsageDataAsync(const Model::DescribeDomainUsageDataRequest& request, const DescribeDomainUsageDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainUsageDataOutcomeCallable describeDomainUsageDataCallable(const Model::DescribeDomainUsageDataRequest& request) const; - SetWaitingRoomConfigOutcome setWaitingRoomConfig(const Model::SetWaitingRoomConfigRequest &request)const; - void setWaitingRoomConfigAsync(const Model::SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetWaitingRoomConfigOutcomeCallable setWaitingRoomConfigCallable(const Model::SetWaitingRoomConfigRequest& request) const; SetHttpsOptionConfigOutcome setHttpsOptionConfig(const Model::SetHttpsOptionConfigRequest &request)const; void setHttpsOptionConfigAsync(const Model::SetHttpsOptionConfigRequest& request, const SetHttpsOptionConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetHttpsOptionConfigOutcomeCallable setHttpsOptionConfigCallable(const Model::SetHttpsOptionConfigRequest& request) const; + SetWaitingRoomConfigOutcome setWaitingRoomConfig(const Model::SetWaitingRoomConfigRequest &request)const; + void setWaitingRoomConfigAsync(const Model::SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetWaitingRoomConfigOutcomeCallable setWaitingRoomConfigCallable(const Model::SetWaitingRoomConfigRequest& request) const; ListDomainsByLogConfigIdOutcome listDomainsByLogConfigId(const Model::ListDomainsByLogConfigIdRequest &request)const; void listDomainsByLogConfigIdAsync(const Model::ListDomainsByLogConfigIdRequest& request, const ListDomainsByLogConfigIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDomainsByLogConfigIdOutcomeCallable listDomainsByLogConfigIdCallable(const Model::ListDomainsByLogConfigIdRequest& request) const; diff --git a/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h b/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h index 40bb21be8..041ab689e 100644 --- a/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h +++ b/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h @@ -35,25 +35,85 @@ namespace AlibabaCloud DescribeDomainBpsDataByTimeStampRequest(); ~DescribeDomainBpsDataByTimeStampRequest(); - std::string getIspNames()const; - void setIspNames(const std::string& ispNames); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); std::string getLocationNames()const; void setLocationNames(const std::string& locationNames); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getIspNames()const; + void setIspNames(const std::string& ispNames); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getProduct()const; + void setProduct(const std::string& product); std::string getDomainName()const; void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); std::string getTimePoint()const; void setTimePoint(const std::string& timePoint); private: - std::string ispNames_; - std::string securityToken_; + long resourceOwnerId_; + long callerParentId_; std::string locationNames_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string ispNames_; + std::string app_ip_; + std::string popProduct_; + std::string product_; std::string domainName_; + std::string callerBid_; long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; std::string timePoint_; }; diff --git a/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h b/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h index 292555dcf..d94167b86 100644 --- a/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h +++ b/cdn/include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string ispName; long bps; + std::string timeStamp; std::string locationName; }; diff --git a/cdn/include/alibabacloud/cdn/model/DescribeRangeDataByLocateAndIspServiceRequest.h b/cdn/include/alibabacloud/cdn/model/DescribeRangeDataByLocateAndIspServiceRequest.h index 863e44646..f94addb21 100644 --- a/cdn/include/alibabacloud/cdn/model/DescribeRangeDataByLocateAndIspServiceRequest.h +++ b/cdn/include/alibabacloud/cdn/model/DescribeRangeDataByLocateAndIspServiceRequest.h @@ -35,29 +35,92 @@ namespace AlibabaCloud DescribeRangeDataByLocateAndIspServiceRequest(); ~DescribeRangeDataByLocateAndIspServiceRequest(); - std::string getIspNames()const; - void setIspNames(const std::string& ispNames); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); std::string getDomainNames()const; void setDomainNames(const std::string& domainNames); std::string getLocationNames()const; void setLocationNames(const std::string& locationNames); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); std::string getStartTime()const; void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getIspNames()const; + void setIspNames(const std::string& ispNames); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getWithBug()const; + void setWithBug(const std::string& withBug); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); private: - std::string ispNames_; - std::string securityToken_; + long resourceOwnerId_; + long callerParentId_; std::string domainNames_; std::string locationNames_; - std::string endTime_; + bool proxy_original_security_transport_; std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string ispNames_; + std::string app_ip_; + std::string popProduct_; + std::string product_; + std::string endTime_; + std::string callerBid_; + std::string withBug_; long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; }; } diff --git a/cdn/src/CdnClient.cc b/cdn/src/CdnClient.cc index 12f04e66d..ed05b8349 100644 --- a/cdn/src/CdnClient.cc +++ b/cdn/src/CdnClient.cc @@ -31,21 +31,21 @@ CdnClient::CdnClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cdn"); } CdnClient::CdnClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cdn"); } CdnClient::CdnClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cdn"); } CdnClient::~CdnClient() @@ -87,42 +87,6 @@ CdnClient::DescribeCdnCertificateListOutcomeCallable CdnClient::describeCdnCerti return task->get_future(); } -CdnClient::DescribeCdnServiceOutcome CdnClient::describeCdnService(const DescribeCdnServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCdnServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCdnServiceOutcome(DescribeCdnServiceResult(outcome.result())); - else - return DescribeCdnServiceOutcome(outcome.error()); -} - -void CdnClient::describeCdnServiceAsync(const DescribeCdnServiceRequest& request, const DescribeCdnServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCdnService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeCdnServiceOutcomeCallable CdnClient::describeCdnServiceCallable(const DescribeCdnServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCdnService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::SetPathCacheExpiredConfigOutcome CdnClient::setPathCacheExpiredConfig(const SetPathCacheExpiredConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +123,42 @@ CdnClient::SetPathCacheExpiredConfigOutcomeCallable CdnClient::setPathCacheExpir return task->get_future(); } +CdnClient::DescribeCdnServiceOutcome CdnClient::describeCdnService(const DescribeCdnServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCdnServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCdnServiceOutcome(DescribeCdnServiceResult(outcome.result())); + else + return DescribeCdnServiceOutcome(outcome.error()); +} + +void CdnClient::describeCdnServiceAsync(const DescribeCdnServiceRequest& request, const DescribeCdnServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCdnService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DescribeCdnServiceOutcomeCallable CdnClient::describeCdnServiceCallable(const DescribeCdnServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCdnService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::AddFCTriggerOutcome CdnClient::addFCTrigger(const AddFCTriggerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,42 +303,6 @@ CdnClient::ModifyUserCustomLogConfigOutcomeCallable CdnClient::modifyUserCustomL return task->get_future(); } -CdnClient::SetWafConfigOutcome CdnClient::setWafConfig(const SetWafConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetWafConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetWafConfigOutcome(SetWafConfigResult(outcome.result())); - else - return SetWafConfigOutcome(outcome.error()); -} - -void CdnClient::setWafConfigAsync(const SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setWafConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetWafConfigOutcomeCallable CdnClient::setWafConfigCallable(const SetWafConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setWafConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeCdnDomainConfigsOutcome CdnClient::describeCdnDomainConfigs(const DescribeCdnDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +339,42 @@ CdnClient::DescribeCdnDomainConfigsOutcomeCallable CdnClient::describeCdnDomainC return task->get_future(); } +CdnClient::SetWafConfigOutcome CdnClient::setWafConfig(const SetWafConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetWafConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetWafConfigOutcome(SetWafConfigResult(outcome.result())); + else + return SetWafConfigOutcome(outcome.error()); +} + +void CdnClient::setWafConfigAsync(const SetWafConfigRequest& request, const SetWafConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setWafConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetWafConfigOutcomeCallable CdnClient::setWafConfigCallable(const SetWafConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setWafConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeCdnDomainDetailOutcome CdnClient::describeCdnDomainDetail(const DescribeCdnDomainDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,42 +807,6 @@ CdnClient::StopMixStreamsServiceOutcomeCallable CdnClient::stopMixStreamsService return task->get_future(); } -CdnClient::DescribeCdnDomainByCertificateOutcome CdnClient::describeCdnDomainByCertificate(const DescribeCdnDomainByCertificateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCdnDomainByCertificateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCdnDomainByCertificateOutcome(DescribeCdnDomainByCertificateResult(outcome.result())); - else - return DescribeCdnDomainByCertificateOutcome(outcome.error()); -} - -void CdnClient::describeCdnDomainByCertificateAsync(const DescribeCdnDomainByCertificateRequest& request, const DescribeCdnDomainByCertificateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCdnDomainByCertificate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeCdnDomainByCertificateOutcomeCallable CdnClient::describeCdnDomainByCertificateCallable(const DescribeCdnDomainByCertificateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCdnDomainByCertificate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeDomainUvDataOutcome CdnClient::describeDomainUvData(const DescribeDomainUvDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,36 +843,36 @@ CdnClient::DescribeDomainUvDataOutcomeCallable CdnClient::describeDomainUvDataCa return task->get_future(); } -CdnClient::DescribeCdnHttpsDomainListOutcome CdnClient::describeCdnHttpsDomainList(const DescribeCdnHttpsDomainListRequest &request) const +CdnClient::DescribeCdnDomainByCertificateOutcome CdnClient::describeCdnDomainByCertificate(const DescribeCdnDomainByCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCdnHttpsDomainListOutcome(endpointOutcome.error()); + return DescribeCdnDomainByCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCdnHttpsDomainListOutcome(DescribeCdnHttpsDomainListResult(outcome.result())); + return DescribeCdnDomainByCertificateOutcome(DescribeCdnDomainByCertificateResult(outcome.result())); else - return DescribeCdnHttpsDomainListOutcome(outcome.error()); + return DescribeCdnDomainByCertificateOutcome(outcome.error()); } -void CdnClient::describeCdnHttpsDomainListAsync(const DescribeCdnHttpsDomainListRequest& request, const DescribeCdnHttpsDomainListAsyncHandler& handler, const std::shared_ptr& context) const +void CdnClient::describeCdnDomainByCertificateAsync(const DescribeCdnDomainByCertificateRequest& request, const DescribeCdnDomainByCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCdnHttpsDomainList(request), context); + handler(this, request, describeCdnDomainByCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CdnClient::DescribeCdnHttpsDomainListOutcomeCallable CdnClient::describeCdnHttpsDomainListCallable(const DescribeCdnHttpsDomainListRequest &request) const +CdnClient::DescribeCdnDomainByCertificateOutcomeCallable CdnClient::describeCdnDomainByCertificateCallable(const DescribeCdnDomainByCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCdnHttpsDomainList(request); + return this->describeCdnDomainByCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -951,36 +915,36 @@ CdnClient::DeleteSpecificConfigOutcomeCallable CdnClient::deleteSpecificConfigCa return task->get_future(); } -CdnClient::SetRemoveQueryStringConfigOutcome CdnClient::setRemoveQueryStringConfig(const SetRemoveQueryStringConfigRequest &request) const +CdnClient::DescribeCdnHttpsDomainListOutcome CdnClient::describeCdnHttpsDomainList(const DescribeCdnHttpsDomainListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SetRemoveQueryStringConfigOutcome(endpointOutcome.error()); + return DescribeCdnHttpsDomainListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SetRemoveQueryStringConfigOutcome(SetRemoveQueryStringConfigResult(outcome.result())); + return DescribeCdnHttpsDomainListOutcome(DescribeCdnHttpsDomainListResult(outcome.result())); else - return SetRemoveQueryStringConfigOutcome(outcome.error()); + return DescribeCdnHttpsDomainListOutcome(outcome.error()); } -void CdnClient::setRemoveQueryStringConfigAsync(const SetRemoveQueryStringConfigRequest& request, const SetRemoveQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context) const +void CdnClient::describeCdnHttpsDomainListAsync(const DescribeCdnHttpsDomainListRequest& request, const DescribeCdnHttpsDomainListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, setRemoveQueryStringConfig(request), context); + handler(this, request, describeCdnHttpsDomainList(request), context); }; asyncExecute(new Runnable(fn)); } -CdnClient::SetRemoveQueryStringConfigOutcomeCallable CdnClient::setRemoveQueryStringConfigCallable(const SetRemoveQueryStringConfigRequest &request) const +CdnClient::DescribeCdnHttpsDomainListOutcomeCallable CdnClient::describeCdnHttpsDomainListCallable(const DescribeCdnHttpsDomainListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->setRemoveQueryStringConfig(request); + return this->describeCdnHttpsDomainList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1023,6 +987,42 @@ CdnClient::DeleteCdnDomainOutcomeCallable CdnClient::deleteCdnDomainCallable(con return task->get_future(); } +CdnClient::SetRemoveQueryStringConfigOutcome CdnClient::setRemoveQueryStringConfig(const SetRemoveQueryStringConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetRemoveQueryStringConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetRemoveQueryStringConfigOutcome(SetRemoveQueryStringConfigResult(outcome.result())); + else + return SetRemoveQueryStringConfigOutcome(outcome.error()); +} + +void CdnClient::setRemoveQueryStringConfigAsync(const SetRemoveQueryStringConfigRequest& request, const SetRemoveQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setRemoveQueryStringConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetRemoveQueryStringConfigOutcomeCallable CdnClient::setRemoveQueryStringConfigCallable(const SetRemoveQueryStringConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setRemoveQueryStringConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DeleteLiveStreamTranscodeOutcome CdnClient::deleteLiveStreamTranscode(const DeleteLiveStreamTranscodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,42 +1671,6 @@ CdnClient::DescribeDomainRealTimeHttpCodeDataOutcomeCallable CdnClient::describe return task->get_future(); } -CdnClient::DescribeLiveRecordConfigOutcome CdnClient::describeLiveRecordConfig(const DescribeLiveRecordConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveRecordConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveRecordConfigOutcome(DescribeLiveRecordConfigResult(outcome.result())); - else - return DescribeLiveRecordConfigOutcome(outcome.error()); -} - -void CdnClient::describeLiveRecordConfigAsync(const DescribeLiveRecordConfigRequest& request, const DescribeLiveRecordConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveRecordConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeLiveRecordConfigOutcomeCallable CdnClient::describeLiveRecordConfigCallable(const DescribeLiveRecordConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveRecordConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeDomainTrafficDataOutcome CdnClient::describeDomainTrafficData(const DescribeDomainTrafficDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +1707,42 @@ CdnClient::DescribeDomainTrafficDataOutcomeCallable CdnClient::describeDomainTra return task->get_future(); } +CdnClient::DescribeLiveRecordConfigOutcome CdnClient::describeLiveRecordConfig(const DescribeLiveRecordConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveRecordConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveRecordConfigOutcome(DescribeLiveRecordConfigResult(outcome.result())); + else + return DescribeLiveRecordConfigOutcome(outcome.error()); +} + +void CdnClient::describeLiveRecordConfigAsync(const DescribeLiveRecordConfigRequest& request, const DescribeLiveRecordConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveRecordConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DescribeLiveRecordConfigOutcomeCallable CdnClient::describeLiveRecordConfigCallable(const DescribeLiveRecordConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveRecordConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::SetForceRedirectConfigOutcome CdnClient::setForceRedirectConfig(const SetForceRedirectConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,42 +1887,6 @@ CdnClient::DescribeLiveStreamOnlineUserNumOutcomeCallable CdnClient::describeLiv return task->get_future(); } -CdnClient::DeleteUsageDetailDataExportTaskOutcome CdnClient::deleteUsageDetailDataExportTask(const DeleteUsageDetailDataExportTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteUsageDetailDataExportTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteUsageDetailDataExportTaskOutcome(DeleteUsageDetailDataExportTaskResult(outcome.result())); - else - return DeleteUsageDetailDataExportTaskOutcome(outcome.error()); -} - -void CdnClient::deleteUsageDetailDataExportTaskAsync(const DeleteUsageDetailDataExportTaskRequest& request, const DeleteUsageDetailDataExportTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteUsageDetailDataExportTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DeleteUsageDetailDataExportTaskOutcomeCallable CdnClient::deleteUsageDetailDataExportTaskCallable(const DeleteUsageDetailDataExportTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteUsageDetailDataExportTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::SetRefererConfigOutcome CdnClient::setRefererConfig(const SetRefererConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,6 +1923,42 @@ CdnClient::SetRefererConfigOutcomeCallable CdnClient::setRefererConfigCallable(c return task->get_future(); } +CdnClient::DeleteUsageDetailDataExportTaskOutcome CdnClient::deleteUsageDetailDataExportTask(const DeleteUsageDetailDataExportTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUsageDetailDataExportTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUsageDetailDataExportTaskOutcome(DeleteUsageDetailDataExportTaskResult(outcome.result())); + else + return DeleteUsageDetailDataExportTaskOutcome(outcome.error()); +} + +void CdnClient::deleteUsageDetailDataExportTaskAsync(const DeleteUsageDetailDataExportTaskRequest& request, const DeleteUsageDetailDataExportTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUsageDetailDataExportTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DeleteUsageDetailDataExportTaskOutcomeCallable CdnClient::deleteUsageDetailDataExportTaskCallable(const DeleteUsageDetailDataExportTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUsageDetailDataExportTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeDomainSrcFlowDataOutcome CdnClient::describeDomainSrcFlowData(const DescribeDomainSrcFlowDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,42 +2175,6 @@ CdnClient::SetDynamicConfigOutcomeCallable CdnClient::setDynamicConfigCallable(c return task->get_future(); } -CdnClient::SetDomainGreenManagerConfigOutcome CdnClient::setDomainGreenManagerConfig(const SetDomainGreenManagerConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetDomainGreenManagerConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetDomainGreenManagerConfigOutcome(SetDomainGreenManagerConfigResult(outcome.result())); - else - return SetDomainGreenManagerConfigOutcome(outcome.error()); -} - -void CdnClient::setDomainGreenManagerConfigAsync(const SetDomainGreenManagerConfigRequest& request, const SetDomainGreenManagerConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setDomainGreenManagerConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetDomainGreenManagerConfigOutcomeCallable CdnClient::setDomainGreenManagerConfigCallable(const SetDomainGreenManagerConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setDomainGreenManagerConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::SetHttpErrorPageConfigOutcome CdnClient::setHttpErrorPageConfig(const SetHttpErrorPageConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,6 +2211,42 @@ CdnClient::SetHttpErrorPageConfigOutcomeCallable CdnClient::setHttpErrorPageConf return task->get_future(); } +CdnClient::SetDomainGreenManagerConfigOutcome CdnClient::setDomainGreenManagerConfig(const SetDomainGreenManagerConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDomainGreenManagerConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDomainGreenManagerConfigOutcome(SetDomainGreenManagerConfigResult(outcome.result())); + else + return SetDomainGreenManagerConfigOutcome(outcome.error()); +} + +void CdnClient::setDomainGreenManagerConfigAsync(const SetDomainGreenManagerConfigRequest& request, const SetDomainGreenManagerConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDomainGreenManagerConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetDomainGreenManagerConfigOutcomeCallable CdnClient::setDomainGreenManagerConfigCallable(const SetDomainGreenManagerConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDomainGreenManagerConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::StartMixStreamsServiceOutcome CdnClient::startMixStreamsService(const StartMixStreamsServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,42 +2607,6 @@ CdnClient::DescribeLiveStreamsBlockListOutcomeCallable CdnClient::describeLiveSt return task->get_future(); } -CdnClient::SetIgnoreQueryStringConfigOutcome CdnClient::setIgnoreQueryStringConfig(const SetIgnoreQueryStringConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetIgnoreQueryStringConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetIgnoreQueryStringConfigOutcome(SetIgnoreQueryStringConfigResult(outcome.result())); - else - return SetIgnoreQueryStringConfigOutcome(outcome.error()); -} - -void CdnClient::setIgnoreQueryStringConfigAsync(const SetIgnoreQueryStringConfigRequest& request, const SetIgnoreQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setIgnoreQueryStringConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetIgnoreQueryStringConfigOutcomeCallable CdnClient::setIgnoreQueryStringConfigCallable(const SetIgnoreQueryStringConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setIgnoreQueryStringConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::AddLiveStreamTranscodeOutcome CdnClient::addLiveStreamTranscode(const AddLiveStreamTranscodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +2643,42 @@ CdnClient::AddLiveStreamTranscodeOutcomeCallable CdnClient::addLiveStreamTransco return task->get_future(); } +CdnClient::SetIgnoreQueryStringConfigOutcome CdnClient::setIgnoreQueryStringConfig(const SetIgnoreQueryStringConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetIgnoreQueryStringConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetIgnoreQueryStringConfigOutcome(SetIgnoreQueryStringConfigResult(outcome.result())); + else + return SetIgnoreQueryStringConfigOutcome(outcome.error()); +} + +void CdnClient::setIgnoreQueryStringConfigAsync(const SetIgnoreQueryStringConfigRequest& request, const SetIgnoreQueryStringConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setIgnoreQueryStringConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetIgnoreQueryStringConfigOutcomeCallable CdnClient::setIgnoreQueryStringConfigCallable(const SetIgnoreQueryStringConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setIgnoreQueryStringConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeDomainCustomLogConfigOutcome CdnClient::describeDomainCustomLogConfig(const DescribeDomainCustomLogConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2715,42 +2715,6 @@ CdnClient::DescribeDomainCustomLogConfigOutcomeCallable CdnClient::describeDomai return task->get_future(); } -CdnClient::DescribeUserCustomerLabelsOutcome CdnClient::describeUserCustomerLabels(const DescribeUserCustomerLabelsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserCustomerLabelsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserCustomerLabelsOutcome(DescribeUserCustomerLabelsResult(outcome.result())); - else - return DescribeUserCustomerLabelsOutcome(outcome.error()); -} - -void CdnClient::describeUserCustomerLabelsAsync(const DescribeUserCustomerLabelsRequest& request, const DescribeUserCustomerLabelsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserCustomerLabels(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeUserCustomerLabelsOutcomeCallable CdnClient::describeUserCustomerLabelsCallable(const DescribeUserCustomerLabelsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserCustomerLabels(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeCdnUserResourcePackageOutcome CdnClient::describeCdnUserResourcePackage(const DescribeCdnUserResourcePackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,6 +2751,42 @@ CdnClient::DescribeCdnUserResourcePackageOutcomeCallable CdnClient::describeCdnU return task->get_future(); } +CdnClient::DescribeUserCustomerLabelsOutcome CdnClient::describeUserCustomerLabels(const DescribeUserCustomerLabelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserCustomerLabelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserCustomerLabelsOutcome(DescribeUserCustomerLabelsResult(outcome.result())); + else + return DescribeUserCustomerLabelsOutcome(outcome.error()); +} + +void CdnClient::describeUserCustomerLabelsAsync(const DescribeUserCustomerLabelsRequest& request, const DescribeUserCustomerLabelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserCustomerLabels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DescribeUserCustomerLabelsOutcomeCallable CdnClient::describeUserCustomerLabelsCallable(const DescribeUserCustomerLabelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserCustomerLabels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::BatchUpdateCdnDomainOutcome CdnClient::batchUpdateCdnDomain(const BatchUpdateCdnDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2895,42 +2895,6 @@ CdnClient::DescribeLiveStreamsControlHistoryOutcomeCallable CdnClient::describeL return task->get_future(); } -CdnClient::SetReqHeaderConfigOutcome CdnClient::setReqHeaderConfig(const SetReqHeaderConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetReqHeaderConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetReqHeaderConfigOutcome(SetReqHeaderConfigResult(outcome.result())); - else - return SetReqHeaderConfigOutcome(outcome.error()); -} - -void CdnClient::setReqHeaderConfigAsync(const SetReqHeaderConfigRequest& request, const SetReqHeaderConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setReqHeaderConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetReqHeaderConfigOutcomeCallable CdnClient::setReqHeaderConfigCallable(const SetReqHeaderConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setReqHeaderConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::OpenCdnServiceOutcome CdnClient::openCdnService(const OpenCdnServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,6 +2931,42 @@ CdnClient::OpenCdnServiceOutcomeCallable CdnClient::openCdnServiceCallable(const return task->get_future(); } +CdnClient::SetReqHeaderConfigOutcome CdnClient::setReqHeaderConfig(const SetReqHeaderConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetReqHeaderConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetReqHeaderConfigOutcome(SetReqHeaderConfigResult(outcome.result())); + else + return SetReqHeaderConfigOutcome(outcome.error()); +} + +void CdnClient::setReqHeaderConfigAsync(const SetReqHeaderConfigRequest& request, const SetReqHeaderConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setReqHeaderConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetReqHeaderConfigOutcomeCallable CdnClient::setReqHeaderConfigCallable(const SetReqHeaderConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setReqHeaderConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeDomainRealTimeReqHitRateDataOutcome CdnClient::describeDomainRealTimeReqHitRateData(const DescribeDomainRealTimeReqHitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,42 +3219,6 @@ CdnClient::DescribeDomainRealTimeQpsDataOutcomeCallable CdnClient::describeDomai return task->get_future(); } -CdnClient::DescribeDomainBpsDataOutcome CdnClient::describeDomainBpsData(const DescribeDomainBpsDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDomainBpsDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDomainBpsDataOutcome(DescribeDomainBpsDataResult(outcome.result())); - else - return DescribeDomainBpsDataOutcome(outcome.error()); -} - -void CdnClient::describeDomainBpsDataAsync(const DescribeDomainBpsDataRequest& request, const DescribeDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDomainBpsData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeDomainBpsDataOutcomeCallable CdnClient::describeDomainBpsDataCallable(const DescribeDomainBpsDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDomainBpsData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::RefreshObjectCachesOutcome CdnClient::refreshObjectCaches(const RefreshObjectCachesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,6 +3255,42 @@ CdnClient::RefreshObjectCachesOutcomeCallable CdnClient::refreshObjectCachesCall return task->get_future(); } +CdnClient::DescribeDomainBpsDataOutcome CdnClient::describeDomainBpsData(const DescribeDomainBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainBpsDataOutcome(DescribeDomainBpsDataResult(outcome.result())); + else + return DescribeDomainBpsDataOutcome(outcome.error()); +} + +void CdnClient::describeDomainBpsDataAsync(const DescribeDomainBpsDataRequest& request, const DescribeDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DescribeDomainBpsDataOutcomeCallable CdnClient::describeDomainBpsDataCallable(const DescribeDomainBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeLiveStreamsFrameRateAndBitRateDataOutcome CdnClient::describeLiveStreamsFrameRateAndBitRateData(const DescribeLiveStreamsFrameRateAndBitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3363,42 +3363,6 @@ CdnClient::DescribeLiveStreamRecordContentOutcomeCallable CdnClient::describeLiv return task->get_future(); } -CdnClient::SetRangeConfigOutcome CdnClient::setRangeConfig(const SetRangeConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetRangeConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetRangeConfigOutcome(SetRangeConfigResult(outcome.result())); - else - return SetRangeConfigOutcome(outcome.error()); -} - -void CdnClient::setRangeConfigAsync(const SetRangeConfigRequest& request, const SetRangeConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setRangeConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetRangeConfigOutcomeCallable CdnClient::setRangeConfigCallable(const SetRangeConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setRangeConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::AddCdnDomainOutcome CdnClient::addCdnDomain(const AddCdnDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3435,6 +3399,42 @@ CdnClient::AddCdnDomainOutcomeCallable CdnClient::addCdnDomainCallable(const Add return task->get_future(); } +CdnClient::SetRangeConfigOutcome CdnClient::setRangeConfig(const SetRangeConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetRangeConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetRangeConfigOutcome(SetRangeConfigResult(outcome.result())); + else + return SetRangeConfigOutcome(outcome.error()); +} + +void CdnClient::setRangeConfigAsync(const SetRangeConfigRequest& request, const SetRangeConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setRangeConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetRangeConfigOutcomeCallable CdnClient::setRangeConfigCallable(const SetRangeConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setRangeConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeDomainCnameOutcome CdnClient::describeDomainCname(const DescribeDomainCnameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3615,42 +3615,6 @@ CdnClient::DescribeUserDomainsOutcomeCallable CdnClient::describeUserDomainsCall return task->get_future(); } -CdnClient::DescribeLiveSnapshotConfigOutcome CdnClient::describeLiveSnapshotConfig(const DescribeLiveSnapshotConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveSnapshotConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveSnapshotConfigOutcome(DescribeLiveSnapshotConfigResult(outcome.result())); - else - return DescribeLiveSnapshotConfigOutcome(outcome.error()); -} - -void CdnClient::describeLiveSnapshotConfigAsync(const DescribeLiveSnapshotConfigRequest& request, const DescribeLiveSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveSnapshotConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeLiveSnapshotConfigOutcomeCallable CdnClient::describeLiveSnapshotConfigCallable(const DescribeLiveSnapshotConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveSnapshotConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::CreateUserUsageDataExportTaskOutcome CdnClient::createUserUsageDataExportTask(const CreateUserUsageDataExportTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3687,6 +3651,42 @@ CdnClient::CreateUserUsageDataExportTaskOutcomeCallable CdnClient::createUserUsa return task->get_future(); } +CdnClient::DescribeLiveSnapshotConfigOutcome CdnClient::describeLiveSnapshotConfig(const DescribeLiveSnapshotConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveSnapshotConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveSnapshotConfigOutcome(DescribeLiveSnapshotConfigResult(outcome.result())); + else + return DescribeLiveSnapshotConfigOutcome(outcome.error()); +} + +void CdnClient::describeLiveSnapshotConfigAsync(const DescribeLiveSnapshotConfigRequest& request, const DescribeLiveSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveSnapshotConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DescribeLiveSnapshotConfigOutcomeCallable CdnClient::describeLiveSnapshotConfigCallable(const DescribeLiveSnapshotConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveSnapshotConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeRefreshTasksOutcome CdnClient::describeRefreshTasks(const DescribeRefreshTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4083,42 +4083,6 @@ CdnClient::DescribeUserConfigsOutcomeCallable CdnClient::describeUserConfigsCall return task->get_future(); } -CdnClient::DescribeDomainCertificateInfoOutcome CdnClient::describeDomainCertificateInfo(const DescribeDomainCertificateInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDomainCertificateInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDomainCertificateInfoOutcome(DescribeDomainCertificateInfoResult(outcome.result())); - else - return DescribeDomainCertificateInfoOutcome(outcome.error()); -} - -void CdnClient::describeDomainCertificateInfoAsync(const DescribeDomainCertificateInfoRequest& request, const DescribeDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDomainCertificateInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeDomainCertificateInfoOutcomeCallable CdnClient::describeDomainCertificateInfoCallable(const DescribeDomainCertificateInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDomainCertificateInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeRealtimeDeliveryAccOutcome CdnClient::describeRealtimeDeliveryAcc(const DescribeRealtimeDeliveryAccRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4155,6 +4119,42 @@ CdnClient::DescribeRealtimeDeliveryAccOutcomeCallable CdnClient::describeRealtim return task->get_future(); } +CdnClient::DescribeDomainCertificateInfoOutcome CdnClient::describeDomainCertificateInfo(const DescribeDomainCertificateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainCertificateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainCertificateInfoOutcome(DescribeDomainCertificateInfoResult(outcome.result())); + else + return DescribeDomainCertificateInfoOutcome(outcome.error()); +} + +void CdnClient::describeDomainCertificateInfoAsync(const DescribeDomainCertificateInfoRequest& request, const DescribeDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainCertificateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DescribeDomainCertificateInfoOutcomeCallable CdnClient::describeDomainCertificateInfoCallable(const DescribeDomainCertificateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainCertificateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeLiveStreamRecordIndexFilesOutcome CdnClient::describeLiveStreamRecordIndexFiles(const DescribeLiveStreamRecordIndexFilesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4443,42 +4443,6 @@ CdnClient::ModifyHttpHeaderConfigOutcomeCallable CdnClient::modifyHttpHeaderConf return task->get_future(); } -CdnClient::SetDomainServerCertificateOutcome CdnClient::setDomainServerCertificate(const SetDomainServerCertificateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetDomainServerCertificateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetDomainServerCertificateOutcome(SetDomainServerCertificateResult(outcome.result())); - else - return SetDomainServerCertificateOutcome(outcome.error()); -} - -void CdnClient::setDomainServerCertificateAsync(const SetDomainServerCertificateRequest& request, const SetDomainServerCertificateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setDomainServerCertificate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetDomainServerCertificateOutcomeCallable CdnClient::setDomainServerCertificateCallable(const SetDomainServerCertificateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setDomainServerCertificate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::BatchSetCdnDomainServerCertificateOutcome CdnClient::batchSetCdnDomainServerCertificate(const BatchSetCdnDomainServerCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4515,6 +4479,42 @@ CdnClient::BatchSetCdnDomainServerCertificateOutcomeCallable CdnClient::batchSet return task->get_future(); } +CdnClient::SetDomainServerCertificateOutcome CdnClient::setDomainServerCertificate(const SetDomainServerCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDomainServerCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDomainServerCertificateOutcome(SetDomainServerCertificateResult(outcome.result())); + else + return SetDomainServerCertificateOutcome(outcome.error()); +} + +void CdnClient::setDomainServerCertificateAsync(const SetDomainServerCertificateRequest& request, const SetDomainServerCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDomainServerCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetDomainServerCertificateOutcomeCallable CdnClient::setDomainServerCertificateCallable(const SetDomainServerCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDomainServerCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeIpInfoOutcome CdnClient::describeIpInfo(const DescribeIpInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4947,42 +4947,6 @@ CdnClient::DescribeDomainRealTimeSrcBpsDataOutcomeCallable CdnClient::describeDo return task->get_future(); } -CdnClient::ResumeLiveStreamOutcome CdnClient::resumeLiveStream(const ResumeLiveStreamRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResumeLiveStreamOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResumeLiveStreamOutcome(ResumeLiveStreamResult(outcome.result())); - else - return ResumeLiveStreamOutcome(outcome.error()); -} - -void CdnClient::resumeLiveStreamAsync(const ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resumeLiveStream(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::ResumeLiveStreamOutcomeCallable CdnClient::resumeLiveStreamCallable(const ResumeLiveStreamRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resumeLiveStream(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeUserUsageDataExportTaskOutcome CdnClient::describeUserUsageDataExportTask(const DescribeUserUsageDataExportTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5019,6 +4983,42 @@ CdnClient::DescribeUserUsageDataExportTaskOutcomeCallable CdnClient::describeUse return task->get_future(); } +CdnClient::ResumeLiveStreamOutcome CdnClient::resumeLiveStream(const ResumeLiveStreamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeLiveStreamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeLiveStreamOutcome(ResumeLiveStreamResult(outcome.result())); + else + return ResumeLiveStreamOutcome(outcome.error()); +} + +void CdnClient::resumeLiveStreamAsync(const ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeLiveStream(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::ResumeLiveStreamOutcomeCallable CdnClient::resumeLiveStreamCallable(const ResumeLiveStreamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeLiveStream(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeFCTriggerOutcome CdnClient::describeFCTrigger(const DescribeFCTriggerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5127,42 +5127,6 @@ CdnClient::DescribeDomainRealTimeBpsDataOutcomeCallable CdnClient::describeDomai return task->get_future(); } -CdnClient::DescribeLiveStreamsPublishListOutcome CdnClient::describeLiveStreamsPublishList(const DescribeLiveStreamsPublishListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamsPublishListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveStreamsPublishListOutcome(DescribeLiveStreamsPublishListResult(outcome.result())); - else - return DescribeLiveStreamsPublishListOutcome(outcome.error()); -} - -void CdnClient::describeLiveStreamsPublishListAsync(const DescribeLiveStreamsPublishListRequest& request, const DescribeLiveStreamsPublishListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveStreamsPublishList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeLiveStreamsPublishListOutcomeCallable CdnClient::describeLiveStreamsPublishListCallable(const DescribeLiveStreamsPublishListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveStreamsPublishList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeDomainCCAttackInfoOutcome CdnClient::describeDomainCCAttackInfo(const DescribeDomainCCAttackInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5199,6 +5163,42 @@ CdnClient::DescribeDomainCCAttackInfoOutcomeCallable CdnClient::describeDomainCC return task->get_future(); } +CdnClient::DescribeLiveStreamsPublishListOutcome CdnClient::describeLiveStreamsPublishList(const DescribeLiveStreamsPublishListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveStreamsPublishListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveStreamsPublishListOutcome(DescribeLiveStreamsPublishListResult(outcome.result())); + else + return DescribeLiveStreamsPublishListOutcome(outcome.error()); +} + +void CdnClient::describeLiveStreamsPublishListAsync(const DescribeLiveStreamsPublishListRequest& request, const DescribeLiveStreamsPublishListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveStreamsPublishList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::DescribeLiveStreamsPublishListOutcomeCallable CdnClient::describeLiveStreamsPublishListCallable(const DescribeLiveStreamsPublishListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveStreamsPublishList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::DescribeDomainRealTimeSrcTrafficDataOutcome CdnClient::describeDomainRealTimeSrcTrafficData(const DescribeDomainRealTimeSrcTrafficDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5307,42 +5307,6 @@ CdnClient::DescribeDomainUsageDataOutcomeCallable CdnClient::describeDomainUsage return task->get_future(); } -CdnClient::SetWaitingRoomConfigOutcome CdnClient::setWaitingRoomConfig(const SetWaitingRoomConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetWaitingRoomConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetWaitingRoomConfigOutcome(SetWaitingRoomConfigResult(outcome.result())); - else - return SetWaitingRoomConfigOutcome(outcome.error()); -} - -void CdnClient::setWaitingRoomConfigAsync(const SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setWaitingRoomConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetWaitingRoomConfigOutcomeCallable CdnClient::setWaitingRoomConfigCallable(const SetWaitingRoomConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setWaitingRoomConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::SetHttpsOptionConfigOutcome CdnClient::setHttpsOptionConfig(const SetHttpsOptionConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5379,6 +5343,42 @@ CdnClient::SetHttpsOptionConfigOutcomeCallable CdnClient::setHttpsOptionConfigCa return task->get_future(); } +CdnClient::SetWaitingRoomConfigOutcome CdnClient::setWaitingRoomConfig(const SetWaitingRoomConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetWaitingRoomConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetWaitingRoomConfigOutcome(SetWaitingRoomConfigResult(outcome.result())); + else + return SetWaitingRoomConfigOutcome(outcome.error()); +} + +void CdnClient::setWaitingRoomConfigAsync(const SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setWaitingRoomConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CdnClient::SetWaitingRoomConfigOutcomeCallable CdnClient::setWaitingRoomConfigCallable(const SetWaitingRoomConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setWaitingRoomConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CdnClient::ListDomainsByLogConfigIdOutcome CdnClient::listDomainsByLogConfigId(const ListDomainsByLogConfigIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cdn/src/model/AddCdnDomainRequest.cc b/cdn/src/model/AddCdnDomainRequest.cc index eb50e4cfd..27a7f7fb3 100644 --- a/cdn/src/model/AddCdnDomainRequest.cc +++ b/cdn/src/model/AddCdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string AddCdnDomainRequest::getTopLevelDomain()const void AddCdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) { topLevelDomain_ = topLevelDomain; - setParameter("TopLevelDomain", topLevelDomain); + setCoreParameter("TopLevelDomain", topLevelDomain); } std::string AddCdnDomainRequest::getSources()const @@ -44,7 +44,7 @@ std::string AddCdnDomainRequest::getSources()const void AddCdnDomainRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string AddCdnDomainRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddCdnDomainRequest::getOwnerAccount()const void AddCdnDomainRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddCdnDomainRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string AddCdnDomainRequest::getDomainName()const void AddCdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long AddCdnDomainRequest::getOwnerId()const @@ -77,7 +77,7 @@ long AddCdnDomainRequest::getOwnerId()const void AddCdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddCdnDomainRequest::getResourceGroupId()const @@ -88,7 +88,7 @@ std::string AddCdnDomainRequest::getResourceGroupId()const void AddCdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } int AddCdnDomainRequest::getSourcePort()const @@ -99,7 +99,7 @@ int AddCdnDomainRequest::getSourcePort()const void AddCdnDomainRequest::setSourcePort(int sourcePort) { sourcePort_ = sourcePort; - setParameter("SourcePort", std::to_string(sourcePort)); + setCoreParameter("SourcePort", std::to_string(sourcePort)); } std::string AddCdnDomainRequest::getPriorities()const @@ -110,7 +110,7 @@ std::string AddCdnDomainRequest::getPriorities()const void AddCdnDomainRequest::setPriorities(const std::string& priorities) { priorities_ = priorities; - setParameter("Priorities", priorities); + setCoreParameter("Priorities", priorities); } std::string AddCdnDomainRequest::getSecurityToken()const @@ -121,7 +121,7 @@ std::string AddCdnDomainRequest::getSecurityToken()const void AddCdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddCdnDomainRequest::getCdnType()const @@ -132,7 +132,7 @@ std::string AddCdnDomainRequest::getCdnType()const void AddCdnDomainRequest::setCdnType(const std::string& cdnType) { cdnType_ = cdnType; - setParameter("CdnType", cdnType); + setCoreParameter("CdnType", cdnType); } std::string AddCdnDomainRequest::getScope()const @@ -143,7 +143,7 @@ std::string AddCdnDomainRequest::getScope()const void AddCdnDomainRequest::setScope(const std::string& scope) { scope_ = scope; - setParameter("Scope", scope); + setCoreParameter("Scope", scope); } std::string AddCdnDomainRequest::getSourceType()const @@ -154,7 +154,7 @@ std::string AddCdnDomainRequest::getSourceType()const void AddCdnDomainRequest::setSourceType(const std::string& sourceType) { sourceType_ = sourceType; - setParameter("SourceType", sourceType); + setCoreParameter("SourceType", sourceType); } std::string AddCdnDomainRequest::getCheckUrl()const @@ -165,7 +165,7 @@ std::string AddCdnDomainRequest::getCheckUrl()const void AddCdnDomainRequest::setCheckUrl(const std::string& checkUrl) { checkUrl_ = checkUrl; - setParameter("CheckUrl", checkUrl); + setCoreParameter("CheckUrl", checkUrl); } std::string AddCdnDomainRequest::getRegion()const @@ -176,6 +176,6 @@ std::string AddCdnDomainRequest::getRegion()const void AddCdnDomainRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } diff --git a/cdn/src/model/AddCdnDomainResult.cc b/cdn/src/model/AddCdnDomainResult.cc index 8c0483717..3d05d0d58 100644 --- a/cdn/src/model/AddCdnDomainResult.cc +++ b/cdn/src/model/AddCdnDomainResult.cc @@ -35,10 +35,13 @@ AddCdnDomainResult::~AddCdnDomainResult() void AddCdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/AddFCTriggerRequest.cc b/cdn/src/model/AddFCTriggerRequest.cc index 5acde35ba..7765edeb7 100644 --- a/cdn/src/model/AddFCTriggerRequest.cc +++ b/cdn/src/model/AddFCTriggerRequest.cc @@ -33,7 +33,7 @@ std::string AddFCTriggerRequest::getNotes()const void AddFCTriggerRequest::setNotes(const std::string& notes) { notes_ = notes; - setParameter("Notes", notes); + setCoreParameter("Notes", notes); } long AddFCTriggerRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long AddFCTriggerRequest::getCallerParentId()const void AddFCTriggerRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string AddFCTriggerRequest::getEventMetaVersion()const @@ -55,7 +55,7 @@ std::string AddFCTriggerRequest::getEventMetaVersion()const void AddFCTriggerRequest::setEventMetaVersion(const std::string& eventMetaVersion) { eventMetaVersion_ = eventMetaVersion; - setParameter("EventMetaVersion", eventMetaVersion); + setCoreParameter("EventMetaVersion", eventMetaVersion); } bool AddFCTriggerRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool AddFCTriggerRequest::getProxy_original_security_transport()const void AddFCTriggerRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string AddFCTriggerRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string AddFCTriggerRequest::getProxy_original_source_ip()const void AddFCTriggerRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string AddFCTriggerRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string AddFCTriggerRequest::getOwnerIdLoginEmail()const void AddFCTriggerRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string AddFCTriggerRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string AddFCTriggerRequest::getCallerType()const void AddFCTriggerRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string AddFCTriggerRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string AddFCTriggerRequest::getAccessKeyId()const void AddFCTriggerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AddFCTriggerRequest::getSecurityToken()const @@ -121,7 +121,7 @@ std::string AddFCTriggerRequest::getSecurityToken()const void AddFCTriggerRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddFCTriggerRequest::getRequestContent()const @@ -132,7 +132,7 @@ std::string AddFCTriggerRequest::getRequestContent()const void AddFCTriggerRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string AddFCTriggerRequest::getCallerBidEmail()const @@ -143,7 +143,7 @@ std::string AddFCTriggerRequest::getCallerBidEmail()const void AddFCTriggerRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string AddFCTriggerRequest::getCallerUidEmail()const @@ -154,7 +154,7 @@ std::string AddFCTriggerRequest::getCallerUidEmail()const void AddFCTriggerRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long AddFCTriggerRequest::getCallerUid()const @@ -165,7 +165,7 @@ long AddFCTriggerRequest::getCallerUid()const void AddFCTriggerRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string AddFCTriggerRequest::getTriggerARN()const @@ -176,7 +176,7 @@ std::string AddFCTriggerRequest::getTriggerARN()const void AddFCTriggerRequest::setTriggerARN(const std::string& triggerARN) { triggerARN_ = triggerARN; - setParameter("TriggerARN", triggerARN); + setCoreParameter("TriggerARN", triggerARN); } std::string AddFCTriggerRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string AddFCTriggerRequest::getApp_ip()const void AddFCTriggerRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string AddFCTriggerRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string AddFCTriggerRequest::getPopProduct()const void AddFCTriggerRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string AddFCTriggerRequest::getProduct()const @@ -209,7 +209,7 @@ std::string AddFCTriggerRequest::getProduct()const void AddFCTriggerRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string AddFCTriggerRequest::getSourceARN()const @@ -220,7 +220,7 @@ std::string AddFCTriggerRequest::getSourceARN()const void AddFCTriggerRequest::setSourceARN(const std::string& sourceARN) { sourceARN_ = sourceARN; - setParameter("SourceARN", sourceARN); + setCoreParameter("SourceARN", sourceARN); } std::string AddFCTriggerRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string AddFCTriggerRequest::getCallerBid()const void AddFCTriggerRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long AddFCTriggerRequest::getOwnerId()const @@ -242,7 +242,7 @@ long AddFCTriggerRequest::getOwnerId()const void AddFCTriggerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddFCTriggerRequest::getVersion()const @@ -253,7 +253,7 @@ std::string AddFCTriggerRequest::getVersion()const void AddFCTriggerRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool AddFCTriggerRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool AddFCTriggerRequest::getProxy_trust_transport_info()const void AddFCTriggerRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool AddFCTriggerRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool AddFCTriggerRequest::getAk_mfa_present()const void AddFCTriggerRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool AddFCTriggerRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool AddFCTriggerRequest::getSecurity_transport()const void AddFCTriggerRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string AddFCTriggerRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string AddFCTriggerRequest::getRequestId()const void AddFCTriggerRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string AddFCTriggerRequest::getRoleARN()const @@ -308,7 +308,7 @@ std::string AddFCTriggerRequest::getRoleARN()const void AddFCTriggerRequest::setRoleARN(const std::string& roleARN) { roleARN_ = roleARN; - setParameter("RoleARN", roleARN); + setCoreParameter("RoleARN", roleARN); } std::string AddFCTriggerRequest::getEventMetaName()const @@ -319,7 +319,7 @@ std::string AddFCTriggerRequest::getEventMetaName()const void AddFCTriggerRequest::setEventMetaName(const std::string& eventMetaName) { eventMetaName_ = eventMetaName; - setParameter("EventMetaName", eventMetaName); + setCoreParameter("EventMetaName", eventMetaName); } std::string AddFCTriggerRequest::getFunctionARN()const @@ -330,6 +330,6 @@ std::string AddFCTriggerRequest::getFunctionARN()const void AddFCTriggerRequest::setFunctionARN(const std::string& functionARN) { functionARN_ = functionARN; - setParameter("FunctionARN", functionARN); + setCoreParameter("FunctionARN", functionARN); } diff --git a/cdn/src/model/AddFCTriggerResult.cc b/cdn/src/model/AddFCTriggerResult.cc index c611de758..f243d284b 100644 --- a/cdn/src/model/AddFCTriggerResult.cc +++ b/cdn/src/model/AddFCTriggerResult.cc @@ -35,10 +35,13 @@ AddFCTriggerResult::~AddFCTriggerResult() void AddFCTriggerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/AddLiveAppRecordConfigRequest.cc b/cdn/src/model/AddLiveAppRecordConfigRequest.cc index 5976bb1f4..fe9796f9a 100644 --- a/cdn/src/model/AddLiveAppRecordConfigRequest.cc +++ b/cdn/src/model/AddLiveAppRecordConfigRequest.cc @@ -33,7 +33,7 @@ std::string AddLiveAppRecordConfigRequest::getOssBucket()const void AddLiveAppRecordConfigRequest::setOssBucket(const std::string& ossBucket) { ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); + setCoreParameter("OssBucket", ossBucket); } std::string AddLiveAppRecordConfigRequest::getAppName()const @@ -44,7 +44,7 @@ std::string AddLiveAppRecordConfigRequest::getAppName()const void AddLiveAppRecordConfigRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string AddLiveAppRecordConfigRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string AddLiveAppRecordConfigRequest::getSecurityToken()const void AddLiveAppRecordConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddLiveAppRecordConfigRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string AddLiveAppRecordConfigRequest::getDomainName()const void AddLiveAppRecordConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string AddLiveAppRecordConfigRequest::getOssEndpoint()const @@ -77,7 +77,7 @@ std::string AddLiveAppRecordConfigRequest::getOssEndpoint()const void AddLiveAppRecordConfigRequest::setOssEndpoint(const std::string& ossEndpoint) { ossEndpoint_ = ossEndpoint; - setParameter("OssEndpoint", ossEndpoint); + setCoreParameter("OssEndpoint", ossEndpoint); } std::string AddLiveAppRecordConfigRequest::getOssObjectPrefix()const @@ -88,7 +88,7 @@ std::string AddLiveAppRecordConfigRequest::getOssObjectPrefix()const void AddLiveAppRecordConfigRequest::setOssObjectPrefix(const std::string& ossObjectPrefix) { ossObjectPrefix_ = ossObjectPrefix; - setParameter("OssObjectPrefix", ossObjectPrefix); + setCoreParameter("OssObjectPrefix", ossObjectPrefix); } long AddLiveAppRecordConfigRequest::getOwnerId()const @@ -99,6 +99,6 @@ long AddLiveAppRecordConfigRequest::getOwnerId()const void AddLiveAppRecordConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/AddLiveAppRecordConfigResult.cc b/cdn/src/model/AddLiveAppRecordConfigResult.cc index 27c8c4987..6b279abc0 100644 --- a/cdn/src/model/AddLiveAppRecordConfigResult.cc +++ b/cdn/src/model/AddLiveAppRecordConfigResult.cc @@ -35,10 +35,13 @@ AddLiveAppRecordConfigResult::~AddLiveAppRecordConfigResult() void AddLiveAppRecordConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/AddLiveAppSnapshotConfigRequest.cc b/cdn/src/model/AddLiveAppSnapshotConfigRequest.cc index 9547b7762..59d016157 100644 --- a/cdn/src/model/AddLiveAppSnapshotConfigRequest.cc +++ b/cdn/src/model/AddLiveAppSnapshotConfigRequest.cc @@ -33,7 +33,7 @@ int AddLiveAppSnapshotConfigRequest::getTimeInterval()const void AddLiveAppSnapshotConfigRequest::setTimeInterval(int timeInterval) { timeInterval_ = timeInterval; - setParameter("TimeInterval", std::to_string(timeInterval)); + setCoreParameter("TimeInterval", std::to_string(timeInterval)); } std::string AddLiveAppSnapshotConfigRequest::getOssBucket()const @@ -44,7 +44,7 @@ std::string AddLiveAppSnapshotConfigRequest::getOssBucket()const void AddLiveAppSnapshotConfigRequest::setOssBucket(const std::string& ossBucket) { ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); + setCoreParameter("OssBucket", ossBucket); } std::string AddLiveAppSnapshotConfigRequest::getAppName()const @@ -55,7 +55,7 @@ std::string AddLiveAppSnapshotConfigRequest::getAppName()const void AddLiveAppSnapshotConfigRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string AddLiveAppSnapshotConfigRequest::getSecurityToken()const @@ -66,7 +66,7 @@ std::string AddLiveAppSnapshotConfigRequest::getSecurityToken()const void AddLiveAppSnapshotConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddLiveAppSnapshotConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string AddLiveAppSnapshotConfigRequest::getDomainName()const void AddLiveAppSnapshotConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string AddLiveAppSnapshotConfigRequest::getOssEndpoint()const @@ -88,7 +88,7 @@ std::string AddLiveAppSnapshotConfigRequest::getOssEndpoint()const void AddLiveAppSnapshotConfigRequest::setOssEndpoint(const std::string& ossEndpoint) { ossEndpoint_ = ossEndpoint; - setParameter("OssEndpoint", ossEndpoint); + setCoreParameter("OssEndpoint", ossEndpoint); } std::string AddLiveAppSnapshotConfigRequest::getSequenceOssObject()const @@ -99,7 +99,7 @@ std::string AddLiveAppSnapshotConfigRequest::getSequenceOssObject()const void AddLiveAppSnapshotConfigRequest::setSequenceOssObject(const std::string& sequenceOssObject) { sequenceOssObject_ = sequenceOssObject; - setParameter("SequenceOssObject", sequenceOssObject); + setCoreParameter("SequenceOssObject", sequenceOssObject); } std::string AddLiveAppSnapshotConfigRequest::getOverwriteOssObject()const @@ -110,7 +110,7 @@ std::string AddLiveAppSnapshotConfigRequest::getOverwriteOssObject()const void AddLiveAppSnapshotConfigRequest::setOverwriteOssObject(const std::string& overwriteOssObject) { overwriteOssObject_ = overwriteOssObject; - setParameter("OverwriteOssObject", overwriteOssObject); + setCoreParameter("OverwriteOssObject", overwriteOssObject); } long AddLiveAppSnapshotConfigRequest::getOwnerId()const @@ -121,6 +121,6 @@ long AddLiveAppSnapshotConfigRequest::getOwnerId()const void AddLiveAppSnapshotConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/AddLiveAppSnapshotConfigResult.cc b/cdn/src/model/AddLiveAppSnapshotConfigResult.cc index f70d20946..b3717e9f8 100644 --- a/cdn/src/model/AddLiveAppSnapshotConfigResult.cc +++ b/cdn/src/model/AddLiveAppSnapshotConfigResult.cc @@ -35,10 +35,13 @@ AddLiveAppSnapshotConfigResult::~AddLiveAppSnapshotConfigResult() void AddLiveAppSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/AddLiveDomainMappingRequest.cc b/cdn/src/model/AddLiveDomainMappingRequest.cc index a0dfab59b..fbe76afdc 100644 --- a/cdn/src/model/AddLiveDomainMappingRequest.cc +++ b/cdn/src/model/AddLiveDomainMappingRequest.cc @@ -33,7 +33,7 @@ std::string AddLiveDomainMappingRequest::getPullDomain()const void AddLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain) { pullDomain_ = pullDomain; - setParameter("PullDomain", pullDomain); + setCoreParameter("PullDomain", pullDomain); } std::string AddLiveDomainMappingRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string AddLiveDomainMappingRequest::getSecurityToken()const void AddLiveDomainMappingRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddLiveDomainMappingRequest::getPushDomain()const @@ -55,7 +55,7 @@ std::string AddLiveDomainMappingRequest::getPushDomain()const void AddLiveDomainMappingRequest::setPushDomain(const std::string& pushDomain) { pushDomain_ = pushDomain; - setParameter("PushDomain", pushDomain); + setCoreParameter("PushDomain", pushDomain); } long AddLiveDomainMappingRequest::getOwnerId()const @@ -66,6 +66,6 @@ long AddLiveDomainMappingRequest::getOwnerId()const void AddLiveDomainMappingRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/AddLiveDomainMappingResult.cc b/cdn/src/model/AddLiveDomainMappingResult.cc index 4a0656469..836c70f31 100644 --- a/cdn/src/model/AddLiveDomainMappingResult.cc +++ b/cdn/src/model/AddLiveDomainMappingResult.cc @@ -35,10 +35,13 @@ AddLiveDomainMappingResult::~AddLiveDomainMappingResult() void AddLiveDomainMappingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/AddLiveStreamTranscodeRequest.cc b/cdn/src/model/AddLiveStreamTranscodeRequest.cc index f9913ddce..fd96362e1 100644 --- a/cdn/src/model/AddLiveStreamTranscodeRequest.cc +++ b/cdn/src/model/AddLiveStreamTranscodeRequest.cc @@ -33,7 +33,7 @@ std::string AddLiveStreamTranscodeRequest::get_Template()const void AddLiveStreamTranscodeRequest::set_Template(const std::string& _template) { _template_ = _template; - setParameter("_Template", _template); + setCoreParameter("_Template", _template); } std::string AddLiveStreamTranscodeRequest::getApp()const @@ -44,7 +44,7 @@ std::string AddLiveStreamTranscodeRequest::getApp()const void AddLiveStreamTranscodeRequest::setApp(const std::string& app) { app_ = app; - setParameter("App", app); + setCoreParameter("App", app); } std::string AddLiveStreamTranscodeRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string AddLiveStreamTranscodeRequest::getSecurityToken()const void AddLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddLiveStreamTranscodeRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddLiveStreamTranscodeRequest::getOwnerAccount()const void AddLiveStreamTranscodeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddLiveStreamTranscodeRequest::getDomain()const @@ -77,7 +77,7 @@ std::string AddLiveStreamTranscodeRequest::getDomain()const void AddLiveStreamTranscodeRequest::setDomain(const std::string& domain) { domain_ = domain; - setParameter("Domain", domain); + setCoreParameter("Domain", domain); } std::string AddLiveStreamTranscodeRequest::getRecord()const @@ -88,7 +88,7 @@ std::string AddLiveStreamTranscodeRequest::getRecord()const void AddLiveStreamTranscodeRequest::setRecord(const std::string& record) { record_ = record; - setParameter("Record", record); + setCoreParameter("Record", record); } long AddLiveStreamTranscodeRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddLiveStreamTranscodeRequest::getOwnerId()const void AddLiveStreamTranscodeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddLiveStreamTranscodeRequest::getSnapshot()const @@ -110,6 +110,6 @@ std::string AddLiveStreamTranscodeRequest::getSnapshot()const void AddLiveStreamTranscodeRequest::setSnapshot(const std::string& snapshot) { snapshot_ = snapshot; - setParameter("Snapshot", snapshot); + setCoreParameter("Snapshot", snapshot); } diff --git a/cdn/src/model/AddLiveStreamTranscodeResult.cc b/cdn/src/model/AddLiveStreamTranscodeResult.cc index 7f9e32424..dbf6d53f1 100644 --- a/cdn/src/model/AddLiveStreamTranscodeResult.cc +++ b/cdn/src/model/AddLiveStreamTranscodeResult.cc @@ -35,10 +35,13 @@ AddLiveStreamTranscodeResult::~AddLiveStreamTranscodeResult() void AddLiveStreamTranscodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc b/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc index e2b35f2c4..554cf0ef3 100644 --- a/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc +++ b/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc @@ -33,7 +33,7 @@ std::string BatchDeleteCdnDomainConfigRequest::getFunctionNames()const void BatchDeleteCdnDomainConfigRequest::setFunctionNames(const std::string& functionNames) { functionNames_ = functionNames; - setParameter("FunctionNames", functionNames); + setCoreParameter("FunctionNames", functionNames); } std::string BatchDeleteCdnDomainConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string BatchDeleteCdnDomainConfigRequest::getSecurityToken()const void BatchDeleteCdnDomainConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string BatchDeleteCdnDomainConfigRequest::getDomainNames()const @@ -55,7 +55,7 @@ std::string BatchDeleteCdnDomainConfigRequest::getDomainNames()const void BatchDeleteCdnDomainConfigRequest::setDomainNames(const std::string& domainNames) { domainNames_ = domainNames; - setParameter("DomainNames", domainNames); + setCoreParameter("DomainNames", domainNames); } std::string BatchDeleteCdnDomainConfigRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string BatchDeleteCdnDomainConfigRequest::getOwnerAccount()const void BatchDeleteCdnDomainConfigRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long BatchDeleteCdnDomainConfigRequest::getOwnerId()const @@ -77,6 +77,6 @@ long BatchDeleteCdnDomainConfigRequest::getOwnerId()const void BatchDeleteCdnDomainConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/BatchDeleteCdnDomainConfigResult.cc b/cdn/src/model/BatchDeleteCdnDomainConfigResult.cc index 28108ac78..bd2c2c2f2 100644 --- a/cdn/src/model/BatchDeleteCdnDomainConfigResult.cc +++ b/cdn/src/model/BatchDeleteCdnDomainConfigResult.cc @@ -35,10 +35,13 @@ BatchDeleteCdnDomainConfigResult::~BatchDeleteCdnDomainConfigResult() void BatchDeleteCdnDomainConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/BatchSetCdnDomainConfigRequest.cc b/cdn/src/model/BatchSetCdnDomainConfigRequest.cc index 635d16446..bf96830c8 100644 --- a/cdn/src/model/BatchSetCdnDomainConfigRequest.cc +++ b/cdn/src/model/BatchSetCdnDomainConfigRequest.cc @@ -33,7 +33,7 @@ std::string BatchSetCdnDomainConfigRequest::getFunctions()const void BatchSetCdnDomainConfigRequest::setFunctions(const std::string& functions) { functions_ = functions; - setParameter("Functions", functions); + setCoreParameter("Functions", functions); } std::string BatchSetCdnDomainConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string BatchSetCdnDomainConfigRequest::getSecurityToken()const void BatchSetCdnDomainConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string BatchSetCdnDomainConfigRequest::getDomainNames()const @@ -55,7 +55,7 @@ std::string BatchSetCdnDomainConfigRequest::getDomainNames()const void BatchSetCdnDomainConfigRequest::setDomainNames(const std::string& domainNames) { domainNames_ = domainNames; - setParameter("DomainNames", domainNames); + setCoreParameter("DomainNames", domainNames); } std::string BatchSetCdnDomainConfigRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string BatchSetCdnDomainConfigRequest::getOwnerAccount()const void BatchSetCdnDomainConfigRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long BatchSetCdnDomainConfigRequest::getOwnerId()const @@ -77,6 +77,6 @@ long BatchSetCdnDomainConfigRequest::getOwnerId()const void BatchSetCdnDomainConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/BatchSetCdnDomainConfigResult.cc b/cdn/src/model/BatchSetCdnDomainConfigResult.cc index 98cd90d9a..49ff8b480 100644 --- a/cdn/src/model/BatchSetCdnDomainConfigResult.cc +++ b/cdn/src/model/BatchSetCdnDomainConfigResult.cc @@ -35,10 +35,13 @@ BatchSetCdnDomainConfigResult::~BatchSetCdnDomainConfigResult() void BatchSetCdnDomainConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/CreateLiveStreamRecordIndexFilesRequest.cc b/cdn/src/model/CreateLiveStreamRecordIndexFilesRequest.cc index 188b175a8..6d78510c5 100644 --- a/cdn/src/model/CreateLiveStreamRecordIndexFilesRequest.cc +++ b/cdn/src/model/CreateLiveStreamRecordIndexFilesRequest.cc @@ -33,7 +33,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getOssBucket()const void CreateLiveStreamRecordIndexFilesRequest::setOssBucket(const std::string& ossBucket) { ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); + setCoreParameter("OssBucket", ossBucket); } std::string CreateLiveStreamRecordIndexFilesRequest::getAppName()const @@ -44,7 +44,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getAppName()const void CreateLiveStreamRecordIndexFilesRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string CreateLiveStreamRecordIndexFilesRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getSecurityToken()const void CreateLiveStreamRecordIndexFilesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string CreateLiveStreamRecordIndexFilesRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getDomainName()const void CreateLiveStreamRecordIndexFilesRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string CreateLiveStreamRecordIndexFilesRequest::getOssEndpoint()const @@ -77,7 +77,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getOssEndpoint()const void CreateLiveStreamRecordIndexFilesRequest::setOssEndpoint(const std::string& ossEndpoint) { ossEndpoint_ = ossEndpoint; - setParameter("OssEndpoint", ossEndpoint); + setCoreParameter("OssEndpoint", ossEndpoint); } std::string CreateLiveStreamRecordIndexFilesRequest::getEndTime()const @@ -88,7 +88,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getEndTime()const void CreateLiveStreamRecordIndexFilesRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string CreateLiveStreamRecordIndexFilesRequest::getStartTime()const @@ -99,7 +99,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getStartTime()const void CreateLiveStreamRecordIndexFilesRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long CreateLiveStreamRecordIndexFilesRequest::getOwnerId()const @@ -110,7 +110,7 @@ long CreateLiveStreamRecordIndexFilesRequest::getOwnerId()const void CreateLiveStreamRecordIndexFilesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateLiveStreamRecordIndexFilesRequest::getStreamName()const @@ -121,7 +121,7 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getStreamName()const void CreateLiveStreamRecordIndexFilesRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } std::string CreateLiveStreamRecordIndexFilesRequest::getOssObject()const @@ -132,6 +132,6 @@ std::string CreateLiveStreamRecordIndexFilesRequest::getOssObject()const void CreateLiveStreamRecordIndexFilesRequest::setOssObject(const std::string& ossObject) { ossObject_ = ossObject; - setParameter("OssObject", ossObject); + setCoreParameter("OssObject", ossObject); } diff --git a/cdn/src/model/CreateLiveStreamRecordIndexFilesResult.cc b/cdn/src/model/CreateLiveStreamRecordIndexFilesResult.cc index c8b9e668c..defe6f328 100644 --- a/cdn/src/model/CreateLiveStreamRecordIndexFilesResult.cc +++ b/cdn/src/model/CreateLiveStreamRecordIndexFilesResult.cc @@ -35,10 +35,13 @@ CreateLiveStreamRecordIndexFilesResult::~CreateLiveStreamRecordIndexFilesResult( void CreateLiveStreamRecordIndexFilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto recordInfoNode = value["RecordInfo"]; if(!recordInfoNode["RecordId"].isNull()) diff --git a/cdn/src/model/DeleteCacheExpiredConfigRequest.cc b/cdn/src/model/DeleteCacheExpiredConfigRequest.cc index aea82613b..b5b01559b 100644 --- a/cdn/src/model/DeleteCacheExpiredConfigRequest.cc +++ b/cdn/src/model/DeleteCacheExpiredConfigRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCacheExpiredConfigRequest::getCacheType()const void DeleteCacheExpiredConfigRequest::setCacheType(const std::string& cacheType) { cacheType_ = cacheType; - setParameter("CacheType", cacheType); + setCoreParameter("CacheType", cacheType); } std::string DeleteCacheExpiredConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DeleteCacheExpiredConfigRequest::getSecurityToken()const void DeleteCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteCacheExpiredConfigRequest::getConfigID()const @@ -55,7 +55,7 @@ std::string DeleteCacheExpiredConfigRequest::getConfigID()const void DeleteCacheExpiredConfigRequest::setConfigID(const std::string& configID) { configID_ = configID; - setParameter("ConfigID", configID); + setCoreParameter("ConfigID", configID); } std::string DeleteCacheExpiredConfigRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DeleteCacheExpiredConfigRequest::getDomainName()const void DeleteCacheExpiredConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteCacheExpiredConfigRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DeleteCacheExpiredConfigRequest::getOwnerId()const void DeleteCacheExpiredConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteCacheExpiredConfigResult.cc b/cdn/src/model/DeleteCacheExpiredConfigResult.cc index 50d6a24ff..a39dbe305 100644 --- a/cdn/src/model/DeleteCacheExpiredConfigResult.cc +++ b/cdn/src/model/DeleteCacheExpiredConfigResult.cc @@ -35,10 +35,13 @@ DeleteCacheExpiredConfigResult::~DeleteCacheExpiredConfigResult() void DeleteCacheExpiredConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteCdnDomainRequest.cc b/cdn/src/model/DeleteCdnDomainRequest.cc index 86de55a3b..c4f3760f6 100644 --- a/cdn/src/model/DeleteCdnDomainRequest.cc +++ b/cdn/src/model/DeleteCdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCdnDomainRequest::getResourceGroupId()const void DeleteCdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DeleteCdnDomainRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DeleteCdnDomainRequest::getSecurityToken()const void DeleteCdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteCdnDomainRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DeleteCdnDomainRequest::getDomainName()const void DeleteCdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteCdnDomainRequest::getOwnerId()const @@ -66,6 +66,6 @@ long DeleteCdnDomainRequest::getOwnerId()const void DeleteCdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteCdnDomainResult.cc b/cdn/src/model/DeleteCdnDomainResult.cc index a57e27c42..217b8f076 100644 --- a/cdn/src/model/DeleteCdnDomainResult.cc +++ b/cdn/src/model/DeleteCdnDomainResult.cc @@ -35,10 +35,13 @@ DeleteCdnDomainResult::~DeleteCdnDomainResult() void DeleteCdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteFCTriggerRequest.cc b/cdn/src/model/DeleteFCTriggerRequest.cc index f1b680b12..551fd2699 100644 --- a/cdn/src/model/DeleteFCTriggerRequest.cc +++ b/cdn/src/model/DeleteFCTriggerRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFCTriggerRequest::getTriggerARN()const void DeleteFCTriggerRequest::setTriggerARN(const std::string& triggerARN) { triggerARN_ = triggerARN; - setParameter("TriggerARN", triggerARN); + setCoreParameter("TriggerARN", triggerARN); } std::string DeleteFCTriggerRequest::getApp_ip()const @@ -44,7 +44,7 @@ std::string DeleteFCTriggerRequest::getApp_ip()const void DeleteFCTriggerRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DeleteFCTriggerRequest::getPopProduct()const @@ -55,7 +55,7 @@ std::string DeleteFCTriggerRequest::getPopProduct()const void DeleteFCTriggerRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DeleteFCTriggerRequest::getProduct()const @@ -66,7 +66,7 @@ std::string DeleteFCTriggerRequest::getProduct()const void DeleteFCTriggerRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DeleteFCTriggerRequest::getCallerParentId()const @@ -77,7 +77,7 @@ long DeleteFCTriggerRequest::getCallerParentId()const void DeleteFCTriggerRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteFCTriggerRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DeleteFCTriggerRequest::getProxy_original_security_transport()const void DeleteFCTriggerRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteFCTriggerRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DeleteFCTriggerRequest::getCallerBid()const void DeleteFCTriggerRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DeleteFCTriggerRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DeleteFCTriggerRequest::getOwnerId()const void DeleteFCTriggerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteFCTriggerRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DeleteFCTriggerRequest::getProxy_original_source_ip()const void DeleteFCTriggerRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DeleteFCTriggerRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DeleteFCTriggerRequest::getVersion()const void DeleteFCTriggerRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DeleteFCTriggerRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DeleteFCTriggerRequest::getOwnerIdLoginEmail()const void DeleteFCTriggerRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteFCTriggerRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DeleteFCTriggerRequest::getCallerType()const void DeleteFCTriggerRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DeleteFCTriggerRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DeleteFCTriggerRequest::getProxy_trust_transport_info()const void DeleteFCTriggerRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DeleteFCTriggerRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DeleteFCTriggerRequest::getAk_mfa_present()const void DeleteFCTriggerRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DeleteFCTriggerRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DeleteFCTriggerRequest::getAccessKeyId()const void DeleteFCTriggerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DeleteFCTriggerRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DeleteFCTriggerRequest::getSecurity_transport()const void DeleteFCTriggerRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DeleteFCTriggerRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DeleteFCTriggerRequest::getSecurityToken()const void DeleteFCTriggerRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteFCTriggerRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DeleteFCTriggerRequest::getRequestId()const void DeleteFCTriggerRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DeleteFCTriggerRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DeleteFCTriggerRequest::getRequestContent()const void DeleteFCTriggerRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DeleteFCTriggerRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DeleteFCTriggerRequest::getCallerBidEmail()const void DeleteFCTriggerRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteFCTriggerRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DeleteFCTriggerRequest::getCallerUidEmail()const void DeleteFCTriggerRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DeleteFCTriggerRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DeleteFCTriggerRequest::getCallerUid()const void DeleteFCTriggerRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/DeleteFCTriggerResult.cc b/cdn/src/model/DeleteFCTriggerResult.cc index 352a0b1d9..e9ddac25b 100644 --- a/cdn/src/model/DeleteFCTriggerResult.cc +++ b/cdn/src/model/DeleteFCTriggerResult.cc @@ -35,10 +35,13 @@ DeleteFCTriggerResult::~DeleteFCTriggerResult() void DeleteFCTriggerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteHttpHeaderConfigRequest.cc b/cdn/src/model/DeleteHttpHeaderConfigRequest.cc index b14b7727d..dae73b116 100644 --- a/cdn/src/model/DeleteHttpHeaderConfigRequest.cc +++ b/cdn/src/model/DeleteHttpHeaderConfigRequest.cc @@ -33,7 +33,7 @@ std::string DeleteHttpHeaderConfigRequest::getSecurityToken()const void DeleteHttpHeaderConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteHttpHeaderConfigRequest::getConfigID()const @@ -44,7 +44,7 @@ std::string DeleteHttpHeaderConfigRequest::getConfigID()const void DeleteHttpHeaderConfigRequest::setConfigID(const std::string& configID) { configID_ = configID; - setParameter("ConfigID", configID); + setCoreParameter("ConfigID", configID); } std::string DeleteHttpHeaderConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DeleteHttpHeaderConfigRequest::getDomainName()const void DeleteHttpHeaderConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteHttpHeaderConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long DeleteHttpHeaderConfigRequest::getOwnerId()const void DeleteHttpHeaderConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteHttpHeaderConfigResult.cc b/cdn/src/model/DeleteHttpHeaderConfigResult.cc index 3da27e155..4fb5a0d83 100644 --- a/cdn/src/model/DeleteHttpHeaderConfigResult.cc +++ b/cdn/src/model/DeleteHttpHeaderConfigResult.cc @@ -35,10 +35,13 @@ DeleteHttpHeaderConfigResult::~DeleteHttpHeaderConfigResult() void DeleteHttpHeaderConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteLiveAppRecordConfigRequest.cc b/cdn/src/model/DeleteLiveAppRecordConfigRequest.cc index 378667cc0..62f23b684 100644 --- a/cdn/src/model/DeleteLiveAppRecordConfigRequest.cc +++ b/cdn/src/model/DeleteLiveAppRecordConfigRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLiveAppRecordConfigRequest::getAppName()const void DeleteLiveAppRecordConfigRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DeleteLiveAppRecordConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DeleteLiveAppRecordConfigRequest::getSecurityToken()const void DeleteLiveAppRecordConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteLiveAppRecordConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DeleteLiveAppRecordConfigRequest::getDomainName()const void DeleteLiveAppRecordConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteLiveAppRecordConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long DeleteLiveAppRecordConfigRequest::getOwnerId()const void DeleteLiveAppRecordConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteLiveAppRecordConfigResult.cc b/cdn/src/model/DeleteLiveAppRecordConfigResult.cc index fee9a03f0..f8e9467da 100644 --- a/cdn/src/model/DeleteLiveAppRecordConfigResult.cc +++ b/cdn/src/model/DeleteLiveAppRecordConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveAppRecordConfigResult::~DeleteLiveAppRecordConfigResult() void DeleteLiveAppRecordConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteLiveAppSnapshotConfigRequest.cc b/cdn/src/model/DeleteLiveAppSnapshotConfigRequest.cc index 34d0ea6e6..a0e9d4dbb 100644 --- a/cdn/src/model/DeleteLiveAppSnapshotConfigRequest.cc +++ b/cdn/src/model/DeleteLiveAppSnapshotConfigRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLiveAppSnapshotConfigRequest::getAppName()const void DeleteLiveAppSnapshotConfigRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DeleteLiveAppSnapshotConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DeleteLiveAppSnapshotConfigRequest::getSecurityToken()const void DeleteLiveAppSnapshotConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteLiveAppSnapshotConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DeleteLiveAppSnapshotConfigRequest::getDomainName()const void DeleteLiveAppSnapshotConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteLiveAppSnapshotConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long DeleteLiveAppSnapshotConfigRequest::getOwnerId()const void DeleteLiveAppSnapshotConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteLiveAppSnapshotConfigResult.cc b/cdn/src/model/DeleteLiveAppSnapshotConfigResult.cc index 34e66530d..9125c7aff 100644 --- a/cdn/src/model/DeleteLiveAppSnapshotConfigResult.cc +++ b/cdn/src/model/DeleteLiveAppSnapshotConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveAppSnapshotConfigResult::~DeleteLiveAppSnapshotConfigResult() void DeleteLiveAppSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteLiveDomainMappingRequest.cc b/cdn/src/model/DeleteLiveDomainMappingRequest.cc index 80d5f33cc..72a405d54 100644 --- a/cdn/src/model/DeleteLiveDomainMappingRequest.cc +++ b/cdn/src/model/DeleteLiveDomainMappingRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLiveDomainMappingRequest::getPullDomain()const void DeleteLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain) { pullDomain_ = pullDomain; - setParameter("PullDomain", pullDomain); + setCoreParameter("PullDomain", pullDomain); } std::string DeleteLiveDomainMappingRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DeleteLiveDomainMappingRequest::getSecurityToken()const void DeleteLiveDomainMappingRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteLiveDomainMappingRequest::getPushDomain()const @@ -55,7 +55,7 @@ std::string DeleteLiveDomainMappingRequest::getPushDomain()const void DeleteLiveDomainMappingRequest::setPushDomain(const std::string& pushDomain) { pushDomain_ = pushDomain; - setParameter("PushDomain", pushDomain); + setCoreParameter("PushDomain", pushDomain); } long DeleteLiveDomainMappingRequest::getOwnerId()const @@ -66,6 +66,6 @@ long DeleteLiveDomainMappingRequest::getOwnerId()const void DeleteLiveDomainMappingRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteLiveDomainMappingResult.cc b/cdn/src/model/DeleteLiveDomainMappingResult.cc index 0312a9c06..81b11e43c 100644 --- a/cdn/src/model/DeleteLiveDomainMappingResult.cc +++ b/cdn/src/model/DeleteLiveDomainMappingResult.cc @@ -35,10 +35,13 @@ DeleteLiveDomainMappingResult::~DeleteLiveDomainMappingResult() void DeleteLiveDomainMappingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteLiveStreamTranscodeRequest.cc b/cdn/src/model/DeleteLiveStreamTranscodeRequest.cc index 0e95f145b..07bdf71cb 100644 --- a/cdn/src/model/DeleteLiveStreamTranscodeRequest.cc +++ b/cdn/src/model/DeleteLiveStreamTranscodeRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLiveStreamTranscodeRequest::get_Template()const void DeleteLiveStreamTranscodeRequest::set_Template(const std::string& _template) { _template_ = _template; - setParameter("_Template", _template); + setCoreParameter("_Template", _template); } std::string DeleteLiveStreamTranscodeRequest::getApp()const @@ -44,7 +44,7 @@ std::string DeleteLiveStreamTranscodeRequest::getApp()const void DeleteLiveStreamTranscodeRequest::setApp(const std::string& app) { app_ = app; - setParameter("App", app); + setCoreParameter("App", app); } std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const void DeleteLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteLiveStreamTranscodeRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteLiveStreamTranscodeRequest::getOwnerAccount()const void DeleteLiveStreamTranscodeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteLiveStreamTranscodeRequest::getDomain()const @@ -77,7 +77,7 @@ std::string DeleteLiveStreamTranscodeRequest::getDomain()const void DeleteLiveStreamTranscodeRequest::setDomain(const std::string& domain) { domain_ = domain; - setParameter("Domain", domain); + setCoreParameter("Domain", domain); } long DeleteLiveStreamTranscodeRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DeleteLiveStreamTranscodeRequest::getOwnerId()const void DeleteLiveStreamTranscodeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteLiveStreamTranscodeResult.cc b/cdn/src/model/DeleteLiveStreamTranscodeResult.cc index c2459a6c0..6edac204c 100644 --- a/cdn/src/model/DeleteLiveStreamTranscodeResult.cc +++ b/cdn/src/model/DeleteLiveStreamTranscodeResult.cc @@ -35,10 +35,13 @@ DeleteLiveStreamTranscodeResult::~DeleteLiveStreamTranscodeResult() void DeleteLiveStreamTranscodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DeleteSpecificConfigRequest.cc b/cdn/src/model/DeleteSpecificConfigRequest.cc index 0108477ea..6b2bd522f 100644 --- a/cdn/src/model/DeleteSpecificConfigRequest.cc +++ b/cdn/src/model/DeleteSpecificConfigRequest.cc @@ -33,7 +33,7 @@ std::string DeleteSpecificConfigRequest::getSecurityToken()const void DeleteSpecificConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteSpecificConfigRequest::getFunctionName()const @@ -44,7 +44,7 @@ std::string DeleteSpecificConfigRequest::getFunctionName()const void DeleteSpecificConfigRequest::setFunctionName(const std::string& functionName) { functionName_ = functionName; - setParameter("FunctionName", functionName); + setCoreParameter("FunctionName", functionName); } std::string DeleteSpecificConfigRequest::getConfigId()const @@ -55,7 +55,7 @@ std::string DeleteSpecificConfigRequest::getConfigId()const void DeleteSpecificConfigRequest::setConfigId(const std::string& configId) { configId_ = configId; - setParameter("ConfigId", configId); + setCoreParameter("ConfigId", configId); } std::string DeleteSpecificConfigRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DeleteSpecificConfigRequest::getDomainName()const void DeleteSpecificConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteSpecificConfigRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DeleteSpecificConfigRequest::getOwnerId()const void DeleteSpecificConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DeleteSpecificConfigResult.cc b/cdn/src/model/DeleteSpecificConfigResult.cc index b749a5726..e226f10ef 100644 --- a/cdn/src/model/DeleteSpecificConfigResult.cc +++ b/cdn/src/model/DeleteSpecificConfigResult.cc @@ -35,10 +35,13 @@ DeleteSpecificConfigResult::~DeleteSpecificConfigResult() void DeleteSpecificConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/DescribeCdnDomainConfigsRequest.cc b/cdn/src/model/DescribeCdnDomainConfigsRequest.cc index 5b2d57c9c..af2f39104 100644 --- a/cdn/src/model/DescribeCdnDomainConfigsRequest.cc +++ b/cdn/src/model/DescribeCdnDomainConfigsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnDomainConfigsRequest::getFunctionNames()const void DescribeCdnDomainConfigsRequest::setFunctionNames(const std::string& functionNames) { functionNames_ = functionNames; - setParameter("FunctionNames", functionNames); + setCoreParameter("FunctionNames", functionNames); } std::string DescribeCdnDomainConfigsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeCdnDomainConfigsRequest::getSecurityToken()const void DescribeCdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeCdnDomainConfigsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeCdnDomainConfigsRequest::getDomainName()const void DescribeCdnDomainConfigsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeCdnDomainConfigsRequest::getOwnerId()const @@ -66,6 +66,6 @@ long DescribeCdnDomainConfigsRequest::getOwnerId()const void DescribeCdnDomainConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeCdnDomainConfigsResult.cc b/cdn/src/model/DescribeCdnDomainConfigsResult.cc index 6b655d5bc..3686012a3 100644 --- a/cdn/src/model/DescribeCdnDomainConfigsResult.cc +++ b/cdn/src/model/DescribeCdnDomainConfigsResult.cc @@ -35,10 +35,13 @@ DescribeCdnDomainConfigsResult::~DescribeCdnDomainConfigsResult() void DescribeCdnDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainConfigs = value["DomainConfigs"]["DomainConfig"]; for (auto value : allDomainConfigs) diff --git a/cdn/src/model/DescribeCdnDomainDetailRequest.cc b/cdn/src/model/DescribeCdnDomainDetailRequest.cc index 9309a25d8..ff2081001 100644 --- a/cdn/src/model/DescribeCdnDomainDetailRequest.cc +++ b/cdn/src/model/DescribeCdnDomainDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnDomainDetailRequest::getSecurityToken()const void DescribeCdnDomainDetailRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeCdnDomainDetailRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeCdnDomainDetailRequest::getDomainName()const void DescribeCdnDomainDetailRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeCdnDomainDetailRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeCdnDomainDetailRequest::getOwnerId()const void DescribeCdnDomainDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeCdnDomainDetailResult.cc b/cdn/src/model/DescribeCdnDomainDetailResult.cc index ba64847ba..10590bd71 100644 --- a/cdn/src/model/DescribeCdnDomainDetailResult.cc +++ b/cdn/src/model/DescribeCdnDomainDetailResult.cc @@ -35,10 +35,13 @@ DescribeCdnDomainDetailResult::~DescribeCdnDomainDetailResult() void DescribeCdnDomainDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto getDomainDetailModelNode = value["GetDomainDetailModel"]; if(!getDomainDetailModelNode["GmtCreated"].isNull()) diff --git a/cdn/src/model/DescribeCdnDomainLogsRequest.cc b/cdn/src/model/DescribeCdnDomainLogsRequest.cc index cf302a029..db8b6d531 100644 --- a/cdn/src/model/DescribeCdnDomainLogsRequest.cc +++ b/cdn/src/model/DescribeCdnDomainLogsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnDomainLogsRequest::getSecurityToken()const void DescribeCdnDomainLogsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeCdnDomainLogsRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeCdnDomainLogsRequest::getDomainName()const void DescribeCdnDomainLogsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeCdnDomainLogsRequest::getPageSize()const @@ -55,7 +55,7 @@ long DescribeCdnDomainLogsRequest::getPageSize()const void DescribeCdnDomainLogsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeCdnDomainLogsRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeCdnDomainLogsRequest::getEndTime()const void DescribeCdnDomainLogsRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeCdnDomainLogsRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeCdnDomainLogsRequest::getStartTime()const void DescribeCdnDomainLogsRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeCdnDomainLogsRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeCdnDomainLogsRequest::getOwnerId()const void DescribeCdnDomainLogsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long DescribeCdnDomainLogsRequest::getPageNumber()const @@ -99,7 +99,7 @@ long DescribeCdnDomainLogsRequest::getPageNumber()const void DescribeCdnDomainLogsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeCdnDomainLogsRequest::getLogDay()const @@ -110,6 +110,6 @@ std::string DescribeCdnDomainLogsRequest::getLogDay()const void DescribeCdnDomainLogsRequest::setLogDay(const std::string& logDay) { logDay_ = logDay; - setParameter("LogDay", logDay); + setCoreParameter("LogDay", logDay); } diff --git a/cdn/src/model/DescribeCdnDomainLogsResult.cc b/cdn/src/model/DescribeCdnDomainLogsResult.cc index 7830f3fbd..50cde1511 100644 --- a/cdn/src/model/DescribeCdnDomainLogsResult.cc +++ b/cdn/src/model/DescribeCdnDomainLogsResult.cc @@ -35,10 +35,13 @@ DescribeCdnDomainLogsResult::~DescribeCdnDomainLogsResult() void DescribeCdnDomainLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto domainLogModelNode = value["DomainLogModel"]; if(!domainLogModelNode["DomainName"].isNull()) diff --git a/cdn/src/model/DescribeCdnMonitorDataRequest.cc b/cdn/src/model/DescribeCdnMonitorDataRequest.cc index ba9906b85..aac017cbf 100644 --- a/cdn/src/model/DescribeCdnMonitorDataRequest.cc +++ b/cdn/src/model/DescribeCdnMonitorDataRequest.cc @@ -33,7 +33,7 @@ long DescribeCdnMonitorDataRequest::getCallerParentId()const void DescribeCdnMonitorDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeCdnMonitorDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeCdnMonitorDataRequest::getProxy_original_security_transport()const void DescribeCdnMonitorDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeCdnMonitorDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeCdnMonitorDataRequest::getStartTime()const void DescribeCdnMonitorDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeCdnMonitorDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeCdnMonitorDataRequest::getProxy_original_source_ip()const void DescribeCdnMonitorDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeCdnMonitorDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeCdnMonitorDataRequest::getOwnerIdLoginEmail()const void DescribeCdnMonitorDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeCdnMonitorDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeCdnMonitorDataRequest::getCallerType()const void DescribeCdnMonitorDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeCdnMonitorDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeCdnMonitorDataRequest::getAccessKeyId()const void DescribeCdnMonitorDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeCdnMonitorDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeCdnMonitorDataRequest::getSecurityToken()const void DescribeCdnMonitorDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeCdnMonitorDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeCdnMonitorDataRequest::getRequestContent()const void DescribeCdnMonitorDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeCdnMonitorDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeCdnMonitorDataRequest::getCallerBidEmail()const void DescribeCdnMonitorDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeCdnMonitorDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeCdnMonitorDataRequest::getCallerUidEmail()const void DescribeCdnMonitorDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeCdnMonitorDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeCdnMonitorDataRequest::getCallerUid()const void DescribeCdnMonitorDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeCdnMonitorDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeCdnMonitorDataRequest::getApp_ip()const void DescribeCdnMonitorDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeCdnMonitorDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeCdnMonitorDataRequest::getPopProduct()const void DescribeCdnMonitorDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeCdnMonitorDataRequest::getOutString()const @@ -187,7 +187,7 @@ std::string DescribeCdnMonitorDataRequest::getOutString()const void DescribeCdnMonitorDataRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeCdnMonitorDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeCdnMonitorDataRequest::getDomainName()const void DescribeCdnMonitorDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeCdnMonitorDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeCdnMonitorDataRequest::getEndTime()const void DescribeCdnMonitorDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeCdnMonitorDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeCdnMonitorDataRequest::getCallerBid()const void DescribeCdnMonitorDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeCdnMonitorDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeCdnMonitorDataRequest::getOwnerId()const void DescribeCdnMonitorDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCdnMonitorDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeCdnMonitorDataRequest::getVersion()const void DescribeCdnMonitorDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeCdnMonitorDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeCdnMonitorDataRequest::getProxy_trust_transport_info()const void DescribeCdnMonitorDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeCdnMonitorDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeCdnMonitorDataRequest::getAk_mfa_present()const void DescribeCdnMonitorDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeCdnMonitorDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeCdnMonitorDataRequest::getSecurity_transport()const void DescribeCdnMonitorDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeCdnMonitorDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeCdnMonitorDataRequest::getRequestId()const void DescribeCdnMonitorDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeCdnMonitorDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeCdnMonitorDataRequest::getInterval()const void DescribeCdnMonitorDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeCdnMonitorDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeCdnMonitorDataRequest::getFields()const void DescribeCdnMonitorDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeCdnMonitorDataResult.cc b/cdn/src/model/DescribeCdnMonitorDataResult.cc index 4ca2313eb..b7956c7f7 100644 --- a/cdn/src/model/DescribeCdnMonitorDataResult.cc +++ b/cdn/src/model/DescribeCdnMonitorDataResult.cc @@ -35,10 +35,13 @@ DescribeCdnMonitorDataResult::~DescribeCdnMonitorDataResult() void DescribeCdnMonitorDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMonitorDatas = value["MonitorDatas"]["CDNMonitorData"]; for (auto value : allMonitorDatas) diff --git a/cdn/src/model/DescribeCdnRegionAndIspRequest.cc b/cdn/src/model/DescribeCdnRegionAndIspRequest.cc index 62c927084..b8357bdd7 100644 --- a/cdn/src/model/DescribeCdnRegionAndIspRequest.cc +++ b/cdn/src/model/DescribeCdnRegionAndIspRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnRegionAndIspRequest::getSecurityToken()const void DescribeCdnRegionAndIspRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeCdnRegionAndIspRequest::getOwnerId()const @@ -44,6 +44,6 @@ long DescribeCdnRegionAndIspRequest::getOwnerId()const void DescribeCdnRegionAndIspRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeCdnRegionAndIspResult.cc b/cdn/src/model/DescribeCdnRegionAndIspResult.cc index 7f44bba86..2f075fb9f 100644 --- a/cdn/src/model/DescribeCdnRegionAndIspResult.cc +++ b/cdn/src/model/DescribeCdnRegionAndIspResult.cc @@ -35,10 +35,13 @@ DescribeCdnRegionAndIspResult::~DescribeCdnRegionAndIspResult() void DescribeCdnRegionAndIspResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/cdn/src/model/DescribeCdnServiceRequest.cc b/cdn/src/model/DescribeCdnServiceRequest.cc index ea23f1d02..faf79281a 100644 --- a/cdn/src/model/DescribeCdnServiceRequest.cc +++ b/cdn/src/model/DescribeCdnServiceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnServiceRequest::getSecurityToken()const void DescribeCdnServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeCdnServiceRequest::getOwnerId()const @@ -44,6 +44,6 @@ long DescribeCdnServiceRequest::getOwnerId()const void DescribeCdnServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeCdnServiceResult.cc b/cdn/src/model/DescribeCdnServiceResult.cc index 5f7bc2ae3..e09e699fd 100644 --- a/cdn/src/model/DescribeCdnServiceResult.cc +++ b/cdn/src/model/DescribeCdnServiceResult.cc @@ -35,10 +35,13 @@ DescribeCdnServiceResult::~DescribeCdnServiceResult() void DescribeCdnServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOperationLocks = value["OperationLocks"]["LockReason"]; for (auto value : allOperationLocks) diff --git a/cdn/src/model/DescribeCdnTypesRequest.cc b/cdn/src/model/DescribeCdnTypesRequest.cc index 2ad586c76..52c333586 100644 --- a/cdn/src/model/DescribeCdnTypesRequest.cc +++ b/cdn/src/model/DescribeCdnTypesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnTypesRequest::getSecurityToken()const void DescribeCdnTypesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeCdnTypesRequest::getOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCdnTypesRequest::getOwnerAccount()const void DescribeCdnTypesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeCdnTypesRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeCdnTypesRequest::getOwnerId()const void DescribeCdnTypesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeCdnTypesResult.cc b/cdn/src/model/DescribeCdnTypesResult.cc index 2df23787f..f123036d1 100644 --- a/cdn/src/model/DescribeCdnTypesResult.cc +++ b/cdn/src/model/DescribeCdnTypesResult.cc @@ -35,10 +35,13 @@ DescribeCdnTypesResult::~DescribeCdnTypesResult() void DescribeCdnTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCdnTypes = value["CdnTypes"]["CdnType"]; for (auto value : allCdnTypes) diff --git a/cdn/src/model/DescribeCdnUserQuotaRequest.cc b/cdn/src/model/DescribeCdnUserQuotaRequest.cc index 8a505fd2b..cc257d92a 100644 --- a/cdn/src/model/DescribeCdnUserQuotaRequest.cc +++ b/cdn/src/model/DescribeCdnUserQuotaRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnUserQuotaRequest::getSecurityToken()const void DescribeCdnUserQuotaRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeCdnUserQuotaRequest::getOwnerId()const @@ -44,6 +44,6 @@ long DescribeCdnUserQuotaRequest::getOwnerId()const void DescribeCdnUserQuotaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeCdnUserQuotaResult.cc b/cdn/src/model/DescribeCdnUserQuotaResult.cc index 66ff52440..80019065a 100644 --- a/cdn/src/model/DescribeCdnUserQuotaResult.cc +++ b/cdn/src/model/DescribeCdnUserQuotaResult.cc @@ -35,10 +35,13 @@ DescribeCdnUserQuotaResult::~DescribeCdnUserQuotaResult() void DescribeCdnUserQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainQuota"].isNull()) domainQuota_ = std::stoi(value["DomainQuota"].asString()); diff --git a/cdn/src/model/DescribeCustomLogConfigRequest.cc b/cdn/src/model/DescribeCustomLogConfigRequest.cc index ff542d5ae..4df7c7724 100644 --- a/cdn/src/model/DescribeCustomLogConfigRequest.cc +++ b/cdn/src/model/DescribeCustomLogConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCustomLogConfigRequest::getApp_ip()const void DescribeCustomLogConfigRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeCustomLogConfigRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeCustomLogConfigRequest::getPopProduct()const void DescribeCustomLogConfigRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeCustomLogConfigRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeCustomLogConfigRequest::getProduct()const void DescribeCustomLogConfigRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeCustomLogConfigRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeCustomLogConfigRequest::getCallerParentId()const void DescribeCustomLogConfigRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeCustomLogConfigRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool DescribeCustomLogConfigRequest::getProxy_original_security_transport()const void DescribeCustomLogConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeCustomLogConfigRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string DescribeCustomLogConfigRequest::getCallerBid()const void DescribeCustomLogConfigRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeCustomLogConfigRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeCustomLogConfigRequest::getOwnerId()const void DescribeCustomLogConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCustomLogConfigRequest::getProxy_original_source_ip()const @@ -110,7 +110,7 @@ std::string DescribeCustomLogConfigRequest::getProxy_original_source_ip()const void DescribeCustomLogConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeCustomLogConfigRequest::getVersion()const @@ -121,7 +121,7 @@ std::string DescribeCustomLogConfigRequest::getVersion()const void DescribeCustomLogConfigRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeCustomLogConfigRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string DescribeCustomLogConfigRequest::getOwnerIdLoginEmail()const void DescribeCustomLogConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeCustomLogConfigRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string DescribeCustomLogConfigRequest::getCallerType()const void DescribeCustomLogConfigRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeCustomLogConfigRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool DescribeCustomLogConfigRequest::getProxy_trust_transport_info()const void DescribeCustomLogConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeCustomLogConfigRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool DescribeCustomLogConfigRequest::getAk_mfa_present()const void DescribeCustomLogConfigRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeCustomLogConfigRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string DescribeCustomLogConfigRequest::getAccessKeyId()const void DescribeCustomLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeCustomLogConfigRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool DescribeCustomLogConfigRequest::getSecurity_transport()const void DescribeCustomLogConfigRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeCustomLogConfigRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string DescribeCustomLogConfigRequest::getSecurityToken()const void DescribeCustomLogConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeCustomLogConfigRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string DescribeCustomLogConfigRequest::getRequestId()const void DescribeCustomLogConfigRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeCustomLogConfigRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string DescribeCustomLogConfigRequest::getRequestContent()const void DescribeCustomLogConfigRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeCustomLogConfigRequest::getConfigId()const @@ -231,7 +231,7 @@ std::string DescribeCustomLogConfigRequest::getConfigId()const void DescribeCustomLogConfigRequest::setConfigId(const std::string& configId) { configId_ = configId; - setParameter("ConfigId", configId); + setCoreParameter("ConfigId", configId); } std::string DescribeCustomLogConfigRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeCustomLogConfigRequest::getCallerBidEmail()const void DescribeCustomLogConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeCustomLogConfigRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeCustomLogConfigRequest::getCallerUidEmail()const void DescribeCustomLogConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeCustomLogConfigRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeCustomLogConfigRequest::getCallerUid()const void DescribeCustomLogConfigRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/DescribeCustomLogConfigResult.cc b/cdn/src/model/DescribeCustomLogConfigResult.cc index 52ee1b41d..d05379bad 100644 --- a/cdn/src/model/DescribeCustomLogConfigResult.cc +++ b/cdn/src/model/DescribeCustomLogConfigResult.cc @@ -35,10 +35,13 @@ DescribeCustomLogConfigResult::~DescribeCustomLogConfigResult() void DescribeCustomLogConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Remark"].isNull()) remark_ = value["Remark"].asString(); diff --git a/cdn/src/model/DescribeDomainAverageResponseTimeRequest.cc b/cdn/src/model/DescribeDomainAverageResponseTimeRequest.cc index 8df9ae89c..7f8437697 100644 --- a/cdn/src/model/DescribeDomainAverageResponseTimeRequest.cc +++ b/cdn/src/model/DescribeDomainAverageResponseTimeRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainAverageResponseTimeRequest::getCallerParentId()const void DescribeDomainAverageResponseTimeRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainAverageResponseTimeRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainAverageResponseTimeRequest::getProxy_original_security_transp void DescribeDomainAverageResponseTimeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainAverageResponseTimeRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getLocationNameEn()const void DescribeDomainAverageResponseTimeRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainAverageResponseTimeRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getStartTime()const void DescribeDomainAverageResponseTimeRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainAverageResponseTimeRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getIspNameEn()const void DescribeDomainAverageResponseTimeRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainAverageResponseTimeRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getProxy_original_source_i void DescribeDomainAverageResponseTimeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainAverageResponseTimeRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getOwnerIdLoginEmail()cons void DescribeDomainAverageResponseTimeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainAverageResponseTimeRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getCallerType()const void DescribeDomainAverageResponseTimeRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainAverageResponseTimeRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getAccessKeyId()const void DescribeDomainAverageResponseTimeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainAverageResponseTimeRequest::getDomainType()const @@ -132,7 +132,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getDomainType()const void DescribeDomainAverageResponseTimeRequest::setDomainType(const std::string& domainType) { domainType_ = domainType; - setParameter("DomainType", domainType); + setCoreParameter("DomainType", domainType); } std::string DescribeDomainAverageResponseTimeRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getSecurityToken()const void DescribeDomainAverageResponseTimeRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainAverageResponseTimeRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getRequestContent()const void DescribeDomainAverageResponseTimeRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainAverageResponseTimeRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getCallerBidEmail()const void DescribeDomainAverageResponseTimeRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainAverageResponseTimeRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getCallerUidEmail()const void DescribeDomainAverageResponseTimeRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainAverageResponseTimeRequest::getCallerUid()const @@ -187,7 +187,7 @@ long DescribeDomainAverageResponseTimeRequest::getCallerUid()const void DescribeDomainAverageResponseTimeRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainAverageResponseTimeRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getApp_ip()const void DescribeDomainAverageResponseTimeRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainAverageResponseTimeRequest::getPopProduct()const @@ -209,7 +209,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getPopProduct()const void DescribeDomainAverageResponseTimeRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainAverageResponseTimeRequest::getOutString()const @@ -220,7 +220,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getOutString()const void DescribeDomainAverageResponseTimeRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeDomainAverageResponseTimeRequest::getTimeMerge()const @@ -231,7 +231,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getTimeMerge()const void DescribeDomainAverageResponseTimeRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDomainAverageResponseTimeRequest::getDomainName()const @@ -242,7 +242,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getDomainName()const void DescribeDomainAverageResponseTimeRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainAverageResponseTimeRequest::getEndTime()const @@ -253,7 +253,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getEndTime()const void DescribeDomainAverageResponseTimeRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainAverageResponseTimeRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getCallerBid()const void DescribeDomainAverageResponseTimeRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainAverageResponseTimeRequest::getOwnerId()const @@ -275,7 +275,7 @@ long DescribeDomainAverageResponseTimeRequest::getOwnerId()const void DescribeDomainAverageResponseTimeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainAverageResponseTimeRequest::getVersion()const @@ -286,7 +286,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getVersion()const void DescribeDomainAverageResponseTimeRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainAverageResponseTimeRequest::getProxy_trust_transport_info()const @@ -297,7 +297,7 @@ bool DescribeDomainAverageResponseTimeRequest::getProxy_trust_transport_info()co void DescribeDomainAverageResponseTimeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainAverageResponseTimeRequest::getAk_mfa_present()const @@ -308,7 +308,7 @@ bool DescribeDomainAverageResponseTimeRequest::getAk_mfa_present()const void DescribeDomainAverageResponseTimeRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainAverageResponseTimeRequest::getSecurity_transport()const @@ -319,7 +319,7 @@ bool DescribeDomainAverageResponseTimeRequest::getSecurity_transport()const void DescribeDomainAverageResponseTimeRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainAverageResponseTimeRequest::getRequestId()const @@ -330,7 +330,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getRequestId()const void DescribeDomainAverageResponseTimeRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainAverageResponseTimeRequest::getInterval()const @@ -341,7 +341,7 @@ std::string DescribeDomainAverageResponseTimeRequest::getInterval()const void DescribeDomainAverageResponseTimeRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainAverageResponseTimeRequest::getFields()const @@ -352,6 +352,6 @@ std::string DescribeDomainAverageResponseTimeRequest::getFields()const void DescribeDomainAverageResponseTimeRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainAverageResponseTimeResult.cc b/cdn/src/model/DescribeDomainAverageResponseTimeResult.cc index ee147e7a8..517a004ec 100644 --- a/cdn/src/model/DescribeDomainAverageResponseTimeResult.cc +++ b/cdn/src/model/DescribeDomainAverageResponseTimeResult.cc @@ -35,10 +35,13 @@ DescribeDomainAverageResponseTimeResult::~DescribeDomainAverageResponseTimeResul void DescribeDomainAverageResponseTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAvgRTPerInterval = value["AvgRTPerInterval"]["DataModule"]; for (auto value : allAvgRTPerInterval) diff --git a/cdn/src/model/DescribeDomainBpsDataByTimeStampRequest.cc b/cdn/src/model/DescribeDomainBpsDataByTimeStampRequest.cc index 0e5f892e5..809a8823b 100644 --- a/cdn/src/model/DescribeDomainBpsDataByTimeStampRequest.cc +++ b/cdn/src/model/DescribeDomainBpsDataByTimeStampRequest.cc @@ -25,26 +25,26 @@ DescribeDomainBpsDataByTimeStampRequest::DescribeDomainBpsDataByTimeStampRequest DescribeDomainBpsDataByTimeStampRequest::~DescribeDomainBpsDataByTimeStampRequest() {} -std::string DescribeDomainBpsDataByTimeStampRequest::getIspNames()const +long DescribeDomainBpsDataByTimeStampRequest::getResourceOwnerId()const { - return ispNames_; + return resourceOwnerId_; } -void DescribeDomainBpsDataByTimeStampRequest::setIspNames(const std::string& ispNames) +void DescribeDomainBpsDataByTimeStampRequest::setResourceOwnerId(long resourceOwnerId) { - ispNames_ = ispNames; - setParameter("IspNames", ispNames); + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -std::string DescribeDomainBpsDataByTimeStampRequest::getSecurityToken()const +long DescribeDomainBpsDataByTimeStampRequest::getCallerParentId()const { - return securityToken_; + return callerParentId_; } -void DescribeDomainBpsDataByTimeStampRequest::setSecurityToken(const std::string& securityToken) +void DescribeDomainBpsDataByTimeStampRequest::setCallerParentId(long callerParentId) { - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeDomainBpsDataByTimeStampRequest::getLocationNames()const @@ -55,7 +55,161 @@ std::string DescribeDomainBpsDataByTimeStampRequest::getLocationNames()const void DescribeDomainBpsDataByTimeStampRequest::setLocationNames(const std::string& locationNames) { locationNames_ = locationNames; - setParameter("LocationNames", locationNames); + setCoreParameter("LocationNames", locationNames); +} + +bool DescribeDomainBpsDataByTimeStampRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDomainBpsDataByTimeStampRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getIspNames()const +{ + return ispNames_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setIspNames(const std::string& ispNames) +{ + ispNames_ = ispNames; + setCoreParameter("IspNames", ispNames); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getProduct()const +{ + return product_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setProduct(const std::string& product) +{ + product_ = product; + setCoreParameter("Product", product); } std::string DescribeDomainBpsDataByTimeStampRequest::getDomainName()const @@ -66,7 +220,18 @@ std::string DescribeDomainBpsDataByTimeStampRequest::getDomainName()const void DescribeDomainBpsDataByTimeStampRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); } long DescribeDomainBpsDataByTimeStampRequest::getOwnerId()const @@ -77,7 +242,62 @@ long DescribeDomainBpsDataByTimeStampRequest::getOwnerId()const void DescribeDomainBpsDataByTimeStampRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getVersion()const +{ + return version_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDomainBpsDataByTimeStampRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDomainBpsDataByTimeStampRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDomainBpsDataByTimeStampRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDomainBpsDataByTimeStampRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDomainBpsDataByTimeStampRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); } std::string DescribeDomainBpsDataByTimeStampRequest::getTimePoint()const @@ -88,6 +308,6 @@ std::string DescribeDomainBpsDataByTimeStampRequest::getTimePoint()const void DescribeDomainBpsDataByTimeStampRequest::setTimePoint(const std::string& timePoint) { timePoint_ = timePoint; - setParameter("TimePoint", timePoint); + setCoreParameter("TimePoint", timePoint); } diff --git a/cdn/src/model/DescribeDomainBpsDataByTimeStampResult.cc b/cdn/src/model/DescribeDomainBpsDataByTimeStampResult.cc index eafebdd36..0d02fd36f 100644 --- a/cdn/src/model/DescribeDomainBpsDataByTimeStampResult.cc +++ b/cdn/src/model/DescribeDomainBpsDataByTimeStampResult.cc @@ -35,15 +35,20 @@ DescribeDomainBpsDataByTimeStampResult::~DescribeDomainBpsDataByTimeStampResult( void DescribeDomainBpsDataByTimeStampResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBpsDataList = value["BpsDataList"]["BpsDataModel"]; for (auto value : allBpsDataList) { BpsDataModel bpsDataListObject; + if(!value["TimeStamp"].isNull()) + bpsDataListObject.timeStamp = value["TimeStamp"].asString(); if(!value["LocationName"].isNull()) bpsDataListObject.locationName = value["LocationName"].asString(); if(!value["IspName"].isNull()) diff --git a/cdn/src/model/DescribeDomainBpsDataRequest.cc b/cdn/src/model/DescribeDomainBpsDataRequest.cc index a85bf1ebf..f560adc01 100644 --- a/cdn/src/model/DescribeDomainBpsDataRequest.cc +++ b/cdn/src/model/DescribeDomainBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainBpsDataRequest::getResourceOwnerId()const void DescribeDomainBpsDataRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DescribeDomainBpsDataRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeDomainBpsDataRequest::getCallerParentId()const void DescribeDomainBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainBpsDataRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeDomainBpsDataRequest::getProxy_original_security_transport()const void DescribeDomainBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainBpsDataRequest::getLocationNameEn()const @@ -66,7 +66,7 @@ std::string DescribeDomainBpsDataRequest::getLocationNameEn()const void DescribeDomainBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainBpsDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeDomainBpsDataRequest::getStartTime()const void DescribeDomainBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainBpsDataRequest::getIspNameEn()const @@ -88,7 +88,7 @@ std::string DescribeDomainBpsDataRequest::getIspNameEn()const void DescribeDomainBpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainBpsDataRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string DescribeDomainBpsDataRequest::getProxy_original_source_ip()const void DescribeDomainBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainBpsDataRequest::getOwnerIdLoginEmail()const @@ -110,7 +110,7 @@ std::string DescribeDomainBpsDataRequest::getOwnerIdLoginEmail()const void DescribeDomainBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainBpsDataRequest::getCallerType()const @@ -121,7 +121,7 @@ std::string DescribeDomainBpsDataRequest::getCallerType()const void DescribeDomainBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainBpsDataRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string DescribeDomainBpsDataRequest::getAccessKeyId()const void DescribeDomainBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainBpsDataRequest::getDomainType()const @@ -143,7 +143,7 @@ std::string DescribeDomainBpsDataRequest::getDomainType()const void DescribeDomainBpsDataRequest::setDomainType(const std::string& domainType) { domainType_ = domainType; - setParameter("DomainType", domainType); + setCoreParameter("DomainType", domainType); } std::string DescribeDomainBpsDataRequest::getSecurityToken()const @@ -154,7 +154,7 @@ std::string DescribeDomainBpsDataRequest::getSecurityToken()const void DescribeDomainBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainBpsDataRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string DescribeDomainBpsDataRequest::getRequestContent()const void DescribeDomainBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainBpsDataRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string DescribeDomainBpsDataRequest::getCallerBidEmail()const void DescribeDomainBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainBpsDataRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string DescribeDomainBpsDataRequest::getCallerUidEmail()const void DescribeDomainBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainBpsDataRequest::getCallerUid()const @@ -198,7 +198,7 @@ long DescribeDomainBpsDataRequest::getCallerUid()const void DescribeDomainBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainBpsDataRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string DescribeDomainBpsDataRequest::getApp_ip()const void DescribeDomainBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainBpsDataRequest::getPopProduct()const @@ -220,7 +220,7 @@ std::string DescribeDomainBpsDataRequest::getPopProduct()const void DescribeDomainBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainBpsDataRequest::getProduct()const @@ -231,7 +231,7 @@ std::string DescribeDomainBpsDataRequest::getProduct()const void DescribeDomainBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainBpsDataRequest::getTimeMerge()const @@ -242,7 +242,7 @@ std::string DescribeDomainBpsDataRequest::getTimeMerge()const void DescribeDomainBpsDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDomainBpsDataRequest::getDomainName()const @@ -253,7 +253,7 @@ std::string DescribeDomainBpsDataRequest::getDomainName()const void DescribeDomainBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainBpsDataRequest::getEndTime()const @@ -264,7 +264,7 @@ std::string DescribeDomainBpsDataRequest::getEndTime()const void DescribeDomainBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainBpsDataRequest::getCallerBid()const @@ -275,7 +275,7 @@ std::string DescribeDomainBpsDataRequest::getCallerBid()const void DescribeDomainBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainBpsDataRequest::getOwnerId()const @@ -286,7 +286,7 @@ long DescribeDomainBpsDataRequest::getOwnerId()const void DescribeDomainBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainBpsDataRequest::getVersion()const @@ -297,7 +297,7 @@ std::string DescribeDomainBpsDataRequest::getVersion()const void DescribeDomainBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainBpsDataRequest::getProxy_trust_transport_info()const @@ -308,7 +308,7 @@ bool DescribeDomainBpsDataRequest::getProxy_trust_transport_info()const void DescribeDomainBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainBpsDataRequest::getAk_mfa_present()const @@ -319,7 +319,7 @@ bool DescribeDomainBpsDataRequest::getAk_mfa_present()const void DescribeDomainBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainBpsDataRequest::getSecurity_transport()const @@ -330,7 +330,7 @@ bool DescribeDomainBpsDataRequest::getSecurity_transport()const void DescribeDomainBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainBpsDataRequest::getRequestId()const @@ -341,7 +341,7 @@ std::string DescribeDomainBpsDataRequest::getRequestId()const void DescribeDomainBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainBpsDataRequest::getInterval()const @@ -352,6 +352,6 @@ std::string DescribeDomainBpsDataRequest::getInterval()const void DescribeDomainBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/cdn/src/model/DescribeDomainBpsDataResult.cc b/cdn/src/model/DescribeDomainBpsDataResult.cc index effe70468..f1441d0dd 100644 --- a/cdn/src/model/DescribeDomainBpsDataResult.cc +++ b/cdn/src/model/DescribeDomainBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainBpsDataResult::~DescribeDomainBpsDataResult() void DescribeDomainBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"]; for (auto value : allBpsDataPerInterval) diff --git a/cdn/src/model/DescribeDomainCertificateInfoRequest.cc b/cdn/src/model/DescribeDomainCertificateInfoRequest.cc index 2117e1eb4..4bc1916c1 100644 --- a/cdn/src/model/DescribeDomainCertificateInfoRequest.cc +++ b/cdn/src/model/DescribeDomainCertificateInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainCertificateInfoRequest::getApp_ip()const void DescribeDomainCertificateInfoRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainCertificateInfoRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeDomainCertificateInfoRequest::getPopProduct()const void DescribeDomainCertificateInfoRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainCertificateInfoRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeDomainCertificateInfoRequest::getProduct()const void DescribeDomainCertificateInfoRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeDomainCertificateInfoRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeDomainCertificateInfoRequest::getCallerParentId()const void DescribeDomainCertificateInfoRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeDomainCertificateInfoRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string DescribeDomainCertificateInfoRequest::getDomainName()const void DescribeDomainCertificateInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeDomainCertificateInfoRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeDomainCertificateInfoRequest::getProxy_original_security_transport( void DescribeDomainCertificateInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainCertificateInfoRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeDomainCertificateInfoRequest::getCallerBid()const void DescribeDomainCertificateInfoRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainCertificateInfoRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeDomainCertificateInfoRequest::getOwnerId()const void DescribeDomainCertificateInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainCertificateInfoRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeDomainCertificateInfoRequest::getProxy_original_source_ip()c void DescribeDomainCertificateInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainCertificateInfoRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeDomainCertificateInfoRequest::getVersion()const void DescribeDomainCertificateInfoRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeDomainCertificateInfoRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainCertificateInfoRequest::getOwnerIdLoginEmail()const void DescribeDomainCertificateInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainCertificateInfoRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeDomainCertificateInfoRequest::getCallerType()const void DescribeDomainCertificateInfoRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeDomainCertificateInfoRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeDomainCertificateInfoRequest::getProxy_trust_transport_info()const void DescribeDomainCertificateInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainCertificateInfoRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeDomainCertificateInfoRequest::getAk_mfa_present()const void DescribeDomainCertificateInfoRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeDomainCertificateInfoRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeDomainCertificateInfoRequest::getAccessKeyId()const void DescribeDomainCertificateInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeDomainCertificateInfoRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeDomainCertificateInfoRequest::getSecurity_transport()const void DescribeDomainCertificateInfoRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainCertificateInfoRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeDomainCertificateInfoRequest::getSecurityToken()const void DescribeDomainCertificateInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainCertificateInfoRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeDomainCertificateInfoRequest::getRequestId()const void DescribeDomainCertificateInfoRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainCertificateInfoRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeDomainCertificateInfoRequest::getRequestContent()const void DescribeDomainCertificateInfoRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainCertificateInfoRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeDomainCertificateInfoRequest::getCallerBidEmail()const void DescribeDomainCertificateInfoRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainCertificateInfoRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeDomainCertificateInfoRequest::getCallerUidEmail()const void DescribeDomainCertificateInfoRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainCertificateInfoRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeDomainCertificateInfoRequest::getCallerUid()const void DescribeDomainCertificateInfoRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/DescribeDomainCertificateInfoResult.cc b/cdn/src/model/DescribeDomainCertificateInfoResult.cc index 262835537..a1feda53b 100644 --- a/cdn/src/model/DescribeDomainCertificateInfoResult.cc +++ b/cdn/src/model/DescribeDomainCertificateInfoResult.cc @@ -35,10 +35,13 @@ DescribeDomainCertificateInfoResult::~DescribeDomainCertificateInfoResult() void DescribeDomainCertificateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCertInfos = value["CertInfos"]["CertInfo"]; for (auto value : allCertInfos) diff --git a/cdn/src/model/DescribeDomainCnameRequest.cc b/cdn/src/model/DescribeDomainCnameRequest.cc index fb1ed7829..f58d61b7b 100644 --- a/cdn/src/model/DescribeDomainCnameRequest.cc +++ b/cdn/src/model/DescribeDomainCnameRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainCnameRequest::getApp_ip()const void DescribeDomainCnameRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainCnameRequest::getProduct()const @@ -44,7 +44,7 @@ std::string DescribeDomainCnameRequest::getProduct()const void DescribeDomainCnameRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeDomainCnameRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DescribeDomainCnameRequest::getCallerParentId()const void DescribeDomainCnameRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeDomainCnameRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DescribeDomainCnameRequest::getDomainName()const void DescribeDomainCnameRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeDomainCnameRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool DescribeDomainCnameRequest::getProxy_original_security_transport()const void DescribeDomainCnameRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainCnameRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string DescribeDomainCnameRequest::getCallerBid()const void DescribeDomainCnameRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainCnameRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeDomainCnameRequest::getOwnerId()const void DescribeDomainCnameRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainCnameRequest::getProxy_original_source_ip()const @@ -110,7 +110,7 @@ std::string DescribeDomainCnameRequest::getProxy_original_source_ip()const void DescribeDomainCnameRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainCnameRequest::getVersion()const @@ -121,7 +121,7 @@ std::string DescribeDomainCnameRequest::getVersion()const void DescribeDomainCnameRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeDomainCnameRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainCnameRequest::getOwnerIdLoginEmail()const void DescribeDomainCnameRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainCnameRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string DescribeDomainCnameRequest::getCallerType()const void DescribeDomainCnameRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeDomainCnameRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool DescribeDomainCnameRequest::getProxy_trust_transport_info()const void DescribeDomainCnameRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainCnameRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool DescribeDomainCnameRequest::getAk_mfa_present()const void DescribeDomainCnameRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeDomainCnameRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string DescribeDomainCnameRequest::getAccessKeyId()const void DescribeDomainCnameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeDomainCnameRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool DescribeDomainCnameRequest::getSecurity_transport()const void DescribeDomainCnameRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainCnameRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string DescribeDomainCnameRequest::getSecurityToken()const void DescribeDomainCnameRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainCnameRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string DescribeDomainCnameRequest::getRequestId()const void DescribeDomainCnameRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainCnameRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string DescribeDomainCnameRequest::getRequestContent()const void DescribeDomainCnameRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainCnameRequest::getCallerBidEmail()const @@ -231,7 +231,7 @@ std::string DescribeDomainCnameRequest::getCallerBidEmail()const void DescribeDomainCnameRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainCnameRequest::getCallerUidEmail()const @@ -242,7 +242,7 @@ std::string DescribeDomainCnameRequest::getCallerUidEmail()const void DescribeDomainCnameRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainCnameRequest::getCallerUid()const @@ -253,6 +253,6 @@ long DescribeDomainCnameRequest::getCallerUid()const void DescribeDomainCnameRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/DescribeDomainCnameResult.cc b/cdn/src/model/DescribeDomainCnameResult.cc index 7d61b7ca2..84fd6812f 100644 --- a/cdn/src/model/DescribeDomainCnameResult.cc +++ b/cdn/src/model/DescribeDomainCnameResult.cc @@ -35,10 +35,13 @@ DescribeDomainCnameResult::~DescribeDomainCnameResult() void DescribeDomainCnameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCnameDatas = value["CnameDatas"]["Data"]; for (auto value : allCnameDatas) diff --git a/cdn/src/model/DescribeDomainConfigsRequest.cc b/cdn/src/model/DescribeDomainConfigsRequest.cc index 225a3cc5a..21431b0e5 100644 --- a/cdn/src/model/DescribeDomainConfigsRequest.cc +++ b/cdn/src/model/DescribeDomainConfigsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainConfigsRequest::getSecurityToken()const void DescribeDomainConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainConfigsRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainConfigsRequest::getDomainName()const void DescribeDomainConfigsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainConfigsRequest::getConfigList()const @@ -55,7 +55,7 @@ std::string DescribeDomainConfigsRequest::getConfigList()const void DescribeDomainConfigsRequest::setConfigList(const std::string& configList) { configList_ = configList; - setParameter("ConfigList", configList); + setCoreParameter("ConfigList", configList); } long DescribeDomainConfigsRequest::getOwnerId()const @@ -66,6 +66,6 @@ long DescribeDomainConfigsRequest::getOwnerId()const void DescribeDomainConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeDomainConfigsResult.cc b/cdn/src/model/DescribeDomainConfigsResult.cc index 5e72829ba..80337d905 100644 --- a/cdn/src/model/DescribeDomainConfigsResult.cc +++ b/cdn/src/model/DescribeDomainConfigsResult.cc @@ -35,10 +35,13 @@ DescribeDomainConfigsResult::~DescribeDomainConfigsResult() void DescribeDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto domainConfigsNode = value["DomainConfigs"]; auto allCacheExpiredConfigs = value["CacheExpiredConfigs"]["CacheExpiredConfig"]; diff --git a/cdn/src/model/DescribeDomainCustomLogConfigRequest.cc b/cdn/src/model/DescribeDomainCustomLogConfigRequest.cc index 77dff3d2c..0bff59719 100644 --- a/cdn/src/model/DescribeDomainCustomLogConfigRequest.cc +++ b/cdn/src/model/DescribeDomainCustomLogConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainCustomLogConfigRequest::getApp_ip()const void DescribeDomainCustomLogConfigRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainCustomLogConfigRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeDomainCustomLogConfigRequest::getPopProduct()const void DescribeDomainCustomLogConfigRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainCustomLogConfigRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeDomainCustomLogConfigRequest::getProduct()const void DescribeDomainCustomLogConfigRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeDomainCustomLogConfigRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeDomainCustomLogConfigRequest::getCallerParentId()const void DescribeDomainCustomLogConfigRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeDomainCustomLogConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string DescribeDomainCustomLogConfigRequest::getDomainName()const void DescribeDomainCustomLogConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeDomainCustomLogConfigRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeDomainCustomLogConfigRequest::getProxy_original_security_transport( void DescribeDomainCustomLogConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainCustomLogConfigRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeDomainCustomLogConfigRequest::getCallerBid()const void DescribeDomainCustomLogConfigRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainCustomLogConfigRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeDomainCustomLogConfigRequest::getOwnerId()const void DescribeDomainCustomLogConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainCustomLogConfigRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeDomainCustomLogConfigRequest::getProxy_original_source_ip()c void DescribeDomainCustomLogConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainCustomLogConfigRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeDomainCustomLogConfigRequest::getVersion()const void DescribeDomainCustomLogConfigRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeDomainCustomLogConfigRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainCustomLogConfigRequest::getOwnerIdLoginEmail()const void DescribeDomainCustomLogConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainCustomLogConfigRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeDomainCustomLogConfigRequest::getCallerType()const void DescribeDomainCustomLogConfigRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeDomainCustomLogConfigRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeDomainCustomLogConfigRequest::getProxy_trust_transport_info()const void DescribeDomainCustomLogConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainCustomLogConfigRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeDomainCustomLogConfigRequest::getAk_mfa_present()const void DescribeDomainCustomLogConfigRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeDomainCustomLogConfigRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeDomainCustomLogConfigRequest::getAccessKeyId()const void DescribeDomainCustomLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeDomainCustomLogConfigRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeDomainCustomLogConfigRequest::getSecurity_transport()const void DescribeDomainCustomLogConfigRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainCustomLogConfigRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeDomainCustomLogConfigRequest::getSecurityToken()const void DescribeDomainCustomLogConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainCustomLogConfigRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeDomainCustomLogConfigRequest::getRequestId()const void DescribeDomainCustomLogConfigRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainCustomLogConfigRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeDomainCustomLogConfigRequest::getRequestContent()const void DescribeDomainCustomLogConfigRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainCustomLogConfigRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeDomainCustomLogConfigRequest::getCallerBidEmail()const void DescribeDomainCustomLogConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainCustomLogConfigRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeDomainCustomLogConfigRequest::getCallerUidEmail()const void DescribeDomainCustomLogConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainCustomLogConfigRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeDomainCustomLogConfigRequest::getCallerUid()const void DescribeDomainCustomLogConfigRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/DescribeDomainCustomLogConfigResult.cc b/cdn/src/model/DescribeDomainCustomLogConfigResult.cc index 1596cb7f9..3f7890e02 100644 --- a/cdn/src/model/DescribeDomainCustomLogConfigResult.cc +++ b/cdn/src/model/DescribeDomainCustomLogConfigResult.cc @@ -35,10 +35,13 @@ DescribeDomainCustomLogConfigResult::~DescribeDomainCustomLogConfigResult() void DescribeDomainCustomLogConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ConfigId"].isNull()) configId_ = value["ConfigId"].asString(); diff --git a/cdn/src/model/DescribeDomainFileSizeProportionDataRequest.cc b/cdn/src/model/DescribeDomainFileSizeProportionDataRequest.cc index f4a7d8f66..5c51381bb 100644 --- a/cdn/src/model/DescribeDomainFileSizeProportionDataRequest.cc +++ b/cdn/src/model/DescribeDomainFileSizeProportionDataRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainFileSizeProportionDataRequest::getSecurityToken()const void DescribeDomainFileSizeProportionDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainFileSizeProportionDataRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainFileSizeProportionDataRequest::getDomainName()const void DescribeDomainFileSizeProportionDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainFileSizeProportionDataRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainFileSizeProportionDataRequest::getEndTime()const void DescribeDomainFileSizeProportionDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainFileSizeProportionDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainFileSizeProportionDataRequest::getStartTime()const void DescribeDomainFileSizeProportionDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDomainFileSizeProportionDataRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DescribeDomainFileSizeProportionDataRequest::getOwnerId()const void DescribeDomainFileSizeProportionDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeDomainFileSizeProportionDataResult.cc b/cdn/src/model/DescribeDomainFileSizeProportionDataResult.cc index 28a68abb9..9c4e00fdd 100644 --- a/cdn/src/model/DescribeDomainFileSizeProportionDataResult.cc +++ b/cdn/src/model/DescribeDomainFileSizeProportionDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainFileSizeProportionDataResult::~DescribeDomainFileSizeProportionDat void DescribeDomainFileSizeProportionDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFileSizeProportionDataInterval = value["FileSizeProportionDataInterval"]["UsageData"]; for (auto value : allFileSizeProportionDataInterval) diff --git a/cdn/src/model/DescribeDomainFlowDataRequest.cc b/cdn/src/model/DescribeDomainFlowDataRequest.cc index fb49a0d0d..f0492d544 100644 --- a/cdn/src/model/DescribeDomainFlowDataRequest.cc +++ b/cdn/src/model/DescribeDomainFlowDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainFlowDataRequest::getResourceOwnerId()const void DescribeDomainFlowDataRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DescribeDomainFlowDataRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeDomainFlowDataRequest::getCallerParentId()const void DescribeDomainFlowDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainFlowDataRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeDomainFlowDataRequest::getProxy_original_security_transport()const void DescribeDomainFlowDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainFlowDataRequest::getLocationNameEn()const @@ -66,7 +66,7 @@ std::string DescribeDomainFlowDataRequest::getLocationNameEn()const void DescribeDomainFlowDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainFlowDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeDomainFlowDataRequest::getStartTime()const void DescribeDomainFlowDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainFlowDataRequest::getIspNameEn()const @@ -88,7 +88,7 @@ std::string DescribeDomainFlowDataRequest::getIspNameEn()const void DescribeDomainFlowDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainFlowDataRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string DescribeDomainFlowDataRequest::getProxy_original_source_ip()const void DescribeDomainFlowDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainFlowDataRequest::getOwnerIdLoginEmail()const @@ -110,7 +110,7 @@ std::string DescribeDomainFlowDataRequest::getOwnerIdLoginEmail()const void DescribeDomainFlowDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainFlowDataRequest::getCallerType()const @@ -121,7 +121,7 @@ std::string DescribeDomainFlowDataRequest::getCallerType()const void DescribeDomainFlowDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainFlowDataRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string DescribeDomainFlowDataRequest::getAccessKeyId()const void DescribeDomainFlowDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainFlowDataRequest::getDomainType()const @@ -143,7 +143,7 @@ std::string DescribeDomainFlowDataRequest::getDomainType()const void DescribeDomainFlowDataRequest::setDomainType(const std::string& domainType) { domainType_ = domainType; - setParameter("DomainType", domainType); + setCoreParameter("DomainType", domainType); } std::string DescribeDomainFlowDataRequest::getSecurityToken()const @@ -154,7 +154,7 @@ std::string DescribeDomainFlowDataRequest::getSecurityToken()const void DescribeDomainFlowDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainFlowDataRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string DescribeDomainFlowDataRequest::getRequestContent()const void DescribeDomainFlowDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainFlowDataRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string DescribeDomainFlowDataRequest::getCallerBidEmail()const void DescribeDomainFlowDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainFlowDataRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string DescribeDomainFlowDataRequest::getCallerUidEmail()const void DescribeDomainFlowDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainFlowDataRequest::getCallerUid()const @@ -198,7 +198,7 @@ long DescribeDomainFlowDataRequest::getCallerUid()const void DescribeDomainFlowDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainFlowDataRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string DescribeDomainFlowDataRequest::getApp_ip()const void DescribeDomainFlowDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainFlowDataRequest::getPopProduct()const @@ -220,7 +220,7 @@ std::string DescribeDomainFlowDataRequest::getPopProduct()const void DescribeDomainFlowDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainFlowDataRequest::getTimeMerge()const @@ -231,7 +231,7 @@ std::string DescribeDomainFlowDataRequest::getTimeMerge()const void DescribeDomainFlowDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDomainFlowDataRequest::getDomainName()const @@ -242,7 +242,7 @@ std::string DescribeDomainFlowDataRequest::getDomainName()const void DescribeDomainFlowDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainFlowDataRequest::getEndTime()const @@ -253,7 +253,7 @@ std::string DescribeDomainFlowDataRequest::getEndTime()const void DescribeDomainFlowDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainFlowDataRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string DescribeDomainFlowDataRequest::getCallerBid()const void DescribeDomainFlowDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainFlowDataRequest::getOwnerId()const @@ -275,7 +275,7 @@ long DescribeDomainFlowDataRequest::getOwnerId()const void DescribeDomainFlowDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainFlowDataRequest::getVersion()const @@ -286,7 +286,7 @@ std::string DescribeDomainFlowDataRequest::getVersion()const void DescribeDomainFlowDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainFlowDataRequest::getProxy_trust_transport_info()const @@ -297,7 +297,7 @@ bool DescribeDomainFlowDataRequest::getProxy_trust_transport_info()const void DescribeDomainFlowDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainFlowDataRequest::getAk_mfa_present()const @@ -308,7 +308,7 @@ bool DescribeDomainFlowDataRequest::getAk_mfa_present()const void DescribeDomainFlowDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainFlowDataRequest::getSecurity_transport()const @@ -319,7 +319,7 @@ bool DescribeDomainFlowDataRequest::getSecurity_transport()const void DescribeDomainFlowDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainFlowDataRequest::getRequestId()const @@ -330,7 +330,7 @@ std::string DescribeDomainFlowDataRequest::getRequestId()const void DescribeDomainFlowDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainFlowDataRequest::getInterval()const @@ -341,6 +341,6 @@ std::string DescribeDomainFlowDataRequest::getInterval()const void DescribeDomainFlowDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/cdn/src/model/DescribeDomainFlowDataResult.cc b/cdn/src/model/DescribeDomainFlowDataResult.cc index 4b97bc83a..6046a161c 100644 --- a/cdn/src/model/DescribeDomainFlowDataResult.cc +++ b/cdn/src/model/DescribeDomainFlowDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainFlowDataResult::~DescribeDomainFlowDataResult() void DescribeDomainFlowDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFlowDataPerInterval = value["FlowDataPerInterval"]["DataModule"]; for (auto value : allFlowDataPerInterval) diff --git a/cdn/src/model/DescribeDomainHitRateDataRequest.cc b/cdn/src/model/DescribeDomainHitRateDataRequest.cc index 537332380..11bb253c1 100644 --- a/cdn/src/model/DescribeDomainHitRateDataRequest.cc +++ b/cdn/src/model/DescribeDomainHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainHitRateDataRequest::getCallerParentId()const void DescribeDomainHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainHitRateDataRequest::getProxy_original_security_transport()con void DescribeDomainHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainHitRateDataRequest::getStartTime()const void DescribeDomainHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainHitRateDataRequest::getProxy_original_source_ip()const void DescribeDomainHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainHitRateDataRequest::getOwnerIdLoginEmail()const void DescribeDomainHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainHitRateDataRequest::getCallerType()const void DescribeDomainHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainHitRateDataRequest::getAccessKeyId()const void DescribeDomainHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainHitRateDataRequest::getSecurityToken()const void DescribeDomainHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainHitRateDataRequest::getRequestContent()const void DescribeDomainHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainHitRateDataRequest::getCallerBidEmail()const void DescribeDomainHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainHitRateDataRequest::getCallerUidEmail()const void DescribeDomainHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainHitRateDataRequest::getCallerUid()const void DescribeDomainHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainHitRateDataRequest::getApp_ip()const void DescribeDomainHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainHitRateDataRequest::getPopProduct()const void DescribeDomainHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainHitRateDataRequest::getOutString()const @@ -187,7 +187,7 @@ std::string DescribeDomainHitRateDataRequest::getOutString()const void DescribeDomainHitRateDataRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeDomainHitRateDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDomainHitRateDataRequest::getDomainName()const void DescribeDomainHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainHitRateDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDomainHitRateDataRequest::getEndTime()const void DescribeDomainHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainHitRateDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDomainHitRateDataRequest::getCallerBid()const void DescribeDomainHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainHitRateDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDomainHitRateDataRequest::getOwnerId()const void DescribeDomainHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainHitRateDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDomainHitRateDataRequest::getVersion()const void DescribeDomainHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainHitRateDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDomainHitRateDataRequest::getProxy_trust_transport_info()const void DescribeDomainHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainHitRateDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDomainHitRateDataRequest::getAk_mfa_present()const void DescribeDomainHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainHitRateDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDomainHitRateDataRequest::getSecurity_transport()const void DescribeDomainHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainHitRateDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeDomainHitRateDataRequest::getRequestId()const void DescribeDomainHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainHitRateDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeDomainHitRateDataRequest::getInterval()const void DescribeDomainHitRateDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainHitRateDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeDomainHitRateDataRequest::getFields()const void DescribeDomainHitRateDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainHitRateDataResult.cc b/cdn/src/model/DescribeDomainHitRateDataResult.cc index dd641c6c4..bcabfe38f 100644 --- a/cdn/src/model/DescribeDomainHitRateDataResult.cc +++ b/cdn/src/model/DescribeDomainHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainHitRateDataResult::~DescribeDomainHitRateDataResult() void DescribeDomainHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHitRateInterval = value["HitRateInterval"]["DataModule"]; for (auto value : allHitRateInterval) diff --git a/cdn/src/model/DescribeDomainHttpCodeDataRequest.cc b/cdn/src/model/DescribeDomainHttpCodeDataRequest.cc index 370cd9234..e9836e9a9 100644 --- a/cdn/src/model/DescribeDomainHttpCodeDataRequest.cc +++ b/cdn/src/model/DescribeDomainHttpCodeDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainHttpCodeDataRequest::getCallerParentId()const void DescribeDomainHttpCodeDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainHttpCodeDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainHttpCodeDataRequest::getProxy_original_security_transport()co void DescribeDomainHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainHttpCodeDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDomainHttpCodeDataRequest::getLocationNameEn()const void DescribeDomainHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainHttpCodeDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainHttpCodeDataRequest::getStartTime()const void DescribeDomainHttpCodeDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainHttpCodeDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDomainHttpCodeDataRequest::getIspNameEn()const void DescribeDomainHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainHttpCodeDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDomainHttpCodeDataRequest::getProxy_original_source_ip()cons void DescribeDomainHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainHttpCodeDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDomainHttpCodeDataRequest::getOwnerIdLoginEmail()const void DescribeDomainHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainHttpCodeDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDomainHttpCodeDataRequest::getCallerType()const void DescribeDomainHttpCodeDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainHttpCodeDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDomainHttpCodeDataRequest::getAccessKeyId()const void DescribeDomainHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainHttpCodeDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDomainHttpCodeDataRequest::getSecurityToken()const void DescribeDomainHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainHttpCodeDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDomainHttpCodeDataRequest::getRequestContent()const void DescribeDomainHttpCodeDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainHttpCodeDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDomainHttpCodeDataRequest::getCallerBidEmail()const void DescribeDomainHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainHttpCodeDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainHttpCodeDataRequest::getCallerUidEmail()const void DescribeDomainHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainHttpCodeDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDomainHttpCodeDataRequest::getCallerUid()const void DescribeDomainHttpCodeDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainHttpCodeDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDomainHttpCodeDataRequest::getApp_ip()const void DescribeDomainHttpCodeDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainHttpCodeDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDomainHttpCodeDataRequest::getPopProduct()const void DescribeDomainHttpCodeDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainHttpCodeDataRequest::getOutString()const @@ -209,7 +209,7 @@ std::string DescribeDomainHttpCodeDataRequest::getOutString()const void DescribeDomainHttpCodeDataRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeDomainHttpCodeDataRequest::getTimeMerge()const @@ -220,7 +220,7 @@ std::string DescribeDomainHttpCodeDataRequest::getTimeMerge()const void DescribeDomainHttpCodeDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDomainHttpCodeDataRequest::getDomainName()const @@ -231,7 +231,7 @@ std::string DescribeDomainHttpCodeDataRequest::getDomainName()const void DescribeDomainHttpCodeDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainHttpCodeDataRequest::getEndTime()const @@ -242,7 +242,7 @@ std::string DescribeDomainHttpCodeDataRequest::getEndTime()const void DescribeDomainHttpCodeDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainHttpCodeDataRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string DescribeDomainHttpCodeDataRequest::getCallerBid()const void DescribeDomainHttpCodeDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainHttpCodeDataRequest::getOwnerId()const @@ -264,7 +264,7 @@ long DescribeDomainHttpCodeDataRequest::getOwnerId()const void DescribeDomainHttpCodeDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainHttpCodeDataRequest::getVersion()const @@ -275,7 +275,7 @@ std::string DescribeDomainHttpCodeDataRequest::getVersion()const void DescribeDomainHttpCodeDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainHttpCodeDataRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool DescribeDomainHttpCodeDataRequest::getProxy_trust_transport_info()const void DescribeDomainHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainHttpCodeDataRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool DescribeDomainHttpCodeDataRequest::getAk_mfa_present()const void DescribeDomainHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainHttpCodeDataRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool DescribeDomainHttpCodeDataRequest::getSecurity_transport()const void DescribeDomainHttpCodeDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainHttpCodeDataRequest::getRequestId()const @@ -319,7 +319,7 @@ std::string DescribeDomainHttpCodeDataRequest::getRequestId()const void DescribeDomainHttpCodeDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainHttpCodeDataRequest::getInterval()const @@ -330,7 +330,7 @@ std::string DescribeDomainHttpCodeDataRequest::getInterval()const void DescribeDomainHttpCodeDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainHttpCodeDataRequest::getFields()const @@ -341,6 +341,6 @@ std::string DescribeDomainHttpCodeDataRequest::getFields()const void DescribeDomainHttpCodeDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainHttpCodeDataResult.cc b/cdn/src/model/DescribeDomainHttpCodeDataResult.cc index ec33c6068..8ea340055 100644 --- a/cdn/src/model/DescribeDomainHttpCodeDataResult.cc +++ b/cdn/src/model/DescribeDomainHttpCodeDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainHttpCodeDataResult::~DescribeDomainHttpCodeDataResult() void DescribeDomainHttpCodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHttpCodeData = value["HttpCodeData"]["UsageData"]; for (auto value : allHttpCodeData) diff --git a/cdn/src/model/DescribeDomainISPDataRequest.cc b/cdn/src/model/DescribeDomainISPDataRequest.cc index c65ba869d..c2df42277 100644 --- a/cdn/src/model/DescribeDomainISPDataRequest.cc +++ b/cdn/src/model/DescribeDomainISPDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainISPDataRequest::getCallerParentId()const void DescribeDomainISPDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainISPDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainISPDataRequest::getProxy_original_security_transport()const void DescribeDomainISPDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainISPDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainISPDataRequest::getStartTime()const void DescribeDomainISPDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainISPDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainISPDataRequest::getProxy_original_source_ip()const void DescribeDomainISPDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainISPDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainISPDataRequest::getOwnerIdLoginEmail()const void DescribeDomainISPDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainISPDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainISPDataRequest::getCallerType()const void DescribeDomainISPDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainISPDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainISPDataRequest::getAccessKeyId()const void DescribeDomainISPDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainISPDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainISPDataRequest::getSecurityToken()const void DescribeDomainISPDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainISPDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainISPDataRequest::getRequestContent()const void DescribeDomainISPDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainISPDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainISPDataRequest::getCallerBidEmail()const void DescribeDomainISPDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainISPDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainISPDataRequest::getCallerUidEmail()const void DescribeDomainISPDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainISPDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainISPDataRequest::getCallerUid()const void DescribeDomainISPDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainISPDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainISPDataRequest::getApp_ip()const void DescribeDomainISPDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainISPDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainISPDataRequest::getPopProduct()const void DescribeDomainISPDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainISPDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainISPDataRequest::getProduct()const void DescribeDomainISPDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainISPDataRequest::getOutString()const @@ -198,7 +198,7 @@ std::string DescribeDomainISPDataRequest::getOutString()const void DescribeDomainISPDataRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeDomainISPDataRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDomainISPDataRequest::getDomainName()const void DescribeDomainISPDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainISPDataRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDomainISPDataRequest::getEndTime()const void DescribeDomainISPDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainISPDataRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDomainISPDataRequest::getCallerBid()const void DescribeDomainISPDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainISPDataRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDomainISPDataRequest::getOwnerId()const void DescribeDomainISPDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainISPDataRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDomainISPDataRequest::getVersion()const void DescribeDomainISPDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainISPDataRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDomainISPDataRequest::getProxy_trust_transport_info()const void DescribeDomainISPDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainISPDataRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDomainISPDataRequest::getAk_mfa_present()const void DescribeDomainISPDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainISPDataRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDomainISPDataRequest::getSecurity_transport()const void DescribeDomainISPDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainISPDataRequest::getRequestId()const @@ -297,6 +297,6 @@ std::string DescribeDomainISPDataRequest::getRequestId()const void DescribeDomainISPDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeDomainISPDataResult.cc b/cdn/src/model/DescribeDomainISPDataResult.cc index 44382b6de..6f7edd16d 100644 --- a/cdn/src/model/DescribeDomainISPDataResult.cc +++ b/cdn/src/model/DescribeDomainISPDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainISPDataResult::~DescribeDomainISPDataResult() void DescribeDomainISPDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allValue = value["Value"]["ISPProportionData"]; for (auto value : allValue) diff --git a/cdn/src/model/DescribeDomainMax95BpsDataRequest.cc b/cdn/src/model/DescribeDomainMax95BpsDataRequest.cc index 457031e62..345c819dd 100644 --- a/cdn/src/model/DescribeDomainMax95BpsDataRequest.cc +++ b/cdn/src/model/DescribeDomainMax95BpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainMax95BpsDataRequest::getCallerParentId()const void DescribeDomainMax95BpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainMax95BpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainMax95BpsDataRequest::getProxy_original_security_transport()co void DescribeDomainMax95BpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainMax95BpsDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainMax95BpsDataRequest::getStartTime()const void DescribeDomainMax95BpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainMax95BpsDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainMax95BpsDataRequest::getProxy_original_source_ip()cons void DescribeDomainMax95BpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainMax95BpsDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainMax95BpsDataRequest::getOwnerIdLoginEmail()const void DescribeDomainMax95BpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainMax95BpsDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainMax95BpsDataRequest::getCallerType()const void DescribeDomainMax95BpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainMax95BpsDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainMax95BpsDataRequest::getAccessKeyId()const void DescribeDomainMax95BpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainMax95BpsDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainMax95BpsDataRequest::getSecurityToken()const void DescribeDomainMax95BpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainMax95BpsDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainMax95BpsDataRequest::getRequestContent()const void DescribeDomainMax95BpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainMax95BpsDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainMax95BpsDataRequest::getCallerBidEmail()const void DescribeDomainMax95BpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainMax95BpsDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainMax95BpsDataRequest::getCallerUidEmail()const void DescribeDomainMax95BpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainMax95BpsDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainMax95BpsDataRequest::getCallerUid()const void DescribeDomainMax95BpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainMax95BpsDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainMax95BpsDataRequest::getApp_ip()const void DescribeDomainMax95BpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainMax95BpsDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainMax95BpsDataRequest::getPopProduct()const void DescribeDomainMax95BpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainMax95BpsDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainMax95BpsDataRequest::getProduct()const void DescribeDomainMax95BpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainMax95BpsDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDomainMax95BpsDataRequest::getDomainName()const void DescribeDomainMax95BpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainMax95BpsDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDomainMax95BpsDataRequest::getEndTime()const void DescribeDomainMax95BpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainMax95BpsDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDomainMax95BpsDataRequest::getCallerBid()const void DescribeDomainMax95BpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainMax95BpsDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDomainMax95BpsDataRequest::getOwnerId()const void DescribeDomainMax95BpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainMax95BpsDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDomainMax95BpsDataRequest::getVersion()const void DescribeDomainMax95BpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainMax95BpsDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDomainMax95BpsDataRequest::getProxy_trust_transport_info()const void DescribeDomainMax95BpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainMax95BpsDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDomainMax95BpsDataRequest::getAk_mfa_present()const void DescribeDomainMax95BpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainMax95BpsDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDomainMax95BpsDataRequest::getSecurity_transport()const void DescribeDomainMax95BpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainMax95BpsDataRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeDomainMax95BpsDataRequest::getRequestId()const void DescribeDomainMax95BpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeDomainMax95BpsDataResult.cc b/cdn/src/model/DescribeDomainMax95BpsDataResult.cc index 5374dcf31..0637c6af6 100644 --- a/cdn/src/model/DescribeDomainMax95BpsDataResult.cc +++ b/cdn/src/model/DescribeDomainMax95BpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainMax95BpsDataResult::~DescribeDomainMax95BpsDataResult() void DescribeDomainMax95BpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); diff --git a/cdn/src/model/DescribeDomainPathDataRequest.cc b/cdn/src/model/DescribeDomainPathDataRequest.cc index cd3f78c77..44f22c135 100644 --- a/cdn/src/model/DescribeDomainPathDataRequest.cc +++ b/cdn/src/model/DescribeDomainPathDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainPathDataRequest::getCallerParentId()const void DescribeDomainPathDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainPathDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainPathDataRequest::getProxy_original_security_transport()const void DescribeDomainPathDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainPathDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainPathDataRequest::getStartTime()const void DescribeDomainPathDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainPathDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainPathDataRequest::getProxy_original_source_ip()const void DescribeDomainPathDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainPathDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainPathDataRequest::getOwnerIdLoginEmail()const void DescribeDomainPathDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainPathDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainPathDataRequest::getCallerType()const void DescribeDomainPathDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } int DescribeDomainPathDataRequest::getPageNumber()const @@ -99,7 +99,7 @@ int DescribeDomainPathDataRequest::getPageNumber()const void DescribeDomainPathDataRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDomainPathDataRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeDomainPathDataRequest::getAccessKeyId()const void DescribeDomainPathDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainPathDataRequest::getPath()const @@ -121,7 +121,7 @@ std::string DescribeDomainPathDataRequest::getPath()const void DescribeDomainPathDataRequest::setPath(const std::string& path) { path_ = path; - setParameter("Path", path); + setCoreParameter("Path", path); } std::string DescribeDomainPathDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDomainPathDataRequest::getSecurityToken()const void DescribeDomainPathDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainPathDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDomainPathDataRequest::getRequestContent()const void DescribeDomainPathDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } int DescribeDomainPathDataRequest::getPageSize()const @@ -154,7 +154,7 @@ int DescribeDomainPathDataRequest::getPageSize()const void DescribeDomainPathDataRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDomainPathDataRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainPathDataRequest::getCallerBidEmail()const void DescribeDomainPathDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainPathDataRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string DescribeDomainPathDataRequest::getCallerUidEmail()const void DescribeDomainPathDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainPathDataRequest::getCallerUid()const @@ -187,7 +187,7 @@ long DescribeDomainPathDataRequest::getCallerUid()const void DescribeDomainPathDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainPathDataRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string DescribeDomainPathDataRequest::getApp_ip()const void DescribeDomainPathDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainPathDataRequest::getPopProduct()const @@ -209,7 +209,7 @@ std::string DescribeDomainPathDataRequest::getPopProduct()const void DescribeDomainPathDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainPathDataRequest::getProduct()const @@ -220,7 +220,7 @@ std::string DescribeDomainPathDataRequest::getProduct()const void DescribeDomainPathDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainPathDataRequest::getDomainName()const @@ -231,7 +231,7 @@ std::string DescribeDomainPathDataRequest::getDomainName()const void DescribeDomainPathDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainPathDataRequest::getEndTime()const @@ -242,7 +242,7 @@ std::string DescribeDomainPathDataRequest::getEndTime()const void DescribeDomainPathDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainPathDataRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string DescribeDomainPathDataRequest::getCallerBid()const void DescribeDomainPathDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainPathDataRequest::getOwnerId()const @@ -264,7 +264,7 @@ long DescribeDomainPathDataRequest::getOwnerId()const void DescribeDomainPathDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainPathDataRequest::getVersion()const @@ -275,7 +275,7 @@ std::string DescribeDomainPathDataRequest::getVersion()const void DescribeDomainPathDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainPathDataRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool DescribeDomainPathDataRequest::getProxy_trust_transport_info()const void DescribeDomainPathDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainPathDataRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool DescribeDomainPathDataRequest::getAk_mfa_present()const void DescribeDomainPathDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainPathDataRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool DescribeDomainPathDataRequest::getSecurity_transport()const void DescribeDomainPathDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainPathDataRequest::getRequestId()const @@ -319,6 +319,6 @@ std::string DescribeDomainPathDataRequest::getRequestId()const void DescribeDomainPathDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeDomainPathDataResult.cc b/cdn/src/model/DescribeDomainPathDataResult.cc index 0e9afee87..483b02e37 100644 --- a/cdn/src/model/DescribeDomainPathDataResult.cc +++ b/cdn/src/model/DescribeDomainPathDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainPathDataResult::~DescribeDomainPathDataResult() void DescribeDomainPathDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPathDataPerInterval = value["PathDataPerInterval"]["UsageData"]; for (auto value : allPathDataPerInterval) diff --git a/cdn/src/model/DescribeDomainPvDataRequest.cc b/cdn/src/model/DescribeDomainPvDataRequest.cc index 2a99eb1ba..283258e16 100644 --- a/cdn/src/model/DescribeDomainPvDataRequest.cc +++ b/cdn/src/model/DescribeDomainPvDataRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainPvDataRequest::getSecurityToken()const void DescribeDomainPvDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainPvDataRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainPvDataRequest::getDomainName()const void DescribeDomainPvDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainPvDataRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainPvDataRequest::getEndTime()const void DescribeDomainPvDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainPvDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainPvDataRequest::getStartTime()const void DescribeDomainPvDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDomainPvDataRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DescribeDomainPvDataRequest::getOwnerId()const void DescribeDomainPvDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeDomainPvDataResult.cc b/cdn/src/model/DescribeDomainPvDataResult.cc index 9a4a44602..362dd1e5b 100644 --- a/cdn/src/model/DescribeDomainPvDataResult.cc +++ b/cdn/src/model/DescribeDomainPvDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainPvDataResult::~DescribeDomainPvDataResult() void DescribeDomainPvDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPvDataInterval = value["PvDataInterval"]["UsageData"]; for (auto value : allPvDataInterval) diff --git a/cdn/src/model/DescribeDomainQpsDataRequest.cc b/cdn/src/model/DescribeDomainQpsDataRequest.cc index 4fc9f2121..c63ebde7a 100644 --- a/cdn/src/model/DescribeDomainQpsDataRequest.cc +++ b/cdn/src/model/DescribeDomainQpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainQpsDataRequest::getCallerParentId()const void DescribeDomainQpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainQpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainQpsDataRequest::getProxy_original_security_transport()const void DescribeDomainQpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainQpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDomainQpsDataRequest::getLocationNameEn()const void DescribeDomainQpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainQpsDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainQpsDataRequest::getStartTime()const void DescribeDomainQpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainQpsDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDomainQpsDataRequest::getIspNameEn()const void DescribeDomainQpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainQpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDomainQpsDataRequest::getProxy_original_source_ip()const void DescribeDomainQpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainQpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDomainQpsDataRequest::getOwnerIdLoginEmail()const void DescribeDomainQpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainQpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDomainQpsDataRequest::getCallerType()const void DescribeDomainQpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainQpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDomainQpsDataRequest::getAccessKeyId()const void DescribeDomainQpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainQpsDataRequest::getDomainType()const @@ -132,7 +132,7 @@ std::string DescribeDomainQpsDataRequest::getDomainType()const void DescribeDomainQpsDataRequest::setDomainType(const std::string& domainType) { domainType_ = domainType; - setParameter("DomainType", domainType); + setCoreParameter("DomainType", domainType); } std::string DescribeDomainQpsDataRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string DescribeDomainQpsDataRequest::getSecurityToken()const void DescribeDomainQpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainQpsDataRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string DescribeDomainQpsDataRequest::getRequestContent()const void DescribeDomainQpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainQpsDataRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainQpsDataRequest::getCallerBidEmail()const void DescribeDomainQpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainQpsDataRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string DescribeDomainQpsDataRequest::getCallerUidEmail()const void DescribeDomainQpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainQpsDataRequest::getCallerUid()const @@ -187,7 +187,7 @@ long DescribeDomainQpsDataRequest::getCallerUid()const void DescribeDomainQpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainQpsDataRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string DescribeDomainQpsDataRequest::getApp_ip()const void DescribeDomainQpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainQpsDataRequest::getPopProduct()const @@ -209,7 +209,7 @@ std::string DescribeDomainQpsDataRequest::getPopProduct()const void DescribeDomainQpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainQpsDataRequest::getTimeMerge()const @@ -220,7 +220,7 @@ std::string DescribeDomainQpsDataRequest::getTimeMerge()const void DescribeDomainQpsDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDomainQpsDataRequest::getDomainName()const @@ -231,7 +231,7 @@ std::string DescribeDomainQpsDataRequest::getDomainName()const void DescribeDomainQpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainQpsDataRequest::getEndTime()const @@ -242,7 +242,7 @@ std::string DescribeDomainQpsDataRequest::getEndTime()const void DescribeDomainQpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainQpsDataRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string DescribeDomainQpsDataRequest::getCallerBid()const void DescribeDomainQpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainQpsDataRequest::getOwnerId()const @@ -264,7 +264,7 @@ long DescribeDomainQpsDataRequest::getOwnerId()const void DescribeDomainQpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainQpsDataRequest::getVersion()const @@ -275,7 +275,7 @@ std::string DescribeDomainQpsDataRequest::getVersion()const void DescribeDomainQpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainQpsDataRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool DescribeDomainQpsDataRequest::getProxy_trust_transport_info()const void DescribeDomainQpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainQpsDataRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool DescribeDomainQpsDataRequest::getAk_mfa_present()const void DescribeDomainQpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainQpsDataRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool DescribeDomainQpsDataRequest::getSecurity_transport()const void DescribeDomainQpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainQpsDataRequest::getRequestId()const @@ -319,7 +319,7 @@ std::string DescribeDomainQpsDataRequest::getRequestId()const void DescribeDomainQpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainQpsDataRequest::getInterval()const @@ -330,6 +330,6 @@ std::string DescribeDomainQpsDataRequest::getInterval()const void DescribeDomainQpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/cdn/src/model/DescribeDomainQpsDataResult.cc b/cdn/src/model/DescribeDomainQpsDataResult.cc index 52529a55b..3d87a54cc 100644 --- a/cdn/src/model/DescribeDomainQpsDataResult.cc +++ b/cdn/src/model/DescribeDomainQpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainQpsDataResult::~DescribeDomainQpsDataResult() void DescribeDomainQpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQpsDataInterval = value["QpsDataInterval"]["DataModule"]; for (auto value : allQpsDataInterval) diff --git a/cdn/src/model/DescribeDomainRealTimeBpsDataRequest.cc b/cdn/src/model/DescribeDomainRealTimeBpsDataRequest.cc index 3e780385c..19abe85a1 100644 --- a/cdn/src/model/DescribeDomainRealTimeBpsDataRequest.cc +++ b/cdn/src/model/DescribeDomainRealTimeBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRealTimeBpsDataRequest::getCallerParentId()const void DescribeDomainRealTimeBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRealTimeBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRealTimeBpsDataRequest::getProxy_original_security_transport( void DescribeDomainRealTimeBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeBpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getLocationNameEn()const void DescribeDomainRealTimeBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainRealTimeBpsDataRequest::getIspNameEn()const @@ -66,7 +66,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getIspNameEn()const void DescribeDomainRealTimeBpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainRealTimeBpsDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getStartTime()const void DescribeDomainRealTimeBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRealTimeBpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getProxy_original_source_ip()c void DescribeDomainRealTimeBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRealTimeBpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getOwnerIdLoginEmail()const void DescribeDomainRealTimeBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRealTimeBpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getCallerType()const void DescribeDomainRealTimeBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRealTimeBpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getAccessKeyId()const void DescribeDomainRealTimeBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRealTimeBpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getSecurityToken()const void DescribeDomainRealTimeBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRealTimeBpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getRequestContent()const void DescribeDomainRealTimeBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRealTimeBpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getCallerBidEmail()const void DescribeDomainRealTimeBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRealTimeBpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getCallerUidEmail()const void DescribeDomainRealTimeBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRealTimeBpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDomainRealTimeBpsDataRequest::getCallerUid()const void DescribeDomainRealTimeBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRealTimeBpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getApp_ip()const void DescribeDomainRealTimeBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRealTimeBpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getPopProduct()const void DescribeDomainRealTimeBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRealTimeBpsDataRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getDomainName()const void DescribeDomainRealTimeBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRealTimeBpsDataRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getEndTime()const void DescribeDomainRealTimeBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRealTimeBpsDataRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getCallerBid()const void DescribeDomainRealTimeBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRealTimeBpsDataRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDomainRealTimeBpsDataRequest::getOwnerId()const void DescribeDomainRealTimeBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRealTimeBpsDataRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getVersion()const void DescribeDomainRealTimeBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRealTimeBpsDataRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDomainRealTimeBpsDataRequest::getProxy_trust_transport_info()const void DescribeDomainRealTimeBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRealTimeBpsDataRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDomainRealTimeBpsDataRequest::getAk_mfa_present()const void DescribeDomainRealTimeBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRealTimeBpsDataRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDomainRealTimeBpsDataRequest::getSecurity_transport()const void DescribeDomainRealTimeBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeBpsDataRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getRequestId()const void DescribeDomainRealTimeBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainRealTimeBpsDataRequest::getInterval()const @@ -308,7 +308,7 @@ std::string DescribeDomainRealTimeBpsDataRequest::getInterval()const void DescribeDomainRealTimeBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainRealTimeBpsDataRequest::getFields()const @@ -319,6 +319,6 @@ std::string DescribeDomainRealTimeBpsDataRequest::getFields()const void DescribeDomainRealTimeBpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainRealTimeBpsDataResult.cc b/cdn/src/model/DescribeDomainRealTimeBpsDataResult.cc index f8c0eb2ea..cc47bbd31 100644 --- a/cdn/src/model/DescribeDomainRealTimeBpsDataResult.cc +++ b/cdn/src/model/DescribeDomainRealTimeBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRealTimeBpsDataResult::~DescribeDomainRealTimeBpsDataResult() void DescribeDomainRealTimeBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["BpsModel"]; for (auto value : allData) diff --git a/cdn/src/model/DescribeDomainRealTimeByteHitRateDataRequest.cc b/cdn/src/model/DescribeDomainRealTimeByteHitRateDataRequest.cc index f61cf7626..010e8c239 100644 --- a/cdn/src/model/DescribeDomainRealTimeByteHitRateDataRequest.cc +++ b/cdn/src/model/DescribeDomainRealTimeByteHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRealTimeByteHitRateDataRequest::getCallerParentId()const void DescribeDomainRealTimeByteHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRealTimeByteHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRealTimeByteHitRateDataRequest::getProxy_original_security_tr void DescribeDomainRealTimeByteHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getStartTime()const void DescribeDomainRealTimeByteHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getProxy_original_sour void DescribeDomainRealTimeByteHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getOwnerIdLoginEmail() void DescribeDomainRealTimeByteHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerType()const void DescribeDomainRealTimeByteHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getAccessKeyId()const void DescribeDomainRealTimeByteHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getSecurityToken()cons void DescribeDomainRealTimeByteHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getRequestContent()con void DescribeDomainRealTimeByteHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerBidEmail()con void DescribeDomainRealTimeByteHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerUidEmail()con void DescribeDomainRealTimeByteHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRealTimeByteHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainRealTimeByteHitRateDataRequest::getCallerUid()const void DescribeDomainRealTimeByteHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getApp_ip()const void DescribeDomainRealTimeByteHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getPopProduct()const void DescribeDomainRealTimeByteHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getDomainName()const @@ -187,7 +187,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getDomainName()const void DescribeDomainRealTimeByteHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getEndTime()const @@ -198,7 +198,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getEndTime()const void DescribeDomainRealTimeByteHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerBid()const @@ -209,7 +209,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getCallerBid()const void DescribeDomainRealTimeByteHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRealTimeByteHitRateDataRequest::getOwnerId()const @@ -220,7 +220,7 @@ long DescribeDomainRealTimeByteHitRateDataRequest::getOwnerId()const void DescribeDomainRealTimeByteHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getVersion()const @@ -231,7 +231,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getVersion()const void DescribeDomainRealTimeByteHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRealTimeByteHitRateDataRequest::getProxy_trust_transport_info()const @@ -242,7 +242,7 @@ bool DescribeDomainRealTimeByteHitRateDataRequest::getProxy_trust_transport_info void DescribeDomainRealTimeByteHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRealTimeByteHitRateDataRequest::getAk_mfa_present()const @@ -253,7 +253,7 @@ bool DescribeDomainRealTimeByteHitRateDataRequest::getAk_mfa_present()const void DescribeDomainRealTimeByteHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRealTimeByteHitRateDataRequest::getSecurity_transport()const @@ -264,7 +264,7 @@ bool DescribeDomainRealTimeByteHitRateDataRequest::getSecurity_transport()const void DescribeDomainRealTimeByteHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getRequestId()const @@ -275,7 +275,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getRequestId()const void DescribeDomainRealTimeByteHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getInterval()const @@ -286,7 +286,7 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getInterval()const void DescribeDomainRealTimeByteHitRateDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainRealTimeByteHitRateDataRequest::getFields()const @@ -297,6 +297,6 @@ std::string DescribeDomainRealTimeByteHitRateDataRequest::getFields()const void DescribeDomainRealTimeByteHitRateDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainRealTimeByteHitRateDataResult.cc b/cdn/src/model/DescribeDomainRealTimeByteHitRateDataResult.cc index e245c0a43..6316c9a0a 100644 --- a/cdn/src/model/DescribeDomainRealTimeByteHitRateDataResult.cc +++ b/cdn/src/model/DescribeDomainRealTimeByteHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRealTimeByteHitRateDataResult::~DescribeDomainRealTimeByteHitRateD void DescribeDomainRealTimeByteHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["ByteHitRateDataModel"]; for (auto value : allData) diff --git a/cdn/src/model/DescribeDomainRealTimeHttpCodeDataRequest.cc b/cdn/src/model/DescribeDomainRealTimeHttpCodeDataRequest.cc index a42dd1fec..f30931064 100644 --- a/cdn/src/model/DescribeDomainRealTimeHttpCodeDataRequest.cc +++ b/cdn/src/model/DescribeDomainRealTimeHttpCodeDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRealTimeHttpCodeDataRequest::getCallerParentId()const void DescribeDomainRealTimeHttpCodeDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRealTimeHttpCodeDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRealTimeHttpCodeDataRequest::getProxy_original_security_trans void DescribeDomainRealTimeHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getLocationNameEn()const void DescribeDomainRealTimeHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getStartTime()const void DescribeDomainRealTimeHttpCodeDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getIspNameEn()const void DescribeDomainRealTimeHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getProxy_original_source_ void DescribeDomainRealTimeHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getOwnerIdLoginEmail()con void DescribeDomainRealTimeHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerType()const void DescribeDomainRealTimeHttpCodeDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getAccessKeyId()const void DescribeDomainRealTimeHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getSecurityToken()const void DescribeDomainRealTimeHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getRequestContent()const void DescribeDomainRealTimeHttpCodeDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerBidEmail()const void DescribeDomainRealTimeHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerUidEmail()const void DescribeDomainRealTimeHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRealTimeHttpCodeDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDomainRealTimeHttpCodeDataRequest::getCallerUid()const void DescribeDomainRealTimeHttpCodeDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getApp_ip()const void DescribeDomainRealTimeHttpCodeDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getPopProduct()const void DescribeDomainRealTimeHttpCodeDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getProduct()const void DescribeDomainRealTimeHttpCodeDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getDomainName()const void DescribeDomainRealTimeHttpCodeDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getEndTime()const void DescribeDomainRealTimeHttpCodeDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getCallerBid()const void DescribeDomainRealTimeHttpCodeDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRealTimeHttpCodeDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeDomainRealTimeHttpCodeDataRequest::getOwnerId()const void DescribeDomainRealTimeHttpCodeDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getVersion()const void DescribeDomainRealTimeHttpCodeDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRealTimeHttpCodeDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeDomainRealTimeHttpCodeDataRequest::getProxy_trust_transport_info()c void DescribeDomainRealTimeHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRealTimeHttpCodeDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeDomainRealTimeHttpCodeDataRequest::getAk_mfa_present()const void DescribeDomainRealTimeHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRealTimeHttpCodeDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeDomainRealTimeHttpCodeDataRequest::getSecurity_transport()const void DescribeDomainRealTimeHttpCodeDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getRequestId()const void DescribeDomainRealTimeHttpCodeDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getInterval()const @@ -319,7 +319,7 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getInterval()const void DescribeDomainRealTimeHttpCodeDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainRealTimeHttpCodeDataRequest::getFields()const @@ -330,6 +330,6 @@ std::string DescribeDomainRealTimeHttpCodeDataRequest::getFields()const void DescribeDomainRealTimeHttpCodeDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainRealTimeHttpCodeDataResult.cc b/cdn/src/model/DescribeDomainRealTimeHttpCodeDataResult.cc index 64dfbb256..50929220c 100644 --- a/cdn/src/model/DescribeDomainRealTimeHttpCodeDataResult.cc +++ b/cdn/src/model/DescribeDomainRealTimeHttpCodeDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRealTimeHttpCodeDataResult::~DescribeDomainRealTimeHttpCodeDataRes void DescribeDomainRealTimeHttpCodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeHttpCodeData = value["RealTimeHttpCodeData"]["UsageData"]; for (auto value : allRealTimeHttpCodeData) diff --git a/cdn/src/model/DescribeDomainRealTimeQpsDataRequest.cc b/cdn/src/model/DescribeDomainRealTimeQpsDataRequest.cc index e71e7b287..820a10f4f 100644 --- a/cdn/src/model/DescribeDomainRealTimeQpsDataRequest.cc +++ b/cdn/src/model/DescribeDomainRealTimeQpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRealTimeQpsDataRequest::getCallerParentId()const void DescribeDomainRealTimeQpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRealTimeQpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRealTimeQpsDataRequest::getProxy_original_security_transport( void DescribeDomainRealTimeQpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeQpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getLocationNameEn()const void DescribeDomainRealTimeQpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDomainRealTimeQpsDataRequest::getIspNameEn()const @@ -66,7 +66,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getIspNameEn()const void DescribeDomainRealTimeQpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDomainRealTimeQpsDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getStartTime()const void DescribeDomainRealTimeQpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRealTimeQpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getProxy_original_source_ip()c void DescribeDomainRealTimeQpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRealTimeQpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getOwnerIdLoginEmail()const void DescribeDomainRealTimeQpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRealTimeQpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getCallerType()const void DescribeDomainRealTimeQpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRealTimeQpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getAccessKeyId()const void DescribeDomainRealTimeQpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRealTimeQpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getSecurityToken()const void DescribeDomainRealTimeQpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRealTimeQpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getRequestContent()const void DescribeDomainRealTimeQpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRealTimeQpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getCallerBidEmail()const void DescribeDomainRealTimeQpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRealTimeQpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getCallerUidEmail()const void DescribeDomainRealTimeQpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRealTimeQpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDomainRealTimeQpsDataRequest::getCallerUid()const void DescribeDomainRealTimeQpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRealTimeQpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getApp_ip()const void DescribeDomainRealTimeQpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRealTimeQpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getPopProduct()const void DescribeDomainRealTimeQpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRealTimeQpsDataRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getDomainName()const void DescribeDomainRealTimeQpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRealTimeQpsDataRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getEndTime()const void DescribeDomainRealTimeQpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRealTimeQpsDataRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getCallerBid()const void DescribeDomainRealTimeQpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRealTimeQpsDataRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDomainRealTimeQpsDataRequest::getOwnerId()const void DescribeDomainRealTimeQpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRealTimeQpsDataRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getVersion()const void DescribeDomainRealTimeQpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRealTimeQpsDataRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDomainRealTimeQpsDataRequest::getProxy_trust_transport_info()const void DescribeDomainRealTimeQpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRealTimeQpsDataRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDomainRealTimeQpsDataRequest::getAk_mfa_present()const void DescribeDomainRealTimeQpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRealTimeQpsDataRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDomainRealTimeQpsDataRequest::getSecurity_transport()const void DescribeDomainRealTimeQpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeQpsDataRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getRequestId()const void DescribeDomainRealTimeQpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainRealTimeQpsDataRequest::getInterval()const @@ -308,7 +308,7 @@ std::string DescribeDomainRealTimeQpsDataRequest::getInterval()const void DescribeDomainRealTimeQpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainRealTimeQpsDataRequest::getFields()const @@ -319,6 +319,6 @@ std::string DescribeDomainRealTimeQpsDataRequest::getFields()const void DescribeDomainRealTimeQpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainRealTimeQpsDataResult.cc b/cdn/src/model/DescribeDomainRealTimeQpsDataResult.cc index 2e43e0abd..01cc2c9a5 100644 --- a/cdn/src/model/DescribeDomainRealTimeQpsDataResult.cc +++ b/cdn/src/model/DescribeDomainRealTimeQpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRealTimeQpsDataResult::~DescribeDomainRealTimeQpsDataResult() void DescribeDomainRealTimeQpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["QpsModel"]; for (auto value : allData) diff --git a/cdn/src/model/DescribeDomainRealTimeReqHitRateDataRequest.cc b/cdn/src/model/DescribeDomainRealTimeReqHitRateDataRequest.cc index 446a43e64..6caccddee 100644 --- a/cdn/src/model/DescribeDomainRealTimeReqHitRateDataRequest.cc +++ b/cdn/src/model/DescribeDomainRealTimeReqHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRealTimeReqHitRateDataRequest::getCallerParentId()const void DescribeDomainRealTimeReqHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRealTimeReqHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRealTimeReqHitRateDataRequest::getProxy_original_security_tra void DescribeDomainRealTimeReqHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getStartTime()const void DescribeDomainRealTimeReqHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getProxy_original_sourc void DescribeDomainRealTimeReqHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getOwnerIdLoginEmail()c void DescribeDomainRealTimeReqHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerType()const void DescribeDomainRealTimeReqHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getAccessKeyId()const void DescribeDomainRealTimeReqHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getSecurityToken()const void DescribeDomainRealTimeReqHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getRequestContent()cons void DescribeDomainRealTimeReqHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerBidEmail()cons void DescribeDomainRealTimeReqHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerUidEmail()cons void DescribeDomainRealTimeReqHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRealTimeReqHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainRealTimeReqHitRateDataRequest::getCallerUid()const void DescribeDomainRealTimeReqHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getApp_ip()const void DescribeDomainRealTimeReqHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getPopProduct()const void DescribeDomainRealTimeReqHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getDomainName()const @@ -187,7 +187,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getDomainName()const void DescribeDomainRealTimeReqHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getEndTime()const @@ -198,7 +198,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getEndTime()const void DescribeDomainRealTimeReqHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerBid()const @@ -209,7 +209,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getCallerBid()const void DescribeDomainRealTimeReqHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRealTimeReqHitRateDataRequest::getOwnerId()const @@ -220,7 +220,7 @@ long DescribeDomainRealTimeReqHitRateDataRequest::getOwnerId()const void DescribeDomainRealTimeReqHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getVersion()const @@ -231,7 +231,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getVersion()const void DescribeDomainRealTimeReqHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRealTimeReqHitRateDataRequest::getProxy_trust_transport_info()const @@ -242,7 +242,7 @@ bool DescribeDomainRealTimeReqHitRateDataRequest::getProxy_trust_transport_info( void DescribeDomainRealTimeReqHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRealTimeReqHitRateDataRequest::getAk_mfa_present()const @@ -253,7 +253,7 @@ bool DescribeDomainRealTimeReqHitRateDataRequest::getAk_mfa_present()const void DescribeDomainRealTimeReqHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRealTimeReqHitRateDataRequest::getSecurity_transport()const @@ -264,7 +264,7 @@ bool DescribeDomainRealTimeReqHitRateDataRequest::getSecurity_transport()const void DescribeDomainRealTimeReqHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getRequestId()const @@ -275,7 +275,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getRequestId()const void DescribeDomainRealTimeReqHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getInterval()const @@ -286,7 +286,7 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getInterval()const void DescribeDomainRealTimeReqHitRateDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainRealTimeReqHitRateDataRequest::getFields()const @@ -297,6 +297,6 @@ std::string DescribeDomainRealTimeReqHitRateDataRequest::getFields()const void DescribeDomainRealTimeReqHitRateDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainRealTimeReqHitRateDataResult.cc b/cdn/src/model/DescribeDomainRealTimeReqHitRateDataResult.cc index e0f9ab945..e8258670b 100644 --- a/cdn/src/model/DescribeDomainRealTimeReqHitRateDataResult.cc +++ b/cdn/src/model/DescribeDomainRealTimeReqHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRealTimeReqHitRateDataResult::~DescribeDomainRealTimeReqHitRateDat void DescribeDomainRealTimeReqHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["ReqHitRateDataModel"]; for (auto value : allData) diff --git a/cdn/src/model/DescribeDomainRealTimeSrcBpsDataRequest.cc b/cdn/src/model/DescribeDomainRealTimeSrcBpsDataRequest.cc index 042df0e82..81010272f 100644 --- a/cdn/src/model/DescribeDomainRealTimeSrcBpsDataRequest.cc +++ b/cdn/src/model/DescribeDomainRealTimeSrcBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRealTimeSrcBpsDataRequest::getCallerParentId()const void DescribeDomainRealTimeSrcBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRealTimeSrcBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRealTimeSrcBpsDataRequest::getProxy_original_security_transpo void DescribeDomainRealTimeSrcBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getStartTime()const void DescribeDomainRealTimeSrcBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getProxy_original_source_ip void DescribeDomainRealTimeSrcBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getOwnerIdLoginEmail()const void DescribeDomainRealTimeSrcBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerType()const void DescribeDomainRealTimeSrcBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getAccessKeyId()const void DescribeDomainRealTimeSrcBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getSecurityToken()const void DescribeDomainRealTimeSrcBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getRequestContent()const void DescribeDomainRealTimeSrcBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerBidEmail()const void DescribeDomainRealTimeSrcBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerUidEmail()const void DescribeDomainRealTimeSrcBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRealTimeSrcBpsDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainRealTimeSrcBpsDataRequest::getCallerUid()const void DescribeDomainRealTimeSrcBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getApp_ip()const void DescribeDomainRealTimeSrcBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getPopProduct()const void DescribeDomainRealTimeSrcBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getProduct()const void DescribeDomainRealTimeSrcBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getDomainName()const void DescribeDomainRealTimeSrcBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getEndTime()const void DescribeDomainRealTimeSrcBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getCallerBid()const void DescribeDomainRealTimeSrcBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRealTimeSrcBpsDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDomainRealTimeSrcBpsDataRequest::getOwnerId()const void DescribeDomainRealTimeSrcBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getVersion()const void DescribeDomainRealTimeSrcBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRealTimeSrcBpsDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDomainRealTimeSrcBpsDataRequest::getProxy_trust_transport_info()con void DescribeDomainRealTimeSrcBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRealTimeSrcBpsDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDomainRealTimeSrcBpsDataRequest::getAk_mfa_present()const void DescribeDomainRealTimeSrcBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRealTimeSrcBpsDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDomainRealTimeSrcBpsDataRequest::getSecurity_transport()const void DescribeDomainRealTimeSrcBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getRequestId()const void DescribeDomainRealTimeSrcBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getInterval()const void DescribeDomainRealTimeSrcBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainRealTimeSrcBpsDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeDomainRealTimeSrcBpsDataRequest::getFields()const void DescribeDomainRealTimeSrcBpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainRealTimeSrcBpsDataResult.cc b/cdn/src/model/DescribeDomainRealTimeSrcBpsDataResult.cc index 359434de9..c5a3a44e8 100644 --- a/cdn/src/model/DescribeDomainRealTimeSrcBpsDataResult.cc +++ b/cdn/src/model/DescribeDomainRealTimeSrcBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRealTimeSrcBpsDataResult::~DescribeDomainRealTimeSrcBpsDataResult( void DescribeDomainRealTimeSrcBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeSrcBpsDataPerInterval = value["RealTimeSrcBpsDataPerInterval"]["DataModule"]; for (auto value : allRealTimeSrcBpsDataPerInterval) diff --git a/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataRequest.cc b/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataRequest.cc index 9052352bd..fd2099019 100644 --- a/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataRequest.cc +++ b/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRealTimeSrcTrafficDataRequest::getCallerParentId()const void DescribeDomainRealTimeSrcTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRealTimeSrcTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRealTimeSrcTrafficDataRequest::getProxy_original_security_tra void DescribeDomainRealTimeSrcTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getStartTime()const void DescribeDomainRealTimeSrcTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getProxy_original_sourc void DescribeDomainRealTimeSrcTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getOwnerIdLoginEmail()c void DescribeDomainRealTimeSrcTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerType()const void DescribeDomainRealTimeSrcTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getAccessKeyId()const void DescribeDomainRealTimeSrcTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getSecurityToken()const void DescribeDomainRealTimeSrcTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getRequestContent()cons void DescribeDomainRealTimeSrcTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerBidEmail()cons void DescribeDomainRealTimeSrcTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerUidEmail()cons void DescribeDomainRealTimeSrcTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRealTimeSrcTrafficDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainRealTimeSrcTrafficDataRequest::getCallerUid()const void DescribeDomainRealTimeSrcTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getApp_ip()const void DescribeDomainRealTimeSrcTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getPopProduct()const void DescribeDomainRealTimeSrcTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getProduct()const void DescribeDomainRealTimeSrcTrafficDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getDomainName()const void DescribeDomainRealTimeSrcTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getEndTime()const void DescribeDomainRealTimeSrcTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getCallerBid()const void DescribeDomainRealTimeSrcTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRealTimeSrcTrafficDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDomainRealTimeSrcTrafficDataRequest::getOwnerId()const void DescribeDomainRealTimeSrcTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getVersion()const void DescribeDomainRealTimeSrcTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRealTimeSrcTrafficDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDomainRealTimeSrcTrafficDataRequest::getProxy_trust_transport_info( void DescribeDomainRealTimeSrcTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRealTimeSrcTrafficDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDomainRealTimeSrcTrafficDataRequest::getAk_mfa_present()const void DescribeDomainRealTimeSrcTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRealTimeSrcTrafficDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDomainRealTimeSrcTrafficDataRequest::getSecurity_transport()const void DescribeDomainRealTimeSrcTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getRequestId()const void DescribeDomainRealTimeSrcTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getInterval()const void DescribeDomainRealTimeSrcTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainRealTimeSrcTrafficDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeDomainRealTimeSrcTrafficDataRequest::getFields()const void DescribeDomainRealTimeSrcTrafficDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataResult.cc b/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataResult.cc index d498b2a09..44f7933d9 100644 --- a/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataResult.cc +++ b/cdn/src/model/DescribeDomainRealTimeSrcTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRealTimeSrcTrafficDataResult::~DescribeDomainRealTimeSrcTrafficDat void DescribeDomainRealTimeSrcTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeSrcTrafficDataPerInterval = value["RealTimeSrcTrafficDataPerInterval"]["DataModule"]; for (auto value : allRealTimeSrcTrafficDataPerInterval) diff --git a/cdn/src/model/DescribeDomainRegionDataRequest.cc b/cdn/src/model/DescribeDomainRegionDataRequest.cc index d682b6741..ba7612b43 100644 --- a/cdn/src/model/DescribeDomainRegionDataRequest.cc +++ b/cdn/src/model/DescribeDomainRegionDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainRegionDataRequest::getCallerParentId()const void DescribeDomainRegionDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainRegionDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainRegionDataRequest::getProxy_original_security_transport()cons void DescribeDomainRegionDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainRegionDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainRegionDataRequest::getStartTime()const void DescribeDomainRegionDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainRegionDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainRegionDataRequest::getProxy_original_source_ip()const void DescribeDomainRegionDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainRegionDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainRegionDataRequest::getOwnerIdLoginEmail()const void DescribeDomainRegionDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainRegionDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainRegionDataRequest::getCallerType()const void DescribeDomainRegionDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainRegionDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainRegionDataRequest::getAccessKeyId()const void DescribeDomainRegionDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainRegionDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainRegionDataRequest::getSecurityToken()const void DescribeDomainRegionDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainRegionDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainRegionDataRequest::getRequestContent()const void DescribeDomainRegionDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainRegionDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainRegionDataRequest::getCallerBidEmail()const void DescribeDomainRegionDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainRegionDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainRegionDataRequest::getCallerUidEmail()const void DescribeDomainRegionDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainRegionDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainRegionDataRequest::getCallerUid()const void DescribeDomainRegionDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainRegionDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainRegionDataRequest::getApp_ip()const void DescribeDomainRegionDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainRegionDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainRegionDataRequest::getPopProduct()const void DescribeDomainRegionDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainRegionDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainRegionDataRequest::getProduct()const void DescribeDomainRegionDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainRegionDataRequest::getOutString()const @@ -198,7 +198,7 @@ std::string DescribeDomainRegionDataRequest::getOutString()const void DescribeDomainRegionDataRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeDomainRegionDataRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDomainRegionDataRequest::getDomainName()const void DescribeDomainRegionDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainRegionDataRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDomainRegionDataRequest::getEndTime()const void DescribeDomainRegionDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainRegionDataRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDomainRegionDataRequest::getCallerBid()const void DescribeDomainRegionDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainRegionDataRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDomainRegionDataRequest::getOwnerId()const void DescribeDomainRegionDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainRegionDataRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDomainRegionDataRequest::getVersion()const void DescribeDomainRegionDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainRegionDataRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDomainRegionDataRequest::getProxy_trust_transport_info()const void DescribeDomainRegionDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainRegionDataRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDomainRegionDataRequest::getAk_mfa_present()const void DescribeDomainRegionDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainRegionDataRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDomainRegionDataRequest::getSecurity_transport()const void DescribeDomainRegionDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainRegionDataRequest::getRequestId()const @@ -297,6 +297,6 @@ std::string DescribeDomainRegionDataRequest::getRequestId()const void DescribeDomainRegionDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeDomainRegionDataResult.cc b/cdn/src/model/DescribeDomainRegionDataResult.cc index 6cd321381..9ef099931 100644 --- a/cdn/src/model/DescribeDomainRegionDataResult.cc +++ b/cdn/src/model/DescribeDomainRegionDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainRegionDataResult::~DescribeDomainRegionDataResult() void DescribeDomainRegionDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allValue = value["Value"]["RegionProportionData"]; for (auto value : allValue) diff --git a/cdn/src/model/DescribeDomainReqHitRateDataRequest.cc b/cdn/src/model/DescribeDomainReqHitRateDataRequest.cc index 0bc36821c..b4bf1b3af 100644 --- a/cdn/src/model/DescribeDomainReqHitRateDataRequest.cc +++ b/cdn/src/model/DescribeDomainReqHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainReqHitRateDataRequest::getCallerParentId()const void DescribeDomainReqHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainReqHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainReqHitRateDataRequest::getProxy_original_security_transport() void DescribeDomainReqHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainReqHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainReqHitRateDataRequest::getStartTime()const void DescribeDomainReqHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainReqHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainReqHitRateDataRequest::getProxy_original_source_ip()co void DescribeDomainReqHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainReqHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainReqHitRateDataRequest::getOwnerIdLoginEmail()const void DescribeDomainReqHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainReqHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainReqHitRateDataRequest::getCallerType()const void DescribeDomainReqHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainReqHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainReqHitRateDataRequest::getAccessKeyId()const void DescribeDomainReqHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainReqHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainReqHitRateDataRequest::getSecurityToken()const void DescribeDomainReqHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainReqHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainReqHitRateDataRequest::getRequestContent()const void DescribeDomainReqHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainReqHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainReqHitRateDataRequest::getCallerBidEmail()const void DescribeDomainReqHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainReqHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainReqHitRateDataRequest::getCallerUidEmail()const void DescribeDomainReqHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainReqHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainReqHitRateDataRequest::getCallerUid()const void DescribeDomainReqHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainReqHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainReqHitRateDataRequest::getApp_ip()const void DescribeDomainReqHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainReqHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainReqHitRateDataRequest::getPopProduct()const void DescribeDomainReqHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainReqHitRateDataRequest::getOutString()const @@ -187,7 +187,7 @@ std::string DescribeDomainReqHitRateDataRequest::getOutString()const void DescribeDomainReqHitRateDataRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeDomainReqHitRateDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDomainReqHitRateDataRequest::getDomainName()const void DescribeDomainReqHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainReqHitRateDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDomainReqHitRateDataRequest::getEndTime()const void DescribeDomainReqHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainReqHitRateDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDomainReqHitRateDataRequest::getCallerBid()const void DescribeDomainReqHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainReqHitRateDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDomainReqHitRateDataRequest::getOwnerId()const void DescribeDomainReqHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainReqHitRateDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDomainReqHitRateDataRequest::getVersion()const void DescribeDomainReqHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainReqHitRateDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDomainReqHitRateDataRequest::getProxy_trust_transport_info()const void DescribeDomainReqHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainReqHitRateDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDomainReqHitRateDataRequest::getAk_mfa_present()const void DescribeDomainReqHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainReqHitRateDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDomainReqHitRateDataRequest::getSecurity_transport()const void DescribeDomainReqHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainReqHitRateDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeDomainReqHitRateDataRequest::getRequestId()const void DescribeDomainReqHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainReqHitRateDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeDomainReqHitRateDataRequest::getInterval()const void DescribeDomainReqHitRateDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainReqHitRateDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeDomainReqHitRateDataRequest::getFields()const void DescribeDomainReqHitRateDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainReqHitRateDataResult.cc b/cdn/src/model/DescribeDomainReqHitRateDataResult.cc index 805e55a63..1d1fbcfb6 100644 --- a/cdn/src/model/DescribeDomainReqHitRateDataResult.cc +++ b/cdn/src/model/DescribeDomainReqHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainReqHitRateDataResult::~DescribeDomainReqHitRateDataResult() void DescribeDomainReqHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allReqHitRateInterval = value["ReqHitRateInterval"]["DataModule"]; for (auto value : allReqHitRateInterval) diff --git a/cdn/src/model/DescribeDomainSlowRatioRequest.cc b/cdn/src/model/DescribeDomainSlowRatioRequest.cc index b2bf1ef2d..c2eb50779 100644 --- a/cdn/src/model/DescribeDomainSlowRatioRequest.cc +++ b/cdn/src/model/DescribeDomainSlowRatioRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainSlowRatioRequest::getCallerParentId()const void DescribeDomainSlowRatioRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainSlowRatioRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainSlowRatioRequest::getProxy_original_security_transport()const void DescribeDomainSlowRatioRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainSlowRatioRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainSlowRatioRequest::getStartTime()const void DescribeDomainSlowRatioRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainSlowRatioRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainSlowRatioRequest::getProxy_original_source_ip()const void DescribeDomainSlowRatioRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainSlowRatioRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainSlowRatioRequest::getOwnerIdLoginEmail()const void DescribeDomainSlowRatioRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainSlowRatioRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainSlowRatioRequest::getCallerType()const void DescribeDomainSlowRatioRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } int DescribeDomainSlowRatioRequest::getPageNumber()const @@ -99,7 +99,7 @@ int DescribeDomainSlowRatioRequest::getPageNumber()const void DescribeDomainSlowRatioRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDomainSlowRatioRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeDomainSlowRatioRequest::getAccessKeyId()const void DescribeDomainSlowRatioRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainSlowRatioRequest::getSecurityToken()const @@ -121,7 +121,7 @@ std::string DescribeDomainSlowRatioRequest::getSecurityToken()const void DescribeDomainSlowRatioRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainSlowRatioRequest::getRequestContent()const @@ -132,7 +132,7 @@ std::string DescribeDomainSlowRatioRequest::getRequestContent()const void DescribeDomainSlowRatioRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } int DescribeDomainSlowRatioRequest::getPageSize()const @@ -143,7 +143,7 @@ int DescribeDomainSlowRatioRequest::getPageSize()const void DescribeDomainSlowRatioRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDomainSlowRatioRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDomainSlowRatioRequest::getCallerBidEmail()const void DescribeDomainSlowRatioRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainSlowRatioRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDomainSlowRatioRequest::getCallerUidEmail()const void DescribeDomainSlowRatioRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainSlowRatioRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDomainSlowRatioRequest::getCallerUid()const void DescribeDomainSlowRatioRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainSlowRatioRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDomainSlowRatioRequest::getApp_ip()const void DescribeDomainSlowRatioRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainSlowRatioRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDomainSlowRatioRequest::getPopProduct()const void DescribeDomainSlowRatioRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainSlowRatioRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDomainSlowRatioRequest::getDomainName()const void DescribeDomainSlowRatioRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainSlowRatioRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDomainSlowRatioRequest::getEndTime()const void DescribeDomainSlowRatioRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainSlowRatioRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDomainSlowRatioRequest::getCallerBid()const void DescribeDomainSlowRatioRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainSlowRatioRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDomainSlowRatioRequest::getOwnerId()const void DescribeDomainSlowRatioRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainSlowRatioRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDomainSlowRatioRequest::getVersion()const void DescribeDomainSlowRatioRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainSlowRatioRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDomainSlowRatioRequest::getProxy_trust_transport_info()const void DescribeDomainSlowRatioRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainSlowRatioRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDomainSlowRatioRequest::getAk_mfa_present()const void DescribeDomainSlowRatioRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainSlowRatioRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDomainSlowRatioRequest::getSecurity_transport()const void DescribeDomainSlowRatioRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainSlowRatioRequest::getRequestId()const @@ -297,6 +297,6 @@ std::string DescribeDomainSlowRatioRequest::getRequestId()const void DescribeDomainSlowRatioRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeDomainSlowRatioResult.cc b/cdn/src/model/DescribeDomainSlowRatioResult.cc index 8d720452d..c5f1ebf72 100644 --- a/cdn/src/model/DescribeDomainSlowRatioResult.cc +++ b/cdn/src/model/DescribeDomainSlowRatioResult.cc @@ -35,10 +35,13 @@ DescribeDomainSlowRatioResult::~DescribeDomainSlowRatioResult() void DescribeDomainSlowRatioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSlowRatioDataPerInterval = value["SlowRatioDataPerInterval"]["SlowRatioData"]; for (auto value : allSlowRatioDataPerInterval) diff --git a/cdn/src/model/DescribeDomainSrcBpsDataRequest.cc b/cdn/src/model/DescribeDomainSrcBpsDataRequest.cc index 1884a606c..429b89aed 100644 --- a/cdn/src/model/DescribeDomainSrcBpsDataRequest.cc +++ b/cdn/src/model/DescribeDomainSrcBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainSrcBpsDataRequest::getCallerParentId()const void DescribeDomainSrcBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainSrcBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainSrcBpsDataRequest::getProxy_original_security_transport()cons void DescribeDomainSrcBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainSrcBpsDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainSrcBpsDataRequest::getStartTime()const void DescribeDomainSrcBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainSrcBpsDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainSrcBpsDataRequest::getProxy_original_source_ip()const void DescribeDomainSrcBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainSrcBpsDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainSrcBpsDataRequest::getOwnerIdLoginEmail()const void DescribeDomainSrcBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainSrcBpsDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainSrcBpsDataRequest::getCallerType()const void DescribeDomainSrcBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainSrcBpsDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainSrcBpsDataRequest::getAccessKeyId()const void DescribeDomainSrcBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainSrcBpsDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainSrcBpsDataRequest::getSecurityToken()const void DescribeDomainSrcBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainSrcBpsDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainSrcBpsDataRequest::getRequestContent()const void DescribeDomainSrcBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainSrcBpsDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainSrcBpsDataRequest::getCallerBidEmail()const void DescribeDomainSrcBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainSrcBpsDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainSrcBpsDataRequest::getCallerUidEmail()const void DescribeDomainSrcBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainSrcBpsDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainSrcBpsDataRequest::getCallerUid()const void DescribeDomainSrcBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainSrcBpsDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainSrcBpsDataRequest::getApp_ip()const void DescribeDomainSrcBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainSrcBpsDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainSrcBpsDataRequest::getPopProduct()const void DescribeDomainSrcBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainSrcBpsDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainSrcBpsDataRequest::getProduct()const void DescribeDomainSrcBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainSrcBpsDataRequest::getFixTimeGap()const @@ -198,7 +198,7 @@ std::string DescribeDomainSrcBpsDataRequest::getFixTimeGap()const void DescribeDomainSrcBpsDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDomainSrcBpsDataRequest::getTimeMerge()const @@ -209,7 +209,7 @@ std::string DescribeDomainSrcBpsDataRequest::getTimeMerge()const void DescribeDomainSrcBpsDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDomainSrcBpsDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeDomainSrcBpsDataRequest::getDomainName()const void DescribeDomainSrcBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainSrcBpsDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeDomainSrcBpsDataRequest::getEndTime()const void DescribeDomainSrcBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainSrcBpsDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeDomainSrcBpsDataRequest::getCallerBid()const void DescribeDomainSrcBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainSrcBpsDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeDomainSrcBpsDataRequest::getOwnerId()const void DescribeDomainSrcBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainSrcBpsDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeDomainSrcBpsDataRequest::getVersion()const void DescribeDomainSrcBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainSrcBpsDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeDomainSrcBpsDataRequest::getProxy_trust_transport_info()const void DescribeDomainSrcBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainSrcBpsDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeDomainSrcBpsDataRequest::getAk_mfa_present()const void DescribeDomainSrcBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainSrcBpsDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeDomainSrcBpsDataRequest::getSecurity_transport()const void DescribeDomainSrcBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainSrcBpsDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeDomainSrcBpsDataRequest::getRequestId()const void DescribeDomainSrcBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainSrcBpsDataRequest::getInterval()const @@ -319,7 +319,7 @@ std::string DescribeDomainSrcBpsDataRequest::getInterval()const void DescribeDomainSrcBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainSrcBpsDataRequest::getFields()const @@ -330,6 +330,6 @@ std::string DescribeDomainSrcBpsDataRequest::getFields()const void DescribeDomainSrcBpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainSrcBpsDataResult.cc b/cdn/src/model/DescribeDomainSrcBpsDataResult.cc index 1fe75dcd0..9fac84f2b 100644 --- a/cdn/src/model/DescribeDomainSrcBpsDataResult.cc +++ b/cdn/src/model/DescribeDomainSrcBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainSrcBpsDataResult::~DescribeDomainSrcBpsDataResult() void DescribeDomainSrcBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSrcBpsDataPerInterval = value["SrcBpsDataPerInterval"]["DataModule"]; for (auto value : allSrcBpsDataPerInterval) diff --git a/cdn/src/model/DescribeDomainSrcFlowDataRequest.cc b/cdn/src/model/DescribeDomainSrcFlowDataRequest.cc index 83d43b848..10a84ab8f 100644 --- a/cdn/src/model/DescribeDomainSrcFlowDataRequest.cc +++ b/cdn/src/model/DescribeDomainSrcFlowDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainSrcFlowDataRequest::getCallerParentId()const void DescribeDomainSrcFlowDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainSrcFlowDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainSrcFlowDataRequest::getProxy_original_security_transport()con void DescribeDomainSrcFlowDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainSrcFlowDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainSrcFlowDataRequest::getStartTime()const void DescribeDomainSrcFlowDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainSrcFlowDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainSrcFlowDataRequest::getProxy_original_source_ip()const void DescribeDomainSrcFlowDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainSrcFlowDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainSrcFlowDataRequest::getOwnerIdLoginEmail()const void DescribeDomainSrcFlowDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainSrcFlowDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainSrcFlowDataRequest::getCallerType()const void DescribeDomainSrcFlowDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainSrcFlowDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainSrcFlowDataRequest::getAccessKeyId()const void DescribeDomainSrcFlowDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainSrcFlowDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainSrcFlowDataRequest::getSecurityToken()const void DescribeDomainSrcFlowDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainSrcFlowDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainSrcFlowDataRequest::getRequestContent()const void DescribeDomainSrcFlowDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainSrcFlowDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainSrcFlowDataRequest::getCallerBidEmail()const void DescribeDomainSrcFlowDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainSrcFlowDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainSrcFlowDataRequest::getCallerUidEmail()const void DescribeDomainSrcFlowDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainSrcFlowDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainSrcFlowDataRequest::getCallerUid()const void DescribeDomainSrcFlowDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainSrcFlowDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainSrcFlowDataRequest::getApp_ip()const void DescribeDomainSrcFlowDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainSrcFlowDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainSrcFlowDataRequest::getPopProduct()const void DescribeDomainSrcFlowDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainSrcFlowDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainSrcFlowDataRequest::getProduct()const void DescribeDomainSrcFlowDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainSrcFlowDataRequest::getFixTimeGap()const @@ -198,7 +198,7 @@ std::string DescribeDomainSrcFlowDataRequest::getFixTimeGap()const void DescribeDomainSrcFlowDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDomainSrcFlowDataRequest::getTimeMerge()const @@ -209,7 +209,7 @@ std::string DescribeDomainSrcFlowDataRequest::getTimeMerge()const void DescribeDomainSrcFlowDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDomainSrcFlowDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeDomainSrcFlowDataRequest::getDomainName()const void DescribeDomainSrcFlowDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainSrcFlowDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeDomainSrcFlowDataRequest::getEndTime()const void DescribeDomainSrcFlowDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainSrcFlowDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeDomainSrcFlowDataRequest::getCallerBid()const void DescribeDomainSrcFlowDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainSrcFlowDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeDomainSrcFlowDataRequest::getOwnerId()const void DescribeDomainSrcFlowDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainSrcFlowDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeDomainSrcFlowDataRequest::getVersion()const void DescribeDomainSrcFlowDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainSrcFlowDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeDomainSrcFlowDataRequest::getProxy_trust_transport_info()const void DescribeDomainSrcFlowDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainSrcFlowDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeDomainSrcFlowDataRequest::getAk_mfa_present()const void DescribeDomainSrcFlowDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainSrcFlowDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeDomainSrcFlowDataRequest::getSecurity_transport()const void DescribeDomainSrcFlowDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainSrcFlowDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeDomainSrcFlowDataRequest::getRequestId()const void DescribeDomainSrcFlowDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDomainSrcFlowDataRequest::getInterval()const @@ -319,7 +319,7 @@ std::string DescribeDomainSrcFlowDataRequest::getInterval()const void DescribeDomainSrcFlowDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDomainSrcFlowDataRequest::getFields()const @@ -330,6 +330,6 @@ std::string DescribeDomainSrcFlowDataRequest::getFields()const void DescribeDomainSrcFlowDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/cdn/src/model/DescribeDomainSrcFlowDataResult.cc b/cdn/src/model/DescribeDomainSrcFlowDataResult.cc index 107da51e5..fd814993d 100644 --- a/cdn/src/model/DescribeDomainSrcFlowDataResult.cc +++ b/cdn/src/model/DescribeDomainSrcFlowDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainSrcFlowDataResult::~DescribeDomainSrcFlowDataResult() void DescribeDomainSrcFlowDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSrcFlowDataPerInterval = value["SrcFlowDataPerInterval"]["DataModule"]; for (auto value : allSrcFlowDataPerInterval) diff --git a/cdn/src/model/DescribeDomainTopReferVisitRequest.cc b/cdn/src/model/DescribeDomainTopReferVisitRequest.cc index f7c6a6d04..0cef20865 100644 --- a/cdn/src/model/DescribeDomainTopReferVisitRequest.cc +++ b/cdn/src/model/DescribeDomainTopReferVisitRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainTopReferVisitRequest::getSecurityToken()const void DescribeDomainTopReferVisitRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainTopReferVisitRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainTopReferVisitRequest::getDomainName()const void DescribeDomainTopReferVisitRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainTopReferVisitRequest::getSortBy()const @@ -55,7 +55,7 @@ std::string DescribeDomainTopReferVisitRequest::getSortBy()const void DescribeDomainTopReferVisitRequest::setSortBy(const std::string& sortBy) { sortBy_ = sortBy; - setParameter("SortBy", sortBy); + setCoreParameter("SortBy", sortBy); } std::string DescribeDomainTopReferVisitRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainTopReferVisitRequest::getStartTime()const void DescribeDomainTopReferVisitRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDomainTopReferVisitRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DescribeDomainTopReferVisitRequest::getOwnerId()const void DescribeDomainTopReferVisitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeDomainTopReferVisitResult.cc b/cdn/src/model/DescribeDomainTopReferVisitResult.cc index 3760fed75..f926dd7a5 100644 --- a/cdn/src/model/DescribeDomainTopReferVisitResult.cc +++ b/cdn/src/model/DescribeDomainTopReferVisitResult.cc @@ -35,10 +35,13 @@ DescribeDomainTopReferVisitResult::~DescribeDomainTopReferVisitResult() void DescribeDomainTopReferVisitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopReferList = value["TopReferList"]["ReferList"]; for (auto value : allTopReferList) diff --git a/cdn/src/model/DescribeDomainTopUrlVisitRequest.cc b/cdn/src/model/DescribeDomainTopUrlVisitRequest.cc index 2086da0f0..ba76ff1bc 100644 --- a/cdn/src/model/DescribeDomainTopUrlVisitRequest.cc +++ b/cdn/src/model/DescribeDomainTopUrlVisitRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainTopUrlVisitRequest::getSecurityToken()const void DescribeDomainTopUrlVisitRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainTopUrlVisitRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainTopUrlVisitRequest::getDomainName()const void DescribeDomainTopUrlVisitRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainTopUrlVisitRequest::getSortBy()const @@ -55,7 +55,7 @@ std::string DescribeDomainTopUrlVisitRequest::getSortBy()const void DescribeDomainTopUrlVisitRequest::setSortBy(const std::string& sortBy) { sortBy_ = sortBy; - setParameter("SortBy", sortBy); + setCoreParameter("SortBy", sortBy); } std::string DescribeDomainTopUrlVisitRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainTopUrlVisitRequest::getStartTime()const void DescribeDomainTopUrlVisitRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDomainTopUrlVisitRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DescribeDomainTopUrlVisitRequest::getOwnerId()const void DescribeDomainTopUrlVisitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeDomainTopUrlVisitResult.cc b/cdn/src/model/DescribeDomainTopUrlVisitResult.cc index 5fb019f7b..b71c8f586 100644 --- a/cdn/src/model/DescribeDomainTopUrlVisitResult.cc +++ b/cdn/src/model/DescribeDomainTopUrlVisitResult.cc @@ -35,10 +35,13 @@ DescribeDomainTopUrlVisitResult::~DescribeDomainTopUrlVisitResult() void DescribeDomainTopUrlVisitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAllUrlList = value["AllUrlList"]["UrlList"]; for (auto value : allAllUrlList) diff --git a/cdn/src/model/DescribeDomainUvDataRequest.cc b/cdn/src/model/DescribeDomainUvDataRequest.cc index c71b6fbe9..0f4b81534 100644 --- a/cdn/src/model/DescribeDomainUvDataRequest.cc +++ b/cdn/src/model/DescribeDomainUvDataRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainUvDataRequest::getSecurityToken()const void DescribeDomainUvDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainUvDataRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDomainUvDataRequest::getDomainName()const void DescribeDomainUvDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainUvDataRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainUvDataRequest::getEndTime()const void DescribeDomainUvDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainUvDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDomainUvDataRequest::getStartTime()const void DescribeDomainUvDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDomainUvDataRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DescribeDomainUvDataRequest::getOwnerId()const void DescribeDomainUvDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeDomainUvDataResult.cc b/cdn/src/model/DescribeDomainUvDataResult.cc index 04291ba52..c8ee8029c 100644 --- a/cdn/src/model/DescribeDomainUvDataResult.cc +++ b/cdn/src/model/DescribeDomainUvDataResult.cc @@ -35,10 +35,13 @@ DescribeDomainUvDataResult::~DescribeDomainUvDataResult() void DescribeDomainUvDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUvDataInterval = value["UvDataInterval"]["UsageData"]; for (auto value : allUvDataInterval) diff --git a/cdn/src/model/DescribeDomainsBySourceRequest.cc b/cdn/src/model/DescribeDomainsBySourceRequest.cc index 3b7a38084..bf458656a 100644 --- a/cdn/src/model/DescribeDomainsBySourceRequest.cc +++ b/cdn/src/model/DescribeDomainsBySourceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainsBySourceRequest::getSources()const void DescribeDomainsBySourceRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string DescribeDomainsBySourceRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeDomainsBySourceRequest::getSecurityToken()const void DescribeDomainsBySourceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeDomainsBySourceRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeDomainsBySourceRequest::getOwnerId()const void DescribeDomainsBySourceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeDomainsBySourceResult.cc b/cdn/src/model/DescribeDomainsBySourceResult.cc index ff8920586..c353bef21 100644 --- a/cdn/src/model/DescribeDomainsBySourceResult.cc +++ b/cdn/src/model/DescribeDomainsBySourceResult.cc @@ -35,10 +35,13 @@ DescribeDomainsBySourceResult::~DescribeDomainsBySourceResult() void DescribeDomainsBySourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainsList = value["DomainsList"]["DomainsData"]; for (auto value : allDomainsList) diff --git a/cdn/src/model/DescribeDomainsUsageByDayRequest.cc b/cdn/src/model/DescribeDomainsUsageByDayRequest.cc index bb52d39f8..4396ca9fb 100644 --- a/cdn/src/model/DescribeDomainsUsageByDayRequest.cc +++ b/cdn/src/model/DescribeDomainsUsageByDayRequest.cc @@ -33,7 +33,7 @@ long DescribeDomainsUsageByDayRequest::getCallerParentId()const void DescribeDomainsUsageByDayRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDomainsUsageByDayRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDomainsUsageByDayRequest::getProxy_original_security_transport()con void DescribeDomainsUsageByDayRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDomainsUsageByDayRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDomainsUsageByDayRequest::getStartTime()const void DescribeDomainsUsageByDayRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDomainsUsageByDayRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDomainsUsageByDayRequest::getProxy_original_source_ip()const void DescribeDomainsUsageByDayRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDomainsUsageByDayRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDomainsUsageByDayRequest::getOwnerIdLoginEmail()const void DescribeDomainsUsageByDayRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDomainsUsageByDayRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDomainsUsageByDayRequest::getCallerType()const void DescribeDomainsUsageByDayRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDomainsUsageByDayRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDomainsUsageByDayRequest::getAccessKeyId()const void DescribeDomainsUsageByDayRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDomainsUsageByDayRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDomainsUsageByDayRequest::getSecurityToken()const void DescribeDomainsUsageByDayRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDomainsUsageByDayRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDomainsUsageByDayRequest::getRequestContent()const void DescribeDomainsUsageByDayRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDomainsUsageByDayRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDomainsUsageByDayRequest::getCallerBidEmail()const void DescribeDomainsUsageByDayRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDomainsUsageByDayRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDomainsUsageByDayRequest::getCallerUidEmail()const void DescribeDomainsUsageByDayRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDomainsUsageByDayRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDomainsUsageByDayRequest::getCallerUid()const void DescribeDomainsUsageByDayRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDomainsUsageByDayRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDomainsUsageByDayRequest::getApp_ip()const void DescribeDomainsUsageByDayRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDomainsUsageByDayRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDomainsUsageByDayRequest::getPopProduct()const void DescribeDomainsUsageByDayRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDomainsUsageByDayRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDomainsUsageByDayRequest::getProduct()const void DescribeDomainsUsageByDayRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDomainsUsageByDayRequest::getOutString()const @@ -198,7 +198,7 @@ std::string DescribeDomainsUsageByDayRequest::getOutString()const void DescribeDomainsUsageByDayRequest::setOutString(const std::string& outString) { outString_ = outString; - setParameter("OutString", outString); + setCoreParameter("OutString", outString); } std::string DescribeDomainsUsageByDayRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDomainsUsageByDayRequest::getDomainName()const void DescribeDomainsUsageByDayRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDomainsUsageByDayRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDomainsUsageByDayRequest::getEndTime()const void DescribeDomainsUsageByDayRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDomainsUsageByDayRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDomainsUsageByDayRequest::getCallerBid()const void DescribeDomainsUsageByDayRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDomainsUsageByDayRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDomainsUsageByDayRequest::getOwnerId()const void DescribeDomainsUsageByDayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainsUsageByDayRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDomainsUsageByDayRequest::getVersion()const void DescribeDomainsUsageByDayRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDomainsUsageByDayRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDomainsUsageByDayRequest::getProxy_trust_transport_info()const void DescribeDomainsUsageByDayRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDomainsUsageByDayRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDomainsUsageByDayRequest::getAk_mfa_present()const void DescribeDomainsUsageByDayRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDomainsUsageByDayRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDomainsUsageByDayRequest::getSecurity_transport()const void DescribeDomainsUsageByDayRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDomainsUsageByDayRequest::getRequestId()const @@ -297,6 +297,6 @@ std::string DescribeDomainsUsageByDayRequest::getRequestId()const void DescribeDomainsUsageByDayRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeDomainsUsageByDayResult.cc b/cdn/src/model/DescribeDomainsUsageByDayResult.cc index b24640cf0..603cb3507 100644 --- a/cdn/src/model/DescribeDomainsUsageByDayResult.cc +++ b/cdn/src/model/DescribeDomainsUsageByDayResult.cc @@ -35,10 +35,13 @@ DescribeDomainsUsageByDayResult::~DescribeDomainsUsageByDayResult() void DescribeDomainsUsageByDayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUsageByDays = value["UsageByDays"]["UsageByDay"]; for (auto value : allUsageByDays) diff --git a/cdn/src/model/DescribeFCTriggerRequest.cc b/cdn/src/model/DescribeFCTriggerRequest.cc index 2a4222d25..ecea0c8ea 100644 --- a/cdn/src/model/DescribeFCTriggerRequest.cc +++ b/cdn/src/model/DescribeFCTriggerRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFCTriggerRequest::getTriggerARN()const void DescribeFCTriggerRequest::setTriggerARN(const std::string& triggerARN) { triggerARN_ = triggerARN; - setParameter("TriggerARN", triggerARN); + setCoreParameter("TriggerARN", triggerARN); } std::string DescribeFCTriggerRequest::getApp_ip()const @@ -44,7 +44,7 @@ std::string DescribeFCTriggerRequest::getApp_ip()const void DescribeFCTriggerRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeFCTriggerRequest::getPopProduct()const @@ -55,7 +55,7 @@ std::string DescribeFCTriggerRequest::getPopProduct()const void DescribeFCTriggerRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeFCTriggerRequest::getProduct()const @@ -66,7 +66,7 @@ std::string DescribeFCTriggerRequest::getProduct()const void DescribeFCTriggerRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeFCTriggerRequest::getCallerParentId()const @@ -77,7 +77,7 @@ long DescribeFCTriggerRequest::getCallerParentId()const void DescribeFCTriggerRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeFCTriggerRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeFCTriggerRequest::getProxy_original_security_transport()const void DescribeFCTriggerRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeFCTriggerRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeFCTriggerRequest::getCallerBid()const void DescribeFCTriggerRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeFCTriggerRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeFCTriggerRequest::getOwnerId()const void DescribeFCTriggerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeFCTriggerRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeFCTriggerRequest::getProxy_original_source_ip()const void DescribeFCTriggerRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeFCTriggerRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeFCTriggerRequest::getVersion()const void DescribeFCTriggerRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeFCTriggerRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeFCTriggerRequest::getOwnerIdLoginEmail()const void DescribeFCTriggerRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeFCTriggerRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeFCTriggerRequest::getCallerType()const void DescribeFCTriggerRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeFCTriggerRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeFCTriggerRequest::getProxy_trust_transport_info()const void DescribeFCTriggerRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeFCTriggerRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeFCTriggerRequest::getAk_mfa_present()const void DescribeFCTriggerRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeFCTriggerRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeFCTriggerRequest::getAccessKeyId()const void DescribeFCTriggerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeFCTriggerRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeFCTriggerRequest::getSecurity_transport()const void DescribeFCTriggerRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeFCTriggerRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeFCTriggerRequest::getSecurityToken()const void DescribeFCTriggerRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeFCTriggerRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeFCTriggerRequest::getRequestId()const void DescribeFCTriggerRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeFCTriggerRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeFCTriggerRequest::getRequestContent()const void DescribeFCTriggerRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeFCTriggerRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeFCTriggerRequest::getCallerBidEmail()const void DescribeFCTriggerRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeFCTriggerRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeFCTriggerRequest::getCallerUidEmail()const void DescribeFCTriggerRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeFCTriggerRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeFCTriggerRequest::getCallerUid()const void DescribeFCTriggerRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/DescribeFCTriggerResult.cc b/cdn/src/model/DescribeFCTriggerResult.cc index 43caffeb1..11a145c58 100644 --- a/cdn/src/model/DescribeFCTriggerResult.cc +++ b/cdn/src/model/DescribeFCTriggerResult.cc @@ -35,10 +35,13 @@ DescribeFCTriggerResult::~DescribeFCTriggerResult() void DescribeFCTriggerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto fCTriggerNode = value["FCTrigger"]; if(!fCTriggerNode["EventMetaName"].isNull()) diff --git a/cdn/src/model/DescribeIpInfoRequest.cc b/cdn/src/model/DescribeIpInfoRequest.cc index f7a2de2af..5f7058bba 100644 --- a/cdn/src/model/DescribeIpInfoRequest.cc +++ b/cdn/src/model/DescribeIpInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeIpInfoRequest::getSecurityToken()const void DescribeIpInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeIpInfoRequest::getIP()const @@ -44,7 +44,7 @@ std::string DescribeIpInfoRequest::getIP()const void DescribeIpInfoRequest::setIP(const std::string& iP) { iP_ = iP; - setParameter("IP", iP); + setCoreParameter("IP", iP); } long DescribeIpInfoRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeIpInfoRequest::getOwnerId()const void DescribeIpInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeIpInfoResult.cc b/cdn/src/model/DescribeIpInfoResult.cc index 87aec02bf..4b5b0ea84 100644 --- a/cdn/src/model/DescribeIpInfoResult.cc +++ b/cdn/src/model/DescribeIpInfoResult.cc @@ -35,10 +35,13 @@ DescribeIpInfoResult::~DescribeIpInfoResult() void DescribeIpInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CdnIp"].isNull()) cdnIp_ = value["CdnIp"].asString(); diff --git a/cdn/src/model/DescribeL2VipsByDomainRequest.cc b/cdn/src/model/DescribeL2VipsByDomainRequest.cc index 3fdea75e2..5f6d6e5ab 100644 --- a/cdn/src/model/DescribeL2VipsByDomainRequest.cc +++ b/cdn/src/model/DescribeL2VipsByDomainRequest.cc @@ -33,7 +33,7 @@ std::string DescribeL2VipsByDomainRequest::getSecurityToken()const void DescribeL2VipsByDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeL2VipsByDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeL2VipsByDomainRequest::getDomainName()const void DescribeL2VipsByDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeL2VipsByDomainRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeL2VipsByDomainRequest::getOwnerId()const void DescribeL2VipsByDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeL2VipsByDomainResult.cc b/cdn/src/model/DescribeL2VipsByDomainResult.cc index 68d48a45f..cb2e01e14 100644 --- a/cdn/src/model/DescribeL2VipsByDomainResult.cc +++ b/cdn/src/model/DescribeL2VipsByDomainResult.cc @@ -35,10 +35,13 @@ DescribeL2VipsByDomainResult::~DescribeL2VipsByDomainResult() void DescribeL2VipsByDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVips = value["Vips"]["Vip"]; for (const auto &item : allVips) diff --git a/cdn/src/model/DescribeL2VipsByDynamicDomainRequest.cc b/cdn/src/model/DescribeL2VipsByDynamicDomainRequest.cc index 6de52fcdc..9c88ae990 100644 --- a/cdn/src/model/DescribeL2VipsByDynamicDomainRequest.cc +++ b/cdn/src/model/DescribeL2VipsByDynamicDomainRequest.cc @@ -33,7 +33,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getApp_ip()const void DescribeL2VipsByDynamicDomainRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeL2VipsByDynamicDomainRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getPopProduct()const void DescribeL2VipsByDynamicDomainRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeL2VipsByDynamicDomainRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getProduct()const void DescribeL2VipsByDynamicDomainRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeL2VipsByDynamicDomainRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeL2VipsByDynamicDomainRequest::getCallerParentId()const void DescribeL2VipsByDynamicDomainRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeL2VipsByDynamicDomainRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getDomainName()const void DescribeL2VipsByDynamicDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeL2VipsByDynamicDomainRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeL2VipsByDynamicDomainRequest::getProxy_original_security_transport( void DescribeL2VipsByDynamicDomainRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeL2VipsByDynamicDomainRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getCallerBid()const void DescribeL2VipsByDynamicDomainRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeL2VipsByDynamicDomainRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeL2VipsByDynamicDomainRequest::getOwnerId()const void DescribeL2VipsByDynamicDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeL2VipsByDynamicDomainRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getProxy_original_source_ip()c void DescribeL2VipsByDynamicDomainRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeL2VipsByDynamicDomainRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getVersion()const void DescribeL2VipsByDynamicDomainRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeL2VipsByDynamicDomainRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getOwnerIdLoginEmail()const void DescribeL2VipsByDynamicDomainRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeL2VipsByDynamicDomainRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getCallerType()const void DescribeL2VipsByDynamicDomainRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeL2VipsByDynamicDomainRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeL2VipsByDynamicDomainRequest::getProxy_trust_transport_info()const void DescribeL2VipsByDynamicDomainRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeL2VipsByDynamicDomainRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeL2VipsByDynamicDomainRequest::getAk_mfa_present()const void DescribeL2VipsByDynamicDomainRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeL2VipsByDynamicDomainRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getAccessKeyId()const void DescribeL2VipsByDynamicDomainRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeL2VipsByDynamicDomainRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeL2VipsByDynamicDomainRequest::getSecurity_transport()const void DescribeL2VipsByDynamicDomainRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeL2VipsByDynamicDomainRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getSecurityToken()const void DescribeL2VipsByDynamicDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeL2VipsByDynamicDomainRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getRequestId()const void DescribeL2VipsByDynamicDomainRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeL2VipsByDynamicDomainRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getRequestContent()const void DescribeL2VipsByDynamicDomainRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeL2VipsByDynamicDomainRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getCallerBidEmail()const void DescribeL2VipsByDynamicDomainRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeL2VipsByDynamicDomainRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeL2VipsByDynamicDomainRequest::getCallerUidEmail()const void DescribeL2VipsByDynamicDomainRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeL2VipsByDynamicDomainRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeL2VipsByDynamicDomainRequest::getCallerUid()const void DescribeL2VipsByDynamicDomainRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/DescribeL2VipsByDynamicDomainResult.cc b/cdn/src/model/DescribeL2VipsByDynamicDomainResult.cc index c8bd4a8c3..4d5212109 100644 --- a/cdn/src/model/DescribeL2VipsByDynamicDomainResult.cc +++ b/cdn/src/model/DescribeL2VipsByDynamicDomainResult.cc @@ -35,10 +35,13 @@ DescribeL2VipsByDynamicDomainResult::~DescribeL2VipsByDynamicDomainResult() void DescribeL2VipsByDynamicDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVips = value["Vips"]["Vip"]; for (const auto &item : allVips) diff --git a/cdn/src/model/DescribeLivePullStreamConfigRequest.cc b/cdn/src/model/DescribeLivePullStreamConfigRequest.cc index 8f086c87d..282dd5a1d 100644 --- a/cdn/src/model/DescribeLivePullStreamConfigRequest.cc +++ b/cdn/src/model/DescribeLivePullStreamConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLivePullStreamConfigRequest::getSecurityToken()const void DescribeLivePullStreamConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLivePullStreamConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeLivePullStreamConfigRequest::getDomainName()const void DescribeLivePullStreamConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeLivePullStreamConfigRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeLivePullStreamConfigRequest::getOwnerId()const void DescribeLivePullStreamConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeLivePullStreamConfigResult.cc b/cdn/src/model/DescribeLivePullStreamConfigResult.cc index 4e7f24cc8..9b7e07220 100644 --- a/cdn/src/model/DescribeLivePullStreamConfigResult.cc +++ b/cdn/src/model/DescribeLivePullStreamConfigResult.cc @@ -35,10 +35,13 @@ DescribeLivePullStreamConfigResult::~DescribeLivePullStreamConfigResult() void DescribeLivePullStreamConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"]; for (auto value : allLiveAppRecordList) diff --git a/cdn/src/model/DescribeLiveRecordConfigRequest.cc b/cdn/src/model/DescribeLiveRecordConfigRequest.cc index 7f08c6231..074f37ff7 100644 --- a/cdn/src/model/DescribeLiveRecordConfigRequest.cc +++ b/cdn/src/model/DescribeLiveRecordConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveRecordConfigRequest::getSecurityToken()const void DescribeLiveRecordConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveRecordConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeLiveRecordConfigRequest::getDomainName()const void DescribeLiveRecordConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeLiveRecordConfigRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeLiveRecordConfigRequest::getOwnerId()const void DescribeLiveRecordConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeLiveRecordConfigResult.cc b/cdn/src/model/DescribeLiveRecordConfigResult.cc index 9aa688cf0..6f2f4ac8f 100644 --- a/cdn/src/model/DescribeLiveRecordConfigResult.cc +++ b/cdn/src/model/DescribeLiveRecordConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveRecordConfigResult::~DescribeLiveRecordConfigResult() void DescribeLiveRecordConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"]; for (auto value : allLiveAppRecordList) diff --git a/cdn/src/model/DescribeLiveSnapshotConfigRequest.cc b/cdn/src/model/DescribeLiveSnapshotConfigRequest.cc index 62b781c5e..b6c0d0ab4 100644 --- a/cdn/src/model/DescribeLiveSnapshotConfigRequest.cc +++ b/cdn/src/model/DescribeLiveSnapshotConfigRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveSnapshotConfigRequest::getAppName()const void DescribeLiveSnapshotConfigRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveSnapshotConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveSnapshotConfigRequest::getSecurityToken()const void DescribeLiveSnapshotConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveSnapshotConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveSnapshotConfigRequest::getDomainName()const void DescribeLiveSnapshotConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int DescribeLiveSnapshotConfigRequest::getPageSize()const @@ -66,7 +66,7 @@ int DescribeLiveSnapshotConfigRequest::getPageSize()const void DescribeLiveSnapshotConfigRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeLiveSnapshotConfigRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeLiveSnapshotConfigRequest::getOwnerId()const void DescribeLiveSnapshotConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeLiveSnapshotConfigRequest::getPageNum()const @@ -88,7 +88,7 @@ int DescribeLiveSnapshotConfigRequest::getPageNum()const void DescribeLiveSnapshotConfigRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string DescribeLiveSnapshotConfigRequest::getStreamName()const @@ -99,7 +99,7 @@ std::string DescribeLiveSnapshotConfigRequest::getStreamName()const void DescribeLiveSnapshotConfigRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } std::string DescribeLiveSnapshotConfigRequest::getOrder()const @@ -110,6 +110,6 @@ std::string DescribeLiveSnapshotConfigRequest::getOrder()const void DescribeLiveSnapshotConfigRequest::setOrder(const std::string& order) { order_ = order; - setParameter("Order", order); + setCoreParameter("Order", order); } diff --git a/cdn/src/model/DescribeLiveSnapshotConfigResult.cc b/cdn/src/model/DescribeLiveSnapshotConfigResult.cc index e127d6003..e2326653e 100644 --- a/cdn/src/model/DescribeLiveSnapshotConfigResult.cc +++ b/cdn/src/model/DescribeLiveSnapshotConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveSnapshotConfigResult::~DescribeLiveSnapshotConfigResult() void DescribeLiveSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveStreamSnapshotConfigList = value["LiveStreamSnapshotConfigList"]["LiveStreamSnapshotConfig"]; for (auto value : allLiveStreamSnapshotConfigList) diff --git a/cdn/src/model/DescribeLiveStreamBitRateDataRequest.cc b/cdn/src/model/DescribeLiveStreamBitRateDataRequest.cc index c62470b4b..6c2833932 100644 --- a/cdn/src/model/DescribeLiveStreamBitRateDataRequest.cc +++ b/cdn/src/model/DescribeLiveStreamBitRateDataRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamBitRateDataRequest::getAppName()const void DescribeLiveStreamBitRateDataRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamBitRateDataRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamBitRateDataRequest::getSecurityToken()const void DescribeLiveStreamBitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamBitRateDataRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamBitRateDataRequest::getDomainName()const void DescribeLiveStreamBitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeLiveStreamBitRateDataRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamBitRateDataRequest::getEndTime()const void DescribeLiveStreamBitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamBitRateDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamBitRateDataRequest::getStartTime()const void DescribeLiveStreamBitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamBitRateDataRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeLiveStreamBitRateDataRequest::getOwnerId()const void DescribeLiveStreamBitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamBitRateDataRequest::getStreamName()const @@ -99,6 +99,6 @@ std::string DescribeLiveStreamBitRateDataRequest::getStreamName()const void DescribeLiveStreamBitRateDataRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/DescribeLiveStreamBitRateDataResult.cc b/cdn/src/model/DescribeLiveStreamBitRateDataResult.cc index 079fd14c2..2c2af41b1 100644 --- a/cdn/src/model/DescribeLiveStreamBitRateDataResult.cc +++ b/cdn/src/model/DescribeLiveStreamBitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamBitRateDataResult::~DescribeLiveStreamBitRateDataResult() void DescribeLiveStreamBitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"]; for (auto value : allFrameRateAndBitRateInfos) diff --git a/cdn/src/model/DescribeLiveStreamOnlineUserNumRequest.cc b/cdn/src/model/DescribeLiveStreamOnlineUserNumRequest.cc index 0d3dd610d..76bfee2f5 100644 --- a/cdn/src/model/DescribeLiveStreamOnlineUserNumRequest.cc +++ b/cdn/src/model/DescribeLiveStreamOnlineUserNumRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamOnlineUserNumRequest::getAppName()const void DescribeLiveStreamOnlineUserNumRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamOnlineUserNumRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamOnlineUserNumRequest::getSecurityToken()const void DescribeLiveStreamOnlineUserNumRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamOnlineUserNumRequest::getHlsSwitch()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamOnlineUserNumRequest::getHlsSwitch()const void DescribeLiveStreamOnlineUserNumRequest::setHlsSwitch(const std::string& hlsSwitch) { hlsSwitch_ = hlsSwitch; - setParameter("HlsSwitch", hlsSwitch); + setCoreParameter("HlsSwitch", hlsSwitch); } std::string DescribeLiveStreamOnlineUserNumRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamOnlineUserNumRequest::getDomainName()const void DescribeLiveStreamOnlineUserNumRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeLiveStreamOnlineUserNumRequest::getEndTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamOnlineUserNumRequest::getEndTime()const void DescribeLiveStreamOnlineUserNumRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamOnlineUserNumRequest::getStartTime()const @@ -88,7 +88,7 @@ std::string DescribeLiveStreamOnlineUserNumRequest::getStartTime()const void DescribeLiveStreamOnlineUserNumRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamOnlineUserNumRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeLiveStreamOnlineUserNumRequest::getOwnerId()const void DescribeLiveStreamOnlineUserNumRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamOnlineUserNumRequest::getStreamName()const @@ -110,6 +110,6 @@ std::string DescribeLiveStreamOnlineUserNumRequest::getStreamName()const void DescribeLiveStreamOnlineUserNumRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/DescribeLiveStreamOnlineUserNumResult.cc b/cdn/src/model/DescribeLiveStreamOnlineUserNumResult.cc index d0f5abf9a..d31c55f56 100644 --- a/cdn/src/model/DescribeLiveStreamOnlineUserNumResult.cc +++ b/cdn/src/model/DescribeLiveStreamOnlineUserNumResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamOnlineUserNumResult::~DescribeLiveStreamOnlineUserNumResult() void DescribeLiveStreamOnlineUserNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"]; for (auto value : allOnlineUserInfo) diff --git a/cdn/src/model/DescribeLiveStreamRecordContentRequest.cc b/cdn/src/model/DescribeLiveStreamRecordContentRequest.cc index bc9665778..bd547b08e 100644 --- a/cdn/src/model/DescribeLiveStreamRecordContentRequest.cc +++ b/cdn/src/model/DescribeLiveStreamRecordContentRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamRecordContentRequest::getAppName()const void DescribeLiveStreamRecordContentRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamRecordContentRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamRecordContentRequest::getSecurityToken()const void DescribeLiveStreamRecordContentRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamRecordContentRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamRecordContentRequest::getDomainName()const void DescribeLiveStreamRecordContentRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeLiveStreamRecordContentRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamRecordContentRequest::getEndTime()const void DescribeLiveStreamRecordContentRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamRecordContentRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamRecordContentRequest::getStartTime()const void DescribeLiveStreamRecordContentRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamRecordContentRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeLiveStreamRecordContentRequest::getOwnerId()const void DescribeLiveStreamRecordContentRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamRecordContentRequest::getStreamName()const @@ -99,6 +99,6 @@ std::string DescribeLiveStreamRecordContentRequest::getStreamName()const void DescribeLiveStreamRecordContentRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/DescribeLiveStreamRecordContentResult.cc b/cdn/src/model/DescribeLiveStreamRecordContentResult.cc index 15d60beb4..a1dd1c753 100644 --- a/cdn/src/model/DescribeLiveStreamRecordContentResult.cc +++ b/cdn/src/model/DescribeLiveStreamRecordContentResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamRecordContentResult::~DescribeLiveStreamRecordContentResult() void DescribeLiveStreamRecordContentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordContentInfoList = value["RecordContentInfoList"]["RecordContentInfo"]; for (auto value : allRecordContentInfoList) diff --git a/cdn/src/model/DescribeLiveStreamRecordIndexFileRequest.cc b/cdn/src/model/DescribeLiveStreamRecordIndexFileRequest.cc index 225f0b226..d61d9978b 100644 --- a/cdn/src/model/DescribeLiveStreamRecordIndexFileRequest.cc +++ b/cdn/src/model/DescribeLiveStreamRecordIndexFileRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamRecordIndexFileRequest::getRecordId()const void DescribeLiveStreamRecordIndexFileRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string DescribeLiveStreamRecordIndexFileRequest::getAppName()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamRecordIndexFileRequest::getAppName()const void DescribeLiveStreamRecordIndexFileRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamRecordIndexFileRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamRecordIndexFileRequest::getSecurityToken()const void DescribeLiveStreamRecordIndexFileRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamRecordIndexFileRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamRecordIndexFileRequest::getDomainName()const void DescribeLiveStreamRecordIndexFileRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeLiveStreamRecordIndexFileRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeLiveStreamRecordIndexFileRequest::getOwnerId()const void DescribeLiveStreamRecordIndexFileRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamRecordIndexFileRequest::getStreamName()const @@ -88,6 +88,6 @@ std::string DescribeLiveStreamRecordIndexFileRequest::getStreamName()const void DescribeLiveStreamRecordIndexFileRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/DescribeLiveStreamRecordIndexFileResult.cc b/cdn/src/model/DescribeLiveStreamRecordIndexFileResult.cc index df7e9eaf8..0b9ce7c92 100644 --- a/cdn/src/model/DescribeLiveStreamRecordIndexFileResult.cc +++ b/cdn/src/model/DescribeLiveStreamRecordIndexFileResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamRecordIndexFileResult::~DescribeLiveStreamRecordIndexFileResul void DescribeLiveStreamRecordIndexFileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto recordIndexInfoNode = value["RecordIndexInfo"]; if(!recordIndexInfoNode["RecordId"].isNull()) diff --git a/cdn/src/model/DescribeLiveStreamRecordIndexFilesRequest.cc b/cdn/src/model/DescribeLiveStreamRecordIndexFilesRequest.cc index 7f35ec890..8b38f4f76 100644 --- a/cdn/src/model/DescribeLiveStreamRecordIndexFilesRequest.cc +++ b/cdn/src/model/DescribeLiveStreamRecordIndexFilesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamRecordIndexFilesRequest::getAppName()const void DescribeLiveStreamRecordIndexFilesRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamRecordIndexFilesRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamRecordIndexFilesRequest::getSecurityToken()const void DescribeLiveStreamRecordIndexFilesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamRecordIndexFilesRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamRecordIndexFilesRequest::getDomainName()const void DescribeLiveStreamRecordIndexFilesRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeLiveStreamRecordIndexFilesRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamRecordIndexFilesRequest::getEndTime()const void DescribeLiveStreamRecordIndexFilesRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamRecordIndexFilesRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamRecordIndexFilesRequest::getStartTime()const void DescribeLiveStreamRecordIndexFilesRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamRecordIndexFilesRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeLiveStreamRecordIndexFilesRequest::getOwnerId()const void DescribeLiveStreamRecordIndexFilesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamRecordIndexFilesRequest::getStreamName()const @@ -99,6 +99,6 @@ std::string DescribeLiveStreamRecordIndexFilesRequest::getStreamName()const void DescribeLiveStreamRecordIndexFilesRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/DescribeLiveStreamRecordIndexFilesResult.cc b/cdn/src/model/DescribeLiveStreamRecordIndexFilesResult.cc index 987e0c5a8..8bcc6943d 100644 --- a/cdn/src/model/DescribeLiveStreamRecordIndexFilesResult.cc +++ b/cdn/src/model/DescribeLiveStreamRecordIndexFilesResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamRecordIndexFilesResult::~DescribeLiveStreamRecordIndexFilesRes void DescribeLiveStreamRecordIndexFilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordIndexInfoList = value["RecordIndexInfoList"]["RecordIndexInfo"]; for (auto value : allRecordIndexInfoList) diff --git a/cdn/src/model/DescribeLiveStreamSnapshotInfoRequest.cc b/cdn/src/model/DescribeLiveStreamSnapshotInfoRequest.cc index 9edf779fe..f98d328bb 100644 --- a/cdn/src/model/DescribeLiveStreamSnapshotInfoRequest.cc +++ b/cdn/src/model/DescribeLiveStreamSnapshotInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamSnapshotInfoRequest::getAppName()const void DescribeLiveStreamSnapshotInfoRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamSnapshotInfoRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamSnapshotInfoRequest::getSecurityToken()const void DescribeLiveStreamSnapshotInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamSnapshotInfoRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamSnapshotInfoRequest::getDomainName()const void DescribeLiveStreamSnapshotInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int DescribeLiveStreamSnapshotInfoRequest::getLimit()const @@ -66,7 +66,7 @@ int DescribeLiveStreamSnapshotInfoRequest::getLimit()const void DescribeLiveStreamSnapshotInfoRequest::setLimit(int limit) { limit_ = limit; - setParameter("Limit", std::to_string(limit)); + setCoreParameter("Limit", std::to_string(limit)); } std::string DescribeLiveStreamSnapshotInfoRequest::getEndTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamSnapshotInfoRequest::getEndTime()const void DescribeLiveStreamSnapshotInfoRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamSnapshotInfoRequest::getStartTime()const @@ -88,7 +88,7 @@ std::string DescribeLiveStreamSnapshotInfoRequest::getStartTime()const void DescribeLiveStreamSnapshotInfoRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamSnapshotInfoRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeLiveStreamSnapshotInfoRequest::getOwnerId()const void DescribeLiveStreamSnapshotInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamSnapshotInfoRequest::getStreamName()const @@ -110,6 +110,6 @@ std::string DescribeLiveStreamSnapshotInfoRequest::getStreamName()const void DescribeLiveStreamSnapshotInfoRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/DescribeLiveStreamSnapshotInfoResult.cc b/cdn/src/model/DescribeLiveStreamSnapshotInfoResult.cc index 3c1ccb4ac..b5b73d807 100644 --- a/cdn/src/model/DescribeLiveStreamSnapshotInfoResult.cc +++ b/cdn/src/model/DescribeLiveStreamSnapshotInfoResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamSnapshotInfoResult::~DescribeLiveStreamSnapshotInfoResult() void DescribeLiveStreamSnapshotInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveStreamSnapshotInfoList = value["LiveStreamSnapshotInfoList"]["LiveStreamSnapshotInfo"]; for (auto value : allLiveStreamSnapshotInfoList) diff --git a/cdn/src/model/DescribeLiveStreamTranscodeInfoRequest.cc b/cdn/src/model/DescribeLiveStreamTranscodeInfoRequest.cc index bf42545c9..db74ca750 100644 --- a/cdn/src/model/DescribeLiveStreamTranscodeInfoRequest.cc +++ b/cdn/src/model/DescribeLiveStreamTranscodeInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamTranscodeInfoRequest::getSecurityToken()const void DescribeLiveStreamTranscodeInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeLiveStreamTranscodeInfoRequest::getOwnerId()const @@ -44,7 +44,7 @@ long DescribeLiveStreamTranscodeInfoRequest::getOwnerId()const void DescribeLiveStreamTranscodeInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamTranscodeInfoRequest::getDomainTranscodeName()const @@ -55,6 +55,6 @@ std::string DescribeLiveStreamTranscodeInfoRequest::getDomainTranscodeName()cons void DescribeLiveStreamTranscodeInfoRequest::setDomainTranscodeName(const std::string& domainTranscodeName) { domainTranscodeName_ = domainTranscodeName; - setParameter("DomainTranscodeName", domainTranscodeName); + setCoreParameter("DomainTranscodeName", domainTranscodeName); } diff --git a/cdn/src/model/DescribeLiveStreamTranscodeInfoResult.cc b/cdn/src/model/DescribeLiveStreamTranscodeInfoResult.cc index 9bb767d8c..c7f29a302 100644 --- a/cdn/src/model/DescribeLiveStreamTranscodeInfoResult.cc +++ b/cdn/src/model/DescribeLiveStreamTranscodeInfoResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamTranscodeInfoResult::~DescribeLiveStreamTranscodeInfoResult() void DescribeLiveStreamTranscodeInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainTranscodeList = value["DomainTranscodeList"]["DomainTranscodeInfo"]; for (auto value : allDomainTranscodeList) diff --git a/cdn/src/model/DescribeLiveStreamsBlockListRequest.cc b/cdn/src/model/DescribeLiveStreamsBlockListRequest.cc index dbede3a9d..f56ad5327 100644 --- a/cdn/src/model/DescribeLiveStreamsBlockListRequest.cc +++ b/cdn/src/model/DescribeLiveStreamsBlockListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamsBlockListRequest::getSecurityToken()const void DescribeLiveStreamsBlockListRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamsBlockListRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamsBlockListRequest::getDomainName()const void DescribeLiveStreamsBlockListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeLiveStreamsBlockListRequest::getOwnerId()const @@ -55,6 +55,6 @@ long DescribeLiveStreamsBlockListRequest::getOwnerId()const void DescribeLiveStreamsBlockListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeLiveStreamsBlockListResult.cc b/cdn/src/model/DescribeLiveStreamsBlockListResult.cc index 4ddf4cb7f..72c5a9218 100644 --- a/cdn/src/model/DescribeLiveStreamsBlockListResult.cc +++ b/cdn/src/model/DescribeLiveStreamsBlockListResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsBlockListResult::~DescribeLiveStreamsBlockListResult() void DescribeLiveStreamsBlockListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStreamUrls = value["StreamUrls"]["StreamUrl"]; for (const auto &item : allStreamUrls) diff --git a/cdn/src/model/DescribeLiveStreamsControlHistoryRequest.cc b/cdn/src/model/DescribeLiveStreamsControlHistoryRequest.cc index 617572f86..46321d646 100644 --- a/cdn/src/model/DescribeLiveStreamsControlHistoryRequest.cc +++ b/cdn/src/model/DescribeLiveStreamsControlHistoryRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamsControlHistoryRequest::getAppName()const void DescribeLiveStreamsControlHistoryRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamsControlHistoryRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamsControlHistoryRequest::getSecurityToken()const void DescribeLiveStreamsControlHistoryRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamsControlHistoryRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamsControlHistoryRequest::getDomainName()const void DescribeLiveStreamsControlHistoryRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeLiveStreamsControlHistoryRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamsControlHistoryRequest::getEndTime()const void DescribeLiveStreamsControlHistoryRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamsControlHistoryRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamsControlHistoryRequest::getStartTime()const void DescribeLiveStreamsControlHistoryRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamsControlHistoryRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DescribeLiveStreamsControlHistoryRequest::getOwnerId()const void DescribeLiveStreamsControlHistoryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeLiveStreamsControlHistoryResult.cc b/cdn/src/model/DescribeLiveStreamsControlHistoryResult.cc index 92135a6f9..dc32043a5 100644 --- a/cdn/src/model/DescribeLiveStreamsControlHistoryResult.cc +++ b/cdn/src/model/DescribeLiveStreamsControlHistoryResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsControlHistoryResult::~DescribeLiveStreamsControlHistoryResul void DescribeLiveStreamsControlHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allControlInfo = value["ControlInfo"]["LiveStreamControlInfo"]; for (auto value : allControlInfo) diff --git a/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc b/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc index e89830c29..811d80dd1 100644 --- a/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc +++ b/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getAppName()const void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getSecurityToken( void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getDomainName()co void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getEndTime()const void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getStartTime()con void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamsFrameRateAndBitRateDataRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeLiveStreamsFrameRateAndBitRateDataRequest::getOwnerId()const void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getStreamName()const @@ -99,6 +99,6 @@ std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getStreamName()co void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc b/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc index f360f4841..8bd9367e7 100644 --- a/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc +++ b/cdn/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsFrameRateAndBitRateDataResult::~DescribeLiveStreamsFrameRateA void DescribeLiveStreamsFrameRateAndBitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"]; for (auto value : allFrameRateAndBitRateInfos) diff --git a/cdn/src/model/DescribeLiveStreamsOnlineListRequest.cc b/cdn/src/model/DescribeLiveStreamsOnlineListRequest.cc index b1b63b497..b801f3bb6 100644 --- a/cdn/src/model/DescribeLiveStreamsOnlineListRequest.cc +++ b/cdn/src/model/DescribeLiveStreamsOnlineListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamsOnlineListRequest::getStreamType()const void DescribeLiveStreamsOnlineListRequest::setStreamType(const std::string& streamType) { streamType_ = streamType; - setParameter("StreamType", streamType); + setCoreParameter("StreamType", streamType); } std::string DescribeLiveStreamsOnlineListRequest::getAppName()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamsOnlineListRequest::getAppName()const void DescribeLiveStreamsOnlineListRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamsOnlineListRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamsOnlineListRequest::getSecurityToken()const void DescribeLiveStreamsOnlineListRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamsOnlineListRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DescribeLiveStreamsOnlineListRequest::getDomainName()const void DescribeLiveStreamsOnlineListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int DescribeLiveStreamsOnlineListRequest::getPageSize()const @@ -77,7 +77,7 @@ int DescribeLiveStreamsOnlineListRequest::getPageSize()const void DescribeLiveStreamsOnlineListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeLiveStreamsOnlineListRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeLiveStreamsOnlineListRequest::getOwnerId()const void DescribeLiveStreamsOnlineListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeLiveStreamsOnlineListRequest::getPageNum()const @@ -99,6 +99,6 @@ int DescribeLiveStreamsOnlineListRequest::getPageNum()const void DescribeLiveStreamsOnlineListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/cdn/src/model/DescribeLiveStreamsOnlineListResult.cc b/cdn/src/model/DescribeLiveStreamsOnlineListResult.cc index b1401bd71..8a802f067 100644 --- a/cdn/src/model/DescribeLiveStreamsOnlineListResult.cc +++ b/cdn/src/model/DescribeLiveStreamsOnlineListResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsOnlineListResult::~DescribeLiveStreamsOnlineListResult() void DescribeLiveStreamsOnlineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOnlineInfo = value["OnlineInfo"]["LiveStreamOnlineInfo"]; for (auto value : allOnlineInfo) diff --git a/cdn/src/model/DescribeLiveStreamsPublishListRequest.cc b/cdn/src/model/DescribeLiveStreamsPublishListRequest.cc index 0a826b819..ed2829ccd 100644 --- a/cdn/src/model/DescribeLiveStreamsPublishListRequest.cc +++ b/cdn/src/model/DescribeLiveStreamsPublishListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLiveStreamsPublishListRequest::getAppName()const void DescribeLiveStreamsPublishListRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string DescribeLiveStreamsPublishListRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeLiveStreamsPublishListRequest::getSecurityToken()const void DescribeLiveStreamsPublishListRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeLiveStreamsPublishListRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeLiveStreamsPublishListRequest::getDomainName()const void DescribeLiveStreamsPublishListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeLiveStreamsPublishListRequest::getPageSize()const @@ -66,7 +66,7 @@ long DescribeLiveStreamsPublishListRequest::getPageSize()const void DescribeLiveStreamsPublishListRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeLiveStreamsPublishListRequest::getEndTime()const @@ -77,7 +77,7 @@ std::string DescribeLiveStreamsPublishListRequest::getEndTime()const void DescribeLiveStreamsPublishListRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeLiveStreamsPublishListRequest::getStartTime()const @@ -88,7 +88,7 @@ std::string DescribeLiveStreamsPublishListRequest::getStartTime()const void DescribeLiveStreamsPublishListRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeLiveStreamsPublishListRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeLiveStreamsPublishListRequest::getOwnerId()const void DescribeLiveStreamsPublishListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLiveStreamsPublishListRequest::getStreamName()const @@ -110,7 +110,7 @@ std::string DescribeLiveStreamsPublishListRequest::getStreamName()const void DescribeLiveStreamsPublishListRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } long DescribeLiveStreamsPublishListRequest::getPageNumber()const @@ -121,6 +121,6 @@ long DescribeLiveStreamsPublishListRequest::getPageNumber()const void DescribeLiveStreamsPublishListRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cdn/src/model/DescribeLiveStreamsPublishListResult.cc b/cdn/src/model/DescribeLiveStreamsPublishListResult.cc index 7cad8cfee..8c2201b0a 100644 --- a/cdn/src/model/DescribeLiveStreamsPublishListResult.cc +++ b/cdn/src/model/DescribeLiveStreamsPublishListResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsPublishListResult::~DescribeLiveStreamsPublishListResult() void DescribeLiveStreamsPublishListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPublishInfo = value["PublishInfo"]["LiveStreamPublishInfo"]; for (auto value : allPublishInfo) diff --git a/cdn/src/model/DescribeRangeDataByLocateAndIspServiceRequest.cc b/cdn/src/model/DescribeRangeDataByLocateAndIspServiceRequest.cc index 73b376491..3492e1e5d 100644 --- a/cdn/src/model/DescribeRangeDataByLocateAndIspServiceRequest.cc +++ b/cdn/src/model/DescribeRangeDataByLocateAndIspServiceRequest.cc @@ -25,26 +25,26 @@ DescribeRangeDataByLocateAndIspServiceRequest::DescribeRangeDataByLocateAndIspSe DescribeRangeDataByLocateAndIspServiceRequest::~DescribeRangeDataByLocateAndIspServiceRequest() {} -std::string DescribeRangeDataByLocateAndIspServiceRequest::getIspNames()const +long DescribeRangeDataByLocateAndIspServiceRequest::getResourceOwnerId()const { - return ispNames_; + return resourceOwnerId_; } -void DescribeRangeDataByLocateAndIspServiceRequest::setIspNames(const std::string& ispNames) +void DescribeRangeDataByLocateAndIspServiceRequest::setResourceOwnerId(long resourceOwnerId) { - ispNames_ = ispNames; - setParameter("IspNames", ispNames); + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -std::string DescribeRangeDataByLocateAndIspServiceRequest::getSecurityToken()const +long DescribeRangeDataByLocateAndIspServiceRequest::getCallerParentId()const { - return securityToken_; + return callerParentId_; } -void DescribeRangeDataByLocateAndIspServiceRequest::setSecurityToken(const std::string& securityToken) +void DescribeRangeDataByLocateAndIspServiceRequest::setCallerParentId(long callerParentId) { - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeRangeDataByLocateAndIspServiceRequest::getDomainNames()const @@ -55,7 +55,7 @@ std::string DescribeRangeDataByLocateAndIspServiceRequest::getDomainNames()const void DescribeRangeDataByLocateAndIspServiceRequest::setDomainNames(const std::string& domainNames) { domainNames_ = domainNames; - setParameter("DomainNames", domainNames); + setCoreParameter("DomainNames", domainNames); } std::string DescribeRangeDataByLocateAndIspServiceRequest::getLocationNames()const @@ -66,18 +66,18 @@ std::string DescribeRangeDataByLocateAndIspServiceRequest::getLocationNames()con void DescribeRangeDataByLocateAndIspServiceRequest::setLocationNames(const std::string& locationNames) { locationNames_ = locationNames; - setParameter("LocationNames", locationNames); + setCoreParameter("LocationNames", locationNames); } -std::string DescribeRangeDataByLocateAndIspServiceRequest::getEndTime()const +bool DescribeRangeDataByLocateAndIspServiceRequest::getProxy_original_security_transport()const { - return endTime_; + return proxy_original_security_transport_; } -void DescribeRangeDataByLocateAndIspServiceRequest::setEndTime(const std::string& endTime) +void DescribeRangeDataByLocateAndIspServiceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { - endTime_ = endTime; - setParameter("EndTime", endTime); + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeRangeDataByLocateAndIspServiceRequest::getStartTime()const @@ -88,7 +88,183 @@ std::string DescribeRangeDataByLocateAndIspServiceRequest::getStartTime()const void DescribeRangeDataByLocateAndIspServiceRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRangeDataByLocateAndIspServiceRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getIspNames()const +{ + return ispNames_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setIspNames(const std::string& ispNames) +{ + ispNames_ = ispNames; + setCoreParameter("IspNames", ispNames); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getProduct()const +{ + return product_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setProduct(const std::string& product) +{ + product_ = product; + setCoreParameter("Product", product); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getWithBug()const +{ + return withBug_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setWithBug(const std::string& withBug) +{ + withBug_ = withBug; + setCoreParameter("WithBug", withBug); } long DescribeRangeDataByLocateAndIspServiceRequest::getOwnerId()const @@ -99,6 +275,61 @@ long DescribeRangeDataByLocateAndIspServiceRequest::getOwnerId()const void DescribeRangeDataByLocateAndIspServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getVersion()const +{ + return version_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRangeDataByLocateAndIspServiceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRangeDataByLocateAndIspServiceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRangeDataByLocateAndIspServiceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRangeDataByLocateAndIspServiceRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRangeDataByLocateAndIspServiceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeRangeDataByLocateAndIspServiceResult.cc b/cdn/src/model/DescribeRangeDataByLocateAndIspServiceResult.cc index c0d69e667..208561aaf 100644 --- a/cdn/src/model/DescribeRangeDataByLocateAndIspServiceResult.cc +++ b/cdn/src/model/DescribeRangeDataByLocateAndIspServiceResult.cc @@ -35,10 +35,13 @@ DescribeRangeDataByLocateAndIspServiceResult::~DescribeRangeDataByLocateAndIspSe void DescribeRangeDataByLocateAndIspServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JsonResult"].isNull()) jsonResult_ = value["JsonResult"].asString(); diff --git a/cdn/src/model/DescribeRefreshQuotaRequest.cc b/cdn/src/model/DescribeRefreshQuotaRequest.cc index 544373312..7bae49c3c 100644 --- a/cdn/src/model/DescribeRefreshQuotaRequest.cc +++ b/cdn/src/model/DescribeRefreshQuotaRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRefreshQuotaRequest::getSecurityToken()const void DescribeRefreshQuotaRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeRefreshQuotaRequest::getOwnerId()const @@ -44,6 +44,6 @@ long DescribeRefreshQuotaRequest::getOwnerId()const void DescribeRefreshQuotaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeRefreshQuotaResult.cc b/cdn/src/model/DescribeRefreshQuotaResult.cc index 981c7725e..0531359ed 100644 --- a/cdn/src/model/DescribeRefreshQuotaResult.cc +++ b/cdn/src/model/DescribeRefreshQuotaResult.cc @@ -35,10 +35,13 @@ DescribeRefreshQuotaResult::~DescribeRefreshQuotaResult() void DescribeRefreshQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["UrlQuota"].isNull()) urlQuota_ = value["UrlQuota"].asString(); diff --git a/cdn/src/model/DescribeRefreshTasksRequest.cc b/cdn/src/model/DescribeRefreshTasksRequest.cc index e33e957c9..4284f5fab 100644 --- a/cdn/src/model/DescribeRefreshTasksRequest.cc +++ b/cdn/src/model/DescribeRefreshTasksRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRefreshTasksRequest::getObjectPath()const void DescribeRefreshTasksRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } std::string DescribeRefreshTasksRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeRefreshTasksRequest::getDomainName()const void DescribeRefreshTasksRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeRefreshTasksRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string DescribeRefreshTasksRequest::getEndTime()const void DescribeRefreshTasksRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeRefreshTasksRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeRefreshTasksRequest::getStartTime()const void DescribeRefreshTasksRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeRefreshTasksRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeRefreshTasksRequest::getOwnerId()const void DescribeRefreshTasksRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeRefreshTasksRequest::getPageNumber()const @@ -88,7 +88,7 @@ int DescribeRefreshTasksRequest::getPageNumber()const void DescribeRefreshTasksRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeRefreshTasksRequest::getResourceGroupId()const @@ -99,7 +99,7 @@ std::string DescribeRefreshTasksRequest::getResourceGroupId()const void DescribeRefreshTasksRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeRefreshTasksRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeRefreshTasksRequest::getSecurityToken()const void DescribeRefreshTasksRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } int DescribeRefreshTasksRequest::getPageSize()const @@ -121,7 +121,7 @@ int DescribeRefreshTasksRequest::getPageSize()const void DescribeRefreshTasksRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeRefreshTasksRequest::getObjectType()const @@ -132,7 +132,7 @@ std::string DescribeRefreshTasksRequest::getObjectType()const void DescribeRefreshTasksRequest::setObjectType(const std::string& objectType) { objectType_ = objectType; - setParameter("ObjectType", objectType); + setCoreParameter("ObjectType", objectType); } std::string DescribeRefreshTasksRequest::getTaskId()const @@ -143,7 +143,7 @@ std::string DescribeRefreshTasksRequest::getTaskId()const void DescribeRefreshTasksRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string DescribeRefreshTasksRequest::getStatus()const @@ -154,6 +154,6 @@ std::string DescribeRefreshTasksRequest::getStatus()const void DescribeRefreshTasksRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cdn/src/model/DescribeRefreshTasksResult.cc b/cdn/src/model/DescribeRefreshTasksResult.cc index d66c0a04b..1f97ef6f6 100644 --- a/cdn/src/model/DescribeRefreshTasksResult.cc +++ b/cdn/src/model/DescribeRefreshTasksResult.cc @@ -35,10 +35,13 @@ DescribeRefreshTasksResult::~DescribeRefreshTasksResult() void DescribeRefreshTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["CDNTask"]; for (auto value : allTasks) diff --git a/cdn/src/model/DescribeTopDomainsByFlowRequest.cc b/cdn/src/model/DescribeTopDomainsByFlowRequest.cc index 3e61af309..da8929c65 100644 --- a/cdn/src/model/DescribeTopDomainsByFlowRequest.cc +++ b/cdn/src/model/DescribeTopDomainsByFlowRequest.cc @@ -33,7 +33,7 @@ long DescribeTopDomainsByFlowRequest::getResourceOwnerId()const void DescribeTopDomainsByFlowRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DescribeTopDomainsByFlowRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeTopDomainsByFlowRequest::getCallerParentId()const void DescribeTopDomainsByFlowRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeTopDomainsByFlowRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeTopDomainsByFlowRequest::getProxy_original_security_transport()cons void DescribeTopDomainsByFlowRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeTopDomainsByFlowRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeTopDomainsByFlowRequest::getStartTime()const void DescribeTopDomainsByFlowRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeTopDomainsByFlowRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string DescribeTopDomainsByFlowRequest::getProxy_original_source_ip()const void DescribeTopDomainsByFlowRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeTopDomainsByFlowRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string DescribeTopDomainsByFlowRequest::getOwnerIdLoginEmail()const void DescribeTopDomainsByFlowRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeTopDomainsByFlowRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string DescribeTopDomainsByFlowRequest::getCallerType()const void DescribeTopDomainsByFlowRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeTopDomainsByFlowRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeTopDomainsByFlowRequest::getAccessKeyId()const void DescribeTopDomainsByFlowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeTopDomainsByFlowRequest::getSecurityToken()const @@ -121,7 +121,7 @@ std::string DescribeTopDomainsByFlowRequest::getSecurityToken()const void DescribeTopDomainsByFlowRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeTopDomainsByFlowRequest::getRequestContent()const @@ -132,7 +132,7 @@ std::string DescribeTopDomainsByFlowRequest::getRequestContent()const void DescribeTopDomainsByFlowRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } long DescribeTopDomainsByFlowRequest::getLimit()const @@ -143,7 +143,7 @@ long DescribeTopDomainsByFlowRequest::getLimit()const void DescribeTopDomainsByFlowRequest::setLimit(long limit) { limit_ = limit; - setParameter("Limit", std::to_string(limit)); + setCoreParameter("Limit", std::to_string(limit)); } std::string DescribeTopDomainsByFlowRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeTopDomainsByFlowRequest::getCallerBidEmail()const void DescribeTopDomainsByFlowRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeTopDomainsByFlowRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeTopDomainsByFlowRequest::getCallerUidEmail()const void DescribeTopDomainsByFlowRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeTopDomainsByFlowRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeTopDomainsByFlowRequest::getCallerUid()const void DescribeTopDomainsByFlowRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeTopDomainsByFlowRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeTopDomainsByFlowRequest::getApp_ip()const void DescribeTopDomainsByFlowRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeTopDomainsByFlowRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeTopDomainsByFlowRequest::getPopProduct()const void DescribeTopDomainsByFlowRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeTopDomainsByFlowRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeTopDomainsByFlowRequest::getProduct()const void DescribeTopDomainsByFlowRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeTopDomainsByFlowRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeTopDomainsByFlowRequest::getEndTime()const void DescribeTopDomainsByFlowRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeTopDomainsByFlowRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeTopDomainsByFlowRequest::getCallerBid()const void DescribeTopDomainsByFlowRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeTopDomainsByFlowRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeTopDomainsByFlowRequest::getOwnerId()const void DescribeTopDomainsByFlowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeTopDomainsByFlowRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeTopDomainsByFlowRequest::getVersion()const void DescribeTopDomainsByFlowRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeTopDomainsByFlowRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeTopDomainsByFlowRequest::getProxy_trust_transport_info()const void DescribeTopDomainsByFlowRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeTopDomainsByFlowRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeTopDomainsByFlowRequest::getAk_mfa_present()const void DescribeTopDomainsByFlowRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeTopDomainsByFlowRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeTopDomainsByFlowRequest::getSecurity_transport()const void DescribeTopDomainsByFlowRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeTopDomainsByFlowRequest::getRequestId()const @@ -297,6 +297,6 @@ std::string DescribeTopDomainsByFlowRequest::getRequestId()const void DescribeTopDomainsByFlowRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/DescribeTopDomainsByFlowResult.cc b/cdn/src/model/DescribeTopDomainsByFlowResult.cc index 9153c2494..00207cd42 100644 --- a/cdn/src/model/DescribeTopDomainsByFlowResult.cc +++ b/cdn/src/model/DescribeTopDomainsByFlowResult.cc @@ -35,10 +35,13 @@ DescribeTopDomainsByFlowResult::~DescribeTopDomainsByFlowResult() void DescribeTopDomainsByFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopDomains = value["TopDomains"]["TopDomain"]; for (auto value : allTopDomains) diff --git a/cdn/src/model/DescribeUserConfigsRequest.cc b/cdn/src/model/DescribeUserConfigsRequest.cc index b3ff86370..90a22e28e 100644 --- a/cdn/src/model/DescribeUserConfigsRequest.cc +++ b/cdn/src/model/DescribeUserConfigsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeUserConfigsRequest::getSecurityToken()const void DescribeUserConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeUserConfigsRequest::getOwnerId()const @@ -44,7 +44,7 @@ long DescribeUserConfigsRequest::getOwnerId()const void DescribeUserConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeUserConfigsRequest::getConfig()const @@ -55,6 +55,6 @@ std::string DescribeUserConfigsRequest::getConfig()const void DescribeUserConfigsRequest::setConfig(const std::string& config) { config_ = config; - setParameter("Config", config); + setCoreParameter("Config", config); } diff --git a/cdn/src/model/DescribeUserConfigsResult.cc b/cdn/src/model/DescribeUserConfigsResult.cc index 4c28561cf..a61270dc4 100644 --- a/cdn/src/model/DescribeUserConfigsResult.cc +++ b/cdn/src/model/DescribeUserConfigsResult.cc @@ -35,10 +35,13 @@ DescribeUserConfigsResult::~DescribeUserConfigsResult() void DescribeUserConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto configsNode = value["Configs"]; auto ossLogConfigNode = configsNode["OssLogConfig"]; diff --git a/cdn/src/model/DescribeUserCustomLogConfigRequest.cc b/cdn/src/model/DescribeUserCustomLogConfigRequest.cc index a6ea9fce8..d16831734 100644 --- a/cdn/src/model/DescribeUserCustomLogConfigRequest.cc +++ b/cdn/src/model/DescribeUserCustomLogConfigRequest.cc @@ -33,6 +33,6 @@ long DescribeUserCustomLogConfigRequest::getOwnerId()const void DescribeUserCustomLogConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/DescribeUserCustomLogConfigResult.cc b/cdn/src/model/DescribeUserCustomLogConfigResult.cc index 6aeeefeaf..a4c871101 100644 --- a/cdn/src/model/DescribeUserCustomLogConfigResult.cc +++ b/cdn/src/model/DescribeUserCustomLogConfigResult.cc @@ -35,10 +35,13 @@ DescribeUserCustomLogConfigResult::~DescribeUserCustomLogConfigResult() void DescribeUserCustomLogConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigIds = value["ConfigIds"]["ConfigId"]; for (const auto &item : allConfigIds) diff --git a/cdn/src/model/DescribeUserCustomerLabelsRequest.cc b/cdn/src/model/DescribeUserCustomerLabelsRequest.cc index a2ec83d65..4c2e60c60 100644 --- a/cdn/src/model/DescribeUserCustomerLabelsRequest.cc +++ b/cdn/src/model/DescribeUserCustomerLabelsRequest.cc @@ -33,7 +33,7 @@ long DescribeUserCustomerLabelsRequest::getUid()const void DescribeUserCustomerLabelsRequest::setUid(long uid) { uid_ = uid; - setParameter("Uid", std::to_string(uid)); + setCoreParameter("Uid", std::to_string(uid)); } std::string DescribeUserCustomerLabelsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeUserCustomerLabelsRequest::getSecurityToken()const void DescribeUserCustomerLabelsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeUserCustomerLabelsRequest::getOwnerId()const @@ -55,7 +55,7 @@ long DescribeUserCustomerLabelsRequest::getOwnerId()const void DescribeUserCustomerLabelsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeUserCustomerLabelsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeUserCustomerLabelsRequest::getAccessKeyId()const void DescribeUserCustomerLabelsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cdn/src/model/DescribeUserCustomerLabelsResult.cc b/cdn/src/model/DescribeUserCustomerLabelsResult.cc index daebd499e..9c3bf5ddb 100644 --- a/cdn/src/model/DescribeUserCustomerLabelsResult.cc +++ b/cdn/src/model/DescribeUserCustomerLabelsResult.cc @@ -35,10 +35,13 @@ DescribeUserCustomerLabelsResult::~DescribeUserCustomerLabelsResult() void DescribeUserCustomerLabelsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["IsInnerUser"].isNull()) isInnerUser_ = value["IsInnerUser"].asString() == "true"; diff --git a/cdn/src/model/DescribeUserDomainsRequest.cc b/cdn/src/model/DescribeUserDomainsRequest.cc index 8e477c7fe..57550f50e 100644 --- a/cdn/src/model/DescribeUserDomainsRequest.cc +++ b/cdn/src/model/DescribeUserDomainsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeUserDomainsRequest::getFuncFilter()const void DescribeUserDomainsRequest::setFuncFilter(const std::string& funcFilter) { funcFilter_ = funcFilter; - setParameter("FuncFilter", funcFilter); + setCoreParameter("FuncFilter", funcFilter); } std::string DescribeUserDomainsRequest::getSources()const @@ -44,7 +44,7 @@ std::string DescribeUserDomainsRequest::getSources()const void DescribeUserDomainsRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string DescribeUserDomainsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeUserDomainsRequest::getDomainName()const void DescribeUserDomainsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeUserDomainsRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DescribeUserDomainsRequest::getOwnerId()const void DescribeUserDomainsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeUserDomainsRequest::getFuncId()const @@ -77,7 +77,7 @@ std::string DescribeUserDomainsRequest::getFuncId()const void DescribeUserDomainsRequest::setFuncId(const std::string& funcId) { funcId_ = funcId; - setParameter("FuncId", funcId); + setCoreParameter("FuncId", funcId); } int DescribeUserDomainsRequest::getPageNumber()const @@ -88,7 +88,7 @@ int DescribeUserDomainsRequest::getPageNumber()const void DescribeUserDomainsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeUserDomainsRequest::getDomainStatus()const @@ -99,7 +99,7 @@ std::string DescribeUserDomainsRequest::getDomainStatus()const void DescribeUserDomainsRequest::setDomainStatus(const std::string& domainStatus) { domainStatus_ = domainStatus; - setParameter("DomainStatus", domainStatus); + setCoreParameter("DomainStatus", domainStatus); } std::string DescribeUserDomainsRequest::getDomainSearchType()const @@ -110,7 +110,7 @@ std::string DescribeUserDomainsRequest::getDomainSearchType()const void DescribeUserDomainsRequest::setDomainSearchType(const std::string& domainSearchType) { domainSearchType_ = domainSearchType; - setParameter("DomainSearchType", domainSearchType); + setCoreParameter("DomainSearchType", domainSearchType); } bool DescribeUserDomainsRequest::getCheckDomainShow()const @@ -121,7 +121,7 @@ bool DescribeUserDomainsRequest::getCheckDomainShow()const void DescribeUserDomainsRequest::setCheckDomainShow(bool checkDomainShow) { checkDomainShow_ = checkDomainShow; - setParameter("CheckDomainShow", checkDomainShow ? "true" : "false"); + setCoreParameter("CheckDomainShow", checkDomainShow ? "true" : "false"); } std::string DescribeUserDomainsRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string DescribeUserDomainsRequest::getResourceGroupId()const void DescribeUserDomainsRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeUserDomainsRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string DescribeUserDomainsRequest::getSecurityToken()const void DescribeUserDomainsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeUserDomainsRequest::getCdnType()const @@ -154,7 +154,7 @@ std::string DescribeUserDomainsRequest::getCdnType()const void DescribeUserDomainsRequest::setCdnType(const std::string& cdnType) { cdnType_ = cdnType; - setParameter("CdnType", cdnType); + setCoreParameter("CdnType", cdnType); } int DescribeUserDomainsRequest::getPageSize()const @@ -165,6 +165,6 @@ int DescribeUserDomainsRequest::getPageSize()const void DescribeUserDomainsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } diff --git a/cdn/src/model/DescribeUserDomainsResult.cc b/cdn/src/model/DescribeUserDomainsResult.cc index 3d38e9a07..2964c6abf 100644 --- a/cdn/src/model/DescribeUserDomainsResult.cc +++ b/cdn/src/model/DescribeUserDomainsResult.cc @@ -35,10 +35,13 @@ DescribeUserDomainsResult::~DescribeUserDomainsResult() void DescribeUserDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["PageData"]; for (auto value : allDomains) diff --git a/cdn/src/model/ForbidLiveStreamRequest.cc b/cdn/src/model/ForbidLiveStreamRequest.cc index 84dbdbe4c..1f662969a 100644 --- a/cdn/src/model/ForbidLiveStreamRequest.cc +++ b/cdn/src/model/ForbidLiveStreamRequest.cc @@ -33,7 +33,7 @@ std::string ForbidLiveStreamRequest::getResumeTime()const void ForbidLiveStreamRequest::setResumeTime(const std::string& resumeTime) { resumeTime_ = resumeTime; - setParameter("ResumeTime", resumeTime); + setCoreParameter("ResumeTime", resumeTime); } std::string ForbidLiveStreamRequest::getAppName()const @@ -44,7 +44,7 @@ std::string ForbidLiveStreamRequest::getAppName()const void ForbidLiveStreamRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string ForbidLiveStreamRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string ForbidLiveStreamRequest::getSecurityToken()const void ForbidLiveStreamRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ForbidLiveStreamRequest::getLiveStreamType()const @@ -66,7 +66,7 @@ std::string ForbidLiveStreamRequest::getLiveStreamType()const void ForbidLiveStreamRequest::setLiveStreamType(const std::string& liveStreamType) { liveStreamType_ = liveStreamType; - setParameter("LiveStreamType", liveStreamType); + setCoreParameter("LiveStreamType", liveStreamType); } std::string ForbidLiveStreamRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string ForbidLiveStreamRequest::getDomainName()const void ForbidLiveStreamRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long ForbidLiveStreamRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ForbidLiveStreamRequest::getOwnerId()const void ForbidLiveStreamRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ForbidLiveStreamRequest::getStreamName()const @@ -99,6 +99,6 @@ std::string ForbidLiveStreamRequest::getStreamName()const void ForbidLiveStreamRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/ForbidLiveStreamResult.cc b/cdn/src/model/ForbidLiveStreamResult.cc index a9fbe61d7..281c07309 100644 --- a/cdn/src/model/ForbidLiveStreamResult.cc +++ b/cdn/src/model/ForbidLiveStreamResult.cc @@ -35,10 +35,13 @@ ForbidLiveStreamResult::~ForbidLiveStreamResult() void ForbidLiveStreamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/ListDomainsByLogConfigIdRequest.cc b/cdn/src/model/ListDomainsByLogConfigIdRequest.cc index 932a3598a..81722b9db 100644 --- a/cdn/src/model/ListDomainsByLogConfigIdRequest.cc +++ b/cdn/src/model/ListDomainsByLogConfigIdRequest.cc @@ -33,7 +33,7 @@ std::string ListDomainsByLogConfigIdRequest::getApp_ip()const void ListDomainsByLogConfigIdRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ListDomainsByLogConfigIdRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string ListDomainsByLogConfigIdRequest::getPopProduct()const void ListDomainsByLogConfigIdRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string ListDomainsByLogConfigIdRequest::getProduct()const @@ -55,7 +55,7 @@ std::string ListDomainsByLogConfigIdRequest::getProduct()const void ListDomainsByLogConfigIdRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long ListDomainsByLogConfigIdRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long ListDomainsByLogConfigIdRequest::getCallerParentId()const void ListDomainsByLogConfigIdRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ListDomainsByLogConfigIdRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool ListDomainsByLogConfigIdRequest::getProxy_original_security_transport()cons void ListDomainsByLogConfigIdRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ListDomainsByLogConfigIdRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string ListDomainsByLogConfigIdRequest::getCallerBid()const void ListDomainsByLogConfigIdRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ListDomainsByLogConfigIdRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ListDomainsByLogConfigIdRequest::getOwnerId()const void ListDomainsByLogConfigIdRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ListDomainsByLogConfigIdRequest::getProxy_original_source_ip()const @@ -110,7 +110,7 @@ std::string ListDomainsByLogConfigIdRequest::getProxy_original_source_ip()const void ListDomainsByLogConfigIdRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ListDomainsByLogConfigIdRequest::getVersion()const @@ -121,7 +121,7 @@ std::string ListDomainsByLogConfigIdRequest::getVersion()const void ListDomainsByLogConfigIdRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string ListDomainsByLogConfigIdRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string ListDomainsByLogConfigIdRequest::getOwnerIdLoginEmail()const void ListDomainsByLogConfigIdRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ListDomainsByLogConfigIdRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string ListDomainsByLogConfigIdRequest::getCallerType()const void ListDomainsByLogConfigIdRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool ListDomainsByLogConfigIdRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool ListDomainsByLogConfigIdRequest::getProxy_trust_transport_info()const void ListDomainsByLogConfigIdRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ListDomainsByLogConfigIdRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool ListDomainsByLogConfigIdRequest::getAk_mfa_present()const void ListDomainsByLogConfigIdRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string ListDomainsByLogConfigIdRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string ListDomainsByLogConfigIdRequest::getAccessKeyId()const void ListDomainsByLogConfigIdRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool ListDomainsByLogConfigIdRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool ListDomainsByLogConfigIdRequest::getSecurity_transport()const void ListDomainsByLogConfigIdRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ListDomainsByLogConfigIdRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string ListDomainsByLogConfigIdRequest::getSecurityToken()const void ListDomainsByLogConfigIdRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ListDomainsByLogConfigIdRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string ListDomainsByLogConfigIdRequest::getRequestId()const void ListDomainsByLogConfigIdRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ListDomainsByLogConfigIdRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string ListDomainsByLogConfigIdRequest::getRequestContent()const void ListDomainsByLogConfigIdRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ListDomainsByLogConfigIdRequest::getConfigId()const @@ -231,7 +231,7 @@ std::string ListDomainsByLogConfigIdRequest::getConfigId()const void ListDomainsByLogConfigIdRequest::setConfigId(const std::string& configId) { configId_ = configId; - setParameter("ConfigId", configId); + setCoreParameter("ConfigId", configId); } std::string ListDomainsByLogConfigIdRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string ListDomainsByLogConfigIdRequest::getCallerBidEmail()const void ListDomainsByLogConfigIdRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ListDomainsByLogConfigIdRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string ListDomainsByLogConfigIdRequest::getCallerUidEmail()const void ListDomainsByLogConfigIdRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ListDomainsByLogConfigIdRequest::getCallerUid()const @@ -264,6 +264,6 @@ long ListDomainsByLogConfigIdRequest::getCallerUid()const void ListDomainsByLogConfigIdRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/ListDomainsByLogConfigIdResult.cc b/cdn/src/model/ListDomainsByLogConfigIdResult.cc index 5def303cb..8bdd0efc6 100644 --- a/cdn/src/model/ListDomainsByLogConfigIdResult.cc +++ b/cdn/src/model/ListDomainsByLogConfigIdResult.cc @@ -35,10 +35,13 @@ ListDomainsByLogConfigIdResult::~ListDomainsByLogConfigIdResult() void ListDomainsByLogConfigIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["Domain"]; for (const auto &item : allDomains) diff --git a/cdn/src/model/ModifyCdnDomainRequest.cc b/cdn/src/model/ModifyCdnDomainRequest.cc index 40938e35f..c9092d166 100644 --- a/cdn/src/model/ModifyCdnDomainRequest.cc +++ b/cdn/src/model/ModifyCdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string ModifyCdnDomainRequest::getTopLevelDomain()const void ModifyCdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) { topLevelDomain_ = topLevelDomain; - setParameter("TopLevelDomain", topLevelDomain); + setCoreParameter("TopLevelDomain", topLevelDomain); } int ModifyCdnDomainRequest::getSourcePort()const @@ -44,7 +44,7 @@ int ModifyCdnDomainRequest::getSourcePort()const void ModifyCdnDomainRequest::setSourcePort(int sourcePort) { sourcePort_ = sourcePort; - setParameter("SourcePort", std::to_string(sourcePort)); + setCoreParameter("SourcePort", std::to_string(sourcePort)); } std::string ModifyCdnDomainRequest::getResourceGroupId()const @@ -55,7 +55,7 @@ std::string ModifyCdnDomainRequest::getResourceGroupId()const void ModifyCdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string ModifyCdnDomainRequest::getPriorities()const @@ -66,7 +66,7 @@ std::string ModifyCdnDomainRequest::getPriorities()const void ModifyCdnDomainRequest::setPriorities(const std::string& priorities) { priorities_ = priorities; - setParameter("Priorities", priorities); + setCoreParameter("Priorities", priorities); } std::string ModifyCdnDomainRequest::getSources()const @@ -77,7 +77,7 @@ std::string ModifyCdnDomainRequest::getSources()const void ModifyCdnDomainRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string ModifyCdnDomainRequest::getSecurityToken()const @@ -88,7 +88,7 @@ std::string ModifyCdnDomainRequest::getSecurityToken()const void ModifyCdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyCdnDomainRequest::getDomainName()const @@ -99,7 +99,7 @@ std::string ModifyCdnDomainRequest::getDomainName()const void ModifyCdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string ModifyCdnDomainRequest::getSourceType()const @@ -110,7 +110,7 @@ std::string ModifyCdnDomainRequest::getSourceType()const void ModifyCdnDomainRequest::setSourceType(const std::string& sourceType) { sourceType_ = sourceType; - setParameter("SourceType", sourceType); + setCoreParameter("SourceType", sourceType); } long ModifyCdnDomainRequest::getOwnerId()const @@ -121,6 +121,6 @@ long ModifyCdnDomainRequest::getOwnerId()const void ModifyCdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/ModifyCdnDomainResult.cc b/cdn/src/model/ModifyCdnDomainResult.cc index 5578e0cd0..cef054c1c 100644 --- a/cdn/src/model/ModifyCdnDomainResult.cc +++ b/cdn/src/model/ModifyCdnDomainResult.cc @@ -35,10 +35,13 @@ ModifyCdnDomainResult::~ModifyCdnDomainResult() void ModifyCdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/ModifyCdnServiceRequest.cc b/cdn/src/model/ModifyCdnServiceRequest.cc index 1e9454ee4..516bf4778 100644 --- a/cdn/src/model/ModifyCdnServiceRequest.cc +++ b/cdn/src/model/ModifyCdnServiceRequest.cc @@ -33,7 +33,7 @@ std::string ModifyCdnServiceRequest::getSecurityToken()const void ModifyCdnServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyCdnServiceRequest::getInternetChargeType()const @@ -44,7 +44,7 @@ std::string ModifyCdnServiceRequest::getInternetChargeType()const void ModifyCdnServiceRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } long ModifyCdnServiceRequest::getOwnerId()const @@ -55,6 +55,6 @@ long ModifyCdnServiceRequest::getOwnerId()const void ModifyCdnServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/ModifyCdnServiceResult.cc b/cdn/src/model/ModifyCdnServiceResult.cc index ee731015c..da164b2af 100644 --- a/cdn/src/model/ModifyCdnServiceResult.cc +++ b/cdn/src/model/ModifyCdnServiceResult.cc @@ -35,10 +35,13 @@ ModifyCdnServiceResult::~ModifyCdnServiceResult() void ModifyCdnServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/ModifyDomainCustomLogConfigRequest.cc b/cdn/src/model/ModifyDomainCustomLogConfigRequest.cc index f6bf6b31b..ef2d174a1 100644 --- a/cdn/src/model/ModifyDomainCustomLogConfigRequest.cc +++ b/cdn/src/model/ModifyDomainCustomLogConfigRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDomainCustomLogConfigRequest::getApp_ip()const void ModifyDomainCustomLogConfigRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ModifyDomainCustomLogConfigRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string ModifyDomainCustomLogConfigRequest::getPopProduct()const void ModifyDomainCustomLogConfigRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string ModifyDomainCustomLogConfigRequest::getProduct()const @@ -55,7 +55,7 @@ std::string ModifyDomainCustomLogConfigRequest::getProduct()const void ModifyDomainCustomLogConfigRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long ModifyDomainCustomLogConfigRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long ModifyDomainCustomLogConfigRequest::getCallerParentId()const void ModifyDomainCustomLogConfigRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string ModifyDomainCustomLogConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string ModifyDomainCustomLogConfigRequest::getDomainName()const void ModifyDomainCustomLogConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool ModifyDomainCustomLogConfigRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool ModifyDomainCustomLogConfigRequest::getProxy_original_security_transport()c void ModifyDomainCustomLogConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyDomainCustomLogConfigRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string ModifyDomainCustomLogConfigRequest::getCallerBid()const void ModifyDomainCustomLogConfigRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyDomainCustomLogConfigRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifyDomainCustomLogConfigRequest::getOwnerId()const void ModifyDomainCustomLogConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyDomainCustomLogConfigRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string ModifyDomainCustomLogConfigRequest::getProxy_original_source_ip()con void ModifyDomainCustomLogConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyDomainCustomLogConfigRequest::getVersion()const @@ -132,7 +132,7 @@ std::string ModifyDomainCustomLogConfigRequest::getVersion()const void ModifyDomainCustomLogConfigRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string ModifyDomainCustomLogConfigRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string ModifyDomainCustomLogConfigRequest::getOwnerIdLoginEmail()const void ModifyDomainCustomLogConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyDomainCustomLogConfigRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string ModifyDomainCustomLogConfigRequest::getCallerType()const void ModifyDomainCustomLogConfigRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool ModifyDomainCustomLogConfigRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool ModifyDomainCustomLogConfigRequest::getProxy_trust_transport_info()const void ModifyDomainCustomLogConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyDomainCustomLogConfigRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool ModifyDomainCustomLogConfigRequest::getAk_mfa_present()const void ModifyDomainCustomLogConfigRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string ModifyDomainCustomLogConfigRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string ModifyDomainCustomLogConfigRequest::getAccessKeyId()const void ModifyDomainCustomLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool ModifyDomainCustomLogConfigRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool ModifyDomainCustomLogConfigRequest::getSecurity_transport()const void ModifyDomainCustomLogConfigRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyDomainCustomLogConfigRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string ModifyDomainCustomLogConfigRequest::getSecurityToken()const void ModifyDomainCustomLogConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyDomainCustomLogConfigRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string ModifyDomainCustomLogConfigRequest::getRequestId()const void ModifyDomainCustomLogConfigRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ModifyDomainCustomLogConfigRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string ModifyDomainCustomLogConfigRequest::getRequestContent()const void ModifyDomainCustomLogConfigRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyDomainCustomLogConfigRequest::getConfigId()const @@ -242,7 +242,7 @@ std::string ModifyDomainCustomLogConfigRequest::getConfigId()const void ModifyDomainCustomLogConfigRequest::setConfigId(const std::string& configId) { configId_ = configId; - setParameter("ConfigId", configId); + setCoreParameter("ConfigId", configId); } std::string ModifyDomainCustomLogConfigRequest::getCallerBidEmail()const @@ -253,7 +253,7 @@ std::string ModifyDomainCustomLogConfigRequest::getCallerBidEmail()const void ModifyDomainCustomLogConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyDomainCustomLogConfigRequest::getCallerUidEmail()const @@ -264,7 +264,7 @@ std::string ModifyDomainCustomLogConfigRequest::getCallerUidEmail()const void ModifyDomainCustomLogConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyDomainCustomLogConfigRequest::getCallerUid()const @@ -275,6 +275,6 @@ long ModifyDomainCustomLogConfigRequest::getCallerUid()const void ModifyDomainCustomLogConfigRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/ModifyDomainCustomLogConfigResult.cc b/cdn/src/model/ModifyDomainCustomLogConfigResult.cc index e1c362ab1..7b409718c 100644 --- a/cdn/src/model/ModifyDomainCustomLogConfigResult.cc +++ b/cdn/src/model/ModifyDomainCustomLogConfigResult.cc @@ -35,10 +35,13 @@ ModifyDomainCustomLogConfigResult::~ModifyDomainCustomLogConfigResult() void ModifyDomainCustomLogConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/ModifyFileCacheExpiredConfigRequest.cc b/cdn/src/model/ModifyFileCacheExpiredConfigRequest.cc index 64460cb14..cfd0cfccc 100644 --- a/cdn/src/model/ModifyFileCacheExpiredConfigRequest.cc +++ b/cdn/src/model/ModifyFileCacheExpiredConfigRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFileCacheExpiredConfigRequest::getSecurityToken()const void ModifyFileCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyFileCacheExpiredConfigRequest::getConfigID()const @@ -44,7 +44,7 @@ std::string ModifyFileCacheExpiredConfigRequest::getConfigID()const void ModifyFileCacheExpiredConfigRequest::setConfigID(const std::string& configID) { configID_ = configID; - setParameter("ConfigID", configID); + setCoreParameter("ConfigID", configID); } std::string ModifyFileCacheExpiredConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string ModifyFileCacheExpiredConfigRequest::getDomainName()const void ModifyFileCacheExpiredConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string ModifyFileCacheExpiredConfigRequest::getWeight()const @@ -66,7 +66,7 @@ std::string ModifyFileCacheExpiredConfigRequest::getWeight()const void ModifyFileCacheExpiredConfigRequest::setWeight(const std::string& weight) { weight_ = weight; - setParameter("Weight", weight); + setCoreParameter("Weight", weight); } std::string ModifyFileCacheExpiredConfigRequest::getCacheContent()const @@ -77,7 +77,7 @@ std::string ModifyFileCacheExpiredConfigRequest::getCacheContent()const void ModifyFileCacheExpiredConfigRequest::setCacheContent(const std::string& cacheContent) { cacheContent_ = cacheContent; - setParameter("CacheContent", cacheContent); + setCoreParameter("CacheContent", cacheContent); } long ModifyFileCacheExpiredConfigRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ModifyFileCacheExpiredConfigRequest::getOwnerId()const void ModifyFileCacheExpiredConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyFileCacheExpiredConfigRequest::getTTL()const @@ -99,6 +99,6 @@ std::string ModifyFileCacheExpiredConfigRequest::getTTL()const void ModifyFileCacheExpiredConfigRequest::setTTL(const std::string& tTL) { tTL_ = tTL; - setParameter("TTL", tTL); + setCoreParameter("TTL", tTL); } diff --git a/cdn/src/model/ModifyFileCacheExpiredConfigResult.cc b/cdn/src/model/ModifyFileCacheExpiredConfigResult.cc index b453355fe..18bf16681 100644 --- a/cdn/src/model/ModifyFileCacheExpiredConfigResult.cc +++ b/cdn/src/model/ModifyFileCacheExpiredConfigResult.cc @@ -35,10 +35,13 @@ ModifyFileCacheExpiredConfigResult::~ModifyFileCacheExpiredConfigResult() void ModifyFileCacheExpiredConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/ModifyHttpHeaderConfigRequest.cc b/cdn/src/model/ModifyHttpHeaderConfigRequest.cc index 7e4b4c0f5..dcd89bbcf 100644 --- a/cdn/src/model/ModifyHttpHeaderConfigRequest.cc +++ b/cdn/src/model/ModifyHttpHeaderConfigRequest.cc @@ -33,7 +33,7 @@ std::string ModifyHttpHeaderConfigRequest::getHeaderValue()const void ModifyHttpHeaderConfigRequest::setHeaderValue(const std::string& headerValue) { headerValue_ = headerValue; - setParameter("HeaderValue", headerValue); + setCoreParameter("HeaderValue", headerValue); } std::string ModifyHttpHeaderConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string ModifyHttpHeaderConfigRequest::getSecurityToken()const void ModifyHttpHeaderConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyHttpHeaderConfigRequest::getConfigID()const @@ -55,7 +55,7 @@ std::string ModifyHttpHeaderConfigRequest::getConfigID()const void ModifyHttpHeaderConfigRequest::setConfigID(const std::string& configID) { configID_ = configID; - setParameter("ConfigID", configID); + setCoreParameter("ConfigID", configID); } std::string ModifyHttpHeaderConfigRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string ModifyHttpHeaderConfigRequest::getDomainName()const void ModifyHttpHeaderConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string ModifyHttpHeaderConfigRequest::getHeaderKey()const @@ -77,7 +77,7 @@ std::string ModifyHttpHeaderConfigRequest::getHeaderKey()const void ModifyHttpHeaderConfigRequest::setHeaderKey(const std::string& headerKey) { headerKey_ = headerKey; - setParameter("HeaderKey", headerKey); + setCoreParameter("HeaderKey", headerKey); } long ModifyHttpHeaderConfigRequest::getOwnerId()const @@ -88,6 +88,6 @@ long ModifyHttpHeaderConfigRequest::getOwnerId()const void ModifyHttpHeaderConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/ModifyHttpHeaderConfigResult.cc b/cdn/src/model/ModifyHttpHeaderConfigResult.cc index 34afe3467..71f9f509e 100644 --- a/cdn/src/model/ModifyHttpHeaderConfigResult.cc +++ b/cdn/src/model/ModifyHttpHeaderConfigResult.cc @@ -35,10 +35,13 @@ ModifyHttpHeaderConfigResult::~ModifyHttpHeaderConfigResult() void ModifyHttpHeaderConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/ModifyPathCacheExpiredConfigRequest.cc b/cdn/src/model/ModifyPathCacheExpiredConfigRequest.cc index f466a793a..fd27095a7 100644 --- a/cdn/src/model/ModifyPathCacheExpiredConfigRequest.cc +++ b/cdn/src/model/ModifyPathCacheExpiredConfigRequest.cc @@ -33,7 +33,7 @@ std::string ModifyPathCacheExpiredConfigRequest::getSecurityToken()const void ModifyPathCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyPathCacheExpiredConfigRequest::getConfigID()const @@ -44,7 +44,7 @@ std::string ModifyPathCacheExpiredConfigRequest::getConfigID()const void ModifyPathCacheExpiredConfigRequest::setConfigID(const std::string& configID) { configID_ = configID; - setParameter("ConfigID", configID); + setCoreParameter("ConfigID", configID); } std::string ModifyPathCacheExpiredConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string ModifyPathCacheExpiredConfigRequest::getDomainName()const void ModifyPathCacheExpiredConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string ModifyPathCacheExpiredConfigRequest::getWeight()const @@ -66,7 +66,7 @@ std::string ModifyPathCacheExpiredConfigRequest::getWeight()const void ModifyPathCacheExpiredConfigRequest::setWeight(const std::string& weight) { weight_ = weight; - setParameter("Weight", weight); + setCoreParameter("Weight", weight); } std::string ModifyPathCacheExpiredConfigRequest::getCacheContent()const @@ -77,7 +77,7 @@ std::string ModifyPathCacheExpiredConfigRequest::getCacheContent()const void ModifyPathCacheExpiredConfigRequest::setCacheContent(const std::string& cacheContent) { cacheContent_ = cacheContent; - setParameter("CacheContent", cacheContent); + setCoreParameter("CacheContent", cacheContent); } long ModifyPathCacheExpiredConfigRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ModifyPathCacheExpiredConfigRequest::getOwnerId()const void ModifyPathCacheExpiredConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyPathCacheExpiredConfigRequest::getTTL()const @@ -99,6 +99,6 @@ std::string ModifyPathCacheExpiredConfigRequest::getTTL()const void ModifyPathCacheExpiredConfigRequest::setTTL(const std::string& tTL) { tTL_ = tTL; - setParameter("TTL", tTL); + setCoreParameter("TTL", tTL); } diff --git a/cdn/src/model/ModifyPathCacheExpiredConfigResult.cc b/cdn/src/model/ModifyPathCacheExpiredConfigResult.cc index 7755a9e5f..abade5739 100644 --- a/cdn/src/model/ModifyPathCacheExpiredConfigResult.cc +++ b/cdn/src/model/ModifyPathCacheExpiredConfigResult.cc @@ -35,10 +35,13 @@ ModifyPathCacheExpiredConfigResult::~ModifyPathCacheExpiredConfigResult() void ModifyPathCacheExpiredConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/ModifyUserCustomLogConfigRequest.cc b/cdn/src/model/ModifyUserCustomLogConfigRequest.cc index f20feba8c..6c5ea500a 100644 --- a/cdn/src/model/ModifyUserCustomLogConfigRequest.cc +++ b/cdn/src/model/ModifyUserCustomLogConfigRequest.cc @@ -33,7 +33,7 @@ std::string ModifyUserCustomLogConfigRequest::getApp_ip()const void ModifyUserCustomLogConfigRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ModifyUserCustomLogConfigRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string ModifyUserCustomLogConfigRequest::getPopProduct()const void ModifyUserCustomLogConfigRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string ModifyUserCustomLogConfigRequest::getProduct()const @@ -55,7 +55,7 @@ std::string ModifyUserCustomLogConfigRequest::getProduct()const void ModifyUserCustomLogConfigRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long ModifyUserCustomLogConfigRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long ModifyUserCustomLogConfigRequest::getCallerParentId()const void ModifyUserCustomLogConfigRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ModifyUserCustomLogConfigRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool ModifyUserCustomLogConfigRequest::getProxy_original_security_transport()con void ModifyUserCustomLogConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyUserCustomLogConfigRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string ModifyUserCustomLogConfigRequest::getCallerBid()const void ModifyUserCustomLogConfigRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyUserCustomLogConfigRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifyUserCustomLogConfigRequest::getOwnerId()const void ModifyUserCustomLogConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyUserCustomLogConfigRequest::getProxy_original_source_ip()const @@ -110,7 +110,7 @@ std::string ModifyUserCustomLogConfigRequest::getProxy_original_source_ip()const void ModifyUserCustomLogConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyUserCustomLogConfigRequest::getVersion()const @@ -121,7 +121,7 @@ std::string ModifyUserCustomLogConfigRequest::getVersion()const void ModifyUserCustomLogConfigRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string ModifyUserCustomLogConfigRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string ModifyUserCustomLogConfigRequest::getOwnerIdLoginEmail()const void ModifyUserCustomLogConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyUserCustomLogConfigRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string ModifyUserCustomLogConfigRequest::getCallerType()const void ModifyUserCustomLogConfigRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool ModifyUserCustomLogConfigRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool ModifyUserCustomLogConfigRequest::getProxy_trust_transport_info()const void ModifyUserCustomLogConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyUserCustomLogConfigRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool ModifyUserCustomLogConfigRequest::getAk_mfa_present()const void ModifyUserCustomLogConfigRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string ModifyUserCustomLogConfigRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string ModifyUserCustomLogConfigRequest::getAccessKeyId()const void ModifyUserCustomLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool ModifyUserCustomLogConfigRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool ModifyUserCustomLogConfigRequest::getSecurity_transport()const void ModifyUserCustomLogConfigRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyUserCustomLogConfigRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string ModifyUserCustomLogConfigRequest::getSecurityToken()const void ModifyUserCustomLogConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyUserCustomLogConfigRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string ModifyUserCustomLogConfigRequest::getRequestId()const void ModifyUserCustomLogConfigRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ModifyUserCustomLogConfigRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string ModifyUserCustomLogConfigRequest::getRequestContent()const void ModifyUserCustomLogConfigRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyUserCustomLogConfigRequest::getConfigId()const @@ -231,7 +231,7 @@ std::string ModifyUserCustomLogConfigRequest::getConfigId()const void ModifyUserCustomLogConfigRequest::setConfigId(const std::string& configId) { configId_ = configId; - setParameter("ConfigId", configId); + setCoreParameter("ConfigId", configId); } std::string ModifyUserCustomLogConfigRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string ModifyUserCustomLogConfigRequest::getCallerBidEmail()const void ModifyUserCustomLogConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyUserCustomLogConfigRequest::getTag()const @@ -253,7 +253,7 @@ std::string ModifyUserCustomLogConfigRequest::getTag()const void ModifyUserCustomLogConfigRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } std::string ModifyUserCustomLogConfigRequest::getCallerUidEmail()const @@ -264,7 +264,7 @@ std::string ModifyUserCustomLogConfigRequest::getCallerUidEmail()const void ModifyUserCustomLogConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyUserCustomLogConfigRequest::getCallerUid()const @@ -275,6 +275,6 @@ long ModifyUserCustomLogConfigRequest::getCallerUid()const void ModifyUserCustomLogConfigRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/ModifyUserCustomLogConfigResult.cc b/cdn/src/model/ModifyUserCustomLogConfigResult.cc index cabd05539..2a2874f0d 100644 --- a/cdn/src/model/ModifyUserCustomLogConfigResult.cc +++ b/cdn/src/model/ModifyUserCustomLogConfigResult.cc @@ -35,10 +35,13 @@ ModifyUserCustomLogConfigResult::~ModifyUserCustomLogConfigResult() void ModifyUserCustomLogConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/OpenCdnServiceRequest.cc b/cdn/src/model/OpenCdnServiceRequest.cc index ca95bfb8b..cb47ee033 100644 --- a/cdn/src/model/OpenCdnServiceRequest.cc +++ b/cdn/src/model/OpenCdnServiceRequest.cc @@ -33,7 +33,7 @@ std::string OpenCdnServiceRequest::getSecurityToken()const void OpenCdnServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string OpenCdnServiceRequest::getInternetChargeType()const @@ -44,7 +44,7 @@ std::string OpenCdnServiceRequest::getInternetChargeType()const void OpenCdnServiceRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } long OpenCdnServiceRequest::getOwnerId()const @@ -55,6 +55,6 @@ long OpenCdnServiceRequest::getOwnerId()const void OpenCdnServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/OpenCdnServiceResult.cc b/cdn/src/model/OpenCdnServiceResult.cc index cadeef5a7..325767696 100644 --- a/cdn/src/model/OpenCdnServiceResult.cc +++ b/cdn/src/model/OpenCdnServiceResult.cc @@ -35,10 +35,13 @@ OpenCdnServiceResult::~OpenCdnServiceResult() void OpenCdnServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/PushObjectCacheRequest.cc b/cdn/src/model/PushObjectCacheRequest.cc index c1785e208..95c203c30 100644 --- a/cdn/src/model/PushObjectCacheRequest.cc +++ b/cdn/src/model/PushObjectCacheRequest.cc @@ -33,7 +33,7 @@ std::string PushObjectCacheRequest::getArea()const void PushObjectCacheRequest::setArea(const std::string& area) { area_ = area; - setParameter("Area", area); + setCoreParameter("Area", area); } std::string PushObjectCacheRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string PushObjectCacheRequest::getSecurityToken()const void PushObjectCacheRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string PushObjectCacheRequest::getObjectPath()const @@ -55,7 +55,7 @@ std::string PushObjectCacheRequest::getObjectPath()const void PushObjectCacheRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } long PushObjectCacheRequest::getOwnerId()const @@ -66,6 +66,6 @@ long PushObjectCacheRequest::getOwnerId()const void PushObjectCacheRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/PushObjectCacheResult.cc b/cdn/src/model/PushObjectCacheResult.cc index bf668aa26..07eb0bb0e 100644 --- a/cdn/src/model/PushObjectCacheResult.cc +++ b/cdn/src/model/PushObjectCacheResult.cc @@ -35,10 +35,13 @@ PushObjectCacheResult::~PushObjectCacheResult() void PushObjectCacheResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PushTaskId"].isNull()) pushTaskId_ = value["PushTaskId"].asString(); diff --git a/cdn/src/model/RefreshObjectCachesRequest.cc b/cdn/src/model/RefreshObjectCachesRequest.cc index 23074fe75..4ee5dfa5c 100644 --- a/cdn/src/model/RefreshObjectCachesRequest.cc +++ b/cdn/src/model/RefreshObjectCachesRequest.cc @@ -33,7 +33,7 @@ std::string RefreshObjectCachesRequest::getSecurityToken()const void RefreshObjectCachesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string RefreshObjectCachesRequest::getObjectPath()const @@ -44,7 +44,7 @@ std::string RefreshObjectCachesRequest::getObjectPath()const void RefreshObjectCachesRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } long RefreshObjectCachesRequest::getOwnerId()const @@ -55,7 +55,7 @@ long RefreshObjectCachesRequest::getOwnerId()const void RefreshObjectCachesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RefreshObjectCachesRequest::getObjectType()const @@ -66,6 +66,6 @@ std::string RefreshObjectCachesRequest::getObjectType()const void RefreshObjectCachesRequest::setObjectType(const std::string& objectType) { objectType_ = objectType; - setParameter("ObjectType", objectType); + setCoreParameter("ObjectType", objectType); } diff --git a/cdn/src/model/RefreshObjectCachesResult.cc b/cdn/src/model/RefreshObjectCachesResult.cc index 4d33cd4e1..a24800376 100644 --- a/cdn/src/model/RefreshObjectCachesResult.cc +++ b/cdn/src/model/RefreshObjectCachesResult.cc @@ -35,10 +35,13 @@ RefreshObjectCachesResult::~RefreshObjectCachesResult() void RefreshObjectCachesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RefreshTaskId"].isNull()) refreshTaskId_ = value["RefreshTaskId"].asString(); diff --git a/cdn/src/model/ResumeLiveStreamRequest.cc b/cdn/src/model/ResumeLiveStreamRequest.cc index e77ea5547..16c21fc82 100644 --- a/cdn/src/model/ResumeLiveStreamRequest.cc +++ b/cdn/src/model/ResumeLiveStreamRequest.cc @@ -33,7 +33,7 @@ std::string ResumeLiveStreamRequest::getAppName()const void ResumeLiveStreamRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string ResumeLiveStreamRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string ResumeLiveStreamRequest::getSecurityToken()const void ResumeLiveStreamRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ResumeLiveStreamRequest::getLiveStreamType()const @@ -55,7 +55,7 @@ std::string ResumeLiveStreamRequest::getLiveStreamType()const void ResumeLiveStreamRequest::setLiveStreamType(const std::string& liveStreamType) { liveStreamType_ = liveStreamType; - setParameter("LiveStreamType", liveStreamType); + setCoreParameter("LiveStreamType", liveStreamType); } std::string ResumeLiveStreamRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string ResumeLiveStreamRequest::getDomainName()const void ResumeLiveStreamRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long ResumeLiveStreamRequest::getOwnerId()const @@ -77,7 +77,7 @@ long ResumeLiveStreamRequest::getOwnerId()const void ResumeLiveStreamRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ResumeLiveStreamRequest::getStreamName()const @@ -88,6 +88,6 @@ std::string ResumeLiveStreamRequest::getStreamName()const void ResumeLiveStreamRequest::setStreamName(const std::string& streamName) { streamName_ = streamName; - setParameter("StreamName", streamName); + setCoreParameter("StreamName", streamName); } diff --git a/cdn/src/model/ResumeLiveStreamResult.cc b/cdn/src/model/ResumeLiveStreamResult.cc index d6520954d..bde310cb2 100644 --- a/cdn/src/model/ResumeLiveStreamResult.cc +++ b/cdn/src/model/ResumeLiveStreamResult.cc @@ -35,10 +35,13 @@ ResumeLiveStreamResult::~ResumeLiveStreamResult() void ResumeLiveStreamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetCcConfigRequest.cc b/cdn/src/model/SetCcConfigRequest.cc index fbb53561b..ff3192302 100644 --- a/cdn/src/model/SetCcConfigRequest.cc +++ b/cdn/src/model/SetCcConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetCcConfigRequest::getAllowIps()const void SetCcConfigRequest::setAllowIps(const std::string& allowIps) { allowIps_ = allowIps; - setParameter("AllowIps", allowIps); + setCoreParameter("AllowIps", allowIps); } std::string SetCcConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetCcConfigRequest::getSecurityToken()const void SetCcConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetCcConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetCcConfigRequest::getDomainName()const void SetCcConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetCcConfigRequest::getOwnerId()const @@ -66,7 +66,7 @@ long SetCcConfigRequest::getOwnerId()const void SetCcConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetCcConfigRequest::getBlockIps()const @@ -77,6 +77,6 @@ std::string SetCcConfigRequest::getBlockIps()const void SetCcConfigRequest::setBlockIps(const std::string& blockIps) { blockIps_ = blockIps; - setParameter("BlockIps", blockIps); + setCoreParameter("BlockIps", blockIps); } diff --git a/cdn/src/model/SetCcConfigResult.cc b/cdn/src/model/SetCcConfigResult.cc index 3a3d87895..85da8c250 100644 --- a/cdn/src/model/SetCcConfigResult.cc +++ b/cdn/src/model/SetCcConfigResult.cc @@ -35,10 +35,13 @@ SetCcConfigResult::~SetCcConfigResult() void SetCcConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetDomainGreenManagerConfigRequest.cc b/cdn/src/model/SetDomainGreenManagerConfigRequest.cc index 03fa3ce9e..f3792ee91 100644 --- a/cdn/src/model/SetDomainGreenManagerConfigRequest.cc +++ b/cdn/src/model/SetDomainGreenManagerConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetDomainGreenManagerConfigRequest::getApp_ip()const void SetDomainGreenManagerConfigRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string SetDomainGreenManagerConfigRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string SetDomainGreenManagerConfigRequest::getPopProduct()const void SetDomainGreenManagerConfigRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long SetDomainGreenManagerConfigRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long SetDomainGreenManagerConfigRequest::getCallerParentId()const void SetDomainGreenManagerConfigRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string SetDomainGreenManagerConfigRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string SetDomainGreenManagerConfigRequest::getDomainName()const void SetDomainGreenManagerConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool SetDomainGreenManagerConfigRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool SetDomainGreenManagerConfigRequest::getProxy_original_security_transport()c void SetDomainGreenManagerConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string SetDomainGreenManagerConfigRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string SetDomainGreenManagerConfigRequest::getCallerBid()const void SetDomainGreenManagerConfigRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long SetDomainGreenManagerConfigRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SetDomainGreenManagerConfigRequest::getOwnerId()const void SetDomainGreenManagerConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetDomainGreenManagerConfigRequest::getProxy_original_source_ip()const @@ -110,7 +110,7 @@ std::string SetDomainGreenManagerConfigRequest::getProxy_original_source_ip()con void SetDomainGreenManagerConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string SetDomainGreenManagerConfigRequest::getVersion()const @@ -121,7 +121,7 @@ std::string SetDomainGreenManagerConfigRequest::getVersion()const void SetDomainGreenManagerConfigRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string SetDomainGreenManagerConfigRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string SetDomainGreenManagerConfigRequest::getOwnerIdLoginEmail()const void SetDomainGreenManagerConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string SetDomainGreenManagerConfigRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string SetDomainGreenManagerConfigRequest::getCallerType()const void SetDomainGreenManagerConfigRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool SetDomainGreenManagerConfigRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool SetDomainGreenManagerConfigRequest::getProxy_trust_transport_info()const void SetDomainGreenManagerConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool SetDomainGreenManagerConfigRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool SetDomainGreenManagerConfigRequest::getAk_mfa_present()const void SetDomainGreenManagerConfigRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string SetDomainGreenManagerConfigRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string SetDomainGreenManagerConfigRequest::getAccessKeyId()const void SetDomainGreenManagerConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool SetDomainGreenManagerConfigRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool SetDomainGreenManagerConfigRequest::getSecurity_transport()const void SetDomainGreenManagerConfigRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string SetDomainGreenManagerConfigRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string SetDomainGreenManagerConfigRequest::getSecurityToken()const void SetDomainGreenManagerConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetDomainGreenManagerConfigRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string SetDomainGreenManagerConfigRequest::getRequestId()const void SetDomainGreenManagerConfigRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string SetDomainGreenManagerConfigRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string SetDomainGreenManagerConfigRequest::getRequestContent()const void SetDomainGreenManagerConfigRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string SetDomainGreenManagerConfigRequest::getFunctionName()const @@ -231,7 +231,7 @@ std::string SetDomainGreenManagerConfigRequest::getFunctionName()const void SetDomainGreenManagerConfigRequest::setFunctionName(const std::string& functionName) { functionName_ = functionName; - setParameter("FunctionName", functionName); + setCoreParameter("FunctionName", functionName); } std::string SetDomainGreenManagerConfigRequest::getEnable()const @@ -242,7 +242,7 @@ std::string SetDomainGreenManagerConfigRequest::getEnable()const void SetDomainGreenManagerConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetDomainGreenManagerConfigRequest::getCallerBidEmail()const @@ -253,7 +253,7 @@ std::string SetDomainGreenManagerConfigRequest::getCallerBidEmail()const void SetDomainGreenManagerConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string SetDomainGreenManagerConfigRequest::getCallerUidEmail()const @@ -264,7 +264,7 @@ std::string SetDomainGreenManagerConfigRequest::getCallerUidEmail()const void SetDomainGreenManagerConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long SetDomainGreenManagerConfigRequest::getCallerUid()const @@ -275,6 +275,6 @@ long SetDomainGreenManagerConfigRequest::getCallerUid()const void SetDomainGreenManagerConfigRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/cdn/src/model/SetDomainGreenManagerConfigResult.cc b/cdn/src/model/SetDomainGreenManagerConfigResult.cc index 1c3f28cb8..973f3b813 100644 --- a/cdn/src/model/SetDomainGreenManagerConfigResult.cc +++ b/cdn/src/model/SetDomainGreenManagerConfigResult.cc @@ -35,10 +35,13 @@ SetDomainGreenManagerConfigResult::~SetDomainGreenManagerConfigResult() void SetDomainGreenManagerConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetDomainServerCertificateRequest.cc b/cdn/src/model/SetDomainServerCertificateRequest.cc index e200c01d4..c8bacf4f4 100644 --- a/cdn/src/model/SetDomainServerCertificateRequest.cc +++ b/cdn/src/model/SetDomainServerCertificateRequest.cc @@ -33,7 +33,7 @@ std::string SetDomainServerCertificateRequest::getPrivateKey()const void SetDomainServerCertificateRequest::setPrivateKey(const std::string& privateKey) { privateKey_ = privateKey; - setParameter("PrivateKey", privateKey); + setCoreParameter("PrivateKey", privateKey); } std::string SetDomainServerCertificateRequest::getForceSet()const @@ -44,7 +44,7 @@ std::string SetDomainServerCertificateRequest::getForceSet()const void SetDomainServerCertificateRequest::setForceSet(const std::string& forceSet) { forceSet_ = forceSet; - setParameter("ForceSet", forceSet); + setCoreParameter("ForceSet", forceSet); } std::string SetDomainServerCertificateRequest::getServerCertificateStatus()const @@ -55,7 +55,7 @@ std::string SetDomainServerCertificateRequest::getServerCertificateStatus()const void SetDomainServerCertificateRequest::setServerCertificateStatus(const std::string& serverCertificateStatus) { serverCertificateStatus_ = serverCertificateStatus; - setParameter("ServerCertificateStatus", serverCertificateStatus); + setCoreParameter("ServerCertificateStatus", serverCertificateStatus); } std::string SetDomainServerCertificateRequest::getServerCertificate()const @@ -66,7 +66,7 @@ std::string SetDomainServerCertificateRequest::getServerCertificate()const void SetDomainServerCertificateRequest::setServerCertificate(const std::string& serverCertificate) { serverCertificate_ = serverCertificate; - setParameter("ServerCertificate", serverCertificate); + setCoreParameter("ServerCertificate", serverCertificate); } std::string SetDomainServerCertificateRequest::getSecurityToken()const @@ -77,7 +77,7 @@ std::string SetDomainServerCertificateRequest::getSecurityToken()const void SetDomainServerCertificateRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetDomainServerCertificateRequest::getCertType()const @@ -88,7 +88,7 @@ std::string SetDomainServerCertificateRequest::getCertType()const void SetDomainServerCertificateRequest::setCertType(const std::string& certType) { certType_ = certType; - setParameter("CertType", certType); + setCoreParameter("CertType", certType); } std::string SetDomainServerCertificateRequest::getCertName()const @@ -99,7 +99,7 @@ std::string SetDomainServerCertificateRequest::getCertName()const void SetDomainServerCertificateRequest::setCertName(const std::string& certName) { certName_ = certName; - setParameter("CertName", certName); + setCoreParameter("CertName", certName); } std::string SetDomainServerCertificateRequest::getDomainName()const @@ -110,7 +110,7 @@ std::string SetDomainServerCertificateRequest::getDomainName()const void SetDomainServerCertificateRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetDomainServerCertificateRequest::getOwnerId()const @@ -121,7 +121,7 @@ long SetDomainServerCertificateRequest::getOwnerId()const void SetDomainServerCertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetDomainServerCertificateRequest::getRegion()const @@ -132,6 +132,6 @@ std::string SetDomainServerCertificateRequest::getRegion()const void SetDomainServerCertificateRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } diff --git a/cdn/src/model/SetDomainServerCertificateResult.cc b/cdn/src/model/SetDomainServerCertificateResult.cc index d837989cf..9231aa55b 100644 --- a/cdn/src/model/SetDomainServerCertificateResult.cc +++ b/cdn/src/model/SetDomainServerCertificateResult.cc @@ -35,10 +35,13 @@ SetDomainServerCertificateResult::~SetDomainServerCertificateResult() void SetDomainServerCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetDynamicConfigRequest.cc b/cdn/src/model/SetDynamicConfigRequest.cc index e98ca9665..f8d230ae9 100644 --- a/cdn/src/model/SetDynamicConfigRequest.cc +++ b/cdn/src/model/SetDynamicConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetDynamicConfigRequest::getDynamicOrigin()const void SetDynamicConfigRequest::setDynamicOrigin(const std::string& dynamicOrigin) { dynamicOrigin_ = dynamicOrigin; - setParameter("DynamicOrigin", dynamicOrigin); + setCoreParameter("DynamicOrigin", dynamicOrigin); } std::string SetDynamicConfigRequest::getStaticType()const @@ -44,7 +44,7 @@ std::string SetDynamicConfigRequest::getStaticType()const void SetDynamicConfigRequest::setStaticType(const std::string& staticType) { staticType_ = staticType; - setParameter("StaticType", staticType); + setCoreParameter("StaticType", staticType); } std::string SetDynamicConfigRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string SetDynamicConfigRequest::getSecurityToken()const void SetDynamicConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetDynamicConfigRequest::getStaticUri()const @@ -66,7 +66,7 @@ std::string SetDynamicConfigRequest::getStaticUri()const void SetDynamicConfigRequest::setStaticUri(const std::string& staticUri) { staticUri_ = staticUri; - setParameter("StaticUri", staticUri); + setCoreParameter("StaticUri", staticUri); } std::string SetDynamicConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string SetDynamicConfigRequest::getDomainName()const void SetDynamicConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetDynamicConfigRequest::getStaticPath()const @@ -88,7 +88,7 @@ std::string SetDynamicConfigRequest::getStaticPath()const void SetDynamicConfigRequest::setStaticPath(const std::string& staticPath) { staticPath_ = staticPath; - setParameter("StaticPath", staticPath); + setCoreParameter("StaticPath", staticPath); } std::string SetDynamicConfigRequest::getDynamicCacheControl()const @@ -99,7 +99,7 @@ std::string SetDynamicConfigRequest::getDynamicCacheControl()const void SetDynamicConfigRequest::setDynamicCacheControl(const std::string& dynamicCacheControl) { dynamicCacheControl_ = dynamicCacheControl; - setParameter("DynamicCacheControl", dynamicCacheControl); + setCoreParameter("DynamicCacheControl", dynamicCacheControl); } long SetDynamicConfigRequest::getOwnerId()const @@ -110,6 +110,6 @@ long SetDynamicConfigRequest::getOwnerId()const void SetDynamicConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetDynamicConfigResult.cc b/cdn/src/model/SetDynamicConfigResult.cc index 051f7f163..c2ea0f5a6 100644 --- a/cdn/src/model/SetDynamicConfigResult.cc +++ b/cdn/src/model/SetDynamicConfigResult.cc @@ -35,10 +35,13 @@ SetDynamicConfigResult::~SetDynamicConfigResult() void SetDynamicConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetErrorPageConfigRequest.cc b/cdn/src/model/SetErrorPageConfigRequest.cc index 54ad8747d..dab4b7851 100644 --- a/cdn/src/model/SetErrorPageConfigRequest.cc +++ b/cdn/src/model/SetErrorPageConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetErrorPageConfigRequest::getPageType()const void SetErrorPageConfigRequest::setPageType(const std::string& pageType) { pageType_ = pageType; - setParameter("PageType", pageType); + setCoreParameter("PageType", pageType); } std::string SetErrorPageConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetErrorPageConfigRequest::getSecurityToken()const void SetErrorPageConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetErrorPageConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetErrorPageConfigRequest::getDomainName()const void SetErrorPageConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetErrorPageConfigRequest::getCustomPageUrl()const @@ -66,7 +66,7 @@ std::string SetErrorPageConfigRequest::getCustomPageUrl()const void SetErrorPageConfigRequest::setCustomPageUrl(const std::string& customPageUrl) { customPageUrl_ = customPageUrl; - setParameter("CustomPageUrl", customPageUrl); + setCoreParameter("CustomPageUrl", customPageUrl); } long SetErrorPageConfigRequest::getOwnerId()const @@ -77,6 +77,6 @@ long SetErrorPageConfigRequest::getOwnerId()const void SetErrorPageConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetErrorPageConfigResult.cc b/cdn/src/model/SetErrorPageConfigResult.cc index 33d24d558..3b202fff4 100644 --- a/cdn/src/model/SetErrorPageConfigResult.cc +++ b/cdn/src/model/SetErrorPageConfigResult.cc @@ -35,10 +35,13 @@ SetErrorPageConfigResult::~SetErrorPageConfigResult() void SetErrorPageConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetFileCacheExpiredConfigRequest.cc b/cdn/src/model/SetFileCacheExpiredConfigRequest.cc index 8fe08637b..27f539d2f 100644 --- a/cdn/src/model/SetFileCacheExpiredConfigRequest.cc +++ b/cdn/src/model/SetFileCacheExpiredConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetFileCacheExpiredConfigRequest::getSecurityToken()const void SetFileCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetFileCacheExpiredConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetFileCacheExpiredConfigRequest::getDomainName()const void SetFileCacheExpiredConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetFileCacheExpiredConfigRequest::getWeight()const @@ -55,7 +55,7 @@ std::string SetFileCacheExpiredConfigRequest::getWeight()const void SetFileCacheExpiredConfigRequest::setWeight(const std::string& weight) { weight_ = weight; - setParameter("Weight", weight); + setCoreParameter("Weight", weight); } std::string SetFileCacheExpiredConfigRequest::getCacheContent()const @@ -66,7 +66,7 @@ std::string SetFileCacheExpiredConfigRequest::getCacheContent()const void SetFileCacheExpiredConfigRequest::setCacheContent(const std::string& cacheContent) { cacheContent_ = cacheContent; - setParameter("CacheContent", cacheContent); + setCoreParameter("CacheContent", cacheContent); } long SetFileCacheExpiredConfigRequest::getOwnerId()const @@ -77,7 +77,7 @@ long SetFileCacheExpiredConfigRequest::getOwnerId()const void SetFileCacheExpiredConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetFileCacheExpiredConfigRequest::getTTL()const @@ -88,6 +88,6 @@ std::string SetFileCacheExpiredConfigRequest::getTTL()const void SetFileCacheExpiredConfigRequest::setTTL(const std::string& tTL) { tTL_ = tTL; - setParameter("TTL", tTL); + setCoreParameter("TTL", tTL); } diff --git a/cdn/src/model/SetFileCacheExpiredConfigResult.cc b/cdn/src/model/SetFileCacheExpiredConfigResult.cc index fb0c8415b..e914b8f61 100644 --- a/cdn/src/model/SetFileCacheExpiredConfigResult.cc +++ b/cdn/src/model/SetFileCacheExpiredConfigResult.cc @@ -35,10 +35,13 @@ SetFileCacheExpiredConfigResult::~SetFileCacheExpiredConfigResult() void SetFileCacheExpiredConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetForceRedirectConfigRequest.cc b/cdn/src/model/SetForceRedirectConfigRequest.cc index 7b311d66f..f59d55f14 100644 --- a/cdn/src/model/SetForceRedirectConfigRequest.cc +++ b/cdn/src/model/SetForceRedirectConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetForceRedirectConfigRequest::getSecurityToken()const void SetForceRedirectConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetForceRedirectConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetForceRedirectConfigRequest::getDomainName()const void SetForceRedirectConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetForceRedirectConfigRequest::getRedirectType()const @@ -55,7 +55,7 @@ std::string SetForceRedirectConfigRequest::getRedirectType()const void SetForceRedirectConfigRequest::setRedirectType(const std::string& redirectType) { redirectType_ = redirectType; - setParameter("RedirectType", redirectType); + setCoreParameter("RedirectType", redirectType); } long SetForceRedirectConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetForceRedirectConfigRequest::getOwnerId()const void SetForceRedirectConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetForceRedirectConfigResult.cc b/cdn/src/model/SetForceRedirectConfigResult.cc index 9d4c50fe0..217deb0a0 100644 --- a/cdn/src/model/SetForceRedirectConfigResult.cc +++ b/cdn/src/model/SetForceRedirectConfigResult.cc @@ -35,10 +35,13 @@ SetForceRedirectConfigResult::~SetForceRedirectConfigResult() void SetForceRedirectConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetForwardSchemeConfigRequest.cc b/cdn/src/model/SetForwardSchemeConfigRequest.cc index 90d62a534..04f4be632 100644 --- a/cdn/src/model/SetForwardSchemeConfigRequest.cc +++ b/cdn/src/model/SetForwardSchemeConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetForwardSchemeConfigRequest::getSchemeOrigin()const void SetForwardSchemeConfigRequest::setSchemeOrigin(const std::string& schemeOrigin) { schemeOrigin_ = schemeOrigin; - setParameter("SchemeOrigin", schemeOrigin); + setCoreParameter("SchemeOrigin", schemeOrigin); } std::string SetForwardSchemeConfigRequest::getSchemeOriginPort()const @@ -44,7 +44,7 @@ std::string SetForwardSchemeConfigRequest::getSchemeOriginPort()const void SetForwardSchemeConfigRequest::setSchemeOriginPort(const std::string& schemeOriginPort) { schemeOriginPort_ = schemeOriginPort; - setParameter("SchemeOriginPort", schemeOriginPort); + setCoreParameter("SchemeOriginPort", schemeOriginPort); } std::string SetForwardSchemeConfigRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string SetForwardSchemeConfigRequest::getSecurityToken()const void SetForwardSchemeConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetForwardSchemeConfigRequest::getEnable()const @@ -66,7 +66,7 @@ std::string SetForwardSchemeConfigRequest::getEnable()const void SetForwardSchemeConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetForwardSchemeConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string SetForwardSchemeConfigRequest::getDomainName()const void SetForwardSchemeConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetForwardSchemeConfigRequest::getOwnerId()const @@ -88,6 +88,6 @@ long SetForwardSchemeConfigRequest::getOwnerId()const void SetForwardSchemeConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetForwardSchemeConfigResult.cc b/cdn/src/model/SetForwardSchemeConfigResult.cc index ab687d6e7..1068049b5 100644 --- a/cdn/src/model/SetForwardSchemeConfigResult.cc +++ b/cdn/src/model/SetForwardSchemeConfigResult.cc @@ -35,10 +35,13 @@ SetForwardSchemeConfigResult::~SetForwardSchemeConfigResult() void SetForwardSchemeConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetHttpErrorPageConfigRequest.cc b/cdn/src/model/SetHttpErrorPageConfigRequest.cc index fcd41baa1..12123b1fe 100644 --- a/cdn/src/model/SetHttpErrorPageConfigRequest.cc +++ b/cdn/src/model/SetHttpErrorPageConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetHttpErrorPageConfigRequest::getSecurityToken()const void SetHttpErrorPageConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetHttpErrorPageConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetHttpErrorPageConfigRequest::getDomainName()const void SetHttpErrorPageConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetHttpErrorPageConfigRequest::getPageUrl()const @@ -55,7 +55,7 @@ std::string SetHttpErrorPageConfigRequest::getPageUrl()const void SetHttpErrorPageConfigRequest::setPageUrl(const std::string& pageUrl) { pageUrl_ = pageUrl; - setParameter("PageUrl", pageUrl); + setCoreParameter("PageUrl", pageUrl); } long SetHttpErrorPageConfigRequest::getOwnerId()const @@ -66,7 +66,7 @@ long SetHttpErrorPageConfigRequest::getOwnerId()const void SetHttpErrorPageConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetHttpErrorPageConfigRequest::getErrorCode()const @@ -77,6 +77,6 @@ std::string SetHttpErrorPageConfigRequest::getErrorCode()const void SetHttpErrorPageConfigRequest::setErrorCode(const std::string& errorCode) { errorCode_ = errorCode; - setParameter("ErrorCode", errorCode); + setCoreParameter("ErrorCode", errorCode); } diff --git a/cdn/src/model/SetHttpErrorPageConfigResult.cc b/cdn/src/model/SetHttpErrorPageConfigResult.cc index b32ca0507..90a72aaac 100644 --- a/cdn/src/model/SetHttpErrorPageConfigResult.cc +++ b/cdn/src/model/SetHttpErrorPageConfigResult.cc @@ -35,10 +35,13 @@ SetHttpErrorPageConfigResult::~SetHttpErrorPageConfigResult() void SetHttpErrorPageConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetHttpHeaderConfigRequest.cc b/cdn/src/model/SetHttpHeaderConfigRequest.cc index 52a5cb408..aa960c961 100644 --- a/cdn/src/model/SetHttpHeaderConfigRequest.cc +++ b/cdn/src/model/SetHttpHeaderConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetHttpHeaderConfigRequest::getHeaderValue()const void SetHttpHeaderConfigRequest::setHeaderValue(const std::string& headerValue) { headerValue_ = headerValue; - setParameter("HeaderValue", headerValue); + setCoreParameter("HeaderValue", headerValue); } std::string SetHttpHeaderConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetHttpHeaderConfigRequest::getSecurityToken()const void SetHttpHeaderConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long SetHttpHeaderConfigRequest::getConfigId()const @@ -55,7 +55,7 @@ long SetHttpHeaderConfigRequest::getConfigId()const void SetHttpHeaderConfigRequest::setConfigId(long configId) { configId_ = configId; - setParameter("ConfigId", std::to_string(configId)); + setCoreParameter("ConfigId", std::to_string(configId)); } std::string SetHttpHeaderConfigRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string SetHttpHeaderConfigRequest::getDomainName()const void SetHttpHeaderConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetHttpHeaderConfigRequest::getHeaderKey()const @@ -77,7 +77,7 @@ std::string SetHttpHeaderConfigRequest::getHeaderKey()const void SetHttpHeaderConfigRequest::setHeaderKey(const std::string& headerKey) { headerKey_ = headerKey; - setParameter("HeaderKey", headerKey); + setCoreParameter("HeaderKey", headerKey); } long SetHttpHeaderConfigRequest::getOwnerId()const @@ -88,6 +88,6 @@ long SetHttpHeaderConfigRequest::getOwnerId()const void SetHttpHeaderConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetHttpHeaderConfigResult.cc b/cdn/src/model/SetHttpHeaderConfigResult.cc index 39870b7bb..338b79ff7 100644 --- a/cdn/src/model/SetHttpHeaderConfigResult.cc +++ b/cdn/src/model/SetHttpHeaderConfigResult.cc @@ -35,10 +35,13 @@ SetHttpHeaderConfigResult::~SetHttpHeaderConfigResult() void SetHttpHeaderConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetHttpsOptionConfigRequest.cc b/cdn/src/model/SetHttpsOptionConfigRequest.cc index b18067386..6d071af96 100644 --- a/cdn/src/model/SetHttpsOptionConfigRequest.cc +++ b/cdn/src/model/SetHttpsOptionConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetHttpsOptionConfigRequest::getSecurityToken()const void SetHttpsOptionConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetHttpsOptionConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetHttpsOptionConfigRequest::getDomainName()const void SetHttpsOptionConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetHttpsOptionConfigRequest::getHttp2()const @@ -55,7 +55,7 @@ std::string SetHttpsOptionConfigRequest::getHttp2()const void SetHttpsOptionConfigRequest::setHttp2(const std::string& http2) { http2_ = http2; - setParameter("Http2", http2); + setCoreParameter("Http2", http2); } long SetHttpsOptionConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetHttpsOptionConfigRequest::getOwnerId()const void SetHttpsOptionConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetHttpsOptionConfigResult.cc b/cdn/src/model/SetHttpsOptionConfigResult.cc index f58c985bb..a374d69a4 100644 --- a/cdn/src/model/SetHttpsOptionConfigResult.cc +++ b/cdn/src/model/SetHttpsOptionConfigResult.cc @@ -35,10 +35,13 @@ SetHttpsOptionConfigResult::~SetHttpsOptionConfigResult() void SetHttpsOptionConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetIgnoreQueryStringConfigRequest.cc b/cdn/src/model/SetIgnoreQueryStringConfigRequest.cc index a148dbad6..15b749616 100644 --- a/cdn/src/model/SetIgnoreQueryStringConfigRequest.cc +++ b/cdn/src/model/SetIgnoreQueryStringConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetIgnoreQueryStringConfigRequest::getKeepOssArgs()const void SetIgnoreQueryStringConfigRequest::setKeepOssArgs(const std::string& keepOssArgs) { keepOssArgs_ = keepOssArgs; - setParameter("KeepOssArgs", keepOssArgs); + setCoreParameter("KeepOssArgs", keepOssArgs); } std::string SetIgnoreQueryStringConfigRequest::getHashKeyArgs()const @@ -44,7 +44,7 @@ std::string SetIgnoreQueryStringConfigRequest::getHashKeyArgs()const void SetIgnoreQueryStringConfigRequest::setHashKeyArgs(const std::string& hashKeyArgs) { hashKeyArgs_ = hashKeyArgs; - setParameter("HashKeyArgs", hashKeyArgs); + setCoreParameter("HashKeyArgs", hashKeyArgs); } std::string SetIgnoreQueryStringConfigRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string SetIgnoreQueryStringConfigRequest::getSecurityToken()const void SetIgnoreQueryStringConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetIgnoreQueryStringConfigRequest::getEnable()const @@ -66,7 +66,7 @@ std::string SetIgnoreQueryStringConfigRequest::getEnable()const void SetIgnoreQueryStringConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetIgnoreQueryStringConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string SetIgnoreQueryStringConfigRequest::getDomainName()const void SetIgnoreQueryStringConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetIgnoreQueryStringConfigRequest::getOwnerId()const @@ -88,6 +88,6 @@ long SetIgnoreQueryStringConfigRequest::getOwnerId()const void SetIgnoreQueryStringConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetIgnoreQueryStringConfigResult.cc b/cdn/src/model/SetIgnoreQueryStringConfigResult.cc index 9adc5dc9f..9bb8f197d 100644 --- a/cdn/src/model/SetIgnoreQueryStringConfigResult.cc +++ b/cdn/src/model/SetIgnoreQueryStringConfigResult.cc @@ -35,10 +35,13 @@ SetIgnoreQueryStringConfigResult::~SetIgnoreQueryStringConfigResult() void SetIgnoreQueryStringConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetIpAllowListConfigRequest.cc b/cdn/src/model/SetIpAllowListConfigRequest.cc index 04ac10ead..e32ed7d48 100644 --- a/cdn/src/model/SetIpAllowListConfigRequest.cc +++ b/cdn/src/model/SetIpAllowListConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetIpAllowListConfigRequest::getAllowIps()const void SetIpAllowListConfigRequest::setAllowIps(const std::string& allowIps) { allowIps_ = allowIps; - setParameter("AllowIps", allowIps); + setCoreParameter("AllowIps", allowIps); } std::string SetIpAllowListConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetIpAllowListConfigRequest::getSecurityToken()const void SetIpAllowListConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetIpAllowListConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetIpAllowListConfigRequest::getDomainName()const void SetIpAllowListConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetIpAllowListConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetIpAllowListConfigRequest::getOwnerId()const void SetIpAllowListConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetIpAllowListConfigResult.cc b/cdn/src/model/SetIpAllowListConfigResult.cc index c0e5727ae..f420a9023 100644 --- a/cdn/src/model/SetIpAllowListConfigResult.cc +++ b/cdn/src/model/SetIpAllowListConfigResult.cc @@ -35,10 +35,13 @@ SetIpAllowListConfigResult::~SetIpAllowListConfigResult() void SetIpAllowListConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetIpBlackListConfigRequest.cc b/cdn/src/model/SetIpBlackListConfigRequest.cc index 9be09d86a..d4f707214 100644 --- a/cdn/src/model/SetIpBlackListConfigRequest.cc +++ b/cdn/src/model/SetIpBlackListConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetIpBlackListConfigRequest::getSecurityToken()const void SetIpBlackListConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetIpBlackListConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetIpBlackListConfigRequest::getDomainName()const void SetIpBlackListConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetIpBlackListConfigRequest::getOwnerId()const @@ -55,7 +55,7 @@ long SetIpBlackListConfigRequest::getOwnerId()const void SetIpBlackListConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetIpBlackListConfigRequest::getBlockIps()const @@ -66,6 +66,6 @@ std::string SetIpBlackListConfigRequest::getBlockIps()const void SetIpBlackListConfigRequest::setBlockIps(const std::string& blockIps) { blockIps_ = blockIps; - setParameter("BlockIps", blockIps); + setCoreParameter("BlockIps", blockIps); } diff --git a/cdn/src/model/SetIpBlackListConfigResult.cc b/cdn/src/model/SetIpBlackListConfigResult.cc index d08c7b285..2607974b1 100644 --- a/cdn/src/model/SetIpBlackListConfigResult.cc +++ b/cdn/src/model/SetIpBlackListConfigResult.cc @@ -35,10 +35,13 @@ SetIpBlackListConfigResult::~SetIpBlackListConfigResult() void SetIpBlackListConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetL2OssKeyConfigRequest.cc b/cdn/src/model/SetL2OssKeyConfigRequest.cc index 70efe97f2..a70da9075 100644 --- a/cdn/src/model/SetL2OssKeyConfigRequest.cc +++ b/cdn/src/model/SetL2OssKeyConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetL2OssKeyConfigRequest::getSecurityToken()const void SetL2OssKeyConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetL2OssKeyConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetL2OssKeyConfigRequest::getDomainName()const void SetL2OssKeyConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetL2OssKeyConfigRequest::getOwnerId()const @@ -55,7 +55,7 @@ long SetL2OssKeyConfigRequest::getOwnerId()const void SetL2OssKeyConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetL2OssKeyConfigRequest::getPrivateOssAuth()const @@ -66,6 +66,6 @@ std::string SetL2OssKeyConfigRequest::getPrivateOssAuth()const void SetL2OssKeyConfigRequest::setPrivateOssAuth(const std::string& privateOssAuth) { privateOssAuth_ = privateOssAuth; - setParameter("PrivateOssAuth", privateOssAuth); + setCoreParameter("PrivateOssAuth", privateOssAuth); } diff --git a/cdn/src/model/SetL2OssKeyConfigResult.cc b/cdn/src/model/SetL2OssKeyConfigResult.cc index c1d28c3bf..352cc54f6 100644 --- a/cdn/src/model/SetL2OssKeyConfigResult.cc +++ b/cdn/src/model/SetL2OssKeyConfigResult.cc @@ -35,10 +35,13 @@ SetL2OssKeyConfigResult::~SetL2OssKeyConfigResult() void SetL2OssKeyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetLiveStreamsNotifyUrlConfigRequest.cc b/cdn/src/model/SetLiveStreamsNotifyUrlConfigRequest.cc index f9b5d37a0..393462d87 100644 --- a/cdn/src/model/SetLiveStreamsNotifyUrlConfigRequest.cc +++ b/cdn/src/model/SetLiveStreamsNotifyUrlConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetLiveStreamsNotifyUrlConfigRequest::getSecurityToken()const void SetLiveStreamsNotifyUrlConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetLiveStreamsNotifyUrlConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetLiveStreamsNotifyUrlConfigRequest::getDomainName()const void SetLiveStreamsNotifyUrlConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetLiveStreamsNotifyUrlConfigRequest::getNotifyUrl()const @@ -55,7 +55,7 @@ std::string SetLiveStreamsNotifyUrlConfigRequest::getNotifyUrl()const void SetLiveStreamsNotifyUrlConfigRequest::setNotifyUrl(const std::string& notifyUrl) { notifyUrl_ = notifyUrl; - setParameter("NotifyUrl", notifyUrl); + setCoreParameter("NotifyUrl", notifyUrl); } long SetLiveStreamsNotifyUrlConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetLiveStreamsNotifyUrlConfigRequest::getOwnerId()const void SetLiveStreamsNotifyUrlConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetLiveStreamsNotifyUrlConfigResult.cc b/cdn/src/model/SetLiveStreamsNotifyUrlConfigResult.cc index f5d79dc92..e077ec0f6 100644 --- a/cdn/src/model/SetLiveStreamsNotifyUrlConfigResult.cc +++ b/cdn/src/model/SetLiveStreamsNotifyUrlConfigResult.cc @@ -35,10 +35,13 @@ SetLiveStreamsNotifyUrlConfigResult::~SetLiveStreamsNotifyUrlConfigResult() void SetLiveStreamsNotifyUrlConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetOptimizeConfigRequest.cc b/cdn/src/model/SetOptimizeConfigRequest.cc index 81a7c2939..0d8f31b88 100644 --- a/cdn/src/model/SetOptimizeConfigRequest.cc +++ b/cdn/src/model/SetOptimizeConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetOptimizeConfigRequest::getSecurityToken()const void SetOptimizeConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetOptimizeConfigRequest::getEnable()const @@ -44,7 +44,7 @@ std::string SetOptimizeConfigRequest::getEnable()const void SetOptimizeConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetOptimizeConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetOptimizeConfigRequest::getDomainName()const void SetOptimizeConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetOptimizeConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetOptimizeConfigRequest::getOwnerId()const void SetOptimizeConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetOptimizeConfigResult.cc b/cdn/src/model/SetOptimizeConfigResult.cc index 6e89d2963..e85e0e3c0 100644 --- a/cdn/src/model/SetOptimizeConfigResult.cc +++ b/cdn/src/model/SetOptimizeConfigResult.cc @@ -35,10 +35,13 @@ SetOptimizeConfigResult::~SetOptimizeConfigResult() void SetOptimizeConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetPageCompressConfigRequest.cc b/cdn/src/model/SetPageCompressConfigRequest.cc index 22a134435..28efc0444 100644 --- a/cdn/src/model/SetPageCompressConfigRequest.cc +++ b/cdn/src/model/SetPageCompressConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetPageCompressConfigRequest::getSecurityToken()const void SetPageCompressConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetPageCompressConfigRequest::getEnable()const @@ -44,7 +44,7 @@ std::string SetPageCompressConfigRequest::getEnable()const void SetPageCompressConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetPageCompressConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetPageCompressConfigRequest::getDomainName()const void SetPageCompressConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetPageCompressConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetPageCompressConfigRequest::getOwnerId()const void SetPageCompressConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetPageCompressConfigResult.cc b/cdn/src/model/SetPageCompressConfigResult.cc index 0cf20dff4..21da7c52a 100644 --- a/cdn/src/model/SetPageCompressConfigResult.cc +++ b/cdn/src/model/SetPageCompressConfigResult.cc @@ -35,10 +35,13 @@ SetPageCompressConfigResult::~SetPageCompressConfigResult() void SetPageCompressConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetPathCacheExpiredConfigRequest.cc b/cdn/src/model/SetPathCacheExpiredConfigRequest.cc index ea1825d94..761f99faa 100644 --- a/cdn/src/model/SetPathCacheExpiredConfigRequest.cc +++ b/cdn/src/model/SetPathCacheExpiredConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetPathCacheExpiredConfigRequest::getSecurityToken()const void SetPathCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetPathCacheExpiredConfigRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SetPathCacheExpiredConfigRequest::getDomainName()const void SetPathCacheExpiredConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetPathCacheExpiredConfigRequest::getWeight()const @@ -55,7 +55,7 @@ std::string SetPathCacheExpiredConfigRequest::getWeight()const void SetPathCacheExpiredConfigRequest::setWeight(const std::string& weight) { weight_ = weight; - setParameter("Weight", weight); + setCoreParameter("Weight", weight); } std::string SetPathCacheExpiredConfigRequest::getCacheContent()const @@ -66,7 +66,7 @@ std::string SetPathCacheExpiredConfigRequest::getCacheContent()const void SetPathCacheExpiredConfigRequest::setCacheContent(const std::string& cacheContent) { cacheContent_ = cacheContent; - setParameter("CacheContent", cacheContent); + setCoreParameter("CacheContent", cacheContent); } long SetPathCacheExpiredConfigRequest::getOwnerId()const @@ -77,7 +77,7 @@ long SetPathCacheExpiredConfigRequest::getOwnerId()const void SetPathCacheExpiredConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetPathCacheExpiredConfigRequest::getTTL()const @@ -88,6 +88,6 @@ std::string SetPathCacheExpiredConfigRequest::getTTL()const void SetPathCacheExpiredConfigRequest::setTTL(const std::string& tTL) { tTL_ = tTL; - setParameter("TTL", tTL); + setCoreParameter("TTL", tTL); } diff --git a/cdn/src/model/SetPathCacheExpiredConfigResult.cc b/cdn/src/model/SetPathCacheExpiredConfigResult.cc index 2541a5d9d..183329cc8 100644 --- a/cdn/src/model/SetPathCacheExpiredConfigResult.cc +++ b/cdn/src/model/SetPathCacheExpiredConfigResult.cc @@ -35,10 +35,13 @@ SetPathCacheExpiredConfigResult::~SetPathCacheExpiredConfigResult() void SetPathCacheExpiredConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetRangeConfigRequest.cc b/cdn/src/model/SetRangeConfigRequest.cc index f584679d3..1edea396d 100644 --- a/cdn/src/model/SetRangeConfigRequest.cc +++ b/cdn/src/model/SetRangeConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetRangeConfigRequest::getSecurityToken()const void SetRangeConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetRangeConfigRequest::getEnable()const @@ -44,7 +44,7 @@ std::string SetRangeConfigRequest::getEnable()const void SetRangeConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetRangeConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetRangeConfigRequest::getDomainName()const void SetRangeConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetRangeConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetRangeConfigRequest::getOwnerId()const void SetRangeConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetRangeConfigResult.cc b/cdn/src/model/SetRangeConfigResult.cc index 01dc34077..d58739ee3 100644 --- a/cdn/src/model/SetRangeConfigResult.cc +++ b/cdn/src/model/SetRangeConfigResult.cc @@ -35,10 +35,13 @@ SetRangeConfigResult::~SetRangeConfigResult() void SetRangeConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetRefererConfigRequest.cc b/cdn/src/model/SetRefererConfigRequest.cc index 244baf36e..9f30f0594 100644 --- a/cdn/src/model/SetRefererConfigRequest.cc +++ b/cdn/src/model/SetRefererConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetRefererConfigRequest::getReferList()const void SetRefererConfigRequest::setReferList(const std::string& referList) { referList_ = referList; - setParameter("ReferList", referList); + setCoreParameter("ReferList", referList); } std::string SetRefererConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetRefererConfigRequest::getSecurityToken()const void SetRefererConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetRefererConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetRefererConfigRequest::getDomainName()const void SetRefererConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetRefererConfigRequest::getReferType()const @@ -66,7 +66,7 @@ std::string SetRefererConfigRequest::getReferType()const void SetRefererConfigRequest::setReferType(const std::string& referType) { referType_ = referType; - setParameter("ReferType", referType); + setCoreParameter("ReferType", referType); } std::string SetRefererConfigRequest::getDisableAst()const @@ -77,7 +77,7 @@ std::string SetRefererConfigRequest::getDisableAst()const void SetRefererConfigRequest::setDisableAst(const std::string& disableAst) { disableAst_ = disableAst; - setParameter("DisableAst", disableAst); + setCoreParameter("DisableAst", disableAst); } long SetRefererConfigRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SetRefererConfigRequest::getOwnerId()const void SetRefererConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetRefererConfigRequest::getAllowEmpty()const @@ -99,6 +99,6 @@ std::string SetRefererConfigRequest::getAllowEmpty()const void SetRefererConfigRequest::setAllowEmpty(const std::string& allowEmpty) { allowEmpty_ = allowEmpty; - setParameter("AllowEmpty", allowEmpty); + setCoreParameter("AllowEmpty", allowEmpty); } diff --git a/cdn/src/model/SetRefererConfigResult.cc b/cdn/src/model/SetRefererConfigResult.cc index fc5e7d239..e884d4fae 100644 --- a/cdn/src/model/SetRefererConfigResult.cc +++ b/cdn/src/model/SetRefererConfigResult.cc @@ -35,10 +35,13 @@ SetRefererConfigResult::~SetRefererConfigResult() void SetRefererConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetRemoveQueryStringConfigRequest.cc b/cdn/src/model/SetRemoveQueryStringConfigRequest.cc index 6460b58b4..859a0ac3c 100644 --- a/cdn/src/model/SetRemoveQueryStringConfigRequest.cc +++ b/cdn/src/model/SetRemoveQueryStringConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetRemoveQueryStringConfigRequest::getKeepOssArgs()const void SetRemoveQueryStringConfigRequest::setKeepOssArgs(const std::string& keepOssArgs) { keepOssArgs_ = keepOssArgs; - setParameter("KeepOssArgs", keepOssArgs); + setCoreParameter("KeepOssArgs", keepOssArgs); } std::string SetRemoveQueryStringConfigRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetRemoveQueryStringConfigRequest::getSecurityToken()const void SetRemoveQueryStringConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetRemoveQueryStringConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetRemoveQueryStringConfigRequest::getDomainName()const void SetRemoveQueryStringConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SetRemoveQueryStringConfigRequest::getAliRemoveArgs()const @@ -66,7 +66,7 @@ std::string SetRemoveQueryStringConfigRequest::getAliRemoveArgs()const void SetRemoveQueryStringConfigRequest::setAliRemoveArgs(const std::string& aliRemoveArgs) { aliRemoveArgs_ = aliRemoveArgs; - setParameter("AliRemoveArgs", aliRemoveArgs); + setCoreParameter("AliRemoveArgs", aliRemoveArgs); } long SetRemoveQueryStringConfigRequest::getOwnerId()const @@ -77,6 +77,6 @@ long SetRemoveQueryStringConfigRequest::getOwnerId()const void SetRemoveQueryStringConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetRemoveQueryStringConfigResult.cc b/cdn/src/model/SetRemoveQueryStringConfigResult.cc index 68527f1aa..18d021dbd 100644 --- a/cdn/src/model/SetRemoveQueryStringConfigResult.cc +++ b/cdn/src/model/SetRemoveQueryStringConfigResult.cc @@ -35,10 +35,13 @@ SetRemoveQueryStringConfigResult::~SetRemoveQueryStringConfigResult() void SetRemoveQueryStringConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetReqAuthConfigRequest.cc b/cdn/src/model/SetReqAuthConfigRequest.cc index 356deba12..ad1b24ca4 100644 --- a/cdn/src/model/SetReqAuthConfigRequest.cc +++ b/cdn/src/model/SetReqAuthConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetReqAuthConfigRequest::getKey1()const void SetReqAuthConfigRequest::setKey1(const std::string& key1) { key1_ = key1; - setParameter("Key1", key1); + setCoreParameter("Key1", key1); } std::string SetReqAuthConfigRequest::getKey2()const @@ -44,7 +44,7 @@ std::string SetReqAuthConfigRequest::getKey2()const void SetReqAuthConfigRequest::setKey2(const std::string& key2) { key2_ = key2; - setParameter("Key2", key2); + setCoreParameter("Key2", key2); } std::string SetReqAuthConfigRequest::getAuthRemoteDesc()const @@ -55,7 +55,7 @@ std::string SetReqAuthConfigRequest::getAuthRemoteDesc()const void SetReqAuthConfigRequest::setAuthRemoteDesc(const std::string& authRemoteDesc) { authRemoteDesc_ = authRemoteDesc; - setParameter("AuthRemoteDesc", authRemoteDesc); + setCoreParameter("AuthRemoteDesc", authRemoteDesc); } std::string SetReqAuthConfigRequest::getSecurityToken()const @@ -66,7 +66,7 @@ std::string SetReqAuthConfigRequest::getSecurityToken()const void SetReqAuthConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetReqAuthConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string SetReqAuthConfigRequest::getDomainName()const void SetReqAuthConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetReqAuthConfigRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SetReqAuthConfigRequest::getOwnerId()const void SetReqAuthConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetReqAuthConfigRequest::getTimeOut()const @@ -99,7 +99,7 @@ std::string SetReqAuthConfigRequest::getTimeOut()const void SetReqAuthConfigRequest::setTimeOut(const std::string& timeOut) { timeOut_ = timeOut; - setParameter("TimeOut", timeOut); + setCoreParameter("TimeOut", timeOut); } std::string SetReqAuthConfigRequest::getAuthType()const @@ -110,6 +110,6 @@ std::string SetReqAuthConfigRequest::getAuthType()const void SetReqAuthConfigRequest::setAuthType(const std::string& authType) { authType_ = authType; - setParameter("AuthType", authType); + setCoreParameter("AuthType", authType); } diff --git a/cdn/src/model/SetReqAuthConfigResult.cc b/cdn/src/model/SetReqAuthConfigResult.cc index 10cebdb1c..811f80161 100644 --- a/cdn/src/model/SetReqAuthConfigResult.cc +++ b/cdn/src/model/SetReqAuthConfigResult.cc @@ -35,10 +35,13 @@ SetReqAuthConfigResult::~SetReqAuthConfigResult() void SetReqAuthConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetReqHeaderConfigRequest.cc b/cdn/src/model/SetReqHeaderConfigRequest.cc index e8c78d15e..052574e8e 100644 --- a/cdn/src/model/SetReqHeaderConfigRequest.cc +++ b/cdn/src/model/SetReqHeaderConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetReqHeaderConfigRequest::getSecurityToken()const void SetReqHeaderConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long SetReqHeaderConfigRequest::getConfigId()const @@ -44,7 +44,7 @@ long SetReqHeaderConfigRequest::getConfigId()const void SetReqHeaderConfigRequest::setConfigId(long configId) { configId_ = configId; - setParameter("ConfigId", std::to_string(configId)); + setCoreParameter("ConfigId", std::to_string(configId)); } std::string SetReqHeaderConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetReqHeaderConfigRequest::getDomainName()const void SetReqHeaderConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetReqHeaderConfigRequest::getOwnerId()const @@ -66,7 +66,7 @@ long SetReqHeaderConfigRequest::getOwnerId()const void SetReqHeaderConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetReqHeaderConfigRequest::getValue()const @@ -77,7 +77,7 @@ std::string SetReqHeaderConfigRequest::getValue()const void SetReqHeaderConfigRequest::setValue(const std::string& value) { value_ = value; - setParameter("Value", value); + setCoreParameter("Value", value); } std::string SetReqHeaderConfigRequest::getKey()const @@ -88,6 +88,6 @@ std::string SetReqHeaderConfigRequest::getKey()const void SetReqHeaderConfigRequest::setKey(const std::string& key) { key_ = key; - setParameter("Key", key); + setCoreParameter("Key", key); } diff --git a/cdn/src/model/SetReqHeaderConfigResult.cc b/cdn/src/model/SetReqHeaderConfigResult.cc index 8dd0a3a62..5786eccd9 100644 --- a/cdn/src/model/SetReqHeaderConfigResult.cc +++ b/cdn/src/model/SetReqHeaderConfigResult.cc @@ -35,10 +35,13 @@ SetReqHeaderConfigResult::~SetReqHeaderConfigResult() void SetReqHeaderConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetSourceHostConfigRequest.cc b/cdn/src/model/SetSourceHostConfigRequest.cc index 5c361de59..1ea4e1cac 100644 --- a/cdn/src/model/SetSourceHostConfigRequest.cc +++ b/cdn/src/model/SetSourceHostConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetSourceHostConfigRequest::getSecurityToken()const void SetSourceHostConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetSourceHostConfigRequest::getEnable()const @@ -44,7 +44,7 @@ std::string SetSourceHostConfigRequest::getEnable()const void SetSourceHostConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetSourceHostConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetSourceHostConfigRequest::getDomainName()const void SetSourceHostConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetSourceHostConfigRequest::getOwnerId()const @@ -66,7 +66,7 @@ long SetSourceHostConfigRequest::getOwnerId()const void SetSourceHostConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetSourceHostConfigRequest::getBackSrcDomain()const @@ -77,6 +77,6 @@ std::string SetSourceHostConfigRequest::getBackSrcDomain()const void SetSourceHostConfigRequest::setBackSrcDomain(const std::string& backSrcDomain) { backSrcDomain_ = backSrcDomain; - setParameter("BackSrcDomain", backSrcDomain); + setCoreParameter("BackSrcDomain", backSrcDomain); } diff --git a/cdn/src/model/SetSourceHostConfigResult.cc b/cdn/src/model/SetSourceHostConfigResult.cc index 62f017477..b6dd4bda0 100644 --- a/cdn/src/model/SetSourceHostConfigResult.cc +++ b/cdn/src/model/SetSourceHostConfigResult.cc @@ -35,10 +35,13 @@ SetSourceHostConfigResult::~SetSourceHostConfigResult() void SetSourceHostConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetUserGreenManagerConfigRequest.cc b/cdn/src/model/SetUserGreenManagerConfigRequest.cc index 22f5f36db..73c840c5c 100644 --- a/cdn/src/model/SetUserGreenManagerConfigRequest.cc +++ b/cdn/src/model/SetUserGreenManagerConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetUserGreenManagerConfigRequest::getSecurityToken()const void SetUserGreenManagerConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetUserGreenManagerConfigRequest::getQuota()const @@ -44,7 +44,7 @@ std::string SetUserGreenManagerConfigRequest::getQuota()const void SetUserGreenManagerConfigRequest::setQuota(const std::string& quota) { quota_ = quota; - setParameter("Quota", quota); + setCoreParameter("Quota", quota); } long SetUserGreenManagerConfigRequest::getOwnerId()const @@ -55,7 +55,7 @@ long SetUserGreenManagerConfigRequest::getOwnerId()const void SetUserGreenManagerConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetUserGreenManagerConfigRequest::getRatio()const @@ -66,6 +66,6 @@ std::string SetUserGreenManagerConfigRequest::getRatio()const void SetUserGreenManagerConfigRequest::setRatio(const std::string& ratio) { ratio_ = ratio; - setParameter("Ratio", ratio); + setCoreParameter("Ratio", ratio); } diff --git a/cdn/src/model/SetUserGreenManagerConfigResult.cc b/cdn/src/model/SetUserGreenManagerConfigResult.cc index cbb160bb7..88ad9d9c8 100644 --- a/cdn/src/model/SetUserGreenManagerConfigResult.cc +++ b/cdn/src/model/SetUserGreenManagerConfigResult.cc @@ -35,10 +35,13 @@ SetUserGreenManagerConfigResult::~SetUserGreenManagerConfigResult() void SetUserGreenManagerConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetVideoSeekConfigRequest.cc b/cdn/src/model/SetVideoSeekConfigRequest.cc index a65455bdd..c9be0dacf 100644 --- a/cdn/src/model/SetVideoSeekConfigRequest.cc +++ b/cdn/src/model/SetVideoSeekConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetVideoSeekConfigRequest::getSecurityToken()const void SetVideoSeekConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetVideoSeekConfigRequest::getEnable()const @@ -44,7 +44,7 @@ std::string SetVideoSeekConfigRequest::getEnable()const void SetVideoSeekConfigRequest::setEnable(const std::string& enable) { enable_ = enable; - setParameter("Enable", enable); + setCoreParameter("Enable", enable); } std::string SetVideoSeekConfigRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SetVideoSeekConfigRequest::getDomainName()const void SetVideoSeekConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetVideoSeekConfigRequest::getOwnerId()const @@ -66,6 +66,6 @@ long SetVideoSeekConfigRequest::getOwnerId()const void SetVideoSeekConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/SetVideoSeekConfigResult.cc b/cdn/src/model/SetVideoSeekConfigResult.cc index 0d89dd778..e90203c66 100644 --- a/cdn/src/model/SetVideoSeekConfigResult.cc +++ b/cdn/src/model/SetVideoSeekConfigResult.cc @@ -35,10 +35,13 @@ SetVideoSeekConfigResult::~SetVideoSeekConfigResult() void SetVideoSeekConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/SetWaitingRoomConfigRequest.cc b/cdn/src/model/SetWaitingRoomConfigRequest.cc index 3176e2f94..a60c8727e 100644 --- a/cdn/src/model/SetWaitingRoomConfigRequest.cc +++ b/cdn/src/model/SetWaitingRoomConfigRequest.cc @@ -33,7 +33,7 @@ long SetWaitingRoomConfigRequest::getCallerParentId()const void SetWaitingRoomConfigRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool SetWaitingRoomConfigRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool SetWaitingRoomConfigRequest::getProxy_original_security_transport()const void SetWaitingRoomConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string SetWaitingRoomConfigRequest::getProxy_original_source_ip()const @@ -55,7 +55,7 @@ std::string SetWaitingRoomConfigRequest::getProxy_original_source_ip()const void SetWaitingRoomConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string SetWaitingRoomConfigRequest::getOwnerIdLoginEmail()const @@ -66,7 +66,7 @@ std::string SetWaitingRoomConfigRequest::getOwnerIdLoginEmail()const void SetWaitingRoomConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string SetWaitingRoomConfigRequest::getCallerType()const @@ -77,7 +77,7 @@ std::string SetWaitingRoomConfigRequest::getCallerType()const void SetWaitingRoomConfigRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string SetWaitingRoomConfigRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string SetWaitingRoomConfigRequest::getAccessKeyId()const void SetWaitingRoomConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SetWaitingRoomConfigRequest::getWaitUrl()const @@ -99,7 +99,7 @@ std::string SetWaitingRoomConfigRequest::getWaitUrl()const void SetWaitingRoomConfigRequest::setWaitUrl(const std::string& waitUrl) { waitUrl_ = waitUrl; - setParameter("WaitUrl", waitUrl); + setCoreParameter("WaitUrl", waitUrl); } std::string SetWaitingRoomConfigRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string SetWaitingRoomConfigRequest::getSecurityToken()const void SetWaitingRoomConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetWaitingRoomConfigRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string SetWaitingRoomConfigRequest::getRequestContent()const void SetWaitingRoomConfigRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string SetWaitingRoomConfigRequest::getFunctionName()const @@ -132,7 +132,7 @@ std::string SetWaitingRoomConfigRequest::getFunctionName()const void SetWaitingRoomConfigRequest::setFunctionName(const std::string& functionName) { functionName_ = functionName; - setParameter("FunctionName", functionName); + setCoreParameter("FunctionName", functionName); } std::string SetWaitingRoomConfigRequest::getCallerBidEmail()const @@ -143,7 +143,7 @@ std::string SetWaitingRoomConfigRequest::getCallerBidEmail()const void SetWaitingRoomConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string SetWaitingRoomConfigRequest::getCallerUidEmail()const @@ -154,7 +154,7 @@ std::string SetWaitingRoomConfigRequest::getCallerUidEmail()const void SetWaitingRoomConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string SetWaitingRoomConfigRequest::getWaitUri()const @@ -165,7 +165,7 @@ std::string SetWaitingRoomConfigRequest::getWaitUri()const void SetWaitingRoomConfigRequest::setWaitUri(const std::string& waitUri) { waitUri_ = waitUri; - setParameter("WaitUri", waitUri); + setCoreParameter("WaitUri", waitUri); } long SetWaitingRoomConfigRequest::getCallerUid()const @@ -176,7 +176,7 @@ long SetWaitingRoomConfigRequest::getCallerUid()const void SetWaitingRoomConfigRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string SetWaitingRoomConfigRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string SetWaitingRoomConfigRequest::getApp_ip()const void SetWaitingRoomConfigRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string SetWaitingRoomConfigRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string SetWaitingRoomConfigRequest::getPopProduct()const void SetWaitingRoomConfigRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } int SetWaitingRoomConfigRequest::getMaxTimeWait()const @@ -209,7 +209,7 @@ int SetWaitingRoomConfigRequest::getMaxTimeWait()const void SetWaitingRoomConfigRequest::setMaxTimeWait(int maxTimeWait) { maxTimeWait_ = maxTimeWait; - setParameter("MaxTimeWait", std::to_string(maxTimeWait)); + setCoreParameter("MaxTimeWait", std::to_string(maxTimeWait)); } std::string SetWaitingRoomConfigRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string SetWaitingRoomConfigRequest::getDomainName()const void SetWaitingRoomConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int SetWaitingRoomConfigRequest::getAllowPct()const @@ -231,7 +231,7 @@ int SetWaitingRoomConfigRequest::getAllowPct()const void SetWaitingRoomConfigRequest::setAllowPct(int allowPct) { allowPct_ = allowPct; - setParameter("AllowPct", std::to_string(allowPct)); + setCoreParameter("AllowPct", std::to_string(allowPct)); } std::string SetWaitingRoomConfigRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string SetWaitingRoomConfigRequest::getCallerBid()const void SetWaitingRoomConfigRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } int SetWaitingRoomConfigRequest::getGapTime()const @@ -253,7 +253,7 @@ int SetWaitingRoomConfigRequest::getGapTime()const void SetWaitingRoomConfigRequest::setGapTime(int gapTime) { gapTime_ = gapTime; - setParameter("GapTime", std::to_string(gapTime)); + setCoreParameter("GapTime", std::to_string(gapTime)); } long SetWaitingRoomConfigRequest::getOwnerId()const @@ -264,7 +264,7 @@ long SetWaitingRoomConfigRequest::getOwnerId()const void SetWaitingRoomConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetWaitingRoomConfigRequest::getVersion()const @@ -275,7 +275,7 @@ std::string SetWaitingRoomConfigRequest::getVersion()const void SetWaitingRoomConfigRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool SetWaitingRoomConfigRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool SetWaitingRoomConfigRequest::getProxy_trust_transport_info()const void SetWaitingRoomConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool SetWaitingRoomConfigRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool SetWaitingRoomConfigRequest::getAk_mfa_present()const void SetWaitingRoomConfigRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool SetWaitingRoomConfigRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool SetWaitingRoomConfigRequest::getSecurity_transport()const void SetWaitingRoomConfigRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string SetWaitingRoomConfigRequest::getRequestId()const @@ -319,6 +319,6 @@ std::string SetWaitingRoomConfigRequest::getRequestId()const void SetWaitingRoomConfigRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/cdn/src/model/SetWaitingRoomConfigResult.cc b/cdn/src/model/SetWaitingRoomConfigResult.cc index 2fcdc4698..423cbdfd1 100644 --- a/cdn/src/model/SetWaitingRoomConfigResult.cc +++ b/cdn/src/model/SetWaitingRoomConfigResult.cc @@ -35,10 +35,13 @@ SetWaitingRoomConfigResult::~SetWaitingRoomConfigResult() void SetWaitingRoomConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/StartCdnDomainRequest.cc b/cdn/src/model/StartCdnDomainRequest.cc index 1f79fdaf0..2dfe8fa84 100644 --- a/cdn/src/model/StartCdnDomainRequest.cc +++ b/cdn/src/model/StartCdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string StartCdnDomainRequest::getSecurityToken()const void StartCdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StartCdnDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string StartCdnDomainRequest::getDomainName()const void StartCdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long StartCdnDomainRequest::getOwnerId()const @@ -55,6 +55,6 @@ long StartCdnDomainRequest::getOwnerId()const void StartCdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/StartCdnDomainResult.cc b/cdn/src/model/StartCdnDomainResult.cc index e7e80b91b..da4c6e917 100644 --- a/cdn/src/model/StartCdnDomainResult.cc +++ b/cdn/src/model/StartCdnDomainResult.cc @@ -35,10 +35,13 @@ StartCdnDomainResult::~StartCdnDomainResult() void StartCdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/StartMixStreamsServiceRequest.cc b/cdn/src/model/StartMixStreamsServiceRequest.cc index 797d0b60e..da9a44fb4 100644 --- a/cdn/src/model/StartMixStreamsServiceRequest.cc +++ b/cdn/src/model/StartMixStreamsServiceRequest.cc @@ -33,7 +33,7 @@ std::string StartMixStreamsServiceRequest::getMixType()const void StartMixStreamsServiceRequest::setMixType(const std::string& mixType) { mixType_ = mixType; - setParameter("MixType", mixType); + setCoreParameter("MixType", mixType); } std::string StartMixStreamsServiceRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string StartMixStreamsServiceRequest::getSecurityToken()const void StartMixStreamsServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StartMixStreamsServiceRequest::getMainDomainName()const @@ -55,7 +55,7 @@ std::string StartMixStreamsServiceRequest::getMainDomainName()const void StartMixStreamsServiceRequest::setMainDomainName(const std::string& mainDomainName) { mainDomainName_ = mainDomainName; - setParameter("MainDomainName", mainDomainName); + setCoreParameter("MainDomainName", mainDomainName); } std::string StartMixStreamsServiceRequest::getMixStreamName()const @@ -66,7 +66,7 @@ std::string StartMixStreamsServiceRequest::getMixStreamName()const void StartMixStreamsServiceRequest::setMixStreamName(const std::string& mixStreamName) { mixStreamName_ = mixStreamName; - setParameter("MixStreamName", mixStreamName); + setCoreParameter("MixStreamName", mixStreamName); } std::string StartMixStreamsServiceRequest::getMixTemplate()const @@ -77,7 +77,7 @@ std::string StartMixStreamsServiceRequest::getMixTemplate()const void StartMixStreamsServiceRequest::setMixTemplate(const std::string& mixTemplate) { mixTemplate_ = mixTemplate; - setParameter("MixTemplate", mixTemplate); + setCoreParameter("MixTemplate", mixTemplate); } std::string StartMixStreamsServiceRequest::getMixDomainName()const @@ -88,7 +88,7 @@ std::string StartMixStreamsServiceRequest::getMixDomainName()const void StartMixStreamsServiceRequest::setMixDomainName(const std::string& mixDomainName) { mixDomainName_ = mixDomainName; - setParameter("MixDomainName", mixDomainName); + setCoreParameter("MixDomainName", mixDomainName); } long StartMixStreamsServiceRequest::getOwnerId()const @@ -99,7 +99,7 @@ long StartMixStreamsServiceRequest::getOwnerId()const void StartMixStreamsServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string StartMixStreamsServiceRequest::getMainAppName()const @@ -110,7 +110,7 @@ std::string StartMixStreamsServiceRequest::getMainAppName()const void StartMixStreamsServiceRequest::setMainAppName(const std::string& mainAppName) { mainAppName_ = mainAppName; - setParameter("MainAppName", mainAppName); + setCoreParameter("MainAppName", mainAppName); } std::string StartMixStreamsServiceRequest::getMixAppName()const @@ -121,7 +121,7 @@ std::string StartMixStreamsServiceRequest::getMixAppName()const void StartMixStreamsServiceRequest::setMixAppName(const std::string& mixAppName) { mixAppName_ = mixAppName; - setParameter("MixAppName", mixAppName); + setCoreParameter("MixAppName", mixAppName); } std::string StartMixStreamsServiceRequest::getMainStreamName()const @@ -132,6 +132,6 @@ std::string StartMixStreamsServiceRequest::getMainStreamName()const void StartMixStreamsServiceRequest::setMainStreamName(const std::string& mainStreamName) { mainStreamName_ = mainStreamName; - setParameter("MainStreamName", mainStreamName); + setCoreParameter("MainStreamName", mainStreamName); } diff --git a/cdn/src/model/StartMixStreamsServiceResult.cc b/cdn/src/model/StartMixStreamsServiceResult.cc index 2ada69ad8..85f7aa855 100644 --- a/cdn/src/model/StartMixStreamsServiceResult.cc +++ b/cdn/src/model/StartMixStreamsServiceResult.cc @@ -35,10 +35,13 @@ StartMixStreamsServiceResult::~StartMixStreamsServiceResult() void StartMixStreamsServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMixStreamsInfoList = value["MixStreamsInfoList"]["MixStreamsInfo"]; for (auto value : allMixStreamsInfoList) diff --git a/cdn/src/model/StopCdnDomainRequest.cc b/cdn/src/model/StopCdnDomainRequest.cc index 863a14835..2b8beab95 100644 --- a/cdn/src/model/StopCdnDomainRequest.cc +++ b/cdn/src/model/StopCdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string StopCdnDomainRequest::getSecurityToken()const void StopCdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StopCdnDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string StopCdnDomainRequest::getDomainName()const void StopCdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long StopCdnDomainRequest::getOwnerId()const @@ -55,6 +55,6 @@ long StopCdnDomainRequest::getOwnerId()const void StopCdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/StopCdnDomainResult.cc b/cdn/src/model/StopCdnDomainResult.cc index 8ba8137a9..8e18839e5 100644 --- a/cdn/src/model/StopCdnDomainResult.cc +++ b/cdn/src/model/StopCdnDomainResult.cc @@ -35,10 +35,13 @@ StopCdnDomainResult::~StopCdnDomainResult() void StopCdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/StopMixStreamsServiceRequest.cc b/cdn/src/model/StopMixStreamsServiceRequest.cc index 654346dda..37b7296d9 100644 --- a/cdn/src/model/StopMixStreamsServiceRequest.cc +++ b/cdn/src/model/StopMixStreamsServiceRequest.cc @@ -33,7 +33,7 @@ std::string StopMixStreamsServiceRequest::getSecurityToken()const void StopMixStreamsServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StopMixStreamsServiceRequest::getMainDomainName()const @@ -44,7 +44,7 @@ std::string StopMixStreamsServiceRequest::getMainDomainName()const void StopMixStreamsServiceRequest::setMainDomainName(const std::string& mainDomainName) { mainDomainName_ = mainDomainName; - setParameter("MainDomainName", mainDomainName); + setCoreParameter("MainDomainName", mainDomainName); } std::string StopMixStreamsServiceRequest::getMixStreamName()const @@ -55,7 +55,7 @@ std::string StopMixStreamsServiceRequest::getMixStreamName()const void StopMixStreamsServiceRequest::setMixStreamName(const std::string& mixStreamName) { mixStreamName_ = mixStreamName; - setParameter("MixStreamName", mixStreamName); + setCoreParameter("MixStreamName", mixStreamName); } std::string StopMixStreamsServiceRequest::getMixDomainName()const @@ -66,7 +66,7 @@ std::string StopMixStreamsServiceRequest::getMixDomainName()const void StopMixStreamsServiceRequest::setMixDomainName(const std::string& mixDomainName) { mixDomainName_ = mixDomainName; - setParameter("MixDomainName", mixDomainName); + setCoreParameter("MixDomainName", mixDomainName); } long StopMixStreamsServiceRequest::getOwnerId()const @@ -77,7 +77,7 @@ long StopMixStreamsServiceRequest::getOwnerId()const void StopMixStreamsServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string StopMixStreamsServiceRequest::getMainAppName()const @@ -88,7 +88,7 @@ std::string StopMixStreamsServiceRequest::getMainAppName()const void StopMixStreamsServiceRequest::setMainAppName(const std::string& mainAppName) { mainAppName_ = mainAppName; - setParameter("MainAppName", mainAppName); + setCoreParameter("MainAppName", mainAppName); } std::string StopMixStreamsServiceRequest::getMixAppName()const @@ -99,7 +99,7 @@ std::string StopMixStreamsServiceRequest::getMixAppName()const void StopMixStreamsServiceRequest::setMixAppName(const std::string& mixAppName) { mixAppName_ = mixAppName; - setParameter("MixAppName", mixAppName); + setCoreParameter("MixAppName", mixAppName); } std::string StopMixStreamsServiceRequest::getMainStreamName()const @@ -110,6 +110,6 @@ std::string StopMixStreamsServiceRequest::getMainStreamName()const void StopMixStreamsServiceRequest::setMainStreamName(const std::string& mainStreamName) { mainStreamName_ = mainStreamName; - setParameter("MainStreamName", mainStreamName); + setCoreParameter("MainStreamName", mainStreamName); } diff --git a/cdn/src/model/StopMixStreamsServiceResult.cc b/cdn/src/model/StopMixStreamsServiceResult.cc index 20d1d3fb8..72a202a3f 100644 --- a/cdn/src/model/StopMixStreamsServiceResult.cc +++ b/cdn/src/model/StopMixStreamsServiceResult.cc @@ -35,10 +35,13 @@ StopMixStreamsServiceResult::~StopMixStreamsServiceResult() void StopMixStreamsServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMixStreamsInfoList = value["MixStreamsInfoList"]["MixStreamsInfo"]; for (auto value : allMixStreamsInfoList) diff --git a/cdn/src/model/UpdateFCTriggerRequest.cc b/cdn/src/model/UpdateFCTriggerRequest.cc index 3659026f2..43deb3165 100644 --- a/cdn/src/model/UpdateFCTriggerRequest.cc +++ b/cdn/src/model/UpdateFCTriggerRequest.cc @@ -33,7 +33,7 @@ std::string UpdateFCTriggerRequest::getNotes()const void UpdateFCTriggerRequest::setNotes(const std::string& notes) { notes_ = notes; - setParameter("Notes", notes); + setCoreParameter("Notes", notes); } long UpdateFCTriggerRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long UpdateFCTriggerRequest::getCallerParentId()const void UpdateFCTriggerRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool UpdateFCTriggerRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool UpdateFCTriggerRequest::getProxy_original_security_transport()const void UpdateFCTriggerRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string UpdateFCTriggerRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string UpdateFCTriggerRequest::getProxy_original_source_ip()const void UpdateFCTriggerRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string UpdateFCTriggerRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string UpdateFCTriggerRequest::getOwnerIdLoginEmail()const void UpdateFCTriggerRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string UpdateFCTriggerRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string UpdateFCTriggerRequest::getCallerType()const void UpdateFCTriggerRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string UpdateFCTriggerRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string UpdateFCTriggerRequest::getAccessKeyId()const void UpdateFCTriggerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateFCTriggerRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string UpdateFCTriggerRequest::getSecurityToken()const void UpdateFCTriggerRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UpdateFCTriggerRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string UpdateFCTriggerRequest::getRequestContent()const void UpdateFCTriggerRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string UpdateFCTriggerRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string UpdateFCTriggerRequest::getCallerBidEmail()const void UpdateFCTriggerRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string UpdateFCTriggerRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string UpdateFCTriggerRequest::getCallerUidEmail()const void UpdateFCTriggerRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long UpdateFCTriggerRequest::getCallerUid()const @@ -154,7 +154,7 @@ long UpdateFCTriggerRequest::getCallerUid()const void UpdateFCTriggerRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string UpdateFCTriggerRequest::getTriggerARN()const @@ -165,7 +165,7 @@ std::string UpdateFCTriggerRequest::getTriggerARN()const void UpdateFCTriggerRequest::setTriggerARN(const std::string& triggerARN) { triggerARN_ = triggerARN; - setParameter("TriggerARN", triggerARN); + setCoreParameter("TriggerARN", triggerARN); } std::string UpdateFCTriggerRequest::getApp_ip()const @@ -176,7 +176,7 @@ std::string UpdateFCTriggerRequest::getApp_ip()const void UpdateFCTriggerRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string UpdateFCTriggerRequest::getPopProduct()const @@ -187,7 +187,7 @@ std::string UpdateFCTriggerRequest::getPopProduct()const void UpdateFCTriggerRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string UpdateFCTriggerRequest::getProduct()const @@ -198,7 +198,7 @@ std::string UpdateFCTriggerRequest::getProduct()const void UpdateFCTriggerRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string UpdateFCTriggerRequest::getSourceARN()const @@ -209,7 +209,7 @@ std::string UpdateFCTriggerRequest::getSourceARN()const void UpdateFCTriggerRequest::setSourceARN(const std::string& sourceARN) { sourceARN_ = sourceARN; - setParameter("SourceARN", sourceARN); + setCoreParameter("SourceARN", sourceARN); } std::string UpdateFCTriggerRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string UpdateFCTriggerRequest::getCallerBid()const void UpdateFCTriggerRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long UpdateFCTriggerRequest::getOwnerId()const @@ -231,7 +231,7 @@ long UpdateFCTriggerRequest::getOwnerId()const void UpdateFCTriggerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateFCTriggerRequest::getVersion()const @@ -242,7 +242,7 @@ std::string UpdateFCTriggerRequest::getVersion()const void UpdateFCTriggerRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool UpdateFCTriggerRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool UpdateFCTriggerRequest::getProxy_trust_transport_info()const void UpdateFCTriggerRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool UpdateFCTriggerRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool UpdateFCTriggerRequest::getAk_mfa_present()const void UpdateFCTriggerRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool UpdateFCTriggerRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool UpdateFCTriggerRequest::getSecurity_transport()const void UpdateFCTriggerRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", security_transport ? "true" : "false"); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string UpdateFCTriggerRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string UpdateFCTriggerRequest::getRequestId()const void UpdateFCTriggerRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string UpdateFCTriggerRequest::getRoleARN()const @@ -297,7 +297,7 @@ std::string UpdateFCTriggerRequest::getRoleARN()const void UpdateFCTriggerRequest::setRoleARN(const std::string& roleARN) { roleARN_ = roleARN; - setParameter("RoleARN", roleARN); + setCoreParameter("RoleARN", roleARN); } std::string UpdateFCTriggerRequest::getFunctionARN()const @@ -308,6 +308,6 @@ std::string UpdateFCTriggerRequest::getFunctionARN()const void UpdateFCTriggerRequest::setFunctionARN(const std::string& functionARN) { functionARN_ = functionARN; - setParameter("FunctionARN", functionARN); + setCoreParameter("FunctionARN", functionARN); } diff --git a/cdn/src/model/UpdateFCTriggerResult.cc b/cdn/src/model/UpdateFCTriggerResult.cc index a0d7280a1..f057de7d1 100644 --- a/cdn/src/model/UpdateFCTriggerResult.cc +++ b/cdn/src/model/UpdateFCTriggerResult.cc @@ -35,10 +35,13 @@ UpdateFCTriggerResult::~UpdateFCTriggerResult() void UpdateFCTriggerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cdn/src/model/UpdateLiveAppSnapshotConfigRequest.cc b/cdn/src/model/UpdateLiveAppSnapshotConfigRequest.cc index 77de2dc87..3d4bb6f98 100644 --- a/cdn/src/model/UpdateLiveAppSnapshotConfigRequest.cc +++ b/cdn/src/model/UpdateLiveAppSnapshotConfigRequest.cc @@ -33,7 +33,7 @@ int UpdateLiveAppSnapshotConfigRequest::getTimeInterval()const void UpdateLiveAppSnapshotConfigRequest::setTimeInterval(int timeInterval) { timeInterval_ = timeInterval; - setParameter("TimeInterval", std::to_string(timeInterval)); + setCoreParameter("TimeInterval", std::to_string(timeInterval)); } std::string UpdateLiveAppSnapshotConfigRequest::getOssBucket()const @@ -44,7 +44,7 @@ std::string UpdateLiveAppSnapshotConfigRequest::getOssBucket()const void UpdateLiveAppSnapshotConfigRequest::setOssBucket(const std::string& ossBucket) { ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); + setCoreParameter("OssBucket", ossBucket); } std::string UpdateLiveAppSnapshotConfigRequest::getAppName()const @@ -55,7 +55,7 @@ std::string UpdateLiveAppSnapshotConfigRequest::getAppName()const void UpdateLiveAppSnapshotConfigRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string UpdateLiveAppSnapshotConfigRequest::getSecurityToken()const @@ -66,7 +66,7 @@ std::string UpdateLiveAppSnapshotConfigRequest::getSecurityToken()const void UpdateLiveAppSnapshotConfigRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UpdateLiveAppSnapshotConfigRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string UpdateLiveAppSnapshotConfigRequest::getDomainName()const void UpdateLiveAppSnapshotConfigRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string UpdateLiveAppSnapshotConfigRequest::getOssEndpoint()const @@ -88,7 +88,7 @@ std::string UpdateLiveAppSnapshotConfigRequest::getOssEndpoint()const void UpdateLiveAppSnapshotConfigRequest::setOssEndpoint(const std::string& ossEndpoint) { ossEndpoint_ = ossEndpoint; - setParameter("OssEndpoint", ossEndpoint); + setCoreParameter("OssEndpoint", ossEndpoint); } std::string UpdateLiveAppSnapshotConfigRequest::getSequenceOssObject()const @@ -99,7 +99,7 @@ std::string UpdateLiveAppSnapshotConfigRequest::getSequenceOssObject()const void UpdateLiveAppSnapshotConfigRequest::setSequenceOssObject(const std::string& sequenceOssObject) { sequenceOssObject_ = sequenceOssObject; - setParameter("SequenceOssObject", sequenceOssObject); + setCoreParameter("SequenceOssObject", sequenceOssObject); } std::string UpdateLiveAppSnapshotConfigRequest::getOverwriteOssObject()const @@ -110,7 +110,7 @@ std::string UpdateLiveAppSnapshotConfigRequest::getOverwriteOssObject()const void UpdateLiveAppSnapshotConfigRequest::setOverwriteOssObject(const std::string& overwriteOssObject) { overwriteOssObject_ = overwriteOssObject; - setParameter("OverwriteOssObject", overwriteOssObject); + setCoreParameter("OverwriteOssObject", overwriteOssObject); } long UpdateLiveAppSnapshotConfigRequest::getOwnerId()const @@ -121,6 +121,6 @@ long UpdateLiveAppSnapshotConfigRequest::getOwnerId()const void UpdateLiveAppSnapshotConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/cdn/src/model/UpdateLiveAppSnapshotConfigResult.cc b/cdn/src/model/UpdateLiveAppSnapshotConfigResult.cc index b361b0c69..679c2aec9 100644 --- a/cdn/src/model/UpdateLiveAppSnapshotConfigResult.cc +++ b/cdn/src/model/UpdateLiveAppSnapshotConfigResult.cc @@ -35,10 +35,13 @@ UpdateLiveAppSnapshotConfigResult::~UpdateLiveAppSnapshotConfigResult() void UpdateLiveAppSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/chatbot/CMakeLists.txt b/chatbot/CMakeLists.txt index cdc8363a3..67e023482 100644 --- a/chatbot/CMakeLists.txt +++ b/chatbot/CMakeLists.txt @@ -21,13 +21,205 @@ set(chatbot_public_header include/alibabacloud/chatbot/ChatbotExport.h ) set(chatbot_public_header_model + include/alibabacloud/chatbot/model/CreateEntityRequest.h + include/alibabacloud/chatbot/model/CreateEntityResult.h + include/alibabacloud/chatbot/model/PublishKnowledgeRequest.h + include/alibabacloud/chatbot/model/PublishKnowledgeResult.h + include/alibabacloud/chatbot/model/DeleteCategoryRequest.h + include/alibabacloud/chatbot/model/DeleteCategoryResult.h + include/alibabacloud/chatbot/model/AddSynonymRequest.h + include/alibabacloud/chatbot/model/AddSynonymResult.h + include/alibabacloud/chatbot/model/QueryIntentsRequest.h + include/alibabacloud/chatbot/model/QueryIntentsResult.h + include/alibabacloud/chatbot/model/DescribeCategoryRequest.h + include/alibabacloud/chatbot/model/DescribeCategoryResult.h + include/alibabacloud/chatbot/model/AppendEntityMemberRequest.h + include/alibabacloud/chatbot/model/AppendEntityMemberResult.h + include/alibabacloud/chatbot/model/DescribePerspectiveRequest.h + include/alibabacloud/chatbot/model/DescribePerspectiveResult.h + include/alibabacloud/chatbot/model/UpdateDialogRequest.h + include/alibabacloud/chatbot/model/UpdateDialogResult.h + include/alibabacloud/chatbot/model/DescribeIntentRequest.h + include/alibabacloud/chatbot/model/DescribeIntentResult.h + include/alibabacloud/chatbot/model/QueryDialogsRequest.h + include/alibabacloud/chatbot/model/QueryDialogsResult.h + include/alibabacloud/chatbot/model/CreateDialogRequest.h + include/alibabacloud/chatbot/model/CreateDialogResult.h + include/alibabacloud/chatbot/model/QueryCoreWordsRequest.h + include/alibabacloud/chatbot/model/QueryCoreWordsResult.h + include/alibabacloud/chatbot/model/UpdateCoreWordRequest.h + include/alibabacloud/chatbot/model/UpdateCoreWordResult.h + include/alibabacloud/chatbot/model/UpdateCategoryRequest.h + include/alibabacloud/chatbot/model/UpdateCategoryResult.h + include/alibabacloud/chatbot/model/UpdateEntityRequest.h + include/alibabacloud/chatbot/model/UpdateEntityResult.h + include/alibabacloud/chatbot/model/MoveKnowledgeCategoryRequest.h + include/alibabacloud/chatbot/model/MoveKnowledgeCategoryResult.h + include/alibabacloud/chatbot/model/DeleteCoreWordRequest.h + include/alibabacloud/chatbot/model/DeleteCoreWordResult.h + include/alibabacloud/chatbot/model/UpdatePerspectiveRequest.h + include/alibabacloud/chatbot/model/UpdatePerspectiveResult.h + include/alibabacloud/chatbot/model/CreateIntentRequest.h + include/alibabacloud/chatbot/model/CreateIntentResult.h + include/alibabacloud/chatbot/model/QueryCategoriesRequest.h + include/alibabacloud/chatbot/model/QueryCategoriesResult.h + include/alibabacloud/chatbot/model/QueryKnowledgesRequest.h + include/alibabacloud/chatbot/model/QueryKnowledgesResult.h + include/alibabacloud/chatbot/model/DeleteDialogRequest.h + include/alibabacloud/chatbot/model/DeleteDialogResult.h + include/alibabacloud/chatbot/model/DescribeDialogRequest.h + include/alibabacloud/chatbot/model/DescribeDialogResult.h + include/alibabacloud/chatbot/model/UpdateIntentRequest.h + include/alibabacloud/chatbot/model/UpdateIntentResult.h + include/alibabacloud/chatbot/model/RemoveSynonymRequest.h + include/alibabacloud/chatbot/model/RemoveSynonymResult.h + include/alibabacloud/chatbot/model/DescribeDialogFlowRequest.h + include/alibabacloud/chatbot/model/DescribeDialogFlowResult.h + include/alibabacloud/chatbot/model/ActivatePerspectiveRequest.h + include/alibabacloud/chatbot/model/ActivatePerspectiveResult.h + include/alibabacloud/chatbot/model/DescribeKnowledgeRequest.h + include/alibabacloud/chatbot/model/DescribeKnowledgeResult.h + include/alibabacloud/chatbot/model/QueryPerspectivesRequest.h + include/alibabacloud/chatbot/model/QueryPerspectivesResult.h + include/alibabacloud/chatbot/model/CreatePerspectiveRequest.h + include/alibabacloud/chatbot/model/CreatePerspectiveResult.h + include/alibabacloud/chatbot/model/DeleteEntityRequest.h + include/alibabacloud/chatbot/model/DeleteEntityResult.h + include/alibabacloud/chatbot/model/RemoveEntityMemberRequest.h + include/alibabacloud/chatbot/model/RemoveEntityMemberResult.h + include/alibabacloud/chatbot/model/TestDialogFlowRequest.h + include/alibabacloud/chatbot/model/TestDialogFlowResult.h + include/alibabacloud/chatbot/model/DisableKnowledgeRequest.h + include/alibabacloud/chatbot/model/DisableKnowledgeResult.h include/alibabacloud/chatbot/model/ChatRequest.h - include/alibabacloud/chatbot/model/ChatResult.h ) + include/alibabacloud/chatbot/model/ChatResult.h + include/alibabacloud/chatbot/model/UpdateKnowledgeRequest.h + include/alibabacloud/chatbot/model/UpdateKnowledgeResult.h + include/alibabacloud/chatbot/model/CreateKnowledgeRequest.h + include/alibabacloud/chatbot/model/CreateKnowledgeResult.h + include/alibabacloud/chatbot/model/DeleteIntentRequest.h + include/alibabacloud/chatbot/model/DeleteIntentResult.h + include/alibabacloud/chatbot/model/DeleteKnowledgeRequest.h + include/alibabacloud/chatbot/model/DeleteKnowledgeResult.h + include/alibabacloud/chatbot/model/DisableDialogFlowRequest.h + include/alibabacloud/chatbot/model/DisableDialogFlowResult.h + include/alibabacloud/chatbot/model/PublishDialogFlowRequest.h + include/alibabacloud/chatbot/model/PublishDialogFlowResult.h + include/alibabacloud/chatbot/model/CreateCoreWordRequest.h + include/alibabacloud/chatbot/model/CreateCoreWordResult.h + include/alibabacloud/chatbot/model/QuerySystemEntitiesRequest.h + include/alibabacloud/chatbot/model/QuerySystemEntitiesResult.h + include/alibabacloud/chatbot/model/DescribeCoreWordRequest.h + include/alibabacloud/chatbot/model/DescribeCoreWordResult.h + include/alibabacloud/chatbot/model/QueryEntitiesRequest.h + include/alibabacloud/chatbot/model/QueryEntitiesResult.h + include/alibabacloud/chatbot/model/UpdateDialogFlowRequest.h + include/alibabacloud/chatbot/model/UpdateDialogFlowResult.h + include/alibabacloud/chatbot/model/CreateCategoryRequest.h + include/alibabacloud/chatbot/model/CreateCategoryResult.h + include/alibabacloud/chatbot/model/DescribeEntitiesRequest.h + include/alibabacloud/chatbot/model/DescribeEntitiesResult.h ) set(chatbot_src src/ChatbotClient.cc + src/model/CreateEntityRequest.cc + src/model/CreateEntityResult.cc + src/model/PublishKnowledgeRequest.cc + src/model/PublishKnowledgeResult.cc + src/model/DeleteCategoryRequest.cc + src/model/DeleteCategoryResult.cc + src/model/AddSynonymRequest.cc + src/model/AddSynonymResult.cc + src/model/QueryIntentsRequest.cc + src/model/QueryIntentsResult.cc + src/model/DescribeCategoryRequest.cc + src/model/DescribeCategoryResult.cc + src/model/AppendEntityMemberRequest.cc + src/model/AppendEntityMemberResult.cc + src/model/DescribePerspectiveRequest.cc + src/model/DescribePerspectiveResult.cc + src/model/UpdateDialogRequest.cc + src/model/UpdateDialogResult.cc + src/model/DescribeIntentRequest.cc + src/model/DescribeIntentResult.cc + src/model/QueryDialogsRequest.cc + src/model/QueryDialogsResult.cc + src/model/CreateDialogRequest.cc + src/model/CreateDialogResult.cc + src/model/QueryCoreWordsRequest.cc + src/model/QueryCoreWordsResult.cc + src/model/UpdateCoreWordRequest.cc + src/model/UpdateCoreWordResult.cc + src/model/UpdateCategoryRequest.cc + src/model/UpdateCategoryResult.cc + src/model/UpdateEntityRequest.cc + src/model/UpdateEntityResult.cc + src/model/MoveKnowledgeCategoryRequest.cc + src/model/MoveKnowledgeCategoryResult.cc + src/model/DeleteCoreWordRequest.cc + src/model/DeleteCoreWordResult.cc + src/model/UpdatePerspectiveRequest.cc + src/model/UpdatePerspectiveResult.cc + src/model/CreateIntentRequest.cc + src/model/CreateIntentResult.cc + src/model/QueryCategoriesRequest.cc + src/model/QueryCategoriesResult.cc + src/model/QueryKnowledgesRequest.cc + src/model/QueryKnowledgesResult.cc + src/model/DeleteDialogRequest.cc + src/model/DeleteDialogResult.cc + src/model/DescribeDialogRequest.cc + src/model/DescribeDialogResult.cc + src/model/UpdateIntentRequest.cc + src/model/UpdateIntentResult.cc + src/model/RemoveSynonymRequest.cc + src/model/RemoveSynonymResult.cc + src/model/DescribeDialogFlowRequest.cc + src/model/DescribeDialogFlowResult.cc + src/model/ActivatePerspectiveRequest.cc + src/model/ActivatePerspectiveResult.cc + src/model/DescribeKnowledgeRequest.cc + src/model/DescribeKnowledgeResult.cc + src/model/QueryPerspectivesRequest.cc + src/model/QueryPerspectivesResult.cc + src/model/CreatePerspectiveRequest.cc + src/model/CreatePerspectiveResult.cc + src/model/DeleteEntityRequest.cc + src/model/DeleteEntityResult.cc + src/model/RemoveEntityMemberRequest.cc + src/model/RemoveEntityMemberResult.cc + src/model/TestDialogFlowRequest.cc + src/model/TestDialogFlowResult.cc + src/model/DisableKnowledgeRequest.cc + src/model/DisableKnowledgeResult.cc src/model/ChatRequest.cc - src/model/ChatResult.cc ) + src/model/ChatResult.cc + src/model/UpdateKnowledgeRequest.cc + src/model/UpdateKnowledgeResult.cc + src/model/CreateKnowledgeRequest.cc + src/model/CreateKnowledgeResult.cc + src/model/DeleteIntentRequest.cc + src/model/DeleteIntentResult.cc + src/model/DeleteKnowledgeRequest.cc + src/model/DeleteKnowledgeResult.cc + src/model/DisableDialogFlowRequest.cc + src/model/DisableDialogFlowResult.cc + src/model/PublishDialogFlowRequest.cc + src/model/PublishDialogFlowResult.cc + src/model/CreateCoreWordRequest.cc + src/model/CreateCoreWordResult.cc + src/model/QuerySystemEntitiesRequest.cc + src/model/QuerySystemEntitiesResult.cc + src/model/DescribeCoreWordRequest.cc + src/model/DescribeCoreWordResult.cc + src/model/QueryEntitiesRequest.cc + src/model/QueryEntitiesResult.cc + src/model/UpdateDialogFlowRequest.cc + src/model/UpdateDialogFlowResult.cc + src/model/CreateCategoryRequest.cc + src/model/CreateCategoryResult.cc + src/model/DescribeEntitiesRequest.cc + src/model/DescribeEntitiesResult.cc ) add_library(chatbot ${LIB_TYPE} ${chatbot_public_header} diff --git a/chatbot/include/alibabacloud/chatbot/ChatbotClient.h b/chatbot/include/alibabacloud/chatbot/ChatbotClient.h index 96da19aca..ddd93de28 100644 --- a/chatbot/include/alibabacloud/chatbot/ChatbotClient.h +++ b/chatbot/include/alibabacloud/chatbot/ChatbotClient.h @@ -22,8 +22,106 @@ #include #include #include "ChatbotExport.h" +#include "model/CreateEntityRequest.h" +#include "model/CreateEntityResult.h" +#include "model/PublishKnowledgeRequest.h" +#include "model/PublishKnowledgeResult.h" +#include "model/DeleteCategoryRequest.h" +#include "model/DeleteCategoryResult.h" +#include "model/AddSynonymRequest.h" +#include "model/AddSynonymResult.h" +#include "model/QueryIntentsRequest.h" +#include "model/QueryIntentsResult.h" +#include "model/DescribeCategoryRequest.h" +#include "model/DescribeCategoryResult.h" +#include "model/AppendEntityMemberRequest.h" +#include "model/AppendEntityMemberResult.h" +#include "model/DescribePerspectiveRequest.h" +#include "model/DescribePerspectiveResult.h" +#include "model/UpdateDialogRequest.h" +#include "model/UpdateDialogResult.h" +#include "model/DescribeIntentRequest.h" +#include "model/DescribeIntentResult.h" +#include "model/QueryDialogsRequest.h" +#include "model/QueryDialogsResult.h" +#include "model/CreateDialogRequest.h" +#include "model/CreateDialogResult.h" +#include "model/QueryCoreWordsRequest.h" +#include "model/QueryCoreWordsResult.h" +#include "model/UpdateCoreWordRequest.h" +#include "model/UpdateCoreWordResult.h" +#include "model/UpdateCategoryRequest.h" +#include "model/UpdateCategoryResult.h" +#include "model/UpdateEntityRequest.h" +#include "model/UpdateEntityResult.h" +#include "model/MoveKnowledgeCategoryRequest.h" +#include "model/MoveKnowledgeCategoryResult.h" +#include "model/DeleteCoreWordRequest.h" +#include "model/DeleteCoreWordResult.h" +#include "model/UpdatePerspectiveRequest.h" +#include "model/UpdatePerspectiveResult.h" +#include "model/CreateIntentRequest.h" +#include "model/CreateIntentResult.h" +#include "model/QueryCategoriesRequest.h" +#include "model/QueryCategoriesResult.h" +#include "model/QueryKnowledgesRequest.h" +#include "model/QueryKnowledgesResult.h" +#include "model/DeleteDialogRequest.h" +#include "model/DeleteDialogResult.h" +#include "model/DescribeDialogRequest.h" +#include "model/DescribeDialogResult.h" +#include "model/UpdateIntentRequest.h" +#include "model/UpdateIntentResult.h" +#include "model/RemoveSynonymRequest.h" +#include "model/RemoveSynonymResult.h" +#include "model/DescribeDialogFlowRequest.h" +#include "model/DescribeDialogFlowResult.h" +#include "model/ActivatePerspectiveRequest.h" +#include "model/ActivatePerspectiveResult.h" +#include "model/DescribeKnowledgeRequest.h" +#include "model/DescribeKnowledgeResult.h" +#include "model/QueryPerspectivesRequest.h" +#include "model/QueryPerspectivesResult.h" +#include "model/CreatePerspectiveRequest.h" +#include "model/CreatePerspectiveResult.h" +#include "model/DeleteEntityRequest.h" +#include "model/DeleteEntityResult.h" +#include "model/RemoveEntityMemberRequest.h" +#include "model/RemoveEntityMemberResult.h" +#include "model/TestDialogFlowRequest.h" +#include "model/TestDialogFlowResult.h" +#include "model/FeedbackRequest.h" +#include "model/FeedbackResult.h" +#include "model/DisableKnowledgeRequest.h" +#include "model/DisableKnowledgeResult.h" #include "model/ChatRequest.h" #include "model/ChatResult.h" +#include "model/UpdateKnowledgeRequest.h" +#include "model/UpdateKnowledgeResult.h" +#include "model/CreateKnowledgeRequest.h" +#include "model/CreateKnowledgeResult.h" +#include "model/DeleteIntentRequest.h" +#include "model/DeleteIntentResult.h" +#include "model/DeleteKnowledgeRequest.h" +#include "model/DeleteKnowledgeResult.h" +#include "model/DisableDialogFlowRequest.h" +#include "model/DisableDialogFlowResult.h" +#include "model/PublishDialogFlowRequest.h" +#include "model/PublishDialogFlowResult.h" +#include "model/CreateCoreWordRequest.h" +#include "model/CreateCoreWordResult.h" +#include "model/QuerySystemEntitiesRequest.h" +#include "model/QuerySystemEntitiesResult.h" +#include "model/DescribeCoreWordRequest.h" +#include "model/DescribeCoreWordResult.h" +#include "model/QueryEntitiesRequest.h" +#include "model/QueryEntitiesResult.h" +#include "model/UpdateDialogFlowRequest.h" +#include "model/UpdateDialogFlowResult.h" +#include "model/CreateCategoryRequest.h" +#include "model/CreateCategoryResult.h" +#include "model/DescribeEntitiesRequest.h" +#include "model/DescribeEntitiesResult.h" namespace AlibabaCloud @@ -33,17 +131,311 @@ namespace AlibabaCloud class ALIBABACLOUD_CHATBOT_EXPORT ChatbotClient : public RpcServiceClient { public: + typedef Outcome CreateEntityOutcome; + typedef std::future CreateEntityOutcomeCallable; + typedef std::function&)> CreateEntityAsyncHandler; + typedef Outcome PublishKnowledgeOutcome; + typedef std::future PublishKnowledgeOutcomeCallable; + typedef std::function&)> PublishKnowledgeAsyncHandler; + typedef Outcome DeleteCategoryOutcome; + typedef std::future DeleteCategoryOutcomeCallable; + typedef std::function&)> DeleteCategoryAsyncHandler; + typedef Outcome AddSynonymOutcome; + typedef std::future AddSynonymOutcomeCallable; + typedef std::function&)> AddSynonymAsyncHandler; + typedef Outcome QueryIntentsOutcome; + typedef std::future QueryIntentsOutcomeCallable; + typedef std::function&)> QueryIntentsAsyncHandler; + typedef Outcome DescribeCategoryOutcome; + typedef std::future DescribeCategoryOutcomeCallable; + typedef std::function&)> DescribeCategoryAsyncHandler; + typedef Outcome AppendEntityMemberOutcome; + typedef std::future AppendEntityMemberOutcomeCallable; + typedef std::function&)> AppendEntityMemberAsyncHandler; + typedef Outcome DescribePerspectiveOutcome; + typedef std::future DescribePerspectiveOutcomeCallable; + typedef std::function&)> DescribePerspectiveAsyncHandler; + typedef Outcome UpdateDialogOutcome; + typedef std::future UpdateDialogOutcomeCallable; + typedef std::function&)> UpdateDialogAsyncHandler; + typedef Outcome DescribeIntentOutcome; + typedef std::future DescribeIntentOutcomeCallable; + typedef std::function&)> DescribeIntentAsyncHandler; + typedef Outcome QueryDialogsOutcome; + typedef std::future QueryDialogsOutcomeCallable; + typedef std::function&)> QueryDialogsAsyncHandler; + typedef Outcome CreateDialogOutcome; + typedef std::future CreateDialogOutcomeCallable; + typedef std::function&)> CreateDialogAsyncHandler; + typedef Outcome QueryCoreWordsOutcome; + typedef std::future QueryCoreWordsOutcomeCallable; + typedef std::function&)> QueryCoreWordsAsyncHandler; + typedef Outcome UpdateCoreWordOutcome; + typedef std::future UpdateCoreWordOutcomeCallable; + typedef std::function&)> UpdateCoreWordAsyncHandler; + typedef Outcome UpdateCategoryOutcome; + typedef std::future UpdateCategoryOutcomeCallable; + typedef std::function&)> UpdateCategoryAsyncHandler; + typedef Outcome UpdateEntityOutcome; + typedef std::future UpdateEntityOutcomeCallable; + typedef std::function&)> UpdateEntityAsyncHandler; + typedef Outcome MoveKnowledgeCategoryOutcome; + typedef std::future MoveKnowledgeCategoryOutcomeCallable; + typedef std::function&)> MoveKnowledgeCategoryAsyncHandler; + typedef Outcome DeleteCoreWordOutcome; + typedef std::future DeleteCoreWordOutcomeCallable; + typedef std::function&)> DeleteCoreWordAsyncHandler; + typedef Outcome UpdatePerspectiveOutcome; + typedef std::future UpdatePerspectiveOutcomeCallable; + typedef std::function&)> UpdatePerspectiveAsyncHandler; + typedef Outcome CreateIntentOutcome; + typedef std::future CreateIntentOutcomeCallable; + typedef std::function&)> CreateIntentAsyncHandler; + typedef Outcome QueryCategoriesOutcome; + typedef std::future QueryCategoriesOutcomeCallable; + typedef std::function&)> QueryCategoriesAsyncHandler; + typedef Outcome QueryKnowledgesOutcome; + typedef std::future QueryKnowledgesOutcomeCallable; + typedef std::function&)> QueryKnowledgesAsyncHandler; + typedef Outcome DeleteDialogOutcome; + typedef std::future DeleteDialogOutcomeCallable; + typedef std::function&)> DeleteDialogAsyncHandler; + typedef Outcome DescribeDialogOutcome; + typedef std::future DescribeDialogOutcomeCallable; + typedef std::function&)> DescribeDialogAsyncHandler; + typedef Outcome UpdateIntentOutcome; + typedef std::future UpdateIntentOutcomeCallable; + typedef std::function&)> UpdateIntentAsyncHandler; + typedef Outcome RemoveSynonymOutcome; + typedef std::future RemoveSynonymOutcomeCallable; + typedef std::function&)> RemoveSynonymAsyncHandler; + typedef Outcome DescribeDialogFlowOutcome; + typedef std::future DescribeDialogFlowOutcomeCallable; + typedef std::function&)> DescribeDialogFlowAsyncHandler; + typedef Outcome ActivatePerspectiveOutcome; + typedef std::future ActivatePerspectiveOutcomeCallable; + typedef std::function&)> ActivatePerspectiveAsyncHandler; + typedef Outcome DescribeKnowledgeOutcome; + typedef std::future DescribeKnowledgeOutcomeCallable; + typedef std::function&)> DescribeKnowledgeAsyncHandler; + typedef Outcome QueryPerspectivesOutcome; + typedef std::future QueryPerspectivesOutcomeCallable; + typedef std::function&)> QueryPerspectivesAsyncHandler; + typedef Outcome CreatePerspectiveOutcome; + typedef std::future CreatePerspectiveOutcomeCallable; + typedef std::function&)> CreatePerspectiveAsyncHandler; + typedef Outcome DeleteEntityOutcome; + typedef std::future DeleteEntityOutcomeCallable; + typedef std::function&)> DeleteEntityAsyncHandler; + typedef Outcome RemoveEntityMemberOutcome; + typedef std::future RemoveEntityMemberOutcomeCallable; + typedef std::function&)> RemoveEntityMemberAsyncHandler; + typedef Outcome TestDialogFlowOutcome; + typedef std::future TestDialogFlowOutcomeCallable; + typedef std::function&)> TestDialogFlowAsyncHandler; + typedef Outcome FeedbackOutcome; + typedef std::future FeedbackOutcomeCallable; + typedef std::function&)> FeedbackAsyncHandler; + typedef Outcome DisableKnowledgeOutcome; + typedef std::future DisableKnowledgeOutcomeCallable; + typedef std::function&)> DisableKnowledgeAsyncHandler; typedef Outcome ChatOutcome; typedef std::future ChatOutcomeCallable; typedef std::function&)> ChatAsyncHandler; + typedef Outcome UpdateKnowledgeOutcome; + typedef std::future UpdateKnowledgeOutcomeCallable; + typedef std::function&)> UpdateKnowledgeAsyncHandler; + typedef Outcome CreateKnowledgeOutcome; + typedef std::future CreateKnowledgeOutcomeCallable; + typedef std::function&)> CreateKnowledgeAsyncHandler; + typedef Outcome DeleteIntentOutcome; + typedef std::future DeleteIntentOutcomeCallable; + typedef std::function&)> DeleteIntentAsyncHandler; + typedef Outcome DeleteKnowledgeOutcome; + typedef std::future DeleteKnowledgeOutcomeCallable; + typedef std::function&)> DeleteKnowledgeAsyncHandler; + typedef Outcome DisableDialogFlowOutcome; + typedef std::future DisableDialogFlowOutcomeCallable; + typedef std::function&)> DisableDialogFlowAsyncHandler; + typedef Outcome PublishDialogFlowOutcome; + typedef std::future PublishDialogFlowOutcomeCallable; + typedef std::function&)> PublishDialogFlowAsyncHandler; + typedef Outcome CreateCoreWordOutcome; + typedef std::future CreateCoreWordOutcomeCallable; + typedef std::function&)> CreateCoreWordAsyncHandler; + typedef Outcome QuerySystemEntitiesOutcome; + typedef std::future QuerySystemEntitiesOutcomeCallable; + typedef std::function&)> QuerySystemEntitiesAsyncHandler; + typedef Outcome DescribeCoreWordOutcome; + typedef std::future DescribeCoreWordOutcomeCallable; + typedef std::function&)> DescribeCoreWordAsyncHandler; + typedef Outcome QueryEntitiesOutcome; + typedef std::future QueryEntitiesOutcomeCallable; + typedef std::function&)> QueryEntitiesAsyncHandler; + typedef Outcome UpdateDialogFlowOutcome; + typedef std::future UpdateDialogFlowOutcomeCallable; + typedef std::function&)> UpdateDialogFlowAsyncHandler; + typedef Outcome CreateCategoryOutcome; + typedef std::future CreateCategoryOutcomeCallable; + typedef std::function&)> CreateCategoryAsyncHandler; + typedef Outcome DescribeEntitiesOutcome; + typedef std::future DescribeEntitiesOutcomeCallable; + typedef std::function&)> DescribeEntitiesAsyncHandler; ChatbotClient(const Credentials &credentials, const ClientConfiguration &configuration); ChatbotClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); ChatbotClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~ChatbotClient(); + CreateEntityOutcome createEntity(const Model::CreateEntityRequest &request)const; + void createEntityAsync(const Model::CreateEntityRequest& request, const CreateEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEntityOutcomeCallable createEntityCallable(const Model::CreateEntityRequest& request) const; + PublishKnowledgeOutcome publishKnowledge(const Model::PublishKnowledgeRequest &request)const; + void publishKnowledgeAsync(const Model::PublishKnowledgeRequest& request, const PublishKnowledgeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishKnowledgeOutcomeCallable publishKnowledgeCallable(const Model::PublishKnowledgeRequest& request) const; + DeleteCategoryOutcome deleteCategory(const Model::DeleteCategoryRequest &request)const; + void deleteCategoryAsync(const Model::DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCategoryOutcomeCallable deleteCategoryCallable(const Model::DeleteCategoryRequest& request) const; + AddSynonymOutcome addSynonym(const Model::AddSynonymRequest &request)const; + void addSynonymAsync(const Model::AddSynonymRequest& request, const AddSynonymAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSynonymOutcomeCallable addSynonymCallable(const Model::AddSynonymRequest& request) const; + QueryIntentsOutcome queryIntents(const Model::QueryIntentsRequest &request)const; + void queryIntentsAsync(const Model::QueryIntentsRequest& request, const QueryIntentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryIntentsOutcomeCallable queryIntentsCallable(const Model::QueryIntentsRequest& request) const; + DescribeCategoryOutcome describeCategory(const Model::DescribeCategoryRequest &request)const; + void describeCategoryAsync(const Model::DescribeCategoryRequest& request, const DescribeCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCategoryOutcomeCallable describeCategoryCallable(const Model::DescribeCategoryRequest& request) const; + AppendEntityMemberOutcome appendEntityMember(const Model::AppendEntityMemberRequest &request)const; + void appendEntityMemberAsync(const Model::AppendEntityMemberRequest& request, const AppendEntityMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AppendEntityMemberOutcomeCallable appendEntityMemberCallable(const Model::AppendEntityMemberRequest& request) const; + DescribePerspectiveOutcome describePerspective(const Model::DescribePerspectiveRequest &request)const; + void describePerspectiveAsync(const Model::DescribePerspectiveRequest& request, const DescribePerspectiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePerspectiveOutcomeCallable describePerspectiveCallable(const Model::DescribePerspectiveRequest& request) const; + UpdateDialogOutcome updateDialog(const Model::UpdateDialogRequest &request)const; + void updateDialogAsync(const Model::UpdateDialogRequest& request, const UpdateDialogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDialogOutcomeCallable updateDialogCallable(const Model::UpdateDialogRequest& request) const; + DescribeIntentOutcome describeIntent(const Model::DescribeIntentRequest &request)const; + void describeIntentAsync(const Model::DescribeIntentRequest& request, const DescribeIntentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIntentOutcomeCallable describeIntentCallable(const Model::DescribeIntentRequest& request) const; + QueryDialogsOutcome queryDialogs(const Model::QueryDialogsRequest &request)const; + void queryDialogsAsync(const Model::QueryDialogsRequest& request, const QueryDialogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDialogsOutcomeCallable queryDialogsCallable(const Model::QueryDialogsRequest& request) const; + CreateDialogOutcome createDialog(const Model::CreateDialogRequest &request)const; + void createDialogAsync(const Model::CreateDialogRequest& request, const CreateDialogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDialogOutcomeCallable createDialogCallable(const Model::CreateDialogRequest& request) const; + QueryCoreWordsOutcome queryCoreWords(const Model::QueryCoreWordsRequest &request)const; + void queryCoreWordsAsync(const Model::QueryCoreWordsRequest& request, const QueryCoreWordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCoreWordsOutcomeCallable queryCoreWordsCallable(const Model::QueryCoreWordsRequest& request) const; + UpdateCoreWordOutcome updateCoreWord(const Model::UpdateCoreWordRequest &request)const; + void updateCoreWordAsync(const Model::UpdateCoreWordRequest& request, const UpdateCoreWordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCoreWordOutcomeCallable updateCoreWordCallable(const Model::UpdateCoreWordRequest& request) const; + UpdateCategoryOutcome updateCategory(const Model::UpdateCategoryRequest &request)const; + void updateCategoryAsync(const Model::UpdateCategoryRequest& request, const UpdateCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCategoryOutcomeCallable updateCategoryCallable(const Model::UpdateCategoryRequest& request) const; + UpdateEntityOutcome updateEntity(const Model::UpdateEntityRequest &request)const; + void updateEntityAsync(const Model::UpdateEntityRequest& request, const UpdateEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEntityOutcomeCallable updateEntityCallable(const Model::UpdateEntityRequest& request) const; + MoveKnowledgeCategoryOutcome moveKnowledgeCategory(const Model::MoveKnowledgeCategoryRequest &request)const; + void moveKnowledgeCategoryAsync(const Model::MoveKnowledgeCategoryRequest& request, const MoveKnowledgeCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveKnowledgeCategoryOutcomeCallable moveKnowledgeCategoryCallable(const Model::MoveKnowledgeCategoryRequest& request) const; + DeleteCoreWordOutcome deleteCoreWord(const Model::DeleteCoreWordRequest &request)const; + void deleteCoreWordAsync(const Model::DeleteCoreWordRequest& request, const DeleteCoreWordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCoreWordOutcomeCallable deleteCoreWordCallable(const Model::DeleteCoreWordRequest& request) const; + UpdatePerspectiveOutcome updatePerspective(const Model::UpdatePerspectiveRequest &request)const; + void updatePerspectiveAsync(const Model::UpdatePerspectiveRequest& request, const UpdatePerspectiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePerspectiveOutcomeCallable updatePerspectiveCallable(const Model::UpdatePerspectiveRequest& request) const; + CreateIntentOutcome createIntent(const Model::CreateIntentRequest &request)const; + void createIntentAsync(const Model::CreateIntentRequest& request, const CreateIntentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIntentOutcomeCallable createIntentCallable(const Model::CreateIntentRequest& request) const; + QueryCategoriesOutcome queryCategories(const Model::QueryCategoriesRequest &request)const; + void queryCategoriesAsync(const Model::QueryCategoriesRequest& request, const QueryCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCategoriesOutcomeCallable queryCategoriesCallable(const Model::QueryCategoriesRequest& request) const; + QueryKnowledgesOutcome queryKnowledges(const Model::QueryKnowledgesRequest &request)const; + void queryKnowledgesAsync(const Model::QueryKnowledgesRequest& request, const QueryKnowledgesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryKnowledgesOutcomeCallable queryKnowledgesCallable(const Model::QueryKnowledgesRequest& request) const; + DeleteDialogOutcome deleteDialog(const Model::DeleteDialogRequest &request)const; + void deleteDialogAsync(const Model::DeleteDialogRequest& request, const DeleteDialogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDialogOutcomeCallable deleteDialogCallable(const Model::DeleteDialogRequest& request) const; + DescribeDialogOutcome describeDialog(const Model::DescribeDialogRequest &request)const; + void describeDialogAsync(const Model::DescribeDialogRequest& request, const DescribeDialogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDialogOutcomeCallable describeDialogCallable(const Model::DescribeDialogRequest& request) const; + UpdateIntentOutcome updateIntent(const Model::UpdateIntentRequest &request)const; + void updateIntentAsync(const Model::UpdateIntentRequest& request, const UpdateIntentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIntentOutcomeCallable updateIntentCallable(const Model::UpdateIntentRequest& request) const; + RemoveSynonymOutcome removeSynonym(const Model::RemoveSynonymRequest &request)const; + void removeSynonymAsync(const Model::RemoveSynonymRequest& request, const RemoveSynonymAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSynonymOutcomeCallable removeSynonymCallable(const Model::RemoveSynonymRequest& request) const; + DescribeDialogFlowOutcome describeDialogFlow(const Model::DescribeDialogFlowRequest &request)const; + void describeDialogFlowAsync(const Model::DescribeDialogFlowRequest& request, const DescribeDialogFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDialogFlowOutcomeCallable describeDialogFlowCallable(const Model::DescribeDialogFlowRequest& request) const; + ActivatePerspectiveOutcome activatePerspective(const Model::ActivatePerspectiveRequest &request)const; + void activatePerspectiveAsync(const Model::ActivatePerspectiveRequest& request, const ActivatePerspectiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivatePerspectiveOutcomeCallable activatePerspectiveCallable(const Model::ActivatePerspectiveRequest& request) const; + DescribeKnowledgeOutcome describeKnowledge(const Model::DescribeKnowledgeRequest &request)const; + void describeKnowledgeAsync(const Model::DescribeKnowledgeRequest& request, const DescribeKnowledgeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeKnowledgeOutcomeCallable describeKnowledgeCallable(const Model::DescribeKnowledgeRequest& request) const; + QueryPerspectivesOutcome queryPerspectives(const Model::QueryPerspectivesRequest &request)const; + void queryPerspectivesAsync(const Model::QueryPerspectivesRequest& request, const QueryPerspectivesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPerspectivesOutcomeCallable queryPerspectivesCallable(const Model::QueryPerspectivesRequest& request) const; + CreatePerspectiveOutcome createPerspective(const Model::CreatePerspectiveRequest &request)const; + void createPerspectiveAsync(const Model::CreatePerspectiveRequest& request, const CreatePerspectiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePerspectiveOutcomeCallable createPerspectiveCallable(const Model::CreatePerspectiveRequest& request) const; + DeleteEntityOutcome deleteEntity(const Model::DeleteEntityRequest &request)const; + void deleteEntityAsync(const Model::DeleteEntityRequest& request, const DeleteEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEntityOutcomeCallable deleteEntityCallable(const Model::DeleteEntityRequest& request) const; + RemoveEntityMemberOutcome removeEntityMember(const Model::RemoveEntityMemberRequest &request)const; + void removeEntityMemberAsync(const Model::RemoveEntityMemberRequest& request, const RemoveEntityMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveEntityMemberOutcomeCallable removeEntityMemberCallable(const Model::RemoveEntityMemberRequest& request) const; + TestDialogFlowOutcome testDialogFlow(const Model::TestDialogFlowRequest &request)const; + void testDialogFlowAsync(const Model::TestDialogFlowRequest& request, const TestDialogFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TestDialogFlowOutcomeCallable testDialogFlowCallable(const Model::TestDialogFlowRequest& request) const; + FeedbackOutcome feedback(const Model::FeedbackRequest &request)const; + void feedbackAsync(const Model::FeedbackRequest& request, const FeedbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FeedbackOutcomeCallable feedbackCallable(const Model::FeedbackRequest& request) const; + DisableKnowledgeOutcome disableKnowledge(const Model::DisableKnowledgeRequest &request)const; + void disableKnowledgeAsync(const Model::DisableKnowledgeRequest& request, const DisableKnowledgeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableKnowledgeOutcomeCallable disableKnowledgeCallable(const Model::DisableKnowledgeRequest& request) const; ChatOutcome chat(const Model::ChatRequest &request)const; void chatAsync(const Model::ChatRequest& request, const ChatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ChatOutcomeCallable chatCallable(const Model::ChatRequest& request) const; + UpdateKnowledgeOutcome updateKnowledge(const Model::UpdateKnowledgeRequest &request)const; + void updateKnowledgeAsync(const Model::UpdateKnowledgeRequest& request, const UpdateKnowledgeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateKnowledgeOutcomeCallable updateKnowledgeCallable(const Model::UpdateKnowledgeRequest& request) const; + CreateKnowledgeOutcome createKnowledge(const Model::CreateKnowledgeRequest &request)const; + void createKnowledgeAsync(const Model::CreateKnowledgeRequest& request, const CreateKnowledgeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateKnowledgeOutcomeCallable createKnowledgeCallable(const Model::CreateKnowledgeRequest& request) const; + DeleteIntentOutcome deleteIntent(const Model::DeleteIntentRequest &request)const; + void deleteIntentAsync(const Model::DeleteIntentRequest& request, const DeleteIntentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIntentOutcomeCallable deleteIntentCallable(const Model::DeleteIntentRequest& request) const; + DeleteKnowledgeOutcome deleteKnowledge(const Model::DeleteKnowledgeRequest &request)const; + void deleteKnowledgeAsync(const Model::DeleteKnowledgeRequest& request, const DeleteKnowledgeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteKnowledgeOutcomeCallable deleteKnowledgeCallable(const Model::DeleteKnowledgeRequest& request) const; + DisableDialogFlowOutcome disableDialogFlow(const Model::DisableDialogFlowRequest &request)const; + void disableDialogFlowAsync(const Model::DisableDialogFlowRequest& request, const DisableDialogFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableDialogFlowOutcomeCallable disableDialogFlowCallable(const Model::DisableDialogFlowRequest& request) const; + PublishDialogFlowOutcome publishDialogFlow(const Model::PublishDialogFlowRequest &request)const; + void publishDialogFlowAsync(const Model::PublishDialogFlowRequest& request, const PublishDialogFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishDialogFlowOutcomeCallable publishDialogFlowCallable(const Model::PublishDialogFlowRequest& request) const; + CreateCoreWordOutcome createCoreWord(const Model::CreateCoreWordRequest &request)const; + void createCoreWordAsync(const Model::CreateCoreWordRequest& request, const CreateCoreWordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCoreWordOutcomeCallable createCoreWordCallable(const Model::CreateCoreWordRequest& request) const; + QuerySystemEntitiesOutcome querySystemEntities(const Model::QuerySystemEntitiesRequest &request)const; + void querySystemEntitiesAsync(const Model::QuerySystemEntitiesRequest& request, const QuerySystemEntitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySystemEntitiesOutcomeCallable querySystemEntitiesCallable(const Model::QuerySystemEntitiesRequest& request) const; + DescribeCoreWordOutcome describeCoreWord(const Model::DescribeCoreWordRequest &request)const; + void describeCoreWordAsync(const Model::DescribeCoreWordRequest& request, const DescribeCoreWordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCoreWordOutcomeCallable describeCoreWordCallable(const Model::DescribeCoreWordRequest& request) const; + QueryEntitiesOutcome queryEntities(const Model::QueryEntitiesRequest &request)const; + void queryEntitiesAsync(const Model::QueryEntitiesRequest& request, const QueryEntitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryEntitiesOutcomeCallable queryEntitiesCallable(const Model::QueryEntitiesRequest& request) const; + UpdateDialogFlowOutcome updateDialogFlow(const Model::UpdateDialogFlowRequest &request)const; + void updateDialogFlowAsync(const Model::UpdateDialogFlowRequest& request, const UpdateDialogFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDialogFlowOutcomeCallable updateDialogFlowCallable(const Model::UpdateDialogFlowRequest& request) const; + CreateCategoryOutcome createCategory(const Model::CreateCategoryRequest &request)const; + void createCategoryAsync(const Model::CreateCategoryRequest& request, const CreateCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCategoryOutcomeCallable createCategoryCallable(const Model::CreateCategoryRequest& request) const; + DescribeEntitiesOutcome describeEntities(const Model::DescribeEntitiesRequest &request)const; + void describeEntitiesAsync(const Model::DescribeEntitiesRequest& request, const DescribeEntitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEntitiesOutcomeCallable describeEntitiesCallable(const Model::DescribeEntitiesRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveRequest.h b/chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveRequest.h new file mode 100644 index 000000000..d67f22c8b --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveRequest.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_CHATBOT_MODEL_ACTIVATEPERSPECTIVEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_ACTIVATEPERSPECTIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT ActivatePerspectiveRequest : public RpcServiceRequest + { + + public: + ActivatePerspectiveRequest(); + ~ActivatePerspectiveRequest(); + + std::string getPerspectiveId()const; + void setPerspectiveId(const std::string& perspectiveId); + + private: + std::string perspectiveId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_ACTIVATEPERSPECTIVEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveResult.h b/chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveResult.h new file mode 100644 index 000000000..bdfa139df --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/ActivatePerspectiveResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_ACTIVATEPERSPECTIVERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_ACTIVATEPERSPECTIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT ActivatePerspectiveResult : public ServiceResult + { + public: + + + ActivatePerspectiveResult(); + explicit ActivatePerspectiveResult(const std::string &payload); + ~ActivatePerspectiveResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_ACTIVATEPERSPECTIVERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/AddSynonymRequest.h b/chatbot/include/alibabacloud/chatbot/model/AddSynonymRequest.h new file mode 100644 index 000000000..5f84cd7c6 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/AddSynonymRequest.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_CHATBOT_MODEL_ADDSYNONYMREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_ADDSYNONYMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT AddSynonymRequest : public RpcServiceRequest + { + + public: + AddSynonymRequest(); + ~AddSynonymRequest(); + + std::string getSynonym()const; + void setSynonym(const std::string& synonym); + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + + private: + std::string synonym_; + std::string coreWordName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_ADDSYNONYMREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/AddSynonymResult.h b/chatbot/include/alibabacloud/chatbot/model/AddSynonymResult.h new file mode 100644 index 000000000..afe8c3915 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/AddSynonymResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_ADDSYNONYMRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_ADDSYNONYMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT AddSynonymResult : public ServiceResult + { + public: + + + AddSynonymResult(); + explicit AddSynonymResult(const std::string &payload); + ~AddSynonymResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_ADDSYNONYMRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberRequest.h b/chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberRequest.h new file mode 100644 index 000000000..ed748187c --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberRequest.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_CHATBOT_MODEL_APPENDENTITYMEMBERREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_APPENDENTITYMEMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT AppendEntityMemberRequest : public RpcServiceRequest + { + + public: + AppendEntityMemberRequest(); + ~AppendEntityMemberRequest(); + + std::string getMember()const; + void setMember(const std::string& member); + long getEntityId()const; + void setEntityId(long entityId); + std::string getApplyType()const; + void setApplyType(const std::string& applyType); + + private: + std::string member_; + long entityId_; + std::string applyType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_APPENDENTITYMEMBERREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberResult.h b/chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberResult.h new file mode 100644 index 000000000..dffff5f00 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/AppendEntityMemberResult.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_CHATBOT_MODEL_APPENDENTITYMEMBERRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_APPENDENTITYMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT AppendEntityMemberResult : public ServiceResult + { + public: + + + AppendEntityMemberResult(); + explicit AppendEntityMemberResult(const std::string &payload); + ~AppendEntityMemberResult(); + std::string getEntityId()const; + + protected: + void parse(const std::string &payload); + private: + std::string entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_APPENDENTITYMEMBERRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/ChatRequest.h b/chatbot/include/alibabacloud/chatbot/model/ChatRequest.h index 356784630..7bcffdbe4 100644 --- a/chatbot/include/alibabacloud/chatbot/model/ChatRequest.h +++ b/chatbot/include/alibabacloud/chatbot/model/ChatRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setSenderNick(const std::string& senderNick); std::vector getPerspective()const; void setPerspective(const std::vector& perspective); + bool getRecommend()const; + void setRecommend(bool recommend); std::string getSessionId()const; void setSessionId(const std::string& sessionId); std::string getTag()const; @@ -60,6 +62,7 @@ namespace AlibabaCloud std::string instanceId_; std::string senderNick_; std::vector perspective_; + bool recommend_; std::string sessionId_; std::string tag_; std::string utterance_; diff --git a/chatbot/include/alibabacloud/chatbot/model/ChatResult.h b/chatbot/include/alibabacloud/chatbot/model/ChatResult.h index e554f7dd0..e955e1444 100644 --- a/chatbot/include/alibabacloud/chatbot/model/ChatResult.h +++ b/chatbot/include/alibabacloud/chatbot/model/ChatResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud { std::string content; std::string answerSource; + std::string metaData; }; struct Knowledge { diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateCategoryRequest.h b/chatbot/include/alibabacloud/chatbot/model/CreateCategoryRequest.h new file mode 100644 index 000000000..5b847fdf7 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateCategoryRequest.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_CHATBOT_MODEL_CREATECATEGORYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATECATEGORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateCategoryRequest : public RpcServiceRequest + { + + public: + CreateCategoryRequest(); + ~CreateCategoryRequest(); + + long getParentCategoryId()const; + void setParentCategoryId(long parentCategoryId); + std::string getName()const; + void setName(const std::string& name); + + private: + long parentCategoryId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATECATEGORYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateCategoryResult.h b/chatbot/include/alibabacloud/chatbot/model/CreateCategoryResult.h new file mode 100644 index 000000000..94efc5bd0 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateCategoryResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_CREATECATEGORYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATECATEGORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateCategoryResult : public ServiceResult + { + public: + + + CreateCategoryResult(); + explicit CreateCategoryResult(const std::string &payload); + ~CreateCategoryResult(); + long getCategoryId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long categoryId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATECATEGORYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateCoreWordRequest.h b/chatbot/include/alibabacloud/chatbot/model/CreateCoreWordRequest.h new file mode 100644 index 000000000..a0a97daa1 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateCoreWordRequest.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_CHATBOT_MODEL_CREATECOREWORDREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATECOREWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateCoreWordRequest : public RpcServiceRequest + { + + public: + CreateCoreWordRequest(); + ~CreateCoreWordRequest(); + + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + + private: + std::string coreWordName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATECOREWORDREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateCoreWordResult.h b/chatbot/include/alibabacloud/chatbot/model/CreateCoreWordResult.h new file mode 100644 index 000000000..9baf04c70 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateCoreWordResult.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_CHATBOT_MODEL_CREATECOREWORDRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATECOREWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateCoreWordResult : public ServiceResult + { + public: + + + CreateCoreWordResult(); + explicit CreateCoreWordResult(const std::string &payload); + ~CreateCoreWordResult(); + std::string getCoreWordCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string coreWordCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATECOREWORDRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateDialogRequest.h b/chatbot/include/alibabacloud/chatbot/model/CreateDialogRequest.h new file mode 100644 index 000000000..6e46da2f5 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateDialogRequest.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_CHATBOT_MODEL_CREATEDIALOGREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEDIALOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateDialogRequest : public RpcServiceRequest + { + + public: + CreateDialogRequest(); + ~CreateDialogRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getDialogName()const; + void setDialogName(const std::string& dialogName); + + private: + std::string instanceId_; + std::string description_; + std::string dialogName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEDIALOGREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateDialogResult.h b/chatbot/include/alibabacloud/chatbot/model/CreateDialogResult.h new file mode 100644 index 000000000..d02e4414c --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateDialogResult.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_CHATBOT_MODEL_CREATEDIALOGRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEDIALOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateDialogResult : public ServiceResult + { + public: + + + CreateDialogResult(); + explicit CreateDialogResult(const std::string &payload); + ~CreateDialogResult(); + std::string getDialogId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEDIALOGRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateEntityRequest.h b/chatbot/include/alibabacloud/chatbot/model/CreateEntityRequest.h new file mode 100644 index 000000000..53ca79f5e --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateEntityRequest.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_CHATBOT_MODEL_CREATEENTITYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEENTITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateEntityRequest : public RpcServiceRequest + { + + public: + CreateEntityRequest(); + ~CreateEntityRequest(); + + std::string getRegex()const; + void setRegex(const std::string& regex); + std::string getEntityType()const; + void setEntityType(const std::string& entityType); + std::string getMembers()const; + void setMembers(const std::string& members); + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + long getDialogId()const; + void setDialogId(long dialogId); + + private: + std::string regex_; + std::string entityType_; + std::string members_; + std::string entityName_; + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEENTITYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateEntityResult.h b/chatbot/include/alibabacloud/chatbot/model/CreateEntityResult.h new file mode 100644 index 000000000..b2171ee9c --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateEntityResult.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_CHATBOT_MODEL_CREATEENTITYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEENTITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateEntityResult : public ServiceResult + { + public: + + + CreateEntityResult(); + explicit CreateEntityResult(const std::string &payload); + ~CreateEntityResult(); + std::string getEntityId()const; + + protected: + void parse(const std::string &payload); + private: + std::string entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEENTITYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateIntentRequest.h b/chatbot/include/alibabacloud/chatbot/model/CreateIntentRequest.h new file mode 100644 index 000000000..13279faf4 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateIntentRequest.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_CHATBOT_MODEL_CREATEINTENTREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEINTENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateIntentRequest : public RpcServiceRequest + { + + public: + CreateIntentRequest(); + ~CreateIntentRequest(); + + std::string getIntentDefinition()const; + void setIntentDefinition(const std::string& intentDefinition); + long getDialogId()const; + void setDialogId(long dialogId); + + private: + std::string intentDefinition_; + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEINTENTREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateIntentResult.h b/chatbot/include/alibabacloud/chatbot/model/CreateIntentResult.h new file mode 100644 index 000000000..fdb2435d3 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateIntentResult.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_CHATBOT_MODEL_CREATEINTENTRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEINTENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateIntentResult : public ServiceResult + { + public: + + + CreateIntentResult(); + explicit CreateIntentResult(const std::string &payload); + ~CreateIntentResult(); + std::string getIntentId()const; + + protected: + void parse(const std::string &payload); + private: + std::string intentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEINTENTRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeRequest.h b/chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeRequest.h new file mode 100644 index 000000000..77299ed9a --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeRequest.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_CHATBOT_MODEL_CREATEKNOWLEDGEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEKNOWLEDGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateKnowledgeRequest : public RpcServiceRequest + { + + public: + CreateKnowledgeRequest(); + ~CreateKnowledgeRequest(); + + std::string getKnowledge()const; + void setKnowledge(const std::string& knowledge); + + private: + std::string knowledge_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEKNOWLEDGEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeResult.h b/chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeResult.h new file mode 100644 index 000000000..f05354d86 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreateKnowledgeResult.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_CHATBOT_MODEL_CREATEKNOWLEDGERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEKNOWLEDGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreateKnowledgeResult : public ServiceResult + { + public: + + + CreateKnowledgeResult(); + explicit CreateKnowledgeResult(const std::string &payload); + ~CreateKnowledgeResult(); + long getKnowledgeId()const; + + protected: + void parse(const std::string &payload); + private: + long knowledgeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEKNOWLEDGERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveRequest.h b/chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveRequest.h new file mode 100644 index 000000000..b5f26e7ba --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveRequest.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_CHATBOT_MODEL_CREATEPERSPECTIVEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEPERSPECTIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreatePerspectiveRequest : public RpcServiceRequest + { + + public: + CreatePerspectiveRequest(); + ~CreatePerspectiveRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEPERSPECTIVEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveResult.h b/chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveResult.h new file mode 100644 index 000000000..dc781c1f8 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/CreatePerspectiveResult.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_CHATBOT_MODEL_CREATEPERSPECTIVERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_CREATEPERSPECTIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT CreatePerspectiveResult : public ServiceResult + { + public: + + + CreatePerspectiveResult(); + explicit CreatePerspectiveResult(const std::string &payload); + ~CreatePerspectiveResult(); + std::string getPerspectiveId()const; + + protected: + void parse(const std::string &payload); + private: + std::string perspectiveId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEPERSPECTIVERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteCategoryRequest.h b/chatbot/include/alibabacloud/chatbot/model/DeleteCategoryRequest.h new file mode 100644 index 000000000..d1531aa19 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteCategoryRequest.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_CHATBOT_MODEL_DELETECATEGORYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETECATEGORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteCategoryRequest : public RpcServiceRequest + { + + public: + DeleteCategoryRequest(); + ~DeleteCategoryRequest(); + + long getCategoryId()const; + void setCategoryId(long categoryId); + + private: + long categoryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETECATEGORYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteCategoryResult.h b/chatbot/include/alibabacloud/chatbot/model/DeleteCategoryResult.h new file mode 100644 index 000000000..6d3cbbd4c --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteCategoryResult.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_CHATBOT_MODEL_DELETECATEGORYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETECATEGORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteCategoryResult : public ServiceResult + { + public: + + + DeleteCategoryResult(); + explicit DeleteCategoryResult(const std::string &payload); + ~DeleteCategoryResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETECATEGORYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordRequest.h b/chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordRequest.h new file mode 100644 index 000000000..c01fe0c26 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordRequest.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_CHATBOT_MODEL_DELETECOREWORDREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETECOREWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteCoreWordRequest : public RpcServiceRequest + { + + public: + DeleteCoreWordRequest(); + ~DeleteCoreWordRequest(); + + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + + private: + std::string coreWordName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETECOREWORDREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordResult.h b/chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordResult.h new file mode 100644 index 000000000..0e53bf2a9 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteCoreWordResult.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_CHATBOT_MODEL_DELETECOREWORDRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETECOREWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteCoreWordResult : public ServiceResult + { + public: + + + DeleteCoreWordResult(); + explicit DeleteCoreWordResult(const std::string &payload); + ~DeleteCoreWordResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETECOREWORDRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteDialogRequest.h b/chatbot/include/alibabacloud/chatbot/model/DeleteDialogRequest.h new file mode 100644 index 000000000..976c8fe53 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteDialogRequest.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_CHATBOT_MODEL_DELETEDIALOGREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEDIALOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteDialogRequest : public RpcServiceRequest + { + + public: + DeleteDialogRequest(); + ~DeleteDialogRequest(); + + long getDialogId()const; + void setDialogId(long dialogId); + + private: + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEDIALOGREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteDialogResult.h b/chatbot/include/alibabacloud/chatbot/model/DeleteDialogResult.h new file mode 100644 index 000000000..b49fcca5b --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteDialogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_DELETEDIALOGRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEDIALOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteDialogResult : public ServiceResult + { + public: + + + DeleteDialogResult(); + explicit DeleteDialogResult(const std::string &payload); + ~DeleteDialogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEDIALOGRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteEntityRequest.h b/chatbot/include/alibabacloud/chatbot/model/DeleteEntityRequest.h new file mode 100644 index 000000000..bc534a9df --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteEntityRequest.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_CHATBOT_MODEL_DELETEENTITYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEENTITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteEntityRequest : public RpcServiceRequest + { + + public: + DeleteEntityRequest(); + ~DeleteEntityRequest(); + + long getEntityId()const; + void setEntityId(long entityId); + + private: + long entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEENTITYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteEntityResult.h b/chatbot/include/alibabacloud/chatbot/model/DeleteEntityResult.h new file mode 100644 index 000000000..d486a9587 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteEntityResult.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_CHATBOT_MODEL_DELETEENTITYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEENTITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteEntityResult : public ServiceResult + { + public: + + + DeleteEntityResult(); + explicit DeleteEntityResult(const std::string &payload); + ~DeleteEntityResult(); + std::string getEntityId()const; + + protected: + void parse(const std::string &payload); + private: + std::string entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEENTITYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteIntentRequest.h b/chatbot/include/alibabacloud/chatbot/model/DeleteIntentRequest.h new file mode 100644 index 000000000..4f7593296 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteIntentRequest.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_CHATBOT_MODEL_DELETEINTENTREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEINTENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteIntentRequest : public RpcServiceRequest + { + + public: + DeleteIntentRequest(); + ~DeleteIntentRequest(); + + long getIntentId()const; + void setIntentId(long intentId); + + private: + long intentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEINTENTREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteIntentResult.h b/chatbot/include/alibabacloud/chatbot/model/DeleteIntentResult.h new file mode 100644 index 000000000..d5b81ba71 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteIntentResult.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_CHATBOT_MODEL_DELETEINTENTRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEINTENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteIntentResult : public ServiceResult + { + public: + + + DeleteIntentResult(); + explicit DeleteIntentResult(const std::string &payload); + ~DeleteIntentResult(); + std::string getIntentId()const; + + protected: + void parse(const std::string &payload); + private: + std::string intentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEINTENTRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeRequest.h b/chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeRequest.h new file mode 100644 index 000000000..512948a60 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeRequest.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_CHATBOT_MODEL_DELETEKNOWLEDGEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEKNOWLEDGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteKnowledgeRequest : public RpcServiceRequest + { + + public: + DeleteKnowledgeRequest(); + ~DeleteKnowledgeRequest(); + + long getKnowledgeId()const; + void setKnowledgeId(long knowledgeId); + + private: + long knowledgeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEKNOWLEDGEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeResult.h b/chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeResult.h new file mode 100644 index 000000000..0461873af --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DeleteKnowledgeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_DELETEKNOWLEDGERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DELETEKNOWLEDGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DeleteKnowledgeResult : public ServiceResult + { + public: + + + DeleteKnowledgeResult(); + explicit DeleteKnowledgeResult(const std::string &payload); + ~DeleteKnowledgeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEKNOWLEDGERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeCategoryRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribeCategoryRequest.h new file mode 100644 index 000000000..2f1a7df2c --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeCategoryRequest.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_CHATBOT_MODEL_DESCRIBECATEGORYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECATEGORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeCategoryRequest : public RpcServiceRequest + { + + public: + DescribeCategoryRequest(); + ~DescribeCategoryRequest(); + + long getCategoryId()const; + void setCategoryId(long categoryId); + + private: + long categoryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECATEGORYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeCategoryResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribeCategoryResult.h new file mode 100644 index 000000000..c31fb231d --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeCategoryResult.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_CHATBOT_MODEL_DESCRIBECATEGORYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECATEGORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeCategoryResult : public ServiceResult + { + public: + + + DescribeCategoryResult(); + explicit DescribeCategoryResult(const std::string &payload); + ~DescribeCategoryResult(); + long getCategoryId()const; + long getParentCategoryId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + long categoryId_; + long parentCategoryId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECATEGORYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordRequest.h new file mode 100644 index 000000000..e402d46d6 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordRequest.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_CHATBOT_MODEL_DESCRIBECOREWORDREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECOREWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeCoreWordRequest : public RpcServiceRequest + { + + public: + DescribeCoreWordRequest(); + ~DescribeCoreWordRequest(); + + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + + private: + std::string coreWordName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECOREWORDREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordResult.h new file mode 100644 index 000000000..8304f0545 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeCoreWordResult.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_CHATBOT_MODEL_DESCRIBECOREWORDRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECOREWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeCoreWordResult : public ServiceResult + { + public: + + + DescribeCoreWordResult(); + explicit DescribeCoreWordResult(const std::string &payload); + ~DescribeCoreWordResult(); + std::vector getSynonyms()const; + std::string getCoreWordName()const; + std::string getModifyTime()const; + std::string getCreateTime()const; + std::string getCoreWordCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector synonyms_; + std::string coreWordName_; + std::string modifyTime_; + std::string createTime_; + std::string coreWordCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBECOREWORDRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowRequest.h new file mode 100644 index 000000000..042e5f19d --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowRequest.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_CHATBOT_MODEL_DESCRIBEDIALOGFLOWREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeDialogFlowRequest : public RpcServiceRequest + { + + public: + DescribeDialogFlowRequest(); + ~DescribeDialogFlowRequest(); + + long getDialogId()const; + void setDialogId(long dialogId); + + private: + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGFLOWREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowResult.h new file mode 100644 index 000000000..4ba8da07b --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogFlowResult.h @@ -0,0 +1,208 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGFLOWRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeDialogFlowResult : public ServiceResult + { + public: + struct ModuleDefinition + { + struct NodesItem + { + struct PluginData + { + struct Entry + { + struct PluginFieldDataEntry + { + struct ContentEntryItem + { + struct ConditionEntriesItem + { + std::string type; + std::string value; + std::string id; + std::string term; + std::string name; + }; + std::vector conditionEntries; + }; + std::vector contentEntry; + int lifeSpan; + std::string name; + }; + PluginFieldDataEntry pluginFieldDataEntry; + }; + struct Function + { + struct PluginFieldDataFunction + { + struct SwitchItem + { + std::string type; + std::string label; + std::string value; + std::string id; + std::string name; + }; + std::string function; + std::string aliyunFunction; + std::string type; + std::string description; + std::vector switch; + std::string params; + std::string endPoint; + std::string code; + std::string name; + std::string aliyunService; + }; + PluginFieldDataFunction pluginFieldDataFunction; + }; + struct Response + { + struct PluginFieldDataResponse + { + struct ContentResponse + { + struct ButtonList + { + struct ButtonItem + { + std::string type; + std::string text; + std::string name; + }; + std::string intro; + std::vector button; + }; + std::string type; + std::string text; + std::string image; + ButtonList buttonList; + }; + ContentResponse contentResponse; + std::string name; + }; + PluginFieldDataResponse pluginFieldDataResponse; + }; + struct Slot + { + struct PluginFieldDataSlot + { + struct ContentSlotItem + { + bool isArray; + bool isNecessary; + std::string value; + int lifeSpan; + std::vector question; + std::string name; + }; + std::vector contentSlot; + std::string intentName; + bool isSysIntent; + std::string intentId; + std::string name; + }; + PluginFieldDataSlot pluginFieldDataSlot; + }; + Response response; + Function function; + Entry entry; + Slot slot; + }; + bool pluginDataUpdate; + std::string xx; + std::string yy; + PluginData pluginData; + std::string componentCode; + std::string label; + std::string id; + std::string code; + }; + struct EdgesItem + { + std::string target; + std::string label; + std::string id; + std::string source; + }; + std::vector edges; + std::vector nodes; + }; + + + DescribeDialogFlowResult(); + explicit DescribeDialogFlowResult(const std::string &payload); + ~DescribeDialogFlowResult(); + int getStatus()const; + std::string getModifyTime()const; + std::string getAccountId()const; + std::string getInstanceId()const; + std::string getModuleName()const; + std::string getCreateTime()const; + long getDialogId()const; + std::string getTemplates()const; + std::string getCreateUserId()const; + std::string getCreateUserName()const; + std::string getGlobalVars()const; + ModuleDefinition getModuleDefinition()const; + long getModuleId()const; + std::string getDialogName()const; + std::string getModifyUserId()const; + std::string getModifyUserName()const; + std::string getTags()const; + + protected: + void parse(const std::string &payload); + private: + int status_; + std::string modifyTime_; + std::string accountId_; + std::string instanceId_; + std::string moduleName_; + std::string createTime_; + long dialogId_; + std::string templates_; + std::string createUserId_; + std::string createUserName_; + std::string globalVars_; + ModuleDefinition moduleDefinition_; + long moduleId_; + std::string dialogName_; + std::string modifyUserId_; + std::string modifyUserName_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGFLOWRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeDialogRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogRequest.h new file mode 100644 index 000000000..aaec56531 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogRequest.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_CHATBOT_MODEL_DESCRIBEDIALOGREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeDialogRequest : public RpcServiceRequest + { + + public: + DescribeDialogRequest(); + ~DescribeDialogRequest(); + + long getDialogId()const; + void setDialogId(long dialogId); + + private: + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeDialogResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogResult.h new file mode 100644 index 000000000..5f306fae3 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeDialogResult.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_CHATBOT_MODEL_DESCRIBEDIALOGRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeDialogResult : public ServiceResult + { + public: + + + DescribeDialogResult(); + explicit DescribeDialogResult(const std::string &payload); + ~DescribeDialogResult(); + int getStatus()const; + std::string getModifyTime()const; + std::string getDialogName()const; + std::string getDescription()const; + std::string getModifyUserId()const; + std::string getCreateTime()const; + std::string getModifyUserName()const; + long getDialogId()const; + std::string getCreateUserId()const; + std::string getCreateUserName()const; + bool getIsSampleDialog()const; + bool getIsOnline()const; + + protected: + void parse(const std::string &payload); + private: + int status_; + std::string modifyTime_; + std::string dialogName_; + std::string description_; + std::string modifyUserId_; + std::string createTime_; + std::string modifyUserName_; + long dialogId_; + std::string createUserId_; + std::string createUserName_; + bool isSampleDialog_; + bool isOnline_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEDIALOGRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesRequest.h new file mode 100644 index 000000000..ca5e21118 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesRequest.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_CHATBOT_MODEL_DESCRIBEENTITIESREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEENTITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeEntitiesRequest : public RpcServiceRequest + { + + public: + DescribeEntitiesRequest(); + ~DescribeEntitiesRequest(); + + long getEntityId()const; + void setEntityId(long entityId); + + private: + long entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEENTITIESREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesResult.h new file mode 100644 index 000000000..a7622a516 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeEntitiesResult.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_CHATBOT_MODEL_DESCRIBEENTITIESRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEENTITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeEntitiesResult : public ServiceResult + { + public: + struct MembersItem + { + std::vector synonyms; + std::string memberName; + }; + + + DescribeEntitiesResult(); + explicit DescribeEntitiesResult(const std::string &payload); + ~DescribeEntitiesResult(); + long getEntityId()const; + std::string getEntityType()const; + std::string getModifyTime()const; + std::string getModifyUserId()const; + std::string getEntityName()const; + std::string getRegex()const; + std::string getCreateTime()const; + std::string getModifyUserName()const; + std::string getCreateUserId()const; + std::string getCreateUserName()const; + std::vector getMembers()const; + + protected: + void parse(const std::string &payload); + private: + long entityId_; + std::string entityType_; + std::string modifyTime_; + std::string modifyUserId_; + std::string entityName_; + std::string regex_; + std::string createTime_; + std::string modifyUserName_; + std::string createUserId_; + std::string createUserName_; + std::vector members_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEENTITIESRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeIntentRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribeIntentRequest.h new file mode 100644 index 000000000..24aefd289 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeIntentRequest.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_CHATBOT_MODEL_DESCRIBEINTENTREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEINTENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeIntentRequest : public RpcServiceRequest + { + + public: + DescribeIntentRequest(); + ~DescribeIntentRequest(); + + long getIntentId()const; + void setIntentId(long intentId); + + private: + long intentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEINTENTREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeIntentResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribeIntentResult.h new file mode 100644 index 000000000..106f8b0c5 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeIntentResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEINTENTRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEINTENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeIntentResult : public ServiceResult + { + public: + struct RuleCheckItem + { + std::vector warning; + bool strict; + std::vector error; + std::string text; + }; + struct SlotItem + { + struct TagsItem + { + std::string userSayId; + std::string value; + }; + std::string slotId; + bool isArray; + bool isNecessary; + std::string value; + int lifeSpan; + std::vector question; + std::vector tags; + std::string name; + }; + struct UserSayItem + { + struct DataItem + { + std::string slotId; + std::string text; + }; + bool strict; + std::string userSayId; + std::vector data; + }; + + + DescribeIntentResult(); + explicit DescribeIntentResult(const std::string &payload); + ~DescribeIntentResult(); + std::string getModifyTime()const; + std::string getCreateTime()const; + long getDialogId()const; + std::string getCreateUserId()const; + std::string getCreateUserName()const; + long getIntentId()const; + std::string getName()const; + std::string getType()const; + std::vector getUserSay()const; + std::string getModifyUserId()const; + std::string getModifyUserName()const; + std::vector getSlot()const; + std::vector getRuleCheck()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string createTime_; + long dialogId_; + std::string createUserId_; + std::string createUserName_; + long intentId_; + std::string name_; + std::string type_; + std::vector userSay_; + std::string modifyUserId_; + std::string modifyUserName_; + std::vector slot_; + std::vector ruleCheck_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEINTENTRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeRequest.h new file mode 100644 index 000000000..6308d7450 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeRequest.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_CHATBOT_MODEL_DESCRIBEKNOWLEDGEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEKNOWLEDGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeKnowledgeRequest : public RpcServiceRequest + { + + public: + DescribeKnowledgeRequest(); + ~DescribeKnowledgeRequest(); + + long getKnowledgeId()const; + void setKnowledgeId(long knowledgeId); + + private: + long knowledgeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEKNOWLEDGEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeResult.h new file mode 100644 index 000000000..9217c2b5c --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribeKnowledgeResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEKNOWLEDGERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEKNOWLEDGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribeKnowledgeResult : public ServiceResult + { + public: + struct Outline + { + std::string title; + long knowledgeId; + long outlineId; + }; + struct SimQuestion + { + std::string modifyTime; + long simQuestionId; + std::string createTime; + std::string title; + }; + struct Solution + { + std::string modifyTime; + long solutionId; + std::string content; + std::string createTime; + std::string plainText; + std::vector perspectiveIds; + std::string summary; + }; + + + DescribeKnowledgeResult(); + explicit DescribeKnowledgeResult(const std::string &payload); + ~DescribeKnowledgeResult(); + std::string getKnowledgeTitle()const; + long getCategoryId()const; + std::string getModifyTime()const; + std::vector getCoreWords()const; + std::string getCreateTime()const; + long getKnowledgeId()const; + std::vector getKeyWords()const; + std::string getEndDate()const; + std::string getCreateUserName()const; + std::string getStartDate()const; + std::vector getSimQuestions()const; + std::vector getSolutions()const; + int getVersion()const; + std::string getModifyUserName()const; + std::vector getOutlines()const; + int getKnowledgeStatus()const; + int getKnowledgeType()const; + + protected: + void parse(const std::string &payload); + private: + std::string knowledgeTitle_; + long categoryId_; + std::string modifyTime_; + std::vector coreWords_; + std::string createTime_; + long knowledgeId_; + std::vector keyWords_; + std::string endDate_; + std::string createUserName_; + std::string startDate_; + std::vector simQuestions_; + std::vector solutions_; + int version_; + std::string modifyUserName_; + std::vector outlines_; + int knowledgeStatus_; + int knowledgeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEKNOWLEDGERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveRequest.h b/chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveRequest.h new file mode 100644 index 000000000..256e2e4d2 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveRequest.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_CHATBOT_MODEL_DESCRIBEPERSPECTIVEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEPERSPECTIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribePerspectiveRequest : public RpcServiceRequest + { + + public: + DescribePerspectiveRequest(); + ~DescribePerspectiveRequest(); + + std::string getPerspectiveId()const; + void setPerspectiveId(const std::string& perspectiveId); + + private: + std::string perspectiveId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEPERSPECTIVEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveResult.h b/chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveResult.h new file mode 100644 index 000000000..609a50eae --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DescribePerspectiveResult.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_CHATBOT_MODEL_DESCRIBEPERSPECTIVERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEPERSPECTIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DescribePerspectiveResult : public ServiceResult + { + public: + + + DescribePerspectiveResult(); + explicit DescribePerspectiveResult(const std::string &payload); + ~DescribePerspectiveResult(); + int getStatus()const; + std::string getModifyTime()const; + std::string getPerspectiveCode()const; + bool getSelfDefine()const; + std::string getCreateTime()const; + std::string getModifyUserName()const; + std::string getPerspectiveId()const; + std::string getCreateUserName()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + int status_; + std::string modifyTime_; + std::string perspectiveCode_; + bool selfDefine_; + std::string createTime_; + std::string modifyUserName_; + std::string perspectiveId_; + std::string createUserName_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEPERSPECTIVERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowRequest.h b/chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowRequest.h new file mode 100644 index 000000000..1be0e69a2 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowRequest.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_CHATBOT_MODEL_DISABLEDIALOGFLOWREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DISABLEDIALOGFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DisableDialogFlowRequest : public RpcServiceRequest + { + + public: + DisableDialogFlowRequest(); + ~DisableDialogFlowRequest(); + + long getDialogId()const; + void setDialogId(long dialogId); + + private: + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DISABLEDIALOGFLOWREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowResult.h b/chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowResult.h new file mode 100644 index 000000000..078447a80 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DisableDialogFlowResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_DISABLEDIALOGFLOWRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DISABLEDIALOGFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DisableDialogFlowResult : public ServiceResult + { + public: + + + DisableDialogFlowResult(); + explicit DisableDialogFlowResult(const std::string &payload); + ~DisableDialogFlowResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DISABLEDIALOGFLOWRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeRequest.h b/chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeRequest.h new file mode 100644 index 000000000..ee42516e3 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeRequest.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_CHATBOT_MODEL_DISABLEKNOWLEDGEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DISABLEKNOWLEDGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DisableKnowledgeRequest : public RpcServiceRequest + { + + public: + DisableKnowledgeRequest(); + ~DisableKnowledgeRequest(); + + long getKnowledgeId()const; + void setKnowledgeId(long knowledgeId); + + private: + long knowledgeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DISABLEKNOWLEDGEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeResult.h b/chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeResult.h new file mode 100644 index 000000000..54c53476c --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/DisableKnowledgeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_DISABLEKNOWLEDGERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_DISABLEKNOWLEDGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT DisableKnowledgeResult : public ServiceResult + { + public: + + + DisableKnowledgeResult(); + explicit DisableKnowledgeResult(const std::string &payload); + ~DisableKnowledgeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_DISABLEKNOWLEDGERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/FeedbackRequest.h b/chatbot/include/alibabacloud/chatbot/model/FeedbackRequest.h new file mode 100644 index 000000000..526ca3cd8 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/FeedbackRequest.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_CHATBOT_MODEL_FEEDBACKREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_FEEDBACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT FeedbackRequest : public RpcServiceRequest + { + + public: + FeedbackRequest(); + ~FeedbackRequest(); + + std::string getFeedback()const; + void setFeedback(const std::string& feedback); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMessageId()const; + void setMessageId(const std::string& messageId); + std::string getSessionId()const; + void setSessionId(const std::string& sessionId); + + private: + std::string feedback_; + std::string instanceId_; + std::string messageId_; + std::string sessionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_FEEDBACKREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/FeedbackResult.h b/chatbot/include/alibabacloud/chatbot/model/FeedbackResult.h new file mode 100644 index 000000000..438c2b2a5 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/FeedbackResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_FEEDBACKRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_FEEDBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT FeedbackResult : public ServiceResult + { + public: + + + FeedbackResult(); + explicit FeedbackResult(const std::string &payload); + ~FeedbackResult(); + std::string getFeedback()const; + std::string getMessageId()const; + + protected: + void parse(const std::string &payload); + private: + std::string feedback_; + std::string messageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_FEEDBACKRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryRequest.h b/chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryRequest.h new file mode 100644 index 000000000..e04fecd16 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryRequest.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_CHATBOT_MODEL_MOVEKNOWLEDGECATEGORYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_MOVEKNOWLEDGECATEGORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT MoveKnowledgeCategoryRequest : public RpcServiceRequest + { + + public: + MoveKnowledgeCategoryRequest(); + ~MoveKnowledgeCategoryRequest(); + + long getKnowledgeId()const; + void setKnowledgeId(long knowledgeId); + long getCategoryId()const; + void setCategoryId(long categoryId); + + private: + long knowledgeId_; + long categoryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_MOVEKNOWLEDGECATEGORYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryResult.h b/chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryResult.h new file mode 100644 index 000000000..adcdca1f1 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/MoveKnowledgeCategoryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_MOVEKNOWLEDGECATEGORYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_MOVEKNOWLEDGECATEGORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT MoveKnowledgeCategoryResult : public ServiceResult + { + public: + + + MoveKnowledgeCategoryResult(); + explicit MoveKnowledgeCategoryResult(const std::string &payload); + ~MoveKnowledgeCategoryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_MOVEKNOWLEDGECATEGORYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowRequest.h b/chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowRequest.h new file mode 100644 index 000000000..6846fd152 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowRequest.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_CHATBOT_MODEL_PUBLISHDIALOGFLOWREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_PUBLISHDIALOGFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT PublishDialogFlowRequest : public RpcServiceRequest + { + + public: + PublishDialogFlowRequest(); + ~PublishDialogFlowRequest(); + + long getDialogId()const; + void setDialogId(long dialogId); + + private: + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_PUBLISHDIALOGFLOWREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowResult.h b/chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowResult.h new file mode 100644 index 000000000..a5ae36cd2 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/PublishDialogFlowResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_PUBLISHDIALOGFLOWRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_PUBLISHDIALOGFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT PublishDialogFlowResult : public ServiceResult + { + public: + + + PublishDialogFlowResult(); + explicit PublishDialogFlowResult(const std::string &payload); + ~PublishDialogFlowResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_PUBLISHDIALOGFLOWRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeRequest.h b/chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeRequest.h new file mode 100644 index 000000000..e331a5389 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeRequest.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_CHATBOT_MODEL_PUBLISHKNOWLEDGEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_PUBLISHKNOWLEDGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT PublishKnowledgeRequest : public RpcServiceRequest + { + + public: + PublishKnowledgeRequest(); + ~PublishKnowledgeRequest(); + + long getKnowledgeId()const; + void setKnowledgeId(long knowledgeId); + + private: + long knowledgeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_PUBLISHKNOWLEDGEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeResult.h b/chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeResult.h new file mode 100644 index 000000000..165a603a7 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/PublishKnowledgeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_PUBLISHKNOWLEDGERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_PUBLISHKNOWLEDGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT PublishKnowledgeResult : public ServiceResult + { + public: + + + PublishKnowledgeResult(); + explicit PublishKnowledgeResult(const std::string &payload); + ~PublishKnowledgeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_PUBLISHKNOWLEDGERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryCategoriesRequest.h b/chatbot/include/alibabacloud/chatbot/model/QueryCategoriesRequest.h new file mode 100644 index 000000000..d78c68165 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryCategoriesRequest.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_CHATBOT_MODEL_QUERYCATEGORIESREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYCATEGORIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryCategoriesRequest : public RpcServiceRequest + { + + public: + QueryCategoriesRequest(); + ~QueryCategoriesRequest(); + + bool getShowChildrens()const; + void setShowChildrens(bool showChildrens); + long getParentCategoryId()const; + void setParentCategoryId(long parentCategoryId); + + private: + bool showChildrens_; + long parentCategoryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYCATEGORIESREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryCategoriesResult.h b/chatbot/include/alibabacloud/chatbot/model/QueryCategoriesResult.h new file mode 100644 index 000000000..785a7d20b --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryCategoriesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_QUERYCATEGORIESRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYCATEGORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryCategoriesResult : public ServiceResult + { + public: + struct Category + { + long categoryId; + std::vector childrens; + long parentCategoryId; + std::string name; + }; + + + QueryCategoriesResult(); + explicit QueryCategoriesResult(const std::string &payload); + ~QueryCategoriesResult(); + std::vector getCategories()const; + + protected: + void parse(const std::string &payload); + private: + std::vector categories_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYCATEGORIESRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsRequest.h b/chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsRequest.h new file mode 100644 index 000000000..4b8465ed9 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsRequest.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_CHATBOT_MODEL_QUERYCOREWORDSREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYCOREWORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryCoreWordsRequest : public RpcServiceRequest + { + + public: + QueryCoreWordsRequest(); + ~QueryCoreWordsRequest(); + + std::string getSynonym()const; + void setSynonym(const std::string& synonym); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string synonym_; + int pageSize_; + std::string coreWordName_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYCOREWORDSREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsResult.h b/chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsResult.h new file mode 100644 index 000000000..dc8b8ffae --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryCoreWordsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_QUERYCOREWORDSRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYCOREWORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryCoreWordsResult : public ServiceResult + { + public: + struct CoreWord + { + std::string coreWordName; + std::vector synonyms; + std::string modifyTime; + std::string createTime; + std::string coreWordCode; + }; + + + QueryCoreWordsResult(); + explicit QueryCoreWordsResult(const std::string &payload); + ~QueryCoreWordsResult(); + int getTotalCount()const; + std::vector getCoreWords()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector coreWords_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYCOREWORDSRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryDialogsRequest.h b/chatbot/include/alibabacloud/chatbot/model/QueryDialogsRequest.h new file mode 100644 index 000000000..220575134 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryDialogsRequest.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_CHATBOT_MODEL_QUERYDIALOGSREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYDIALOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryDialogsRequest : public RpcServiceRequest + { + + public: + QueryDialogsRequest(); + ~QueryDialogsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDialogName()const; + void setDialogName(const std::string& dialogName); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + int pageSize_; + std::string dialogName_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYDIALOGSREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryDialogsResult.h b/chatbot/include/alibabacloud/chatbot/model/QueryDialogsResult.h new file mode 100644 index 000000000..bda15a62e --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryDialogsResult.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_CHATBOT_MODEL_QUERYDIALOGSRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYDIALOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryDialogsResult : public ServiceResult + { + public: + struct Dialog + { + int status; + std::string modifyTime; + std::string dialogName; + std::string description; + std::string modifyUserId; + std::string createTime; + std::string modifyUserName; + long dialogId; + std::string createUserId; + std::string createUserName; + bool isSampleDialog; + bool isOnline; + }; + + + QueryDialogsResult(); + explicit QueryDialogsResult(const std::string &payload); + ~QueryDialogsResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getDialogs()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector dialogs_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYDIALOGSRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryEntitiesRequest.h b/chatbot/include/alibabacloud/chatbot/model/QueryEntitiesRequest.h new file mode 100644 index 000000000..fd4b612df --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryEntitiesRequest.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_CHATBOT_MODEL_QUERYENTITIESREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYENTITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryEntitiesRequest : public RpcServiceRequest + { + + public: + QueryEntitiesRequest(); + ~QueryEntitiesRequest(); + + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + int getPageSize()const; + void setPageSize(int pageSize); + long getDialogId()const; + void setDialogId(long dialogId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string entityName_; + int pageSize_; + long dialogId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYENTITIESREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryEntitiesResult.h b/chatbot/include/alibabacloud/chatbot/model/QueryEntitiesResult.h new file mode 100644 index 000000000..d59294555 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryEntitiesResult.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_CHATBOT_MODEL_QUERYENTITIESRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYENTITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryEntitiesResult : public ServiceResult + { + public: + struct Entity + { + struct MembersItem + { + std::vector synonyms; + std::string memberName; + }; + long entityId; + std::string entityType; + std::string modifyTime; + std::string modifyUserId; + std::string entityName; + std::string regex; + std::string createTime; + std::string modifyUserName; + std::string createUserId; + std::string createUserName; + std::vector members; + }; + + + QueryEntitiesResult(); + explicit QueryEntitiesResult(const std::string &payload); + ~QueryEntitiesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getEntities()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector entities_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYENTITIESRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryIntentsRequest.h b/chatbot/include/alibabacloud/chatbot/model/QueryIntentsRequest.h new file mode 100644 index 000000000..decca01fc --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryIntentsRequest.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_CHATBOT_MODEL_QUERYINTENTSREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYINTENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryIntentsRequest : public RpcServiceRequest + { + + public: + QueryIntentsRequest(); + ~QueryIntentsRequest(); + + std::string getIntentName()const; + void setIntentName(const std::string& intentName); + int getPageSize()const; + void setPageSize(int pageSize); + long getDialogId()const; + void setDialogId(long dialogId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string intentName_; + int pageSize_; + long dialogId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYINTENTSREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryIntentsResult.h b/chatbot/include/alibabacloud/chatbot/model/QueryIntentsResult.h new file mode 100644 index 000000000..322b896a1 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryIntentsResult.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_CHATBOT_MODEL_QUERYINTENTSRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYINTENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryIntentsResult : public ServiceResult + { + public: + struct Intent + { + struct UserSayItem + { + struct DataItem + { + std::string slotId; + std::string text; + }; + bool strict; + std::string userSayId; + std::vector data; + }; + struct RuleCheckItem + { + std::vector warning; + bool strict; + std::vector error; + std::string text; + }; + struct SlotItem + { + struct TagsItem + { + std::string userSayId; + std::string value; + }; + std::string slotId; + bool isArray; + bool isNecessary; + std::string value; + int lifeSpan; + std::vector question; + std::vector tags; + std::string name; + }; + std::string modifyTime; + std::vector userSay; + std::string modifyUserId; + std::string createTime; + std::string modifyUserName; + std::vector slot; + std::string createUserId; + std::vector ruleCheck; + std::string createUserName; + long intentId; + std::string name; + }; + + + QueryIntentsResult(); + explicit QueryIntentsResult(const std::string &payload); + ~QueryIntentsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getIntents()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector intents_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYINTENTSRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesRequest.h b/chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesRequest.h new file mode 100644 index 000000000..706eb9724 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesRequest.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_CHATBOT_MODEL_QUERYKNOWLEDGESREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYKNOWLEDGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryKnowledgesRequest : public RpcServiceRequest + { + + public: + QueryKnowledgesRequest(); + ~QueryKnowledgesRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + std::string getKnowledgeTitle()const; + void setKnowledgeTitle(const std::string& knowledgeTitle); + int getPageNumber()const; + void setPageNumber(int pageNumber); + long getCategoryId()const; + void setCategoryId(long categoryId); + + private: + int pageSize_; + std::string coreWordName_; + std::string knowledgeTitle_; + int pageNumber_; + long categoryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYKNOWLEDGESREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesResult.h b/chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesResult.h new file mode 100644 index 000000000..dfa4dd1eb --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryKnowledgesResult.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_CHATBOT_MODEL_QUERYKNOWLEDGESRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYKNOWLEDGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryKnowledgesResult : public ServiceResult + { + public: + struct Knowledge + { + long categoryId; + std::string knowledgeTitle; + std::string startDate; + std::string modifyTime; + std::vector coreWords; + std::string version; + std::string createTime; + std::string modifyUserName; + int knowledgeStatus; + long knowledgeId; + std::string createUserName; + std::string endDate; + }; + + + QueryKnowledgesResult(); + explicit QueryKnowledgesResult(const std::string &payload); + ~QueryKnowledgesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getKnowledges()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector knowledges_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYKNOWLEDGESRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesRequest.h b/chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesRequest.h new file mode 100644 index 000000000..3527d33d1 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesRequest.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_CHATBOT_MODEL_QUERYPERSPECTIVESREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYPERSPECTIVESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryPerspectivesRequest : public RpcServiceRequest + { + + public: + QueryPerspectivesRequest(); + ~QueryPerspectivesRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYPERSPECTIVESREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesResult.h b/chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesResult.h new file mode 100644 index 000000000..d498dae03 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QueryPerspectivesResult.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_CHATBOT_MODEL_QUERYPERSPECTIVESRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYPERSPECTIVESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QueryPerspectivesResult : public ServiceResult + { + public: + struct Perspective + { + int status; + std::string modifyTime; + std::string perspectiveCode; + std::string selfDefine; + std::string createTime; + std::string modifyUserName; + std::string perspectiveId; + std::string createUserName; + std::string name; + }; + + + QueryPerspectivesResult(); + explicit QueryPerspectivesResult(const std::string &payload); + ~QueryPerspectivesResult(); + std::vector getPerspectives()const; + + protected: + void parse(const std::string &payload); + private: + std::vector perspectives_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYPERSPECTIVESRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesRequest.h b/chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesRequest.h new file mode 100644 index 000000000..d3c699984 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesRequest.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_CHATBOT_MODEL_QUERYSYSTEMENTITIESREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYSYSTEMENTITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QuerySystemEntitiesRequest : public RpcServiceRequest + { + + public: + QuerySystemEntitiesRequest(); + ~QuerySystemEntitiesRequest(); + + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + + private: + std::string entityName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYSYSTEMENTITIESREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesResult.h b/chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesResult.h new file mode 100644 index 000000000..b5ab3ca5e --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/QuerySystemEntitiesResult.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_CHATBOT_MODEL_QUERYSYSTEMENTITIESRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_QUERYSYSTEMENTITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT QuerySystemEntitiesResult : public ServiceResult + { + public: + struct Entity + { + std::string entityName; + std::string entityCode; + std::string defaultQuestion; + }; + + + QuerySystemEntitiesResult(); + explicit QuerySystemEntitiesResult(const std::string &payload); + ~QuerySystemEntitiesResult(); + std::vector getSystemEntities()const; + + protected: + void parse(const std::string &payload); + private: + std::vector systemEntities_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYSYSTEMENTITIESRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberRequest.h b/chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberRequest.h new file mode 100644 index 000000000..269193668 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberRequest.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_CHATBOT_MODEL_REMOVEENTITYMEMBERREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_REMOVEENTITYMEMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT RemoveEntityMemberRequest : public RpcServiceRequest + { + + public: + RemoveEntityMemberRequest(); + ~RemoveEntityMemberRequest(); + + std::string getRemoveType()const; + void setRemoveType(const std::string& removeType); + std::string getMember()const; + void setMember(const std::string& member); + long getEntityId()const; + void setEntityId(long entityId); + + private: + std::string removeType_; + std::string member_; + long entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_REMOVEENTITYMEMBERREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberResult.h b/chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberResult.h new file mode 100644 index 000000000..0a39f2bfc --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/RemoveEntityMemberResult.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_CHATBOT_MODEL_REMOVEENTITYMEMBERRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_REMOVEENTITYMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT RemoveEntityMemberResult : public ServiceResult + { + public: + + + RemoveEntityMemberResult(); + explicit RemoveEntityMemberResult(const std::string &payload); + ~RemoveEntityMemberResult(); + std::string getEntityId()const; + + protected: + void parse(const std::string &payload); + private: + std::string entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_REMOVEENTITYMEMBERRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/RemoveSynonymRequest.h b/chatbot/include/alibabacloud/chatbot/model/RemoveSynonymRequest.h new file mode 100644 index 000000000..b30986504 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/RemoveSynonymRequest.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_CHATBOT_MODEL_REMOVESYNONYMREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_REMOVESYNONYMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT RemoveSynonymRequest : public RpcServiceRequest + { + + public: + RemoveSynonymRequest(); + ~RemoveSynonymRequest(); + + std::string getSynonym()const; + void setSynonym(const std::string& synonym); + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + + private: + std::string synonym_; + std::string coreWordName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_REMOVESYNONYMREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/RemoveSynonymResult.h b/chatbot/include/alibabacloud/chatbot/model/RemoveSynonymResult.h new file mode 100644 index 000000000..17df7dff3 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/RemoveSynonymResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_REMOVESYNONYMRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_REMOVESYNONYMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT RemoveSynonymResult : public ServiceResult + { + public: + + + RemoveSynonymResult(); + explicit RemoveSynonymResult(const std::string &payload); + ~RemoveSynonymResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_REMOVESYNONYMRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/TestDialogFlowRequest.h b/chatbot/include/alibabacloud/chatbot/model/TestDialogFlowRequest.h new file mode 100644 index 000000000..8ef91a10a --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/TestDialogFlowRequest.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_CHATBOT_MODEL_TESTDIALOGFLOWREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_TESTDIALOGFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT TestDialogFlowRequest : public RpcServiceRequest + { + + public: + TestDialogFlowRequest(); + ~TestDialogFlowRequest(); + + long getDialogId()const; + void setDialogId(long dialogId); + + private: + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_TESTDIALOGFLOWREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/TestDialogFlowResult.h b/chatbot/include/alibabacloud/chatbot/model/TestDialogFlowResult.h new file mode 100644 index 000000000..359b35114 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/TestDialogFlowResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_TESTDIALOGFLOWRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_TESTDIALOGFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT TestDialogFlowResult : public ServiceResult + { + public: + + + TestDialogFlowResult(); + explicit TestDialogFlowResult(const std::string &payload); + ~TestDialogFlowResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_TESTDIALOGFLOWRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateCategoryRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdateCategoryRequest.h new file mode 100644 index 000000000..4e46a5672 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateCategoryRequest.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_CHATBOT_MODEL_UPDATECATEGORYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATECATEGORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateCategoryRequest : public RpcServiceRequest + { + + public: + UpdateCategoryRequest(); + ~UpdateCategoryRequest(); + + std::string getName()const; + void setName(const std::string& name); + long getCategoryId()const; + void setCategoryId(long categoryId); + + private: + std::string name_; + long categoryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATECATEGORYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateCategoryResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdateCategoryResult.h new file mode 100644 index 000000000..866b6a4a9 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateCategoryResult.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_CHATBOT_MODEL_UPDATECATEGORYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATECATEGORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateCategoryResult : public ServiceResult + { + public: + + + UpdateCategoryResult(); + explicit UpdateCategoryResult(const std::string &payload); + ~UpdateCategoryResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATECATEGORYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordRequest.h new file mode 100644 index 000000000..ad73dba52 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordRequest.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_CHATBOT_MODEL_UPDATECOREWORDREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATECOREWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateCoreWordRequest : public RpcServiceRequest + { + + public: + UpdateCoreWordRequest(); + ~UpdateCoreWordRequest(); + + std::string getCoreWordName()const; + void setCoreWordName(const std::string& coreWordName); + std::string getCoreWordCode()const; + void setCoreWordCode(const std::string& coreWordCode); + + private: + std::string coreWordName_; + std::string coreWordCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATECOREWORDREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordResult.h new file mode 100644 index 000000000..cc8109a26 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateCoreWordResult.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_CHATBOT_MODEL_UPDATECOREWORDRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATECOREWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateCoreWordResult : public ServiceResult + { + public: + + + UpdateCoreWordResult(); + explicit UpdateCoreWordResult(const std::string &payload); + ~UpdateCoreWordResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATECOREWORDRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowRequest.h new file mode 100644 index 000000000..b14bbea9a --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowRequest.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_CHATBOT_MODEL_UPDATEDIALOGFLOWREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGFLOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateDialogFlowRequest : public RpcServiceRequest + { + + public: + UpdateDialogFlowRequest(); + ~UpdateDialogFlowRequest(); + + std::string getModuleDefinition()const; + void setModuleDefinition(const std::string& moduleDefinition); + long getDialogId()const; + void setDialogId(long dialogId); + + private: + std::string moduleDefinition_; + long dialogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGFLOWREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowResult.h new file mode 100644 index 000000000..8affff0c7 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogFlowResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGFLOWRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateDialogFlowResult : public ServiceResult + { + public: + + + UpdateDialogFlowResult(); + explicit UpdateDialogFlowResult(const std::string &payload); + ~UpdateDialogFlowResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGFLOWRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateDialogRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogRequest.h new file mode 100644 index 000000000..5ea3a5458 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogRequest.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_CHATBOT_MODEL_UPDATEDIALOGREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateDialogRequest : public RpcServiceRequest + { + + public: + UpdateDialogRequest(); + ~UpdateDialogRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + long getDialogId()const; + void setDialogId(long dialogId); + std::string getDialogName()const; + void setDialogName(const std::string& dialogName); + + private: + std::string description_; + long dialogId_; + std::string dialogName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateDialogResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogResult.h new file mode 100644 index 000000000..13b661a01 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateDialogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateDialogResult : public ServiceResult + { + public: + + + UpdateDialogResult(); + explicit UpdateDialogResult(const std::string &payload); + ~UpdateDialogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEDIALOGRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateEntityRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdateEntityRequest.h new file mode 100644 index 000000000..de6348aa2 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateEntityRequest.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_CHATBOT_MODEL_UPDATEENTITYREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEENTITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateEntityRequest : public RpcServiceRequest + { + + public: + UpdateEntityRequest(); + ~UpdateEntityRequest(); + + std::string getRegex()const; + void setRegex(const std::string& regex); + std::string getEntityType()const; + void setEntityType(const std::string& entityType); + std::string getMembers()const; + void setMembers(const std::string& members); + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + long getEntityId()const; + void setEntityId(long entityId); + + private: + std::string regex_; + std::string entityType_; + std::string members_; + std::string entityName_; + long entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEENTITYREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateEntityResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdateEntityResult.h new file mode 100644 index 000000000..fdeba9711 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateEntityResult.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_CHATBOT_MODEL_UPDATEENTITYRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEENTITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateEntityResult : public ServiceResult + { + public: + + + UpdateEntityResult(); + explicit UpdateEntityResult(const std::string &payload); + ~UpdateEntityResult(); + std::string getEntityId()const; + + protected: + void parse(const std::string &payload); + private: + std::string entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEENTITYRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateIntentRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdateIntentRequest.h new file mode 100644 index 000000000..bc716dd41 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateIntentRequest.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_CHATBOT_MODEL_UPDATEINTENTREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEINTENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateIntentRequest : public RpcServiceRequest + { + + public: + UpdateIntentRequest(); + ~UpdateIntentRequest(); + + std::string getIntentDefinition()const; + void setIntentDefinition(const std::string& intentDefinition); + long getIntentId()const; + void setIntentId(long intentId); + + private: + std::string intentDefinition_; + long intentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEINTENTREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateIntentResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdateIntentResult.h new file mode 100644 index 000000000..7ab930c54 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateIntentResult.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_CHATBOT_MODEL_UPDATEINTENTRESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEINTENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateIntentResult : public ServiceResult + { + public: + + + UpdateIntentResult(); + explicit UpdateIntentResult(const std::string &payload); + ~UpdateIntentResult(); + std::string getIntentId()const; + + protected: + void parse(const std::string &payload); + private: + std::string intentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEINTENTRESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeRequest.h new file mode 100644 index 000000000..941edc06a --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeRequest.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_CHATBOT_MODEL_UPDATEKNOWLEDGEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEKNOWLEDGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateKnowledgeRequest : public RpcServiceRequest + { + + public: + UpdateKnowledgeRequest(); + ~UpdateKnowledgeRequest(); + + std::string getKnowledge()const; + void setKnowledge(const std::string& knowledge); + + private: + std::string knowledge_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEKNOWLEDGEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeResult.h new file mode 100644 index 000000000..69319bad0 --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdateKnowledgeResult.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_CHATBOT_MODEL_UPDATEKNOWLEDGERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEKNOWLEDGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdateKnowledgeResult : public ServiceResult + { + public: + + + UpdateKnowledgeResult(); + explicit UpdateKnowledgeResult(const std::string &payload); + ~UpdateKnowledgeResult(); + long getKnowledgeId()const; + + protected: + void parse(const std::string &payload); + private: + long knowledgeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEKNOWLEDGERESULT_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveRequest.h b/chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveRequest.h new file mode 100644 index 000000000..56558c8cb --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveRequest.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_CHATBOT_MODEL_UPDATEPERSPECTIVEREQUEST_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEPERSPECTIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdatePerspectiveRequest : public RpcServiceRequest + { + + public: + UpdatePerspectiveRequest(); + ~UpdatePerspectiveRequest(); + + std::string getPerspectiveId()const; + void setPerspectiveId(const std::string& perspectiveId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string perspectiveId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEPERSPECTIVEREQUEST_H_ \ No newline at end of file diff --git a/chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveResult.h b/chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveResult.h new file mode 100644 index 000000000..cb9d6167b --- /dev/null +++ b/chatbot/include/alibabacloud/chatbot/model/UpdatePerspectiveResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CHATBOT_MODEL_UPDATEPERSPECTIVERESULT_H_ +#define ALIBABACLOUD_CHATBOT_MODEL_UPDATEPERSPECTIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Chatbot + { + namespace Model + { + class ALIBABACLOUD_CHATBOT_EXPORT UpdatePerspectiveResult : public ServiceResult + { + public: + + + UpdatePerspectiveResult(); + explicit UpdatePerspectiveResult(const std::string &payload); + ~UpdatePerspectiveResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CHATBOT_MODEL_UPDATEPERSPECTIVERESULT_H_ \ No newline at end of file diff --git a/chatbot/src/ChatbotClient.cc b/chatbot/src/ChatbotClient.cc index d312fdd53..aa2b05dd6 100644 --- a/chatbot/src/ChatbotClient.cc +++ b/chatbot/src/ChatbotClient.cc @@ -31,26 +31,1322 @@ ChatbotClient::ChatbotClient(const Credentials &credentials, const ClientConfigu RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "beebot"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "chatbot"); } ChatbotClient::ChatbotClient(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, "beebot"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "chatbot"); } ChatbotClient::ChatbotClient(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, "beebot"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "chatbot"); } ChatbotClient::~ChatbotClient() {} +ChatbotClient::CreateEntityOutcome ChatbotClient::createEntity(const CreateEntityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEntityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEntityOutcome(CreateEntityResult(outcome.result())); + else + return CreateEntityOutcome(outcome.error()); +} + +void ChatbotClient::createEntityAsync(const CreateEntityRequest& request, const CreateEntityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEntity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::CreateEntityOutcomeCallable ChatbotClient::createEntityCallable(const CreateEntityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEntity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::PublishKnowledgeOutcome ChatbotClient::publishKnowledge(const PublishKnowledgeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishKnowledgeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishKnowledgeOutcome(PublishKnowledgeResult(outcome.result())); + else + return PublishKnowledgeOutcome(outcome.error()); +} + +void ChatbotClient::publishKnowledgeAsync(const PublishKnowledgeRequest& request, const PublishKnowledgeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishKnowledge(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::PublishKnowledgeOutcomeCallable ChatbotClient::publishKnowledgeCallable(const PublishKnowledgeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishKnowledge(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DeleteCategoryOutcome ChatbotClient::deleteCategory(const DeleteCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCategoryOutcome(DeleteCategoryResult(outcome.result())); + else + return DeleteCategoryOutcome(outcome.error()); +} + +void ChatbotClient::deleteCategoryAsync(const DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DeleteCategoryOutcomeCallable ChatbotClient::deleteCategoryCallable(const DeleteCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::AddSynonymOutcome ChatbotClient::addSynonym(const AddSynonymRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSynonymOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSynonymOutcome(AddSynonymResult(outcome.result())); + else + return AddSynonymOutcome(outcome.error()); +} + +void ChatbotClient::addSynonymAsync(const AddSynonymRequest& request, const AddSynonymAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSynonym(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::AddSynonymOutcomeCallable ChatbotClient::addSynonymCallable(const AddSynonymRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSynonym(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QueryIntentsOutcome ChatbotClient::queryIntents(const QueryIntentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryIntentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryIntentsOutcome(QueryIntentsResult(outcome.result())); + else + return QueryIntentsOutcome(outcome.error()); +} + +void ChatbotClient::queryIntentsAsync(const QueryIntentsRequest& request, const QueryIntentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryIntents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QueryIntentsOutcomeCallable ChatbotClient::queryIntentsCallable(const QueryIntentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryIntents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribeCategoryOutcome ChatbotClient::describeCategory(const DescribeCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCategoryOutcome(DescribeCategoryResult(outcome.result())); + else + return DescribeCategoryOutcome(outcome.error()); +} + +void ChatbotClient::describeCategoryAsync(const DescribeCategoryRequest& request, const DescribeCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribeCategoryOutcomeCallable ChatbotClient::describeCategoryCallable(const DescribeCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::AppendEntityMemberOutcome ChatbotClient::appendEntityMember(const AppendEntityMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AppendEntityMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AppendEntityMemberOutcome(AppendEntityMemberResult(outcome.result())); + else + return AppendEntityMemberOutcome(outcome.error()); +} + +void ChatbotClient::appendEntityMemberAsync(const AppendEntityMemberRequest& request, const AppendEntityMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, appendEntityMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::AppendEntityMemberOutcomeCallable ChatbotClient::appendEntityMemberCallable(const AppendEntityMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->appendEntityMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribePerspectiveOutcome ChatbotClient::describePerspective(const DescribePerspectiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePerspectiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePerspectiveOutcome(DescribePerspectiveResult(outcome.result())); + else + return DescribePerspectiveOutcome(outcome.error()); +} + +void ChatbotClient::describePerspectiveAsync(const DescribePerspectiveRequest& request, const DescribePerspectiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePerspective(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribePerspectiveOutcomeCallable ChatbotClient::describePerspectiveCallable(const DescribePerspectiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePerspective(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::UpdateDialogOutcome ChatbotClient::updateDialog(const UpdateDialogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDialogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDialogOutcome(UpdateDialogResult(outcome.result())); + else + return UpdateDialogOutcome(outcome.error()); +} + +void ChatbotClient::updateDialogAsync(const UpdateDialogRequest& request, const UpdateDialogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDialog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdateDialogOutcomeCallable ChatbotClient::updateDialogCallable(const UpdateDialogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDialog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribeIntentOutcome ChatbotClient::describeIntent(const DescribeIntentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIntentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIntentOutcome(DescribeIntentResult(outcome.result())); + else + return DescribeIntentOutcome(outcome.error()); +} + +void ChatbotClient::describeIntentAsync(const DescribeIntentRequest& request, const DescribeIntentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIntent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribeIntentOutcomeCallable ChatbotClient::describeIntentCallable(const DescribeIntentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIntent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QueryDialogsOutcome ChatbotClient::queryDialogs(const QueryDialogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDialogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDialogsOutcome(QueryDialogsResult(outcome.result())); + else + return QueryDialogsOutcome(outcome.error()); +} + +void ChatbotClient::queryDialogsAsync(const QueryDialogsRequest& request, const QueryDialogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDialogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QueryDialogsOutcomeCallable ChatbotClient::queryDialogsCallable(const QueryDialogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDialogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::CreateDialogOutcome ChatbotClient::createDialog(const CreateDialogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDialogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDialogOutcome(CreateDialogResult(outcome.result())); + else + return CreateDialogOutcome(outcome.error()); +} + +void ChatbotClient::createDialogAsync(const CreateDialogRequest& request, const CreateDialogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDialog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::CreateDialogOutcomeCallable ChatbotClient::createDialogCallable(const CreateDialogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDialog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QueryCoreWordsOutcome ChatbotClient::queryCoreWords(const QueryCoreWordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCoreWordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCoreWordsOutcome(QueryCoreWordsResult(outcome.result())); + else + return QueryCoreWordsOutcome(outcome.error()); +} + +void ChatbotClient::queryCoreWordsAsync(const QueryCoreWordsRequest& request, const QueryCoreWordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCoreWords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QueryCoreWordsOutcomeCallable ChatbotClient::queryCoreWordsCallable(const QueryCoreWordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCoreWords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::UpdateCoreWordOutcome ChatbotClient::updateCoreWord(const UpdateCoreWordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCoreWordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCoreWordOutcome(UpdateCoreWordResult(outcome.result())); + else + return UpdateCoreWordOutcome(outcome.error()); +} + +void ChatbotClient::updateCoreWordAsync(const UpdateCoreWordRequest& request, const UpdateCoreWordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCoreWord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdateCoreWordOutcomeCallable ChatbotClient::updateCoreWordCallable(const UpdateCoreWordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCoreWord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::UpdateCategoryOutcome ChatbotClient::updateCategory(const UpdateCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCategoryOutcome(UpdateCategoryResult(outcome.result())); + else + return UpdateCategoryOutcome(outcome.error()); +} + +void ChatbotClient::updateCategoryAsync(const UpdateCategoryRequest& request, const UpdateCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdateCategoryOutcomeCallable ChatbotClient::updateCategoryCallable(const UpdateCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::UpdateEntityOutcome ChatbotClient::updateEntity(const UpdateEntityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEntityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEntityOutcome(UpdateEntityResult(outcome.result())); + else + return UpdateEntityOutcome(outcome.error()); +} + +void ChatbotClient::updateEntityAsync(const UpdateEntityRequest& request, const UpdateEntityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEntity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdateEntityOutcomeCallable ChatbotClient::updateEntityCallable(const UpdateEntityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEntity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::MoveKnowledgeCategoryOutcome ChatbotClient::moveKnowledgeCategory(const MoveKnowledgeCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MoveKnowledgeCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MoveKnowledgeCategoryOutcome(MoveKnowledgeCategoryResult(outcome.result())); + else + return MoveKnowledgeCategoryOutcome(outcome.error()); +} + +void ChatbotClient::moveKnowledgeCategoryAsync(const MoveKnowledgeCategoryRequest& request, const MoveKnowledgeCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, moveKnowledgeCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::MoveKnowledgeCategoryOutcomeCallable ChatbotClient::moveKnowledgeCategoryCallable(const MoveKnowledgeCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->moveKnowledgeCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DeleteCoreWordOutcome ChatbotClient::deleteCoreWord(const DeleteCoreWordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCoreWordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCoreWordOutcome(DeleteCoreWordResult(outcome.result())); + else + return DeleteCoreWordOutcome(outcome.error()); +} + +void ChatbotClient::deleteCoreWordAsync(const DeleteCoreWordRequest& request, const DeleteCoreWordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCoreWord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DeleteCoreWordOutcomeCallable ChatbotClient::deleteCoreWordCallable(const DeleteCoreWordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCoreWord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::UpdatePerspectiveOutcome ChatbotClient::updatePerspective(const UpdatePerspectiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePerspectiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePerspectiveOutcome(UpdatePerspectiveResult(outcome.result())); + else + return UpdatePerspectiveOutcome(outcome.error()); +} + +void ChatbotClient::updatePerspectiveAsync(const UpdatePerspectiveRequest& request, const UpdatePerspectiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePerspective(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdatePerspectiveOutcomeCallable ChatbotClient::updatePerspectiveCallable(const UpdatePerspectiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePerspective(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::CreateIntentOutcome ChatbotClient::createIntent(const CreateIntentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIntentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIntentOutcome(CreateIntentResult(outcome.result())); + else + return CreateIntentOutcome(outcome.error()); +} + +void ChatbotClient::createIntentAsync(const CreateIntentRequest& request, const CreateIntentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIntent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::CreateIntentOutcomeCallable ChatbotClient::createIntentCallable(const CreateIntentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIntent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QueryCategoriesOutcome ChatbotClient::queryCategories(const QueryCategoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCategoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCategoriesOutcome(QueryCategoriesResult(outcome.result())); + else + return QueryCategoriesOutcome(outcome.error()); +} + +void ChatbotClient::queryCategoriesAsync(const QueryCategoriesRequest& request, const QueryCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCategories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QueryCategoriesOutcomeCallable ChatbotClient::queryCategoriesCallable(const QueryCategoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCategories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QueryKnowledgesOutcome ChatbotClient::queryKnowledges(const QueryKnowledgesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryKnowledgesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryKnowledgesOutcome(QueryKnowledgesResult(outcome.result())); + else + return QueryKnowledgesOutcome(outcome.error()); +} + +void ChatbotClient::queryKnowledgesAsync(const QueryKnowledgesRequest& request, const QueryKnowledgesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryKnowledges(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QueryKnowledgesOutcomeCallable ChatbotClient::queryKnowledgesCallable(const QueryKnowledgesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryKnowledges(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DeleteDialogOutcome ChatbotClient::deleteDialog(const DeleteDialogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDialogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDialogOutcome(DeleteDialogResult(outcome.result())); + else + return DeleteDialogOutcome(outcome.error()); +} + +void ChatbotClient::deleteDialogAsync(const DeleteDialogRequest& request, const DeleteDialogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDialog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DeleteDialogOutcomeCallable ChatbotClient::deleteDialogCallable(const DeleteDialogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDialog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribeDialogOutcome ChatbotClient::describeDialog(const DescribeDialogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDialogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDialogOutcome(DescribeDialogResult(outcome.result())); + else + return DescribeDialogOutcome(outcome.error()); +} + +void ChatbotClient::describeDialogAsync(const DescribeDialogRequest& request, const DescribeDialogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDialog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribeDialogOutcomeCallable ChatbotClient::describeDialogCallable(const DescribeDialogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDialog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::UpdateIntentOutcome ChatbotClient::updateIntent(const UpdateIntentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIntentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIntentOutcome(UpdateIntentResult(outcome.result())); + else + return UpdateIntentOutcome(outcome.error()); +} + +void ChatbotClient::updateIntentAsync(const UpdateIntentRequest& request, const UpdateIntentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIntent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdateIntentOutcomeCallable ChatbotClient::updateIntentCallable(const UpdateIntentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIntent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::RemoveSynonymOutcome ChatbotClient::removeSynonym(const RemoveSynonymRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSynonymOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSynonymOutcome(RemoveSynonymResult(outcome.result())); + else + return RemoveSynonymOutcome(outcome.error()); +} + +void ChatbotClient::removeSynonymAsync(const RemoveSynonymRequest& request, const RemoveSynonymAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSynonym(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::RemoveSynonymOutcomeCallable ChatbotClient::removeSynonymCallable(const RemoveSynonymRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSynonym(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribeDialogFlowOutcome ChatbotClient::describeDialogFlow(const DescribeDialogFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDialogFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDialogFlowOutcome(DescribeDialogFlowResult(outcome.result())); + else + return DescribeDialogFlowOutcome(outcome.error()); +} + +void ChatbotClient::describeDialogFlowAsync(const DescribeDialogFlowRequest& request, const DescribeDialogFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDialogFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribeDialogFlowOutcomeCallable ChatbotClient::describeDialogFlowCallable(const DescribeDialogFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDialogFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::ActivatePerspectiveOutcome ChatbotClient::activatePerspective(const ActivatePerspectiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActivatePerspectiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivatePerspectiveOutcome(ActivatePerspectiveResult(outcome.result())); + else + return ActivatePerspectiveOutcome(outcome.error()); +} + +void ChatbotClient::activatePerspectiveAsync(const ActivatePerspectiveRequest& request, const ActivatePerspectiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activatePerspective(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::ActivatePerspectiveOutcomeCallable ChatbotClient::activatePerspectiveCallable(const ActivatePerspectiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activatePerspective(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribeKnowledgeOutcome ChatbotClient::describeKnowledge(const DescribeKnowledgeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeKnowledgeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeKnowledgeOutcome(DescribeKnowledgeResult(outcome.result())); + else + return DescribeKnowledgeOutcome(outcome.error()); +} + +void ChatbotClient::describeKnowledgeAsync(const DescribeKnowledgeRequest& request, const DescribeKnowledgeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeKnowledge(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribeKnowledgeOutcomeCallable ChatbotClient::describeKnowledgeCallable(const DescribeKnowledgeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeKnowledge(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QueryPerspectivesOutcome ChatbotClient::queryPerspectives(const QueryPerspectivesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPerspectivesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPerspectivesOutcome(QueryPerspectivesResult(outcome.result())); + else + return QueryPerspectivesOutcome(outcome.error()); +} + +void ChatbotClient::queryPerspectivesAsync(const QueryPerspectivesRequest& request, const QueryPerspectivesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPerspectives(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QueryPerspectivesOutcomeCallable ChatbotClient::queryPerspectivesCallable(const QueryPerspectivesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPerspectives(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::CreatePerspectiveOutcome ChatbotClient::createPerspective(const CreatePerspectiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePerspectiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePerspectiveOutcome(CreatePerspectiveResult(outcome.result())); + else + return CreatePerspectiveOutcome(outcome.error()); +} + +void ChatbotClient::createPerspectiveAsync(const CreatePerspectiveRequest& request, const CreatePerspectiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPerspective(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::CreatePerspectiveOutcomeCallable ChatbotClient::createPerspectiveCallable(const CreatePerspectiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPerspective(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DeleteEntityOutcome ChatbotClient::deleteEntity(const DeleteEntityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEntityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEntityOutcome(DeleteEntityResult(outcome.result())); + else + return DeleteEntityOutcome(outcome.error()); +} + +void ChatbotClient::deleteEntityAsync(const DeleteEntityRequest& request, const DeleteEntityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEntity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DeleteEntityOutcomeCallable ChatbotClient::deleteEntityCallable(const DeleteEntityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEntity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::RemoveEntityMemberOutcome ChatbotClient::removeEntityMember(const RemoveEntityMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveEntityMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveEntityMemberOutcome(RemoveEntityMemberResult(outcome.result())); + else + return RemoveEntityMemberOutcome(outcome.error()); +} + +void ChatbotClient::removeEntityMemberAsync(const RemoveEntityMemberRequest& request, const RemoveEntityMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeEntityMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::RemoveEntityMemberOutcomeCallable ChatbotClient::removeEntityMemberCallable(const RemoveEntityMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeEntityMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::TestDialogFlowOutcome ChatbotClient::testDialogFlow(const TestDialogFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TestDialogFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TestDialogFlowOutcome(TestDialogFlowResult(outcome.result())); + else + return TestDialogFlowOutcome(outcome.error()); +} + +void ChatbotClient::testDialogFlowAsync(const TestDialogFlowRequest& request, const TestDialogFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, testDialogFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::TestDialogFlowOutcomeCallable ChatbotClient::testDialogFlowCallable(const TestDialogFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->testDialogFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::FeedbackOutcome ChatbotClient::feedback(const FeedbackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FeedbackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FeedbackOutcome(FeedbackResult(outcome.result())); + else + return FeedbackOutcome(outcome.error()); +} + +void ChatbotClient::feedbackAsync(const FeedbackRequest& request, const FeedbackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, feedback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::FeedbackOutcomeCallable ChatbotClient::feedbackCallable(const FeedbackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->feedback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DisableKnowledgeOutcome ChatbotClient::disableKnowledge(const DisableKnowledgeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableKnowledgeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableKnowledgeOutcome(DisableKnowledgeResult(outcome.result())); + else + return DisableKnowledgeOutcome(outcome.error()); +} + +void ChatbotClient::disableKnowledgeAsync(const DisableKnowledgeRequest& request, const DisableKnowledgeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableKnowledge(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DisableKnowledgeOutcomeCallable ChatbotClient::disableKnowledgeCallable(const DisableKnowledgeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableKnowledge(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ChatbotClient::ChatOutcome ChatbotClient::chat(const ChatRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,3 +1383,471 @@ ChatbotClient::ChatOutcomeCallable ChatbotClient::chatCallable(const ChatRequest return task->get_future(); } +ChatbotClient::UpdateKnowledgeOutcome ChatbotClient::updateKnowledge(const UpdateKnowledgeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateKnowledgeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateKnowledgeOutcome(UpdateKnowledgeResult(outcome.result())); + else + return UpdateKnowledgeOutcome(outcome.error()); +} + +void ChatbotClient::updateKnowledgeAsync(const UpdateKnowledgeRequest& request, const UpdateKnowledgeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateKnowledge(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdateKnowledgeOutcomeCallable ChatbotClient::updateKnowledgeCallable(const UpdateKnowledgeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateKnowledge(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::CreateKnowledgeOutcome ChatbotClient::createKnowledge(const CreateKnowledgeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateKnowledgeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateKnowledgeOutcome(CreateKnowledgeResult(outcome.result())); + else + return CreateKnowledgeOutcome(outcome.error()); +} + +void ChatbotClient::createKnowledgeAsync(const CreateKnowledgeRequest& request, const CreateKnowledgeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createKnowledge(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::CreateKnowledgeOutcomeCallable ChatbotClient::createKnowledgeCallable(const CreateKnowledgeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createKnowledge(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DeleteIntentOutcome ChatbotClient::deleteIntent(const DeleteIntentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIntentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIntentOutcome(DeleteIntentResult(outcome.result())); + else + return DeleteIntentOutcome(outcome.error()); +} + +void ChatbotClient::deleteIntentAsync(const DeleteIntentRequest& request, const DeleteIntentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIntent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DeleteIntentOutcomeCallable ChatbotClient::deleteIntentCallable(const DeleteIntentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIntent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DeleteKnowledgeOutcome ChatbotClient::deleteKnowledge(const DeleteKnowledgeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteKnowledgeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteKnowledgeOutcome(DeleteKnowledgeResult(outcome.result())); + else + return DeleteKnowledgeOutcome(outcome.error()); +} + +void ChatbotClient::deleteKnowledgeAsync(const DeleteKnowledgeRequest& request, const DeleteKnowledgeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteKnowledge(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DeleteKnowledgeOutcomeCallable ChatbotClient::deleteKnowledgeCallable(const DeleteKnowledgeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteKnowledge(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DisableDialogFlowOutcome ChatbotClient::disableDialogFlow(const DisableDialogFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableDialogFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableDialogFlowOutcome(DisableDialogFlowResult(outcome.result())); + else + return DisableDialogFlowOutcome(outcome.error()); +} + +void ChatbotClient::disableDialogFlowAsync(const DisableDialogFlowRequest& request, const DisableDialogFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableDialogFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DisableDialogFlowOutcomeCallable ChatbotClient::disableDialogFlowCallable(const DisableDialogFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableDialogFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::PublishDialogFlowOutcome ChatbotClient::publishDialogFlow(const PublishDialogFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishDialogFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishDialogFlowOutcome(PublishDialogFlowResult(outcome.result())); + else + return PublishDialogFlowOutcome(outcome.error()); +} + +void ChatbotClient::publishDialogFlowAsync(const PublishDialogFlowRequest& request, const PublishDialogFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishDialogFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::PublishDialogFlowOutcomeCallable ChatbotClient::publishDialogFlowCallable(const PublishDialogFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishDialogFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::CreateCoreWordOutcome ChatbotClient::createCoreWord(const CreateCoreWordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCoreWordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCoreWordOutcome(CreateCoreWordResult(outcome.result())); + else + return CreateCoreWordOutcome(outcome.error()); +} + +void ChatbotClient::createCoreWordAsync(const CreateCoreWordRequest& request, const CreateCoreWordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCoreWord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::CreateCoreWordOutcomeCallable ChatbotClient::createCoreWordCallable(const CreateCoreWordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCoreWord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QuerySystemEntitiesOutcome ChatbotClient::querySystemEntities(const QuerySystemEntitiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySystemEntitiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySystemEntitiesOutcome(QuerySystemEntitiesResult(outcome.result())); + else + return QuerySystemEntitiesOutcome(outcome.error()); +} + +void ChatbotClient::querySystemEntitiesAsync(const QuerySystemEntitiesRequest& request, const QuerySystemEntitiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySystemEntities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QuerySystemEntitiesOutcomeCallable ChatbotClient::querySystemEntitiesCallable(const QuerySystemEntitiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySystemEntities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribeCoreWordOutcome ChatbotClient::describeCoreWord(const DescribeCoreWordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCoreWordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCoreWordOutcome(DescribeCoreWordResult(outcome.result())); + else + return DescribeCoreWordOutcome(outcome.error()); +} + +void ChatbotClient::describeCoreWordAsync(const DescribeCoreWordRequest& request, const DescribeCoreWordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCoreWord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribeCoreWordOutcomeCallable ChatbotClient::describeCoreWordCallable(const DescribeCoreWordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCoreWord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::QueryEntitiesOutcome ChatbotClient::queryEntities(const QueryEntitiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryEntitiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryEntitiesOutcome(QueryEntitiesResult(outcome.result())); + else + return QueryEntitiesOutcome(outcome.error()); +} + +void ChatbotClient::queryEntitiesAsync(const QueryEntitiesRequest& request, const QueryEntitiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryEntities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::QueryEntitiesOutcomeCallable ChatbotClient::queryEntitiesCallable(const QueryEntitiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryEntities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::UpdateDialogFlowOutcome ChatbotClient::updateDialogFlow(const UpdateDialogFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDialogFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDialogFlowOutcome(UpdateDialogFlowResult(outcome.result())); + else + return UpdateDialogFlowOutcome(outcome.error()); +} + +void ChatbotClient::updateDialogFlowAsync(const UpdateDialogFlowRequest& request, const UpdateDialogFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDialogFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::UpdateDialogFlowOutcomeCallable ChatbotClient::updateDialogFlowCallable(const UpdateDialogFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDialogFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::CreateCategoryOutcome ChatbotClient::createCategory(const CreateCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCategoryOutcome(CreateCategoryResult(outcome.result())); + else + return CreateCategoryOutcome(outcome.error()); +} + +void ChatbotClient::createCategoryAsync(const CreateCategoryRequest& request, const CreateCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::CreateCategoryOutcomeCallable ChatbotClient::createCategoryCallable(const CreateCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ChatbotClient::DescribeEntitiesOutcome ChatbotClient::describeEntities(const DescribeEntitiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEntitiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEntitiesOutcome(DescribeEntitiesResult(outcome.result())); + else + return DescribeEntitiesOutcome(outcome.error()); +} + +void ChatbotClient::describeEntitiesAsync(const DescribeEntitiesRequest& request, const DescribeEntitiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEntities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ChatbotClient::DescribeEntitiesOutcomeCallable ChatbotClient::describeEntitiesCallable(const DescribeEntitiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEntities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/chatbot/src/model/ActivatePerspectiveRequest.cc b/chatbot/src/model/ActivatePerspectiveRequest.cc new file mode 100644 index 000000000..6c7b25fc5 --- /dev/null +++ b/chatbot/src/model/ActivatePerspectiveRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::ActivatePerspectiveRequest; + +ActivatePerspectiveRequest::ActivatePerspectiveRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "ActivatePerspective") +{} + +ActivatePerspectiveRequest::~ActivatePerspectiveRequest() +{} + +std::string ActivatePerspectiveRequest::getPerspectiveId()const +{ + return perspectiveId_; +} + +void ActivatePerspectiveRequest::setPerspectiveId(const std::string& perspectiveId) +{ + perspectiveId_ = perspectiveId; + setCoreParameter("PerspectiveId", perspectiveId); +} + diff --git a/chatbot/src/model/ActivatePerspectiveResult.cc b/chatbot/src/model/ActivatePerspectiveResult.cc new file mode 100644 index 000000000..f2c4710e5 --- /dev/null +++ b/chatbot/src/model/ActivatePerspectiveResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +ActivatePerspectiveResult::ActivatePerspectiveResult() : + ServiceResult() +{} + +ActivatePerspectiveResult::ActivatePerspectiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivatePerspectiveResult::~ActivatePerspectiveResult() +{} + +void ActivatePerspectiveResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/AddSynonymRequest.cc b/chatbot/src/model/AddSynonymRequest.cc new file mode 100644 index 000000000..9987587c4 --- /dev/null +++ b/chatbot/src/model/AddSynonymRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::AddSynonymRequest; + +AddSynonymRequest::AddSynonymRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "AddSynonym") +{} + +AddSynonymRequest::~AddSynonymRequest() +{} + +std::string AddSynonymRequest::getSynonym()const +{ + return synonym_; +} + +void AddSynonymRequest::setSynonym(const std::string& synonym) +{ + synonym_ = synonym; + setCoreParameter("Synonym", synonym); +} + +std::string AddSynonymRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void AddSynonymRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + diff --git a/chatbot/src/model/AddSynonymResult.cc b/chatbot/src/model/AddSynonymResult.cc new file mode 100644 index 000000000..4f88844f7 --- /dev/null +++ b/chatbot/src/model/AddSynonymResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +AddSynonymResult::AddSynonymResult() : + ServiceResult() +{} + +AddSynonymResult::AddSynonymResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSynonymResult::~AddSynonymResult() +{} + +void AddSynonymResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/AppendEntityMemberRequest.cc b/chatbot/src/model/AppendEntityMemberRequest.cc new file mode 100644 index 000000000..5d58cc1dc --- /dev/null +++ b/chatbot/src/model/AppendEntityMemberRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::AppendEntityMemberRequest; + +AppendEntityMemberRequest::AppendEntityMemberRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "AppendEntityMember") +{} + +AppendEntityMemberRequest::~AppendEntityMemberRequest() +{} + +std::string AppendEntityMemberRequest::getMember()const +{ + return member_; +} + +void AppendEntityMemberRequest::setMember(const std::string& member) +{ + member_ = member; + setCoreParameter("Member", member); +} + +long AppendEntityMemberRequest::getEntityId()const +{ + return entityId_; +} + +void AppendEntityMemberRequest::setEntityId(long entityId) +{ + entityId_ = entityId; + setCoreParameter("EntityId", std::to_string(entityId)); +} + +std::string AppendEntityMemberRequest::getApplyType()const +{ + return applyType_; +} + +void AppendEntityMemberRequest::setApplyType(const std::string& applyType) +{ + applyType_ = applyType; + setCoreParameter("ApplyType", applyType); +} + diff --git a/chatbot/src/model/AppendEntityMemberResult.cc b/chatbot/src/model/AppendEntityMemberResult.cc new file mode 100644 index 000000000..0e736b7a3 --- /dev/null +++ b/chatbot/src/model/AppendEntityMemberResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +AppendEntityMemberResult::AppendEntityMemberResult() : + ServiceResult() +{} + +AppendEntityMemberResult::AppendEntityMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AppendEntityMemberResult::~AppendEntityMemberResult() +{} + +void AppendEntityMemberResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["EntityId"].isNull()) + entityId_ = value["EntityId"].asString(); + +} + +std::string AppendEntityMemberResult::getEntityId()const +{ + return entityId_; +} + diff --git a/chatbot/src/model/ChatRequest.cc b/chatbot/src/model/ChatRequest.cc index de40d46da..62069fad6 100644 --- a/chatbot/src/model/ChatRequest.cc +++ b/chatbot/src/model/ChatRequest.cc @@ -33,7 +33,7 @@ std::string ChatRequest::getKnowledgeId()const void ChatRequest::setKnowledgeId(const std::string& knowledgeId) { knowledgeId_ = knowledgeId; - setParameter("KnowledgeId", knowledgeId); + setCoreParameter("KnowledgeId", knowledgeId); } std::string ChatRequest::getSenderId()const @@ -44,7 +44,7 @@ std::string ChatRequest::getSenderId()const void ChatRequest::setSenderId(const std::string& senderId) { senderId_ = senderId; - setParameter("SenderId", senderId); + setCoreParameter("SenderId", senderId); } std::string ChatRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string ChatRequest::getInstanceId()const void ChatRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ChatRequest::getSenderNick()const @@ -66,7 +66,7 @@ std::string ChatRequest::getSenderNick()const void ChatRequest::setSenderNick(const std::string& senderNick) { senderNick_ = senderNick; - setParameter("SenderNick", senderNick); + setCoreParameter("SenderNick", senderNick); } std::vector ChatRequest::getPerspective()const @@ -78,7 +78,18 @@ void ChatRequest::setPerspective(const std::vector& perspective) { perspective_ = perspective; for(int i = 0; i!= perspective.size(); i++) - setParameter("Perspective."+ std::to_string(i), perspective.at(i)); + setCoreParameter("Perspective."+ std::to_string(i), perspective.at(i)); +} + +bool ChatRequest::getRecommend()const +{ + return recommend_; +} + +void ChatRequest::setRecommend(bool recommend) +{ + recommend_ = recommend; + setCoreParameter("Recommend", recommend ? "true" : "false"); } std::string ChatRequest::getSessionId()const @@ -89,7 +100,7 @@ std::string ChatRequest::getSessionId()const void ChatRequest::setSessionId(const std::string& sessionId) { sessionId_ = sessionId; - setParameter("SessionId", sessionId); + setCoreParameter("SessionId", sessionId); } std::string ChatRequest::getTag()const @@ -100,7 +111,7 @@ std::string ChatRequest::getTag()const void ChatRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } std::string ChatRequest::getUtterance()const @@ -111,7 +122,7 @@ std::string ChatRequest::getUtterance()const void ChatRequest::setUtterance(const std::string& utterance) { utterance_ = utterance; - setParameter("Utterance", utterance); + setCoreParameter("Utterance", utterance); } std::string ChatRequest::getAccessKeyId()const @@ -122,6 +133,6 @@ std::string ChatRequest::getAccessKeyId()const void ChatRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/chatbot/src/model/ChatResult.cc b/chatbot/src/model/ChatResult.cc index c1395831c..82b933548 100644 --- a/chatbot/src/model/ChatResult.cc +++ b/chatbot/src/model/ChatResult.cc @@ -35,10 +35,13 @@ ChatResult::~ChatResult() void ChatResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMessages = value["Messages"]["Message"]; for (auto value : allMessages) @@ -67,6 +70,8 @@ void ChatResult::parse(const std::string &payload) messagesObject.text.content = textNode["Content"].asString(); if(!textNode["AnswerSource"].isNull()) messagesObject.text.answerSource = textNode["AnswerSource"].asString(); + if(!textNode["MetaData"].isNull()) + messagesObject.text.metaData = textNode["MetaData"].asString(); auto knowledgeNode = value["Knowledge"]; if(!knowledgeNode["Id"].isNull()) messagesObject.knowledge.id = knowledgeNode["Id"].asString(); diff --git a/chatbot/src/model/CreateCategoryRequest.cc b/chatbot/src/model/CreateCategoryRequest.cc new file mode 100644 index 000000000..1c7e03cc8 --- /dev/null +++ b/chatbot/src/model/CreateCategoryRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::CreateCategoryRequest; + +CreateCategoryRequest::CreateCategoryRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "CreateCategory") +{} + +CreateCategoryRequest::~CreateCategoryRequest() +{} + +long CreateCategoryRequest::getParentCategoryId()const +{ + return parentCategoryId_; +} + +void CreateCategoryRequest::setParentCategoryId(long parentCategoryId) +{ + parentCategoryId_ = parentCategoryId; + setCoreParameter("ParentCategoryId", std::to_string(parentCategoryId)); +} + +std::string CreateCategoryRequest::getName()const +{ + return name_; +} + +void CreateCategoryRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/chatbot/src/model/CreateCategoryResult.cc b/chatbot/src/model/CreateCategoryResult.cc new file mode 100644 index 000000000..75f2c19e6 --- /dev/null +++ b/chatbot/src/model/CreateCategoryResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +CreateCategoryResult::CreateCategoryResult() : + ServiceResult() +{} + +CreateCategoryResult::CreateCategoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCategoryResult::~CreateCategoryResult() +{} + +void CreateCategoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["CategoryId"].isNull()) + categoryId_ = std::stol(value["CategoryId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +long CreateCategoryResult::getCategoryId()const +{ + return categoryId_; +} + +bool CreateCategoryResult::getSuccess()const +{ + return success_; +} + diff --git a/chatbot/src/model/CreateCoreWordRequest.cc b/chatbot/src/model/CreateCoreWordRequest.cc new file mode 100644 index 000000000..85ac13038 --- /dev/null +++ b/chatbot/src/model/CreateCoreWordRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::CreateCoreWordRequest; + +CreateCoreWordRequest::CreateCoreWordRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "CreateCoreWord") +{} + +CreateCoreWordRequest::~CreateCoreWordRequest() +{} + +std::string CreateCoreWordRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void CreateCoreWordRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + diff --git a/chatbot/src/model/CreateCoreWordResult.cc b/chatbot/src/model/CreateCoreWordResult.cc new file mode 100644 index 000000000..fdf0b75dc --- /dev/null +++ b/chatbot/src/model/CreateCoreWordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +CreateCoreWordResult::CreateCoreWordResult() : + ServiceResult() +{} + +CreateCoreWordResult::CreateCoreWordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCoreWordResult::~CreateCoreWordResult() +{} + +void CreateCoreWordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["CoreWordCode"].isNull()) + coreWordCode_ = value["CoreWordCode"].asString(); + +} + +std::string CreateCoreWordResult::getCoreWordCode()const +{ + return coreWordCode_; +} + diff --git a/chatbot/src/model/CreateDialogRequest.cc b/chatbot/src/model/CreateDialogRequest.cc new file mode 100644 index 000000000..03c2ec8a3 --- /dev/null +++ b/chatbot/src/model/CreateDialogRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::CreateDialogRequest; + +CreateDialogRequest::CreateDialogRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "CreateDialog") +{} + +CreateDialogRequest::~CreateDialogRequest() +{} + +std::string CreateDialogRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateDialogRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateDialogRequest::getDescription()const +{ + return description_; +} + +void CreateDialogRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateDialogRequest::getDialogName()const +{ + return dialogName_; +} + +void CreateDialogRequest::setDialogName(const std::string& dialogName) +{ + dialogName_ = dialogName; + setCoreParameter("DialogName", dialogName); +} + diff --git a/chatbot/src/model/CreateDialogResult.cc b/chatbot/src/model/CreateDialogResult.cc new file mode 100644 index 000000000..61867207c --- /dev/null +++ b/chatbot/src/model/CreateDialogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +CreateDialogResult::CreateDialogResult() : + ServiceResult() +{} + +CreateDialogResult::CreateDialogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDialogResult::~CreateDialogResult() +{} + +void CreateDialogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DialogId"].isNull()) + dialogId_ = value["DialogId"].asString(); + +} + +std::string CreateDialogResult::getDialogId()const +{ + return dialogId_; +} + diff --git a/chatbot/src/model/CreateEntityRequest.cc b/chatbot/src/model/CreateEntityRequest.cc new file mode 100644 index 000000000..b685f7c79 --- /dev/null +++ b/chatbot/src/model/CreateEntityRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::CreateEntityRequest; + +CreateEntityRequest::CreateEntityRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "CreateEntity") +{} + +CreateEntityRequest::~CreateEntityRequest() +{} + +std::string CreateEntityRequest::getRegex()const +{ + return regex_; +} + +void CreateEntityRequest::setRegex(const std::string& regex) +{ + regex_ = regex; + setCoreParameter("Regex", regex); +} + +std::string CreateEntityRequest::getEntityType()const +{ + return entityType_; +} + +void CreateEntityRequest::setEntityType(const std::string& entityType) +{ + entityType_ = entityType; + setCoreParameter("EntityType", entityType); +} + +std::string CreateEntityRequest::getMembers()const +{ + return members_; +} + +void CreateEntityRequest::setMembers(const std::string& members) +{ + members_ = members; + setCoreParameter("Members", members); +} + +std::string CreateEntityRequest::getEntityName()const +{ + return entityName_; +} + +void CreateEntityRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setCoreParameter("EntityName", entityName); +} + +long CreateEntityRequest::getDialogId()const +{ + return dialogId_; +} + +void CreateEntityRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/CreateEntityResult.cc b/chatbot/src/model/CreateEntityResult.cc new file mode 100644 index 000000000..0167c0ad0 --- /dev/null +++ b/chatbot/src/model/CreateEntityResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +CreateEntityResult::CreateEntityResult() : + ServiceResult() +{} + +CreateEntityResult::CreateEntityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEntityResult::~CreateEntityResult() +{} + +void CreateEntityResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["EntityId"].isNull()) + entityId_ = value["EntityId"].asString(); + +} + +std::string CreateEntityResult::getEntityId()const +{ + return entityId_; +} + diff --git a/chatbot/src/model/CreateIntentRequest.cc b/chatbot/src/model/CreateIntentRequest.cc new file mode 100644 index 000000000..b5c069461 --- /dev/null +++ b/chatbot/src/model/CreateIntentRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::CreateIntentRequest; + +CreateIntentRequest::CreateIntentRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "CreateIntent") +{} + +CreateIntentRequest::~CreateIntentRequest() +{} + +std::string CreateIntentRequest::getIntentDefinition()const +{ + return intentDefinition_; +} + +void CreateIntentRequest::setIntentDefinition(const std::string& intentDefinition) +{ + intentDefinition_ = intentDefinition; + setCoreParameter("IntentDefinition", intentDefinition); +} + +long CreateIntentRequest::getDialogId()const +{ + return dialogId_; +} + +void CreateIntentRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/CreateIntentResult.cc b/chatbot/src/model/CreateIntentResult.cc new file mode 100644 index 000000000..1f3849817 --- /dev/null +++ b/chatbot/src/model/CreateIntentResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +CreateIntentResult::CreateIntentResult() : + ServiceResult() +{} + +CreateIntentResult::CreateIntentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIntentResult::~CreateIntentResult() +{} + +void CreateIntentResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["IntentId"].isNull()) + intentId_ = value["IntentId"].asString(); + +} + +std::string CreateIntentResult::getIntentId()const +{ + return intentId_; +} + diff --git a/chatbot/src/model/CreateKnowledgeRequest.cc b/chatbot/src/model/CreateKnowledgeRequest.cc new file mode 100644 index 000000000..c5b1f8c71 --- /dev/null +++ b/chatbot/src/model/CreateKnowledgeRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::CreateKnowledgeRequest; + +CreateKnowledgeRequest::CreateKnowledgeRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "CreateKnowledge") +{} + +CreateKnowledgeRequest::~CreateKnowledgeRequest() +{} + +std::string CreateKnowledgeRequest::getKnowledge()const +{ + return knowledge_; +} + +void CreateKnowledgeRequest::setKnowledge(const std::string& knowledge) +{ + knowledge_ = knowledge; + setCoreParameter("Knowledge", knowledge); +} + diff --git a/chatbot/src/model/CreateKnowledgeResult.cc b/chatbot/src/model/CreateKnowledgeResult.cc new file mode 100644 index 000000000..2b8139bb1 --- /dev/null +++ b/chatbot/src/model/CreateKnowledgeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +CreateKnowledgeResult::CreateKnowledgeResult() : + ServiceResult() +{} + +CreateKnowledgeResult::CreateKnowledgeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateKnowledgeResult::~CreateKnowledgeResult() +{} + +void CreateKnowledgeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["KnowledgeId"].isNull()) + knowledgeId_ = std::stol(value["KnowledgeId"].asString()); + +} + +long CreateKnowledgeResult::getKnowledgeId()const +{ + return knowledgeId_; +} + diff --git a/chatbot/src/model/CreatePerspectiveRequest.cc b/chatbot/src/model/CreatePerspectiveRequest.cc new file mode 100644 index 000000000..08b5b3365 --- /dev/null +++ b/chatbot/src/model/CreatePerspectiveRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::CreatePerspectiveRequest; + +CreatePerspectiveRequest::CreatePerspectiveRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "CreatePerspective") +{} + +CreatePerspectiveRequest::~CreatePerspectiveRequest() +{} + +std::string CreatePerspectiveRequest::getName()const +{ + return name_; +} + +void CreatePerspectiveRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/chatbot/src/model/CreatePerspectiveResult.cc b/chatbot/src/model/CreatePerspectiveResult.cc new file mode 100644 index 000000000..83091d693 --- /dev/null +++ b/chatbot/src/model/CreatePerspectiveResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +CreatePerspectiveResult::CreatePerspectiveResult() : + ServiceResult() +{} + +CreatePerspectiveResult::CreatePerspectiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePerspectiveResult::~CreatePerspectiveResult() +{} + +void CreatePerspectiveResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["PerspectiveId"].isNull()) + perspectiveId_ = value["PerspectiveId"].asString(); + +} + +std::string CreatePerspectiveResult::getPerspectiveId()const +{ + return perspectiveId_; +} + diff --git a/chatbot/src/model/DeleteCategoryRequest.cc b/chatbot/src/model/DeleteCategoryRequest.cc new file mode 100644 index 000000000..afeb635c9 --- /dev/null +++ b/chatbot/src/model/DeleteCategoryRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DeleteCategoryRequest; + +DeleteCategoryRequest::DeleteCategoryRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DeleteCategory") +{} + +DeleteCategoryRequest::~DeleteCategoryRequest() +{} + +long DeleteCategoryRequest::getCategoryId()const +{ + return categoryId_; +} + +void DeleteCategoryRequest::setCategoryId(long categoryId) +{ + categoryId_ = categoryId; + setCoreParameter("CategoryId", std::to_string(categoryId)); +} + diff --git a/chatbot/src/model/DeleteCategoryResult.cc b/chatbot/src/model/DeleteCategoryResult.cc new file mode 100644 index 000000000..1de90e90c --- /dev/null +++ b/chatbot/src/model/DeleteCategoryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DeleteCategoryResult::DeleteCategoryResult() : + ServiceResult() +{} + +DeleteCategoryResult::DeleteCategoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCategoryResult::~DeleteCategoryResult() +{} + +void DeleteCategoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool DeleteCategoryResult::getSuccess()const +{ + return success_; +} + diff --git a/chatbot/src/model/DeleteCoreWordRequest.cc b/chatbot/src/model/DeleteCoreWordRequest.cc new file mode 100644 index 000000000..fb8287864 --- /dev/null +++ b/chatbot/src/model/DeleteCoreWordRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DeleteCoreWordRequest; + +DeleteCoreWordRequest::DeleteCoreWordRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DeleteCoreWord") +{} + +DeleteCoreWordRequest::~DeleteCoreWordRequest() +{} + +std::string DeleteCoreWordRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void DeleteCoreWordRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + diff --git a/chatbot/src/model/DeleteCoreWordResult.cc b/chatbot/src/model/DeleteCoreWordResult.cc new file mode 100644 index 000000000..4222098ce --- /dev/null +++ b/chatbot/src/model/DeleteCoreWordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DeleteCoreWordResult::DeleteCoreWordResult() : + ServiceResult() +{} + +DeleteCoreWordResult::DeleteCoreWordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCoreWordResult::~DeleteCoreWordResult() +{} + +void DeleteCoreWordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool DeleteCoreWordResult::getSuccess()const +{ + return success_; +} + diff --git a/chatbot/src/model/DeleteDialogRequest.cc b/chatbot/src/model/DeleteDialogRequest.cc new file mode 100644 index 000000000..03afdfbfd --- /dev/null +++ b/chatbot/src/model/DeleteDialogRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DeleteDialogRequest; + +DeleteDialogRequest::DeleteDialogRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DeleteDialog") +{} + +DeleteDialogRequest::~DeleteDialogRequest() +{} + +long DeleteDialogRequest::getDialogId()const +{ + return dialogId_; +} + +void DeleteDialogRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/DeleteDialogResult.cc b/chatbot/src/model/DeleteDialogResult.cc new file mode 100644 index 000000000..168e09860 --- /dev/null +++ b/chatbot/src/model/DeleteDialogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DeleteDialogResult::DeleteDialogResult() : + ServiceResult() +{} + +DeleteDialogResult::DeleteDialogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDialogResult::~DeleteDialogResult() +{} + +void DeleteDialogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/DeleteEntityRequest.cc b/chatbot/src/model/DeleteEntityRequest.cc new file mode 100644 index 000000000..0717cf358 --- /dev/null +++ b/chatbot/src/model/DeleteEntityRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DeleteEntityRequest; + +DeleteEntityRequest::DeleteEntityRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DeleteEntity") +{} + +DeleteEntityRequest::~DeleteEntityRequest() +{} + +long DeleteEntityRequest::getEntityId()const +{ + return entityId_; +} + +void DeleteEntityRequest::setEntityId(long entityId) +{ + entityId_ = entityId; + setCoreParameter("EntityId", std::to_string(entityId)); +} + diff --git a/chatbot/src/model/DeleteEntityResult.cc b/chatbot/src/model/DeleteEntityResult.cc new file mode 100644 index 000000000..dd6fdd68c --- /dev/null +++ b/chatbot/src/model/DeleteEntityResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DeleteEntityResult::DeleteEntityResult() : + ServiceResult() +{} + +DeleteEntityResult::DeleteEntityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEntityResult::~DeleteEntityResult() +{} + +void DeleteEntityResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["EntityId"].isNull()) + entityId_ = value["EntityId"].asString(); + +} + +std::string DeleteEntityResult::getEntityId()const +{ + return entityId_; +} + diff --git a/chatbot/src/model/DeleteIntentRequest.cc b/chatbot/src/model/DeleteIntentRequest.cc new file mode 100644 index 000000000..f62cec6bb --- /dev/null +++ b/chatbot/src/model/DeleteIntentRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DeleteIntentRequest; + +DeleteIntentRequest::DeleteIntentRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DeleteIntent") +{} + +DeleteIntentRequest::~DeleteIntentRequest() +{} + +long DeleteIntentRequest::getIntentId()const +{ + return intentId_; +} + +void DeleteIntentRequest::setIntentId(long intentId) +{ + intentId_ = intentId; + setCoreParameter("IntentId", std::to_string(intentId)); +} + diff --git a/chatbot/src/model/DeleteIntentResult.cc b/chatbot/src/model/DeleteIntentResult.cc new file mode 100644 index 000000000..da6eae30b --- /dev/null +++ b/chatbot/src/model/DeleteIntentResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DeleteIntentResult::DeleteIntentResult() : + ServiceResult() +{} + +DeleteIntentResult::DeleteIntentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIntentResult::~DeleteIntentResult() +{} + +void DeleteIntentResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["IntentId"].isNull()) + intentId_ = value["IntentId"].asString(); + +} + +std::string DeleteIntentResult::getIntentId()const +{ + return intentId_; +} + diff --git a/chatbot/src/model/DeleteKnowledgeRequest.cc b/chatbot/src/model/DeleteKnowledgeRequest.cc new file mode 100644 index 000000000..0e61c88af --- /dev/null +++ b/chatbot/src/model/DeleteKnowledgeRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DeleteKnowledgeRequest; + +DeleteKnowledgeRequest::DeleteKnowledgeRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DeleteKnowledge") +{} + +DeleteKnowledgeRequest::~DeleteKnowledgeRequest() +{} + +long DeleteKnowledgeRequest::getKnowledgeId()const +{ + return knowledgeId_; +} + +void DeleteKnowledgeRequest::setKnowledgeId(long knowledgeId) +{ + knowledgeId_ = knowledgeId; + setCoreParameter("KnowledgeId", std::to_string(knowledgeId)); +} + diff --git a/chatbot/src/model/DeleteKnowledgeResult.cc b/chatbot/src/model/DeleteKnowledgeResult.cc new file mode 100644 index 000000000..0a0fa95de --- /dev/null +++ b/chatbot/src/model/DeleteKnowledgeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DeleteKnowledgeResult::DeleteKnowledgeResult() : + ServiceResult() +{} + +DeleteKnowledgeResult::DeleteKnowledgeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteKnowledgeResult::~DeleteKnowledgeResult() +{} + +void DeleteKnowledgeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/DescribeCategoryRequest.cc b/chatbot/src/model/DescribeCategoryRequest.cc new file mode 100644 index 000000000..4dc7adfe0 --- /dev/null +++ b/chatbot/src/model/DescribeCategoryRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribeCategoryRequest; + +DescribeCategoryRequest::DescribeCategoryRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribeCategory") +{} + +DescribeCategoryRequest::~DescribeCategoryRequest() +{} + +long DescribeCategoryRequest::getCategoryId()const +{ + return categoryId_; +} + +void DescribeCategoryRequest::setCategoryId(long categoryId) +{ + categoryId_ = categoryId; + setCoreParameter("CategoryId", std::to_string(categoryId)); +} + diff --git a/chatbot/src/model/DescribeCategoryResult.cc b/chatbot/src/model/DescribeCategoryResult.cc new file mode 100644 index 000000000..9feb19264 --- /dev/null +++ b/chatbot/src/model/DescribeCategoryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribeCategoryResult::DescribeCategoryResult() : + ServiceResult() +{} + +DescribeCategoryResult::DescribeCategoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCategoryResult::~DescribeCategoryResult() +{} + +void DescribeCategoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ParentCategoryId"].isNull()) + parentCategoryId_ = std::stol(value["ParentCategoryId"].asString()); + if(!value["CategoryId"].isNull()) + categoryId_ = std::stol(value["CategoryId"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + +} + +long DescribeCategoryResult::getCategoryId()const +{ + return categoryId_; +} + +long DescribeCategoryResult::getParentCategoryId()const +{ + return parentCategoryId_; +} + +std::string DescribeCategoryResult::getName()const +{ + return name_; +} + diff --git a/chatbot/src/model/DescribeCoreWordRequest.cc b/chatbot/src/model/DescribeCoreWordRequest.cc new file mode 100644 index 000000000..e8c50e14a --- /dev/null +++ b/chatbot/src/model/DescribeCoreWordRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribeCoreWordRequest; + +DescribeCoreWordRequest::DescribeCoreWordRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribeCoreWord") +{} + +DescribeCoreWordRequest::~DescribeCoreWordRequest() +{} + +std::string DescribeCoreWordRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void DescribeCoreWordRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + diff --git a/chatbot/src/model/DescribeCoreWordResult.cc b/chatbot/src/model/DescribeCoreWordResult.cc new file mode 100644 index 000000000..d60e4db2f --- /dev/null +++ b/chatbot/src/model/DescribeCoreWordResult.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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribeCoreWordResult::DescribeCoreWordResult() : + ServiceResult() +{} + +DescribeCoreWordResult::DescribeCoreWordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCoreWordResult::~DescribeCoreWordResult() +{} + +void DescribeCoreWordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSynonyms = value["Synonyms"]["Synonym"]; + for (const auto &item : allSynonyms) + synonyms_.push_back(item.asString()); + if(!value["CoreWordCode"].isNull()) + coreWordCode_ = value["CoreWordCode"].asString(); + if(!value["CoreWordName"].isNull()) + coreWordName_ = value["CoreWordName"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + +} + +std::vector DescribeCoreWordResult::getSynonyms()const +{ + return synonyms_; +} + +std::string DescribeCoreWordResult::getCoreWordName()const +{ + return coreWordName_; +} + +std::string DescribeCoreWordResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string DescribeCoreWordResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeCoreWordResult::getCoreWordCode()const +{ + return coreWordCode_; +} + diff --git a/chatbot/src/model/DescribeDialogFlowRequest.cc b/chatbot/src/model/DescribeDialogFlowRequest.cc new file mode 100644 index 000000000..d781d42b6 --- /dev/null +++ b/chatbot/src/model/DescribeDialogFlowRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribeDialogFlowRequest; + +DescribeDialogFlowRequest::DescribeDialogFlowRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribeDialogFlow") +{} + +DescribeDialogFlowRequest::~DescribeDialogFlowRequest() +{} + +long DescribeDialogFlowRequest::getDialogId()const +{ + return dialogId_; +} + +void DescribeDialogFlowRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/DescribeDialogFlowResult.cc b/chatbot/src/model/DescribeDialogFlowResult.cc new file mode 100644 index 000000000..05ce047d9 --- /dev/null +++ b/chatbot/src/model/DescribeDialogFlowResult.cc @@ -0,0 +1,320 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribeDialogFlowResult::DescribeDialogFlowResult() : + ServiceResult() +{} + +DescribeDialogFlowResult::DescribeDialogFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDialogFlowResult::~DescribeDialogFlowResult() +{} + +void DescribeDialogFlowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto moduleDefinitionNode = value["ModuleDefinition"]; + auto allNodes = value["Nodes"]["NodesItem"]; + for (auto value : allNodes) + { + ModuleDefinition::NodesItem nodesItemObject; + if(!value["Code"].isNull()) + nodesItemObject.code = value["Code"].asString(); + if(!value["ComponentCode"].isNull()) + nodesItemObject.componentCode = value["ComponentCode"].asString(); + if(!value["PluginDataUpdate"].isNull()) + nodesItemObject.pluginDataUpdate = value["PluginDataUpdate"].asString() == "true"; + if(!value["Xx"].isNull()) + nodesItemObject.xx = value["Xx"].asString(); + if(!value["Yy"].isNull()) + nodesItemObject.yy = value["Yy"].asString(); + if(!value["Id"].isNull()) + nodesItemObject.id = value["Id"].asString(); + if(!value["Label"].isNull()) + nodesItemObject.label = value["Label"].asString(); + auto pluginDataNode = value["PluginData"]; + auto entryNode = pluginDataNode["Entry"]; + auto pluginFieldDataEntryNode = entryNode["PluginFieldDataEntry"]; + if(!pluginFieldDataEntryNode["LifeSpan"].isNull()) + nodesItemObject.pluginData.entry.pluginFieldDataEntry.lifeSpan = std::stoi(pluginFieldDataEntryNode["LifeSpan"].asString()); + if(!pluginFieldDataEntryNode["Name"].isNull()) + nodesItemObject.pluginData.entry.pluginFieldDataEntry.name = pluginFieldDataEntryNode["Name"].asString(); + auto allContentEntry = value["ContentEntry"]["ContentEntryItem"]; + for (auto value : allContentEntry) + { + ModuleDefinition::NodesItem::PluginData::Entry::PluginFieldDataEntry::ContentEntryItem contentEntryItemObject; + auto allConditionEntries = value["ConditionEntries"]["ConditionEntriesItem"]; + for (auto value : allConditionEntries) + { + ModuleDefinition::NodesItem::PluginData::Entry::PluginFieldDataEntry::ContentEntryItem::ConditionEntriesItem conditionEntriesObject; + if(!value["Id"].isNull()) + conditionEntriesObject.id = value["Id"].asString(); + if(!value["Term"].isNull()) + conditionEntriesObject.term = value["Term"].asString(); + if(!value["Name"].isNull()) + conditionEntriesObject.name = value["Name"].asString(); + if(!value["Type"].isNull()) + conditionEntriesObject.type = value["Type"].asString(); + if(!value["Value"].isNull()) + conditionEntriesObject.value = value["Value"].asString(); + contentEntryItemObject.conditionEntries.push_back(conditionEntriesObject); + } + nodesItemObject.pluginData.entry.pluginFieldDataEntry.contentEntry.push_back(contentEntryItemObject); + } + auto functionNode = pluginDataNode["Function"]; + auto pluginFieldDataFunctionNode = functionNode["PluginFieldDataFunction"]; + if(!pluginFieldDataFunctionNode["Code"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.code = pluginFieldDataFunctionNode["Code"].asString(); + if(!pluginFieldDataFunctionNode["Description"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.description = pluginFieldDataFunctionNode["Description"].asString(); + if(!pluginFieldDataFunctionNode["Function"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.function = pluginFieldDataFunctionNode["Function"].asString(); + if(!pluginFieldDataFunctionNode["Name"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.name = pluginFieldDataFunctionNode["Name"].asString(); + if(!pluginFieldDataFunctionNode["AliyunService"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.aliyunService = pluginFieldDataFunctionNode["AliyunService"].asString(); + if(!pluginFieldDataFunctionNode["AliyunFunction"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.aliyunFunction = pluginFieldDataFunctionNode["AliyunFunction"].asString(); + if(!pluginFieldDataFunctionNode["EndPoint"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.endPoint = pluginFieldDataFunctionNode["EndPoint"].asString(); + if(!pluginFieldDataFunctionNode["Type"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.type = pluginFieldDataFunctionNode["Type"].asString(); + if(!pluginFieldDataFunctionNode["Params"].isNull()) + nodesItemObject.pluginData.function.pluginFieldDataFunction.params = pluginFieldDataFunctionNode["Params"].asString(); + auto allSwitch = value["Switch"]["SwitchItem"]; + for (auto value : allSwitch) + { + ModuleDefinition::NodesItem::PluginData::Function::PluginFieldDataFunction::SwitchItem switchItemObject; + if(!value["Id"].isNull()) + switchItemObject.id = value["Id"].asString(); + if(!value["Label"].isNull()) + switchItemObject.label = value["Label"].asString(); + if(!value["Type"].isNull()) + switchItemObject.type = value["Type"].asString(); + if(!value["Value"].isNull()) + switchItemObject.value = value["Value"].asString(); + if(!value["Name"].isNull()) + switchItemObject.name = value["Name"].asString(); + nodesItemObject.pluginData.function.pluginFieldDataFunction.switch.push_back(switchItemObject); + } + auto responseNode = pluginDataNode["Response"]; + auto pluginFieldDataResponseNode = responseNode["PluginFieldDataResponse"]; + if(!pluginFieldDataResponseNode["Name"].isNull()) + nodesItemObject.pluginData.response.pluginFieldDataResponse.name = pluginFieldDataResponseNode["Name"].asString(); + auto contentResponseNode = pluginFieldDataResponseNode["ContentResponse"]; + if(!contentResponseNode["Text"].isNull()) + nodesItemObject.pluginData.response.pluginFieldDataResponse.contentResponse.text = contentResponseNode["Text"].asString(); + if(!contentResponseNode["Type"].isNull()) + nodesItemObject.pluginData.response.pluginFieldDataResponse.contentResponse.type = contentResponseNode["Type"].asString(); + if(!contentResponseNode["Image"].isNull()) + nodesItemObject.pluginData.response.pluginFieldDataResponse.contentResponse.image = contentResponseNode["Image"].asString(); + auto buttonListNode = contentResponseNode["ButtonList"]; + if(!buttonListNode["Intro"].isNull()) + nodesItemObject.pluginData.response.pluginFieldDataResponse.contentResponse.buttonList.intro = buttonListNode["Intro"].asString(); + auto allButton = value["Button"]["ButtonItem"]; + for (auto value : allButton) + { + ModuleDefinition::NodesItem::PluginData::Response::PluginFieldDataResponse::ContentResponse::ButtonList::ButtonItem buttonItemObject; + if(!value["Name"].isNull()) + buttonItemObject.name = value["Name"].asString(); + if(!value["Type"].isNull()) + buttonItemObject.type = value["Type"].asString(); + if(!value["Text"].isNull()) + buttonItemObject.text = value["Text"].asString(); + nodesItemObject.pluginData.response.pluginFieldDataResponse.contentResponse.buttonList.button.push_back(buttonItemObject); + } + auto slotNode = pluginDataNode["Slot"]; + auto pluginFieldDataSlotNode = slotNode["PluginFieldDataSlot"]; + if(!pluginFieldDataSlotNode["IntentId"].isNull()) + nodesItemObject.pluginData.slot.pluginFieldDataSlot.intentId = pluginFieldDataSlotNode["IntentId"].asString(); + if(!pluginFieldDataSlotNode["IntentName"].isNull()) + nodesItemObject.pluginData.slot.pluginFieldDataSlot.intentName = pluginFieldDataSlotNode["IntentName"].asString(); + if(!pluginFieldDataSlotNode["IsSysIntent"].isNull()) + nodesItemObject.pluginData.slot.pluginFieldDataSlot.isSysIntent = pluginFieldDataSlotNode["IsSysIntent"].asString() == "true"; + if(!pluginFieldDataSlotNode["Name"].isNull()) + nodesItemObject.pluginData.slot.pluginFieldDataSlot.name = pluginFieldDataSlotNode["Name"].asString(); + auto allContentSlot = value["ContentSlot"]["ContentSlotItem"]; + for (auto value : allContentSlot) + { + ModuleDefinition::NodesItem::PluginData::Slot::PluginFieldDataSlot::ContentSlotItem contentSlotItemObject; + if(!value["IsArray"].isNull()) + contentSlotItemObject.isArray = value["IsArray"].asString() == "true"; + if(!value["IsNecessary"].isNull()) + contentSlotItemObject.isNecessary = value["IsNecessary"].asString() == "true"; + if(!value["LifeSpan"].isNull()) + contentSlotItemObject.lifeSpan = std::stoi(value["LifeSpan"].asString()); + if(!value["Name"].isNull()) + contentSlotItemObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + contentSlotItemObject.value = value["Value"].asString(); + auto allQuestion = value["Question"]["Question"]; + for (auto value : allQuestion) + contentSlotItemObject.question.push_back(value.asString()); + nodesItemObject.pluginData.slot.pluginFieldDataSlot.contentSlot.push_back(contentSlotItemObject); + } + moduleDefinition_.nodes.push_back(nodesItemObject); + } + auto allEdges = value["Edges"]["EdgesItem"]; + for (auto value : allEdges) + { + ModuleDefinition::EdgesItem edgesItemObject; + if(!value["Id"].isNull()) + edgesItemObject.id = value["Id"].asString(); + if(!value["Label"].isNull()) + edgesItemObject.label = value["Label"].asString(); + if(!value["Source"].isNull()) + edgesItemObject.source = value["Source"].asString(); + if(!value["Target"].isNull()) + edgesItemObject.target = value["Target"].asString(); + moduleDefinition_.edges.push_back(edgesItemObject); + } + if(!value["DialogId"].isNull()) + dialogId_ = std::stol(value["DialogId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["DialogName"].isNull()) + dialogName_ = value["DialogName"].asString(); + if(!value["ModuleId"].isNull()) + moduleId_ = std::stol(value["ModuleId"].asString()); + if(!value["ModuleName"].isNull()) + moduleName_ = value["ModuleName"].asString(); + if(!value["Templates"].isNull()) + templates_ = value["Templates"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateUserId"].isNull()) + createUserId_ = value["CreateUserId"].asString(); + if(!value["CreateUserName"].isNull()) + createUserName_ = value["CreateUserName"].asString(); + if(!value["ModifyUserId"].isNull()) + modifyUserId_ = value["ModifyUserId"].asString(); + if(!value["ModifyUserName"].isNull()) + modifyUserName_ = value["ModifyUserName"].asString(); + if(!value["AccountId"].isNull()) + accountId_ = value["AccountId"].asString(); + if(!value["Tags"].isNull()) + tags_ = value["Tags"].asString(); + if(!value["Status"].isNull()) + status_ = std::stoi(value["Status"].asString()); + if(!value["GlobalVars"].isNull()) + globalVars_ = value["GlobalVars"].asString(); + +} + +int DescribeDialogFlowResult::getStatus()const +{ + return status_; +} + +std::string DescribeDialogFlowResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string DescribeDialogFlowResult::getAccountId()const +{ + return accountId_; +} + +std::string DescribeDialogFlowResult::getInstanceId()const +{ + return instanceId_; +} + +std::string DescribeDialogFlowResult::getModuleName()const +{ + return moduleName_; +} + +std::string DescribeDialogFlowResult::getCreateTime()const +{ + return createTime_; +} + +long DescribeDialogFlowResult::getDialogId()const +{ + return dialogId_; +} + +std::string DescribeDialogFlowResult::getTemplates()const +{ + return templates_; +} + +std::string DescribeDialogFlowResult::getCreateUserId()const +{ + return createUserId_; +} + +std::string DescribeDialogFlowResult::getCreateUserName()const +{ + return createUserName_; +} + +std::string DescribeDialogFlowResult::getGlobalVars()const +{ + return globalVars_; +} + +DescribeDialogFlowResult::ModuleDefinition DescribeDialogFlowResult::getModuleDefinition()const +{ + return moduleDefinition_; +} + +long DescribeDialogFlowResult::getModuleId()const +{ + return moduleId_; +} + +std::string DescribeDialogFlowResult::getDialogName()const +{ + return dialogName_; +} + +std::string DescribeDialogFlowResult::getModifyUserId()const +{ + return modifyUserId_; +} + +std::string DescribeDialogFlowResult::getModifyUserName()const +{ + return modifyUserName_; +} + +std::string DescribeDialogFlowResult::getTags()const +{ + return tags_; +} + diff --git a/chatbot/src/model/DescribeDialogRequest.cc b/chatbot/src/model/DescribeDialogRequest.cc new file mode 100644 index 000000000..66ca9dcbe --- /dev/null +++ b/chatbot/src/model/DescribeDialogRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribeDialogRequest; + +DescribeDialogRequest::DescribeDialogRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribeDialog") +{} + +DescribeDialogRequest::~DescribeDialogRequest() +{} + +long DescribeDialogRequest::getDialogId()const +{ + return dialogId_; +} + +void DescribeDialogRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/DescribeDialogResult.cc b/chatbot/src/model/DescribeDialogResult.cc new file mode 100644 index 000000000..8df411995 --- /dev/null +++ b/chatbot/src/model/DescribeDialogResult.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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribeDialogResult::DescribeDialogResult() : + ServiceResult() +{} + +DescribeDialogResult::DescribeDialogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDialogResult::~DescribeDialogResult() +{} + +void DescribeDialogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DialogId"].isNull()) + dialogId_ = std::stol(value["DialogId"].asString()); + if(!value["DialogName"].isNull()) + dialogName_ = value["DialogName"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateUserId"].isNull()) + createUserId_ = value["CreateUserId"].asString(); + if(!value["CreateUserName"].isNull()) + createUserName_ = value["CreateUserName"].asString(); + if(!value["ModifyUserId"].isNull()) + modifyUserId_ = value["ModifyUserId"].asString(); + if(!value["ModifyUserName"].isNull()) + modifyUserName_ = value["ModifyUserName"].asString(); + if(!value["IsSampleDialog"].isNull()) + isSampleDialog_ = value["IsSampleDialog"].asString() == "true"; + if(!value["Status"].isNull()) + status_ = std::stoi(value["Status"].asString()); + if(!value["IsOnline"].isNull()) + isOnline_ = value["IsOnline"].asString() == "true"; + +} + +int DescribeDialogResult::getStatus()const +{ + return status_; +} + +std::string DescribeDialogResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string DescribeDialogResult::getDialogName()const +{ + return dialogName_; +} + +std::string DescribeDialogResult::getDescription()const +{ + return description_; +} + +std::string DescribeDialogResult::getModifyUserId()const +{ + return modifyUserId_; +} + +std::string DescribeDialogResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeDialogResult::getModifyUserName()const +{ + return modifyUserName_; +} + +long DescribeDialogResult::getDialogId()const +{ + return dialogId_; +} + +std::string DescribeDialogResult::getCreateUserId()const +{ + return createUserId_; +} + +std::string DescribeDialogResult::getCreateUserName()const +{ + return createUserName_; +} + +bool DescribeDialogResult::getIsSampleDialog()const +{ + return isSampleDialog_; +} + +bool DescribeDialogResult::getIsOnline()const +{ + return isOnline_; +} + diff --git a/chatbot/src/model/DescribeEntitiesRequest.cc b/chatbot/src/model/DescribeEntitiesRequest.cc new file mode 100644 index 000000000..bf74eb17f --- /dev/null +++ b/chatbot/src/model/DescribeEntitiesRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribeEntitiesRequest; + +DescribeEntitiesRequest::DescribeEntitiesRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribeEntities") +{} + +DescribeEntitiesRequest::~DescribeEntitiesRequest() +{} + +long DescribeEntitiesRequest::getEntityId()const +{ + return entityId_; +} + +void DescribeEntitiesRequest::setEntityId(long entityId) +{ + entityId_ = entityId; + setCoreParameter("EntityId", std::to_string(entityId)); +} + diff --git a/chatbot/src/model/DescribeEntitiesResult.cc b/chatbot/src/model/DescribeEntitiesResult.cc new file mode 100644 index 000000000..1c2fb7546 --- /dev/null +++ b/chatbot/src/model/DescribeEntitiesResult.cc @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribeEntitiesResult::DescribeEntitiesResult() : + ServiceResult() +{} + +DescribeEntitiesResult::DescribeEntitiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEntitiesResult::~DescribeEntitiesResult() +{} + +void DescribeEntitiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allMembers = value["Members"]["MembersItem"]; + for (auto value : allMembers) + { + MembersItem membersObject; + if(!value["MemberName"].isNull()) + membersObject.memberName = value["MemberName"].asString(); + auto allSynonyms = value["Synonyms"]["Synonyms"]; + for (auto value : allSynonyms) + membersObject.synonyms.push_back(value.asString()); + members_.push_back(membersObject); + } + if(!value["EntityId"].isNull()) + entityId_ = std::stol(value["EntityId"].asString()); + if(!value["EntityName"].isNull()) + entityName_ = value["EntityName"].asString(); + if(!value["EntityType"].isNull()) + entityType_ = value["EntityType"].asString(); + if(!value["Regex"].isNull()) + regex_ = value["Regex"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateUserId"].isNull()) + createUserId_ = value["CreateUserId"].asString(); + if(!value["CreateUserName"].isNull()) + createUserName_ = value["CreateUserName"].asString(); + if(!value["ModifyUserId"].isNull()) + modifyUserId_ = value["ModifyUserId"].asString(); + if(!value["ModifyUserName"].isNull()) + modifyUserName_ = value["ModifyUserName"].asString(); + +} + +long DescribeEntitiesResult::getEntityId()const +{ + return entityId_; +} + +std::string DescribeEntitiesResult::getEntityType()const +{ + return entityType_; +} + +std::string DescribeEntitiesResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string DescribeEntitiesResult::getModifyUserId()const +{ + return modifyUserId_; +} + +std::string DescribeEntitiesResult::getEntityName()const +{ + return entityName_; +} + +std::string DescribeEntitiesResult::getRegex()const +{ + return regex_; +} + +std::string DescribeEntitiesResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeEntitiesResult::getModifyUserName()const +{ + return modifyUserName_; +} + +std::string DescribeEntitiesResult::getCreateUserId()const +{ + return createUserId_; +} + +std::string DescribeEntitiesResult::getCreateUserName()const +{ + return createUserName_; +} + +std::vector DescribeEntitiesResult::getMembers()const +{ + return members_; +} + diff --git a/chatbot/src/model/DescribeIntentRequest.cc b/chatbot/src/model/DescribeIntentRequest.cc new file mode 100644 index 000000000..11bc1de7a --- /dev/null +++ b/chatbot/src/model/DescribeIntentRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribeIntentRequest; + +DescribeIntentRequest::DescribeIntentRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribeIntent") +{} + +DescribeIntentRequest::~DescribeIntentRequest() +{} + +long DescribeIntentRequest::getIntentId()const +{ + return intentId_; +} + +void DescribeIntentRequest::setIntentId(long intentId) +{ + intentId_ = intentId; + setCoreParameter("IntentId", std::to_string(intentId)); +} + diff --git a/chatbot/src/model/DescribeIntentResult.cc b/chatbot/src/model/DescribeIntentResult.cc new file mode 100644 index 000000000..56e2ca896 --- /dev/null +++ b/chatbot/src/model/DescribeIntentResult.cc @@ -0,0 +1,200 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribeIntentResult::DescribeIntentResult() : + ServiceResult() +{} + +DescribeIntentResult::DescribeIntentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIntentResult::~DescribeIntentResult() +{} + +void DescribeIntentResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRuleCheck = value["RuleCheck"]["RuleCheckItem"]; + for (auto value : allRuleCheck) + { + RuleCheckItem ruleCheckObject; + if(!value["Text"].isNull()) + ruleCheckObject.text = value["Text"].asString(); + if(!value["Strict"].isNull()) + ruleCheckObject.strict = value["Strict"].asString() == "true"; + auto allWarning = value["Warning"]["Warning"]; + for (auto value : allWarning) + ruleCheckObject.warning.push_back(value.asString()); + auto allError = value["Error"]["Error"]; + for (auto value : allError) + ruleCheckObject.error.push_back(value.asString()); + ruleCheck_.push_back(ruleCheckObject); + } + auto allSlot = value["Slot"]["SlotItem"]; + for (auto value : allSlot) + { + SlotItem slotObject; + if(!value["Name"].isNull()) + slotObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + slotObject.value = value["Value"].asString(); + if(!value["IsNecessary"].isNull()) + slotObject.isNecessary = value["IsNecessary"].asString() == "true"; + if(!value["IsArray"].isNull()) + slotObject.isArray = value["IsArray"].asString() == "true"; + if(!value["LifeSpan"].isNull()) + slotObject.lifeSpan = std::stoi(value["LifeSpan"].asString()); + if(!value["SlotId"].isNull()) + slotObject.slotId = value["SlotId"].asString(); + auto allTags = value["Tags"]["TagsItem"]; + for (auto value : allTags) + { + SlotItem::TagsItem tagsObject; + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + if(!value["UserSayId"].isNull()) + tagsObject.userSayId = value["UserSayId"].asString(); + slotObject.tags.push_back(tagsObject); + } + auto allQuestion = value["Question"]["Question"]; + for (auto value : allQuestion) + slotObject.question.push_back(value.asString()); + slot_.push_back(slotObject); + } + auto allUserSay = value["UserSay"]["UserSayItem"]; + for (auto value : allUserSay) + { + UserSayItem userSayObject; + if(!value["Strict"].isNull()) + userSayObject.strict = value["Strict"].asString() == "true"; + if(!value["UserSayId"].isNull()) + userSayObject.userSayId = value["UserSayId"].asString(); + auto allData = value["Data"]["DataItem"]; + for (auto value : allData) + { + UserSayItem::DataItem dataObject; + if(!value["Text"].isNull()) + dataObject.text = value["Text"].asString(); + if(!value["SlotId"].isNull()) + dataObject.slotId = value["SlotId"].asString(); + userSayObject.data.push_back(dataObject); + } + userSay_.push_back(userSayObject); + } + if(!value["IntentId"].isNull()) + intentId_ = std::stol(value["IntentId"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["DialogId"].isNull()) + dialogId_ = std::stol(value["DialogId"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateUserId"].isNull()) + createUserId_ = value["CreateUserId"].asString(); + if(!value["CreateUserName"].isNull()) + createUserName_ = value["CreateUserName"].asString(); + if(!value["ModifyUserId"].isNull()) + modifyUserId_ = value["ModifyUserId"].asString(); + if(!value["ModifyUserName"].isNull()) + modifyUserName_ = value["ModifyUserName"].asString(); + +} + +std::string DescribeIntentResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string DescribeIntentResult::getCreateTime()const +{ + return createTime_; +} + +long DescribeIntentResult::getDialogId()const +{ + return dialogId_; +} + +std::string DescribeIntentResult::getCreateUserId()const +{ + return createUserId_; +} + +std::string DescribeIntentResult::getCreateUserName()const +{ + return createUserName_; +} + +long DescribeIntentResult::getIntentId()const +{ + return intentId_; +} + +std::string DescribeIntentResult::getName()const +{ + return name_; +} + +std::string DescribeIntentResult::getType()const +{ + return type_; +} + +std::vector DescribeIntentResult::getUserSay()const +{ + return userSay_; +} + +std::string DescribeIntentResult::getModifyUserId()const +{ + return modifyUserId_; +} + +std::string DescribeIntentResult::getModifyUserName()const +{ + return modifyUserName_; +} + +std::vector DescribeIntentResult::getSlot()const +{ + return slot_; +} + +std::vector DescribeIntentResult::getRuleCheck()const +{ + return ruleCheck_; +} + diff --git a/chatbot/src/model/DescribeKnowledgeRequest.cc b/chatbot/src/model/DescribeKnowledgeRequest.cc new file mode 100644 index 000000000..dc36ae495 --- /dev/null +++ b/chatbot/src/model/DescribeKnowledgeRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribeKnowledgeRequest; + +DescribeKnowledgeRequest::DescribeKnowledgeRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribeKnowledge") +{} + +DescribeKnowledgeRequest::~DescribeKnowledgeRequest() +{} + +long DescribeKnowledgeRequest::getKnowledgeId()const +{ + return knowledgeId_; +} + +void DescribeKnowledgeRequest::setKnowledgeId(long knowledgeId) +{ + knowledgeId_ = knowledgeId; + setCoreParameter("KnowledgeId", std::to_string(knowledgeId)); +} + diff --git a/chatbot/src/model/DescribeKnowledgeResult.cc b/chatbot/src/model/DescribeKnowledgeResult.cc new file mode 100644 index 000000000..373e63943 --- /dev/null +++ b/chatbot/src/model/DescribeKnowledgeResult.cc @@ -0,0 +1,210 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribeKnowledgeResult::DescribeKnowledgeResult() : + ServiceResult() +{} + +DescribeKnowledgeResult::DescribeKnowledgeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeKnowledgeResult::~DescribeKnowledgeResult() +{} + +void DescribeKnowledgeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allOutlines = value["Outlines"]["Outline"]; + for (auto value : allOutlines) + { + Outline outlinesObject; + if(!value["KnowledgeId"].isNull()) + outlinesObject.knowledgeId = std::stol(value["KnowledgeId"].asString()); + if(!value["Title"].isNull()) + outlinesObject.title = value["Title"].asString(); + if(!value["OutlineId"].isNull()) + outlinesObject.outlineId = std::stol(value["OutlineId"].asString()); + outlines_.push_back(outlinesObject); + } + auto allSimQuestions = value["SimQuestions"]["SimQuestion"]; + for (auto value : allSimQuestions) + { + SimQuestion simQuestionsObject; + if(!value["ModifyTime"].isNull()) + simQuestionsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + simQuestionsObject.createTime = value["CreateTime"].asString(); + if(!value["SimQuestionId"].isNull()) + simQuestionsObject.simQuestionId = std::stol(value["SimQuestionId"].asString()); + if(!value["Title"].isNull()) + simQuestionsObject.title = value["Title"].asString(); + simQuestions_.push_back(simQuestionsObject); + } + auto allSolutions = value["Solutions"]["Solution"]; + for (auto value : allSolutions) + { + Solution solutionsObject; + if(!value["Summary"].isNull()) + solutionsObject.summary = value["Summary"].asString(); + if(!value["ModifyTime"].isNull()) + solutionsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + solutionsObject.createTime = value["CreateTime"].asString(); + if(!value["SolutionId"].isNull()) + solutionsObject.solutionId = std::stol(value["SolutionId"].asString()); + if(!value["Content"].isNull()) + solutionsObject.content = value["Content"].asString(); + if(!value["PlainText"].isNull()) + solutionsObject.plainText = value["PlainText"].asString(); + auto allPerspectiveIds = value["PerspectiveIds"]["PerspectiveId"]; + for (auto value : allPerspectiveIds) + solutionsObject.perspectiveIds.push_back(value.asString()); + solutions_.push_back(solutionsObject); + } + auto allKeyWords = value["KeyWords"]["KeyWord"]; + for (const auto &item : allKeyWords) + keyWords_.push_back(item.asString()); + auto allCoreWords = value["CoreWords"]["CoreWord"]; + for (const auto &item : allCoreWords) + coreWords_.push_back(item.asString()); + if(!value["EndDate"].isNull()) + endDate_ = value["EndDate"].asString(); + if(!value["CreateUserName"].isNull()) + createUserName_ = value["CreateUserName"].asString(); + if(!value["KnowledgeTitle"].isNull()) + knowledgeTitle_ = value["KnowledgeTitle"].asString(); + if(!value["Version"].isNull()) + version_ = std::stoi(value["Version"].asString()); + if(!value["KnowledgeId"].isNull()) + knowledgeId_ = std::stol(value["KnowledgeId"].asString()); + if(!value["ModifyUserName"].isNull()) + modifyUserName_ = value["ModifyUserName"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["KnowledgeType"].isNull()) + knowledgeType_ = std::stoi(value["KnowledgeType"].asString()); + if(!value["CategoryId"].isNull()) + categoryId_ = std::stol(value["CategoryId"].asString()); + if(!value["StartDate"].isNull()) + startDate_ = value["StartDate"].asString(); + if(!value["KnowledgeStatus"].isNull()) + knowledgeStatus_ = std::stoi(value["KnowledgeStatus"].asString()); + +} + +std::string DescribeKnowledgeResult::getKnowledgeTitle()const +{ + return knowledgeTitle_; +} + +long DescribeKnowledgeResult::getCategoryId()const +{ + return categoryId_; +} + +std::string DescribeKnowledgeResult::getModifyTime()const +{ + return modifyTime_; +} + +std::vector DescribeKnowledgeResult::getCoreWords()const +{ + return coreWords_; +} + +std::string DescribeKnowledgeResult::getCreateTime()const +{ + return createTime_; +} + +long DescribeKnowledgeResult::getKnowledgeId()const +{ + return knowledgeId_; +} + +std::vector DescribeKnowledgeResult::getKeyWords()const +{ + return keyWords_; +} + +std::string DescribeKnowledgeResult::getEndDate()const +{ + return endDate_; +} + +std::string DescribeKnowledgeResult::getCreateUserName()const +{ + return createUserName_; +} + +std::string DescribeKnowledgeResult::getStartDate()const +{ + return startDate_; +} + +std::vector DescribeKnowledgeResult::getSimQuestions()const +{ + return simQuestions_; +} + +std::vector DescribeKnowledgeResult::getSolutions()const +{ + return solutions_; +} + +int DescribeKnowledgeResult::getVersion()const +{ + return version_; +} + +std::string DescribeKnowledgeResult::getModifyUserName()const +{ + return modifyUserName_; +} + +std::vector DescribeKnowledgeResult::getOutlines()const +{ + return outlines_; +} + +int DescribeKnowledgeResult::getKnowledgeStatus()const +{ + return knowledgeStatus_; +} + +int DescribeKnowledgeResult::getKnowledgeType()const +{ + return knowledgeType_; +} + diff --git a/chatbot/src/model/DescribePerspectiveRequest.cc b/chatbot/src/model/DescribePerspectiveRequest.cc new file mode 100644 index 000000000..dc786b889 --- /dev/null +++ b/chatbot/src/model/DescribePerspectiveRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DescribePerspectiveRequest; + +DescribePerspectiveRequest::DescribePerspectiveRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DescribePerspective") +{} + +DescribePerspectiveRequest::~DescribePerspectiveRequest() +{} + +std::string DescribePerspectiveRequest::getPerspectiveId()const +{ + return perspectiveId_; +} + +void DescribePerspectiveRequest::setPerspectiveId(const std::string& perspectiveId) +{ + perspectiveId_ = perspectiveId; + setCoreParameter("PerspectiveId", perspectiveId); +} + diff --git a/chatbot/src/model/DescribePerspectiveResult.cc b/chatbot/src/model/DescribePerspectiveResult.cc new file mode 100644 index 000000000..f5e9d56eb --- /dev/null +++ b/chatbot/src/model/DescribePerspectiveResult.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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DescribePerspectiveResult::DescribePerspectiveResult() : + ServiceResult() +{} + +DescribePerspectiveResult::DescribePerspectiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePerspectiveResult::~DescribePerspectiveResult() +{} + +void DescribePerspectiveResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ModifyUserName"].isNull()) + modifyUserName_ = value["ModifyUserName"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["SelfDefine"].isNull()) + selfDefine_ = value["SelfDefine"].asString() == "true"; + if(!value["PerspectiveId"].isNull()) + perspectiveId_ = value["PerspectiveId"].asString(); + if(!value["CreateUserName"].isNull()) + createUserName_ = value["CreateUserName"].asString(); + if(!value["PerspectiveCode"].isNull()) + perspectiveCode_ = value["PerspectiveCode"].asString(); + if(!value["Status"].isNull()) + status_ = std::stoi(value["Status"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + +} + +int DescribePerspectiveResult::getStatus()const +{ + return status_; +} + +std::string DescribePerspectiveResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string DescribePerspectiveResult::getPerspectiveCode()const +{ + return perspectiveCode_; +} + +bool DescribePerspectiveResult::getSelfDefine()const +{ + return selfDefine_; +} + +std::string DescribePerspectiveResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribePerspectiveResult::getModifyUserName()const +{ + return modifyUserName_; +} + +std::string DescribePerspectiveResult::getPerspectiveId()const +{ + return perspectiveId_; +} + +std::string DescribePerspectiveResult::getCreateUserName()const +{ + return createUserName_; +} + +std::string DescribePerspectiveResult::getName()const +{ + return name_; +} + diff --git a/chatbot/src/model/DisableDialogFlowRequest.cc b/chatbot/src/model/DisableDialogFlowRequest.cc new file mode 100644 index 000000000..99ca5933b --- /dev/null +++ b/chatbot/src/model/DisableDialogFlowRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DisableDialogFlowRequest; + +DisableDialogFlowRequest::DisableDialogFlowRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DisableDialogFlow") +{} + +DisableDialogFlowRequest::~DisableDialogFlowRequest() +{} + +long DisableDialogFlowRequest::getDialogId()const +{ + return dialogId_; +} + +void DisableDialogFlowRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/DisableDialogFlowResult.cc b/chatbot/src/model/DisableDialogFlowResult.cc new file mode 100644 index 000000000..57aabf120 --- /dev/null +++ b/chatbot/src/model/DisableDialogFlowResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DisableDialogFlowResult::DisableDialogFlowResult() : + ServiceResult() +{} + +DisableDialogFlowResult::DisableDialogFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableDialogFlowResult::~DisableDialogFlowResult() +{} + +void DisableDialogFlowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/DisableKnowledgeRequest.cc b/chatbot/src/model/DisableKnowledgeRequest.cc new file mode 100644 index 000000000..8296958f8 --- /dev/null +++ b/chatbot/src/model/DisableKnowledgeRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::DisableKnowledgeRequest; + +DisableKnowledgeRequest::DisableKnowledgeRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "DisableKnowledge") +{} + +DisableKnowledgeRequest::~DisableKnowledgeRequest() +{} + +long DisableKnowledgeRequest::getKnowledgeId()const +{ + return knowledgeId_; +} + +void DisableKnowledgeRequest::setKnowledgeId(long knowledgeId) +{ + knowledgeId_ = knowledgeId; + setCoreParameter("KnowledgeId", std::to_string(knowledgeId)); +} + diff --git a/chatbot/src/model/DisableKnowledgeResult.cc b/chatbot/src/model/DisableKnowledgeResult.cc new file mode 100644 index 000000000..5a58615ad --- /dev/null +++ b/chatbot/src/model/DisableKnowledgeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +DisableKnowledgeResult::DisableKnowledgeResult() : + ServiceResult() +{} + +DisableKnowledgeResult::DisableKnowledgeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableKnowledgeResult::~DisableKnowledgeResult() +{} + +void DisableKnowledgeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/FeedbackRequest.cc b/chatbot/src/model/FeedbackRequest.cc new file mode 100644 index 000000000..2bb62066c --- /dev/null +++ b/chatbot/src/model/FeedbackRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::FeedbackRequest; + +FeedbackRequest::FeedbackRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "Feedback") +{} + +FeedbackRequest::~FeedbackRequest() +{} + +std::string FeedbackRequest::getFeedback()const +{ + return feedback_; +} + +void FeedbackRequest::setFeedback(const std::string& feedback) +{ + feedback_ = feedback; + setCoreParameter("Feedback", feedback); +} + +std::string FeedbackRequest::getInstanceId()const +{ + return instanceId_; +} + +void FeedbackRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string FeedbackRequest::getMessageId()const +{ + return messageId_; +} + +void FeedbackRequest::setMessageId(const std::string& messageId) +{ + messageId_ = messageId; + setCoreParameter("MessageId", messageId); +} + +std::string FeedbackRequest::getSessionId()const +{ + return sessionId_; +} + +void FeedbackRequest::setSessionId(const std::string& sessionId) +{ + sessionId_ = sessionId; + setCoreParameter("SessionId", sessionId); +} + diff --git a/chatbot/src/model/FeedbackResult.cc b/chatbot/src/model/FeedbackResult.cc new file mode 100644 index 000000000..5565c524c --- /dev/null +++ b/chatbot/src/model/FeedbackResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +FeedbackResult::FeedbackResult() : + ServiceResult() +{} + +FeedbackResult::FeedbackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FeedbackResult::~FeedbackResult() +{} + +void FeedbackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["MessageId"].isNull()) + messageId_ = value["MessageId"].asString(); + if(!value["Feedback"].isNull()) + feedback_ = value["Feedback"].asString(); + +} + +std::string FeedbackResult::getFeedback()const +{ + return feedback_; +} + +std::string FeedbackResult::getMessageId()const +{ + return messageId_; +} + diff --git a/chatbot/src/model/MoveKnowledgeCategoryRequest.cc b/chatbot/src/model/MoveKnowledgeCategoryRequest.cc new file mode 100644 index 000000000..76069730b --- /dev/null +++ b/chatbot/src/model/MoveKnowledgeCategoryRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::MoveKnowledgeCategoryRequest; + +MoveKnowledgeCategoryRequest::MoveKnowledgeCategoryRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "MoveKnowledgeCategory") +{} + +MoveKnowledgeCategoryRequest::~MoveKnowledgeCategoryRequest() +{} + +long MoveKnowledgeCategoryRequest::getKnowledgeId()const +{ + return knowledgeId_; +} + +void MoveKnowledgeCategoryRequest::setKnowledgeId(long knowledgeId) +{ + knowledgeId_ = knowledgeId; + setCoreParameter("KnowledgeId", std::to_string(knowledgeId)); +} + +long MoveKnowledgeCategoryRequest::getCategoryId()const +{ + return categoryId_; +} + +void MoveKnowledgeCategoryRequest::setCategoryId(long categoryId) +{ + categoryId_ = categoryId; + setCoreParameter("CategoryId", std::to_string(categoryId)); +} + diff --git a/chatbot/src/model/MoveKnowledgeCategoryResult.cc b/chatbot/src/model/MoveKnowledgeCategoryResult.cc new file mode 100644 index 000000000..18f6a7ca3 --- /dev/null +++ b/chatbot/src/model/MoveKnowledgeCategoryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +MoveKnowledgeCategoryResult::MoveKnowledgeCategoryResult() : + ServiceResult() +{} + +MoveKnowledgeCategoryResult::MoveKnowledgeCategoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MoveKnowledgeCategoryResult::~MoveKnowledgeCategoryResult() +{} + +void MoveKnowledgeCategoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/PublishDialogFlowRequest.cc b/chatbot/src/model/PublishDialogFlowRequest.cc new file mode 100644 index 000000000..5f58f0181 --- /dev/null +++ b/chatbot/src/model/PublishDialogFlowRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::PublishDialogFlowRequest; + +PublishDialogFlowRequest::PublishDialogFlowRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "PublishDialogFlow") +{} + +PublishDialogFlowRequest::~PublishDialogFlowRequest() +{} + +long PublishDialogFlowRequest::getDialogId()const +{ + return dialogId_; +} + +void PublishDialogFlowRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/PublishDialogFlowResult.cc b/chatbot/src/model/PublishDialogFlowResult.cc new file mode 100644 index 000000000..f52c92cc8 --- /dev/null +++ b/chatbot/src/model/PublishDialogFlowResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +PublishDialogFlowResult::PublishDialogFlowResult() : + ServiceResult() +{} + +PublishDialogFlowResult::PublishDialogFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishDialogFlowResult::~PublishDialogFlowResult() +{} + +void PublishDialogFlowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/PublishKnowledgeRequest.cc b/chatbot/src/model/PublishKnowledgeRequest.cc new file mode 100644 index 000000000..b649cfe67 --- /dev/null +++ b/chatbot/src/model/PublishKnowledgeRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::PublishKnowledgeRequest; + +PublishKnowledgeRequest::PublishKnowledgeRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "PublishKnowledge") +{} + +PublishKnowledgeRequest::~PublishKnowledgeRequest() +{} + +long PublishKnowledgeRequest::getKnowledgeId()const +{ + return knowledgeId_; +} + +void PublishKnowledgeRequest::setKnowledgeId(long knowledgeId) +{ + knowledgeId_ = knowledgeId; + setCoreParameter("KnowledgeId", std::to_string(knowledgeId)); +} + diff --git a/chatbot/src/model/PublishKnowledgeResult.cc b/chatbot/src/model/PublishKnowledgeResult.cc new file mode 100644 index 000000000..01a8fad58 --- /dev/null +++ b/chatbot/src/model/PublishKnowledgeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +PublishKnowledgeResult::PublishKnowledgeResult() : + ServiceResult() +{} + +PublishKnowledgeResult::PublishKnowledgeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishKnowledgeResult::~PublishKnowledgeResult() +{} + +void PublishKnowledgeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/QueryCategoriesRequest.cc b/chatbot/src/model/QueryCategoriesRequest.cc new file mode 100644 index 000000000..cc41a9396 --- /dev/null +++ b/chatbot/src/model/QueryCategoriesRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::QueryCategoriesRequest; + +QueryCategoriesRequest::QueryCategoriesRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QueryCategories") +{} + +QueryCategoriesRequest::~QueryCategoriesRequest() +{} + +bool QueryCategoriesRequest::getShowChildrens()const +{ + return showChildrens_; +} + +void QueryCategoriesRequest::setShowChildrens(bool showChildrens) +{ + showChildrens_ = showChildrens; + setCoreParameter("ShowChildrens", showChildrens ? "true" : "false"); +} + +long QueryCategoriesRequest::getParentCategoryId()const +{ + return parentCategoryId_; +} + +void QueryCategoriesRequest::setParentCategoryId(long parentCategoryId) +{ + parentCategoryId_ = parentCategoryId; + setCoreParameter("ParentCategoryId", std::to_string(parentCategoryId)); +} + diff --git a/chatbot/src/model/QueryCategoriesResult.cc b/chatbot/src/model/QueryCategoriesResult.cc new file mode 100644 index 000000000..3121823b2 --- /dev/null +++ b/chatbot/src/model/QueryCategoriesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QueryCategoriesResult::QueryCategoriesResult() : + ServiceResult() +{} + +QueryCategoriesResult::QueryCategoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCategoriesResult::~QueryCategoriesResult() +{} + +void QueryCategoriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allCategories = value["Categories"]["Category"]; + for (auto value : allCategories) + { + Category categoriesObject; + if(!value["CategoryId"].isNull()) + categoriesObject.categoryId = std::stol(value["CategoryId"].asString()); + if(!value["ParentCategoryId"].isNull()) + categoriesObject.parentCategoryId = std::stol(value["ParentCategoryId"].asString()); + if(!value["Name"].isNull()) + categoriesObject.name = value["Name"].asString(); + auto allChildrens = value["Childrens"]["Children"]; + for (auto value : allChildrens) + categoriesObject.childrens.push_back(value.asString()); + categories_.push_back(categoriesObject); + } + +} + +std::vector QueryCategoriesResult::getCategories()const +{ + return categories_; +} + diff --git a/chatbot/src/model/QueryCoreWordsRequest.cc b/chatbot/src/model/QueryCoreWordsRequest.cc new file mode 100644 index 000000000..44c50207f --- /dev/null +++ b/chatbot/src/model/QueryCoreWordsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::QueryCoreWordsRequest; + +QueryCoreWordsRequest::QueryCoreWordsRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QueryCoreWords") +{} + +QueryCoreWordsRequest::~QueryCoreWordsRequest() +{} + +std::string QueryCoreWordsRequest::getSynonym()const +{ + return synonym_; +} + +void QueryCoreWordsRequest::setSynonym(const std::string& synonym) +{ + synonym_ = synonym; + setCoreParameter("Synonym", synonym); +} + +int QueryCoreWordsRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryCoreWordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryCoreWordsRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void QueryCoreWordsRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + +int QueryCoreWordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryCoreWordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/chatbot/src/model/QueryCoreWordsResult.cc b/chatbot/src/model/QueryCoreWordsResult.cc new file mode 100644 index 000000000..616cb3290 --- /dev/null +++ b/chatbot/src/model/QueryCoreWordsResult.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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QueryCoreWordsResult::QueryCoreWordsResult() : + ServiceResult() +{} + +QueryCoreWordsResult::QueryCoreWordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCoreWordsResult::~QueryCoreWordsResult() +{} + +void QueryCoreWordsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allCoreWords = value["CoreWords"]["CoreWord"]; + for (auto value : allCoreWords) + { + CoreWord coreWordsObject; + if(!value["CoreWordCode"].isNull()) + coreWordsObject.coreWordCode = value["CoreWordCode"].asString(); + if(!value["CoreWordName"].isNull()) + coreWordsObject.coreWordName = value["CoreWordName"].asString(); + if(!value["ModifyTime"].isNull()) + coreWordsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + coreWordsObject.createTime = value["CreateTime"].asString(); + auto allSynonyms = value["Synonyms"]["Synonym"]; + for (auto value : allSynonyms) + coreWordsObject.synonyms.push_back(value.asString()); + coreWords_.push_back(coreWordsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int QueryCoreWordsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector QueryCoreWordsResult::getCoreWords()const +{ + return coreWords_; +} + +int QueryCoreWordsResult::getPageSize()const +{ + return pageSize_; +} + +int QueryCoreWordsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/chatbot/src/model/QueryDialogsRequest.cc b/chatbot/src/model/QueryDialogsRequest.cc new file mode 100644 index 000000000..0f948a348 --- /dev/null +++ b/chatbot/src/model/QueryDialogsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::QueryDialogsRequest; + +QueryDialogsRequest::QueryDialogsRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QueryDialogs") +{} + +QueryDialogsRequest::~QueryDialogsRequest() +{} + +std::string QueryDialogsRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryDialogsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int QueryDialogsRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryDialogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryDialogsRequest::getDialogName()const +{ + return dialogName_; +} + +void QueryDialogsRequest::setDialogName(const std::string& dialogName) +{ + dialogName_ = dialogName; + setCoreParameter("DialogName", dialogName); +} + +int QueryDialogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryDialogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/chatbot/src/model/QueryDialogsResult.cc b/chatbot/src/model/QueryDialogsResult.cc new file mode 100644 index 000000000..86c248ab7 --- /dev/null +++ b/chatbot/src/model/QueryDialogsResult.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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QueryDialogsResult::QueryDialogsResult() : + ServiceResult() +{} + +QueryDialogsResult::QueryDialogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDialogsResult::~QueryDialogsResult() +{} + +void QueryDialogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDialogs = value["Dialogs"]["Dialog"]; + for (auto value : allDialogs) + { + Dialog dialogsObject; + if(!value["DialogId"].isNull()) + dialogsObject.dialogId = std::stol(value["DialogId"].asString()); + if(!value["DialogName"].isNull()) + dialogsObject.dialogName = value["DialogName"].asString(); + if(!value["Description"].isNull()) + dialogsObject.description = value["Description"].asString(); + if(!value["CreateTime"].isNull()) + dialogsObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + dialogsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CreateUserId"].isNull()) + dialogsObject.createUserId = value["CreateUserId"].asString(); + if(!value["CreateUserName"].isNull()) + dialogsObject.createUserName = value["CreateUserName"].asString(); + if(!value["ModifyUserId"].isNull()) + dialogsObject.modifyUserId = value["ModifyUserId"].asString(); + if(!value["ModifyUserName"].isNull()) + dialogsObject.modifyUserName = value["ModifyUserName"].asString(); + if(!value["IsSampleDialog"].isNull()) + dialogsObject.isSampleDialog = value["IsSampleDialog"].asString() == "true"; + if(!value["Status"].isNull()) + dialogsObject.status = std::stoi(value["Status"].asString()); + if(!value["IsOnline"].isNull()) + dialogsObject.isOnline = value["IsOnline"].asString() == "true"; + dialogs_.push_back(dialogsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int QueryDialogsResult::getTotalCount()const +{ + return totalCount_; +} + +int QueryDialogsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector QueryDialogsResult::getDialogs()const +{ + return dialogs_; +} + +int QueryDialogsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/chatbot/src/model/QueryEntitiesRequest.cc b/chatbot/src/model/QueryEntitiesRequest.cc new file mode 100644 index 000000000..d51d60587 --- /dev/null +++ b/chatbot/src/model/QueryEntitiesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::QueryEntitiesRequest; + +QueryEntitiesRequest::QueryEntitiesRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QueryEntities") +{} + +QueryEntitiesRequest::~QueryEntitiesRequest() +{} + +std::string QueryEntitiesRequest::getEntityName()const +{ + return entityName_; +} + +void QueryEntitiesRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setCoreParameter("EntityName", entityName); +} + +int QueryEntitiesRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryEntitiesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long QueryEntitiesRequest::getDialogId()const +{ + return dialogId_; +} + +void QueryEntitiesRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + +int QueryEntitiesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryEntitiesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/chatbot/src/model/QueryEntitiesResult.cc b/chatbot/src/model/QueryEntitiesResult.cc new file mode 100644 index 000000000..0833537b7 --- /dev/null +++ b/chatbot/src/model/QueryEntitiesResult.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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QueryEntitiesResult::QueryEntitiesResult() : + ServiceResult() +{} + +QueryEntitiesResult::QueryEntitiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryEntitiesResult::~QueryEntitiesResult() +{} + +void QueryEntitiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allEntities = value["Entities"]["Entity"]; + for (auto value : allEntities) + { + Entity entitiesObject; + if(!value["EntityId"].isNull()) + entitiesObject.entityId = std::stol(value["EntityId"].asString()); + if(!value["EntityName"].isNull()) + entitiesObject.entityName = value["EntityName"].asString(); + if(!value["EntityType"].isNull()) + entitiesObject.entityType = value["EntityType"].asString(); + if(!value["Regex"].isNull()) + entitiesObject.regex = value["Regex"].asString(); + if(!value["CreateTime"].isNull()) + entitiesObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + entitiesObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CreateUserId"].isNull()) + entitiesObject.createUserId = value["CreateUserId"].asString(); + if(!value["CreateUserName"].isNull()) + entitiesObject.createUserName = value["CreateUserName"].asString(); + if(!value["ModifyUserId"].isNull()) + entitiesObject.modifyUserId = value["ModifyUserId"].asString(); + if(!value["ModifyUserName"].isNull()) + entitiesObject.modifyUserName = value["ModifyUserName"].asString(); + auto allMembers = value["Members"]["MembersItem"]; + for (auto value : allMembers) + { + Entity::MembersItem membersObject; + if(!value["MemberName"].isNull()) + membersObject.memberName = value["MemberName"].asString(); + auto allSynonyms = value["Synonyms"]["Synonyms"]; + for (auto value : allSynonyms) + membersObject.synonyms.push_back(value.asString()); + entitiesObject.members.push_back(membersObject); + } + entities_.push_back(entitiesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int QueryEntitiesResult::getTotalCount()const +{ + return totalCount_; +} + +int QueryEntitiesResult::getPageSize()const +{ + return pageSize_; +} + +int QueryEntitiesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector QueryEntitiesResult::getEntities()const +{ + return entities_; +} + diff --git a/chatbot/src/model/QueryIntentsRequest.cc b/chatbot/src/model/QueryIntentsRequest.cc new file mode 100644 index 000000000..cf16dfde1 --- /dev/null +++ b/chatbot/src/model/QueryIntentsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::QueryIntentsRequest; + +QueryIntentsRequest::QueryIntentsRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QueryIntents") +{} + +QueryIntentsRequest::~QueryIntentsRequest() +{} + +std::string QueryIntentsRequest::getIntentName()const +{ + return intentName_; +} + +void QueryIntentsRequest::setIntentName(const std::string& intentName) +{ + intentName_ = intentName; + setCoreParameter("IntentName", intentName); +} + +int QueryIntentsRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryIntentsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long QueryIntentsRequest::getDialogId()const +{ + return dialogId_; +} + +void QueryIntentsRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + +int QueryIntentsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryIntentsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/chatbot/src/model/QueryIntentsResult.cc b/chatbot/src/model/QueryIntentsResult.cc new file mode 100644 index 000000000..117437037 --- /dev/null +++ b/chatbot/src/model/QueryIntentsResult.cc @@ -0,0 +1,163 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QueryIntentsResult::QueryIntentsResult() : + ServiceResult() +{} + +QueryIntentsResult::QueryIntentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryIntentsResult::~QueryIntentsResult() +{} + +void QueryIntentsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allIntents = value["Intents"]["Intent"]; + for (auto value : allIntents) + { + Intent intentsObject; + if(!value["IntentId"].isNull()) + intentsObject.intentId = std::stol(value["IntentId"].asString()); + if(!value["Name"].isNull()) + intentsObject.name = value["Name"].asString(); + if(!value["CreateTime"].isNull()) + intentsObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + intentsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CreateUserId"].isNull()) + intentsObject.createUserId = value["CreateUserId"].asString(); + if(!value["CreateUserName"].isNull()) + intentsObject.createUserName = value["CreateUserName"].asString(); + if(!value["ModifyUserId"].isNull()) + intentsObject.modifyUserId = value["ModifyUserId"].asString(); + if(!value["ModifyUserName"].isNull()) + intentsObject.modifyUserName = value["ModifyUserName"].asString(); + auto allUserSay = value["UserSay"]["UserSayItem"]; + for (auto value : allUserSay) + { + Intent::UserSayItem userSayObject; + if(!value["Strict"].isNull()) + userSayObject.strict = value["Strict"].asString() == "true"; + if(!value["UserSayId"].isNull()) + userSayObject.userSayId = value["UserSayId"].asString(); + auto allData = value["Data"]["DataItem"]; + for (auto value : allData) + { + Intent::UserSayItem::DataItem dataObject; + if(!value["Text"].isNull()) + dataObject.text = value["Text"].asString(); + if(!value["SlotId"].isNull()) + dataObject.slotId = value["SlotId"].asString(); + userSayObject.data.push_back(dataObject); + } + intentsObject.userSay.push_back(userSayObject); + } + auto allRuleCheck = value["RuleCheck"]["RuleCheckItem"]; + for (auto value : allRuleCheck) + { + Intent::RuleCheckItem ruleCheckObject; + if(!value["Text"].isNull()) + ruleCheckObject.text = value["Text"].asString(); + if(!value["Strict"].isNull()) + ruleCheckObject.strict = value["Strict"].asString() == "true"; + auto allWarning = value["Warning"]["Warning"]; + for (auto value : allWarning) + ruleCheckObject.warning.push_back(value.asString()); + auto allError = value["Error"]["Error"]; + for (auto value : allError) + ruleCheckObject.error.push_back(value.asString()); + intentsObject.ruleCheck.push_back(ruleCheckObject); + } + auto allSlot = value["Slot"]["SlotItem"]; + for (auto value : allSlot) + { + Intent::SlotItem slotObject; + if(!value["Name"].isNull()) + slotObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + slotObject.value = value["Value"].asString(); + if(!value["IsNecessary"].isNull()) + slotObject.isNecessary = value["IsNecessary"].asString() == "true"; + if(!value["IsArray"].isNull()) + slotObject.isArray = value["IsArray"].asString() == "true"; + if(!value["LifeSpan"].isNull()) + slotObject.lifeSpan = std::stoi(value["LifeSpan"].asString()); + if(!value["SlotId"].isNull()) + slotObject.slotId = value["SlotId"].asString(); + auto allTags = value["Tags"]["TagsItem"]; + for (auto value : allTags) + { + Intent::SlotItem::TagsItem tagsObject; + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + if(!value["UserSayId"].isNull()) + tagsObject.userSayId = value["UserSayId"].asString(); + slotObject.tags.push_back(tagsObject); + } + auto allQuestion = value["Question"]["Question"]; + for (auto value : allQuestion) + slotObject.question.push_back(value.asString()); + intentsObject.slot.push_back(slotObject); + } + intents_.push_back(intentsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int QueryIntentsResult::getTotalCount()const +{ + return totalCount_; +} + +int QueryIntentsResult::getPageSize()const +{ + return pageSize_; +} + +int QueryIntentsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector QueryIntentsResult::getIntents()const +{ + return intents_; +} + diff --git a/chatbot/src/model/QueryKnowledgesRequest.cc b/chatbot/src/model/QueryKnowledgesRequest.cc new file mode 100644 index 000000000..9a40b99a1 --- /dev/null +++ b/chatbot/src/model/QueryKnowledgesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::QueryKnowledgesRequest; + +QueryKnowledgesRequest::QueryKnowledgesRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QueryKnowledges") +{} + +QueryKnowledgesRequest::~QueryKnowledgesRequest() +{} + +int QueryKnowledgesRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryKnowledgesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryKnowledgesRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void QueryKnowledgesRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + +std::string QueryKnowledgesRequest::getKnowledgeTitle()const +{ + return knowledgeTitle_; +} + +void QueryKnowledgesRequest::setKnowledgeTitle(const std::string& knowledgeTitle) +{ + knowledgeTitle_ = knowledgeTitle; + setCoreParameter("KnowledgeTitle", knowledgeTitle); +} + +int QueryKnowledgesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryKnowledgesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +long QueryKnowledgesRequest::getCategoryId()const +{ + return categoryId_; +} + +void QueryKnowledgesRequest::setCategoryId(long categoryId) +{ + categoryId_ = categoryId; + setCoreParameter("CategoryId", std::to_string(categoryId)); +} + diff --git a/chatbot/src/model/QueryKnowledgesResult.cc b/chatbot/src/model/QueryKnowledgesResult.cc new file mode 100644 index 000000000..d069a9497 --- /dev/null +++ b/chatbot/src/model/QueryKnowledgesResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QueryKnowledgesResult::QueryKnowledgesResult() : + ServiceResult() +{} + +QueryKnowledgesResult::QueryKnowledgesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryKnowledgesResult::~QueryKnowledgesResult() +{} + +void QueryKnowledgesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allKnowledges = value["Knowledges"]["Knowledge"]; + for (auto value : allKnowledges) + { + Knowledge knowledgesObject; + if(!value["KnowledgeId"].isNull()) + knowledgesObject.knowledgeId = std::stol(value["KnowledgeId"].asString()); + if(!value["ModifyTime"].isNull()) + knowledgesObject.modifyTime = value["ModifyTime"].asString(); + if(!value["ModifyUserName"].isNull()) + knowledgesObject.modifyUserName = value["ModifyUserName"].asString(); + if(!value["CreateTime"].isNull()) + knowledgesObject.createTime = value["CreateTime"].asString(); + if(!value["CreateUserName"].isNull()) + knowledgesObject.createUserName = value["CreateUserName"].asString(); + if(!value["CategoryId"].isNull()) + knowledgesObject.categoryId = std::stol(value["CategoryId"].asString()); + if(!value["KnowledgeStatus"].isNull()) + knowledgesObject.knowledgeStatus = std::stoi(value["KnowledgeStatus"].asString()); + if(!value["KnowledgeTitle"].isNull()) + knowledgesObject.knowledgeTitle = value["KnowledgeTitle"].asString(); + if(!value["StartDate"].isNull()) + knowledgesObject.startDate = value["StartDate"].asString(); + if(!value["EndDate"].isNull()) + knowledgesObject.endDate = value["EndDate"].asString(); + if(!value["Version"].isNull()) + knowledgesObject.version = value["Version"].asString(); + auto allCoreWords = value["CoreWords"]["CoreWord"]; + for (auto value : allCoreWords) + knowledgesObject.coreWords.push_back(value.asString()); + knowledges_.push_back(knowledgesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int QueryKnowledgesResult::getTotalCount()const +{ + return totalCount_; +} + +int QueryKnowledgesResult::getPageSize()const +{ + return pageSize_; +} + +int QueryKnowledgesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector QueryKnowledgesResult::getKnowledges()const +{ + return knowledges_; +} + diff --git a/chatbot/src/model/QueryPerspectivesRequest.cc b/chatbot/src/model/QueryPerspectivesRequest.cc new file mode 100644 index 000000000..88f593886 --- /dev/null +++ b/chatbot/src/model/QueryPerspectivesRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::QueryPerspectivesRequest; + +QueryPerspectivesRequest::QueryPerspectivesRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QueryPerspectives") +{} + +QueryPerspectivesRequest::~QueryPerspectivesRequest() +{} + diff --git a/chatbot/src/model/QueryPerspectivesResult.cc b/chatbot/src/model/QueryPerspectivesResult.cc new file mode 100644 index 000000000..f2dac8993 --- /dev/null +++ b/chatbot/src/model/QueryPerspectivesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QueryPerspectivesResult::QueryPerspectivesResult() : + ServiceResult() +{} + +QueryPerspectivesResult::QueryPerspectivesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryPerspectivesResult::~QueryPerspectivesResult() +{} + +void QueryPerspectivesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allPerspectives = value["Perspectives"]["Perspective"]; + for (auto value : allPerspectives) + { + Perspective perspectivesObject; + if(!value["ModifyUserName"].isNull()) + perspectivesObject.modifyUserName = value["ModifyUserName"].asString(); + if(!value["ModifyTime"].isNull()) + perspectivesObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + perspectivesObject.createTime = value["CreateTime"].asString(); + if(!value["SelfDefine"].isNull()) + perspectivesObject.selfDefine = value["SelfDefine"].asString(); + if(!value["PerspectiveId"].isNull()) + perspectivesObject.perspectiveId = value["PerspectiveId"].asString(); + if(!value["CreateUserName"].isNull()) + perspectivesObject.createUserName = value["CreateUserName"].asString(); + if(!value["PerspectiveCode"].isNull()) + perspectivesObject.perspectiveCode = value["PerspectiveCode"].asString(); + if(!value["Status"].isNull()) + perspectivesObject.status = std::stoi(value["Status"].asString()); + if(!value["Name"].isNull()) + perspectivesObject.name = value["Name"].asString(); + perspectives_.push_back(perspectivesObject); + } + +} + +std::vector QueryPerspectivesResult::getPerspectives()const +{ + return perspectives_; +} + diff --git a/chatbot/src/model/QuerySystemEntitiesRequest.cc b/chatbot/src/model/QuerySystemEntitiesRequest.cc new file mode 100644 index 000000000..771ad5484 --- /dev/null +++ b/chatbot/src/model/QuerySystemEntitiesRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::QuerySystemEntitiesRequest; + +QuerySystemEntitiesRequest::QuerySystemEntitiesRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "QuerySystemEntities") +{} + +QuerySystemEntitiesRequest::~QuerySystemEntitiesRequest() +{} + +std::string QuerySystemEntitiesRequest::getEntityName()const +{ + return entityName_; +} + +void QuerySystemEntitiesRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setCoreParameter("EntityName", entityName); +} + diff --git a/chatbot/src/model/QuerySystemEntitiesResult.cc b/chatbot/src/model/QuerySystemEntitiesResult.cc new file mode 100644 index 000000000..5aafcc650 --- /dev/null +++ b/chatbot/src/model/QuerySystemEntitiesResult.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::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +QuerySystemEntitiesResult::QuerySystemEntitiesResult() : + ServiceResult() +{} + +QuerySystemEntitiesResult::QuerySystemEntitiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySystemEntitiesResult::~QuerySystemEntitiesResult() +{} + +void QuerySystemEntitiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSystemEntities = value["SystemEntities"]["Entity"]; + for (auto value : allSystemEntities) + { + Entity systemEntitiesObject; + if(!value["DefaultQuestion"].isNull()) + systemEntitiesObject.defaultQuestion = value["DefaultQuestion"].asString(); + if(!value["EntityName"].isNull()) + systemEntitiesObject.entityName = value["EntityName"].asString(); + if(!value["EntityCode"].isNull()) + systemEntitiesObject.entityCode = value["EntityCode"].asString(); + systemEntities_.push_back(systemEntitiesObject); + } + +} + +std::vector QuerySystemEntitiesResult::getSystemEntities()const +{ + return systemEntities_; +} + diff --git a/chatbot/src/model/RemoveEntityMemberRequest.cc b/chatbot/src/model/RemoveEntityMemberRequest.cc new file mode 100644 index 000000000..07e0a16e6 --- /dev/null +++ b/chatbot/src/model/RemoveEntityMemberRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::RemoveEntityMemberRequest; + +RemoveEntityMemberRequest::RemoveEntityMemberRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "RemoveEntityMember") +{} + +RemoveEntityMemberRequest::~RemoveEntityMemberRequest() +{} + +std::string RemoveEntityMemberRequest::getRemoveType()const +{ + return removeType_; +} + +void RemoveEntityMemberRequest::setRemoveType(const std::string& removeType) +{ + removeType_ = removeType; + setCoreParameter("RemoveType", removeType); +} + +std::string RemoveEntityMemberRequest::getMember()const +{ + return member_; +} + +void RemoveEntityMemberRequest::setMember(const std::string& member) +{ + member_ = member; + setCoreParameter("Member", member); +} + +long RemoveEntityMemberRequest::getEntityId()const +{ + return entityId_; +} + +void RemoveEntityMemberRequest::setEntityId(long entityId) +{ + entityId_ = entityId; + setCoreParameter("EntityId", std::to_string(entityId)); +} + diff --git a/chatbot/src/model/RemoveEntityMemberResult.cc b/chatbot/src/model/RemoveEntityMemberResult.cc new file mode 100644 index 000000000..8396b22a1 --- /dev/null +++ b/chatbot/src/model/RemoveEntityMemberResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +RemoveEntityMemberResult::RemoveEntityMemberResult() : + ServiceResult() +{} + +RemoveEntityMemberResult::RemoveEntityMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveEntityMemberResult::~RemoveEntityMemberResult() +{} + +void RemoveEntityMemberResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["EntityId"].isNull()) + entityId_ = value["EntityId"].asString(); + +} + +std::string RemoveEntityMemberResult::getEntityId()const +{ + return entityId_; +} + diff --git a/chatbot/src/model/RemoveSynonymRequest.cc b/chatbot/src/model/RemoveSynonymRequest.cc new file mode 100644 index 000000000..9003d06da --- /dev/null +++ b/chatbot/src/model/RemoveSynonymRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::RemoveSynonymRequest; + +RemoveSynonymRequest::RemoveSynonymRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "RemoveSynonym") +{} + +RemoveSynonymRequest::~RemoveSynonymRequest() +{} + +std::string RemoveSynonymRequest::getSynonym()const +{ + return synonym_; +} + +void RemoveSynonymRequest::setSynonym(const std::string& synonym) +{ + synonym_ = synonym; + setCoreParameter("Synonym", synonym); +} + +std::string RemoveSynonymRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void RemoveSynonymRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + diff --git a/chatbot/src/model/RemoveSynonymResult.cc b/chatbot/src/model/RemoveSynonymResult.cc new file mode 100644 index 000000000..aa0df73ba --- /dev/null +++ b/chatbot/src/model/RemoveSynonymResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +RemoveSynonymResult::RemoveSynonymResult() : + ServiceResult() +{} + +RemoveSynonymResult::RemoveSynonymResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveSynonymResult::~RemoveSynonymResult() +{} + +void RemoveSynonymResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/TestDialogFlowRequest.cc b/chatbot/src/model/TestDialogFlowRequest.cc new file mode 100644 index 000000000..02f6cd36c --- /dev/null +++ b/chatbot/src/model/TestDialogFlowRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::TestDialogFlowRequest; + +TestDialogFlowRequest::TestDialogFlowRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "TestDialogFlow") +{} + +TestDialogFlowRequest::~TestDialogFlowRequest() +{} + +long TestDialogFlowRequest::getDialogId()const +{ + return dialogId_; +} + +void TestDialogFlowRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/TestDialogFlowResult.cc b/chatbot/src/model/TestDialogFlowResult.cc new file mode 100644 index 000000000..f4b3bc709 --- /dev/null +++ b/chatbot/src/model/TestDialogFlowResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +TestDialogFlowResult::TestDialogFlowResult() : + ServiceResult() +{} + +TestDialogFlowResult::TestDialogFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TestDialogFlowResult::~TestDialogFlowResult() +{} + +void TestDialogFlowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/UpdateCategoryRequest.cc b/chatbot/src/model/UpdateCategoryRequest.cc new file mode 100644 index 000000000..536a97b3d --- /dev/null +++ b/chatbot/src/model/UpdateCategoryRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::UpdateCategoryRequest; + +UpdateCategoryRequest::UpdateCategoryRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdateCategory") +{} + +UpdateCategoryRequest::~UpdateCategoryRequest() +{} + +std::string UpdateCategoryRequest::getName()const +{ + return name_; +} + +void UpdateCategoryRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long UpdateCategoryRequest::getCategoryId()const +{ + return categoryId_; +} + +void UpdateCategoryRequest::setCategoryId(long categoryId) +{ + categoryId_ = categoryId; + setCoreParameter("CategoryId", std::to_string(categoryId)); +} + diff --git a/chatbot/src/model/UpdateCategoryResult.cc b/chatbot/src/model/UpdateCategoryResult.cc new file mode 100644 index 000000000..419f3438e --- /dev/null +++ b/chatbot/src/model/UpdateCategoryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdateCategoryResult::UpdateCategoryResult() : + ServiceResult() +{} + +UpdateCategoryResult::UpdateCategoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCategoryResult::~UpdateCategoryResult() +{} + +void UpdateCategoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool UpdateCategoryResult::getSuccess()const +{ + return success_; +} + diff --git a/chatbot/src/model/UpdateCoreWordRequest.cc b/chatbot/src/model/UpdateCoreWordRequest.cc new file mode 100644 index 000000000..022432799 --- /dev/null +++ b/chatbot/src/model/UpdateCoreWordRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::UpdateCoreWordRequest; + +UpdateCoreWordRequest::UpdateCoreWordRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdateCoreWord") +{} + +UpdateCoreWordRequest::~UpdateCoreWordRequest() +{} + +std::string UpdateCoreWordRequest::getCoreWordName()const +{ + return coreWordName_; +} + +void UpdateCoreWordRequest::setCoreWordName(const std::string& coreWordName) +{ + coreWordName_ = coreWordName; + setCoreParameter("CoreWordName", coreWordName); +} + +std::string UpdateCoreWordRequest::getCoreWordCode()const +{ + return coreWordCode_; +} + +void UpdateCoreWordRequest::setCoreWordCode(const std::string& coreWordCode) +{ + coreWordCode_ = coreWordCode; + setCoreParameter("CoreWordCode", coreWordCode); +} + diff --git a/chatbot/src/model/UpdateCoreWordResult.cc b/chatbot/src/model/UpdateCoreWordResult.cc new file mode 100644 index 000000000..812ff8811 --- /dev/null +++ b/chatbot/src/model/UpdateCoreWordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdateCoreWordResult::UpdateCoreWordResult() : + ServiceResult() +{} + +UpdateCoreWordResult::UpdateCoreWordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCoreWordResult::~UpdateCoreWordResult() +{} + +void UpdateCoreWordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool UpdateCoreWordResult::getSuccess()const +{ + return success_; +} + diff --git a/chatbot/src/model/UpdateDialogFlowRequest.cc b/chatbot/src/model/UpdateDialogFlowRequest.cc new file mode 100644 index 000000000..d904671fd --- /dev/null +++ b/chatbot/src/model/UpdateDialogFlowRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::UpdateDialogFlowRequest; + +UpdateDialogFlowRequest::UpdateDialogFlowRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdateDialogFlow") +{} + +UpdateDialogFlowRequest::~UpdateDialogFlowRequest() +{} + +std::string UpdateDialogFlowRequest::getModuleDefinition()const +{ + return moduleDefinition_; +} + +void UpdateDialogFlowRequest::setModuleDefinition(const std::string& moduleDefinition) +{ + moduleDefinition_ = moduleDefinition; + setCoreParameter("ModuleDefinition", moduleDefinition); +} + +long UpdateDialogFlowRequest::getDialogId()const +{ + return dialogId_; +} + +void UpdateDialogFlowRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + diff --git a/chatbot/src/model/UpdateDialogFlowResult.cc b/chatbot/src/model/UpdateDialogFlowResult.cc new file mode 100644 index 000000000..e20569ade --- /dev/null +++ b/chatbot/src/model/UpdateDialogFlowResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdateDialogFlowResult::UpdateDialogFlowResult() : + ServiceResult() +{} + +UpdateDialogFlowResult::UpdateDialogFlowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDialogFlowResult::~UpdateDialogFlowResult() +{} + +void UpdateDialogFlowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/UpdateDialogRequest.cc b/chatbot/src/model/UpdateDialogRequest.cc new file mode 100644 index 000000000..957f9adff --- /dev/null +++ b/chatbot/src/model/UpdateDialogRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::UpdateDialogRequest; + +UpdateDialogRequest::UpdateDialogRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdateDialog") +{} + +UpdateDialogRequest::~UpdateDialogRequest() +{} + +std::string UpdateDialogRequest::getDescription()const +{ + return description_; +} + +void UpdateDialogRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long UpdateDialogRequest::getDialogId()const +{ + return dialogId_; +} + +void UpdateDialogRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + +std::string UpdateDialogRequest::getDialogName()const +{ + return dialogName_; +} + +void UpdateDialogRequest::setDialogName(const std::string& dialogName) +{ + dialogName_ = dialogName; + setCoreParameter("DialogName", dialogName); +} + diff --git a/chatbot/src/model/UpdateDialogResult.cc b/chatbot/src/model/UpdateDialogResult.cc new file mode 100644 index 000000000..8e3edf676 --- /dev/null +++ b/chatbot/src/model/UpdateDialogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdateDialogResult::UpdateDialogResult() : + ServiceResult() +{} + +UpdateDialogResult::UpdateDialogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDialogResult::~UpdateDialogResult() +{} + +void UpdateDialogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/chatbot/src/model/UpdateEntityRequest.cc b/chatbot/src/model/UpdateEntityRequest.cc new file mode 100644 index 000000000..064d9b0f4 --- /dev/null +++ b/chatbot/src/model/UpdateEntityRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Chatbot::Model::UpdateEntityRequest; + +UpdateEntityRequest::UpdateEntityRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdateEntity") +{} + +UpdateEntityRequest::~UpdateEntityRequest() +{} + +std::string UpdateEntityRequest::getRegex()const +{ + return regex_; +} + +void UpdateEntityRequest::setRegex(const std::string& regex) +{ + regex_ = regex; + setCoreParameter("Regex", regex); +} + +std::string UpdateEntityRequest::getEntityType()const +{ + return entityType_; +} + +void UpdateEntityRequest::setEntityType(const std::string& entityType) +{ + entityType_ = entityType; + setCoreParameter("EntityType", entityType); +} + +std::string UpdateEntityRequest::getMembers()const +{ + return members_; +} + +void UpdateEntityRequest::setMembers(const std::string& members) +{ + members_ = members; + setCoreParameter("Members", members); +} + +std::string UpdateEntityRequest::getEntityName()const +{ + return entityName_; +} + +void UpdateEntityRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setCoreParameter("EntityName", entityName); +} + +long UpdateEntityRequest::getEntityId()const +{ + return entityId_; +} + +void UpdateEntityRequest::setEntityId(long entityId) +{ + entityId_ = entityId; + setCoreParameter("EntityId", std::to_string(entityId)); +} + diff --git a/chatbot/src/model/UpdateEntityResult.cc b/chatbot/src/model/UpdateEntityResult.cc new file mode 100644 index 000000000..06decce29 --- /dev/null +++ b/chatbot/src/model/UpdateEntityResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdateEntityResult::UpdateEntityResult() : + ServiceResult() +{} + +UpdateEntityResult::UpdateEntityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEntityResult::~UpdateEntityResult() +{} + +void UpdateEntityResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["EntityId"].isNull()) + entityId_ = value["EntityId"].asString(); + +} + +std::string UpdateEntityResult::getEntityId()const +{ + return entityId_; +} + diff --git a/chatbot/src/model/UpdateIntentRequest.cc b/chatbot/src/model/UpdateIntentRequest.cc new file mode 100644 index 000000000..6d80faa47 --- /dev/null +++ b/chatbot/src/model/UpdateIntentRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::UpdateIntentRequest; + +UpdateIntentRequest::UpdateIntentRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdateIntent") +{} + +UpdateIntentRequest::~UpdateIntentRequest() +{} + +std::string UpdateIntentRequest::getIntentDefinition()const +{ + return intentDefinition_; +} + +void UpdateIntentRequest::setIntentDefinition(const std::string& intentDefinition) +{ + intentDefinition_ = intentDefinition; + setCoreParameter("IntentDefinition", intentDefinition); +} + +long UpdateIntentRequest::getIntentId()const +{ + return intentId_; +} + +void UpdateIntentRequest::setIntentId(long intentId) +{ + intentId_ = intentId; + setCoreParameter("IntentId", std::to_string(intentId)); +} + diff --git a/chatbot/src/model/UpdateIntentResult.cc b/chatbot/src/model/UpdateIntentResult.cc new file mode 100644 index 000000000..5d6c53bce --- /dev/null +++ b/chatbot/src/model/UpdateIntentResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdateIntentResult::UpdateIntentResult() : + ServiceResult() +{} + +UpdateIntentResult::UpdateIntentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIntentResult::~UpdateIntentResult() +{} + +void UpdateIntentResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["IntentId"].isNull()) + intentId_ = value["IntentId"].asString(); + +} + +std::string UpdateIntentResult::getIntentId()const +{ + return intentId_; +} + diff --git a/chatbot/src/model/UpdateKnowledgeRequest.cc b/chatbot/src/model/UpdateKnowledgeRequest.cc new file mode 100644 index 000000000..c0cd5aeb3 --- /dev/null +++ b/chatbot/src/model/UpdateKnowledgeRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::UpdateKnowledgeRequest; + +UpdateKnowledgeRequest::UpdateKnowledgeRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdateKnowledge") +{} + +UpdateKnowledgeRequest::~UpdateKnowledgeRequest() +{} + +std::string UpdateKnowledgeRequest::getKnowledge()const +{ + return knowledge_; +} + +void UpdateKnowledgeRequest::setKnowledge(const std::string& knowledge) +{ + knowledge_ = knowledge; + setCoreParameter("Knowledge", knowledge); +} + diff --git a/chatbot/src/model/UpdateKnowledgeResult.cc b/chatbot/src/model/UpdateKnowledgeResult.cc new file mode 100644 index 000000000..f0a4f1243 --- /dev/null +++ b/chatbot/src/model/UpdateKnowledgeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdateKnowledgeResult::UpdateKnowledgeResult() : + ServiceResult() +{} + +UpdateKnowledgeResult::UpdateKnowledgeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateKnowledgeResult::~UpdateKnowledgeResult() +{} + +void UpdateKnowledgeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["KnowledgeId"].isNull()) + knowledgeId_ = std::stol(value["KnowledgeId"].asString()); + +} + +long UpdateKnowledgeResult::getKnowledgeId()const +{ + return knowledgeId_; +} + diff --git a/chatbot/src/model/UpdatePerspectiveRequest.cc b/chatbot/src/model/UpdatePerspectiveRequest.cc new file mode 100644 index 000000000..e90a5fa39 --- /dev/null +++ b/chatbot/src/model/UpdatePerspectiveRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Chatbot::Model::UpdatePerspectiveRequest; + +UpdatePerspectiveRequest::UpdatePerspectiveRequest() : + RpcServiceRequest("chatbot", "2017-10-11", "UpdatePerspective") +{} + +UpdatePerspectiveRequest::~UpdatePerspectiveRequest() +{} + +std::string UpdatePerspectiveRequest::getPerspectiveId()const +{ + return perspectiveId_; +} + +void UpdatePerspectiveRequest::setPerspectiveId(const std::string& perspectiveId) +{ + perspectiveId_ = perspectiveId; + setCoreParameter("PerspectiveId", perspectiveId); +} + +std::string UpdatePerspectiveRequest::getName()const +{ + return name_; +} + +void UpdatePerspectiveRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/chatbot/src/model/UpdatePerspectiveResult.cc b/chatbot/src/model/UpdatePerspectiveResult.cc new file mode 100644 index 000000000..505cc7463 --- /dev/null +++ b/chatbot/src/model/UpdatePerspectiveResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Chatbot; +using namespace AlibabaCloud::Chatbot::Model; + +UpdatePerspectiveResult::UpdatePerspectiveResult() : + ServiceResult() +{} + +UpdatePerspectiveResult::UpdatePerspectiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePerspectiveResult::~UpdatePerspectiveResult() +{} + +void UpdatePerspectiveResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/CMakeLists.txt b/cloudapi/CMakeLists.txt new file mode 100644 index 000000000..50c55730a --- /dev/null +++ b/cloudapi/CMakeLists.txt @@ -0,0 +1,494 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(cloudapi_public_header + include/alibabacloud/cloudapi/CloudAPIClient.h + include/alibabacloud/cloudapi/CloudAPIExport.h ) + +set(cloudapi_public_header_model + include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsRequest.h + include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsResult.h + include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsRequest.h + include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsResult.h + include/alibabacloud/cloudapi/model/UntagResourcesRequest.h + include/alibabacloud/cloudapi/model/UntagResourcesResult.h + include/alibabacloud/cloudapi/model/DescribeLogConfigRequest.h + include/alibabacloud/cloudapi/model/DescribeLogConfigResult.h + include/alibabacloud/cloudapi/model/SetApisAuthoritiesRequest.h + include/alibabacloud/cloudapi/model/SetApisAuthoritiesResult.h + include/alibabacloud/cloudapi/model/DescribeTrafficControlsRequest.h + include/alibabacloud/cloudapi/model/DescribeTrafficControlsResult.h + include/alibabacloud/cloudapi/model/SetDomainRequest.h + include/alibabacloud/cloudapi/model/SetDomainResult.h + include/alibabacloud/cloudapi/model/DeleteIpControlRequest.h + include/alibabacloud/cloudapi/model/DeleteIpControlResult.h + include/alibabacloud/cloudapi/model/DeleteSignatureRequest.h + include/alibabacloud/cloudapi/model/DeleteSignatureResult.h + include/alibabacloud/cloudapi/model/DeleteTrafficControlRequest.h + include/alibabacloud/cloudapi/model/DeleteTrafficControlResult.h + include/alibabacloud/cloudapi/model/DescribeApiLatencyDataRequest.h + include/alibabacloud/cloudapi/model/DescribeApiLatencyDataResult.h + include/alibabacloud/cloudapi/model/DescribeSystemParametersRequest.h + include/alibabacloud/cloudapi/model/DescribeSystemParametersResult.h + include/alibabacloud/cloudapi/model/DescribeApiHistoryRequest.h + include/alibabacloud/cloudapi/model/DescribeApiHistoryResult.h + include/alibabacloud/cloudapi/model/CreateIntranetDomainRequest.h + include/alibabacloud/cloudapi/model/CreateIntranetDomainResult.h + include/alibabacloud/cloudapi/model/DescribeApiErrorDataRequest.h + include/alibabacloud/cloudapi/model/DescribeApiErrorDataResult.h + include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlRequest.h + include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlResult.h + include/alibabacloud/cloudapi/model/RemoveIpControlApisRequest.h + include/alibabacloud/cloudapi/model/RemoveIpControlApisResult.h + include/alibabacloud/cloudapi/model/CreateApiRequest.h + include/alibabacloud/cloudapi/model/CreateApiResult.h + include/alibabacloud/cloudapi/model/DescribeApiGroupRequest.h + include/alibabacloud/cloudapi/model/DescribeApiGroupResult.h + include/alibabacloud/cloudapi/model/DeleteAppRequest.h + include/alibabacloud/cloudapi/model/DeleteAppResult.h + include/alibabacloud/cloudapi/model/DescribeApiHistoriesRequest.h + include/alibabacloud/cloudapi/model/DescribeApiHistoriesResult.h + include/alibabacloud/cloudapi/model/DeleteApiGroupRequest.h + include/alibabacloud/cloudapi/model/DeleteApiGroupResult.h + include/alibabacloud/cloudapi/model/RemoveTrafficControlApisRequest.h + include/alibabacloud/cloudapi/model/RemoveTrafficControlApisResult.h + include/alibabacloud/cloudapi/model/DescribeApiGroupsRequest.h + include/alibabacloud/cloudapi/model/DescribeApiGroupsResult.h + include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlRequest.h + include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlResult.h + include/alibabacloud/cloudapi/model/AbolishApiRequest.h + include/alibabacloud/cloudapi/model/AbolishApiResult.h + include/alibabacloud/cloudapi/model/DescribeApisRequest.h + include/alibabacloud/cloudapi/model/DescribeApisResult.h + include/alibabacloud/cloudapi/model/SetIpControlApisRequest.h + include/alibabacloud/cloudapi/model/SetIpControlApisResult.h + include/alibabacloud/cloudapi/model/CreateApiGroupRequest.h + include/alibabacloud/cloudapi/model/CreateApiGroupResult.h + include/alibabacloud/cloudapi/model/DescribeDomainsResolutionRequest.h + include/alibabacloud/cloudapi/model/DescribeDomainsResolutionResult.h + include/alibabacloud/cloudapi/model/DescribeAppAttributesRequest.h + include/alibabacloud/cloudapi/model/DescribeAppAttributesResult.h + include/alibabacloud/cloudapi/model/DeleteApiRequest.h + include/alibabacloud/cloudapi/model/DeleteApiResult.h + include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupRequest.h + include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupResult.h + include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemRequest.h + include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemResult.h + include/alibabacloud/cloudapi/model/DescribeApiDocRequest.h + include/alibabacloud/cloudapi/model/DescribeApiDocResult.h + include/alibabacloud/cloudapi/model/SdkGenerateByAppRequest.h + include/alibabacloud/cloudapi/model/SdkGenerateByAppResult.h + include/alibabacloud/cloudapi/model/DeleteDomainCertificateRequest.h + include/alibabacloud/cloudapi/model/DeleteDomainCertificateResult.h + include/alibabacloud/cloudapi/model/CreateTrafficControlRequest.h + include/alibabacloud/cloudapi/model/CreateTrafficControlResult.h + include/alibabacloud/cloudapi/model/SetDomainCertificateRequest.h + include/alibabacloud/cloudapi/model/SetDomainCertificateResult.h + include/alibabacloud/cloudapi/model/DescribeSignaturesRequest.h + include/alibabacloud/cloudapi/model/DescribeSignaturesResult.h + include/alibabacloud/cloudapi/model/SetAppsAuthoritiesRequest.h + include/alibabacloud/cloudapi/model/SetAppsAuthoritiesResult.h + include/alibabacloud/cloudapi/model/SdkGenerateByGroupRequest.h + include/alibabacloud/cloudapi/model/SdkGenerateByGroupResult.h + include/alibabacloud/cloudapi/model/DescribeApiStageRequest.h + include/alibabacloud/cloudapi/model/DescribeApiStageResult.h + include/alibabacloud/cloudapi/model/TagResourcesRequest.h + include/alibabacloud/cloudapi/model/TagResourcesResult.h + include/alibabacloud/cloudapi/model/DescribeApiTrafficDataRequest.h + include/alibabacloud/cloudapi/model/DescribeApiTrafficDataResult.h + include/alibabacloud/cloudapi/model/CreateAppRequest.h + include/alibabacloud/cloudapi/model/CreateAppResult.h + include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlRequest.h + include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlResult.h + include/alibabacloud/cloudapi/model/RemoveVpcAccessRequest.h + include/alibabacloud/cloudapi/model/RemoveVpcAccessResult.h + include/alibabacloud/cloudapi/model/ResetAppCodeRequest.h + include/alibabacloud/cloudapi/model/ResetAppCodeResult.h + include/alibabacloud/cloudapi/model/ModifyIpControlRequest.h + include/alibabacloud/cloudapi/model/ModifyIpControlResult.h + include/alibabacloud/cloudapi/model/DescribeAppsRequest.h + include/alibabacloud/cloudapi/model/DescribeAppsResult.h + include/alibabacloud/cloudapi/model/DeleteApiStageVariableRequest.h + include/alibabacloud/cloudapi/model/DeleteApiStageVariableResult.h + include/alibabacloud/cloudapi/model/ListTagResourcesRequest.h + include/alibabacloud/cloudapi/model/ListTagResourcesResult.h + include/alibabacloud/cloudapi/model/ModifySignatureRequest.h + include/alibabacloud/cloudapi/model/ModifySignatureResult.h + include/alibabacloud/cloudapi/model/RemoveSignatureApisRequest.h + include/alibabacloud/cloudapi/model/RemoveSignatureApisResult.h + include/alibabacloud/cloudapi/model/AddIpControlPolicyItemRequest.h + include/alibabacloud/cloudapi/model/AddIpControlPolicyItemResult.h + include/alibabacloud/cloudapi/model/DescribeDomainRequest.h + include/alibabacloud/cloudapi/model/DescribeDomainResult.h + include/alibabacloud/cloudapi/model/DescribeApiQpsDataRequest.h + include/alibabacloud/cloudapi/model/DescribeApiQpsDataResult.h + include/alibabacloud/cloudapi/model/DescribeAppSecurityRequest.h + include/alibabacloud/cloudapi/model/DescribeAppSecurityResult.h + include/alibabacloud/cloudapi/model/SdkGenerateRequest.h + include/alibabacloud/cloudapi/model/SdkGenerateResult.h + include/alibabacloud/cloudapi/model/DescribeIpControlsRequest.h + include/alibabacloud/cloudapi/model/DescribeIpControlsResult.h + include/alibabacloud/cloudapi/model/ImportSwaggerRequest.h + include/alibabacloud/cloudapi/model/ImportSwaggerResult.h + include/alibabacloud/cloudapi/model/DescribeApisByAppRequest.h + include/alibabacloud/cloudapi/model/DescribeApisByAppResult.h + include/alibabacloud/cloudapi/model/ModifyLogConfigRequest.h + include/alibabacloud/cloudapi/model/ModifyLogConfigResult.h + include/alibabacloud/cloudapi/model/DescribeApisByIpControlRequest.h + include/alibabacloud/cloudapi/model/DescribeApisByIpControlResult.h + include/alibabacloud/cloudapi/model/DescribeHistoryApisRequest.h + include/alibabacloud/cloudapi/model/DescribeHistoryApisResult.h + include/alibabacloud/cloudapi/model/DescribeDeployedApiRequest.h + include/alibabacloud/cloudapi/model/DescribeDeployedApiResult.h + include/alibabacloud/cloudapi/model/DescribeApiIpControlsRequest.h + include/alibabacloud/cloudapi/model/DescribeApiIpControlsResult.h + include/alibabacloud/cloudapi/model/DescribeApisBySignatureRequest.h + include/alibabacloud/cloudapi/model/DescribeApisBySignatureResult.h + include/alibabacloud/cloudapi/model/CreateIpControlRequest.h + include/alibabacloud/cloudapi/model/CreateIpControlResult.h + include/alibabacloud/cloudapi/model/SetVpcAccessRequest.h + include/alibabacloud/cloudapi/model/SetVpcAccessResult.h + include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesRequest.h + include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesResult.h + include/alibabacloud/cloudapi/model/CreateSignatureRequest.h + include/alibabacloud/cloudapi/model/CreateSignatureResult.h + include/alibabacloud/cloudapi/model/ModifyApiRequest.h + include/alibabacloud/cloudapi/model/ModifyApiResult.h + include/alibabacloud/cloudapi/model/DescribeSignaturesByApiRequest.h + include/alibabacloud/cloudapi/model/DescribeSignaturesByApiResult.h + include/alibabacloud/cloudapi/model/ResetAppSecretRequest.h + include/alibabacloud/cloudapi/model/ResetAppSecretResult.h + include/alibabacloud/cloudapi/model/DeployApiRequest.h + include/alibabacloud/cloudapi/model/DeployApiResult.h + include/alibabacloud/cloudapi/model/AddTrafficSpecialControlRequest.h + include/alibabacloud/cloudapi/model/AddTrafficSpecialControlResult.h + include/alibabacloud/cloudapi/model/ModifyAppRequest.h + include/alibabacloud/cloudapi/model/ModifyAppResult.h + include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusRequest.h + include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusResult.h + include/alibabacloud/cloudapi/model/DescribeRegionsRequest.h + include/alibabacloud/cloudapi/model/DescribeRegionsResult.h + include/alibabacloud/cloudapi/model/DescribePurchasedApisRequest.h + include/alibabacloud/cloudapi/model/DescribePurchasedApisResult.h + include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiRequest.h + include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiResult.h + include/alibabacloud/cloudapi/model/DescribeDeployedApisRequest.h + include/alibabacloud/cloudapi/model/DescribeDeployedApisResult.h + include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesRequest.h + include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesResult.h + include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsRequest.h + include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsResult.h + include/alibabacloud/cloudapi/model/DeleteLogConfigRequest.h + include/alibabacloud/cloudapi/model/DeleteLogConfigResult.h + include/alibabacloud/cloudapi/model/SetSignatureApisRequest.h + include/alibabacloud/cloudapi/model/SetSignatureApisResult.h + include/alibabacloud/cloudapi/model/ReactivateDomainRequest.h + include/alibabacloud/cloudapi/model/ReactivateDomainResult.h + include/alibabacloud/cloudapi/model/DescribeAppRequest.h + include/alibabacloud/cloudapi/model/DescribeAppResult.h + include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemRequest.h + include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemResult.h + include/alibabacloud/cloudapi/model/DescribeAuthorizedApisRequest.h + include/alibabacloud/cloudapi/model/DescribeAuthorizedApisResult.h + include/alibabacloud/cloudapi/model/ModifyTrafficControlRequest.h + include/alibabacloud/cloudapi/model/ModifyTrafficControlResult.h + include/alibabacloud/cloudapi/model/CreateLogConfigRequest.h + include/alibabacloud/cloudapi/model/CreateLogConfigResult.h + include/alibabacloud/cloudapi/model/CreateApiStageVariableRequest.h + include/alibabacloud/cloudapi/model/CreateApiStageVariableResult.h + include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsRequest.h + include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsResult.h + include/alibabacloud/cloudapi/model/DescribeApiSignaturesRequest.h + include/alibabacloud/cloudapi/model/DescribeApiSignaturesResult.h + include/alibabacloud/cloudapi/model/DeleteDomainRequest.h + include/alibabacloud/cloudapi/model/DeleteDomainResult.h + include/alibabacloud/cloudapi/model/SetTrafficControlApisRequest.h + include/alibabacloud/cloudapi/model/SetTrafficControlApisResult.h + include/alibabacloud/cloudapi/model/SwitchApiRequest.h + include/alibabacloud/cloudapi/model/SwitchApiResult.h + include/alibabacloud/cloudapi/model/DescribeVpcAccessesRequest.h + include/alibabacloud/cloudapi/model/DescribeVpcAccessesResult.h + include/alibabacloud/cloudapi/model/ModifyApiGroupRequest.h + include/alibabacloud/cloudapi/model/ModifyApiGroupResult.h + include/alibabacloud/cloudapi/model/DescribeApiRequest.h + include/alibabacloud/cloudapi/model/DescribeApiResult.h ) + +set(cloudapi_src + src/CloudAPIClient.cc + src/model/DescribeAuthorizedAppsRequest.cc + src/model/DescribeAuthorizedAppsResult.cc + src/model/DescribePurchasedApiGroupsRequest.cc + src/model/DescribePurchasedApiGroupsResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/DescribeLogConfigRequest.cc + src/model/DescribeLogConfigResult.cc + src/model/SetApisAuthoritiesRequest.cc + src/model/SetApisAuthoritiesResult.cc + src/model/DescribeTrafficControlsRequest.cc + src/model/DescribeTrafficControlsResult.cc + src/model/SetDomainRequest.cc + src/model/SetDomainResult.cc + src/model/DeleteIpControlRequest.cc + src/model/DeleteIpControlResult.cc + src/model/DeleteSignatureRequest.cc + src/model/DeleteSignatureResult.cc + src/model/DeleteTrafficControlRequest.cc + src/model/DeleteTrafficControlResult.cc + src/model/DescribeApiLatencyDataRequest.cc + src/model/DescribeApiLatencyDataResult.cc + src/model/DescribeSystemParametersRequest.cc + src/model/DescribeSystemParametersResult.cc + src/model/DescribeApiHistoryRequest.cc + src/model/DescribeApiHistoryResult.cc + src/model/CreateIntranetDomainRequest.cc + src/model/CreateIntranetDomainResult.cc + src/model/DescribeApiErrorDataRequest.cc + src/model/DescribeApiErrorDataResult.cc + src/model/DeleteTrafficSpecialControlRequest.cc + src/model/DeleteTrafficSpecialControlResult.cc + src/model/RemoveIpControlApisRequest.cc + src/model/RemoveIpControlApisResult.cc + src/model/CreateApiRequest.cc + src/model/CreateApiResult.cc + src/model/DescribeApiGroupRequest.cc + src/model/DescribeApiGroupResult.cc + src/model/DeleteAppRequest.cc + src/model/DeleteAppResult.cc + src/model/DescribeApiHistoriesRequest.cc + src/model/DescribeApiHistoriesResult.cc + src/model/DeleteApiGroupRequest.cc + src/model/DeleteApiGroupResult.cc + src/model/RemoveTrafficControlApisRequest.cc + src/model/RemoveTrafficControlApisResult.cc + src/model/DescribeApiGroupsRequest.cc + src/model/DescribeApiGroupsResult.cc + src/model/DeleteAllTrafficSpecialControlRequest.cc + src/model/DeleteAllTrafficSpecialControlResult.cc + src/model/AbolishApiRequest.cc + src/model/AbolishApiResult.cc + src/model/DescribeApisRequest.cc + src/model/DescribeApisResult.cc + src/model/SetIpControlApisRequest.cc + src/model/SetIpControlApisResult.cc + src/model/CreateApiGroupRequest.cc + src/model/CreateApiGroupResult.cc + src/model/DescribeDomainsResolutionRequest.cc + src/model/DescribeDomainsResolutionResult.cc + src/model/DescribeAppAttributesRequest.cc + src/model/DescribeAppAttributesResult.cc + src/model/DeleteApiRequest.cc + src/model/DeleteApiResult.cc + src/model/DescribePurchasedApiGroupRequest.cc + src/model/DescribePurchasedApiGroupResult.cc + src/model/ModifyIpControlPolicyItemRequest.cc + src/model/ModifyIpControlPolicyItemResult.cc + src/model/DescribeApiDocRequest.cc + src/model/DescribeApiDocResult.cc + src/model/SdkGenerateByAppRequest.cc + src/model/SdkGenerateByAppResult.cc + src/model/DeleteDomainCertificateRequest.cc + src/model/DeleteDomainCertificateResult.cc + src/model/CreateTrafficControlRequest.cc + src/model/CreateTrafficControlResult.cc + src/model/SetDomainCertificateRequest.cc + src/model/SetDomainCertificateResult.cc + src/model/DescribeSignaturesRequest.cc + src/model/DescribeSignaturesResult.cc + src/model/SetAppsAuthoritiesRequest.cc + src/model/SetAppsAuthoritiesResult.cc + src/model/SdkGenerateByGroupRequest.cc + src/model/SdkGenerateByGroupResult.cc + src/model/DescribeApiStageRequest.cc + src/model/DescribeApiStageResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/DescribeApiTrafficDataRequest.cc + src/model/DescribeApiTrafficDataResult.cc + src/model/CreateAppRequest.cc + src/model/CreateAppResult.cc + src/model/DescribeApisByTrafficControlRequest.cc + src/model/DescribeApisByTrafficControlResult.cc + src/model/RemoveVpcAccessRequest.cc + src/model/RemoveVpcAccessResult.cc + src/model/ResetAppCodeRequest.cc + src/model/ResetAppCodeResult.cc + src/model/ModifyIpControlRequest.cc + src/model/ModifyIpControlResult.cc + src/model/DescribeAppsRequest.cc + src/model/DescribeAppsResult.cc + src/model/DeleteApiStageVariableRequest.cc + src/model/DeleteApiStageVariableResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ModifySignatureRequest.cc + src/model/ModifySignatureResult.cc + src/model/RemoveSignatureApisRequest.cc + src/model/RemoveSignatureApisResult.cc + src/model/AddIpControlPolicyItemRequest.cc + src/model/AddIpControlPolicyItemResult.cc + src/model/DescribeDomainRequest.cc + src/model/DescribeDomainResult.cc + src/model/DescribeApiQpsDataRequest.cc + src/model/DescribeApiQpsDataResult.cc + src/model/DescribeAppSecurityRequest.cc + src/model/DescribeAppSecurityResult.cc + src/model/SdkGenerateRequest.cc + src/model/SdkGenerateResult.cc + src/model/DescribeIpControlsRequest.cc + src/model/DescribeIpControlsResult.cc + src/model/ImportSwaggerRequest.cc + src/model/ImportSwaggerResult.cc + src/model/DescribeApisByAppRequest.cc + src/model/DescribeApisByAppResult.cc + src/model/ModifyLogConfigRequest.cc + src/model/ModifyLogConfigResult.cc + src/model/DescribeApisByIpControlRequest.cc + src/model/DescribeApisByIpControlResult.cc + src/model/DescribeHistoryApisRequest.cc + src/model/DescribeHistoryApisResult.cc + src/model/DescribeDeployedApiRequest.cc + src/model/DescribeDeployedApiResult.cc + src/model/DescribeApiIpControlsRequest.cc + src/model/DescribeApiIpControlsResult.cc + src/model/DescribeApisBySignatureRequest.cc + src/model/DescribeApisBySignatureResult.cc + src/model/CreateIpControlRequest.cc + src/model/CreateIpControlResult.cc + src/model/SetVpcAccessRequest.cc + src/model/SetVpcAccessResult.cc + src/model/RemoveApisAuthoritiesRequest.cc + src/model/RemoveApisAuthoritiesResult.cc + src/model/CreateSignatureRequest.cc + src/model/CreateSignatureResult.cc + src/model/ModifyApiRequest.cc + src/model/ModifyApiResult.cc + src/model/DescribeSignaturesByApiRequest.cc + src/model/DescribeSignaturesByApiResult.cc + src/model/ResetAppSecretRequest.cc + src/model/ResetAppSecretResult.cc + src/model/DeployApiRequest.cc + src/model/DeployApiResult.cc + src/model/AddTrafficSpecialControlRequest.cc + src/model/AddTrafficSpecialControlResult.cc + src/model/ModifyAppRequest.cc + src/model/ModifyAppResult.cc + src/model/SetDomainWebSocketStatusRequest.cc + src/model/SetDomainWebSocketStatusResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribePurchasedApisRequest.cc + src/model/DescribePurchasedApisResult.cc + src/model/DescribeTrafficControlsByApiRequest.cc + src/model/DescribeTrafficControlsByApiResult.cc + src/model/DescribeDeployedApisRequest.cc + src/model/DescribeDeployedApisResult.cc + src/model/RemoveAppsAuthoritiesRequest.cc + src/model/RemoveAppsAuthoritiesResult.cc + src/model/DescribeApiTrafficControlsRequest.cc + src/model/DescribeApiTrafficControlsResult.cc + src/model/DeleteLogConfigRequest.cc + src/model/DeleteLogConfigResult.cc + src/model/SetSignatureApisRequest.cc + src/model/SetSignatureApisResult.cc + src/model/ReactivateDomainRequest.cc + src/model/ReactivateDomainResult.cc + src/model/DescribeAppRequest.cc + src/model/DescribeAppResult.cc + src/model/RemoveIpControlPolicyItemRequest.cc + src/model/RemoveIpControlPolicyItemResult.cc + src/model/DescribeAuthorizedApisRequest.cc + src/model/DescribeAuthorizedApisResult.cc + src/model/ModifyTrafficControlRequest.cc + src/model/ModifyTrafficControlResult.cc + src/model/CreateLogConfigRequest.cc + src/model/CreateLogConfigResult.cc + src/model/CreateApiStageVariableRequest.cc + src/model/CreateApiStageVariableResult.cc + src/model/DescribeIpControlPolicyItemsRequest.cc + src/model/DescribeIpControlPolicyItemsResult.cc + src/model/DescribeApiSignaturesRequest.cc + src/model/DescribeApiSignaturesResult.cc + src/model/DeleteDomainRequest.cc + src/model/DeleteDomainResult.cc + src/model/SetTrafficControlApisRequest.cc + src/model/SetTrafficControlApisResult.cc + src/model/SwitchApiRequest.cc + src/model/SwitchApiResult.cc + src/model/DescribeVpcAccessesRequest.cc + src/model/DescribeVpcAccessesResult.cc + src/model/ModifyApiGroupRequest.cc + src/model/ModifyApiGroupResult.cc + src/model/DescribeApiRequest.cc + src/model/DescribeApiResult.cc ) + +add_library(cloudapi ${LIB_TYPE} + ${cloudapi_public_header} + ${cloudapi_public_header_model} + ${cloudapi_src}) + +set_target_properties(cloudapi + 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}cloudapi + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(cloudapi + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CLOUDAPI_LIBRARY) +endif() + +target_include_directories(cloudapi + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(cloudapi + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(cloudapi + jsoncpp) + target_include_directories(cloudapi + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(cloudapi + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(cloudapi + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(cloudapi + PRIVATE /usr/include/jsoncpp) + target_link_libraries(cloudapi + jsoncpp) +endif() + +install(FILES ${cloudapi_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudapi) +install(FILES ${cloudapi_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudapi/model) +install(TARGETS cloudapi + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/CloudAPIClient.h b/cloudapi/include/alibabacloud/cloudapi/CloudAPIClient.h new file mode 100644 index 000000000..b8a4c32ce --- /dev/null +++ b/cloudapi/include/alibabacloud/cloudapi/CloudAPIClient.h @@ -0,0 +1,870 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_CLOUDAPICLIENT_H_ +#define ALIBABACLOUD_CLOUDAPI_CLOUDAPICLIENT_H_ + +#include +#include +#include +#include +#include "CloudAPIExport.h" +#include "model/DescribeAuthorizedAppsRequest.h" +#include "model/DescribeAuthorizedAppsResult.h" +#include "model/DescribePurchasedApiGroupsRequest.h" +#include "model/DescribePurchasedApiGroupsResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/DescribeLogConfigRequest.h" +#include "model/DescribeLogConfigResult.h" +#include "model/SetApisAuthoritiesRequest.h" +#include "model/SetApisAuthoritiesResult.h" +#include "model/DescribeTrafficControlsRequest.h" +#include "model/DescribeTrafficControlsResult.h" +#include "model/SetDomainRequest.h" +#include "model/SetDomainResult.h" +#include "model/DeleteIpControlRequest.h" +#include "model/DeleteIpControlResult.h" +#include "model/DeleteSignatureRequest.h" +#include "model/DeleteSignatureResult.h" +#include "model/DeleteTrafficControlRequest.h" +#include "model/DeleteTrafficControlResult.h" +#include "model/DescribeApiLatencyDataRequest.h" +#include "model/DescribeApiLatencyDataResult.h" +#include "model/DescribeSystemParametersRequest.h" +#include "model/DescribeSystemParametersResult.h" +#include "model/DescribeApiHistoryRequest.h" +#include "model/DescribeApiHistoryResult.h" +#include "model/CreateIntranetDomainRequest.h" +#include "model/CreateIntranetDomainResult.h" +#include "model/DescribeApiErrorDataRequest.h" +#include "model/DescribeApiErrorDataResult.h" +#include "model/DeleteTrafficSpecialControlRequest.h" +#include "model/DeleteTrafficSpecialControlResult.h" +#include "model/RemoveIpControlApisRequest.h" +#include "model/RemoveIpControlApisResult.h" +#include "model/CreateApiRequest.h" +#include "model/CreateApiResult.h" +#include "model/DescribeApiGroupRequest.h" +#include "model/DescribeApiGroupResult.h" +#include "model/DeleteAppRequest.h" +#include "model/DeleteAppResult.h" +#include "model/DescribeApiHistoriesRequest.h" +#include "model/DescribeApiHistoriesResult.h" +#include "model/DeleteApiGroupRequest.h" +#include "model/DeleteApiGroupResult.h" +#include "model/RemoveTrafficControlApisRequest.h" +#include "model/RemoveTrafficControlApisResult.h" +#include "model/DescribeApiGroupsRequest.h" +#include "model/DescribeApiGroupsResult.h" +#include "model/DeleteAllTrafficSpecialControlRequest.h" +#include "model/DeleteAllTrafficSpecialControlResult.h" +#include "model/AbolishApiRequest.h" +#include "model/AbolishApiResult.h" +#include "model/DescribeApisRequest.h" +#include "model/DescribeApisResult.h" +#include "model/SetIpControlApisRequest.h" +#include "model/SetIpControlApisResult.h" +#include "model/CreateApiGroupRequest.h" +#include "model/CreateApiGroupResult.h" +#include "model/DescribeDomainsResolutionRequest.h" +#include "model/DescribeDomainsResolutionResult.h" +#include "model/DescribeAppAttributesRequest.h" +#include "model/DescribeAppAttributesResult.h" +#include "model/DeleteApiRequest.h" +#include "model/DeleteApiResult.h" +#include "model/DescribePurchasedApiGroupRequest.h" +#include "model/DescribePurchasedApiGroupResult.h" +#include "model/ModifyIpControlPolicyItemRequest.h" +#include "model/ModifyIpControlPolicyItemResult.h" +#include "model/DescribeApiDocRequest.h" +#include "model/DescribeApiDocResult.h" +#include "model/SdkGenerateByAppRequest.h" +#include "model/SdkGenerateByAppResult.h" +#include "model/DeleteDomainCertificateRequest.h" +#include "model/DeleteDomainCertificateResult.h" +#include "model/CreateTrafficControlRequest.h" +#include "model/CreateTrafficControlResult.h" +#include "model/SetDomainCertificateRequest.h" +#include "model/SetDomainCertificateResult.h" +#include "model/DescribeSignaturesRequest.h" +#include "model/DescribeSignaturesResult.h" +#include "model/SetAppsAuthoritiesRequest.h" +#include "model/SetAppsAuthoritiesResult.h" +#include "model/SdkGenerateByGroupRequest.h" +#include "model/SdkGenerateByGroupResult.h" +#include "model/DescribeApiStageRequest.h" +#include "model/DescribeApiStageResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/DescribeApiTrafficDataRequest.h" +#include "model/DescribeApiTrafficDataResult.h" +#include "model/CreateAppRequest.h" +#include "model/CreateAppResult.h" +#include "model/DescribeApisByTrafficControlRequest.h" +#include "model/DescribeApisByTrafficControlResult.h" +#include "model/RemoveVpcAccessRequest.h" +#include "model/RemoveVpcAccessResult.h" +#include "model/ResetAppCodeRequest.h" +#include "model/ResetAppCodeResult.h" +#include "model/ModifyIpControlRequest.h" +#include "model/ModifyIpControlResult.h" +#include "model/DescribeAppsRequest.h" +#include "model/DescribeAppsResult.h" +#include "model/DeleteApiStageVariableRequest.h" +#include "model/DeleteApiStageVariableResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ModifySignatureRequest.h" +#include "model/ModifySignatureResult.h" +#include "model/RemoveSignatureApisRequest.h" +#include "model/RemoveSignatureApisResult.h" +#include "model/AddIpControlPolicyItemRequest.h" +#include "model/AddIpControlPolicyItemResult.h" +#include "model/DescribeDomainRequest.h" +#include "model/DescribeDomainResult.h" +#include "model/DescribeApiQpsDataRequest.h" +#include "model/DescribeApiQpsDataResult.h" +#include "model/DescribeAppSecurityRequest.h" +#include "model/DescribeAppSecurityResult.h" +#include "model/SdkGenerateRequest.h" +#include "model/SdkGenerateResult.h" +#include "model/DescribeIpControlsRequest.h" +#include "model/DescribeIpControlsResult.h" +#include "model/ImportSwaggerRequest.h" +#include "model/ImportSwaggerResult.h" +#include "model/DescribeApisByAppRequest.h" +#include "model/DescribeApisByAppResult.h" +#include "model/ModifyLogConfigRequest.h" +#include "model/ModifyLogConfigResult.h" +#include "model/DescribeApisByIpControlRequest.h" +#include "model/DescribeApisByIpControlResult.h" +#include "model/DescribeHistoryApisRequest.h" +#include "model/DescribeHistoryApisResult.h" +#include "model/DescribeDeployedApiRequest.h" +#include "model/DescribeDeployedApiResult.h" +#include "model/DescribeApiIpControlsRequest.h" +#include "model/DescribeApiIpControlsResult.h" +#include "model/DescribeApisBySignatureRequest.h" +#include "model/DescribeApisBySignatureResult.h" +#include "model/CreateIpControlRequest.h" +#include "model/CreateIpControlResult.h" +#include "model/SetVpcAccessRequest.h" +#include "model/SetVpcAccessResult.h" +#include "model/RemoveApisAuthoritiesRequest.h" +#include "model/RemoveApisAuthoritiesResult.h" +#include "model/CreateSignatureRequest.h" +#include "model/CreateSignatureResult.h" +#include "model/ModifyApiRequest.h" +#include "model/ModifyApiResult.h" +#include "model/DescribeSignaturesByApiRequest.h" +#include "model/DescribeSignaturesByApiResult.h" +#include "model/ResetAppSecretRequest.h" +#include "model/ResetAppSecretResult.h" +#include "model/DeployApiRequest.h" +#include "model/DeployApiResult.h" +#include "model/AddTrafficSpecialControlRequest.h" +#include "model/AddTrafficSpecialControlResult.h" +#include "model/ModifyAppRequest.h" +#include "model/ModifyAppResult.h" +#include "model/SetDomainWebSocketStatusRequest.h" +#include "model/SetDomainWebSocketStatusResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribePurchasedApisRequest.h" +#include "model/DescribePurchasedApisResult.h" +#include "model/DescribeTrafficControlsByApiRequest.h" +#include "model/DescribeTrafficControlsByApiResult.h" +#include "model/DescribeDeployedApisRequest.h" +#include "model/DescribeDeployedApisResult.h" +#include "model/RemoveAppsAuthoritiesRequest.h" +#include "model/RemoveAppsAuthoritiesResult.h" +#include "model/DescribeApiTrafficControlsRequest.h" +#include "model/DescribeApiTrafficControlsResult.h" +#include "model/DeleteLogConfigRequest.h" +#include "model/DeleteLogConfigResult.h" +#include "model/SetSignatureApisRequest.h" +#include "model/SetSignatureApisResult.h" +#include "model/ReactivateDomainRequest.h" +#include "model/ReactivateDomainResult.h" +#include "model/DescribeAppRequest.h" +#include "model/DescribeAppResult.h" +#include "model/RemoveIpControlPolicyItemRequest.h" +#include "model/RemoveIpControlPolicyItemResult.h" +#include "model/DescribeAuthorizedApisRequest.h" +#include "model/DescribeAuthorizedApisResult.h" +#include "model/ModifyTrafficControlRequest.h" +#include "model/ModifyTrafficControlResult.h" +#include "model/CreateLogConfigRequest.h" +#include "model/CreateLogConfigResult.h" +#include "model/CreateApiStageVariableRequest.h" +#include "model/CreateApiStageVariableResult.h" +#include "model/DescribeIpControlPolicyItemsRequest.h" +#include "model/DescribeIpControlPolicyItemsResult.h" +#include "model/DescribeApiSignaturesRequest.h" +#include "model/DescribeApiSignaturesResult.h" +#include "model/DeleteDomainRequest.h" +#include "model/DeleteDomainResult.h" +#include "model/SetTrafficControlApisRequest.h" +#include "model/SetTrafficControlApisResult.h" +#include "model/SwitchApiRequest.h" +#include "model/SwitchApiResult.h" +#include "model/DescribeVpcAccessesRequest.h" +#include "model/DescribeVpcAccessesResult.h" +#include "model/ModifyApiGroupRequest.h" +#include "model/ModifyApiGroupResult.h" +#include "model/DescribeApiRequest.h" +#include "model/DescribeApiResult.h" + + +namespace AlibabaCloud +{ + namespace CloudAPI + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CloudAPIClient : public RpcServiceClient + { + public: + typedef Outcome DescribeAuthorizedAppsOutcome; + typedef std::future DescribeAuthorizedAppsOutcomeCallable; + typedef std::function&)> DescribeAuthorizedAppsAsyncHandler; + typedef Outcome DescribePurchasedApiGroupsOutcome; + typedef std::future DescribePurchasedApiGroupsOutcomeCallable; + typedef std::function&)> DescribePurchasedApiGroupsAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome DescribeLogConfigOutcome; + typedef std::future DescribeLogConfigOutcomeCallable; + typedef std::function&)> DescribeLogConfigAsyncHandler; + typedef Outcome SetApisAuthoritiesOutcome; + typedef std::future SetApisAuthoritiesOutcomeCallable; + typedef std::function&)> SetApisAuthoritiesAsyncHandler; + typedef Outcome DescribeTrafficControlsOutcome; + typedef std::future DescribeTrafficControlsOutcomeCallable; + typedef std::function&)> DescribeTrafficControlsAsyncHandler; + typedef Outcome SetDomainOutcome; + typedef std::future SetDomainOutcomeCallable; + typedef std::function&)> SetDomainAsyncHandler; + typedef Outcome DeleteIpControlOutcome; + typedef std::future DeleteIpControlOutcomeCallable; + typedef std::function&)> DeleteIpControlAsyncHandler; + typedef Outcome DeleteSignatureOutcome; + typedef std::future DeleteSignatureOutcomeCallable; + typedef std::function&)> DeleteSignatureAsyncHandler; + typedef Outcome DeleteTrafficControlOutcome; + typedef std::future DeleteTrafficControlOutcomeCallable; + typedef std::function&)> DeleteTrafficControlAsyncHandler; + typedef Outcome DescribeApiLatencyDataOutcome; + typedef std::future DescribeApiLatencyDataOutcomeCallable; + typedef std::function&)> DescribeApiLatencyDataAsyncHandler; + typedef Outcome DescribeSystemParametersOutcome; + typedef std::future DescribeSystemParametersOutcomeCallable; + typedef std::function&)> DescribeSystemParametersAsyncHandler; + typedef Outcome DescribeApiHistoryOutcome; + typedef std::future DescribeApiHistoryOutcomeCallable; + typedef std::function&)> DescribeApiHistoryAsyncHandler; + typedef Outcome CreateIntranetDomainOutcome; + typedef std::future CreateIntranetDomainOutcomeCallable; + typedef std::function&)> CreateIntranetDomainAsyncHandler; + typedef Outcome DescribeApiErrorDataOutcome; + typedef std::future DescribeApiErrorDataOutcomeCallable; + typedef std::function&)> DescribeApiErrorDataAsyncHandler; + typedef Outcome DeleteTrafficSpecialControlOutcome; + typedef std::future DeleteTrafficSpecialControlOutcomeCallable; + typedef std::function&)> DeleteTrafficSpecialControlAsyncHandler; + typedef Outcome RemoveIpControlApisOutcome; + typedef std::future RemoveIpControlApisOutcomeCallable; + typedef std::function&)> RemoveIpControlApisAsyncHandler; + typedef Outcome CreateApiOutcome; + typedef std::future CreateApiOutcomeCallable; + typedef std::function&)> CreateApiAsyncHandler; + typedef Outcome DescribeApiGroupOutcome; + typedef std::future DescribeApiGroupOutcomeCallable; + typedef std::function&)> DescribeApiGroupAsyncHandler; + typedef Outcome DeleteAppOutcome; + typedef std::future DeleteAppOutcomeCallable; + typedef std::function&)> DeleteAppAsyncHandler; + typedef Outcome DescribeApiHistoriesOutcome; + typedef std::future DescribeApiHistoriesOutcomeCallable; + typedef std::function&)> DescribeApiHistoriesAsyncHandler; + typedef Outcome DeleteApiGroupOutcome; + typedef std::future DeleteApiGroupOutcomeCallable; + typedef std::function&)> DeleteApiGroupAsyncHandler; + typedef Outcome RemoveTrafficControlApisOutcome; + typedef std::future RemoveTrafficControlApisOutcomeCallable; + typedef std::function&)> RemoveTrafficControlApisAsyncHandler; + typedef Outcome DescribeApiGroupsOutcome; + typedef std::future DescribeApiGroupsOutcomeCallable; + typedef std::function&)> DescribeApiGroupsAsyncHandler; + typedef Outcome DeleteAllTrafficSpecialControlOutcome; + typedef std::future DeleteAllTrafficSpecialControlOutcomeCallable; + typedef std::function&)> DeleteAllTrafficSpecialControlAsyncHandler; + typedef Outcome AbolishApiOutcome; + typedef std::future AbolishApiOutcomeCallable; + typedef std::function&)> AbolishApiAsyncHandler; + typedef Outcome DescribeApisOutcome; + typedef std::future DescribeApisOutcomeCallable; + typedef std::function&)> DescribeApisAsyncHandler; + typedef Outcome SetIpControlApisOutcome; + typedef std::future SetIpControlApisOutcomeCallable; + typedef std::function&)> SetIpControlApisAsyncHandler; + typedef Outcome CreateApiGroupOutcome; + typedef std::future CreateApiGroupOutcomeCallable; + typedef std::function&)> CreateApiGroupAsyncHandler; + typedef Outcome DescribeDomainsResolutionOutcome; + typedef std::future DescribeDomainsResolutionOutcomeCallable; + typedef std::function&)> DescribeDomainsResolutionAsyncHandler; + typedef Outcome DescribeAppAttributesOutcome; + typedef std::future DescribeAppAttributesOutcomeCallable; + typedef std::function&)> DescribeAppAttributesAsyncHandler; + typedef Outcome DeleteApiOutcome; + typedef std::future DeleteApiOutcomeCallable; + typedef std::function&)> DeleteApiAsyncHandler; + typedef Outcome DescribePurchasedApiGroupOutcome; + typedef std::future DescribePurchasedApiGroupOutcomeCallable; + typedef std::function&)> DescribePurchasedApiGroupAsyncHandler; + typedef Outcome ModifyIpControlPolicyItemOutcome; + typedef std::future ModifyIpControlPolicyItemOutcomeCallable; + typedef std::function&)> ModifyIpControlPolicyItemAsyncHandler; + typedef Outcome DescribeApiDocOutcome; + typedef std::future DescribeApiDocOutcomeCallable; + typedef std::function&)> DescribeApiDocAsyncHandler; + typedef Outcome SdkGenerateByAppOutcome; + typedef std::future SdkGenerateByAppOutcomeCallable; + typedef std::function&)> SdkGenerateByAppAsyncHandler; + typedef Outcome DeleteDomainCertificateOutcome; + typedef std::future DeleteDomainCertificateOutcomeCallable; + typedef std::function&)> DeleteDomainCertificateAsyncHandler; + typedef Outcome CreateTrafficControlOutcome; + typedef std::future CreateTrafficControlOutcomeCallable; + typedef std::function&)> CreateTrafficControlAsyncHandler; + typedef Outcome SetDomainCertificateOutcome; + typedef std::future SetDomainCertificateOutcomeCallable; + typedef std::function&)> SetDomainCertificateAsyncHandler; + typedef Outcome DescribeSignaturesOutcome; + typedef std::future DescribeSignaturesOutcomeCallable; + typedef std::function&)> DescribeSignaturesAsyncHandler; + typedef Outcome SetAppsAuthoritiesOutcome; + typedef std::future SetAppsAuthoritiesOutcomeCallable; + typedef std::function&)> SetAppsAuthoritiesAsyncHandler; + typedef Outcome SdkGenerateByGroupOutcome; + typedef std::future SdkGenerateByGroupOutcomeCallable; + typedef std::function&)> SdkGenerateByGroupAsyncHandler; + typedef Outcome DescribeApiStageOutcome; + typedef std::future DescribeApiStageOutcomeCallable; + typedef std::function&)> DescribeApiStageAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome DescribeApiTrafficDataOutcome; + typedef std::future DescribeApiTrafficDataOutcomeCallable; + typedef std::function&)> DescribeApiTrafficDataAsyncHandler; + typedef Outcome CreateAppOutcome; + typedef std::future CreateAppOutcomeCallable; + typedef std::function&)> CreateAppAsyncHandler; + typedef Outcome DescribeApisByTrafficControlOutcome; + typedef std::future DescribeApisByTrafficControlOutcomeCallable; + typedef std::function&)> DescribeApisByTrafficControlAsyncHandler; + typedef Outcome RemoveVpcAccessOutcome; + typedef std::future RemoveVpcAccessOutcomeCallable; + typedef std::function&)> RemoveVpcAccessAsyncHandler; + typedef Outcome ResetAppCodeOutcome; + typedef std::future ResetAppCodeOutcomeCallable; + typedef std::function&)> ResetAppCodeAsyncHandler; + typedef Outcome ModifyIpControlOutcome; + typedef std::future ModifyIpControlOutcomeCallable; + typedef std::function&)> ModifyIpControlAsyncHandler; + typedef Outcome DescribeAppsOutcome; + typedef std::future DescribeAppsOutcomeCallable; + typedef std::function&)> DescribeAppsAsyncHandler; + typedef Outcome DeleteApiStageVariableOutcome; + typedef std::future DeleteApiStageVariableOutcomeCallable; + typedef std::function&)> DeleteApiStageVariableAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ModifySignatureOutcome; + typedef std::future ModifySignatureOutcomeCallable; + typedef std::function&)> ModifySignatureAsyncHandler; + typedef Outcome RemoveSignatureApisOutcome; + typedef std::future RemoveSignatureApisOutcomeCallable; + typedef std::function&)> RemoveSignatureApisAsyncHandler; + typedef Outcome AddIpControlPolicyItemOutcome; + typedef std::future AddIpControlPolicyItemOutcomeCallable; + typedef std::function&)> AddIpControlPolicyItemAsyncHandler; + typedef Outcome DescribeDomainOutcome; + typedef std::future DescribeDomainOutcomeCallable; + typedef std::function&)> DescribeDomainAsyncHandler; + typedef Outcome DescribeApiQpsDataOutcome; + typedef std::future DescribeApiQpsDataOutcomeCallable; + typedef std::function&)> DescribeApiQpsDataAsyncHandler; + typedef Outcome DescribeAppSecurityOutcome; + typedef std::future DescribeAppSecurityOutcomeCallable; + typedef std::function&)> DescribeAppSecurityAsyncHandler; + typedef Outcome SdkGenerateOutcome; + typedef std::future SdkGenerateOutcomeCallable; + typedef std::function&)> SdkGenerateAsyncHandler; + typedef Outcome DescribeIpControlsOutcome; + typedef std::future DescribeIpControlsOutcomeCallable; + typedef std::function&)> DescribeIpControlsAsyncHandler; + typedef Outcome ImportSwaggerOutcome; + typedef std::future ImportSwaggerOutcomeCallable; + typedef std::function&)> ImportSwaggerAsyncHandler; + typedef Outcome DescribeApisByAppOutcome; + typedef std::future DescribeApisByAppOutcomeCallable; + typedef std::function&)> DescribeApisByAppAsyncHandler; + typedef Outcome ModifyLogConfigOutcome; + typedef std::future ModifyLogConfigOutcomeCallable; + typedef std::function&)> ModifyLogConfigAsyncHandler; + typedef Outcome DescribeApisByIpControlOutcome; + typedef std::future DescribeApisByIpControlOutcomeCallable; + typedef std::function&)> DescribeApisByIpControlAsyncHandler; + typedef Outcome DescribeHistoryApisOutcome; + typedef std::future DescribeHistoryApisOutcomeCallable; + typedef std::function&)> DescribeHistoryApisAsyncHandler; + typedef Outcome DescribeDeployedApiOutcome; + typedef std::future DescribeDeployedApiOutcomeCallable; + typedef std::function&)> DescribeDeployedApiAsyncHandler; + typedef Outcome DescribeApiIpControlsOutcome; + typedef std::future DescribeApiIpControlsOutcomeCallable; + typedef std::function&)> DescribeApiIpControlsAsyncHandler; + typedef Outcome DescribeApisBySignatureOutcome; + typedef std::future DescribeApisBySignatureOutcomeCallable; + typedef std::function&)> DescribeApisBySignatureAsyncHandler; + typedef Outcome CreateIpControlOutcome; + typedef std::future CreateIpControlOutcomeCallable; + typedef std::function&)> CreateIpControlAsyncHandler; + typedef Outcome SetVpcAccessOutcome; + typedef std::future SetVpcAccessOutcomeCallable; + typedef std::function&)> SetVpcAccessAsyncHandler; + typedef Outcome RemoveApisAuthoritiesOutcome; + typedef std::future RemoveApisAuthoritiesOutcomeCallable; + typedef std::function&)> RemoveApisAuthoritiesAsyncHandler; + typedef Outcome CreateSignatureOutcome; + typedef std::future CreateSignatureOutcomeCallable; + typedef std::function&)> CreateSignatureAsyncHandler; + typedef Outcome ModifyApiOutcome; + typedef std::future ModifyApiOutcomeCallable; + typedef std::function&)> ModifyApiAsyncHandler; + typedef Outcome DescribeSignaturesByApiOutcome; + typedef std::future DescribeSignaturesByApiOutcomeCallable; + typedef std::function&)> DescribeSignaturesByApiAsyncHandler; + typedef Outcome ResetAppSecretOutcome; + typedef std::future ResetAppSecretOutcomeCallable; + typedef std::function&)> ResetAppSecretAsyncHandler; + typedef Outcome DeployApiOutcome; + typedef std::future DeployApiOutcomeCallable; + typedef std::function&)> DeployApiAsyncHandler; + typedef Outcome AddTrafficSpecialControlOutcome; + typedef std::future AddTrafficSpecialControlOutcomeCallable; + typedef std::function&)> AddTrafficSpecialControlAsyncHandler; + typedef Outcome ModifyAppOutcome; + typedef std::future ModifyAppOutcomeCallable; + typedef std::function&)> ModifyAppAsyncHandler; + typedef Outcome SetDomainWebSocketStatusOutcome; + typedef std::future SetDomainWebSocketStatusOutcomeCallable; + typedef std::function&)> SetDomainWebSocketStatusAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribePurchasedApisOutcome; + typedef std::future DescribePurchasedApisOutcomeCallable; + typedef std::function&)> DescribePurchasedApisAsyncHandler; + typedef Outcome DescribeTrafficControlsByApiOutcome; + typedef std::future DescribeTrafficControlsByApiOutcomeCallable; + typedef std::function&)> DescribeTrafficControlsByApiAsyncHandler; + typedef Outcome DescribeDeployedApisOutcome; + typedef std::future DescribeDeployedApisOutcomeCallable; + typedef std::function&)> DescribeDeployedApisAsyncHandler; + typedef Outcome RemoveAppsAuthoritiesOutcome; + typedef std::future RemoveAppsAuthoritiesOutcomeCallable; + typedef std::function&)> RemoveAppsAuthoritiesAsyncHandler; + typedef Outcome DescribeApiTrafficControlsOutcome; + typedef std::future DescribeApiTrafficControlsOutcomeCallable; + typedef std::function&)> DescribeApiTrafficControlsAsyncHandler; + typedef Outcome DeleteLogConfigOutcome; + typedef std::future DeleteLogConfigOutcomeCallable; + typedef std::function&)> DeleteLogConfigAsyncHandler; + typedef Outcome SetSignatureApisOutcome; + typedef std::future SetSignatureApisOutcomeCallable; + typedef std::function&)> SetSignatureApisAsyncHandler; + typedef Outcome ReactivateDomainOutcome; + typedef std::future ReactivateDomainOutcomeCallable; + typedef std::function&)> ReactivateDomainAsyncHandler; + typedef Outcome DescribeAppOutcome; + typedef std::future DescribeAppOutcomeCallable; + typedef std::function&)> DescribeAppAsyncHandler; + typedef Outcome RemoveIpControlPolicyItemOutcome; + typedef std::future RemoveIpControlPolicyItemOutcomeCallable; + typedef std::function&)> RemoveIpControlPolicyItemAsyncHandler; + typedef Outcome DescribeAuthorizedApisOutcome; + typedef std::future DescribeAuthorizedApisOutcomeCallable; + typedef std::function&)> DescribeAuthorizedApisAsyncHandler; + typedef Outcome ModifyTrafficControlOutcome; + typedef std::future ModifyTrafficControlOutcomeCallable; + typedef std::function&)> ModifyTrafficControlAsyncHandler; + typedef Outcome CreateLogConfigOutcome; + typedef std::future CreateLogConfigOutcomeCallable; + typedef std::function&)> CreateLogConfigAsyncHandler; + typedef Outcome CreateApiStageVariableOutcome; + typedef std::future CreateApiStageVariableOutcomeCallable; + typedef std::function&)> CreateApiStageVariableAsyncHandler; + typedef Outcome DescribeIpControlPolicyItemsOutcome; + typedef std::future DescribeIpControlPolicyItemsOutcomeCallable; + typedef std::function&)> DescribeIpControlPolicyItemsAsyncHandler; + typedef Outcome DescribeApiSignaturesOutcome; + typedef std::future DescribeApiSignaturesOutcomeCallable; + typedef std::function&)> DescribeApiSignaturesAsyncHandler; + typedef Outcome DeleteDomainOutcome; + typedef std::future DeleteDomainOutcomeCallable; + typedef std::function&)> DeleteDomainAsyncHandler; + typedef Outcome SetTrafficControlApisOutcome; + typedef std::future SetTrafficControlApisOutcomeCallable; + typedef std::function&)> SetTrafficControlApisAsyncHandler; + typedef Outcome SwitchApiOutcome; + typedef std::future SwitchApiOutcomeCallable; + typedef std::function&)> SwitchApiAsyncHandler; + typedef Outcome DescribeVpcAccessesOutcome; + typedef std::future DescribeVpcAccessesOutcomeCallable; + typedef std::function&)> DescribeVpcAccessesAsyncHandler; + typedef Outcome ModifyApiGroupOutcome; + typedef std::future ModifyApiGroupOutcomeCallable; + typedef std::function&)> ModifyApiGroupAsyncHandler; + typedef Outcome DescribeApiOutcome; + typedef std::future DescribeApiOutcomeCallable; + typedef std::function&)> DescribeApiAsyncHandler; + + CloudAPIClient(const Credentials &credentials, const ClientConfiguration &configuration); + CloudAPIClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + CloudAPIClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~CloudAPIClient(); + DescribeAuthorizedAppsOutcome describeAuthorizedApps(const Model::DescribeAuthorizedAppsRequest &request)const; + void describeAuthorizedAppsAsync(const Model::DescribeAuthorizedAppsRequest& request, const DescribeAuthorizedAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuthorizedAppsOutcomeCallable describeAuthorizedAppsCallable(const Model::DescribeAuthorizedAppsRequest& request) const; + DescribePurchasedApiGroupsOutcome describePurchasedApiGroups(const Model::DescribePurchasedApiGroupsRequest &request)const; + void describePurchasedApiGroupsAsync(const Model::DescribePurchasedApiGroupsRequest& request, const DescribePurchasedApiGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePurchasedApiGroupsOutcomeCallable describePurchasedApiGroupsCallable(const Model::DescribePurchasedApiGroupsRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + DescribeLogConfigOutcome describeLogConfig(const Model::DescribeLogConfigRequest &request)const; + void describeLogConfigAsync(const Model::DescribeLogConfigRequest& request, const DescribeLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLogConfigOutcomeCallable describeLogConfigCallable(const Model::DescribeLogConfigRequest& request) const; + SetApisAuthoritiesOutcome setApisAuthorities(const Model::SetApisAuthoritiesRequest &request)const; + void setApisAuthoritiesAsync(const Model::SetApisAuthoritiesRequest& request, const SetApisAuthoritiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetApisAuthoritiesOutcomeCallable setApisAuthoritiesCallable(const Model::SetApisAuthoritiesRequest& request) const; + DescribeTrafficControlsOutcome describeTrafficControls(const Model::DescribeTrafficControlsRequest &request)const; + void describeTrafficControlsAsync(const Model::DescribeTrafficControlsRequest& request, const DescribeTrafficControlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTrafficControlsOutcomeCallable describeTrafficControlsCallable(const Model::DescribeTrafficControlsRequest& request) const; + SetDomainOutcome setDomain(const Model::SetDomainRequest &request)const; + void setDomainAsync(const Model::SetDomainRequest& request, const SetDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDomainOutcomeCallable setDomainCallable(const Model::SetDomainRequest& request) const; + DeleteIpControlOutcome deleteIpControl(const Model::DeleteIpControlRequest &request)const; + void deleteIpControlAsync(const Model::DeleteIpControlRequest& request, const DeleteIpControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIpControlOutcomeCallable deleteIpControlCallable(const Model::DeleteIpControlRequest& request) const; + DeleteSignatureOutcome deleteSignature(const Model::DeleteSignatureRequest &request)const; + void deleteSignatureAsync(const Model::DeleteSignatureRequest& request, const DeleteSignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSignatureOutcomeCallable deleteSignatureCallable(const Model::DeleteSignatureRequest& request) const; + DeleteTrafficControlOutcome deleteTrafficControl(const Model::DeleteTrafficControlRequest &request)const; + void deleteTrafficControlAsync(const Model::DeleteTrafficControlRequest& request, const DeleteTrafficControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrafficControlOutcomeCallable deleteTrafficControlCallable(const Model::DeleteTrafficControlRequest& request) const; + DescribeApiLatencyDataOutcome describeApiLatencyData(const Model::DescribeApiLatencyDataRequest &request)const; + void describeApiLatencyDataAsync(const Model::DescribeApiLatencyDataRequest& request, const DescribeApiLatencyDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiLatencyDataOutcomeCallable describeApiLatencyDataCallable(const Model::DescribeApiLatencyDataRequest& request) const; + DescribeSystemParametersOutcome describeSystemParameters(const Model::DescribeSystemParametersRequest &request)const; + void describeSystemParametersAsync(const Model::DescribeSystemParametersRequest& request, const DescribeSystemParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSystemParametersOutcomeCallable describeSystemParametersCallable(const Model::DescribeSystemParametersRequest& request) const; + DescribeApiHistoryOutcome describeApiHistory(const Model::DescribeApiHistoryRequest &request)const; + void describeApiHistoryAsync(const Model::DescribeApiHistoryRequest& request, const DescribeApiHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiHistoryOutcomeCallable describeApiHistoryCallable(const Model::DescribeApiHistoryRequest& request) const; + CreateIntranetDomainOutcome createIntranetDomain(const Model::CreateIntranetDomainRequest &request)const; + void createIntranetDomainAsync(const Model::CreateIntranetDomainRequest& request, const CreateIntranetDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIntranetDomainOutcomeCallable createIntranetDomainCallable(const Model::CreateIntranetDomainRequest& request) const; + DescribeApiErrorDataOutcome describeApiErrorData(const Model::DescribeApiErrorDataRequest &request)const; + void describeApiErrorDataAsync(const Model::DescribeApiErrorDataRequest& request, const DescribeApiErrorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiErrorDataOutcomeCallable describeApiErrorDataCallable(const Model::DescribeApiErrorDataRequest& request) const; + DeleteTrafficSpecialControlOutcome deleteTrafficSpecialControl(const Model::DeleteTrafficSpecialControlRequest &request)const; + void deleteTrafficSpecialControlAsync(const Model::DeleteTrafficSpecialControlRequest& request, const DeleteTrafficSpecialControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrafficSpecialControlOutcomeCallable deleteTrafficSpecialControlCallable(const Model::DeleteTrafficSpecialControlRequest& request) const; + RemoveIpControlApisOutcome removeIpControlApis(const Model::RemoveIpControlApisRequest &request)const; + void removeIpControlApisAsync(const Model::RemoveIpControlApisRequest& request, const RemoveIpControlApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveIpControlApisOutcomeCallable removeIpControlApisCallable(const Model::RemoveIpControlApisRequest& request) const; + CreateApiOutcome createApi(const Model::CreateApiRequest &request)const; + void createApiAsync(const Model::CreateApiRequest& request, const CreateApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApiOutcomeCallable createApiCallable(const Model::CreateApiRequest& request) const; + DescribeApiGroupOutcome describeApiGroup(const Model::DescribeApiGroupRequest &request)const; + void describeApiGroupAsync(const Model::DescribeApiGroupRequest& request, const DescribeApiGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiGroupOutcomeCallable describeApiGroupCallable(const Model::DescribeApiGroupRequest& request) const; + DeleteAppOutcome deleteApp(const Model::DeleteAppRequest &request)const; + void deleteAppAsync(const Model::DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppOutcomeCallable deleteAppCallable(const Model::DeleteAppRequest& request) const; + DescribeApiHistoriesOutcome describeApiHistories(const Model::DescribeApiHistoriesRequest &request)const; + void describeApiHistoriesAsync(const Model::DescribeApiHistoriesRequest& request, const DescribeApiHistoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiHistoriesOutcomeCallable describeApiHistoriesCallable(const Model::DescribeApiHistoriesRequest& request) const; + DeleteApiGroupOutcome deleteApiGroup(const Model::DeleteApiGroupRequest &request)const; + void deleteApiGroupAsync(const Model::DeleteApiGroupRequest& request, const DeleteApiGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApiGroupOutcomeCallable deleteApiGroupCallable(const Model::DeleteApiGroupRequest& request) const; + RemoveTrafficControlApisOutcome removeTrafficControlApis(const Model::RemoveTrafficControlApisRequest &request)const; + void removeTrafficControlApisAsync(const Model::RemoveTrafficControlApisRequest& request, const RemoveTrafficControlApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTrafficControlApisOutcomeCallable removeTrafficControlApisCallable(const Model::RemoveTrafficControlApisRequest& request) const; + DescribeApiGroupsOutcome describeApiGroups(const Model::DescribeApiGroupsRequest &request)const; + void describeApiGroupsAsync(const Model::DescribeApiGroupsRequest& request, const DescribeApiGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiGroupsOutcomeCallable describeApiGroupsCallable(const Model::DescribeApiGroupsRequest& request) const; + DeleteAllTrafficSpecialControlOutcome deleteAllTrafficSpecialControl(const Model::DeleteAllTrafficSpecialControlRequest &request)const; + void deleteAllTrafficSpecialControlAsync(const Model::DeleteAllTrafficSpecialControlRequest& request, const DeleteAllTrafficSpecialControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAllTrafficSpecialControlOutcomeCallable deleteAllTrafficSpecialControlCallable(const Model::DeleteAllTrafficSpecialControlRequest& request) const; + AbolishApiOutcome abolishApi(const Model::AbolishApiRequest &request)const; + void abolishApiAsync(const Model::AbolishApiRequest& request, const AbolishApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbolishApiOutcomeCallable abolishApiCallable(const Model::AbolishApiRequest& request) const; + DescribeApisOutcome describeApis(const Model::DescribeApisRequest &request)const; + void describeApisAsync(const Model::DescribeApisRequest& request, const DescribeApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApisOutcomeCallable describeApisCallable(const Model::DescribeApisRequest& request) const; + SetIpControlApisOutcome setIpControlApis(const Model::SetIpControlApisRequest &request)const; + void setIpControlApisAsync(const Model::SetIpControlApisRequest& request, const SetIpControlApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetIpControlApisOutcomeCallable setIpControlApisCallable(const Model::SetIpControlApisRequest& request) const; + CreateApiGroupOutcome createApiGroup(const Model::CreateApiGroupRequest &request)const; + void createApiGroupAsync(const Model::CreateApiGroupRequest& request, const CreateApiGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApiGroupOutcomeCallable createApiGroupCallable(const Model::CreateApiGroupRequest& request) const; + DescribeDomainsResolutionOutcome describeDomainsResolution(const Model::DescribeDomainsResolutionRequest &request)const; + void describeDomainsResolutionAsync(const Model::DescribeDomainsResolutionRequest& request, const DescribeDomainsResolutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainsResolutionOutcomeCallable describeDomainsResolutionCallable(const Model::DescribeDomainsResolutionRequest& request) const; + DescribeAppAttributesOutcome describeAppAttributes(const Model::DescribeAppAttributesRequest &request)const; + void describeAppAttributesAsync(const Model::DescribeAppAttributesRequest& request, const DescribeAppAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppAttributesOutcomeCallable describeAppAttributesCallable(const Model::DescribeAppAttributesRequest& request) const; + DeleteApiOutcome deleteApi(const Model::DeleteApiRequest &request)const; + void deleteApiAsync(const Model::DeleteApiRequest& request, const DeleteApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApiOutcomeCallable deleteApiCallable(const Model::DeleteApiRequest& request) const; + DescribePurchasedApiGroupOutcome describePurchasedApiGroup(const Model::DescribePurchasedApiGroupRequest &request)const; + void describePurchasedApiGroupAsync(const Model::DescribePurchasedApiGroupRequest& request, const DescribePurchasedApiGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePurchasedApiGroupOutcomeCallable describePurchasedApiGroupCallable(const Model::DescribePurchasedApiGroupRequest& request) const; + ModifyIpControlPolicyItemOutcome modifyIpControlPolicyItem(const Model::ModifyIpControlPolicyItemRequest &request)const; + void modifyIpControlPolicyItemAsync(const Model::ModifyIpControlPolicyItemRequest& request, const ModifyIpControlPolicyItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIpControlPolicyItemOutcomeCallable modifyIpControlPolicyItemCallable(const Model::ModifyIpControlPolicyItemRequest& request) const; + DescribeApiDocOutcome describeApiDoc(const Model::DescribeApiDocRequest &request)const; + void describeApiDocAsync(const Model::DescribeApiDocRequest& request, const DescribeApiDocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiDocOutcomeCallable describeApiDocCallable(const Model::DescribeApiDocRequest& request) const; + SdkGenerateByAppOutcome sdkGenerateByApp(const Model::SdkGenerateByAppRequest &request)const; + void sdkGenerateByAppAsync(const Model::SdkGenerateByAppRequest& request, const SdkGenerateByAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SdkGenerateByAppOutcomeCallable sdkGenerateByAppCallable(const Model::SdkGenerateByAppRequest& request) const; + DeleteDomainCertificateOutcome deleteDomainCertificate(const Model::DeleteDomainCertificateRequest &request)const; + void deleteDomainCertificateAsync(const Model::DeleteDomainCertificateRequest& request, const DeleteDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDomainCertificateOutcomeCallable deleteDomainCertificateCallable(const Model::DeleteDomainCertificateRequest& request) const; + CreateTrafficControlOutcome createTrafficControl(const Model::CreateTrafficControlRequest &request)const; + void createTrafficControlAsync(const Model::CreateTrafficControlRequest& request, const CreateTrafficControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrafficControlOutcomeCallable createTrafficControlCallable(const Model::CreateTrafficControlRequest& request) const; + SetDomainCertificateOutcome setDomainCertificate(const Model::SetDomainCertificateRequest &request)const; + void setDomainCertificateAsync(const Model::SetDomainCertificateRequest& request, const SetDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDomainCertificateOutcomeCallable setDomainCertificateCallable(const Model::SetDomainCertificateRequest& request) const; + DescribeSignaturesOutcome describeSignatures(const Model::DescribeSignaturesRequest &request)const; + void describeSignaturesAsync(const Model::DescribeSignaturesRequest& request, const DescribeSignaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSignaturesOutcomeCallable describeSignaturesCallable(const Model::DescribeSignaturesRequest& request) const; + SetAppsAuthoritiesOutcome setAppsAuthorities(const Model::SetAppsAuthoritiesRequest &request)const; + void setAppsAuthoritiesAsync(const Model::SetAppsAuthoritiesRequest& request, const SetAppsAuthoritiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAppsAuthoritiesOutcomeCallable setAppsAuthoritiesCallable(const Model::SetAppsAuthoritiesRequest& request) const; + SdkGenerateByGroupOutcome sdkGenerateByGroup(const Model::SdkGenerateByGroupRequest &request)const; + void sdkGenerateByGroupAsync(const Model::SdkGenerateByGroupRequest& request, const SdkGenerateByGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SdkGenerateByGroupOutcomeCallable sdkGenerateByGroupCallable(const Model::SdkGenerateByGroupRequest& request) const; + DescribeApiStageOutcome describeApiStage(const Model::DescribeApiStageRequest &request)const; + void describeApiStageAsync(const Model::DescribeApiStageRequest& request, const DescribeApiStageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiStageOutcomeCallable describeApiStageCallable(const Model::DescribeApiStageRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + DescribeApiTrafficDataOutcome describeApiTrafficData(const Model::DescribeApiTrafficDataRequest &request)const; + void describeApiTrafficDataAsync(const Model::DescribeApiTrafficDataRequest& request, const DescribeApiTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiTrafficDataOutcomeCallable describeApiTrafficDataCallable(const Model::DescribeApiTrafficDataRequest& request) const; + CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; + void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; + DescribeApisByTrafficControlOutcome describeApisByTrafficControl(const Model::DescribeApisByTrafficControlRequest &request)const; + void describeApisByTrafficControlAsync(const Model::DescribeApisByTrafficControlRequest& request, const DescribeApisByTrafficControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApisByTrafficControlOutcomeCallable describeApisByTrafficControlCallable(const Model::DescribeApisByTrafficControlRequest& request) const; + RemoveVpcAccessOutcome removeVpcAccess(const Model::RemoveVpcAccessRequest &request)const; + void removeVpcAccessAsync(const Model::RemoveVpcAccessRequest& request, const RemoveVpcAccessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveVpcAccessOutcomeCallable removeVpcAccessCallable(const Model::RemoveVpcAccessRequest& request) const; + ResetAppCodeOutcome resetAppCode(const Model::ResetAppCodeRequest &request)const; + void resetAppCodeAsync(const Model::ResetAppCodeRequest& request, const ResetAppCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAppCodeOutcomeCallable resetAppCodeCallable(const Model::ResetAppCodeRequest& request) const; + ModifyIpControlOutcome modifyIpControl(const Model::ModifyIpControlRequest &request)const; + void modifyIpControlAsync(const Model::ModifyIpControlRequest& request, const ModifyIpControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIpControlOutcomeCallable modifyIpControlCallable(const Model::ModifyIpControlRequest& request) const; + DescribeAppsOutcome describeApps(const Model::DescribeAppsRequest &request)const; + void describeAppsAsync(const Model::DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppsOutcomeCallable describeAppsCallable(const Model::DescribeAppsRequest& request) const; + DeleteApiStageVariableOutcome deleteApiStageVariable(const Model::DeleteApiStageVariableRequest &request)const; + void deleteApiStageVariableAsync(const Model::DeleteApiStageVariableRequest& request, const DeleteApiStageVariableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApiStageVariableOutcomeCallable deleteApiStageVariableCallable(const Model::DeleteApiStageVariableRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ModifySignatureOutcome modifySignature(const Model::ModifySignatureRequest &request)const; + void modifySignatureAsync(const Model::ModifySignatureRequest& request, const ModifySignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySignatureOutcomeCallable modifySignatureCallable(const Model::ModifySignatureRequest& request) const; + RemoveSignatureApisOutcome removeSignatureApis(const Model::RemoveSignatureApisRequest &request)const; + void removeSignatureApisAsync(const Model::RemoveSignatureApisRequest& request, const RemoveSignatureApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSignatureApisOutcomeCallable removeSignatureApisCallable(const Model::RemoveSignatureApisRequest& request) const; + AddIpControlPolicyItemOutcome addIpControlPolicyItem(const Model::AddIpControlPolicyItemRequest &request)const; + void addIpControlPolicyItemAsync(const Model::AddIpControlPolicyItemRequest& request, const AddIpControlPolicyItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddIpControlPolicyItemOutcomeCallable addIpControlPolicyItemCallable(const Model::AddIpControlPolicyItemRequest& request) const; + DescribeDomainOutcome describeDomain(const Model::DescribeDomainRequest &request)const; + void describeDomainAsync(const Model::DescribeDomainRequest& request, const DescribeDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainOutcomeCallable describeDomainCallable(const Model::DescribeDomainRequest& request) const; + DescribeApiQpsDataOutcome describeApiQpsData(const Model::DescribeApiQpsDataRequest &request)const; + void describeApiQpsDataAsync(const Model::DescribeApiQpsDataRequest& request, const DescribeApiQpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiQpsDataOutcomeCallable describeApiQpsDataCallable(const Model::DescribeApiQpsDataRequest& request) const; + DescribeAppSecurityOutcome describeAppSecurity(const Model::DescribeAppSecurityRequest &request)const; + void describeAppSecurityAsync(const Model::DescribeAppSecurityRequest& request, const DescribeAppSecurityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppSecurityOutcomeCallable describeAppSecurityCallable(const Model::DescribeAppSecurityRequest& request) const; + SdkGenerateOutcome sdkGenerate(const Model::SdkGenerateRequest &request)const; + void sdkGenerateAsync(const Model::SdkGenerateRequest& request, const SdkGenerateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SdkGenerateOutcomeCallable sdkGenerateCallable(const Model::SdkGenerateRequest& request) const; + DescribeIpControlsOutcome describeIpControls(const Model::DescribeIpControlsRequest &request)const; + void describeIpControlsAsync(const Model::DescribeIpControlsRequest& request, const DescribeIpControlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpControlsOutcomeCallable describeIpControlsCallable(const Model::DescribeIpControlsRequest& request) const; + ImportSwaggerOutcome importSwagger(const Model::ImportSwaggerRequest &request)const; + void importSwaggerAsync(const Model::ImportSwaggerRequest& request, const ImportSwaggerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportSwaggerOutcomeCallable importSwaggerCallable(const Model::ImportSwaggerRequest& request) const; + DescribeApisByAppOutcome describeApisByApp(const Model::DescribeApisByAppRequest &request)const; + void describeApisByAppAsync(const Model::DescribeApisByAppRequest& request, const DescribeApisByAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApisByAppOutcomeCallable describeApisByAppCallable(const Model::DescribeApisByAppRequest& request) const; + ModifyLogConfigOutcome modifyLogConfig(const Model::ModifyLogConfigRequest &request)const; + void modifyLogConfigAsync(const Model::ModifyLogConfigRequest& request, const ModifyLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLogConfigOutcomeCallable modifyLogConfigCallable(const Model::ModifyLogConfigRequest& request) const; + DescribeApisByIpControlOutcome describeApisByIpControl(const Model::DescribeApisByIpControlRequest &request)const; + void describeApisByIpControlAsync(const Model::DescribeApisByIpControlRequest& request, const DescribeApisByIpControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApisByIpControlOutcomeCallable describeApisByIpControlCallable(const Model::DescribeApisByIpControlRequest& request) const; + DescribeHistoryApisOutcome describeHistoryApis(const Model::DescribeHistoryApisRequest &request)const; + void describeHistoryApisAsync(const Model::DescribeHistoryApisRequest& request, const DescribeHistoryApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHistoryApisOutcomeCallable describeHistoryApisCallable(const Model::DescribeHistoryApisRequest& request) const; + DescribeDeployedApiOutcome describeDeployedApi(const Model::DescribeDeployedApiRequest &request)const; + void describeDeployedApiAsync(const Model::DescribeDeployedApiRequest& request, const DescribeDeployedApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeployedApiOutcomeCallable describeDeployedApiCallable(const Model::DescribeDeployedApiRequest& request) const; + DescribeApiIpControlsOutcome describeApiIpControls(const Model::DescribeApiIpControlsRequest &request)const; + void describeApiIpControlsAsync(const Model::DescribeApiIpControlsRequest& request, const DescribeApiIpControlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiIpControlsOutcomeCallable describeApiIpControlsCallable(const Model::DescribeApiIpControlsRequest& request) const; + DescribeApisBySignatureOutcome describeApisBySignature(const Model::DescribeApisBySignatureRequest &request)const; + void describeApisBySignatureAsync(const Model::DescribeApisBySignatureRequest& request, const DescribeApisBySignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApisBySignatureOutcomeCallable describeApisBySignatureCallable(const Model::DescribeApisBySignatureRequest& request) const; + CreateIpControlOutcome createIpControl(const Model::CreateIpControlRequest &request)const; + void createIpControlAsync(const Model::CreateIpControlRequest& request, const CreateIpControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIpControlOutcomeCallable createIpControlCallable(const Model::CreateIpControlRequest& request) const; + SetVpcAccessOutcome setVpcAccess(const Model::SetVpcAccessRequest &request)const; + void setVpcAccessAsync(const Model::SetVpcAccessRequest& request, const SetVpcAccessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetVpcAccessOutcomeCallable setVpcAccessCallable(const Model::SetVpcAccessRequest& request) const; + RemoveApisAuthoritiesOutcome removeApisAuthorities(const Model::RemoveApisAuthoritiesRequest &request)const; + void removeApisAuthoritiesAsync(const Model::RemoveApisAuthoritiesRequest& request, const RemoveApisAuthoritiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveApisAuthoritiesOutcomeCallable removeApisAuthoritiesCallable(const Model::RemoveApisAuthoritiesRequest& request) const; + CreateSignatureOutcome createSignature(const Model::CreateSignatureRequest &request)const; + void createSignatureAsync(const Model::CreateSignatureRequest& request, const CreateSignatureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSignatureOutcomeCallable createSignatureCallable(const Model::CreateSignatureRequest& request) const; + ModifyApiOutcome modifyApi(const Model::ModifyApiRequest &request)const; + void modifyApiAsync(const Model::ModifyApiRequest& request, const ModifyApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyApiOutcomeCallable modifyApiCallable(const Model::ModifyApiRequest& request) const; + DescribeSignaturesByApiOutcome describeSignaturesByApi(const Model::DescribeSignaturesByApiRequest &request)const; + void describeSignaturesByApiAsync(const Model::DescribeSignaturesByApiRequest& request, const DescribeSignaturesByApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSignaturesByApiOutcomeCallable describeSignaturesByApiCallable(const Model::DescribeSignaturesByApiRequest& request) const; + ResetAppSecretOutcome resetAppSecret(const Model::ResetAppSecretRequest &request)const; + void resetAppSecretAsync(const Model::ResetAppSecretRequest& request, const ResetAppSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAppSecretOutcomeCallable resetAppSecretCallable(const Model::ResetAppSecretRequest& request) const; + DeployApiOutcome deployApi(const Model::DeployApiRequest &request)const; + void deployApiAsync(const Model::DeployApiRequest& request, const DeployApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployApiOutcomeCallable deployApiCallable(const Model::DeployApiRequest& request) const; + AddTrafficSpecialControlOutcome addTrafficSpecialControl(const Model::AddTrafficSpecialControlRequest &request)const; + void addTrafficSpecialControlAsync(const Model::AddTrafficSpecialControlRequest& request, const AddTrafficSpecialControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTrafficSpecialControlOutcomeCallable addTrafficSpecialControlCallable(const Model::AddTrafficSpecialControlRequest& request) const; + ModifyAppOutcome modifyApp(const Model::ModifyAppRequest &request)const; + void modifyAppAsync(const Model::ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAppOutcomeCallable modifyAppCallable(const Model::ModifyAppRequest& request) const; + SetDomainWebSocketStatusOutcome setDomainWebSocketStatus(const Model::SetDomainWebSocketStatusRequest &request)const; + void setDomainWebSocketStatusAsync(const Model::SetDomainWebSocketStatusRequest& request, const SetDomainWebSocketStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDomainWebSocketStatusOutcomeCallable setDomainWebSocketStatusCallable(const Model::SetDomainWebSocketStatusRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribePurchasedApisOutcome describePurchasedApis(const Model::DescribePurchasedApisRequest &request)const; + void describePurchasedApisAsync(const Model::DescribePurchasedApisRequest& request, const DescribePurchasedApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePurchasedApisOutcomeCallable describePurchasedApisCallable(const Model::DescribePurchasedApisRequest& request) const; + DescribeTrafficControlsByApiOutcome describeTrafficControlsByApi(const Model::DescribeTrafficControlsByApiRequest &request)const; + void describeTrafficControlsByApiAsync(const Model::DescribeTrafficControlsByApiRequest& request, const DescribeTrafficControlsByApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTrafficControlsByApiOutcomeCallable describeTrafficControlsByApiCallable(const Model::DescribeTrafficControlsByApiRequest& request) const; + DescribeDeployedApisOutcome describeDeployedApis(const Model::DescribeDeployedApisRequest &request)const; + void describeDeployedApisAsync(const Model::DescribeDeployedApisRequest& request, const DescribeDeployedApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeployedApisOutcomeCallable describeDeployedApisCallable(const Model::DescribeDeployedApisRequest& request) const; + RemoveAppsAuthoritiesOutcome removeAppsAuthorities(const Model::RemoveAppsAuthoritiesRequest &request)const; + void removeAppsAuthoritiesAsync(const Model::RemoveAppsAuthoritiesRequest& request, const RemoveAppsAuthoritiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveAppsAuthoritiesOutcomeCallable removeAppsAuthoritiesCallable(const Model::RemoveAppsAuthoritiesRequest& request) const; + DescribeApiTrafficControlsOutcome describeApiTrafficControls(const Model::DescribeApiTrafficControlsRequest &request)const; + void describeApiTrafficControlsAsync(const Model::DescribeApiTrafficControlsRequest& request, const DescribeApiTrafficControlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiTrafficControlsOutcomeCallable describeApiTrafficControlsCallable(const Model::DescribeApiTrafficControlsRequest& request) const; + DeleteLogConfigOutcome deleteLogConfig(const Model::DeleteLogConfigRequest &request)const; + void deleteLogConfigAsync(const Model::DeleteLogConfigRequest& request, const DeleteLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLogConfigOutcomeCallable deleteLogConfigCallable(const Model::DeleteLogConfigRequest& request) const; + SetSignatureApisOutcome setSignatureApis(const Model::SetSignatureApisRequest &request)const; + void setSignatureApisAsync(const Model::SetSignatureApisRequest& request, const SetSignatureApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetSignatureApisOutcomeCallable setSignatureApisCallable(const Model::SetSignatureApisRequest& request) const; + ReactivateDomainOutcome reactivateDomain(const Model::ReactivateDomainRequest &request)const; + void reactivateDomainAsync(const Model::ReactivateDomainRequest& request, const ReactivateDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReactivateDomainOutcomeCallable reactivateDomainCallable(const Model::ReactivateDomainRequest& request) const; + DescribeAppOutcome describeApp(const Model::DescribeAppRequest &request)const; + void describeAppAsync(const Model::DescribeAppRequest& request, const DescribeAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppOutcomeCallable describeAppCallable(const Model::DescribeAppRequest& request) const; + RemoveIpControlPolicyItemOutcome removeIpControlPolicyItem(const Model::RemoveIpControlPolicyItemRequest &request)const; + void removeIpControlPolicyItemAsync(const Model::RemoveIpControlPolicyItemRequest& request, const RemoveIpControlPolicyItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveIpControlPolicyItemOutcomeCallable removeIpControlPolicyItemCallable(const Model::RemoveIpControlPolicyItemRequest& request) const; + DescribeAuthorizedApisOutcome describeAuthorizedApis(const Model::DescribeAuthorizedApisRequest &request)const; + void describeAuthorizedApisAsync(const Model::DescribeAuthorizedApisRequest& request, const DescribeAuthorizedApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuthorizedApisOutcomeCallable describeAuthorizedApisCallable(const Model::DescribeAuthorizedApisRequest& request) const; + ModifyTrafficControlOutcome modifyTrafficControl(const Model::ModifyTrafficControlRequest &request)const; + void modifyTrafficControlAsync(const Model::ModifyTrafficControlRequest& request, const ModifyTrafficControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTrafficControlOutcomeCallable modifyTrafficControlCallable(const Model::ModifyTrafficControlRequest& request) const; + CreateLogConfigOutcome createLogConfig(const Model::CreateLogConfigRequest &request)const; + void createLogConfigAsync(const Model::CreateLogConfigRequest& request, const CreateLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLogConfigOutcomeCallable createLogConfigCallable(const Model::CreateLogConfigRequest& request) const; + CreateApiStageVariableOutcome createApiStageVariable(const Model::CreateApiStageVariableRequest &request)const; + void createApiStageVariableAsync(const Model::CreateApiStageVariableRequest& request, const CreateApiStageVariableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApiStageVariableOutcomeCallable createApiStageVariableCallable(const Model::CreateApiStageVariableRequest& request) const; + DescribeIpControlPolicyItemsOutcome describeIpControlPolicyItems(const Model::DescribeIpControlPolicyItemsRequest &request)const; + void describeIpControlPolicyItemsAsync(const Model::DescribeIpControlPolicyItemsRequest& request, const DescribeIpControlPolicyItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpControlPolicyItemsOutcomeCallable describeIpControlPolicyItemsCallable(const Model::DescribeIpControlPolicyItemsRequest& request) const; + DescribeApiSignaturesOutcome describeApiSignatures(const Model::DescribeApiSignaturesRequest &request)const; + void describeApiSignaturesAsync(const Model::DescribeApiSignaturesRequest& request, const DescribeApiSignaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiSignaturesOutcomeCallable describeApiSignaturesCallable(const Model::DescribeApiSignaturesRequest& request) const; + DeleteDomainOutcome deleteDomain(const Model::DeleteDomainRequest &request)const; + void deleteDomainAsync(const Model::DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDomainOutcomeCallable deleteDomainCallable(const Model::DeleteDomainRequest& request) const; + SetTrafficControlApisOutcome setTrafficControlApis(const Model::SetTrafficControlApisRequest &request)const; + void setTrafficControlApisAsync(const Model::SetTrafficControlApisRequest& request, const SetTrafficControlApisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetTrafficControlApisOutcomeCallable setTrafficControlApisCallable(const Model::SetTrafficControlApisRequest& request) const; + SwitchApiOutcome switchApi(const Model::SwitchApiRequest &request)const; + void switchApiAsync(const Model::SwitchApiRequest& request, const SwitchApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchApiOutcomeCallable switchApiCallable(const Model::SwitchApiRequest& request) const; + DescribeVpcAccessesOutcome describeVpcAccesses(const Model::DescribeVpcAccessesRequest &request)const; + void describeVpcAccessesAsync(const Model::DescribeVpcAccessesRequest& request, const DescribeVpcAccessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcAccessesOutcomeCallable describeVpcAccessesCallable(const Model::DescribeVpcAccessesRequest& request) const; + ModifyApiGroupOutcome modifyApiGroup(const Model::ModifyApiGroupRequest &request)const; + void modifyApiGroupAsync(const Model::ModifyApiGroupRequest& request, const ModifyApiGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyApiGroupOutcomeCallable modifyApiGroupCallable(const Model::ModifyApiGroupRequest& request) const; + DescribeApiOutcome describeApi(const Model::DescribeApiRequest &request)const; + void describeApiAsync(const Model::DescribeApiRequest& request, const DescribeApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApiOutcomeCallable describeApiCallable(const Model::DescribeApiRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CLOUDAPI_CLOUDAPICLIENT_H_ diff --git a/cloudapi/include/alibabacloud/cloudapi/CloudAPIExport.h b/cloudapi/include/alibabacloud/cloudapi/CloudAPIExport.h index 63e3ee685..47aa9ffa6 100644 --- a/cloudapi/include/alibabacloud/cloudapi/CloudAPIExport.h +++ b/cloudapi/include/alibabacloud/cloudapi/CloudAPIExport.h @@ -1,32 +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_CLOUDAPI_CLOUDAPIEXPORT_H_ -#define ALIBABACLOUD_CLOUDAPI_CLOUDAPIEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_CLOUDAPI_LIBRARY) -# define ALIBABACLOUD_CLOUDAPI_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_CLOUDAPI_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_CLOUDAPI_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_CLOUDAPIEXPORT_H_ +#define ALIBABACLOUD_CLOUDAPI_CLOUDAPIEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CLOUDAPI_LIBRARY) +# define ALIBABACLOUD_CLOUDAPI_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CLOUDAPI_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CLOUDAPI_EXPORT +#endif + #endif // !ALIBABACLOUD_CLOUDAPI_CLOUDAPIEXPORT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiRequest.h index 885aa1a2a..d21909e16 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT AbolishApiRequest : public RpcServiceRequest - { - - public: - AbolishApiRequest(); - ~AbolishApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT AbolishApiRequest : public RpcServiceRequest + { + + public: + AbolishApiRequest(); + ~AbolishApiRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiResult.h index bcd5e4882..a1d509a4f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/AbolishApiResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT AbolishApiResult : public ServiceResult - { - public: - - - AbolishApiResult(); - explicit AbolishApiResult(const std::string &payload); - ~AbolishApiResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT AbolishApiResult : public ServiceResult + { + public: + + + AbolishApiResult(); + explicit AbolishApiResult(const std::string &payload); + ~AbolishApiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_ABOLISHAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemRequest.h index ab8786db0..658472a47 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT AddIpControlPolicyItemRequest : public RpcServiceRequest - { - - public: - AddIpControlPolicyItemRequest(); - ~AddIpControlPolicyItemRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT AddIpControlPolicyItemRequest : public RpcServiceRequest + { + + public: + AddIpControlPolicyItemRequest(); + ~AddIpControlPolicyItemRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setCidrIp(const std::string& cidrIp); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string ipControlId_; std::string securityToken_; std::string appId_; std::string cidrIp_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemResult.h b/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemResult.h index 77fdcadab..4b18df93d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/AddIpControlPolicyItemResult.h @@ -1,51 +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_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT AddIpControlPolicyItemResult : public ServiceResult - { - public: - - - AddIpControlPolicyItemResult(); - explicit AddIpControlPolicyItemResult(const std::string &payload); - ~AddIpControlPolicyItemResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT AddIpControlPolicyItemResult : public ServiceResult + { + public: + + + AddIpControlPolicyItemResult(); + explicit AddIpControlPolicyItemResult(const std::string &payload); + ~AddIpControlPolicyItemResult(); std::string getPolicyItemId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string policyItemId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_ADDIPCONTROLPOLICYITEMRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlRequest.h index 9406fcb35..9c87262b5 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT AddTrafficSpecialControlRequest : public RpcServiceRequest - { - - public: - AddTrafficSpecialControlRequest(); - ~AddTrafficSpecialControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT AddTrafficSpecialControlRequest : public RpcServiceRequest + { + + public: + AddTrafficSpecialControlRequest(); + ~AddTrafficSpecialControlRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getSpecialKey()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSpecialType(const std::string& specialType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string trafficControlId_; std::string specialKey_; std::string securityToken_; int trafficValue_; std::string specialType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlResult.h index 774b998b3..2b5aea5cf 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/AddTrafficSpecialControlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT AddTrafficSpecialControlResult : public ServiceResult - { - public: - - - AddTrafficSpecialControlResult(); - explicit AddTrafficSpecialControlResult(const std::string &payload); - ~AddTrafficSpecialControlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT AddTrafficSpecialControlResult : public ServiceResult + { + public: + + + AddTrafficSpecialControlResult(); + explicit AddTrafficSpecialControlResult(const std::string &payload); + ~AddTrafficSpecialControlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_ADDTRAFFICSPECIALCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupRequest.h index 88ae426fb..a39a7dad6 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_CREATEAPIGROUPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiGroupRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiGroupRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - CreateApiGroupRequest(); - ~CreateApiGroupRequest(); - + + public: + CreateApiGroupRequest(); + ~CreateApiGroupRequest(); + std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSecurityToken()const; @@ -54,8 +54,8 @@ namespace AlibabaCloud void setGroupName(const std::string& groupName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string instanceId_; std::string securityToken_; std::string description_; @@ -63,9 +63,9 @@ namespace AlibabaCloud std::vector tag_; std::string groupName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupResult.h index 06230b4dd..b0283df26 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiGroupResult.h @@ -1,42 +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_CLOUDAPI_MODEL_CREATEAPIGROUPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiGroupResult : public ServiceResult - { - public: - - - CreateApiGroupResult(); - explicit CreateApiGroupResult(const std::string &payload); - ~CreateApiGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiGroupResult : public ServiceResult + { + public: + + + CreateApiGroupResult(); + explicit CreateApiGroupResult(const std::string &payload); + ~CreateApiGroupResult(); std::string getGroupName()const; std::string getSubDomain()const; std::string getDescription()const; @@ -44,10 +44,10 @@ namespace AlibabaCloud bool getTagStatus()const; std::string getInstanceType()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string subDomain_; std::string description_; @@ -55,9 +55,9 @@ namespace AlibabaCloud bool tagStatus_; std::string instanceType_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIGROUPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiRequest.h index 4432f06a8..e0f32f532 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiRequest : public RpcServiceRequest - { - - public: - CreateApiRequest(); - ~CreateApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiRequest : public RpcServiceRequest + { + + public: + CreateApiRequest(); + ~CreateApiRequest(); + std::string getWebSocketApiType()const; void setWebSocketApiType(const std::string& webSocketApiType); std::string getErrorCodeSamples()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestConfig(const std::string& requestConfig); std::string getResultBodyModel()const; void setResultBodyModel(const std::string& resultBodyModel); - - private: + + private: std::string webSocketApiType_; std::string errorCodeSamples_; std::string appCodeAuthType_; @@ -115,9 +115,9 @@ namespace AlibabaCloud bool forceNonceCheck_; std::string requestConfig_; std::string resultBodyModel_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiResult.h index f896354dd..5e91e264a 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiResult.h @@ -1,51 +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_CLOUDAPI_MODEL_CREATEAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiResult : public ServiceResult - { - public: - - - CreateApiResult(); - explicit CreateApiResult(const std::string &payload); - ~CreateApiResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiResult : public ServiceResult + { + public: + + + CreateApiResult(); + explicit CreateApiResult(const std::string &payload); + ~CreateApiResult(); std::string getApiId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string apiId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableRequest.h index 30ac73ff6..c4f8332f0 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLEREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiStageVariableRequest : public RpcServiceRequest - { - - public: - CreateApiStageVariableRequest(); - ~CreateApiStageVariableRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLEREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiStageVariableRequest : public RpcServiceRequest + { + + public: + CreateApiStageVariableRequest(); + ~CreateApiStageVariableRequest(); + bool getSupportRoute()const; void setSupportRoute(bool supportRoute); std::string getSecurityToken()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getStageId()const; void setStageId(const std::string& stageId); - - private: + + private: bool supportRoute_; std::string securityToken_; std::string variableName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string stageRouteModel_; std::string accessKeyId_; std::string stageId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLEREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableResult.h index 5997c7944..b029d9c96 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateApiStageVariableResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiStageVariableResult : public ServiceResult - { - public: - - - CreateApiStageVariableResult(); - explicit CreateApiStageVariableResult(const std::string &payload); - ~CreateApiStageVariableResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateApiStageVariableResult : public ServiceResult + { + public: + + + CreateApiStageVariableResult(); + explicit CreateApiStageVariableResult(const std::string &payload); + ~CreateApiStageVariableResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPISTAGEVARIABLERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateAppRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateAppRequest.h index b280d438c..06c2d500b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateAppRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateAppRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_CREATEAPPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateAppRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateAppRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - CreateAppRequest(); - ~CreateAppRequest(); - + + public: + CreateAppRequest(); + ~CreateAppRequest(); + std::string getAppName()const; void setAppName(const std::string& appName); std::string getSecurityToken()const; @@ -50,16 +50,16 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string appName_; std::string securityToken_; std::string description_; std::vector tag_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateAppResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateAppResult.h index 17b5fe219..db3c664ad 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateAppResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateAppResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateAppResult : public ServiceResult - { - public: - - - CreateAppResult(); - explicit CreateAppResult(const std::string &payload); - ~CreateAppResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateAppResult : public ServiceResult + { + public: + + + CreateAppResult(); + explicit CreateAppResult(const std::string &payload); + ~CreateAppResult(); long getAppId()const; bool getTagStatus()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long appId_; bool tagStatus_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEAPPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainRequest.h index 1da4d053c..eb5d500e6 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIntranetDomainRequest : public RpcServiceRequest - { - - public: - CreateIntranetDomainRequest(); - ~CreateIntranetDomainRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIntranetDomainRequest : public RpcServiceRequest + { + + public: + CreateIntranetDomainRequest(); + ~CreateIntranetDomainRequest(); + bool getDeleteInternetDomain()const; void setDeleteInternetDomain(bool deleteInternetDomain); std::string getSecurityToken()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setGroupId(const std::string& groupId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: bool deleteInternetDomain_; std::string securityToken_; std::string groupId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainResult.h index 25ca90a9a..c9cb28ca3 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateIntranetDomainResult.h @@ -1,51 +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_CLOUDAPI_MODEL_CREATEINTRANETDOMAINRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIntranetDomainResult : public ServiceResult - { - public: - - - CreateIntranetDomainResult(); - explicit CreateIntranetDomainResult(const std::string &payload); - ~CreateIntranetDomainResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIntranetDomainResult : public ServiceResult + { + public: + + + CreateIntranetDomainResult(); + explicit CreateIntranetDomainResult(const std::string &payload); + ~CreateIntranetDomainResult(); std::string getDomainName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string domainName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEINTRANETDOMAINRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlRequest.h index e85e4b778..14d22bb40 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_CREATEIPCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIpControlRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIpControlRequest : public RpcServiceRequest + { struct IpControlPolicys { std::string appId; std::string cidrIp; }; - - public: - CreateIpControlRequest(); - ~CreateIpControlRequest(); - + + public: + CreateIpControlRequest(); + ~CreateIpControlRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getIpControlName()const; @@ -52,17 +52,17 @@ namespace AlibabaCloud void setDescription(const std::string& description); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string ipControlName_; std::string ipControlType_; std::vector ipControlPolicys_; std::string description_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlResult.h index ab2e4af46..2b06ea46f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateIpControlResult.h @@ -1,51 +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_CLOUDAPI_MODEL_CREATEIPCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIpControlResult : public ServiceResult - { - public: - - - CreateIpControlResult(); - explicit CreateIpControlResult(const std::string &payload); - ~CreateIpControlResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateIpControlResult : public ServiceResult + { + public: + + + CreateIpControlResult(); + explicit CreateIpControlResult(const std::string &payload); + ~CreateIpControlResult(); std::string getIpControlId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string ipControlId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATEIPCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigRequest.h index a724af93b..3298708c1 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateLogConfigRequest : public RpcServiceRequest - { - - public: - CreateLogConfigRequest(); - ~CreateLogConfigRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateLogConfigRequest : public RpcServiceRequest + { + + public: + CreateLogConfigRequest(); + ~CreateLogConfigRequest(); + std::string getSlsLogStore()const; void setSlsLogStore(const std::string& slsLogStore); std::string getLogType()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSlsProject(const std::string& slsProject); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string slsLogStore_; std::string logType_; std::string securityToken_; std::string regionId_; std::string slsProject_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigResult.h index bd5db9a34..f80fcbd8f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateLogConfigResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateLogConfigResult : public ServiceResult - { - public: - - - CreateLogConfigResult(); - explicit CreateLogConfigResult(const std::string &payload); - ~CreateLogConfigResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateLogConfigResult : public ServiceResult + { + public: + + + CreateLogConfigResult(); + explicit CreateLogConfigResult(const std::string &payload); + ~CreateLogConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATELOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureRequest.h index 5541af818..96bd42c78 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATUREREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateSignatureRequest : public RpcServiceRequest - { - - public: - CreateSignatureRequest(); - ~CreateSignatureRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATUREREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATUREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateSignatureRequest : public RpcServiceRequest + { + + public: + CreateSignatureRequest(); + ~CreateSignatureRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getSignatureName()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSignatureSecret(const std::string& signatureSecret); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string signatureName_; std::string signatureKey_; std::string signatureSecret_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATUREREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureResult.h index a01acca14..b73e54749 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateSignatureResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATURERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATURERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateSignatureResult : public ServiceResult - { - public: - - - CreateSignatureResult(); - explicit CreateSignatureResult(const std::string &payload); - ~CreateSignatureResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATURERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATURERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateSignatureResult : public ServiceResult + { + public: + + + CreateSignatureResult(); + explicit CreateSignatureResult(const std::string &payload); + ~CreateSignatureResult(); std::string getSignatureId()const; std::string getSignatureName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string signatureId_; std::string signatureName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATESIGNATURERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlRequest.h index e9a7cf6a4..e42f75136 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateTrafficControlRequest : public RpcServiceRequest - { - - public: - CreateTrafficControlRequest(); - ~CreateTrafficControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateTrafficControlRequest : public RpcServiceRequest + { + + public: + CreateTrafficControlRequest(); + ~CreateTrafficControlRequest(); + int getApiDefault()const; void setApiDefault(int apiDefault); std::string getSecurityToken()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAppDefault(int appDefault); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int apiDefault_; std::string securityToken_; std::string trafficControlName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud int userDefault_; int appDefault_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlResult.h index a67706857..581eda385 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/CreateTrafficControlResult.h @@ -1,51 +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_CLOUDAPI_MODEL_CREATETRAFFICCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT CreateTrafficControlResult : public ServiceResult - { - public: - - - CreateTrafficControlResult(); - explicit CreateTrafficControlResult(const std::string &payload); - ~CreateTrafficControlResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT CreateTrafficControlResult : public ServiceResult + { + public: + + + CreateTrafficControlResult(); + explicit CreateTrafficControlResult(const std::string &payload); + ~CreateTrafficControlResult(); std::string getTrafficControlId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string trafficControlId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_CREATETRAFFICCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlRequest.h index 01e73bdef..f11b1136f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAllTrafficSpecialControlRequest : public RpcServiceRequest - { - - public: - DeleteAllTrafficSpecialControlRequest(); - ~DeleteAllTrafficSpecialControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAllTrafficSpecialControlRequest : public RpcServiceRequest + { + + public: + DeleteAllTrafficSpecialControlRequest(); + ~DeleteAllTrafficSpecialControlRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string trafficControlId_; std::string securityToken_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlResult.h index b93fd2dec..c5884f9de 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAllTrafficSpecialControlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAllTrafficSpecialControlResult : public ServiceResult - { - public: - - - DeleteAllTrafficSpecialControlResult(); - explicit DeleteAllTrafficSpecialControlResult(const std::string &payload); - ~DeleteAllTrafficSpecialControlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAllTrafficSpecialControlResult : public ServiceResult + { + public: + + + DeleteAllTrafficSpecialControlResult(); + explicit DeleteAllTrafficSpecialControlResult(const std::string &payload); + ~DeleteAllTrafficSpecialControlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEALLTRAFFICSPECIALCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupRequest.h index c6620141f..8e9663891 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DELETEAPIGROUPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiGroupRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiGroupRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DeleteApiGroupRequest(); - ~DeleteApiGroupRequest(); - + + public: + DeleteApiGroupRequest(); + ~DeleteApiGroupRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -48,15 +48,15 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::vector tag_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupResult.h index 7cd6849ab..873e6cbc2 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiGroupResult : public ServiceResult - { - public: - - - DeleteApiGroupResult(); - explicit DeleteApiGroupResult(const std::string &payload); - ~DeleteApiGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiGroupResult : public ServiceResult + { + public: + + + DeleteApiGroupResult(); + explicit DeleteApiGroupResult(const std::string &payload); + ~DeleteApiGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIGROUPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiRequest.h index 33bd14bca..8ebd89702 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiRequest : public RpcServiceRequest - { - - public: - DeleteApiRequest(); - ~DeleteApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiRequest : public RpcServiceRequest + { + + public: + DeleteApiRequest(); + ~DeleteApiRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiResult.h index 7b8aff649..6e2683dd0 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiResult : public ServiceResult - { - public: - - - DeleteApiResult(); - explicit DeleteApiResult(const std::string &payload); - ~DeleteApiResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiResult : public ServiceResult + { + public: + + + DeleteApiResult(); + explicit DeleteApiResult(const std::string &payload); + ~DeleteApiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableRequest.h index 8d3a364d6..58d9a6ae2 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLEREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiStageVariableRequest : public RpcServiceRequest - { - - public: - DeleteApiStageVariableRequest(); - ~DeleteApiStageVariableRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLEREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiStageVariableRequest : public RpcServiceRequest + { + + public: + DeleteApiStageVariableRequest(); + ~DeleteApiStageVariableRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getVariableName()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getStageId()const; void setStageId(const std::string& stageId); - - private: + + private: std::string securityToken_; std::string variableName_; std::string groupId_; std::string accessKeyId_; std::string stageId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLEREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableResult.h index ba4a58e51..5fcdf477b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteApiStageVariableResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiStageVariableResult : public ServiceResult - { - public: - - - DeleteApiStageVariableResult(); - explicit DeleteApiStageVariableResult(const std::string &payload); - ~DeleteApiStageVariableResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteApiStageVariableResult : public ServiceResult + { + public: + + + DeleteApiStageVariableResult(); + explicit DeleteApiStageVariableResult(const std::string &payload); + ~DeleteApiStageVariableResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPISTAGEVARIABLERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppRequest.h index 3f894f894..b696fcb88 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DELETEAPPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAppRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAppRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DeleteAppRequest(); - ~DeleteAppRequest(); - + + public: + DeleteAppRequest(); + ~DeleteAppRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); long getAppId()const; @@ -48,15 +48,15 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; long appId_; std::vector tag_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppResult.h index 9a2ef249e..8838a8487 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteAppResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAppResult : public ServiceResult - { - public: - - - DeleteAppResult(); - explicit DeleteAppResult(const std::string &payload); - ~DeleteAppResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteAppResult : public ServiceResult + { + public: + + + DeleteAppResult(); + explicit DeleteAppResult(const std::string &payload); + ~DeleteAppResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEAPPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateRequest.h index 9f1c54ef4..6231aa001 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainCertificateRequest : public RpcServiceRequest - { - - public: - DeleteDomainCertificateRequest(); - ~DeleteDomainCertificateRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainCertificateRequest : public RpcServiceRequest + { + + public: + DeleteDomainCertificateRequest(); + ~DeleteDomainCertificateRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string certificateId_; std::string domainName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateResult.h index b6779539a..4b5102d21 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainCertificateResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainCertificateResult : public ServiceResult - { - public: - - - DeleteDomainCertificateResult(); - explicit DeleteDomainCertificateResult(const std::string &payload); - ~DeleteDomainCertificateResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainCertificateResult : public ServiceResult + { + public: + + + DeleteDomainCertificateResult(); + explicit DeleteDomainCertificateResult(const std::string &payload); + ~DeleteDomainCertificateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainRequest.h index fdec6f0b3..4388960fe 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainRequest : public RpcServiceRequest - { - - public: - DeleteDomainRequest(); - ~DeleteDomainRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainRequest : public RpcServiceRequest + { + + public: + DeleteDomainRequest(); + ~DeleteDomainRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string domainName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainResult.h index 1b7cac02b..116b8fee3 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteDomainResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainResult : public ServiceResult - { - public: - - - DeleteDomainResult(); - explicit DeleteDomainResult(const std::string &payload); - ~DeleteDomainResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteDomainResult : public ServiceResult + { + public: + + + DeleteDomainResult(); + explicit DeleteDomainResult(const std::string &payload); + ~DeleteDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEDOMAINRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlRequest.h index 9e19d028a..bfa5b26fd 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_DELETEIPCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteIpControlRequest : public RpcServiceRequest - { - - public: - DeleteIpControlRequest(); - ~DeleteIpControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteIpControlRequest : public RpcServiceRequest + { + + public: + DeleteIpControlRequest(); + ~DeleteIpControlRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string ipControlId_; std::string securityToken_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlResult.h index 59d0ad7d1..81fd41ca0 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteIpControlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteIpControlResult : public ServiceResult - { - public: - - - DeleteIpControlResult(); - explicit DeleteIpControlResult(const std::string &payload); - ~DeleteIpControlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteIpControlResult : public ServiceResult + { + public: + + + DeleteIpControlResult(); + explicit DeleteIpControlResult(const std::string &payload); + ~DeleteIpControlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETEIPCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigRequest.h index 5c552329b..3acfdc5ab 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteLogConfigRequest : public RpcServiceRequest - { - - public: - DeleteLogConfigRequest(); - ~DeleteLogConfigRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteLogConfigRequest : public RpcServiceRequest + { + + public: + DeleteLogConfigRequest(); + ~DeleteLogConfigRequest(); + std::string getLogType()const; void setLogType(const std::string& logType); std::string getSecurityToken()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string logType_; std::string securityToken_; std::string regionId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigResult.h index c6db20e35..c3e771f76 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteLogConfigResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteLogConfigResult : public ServiceResult - { - public: - - - DeleteLogConfigResult(); - explicit DeleteLogConfigResult(const std::string &payload); - ~DeleteLogConfigResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteLogConfigResult : public ServiceResult + { + public: + + + DeleteLogConfigResult(); + explicit DeleteLogConfigResult(const std::string &payload); + ~DeleteLogConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETELOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureRequest.h index 2a2661a3d..24c30de01 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_DELETESIGNATUREREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteSignatureRequest : public RpcServiceRequest - { - - public: - DeleteSignatureRequest(); - ~DeleteSignatureRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATUREREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATUREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteSignatureRequest : public RpcServiceRequest + { + + public: + DeleteSignatureRequest(); + ~DeleteSignatureRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getSignatureId()const; void setSignatureId(const std::string& signatureId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string signatureId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATUREREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureResult.h index ddbfc44c6..0654d91ab 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteSignatureResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATURERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATURERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteSignatureResult : public ServiceResult - { - public: - - - DeleteSignatureResult(); - explicit DeleteSignatureResult(const std::string &payload); - ~DeleteSignatureResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATURERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATURERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteSignatureResult : public ServiceResult + { + public: + + + DeleteSignatureResult(); + explicit DeleteSignatureResult(const std::string &payload); + ~DeleteSignatureResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETESIGNATURERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlRequest.h index c88ff39b1..3205f2fca 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_DELETETRAFFICCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficControlRequest : public RpcServiceRequest - { - - public: - DeleteTrafficControlRequest(); - ~DeleteTrafficControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficControlRequest : public RpcServiceRequest + { + + public: + DeleteTrafficControlRequest(); + ~DeleteTrafficControlRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string trafficControlId_; std::string securityToken_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlResult.h index 1170fc3a6..847742b6d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficControlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficControlResult : public ServiceResult - { - public: - - - DeleteTrafficControlResult(); - explicit DeleteTrafficControlResult(const std::string &payload); - ~DeleteTrafficControlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficControlResult : public ServiceResult + { + public: + + + DeleteTrafficControlResult(); + explicit DeleteTrafficControlResult(const std::string &payload); + ~DeleteTrafficControlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlRequest.h index 69ecf331e..c9ac00f3f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficSpecialControlRequest : public RpcServiceRequest - { - - public: - DeleteTrafficSpecialControlRequest(); - ~DeleteTrafficSpecialControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficSpecialControlRequest : public RpcServiceRequest + { + + public: + DeleteTrafficSpecialControlRequest(); + ~DeleteTrafficSpecialControlRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getSpecialKey()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSpecialType(const std::string& specialType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string trafficControlId_; std::string specialKey_; std::string securityToken_; std::string specialType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlResult.h index 0dd7153b8..11e0053a3 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeleteTrafficSpecialControlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficSpecialControlResult : public ServiceResult - { - public: - - - DeleteTrafficSpecialControlResult(); - explicit DeleteTrafficSpecialControlResult(const std::string &payload); - ~DeleteTrafficSpecialControlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeleteTrafficSpecialControlResult : public ServiceResult + { + public: + + + DeleteTrafficSpecialControlResult(); + explicit DeleteTrafficSpecialControlResult(const std::string &payload); + ~DeleteTrafficSpecialControlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DELETETRAFFICSPECIALCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeployApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DeployApiRequest.h index 1cacda7b6..584e90e96 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeployApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeployApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeployApiRequest : public RpcServiceRequest - { - - public: - DeployApiRequest(); - ~DeployApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeployApiRequest : public RpcServiceRequest + { + + public: + DeployApiRequest(); + ~DeployApiRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string description_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DeployApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DeployApiResult.h index 6e239169b..9b9bc737c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DeployApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DeployApiResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DeployApiResult : public ServiceResult - { - public: - - - DeployApiResult(); - explicit DeployApiResult(const std::string &payload); - ~DeployApiResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DeployApiResult : public ServiceResult + { + public: + + + DeployApiResult(); + explicit DeployApiResult(const std::string &payload); + ~DeployApiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DEPLOYAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocRequest.h index c5cb068db..2f29351a7 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiDocRequest : public RpcServiceRequest - { - - public: - DescribeApiDocRequest(); - ~DescribeApiDocRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiDocRequest : public RpcServiceRequest + { + + public: + DescribeApiDocRequest(); + ~DescribeApiDocRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocResult.h index 39c7293ba..daed6ff01 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiDocResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiDocResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiDocResult : public ServiceResult + { + public: struct RequestConfig { std::string requestPath; @@ -77,11 +77,11 @@ namespace AlibabaCloud std::string docShow; std::string location; }; - - - DescribeApiDocResult(); - explicit DescribeApiDocResult(const std::string &payload); - ~DescribeApiDocResult(); + + + DescribeApiDocResult(); + explicit DescribeApiDocResult(const std::string &payload); + ~DescribeApiDocResult(); std::string getGroupName()const; RequestConfig getRequestConfig()const; std::string getDescription()const; @@ -101,10 +101,10 @@ namespace AlibabaCloud std::string getRegionId()const; std::string getAuthType()const; std::string getApiId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; RequestConfig requestConfig_; std::string description_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string regionId_; std::string authType_; std::string apiId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIDOCRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataRequest.h index f4e74b046..c679fa631 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATAREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiErrorDataRequest : public RpcServiceRequest - { - - public: - DescribeApiErrorDataRequest(); - ~DescribeApiErrorDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATAREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiErrorDataRequest : public RpcServiceRequest + { + + public: + DescribeApiErrorDataRequest(); + ~DescribeApiErrorDataRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string endTime_; std::string startTime_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATAREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataResult.h index 225e68697..bac62869d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiErrorDataResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATARESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiErrorDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATARESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiErrorDataResult : public ServiceResult + { + public: struct MonitorItem { std::string itemValue; std::string itemTime; }; - - - DescribeApiErrorDataResult(); - explicit DescribeApiErrorDataResult(const std::string &payload); - ~DescribeApiErrorDataResult(); + + + DescribeApiErrorDataResult(); + explicit DescribeApiErrorDataResult(const std::string &payload); + ~DescribeApiErrorDataResult(); std::vector getClientErrors()const; std::vector getServerErrors()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector clientErrors_; std::vector serverErrors_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIERRORDATARESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupRequest.h index dd0714822..a8d3db2ab 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DESCRIBEAPIGROUPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeApiGroupRequest(); - ~DescribeApiGroupRequest(); - + + public: + DescribeApiGroupRequest(); + ~DescribeApiGroupRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -48,15 +48,15 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::vector tag_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupResult.h index ab4efb9f8..1e9dc3ffd 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupResult : public ServiceResult + { + public: struct DomainItem { std::string domainCNAMEStatus; @@ -49,11 +49,11 @@ namespace AlibabaCloud std::string stageName; std::string stageId; }; - - - DescribeApiGroupResult(); - explicit DescribeApiGroupResult(const std::string &payload); - ~DescribeApiGroupResult(); + + + DescribeApiGroupResult(); + explicit DescribeApiGroupResult(const std::string &payload); + ~DescribeApiGroupResult(); std::string getGroupName()const; std::string getStatus()const; std::string getDescription()const; @@ -71,10 +71,10 @@ namespace AlibabaCloud std::string getIllegalStatus()const; std::string getRegionId()const; std::string getInstanceType()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string status_; std::string description_; @@ -92,9 +92,9 @@ namespace AlibabaCloud std::string illegalStatus_; std::string regionId_; std::string instanceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsRequest.h index ef52f5796..6370edcab 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeApiGroupsRequest(); - ~DescribeApiGroupsRequest(); - + + public: + DescribeApiGroupsRequest(); + ~DescribeApiGroupsRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; int pageSize_; @@ -66,9 +66,9 @@ namespace AlibabaCloud std::string groupName_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsResult.h index 2795b1fa8..c940601d3 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiGroupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiGroupsResult : public ServiceResult + { + public: struct ApiGroupAttribute { std::string groupName; @@ -48,26 +48,26 @@ namespace AlibabaCloud std::string regionId; std::string instanceType; }; - - - DescribeApiGroupsResult(); - explicit DescribeApiGroupsResult(const std::string &payload); - ~DescribeApiGroupsResult(); + + + DescribeApiGroupsResult(); + explicit DescribeApiGroupsResult(const std::string &payload); + ~DescribeApiGroupsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApiGroupAttributes()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apiGroupAttributes_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIGROUPSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesRequest.h index 5717b6fe7..805900383 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoriesRequest : public RpcServiceRequest - { - - public: - DescribeApiHistoriesRequest(); - ~DescribeApiHistoriesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoriesRequest : public RpcServiceRequest + { + + public: + DescribeApiHistoriesRequest(); + ~DescribeApiHistoriesRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getApiName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setPageNumber(const std::string& pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string apiName_; std::string securityToken_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string apiId_; std::string pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesResult.h index 6a9412a7d..9c7b5cc60 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoriesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoriesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoriesResult : public ServiceResult + { + public: struct ApiHisItem { std::string groupName; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string historyVersion; std::string groupId; }; - - - DescribeApiHistoriesResult(); - explicit DescribeApiHistoriesResult(const std::string &payload); - ~DescribeApiHistoriesResult(); + + + DescribeApiHistoriesResult(); + explicit DescribeApiHistoriesResult(const std::string &payload); + ~DescribeApiHistoriesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApiHisItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apiHisItems_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORIESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryRequest.h index 00ee776ea..101f4a90a 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoryRequest : public RpcServiceRequest - { - - public: - DescribeApiHistoryRequest(); - ~DescribeApiHistoryRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoryRequest : public RpcServiceRequest + { + + public: + DescribeApiHistoryRequest(); + ~DescribeApiHistoryRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setHistoryVersion(const std::string& historyVersion); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string apiId_; std::string historyVersion_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryResult.h index 48b2456ad..4b2135572 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiHistoryResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoryResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiHistoryResult : public ServiceResult + { + public: struct RequestConfig { std::string requestPath; @@ -153,11 +153,11 @@ namespace AlibabaCloud std::string requestParameterName; std::string serviceParameterName; }; - - - DescribeApiHistoryResult(); - explicit DescribeApiHistoryResult(const std::string &payload); - ~DescribeApiHistoryResult(); + + + DescribeApiHistoryResult(); + explicit DescribeApiHistoryResult(const std::string &payload); + ~DescribeApiHistoryResult(); std::string getGroupName()const; std::string getDescription()const; bool getForceNonceCheck()const; @@ -188,10 +188,10 @@ namespace AlibabaCloud std::string getRegionId()const; std::string getApiId()const; std::string getHistoryVersion()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string description_; bool forceNonceCheck_; @@ -222,9 +222,9 @@ namespace AlibabaCloud std::string regionId_; std::string apiId_; std::string historyVersion_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIHISTORYRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsRequest.h index 6f395e96f..87cfde3f7 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiIpControlsRequest : public RpcServiceRequest - { - - public: - DescribeApiIpControlsRequest(); - ~DescribeApiIpControlsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiIpControlsRequest : public RpcServiceRequest + { + + public: + DescribeApiIpControlsRequest(); + ~DescribeApiIpControlsRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud int pageNumber_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsResult.h index c328943dc..ad59ef032 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiIpControlsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiIpControlsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiIpControlsResult : public ServiceResult + { + public: struct ApiIpControlItem { std::string apiName; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string ipControlName; std::string ipControlId; }; - - - DescribeApiIpControlsResult(); - explicit DescribeApiIpControlsResult(const std::string &payload); - ~DescribeApiIpControlsResult(); + + + DescribeApiIpControlsResult(); + explicit DescribeApiIpControlsResult(const std::string &payload); + ~DescribeApiIpControlsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApiIpControls()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apiIpControls_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIIPCONTROLSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataRequest.h index 56039e0b8..fe0d95d04 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATAREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiLatencyDataRequest : public RpcServiceRequest - { - - public: - DescribeApiLatencyDataRequest(); - ~DescribeApiLatencyDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATAREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiLatencyDataRequest : public RpcServiceRequest + { + + public: + DescribeApiLatencyDataRequest(); + ~DescribeApiLatencyDataRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string endTime_; std::string startTime_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATAREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataResult.h index f2acea0fb..f5dc17732 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiLatencyDataResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATARESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiLatencyDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATARESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiLatencyDataResult : public ServiceResult + { + public: struct MonitorItem { std::string itemValue; std::string itemTime; }; - - - DescribeApiLatencyDataResult(); - explicit DescribeApiLatencyDataResult(const std::string &payload); - ~DescribeApiLatencyDataResult(); + + + DescribeApiLatencyDataResult(); + explicit DescribeApiLatencyDataResult(const std::string &payload); + ~DescribeApiLatencyDataResult(); std::vector getCallLatencys()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector callLatencys_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPILATENCYDATARESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataRequest.h index ebe5852ed..696e5b0bb 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATAREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiQpsDataRequest : public RpcServiceRequest - { - - public: - DescribeApiQpsDataRequest(); - ~DescribeApiQpsDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATAREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiQpsDataRequest : public RpcServiceRequest + { + + public: + DescribeApiQpsDataRequest(); + ~DescribeApiQpsDataRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string endTime_; std::string startTime_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATAREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataResult.h index 1f8bfe9d2..16db829d3 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiQpsDataResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATARESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiQpsDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATARESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiQpsDataResult : public ServiceResult + { + public: struct MonitorItem { std::string itemValue; std::string itemTime; }; - - - DescribeApiQpsDataResult(); - explicit DescribeApiQpsDataResult(const std::string &payload); - ~DescribeApiQpsDataResult(); + + + DescribeApiQpsDataResult(); + explicit DescribeApiQpsDataResult(const std::string &payload); + ~DescribeApiQpsDataResult(); std::vector getCallFails()const; std::vector getCallSuccesses()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector callFails_; std::vector callSuccesses_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIQPSDATARESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiRequest.h index 606fe11cf..d4b1fd8b8 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiRequest : public RpcServiceRequest - { - - public: - DescribeApiRequest(); - ~DescribeApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiRequest : public RpcServiceRequest + { + + public: + DescribeApiRequest(); + ~DescribeApiRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiResult.h index 87e3dc856..96f200b93 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiResult : public ServiceResult + { + public: struct RequestConfig { std::string requestPath; @@ -163,11 +163,11 @@ namespace AlibabaCloud std::string effectiveVersion; std::string deployedStatus; }; - - - DescribeApiResult(); - explicit DescribeApiResult(const std::string &payload); - ~DescribeApiResult(); + + + DescribeApiResult(); + explicit DescribeApiResult(const std::string &payload); + ~DescribeApiResult(); std::string getGroupName()const; std::string getCreatedTime()const; std::string getDescription()const; @@ -200,10 +200,10 @@ namespace AlibabaCloud std::vector getServiceParameters()const; std::string getRegionId()const; std::string getApiId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string createdTime_; std::string description_; @@ -236,9 +236,9 @@ namespace AlibabaCloud std::vector serviceParameters_; std::string regionId_; std::string apiId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesRequest.h index 44ac3bccd..e50774e58 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiSignaturesRequest : public RpcServiceRequest - { - - public: - DescribeApiSignaturesRequest(); - ~DescribeApiSignaturesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiSignaturesRequest : public RpcServiceRequest + { + + public: + DescribeApiSignaturesRequest(); + ~DescribeApiSignaturesRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud int pageNumber_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesResult.h index 6953e99d5..0342a8dbf 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiSignaturesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiSignaturesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiSignaturesResult : public ServiceResult + { + public: struct ApiSignatureItem { std::string signatureId; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string boundTime; std::string apiId; }; - - - DescribeApiSignaturesResult(); - explicit DescribeApiSignaturesResult(const std::string &payload); - ~DescribeApiSignaturesResult(); + + + DescribeApiSignaturesResult(); + explicit DescribeApiSignaturesResult(const std::string &payload); + ~DescribeApiSignaturesResult(); int getTotalCount()const; std::vector getApiSignatures()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::vector apiSignatures_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISIGNATURESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageRequest.h index b1046e95a..02449959d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGEREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiStageRequest : public RpcServiceRequest - { - - public: - DescribeApiStageRequest(); - ~DescribeApiStageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGEREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiStageRequest : public RpcServiceRequest + { + + public: + DescribeApiStageRequest(); + ~DescribeApiStageRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getStageId()const; void setStageId(const std::string& stageId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string accessKeyId_; std::string stageId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGEREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageResult.h index 778f2fcb6..4c8424c05 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiStageResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiStageResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiStageResult : public ServiceResult + { + public: struct VariableItem { struct StageRouteModel @@ -55,11 +55,11 @@ namespace AlibabaCloud bool supportRoute; StageRouteModel stageRouteModel; }; - - - DescribeApiStageResult(); - explicit DescribeApiStageResult(const std::string &payload); - ~DescribeApiStageResult(); + + + DescribeApiStageResult(); + explicit DescribeApiStageResult(const std::string &payload); + ~DescribeApiStageResult(); std::vector getVariables()const; std::string getDescription()const; std::string getCreatedTime()const; @@ -67,10 +67,10 @@ namespace AlibabaCloud std::string getStageName()const; std::string getStageId()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector variables_; std::string description_; std::string createdTime_; @@ -78,9 +78,9 @@ namespace AlibabaCloud std::string stageName_; std::string stageId_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISTAGERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsRequest.h index 21c70d7bc..d375d9a72 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficControlsRequest : public RpcServiceRequest - { - - public: - DescribeApiTrafficControlsRequest(); - ~DescribeApiTrafficControlsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficControlsRequest : public RpcServiceRequest + { + + public: + DescribeApiTrafficControlsRequest(); + ~DescribeApiTrafficControlsRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud int pageNumber_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsResult.h index 50e38f934..c25dc9e7f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficControlsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficControlsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficControlsResult : public ServiceResult + { + public: struct ApiTrafficControlItem { std::string apiName; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string trafficControlId; std::string apiId; }; - - - DescribeApiTrafficControlsResult(); - explicit DescribeApiTrafficControlsResult(const std::string &payload); - ~DescribeApiTrafficControlsResult(); + + + DescribeApiTrafficControlsResult(); + explicit DescribeApiTrafficControlsResult(const std::string &payload); + ~DescribeApiTrafficControlsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApiTrafficControls()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apiTrafficControls_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICCONTROLSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataRequest.h index e891dad08..b7a6f2157 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATAREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficDataRequest : public RpcServiceRequest - { - - public: - DescribeApiTrafficDataRequest(); - ~DescribeApiTrafficDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATAREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficDataRequest : public RpcServiceRequest + { + + public: + DescribeApiTrafficDataRequest(); + ~DescribeApiTrafficDataRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string endTime_; std::string startTime_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATAREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataResult.h index e9ae22f6a..91c925390 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApiTrafficDataResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATARESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATARESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApiTrafficDataResult : public ServiceResult + { + public: struct MonitorItem { std::string itemValue; std::string itemTime; }; - - - DescribeApiTrafficDataResult(); - explicit DescribeApiTrafficDataResult(const std::string &payload); - ~DescribeApiTrafficDataResult(); + + + DescribeApiTrafficDataResult(); + explicit DescribeApiTrafficDataResult(const std::string &payload); + ~DescribeApiTrafficDataResult(); std::vector getCallUploads()const; std::vector getCallDownloads()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector callUploads_; std::vector callDownloads_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPITRAFFICDATARESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppRequest.h index c8f60a4b3..87847e7f6 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByAppRequest : public RpcServiceRequest - { - - public: - DescribeApisByAppRequest(); - ~DescribeApisByAppRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByAppRequest : public RpcServiceRequest + { + + public: + DescribeApisByAppRequest(); + ~DescribeApisByAppRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); long getAppId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; long appId_; int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppResult.h index c11308312..bf655b861 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByAppResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByAppResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByAppResult : public ServiceResult + { + public: struct AppApiRelationInfo { std::string groupName; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string apiId; std::string groupId; }; - - - DescribeApisByAppResult(); - explicit DescribeApisByAppResult(const std::string &payload); - ~DescribeApisByAppResult(); + + + DescribeApisByAppResult(); + explicit DescribeApisByAppResult(const std::string &payload); + ~DescribeApisByAppResult(); std::vector getAppApiRelationInfos()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector appApiRelationInfos_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYAPPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlRequest.h index 9db655f19..6352cd962 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByIpControlRequest : public RpcServiceRequest - { - - public: - DescribeApisByIpControlRequest(); - ~DescribeApisByIpControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByIpControlRequest : public RpcServiceRequest + { + + public: + DescribeApisByIpControlRequest(); + ~DescribeApisByIpControlRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string ipControlId_; std::string securityToken_; int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlResult.h index c84ddc9af..fa5067b3b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByIpControlResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByIpControlResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByIpControlResult : public ServiceResult + { + public: struct ApiInfo { std::string groupName; @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string apiId; std::string groupId; }; - - - DescribeApisByIpControlResult(); - explicit DescribeApisByIpControlResult(const std::string &payload); - ~DescribeApisByIpControlResult(); + + + DescribeApisByIpControlResult(); + explicit DescribeApisByIpControlResult(const std::string &payload); + ~DescribeApisByIpControlResult(); std::vector getApiInfos()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector apiInfos_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYIPCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureRequest.h index 3b1d40ff0..eecdc5b4b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATUREREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisBySignatureRequest : public RpcServiceRequest - { - - public: - DescribeApisBySignatureRequest(); - ~DescribeApisBySignatureRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATUREREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATUREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisBySignatureRequest : public RpcServiceRequest + { + + public: + DescribeApisBySignatureRequest(); + ~DescribeApisBySignatureRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); int getPageSize()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; int pageSize_; std::string signatureId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATUREREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureResult.h index 8c7d7409d..33660567b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisBySignatureResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATURERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATURERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisBySignatureResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATURERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATURERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisBySignatureResult : public ServiceResult + { + public: struct ApiInfo { std::string groupName; @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string apiId; std::string groupId; }; - - - DescribeApisBySignatureResult(); - explicit DescribeApisBySignatureResult(const std::string &payload); - ~DescribeApisBySignatureResult(); + + + DescribeApisBySignatureResult(); + explicit DescribeApisBySignatureResult(const std::string &payload); + ~DescribeApisBySignatureResult(); std::vector getApiInfos()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector apiInfos_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYSIGNATURERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlRequest.h index 387d86964..aba9290b7 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByTrafficControlRequest : public RpcServiceRequest - { - - public: - DescribeApisByTrafficControlRequest(); - ~DescribeApisByTrafficControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByTrafficControlRequest : public RpcServiceRequest + { + + public: + DescribeApisByTrafficControlRequest(); + ~DescribeApisByTrafficControlRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string trafficControlId_; std::string securityToken_; int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlResult.h index 24adf36d7..aea6b7538 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisByTrafficControlResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByTrafficControlResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisByTrafficControlResult : public ServiceResult + { + public: struct ApiInfo { std::string groupName; @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string apiId; std::string groupId; }; - - - DescribeApisByTrafficControlResult(); - explicit DescribeApisByTrafficControlResult(const std::string &payload); - ~DescribeApisByTrafficControlResult(); + + + DescribeApisByTrafficControlResult(); + explicit DescribeApisByTrafficControlResult(const std::string &payload); + ~DescribeApisByTrafficControlResult(); std::vector getApiInfos()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector apiInfos_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISBYTRAFFICCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisRequest.h index 4e41332c5..0b6048c29 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DESCRIBEAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeApisRequest(); - ~DescribeApisRequest(); - + + public: + DescribeApisRequest(); + ~DescribeApisRequest(); + std::string getApiName()const; void setApiName(const std::string& apiName); std::string getCatalogId()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string apiName_; std::string catalogId_; std::string visibility_; @@ -75,9 +75,9 @@ namespace AlibabaCloud std::string apiId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisResult.h index 8cee2b8e8..3c6e739e5 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeApisResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeApisResult : public ServiceResult + { + public: struct ApiSummary { std::string groupName; @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string apiId; std::string groupId; }; - - - DescribeApisResult(); - explicit DescribeApisResult(const std::string &payload); - ~DescribeApisResult(); + + + DescribeApisResult(); + explicit DescribeApisResult(const std::string &payload); + ~DescribeApisResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApiSummarys()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apiSummarys_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesRequest.h index ea8de0fed..5fe3ffc8c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppAttributesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppAttributesRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeAppAttributesRequest(); - ~DescribeAppAttributesRequest(); - + + public: + DescribeAppAttributesRequest(); + ~DescribeAppAttributesRequest(); + std::string getAppName()const; void setAppName(const std::string& appName); std::string getSecurityToken()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string appName_; std::string securityToken_; long appId_; @@ -66,9 +66,9 @@ namespace AlibabaCloud bool enableTagAuth_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesResult.h index 90b8f9994..c90dcc15e 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppAttributesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppAttributesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppAttributesResult : public ServiceResult + { + public: struct AppAttribute { std::string description; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string modifiedTime; std::string appName; }; - - - DescribeAppAttributesResult(); - explicit DescribeAppAttributesResult(const std::string &payload); - ~DescribeAppAttributesResult(); + + + DescribeAppAttributesResult(); + explicit DescribeAppAttributesResult(const std::string &payload); + ~DescribeAppAttributesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApps()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apps_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppRequest.h index fcc363d44..2b90c7fe9 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_DESCRIBEAPPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppRequest : public RpcServiceRequest - { - - public: - DescribeAppRequest(); - ~DescribeAppRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppRequest : public RpcServiceRequest + { + + public: + DescribeAppRequest(); + ~DescribeAppRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); long getAppId()const; void setAppId(long appId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; long appId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppResult.h index d5e6405d3..3b125bd7f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppResult.h @@ -1,59 +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_CLOUDAPI_MODEL_DESCRIBEAPPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppResult : public ServiceResult - { - public: - - - DescribeAppResult(); - explicit DescribeAppResult(const std::string &payload); - ~DescribeAppResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppResult : public ServiceResult + { + public: + + + DescribeAppResult(); + explicit DescribeAppResult(const std::string &payload); + ~DescribeAppResult(); std::string getDescription()const; std::string getCreatedTime()const; long getAppId()const; std::string getModifiedTime()const; std::string getAppName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string description_; std::string createdTime_; long appId_; std::string modifiedTime_; std::string appName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityRequest.h index 2da2b10de..806d9fe5d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppSecurityRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppSecurityRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeAppSecurityRequest(); - ~DescribeAppSecurityRequest(); - + + public: + DescribeAppSecurityRequest(); + ~DescribeAppSecurityRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); long getAppId()const; @@ -48,15 +48,15 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; long appId_; std::vector tag_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityResult.h index df7773311..a1eeefcb1 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppSecurityResult.h @@ -1,59 +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_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppSecurityResult : public ServiceResult - { - public: - - - DescribeAppSecurityResult(); - explicit DescribeAppSecurityResult(const std::string &payload); - ~DescribeAppSecurityResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppSecurityResult : public ServiceResult + { + public: + + + DescribeAppSecurityResult(); + explicit DescribeAppSecurityResult(const std::string &payload); + ~DescribeAppSecurityResult(); std::string getAppCode()const; std::string getCreatedTime()const; std::string getModifiedTime()const; std::string getAppKey()const; std::string getAppSecret()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string appCode_; std::string createdTime_; std::string modifiedTime_; std::string appKey_; std::string appSecret_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSECURITYRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsRequest.h index 5f2c300ff..90418bb8c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppsRequest : public RpcServiceRequest - { - - public: - DescribeAppsRequest(); - ~DescribeAppsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppsRequest : public RpcServiceRequest + { + + public: + DescribeAppsRequest(); + ~DescribeAppsRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); long getAppId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; long appId_; int pageSize_; long appOwner_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsResult.h index 2282a3f25..f37c97a23 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAppsResult.h @@ -1,63 +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_CLOUDAPI_MODEL_DESCRIBEAPPSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAppsResult : public ServiceResult + { + public: struct AppItem { std::string description; long appId; std::string appName; }; - - - DescribeAppsResult(); - explicit DescribeAppsResult(const std::string &payload); - ~DescribeAppsResult(); + + + DescribeAppsResult(); + explicit DescribeAppsResult(const std::string &payload); + ~DescribeAppsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApps()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apps_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAPPSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisRequest.h index 8555b3815..1fcf8c585 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedApisRequest : public RpcServiceRequest - { - - public: - DescribeAuthorizedApisRequest(); - ~DescribeAuthorizedApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedApisRequest : public RpcServiceRequest + { + + public: + DescribeAuthorizedApisRequest(); + ~DescribeAuthorizedApisRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); long getAppId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; long appId_; int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisResult.h index b0009756e..28051cf83 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedApisResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedApisResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedApisResult : public ServiceResult + { + public: struct AuthorizedApi { std::string groupName; @@ -46,26 +46,26 @@ namespace AlibabaCloud std::string apiId; std::string groupId; }; - - - DescribeAuthorizedApisResult(); - explicit DescribeAuthorizedApisResult(const std::string &payload); - ~DescribeAuthorizedApisResult(); + + + DescribeAuthorizedApisResult(); + explicit DescribeAuthorizedApisResult(const std::string &payload); + ~DescribeAuthorizedApisResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getAuthorizedApis()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector authorizedApis_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsRequest.h index 5d7adc0ee..da3159105 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedAppsRequest : public RpcServiceRequest - { - - public: - DescribeAuthorizedAppsRequest(); - ~DescribeAuthorizedAppsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedAppsRequest : public RpcServiceRequest + { + + public: + DescribeAuthorizedAppsRequest(); + ~DescribeAuthorizedAppsRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getAppName()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string appName_; std::string securityToken_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string apiId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsResult.h index 933b3622b..d3fbeb25d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeAuthorizedAppsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedAppsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeAuthorizedAppsResult : public ServiceResult + { + public: struct AuthorizedApp { std::string description; @@ -43,26 +43,26 @@ namespace AlibabaCloud std::string _operator; std::string appName; }; - - - DescribeAuthorizedAppsResult(); - explicit DescribeAuthorizedAppsResult(const std::string &payload); - ~DescribeAuthorizedAppsResult(); + + + DescribeAuthorizedAppsResult(); + explicit DescribeAuthorizedAppsResult(const std::string &payload); + ~DescribeAuthorizedAppsResult(); int getTotalCount()const; int getPageSize()const; std::vector getAuthorizedApps()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; std::vector authorizedApps_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEAUTHORIZEDAPPSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiRequest.h index 188bf30b4..c24ac461c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApiRequest : public RpcServiceRequest - { - - public: - DescribeDeployedApiRequest(); - ~DescribeDeployedApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApiRequest : public RpcServiceRequest + { + + public: + DescribeDeployedApiRequest(); + ~DescribeDeployedApiRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiResult.h index 0483a8e2c..cf1d48e4c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApiResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApiResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApiResult : public ServiceResult + { + public: struct RequestConfig { std::string requestPath; @@ -153,11 +153,11 @@ namespace AlibabaCloud std::string requestParameterName; std::string serviceParameterName; }; - - - DescribeDeployedApiResult(); - explicit DescribeDeployedApiResult(const std::string &payload); - ~DescribeDeployedApiResult(); + + + DescribeDeployedApiResult(); + explicit DescribeDeployedApiResult(const std::string &payload); + ~DescribeDeployedApiResult(); std::string getGroupName()const; std::string getDescription()const; bool getForceNonceCheck()const; @@ -186,10 +186,10 @@ namespace AlibabaCloud std::vector getServiceParameters()const; std::string getRegionId()const; std::string getApiId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string description_; bool forceNonceCheck_; @@ -218,9 +218,9 @@ namespace AlibabaCloud std::vector serviceParameters_; std::string regionId_; std::string apiId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisRequest.h index 4bf61b902..023bc065d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApisRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApisRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeDeployedApisRequest(); - ~DescribeDeployedApisRequest(); - + + public: + DescribeDeployedApisRequest(); + ~DescribeDeployedApisRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getApiName()const; @@ -60,8 +60,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string apiName_; std::string securityToken_; @@ -72,9 +72,9 @@ namespace AlibabaCloud std::string apiId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisResult.h index 10d6fc1fa..a345bb32b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDeployedApisResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApisResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDeployedApisResult : public ServiceResult + { + public: struct DeployedApiItem { std::string groupName; @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string apiId; std::string groupId; }; - - - DescribeDeployedApisResult(); - explicit DescribeDeployedApisResult(const std::string &payload); - ~DescribeDeployedApisResult(); + + + DescribeDeployedApisResult(); + explicit DescribeDeployedApisResult(const std::string &payload); + ~DescribeDeployedApisResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getDeployedApis()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector deployedApis_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDEPLOYEDAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainRequest.h index 9a6579ce5..2255bed02 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainRequest : public RpcServiceRequest - { - - public: - DescribeDomainRequest(); - ~DescribeDomainRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainRequest : public RpcServiceRequest + { + + public: + DescribeDomainRequest(); + ~DescribeDomainRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string domainName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainResult.h index 15400a183..562c1ff9b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainResult.h @@ -1,42 +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_CLOUDAPI_MODEL_DESCRIBEDOMAINRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainResult : public ServiceResult - { - public: - - - DescribeDomainResult(); - explicit DescribeDomainResult(const std::string &payload); - ~DescribeDomainResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainResult : public ServiceResult + { + public: + + + DescribeDomainResult(); + explicit DescribeDomainResult(const std::string &payload); + ~DescribeDomainResult(); std::string getSubDomain()const; std::string getCertificateBody()const; std::string getDomainCNAMEStatus()const; @@ -49,10 +49,10 @@ namespace AlibabaCloud std::string getCertificatePrivateKey()const; std::string getCertificateName()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string subDomain_; std::string certificateBody_; std::string domainCNAMEStatus_; @@ -65,9 +65,9 @@ namespace AlibabaCloud std::string certificatePrivateKey_; std::string certificateName_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionRequest.h index b76e7fa6d..8f810e13f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainsResolutionRequest : public RpcServiceRequest - { - - public: - DescribeDomainsResolutionRequest(); - ~DescribeDomainsResolutionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainsResolutionRequest : public RpcServiceRequest + { + + public: + DescribeDomainsResolutionRequest(); + ~DescribeDomainsResolutionRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getDomainNames()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setGroupId(const std::string& groupId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string domainNames_; std::string groupId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionResult.h index 110796ad6..30ba02a89 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeDomainsResolutionResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainsResolutionResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeDomainsResolutionResult : public ServiceResult + { + public: struct DomainResolution { std::string domainResolutionStatus; std::string domainName; }; - - - DescribeDomainsResolutionResult(); - explicit DescribeDomainsResolutionResult(const std::string &payload); - ~DescribeDomainsResolutionResult(); + + + DescribeDomainsResolutionResult(); + explicit DescribeDomainsResolutionResult(const std::string &payload); + ~DescribeDomainsResolutionResult(); std::vector getDomainResolutions()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector domainResolutions_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEDOMAINSRESOLUTIONRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisRequest.h index 3600ed000..3232c16bb 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeHistoryApisRequest : public RpcServiceRequest - { - - public: - DescribeHistoryApisRequest(); - ~DescribeHistoryApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeHistoryApisRequest : public RpcServiceRequest + { + + public: + DescribeHistoryApisRequest(); + ~DescribeHistoryApisRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getApiName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setPageNumber(const std::string& pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string apiName_; std::string securityToken_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string apiId_; std::string pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisResult.h index ac1b4a1e2..e8fab7583 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeHistoryApisResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeHistoryApisResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeHistoryApisResult : public ServiceResult + { + public: struct ApiHisItem { std::string groupName; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string historyVersion; std::string groupId; }; - - - DescribeHistoryApisResult(); - explicit DescribeHistoryApisResult(const std::string &payload); - ~DescribeHistoryApisResult(); + + + DescribeHistoryApisResult(); + explicit DescribeHistoryApisResult(const std::string &payload); + ~DescribeHistoryApisResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getApiHisItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector apiHisItems_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEHISTORYAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsRequest.h index dd022f5d5..7c9a9237e 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlPolicyItemsRequest : public RpcServiceRequest - { - - public: - DescribeIpControlPolicyItemsRequest(); - ~DescribeIpControlPolicyItemsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlPolicyItemsRequest : public RpcServiceRequest + { + + public: + DescribeIpControlPolicyItemsRequest(); + ~DescribeIpControlPolicyItemsRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getPolicyItemId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string ipControlId_; std::string policyItemId_; std::string securityToken_; int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsResult.h index a3e1b6b85..c01efa57f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlPolicyItemsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlPolicyItemsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlPolicyItemsResult : public ServiceResult + { + public: struct IpControlPolicyItem { std::string cidrIp; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string modifiedTime; std::string createTime; }; - - - DescribeIpControlPolicyItemsResult(); - explicit DescribeIpControlPolicyItemsResult(const std::string &payload); - ~DescribeIpControlPolicyItemsResult(); + + + DescribeIpControlPolicyItemsResult(); + explicit DescribeIpControlPolicyItemsResult(const std::string &payload); + ~DescribeIpControlPolicyItemsResult(); int getTotalCount()const; int getPageSize()const; std::vector getIpControlPolicyItems()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; std::vector ipControlPolicyItems_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLPOLICYITEMSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsRequest.h index b870fc275..d0679fff2 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlsRequest : public RpcServiceRequest - { - - public: - DescribeIpControlsRequest(); - ~DescribeIpControlsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlsRequest : public RpcServiceRequest + { + + public: + DescribeIpControlsRequest(); + ~DescribeIpControlsRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getSecurityToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string ipControlId_; std::string securityToken_; std::string ipControlName_; @@ -58,9 +58,9 @@ namespace AlibabaCloud int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsResult.h index f4875f1f0..21ab7ee43 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeIpControlsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeIpControlsResult : public ServiceResult + { + public: struct IpControlInfo { std::string ipControlType; @@ -42,26 +42,26 @@ namespace AlibabaCloud std::string ipControlName; std::string ipControlId; }; - - - DescribeIpControlsResult(); - explicit DescribeIpControlsResult(const std::string &payload); - ~DescribeIpControlsResult(); + + + DescribeIpControlsResult(); + explicit DescribeIpControlsResult(const std::string &payload); + ~DescribeIpControlsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getIpControlInfos()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector ipControlInfos_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEIPCONTROLSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigRequest.h index 7459a7a53..74359c951 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeLogConfigRequest : public RpcServiceRequest - { - - public: - DescribeLogConfigRequest(); - ~DescribeLogConfigRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeLogConfigRequest : public RpcServiceRequest + { + + public: + DescribeLogConfigRequest(); + ~DescribeLogConfigRequest(); + std::string getLogType()const; void setLogType(const std::string& logType); std::string getSecurityToken()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string logType_; std::string securityToken_; std::string regionId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigResult.h index 1bfc8c2bc..16a8000c9 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeLogConfigResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeLogConfigResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeLogConfigResult : public ServiceResult + { + public: struct LogInfo { std::string slsLogStore; @@ -39,20 +39,20 @@ namespace AlibabaCloud std::string logType; std::string regionId; }; - - - DescribeLogConfigResult(); - explicit DescribeLogConfigResult(const std::string &payload); - ~DescribeLogConfigResult(); + + + DescribeLogConfigResult(); + explicit DescribeLogConfigResult(const std::string &payload); + ~DescribeLogConfigResult(); std::vector getLogInfos()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector logInfos_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBELOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupRequest.h index d5f69a9c8..c0cd92ca2 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupRequest : public RpcServiceRequest - { - - public: - DescribePurchasedApiGroupRequest(); - ~DescribePurchasedApiGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupRequest : public RpcServiceRequest + { + + public: + DescribePurchasedApiGroupRequest(); + ~DescribePurchasedApiGroupRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; void setGroupId(const std::string& groupId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupResult.h index fb5f5e6b6..66a81f62f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupResult.h @@ -1,46 +1,46 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupResult : public ServiceResult + { + public: struct DomainItem { std::string domainName; }; - - - DescribePurchasedApiGroupResult(); - explicit DescribePurchasedApiGroupResult(const std::string &payload); - ~DescribePurchasedApiGroupResult(); + + + DescribePurchasedApiGroupResult(); + explicit DescribePurchasedApiGroupResult(const std::string &payload); + ~DescribePurchasedApiGroupResult(); std::vector getDomains()const; std::string getGroupName()const; std::string getStatus()const; @@ -48,10 +48,10 @@ namespace AlibabaCloud std::string getRegionId()const; std::string getGroupId()const; std::string getPurchasedTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector domains_; std::string groupName_; std::string status_; @@ -59,9 +59,9 @@ namespace AlibabaCloud std::string regionId_; std::string groupId_; std::string purchasedTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsRequest.h index 88ae670e5..e5592b9bd 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupsRequest : public RpcServiceRequest - { - - public: - DescribePurchasedApiGroupsRequest(); - ~DescribePurchasedApiGroupsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupsRequest : public RpcServiceRequest + { + + public: + DescribePurchasedApiGroupsRequest(); + ~DescribePurchasedApiGroupsRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); int getPageSize()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsResult.h index eca6cf6b8..fff054822 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApiGroupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApiGroupsResult : public ServiceResult + { + public: struct PurchasedApiGroupAttribute { std::string groupName; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string purchasedTime; std::string billingType; }; - - - DescribePurchasedApiGroupsResult(); - explicit DescribePurchasedApiGroupsResult(const std::string &payload); - ~DescribePurchasedApiGroupsResult(); + + + DescribePurchasedApiGroupsResult(); + explicit DescribePurchasedApiGroupsResult(const std::string &payload); + ~DescribePurchasedApiGroupsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getPurchasedApiGroupAttributes()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector purchasedApiGroupAttributes_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPIGROUPSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisRequest.h index b1d7422bc..8a2fd9a0b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApisRequest : public RpcServiceRequest - { - - public: - DescribePurchasedApisRequest(); - ~DescribePurchasedApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApisRequest : public RpcServiceRequest + { + + public: + DescribePurchasedApisRequest(); + ~DescribePurchasedApisRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getApiName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string apiName_; std::string visibility_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string apiId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisResult.h index 9d0d3902a..4fbfa07ef 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribePurchasedApisResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApisResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribePurchasedApisResult : public ServiceResult + { + public: struct PurchasedApi { std::string groupName; @@ -43,26 +43,26 @@ namespace AlibabaCloud std::string groupId; std::string purchasedTime; }; - - - DescribePurchasedApisResult(); - explicit DescribePurchasedApisResult(const std::string &payload); - ~DescribePurchasedApisResult(); + + + DescribePurchasedApisResult(); + explicit DescribePurchasedApisResult(const std::string &payload); + ~DescribePurchasedApisResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getPurchasedApis()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector purchasedApis_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEPURCHASEDAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsRequest.h index 3366ea819..0f7bbe03b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getLanguage()const; void setLanguage(const std::string& language); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string language_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsResult.h index bfe017f83..c8d1e395f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeRegionsResult.h @@ -1,57 +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_CLOUDAPI_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeRegionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeRegionsResult : public ServiceResult + { + public: struct Region { std::string regionId; std::string regionEndpoint; std::string localName; }; - - - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); std::vector getRegions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector regions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiRequest.h index 9b7104ad2..f5a239e8f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesByApiRequest : public RpcServiceRequest - { - - public: - DescribeSignaturesByApiRequest(); - ~DescribeSignaturesByApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesByApiRequest : public RpcServiceRequest + { + + public: + DescribeSignaturesByApiRequest(); + ~DescribeSignaturesByApiRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiResult.h index 8360fd8cf..706dba58a 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesByApiResult.h @@ -1,57 +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_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesByApiResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesByApiResult : public ServiceResult + { + public: struct SignatureItem { std::string signatureId; std::string signatureName; std::string boundTime; }; - - - DescribeSignaturesByApiResult(); - explicit DescribeSignaturesByApiResult(const std::string &payload); - ~DescribeSignaturesByApiResult(); + + + DescribeSignaturesByApiResult(); + explicit DescribeSignaturesByApiResult(const std::string &payload); + ~DescribeSignaturesByApiResult(); std::vector getSignatures()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector signatures_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESBYAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesRequest.h index c251256c2..3f43c3146 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesRequest : public RpcServiceRequest - { - - public: - DescribeSignaturesRequest(); - ~DescribeSignaturesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesRequest : public RpcServiceRequest + { + + public: + DescribeSignaturesRequest(); + ~DescribeSignaturesRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getSignatureName()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string signatureName_; int pageSize_; std::string signatureId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesResult.h index d06956028..51db0d3e7 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSignaturesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSignaturesResult : public ServiceResult + { + public: struct SignatureInfo { std::string signatureId; @@ -42,26 +42,26 @@ namespace AlibabaCloud std::string regionId; std::string signatureKey; }; - - - DescribeSignaturesResult(); - explicit DescribeSignaturesResult(const std::string &payload); - ~DescribeSignaturesResult(); + + + DescribeSignaturesResult(); + explicit DescribeSignaturesResult(const std::string &payload); + ~DescribeSignaturesResult(); std::vector getSignatureInfos()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector signatureInfos_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESIGNATURESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersRequest.h index 4d0be5e87..4d4d005b6 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersRequest.h @@ -1,51 +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_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSystemParametersRequest : public RpcServiceRequest - { - - public: - DescribeSystemParametersRequest(); - ~DescribeSystemParametersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSystemParametersRequest : public RpcServiceRequest + { + + public: + DescribeSystemParametersRequest(); + ~DescribeSystemParametersRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersResult.h index ca7d63bee..df89417a5 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeSystemParametersResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSystemParametersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeSystemParametersResult : public ServiceResult + { + public: struct SystemParamItem { std::string demoValue; @@ -39,20 +39,20 @@ namespace AlibabaCloud std::string paramName; std::string paramType; }; - - - DescribeSystemParametersResult(); - explicit DescribeSystemParametersResult(const std::string &payload); - ~DescribeSystemParametersResult(); + + + DescribeSystemParametersResult(); + explicit DescribeSystemParametersResult(const std::string &payload); + ~DescribeSystemParametersResult(); std::vector getSystemParams()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector systemParams_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBESYSTEMPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiRequest.h index de77155bd..24490164c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsByApiRequest : public RpcServiceRequest - { - - public: - DescribeTrafficControlsByApiRequest(); - ~DescribeTrafficControlsByApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsByApiRequest : public RpcServiceRequest + { + + public: + DescribeTrafficControlsByApiRequest(); + ~DescribeTrafficControlsByApiRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiResult.h index 1510ec30c..07b21586e 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsByApiResult.h @@ -1,57 +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_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsByApiResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsByApiResult : public ServiceResult + { + public: struct TrafficControlItem { std::string trafficControlItemId; std::string boundTime; std::string trafficControlItemName; }; - - - DescribeTrafficControlsByApiResult(); - explicit DescribeTrafficControlsByApiResult(const std::string &payload); - ~DescribeTrafficControlsByApiResult(); + + + DescribeTrafficControlsByApiResult(); + explicit DescribeTrafficControlsByApiResult(const std::string &payload); + ~DescribeTrafficControlsByApiResult(); std::vector getTrafficControlItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector trafficControlItems_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSBYAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsRequest.h index 2e8ef5468..b1a0de7af 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsRequest : public RpcServiceRequest - { - - public: - DescribeTrafficControlsRequest(); - ~DescribeTrafficControlsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsRequest : public RpcServiceRequest + { + + public: + DescribeTrafficControlsRequest(); + ~DescribeTrafficControlsRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getStageName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string trafficControlId_; std::string stageName_; std::string securityToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string apiId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsResult.h index 7ca8e33a9..51f7481d6 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeTrafficControlsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeTrafficControlsResult : public ServiceResult + { + public: struct TrafficControl { struct SpecialPolicy @@ -55,26 +55,26 @@ namespace AlibabaCloud std::vector specialPolicies; std::string trafficControlId; }; - - - DescribeTrafficControlsResult(); - explicit DescribeTrafficControlsResult(const std::string &payload); - ~DescribeTrafficControlsResult(); + + + DescribeTrafficControlsResult(); + explicit DescribeTrafficControlsResult(const std::string &payload); + ~DescribeTrafficControlsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getTrafficControls()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector trafficControls_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBETRAFFICCONTROLSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesRequest.h index f4f519237..88afba728 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeVpcAccessesRequest : public RpcServiceRequest - { - - public: - DescribeVpcAccessesRequest(); - ~DescribeVpcAccessesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeVpcAccessesRequest : public RpcServiceRequest + { + + public: + DescribeVpcAccessesRequest(); + ~DescribeVpcAccessesRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); int getPageSize()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; int pageSize_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesResult.h index 38041ab85..f25e3ade7 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/DescribeVpcAccessesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeVpcAccessesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT DescribeVpcAccessesResult : public ServiceResult + { + public: struct VpcAccessAttribute { std::string createdTime; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string regionId; std::string name; }; - - - DescribeVpcAccessesResult(); - explicit DescribeVpcAccessesResult(const std::string &payload); - ~DescribeVpcAccessesResult(); + + + DescribeVpcAccessesResult(); + explicit DescribeVpcAccessesResult(const std::string &payload); + ~DescribeVpcAccessesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getVpcAccessAttributes()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector vpcAccessAttributes_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_DESCRIBEVPCACCESSESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerRequest.h index c77f2bf83..60f4f64a8 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ImportSwaggerRequest : public RpcServiceRequest - { - - public: - ImportSwaggerRequest(); - ~ImportSwaggerRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ImportSwaggerRequest : public RpcServiceRequest + { + + public: + ImportSwaggerRequest(); + ~ImportSwaggerRequest(); + std::string getDataFormat()const; void setDataFormat(const std::string& dataFormat); std::string getData()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setGroupId(const std::string& groupId); bool getOverwrite()const; void setOverwrite(bool overwrite); - - private: + + private: std::string dataFormat_; std::string data_; std::string groupId_; bool overwrite_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerResult.h index 08a0206bc..195f5f393 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ImportSwaggerResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ImportSwaggerResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ImportSwaggerResult : public ServiceResult + { + public: struct ApiImportSwaggerSuccess { std::string path; @@ -45,22 +45,22 @@ namespace AlibabaCloud std::string errorMsg; std::string httpMethod; }; - - - ImportSwaggerResult(); - explicit ImportSwaggerResult(const std::string &payload); - ~ImportSwaggerResult(); + + + ImportSwaggerResult(); + explicit ImportSwaggerResult(const std::string &payload); + ~ImportSwaggerResult(); std::vector getFailed()const; std::vector getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector failed_; std::vector success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_IMPORTSWAGGERRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesRequest.h index 20f23d04a..af7d75f3e 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceId()const; void setResourceId(const std::vector& resourceId); std::string getSecurityToken()const; @@ -52,17 +52,17 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::vector resourceId_; std::string securityToken_; std::string nextToken_; std::vector tag_; std::string resourceType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesResult.h index 2a8e51cf5..24c8cb85f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ListTagResourcesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ListTagResourcesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ListTagResourcesResult : public ServiceResult + { + public: struct TagResource { std::string resourceId; @@ -39,22 +39,22 @@ namespace AlibabaCloud std::string resourceType; std::string tagValue; }; - - - ListTagResourcesResult(); - explicit ListTagResourcesResult(const std::string &payload); - ~ListTagResourcesResult(); + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); std::string getNextToken()const; std::vector getTagResources()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string nextToken_; std::vector tagResources_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupRequest.h index d43f0842b..99d77821e 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_MODIFYAPIGROUPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiGroupRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiGroupRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - ModifyApiGroupRequest(); - ~ModifyApiGroupRequest(); - + + public: + ModifyApiGroupRequest(); + ~ModifyApiGroupRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -52,17 +52,17 @@ namespace AlibabaCloud void setGroupName(const std::string& groupName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string description_; std::vector tag_; std::string groupName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupResult.h index 45cbedcc4..016258d80 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiGroupResult.h @@ -1,57 +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_CLOUDAPI_MODEL_MODIFYAPIGROUPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiGroupResult : public ServiceResult - { - public: - - - ModifyApiGroupResult(); - explicit ModifyApiGroupResult(const std::string &payload); - ~ModifyApiGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiGroupResult : public ServiceResult + { + public: + + + ModifyApiGroupResult(); + explicit ModifyApiGroupResult(const std::string &payload); + ~ModifyApiGroupResult(); std::string getGroupName()const; std::string getSubDomain()const; std::string getDescription()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string subDomain_; std::string description_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIGROUPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiRequest.h index 15fee63cd..f9873f126 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiRequest : public RpcServiceRequest - { - - public: - ModifyApiRequest(); - ~ModifyApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiRequest : public RpcServiceRequest + { + + public: + ModifyApiRequest(); + ~ModifyApiRequest(); + std::string getWebSocketApiType()const; void setWebSocketApiType(const std::string& webSocketApiType); std::string getErrorCodeSamples()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setResultBodyModel(const std::string& resultBodyModel); std::string getApiId()const; void setApiId(const std::string& apiId); - - private: + + private: std::string webSocketApiType_; std::string errorCodeSamples_; std::string appCodeAuthType_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string requestConfig_; std::string resultBodyModel_; std::string apiId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiResult.h index 65d1e1d0f..f5beb718e 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyApiResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiResult : public ServiceResult - { - public: - - - ModifyApiResult(); - explicit ModifyApiResult(const std::string &payload); - ~ModifyApiResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyApiResult : public ServiceResult + { + public: + + + ModifyApiResult(); + explicit ModifyApiResult(const std::string &payload); + ~ModifyApiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppRequest.h index 33db60512..3d376a846 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_MODIFYAPPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyAppRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyAppRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - ModifyAppRequest(); - ~ModifyAppRequest(); - + + public: + ModifyAppRequest(); + ~ModifyAppRequest(); + std::string getAppName()const; void setAppName(const std::string& appName); std::string getSecurityToken()const; @@ -52,17 +52,17 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string appName_; std::string securityToken_; long appId_; std::string description_; std::vector tag_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppResult.h index 9836dafb3..8e16091b8 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyAppResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyAppResult : public ServiceResult - { - public: - - - ModifyAppResult(); - explicit ModifyAppResult(const std::string &payload); - ~ModifyAppResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyAppResult : public ServiceResult + { + public: + + + ModifyAppResult(); + explicit ModifyAppResult(const std::string &payload); + ~ModifyAppResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYAPPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemRequest.h index 9997d1968..81116f618 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlPolicyItemRequest : public RpcServiceRequest - { - - public: - ModifyIpControlPolicyItemRequest(); - ~ModifyIpControlPolicyItemRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlPolicyItemRequest : public RpcServiceRequest + { + + public: + ModifyIpControlPolicyItemRequest(); + ~ModifyIpControlPolicyItemRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getPolicyItemId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setCidrIp(const std::string& cidrIp); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string ipControlId_; std::string policyItemId_; std::string securityToken_; std::string appId_; std::string cidrIp_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemResult.h index 58343e206..28c003d70 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlPolicyItemResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlPolicyItemResult : public ServiceResult - { - public: - - - ModifyIpControlPolicyItemResult(); - explicit ModifyIpControlPolicyItemResult(const std::string &payload); - ~ModifyIpControlPolicyItemResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlPolicyItemResult : public ServiceResult + { + public: + + + ModifyIpControlPolicyItemResult(); + explicit ModifyIpControlPolicyItemResult(const std::string &payload); + ~ModifyIpControlPolicyItemResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLPOLICYITEMRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlRequest.h index c22c855f6..809091eef 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlRequest : public RpcServiceRequest - { - - public: - ModifyIpControlRequest(); - ~ModifyIpControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlRequest : public RpcServiceRequest + { + + public: + ModifyIpControlRequest(); + ~ModifyIpControlRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setDescription(const std::string& description); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string ipControlId_; std::string securityToken_; std::string ipControlName_; std::string description_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlResult.h index 36c68c66a..52593b3c5 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyIpControlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlResult : public ServiceResult - { - public: - - - ModifyIpControlResult(); - explicit ModifyIpControlResult(const std::string &payload); - ~ModifyIpControlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyIpControlResult : public ServiceResult + { + public: + + + ModifyIpControlResult(); + explicit ModifyIpControlResult(const std::string &payload); + ~ModifyIpControlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYIPCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigRequest.h index 2b9a4d962..e5be3e332 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyLogConfigRequest : public RpcServiceRequest - { - - public: - ModifyLogConfigRequest(); - ~ModifyLogConfigRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyLogConfigRequest : public RpcServiceRequest + { + + public: + ModifyLogConfigRequest(); + ~ModifyLogConfigRequest(); + std::string getSlsLogStore()const; void setSlsLogStore(const std::string& slsLogStore); std::string getLogType()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSlsProject(const std::string& slsProject); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string slsLogStore_; std::string logType_; std::string securityToken_; std::string regionId_; std::string slsProject_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigResult.h index b32c16a0c..b1f157e5d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyLogConfigResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyLogConfigResult : public ServiceResult - { - public: - - - ModifyLogConfigResult(); - explicit ModifyLogConfigResult(const std::string &payload); - ~ModifyLogConfigResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyLogConfigResult : public ServiceResult + { + public: + + + ModifyLogConfigResult(); + explicit ModifyLogConfigResult(const std::string &payload); + ~ModifyLogConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYLOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureRequest.h index d831b1e90..e4524bf38 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATUREREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifySignatureRequest : public RpcServiceRequest - { - - public: - ModifySignatureRequest(); - ~ModifySignatureRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATUREREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATUREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifySignatureRequest : public RpcServiceRequest + { + + public: + ModifySignatureRequest(); + ~ModifySignatureRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getSignatureName()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSignatureSecret(const std::string& signatureSecret); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string signatureName_; std::string signatureKey_; std::string signatureId_; std::string signatureSecret_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATUREREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureResult.h index c4b824cae..41430d163 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifySignatureResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATURERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATURERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifySignatureResult : public ServiceResult - { - public: - - - ModifySignatureResult(); - explicit ModifySignatureResult(const std::string &payload); - ~ModifySignatureResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATURERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATURERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifySignatureResult : public ServiceResult + { + public: + + + ModifySignatureResult(); + explicit ModifySignatureResult(const std::string &payload); + ~ModifySignatureResult(); std::string getSignatureId()const; std::string getSignatureName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string signatureId_; std::string signatureName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYSIGNATURERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlRequest.h index 0858a03ac..84381de25 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyTrafficControlRequest : public RpcServiceRequest - { - - public: - ModifyTrafficControlRequest(); - ~ModifyTrafficControlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyTrafficControlRequest : public RpcServiceRequest + { + + public: + ModifyTrafficControlRequest(); + ~ModifyTrafficControlRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); int getApiDefault()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAppDefault(int appDefault); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string trafficControlId_; int apiDefault_; std::string securityToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int userDefault_; int appDefault_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlResult.h index 13a3b99d1..40c6b6138 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ModifyTrafficControlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyTrafficControlResult : public ServiceResult - { - public: - - - ModifyTrafficControlResult(); - explicit ModifyTrafficControlResult(const std::string &payload); - ~ModifyTrafficControlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ModifyTrafficControlResult : public ServiceResult + { + public: + + + ModifyTrafficControlResult(); + explicit ModifyTrafficControlResult(const std::string &payload); + ~ModifyTrafficControlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_MODIFYTRAFFICCONTROLRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainRequest.h index 8b3210cb4..bfa84a8b2 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ReactivateDomainRequest : public RpcServiceRequest - { - - public: - ReactivateDomainRequest(); - ~ReactivateDomainRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ReactivateDomainRequest : public RpcServiceRequest + { + + public: + ReactivateDomainRequest(); + ~ReactivateDomainRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string domainName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainResult.h index 520626d61..a27d94562 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ReactivateDomainResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ReactivateDomainResult : public ServiceResult - { - public: - - - ReactivateDomainResult(); - explicit ReactivateDomainResult(const std::string &payload); - ~ReactivateDomainResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ReactivateDomainResult : public ServiceResult + { + public: + + + ReactivateDomainResult(); + explicit ReactivateDomainResult(const std::string &payload); + ~ReactivateDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REACTIVATEDOMAINRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesRequest.h index 7e73778ea..8226882be 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveApisAuthoritiesRequest : public RpcServiceRequest - { - - public: - RemoveApisAuthoritiesRequest(); - ~RemoveApisAuthoritiesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveApisAuthoritiesRequest : public RpcServiceRequest + { + + public: + RemoveApisAuthoritiesRequest(); + ~RemoveApisAuthoritiesRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string description_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesResult.h index 053d157ad..252b4bb42 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveApisAuthoritiesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveApisAuthoritiesResult : public ServiceResult - { - public: - - - RemoveApisAuthoritiesResult(); - explicit RemoveApisAuthoritiesResult(const std::string &payload); - ~RemoveApisAuthoritiesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveApisAuthoritiesResult : public ServiceResult + { + public: + + + RemoveApisAuthoritiesResult(); + explicit RemoveApisAuthoritiesResult(const std::string &payload); + ~RemoveApisAuthoritiesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPISAUTHORITIESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesRequest.h index 355522dcf..f735d0231 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveAppsAuthoritiesRequest : public RpcServiceRequest - { - - public: - RemoveAppsAuthoritiesRequest(); - ~RemoveAppsAuthoritiesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveAppsAuthoritiesRequest : public RpcServiceRequest + { + + public: + RemoveAppsAuthoritiesRequest(); + ~RemoveAppsAuthoritiesRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getAppIds()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setApiId(const std::string& apiId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string appIds_; std::string securityToken_; std::string groupId_; std::string apiId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesResult.h index a80cecb26..c9f5eb9e2 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveAppsAuthoritiesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveAppsAuthoritiesResult : public ServiceResult - { - public: - - - RemoveAppsAuthoritiesResult(); - explicit RemoveAppsAuthoritiesResult(const std::string &payload); - ~RemoveAppsAuthoritiesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveAppsAuthoritiesResult : public ServiceResult + { + public: + + + RemoveAppsAuthoritiesResult(); + explicit RemoveAppsAuthoritiesResult(const std::string &payload); + ~RemoveAppsAuthoritiesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEAPPSAUTHORITIESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisRequest.h index 4699fe947..db860140c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlApisRequest : public RpcServiceRequest - { - - public: - RemoveIpControlApisRequest(); - ~RemoveIpControlApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlApisRequest : public RpcServiceRequest + { + + public: + RemoveIpControlApisRequest(); + ~RemoveIpControlApisRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getIpControlId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string ipControlId_; std::string securityToken_; std::string groupId_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisResult.h index a548ea59b..3f43409eb 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlApisResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlApisResult : public ServiceResult - { - public: - - - RemoveIpControlApisResult(); - explicit RemoveIpControlApisResult(const std::string &payload); - ~RemoveIpControlApisResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlApisResult : public ServiceResult + { + public: + + + RemoveIpControlApisResult(); + explicit RemoveIpControlApisResult(const std::string &payload); + ~RemoveIpControlApisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemRequest.h index 2147a8030..25d60b749 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlPolicyItemRequest : public RpcServiceRequest - { - - public: - RemoveIpControlPolicyItemRequest(); - ~RemoveIpControlPolicyItemRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlPolicyItemRequest : public RpcServiceRequest + { + + public: + RemoveIpControlPolicyItemRequest(); + ~RemoveIpControlPolicyItemRequest(); + std::string getIpControlId()const; void setIpControlId(const std::string& ipControlId); std::string getSecurityToken()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getPolicyItemIds()const; void setPolicyItemIds(const std::string& policyItemIds); - - private: + + private: std::string ipControlId_; std::string securityToken_; std::string accessKeyId_; std::string policyItemIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemResult.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemResult.h index 5e62ff75b..74f7e2fe4 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveIpControlPolicyItemResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlPolicyItemResult : public ServiceResult - { - public: - - - RemoveIpControlPolicyItemResult(); - explicit RemoveIpControlPolicyItemResult(const std::string &payload); - ~RemoveIpControlPolicyItemResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveIpControlPolicyItemResult : public ServiceResult + { + public: + + + RemoveIpControlPolicyItemResult(); + explicit RemoveIpControlPolicyItemResult(const std::string &payload); + ~RemoveIpControlPolicyItemResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEIPCONTROLPOLICYITEMRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisRequest.h index 791a61376..bceb68d88 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveSignatureApisRequest : public RpcServiceRequest - { - - public: - RemoveSignatureApisRequest(); - ~RemoveSignatureApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveSignatureApisRequest : public RpcServiceRequest + { + + public: + RemoveSignatureApisRequest(); + ~RemoveSignatureApisRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string signatureId_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisResult.h index 0bdb872f6..db2480964 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveSignatureApisResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveSignatureApisResult : public ServiceResult - { - public: - - - RemoveSignatureApisResult(); - explicit RemoveSignatureApisResult(const std::string &payload); - ~RemoveSignatureApisResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveSignatureApisResult : public ServiceResult + { + public: + + + RemoveSignatureApisResult(); + explicit RemoveSignatureApisResult(const std::string &payload); + ~RemoveSignatureApisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVESIGNATUREAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisRequest.h index ca6909b29..28634d71e 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveTrafficControlApisRequest : public RpcServiceRequest - { - - public: - RemoveTrafficControlApisRequest(); - ~RemoveTrafficControlApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveTrafficControlApisRequest : public RpcServiceRequest + { + + public: + RemoveTrafficControlApisRequest(); + ~RemoveTrafficControlApisRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getStageName()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string trafficControlId_; std::string stageName_; std::string securityToken_; std::string groupId_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisResult.h index 49391816e..cf5f13759 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveTrafficControlApisResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveTrafficControlApisResult : public ServiceResult - { - public: - - - RemoveTrafficControlApisResult(); - explicit RemoveTrafficControlApisResult(const std::string &payload); - ~RemoveTrafficControlApisResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveTrafficControlApisResult : public ServiceResult + { + public: + + + RemoveTrafficControlApisResult(); + explicit RemoveTrafficControlApisResult(const std::string &payload); + ~RemoveTrafficControlApisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVETRAFFICCONTROLAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessRequest.h index d8c2ef44d..2589aaaf1 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveVpcAccessRequest : public RpcServiceRequest - { - - public: - RemoveVpcAccessRequest(); - ~RemoveVpcAccessRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveVpcAccessRequest : public RpcServiceRequest + { + + public: + RemoveVpcAccessRequest(); + ~RemoveVpcAccessRequest(); + std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSecurityToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setVpcId(const std::string& vpcId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string instanceId_; std::string securityToken_; int port_; std::string vpcId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessResult.h b/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessResult.h index d00ebcc87..cf4c36791 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/RemoveVpcAccessResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveVpcAccessResult : public ServiceResult - { - public: - - - RemoveVpcAccessResult(); - explicit RemoveVpcAccessResult(const std::string &payload); - ~RemoveVpcAccessResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT RemoveVpcAccessResult : public ServiceResult + { + public: + + + RemoveVpcAccessResult(); + explicit RemoveVpcAccessResult(const std::string &payload); + ~RemoveVpcAccessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_REMOVEVPCACCESSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeRequest.h index aa935c26f..1b00e0eb5 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_RESETAPPCODEREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppCodeRequest : public RpcServiceRequest - { - - public: - ResetAppCodeRequest(); - ~ResetAppCodeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODEREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppCodeRequest : public RpcServiceRequest + { + + public: + ResetAppCodeRequest(); + ~ResetAppCodeRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getAppCode()const; void setAppCode(const std::string& appCode); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string appCode_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODEREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeResult.h index bcb74d69e..b1c910069 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppCodeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppCodeResult : public ServiceResult - { - public: - - - ResetAppCodeResult(); - explicit ResetAppCodeResult(const std::string &payload); - ~ResetAppCodeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppCodeResult : public ServiceResult + { + public: + + + ResetAppCodeResult(); + explicit ResetAppCodeResult(const std::string &payload); + ~ResetAppCodeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPCODERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretRequest.h index 1afff91f9..960d0c059 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretRequest.h @@ -1,54 +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_CLOUDAPI_MODEL_RESETAPPSECRETREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppSecretRequest : public RpcServiceRequest - { - - public: - ResetAppSecretRequest(); - ~ResetAppSecretRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppSecretRequest : public RpcServiceRequest + { + + public: + ResetAppSecretRequest(); + ~ResetAppSecretRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getAppKey()const; void setAppKey(const std::string& appKey); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string appKey_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretResult.h b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretResult.h index a278e6d1a..b84c2173d 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/ResetAppSecretResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppSecretResult : public ServiceResult - { - public: - - - ResetAppSecretResult(); - explicit ResetAppSecretResult(const std::string &payload); - ~ResetAppSecretResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT ResetAppSecretResult : public ServiceResult + { + public: + + + ResetAppSecretResult(); + explicit ResetAppSecretResult(const std::string &payload); + ~ResetAppSecretResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_RESETAPPSECRETRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppRequest.h index 03c7f158c..dc9802124 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByAppRequest : public RpcServiceRequest - { - - public: - SdkGenerateByAppRequest(); - ~SdkGenerateByAppRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByAppRequest : public RpcServiceRequest + { + + public: + SdkGenerateByAppRequest(); + ~SdkGenerateByAppRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); long getAppId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setLanguage(const std::string& language); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; long appId_; std::string language_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppResult.h index d689d0ca2..68da4e854 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByAppResult.h @@ -1,51 +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_CLOUDAPI_MODEL_SDKGENERATEBYAPPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByAppResult : public ServiceResult - { - public: - - - SdkGenerateByAppResult(); - explicit SdkGenerateByAppResult(const std::string &payload); - ~SdkGenerateByAppResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByAppResult : public ServiceResult + { + public: + + + SdkGenerateByAppResult(); + explicit SdkGenerateByAppResult(const std::string &payload); + ~SdkGenerateByAppResult(); std::string getDownloadLink()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string downloadLink_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYAPPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupRequest.h index 77ed654d7..d278ba8aa 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByGroupRequest : public RpcServiceRequest - { - - public: - SdkGenerateByGroupRequest(); - ~SdkGenerateByGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByGroupRequest : public RpcServiceRequest + { + + public: + SdkGenerateByGroupRequest(); + ~SdkGenerateByGroupRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setLanguage(const std::string& language); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string language_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupResult.h index fdaed8076..f82aa8249 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SdkGenerateByGroupResult.h @@ -1,51 +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_CLOUDAPI_MODEL_SDKGENERATEBYGROUPRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByGroupResult : public ServiceResult - { - public: - - - SdkGenerateByGroupResult(); - explicit SdkGenerateByGroupResult(const std::string &payload); - ~SdkGenerateByGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SdkGenerateByGroupResult : public ServiceResult + { + public: + + + SdkGenerateByGroupResult(); + explicit SdkGenerateByGroupResult(const std::string &payload); + ~SdkGenerateByGroupResult(); std::string getDownloadLink()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string downloadLink_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SDKGENERATEBYGROUPRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesRequest.h index ae24304cb..962881df4 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetApisAuthoritiesRequest : public RpcServiceRequest - { - - public: - SetApisAuthoritiesRequest(); - ~SetApisAuthoritiesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetApisAuthoritiesRequest : public RpcServiceRequest + { + + public: + SetApisAuthoritiesRequest(); + ~SetApisAuthoritiesRequest(); + std::string getAuthVaildTime()const; void setAuthVaildTime(const std::string& authVaildTime); std::string getStageName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string authVaildTime_; std::string stageName_; std::string securityToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string authValidTime_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesResult.h index 84ee2de1e..0d61c2b16 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetApisAuthoritiesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetApisAuthoritiesResult : public ServiceResult - { - public: - - - SetApisAuthoritiesResult(); - explicit SetApisAuthoritiesResult(const std::string &payload); - ~SetApisAuthoritiesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetApisAuthoritiesResult : public ServiceResult + { + public: + + + SetApisAuthoritiesResult(); + explicit SetApisAuthoritiesResult(const std::string &payload); + ~SetApisAuthoritiesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETAPISAUTHORITIESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesRequest.h index 841a8a8b4..3403c3ffb 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetAppsAuthoritiesRequest : public RpcServiceRequest - { - - public: - SetAppsAuthoritiesRequest(); - ~SetAppsAuthoritiesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetAppsAuthoritiesRequest : public RpcServiceRequest + { + + public: + SetAppsAuthoritiesRequest(); + ~SetAppsAuthoritiesRequest(); + std::string getAuthVaildTime()const; void setAuthVaildTime(const std::string& authVaildTime); std::string getStageName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAuthValidTime(const std::string& authValidTime); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string authVaildTime_; std::string stageName_; std::string appIds_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string apiId_; std::string authValidTime_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesResult.h index b538f34ad..04089200b 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetAppsAuthoritiesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetAppsAuthoritiesResult : public ServiceResult - { - public: - - - SetAppsAuthoritiesResult(); - explicit SetAppsAuthoritiesResult(const std::string &payload); - ~SetAppsAuthoritiesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetAppsAuthoritiesResult : public ServiceResult + { + public: + + + SetAppsAuthoritiesResult(); + explicit SetAppsAuthoritiesResult(const std::string &payload); + ~SetAppsAuthoritiesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETAPPSAUTHORITIESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateRequest.h index 5ad36a3b3..7f8562135 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainCertificateRequest : public RpcServiceRequest - { - - public: - SetDomainCertificateRequest(); - ~SetDomainCertificateRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainCertificateRequest : public RpcServiceRequest + { + + public: + SetDomainCertificateRequest(); + ~SetDomainCertificateRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getCertificatePrivateKey()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setCertificateBody(const std::string& certificateBody); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string certificatePrivateKey_; std::string groupId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string certificateName_; std::string certificateBody_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateResult.h index 54b433d07..f63681802 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainCertificateResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATERESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainCertificateResult : public ServiceResult - { - public: - - - SetDomainCertificateResult(); - explicit SetDomainCertificateResult(const std::string &payload); - ~SetDomainCertificateResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainCertificateResult : public ServiceResult + { + public: + + + SetDomainCertificateResult(); + explicit SetDomainCertificateResult(const std::string &payload); + ~SetDomainCertificateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainRequest.h index 45848680f..515488de0 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainRequest : public RpcServiceRequest - { - - public: - SetDomainRequest(); - ~SetDomainRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainRequest : public RpcServiceRequest + { + + public: + SetDomainRequest(); + ~SetDomainRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string domainName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainResult.h index 459c9389c..f9c7f54f4 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainResult.h @@ -1,42 +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_CLOUDAPI_MODEL_SETDOMAINRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainResult : public ServiceResult - { - public: - - - SetDomainResult(); - explicit SetDomainResult(const std::string &payload); - ~SetDomainResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainResult : public ServiceResult + { + public: + + + SetDomainResult(); + explicit SetDomainResult(const std::string &payload); + ~SetDomainResult(); std::string getSubDomain()const; std::string getDomainRemark()const; std::string getDomainBindingStatus()const; @@ -44,10 +44,10 @@ namespace AlibabaCloud std::string getDomainName()const; std::string getDomainWebSocketStatus()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string subDomain_; std::string domainRemark_; std::string domainBindingStatus_; @@ -55,9 +55,9 @@ namespace AlibabaCloud std::string domainName_; std::string domainWebSocketStatus_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusRequest.h index ce72609e0..5aed599cc 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainWebSocketStatusRequest : public RpcServiceRequest - { - - public: - SetDomainWebSocketStatusRequest(); - ~SetDomainWebSocketStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainWebSocketStatusRequest : public RpcServiceRequest + { + + public: + SetDomainWebSocketStatusRequest(); + ~SetDomainWebSocketStatusRequest(); + std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getGroupId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setActionValue(const std::string& actionValue); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string securityToken_; std::string groupId_; std::string domainName_; std::string actionValue_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusResult.h index b858464e2..82385b4ff 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetDomainWebSocketStatusResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainWebSocketStatusResult : public ServiceResult - { - public: - - - SetDomainWebSocketStatusResult(); - explicit SetDomainWebSocketStatusResult(const std::string &payload); - ~SetDomainWebSocketStatusResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetDomainWebSocketStatusResult : public ServiceResult + { + public: + + + SetDomainWebSocketStatusResult(); + explicit SetDomainWebSocketStatusResult(const std::string &payload); + ~SetDomainWebSocketStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETDOMAINWEBSOCKETSTATUSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisRequest.h index 23fafa0e8..5c5ac60ff 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetIpControlApisRequest : public RpcServiceRequest - { - - public: - SetIpControlApisRequest(); - ~SetIpControlApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetIpControlApisRequest : public RpcServiceRequest + { + + public: + SetIpControlApisRequest(); + ~SetIpControlApisRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getIpControlId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string ipControlId_; std::string securityToken_; std::string groupId_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisResult.h index 20d91e0c0..c15128003 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetIpControlApisResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetIpControlApisResult : public ServiceResult - { - public: - - - SetIpControlApisResult(); - explicit SetIpControlApisResult(const std::string &payload); - ~SetIpControlApisResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetIpControlApisResult : public ServiceResult + { + public: + + + SetIpControlApisResult(); + explicit SetIpControlApisResult(const std::string &payload); + ~SetIpControlApisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETIPCONTROLAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisRequest.h index d926a9ef2..f32b276da 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetSignatureApisRequest : public RpcServiceRequest - { - - public: - SetSignatureApisRequest(); - ~SetSignatureApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetSignatureApisRequest : public RpcServiceRequest + { + + public: + SetSignatureApisRequest(); + ~SetSignatureApisRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; std::string signatureId_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisResult.h index 7ea57197a..d7f5e1394 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetSignatureApisResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetSignatureApisResult : public ServiceResult - { - public: - - - SetSignatureApisResult(); - explicit SetSignatureApisResult(const std::string &payload); - ~SetSignatureApisResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetSignatureApisResult : public ServiceResult + { + public: + + + SetSignatureApisResult(); + explicit SetSignatureApisResult(const std::string &payload); + ~SetSignatureApisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETSIGNATUREAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisRequest.h index 20a58ac5b..b877b4f57 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetTrafficControlApisRequest : public RpcServiceRequest - { - - public: - SetTrafficControlApisRequest(); - ~SetTrafficControlApisRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetTrafficControlApisRequest : public RpcServiceRequest + { + + public: + SetTrafficControlApisRequest(); + ~SetTrafficControlApisRequest(); + std::string getTrafficControlId()const; void setTrafficControlId(const std::string& trafficControlId); std::string getStageName()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getApiIds()const; void setApiIds(const std::string& apiIds); - - private: + + private: std::string trafficControlId_; std::string stageName_; std::string securityToken_; std::string groupId_; std::string accessKeyId_; std::string apiIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisResult.h index 876e8163c..0a8f6593c 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetTrafficControlApisResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetTrafficControlApisResult : public ServiceResult - { - public: - - - SetTrafficControlApisResult(); - explicit SetTrafficControlApisResult(const std::string &payload); - ~SetTrafficControlApisResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetTrafficControlApisResult : public ServiceResult + { + public: + + + SetTrafficControlApisResult(); + explicit SetTrafficControlApisResult(const std::string &payload); + ~SetTrafficControlApisResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETTRAFFICCONTROLAPISRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessRequest.h index b9d3beee7..73014eaab 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetVpcAccessRequest : public RpcServiceRequest - { - - public: - SetVpcAccessRequest(); - ~SetVpcAccessRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetVpcAccessRequest : public RpcServiceRequest + { + + public: + SetVpcAccessRequest(); + ~SetVpcAccessRequest(); + std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSecurityToken()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string instanceId_; std::string securityToken_; int port_; std::string vpcId_; std::string name_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessResult.h index eb2787444..7bcb2b84f 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SetVpcAccessResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SetVpcAccessResult : public ServiceResult - { - public: - - - SetVpcAccessResult(); - explicit SetVpcAccessResult(const std::string &payload); - ~SetVpcAccessResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SetVpcAccessResult : public ServiceResult + { + public: + + + SetVpcAccessResult(); + explicit SetVpcAccessResult(const std::string &payload); + ~SetVpcAccessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SETVPCACCESSRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiRequest.h index 9a2a8c7e6..55360a4fa 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SwitchApiRequest : public RpcServiceRequest - { - - public: - SwitchApiRequest(); - ~SwitchApiRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SwitchApiRequest : public RpcServiceRequest + { + + public: + SwitchApiRequest(); + ~SwitchApiRequest(); + std::string getStageName()const; void setStageName(const std::string& stageName); std::string getSecurityToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setHistoryVersion(const std::string& historyVersion); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string stageName_; std::string securityToken_; std::string groupId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string apiId_; std::string historyVersion_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiResult.h b/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiResult.h index 8a860a993..4470245bd 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/SwitchApiResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT SwitchApiResult : public ServiceResult - { - public: - - - SwitchApiResult(); - explicit SwitchApiResult(const std::string &payload); - ~SwitchApiResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT SwitchApiResult : public ServiceResult + { + public: + + + SwitchApiResult(); + explicit SwitchApiResult(const std::string &payload); + ~SwitchApiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_SWITCHAPIRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesRequest.h index 3ec98784c..b9eb6da72 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesRequest.h @@ -1,45 +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_CLOUDAPI_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT TagResourcesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT TagResourcesRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId()const; void setResourceId(const std::vector& resourceId); std::string getSecurityToken()const; @@ -50,16 +50,16 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::vector resourceId_; std::string securityToken_; std::vector tag_; std::string resourceType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesResult.h index 12b8eb59a..80157e788 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/TagResourcesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT TagResourcesResult : public ServiceResult - { - public: - - - TagResourcesResult(); - explicit TagResourcesResult(const std::string &payload); - ~TagResourcesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesRequest.h b/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesRequest.h index 51056438d..9c840baa3 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesRequest.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll()const; void setAll(bool all); std::vector getResourceId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: bool all_; std::vector resourceId_; std::string securityToken_; std::vector tagKey_; std::string resourceType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesResult.h b/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesResult.h index bc34740dc..f6402a715 100644 --- a/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesResult.h +++ b/cloudapi/include/alibabacloud/cloudapi/model/UntagResourcesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace CloudAPI - { - namespace Model - { - class ALIBABACLOUD_CLOUDAPI_EXPORT UntagResourcesResult : public ServiceResult - { - public: - - - UntagResourcesResult(); - explicit UntagResourcesResult(const std::string &payload); - ~UntagResourcesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CloudAPI + { + namespace Model + { + class ALIBABACLOUD_CLOUDAPI_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAPI_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cloudapi/src/CloudAPIClient.cc b/cloudapi/src/CloudAPIClient.cc new file mode 100644 index 000000000..9bc21424f --- /dev/null +++ b/cloudapi/src/CloudAPIClient.cc @@ -0,0 +1,3761 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +namespace +{ + const std::string SERVICE_NAME = "CloudAPI"; +} + +CloudAPIClient::CloudAPIClient(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, "apigateway"); +} + +CloudAPIClient::CloudAPIClient(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, "apigateway"); +} + +CloudAPIClient::CloudAPIClient(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, "apigateway"); +} + +CloudAPIClient::~CloudAPIClient() +{} + +CloudAPIClient::DescribeAuthorizedAppsOutcome CloudAPIClient::describeAuthorizedApps(const DescribeAuthorizedAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuthorizedAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuthorizedAppsOutcome(DescribeAuthorizedAppsResult(outcome.result())); + else + return DescribeAuthorizedAppsOutcome(outcome.error()); +} + +void CloudAPIClient::describeAuthorizedAppsAsync(const DescribeAuthorizedAppsRequest& request, const DescribeAuthorizedAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuthorizedApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeAuthorizedAppsOutcomeCallable CloudAPIClient::describeAuthorizedAppsCallable(const DescribeAuthorizedAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuthorizedApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribePurchasedApiGroupsOutcome CloudAPIClient::describePurchasedApiGroups(const DescribePurchasedApiGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePurchasedApiGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePurchasedApiGroupsOutcome(DescribePurchasedApiGroupsResult(outcome.result())); + else + return DescribePurchasedApiGroupsOutcome(outcome.error()); +} + +void CloudAPIClient::describePurchasedApiGroupsAsync(const DescribePurchasedApiGroupsRequest& request, const DescribePurchasedApiGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePurchasedApiGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribePurchasedApiGroupsOutcomeCallable CloudAPIClient::describePurchasedApiGroupsCallable(const DescribePurchasedApiGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePurchasedApiGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::UntagResourcesOutcome CloudAPIClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void CloudAPIClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::UntagResourcesOutcomeCallable CloudAPIClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeLogConfigOutcome CloudAPIClient::describeLogConfig(const DescribeLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLogConfigOutcome(DescribeLogConfigResult(outcome.result())); + else + return DescribeLogConfigOutcome(outcome.error()); +} + +void CloudAPIClient::describeLogConfigAsync(const DescribeLogConfigRequest& request, const DescribeLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeLogConfigOutcomeCallable CloudAPIClient::describeLogConfigCallable(const DescribeLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetApisAuthoritiesOutcome CloudAPIClient::setApisAuthorities(const SetApisAuthoritiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetApisAuthoritiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetApisAuthoritiesOutcome(SetApisAuthoritiesResult(outcome.result())); + else + return SetApisAuthoritiesOutcome(outcome.error()); +} + +void CloudAPIClient::setApisAuthoritiesAsync(const SetApisAuthoritiesRequest& request, const SetApisAuthoritiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setApisAuthorities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetApisAuthoritiesOutcomeCallable CloudAPIClient::setApisAuthoritiesCallable(const SetApisAuthoritiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setApisAuthorities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeTrafficControlsOutcome CloudAPIClient::describeTrafficControls(const DescribeTrafficControlsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTrafficControlsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTrafficControlsOutcome(DescribeTrafficControlsResult(outcome.result())); + else + return DescribeTrafficControlsOutcome(outcome.error()); +} + +void CloudAPIClient::describeTrafficControlsAsync(const DescribeTrafficControlsRequest& request, const DescribeTrafficControlsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTrafficControls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeTrafficControlsOutcomeCallable CloudAPIClient::describeTrafficControlsCallable(const DescribeTrafficControlsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTrafficControls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetDomainOutcome CloudAPIClient::setDomain(const SetDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDomainOutcome(SetDomainResult(outcome.result())); + else + return SetDomainOutcome(outcome.error()); +} + +void CloudAPIClient::setDomainAsync(const SetDomainRequest& request, const SetDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetDomainOutcomeCallable CloudAPIClient::setDomainCallable(const SetDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteIpControlOutcome CloudAPIClient::deleteIpControl(const DeleteIpControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIpControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIpControlOutcome(DeleteIpControlResult(outcome.result())); + else + return DeleteIpControlOutcome(outcome.error()); +} + +void CloudAPIClient::deleteIpControlAsync(const DeleteIpControlRequest& request, const DeleteIpControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIpControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteIpControlOutcomeCallable CloudAPIClient::deleteIpControlCallable(const DeleteIpControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIpControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteSignatureOutcome CloudAPIClient::deleteSignature(const DeleteSignatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSignatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSignatureOutcome(DeleteSignatureResult(outcome.result())); + else + return DeleteSignatureOutcome(outcome.error()); +} + +void CloudAPIClient::deleteSignatureAsync(const DeleteSignatureRequest& request, const DeleteSignatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSignature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteSignatureOutcomeCallable CloudAPIClient::deleteSignatureCallable(const DeleteSignatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSignature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteTrafficControlOutcome CloudAPIClient::deleteTrafficControl(const DeleteTrafficControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrafficControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrafficControlOutcome(DeleteTrafficControlResult(outcome.result())); + else + return DeleteTrafficControlOutcome(outcome.error()); +} + +void CloudAPIClient::deleteTrafficControlAsync(const DeleteTrafficControlRequest& request, const DeleteTrafficControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrafficControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteTrafficControlOutcomeCallable CloudAPIClient::deleteTrafficControlCallable(const DeleteTrafficControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrafficControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiLatencyDataOutcome CloudAPIClient::describeApiLatencyData(const DescribeApiLatencyDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiLatencyDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiLatencyDataOutcome(DescribeApiLatencyDataResult(outcome.result())); + else + return DescribeApiLatencyDataOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiLatencyDataAsync(const DescribeApiLatencyDataRequest& request, const DescribeApiLatencyDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiLatencyData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiLatencyDataOutcomeCallable CloudAPIClient::describeApiLatencyDataCallable(const DescribeApiLatencyDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiLatencyData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeSystemParametersOutcome CloudAPIClient::describeSystemParameters(const DescribeSystemParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSystemParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSystemParametersOutcome(DescribeSystemParametersResult(outcome.result())); + else + return DescribeSystemParametersOutcome(outcome.error()); +} + +void CloudAPIClient::describeSystemParametersAsync(const DescribeSystemParametersRequest& request, const DescribeSystemParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSystemParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeSystemParametersOutcomeCallable CloudAPIClient::describeSystemParametersCallable(const DescribeSystemParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSystemParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiHistoryOutcome CloudAPIClient::describeApiHistory(const DescribeApiHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiHistoryOutcome(DescribeApiHistoryResult(outcome.result())); + else + return DescribeApiHistoryOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiHistoryAsync(const DescribeApiHistoryRequest& request, const DescribeApiHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiHistoryOutcomeCallable CloudAPIClient::describeApiHistoryCallable(const DescribeApiHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateIntranetDomainOutcome CloudAPIClient::createIntranetDomain(const CreateIntranetDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIntranetDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIntranetDomainOutcome(CreateIntranetDomainResult(outcome.result())); + else + return CreateIntranetDomainOutcome(outcome.error()); +} + +void CloudAPIClient::createIntranetDomainAsync(const CreateIntranetDomainRequest& request, const CreateIntranetDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIntranetDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateIntranetDomainOutcomeCallable CloudAPIClient::createIntranetDomainCallable(const CreateIntranetDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIntranetDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiErrorDataOutcome CloudAPIClient::describeApiErrorData(const DescribeApiErrorDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiErrorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiErrorDataOutcome(DescribeApiErrorDataResult(outcome.result())); + else + return DescribeApiErrorDataOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiErrorDataAsync(const DescribeApiErrorDataRequest& request, const DescribeApiErrorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiErrorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiErrorDataOutcomeCallable CloudAPIClient::describeApiErrorDataCallable(const DescribeApiErrorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiErrorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteTrafficSpecialControlOutcome CloudAPIClient::deleteTrafficSpecialControl(const DeleteTrafficSpecialControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrafficSpecialControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrafficSpecialControlOutcome(DeleteTrafficSpecialControlResult(outcome.result())); + else + return DeleteTrafficSpecialControlOutcome(outcome.error()); +} + +void CloudAPIClient::deleteTrafficSpecialControlAsync(const DeleteTrafficSpecialControlRequest& request, const DeleteTrafficSpecialControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrafficSpecialControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteTrafficSpecialControlOutcomeCallable CloudAPIClient::deleteTrafficSpecialControlCallable(const DeleteTrafficSpecialControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrafficSpecialControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::RemoveIpControlApisOutcome CloudAPIClient::removeIpControlApis(const RemoveIpControlApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveIpControlApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveIpControlApisOutcome(RemoveIpControlApisResult(outcome.result())); + else + return RemoveIpControlApisOutcome(outcome.error()); +} + +void CloudAPIClient::removeIpControlApisAsync(const RemoveIpControlApisRequest& request, const RemoveIpControlApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeIpControlApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::RemoveIpControlApisOutcomeCallable CloudAPIClient::removeIpControlApisCallable(const RemoveIpControlApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeIpControlApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateApiOutcome CloudAPIClient::createApi(const CreateApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApiOutcome(CreateApiResult(outcome.result())); + else + return CreateApiOutcome(outcome.error()); +} + +void CloudAPIClient::createApiAsync(const CreateApiRequest& request, const CreateApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateApiOutcomeCallable CloudAPIClient::createApiCallable(const CreateApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiGroupOutcome CloudAPIClient::describeApiGroup(const DescribeApiGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiGroupOutcome(DescribeApiGroupResult(outcome.result())); + else + return DescribeApiGroupOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiGroupAsync(const DescribeApiGroupRequest& request, const DescribeApiGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiGroupOutcomeCallable CloudAPIClient::describeApiGroupCallable(const DescribeApiGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteAppOutcome CloudAPIClient::deleteApp(const DeleteAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppOutcome(DeleteAppResult(outcome.result())); + else + return DeleteAppOutcome(outcome.error()); +} + +void CloudAPIClient::deleteAppAsync(const DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteAppOutcomeCallable CloudAPIClient::deleteAppCallable(const DeleteAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiHistoriesOutcome CloudAPIClient::describeApiHistories(const DescribeApiHistoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiHistoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiHistoriesOutcome(DescribeApiHistoriesResult(outcome.result())); + else + return DescribeApiHistoriesOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiHistoriesAsync(const DescribeApiHistoriesRequest& request, const DescribeApiHistoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiHistories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiHistoriesOutcomeCallable CloudAPIClient::describeApiHistoriesCallable(const DescribeApiHistoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiHistories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteApiGroupOutcome CloudAPIClient::deleteApiGroup(const DeleteApiGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApiGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApiGroupOutcome(DeleteApiGroupResult(outcome.result())); + else + return DeleteApiGroupOutcome(outcome.error()); +} + +void CloudAPIClient::deleteApiGroupAsync(const DeleteApiGroupRequest& request, const DeleteApiGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApiGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteApiGroupOutcomeCallable CloudAPIClient::deleteApiGroupCallable(const DeleteApiGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApiGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::RemoveTrafficControlApisOutcome CloudAPIClient::removeTrafficControlApis(const RemoveTrafficControlApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTrafficControlApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTrafficControlApisOutcome(RemoveTrafficControlApisResult(outcome.result())); + else + return RemoveTrafficControlApisOutcome(outcome.error()); +} + +void CloudAPIClient::removeTrafficControlApisAsync(const RemoveTrafficControlApisRequest& request, const RemoveTrafficControlApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTrafficControlApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::RemoveTrafficControlApisOutcomeCallable CloudAPIClient::removeTrafficControlApisCallable(const RemoveTrafficControlApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTrafficControlApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiGroupsOutcome CloudAPIClient::describeApiGroups(const DescribeApiGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiGroupsOutcome(DescribeApiGroupsResult(outcome.result())); + else + return DescribeApiGroupsOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiGroupsAsync(const DescribeApiGroupsRequest& request, const DescribeApiGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiGroupsOutcomeCallable CloudAPIClient::describeApiGroupsCallable(const DescribeApiGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteAllTrafficSpecialControlOutcome CloudAPIClient::deleteAllTrafficSpecialControl(const DeleteAllTrafficSpecialControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAllTrafficSpecialControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAllTrafficSpecialControlOutcome(DeleteAllTrafficSpecialControlResult(outcome.result())); + else + return DeleteAllTrafficSpecialControlOutcome(outcome.error()); +} + +void CloudAPIClient::deleteAllTrafficSpecialControlAsync(const DeleteAllTrafficSpecialControlRequest& request, const DeleteAllTrafficSpecialControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAllTrafficSpecialControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteAllTrafficSpecialControlOutcomeCallable CloudAPIClient::deleteAllTrafficSpecialControlCallable(const DeleteAllTrafficSpecialControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAllTrafficSpecialControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::AbolishApiOutcome CloudAPIClient::abolishApi(const AbolishApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AbolishApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AbolishApiOutcome(AbolishApiResult(outcome.result())); + else + return AbolishApiOutcome(outcome.error()); +} + +void CloudAPIClient::abolishApiAsync(const AbolishApiRequest& request, const AbolishApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, abolishApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::AbolishApiOutcomeCallable CloudAPIClient::abolishApiCallable(const AbolishApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->abolishApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApisOutcome CloudAPIClient::describeApis(const DescribeApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApisOutcome(DescribeApisResult(outcome.result())); + else + return DescribeApisOutcome(outcome.error()); +} + +void CloudAPIClient::describeApisAsync(const DescribeApisRequest& request, const DescribeApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApisOutcomeCallable CloudAPIClient::describeApisCallable(const DescribeApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetIpControlApisOutcome CloudAPIClient::setIpControlApis(const SetIpControlApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetIpControlApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetIpControlApisOutcome(SetIpControlApisResult(outcome.result())); + else + return SetIpControlApisOutcome(outcome.error()); +} + +void CloudAPIClient::setIpControlApisAsync(const SetIpControlApisRequest& request, const SetIpControlApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setIpControlApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetIpControlApisOutcomeCallable CloudAPIClient::setIpControlApisCallable(const SetIpControlApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setIpControlApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateApiGroupOutcome CloudAPIClient::createApiGroup(const CreateApiGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApiGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApiGroupOutcome(CreateApiGroupResult(outcome.result())); + else + return CreateApiGroupOutcome(outcome.error()); +} + +void CloudAPIClient::createApiGroupAsync(const CreateApiGroupRequest& request, const CreateApiGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApiGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateApiGroupOutcomeCallable CloudAPIClient::createApiGroupCallable(const CreateApiGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApiGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeDomainsResolutionOutcome CloudAPIClient::describeDomainsResolution(const DescribeDomainsResolutionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainsResolutionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainsResolutionOutcome(DescribeDomainsResolutionResult(outcome.result())); + else + return DescribeDomainsResolutionOutcome(outcome.error()); +} + +void CloudAPIClient::describeDomainsResolutionAsync(const DescribeDomainsResolutionRequest& request, const DescribeDomainsResolutionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainsResolution(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeDomainsResolutionOutcomeCallable CloudAPIClient::describeDomainsResolutionCallable(const DescribeDomainsResolutionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainsResolution(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeAppAttributesOutcome CloudAPIClient::describeAppAttributes(const DescribeAppAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppAttributesOutcome(DescribeAppAttributesResult(outcome.result())); + else + return DescribeAppAttributesOutcome(outcome.error()); +} + +void CloudAPIClient::describeAppAttributesAsync(const DescribeAppAttributesRequest& request, const DescribeAppAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeAppAttributesOutcomeCallable CloudAPIClient::describeAppAttributesCallable(const DescribeAppAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteApiOutcome CloudAPIClient::deleteApi(const DeleteApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApiOutcome(DeleteApiResult(outcome.result())); + else + return DeleteApiOutcome(outcome.error()); +} + +void CloudAPIClient::deleteApiAsync(const DeleteApiRequest& request, const DeleteApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteApiOutcomeCallable CloudAPIClient::deleteApiCallable(const DeleteApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribePurchasedApiGroupOutcome CloudAPIClient::describePurchasedApiGroup(const DescribePurchasedApiGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePurchasedApiGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePurchasedApiGroupOutcome(DescribePurchasedApiGroupResult(outcome.result())); + else + return DescribePurchasedApiGroupOutcome(outcome.error()); +} + +void CloudAPIClient::describePurchasedApiGroupAsync(const DescribePurchasedApiGroupRequest& request, const DescribePurchasedApiGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePurchasedApiGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribePurchasedApiGroupOutcomeCallable CloudAPIClient::describePurchasedApiGroupCallable(const DescribePurchasedApiGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePurchasedApiGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifyIpControlPolicyItemOutcome CloudAPIClient::modifyIpControlPolicyItem(const ModifyIpControlPolicyItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIpControlPolicyItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIpControlPolicyItemOutcome(ModifyIpControlPolicyItemResult(outcome.result())); + else + return ModifyIpControlPolicyItemOutcome(outcome.error()); +} + +void CloudAPIClient::modifyIpControlPolicyItemAsync(const ModifyIpControlPolicyItemRequest& request, const ModifyIpControlPolicyItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIpControlPolicyItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifyIpControlPolicyItemOutcomeCallable CloudAPIClient::modifyIpControlPolicyItemCallable(const ModifyIpControlPolicyItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIpControlPolicyItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiDocOutcome CloudAPIClient::describeApiDoc(const DescribeApiDocRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiDocOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiDocOutcome(DescribeApiDocResult(outcome.result())); + else + return DescribeApiDocOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiDocAsync(const DescribeApiDocRequest& request, const DescribeApiDocAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiDoc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiDocOutcomeCallable CloudAPIClient::describeApiDocCallable(const DescribeApiDocRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiDoc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SdkGenerateByAppOutcome CloudAPIClient::sdkGenerateByApp(const SdkGenerateByAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SdkGenerateByAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SdkGenerateByAppOutcome(SdkGenerateByAppResult(outcome.result())); + else + return SdkGenerateByAppOutcome(outcome.error()); +} + +void CloudAPIClient::sdkGenerateByAppAsync(const SdkGenerateByAppRequest& request, const SdkGenerateByAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sdkGenerateByApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SdkGenerateByAppOutcomeCallable CloudAPIClient::sdkGenerateByAppCallable(const SdkGenerateByAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sdkGenerateByApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteDomainCertificateOutcome CloudAPIClient::deleteDomainCertificate(const DeleteDomainCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDomainCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDomainCertificateOutcome(DeleteDomainCertificateResult(outcome.result())); + else + return DeleteDomainCertificateOutcome(outcome.error()); +} + +void CloudAPIClient::deleteDomainCertificateAsync(const DeleteDomainCertificateRequest& request, const DeleteDomainCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDomainCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteDomainCertificateOutcomeCallable CloudAPIClient::deleteDomainCertificateCallable(const DeleteDomainCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDomainCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateTrafficControlOutcome CloudAPIClient::createTrafficControl(const CreateTrafficControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrafficControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrafficControlOutcome(CreateTrafficControlResult(outcome.result())); + else + return CreateTrafficControlOutcome(outcome.error()); +} + +void CloudAPIClient::createTrafficControlAsync(const CreateTrafficControlRequest& request, const CreateTrafficControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrafficControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateTrafficControlOutcomeCallable CloudAPIClient::createTrafficControlCallable(const CreateTrafficControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrafficControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetDomainCertificateOutcome CloudAPIClient::setDomainCertificate(const SetDomainCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDomainCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDomainCertificateOutcome(SetDomainCertificateResult(outcome.result())); + else + return SetDomainCertificateOutcome(outcome.error()); +} + +void CloudAPIClient::setDomainCertificateAsync(const SetDomainCertificateRequest& request, const SetDomainCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDomainCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetDomainCertificateOutcomeCallable CloudAPIClient::setDomainCertificateCallable(const SetDomainCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDomainCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeSignaturesOutcome CloudAPIClient::describeSignatures(const DescribeSignaturesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSignaturesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSignaturesOutcome(DescribeSignaturesResult(outcome.result())); + else + return DescribeSignaturesOutcome(outcome.error()); +} + +void CloudAPIClient::describeSignaturesAsync(const DescribeSignaturesRequest& request, const DescribeSignaturesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSignatures(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeSignaturesOutcomeCallable CloudAPIClient::describeSignaturesCallable(const DescribeSignaturesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSignatures(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetAppsAuthoritiesOutcome CloudAPIClient::setAppsAuthorities(const SetAppsAuthoritiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAppsAuthoritiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAppsAuthoritiesOutcome(SetAppsAuthoritiesResult(outcome.result())); + else + return SetAppsAuthoritiesOutcome(outcome.error()); +} + +void CloudAPIClient::setAppsAuthoritiesAsync(const SetAppsAuthoritiesRequest& request, const SetAppsAuthoritiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAppsAuthorities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetAppsAuthoritiesOutcomeCallable CloudAPIClient::setAppsAuthoritiesCallable(const SetAppsAuthoritiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAppsAuthorities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SdkGenerateByGroupOutcome CloudAPIClient::sdkGenerateByGroup(const SdkGenerateByGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SdkGenerateByGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SdkGenerateByGroupOutcome(SdkGenerateByGroupResult(outcome.result())); + else + return SdkGenerateByGroupOutcome(outcome.error()); +} + +void CloudAPIClient::sdkGenerateByGroupAsync(const SdkGenerateByGroupRequest& request, const SdkGenerateByGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sdkGenerateByGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SdkGenerateByGroupOutcomeCallable CloudAPIClient::sdkGenerateByGroupCallable(const SdkGenerateByGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sdkGenerateByGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiStageOutcome CloudAPIClient::describeApiStage(const DescribeApiStageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiStageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiStageOutcome(DescribeApiStageResult(outcome.result())); + else + return DescribeApiStageOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiStageAsync(const DescribeApiStageRequest& request, const DescribeApiStageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiStage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiStageOutcomeCallable CloudAPIClient::describeApiStageCallable(const DescribeApiStageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiStage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::TagResourcesOutcome CloudAPIClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void CloudAPIClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::TagResourcesOutcomeCallable CloudAPIClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiTrafficDataOutcome CloudAPIClient::describeApiTrafficData(const DescribeApiTrafficDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiTrafficDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiTrafficDataOutcome(DescribeApiTrafficDataResult(outcome.result())); + else + return DescribeApiTrafficDataOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiTrafficDataAsync(const DescribeApiTrafficDataRequest& request, const DescribeApiTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiTrafficData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiTrafficDataOutcomeCallable CloudAPIClient::describeApiTrafficDataCallable(const DescribeApiTrafficDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiTrafficData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateAppOutcome CloudAPIClient::createApp(const CreateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppOutcome(CreateAppResult(outcome.result())); + else + return CreateAppOutcome(outcome.error()); +} + +void CloudAPIClient::createAppAsync(const CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateAppOutcomeCallable CloudAPIClient::createAppCallable(const CreateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApisByTrafficControlOutcome CloudAPIClient::describeApisByTrafficControl(const DescribeApisByTrafficControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApisByTrafficControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApisByTrafficControlOutcome(DescribeApisByTrafficControlResult(outcome.result())); + else + return DescribeApisByTrafficControlOutcome(outcome.error()); +} + +void CloudAPIClient::describeApisByTrafficControlAsync(const DescribeApisByTrafficControlRequest& request, const DescribeApisByTrafficControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApisByTrafficControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApisByTrafficControlOutcomeCallable CloudAPIClient::describeApisByTrafficControlCallable(const DescribeApisByTrafficControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApisByTrafficControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::RemoveVpcAccessOutcome CloudAPIClient::removeVpcAccess(const RemoveVpcAccessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveVpcAccessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveVpcAccessOutcome(RemoveVpcAccessResult(outcome.result())); + else + return RemoveVpcAccessOutcome(outcome.error()); +} + +void CloudAPIClient::removeVpcAccessAsync(const RemoveVpcAccessRequest& request, const RemoveVpcAccessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeVpcAccess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::RemoveVpcAccessOutcomeCallable CloudAPIClient::removeVpcAccessCallable(const RemoveVpcAccessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeVpcAccess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ResetAppCodeOutcome CloudAPIClient::resetAppCode(const ResetAppCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAppCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAppCodeOutcome(ResetAppCodeResult(outcome.result())); + else + return ResetAppCodeOutcome(outcome.error()); +} + +void CloudAPIClient::resetAppCodeAsync(const ResetAppCodeRequest& request, const ResetAppCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAppCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ResetAppCodeOutcomeCallable CloudAPIClient::resetAppCodeCallable(const ResetAppCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAppCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifyIpControlOutcome CloudAPIClient::modifyIpControl(const ModifyIpControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIpControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIpControlOutcome(ModifyIpControlResult(outcome.result())); + else + return ModifyIpControlOutcome(outcome.error()); +} + +void CloudAPIClient::modifyIpControlAsync(const ModifyIpControlRequest& request, const ModifyIpControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIpControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifyIpControlOutcomeCallable CloudAPIClient::modifyIpControlCallable(const ModifyIpControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIpControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeAppsOutcome CloudAPIClient::describeApps(const DescribeAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppsOutcome(DescribeAppsResult(outcome.result())); + else + return DescribeAppsOutcome(outcome.error()); +} + +void CloudAPIClient::describeAppsAsync(const DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeAppsOutcomeCallable CloudAPIClient::describeAppsCallable(const DescribeAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteApiStageVariableOutcome CloudAPIClient::deleteApiStageVariable(const DeleteApiStageVariableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApiStageVariableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApiStageVariableOutcome(DeleteApiStageVariableResult(outcome.result())); + else + return DeleteApiStageVariableOutcome(outcome.error()); +} + +void CloudAPIClient::deleteApiStageVariableAsync(const DeleteApiStageVariableRequest& request, const DeleteApiStageVariableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApiStageVariable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteApiStageVariableOutcomeCallable CloudAPIClient::deleteApiStageVariableCallable(const DeleteApiStageVariableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApiStageVariable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ListTagResourcesOutcome CloudAPIClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void CloudAPIClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ListTagResourcesOutcomeCallable CloudAPIClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifySignatureOutcome CloudAPIClient::modifySignature(const ModifySignatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySignatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySignatureOutcome(ModifySignatureResult(outcome.result())); + else + return ModifySignatureOutcome(outcome.error()); +} + +void CloudAPIClient::modifySignatureAsync(const ModifySignatureRequest& request, const ModifySignatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySignature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifySignatureOutcomeCallable CloudAPIClient::modifySignatureCallable(const ModifySignatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySignature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::RemoveSignatureApisOutcome CloudAPIClient::removeSignatureApis(const RemoveSignatureApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSignatureApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSignatureApisOutcome(RemoveSignatureApisResult(outcome.result())); + else + return RemoveSignatureApisOutcome(outcome.error()); +} + +void CloudAPIClient::removeSignatureApisAsync(const RemoveSignatureApisRequest& request, const RemoveSignatureApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSignatureApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::RemoveSignatureApisOutcomeCallable CloudAPIClient::removeSignatureApisCallable(const RemoveSignatureApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSignatureApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::AddIpControlPolicyItemOutcome CloudAPIClient::addIpControlPolicyItem(const AddIpControlPolicyItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddIpControlPolicyItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddIpControlPolicyItemOutcome(AddIpControlPolicyItemResult(outcome.result())); + else + return AddIpControlPolicyItemOutcome(outcome.error()); +} + +void CloudAPIClient::addIpControlPolicyItemAsync(const AddIpControlPolicyItemRequest& request, const AddIpControlPolicyItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addIpControlPolicyItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::AddIpControlPolicyItemOutcomeCallable CloudAPIClient::addIpControlPolicyItemCallable(const AddIpControlPolicyItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addIpControlPolicyItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeDomainOutcome CloudAPIClient::describeDomain(const DescribeDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainOutcome(DescribeDomainResult(outcome.result())); + else + return DescribeDomainOutcome(outcome.error()); +} + +void CloudAPIClient::describeDomainAsync(const DescribeDomainRequest& request, const DescribeDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeDomainOutcomeCallable CloudAPIClient::describeDomainCallable(const DescribeDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiQpsDataOutcome CloudAPIClient::describeApiQpsData(const DescribeApiQpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiQpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiQpsDataOutcome(DescribeApiQpsDataResult(outcome.result())); + else + return DescribeApiQpsDataOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiQpsDataAsync(const DescribeApiQpsDataRequest& request, const DescribeApiQpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiQpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiQpsDataOutcomeCallable CloudAPIClient::describeApiQpsDataCallable(const DescribeApiQpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiQpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeAppSecurityOutcome CloudAPIClient::describeAppSecurity(const DescribeAppSecurityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppSecurityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppSecurityOutcome(DescribeAppSecurityResult(outcome.result())); + else + return DescribeAppSecurityOutcome(outcome.error()); +} + +void CloudAPIClient::describeAppSecurityAsync(const DescribeAppSecurityRequest& request, const DescribeAppSecurityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppSecurity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeAppSecurityOutcomeCallable CloudAPIClient::describeAppSecurityCallable(const DescribeAppSecurityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppSecurity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SdkGenerateOutcome CloudAPIClient::sdkGenerate(const SdkGenerateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SdkGenerateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SdkGenerateOutcome(SdkGenerateResult(outcome.result())); + else + return SdkGenerateOutcome(outcome.error()); +} + +void CloudAPIClient::sdkGenerateAsync(const SdkGenerateRequest& request, const SdkGenerateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sdkGenerate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SdkGenerateOutcomeCallable CloudAPIClient::sdkGenerateCallable(const SdkGenerateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sdkGenerate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeIpControlsOutcome CloudAPIClient::describeIpControls(const DescribeIpControlsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpControlsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpControlsOutcome(DescribeIpControlsResult(outcome.result())); + else + return DescribeIpControlsOutcome(outcome.error()); +} + +void CloudAPIClient::describeIpControlsAsync(const DescribeIpControlsRequest& request, const DescribeIpControlsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpControls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeIpControlsOutcomeCallable CloudAPIClient::describeIpControlsCallable(const DescribeIpControlsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpControls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ImportSwaggerOutcome CloudAPIClient::importSwagger(const ImportSwaggerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportSwaggerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportSwaggerOutcome(ImportSwaggerResult(outcome.result())); + else + return ImportSwaggerOutcome(outcome.error()); +} + +void CloudAPIClient::importSwaggerAsync(const ImportSwaggerRequest& request, const ImportSwaggerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importSwagger(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ImportSwaggerOutcomeCallable CloudAPIClient::importSwaggerCallable(const ImportSwaggerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importSwagger(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApisByAppOutcome CloudAPIClient::describeApisByApp(const DescribeApisByAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApisByAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApisByAppOutcome(DescribeApisByAppResult(outcome.result())); + else + return DescribeApisByAppOutcome(outcome.error()); +} + +void CloudAPIClient::describeApisByAppAsync(const DescribeApisByAppRequest& request, const DescribeApisByAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApisByApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApisByAppOutcomeCallable CloudAPIClient::describeApisByAppCallable(const DescribeApisByAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApisByApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifyLogConfigOutcome CloudAPIClient::modifyLogConfig(const ModifyLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLogConfigOutcome(ModifyLogConfigResult(outcome.result())); + else + return ModifyLogConfigOutcome(outcome.error()); +} + +void CloudAPIClient::modifyLogConfigAsync(const ModifyLogConfigRequest& request, const ModifyLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifyLogConfigOutcomeCallable CloudAPIClient::modifyLogConfigCallable(const ModifyLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApisByIpControlOutcome CloudAPIClient::describeApisByIpControl(const DescribeApisByIpControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApisByIpControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApisByIpControlOutcome(DescribeApisByIpControlResult(outcome.result())); + else + return DescribeApisByIpControlOutcome(outcome.error()); +} + +void CloudAPIClient::describeApisByIpControlAsync(const DescribeApisByIpControlRequest& request, const DescribeApisByIpControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApisByIpControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApisByIpControlOutcomeCallable CloudAPIClient::describeApisByIpControlCallable(const DescribeApisByIpControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApisByIpControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeHistoryApisOutcome CloudAPIClient::describeHistoryApis(const DescribeHistoryApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHistoryApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHistoryApisOutcome(DescribeHistoryApisResult(outcome.result())); + else + return DescribeHistoryApisOutcome(outcome.error()); +} + +void CloudAPIClient::describeHistoryApisAsync(const DescribeHistoryApisRequest& request, const DescribeHistoryApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHistoryApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeHistoryApisOutcomeCallable CloudAPIClient::describeHistoryApisCallable(const DescribeHistoryApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHistoryApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeDeployedApiOutcome CloudAPIClient::describeDeployedApi(const DescribeDeployedApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeployedApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeployedApiOutcome(DescribeDeployedApiResult(outcome.result())); + else + return DescribeDeployedApiOutcome(outcome.error()); +} + +void CloudAPIClient::describeDeployedApiAsync(const DescribeDeployedApiRequest& request, const DescribeDeployedApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeployedApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeDeployedApiOutcomeCallable CloudAPIClient::describeDeployedApiCallable(const DescribeDeployedApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeployedApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiIpControlsOutcome CloudAPIClient::describeApiIpControls(const DescribeApiIpControlsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiIpControlsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiIpControlsOutcome(DescribeApiIpControlsResult(outcome.result())); + else + return DescribeApiIpControlsOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiIpControlsAsync(const DescribeApiIpControlsRequest& request, const DescribeApiIpControlsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiIpControls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiIpControlsOutcomeCallable CloudAPIClient::describeApiIpControlsCallable(const DescribeApiIpControlsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiIpControls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApisBySignatureOutcome CloudAPIClient::describeApisBySignature(const DescribeApisBySignatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApisBySignatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApisBySignatureOutcome(DescribeApisBySignatureResult(outcome.result())); + else + return DescribeApisBySignatureOutcome(outcome.error()); +} + +void CloudAPIClient::describeApisBySignatureAsync(const DescribeApisBySignatureRequest& request, const DescribeApisBySignatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApisBySignature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApisBySignatureOutcomeCallable CloudAPIClient::describeApisBySignatureCallable(const DescribeApisBySignatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApisBySignature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateIpControlOutcome CloudAPIClient::createIpControl(const CreateIpControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIpControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIpControlOutcome(CreateIpControlResult(outcome.result())); + else + return CreateIpControlOutcome(outcome.error()); +} + +void CloudAPIClient::createIpControlAsync(const CreateIpControlRequest& request, const CreateIpControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIpControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateIpControlOutcomeCallable CloudAPIClient::createIpControlCallable(const CreateIpControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIpControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetVpcAccessOutcome CloudAPIClient::setVpcAccess(const SetVpcAccessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetVpcAccessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetVpcAccessOutcome(SetVpcAccessResult(outcome.result())); + else + return SetVpcAccessOutcome(outcome.error()); +} + +void CloudAPIClient::setVpcAccessAsync(const SetVpcAccessRequest& request, const SetVpcAccessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setVpcAccess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetVpcAccessOutcomeCallable CloudAPIClient::setVpcAccessCallable(const SetVpcAccessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setVpcAccess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::RemoveApisAuthoritiesOutcome CloudAPIClient::removeApisAuthorities(const RemoveApisAuthoritiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveApisAuthoritiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveApisAuthoritiesOutcome(RemoveApisAuthoritiesResult(outcome.result())); + else + return RemoveApisAuthoritiesOutcome(outcome.error()); +} + +void CloudAPIClient::removeApisAuthoritiesAsync(const RemoveApisAuthoritiesRequest& request, const RemoveApisAuthoritiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeApisAuthorities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::RemoveApisAuthoritiesOutcomeCallable CloudAPIClient::removeApisAuthoritiesCallable(const RemoveApisAuthoritiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeApisAuthorities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateSignatureOutcome CloudAPIClient::createSignature(const CreateSignatureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSignatureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSignatureOutcome(CreateSignatureResult(outcome.result())); + else + return CreateSignatureOutcome(outcome.error()); +} + +void CloudAPIClient::createSignatureAsync(const CreateSignatureRequest& request, const CreateSignatureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSignature(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateSignatureOutcomeCallable CloudAPIClient::createSignatureCallable(const CreateSignatureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSignature(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifyApiOutcome CloudAPIClient::modifyApi(const ModifyApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyApiOutcome(ModifyApiResult(outcome.result())); + else + return ModifyApiOutcome(outcome.error()); +} + +void CloudAPIClient::modifyApiAsync(const ModifyApiRequest& request, const ModifyApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifyApiOutcomeCallable CloudAPIClient::modifyApiCallable(const ModifyApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeSignaturesByApiOutcome CloudAPIClient::describeSignaturesByApi(const DescribeSignaturesByApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSignaturesByApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSignaturesByApiOutcome(DescribeSignaturesByApiResult(outcome.result())); + else + return DescribeSignaturesByApiOutcome(outcome.error()); +} + +void CloudAPIClient::describeSignaturesByApiAsync(const DescribeSignaturesByApiRequest& request, const DescribeSignaturesByApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSignaturesByApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeSignaturesByApiOutcomeCallable CloudAPIClient::describeSignaturesByApiCallable(const DescribeSignaturesByApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSignaturesByApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ResetAppSecretOutcome CloudAPIClient::resetAppSecret(const ResetAppSecretRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAppSecretOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAppSecretOutcome(ResetAppSecretResult(outcome.result())); + else + return ResetAppSecretOutcome(outcome.error()); +} + +void CloudAPIClient::resetAppSecretAsync(const ResetAppSecretRequest& request, const ResetAppSecretAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAppSecret(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ResetAppSecretOutcomeCallable CloudAPIClient::resetAppSecretCallable(const ResetAppSecretRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAppSecret(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeployApiOutcome CloudAPIClient::deployApi(const DeployApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployApiOutcome(DeployApiResult(outcome.result())); + else + return DeployApiOutcome(outcome.error()); +} + +void CloudAPIClient::deployApiAsync(const DeployApiRequest& request, const DeployApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeployApiOutcomeCallable CloudAPIClient::deployApiCallable(const DeployApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::AddTrafficSpecialControlOutcome CloudAPIClient::addTrafficSpecialControl(const AddTrafficSpecialControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddTrafficSpecialControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddTrafficSpecialControlOutcome(AddTrafficSpecialControlResult(outcome.result())); + else + return AddTrafficSpecialControlOutcome(outcome.error()); +} + +void CloudAPIClient::addTrafficSpecialControlAsync(const AddTrafficSpecialControlRequest& request, const AddTrafficSpecialControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addTrafficSpecialControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::AddTrafficSpecialControlOutcomeCallable CloudAPIClient::addTrafficSpecialControlCallable(const AddTrafficSpecialControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addTrafficSpecialControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifyAppOutcome CloudAPIClient::modifyApp(const ModifyAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAppOutcome(ModifyAppResult(outcome.result())); + else + return ModifyAppOutcome(outcome.error()); +} + +void CloudAPIClient::modifyAppAsync(const ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifyAppOutcomeCallable CloudAPIClient::modifyAppCallable(const ModifyAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetDomainWebSocketStatusOutcome CloudAPIClient::setDomainWebSocketStatus(const SetDomainWebSocketStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDomainWebSocketStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDomainWebSocketStatusOutcome(SetDomainWebSocketStatusResult(outcome.result())); + else + return SetDomainWebSocketStatusOutcome(outcome.error()); +} + +void CloudAPIClient::setDomainWebSocketStatusAsync(const SetDomainWebSocketStatusRequest& request, const SetDomainWebSocketStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDomainWebSocketStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetDomainWebSocketStatusOutcomeCallable CloudAPIClient::setDomainWebSocketStatusCallable(const SetDomainWebSocketStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDomainWebSocketStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeRegionsOutcome CloudAPIClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void CloudAPIClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeRegionsOutcomeCallable CloudAPIClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribePurchasedApisOutcome CloudAPIClient::describePurchasedApis(const DescribePurchasedApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePurchasedApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePurchasedApisOutcome(DescribePurchasedApisResult(outcome.result())); + else + return DescribePurchasedApisOutcome(outcome.error()); +} + +void CloudAPIClient::describePurchasedApisAsync(const DescribePurchasedApisRequest& request, const DescribePurchasedApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePurchasedApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribePurchasedApisOutcomeCallable CloudAPIClient::describePurchasedApisCallable(const DescribePurchasedApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePurchasedApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeTrafficControlsByApiOutcome CloudAPIClient::describeTrafficControlsByApi(const DescribeTrafficControlsByApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTrafficControlsByApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTrafficControlsByApiOutcome(DescribeTrafficControlsByApiResult(outcome.result())); + else + return DescribeTrafficControlsByApiOutcome(outcome.error()); +} + +void CloudAPIClient::describeTrafficControlsByApiAsync(const DescribeTrafficControlsByApiRequest& request, const DescribeTrafficControlsByApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTrafficControlsByApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeTrafficControlsByApiOutcomeCallable CloudAPIClient::describeTrafficControlsByApiCallable(const DescribeTrafficControlsByApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTrafficControlsByApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeDeployedApisOutcome CloudAPIClient::describeDeployedApis(const DescribeDeployedApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeployedApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeployedApisOutcome(DescribeDeployedApisResult(outcome.result())); + else + return DescribeDeployedApisOutcome(outcome.error()); +} + +void CloudAPIClient::describeDeployedApisAsync(const DescribeDeployedApisRequest& request, const DescribeDeployedApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeployedApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeDeployedApisOutcomeCallable CloudAPIClient::describeDeployedApisCallable(const DescribeDeployedApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeployedApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::RemoveAppsAuthoritiesOutcome CloudAPIClient::removeAppsAuthorities(const RemoveAppsAuthoritiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveAppsAuthoritiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveAppsAuthoritiesOutcome(RemoveAppsAuthoritiesResult(outcome.result())); + else + return RemoveAppsAuthoritiesOutcome(outcome.error()); +} + +void CloudAPIClient::removeAppsAuthoritiesAsync(const RemoveAppsAuthoritiesRequest& request, const RemoveAppsAuthoritiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeAppsAuthorities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::RemoveAppsAuthoritiesOutcomeCallable CloudAPIClient::removeAppsAuthoritiesCallable(const RemoveAppsAuthoritiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeAppsAuthorities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiTrafficControlsOutcome CloudAPIClient::describeApiTrafficControls(const DescribeApiTrafficControlsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiTrafficControlsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiTrafficControlsOutcome(DescribeApiTrafficControlsResult(outcome.result())); + else + return DescribeApiTrafficControlsOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiTrafficControlsAsync(const DescribeApiTrafficControlsRequest& request, const DescribeApiTrafficControlsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiTrafficControls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiTrafficControlsOutcomeCallable CloudAPIClient::describeApiTrafficControlsCallable(const DescribeApiTrafficControlsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiTrafficControls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteLogConfigOutcome CloudAPIClient::deleteLogConfig(const DeleteLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLogConfigOutcome(DeleteLogConfigResult(outcome.result())); + else + return DeleteLogConfigOutcome(outcome.error()); +} + +void CloudAPIClient::deleteLogConfigAsync(const DeleteLogConfigRequest& request, const DeleteLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteLogConfigOutcomeCallable CloudAPIClient::deleteLogConfigCallable(const DeleteLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetSignatureApisOutcome CloudAPIClient::setSignatureApis(const SetSignatureApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetSignatureApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetSignatureApisOutcome(SetSignatureApisResult(outcome.result())); + else + return SetSignatureApisOutcome(outcome.error()); +} + +void CloudAPIClient::setSignatureApisAsync(const SetSignatureApisRequest& request, const SetSignatureApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setSignatureApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetSignatureApisOutcomeCallable CloudAPIClient::setSignatureApisCallable(const SetSignatureApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setSignatureApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ReactivateDomainOutcome CloudAPIClient::reactivateDomain(const ReactivateDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReactivateDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReactivateDomainOutcome(ReactivateDomainResult(outcome.result())); + else + return ReactivateDomainOutcome(outcome.error()); +} + +void CloudAPIClient::reactivateDomainAsync(const ReactivateDomainRequest& request, const ReactivateDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reactivateDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ReactivateDomainOutcomeCallable CloudAPIClient::reactivateDomainCallable(const ReactivateDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reactivateDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeAppOutcome CloudAPIClient::describeApp(const DescribeAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppOutcome(DescribeAppResult(outcome.result())); + else + return DescribeAppOutcome(outcome.error()); +} + +void CloudAPIClient::describeAppAsync(const DescribeAppRequest& request, const DescribeAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeAppOutcomeCallable CloudAPIClient::describeAppCallable(const DescribeAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::RemoveIpControlPolicyItemOutcome CloudAPIClient::removeIpControlPolicyItem(const RemoveIpControlPolicyItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveIpControlPolicyItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveIpControlPolicyItemOutcome(RemoveIpControlPolicyItemResult(outcome.result())); + else + return RemoveIpControlPolicyItemOutcome(outcome.error()); +} + +void CloudAPIClient::removeIpControlPolicyItemAsync(const RemoveIpControlPolicyItemRequest& request, const RemoveIpControlPolicyItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeIpControlPolicyItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::RemoveIpControlPolicyItemOutcomeCallable CloudAPIClient::removeIpControlPolicyItemCallable(const RemoveIpControlPolicyItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeIpControlPolicyItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeAuthorizedApisOutcome CloudAPIClient::describeAuthorizedApis(const DescribeAuthorizedApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuthorizedApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuthorizedApisOutcome(DescribeAuthorizedApisResult(outcome.result())); + else + return DescribeAuthorizedApisOutcome(outcome.error()); +} + +void CloudAPIClient::describeAuthorizedApisAsync(const DescribeAuthorizedApisRequest& request, const DescribeAuthorizedApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuthorizedApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeAuthorizedApisOutcomeCallable CloudAPIClient::describeAuthorizedApisCallable(const DescribeAuthorizedApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuthorizedApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifyTrafficControlOutcome CloudAPIClient::modifyTrafficControl(const ModifyTrafficControlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTrafficControlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTrafficControlOutcome(ModifyTrafficControlResult(outcome.result())); + else + return ModifyTrafficControlOutcome(outcome.error()); +} + +void CloudAPIClient::modifyTrafficControlAsync(const ModifyTrafficControlRequest& request, const ModifyTrafficControlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTrafficControl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifyTrafficControlOutcomeCallable CloudAPIClient::modifyTrafficControlCallable(const ModifyTrafficControlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTrafficControl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateLogConfigOutcome CloudAPIClient::createLogConfig(const CreateLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLogConfigOutcome(CreateLogConfigResult(outcome.result())); + else + return CreateLogConfigOutcome(outcome.error()); +} + +void CloudAPIClient::createLogConfigAsync(const CreateLogConfigRequest& request, const CreateLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateLogConfigOutcomeCallable CloudAPIClient::createLogConfigCallable(const CreateLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::CreateApiStageVariableOutcome CloudAPIClient::createApiStageVariable(const CreateApiStageVariableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApiStageVariableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApiStageVariableOutcome(CreateApiStageVariableResult(outcome.result())); + else + return CreateApiStageVariableOutcome(outcome.error()); +} + +void CloudAPIClient::createApiStageVariableAsync(const CreateApiStageVariableRequest& request, const CreateApiStageVariableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApiStageVariable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::CreateApiStageVariableOutcomeCallable CloudAPIClient::createApiStageVariableCallable(const CreateApiStageVariableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApiStageVariable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeIpControlPolicyItemsOutcome CloudAPIClient::describeIpControlPolicyItems(const DescribeIpControlPolicyItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpControlPolicyItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpControlPolicyItemsOutcome(DescribeIpControlPolicyItemsResult(outcome.result())); + else + return DescribeIpControlPolicyItemsOutcome(outcome.error()); +} + +void CloudAPIClient::describeIpControlPolicyItemsAsync(const DescribeIpControlPolicyItemsRequest& request, const DescribeIpControlPolicyItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpControlPolicyItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeIpControlPolicyItemsOutcomeCallable CloudAPIClient::describeIpControlPolicyItemsCallable(const DescribeIpControlPolicyItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpControlPolicyItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiSignaturesOutcome CloudAPIClient::describeApiSignatures(const DescribeApiSignaturesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiSignaturesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiSignaturesOutcome(DescribeApiSignaturesResult(outcome.result())); + else + return DescribeApiSignaturesOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiSignaturesAsync(const DescribeApiSignaturesRequest& request, const DescribeApiSignaturesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApiSignatures(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiSignaturesOutcomeCallable CloudAPIClient::describeApiSignaturesCallable(const DescribeApiSignaturesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApiSignatures(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DeleteDomainOutcome CloudAPIClient::deleteDomain(const DeleteDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDomainOutcome(DeleteDomainResult(outcome.result())); + else + return DeleteDomainOutcome(outcome.error()); +} + +void CloudAPIClient::deleteDomainAsync(const DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DeleteDomainOutcomeCallable CloudAPIClient::deleteDomainCallable(const DeleteDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SetTrafficControlApisOutcome CloudAPIClient::setTrafficControlApis(const SetTrafficControlApisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetTrafficControlApisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetTrafficControlApisOutcome(SetTrafficControlApisResult(outcome.result())); + else + return SetTrafficControlApisOutcome(outcome.error()); +} + +void CloudAPIClient::setTrafficControlApisAsync(const SetTrafficControlApisRequest& request, const SetTrafficControlApisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setTrafficControlApis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SetTrafficControlApisOutcomeCallable CloudAPIClient::setTrafficControlApisCallable(const SetTrafficControlApisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setTrafficControlApis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::SwitchApiOutcome CloudAPIClient::switchApi(const SwitchApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchApiOutcome(SwitchApiResult(outcome.result())); + else + return SwitchApiOutcome(outcome.error()); +} + +void CloudAPIClient::switchApiAsync(const SwitchApiRequest& request, const SwitchApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::SwitchApiOutcomeCallable CloudAPIClient::switchApiCallable(const SwitchApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeVpcAccessesOutcome CloudAPIClient::describeVpcAccesses(const DescribeVpcAccessesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcAccessesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcAccessesOutcome(DescribeVpcAccessesResult(outcome.result())); + else + return DescribeVpcAccessesOutcome(outcome.error()); +} + +void CloudAPIClient::describeVpcAccessesAsync(const DescribeVpcAccessesRequest& request, const DescribeVpcAccessesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcAccesses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeVpcAccessesOutcomeCallable CloudAPIClient::describeVpcAccessesCallable(const DescribeVpcAccessesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcAccesses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::ModifyApiGroupOutcome CloudAPIClient::modifyApiGroup(const ModifyApiGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyApiGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyApiGroupOutcome(ModifyApiGroupResult(outcome.result())); + else + return ModifyApiGroupOutcome(outcome.error()); +} + +void CloudAPIClient::modifyApiGroupAsync(const ModifyApiGroupRequest& request, const ModifyApiGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApiGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::ModifyApiGroupOutcomeCallable CloudAPIClient::modifyApiGroupCallable(const ModifyApiGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApiGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudAPIClient::DescribeApiOutcome CloudAPIClient::describeApi(const DescribeApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApiOutcome(DescribeApiResult(outcome.result())); + else + return DescribeApiOutcome(outcome.error()); +} + +void CloudAPIClient::describeApiAsync(const DescribeApiRequest& request, const DescribeApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudAPIClient::DescribeApiOutcomeCallable CloudAPIClient::describeApiCallable(const DescribeApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/cloudapi/src/model/AbolishApiRequest.cc b/cloudapi/src/model/AbolishApiRequest.cc index 1253df759..33722780c 100644 --- a/cloudapi/src/model/AbolishApiRequest.cc +++ b/cloudapi/src/model/AbolishApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::AbolishApiRequest; - -AbolishApiRequest::AbolishApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "AbolishApi") -{} - -AbolishApiRequest::~AbolishApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::AbolishApiRequest; + +AbolishApiRequest::AbolishApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "AbolishApi") +{} + +AbolishApiRequest::~AbolishApiRequest() +{} + std::string AbolishApiRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/AbolishApiResult.cc b/cloudapi/src/model/AbolishApiResult.cc index 67ea99689..6b6af769f 100644 --- a/cloudapi/src/model/AbolishApiResult.cc +++ b/cloudapi/src/model/AbolishApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -AbolishApiResult::AbolishApiResult() : - ServiceResult() -{} - -AbolishApiResult::AbolishApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AbolishApiResult::~AbolishApiResult() -{} - -void AbolishApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +AbolishApiResult::AbolishApiResult() : + ServiceResult() +{} + +AbolishApiResult::AbolishApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AbolishApiResult::~AbolishApiResult() +{} + +void AbolishApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/AddIpControlPolicyItemRequest.cc b/cloudapi/src/model/AddIpControlPolicyItemRequest.cc index 1d6cf2bb2..67965085c 100644 --- a/cloudapi/src/model/AddIpControlPolicyItemRequest.cc +++ b/cloudapi/src/model/AddIpControlPolicyItemRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::AddIpControlPolicyItemRequest; - -AddIpControlPolicyItemRequest::AddIpControlPolicyItemRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "AddIpControlPolicyItem") -{} - -AddIpControlPolicyItemRequest::~AddIpControlPolicyItemRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::AddIpControlPolicyItemRequest; + +AddIpControlPolicyItemRequest::AddIpControlPolicyItemRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "AddIpControlPolicyItem") +{} + +AddIpControlPolicyItemRequest::~AddIpControlPolicyItemRequest() +{} + std::string AddIpControlPolicyItemRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/AddIpControlPolicyItemResult.cc b/cloudapi/src/model/AddIpControlPolicyItemResult.cc index babba9706..d2c6a5a23 100644 --- a/cloudapi/src/model/AddIpControlPolicyItemResult.cc +++ b/cloudapi/src/model/AddIpControlPolicyItemResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -AddIpControlPolicyItemResult::AddIpControlPolicyItemResult() : - ServiceResult() -{} - -AddIpControlPolicyItemResult::AddIpControlPolicyItemResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddIpControlPolicyItemResult::~AddIpControlPolicyItemResult() -{} - -void AddIpControlPolicyItemResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +AddIpControlPolicyItemResult::AddIpControlPolicyItemResult() : + ServiceResult() +{} + +AddIpControlPolicyItemResult::AddIpControlPolicyItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddIpControlPolicyItemResult::~AddIpControlPolicyItemResult() +{} + +void AddIpControlPolicyItemResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["PolicyItemId"].isNull()) policyItemId_ = value["PolicyItemId"].asString(); - -} - + +} + std::string AddIpControlPolicyItemResult::getPolicyItemId()const { return policyItemId_; diff --git a/cloudapi/src/model/AddTrafficSpecialControlRequest.cc b/cloudapi/src/model/AddTrafficSpecialControlRequest.cc index bb796203a..3a785ffa1 100644 --- a/cloudapi/src/model/AddTrafficSpecialControlRequest.cc +++ b/cloudapi/src/model/AddTrafficSpecialControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::AddTrafficSpecialControlRequest; - -AddTrafficSpecialControlRequest::AddTrafficSpecialControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "AddTrafficSpecialControl") -{} - -AddTrafficSpecialControlRequest::~AddTrafficSpecialControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::AddTrafficSpecialControlRequest; + +AddTrafficSpecialControlRequest::AddTrafficSpecialControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "AddTrafficSpecialControl") +{} + +AddTrafficSpecialControlRequest::~AddTrafficSpecialControlRequest() +{} + std::string AddTrafficSpecialControlRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/AddTrafficSpecialControlResult.cc b/cloudapi/src/model/AddTrafficSpecialControlResult.cc index 8f90e77e9..8180fcb12 100644 --- a/cloudapi/src/model/AddTrafficSpecialControlResult.cc +++ b/cloudapi/src/model/AddTrafficSpecialControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -AddTrafficSpecialControlResult::AddTrafficSpecialControlResult() : - ServiceResult() -{} - -AddTrafficSpecialControlResult::AddTrafficSpecialControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddTrafficSpecialControlResult::~AddTrafficSpecialControlResult() -{} - -void AddTrafficSpecialControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +AddTrafficSpecialControlResult::AddTrafficSpecialControlResult() : + ServiceResult() +{} + +AddTrafficSpecialControlResult::AddTrafficSpecialControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTrafficSpecialControlResult::~AddTrafficSpecialControlResult() +{} + +void AddTrafficSpecialControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/CreateApiGroupRequest.cc b/cloudapi/src/model/CreateApiGroupRequest.cc index e812a722d..c6910aa4c 100644 --- a/cloudapi/src/model/CreateApiGroupRequest.cc +++ b/cloudapi/src/model/CreateApiGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateApiGroupRequest; - -CreateApiGroupRequest::CreateApiGroupRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiGroup") -{} - -CreateApiGroupRequest::~CreateApiGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateApiGroupRequest; + +CreateApiGroupRequest::CreateApiGroupRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiGroup") +{} + +CreateApiGroupRequest::~CreateApiGroupRequest() +{} + std::string CreateApiGroupRequest::getInstanceId()const { return instanceId_; diff --git a/cloudapi/src/model/CreateApiGroupResult.cc b/cloudapi/src/model/CreateApiGroupResult.cc index df06b0cee..b23dc4779 100644 --- a/cloudapi/src/model/CreateApiGroupResult.cc +++ b/cloudapi/src/model/CreateApiGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateApiGroupResult::CreateApiGroupResult() : - ServiceResult() -{} - -CreateApiGroupResult::CreateApiGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateApiGroupResult::~CreateApiGroupResult() -{} - -void CreateApiGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateApiGroupResult::CreateApiGroupResult() : + ServiceResult() +{} + +CreateApiGroupResult::CreateApiGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApiGroupResult::~CreateApiGroupResult() +{} + +void CreateApiGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); if(!value["GroupName"].isNull()) @@ -54,9 +57,9 @@ void CreateApiGroupResult::parse(const std::string &payload) instanceType_ = value["InstanceType"].asString(); if(!value["TagStatus"].isNull()) tagStatus_ = value["TagStatus"].asString() == "true"; - -} - + +} + std::string CreateApiGroupResult::getGroupName()const { return groupName_; diff --git a/cloudapi/src/model/CreateApiRequest.cc b/cloudapi/src/model/CreateApiRequest.cc index 52105fe0c..030b91ebd 100644 --- a/cloudapi/src/model/CreateApiRequest.cc +++ b/cloudapi/src/model/CreateApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateApiRequest; - -CreateApiRequest::CreateApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateApi") -{} - -CreateApiRequest::~CreateApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateApiRequest; + +CreateApiRequest::CreateApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateApi") +{} + +CreateApiRequest::~CreateApiRequest() +{} + std::string CreateApiRequest::getWebSocketApiType()const { return webSocketApiType_; diff --git a/cloudapi/src/model/CreateApiResult.cc b/cloudapi/src/model/CreateApiResult.cc index 0d3c1aea6..ceeb60a2b 100644 --- a/cloudapi/src/model/CreateApiResult.cc +++ b/cloudapi/src/model/CreateApiResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateApiResult::CreateApiResult() : - ServiceResult() -{} - -CreateApiResult::CreateApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateApiResult::~CreateApiResult() -{} - -void CreateApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateApiResult::CreateApiResult() : + ServiceResult() +{} + +CreateApiResult::CreateApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApiResult::~CreateApiResult() +{} + +void CreateApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ApiId"].isNull()) apiId_ = value["ApiId"].asString(); - -} - + +} + std::string CreateApiResult::getApiId()const { return apiId_; diff --git a/cloudapi/src/model/CreateApiStageVariableRequest.cc b/cloudapi/src/model/CreateApiStageVariableRequest.cc index a4ec11084..4000e6fa3 100644 --- a/cloudapi/src/model/CreateApiStageVariableRequest.cc +++ b/cloudapi/src/model/CreateApiStageVariableRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateApiStageVariableRequest; - -CreateApiStageVariableRequest::CreateApiStageVariableRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiStageVariable") -{} - -CreateApiStageVariableRequest::~CreateApiStageVariableRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateApiStageVariableRequest; + +CreateApiStageVariableRequest::CreateApiStageVariableRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateApiStageVariable") +{} + +CreateApiStageVariableRequest::~CreateApiStageVariableRequest() +{} + bool CreateApiStageVariableRequest::getSupportRoute()const { return supportRoute_; diff --git a/cloudapi/src/model/CreateApiStageVariableResult.cc b/cloudapi/src/model/CreateApiStageVariableResult.cc index 4db6d3d9d..92be43e80 100644 --- a/cloudapi/src/model/CreateApiStageVariableResult.cc +++ b/cloudapi/src/model/CreateApiStageVariableResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateApiStageVariableResult::CreateApiStageVariableResult() : - ServiceResult() -{} - -CreateApiStageVariableResult::CreateApiStageVariableResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateApiStageVariableResult::~CreateApiStageVariableResult() -{} - -void CreateApiStageVariableResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateApiStageVariableResult::CreateApiStageVariableResult() : + ServiceResult() +{} + +CreateApiStageVariableResult::CreateApiStageVariableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApiStageVariableResult::~CreateApiStageVariableResult() +{} + +void CreateApiStageVariableResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/CreateAppRequest.cc b/cloudapi/src/model/CreateAppRequest.cc index 80f2f7c06..698839489 100644 --- a/cloudapi/src/model/CreateAppRequest.cc +++ b/cloudapi/src/model/CreateAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateAppRequest; - -CreateAppRequest::CreateAppRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateApp") -{} - -CreateAppRequest::~CreateAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateAppRequest; + +CreateAppRequest::CreateAppRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateApp") +{} + +CreateAppRequest::~CreateAppRequest() +{} + std::string CreateAppRequest::getAppName()const { return appName_; diff --git a/cloudapi/src/model/CreateAppResult.cc b/cloudapi/src/model/CreateAppResult.cc index f04d25b88..58daee86c 100644 --- a/cloudapi/src/model/CreateAppResult.cc +++ b/cloudapi/src/model/CreateAppResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateAppResult::CreateAppResult() : - ServiceResult() -{} - -CreateAppResult::CreateAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAppResult::~CreateAppResult() -{} - -void CreateAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateAppResult::CreateAppResult() : + ServiceResult() +{} + +CreateAppResult::CreateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppResult::~CreateAppResult() +{} + +void CreateAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AppId"].isNull()) appId_ = std::stol(value["AppId"].asString()); if(!value["TagStatus"].isNull()) tagStatus_ = value["TagStatus"].asString() == "true"; - -} - + +} + long CreateAppResult::getAppId()const { return appId_; diff --git a/cloudapi/src/model/CreateIntranetDomainRequest.cc b/cloudapi/src/model/CreateIntranetDomainRequest.cc index 282c8d309..9a9f1d43c 100644 --- a/cloudapi/src/model/CreateIntranetDomainRequest.cc +++ b/cloudapi/src/model/CreateIntranetDomainRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateIntranetDomainRequest; - -CreateIntranetDomainRequest::CreateIntranetDomainRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateIntranetDomain") -{} - -CreateIntranetDomainRequest::~CreateIntranetDomainRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateIntranetDomainRequest; + +CreateIntranetDomainRequest::CreateIntranetDomainRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateIntranetDomain") +{} + +CreateIntranetDomainRequest::~CreateIntranetDomainRequest() +{} + bool CreateIntranetDomainRequest::getDeleteInternetDomain()const { return deleteInternetDomain_; diff --git a/cloudapi/src/model/CreateIntranetDomainResult.cc b/cloudapi/src/model/CreateIntranetDomainResult.cc index 5e3159f78..ee24cacb1 100644 --- a/cloudapi/src/model/CreateIntranetDomainResult.cc +++ b/cloudapi/src/model/CreateIntranetDomainResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateIntranetDomainResult::CreateIntranetDomainResult() : - ServiceResult() -{} - -CreateIntranetDomainResult::CreateIntranetDomainResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateIntranetDomainResult::~CreateIntranetDomainResult() -{} - -void CreateIntranetDomainResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateIntranetDomainResult::CreateIntranetDomainResult() : + ServiceResult() +{} + +CreateIntranetDomainResult::CreateIntranetDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIntranetDomainResult::~CreateIntranetDomainResult() +{} + +void CreateIntranetDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); - -} - + +} + std::string CreateIntranetDomainResult::getDomainName()const { return domainName_; diff --git a/cloudapi/src/model/CreateIpControlRequest.cc b/cloudapi/src/model/CreateIpControlRequest.cc index f5cd2628b..e497af959 100644 --- a/cloudapi/src/model/CreateIpControlRequest.cc +++ b/cloudapi/src/model/CreateIpControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateIpControlRequest; - -CreateIpControlRequest::CreateIpControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateIpControl") -{} - -CreateIpControlRequest::~CreateIpControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateIpControlRequest; + +CreateIpControlRequest::CreateIpControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateIpControl") +{} + +CreateIpControlRequest::~CreateIpControlRequest() +{} + std::string CreateIpControlRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/CreateIpControlResult.cc b/cloudapi/src/model/CreateIpControlResult.cc index 1d4195f38..09cc8adbd 100644 --- a/cloudapi/src/model/CreateIpControlResult.cc +++ b/cloudapi/src/model/CreateIpControlResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateIpControlResult::CreateIpControlResult() : - ServiceResult() -{} - -CreateIpControlResult::CreateIpControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateIpControlResult::~CreateIpControlResult() -{} - -void CreateIpControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateIpControlResult::CreateIpControlResult() : + ServiceResult() +{} + +CreateIpControlResult::CreateIpControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIpControlResult::~CreateIpControlResult() +{} + +void CreateIpControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["IpControlId"].isNull()) ipControlId_ = value["IpControlId"].asString(); - -} - + +} + std::string CreateIpControlResult::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/CreateLogConfigRequest.cc b/cloudapi/src/model/CreateLogConfigRequest.cc index ae7cc4bd2..81e3b811f 100644 --- a/cloudapi/src/model/CreateLogConfigRequest.cc +++ b/cloudapi/src/model/CreateLogConfigRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateLogConfigRequest; - -CreateLogConfigRequest::CreateLogConfigRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateLogConfig") -{} - -CreateLogConfigRequest::~CreateLogConfigRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateLogConfigRequest; + +CreateLogConfigRequest::CreateLogConfigRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateLogConfig") +{} + +CreateLogConfigRequest::~CreateLogConfigRequest() +{} + std::string CreateLogConfigRequest::getSlsLogStore()const { return slsLogStore_; diff --git a/cloudapi/src/model/CreateLogConfigResult.cc b/cloudapi/src/model/CreateLogConfigResult.cc index 0af40dfe0..0a038e698 100644 --- a/cloudapi/src/model/CreateLogConfigResult.cc +++ b/cloudapi/src/model/CreateLogConfigResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateLogConfigResult::CreateLogConfigResult() : - ServiceResult() -{} - -CreateLogConfigResult::CreateLogConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateLogConfigResult::~CreateLogConfigResult() -{} - -void CreateLogConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateLogConfigResult::CreateLogConfigResult() : + ServiceResult() +{} + +CreateLogConfigResult::CreateLogConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLogConfigResult::~CreateLogConfigResult() +{} + +void CreateLogConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/CreateSignatureRequest.cc b/cloudapi/src/model/CreateSignatureRequest.cc index 1e7954359..fc7274d07 100644 --- a/cloudapi/src/model/CreateSignatureRequest.cc +++ b/cloudapi/src/model/CreateSignatureRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateSignatureRequest; - -CreateSignatureRequest::CreateSignatureRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateSignature") -{} - -CreateSignatureRequest::~CreateSignatureRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateSignatureRequest; + +CreateSignatureRequest::CreateSignatureRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateSignature") +{} + +CreateSignatureRequest::~CreateSignatureRequest() +{} + std::string CreateSignatureRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/CreateSignatureResult.cc b/cloudapi/src/model/CreateSignatureResult.cc index 601f43632..f088c5a2e 100644 --- a/cloudapi/src/model/CreateSignatureResult.cc +++ b/cloudapi/src/model/CreateSignatureResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateSignatureResult::CreateSignatureResult() : - ServiceResult() -{} - -CreateSignatureResult::CreateSignatureResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSignatureResult::~CreateSignatureResult() -{} - -void CreateSignatureResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateSignatureResult::CreateSignatureResult() : + ServiceResult() +{} + +CreateSignatureResult::CreateSignatureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSignatureResult::~CreateSignatureResult() +{} + +void CreateSignatureResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SignatureId"].isNull()) signatureId_ = value["SignatureId"].asString(); if(!value["SignatureName"].isNull()) signatureName_ = value["SignatureName"].asString(); - -} - + +} + std::string CreateSignatureResult::getSignatureId()const { return signatureId_; diff --git a/cloudapi/src/model/CreateTrafficControlRequest.cc b/cloudapi/src/model/CreateTrafficControlRequest.cc index 35402e2ba..e8959f6d0 100644 --- a/cloudapi/src/model/CreateTrafficControlRequest.cc +++ b/cloudapi/src/model/CreateTrafficControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateTrafficControlRequest; - -CreateTrafficControlRequest::CreateTrafficControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "CreateTrafficControl") -{} - -CreateTrafficControlRequest::~CreateTrafficControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::CreateTrafficControlRequest; + +CreateTrafficControlRequest::CreateTrafficControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "CreateTrafficControl") +{} + +CreateTrafficControlRequest::~CreateTrafficControlRequest() +{} + int CreateTrafficControlRequest::getApiDefault()const { return apiDefault_; diff --git a/cloudapi/src/model/CreateTrafficControlResult.cc b/cloudapi/src/model/CreateTrafficControlResult.cc index cbf7149ca..96262ad81 100644 --- a/cloudapi/src/model/CreateTrafficControlResult.cc +++ b/cloudapi/src/model/CreateTrafficControlResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -CreateTrafficControlResult::CreateTrafficControlResult() : - ServiceResult() -{} - -CreateTrafficControlResult::CreateTrafficControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateTrafficControlResult::~CreateTrafficControlResult() -{} - -void CreateTrafficControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +CreateTrafficControlResult::CreateTrafficControlResult() : + ServiceResult() +{} + +CreateTrafficControlResult::CreateTrafficControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrafficControlResult::~CreateTrafficControlResult() +{} + +void CreateTrafficControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TrafficControlId"].isNull()) trafficControlId_ = value["TrafficControlId"].asString(); - -} - + +} + std::string CreateTrafficControlResult::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/DeleteAllTrafficSpecialControlRequest.cc b/cloudapi/src/model/DeleteAllTrafficSpecialControlRequest.cc index fcdaa9468..400705c04 100644 --- a/cloudapi/src/model/DeleteAllTrafficSpecialControlRequest.cc +++ b/cloudapi/src/model/DeleteAllTrafficSpecialControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteAllTrafficSpecialControlRequest; - -DeleteAllTrafficSpecialControlRequest::DeleteAllTrafficSpecialControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteAllTrafficSpecialControl") -{} - -DeleteAllTrafficSpecialControlRequest::~DeleteAllTrafficSpecialControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteAllTrafficSpecialControlRequest; + +DeleteAllTrafficSpecialControlRequest::DeleteAllTrafficSpecialControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteAllTrafficSpecialControl") +{} + +DeleteAllTrafficSpecialControlRequest::~DeleteAllTrafficSpecialControlRequest() +{} + std::string DeleteAllTrafficSpecialControlRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/DeleteAllTrafficSpecialControlResult.cc b/cloudapi/src/model/DeleteAllTrafficSpecialControlResult.cc index 61e648dd5..4eb38f940 100644 --- a/cloudapi/src/model/DeleteAllTrafficSpecialControlResult.cc +++ b/cloudapi/src/model/DeleteAllTrafficSpecialControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteAllTrafficSpecialControlResult::DeleteAllTrafficSpecialControlResult() : - ServiceResult() -{} - -DeleteAllTrafficSpecialControlResult::DeleteAllTrafficSpecialControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAllTrafficSpecialControlResult::~DeleteAllTrafficSpecialControlResult() -{} - -void DeleteAllTrafficSpecialControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteAllTrafficSpecialControlResult::DeleteAllTrafficSpecialControlResult() : + ServiceResult() +{} + +DeleteAllTrafficSpecialControlResult::DeleteAllTrafficSpecialControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAllTrafficSpecialControlResult::~DeleteAllTrafficSpecialControlResult() +{} + +void DeleteAllTrafficSpecialControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteApiGroupRequest.cc b/cloudapi/src/model/DeleteApiGroupRequest.cc index 8a7b9c435..58b9dc4b1 100644 --- a/cloudapi/src/model/DeleteApiGroupRequest.cc +++ b/cloudapi/src/model/DeleteApiGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteApiGroupRequest; - -DeleteApiGroupRequest::DeleteApiGroupRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiGroup") -{} - -DeleteApiGroupRequest::~DeleteApiGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteApiGroupRequest; + +DeleteApiGroupRequest::DeleteApiGroupRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiGroup") +{} + +DeleteApiGroupRequest::~DeleteApiGroupRequest() +{} + std::string DeleteApiGroupRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DeleteApiGroupResult.cc b/cloudapi/src/model/DeleteApiGroupResult.cc index aa9f10ac0..cc5db747e 100644 --- a/cloudapi/src/model/DeleteApiGroupResult.cc +++ b/cloudapi/src/model/DeleteApiGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteApiGroupResult::DeleteApiGroupResult() : - ServiceResult() -{} - -DeleteApiGroupResult::DeleteApiGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteApiGroupResult::~DeleteApiGroupResult() -{} - -void DeleteApiGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteApiGroupResult::DeleteApiGroupResult() : + ServiceResult() +{} + +DeleteApiGroupResult::DeleteApiGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApiGroupResult::~DeleteApiGroupResult() +{} + +void DeleteApiGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteApiRequest.cc b/cloudapi/src/model/DeleteApiRequest.cc index d266504f9..202171799 100644 --- a/cloudapi/src/model/DeleteApiRequest.cc +++ b/cloudapi/src/model/DeleteApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteApiRequest; - -DeleteApiRequest::DeleteApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApi") -{} - -DeleteApiRequest::~DeleteApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteApiRequest; + +DeleteApiRequest::DeleteApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApi") +{} + +DeleteApiRequest::~DeleteApiRequest() +{} + std::string DeleteApiRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DeleteApiResult.cc b/cloudapi/src/model/DeleteApiResult.cc index e57a81eaa..0102aca67 100644 --- a/cloudapi/src/model/DeleteApiResult.cc +++ b/cloudapi/src/model/DeleteApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteApiResult::DeleteApiResult() : - ServiceResult() -{} - -DeleteApiResult::DeleteApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteApiResult::~DeleteApiResult() -{} - -void DeleteApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteApiResult::DeleteApiResult() : + ServiceResult() +{} + +DeleteApiResult::DeleteApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApiResult::~DeleteApiResult() +{} + +void DeleteApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteApiStageVariableRequest.cc b/cloudapi/src/model/DeleteApiStageVariableRequest.cc index 712397831..3c8938fe2 100644 --- a/cloudapi/src/model/DeleteApiStageVariableRequest.cc +++ b/cloudapi/src/model/DeleteApiStageVariableRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteApiStageVariableRequest; - -DeleteApiStageVariableRequest::DeleteApiStageVariableRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiStageVariable") -{} - -DeleteApiStageVariableRequest::~DeleteApiStageVariableRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteApiStageVariableRequest; + +DeleteApiStageVariableRequest::DeleteApiStageVariableRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApiStageVariable") +{} + +DeleteApiStageVariableRequest::~DeleteApiStageVariableRequest() +{} + std::string DeleteApiStageVariableRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DeleteApiStageVariableResult.cc b/cloudapi/src/model/DeleteApiStageVariableResult.cc index f1daf6fbd..15fb27f70 100644 --- a/cloudapi/src/model/DeleteApiStageVariableResult.cc +++ b/cloudapi/src/model/DeleteApiStageVariableResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteApiStageVariableResult::DeleteApiStageVariableResult() : - ServiceResult() -{} - -DeleteApiStageVariableResult::DeleteApiStageVariableResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteApiStageVariableResult::~DeleteApiStageVariableResult() -{} - -void DeleteApiStageVariableResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteApiStageVariableResult::DeleteApiStageVariableResult() : + ServiceResult() +{} + +DeleteApiStageVariableResult::DeleteApiStageVariableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApiStageVariableResult::~DeleteApiStageVariableResult() +{} + +void DeleteApiStageVariableResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteAppRequest.cc b/cloudapi/src/model/DeleteAppRequest.cc index 53a56aa51..3b91f626d 100644 --- a/cloudapi/src/model/DeleteAppRequest.cc +++ b/cloudapi/src/model/DeleteAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteAppRequest; - -DeleteAppRequest::DeleteAppRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApp") -{} - -DeleteAppRequest::~DeleteAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteAppRequest; + +DeleteAppRequest::DeleteAppRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApp") +{} + +DeleteAppRequest::~DeleteAppRequest() +{} + std::string DeleteAppRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DeleteAppResult.cc b/cloudapi/src/model/DeleteAppResult.cc index 6254f0e1e..d73597360 100644 --- a/cloudapi/src/model/DeleteAppResult.cc +++ b/cloudapi/src/model/DeleteAppResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteAppResult::DeleteAppResult() : - ServiceResult() -{} - -DeleteAppResult::DeleteAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAppResult::~DeleteAppResult() -{} - -void DeleteAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteAppResult::DeleteAppResult() : + ServiceResult() +{} + +DeleteAppResult::DeleteAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppResult::~DeleteAppResult() +{} + +void DeleteAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteDomainCertificateRequest.cc b/cloudapi/src/model/DeleteDomainCertificateRequest.cc index a74a9a084..fda899f5c 100644 --- a/cloudapi/src/model/DeleteDomainCertificateRequest.cc +++ b/cloudapi/src/model/DeleteDomainCertificateRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteDomainCertificateRequest; - -DeleteDomainCertificateRequest::DeleteDomainCertificateRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomainCertificate") -{} - -DeleteDomainCertificateRequest::~DeleteDomainCertificateRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteDomainCertificateRequest; + +DeleteDomainCertificateRequest::DeleteDomainCertificateRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomainCertificate") +{} + +DeleteDomainCertificateRequest::~DeleteDomainCertificateRequest() +{} + std::string DeleteDomainCertificateRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DeleteDomainCertificateResult.cc b/cloudapi/src/model/DeleteDomainCertificateResult.cc index f39d87749..c5fa5090c 100644 --- a/cloudapi/src/model/DeleteDomainCertificateResult.cc +++ b/cloudapi/src/model/DeleteDomainCertificateResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteDomainCertificateResult::DeleteDomainCertificateResult() : - ServiceResult() -{} - -DeleteDomainCertificateResult::DeleteDomainCertificateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDomainCertificateResult::~DeleteDomainCertificateResult() -{} - -void DeleteDomainCertificateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteDomainCertificateResult::DeleteDomainCertificateResult() : + ServiceResult() +{} + +DeleteDomainCertificateResult::DeleteDomainCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDomainCertificateResult::~DeleteDomainCertificateResult() +{} + +void DeleteDomainCertificateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteDomainRequest.cc b/cloudapi/src/model/DeleteDomainRequest.cc index 78620606a..6183127fe 100644 --- a/cloudapi/src/model/DeleteDomainRequest.cc +++ b/cloudapi/src/model/DeleteDomainRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteDomainRequest; - -DeleteDomainRequest::DeleteDomainRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomain") -{} - -DeleteDomainRequest::~DeleteDomainRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteDomainRequest; + +DeleteDomainRequest::DeleteDomainRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteDomain") +{} + +DeleteDomainRequest::~DeleteDomainRequest() +{} + std::string DeleteDomainRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DeleteDomainResult.cc b/cloudapi/src/model/DeleteDomainResult.cc index 1ceb18868..be4a51f78 100644 --- a/cloudapi/src/model/DeleteDomainResult.cc +++ b/cloudapi/src/model/DeleteDomainResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteDomainResult::DeleteDomainResult() : - ServiceResult() -{} - -DeleteDomainResult::DeleteDomainResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDomainResult::~DeleteDomainResult() -{} - -void DeleteDomainResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteDomainResult::DeleteDomainResult() : + ServiceResult() +{} + +DeleteDomainResult::DeleteDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDomainResult::~DeleteDomainResult() +{} + +void DeleteDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteIpControlRequest.cc b/cloudapi/src/model/DeleteIpControlRequest.cc index ec9e25ad7..455b813b7 100644 --- a/cloudapi/src/model/DeleteIpControlRequest.cc +++ b/cloudapi/src/model/DeleteIpControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteIpControlRequest; - -DeleteIpControlRequest::DeleteIpControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteIpControl") -{} - -DeleteIpControlRequest::~DeleteIpControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteIpControlRequest; + +DeleteIpControlRequest::DeleteIpControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteIpControl") +{} + +DeleteIpControlRequest::~DeleteIpControlRequest() +{} + std::string DeleteIpControlRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/DeleteIpControlResult.cc b/cloudapi/src/model/DeleteIpControlResult.cc index 671a8ec59..298691e57 100644 --- a/cloudapi/src/model/DeleteIpControlResult.cc +++ b/cloudapi/src/model/DeleteIpControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteIpControlResult::DeleteIpControlResult() : - ServiceResult() -{} - -DeleteIpControlResult::DeleteIpControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteIpControlResult::~DeleteIpControlResult() -{} - -void DeleteIpControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteIpControlResult::DeleteIpControlResult() : + ServiceResult() +{} + +DeleteIpControlResult::DeleteIpControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIpControlResult::~DeleteIpControlResult() +{} + +void DeleteIpControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteLogConfigRequest.cc b/cloudapi/src/model/DeleteLogConfigRequest.cc index d9ba57e32..1067e5274 100644 --- a/cloudapi/src/model/DeleteLogConfigRequest.cc +++ b/cloudapi/src/model/DeleteLogConfigRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteLogConfigRequest; - -DeleteLogConfigRequest::DeleteLogConfigRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteLogConfig") -{} - -DeleteLogConfigRequest::~DeleteLogConfigRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteLogConfigRequest; + +DeleteLogConfigRequest::DeleteLogConfigRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteLogConfig") +{} + +DeleteLogConfigRequest::~DeleteLogConfigRequest() +{} + std::string DeleteLogConfigRequest::getLogType()const { return logType_; diff --git a/cloudapi/src/model/DeleteLogConfigResult.cc b/cloudapi/src/model/DeleteLogConfigResult.cc index f714b072d..efcd63a65 100644 --- a/cloudapi/src/model/DeleteLogConfigResult.cc +++ b/cloudapi/src/model/DeleteLogConfigResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteLogConfigResult::DeleteLogConfigResult() : - ServiceResult() -{} - -DeleteLogConfigResult::DeleteLogConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteLogConfigResult::~DeleteLogConfigResult() -{} - -void DeleteLogConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteLogConfigResult::DeleteLogConfigResult() : + ServiceResult() +{} + +DeleteLogConfigResult::DeleteLogConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLogConfigResult::~DeleteLogConfigResult() +{} + +void DeleteLogConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteSignatureRequest.cc b/cloudapi/src/model/DeleteSignatureRequest.cc index e841c09f3..94d8ddf04 100644 --- a/cloudapi/src/model/DeleteSignatureRequest.cc +++ b/cloudapi/src/model/DeleteSignatureRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteSignatureRequest; - -DeleteSignatureRequest::DeleteSignatureRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteSignature") -{} - -DeleteSignatureRequest::~DeleteSignatureRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteSignatureRequest; + +DeleteSignatureRequest::DeleteSignatureRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteSignature") +{} + +DeleteSignatureRequest::~DeleteSignatureRequest() +{} + std::string DeleteSignatureRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DeleteSignatureResult.cc b/cloudapi/src/model/DeleteSignatureResult.cc index 13833ff1c..f911a5528 100644 --- a/cloudapi/src/model/DeleteSignatureResult.cc +++ b/cloudapi/src/model/DeleteSignatureResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteSignatureResult::DeleteSignatureResult() : - ServiceResult() -{} - -DeleteSignatureResult::DeleteSignatureResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSignatureResult::~DeleteSignatureResult() -{} - -void DeleteSignatureResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteSignatureResult::DeleteSignatureResult() : + ServiceResult() +{} + +DeleteSignatureResult::DeleteSignatureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSignatureResult::~DeleteSignatureResult() +{} + +void DeleteSignatureResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteTrafficControlRequest.cc b/cloudapi/src/model/DeleteTrafficControlRequest.cc index 56a7bc135..5000cb802 100644 --- a/cloudapi/src/model/DeleteTrafficControlRequest.cc +++ b/cloudapi/src/model/DeleteTrafficControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteTrafficControlRequest; - -DeleteTrafficControlRequest::DeleteTrafficControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficControl") -{} - -DeleteTrafficControlRequest::~DeleteTrafficControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteTrafficControlRequest; + +DeleteTrafficControlRequest::DeleteTrafficControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficControl") +{} + +DeleteTrafficControlRequest::~DeleteTrafficControlRequest() +{} + std::string DeleteTrafficControlRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/DeleteTrafficControlResult.cc b/cloudapi/src/model/DeleteTrafficControlResult.cc index 21ebce216..48bbffdac 100644 --- a/cloudapi/src/model/DeleteTrafficControlResult.cc +++ b/cloudapi/src/model/DeleteTrafficControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteTrafficControlResult::DeleteTrafficControlResult() : - ServiceResult() -{} - -DeleteTrafficControlResult::DeleteTrafficControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteTrafficControlResult::~DeleteTrafficControlResult() -{} - -void DeleteTrafficControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteTrafficControlResult::DeleteTrafficControlResult() : + ServiceResult() +{} + +DeleteTrafficControlResult::DeleteTrafficControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTrafficControlResult::~DeleteTrafficControlResult() +{} + +void DeleteTrafficControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeleteTrafficSpecialControlRequest.cc b/cloudapi/src/model/DeleteTrafficSpecialControlRequest.cc index ee11d85a8..dd1dc1b68 100644 --- a/cloudapi/src/model/DeleteTrafficSpecialControlRequest.cc +++ b/cloudapi/src/model/DeleteTrafficSpecialControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteTrafficSpecialControlRequest; - -DeleteTrafficSpecialControlRequest::DeleteTrafficSpecialControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficSpecialControl") -{} - -DeleteTrafficSpecialControlRequest::~DeleteTrafficSpecialControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeleteTrafficSpecialControlRequest; + +DeleteTrafficSpecialControlRequest::DeleteTrafficSpecialControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeleteTrafficSpecialControl") +{} + +DeleteTrafficSpecialControlRequest::~DeleteTrafficSpecialControlRequest() +{} + std::string DeleteTrafficSpecialControlRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/DeleteTrafficSpecialControlResult.cc b/cloudapi/src/model/DeleteTrafficSpecialControlResult.cc index f6fb2f652..327f08b72 100644 --- a/cloudapi/src/model/DeleteTrafficSpecialControlResult.cc +++ b/cloudapi/src/model/DeleteTrafficSpecialControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeleteTrafficSpecialControlResult::DeleteTrafficSpecialControlResult() : - ServiceResult() -{} - -DeleteTrafficSpecialControlResult::DeleteTrafficSpecialControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteTrafficSpecialControlResult::~DeleteTrafficSpecialControlResult() -{} - -void DeleteTrafficSpecialControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeleteTrafficSpecialControlResult::DeleteTrafficSpecialControlResult() : + ServiceResult() +{} + +DeleteTrafficSpecialControlResult::DeleteTrafficSpecialControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTrafficSpecialControlResult::~DeleteTrafficSpecialControlResult() +{} + +void DeleteTrafficSpecialControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DeployApiRequest.cc b/cloudapi/src/model/DeployApiRequest.cc index 48b3e9411..1ee08bcf6 100644 --- a/cloudapi/src/model/DeployApiRequest.cc +++ b/cloudapi/src/model/DeployApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DeployApiRequest; - -DeployApiRequest::DeployApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DeployApi") -{} - -DeployApiRequest::~DeployApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DeployApiRequest; + +DeployApiRequest::DeployApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DeployApi") +{} + +DeployApiRequest::~DeployApiRequest() +{} + std::string DeployApiRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DeployApiResult.cc b/cloudapi/src/model/DeployApiResult.cc index 9c9c61712..8c5aa0c5e 100644 --- a/cloudapi/src/model/DeployApiResult.cc +++ b/cloudapi/src/model/DeployApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DeployApiResult::DeployApiResult() : - ServiceResult() -{} - -DeployApiResult::DeployApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeployApiResult::~DeployApiResult() -{} - -void DeployApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DeployApiResult::DeployApiResult() : + ServiceResult() +{} + +DeployApiResult::DeployApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployApiResult::~DeployApiResult() +{} + +void DeployApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/DescribeApiDocRequest.cc b/cloudapi/src/model/DescribeApiDocRequest.cc index d17eba65c..943ec8cdd 100644 --- a/cloudapi/src/model/DescribeApiDocRequest.cc +++ b/cloudapi/src/model/DescribeApiDocRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiDocRequest; - -DescribeApiDocRequest::DescribeApiDocRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiDoc") -{} - -DescribeApiDocRequest::~DescribeApiDocRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiDocRequest; + +DescribeApiDocRequest::DescribeApiDocRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiDoc") +{} + +DescribeApiDocRequest::~DescribeApiDocRequest() +{} + std::string DescribeApiDocRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeApiDocResult.cc b/cloudapi/src/model/DescribeApiDocResult.cc index de7b8005b..724a3eae0 100644 --- a/cloudapi/src/model/DescribeApiDocResult.cc +++ b/cloudapi/src/model/DescribeApiDocResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiDocResult::DescribeApiDocResult() : - ServiceResult() -{} - -DescribeApiDocResult::DescribeApiDocResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiDocResult::~DescribeApiDocResult() -{} - -void DescribeApiDocResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiDocResult::DescribeApiDocResult() : + ServiceResult() +{} + +DescribeApiDocResult::DescribeApiDocResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiDocResult::~DescribeApiDocResult() +{} + +void DescribeApiDocResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allErrorCodeSamples = value["ErrorCodeSamples"]["ErrorCodeSample"]; for (auto value : allErrorCodeSamples) { @@ -155,9 +158,9 @@ void DescribeApiDocResult::parse(const std::string &payload) forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true"; if(!value["DisableInternet"].isNull()) disableInternet_ = value["DisableInternet"].asString() == "true"; - -} - + +} + std::string DescribeApiDocResult::getGroupName()const { return groupName_; diff --git a/cloudapi/src/model/DescribeApiErrorDataRequest.cc b/cloudapi/src/model/DescribeApiErrorDataRequest.cc index 3612cb819..b16b2a81e 100644 --- a/cloudapi/src/model/DescribeApiErrorDataRequest.cc +++ b/cloudapi/src/model/DescribeApiErrorDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiErrorDataRequest; - -DescribeApiErrorDataRequest::DescribeApiErrorDataRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiErrorData") -{} - -DescribeApiErrorDataRequest::~DescribeApiErrorDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiErrorDataRequest; + +DescribeApiErrorDataRequest::DescribeApiErrorDataRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiErrorData") +{} + +DescribeApiErrorDataRequest::~DescribeApiErrorDataRequest() +{} + std::string DescribeApiErrorDataRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiErrorDataResult.cc b/cloudapi/src/model/DescribeApiErrorDataResult.cc index 3cf364d50..2211b7709 100644 --- a/cloudapi/src/model/DescribeApiErrorDataResult.cc +++ b/cloudapi/src/model/DescribeApiErrorDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiErrorDataResult::DescribeApiErrorDataResult() : - ServiceResult() -{} - -DescribeApiErrorDataResult::DescribeApiErrorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiErrorDataResult::~DescribeApiErrorDataResult() -{} - -void DescribeApiErrorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiErrorDataResult::DescribeApiErrorDataResult() : + ServiceResult() +{} + +DescribeApiErrorDataResult::DescribeApiErrorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiErrorDataResult::~DescribeApiErrorDataResult() +{} + +void DescribeApiErrorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allClientErrors = value["ClientErrors"]["MonitorItem"]; for (auto value : allClientErrors) { @@ -60,9 +63,9 @@ void DescribeApiErrorDataResult::parse(const std::string &payload) serverErrorsObject.itemValue = value["ItemValue"].asString(); serverErrors_.push_back(serverErrorsObject); } - -} - + +} + std::vector DescribeApiErrorDataResult::getClientErrors()const { return clientErrors_; diff --git a/cloudapi/src/model/DescribeApiGroupRequest.cc b/cloudapi/src/model/DescribeApiGroupRequest.cc index 2d8fb171c..a2b24c85d 100644 --- a/cloudapi/src/model/DescribeApiGroupRequest.cc +++ b/cloudapi/src/model/DescribeApiGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiGroupRequest; - -DescribeApiGroupRequest::DescribeApiGroupRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroup") -{} - -DescribeApiGroupRequest::~DescribeApiGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiGroupRequest; + +DescribeApiGroupRequest::DescribeApiGroupRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroup") +{} + +DescribeApiGroupRequest::~DescribeApiGroupRequest() +{} + std::string DescribeApiGroupRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiGroupResult.cc b/cloudapi/src/model/DescribeApiGroupResult.cc index 9599fcfce..60cd79c3d 100644 --- a/cloudapi/src/model/DescribeApiGroupResult.cc +++ b/cloudapi/src/model/DescribeApiGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiGroupResult::DescribeApiGroupResult() : - ServiceResult() -{} - -DescribeApiGroupResult::DescribeApiGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiGroupResult::~DescribeApiGroupResult() -{} - -void DescribeApiGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiGroupResult::DescribeApiGroupResult() : + ServiceResult() +{} + +DescribeApiGroupResult::DescribeApiGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiGroupResult::~DescribeApiGroupResult() +{} + +void DescribeApiGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCustomDomains = value["CustomDomains"]["DomainItem"]; for (auto value : allCustomDomains) { @@ -104,9 +107,9 @@ void DescribeApiGroupResult::parse(const std::string &payload) instanceId_ = value["InstanceId"].asString(); if(!value["HttpsPolicy"].isNull()) httpsPolicy_ = value["HttpsPolicy"].asString(); - -} - + +} + std::string DescribeApiGroupResult::getGroupName()const { return groupName_; diff --git a/cloudapi/src/model/DescribeApiGroupsRequest.cc b/cloudapi/src/model/DescribeApiGroupsRequest.cc index a280ac70f..c5a79d11f 100644 --- a/cloudapi/src/model/DescribeApiGroupsRequest.cc +++ b/cloudapi/src/model/DescribeApiGroupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiGroupsRequest; - -DescribeApiGroupsRequest::DescribeApiGroupsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroups") -{} - -DescribeApiGroupsRequest::~DescribeApiGroupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiGroupsRequest; + +DescribeApiGroupsRequest::DescribeApiGroupsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiGroups") +{} + +DescribeApiGroupsRequest::~DescribeApiGroupsRequest() +{} + std::string DescribeApiGroupsRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiGroupsResult.cc b/cloudapi/src/model/DescribeApiGroupsResult.cc index b60186f36..2627e5e2b 100644 --- a/cloudapi/src/model/DescribeApiGroupsResult.cc +++ b/cloudapi/src/model/DescribeApiGroupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiGroupsResult::DescribeApiGroupsResult() : - ServiceResult() -{} - -DescribeApiGroupsResult::DescribeApiGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiGroupsResult::~DescribeApiGroupsResult() -{} - -void DescribeApiGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiGroupsResult::DescribeApiGroupsResult() : + ServiceResult() +{} + +DescribeApiGroupsResult::DescribeApiGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiGroupsResult::~DescribeApiGroupsResult() +{} + +void DescribeApiGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiGroupAttributes = value["ApiGroupAttributes"]["ApiGroupAttribute"]; for (auto value : allApiGroupAttributes) { @@ -78,9 +81,9 @@ void DescribeApiGroupsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeApiGroupsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeApiHistoriesRequest.cc b/cloudapi/src/model/DescribeApiHistoriesRequest.cc index fe2011cc8..4c6f8e01a 100644 --- a/cloudapi/src/model/DescribeApiHistoriesRequest.cc +++ b/cloudapi/src/model/DescribeApiHistoriesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiHistoriesRequest; - -DescribeApiHistoriesRequest::DescribeApiHistoriesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistories") -{} - -DescribeApiHistoriesRequest::~DescribeApiHistoriesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiHistoriesRequest; + +DescribeApiHistoriesRequest::DescribeApiHistoriesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistories") +{} + +DescribeApiHistoriesRequest::~DescribeApiHistoriesRequest() +{} + std::string DescribeApiHistoriesRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeApiHistoriesResult.cc b/cloudapi/src/model/DescribeApiHistoriesResult.cc index 89f39f88f..b7c92d854 100644 --- a/cloudapi/src/model/DescribeApiHistoriesResult.cc +++ b/cloudapi/src/model/DescribeApiHistoriesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiHistoriesResult::DescribeApiHistoriesResult() : - ServiceResult() -{} - -DescribeApiHistoriesResult::DescribeApiHistoriesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiHistoriesResult::~DescribeApiHistoriesResult() -{} - -void DescribeApiHistoriesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiHistoriesResult::DescribeApiHistoriesResult() : + ServiceResult() +{} + +DescribeApiHistoriesResult::DescribeApiHistoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiHistoriesResult::~DescribeApiHistoriesResult() +{} + +void DescribeApiHistoriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiHisItems = value["ApiHisItems"]["ApiHisItem"]; for (auto value : allApiHisItems) { @@ -72,9 +75,9 @@ void DescribeApiHistoriesResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeApiHistoriesResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeApiHistoryRequest.cc b/cloudapi/src/model/DescribeApiHistoryRequest.cc index 92989ea3b..5eceb7782 100644 --- a/cloudapi/src/model/DescribeApiHistoryRequest.cc +++ b/cloudapi/src/model/DescribeApiHistoryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiHistoryRequest; - -DescribeApiHistoryRequest::DescribeApiHistoryRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistory") -{} - -DescribeApiHistoryRequest::~DescribeApiHistoryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiHistoryRequest; + +DescribeApiHistoryRequest::DescribeApiHistoryRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiHistory") +{} + +DescribeApiHistoryRequest::~DescribeApiHistoryRequest() +{} + std::string DescribeApiHistoryRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeApiHistoryResult.cc b/cloudapi/src/model/DescribeApiHistoryResult.cc index 33384350a..8d3f380c6 100644 --- a/cloudapi/src/model/DescribeApiHistoryResult.cc +++ b/cloudapi/src/model/DescribeApiHistoryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiHistoryResult::DescribeApiHistoryResult() : - ServiceResult() -{} - -DescribeApiHistoryResult::DescribeApiHistoryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiHistoryResult::~DescribeApiHistoryResult() -{} - -void DescribeApiHistoryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiHistoryResult::DescribeApiHistoryResult() : + ServiceResult() +{} + +DescribeApiHistoryResult::DescribeApiHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiHistoryResult::~DescribeApiHistoryResult() +{} + +void DescribeApiHistoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allErrorCodeSamples = value["ErrorCodeSamples"]["ErrorCodeSample"]; for (auto value : allErrorCodeSamples) { @@ -289,9 +292,9 @@ void DescribeApiHistoryResult::parse(const std::string &payload) forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true"; if(!value["DisableInternet"].isNull()) disableInternet_ = value["DisableInternet"].asString() == "true"; - -} - + +} + std::string DescribeApiHistoryResult::getGroupName()const { return groupName_; diff --git a/cloudapi/src/model/DescribeApiIpControlsRequest.cc b/cloudapi/src/model/DescribeApiIpControlsRequest.cc index e6b5cdbb3..ad620b56d 100644 --- a/cloudapi/src/model/DescribeApiIpControlsRequest.cc +++ b/cloudapi/src/model/DescribeApiIpControlsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiIpControlsRequest; - -DescribeApiIpControlsRequest::DescribeApiIpControlsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiIpControls") -{} - -DescribeApiIpControlsRequest::~DescribeApiIpControlsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiIpControlsRequest; + +DescribeApiIpControlsRequest::DescribeApiIpControlsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiIpControls") +{} + +DescribeApiIpControlsRequest::~DescribeApiIpControlsRequest() +{} + std::string DescribeApiIpControlsRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeApiIpControlsResult.cc b/cloudapi/src/model/DescribeApiIpControlsResult.cc index c775b451b..39e881a7c 100644 --- a/cloudapi/src/model/DescribeApiIpControlsResult.cc +++ b/cloudapi/src/model/DescribeApiIpControlsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiIpControlsResult::DescribeApiIpControlsResult() : - ServiceResult() -{} - -DescribeApiIpControlsResult::DescribeApiIpControlsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiIpControlsResult::~DescribeApiIpControlsResult() -{} - -void DescribeApiIpControlsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiIpControlsResult::DescribeApiIpControlsResult() : + ServiceResult() +{} + +DescribeApiIpControlsResult::DescribeApiIpControlsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiIpControlsResult::~DescribeApiIpControlsResult() +{} + +void DescribeApiIpControlsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiIpControls = value["ApiIpControls"]["ApiIpControlItem"]; for (auto value : allApiIpControls) { @@ -62,9 +65,9 @@ void DescribeApiIpControlsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeApiIpControlsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeApiLatencyDataRequest.cc b/cloudapi/src/model/DescribeApiLatencyDataRequest.cc index 4a2f77254..e7b972e02 100644 --- a/cloudapi/src/model/DescribeApiLatencyDataRequest.cc +++ b/cloudapi/src/model/DescribeApiLatencyDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiLatencyDataRequest; - -DescribeApiLatencyDataRequest::DescribeApiLatencyDataRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiLatencyData") -{} - -DescribeApiLatencyDataRequest::~DescribeApiLatencyDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiLatencyDataRequest; + +DescribeApiLatencyDataRequest::DescribeApiLatencyDataRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiLatencyData") +{} + +DescribeApiLatencyDataRequest::~DescribeApiLatencyDataRequest() +{} + std::string DescribeApiLatencyDataRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiLatencyDataResult.cc b/cloudapi/src/model/DescribeApiLatencyDataResult.cc index 6724a3ae9..ba9a4bb1c 100644 --- a/cloudapi/src/model/DescribeApiLatencyDataResult.cc +++ b/cloudapi/src/model/DescribeApiLatencyDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiLatencyDataResult::DescribeApiLatencyDataResult() : - ServiceResult() -{} - -DescribeApiLatencyDataResult::DescribeApiLatencyDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiLatencyDataResult::~DescribeApiLatencyDataResult() -{} - -void DescribeApiLatencyDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiLatencyDataResult::DescribeApiLatencyDataResult() : + ServiceResult() +{} + +DescribeApiLatencyDataResult::DescribeApiLatencyDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiLatencyDataResult::~DescribeApiLatencyDataResult() +{} + +void DescribeApiLatencyDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCallLatencys = value["CallLatencys"]["MonitorItem"]; for (auto value : allCallLatencys) { @@ -50,9 +53,9 @@ void DescribeApiLatencyDataResult::parse(const std::string &payload) callLatencysObject.itemValue = value["ItemValue"].asString(); callLatencys_.push_back(callLatencysObject); } - -} - + +} + std::vector DescribeApiLatencyDataResult::getCallLatencys()const { return callLatencys_; diff --git a/cloudapi/src/model/DescribeApiQpsDataRequest.cc b/cloudapi/src/model/DescribeApiQpsDataRequest.cc index f804ebeb5..c185e5f6c 100644 --- a/cloudapi/src/model/DescribeApiQpsDataRequest.cc +++ b/cloudapi/src/model/DescribeApiQpsDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiQpsDataRequest; - -DescribeApiQpsDataRequest::DescribeApiQpsDataRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiQpsData") -{} - -DescribeApiQpsDataRequest::~DescribeApiQpsDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiQpsDataRequest; + +DescribeApiQpsDataRequest::DescribeApiQpsDataRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiQpsData") +{} + +DescribeApiQpsDataRequest::~DescribeApiQpsDataRequest() +{} + std::string DescribeApiQpsDataRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiQpsDataResult.cc b/cloudapi/src/model/DescribeApiQpsDataResult.cc index 209f52a7b..e065bc4ef 100644 --- a/cloudapi/src/model/DescribeApiQpsDataResult.cc +++ b/cloudapi/src/model/DescribeApiQpsDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiQpsDataResult::DescribeApiQpsDataResult() : - ServiceResult() -{} - -DescribeApiQpsDataResult::DescribeApiQpsDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiQpsDataResult::~DescribeApiQpsDataResult() -{} - -void DescribeApiQpsDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiQpsDataResult::DescribeApiQpsDataResult() : + ServiceResult() +{} + +DescribeApiQpsDataResult::DescribeApiQpsDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiQpsDataResult::~DescribeApiQpsDataResult() +{} + +void DescribeApiQpsDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCallSuccesses = value["CallSuccesses"]["MonitorItem"]; for (auto value : allCallSuccesses) { @@ -60,9 +63,9 @@ void DescribeApiQpsDataResult::parse(const std::string &payload) callFailsObject.itemValue = value["ItemValue"].asString(); callFails_.push_back(callFailsObject); } - -} - + +} + std::vector DescribeApiQpsDataResult::getCallFails()const { return callFails_; diff --git a/cloudapi/src/model/DescribeApiRequest.cc b/cloudapi/src/model/DescribeApiRequest.cc index fe053922c..4fddef470 100644 --- a/cloudapi/src/model/DescribeApiRequest.cc +++ b/cloudapi/src/model/DescribeApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiRequest; - -DescribeApiRequest::DescribeApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApi") -{} - -DescribeApiRequest::~DescribeApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiRequest; + +DescribeApiRequest::DescribeApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApi") +{} + +DescribeApiRequest::~DescribeApiRequest() +{} + std::string DescribeApiRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiResult.cc b/cloudapi/src/model/DescribeApiResult.cc index eade35eb5..0929770f7 100644 --- a/cloudapi/src/model/DescribeApiResult.cc +++ b/cloudapi/src/model/DescribeApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiResult::DescribeApiResult() : - ServiceResult() -{} - -DescribeApiResult::DescribeApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiResult::~DescribeApiResult() -{} - -void DescribeApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiResult::DescribeApiResult() : + ServiceResult() +{} + +DescribeApiResult::DescribeApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiResult::~DescribeApiResult() +{} + +void DescribeApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allErrorCodeSamples = value["ErrorCodeSamples"]["ErrorCodeSample"]; for (auto value : allErrorCodeSamples) { @@ -311,9 +314,9 @@ void DescribeApiResult::parse(const std::string &payload) forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true"; if(!value["DisableInternet"].isNull()) disableInternet_ = value["DisableInternet"].asString() == "true"; - -} - + +} + std::string DescribeApiResult::getGroupName()const { return groupName_; diff --git a/cloudapi/src/model/DescribeApiSignaturesRequest.cc b/cloudapi/src/model/DescribeApiSignaturesRequest.cc index 6b7f25632..0f249004f 100644 --- a/cloudapi/src/model/DescribeApiSignaturesRequest.cc +++ b/cloudapi/src/model/DescribeApiSignaturesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiSignaturesRequest; - -DescribeApiSignaturesRequest::DescribeApiSignaturesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiSignatures") -{} - -DescribeApiSignaturesRequest::~DescribeApiSignaturesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiSignaturesRequest; + +DescribeApiSignaturesRequest::DescribeApiSignaturesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiSignatures") +{} + +DescribeApiSignaturesRequest::~DescribeApiSignaturesRequest() +{} + std::string DescribeApiSignaturesRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeApiSignaturesResult.cc b/cloudapi/src/model/DescribeApiSignaturesResult.cc index 74e3fa279..3322d92ff 100644 --- a/cloudapi/src/model/DescribeApiSignaturesResult.cc +++ b/cloudapi/src/model/DescribeApiSignaturesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiSignaturesResult::DescribeApiSignaturesResult() : - ServiceResult() -{} - -DescribeApiSignaturesResult::DescribeApiSignaturesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiSignaturesResult::~DescribeApiSignaturesResult() -{} - -void DescribeApiSignaturesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiSignaturesResult::DescribeApiSignaturesResult() : + ServiceResult() +{} + +DescribeApiSignaturesResult::DescribeApiSignaturesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiSignaturesResult::~DescribeApiSignaturesResult() +{} + +void DescribeApiSignaturesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiSignatures = value["ApiSignatures"]["ApiSignatureItem"]; for (auto value : allApiSignatures) { @@ -62,9 +65,9 @@ void DescribeApiSignaturesResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeApiSignaturesResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeApiStageRequest.cc b/cloudapi/src/model/DescribeApiStageRequest.cc index 6c4a39872..48036fca8 100644 --- a/cloudapi/src/model/DescribeApiStageRequest.cc +++ b/cloudapi/src/model/DescribeApiStageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiStageRequest; - -DescribeApiStageRequest::DescribeApiStageRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiStage") -{} - -DescribeApiStageRequest::~DescribeApiStageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiStageRequest; + +DescribeApiStageRequest::DescribeApiStageRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiStage") +{} + +DescribeApiStageRequest::~DescribeApiStageRequest() +{} + std::string DescribeApiStageRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiStageResult.cc b/cloudapi/src/model/DescribeApiStageResult.cc index 4eb16cac5..8c7385872 100644 --- a/cloudapi/src/model/DescribeApiStageResult.cc +++ b/cloudapi/src/model/DescribeApiStageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiStageResult::DescribeApiStageResult() : - ServiceResult() -{} - -DescribeApiStageResult::DescribeApiStageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiStageResult::~DescribeApiStageResult() -{} - -void DescribeApiStageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiStageResult::DescribeApiStageResult() : + ServiceResult() +{} + +DescribeApiStageResult::DescribeApiStageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiStageResult::~DescribeApiStageResult() +{} + +void DescribeApiStageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVariables = value["Variables"]["VariableItem"]; for (auto value : allVariables) { @@ -89,9 +92,9 @@ void DescribeApiStageResult::parse(const std::string &payload) createdTime_ = value["CreatedTime"].asString(); if(!value["ModifiedTime"].isNull()) modifiedTime_ = value["ModifiedTime"].asString(); - -} - + +} + std::vector DescribeApiStageResult::getVariables()const { return variables_; diff --git a/cloudapi/src/model/DescribeApiTrafficControlsRequest.cc b/cloudapi/src/model/DescribeApiTrafficControlsRequest.cc index eef60cb12..d11659412 100644 --- a/cloudapi/src/model/DescribeApiTrafficControlsRequest.cc +++ b/cloudapi/src/model/DescribeApiTrafficControlsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiTrafficControlsRequest; - -DescribeApiTrafficControlsRequest::DescribeApiTrafficControlsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiTrafficControls") -{} - -DescribeApiTrafficControlsRequest::~DescribeApiTrafficControlsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiTrafficControlsRequest; + +DescribeApiTrafficControlsRequest::DescribeApiTrafficControlsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiTrafficControls") +{} + +DescribeApiTrafficControlsRequest::~DescribeApiTrafficControlsRequest() +{} + std::string DescribeApiTrafficControlsRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeApiTrafficControlsResult.cc b/cloudapi/src/model/DescribeApiTrafficControlsResult.cc index 0bd8524f4..6d1031399 100644 --- a/cloudapi/src/model/DescribeApiTrafficControlsResult.cc +++ b/cloudapi/src/model/DescribeApiTrafficControlsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiTrafficControlsResult::DescribeApiTrafficControlsResult() : - ServiceResult() -{} - -DescribeApiTrafficControlsResult::DescribeApiTrafficControlsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiTrafficControlsResult::~DescribeApiTrafficControlsResult() -{} - -void DescribeApiTrafficControlsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiTrafficControlsResult::DescribeApiTrafficControlsResult() : + ServiceResult() +{} + +DescribeApiTrafficControlsResult::DescribeApiTrafficControlsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiTrafficControlsResult::~DescribeApiTrafficControlsResult() +{} + +void DescribeApiTrafficControlsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiTrafficControls = value["ApiTrafficControls"]["ApiTrafficControlItem"]; for (auto value : allApiTrafficControls) { @@ -62,9 +65,9 @@ void DescribeApiTrafficControlsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeApiTrafficControlsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeApiTrafficDataRequest.cc b/cloudapi/src/model/DescribeApiTrafficDataRequest.cc index cb1c4d53a..a8562b808 100644 --- a/cloudapi/src/model/DescribeApiTrafficDataRequest.cc +++ b/cloudapi/src/model/DescribeApiTrafficDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiTrafficDataRequest; - -DescribeApiTrafficDataRequest::DescribeApiTrafficDataRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiTrafficData") -{} - -DescribeApiTrafficDataRequest::~DescribeApiTrafficDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApiTrafficDataRequest; + +DescribeApiTrafficDataRequest::DescribeApiTrafficDataRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApiTrafficData") +{} + +DescribeApiTrafficDataRequest::~DescribeApiTrafficDataRequest() +{} + std::string DescribeApiTrafficDataRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApiTrafficDataResult.cc b/cloudapi/src/model/DescribeApiTrafficDataResult.cc index f0fd25c4d..e4242b540 100644 --- a/cloudapi/src/model/DescribeApiTrafficDataResult.cc +++ b/cloudapi/src/model/DescribeApiTrafficDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApiTrafficDataResult::DescribeApiTrafficDataResult() : - ServiceResult() -{} - -DescribeApiTrafficDataResult::DescribeApiTrafficDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApiTrafficDataResult::~DescribeApiTrafficDataResult() -{} - -void DescribeApiTrafficDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApiTrafficDataResult::DescribeApiTrafficDataResult() : + ServiceResult() +{} + +DescribeApiTrafficDataResult::DescribeApiTrafficDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApiTrafficDataResult::~DescribeApiTrafficDataResult() +{} + +void DescribeApiTrafficDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCallUploads = value["CallUploads"]["MonitorItem"]; for (auto value : allCallUploads) { @@ -60,9 +63,9 @@ void DescribeApiTrafficDataResult::parse(const std::string &payload) callDownloadsObject.itemValue = value["ItemValue"].asString(); callDownloads_.push_back(callDownloadsObject); } - -} - + +} + std::vector DescribeApiTrafficDataResult::getCallUploads()const { return callUploads_; diff --git a/cloudapi/src/model/DescribeApisByAppRequest.cc b/cloudapi/src/model/DescribeApisByAppRequest.cc index 4608460bd..b86de5038 100644 --- a/cloudapi/src/model/DescribeApisByAppRequest.cc +++ b/cloudapi/src/model/DescribeApisByAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisByAppRequest; - -DescribeApisByAppRequest::DescribeApisByAppRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByApp") -{} - -DescribeApisByAppRequest::~DescribeApisByAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisByAppRequest; + +DescribeApisByAppRequest::DescribeApisByAppRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByApp") +{} + +DescribeApisByAppRequest::~DescribeApisByAppRequest() +{} + std::string DescribeApisByAppRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApisByAppResult.cc b/cloudapi/src/model/DescribeApisByAppResult.cc index 3596debaa..da2caa600 100644 --- a/cloudapi/src/model/DescribeApisByAppResult.cc +++ b/cloudapi/src/model/DescribeApisByAppResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApisByAppResult::DescribeApisByAppResult() : - ServiceResult() -{} - -DescribeApisByAppResult::DescribeApisByAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApisByAppResult::~DescribeApisByAppResult() -{} - -void DescribeApisByAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApisByAppResult::DescribeApisByAppResult() : + ServiceResult() +{} + +DescribeApisByAppResult::DescribeApisByAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApisByAppResult::~DescribeApisByAppResult() +{} + +void DescribeApisByAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAppApiRelationInfos = value["AppApiRelationInfos"]["AppApiRelationInfo"]; for (auto value : allAppApiRelationInfos) { @@ -72,9 +75,9 @@ void DescribeApisByAppResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + std::vector DescribeApisByAppResult::getAppApiRelationInfos()const { return appApiRelationInfos_; diff --git a/cloudapi/src/model/DescribeApisByIpControlRequest.cc b/cloudapi/src/model/DescribeApisByIpControlRequest.cc index 9b3d4a9f1..224489d5b 100644 --- a/cloudapi/src/model/DescribeApisByIpControlRequest.cc +++ b/cloudapi/src/model/DescribeApisByIpControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisByIpControlRequest; - -DescribeApisByIpControlRequest::DescribeApisByIpControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByIpControl") -{} - -DescribeApisByIpControlRequest::~DescribeApisByIpControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisByIpControlRequest; + +DescribeApisByIpControlRequest::DescribeApisByIpControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByIpControl") +{} + +DescribeApisByIpControlRequest::~DescribeApisByIpControlRequest() +{} + std::string DescribeApisByIpControlRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/DescribeApisByIpControlResult.cc b/cloudapi/src/model/DescribeApisByIpControlResult.cc index dee0984e4..4b1f1e547 100644 --- a/cloudapi/src/model/DescribeApisByIpControlResult.cc +++ b/cloudapi/src/model/DescribeApisByIpControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApisByIpControlResult::DescribeApisByIpControlResult() : - ServiceResult() -{} - -DescribeApisByIpControlResult::DescribeApisByIpControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApisByIpControlResult::~DescribeApisByIpControlResult() -{} - -void DescribeApisByIpControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApisByIpControlResult::DescribeApisByIpControlResult() : + ServiceResult() +{} + +DescribeApisByIpControlResult::DescribeApisByIpControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApisByIpControlResult::~DescribeApisByIpControlResult() +{} + +void DescribeApisByIpControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiInfos = value["ApiInfos"]["ApiInfo"]; for (auto value : allApiInfos) { @@ -70,9 +73,9 @@ void DescribeApisByIpControlResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + std::vector DescribeApisByIpControlResult::getApiInfos()const { return apiInfos_; diff --git a/cloudapi/src/model/DescribeApisBySignatureRequest.cc b/cloudapi/src/model/DescribeApisBySignatureRequest.cc index c9bb6d555..1779adc94 100644 --- a/cloudapi/src/model/DescribeApisBySignatureRequest.cc +++ b/cloudapi/src/model/DescribeApisBySignatureRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisBySignatureRequest; - -DescribeApisBySignatureRequest::DescribeApisBySignatureRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisBySignature") -{} - -DescribeApisBySignatureRequest::~DescribeApisBySignatureRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisBySignatureRequest; + +DescribeApisBySignatureRequest::DescribeApisBySignatureRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisBySignature") +{} + +DescribeApisBySignatureRequest::~DescribeApisBySignatureRequest() +{} + std::string DescribeApisBySignatureRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeApisBySignatureResult.cc b/cloudapi/src/model/DescribeApisBySignatureResult.cc index 539c1c448..7cc3a9f4f 100644 --- a/cloudapi/src/model/DescribeApisBySignatureResult.cc +++ b/cloudapi/src/model/DescribeApisBySignatureResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApisBySignatureResult::DescribeApisBySignatureResult() : - ServiceResult() -{} - -DescribeApisBySignatureResult::DescribeApisBySignatureResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApisBySignatureResult::~DescribeApisBySignatureResult() -{} - -void DescribeApisBySignatureResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApisBySignatureResult::DescribeApisBySignatureResult() : + ServiceResult() +{} + +DescribeApisBySignatureResult::DescribeApisBySignatureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApisBySignatureResult::~DescribeApisBySignatureResult() +{} + +void DescribeApisBySignatureResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiInfos = value["ApiInfos"]["ApiInfo"]; for (auto value : allApiInfos) { @@ -70,9 +73,9 @@ void DescribeApisBySignatureResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + std::vector DescribeApisBySignatureResult::getApiInfos()const { return apiInfos_; diff --git a/cloudapi/src/model/DescribeApisByTrafficControlRequest.cc b/cloudapi/src/model/DescribeApisByTrafficControlRequest.cc index a7fa1d8b3..1f571b2c8 100644 --- a/cloudapi/src/model/DescribeApisByTrafficControlRequest.cc +++ b/cloudapi/src/model/DescribeApisByTrafficControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisByTrafficControlRequest; - -DescribeApisByTrafficControlRequest::DescribeApisByTrafficControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByTrafficControl") -{} - -DescribeApisByTrafficControlRequest::~DescribeApisByTrafficControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisByTrafficControlRequest; + +DescribeApisByTrafficControlRequest::DescribeApisByTrafficControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApisByTrafficControl") +{} + +DescribeApisByTrafficControlRequest::~DescribeApisByTrafficControlRequest() +{} + std::string DescribeApisByTrafficControlRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/DescribeApisByTrafficControlResult.cc b/cloudapi/src/model/DescribeApisByTrafficControlResult.cc index aee264944..7ca54dfff 100644 --- a/cloudapi/src/model/DescribeApisByTrafficControlResult.cc +++ b/cloudapi/src/model/DescribeApisByTrafficControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApisByTrafficControlResult::DescribeApisByTrafficControlResult() : - ServiceResult() -{} - -DescribeApisByTrafficControlResult::DescribeApisByTrafficControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApisByTrafficControlResult::~DescribeApisByTrafficControlResult() -{} - -void DescribeApisByTrafficControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApisByTrafficControlResult::DescribeApisByTrafficControlResult() : + ServiceResult() +{} + +DescribeApisByTrafficControlResult::DescribeApisByTrafficControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApisByTrafficControlResult::~DescribeApisByTrafficControlResult() +{} + +void DescribeApisByTrafficControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiInfos = value["ApiInfos"]["ApiInfo"]; for (auto value : allApiInfos) { @@ -70,9 +73,9 @@ void DescribeApisByTrafficControlResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + std::vector DescribeApisByTrafficControlResult::getApiInfos()const { return apiInfos_; diff --git a/cloudapi/src/model/DescribeApisRequest.cc b/cloudapi/src/model/DescribeApisRequest.cc index a1a3e80c0..f0c7002ad 100644 --- a/cloudapi/src/model/DescribeApisRequest.cc +++ b/cloudapi/src/model/DescribeApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisRequest; - -DescribeApisRequest::DescribeApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApis") -{} - -DescribeApisRequest::~DescribeApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeApisRequest; + +DescribeApisRequest::DescribeApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApis") +{} + +DescribeApisRequest::~DescribeApisRequest() +{} + std::string DescribeApisRequest::getApiName()const { return apiName_; diff --git a/cloudapi/src/model/DescribeApisResult.cc b/cloudapi/src/model/DescribeApisResult.cc index 2324d9c1d..6ab98c957 100644 --- a/cloudapi/src/model/DescribeApisResult.cc +++ b/cloudapi/src/model/DescribeApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeApisResult::DescribeApisResult() : - ServiceResult() -{} - -DescribeApisResult::DescribeApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeApisResult::~DescribeApisResult() -{} - -void DescribeApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeApisResult::DescribeApisResult() : + ServiceResult() +{} + +DescribeApisResult::DescribeApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApisResult::~DescribeApisResult() +{} + +void DescribeApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiSummarys = value["ApiSummarys"]["ApiSummary"]; for (auto value : allApiSummarys) { @@ -70,9 +73,9 @@ void DescribeApisResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeApisResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeAppAttributesRequest.cc b/cloudapi/src/model/DescribeAppAttributesRequest.cc index 93f7c7655..cd3a65a0e 100644 --- a/cloudapi/src/model/DescribeAppAttributesRequest.cc +++ b/cloudapi/src/model/DescribeAppAttributesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppAttributesRequest; - -DescribeAppAttributesRequest::DescribeAppAttributesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAppAttributes") -{} - -DescribeAppAttributesRequest::~DescribeAppAttributesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppAttributesRequest; + +DescribeAppAttributesRequest::DescribeAppAttributesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAppAttributes") +{} + +DescribeAppAttributesRequest::~DescribeAppAttributesRequest() +{} + std::string DescribeAppAttributesRequest::getAppName()const { return appName_; diff --git a/cloudapi/src/model/DescribeAppAttributesResult.cc b/cloudapi/src/model/DescribeAppAttributesResult.cc index a4c4eb003..59693cb6d 100644 --- a/cloudapi/src/model/DescribeAppAttributesResult.cc +++ b/cloudapi/src/model/DescribeAppAttributesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeAppAttributesResult::DescribeAppAttributesResult() : - ServiceResult() -{} - -DescribeAppAttributesResult::DescribeAppAttributesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAppAttributesResult::~DescribeAppAttributesResult() -{} - -void DescribeAppAttributesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeAppAttributesResult::DescribeAppAttributesResult() : + ServiceResult() +{} + +DescribeAppAttributesResult::DescribeAppAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppAttributesResult::~DescribeAppAttributesResult() +{} + +void DescribeAppAttributesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApps = value["Apps"]["AppAttribute"]; for (auto value : allApps) { @@ -62,9 +65,9 @@ void DescribeAppAttributesResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeAppAttributesResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeAppRequest.cc b/cloudapi/src/model/DescribeAppRequest.cc index e862db604..d8582b4d3 100644 --- a/cloudapi/src/model/DescribeAppRequest.cc +++ b/cloudapi/src/model/DescribeAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppRequest; - -DescribeAppRequest::DescribeAppRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApp") -{} - -DescribeAppRequest::~DescribeAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppRequest; + +DescribeAppRequest::DescribeAppRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApp") +{} + +DescribeAppRequest::~DescribeAppRequest() +{} + std::string DescribeAppRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeAppResult.cc b/cloudapi/src/model/DescribeAppResult.cc index eba3e8907..ec1ca2a6d 100644 --- a/cloudapi/src/model/DescribeAppResult.cc +++ b/cloudapi/src/model/DescribeAppResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeAppResult::DescribeAppResult() : - ServiceResult() -{} - -DescribeAppResult::DescribeAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAppResult::~DescribeAppResult() -{} - -void DescribeAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeAppResult::DescribeAppResult() : + ServiceResult() +{} + +DescribeAppResult::DescribeAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppResult::~DescribeAppResult() +{} + +void DescribeAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AppId"].isNull()) appId_ = std::stol(value["AppId"].asString()); if(!value["AppName"].isNull()) @@ -50,9 +53,9 @@ void DescribeAppResult::parse(const std::string &payload) createdTime_ = value["CreatedTime"].asString(); if(!value["ModifiedTime"].isNull()) modifiedTime_ = value["ModifiedTime"].asString(); - -} - + +} + std::string DescribeAppResult::getDescription()const { return description_; diff --git a/cloudapi/src/model/DescribeAppSecurityRequest.cc b/cloudapi/src/model/DescribeAppSecurityRequest.cc index 481708bd0..2e0de0811 100644 --- a/cloudapi/src/model/DescribeAppSecurityRequest.cc +++ b/cloudapi/src/model/DescribeAppSecurityRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppSecurityRequest; - -DescribeAppSecurityRequest::DescribeAppSecurityRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAppSecurity") -{} - -DescribeAppSecurityRequest::~DescribeAppSecurityRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppSecurityRequest; + +DescribeAppSecurityRequest::DescribeAppSecurityRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAppSecurity") +{} + +DescribeAppSecurityRequest::~DescribeAppSecurityRequest() +{} + std::string DescribeAppSecurityRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeAppSecurityResult.cc b/cloudapi/src/model/DescribeAppSecurityResult.cc index a8cf5e381..3cb8a1e73 100644 --- a/cloudapi/src/model/DescribeAppSecurityResult.cc +++ b/cloudapi/src/model/DescribeAppSecurityResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeAppSecurityResult::DescribeAppSecurityResult() : - ServiceResult() -{} - -DescribeAppSecurityResult::DescribeAppSecurityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAppSecurityResult::~DescribeAppSecurityResult() -{} - -void DescribeAppSecurityResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeAppSecurityResult::DescribeAppSecurityResult() : + ServiceResult() +{} + +DescribeAppSecurityResult::DescribeAppSecurityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppSecurityResult::~DescribeAppSecurityResult() +{} + +void DescribeAppSecurityResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AppKey"].isNull()) appKey_ = value["AppKey"].asString(); if(!value["AppSecret"].isNull()) @@ -50,9 +53,9 @@ void DescribeAppSecurityResult::parse(const std::string &payload) modifiedTime_ = value["ModifiedTime"].asString(); if(!value["AppCode"].isNull()) appCode_ = value["AppCode"].asString(); - -} - + +} + std::string DescribeAppSecurityResult::getAppCode()const { return appCode_; diff --git a/cloudapi/src/model/DescribeAppsRequest.cc b/cloudapi/src/model/DescribeAppsRequest.cc index c279ddfe5..e96f3d603 100644 --- a/cloudapi/src/model/DescribeAppsRequest.cc +++ b/cloudapi/src/model/DescribeAppsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppsRequest; - -DescribeAppsRequest::DescribeAppsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApps") -{} - -DescribeAppsRequest::~DescribeAppsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAppsRequest; + +DescribeAppsRequest::DescribeAppsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeApps") +{} + +DescribeAppsRequest::~DescribeAppsRequest() +{} + std::string DescribeAppsRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeAppsResult.cc b/cloudapi/src/model/DescribeAppsResult.cc index f383aa68f..a6bb68a73 100644 --- a/cloudapi/src/model/DescribeAppsResult.cc +++ b/cloudapi/src/model/DescribeAppsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeAppsResult::DescribeAppsResult() : - ServiceResult() -{} - -DescribeAppsResult::DescribeAppsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAppsResult::~DescribeAppsResult() -{} - -void DescribeAppsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeAppsResult::DescribeAppsResult() : + ServiceResult() +{} + +DescribeAppsResult::DescribeAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppsResult::~DescribeAppsResult() +{} + +void DescribeAppsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApps = value["Apps"]["AppItem"]; for (auto value : allApps) { @@ -58,9 +61,9 @@ void DescribeAppsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeAppsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeAuthorizedApisRequest.cc b/cloudapi/src/model/DescribeAuthorizedApisRequest.cc index bcffc6a06..dcb636939 100644 --- a/cloudapi/src/model/DescribeAuthorizedApisRequest.cc +++ b/cloudapi/src/model/DescribeAuthorizedApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAuthorizedApisRequest; - -DescribeAuthorizedApisRequest::DescribeAuthorizedApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAuthorizedApis") -{} - -DescribeAuthorizedApisRequest::~DescribeAuthorizedApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAuthorizedApisRequest; + +DescribeAuthorizedApisRequest::DescribeAuthorizedApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAuthorizedApis") +{} + +DescribeAuthorizedApisRequest::~DescribeAuthorizedApisRequest() +{} + std::string DescribeAuthorizedApisRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeAuthorizedApisResult.cc b/cloudapi/src/model/DescribeAuthorizedApisResult.cc index 099097962..97785a22b 100644 --- a/cloudapi/src/model/DescribeAuthorizedApisResult.cc +++ b/cloudapi/src/model/DescribeAuthorizedApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeAuthorizedApisResult::DescribeAuthorizedApisResult() : - ServiceResult() -{} - -DescribeAuthorizedApisResult::DescribeAuthorizedApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAuthorizedApisResult::~DescribeAuthorizedApisResult() -{} - -void DescribeAuthorizedApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeAuthorizedApisResult::DescribeAuthorizedApisResult() : + ServiceResult() +{} + +DescribeAuthorizedApisResult::DescribeAuthorizedApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuthorizedApisResult::~DescribeAuthorizedApisResult() +{} + +void DescribeAuthorizedApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAuthorizedApis = value["AuthorizedApis"]["AuthorizedApi"]; for (auto value : allAuthorizedApis) { @@ -74,9 +77,9 @@ void DescribeAuthorizedApisResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeAuthorizedApisResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeAuthorizedAppsRequest.cc b/cloudapi/src/model/DescribeAuthorizedAppsRequest.cc index dd9cbd707..091984272 100644 --- a/cloudapi/src/model/DescribeAuthorizedAppsRequest.cc +++ b/cloudapi/src/model/DescribeAuthorizedAppsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAuthorizedAppsRequest; - -DescribeAuthorizedAppsRequest::DescribeAuthorizedAppsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAuthorizedApps") -{} - -DescribeAuthorizedAppsRequest::~DescribeAuthorizedAppsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeAuthorizedAppsRequest; + +DescribeAuthorizedAppsRequest::DescribeAuthorizedAppsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeAuthorizedApps") +{} + +DescribeAuthorizedAppsRequest::~DescribeAuthorizedAppsRequest() +{} + std::string DescribeAuthorizedAppsRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeAuthorizedAppsResult.cc b/cloudapi/src/model/DescribeAuthorizedAppsResult.cc index adea6fe50..f1408fbd2 100644 --- a/cloudapi/src/model/DescribeAuthorizedAppsResult.cc +++ b/cloudapi/src/model/DescribeAuthorizedAppsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeAuthorizedAppsResult::DescribeAuthorizedAppsResult() : - ServiceResult() -{} - -DescribeAuthorizedAppsResult::DescribeAuthorizedAppsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAuthorizedAppsResult::~DescribeAuthorizedAppsResult() -{} - -void DescribeAuthorizedAppsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeAuthorizedAppsResult::DescribeAuthorizedAppsResult() : + ServiceResult() +{} + +DescribeAuthorizedAppsResult::DescribeAuthorizedAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuthorizedAppsResult::~DescribeAuthorizedAppsResult() +{} + +void DescribeAuthorizedAppsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAuthorizedApps = value["AuthorizedApps"]["AuthorizedApp"]; for (auto value : allAuthorizedApps) { @@ -68,9 +71,9 @@ void DescribeAuthorizedAppsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeAuthorizedAppsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeDeployedApiRequest.cc b/cloudapi/src/model/DescribeDeployedApiRequest.cc index 299c05280..7bd13c3d9 100644 --- a/cloudapi/src/model/DescribeDeployedApiRequest.cc +++ b/cloudapi/src/model/DescribeDeployedApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDeployedApiRequest; - -DescribeDeployedApiRequest::DescribeDeployedApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDeployedApi") -{} - -DescribeDeployedApiRequest::~DescribeDeployedApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDeployedApiRequest; + +DescribeDeployedApiRequest::DescribeDeployedApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDeployedApi") +{} + +DescribeDeployedApiRequest::~DescribeDeployedApiRequest() +{} + std::string DescribeDeployedApiRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeDeployedApiResult.cc b/cloudapi/src/model/DescribeDeployedApiResult.cc index 697db4ac7..e2ce79eeb 100644 --- a/cloudapi/src/model/DescribeDeployedApiResult.cc +++ b/cloudapi/src/model/DescribeDeployedApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeDeployedApiResult::DescribeDeployedApiResult() : - ServiceResult() -{} - -DescribeDeployedApiResult::DescribeDeployedApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDeployedApiResult::~DescribeDeployedApiResult() -{} - -void DescribeDeployedApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeDeployedApiResult::DescribeDeployedApiResult() : + ServiceResult() +{} + +DescribeDeployedApiResult::DescribeDeployedApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeployedApiResult::~DescribeDeployedApiResult() +{} + +void DescribeDeployedApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allErrorCodeSamples = value["ErrorCodeSamples"]["ErrorCodeSample"]; for (auto value : allErrorCodeSamples) { @@ -285,9 +288,9 @@ void DescribeDeployedApiResult::parse(const std::string &payload) forceNonceCheck_ = value["ForceNonceCheck"].asString() == "true"; if(!value["DisableInternet"].isNull()) disableInternet_ = value["DisableInternet"].asString() == "true"; - -} - + +} + std::string DescribeDeployedApiResult::getGroupName()const { return groupName_; diff --git a/cloudapi/src/model/DescribeDeployedApisRequest.cc b/cloudapi/src/model/DescribeDeployedApisRequest.cc index c43444da8..789c26a55 100644 --- a/cloudapi/src/model/DescribeDeployedApisRequest.cc +++ b/cloudapi/src/model/DescribeDeployedApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDeployedApisRequest; - -DescribeDeployedApisRequest::DescribeDeployedApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDeployedApis") -{} - -DescribeDeployedApisRequest::~DescribeDeployedApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDeployedApisRequest; + +DescribeDeployedApisRequest::DescribeDeployedApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDeployedApis") +{} + +DescribeDeployedApisRequest::~DescribeDeployedApisRequest() +{} + std::string DescribeDeployedApisRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeDeployedApisResult.cc b/cloudapi/src/model/DescribeDeployedApisResult.cc index 4aaae2caa..45fb66866 100644 --- a/cloudapi/src/model/DescribeDeployedApisResult.cc +++ b/cloudapi/src/model/DescribeDeployedApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeDeployedApisResult::DescribeDeployedApisResult() : - ServiceResult() -{} - -DescribeDeployedApisResult::DescribeDeployedApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDeployedApisResult::~DescribeDeployedApisResult() -{} - -void DescribeDeployedApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeDeployedApisResult::DescribeDeployedApisResult() : + ServiceResult() +{} + +DescribeDeployedApisResult::DescribeDeployedApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeployedApisResult::~DescribeDeployedApisResult() +{} + +void DescribeDeployedApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDeployedApis = value["DeployedApis"]["DeployedApiItem"]; for (auto value : allDeployedApis) { @@ -70,9 +73,9 @@ void DescribeDeployedApisResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeDeployedApisResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeDomainRequest.cc b/cloudapi/src/model/DescribeDomainRequest.cc index 6491eaf0c..17db22b8f 100644 --- a/cloudapi/src/model/DescribeDomainRequest.cc +++ b/cloudapi/src/model/DescribeDomainRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDomainRequest; - -DescribeDomainRequest::DescribeDomainRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDomain") -{} - -DescribeDomainRequest::~DescribeDomainRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDomainRequest; + +DescribeDomainRequest::DescribeDomainRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDomain") +{} + +DescribeDomainRequest::~DescribeDomainRequest() +{} + std::string DescribeDomainRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeDomainResult.cc b/cloudapi/src/model/DescribeDomainResult.cc index 4343e76eb..6ad29a213 100644 --- a/cloudapi/src/model/DescribeDomainResult.cc +++ b/cloudapi/src/model/DescribeDomainResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeDomainResult::DescribeDomainResult() : - ServiceResult() -{} - -DescribeDomainResult::DescribeDomainResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDomainResult::~DescribeDomainResult() -{} - -void DescribeDomainResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeDomainResult::DescribeDomainResult() : + ServiceResult() +{} + +DescribeDomainResult::DescribeDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainResult::~DescribeDomainResult() +{} + +void DescribeDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); if(!value["DomainName"].isNull()) @@ -64,9 +67,9 @@ void DescribeDomainResult::parse(const std::string &payload) domainWebSocketStatus_ = value["DomainWebSocketStatus"].asString(); if(!value["DomainRemark"].isNull()) domainRemark_ = value["DomainRemark"].asString(); - -} - + +} + std::string DescribeDomainResult::getSubDomain()const { return subDomain_; diff --git a/cloudapi/src/model/DescribeDomainsResolutionRequest.cc b/cloudapi/src/model/DescribeDomainsResolutionRequest.cc index 7c1bc0f1c..d3bc62a5b 100644 --- a/cloudapi/src/model/DescribeDomainsResolutionRequest.cc +++ b/cloudapi/src/model/DescribeDomainsResolutionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDomainsResolutionRequest; - -DescribeDomainsResolutionRequest::DescribeDomainsResolutionRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDomainsResolution") -{} - -DescribeDomainsResolutionRequest::~DescribeDomainsResolutionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeDomainsResolutionRequest; + +DescribeDomainsResolutionRequest::DescribeDomainsResolutionRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDomainsResolution") +{} + +DescribeDomainsResolutionRequest::~DescribeDomainsResolutionRequest() +{} + std::string DescribeDomainsResolutionRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeDomainsResolutionResult.cc b/cloudapi/src/model/DescribeDomainsResolutionResult.cc index e92037682..07b3d0f39 100644 --- a/cloudapi/src/model/DescribeDomainsResolutionResult.cc +++ b/cloudapi/src/model/DescribeDomainsResolutionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeDomainsResolutionResult::DescribeDomainsResolutionResult() : - ServiceResult() -{} - -DescribeDomainsResolutionResult::DescribeDomainsResolutionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDomainsResolutionResult::~DescribeDomainsResolutionResult() -{} - -void DescribeDomainsResolutionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeDomainsResolutionResult::DescribeDomainsResolutionResult() : + ServiceResult() +{} + +DescribeDomainsResolutionResult::DescribeDomainsResolutionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainsResolutionResult::~DescribeDomainsResolutionResult() +{} + +void DescribeDomainsResolutionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDomainResolutions = value["DomainResolutions"]["DomainResolution"]; for (auto value : allDomainResolutions) { @@ -52,9 +55,9 @@ void DescribeDomainsResolutionResult::parse(const std::string &payload) } if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); - -} - + +} + std::vector DescribeDomainsResolutionResult::getDomainResolutions()const { return domainResolutions_; diff --git a/cloudapi/src/model/DescribeHistoryApisRequest.cc b/cloudapi/src/model/DescribeHistoryApisRequest.cc index fa573755c..1ec8e96db 100644 --- a/cloudapi/src/model/DescribeHistoryApisRequest.cc +++ b/cloudapi/src/model/DescribeHistoryApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeHistoryApisRequest; - -DescribeHistoryApisRequest::DescribeHistoryApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeHistoryApis") -{} - -DescribeHistoryApisRequest::~DescribeHistoryApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeHistoryApisRequest; + +DescribeHistoryApisRequest::DescribeHistoryApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeHistoryApis") +{} + +DescribeHistoryApisRequest::~DescribeHistoryApisRequest() +{} + std::string DescribeHistoryApisRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeHistoryApisResult.cc b/cloudapi/src/model/DescribeHistoryApisResult.cc index 083ffa16f..f96af00b9 100644 --- a/cloudapi/src/model/DescribeHistoryApisResult.cc +++ b/cloudapi/src/model/DescribeHistoryApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeHistoryApisResult::DescribeHistoryApisResult() : - ServiceResult() -{} - -DescribeHistoryApisResult::DescribeHistoryApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeHistoryApisResult::~DescribeHistoryApisResult() -{} - -void DescribeHistoryApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeHistoryApisResult::DescribeHistoryApisResult() : + ServiceResult() +{} + +DescribeHistoryApisResult::DescribeHistoryApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHistoryApisResult::~DescribeHistoryApisResult() +{} + +void DescribeHistoryApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allApiHisItems = value["ApiHisItems"]["ApiHisItem"]; for (auto value : allApiHisItems) { @@ -72,9 +75,9 @@ void DescribeHistoryApisResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeHistoryApisResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeIpControlPolicyItemsRequest.cc b/cloudapi/src/model/DescribeIpControlPolicyItemsRequest.cc index 13e605af2..b122c152f 100644 --- a/cloudapi/src/model/DescribeIpControlPolicyItemsRequest.cc +++ b/cloudapi/src/model/DescribeIpControlPolicyItemsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeIpControlPolicyItemsRequest; - -DescribeIpControlPolicyItemsRequest::DescribeIpControlPolicyItemsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeIpControlPolicyItems") -{} - -DescribeIpControlPolicyItemsRequest::~DescribeIpControlPolicyItemsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeIpControlPolicyItemsRequest; + +DescribeIpControlPolicyItemsRequest::DescribeIpControlPolicyItemsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeIpControlPolicyItems") +{} + +DescribeIpControlPolicyItemsRequest::~DescribeIpControlPolicyItemsRequest() +{} + std::string DescribeIpControlPolicyItemsRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/DescribeIpControlPolicyItemsResult.cc b/cloudapi/src/model/DescribeIpControlPolicyItemsResult.cc index e8365b31a..c39b05c48 100644 --- a/cloudapi/src/model/DescribeIpControlPolicyItemsResult.cc +++ b/cloudapi/src/model/DescribeIpControlPolicyItemsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeIpControlPolicyItemsResult::DescribeIpControlPolicyItemsResult() : - ServiceResult() -{} - -DescribeIpControlPolicyItemsResult::DescribeIpControlPolicyItemsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeIpControlPolicyItemsResult::~DescribeIpControlPolicyItemsResult() -{} - -void DescribeIpControlPolicyItemsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeIpControlPolicyItemsResult::DescribeIpControlPolicyItemsResult() : + ServiceResult() +{} + +DescribeIpControlPolicyItemsResult::DescribeIpControlPolicyItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIpControlPolicyItemsResult::~DescribeIpControlPolicyItemsResult() +{} + +void DescribeIpControlPolicyItemsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allIpControlPolicyItems = value["IpControlPolicyItems"]["IpControlPolicyItem"]; for (auto value : allIpControlPolicyItems) { @@ -62,9 +65,9 @@ void DescribeIpControlPolicyItemsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeIpControlPolicyItemsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeIpControlsRequest.cc b/cloudapi/src/model/DescribeIpControlsRequest.cc index eae2dc75e..86ca8ea73 100644 --- a/cloudapi/src/model/DescribeIpControlsRequest.cc +++ b/cloudapi/src/model/DescribeIpControlsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeIpControlsRequest; - -DescribeIpControlsRequest::DescribeIpControlsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeIpControls") -{} - -DescribeIpControlsRequest::~DescribeIpControlsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeIpControlsRequest; + +DescribeIpControlsRequest::DescribeIpControlsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeIpControls") +{} + +DescribeIpControlsRequest::~DescribeIpControlsRequest() +{} + std::string DescribeIpControlsRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/DescribeIpControlsResult.cc b/cloudapi/src/model/DescribeIpControlsResult.cc index ef170270c..de07916df 100644 --- a/cloudapi/src/model/DescribeIpControlsResult.cc +++ b/cloudapi/src/model/DescribeIpControlsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeIpControlsResult::DescribeIpControlsResult() : - ServiceResult() -{} - -DescribeIpControlsResult::DescribeIpControlsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeIpControlsResult::~DescribeIpControlsResult() -{} - -void DescribeIpControlsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeIpControlsResult::DescribeIpControlsResult() : + ServiceResult() +{} + +DescribeIpControlsResult::DescribeIpControlsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIpControlsResult::~DescribeIpControlsResult() +{} + +void DescribeIpControlsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allIpControlInfos = value["IpControlInfos"]["IpControlInfo"]; for (auto value : allIpControlInfos) { @@ -66,9 +69,9 @@ void DescribeIpControlsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeIpControlsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeLogConfigRequest.cc b/cloudapi/src/model/DescribeLogConfigRequest.cc index 0afc55b8f..8513d4934 100644 --- a/cloudapi/src/model/DescribeLogConfigRequest.cc +++ b/cloudapi/src/model/DescribeLogConfigRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeLogConfigRequest; - -DescribeLogConfigRequest::DescribeLogConfigRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeLogConfig") -{} - -DescribeLogConfigRequest::~DescribeLogConfigRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeLogConfigRequest; + +DescribeLogConfigRequest::DescribeLogConfigRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeLogConfig") +{} + +DescribeLogConfigRequest::~DescribeLogConfigRequest() +{} + std::string DescribeLogConfigRequest::getLogType()const { return logType_; diff --git a/cloudapi/src/model/DescribeLogConfigResult.cc b/cloudapi/src/model/DescribeLogConfigResult.cc index 7cf3c730c..8297a6538 100644 --- a/cloudapi/src/model/DescribeLogConfigResult.cc +++ b/cloudapi/src/model/DescribeLogConfigResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeLogConfigResult::DescribeLogConfigResult() : - ServiceResult() -{} - -DescribeLogConfigResult::DescribeLogConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLogConfigResult::~DescribeLogConfigResult() -{} - -void DescribeLogConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeLogConfigResult::DescribeLogConfigResult() : + ServiceResult() +{} + +DescribeLogConfigResult::DescribeLogConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLogConfigResult::~DescribeLogConfigResult() +{} + +void DescribeLogConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLogInfos = value["LogInfos"]["LogInfo"]; for (auto value : allLogInfos) { @@ -54,9 +57,9 @@ void DescribeLogConfigResult::parse(const std::string &payload) logInfosObject.logType = value["LogType"].asString(); logInfos_.push_back(logInfosObject); } - -} - + +} + std::vector DescribeLogConfigResult::getLogInfos()const { return logInfos_; diff --git a/cloudapi/src/model/DescribePurchasedApiGroupRequest.cc b/cloudapi/src/model/DescribePurchasedApiGroupRequest.cc index afa7fab5b..1ee20bc4b 100644 --- a/cloudapi/src/model/DescribePurchasedApiGroupRequest.cc +++ b/cloudapi/src/model/DescribePurchasedApiGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribePurchasedApiGroupRequest; - -DescribePurchasedApiGroupRequest::DescribePurchasedApiGroupRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribePurchasedApiGroup") -{} - -DescribePurchasedApiGroupRequest::~DescribePurchasedApiGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribePurchasedApiGroupRequest; + +DescribePurchasedApiGroupRequest::DescribePurchasedApiGroupRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribePurchasedApiGroup") +{} + +DescribePurchasedApiGroupRequest::~DescribePurchasedApiGroupRequest() +{} + std::string DescribePurchasedApiGroupRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribePurchasedApiGroupResult.cc b/cloudapi/src/model/DescribePurchasedApiGroupResult.cc index 7b13908f6..2c6e05410 100644 --- a/cloudapi/src/model/DescribePurchasedApiGroupResult.cc +++ b/cloudapi/src/model/DescribePurchasedApiGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribePurchasedApiGroupResult::DescribePurchasedApiGroupResult() : - ServiceResult() -{} - -DescribePurchasedApiGroupResult::DescribePurchasedApiGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePurchasedApiGroupResult::~DescribePurchasedApiGroupResult() -{} - -void DescribePurchasedApiGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribePurchasedApiGroupResult::DescribePurchasedApiGroupResult() : + ServiceResult() +{} + +DescribePurchasedApiGroupResult::DescribePurchasedApiGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePurchasedApiGroupResult::~DescribePurchasedApiGroupResult() +{} + +void DescribePurchasedApiGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["DomainItem"]; for (auto value : allDomains) { @@ -60,9 +63,9 @@ void DescribePurchasedApiGroupResult::parse(const std::string &payload) regionId_ = value["RegionId"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - -} - + +} + std::vector DescribePurchasedApiGroupResult::getDomains()const { return domains_; diff --git a/cloudapi/src/model/DescribePurchasedApiGroupsRequest.cc b/cloudapi/src/model/DescribePurchasedApiGroupsRequest.cc index 35de4456d..b716524ed 100644 --- a/cloudapi/src/model/DescribePurchasedApiGroupsRequest.cc +++ b/cloudapi/src/model/DescribePurchasedApiGroupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribePurchasedApiGroupsRequest; - -DescribePurchasedApiGroupsRequest::DescribePurchasedApiGroupsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribePurchasedApiGroups") -{} - -DescribePurchasedApiGroupsRequest::~DescribePurchasedApiGroupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribePurchasedApiGroupsRequest; + +DescribePurchasedApiGroupsRequest::DescribePurchasedApiGroupsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribePurchasedApiGroups") +{} + +DescribePurchasedApiGroupsRequest::~DescribePurchasedApiGroupsRequest() +{} + std::string DescribePurchasedApiGroupsRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribePurchasedApiGroupsResult.cc b/cloudapi/src/model/DescribePurchasedApiGroupsResult.cc index 6466b85ff..e4a0bb7a9 100644 --- a/cloudapi/src/model/DescribePurchasedApiGroupsResult.cc +++ b/cloudapi/src/model/DescribePurchasedApiGroupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribePurchasedApiGroupsResult::DescribePurchasedApiGroupsResult() : - ServiceResult() -{} - -DescribePurchasedApiGroupsResult::DescribePurchasedApiGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePurchasedApiGroupsResult::~DescribePurchasedApiGroupsResult() -{} - -void DescribePurchasedApiGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribePurchasedApiGroupsResult::DescribePurchasedApiGroupsResult() : + ServiceResult() +{} + +DescribePurchasedApiGroupsResult::DescribePurchasedApiGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePurchasedApiGroupsResult::~DescribePurchasedApiGroupsResult() +{} + +void DescribePurchasedApiGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allPurchasedApiGroupAttributes = value["PurchasedApiGroupAttributes"]["PurchasedApiGroupAttribute"]; for (auto value : allPurchasedApiGroupAttributes) { @@ -72,9 +75,9 @@ void DescribePurchasedApiGroupsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribePurchasedApiGroupsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribePurchasedApisRequest.cc b/cloudapi/src/model/DescribePurchasedApisRequest.cc index 0ec70d9a3..e88a117b2 100644 --- a/cloudapi/src/model/DescribePurchasedApisRequest.cc +++ b/cloudapi/src/model/DescribePurchasedApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribePurchasedApisRequest; - -DescribePurchasedApisRequest::DescribePurchasedApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribePurchasedApis") -{} - -DescribePurchasedApisRequest::~DescribePurchasedApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribePurchasedApisRequest; + +DescribePurchasedApisRequest::DescribePurchasedApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribePurchasedApis") +{} + +DescribePurchasedApisRequest::~DescribePurchasedApisRequest() +{} + std::string DescribePurchasedApisRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribePurchasedApisResult.cc b/cloudapi/src/model/DescribePurchasedApisResult.cc index f57f543fe..478672e42 100644 --- a/cloudapi/src/model/DescribePurchasedApisResult.cc +++ b/cloudapi/src/model/DescribePurchasedApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribePurchasedApisResult::DescribePurchasedApisResult() : - ServiceResult() -{} - -DescribePurchasedApisResult::DescribePurchasedApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePurchasedApisResult::~DescribePurchasedApisResult() -{} - -void DescribePurchasedApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribePurchasedApisResult::DescribePurchasedApisResult() : + ServiceResult() +{} + +DescribePurchasedApisResult::DescribePurchasedApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePurchasedApisResult::~DescribePurchasedApisResult() +{} + +void DescribePurchasedApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allPurchasedApis = value["PurchasedApis"]["PurchasedApi"]; for (auto value : allPurchasedApis) { @@ -68,9 +71,9 @@ void DescribePurchasedApisResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribePurchasedApisResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeRegionsRequest.cc b/cloudapi/src/model/DescribeRegionsRequest.cc index 5c1037e12..d0ddd8491 100644 --- a/cloudapi/src/model/DescribeRegionsRequest.cc +++ b/cloudapi/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeRegions") -{} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + std::string DescribeRegionsRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeRegionsResult.cc b/cloudapi/src/model/DescribeRegionsResult.cc index 245a86221..292b57d76 100644 --- a/cloudapi/src/model/DescribeRegionsResult.cc +++ b/cloudapi/src/model/DescribeRegionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) { @@ -52,9 +55,9 @@ void DescribeRegionsResult::parse(const std::string &payload) regionsObject.regionEndpoint = value["RegionEndpoint"].asString(); regions_.push_back(regionsObject); } - -} - + +} + std::vector DescribeRegionsResult::getRegions()const { return regions_; diff --git a/cloudapi/src/model/DescribeSignaturesByApiRequest.cc b/cloudapi/src/model/DescribeSignaturesByApiRequest.cc index b0fd7eb17..b11eaf0be 100644 --- a/cloudapi/src/model/DescribeSignaturesByApiRequest.cc +++ b/cloudapi/src/model/DescribeSignaturesByApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeSignaturesByApiRequest; - -DescribeSignaturesByApiRequest::DescribeSignaturesByApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeSignaturesByApi") -{} - -DescribeSignaturesByApiRequest::~DescribeSignaturesByApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeSignaturesByApiRequest; + +DescribeSignaturesByApiRequest::DescribeSignaturesByApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeSignaturesByApi") +{} + +DescribeSignaturesByApiRequest::~DescribeSignaturesByApiRequest() +{} + std::string DescribeSignaturesByApiRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeSignaturesByApiResult.cc b/cloudapi/src/model/DescribeSignaturesByApiResult.cc index 5d17e241c..32c59dad2 100644 --- a/cloudapi/src/model/DescribeSignaturesByApiResult.cc +++ b/cloudapi/src/model/DescribeSignaturesByApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeSignaturesByApiResult::DescribeSignaturesByApiResult() : - ServiceResult() -{} - -DescribeSignaturesByApiResult::DescribeSignaturesByApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSignaturesByApiResult::~DescribeSignaturesByApiResult() -{} - -void DescribeSignaturesByApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeSignaturesByApiResult::DescribeSignaturesByApiResult() : + ServiceResult() +{} + +DescribeSignaturesByApiResult::DescribeSignaturesByApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSignaturesByApiResult::~DescribeSignaturesByApiResult() +{} + +void DescribeSignaturesByApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSignatures = value["Signatures"]["SignatureItem"]; for (auto value : allSignatures) { @@ -52,9 +55,9 @@ void DescribeSignaturesByApiResult::parse(const std::string &payload) signaturesObject.boundTime = value["BoundTime"].asString(); signatures_.push_back(signaturesObject); } - -} - + +} + std::vector DescribeSignaturesByApiResult::getSignatures()const { return signatures_; diff --git a/cloudapi/src/model/DescribeSignaturesRequest.cc b/cloudapi/src/model/DescribeSignaturesRequest.cc index b1dedb465..2f4f047d7 100644 --- a/cloudapi/src/model/DescribeSignaturesRequest.cc +++ b/cloudapi/src/model/DescribeSignaturesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeSignaturesRequest; - -DescribeSignaturesRequest::DescribeSignaturesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeSignatures") -{} - -DescribeSignaturesRequest::~DescribeSignaturesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeSignaturesRequest; + +DescribeSignaturesRequest::DescribeSignaturesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeSignatures") +{} + +DescribeSignaturesRequest::~DescribeSignaturesRequest() +{} + std::string DescribeSignaturesRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeSignaturesResult.cc b/cloudapi/src/model/DescribeSignaturesResult.cc index 710967085..085ad4c01 100644 --- a/cloudapi/src/model/DescribeSignaturesResult.cc +++ b/cloudapi/src/model/DescribeSignaturesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeSignaturesResult::DescribeSignaturesResult() : - ServiceResult() -{} - -DescribeSignaturesResult::DescribeSignaturesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSignaturesResult::~DescribeSignaturesResult() -{} - -void DescribeSignaturesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeSignaturesResult::DescribeSignaturesResult() : + ServiceResult() +{} + +DescribeSignaturesResult::DescribeSignaturesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSignaturesResult::~DescribeSignaturesResult() +{} + +void DescribeSignaturesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSignatureInfos = value["SignatureInfos"]["SignatureInfo"]; for (auto value : allSignatureInfos) { @@ -66,9 +69,9 @@ void DescribeSignaturesResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + std::vector DescribeSignaturesResult::getSignatureInfos()const { return signatureInfos_; diff --git a/cloudapi/src/model/DescribeSystemParametersRequest.cc b/cloudapi/src/model/DescribeSystemParametersRequest.cc index 96fdfb385..faecdc5b1 100644 --- a/cloudapi/src/model/DescribeSystemParametersRequest.cc +++ b/cloudapi/src/model/DescribeSystemParametersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeSystemParametersRequest; - -DescribeSystemParametersRequest::DescribeSystemParametersRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeSystemParameters") -{} - -DescribeSystemParametersRequest::~DescribeSystemParametersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeSystemParametersRequest; + +DescribeSystemParametersRequest::DescribeSystemParametersRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeSystemParameters") +{} + +DescribeSystemParametersRequest::~DescribeSystemParametersRequest() +{} + std::string DescribeSystemParametersRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeSystemParametersResult.cc b/cloudapi/src/model/DescribeSystemParametersResult.cc index 5b30552d1..7b5196f22 100644 --- a/cloudapi/src/model/DescribeSystemParametersResult.cc +++ b/cloudapi/src/model/DescribeSystemParametersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeSystemParametersResult::DescribeSystemParametersResult() : - ServiceResult() -{} - -DescribeSystemParametersResult::DescribeSystemParametersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSystemParametersResult::~DescribeSystemParametersResult() -{} - -void DescribeSystemParametersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeSystemParametersResult::DescribeSystemParametersResult() : + ServiceResult() +{} + +DescribeSystemParametersResult::DescribeSystemParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSystemParametersResult::~DescribeSystemParametersResult() +{} + +void DescribeSystemParametersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSystemParams = value["SystemParams"]["SystemParamItem"]; for (auto value : allSystemParams) { @@ -54,9 +57,9 @@ void DescribeSystemParametersResult::parse(const std::string &payload) systemParamsObject.description = value["Description"].asString(); systemParams_.push_back(systemParamsObject); } - -} - + +} + std::vector DescribeSystemParametersResult::getSystemParams()const { return systemParams_; diff --git a/cloudapi/src/model/DescribeTrafficControlsByApiRequest.cc b/cloudapi/src/model/DescribeTrafficControlsByApiRequest.cc index 9844d5d0c..8e2a23797 100644 --- a/cloudapi/src/model/DescribeTrafficControlsByApiRequest.cc +++ b/cloudapi/src/model/DescribeTrafficControlsByApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeTrafficControlsByApiRequest; - -DescribeTrafficControlsByApiRequest::DescribeTrafficControlsByApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeTrafficControlsByApi") -{} - -DescribeTrafficControlsByApiRequest::~DescribeTrafficControlsByApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeTrafficControlsByApiRequest; + +DescribeTrafficControlsByApiRequest::DescribeTrafficControlsByApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeTrafficControlsByApi") +{} + +DescribeTrafficControlsByApiRequest::~DescribeTrafficControlsByApiRequest() +{} + std::string DescribeTrafficControlsByApiRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/DescribeTrafficControlsByApiResult.cc b/cloudapi/src/model/DescribeTrafficControlsByApiResult.cc index a84282219..0acbc1a8a 100644 --- a/cloudapi/src/model/DescribeTrafficControlsByApiResult.cc +++ b/cloudapi/src/model/DescribeTrafficControlsByApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeTrafficControlsByApiResult::DescribeTrafficControlsByApiResult() : - ServiceResult() -{} - -DescribeTrafficControlsByApiResult::DescribeTrafficControlsByApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTrafficControlsByApiResult::~DescribeTrafficControlsByApiResult() -{} - -void DescribeTrafficControlsByApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeTrafficControlsByApiResult::DescribeTrafficControlsByApiResult() : + ServiceResult() +{} + +DescribeTrafficControlsByApiResult::DescribeTrafficControlsByApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTrafficControlsByApiResult::~DescribeTrafficControlsByApiResult() +{} + +void DescribeTrafficControlsByApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTrafficControlItems = value["TrafficControlItems"]["TrafficControlItem"]; for (auto value : allTrafficControlItems) { @@ -52,9 +55,9 @@ void DescribeTrafficControlsByApiResult::parse(const std::string &payload) trafficControlItemsObject.boundTime = value["BoundTime"].asString(); trafficControlItems_.push_back(trafficControlItemsObject); } - -} - + +} + std::vector DescribeTrafficControlsByApiResult::getTrafficControlItems()const { return trafficControlItems_; diff --git a/cloudapi/src/model/DescribeTrafficControlsRequest.cc b/cloudapi/src/model/DescribeTrafficControlsRequest.cc index 070f5eec1..f46c61b79 100644 --- a/cloudapi/src/model/DescribeTrafficControlsRequest.cc +++ b/cloudapi/src/model/DescribeTrafficControlsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeTrafficControlsRequest; - -DescribeTrafficControlsRequest::DescribeTrafficControlsRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeTrafficControls") -{} - -DescribeTrafficControlsRequest::~DescribeTrafficControlsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeTrafficControlsRequest; + +DescribeTrafficControlsRequest::DescribeTrafficControlsRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeTrafficControls") +{} + +DescribeTrafficControlsRequest::~DescribeTrafficControlsRequest() +{} + std::string DescribeTrafficControlsRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/DescribeTrafficControlsResult.cc b/cloudapi/src/model/DescribeTrafficControlsResult.cc index babf6c1d0..af04631dc 100644 --- a/cloudapi/src/model/DescribeTrafficControlsResult.cc +++ b/cloudapi/src/model/DescribeTrafficControlsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeTrafficControlsResult::DescribeTrafficControlsResult() : - ServiceResult() -{} - -DescribeTrafficControlsResult::DescribeTrafficControlsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTrafficControlsResult::~DescribeTrafficControlsResult() -{} - -void DescribeTrafficControlsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeTrafficControlsResult::DescribeTrafficControlsResult() : + ServiceResult() +{} + +DescribeTrafficControlsResult::DescribeTrafficControlsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTrafficControlsResult::~DescribeTrafficControlsResult() +{} + +void DescribeTrafficControlsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTrafficControls = value["TrafficControls"]["TrafficControl"]; for (auto value : allTrafficControls) { @@ -88,9 +91,9 @@ void DescribeTrafficControlsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeTrafficControlsResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/DescribeVpcAccessesRequest.cc b/cloudapi/src/model/DescribeVpcAccessesRequest.cc index 17a0e17f0..fd5677ba7 100644 --- a/cloudapi/src/model/DescribeVpcAccessesRequest.cc +++ b/cloudapi/src/model/DescribeVpcAccessesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeVpcAccessesRequest; - -DescribeVpcAccessesRequest::DescribeVpcAccessesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "DescribeVpcAccesses") -{} - -DescribeVpcAccessesRequest::~DescribeVpcAccessesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::DescribeVpcAccessesRequest; + +DescribeVpcAccessesRequest::DescribeVpcAccessesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "DescribeVpcAccesses") +{} + +DescribeVpcAccessesRequest::~DescribeVpcAccessesRequest() +{} + std::string DescribeVpcAccessesRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/DescribeVpcAccessesResult.cc b/cloudapi/src/model/DescribeVpcAccessesResult.cc index ec4999f74..4d8c82eb1 100644 --- a/cloudapi/src/model/DescribeVpcAccessesResult.cc +++ b/cloudapi/src/model/DescribeVpcAccessesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -DescribeVpcAccessesResult::DescribeVpcAccessesResult() : - ServiceResult() -{} - -DescribeVpcAccessesResult::DescribeVpcAccessesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVpcAccessesResult::~DescribeVpcAccessesResult() -{} - -void DescribeVpcAccessesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +DescribeVpcAccessesResult::DescribeVpcAccessesResult() : + ServiceResult() +{} + +DescribeVpcAccessesResult::DescribeVpcAccessesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcAccessesResult::~DescribeVpcAccessesResult() +{} + +void DescribeVpcAccessesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVpcAccessAttributes = value["VpcAccessAttributes"]["VpcAccessAttribute"]; for (auto value : allVpcAccessAttributes) { @@ -64,9 +67,9 @@ void DescribeVpcAccessesResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - + +} + int DescribeVpcAccessesResult::getTotalCount()const { return totalCount_; diff --git a/cloudapi/src/model/ImportSwaggerRequest.cc b/cloudapi/src/model/ImportSwaggerRequest.cc index e35f73e92..3492b7f83 100644 --- a/cloudapi/src/model/ImportSwaggerRequest.cc +++ b/cloudapi/src/model/ImportSwaggerRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ImportSwaggerRequest; - -ImportSwaggerRequest::ImportSwaggerRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ImportSwagger") -{} - -ImportSwaggerRequest::~ImportSwaggerRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ImportSwaggerRequest; + +ImportSwaggerRequest::ImportSwaggerRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ImportSwagger") +{} + +ImportSwaggerRequest::~ImportSwaggerRequest() +{} + std::string ImportSwaggerRequest::getDataFormat()const { return dataFormat_; diff --git a/cloudapi/src/model/ImportSwaggerResult.cc b/cloudapi/src/model/ImportSwaggerResult.cc index c85881229..a406d0659 100644 --- a/cloudapi/src/model/ImportSwaggerResult.cc +++ b/cloudapi/src/model/ImportSwaggerResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ImportSwaggerResult::ImportSwaggerResult() : - ServiceResult() -{} - -ImportSwaggerResult::ImportSwaggerResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportSwaggerResult::~ImportSwaggerResult() -{} - -void ImportSwaggerResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ImportSwaggerResult::ImportSwaggerResult() : + ServiceResult() +{} + +ImportSwaggerResult::ImportSwaggerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportSwaggerResult::~ImportSwaggerResult() +{} + +void ImportSwaggerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSuccess = value["Success"]["ApiImportSwaggerSuccess"]; for (auto value : allSuccess) { @@ -66,9 +69,9 @@ void ImportSwaggerResult::parse(const std::string &payload) failedObject.errorMsg = value["ErrorMsg"].asString(); failed_.push_back(failedObject); } - -} - + +} + std::vector ImportSwaggerResult::getFailed()const { return failed_; diff --git a/cloudapi/src/model/ListTagResourcesRequest.cc b/cloudapi/src/model/ListTagResourcesRequest.cc index 17d0dd202..1b0135a1b 100644 --- a/cloudapi/src/model/ListTagResourcesRequest.cc +++ b/cloudapi/src/model/ListTagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ListTagResources") -{} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ListTagResources") +{} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + std::vector ListTagResourcesRequest::getResourceId()const { return resourceId_; diff --git a/cloudapi/src/model/ListTagResourcesResult.cc b/cloudapi/src/model/ListTagResourcesResult.cc index 60d6cb069..0f216f017 100644 --- a/cloudapi/src/model/ListTagResourcesResult.cc +++ b/cloudapi/src/model/ListTagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ListTagResourcesResult::ListTagResourcesResult() : - ServiceResult() -{} - -ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagResourcesResult::~ListTagResourcesResult() -{} - -void ListTagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTagResources = value["TagResources"]["TagResource"]; for (auto value : allTagResources) { @@ -56,9 +59,9 @@ void ListTagResourcesResult::parse(const std::string &payload) } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); - -} - + +} + std::string ListTagResourcesResult::getNextToken()const { return nextToken_; diff --git a/cloudapi/src/model/ModifyApiGroupRequest.cc b/cloudapi/src/model/ModifyApiGroupRequest.cc index 40657534a..104fa7695 100644 --- a/cloudapi/src/model/ModifyApiGroupRequest.cc +++ b/cloudapi/src/model/ModifyApiGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyApiGroupRequest; - -ModifyApiGroupRequest::ModifyApiGroupRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifyApiGroup") -{} - -ModifyApiGroupRequest::~ModifyApiGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyApiGroupRequest; + +ModifyApiGroupRequest::ModifyApiGroupRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifyApiGroup") +{} + +ModifyApiGroupRequest::~ModifyApiGroupRequest() +{} + std::string ModifyApiGroupRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/ModifyApiGroupResult.cc b/cloudapi/src/model/ModifyApiGroupResult.cc index c3547a29b..ac70d0bab 100644 --- a/cloudapi/src/model/ModifyApiGroupResult.cc +++ b/cloudapi/src/model/ModifyApiGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifyApiGroupResult::ModifyApiGroupResult() : - ServiceResult() -{} - -ModifyApiGroupResult::ModifyApiGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyApiGroupResult::~ModifyApiGroupResult() -{} - -void ModifyApiGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifyApiGroupResult::ModifyApiGroupResult() : + ServiceResult() +{} + +ModifyApiGroupResult::ModifyApiGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyApiGroupResult::~ModifyApiGroupResult() +{} + +void ModifyApiGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); if(!value["GroupName"].isNull()) @@ -48,9 +51,9 @@ void ModifyApiGroupResult::parse(const std::string &payload) subDomain_ = value["SubDomain"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - -} - + +} + std::string ModifyApiGroupResult::getGroupName()const { return groupName_; diff --git a/cloudapi/src/model/ModifyApiRequest.cc b/cloudapi/src/model/ModifyApiRequest.cc index a478965ba..0281b13df 100644 --- a/cloudapi/src/model/ModifyApiRequest.cc +++ b/cloudapi/src/model/ModifyApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyApiRequest; - -ModifyApiRequest::ModifyApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifyApi") -{} - -ModifyApiRequest::~ModifyApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyApiRequest; + +ModifyApiRequest::ModifyApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifyApi") +{} + +ModifyApiRequest::~ModifyApiRequest() +{} + std::string ModifyApiRequest::getWebSocketApiType()const { return webSocketApiType_; diff --git a/cloudapi/src/model/ModifyApiResult.cc b/cloudapi/src/model/ModifyApiResult.cc index bb91b82e5..5518434cb 100644 --- a/cloudapi/src/model/ModifyApiResult.cc +++ b/cloudapi/src/model/ModifyApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifyApiResult::ModifyApiResult() : - ServiceResult() -{} - -ModifyApiResult::ModifyApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyApiResult::~ModifyApiResult() -{} - -void ModifyApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifyApiResult::ModifyApiResult() : + ServiceResult() +{} + +ModifyApiResult::ModifyApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyApiResult::~ModifyApiResult() +{} + +void ModifyApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ModifyAppRequest.cc b/cloudapi/src/model/ModifyAppRequest.cc index 075921ebf..ce54525c1 100644 --- a/cloudapi/src/model/ModifyAppRequest.cc +++ b/cloudapi/src/model/ModifyAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyAppRequest; - -ModifyAppRequest::ModifyAppRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifyApp") -{} - -ModifyAppRequest::~ModifyAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyAppRequest; + +ModifyAppRequest::ModifyAppRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifyApp") +{} + +ModifyAppRequest::~ModifyAppRequest() +{} + std::string ModifyAppRequest::getAppName()const { return appName_; diff --git a/cloudapi/src/model/ModifyAppResult.cc b/cloudapi/src/model/ModifyAppResult.cc index 347d5bd89..f5757075d 100644 --- a/cloudapi/src/model/ModifyAppResult.cc +++ b/cloudapi/src/model/ModifyAppResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifyAppResult::ModifyAppResult() : - ServiceResult() -{} - -ModifyAppResult::ModifyAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAppResult::~ModifyAppResult() -{} - -void ModifyAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifyAppResult::ModifyAppResult() : + ServiceResult() +{} + +ModifyAppResult::ModifyAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAppResult::~ModifyAppResult() +{} + +void ModifyAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ModifyIpControlPolicyItemRequest.cc b/cloudapi/src/model/ModifyIpControlPolicyItemRequest.cc index 0f8a8e23c..0155b39ca 100644 --- a/cloudapi/src/model/ModifyIpControlPolicyItemRequest.cc +++ b/cloudapi/src/model/ModifyIpControlPolicyItemRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyIpControlPolicyItemRequest; - -ModifyIpControlPolicyItemRequest::ModifyIpControlPolicyItemRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifyIpControlPolicyItem") -{} - -ModifyIpControlPolicyItemRequest::~ModifyIpControlPolicyItemRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyIpControlPolicyItemRequest; + +ModifyIpControlPolicyItemRequest::ModifyIpControlPolicyItemRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifyIpControlPolicyItem") +{} + +ModifyIpControlPolicyItemRequest::~ModifyIpControlPolicyItemRequest() +{} + std::string ModifyIpControlPolicyItemRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/ModifyIpControlPolicyItemResult.cc b/cloudapi/src/model/ModifyIpControlPolicyItemResult.cc index 7c864c62c..143e04e9f 100644 --- a/cloudapi/src/model/ModifyIpControlPolicyItemResult.cc +++ b/cloudapi/src/model/ModifyIpControlPolicyItemResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifyIpControlPolicyItemResult::ModifyIpControlPolicyItemResult() : - ServiceResult() -{} - -ModifyIpControlPolicyItemResult::ModifyIpControlPolicyItemResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyIpControlPolicyItemResult::~ModifyIpControlPolicyItemResult() -{} - -void ModifyIpControlPolicyItemResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifyIpControlPolicyItemResult::ModifyIpControlPolicyItemResult() : + ServiceResult() +{} + +ModifyIpControlPolicyItemResult::ModifyIpControlPolicyItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyIpControlPolicyItemResult::~ModifyIpControlPolicyItemResult() +{} + +void ModifyIpControlPolicyItemResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ModifyIpControlRequest.cc b/cloudapi/src/model/ModifyIpControlRequest.cc index 9ec892d0a..37f2c4885 100644 --- a/cloudapi/src/model/ModifyIpControlRequest.cc +++ b/cloudapi/src/model/ModifyIpControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyIpControlRequest; - -ModifyIpControlRequest::ModifyIpControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifyIpControl") -{} - -ModifyIpControlRequest::~ModifyIpControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyIpControlRequest; + +ModifyIpControlRequest::ModifyIpControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifyIpControl") +{} + +ModifyIpControlRequest::~ModifyIpControlRequest() +{} + std::string ModifyIpControlRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/ModifyIpControlResult.cc b/cloudapi/src/model/ModifyIpControlResult.cc index 4356cf1ff..96c5b66f1 100644 --- a/cloudapi/src/model/ModifyIpControlResult.cc +++ b/cloudapi/src/model/ModifyIpControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifyIpControlResult::ModifyIpControlResult() : - ServiceResult() -{} - -ModifyIpControlResult::ModifyIpControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyIpControlResult::~ModifyIpControlResult() -{} - -void ModifyIpControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifyIpControlResult::ModifyIpControlResult() : + ServiceResult() +{} + +ModifyIpControlResult::ModifyIpControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyIpControlResult::~ModifyIpControlResult() +{} + +void ModifyIpControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ModifyLogConfigRequest.cc b/cloudapi/src/model/ModifyLogConfigRequest.cc index 70460d60d..b85af852c 100644 --- a/cloudapi/src/model/ModifyLogConfigRequest.cc +++ b/cloudapi/src/model/ModifyLogConfigRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyLogConfigRequest; - -ModifyLogConfigRequest::ModifyLogConfigRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifyLogConfig") -{} - -ModifyLogConfigRequest::~ModifyLogConfigRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyLogConfigRequest; + +ModifyLogConfigRequest::ModifyLogConfigRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifyLogConfig") +{} + +ModifyLogConfigRequest::~ModifyLogConfigRequest() +{} + std::string ModifyLogConfigRequest::getSlsLogStore()const { return slsLogStore_; diff --git a/cloudapi/src/model/ModifyLogConfigResult.cc b/cloudapi/src/model/ModifyLogConfigResult.cc index 7af4c4a91..640f59136 100644 --- a/cloudapi/src/model/ModifyLogConfigResult.cc +++ b/cloudapi/src/model/ModifyLogConfigResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifyLogConfigResult::ModifyLogConfigResult() : - ServiceResult() -{} - -ModifyLogConfigResult::ModifyLogConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyLogConfigResult::~ModifyLogConfigResult() -{} - -void ModifyLogConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifyLogConfigResult::ModifyLogConfigResult() : + ServiceResult() +{} + +ModifyLogConfigResult::ModifyLogConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLogConfigResult::~ModifyLogConfigResult() +{} + +void ModifyLogConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ModifySignatureRequest.cc b/cloudapi/src/model/ModifySignatureRequest.cc index e97bbc0d0..a7f92f936 100644 --- a/cloudapi/src/model/ModifySignatureRequest.cc +++ b/cloudapi/src/model/ModifySignatureRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifySignatureRequest; - -ModifySignatureRequest::ModifySignatureRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifySignature") -{} - -ModifySignatureRequest::~ModifySignatureRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifySignatureRequest; + +ModifySignatureRequest::ModifySignatureRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifySignature") +{} + +ModifySignatureRequest::~ModifySignatureRequest() +{} + std::string ModifySignatureRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/ModifySignatureResult.cc b/cloudapi/src/model/ModifySignatureResult.cc index 059456dfd..515078e6a 100644 --- a/cloudapi/src/model/ModifySignatureResult.cc +++ b/cloudapi/src/model/ModifySignatureResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifySignatureResult::ModifySignatureResult() : - ServiceResult() -{} - -ModifySignatureResult::ModifySignatureResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySignatureResult::~ModifySignatureResult() -{} - -void ModifySignatureResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifySignatureResult::ModifySignatureResult() : + ServiceResult() +{} + +ModifySignatureResult::ModifySignatureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySignatureResult::~ModifySignatureResult() +{} + +void ModifySignatureResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SignatureId"].isNull()) signatureId_ = value["SignatureId"].asString(); if(!value["SignatureName"].isNull()) signatureName_ = value["SignatureName"].asString(); - -} - + +} + std::string ModifySignatureResult::getSignatureId()const { return signatureId_; diff --git a/cloudapi/src/model/ModifyTrafficControlRequest.cc b/cloudapi/src/model/ModifyTrafficControlRequest.cc index af06e2e4b..4142dd0e6 100644 --- a/cloudapi/src/model/ModifyTrafficControlRequest.cc +++ b/cloudapi/src/model/ModifyTrafficControlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyTrafficControlRequest; - -ModifyTrafficControlRequest::ModifyTrafficControlRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ModifyTrafficControl") -{} - -ModifyTrafficControlRequest::~ModifyTrafficControlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ModifyTrafficControlRequest; + +ModifyTrafficControlRequest::ModifyTrafficControlRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ModifyTrafficControl") +{} + +ModifyTrafficControlRequest::~ModifyTrafficControlRequest() +{} + std::string ModifyTrafficControlRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/ModifyTrafficControlResult.cc b/cloudapi/src/model/ModifyTrafficControlResult.cc index b984898e2..49bcc439c 100644 --- a/cloudapi/src/model/ModifyTrafficControlResult.cc +++ b/cloudapi/src/model/ModifyTrafficControlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ModifyTrafficControlResult::ModifyTrafficControlResult() : - ServiceResult() -{} - -ModifyTrafficControlResult::ModifyTrafficControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyTrafficControlResult::~ModifyTrafficControlResult() -{} - -void ModifyTrafficControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ModifyTrafficControlResult::ModifyTrafficControlResult() : + ServiceResult() +{} + +ModifyTrafficControlResult::ModifyTrafficControlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTrafficControlResult::~ModifyTrafficControlResult() +{} + +void ModifyTrafficControlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ReactivateDomainRequest.cc b/cloudapi/src/model/ReactivateDomainRequest.cc index 519d6a3fe..68f7edebb 100644 --- a/cloudapi/src/model/ReactivateDomainRequest.cc +++ b/cloudapi/src/model/ReactivateDomainRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ReactivateDomainRequest; - -ReactivateDomainRequest::ReactivateDomainRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ReactivateDomain") -{} - -ReactivateDomainRequest::~ReactivateDomainRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ReactivateDomainRequest; + +ReactivateDomainRequest::ReactivateDomainRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ReactivateDomain") +{} + +ReactivateDomainRequest::~ReactivateDomainRequest() +{} + std::string ReactivateDomainRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/ReactivateDomainResult.cc b/cloudapi/src/model/ReactivateDomainResult.cc index 30aa90bec..1e5dfd6be 100644 --- a/cloudapi/src/model/ReactivateDomainResult.cc +++ b/cloudapi/src/model/ReactivateDomainResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ReactivateDomainResult::ReactivateDomainResult() : - ServiceResult() -{} - -ReactivateDomainResult::ReactivateDomainResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReactivateDomainResult::~ReactivateDomainResult() -{} - -void ReactivateDomainResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ReactivateDomainResult::ReactivateDomainResult() : + ServiceResult() +{} + +ReactivateDomainResult::ReactivateDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReactivateDomainResult::~ReactivateDomainResult() +{} + +void ReactivateDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/RemoveApisAuthoritiesRequest.cc b/cloudapi/src/model/RemoveApisAuthoritiesRequest.cc index 74dea667f..315ca22d3 100644 --- a/cloudapi/src/model/RemoveApisAuthoritiesRequest.cc +++ b/cloudapi/src/model/RemoveApisAuthoritiesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveApisAuthoritiesRequest; - -RemoveApisAuthoritiesRequest::RemoveApisAuthoritiesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "RemoveApisAuthorities") -{} - -RemoveApisAuthoritiesRequest::~RemoveApisAuthoritiesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveApisAuthoritiesRequest; + +RemoveApisAuthoritiesRequest::RemoveApisAuthoritiesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "RemoveApisAuthorities") +{} + +RemoveApisAuthoritiesRequest::~RemoveApisAuthoritiesRequest() +{} + std::string RemoveApisAuthoritiesRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/RemoveApisAuthoritiesResult.cc b/cloudapi/src/model/RemoveApisAuthoritiesResult.cc index a54a6d39d..8d87b72cf 100644 --- a/cloudapi/src/model/RemoveApisAuthoritiesResult.cc +++ b/cloudapi/src/model/RemoveApisAuthoritiesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -RemoveApisAuthoritiesResult::RemoveApisAuthoritiesResult() : - ServiceResult() -{} - -RemoveApisAuthoritiesResult::RemoveApisAuthoritiesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveApisAuthoritiesResult::~RemoveApisAuthoritiesResult() -{} - -void RemoveApisAuthoritiesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +RemoveApisAuthoritiesResult::RemoveApisAuthoritiesResult() : + ServiceResult() +{} + +RemoveApisAuthoritiesResult::RemoveApisAuthoritiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveApisAuthoritiesResult::~RemoveApisAuthoritiesResult() +{} + +void RemoveApisAuthoritiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/RemoveAppsAuthoritiesRequest.cc b/cloudapi/src/model/RemoveAppsAuthoritiesRequest.cc index 5a35657da..5c59ac456 100644 --- a/cloudapi/src/model/RemoveAppsAuthoritiesRequest.cc +++ b/cloudapi/src/model/RemoveAppsAuthoritiesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveAppsAuthoritiesRequest; - -RemoveAppsAuthoritiesRequest::RemoveAppsAuthoritiesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "RemoveAppsAuthorities") -{} - -RemoveAppsAuthoritiesRequest::~RemoveAppsAuthoritiesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveAppsAuthoritiesRequest; + +RemoveAppsAuthoritiesRequest::RemoveAppsAuthoritiesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "RemoveAppsAuthorities") +{} + +RemoveAppsAuthoritiesRequest::~RemoveAppsAuthoritiesRequest() +{} + std::string RemoveAppsAuthoritiesRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/RemoveAppsAuthoritiesResult.cc b/cloudapi/src/model/RemoveAppsAuthoritiesResult.cc index 094c24b35..1c893e224 100644 --- a/cloudapi/src/model/RemoveAppsAuthoritiesResult.cc +++ b/cloudapi/src/model/RemoveAppsAuthoritiesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -RemoveAppsAuthoritiesResult::RemoveAppsAuthoritiesResult() : - ServiceResult() -{} - -RemoveAppsAuthoritiesResult::RemoveAppsAuthoritiesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveAppsAuthoritiesResult::~RemoveAppsAuthoritiesResult() -{} - -void RemoveAppsAuthoritiesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +RemoveAppsAuthoritiesResult::RemoveAppsAuthoritiesResult() : + ServiceResult() +{} + +RemoveAppsAuthoritiesResult::RemoveAppsAuthoritiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveAppsAuthoritiesResult::~RemoveAppsAuthoritiesResult() +{} + +void RemoveAppsAuthoritiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/RemoveIpControlApisRequest.cc b/cloudapi/src/model/RemoveIpControlApisRequest.cc index 776892356..6cc47c084 100644 --- a/cloudapi/src/model/RemoveIpControlApisRequest.cc +++ b/cloudapi/src/model/RemoveIpControlApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveIpControlApisRequest; - -RemoveIpControlApisRequest::RemoveIpControlApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "RemoveIpControlApis") -{} - -RemoveIpControlApisRequest::~RemoveIpControlApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveIpControlApisRequest; + +RemoveIpControlApisRequest::RemoveIpControlApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "RemoveIpControlApis") +{} + +RemoveIpControlApisRequest::~RemoveIpControlApisRequest() +{} + std::string RemoveIpControlApisRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/RemoveIpControlApisResult.cc b/cloudapi/src/model/RemoveIpControlApisResult.cc index 614fb4ab0..deb6b6cf3 100644 --- a/cloudapi/src/model/RemoveIpControlApisResult.cc +++ b/cloudapi/src/model/RemoveIpControlApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -RemoveIpControlApisResult::RemoveIpControlApisResult() : - ServiceResult() -{} - -RemoveIpControlApisResult::RemoveIpControlApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveIpControlApisResult::~RemoveIpControlApisResult() -{} - -void RemoveIpControlApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +RemoveIpControlApisResult::RemoveIpControlApisResult() : + ServiceResult() +{} + +RemoveIpControlApisResult::RemoveIpControlApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveIpControlApisResult::~RemoveIpControlApisResult() +{} + +void RemoveIpControlApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/RemoveIpControlPolicyItemRequest.cc b/cloudapi/src/model/RemoveIpControlPolicyItemRequest.cc index 24bfe3f48..97160633a 100644 --- a/cloudapi/src/model/RemoveIpControlPolicyItemRequest.cc +++ b/cloudapi/src/model/RemoveIpControlPolicyItemRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveIpControlPolicyItemRequest; - -RemoveIpControlPolicyItemRequest::RemoveIpControlPolicyItemRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "RemoveIpControlPolicyItem") -{} - -RemoveIpControlPolicyItemRequest::~RemoveIpControlPolicyItemRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveIpControlPolicyItemRequest; + +RemoveIpControlPolicyItemRequest::RemoveIpControlPolicyItemRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "RemoveIpControlPolicyItem") +{} + +RemoveIpControlPolicyItemRequest::~RemoveIpControlPolicyItemRequest() +{} + std::string RemoveIpControlPolicyItemRequest::getIpControlId()const { return ipControlId_; diff --git a/cloudapi/src/model/RemoveIpControlPolicyItemResult.cc b/cloudapi/src/model/RemoveIpControlPolicyItemResult.cc index 4f0c3f836..14efedc77 100644 --- a/cloudapi/src/model/RemoveIpControlPolicyItemResult.cc +++ b/cloudapi/src/model/RemoveIpControlPolicyItemResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -RemoveIpControlPolicyItemResult::RemoveIpControlPolicyItemResult() : - ServiceResult() -{} - -RemoveIpControlPolicyItemResult::RemoveIpControlPolicyItemResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveIpControlPolicyItemResult::~RemoveIpControlPolicyItemResult() -{} - -void RemoveIpControlPolicyItemResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +RemoveIpControlPolicyItemResult::RemoveIpControlPolicyItemResult() : + ServiceResult() +{} + +RemoveIpControlPolicyItemResult::RemoveIpControlPolicyItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveIpControlPolicyItemResult::~RemoveIpControlPolicyItemResult() +{} + +void RemoveIpControlPolicyItemResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/RemoveSignatureApisRequest.cc b/cloudapi/src/model/RemoveSignatureApisRequest.cc index 8e733283a..6e76ba9a7 100644 --- a/cloudapi/src/model/RemoveSignatureApisRequest.cc +++ b/cloudapi/src/model/RemoveSignatureApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveSignatureApisRequest; - -RemoveSignatureApisRequest::RemoveSignatureApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "RemoveSignatureApis") -{} - -RemoveSignatureApisRequest::~RemoveSignatureApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveSignatureApisRequest; + +RemoveSignatureApisRequest::RemoveSignatureApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "RemoveSignatureApis") +{} + +RemoveSignatureApisRequest::~RemoveSignatureApisRequest() +{} + std::string RemoveSignatureApisRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/RemoveSignatureApisResult.cc b/cloudapi/src/model/RemoveSignatureApisResult.cc index 21d017256..5ad1d9727 100644 --- a/cloudapi/src/model/RemoveSignatureApisResult.cc +++ b/cloudapi/src/model/RemoveSignatureApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -RemoveSignatureApisResult::RemoveSignatureApisResult() : - ServiceResult() -{} - -RemoveSignatureApisResult::RemoveSignatureApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveSignatureApisResult::~RemoveSignatureApisResult() -{} - -void RemoveSignatureApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +RemoveSignatureApisResult::RemoveSignatureApisResult() : + ServiceResult() +{} + +RemoveSignatureApisResult::RemoveSignatureApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveSignatureApisResult::~RemoveSignatureApisResult() +{} + +void RemoveSignatureApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/RemoveTrafficControlApisRequest.cc b/cloudapi/src/model/RemoveTrafficControlApisRequest.cc index 4bcccb19f..12134a192 100644 --- a/cloudapi/src/model/RemoveTrafficControlApisRequest.cc +++ b/cloudapi/src/model/RemoveTrafficControlApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveTrafficControlApisRequest; - -RemoveTrafficControlApisRequest::RemoveTrafficControlApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "RemoveTrafficControlApis") -{} - -RemoveTrafficControlApisRequest::~RemoveTrafficControlApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveTrafficControlApisRequest; + +RemoveTrafficControlApisRequest::RemoveTrafficControlApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "RemoveTrafficControlApis") +{} + +RemoveTrafficControlApisRequest::~RemoveTrafficControlApisRequest() +{} + std::string RemoveTrafficControlApisRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/RemoveTrafficControlApisResult.cc b/cloudapi/src/model/RemoveTrafficControlApisResult.cc index d988f4419..841079030 100644 --- a/cloudapi/src/model/RemoveTrafficControlApisResult.cc +++ b/cloudapi/src/model/RemoveTrafficControlApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -RemoveTrafficControlApisResult::RemoveTrafficControlApisResult() : - ServiceResult() -{} - -RemoveTrafficControlApisResult::RemoveTrafficControlApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveTrafficControlApisResult::~RemoveTrafficControlApisResult() -{} - -void RemoveTrafficControlApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +RemoveTrafficControlApisResult::RemoveTrafficControlApisResult() : + ServiceResult() +{} + +RemoveTrafficControlApisResult::RemoveTrafficControlApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTrafficControlApisResult::~RemoveTrafficControlApisResult() +{} + +void RemoveTrafficControlApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/RemoveVpcAccessRequest.cc b/cloudapi/src/model/RemoveVpcAccessRequest.cc index 31cf66d88..e89735e35 100644 --- a/cloudapi/src/model/RemoveVpcAccessRequest.cc +++ b/cloudapi/src/model/RemoveVpcAccessRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveVpcAccessRequest; - -RemoveVpcAccessRequest::RemoveVpcAccessRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "RemoveVpcAccess") -{} - -RemoveVpcAccessRequest::~RemoveVpcAccessRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::RemoveVpcAccessRequest; + +RemoveVpcAccessRequest::RemoveVpcAccessRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "RemoveVpcAccess") +{} + +RemoveVpcAccessRequest::~RemoveVpcAccessRequest() +{} + std::string RemoveVpcAccessRequest::getInstanceId()const { return instanceId_; diff --git a/cloudapi/src/model/RemoveVpcAccessResult.cc b/cloudapi/src/model/RemoveVpcAccessResult.cc index 39d611595..860187b97 100644 --- a/cloudapi/src/model/RemoveVpcAccessResult.cc +++ b/cloudapi/src/model/RemoveVpcAccessResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -RemoveVpcAccessResult::RemoveVpcAccessResult() : - ServiceResult() -{} - -RemoveVpcAccessResult::RemoveVpcAccessResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveVpcAccessResult::~RemoveVpcAccessResult() -{} - -void RemoveVpcAccessResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +RemoveVpcAccessResult::RemoveVpcAccessResult() : + ServiceResult() +{} + +RemoveVpcAccessResult::RemoveVpcAccessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveVpcAccessResult::~RemoveVpcAccessResult() +{} + +void RemoveVpcAccessResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ResetAppCodeRequest.cc b/cloudapi/src/model/ResetAppCodeRequest.cc index 9f797962b..9a6f3e7a5 100644 --- a/cloudapi/src/model/ResetAppCodeRequest.cc +++ b/cloudapi/src/model/ResetAppCodeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ResetAppCodeRequest; - -ResetAppCodeRequest::ResetAppCodeRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ResetAppCode") -{} - -ResetAppCodeRequest::~ResetAppCodeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ResetAppCodeRequest; + +ResetAppCodeRequest::ResetAppCodeRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ResetAppCode") +{} + +ResetAppCodeRequest::~ResetAppCodeRequest() +{} + std::string ResetAppCodeRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/ResetAppCodeResult.cc b/cloudapi/src/model/ResetAppCodeResult.cc index 8e4d8efa4..b3b826d27 100644 --- a/cloudapi/src/model/ResetAppCodeResult.cc +++ b/cloudapi/src/model/ResetAppCodeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ResetAppCodeResult::ResetAppCodeResult() : - ServiceResult() -{} - -ResetAppCodeResult::ResetAppCodeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetAppCodeResult::~ResetAppCodeResult() -{} - -void ResetAppCodeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ResetAppCodeResult::ResetAppCodeResult() : + ServiceResult() +{} + +ResetAppCodeResult::ResetAppCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAppCodeResult::~ResetAppCodeResult() +{} + +void ResetAppCodeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/ResetAppSecretRequest.cc b/cloudapi/src/model/ResetAppSecretRequest.cc index d3dc901f8..e383eee08 100644 --- a/cloudapi/src/model/ResetAppSecretRequest.cc +++ b/cloudapi/src/model/ResetAppSecretRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::ResetAppSecretRequest; - -ResetAppSecretRequest::ResetAppSecretRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "ResetAppSecret") -{} - -ResetAppSecretRequest::~ResetAppSecretRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::ResetAppSecretRequest; + +ResetAppSecretRequest::ResetAppSecretRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "ResetAppSecret") +{} + +ResetAppSecretRequest::~ResetAppSecretRequest() +{} + std::string ResetAppSecretRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/ResetAppSecretResult.cc b/cloudapi/src/model/ResetAppSecretResult.cc index 8d9746e07..021c43b77 100644 --- a/cloudapi/src/model/ResetAppSecretResult.cc +++ b/cloudapi/src/model/ResetAppSecretResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -ResetAppSecretResult::ResetAppSecretResult() : - ServiceResult() -{} - -ResetAppSecretResult::ResetAppSecretResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetAppSecretResult::~ResetAppSecretResult() -{} - -void ResetAppSecretResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +ResetAppSecretResult::ResetAppSecretResult() : + ServiceResult() +{} + +ResetAppSecretResult::ResetAppSecretResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAppSecretResult::~ResetAppSecretResult() +{} + +void ResetAppSecretResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SdkGenerateByAppRequest.cc b/cloudapi/src/model/SdkGenerateByAppRequest.cc index 549f05646..5cfb9d5b4 100644 --- a/cloudapi/src/model/SdkGenerateByAppRequest.cc +++ b/cloudapi/src/model/SdkGenerateByAppRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SdkGenerateByAppRequest; - -SdkGenerateByAppRequest::SdkGenerateByAppRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SdkGenerateByApp") -{} - -SdkGenerateByAppRequest::~SdkGenerateByAppRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SdkGenerateByAppRequest; + +SdkGenerateByAppRequest::SdkGenerateByAppRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SdkGenerateByApp") +{} + +SdkGenerateByAppRequest::~SdkGenerateByAppRequest() +{} + std::string SdkGenerateByAppRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/SdkGenerateByAppResult.cc b/cloudapi/src/model/SdkGenerateByAppResult.cc index 515d37b4c..c4bd20858 100644 --- a/cloudapi/src/model/SdkGenerateByAppResult.cc +++ b/cloudapi/src/model/SdkGenerateByAppResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SdkGenerateByAppResult::SdkGenerateByAppResult() : - ServiceResult() -{} - -SdkGenerateByAppResult::SdkGenerateByAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SdkGenerateByAppResult::~SdkGenerateByAppResult() -{} - -void SdkGenerateByAppResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SdkGenerateByAppResult::SdkGenerateByAppResult() : + ServiceResult() +{} + +SdkGenerateByAppResult::SdkGenerateByAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SdkGenerateByAppResult::~SdkGenerateByAppResult() +{} + +void SdkGenerateByAppResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DownloadLink"].isNull()) downloadLink_ = value["DownloadLink"].asString(); - -} - + +} + std::string SdkGenerateByAppResult::getDownloadLink()const { return downloadLink_; diff --git a/cloudapi/src/model/SdkGenerateByGroupRequest.cc b/cloudapi/src/model/SdkGenerateByGroupRequest.cc index 584c639eb..1551d2151 100644 --- a/cloudapi/src/model/SdkGenerateByGroupRequest.cc +++ b/cloudapi/src/model/SdkGenerateByGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SdkGenerateByGroupRequest; - -SdkGenerateByGroupRequest::SdkGenerateByGroupRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SdkGenerateByGroup") -{} - -SdkGenerateByGroupRequest::~SdkGenerateByGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SdkGenerateByGroupRequest; + +SdkGenerateByGroupRequest::SdkGenerateByGroupRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SdkGenerateByGroup") +{} + +SdkGenerateByGroupRequest::~SdkGenerateByGroupRequest() +{} + std::string SdkGenerateByGroupRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/SdkGenerateByGroupResult.cc b/cloudapi/src/model/SdkGenerateByGroupResult.cc index cb7494958..2b6da884d 100644 --- a/cloudapi/src/model/SdkGenerateByGroupResult.cc +++ b/cloudapi/src/model/SdkGenerateByGroupResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SdkGenerateByGroupResult::SdkGenerateByGroupResult() : - ServiceResult() -{} - -SdkGenerateByGroupResult::SdkGenerateByGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SdkGenerateByGroupResult::~SdkGenerateByGroupResult() -{} - -void SdkGenerateByGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SdkGenerateByGroupResult::SdkGenerateByGroupResult() : + ServiceResult() +{} + +SdkGenerateByGroupResult::SdkGenerateByGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SdkGenerateByGroupResult::~SdkGenerateByGroupResult() +{} + +void SdkGenerateByGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DownloadLink"].isNull()) downloadLink_ = value["DownloadLink"].asString(); - -} - + +} + std::string SdkGenerateByGroupResult::getDownloadLink()const { return downloadLink_; diff --git a/cloudapi/src/model/SetApisAuthoritiesRequest.cc b/cloudapi/src/model/SetApisAuthoritiesRequest.cc index b74e46ac8..830c1e88c 100644 --- a/cloudapi/src/model/SetApisAuthoritiesRequest.cc +++ b/cloudapi/src/model/SetApisAuthoritiesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetApisAuthoritiesRequest; - -SetApisAuthoritiesRequest::SetApisAuthoritiesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetApisAuthorities") -{} - -SetApisAuthoritiesRequest::~SetApisAuthoritiesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetApisAuthoritiesRequest; + +SetApisAuthoritiesRequest::SetApisAuthoritiesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetApisAuthorities") +{} + +SetApisAuthoritiesRequest::~SetApisAuthoritiesRequest() +{} + std::string SetApisAuthoritiesRequest::getAuthVaildTime()const { return authVaildTime_; diff --git a/cloudapi/src/model/SetApisAuthoritiesResult.cc b/cloudapi/src/model/SetApisAuthoritiesResult.cc index e4f07164e..38b0c5bdd 100644 --- a/cloudapi/src/model/SetApisAuthoritiesResult.cc +++ b/cloudapi/src/model/SetApisAuthoritiesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetApisAuthoritiesResult::SetApisAuthoritiesResult() : - ServiceResult() -{} - -SetApisAuthoritiesResult::SetApisAuthoritiesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetApisAuthoritiesResult::~SetApisAuthoritiesResult() -{} - -void SetApisAuthoritiesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetApisAuthoritiesResult::SetApisAuthoritiesResult() : + ServiceResult() +{} + +SetApisAuthoritiesResult::SetApisAuthoritiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetApisAuthoritiesResult::~SetApisAuthoritiesResult() +{} + +void SetApisAuthoritiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SetAppsAuthoritiesRequest.cc b/cloudapi/src/model/SetAppsAuthoritiesRequest.cc index 64d8ca475..5736ce90d 100644 --- a/cloudapi/src/model/SetAppsAuthoritiesRequest.cc +++ b/cloudapi/src/model/SetAppsAuthoritiesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetAppsAuthoritiesRequest; - -SetAppsAuthoritiesRequest::SetAppsAuthoritiesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetAppsAuthorities") -{} - -SetAppsAuthoritiesRequest::~SetAppsAuthoritiesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetAppsAuthoritiesRequest; + +SetAppsAuthoritiesRequest::SetAppsAuthoritiesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetAppsAuthorities") +{} + +SetAppsAuthoritiesRequest::~SetAppsAuthoritiesRequest() +{} + std::string SetAppsAuthoritiesRequest::getAuthVaildTime()const { return authVaildTime_; diff --git a/cloudapi/src/model/SetAppsAuthoritiesResult.cc b/cloudapi/src/model/SetAppsAuthoritiesResult.cc index 3a9bd300e..d91f963fa 100644 --- a/cloudapi/src/model/SetAppsAuthoritiesResult.cc +++ b/cloudapi/src/model/SetAppsAuthoritiesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetAppsAuthoritiesResult::SetAppsAuthoritiesResult() : - ServiceResult() -{} - -SetAppsAuthoritiesResult::SetAppsAuthoritiesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetAppsAuthoritiesResult::~SetAppsAuthoritiesResult() -{} - -void SetAppsAuthoritiesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetAppsAuthoritiesResult::SetAppsAuthoritiesResult() : + ServiceResult() +{} + +SetAppsAuthoritiesResult::SetAppsAuthoritiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAppsAuthoritiesResult::~SetAppsAuthoritiesResult() +{} + +void SetAppsAuthoritiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SetDomainCertificateRequest.cc b/cloudapi/src/model/SetDomainCertificateRequest.cc index 1cec99953..3b5f43981 100644 --- a/cloudapi/src/model/SetDomainCertificateRequest.cc +++ b/cloudapi/src/model/SetDomainCertificateRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetDomainCertificateRequest; - -SetDomainCertificateRequest::SetDomainCertificateRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetDomainCertificate") -{} - -SetDomainCertificateRequest::~SetDomainCertificateRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetDomainCertificateRequest; + +SetDomainCertificateRequest::SetDomainCertificateRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetDomainCertificate") +{} + +SetDomainCertificateRequest::~SetDomainCertificateRequest() +{} + std::string SetDomainCertificateRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/SetDomainCertificateResult.cc b/cloudapi/src/model/SetDomainCertificateResult.cc index 15b68f2b6..32eabff00 100644 --- a/cloudapi/src/model/SetDomainCertificateResult.cc +++ b/cloudapi/src/model/SetDomainCertificateResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetDomainCertificateResult::SetDomainCertificateResult() : - ServiceResult() -{} - -SetDomainCertificateResult::SetDomainCertificateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetDomainCertificateResult::~SetDomainCertificateResult() -{} - -void SetDomainCertificateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetDomainCertificateResult::SetDomainCertificateResult() : + ServiceResult() +{} + +SetDomainCertificateResult::SetDomainCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDomainCertificateResult::~SetDomainCertificateResult() +{} + +void SetDomainCertificateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SetDomainRequest.cc b/cloudapi/src/model/SetDomainRequest.cc index 1d461d919..51a2095d2 100644 --- a/cloudapi/src/model/SetDomainRequest.cc +++ b/cloudapi/src/model/SetDomainRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetDomainRequest; - -SetDomainRequest::SetDomainRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetDomain") -{} - -SetDomainRequest::~SetDomainRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetDomainRequest; + +SetDomainRequest::SetDomainRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetDomain") +{} + +SetDomainRequest::~SetDomainRequest() +{} + std::string SetDomainRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/SetDomainResult.cc b/cloudapi/src/model/SetDomainResult.cc index e34d5732a..0f2370ca7 100644 --- a/cloudapi/src/model/SetDomainResult.cc +++ b/cloudapi/src/model/SetDomainResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetDomainResult::SetDomainResult() : - ServiceResult() -{} - -SetDomainResult::SetDomainResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetDomainResult::~SetDomainResult() -{} - -void SetDomainResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetDomainResult::SetDomainResult() : + ServiceResult() +{} + +SetDomainResult::SetDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDomainResult::~SetDomainResult() +{} + +void SetDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); if(!value["DomainName"].isNull()) @@ -54,9 +57,9 @@ void SetDomainResult::parse(const std::string &payload) domainWebSocketStatus_ = value["DomainWebSocketStatus"].asString(); if(!value["DomainRemark"].isNull()) domainRemark_ = value["DomainRemark"].asString(); - -} - + +} + std::string SetDomainResult::getSubDomain()const { return subDomain_; diff --git a/cloudapi/src/model/SetDomainWebSocketStatusRequest.cc b/cloudapi/src/model/SetDomainWebSocketStatusRequest.cc index 3a03462c1..2ccf70dad 100644 --- a/cloudapi/src/model/SetDomainWebSocketStatusRequest.cc +++ b/cloudapi/src/model/SetDomainWebSocketStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetDomainWebSocketStatusRequest; - -SetDomainWebSocketStatusRequest::SetDomainWebSocketStatusRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetDomainWebSocketStatus") -{} - -SetDomainWebSocketStatusRequest::~SetDomainWebSocketStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetDomainWebSocketStatusRequest; + +SetDomainWebSocketStatusRequest::SetDomainWebSocketStatusRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetDomainWebSocketStatus") +{} + +SetDomainWebSocketStatusRequest::~SetDomainWebSocketStatusRequest() +{} + std::string SetDomainWebSocketStatusRequest::getSecurityToken()const { return securityToken_; diff --git a/cloudapi/src/model/SetDomainWebSocketStatusResult.cc b/cloudapi/src/model/SetDomainWebSocketStatusResult.cc index 6114ffb65..7797936aa 100644 --- a/cloudapi/src/model/SetDomainWebSocketStatusResult.cc +++ b/cloudapi/src/model/SetDomainWebSocketStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetDomainWebSocketStatusResult::SetDomainWebSocketStatusResult() : - ServiceResult() -{} - -SetDomainWebSocketStatusResult::SetDomainWebSocketStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetDomainWebSocketStatusResult::~SetDomainWebSocketStatusResult() -{} - -void SetDomainWebSocketStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetDomainWebSocketStatusResult::SetDomainWebSocketStatusResult() : + ServiceResult() +{} + +SetDomainWebSocketStatusResult::SetDomainWebSocketStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDomainWebSocketStatusResult::~SetDomainWebSocketStatusResult() +{} + +void SetDomainWebSocketStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SetIpControlApisRequest.cc b/cloudapi/src/model/SetIpControlApisRequest.cc index 501fcada5..8aa65f3dd 100644 --- a/cloudapi/src/model/SetIpControlApisRequest.cc +++ b/cloudapi/src/model/SetIpControlApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetIpControlApisRequest; - -SetIpControlApisRequest::SetIpControlApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetIpControlApis") -{} - -SetIpControlApisRequest::~SetIpControlApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetIpControlApisRequest; + +SetIpControlApisRequest::SetIpControlApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetIpControlApis") +{} + +SetIpControlApisRequest::~SetIpControlApisRequest() +{} + std::string SetIpControlApisRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/SetIpControlApisResult.cc b/cloudapi/src/model/SetIpControlApisResult.cc index 046b9eb82..01267f324 100644 --- a/cloudapi/src/model/SetIpControlApisResult.cc +++ b/cloudapi/src/model/SetIpControlApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetIpControlApisResult::SetIpControlApisResult() : - ServiceResult() -{} - -SetIpControlApisResult::SetIpControlApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetIpControlApisResult::~SetIpControlApisResult() -{} - -void SetIpControlApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetIpControlApisResult::SetIpControlApisResult() : + ServiceResult() +{} + +SetIpControlApisResult::SetIpControlApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetIpControlApisResult::~SetIpControlApisResult() +{} + +void SetIpControlApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SetSignatureApisRequest.cc b/cloudapi/src/model/SetSignatureApisRequest.cc index ac0407d91..6f75f650a 100644 --- a/cloudapi/src/model/SetSignatureApisRequest.cc +++ b/cloudapi/src/model/SetSignatureApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetSignatureApisRequest; - -SetSignatureApisRequest::SetSignatureApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetSignatureApis") -{} - -SetSignatureApisRequest::~SetSignatureApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetSignatureApisRequest; + +SetSignatureApisRequest::SetSignatureApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetSignatureApis") +{} + +SetSignatureApisRequest::~SetSignatureApisRequest() +{} + std::string SetSignatureApisRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/SetSignatureApisResult.cc b/cloudapi/src/model/SetSignatureApisResult.cc index f96bcef46..98472da2c 100644 --- a/cloudapi/src/model/SetSignatureApisResult.cc +++ b/cloudapi/src/model/SetSignatureApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetSignatureApisResult::SetSignatureApisResult() : - ServiceResult() -{} - -SetSignatureApisResult::SetSignatureApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetSignatureApisResult::~SetSignatureApisResult() -{} - -void SetSignatureApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetSignatureApisResult::SetSignatureApisResult() : + ServiceResult() +{} + +SetSignatureApisResult::SetSignatureApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetSignatureApisResult::~SetSignatureApisResult() +{} + +void SetSignatureApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SetTrafficControlApisRequest.cc b/cloudapi/src/model/SetTrafficControlApisRequest.cc index 07aa64835..c2bd9c4f1 100644 --- a/cloudapi/src/model/SetTrafficControlApisRequest.cc +++ b/cloudapi/src/model/SetTrafficControlApisRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetTrafficControlApisRequest; - -SetTrafficControlApisRequest::SetTrafficControlApisRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetTrafficControlApis") -{} - -SetTrafficControlApisRequest::~SetTrafficControlApisRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetTrafficControlApisRequest; + +SetTrafficControlApisRequest::SetTrafficControlApisRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetTrafficControlApis") +{} + +SetTrafficControlApisRequest::~SetTrafficControlApisRequest() +{} + std::string SetTrafficControlApisRequest::getTrafficControlId()const { return trafficControlId_; diff --git a/cloudapi/src/model/SetTrafficControlApisResult.cc b/cloudapi/src/model/SetTrafficControlApisResult.cc index 2c178eec6..fd8b1e2fe 100644 --- a/cloudapi/src/model/SetTrafficControlApisResult.cc +++ b/cloudapi/src/model/SetTrafficControlApisResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetTrafficControlApisResult::SetTrafficControlApisResult() : - ServiceResult() -{} - -SetTrafficControlApisResult::SetTrafficControlApisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetTrafficControlApisResult::~SetTrafficControlApisResult() -{} - -void SetTrafficControlApisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetTrafficControlApisResult::SetTrafficControlApisResult() : + ServiceResult() +{} + +SetTrafficControlApisResult::SetTrafficControlApisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetTrafficControlApisResult::~SetTrafficControlApisResult() +{} + +void SetTrafficControlApisResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SetVpcAccessRequest.cc b/cloudapi/src/model/SetVpcAccessRequest.cc index 4b3decc91..7926c1d54 100644 --- a/cloudapi/src/model/SetVpcAccessRequest.cc +++ b/cloudapi/src/model/SetVpcAccessRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SetVpcAccessRequest; - -SetVpcAccessRequest::SetVpcAccessRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SetVpcAccess") -{} - -SetVpcAccessRequest::~SetVpcAccessRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SetVpcAccessRequest; + +SetVpcAccessRequest::SetVpcAccessRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SetVpcAccess") +{} + +SetVpcAccessRequest::~SetVpcAccessRequest() +{} + std::string SetVpcAccessRequest::getInstanceId()const { return instanceId_; diff --git a/cloudapi/src/model/SetVpcAccessResult.cc b/cloudapi/src/model/SetVpcAccessResult.cc index 4a55b4bb0..f8eaec62d 100644 --- a/cloudapi/src/model/SetVpcAccessResult.cc +++ b/cloudapi/src/model/SetVpcAccessResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SetVpcAccessResult::SetVpcAccessResult() : - ServiceResult() -{} - -SetVpcAccessResult::SetVpcAccessResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetVpcAccessResult::~SetVpcAccessResult() -{} - -void SetVpcAccessResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SetVpcAccessResult::SetVpcAccessResult() : + ServiceResult() +{} + +SetVpcAccessResult::SetVpcAccessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetVpcAccessResult::~SetVpcAccessResult() +{} + +void SetVpcAccessResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/SwitchApiRequest.cc b/cloudapi/src/model/SwitchApiRequest.cc index b06e203bd..47f489655 100644 --- a/cloudapi/src/model/SwitchApiRequest.cc +++ b/cloudapi/src/model/SwitchApiRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::SwitchApiRequest; - -SwitchApiRequest::SwitchApiRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "SwitchApi") -{} - -SwitchApiRequest::~SwitchApiRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::SwitchApiRequest; + +SwitchApiRequest::SwitchApiRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "SwitchApi") +{} + +SwitchApiRequest::~SwitchApiRequest() +{} + std::string SwitchApiRequest::getStageName()const { return stageName_; diff --git a/cloudapi/src/model/SwitchApiResult.cc b/cloudapi/src/model/SwitchApiResult.cc index 377e41e4b..5ea820ffe 100644 --- a/cloudapi/src/model/SwitchApiResult.cc +++ b/cloudapi/src/model/SwitchApiResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -SwitchApiResult::SwitchApiResult() : - ServiceResult() -{} - -SwitchApiResult::SwitchApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchApiResult::~SwitchApiResult() -{} - -void SwitchApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +SwitchApiResult::SwitchApiResult() : + ServiceResult() +{} + +SwitchApiResult::SwitchApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchApiResult::~SwitchApiResult() +{} + +void SwitchApiResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/TagResourcesRequest.cc b/cloudapi/src/model/TagResourcesRequest.cc index dbabe597b..08213ad4a 100644 --- a/cloudapi/src/model/TagResourcesRequest.cc +++ b/cloudapi/src/model/TagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "TagResources") -{} - -TagResourcesRequest::~TagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "TagResources") +{} + +TagResourcesRequest::~TagResourcesRequest() +{} + std::vector TagResourcesRequest::getResourceId()const { return resourceId_; diff --git a/cloudapi/src/model/TagResourcesResult.cc b/cloudapi/src/model/TagResourcesResult.cc index f3d34b65a..e04c688ca 100644 --- a/cloudapi/src/model/TagResourcesResult.cc +++ b/cloudapi/src/model/TagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -TagResourcesResult::TagResourcesResult() : - ServiceResult() -{} - -TagResourcesResult::TagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TagResourcesResult::~TagResourcesResult() -{} - -void TagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudapi/src/model/UntagResourcesRequest.cc b/cloudapi/src/model/UntagResourcesRequest.cc index 8f4e24b5b..b89ce19f8 100644 --- a/cloudapi/src/model/UntagResourcesRequest.cc +++ b/cloudapi/src/model/UntagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CloudAPI::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("cloudapi", "2016-07-14", "UntagResources") -{} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("cloudapi", "2016-07-14", "UntagResources") +{} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + bool UntagResourcesRequest::getAll()const { return all_; diff --git a/cloudapi/src/model/UntagResourcesResult.cc b/cloudapi/src/model/UntagResourcesResult.cc index 6a1918c53..0c75a219f 100644 --- a/cloudapi/src/model/UntagResourcesResult.cc +++ b/cloudapi/src/model/UntagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::CloudAPI; -using namespace AlibabaCloud::CloudAPI::Model; - -UntagResourcesResult::UntagResourcesResult() : - ServiceResult() -{} - -UntagResourcesResult::UntagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UntagResourcesResult::~UntagResourcesResult() -{} - -void UntagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CloudAPI; +using namespace AlibabaCloud::CloudAPI::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cloudauth/CMakeLists.txt b/cloudauth/CMakeLists.txt index be2d1a6f2..ed56f1fb6 100644 --- a/cloudauth/CMakeLists.txt +++ b/cloudauth/CMakeLists.txt @@ -1,82 +1,130 @@ -# -# Copyright 2009-2017 Alibaba Cloud All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(cloudauth_public_header include/alibabacloud/cloudauth/CloudauthClient.h - include/alibabacloud/cloudauth/CloudauthExport.h ) - -set(cloudauth_public_header_model ) - + include/alibabacloud/cloudauth/CloudauthExport.h ) + +set(cloudauth_public_header_model + include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h + include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h + include/alibabacloud/cloudauth/model/GetMaterialsRequest.h + include/alibabacloud/cloudauth/model/GetMaterialsResult.h + include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h + include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h + include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h + include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h + include/alibabacloud/cloudauth/model/CompareFacesRequest.h + include/alibabacloud/cloudauth/model/CompareFacesResult.h + include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h + include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h + include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h + include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h + include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h + include/alibabacloud/cloudauth/model/SubmitVerificationResult.h + include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h + include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h + include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h + include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h + include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h + include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h + include/alibabacloud/cloudauth/model/GetStatusRequest.h + include/alibabacloud/cloudauth/model/GetStatusResult.h ) + set(cloudauth_src - src/CloudauthClient.cc ) - -add_library(cloudauth ${LIB_TYPE} - ${cloudauth_public_header} - ${cloudauth_public_header_model} - ${cloudauth_src}) - -set_target_properties(cloudauth - 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}cloudauth - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(cloudauth - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_LIBRARY) -endif() - -target_include_directories(cloudauth - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(cloudauth - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(cloudauth - jsoncpp) - target_include_directories(cloudauth - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(cloudauth - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(cloudauth - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(cloudauth - PRIVATE /usr/include/jsoncpp) - target_link_libraries(cloudauth - jsoncpp) -endif() - -install(FILES ${cloudauth_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth) -install(FILES ${cloudauth_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth/model) -install(TARGETS cloudauth - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/CloudauthClient.cc + src/model/DescribeDeviceInfoRequest.cc + src/model/DescribeDeviceInfoResult.cc + src/model/GetMaterialsRequest.cc + src/model/GetMaterialsResult.cc + src/model/GetVerifyTokenRequest.cc + src/model/GetVerifyTokenResult.cc + src/model/DetectFaceAttributesRequest.cc + src/model/DetectFaceAttributesResult.cc + src/model/CompareFacesRequest.cc + src/model/CompareFacesResult.cc + src/model/CreateAuthKeyRequest.cc + src/model/CreateAuthKeyResult.cc + src/model/SubmitMaterialsRequest.cc + src/model/SubmitMaterialsResult.cc + src/model/SubmitVerificationRequest.cc + src/model/SubmitVerificationResult.cc + src/model/CreateVerifySDKRequest.cc + src/model/CreateVerifySDKResult.cc + src/model/ModifyDeviceInfoRequest.cc + src/model/ModifyDeviceInfoResult.cc + src/model/DescribeVerifySDKRequest.cc + src/model/DescribeVerifySDKResult.cc + src/model/GetStatusRequest.cc + src/model/GetStatusResult.cc ) + +add_library(cloudauth ${LIB_TYPE} + ${cloudauth_public_header} + ${cloudauth_public_header_model} + ${cloudauth_src}) + +set_target_properties(cloudauth + 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}cloudauth + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(cloudauth + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_LIBRARY) +endif() + +target_include_directories(cloudauth + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(cloudauth + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(cloudauth + jsoncpp) + target_include_directories(cloudauth + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(cloudauth + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(cloudauth + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(cloudauth + PRIVATE /usr/include/jsoncpp) + target_link_libraries(cloudauth + jsoncpp) +endif() + +install(FILES ${cloudauth_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth) +install(FILES ${cloudauth_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth/model) +install(TARGETS cloudauth + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h b/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h index f912a3e78..4ae05fc90 100644 --- a/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h +++ b/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h @@ -1,27 +1,27 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_ -#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_ - -#include -#include -#include -#include -#include "CloudauthExport.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_ +#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_ + +#include +#include +#include +#include +#include "CloudauthExport.h" #include "model/DescribeDeviceInfoRequest.h" #include "model/DescribeDeviceInfoResult.h" #include "model/GetMaterialsRequest.h" @@ -46,97 +46,97 @@ #include "model/DescribeVerifySDKResult.h" #include "model/GetStatusRequest.h" #include "model/GetStatusResult.h" - - -namespace AlibabaCloud -{ - namespace Cloudauth - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient - { - public: - typedef Outcome DescribeDeviceInfoOutcome; - typedef std::future DescribeDeviceInfoOutcomeCallable; + + +namespace AlibabaCloud +{ + namespace Cloudauth + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient + { + public: + typedef Outcome DescribeDeviceInfoOutcome; + typedef std::future DescribeDeviceInfoOutcomeCallable; typedef std::function&)> DescribeDeviceInfoAsyncHandler; - typedef Outcome GetMaterialsOutcome; - typedef std::future GetMaterialsOutcomeCallable; + typedef Outcome GetMaterialsOutcome; + typedef std::future GetMaterialsOutcomeCallable; typedef std::function&)> GetMaterialsAsyncHandler; - typedef Outcome GetVerifyTokenOutcome; - typedef std::future GetVerifyTokenOutcomeCallable; + typedef Outcome GetVerifyTokenOutcome; + typedef std::future GetVerifyTokenOutcomeCallable; typedef std::function&)> GetVerifyTokenAsyncHandler; - typedef Outcome DetectFaceAttributesOutcome; - typedef std::future DetectFaceAttributesOutcomeCallable; + typedef Outcome DetectFaceAttributesOutcome; + typedef std::future DetectFaceAttributesOutcomeCallable; typedef std::function&)> DetectFaceAttributesAsyncHandler; - typedef Outcome CompareFacesOutcome; - typedef std::future CompareFacesOutcomeCallable; + typedef Outcome CompareFacesOutcome; + typedef std::future CompareFacesOutcomeCallable; typedef std::function&)> CompareFacesAsyncHandler; - typedef Outcome CreateAuthKeyOutcome; - typedef std::future CreateAuthKeyOutcomeCallable; + typedef Outcome CreateAuthKeyOutcome; + typedef std::future CreateAuthKeyOutcomeCallable; typedef std::function&)> CreateAuthKeyAsyncHandler; - typedef Outcome SubmitMaterialsOutcome; - typedef std::future SubmitMaterialsOutcomeCallable; + typedef Outcome SubmitMaterialsOutcome; + typedef std::future SubmitMaterialsOutcomeCallable; typedef std::function&)> SubmitMaterialsAsyncHandler; - typedef Outcome SubmitVerificationOutcome; - typedef std::future SubmitVerificationOutcomeCallable; + typedef Outcome SubmitVerificationOutcome; + typedef std::future SubmitVerificationOutcomeCallable; typedef std::function&)> SubmitVerificationAsyncHandler; - typedef Outcome CreateVerifySDKOutcome; - typedef std::future CreateVerifySDKOutcomeCallable; + typedef Outcome CreateVerifySDKOutcome; + typedef std::future CreateVerifySDKOutcomeCallable; typedef std::function&)> CreateVerifySDKAsyncHandler; - typedef Outcome ModifyDeviceInfoOutcome; - typedef std::future ModifyDeviceInfoOutcomeCallable; + typedef Outcome ModifyDeviceInfoOutcome; + typedef std::future ModifyDeviceInfoOutcomeCallable; typedef std::function&)> ModifyDeviceInfoAsyncHandler; - typedef Outcome DescribeVerifySDKOutcome; - typedef std::future DescribeVerifySDKOutcomeCallable; + typedef Outcome DescribeVerifySDKOutcome; + typedef std::future DescribeVerifySDKOutcomeCallable; typedef std::function&)> DescribeVerifySDKAsyncHandler; - typedef Outcome GetStatusOutcome; - typedef std::future GetStatusOutcomeCallable; + typedef Outcome GetStatusOutcome; + typedef std::future GetStatusOutcomeCallable; typedef std::function&)> GetStatusAsyncHandler; - - CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration); - CloudauthClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~CloudauthClient(); - DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const; - void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + + CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration); + CloudauthClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~CloudauthClient(); + DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const; + void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const; - GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const; - void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const; + void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const; - GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const; - void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const; + void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetVerifyTokenOutcomeCallable getVerifyTokenCallable(const Model::GetVerifyTokenRequest& request) const; - DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const; - void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const; + void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const; - CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const; - void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const; + void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& request) const; - CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const; - void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const; + void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const; - SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const; - void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const; + void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitMaterialsOutcomeCallable submitMaterialsCallable(const Model::SubmitMaterialsRequest& request) const; - SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const; - void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const; + void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitVerificationOutcomeCallable submitVerificationCallable(const Model::SubmitVerificationRequest& request) const; - CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const; - void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const; + void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVerifySDKOutcomeCallable createVerifySDKCallable(const Model::CreateVerifySDKRequest& request) const; - ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const; - void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const; + void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const; - DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const; - void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const; + void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVerifySDKOutcomeCallable describeVerifySDKCallable(const Model::DescribeVerifySDKRequest& request) const; - GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const; - void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const; + void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStatusOutcomeCallable getStatusCallable(const Model::GetStatusRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_ + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/CloudauthExport.h b/cloudauth/include/alibabacloud/cloudauth/CloudauthExport.h index 125105ceb..054ebeadf 100644 --- a/cloudauth/include/alibabacloud/cloudauth/CloudauthExport.h +++ b/cloudauth/include/alibabacloud/cloudauth/CloudauthExport.h @@ -1,32 +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_CLOUDAUTH_CLOUDAUTHEXPORT_H_ -#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_CLOUDAUTH_LIBRARY) -# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_CLOUDAUTH_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_ +#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CLOUDAUTH_LIBRARY) +# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CLOUDAUTH_EXPORT +#endif + #endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h index 0d27e749a..867a4548b 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesRequest : public RpcServiceRequest - { - - public: - CompareFacesRequest(); - ~CompareFacesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesRequest : public RpcServiceRequest + { + + public: + CompareFacesRequest(); + ~CompareFacesRequest(); + std::string getSourceImageType()const; void setSourceImageType(const std::string& sourceImageType); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSourceImageValue(const std::string& sourceImageValue); std::string getTargetImageValue()const; void setTargetImageValue(const std::string& targetImageValue); - - private: + + private: std::string sourceImageType_; long resourceOwnerId_; std::string sourceIp_; std::string targetImageType_; std::string sourceImageValue_; std::string targetImageValue_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesResult.h b/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesResult.h index ec54e7ded..6536b7ff4 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesResult.h @@ -1,62 +1,62 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesResult : public ServiceResult + { + public: struct Data { std::string confidenceThresholds; float similarityScore; }; - - - CompareFacesResult(); - explicit CompareFacesResult(const std::string &payload); - ~CompareFacesResult(); + + + CompareFacesResult(); + explicit CompareFacesResult(const std::string &payload); + ~CompareFacesResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h index 3dce339fc..128fcce4c 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyRequest : public RpcServiceRequest - { - - public: - CreateAuthKeyRequest(); - ~CreateAuthKeyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyRequest : public RpcServiceRequest + { + + public: + CreateAuthKeyRequest(); + ~CreateAuthKeyRequest(); + std::string getBizType()const; void setBizType(const std::string& bizType); std::string getUserDeviceId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAuthYears(int authYears); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string bizType_; std::string userDeviceId_; std::string sourceIp_; bool test_; int authYears_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h b/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h index d71ce54bd..d86613bd8 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h @@ -1,51 +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_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyResult : public ServiceResult - { - public: - - - CreateAuthKeyResult(); - explicit CreateAuthKeyResult(const std::string &payload); - ~CreateAuthKeyResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyResult : public ServiceResult + { + public: + + + CreateAuthKeyResult(); + explicit CreateAuthKeyResult(const std::string &payload); + ~CreateAuthKeyResult(); std::string getAuthKey()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string authKey_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h index 42c41eb04..de12a2c3d 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKRequest : public RpcServiceRequest - { - - public: - CreateVerifySDKRequest(); - ~CreateVerifySDKRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKRequest : public RpcServiceRequest + { + + public: + CreateVerifySDKRequest(); + ~CreateVerifySDKRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getAppUrl()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getPlatform()const; void setPlatform(const std::string& platform); - - private: + + private: std::string sourceIp_; std::string appUrl_; std::string lang_; std::string platform_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h index cfcfe7948..9f2d6ecd3 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h @@ -1,51 +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_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKResult : public ServiceResult - { - public: - - - CreateVerifySDKResult(); - explicit CreateVerifySDKResult(const std::string &payload); - ~CreateVerifySDKResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKResult : public ServiceResult + { + public: + + + CreateVerifySDKResult(); + explicit CreateVerifySDKResult(const std::string &payload); + ~CreateVerifySDKResult(); std::string getTaskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h index aa7f0afee..2a8aa4640 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoRequest : public RpcServiceRequest - { - - public: - DescribeDeviceInfoRequest(); - ~DescribeDeviceInfoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoRequest : public RpcServiceRequest + { + + public: + DescribeDeviceInfoRequest(); + ~DescribeDeviceInfoRequest(); + std::string getBizType()const; void setBizType(const std::string& bizType); std::string getUserDeviceId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setDeviceId(const std::string& deviceId); std::string getExpiredStartDay()const; void setExpiredStartDay(const std::string& expiredStartDay); - - private: + + private: std::string bizType_; std::string userDeviceId_; int totalCount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string expiredEndDay_; std::string deviceId_; std::string expiredStartDay_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h index d85dd2a7d..6cf9182a0 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoResult : public ServiceResult + { + public: struct DeviceInfo { std::string expiredDay; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string bizType; std::string userDeviceId; }; - - - DescribeDeviceInfoResult(); - explicit DescribeDeviceInfoResult(const std::string &payload); - ~DescribeDeviceInfoResult(); + + + DescribeDeviceInfoResult(); + explicit DescribeDeviceInfoResult(const std::string &payload); + ~DescribeDeviceInfoResult(); std::vector getDeviceInfoList()const; int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector deviceInfoList_; int totalCount_; int pageSize_; int currentPage_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h index 8cadf6a3d..61fa7a1f8 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h @@ -1,54 +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_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKRequest : public RpcServiceRequest - { - - public: - DescribeVerifySDKRequest(); - ~DescribeVerifySDKRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKRequest : public RpcServiceRequest + { + + public: + DescribeVerifySDKRequest(); + ~DescribeVerifySDKRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLang()const; void setLang(const std::string& lang); std::string getTaskId()const; void setTaskId(const std::string& taskId); - - private: + + private: std::string sourceIp_; std::string lang_; std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h index f63c0a181..7c32a6625 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h @@ -1,51 +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_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKResult : public ServiceResult - { - public: - - - DescribeVerifySDKResult(); - explicit DescribeVerifySDKResult(const std::string &payload); - ~DescribeVerifySDKResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKResult : public ServiceResult + { + public: + + + DescribeVerifySDKResult(); + explicit DescribeVerifySDKResult(const std::string &payload); + ~DescribeVerifySDKResult(); std::string getSdkUrl()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string sdkUrl_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h index 34eced037..3848e0494 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesRequest : public RpcServiceRequest - { - - public: - DetectFaceAttributesRequest(); - ~DetectFaceAttributesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesRequest : public RpcServiceRequest + { + + public: + DetectFaceAttributesRequest(); + ~DetectFaceAttributesRequest(); + int getMaxNumPhotosPerCategory()const; void setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory); int getMaxFaceNum()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setDontSaveDB(bool dontSaveDB); std::string getClientTag()const; void setClientTag(const std::string& clientTag); - - private: + + private: int maxNumPhotosPerCategory_; int maxFaceNum_; long resourceOwnerId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string materialValue_; bool dontSaveDB_; std::string clientTag_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h index 216a1a256..641940f76 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesResult : public ServiceResult + { + public: struct Data { struct FaceAttributesDetectInfo @@ -77,26 +77,26 @@ namespace AlibabaCloud int imgHeight; std::vector faceInfos; }; - - - DetectFaceAttributesResult(); - explicit DetectFaceAttributesResult(const std::string &payload); - ~DetectFaceAttributesResult(); + + + DetectFaceAttributesResult(); + explicit DetectFaceAttributesResult(const std::string &payload); + ~DetectFaceAttributesResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsRequest.h index 1f6c6035a..cfe3a9be7 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsRequest : public RpcServiceRequest - { - - public: - GetMaterialsRequest(); - ~GetMaterialsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsRequest : public RpcServiceRequest + { + + public: + GetMaterialsRequest(); + ~GetMaterialsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBiz()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); std::string getTicketId()const; void setTicketId(const std::string& ticketId); - - private: + + private: long resourceOwnerId_; std::string biz_; std::string sourceIp_; std::string ticketId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsResult.h b/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsResult.h index d9da7ece2..dcc57d370 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/GetMaterialsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsResult : public ServiceResult + { + public: struct Data { std::string facePic; @@ -47,26 +47,26 @@ namespace AlibabaCloud std::string idCardBackPic; std::string name; }; - - - GetMaterialsResult(); - explicit GetMaterialsResult(const std::string &payload); - ~GetMaterialsResult(); + + + GetMaterialsResult(); + explicit GetMaterialsResult(const std::string &payload); + ~GetMaterialsResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/GetStatusRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/GetStatusRequest.h index 21398d090..5ed0c9910 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/GetStatusRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/GetStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusRequest : public RpcServiceRequest - { - - public: - GetStatusRequest(); - ~GetStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusRequest : public RpcServiceRequest + { + + public: + GetStatusRequest(); + ~GetStatusRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBiz()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); std::string getTicketId()const; void setTicketId(const std::string& ticketId); - - private: + + private: long resourceOwnerId_; std::string biz_; std::string sourceIp_; std::string ticketId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/GetStatusResult.h b/cloudauth/include/alibabacloud/cloudauth/model/GetStatusResult.h index 481317424..aaf8d3390 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/GetStatusResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/GetStatusResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusResult : public ServiceResult + { + public: struct Data { std::string auditConclusions; @@ -40,26 +40,26 @@ namespace AlibabaCloud float similarityScore; int statusCode; }; - - - GetStatusResult(); - explicit GetStatusResult(const std::string &payload); - ~GetStatusResult(); + + + GetStatusResult(); + explicit GetStatusResult(const std::string &payload); + ~GetStatusResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h index 3a37d5c54..43b5fb7bc 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenRequest : public RpcServiceRequest - { - - public: - GetVerifyTokenRequest(); - ~GetVerifyTokenRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenRequest : public RpcServiceRequest + { + + public: + GetVerifyTokenRequest(); + ~GetVerifyTokenRequest(); + std::string getUserData()const; void setUserData(const std::string& userData); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setVerifyConfigs(const std::string& verifyConfigs); std::string getTicketId()const; void setTicketId(const std::string& ticketId); - - private: + + private: std::string userData_; long resourceOwnerId_; std::string biz_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string binding_; std::string verifyConfigs_; std::string ticketId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h b/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h index 8e1aa5119..ad5b6e62e 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenResult : public ServiceResult + { + public: struct Data { struct VerifyToken @@ -53,26 +53,26 @@ namespace AlibabaCloud std::string cloudauthPageUrl; VerifyToken verifyToken; }; - - - GetVerifyTokenResult(); - explicit GetVerifyTokenResult(const std::string &payload); - ~GetVerifyTokenResult(); + + + GetVerifyTokenResult(); + explicit GetVerifyTokenResult(const std::string &payload); + ~GetVerifyTokenResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h index f5358967e..7579fdb9e 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoRequest : public RpcServiceRequest - { - - public: - ModifyDeviceInfoRequest(); - ~ModifyDeviceInfoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoRequest : public RpcServiceRequest + { + + public: + ModifyDeviceInfoRequest(); + ~ModifyDeviceInfoRequest(); + std::string getUserDeviceId()const; void setUserDeviceId(const std::string& userDeviceId); std::string getBizType()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getDeviceId()const; void setDeviceId(const std::string& deviceId); - - private: + + private: std::string userDeviceId_; std::string bizType_; std::string duration_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string sourceIp_; std::string lang_; std::string deviceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h b/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h index 8d1fc9df4..7d182bf88 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h @@ -1,59 +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_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoResult : public ServiceResult - { - public: - - - ModifyDeviceInfoResult(); - explicit ModifyDeviceInfoResult(const std::string &payload); - ~ModifyDeviceInfoResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoResult : public ServiceResult + { + public: + + + ModifyDeviceInfoResult(); + explicit ModifyDeviceInfoResult(const std::string &payload); + ~ModifyDeviceInfoResult(); std::string getExpiredDay()const; std::string getBeginDay()const; std::string getDeviceId()const; std::string getBizType()const; std::string getUserDeviceId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string expiredDay_; std::string beginDay_; std::string deviceId_; std::string bizType_; std::string userDeviceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h index 0b9e42072..94c80d911 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h @@ -1,45 +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_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsRequest : public RpcServiceRequest + { struct Material { std::string materialType; std::string value; }; - - public: - SubmitMaterialsRequest(); - ~SubmitMaterialsRequest(); - + + public: + SubmitMaterialsRequest(); + ~SubmitMaterialsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSourceIp()const; @@ -48,15 +48,15 @@ namespace AlibabaCloud void setMaterial(const std::vector& material); std::string getVerifyToken()const; void setVerifyToken(const std::string& verifyToken); - - private: + + private: long resourceOwnerId_; std::string sourceIp_; std::vector material_; std::string verifyToken_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h b/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h index b3879fe20..c8e4361e5 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsResult : public ServiceResult + { + public: struct Data { struct VerifyStatus @@ -44,26 +44,26 @@ namespace AlibabaCloud }; VerifyStatus verifyStatus; }; - - - SubmitMaterialsResult(); - explicit SubmitMaterialsResult(const std::string &payload); - ~SubmitMaterialsResult(); + + + SubmitMaterialsResult(); + explicit SubmitMaterialsResult(const std::string &payload); + ~SubmitMaterialsResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h index b43bf0708..430546723 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h @@ -1,45 +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_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationRequest : public RpcServiceRequest + { struct Material { std::string materialType; std::string value; }; - - public: - SubmitVerificationRequest(); - ~SubmitVerificationRequest(); - + + public: + SubmitVerificationRequest(); + ~SubmitVerificationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBiz()const; @@ -50,16 +50,16 @@ namespace AlibabaCloud void setMaterial(const std::vector& material); std::string getTicketId()const; void setTicketId(const std::string& ticketId); - - private: + + private: long resourceOwnerId_; std::string biz_; std::string sourceIp_; std::vector material_; std::string ticketId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationResult.h b/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationResult.h index a48105a16..a279b0099 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/SubmitVerificationResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationResult : public ServiceResult + { + public: struct Data { struct VerifyStatus @@ -44,26 +44,26 @@ namespace AlibabaCloud }; VerifyStatus verifyStatus; }; - - - SubmitVerificationResult(); - explicit SubmitVerificationResult(const std::string &payload); - ~SubmitVerificationResult(); + + + SubmitVerificationResult(); + explicit SubmitVerificationResult(const std::string &payload); + ~SubmitVerificationResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; Data data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_ \ No newline at end of file diff --git a/cloudauth/src/CloudauthClient.cc b/cloudauth/src/CloudauthClient.cc index ffe82af0f..4ab3c2b2a 100644 --- a/cloudauth/src/CloudauthClient.cc +++ b/cloudauth/src/CloudauthClient.cc @@ -1,485 +1,485 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -namespace -{ - const std::string SERVICE_NAME = "Cloudauth"; -} - -CloudauthClient::CloudauthClient(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, "cloudauth"); -} - -CloudauthClient::CloudauthClient(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, "cloudauth"); -} - -CloudauthClient::CloudauthClient(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, "cloudauth"); -} - -CloudauthClient::~CloudauthClient() -{} - -CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDeviceInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result())); - else - return DescribeDeviceInfoOutcome(outcome.error()); -} - -void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDeviceInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDeviceInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetMaterialsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetMaterialsOutcome(GetMaterialsResult(outcome.result())); - else - return GetMaterialsOutcome(outcome.error()); -} - -void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getMaterials(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getMaterials(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetVerifyTokenOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result())); - else - return GetVerifyTokenOutcome(outcome.error()); -} - -void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getVerifyToken(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getVerifyToken(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectFaceAttributesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectFaceAttributesOutcome(DetectFaceAttributesResult(outcome.result())); - else - return DetectFaceAttributesOutcome(outcome.error()); -} - -void CloudauthClient::detectFaceAttributesAsync(const DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectFaceAttributes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFaceAttributesCallable(const DetectFaceAttributesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectFaceAttributes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CompareFacesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CompareFacesOutcome(CompareFacesResult(outcome.result())); - else - return CompareFacesOutcome(outcome.error()); -} - -void CloudauthClient::compareFacesAsync(const CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, compareFaces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallable(const CompareFacesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->compareFaces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAuthKeyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result())); - else - return CreateAuthKeyOutcome(outcome.error()); -} - -void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAuthKey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAuthKey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitMaterialsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result())); - else - return SubmitMaterialsOutcome(outcome.error()); -} - -void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitMaterials(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitMaterials(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitVerificationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result())); - else - return SubmitVerificationOutcome(outcome.error()); -} - -void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitVerification(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitVerification(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateVerifySDKOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result())); - else - return CreateVerifySDKOutcome(outcome.error()); -} - -void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createVerifySDK(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createVerifySDK(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDeviceInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result())); - else - return ModifyDeviceInfoOutcome(outcome.error()); -} - -void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDeviceInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDeviceInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeVerifySDKOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result())); - else - return DescribeVerifySDKOutcome(outcome.error()); -} - -void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeVerifySDK(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeVerifySDK(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetStatusOutcome(GetStatusResult(outcome.result())); - else - return GetStatusOutcome(outcome.error()); -} - -void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +namespace +{ + const std::string SERVICE_NAME = "Cloudauth"; +} + +CloudauthClient::CloudauthClient(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, "cloudauth"); +} + +CloudauthClient::CloudauthClient(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, "cloudauth"); +} + +CloudauthClient::CloudauthClient(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, "cloudauth"); +} + +CloudauthClient::~CloudauthClient() +{} + +CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeviceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result())); + else + return DescribeDeviceInfoOutcome(outcome.error()); +} + +void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeviceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeviceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMaterialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMaterialsOutcome(GetMaterialsResult(outcome.result())); + else + return GetMaterialsOutcome(outcome.error()); +} + +void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMaterials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMaterials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVerifyTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result())); + else + return GetVerifyTokenOutcome(outcome.error()); +} + +void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVerifyToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVerifyToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectFaceAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectFaceAttributesOutcome(DetectFaceAttributesResult(outcome.result())); + else + return DetectFaceAttributesOutcome(outcome.error()); +} + +void CloudauthClient::detectFaceAttributesAsync(const DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectFaceAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFaceAttributesCallable(const DetectFaceAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectFaceAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompareFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompareFacesOutcome(CompareFacesResult(outcome.result())); + else + return CompareFacesOutcome(outcome.error()); +} + +void CloudauthClient::compareFacesAsync(const CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, compareFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallable(const CompareFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->compareFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAuthKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result())); + else + return CreateAuthKeyOutcome(outcome.error()); +} + +void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAuthKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAuthKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitMaterialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result())); + else + return SubmitMaterialsOutcome(outcome.error()); +} + +void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitMaterials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitMaterials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitVerificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result())); + else + return SubmitVerificationOutcome(outcome.error()); +} + +void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitVerification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitVerification(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVerifySDKOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result())); + else + return CreateVerifySDKOutcome(outcome.error()); +} + +void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVerifySDK(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVerifySDK(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDeviceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result())); + else + return ModifyDeviceInfoOutcome(outcome.error()); +} + +void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDeviceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDeviceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVerifySDKOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result())); + else + return DescribeVerifySDKOutcome(outcome.error()); +} + +void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVerifySDK(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVerifySDK(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStatusOutcome(GetStatusResult(outcome.result())); + else + return GetStatusOutcome(outcome.error()); +} + +void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/cloudauth/src/model/CompareFacesRequest.cc b/cloudauth/src/model/CompareFacesRequest.cc index d888338e2..2eda0f298 100644 --- a/cloudauth/src/model/CompareFacesRequest.cc +++ b/cloudauth/src/model/CompareFacesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::CompareFacesRequest; - -CompareFacesRequest::CompareFacesRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces") -{} - -CompareFacesRequest::~CompareFacesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::CompareFacesRequest; + +CompareFacesRequest::CompareFacesRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces") +{} + +CompareFacesRequest::~CompareFacesRequest() +{} + std::string CompareFacesRequest::getSourceImageType()const { return sourceImageType_; diff --git a/cloudauth/src/model/CompareFacesResult.cc b/cloudauth/src/model/CompareFacesResult.cc index c514257e6..a4f86d48a 100644 --- a/cloudauth/src/model/CompareFacesResult.cc +++ b/cloudauth/src/model/CompareFacesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -CompareFacesResult::CompareFacesResult() : - ServiceResult() -{} - -CompareFacesResult::CompareFacesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CompareFacesResult::~CompareFacesResult() -{} - -void CompareFacesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +CompareFacesResult::CompareFacesResult() : + ServiceResult() +{} + +CompareFacesResult::CompareFacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CompareFacesResult::~CompareFacesResult() +{} + +void CompareFacesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["SimilarityScore"].isNull()) data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString()); @@ -51,9 +54,9 @@ void CompareFacesResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string CompareFacesResult::getMessage()const { return message_; diff --git a/cloudauth/src/model/CreateAuthKeyRequest.cc b/cloudauth/src/model/CreateAuthKeyRequest.cc index 70c402e10..c75295058 100644 --- a/cloudauth/src/model/CreateAuthKeyRequest.cc +++ b/cloudauth/src/model/CreateAuthKeyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::CreateAuthKeyRequest; - -CreateAuthKeyRequest::CreateAuthKeyRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey") -{} - -CreateAuthKeyRequest::~CreateAuthKeyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::CreateAuthKeyRequest; + +CreateAuthKeyRequest::CreateAuthKeyRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey") +{} + +CreateAuthKeyRequest::~CreateAuthKeyRequest() +{} + std::string CreateAuthKeyRequest::getBizType()const { return bizType_; diff --git a/cloudauth/src/model/CreateAuthKeyResult.cc b/cloudauth/src/model/CreateAuthKeyResult.cc index a5eff813e..1f4d8ecff 100644 --- a/cloudauth/src/model/CreateAuthKeyResult.cc +++ b/cloudauth/src/model/CreateAuthKeyResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -CreateAuthKeyResult::CreateAuthKeyResult() : - ServiceResult() -{} - -CreateAuthKeyResult::CreateAuthKeyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAuthKeyResult::~CreateAuthKeyResult() -{} - -void CreateAuthKeyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +CreateAuthKeyResult::CreateAuthKeyResult() : + ServiceResult() +{} + +CreateAuthKeyResult::CreateAuthKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAuthKeyResult::~CreateAuthKeyResult() +{} + +void CreateAuthKeyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AuthKey"].isNull()) authKey_ = value["AuthKey"].asString(); - -} - + +} + std::string CreateAuthKeyResult::getAuthKey()const { return authKey_; diff --git a/cloudauth/src/model/CreateVerifySDKRequest.cc b/cloudauth/src/model/CreateVerifySDKRequest.cc index b12e1c038..eedc74923 100644 --- a/cloudauth/src/model/CreateVerifySDKRequest.cc +++ b/cloudauth/src/model/CreateVerifySDKRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::CreateVerifySDKRequest; - -CreateVerifySDKRequest::CreateVerifySDKRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK") -{} - -CreateVerifySDKRequest::~CreateVerifySDKRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::CreateVerifySDKRequest; + +CreateVerifySDKRequest::CreateVerifySDKRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK") +{} + +CreateVerifySDKRequest::~CreateVerifySDKRequest() +{} + std::string CreateVerifySDKRequest::getSourceIp()const { return sourceIp_; diff --git a/cloudauth/src/model/CreateVerifySDKResult.cc b/cloudauth/src/model/CreateVerifySDKResult.cc index 2d069e3a3..a85f85247 100644 --- a/cloudauth/src/model/CreateVerifySDKResult.cc +++ b/cloudauth/src/model/CreateVerifySDKResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -CreateVerifySDKResult::CreateVerifySDKResult() : - ServiceResult() -{} - -CreateVerifySDKResult::CreateVerifySDKResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVerifySDKResult::~CreateVerifySDKResult() -{} - -void CreateVerifySDKResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +CreateVerifySDKResult::CreateVerifySDKResult() : + ServiceResult() +{} + +CreateVerifySDKResult::CreateVerifySDKResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVerifySDKResult::~CreateVerifySDKResult() +{} + +void CreateVerifySDKResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string CreateVerifySDKResult::getTaskId()const { return taskId_; diff --git a/cloudauth/src/model/DescribeDeviceInfoRequest.cc b/cloudauth/src/model/DescribeDeviceInfoRequest.cc index 8f8798ff8..aa2223c10 100644 --- a/cloudauth/src/model/DescribeDeviceInfoRequest.cc +++ b/cloudauth/src/model/DescribeDeviceInfoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::DescribeDeviceInfoRequest; - -DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo") -{} - -DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::DescribeDeviceInfoRequest; + +DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo") +{} + +DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest() +{} + std::string DescribeDeviceInfoRequest::getBizType()const { return bizType_; diff --git a/cloudauth/src/model/DescribeDeviceInfoResult.cc b/cloudauth/src/model/DescribeDeviceInfoResult.cc index 382df84ed..91fbc7931 100644 --- a/cloudauth/src/model/DescribeDeviceInfoResult.cc +++ b/cloudauth/src/model/DescribeDeviceInfoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -DescribeDeviceInfoResult::DescribeDeviceInfoResult() : - ServiceResult() -{} - -DescribeDeviceInfoResult::DescribeDeviceInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDeviceInfoResult::~DescribeDeviceInfoResult() -{} - -void DescribeDeviceInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +DescribeDeviceInfoResult::DescribeDeviceInfoResult() : + ServiceResult() +{} + +DescribeDeviceInfoResult::DescribeDeviceInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeviceInfoResult::~DescribeDeviceInfoResult() +{} + +void DescribeDeviceInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDeviceInfoList = value["DeviceInfoList"]["DeviceInfo"]; for (auto value : allDeviceInfoList) { @@ -62,9 +65,9 @@ void DescribeDeviceInfoResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + std::vector DescribeDeviceInfoResult::getDeviceInfoList()const { return deviceInfoList_; diff --git a/cloudauth/src/model/DescribeVerifySDKRequest.cc b/cloudauth/src/model/DescribeVerifySDKRequest.cc index 72048ef06..58612b5c2 100644 --- a/cloudauth/src/model/DescribeVerifySDKRequest.cc +++ b/cloudauth/src/model/DescribeVerifySDKRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::DescribeVerifySDKRequest; - -DescribeVerifySDKRequest::DescribeVerifySDKRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK") -{} - -DescribeVerifySDKRequest::~DescribeVerifySDKRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::DescribeVerifySDKRequest; + +DescribeVerifySDKRequest::DescribeVerifySDKRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK") +{} + +DescribeVerifySDKRequest::~DescribeVerifySDKRequest() +{} + std::string DescribeVerifySDKRequest::getSourceIp()const { return sourceIp_; diff --git a/cloudauth/src/model/DescribeVerifySDKResult.cc b/cloudauth/src/model/DescribeVerifySDKResult.cc index 0f2830baf..212640e63 100644 --- a/cloudauth/src/model/DescribeVerifySDKResult.cc +++ b/cloudauth/src/model/DescribeVerifySDKResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -DescribeVerifySDKResult::DescribeVerifySDKResult() : - ServiceResult() -{} - -DescribeVerifySDKResult::DescribeVerifySDKResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVerifySDKResult::~DescribeVerifySDKResult() -{} - -void DescribeVerifySDKResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +DescribeVerifySDKResult::DescribeVerifySDKResult() : + ServiceResult() +{} + +DescribeVerifySDKResult::DescribeVerifySDKResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVerifySDKResult::~DescribeVerifySDKResult() +{} + +void DescribeVerifySDKResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SdkUrl"].isNull()) sdkUrl_ = value["SdkUrl"].asString(); - -} - + +} + std::string DescribeVerifySDKResult::getSdkUrl()const { return sdkUrl_; diff --git a/cloudauth/src/model/DetectFaceAttributesRequest.cc b/cloudauth/src/model/DetectFaceAttributesRequest.cc index 45de3b75e..fa1643267 100644 --- a/cloudauth/src/model/DetectFaceAttributesRequest.cc +++ b/cloudauth/src/model/DetectFaceAttributesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::DetectFaceAttributesRequest; - -DetectFaceAttributesRequest::DetectFaceAttributesRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "DetectFaceAttributes") -{} - -DetectFaceAttributesRequest::~DetectFaceAttributesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::DetectFaceAttributesRequest; + +DetectFaceAttributesRequest::DetectFaceAttributesRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "DetectFaceAttributes") +{} + +DetectFaceAttributesRequest::~DetectFaceAttributesRequest() +{} + int DetectFaceAttributesRequest::getMaxNumPhotosPerCategory()const { return maxNumPhotosPerCategory_; diff --git a/cloudauth/src/model/DetectFaceAttributesResult.cc b/cloudauth/src/model/DetectFaceAttributesResult.cc index feea59b8f..04a44ec74 100644 --- a/cloudauth/src/model/DetectFaceAttributesResult.cc +++ b/cloudauth/src/model/DetectFaceAttributesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -DetectFaceAttributesResult::DetectFaceAttributesResult() : - ServiceResult() -{} - -DetectFaceAttributesResult::DetectFaceAttributesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectFaceAttributesResult::~DetectFaceAttributesResult() -{} - -void DetectFaceAttributesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +DetectFaceAttributesResult::DetectFaceAttributesResult() : + ServiceResult() +{} + +DetectFaceAttributesResult::DetectFaceAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectFaceAttributesResult::~DetectFaceAttributesResult() +{} + +void DetectFaceAttributesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["ImgWidth"].isNull()) data_.imgWidth = std::stoi(dataNode["ImgWidth"].asString()); @@ -94,9 +97,9 @@ void DetectFaceAttributesResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string DetectFaceAttributesResult::getMessage()const { return message_; diff --git a/cloudauth/src/model/GetMaterialsRequest.cc b/cloudauth/src/model/GetMaterialsRequest.cc index 10ea61bed..039a01935 100644 --- a/cloudauth/src/model/GetMaterialsRequest.cc +++ b/cloudauth/src/model/GetMaterialsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::GetMaterialsRequest; - -GetMaterialsRequest::GetMaterialsRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "GetMaterials") -{} - -GetMaterialsRequest::~GetMaterialsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::GetMaterialsRequest; + +GetMaterialsRequest::GetMaterialsRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "GetMaterials") +{} + +GetMaterialsRequest::~GetMaterialsRequest() +{} + long GetMaterialsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/cloudauth/src/model/GetMaterialsResult.cc b/cloudauth/src/model/GetMaterialsResult.cc index d1fb41772..82a6d47f9 100644 --- a/cloudauth/src/model/GetMaterialsResult.cc +++ b/cloudauth/src/model/GetMaterialsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -GetMaterialsResult::GetMaterialsResult() : - ServiceResult() -{} - -GetMaterialsResult::GetMaterialsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetMaterialsResult::~GetMaterialsResult() -{} - -void GetMaterialsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +GetMaterialsResult::GetMaterialsResult() : + ServiceResult() +{} + +GetMaterialsResult::GetMaterialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMaterialsResult::~GetMaterialsResult() +{} + +void GetMaterialsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Name"].isNull()) data_.name = dataNode["Name"].asString(); @@ -71,9 +74,9 @@ void GetMaterialsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetMaterialsResult::getMessage()const { return message_; diff --git a/cloudauth/src/model/GetStatusRequest.cc b/cloudauth/src/model/GetStatusRequest.cc index 5479d33d3..d628075e6 100644 --- a/cloudauth/src/model/GetStatusRequest.cc +++ b/cloudauth/src/model/GetStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::GetStatusRequest; - -GetStatusRequest::GetStatusRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "GetStatus") -{} - -GetStatusRequest::~GetStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::GetStatusRequest; + +GetStatusRequest::GetStatusRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "GetStatus") +{} + +GetStatusRequest::~GetStatusRequest() +{} + long GetStatusRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/cloudauth/src/model/GetStatusResult.cc b/cloudauth/src/model/GetStatusResult.cc index 87c63dfe8..e0f338759 100644 --- a/cloudauth/src/model/GetStatusResult.cc +++ b/cloudauth/src/model/GetStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -GetStatusResult::GetStatusResult() : - ServiceResult() -{} - -GetStatusResult::GetStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetStatusResult::~GetStatusResult() -{} - -void GetStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +GetStatusResult::GetStatusResult() : + ServiceResult() +{} + +GetStatusResult::GetStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStatusResult::~GetStatusResult() +{} + +void GetStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["StatusCode"].isNull()) data_.statusCode = std::stoi(dataNode["StatusCode"].asString()); @@ -57,9 +60,9 @@ void GetStatusResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetStatusResult::getMessage()const { return message_; diff --git a/cloudauth/src/model/GetVerifyTokenRequest.cc b/cloudauth/src/model/GetVerifyTokenRequest.cc index eaae1d56b..f92a524a8 100644 --- a/cloudauth/src/model/GetVerifyTokenRequest.cc +++ b/cloudauth/src/model/GetVerifyTokenRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::GetVerifyTokenRequest; - -GetVerifyTokenRequest::GetVerifyTokenRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "GetVerifyToken") -{} - -GetVerifyTokenRequest::~GetVerifyTokenRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::GetVerifyTokenRequest; + +GetVerifyTokenRequest::GetVerifyTokenRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "GetVerifyToken") +{} + +GetVerifyTokenRequest::~GetVerifyTokenRequest() +{} + std::string GetVerifyTokenRequest::getUserData()const { return userData_; diff --git a/cloudauth/src/model/GetVerifyTokenResult.cc b/cloudauth/src/model/GetVerifyTokenResult.cc index f2736fb4d..e13a6bad5 100644 --- a/cloudauth/src/model/GetVerifyTokenResult.cc +++ b/cloudauth/src/model/GetVerifyTokenResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -GetVerifyTokenResult::GetVerifyTokenResult() : - ServiceResult() -{} - -GetVerifyTokenResult::GetVerifyTokenResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetVerifyTokenResult::~GetVerifyTokenResult() -{} - -void GetVerifyTokenResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +GetVerifyTokenResult::GetVerifyTokenResult() : + ServiceResult() +{} + +GetVerifyTokenResult::GetVerifyTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVerifyTokenResult::~GetVerifyTokenResult() +{} + +void GetVerifyTokenResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CloudauthPageUrl"].isNull()) data_.cloudauthPageUrl = dataNode["CloudauthPageUrl"].asString(); @@ -69,9 +72,9 @@ void GetVerifyTokenResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string GetVerifyTokenResult::getMessage()const { return message_; diff --git a/cloudauth/src/model/ModifyDeviceInfoRequest.cc b/cloudauth/src/model/ModifyDeviceInfoRequest.cc index 21397a128..5978efa66 100644 --- a/cloudauth/src/model/ModifyDeviceInfoRequest.cc +++ b/cloudauth/src/model/ModifyDeviceInfoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::ModifyDeviceInfoRequest; - -ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo") -{} - -ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::ModifyDeviceInfoRequest; + +ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo") +{} + +ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest() +{} + std::string ModifyDeviceInfoRequest::getUserDeviceId()const { return userDeviceId_; diff --git a/cloudauth/src/model/ModifyDeviceInfoResult.cc b/cloudauth/src/model/ModifyDeviceInfoResult.cc index ce8fa39f6..0b81e6b88 100644 --- a/cloudauth/src/model/ModifyDeviceInfoResult.cc +++ b/cloudauth/src/model/ModifyDeviceInfoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -ModifyDeviceInfoResult::ModifyDeviceInfoResult() : - ServiceResult() -{} - -ModifyDeviceInfoResult::ModifyDeviceInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDeviceInfoResult::~ModifyDeviceInfoResult() -{} - -void ModifyDeviceInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +ModifyDeviceInfoResult::ModifyDeviceInfoResult() : + ServiceResult() +{} + +ModifyDeviceInfoResult::ModifyDeviceInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDeviceInfoResult::~ModifyDeviceInfoResult() +{} + +void ModifyDeviceInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DeviceId"].isNull()) deviceId_ = value["DeviceId"].asString(); if(!value["UserDeviceId"].isNull()) @@ -50,9 +53,9 @@ void ModifyDeviceInfoResult::parse(const std::string &payload) beginDay_ = value["BeginDay"].asString(); if(!value["ExpiredDay"].isNull()) expiredDay_ = value["ExpiredDay"].asString(); - -} - + +} + std::string ModifyDeviceInfoResult::getExpiredDay()const { return expiredDay_; diff --git a/cloudauth/src/model/SubmitMaterialsRequest.cc b/cloudauth/src/model/SubmitMaterialsRequest.cc index f785221da..7ccadcd9f 100644 --- a/cloudauth/src/model/SubmitMaterialsRequest.cc +++ b/cloudauth/src/model/SubmitMaterialsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::SubmitMaterialsRequest; - -SubmitMaterialsRequest::SubmitMaterialsRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "SubmitMaterials") -{} - -SubmitMaterialsRequest::~SubmitMaterialsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::SubmitMaterialsRequest; + +SubmitMaterialsRequest::SubmitMaterialsRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "SubmitMaterials") +{} + +SubmitMaterialsRequest::~SubmitMaterialsRequest() +{} + long SubmitMaterialsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/cloudauth/src/model/SubmitMaterialsResult.cc b/cloudauth/src/model/SubmitMaterialsResult.cc index bdca37558..db6390bcd 100644 --- a/cloudauth/src/model/SubmitMaterialsResult.cc +++ b/cloudauth/src/model/SubmitMaterialsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -SubmitMaterialsResult::SubmitMaterialsResult() : - ServiceResult() -{} - -SubmitMaterialsResult::SubmitMaterialsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SubmitMaterialsResult::~SubmitMaterialsResult() -{} - -void SubmitMaterialsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +SubmitMaterialsResult::SubmitMaterialsResult() : + ServiceResult() +{} + +SubmitMaterialsResult::SubmitMaterialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitMaterialsResult::~SubmitMaterialsResult() +{} + +void SubmitMaterialsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto verifyStatusNode = dataNode["VerifyStatus"]; if(!verifyStatusNode["StatusCode"].isNull()) @@ -58,9 +61,9 @@ void SubmitMaterialsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string SubmitMaterialsResult::getMessage()const { return message_; diff --git a/cloudauth/src/model/SubmitVerificationRequest.cc b/cloudauth/src/model/SubmitVerificationRequest.cc index 2b34c465d..df5580b67 100644 --- a/cloudauth/src/model/SubmitVerificationRequest.cc +++ b/cloudauth/src/model/SubmitVerificationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cloudauth::Model::SubmitVerificationRequest; - -SubmitVerificationRequest::SubmitVerificationRequest() : - RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification") -{} - -SubmitVerificationRequest::~SubmitVerificationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth::Model::SubmitVerificationRequest; + +SubmitVerificationRequest::SubmitVerificationRequest() : + RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification") +{} + +SubmitVerificationRequest::~SubmitVerificationRequest() +{} + long SubmitVerificationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/cloudauth/src/model/SubmitVerificationResult.cc b/cloudauth/src/model/SubmitVerificationResult.cc index 13059df6d..b06d8e62c 100644 --- a/cloudauth/src/model/SubmitVerificationResult.cc +++ b/cloudauth/src/model/SubmitVerificationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudauth; -using namespace AlibabaCloud::Cloudauth::Model; - -SubmitVerificationResult::SubmitVerificationResult() : - ServiceResult() -{} - -SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SubmitVerificationResult::~SubmitVerificationResult() -{} - -void SubmitVerificationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +SubmitVerificationResult::SubmitVerificationResult() : + ServiceResult() +{} + +SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitVerificationResult::~SubmitVerificationResult() +{} + +void SubmitVerificationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto verifyStatusNode = dataNode["VerifyStatus"]; if(!verifyStatusNode["StatusCode"].isNull()) @@ -58,9 +61,9 @@ void SubmitVerificationResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - -} - + +} + std::string SubmitVerificationResult::getMessage()const { return message_; diff --git a/cloudphoto/CMakeLists.txt b/cloudphoto/CMakeLists.txt index 6bb4c7d6a..026bcd6f3 100644 --- a/cloudphoto/CMakeLists.txt +++ b/cloudphoto/CMakeLists.txt @@ -61,12 +61,12 @@ set(cloudphoto_public_header_model include/alibabacloud/cloudphoto/model/InactivatePhotosResult.h include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h include/alibabacloud/cloudphoto/model/CreateTransactionResult.h - include/alibabacloud/cloudphoto/model/GetLibraryRequest.h - include/alibabacloud/cloudphoto/model/GetLibraryResult.h include/alibabacloud/cloudphoto/model/CreatePhotoStoreRequest.h include/alibabacloud/cloudphoto/model/CreatePhotoStoreResult.h include/alibabacloud/cloudphoto/model/TagPhotoRequest.h include/alibabacloud/cloudphoto/model/TagPhotoResult.h + include/alibabacloud/cloudphoto/model/GetLibraryRequest.h + include/alibabacloud/cloudphoto/model/GetLibraryResult.h include/alibabacloud/cloudphoto/model/SetQuotaRequest.h include/alibabacloud/cloudphoto/model/SetQuotaResult.h include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosRequest.h @@ -75,20 +75,20 @@ set(cloudphoto_public_header_model include/alibabacloud/cloudphoto/model/ListAlbumPhotosResult.h include/alibabacloud/cloudphoto/model/ListAlbumsRequest.h include/alibabacloud/cloudphoto/model/ListAlbumsResult.h - include/alibabacloud/cloudphoto/model/FetchPhotosRequest.h - include/alibabacloud/cloudphoto/model/FetchPhotosResult.h include/alibabacloud/cloudphoto/model/ListPhotoFacesRequest.h include/alibabacloud/cloudphoto/model/ListPhotoFacesResult.h + include/alibabacloud/cloudphoto/model/FetchPhotosRequest.h + include/alibabacloud/cloudphoto/model/FetchPhotosResult.h include/alibabacloud/cloudphoto/model/RenameAlbumRequest.h include/alibabacloud/cloudphoto/model/RenameAlbumResult.h include/alibabacloud/cloudphoto/model/ActivatePhotosRequest.h include/alibabacloud/cloudphoto/model/ActivatePhotosResult.h include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsRequest.h include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h - include/alibabacloud/cloudphoto/model/ListEventsRequest.h - include/alibabacloud/cloudphoto/model/ListEventsResult.h include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h + include/alibabacloud/cloudphoto/model/ListEventsRequest.h + include/alibabacloud/cloudphoto/model/ListEventsResult.h include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h @@ -111,20 +111,20 @@ set(cloudphoto_public_header_model include/alibabacloud/cloudphoto/model/EditPhotoStoreResult.h include/alibabacloud/cloudphoto/model/ListTimeLinesRequest.h include/alibabacloud/cloudphoto/model/ListTimeLinesResult.h - include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h - include/alibabacloud/cloudphoto/model/SearchPhotosResult.h include/alibabacloud/cloudphoto/model/ToggleFeaturesRequest.h include/alibabacloud/cloudphoto/model/ToggleFeaturesResult.h + include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h + include/alibabacloud/cloudphoto/model/SearchPhotosResult.h include/alibabacloud/cloudphoto/model/ListRegisteredTagsRequest.h include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h include/alibabacloud/cloudphoto/model/CreateEventRequest.h include/alibabacloud/cloudphoto/model/CreateEventResult.h - include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h - include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h include/alibabacloud/cloudphoto/model/ListMomentPhotosResult.h + include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h + include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h include/alibabacloud/cloudphoto/model/GetThumbnailRequest.h include/alibabacloud/cloudphoto/model/GetThumbnailResult.h include/alibabacloud/cloudphoto/model/SetFaceCoverRequest.h @@ -204,12 +204,12 @@ set(cloudphoto_src src/model/InactivatePhotosResult.cc src/model/CreateTransactionRequest.cc src/model/CreateTransactionResult.cc - src/model/GetLibraryRequest.cc - src/model/GetLibraryResult.cc src/model/CreatePhotoStoreRequest.cc src/model/CreatePhotoStoreResult.cc src/model/TagPhotoRequest.cc src/model/TagPhotoResult.cc + src/model/GetLibraryRequest.cc + src/model/GetLibraryResult.cc src/model/SetQuotaRequest.cc src/model/SetQuotaResult.cc src/model/RemoveAlbumPhotosRequest.cc @@ -218,20 +218,20 @@ set(cloudphoto_src src/model/ListAlbumPhotosResult.cc src/model/ListAlbumsRequest.cc src/model/ListAlbumsResult.cc - src/model/FetchPhotosRequest.cc - src/model/FetchPhotosResult.cc src/model/ListPhotoFacesRequest.cc src/model/ListPhotoFacesResult.cc + src/model/FetchPhotosRequest.cc + src/model/FetchPhotosResult.cc src/model/RenameAlbumRequest.cc src/model/RenameAlbumResult.cc src/model/ActivatePhotosRequest.cc src/model/ActivatePhotosResult.cc src/model/GetPrivateAccessUrlsRequest.cc src/model/GetPrivateAccessUrlsResult.cc - src/model/ListEventsRequest.cc - src/model/ListEventsResult.cc src/model/GetSimilarPhotosRequest.cc src/model/GetSimilarPhotosResult.cc + src/model/ListEventsRequest.cc + src/model/ListEventsResult.cc src/model/GetVideoCoverRequest.cc src/model/GetVideoCoverResult.cc src/model/GetFramedPhotoUrlsRequest.cc @@ -254,20 +254,20 @@ set(cloudphoto_src src/model/EditPhotoStoreResult.cc src/model/ListTimeLinesRequest.cc src/model/ListTimeLinesResult.cc - src/model/SearchPhotosRequest.cc - src/model/SearchPhotosResult.cc src/model/ToggleFeaturesRequest.cc src/model/ToggleFeaturesResult.cc + src/model/SearchPhotosRequest.cc + src/model/SearchPhotosResult.cc src/model/ListRegisteredTagsRequest.cc src/model/ListRegisteredTagsResult.cc src/model/DeletePhotoStoreRequest.cc src/model/DeletePhotoStoreResult.cc src/model/CreateEventRequest.cc src/model/CreateEventResult.cc - src/model/GetPhotoStoreRequest.cc - src/model/GetPhotoStoreResult.cc src/model/ListMomentPhotosRequest.cc src/model/ListMomentPhotosResult.cc + src/model/GetPhotoStoreRequest.cc + src/model/GetPhotoStoreResult.cc src/model/GetThumbnailRequest.cc src/model/GetThumbnailResult.cc src/model/SetFaceCoverRequest.cc diff --git a/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h b/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h index d37d1d3ab..aa486c775 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h @@ -62,12 +62,12 @@ #include "model/InactivatePhotosResult.h" #include "model/CreateTransactionRequest.h" #include "model/CreateTransactionResult.h" -#include "model/GetLibraryRequest.h" -#include "model/GetLibraryResult.h" #include "model/CreatePhotoStoreRequest.h" #include "model/CreatePhotoStoreResult.h" #include "model/TagPhotoRequest.h" #include "model/TagPhotoResult.h" +#include "model/GetLibraryRequest.h" +#include "model/GetLibraryResult.h" #include "model/SetQuotaRequest.h" #include "model/SetQuotaResult.h" #include "model/RemoveAlbumPhotosRequest.h" @@ -76,20 +76,20 @@ #include "model/ListAlbumPhotosResult.h" #include "model/ListAlbumsRequest.h" #include "model/ListAlbumsResult.h" -#include "model/FetchPhotosRequest.h" -#include "model/FetchPhotosResult.h" #include "model/ListPhotoFacesRequest.h" #include "model/ListPhotoFacesResult.h" +#include "model/FetchPhotosRequest.h" +#include "model/FetchPhotosResult.h" #include "model/RenameAlbumRequest.h" #include "model/RenameAlbumResult.h" #include "model/ActivatePhotosRequest.h" #include "model/ActivatePhotosResult.h" #include "model/GetPrivateAccessUrlsRequest.h" #include "model/GetPrivateAccessUrlsResult.h" -#include "model/ListEventsRequest.h" -#include "model/ListEventsResult.h" #include "model/GetSimilarPhotosRequest.h" #include "model/GetSimilarPhotosResult.h" +#include "model/ListEventsRequest.h" +#include "model/ListEventsResult.h" #include "model/GetVideoCoverRequest.h" #include "model/GetVideoCoverResult.h" #include "model/GetFramedPhotoUrlsRequest.h" @@ -112,20 +112,20 @@ #include "model/EditPhotoStoreResult.h" #include "model/ListTimeLinesRequest.h" #include "model/ListTimeLinesResult.h" -#include "model/SearchPhotosRequest.h" -#include "model/SearchPhotosResult.h" #include "model/ToggleFeaturesRequest.h" #include "model/ToggleFeaturesResult.h" +#include "model/SearchPhotosRequest.h" +#include "model/SearchPhotosResult.h" #include "model/ListRegisteredTagsRequest.h" #include "model/ListRegisteredTagsResult.h" #include "model/DeletePhotoStoreRequest.h" #include "model/DeletePhotoStoreResult.h" #include "model/CreateEventRequest.h" #include "model/CreateEventResult.h" -#include "model/GetPhotoStoreRequest.h" -#include "model/GetPhotoStoreResult.h" #include "model/ListMomentPhotosRequest.h" #include "model/ListMomentPhotosResult.h" +#include "model/GetPhotoStoreRequest.h" +#include "model/GetPhotoStoreResult.h" #include "model/GetThumbnailRequest.h" #include "model/GetThumbnailResult.h" #include "model/SetFaceCoverRequest.h" @@ -231,15 +231,15 @@ namespace AlibabaCloud typedef Outcome CreateTransactionOutcome; typedef std::future CreateTransactionOutcomeCallable; typedef std::function&)> CreateTransactionAsyncHandler; - typedef Outcome GetLibraryOutcome; - typedef std::future GetLibraryOutcomeCallable; - typedef std::function&)> GetLibraryAsyncHandler; typedef Outcome CreatePhotoStoreOutcome; typedef std::future CreatePhotoStoreOutcomeCallable; typedef std::function&)> CreatePhotoStoreAsyncHandler; typedef Outcome TagPhotoOutcome; typedef std::future TagPhotoOutcomeCallable; typedef std::function&)> TagPhotoAsyncHandler; + typedef Outcome GetLibraryOutcome; + typedef std::future GetLibraryOutcomeCallable; + typedef std::function&)> GetLibraryAsyncHandler; typedef Outcome SetQuotaOutcome; typedef std::future SetQuotaOutcomeCallable; typedef std::function&)> SetQuotaAsyncHandler; @@ -252,12 +252,12 @@ namespace AlibabaCloud typedef Outcome ListAlbumsOutcome; typedef std::future ListAlbumsOutcomeCallable; typedef std::function&)> ListAlbumsAsyncHandler; - typedef Outcome FetchPhotosOutcome; - typedef std::future FetchPhotosOutcomeCallable; - typedef std::function&)> FetchPhotosAsyncHandler; typedef Outcome ListPhotoFacesOutcome; typedef std::future ListPhotoFacesOutcomeCallable; typedef std::function&)> ListPhotoFacesAsyncHandler; + typedef Outcome FetchPhotosOutcome; + typedef std::future FetchPhotosOutcomeCallable; + typedef std::function&)> FetchPhotosAsyncHandler; typedef Outcome RenameAlbumOutcome; typedef std::future RenameAlbumOutcomeCallable; typedef std::function&)> RenameAlbumAsyncHandler; @@ -267,12 +267,12 @@ namespace AlibabaCloud typedef Outcome GetPrivateAccessUrlsOutcome; typedef std::future GetPrivateAccessUrlsOutcomeCallable; typedef std::function&)> GetPrivateAccessUrlsAsyncHandler; - typedef Outcome ListEventsOutcome; - typedef std::future ListEventsOutcomeCallable; - typedef std::function&)> ListEventsAsyncHandler; typedef Outcome GetSimilarPhotosOutcome; typedef std::future GetSimilarPhotosOutcomeCallable; typedef std::function&)> GetSimilarPhotosAsyncHandler; + typedef Outcome ListEventsOutcome; + typedef std::future ListEventsOutcomeCallable; + typedef std::function&)> ListEventsAsyncHandler; typedef Outcome GetVideoCoverOutcome; typedef std::future GetVideoCoverOutcomeCallable; typedef std::function&)> GetVideoCoverAsyncHandler; @@ -306,12 +306,12 @@ namespace AlibabaCloud typedef Outcome ListTimeLinesOutcome; typedef std::future ListTimeLinesOutcomeCallable; typedef std::function&)> ListTimeLinesAsyncHandler; - typedef Outcome SearchPhotosOutcome; - typedef std::future SearchPhotosOutcomeCallable; - typedef std::function&)> SearchPhotosAsyncHandler; typedef Outcome ToggleFeaturesOutcome; typedef std::future ToggleFeaturesOutcomeCallable; typedef std::function&)> ToggleFeaturesAsyncHandler; + typedef Outcome SearchPhotosOutcome; + typedef std::future SearchPhotosOutcomeCallable; + typedef std::function&)> SearchPhotosAsyncHandler; typedef Outcome ListRegisteredTagsOutcome; typedef std::future ListRegisteredTagsOutcomeCallable; typedef std::function&)> ListRegisteredTagsAsyncHandler; @@ -321,12 +321,12 @@ namespace AlibabaCloud typedef Outcome CreateEventOutcome; typedef std::future CreateEventOutcomeCallable; typedef std::function&)> CreateEventAsyncHandler; - typedef Outcome GetPhotoStoreOutcome; - typedef std::future GetPhotoStoreOutcomeCallable; - typedef std::function&)> GetPhotoStoreAsyncHandler; typedef Outcome ListMomentPhotosOutcome; typedef std::future ListMomentPhotosOutcomeCallable; typedef std::function&)> ListMomentPhotosAsyncHandler; + typedef Outcome GetPhotoStoreOutcome; + typedef std::future GetPhotoStoreOutcomeCallable; + typedef std::function&)> GetPhotoStoreAsyncHandler; typedef Outcome GetThumbnailOutcome; typedef std::future GetThumbnailOutcomeCallable; typedef std::function&)> GetThumbnailAsyncHandler; @@ -446,15 +446,15 @@ namespace AlibabaCloud CreateTransactionOutcome createTransaction(const Model::CreateTransactionRequest &request)const; void createTransactionAsync(const Model::CreateTransactionRequest& request, const CreateTransactionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTransactionOutcomeCallable createTransactionCallable(const Model::CreateTransactionRequest& request) const; - GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const; - void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const; CreatePhotoStoreOutcome createPhotoStore(const Model::CreatePhotoStoreRequest &request)const; void createPhotoStoreAsync(const Model::CreatePhotoStoreRequest& request, const CreatePhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePhotoStoreOutcomeCallable createPhotoStoreCallable(const Model::CreatePhotoStoreRequest& request) const; TagPhotoOutcome tagPhoto(const Model::TagPhotoRequest &request)const; void tagPhotoAsync(const Model::TagPhotoRequest& request, const TagPhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagPhotoOutcomeCallable tagPhotoCallable(const Model::TagPhotoRequest& request) const; + GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const; + void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const; SetQuotaOutcome setQuota(const Model::SetQuotaRequest &request)const; void setQuotaAsync(const Model::SetQuotaRequest& request, const SetQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetQuotaOutcomeCallable setQuotaCallable(const Model::SetQuotaRequest& request) const; @@ -467,12 +467,12 @@ namespace AlibabaCloud ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const; void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const; - FetchPhotosOutcome fetchPhotos(const Model::FetchPhotosRequest &request)const; - void fetchPhotosAsync(const Model::FetchPhotosRequest& request, const FetchPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FetchPhotosOutcomeCallable fetchPhotosCallable(const Model::FetchPhotosRequest& request) const; ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const; void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const; + FetchPhotosOutcome fetchPhotos(const Model::FetchPhotosRequest &request)const; + void fetchPhotosAsync(const Model::FetchPhotosRequest& request, const FetchPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FetchPhotosOutcomeCallable fetchPhotosCallable(const Model::FetchPhotosRequest& request) const; RenameAlbumOutcome renameAlbum(const Model::RenameAlbumRequest &request)const; void renameAlbumAsync(const Model::RenameAlbumRequest& request, const RenameAlbumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenameAlbumOutcomeCallable renameAlbumCallable(const Model::RenameAlbumRequest& request) const; @@ -482,12 +482,12 @@ namespace AlibabaCloud GetPrivateAccessUrlsOutcome getPrivateAccessUrls(const Model::GetPrivateAccessUrlsRequest &request)const; void getPrivateAccessUrlsAsync(const Model::GetPrivateAccessUrlsRequest& request, const GetPrivateAccessUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPrivateAccessUrlsOutcomeCallable getPrivateAccessUrlsCallable(const Model::GetPrivateAccessUrlsRequest& request) const; - ListEventsOutcome listEvents(const Model::ListEventsRequest &request)const; - void listEventsAsync(const Model::ListEventsRequest& request, const ListEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListEventsOutcomeCallable listEventsCallable(const Model::ListEventsRequest& request) const; GetSimilarPhotosOutcome getSimilarPhotos(const Model::GetSimilarPhotosRequest &request)const; void getSimilarPhotosAsync(const Model::GetSimilarPhotosRequest& request, const GetSimilarPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSimilarPhotosOutcomeCallable getSimilarPhotosCallable(const Model::GetSimilarPhotosRequest& request) const; + ListEventsOutcome listEvents(const Model::ListEventsRequest &request)const; + void listEventsAsync(const Model::ListEventsRequest& request, const ListEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEventsOutcomeCallable listEventsCallable(const Model::ListEventsRequest& request) const; GetVideoCoverOutcome getVideoCover(const Model::GetVideoCoverRequest &request)const; void getVideoCoverAsync(const Model::GetVideoCoverRequest& request, const GetVideoCoverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetVideoCoverOutcomeCallable getVideoCoverCallable(const Model::GetVideoCoverRequest& request) const; @@ -521,12 +521,12 @@ namespace AlibabaCloud ListTimeLinesOutcome listTimeLines(const Model::ListTimeLinesRequest &request)const; void listTimeLinesAsync(const Model::ListTimeLinesRequest& request, const ListTimeLinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTimeLinesOutcomeCallable listTimeLinesCallable(const Model::ListTimeLinesRequest& request) const; - SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const; - void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const; ToggleFeaturesOutcome toggleFeatures(const Model::ToggleFeaturesRequest &request)const; void toggleFeaturesAsync(const Model::ToggleFeaturesRequest& request, const ToggleFeaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ToggleFeaturesOutcomeCallable toggleFeaturesCallable(const Model::ToggleFeaturesRequest& request) const; + SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const; + void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const; ListRegisteredTagsOutcome listRegisteredTags(const Model::ListRegisteredTagsRequest &request)const; void listRegisteredTagsAsync(const Model::ListRegisteredTagsRequest& request, const ListRegisteredTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRegisteredTagsOutcomeCallable listRegisteredTagsCallable(const Model::ListRegisteredTagsRequest& request) const; @@ -536,12 +536,12 @@ namespace AlibabaCloud CreateEventOutcome createEvent(const Model::CreateEventRequest &request)const; void createEventAsync(const Model::CreateEventRequest& request, const CreateEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateEventOutcomeCallable createEventCallable(const Model::CreateEventRequest& request) const; - GetPhotoStoreOutcome getPhotoStore(const Model::GetPhotoStoreRequest &request)const; - void getPhotoStoreAsync(const Model::GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPhotoStoreOutcomeCallable getPhotoStoreCallable(const Model::GetPhotoStoreRequest& request) const; ListMomentPhotosOutcome listMomentPhotos(const Model::ListMomentPhotosRequest &request)const; void listMomentPhotosAsync(const Model::ListMomentPhotosRequest& request, const ListMomentPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListMomentPhotosOutcomeCallable listMomentPhotosCallable(const Model::ListMomentPhotosRequest& request) const; + GetPhotoStoreOutcome getPhotoStore(const Model::GetPhotoStoreRequest &request)const; + void getPhotoStoreAsync(const Model::GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhotoStoreOutcomeCallable getPhotoStoreCallable(const Model::GetPhotoStoreRequest& request) const; GetThumbnailOutcome getThumbnail(const Model::GetThumbnailRequest &request)const; void getThumbnailAsync(const Model::GetThumbnailRequest& request, const GetThumbnailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetThumbnailOutcomeCallable getThumbnailCallable(const Model::GetThumbnailRequest& request) const; diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesRequest.h index 8fd45996f..a1cb2fb7c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud int getSize()const; void setSize(int size); + bool getNeedQuota()const; + void setNeedQuota(bool needQuota); std::string getStoreName()const; void setStoreName(const std::string& storeName); int getPage()const; @@ -44,6 +46,7 @@ namespace AlibabaCloud private: int size_; + bool needQuota_; std::string storeName_; int page_; diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h index 5c56e65c0..edf19d8e2 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Library { std::string libraryId; + long totalQuota; long ctime; }; diff --git a/cloudphoto/src/CloudPhotoClient.cc b/cloudphoto/src/CloudPhotoClient.cc index c1e7c9a7e..d25e925e7 100644 --- a/cloudphoto/src/CloudPhotoClient.cc +++ b/cloudphoto/src/CloudPhotoClient.cc @@ -771,42 +771,6 @@ CloudPhotoClient::CreateTransactionOutcomeCallable CloudPhotoClient::createTrans return task->get_future(); } -CloudPhotoClient::GetLibraryOutcome CloudPhotoClient::getLibrary(const GetLibraryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetLibraryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetLibraryOutcome(GetLibraryResult(outcome.result())); - else - return GetLibraryOutcome(outcome.error()); -} - -void CloudPhotoClient::getLibraryAsync(const GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getLibrary(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudPhotoClient::GetLibraryOutcomeCallable CloudPhotoClient::getLibraryCallable(const GetLibraryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getLibrary(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudPhotoClient::CreatePhotoStoreOutcome CloudPhotoClient::createPhotoStore(const CreatePhotoStoreRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +843,42 @@ CloudPhotoClient::TagPhotoOutcomeCallable CloudPhotoClient::tagPhotoCallable(con return task->get_future(); } +CloudPhotoClient::GetLibraryOutcome CloudPhotoClient::getLibrary(const GetLibraryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLibraryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLibraryOutcome(GetLibraryResult(outcome.result())); + else + return GetLibraryOutcome(outcome.error()); +} + +void CloudPhotoClient::getLibraryAsync(const GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLibrary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudPhotoClient::GetLibraryOutcomeCallable CloudPhotoClient::getLibraryCallable(const GetLibraryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLibrary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudPhotoClient::SetQuotaOutcome CloudPhotoClient::setQuota(const SetQuotaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,42 +1023,6 @@ CloudPhotoClient::ListAlbumsOutcomeCallable CloudPhotoClient::listAlbumsCallable return task->get_future(); } -CloudPhotoClient::FetchPhotosOutcome CloudPhotoClient::fetchPhotos(const FetchPhotosRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FetchPhotosOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FetchPhotosOutcome(FetchPhotosResult(outcome.result())); - else - return FetchPhotosOutcome(outcome.error()); -} - -void CloudPhotoClient::fetchPhotosAsync(const FetchPhotosRequest& request, const FetchPhotosAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, fetchPhotos(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudPhotoClient::FetchPhotosOutcomeCallable CloudPhotoClient::fetchPhotosCallable(const FetchPhotosRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->fetchPhotos(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudPhotoClient::ListPhotoFacesOutcome CloudPhotoClient::listPhotoFaces(const ListPhotoFacesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1059,42 @@ CloudPhotoClient::ListPhotoFacesOutcomeCallable CloudPhotoClient::listPhotoFaces return task->get_future(); } +CloudPhotoClient::FetchPhotosOutcome CloudPhotoClient::fetchPhotos(const FetchPhotosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FetchPhotosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FetchPhotosOutcome(FetchPhotosResult(outcome.result())); + else + return FetchPhotosOutcome(outcome.error()); +} + +void CloudPhotoClient::fetchPhotosAsync(const FetchPhotosRequest& request, const FetchPhotosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, fetchPhotos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudPhotoClient::FetchPhotosOutcomeCallable CloudPhotoClient::fetchPhotosCallable(const FetchPhotosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->fetchPhotos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudPhotoClient::RenameAlbumOutcome CloudPhotoClient::renameAlbum(const RenameAlbumRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,42 +1203,6 @@ CloudPhotoClient::GetPrivateAccessUrlsOutcomeCallable CloudPhotoClient::getPriva return task->get_future(); } -CloudPhotoClient::ListEventsOutcome CloudPhotoClient::listEvents(const ListEventsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListEventsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListEventsOutcome(ListEventsResult(outcome.result())); - else - return ListEventsOutcome(outcome.error()); -} - -void CloudPhotoClient::listEventsAsync(const ListEventsRequest& request, const ListEventsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listEvents(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudPhotoClient::ListEventsOutcomeCallable CloudPhotoClient::listEventsCallable(const ListEventsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listEvents(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudPhotoClient::GetSimilarPhotosOutcome CloudPhotoClient::getSimilarPhotos(const GetSimilarPhotosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1239,42 @@ CloudPhotoClient::GetSimilarPhotosOutcomeCallable CloudPhotoClient::getSimilarPh return task->get_future(); } +CloudPhotoClient::ListEventsOutcome CloudPhotoClient::listEvents(const ListEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEventsOutcome(ListEventsResult(outcome.result())); + else + return ListEventsOutcome(outcome.error()); +} + +void CloudPhotoClient::listEventsAsync(const ListEventsRequest& request, const ListEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudPhotoClient::ListEventsOutcomeCallable CloudPhotoClient::listEventsCallable(const ListEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudPhotoClient::GetVideoCoverOutcome CloudPhotoClient::getVideoCover(const GetVideoCoverRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,42 +1671,6 @@ CloudPhotoClient::ListTimeLinesOutcomeCallable CloudPhotoClient::listTimeLinesCa return task->get_future(); } -CloudPhotoClient::SearchPhotosOutcome CloudPhotoClient::searchPhotos(const SearchPhotosRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchPhotosOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchPhotosOutcome(SearchPhotosResult(outcome.result())); - else - return SearchPhotosOutcome(outcome.error()); -} - -void CloudPhotoClient::searchPhotosAsync(const SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchPhotos(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudPhotoClient::SearchPhotosOutcomeCallable CloudPhotoClient::searchPhotosCallable(const SearchPhotosRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchPhotos(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudPhotoClient::ToggleFeaturesOutcome CloudPhotoClient::toggleFeatures(const ToggleFeaturesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +1707,42 @@ CloudPhotoClient::ToggleFeaturesOutcomeCallable CloudPhotoClient::toggleFeatures return task->get_future(); } +CloudPhotoClient::SearchPhotosOutcome CloudPhotoClient::searchPhotos(const SearchPhotosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchPhotosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchPhotosOutcome(SearchPhotosResult(outcome.result())); + else + return SearchPhotosOutcome(outcome.error()); +} + +void CloudPhotoClient::searchPhotosAsync(const SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchPhotos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudPhotoClient::SearchPhotosOutcomeCallable CloudPhotoClient::searchPhotosCallable(const SearchPhotosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchPhotos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudPhotoClient::ListRegisteredTagsOutcome CloudPhotoClient::listRegisteredTags(const ListRegisteredTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1851,42 +1851,6 @@ CloudPhotoClient::CreateEventOutcomeCallable CloudPhotoClient::createEventCallab return task->get_future(); } -CloudPhotoClient::GetPhotoStoreOutcome CloudPhotoClient::getPhotoStore(const GetPhotoStoreRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPhotoStoreOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPhotoStoreOutcome(GetPhotoStoreResult(outcome.result())); - else - return GetPhotoStoreOutcome(outcome.error()); -} - -void CloudPhotoClient::getPhotoStoreAsync(const GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPhotoStore(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudPhotoClient::GetPhotoStoreOutcomeCallable CloudPhotoClient::getPhotoStoreCallable(const GetPhotoStoreRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPhotoStore(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudPhotoClient::ListMomentPhotosOutcome CloudPhotoClient::listMomentPhotos(const ListMomentPhotosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +1887,42 @@ CloudPhotoClient::ListMomentPhotosOutcomeCallable CloudPhotoClient::listMomentPh return task->get_future(); } +CloudPhotoClient::GetPhotoStoreOutcome CloudPhotoClient::getPhotoStore(const GetPhotoStoreRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPhotoStoreOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPhotoStoreOutcome(GetPhotoStoreResult(outcome.result())); + else + return GetPhotoStoreOutcome(outcome.error()); +} + +void CloudPhotoClient::getPhotoStoreAsync(const GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPhotoStore(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudPhotoClient::GetPhotoStoreOutcomeCallable CloudPhotoClient::getPhotoStoreCallable(const GetPhotoStoreRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPhotoStore(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudPhotoClient::GetThumbnailOutcome CloudPhotoClient::getThumbnail(const GetThumbnailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cloudphoto/src/model/ActivatePhotosRequest.cc b/cloudphoto/src/model/ActivatePhotosRequest.cc index 7a1dbd6e2..15108647f 100644 --- a/cloudphoto/src/model/ActivatePhotosRequest.cc +++ b/cloudphoto/src/model/ActivatePhotosRequest.cc @@ -33,7 +33,7 @@ std::string ActivatePhotosRequest::getLibraryId()const void ActivatePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector ActivatePhotosRequest::getPhotoId()const @@ -45,7 +45,7 @@ void ActivatePhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string ActivatePhotosRequest::getStoreName()const @@ -56,6 +56,6 @@ std::string ActivatePhotosRequest::getStoreName()const void ActivatePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/ActivatePhotosResult.cc b/cloudphoto/src/model/ActivatePhotosResult.cc index 70c6c80c6..0a21668b5 100644 --- a/cloudphoto/src/model/ActivatePhotosResult.cc +++ b/cloudphoto/src/model/ActivatePhotosResult.cc @@ -35,10 +35,13 @@ ActivatePhotosResult::~ActivatePhotosResult() void ActivatePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/AddAlbumPhotosRequest.cc b/cloudphoto/src/model/AddAlbumPhotosRequest.cc index cdf2eb347..bc8ec8650 100644 --- a/cloudphoto/src/model/AddAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/AddAlbumPhotosRequest.cc @@ -33,7 +33,7 @@ std::string AddAlbumPhotosRequest::getLibraryId()const void AddAlbumPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long AddAlbumPhotosRequest::getAlbumId()const @@ -44,7 +44,7 @@ long AddAlbumPhotosRequest::getAlbumId()const void AddAlbumPhotosRequest::setAlbumId(long albumId) { albumId_ = albumId; - setParameter("AlbumId", std::to_string(albumId)); + setCoreParameter("AlbumId", std::to_string(albumId)); } std::vector AddAlbumPhotosRequest::getPhotoId()const @@ -56,7 +56,7 @@ void AddAlbumPhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string AddAlbumPhotosRequest::getStoreName()const @@ -67,6 +67,6 @@ std::string AddAlbumPhotosRequest::getStoreName()const void AddAlbumPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/AddAlbumPhotosResult.cc b/cloudphoto/src/model/AddAlbumPhotosResult.cc index f877b349c..965afadf2 100644 --- a/cloudphoto/src/model/AddAlbumPhotosResult.cc +++ b/cloudphoto/src/model/AddAlbumPhotosResult.cc @@ -35,10 +35,13 @@ AddAlbumPhotosResult::~AddAlbumPhotosResult() void AddAlbumPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/CreateAlbumRequest.cc b/cloudphoto/src/model/CreateAlbumRequest.cc index 250f8f7c6..b503169fc 100644 --- a/cloudphoto/src/model/CreateAlbumRequest.cc +++ b/cloudphoto/src/model/CreateAlbumRequest.cc @@ -33,7 +33,7 @@ std::string CreateAlbumRequest::getAlbumName()const void CreateAlbumRequest::setAlbumName(const std::string& albumName) { albumName_ = albumName; - setParameter("AlbumName", albumName); + setCoreParameter("AlbumName", albumName); } std::string CreateAlbumRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string CreateAlbumRequest::getLibraryId()const void CreateAlbumRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string CreateAlbumRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string CreateAlbumRequest::getStoreName()const void CreateAlbumRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string CreateAlbumRequest::getRemark()const @@ -66,6 +66,6 @@ std::string CreateAlbumRequest::getRemark()const void CreateAlbumRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } diff --git a/cloudphoto/src/model/CreateAlbumResult.cc b/cloudphoto/src/model/CreateAlbumResult.cc index 0572ae52b..629e7338d 100644 --- a/cloudphoto/src/model/CreateAlbumResult.cc +++ b/cloudphoto/src/model/CreateAlbumResult.cc @@ -35,10 +35,13 @@ CreateAlbumResult::~CreateAlbumResult() void CreateAlbumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto albumNode = value["Album"]; if(!albumNode["Id"].isNull()) diff --git a/cloudphoto/src/model/CreateEventRequest.cc b/cloudphoto/src/model/CreateEventRequest.cc index 8612bc6b1..7ba3c9d39 100644 --- a/cloudphoto/src/model/CreateEventRequest.cc +++ b/cloudphoto/src/model/CreateEventRequest.cc @@ -33,7 +33,7 @@ std::string CreateEventRequest::getBannerPhotoId()const void CreateEventRequest::setBannerPhotoId(const std::string& bannerPhotoId) { bannerPhotoId_ = bannerPhotoId; - setParameter("BannerPhotoId", bannerPhotoId); + setCoreParameter("BannerPhotoId", bannerPhotoId); } std::string CreateEventRequest::getWatermarkPhotoId()const @@ -44,7 +44,7 @@ std::string CreateEventRequest::getWatermarkPhotoId()const void CreateEventRequest::setWatermarkPhotoId(const std::string& watermarkPhotoId) { watermarkPhotoId_ = watermarkPhotoId; - setParameter("WatermarkPhotoId", watermarkPhotoId); + setCoreParameter("WatermarkPhotoId", watermarkPhotoId); } std::string CreateEventRequest::getIdentity()const @@ -55,7 +55,7 @@ std::string CreateEventRequest::getIdentity()const void CreateEventRequest::setIdentity(const std::string& identity) { identity_ = identity; - setParameter("Identity", identity); + setCoreParameter("Identity", identity); } std::string CreateEventRequest::getSplashPhotoId()const @@ -66,7 +66,7 @@ std::string CreateEventRequest::getSplashPhotoId()const void CreateEventRequest::setSplashPhotoId(const std::string& splashPhotoId) { splashPhotoId_ = splashPhotoId; - setParameter("SplashPhotoId", splashPhotoId); + setCoreParameter("SplashPhotoId", splashPhotoId); } std::string CreateEventRequest::getLibraryId()const @@ -77,7 +77,7 @@ std::string CreateEventRequest::getLibraryId()const void CreateEventRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string CreateEventRequest::getWeixinTitle()const @@ -88,7 +88,7 @@ std::string CreateEventRequest::getWeixinTitle()const void CreateEventRequest::setWeixinTitle(const std::string& weixinTitle) { weixinTitle_ = weixinTitle; - setParameter("WeixinTitle", weixinTitle); + setCoreParameter("WeixinTitle", weixinTitle); } std::string CreateEventRequest::getStoreName()const @@ -99,7 +99,7 @@ std::string CreateEventRequest::getStoreName()const void CreateEventRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string CreateEventRequest::getRemark()const @@ -110,7 +110,7 @@ std::string CreateEventRequest::getRemark()const void CreateEventRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } std::string CreateEventRequest::getTitle()const @@ -121,7 +121,7 @@ std::string CreateEventRequest::getTitle()const void CreateEventRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } long CreateEventRequest::getEndAt()const @@ -132,7 +132,7 @@ long CreateEventRequest::getEndAt()const void CreateEventRequest::setEndAt(long endAt) { endAt_ = endAt; - setParameter("EndAt", std::to_string(endAt)); + setCoreParameter("EndAt", std::to_string(endAt)); } long CreateEventRequest::getStartAt()const @@ -143,6 +143,6 @@ long CreateEventRequest::getStartAt()const void CreateEventRequest::setStartAt(long startAt) { startAt_ = startAt; - setParameter("StartAt", std::to_string(startAt)); + setCoreParameter("StartAt", std::to_string(startAt)); } diff --git a/cloudphoto/src/model/CreateEventResult.cc b/cloudphoto/src/model/CreateEventResult.cc index 9aed80c7a..7b39ebfcb 100644 --- a/cloudphoto/src/model/CreateEventResult.cc +++ b/cloudphoto/src/model/CreateEventResult.cc @@ -35,10 +35,13 @@ CreateEventResult::~CreateEventResult() void CreateEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto eventNode = value["Event"]; if(!eventNode["Id"].isNull()) diff --git a/cloudphoto/src/model/CreatePhotoRequest.cc b/cloudphoto/src/model/CreatePhotoRequest.cc index f0f80a339..929f9fb2e 100644 --- a/cloudphoto/src/model/CreatePhotoRequest.cc +++ b/cloudphoto/src/model/CreatePhotoRequest.cc @@ -33,7 +33,7 @@ long CreatePhotoRequest::getTakenAt()const void CreatePhotoRequest::setTakenAt(long takenAt) { takenAt_ = takenAt; - setParameter("TakenAt", std::to_string(takenAt)); + setCoreParameter("TakenAt", std::to_string(takenAt)); } std::string CreatePhotoRequest::getPhotoTitle()const @@ -44,7 +44,7 @@ std::string CreatePhotoRequest::getPhotoTitle()const void CreatePhotoRequest::setPhotoTitle(const std::string& photoTitle) { photoTitle_ = photoTitle; - setParameter("PhotoTitle", photoTitle); + setCoreParameter("PhotoTitle", photoTitle); } std::string CreatePhotoRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string CreatePhotoRequest::getLibraryId()const void CreatePhotoRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long CreatePhotoRequest::getShareExpireTime()const @@ -66,7 +66,7 @@ long CreatePhotoRequest::getShareExpireTime()const void CreatePhotoRequest::setShareExpireTime(long shareExpireTime) { shareExpireTime_ = shareExpireTime; - setParameter("ShareExpireTime", std::to_string(shareExpireTime)); + setCoreParameter("ShareExpireTime", std::to_string(shareExpireTime)); } std::string CreatePhotoRequest::getStoreName()const @@ -77,7 +77,7 @@ std::string CreatePhotoRequest::getStoreName()const void CreatePhotoRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string CreatePhotoRequest::getUploadType()const @@ -88,7 +88,7 @@ std::string CreatePhotoRequest::getUploadType()const void CreatePhotoRequest::setUploadType(const std::string& uploadType) { uploadType_ = uploadType; - setParameter("UploadType", uploadType); + setCoreParameter("UploadType", uploadType); } std::string CreatePhotoRequest::getRemark()const @@ -99,7 +99,7 @@ std::string CreatePhotoRequest::getRemark()const void CreatePhotoRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } std::string CreatePhotoRequest::getSessionId()const @@ -110,7 +110,7 @@ std::string CreatePhotoRequest::getSessionId()const void CreatePhotoRequest::setSessionId(const std::string& sessionId) { sessionId_ = sessionId; - setParameter("SessionId", sessionId); + setCoreParameter("SessionId", sessionId); } std::string CreatePhotoRequest::getStaging()const @@ -121,7 +121,7 @@ std::string CreatePhotoRequest::getStaging()const void CreatePhotoRequest::setStaging(const std::string& staging) { staging_ = staging; - setParameter("Staging", staging); + setCoreParameter("Staging", staging); } std::string CreatePhotoRequest::getFileId()const @@ -132,6 +132,6 @@ std::string CreatePhotoRequest::getFileId()const void CreatePhotoRequest::setFileId(const std::string& fileId) { fileId_ = fileId; - setParameter("FileId", fileId); + setCoreParameter("FileId", fileId); } diff --git a/cloudphoto/src/model/CreatePhotoResult.cc b/cloudphoto/src/model/CreatePhotoResult.cc index 83e60e2c4..111bf7c84 100644 --- a/cloudphoto/src/model/CreatePhotoResult.cc +++ b/cloudphoto/src/model/CreatePhotoResult.cc @@ -35,10 +35,13 @@ CreatePhotoResult::~CreatePhotoResult() void CreatePhotoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto photoNode = value["Photo"]; if(!photoNode["Id"].isNull()) diff --git a/cloudphoto/src/model/CreatePhotoStoreRequest.cc b/cloudphoto/src/model/CreatePhotoStoreRequest.cc index 42f32ce5a..f28f0a94c 100644 --- a/cloudphoto/src/model/CreatePhotoStoreRequest.cc +++ b/cloudphoto/src/model/CreatePhotoStoreRequest.cc @@ -33,7 +33,7 @@ std::string CreatePhotoStoreRequest::getBucketName()const void CreatePhotoStoreRequest::setBucketName(const std::string& bucketName) { bucketName_ = bucketName; - setParameter("BucketName", bucketName); + setCoreParameter("BucketName", bucketName); } std::string CreatePhotoStoreRequest::getStoreName()const @@ -44,7 +44,7 @@ std::string CreatePhotoStoreRequest::getStoreName()const void CreatePhotoStoreRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string CreatePhotoStoreRequest::getRemark()const @@ -55,7 +55,7 @@ std::string CreatePhotoStoreRequest::getRemark()const void CreatePhotoStoreRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } long CreatePhotoStoreRequest::getDefaultQuota()const @@ -66,6 +66,6 @@ long CreatePhotoStoreRequest::getDefaultQuota()const void CreatePhotoStoreRequest::setDefaultQuota(long defaultQuota) { defaultQuota_ = defaultQuota; - setParameter("DefaultQuota", std::to_string(defaultQuota)); + setCoreParameter("DefaultQuota", std::to_string(defaultQuota)); } diff --git a/cloudphoto/src/model/CreatePhotoStoreResult.cc b/cloudphoto/src/model/CreatePhotoStoreResult.cc index 3ccfebe8e..5d308fc67 100644 --- a/cloudphoto/src/model/CreatePhotoStoreResult.cc +++ b/cloudphoto/src/model/CreatePhotoStoreResult.cc @@ -35,10 +35,13 @@ CreatePhotoStoreResult::~CreatePhotoStoreResult() void CreatePhotoStoreResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/CreateTransactionRequest.cc b/cloudphoto/src/model/CreateTransactionRequest.cc index 12c7185e4..3f864cff4 100644 --- a/cloudphoto/src/model/CreateTransactionRequest.cc +++ b/cloudphoto/src/model/CreateTransactionRequest.cc @@ -33,7 +33,7 @@ std::string CreateTransactionRequest::getExt()const void CreateTransactionRequest::setExt(const std::string& ext) { ext_ = ext; - setParameter("Ext", ext); + setCoreParameter("Ext", ext); } long CreateTransactionRequest::getSize()const @@ -44,7 +44,7 @@ long CreateTransactionRequest::getSize()const void CreateTransactionRequest::setSize(long size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string CreateTransactionRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string CreateTransactionRequest::getLibraryId()const void CreateTransactionRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string CreateTransactionRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string CreateTransactionRequest::getStoreName()const void CreateTransactionRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string CreateTransactionRequest::getForce()const @@ -77,7 +77,7 @@ std::string CreateTransactionRequest::getForce()const void CreateTransactionRequest::setForce(const std::string& force) { force_ = force; - setParameter("Force", force); + setCoreParameter("Force", force); } std::string CreateTransactionRequest::getMd5()const @@ -88,6 +88,6 @@ std::string CreateTransactionRequest::getMd5()const void CreateTransactionRequest::setMd5(const std::string& md5) { md5_ = md5; - setParameter("Md5", md5); + setCoreParameter("Md5", md5); } diff --git a/cloudphoto/src/model/CreateTransactionResult.cc b/cloudphoto/src/model/CreateTransactionResult.cc index 0ef21db85..8d6373f6e 100644 --- a/cloudphoto/src/model/CreateTransactionResult.cc +++ b/cloudphoto/src/model/CreateTransactionResult.cc @@ -35,10 +35,13 @@ CreateTransactionResult::~CreateTransactionResult() void CreateTransactionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto transactionNode = value["Transaction"]; auto uploadNode = transactionNode["Upload"]; diff --git a/cloudphoto/src/model/DeleteAlbumsRequest.cc b/cloudphoto/src/model/DeleteAlbumsRequest.cc index 07cc88a2e..bf9e8f274 100644 --- a/cloudphoto/src/model/DeleteAlbumsRequest.cc +++ b/cloudphoto/src/model/DeleteAlbumsRequest.cc @@ -33,7 +33,7 @@ std::string DeleteAlbumsRequest::getLibraryId()const void DeleteAlbumsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector DeleteAlbumsRequest::getAlbumId()const @@ -45,7 +45,7 @@ void DeleteAlbumsRequest::setAlbumId(const std::vector& albumId) { albumId_ = albumId; for(int i = 0; i!= albumId.size(); i++) - setParameter("AlbumId."+ std::to_string(i), std::to_string(albumId.at(i))); + setCoreParameter("AlbumId."+ std::to_string(i), std::to_string(albumId.at(i))); } std::string DeleteAlbumsRequest::getStoreName()const @@ -56,6 +56,6 @@ std::string DeleteAlbumsRequest::getStoreName()const void DeleteAlbumsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/DeleteAlbumsResult.cc b/cloudphoto/src/model/DeleteAlbumsResult.cc index 3e59c5344..41619e677 100644 --- a/cloudphoto/src/model/DeleteAlbumsResult.cc +++ b/cloudphoto/src/model/DeleteAlbumsResult.cc @@ -35,10 +35,13 @@ DeleteAlbumsResult::~DeleteAlbumsResult() void DeleteAlbumsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/DeleteEventRequest.cc b/cloudphoto/src/model/DeleteEventRequest.cc index db87b6488..c87e30c8a 100644 --- a/cloudphoto/src/model/DeleteEventRequest.cc +++ b/cloudphoto/src/model/DeleteEventRequest.cc @@ -33,7 +33,7 @@ long DeleteEventRequest::getEventId()const void DeleteEventRequest::setEventId(long eventId) { eventId_ = eventId; - setParameter("EventId", std::to_string(eventId)); + setCoreParameter("EventId", std::to_string(eventId)); } std::string DeleteEventRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string DeleteEventRequest::getLibraryId()const void DeleteEventRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string DeleteEventRequest::getStoreName()const @@ -55,6 +55,6 @@ std::string DeleteEventRequest::getStoreName()const void DeleteEventRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/DeleteEventResult.cc b/cloudphoto/src/model/DeleteEventResult.cc index 095860404..b2d529fc0 100644 --- a/cloudphoto/src/model/DeleteEventResult.cc +++ b/cloudphoto/src/model/DeleteEventResult.cc @@ -35,10 +35,13 @@ DeleteEventResult::~DeleteEventResult() void DeleteEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/DeleteFacesRequest.cc b/cloudphoto/src/model/DeleteFacesRequest.cc index 374c47475..995eafaf8 100644 --- a/cloudphoto/src/model/DeleteFacesRequest.cc +++ b/cloudphoto/src/model/DeleteFacesRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFacesRequest::getLibraryId()const void DeleteFacesRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string DeleteFacesRequest::getStoreName()const @@ -44,7 +44,7 @@ std::string DeleteFacesRequest::getStoreName()const void DeleteFacesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::vector DeleteFacesRequest::getFaceId()const @@ -56,6 +56,6 @@ void DeleteFacesRequest::setFaceId(const std::vector& faceId) { faceId_ = faceId; for(int i = 0; i!= faceId.size(); i++) - setParameter("FaceId."+ std::to_string(i), std::to_string(faceId.at(i))); + setCoreParameter("FaceId."+ std::to_string(i), std::to_string(faceId.at(i))); } diff --git a/cloudphoto/src/model/DeleteFacesResult.cc b/cloudphoto/src/model/DeleteFacesResult.cc index be3d3259d..911be8388 100644 --- a/cloudphoto/src/model/DeleteFacesResult.cc +++ b/cloudphoto/src/model/DeleteFacesResult.cc @@ -35,10 +35,13 @@ DeleteFacesResult::~DeleteFacesResult() void DeleteFacesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/DeletePhotoStoreRequest.cc b/cloudphoto/src/model/DeletePhotoStoreRequest.cc index 9909770b0..6c7e737b1 100644 --- a/cloudphoto/src/model/DeletePhotoStoreRequest.cc +++ b/cloudphoto/src/model/DeletePhotoStoreRequest.cc @@ -33,6 +33,6 @@ std::string DeletePhotoStoreRequest::getStoreName()const void DeletePhotoStoreRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/DeletePhotoStoreResult.cc b/cloudphoto/src/model/DeletePhotoStoreResult.cc index e7ecf5af5..3e8c8f870 100644 --- a/cloudphoto/src/model/DeletePhotoStoreResult.cc +++ b/cloudphoto/src/model/DeletePhotoStoreResult.cc @@ -35,10 +35,13 @@ DeletePhotoStoreResult::~DeletePhotoStoreResult() void DeletePhotoStoreResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/DeletePhotosRequest.cc b/cloudphoto/src/model/DeletePhotosRequest.cc index c4882889c..c819569f5 100644 --- a/cloudphoto/src/model/DeletePhotosRequest.cc +++ b/cloudphoto/src/model/DeletePhotosRequest.cc @@ -33,7 +33,7 @@ std::string DeletePhotosRequest::getLibraryId()const void DeletePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string DeletePhotosRequest::getStoreName()const @@ -44,7 +44,7 @@ std::string DeletePhotosRequest::getStoreName()const void DeletePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::vector DeletePhotosRequest::getPhotoId()const @@ -56,6 +56,6 @@ void DeletePhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } diff --git a/cloudphoto/src/model/DeletePhotosResult.cc b/cloudphoto/src/model/DeletePhotosResult.cc index cc135f22e..c1d3c4b7a 100644 --- a/cloudphoto/src/model/DeletePhotosResult.cc +++ b/cloudphoto/src/model/DeletePhotosResult.cc @@ -35,10 +35,13 @@ DeletePhotosResult::~DeletePhotosResult() void DeletePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/EditEventRequest.cc b/cloudphoto/src/model/EditEventRequest.cc index 1983caf76..39dfb7973 100644 --- a/cloudphoto/src/model/EditEventRequest.cc +++ b/cloudphoto/src/model/EditEventRequest.cc @@ -33,7 +33,7 @@ std::string EditEventRequest::getEventId()const void EditEventRequest::setEventId(const std::string& eventId) { eventId_ = eventId; - setParameter("EventId", eventId); + setCoreParameter("EventId", eventId); } std::string EditEventRequest::getBannerPhotoId()const @@ -44,7 +44,7 @@ std::string EditEventRequest::getBannerPhotoId()const void EditEventRequest::setBannerPhotoId(const std::string& bannerPhotoId) { bannerPhotoId_ = bannerPhotoId; - setParameter("BannerPhotoId", bannerPhotoId); + setCoreParameter("BannerPhotoId", bannerPhotoId); } std::string EditEventRequest::getWatermarkPhotoId()const @@ -55,7 +55,7 @@ std::string EditEventRequest::getWatermarkPhotoId()const void EditEventRequest::setWatermarkPhotoId(const std::string& watermarkPhotoId) { watermarkPhotoId_ = watermarkPhotoId; - setParameter("WatermarkPhotoId", watermarkPhotoId); + setCoreParameter("WatermarkPhotoId", watermarkPhotoId); } std::string EditEventRequest::getIdentity()const @@ -66,7 +66,7 @@ std::string EditEventRequest::getIdentity()const void EditEventRequest::setIdentity(const std::string& identity) { identity_ = identity; - setParameter("Identity", identity); + setCoreParameter("Identity", identity); } std::string EditEventRequest::getSplashPhotoId()const @@ -77,7 +77,7 @@ std::string EditEventRequest::getSplashPhotoId()const void EditEventRequest::setSplashPhotoId(const std::string& splashPhotoId) { splashPhotoId_ = splashPhotoId; - setParameter("SplashPhotoId", splashPhotoId); + setCoreParameter("SplashPhotoId", splashPhotoId); } std::string EditEventRequest::getLibraryId()const @@ -88,7 +88,7 @@ std::string EditEventRequest::getLibraryId()const void EditEventRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string EditEventRequest::getWeixinTitle()const @@ -99,7 +99,7 @@ std::string EditEventRequest::getWeixinTitle()const void EditEventRequest::setWeixinTitle(const std::string& weixinTitle) { weixinTitle_ = weixinTitle; - setParameter("WeixinTitle", weixinTitle); + setCoreParameter("WeixinTitle", weixinTitle); } std::string EditEventRequest::getStoreName()const @@ -110,7 +110,7 @@ std::string EditEventRequest::getStoreName()const void EditEventRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string EditEventRequest::getRemark()const @@ -121,7 +121,7 @@ std::string EditEventRequest::getRemark()const void EditEventRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } std::string EditEventRequest::getTitle()const @@ -132,7 +132,7 @@ std::string EditEventRequest::getTitle()const void EditEventRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } long EditEventRequest::getEndAt()const @@ -143,7 +143,7 @@ long EditEventRequest::getEndAt()const void EditEventRequest::setEndAt(long endAt) { endAt_ = endAt; - setParameter("EndAt", std::to_string(endAt)); + setCoreParameter("EndAt", std::to_string(endAt)); } long EditEventRequest::getStartAt()const @@ -154,6 +154,6 @@ long EditEventRequest::getStartAt()const void EditEventRequest::setStartAt(long startAt) { startAt_ = startAt; - setParameter("StartAt", std::to_string(startAt)); + setCoreParameter("StartAt", std::to_string(startAt)); } diff --git a/cloudphoto/src/model/EditEventResult.cc b/cloudphoto/src/model/EditEventResult.cc index 1b8ce5519..8429ed51d 100644 --- a/cloudphoto/src/model/EditEventResult.cc +++ b/cloudphoto/src/model/EditEventResult.cc @@ -35,10 +35,13 @@ EditEventResult::~EditEventResult() void EditEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto eventNode = value["Event"]; if(!eventNode["Id"].isNull()) diff --git a/cloudphoto/src/model/EditPhotoStoreRequest.cc b/cloudphoto/src/model/EditPhotoStoreRequest.cc index a1eee724f..42014de92 100644 --- a/cloudphoto/src/model/EditPhotoStoreRequest.cc +++ b/cloudphoto/src/model/EditPhotoStoreRequest.cc @@ -33,7 +33,7 @@ std::string EditPhotoStoreRequest::getAutoCleanEnabled()const void EditPhotoStoreRequest::setAutoCleanEnabled(const std::string& autoCleanEnabled) { autoCleanEnabled_ = autoCleanEnabled; - setParameter("AutoCleanEnabled", autoCleanEnabled); + setCoreParameter("AutoCleanEnabled", autoCleanEnabled); } long EditPhotoStoreRequest::getDefaultTrashQuota()const @@ -44,7 +44,7 @@ long EditPhotoStoreRequest::getDefaultTrashQuota()const void EditPhotoStoreRequest::setDefaultTrashQuota(long defaultTrashQuota) { defaultTrashQuota_ = defaultTrashQuota; - setParameter("DefaultTrashQuota", std::to_string(defaultTrashQuota)); + setCoreParameter("DefaultTrashQuota", std::to_string(defaultTrashQuota)); } std::string EditPhotoStoreRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string EditPhotoStoreRequest::getStoreName()const void EditPhotoStoreRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string EditPhotoStoreRequest::getRemark()const @@ -66,7 +66,7 @@ std::string EditPhotoStoreRequest::getRemark()const void EditPhotoStoreRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } long EditPhotoStoreRequest::getDefaultQuota()const @@ -77,7 +77,7 @@ long EditPhotoStoreRequest::getDefaultQuota()const void EditPhotoStoreRequest::setDefaultQuota(long defaultQuota) { defaultQuota_ = defaultQuota; - setParameter("DefaultQuota", std::to_string(defaultQuota)); + setCoreParameter("DefaultQuota", std::to_string(defaultQuota)); } int EditPhotoStoreRequest::getAutoCleanDays()const @@ -88,6 +88,6 @@ int EditPhotoStoreRequest::getAutoCleanDays()const void EditPhotoStoreRequest::setAutoCleanDays(int autoCleanDays) { autoCleanDays_ = autoCleanDays; - setParameter("AutoCleanDays", std::to_string(autoCleanDays)); + setCoreParameter("AutoCleanDays", std::to_string(autoCleanDays)); } diff --git a/cloudphoto/src/model/EditPhotoStoreResult.cc b/cloudphoto/src/model/EditPhotoStoreResult.cc index 7f3279ffb..3ab2c7506 100644 --- a/cloudphoto/src/model/EditPhotoStoreResult.cc +++ b/cloudphoto/src/model/EditPhotoStoreResult.cc @@ -35,10 +35,13 @@ EditPhotoStoreResult::~EditPhotoStoreResult() void EditPhotoStoreResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/EditPhotosRequest.cc b/cloudphoto/src/model/EditPhotosRequest.cc index b3d36ee7b..20a52a6f3 100644 --- a/cloudphoto/src/model/EditPhotosRequest.cc +++ b/cloudphoto/src/model/EditPhotosRequest.cc @@ -33,7 +33,7 @@ long EditPhotosRequest::getTakenAt()const void EditPhotosRequest::setTakenAt(long takenAt) { takenAt_ = takenAt; - setParameter("TakenAt", std::to_string(takenAt)); + setCoreParameter("TakenAt", std::to_string(takenAt)); } std::string EditPhotosRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string EditPhotosRequest::getLibraryId()const void EditPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long EditPhotosRequest::getShareExpireTime()const @@ -55,7 +55,7 @@ long EditPhotosRequest::getShareExpireTime()const void EditPhotosRequest::setShareExpireTime(long shareExpireTime) { shareExpireTime_ = shareExpireTime; - setParameter("ShareExpireTime", std::to_string(shareExpireTime)); + setCoreParameter("ShareExpireTime", std::to_string(shareExpireTime)); } std::vector EditPhotosRequest::getPhotoId()const @@ -67,7 +67,7 @@ void EditPhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string EditPhotosRequest::getStoreName()const @@ -78,7 +78,7 @@ std::string EditPhotosRequest::getStoreName()const void EditPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string EditPhotosRequest::getRemark()const @@ -89,7 +89,7 @@ std::string EditPhotosRequest::getRemark()const void EditPhotosRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } std::string EditPhotosRequest::getTitle()const @@ -100,6 +100,6 @@ std::string EditPhotosRequest::getTitle()const void EditPhotosRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } diff --git a/cloudphoto/src/model/EditPhotosResult.cc b/cloudphoto/src/model/EditPhotosResult.cc index f860f916a..b62cd0450 100644 --- a/cloudphoto/src/model/EditPhotosResult.cc +++ b/cloudphoto/src/model/EditPhotosResult.cc @@ -35,10 +35,13 @@ EditPhotosResult::~EditPhotosResult() void EditPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/FetchAlbumTagPhotosRequest.cc b/cloudphoto/src/model/FetchAlbumTagPhotosRequest.cc index a1a2939a0..ff72c1cd3 100644 --- a/cloudphoto/src/model/FetchAlbumTagPhotosRequest.cc +++ b/cloudphoto/src/model/FetchAlbumTagPhotosRequest.cc @@ -33,7 +33,7 @@ int FetchAlbumTagPhotosRequest::getSize()const void FetchAlbumTagPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } long FetchAlbumTagPhotosRequest::getTagId()const @@ -44,7 +44,7 @@ long FetchAlbumTagPhotosRequest::getTagId()const void FetchAlbumTagPhotosRequest::setTagId(long tagId) { tagId_ = tagId; - setParameter("TagId", std::to_string(tagId)); + setCoreParameter("TagId", std::to_string(tagId)); } std::string FetchAlbumTagPhotosRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string FetchAlbumTagPhotosRequest::getLibraryId()const void FetchAlbumTagPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long FetchAlbumTagPhotosRequest::getAlbumId()const @@ -66,7 +66,7 @@ long FetchAlbumTagPhotosRequest::getAlbumId()const void FetchAlbumTagPhotosRequest::setAlbumId(long albumId) { albumId_ = albumId; - setParameter("AlbumId", std::to_string(albumId)); + setCoreParameter("AlbumId", std::to_string(albumId)); } std::string FetchAlbumTagPhotosRequest::getStoreName()const @@ -77,7 +77,7 @@ std::string FetchAlbumTagPhotosRequest::getStoreName()const void FetchAlbumTagPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } int FetchAlbumTagPhotosRequest::getPage()const @@ -88,6 +88,6 @@ int FetchAlbumTagPhotosRequest::getPage()const void FetchAlbumTagPhotosRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } diff --git a/cloudphoto/src/model/FetchAlbumTagPhotosResult.cc b/cloudphoto/src/model/FetchAlbumTagPhotosResult.cc index 2d255f015..095bcf10d 100644 --- a/cloudphoto/src/model/FetchAlbumTagPhotosResult.cc +++ b/cloudphoto/src/model/FetchAlbumTagPhotosResult.cc @@ -35,10 +35,13 @@ FetchAlbumTagPhotosResult::~FetchAlbumTagPhotosResult() void FetchAlbumTagPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/FetchLibrariesRequest.cc b/cloudphoto/src/model/FetchLibrariesRequest.cc index 278038926..8d4fad1ac 100644 --- a/cloudphoto/src/model/FetchLibrariesRequest.cc +++ b/cloudphoto/src/model/FetchLibrariesRequest.cc @@ -33,7 +33,18 @@ int FetchLibrariesRequest::getSize()const void FetchLibrariesRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); +} + +bool FetchLibrariesRequest::getNeedQuota()const +{ + return needQuota_; +} + +void FetchLibrariesRequest::setNeedQuota(bool needQuota) +{ + needQuota_ = needQuota; + setCoreParameter("NeedQuota", needQuota ? "true" : "false"); } std::string FetchLibrariesRequest::getStoreName()const @@ -44,7 +55,7 @@ std::string FetchLibrariesRequest::getStoreName()const void FetchLibrariesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } int FetchLibrariesRequest::getPage()const @@ -55,6 +66,6 @@ int FetchLibrariesRequest::getPage()const void FetchLibrariesRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } diff --git a/cloudphoto/src/model/FetchLibrariesResult.cc b/cloudphoto/src/model/FetchLibrariesResult.cc index b795eef66..6696cb959 100644 --- a/cloudphoto/src/model/FetchLibrariesResult.cc +++ b/cloudphoto/src/model/FetchLibrariesResult.cc @@ -35,10 +35,13 @@ FetchLibrariesResult::~FetchLibrariesResult() void FetchLibrariesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLibraries = value["Libraries"]["Library"]; for (auto value : allLibraries) @@ -48,6 +51,8 @@ void FetchLibrariesResult::parse(const std::string &payload) librariesObject.libraryId = value["LibraryId"].asString(); if(!value["Ctime"].isNull()) librariesObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["TotalQuota"].isNull()) + librariesObject.totalQuota = std::stol(value["TotalQuota"].asString()); libraries_.push_back(librariesObject); } if(!value["Code"].isNull()) diff --git a/cloudphoto/src/model/FetchMomentPhotosRequest.cc b/cloudphoto/src/model/FetchMomentPhotosRequest.cc index 3b371092f..11126c065 100644 --- a/cloudphoto/src/model/FetchMomentPhotosRequest.cc +++ b/cloudphoto/src/model/FetchMomentPhotosRequest.cc @@ -33,7 +33,7 @@ int FetchMomentPhotosRequest::getSize()const void FetchMomentPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string FetchMomentPhotosRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string FetchMomentPhotosRequest::getLibraryId()const void FetchMomentPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string FetchMomentPhotosRequest::getOrderBy()const @@ -55,7 +55,7 @@ std::string FetchMomentPhotosRequest::getOrderBy()const void FetchMomentPhotosRequest::setOrderBy(const std::string& orderBy) { orderBy_ = orderBy; - setParameter("OrderBy", orderBy); + setCoreParameter("OrderBy", orderBy); } std::string FetchMomentPhotosRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string FetchMomentPhotosRequest::getStoreName()const void FetchMomentPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } int FetchMomentPhotosRequest::getPage()const @@ -77,7 +77,7 @@ int FetchMomentPhotosRequest::getPage()const void FetchMomentPhotosRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } long FetchMomentPhotosRequest::getMomentId()const @@ -88,7 +88,7 @@ long FetchMomentPhotosRequest::getMomentId()const void FetchMomentPhotosRequest::setMomentId(long momentId) { momentId_ = momentId; - setParameter("MomentId", std::to_string(momentId)); + setCoreParameter("MomentId", std::to_string(momentId)); } std::string FetchMomentPhotosRequest::getOrder()const @@ -99,6 +99,6 @@ std::string FetchMomentPhotosRequest::getOrder()const void FetchMomentPhotosRequest::setOrder(const std::string& order) { order_ = order; - setParameter("Order", order); + setCoreParameter("Order", order); } diff --git a/cloudphoto/src/model/FetchMomentPhotosResult.cc b/cloudphoto/src/model/FetchMomentPhotosResult.cc index a04b7b100..ca274937f 100644 --- a/cloudphoto/src/model/FetchMomentPhotosResult.cc +++ b/cloudphoto/src/model/FetchMomentPhotosResult.cc @@ -35,10 +35,13 @@ FetchMomentPhotosResult::~FetchMomentPhotosResult() void FetchMomentPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/FetchPhotosRequest.cc b/cloudphoto/src/model/FetchPhotosRequest.cc index 72840d3f1..15d57a834 100644 --- a/cloudphoto/src/model/FetchPhotosRequest.cc +++ b/cloudphoto/src/model/FetchPhotosRequest.cc @@ -33,7 +33,7 @@ int FetchPhotosRequest::getSize()const void FetchPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string FetchPhotosRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string FetchPhotosRequest::getLibraryId()const void FetchPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string FetchPhotosRequest::getOrderBy()const @@ -55,7 +55,7 @@ std::string FetchPhotosRequest::getOrderBy()const void FetchPhotosRequest::setOrderBy(const std::string& orderBy) { orderBy_ = orderBy; - setParameter("OrderBy", orderBy); + setCoreParameter("OrderBy", orderBy); } std::string FetchPhotosRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string FetchPhotosRequest::getStoreName()const void FetchPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string FetchPhotosRequest::getState()const @@ -77,7 +77,7 @@ std::string FetchPhotosRequest::getState()const void FetchPhotosRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } int FetchPhotosRequest::getPage()const @@ -88,7 +88,7 @@ int FetchPhotosRequest::getPage()const void FetchPhotosRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string FetchPhotosRequest::getOrder()const @@ -99,6 +99,6 @@ std::string FetchPhotosRequest::getOrder()const void FetchPhotosRequest::setOrder(const std::string& order) { order_ = order; - setParameter("Order", order); + setCoreParameter("Order", order); } diff --git a/cloudphoto/src/model/FetchPhotosResult.cc b/cloudphoto/src/model/FetchPhotosResult.cc index 4880a46df..27acd0f47 100644 --- a/cloudphoto/src/model/FetchPhotosResult.cc +++ b/cloudphoto/src/model/FetchPhotosResult.cc @@ -35,10 +35,13 @@ FetchPhotosResult::~FetchPhotosResult() void FetchPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/GetAlbumsByNamesRequest.cc b/cloudphoto/src/model/GetAlbumsByNamesRequest.cc index 7d3a289ea..e55417ddb 100644 --- a/cloudphoto/src/model/GetAlbumsByNamesRequest.cc +++ b/cloudphoto/src/model/GetAlbumsByNamesRequest.cc @@ -33,7 +33,7 @@ std::string GetAlbumsByNamesRequest::getLibraryId()const void GetAlbumsByNamesRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector GetAlbumsByNamesRequest::getName()const @@ -45,7 +45,7 @@ void GetAlbumsByNamesRequest::setName(const std::vector& name) { name_ = name; for(int i = 0; i!= name.size(); i++) - setParameter("Name."+ std::to_string(i), name.at(i)); + setCoreParameter("Name."+ std::to_string(i), name.at(i)); } std::string GetAlbumsByNamesRequest::getStoreName()const @@ -56,6 +56,6 @@ std::string GetAlbumsByNamesRequest::getStoreName()const void GetAlbumsByNamesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetAlbumsByNamesResult.cc b/cloudphoto/src/model/GetAlbumsByNamesResult.cc index 540b9cc8c..defe57dae 100644 --- a/cloudphoto/src/model/GetAlbumsByNamesResult.cc +++ b/cloudphoto/src/model/GetAlbumsByNamesResult.cc @@ -35,10 +35,13 @@ GetAlbumsByNamesResult::~GetAlbumsByNamesResult() void GetAlbumsByNamesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlbums = value["Albums"]["Album"]; for (auto value : allAlbums) diff --git a/cloudphoto/src/model/GetDownloadUrlRequest.cc b/cloudphoto/src/model/GetDownloadUrlRequest.cc index e7b5028bd..06cdc78dc 100644 --- a/cloudphoto/src/model/GetDownloadUrlRequest.cc +++ b/cloudphoto/src/model/GetDownloadUrlRequest.cc @@ -33,7 +33,7 @@ std::string GetDownloadUrlRequest::getLibraryId()const void GetDownloadUrlRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long GetDownloadUrlRequest::getPhotoId()const @@ -44,7 +44,7 @@ long GetDownloadUrlRequest::getPhotoId()const void GetDownloadUrlRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string GetDownloadUrlRequest::getStoreName()const @@ -55,6 +55,6 @@ std::string GetDownloadUrlRequest::getStoreName()const void GetDownloadUrlRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetDownloadUrlResult.cc b/cloudphoto/src/model/GetDownloadUrlResult.cc index 4c0726ded..e4f5e8bd5 100644 --- a/cloudphoto/src/model/GetDownloadUrlResult.cc +++ b/cloudphoto/src/model/GetDownloadUrlResult.cc @@ -35,10 +35,13 @@ GetDownloadUrlResult::~GetDownloadUrlResult() void GetDownloadUrlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/GetDownloadUrlsRequest.cc b/cloudphoto/src/model/GetDownloadUrlsRequest.cc index 2bf9d0a55..a9558d7ad 100644 --- a/cloudphoto/src/model/GetDownloadUrlsRequest.cc +++ b/cloudphoto/src/model/GetDownloadUrlsRequest.cc @@ -33,7 +33,7 @@ std::string GetDownloadUrlsRequest::getLibraryId()const void GetDownloadUrlsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector GetDownloadUrlsRequest::getPhotoId()const @@ -45,7 +45,7 @@ void GetDownloadUrlsRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string GetDownloadUrlsRequest::getStoreName()const @@ -56,6 +56,6 @@ std::string GetDownloadUrlsRequest::getStoreName()const void GetDownloadUrlsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetDownloadUrlsResult.cc b/cloudphoto/src/model/GetDownloadUrlsResult.cc index f8f5586af..5c7581e9f 100644 --- a/cloudphoto/src/model/GetDownloadUrlsResult.cc +++ b/cloudphoto/src/model/GetDownloadUrlsResult.cc @@ -35,10 +35,13 @@ GetDownloadUrlsResult::~GetDownloadUrlsResult() void GetDownloadUrlsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/GetEventRequest.cc b/cloudphoto/src/model/GetEventRequest.cc index 849780b64..afc63fe85 100644 --- a/cloudphoto/src/model/GetEventRequest.cc +++ b/cloudphoto/src/model/GetEventRequest.cc @@ -33,7 +33,7 @@ long GetEventRequest::getEventId()const void GetEventRequest::setEventId(long eventId) { eventId_ = eventId; - setParameter("EventId", std::to_string(eventId)); + setCoreParameter("EventId", std::to_string(eventId)); } std::string GetEventRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string GetEventRequest::getLibraryId()const void GetEventRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string GetEventRequest::getStoreName()const @@ -55,6 +55,6 @@ std::string GetEventRequest::getStoreName()const void GetEventRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetEventResult.cc b/cloudphoto/src/model/GetEventResult.cc index 0cf539258..c3f78489e 100644 --- a/cloudphoto/src/model/GetEventResult.cc +++ b/cloudphoto/src/model/GetEventResult.cc @@ -35,10 +35,13 @@ GetEventResult::~GetEventResult() void GetEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto eventNode = value["Event"]; if(!eventNode["Id"].isNull()) diff --git a/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc b/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc index 529d08a44..adb3adf94 100644 --- a/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc +++ b/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc @@ -33,7 +33,7 @@ std::string GetFramedPhotoUrlsRequest::getFrameId()const void GetFramedPhotoUrlsRequest::setFrameId(const std::string& frameId) { frameId_ = frameId; - setParameter("FrameId", frameId); + setCoreParameter("FrameId", frameId); } std::string GetFramedPhotoUrlsRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string GetFramedPhotoUrlsRequest::getLibraryId()const void GetFramedPhotoUrlsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector GetFramedPhotoUrlsRequest::getPhotoId()const @@ -56,7 +56,7 @@ void GetFramedPhotoUrlsRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string GetFramedPhotoUrlsRequest::getStoreName()const @@ -67,6 +67,6 @@ std::string GetFramedPhotoUrlsRequest::getStoreName()const void GetFramedPhotoUrlsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc b/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc index 31d20dd42..d27fea479 100644 --- a/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc +++ b/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc @@ -35,10 +35,13 @@ GetFramedPhotoUrlsResult::~GetFramedPhotoUrlsResult() void GetFramedPhotoUrlsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/GetLibraryRequest.cc b/cloudphoto/src/model/GetLibraryRequest.cc index 71c96e60b..d2e75aa30 100644 --- a/cloudphoto/src/model/GetLibraryRequest.cc +++ b/cloudphoto/src/model/GetLibraryRequest.cc @@ -33,7 +33,7 @@ std::string GetLibraryRequest::getLibraryId()const void GetLibraryRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string GetLibraryRequest::getStoreName()const @@ -44,6 +44,6 @@ std::string GetLibraryRequest::getStoreName()const void GetLibraryRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetLibraryResult.cc b/cloudphoto/src/model/GetLibraryResult.cc index fe7a07685..0d4a35461 100644 --- a/cloudphoto/src/model/GetLibraryResult.cc +++ b/cloudphoto/src/model/GetLibraryResult.cc @@ -35,10 +35,13 @@ GetLibraryResult::~GetLibraryResult() void GetLibraryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto libraryNode = value["Library"]; if(!libraryNode["Ctime"].isNull()) diff --git a/cloudphoto/src/model/GetPhotoStoreRequest.cc b/cloudphoto/src/model/GetPhotoStoreRequest.cc index c57b95bd0..de6684bcf 100644 --- a/cloudphoto/src/model/GetPhotoStoreRequest.cc +++ b/cloudphoto/src/model/GetPhotoStoreRequest.cc @@ -33,6 +33,6 @@ std::string GetPhotoStoreRequest::getStoreName()const void GetPhotoStoreRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetPhotoStoreResult.cc b/cloudphoto/src/model/GetPhotoStoreResult.cc index 87d1600d9..f6a2c01b4 100644 --- a/cloudphoto/src/model/GetPhotoStoreResult.cc +++ b/cloudphoto/src/model/GetPhotoStoreResult.cc @@ -35,10 +35,13 @@ GetPhotoStoreResult::~GetPhotoStoreResult() void GetPhotoStoreResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto photoStoreNode = value["PhotoStore"]; if(!photoStoreNode["Id"].isNull()) diff --git a/cloudphoto/src/model/GetPhotosByMd5sRequest.cc b/cloudphoto/src/model/GetPhotosByMd5sRequest.cc index 5fc1d9a2e..c136ab708 100644 --- a/cloudphoto/src/model/GetPhotosByMd5sRequest.cc +++ b/cloudphoto/src/model/GetPhotosByMd5sRequest.cc @@ -33,7 +33,7 @@ std::string GetPhotosByMd5sRequest::getLibraryId()const void GetPhotosByMd5sRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string GetPhotosByMd5sRequest::getStoreName()const @@ -44,7 +44,7 @@ std::string GetPhotosByMd5sRequest::getStoreName()const void GetPhotosByMd5sRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string GetPhotosByMd5sRequest::getState()const @@ -55,7 +55,7 @@ std::string GetPhotosByMd5sRequest::getState()const void GetPhotosByMd5sRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::vector GetPhotosByMd5sRequest::getMd5()const @@ -67,6 +67,6 @@ void GetPhotosByMd5sRequest::setMd5(const std::vector& md5) { md5_ = md5; for(int i = 0; i!= md5.size(); i++) - setParameter("Md5."+ std::to_string(i), md5.at(i)); + setCoreParameter("Md5."+ std::to_string(i), md5.at(i)); } diff --git a/cloudphoto/src/model/GetPhotosByMd5sResult.cc b/cloudphoto/src/model/GetPhotosByMd5sResult.cc index 12ebc0911..a5f0862a6 100644 --- a/cloudphoto/src/model/GetPhotosByMd5sResult.cc +++ b/cloudphoto/src/model/GetPhotosByMd5sResult.cc @@ -35,10 +35,13 @@ GetPhotosByMd5sResult::~GetPhotosByMd5sResult() void GetPhotosByMd5sResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/GetPhotosRequest.cc b/cloudphoto/src/model/GetPhotosRequest.cc index 99b2c3994..58981d616 100644 --- a/cloudphoto/src/model/GetPhotosRequest.cc +++ b/cloudphoto/src/model/GetPhotosRequest.cc @@ -33,7 +33,7 @@ std::string GetPhotosRequest::getLibraryId()const void GetPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector GetPhotosRequest::getPhotoId()const @@ -45,7 +45,7 @@ void GetPhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string GetPhotosRequest::getStoreName()const @@ -56,6 +56,6 @@ std::string GetPhotosRequest::getStoreName()const void GetPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetPhotosResult.cc b/cloudphoto/src/model/GetPhotosResult.cc index e975f48ce..c857136a1 100644 --- a/cloudphoto/src/model/GetPhotosResult.cc +++ b/cloudphoto/src/model/GetPhotosResult.cc @@ -35,10 +35,13 @@ GetPhotosResult::~GetPhotosResult() void GetPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc b/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc index 3dfb6f8fc..0af382fbd 100644 --- a/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc +++ b/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc @@ -33,7 +33,7 @@ std::string GetPrivateAccessUrlsRequest::getLibraryId()const void GetPrivateAccessUrlsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector GetPrivateAccessUrlsRequest::getPhotoId()const @@ -45,7 +45,7 @@ void GetPrivateAccessUrlsRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string GetPrivateAccessUrlsRequest::getStoreName()const @@ -56,7 +56,7 @@ std::string GetPrivateAccessUrlsRequest::getStoreName()const void GetPrivateAccessUrlsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string GetPrivateAccessUrlsRequest::getZoomType()const @@ -67,6 +67,6 @@ std::string GetPrivateAccessUrlsRequest::getZoomType()const void GetPrivateAccessUrlsRequest::setZoomType(const std::string& zoomType) { zoomType_ = zoomType; - setParameter("ZoomType", zoomType); + setCoreParameter("ZoomType", zoomType); } diff --git a/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc b/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc index cdfb35c7b..7adda8052 100644 --- a/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc +++ b/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc @@ -35,10 +35,13 @@ GetPrivateAccessUrlsResult::~GetPrivateAccessUrlsResult() void GetPrivateAccessUrlsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc b/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc index e65323707..0ee92d1f5 100644 --- a/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc +++ b/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc @@ -33,7 +33,7 @@ std::string GetPublicAccessUrlsRequest::getDomainType()const void GetPublicAccessUrlsRequest::setDomainType(const std::string& domainType) { domainType_ = domainType; - setParameter("DomainType", domainType); + setCoreParameter("DomainType", domainType); } std::string GetPublicAccessUrlsRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string GetPublicAccessUrlsRequest::getLibraryId()const void GetPublicAccessUrlsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector GetPublicAccessUrlsRequest::getPhotoId()const @@ -56,7 +56,7 @@ void GetPublicAccessUrlsRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string GetPublicAccessUrlsRequest::getStoreName()const @@ -67,7 +67,7 @@ std::string GetPublicAccessUrlsRequest::getStoreName()const void GetPublicAccessUrlsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string GetPublicAccessUrlsRequest::getZoomType()const @@ -78,6 +78,6 @@ std::string GetPublicAccessUrlsRequest::getZoomType()const void GetPublicAccessUrlsRequest::setZoomType(const std::string& zoomType) { zoomType_ = zoomType; - setParameter("ZoomType", zoomType); + setCoreParameter("ZoomType", zoomType); } diff --git a/cloudphoto/src/model/GetPublicAccessUrlsResult.cc b/cloudphoto/src/model/GetPublicAccessUrlsResult.cc index bbd9d1351..3aa0b55d9 100644 --- a/cloudphoto/src/model/GetPublicAccessUrlsResult.cc +++ b/cloudphoto/src/model/GetPublicAccessUrlsResult.cc @@ -35,10 +35,13 @@ GetPublicAccessUrlsResult::~GetPublicAccessUrlsResult() void GetPublicAccessUrlsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/GetQuotaRequest.cc b/cloudphoto/src/model/GetQuotaRequest.cc index 176a108ee..c2f7da3b6 100644 --- a/cloudphoto/src/model/GetQuotaRequest.cc +++ b/cloudphoto/src/model/GetQuotaRequest.cc @@ -33,7 +33,7 @@ std::string GetQuotaRequest::getLibraryId()const void GetQuotaRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string GetQuotaRequest::getStoreName()const @@ -44,6 +44,6 @@ std::string GetQuotaRequest::getStoreName()const void GetQuotaRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetQuotaResult.cc b/cloudphoto/src/model/GetQuotaResult.cc index ab4088331..acd020add 100644 --- a/cloudphoto/src/model/GetQuotaResult.cc +++ b/cloudphoto/src/model/GetQuotaResult.cc @@ -35,10 +35,13 @@ GetQuotaResult::~GetQuotaResult() void GetQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto quotaNode = value["Quota"]; if(!quotaNode["TotalQuota"].isNull()) diff --git a/cloudphoto/src/model/GetSimilarPhotosRequest.cc b/cloudphoto/src/model/GetSimilarPhotosRequest.cc index ace530f9e..97bb587fb 100644 --- a/cloudphoto/src/model/GetSimilarPhotosRequest.cc +++ b/cloudphoto/src/model/GetSimilarPhotosRequest.cc @@ -33,7 +33,7 @@ std::string GetSimilarPhotosRequest::getLibraryId()const void GetSimilarPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long GetSimilarPhotosRequest::getPhotoId()const @@ -44,7 +44,7 @@ long GetSimilarPhotosRequest::getPhotoId()const void GetSimilarPhotosRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string GetSimilarPhotosRequest::getStoreName()const @@ -55,6 +55,6 @@ std::string GetSimilarPhotosRequest::getStoreName()const void GetSimilarPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/GetSimilarPhotosResult.cc b/cloudphoto/src/model/GetSimilarPhotosResult.cc index c2297945e..cf3d9d0f6 100644 --- a/cloudphoto/src/model/GetSimilarPhotosResult.cc +++ b/cloudphoto/src/model/GetSimilarPhotosResult.cc @@ -35,10 +35,13 @@ GetSimilarPhotosResult::~GetSimilarPhotosResult() void GetSimilarPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/GetThumbnailRequest.cc b/cloudphoto/src/model/GetThumbnailRequest.cc index c0d37e0d5..fe47fd3c8 100644 --- a/cloudphoto/src/model/GetThumbnailRequest.cc +++ b/cloudphoto/src/model/GetThumbnailRequest.cc @@ -33,7 +33,7 @@ std::string GetThumbnailRequest::getLibraryId()const void GetThumbnailRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long GetThumbnailRequest::getPhotoId()const @@ -44,7 +44,7 @@ long GetThumbnailRequest::getPhotoId()const void GetThumbnailRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string GetThumbnailRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string GetThumbnailRequest::getStoreName()const void GetThumbnailRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string GetThumbnailRequest::getZoomType()const @@ -66,6 +66,6 @@ std::string GetThumbnailRequest::getZoomType()const void GetThumbnailRequest::setZoomType(const std::string& zoomType) { zoomType_ = zoomType; - setParameter("ZoomType", zoomType); + setCoreParameter("ZoomType", zoomType); } diff --git a/cloudphoto/src/model/GetThumbnailResult.cc b/cloudphoto/src/model/GetThumbnailResult.cc index 2b696a46d..e53ac9e9f 100644 --- a/cloudphoto/src/model/GetThumbnailResult.cc +++ b/cloudphoto/src/model/GetThumbnailResult.cc @@ -35,10 +35,13 @@ GetThumbnailResult::~GetThumbnailResult() void GetThumbnailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/GetThumbnailsRequest.cc b/cloudphoto/src/model/GetThumbnailsRequest.cc index 4decf8224..accad1532 100644 --- a/cloudphoto/src/model/GetThumbnailsRequest.cc +++ b/cloudphoto/src/model/GetThumbnailsRequest.cc @@ -33,7 +33,7 @@ std::string GetThumbnailsRequest::getLibraryId()const void GetThumbnailsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector GetThumbnailsRequest::getPhotoId()const @@ -45,7 +45,7 @@ void GetThumbnailsRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string GetThumbnailsRequest::getStoreName()const @@ -56,7 +56,7 @@ std::string GetThumbnailsRequest::getStoreName()const void GetThumbnailsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string GetThumbnailsRequest::getZoomType()const @@ -67,6 +67,6 @@ std::string GetThumbnailsRequest::getZoomType()const void GetThumbnailsRequest::setZoomType(const std::string& zoomType) { zoomType_ = zoomType; - setParameter("ZoomType", zoomType); + setCoreParameter("ZoomType", zoomType); } diff --git a/cloudphoto/src/model/GetThumbnailsResult.cc b/cloudphoto/src/model/GetThumbnailsResult.cc index abe8e57ea..f71e00fd1 100644 --- a/cloudphoto/src/model/GetThumbnailsResult.cc +++ b/cloudphoto/src/model/GetThumbnailsResult.cc @@ -35,10 +35,13 @@ GetThumbnailsResult::~GetThumbnailsResult() void GetThumbnailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/GetVideoCoverRequest.cc b/cloudphoto/src/model/GetVideoCoverRequest.cc index 9935ad01e..ce07789ec 100644 --- a/cloudphoto/src/model/GetVideoCoverRequest.cc +++ b/cloudphoto/src/model/GetVideoCoverRequest.cc @@ -33,7 +33,7 @@ std::string GetVideoCoverRequest::getLibraryId()const void GetVideoCoverRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long GetVideoCoverRequest::getPhotoId()const @@ -44,7 +44,7 @@ long GetVideoCoverRequest::getPhotoId()const void GetVideoCoverRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string GetVideoCoverRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string GetVideoCoverRequest::getStoreName()const void GetVideoCoverRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string GetVideoCoverRequest::getZoomType()const @@ -66,6 +66,6 @@ std::string GetVideoCoverRequest::getZoomType()const void GetVideoCoverRequest::setZoomType(const std::string& zoomType) { zoomType_ = zoomType; - setParameter("ZoomType", zoomType); + setCoreParameter("ZoomType", zoomType); } diff --git a/cloudphoto/src/model/GetVideoCoverResult.cc b/cloudphoto/src/model/GetVideoCoverResult.cc index 12d7492a2..c0bda3b68 100644 --- a/cloudphoto/src/model/GetVideoCoverResult.cc +++ b/cloudphoto/src/model/GetVideoCoverResult.cc @@ -35,10 +35,13 @@ GetVideoCoverResult::~GetVideoCoverResult() void GetVideoCoverResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/InactivatePhotosRequest.cc b/cloudphoto/src/model/InactivatePhotosRequest.cc index 0a46ae91f..155307743 100644 --- a/cloudphoto/src/model/InactivatePhotosRequest.cc +++ b/cloudphoto/src/model/InactivatePhotosRequest.cc @@ -33,7 +33,7 @@ std::string InactivatePhotosRequest::getLibraryId()const void InactivatePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector InactivatePhotosRequest::getPhotoId()const @@ -45,7 +45,7 @@ void InactivatePhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string InactivatePhotosRequest::getStoreName()const @@ -56,7 +56,7 @@ std::string InactivatePhotosRequest::getStoreName()const void InactivatePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long InactivatePhotosRequest::getInactiveTime()const @@ -67,6 +67,6 @@ long InactivatePhotosRequest::getInactiveTime()const void InactivatePhotosRequest::setInactiveTime(long inactiveTime) { inactiveTime_ = inactiveTime; - setParameter("InactiveTime", std::to_string(inactiveTime)); + setCoreParameter("InactiveTime", std::to_string(inactiveTime)); } diff --git a/cloudphoto/src/model/InactivatePhotosResult.cc b/cloudphoto/src/model/InactivatePhotosResult.cc index 4a8811774..1ef48370f 100644 --- a/cloudphoto/src/model/InactivatePhotosResult.cc +++ b/cloudphoto/src/model/InactivatePhotosResult.cc @@ -35,10 +35,13 @@ InactivatePhotosResult::~InactivatePhotosResult() void InactivatePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/LikePhotoRequest.cc b/cloudphoto/src/model/LikePhotoRequest.cc index e8842eb70..c0a45ab91 100644 --- a/cloudphoto/src/model/LikePhotoRequest.cc +++ b/cloudphoto/src/model/LikePhotoRequest.cc @@ -33,7 +33,7 @@ std::string LikePhotoRequest::getLibraryId()const void LikePhotoRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long LikePhotoRequest::getPhotoId()const @@ -44,7 +44,7 @@ long LikePhotoRequest::getPhotoId()const void LikePhotoRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string LikePhotoRequest::getStoreName()const @@ -55,6 +55,6 @@ std::string LikePhotoRequest::getStoreName()const void LikePhotoRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/LikePhotoResult.cc b/cloudphoto/src/model/LikePhotoResult.cc index 100dd2dc8..aa3fbe575 100644 --- a/cloudphoto/src/model/LikePhotoResult.cc +++ b/cloudphoto/src/model/LikePhotoResult.cc @@ -35,10 +35,13 @@ LikePhotoResult::~LikePhotoResult() void LikePhotoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/ListAlbumPhotosRequest.cc b/cloudphoto/src/model/ListAlbumPhotosRequest.cc index 79cdd012d..debf6271d 100644 --- a/cloudphoto/src/model/ListAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/ListAlbumPhotosRequest.cc @@ -33,7 +33,7 @@ std::string ListAlbumPhotosRequest::getCursor()const void ListAlbumPhotosRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListAlbumPhotosRequest::getSize()const @@ -44,7 +44,7 @@ int ListAlbumPhotosRequest::getSize()const void ListAlbumPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListAlbumPhotosRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string ListAlbumPhotosRequest::getLibraryId()const void ListAlbumPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long ListAlbumPhotosRequest::getAlbumId()const @@ -66,7 +66,7 @@ long ListAlbumPhotosRequest::getAlbumId()const void ListAlbumPhotosRequest::setAlbumId(long albumId) { albumId_ = albumId; - setParameter("AlbumId", std::to_string(albumId)); + setCoreParameter("AlbumId", std::to_string(albumId)); } std::string ListAlbumPhotosRequest::getStoreName()const @@ -77,7 +77,7 @@ std::string ListAlbumPhotosRequest::getStoreName()const void ListAlbumPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListAlbumPhotosRequest::getState()const @@ -88,7 +88,7 @@ std::string ListAlbumPhotosRequest::getState()const void ListAlbumPhotosRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListAlbumPhotosRequest::getDirection()const @@ -99,6 +99,6 @@ std::string ListAlbumPhotosRequest::getDirection()const void ListAlbumPhotosRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListAlbumPhotosResult.cc b/cloudphoto/src/model/ListAlbumPhotosResult.cc index 9192cfc96..cc3ee5cf1 100644 --- a/cloudphoto/src/model/ListAlbumPhotosResult.cc +++ b/cloudphoto/src/model/ListAlbumPhotosResult.cc @@ -35,10 +35,13 @@ ListAlbumPhotosResult::~ListAlbumPhotosResult() void ListAlbumPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/ListAlbumsRequest.cc b/cloudphoto/src/model/ListAlbumsRequest.cc index 133b6f4a5..747485c97 100644 --- a/cloudphoto/src/model/ListAlbumsRequest.cc +++ b/cloudphoto/src/model/ListAlbumsRequest.cc @@ -33,7 +33,7 @@ std::string ListAlbumsRequest::getCursor()const void ListAlbumsRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListAlbumsRequest::getSize()const @@ -44,7 +44,7 @@ int ListAlbumsRequest::getSize()const void ListAlbumsRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListAlbumsRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string ListAlbumsRequest::getLibraryId()const void ListAlbumsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListAlbumsRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string ListAlbumsRequest::getStoreName()const void ListAlbumsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListAlbumsRequest::getState()const @@ -77,7 +77,7 @@ std::string ListAlbumsRequest::getState()const void ListAlbumsRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListAlbumsRequest::getDirection()const @@ -88,6 +88,6 @@ std::string ListAlbumsRequest::getDirection()const void ListAlbumsRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListAlbumsResult.cc b/cloudphoto/src/model/ListAlbumsResult.cc index 56a6e35ea..965a3cb31 100644 --- a/cloudphoto/src/model/ListAlbumsResult.cc +++ b/cloudphoto/src/model/ListAlbumsResult.cc @@ -35,10 +35,13 @@ ListAlbumsResult::~ListAlbumsResult() void ListAlbumsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlbums = value["Albums"]["Album"]; for (auto value : allAlbums) diff --git a/cloudphoto/src/model/ListEventsRequest.cc b/cloudphoto/src/model/ListEventsRequest.cc index 195c6e1af..096291bee 100644 --- a/cloudphoto/src/model/ListEventsRequest.cc +++ b/cloudphoto/src/model/ListEventsRequest.cc @@ -33,7 +33,7 @@ std::string ListEventsRequest::getCursor()const void ListEventsRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListEventsRequest::getSize()const @@ -44,7 +44,7 @@ int ListEventsRequest::getSize()const void ListEventsRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListEventsRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string ListEventsRequest::getStoreName()const void ListEventsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListEventsRequest::getState()const @@ -66,7 +66,7 @@ std::string ListEventsRequest::getState()const void ListEventsRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListEventsRequest::getDirection()const @@ -77,6 +77,6 @@ std::string ListEventsRequest::getDirection()const void ListEventsRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListEventsResult.cc b/cloudphoto/src/model/ListEventsResult.cc index dc050acd4..841b1903d 100644 --- a/cloudphoto/src/model/ListEventsResult.cc +++ b/cloudphoto/src/model/ListEventsResult.cc @@ -35,10 +35,13 @@ ListEventsResult::~ListEventsResult() void ListEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEvents = value["Events"]["Event"]; for (auto value : allEvents) diff --git a/cloudphoto/src/model/ListFacePhotosRequest.cc b/cloudphoto/src/model/ListFacePhotosRequest.cc index 1dae93f28..ee5b7405a 100644 --- a/cloudphoto/src/model/ListFacePhotosRequest.cc +++ b/cloudphoto/src/model/ListFacePhotosRequest.cc @@ -33,7 +33,7 @@ std::string ListFacePhotosRequest::getCursor()const void ListFacePhotosRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListFacePhotosRequest::getSize()const @@ -44,7 +44,7 @@ int ListFacePhotosRequest::getSize()const void ListFacePhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListFacePhotosRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string ListFacePhotosRequest::getLibraryId()const void ListFacePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListFacePhotosRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string ListFacePhotosRequest::getStoreName()const void ListFacePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long ListFacePhotosRequest::getFaceId()const @@ -77,7 +77,7 @@ long ListFacePhotosRequest::getFaceId()const void ListFacePhotosRequest::setFaceId(long faceId) { faceId_ = faceId; - setParameter("FaceId", std::to_string(faceId)); + setCoreParameter("FaceId", std::to_string(faceId)); } std::string ListFacePhotosRequest::getState()const @@ -88,7 +88,7 @@ std::string ListFacePhotosRequest::getState()const void ListFacePhotosRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListFacePhotosRequest::getDirection()const @@ -99,6 +99,6 @@ std::string ListFacePhotosRequest::getDirection()const void ListFacePhotosRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListFacePhotosResult.cc b/cloudphoto/src/model/ListFacePhotosResult.cc index c4e377d0f..9e56504c4 100644 --- a/cloudphoto/src/model/ListFacePhotosResult.cc +++ b/cloudphoto/src/model/ListFacePhotosResult.cc @@ -35,10 +35,13 @@ ListFacePhotosResult::~ListFacePhotosResult() void ListFacePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/ListFacesRequest.cc b/cloudphoto/src/model/ListFacesRequest.cc index 3685e0155..90d7b87ee 100644 --- a/cloudphoto/src/model/ListFacesRequest.cc +++ b/cloudphoto/src/model/ListFacesRequest.cc @@ -33,7 +33,7 @@ std::string ListFacesRequest::getCursor()const void ListFacesRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } std::string ListFacesRequest::getHasFaceName()const @@ -44,7 +44,7 @@ std::string ListFacesRequest::getHasFaceName()const void ListFacesRequest::setHasFaceName(const std::string& hasFaceName) { hasFaceName_ = hasFaceName; - setParameter("HasFaceName", hasFaceName); + setCoreParameter("HasFaceName", hasFaceName); } int ListFacesRequest::getSize()const @@ -55,7 +55,7 @@ int ListFacesRequest::getSize()const void ListFacesRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListFacesRequest::getLibraryId()const @@ -66,7 +66,7 @@ std::string ListFacesRequest::getLibraryId()const void ListFacesRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListFacesRequest::getStoreName()const @@ -77,7 +77,7 @@ std::string ListFacesRequest::getStoreName()const void ListFacesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListFacesRequest::getState()const @@ -88,7 +88,7 @@ std::string ListFacesRequest::getState()const void ListFacesRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListFacesRequest::getDirection()const @@ -99,6 +99,6 @@ std::string ListFacesRequest::getDirection()const void ListFacesRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListFacesResult.cc b/cloudphoto/src/model/ListFacesResult.cc index 1e9cb1ad1..4e264fa3a 100644 --- a/cloudphoto/src/model/ListFacesResult.cc +++ b/cloudphoto/src/model/ListFacesResult.cc @@ -35,10 +35,13 @@ ListFacesResult::~ListFacesResult() void ListFacesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFaces = value["Faces"]["Face"]; for (auto value : allFaces) diff --git a/cloudphoto/src/model/ListMomentPhotosRequest.cc b/cloudphoto/src/model/ListMomentPhotosRequest.cc index 45100a227..db3685218 100644 --- a/cloudphoto/src/model/ListMomentPhotosRequest.cc +++ b/cloudphoto/src/model/ListMomentPhotosRequest.cc @@ -33,7 +33,7 @@ std::string ListMomentPhotosRequest::getCursor()const void ListMomentPhotosRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListMomentPhotosRequest::getSize()const @@ -44,7 +44,7 @@ int ListMomentPhotosRequest::getSize()const void ListMomentPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListMomentPhotosRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string ListMomentPhotosRequest::getLibraryId()const void ListMomentPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListMomentPhotosRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string ListMomentPhotosRequest::getStoreName()const void ListMomentPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListMomentPhotosRequest::getState()const @@ -77,7 +77,7 @@ std::string ListMomentPhotosRequest::getState()const void ListMomentPhotosRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long ListMomentPhotosRequest::getMomentId()const @@ -88,7 +88,7 @@ long ListMomentPhotosRequest::getMomentId()const void ListMomentPhotosRequest::setMomentId(long momentId) { momentId_ = momentId; - setParameter("MomentId", std::to_string(momentId)); + setCoreParameter("MomentId", std::to_string(momentId)); } std::string ListMomentPhotosRequest::getDirection()const @@ -99,6 +99,6 @@ std::string ListMomentPhotosRequest::getDirection()const void ListMomentPhotosRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListMomentPhotosResult.cc b/cloudphoto/src/model/ListMomentPhotosResult.cc index c0e4b46cf..323fcaa15 100644 --- a/cloudphoto/src/model/ListMomentPhotosResult.cc +++ b/cloudphoto/src/model/ListMomentPhotosResult.cc @@ -35,10 +35,13 @@ ListMomentPhotosResult::~ListMomentPhotosResult() void ListMomentPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/ListMomentsRequest.cc b/cloudphoto/src/model/ListMomentsRequest.cc index 272f2ca51..47608a545 100644 --- a/cloudphoto/src/model/ListMomentsRequest.cc +++ b/cloudphoto/src/model/ListMomentsRequest.cc @@ -33,7 +33,7 @@ std::string ListMomentsRequest::getCursor()const void ListMomentsRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListMomentsRequest::getSize()const @@ -44,7 +44,7 @@ int ListMomentsRequest::getSize()const void ListMomentsRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListMomentsRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string ListMomentsRequest::getLibraryId()const void ListMomentsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListMomentsRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string ListMomentsRequest::getStoreName()const void ListMomentsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListMomentsRequest::getState()const @@ -77,7 +77,7 @@ std::string ListMomentsRequest::getState()const void ListMomentsRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListMomentsRequest::getDirection()const @@ -88,6 +88,6 @@ std::string ListMomentsRequest::getDirection()const void ListMomentsRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListMomentsResult.cc b/cloudphoto/src/model/ListMomentsResult.cc index adcddf906..ce6e21415 100644 --- a/cloudphoto/src/model/ListMomentsResult.cc +++ b/cloudphoto/src/model/ListMomentsResult.cc @@ -35,10 +35,13 @@ ListMomentsResult::~ListMomentsResult() void ListMomentsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMoments = value["Moments"]["Moment"]; for (auto value : allMoments) diff --git a/cloudphoto/src/model/ListPhotoFacesRequest.cc b/cloudphoto/src/model/ListPhotoFacesRequest.cc index 2bb7cb6e0..91a0cd344 100644 --- a/cloudphoto/src/model/ListPhotoFacesRequest.cc +++ b/cloudphoto/src/model/ListPhotoFacesRequest.cc @@ -33,7 +33,7 @@ std::string ListPhotoFacesRequest::getLibraryId()const void ListPhotoFacesRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long ListPhotoFacesRequest::getPhotoId()const @@ -44,7 +44,7 @@ long ListPhotoFacesRequest::getPhotoId()const void ListPhotoFacesRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string ListPhotoFacesRequest::getStoreName()const @@ -55,6 +55,6 @@ std::string ListPhotoFacesRequest::getStoreName()const void ListPhotoFacesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/ListPhotoFacesResult.cc b/cloudphoto/src/model/ListPhotoFacesResult.cc index b7cb0d580..9c0eccf1c 100644 --- a/cloudphoto/src/model/ListPhotoFacesResult.cc +++ b/cloudphoto/src/model/ListPhotoFacesResult.cc @@ -35,10 +35,13 @@ ListPhotoFacesResult::~ListPhotoFacesResult() void ListPhotoFacesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFaces = value["Faces"]["Face"]; for (auto value : allFaces) diff --git a/cloudphoto/src/model/ListPhotoStoresResult.cc b/cloudphoto/src/model/ListPhotoStoresResult.cc index 5d44a2442..bd6b6b40d 100644 --- a/cloudphoto/src/model/ListPhotoStoresResult.cc +++ b/cloudphoto/src/model/ListPhotoStoresResult.cc @@ -35,10 +35,13 @@ ListPhotoStoresResult::~ListPhotoStoresResult() void ListPhotoStoresResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotoStores = value["PhotoStores"]["PhotoStore"]; for (auto value : allPhotoStores) diff --git a/cloudphoto/src/model/ListPhotoTagsRequest.cc b/cloudphoto/src/model/ListPhotoTagsRequest.cc index cf3994324..b64af98ef 100644 --- a/cloudphoto/src/model/ListPhotoTagsRequest.cc +++ b/cloudphoto/src/model/ListPhotoTagsRequest.cc @@ -33,7 +33,7 @@ std::string ListPhotoTagsRequest::getLibraryId()const void ListPhotoTagsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long ListPhotoTagsRequest::getPhotoId()const @@ -44,7 +44,7 @@ long ListPhotoTagsRequest::getPhotoId()const void ListPhotoTagsRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string ListPhotoTagsRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string ListPhotoTagsRequest::getStoreName()const void ListPhotoTagsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListPhotoTagsRequest::getLang()const @@ -66,6 +66,6 @@ std::string ListPhotoTagsRequest::getLang()const void ListPhotoTagsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cloudphoto/src/model/ListPhotoTagsResult.cc b/cloudphoto/src/model/ListPhotoTagsResult.cc index 207b04c82..2e7dc9e13 100644 --- a/cloudphoto/src/model/ListPhotoTagsResult.cc +++ b/cloudphoto/src/model/ListPhotoTagsResult.cc @@ -35,10 +35,13 @@ ListPhotoTagsResult::~ListPhotoTagsResult() void ListPhotoTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) diff --git a/cloudphoto/src/model/ListPhotosRequest.cc b/cloudphoto/src/model/ListPhotosRequest.cc index fa20cd73f..3bb30564c 100644 --- a/cloudphoto/src/model/ListPhotosRequest.cc +++ b/cloudphoto/src/model/ListPhotosRequest.cc @@ -33,7 +33,7 @@ std::string ListPhotosRequest::getCursor()const void ListPhotosRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListPhotosRequest::getSize()const @@ -44,7 +44,7 @@ int ListPhotosRequest::getSize()const void ListPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListPhotosRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string ListPhotosRequest::getLibraryId()const void ListPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListPhotosRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string ListPhotosRequest::getStoreName()const void ListPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListPhotosRequest::getState()const @@ -77,7 +77,7 @@ std::string ListPhotosRequest::getState()const void ListPhotosRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListPhotosRequest::getDirection()const @@ -88,6 +88,6 @@ std::string ListPhotosRequest::getDirection()const void ListPhotosRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListPhotosResult.cc b/cloudphoto/src/model/ListPhotosResult.cc index e0fadf4d3..6ccc5a32f 100644 --- a/cloudphoto/src/model/ListPhotosResult.cc +++ b/cloudphoto/src/model/ListPhotosResult.cc @@ -35,10 +35,13 @@ ListPhotosResult::~ListPhotosResult() void ListPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/ListRegisteredTagsRequest.cc b/cloudphoto/src/model/ListRegisteredTagsRequest.cc index 2b0d3ef72..5c7024422 100644 --- a/cloudphoto/src/model/ListRegisteredTagsRequest.cc +++ b/cloudphoto/src/model/ListRegisteredTagsRequest.cc @@ -33,7 +33,7 @@ std::string ListRegisteredTagsRequest::getStoreName()const void ListRegisteredTagsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::vector ListRegisteredTagsRequest::getLang()const @@ -45,6 +45,6 @@ void ListRegisteredTagsRequest::setLang(const std::vector& lang) { lang_ = lang; for(int i = 0; i!= lang.size(); i++) - setParameter("Lang."+ std::to_string(i), lang.at(i)); + setCoreParameter("Lang."+ std::to_string(i), lang.at(i)); } diff --git a/cloudphoto/src/model/ListRegisteredTagsResult.cc b/cloudphoto/src/model/ListRegisteredTagsResult.cc index 8af240da8..a8ebeb232 100644 --- a/cloudphoto/src/model/ListRegisteredTagsResult.cc +++ b/cloudphoto/src/model/ListRegisteredTagsResult.cc @@ -35,10 +35,13 @@ ListRegisteredTagsResult::~ListRegisteredTagsResult() void ListRegisteredTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegisteredTags = value["RegisteredTags"]["RegisteredTag"]; for (auto value : allRegisteredTags) diff --git a/cloudphoto/src/model/ListTagPhotosRequest.cc b/cloudphoto/src/model/ListTagPhotosRequest.cc index 29d1b8737..ce919c2e7 100644 --- a/cloudphoto/src/model/ListTagPhotosRequest.cc +++ b/cloudphoto/src/model/ListTagPhotosRequest.cc @@ -33,7 +33,7 @@ std::string ListTagPhotosRequest::getCursor()const void ListTagPhotosRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListTagPhotosRequest::getSize()const @@ -44,7 +44,7 @@ int ListTagPhotosRequest::getSize()const void ListTagPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } long ListTagPhotosRequest::getTagId()const @@ -55,7 +55,7 @@ long ListTagPhotosRequest::getTagId()const void ListTagPhotosRequest::setTagId(long tagId) { tagId_ = tagId; - setParameter("TagId", std::to_string(tagId)); + setCoreParameter("TagId", std::to_string(tagId)); } std::string ListTagPhotosRequest::getLibraryId()const @@ -66,7 +66,7 @@ std::string ListTagPhotosRequest::getLibraryId()const void ListTagPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListTagPhotosRequest::getStoreName()const @@ -77,7 +77,7 @@ std::string ListTagPhotosRequest::getStoreName()const void ListTagPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListTagPhotosRequest::getState()const @@ -88,7 +88,7 @@ std::string ListTagPhotosRequest::getState()const void ListTagPhotosRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListTagPhotosRequest::getDirection()const @@ -99,6 +99,6 @@ std::string ListTagPhotosRequest::getDirection()const void ListTagPhotosRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/cloudphoto/src/model/ListTagPhotosResult.cc b/cloudphoto/src/model/ListTagPhotosResult.cc index 83dd87487..2fbc00d98 100644 --- a/cloudphoto/src/model/ListTagPhotosResult.cc +++ b/cloudphoto/src/model/ListTagPhotosResult.cc @@ -35,10 +35,13 @@ ListTagPhotosResult::~ListTagPhotosResult() void ListTagPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/ListTagsRequest.cc b/cloudphoto/src/model/ListTagsRequest.cc index eda2532af..11e6e963e 100644 --- a/cloudphoto/src/model/ListTagsRequest.cc +++ b/cloudphoto/src/model/ListTagsRequest.cc @@ -33,7 +33,7 @@ std::string ListTagsRequest::getLibraryId()const void ListTagsRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListTagsRequest::getStoreName()const @@ -44,7 +44,7 @@ std::string ListTagsRequest::getStoreName()const void ListTagsRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListTagsRequest::getLang()const @@ -55,6 +55,6 @@ std::string ListTagsRequest::getLang()const void ListTagsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cloudphoto/src/model/ListTagsResult.cc b/cloudphoto/src/model/ListTagsResult.cc index 9366768c4..bae837f9a 100644 --- a/cloudphoto/src/model/ListTagsResult.cc +++ b/cloudphoto/src/model/ListTagsResult.cc @@ -35,10 +35,13 @@ ListTagsResult::~ListTagsResult() void ListTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) diff --git a/cloudphoto/src/model/ListTimeLinePhotosRequest.cc b/cloudphoto/src/model/ListTimeLinePhotosRequest.cc index a302d2923..e61ff3716 100644 --- a/cloudphoto/src/model/ListTimeLinePhotosRequest.cc +++ b/cloudphoto/src/model/ListTimeLinePhotosRequest.cc @@ -33,7 +33,7 @@ int ListTimeLinePhotosRequest::getSize()const void ListTimeLinePhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListTimeLinePhotosRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string ListTimeLinePhotosRequest::getLibraryId()const void ListTimeLinePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long ListTimeLinePhotosRequest::getEndTime()const @@ -55,7 +55,7 @@ long ListTimeLinePhotosRequest::getEndTime()const void ListTimeLinePhotosRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } std::string ListTimeLinePhotosRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string ListTimeLinePhotosRequest::getStoreName()const void ListTimeLinePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } int ListTimeLinePhotosRequest::getPage()const @@ -77,7 +77,7 @@ int ListTimeLinePhotosRequest::getPage()const void ListTimeLinePhotosRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } long ListTimeLinePhotosRequest::getStartTime()const @@ -88,7 +88,7 @@ long ListTimeLinePhotosRequest::getStartTime()const void ListTimeLinePhotosRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string ListTimeLinePhotosRequest::getFilterBy()const @@ -99,7 +99,7 @@ std::string ListTimeLinePhotosRequest::getFilterBy()const void ListTimeLinePhotosRequest::setFilterBy(const std::string& filterBy) { filterBy_ = filterBy; - setParameter("FilterBy", filterBy); + setCoreParameter("FilterBy", filterBy); } std::string ListTimeLinePhotosRequest::getDirection()const @@ -110,7 +110,7 @@ std::string ListTimeLinePhotosRequest::getDirection()const void ListTimeLinePhotosRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } std::string ListTimeLinePhotosRequest::getOrder()const @@ -121,6 +121,6 @@ std::string ListTimeLinePhotosRequest::getOrder()const void ListTimeLinePhotosRequest::setOrder(const std::string& order) { order_ = order; - setParameter("Order", order); + setCoreParameter("Order", order); } diff --git a/cloudphoto/src/model/ListTimeLinePhotosResult.cc b/cloudphoto/src/model/ListTimeLinePhotosResult.cc index 816d3803e..1538a3337 100644 --- a/cloudphoto/src/model/ListTimeLinePhotosResult.cc +++ b/cloudphoto/src/model/ListTimeLinePhotosResult.cc @@ -35,10 +35,13 @@ ListTimeLinePhotosResult::~ListTimeLinePhotosResult() void ListTimeLinePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/ListTimeLinesRequest.cc b/cloudphoto/src/model/ListTimeLinesRequest.cc index 165c50652..3d0453073 100644 --- a/cloudphoto/src/model/ListTimeLinesRequest.cc +++ b/cloudphoto/src/model/ListTimeLinesRequest.cc @@ -33,7 +33,7 @@ long ListTimeLinesRequest::getCursor()const void ListTimeLinesRequest::setCursor(long cursor) { cursor_ = cursor; - setParameter("Cursor", std::to_string(cursor)); + setCoreParameter("Cursor", std::to_string(cursor)); } int ListTimeLinesRequest::getPhotoSize()const @@ -44,7 +44,7 @@ int ListTimeLinesRequest::getPhotoSize()const void ListTimeLinesRequest::setPhotoSize(int photoSize) { photoSize_ = photoSize; - setParameter("PhotoSize", std::to_string(photoSize)); + setCoreParameter("PhotoSize", std::to_string(photoSize)); } int ListTimeLinesRequest::getTimeLineCount()const @@ -55,7 +55,7 @@ int ListTimeLinesRequest::getTimeLineCount()const void ListTimeLinesRequest::setTimeLineCount(int timeLineCount) { timeLineCount_ = timeLineCount; - setParameter("TimeLineCount", std::to_string(timeLineCount)); + setCoreParameter("TimeLineCount", std::to_string(timeLineCount)); } std::string ListTimeLinesRequest::getLibraryId()const @@ -66,7 +66,7 @@ std::string ListTimeLinesRequest::getLibraryId()const void ListTimeLinesRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string ListTimeLinesRequest::getStoreName()const @@ -77,7 +77,7 @@ std::string ListTimeLinesRequest::getStoreName()const void ListTimeLinesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string ListTimeLinesRequest::getTimeLineUnit()const @@ -88,7 +88,7 @@ std::string ListTimeLinesRequest::getTimeLineUnit()const void ListTimeLinesRequest::setTimeLineUnit(const std::string& timeLineUnit) { timeLineUnit_ = timeLineUnit; - setParameter("TimeLineUnit", timeLineUnit); + setCoreParameter("TimeLineUnit", timeLineUnit); } std::string ListTimeLinesRequest::getFilterBy()const @@ -99,7 +99,7 @@ std::string ListTimeLinesRequest::getFilterBy()const void ListTimeLinesRequest::setFilterBy(const std::string& filterBy) { filterBy_ = filterBy; - setParameter("FilterBy", filterBy); + setCoreParameter("FilterBy", filterBy); } std::string ListTimeLinesRequest::getDirection()const @@ -110,7 +110,7 @@ std::string ListTimeLinesRequest::getDirection()const void ListTimeLinesRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } std::string ListTimeLinesRequest::getOrder()const @@ -121,6 +121,6 @@ std::string ListTimeLinesRequest::getOrder()const void ListTimeLinesRequest::setOrder(const std::string& order) { order_ = order; - setParameter("Order", order); + setCoreParameter("Order", order); } diff --git a/cloudphoto/src/model/ListTimeLinesResult.cc b/cloudphoto/src/model/ListTimeLinesResult.cc index 8ba346147..826324c21 100644 --- a/cloudphoto/src/model/ListTimeLinesResult.cc +++ b/cloudphoto/src/model/ListTimeLinesResult.cc @@ -35,10 +35,13 @@ ListTimeLinesResult::~ListTimeLinesResult() void ListTimeLinesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTimeLines = value["TimeLines"]["TimeLine"]; for (auto value : allTimeLines) diff --git a/cloudphoto/src/model/MergeFacesRequest.cc b/cloudphoto/src/model/MergeFacesRequest.cc index fc73ad8f9..e4b1d993e 100644 --- a/cloudphoto/src/model/MergeFacesRequest.cc +++ b/cloudphoto/src/model/MergeFacesRequest.cc @@ -33,7 +33,7 @@ std::string MergeFacesRequest::getLibraryId()const void MergeFacesRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long MergeFacesRequest::getTargetFaceId()const @@ -44,7 +44,7 @@ long MergeFacesRequest::getTargetFaceId()const void MergeFacesRequest::setTargetFaceId(long targetFaceId) { targetFaceId_ = targetFaceId; - setParameter("TargetFaceId", std::to_string(targetFaceId)); + setCoreParameter("TargetFaceId", std::to_string(targetFaceId)); } std::string MergeFacesRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string MergeFacesRequest::getStoreName()const void MergeFacesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::vector MergeFacesRequest::getFaceId()const @@ -67,6 +67,6 @@ void MergeFacesRequest::setFaceId(const std::vector& faceId) { faceId_ = faceId; for(int i = 0; i!= faceId.size(); i++) - setParameter("FaceId."+ std::to_string(i), std::to_string(faceId.at(i))); + setCoreParameter("FaceId."+ std::to_string(i), std::to_string(faceId.at(i))); } diff --git a/cloudphoto/src/model/MergeFacesResult.cc b/cloudphoto/src/model/MergeFacesResult.cc index 43ad6cc7e..a18d0195a 100644 --- a/cloudphoto/src/model/MergeFacesResult.cc +++ b/cloudphoto/src/model/MergeFacesResult.cc @@ -35,10 +35,13 @@ MergeFacesResult::~MergeFacesResult() void MergeFacesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/MoveAlbumPhotosRequest.cc b/cloudphoto/src/model/MoveAlbumPhotosRequest.cc index 9ef823563..c66aed7c7 100644 --- a/cloudphoto/src/model/MoveAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/MoveAlbumPhotosRequest.cc @@ -33,7 +33,7 @@ long MoveAlbumPhotosRequest::getSourceAlbumId()const void MoveAlbumPhotosRequest::setSourceAlbumId(long sourceAlbumId) { sourceAlbumId_ = sourceAlbumId; - setParameter("SourceAlbumId", std::to_string(sourceAlbumId)); + setCoreParameter("SourceAlbumId", std::to_string(sourceAlbumId)); } long MoveAlbumPhotosRequest::getTargetAlbumId()const @@ -44,7 +44,7 @@ long MoveAlbumPhotosRequest::getTargetAlbumId()const void MoveAlbumPhotosRequest::setTargetAlbumId(long targetAlbumId) { targetAlbumId_ = targetAlbumId; - setParameter("TargetAlbumId", std::to_string(targetAlbumId)); + setCoreParameter("TargetAlbumId", std::to_string(targetAlbumId)); } std::string MoveAlbumPhotosRequest::getLibraryId()const @@ -55,7 +55,7 @@ std::string MoveAlbumPhotosRequest::getLibraryId()const void MoveAlbumPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector MoveAlbumPhotosRequest::getPhotoId()const @@ -67,7 +67,7 @@ void MoveAlbumPhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string MoveAlbumPhotosRequest::getStoreName()const @@ -78,6 +78,6 @@ std::string MoveAlbumPhotosRequest::getStoreName()const void MoveAlbumPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/MoveAlbumPhotosResult.cc b/cloudphoto/src/model/MoveAlbumPhotosResult.cc index 443af4b62..d135b98ba 100644 --- a/cloudphoto/src/model/MoveAlbumPhotosResult.cc +++ b/cloudphoto/src/model/MoveAlbumPhotosResult.cc @@ -35,10 +35,13 @@ MoveAlbumPhotosResult::~MoveAlbumPhotosResult() void MoveAlbumPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/MoveFacePhotosRequest.cc b/cloudphoto/src/model/MoveFacePhotosRequest.cc index 63657952b..8614c04fc 100644 --- a/cloudphoto/src/model/MoveFacePhotosRequest.cc +++ b/cloudphoto/src/model/MoveFacePhotosRequest.cc @@ -33,7 +33,7 @@ std::string MoveFacePhotosRequest::getLibraryId()const void MoveFacePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long MoveFacePhotosRequest::getTargetFaceId()const @@ -44,7 +44,7 @@ long MoveFacePhotosRequest::getTargetFaceId()const void MoveFacePhotosRequest::setTargetFaceId(long targetFaceId) { targetFaceId_ = targetFaceId; - setParameter("TargetFaceId", std::to_string(targetFaceId)); + setCoreParameter("TargetFaceId", std::to_string(targetFaceId)); } std::vector MoveFacePhotosRequest::getPhotoId()const @@ -56,7 +56,7 @@ void MoveFacePhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string MoveFacePhotosRequest::getStoreName()const @@ -67,7 +67,7 @@ std::string MoveFacePhotosRequest::getStoreName()const void MoveFacePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long MoveFacePhotosRequest::getSourceFaceId()const @@ -78,6 +78,6 @@ long MoveFacePhotosRequest::getSourceFaceId()const void MoveFacePhotosRequest::setSourceFaceId(long sourceFaceId) { sourceFaceId_ = sourceFaceId; - setParameter("SourceFaceId", std::to_string(sourceFaceId)); + setCoreParameter("SourceFaceId", std::to_string(sourceFaceId)); } diff --git a/cloudphoto/src/model/MoveFacePhotosResult.cc b/cloudphoto/src/model/MoveFacePhotosResult.cc index eceb7f74c..63344d76a 100644 --- a/cloudphoto/src/model/MoveFacePhotosResult.cc +++ b/cloudphoto/src/model/MoveFacePhotosResult.cc @@ -35,10 +35,13 @@ MoveFacePhotosResult::~MoveFacePhotosResult() void MoveFacePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/ReactivatePhotosRequest.cc b/cloudphoto/src/model/ReactivatePhotosRequest.cc index 715f5d16a..1610d6efc 100644 --- a/cloudphoto/src/model/ReactivatePhotosRequest.cc +++ b/cloudphoto/src/model/ReactivatePhotosRequest.cc @@ -33,7 +33,7 @@ std::string ReactivatePhotosRequest::getLibraryId()const void ReactivatePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector ReactivatePhotosRequest::getPhotoId()const @@ -45,7 +45,7 @@ void ReactivatePhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string ReactivatePhotosRequest::getStoreName()const @@ -56,6 +56,6 @@ std::string ReactivatePhotosRequest::getStoreName()const void ReactivatePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/ReactivatePhotosResult.cc b/cloudphoto/src/model/ReactivatePhotosResult.cc index 467ffb587..e08c0b184 100644 --- a/cloudphoto/src/model/ReactivatePhotosResult.cc +++ b/cloudphoto/src/model/ReactivatePhotosResult.cc @@ -35,10 +35,13 @@ ReactivatePhotosResult::~ReactivatePhotosResult() void ReactivatePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/RegisterPhotoRequest.cc b/cloudphoto/src/model/RegisterPhotoRequest.cc index 55a0320f9..34111ac5a 100644 --- a/cloudphoto/src/model/RegisterPhotoRequest.cc +++ b/cloudphoto/src/model/RegisterPhotoRequest.cc @@ -33,7 +33,7 @@ std::string RegisterPhotoRequest::getLibraryId()const void RegisterPhotoRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } float RegisterPhotoRequest::getLatitude()const @@ -44,7 +44,7 @@ float RegisterPhotoRequest::getLatitude()const void RegisterPhotoRequest::setLatitude(float latitude) { latitude_ = latitude; - setParameter("Latitude", std::to_string(latitude)); + setCoreParameter("Latitude", std::to_string(latitude)); } std::string RegisterPhotoRequest::getPhotoTitle()const @@ -55,7 +55,7 @@ std::string RegisterPhotoRequest::getPhotoTitle()const void RegisterPhotoRequest::setPhotoTitle(const std::string& photoTitle) { photoTitle_ = photoTitle; - setParameter("PhotoTitle", photoTitle); + setCoreParameter("PhotoTitle", photoTitle); } std::string RegisterPhotoRequest::getStoreName()const @@ -66,7 +66,7 @@ std::string RegisterPhotoRequest::getStoreName()const void RegisterPhotoRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string RegisterPhotoRequest::getIsVideo()const @@ -77,7 +77,7 @@ std::string RegisterPhotoRequest::getIsVideo()const void RegisterPhotoRequest::setIsVideo(const std::string& isVideo) { isVideo_ = isVideo; - setParameter("IsVideo", isVideo); + setCoreParameter("IsVideo", isVideo); } std::string RegisterPhotoRequest::getRemark()const @@ -88,7 +88,7 @@ std::string RegisterPhotoRequest::getRemark()const void RegisterPhotoRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } long RegisterPhotoRequest::getSize()const @@ -99,7 +99,7 @@ long RegisterPhotoRequest::getSize()const void RegisterPhotoRequest::setSize(long size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } long RegisterPhotoRequest::getTakenAt()const @@ -110,7 +110,7 @@ long RegisterPhotoRequest::getTakenAt()const void RegisterPhotoRequest::setTakenAt(long takenAt) { takenAt_ = takenAt; - setParameter("TakenAt", std::to_string(takenAt)); + setCoreParameter("TakenAt", std::to_string(takenAt)); } int RegisterPhotoRequest::getWidth()const @@ -121,7 +121,7 @@ int RegisterPhotoRequest::getWidth()const void RegisterPhotoRequest::setWidth(int width) { width_ = width; - setParameter("Width", std::to_string(width)); + setCoreParameter("Width", std::to_string(width)); } std::string RegisterPhotoRequest::getLocation()const @@ -132,7 +132,7 @@ std::string RegisterPhotoRequest::getLocation()const void RegisterPhotoRequest::setLocation(const std::string& location) { location_ = location; - setParameter("Location", location); + setCoreParameter("Location", location); } float RegisterPhotoRequest::getLongitude()const @@ -143,7 +143,7 @@ float RegisterPhotoRequest::getLongitude()const void RegisterPhotoRequest::setLongitude(float longitude) { longitude_ = longitude; - setParameter("Longitude", std::to_string(longitude)); + setCoreParameter("Longitude", std::to_string(longitude)); } int RegisterPhotoRequest::getHeight()const @@ -154,7 +154,7 @@ int RegisterPhotoRequest::getHeight()const void RegisterPhotoRequest::setHeight(int height) { height_ = height; - setParameter("Height", std::to_string(height)); + setCoreParameter("Height", std::to_string(height)); } std::string RegisterPhotoRequest::getMd5()const @@ -165,6 +165,6 @@ std::string RegisterPhotoRequest::getMd5()const void RegisterPhotoRequest::setMd5(const std::string& md5) { md5_ = md5; - setParameter("Md5", md5); + setCoreParameter("Md5", md5); } diff --git a/cloudphoto/src/model/RegisterPhotoResult.cc b/cloudphoto/src/model/RegisterPhotoResult.cc index 6e6e4b369..9782c115d 100644 --- a/cloudphoto/src/model/RegisterPhotoResult.cc +++ b/cloudphoto/src/model/RegisterPhotoResult.cc @@ -35,10 +35,13 @@ RegisterPhotoResult::~RegisterPhotoResult() void RegisterPhotoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto photoNode = value["Photo"]; if(!photoNode["Id"].isNull()) diff --git a/cloudphoto/src/model/RegisterTagRequest.cc b/cloudphoto/src/model/RegisterTagRequest.cc index e30484d46..21d1edaeb 100644 --- a/cloudphoto/src/model/RegisterTagRequest.cc +++ b/cloudphoto/src/model/RegisterTagRequest.cc @@ -33,7 +33,7 @@ std::string RegisterTagRequest::getStoreName()const void RegisterTagRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::string RegisterTagRequest::getText()const @@ -44,7 +44,7 @@ std::string RegisterTagRequest::getText()const void RegisterTagRequest::setText(const std::string& text) { text_ = text; - setParameter("Text", text); + setCoreParameter("Text", text); } std::string RegisterTagRequest::getTagKey()const @@ -55,7 +55,7 @@ std::string RegisterTagRequest::getTagKey()const void RegisterTagRequest::setTagKey(const std::string& tagKey) { tagKey_ = tagKey; - setParameter("TagKey", tagKey); + setCoreParameter("TagKey", tagKey); } std::string RegisterTagRequest::getLang()const @@ -66,6 +66,6 @@ std::string RegisterTagRequest::getLang()const void RegisterTagRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/cloudphoto/src/model/RegisterTagResult.cc b/cloudphoto/src/model/RegisterTagResult.cc index 9efc3ddca..4fced486a 100644 --- a/cloudphoto/src/model/RegisterTagResult.cc +++ b/cloudphoto/src/model/RegisterTagResult.cc @@ -35,10 +35,13 @@ RegisterTagResult::~RegisterTagResult() void RegisterTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc b/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc index 116701c8e..2435017cd 100644 --- a/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc @@ -33,7 +33,7 @@ std::string RemoveAlbumPhotosRequest::getLibraryId()const void RemoveAlbumPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long RemoveAlbumPhotosRequest::getAlbumId()const @@ -44,7 +44,7 @@ long RemoveAlbumPhotosRequest::getAlbumId()const void RemoveAlbumPhotosRequest::setAlbumId(long albumId) { albumId_ = albumId; - setParameter("AlbumId", std::to_string(albumId)); + setCoreParameter("AlbumId", std::to_string(albumId)); } std::vector RemoveAlbumPhotosRequest::getPhotoId()const @@ -56,7 +56,7 @@ void RemoveAlbumPhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string RemoveAlbumPhotosRequest::getStoreName()const @@ -67,6 +67,6 @@ std::string RemoveAlbumPhotosRequest::getStoreName()const void RemoveAlbumPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/RemoveAlbumPhotosResult.cc b/cloudphoto/src/model/RemoveAlbumPhotosResult.cc index fb54476aa..def22960d 100644 --- a/cloudphoto/src/model/RemoveAlbumPhotosResult.cc +++ b/cloudphoto/src/model/RemoveAlbumPhotosResult.cc @@ -35,10 +35,13 @@ RemoveAlbumPhotosResult::~RemoveAlbumPhotosResult() void RemoveAlbumPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/RemoveFacePhotosRequest.cc b/cloudphoto/src/model/RemoveFacePhotosRequest.cc index cb10226b8..1ef58bad8 100644 --- a/cloudphoto/src/model/RemoveFacePhotosRequest.cc +++ b/cloudphoto/src/model/RemoveFacePhotosRequest.cc @@ -33,7 +33,7 @@ std::string RemoveFacePhotosRequest::getLibraryId()const void RemoveFacePhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector RemoveFacePhotosRequest::getPhotoId()const @@ -45,7 +45,7 @@ void RemoveFacePhotosRequest::setPhotoId(const std::vector& photoId) { photoId_ = photoId; for(int i = 0; i!= photoId.size(); i++) - setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); + setCoreParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i))); } std::string RemoveFacePhotosRequest::getStoreName()const @@ -56,7 +56,7 @@ std::string RemoveFacePhotosRequest::getStoreName()const void RemoveFacePhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long RemoveFacePhotosRequest::getFaceId()const @@ -67,6 +67,6 @@ long RemoveFacePhotosRequest::getFaceId()const void RemoveFacePhotosRequest::setFaceId(long faceId) { faceId_ = faceId; - setParameter("FaceId", std::to_string(faceId)); + setCoreParameter("FaceId", std::to_string(faceId)); } diff --git a/cloudphoto/src/model/RemoveFacePhotosResult.cc b/cloudphoto/src/model/RemoveFacePhotosResult.cc index 1cdf4292d..d5018b00f 100644 --- a/cloudphoto/src/model/RemoveFacePhotosResult.cc +++ b/cloudphoto/src/model/RemoveFacePhotosResult.cc @@ -35,10 +35,13 @@ RemoveFacePhotosResult::~RemoveFacePhotosResult() void RemoveFacePhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) diff --git a/cloudphoto/src/model/RenameAlbumRequest.cc b/cloudphoto/src/model/RenameAlbumRequest.cc index bc82854c5..3a5d6f561 100644 --- a/cloudphoto/src/model/RenameAlbumRequest.cc +++ b/cloudphoto/src/model/RenameAlbumRequest.cc @@ -33,7 +33,7 @@ std::string RenameAlbumRequest::getAlbumName()const void RenameAlbumRequest::setAlbumName(const std::string& albumName) { albumName_ = albumName; - setParameter("AlbumName", albumName); + setCoreParameter("AlbumName", albumName); } std::string RenameAlbumRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string RenameAlbumRequest::getLibraryId()const void RenameAlbumRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long RenameAlbumRequest::getAlbumId()const @@ -55,7 +55,7 @@ long RenameAlbumRequest::getAlbumId()const void RenameAlbumRequest::setAlbumId(long albumId) { albumId_ = albumId; - setParameter("AlbumId", std::to_string(albumId)); + setCoreParameter("AlbumId", std::to_string(albumId)); } std::string RenameAlbumRequest::getStoreName()const @@ -66,6 +66,6 @@ std::string RenameAlbumRequest::getStoreName()const void RenameAlbumRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/RenameAlbumResult.cc b/cloudphoto/src/model/RenameAlbumResult.cc index d0178be8d..64e8b2a91 100644 --- a/cloudphoto/src/model/RenameAlbumResult.cc +++ b/cloudphoto/src/model/RenameAlbumResult.cc @@ -35,10 +35,13 @@ RenameAlbumResult::~RenameAlbumResult() void RenameAlbumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/RenameFaceRequest.cc b/cloudphoto/src/model/RenameFaceRequest.cc index 1982639e5..77e9a6f2d 100644 --- a/cloudphoto/src/model/RenameFaceRequest.cc +++ b/cloudphoto/src/model/RenameFaceRequest.cc @@ -33,7 +33,7 @@ std::string RenameFaceRequest::getLibraryId()const void RenameFaceRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string RenameFaceRequest::getStoreName()const @@ -44,7 +44,7 @@ std::string RenameFaceRequest::getStoreName()const void RenameFaceRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long RenameFaceRequest::getFaceId()const @@ -55,7 +55,7 @@ long RenameFaceRequest::getFaceId()const void RenameFaceRequest::setFaceId(long faceId) { faceId_ = faceId; - setParameter("FaceId", std::to_string(faceId)); + setCoreParameter("FaceId", std::to_string(faceId)); } std::string RenameFaceRequest::getFaceName()const @@ -66,6 +66,6 @@ std::string RenameFaceRequest::getFaceName()const void RenameFaceRequest::setFaceName(const std::string& faceName) { faceName_ = faceName; - setParameter("FaceName", faceName); + setCoreParameter("FaceName", faceName); } diff --git a/cloudphoto/src/model/RenameFaceResult.cc b/cloudphoto/src/model/RenameFaceResult.cc index 2b0a9b9e3..899c065a3 100644 --- a/cloudphoto/src/model/RenameFaceResult.cc +++ b/cloudphoto/src/model/RenameFaceResult.cc @@ -35,10 +35,13 @@ RenameFaceResult::~RenameFaceResult() void RenameFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/SearchPhotosRequest.cc b/cloudphoto/src/model/SearchPhotosRequest.cc index b5f1edd9e..8b1702fe5 100644 --- a/cloudphoto/src/model/SearchPhotosRequest.cc +++ b/cloudphoto/src/model/SearchPhotosRequest.cc @@ -33,7 +33,7 @@ int SearchPhotosRequest::getSize()const void SearchPhotosRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string SearchPhotosRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string SearchPhotosRequest::getLibraryId()const void SearchPhotosRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string SearchPhotosRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string SearchPhotosRequest::getStoreName()const void SearchPhotosRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } int SearchPhotosRequest::getPage()const @@ -66,7 +66,7 @@ int SearchPhotosRequest::getPage()const void SearchPhotosRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string SearchPhotosRequest::getKeyword()const @@ -77,6 +77,6 @@ std::string SearchPhotosRequest::getKeyword()const void SearchPhotosRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } diff --git a/cloudphoto/src/model/SearchPhotosResult.cc b/cloudphoto/src/model/SearchPhotosResult.cc index a65a47967..410d13907 100644 --- a/cloudphoto/src/model/SearchPhotosResult.cc +++ b/cloudphoto/src/model/SearchPhotosResult.cc @@ -35,10 +35,13 @@ SearchPhotosResult::~SearchPhotosResult() void SearchPhotosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) diff --git a/cloudphoto/src/model/SetAlbumCoverRequest.cc b/cloudphoto/src/model/SetAlbumCoverRequest.cc index 37457899f..92ac3ff87 100644 --- a/cloudphoto/src/model/SetAlbumCoverRequest.cc +++ b/cloudphoto/src/model/SetAlbumCoverRequest.cc @@ -33,7 +33,7 @@ std::string SetAlbumCoverRequest::getLibraryId()const void SetAlbumCoverRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long SetAlbumCoverRequest::getAlbumId()const @@ -44,7 +44,7 @@ long SetAlbumCoverRequest::getAlbumId()const void SetAlbumCoverRequest::setAlbumId(long albumId) { albumId_ = albumId; - setParameter("AlbumId", std::to_string(albumId)); + setCoreParameter("AlbumId", std::to_string(albumId)); } long SetAlbumCoverRequest::getPhotoId()const @@ -55,7 +55,7 @@ long SetAlbumCoverRequest::getPhotoId()const void SetAlbumCoverRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string SetAlbumCoverRequest::getStoreName()const @@ -66,6 +66,6 @@ std::string SetAlbumCoverRequest::getStoreName()const void SetAlbumCoverRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/SetAlbumCoverResult.cc b/cloudphoto/src/model/SetAlbumCoverResult.cc index 28624260d..c0f227aeb 100644 --- a/cloudphoto/src/model/SetAlbumCoverResult.cc +++ b/cloudphoto/src/model/SetAlbumCoverResult.cc @@ -35,10 +35,13 @@ SetAlbumCoverResult::~SetAlbumCoverResult() void SetAlbumCoverResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/SetFaceCoverRequest.cc b/cloudphoto/src/model/SetFaceCoverRequest.cc index 262cd8dde..ca5884a40 100644 --- a/cloudphoto/src/model/SetFaceCoverRequest.cc +++ b/cloudphoto/src/model/SetFaceCoverRequest.cc @@ -33,7 +33,7 @@ std::string SetFaceCoverRequest::getLibraryId()const void SetFaceCoverRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } long SetFaceCoverRequest::getPhotoId()const @@ -44,7 +44,7 @@ long SetFaceCoverRequest::getPhotoId()const void SetFaceCoverRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::string SetFaceCoverRequest::getStoreName()const @@ -55,7 +55,7 @@ std::string SetFaceCoverRequest::getStoreName()const void SetFaceCoverRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long SetFaceCoverRequest::getFaceId()const @@ -66,6 +66,6 @@ long SetFaceCoverRequest::getFaceId()const void SetFaceCoverRequest::setFaceId(long faceId) { faceId_ = faceId; - setParameter("FaceId", std::to_string(faceId)); + setCoreParameter("FaceId", std::to_string(faceId)); } diff --git a/cloudphoto/src/model/SetFaceCoverResult.cc b/cloudphoto/src/model/SetFaceCoverResult.cc index 230b9543d..14cca709a 100644 --- a/cloudphoto/src/model/SetFaceCoverResult.cc +++ b/cloudphoto/src/model/SetFaceCoverResult.cc @@ -35,10 +35,13 @@ SetFaceCoverResult::~SetFaceCoverResult() void SetFaceCoverResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/SetMeRequest.cc b/cloudphoto/src/model/SetMeRequest.cc index 029237d84..5bc39def6 100644 --- a/cloudphoto/src/model/SetMeRequest.cc +++ b/cloudphoto/src/model/SetMeRequest.cc @@ -33,7 +33,7 @@ std::string SetMeRequest::getLibraryId()const void SetMeRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string SetMeRequest::getStoreName()const @@ -44,7 +44,7 @@ std::string SetMeRequest::getStoreName()const void SetMeRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long SetMeRequest::getFaceId()const @@ -55,6 +55,6 @@ long SetMeRequest::getFaceId()const void SetMeRequest::setFaceId(long faceId) { faceId_ = faceId; - setParameter("FaceId", std::to_string(faceId)); + setCoreParameter("FaceId", std::to_string(faceId)); } diff --git a/cloudphoto/src/model/SetMeResult.cc b/cloudphoto/src/model/SetMeResult.cc index cebe09916..ca8a5b067 100644 --- a/cloudphoto/src/model/SetMeResult.cc +++ b/cloudphoto/src/model/SetMeResult.cc @@ -35,10 +35,13 @@ SetMeResult::~SetMeResult() void SetMeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/SetQuotaRequest.cc b/cloudphoto/src/model/SetQuotaRequest.cc index c844ad173..0cf7b96ba 100644 --- a/cloudphoto/src/model/SetQuotaRequest.cc +++ b/cloudphoto/src/model/SetQuotaRequest.cc @@ -33,7 +33,7 @@ long SetQuotaRequest::getTotalQuota()const void SetQuotaRequest::setTotalQuota(long totalQuota) { totalQuota_ = totalQuota; - setParameter("TotalQuota", std::to_string(totalQuota)); + setCoreParameter("TotalQuota", std::to_string(totalQuota)); } std::string SetQuotaRequest::getLibraryId()const @@ -44,7 +44,7 @@ std::string SetQuotaRequest::getLibraryId()const void SetQuotaRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::string SetQuotaRequest::getStoreName()const @@ -55,6 +55,6 @@ std::string SetQuotaRequest::getStoreName()const void SetQuotaRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } diff --git a/cloudphoto/src/model/SetQuotaResult.cc b/cloudphoto/src/model/SetQuotaResult.cc index 480e55494..662ee3c6d 100644 --- a/cloudphoto/src/model/SetQuotaResult.cc +++ b/cloudphoto/src/model/SetQuotaResult.cc @@ -35,10 +35,13 @@ SetQuotaResult::~SetQuotaResult() void SetQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/TagPhotoRequest.cc b/cloudphoto/src/model/TagPhotoRequest.cc index d4b911c3c..9a49a06e7 100644 --- a/cloudphoto/src/model/TagPhotoRequest.cc +++ b/cloudphoto/src/model/TagPhotoRequest.cc @@ -33,7 +33,7 @@ std::string TagPhotoRequest::getLibraryId()const void TagPhotoRequest::setLibraryId(const std::string& libraryId) { libraryId_ = libraryId; - setParameter("LibraryId", libraryId); + setCoreParameter("LibraryId", libraryId); } std::vector TagPhotoRequest::getConfidence()const @@ -45,7 +45,7 @@ void TagPhotoRequest::setConfidence(const std::vector& confidence) { confidence_ = confidence; for(int i = 0; i!= confidence.size(); i++) - setParameter("Confidence."+ std::to_string(i), std::to_string(confidence.at(i))); + setCoreParameter("Confidence."+ std::to_string(i), std::to_string(confidence.at(i))); } std::string TagPhotoRequest::getStoreName()const @@ -56,7 +56,7 @@ std::string TagPhotoRequest::getStoreName()const void TagPhotoRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } long TagPhotoRequest::getPhotoId()const @@ -67,7 +67,7 @@ long TagPhotoRequest::getPhotoId()const void TagPhotoRequest::setPhotoId(long photoId) { photoId_ = photoId; - setParameter("PhotoId", std::to_string(photoId)); + setCoreParameter("PhotoId", std::to_string(photoId)); } std::vector TagPhotoRequest::getTagKey()const @@ -79,6 +79,6 @@ void TagPhotoRequest::setTagKey(const std::vector& tagKey) { tagKey_ = tagKey; for(int i = 0; i!= tagKey.size(); i++) - setParameter("TagKey."+ std::to_string(i), tagKey.at(i)); + setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i)); } diff --git a/cloudphoto/src/model/TagPhotoResult.cc b/cloudphoto/src/model/TagPhotoResult.cc index 544fc23ff..2ba4faf0d 100644 --- a/cloudphoto/src/model/TagPhotoResult.cc +++ b/cloudphoto/src/model/TagPhotoResult.cc @@ -35,10 +35,13 @@ TagPhotoResult::~TagPhotoResult() void TagPhotoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudphoto/src/model/ToggleFeaturesRequest.cc b/cloudphoto/src/model/ToggleFeaturesRequest.cc index cb9f09fdf..b644b2da7 100644 --- a/cloudphoto/src/model/ToggleFeaturesRequest.cc +++ b/cloudphoto/src/model/ToggleFeaturesRequest.cc @@ -34,7 +34,7 @@ void ToggleFeaturesRequest::setDisabledFeatures(const std::vector& { disabledFeatures_ = disabledFeatures; for(int i = 0; i!= disabledFeatures.size(); i++) - setParameter("DisabledFeatures."+ std::to_string(i), disabledFeatures.at(i)); + setCoreParameter("DisabledFeatures."+ std::to_string(i), disabledFeatures.at(i)); } std::string ToggleFeaturesRequest::getStoreName()const @@ -45,7 +45,7 @@ std::string ToggleFeaturesRequest::getStoreName()const void ToggleFeaturesRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setCoreParameter("StoreName", storeName); } std::vector ToggleFeaturesRequest::getEnabledFeatures()const @@ -57,6 +57,6 @@ void ToggleFeaturesRequest::setEnabledFeatures(const std::vector& e { enabledFeatures_ = enabledFeatures; for(int i = 0; i!= enabledFeatures.size(); i++) - setParameter("EnabledFeatures."+ std::to_string(i), enabledFeatures.at(i)); + setCoreParameter("EnabledFeatures."+ std::to_string(i), enabledFeatures.at(i)); } diff --git a/cloudphoto/src/model/ToggleFeaturesResult.cc b/cloudphoto/src/model/ToggleFeaturesResult.cc index 454e5ad8f..b8901c2e4 100644 --- a/cloudphoto/src/model/ToggleFeaturesResult.cc +++ b/cloudphoto/src/model/ToggleFeaturesResult.cc @@ -35,10 +35,13 @@ ToggleFeaturesResult::~ToggleFeaturesResult() void ToggleFeaturesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cloudwf/CMakeLists.txt b/cloudwf/CMakeLists.txt index 39ef3f0c0..f9557d91c 100644 --- a/cloudwf/CMakeLists.txt +++ b/cloudwf/CMakeLists.txt @@ -39,10 +39,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/SaveApPortalConfigResult.h include/alibabacloud/cloudwf/model/ShopOverviewRequest.h include/alibabacloud/cloudwf/model/ShopOverviewResult.h - include/alibabacloud/cloudwf/model/ModifySubAccountPermissionRequest.h - include/alibabacloud/cloudwf/model/ModifySubAccountPermissionResult.h include/alibabacloud/cloudwf/model/SaveUmengPagePermission4RootRequest.h include/alibabacloud/cloudwf/model/SaveUmengPagePermission4RootResult.h + include/alibabacloud/cloudwf/model/ModifySubAccountPermissionRequest.h + include/alibabacloud/cloudwf/model/ModifySubAccountPermissionResult.h include/alibabacloud/cloudwf/model/FrequencyAnalyseRequest.h include/alibabacloud/cloudwf/model/FrequencyAnalyseResult.h include/alibabacloud/cloudwf/model/DeviceCreateRequest.h @@ -123,18 +123,18 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/ListConfigByActionResult.h include/alibabacloud/cloudwf/model/GetSubAccountStatusRequest.h include/alibabacloud/cloudwf/model/GetSubAccountStatusResult.h - include/alibabacloud/cloudwf/model/GetSendCommandByMacProgressRequest.h - include/alibabacloud/cloudwf/model/GetSendCommandByMacProgressResult.h include/alibabacloud/cloudwf/model/HeadquartersTrendRequest.h include/alibabacloud/cloudwf/model/HeadquartersTrendResult.h + include/alibabacloud/cloudwf/model/GetSendCommandByMacProgressRequest.h + include/alibabacloud/cloudwf/model/GetSendCommandByMacProgressResult.h include/alibabacloud/cloudwf/model/UserDataCreateRequest.h include/alibabacloud/cloudwf/model/UserDataCreateResult.h include/alibabacloud/cloudwf/model/ListApStatusRequest.h include/alibabacloud/cloudwf/model/ListApStatusResult.h - include/alibabacloud/cloudwf/model/ListProbeinfoRequest.h - include/alibabacloud/cloudwf/model/ListProbeinfoResult.h include/alibabacloud/cloudwf/model/AreaInfoRequest.h include/alibabacloud/cloudwf/model/AreaInfoResult.h + include/alibabacloud/cloudwf/model/ListProbeinfoRequest.h + include/alibabacloud/cloudwf/model/ListProbeinfoResult.h include/alibabacloud/cloudwf/model/GetAllActiveShopByGroupRequest.h include/alibabacloud/cloudwf/model/GetAllActiveShopByGroupResult.h include/alibabacloud/cloudwf/model/GetLatestApStatisticRequest.h @@ -189,20 +189,20 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/SaveGroupApRadioConfigResult.h include/alibabacloud/cloudwf/model/DeletePositionMapRequest.h include/alibabacloud/cloudwf/model/DeletePositionMapResult.h - include/alibabacloud/cloudwf/model/SetScanModeRequest.h - include/alibabacloud/cloudwf/model/SetScanModeResult.h include/alibabacloud/cloudwf/model/UpgradeAPRequest.h include/alibabacloud/cloudwf/model/UpgradeAPResult.h + include/alibabacloud/cloudwf/model/SetScanModeRequest.h + include/alibabacloud/cloudwf/model/SetScanModeResult.h include/alibabacloud/cloudwf/model/ListUpgradeImgRequest.h include/alibabacloud/cloudwf/model/ListUpgradeImgResult.h include/alibabacloud/cloudwf/model/GetGroupApRadioOnoffProgressRequest.h include/alibabacloud/cloudwf/model/GetGroupApRadioOnoffProgressResult.h include/alibabacloud/cloudwf/model/ApgroupBatchDeleteApRequest.h include/alibabacloud/cloudwf/model/ApgroupBatchDeleteApResult.h - include/alibabacloud/cloudwf/model/ShopMarketingListRequest.h - include/alibabacloud/cloudwf/model/ShopMarketingListResult.h include/alibabacloud/cloudwf/model/ProfileHistoryRequest.h include/alibabacloud/cloudwf/model/ProfileHistoryResult.h + include/alibabacloud/cloudwf/model/ShopMarketingListRequest.h + include/alibabacloud/cloudwf/model/ShopMarketingListResult.h include/alibabacloud/cloudwf/model/ListApPositionRequest.h include/alibabacloud/cloudwf/model/ListApPositionResult.h include/alibabacloud/cloudwf/model/GetDeviceInfoByMacRequest.h @@ -213,32 +213,32 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/GroupTrendResult.h include/alibabacloud/cloudwf/model/SaveApgroupSsidConfigRequest.h include/alibabacloud/cloudwf/model/SaveApgroupSsidConfigResult.h - include/alibabacloud/cloudwf/model/OemMarketingSettingDataRequest.h - include/alibabacloud/cloudwf/model/OemMarketingSettingDataResult.h include/alibabacloud/cloudwf/model/InnerCheckOrderRequest.h include/alibabacloud/cloudwf/model/InnerCheckOrderResult.h + include/alibabacloud/cloudwf/model/OemMarketingSettingDataRequest.h + include/alibabacloud/cloudwf/model/OemMarketingSettingDataResult.h include/alibabacloud/cloudwf/model/GetOnlineStaTimeSerRequest.h include/alibabacloud/cloudwf/model/GetOnlineStaTimeSerResult.h - include/alibabacloud/cloudwf/model/ListSubAccountPermissionRequest.h - include/alibabacloud/cloudwf/model/ListSubAccountPermissionResult.h include/alibabacloud/cloudwf/model/ListStaOnoffLogRequest.h include/alibabacloud/cloudwf/model/ListStaOnoffLogResult.h + include/alibabacloud/cloudwf/model/ListSubAccountPermissionRequest.h + include/alibabacloud/cloudwf/model/ListSubAccountPermissionResult.h include/alibabacloud/cloudwf/model/HeadquartersOverviewRequest.h include/alibabacloud/cloudwf/model/HeadquartersOverviewResult.h include/alibabacloud/cloudwf/model/GetApgroupConfigProgressRequest.h include/alibabacloud/cloudwf/model/GetApgroupConfigProgressResult.h - include/alibabacloud/cloudwf/model/ListPortalTemplateRequest.h - include/alibabacloud/cloudwf/model/ListPortalTemplateResult.h include/alibabacloud/cloudwf/model/AreaCreateRequest.h include/alibabacloud/cloudwf/model/AreaCreateResult.h + include/alibabacloud/cloudwf/model/ListPortalTemplateRequest.h + include/alibabacloud/cloudwf/model/ListPortalTemplateResult.h include/alibabacloud/cloudwf/model/QueryRenewPriceRequest.h include/alibabacloud/cloudwf/model/QueryRenewPriceResult.h include/alibabacloud/cloudwf/model/GetApgroupPortalConfigProgressRequest.h include/alibabacloud/cloudwf/model/GetApgroupPortalConfigProgressResult.h - include/alibabacloud/cloudwf/model/GetOssServerSignRequest.h - include/alibabacloud/cloudwf/model/GetOssServerSignResult.h include/alibabacloud/cloudwf/model/OemSitingContrastRequest.h include/alibabacloud/cloudwf/model/OemSitingContrastResult.h + include/alibabacloud/cloudwf/model/GetOssServerSignRequest.h + include/alibabacloud/cloudwf/model/GetOssServerSignResult.h include/alibabacloud/cloudwf/model/BusinessInfoRequest.h include/alibabacloud/cloudwf/model/BusinessInfoResult.h include/alibabacloud/cloudwf/model/ListBriefApConfigRequest.h @@ -271,10 +271,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/ResetApResult.h include/alibabacloud/cloudwf/model/OemHeatMapRequest.h include/alibabacloud/cloudwf/model/OemHeatMapResult.h - include/alibabacloud/cloudwf/model/ReleaseInstanceRequest.h - include/alibabacloud/cloudwf/model/ReleaseInstanceResult.h include/alibabacloud/cloudwf/model/ReportRealtimeRequest.h include/alibabacloud/cloudwf/model/ReportRealtimeResult.h + include/alibabacloud/cloudwf/model/ReleaseInstanceRequest.h + include/alibabacloud/cloudwf/model/ReleaseInstanceResult.h include/alibabacloud/cloudwf/model/GetUmengPagePermission4RootRequest.h include/alibabacloud/cloudwf/model/GetUmengPagePermission4RootResult.h include/alibabacloud/cloudwf/model/ListPageConfigTemplateRequest.h @@ -291,22 +291,22 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/GetScanModeResult.h include/alibabacloud/cloudwf/model/ListGroupApBriefConfigRequest.h include/alibabacloud/cloudwf/model/ListGroupApBriefConfigResult.h - include/alibabacloud/cloudwf/model/BatchRegisterApAssetRequest.h - include/alibabacloud/cloudwf/model/BatchRegisterApAssetResult.h include/alibabacloud/cloudwf/model/PutOssFileRequest.h include/alibabacloud/cloudwf/model/PutOssFileResult.h - include/alibabacloud/cloudwf/model/SaveApScanConfigRequest.h - include/alibabacloud/cloudwf/model/SaveApScanConfigResult.h + include/alibabacloud/cloudwf/model/BatchRegisterApAssetRequest.h + include/alibabacloud/cloudwf/model/BatchRegisterApAssetResult.h include/alibabacloud/cloudwf/model/AreaDeleteRequest.h include/alibabacloud/cloudwf/model/AreaDeleteResult.h include/alibabacloud/cloudwf/model/GetGroupApRadioConfigTemplateRequest.h include/alibabacloud/cloudwf/model/GetGroupApRadioConfigTemplateResult.h + include/alibabacloud/cloudwf/model/SaveApScanConfigRequest.h + include/alibabacloud/cloudwf/model/SaveApScanConfigResult.h include/alibabacloud/cloudwf/model/HeadquartersToolsO2ORequest.h include/alibabacloud/cloudwf/model/HeadquartersToolsO2OResult.h - include/alibabacloud/cloudwf/model/HeadquartersToolsCoincideRequest.h - include/alibabacloud/cloudwf/model/HeadquartersToolsCoincideResult.h include/alibabacloud/cloudwf/model/ResumeInstanceRequest.h include/alibabacloud/cloudwf/model/ResumeInstanceResult.h + include/alibabacloud/cloudwf/model/HeadquartersToolsCoincideRequest.h + include/alibabacloud/cloudwf/model/HeadquartersToolsCoincideResult.h include/alibabacloud/cloudwf/model/ListApAssetRequest.h include/alibabacloud/cloudwf/model/ListApAssetResult.h include/alibabacloud/cloudwf/model/SaveApRadioConfigRequest.h @@ -315,10 +315,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/GetLatestStaStatisticResult.h include/alibabacloud/cloudwf/model/RepairGroupApRequest.h include/alibabacloud/cloudwf/model/RepairGroupApResult.h - include/alibabacloud/cloudwf/model/GetMapUrlRequest.h - include/alibabacloud/cloudwf/model/GetMapUrlResult.h include/alibabacloud/cloudwf/model/GetUpgradeAPGroupProgressRequest.h include/alibabacloud/cloudwf/model/GetUpgradeAPGroupProgressResult.h + include/alibabacloud/cloudwf/model/GetMapUrlRequest.h + include/alibabacloud/cloudwf/model/GetMapUrlResult.h include/alibabacloud/cloudwf/model/ShopGetfiltermacRequest.h include/alibabacloud/cloudwf/model/ShopGetfiltermacResult.h include/alibabacloud/cloudwf/model/ShopSetredressRequest.h @@ -347,12 +347,12 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/AreaShowListResult.h include/alibabacloud/cloudwf/model/GetApgroupDetailedConfigRequest.h include/alibabacloud/cloudwf/model/GetApgroupDetailedConfigResult.h + include/alibabacloud/cloudwf/model/ListStaStatusRequest.h + include/alibabacloud/cloudwf/model/ListStaStatusResult.h include/alibabacloud/cloudwf/model/InnerRefundRequest.h include/alibabacloud/cloudwf/model/InnerRefundResult.h include/alibabacloud/cloudwf/model/ProfileTradeRequest.h include/alibabacloud/cloudwf/model/ProfileTradeResult.h - include/alibabacloud/cloudwf/model/ListStaStatusRequest.h - include/alibabacloud/cloudwf/model/ListStaStatusResult.h include/alibabacloud/cloudwf/model/DeviceUpdateRequest.h include/alibabacloud/cloudwf/model/DeviceUpdateResult.h include/alibabacloud/cloudwf/model/DeleteApgroupSsidConfigRequest.h @@ -381,10 +381,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/GetPageConfigTemplateResult.h include/alibabacloud/cloudwf/model/KickStaRequest.h include/alibabacloud/cloudwf/model/KickStaResult.h - include/alibabacloud/cloudwf/model/ProfileConsumeRequest.h - include/alibabacloud/cloudwf/model/ProfileConsumeResult.h include/alibabacloud/cloudwf/model/DelApPositionRequest.h include/alibabacloud/cloudwf/model/DelApPositionResult.h + include/alibabacloud/cloudwf/model/ProfileConsumeRequest.h + include/alibabacloud/cloudwf/model/ProfileConsumeResult.h include/alibabacloud/cloudwf/model/ShopInfoRequest.h include/alibabacloud/cloudwf/model/ShopInfoResult.h include/alibabacloud/cloudwf/model/GetPagePropertiesRequest.h @@ -393,10 +393,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/ShopCreatemarketingResult.h include/alibabacloud/cloudwf/model/SavePageConfigTemplateRequest.h include/alibabacloud/cloudwf/model/SavePageConfigTemplateResult.h - include/alibabacloud/cloudwf/model/ShopGroupUpdateRequest.h - include/alibabacloud/cloudwf/model/ShopGroupUpdateResult.h include/alibabacloud/cloudwf/model/SetUpgradeImgByModelRequest.h include/alibabacloud/cloudwf/model/SetUpgradeImgByModelResult.h + include/alibabacloud/cloudwf/model/ShopGroupUpdateRequest.h + include/alibabacloud/cloudwf/model/ShopGroupUpdateResult.h include/alibabacloud/cloudwf/model/ShopGroupInfoRequest.h include/alibabacloud/cloudwf/model/ShopGroupInfoResult.h include/alibabacloud/cloudwf/model/GetApDetailedStatusRequest.h @@ -411,10 +411,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/SaveStaStatusResult.h include/alibabacloud/cloudwf/model/CheckUmengDataAnalysisPermissionRequest.h include/alibabacloud/cloudwf/model/CheckUmengDataAnalysisPermissionResult.h - include/alibabacloud/cloudwf/model/DeviceDeleteRequest.h - include/alibabacloud/cloudwf/model/DeviceDeleteResult.h include/alibabacloud/cloudwf/model/ReportDayRequest.h include/alibabacloud/cloudwf/model/ReportDayResult.h + include/alibabacloud/cloudwf/model/DeviceDeleteRequest.h + include/alibabacloud/cloudwf/model/DeviceDeleteResult.h include/alibabacloud/cloudwf/model/UpgradeAPGroupRequest.h include/alibabacloud/cloudwf/model/UpgradeAPGroupResult.h include/alibabacloud/cloudwf/model/SaveApgroupConfigRequest.h @@ -429,18 +429,18 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/UserDataUpdateResult.h include/alibabacloud/cloudwf/model/InnerProduceCloudWFRequest.h include/alibabacloud/cloudwf/model/InnerProduceCloudWFResult.h - include/alibabacloud/cloudwf/model/UpLoadMapRequest.h - include/alibabacloud/cloudwf/model/UpLoadMapResult.h include/alibabacloud/cloudwf/model/SavePortalConfigRequest.h include/alibabacloud/cloudwf/model/SavePortalConfigResult.h + include/alibabacloud/cloudwf/model/UpLoadMapRequest.h + include/alibabacloud/cloudwf/model/UpLoadMapResult.h include/alibabacloud/cloudwf/model/BatchSaveApPositionRequest.h include/alibabacloud/cloudwf/model/BatchSaveApPositionResult.h include/alibabacloud/cloudwf/model/SaveApgroupScanConfigRequest.h include/alibabacloud/cloudwf/model/SaveApgroupScanConfigResult.h - include/alibabacloud/cloudwf/model/GetApStaMiscAggRequest.h - include/alibabacloud/cloudwf/model/GetApStaMiscAggResult.h include/alibabacloud/cloudwf/model/AliyunRegisterApAssetRequest.h include/alibabacloud/cloudwf/model/AliyunRegisterApAssetResult.h + include/alibabacloud/cloudwf/model/GetApStaMiscAggRequest.h + include/alibabacloud/cloudwf/model/GetApStaMiscAggResult.h include/alibabacloud/cloudwf/model/UserAnalyseRequest.h include/alibabacloud/cloudwf/model/UserAnalyseResult.h include/alibabacloud/cloudwf/model/ResetApConfigRequest.h @@ -449,10 +449,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/CreateSubAccountPermissionResult.h include/alibabacloud/cloudwf/model/GetStaRunHistoryTimeSerRequest.h include/alibabacloud/cloudwf/model/GetStaRunHistoryTimeSerResult.h - include/alibabacloud/cloudwf/model/GetUpgradeAPProgressRequest.h - include/alibabacloud/cloudwf/model/GetUpgradeAPProgressResult.h include/alibabacloud/cloudwf/model/GroupIntimeRequest.h include/alibabacloud/cloudwf/model/GroupIntimeResult.h + include/alibabacloud/cloudwf/model/GetUpgradeAPProgressRequest.h + include/alibabacloud/cloudwf/model/GetUpgradeAPProgressResult.h include/alibabacloud/cloudwf/model/ShopDeletemarketingRequest.h include/alibabacloud/cloudwf/model/ShopDeletemarketingResult.h include/alibabacloud/cloudwf/model/BusinessUpdateRequest.h @@ -465,10 +465,10 @@ set(cloudwf_public_header_model include/alibabacloud/cloudwf/model/SaveApMapInfoResult.h include/alibabacloud/cloudwf/model/GetAccountConfigRequest.h include/alibabacloud/cloudwf/model/GetAccountConfigResult.h - include/alibabacloud/cloudwf/model/GetAddApsProgressRequest.h - include/alibabacloud/cloudwf/model/GetAddApsProgressResult.h include/alibabacloud/cloudwf/model/ProfileDistrictRequest.h - include/alibabacloud/cloudwf/model/ProfileDistrictResult.h ) + include/alibabacloud/cloudwf/model/ProfileDistrictResult.h + include/alibabacloud/cloudwf/model/GetAddApsProgressRequest.h + include/alibabacloud/cloudwf/model/GetAddApsProgressResult.h ) set(cloudwf_src src/CloudwfClient.cc @@ -490,10 +490,10 @@ set(cloudwf_src src/model/SaveApPortalConfigResult.cc src/model/ShopOverviewRequest.cc src/model/ShopOverviewResult.cc - src/model/ModifySubAccountPermissionRequest.cc - src/model/ModifySubAccountPermissionResult.cc src/model/SaveUmengPagePermission4RootRequest.cc src/model/SaveUmengPagePermission4RootResult.cc + src/model/ModifySubAccountPermissionRequest.cc + src/model/ModifySubAccountPermissionResult.cc src/model/FrequencyAnalyseRequest.cc src/model/FrequencyAnalyseResult.cc src/model/DeviceCreateRequest.cc @@ -574,18 +574,18 @@ set(cloudwf_src src/model/ListConfigByActionResult.cc src/model/GetSubAccountStatusRequest.cc src/model/GetSubAccountStatusResult.cc - src/model/GetSendCommandByMacProgressRequest.cc - src/model/GetSendCommandByMacProgressResult.cc src/model/HeadquartersTrendRequest.cc src/model/HeadquartersTrendResult.cc + src/model/GetSendCommandByMacProgressRequest.cc + src/model/GetSendCommandByMacProgressResult.cc src/model/UserDataCreateRequest.cc src/model/UserDataCreateResult.cc src/model/ListApStatusRequest.cc src/model/ListApStatusResult.cc - src/model/ListProbeinfoRequest.cc - src/model/ListProbeinfoResult.cc src/model/AreaInfoRequest.cc src/model/AreaInfoResult.cc + src/model/ListProbeinfoRequest.cc + src/model/ListProbeinfoResult.cc src/model/GetAllActiveShopByGroupRequest.cc src/model/GetAllActiveShopByGroupResult.cc src/model/GetLatestApStatisticRequest.cc @@ -640,20 +640,20 @@ set(cloudwf_src src/model/SaveGroupApRadioConfigResult.cc src/model/DeletePositionMapRequest.cc src/model/DeletePositionMapResult.cc - src/model/SetScanModeRequest.cc - src/model/SetScanModeResult.cc src/model/UpgradeAPRequest.cc src/model/UpgradeAPResult.cc + src/model/SetScanModeRequest.cc + src/model/SetScanModeResult.cc src/model/ListUpgradeImgRequest.cc src/model/ListUpgradeImgResult.cc src/model/GetGroupApRadioOnoffProgressRequest.cc src/model/GetGroupApRadioOnoffProgressResult.cc src/model/ApgroupBatchDeleteApRequest.cc src/model/ApgroupBatchDeleteApResult.cc - src/model/ShopMarketingListRequest.cc - src/model/ShopMarketingListResult.cc src/model/ProfileHistoryRequest.cc src/model/ProfileHistoryResult.cc + src/model/ShopMarketingListRequest.cc + src/model/ShopMarketingListResult.cc src/model/ListApPositionRequest.cc src/model/ListApPositionResult.cc src/model/GetDeviceInfoByMacRequest.cc @@ -664,32 +664,32 @@ set(cloudwf_src src/model/GroupTrendResult.cc src/model/SaveApgroupSsidConfigRequest.cc src/model/SaveApgroupSsidConfigResult.cc - src/model/OemMarketingSettingDataRequest.cc - src/model/OemMarketingSettingDataResult.cc src/model/InnerCheckOrderRequest.cc src/model/InnerCheckOrderResult.cc + src/model/OemMarketingSettingDataRequest.cc + src/model/OemMarketingSettingDataResult.cc src/model/GetOnlineStaTimeSerRequest.cc src/model/GetOnlineStaTimeSerResult.cc - src/model/ListSubAccountPermissionRequest.cc - src/model/ListSubAccountPermissionResult.cc src/model/ListStaOnoffLogRequest.cc src/model/ListStaOnoffLogResult.cc + src/model/ListSubAccountPermissionRequest.cc + src/model/ListSubAccountPermissionResult.cc src/model/HeadquartersOverviewRequest.cc src/model/HeadquartersOverviewResult.cc src/model/GetApgroupConfigProgressRequest.cc src/model/GetApgroupConfigProgressResult.cc - src/model/ListPortalTemplateRequest.cc - src/model/ListPortalTemplateResult.cc src/model/AreaCreateRequest.cc src/model/AreaCreateResult.cc + src/model/ListPortalTemplateRequest.cc + src/model/ListPortalTemplateResult.cc src/model/QueryRenewPriceRequest.cc src/model/QueryRenewPriceResult.cc src/model/GetApgroupPortalConfigProgressRequest.cc src/model/GetApgroupPortalConfigProgressResult.cc - src/model/GetOssServerSignRequest.cc - src/model/GetOssServerSignResult.cc src/model/OemSitingContrastRequest.cc src/model/OemSitingContrastResult.cc + src/model/GetOssServerSignRequest.cc + src/model/GetOssServerSignResult.cc src/model/BusinessInfoRequest.cc src/model/BusinessInfoResult.cc src/model/ListBriefApConfigRequest.cc @@ -722,10 +722,10 @@ set(cloudwf_src src/model/ResetApResult.cc src/model/OemHeatMapRequest.cc src/model/OemHeatMapResult.cc - src/model/ReleaseInstanceRequest.cc - src/model/ReleaseInstanceResult.cc src/model/ReportRealtimeRequest.cc src/model/ReportRealtimeResult.cc + src/model/ReleaseInstanceRequest.cc + src/model/ReleaseInstanceResult.cc src/model/GetUmengPagePermission4RootRequest.cc src/model/GetUmengPagePermission4RootResult.cc src/model/ListPageConfigTemplateRequest.cc @@ -742,22 +742,22 @@ set(cloudwf_src src/model/GetScanModeResult.cc src/model/ListGroupApBriefConfigRequest.cc src/model/ListGroupApBriefConfigResult.cc - src/model/BatchRegisterApAssetRequest.cc - src/model/BatchRegisterApAssetResult.cc src/model/PutOssFileRequest.cc src/model/PutOssFileResult.cc - src/model/SaveApScanConfigRequest.cc - src/model/SaveApScanConfigResult.cc + src/model/BatchRegisterApAssetRequest.cc + src/model/BatchRegisterApAssetResult.cc src/model/AreaDeleteRequest.cc src/model/AreaDeleteResult.cc src/model/GetGroupApRadioConfigTemplateRequest.cc src/model/GetGroupApRadioConfigTemplateResult.cc + src/model/SaveApScanConfigRequest.cc + src/model/SaveApScanConfigResult.cc src/model/HeadquartersToolsO2ORequest.cc src/model/HeadquartersToolsO2OResult.cc - src/model/HeadquartersToolsCoincideRequest.cc - src/model/HeadquartersToolsCoincideResult.cc src/model/ResumeInstanceRequest.cc src/model/ResumeInstanceResult.cc + src/model/HeadquartersToolsCoincideRequest.cc + src/model/HeadquartersToolsCoincideResult.cc src/model/ListApAssetRequest.cc src/model/ListApAssetResult.cc src/model/SaveApRadioConfigRequest.cc @@ -766,10 +766,10 @@ set(cloudwf_src src/model/GetLatestStaStatisticResult.cc src/model/RepairGroupApRequest.cc src/model/RepairGroupApResult.cc - src/model/GetMapUrlRequest.cc - src/model/GetMapUrlResult.cc src/model/GetUpgradeAPGroupProgressRequest.cc src/model/GetUpgradeAPGroupProgressResult.cc + src/model/GetMapUrlRequest.cc + src/model/GetMapUrlResult.cc src/model/ShopGetfiltermacRequest.cc src/model/ShopGetfiltermacResult.cc src/model/ShopSetredressRequest.cc @@ -798,12 +798,12 @@ set(cloudwf_src src/model/AreaShowListResult.cc src/model/GetApgroupDetailedConfigRequest.cc src/model/GetApgroupDetailedConfigResult.cc + src/model/ListStaStatusRequest.cc + src/model/ListStaStatusResult.cc src/model/InnerRefundRequest.cc src/model/InnerRefundResult.cc src/model/ProfileTradeRequest.cc src/model/ProfileTradeResult.cc - src/model/ListStaStatusRequest.cc - src/model/ListStaStatusResult.cc src/model/DeviceUpdateRequest.cc src/model/DeviceUpdateResult.cc src/model/DeleteApgroupSsidConfigRequest.cc @@ -832,10 +832,10 @@ set(cloudwf_src src/model/GetPageConfigTemplateResult.cc src/model/KickStaRequest.cc src/model/KickStaResult.cc - src/model/ProfileConsumeRequest.cc - src/model/ProfileConsumeResult.cc src/model/DelApPositionRequest.cc src/model/DelApPositionResult.cc + src/model/ProfileConsumeRequest.cc + src/model/ProfileConsumeResult.cc src/model/ShopInfoRequest.cc src/model/ShopInfoResult.cc src/model/GetPagePropertiesRequest.cc @@ -844,10 +844,10 @@ set(cloudwf_src src/model/ShopCreatemarketingResult.cc src/model/SavePageConfigTemplateRequest.cc src/model/SavePageConfigTemplateResult.cc - src/model/ShopGroupUpdateRequest.cc - src/model/ShopGroupUpdateResult.cc src/model/SetUpgradeImgByModelRequest.cc src/model/SetUpgradeImgByModelResult.cc + src/model/ShopGroupUpdateRequest.cc + src/model/ShopGroupUpdateResult.cc src/model/ShopGroupInfoRequest.cc src/model/ShopGroupInfoResult.cc src/model/GetApDetailedStatusRequest.cc @@ -862,10 +862,10 @@ set(cloudwf_src src/model/SaveStaStatusResult.cc src/model/CheckUmengDataAnalysisPermissionRequest.cc src/model/CheckUmengDataAnalysisPermissionResult.cc - src/model/DeviceDeleteRequest.cc - src/model/DeviceDeleteResult.cc src/model/ReportDayRequest.cc src/model/ReportDayResult.cc + src/model/DeviceDeleteRequest.cc + src/model/DeviceDeleteResult.cc src/model/UpgradeAPGroupRequest.cc src/model/UpgradeAPGroupResult.cc src/model/SaveApgroupConfigRequest.cc @@ -880,18 +880,18 @@ set(cloudwf_src src/model/UserDataUpdateResult.cc src/model/InnerProduceCloudWFRequest.cc src/model/InnerProduceCloudWFResult.cc - src/model/UpLoadMapRequest.cc - src/model/UpLoadMapResult.cc src/model/SavePortalConfigRequest.cc src/model/SavePortalConfigResult.cc + src/model/UpLoadMapRequest.cc + src/model/UpLoadMapResult.cc src/model/BatchSaveApPositionRequest.cc src/model/BatchSaveApPositionResult.cc src/model/SaveApgroupScanConfigRequest.cc src/model/SaveApgroupScanConfigResult.cc - src/model/GetApStaMiscAggRequest.cc - src/model/GetApStaMiscAggResult.cc src/model/AliyunRegisterApAssetRequest.cc src/model/AliyunRegisterApAssetResult.cc + src/model/GetApStaMiscAggRequest.cc + src/model/GetApStaMiscAggResult.cc src/model/UserAnalyseRequest.cc src/model/UserAnalyseResult.cc src/model/ResetApConfigRequest.cc @@ -900,10 +900,10 @@ set(cloudwf_src src/model/CreateSubAccountPermissionResult.cc src/model/GetStaRunHistoryTimeSerRequest.cc src/model/GetStaRunHistoryTimeSerResult.cc - src/model/GetUpgradeAPProgressRequest.cc - src/model/GetUpgradeAPProgressResult.cc src/model/GroupIntimeRequest.cc src/model/GroupIntimeResult.cc + src/model/GetUpgradeAPProgressRequest.cc + src/model/GetUpgradeAPProgressResult.cc src/model/ShopDeletemarketingRequest.cc src/model/ShopDeletemarketingResult.cc src/model/BusinessUpdateRequest.cc @@ -916,10 +916,10 @@ set(cloudwf_src src/model/SaveApMapInfoResult.cc src/model/GetAccountConfigRequest.cc src/model/GetAccountConfigResult.cc - src/model/GetAddApsProgressRequest.cc - src/model/GetAddApsProgressResult.cc src/model/ProfileDistrictRequest.cc - src/model/ProfileDistrictResult.cc ) + src/model/ProfileDistrictResult.cc + src/model/GetAddApsProgressRequest.cc + src/model/GetAddApsProgressResult.cc ) add_library(cloudwf ${LIB_TYPE} ${cloudwf_public_header} diff --git a/cloudwf/include/alibabacloud/cloudwf/CloudwfClient.h b/cloudwf/include/alibabacloud/cloudwf/CloudwfClient.h index b036ff98b..e51246d26 100644 --- a/cloudwf/include/alibabacloud/cloudwf/CloudwfClient.h +++ b/cloudwf/include/alibabacloud/cloudwf/CloudwfClient.h @@ -40,10 +40,10 @@ #include "model/SaveApPortalConfigResult.h" #include "model/ShopOverviewRequest.h" #include "model/ShopOverviewResult.h" -#include "model/ModifySubAccountPermissionRequest.h" -#include "model/ModifySubAccountPermissionResult.h" #include "model/SaveUmengPagePermission4RootRequest.h" #include "model/SaveUmengPagePermission4RootResult.h" +#include "model/ModifySubAccountPermissionRequest.h" +#include "model/ModifySubAccountPermissionResult.h" #include "model/FrequencyAnalyseRequest.h" #include "model/FrequencyAnalyseResult.h" #include "model/DeviceCreateRequest.h" @@ -124,18 +124,18 @@ #include "model/ListConfigByActionResult.h" #include "model/GetSubAccountStatusRequest.h" #include "model/GetSubAccountStatusResult.h" -#include "model/GetSendCommandByMacProgressRequest.h" -#include "model/GetSendCommandByMacProgressResult.h" #include "model/HeadquartersTrendRequest.h" #include "model/HeadquartersTrendResult.h" +#include "model/GetSendCommandByMacProgressRequest.h" +#include "model/GetSendCommandByMacProgressResult.h" #include "model/UserDataCreateRequest.h" #include "model/UserDataCreateResult.h" #include "model/ListApStatusRequest.h" #include "model/ListApStatusResult.h" -#include "model/ListProbeinfoRequest.h" -#include "model/ListProbeinfoResult.h" #include "model/AreaInfoRequest.h" #include "model/AreaInfoResult.h" +#include "model/ListProbeinfoRequest.h" +#include "model/ListProbeinfoResult.h" #include "model/GetAllActiveShopByGroupRequest.h" #include "model/GetAllActiveShopByGroupResult.h" #include "model/GetLatestApStatisticRequest.h" @@ -190,20 +190,20 @@ #include "model/SaveGroupApRadioConfigResult.h" #include "model/DeletePositionMapRequest.h" #include "model/DeletePositionMapResult.h" -#include "model/SetScanModeRequest.h" -#include "model/SetScanModeResult.h" #include "model/UpgradeAPRequest.h" #include "model/UpgradeAPResult.h" +#include "model/SetScanModeRequest.h" +#include "model/SetScanModeResult.h" #include "model/ListUpgradeImgRequest.h" #include "model/ListUpgradeImgResult.h" #include "model/GetGroupApRadioOnoffProgressRequest.h" #include "model/GetGroupApRadioOnoffProgressResult.h" #include "model/ApgroupBatchDeleteApRequest.h" #include "model/ApgroupBatchDeleteApResult.h" -#include "model/ShopMarketingListRequest.h" -#include "model/ShopMarketingListResult.h" #include "model/ProfileHistoryRequest.h" #include "model/ProfileHistoryResult.h" +#include "model/ShopMarketingListRequest.h" +#include "model/ShopMarketingListResult.h" #include "model/ListApPositionRequest.h" #include "model/ListApPositionResult.h" #include "model/GetDeviceInfoByMacRequest.h" @@ -214,32 +214,32 @@ #include "model/GroupTrendResult.h" #include "model/SaveApgroupSsidConfigRequest.h" #include "model/SaveApgroupSsidConfigResult.h" -#include "model/OemMarketingSettingDataRequest.h" -#include "model/OemMarketingSettingDataResult.h" #include "model/InnerCheckOrderRequest.h" #include "model/InnerCheckOrderResult.h" +#include "model/OemMarketingSettingDataRequest.h" +#include "model/OemMarketingSettingDataResult.h" #include "model/GetOnlineStaTimeSerRequest.h" #include "model/GetOnlineStaTimeSerResult.h" -#include "model/ListSubAccountPermissionRequest.h" -#include "model/ListSubAccountPermissionResult.h" #include "model/ListStaOnoffLogRequest.h" #include "model/ListStaOnoffLogResult.h" +#include "model/ListSubAccountPermissionRequest.h" +#include "model/ListSubAccountPermissionResult.h" #include "model/HeadquartersOverviewRequest.h" #include "model/HeadquartersOverviewResult.h" #include "model/GetApgroupConfigProgressRequest.h" #include "model/GetApgroupConfigProgressResult.h" -#include "model/ListPortalTemplateRequest.h" -#include "model/ListPortalTemplateResult.h" #include "model/AreaCreateRequest.h" #include "model/AreaCreateResult.h" +#include "model/ListPortalTemplateRequest.h" +#include "model/ListPortalTemplateResult.h" #include "model/QueryRenewPriceRequest.h" #include "model/QueryRenewPriceResult.h" #include "model/GetApgroupPortalConfigProgressRequest.h" #include "model/GetApgroupPortalConfigProgressResult.h" -#include "model/GetOssServerSignRequest.h" -#include "model/GetOssServerSignResult.h" #include "model/OemSitingContrastRequest.h" #include "model/OemSitingContrastResult.h" +#include "model/GetOssServerSignRequest.h" +#include "model/GetOssServerSignResult.h" #include "model/BusinessInfoRequest.h" #include "model/BusinessInfoResult.h" #include "model/ListBriefApConfigRequest.h" @@ -272,10 +272,10 @@ #include "model/ResetApResult.h" #include "model/OemHeatMapRequest.h" #include "model/OemHeatMapResult.h" -#include "model/ReleaseInstanceRequest.h" -#include "model/ReleaseInstanceResult.h" #include "model/ReportRealtimeRequest.h" #include "model/ReportRealtimeResult.h" +#include "model/ReleaseInstanceRequest.h" +#include "model/ReleaseInstanceResult.h" #include "model/GetUmengPagePermission4RootRequest.h" #include "model/GetUmengPagePermission4RootResult.h" #include "model/ListPageConfigTemplateRequest.h" @@ -292,22 +292,22 @@ #include "model/GetScanModeResult.h" #include "model/ListGroupApBriefConfigRequest.h" #include "model/ListGroupApBriefConfigResult.h" -#include "model/BatchRegisterApAssetRequest.h" -#include "model/BatchRegisterApAssetResult.h" #include "model/PutOssFileRequest.h" #include "model/PutOssFileResult.h" -#include "model/SaveApScanConfigRequest.h" -#include "model/SaveApScanConfigResult.h" +#include "model/BatchRegisterApAssetRequest.h" +#include "model/BatchRegisterApAssetResult.h" #include "model/AreaDeleteRequest.h" #include "model/AreaDeleteResult.h" #include "model/GetGroupApRadioConfigTemplateRequest.h" #include "model/GetGroupApRadioConfigTemplateResult.h" +#include "model/SaveApScanConfigRequest.h" +#include "model/SaveApScanConfigResult.h" #include "model/HeadquartersToolsO2ORequest.h" #include "model/HeadquartersToolsO2OResult.h" -#include "model/HeadquartersToolsCoincideRequest.h" -#include "model/HeadquartersToolsCoincideResult.h" #include "model/ResumeInstanceRequest.h" #include "model/ResumeInstanceResult.h" +#include "model/HeadquartersToolsCoincideRequest.h" +#include "model/HeadquartersToolsCoincideResult.h" #include "model/ListApAssetRequest.h" #include "model/ListApAssetResult.h" #include "model/SaveApRadioConfigRequest.h" @@ -316,10 +316,10 @@ #include "model/GetLatestStaStatisticResult.h" #include "model/RepairGroupApRequest.h" #include "model/RepairGroupApResult.h" -#include "model/GetMapUrlRequest.h" -#include "model/GetMapUrlResult.h" #include "model/GetUpgradeAPGroupProgressRequest.h" #include "model/GetUpgradeAPGroupProgressResult.h" +#include "model/GetMapUrlRequest.h" +#include "model/GetMapUrlResult.h" #include "model/ShopGetfiltermacRequest.h" #include "model/ShopGetfiltermacResult.h" #include "model/ShopSetredressRequest.h" @@ -348,12 +348,12 @@ #include "model/AreaShowListResult.h" #include "model/GetApgroupDetailedConfigRequest.h" #include "model/GetApgroupDetailedConfigResult.h" +#include "model/ListStaStatusRequest.h" +#include "model/ListStaStatusResult.h" #include "model/InnerRefundRequest.h" #include "model/InnerRefundResult.h" #include "model/ProfileTradeRequest.h" #include "model/ProfileTradeResult.h" -#include "model/ListStaStatusRequest.h" -#include "model/ListStaStatusResult.h" #include "model/DeviceUpdateRequest.h" #include "model/DeviceUpdateResult.h" #include "model/DeleteApgroupSsidConfigRequest.h" @@ -382,10 +382,10 @@ #include "model/GetPageConfigTemplateResult.h" #include "model/KickStaRequest.h" #include "model/KickStaResult.h" -#include "model/ProfileConsumeRequest.h" -#include "model/ProfileConsumeResult.h" #include "model/DelApPositionRequest.h" #include "model/DelApPositionResult.h" +#include "model/ProfileConsumeRequest.h" +#include "model/ProfileConsumeResult.h" #include "model/ShopInfoRequest.h" #include "model/ShopInfoResult.h" #include "model/GetPagePropertiesRequest.h" @@ -394,10 +394,10 @@ #include "model/ShopCreatemarketingResult.h" #include "model/SavePageConfigTemplateRequest.h" #include "model/SavePageConfigTemplateResult.h" -#include "model/ShopGroupUpdateRequest.h" -#include "model/ShopGroupUpdateResult.h" #include "model/SetUpgradeImgByModelRequest.h" #include "model/SetUpgradeImgByModelResult.h" +#include "model/ShopGroupUpdateRequest.h" +#include "model/ShopGroupUpdateResult.h" #include "model/ShopGroupInfoRequest.h" #include "model/ShopGroupInfoResult.h" #include "model/GetApDetailedStatusRequest.h" @@ -412,10 +412,10 @@ #include "model/SaveStaStatusResult.h" #include "model/CheckUmengDataAnalysisPermissionRequest.h" #include "model/CheckUmengDataAnalysisPermissionResult.h" -#include "model/DeviceDeleteRequest.h" -#include "model/DeviceDeleteResult.h" #include "model/ReportDayRequest.h" #include "model/ReportDayResult.h" +#include "model/DeviceDeleteRequest.h" +#include "model/DeviceDeleteResult.h" #include "model/UpgradeAPGroupRequest.h" #include "model/UpgradeAPGroupResult.h" #include "model/SaveApgroupConfigRequest.h" @@ -430,18 +430,18 @@ #include "model/UserDataUpdateResult.h" #include "model/InnerProduceCloudWFRequest.h" #include "model/InnerProduceCloudWFResult.h" -#include "model/UpLoadMapRequest.h" -#include "model/UpLoadMapResult.h" #include "model/SavePortalConfigRequest.h" #include "model/SavePortalConfigResult.h" +#include "model/UpLoadMapRequest.h" +#include "model/UpLoadMapResult.h" #include "model/BatchSaveApPositionRequest.h" #include "model/BatchSaveApPositionResult.h" #include "model/SaveApgroupScanConfigRequest.h" #include "model/SaveApgroupScanConfigResult.h" -#include "model/GetApStaMiscAggRequest.h" -#include "model/GetApStaMiscAggResult.h" #include "model/AliyunRegisterApAssetRequest.h" #include "model/AliyunRegisterApAssetResult.h" +#include "model/GetApStaMiscAggRequest.h" +#include "model/GetApStaMiscAggResult.h" #include "model/UserAnalyseRequest.h" #include "model/UserAnalyseResult.h" #include "model/ResetApConfigRequest.h" @@ -450,10 +450,10 @@ #include "model/CreateSubAccountPermissionResult.h" #include "model/GetStaRunHistoryTimeSerRequest.h" #include "model/GetStaRunHistoryTimeSerResult.h" -#include "model/GetUpgradeAPProgressRequest.h" -#include "model/GetUpgradeAPProgressResult.h" #include "model/GroupIntimeRequest.h" #include "model/GroupIntimeResult.h" +#include "model/GetUpgradeAPProgressRequest.h" +#include "model/GetUpgradeAPProgressResult.h" #include "model/ShopDeletemarketingRequest.h" #include "model/ShopDeletemarketingResult.h" #include "model/BusinessUpdateRequest.h" @@ -466,10 +466,10 @@ #include "model/SaveApMapInfoResult.h" #include "model/GetAccountConfigRequest.h" #include "model/GetAccountConfigResult.h" -#include "model/GetAddApsProgressRequest.h" -#include "model/GetAddApsProgressResult.h" #include "model/ProfileDistrictRequest.h" #include "model/ProfileDistrictResult.h" +#include "model/GetAddApsProgressRequest.h" +#include "model/GetAddApsProgressResult.h" namespace AlibabaCloud @@ -506,12 +506,12 @@ namespace AlibabaCloud typedef Outcome ShopOverviewOutcome; typedef std::future ShopOverviewOutcomeCallable; typedef std::function&)> ShopOverviewAsyncHandler; - typedef Outcome ModifySubAccountPermissionOutcome; - typedef std::future ModifySubAccountPermissionOutcomeCallable; - typedef std::function&)> ModifySubAccountPermissionAsyncHandler; typedef Outcome SaveUmengPagePermission4RootOutcome; typedef std::future SaveUmengPagePermission4RootOutcomeCallable; typedef std::function&)> SaveUmengPagePermission4RootAsyncHandler; + typedef Outcome ModifySubAccountPermissionOutcome; + typedef std::future ModifySubAccountPermissionOutcomeCallable; + typedef std::function&)> ModifySubAccountPermissionAsyncHandler; typedef Outcome FrequencyAnalyseOutcome; typedef std::future FrequencyAnalyseOutcomeCallable; typedef std::function&)> FrequencyAnalyseAsyncHandler; @@ -632,24 +632,24 @@ namespace AlibabaCloud typedef Outcome GetSubAccountStatusOutcome; typedef std::future GetSubAccountStatusOutcomeCallable; typedef std::function&)> GetSubAccountStatusAsyncHandler; - typedef Outcome GetSendCommandByMacProgressOutcome; - typedef std::future GetSendCommandByMacProgressOutcomeCallable; - typedef std::function&)> GetSendCommandByMacProgressAsyncHandler; typedef Outcome HeadquartersTrendOutcome; typedef std::future HeadquartersTrendOutcomeCallable; typedef std::function&)> HeadquartersTrendAsyncHandler; + typedef Outcome GetSendCommandByMacProgressOutcome; + typedef std::future GetSendCommandByMacProgressOutcomeCallable; + typedef std::function&)> GetSendCommandByMacProgressAsyncHandler; typedef Outcome UserDataCreateOutcome; typedef std::future UserDataCreateOutcomeCallable; typedef std::function&)> UserDataCreateAsyncHandler; typedef Outcome ListApStatusOutcome; typedef std::future ListApStatusOutcomeCallable; typedef std::function&)> ListApStatusAsyncHandler; - typedef Outcome ListProbeinfoOutcome; - typedef std::future ListProbeinfoOutcomeCallable; - typedef std::function&)> ListProbeinfoAsyncHandler; typedef Outcome AreaInfoOutcome; typedef std::future AreaInfoOutcomeCallable; typedef std::function&)> AreaInfoAsyncHandler; + typedef Outcome ListProbeinfoOutcome; + typedef std::future ListProbeinfoOutcomeCallable; + typedef std::function&)> ListProbeinfoAsyncHandler; typedef Outcome GetAllActiveShopByGroupOutcome; typedef std::future GetAllActiveShopByGroupOutcomeCallable; typedef std::function&)> GetAllActiveShopByGroupAsyncHandler; @@ -731,12 +731,12 @@ namespace AlibabaCloud typedef Outcome DeletePositionMapOutcome; typedef std::future DeletePositionMapOutcomeCallable; typedef std::function&)> DeletePositionMapAsyncHandler; - typedef Outcome SetScanModeOutcome; - typedef std::future SetScanModeOutcomeCallable; - typedef std::function&)> SetScanModeAsyncHandler; typedef Outcome UpgradeAPOutcome; typedef std::future UpgradeAPOutcomeCallable; typedef std::function&)> UpgradeAPAsyncHandler; + typedef Outcome SetScanModeOutcome; + typedef std::future SetScanModeOutcomeCallable; + typedef std::function&)> SetScanModeAsyncHandler; typedef Outcome ListUpgradeImgOutcome; typedef std::future ListUpgradeImgOutcomeCallable; typedef std::function&)> ListUpgradeImgAsyncHandler; @@ -746,12 +746,12 @@ namespace AlibabaCloud typedef Outcome ApgroupBatchDeleteApOutcome; typedef std::future ApgroupBatchDeleteApOutcomeCallable; typedef std::function&)> ApgroupBatchDeleteApAsyncHandler; - typedef Outcome ShopMarketingListOutcome; - typedef std::future ShopMarketingListOutcomeCallable; - typedef std::function&)> ShopMarketingListAsyncHandler; typedef Outcome ProfileHistoryOutcome; typedef std::future ProfileHistoryOutcomeCallable; typedef std::function&)> ProfileHistoryAsyncHandler; + typedef Outcome ShopMarketingListOutcome; + typedef std::future ShopMarketingListOutcomeCallable; + typedef std::function&)> ShopMarketingListAsyncHandler; typedef Outcome ListApPositionOutcome; typedef std::future ListApPositionOutcomeCallable; typedef std::function&)> ListApPositionAsyncHandler; @@ -767,45 +767,45 @@ namespace AlibabaCloud typedef Outcome SaveApgroupSsidConfigOutcome; typedef std::future SaveApgroupSsidConfigOutcomeCallable; typedef std::function&)> SaveApgroupSsidConfigAsyncHandler; - typedef Outcome OemMarketingSettingDataOutcome; - typedef std::future OemMarketingSettingDataOutcomeCallable; - typedef std::function&)> OemMarketingSettingDataAsyncHandler; typedef Outcome InnerCheckOrderOutcome; typedef std::future InnerCheckOrderOutcomeCallable; typedef std::function&)> InnerCheckOrderAsyncHandler; + typedef Outcome OemMarketingSettingDataOutcome; + typedef std::future OemMarketingSettingDataOutcomeCallable; + typedef std::function&)> OemMarketingSettingDataAsyncHandler; typedef Outcome GetOnlineStaTimeSerOutcome; typedef std::future GetOnlineStaTimeSerOutcomeCallable; typedef std::function&)> GetOnlineStaTimeSerAsyncHandler; - typedef Outcome ListSubAccountPermissionOutcome; - typedef std::future ListSubAccountPermissionOutcomeCallable; - typedef std::function&)> ListSubAccountPermissionAsyncHandler; typedef Outcome ListStaOnoffLogOutcome; typedef std::future ListStaOnoffLogOutcomeCallable; typedef std::function&)> ListStaOnoffLogAsyncHandler; + typedef Outcome ListSubAccountPermissionOutcome; + typedef std::future ListSubAccountPermissionOutcomeCallable; + typedef std::function&)> ListSubAccountPermissionAsyncHandler; typedef Outcome HeadquartersOverviewOutcome; typedef std::future HeadquartersOverviewOutcomeCallable; typedef std::function&)> HeadquartersOverviewAsyncHandler; typedef Outcome GetApgroupConfigProgressOutcome; typedef std::future GetApgroupConfigProgressOutcomeCallable; typedef std::function&)> GetApgroupConfigProgressAsyncHandler; - typedef Outcome ListPortalTemplateOutcome; - typedef std::future ListPortalTemplateOutcomeCallable; - typedef std::function&)> ListPortalTemplateAsyncHandler; typedef Outcome AreaCreateOutcome; typedef std::future AreaCreateOutcomeCallable; typedef std::function&)> AreaCreateAsyncHandler; + typedef Outcome ListPortalTemplateOutcome; + typedef std::future ListPortalTemplateOutcomeCallable; + typedef std::function&)> ListPortalTemplateAsyncHandler; typedef Outcome QueryRenewPriceOutcome; typedef std::future QueryRenewPriceOutcomeCallable; typedef std::function&)> QueryRenewPriceAsyncHandler; typedef Outcome GetApgroupPortalConfigProgressOutcome; typedef std::future GetApgroupPortalConfigProgressOutcomeCallable; typedef std::function&)> GetApgroupPortalConfigProgressAsyncHandler; - typedef Outcome GetOssServerSignOutcome; - typedef std::future GetOssServerSignOutcomeCallable; - typedef std::function&)> GetOssServerSignAsyncHandler; typedef Outcome OemSitingContrastOutcome; typedef std::future OemSitingContrastOutcomeCallable; typedef std::function&)> OemSitingContrastAsyncHandler; + typedef Outcome GetOssServerSignOutcome; + typedef std::future GetOssServerSignOutcomeCallable; + typedef std::function&)> GetOssServerSignAsyncHandler; typedef Outcome BusinessInfoOutcome; typedef std::future BusinessInfoOutcomeCallable; typedef std::function&)> BusinessInfoAsyncHandler; @@ -854,12 +854,12 @@ namespace AlibabaCloud typedef Outcome OemHeatMapOutcome; typedef std::future OemHeatMapOutcomeCallable; typedef std::function&)> OemHeatMapAsyncHandler; - typedef Outcome ReleaseInstanceOutcome; - typedef std::future ReleaseInstanceOutcomeCallable; - typedef std::function&)> ReleaseInstanceAsyncHandler; typedef Outcome ReportRealtimeOutcome; typedef std::future ReportRealtimeOutcomeCallable; typedef std::function&)> ReportRealtimeAsyncHandler; + typedef Outcome ReleaseInstanceOutcome; + typedef std::future ReleaseInstanceOutcomeCallable; + typedef std::function&)> ReleaseInstanceAsyncHandler; typedef Outcome GetUmengPagePermission4RootOutcome; typedef std::future GetUmengPagePermission4RootOutcomeCallable; typedef std::function&)> GetUmengPagePermission4RootAsyncHandler; @@ -884,30 +884,30 @@ namespace AlibabaCloud typedef Outcome ListGroupApBriefConfigOutcome; typedef std::future ListGroupApBriefConfigOutcomeCallable; typedef std::function&)> ListGroupApBriefConfigAsyncHandler; - typedef Outcome BatchRegisterApAssetOutcome; - typedef std::future BatchRegisterApAssetOutcomeCallable; - typedef std::function&)> BatchRegisterApAssetAsyncHandler; typedef Outcome PutOssFileOutcome; typedef std::future PutOssFileOutcomeCallable; typedef std::function&)> PutOssFileAsyncHandler; - typedef Outcome SaveApScanConfigOutcome; - typedef std::future SaveApScanConfigOutcomeCallable; - typedef std::function&)> SaveApScanConfigAsyncHandler; + typedef Outcome BatchRegisterApAssetOutcome; + typedef std::future BatchRegisterApAssetOutcomeCallable; + typedef std::function&)> BatchRegisterApAssetAsyncHandler; typedef Outcome AreaDeleteOutcome; typedef std::future AreaDeleteOutcomeCallable; typedef std::function&)> AreaDeleteAsyncHandler; typedef Outcome GetGroupApRadioConfigTemplateOutcome; typedef std::future GetGroupApRadioConfigTemplateOutcomeCallable; typedef std::function&)> GetGroupApRadioConfigTemplateAsyncHandler; + typedef Outcome SaveApScanConfigOutcome; + typedef std::future SaveApScanConfigOutcomeCallable; + typedef std::function&)> SaveApScanConfigAsyncHandler; typedef Outcome HeadquartersToolsO2OOutcome; typedef std::future HeadquartersToolsO2OOutcomeCallable; typedef std::function&)> HeadquartersToolsO2OAsyncHandler; - typedef Outcome HeadquartersToolsCoincideOutcome; - typedef std::future HeadquartersToolsCoincideOutcomeCallable; - typedef std::function&)> HeadquartersToolsCoincideAsyncHandler; typedef Outcome ResumeInstanceOutcome; typedef std::future ResumeInstanceOutcomeCallable; typedef std::function&)> ResumeInstanceAsyncHandler; + typedef Outcome HeadquartersToolsCoincideOutcome; + typedef std::future HeadquartersToolsCoincideOutcomeCallable; + typedef std::function&)> HeadquartersToolsCoincideAsyncHandler; typedef Outcome ListApAssetOutcome; typedef std::future ListApAssetOutcomeCallable; typedef std::function&)> ListApAssetAsyncHandler; @@ -920,12 +920,12 @@ namespace AlibabaCloud typedef Outcome RepairGroupApOutcome; typedef std::future RepairGroupApOutcomeCallable; typedef std::function&)> RepairGroupApAsyncHandler; - typedef Outcome GetMapUrlOutcome; - typedef std::future GetMapUrlOutcomeCallable; - typedef std::function&)> GetMapUrlAsyncHandler; typedef Outcome GetUpgradeAPGroupProgressOutcome; typedef std::future GetUpgradeAPGroupProgressOutcomeCallable; typedef std::function&)> GetUpgradeAPGroupProgressAsyncHandler; + typedef Outcome GetMapUrlOutcome; + typedef std::future GetMapUrlOutcomeCallable; + typedef std::function&)> GetMapUrlAsyncHandler; typedef Outcome ShopGetfiltermacOutcome; typedef std::future ShopGetfiltermacOutcomeCallable; typedef std::function&)> ShopGetfiltermacAsyncHandler; @@ -968,15 +968,15 @@ namespace AlibabaCloud typedef Outcome GetApgroupDetailedConfigOutcome; typedef std::future GetApgroupDetailedConfigOutcomeCallable; typedef std::function&)> GetApgroupDetailedConfigAsyncHandler; + typedef Outcome ListStaStatusOutcome; + typedef std::future ListStaStatusOutcomeCallable; + typedef std::function&)> ListStaStatusAsyncHandler; typedef Outcome InnerRefundOutcome; typedef std::future InnerRefundOutcomeCallable; typedef std::function&)> InnerRefundAsyncHandler; typedef Outcome ProfileTradeOutcome; typedef std::future ProfileTradeOutcomeCallable; typedef std::function&)> ProfileTradeAsyncHandler; - typedef Outcome ListStaStatusOutcome; - typedef std::future ListStaStatusOutcomeCallable; - typedef std::function&)> ListStaStatusAsyncHandler; typedef Outcome DeviceUpdateOutcome; typedef std::future DeviceUpdateOutcomeCallable; typedef std::function&)> DeviceUpdateAsyncHandler; @@ -1019,12 +1019,12 @@ namespace AlibabaCloud typedef Outcome KickStaOutcome; typedef std::future KickStaOutcomeCallable; typedef std::function&)> KickStaAsyncHandler; - typedef Outcome ProfileConsumeOutcome; - typedef std::future ProfileConsumeOutcomeCallable; - typedef std::function&)> ProfileConsumeAsyncHandler; typedef Outcome DelApPositionOutcome; typedef std::future DelApPositionOutcomeCallable; typedef std::function&)> DelApPositionAsyncHandler; + typedef Outcome ProfileConsumeOutcome; + typedef std::future ProfileConsumeOutcomeCallable; + typedef std::function&)> ProfileConsumeAsyncHandler; typedef Outcome ShopInfoOutcome; typedef std::future ShopInfoOutcomeCallable; typedef std::function&)> ShopInfoAsyncHandler; @@ -1037,12 +1037,12 @@ namespace AlibabaCloud typedef Outcome SavePageConfigTemplateOutcome; typedef std::future SavePageConfigTemplateOutcomeCallable; typedef std::function&)> SavePageConfigTemplateAsyncHandler; - typedef Outcome ShopGroupUpdateOutcome; - typedef std::future ShopGroupUpdateOutcomeCallable; - typedef std::function&)> ShopGroupUpdateAsyncHandler; typedef Outcome SetUpgradeImgByModelOutcome; typedef std::future SetUpgradeImgByModelOutcomeCallable; typedef std::function&)> SetUpgradeImgByModelAsyncHandler; + typedef Outcome ShopGroupUpdateOutcome; + typedef std::future ShopGroupUpdateOutcomeCallable; + typedef std::function&)> ShopGroupUpdateAsyncHandler; typedef Outcome ShopGroupInfoOutcome; typedef std::future ShopGroupInfoOutcomeCallable; typedef std::function&)> ShopGroupInfoAsyncHandler; @@ -1064,12 +1064,12 @@ namespace AlibabaCloud typedef Outcome CheckUmengDataAnalysisPermissionOutcome; typedef std::future CheckUmengDataAnalysisPermissionOutcomeCallable; typedef std::function&)> CheckUmengDataAnalysisPermissionAsyncHandler; - typedef Outcome DeviceDeleteOutcome; - typedef std::future DeviceDeleteOutcomeCallable; - typedef std::function&)> DeviceDeleteAsyncHandler; typedef Outcome ReportDayOutcome; typedef std::future ReportDayOutcomeCallable; typedef std::function&)> ReportDayAsyncHandler; + typedef Outcome DeviceDeleteOutcome; + typedef std::future DeviceDeleteOutcomeCallable; + typedef std::function&)> DeviceDeleteAsyncHandler; typedef Outcome UpgradeAPGroupOutcome; typedef std::future UpgradeAPGroupOutcomeCallable; typedef std::function&)> UpgradeAPGroupAsyncHandler; @@ -1091,24 +1091,24 @@ namespace AlibabaCloud typedef Outcome InnerProduceCloudWFOutcome; typedef std::future InnerProduceCloudWFOutcomeCallable; typedef std::function&)> InnerProduceCloudWFAsyncHandler; - typedef Outcome UpLoadMapOutcome; - typedef std::future UpLoadMapOutcomeCallable; - typedef std::function&)> UpLoadMapAsyncHandler; typedef Outcome SavePortalConfigOutcome; typedef std::future SavePortalConfigOutcomeCallable; typedef std::function&)> SavePortalConfigAsyncHandler; + typedef Outcome UpLoadMapOutcome; + typedef std::future UpLoadMapOutcomeCallable; + typedef std::function&)> UpLoadMapAsyncHandler; typedef Outcome BatchSaveApPositionOutcome; typedef std::future BatchSaveApPositionOutcomeCallable; typedef std::function&)> BatchSaveApPositionAsyncHandler; typedef Outcome SaveApgroupScanConfigOutcome; typedef std::future SaveApgroupScanConfigOutcomeCallable; typedef std::function&)> SaveApgroupScanConfigAsyncHandler; - typedef Outcome GetApStaMiscAggOutcome; - typedef std::future GetApStaMiscAggOutcomeCallable; - typedef std::function&)> GetApStaMiscAggAsyncHandler; typedef Outcome AliyunRegisterApAssetOutcome; typedef std::future AliyunRegisterApAssetOutcomeCallable; typedef std::function&)> AliyunRegisterApAssetAsyncHandler; + typedef Outcome GetApStaMiscAggOutcome; + typedef std::future GetApStaMiscAggOutcomeCallable; + typedef std::function&)> GetApStaMiscAggAsyncHandler; typedef Outcome UserAnalyseOutcome; typedef std::future UserAnalyseOutcomeCallable; typedef std::function&)> UserAnalyseAsyncHandler; @@ -1121,12 +1121,12 @@ namespace AlibabaCloud typedef Outcome GetStaRunHistoryTimeSerOutcome; typedef std::future GetStaRunHistoryTimeSerOutcomeCallable; typedef std::function&)> GetStaRunHistoryTimeSerAsyncHandler; - typedef Outcome GetUpgradeAPProgressOutcome; - typedef std::future GetUpgradeAPProgressOutcomeCallable; - typedef std::function&)> GetUpgradeAPProgressAsyncHandler; typedef Outcome GroupIntimeOutcome; typedef std::future GroupIntimeOutcomeCallable; typedef std::function&)> GroupIntimeAsyncHandler; + typedef Outcome GetUpgradeAPProgressOutcome; + typedef std::future GetUpgradeAPProgressOutcomeCallable; + typedef std::function&)> GetUpgradeAPProgressAsyncHandler; typedef Outcome ShopDeletemarketingOutcome; typedef std::future ShopDeletemarketingOutcomeCallable; typedef std::function&)> ShopDeletemarketingAsyncHandler; @@ -1145,12 +1145,12 @@ namespace AlibabaCloud typedef Outcome GetAccountConfigOutcome; typedef std::future GetAccountConfigOutcomeCallable; typedef std::function&)> GetAccountConfigAsyncHandler; - typedef Outcome GetAddApsProgressOutcome; - typedef std::future GetAddApsProgressOutcomeCallable; - typedef std::function&)> GetAddApsProgressAsyncHandler; typedef Outcome ProfileDistrictOutcome; typedef std::future ProfileDistrictOutcomeCallable; typedef std::function&)> ProfileDistrictAsyncHandler; + typedef Outcome GetAddApsProgressOutcome; + typedef std::future GetAddApsProgressOutcomeCallable; + typedef std::function&)> GetAddApsProgressAsyncHandler; CloudwfClient(const Credentials &credentials, const ClientConfiguration &configuration); CloudwfClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -1183,12 +1183,12 @@ namespace AlibabaCloud ShopOverviewOutcome shopOverview(const Model::ShopOverviewRequest &request)const; void shopOverviewAsync(const Model::ShopOverviewRequest& request, const ShopOverviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ShopOverviewOutcomeCallable shopOverviewCallable(const Model::ShopOverviewRequest& request) const; - ModifySubAccountPermissionOutcome modifySubAccountPermission(const Model::ModifySubAccountPermissionRequest &request)const; - void modifySubAccountPermissionAsync(const Model::ModifySubAccountPermissionRequest& request, const ModifySubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySubAccountPermissionOutcomeCallable modifySubAccountPermissionCallable(const Model::ModifySubAccountPermissionRequest& request) const; SaveUmengPagePermission4RootOutcome saveUmengPagePermission4Root(const Model::SaveUmengPagePermission4RootRequest &request)const; void saveUmengPagePermission4RootAsync(const Model::SaveUmengPagePermission4RootRequest& request, const SaveUmengPagePermission4RootAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveUmengPagePermission4RootOutcomeCallable saveUmengPagePermission4RootCallable(const Model::SaveUmengPagePermission4RootRequest& request) const; + ModifySubAccountPermissionOutcome modifySubAccountPermission(const Model::ModifySubAccountPermissionRequest &request)const; + void modifySubAccountPermissionAsync(const Model::ModifySubAccountPermissionRequest& request, const ModifySubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySubAccountPermissionOutcomeCallable modifySubAccountPermissionCallable(const Model::ModifySubAccountPermissionRequest& request) const; FrequencyAnalyseOutcome frequencyAnalyse(const Model::FrequencyAnalyseRequest &request)const; void frequencyAnalyseAsync(const Model::FrequencyAnalyseRequest& request, const FrequencyAnalyseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FrequencyAnalyseOutcomeCallable frequencyAnalyseCallable(const Model::FrequencyAnalyseRequest& request) const; @@ -1309,24 +1309,24 @@ namespace AlibabaCloud GetSubAccountStatusOutcome getSubAccountStatus(const Model::GetSubAccountStatusRequest &request)const; void getSubAccountStatusAsync(const Model::GetSubAccountStatusRequest& request, const GetSubAccountStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSubAccountStatusOutcomeCallable getSubAccountStatusCallable(const Model::GetSubAccountStatusRequest& request) const; - GetSendCommandByMacProgressOutcome getSendCommandByMacProgress(const Model::GetSendCommandByMacProgressRequest &request)const; - void getSendCommandByMacProgressAsync(const Model::GetSendCommandByMacProgressRequest& request, const GetSendCommandByMacProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSendCommandByMacProgressOutcomeCallable getSendCommandByMacProgressCallable(const Model::GetSendCommandByMacProgressRequest& request) const; HeadquartersTrendOutcome headquartersTrend(const Model::HeadquartersTrendRequest &request)const; void headquartersTrendAsync(const Model::HeadquartersTrendRequest& request, const HeadquartersTrendAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; HeadquartersTrendOutcomeCallable headquartersTrendCallable(const Model::HeadquartersTrendRequest& request) const; + GetSendCommandByMacProgressOutcome getSendCommandByMacProgress(const Model::GetSendCommandByMacProgressRequest &request)const; + void getSendCommandByMacProgressAsync(const Model::GetSendCommandByMacProgressRequest& request, const GetSendCommandByMacProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSendCommandByMacProgressOutcomeCallable getSendCommandByMacProgressCallable(const Model::GetSendCommandByMacProgressRequest& request) const; UserDataCreateOutcome userDataCreate(const Model::UserDataCreateRequest &request)const; void userDataCreateAsync(const Model::UserDataCreateRequest& request, const UserDataCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UserDataCreateOutcomeCallable userDataCreateCallable(const Model::UserDataCreateRequest& request) const; ListApStatusOutcome listApStatus(const Model::ListApStatusRequest &request)const; void listApStatusAsync(const Model::ListApStatusRequest& request, const ListApStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListApStatusOutcomeCallable listApStatusCallable(const Model::ListApStatusRequest& request) const; - ListProbeinfoOutcome listProbeinfo(const Model::ListProbeinfoRequest &request)const; - void listProbeinfoAsync(const Model::ListProbeinfoRequest& request, const ListProbeinfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListProbeinfoOutcomeCallable listProbeinfoCallable(const Model::ListProbeinfoRequest& request) const; AreaInfoOutcome areaInfo(const Model::AreaInfoRequest &request)const; void areaInfoAsync(const Model::AreaInfoRequest& request, const AreaInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AreaInfoOutcomeCallable areaInfoCallable(const Model::AreaInfoRequest& request) const; + ListProbeinfoOutcome listProbeinfo(const Model::ListProbeinfoRequest &request)const; + void listProbeinfoAsync(const Model::ListProbeinfoRequest& request, const ListProbeinfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProbeinfoOutcomeCallable listProbeinfoCallable(const Model::ListProbeinfoRequest& request) const; GetAllActiveShopByGroupOutcome getAllActiveShopByGroup(const Model::GetAllActiveShopByGroupRequest &request)const; void getAllActiveShopByGroupAsync(const Model::GetAllActiveShopByGroupRequest& request, const GetAllActiveShopByGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAllActiveShopByGroupOutcomeCallable getAllActiveShopByGroupCallable(const Model::GetAllActiveShopByGroupRequest& request) const; @@ -1408,12 +1408,12 @@ namespace AlibabaCloud DeletePositionMapOutcome deletePositionMap(const Model::DeletePositionMapRequest &request)const; void deletePositionMapAsync(const Model::DeletePositionMapRequest& request, const DeletePositionMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePositionMapOutcomeCallable deletePositionMapCallable(const Model::DeletePositionMapRequest& request) const; - SetScanModeOutcome setScanMode(const Model::SetScanModeRequest &request)const; - void setScanModeAsync(const Model::SetScanModeRequest& request, const SetScanModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetScanModeOutcomeCallable setScanModeCallable(const Model::SetScanModeRequest& request) const; UpgradeAPOutcome upgradeAP(const Model::UpgradeAPRequest &request)const; void upgradeAPAsync(const Model::UpgradeAPRequest& request, const UpgradeAPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeAPOutcomeCallable upgradeAPCallable(const Model::UpgradeAPRequest& request) const; + SetScanModeOutcome setScanMode(const Model::SetScanModeRequest &request)const; + void setScanModeAsync(const Model::SetScanModeRequest& request, const SetScanModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetScanModeOutcomeCallable setScanModeCallable(const Model::SetScanModeRequest& request) const; ListUpgradeImgOutcome listUpgradeImg(const Model::ListUpgradeImgRequest &request)const; void listUpgradeImgAsync(const Model::ListUpgradeImgRequest& request, const ListUpgradeImgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUpgradeImgOutcomeCallable listUpgradeImgCallable(const Model::ListUpgradeImgRequest& request) const; @@ -1423,12 +1423,12 @@ namespace AlibabaCloud ApgroupBatchDeleteApOutcome apgroupBatchDeleteAp(const Model::ApgroupBatchDeleteApRequest &request)const; void apgroupBatchDeleteApAsync(const Model::ApgroupBatchDeleteApRequest& request, const ApgroupBatchDeleteApAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApgroupBatchDeleteApOutcomeCallable apgroupBatchDeleteApCallable(const Model::ApgroupBatchDeleteApRequest& request) const; - ShopMarketingListOutcome shopMarketingList(const Model::ShopMarketingListRequest &request)const; - void shopMarketingListAsync(const Model::ShopMarketingListRequest& request, const ShopMarketingListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ShopMarketingListOutcomeCallable shopMarketingListCallable(const Model::ShopMarketingListRequest& request) const; ProfileHistoryOutcome profileHistory(const Model::ProfileHistoryRequest &request)const; void profileHistoryAsync(const Model::ProfileHistoryRequest& request, const ProfileHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ProfileHistoryOutcomeCallable profileHistoryCallable(const Model::ProfileHistoryRequest& request) const; + ShopMarketingListOutcome shopMarketingList(const Model::ShopMarketingListRequest &request)const; + void shopMarketingListAsync(const Model::ShopMarketingListRequest& request, const ShopMarketingListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ShopMarketingListOutcomeCallable shopMarketingListCallable(const Model::ShopMarketingListRequest& request) const; ListApPositionOutcome listApPosition(const Model::ListApPositionRequest &request)const; void listApPositionAsync(const Model::ListApPositionRequest& request, const ListApPositionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListApPositionOutcomeCallable listApPositionCallable(const Model::ListApPositionRequest& request) const; @@ -1444,45 +1444,45 @@ namespace AlibabaCloud SaveApgroupSsidConfigOutcome saveApgroupSsidConfig(const Model::SaveApgroupSsidConfigRequest &request)const; void saveApgroupSsidConfigAsync(const Model::SaveApgroupSsidConfigRequest& request, const SaveApgroupSsidConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveApgroupSsidConfigOutcomeCallable saveApgroupSsidConfigCallable(const Model::SaveApgroupSsidConfigRequest& request) const; - OemMarketingSettingDataOutcome oemMarketingSettingData(const Model::OemMarketingSettingDataRequest &request)const; - void oemMarketingSettingDataAsync(const Model::OemMarketingSettingDataRequest& request, const OemMarketingSettingDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OemMarketingSettingDataOutcomeCallable oemMarketingSettingDataCallable(const Model::OemMarketingSettingDataRequest& request) const; InnerCheckOrderOutcome innerCheckOrder(const Model::InnerCheckOrderRequest &request)const; void innerCheckOrderAsync(const Model::InnerCheckOrderRequest& request, const InnerCheckOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InnerCheckOrderOutcomeCallable innerCheckOrderCallable(const Model::InnerCheckOrderRequest& request) const; + OemMarketingSettingDataOutcome oemMarketingSettingData(const Model::OemMarketingSettingDataRequest &request)const; + void oemMarketingSettingDataAsync(const Model::OemMarketingSettingDataRequest& request, const OemMarketingSettingDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OemMarketingSettingDataOutcomeCallable oemMarketingSettingDataCallable(const Model::OemMarketingSettingDataRequest& request) const; GetOnlineStaTimeSerOutcome getOnlineStaTimeSer(const Model::GetOnlineStaTimeSerRequest &request)const; void getOnlineStaTimeSerAsync(const Model::GetOnlineStaTimeSerRequest& request, const GetOnlineStaTimeSerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetOnlineStaTimeSerOutcomeCallable getOnlineStaTimeSerCallable(const Model::GetOnlineStaTimeSerRequest& request) const; - ListSubAccountPermissionOutcome listSubAccountPermission(const Model::ListSubAccountPermissionRequest &request)const; - void listSubAccountPermissionAsync(const Model::ListSubAccountPermissionRequest& request, const ListSubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSubAccountPermissionOutcomeCallable listSubAccountPermissionCallable(const Model::ListSubAccountPermissionRequest& request) const; ListStaOnoffLogOutcome listStaOnoffLog(const Model::ListStaOnoffLogRequest &request)const; void listStaOnoffLogAsync(const Model::ListStaOnoffLogRequest& request, const ListStaOnoffLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListStaOnoffLogOutcomeCallable listStaOnoffLogCallable(const Model::ListStaOnoffLogRequest& request) const; + ListSubAccountPermissionOutcome listSubAccountPermission(const Model::ListSubAccountPermissionRequest &request)const; + void listSubAccountPermissionAsync(const Model::ListSubAccountPermissionRequest& request, const ListSubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSubAccountPermissionOutcomeCallable listSubAccountPermissionCallable(const Model::ListSubAccountPermissionRequest& request) const; HeadquartersOverviewOutcome headquartersOverview(const Model::HeadquartersOverviewRequest &request)const; void headquartersOverviewAsync(const Model::HeadquartersOverviewRequest& request, const HeadquartersOverviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; HeadquartersOverviewOutcomeCallable headquartersOverviewCallable(const Model::HeadquartersOverviewRequest& request) const; GetApgroupConfigProgressOutcome getApgroupConfigProgress(const Model::GetApgroupConfigProgressRequest &request)const; void getApgroupConfigProgressAsync(const Model::GetApgroupConfigProgressRequest& request, const GetApgroupConfigProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetApgroupConfigProgressOutcomeCallable getApgroupConfigProgressCallable(const Model::GetApgroupConfigProgressRequest& request) const; - ListPortalTemplateOutcome listPortalTemplate(const Model::ListPortalTemplateRequest &request)const; - void listPortalTemplateAsync(const Model::ListPortalTemplateRequest& request, const ListPortalTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPortalTemplateOutcomeCallable listPortalTemplateCallable(const Model::ListPortalTemplateRequest& request) const; AreaCreateOutcome areaCreate(const Model::AreaCreateRequest &request)const; void areaCreateAsync(const Model::AreaCreateRequest& request, const AreaCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AreaCreateOutcomeCallable areaCreateCallable(const Model::AreaCreateRequest& request) const; + ListPortalTemplateOutcome listPortalTemplate(const Model::ListPortalTemplateRequest &request)const; + void listPortalTemplateAsync(const Model::ListPortalTemplateRequest& request, const ListPortalTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPortalTemplateOutcomeCallable listPortalTemplateCallable(const Model::ListPortalTemplateRequest& request) const; QueryRenewPriceOutcome queryRenewPrice(const Model::QueryRenewPriceRequest &request)const; void queryRenewPriceAsync(const Model::QueryRenewPriceRequest& request, const QueryRenewPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryRenewPriceOutcomeCallable queryRenewPriceCallable(const Model::QueryRenewPriceRequest& request) const; GetApgroupPortalConfigProgressOutcome getApgroupPortalConfigProgress(const Model::GetApgroupPortalConfigProgressRequest &request)const; void getApgroupPortalConfigProgressAsync(const Model::GetApgroupPortalConfigProgressRequest& request, const GetApgroupPortalConfigProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetApgroupPortalConfigProgressOutcomeCallable getApgroupPortalConfigProgressCallable(const Model::GetApgroupPortalConfigProgressRequest& request) const; - GetOssServerSignOutcome getOssServerSign(const Model::GetOssServerSignRequest &request)const; - void getOssServerSignAsync(const Model::GetOssServerSignRequest& request, const GetOssServerSignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOssServerSignOutcomeCallable getOssServerSignCallable(const Model::GetOssServerSignRequest& request) const; OemSitingContrastOutcome oemSitingContrast(const Model::OemSitingContrastRequest &request)const; void oemSitingContrastAsync(const Model::OemSitingContrastRequest& request, const OemSitingContrastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OemSitingContrastOutcomeCallable oemSitingContrastCallable(const Model::OemSitingContrastRequest& request) const; + GetOssServerSignOutcome getOssServerSign(const Model::GetOssServerSignRequest &request)const; + void getOssServerSignAsync(const Model::GetOssServerSignRequest& request, const GetOssServerSignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOssServerSignOutcomeCallable getOssServerSignCallable(const Model::GetOssServerSignRequest& request) const; BusinessInfoOutcome businessInfo(const Model::BusinessInfoRequest &request)const; void businessInfoAsync(const Model::BusinessInfoRequest& request, const BusinessInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BusinessInfoOutcomeCallable businessInfoCallable(const Model::BusinessInfoRequest& request) const; @@ -1531,12 +1531,12 @@ namespace AlibabaCloud OemHeatMapOutcome oemHeatMap(const Model::OemHeatMapRequest &request)const; void oemHeatMapAsync(const Model::OemHeatMapRequest& request, const OemHeatMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OemHeatMapOutcomeCallable oemHeatMapCallable(const Model::OemHeatMapRequest& request) const; - ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const; - void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const; ReportRealtimeOutcome reportRealtime(const Model::ReportRealtimeRequest &request)const; void reportRealtimeAsync(const Model::ReportRealtimeRequest& request, const ReportRealtimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReportRealtimeOutcomeCallable reportRealtimeCallable(const Model::ReportRealtimeRequest& request) const; + ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const; + void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const; GetUmengPagePermission4RootOutcome getUmengPagePermission4Root(const Model::GetUmengPagePermission4RootRequest &request)const; void getUmengPagePermission4RootAsync(const Model::GetUmengPagePermission4RootRequest& request, const GetUmengPagePermission4RootAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUmengPagePermission4RootOutcomeCallable getUmengPagePermission4RootCallable(const Model::GetUmengPagePermission4RootRequest& request) const; @@ -1561,30 +1561,30 @@ namespace AlibabaCloud ListGroupApBriefConfigOutcome listGroupApBriefConfig(const Model::ListGroupApBriefConfigRequest &request)const; void listGroupApBriefConfigAsync(const Model::ListGroupApBriefConfigRequest& request, const ListGroupApBriefConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGroupApBriefConfigOutcomeCallable listGroupApBriefConfigCallable(const Model::ListGroupApBriefConfigRequest& request) const; - BatchRegisterApAssetOutcome batchRegisterApAsset(const Model::BatchRegisterApAssetRequest &request)const; - void batchRegisterApAssetAsync(const Model::BatchRegisterApAssetRequest& request, const BatchRegisterApAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BatchRegisterApAssetOutcomeCallable batchRegisterApAssetCallable(const Model::BatchRegisterApAssetRequest& request) const; PutOssFileOutcome putOssFile(const Model::PutOssFileRequest &request)const; void putOssFileAsync(const Model::PutOssFileRequest& request, const PutOssFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PutOssFileOutcomeCallable putOssFileCallable(const Model::PutOssFileRequest& request) const; - SaveApScanConfigOutcome saveApScanConfig(const Model::SaveApScanConfigRequest &request)const; - void saveApScanConfigAsync(const Model::SaveApScanConfigRequest& request, const SaveApScanConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveApScanConfigOutcomeCallable saveApScanConfigCallable(const Model::SaveApScanConfigRequest& request) const; + BatchRegisterApAssetOutcome batchRegisterApAsset(const Model::BatchRegisterApAssetRequest &request)const; + void batchRegisterApAssetAsync(const Model::BatchRegisterApAssetRequest& request, const BatchRegisterApAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchRegisterApAssetOutcomeCallable batchRegisterApAssetCallable(const Model::BatchRegisterApAssetRequest& request) const; AreaDeleteOutcome areaDelete(const Model::AreaDeleteRequest &request)const; void areaDeleteAsync(const Model::AreaDeleteRequest& request, const AreaDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AreaDeleteOutcomeCallable areaDeleteCallable(const Model::AreaDeleteRequest& request) const; GetGroupApRadioConfigTemplateOutcome getGroupApRadioConfigTemplate(const Model::GetGroupApRadioConfigTemplateRequest &request)const; void getGroupApRadioConfigTemplateAsync(const Model::GetGroupApRadioConfigTemplateRequest& request, const GetGroupApRadioConfigTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetGroupApRadioConfigTemplateOutcomeCallable getGroupApRadioConfigTemplateCallable(const Model::GetGroupApRadioConfigTemplateRequest& request) const; + SaveApScanConfigOutcome saveApScanConfig(const Model::SaveApScanConfigRequest &request)const; + void saveApScanConfigAsync(const Model::SaveApScanConfigRequest& request, const SaveApScanConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveApScanConfigOutcomeCallable saveApScanConfigCallable(const Model::SaveApScanConfigRequest& request) const; HeadquartersToolsO2OOutcome headquartersToolsO2O(const Model::HeadquartersToolsO2ORequest &request)const; void headquartersToolsO2OAsync(const Model::HeadquartersToolsO2ORequest& request, const HeadquartersToolsO2OAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; HeadquartersToolsO2OOutcomeCallable headquartersToolsO2OCallable(const Model::HeadquartersToolsO2ORequest& request) const; - HeadquartersToolsCoincideOutcome headquartersToolsCoincide(const Model::HeadquartersToolsCoincideRequest &request)const; - void headquartersToolsCoincideAsync(const Model::HeadquartersToolsCoincideRequest& request, const HeadquartersToolsCoincideAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - HeadquartersToolsCoincideOutcomeCallable headquartersToolsCoincideCallable(const Model::HeadquartersToolsCoincideRequest& request) const; ResumeInstanceOutcome resumeInstance(const Model::ResumeInstanceRequest &request)const; void resumeInstanceAsync(const Model::ResumeInstanceRequest& request, const ResumeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResumeInstanceOutcomeCallable resumeInstanceCallable(const Model::ResumeInstanceRequest& request) const; + HeadquartersToolsCoincideOutcome headquartersToolsCoincide(const Model::HeadquartersToolsCoincideRequest &request)const; + void headquartersToolsCoincideAsync(const Model::HeadquartersToolsCoincideRequest& request, const HeadquartersToolsCoincideAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + HeadquartersToolsCoincideOutcomeCallable headquartersToolsCoincideCallable(const Model::HeadquartersToolsCoincideRequest& request) const; ListApAssetOutcome listApAsset(const Model::ListApAssetRequest &request)const; void listApAssetAsync(const Model::ListApAssetRequest& request, const ListApAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListApAssetOutcomeCallable listApAssetCallable(const Model::ListApAssetRequest& request) const; @@ -1597,12 +1597,12 @@ namespace AlibabaCloud RepairGroupApOutcome repairGroupAp(const Model::RepairGroupApRequest &request)const; void repairGroupApAsync(const Model::RepairGroupApRequest& request, const RepairGroupApAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RepairGroupApOutcomeCallable repairGroupApCallable(const Model::RepairGroupApRequest& request) const; - GetMapUrlOutcome getMapUrl(const Model::GetMapUrlRequest &request)const; - void getMapUrlAsync(const Model::GetMapUrlRequest& request, const GetMapUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetMapUrlOutcomeCallable getMapUrlCallable(const Model::GetMapUrlRequest& request) const; GetUpgradeAPGroupProgressOutcome getUpgradeAPGroupProgress(const Model::GetUpgradeAPGroupProgressRequest &request)const; void getUpgradeAPGroupProgressAsync(const Model::GetUpgradeAPGroupProgressRequest& request, const GetUpgradeAPGroupProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUpgradeAPGroupProgressOutcomeCallable getUpgradeAPGroupProgressCallable(const Model::GetUpgradeAPGroupProgressRequest& request) const; + GetMapUrlOutcome getMapUrl(const Model::GetMapUrlRequest &request)const; + void getMapUrlAsync(const Model::GetMapUrlRequest& request, const GetMapUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMapUrlOutcomeCallable getMapUrlCallable(const Model::GetMapUrlRequest& request) const; ShopGetfiltermacOutcome shopGetfiltermac(const Model::ShopGetfiltermacRequest &request)const; void shopGetfiltermacAsync(const Model::ShopGetfiltermacRequest& request, const ShopGetfiltermacAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ShopGetfiltermacOutcomeCallable shopGetfiltermacCallable(const Model::ShopGetfiltermacRequest& request) const; @@ -1645,15 +1645,15 @@ namespace AlibabaCloud GetApgroupDetailedConfigOutcome getApgroupDetailedConfig(const Model::GetApgroupDetailedConfigRequest &request)const; void getApgroupDetailedConfigAsync(const Model::GetApgroupDetailedConfigRequest& request, const GetApgroupDetailedConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetApgroupDetailedConfigOutcomeCallable getApgroupDetailedConfigCallable(const Model::GetApgroupDetailedConfigRequest& request) const; + ListStaStatusOutcome listStaStatus(const Model::ListStaStatusRequest &request)const; + void listStaStatusAsync(const Model::ListStaStatusRequest& request, const ListStaStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStaStatusOutcomeCallable listStaStatusCallable(const Model::ListStaStatusRequest& request) const; InnerRefundOutcome innerRefund(const Model::InnerRefundRequest &request)const; void innerRefundAsync(const Model::InnerRefundRequest& request, const InnerRefundAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InnerRefundOutcomeCallable innerRefundCallable(const Model::InnerRefundRequest& request) const; ProfileTradeOutcome profileTrade(const Model::ProfileTradeRequest &request)const; void profileTradeAsync(const Model::ProfileTradeRequest& request, const ProfileTradeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ProfileTradeOutcomeCallable profileTradeCallable(const Model::ProfileTradeRequest& request) const; - ListStaStatusOutcome listStaStatus(const Model::ListStaStatusRequest &request)const; - void listStaStatusAsync(const Model::ListStaStatusRequest& request, const ListStaStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListStaStatusOutcomeCallable listStaStatusCallable(const Model::ListStaStatusRequest& request) const; DeviceUpdateOutcome deviceUpdate(const Model::DeviceUpdateRequest &request)const; void deviceUpdateAsync(const Model::DeviceUpdateRequest& request, const DeviceUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeviceUpdateOutcomeCallable deviceUpdateCallable(const Model::DeviceUpdateRequest& request) const; @@ -1696,12 +1696,12 @@ namespace AlibabaCloud KickStaOutcome kickSta(const Model::KickStaRequest &request)const; void kickStaAsync(const Model::KickStaRequest& request, const KickStaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; KickStaOutcomeCallable kickStaCallable(const Model::KickStaRequest& request) const; - ProfileConsumeOutcome profileConsume(const Model::ProfileConsumeRequest &request)const; - void profileConsumeAsync(const Model::ProfileConsumeRequest& request, const ProfileConsumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ProfileConsumeOutcomeCallable profileConsumeCallable(const Model::ProfileConsumeRequest& request) const; DelApPositionOutcome delApPosition(const Model::DelApPositionRequest &request)const; void delApPositionAsync(const Model::DelApPositionRequest& request, const DelApPositionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DelApPositionOutcomeCallable delApPositionCallable(const Model::DelApPositionRequest& request) const; + ProfileConsumeOutcome profileConsume(const Model::ProfileConsumeRequest &request)const; + void profileConsumeAsync(const Model::ProfileConsumeRequest& request, const ProfileConsumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ProfileConsumeOutcomeCallable profileConsumeCallable(const Model::ProfileConsumeRequest& request) const; ShopInfoOutcome shopInfo(const Model::ShopInfoRequest &request)const; void shopInfoAsync(const Model::ShopInfoRequest& request, const ShopInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ShopInfoOutcomeCallable shopInfoCallable(const Model::ShopInfoRequest& request) const; @@ -1714,12 +1714,12 @@ namespace AlibabaCloud SavePageConfigTemplateOutcome savePageConfigTemplate(const Model::SavePageConfigTemplateRequest &request)const; void savePageConfigTemplateAsync(const Model::SavePageConfigTemplateRequest& request, const SavePageConfigTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SavePageConfigTemplateOutcomeCallable savePageConfigTemplateCallable(const Model::SavePageConfigTemplateRequest& request) const; - ShopGroupUpdateOutcome shopGroupUpdate(const Model::ShopGroupUpdateRequest &request)const; - void shopGroupUpdateAsync(const Model::ShopGroupUpdateRequest& request, const ShopGroupUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ShopGroupUpdateOutcomeCallable shopGroupUpdateCallable(const Model::ShopGroupUpdateRequest& request) const; SetUpgradeImgByModelOutcome setUpgradeImgByModel(const Model::SetUpgradeImgByModelRequest &request)const; void setUpgradeImgByModelAsync(const Model::SetUpgradeImgByModelRequest& request, const SetUpgradeImgByModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetUpgradeImgByModelOutcomeCallable setUpgradeImgByModelCallable(const Model::SetUpgradeImgByModelRequest& request) const; + ShopGroupUpdateOutcome shopGroupUpdate(const Model::ShopGroupUpdateRequest &request)const; + void shopGroupUpdateAsync(const Model::ShopGroupUpdateRequest& request, const ShopGroupUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ShopGroupUpdateOutcomeCallable shopGroupUpdateCallable(const Model::ShopGroupUpdateRequest& request) const; ShopGroupInfoOutcome shopGroupInfo(const Model::ShopGroupInfoRequest &request)const; void shopGroupInfoAsync(const Model::ShopGroupInfoRequest& request, const ShopGroupInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ShopGroupInfoOutcomeCallable shopGroupInfoCallable(const Model::ShopGroupInfoRequest& request) const; @@ -1741,12 +1741,12 @@ namespace AlibabaCloud CheckUmengDataAnalysisPermissionOutcome checkUmengDataAnalysisPermission(const Model::CheckUmengDataAnalysisPermissionRequest &request)const; void checkUmengDataAnalysisPermissionAsync(const Model::CheckUmengDataAnalysisPermissionRequest& request, const CheckUmengDataAnalysisPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckUmengDataAnalysisPermissionOutcomeCallable checkUmengDataAnalysisPermissionCallable(const Model::CheckUmengDataAnalysisPermissionRequest& request) const; - DeviceDeleteOutcome deviceDelete(const Model::DeviceDeleteRequest &request)const; - void deviceDeleteAsync(const Model::DeviceDeleteRequest& request, const DeviceDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeviceDeleteOutcomeCallable deviceDeleteCallable(const Model::DeviceDeleteRequest& request) const; ReportDayOutcome reportDay(const Model::ReportDayRequest &request)const; void reportDayAsync(const Model::ReportDayRequest& request, const ReportDayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReportDayOutcomeCallable reportDayCallable(const Model::ReportDayRequest& request) const; + DeviceDeleteOutcome deviceDelete(const Model::DeviceDeleteRequest &request)const; + void deviceDeleteAsync(const Model::DeviceDeleteRequest& request, const DeviceDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeviceDeleteOutcomeCallable deviceDeleteCallable(const Model::DeviceDeleteRequest& request) const; UpgradeAPGroupOutcome upgradeAPGroup(const Model::UpgradeAPGroupRequest &request)const; void upgradeAPGroupAsync(const Model::UpgradeAPGroupRequest& request, const UpgradeAPGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeAPGroupOutcomeCallable upgradeAPGroupCallable(const Model::UpgradeAPGroupRequest& request) const; @@ -1768,24 +1768,24 @@ namespace AlibabaCloud InnerProduceCloudWFOutcome innerProduceCloudWF(const Model::InnerProduceCloudWFRequest &request)const; void innerProduceCloudWFAsync(const Model::InnerProduceCloudWFRequest& request, const InnerProduceCloudWFAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InnerProduceCloudWFOutcomeCallable innerProduceCloudWFCallable(const Model::InnerProduceCloudWFRequest& request) const; - UpLoadMapOutcome upLoadMap(const Model::UpLoadMapRequest &request)const; - void upLoadMapAsync(const Model::UpLoadMapRequest& request, const UpLoadMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpLoadMapOutcomeCallable upLoadMapCallable(const Model::UpLoadMapRequest& request) const; SavePortalConfigOutcome savePortalConfig(const Model::SavePortalConfigRequest &request)const; void savePortalConfigAsync(const Model::SavePortalConfigRequest& request, const SavePortalConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SavePortalConfigOutcomeCallable savePortalConfigCallable(const Model::SavePortalConfigRequest& request) const; + UpLoadMapOutcome upLoadMap(const Model::UpLoadMapRequest &request)const; + void upLoadMapAsync(const Model::UpLoadMapRequest& request, const UpLoadMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpLoadMapOutcomeCallable upLoadMapCallable(const Model::UpLoadMapRequest& request) const; BatchSaveApPositionOutcome batchSaveApPosition(const Model::BatchSaveApPositionRequest &request)const; void batchSaveApPositionAsync(const Model::BatchSaveApPositionRequest& request, const BatchSaveApPositionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchSaveApPositionOutcomeCallable batchSaveApPositionCallable(const Model::BatchSaveApPositionRequest& request) const; SaveApgroupScanConfigOutcome saveApgroupScanConfig(const Model::SaveApgroupScanConfigRequest &request)const; void saveApgroupScanConfigAsync(const Model::SaveApgroupScanConfigRequest& request, const SaveApgroupScanConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveApgroupScanConfigOutcomeCallable saveApgroupScanConfigCallable(const Model::SaveApgroupScanConfigRequest& request) const; - GetApStaMiscAggOutcome getApStaMiscAgg(const Model::GetApStaMiscAggRequest &request)const; - void getApStaMiscAggAsync(const Model::GetApStaMiscAggRequest& request, const GetApStaMiscAggAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetApStaMiscAggOutcomeCallable getApStaMiscAggCallable(const Model::GetApStaMiscAggRequest& request) const; AliyunRegisterApAssetOutcome aliyunRegisterApAsset(const Model::AliyunRegisterApAssetRequest &request)const; void aliyunRegisterApAssetAsync(const Model::AliyunRegisterApAssetRequest& request, const AliyunRegisterApAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AliyunRegisterApAssetOutcomeCallable aliyunRegisterApAssetCallable(const Model::AliyunRegisterApAssetRequest& request) const; + GetApStaMiscAggOutcome getApStaMiscAgg(const Model::GetApStaMiscAggRequest &request)const; + void getApStaMiscAggAsync(const Model::GetApStaMiscAggRequest& request, const GetApStaMiscAggAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApStaMiscAggOutcomeCallable getApStaMiscAggCallable(const Model::GetApStaMiscAggRequest& request) const; UserAnalyseOutcome userAnalyse(const Model::UserAnalyseRequest &request)const; void userAnalyseAsync(const Model::UserAnalyseRequest& request, const UserAnalyseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UserAnalyseOutcomeCallable userAnalyseCallable(const Model::UserAnalyseRequest& request) const; @@ -1798,12 +1798,12 @@ namespace AlibabaCloud GetStaRunHistoryTimeSerOutcome getStaRunHistoryTimeSer(const Model::GetStaRunHistoryTimeSerRequest &request)const; void getStaRunHistoryTimeSerAsync(const Model::GetStaRunHistoryTimeSerRequest& request, const GetStaRunHistoryTimeSerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStaRunHistoryTimeSerOutcomeCallable getStaRunHistoryTimeSerCallable(const Model::GetStaRunHistoryTimeSerRequest& request) const; - GetUpgradeAPProgressOutcome getUpgradeAPProgress(const Model::GetUpgradeAPProgressRequest &request)const; - void getUpgradeAPProgressAsync(const Model::GetUpgradeAPProgressRequest& request, const GetUpgradeAPProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUpgradeAPProgressOutcomeCallable getUpgradeAPProgressCallable(const Model::GetUpgradeAPProgressRequest& request) const; GroupIntimeOutcome groupIntime(const Model::GroupIntimeRequest &request)const; void groupIntimeAsync(const Model::GroupIntimeRequest& request, const GroupIntimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GroupIntimeOutcomeCallable groupIntimeCallable(const Model::GroupIntimeRequest& request) const; + GetUpgradeAPProgressOutcome getUpgradeAPProgress(const Model::GetUpgradeAPProgressRequest &request)const; + void getUpgradeAPProgressAsync(const Model::GetUpgradeAPProgressRequest& request, const GetUpgradeAPProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUpgradeAPProgressOutcomeCallable getUpgradeAPProgressCallable(const Model::GetUpgradeAPProgressRequest& request) const; ShopDeletemarketingOutcome shopDeletemarketing(const Model::ShopDeletemarketingRequest &request)const; void shopDeletemarketingAsync(const Model::ShopDeletemarketingRequest& request, const ShopDeletemarketingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ShopDeletemarketingOutcomeCallable shopDeletemarketingCallable(const Model::ShopDeletemarketingRequest& request) const; @@ -1822,12 +1822,12 @@ namespace AlibabaCloud GetAccountConfigOutcome getAccountConfig(const Model::GetAccountConfigRequest &request)const; void getAccountConfigAsync(const Model::GetAccountConfigRequest& request, const GetAccountConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAccountConfigOutcomeCallable getAccountConfigCallable(const Model::GetAccountConfigRequest& request) const; - GetAddApsProgressOutcome getAddApsProgress(const Model::GetAddApsProgressRequest &request)const; - void getAddApsProgressAsync(const Model::GetAddApsProgressRequest& request, const GetAddApsProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAddApsProgressOutcomeCallable getAddApsProgressCallable(const Model::GetAddApsProgressRequest& request) const; ProfileDistrictOutcome profileDistrict(const Model::ProfileDistrictRequest &request)const; void profileDistrictAsync(const Model::ProfileDistrictRequest& request, const ProfileDistrictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ProfileDistrictOutcomeCallable profileDistrictCallable(const Model::ProfileDistrictRequest& request) const; + GetAddApsProgressOutcome getAddApsProgress(const Model::GetAddApsProgressRequest &request)const; + void getAddApsProgressAsync(const Model::GetAddApsProgressRequest& request, const GetAddApsProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAddApsProgressOutcomeCallable getAddApsProgressCallable(const Model::GetAddApsProgressRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/cloudwf/src/CloudwfClient.cc b/cloudwf/src/CloudwfClient.cc index 5aed875da..92e5a2fbc 100644 --- a/cloudwf/src/CloudwfClient.cc +++ b/cloudwf/src/CloudwfClient.cc @@ -375,42 +375,6 @@ CloudwfClient::ShopOverviewOutcomeCallable CloudwfClient::shopOverviewCallable(c return task->get_future(); } -CloudwfClient::ModifySubAccountPermissionOutcome CloudwfClient::modifySubAccountPermission(const ModifySubAccountPermissionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySubAccountPermissionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySubAccountPermissionOutcome(ModifySubAccountPermissionResult(outcome.result())); - else - return ModifySubAccountPermissionOutcome(outcome.error()); -} - -void CloudwfClient::modifySubAccountPermissionAsync(const ModifySubAccountPermissionRequest& request, const ModifySubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySubAccountPermission(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ModifySubAccountPermissionOutcomeCallable CloudwfClient::modifySubAccountPermissionCallable(const ModifySubAccountPermissionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySubAccountPermission(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::SaveUmengPagePermission4RootOutcome CloudwfClient::saveUmengPagePermission4Root(const SaveUmengPagePermission4RootRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +411,42 @@ CloudwfClient::SaveUmengPagePermission4RootOutcomeCallable CloudwfClient::saveUm return task->get_future(); } +CloudwfClient::ModifySubAccountPermissionOutcome CloudwfClient::modifySubAccountPermission(const ModifySubAccountPermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySubAccountPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySubAccountPermissionOutcome(ModifySubAccountPermissionResult(outcome.result())); + else + return ModifySubAccountPermissionOutcome(outcome.error()); +} + +void CloudwfClient::modifySubAccountPermissionAsync(const ModifySubAccountPermissionRequest& request, const ModifySubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySubAccountPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ModifySubAccountPermissionOutcomeCallable CloudwfClient::modifySubAccountPermissionCallable(const ModifySubAccountPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySubAccountPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::FrequencyAnalyseOutcome CloudwfClient::frequencyAnalyse(const FrequencyAnalyseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,42 +1887,6 @@ CloudwfClient::GetSubAccountStatusOutcomeCallable CloudwfClient::getSubAccountSt return task->get_future(); } -CloudwfClient::GetSendCommandByMacProgressOutcome CloudwfClient::getSendCommandByMacProgress(const GetSendCommandByMacProgressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSendCommandByMacProgressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSendCommandByMacProgressOutcome(GetSendCommandByMacProgressResult(outcome.result())); - else - return GetSendCommandByMacProgressOutcome(outcome.error()); -} - -void CloudwfClient::getSendCommandByMacProgressAsync(const GetSendCommandByMacProgressRequest& request, const GetSendCommandByMacProgressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSendCommandByMacProgress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::GetSendCommandByMacProgressOutcomeCallable CloudwfClient::getSendCommandByMacProgressCallable(const GetSendCommandByMacProgressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSendCommandByMacProgress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::HeadquartersTrendOutcome CloudwfClient::headquartersTrend(const HeadquartersTrendRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,6 +1923,42 @@ CloudwfClient::HeadquartersTrendOutcomeCallable CloudwfClient::headquartersTrend return task->get_future(); } +CloudwfClient::GetSendCommandByMacProgressOutcome CloudwfClient::getSendCommandByMacProgress(const GetSendCommandByMacProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSendCommandByMacProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSendCommandByMacProgressOutcome(GetSendCommandByMacProgressResult(outcome.result())); + else + return GetSendCommandByMacProgressOutcome(outcome.error()); +} + +void CloudwfClient::getSendCommandByMacProgressAsync(const GetSendCommandByMacProgressRequest& request, const GetSendCommandByMacProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSendCommandByMacProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::GetSendCommandByMacProgressOutcomeCallable CloudwfClient::getSendCommandByMacProgressCallable(const GetSendCommandByMacProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSendCommandByMacProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::UserDataCreateOutcome CloudwfClient::userDataCreate(const UserDataCreateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,42 +2031,6 @@ CloudwfClient::ListApStatusOutcomeCallable CloudwfClient::listApStatusCallable(c return task->get_future(); } -CloudwfClient::ListProbeinfoOutcome CloudwfClient::listProbeinfo(const ListProbeinfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListProbeinfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListProbeinfoOutcome(ListProbeinfoResult(outcome.result())); - else - return ListProbeinfoOutcome(outcome.error()); -} - -void CloudwfClient::listProbeinfoAsync(const ListProbeinfoRequest& request, const ListProbeinfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listProbeinfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ListProbeinfoOutcomeCallable CloudwfClient::listProbeinfoCallable(const ListProbeinfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listProbeinfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::AreaInfoOutcome CloudwfClient::areaInfo(const AreaInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2103,6 +2067,42 @@ CloudwfClient::AreaInfoOutcomeCallable CloudwfClient::areaInfoCallable(const Are return task->get_future(); } +CloudwfClient::ListProbeinfoOutcome CloudwfClient::listProbeinfo(const ListProbeinfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProbeinfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProbeinfoOutcome(ListProbeinfoResult(outcome.result())); + else + return ListProbeinfoOutcome(outcome.error()); +} + +void CloudwfClient::listProbeinfoAsync(const ListProbeinfoRequest& request, const ListProbeinfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProbeinfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ListProbeinfoOutcomeCallable CloudwfClient::listProbeinfoCallable(const ListProbeinfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProbeinfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::GetAllActiveShopByGroupOutcome CloudwfClient::getAllActiveShopByGroup(const GetAllActiveShopByGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3075,42 +3075,6 @@ CloudwfClient::DeletePositionMapOutcomeCallable CloudwfClient::deletePositionMap return task->get_future(); } -CloudwfClient::SetScanModeOutcome CloudwfClient::setScanMode(const SetScanModeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetScanModeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetScanModeOutcome(SetScanModeResult(outcome.result())); - else - return SetScanModeOutcome(outcome.error()); -} - -void CloudwfClient::setScanModeAsync(const SetScanModeRequest& request, const SetScanModeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setScanMode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::SetScanModeOutcomeCallable CloudwfClient::setScanModeCallable(const SetScanModeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setScanMode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::UpgradeAPOutcome CloudwfClient::upgradeAP(const UpgradeAPRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,6 +3111,42 @@ CloudwfClient::UpgradeAPOutcomeCallable CloudwfClient::upgradeAPCallable(const U return task->get_future(); } +CloudwfClient::SetScanModeOutcome CloudwfClient::setScanMode(const SetScanModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetScanModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetScanModeOutcome(SetScanModeResult(outcome.result())); + else + return SetScanModeOutcome(outcome.error()); +} + +void CloudwfClient::setScanModeAsync(const SetScanModeRequest& request, const SetScanModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setScanMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::SetScanModeOutcomeCallable CloudwfClient::setScanModeCallable(const SetScanModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setScanMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::ListUpgradeImgOutcome CloudwfClient::listUpgradeImg(const ListUpgradeImgRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3255,42 +3255,6 @@ CloudwfClient::ApgroupBatchDeleteApOutcomeCallable CloudwfClient::apgroupBatchDe return task->get_future(); } -CloudwfClient::ShopMarketingListOutcome CloudwfClient::shopMarketingList(const ShopMarketingListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ShopMarketingListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ShopMarketingListOutcome(ShopMarketingListResult(outcome.result())); - else - return ShopMarketingListOutcome(outcome.error()); -} - -void CloudwfClient::shopMarketingListAsync(const ShopMarketingListRequest& request, const ShopMarketingListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, shopMarketingList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ShopMarketingListOutcomeCallable CloudwfClient::shopMarketingListCallable(const ShopMarketingListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->shopMarketingList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::ProfileHistoryOutcome CloudwfClient::profileHistory(const ProfileHistoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3327,6 +3291,42 @@ CloudwfClient::ProfileHistoryOutcomeCallable CloudwfClient::profileHistoryCallab return task->get_future(); } +CloudwfClient::ShopMarketingListOutcome CloudwfClient::shopMarketingList(const ShopMarketingListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ShopMarketingListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ShopMarketingListOutcome(ShopMarketingListResult(outcome.result())); + else + return ShopMarketingListOutcome(outcome.error()); +} + +void CloudwfClient::shopMarketingListAsync(const ShopMarketingListRequest& request, const ShopMarketingListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, shopMarketingList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ShopMarketingListOutcomeCallable CloudwfClient::shopMarketingListCallable(const ShopMarketingListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->shopMarketingList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::ListApPositionOutcome CloudwfClient::listApPosition(const ListApPositionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,42 +3507,6 @@ CloudwfClient::SaveApgroupSsidConfigOutcomeCallable CloudwfClient::saveApgroupSs return task->get_future(); } -CloudwfClient::OemMarketingSettingDataOutcome CloudwfClient::oemMarketingSettingData(const OemMarketingSettingDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OemMarketingSettingDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OemMarketingSettingDataOutcome(OemMarketingSettingDataResult(outcome.result())); - else - return OemMarketingSettingDataOutcome(outcome.error()); -} - -void CloudwfClient::oemMarketingSettingDataAsync(const OemMarketingSettingDataRequest& request, const OemMarketingSettingDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, oemMarketingSettingData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::OemMarketingSettingDataOutcomeCallable CloudwfClient::oemMarketingSettingDataCallable(const OemMarketingSettingDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->oemMarketingSettingData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::InnerCheckOrderOutcome CloudwfClient::innerCheckOrder(const InnerCheckOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +3543,42 @@ CloudwfClient::InnerCheckOrderOutcomeCallable CloudwfClient::innerCheckOrderCall return task->get_future(); } +CloudwfClient::OemMarketingSettingDataOutcome CloudwfClient::oemMarketingSettingData(const OemMarketingSettingDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OemMarketingSettingDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OemMarketingSettingDataOutcome(OemMarketingSettingDataResult(outcome.result())); + else + return OemMarketingSettingDataOutcome(outcome.error()); +} + +void CloudwfClient::oemMarketingSettingDataAsync(const OemMarketingSettingDataRequest& request, const OemMarketingSettingDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, oemMarketingSettingData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::OemMarketingSettingDataOutcomeCallable CloudwfClient::oemMarketingSettingDataCallable(const OemMarketingSettingDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->oemMarketingSettingData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::GetOnlineStaTimeSerOutcome CloudwfClient::getOnlineStaTimeSer(const GetOnlineStaTimeSerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3615,42 +3615,6 @@ CloudwfClient::GetOnlineStaTimeSerOutcomeCallable CloudwfClient::getOnlineStaTim return task->get_future(); } -CloudwfClient::ListSubAccountPermissionOutcome CloudwfClient::listSubAccountPermission(const ListSubAccountPermissionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSubAccountPermissionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSubAccountPermissionOutcome(ListSubAccountPermissionResult(outcome.result())); - else - return ListSubAccountPermissionOutcome(outcome.error()); -} - -void CloudwfClient::listSubAccountPermissionAsync(const ListSubAccountPermissionRequest& request, const ListSubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSubAccountPermission(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ListSubAccountPermissionOutcomeCallable CloudwfClient::listSubAccountPermissionCallable(const ListSubAccountPermissionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSubAccountPermission(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::ListStaOnoffLogOutcome CloudwfClient::listStaOnoffLog(const ListStaOnoffLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3687,6 +3651,42 @@ CloudwfClient::ListStaOnoffLogOutcomeCallable CloudwfClient::listStaOnoffLogCall return task->get_future(); } +CloudwfClient::ListSubAccountPermissionOutcome CloudwfClient::listSubAccountPermission(const ListSubAccountPermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSubAccountPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSubAccountPermissionOutcome(ListSubAccountPermissionResult(outcome.result())); + else + return ListSubAccountPermissionOutcome(outcome.error()); +} + +void CloudwfClient::listSubAccountPermissionAsync(const ListSubAccountPermissionRequest& request, const ListSubAccountPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSubAccountPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ListSubAccountPermissionOutcomeCallable CloudwfClient::listSubAccountPermissionCallable(const ListSubAccountPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSubAccountPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::HeadquartersOverviewOutcome CloudwfClient::headquartersOverview(const HeadquartersOverviewRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3759,42 +3759,6 @@ CloudwfClient::GetApgroupConfigProgressOutcomeCallable CloudwfClient::getApgroup return task->get_future(); } -CloudwfClient::ListPortalTemplateOutcome CloudwfClient::listPortalTemplate(const ListPortalTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPortalTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPortalTemplateOutcome(ListPortalTemplateResult(outcome.result())); - else - return ListPortalTemplateOutcome(outcome.error()); -} - -void CloudwfClient::listPortalTemplateAsync(const ListPortalTemplateRequest& request, const ListPortalTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPortalTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ListPortalTemplateOutcomeCallable CloudwfClient::listPortalTemplateCallable(const ListPortalTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPortalTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::AreaCreateOutcome CloudwfClient::areaCreate(const AreaCreateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3831,6 +3795,42 @@ CloudwfClient::AreaCreateOutcomeCallable CloudwfClient::areaCreateCallable(const return task->get_future(); } +CloudwfClient::ListPortalTemplateOutcome CloudwfClient::listPortalTemplate(const ListPortalTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPortalTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPortalTemplateOutcome(ListPortalTemplateResult(outcome.result())); + else + return ListPortalTemplateOutcome(outcome.error()); +} + +void CloudwfClient::listPortalTemplateAsync(const ListPortalTemplateRequest& request, const ListPortalTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPortalTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ListPortalTemplateOutcomeCallable CloudwfClient::listPortalTemplateCallable(const ListPortalTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPortalTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::QueryRenewPriceOutcome CloudwfClient::queryRenewPrice(const QueryRenewPriceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,42 +3903,6 @@ CloudwfClient::GetApgroupPortalConfigProgressOutcomeCallable CloudwfClient::getA return task->get_future(); } -CloudwfClient::GetOssServerSignOutcome CloudwfClient::getOssServerSign(const GetOssServerSignRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOssServerSignOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOssServerSignOutcome(GetOssServerSignResult(outcome.result())); - else - return GetOssServerSignOutcome(outcome.error()); -} - -void CloudwfClient::getOssServerSignAsync(const GetOssServerSignRequest& request, const GetOssServerSignAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOssServerSign(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::GetOssServerSignOutcomeCallable CloudwfClient::getOssServerSignCallable(const GetOssServerSignRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOssServerSign(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::OemSitingContrastOutcome CloudwfClient::oemSitingContrast(const OemSitingContrastRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3975,6 +3939,42 @@ CloudwfClient::OemSitingContrastOutcomeCallable CloudwfClient::oemSitingContrast return task->get_future(); } +CloudwfClient::GetOssServerSignOutcome CloudwfClient::getOssServerSign(const GetOssServerSignRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOssServerSignOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOssServerSignOutcome(GetOssServerSignResult(outcome.result())); + else + return GetOssServerSignOutcome(outcome.error()); +} + +void CloudwfClient::getOssServerSignAsync(const GetOssServerSignRequest& request, const GetOssServerSignAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOssServerSign(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::GetOssServerSignOutcomeCallable CloudwfClient::getOssServerSignCallable(const GetOssServerSignRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOssServerSign(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::BusinessInfoOutcome CloudwfClient::businessInfo(const BusinessInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,42 +4551,6 @@ CloudwfClient::OemHeatMapOutcomeCallable CloudwfClient::oemHeatMapCallable(const return task->get_future(); } -CloudwfClient::ReleaseInstanceOutcome CloudwfClient::releaseInstance(const ReleaseInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReleaseInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReleaseInstanceOutcome(ReleaseInstanceResult(outcome.result())); - else - return ReleaseInstanceOutcome(outcome.error()); -} - -void CloudwfClient::releaseInstanceAsync(const ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, releaseInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ReleaseInstanceOutcomeCallable CloudwfClient::releaseInstanceCallable(const ReleaseInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->releaseInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::ReportRealtimeOutcome CloudwfClient::reportRealtime(const ReportRealtimeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4623,6 +4587,42 @@ CloudwfClient::ReportRealtimeOutcomeCallable CloudwfClient::reportRealtimeCallab return task->get_future(); } +CloudwfClient::ReleaseInstanceOutcome CloudwfClient::releaseInstance(const ReleaseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstanceOutcome(ReleaseInstanceResult(outcome.result())); + else + return ReleaseInstanceOutcome(outcome.error()); +} + +void CloudwfClient::releaseInstanceAsync(const ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ReleaseInstanceOutcomeCallable CloudwfClient::releaseInstanceCallable(const ReleaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::GetUmengPagePermission4RootOutcome CloudwfClient::getUmengPagePermission4Root(const GetUmengPagePermission4RootRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,42 +4911,6 @@ CloudwfClient::ListGroupApBriefConfigOutcomeCallable CloudwfClient::listGroupApB return task->get_future(); } -CloudwfClient::BatchRegisterApAssetOutcome CloudwfClient::batchRegisterApAsset(const BatchRegisterApAssetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BatchRegisterApAssetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BatchRegisterApAssetOutcome(BatchRegisterApAssetResult(outcome.result())); - else - return BatchRegisterApAssetOutcome(outcome.error()); -} - -void CloudwfClient::batchRegisterApAssetAsync(const BatchRegisterApAssetRequest& request, const BatchRegisterApAssetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, batchRegisterApAsset(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::BatchRegisterApAssetOutcomeCallable CloudwfClient::batchRegisterApAssetCallable(const BatchRegisterApAssetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->batchRegisterApAsset(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::PutOssFileOutcome CloudwfClient::putOssFile(const PutOssFileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4983,36 +4947,36 @@ CloudwfClient::PutOssFileOutcomeCallable CloudwfClient::putOssFileCallable(const return task->get_future(); } -CloudwfClient::SaveApScanConfigOutcome CloudwfClient::saveApScanConfig(const SaveApScanConfigRequest &request) const +CloudwfClient::BatchRegisterApAssetOutcome CloudwfClient::batchRegisterApAsset(const BatchRegisterApAssetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SaveApScanConfigOutcome(endpointOutcome.error()); + return BatchRegisterApAssetOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SaveApScanConfigOutcome(SaveApScanConfigResult(outcome.result())); + return BatchRegisterApAssetOutcome(BatchRegisterApAssetResult(outcome.result())); else - return SaveApScanConfigOutcome(outcome.error()); + return BatchRegisterApAssetOutcome(outcome.error()); } -void CloudwfClient::saveApScanConfigAsync(const SaveApScanConfigRequest& request, const SaveApScanConfigAsyncHandler& handler, const std::shared_ptr& context) const +void CloudwfClient::batchRegisterApAssetAsync(const BatchRegisterApAssetRequest& request, const BatchRegisterApAssetAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, saveApScanConfig(request), context); + handler(this, request, batchRegisterApAsset(request), context); }; asyncExecute(new Runnable(fn)); } -CloudwfClient::SaveApScanConfigOutcomeCallable CloudwfClient::saveApScanConfigCallable(const SaveApScanConfigRequest &request) const +CloudwfClient::BatchRegisterApAssetOutcomeCallable CloudwfClient::batchRegisterApAssetCallable(const BatchRegisterApAssetRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->saveApScanConfig(request); + return this->batchRegisterApAsset(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5091,6 +5055,42 @@ CloudwfClient::GetGroupApRadioConfigTemplateOutcomeCallable CloudwfClient::getGr return task->get_future(); } +CloudwfClient::SaveApScanConfigOutcome CloudwfClient::saveApScanConfig(const SaveApScanConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveApScanConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveApScanConfigOutcome(SaveApScanConfigResult(outcome.result())); + else + return SaveApScanConfigOutcome(outcome.error()); +} + +void CloudwfClient::saveApScanConfigAsync(const SaveApScanConfigRequest& request, const SaveApScanConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveApScanConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::SaveApScanConfigOutcomeCallable CloudwfClient::saveApScanConfigCallable(const SaveApScanConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveApScanConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::HeadquartersToolsO2OOutcome CloudwfClient::headquartersToolsO2O(const HeadquartersToolsO2ORequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5127,42 +5127,6 @@ CloudwfClient::HeadquartersToolsO2OOutcomeCallable CloudwfClient::headquartersTo return task->get_future(); } -CloudwfClient::HeadquartersToolsCoincideOutcome CloudwfClient::headquartersToolsCoincide(const HeadquartersToolsCoincideRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return HeadquartersToolsCoincideOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return HeadquartersToolsCoincideOutcome(HeadquartersToolsCoincideResult(outcome.result())); - else - return HeadquartersToolsCoincideOutcome(outcome.error()); -} - -void CloudwfClient::headquartersToolsCoincideAsync(const HeadquartersToolsCoincideRequest& request, const HeadquartersToolsCoincideAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, headquartersToolsCoincide(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::HeadquartersToolsCoincideOutcomeCallable CloudwfClient::headquartersToolsCoincideCallable(const HeadquartersToolsCoincideRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->headquartersToolsCoincide(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::ResumeInstanceOutcome CloudwfClient::resumeInstance(const ResumeInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5199,6 +5163,42 @@ CloudwfClient::ResumeInstanceOutcomeCallable CloudwfClient::resumeInstanceCallab return task->get_future(); } +CloudwfClient::HeadquartersToolsCoincideOutcome CloudwfClient::headquartersToolsCoincide(const HeadquartersToolsCoincideRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return HeadquartersToolsCoincideOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return HeadquartersToolsCoincideOutcome(HeadquartersToolsCoincideResult(outcome.result())); + else + return HeadquartersToolsCoincideOutcome(outcome.error()); +} + +void CloudwfClient::headquartersToolsCoincideAsync(const HeadquartersToolsCoincideRequest& request, const HeadquartersToolsCoincideAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, headquartersToolsCoincide(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::HeadquartersToolsCoincideOutcomeCallable CloudwfClient::headquartersToolsCoincideCallable(const HeadquartersToolsCoincideRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->headquartersToolsCoincide(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::ListApAssetOutcome CloudwfClient::listApAsset(const ListApAssetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5343,42 +5343,6 @@ CloudwfClient::RepairGroupApOutcomeCallable CloudwfClient::repairGroupApCallable return task->get_future(); } -CloudwfClient::GetMapUrlOutcome CloudwfClient::getMapUrl(const GetMapUrlRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetMapUrlOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetMapUrlOutcome(GetMapUrlResult(outcome.result())); - else - return GetMapUrlOutcome(outcome.error()); -} - -void CloudwfClient::getMapUrlAsync(const GetMapUrlRequest& request, const GetMapUrlAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getMapUrl(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::GetMapUrlOutcomeCallable CloudwfClient::getMapUrlCallable(const GetMapUrlRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getMapUrl(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::GetUpgradeAPGroupProgressOutcome CloudwfClient::getUpgradeAPGroupProgress(const GetUpgradeAPGroupProgressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5415,6 +5379,42 @@ CloudwfClient::GetUpgradeAPGroupProgressOutcomeCallable CloudwfClient::getUpgrad return task->get_future(); } +CloudwfClient::GetMapUrlOutcome CloudwfClient::getMapUrl(const GetMapUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMapUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMapUrlOutcome(GetMapUrlResult(outcome.result())); + else + return GetMapUrlOutcome(outcome.error()); +} + +void CloudwfClient::getMapUrlAsync(const GetMapUrlRequest& request, const GetMapUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMapUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::GetMapUrlOutcomeCallable CloudwfClient::getMapUrlCallable(const GetMapUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMapUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::ShopGetfiltermacOutcome CloudwfClient::shopGetfiltermac(const ShopGetfiltermacRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5919,6 +5919,42 @@ CloudwfClient::GetApgroupDetailedConfigOutcomeCallable CloudwfClient::getApgroup return task->get_future(); } +CloudwfClient::ListStaStatusOutcome CloudwfClient::listStaStatus(const ListStaStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStaStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStaStatusOutcome(ListStaStatusResult(outcome.result())); + else + return ListStaStatusOutcome(outcome.error()); +} + +void CloudwfClient::listStaStatusAsync(const ListStaStatusRequest& request, const ListStaStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStaStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ListStaStatusOutcomeCallable CloudwfClient::listStaStatusCallable(const ListStaStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStaStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::InnerRefundOutcome CloudwfClient::innerRefund(const InnerRefundRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5991,42 +6027,6 @@ CloudwfClient::ProfileTradeOutcomeCallable CloudwfClient::profileTradeCallable(c return task->get_future(); } -CloudwfClient::ListStaStatusOutcome CloudwfClient::listStaStatus(const ListStaStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListStaStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListStaStatusOutcome(ListStaStatusResult(outcome.result())); - else - return ListStaStatusOutcome(outcome.error()); -} - -void CloudwfClient::listStaStatusAsync(const ListStaStatusRequest& request, const ListStaStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listStaStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ListStaStatusOutcomeCallable CloudwfClient::listStaStatusCallable(const ListStaStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listStaStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::DeviceUpdateOutcome CloudwfClient::deviceUpdate(const DeviceUpdateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6531,42 +6531,6 @@ CloudwfClient::KickStaOutcomeCallable CloudwfClient::kickStaCallable(const KickS return task->get_future(); } -CloudwfClient::ProfileConsumeOutcome CloudwfClient::profileConsume(const ProfileConsumeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ProfileConsumeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ProfileConsumeOutcome(ProfileConsumeResult(outcome.result())); - else - return ProfileConsumeOutcome(outcome.error()); -} - -void CloudwfClient::profileConsumeAsync(const ProfileConsumeRequest& request, const ProfileConsumeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, profileConsume(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ProfileConsumeOutcomeCallable CloudwfClient::profileConsumeCallable(const ProfileConsumeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->profileConsume(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::DelApPositionOutcome CloudwfClient::delApPosition(const DelApPositionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6603,6 +6567,42 @@ CloudwfClient::DelApPositionOutcomeCallable CloudwfClient::delApPositionCallable return task->get_future(); } +CloudwfClient::ProfileConsumeOutcome CloudwfClient::profileConsume(const ProfileConsumeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ProfileConsumeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ProfileConsumeOutcome(ProfileConsumeResult(outcome.result())); + else + return ProfileConsumeOutcome(outcome.error()); +} + +void CloudwfClient::profileConsumeAsync(const ProfileConsumeRequest& request, const ProfileConsumeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, profileConsume(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ProfileConsumeOutcomeCallable CloudwfClient::profileConsumeCallable(const ProfileConsumeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->profileConsume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::ShopInfoOutcome CloudwfClient::shopInfo(const ShopInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6747,42 +6747,6 @@ CloudwfClient::SavePageConfigTemplateOutcomeCallable CloudwfClient::savePageConf return task->get_future(); } -CloudwfClient::ShopGroupUpdateOutcome CloudwfClient::shopGroupUpdate(const ShopGroupUpdateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ShopGroupUpdateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ShopGroupUpdateOutcome(ShopGroupUpdateResult(outcome.result())); - else - return ShopGroupUpdateOutcome(outcome.error()); -} - -void CloudwfClient::shopGroupUpdateAsync(const ShopGroupUpdateRequest& request, const ShopGroupUpdateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, shopGroupUpdate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::ShopGroupUpdateOutcomeCallable CloudwfClient::shopGroupUpdateCallable(const ShopGroupUpdateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->shopGroupUpdate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::SetUpgradeImgByModelOutcome CloudwfClient::setUpgradeImgByModel(const SetUpgradeImgByModelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6819,6 +6783,42 @@ CloudwfClient::SetUpgradeImgByModelOutcomeCallable CloudwfClient::setUpgradeImgB return task->get_future(); } +CloudwfClient::ShopGroupUpdateOutcome CloudwfClient::shopGroupUpdate(const ShopGroupUpdateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ShopGroupUpdateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ShopGroupUpdateOutcome(ShopGroupUpdateResult(outcome.result())); + else + return ShopGroupUpdateOutcome(outcome.error()); +} + +void CloudwfClient::shopGroupUpdateAsync(const ShopGroupUpdateRequest& request, const ShopGroupUpdateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, shopGroupUpdate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::ShopGroupUpdateOutcomeCallable CloudwfClient::shopGroupUpdateCallable(const ShopGroupUpdateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->shopGroupUpdate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::ShopGroupInfoOutcome CloudwfClient::shopGroupInfo(const ShopGroupInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7071,42 +7071,6 @@ CloudwfClient::CheckUmengDataAnalysisPermissionOutcomeCallable CloudwfClient::ch return task->get_future(); } -CloudwfClient::DeviceDeleteOutcome CloudwfClient::deviceDelete(const DeviceDeleteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeviceDeleteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeviceDeleteOutcome(DeviceDeleteResult(outcome.result())); - else - return DeviceDeleteOutcome(outcome.error()); -} - -void CloudwfClient::deviceDeleteAsync(const DeviceDeleteRequest& request, const DeviceDeleteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deviceDelete(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::DeviceDeleteOutcomeCallable CloudwfClient::deviceDeleteCallable(const DeviceDeleteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deviceDelete(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::ReportDayOutcome CloudwfClient::reportDay(const ReportDayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7143,6 +7107,42 @@ CloudwfClient::ReportDayOutcomeCallable CloudwfClient::reportDayCallable(const R return task->get_future(); } +CloudwfClient::DeviceDeleteOutcome CloudwfClient::deviceDelete(const DeviceDeleteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeviceDeleteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeviceDeleteOutcome(DeviceDeleteResult(outcome.result())); + else + return DeviceDeleteOutcome(outcome.error()); +} + +void CloudwfClient::deviceDeleteAsync(const DeviceDeleteRequest& request, const DeviceDeleteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deviceDelete(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::DeviceDeleteOutcomeCallable CloudwfClient::deviceDeleteCallable(const DeviceDeleteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deviceDelete(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::UpgradeAPGroupOutcome CloudwfClient::upgradeAPGroup(const UpgradeAPGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7395,42 +7395,6 @@ CloudwfClient::InnerProduceCloudWFOutcomeCallable CloudwfClient::innerProduceClo return task->get_future(); } -CloudwfClient::UpLoadMapOutcome CloudwfClient::upLoadMap(const UpLoadMapRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpLoadMapOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpLoadMapOutcome(UpLoadMapResult(outcome.result())); - else - return UpLoadMapOutcome(outcome.error()); -} - -void CloudwfClient::upLoadMapAsync(const UpLoadMapRequest& request, const UpLoadMapAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, upLoadMap(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::UpLoadMapOutcomeCallable CloudwfClient::upLoadMapCallable(const UpLoadMapRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->upLoadMap(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::SavePortalConfigOutcome CloudwfClient::savePortalConfig(const SavePortalConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7467,6 +7431,42 @@ CloudwfClient::SavePortalConfigOutcomeCallable CloudwfClient::savePortalConfigCa return task->get_future(); } +CloudwfClient::UpLoadMapOutcome CloudwfClient::upLoadMap(const UpLoadMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpLoadMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpLoadMapOutcome(UpLoadMapResult(outcome.result())); + else + return UpLoadMapOutcome(outcome.error()); +} + +void CloudwfClient::upLoadMapAsync(const UpLoadMapRequest& request, const UpLoadMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upLoadMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::UpLoadMapOutcomeCallable CloudwfClient::upLoadMapCallable(const UpLoadMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upLoadMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::BatchSaveApPositionOutcome CloudwfClient::batchSaveApPosition(const BatchSaveApPositionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7539,42 +7539,6 @@ CloudwfClient::SaveApgroupScanConfigOutcomeCallable CloudwfClient::saveApgroupSc return task->get_future(); } -CloudwfClient::GetApStaMiscAggOutcome CloudwfClient::getApStaMiscAgg(const GetApStaMiscAggRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetApStaMiscAggOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetApStaMiscAggOutcome(GetApStaMiscAggResult(outcome.result())); - else - return GetApStaMiscAggOutcome(outcome.error()); -} - -void CloudwfClient::getApStaMiscAggAsync(const GetApStaMiscAggRequest& request, const GetApStaMiscAggAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getApStaMiscAgg(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::GetApStaMiscAggOutcomeCallable CloudwfClient::getApStaMiscAggCallable(const GetApStaMiscAggRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getApStaMiscAgg(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::AliyunRegisterApAssetOutcome CloudwfClient::aliyunRegisterApAsset(const AliyunRegisterApAssetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7611,6 +7575,42 @@ CloudwfClient::AliyunRegisterApAssetOutcomeCallable CloudwfClient::aliyunRegiste return task->get_future(); } +CloudwfClient::GetApStaMiscAggOutcome CloudwfClient::getApStaMiscAgg(const GetApStaMiscAggRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApStaMiscAggOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApStaMiscAggOutcome(GetApStaMiscAggResult(outcome.result())); + else + return GetApStaMiscAggOutcome(outcome.error()); +} + +void CloudwfClient::getApStaMiscAggAsync(const GetApStaMiscAggRequest& request, const GetApStaMiscAggAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApStaMiscAgg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::GetApStaMiscAggOutcomeCallable CloudwfClient::getApStaMiscAggCallable(const GetApStaMiscAggRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApStaMiscAgg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::UserAnalyseOutcome CloudwfClient::userAnalyse(const UserAnalyseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7755,42 +7755,6 @@ CloudwfClient::GetStaRunHistoryTimeSerOutcomeCallable CloudwfClient::getStaRunHi return task->get_future(); } -CloudwfClient::GetUpgradeAPProgressOutcome CloudwfClient::getUpgradeAPProgress(const GetUpgradeAPProgressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUpgradeAPProgressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUpgradeAPProgressOutcome(GetUpgradeAPProgressResult(outcome.result())); - else - return GetUpgradeAPProgressOutcome(outcome.error()); -} - -void CloudwfClient::getUpgradeAPProgressAsync(const GetUpgradeAPProgressRequest& request, const GetUpgradeAPProgressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUpgradeAPProgress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::GetUpgradeAPProgressOutcomeCallable CloudwfClient::getUpgradeAPProgressCallable(const GetUpgradeAPProgressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUpgradeAPProgress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::GroupIntimeOutcome CloudwfClient::groupIntime(const GroupIntimeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7827,6 +7791,42 @@ CloudwfClient::GroupIntimeOutcomeCallable CloudwfClient::groupIntimeCallable(con return task->get_future(); } +CloudwfClient::GetUpgradeAPProgressOutcome CloudwfClient::getUpgradeAPProgress(const GetUpgradeAPProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUpgradeAPProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUpgradeAPProgressOutcome(GetUpgradeAPProgressResult(outcome.result())); + else + return GetUpgradeAPProgressOutcome(outcome.error()); +} + +void CloudwfClient::getUpgradeAPProgressAsync(const GetUpgradeAPProgressRequest& request, const GetUpgradeAPProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUpgradeAPProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::GetUpgradeAPProgressOutcomeCallable CloudwfClient::getUpgradeAPProgressCallable(const GetUpgradeAPProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUpgradeAPProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudwfClient::ShopDeletemarketingOutcome CloudwfClient::shopDeletemarketing(const ShopDeletemarketingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8043,42 +8043,6 @@ CloudwfClient::GetAccountConfigOutcomeCallable CloudwfClient::getAccountConfigCa return task->get_future(); } -CloudwfClient::GetAddApsProgressOutcome CloudwfClient::getAddApsProgress(const GetAddApsProgressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAddApsProgressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAddApsProgressOutcome(GetAddApsProgressResult(outcome.result())); - else - return GetAddApsProgressOutcome(outcome.error()); -} - -void CloudwfClient::getAddApsProgressAsync(const GetAddApsProgressRequest& request, const GetAddApsProgressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAddApsProgress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudwfClient::GetAddApsProgressOutcomeCallable CloudwfClient::getAddApsProgressCallable(const GetAddApsProgressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAddApsProgress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudwfClient::ProfileDistrictOutcome CloudwfClient::profileDistrict(const ProfileDistrictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8115,3 +8079,39 @@ CloudwfClient::ProfileDistrictOutcomeCallable CloudwfClient::profileDistrictCall return task->get_future(); } +CloudwfClient::GetAddApsProgressOutcome CloudwfClient::getAddApsProgress(const GetAddApsProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAddApsProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAddApsProgressOutcome(GetAddApsProgressResult(outcome.result())); + else + return GetAddApsProgressOutcome(outcome.error()); +} + +void CloudwfClient::getAddApsProgressAsync(const GetAddApsProgressRequest& request, const GetAddApsProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAddApsProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudwfClient::GetAddApsProgressOutcomeCallable CloudwfClient::getAddApsProgressCallable(const GetAddApsProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAddApsProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/cloudwf/src/model/AddApgroupConfigRequest.cc b/cloudwf/src/model/AddApgroupConfigRequest.cc index cb8ae5c5b..5fcada291 100644 --- a/cloudwf/src/model/AddApgroupConfigRequest.cc +++ b/cloudwf/src/model/AddApgroupConfigRequest.cc @@ -33,7 +33,7 @@ long AddApgroupConfigRequest::getParentApgroupId()const void AddApgroupConfigRequest::setParentApgroupId(long parentApgroupId) { parentApgroupId_ = parentApgroupId; - setParameter("ParentApgroupId", std::to_string(parentApgroupId)); + setCoreParameter("ParentApgroupId", std::to_string(parentApgroupId)); } std::string AddApgroupConfigRequest::getName()const @@ -44,7 +44,7 @@ std::string AddApgroupConfigRequest::getName()const void AddApgroupConfigRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddApgroupConfigRequest::getDescription()const @@ -55,7 +55,7 @@ std::string AddApgroupConfigRequest::getDescription()const void AddApgroupConfigRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string AddApgroupConfigRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string AddApgroupConfigRequest::getAccessKeyId()const void AddApgroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/AddApgroupConfigResult.cc b/cloudwf/src/model/AddApgroupConfigResult.cc index 8eac9a2f5..633332259 100644 --- a/cloudwf/src/model/AddApgroupConfigResult.cc +++ b/cloudwf/src/model/AddApgroupConfigResult.cc @@ -35,10 +35,13 @@ AddApgroupConfigResult::~AddApgroupConfigResult() void AddApgroupConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/AliyunRegisterApAssetRequest.cc b/cloudwf/src/model/AliyunRegisterApAssetRequest.cc index 0bc0586cf..61062d803 100644 --- a/cloudwf/src/model/AliyunRegisterApAssetRequest.cc +++ b/cloudwf/src/model/AliyunRegisterApAssetRequest.cc @@ -33,7 +33,7 @@ long AliyunRegisterApAssetRequest::getApgroupId()const void AliyunRegisterApAssetRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string AliyunRegisterApAssetRequest::getMac()const @@ -44,7 +44,7 @@ std::string AliyunRegisterApAssetRequest::getMac()const void AliyunRegisterApAssetRequest::setMac(const std::string& mac) { mac_ = mac; - setParameter("Mac", mac); + setCoreParameter("Mac", mac); } std::string AliyunRegisterApAssetRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string AliyunRegisterApAssetRequest::getAccessKeyId()const void AliyunRegisterApAssetRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AliyunRegisterApAssetRequest::getSerialNo()const @@ -66,6 +66,6 @@ std::string AliyunRegisterApAssetRequest::getSerialNo()const void AliyunRegisterApAssetRequest::setSerialNo(const std::string& serialNo) { serialNo_ = serialNo; - setParameter("SerialNo", serialNo); + setCoreParameter("SerialNo", serialNo); } diff --git a/cloudwf/src/model/AliyunRegisterApAssetResult.cc b/cloudwf/src/model/AliyunRegisterApAssetResult.cc index fc4dc08c7..f6cb2b719 100644 --- a/cloudwf/src/model/AliyunRegisterApAssetResult.cc +++ b/cloudwf/src/model/AliyunRegisterApAssetResult.cc @@ -35,10 +35,13 @@ AliyunRegisterApAssetResult::~AliyunRegisterApAssetResult() void AliyunRegisterApAssetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ApgroupBatchAddApRequest.cc b/cloudwf/src/model/ApgroupBatchAddApRequest.cc index bf16dbe72..62ecab5cb 100644 --- a/cloudwf/src/model/ApgroupBatchAddApRequest.cc +++ b/cloudwf/src/model/ApgroupBatchAddApRequest.cc @@ -33,7 +33,7 @@ std::string ApgroupBatchAddApRequest::getApAssetIds()const void ApgroupBatchAddApRequest::setApAssetIds(const std::string& apAssetIds) { apAssetIds_ = apAssetIds; - setParameter("ApAssetIds", apAssetIds); + setCoreParameter("ApAssetIds", apAssetIds); } long ApgroupBatchAddApRequest::getApgroupId()const @@ -44,7 +44,7 @@ long ApgroupBatchAddApRequest::getApgroupId()const void ApgroupBatchAddApRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string ApgroupBatchAddApRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ApgroupBatchAddApRequest::getAccessKeyId()const void ApgroupBatchAddApRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ApgroupBatchAddApResult.cc b/cloudwf/src/model/ApgroupBatchAddApResult.cc index 8d9ffbe37..b4075afb2 100644 --- a/cloudwf/src/model/ApgroupBatchAddApResult.cc +++ b/cloudwf/src/model/ApgroupBatchAddApResult.cc @@ -35,10 +35,13 @@ ApgroupBatchAddApResult::~ApgroupBatchAddApResult() void ApgroupBatchAddApResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ApgroupBatchDeleteApRequest.cc b/cloudwf/src/model/ApgroupBatchDeleteApRequest.cc index eb6cb3bae..8e5586f40 100644 --- a/cloudwf/src/model/ApgroupBatchDeleteApRequest.cc +++ b/cloudwf/src/model/ApgroupBatchDeleteApRequest.cc @@ -33,7 +33,7 @@ std::string ApgroupBatchDeleteApRequest::getApAssetIds()const void ApgroupBatchDeleteApRequest::setApAssetIds(const std::string& apAssetIds) { apAssetIds_ = apAssetIds; - setParameter("ApAssetIds", apAssetIds); + setCoreParameter("ApAssetIds", apAssetIds); } std::string ApgroupBatchDeleteApRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ApgroupBatchDeleteApRequest::getAccessKeyId()const void ApgroupBatchDeleteApRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ApgroupBatchDeleteApResult.cc b/cloudwf/src/model/ApgroupBatchDeleteApResult.cc index 9ba1c961f..03d1a8336 100644 --- a/cloudwf/src/model/ApgroupBatchDeleteApResult.cc +++ b/cloudwf/src/model/ApgroupBatchDeleteApResult.cc @@ -35,10 +35,13 @@ ApgroupBatchDeleteApResult::~ApgroupBatchDeleteApResult() void ApgroupBatchDeleteApResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/AreaCreateRequest.cc b/cloudwf/src/model/AreaCreateRequest.cc index af862969e..12400d0a3 100644 --- a/cloudwf/src/model/AreaCreateRequest.cc +++ b/cloudwf/src/model/AreaCreateRequest.cc @@ -33,7 +33,7 @@ std::string AreaCreateRequest::getName()const void AreaCreateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AreaCreateRequest::getDids()const @@ -44,7 +44,7 @@ std::string AreaCreateRequest::getDids()const void AreaCreateRequest::setDids(const std::string& dids) { dids_ = dids; - setParameter("Dids", dids); + setCoreParameter("Dids", dids); } std::string AreaCreateRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string AreaCreateRequest::getAccessKeyId()const void AreaCreateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long AreaCreateRequest::getSid()const @@ -66,6 +66,6 @@ long AreaCreateRequest::getSid()const void AreaCreateRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/AreaCreateResult.cc b/cloudwf/src/model/AreaCreateResult.cc index cee83629a..a08071b77 100644 --- a/cloudwf/src/model/AreaCreateResult.cc +++ b/cloudwf/src/model/AreaCreateResult.cc @@ -35,10 +35,13 @@ AreaCreateResult::~AreaCreateResult() void AreaCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/AreaDeleteRequest.cc b/cloudwf/src/model/AreaDeleteRequest.cc index 1a26664b2..faf0b6758 100644 --- a/cloudwf/src/model/AreaDeleteRequest.cc +++ b/cloudwf/src/model/AreaDeleteRequest.cc @@ -33,7 +33,7 @@ long AreaDeleteRequest::getAid()const void AreaDeleteRequest::setAid(long aid) { aid_ = aid; - setParameter("Aid", std::to_string(aid)); + setCoreParameter("Aid", std::to_string(aid)); } std::string AreaDeleteRequest::getAccessKeyId()const @@ -44,7 +44,7 @@ std::string AreaDeleteRequest::getAccessKeyId()const void AreaDeleteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long AreaDeleteRequest::getSid()const @@ -55,6 +55,6 @@ long AreaDeleteRequest::getSid()const void AreaDeleteRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/AreaDeleteResult.cc b/cloudwf/src/model/AreaDeleteResult.cc index 383e43f60..c2fefa1df 100644 --- a/cloudwf/src/model/AreaDeleteResult.cc +++ b/cloudwf/src/model/AreaDeleteResult.cc @@ -35,10 +35,13 @@ AreaDeleteResult::~AreaDeleteResult() void AreaDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/AreaInfoRequest.cc b/cloudwf/src/model/AreaInfoRequest.cc index 06f7fd833..79b9eaf24 100644 --- a/cloudwf/src/model/AreaInfoRequest.cc +++ b/cloudwf/src/model/AreaInfoRequest.cc @@ -33,7 +33,7 @@ long AreaInfoRequest::getAid()const void AreaInfoRequest::setAid(long aid) { aid_ = aid; - setParameter("Aid", std::to_string(aid)); + setCoreParameter("Aid", std::to_string(aid)); } std::string AreaInfoRequest::getAccessKeyId()const @@ -44,7 +44,7 @@ std::string AreaInfoRequest::getAccessKeyId()const void AreaInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long AreaInfoRequest::getSid()const @@ -55,6 +55,6 @@ long AreaInfoRequest::getSid()const void AreaInfoRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/AreaInfoResult.cc b/cloudwf/src/model/AreaInfoResult.cc index 9976bbf31..6d3b9fa49 100644 --- a/cloudwf/src/model/AreaInfoResult.cc +++ b/cloudwf/src/model/AreaInfoResult.cc @@ -35,10 +35,13 @@ AreaInfoResult::~AreaInfoResult() void AreaInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/AreaShowListRequest.cc b/cloudwf/src/model/AreaShowListRequest.cc index 479d71ddf..749dea7f9 100644 --- a/cloudwf/src/model/AreaShowListRequest.cc +++ b/cloudwf/src/model/AreaShowListRequest.cc @@ -33,7 +33,7 @@ int AreaShowListRequest::getPage()const void AreaShowListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } int AreaShowListRequest::getPer()const @@ -44,7 +44,7 @@ int AreaShowListRequest::getPer()const void AreaShowListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } std::string AreaShowListRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string AreaShowListRequest::getAccessKeyId()const void AreaShowListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long AreaShowListRequest::getSid()const @@ -66,6 +66,6 @@ long AreaShowListRequest::getSid()const void AreaShowListRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/AreaShowListResult.cc b/cloudwf/src/model/AreaShowListResult.cc index 75763ad28..ef05646e3 100644 --- a/cloudwf/src/model/AreaShowListResult.cc +++ b/cloudwf/src/model/AreaShowListResult.cc @@ -35,10 +35,13 @@ AreaShowListResult::~AreaShowListResult() void AreaShowListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/AreaUpdateRequest.cc b/cloudwf/src/model/AreaUpdateRequest.cc index ae102fe61..be468ca92 100644 --- a/cloudwf/src/model/AreaUpdateRequest.cc +++ b/cloudwf/src/model/AreaUpdateRequest.cc @@ -33,7 +33,7 @@ std::string AreaUpdateRequest::getName()const void AreaUpdateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AreaUpdateRequest::getDids()const @@ -44,7 +44,7 @@ std::string AreaUpdateRequest::getDids()const void AreaUpdateRequest::setDids(const std::string& dids) { dids_ = dids; - setParameter("Dids", dids); + setCoreParameter("Dids", dids); } long AreaUpdateRequest::getAid()const @@ -55,7 +55,7 @@ long AreaUpdateRequest::getAid()const void AreaUpdateRequest::setAid(long aid) { aid_ = aid; - setParameter("Aid", std::to_string(aid)); + setCoreParameter("Aid", std::to_string(aid)); } std::string AreaUpdateRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string AreaUpdateRequest::getAccessKeyId()const void AreaUpdateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long AreaUpdateRequest::getSid()const @@ -77,6 +77,6 @@ long AreaUpdateRequest::getSid()const void AreaUpdateRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/AreaUpdateResult.cc b/cloudwf/src/model/AreaUpdateResult.cc index 26fc3153c..3bbea7845 100644 --- a/cloudwf/src/model/AreaUpdateResult.cc +++ b/cloudwf/src/model/AreaUpdateResult.cc @@ -35,10 +35,13 @@ AreaUpdateResult::~AreaUpdateResult() void AreaUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/BatchChangeGroupApNameRequest.cc b/cloudwf/src/model/BatchChangeGroupApNameRequest.cc index eec4aaa6c..04c90621e 100644 --- a/cloudwf/src/model/BatchChangeGroupApNameRequest.cc +++ b/cloudwf/src/model/BatchChangeGroupApNameRequest.cc @@ -33,7 +33,7 @@ std::string BatchChangeGroupApNameRequest::getJsonData()const void BatchChangeGroupApNameRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string BatchChangeGroupApNameRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string BatchChangeGroupApNameRequest::getAccessKeyId()const void BatchChangeGroupApNameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/BatchChangeGroupApNameResult.cc b/cloudwf/src/model/BatchChangeGroupApNameResult.cc index 8a946ef7f..f46464b49 100644 --- a/cloudwf/src/model/BatchChangeGroupApNameResult.cc +++ b/cloudwf/src/model/BatchChangeGroupApNameResult.cc @@ -35,10 +35,13 @@ BatchChangeGroupApNameResult::~BatchChangeGroupApNameResult() void BatchChangeGroupApNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/BatchRegisterApAssetRequest.cc b/cloudwf/src/model/BatchRegisterApAssetRequest.cc index 3fbd253fb..d6715ff84 100644 --- a/cloudwf/src/model/BatchRegisterApAssetRequest.cc +++ b/cloudwf/src/model/BatchRegisterApAssetRequest.cc @@ -33,7 +33,7 @@ std::string BatchRegisterApAssetRequest::getJsonData()const void BatchRegisterApAssetRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string BatchRegisterApAssetRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string BatchRegisterApAssetRequest::getAccessKeyId()const void BatchRegisterApAssetRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/BatchRegisterApAssetResult.cc b/cloudwf/src/model/BatchRegisterApAssetResult.cc index 6e816f40d..037349ca4 100644 --- a/cloudwf/src/model/BatchRegisterApAssetResult.cc +++ b/cloudwf/src/model/BatchRegisterApAssetResult.cc @@ -35,10 +35,13 @@ BatchRegisterApAssetResult::~BatchRegisterApAssetResult() void BatchRegisterApAssetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/BatchSaveApPositionRequest.cc b/cloudwf/src/model/BatchSaveApPositionRequest.cc index d8372f203..3b3104f9c 100644 --- a/cloudwf/src/model/BatchSaveApPositionRequest.cc +++ b/cloudwf/src/model/BatchSaveApPositionRequest.cc @@ -33,7 +33,7 @@ std::string BatchSaveApPositionRequest::getJsonData()const void BatchSaveApPositionRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string BatchSaveApPositionRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string BatchSaveApPositionRequest::getAccessKeyId()const void BatchSaveApPositionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/BatchSaveApPositionResult.cc b/cloudwf/src/model/BatchSaveApPositionResult.cc index 8b2f1380d..f9f1611a1 100644 --- a/cloudwf/src/model/BatchSaveApPositionResult.cc +++ b/cloudwf/src/model/BatchSaveApPositionResult.cc @@ -35,10 +35,13 @@ BatchSaveApPositionResult::~BatchSaveApPositionResult() void BatchSaveApPositionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/BusinessCreateRequest.cc b/cloudwf/src/model/BusinessCreateRequest.cc index 33c202ab4..34025bf29 100644 --- a/cloudwf/src/model/BusinessCreateRequest.cc +++ b/cloudwf/src/model/BusinessCreateRequest.cc @@ -33,7 +33,7 @@ std::string BusinessCreateRequest::getBusinessCity()const void BusinessCreateRequest::setBusinessCity(const std::string& businessCity) { businessCity_ = businessCity; - setParameter("BusinessCity", businessCity); + setCoreParameter("BusinessCity", businessCity); } std::string BusinessCreateRequest::getCombo()const @@ -44,7 +44,7 @@ std::string BusinessCreateRequest::getCombo()const void BusinessCreateRequest::setCombo(const std::string& combo) { combo_ = combo; - setParameter("Combo", combo); + setCoreParameter("Combo", combo); } std::string BusinessCreateRequest::getWarnEmail()const @@ -55,7 +55,7 @@ std::string BusinessCreateRequest::getWarnEmail()const void BusinessCreateRequest::setWarnEmail(const std::string& warnEmail) { warnEmail_ = warnEmail; - setParameter("WarnEmail", warnEmail); + setCoreParameter("WarnEmail", warnEmail); } std::string BusinessCreateRequest::getBusinessManager()const @@ -66,7 +66,7 @@ std::string BusinessCreateRequest::getBusinessManager()const void BusinessCreateRequest::setBusinessManager(const std::string& businessManager) { businessManager_ = businessManager; - setParameter("BusinessManager", businessManager); + setCoreParameter("BusinessManager", businessManager); } std::string BusinessCreateRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string BusinessCreateRequest::getAccessKeyId()const void BusinessCreateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int BusinessCreateRequest::getBusinessType()const @@ -88,7 +88,7 @@ int BusinessCreateRequest::getBusinessType()const void BusinessCreateRequest::setBusinessType(int businessType) { businessType_ = businessType; - setParameter("BusinessType", std::to_string(businessType)); + setCoreParameter("BusinessType", std::to_string(businessType)); } int BusinessCreateRequest::getWarn()const @@ -99,7 +99,7 @@ int BusinessCreateRequest::getWarn()const void BusinessCreateRequest::setWarn(int warn) { warn_ = warn; - setParameter("Warn", std::to_string(warn)); + setCoreParameter("Warn", std::to_string(warn)); } std::string BusinessCreateRequest::getBusinessName()const @@ -110,7 +110,7 @@ std::string BusinessCreateRequest::getBusinessName()const void BusinessCreateRequest::setBusinessName(const std::string& businessName) { businessName_ = businessName; - setParameter("BusinessName", businessName); + setCoreParameter("BusinessName", businessName); } int BusinessCreateRequest::getBusinessTopType()const @@ -121,7 +121,7 @@ int BusinessCreateRequest::getBusinessTopType()const void BusinessCreateRequest::setBusinessTopType(int businessTopType) { businessTopType_ = businessTopType; - setParameter("BusinessTopType", std::to_string(businessTopType)); + setCoreParameter("BusinessTopType", std::to_string(businessTopType)); } std::string BusinessCreateRequest::getBusinessAddress()const @@ -132,7 +132,7 @@ std::string BusinessCreateRequest::getBusinessAddress()const void BusinessCreateRequest::setBusinessAddress(const std::string& businessAddress) { businessAddress_ = businessAddress; - setParameter("BusinessAddress", businessAddress); + setCoreParameter("BusinessAddress", businessAddress); } std::string BusinessCreateRequest::getBusinessTel()const @@ -143,7 +143,7 @@ std::string BusinessCreateRequest::getBusinessTel()const void BusinessCreateRequest::setBusinessTel(const std::string& businessTel) { businessTel_ = businessTel; - setParameter("BusinessTel", businessTel); + setCoreParameter("BusinessTel", businessTel); } std::string BusinessCreateRequest::getBusinessProvince()const @@ -154,7 +154,7 @@ std::string BusinessCreateRequest::getBusinessProvince()const void BusinessCreateRequest::setBusinessProvince(const std::string& businessProvince) { businessProvince_ = businessProvince; - setParameter("BusinessProvince", businessProvince); + setCoreParameter("BusinessProvince", businessProvince); } int BusinessCreateRequest::getBusinessSubtype()const @@ -165,6 +165,6 @@ int BusinessCreateRequest::getBusinessSubtype()const void BusinessCreateRequest::setBusinessSubtype(int businessSubtype) { businessSubtype_ = businessSubtype; - setParameter("BusinessSubtype", std::to_string(businessSubtype)); + setCoreParameter("BusinessSubtype", std::to_string(businessSubtype)); } diff --git a/cloudwf/src/model/BusinessCreateResult.cc b/cloudwf/src/model/BusinessCreateResult.cc index ece594e29..e09f18776 100644 --- a/cloudwf/src/model/BusinessCreateResult.cc +++ b/cloudwf/src/model/BusinessCreateResult.cc @@ -35,10 +35,13 @@ BusinessCreateResult::~BusinessCreateResult() void BusinessCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/BusinessInfoRequest.cc b/cloudwf/src/model/BusinessInfoRequest.cc index f675ae3ea..1dc79f2d8 100644 --- a/cloudwf/src/model/BusinessInfoRequest.cc +++ b/cloudwf/src/model/BusinessInfoRequest.cc @@ -33,7 +33,7 @@ long BusinessInfoRequest::getBid()const void BusinessInfoRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string BusinessInfoRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string BusinessInfoRequest::getAccessKeyId()const void BusinessInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/BusinessInfoResult.cc b/cloudwf/src/model/BusinessInfoResult.cc index 84fcd5ec6..7ec098950 100644 --- a/cloudwf/src/model/BusinessInfoResult.cc +++ b/cloudwf/src/model/BusinessInfoResult.cc @@ -35,10 +35,13 @@ BusinessInfoResult::~BusinessInfoResult() void BusinessInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/BusinessShowListRequest.cc b/cloudwf/src/model/BusinessShowListRequest.cc index 7d8dfa60c..565369d6f 100644 --- a/cloudwf/src/model/BusinessShowListRequest.cc +++ b/cloudwf/src/model/BusinessShowListRequest.cc @@ -33,7 +33,7 @@ int BusinessShowListRequest::getPage()const void BusinessShowListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } int BusinessShowListRequest::getPer()const @@ -44,7 +44,7 @@ int BusinessShowListRequest::getPer()const void BusinessShowListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } std::string BusinessShowListRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string BusinessShowListRequest::getAccessKeyId()const void BusinessShowListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/BusinessShowListResult.cc b/cloudwf/src/model/BusinessShowListResult.cc index 6dbf667d2..1ef0f69cc 100644 --- a/cloudwf/src/model/BusinessShowListResult.cc +++ b/cloudwf/src/model/BusinessShowListResult.cc @@ -35,10 +35,13 @@ BusinessShowListResult::~BusinessShowListResult() void BusinessShowListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/BusinessUpdateRequest.cc b/cloudwf/src/model/BusinessUpdateRequest.cc index 037fe5a62..d953ff03e 100644 --- a/cloudwf/src/model/BusinessUpdateRequest.cc +++ b/cloudwf/src/model/BusinessUpdateRequest.cc @@ -33,7 +33,7 @@ int BusinessUpdateRequest::getWarn()const void BusinessUpdateRequest::setWarn(int warn) { warn_ = warn; - setParameter("Warn", std::to_string(warn)); + setCoreParameter("Warn", std::to_string(warn)); } std::string BusinessUpdateRequest::getBusinessCity()const @@ -44,7 +44,7 @@ std::string BusinessUpdateRequest::getBusinessCity()const void BusinessUpdateRequest::setBusinessCity(const std::string& businessCity) { businessCity_ = businessCity; - setParameter("BusinessCity", businessCity); + setCoreParameter("BusinessCity", businessCity); } std::string BusinessUpdateRequest::getWarnEmail()const @@ -55,7 +55,7 @@ std::string BusinessUpdateRequest::getWarnEmail()const void BusinessUpdateRequest::setWarnEmail(const std::string& warnEmail) { warnEmail_ = warnEmail; - setParameter("WarnEmail", warnEmail); + setCoreParameter("WarnEmail", warnEmail); } std::string BusinessUpdateRequest::getBusinessAddress()const @@ -66,7 +66,7 @@ std::string BusinessUpdateRequest::getBusinessAddress()const void BusinessUpdateRequest::setBusinessAddress(const std::string& businessAddress) { businessAddress_ = businessAddress; - setParameter("BusinessAddress", businessAddress); + setCoreParameter("BusinessAddress", businessAddress); } long BusinessUpdateRequest::getBid()const @@ -77,7 +77,7 @@ long BusinessUpdateRequest::getBid()const void BusinessUpdateRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string BusinessUpdateRequest::getBusinessManager()const @@ -88,7 +88,7 @@ std::string BusinessUpdateRequest::getBusinessManager()const void BusinessUpdateRequest::setBusinessManager(const std::string& businessManager) { businessManager_ = businessManager; - setParameter("BusinessManager", businessManager); + setCoreParameter("BusinessManager", businessManager); } std::string BusinessUpdateRequest::getBusinessProvince()const @@ -99,7 +99,7 @@ std::string BusinessUpdateRequest::getBusinessProvince()const void BusinessUpdateRequest::setBusinessProvince(const std::string& businessProvince) { businessProvince_ = businessProvince; - setParameter("BusinessProvince", businessProvince); + setCoreParameter("BusinessProvince", businessProvince); } std::string BusinessUpdateRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string BusinessUpdateRequest::getAccessKeyId()const void BusinessUpdateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/BusinessUpdateResult.cc b/cloudwf/src/model/BusinessUpdateResult.cc index 8dd731a9e..2d0357c15 100644 --- a/cloudwf/src/model/BusinessUpdateResult.cc +++ b/cloudwf/src/model/BusinessUpdateResult.cc @@ -35,10 +35,13 @@ BusinessUpdateResult::~BusinessUpdateResult() void BusinessUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/CeaseInstanceRequest.cc b/cloudwf/src/model/CeaseInstanceRequest.cc index b0eb5b761..4703946fa 100644 --- a/cloudwf/src/model/CeaseInstanceRequest.cc +++ b/cloudwf/src/model/CeaseInstanceRequest.cc @@ -33,7 +33,7 @@ std::string CeaseInstanceRequest::getTraceId()const void CeaseInstanceRequest::setTraceId(const std::string& traceId) { traceId_ = traceId; - setParameter("TraceId", traceId); + setCoreParameter("TraceId", traceId); } std::string CeaseInstanceRequest::getSpMsg()const @@ -44,7 +44,7 @@ std::string CeaseInstanceRequest::getSpMsg()const void CeaseInstanceRequest::setSpMsg(const std::string& spMsg) { spMsg_ = spMsg; - setParameter("SpMsg", spMsg); + setCoreParameter("SpMsg", spMsg); } std::string CeaseInstanceRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string CeaseInstanceRequest::getAccessKeyId()const void CeaseInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/CeaseInstanceResult.cc b/cloudwf/src/model/CeaseInstanceResult.cc index 5f6cf34bb..d5dee7874 100644 --- a/cloudwf/src/model/CeaseInstanceResult.cc +++ b/cloudwf/src/model/CeaseInstanceResult.cc @@ -35,10 +35,13 @@ CeaseInstanceResult::~CeaseInstanceResult() void CeaseInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/CheckRootPermissionRequest.cc b/cloudwf/src/model/CheckRootPermissionRequest.cc index f623354e2..151a35a09 100644 --- a/cloudwf/src/model/CheckRootPermissionRequest.cc +++ b/cloudwf/src/model/CheckRootPermissionRequest.cc @@ -33,6 +33,6 @@ std::string CheckRootPermissionRequest::getAccessKeyId()const void CheckRootPermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/CheckRootPermissionResult.cc b/cloudwf/src/model/CheckRootPermissionResult.cc index 4f7d09d07..b081f8b48 100644 --- a/cloudwf/src/model/CheckRootPermissionResult.cc +++ b/cloudwf/src/model/CheckRootPermissionResult.cc @@ -35,10 +35,13 @@ CheckRootPermissionResult::~CheckRootPermissionResult() void CheckRootPermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/CheckUmengDataAnalysisPermissionRequest.cc b/cloudwf/src/model/CheckUmengDataAnalysisPermissionRequest.cc index b2f21bed8..67a1f250a 100644 --- a/cloudwf/src/model/CheckUmengDataAnalysisPermissionRequest.cc +++ b/cloudwf/src/model/CheckUmengDataAnalysisPermissionRequest.cc @@ -33,6 +33,6 @@ std::string CheckUmengDataAnalysisPermissionRequest::getAccessKeyId()const void CheckUmengDataAnalysisPermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/CheckUmengDataAnalysisPermissionResult.cc b/cloudwf/src/model/CheckUmengDataAnalysisPermissionResult.cc index 8989bc755..ac15dddb2 100644 --- a/cloudwf/src/model/CheckUmengDataAnalysisPermissionResult.cc +++ b/cloudwf/src/model/CheckUmengDataAnalysisPermissionResult.cc @@ -35,10 +35,13 @@ CheckUmengDataAnalysisPermissionResult::~CheckUmengDataAnalysisPermissionResult( void CheckUmengDataAnalysisPermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ConfigAutoRenewRequest.cc b/cloudwf/src/model/ConfigAutoRenewRequest.cc index d48b02606..fed212cae 100644 --- a/cloudwf/src/model/ConfigAutoRenewRequest.cc +++ b/cloudwf/src/model/ConfigAutoRenewRequest.cc @@ -33,7 +33,7 @@ int ConfigAutoRenewRequest::getOffsetDays()const void ConfigAutoRenewRequest::setOffsetDays(int offsetDays) { offsetDays_ = offsetDays; - setParameter("OffsetDays", std::to_string(offsetDays)); + setCoreParameter("OffsetDays", std::to_string(offsetDays)); } int ConfigAutoRenewRequest::getMonths()const @@ -44,7 +44,7 @@ int ConfigAutoRenewRequest::getMonths()const void ConfigAutoRenewRequest::setMonths(int months) { months_ = months; - setParameter("Months", std::to_string(months)); + setCoreParameter("Months", std::to_string(months)); } bool ConfigAutoRenewRequest::getAutoRenew()const @@ -55,7 +55,7 @@ bool ConfigAutoRenewRequest::getAutoRenew()const void ConfigAutoRenewRequest::setAutoRenew(bool autoRenew) { autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew ? "true" : "false"); + setCoreParameter("AutoRenew", autoRenew ? "true" : "false"); } std::vector ConfigAutoRenewRequest::getApList()const @@ -67,7 +67,7 @@ void ConfigAutoRenewRequest::setApList(const std::vector& apList) { apList_ = apList; for(int i = 0; i!= apList.size(); i++) - setParameter("ApList."+ std::to_string(i), apList.at(i)); + setCoreParameter("ApList."+ std::to_string(i), apList.at(i)); } std::string ConfigAutoRenewRequest::getAccessKeyId()const @@ -78,6 +78,6 @@ std::string ConfigAutoRenewRequest::getAccessKeyId()const void ConfigAutoRenewRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ConfigAutoRenewResult.cc b/cloudwf/src/model/ConfigAutoRenewResult.cc index 570a9a918..9b4a75c5c 100644 --- a/cloudwf/src/model/ConfigAutoRenewResult.cc +++ b/cloudwf/src/model/ConfigAutoRenewResult.cc @@ -35,10 +35,13 @@ ConfigAutoRenewResult::~ConfigAutoRenewResult() void ConfigAutoRenewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/CreateRenewOrderRequest.cc b/cloudwf/src/model/CreateRenewOrderRequest.cc index 236578de4..259d1a101 100644 --- a/cloudwf/src/model/CreateRenewOrderRequest.cc +++ b/cloudwf/src/model/CreateRenewOrderRequest.cc @@ -33,7 +33,7 @@ int CreateRenewOrderRequest::getTimeCycleNum()const void CreateRenewOrderRequest::setTimeCycleNum(int timeCycleNum) { timeCycleNum_ = timeCycleNum; - setParameter("TimeCycleNum", std::to_string(timeCycleNum)); + setCoreParameter("TimeCycleNum", std::to_string(timeCycleNum)); } std::vector CreateRenewOrderRequest::getApList()const @@ -45,7 +45,7 @@ void CreateRenewOrderRequest::setApList(const std::vector& apList) { apList_ = apList; for(int i = 0; i!= apList.size(); i++) - setParameter("ApList."+ std::to_string(i), apList.at(i)); + setCoreParameter("ApList."+ std::to_string(i), apList.at(i)); } std::string CreateRenewOrderRequest::getAccessKeyId()const @@ -56,6 +56,6 @@ std::string CreateRenewOrderRequest::getAccessKeyId()const void CreateRenewOrderRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/CreateRenewOrderResult.cc b/cloudwf/src/model/CreateRenewOrderResult.cc index fc1039a5f..533eb744b 100644 --- a/cloudwf/src/model/CreateRenewOrderResult.cc +++ b/cloudwf/src/model/CreateRenewOrderResult.cc @@ -35,10 +35,13 @@ CreateRenewOrderResult::~CreateRenewOrderResult() void CreateRenewOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/CreateSubAccountPermissionRequest.cc b/cloudwf/src/model/CreateSubAccountPermissionRequest.cc index ad9b8da4b..f648cc190 100644 --- a/cloudwf/src/model/CreateSubAccountPermissionRequest.cc +++ b/cloudwf/src/model/CreateSubAccountPermissionRequest.cc @@ -33,7 +33,7 @@ long CreateSubAccountPermissionRequest::getUid()const void CreateSubAccountPermissionRequest::setUid(long uid) { uid_ = uid; - setParameter("Uid", std::to_string(uid)); + setCoreParameter("Uid", std::to_string(uid)); } std::vector CreateSubAccountPermissionRequest::getShopGroupIds()const @@ -45,7 +45,7 @@ void CreateSubAccountPermissionRequest::setShopGroupIds(const std::vector& { shopGroupIds_ = shopGroupIds; for(int i = 0; i!= shopGroupIds.size(); i++) - setParameter("ShopGroupIds."+ std::to_string(i), std::to_string(shopGroupIds.at(i))); + setCoreParameter("ShopGroupIds."+ std::to_string(i), std::to_string(shopGroupIds.at(i))); } std::vector CreateSubAccountPermissionRequest::getShopIds()const @@ -57,7 +57,7 @@ void CreateSubAccountPermissionRequest::setShopIds(const std::vector& shop { shopIds_ = shopIds; for(int i = 0; i!= shopIds.size(); i++) - setParameter("ShopIds."+ std::to_string(i), std::to_string(shopIds.at(i))); + setCoreParameter("ShopIds."+ std::to_string(i), std::to_string(shopIds.at(i))); } std::string CreateSubAccountPermissionRequest::getPagePermission()const @@ -68,7 +68,7 @@ std::string CreateSubAccountPermissionRequest::getPagePermission()const void CreateSubAccountPermissionRequest::setPagePermission(const std::string& pagePermission) { pagePermission_ = pagePermission; - setParameter("PagePermission", pagePermission); + setCoreParameter("PagePermission", pagePermission); } std::string CreateSubAccountPermissionRequest::getAccessKeyId()const @@ -79,7 +79,7 @@ std::string CreateSubAccountPermissionRequest::getAccessKeyId()const void CreateSubAccountPermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int CreateSubAccountPermissionRequest::getPermissionType()const @@ -90,7 +90,7 @@ int CreateSubAccountPermissionRequest::getPermissionType()const void CreateSubAccountPermissionRequest::setPermissionType(int permissionType) { permissionType_ = permissionType; - setParameter("PermissionType", std::to_string(permissionType)); + setCoreParameter("PermissionType", std::to_string(permissionType)); } std::vector CreateSubAccountPermissionRequest::getBusinessIds()const @@ -102,6 +102,6 @@ void CreateSubAccountPermissionRequest::setBusinessIds(const std::vector& { businessIds_ = businessIds; for(int i = 0; i!= businessIds.size(); i++) - setParameter("BusinessIds."+ std::to_string(i), std::to_string(businessIds.at(i))); + setCoreParameter("BusinessIds."+ std::to_string(i), std::to_string(businessIds.at(i))); } diff --git a/cloudwf/src/model/CreateSubAccountPermissionResult.cc b/cloudwf/src/model/CreateSubAccountPermissionResult.cc index 899cff723..12bf95082 100644 --- a/cloudwf/src/model/CreateSubAccountPermissionResult.cc +++ b/cloudwf/src/model/CreateSubAccountPermissionResult.cc @@ -35,10 +35,13 @@ CreateSubAccountPermissionResult::~CreateSubAccountPermissionResult() void CreateSubAccountPermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DelApPositionRequest.cc b/cloudwf/src/model/DelApPositionRequest.cc index 1b0961d75..ded7be5bf 100644 --- a/cloudwf/src/model/DelApPositionRequest.cc +++ b/cloudwf/src/model/DelApPositionRequest.cc @@ -33,7 +33,7 @@ long DelApPositionRequest::getApAssetId()const void DelApPositionRequest::setApAssetId(long apAssetId) { apAssetId_ = apAssetId; - setParameter("ApAssetId", std::to_string(apAssetId)); + setCoreParameter("ApAssetId", std::to_string(apAssetId)); } long DelApPositionRequest::getMapId()const @@ -44,7 +44,7 @@ long DelApPositionRequest::getMapId()const void DelApPositionRequest::setMapId(long mapId) { mapId_ = mapId; - setParameter("MapId", std::to_string(mapId)); + setCoreParameter("MapId", std::to_string(mapId)); } std::string DelApPositionRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DelApPositionRequest::getAccessKeyId()const void DelApPositionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DelApPositionResult.cc b/cloudwf/src/model/DelApPositionResult.cc index 553dd63a2..a4cbeb53d 100644 --- a/cloudwf/src/model/DelApPositionResult.cc +++ b/cloudwf/src/model/DelApPositionResult.cc @@ -35,10 +35,13 @@ DelApPositionResult::~DelApPositionResult() void DelApPositionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DelPageConfigTemplateRequest.cc b/cloudwf/src/model/DelPageConfigTemplateRequest.cc index 10e47f4b2..cfd4b3b1e 100644 --- a/cloudwf/src/model/DelPageConfigTemplateRequest.cc +++ b/cloudwf/src/model/DelPageConfigTemplateRequest.cc @@ -33,7 +33,7 @@ long DelPageConfigTemplateRequest::getId()const void DelPageConfigTemplateRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string DelPageConfigTemplateRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DelPageConfigTemplateRequest::getAccessKeyId()const void DelPageConfigTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DelPageConfigTemplateResult.cc b/cloudwf/src/model/DelPageConfigTemplateResult.cc index 9fa4a1f4b..0f7632002 100644 --- a/cloudwf/src/model/DelPageConfigTemplateResult.cc +++ b/cloudwf/src/model/DelPageConfigTemplateResult.cc @@ -35,10 +35,13 @@ DelPageConfigTemplateResult::~DelPageConfigTemplateResult() void DelPageConfigTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DelPortalTempRequest.cc b/cloudwf/src/model/DelPortalTempRequest.cc index 717974836..08fac8fc7 100644 --- a/cloudwf/src/model/DelPortalTempRequest.cc +++ b/cloudwf/src/model/DelPortalTempRequest.cc @@ -33,7 +33,7 @@ long DelPortalTempRequest::getId()const void DelPortalTempRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string DelPortalTempRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DelPortalTempRequest::getAccessKeyId()const void DelPortalTempRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DelPortalTempResult.cc b/cloudwf/src/model/DelPortalTempResult.cc index f5d007005..1074b9bc8 100644 --- a/cloudwf/src/model/DelPortalTempResult.cc +++ b/cloudwf/src/model/DelPortalTempResult.cc @@ -35,10 +35,13 @@ DelPortalTempResult::~DelPortalTempResult() void DelPortalTempResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DelSubAccountPermissionRequest.cc b/cloudwf/src/model/DelSubAccountPermissionRequest.cc index a04eb8ef8..8b0b66257 100644 --- a/cloudwf/src/model/DelSubAccountPermissionRequest.cc +++ b/cloudwf/src/model/DelSubAccountPermissionRequest.cc @@ -33,7 +33,7 @@ long DelSubAccountPermissionRequest::getId()const void DelSubAccountPermissionRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string DelSubAccountPermissionRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DelSubAccountPermissionRequest::getAccessKeyId()const void DelSubAccountPermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DelSubAccountPermissionResult.cc b/cloudwf/src/model/DelSubAccountPermissionResult.cc index 1ed863796..35f2f99db 100644 --- a/cloudwf/src/model/DelSubAccountPermissionResult.cc +++ b/cloudwf/src/model/DelSubAccountPermissionResult.cc @@ -35,10 +35,13 @@ DelSubAccountPermissionResult::~DelSubAccountPermissionResult() void DelSubAccountPermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DelUmengPagePermission4RootRequest.cc b/cloudwf/src/model/DelUmengPagePermission4RootRequest.cc index 9fabae63d..54569b2f9 100644 --- a/cloudwf/src/model/DelUmengPagePermission4RootRequest.cc +++ b/cloudwf/src/model/DelUmengPagePermission4RootRequest.cc @@ -33,7 +33,7 @@ long DelUmengPagePermission4RootRequest::getId()const void DelUmengPagePermission4RootRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string DelUmengPagePermission4RootRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DelUmengPagePermission4RootRequest::getAccessKeyId()const void DelUmengPagePermission4RootRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DelUmengPagePermission4RootResult.cc b/cloudwf/src/model/DelUmengPagePermission4RootResult.cc index 5943a9500..8dbc26db0 100644 --- a/cloudwf/src/model/DelUmengPagePermission4RootResult.cc +++ b/cloudwf/src/model/DelUmengPagePermission4RootResult.cc @@ -35,10 +35,13 @@ DelUmengPagePermission4RootResult::~DelUmengPagePermission4RootResult() void DelUmengPagePermission4RootResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeleteApRadioSsidConfigRequest.cc b/cloudwf/src/model/DeleteApRadioSsidConfigRequest.cc index d725490fb..3da3018f4 100644 --- a/cloudwf/src/model/DeleteApRadioSsidConfigRequest.cc +++ b/cloudwf/src/model/DeleteApRadioSsidConfigRequest.cc @@ -33,7 +33,7 @@ int DeleteApRadioSsidConfigRequest::getInstantlyEffective()const void DeleteApRadioSsidConfigRequest::setInstantlyEffective(int instantlyEffective) { instantlyEffective_ = instantlyEffective; - setParameter("InstantlyEffective", std::to_string(instantlyEffective)); + setCoreParameter("InstantlyEffective", std::to_string(instantlyEffective)); } long DeleteApRadioSsidConfigRequest::getId()const @@ -44,7 +44,7 @@ long DeleteApRadioSsidConfigRequest::getId()const void DeleteApRadioSsidConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string DeleteApRadioSsidConfigRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeleteApRadioSsidConfigRequest::getAccessKeyId()const void DeleteApRadioSsidConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DeleteApRadioSsidConfigResult.cc b/cloudwf/src/model/DeleteApRadioSsidConfigResult.cc index 473dd2621..bb8156af8 100644 --- a/cloudwf/src/model/DeleteApRadioSsidConfigResult.cc +++ b/cloudwf/src/model/DeleteApRadioSsidConfigResult.cc @@ -35,10 +35,13 @@ DeleteApRadioSsidConfigResult::~DeleteApRadioSsidConfigResult() void DeleteApRadioSsidConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeleteApgroupConfigRequest.cc b/cloudwf/src/model/DeleteApgroupConfigRequest.cc index 2765a77cb..ff44a2c99 100644 --- a/cloudwf/src/model/DeleteApgroupConfigRequest.cc +++ b/cloudwf/src/model/DeleteApgroupConfigRequest.cc @@ -33,7 +33,7 @@ long DeleteApgroupConfigRequest::getId()const void DeleteApgroupConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string DeleteApgroupConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DeleteApgroupConfigRequest::getAccessKeyId()const void DeleteApgroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DeleteApgroupConfigResult.cc b/cloudwf/src/model/DeleteApgroupConfigResult.cc index c5edd8002..b1c3fad1a 100644 --- a/cloudwf/src/model/DeleteApgroupConfigResult.cc +++ b/cloudwf/src/model/DeleteApgroupConfigResult.cc @@ -35,10 +35,13 @@ DeleteApgroupConfigResult::~DeleteApgroupConfigResult() void DeleteApgroupConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeleteApgroupSsidConfigRequest.cc b/cloudwf/src/model/DeleteApgroupSsidConfigRequest.cc index 0122790e0..8596afa97 100644 --- a/cloudwf/src/model/DeleteApgroupSsidConfigRequest.cc +++ b/cloudwf/src/model/DeleteApgroupSsidConfigRequest.cc @@ -33,7 +33,7 @@ long DeleteApgroupSsidConfigRequest::getApgroupId()const void DeleteApgroupSsidConfigRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } long DeleteApgroupSsidConfigRequest::getId()const @@ -44,7 +44,7 @@ long DeleteApgroupSsidConfigRequest::getId()const void DeleteApgroupSsidConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string DeleteApgroupSsidConfigRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeleteApgroupSsidConfigRequest::getAccessKeyId()const void DeleteApgroupSsidConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DeleteApgroupSsidConfigResult.cc b/cloudwf/src/model/DeleteApgroupSsidConfigResult.cc index b79fcc0ae..b81a0e74f 100644 --- a/cloudwf/src/model/DeleteApgroupSsidConfigResult.cc +++ b/cloudwf/src/model/DeleteApgroupSsidConfigResult.cc @@ -35,10 +35,13 @@ DeleteApgroupSsidConfigResult::~DeleteApgroupSsidConfigResult() void DeleteApgroupSsidConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeletePositionMapRequest.cc b/cloudwf/src/model/DeletePositionMapRequest.cc index 6ee37f076..9ff4a5b09 100644 --- a/cloudwf/src/model/DeletePositionMapRequest.cc +++ b/cloudwf/src/model/DeletePositionMapRequest.cc @@ -33,7 +33,7 @@ long DeletePositionMapRequest::getMapId()const void DeletePositionMapRequest::setMapId(long mapId) { mapId_ = mapId; - setParameter("MapId", std::to_string(mapId)); + setCoreParameter("MapId", std::to_string(mapId)); } std::string DeletePositionMapRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DeletePositionMapRequest::getAccessKeyId()const void DeletePositionMapRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DeletePositionMapResult.cc b/cloudwf/src/model/DeletePositionMapResult.cc index 1ea29e0ff..be7b93e83 100644 --- a/cloudwf/src/model/DeletePositionMapResult.cc +++ b/cloudwf/src/model/DeletePositionMapResult.cc @@ -35,10 +35,13 @@ DeletePositionMapResult::~DeletePositionMapResult() void DeletePositionMapResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeviceBatchCreateRequest.cc b/cloudwf/src/model/DeviceBatchCreateRequest.cc index 8c82a3356..aae91df73 100644 --- a/cloudwf/src/model/DeviceBatchCreateRequest.cc +++ b/cloudwf/src/model/DeviceBatchCreateRequest.cc @@ -33,7 +33,7 @@ std::string DeviceBatchCreateRequest::getSn()const void DeviceBatchCreateRequest::setSn(const std::string& sn) { sn_ = sn; - setParameter("Sn", sn); + setCoreParameter("Sn", sn); } int DeviceBatchCreateRequest::getDeviceType()const @@ -44,7 +44,7 @@ int DeviceBatchCreateRequest::getDeviceType()const void DeviceBatchCreateRequest::setDeviceType(int deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", std::to_string(deviceType)); + setCoreParameter("DeviceType", std::to_string(deviceType)); } std::string DeviceBatchCreateRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeviceBatchCreateRequest::getAccessKeyId()const void DeviceBatchCreateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DeviceBatchCreateResult.cc b/cloudwf/src/model/DeviceBatchCreateResult.cc index 338109703..2385c3de7 100644 --- a/cloudwf/src/model/DeviceBatchCreateResult.cc +++ b/cloudwf/src/model/DeviceBatchCreateResult.cc @@ -35,10 +35,13 @@ DeviceBatchCreateResult::~DeviceBatchCreateResult() void DeviceBatchCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeviceCreateRequest.cc b/cloudwf/src/model/DeviceCreateRequest.cc index b7eff40f4..4a9738ce4 100644 --- a/cloudwf/src/model/DeviceCreateRequest.cc +++ b/cloudwf/src/model/DeviceCreateRequest.cc @@ -33,7 +33,7 @@ std::string DeviceCreateRequest::getDeviceNum()const void DeviceCreateRequest::setDeviceNum(const std::string& deviceNum) { deviceNum_ = deviceNum; - setParameter("DeviceNum", deviceNum); + setCoreParameter("DeviceNum", deviceNum); } std::string DeviceCreateRequest::getDevicePosition()const @@ -44,7 +44,7 @@ std::string DeviceCreateRequest::getDevicePosition()const void DeviceCreateRequest::setDevicePosition(const std::string& devicePosition) { devicePosition_ = devicePosition; - setParameter("DevicePosition", devicePosition); + setCoreParameter("DevicePosition", devicePosition); } std::string DeviceCreateRequest::getDeviceName()const @@ -55,7 +55,7 @@ std::string DeviceCreateRequest::getDeviceName()const void DeviceCreateRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } int DeviceCreateRequest::getDeviceType()const @@ -66,7 +66,7 @@ int DeviceCreateRequest::getDeviceType()const void DeviceCreateRequest::setDeviceType(int deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", std::to_string(deviceType)); + setCoreParameter("DeviceType", std::to_string(deviceType)); } std::string DeviceCreateRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string DeviceCreateRequest::getAccessKeyId()const void DeviceCreateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long DeviceCreateRequest::getSid()const @@ -88,6 +88,6 @@ long DeviceCreateRequest::getSid()const void DeviceCreateRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/DeviceCreateResult.cc b/cloudwf/src/model/DeviceCreateResult.cc index 440dc19f7..5fc063ed1 100644 --- a/cloudwf/src/model/DeviceCreateResult.cc +++ b/cloudwf/src/model/DeviceCreateResult.cc @@ -35,10 +35,13 @@ DeviceCreateResult::~DeviceCreateResult() void DeviceCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeviceDeleteRequest.cc b/cloudwf/src/model/DeviceDeleteRequest.cc index 18f435928..ccb88d13f 100644 --- a/cloudwf/src/model/DeviceDeleteRequest.cc +++ b/cloudwf/src/model/DeviceDeleteRequest.cc @@ -33,7 +33,7 @@ long DeviceDeleteRequest::getDid()const void DeviceDeleteRequest::setDid(long did) { did_ = did; - setParameter("Did", std::to_string(did)); + setCoreParameter("Did", std::to_string(did)); } std::string DeviceDeleteRequest::getMac()const @@ -44,7 +44,7 @@ std::string DeviceDeleteRequest::getMac()const void DeviceDeleteRequest::setMac(const std::string& mac) { mac_ = mac; - setParameter("Mac", mac); + setCoreParameter("Mac", mac); } std::string DeviceDeleteRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeviceDeleteRequest::getAccessKeyId()const void DeviceDeleteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DeviceDeleteResult.cc b/cloudwf/src/model/DeviceDeleteResult.cc index 1391efd84..ac685870c 100644 --- a/cloudwf/src/model/DeviceDeleteResult.cc +++ b/cloudwf/src/model/DeviceDeleteResult.cc @@ -35,10 +35,13 @@ DeviceDeleteResult::~DeviceDeleteResult() void DeviceDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeviceShowListRequest.cc b/cloudwf/src/model/DeviceShowListRequest.cc index 2905e7c96..bd9fd918c 100644 --- a/cloudwf/src/model/DeviceShowListRequest.cc +++ b/cloudwf/src/model/DeviceShowListRequest.cc @@ -33,7 +33,7 @@ std::string DeviceShowListRequest::getDirc()const void DeviceShowListRequest::setDirc(const std::string& dirc) { dirc_ = dirc; - setParameter("Dirc", dirc); + setCoreParameter("Dirc", dirc); } int DeviceShowListRequest::getPage()const @@ -44,7 +44,7 @@ int DeviceShowListRequest::getPage()const void DeviceShowListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } int DeviceShowListRequest::getPer()const @@ -55,7 +55,7 @@ int DeviceShowListRequest::getPer()const void DeviceShowListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } int DeviceShowListRequest::getDeviceType()const @@ -66,7 +66,7 @@ int DeviceShowListRequest::getDeviceType()const void DeviceShowListRequest::setDeviceType(int deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", std::to_string(deviceType)); + setCoreParameter("DeviceType", std::to_string(deviceType)); } std::string DeviceShowListRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string DeviceShowListRequest::getAccessKeyId()const void DeviceShowListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long DeviceShowListRequest::getSid()const @@ -88,6 +88,6 @@ long DeviceShowListRequest::getSid()const void DeviceShowListRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/DeviceShowListResult.cc b/cloudwf/src/model/DeviceShowListResult.cc index c11f9d132..d3ff05762 100644 --- a/cloudwf/src/model/DeviceShowListResult.cc +++ b/cloudwf/src/model/DeviceShowListResult.cc @@ -35,10 +35,13 @@ DeviceShowListResult::~DeviceShowListResult() void DeviceShowListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/DeviceUpdateRequest.cc b/cloudwf/src/model/DeviceUpdateRequest.cc index 1e874e9f0..b25d4e401 100644 --- a/cloudwf/src/model/DeviceUpdateRequest.cc +++ b/cloudwf/src/model/DeviceUpdateRequest.cc @@ -33,7 +33,7 @@ std::string DeviceUpdateRequest::getDevicePosition()const void DeviceUpdateRequest::setDevicePosition(const std::string& devicePosition) { devicePosition_ = devicePosition; - setParameter("DevicePosition", devicePosition); + setCoreParameter("DevicePosition", devicePosition); } std::string DeviceUpdateRequest::getDeviceName()const @@ -44,7 +44,7 @@ std::string DeviceUpdateRequest::getDeviceName()const void DeviceUpdateRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } long DeviceUpdateRequest::getDid()const @@ -55,7 +55,7 @@ long DeviceUpdateRequest::getDid()const void DeviceUpdateRequest::setDid(long did) { did_ = did; - setParameter("Did", std::to_string(did)); + setCoreParameter("Did", std::to_string(did)); } std::string DeviceUpdateRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeviceUpdateRequest::getAccessKeyId()const void DeviceUpdateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/DeviceUpdateResult.cc b/cloudwf/src/model/DeviceUpdateResult.cc index 259eebb18..4f2b5018b 100644 --- a/cloudwf/src/model/DeviceUpdateResult.cc +++ b/cloudwf/src/model/DeviceUpdateResult.cc @@ -35,10 +35,13 @@ DeviceUpdateResult::~DeviceUpdateResult() void DeviceUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ExcelToJsonRequest.cc b/cloudwf/src/model/ExcelToJsonRequest.cc index 027b57cad..ee0f684c4 100644 --- a/cloudwf/src/model/ExcelToJsonRequest.cc +++ b/cloudwf/src/model/ExcelToJsonRequest.cc @@ -33,7 +33,7 @@ std::string ExcelToJsonRequest::getUploadData()const void ExcelToJsonRequest::setUploadData(const std::string& uploadData) { uploadData_ = uploadData; - setParameter("UploadData", uploadData); + setCoreParameter("UploadData", uploadData); } std::string ExcelToJsonRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ExcelToJsonRequest::getAccessKeyId()const void ExcelToJsonRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ExcelToJsonResult.cc b/cloudwf/src/model/ExcelToJsonResult.cc index 49cf9a8e8..cb71706ed 100644 --- a/cloudwf/src/model/ExcelToJsonResult.cc +++ b/cloudwf/src/model/ExcelToJsonResult.cc @@ -35,10 +35,13 @@ ExcelToJsonResult::~ExcelToJsonResult() void ExcelToJsonResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/FindApRequest.cc b/cloudwf/src/model/FindApRequest.cc index cb6532b67..881aff5a6 100644 --- a/cloudwf/src/model/FindApRequest.cc +++ b/cloudwf/src/model/FindApRequest.cc @@ -33,7 +33,7 @@ long FindApRequest::getId()const void FindApRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string FindApRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string FindApRequest::getAccessKeyId()const void FindApRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/FindApResult.cc b/cloudwf/src/model/FindApResult.cc index 7ad6eb19e..c6cd3036f 100644 --- a/cloudwf/src/model/FindApResult.cc +++ b/cloudwf/src/model/FindApResult.cc @@ -35,10 +35,13 @@ FindApResult::~FindApResult() void FindApResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/FrequencyAnalyseRequest.cc b/cloudwf/src/model/FrequencyAnalyseRequest.cc index 9c4ebd543..3d4f4de2c 100644 --- a/cloudwf/src/model/FrequencyAnalyseRequest.cc +++ b/cloudwf/src/model/FrequencyAnalyseRequest.cc @@ -33,7 +33,7 @@ long FrequencyAnalyseRequest::getGsid()const void FrequencyAnalyseRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string FrequencyAnalyseRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string FrequencyAnalyseRequest::getAccessKeyId()const void FrequencyAnalyseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/FrequencyAnalyseResult.cc b/cloudwf/src/model/FrequencyAnalyseResult.cc index 1321074e6..d5d2bf479 100644 --- a/cloudwf/src/model/FrequencyAnalyseResult.cc +++ b/cloudwf/src/model/FrequencyAnalyseResult.cc @@ -35,10 +35,13 @@ FrequencyAnalyseResult::~FrequencyAnalyseResult() void FrequencyAnalyseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetAccountConfigRequest.cc b/cloudwf/src/model/GetAccountConfigRequest.cc index f66ca3d7b..c5a0ff0df 100644 --- a/cloudwf/src/model/GetAccountConfigRequest.cc +++ b/cloudwf/src/model/GetAccountConfigRequest.cc @@ -33,7 +33,7 @@ long GetAccountConfigRequest::getId()const void GetAccountConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetAccountConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetAccountConfigRequest::getAccessKeyId()const void GetAccountConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetAccountConfigResult.cc b/cloudwf/src/model/GetAccountConfigResult.cc index e0ae5345e..a121e3fde 100644 --- a/cloudwf/src/model/GetAccountConfigResult.cc +++ b/cloudwf/src/model/GetAccountConfigResult.cc @@ -35,10 +35,13 @@ GetAccountConfigResult::~GetAccountConfigResult() void GetAccountConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetAddApsProgressRequest.cc b/cloudwf/src/model/GetAddApsProgressRequest.cc index 63a14580b..a8d0f79ce 100644 --- a/cloudwf/src/model/GetAddApsProgressRequest.cc +++ b/cloudwf/src/model/GetAddApsProgressRequest.cc @@ -33,7 +33,7 @@ long GetAddApsProgressRequest::getId()const void GetAddApsProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetAddApsProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetAddApsProgressRequest::getAccessKeyId()const void GetAddApsProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetAddApsProgressResult.cc b/cloudwf/src/model/GetAddApsProgressResult.cc index 9055c5197..ec86f1dcb 100644 --- a/cloudwf/src/model/GetAddApsProgressResult.cc +++ b/cloudwf/src/model/GetAddApsProgressResult.cc @@ -35,10 +35,13 @@ GetAddApsProgressResult::~GetAddApsProgressResult() void GetAddApsProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetAllActiveShopByGroupRequest.cc b/cloudwf/src/model/GetAllActiveShopByGroupRequest.cc index 641cd5b09..f12834053 100644 --- a/cloudwf/src/model/GetAllActiveShopByGroupRequest.cc +++ b/cloudwf/src/model/GetAllActiveShopByGroupRequest.cc @@ -34,7 +34,7 @@ void GetAllActiveShopByGroupRequest::setGids(const std::vector& gids) { gids_ = gids; for(int i = 0; i!= gids.size(); i++) - setParameter("Gids."+ std::to_string(i), std::to_string(gids.at(i))); + setCoreParameter("Gids."+ std::to_string(i), std::to_string(gids.at(i))); } long GetAllActiveShopByGroupRequest::getBid()const @@ -45,7 +45,7 @@ long GetAllActiveShopByGroupRequest::getBid()const void GetAllActiveShopByGroupRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string GetAllActiveShopByGroupRequest::getAccessKeyId()const @@ -56,6 +56,6 @@ std::string GetAllActiveShopByGroupRequest::getAccessKeyId()const void GetAllActiveShopByGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetAllActiveShopByGroupResult.cc b/cloudwf/src/model/GetAllActiveShopByGroupResult.cc index 1bb53dcf7..3fa9c42d8 100644 --- a/cloudwf/src/model/GetAllActiveShopByGroupResult.cc +++ b/cloudwf/src/model/GetAllActiveShopByGroupResult.cc @@ -35,10 +35,13 @@ GetAllActiveShopByGroupResult::~GetAllActiveShopByGroupResult() void GetAllActiveShopByGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetAllApModelRequest.cc b/cloudwf/src/model/GetAllApModelRequest.cc index 011b456f0..915596aaa 100644 --- a/cloudwf/src/model/GetAllApModelRequest.cc +++ b/cloudwf/src/model/GetAllApModelRequest.cc @@ -33,6 +33,6 @@ std::string GetAllApModelRequest::getAccessKeyId()const void GetAllApModelRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetAllApModelResult.cc b/cloudwf/src/model/GetAllApModelResult.cc index 75b3cc1f3..52b88230b 100644 --- a/cloudwf/src/model/GetAllApModelResult.cc +++ b/cloudwf/src/model/GetAllApModelResult.cc @@ -35,10 +35,13 @@ GetAllApModelResult::~GetAllApModelResult() void GetAllApModelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApDetailedConfigRequest.cc b/cloudwf/src/model/GetApDetailedConfigRequest.cc index 2dac09df8..7197de803 100644 --- a/cloudwf/src/model/GetApDetailedConfigRequest.cc +++ b/cloudwf/src/model/GetApDetailedConfigRequest.cc @@ -33,7 +33,7 @@ long GetApDetailedConfigRequest::getId()const void GetApDetailedConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApDetailedConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApDetailedConfigRequest::getAccessKeyId()const void GetApDetailedConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApDetailedConfigResult.cc b/cloudwf/src/model/GetApDetailedConfigResult.cc index 2be337157..7cd8bf36b 100644 --- a/cloudwf/src/model/GetApDetailedConfigResult.cc +++ b/cloudwf/src/model/GetApDetailedConfigResult.cc @@ -35,10 +35,13 @@ GetApDetailedConfigResult::~GetApDetailedConfigResult() void GetApDetailedConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApDetailedStatusRequest.cc b/cloudwf/src/model/GetApDetailedStatusRequest.cc index 1c016a302..3ca00c51e 100644 --- a/cloudwf/src/model/GetApDetailedStatusRequest.cc +++ b/cloudwf/src/model/GetApDetailedStatusRequest.cc @@ -33,7 +33,7 @@ long GetApDetailedStatusRequest::getId()const void GetApDetailedStatusRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApDetailedStatusRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApDetailedStatusRequest::getAccessKeyId()const void GetApDetailedStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApDetailedStatusResult.cc b/cloudwf/src/model/GetApDetailedStatusResult.cc index 11c53615e..9508fb256 100644 --- a/cloudwf/src/model/GetApDetailedStatusResult.cc +++ b/cloudwf/src/model/GetApDetailedStatusResult.cc @@ -35,10 +35,13 @@ GetApDetailedStatusResult::~GetApDetailedStatusResult() void GetApDetailedStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApPortalBindRequest.cc b/cloudwf/src/model/GetApPortalBindRequest.cc index a4daa69a3..9c08db53d 100644 --- a/cloudwf/src/model/GetApPortalBindRequest.cc +++ b/cloudwf/src/model/GetApPortalBindRequest.cc @@ -33,7 +33,7 @@ int GetApPortalBindRequest::getConfigType()const void GetApPortalBindRequest::setConfigType(int configType) { configType_ = configType; - setParameter("ConfigType", std::to_string(configType)); + setCoreParameter("ConfigType", std::to_string(configType)); } long GetApPortalBindRequest::getBindId()const @@ -44,7 +44,7 @@ long GetApPortalBindRequest::getBindId()const void GetApPortalBindRequest::setBindId(long bindId) { bindId_ = bindId; - setParameter("BindId", std::to_string(bindId)); + setCoreParameter("BindId", std::to_string(bindId)); } std::string GetApPortalBindRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetApPortalBindRequest::getAccessKeyId()const void GetApPortalBindRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApPortalBindResult.cc b/cloudwf/src/model/GetApPortalBindResult.cc index 8e3da5091..275d15f56 100644 --- a/cloudwf/src/model/GetApPortalBindResult.cc +++ b/cloudwf/src/model/GetApPortalBindResult.cc @@ -35,10 +35,13 @@ GetApPortalBindResult::~GetApPortalBindResult() void GetApPortalBindResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApRunHistoryTimeSerRequest.cc b/cloudwf/src/model/GetApRunHistoryTimeSerRequest.cc index f644fe7a5..5fa8df338 100644 --- a/cloudwf/src/model/GetApRunHistoryTimeSerRequest.cc +++ b/cloudwf/src/model/GetApRunHistoryTimeSerRequest.cc @@ -33,7 +33,7 @@ long GetApRunHistoryTimeSerRequest::getStart()const void GetApRunHistoryTimeSerRequest::setStart(long start) { start_ = start; - setParameter("Start", std::to_string(start)); + setCoreParameter("Start", std::to_string(start)); } long GetApRunHistoryTimeSerRequest::getEnd()const @@ -44,7 +44,7 @@ long GetApRunHistoryTimeSerRequest::getEnd()const void GetApRunHistoryTimeSerRequest::setEnd(long end) { end_ = end; - setParameter("End", std::to_string(end)); + setCoreParameter("End", std::to_string(end)); } long GetApRunHistoryTimeSerRequest::getId()const @@ -55,7 +55,7 @@ long GetApRunHistoryTimeSerRequest::getId()const void GetApRunHistoryTimeSerRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApRunHistoryTimeSerRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string GetApRunHistoryTimeSerRequest::getAccessKeyId()const void GetApRunHistoryTimeSerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApRunHistoryTimeSerResult.cc b/cloudwf/src/model/GetApRunHistoryTimeSerResult.cc index 340d71441..17f2dad8d 100644 --- a/cloudwf/src/model/GetApRunHistoryTimeSerResult.cc +++ b/cloudwf/src/model/GetApRunHistoryTimeSerResult.cc @@ -35,10 +35,13 @@ GetApRunHistoryTimeSerResult::~GetApRunHistoryTimeSerResult() void GetApRunHistoryTimeSerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApStaMiscAggRequest.cc b/cloudwf/src/model/GetApStaMiscAggRequest.cc index 7ac29f177..f3918d277 100644 --- a/cloudwf/src/model/GetApStaMiscAggRequest.cc +++ b/cloudwf/src/model/GetApStaMiscAggRequest.cc @@ -33,7 +33,7 @@ long GetApStaMiscAggRequest::getApgroupId()const void GetApStaMiscAggRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string GetApStaMiscAggRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApStaMiscAggRequest::getAccessKeyId()const void GetApStaMiscAggRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApStaMiscAggResult.cc b/cloudwf/src/model/GetApStaMiscAggResult.cc index 939c558d1..2af5c08c6 100644 --- a/cloudwf/src/model/GetApStaMiscAggResult.cc +++ b/cloudwf/src/model/GetApStaMiscAggResult.cc @@ -35,10 +35,13 @@ GetApStaMiscAggResult::~GetApStaMiscAggResult() void GetApStaMiscAggResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApTopRequest.cc b/cloudwf/src/model/GetApTopRequest.cc index 9dbf34239..214c3c37e 100644 --- a/cloudwf/src/model/GetApTopRequest.cc +++ b/cloudwf/src/model/GetApTopRequest.cc @@ -33,7 +33,7 @@ long GetApTopRequest::getApgroupId()const void GetApTopRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string GetApTopRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApTopRequest::getAccessKeyId()const void GetApTopRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApTopResult.cc b/cloudwf/src/model/GetApTopResult.cc index eedec4240..a839ebf02 100644 --- a/cloudwf/src/model/GetApTopResult.cc +++ b/cloudwf/src/model/GetApTopResult.cc @@ -35,10 +35,13 @@ GetApTopResult::~GetApTopResult() void GetApTopResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApgroupConfigProgressRequest.cc b/cloudwf/src/model/GetApgroupConfigProgressRequest.cc index 7910fe7e3..ec832a27a 100644 --- a/cloudwf/src/model/GetApgroupConfigProgressRequest.cc +++ b/cloudwf/src/model/GetApgroupConfigProgressRequest.cc @@ -33,7 +33,7 @@ long GetApgroupConfigProgressRequest::getId()const void GetApgroupConfigProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApgroupConfigProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApgroupConfigProgressRequest::getAccessKeyId()const void GetApgroupConfigProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApgroupConfigProgressResult.cc b/cloudwf/src/model/GetApgroupConfigProgressResult.cc index 2c0279e81..88536b82b 100644 --- a/cloudwf/src/model/GetApgroupConfigProgressResult.cc +++ b/cloudwf/src/model/GetApgroupConfigProgressResult.cc @@ -35,10 +35,13 @@ GetApgroupConfigProgressResult::~GetApgroupConfigProgressResult() void GetApgroupConfigProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApgroupDetailedConfigRequest.cc b/cloudwf/src/model/GetApgroupDetailedConfigRequest.cc index 336441be6..6a42dfa35 100644 --- a/cloudwf/src/model/GetApgroupDetailedConfigRequest.cc +++ b/cloudwf/src/model/GetApgroupDetailedConfigRequest.cc @@ -33,7 +33,7 @@ long GetApgroupDetailedConfigRequest::getId()const void GetApgroupDetailedConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApgroupDetailedConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApgroupDetailedConfigRequest::getAccessKeyId()const void GetApgroupDetailedConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApgroupDetailedConfigResult.cc b/cloudwf/src/model/GetApgroupDetailedConfigResult.cc index 65f5c72ea..0437d4eed 100644 --- a/cloudwf/src/model/GetApgroupDetailedConfigResult.cc +++ b/cloudwf/src/model/GetApgroupDetailedConfigResult.cc @@ -35,10 +35,13 @@ GetApgroupDetailedConfigResult::~GetApgroupDetailedConfigResult() void GetApgroupDetailedConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApgroupPortalConfigProgressRequest.cc b/cloudwf/src/model/GetApgroupPortalConfigProgressRequest.cc index b0e8ed60e..834a42ad6 100644 --- a/cloudwf/src/model/GetApgroupPortalConfigProgressRequest.cc +++ b/cloudwf/src/model/GetApgroupPortalConfigProgressRequest.cc @@ -33,7 +33,7 @@ long GetApgroupPortalConfigProgressRequest::getId()const void GetApgroupPortalConfigProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApgroupPortalConfigProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApgroupPortalConfigProgressRequest::getAccessKeyId()const void GetApgroupPortalConfigProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApgroupPortalConfigProgressResult.cc b/cloudwf/src/model/GetApgroupPortalConfigProgressResult.cc index 4a9f1fc43..56264754b 100644 --- a/cloudwf/src/model/GetApgroupPortalConfigProgressResult.cc +++ b/cloudwf/src/model/GetApgroupPortalConfigProgressResult.cc @@ -35,10 +35,13 @@ GetApgroupPortalConfigProgressResult::~GetApgroupPortalConfigProgressResult() void GetApgroupPortalConfigProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApgroupScanConfigSaveProgressRequest.cc b/cloudwf/src/model/GetApgroupScanConfigSaveProgressRequest.cc index 88ee99b4b..9b3368b73 100644 --- a/cloudwf/src/model/GetApgroupScanConfigSaveProgressRequest.cc +++ b/cloudwf/src/model/GetApgroupScanConfigSaveProgressRequest.cc @@ -33,7 +33,7 @@ long GetApgroupScanConfigSaveProgressRequest::getId()const void GetApgroupScanConfigSaveProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApgroupScanConfigSaveProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApgroupScanConfigSaveProgressRequest::getAccessKeyId()const void GetApgroupScanConfigSaveProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApgroupScanConfigSaveProgressResult.cc b/cloudwf/src/model/GetApgroupScanConfigSaveProgressResult.cc index d39d23236..f1428b2a3 100644 --- a/cloudwf/src/model/GetApgroupScanConfigSaveProgressResult.cc +++ b/cloudwf/src/model/GetApgroupScanConfigSaveProgressResult.cc @@ -35,10 +35,13 @@ GetApgroupScanConfigSaveProgressResult::~GetApgroupScanConfigSaveProgressResult( void GetApgroupScanConfigSaveProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetApgroupSsidConfigProgressRequest.cc b/cloudwf/src/model/GetApgroupSsidConfigProgressRequest.cc index ee6c9a00b..091049dfd 100644 --- a/cloudwf/src/model/GetApgroupSsidConfigProgressRequest.cc +++ b/cloudwf/src/model/GetApgroupSsidConfigProgressRequest.cc @@ -33,7 +33,7 @@ long GetApgroupSsidConfigProgressRequest::getId()const void GetApgroupSsidConfigProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetApgroupSsidConfigProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetApgroupSsidConfigProgressRequest::getAccessKeyId()const void GetApgroupSsidConfigProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetApgroupSsidConfigProgressResult.cc b/cloudwf/src/model/GetApgroupSsidConfigProgressResult.cc index 280af68c9..1d0cc787c 100644 --- a/cloudwf/src/model/GetApgroupSsidConfigProgressResult.cc +++ b/cloudwf/src/model/GetApgroupSsidConfigProgressResult.cc @@ -35,10 +35,13 @@ GetApgroupSsidConfigProgressResult::~GetApgroupSsidConfigProgressResult() void GetApgroupSsidConfigProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetBatchSaveApAssetProgressRequest.cc b/cloudwf/src/model/GetBatchSaveApAssetProgressRequest.cc index e04b65264..1bd7e55c2 100644 --- a/cloudwf/src/model/GetBatchSaveApAssetProgressRequest.cc +++ b/cloudwf/src/model/GetBatchSaveApAssetProgressRequest.cc @@ -33,6 +33,6 @@ std::string GetBatchSaveApAssetProgressRequest::getAccessKeyId()const void GetBatchSaveApAssetProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetBatchSaveApAssetProgressResult.cc b/cloudwf/src/model/GetBatchSaveApAssetProgressResult.cc index bb7ec2ae6..1b904ecff 100644 --- a/cloudwf/src/model/GetBatchSaveApAssetProgressResult.cc +++ b/cloudwf/src/model/GetBatchSaveApAssetProgressResult.cc @@ -35,10 +35,13 @@ GetBatchSaveApAssetProgressResult::~GetBatchSaveApAssetProgressResult() void GetBatchSaveApAssetProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetBidRequest.cc b/cloudwf/src/model/GetBidRequest.cc index a99ae7721..14a351299 100644 --- a/cloudwf/src/model/GetBidRequest.cc +++ b/cloudwf/src/model/GetBidRequest.cc @@ -33,7 +33,7 @@ int GetBidRequest::getLength()const void GetBidRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int GetBidRequest::getPageIndex()const @@ -44,7 +44,7 @@ int GetBidRequest::getPageIndex()const void GetBidRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string GetBidRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetBidRequest::getAccessKeyId()const void GetBidRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetBidResult.cc b/cloudwf/src/model/GetBidResult.cc index fe8fab734..ebf3c61f7 100644 --- a/cloudwf/src/model/GetBidResult.cc +++ b/cloudwf/src/model/GetBidResult.cc @@ -35,10 +35,13 @@ GetBidResult::~GetBidResult() void GetBidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetBids4Uid4RootRequest.cc b/cloudwf/src/model/GetBids4Uid4RootRequest.cc index d362d7802..7896fa373 100644 --- a/cloudwf/src/model/GetBids4Uid4RootRequest.cc +++ b/cloudwf/src/model/GetBids4Uid4RootRequest.cc @@ -33,7 +33,7 @@ long GetBids4Uid4RootRequest::getUid()const void GetBids4Uid4RootRequest::setUid(long uid) { uid_ = uid; - setParameter("Uid", std::to_string(uid)); + setCoreParameter("Uid", std::to_string(uid)); } std::string GetBids4Uid4RootRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetBids4Uid4RootRequest::getAccessKeyId()const void GetBids4Uid4RootRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetBids4Uid4RootResult.cc b/cloudwf/src/model/GetBids4Uid4RootResult.cc index 9ca333bb8..d8e461851 100644 --- a/cloudwf/src/model/GetBids4Uid4RootResult.cc +++ b/cloudwf/src/model/GetBids4Uid4RootResult.cc @@ -35,10 +35,13 @@ GetBids4Uid4RootResult::~GetBids4Uid4RootResult() void GetBids4Uid4RootResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetBindAp4UmengRequest.cc b/cloudwf/src/model/GetBindAp4UmengRequest.cc index d115dac8e..030bb801a 100644 --- a/cloudwf/src/model/GetBindAp4UmengRequest.cc +++ b/cloudwf/src/model/GetBindAp4UmengRequest.cc @@ -33,6 +33,6 @@ std::string GetBindAp4UmengRequest::getAccessKeyId()const void GetBindAp4UmengRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetBindAp4UmengResult.cc b/cloudwf/src/model/GetBindAp4UmengResult.cc index 9f57a8fde..177ccf819 100644 --- a/cloudwf/src/model/GetBindAp4UmengResult.cc +++ b/cloudwf/src/model/GetBindAp4UmengResult.cc @@ -35,10 +35,13 @@ GetBindAp4UmengResult::~GetBindAp4UmengResult() void GetBindAp4UmengResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetCrowdListRequest.cc b/cloudwf/src/model/GetCrowdListRequest.cc index 97f14e1f0..70ae9215b 100644 --- a/cloudwf/src/model/GetCrowdListRequest.cc +++ b/cloudwf/src/model/GetCrowdListRequest.cc @@ -33,7 +33,7 @@ long GetCrowdListRequest::getGsid()const void GetCrowdListRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } int GetCrowdListRequest::getClassType()const @@ -44,7 +44,7 @@ int GetCrowdListRequest::getClassType()const void GetCrowdListRequest::setClassType(int classType) { classType_ = classType; - setParameter("ClassType", std::to_string(classType)); + setCoreParameter("ClassType", std::to_string(classType)); } std::string GetCrowdListRequest::getGsType()const @@ -55,7 +55,7 @@ std::string GetCrowdListRequest::getGsType()const void GetCrowdListRequest::setGsType(const std::string& gsType) { gsType_ = gsType; - setParameter("GsType", gsType); + setCoreParameter("GsType", gsType); } std::string GetCrowdListRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string GetCrowdListRequest::getEndTime()const void GetCrowdListRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } int GetCrowdListRequest::getPage()const @@ -77,7 +77,7 @@ int GetCrowdListRequest::getPage()const void GetCrowdListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string GetCrowdListRequest::getStartTime()const @@ -88,7 +88,7 @@ std::string GetCrowdListRequest::getStartTime()const void GetCrowdListRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } int GetCrowdListRequest::getPer()const @@ -99,7 +99,7 @@ int GetCrowdListRequest::getPer()const void GetCrowdListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } long GetCrowdListRequest::getBid()const @@ -110,7 +110,7 @@ long GetCrowdListRequest::getBid()const void GetCrowdListRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string GetCrowdListRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string GetCrowdListRequest::getAccessKeyId()const void GetCrowdListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetCrowdListResult.cc b/cloudwf/src/model/GetCrowdListResult.cc index 635639f84..d31cf7d81 100644 --- a/cloudwf/src/model/GetCrowdListResult.cc +++ b/cloudwf/src/model/GetCrowdListResult.cc @@ -35,10 +35,13 @@ GetCrowdListResult::~GetCrowdListResult() void GetCrowdListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetDailyStatisticRequest.cc b/cloudwf/src/model/GetDailyStatisticRequest.cc index 70a814d7d..3ba3f7c9e 100644 --- a/cloudwf/src/model/GetDailyStatisticRequest.cc +++ b/cloudwf/src/model/GetDailyStatisticRequest.cc @@ -33,7 +33,7 @@ long GetDailyStatisticRequest::getApgroupId()const void GetDailyStatisticRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string GetDailyStatisticRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetDailyStatisticRequest::getAccessKeyId()const void GetDailyStatisticRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetDailyStatisticResult.cc b/cloudwf/src/model/GetDailyStatisticResult.cc index 32c259194..542a0fe03 100644 --- a/cloudwf/src/model/GetDailyStatisticResult.cc +++ b/cloudwf/src/model/GetDailyStatisticResult.cc @@ -35,10 +35,13 @@ GetDailyStatisticResult::~GetDailyStatisticResult() void GetDailyStatisticResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetDeviceInfoByMacRequest.cc b/cloudwf/src/model/GetDeviceInfoByMacRequest.cc index 43b178c5d..987b9e793 100644 --- a/cloudwf/src/model/GetDeviceInfoByMacRequest.cc +++ b/cloudwf/src/model/GetDeviceInfoByMacRequest.cc @@ -33,7 +33,7 @@ std::string GetDeviceInfoByMacRequest::getMac()const void GetDeviceInfoByMacRequest::setMac(const std::string& mac) { mac_ = mac; - setParameter("Mac", mac); + setCoreParameter("Mac", mac); } std::string GetDeviceInfoByMacRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetDeviceInfoByMacRequest::getAccessKeyId()const void GetDeviceInfoByMacRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetDeviceInfoByMacResult.cc b/cloudwf/src/model/GetDeviceInfoByMacResult.cc index 681f00c25..95b06c4db 100644 --- a/cloudwf/src/model/GetDeviceInfoByMacResult.cc +++ b/cloudwf/src/model/GetDeviceInfoByMacResult.cc @@ -35,10 +35,13 @@ GetDeviceInfoByMacResult::~GetDeviceInfoByMacResult() void GetDeviceInfoByMacResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetGroupApChangeNameTemplateRequest.cc b/cloudwf/src/model/GetGroupApChangeNameTemplateRequest.cc index 78ffd2384..9b618d641 100644 --- a/cloudwf/src/model/GetGroupApChangeNameTemplateRequest.cc +++ b/cloudwf/src/model/GetGroupApChangeNameTemplateRequest.cc @@ -33,6 +33,6 @@ std::string GetGroupApChangeNameTemplateRequest::getAccessKeyId()const void GetGroupApChangeNameTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetGroupApChangeNameTemplateResult.cc b/cloudwf/src/model/GetGroupApChangeNameTemplateResult.cc index 20b1ab134..34d99227c 100644 --- a/cloudwf/src/model/GetGroupApChangeNameTemplateResult.cc +++ b/cloudwf/src/model/GetGroupApChangeNameTemplateResult.cc @@ -35,10 +35,13 @@ GetGroupApChangeNameTemplateResult::~GetGroupApChangeNameTemplateResult() void GetGroupApChangeNameTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetGroupApRadioConfigProgressRequest.cc b/cloudwf/src/model/GetGroupApRadioConfigProgressRequest.cc index 8dea21707..e9818b0f0 100644 --- a/cloudwf/src/model/GetGroupApRadioConfigProgressRequest.cc +++ b/cloudwf/src/model/GetGroupApRadioConfigProgressRequest.cc @@ -33,7 +33,7 @@ long GetGroupApRadioConfigProgressRequest::getId()const void GetGroupApRadioConfigProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetGroupApRadioConfigProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetGroupApRadioConfigProgressRequest::getAccessKeyId()const void GetGroupApRadioConfigProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetGroupApRadioConfigProgressResult.cc b/cloudwf/src/model/GetGroupApRadioConfigProgressResult.cc index 27374bf79..92100d2d5 100644 --- a/cloudwf/src/model/GetGroupApRadioConfigProgressResult.cc +++ b/cloudwf/src/model/GetGroupApRadioConfigProgressResult.cc @@ -35,10 +35,13 @@ GetGroupApRadioConfigProgressResult::~GetGroupApRadioConfigProgressResult() void GetGroupApRadioConfigProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetGroupApRadioConfigTemplateRequest.cc b/cloudwf/src/model/GetGroupApRadioConfigTemplateRequest.cc index 471c7d66e..776c982d8 100644 --- a/cloudwf/src/model/GetGroupApRadioConfigTemplateRequest.cc +++ b/cloudwf/src/model/GetGroupApRadioConfigTemplateRequest.cc @@ -33,6 +33,6 @@ std::string GetGroupApRadioConfigTemplateRequest::getAccessKeyId()const void GetGroupApRadioConfigTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetGroupApRadioConfigTemplateResult.cc b/cloudwf/src/model/GetGroupApRadioConfigTemplateResult.cc index ba7803726..33314fb95 100644 --- a/cloudwf/src/model/GetGroupApRadioConfigTemplateResult.cc +++ b/cloudwf/src/model/GetGroupApRadioConfigTemplateResult.cc @@ -35,10 +35,13 @@ GetGroupApRadioConfigTemplateResult::~GetGroupApRadioConfigTemplateResult() void GetGroupApRadioConfigTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetGroupApRadioOnoffProgressRequest.cc b/cloudwf/src/model/GetGroupApRadioOnoffProgressRequest.cc index 4e0455a9b..15bb90329 100644 --- a/cloudwf/src/model/GetGroupApRadioOnoffProgressRequest.cc +++ b/cloudwf/src/model/GetGroupApRadioOnoffProgressRequest.cc @@ -33,7 +33,7 @@ long GetGroupApRadioOnoffProgressRequest::getId()const void GetGroupApRadioOnoffProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetGroupApRadioOnoffProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetGroupApRadioOnoffProgressRequest::getAccessKeyId()const void GetGroupApRadioOnoffProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetGroupApRadioOnoffProgressResult.cc b/cloudwf/src/model/GetGroupApRadioOnoffProgressResult.cc index d119dc623..8291d33f0 100644 --- a/cloudwf/src/model/GetGroupApRadioOnoffProgressResult.cc +++ b/cloudwf/src/model/GetGroupApRadioOnoffProgressResult.cc @@ -35,10 +35,13 @@ GetGroupApRadioOnoffProgressResult::~GetGroupApRadioOnoffProgressResult() void GetGroupApRadioOnoffProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetGroupApRepairProgressRequest.cc b/cloudwf/src/model/GetGroupApRepairProgressRequest.cc index c8aa57f21..3cbfbb602 100644 --- a/cloudwf/src/model/GetGroupApRepairProgressRequest.cc +++ b/cloudwf/src/model/GetGroupApRepairProgressRequest.cc @@ -33,7 +33,7 @@ long GetGroupApRepairProgressRequest::getId()const void GetGroupApRepairProgressRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetGroupApRepairProgressRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetGroupApRepairProgressRequest::getAccessKeyId()const void GetGroupApRepairProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetGroupApRepairProgressResult.cc b/cloudwf/src/model/GetGroupApRepairProgressResult.cc index 9c61ca5a4..ac1ade4ef 100644 --- a/cloudwf/src/model/GetGroupApRepairProgressResult.cc +++ b/cloudwf/src/model/GetGroupApRepairProgressResult.cc @@ -35,10 +35,13 @@ GetGroupApRepairProgressResult::~GetGroupApRepairProgressResult() void GetGroupApRepairProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetInstanceByShopRequest.cc b/cloudwf/src/model/GetInstanceByShopRequest.cc index 884c32bb8..d4c7e5170 100644 --- a/cloudwf/src/model/GetInstanceByShopRequest.cc +++ b/cloudwf/src/model/GetInstanceByShopRequest.cc @@ -33,7 +33,7 @@ long GetInstanceByShopRequest::getShopId()const void GetInstanceByShopRequest::setShopId(long shopId) { shopId_ = shopId; - setParameter("ShopId", std::to_string(shopId)); + setCoreParameter("ShopId", std::to_string(shopId)); } std::string GetInstanceByShopRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetInstanceByShopRequest::getAccessKeyId()const void GetInstanceByShopRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetInstanceByShopResult.cc b/cloudwf/src/model/GetInstanceByShopResult.cc index 5510c8e26..6c46924d0 100644 --- a/cloudwf/src/model/GetInstanceByShopResult.cc +++ b/cloudwf/src/model/GetInstanceByShopResult.cc @@ -35,10 +35,13 @@ GetInstanceByShopResult::~GetInstanceByShopResult() void GetInstanceByShopResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetLatestApStatisticRequest.cc b/cloudwf/src/model/GetLatestApStatisticRequest.cc index 4784a2660..ff220725b 100644 --- a/cloudwf/src/model/GetLatestApStatisticRequest.cc +++ b/cloudwf/src/model/GetLatestApStatisticRequest.cc @@ -33,7 +33,7 @@ long GetLatestApStatisticRequest::getApgroupId()const void GetLatestApStatisticRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string GetLatestApStatisticRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetLatestApStatisticRequest::getAccessKeyId()const void GetLatestApStatisticRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetLatestApStatisticResult.cc b/cloudwf/src/model/GetLatestApStatisticResult.cc index e1ec5f6da..c1713a065 100644 --- a/cloudwf/src/model/GetLatestApStatisticResult.cc +++ b/cloudwf/src/model/GetLatestApStatisticResult.cc @@ -35,10 +35,13 @@ GetLatestApStatisticResult::~GetLatestApStatisticResult() void GetLatestApStatisticResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetLatestStaStatisticRequest.cc b/cloudwf/src/model/GetLatestStaStatisticRequest.cc index f00f35f1c..6d77428c4 100644 --- a/cloudwf/src/model/GetLatestStaStatisticRequest.cc +++ b/cloudwf/src/model/GetLatestStaStatisticRequest.cc @@ -33,7 +33,7 @@ long GetLatestStaStatisticRequest::getApgroupId()const void GetLatestStaStatisticRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string GetLatestStaStatisticRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetLatestStaStatisticRequest::getAccessKeyId()const void GetLatestStaStatisticRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetLatestStaStatisticResult.cc b/cloudwf/src/model/GetLatestStaStatisticResult.cc index ba48ad1f1..ed1226227 100644 --- a/cloudwf/src/model/GetLatestStaStatisticResult.cc +++ b/cloudwf/src/model/GetLatestStaStatisticResult.cc @@ -35,10 +35,13 @@ GetLatestStaStatisticResult::~GetLatestStaStatisticResult() void GetLatestStaStatisticResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetMapUrlRequest.cc b/cloudwf/src/model/GetMapUrlRequest.cc index ce0dbdf69..db9e00f95 100644 --- a/cloudwf/src/model/GetMapUrlRequest.cc +++ b/cloudwf/src/model/GetMapUrlRequest.cc @@ -33,7 +33,7 @@ long GetMapUrlRequest::getMapId()const void GetMapUrlRequest::setMapId(long mapId) { mapId_ = mapId; - setParameter("MapId", std::to_string(mapId)); + setCoreParameter("MapId", std::to_string(mapId)); } std::string GetMapUrlRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetMapUrlRequest::getAccessKeyId()const void GetMapUrlRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetMapUrlResult.cc b/cloudwf/src/model/GetMapUrlResult.cc index a97ad9ec3..0ec562a8d 100644 --- a/cloudwf/src/model/GetMapUrlResult.cc +++ b/cloudwf/src/model/GetMapUrlResult.cc @@ -35,10 +35,13 @@ GetMapUrlResult::~GetMapUrlResult() void GetMapUrlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetOnlineApTimeSerRequest.cc b/cloudwf/src/model/GetOnlineApTimeSerRequest.cc index abf235b99..b43d14010 100644 --- a/cloudwf/src/model/GetOnlineApTimeSerRequest.cc +++ b/cloudwf/src/model/GetOnlineApTimeSerRequest.cc @@ -33,7 +33,7 @@ long GetOnlineApTimeSerRequest::getZoomStart()const void GetOnlineApTimeSerRequest::setZoomStart(long zoomStart) { zoomStart_ = zoomStart; - setParameter("ZoomStart", std::to_string(zoomStart)); + setCoreParameter("ZoomStart", std::to_string(zoomStart)); } long GetOnlineApTimeSerRequest::getCompanyId()const @@ -44,7 +44,7 @@ long GetOnlineApTimeSerRequest::getCompanyId()const void GetOnlineApTimeSerRequest::setCompanyId(long companyId) { companyId_ = companyId; - setParameter("CompanyId", std::to_string(companyId)); + setCoreParameter("CompanyId", std::to_string(companyId)); } long GetOnlineApTimeSerRequest::getApgroupId()const @@ -55,7 +55,7 @@ long GetOnlineApTimeSerRequest::getApgroupId()const void GetOnlineApTimeSerRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } long GetOnlineApTimeSerRequest::getStart()const @@ -66,7 +66,7 @@ long GetOnlineApTimeSerRequest::getStart()const void GetOnlineApTimeSerRequest::setStart(long start) { start_ = start; - setParameter("Start", std::to_string(start)); + setCoreParameter("Start", std::to_string(start)); } long GetOnlineApTimeSerRequest::getZoomEnd()const @@ -77,7 +77,7 @@ long GetOnlineApTimeSerRequest::getZoomEnd()const void GetOnlineApTimeSerRequest::setZoomEnd(long zoomEnd) { zoomEnd_ = zoomEnd; - setParameter("ZoomEnd", std::to_string(zoomEnd)); + setCoreParameter("ZoomEnd", std::to_string(zoomEnd)); } long GetOnlineApTimeSerRequest::getEnd()const @@ -88,7 +88,7 @@ long GetOnlineApTimeSerRequest::getEnd()const void GetOnlineApTimeSerRequest::setEnd(long end) { end_ = end; - setParameter("End", std::to_string(end)); + setCoreParameter("End", std::to_string(end)); } std::string GetOnlineApTimeSerRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string GetOnlineApTimeSerRequest::getAccessKeyId()const void GetOnlineApTimeSerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetOnlineApTimeSerResult.cc b/cloudwf/src/model/GetOnlineApTimeSerResult.cc index 81232b88b..0bd9e51f0 100644 --- a/cloudwf/src/model/GetOnlineApTimeSerResult.cc +++ b/cloudwf/src/model/GetOnlineApTimeSerResult.cc @@ -35,10 +35,13 @@ GetOnlineApTimeSerResult::~GetOnlineApTimeSerResult() void GetOnlineApTimeSerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetOnlineStaTimeSerRequest.cc b/cloudwf/src/model/GetOnlineStaTimeSerRequest.cc index a344d8851..50614037c 100644 --- a/cloudwf/src/model/GetOnlineStaTimeSerRequest.cc +++ b/cloudwf/src/model/GetOnlineStaTimeSerRequest.cc @@ -33,7 +33,7 @@ long GetOnlineStaTimeSerRequest::getZoomStart()const void GetOnlineStaTimeSerRequest::setZoomStart(long zoomStart) { zoomStart_ = zoomStart; - setParameter("ZoomStart", std::to_string(zoomStart)); + setCoreParameter("ZoomStart", std::to_string(zoomStart)); } long GetOnlineStaTimeSerRequest::getCompanyId()const @@ -44,7 +44,7 @@ long GetOnlineStaTimeSerRequest::getCompanyId()const void GetOnlineStaTimeSerRequest::setCompanyId(long companyId) { companyId_ = companyId; - setParameter("CompanyId", std::to_string(companyId)); + setCoreParameter("CompanyId", std::to_string(companyId)); } long GetOnlineStaTimeSerRequest::getApgroupId()const @@ -55,7 +55,7 @@ long GetOnlineStaTimeSerRequest::getApgroupId()const void GetOnlineStaTimeSerRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } long GetOnlineStaTimeSerRequest::getStart()const @@ -66,7 +66,7 @@ long GetOnlineStaTimeSerRequest::getStart()const void GetOnlineStaTimeSerRequest::setStart(long start) { start_ = start; - setParameter("Start", std::to_string(start)); + setCoreParameter("Start", std::to_string(start)); } long GetOnlineStaTimeSerRequest::getZoomEnd()const @@ -77,7 +77,7 @@ long GetOnlineStaTimeSerRequest::getZoomEnd()const void GetOnlineStaTimeSerRequest::setZoomEnd(long zoomEnd) { zoomEnd_ = zoomEnd; - setParameter("ZoomEnd", std::to_string(zoomEnd)); + setCoreParameter("ZoomEnd", std::to_string(zoomEnd)); } long GetOnlineStaTimeSerRequest::getEnd()const @@ -88,7 +88,7 @@ long GetOnlineStaTimeSerRequest::getEnd()const void GetOnlineStaTimeSerRequest::setEnd(long end) { end_ = end; - setParameter("End", std::to_string(end)); + setCoreParameter("End", std::to_string(end)); } std::string GetOnlineStaTimeSerRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string GetOnlineStaTimeSerRequest::getAccessKeyId()const void GetOnlineStaTimeSerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetOnlineStaTimeSerResult.cc b/cloudwf/src/model/GetOnlineStaTimeSerResult.cc index 402fbf50b..e1045aa2f 100644 --- a/cloudwf/src/model/GetOnlineStaTimeSerResult.cc +++ b/cloudwf/src/model/GetOnlineStaTimeSerResult.cc @@ -35,10 +35,13 @@ GetOnlineStaTimeSerResult::~GetOnlineStaTimeSerResult() void GetOnlineStaTimeSerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetOssServerSignRequest.cc b/cloudwf/src/model/GetOssServerSignRequest.cc index 5b749dc5a..763d275e2 100644 --- a/cloudwf/src/model/GetOssServerSignRequest.cc +++ b/cloudwf/src/model/GetOssServerSignRequest.cc @@ -33,7 +33,7 @@ int GetOssServerSignRequest::getDirType()const void GetOssServerSignRequest::setDirType(int dirType) { dirType_ = dirType; - setParameter("DirType", std::to_string(dirType)); + setCoreParameter("DirType", std::to_string(dirType)); } std::string GetOssServerSignRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetOssServerSignRequest::getAccessKeyId()const void GetOssServerSignRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetOssServerSignResult.cc b/cloudwf/src/model/GetOssServerSignResult.cc index 569378339..a83e0121f 100644 --- a/cloudwf/src/model/GetOssServerSignResult.cc +++ b/cloudwf/src/model/GetOssServerSignResult.cc @@ -35,10 +35,13 @@ GetOssServerSignResult::~GetOssServerSignResult() void GetOssServerSignResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetPageConfigTemplateRequest.cc b/cloudwf/src/model/GetPageConfigTemplateRequest.cc index 8b382c8e6..7e5770023 100644 --- a/cloudwf/src/model/GetPageConfigTemplateRequest.cc +++ b/cloudwf/src/model/GetPageConfigTemplateRequest.cc @@ -33,7 +33,7 @@ long GetPageConfigTemplateRequest::getId()const void GetPageConfigTemplateRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetPageConfigTemplateRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetPageConfigTemplateRequest::getAccessKeyId()const void GetPageConfigTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetPageConfigTemplateResult.cc b/cloudwf/src/model/GetPageConfigTemplateResult.cc index 97f2c43aa..db24e0dff 100644 --- a/cloudwf/src/model/GetPageConfigTemplateResult.cc +++ b/cloudwf/src/model/GetPageConfigTemplateResult.cc @@ -35,10 +35,13 @@ GetPageConfigTemplateResult::~GetPageConfigTemplateResult() void GetPageConfigTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetPagePropertiesRequest.cc b/cloudwf/src/model/GetPagePropertiesRequest.cc index c566171f5..cff366385 100644 --- a/cloudwf/src/model/GetPagePropertiesRequest.cc +++ b/cloudwf/src/model/GetPagePropertiesRequest.cc @@ -33,6 +33,6 @@ std::string GetPagePropertiesRequest::getAccessKeyId()const void GetPagePropertiesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetPagePropertiesResult.cc b/cloudwf/src/model/GetPagePropertiesResult.cc index 378ee9e31..c408c01f4 100644 --- a/cloudwf/src/model/GetPagePropertiesResult.cc +++ b/cloudwf/src/model/GetPagePropertiesResult.cc @@ -35,10 +35,13 @@ GetPagePropertiesResult::~GetPagePropertiesResult() void GetPagePropertiesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetPortalTempDetailRequest.cc b/cloudwf/src/model/GetPortalTempDetailRequest.cc index 1f57dc619..3a2b19838 100644 --- a/cloudwf/src/model/GetPortalTempDetailRequest.cc +++ b/cloudwf/src/model/GetPortalTempDetailRequest.cc @@ -33,7 +33,7 @@ long GetPortalTempDetailRequest::getId()const void GetPortalTempDetailRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetPortalTempDetailRequest::getUniqueId()const @@ -44,7 +44,7 @@ std::string GetPortalTempDetailRequest::getUniqueId()const void GetPortalTempDetailRequest::setUniqueId(const std::string& uniqueId) { uniqueId_ = uniqueId; - setParameter("UniqueId", uniqueId); + setCoreParameter("UniqueId", uniqueId); } std::string GetPortalTempDetailRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetPortalTempDetailRequest::getAccessKeyId()const void GetPortalTempDetailRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetPortalTempDetailResult.cc b/cloudwf/src/model/GetPortalTempDetailResult.cc index 7d1307665..6e3a262cc 100644 --- a/cloudwf/src/model/GetPortalTempDetailResult.cc +++ b/cloudwf/src/model/GetPortalTempDetailResult.cc @@ -35,10 +35,13 @@ GetPortalTempDetailResult::~GetPortalTempDetailResult() void GetPortalTempDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetProbeDataSubscriberConfigRequest.cc b/cloudwf/src/model/GetProbeDataSubscriberConfigRequest.cc index b9c4e09cc..e84425ed0 100644 --- a/cloudwf/src/model/GetProbeDataSubscriberConfigRequest.cc +++ b/cloudwf/src/model/GetProbeDataSubscriberConfigRequest.cc @@ -33,7 +33,7 @@ long GetProbeDataSubscriberConfigRequest::getId()const void GetProbeDataSubscriberConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetProbeDataSubscriberConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetProbeDataSubscriberConfigRequest::getAccessKeyId()const void GetProbeDataSubscriberConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetProbeDataSubscriberConfigResult.cc b/cloudwf/src/model/GetProbeDataSubscriberConfigResult.cc index 3a864f57b..c74ac0d9a 100644 --- a/cloudwf/src/model/GetProbeDataSubscriberConfigResult.cc +++ b/cloudwf/src/model/GetProbeDataSubscriberConfigResult.cc @@ -35,10 +35,13 @@ GetProbeDataSubscriberConfigResult::~GetProbeDataSubscriberConfigResult() void GetProbeDataSubscriberConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetRadioRunHistoryTimeSerRequest.cc b/cloudwf/src/model/GetRadioRunHistoryTimeSerRequest.cc index e1aabc241..861f41e0f 100644 --- a/cloudwf/src/model/GetRadioRunHistoryTimeSerRequest.cc +++ b/cloudwf/src/model/GetRadioRunHistoryTimeSerRequest.cc @@ -33,7 +33,7 @@ long GetRadioRunHistoryTimeSerRequest::getId()const void GetRadioRunHistoryTimeSerRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetRadioRunHistoryTimeSerRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetRadioRunHistoryTimeSerRequest::getAccessKeyId()const void GetRadioRunHistoryTimeSerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetRadioRunHistoryTimeSerResult.cc b/cloudwf/src/model/GetRadioRunHistoryTimeSerResult.cc index 9b9ec1d94..bf940f728 100644 --- a/cloudwf/src/model/GetRadioRunHistoryTimeSerResult.cc +++ b/cloudwf/src/model/GetRadioRunHistoryTimeSerResult.cc @@ -35,10 +35,13 @@ GetRadioRunHistoryTimeSerResult::~GetRadioRunHistoryTimeSerResult() void GetRadioRunHistoryTimeSerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetScanModeRequest.cc b/cloudwf/src/model/GetScanModeRequest.cc index d89bd1bdf..798bb2a0f 100644 --- a/cloudwf/src/model/GetScanModeRequest.cc +++ b/cloudwf/src/model/GetScanModeRequest.cc @@ -34,7 +34,7 @@ void GetScanModeRequest::setMacList(const std::vector& macList) { macList_ = macList; for(int i = 0; i!= macList.size(); i++) - setParameter("MacList."+ std::to_string(i), macList.at(i)); + setCoreParameter("MacList."+ std::to_string(i), macList.at(i)); } std::string GetScanModeRequest::getAccessKeyId()const @@ -45,6 +45,6 @@ std::string GetScanModeRequest::getAccessKeyId()const void GetScanModeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetScanModeResult.cc b/cloudwf/src/model/GetScanModeResult.cc index b46a7b094..c4563f440 100644 --- a/cloudwf/src/model/GetScanModeResult.cc +++ b/cloudwf/src/model/GetScanModeResult.cc @@ -35,10 +35,13 @@ GetScanModeResult::~GetScanModeResult() void GetScanModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetScanProbeTimeSerRequest.cc b/cloudwf/src/model/GetScanProbeTimeSerRequest.cc index 3a04d1498..9daefb1e9 100644 --- a/cloudwf/src/model/GetScanProbeTimeSerRequest.cc +++ b/cloudwf/src/model/GetScanProbeTimeSerRequest.cc @@ -33,7 +33,7 @@ long GetScanProbeTimeSerRequest::getZoomStart()const void GetScanProbeTimeSerRequest::setZoomStart(long zoomStart) { zoomStart_ = zoomStart; - setParameter("ZoomStart", std::to_string(zoomStart)); + setCoreParameter("ZoomStart", std::to_string(zoomStart)); } long GetScanProbeTimeSerRequest::getCompanyId()const @@ -44,7 +44,7 @@ long GetScanProbeTimeSerRequest::getCompanyId()const void GetScanProbeTimeSerRequest::setCompanyId(long companyId) { companyId_ = companyId; - setParameter("CompanyId", std::to_string(companyId)); + setCoreParameter("CompanyId", std::to_string(companyId)); } long GetScanProbeTimeSerRequest::getApgroupId()const @@ -55,7 +55,7 @@ long GetScanProbeTimeSerRequest::getApgroupId()const void GetScanProbeTimeSerRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } long GetScanProbeTimeSerRequest::getStart()const @@ -66,7 +66,7 @@ long GetScanProbeTimeSerRequest::getStart()const void GetScanProbeTimeSerRequest::setStart(long start) { start_ = start; - setParameter("Start", std::to_string(start)); + setCoreParameter("Start", std::to_string(start)); } long GetScanProbeTimeSerRequest::getZoomEnd()const @@ -77,7 +77,7 @@ long GetScanProbeTimeSerRequest::getZoomEnd()const void GetScanProbeTimeSerRequest::setZoomEnd(long zoomEnd) { zoomEnd_ = zoomEnd; - setParameter("ZoomEnd", std::to_string(zoomEnd)); + setCoreParameter("ZoomEnd", std::to_string(zoomEnd)); } long GetScanProbeTimeSerRequest::getEnd()const @@ -88,7 +88,7 @@ long GetScanProbeTimeSerRequest::getEnd()const void GetScanProbeTimeSerRequest::setEnd(long end) { end_ = end; - setParameter("End", std::to_string(end)); + setCoreParameter("End", std::to_string(end)); } std::string GetScanProbeTimeSerRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string GetScanProbeTimeSerRequest::getAccessKeyId()const void GetScanProbeTimeSerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetScanProbeTimeSerResult.cc b/cloudwf/src/model/GetScanProbeTimeSerResult.cc index cc8d706ac..67aed3303 100644 --- a/cloudwf/src/model/GetScanProbeTimeSerResult.cc +++ b/cloudwf/src/model/GetScanProbeTimeSerResult.cc @@ -35,10 +35,13 @@ GetScanProbeTimeSerResult::~GetScanProbeTimeSerResult() void GetScanProbeTimeSerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetSendCommandByMacProgressRequest.cc b/cloudwf/src/model/GetSendCommandByMacProgressRequest.cc index d659de96d..887b2822d 100644 --- a/cloudwf/src/model/GetSendCommandByMacProgressRequest.cc +++ b/cloudwf/src/model/GetSendCommandByMacProgressRequest.cc @@ -33,6 +33,6 @@ std::string GetSendCommandByMacProgressRequest::getAccessKeyId()const void GetSendCommandByMacProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetSendCommandByMacProgressResult.cc b/cloudwf/src/model/GetSendCommandByMacProgressResult.cc index 9c4dff6d5..2d112d877 100644 --- a/cloudwf/src/model/GetSendCommandByMacProgressResult.cc +++ b/cloudwf/src/model/GetSendCommandByMacProgressResult.cc @@ -35,10 +35,13 @@ GetSendCommandByMacProgressResult::~GetSendCommandByMacProgressResult() void GetSendCommandByMacProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetSidsAndGids4BidRequest.cc b/cloudwf/src/model/GetSidsAndGids4BidRequest.cc index 97dcc3f37..04acfc951 100644 --- a/cloudwf/src/model/GetSidsAndGids4BidRequest.cc +++ b/cloudwf/src/model/GetSidsAndGids4BidRequest.cc @@ -33,7 +33,7 @@ int GetSidsAndGids4BidRequest::getQueryType()const void GetSidsAndGids4BidRequest::setQueryType(int queryType) { queryType_ = queryType; - setParameter("QueryType", std::to_string(queryType)); + setCoreParameter("QueryType", std::to_string(queryType)); } std::string GetSidsAndGids4BidRequest::getAccessKeyId()const @@ -44,7 +44,7 @@ std::string GetSidsAndGids4BidRequest::getAccessKeyId()const void GetSidsAndGids4BidRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long GetSidsAndGids4BidRequest::getQueryId()const @@ -55,6 +55,6 @@ long GetSidsAndGids4BidRequest::getQueryId()const void GetSidsAndGids4BidRequest::setQueryId(long queryId) { queryId_ = queryId; - setParameter("QueryId", std::to_string(queryId)); + setCoreParameter("QueryId", std::to_string(queryId)); } diff --git a/cloudwf/src/model/GetSidsAndGids4BidResult.cc b/cloudwf/src/model/GetSidsAndGids4BidResult.cc index 89e4babfd..85499b5bc 100644 --- a/cloudwf/src/model/GetSidsAndGids4BidResult.cc +++ b/cloudwf/src/model/GetSidsAndGids4BidResult.cc @@ -35,10 +35,13 @@ GetSidsAndGids4BidResult::~GetSidsAndGids4BidResult() void GetSidsAndGids4BidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetStaDetailedStatusRequest.cc b/cloudwf/src/model/GetStaDetailedStatusRequest.cc index b245c43f5..0e0f062c2 100644 --- a/cloudwf/src/model/GetStaDetailedStatusRequest.cc +++ b/cloudwf/src/model/GetStaDetailedStatusRequest.cc @@ -33,7 +33,7 @@ long GetStaDetailedStatusRequest::getId()const void GetStaDetailedStatusRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetStaDetailedStatusRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetStaDetailedStatusRequest::getAccessKeyId()const void GetStaDetailedStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetStaDetailedStatusResult.cc b/cloudwf/src/model/GetStaDetailedStatusResult.cc index c8ade75b0..caeadc556 100644 --- a/cloudwf/src/model/GetStaDetailedStatusResult.cc +++ b/cloudwf/src/model/GetStaDetailedStatusResult.cc @@ -35,10 +35,13 @@ GetStaDetailedStatusResult::~GetStaDetailedStatusResult() void GetStaDetailedStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetStaRunHistoryTimeSerRequest.cc b/cloudwf/src/model/GetStaRunHistoryTimeSerRequest.cc index 5e09dd19a..b217f98c3 100644 --- a/cloudwf/src/model/GetStaRunHistoryTimeSerRequest.cc +++ b/cloudwf/src/model/GetStaRunHistoryTimeSerRequest.cc @@ -33,7 +33,7 @@ long GetStaRunHistoryTimeSerRequest::getId()const void GetStaRunHistoryTimeSerRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetStaRunHistoryTimeSerRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetStaRunHistoryTimeSerRequest::getAccessKeyId()const void GetStaRunHistoryTimeSerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetStaRunHistoryTimeSerResult.cc b/cloudwf/src/model/GetStaRunHistoryTimeSerResult.cc index 28f823998..d73e90cff 100644 --- a/cloudwf/src/model/GetStaRunHistoryTimeSerResult.cc +++ b/cloudwf/src/model/GetStaRunHistoryTimeSerResult.cc @@ -35,10 +35,13 @@ GetStaRunHistoryTimeSerResult::~GetStaRunHistoryTimeSerResult() void GetStaRunHistoryTimeSerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetStaTopRequest.cc b/cloudwf/src/model/GetStaTopRequest.cc index 8ccf57828..65b50c946 100644 --- a/cloudwf/src/model/GetStaTopRequest.cc +++ b/cloudwf/src/model/GetStaTopRequest.cc @@ -33,7 +33,7 @@ long GetStaTopRequest::getApgroupId()const void GetStaTopRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string GetStaTopRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetStaTopRequest::getAccessKeyId()const void GetStaTopRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetStaTopResult.cc b/cloudwf/src/model/GetStaTopResult.cc index 9d664a445..245e98566 100644 --- a/cloudwf/src/model/GetStaTopResult.cc +++ b/cloudwf/src/model/GetStaTopResult.cc @@ -35,10 +35,13 @@ GetStaTopResult::~GetStaTopResult() void GetStaTopResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetSubAccountPermissionRequest.cc b/cloudwf/src/model/GetSubAccountPermissionRequest.cc index 5750f5fc4..4bfa6c08d 100644 --- a/cloudwf/src/model/GetSubAccountPermissionRequest.cc +++ b/cloudwf/src/model/GetSubAccountPermissionRequest.cc @@ -33,7 +33,7 @@ long GetSubAccountPermissionRequest::getId()const void GetSubAccountPermissionRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetSubAccountPermissionRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetSubAccountPermissionRequest::getAccessKeyId()const void GetSubAccountPermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetSubAccountPermissionResult.cc b/cloudwf/src/model/GetSubAccountPermissionResult.cc index 0525f7827..34eee77e5 100644 --- a/cloudwf/src/model/GetSubAccountPermissionResult.cc +++ b/cloudwf/src/model/GetSubAccountPermissionResult.cc @@ -35,10 +35,13 @@ GetSubAccountPermissionResult::~GetSubAccountPermissionResult() void GetSubAccountPermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetSubAccountStatusRequest.cc b/cloudwf/src/model/GetSubAccountStatusRequest.cc index 7534dbcc3..c81ac3843 100644 --- a/cloudwf/src/model/GetSubAccountStatusRequest.cc +++ b/cloudwf/src/model/GetSubAccountStatusRequest.cc @@ -33,6 +33,6 @@ std::string GetSubAccountStatusRequest::getAccessKeyId()const void GetSubAccountStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetSubAccountStatusResult.cc b/cloudwf/src/model/GetSubAccountStatusResult.cc index 3fe7e2237..313c6024b 100644 --- a/cloudwf/src/model/GetSubAccountStatusResult.cc +++ b/cloudwf/src/model/GetSubAccountStatusResult.cc @@ -35,10 +35,13 @@ GetSubAccountStatusResult::~GetSubAccountStatusResult() void GetSubAccountStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetUmengPagePermission4RootRequest.cc b/cloudwf/src/model/GetUmengPagePermission4RootRequest.cc index 128aaafbd..0161697d3 100644 --- a/cloudwf/src/model/GetUmengPagePermission4RootRequest.cc +++ b/cloudwf/src/model/GetUmengPagePermission4RootRequest.cc @@ -33,7 +33,7 @@ long GetUmengPagePermission4RootRequest::getId()const void GetUmengPagePermission4RootRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetUmengPagePermission4RootRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetUmengPagePermission4RootRequest::getAccessKeyId()const void GetUmengPagePermission4RootRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetUmengPagePermission4RootResult.cc b/cloudwf/src/model/GetUmengPagePermission4RootResult.cc index b67a41057..aac507dbd 100644 --- a/cloudwf/src/model/GetUmengPagePermission4RootResult.cc +++ b/cloudwf/src/model/GetUmengPagePermission4RootResult.cc @@ -35,10 +35,13 @@ GetUmengPagePermission4RootResult::~GetUmengPagePermission4RootResult() void GetUmengPagePermission4RootResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetUpgradeAPGroupProgressRequest.cc b/cloudwf/src/model/GetUpgradeAPGroupProgressRequest.cc index bd4c7927b..987a7b32c 100644 --- a/cloudwf/src/model/GetUpgradeAPGroupProgressRequest.cc +++ b/cloudwf/src/model/GetUpgradeAPGroupProgressRequest.cc @@ -33,6 +33,6 @@ std::string GetUpgradeAPGroupProgressRequest::getAccessKeyId()const void GetUpgradeAPGroupProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetUpgradeAPGroupProgressResult.cc b/cloudwf/src/model/GetUpgradeAPGroupProgressResult.cc index 3638ccb5f..5b638e958 100644 --- a/cloudwf/src/model/GetUpgradeAPGroupProgressResult.cc +++ b/cloudwf/src/model/GetUpgradeAPGroupProgressResult.cc @@ -35,10 +35,13 @@ GetUpgradeAPGroupProgressResult::~GetUpgradeAPGroupProgressResult() void GetUpgradeAPGroupProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetUpgradeAPProgressRequest.cc b/cloudwf/src/model/GetUpgradeAPProgressRequest.cc index 377bf07d2..8daa761e8 100644 --- a/cloudwf/src/model/GetUpgradeAPProgressRequest.cc +++ b/cloudwf/src/model/GetUpgradeAPProgressRequest.cc @@ -33,6 +33,6 @@ std::string GetUpgradeAPProgressRequest::getAccessKeyId()const void GetUpgradeAPProgressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetUpgradeAPProgressResult.cc b/cloudwf/src/model/GetUpgradeAPProgressResult.cc index 037edd5de..dddbaf423 100644 --- a/cloudwf/src/model/GetUpgradeAPProgressResult.cc +++ b/cloudwf/src/model/GetUpgradeAPProgressResult.cc @@ -35,10 +35,13 @@ GetUpgradeAPProgressResult::~GetUpgradeAPProgressResult() void GetUpgradeAPProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetUpgradeImgRequest.cc b/cloudwf/src/model/GetUpgradeImgRequest.cc index f3e349dfb..87a589a14 100644 --- a/cloudwf/src/model/GetUpgradeImgRequest.cc +++ b/cloudwf/src/model/GetUpgradeImgRequest.cc @@ -33,7 +33,7 @@ long GetUpgradeImgRequest::getId()const void GetUpgradeImgRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string GetUpgradeImgRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetUpgradeImgRequest::getAccessKeyId()const void GetUpgradeImgRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetUpgradeImgResult.cc b/cloudwf/src/model/GetUpgradeImgResult.cc index b96073af7..47ea4d8e2 100644 --- a/cloudwf/src/model/GetUpgradeImgResult.cc +++ b/cloudwf/src/model/GetUpgradeImgResult.cc @@ -35,10 +35,13 @@ GetUpgradeImgResult::~GetUpgradeImgResult() void GetUpgradeImgResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GetUserUmengPagePermissionRequest.cc b/cloudwf/src/model/GetUserUmengPagePermissionRequest.cc index 942f76eb4..1310093f1 100644 --- a/cloudwf/src/model/GetUserUmengPagePermissionRequest.cc +++ b/cloudwf/src/model/GetUserUmengPagePermissionRequest.cc @@ -33,7 +33,7 @@ long GetUserUmengPagePermissionRequest::getBid()const void GetUserUmengPagePermissionRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string GetUserUmengPagePermissionRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GetUserUmengPagePermissionRequest::getAccessKeyId()const void GetUserUmengPagePermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GetUserUmengPagePermissionResult.cc b/cloudwf/src/model/GetUserUmengPagePermissionResult.cc index dcefa080f..80ddfad53 100644 --- a/cloudwf/src/model/GetUserUmengPagePermissionResult.cc +++ b/cloudwf/src/model/GetUserUmengPagePermissionResult.cc @@ -35,10 +35,13 @@ GetUserUmengPagePermissionResult::~GetUserUmengPagePermissionResult() void GetUserUmengPagePermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GroupDetailsRequest.cc b/cloudwf/src/model/GroupDetailsRequest.cc index fbd5caa01..eacf2da1e 100644 --- a/cloudwf/src/model/GroupDetailsRequest.cc +++ b/cloudwf/src/model/GroupDetailsRequest.cc @@ -33,7 +33,7 @@ long GroupDetailsRequest::getGsid()const void GroupDetailsRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string GroupDetailsRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GroupDetailsRequest::getAccessKeyId()const void GroupDetailsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GroupDetailsResult.cc b/cloudwf/src/model/GroupDetailsResult.cc index 29f8f2431..b51d61440 100644 --- a/cloudwf/src/model/GroupDetailsResult.cc +++ b/cloudwf/src/model/GroupDetailsResult.cc @@ -35,10 +35,13 @@ GroupDetailsResult::~GroupDetailsResult() void GroupDetailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GroupIntimeRequest.cc b/cloudwf/src/model/GroupIntimeRequest.cc index 287da50e3..1d420c6cd 100644 --- a/cloudwf/src/model/GroupIntimeRequest.cc +++ b/cloudwf/src/model/GroupIntimeRequest.cc @@ -33,7 +33,7 @@ long GroupIntimeRequest::getGsid()const void GroupIntimeRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string GroupIntimeRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GroupIntimeRequest::getAccessKeyId()const void GroupIntimeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GroupIntimeResult.cc b/cloudwf/src/model/GroupIntimeResult.cc index ab969ea63..f372c71b7 100644 --- a/cloudwf/src/model/GroupIntimeResult.cc +++ b/cloudwf/src/model/GroupIntimeResult.cc @@ -35,10 +35,13 @@ GroupIntimeResult::~GroupIntimeResult() void GroupIntimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GroupOverviewRequest.cc b/cloudwf/src/model/GroupOverviewRequest.cc index 90d77146c..2fbb581b4 100644 --- a/cloudwf/src/model/GroupOverviewRequest.cc +++ b/cloudwf/src/model/GroupOverviewRequest.cc @@ -33,7 +33,7 @@ long GroupOverviewRequest::getGsid()const void GroupOverviewRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string GroupOverviewRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GroupOverviewRequest::getAccessKeyId()const void GroupOverviewRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GroupOverviewResult.cc b/cloudwf/src/model/GroupOverviewResult.cc index 644f27443..8ccfcc626 100644 --- a/cloudwf/src/model/GroupOverviewResult.cc +++ b/cloudwf/src/model/GroupOverviewResult.cc @@ -35,10 +35,13 @@ GroupOverviewResult::~GroupOverviewResult() void GroupOverviewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/GroupTrendRequest.cc b/cloudwf/src/model/GroupTrendRequest.cc index 765f19868..b453d5c05 100644 --- a/cloudwf/src/model/GroupTrendRequest.cc +++ b/cloudwf/src/model/GroupTrendRequest.cc @@ -33,7 +33,7 @@ long GroupTrendRequest::getGsid()const void GroupTrendRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string GroupTrendRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string GroupTrendRequest::getAccessKeyId()const void GroupTrendRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/GroupTrendResult.cc b/cloudwf/src/model/GroupTrendResult.cc index 76ec9a62e..ecc681883 100644 --- a/cloudwf/src/model/GroupTrendResult.cc +++ b/cloudwf/src/model/GroupTrendResult.cc @@ -35,10 +35,13 @@ GroupTrendResult::~GroupTrendResult() void GroupTrendResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/HeadquartersOverviewRequest.cc b/cloudwf/src/model/HeadquartersOverviewRequest.cc index 57ab6cb7a..5fca8fb65 100644 --- a/cloudwf/src/model/HeadquartersOverviewRequest.cc +++ b/cloudwf/src/model/HeadquartersOverviewRequest.cc @@ -33,7 +33,7 @@ long HeadquartersOverviewRequest::getBid()const void HeadquartersOverviewRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string HeadquartersOverviewRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string HeadquartersOverviewRequest::getAccessKeyId()const void HeadquartersOverviewRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/HeadquartersOverviewResult.cc b/cloudwf/src/model/HeadquartersOverviewResult.cc index 367fc6a61..fac8833fa 100644 --- a/cloudwf/src/model/HeadquartersOverviewResult.cc +++ b/cloudwf/src/model/HeadquartersOverviewResult.cc @@ -35,10 +35,13 @@ HeadquartersOverviewResult::~HeadquartersOverviewResult() void HeadquartersOverviewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/HeadquartersRankingRequest.cc b/cloudwf/src/model/HeadquartersRankingRequest.cc index 1915578ae..6ef015e4b 100644 --- a/cloudwf/src/model/HeadquartersRankingRequest.cc +++ b/cloudwf/src/model/HeadquartersRankingRequest.cc @@ -33,7 +33,7 @@ long HeadquartersRankingRequest::getBid()const void HeadquartersRankingRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string HeadquartersRankingRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string HeadquartersRankingRequest::getAccessKeyId()const void HeadquartersRankingRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/HeadquartersRankingResult.cc b/cloudwf/src/model/HeadquartersRankingResult.cc index 6b61eab87..caa7cebef 100644 --- a/cloudwf/src/model/HeadquartersRankingResult.cc +++ b/cloudwf/src/model/HeadquartersRankingResult.cc @@ -35,10 +35,13 @@ HeadquartersRankingResult::~HeadquartersRankingResult() void HeadquartersRankingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/HeadquartersToolsCoincideRequest.cc b/cloudwf/src/model/HeadquartersToolsCoincideRequest.cc index 8a83e906b..7117bf40e 100644 --- a/cloudwf/src/model/HeadquartersToolsCoincideRequest.cc +++ b/cloudwf/src/model/HeadquartersToolsCoincideRequest.cc @@ -33,7 +33,7 @@ long HeadquartersToolsCoincideRequest::getBid()const void HeadquartersToolsCoincideRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string HeadquartersToolsCoincideRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string HeadquartersToolsCoincideRequest::getAccessKeyId()const void HeadquartersToolsCoincideRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/HeadquartersToolsCoincideResult.cc b/cloudwf/src/model/HeadquartersToolsCoincideResult.cc index 1ac9f9660..e0ce38335 100644 --- a/cloudwf/src/model/HeadquartersToolsCoincideResult.cc +++ b/cloudwf/src/model/HeadquartersToolsCoincideResult.cc @@ -35,10 +35,13 @@ HeadquartersToolsCoincideResult::~HeadquartersToolsCoincideResult() void HeadquartersToolsCoincideResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/HeadquartersToolsContrastRequest.cc b/cloudwf/src/model/HeadquartersToolsContrastRequest.cc index c415a2f26..f776d12ba 100644 --- a/cloudwf/src/model/HeadquartersToolsContrastRequest.cc +++ b/cloudwf/src/model/HeadquartersToolsContrastRequest.cc @@ -33,7 +33,7 @@ long HeadquartersToolsContrastRequest::getBid()const void HeadquartersToolsContrastRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string HeadquartersToolsContrastRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string HeadquartersToolsContrastRequest::getAccessKeyId()const void HeadquartersToolsContrastRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/HeadquartersToolsContrastResult.cc b/cloudwf/src/model/HeadquartersToolsContrastResult.cc index cd2988387..389248011 100644 --- a/cloudwf/src/model/HeadquartersToolsContrastResult.cc +++ b/cloudwf/src/model/HeadquartersToolsContrastResult.cc @@ -35,10 +35,13 @@ HeadquartersToolsContrastResult::~HeadquartersToolsContrastResult() void HeadquartersToolsContrastResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/HeadquartersToolsO2ORequest.cc b/cloudwf/src/model/HeadquartersToolsO2ORequest.cc index b516a6aa4..b0b1ec36b 100644 --- a/cloudwf/src/model/HeadquartersToolsO2ORequest.cc +++ b/cloudwf/src/model/HeadquartersToolsO2ORequest.cc @@ -33,7 +33,7 @@ long HeadquartersToolsO2ORequest::getBid()const void HeadquartersToolsO2ORequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string HeadquartersToolsO2ORequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string HeadquartersToolsO2ORequest::getAccessKeyId()const void HeadquartersToolsO2ORequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/HeadquartersToolsO2OResult.cc b/cloudwf/src/model/HeadquartersToolsO2OResult.cc index 48b084f70..5a2f7eabd 100644 --- a/cloudwf/src/model/HeadquartersToolsO2OResult.cc +++ b/cloudwf/src/model/HeadquartersToolsO2OResult.cc @@ -35,10 +35,13 @@ HeadquartersToolsO2OResult::~HeadquartersToolsO2OResult() void HeadquartersToolsO2OResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/HeadquartersTrendRequest.cc b/cloudwf/src/model/HeadquartersTrendRequest.cc index 697bd15d6..15e0bdf93 100644 --- a/cloudwf/src/model/HeadquartersTrendRequest.cc +++ b/cloudwf/src/model/HeadquartersTrendRequest.cc @@ -33,7 +33,7 @@ long HeadquartersTrendRequest::getBid()const void HeadquartersTrendRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string HeadquartersTrendRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string HeadquartersTrendRequest::getAccessKeyId()const void HeadquartersTrendRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/HeadquartersTrendResult.cc b/cloudwf/src/model/HeadquartersTrendResult.cc index 7ac8d5572..ffd09c81d 100644 --- a/cloudwf/src/model/HeadquartersTrendResult.cc +++ b/cloudwf/src/model/HeadquartersTrendResult.cc @@ -35,10 +35,13 @@ HeadquartersTrendResult::~HeadquartersTrendResult() void HeadquartersTrendResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/InnerCheckOrderRequest.cc b/cloudwf/src/model/InnerCheckOrderRequest.cc index e36f93c70..143c353eb 100644 --- a/cloudwf/src/model/InnerCheckOrderRequest.cc +++ b/cloudwf/src/model/InnerCheckOrderRequest.cc @@ -33,7 +33,7 @@ std::string InnerCheckOrderRequest::getData()const void InnerCheckOrderRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string InnerCheckOrderRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string InnerCheckOrderRequest::getAccessKeyId()const void InnerCheckOrderRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/InnerCheckOrderResult.cc b/cloudwf/src/model/InnerCheckOrderResult.cc index dbb70a57c..adf1c12c9 100644 --- a/cloudwf/src/model/InnerCheckOrderResult.cc +++ b/cloudwf/src/model/InnerCheckOrderResult.cc @@ -35,10 +35,13 @@ InnerCheckOrderResult::~InnerCheckOrderResult() void InnerCheckOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/InnerProduceCloudWFRequest.cc b/cloudwf/src/model/InnerProduceCloudWFRequest.cc index e1a6d09e8..4338fc48b 100644 --- a/cloudwf/src/model/InnerProduceCloudWFRequest.cc +++ b/cloudwf/src/model/InnerProduceCloudWFRequest.cc @@ -33,7 +33,7 @@ std::string InnerProduceCloudWFRequest::getData()const void InnerProduceCloudWFRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string InnerProduceCloudWFRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string InnerProduceCloudWFRequest::getAccessKeyId()const void InnerProduceCloudWFRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/InnerProduceCloudWFResult.cc b/cloudwf/src/model/InnerProduceCloudWFResult.cc index 31e010af1..5abf7953c 100644 --- a/cloudwf/src/model/InnerProduceCloudWFResult.cc +++ b/cloudwf/src/model/InnerProduceCloudWFResult.cc @@ -35,10 +35,13 @@ InnerProduceCloudWFResult::~InnerProduceCloudWFResult() void InnerProduceCloudWFResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/KickAndClearPMKcacheRequest.cc b/cloudwf/src/model/KickAndClearPMKcacheRequest.cc index e8a60dcae..d740df023 100644 --- a/cloudwf/src/model/KickAndClearPMKcacheRequest.cc +++ b/cloudwf/src/model/KickAndClearPMKcacheRequest.cc @@ -33,7 +33,7 @@ long KickAndClearPMKcacheRequest::getId()const void KickAndClearPMKcacheRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string KickAndClearPMKcacheRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string KickAndClearPMKcacheRequest::getAccessKeyId()const void KickAndClearPMKcacheRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/KickAndClearPMKcacheResult.cc b/cloudwf/src/model/KickAndClearPMKcacheResult.cc index 2b36a4ee4..54a063384 100644 --- a/cloudwf/src/model/KickAndClearPMKcacheResult.cc +++ b/cloudwf/src/model/KickAndClearPMKcacheResult.cc @@ -35,10 +35,13 @@ KickAndClearPMKcacheResult::~KickAndClearPMKcacheResult() void KickAndClearPMKcacheResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/KickStaRequest.cc b/cloudwf/src/model/KickStaRequest.cc index c1cd25be9..99a68d167 100644 --- a/cloudwf/src/model/KickStaRequest.cc +++ b/cloudwf/src/model/KickStaRequest.cc @@ -33,7 +33,7 @@ long KickStaRequest::getId()const void KickStaRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string KickStaRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string KickStaRequest::getAccessKeyId()const void KickStaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/KickStaResult.cc b/cloudwf/src/model/KickStaResult.cc index df4463493..632bb9680 100644 --- a/cloudwf/src/model/KickStaResult.cc +++ b/cloudwf/src/model/KickStaResult.cc @@ -35,10 +35,13 @@ KickStaResult::~KickStaResult() void KickStaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListAccountConfigRequest.cc b/cloudwf/src/model/ListAccountConfigRequest.cc index 0b6958c3a..2f15b1eb1 100644 --- a/cloudwf/src/model/ListAccountConfigRequest.cc +++ b/cloudwf/src/model/ListAccountConfigRequest.cc @@ -33,7 +33,7 @@ std::string ListAccountConfigRequest::getOrderCol()const void ListAccountConfigRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } int ListAccountConfigRequest::getLength()const @@ -44,7 +44,7 @@ int ListAccountConfigRequest::getLength()const void ListAccountConfigRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListAccountConfigRequest::getSearchEmail()const @@ -55,7 +55,7 @@ std::string ListAccountConfigRequest::getSearchEmail()const void ListAccountConfigRequest::setSearchEmail(const std::string& searchEmail) { searchEmail_ = searchEmail; - setParameter("SearchEmail", searchEmail); + setCoreParameter("SearchEmail", searchEmail); } int ListAccountConfigRequest::getPageIndex()const @@ -66,7 +66,7 @@ int ListAccountConfigRequest::getPageIndex()const void ListAccountConfigRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListAccountConfigRequest::getOrderDir()const @@ -77,7 +77,7 @@ std::string ListAccountConfigRequest::getOrderDir()const void ListAccountConfigRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListAccountConfigRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListAccountConfigRequest::getAccessKeyId()const void ListAccountConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListAccountConfigResult.cc b/cloudwf/src/model/ListAccountConfigResult.cc index d6a60b573..2478f3dfe 100644 --- a/cloudwf/src/model/ListAccountConfigResult.cc +++ b/cloudwf/src/model/ListAccountConfigResult.cc @@ -35,10 +35,13 @@ ListAccountConfigResult::~ListAccountConfigResult() void ListAccountConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApAssetCanBeAddedRequest.cc b/cloudwf/src/model/ListApAssetCanBeAddedRequest.cc index 2fb3a6aa1..28ec1ab46 100644 --- a/cloudwf/src/model/ListApAssetCanBeAddedRequest.cc +++ b/cloudwf/src/model/ListApAssetCanBeAddedRequest.cc @@ -33,7 +33,7 @@ std::string ListApAssetCanBeAddedRequest::getSearchName()const void ListApAssetCanBeAddedRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } long ListApAssetCanBeAddedRequest::getApgroupId()const @@ -44,7 +44,7 @@ long ListApAssetCanBeAddedRequest::getApgroupId()const void ListApAssetCanBeAddedRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } int ListApAssetCanBeAddedRequest::getLength()const @@ -55,7 +55,7 @@ int ListApAssetCanBeAddedRequest::getLength()const void ListApAssetCanBeAddedRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListApAssetCanBeAddedRequest::getPageIndex()const @@ -66,7 +66,7 @@ int ListApAssetCanBeAddedRequest::getPageIndex()const void ListApAssetCanBeAddedRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListApAssetCanBeAddedRequest::getSearchMac()const @@ -77,7 +77,7 @@ std::string ListApAssetCanBeAddedRequest::getSearchMac()const void ListApAssetCanBeAddedRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } std::string ListApAssetCanBeAddedRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string ListApAssetCanBeAddedRequest::getAccessKeyId()const void ListApAssetCanBeAddedRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListApAssetCanBeAddedRequest::getSearchModel()const @@ -99,6 +99,6 @@ std::string ListApAssetCanBeAddedRequest::getSearchModel()const void ListApAssetCanBeAddedRequest::setSearchModel(const std::string& searchModel) { searchModel_ = searchModel; - setParameter("SearchModel", searchModel); + setCoreParameter("SearchModel", searchModel); } diff --git a/cloudwf/src/model/ListApAssetCanBeAddedResult.cc b/cloudwf/src/model/ListApAssetCanBeAddedResult.cc index 64f6b49e5..548666ee3 100644 --- a/cloudwf/src/model/ListApAssetCanBeAddedResult.cc +++ b/cloudwf/src/model/ListApAssetCanBeAddedResult.cc @@ -35,10 +35,13 @@ ListApAssetCanBeAddedResult::~ListApAssetCanBeAddedResult() void ListApAssetCanBeAddedResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApAssetRequest.cc b/cloudwf/src/model/ListApAssetRequest.cc index c3f25bf9b..60d6a6834 100644 --- a/cloudwf/src/model/ListApAssetRequest.cc +++ b/cloudwf/src/model/ListApAssetRequest.cc @@ -33,7 +33,7 @@ std::string ListApAssetRequest::getOrderCol()const void ListApAssetRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListApAssetRequest::getSearchName()const @@ -44,7 +44,7 @@ std::string ListApAssetRequest::getSearchName()const void ListApAssetRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } std::string ListApAssetRequest::getSearchSerialNo()const @@ -55,7 +55,7 @@ std::string ListApAssetRequest::getSearchSerialNo()const void ListApAssetRequest::setSearchSerialNo(const std::string& searchSerialNo) { searchSerialNo_ = searchSerialNo; - setParameter("SearchSerialNo", searchSerialNo); + setCoreParameter("SearchSerialNo", searchSerialNo); } int ListApAssetRequest::getLength()const @@ -66,7 +66,7 @@ int ListApAssetRequest::getLength()const void ListApAssetRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListApAssetRequest::getPageIndex()const @@ -77,7 +77,7 @@ int ListApAssetRequest::getPageIndex()const void ListApAssetRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListApAssetRequest::getSearchMac()const @@ -88,7 +88,7 @@ std::string ListApAssetRequest::getSearchMac()const void ListApAssetRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } std::string ListApAssetRequest::getOrderDir()const @@ -99,7 +99,7 @@ std::string ListApAssetRequest::getOrderDir()const void ListApAssetRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListApAssetRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string ListApAssetRequest::getAccessKeyId()const void ListApAssetRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListApAssetRequest::getSearchModel()const @@ -121,6 +121,6 @@ std::string ListApAssetRequest::getSearchModel()const void ListApAssetRequest::setSearchModel(const std::string& searchModel) { searchModel_ = searchModel; - setParameter("SearchModel", searchModel); + setCoreParameter("SearchModel", searchModel); } diff --git a/cloudwf/src/model/ListApAssetResult.cc b/cloudwf/src/model/ListApAssetResult.cc index 1c7bd02f6..27bbc0c83 100644 --- a/cloudwf/src/model/ListApAssetResult.cc +++ b/cloudwf/src/model/ListApAssetResult.cc @@ -35,10 +35,13 @@ ListApAssetResult::~ListApAssetResult() void ListApAssetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApDetailInfoRequest.cc b/cloudwf/src/model/ListApDetailInfoRequest.cc index e6ce22a14..fe43017b5 100644 --- a/cloudwf/src/model/ListApDetailInfoRequest.cc +++ b/cloudwf/src/model/ListApDetailInfoRequest.cc @@ -33,7 +33,7 @@ long ListApDetailInfoRequest::getApAssetId()const void ListApDetailInfoRequest::setApAssetId(long apAssetId) { apAssetId_ = apAssetId; - setParameter("ApAssetId", std::to_string(apAssetId)); + setCoreParameter("ApAssetId", std::to_string(apAssetId)); } std::string ListApDetailInfoRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListApDetailInfoRequest::getAccessKeyId()const void ListApDetailInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApDetailInfoResult.cc b/cloudwf/src/model/ListApDetailInfoResult.cc index ef36634fe..1a14d7489 100644 --- a/cloudwf/src/model/ListApDetailInfoResult.cc +++ b/cloudwf/src/model/ListApDetailInfoResult.cc @@ -35,10 +35,13 @@ ListApDetailInfoResult::~ListApDetailInfoResult() void ListApDetailInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApPositionMapRequest.cc b/cloudwf/src/model/ListApPositionMapRequest.cc index 49e4f57bb..813c90fe7 100644 --- a/cloudwf/src/model/ListApPositionMapRequest.cc +++ b/cloudwf/src/model/ListApPositionMapRequest.cc @@ -33,7 +33,7 @@ std::string ListApPositionMapRequest::getOrderCol()const void ListApPositionMapRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListApPositionMapRequest::getSearchName()const @@ -44,7 +44,7 @@ std::string ListApPositionMapRequest::getSearchName()const void ListApPositionMapRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } int ListApPositionMapRequest::getTotalItem()const @@ -55,7 +55,7 @@ int ListApPositionMapRequest::getTotalItem()const void ListApPositionMapRequest::setTotalItem(int totalItem) { totalItem_ = totalItem; - setParameter("TotalItem", std::to_string(totalItem)); + setCoreParameter("TotalItem", std::to_string(totalItem)); } int ListApPositionMapRequest::getLength()const @@ -66,7 +66,7 @@ int ListApPositionMapRequest::getLength()const void ListApPositionMapRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListApPositionMapRequest::getMapType()const @@ -77,7 +77,7 @@ int ListApPositionMapRequest::getMapType()const void ListApPositionMapRequest::setMapType(int mapType) { mapType_ = mapType; - setParameter("MapType", std::to_string(mapType)); + setCoreParameter("MapType", std::to_string(mapType)); } int ListApPositionMapRequest::getPageIndex()const @@ -88,7 +88,7 @@ int ListApPositionMapRequest::getPageIndex()const void ListApPositionMapRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListApPositionMapRequest::getSearchApgroupName()const @@ -99,7 +99,7 @@ std::string ListApPositionMapRequest::getSearchApgroupName()const void ListApPositionMapRequest::setSearchApgroupName(const std::string& searchApgroupName) { searchApgroupName_ = searchApgroupName; - setParameter("SearchApgroupName", searchApgroupName); + setCoreParameter("SearchApgroupName", searchApgroupName); } std::string ListApPositionMapRequest::getOrderDir()const @@ -110,7 +110,7 @@ std::string ListApPositionMapRequest::getOrderDir()const void ListApPositionMapRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListApPositionMapRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ListApPositionMapRequest::getAccessKeyId()const void ListApPositionMapRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApPositionMapResult.cc b/cloudwf/src/model/ListApPositionMapResult.cc index 3e602fab0..c9b52c0f4 100644 --- a/cloudwf/src/model/ListApPositionMapResult.cc +++ b/cloudwf/src/model/ListApPositionMapResult.cc @@ -35,10 +35,13 @@ ListApPositionMapResult::~ListApPositionMapResult() void ListApPositionMapResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApPositionRequest.cc b/cloudwf/src/model/ListApPositionRequest.cc index 4e2073696..945c968b0 100644 --- a/cloudwf/src/model/ListApPositionRequest.cc +++ b/cloudwf/src/model/ListApPositionRequest.cc @@ -33,7 +33,7 @@ long ListApPositionRequest::getMapId()const void ListApPositionRequest::setMapId(long mapId) { mapId_ = mapId; - setParameter("MapId", std::to_string(mapId)); + setCoreParameter("MapId", std::to_string(mapId)); } std::string ListApPositionRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListApPositionRequest::getAccessKeyId()const void ListApPositionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApPositionResult.cc b/cloudwf/src/model/ListApPositionResult.cc index 58d36d026..550eb7bce 100644 --- a/cloudwf/src/model/ListApPositionResult.cc +++ b/cloudwf/src/model/ListApPositionResult.cc @@ -35,10 +35,13 @@ ListApPositionResult::~ListApPositionResult() void ListApPositionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApPositionStatusRequest.cc b/cloudwf/src/model/ListApPositionStatusRequest.cc index a4c2e2b4c..ceec6c485 100644 --- a/cloudwf/src/model/ListApPositionStatusRequest.cc +++ b/cloudwf/src/model/ListApPositionStatusRequest.cc @@ -33,7 +33,7 @@ std::string ListApPositionStatusRequest::getJsonData()const void ListApPositionStatusRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string ListApPositionStatusRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListApPositionStatusRequest::getAccessKeyId()const void ListApPositionStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApPositionStatusResult.cc b/cloudwf/src/model/ListApPositionStatusResult.cc index a06a5c643..011e3d4ce 100644 --- a/cloudwf/src/model/ListApPositionStatusResult.cc +++ b/cloudwf/src/model/ListApPositionStatusResult.cc @@ -35,10 +35,13 @@ ListApPositionStatusResult::~ListApPositionStatusResult() void ListApPositionStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApRadioStatusRequest.cc b/cloudwf/src/model/ListApRadioStatusRequest.cc index cfc387534..024f6533b 100644 --- a/cloudwf/src/model/ListApRadioStatusRequest.cc +++ b/cloudwf/src/model/ListApRadioStatusRequest.cc @@ -33,7 +33,7 @@ int ListApRadioStatusRequest::getSearchDisabled()const void ListApRadioStatusRequest::setSearchDisabled(int searchDisabled) { searchDisabled_ = searchDisabled; - setParameter("SearchDisabled", std::to_string(searchDisabled)); + setCoreParameter("SearchDisabled", std::to_string(searchDisabled)); } std::string ListApRadioStatusRequest::getOrderCol()const @@ -44,7 +44,7 @@ std::string ListApRadioStatusRequest::getOrderCol()const void ListApRadioStatusRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListApRadioStatusRequest::getSearchName()const @@ -55,7 +55,7 @@ std::string ListApRadioStatusRequest::getSearchName()const void ListApRadioStatusRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } int ListApRadioStatusRequest::getSearchChannelEquals()const @@ -66,7 +66,7 @@ int ListApRadioStatusRequest::getSearchChannelEquals()const void ListApRadioStatusRequest::setSearchChannelEquals(int searchChannelEquals) { searchChannelEquals_ = searchChannelEquals; - setParameter("SearchChannelEquals", std::to_string(searchChannelEquals)); + setCoreParameter("SearchChannelEquals", std::to_string(searchChannelEquals)); } int ListApRadioStatusRequest::getLength()const @@ -77,7 +77,7 @@ int ListApRadioStatusRequest::getLength()const void ListApRadioStatusRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListApRadioStatusRequest::getSearchMac()const @@ -88,7 +88,7 @@ std::string ListApRadioStatusRequest::getSearchMac()const void ListApRadioStatusRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } std::string ListApRadioStatusRequest::getSearchApgroupName()const @@ -99,7 +99,7 @@ std::string ListApRadioStatusRequest::getSearchApgroupName()const void ListApRadioStatusRequest::setSearchApgroupName(const std::string& searchApgroupName) { searchApgroupName_ = searchApgroupName; - setParameter("SearchApgroupName", searchApgroupName); + setCoreParameter("SearchApgroupName", searchApgroupName); } int ListApRadioStatusRequest::getPageIndex()const @@ -110,7 +110,7 @@ int ListApRadioStatusRequest::getPageIndex()const void ListApRadioStatusRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListApRadioStatusRequest::getOrderDir()const @@ -121,7 +121,7 @@ std::string ListApRadioStatusRequest::getOrderDir()const void ListApRadioStatusRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } int ListApRadioStatusRequest::getSearchApStatus()const @@ -132,7 +132,7 @@ int ListApRadioStatusRequest::getSearchApStatus()const void ListApRadioStatusRequest::setSearchApStatus(int searchApStatus) { searchApStatus_ = searchApStatus; - setParameter("SearchApStatus", std::to_string(searchApStatus)); + setCoreParameter("SearchApStatus", std::to_string(searchApStatus)); } std::string ListApRadioStatusRequest::getAccessKeyId()const @@ -143,6 +143,6 @@ std::string ListApRadioStatusRequest::getAccessKeyId()const void ListApRadioStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApRadioStatusResult.cc b/cloudwf/src/model/ListApRadioStatusResult.cc index a6969d7e1..958feef72 100644 --- a/cloudwf/src/model/ListApRadioStatusResult.cc +++ b/cloudwf/src/model/ListApRadioStatusResult.cc @@ -35,10 +35,13 @@ ListApRadioStatusResult::~ListApRadioStatusResult() void ListApRadioStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApStaStatusRequest.cc b/cloudwf/src/model/ListApStaStatusRequest.cc index d26bf44b8..50b077c75 100644 --- a/cloudwf/src/model/ListApStaStatusRequest.cc +++ b/cloudwf/src/model/ListApStaStatusRequest.cc @@ -33,7 +33,7 @@ std::string ListApStaStatusRequest::getOrderCol()const void ListApStaStatusRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListApStaStatusRequest::getSearchProtocal()const @@ -44,7 +44,7 @@ std::string ListApStaStatusRequest::getSearchProtocal()const void ListApStaStatusRequest::setSearchProtocal(const std::string& searchProtocal) { searchProtocal_ = searchProtocal; - setParameter("SearchProtocal", searchProtocal); + setCoreParameter("SearchProtocal", searchProtocal); } std::string ListApStaStatusRequest::getSearchSsid()const @@ -55,7 +55,7 @@ std::string ListApStaStatusRequest::getSearchSsid()const void ListApStaStatusRequest::setSearchSsid(const std::string& searchSsid) { searchSsid_ = searchSsid; - setParameter("SearchSsid", searchSsid); + setCoreParameter("SearchSsid", searchSsid); } std::string ListApStaStatusRequest::getSearchIp()const @@ -66,7 +66,7 @@ std::string ListApStaStatusRequest::getSearchIp()const void ListApStaStatusRequest::setSearchIp(const std::string& searchIp) { searchIp_ = searchIp; - setParameter("SearchIp", searchIp); + setCoreParameter("SearchIp", searchIp); } int ListApStaStatusRequest::getLength()const @@ -77,7 +77,7 @@ int ListApStaStatusRequest::getLength()const void ListApStaStatusRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListApStaStatusRequest::getSearchUsername()const @@ -88,7 +88,7 @@ std::string ListApStaStatusRequest::getSearchUsername()const void ListApStaStatusRequest::setSearchUsername(const std::string& searchUsername) { searchUsername_ = searchUsername; - setParameter("SearchUsername", searchUsername); + setCoreParameter("SearchUsername", searchUsername); } std::string ListApStaStatusRequest::getSearchMac()const @@ -99,7 +99,7 @@ std::string ListApStaStatusRequest::getSearchMac()const void ListApStaStatusRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } int ListApStaStatusRequest::getPageIndex()const @@ -110,7 +110,7 @@ int ListApStaStatusRequest::getPageIndex()const void ListApStaStatusRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } long ListApStaStatusRequest::getId()const @@ -121,7 +121,7 @@ long ListApStaStatusRequest::getId()const void ListApStaStatusRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string ListApStaStatusRequest::getOrderDir()const @@ -132,7 +132,7 @@ std::string ListApStaStatusRequest::getOrderDir()const void ListApStaStatusRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListApStaStatusRequest::getAccessKeyId()const @@ -143,6 +143,6 @@ std::string ListApStaStatusRequest::getAccessKeyId()const void ListApStaStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApStaStatusResult.cc b/cloudwf/src/model/ListApStaStatusResult.cc index 92b2bedf2..30bce814a 100644 --- a/cloudwf/src/model/ListApStaStatusResult.cc +++ b/cloudwf/src/model/ListApStaStatusResult.cc @@ -35,10 +35,13 @@ ListApStaStatusResult::~ListApStaStatusResult() void ListApStaStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApStatusRequest.cc b/cloudwf/src/model/ListApStatusRequest.cc index 85ae67422..245c5d4e4 100644 --- a/cloudwf/src/model/ListApStatusRequest.cc +++ b/cloudwf/src/model/ListApStatusRequest.cc @@ -33,7 +33,7 @@ std::string ListApStatusRequest::getOrderCol()const void ListApStatusRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListApStatusRequest::getSearchName()const @@ -44,7 +44,7 @@ std::string ListApStatusRequest::getSearchName()const void ListApStatusRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } std::string ListApStatusRequest::getSearchGroupName()const @@ -55,7 +55,7 @@ std::string ListApStatusRequest::getSearchGroupName()const void ListApStatusRequest::setSearchGroupName(const std::string& searchGroupName) { searchGroupName_ = searchGroupName; - setParameter("SearchGroupName", searchGroupName); + setCoreParameter("SearchGroupName", searchGroupName); } int ListApStatusRequest::getSearchStatus()const @@ -66,7 +66,7 @@ int ListApStatusRequest::getSearchStatus()const void ListApStatusRequest::setSearchStatus(int searchStatus) { searchStatus_ = searchStatus; - setParameter("SearchStatus", std::to_string(searchStatus)); + setCoreParameter("SearchStatus", std::to_string(searchStatus)); } std::string ListApStatusRequest::getSearchWanIp()const @@ -77,7 +77,7 @@ std::string ListApStatusRequest::getSearchWanIp()const void ListApStatusRequest::setSearchWanIp(const std::string& searchWanIp) { searchWanIp_ = searchWanIp; - setParameter("SearchWanIp", searchWanIp); + setCoreParameter("SearchWanIp", searchWanIp); } std::string ListApStatusRequest::getSearchApModelName()const @@ -88,7 +88,7 @@ std::string ListApStatusRequest::getSearchApModelName()const void ListApStatusRequest::setSearchApModelName(const std::string& searchApModelName) { searchApModelName_ = searchApModelName; - setParameter("SearchApModelName", searchApModelName); + setCoreParameter("SearchApModelName", searchApModelName); } int ListApStatusRequest::getLength()const @@ -99,7 +99,7 @@ int ListApStatusRequest::getLength()const void ListApStatusRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListApStatusRequest::getOrderDir()const @@ -110,7 +110,7 @@ std::string ListApStatusRequest::getOrderDir()const void ListApStatusRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListApStatusRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ListApStatusRequest::getAccessKeyId()const void ListApStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int ListApStatusRequest::getSearchBssEquals()const @@ -132,7 +132,7 @@ int ListApStatusRequest::getSearchBssEquals()const void ListApStatusRequest::setSearchBssEquals(int searchBssEquals) { searchBssEquals_ = searchBssEquals; - setParameter("SearchBssEquals", std::to_string(searchBssEquals)); + setCoreParameter("SearchBssEquals", std::to_string(searchBssEquals)); } long ListApStatusRequest::getSearchSwVersion()const @@ -143,7 +143,7 @@ long ListApStatusRequest::getSearchSwVersion()const void ListApStatusRequest::setSearchSwVersion(long searchSwVersion) { searchSwVersion_ = searchSwVersion; - setParameter("SearchSwVersion", std::to_string(searchSwVersion)); + setCoreParameter("SearchSwVersion", std::to_string(searchSwVersion)); } std::string ListApStatusRequest::getSearchCompanyName()const @@ -154,7 +154,7 @@ std::string ListApStatusRequest::getSearchCompanyName()const void ListApStatusRequest::setSearchCompanyName(const std::string& searchCompanyName) { searchCompanyName_ = searchCompanyName; - setParameter("SearchCompanyName", searchCompanyName); + setCoreParameter("SearchCompanyName", searchCompanyName); } std::string ListApStatusRequest::getSearchMac()const @@ -165,7 +165,7 @@ std::string ListApStatusRequest::getSearchMac()const void ListApStatusRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } int ListApStatusRequest::getPageIndex()const @@ -176,6 +176,6 @@ int ListApStatusRequest::getPageIndex()const void ListApStatusRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } diff --git a/cloudwf/src/model/ListApStatusResult.cc b/cloudwf/src/model/ListApStatusResult.cc index 2b481cd4a..8b68145c8 100644 --- a/cloudwf/src/model/ListApStatusResult.cc +++ b/cloudwf/src/model/ListApStatusResult.cc @@ -35,10 +35,13 @@ ListApStatusResult::~ListApStatusResult() void ListApStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApUpgradeRequest.cc b/cloudwf/src/model/ListApUpgradeRequest.cc index bc4b1fa40..16e1ea130 100644 --- a/cloudwf/src/model/ListApUpgradeRequest.cc +++ b/cloudwf/src/model/ListApUpgradeRequest.cc @@ -33,7 +33,7 @@ std::string ListApUpgradeRequest::getOrderCol()const void ListApUpgradeRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListApUpgradeRequest::getSearchName()const @@ -44,7 +44,7 @@ std::string ListApUpgradeRequest::getSearchName()const void ListApUpgradeRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } std::string ListApUpgradeRequest::getSearchApModelName()const @@ -55,7 +55,7 @@ std::string ListApUpgradeRequest::getSearchApModelName()const void ListApUpgradeRequest::setSearchApModelName(const std::string& searchApModelName) { searchApModelName_ = searchApModelName; - setParameter("SearchApModelName", searchApModelName); + setCoreParameter("SearchApModelName", searchApModelName); } int ListApUpgradeRequest::getLength()const @@ -66,7 +66,7 @@ int ListApUpgradeRequest::getLength()const void ListApUpgradeRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListApUpgradeRequest::getSearchMac()const @@ -77,7 +77,7 @@ std::string ListApUpgradeRequest::getSearchMac()const void ListApUpgradeRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } int ListApUpgradeRequest::getPageIndex()const @@ -88,7 +88,7 @@ int ListApUpgradeRequest::getPageIndex()const void ListApUpgradeRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListApUpgradeRequest::getOrderDir()const @@ -99,7 +99,7 @@ std::string ListApUpgradeRequest::getOrderDir()const void ListApUpgradeRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListApUpgradeRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListApUpgradeRequest::getAccessKeyId()const void ListApUpgradeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApUpgradeResult.cc b/cloudwf/src/model/ListApUpgradeResult.cc index 213b6216a..1903e9ea5 100644 --- a/cloudwf/src/model/ListApUpgradeResult.cc +++ b/cloudwf/src/model/ListApUpgradeResult.cc @@ -35,10 +35,13 @@ ListApUpgradeResult::~ListApUpgradeResult() void ListApUpgradeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListApgroupConfigRequest.cc b/cloudwf/src/model/ListApgroupConfigRequest.cc index 9ce6a6279..73515f4c9 100644 --- a/cloudwf/src/model/ListApgroupConfigRequest.cc +++ b/cloudwf/src/model/ListApgroupConfigRequest.cc @@ -33,7 +33,7 @@ std::string ListApgroupConfigRequest::getOrderCol()const void ListApgroupConfigRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListApgroupConfigRequest::getSearchName()const @@ -44,7 +44,7 @@ std::string ListApgroupConfigRequest::getSearchName()const void ListApgroupConfigRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } std::string ListApgroupConfigRequest::getSearchCompany()const @@ -55,7 +55,7 @@ std::string ListApgroupConfigRequest::getSearchCompany()const void ListApgroupConfigRequest::setSearchCompany(const std::string& searchCompany) { searchCompany_ = searchCompany; - setParameter("SearchCompany", searchCompany); + setCoreParameter("SearchCompany", searchCompany); } int ListApgroupConfigRequest::getLength()const @@ -66,7 +66,7 @@ int ListApgroupConfigRequest::getLength()const void ListApgroupConfigRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListApgroupConfigRequest::getPageIndex()const @@ -77,7 +77,7 @@ int ListApgroupConfigRequest::getPageIndex()const void ListApgroupConfigRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListApgroupConfigRequest::getOrderDir()const @@ -88,7 +88,7 @@ std::string ListApgroupConfigRequest::getOrderDir()const void ListApgroupConfigRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListApgroupConfigRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListApgroupConfigRequest::getAccessKeyId()const void ListApgroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListApgroupConfigResult.cc b/cloudwf/src/model/ListApgroupConfigResult.cc index 86d0e76ca..48cf33a64 100644 --- a/cloudwf/src/model/ListApgroupConfigResult.cc +++ b/cloudwf/src/model/ListApgroupConfigResult.cc @@ -35,10 +35,13 @@ ListApgroupConfigResult::~ListApgroupConfigResult() void ListApgroupConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListBriefApConfigRequest.cc b/cloudwf/src/model/ListBriefApConfigRequest.cc index e63e52e02..f0ae61956 100644 --- a/cloudwf/src/model/ListBriefApConfigRequest.cc +++ b/cloudwf/src/model/ListBriefApConfigRequest.cc @@ -33,7 +33,7 @@ int ListBriefApConfigRequest::getSearchScan()const void ListBriefApConfigRequest::setSearchScan(int searchScan) { searchScan_ = searchScan; - setParameter("SearchScan", std::to_string(searchScan)); + setCoreParameter("SearchScan", std::to_string(searchScan)); } std::string ListBriefApConfigRequest::getOrderCol()const @@ -44,7 +44,7 @@ std::string ListBriefApConfigRequest::getOrderCol()const void ListBriefApConfigRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListBriefApConfigRequest::getSearchName()const @@ -55,7 +55,7 @@ std::string ListBriefApConfigRequest::getSearchName()const void ListBriefApConfigRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } int ListBriefApConfigRequest::getLength()const @@ -66,7 +66,7 @@ int ListBriefApConfigRequest::getLength()const void ListBriefApConfigRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListBriefApConfigRequest::getSearchMac()const @@ -77,7 +77,7 @@ std::string ListBriefApConfigRequest::getSearchMac()const void ListBriefApConfigRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } int ListBriefApConfigRequest::getPageIndex()const @@ -88,7 +88,7 @@ int ListBriefApConfigRequest::getPageIndex()const void ListBriefApConfigRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListBriefApConfigRequest::getOrderDir()const @@ -99,7 +99,7 @@ std::string ListBriefApConfigRequest::getOrderDir()const void ListBriefApConfigRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListBriefApConfigRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string ListBriefApConfigRequest::getAccessKeyId()const void ListBriefApConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListBriefApConfigRequest::getSearchModel()const @@ -121,6 +121,6 @@ std::string ListBriefApConfigRequest::getSearchModel()const void ListBriefApConfigRequest::setSearchModel(const std::string& searchModel) { searchModel_ = searchModel; - setParameter("SearchModel", searchModel); + setCoreParameter("SearchModel", searchModel); } diff --git a/cloudwf/src/model/ListBriefApConfigResult.cc b/cloudwf/src/model/ListBriefApConfigResult.cc index 33c0f4678..84d92c42c 100644 --- a/cloudwf/src/model/ListBriefApConfigResult.cc +++ b/cloudwf/src/model/ListBriefApConfigResult.cc @@ -35,10 +35,13 @@ ListBriefApConfigResult::~ListBriefApConfigResult() void ListBriefApConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListBriefConfigByActionRequest.cc b/cloudwf/src/model/ListBriefConfigByActionRequest.cc index f0c8b0652..4fedd4ec6 100644 --- a/cloudwf/src/model/ListBriefConfigByActionRequest.cc +++ b/cloudwf/src/model/ListBriefConfigByActionRequest.cc @@ -33,7 +33,7 @@ long ListBriefConfigByActionRequest::getAncestorApgroupId()const void ListBriefConfigByActionRequest::setAncestorApgroupId(long ancestorApgroupId) { ancestorApgroupId_ = ancestorApgroupId; - setParameter("AncestorApgroupId", std::to_string(ancestorApgroupId)); + setCoreParameter("AncestorApgroupId", std::to_string(ancestorApgroupId)); } int ListBriefConfigByActionRequest::getLimit()const @@ -44,7 +44,7 @@ int ListBriefConfigByActionRequest::getLimit()const void ListBriefConfigByActionRequest::setLimit(int limit) { limit_ = limit; - setParameter("Limit", std::to_string(limit)); + setCoreParameter("Limit", std::to_string(limit)); } std::string ListBriefConfigByActionRequest::getFuzzySearch()const @@ -55,7 +55,7 @@ std::string ListBriefConfigByActionRequest::getFuzzySearch()const void ListBriefConfigByActionRequest::setFuzzySearch(const std::string& fuzzySearch) { fuzzySearch_ = fuzzySearch; - setParameter("FuzzySearch", fuzzySearch); + setCoreParameter("FuzzySearch", fuzzySearch); } std::string ListBriefConfigByActionRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListBriefConfigByActionRequest::getAccessKeyId()const void ListBriefConfigByActionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListBriefConfigByActionResult.cc b/cloudwf/src/model/ListBriefConfigByActionResult.cc index 27dd3d1f5..131066bc7 100644 --- a/cloudwf/src/model/ListBriefConfigByActionResult.cc +++ b/cloudwf/src/model/ListBriefConfigByActionResult.cc @@ -35,10 +35,13 @@ ListBriefConfigByActionResult::~ListBriefConfigByActionResult() void ListBriefConfigByActionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListBusinessDetailsRequest.cc b/cloudwf/src/model/ListBusinessDetailsRequest.cc index 1ab8c63e3..0e167bd2e 100644 --- a/cloudwf/src/model/ListBusinessDetailsRequest.cc +++ b/cloudwf/src/model/ListBusinessDetailsRequest.cc @@ -33,7 +33,7 @@ std::string ListBusinessDetailsRequest::getOrderCol()const void ListBusinessDetailsRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListBusinessDetailsRequest::getSearchName()const @@ -44,7 +44,7 @@ std::string ListBusinessDetailsRequest::getSearchName()const void ListBusinessDetailsRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } int ListBusinessDetailsRequest::getLength()const @@ -55,7 +55,7 @@ int ListBusinessDetailsRequest::getLength()const void ListBusinessDetailsRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListBusinessDetailsRequest::getPageIndex()const @@ -66,7 +66,7 @@ int ListBusinessDetailsRequest::getPageIndex()const void ListBusinessDetailsRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListBusinessDetailsRequest::getOrderDir()const @@ -77,7 +77,7 @@ std::string ListBusinessDetailsRequest::getOrderDir()const void ListBusinessDetailsRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListBusinessDetailsRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListBusinessDetailsRequest::getAccessKeyId()const void ListBusinessDetailsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListBusinessDetailsResult.cc b/cloudwf/src/model/ListBusinessDetailsResult.cc index 4a2dba7df..4fd2faadd 100644 --- a/cloudwf/src/model/ListBusinessDetailsResult.cc +++ b/cloudwf/src/model/ListBusinessDetailsResult.cc @@ -35,10 +35,13 @@ ListBusinessDetailsResult::~ListBusinessDetailsResult() void ListBusinessDetailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListBusinessesRequest.cc b/cloudwf/src/model/ListBusinessesRequest.cc index 6ac8ccaeb..1da4ddf01 100644 --- a/cloudwf/src/model/ListBusinessesRequest.cc +++ b/cloudwf/src/model/ListBusinessesRequest.cc @@ -33,6 +33,6 @@ std::string ListBusinessesRequest::getAccessKeyId()const void ListBusinessesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListBusinessesResult.cc b/cloudwf/src/model/ListBusinessesResult.cc index e1466ed69..b24cad259 100644 --- a/cloudwf/src/model/ListBusinessesResult.cc +++ b/cloudwf/src/model/ListBusinessesResult.cc @@ -35,10 +35,13 @@ ListBusinessesResult::~ListBusinessesResult() void ListBusinessesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto alldata = value["data"]["BusinessInfo"]; for (auto value : alldata) diff --git a/cloudwf/src/model/ListConfigByActionRequest.cc b/cloudwf/src/model/ListConfigByActionRequest.cc index 78124af8c..969b183c4 100644 --- a/cloudwf/src/model/ListConfigByActionRequest.cc +++ b/cloudwf/src/model/ListConfigByActionRequest.cc @@ -33,7 +33,7 @@ std::string ListConfigByActionRequest::getSearchName()const void ListConfigByActionRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } int ListConfigByActionRequest::getLimit()const @@ -44,7 +44,7 @@ int ListConfigByActionRequest::getLimit()const void ListConfigByActionRequest::setLimit(int limit) { limit_ = limit; - setParameter("Limit", std::to_string(limit)); + setCoreParameter("Limit", std::to_string(limit)); } std::string ListConfigByActionRequest::getActionName()const @@ -55,7 +55,7 @@ std::string ListConfigByActionRequest::getActionName()const void ListConfigByActionRequest::setActionName(const std::string& actionName) { actionName_ = actionName; - setParameter("ActionName", actionName); + setCoreParameter("ActionName", actionName); } std::string ListConfigByActionRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListConfigByActionRequest::getAccessKeyId()const void ListConfigByActionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListConfigByActionResult.cc b/cloudwf/src/model/ListConfigByActionResult.cc index 4e7e03488..0ec2bd0d8 100644 --- a/cloudwf/src/model/ListConfigByActionResult.cc +++ b/cloudwf/src/model/ListConfigByActionResult.cc @@ -35,10 +35,13 @@ ListConfigByActionResult::~ListConfigByActionResult() void ListConfigByActionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListGroupApBriefConfigRequest.cc b/cloudwf/src/model/ListGroupApBriefConfigRequest.cc index 6481aa4b3..3394dc277 100644 --- a/cloudwf/src/model/ListGroupApBriefConfigRequest.cc +++ b/cloudwf/src/model/ListGroupApBriefConfigRequest.cc @@ -33,7 +33,7 @@ std::string ListGroupApBriefConfigRequest::getOrderCol()const void ListGroupApBriefConfigRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListGroupApBriefConfigRequest::getSearchName()const @@ -44,7 +44,7 @@ std::string ListGroupApBriefConfigRequest::getSearchName()const void ListGroupApBriefConfigRequest::setSearchName(const std::string& searchName) { searchName_ = searchName; - setParameter("SearchName", searchName); + setCoreParameter("SearchName", searchName); } long ListGroupApBriefConfigRequest::getApgroupId()const @@ -55,7 +55,7 @@ long ListGroupApBriefConfigRequest::getApgroupId()const void ListGroupApBriefConfigRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } int ListGroupApBriefConfigRequest::getColCnt()const @@ -66,7 +66,7 @@ int ListGroupApBriefConfigRequest::getColCnt()const void ListGroupApBriefConfigRequest::setColCnt(int colCnt) { colCnt_ = colCnt; - setParameter("ColCnt", std::to_string(colCnt)); + setCoreParameter("ColCnt", std::to_string(colCnt)); } int ListGroupApBriefConfigRequest::getLength()const @@ -77,7 +77,7 @@ int ListGroupApBriefConfigRequest::getLength()const void ListGroupApBriefConfigRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListGroupApBriefConfigRequest::getPageIndex()const @@ -88,7 +88,7 @@ int ListGroupApBriefConfigRequest::getPageIndex()const void ListGroupApBriefConfigRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListGroupApBriefConfigRequest::getSearchMac()const @@ -99,7 +99,7 @@ std::string ListGroupApBriefConfigRequest::getSearchMac()const void ListGroupApBriefConfigRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } std::string ListGroupApBriefConfigRequest::getOrderDir()const @@ -110,7 +110,7 @@ std::string ListGroupApBriefConfigRequest::getOrderDir()const void ListGroupApBriefConfigRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListGroupApBriefConfigRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ListGroupApBriefConfigRequest::getAccessKeyId()const void ListGroupApBriefConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListGroupApBriefConfigResult.cc b/cloudwf/src/model/ListGroupApBriefConfigResult.cc index 8511fccc0..7e45127e8 100644 --- a/cloudwf/src/model/ListGroupApBriefConfigResult.cc +++ b/cloudwf/src/model/ListGroupApBriefConfigResult.cc @@ -35,10 +35,13 @@ ListGroupApBriefConfigResult::~ListGroupApBriefConfigResult() void ListGroupApBriefConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListPageConfigTemplateRequest.cc b/cloudwf/src/model/ListPageConfigTemplateRequest.cc index e5602e5b6..705b5543e 100644 --- a/cloudwf/src/model/ListPageConfigTemplateRequest.cc +++ b/cloudwf/src/model/ListPageConfigTemplateRequest.cc @@ -33,7 +33,7 @@ int ListPageConfigTemplateRequest::getLength()const void ListPageConfigTemplateRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListPageConfigTemplateRequest::getPageIndex()const @@ -44,7 +44,7 @@ int ListPageConfigTemplateRequest::getPageIndex()const void ListPageConfigTemplateRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListPageConfigTemplateRequest::getSearchTempName()const @@ -55,7 +55,7 @@ std::string ListPageConfigTemplateRequest::getSearchTempName()const void ListPageConfigTemplateRequest::setSearchTempName(const std::string& searchTempName) { searchTempName_ = searchTempName; - setParameter("SearchTempName", searchTempName); + setCoreParameter("SearchTempName", searchTempName); } std::string ListPageConfigTemplateRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListPageConfigTemplateRequest::getAccessKeyId()const void ListPageConfigTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListPageConfigTemplateResult.cc b/cloudwf/src/model/ListPageConfigTemplateResult.cc index a8f666b95..06e51d8d5 100644 --- a/cloudwf/src/model/ListPageConfigTemplateResult.cc +++ b/cloudwf/src/model/ListPageConfigTemplateResult.cc @@ -35,10 +35,13 @@ ListPageConfigTemplateResult::~ListPageConfigTemplateResult() void ListPageConfigTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListPortalTemplateRequest.cc b/cloudwf/src/model/ListPortalTemplateRequest.cc index 76a51b85f..c4278b824 100644 --- a/cloudwf/src/model/ListPortalTemplateRequest.cc +++ b/cloudwf/src/model/ListPortalTemplateRequest.cc @@ -33,7 +33,7 @@ std::string ListPortalTemplateRequest::getOrderCol()const void ListPortalTemplateRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } int ListPortalTemplateRequest::getLength()const @@ -44,7 +44,7 @@ int ListPortalTemplateRequest::getLength()const void ListPortalTemplateRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListPortalTemplateRequest::getPageIndex()const @@ -55,7 +55,7 @@ int ListPortalTemplateRequest::getPageIndex()const void ListPortalTemplateRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListPortalTemplateRequest::getOrderDir()const @@ -66,7 +66,7 @@ std::string ListPortalTemplateRequest::getOrderDir()const void ListPortalTemplateRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListPortalTemplateRequest::getSearchTempName()const @@ -77,7 +77,7 @@ std::string ListPortalTemplateRequest::getSearchTempName()const void ListPortalTemplateRequest::setSearchTempName(const std::string& searchTempName) { searchTempName_ = searchTempName; - setParameter("SearchTempName", searchTempName); + setCoreParameter("SearchTempName", searchTempName); } std::string ListPortalTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListPortalTemplateRequest::getAccessKeyId()const void ListPortalTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListPortalTemplateResult.cc b/cloudwf/src/model/ListPortalTemplateResult.cc index 0425bde7e..1ea66eb06 100644 --- a/cloudwf/src/model/ListPortalTemplateResult.cc +++ b/cloudwf/src/model/ListPortalTemplateResult.cc @@ -35,10 +35,13 @@ ListPortalTemplateResult::~ListPortalTemplateResult() void ListPortalTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListProbeinfoRequest.cc b/cloudwf/src/model/ListProbeinfoRequest.cc index 48b5026fd..55939e2ee 100644 --- a/cloudwf/src/model/ListProbeinfoRequest.cc +++ b/cloudwf/src/model/ListProbeinfoRequest.cc @@ -33,7 +33,7 @@ std::string ListProbeinfoRequest::getOrderCol()const void ListProbeinfoRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListProbeinfoRequest::getSearchUserMac()const @@ -44,7 +44,7 @@ std::string ListProbeinfoRequest::getSearchUserMac()const void ListProbeinfoRequest::setSearchUserMac(const std::string& searchUserMac) { searchUserMac_ = searchUserMac; - setParameter("SearchUserMac", searchUserMac); + setCoreParameter("SearchUserMac", searchUserMac); } std::string ListProbeinfoRequest::getSearchSensorMac()const @@ -55,7 +55,7 @@ std::string ListProbeinfoRequest::getSearchSensorMac()const void ListProbeinfoRequest::setSearchSensorMac(const std::string& searchSensorMac) { searchSensorMac_ = searchSensorMac; - setParameter("SearchSensorMac", searchSensorMac); + setCoreParameter("SearchSensorMac", searchSensorMac); } int ListProbeinfoRequest::getLength()const @@ -66,7 +66,7 @@ int ListProbeinfoRequest::getLength()const void ListProbeinfoRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListProbeinfoRequest::getSearchSensorName()const @@ -77,7 +77,7 @@ std::string ListProbeinfoRequest::getSearchSensorName()const void ListProbeinfoRequest::setSearchSensorName(const std::string& searchSensorName) { searchSensorName_ = searchSensorName; - setParameter("SearchSensorName", searchSensorName); + setCoreParameter("SearchSensorName", searchSensorName); } int ListProbeinfoRequest::getPageIndex()const @@ -88,7 +88,7 @@ int ListProbeinfoRequest::getPageIndex()const void ListProbeinfoRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListProbeinfoRequest::getOrderDir()const @@ -99,7 +99,7 @@ std::string ListProbeinfoRequest::getOrderDir()const void ListProbeinfoRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListProbeinfoRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListProbeinfoRequest::getAccessKeyId()const void ListProbeinfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListProbeinfoResult.cc b/cloudwf/src/model/ListProbeinfoResult.cc index 7e54fee5b..4ed6b1c40 100644 --- a/cloudwf/src/model/ListProbeinfoResult.cc +++ b/cloudwf/src/model/ListProbeinfoResult.cc @@ -35,10 +35,13 @@ ListProbeinfoResult::~ListProbeinfoResult() void ListProbeinfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListStaOnoffLogRequest.cc b/cloudwf/src/model/ListStaOnoffLogRequest.cc index eeebc9f25..b14aa0eef 100644 --- a/cloudwf/src/model/ListStaOnoffLogRequest.cc +++ b/cloudwf/src/model/ListStaOnoffLogRequest.cc @@ -33,7 +33,7 @@ std::string ListStaOnoffLogRequest::getOrderCol()const void ListStaOnoffLogRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListStaOnoffLogRequest::getSearchSsid()const @@ -44,7 +44,7 @@ std::string ListStaOnoffLogRequest::getSearchSsid()const void ListStaOnoffLogRequest::setSearchSsid(const std::string& searchSsid) { searchSsid_ = searchSsid; - setParameter("SearchSsid", searchSsid); + setCoreParameter("SearchSsid", searchSsid); } std::string ListStaOnoffLogRequest::getSearchApName()const @@ -55,7 +55,7 @@ std::string ListStaOnoffLogRequest::getSearchApName()const void ListStaOnoffLogRequest::setSearchApName(const std::string& searchApName) { searchApName_ = searchApName; - setParameter("SearchApName", searchApName); + setCoreParameter("SearchApName", searchApName); } int ListStaOnoffLogRequest::getLength()const @@ -66,7 +66,7 @@ int ListStaOnoffLogRequest::getLength()const void ListStaOnoffLogRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListStaOnoffLogRequest::getSearchUsername()const @@ -77,7 +77,7 @@ std::string ListStaOnoffLogRequest::getSearchUsername()const void ListStaOnoffLogRequest::setSearchUsername(const std::string& searchUsername) { searchUsername_ = searchUsername; - setParameter("SearchUsername", searchUsername); + setCoreParameter("SearchUsername", searchUsername); } int ListStaOnoffLogRequest::getPageIndex()const @@ -88,7 +88,7 @@ int ListStaOnoffLogRequest::getPageIndex()const void ListStaOnoffLogRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } long ListStaOnoffLogRequest::getId()const @@ -99,7 +99,7 @@ long ListStaOnoffLogRequest::getId()const void ListStaOnoffLogRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string ListStaOnoffLogRequest::getOrderDir()const @@ -110,7 +110,7 @@ std::string ListStaOnoffLogRequest::getOrderDir()const void ListStaOnoffLogRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListStaOnoffLogRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ListStaOnoffLogRequest::getAccessKeyId()const void ListStaOnoffLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListStaOnoffLogResult.cc b/cloudwf/src/model/ListStaOnoffLogResult.cc index a6afc125c..16b6cc2b3 100644 --- a/cloudwf/src/model/ListStaOnoffLogResult.cc +++ b/cloudwf/src/model/ListStaOnoffLogResult.cc @@ -35,10 +35,13 @@ ListStaOnoffLogResult::~ListStaOnoffLogResult() void ListStaOnoffLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListStaStatusRequest.cc b/cloudwf/src/model/ListStaStatusRequest.cc index d178753aa..50c8a285e 100644 --- a/cloudwf/src/model/ListStaStatusRequest.cc +++ b/cloudwf/src/model/ListStaStatusRequest.cc @@ -33,7 +33,7 @@ std::string ListStaStatusRequest::getOrderCol()const void ListStaStatusRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } std::string ListStaStatusRequest::getSearchGroupName()const @@ -44,7 +44,7 @@ std::string ListStaStatusRequest::getSearchGroupName()const void ListStaStatusRequest::setSearchGroupName(const std::string& searchGroupName) { searchGroupName_ = searchGroupName; - setParameter("SearchGroupName", searchGroupName); + setCoreParameter("SearchGroupName", searchGroupName); } int ListStaStatusRequest::getSearchStatus()const @@ -55,7 +55,7 @@ int ListStaStatusRequest::getSearchStatus()const void ListStaStatusRequest::setSearchStatus(int searchStatus) { searchStatus_ = searchStatus; - setParameter("SearchStatus", std::to_string(searchStatus)); + setCoreParameter("SearchStatus", std::to_string(searchStatus)); } int ListStaStatusRequest::getLength()const @@ -66,7 +66,7 @@ int ListStaStatusRequest::getLength()const void ListStaStatusRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListStaStatusRequest::getSearchUsername()const @@ -77,7 +77,7 @@ std::string ListStaStatusRequest::getSearchUsername()const void ListStaStatusRequest::setSearchUsername(const std::string& searchUsername) { searchUsername_ = searchUsername; - setParameter("SearchUsername", searchUsername); + setCoreParameter("SearchUsername", searchUsername); } std::string ListStaStatusRequest::getOrderDir()const @@ -88,7 +88,7 @@ std::string ListStaStatusRequest::getOrderDir()const void ListStaStatusRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListStaStatusRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ListStaStatusRequest::getAccessKeyId()const void ListStaStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListStaStatusRequest::getSearchProtocal()const @@ -110,7 +110,7 @@ std::string ListStaStatusRequest::getSearchProtocal()const void ListStaStatusRequest::setSearchProtocal(const std::string& searchProtocal) { searchProtocal_ = searchProtocal; - setParameter("SearchProtocal", searchProtocal); + setCoreParameter("SearchProtocal", searchProtocal); } std::string ListStaStatusRequest::getSearchSsid()const @@ -121,7 +121,7 @@ std::string ListStaStatusRequest::getSearchSsid()const void ListStaStatusRequest::setSearchSsid(const std::string& searchSsid) { searchSsid_ = searchSsid; - setParameter("SearchSsid", searchSsid); + setCoreParameter("SearchSsid", searchSsid); } std::string ListStaStatusRequest::getSearchApName()const @@ -132,7 +132,7 @@ std::string ListStaStatusRequest::getSearchApName()const void ListStaStatusRequest::setSearchApName(const std::string& searchApName) { searchApName_ = searchApName; - setParameter("SearchApName", searchApName); + setCoreParameter("SearchApName", searchApName); } std::string ListStaStatusRequest::getSearchIp()const @@ -143,7 +143,7 @@ std::string ListStaStatusRequest::getSearchIp()const void ListStaStatusRequest::setSearchIp(const std::string& searchIp) { searchIp_ = searchIp; - setParameter("SearchIp", searchIp); + setCoreParameter("SearchIp", searchIp); } int ListStaStatusRequest::getPageIndex()const @@ -154,7 +154,7 @@ int ListStaStatusRequest::getPageIndex()const void ListStaStatusRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListStaStatusRequest::getSearchMac()const @@ -165,7 +165,7 @@ std::string ListStaStatusRequest::getSearchMac()const void ListStaStatusRequest::setSearchMac(const std::string& searchMac) { searchMac_ = searchMac; - setParameter("SearchMac", searchMac); + setCoreParameter("SearchMac", searchMac); } std::string ListStaStatusRequest::getSearchDescription()const @@ -176,6 +176,6 @@ std::string ListStaStatusRequest::getSearchDescription()const void ListStaStatusRequest::setSearchDescription(const std::string& searchDescription) { searchDescription_ = searchDescription; - setParameter("SearchDescription", searchDescription); + setCoreParameter("SearchDescription", searchDescription); } diff --git a/cloudwf/src/model/ListStaStatusResult.cc b/cloudwf/src/model/ListStaStatusResult.cc index 3769a304c..080bfced8 100644 --- a/cloudwf/src/model/ListStaStatusResult.cc +++ b/cloudwf/src/model/ListStaStatusResult.cc @@ -35,10 +35,13 @@ ListStaStatusResult::~ListStaStatusResult() void ListStaStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListSubAccountPermissionRequest.cc b/cloudwf/src/model/ListSubAccountPermissionRequest.cc index 676b07a1d..29a19a58c 100644 --- a/cloudwf/src/model/ListSubAccountPermissionRequest.cc +++ b/cloudwf/src/model/ListSubAccountPermissionRequest.cc @@ -33,7 +33,7 @@ long ListSubAccountPermissionRequest::getSearchUid()const void ListSubAccountPermissionRequest::setSearchUid(long searchUid) { searchUid_ = searchUid; - setParameter("SearchUid", std::to_string(searchUid)); + setCoreParameter("SearchUid", std::to_string(searchUid)); } int ListSubAccountPermissionRequest::getLength()const @@ -44,7 +44,7 @@ int ListSubAccountPermissionRequest::getLength()const void ListSubAccountPermissionRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListSubAccountPermissionRequest::getPageIndex()const @@ -55,7 +55,7 @@ int ListSubAccountPermissionRequest::getPageIndex()const void ListSubAccountPermissionRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListSubAccountPermissionRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListSubAccountPermissionRequest::getAccessKeyId()const void ListSubAccountPermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListSubAccountPermissionResult.cc b/cloudwf/src/model/ListSubAccountPermissionResult.cc index 085503467..116244d09 100644 --- a/cloudwf/src/model/ListSubAccountPermissionResult.cc +++ b/cloudwf/src/model/ListSubAccountPermissionResult.cc @@ -35,10 +35,13 @@ ListSubAccountPermissionResult::~ListSubAccountPermissionResult() void ListSubAccountPermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListUmengPagePermission4RootRequest.cc b/cloudwf/src/model/ListUmengPagePermission4RootRequest.cc index a0ce2a057..b66997235 100644 --- a/cloudwf/src/model/ListUmengPagePermission4RootRequest.cc +++ b/cloudwf/src/model/ListUmengPagePermission4RootRequest.cc @@ -33,7 +33,7 @@ std::string ListUmengPagePermission4RootRequest::getOrderCol()const void ListUmengPagePermission4RootRequest::setOrderCol(const std::string& orderCol) { orderCol_ = orderCol; - setParameter("OrderCol", orderCol); + setCoreParameter("OrderCol", orderCol); } int ListUmengPagePermission4RootRequest::getLength()const @@ -44,7 +44,7 @@ int ListUmengPagePermission4RootRequest::getLength()const void ListUmengPagePermission4RootRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string ListUmengPagePermission4RootRequest::getSearchEmail()const @@ -55,7 +55,7 @@ std::string ListUmengPagePermission4RootRequest::getSearchEmail()const void ListUmengPagePermission4RootRequest::setSearchEmail(const std::string& searchEmail) { searchEmail_ = searchEmail; - setParameter("SearchEmail", searchEmail); + setCoreParameter("SearchEmail", searchEmail); } int ListUmengPagePermission4RootRequest::getPageIndex()const @@ -66,7 +66,7 @@ int ListUmengPagePermission4RootRequest::getPageIndex()const void ListUmengPagePermission4RootRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListUmengPagePermission4RootRequest::getOrderDir()const @@ -77,7 +77,7 @@ std::string ListUmengPagePermission4RootRequest::getOrderDir()const void ListUmengPagePermission4RootRequest::setOrderDir(const std::string& orderDir) { orderDir_ = orderDir; - setParameter("OrderDir", orderDir); + setCoreParameter("OrderDir", orderDir); } std::string ListUmengPagePermission4RootRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListUmengPagePermission4RootRequest::getAccessKeyId()const void ListUmengPagePermission4RootRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListUmengPagePermission4RootResult.cc b/cloudwf/src/model/ListUmengPagePermission4RootResult.cc index c867aac61..a279e792c 100644 --- a/cloudwf/src/model/ListUmengPagePermission4RootResult.cc +++ b/cloudwf/src/model/ListUmengPagePermission4RootResult.cc @@ -35,10 +35,13 @@ ListUmengPagePermission4RootResult::~ListUmengPagePermission4RootResult() void ListUmengPagePermission4RootResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ListUpgradeImgRequest.cc b/cloudwf/src/model/ListUpgradeImgRequest.cc index 6fbcece55..eaad0b4e5 100644 --- a/cloudwf/src/model/ListUpgradeImgRequest.cc +++ b/cloudwf/src/model/ListUpgradeImgRequest.cc @@ -33,7 +33,7 @@ int ListUpgradeImgRequest::getLength()const void ListUpgradeImgRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListUpgradeImgRequest::getPageIndex()const @@ -44,7 +44,7 @@ int ListUpgradeImgRequest::getPageIndex()const void ListUpgradeImgRequest::setPageIndex(int pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } std::string ListUpgradeImgRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListUpgradeImgRequest::getAccessKeyId()const void ListUpgradeImgRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ListUpgradeImgResult.cc b/cloudwf/src/model/ListUpgradeImgResult.cc index edab9f7c9..eab522ee0 100644 --- a/cloudwf/src/model/ListUpgradeImgResult.cc +++ b/cloudwf/src/model/ListUpgradeImgResult.cc @@ -35,10 +35,13 @@ ListUpgradeImgResult::~ListUpgradeImgResult() void ListUpgradeImgResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ModifySubAccountPermissionRequest.cc b/cloudwf/src/model/ModifySubAccountPermissionRequest.cc index 1ffbabb7c..43df1a9b2 100644 --- a/cloudwf/src/model/ModifySubAccountPermissionRequest.cc +++ b/cloudwf/src/model/ModifySubAccountPermissionRequest.cc @@ -34,7 +34,7 @@ void ModifySubAccountPermissionRequest::setShopGroupIds(const std::vector& { shopGroupIds_ = shopGroupIds; for(int i = 0; i!= shopGroupIds.size(); i++) - setParameter("ShopGroupIds."+ std::to_string(i), std::to_string(shopGroupIds.at(i))); + setCoreParameter("ShopGroupIds."+ std::to_string(i), std::to_string(shopGroupIds.at(i))); } std::vector ModifySubAccountPermissionRequest::getShopIds()const @@ -46,7 +46,7 @@ void ModifySubAccountPermissionRequest::setShopIds(const std::vector& shop { shopIds_ = shopIds; for(int i = 0; i!= shopIds.size(); i++) - setParameter("ShopIds."+ std::to_string(i), std::to_string(shopIds.at(i))); + setCoreParameter("ShopIds."+ std::to_string(i), std::to_string(shopIds.at(i))); } std::string ModifySubAccountPermissionRequest::getPagePermission()const @@ -57,7 +57,7 @@ std::string ModifySubAccountPermissionRequest::getPagePermission()const void ModifySubAccountPermissionRequest::setPagePermission(const std::string& pagePermission) { pagePermission_ = pagePermission; - setParameter("PagePermission", pagePermission); + setCoreParameter("PagePermission", pagePermission); } long ModifySubAccountPermissionRequest::getId()const @@ -68,7 +68,7 @@ long ModifySubAccountPermissionRequest::getId()const void ModifySubAccountPermissionRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string ModifySubAccountPermissionRequest::getAccessKeyId()const @@ -79,7 +79,7 @@ std::string ModifySubAccountPermissionRequest::getAccessKeyId()const void ModifySubAccountPermissionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::vector ModifySubAccountPermissionRequest::getBusinessIds()const @@ -91,6 +91,6 @@ void ModifySubAccountPermissionRequest::setBusinessIds(const std::vector& { businessIds_ = businessIds; for(int i = 0; i!= businessIds.size(); i++) - setParameter("BusinessIds."+ std::to_string(i), std::to_string(businessIds.at(i))); + setCoreParameter("BusinessIds."+ std::to_string(i), std::to_string(businessIds.at(i))); } diff --git a/cloudwf/src/model/ModifySubAccountPermissionResult.cc b/cloudwf/src/model/ModifySubAccountPermissionResult.cc index 151e3500a..b4fed3bd1 100644 --- a/cloudwf/src/model/ModifySubAccountPermissionResult.cc +++ b/cloudwf/src/model/ModifySubAccountPermissionResult.cc @@ -35,10 +35,13 @@ ModifySubAccountPermissionResult::~ModifySubAccountPermissionResult() void ModifySubAccountPermissionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemFlowrateAnalyseRequest.cc b/cloudwf/src/model/OemFlowrateAnalyseRequest.cc index 0a2a2bc63..240d64f63 100644 --- a/cloudwf/src/model/OemFlowrateAnalyseRequest.cc +++ b/cloudwf/src/model/OemFlowrateAnalyseRequest.cc @@ -33,7 +33,7 @@ long OemFlowrateAnalyseRequest::getGsid()const void OemFlowrateAnalyseRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string OemFlowrateAnalyseRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemFlowrateAnalyseRequest::getAccessKeyId()const void OemFlowrateAnalyseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemFlowrateAnalyseResult.cc b/cloudwf/src/model/OemFlowrateAnalyseResult.cc index 054f2b286..9d394104d 100644 --- a/cloudwf/src/model/OemFlowrateAnalyseResult.cc +++ b/cloudwf/src/model/OemFlowrateAnalyseResult.cc @@ -35,10 +35,13 @@ OemFlowrateAnalyseResult::~OemFlowrateAnalyseResult() void OemFlowrateAnalyseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemFlowrateIntelligentRequest.cc b/cloudwf/src/model/OemFlowrateIntelligentRequest.cc index 1e5d326d5..726834b78 100644 --- a/cloudwf/src/model/OemFlowrateIntelligentRequest.cc +++ b/cloudwf/src/model/OemFlowrateIntelligentRequest.cc @@ -33,7 +33,7 @@ long OemFlowrateIntelligentRequest::getGsid()const void OemFlowrateIntelligentRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string OemFlowrateIntelligentRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemFlowrateIntelligentRequest::getAccessKeyId()const void OemFlowrateIntelligentRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemFlowrateIntelligentResult.cc b/cloudwf/src/model/OemFlowrateIntelligentResult.cc index 7303e85e8..dc12695ba 100644 --- a/cloudwf/src/model/OemFlowrateIntelligentResult.cc +++ b/cloudwf/src/model/OemFlowrateIntelligentResult.cc @@ -35,10 +35,13 @@ OemFlowrateIntelligentResult::~OemFlowrateIntelligentResult() void OemFlowrateIntelligentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemFlowrateMonitorRequest.cc b/cloudwf/src/model/OemFlowrateMonitorRequest.cc index afa48e266..c8cb7b0db 100644 --- a/cloudwf/src/model/OemFlowrateMonitorRequest.cc +++ b/cloudwf/src/model/OemFlowrateMonitorRequest.cc @@ -33,7 +33,7 @@ long OemFlowrateMonitorRequest::getGsid()const void OemFlowrateMonitorRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string OemFlowrateMonitorRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemFlowrateMonitorRequest::getAccessKeyId()const void OemFlowrateMonitorRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemFlowrateMonitorResult.cc b/cloudwf/src/model/OemFlowrateMonitorResult.cc index 5df38729f..d93b51925 100644 --- a/cloudwf/src/model/OemFlowrateMonitorResult.cc +++ b/cloudwf/src/model/OemFlowrateMonitorResult.cc @@ -35,10 +35,13 @@ OemFlowrateMonitorResult::~OemFlowrateMonitorResult() void OemFlowrateMonitorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemFlowrateOverviewRequest.cc b/cloudwf/src/model/OemFlowrateOverviewRequest.cc index aad0a27bc..07ebe2d64 100644 --- a/cloudwf/src/model/OemFlowrateOverviewRequest.cc +++ b/cloudwf/src/model/OemFlowrateOverviewRequest.cc @@ -33,7 +33,7 @@ long OemFlowrateOverviewRequest::getBid()const void OemFlowrateOverviewRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string OemFlowrateOverviewRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemFlowrateOverviewRequest::getAccessKeyId()const void OemFlowrateOverviewRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemFlowrateOverviewResult.cc b/cloudwf/src/model/OemFlowrateOverviewResult.cc index 81aa77aa7..1afbfe68f 100644 --- a/cloudwf/src/model/OemFlowrateOverviewResult.cc +++ b/cloudwf/src/model/OemFlowrateOverviewResult.cc @@ -35,10 +35,13 @@ OemFlowrateOverviewResult::~OemFlowrateOverviewResult() void OemFlowrateOverviewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemFlowrateRankingRequest.cc b/cloudwf/src/model/OemFlowrateRankingRequest.cc index a054208fa..1b45021a7 100644 --- a/cloudwf/src/model/OemFlowrateRankingRequest.cc +++ b/cloudwf/src/model/OemFlowrateRankingRequest.cc @@ -33,7 +33,7 @@ long OemFlowrateRankingRequest::getBid()const void OemFlowrateRankingRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string OemFlowrateRankingRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemFlowrateRankingRequest::getAccessKeyId()const void OemFlowrateRankingRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemFlowrateRankingResult.cc b/cloudwf/src/model/OemFlowrateRankingResult.cc index 1679a6618..8004a7f92 100644 --- a/cloudwf/src/model/OemFlowrateRankingResult.cc +++ b/cloudwf/src/model/OemFlowrateRankingResult.cc @@ -35,10 +35,13 @@ OemFlowrateRankingResult::~OemFlowrateRankingResult() void OemFlowrateRankingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemHeatLineRequest.cc b/cloudwf/src/model/OemHeatLineRequest.cc index 69ab4779e..b1471a0ba 100644 --- a/cloudwf/src/model/OemHeatLineRequest.cc +++ b/cloudwf/src/model/OemHeatLineRequest.cc @@ -33,7 +33,7 @@ long OemHeatLineRequest::getGsid()const void OemHeatLineRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string OemHeatLineRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemHeatLineRequest::getAccessKeyId()const void OemHeatLineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemHeatLineResult.cc b/cloudwf/src/model/OemHeatLineResult.cc index b110b00e5..c20eec57c 100644 --- a/cloudwf/src/model/OemHeatLineResult.cc +++ b/cloudwf/src/model/OemHeatLineResult.cc @@ -35,10 +35,13 @@ OemHeatLineResult::~OemHeatLineResult() void OemHeatLineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemHeatMapRequest.cc b/cloudwf/src/model/OemHeatMapRequest.cc index 285fb4695..8e83a4e03 100644 --- a/cloudwf/src/model/OemHeatMapRequest.cc +++ b/cloudwf/src/model/OemHeatMapRequest.cc @@ -33,7 +33,7 @@ long OemHeatMapRequest::getGsid()const void OemHeatMapRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string OemHeatMapRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemHeatMapRequest::getAccessKeyId()const void OemHeatMapRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemHeatMapResult.cc b/cloudwf/src/model/OemHeatMapResult.cc index 06cfbdc86..f54289650 100644 --- a/cloudwf/src/model/OemHeatMapResult.cc +++ b/cloudwf/src/model/OemHeatMapResult.cc @@ -35,10 +35,13 @@ OemHeatMapResult::~OemHeatMapResult() void OemHeatMapResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemHeatSettingRequest.cc b/cloudwf/src/model/OemHeatSettingRequest.cc index 3312e5704..deee001a8 100644 --- a/cloudwf/src/model/OemHeatSettingRequest.cc +++ b/cloudwf/src/model/OemHeatSettingRequest.cc @@ -33,7 +33,7 @@ long OemHeatSettingRequest::getGsid()const void OemHeatSettingRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string OemHeatSettingRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemHeatSettingRequest::getAccessKeyId()const void OemHeatSettingRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemHeatSettingResult.cc b/cloudwf/src/model/OemHeatSettingResult.cc index 039d97779..b95f1c333 100644 --- a/cloudwf/src/model/OemHeatSettingResult.cc +++ b/cloudwf/src/model/OemHeatSettingResult.cc @@ -35,10 +35,13 @@ OemHeatSettingResult::~OemHeatSettingResult() void OemHeatSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemMarketingCustomerRequest.cc b/cloudwf/src/model/OemMarketingCustomerRequest.cc index 62ef87b1c..d17061934 100644 --- a/cloudwf/src/model/OemMarketingCustomerRequest.cc +++ b/cloudwf/src/model/OemMarketingCustomerRequest.cc @@ -33,7 +33,7 @@ long OemMarketingCustomerRequest::getBid()const void OemMarketingCustomerRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string OemMarketingCustomerRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemMarketingCustomerRequest::getAccessKeyId()const void OemMarketingCustomerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemMarketingCustomerResult.cc b/cloudwf/src/model/OemMarketingCustomerResult.cc index 7ba851b23..410320fa8 100644 --- a/cloudwf/src/model/OemMarketingCustomerResult.cc +++ b/cloudwf/src/model/OemMarketingCustomerResult.cc @@ -35,10 +35,13 @@ OemMarketingCustomerResult::~OemMarketingCustomerResult() void OemMarketingCustomerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemMarketingPotentialRequest.cc b/cloudwf/src/model/OemMarketingPotentialRequest.cc index 26e197e4c..1745ab9d1 100644 --- a/cloudwf/src/model/OemMarketingPotentialRequest.cc +++ b/cloudwf/src/model/OemMarketingPotentialRequest.cc @@ -33,7 +33,7 @@ long OemMarketingPotentialRequest::getBid()const void OemMarketingPotentialRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string OemMarketingPotentialRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemMarketingPotentialRequest::getAccessKeyId()const void OemMarketingPotentialRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemMarketingPotentialResult.cc b/cloudwf/src/model/OemMarketingPotentialResult.cc index 9229a4951..0cce9bb60 100644 --- a/cloudwf/src/model/OemMarketingPotentialResult.cc +++ b/cloudwf/src/model/OemMarketingPotentialResult.cc @@ -35,10 +35,13 @@ OemMarketingPotentialResult::~OemMarketingPotentialResult() void OemMarketingPotentialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemMarketingSettingDataRequest.cc b/cloudwf/src/model/OemMarketingSettingDataRequest.cc index 022279ab9..a2c7cd150 100644 --- a/cloudwf/src/model/OemMarketingSettingDataRequest.cc +++ b/cloudwf/src/model/OemMarketingSettingDataRequest.cc @@ -33,7 +33,7 @@ long OemMarketingSettingDataRequest::getBid()const void OemMarketingSettingDataRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string OemMarketingSettingDataRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemMarketingSettingDataRequest::getAccessKeyId()const void OemMarketingSettingDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemMarketingSettingDataResult.cc b/cloudwf/src/model/OemMarketingSettingDataResult.cc index e1293228a..af11f3427 100644 --- a/cloudwf/src/model/OemMarketingSettingDataResult.cc +++ b/cloudwf/src/model/OemMarketingSettingDataResult.cc @@ -35,10 +35,13 @@ OemMarketingSettingDataResult::~OemMarketingSettingDataResult() void OemMarketingSettingDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemSitingContrastRequest.cc b/cloudwf/src/model/OemSitingContrastRequest.cc index c5e7ae556..ed9922d87 100644 --- a/cloudwf/src/model/OemSitingContrastRequest.cc +++ b/cloudwf/src/model/OemSitingContrastRequest.cc @@ -33,7 +33,7 @@ long OemSitingContrastRequest::getBid()const void OemSitingContrastRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string OemSitingContrastRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemSitingContrastRequest::getAccessKeyId()const void OemSitingContrastRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemSitingContrastResult.cc b/cloudwf/src/model/OemSitingContrastResult.cc index fdc9da4af..8dbb740fd 100644 --- a/cloudwf/src/model/OemSitingContrastResult.cc +++ b/cloudwf/src/model/OemSitingContrastResult.cc @@ -35,10 +35,13 @@ OemSitingContrastResult::~OemSitingContrastResult() void OemSitingContrastResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OemSitingSelctionRequest.cc b/cloudwf/src/model/OemSitingSelctionRequest.cc index 99a53c44e..7718d1916 100644 --- a/cloudwf/src/model/OemSitingSelctionRequest.cc +++ b/cloudwf/src/model/OemSitingSelctionRequest.cc @@ -33,7 +33,7 @@ long OemSitingSelctionRequest::getBid()const void OemSitingSelctionRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string OemSitingSelctionRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string OemSitingSelctionRequest::getAccessKeyId()const void OemSitingSelctionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OemSitingSelctionResult.cc b/cloudwf/src/model/OemSitingSelctionResult.cc index 912ef6d98..72f645e26 100644 --- a/cloudwf/src/model/OemSitingSelctionResult.cc +++ b/cloudwf/src/model/OemSitingSelctionResult.cc @@ -35,10 +35,13 @@ OemSitingSelctionResult::~OemSitingSelctionResult() void OemSitingSelctionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/OnoffGroupApRadioRequest.cc b/cloudwf/src/model/OnoffGroupApRadioRequest.cc index 27a537680..612e163ca 100644 --- a/cloudwf/src/model/OnoffGroupApRadioRequest.cc +++ b/cloudwf/src/model/OnoffGroupApRadioRequest.cc @@ -33,7 +33,7 @@ long OnoffGroupApRadioRequest::getApgroupId()const void OnoffGroupApRadioRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } int OnoffGroupApRadioRequest::getDisabled()const @@ -44,7 +44,7 @@ int OnoffGroupApRadioRequest::getDisabled()const void OnoffGroupApRadioRequest::setDisabled(int disabled) { disabled_ = disabled; - setParameter("Disabled", std::to_string(disabled)); + setCoreParameter("Disabled", std::to_string(disabled)); } std::string OnoffGroupApRadioRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string OnoffGroupApRadioRequest::getAccessKeyId()const void OnoffGroupApRadioRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/OnoffGroupApRadioResult.cc b/cloudwf/src/model/OnoffGroupApRadioResult.cc index 7daa87fe4..f64d9b799 100644 --- a/cloudwf/src/model/OnoffGroupApRadioResult.cc +++ b/cloudwf/src/model/OnoffGroupApRadioResult.cc @@ -35,10 +35,13 @@ OnoffGroupApRadioResult::~OnoffGroupApRadioResult() void OnoffGroupApRadioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/PeripheryAnalyseRequest.cc b/cloudwf/src/model/PeripheryAnalyseRequest.cc index 62d7cad25..669d901cd 100644 --- a/cloudwf/src/model/PeripheryAnalyseRequest.cc +++ b/cloudwf/src/model/PeripheryAnalyseRequest.cc @@ -33,7 +33,7 @@ long PeripheryAnalyseRequest::getGsid()const void PeripheryAnalyseRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string PeripheryAnalyseRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string PeripheryAnalyseRequest::getAccessKeyId()const void PeripheryAnalyseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/PeripheryAnalyseResult.cc b/cloudwf/src/model/PeripheryAnalyseResult.cc index fd6880a8a..1985a31eb 100644 --- a/cloudwf/src/model/PeripheryAnalyseResult.cc +++ b/cloudwf/src/model/PeripheryAnalyseResult.cc @@ -35,10 +35,13 @@ PeripheryAnalyseResult::~PeripheryAnalyseResult() void PeripheryAnalyseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProduceInstanceRequest.cc b/cloudwf/src/model/ProduceInstanceRequest.cc index 246f1bf1e..3b97ef7fe 100644 --- a/cloudwf/src/model/ProduceInstanceRequest.cc +++ b/cloudwf/src/model/ProduceInstanceRequest.cc @@ -33,7 +33,7 @@ std::string ProduceInstanceRequest::getTraceId()const void ProduceInstanceRequest::setTraceId(const std::string& traceId) { traceId_ = traceId; - setParameter("TraceId", traceId); + setCoreParameter("TraceId", traceId); } std::string ProduceInstanceRequest::getProduceParameter()const @@ -44,7 +44,7 @@ std::string ProduceInstanceRequest::getProduceParameter()const void ProduceInstanceRequest::setProduceParameter(const std::string& produceParameter) { produceParameter_ = produceParameter; - setParameter("ProduceParameter", produceParameter); + setCoreParameter("ProduceParameter", produceParameter); } std::string ProduceInstanceRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ProduceInstanceRequest::getAccessKeyId()const void ProduceInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ProduceInstanceResult.cc b/cloudwf/src/model/ProduceInstanceResult.cc index dada87578..f18494c23 100644 --- a/cloudwf/src/model/ProduceInstanceResult.cc +++ b/cloudwf/src/model/ProduceInstanceResult.cc @@ -35,10 +35,13 @@ ProduceInstanceResult::~ProduceInstanceResult() void ProduceInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileBaseRequest.cc b/cloudwf/src/model/ProfileBaseRequest.cc index 9daba092c..92ff5532b 100644 --- a/cloudwf/src/model/ProfileBaseRequest.cc +++ b/cloudwf/src/model/ProfileBaseRequest.cc @@ -33,7 +33,7 @@ std::string ProfileBaseRequest::getBeginDate()const void ProfileBaseRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ProfileBaseRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ProfileBaseRequest::getEndDate()const void ProfileBaseRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } int ProfileBaseRequest::getDataType()const @@ -55,7 +55,7 @@ int ProfileBaseRequest::getDataType()const void ProfileBaseRequest::setDataType(int dataType) { dataType_ = dataType; - setParameter("DataType", std::to_string(dataType)); + setCoreParameter("DataType", std::to_string(dataType)); } long ProfileBaseRequest::getGsid()const @@ -66,7 +66,7 @@ long ProfileBaseRequest::getGsid()const void ProfileBaseRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ProfileBaseRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ProfileBaseRequest::getAccessKeyId()const void ProfileBaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ProfileBaseResult.cc b/cloudwf/src/model/ProfileBaseResult.cc index 8fe4d0e38..c853acd52 100644 --- a/cloudwf/src/model/ProfileBaseResult.cc +++ b/cloudwf/src/model/ProfileBaseResult.cc @@ -35,10 +35,13 @@ ProfileBaseResult::~ProfileBaseResult() void ProfileBaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileConsumeRequest.cc b/cloudwf/src/model/ProfileConsumeRequest.cc index a72c4f334..2a1fb5df4 100644 --- a/cloudwf/src/model/ProfileConsumeRequest.cc +++ b/cloudwf/src/model/ProfileConsumeRequest.cc @@ -33,7 +33,7 @@ std::string ProfileConsumeRequest::getBeginDate()const void ProfileConsumeRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ProfileConsumeRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ProfileConsumeRequest::getEndDate()const void ProfileConsumeRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } int ProfileConsumeRequest::getDataType()const @@ -55,7 +55,7 @@ int ProfileConsumeRequest::getDataType()const void ProfileConsumeRequest::setDataType(int dataType) { dataType_ = dataType; - setParameter("DataType", std::to_string(dataType)); + setCoreParameter("DataType", std::to_string(dataType)); } long ProfileConsumeRequest::getGsid()const @@ -66,7 +66,7 @@ long ProfileConsumeRequest::getGsid()const void ProfileConsumeRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ProfileConsumeRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ProfileConsumeRequest::getAccessKeyId()const void ProfileConsumeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ProfileConsumeResult.cc b/cloudwf/src/model/ProfileConsumeResult.cc index 2e28cfe8f..b82fe4772 100644 --- a/cloudwf/src/model/ProfileConsumeResult.cc +++ b/cloudwf/src/model/ProfileConsumeResult.cc @@ -35,10 +35,13 @@ ProfileConsumeResult::~ProfileConsumeResult() void ProfileConsumeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileDistrictRequest.cc b/cloudwf/src/model/ProfileDistrictRequest.cc index b986fb4e5..abc8e7528 100644 --- a/cloudwf/src/model/ProfileDistrictRequest.cc +++ b/cloudwf/src/model/ProfileDistrictRequest.cc @@ -33,7 +33,7 @@ std::string ProfileDistrictRequest::getBeginDate()const void ProfileDistrictRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ProfileDistrictRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ProfileDistrictRequest::getEndDate()const void ProfileDistrictRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } int ProfileDistrictRequest::getDataType()const @@ -55,7 +55,7 @@ int ProfileDistrictRequest::getDataType()const void ProfileDistrictRequest::setDataType(int dataType) { dataType_ = dataType; - setParameter("DataType", std::to_string(dataType)); + setCoreParameter("DataType", std::to_string(dataType)); } long ProfileDistrictRequest::getGsid()const @@ -66,7 +66,7 @@ long ProfileDistrictRequest::getGsid()const void ProfileDistrictRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ProfileDistrictRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ProfileDistrictRequest::getAccessKeyId()const void ProfileDistrictRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ProfileDistrictResult.cc b/cloudwf/src/model/ProfileDistrictResult.cc index ca6b70316..6faf4cf24 100644 --- a/cloudwf/src/model/ProfileDistrictResult.cc +++ b/cloudwf/src/model/ProfileDistrictResult.cc @@ -35,10 +35,13 @@ ProfileDistrictResult::~ProfileDistrictResult() void ProfileDistrictResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileHistoryListRequest.cc b/cloudwf/src/model/ProfileHistoryListRequest.cc index 37e4315a3..e873ea607 100644 --- a/cloudwf/src/model/ProfileHistoryListRequest.cc +++ b/cloudwf/src/model/ProfileHistoryListRequest.cc @@ -33,7 +33,7 @@ long ProfileHistoryListRequest::getIdtype()const void ProfileHistoryListRequest::setIdtype(long idtype) { idtype_ = idtype; - setParameter("Idtype", std::to_string(idtype)); + setCoreParameter("Idtype", std::to_string(idtype)); } int ProfileHistoryListRequest::getPage()const @@ -44,7 +44,7 @@ int ProfileHistoryListRequest::getPage()const void ProfileHistoryListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } int ProfileHistoryListRequest::getPer()const @@ -55,7 +55,7 @@ int ProfileHistoryListRequest::getPer()const void ProfileHistoryListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } std::string ProfileHistoryListRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string ProfileHistoryListRequest::getAccessKeyId()const void ProfileHistoryListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ProfileHistoryListRequest::getAgsid()const @@ -77,6 +77,6 @@ long ProfileHistoryListRequest::getAgsid()const void ProfileHistoryListRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ProfileHistoryListResult.cc b/cloudwf/src/model/ProfileHistoryListResult.cc index adc86381c..94150979e 100644 --- a/cloudwf/src/model/ProfileHistoryListResult.cc +++ b/cloudwf/src/model/ProfileHistoryListResult.cc @@ -35,10 +35,13 @@ ProfileHistoryListResult::~ProfileHistoryListResult() void ProfileHistoryListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileHistoryRequest.cc b/cloudwf/src/model/ProfileHistoryRequest.cc index 27432ec13..0f0fc8ed0 100644 --- a/cloudwf/src/model/ProfileHistoryRequest.cc +++ b/cloudwf/src/model/ProfileHistoryRequest.cc @@ -33,7 +33,7 @@ long ProfileHistoryRequest::getIdtype()const void ProfileHistoryRequest::setIdtype(long idtype) { idtype_ = idtype; - setParameter("Idtype", std::to_string(idtype)); + setCoreParameter("Idtype", std::to_string(idtype)); } std::string ProfileHistoryRequest::getEndMonth()const @@ -44,7 +44,7 @@ std::string ProfileHistoryRequest::getEndMonth()const void ProfileHistoryRequest::setEndMonth(const std::string& endMonth) { endMonth_ = endMonth; - setParameter("EndMonth", endMonth); + setCoreParameter("EndMonth", endMonth); } std::string ProfileHistoryRequest::getBeginMonth()const @@ -55,7 +55,7 @@ std::string ProfileHistoryRequest::getBeginMonth()const void ProfileHistoryRequest::setBeginMonth(const std::string& beginMonth) { beginMonth_ = beginMonth; - setParameter("BeginMonth", beginMonth); + setCoreParameter("BeginMonth", beginMonth); } std::string ProfileHistoryRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string ProfileHistoryRequest::getAccessKeyId()const void ProfileHistoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ProfileHistoryRequest::getAgsid()const @@ -77,6 +77,6 @@ long ProfileHistoryRequest::getAgsid()const void ProfileHistoryRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ProfileHistoryResult.cc b/cloudwf/src/model/ProfileHistoryResult.cc index 3ecc6e721..2d8b95518 100644 --- a/cloudwf/src/model/ProfileHistoryResult.cc +++ b/cloudwf/src/model/ProfileHistoryResult.cc @@ -35,10 +35,13 @@ ProfileHistoryResult::~ProfileHistoryResult() void ProfileHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileMediaRequest.cc b/cloudwf/src/model/ProfileMediaRequest.cc index 7c10b3050..a52e47c4a 100644 --- a/cloudwf/src/model/ProfileMediaRequest.cc +++ b/cloudwf/src/model/ProfileMediaRequest.cc @@ -33,7 +33,7 @@ std::string ProfileMediaRequest::getBeginDate()const void ProfileMediaRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ProfileMediaRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ProfileMediaRequest::getEndDate()const void ProfileMediaRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } int ProfileMediaRequest::getDataType()const @@ -55,7 +55,7 @@ int ProfileMediaRequest::getDataType()const void ProfileMediaRequest::setDataType(int dataType) { dataType_ = dataType; - setParameter("DataType", std::to_string(dataType)); + setCoreParameter("DataType", std::to_string(dataType)); } long ProfileMediaRequest::getGsid()const @@ -66,7 +66,7 @@ long ProfileMediaRequest::getGsid()const void ProfileMediaRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ProfileMediaRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ProfileMediaRequest::getAccessKeyId()const void ProfileMediaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ProfileMediaResult.cc b/cloudwf/src/model/ProfileMediaResult.cc index 247fc69e7..38ba1632d 100644 --- a/cloudwf/src/model/ProfileMediaResult.cc +++ b/cloudwf/src/model/ProfileMediaResult.cc @@ -35,10 +35,13 @@ ProfileMediaResult::~ProfileMediaResult() void ProfileMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileTagRequest.cc b/cloudwf/src/model/ProfileTagRequest.cc index 782cfd5a8..541c3d6f8 100644 --- a/cloudwf/src/model/ProfileTagRequest.cc +++ b/cloudwf/src/model/ProfileTagRequest.cc @@ -33,7 +33,7 @@ long ProfileTagRequest::getIdtype()const void ProfileTagRequest::setIdtype(long idtype) { idtype_ = idtype; - setParameter("Idtype", std::to_string(idtype)); + setCoreParameter("Idtype", std::to_string(idtype)); } std::string ProfileTagRequest::getBeginDate()const @@ -44,7 +44,7 @@ std::string ProfileTagRequest::getBeginDate()const void ProfileTagRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ProfileTagRequest::getEndDate()const @@ -55,7 +55,7 @@ std::string ProfileTagRequest::getEndDate()const void ProfileTagRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } int ProfileTagRequest::getAppType()const @@ -66,7 +66,7 @@ int ProfileTagRequest::getAppType()const void ProfileTagRequest::setAppType(int appType) { appType_ = appType; - setParameter("AppType", std::to_string(appType)); + setCoreParameter("AppType", std::to_string(appType)); } std::string ProfileTagRequest::getTag()const @@ -77,7 +77,7 @@ std::string ProfileTagRequest::getTag()const void ProfileTagRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } std::string ProfileTagRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string ProfileTagRequest::getAccessKeyId()const void ProfileTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ProfileTagRequest::getAgsid()const @@ -99,7 +99,7 @@ long ProfileTagRequest::getAgsid()const void ProfileTagRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } int ProfileTagRequest::getAreaNumber()const @@ -110,6 +110,6 @@ int ProfileTagRequest::getAreaNumber()const void ProfileTagRequest::setAreaNumber(int areaNumber) { areaNumber_ = areaNumber; - setParameter("AreaNumber", std::to_string(areaNumber)); + setCoreParameter("AreaNumber", std::to_string(areaNumber)); } diff --git a/cloudwf/src/model/ProfileTagResult.cc b/cloudwf/src/model/ProfileTagResult.cc index 8bdeba1c1..96e1baa23 100644 --- a/cloudwf/src/model/ProfileTagResult.cc +++ b/cloudwf/src/model/ProfileTagResult.cc @@ -35,10 +35,13 @@ ProfileTagResult::~ProfileTagResult() void ProfileTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ProfileTradeRequest.cc b/cloudwf/src/model/ProfileTradeRequest.cc index bb9ed0c32..1eee831cb 100644 --- a/cloudwf/src/model/ProfileTradeRequest.cc +++ b/cloudwf/src/model/ProfileTradeRequest.cc @@ -33,7 +33,7 @@ std::string ProfileTradeRequest::getBeginDate()const void ProfileTradeRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ProfileTradeRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ProfileTradeRequest::getEndDate()const void ProfileTradeRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } int ProfileTradeRequest::getDataType()const @@ -55,7 +55,7 @@ int ProfileTradeRequest::getDataType()const void ProfileTradeRequest::setDataType(int dataType) { dataType_ = dataType; - setParameter("DataType", std::to_string(dataType)); + setCoreParameter("DataType", std::to_string(dataType)); } long ProfileTradeRequest::getGsid()const @@ -66,7 +66,7 @@ long ProfileTradeRequest::getGsid()const void ProfileTradeRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ProfileTradeRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ProfileTradeRequest::getAccessKeyId()const void ProfileTradeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ProfileTradeResult.cc b/cloudwf/src/model/ProfileTradeResult.cc index d228b379d..c86345a8b 100644 --- a/cloudwf/src/model/ProfileTradeResult.cc +++ b/cloudwf/src/model/ProfileTradeResult.cc @@ -35,10 +35,13 @@ ProfileTradeResult::~ProfileTradeResult() void ProfileTradeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/PutOssFileRequest.cc b/cloudwf/src/model/PutOssFileRequest.cc index 12185d73d..c9cf1cd1e 100644 --- a/cloudwf/src/model/PutOssFileRequest.cc +++ b/cloudwf/src/model/PutOssFileRequest.cc @@ -33,7 +33,7 @@ std::string PutOssFileRequest::getJsonData()const void PutOssFileRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string PutOssFileRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string PutOssFileRequest::getAccessKeyId()const void PutOssFileRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/PutOssFileResult.cc b/cloudwf/src/model/PutOssFileResult.cc index e9775ba83..2660db84a 100644 --- a/cloudwf/src/model/PutOssFileResult.cc +++ b/cloudwf/src/model/PutOssFileResult.cc @@ -35,10 +35,13 @@ PutOssFileResult::~PutOssFileResult() void PutOssFileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/QueryRenewPriceRequest.cc b/cloudwf/src/model/QueryRenewPriceRequest.cc index bc62d78d4..8008aac66 100644 --- a/cloudwf/src/model/QueryRenewPriceRequest.cc +++ b/cloudwf/src/model/QueryRenewPriceRequest.cc @@ -33,7 +33,7 @@ int QueryRenewPriceRequest::getTimeCycleNum()const void QueryRenewPriceRequest::setTimeCycleNum(int timeCycleNum) { timeCycleNum_ = timeCycleNum; - setParameter("TimeCycleNum", std::to_string(timeCycleNum)); + setCoreParameter("TimeCycleNum", std::to_string(timeCycleNum)); } std::vector QueryRenewPriceRequest::getApList()const @@ -45,7 +45,7 @@ void QueryRenewPriceRequest::setApList(const std::vector& apList) { apList_ = apList; for(int i = 0; i!= apList.size(); i++) - setParameter("ApList."+ std::to_string(i), apList.at(i)); + setCoreParameter("ApList."+ std::to_string(i), apList.at(i)); } std::string QueryRenewPriceRequest::getAccessKeyId()const @@ -56,6 +56,6 @@ std::string QueryRenewPriceRequest::getAccessKeyId()const void QueryRenewPriceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/QueryRenewPriceResult.cc b/cloudwf/src/model/QueryRenewPriceResult.cc index f0a1ad4bc..9e3b10965 100644 --- a/cloudwf/src/model/QueryRenewPriceResult.cc +++ b/cloudwf/src/model/QueryRenewPriceResult.cc @@ -35,10 +35,13 @@ QueryRenewPriceResult::~QueryRenewPriceResult() void QueryRenewPriceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/ReleaseInstanceRequest.cc b/cloudwf/src/model/ReleaseInstanceRequest.cc index 68cfabea6..a46f7200f 100644 --- a/cloudwf/src/model/ReleaseInstanceRequest.cc +++ b/cloudwf/src/model/ReleaseInstanceRequest.cc @@ -33,7 +33,7 @@ std::string ReleaseInstanceRequest::getTraceId()const void ReleaseInstanceRequest::setTraceId(const std::string& traceId) { traceId_ = traceId; - setParameter("TraceId", traceId); + setCoreParameter("TraceId", traceId); } std::string ReleaseInstanceRequest::getSpMsg()const @@ -44,7 +44,7 @@ std::string ReleaseInstanceRequest::getSpMsg()const void ReleaseInstanceRequest::setSpMsg(const std::string& spMsg) { spMsg_ = spMsg; - setParameter("SpMsg", spMsg); + setCoreParameter("SpMsg", spMsg); } std::string ReleaseInstanceRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ReleaseInstanceRequest::getAccessKeyId()const void ReleaseInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ReleaseInstanceResult.cc b/cloudwf/src/model/ReleaseInstanceResult.cc index 750a4f6d6..057c20326 100644 --- a/cloudwf/src/model/ReleaseInstanceResult.cc +++ b/cloudwf/src/model/ReleaseInstanceResult.cc @@ -35,10 +35,13 @@ ReleaseInstanceResult::~ReleaseInstanceResult() void ReleaseInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/RepairApRequest.cc b/cloudwf/src/model/RepairApRequest.cc index 88a40ec20..b8ec29a35 100644 --- a/cloudwf/src/model/RepairApRequest.cc +++ b/cloudwf/src/model/RepairApRequest.cc @@ -33,7 +33,7 @@ long RepairApRequest::getId()const void RepairApRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string RepairApRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string RepairApRequest::getAccessKeyId()const void RepairApRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/RepairApResult.cc b/cloudwf/src/model/RepairApResult.cc index d66f2e5f2..192b56e75 100644 --- a/cloudwf/src/model/RepairApResult.cc +++ b/cloudwf/src/model/RepairApResult.cc @@ -35,10 +35,13 @@ RepairApResult::~RepairApResult() void RepairApResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/RepairGroupApRequest.cc b/cloudwf/src/model/RepairGroupApRequest.cc index 9cd37c8a2..b8e749de1 100644 --- a/cloudwf/src/model/RepairGroupApRequest.cc +++ b/cloudwf/src/model/RepairGroupApRequest.cc @@ -33,7 +33,7 @@ long RepairGroupApRequest::getId()const void RepairGroupApRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string RepairGroupApRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string RepairGroupApRequest::getAccessKeyId()const void RepairGroupApRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/RepairGroupApResult.cc b/cloudwf/src/model/RepairGroupApResult.cc index 8e9dcd014..1c9fd9ec7 100644 --- a/cloudwf/src/model/RepairGroupApResult.cc +++ b/cloudwf/src/model/RepairGroupApResult.cc @@ -35,10 +35,13 @@ RepairGroupApResult::~RepairGroupApResult() void RepairGroupApResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportDayRequest.cc b/cloudwf/src/model/ReportDayRequest.cc index f163ddd70..a75fecfe5 100644 --- a/cloudwf/src/model/ReportDayRequest.cc +++ b/cloudwf/src/model/ReportDayRequest.cc @@ -33,7 +33,7 @@ std::string ReportDayRequest::getBeginDate()const void ReportDayRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ReportDayRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ReportDayRequest::getEndDate()const void ReportDayRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string ReportDayRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string ReportDayRequest::getAccessKeyId()const void ReportDayRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportDayRequest::getAgsid()const @@ -66,6 +66,6 @@ long ReportDayRequest::getAgsid()const void ReportDayRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportDayResult.cc b/cloudwf/src/model/ReportDayResult.cc index 2ac03d51d..5274f795b 100644 --- a/cloudwf/src/model/ReportDayResult.cc +++ b/cloudwf/src/model/ReportDayResult.cc @@ -35,10 +35,13 @@ ReportDayResult::~ReportDayResult() void ReportDayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportHourRequest.cc b/cloudwf/src/model/ReportHourRequest.cc index fc2a224ba..65ff5f5c9 100644 --- a/cloudwf/src/model/ReportHourRequest.cc +++ b/cloudwf/src/model/ReportHourRequest.cc @@ -33,7 +33,7 @@ std::string ReportHourRequest::getBeginDate()const void ReportHourRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ReportHourRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ReportHourRequest::getEndDate()const void ReportHourRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string ReportHourRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string ReportHourRequest::getAccessKeyId()const void ReportHourRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportHourRequest::getAgsid()const @@ -66,6 +66,6 @@ long ReportHourRequest::getAgsid()const void ReportHourRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportHourResult.cc b/cloudwf/src/model/ReportHourResult.cc index bda4e5d58..5e380aaef 100644 --- a/cloudwf/src/model/ReportHourResult.cc +++ b/cloudwf/src/model/ReportHourResult.cc @@ -35,10 +35,13 @@ ReportHourResult::~ReportHourResult() void ReportHourResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportMinuteRequest.cc b/cloudwf/src/model/ReportMinuteRequest.cc index 60254e011..b4c746f96 100644 --- a/cloudwf/src/model/ReportMinuteRequest.cc +++ b/cloudwf/src/model/ReportMinuteRequest.cc @@ -33,7 +33,7 @@ std::string ReportMinuteRequest::getBeginDate()const void ReportMinuteRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ReportMinuteRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ReportMinuteRequest::getEndDate()const void ReportMinuteRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string ReportMinuteRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string ReportMinuteRequest::getAccessKeyId()const void ReportMinuteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportMinuteRequest::getAgsid()const @@ -66,6 +66,6 @@ long ReportMinuteRequest::getAgsid()const void ReportMinuteRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportMinuteResult.cc b/cloudwf/src/model/ReportMinuteResult.cc index 51524418f..53bd5a7d1 100644 --- a/cloudwf/src/model/ReportMinuteResult.cc +++ b/cloudwf/src/model/ReportMinuteResult.cc @@ -35,10 +35,13 @@ ReportMinuteResult::~ReportMinuteResult() void ReportMinuteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportRealtimeRequest.cc b/cloudwf/src/model/ReportRealtimeRequest.cc index 598b5fbbd..b319b8173 100644 --- a/cloudwf/src/model/ReportRealtimeRequest.cc +++ b/cloudwf/src/model/ReportRealtimeRequest.cc @@ -33,7 +33,7 @@ std::string ReportRealtimeRequest::getAccessKeyId()const void ReportRealtimeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportRealtimeRequest::getAgsid()const @@ -44,6 +44,6 @@ long ReportRealtimeRequest::getAgsid()const void ReportRealtimeRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportRealtimeResult.cc b/cloudwf/src/model/ReportRealtimeResult.cc index e70e3b763..6331f16a9 100644 --- a/cloudwf/src/model/ReportRealtimeResult.cc +++ b/cloudwf/src/model/ReportRealtimeResult.cc @@ -35,10 +35,13 @@ ReportRealtimeResult::~ReportRealtimeResult() void ReportRealtimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportZoneDayRequest.cc b/cloudwf/src/model/ReportZoneDayRequest.cc index 72eb6adb4..0d9b8e459 100644 --- a/cloudwf/src/model/ReportZoneDayRequest.cc +++ b/cloudwf/src/model/ReportZoneDayRequest.cc @@ -33,7 +33,7 @@ std::string ReportZoneDayRequest::getBeginDate()const void ReportZoneDayRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ReportZoneDayRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ReportZoneDayRequest::getEndDate()const void ReportZoneDayRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string ReportZoneDayRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string ReportZoneDayRequest::getAccessKeyId()const void ReportZoneDayRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportZoneDayRequest::getAgsid()const @@ -66,6 +66,6 @@ long ReportZoneDayRequest::getAgsid()const void ReportZoneDayRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportZoneDayResult.cc b/cloudwf/src/model/ReportZoneDayResult.cc index 7910cc1af..c29faa2fe 100644 --- a/cloudwf/src/model/ReportZoneDayResult.cc +++ b/cloudwf/src/model/ReportZoneDayResult.cc @@ -35,10 +35,13 @@ ReportZoneDayResult::~ReportZoneDayResult() void ReportZoneDayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportZoneHourRequest.cc b/cloudwf/src/model/ReportZoneHourRequest.cc index fbfb83a83..dca0932de 100644 --- a/cloudwf/src/model/ReportZoneHourRequest.cc +++ b/cloudwf/src/model/ReportZoneHourRequest.cc @@ -33,7 +33,7 @@ std::string ReportZoneHourRequest::getBeginDate()const void ReportZoneHourRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ReportZoneHourRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ReportZoneHourRequest::getEndDate()const void ReportZoneHourRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string ReportZoneHourRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string ReportZoneHourRequest::getAccessKeyId()const void ReportZoneHourRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportZoneHourRequest::getAgsid()const @@ -66,6 +66,6 @@ long ReportZoneHourRequest::getAgsid()const void ReportZoneHourRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportZoneHourResult.cc b/cloudwf/src/model/ReportZoneHourResult.cc index b1b464ee3..6c1bbaeec 100644 --- a/cloudwf/src/model/ReportZoneHourResult.cc +++ b/cloudwf/src/model/ReportZoneHourResult.cc @@ -35,10 +35,13 @@ ReportZoneHourResult::~ReportZoneHourResult() void ReportZoneHourResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportZoneMinuteRequest.cc b/cloudwf/src/model/ReportZoneMinuteRequest.cc index 1e9d87947..dce051fb6 100644 --- a/cloudwf/src/model/ReportZoneMinuteRequest.cc +++ b/cloudwf/src/model/ReportZoneMinuteRequest.cc @@ -33,7 +33,7 @@ std::string ReportZoneMinuteRequest::getBeginDate()const void ReportZoneMinuteRequest::setBeginDate(const std::string& beginDate) { beginDate_ = beginDate; - setParameter("BeginDate", beginDate); + setCoreParameter("BeginDate", beginDate); } std::string ReportZoneMinuteRequest::getEndDate()const @@ -44,7 +44,7 @@ std::string ReportZoneMinuteRequest::getEndDate()const void ReportZoneMinuteRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string ReportZoneMinuteRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string ReportZoneMinuteRequest::getAccessKeyId()const void ReportZoneMinuteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportZoneMinuteRequest::getAgsid()const @@ -66,6 +66,6 @@ long ReportZoneMinuteRequest::getAgsid()const void ReportZoneMinuteRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportZoneMinuteResult.cc b/cloudwf/src/model/ReportZoneMinuteResult.cc index 9ab365f5e..68c6b0cdf 100644 --- a/cloudwf/src/model/ReportZoneMinuteResult.cc +++ b/cloudwf/src/model/ReportZoneMinuteResult.cc @@ -35,10 +35,13 @@ ReportZoneMinuteResult::~ReportZoneMinuteResult() void ReportZoneMinuteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ReportZoneRealtimeRequest.cc b/cloudwf/src/model/ReportZoneRealtimeRequest.cc index 197a26fc4..acbc35ee4 100644 --- a/cloudwf/src/model/ReportZoneRealtimeRequest.cc +++ b/cloudwf/src/model/ReportZoneRealtimeRequest.cc @@ -33,7 +33,7 @@ std::string ReportZoneRealtimeRequest::getAccessKeyId()const void ReportZoneRealtimeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ReportZoneRealtimeRequest::getAgsid()const @@ -44,6 +44,6 @@ long ReportZoneRealtimeRequest::getAgsid()const void ReportZoneRealtimeRequest::setAgsid(long agsid) { agsid_ = agsid; - setParameter("Agsid", std::to_string(agsid)); + setCoreParameter("Agsid", std::to_string(agsid)); } diff --git a/cloudwf/src/model/ReportZoneRealtimeResult.cc b/cloudwf/src/model/ReportZoneRealtimeResult.cc index 24f40e21a..08036990e 100644 --- a/cloudwf/src/model/ReportZoneRealtimeResult.cc +++ b/cloudwf/src/model/ReportZoneRealtimeResult.cc @@ -35,10 +35,13 @@ ReportZoneRealtimeResult::~ReportZoneRealtimeResult() void ReportZoneRealtimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ResetApConfigRequest.cc b/cloudwf/src/model/ResetApConfigRequest.cc index cea845a16..6b6b2287c 100644 --- a/cloudwf/src/model/ResetApConfigRequest.cc +++ b/cloudwf/src/model/ResetApConfigRequest.cc @@ -33,7 +33,7 @@ long ResetApConfigRequest::getId()const void ResetApConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string ResetApConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ResetApConfigRequest::getAccessKeyId()const void ResetApConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ResetApConfigResult.cc b/cloudwf/src/model/ResetApConfigResult.cc index 5627f6e27..aa46c2641 100644 --- a/cloudwf/src/model/ResetApConfigResult.cc +++ b/cloudwf/src/model/ResetApConfigResult.cc @@ -35,10 +35,13 @@ ResetApConfigResult::~ResetApConfigResult() void ResetApConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ResetApRequest.cc b/cloudwf/src/model/ResetApRequest.cc index 55deeac81..b2587f14b 100644 --- a/cloudwf/src/model/ResetApRequest.cc +++ b/cloudwf/src/model/ResetApRequest.cc @@ -33,7 +33,7 @@ long ResetApRequest::getId()const void ResetApRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string ResetApRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ResetApRequest::getAccessKeyId()const void ResetApRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ResetApResult.cc b/cloudwf/src/model/ResetApResult.cc index 46e0ff1ed..44444eb02 100644 --- a/cloudwf/src/model/ResetApResult.cc +++ b/cloudwf/src/model/ResetApResult.cc @@ -35,10 +35,13 @@ ResetApResult::~ResetApResult() void ResetApResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ResumeInstanceRequest.cc b/cloudwf/src/model/ResumeInstanceRequest.cc index 0fd571b87..c8600e1be 100644 --- a/cloudwf/src/model/ResumeInstanceRequest.cc +++ b/cloudwf/src/model/ResumeInstanceRequest.cc @@ -33,7 +33,7 @@ std::string ResumeInstanceRequest::getTraceId()const void ResumeInstanceRequest::setTraceId(const std::string& traceId) { traceId_ = traceId; - setParameter("TraceId", traceId); + setCoreParameter("TraceId", traceId); } std::string ResumeInstanceRequest::getSpMsg()const @@ -44,7 +44,7 @@ std::string ResumeInstanceRequest::getSpMsg()const void ResumeInstanceRequest::setSpMsg(const std::string& spMsg) { spMsg_ = spMsg; - setParameter("SpMsg", spMsg); + setCoreParameter("SpMsg", spMsg); } std::string ResumeInstanceRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ResumeInstanceRequest::getAccessKeyId()const void ResumeInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ResumeInstanceResult.cc b/cloudwf/src/model/ResumeInstanceResult.cc index 2f0b24fa0..b0c3d6ec7 100644 --- a/cloudwf/src/model/ResumeInstanceResult.cc +++ b/cloudwf/src/model/ResumeInstanceResult.cc @@ -35,10 +35,13 @@ ResumeInstanceResult::~ResumeInstanceResult() void ResumeInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveAccountConfigRequest.cc b/cloudwf/src/model/SaveAccountConfigRequest.cc index 691d8da4e..bd48ac632 100644 --- a/cloudwf/src/model/SaveAccountConfigRequest.cc +++ b/cloudwf/src/model/SaveAccountConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveAccountConfigRequest::getJsonData()const void SaveAccountConfigRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string SaveAccountConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string SaveAccountConfigRequest::getAccessKeyId()const void SaveAccountConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveAccountConfigResult.cc b/cloudwf/src/model/SaveAccountConfigResult.cc index d8288b412..61c7beafd 100644 --- a/cloudwf/src/model/SaveAccountConfigResult.cc +++ b/cloudwf/src/model/SaveAccountConfigResult.cc @@ -35,10 +35,13 @@ SaveAccountConfigResult::~SaveAccountConfigResult() void SaveAccountConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApConfigRequest.cc b/cloudwf/src/model/SaveApConfigRequest.cc index 63f90ba7d..fab40a941 100644 --- a/cloudwf/src/model/SaveApConfigRequest.cc +++ b/cloudwf/src/model/SaveApConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApConfigRequest::getCountry()const void SaveApConfigRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } long SaveApConfigRequest::getApAssetId()const @@ -44,7 +44,7 @@ long SaveApConfigRequest::getApAssetId()const void SaveApConfigRequest::setApAssetId(long apAssetId) { apAssetId_ = apAssetId; - setParameter("ApAssetId", std::to_string(apAssetId)); + setCoreParameter("ApAssetId", std::to_string(apAssetId)); } int SaveApConfigRequest::getLogLevel()const @@ -55,7 +55,7 @@ int SaveApConfigRequest::getLogLevel()const void SaveApConfigRequest::setLogLevel(int logLevel) { logLevel_ = logLevel; - setParameter("LogLevel", std::to_string(logLevel)); + setCoreParameter("LogLevel", std::to_string(logLevel)); } std::string SaveApConfigRequest::getName()const @@ -66,7 +66,7 @@ std::string SaveApConfigRequest::getName()const void SaveApConfigRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int SaveApConfigRequest::getEchoInt()const @@ -77,7 +77,7 @@ int SaveApConfigRequest::getEchoInt()const void SaveApConfigRequest::setEchoInt(int echoInt) { echoInt_ = echoInt; - setParameter("EchoInt", std::to_string(echoInt)); + setCoreParameter("EchoInt", std::to_string(echoInt)); } int SaveApConfigRequest::getScan()const @@ -88,7 +88,7 @@ int SaveApConfigRequest::getScan()const void SaveApConfigRequest::setScan(int scan) { scan_ = scan; - setParameter("Scan", std::to_string(scan)); + setCoreParameter("Scan", std::to_string(scan)); } std::string SaveApConfigRequest::getDescription()const @@ -99,7 +99,7 @@ std::string SaveApConfigRequest::getDescription()const void SaveApConfigRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long SaveApConfigRequest::getId()const @@ -110,7 +110,7 @@ long SaveApConfigRequest::getId()const void SaveApConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string SaveApConfigRequest::getDai()const @@ -121,7 +121,7 @@ std::string SaveApConfigRequest::getDai()const void SaveApConfigRequest::setDai(const std::string& dai) { dai_ = dai; - setParameter("Dai", dai); + setCoreParameter("Dai", dai); } std::string SaveApConfigRequest::getLogIp()const @@ -132,7 +132,7 @@ std::string SaveApConfigRequest::getLogIp()const void SaveApConfigRequest::setLogIp(const std::string& logIp) { logIp_ = logIp; - setParameter("LogIp", logIp); + setCoreParameter("LogIp", logIp); } std::string SaveApConfigRequest::getMac()const @@ -143,7 +143,7 @@ std::string SaveApConfigRequest::getMac()const void SaveApConfigRequest::setMac(const std::string& mac) { mac_ = mac; - setParameter("Mac", mac); + setCoreParameter("Mac", mac); } std::string SaveApConfigRequest::getAccessKeyId()const @@ -154,6 +154,6 @@ std::string SaveApConfigRequest::getAccessKeyId()const void SaveApConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveApConfigResult.cc b/cloudwf/src/model/SaveApConfigResult.cc index 6e5ecb663..52c7cf236 100644 --- a/cloudwf/src/model/SaveApConfigResult.cc +++ b/cloudwf/src/model/SaveApConfigResult.cc @@ -35,10 +35,13 @@ SaveApConfigResult::~SaveApConfigResult() void SaveApConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApMapInfoRequest.cc b/cloudwf/src/model/SaveApMapInfoRequest.cc index 17a36c370..2faa9e437 100644 --- a/cloudwf/src/model/SaveApMapInfoRequest.cc +++ b/cloudwf/src/model/SaveApMapInfoRequest.cc @@ -33,7 +33,7 @@ std::string SaveApMapInfoRequest::getJsonData()const void SaveApMapInfoRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string SaveApMapInfoRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string SaveApMapInfoRequest::getAccessKeyId()const void SaveApMapInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveApMapInfoResult.cc b/cloudwf/src/model/SaveApMapInfoResult.cc index 7292aef6b..1c416fea9 100644 --- a/cloudwf/src/model/SaveApMapInfoResult.cc +++ b/cloudwf/src/model/SaveApMapInfoResult.cc @@ -35,10 +35,13 @@ SaveApMapInfoResult::~SaveApMapInfoResult() void SaveApMapInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApPortalConfigRequest.cc b/cloudwf/src/model/SaveApPortalConfigRequest.cc index aa3b503b1..66b014d27 100644 --- a/cloudwf/src/model/SaveApPortalConfigRequest.cc +++ b/cloudwf/src/model/SaveApPortalConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApPortalConfigRequest::getAuthKey()const void SaveApPortalConfigRequest::setAuthKey(const std::string& authKey) { authKey_ = authKey; - setParameter("AuthKey", authKey); + setCoreParameter("AuthKey", authKey); } std::string SaveApPortalConfigRequest::getPortalUrl()const @@ -44,7 +44,7 @@ std::string SaveApPortalConfigRequest::getPortalUrl()const void SaveApPortalConfigRequest::setPortalUrl(const std::string& portalUrl) { portalUrl_ = portalUrl; - setParameter("PortalUrl", portalUrl); + setCoreParameter("PortalUrl", portalUrl); } bool SaveApPortalConfigRequest::getPortalStatus()const @@ -55,7 +55,7 @@ bool SaveApPortalConfigRequest::getPortalStatus()const void SaveApPortalConfigRequest::setPortalStatus(bool portalStatus) { portalStatus_ = portalStatus; - setParameter("PortalStatus", portalStatus ? "true" : "false"); + setCoreParameter("PortalStatus", portalStatus ? "true" : "false"); } std::string SaveApPortalConfigRequest::getWhitelist()const @@ -66,7 +66,7 @@ std::string SaveApPortalConfigRequest::getWhitelist()const void SaveApPortalConfigRequest::setWhitelist(const std::string& whitelist) { whitelist_ = whitelist; - setParameter("Whitelist", whitelist); + setCoreParameter("Whitelist", whitelist); } std::string SaveApPortalConfigRequest::getCheckUrl()const @@ -77,7 +77,7 @@ std::string SaveApPortalConfigRequest::getCheckUrl()const void SaveApPortalConfigRequest::setCheckUrl(const std::string& checkUrl) { checkUrl_ = checkUrl; - setParameter("CheckUrl", checkUrl); + setCoreParameter("CheckUrl", checkUrl); } long SaveApPortalConfigRequest::getApConfigId()const @@ -88,7 +88,7 @@ long SaveApPortalConfigRequest::getApConfigId()const void SaveApPortalConfigRequest::setApConfigId(long apConfigId) { apConfigId_ = apConfigId; - setParameter("ApConfigId", std::to_string(apConfigId)); + setCoreParameter("ApConfigId", std::to_string(apConfigId)); } std::string SaveApPortalConfigRequest::getAuthSecret()const @@ -99,7 +99,7 @@ std::string SaveApPortalConfigRequest::getAuthSecret()const void SaveApPortalConfigRequest::setAuthSecret(const std::string& authSecret) { authSecret_ = authSecret; - setParameter("AuthSecret", authSecret); + setCoreParameter("AuthSecret", authSecret); } std::string SaveApPortalConfigRequest::getWebAuthUrl()const @@ -110,7 +110,7 @@ std::string SaveApPortalConfigRequest::getWebAuthUrl()const void SaveApPortalConfigRequest::setWebAuthUrl(const std::string& webAuthUrl) { webAuthUrl_ = webAuthUrl; - setParameter("WebAuthUrl", webAuthUrl); + setCoreParameter("WebAuthUrl", webAuthUrl); } std::string SaveApPortalConfigRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string SaveApPortalConfigRequest::getAccessKeyId()const void SaveApPortalConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int SaveApPortalConfigRequest::getNetwork()const @@ -132,6 +132,6 @@ int SaveApPortalConfigRequest::getNetwork()const void SaveApPortalConfigRequest::setNetwork(int network) { network_ = network; - setParameter("Network", std::to_string(network)); + setCoreParameter("Network", std::to_string(network)); } diff --git a/cloudwf/src/model/SaveApPortalConfigResult.cc b/cloudwf/src/model/SaveApPortalConfigResult.cc index 054c5b25b..5bc8ac33e 100644 --- a/cloudwf/src/model/SaveApPortalConfigResult.cc +++ b/cloudwf/src/model/SaveApPortalConfigResult.cc @@ -35,10 +35,13 @@ SaveApPortalConfigResult::~SaveApPortalConfigResult() void SaveApPortalConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApRadioConfigRequest.cc b/cloudwf/src/model/SaveApRadioConfigRequest.cc index 8a91bf13e..047eeba09 100644 --- a/cloudwf/src/model/SaveApRadioConfigRequest.cc +++ b/cloudwf/src/model/SaveApRadioConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApRadioConfigRequest::getRequireMode()const void SaveApRadioConfigRequest::setRequireMode(const std::string& requireMode) { requireMode_ = requireMode; - setParameter("RequireMode", requireMode); + setCoreParameter("RequireMode", requireMode); } std::string SaveApRadioConfigRequest::getHtmode()const @@ -44,7 +44,7 @@ std::string SaveApRadioConfigRequest::getHtmode()const void SaveApRadioConfigRequest::setHtmode(const std::string& htmode) { htmode_ = htmode; - setParameter("Htmode", htmode); + setCoreParameter("Htmode", htmode); } int SaveApRadioConfigRequest::getFrag()const @@ -55,7 +55,7 @@ int SaveApRadioConfigRequest::getFrag()const void SaveApRadioConfigRequest::setFrag(int frag) { frag_ = frag; - setParameter("Frag", std::to_string(frag)); + setCoreParameter("Frag", std::to_string(frag)); } int SaveApRadioConfigRequest::getMinrate()const @@ -66,7 +66,7 @@ int SaveApRadioConfigRequest::getMinrate()const void SaveApRadioConfigRequest::setMinrate(int minrate) { minrate_ = minrate; - setParameter("Minrate", std::to_string(minrate)); + setCoreParameter("Minrate", std::to_string(minrate)); } int SaveApRadioConfigRequest::getMcastRate()const @@ -77,7 +77,7 @@ int SaveApRadioConfigRequest::getMcastRate()const void SaveApRadioConfigRequest::setMcastRate(int mcastRate) { mcastRate_ = mcastRate; - setParameter("McastRate", std::to_string(mcastRate)); + setCoreParameter("McastRate", std::to_string(mcastRate)); } int SaveApRadioConfigRequest::getProbereq()const @@ -88,7 +88,7 @@ int SaveApRadioConfigRequest::getProbereq()const void SaveApRadioConfigRequest::setProbereq(int probereq) { probereq_ = probereq; - setParameter("Probereq", std::to_string(probereq)); + setCoreParameter("Probereq", std::to_string(probereq)); } int SaveApRadioConfigRequest::getChannel()const @@ -99,7 +99,7 @@ int SaveApRadioConfigRequest::getChannel()const void SaveApRadioConfigRequest::setChannel(int channel) { channel_ = channel; - setParameter("Channel", std::to_string(channel)); + setCoreParameter("Channel", std::to_string(channel)); } int SaveApRadioConfigRequest::getShortgi()const @@ -110,7 +110,7 @@ int SaveApRadioConfigRequest::getShortgi()const void SaveApRadioConfigRequest::setShortgi(int shortgi) { shortgi_ = shortgi; - setParameter("Shortgi", std::to_string(shortgi)); + setCoreParameter("Shortgi", std::to_string(shortgi)); } std::string SaveApRadioConfigRequest::getHwmode()const @@ -121,7 +121,7 @@ std::string SaveApRadioConfigRequest::getHwmode()const void SaveApRadioConfigRequest::setHwmode(const std::string& hwmode) { hwmode_ = hwmode; - setParameter("Hwmode", hwmode); + setCoreParameter("Hwmode", hwmode); } int SaveApRadioConfigRequest::getUapsd()const @@ -132,7 +132,7 @@ int SaveApRadioConfigRequest::getUapsd()const void SaveApRadioConfigRequest::setUapsd(int uapsd) { uapsd_ = uapsd; - setParameter("Uapsd", std::to_string(uapsd)); + setCoreParameter("Uapsd", std::to_string(uapsd)); } int SaveApRadioConfigRequest::getBeaconInt()const @@ -143,7 +143,7 @@ int SaveApRadioConfigRequest::getBeaconInt()const void SaveApRadioConfigRequest::setBeaconInt(int beaconInt) { beaconInt_ = beaconInt; - setParameter("BeaconInt", std::to_string(beaconInt)); + setCoreParameter("BeaconInt", std::to_string(beaconInt)); } std::string SaveApRadioConfigRequest::getMac()const @@ -154,7 +154,7 @@ std::string SaveApRadioConfigRequest::getMac()const void SaveApRadioConfigRequest::setMac(const std::string& mac) { mac_ = mac; - setParameter("Mac", mac); + setCoreParameter("Mac", mac); } std::string SaveApRadioConfigRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string SaveApRadioConfigRequest::getAccessKeyId()const void SaveApRadioConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int SaveApRadioConfigRequest::getRts()const @@ -176,7 +176,7 @@ int SaveApRadioConfigRequest::getRts()const void SaveApRadioConfigRequest::setRts(int rts) { rts_ = rts; - setParameter("Rts", std::to_string(rts)); + setCoreParameter("Rts", std::to_string(rts)); } int SaveApRadioConfigRequest::getTxpower()const @@ -187,7 +187,7 @@ int SaveApRadioConfigRequest::getTxpower()const void SaveApRadioConfigRequest::setTxpower(int txpower) { txpower_ = txpower; - setParameter("Txpower", std::to_string(txpower)); + setCoreParameter("Txpower", std::to_string(txpower)); } int SaveApRadioConfigRequest::getNoscan()const @@ -198,7 +198,7 @@ int SaveApRadioConfigRequest::getNoscan()const void SaveApRadioConfigRequest::setNoscan(int noscan) { noscan_ = noscan; - setParameter("Noscan", std::to_string(noscan)); + setCoreParameter("Noscan", std::to_string(noscan)); } int SaveApRadioConfigRequest::getBcastRate()const @@ -209,7 +209,7 @@ int SaveApRadioConfigRequest::getBcastRate()const void SaveApRadioConfigRequest::setBcastRate(int bcastRate) { bcastRate_ = bcastRate; - setParameter("BcastRate", std::to_string(bcastRate)); + setCoreParameter("BcastRate", std::to_string(bcastRate)); } int SaveApRadioConfigRequest::getDisabled()const @@ -220,7 +220,7 @@ int SaveApRadioConfigRequest::getDisabled()const void SaveApRadioConfigRequest::setDisabled(int disabled) { disabled_ = disabled; - setParameter("Disabled", std::to_string(disabled)); + setCoreParameter("Disabled", std::to_string(disabled)); } int SaveApRadioConfigRequest::getInstantlyEffective()const @@ -231,7 +231,7 @@ int SaveApRadioConfigRequest::getInstantlyEffective()const void SaveApRadioConfigRequest::setInstantlyEffective(int instantlyEffective) { instantlyEffective_ = instantlyEffective; - setParameter("InstantlyEffective", std::to_string(instantlyEffective)); + setCoreParameter("InstantlyEffective", std::to_string(instantlyEffective)); } long SaveApRadioConfigRequest::getId()const @@ -242,7 +242,7 @@ long SaveApRadioConfigRequest::getId()const void SaveApRadioConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } int SaveApRadioConfigRequest::getRadioIndex()const @@ -253,6 +253,6 @@ int SaveApRadioConfigRequest::getRadioIndex()const void SaveApRadioConfigRequest::setRadioIndex(int radioIndex) { radioIndex_ = radioIndex; - setParameter("RadioIndex", std::to_string(radioIndex)); + setCoreParameter("RadioIndex", std::to_string(radioIndex)); } diff --git a/cloudwf/src/model/SaveApRadioConfigResult.cc b/cloudwf/src/model/SaveApRadioConfigResult.cc index 9dbc19479..6de4df260 100644 --- a/cloudwf/src/model/SaveApRadioConfigResult.cc +++ b/cloudwf/src/model/SaveApRadioConfigResult.cc @@ -35,10 +35,13 @@ SaveApRadioConfigResult::~SaveApRadioConfigResult() void SaveApRadioConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApRadioSsidConfigRequest.cc b/cloudwf/src/model/SaveApRadioSsidConfigRequest.cc index 435530f4a..d61bad4ee 100644 --- a/cloudwf/src/model/SaveApRadioSsidConfigRequest.cc +++ b/cloudwf/src/model/SaveApRadioSsidConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApRadioSsidConfigRequest::getNasid()const void SaveApRadioSsidConfigRequest::setNasid(const std::string& nasid) { nasid_ = nasid; - setParameter("Nasid", nasid); + setCoreParameter("Nasid", nasid); } int SaveApRadioSsidConfigRequest::getAuthPort()const @@ -44,7 +44,7 @@ int SaveApRadioSsidConfigRequest::getAuthPort()const void SaveApRadioSsidConfigRequest::setAuthPort(int authPort) { authPort_ = authPort; - setParameter("AuthPort", std::to_string(authPort)); + setCoreParameter("AuthPort", std::to_string(authPort)); } int SaveApRadioSsidConfigRequest::getHidden()const @@ -55,7 +55,7 @@ int SaveApRadioSsidConfigRequest::getHidden()const void SaveApRadioSsidConfigRequest::setHidden(int hidden) { hidden_ = hidden; - setParameter("Hidden", std::to_string(hidden)); + setCoreParameter("Hidden", std::to_string(hidden)); } int SaveApRadioSsidConfigRequest::getDynamicVlan()const @@ -66,7 +66,7 @@ int SaveApRadioSsidConfigRequest::getDynamicVlan()const void SaveApRadioSsidConfigRequest::setDynamicVlan(int dynamicVlan) { dynamicVlan_ = dynamicVlan; - setParameter("DynamicVlan", std::to_string(dynamicVlan)); + setCoreParameter("DynamicVlan", std::to_string(dynamicVlan)); } std::string SaveApRadioSsidConfigRequest::getAuthServer()const @@ -77,7 +77,7 @@ std::string SaveApRadioSsidConfigRequest::getAuthServer()const void SaveApRadioSsidConfigRequest::setAuthServer(const std::string& authServer) { authServer_ = authServer; - setParameter("AuthServer", authServer); + setCoreParameter("AuthServer", authServer); } std::string SaveApRadioSsidConfigRequest::getSecondaryAcctServer()const @@ -88,7 +88,7 @@ std::string SaveApRadioSsidConfigRequest::getSecondaryAcctServer()const void SaveApRadioSsidConfigRequest::setSecondaryAcctServer(const std::string& secondaryAcctServer) { secondaryAcctServer_ = secondaryAcctServer; - setParameter("SecondaryAcctServer", secondaryAcctServer); + setCoreParameter("SecondaryAcctServer", secondaryAcctServer); } std::string SaveApRadioSsidConfigRequest::getSsid()const @@ -99,7 +99,7 @@ std::string SaveApRadioSsidConfigRequest::getSsid()const void SaveApRadioSsidConfigRequest::setSsid(const std::string& ssid) { ssid_ = ssid; - setParameter("Ssid", ssid); + setCoreParameter("Ssid", ssid); } int SaveApRadioSsidConfigRequest::getCir()const @@ -110,7 +110,7 @@ int SaveApRadioSsidConfigRequest::getCir()const void SaveApRadioSsidConfigRequest::setCir(int cir) { cir_ = cir; - setParameter("Cir", std::to_string(cir)); + setCoreParameter("Cir", std::to_string(cir)); } std::string SaveApRadioSsidConfigRequest::getMac()const @@ -121,7 +121,7 @@ std::string SaveApRadioSsidConfigRequest::getMac()const void SaveApRadioSsidConfigRequest::setMac(const std::string& mac) { mac_ = mac; - setParameter("Mac", mac); + setCoreParameter("Mac", mac); } std::string SaveApRadioSsidConfigRequest::getSecondaryAcctSecret()const @@ -132,7 +132,7 @@ std::string SaveApRadioSsidConfigRequest::getSecondaryAcctSecret()const void SaveApRadioSsidConfigRequest::setSecondaryAcctSecret(const std::string& secondaryAcctSecret) { secondaryAcctSecret_ = secondaryAcctSecret; - setParameter("SecondaryAcctSecret", secondaryAcctSecret); + setCoreParameter("SecondaryAcctSecret", secondaryAcctSecret); } std::string SaveApRadioSsidConfigRequest::getAccessKeyId()const @@ -143,7 +143,7 @@ std::string SaveApRadioSsidConfigRequest::getAccessKeyId()const void SaveApRadioSsidConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int SaveApRadioSsidConfigRequest::getIeee80211w()const @@ -154,7 +154,7 @@ int SaveApRadioSsidConfigRequest::getIeee80211w()const void SaveApRadioSsidConfigRequest::setIeee80211w(int ieee80211w) { ieee80211w_ = ieee80211w; - setParameter("Ieee80211w", std::to_string(ieee80211w)); + setCoreParameter("Ieee80211w", std::to_string(ieee80211w)); } int SaveApRadioSsidConfigRequest::getNetwork()const @@ -165,7 +165,7 @@ int SaveApRadioSsidConfigRequest::getNetwork()const void SaveApRadioSsidConfigRequest::setNetwork(int network) { network_ = network; - setParameter("Network", std::to_string(network)); + setCoreParameter("Network", std::to_string(network)); } int SaveApRadioSsidConfigRequest::getIsolate()const @@ -176,7 +176,7 @@ int SaveApRadioSsidConfigRequest::getIsolate()const void SaveApRadioSsidConfigRequest::setIsolate(int isolate) { isolate_ = isolate; - setParameter("Isolate", std::to_string(isolate)); + setCoreParameter("Isolate", std::to_string(isolate)); } long SaveApRadioSsidConfigRequest::getApAssetId()const @@ -187,7 +187,7 @@ long SaveApRadioSsidConfigRequest::getApAssetId()const void SaveApRadioSsidConfigRequest::setApAssetId(long apAssetId) { apAssetId_ = apAssetId; - setParameter("ApAssetId", std::to_string(apAssetId)); + setCoreParameter("ApAssetId", std::to_string(apAssetId)); } std::string SaveApRadioSsidConfigRequest::getEncKey()const @@ -198,7 +198,7 @@ std::string SaveApRadioSsidConfigRequest::getEncKey()const void SaveApRadioSsidConfigRequest::setEncKey(const std::string& encKey) { encKey_ = encKey; - setParameter("EncKey", encKey); + setCoreParameter("EncKey", encKey); } int SaveApRadioSsidConfigRequest::getMulticastForward()const @@ -209,7 +209,7 @@ int SaveApRadioSsidConfigRequest::getMulticastForward()const void SaveApRadioSsidConfigRequest::setMulticastForward(int multicastForward) { multicastForward_ = multicastForward; - setParameter("MulticastForward", std::to_string(multicastForward)); + setCoreParameter("MulticastForward", std::to_string(multicastForward)); } std::string SaveApRadioSsidConfigRequest::getEncryption()const @@ -220,7 +220,7 @@ std::string SaveApRadioSsidConfigRequest::getEncryption()const void SaveApRadioSsidConfigRequest::setEncryption(const std::string& encryption) { encryption_ = encryption; - setParameter("Encryption", encryption); + setCoreParameter("Encryption", encryption); } int SaveApRadioSsidConfigRequest::getWmm()const @@ -231,7 +231,7 @@ int SaveApRadioSsidConfigRequest::getWmm()const void SaveApRadioSsidConfigRequest::setWmm(int wmm) { wmm_ = wmm; - setParameter("Wmm", std::to_string(wmm)); + setCoreParameter("Wmm", std::to_string(wmm)); } int SaveApRadioSsidConfigRequest::getAuthCache()const @@ -242,7 +242,7 @@ int SaveApRadioSsidConfigRequest::getAuthCache()const void SaveApRadioSsidConfigRequest::setAuthCache(int authCache) { authCache_ = authCache; - setParameter("AuthCache", std::to_string(authCache)); + setCoreParameter("AuthCache", std::to_string(authCache)); } int SaveApRadioSsidConfigRequest::getDisabled()const @@ -253,7 +253,7 @@ int SaveApRadioSsidConfigRequest::getDisabled()const void SaveApRadioSsidConfigRequest::setDisabled(int disabled) { disabled_ = disabled; - setParameter("Disabled", std::to_string(disabled)); + setCoreParameter("Disabled", std::to_string(disabled)); } long SaveApRadioSsidConfigRequest::getId()const @@ -264,7 +264,7 @@ long SaveApRadioSsidConfigRequest::getId()const void SaveApRadioSsidConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } int SaveApRadioSsidConfigRequest::getRadioIndex()const @@ -275,7 +275,7 @@ int SaveApRadioSsidConfigRequest::getRadioIndex()const void SaveApRadioSsidConfigRequest::setRadioIndex(int radioIndex) { radioIndex_ = radioIndex; - setParameter("RadioIndex", std::to_string(radioIndex)); + setCoreParameter("RadioIndex", std::to_string(radioIndex)); } int SaveApRadioSsidConfigRequest::getIgnoreWeakProbe()const @@ -286,7 +286,7 @@ int SaveApRadioSsidConfigRequest::getIgnoreWeakProbe()const void SaveApRadioSsidConfigRequest::setIgnoreWeakProbe(int ignoreWeakProbe) { ignoreWeakProbe_ = ignoreWeakProbe; - setParameter("IgnoreWeakProbe", std::to_string(ignoreWeakProbe)); + setCoreParameter("IgnoreWeakProbe", std::to_string(ignoreWeakProbe)); } int SaveApRadioSsidConfigRequest::getMaxassoc()const @@ -297,7 +297,7 @@ int SaveApRadioSsidConfigRequest::getMaxassoc()const void SaveApRadioSsidConfigRequest::setMaxassoc(int maxassoc) { maxassoc_ = maxassoc; - setParameter("Maxassoc", std::to_string(maxassoc)); + setCoreParameter("Maxassoc", std::to_string(maxassoc)); } std::string SaveApRadioSsidConfigRequest::getAcctServer()const @@ -308,7 +308,7 @@ std::string SaveApRadioSsidConfigRequest::getAcctServer()const void SaveApRadioSsidConfigRequest::setAcctServer(const std::string& acctServer) { acctServer_ = acctServer; - setParameter("AcctServer", acctServer); + setCoreParameter("AcctServer", acctServer); } std::string SaveApRadioSsidConfigRequest::getSecondaryAuthServer()const @@ -319,7 +319,7 @@ std::string SaveApRadioSsidConfigRequest::getSecondaryAuthServer()const void SaveApRadioSsidConfigRequest::setSecondaryAuthServer(const std::string& secondaryAuthServer) { secondaryAuthServer_ = secondaryAuthServer; - setParameter("SecondaryAuthServer", secondaryAuthServer); + setCoreParameter("SecondaryAuthServer", secondaryAuthServer); } std::string SaveApRadioSsidConfigRequest::getDaeClient()const @@ -330,7 +330,7 @@ std::string SaveApRadioSsidConfigRequest::getDaeClient()const void SaveApRadioSsidConfigRequest::setDaeClient(const std::string& daeClient) { daeClient_ = daeClient; - setParameter("DaeClient", daeClient); + setCoreParameter("DaeClient", daeClient); } std::string SaveApRadioSsidConfigRequest::getDaeSecret()const @@ -341,7 +341,7 @@ std::string SaveApRadioSsidConfigRequest::getDaeSecret()const void SaveApRadioSsidConfigRequest::setDaeSecret(const std::string& daeSecret) { daeSecret_ = daeSecret; - setParameter("DaeSecret", daeSecret); + setCoreParameter("DaeSecret", daeSecret); } int SaveApRadioSsidConfigRequest::getDisassocLowAck()const @@ -352,7 +352,7 @@ int SaveApRadioSsidConfigRequest::getDisassocLowAck()const void SaveApRadioSsidConfigRequest::setDisassocLowAck(int disassocLowAck) { disassocLowAck_ = disassocLowAck; - setParameter("DisassocLowAck", std::to_string(disassocLowAck)); + setCoreParameter("DisassocLowAck", std::to_string(disassocLowAck)); } int SaveApRadioSsidConfigRequest::getSecondaryAuthPort()const @@ -363,7 +363,7 @@ int SaveApRadioSsidConfigRequest::getSecondaryAuthPort()const void SaveApRadioSsidConfigRequest::setSecondaryAuthPort(int secondaryAuthPort) { secondaryAuthPort_ = secondaryAuthPort; - setParameter("SecondaryAuthPort", std::to_string(secondaryAuthPort)); + setCoreParameter("SecondaryAuthPort", std::to_string(secondaryAuthPort)); } std::string SaveApRadioSsidConfigRequest::getAcctSecret()const @@ -374,7 +374,7 @@ std::string SaveApRadioSsidConfigRequest::getAcctSecret()const void SaveApRadioSsidConfigRequest::setAcctSecret(const std::string& acctSecret) { acctSecret_ = acctSecret; - setParameter("AcctSecret", acctSecret); + setCoreParameter("AcctSecret", acctSecret); } int SaveApRadioSsidConfigRequest::getDisassocWeakRssi()const @@ -385,7 +385,7 @@ int SaveApRadioSsidConfigRequest::getDisassocWeakRssi()const void SaveApRadioSsidConfigRequest::setDisassocWeakRssi(int disassocWeakRssi) { disassocWeakRssi_ = disassocWeakRssi; - setParameter("DisassocWeakRssi", std::to_string(disassocWeakRssi)); + setCoreParameter("DisassocWeakRssi", std::to_string(disassocWeakRssi)); } int SaveApRadioSsidConfigRequest::getSecondaryAcctPort()const @@ -396,7 +396,7 @@ int SaveApRadioSsidConfigRequest::getSecondaryAcctPort()const void SaveApRadioSsidConfigRequest::setSecondaryAcctPort(int secondaryAcctPort) { secondaryAcctPort_ = secondaryAcctPort; - setParameter("SecondaryAcctPort", std::to_string(secondaryAcctPort)); + setCoreParameter("SecondaryAcctPort", std::to_string(secondaryAcctPort)); } int SaveApRadioSsidConfigRequest::getDaePort()const @@ -407,7 +407,7 @@ int SaveApRadioSsidConfigRequest::getDaePort()const void SaveApRadioSsidConfigRequest::setDaePort(int daePort) { daePort_ = daePort; - setParameter("DaePort", std::to_string(daePort)); + setCoreParameter("DaePort", std::to_string(daePort)); } int SaveApRadioSsidConfigRequest::getSsidLb()const @@ -418,7 +418,7 @@ int SaveApRadioSsidConfigRequest::getSsidLb()const void SaveApRadioSsidConfigRequest::setSsidLb(int ssidLb) { ssidLb_ = ssidLb; - setParameter("SsidLb", std::to_string(ssidLb)); + setCoreParameter("SsidLb", std::to_string(ssidLb)); } int SaveApRadioSsidConfigRequest::getAcctPort()const @@ -429,7 +429,7 @@ int SaveApRadioSsidConfigRequest::getAcctPort()const void SaveApRadioSsidConfigRequest::setAcctPort(int acctPort) { acctPort_ = acctPort; - setParameter("AcctPort", std::to_string(acctPort)); + setCoreParameter("AcctPort", std::to_string(acctPort)); } int SaveApRadioSsidConfigRequest::getMaxInactivity()const @@ -440,7 +440,7 @@ int SaveApRadioSsidConfigRequest::getMaxInactivity()const void SaveApRadioSsidConfigRequest::setMaxInactivity(int maxInactivity) { maxInactivity_ = maxInactivity; - setParameter("MaxInactivity", std::to_string(maxInactivity)); + setCoreParameter("MaxInactivity", std::to_string(maxInactivity)); } int SaveApRadioSsidConfigRequest::getVlanDhcp()const @@ -451,7 +451,7 @@ int SaveApRadioSsidConfigRequest::getVlanDhcp()const void SaveApRadioSsidConfigRequest::setVlanDhcp(int vlanDhcp) { vlanDhcp_ = vlanDhcp; - setParameter("VlanDhcp", std::to_string(vlanDhcp)); + setCoreParameter("VlanDhcp", std::to_string(vlanDhcp)); } int SaveApRadioSsidConfigRequest::getInstantlyEffective()const @@ -462,7 +462,7 @@ int SaveApRadioSsidConfigRequest::getInstantlyEffective()const void SaveApRadioSsidConfigRequest::setInstantlyEffective(int instantlyEffective) { instantlyEffective_ = instantlyEffective; - setParameter("InstantlyEffective", std::to_string(instantlyEffective)); + setCoreParameter("InstantlyEffective", std::to_string(instantlyEffective)); } int SaveApRadioSsidConfigRequest::getShortPreamble()const @@ -473,7 +473,7 @@ int SaveApRadioSsidConfigRequest::getShortPreamble()const void SaveApRadioSsidConfigRequest::setShortPreamble(int shortPreamble) { shortPreamble_ = shortPreamble; - setParameter("ShortPreamble", std::to_string(shortPreamble)); + setCoreParameter("ShortPreamble", std::to_string(shortPreamble)); } std::string SaveApRadioSsidConfigRequest::getAuthSecret()const @@ -484,7 +484,7 @@ std::string SaveApRadioSsidConfigRequest::getAuthSecret()const void SaveApRadioSsidConfigRequest::setAuthSecret(const std::string& authSecret) { authSecret_ = authSecret; - setParameter("AuthSecret", authSecret); + setCoreParameter("AuthSecret", authSecret); } std::string SaveApRadioSsidConfigRequest::getSecondaryAuthSecret()const @@ -495,7 +495,7 @@ std::string SaveApRadioSsidConfigRequest::getSecondaryAuthSecret()const void SaveApRadioSsidConfigRequest::setSecondaryAuthSecret(const std::string& secondaryAuthSecret) { secondaryAuthSecret_ = secondaryAuthSecret; - setParameter("SecondaryAuthSecret", secondaryAuthSecret); + setCoreParameter("SecondaryAuthSecret", secondaryAuthSecret); } std::string SaveApRadioSsidConfigRequest::getOwnip()const @@ -506,6 +506,6 @@ std::string SaveApRadioSsidConfigRequest::getOwnip()const void SaveApRadioSsidConfigRequest::setOwnip(const std::string& ownip) { ownip_ = ownip; - setParameter("Ownip", ownip); + setCoreParameter("Ownip", ownip); } diff --git a/cloudwf/src/model/SaveApRadioSsidConfigResult.cc b/cloudwf/src/model/SaveApRadioSsidConfigResult.cc index db7471773..68d988ce8 100644 --- a/cloudwf/src/model/SaveApRadioSsidConfigResult.cc +++ b/cloudwf/src/model/SaveApRadioSsidConfigResult.cc @@ -35,10 +35,13 @@ SaveApRadioSsidConfigResult::~SaveApRadioSsidConfigResult() void SaveApRadioSsidConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApScanConfigRequest.cc b/cloudwf/src/model/SaveApScanConfigRequest.cc index 123f5dabe..856e17014 100644 --- a/cloudwf/src/model/SaveApScanConfigRequest.cc +++ b/cloudwf/src/model/SaveApScanConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApScanConfigRequest::getJsonData()const void SaveApScanConfigRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } long SaveApScanConfigRequest::getApConfigId()const @@ -44,7 +44,7 @@ long SaveApScanConfigRequest::getApConfigId()const void SaveApScanConfigRequest::setApConfigId(long apConfigId) { apConfigId_ = apConfigId; - setParameter("ApConfigId", std::to_string(apConfigId)); + setCoreParameter("ApConfigId", std::to_string(apConfigId)); } std::string SaveApScanConfigRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string SaveApScanConfigRequest::getAccessKeyId()const void SaveApScanConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveApScanConfigResult.cc b/cloudwf/src/model/SaveApScanConfigResult.cc index 07543068c..7682b0493 100644 --- a/cloudwf/src/model/SaveApScanConfigResult.cc +++ b/cloudwf/src/model/SaveApScanConfigResult.cc @@ -35,10 +35,13 @@ SaveApScanConfigResult::~SaveApScanConfigResult() void SaveApScanConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApgroupConfigRequest.cc b/cloudwf/src/model/SaveApgroupConfigRequest.cc index 9611806bb..c3016de2c 100644 --- a/cloudwf/src/model/SaveApgroupConfigRequest.cc +++ b/cloudwf/src/model/SaveApgroupConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApgroupConfigRequest::getCountry()const void SaveApgroupConfigRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } int SaveApgroupConfigRequest::getLogLevel()const @@ -44,7 +44,7 @@ int SaveApgroupConfigRequest::getLogLevel()const void SaveApgroupConfigRequest::setLogLevel(int logLevel) { logLevel_ = logLevel; - setParameter("LogLevel", std::to_string(logLevel)); + setCoreParameter("LogLevel", std::to_string(logLevel)); } std::string SaveApgroupConfigRequest::getName()const @@ -55,7 +55,7 @@ std::string SaveApgroupConfigRequest::getName()const void SaveApgroupConfigRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int SaveApgroupConfigRequest::getEchoInt()const @@ -66,7 +66,7 @@ int SaveApgroupConfigRequest::getEchoInt()const void SaveApgroupConfigRequest::setEchoInt(int echoInt) { echoInt_ = echoInt; - setParameter("EchoInt", std::to_string(echoInt)); + setCoreParameter("EchoInt", std::to_string(echoInt)); } int SaveApgroupConfigRequest::getScan()const @@ -77,7 +77,7 @@ int SaveApgroupConfigRequest::getScan()const void SaveApgroupConfigRequest::setScan(int scan) { scan_ = scan; - setParameter("Scan", std::to_string(scan)); + setCoreParameter("Scan", std::to_string(scan)); } std::string SaveApgroupConfigRequest::getDescription()const @@ -88,7 +88,7 @@ std::string SaveApgroupConfigRequest::getDescription()const void SaveApgroupConfigRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long SaveApgroupConfigRequest::getId()const @@ -99,7 +99,7 @@ long SaveApgroupConfigRequest::getId()const void SaveApgroupConfigRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string SaveApgroupConfigRequest::getDai()const @@ -110,7 +110,7 @@ std::string SaveApgroupConfigRequest::getDai()const void SaveApgroupConfigRequest::setDai(const std::string& dai) { dai_ = dai; - setParameter("Dai", dai); + setCoreParameter("Dai", dai); } std::string SaveApgroupConfigRequest::getLogIp()const @@ -121,7 +121,7 @@ std::string SaveApgroupConfigRequest::getLogIp()const void SaveApgroupConfigRequest::setLogIp(const std::string& logIp) { logIp_ = logIp; - setParameter("LogIp", logIp); + setCoreParameter("LogIp", logIp); } std::string SaveApgroupConfigRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string SaveApgroupConfigRequest::getAccessKeyId()const void SaveApgroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveApgroupConfigResult.cc b/cloudwf/src/model/SaveApgroupConfigResult.cc index b77118d18..0e9b40ff4 100644 --- a/cloudwf/src/model/SaveApgroupConfigResult.cc +++ b/cloudwf/src/model/SaveApgroupConfigResult.cc @@ -35,10 +35,13 @@ SaveApgroupConfigResult::~SaveApgroupConfigResult() void SaveApgroupConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApgroupScanConfigRequest.cc b/cloudwf/src/model/SaveApgroupScanConfigRequest.cc index 0f7aedc77..b82c87352 100644 --- a/cloudwf/src/model/SaveApgroupScanConfigRequest.cc +++ b/cloudwf/src/model/SaveApgroupScanConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApgroupScanConfigRequest::getJsonData()const void SaveApgroupScanConfigRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } long SaveApgroupScanConfigRequest::getApgroupId()const @@ -44,7 +44,7 @@ long SaveApgroupScanConfigRequest::getApgroupId()const void SaveApgroupScanConfigRequest::setApgroupId(long apgroupId) { apgroupId_ = apgroupId; - setParameter("ApgroupId", std::to_string(apgroupId)); + setCoreParameter("ApgroupId", std::to_string(apgroupId)); } std::string SaveApgroupScanConfigRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string SaveApgroupScanConfigRequest::getAccessKeyId()const void SaveApgroupScanConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveApgroupScanConfigResult.cc b/cloudwf/src/model/SaveApgroupScanConfigResult.cc index 8b253474c..842fdd967 100644 --- a/cloudwf/src/model/SaveApgroupScanConfigResult.cc +++ b/cloudwf/src/model/SaveApgroupScanConfigResult.cc @@ -35,10 +35,13 @@ SaveApgroupScanConfigResult::~SaveApgroupScanConfigResult() void SaveApgroupScanConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveApgroupSsidConfigRequest.cc b/cloudwf/src/model/SaveApgroupSsidConfigRequest.cc index 3cb013ad8..5950d5fa1 100644 --- a/cloudwf/src/model/SaveApgroupSsidConfigRequest.cc +++ b/cloudwf/src/model/SaveApgroupSsidConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveApgroupSsidConfigRequest::getJsonData()const void SaveApgroupSsidConfigRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string SaveApgroupSsidConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string SaveApgroupSsidConfigRequest::getAccessKeyId()const void SaveApgroupSsidConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveApgroupSsidConfigResult.cc b/cloudwf/src/model/SaveApgroupSsidConfigResult.cc index 65759bfd9..2b06e67d2 100644 --- a/cloudwf/src/model/SaveApgroupSsidConfigResult.cc +++ b/cloudwf/src/model/SaveApgroupSsidConfigResult.cc @@ -35,10 +35,13 @@ SaveApgroupSsidConfigResult::~SaveApgroupSsidConfigResult() void SaveApgroupSsidConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveGroupApRadioConfigRequest.cc b/cloudwf/src/model/SaveGroupApRadioConfigRequest.cc index 1f6a13d3f..2a3171b47 100644 --- a/cloudwf/src/model/SaveGroupApRadioConfigRequest.cc +++ b/cloudwf/src/model/SaveGroupApRadioConfigRequest.cc @@ -33,7 +33,7 @@ std::string SaveGroupApRadioConfigRequest::getJsonData()const void SaveGroupApRadioConfigRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string SaveGroupApRadioConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string SaveGroupApRadioConfigRequest::getAccessKeyId()const void SaveGroupApRadioConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveGroupApRadioConfigResult.cc b/cloudwf/src/model/SaveGroupApRadioConfigResult.cc index 62cd70c20..8e18e1cd3 100644 --- a/cloudwf/src/model/SaveGroupApRadioConfigResult.cc +++ b/cloudwf/src/model/SaveGroupApRadioConfigResult.cc @@ -35,10 +35,13 @@ SaveGroupApRadioConfigResult::~SaveGroupApRadioConfigResult() void SaveGroupApRadioConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SavePageConfigTemplateRequest.cc b/cloudwf/src/model/SavePageConfigTemplateRequest.cc index 3be05a3f7..05ab71193 100644 --- a/cloudwf/src/model/SavePageConfigTemplateRequest.cc +++ b/cloudwf/src/model/SavePageConfigTemplateRequest.cc @@ -33,7 +33,7 @@ int SavePageConfigTemplateRequest::getTempType()const void SavePageConfigTemplateRequest::setTempType(int tempType) { tempType_ = tempType; - setParameter("TempType", std::to_string(tempType)); + setCoreParameter("TempType", std::to_string(tempType)); } std::string SavePageConfigTemplateRequest::getTempDesc()const @@ -44,7 +44,7 @@ std::string SavePageConfigTemplateRequest::getTempDesc()const void SavePageConfigTemplateRequest::setTempDesc(const std::string& tempDesc) { tempDesc_ = tempDesc; - setParameter("TempDesc", tempDesc); + setCoreParameter("TempDesc", tempDesc); } std::string SavePageConfigTemplateRequest::getTempName()const @@ -55,7 +55,7 @@ std::string SavePageConfigTemplateRequest::getTempName()const void SavePageConfigTemplateRequest::setTempName(const std::string& tempName) { tempName_ = tempName; - setParameter("TempName", tempName); + setCoreParameter("TempName", tempName); } long SavePageConfigTemplateRequest::getId()const @@ -66,7 +66,7 @@ long SavePageConfigTemplateRequest::getId()const void SavePageConfigTemplateRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string SavePageConfigTemplateRequest::getTempPermission()const @@ -77,7 +77,7 @@ std::string SavePageConfigTemplateRequest::getTempPermission()const void SavePageConfigTemplateRequest::setTempPermission(const std::string& tempPermission) { tempPermission_ = tempPermission; - setParameter("TempPermission", tempPermission); + setCoreParameter("TempPermission", tempPermission); } std::string SavePageConfigTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string SavePageConfigTemplateRequest::getAccessKeyId()const void SavePageConfigTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SavePageConfigTemplateResult.cc b/cloudwf/src/model/SavePageConfigTemplateResult.cc index cd21559b1..7041618f0 100644 --- a/cloudwf/src/model/SavePageConfigTemplateResult.cc +++ b/cloudwf/src/model/SavePageConfigTemplateResult.cc @@ -35,10 +35,13 @@ SavePageConfigTemplateResult::~SavePageConfigTemplateResult() void SavePageConfigTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SavePortalConfigRequest.cc b/cloudwf/src/model/SavePortalConfigRequest.cc index ec9bdf91b..a79d42dd6 100644 --- a/cloudwf/src/model/SavePortalConfigRequest.cc +++ b/cloudwf/src/model/SavePortalConfigRequest.cc @@ -33,7 +33,7 @@ std::string SavePortalConfigRequest::getJsonData()const void SavePortalConfigRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string SavePortalConfigRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string SavePortalConfigRequest::getAccessKeyId()const void SavePortalConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SavePortalConfigResult.cc b/cloudwf/src/model/SavePortalConfigResult.cc index 6854ab0f9..f593a5983 100644 --- a/cloudwf/src/model/SavePortalConfigResult.cc +++ b/cloudwf/src/model/SavePortalConfigResult.cc @@ -35,10 +35,13 @@ SavePortalConfigResult::~SavePortalConfigResult() void SavePortalConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SavePortalTemplateRequest.cc b/cloudwf/src/model/SavePortalTemplateRequest.cc index 4830f77d0..639ffa39d 100644 --- a/cloudwf/src/model/SavePortalTemplateRequest.cc +++ b/cloudwf/src/model/SavePortalTemplateRequest.cc @@ -33,7 +33,7 @@ std::string SavePortalTemplateRequest::getTextContent()const void SavePortalTemplateRequest::setTextContent(const std::string& textContent) { textContent_ = textContent; - setParameter("TextContent", textContent); + setCoreParameter("TextContent", textContent); } std::string SavePortalTemplateRequest::getTempName()const @@ -44,7 +44,7 @@ std::string SavePortalTemplateRequest::getTempName()const void SavePortalTemplateRequest::setTempName(const std::string& tempName) { tempName_ = tempName; - setParameter("TempName", tempName); + setCoreParameter("TempName", tempName); } std::string SavePortalTemplateRequest::getTextAlign()const @@ -55,7 +55,7 @@ std::string SavePortalTemplateRequest::getTextAlign()const void SavePortalTemplateRequest::setTextAlign(const std::string& textAlign) { textAlign_ = textAlign; - setParameter("TextAlign", textAlign); + setCoreParameter("TextAlign", textAlign); } std::string SavePortalTemplateRequest::getTextColor()const @@ -66,7 +66,7 @@ std::string SavePortalTemplateRequest::getTextColor()const void SavePortalTemplateRequest::setTextColor(const std::string& textColor) { textColor_ = textColor; - setParameter("TextColor", textColor); + setCoreParameter("TextColor", textColor); } long SavePortalTemplateRequest::getId()const @@ -77,7 +77,7 @@ long SavePortalTemplateRequest::getId()const void SavePortalTemplateRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } long SavePortalTemplateRequest::getOssFileId()const @@ -88,7 +88,7 @@ long SavePortalTemplateRequest::getOssFileId()const void SavePortalTemplateRequest::setOssFileId(long ossFileId) { ossFileId_ = ossFileId; - setParameter("OssFileId", std::to_string(ossFileId)); + setCoreParameter("OssFileId", std::to_string(ossFileId)); } std::string SavePortalTemplateRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string SavePortalTemplateRequest::getAccessKeyId()const void SavePortalTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SavePortalTemplateResult.cc b/cloudwf/src/model/SavePortalTemplateResult.cc index 2edf69ab9..be29ffa55 100644 --- a/cloudwf/src/model/SavePortalTemplateResult.cc +++ b/cloudwf/src/model/SavePortalTemplateResult.cc @@ -35,10 +35,13 @@ SavePortalTemplateResult::~SavePortalTemplateResult() void SavePortalTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveProbeDataSubscriberRequest.cc b/cloudwf/src/model/SaveProbeDataSubscriberRequest.cc index d8fb45968..58dfd064a 100644 --- a/cloudwf/src/model/SaveProbeDataSubscriberRequest.cc +++ b/cloudwf/src/model/SaveProbeDataSubscriberRequest.cc @@ -33,7 +33,7 @@ std::string SaveProbeDataSubscriberRequest::getApiUrl()const void SaveProbeDataSubscriberRequest::setApiUrl(const std::string& apiUrl) { apiUrl_ = apiUrl; - setParameter("ApiUrl", apiUrl); + setCoreParameter("ApiUrl", apiUrl); } std::string SaveProbeDataSubscriberRequest::getParamGenScript()const @@ -44,7 +44,7 @@ std::string SaveProbeDataSubscriberRequest::getParamGenScript()const void SaveProbeDataSubscriberRequest::setParamGenScript(const std::string& paramGenScript) { paramGenScript_ = paramGenScript; - setParameter("ParamGenScript", paramGenScript); + setCoreParameter("ParamGenScript", paramGenScript); } std::string SaveProbeDataSubscriberRequest::getName()const @@ -55,7 +55,7 @@ std::string SaveProbeDataSubscriberRequest::getName()const void SaveProbeDataSubscriberRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string SaveProbeDataSubscriberRequest::getHttpMethod()const @@ -66,7 +66,7 @@ std::string SaveProbeDataSubscriberRequest::getHttpMethod()const void SaveProbeDataSubscriberRequest::setHttpMethod(const std::string& httpMethod) { httpMethod_ = httpMethod; - setParameter("HttpMethod", httpMethod); + setCoreParameter("HttpMethod", httpMethod); } std::string SaveProbeDataSubscriberRequest::getDescription()const @@ -77,7 +77,7 @@ std::string SaveProbeDataSubscriberRequest::getDescription()const void SaveProbeDataSubscriberRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long SaveProbeDataSubscriberRequest::getId()const @@ -88,7 +88,7 @@ long SaveProbeDataSubscriberRequest::getId()const void SaveProbeDataSubscriberRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } int SaveProbeDataSubscriberRequest::getType()const @@ -99,7 +99,7 @@ int SaveProbeDataSubscriberRequest::getType()const void SaveProbeDataSubscriberRequest::setType(int type) { type_ = type; - setParameter("Type", std::to_string(type)); + setCoreParameter("Type", std::to_string(type)); } std::string SaveProbeDataSubscriberRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SaveProbeDataSubscriberRequest::getAccessKeyId()const void SaveProbeDataSubscriberRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::vector SaveProbeDataSubscriberRequest::getResourceIds()const @@ -122,6 +122,6 @@ void SaveProbeDataSubscriberRequest::setResourceIds(const std::vector& res { resourceIds_ = resourceIds; for(int i = 0; i!= resourceIds.size(); i++) - setParameter("ResourceIds."+ std::to_string(i), std::to_string(resourceIds.at(i))); + setCoreParameter("ResourceIds."+ std::to_string(i), std::to_string(resourceIds.at(i))); } diff --git a/cloudwf/src/model/SaveProbeDataSubscriberResult.cc b/cloudwf/src/model/SaveProbeDataSubscriberResult.cc index 57d78a826..061a9a4aa 100644 --- a/cloudwf/src/model/SaveProbeDataSubscriberResult.cc +++ b/cloudwf/src/model/SaveProbeDataSubscriberResult.cc @@ -35,10 +35,13 @@ SaveProbeDataSubscriberResult::~SaveProbeDataSubscriberResult() void SaveProbeDataSubscriberResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveStaStatusRequest.cc b/cloudwf/src/model/SaveStaStatusRequest.cc index 4a34e9089..7a315253c 100644 --- a/cloudwf/src/model/SaveStaStatusRequest.cc +++ b/cloudwf/src/model/SaveStaStatusRequest.cc @@ -33,7 +33,7 @@ std::string SaveStaStatusRequest::getDescription()const void SaveStaStatusRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long SaveStaStatusRequest::getId()const @@ -44,7 +44,7 @@ long SaveStaStatusRequest::getId()const void SaveStaStatusRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string SaveStaStatusRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string SaveStaStatusRequest::getAccessKeyId()const void SaveStaStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveStaStatusResult.cc b/cloudwf/src/model/SaveStaStatusResult.cc index 92b229aca..eff456380 100644 --- a/cloudwf/src/model/SaveStaStatusResult.cc +++ b/cloudwf/src/model/SaveStaStatusResult.cc @@ -35,10 +35,13 @@ SaveStaStatusResult::~SaveStaStatusResult() void SaveStaStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SaveUmengPagePermission4RootRequest.cc b/cloudwf/src/model/SaveUmengPagePermission4RootRequest.cc index 14e88a9b1..936276824 100644 --- a/cloudwf/src/model/SaveUmengPagePermission4RootRequest.cc +++ b/cloudwf/src/model/SaveUmengPagePermission4RootRequest.cc @@ -33,7 +33,7 @@ std::string SaveUmengPagePermission4RootRequest::getGsPermission()const void SaveUmengPagePermission4RootRequest::setGsPermission(const std::string& gsPermission) { gsPermission_ = gsPermission; - setParameter("GsPermission", gsPermission); + setCoreParameter("GsPermission", gsPermission); } long SaveUmengPagePermission4RootRequest::getAliyunPk()const @@ -44,7 +44,7 @@ long SaveUmengPagePermission4RootRequest::getAliyunPk()const void SaveUmengPagePermission4RootRequest::setAliyunPk(long aliyunPk) { aliyunPk_ = aliyunPk; - setParameter("AliyunPk", std::to_string(aliyunPk)); + setCoreParameter("AliyunPk", std::to_string(aliyunPk)); } long SaveUmengPagePermission4RootRequest::getPagePermission()const @@ -55,7 +55,7 @@ long SaveUmengPagePermission4RootRequest::getPagePermission()const void SaveUmengPagePermission4RootRequest::setPagePermission(long pagePermission) { pagePermission_ = pagePermission; - setParameter("PagePermission", std::to_string(pagePermission)); + setCoreParameter("PagePermission", std::to_string(pagePermission)); } long SaveUmengPagePermission4RootRequest::getId()const @@ -66,7 +66,7 @@ long SaveUmengPagePermission4RootRequest::getId()const void SaveUmengPagePermission4RootRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } long SaveUmengPagePermission4RootRequest::getBid()const @@ -77,7 +77,7 @@ long SaveUmengPagePermission4RootRequest::getBid()const void SaveUmengPagePermission4RootRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string SaveUmengPagePermission4RootRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string SaveUmengPagePermission4RootRequest::getAccessKeyId()const void SaveUmengPagePermission4RootRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SaveUmengPagePermission4RootResult.cc b/cloudwf/src/model/SaveUmengPagePermission4RootResult.cc index 075fa60b6..7b0c51070 100644 --- a/cloudwf/src/model/SaveUmengPagePermission4RootResult.cc +++ b/cloudwf/src/model/SaveUmengPagePermission4RootResult.cc @@ -35,10 +35,13 @@ SaveUmengPagePermission4RootResult::~SaveUmengPagePermission4RootResult() void SaveUmengPagePermission4RootResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SendCommandByMacRequest.cc b/cloudwf/src/model/SendCommandByMacRequest.cc index 5e1bd64fc..765dbda77 100644 --- a/cloudwf/src/model/SendCommandByMacRequest.cc +++ b/cloudwf/src/model/SendCommandByMacRequest.cc @@ -34,7 +34,7 @@ void SendCommandByMacRequest::setMacList(const std::vector& macList { macList_ = macList; for(int i = 0; i!= macList.size(); i++) - setParameter("MacList."+ std::to_string(i), macList.at(i)); + setCoreParameter("MacList."+ std::to_string(i), macList.at(i)); } std::string SendCommandByMacRequest::getCommand()const @@ -45,7 +45,7 @@ std::string SendCommandByMacRequest::getCommand()const void SendCommandByMacRequest::setCommand(const std::string& command) { command_ = command; - setParameter("Command", command); + setCoreParameter("Command", command); } std::string SendCommandByMacRequest::getAccessKeyId()const @@ -56,6 +56,6 @@ std::string SendCommandByMacRequest::getAccessKeyId()const void SendCommandByMacRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SendCommandByMacResult.cc b/cloudwf/src/model/SendCommandByMacResult.cc index 41ac33465..cb26489af 100644 --- a/cloudwf/src/model/SendCommandByMacResult.cc +++ b/cloudwf/src/model/SendCommandByMacResult.cc @@ -35,10 +35,13 @@ SendCommandByMacResult::~SendCommandByMacResult() void SendCommandByMacResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SetScanModeRequest.cc b/cloudwf/src/model/SetScanModeRequest.cc index 6ad7275b8..014a01264 100644 --- a/cloudwf/src/model/SetScanModeRequest.cc +++ b/cloudwf/src/model/SetScanModeRequest.cc @@ -33,7 +33,7 @@ int SetScanModeRequest::getOperation()const void SetScanModeRequest::setOperation(int operation) { operation_ = operation; - setParameter("Operation", std::to_string(operation)); + setCoreParameter("Operation", std::to_string(operation)); } std::vector SetScanModeRequest::getMacList()const @@ -45,7 +45,7 @@ void SetScanModeRequest::setMacList(const std::vector& macList) { macList_ = macList; for(int i = 0; i!= macList.size(); i++) - setParameter("MacList."+ std::to_string(i), macList.at(i)); + setCoreParameter("MacList."+ std::to_string(i), macList.at(i)); } std::string SetScanModeRequest::getAccessKeyId()const @@ -56,6 +56,6 @@ std::string SetScanModeRequest::getAccessKeyId()const void SetScanModeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SetScanModeResult.cc b/cloudwf/src/model/SetScanModeResult.cc index 5d81f2999..bfc4a5a7c 100644 --- a/cloudwf/src/model/SetScanModeResult.cc +++ b/cloudwf/src/model/SetScanModeResult.cc @@ -35,10 +35,13 @@ SetScanModeResult::~SetScanModeResult() void SetScanModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/SetUpgradeImgByModelRequest.cc b/cloudwf/src/model/SetUpgradeImgByModelRequest.cc index 69bb3e18e..4fbdc1156 100644 --- a/cloudwf/src/model/SetUpgradeImgByModelRequest.cc +++ b/cloudwf/src/model/SetUpgradeImgByModelRequest.cc @@ -33,7 +33,7 @@ std::string SetUpgradeImgByModelRequest::getImgAddr()const void SetUpgradeImgByModelRequest::setImgAddr(const std::string& imgAddr) { imgAddr_ = imgAddr; - setParameter("ImgAddr", imgAddr); + setCoreParameter("ImgAddr", imgAddr); } std::string SetUpgradeImgByModelRequest::getImgVersion()const @@ -44,7 +44,7 @@ std::string SetUpgradeImgByModelRequest::getImgVersion()const void SetUpgradeImgByModelRequest::setImgVersion(const std::string& imgVersion) { imgVersion_ = imgVersion; - setParameter("ImgVersion", imgVersion); + setCoreParameter("ImgVersion", imgVersion); } long SetUpgradeImgByModelRequest::getApModelId()const @@ -55,7 +55,7 @@ long SetUpgradeImgByModelRequest::getApModelId()const void SetUpgradeImgByModelRequest::setApModelId(long apModelId) { apModelId_ = apModelId; - setParameter("ApModelId", std::to_string(apModelId)); + setCoreParameter("ApModelId", std::to_string(apModelId)); } std::string SetUpgradeImgByModelRequest::getComment()const @@ -66,7 +66,7 @@ std::string SetUpgradeImgByModelRequest::getComment()const void SetUpgradeImgByModelRequest::setComment(const std::string& comment) { comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("Comment", comment); } std::string SetUpgradeImgByModelRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string SetUpgradeImgByModelRequest::getAccessKeyId()const void SetUpgradeImgByModelRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/SetUpgradeImgByModelResult.cc b/cloudwf/src/model/SetUpgradeImgByModelResult.cc index caa264cc0..f3236d70f 100644 --- a/cloudwf/src/model/SetUpgradeImgByModelResult.cc +++ b/cloudwf/src/model/SetUpgradeImgByModelResult.cc @@ -35,10 +35,13 @@ SetUpgradeImgByModelResult::~SetUpgradeImgByModelResult() void SetUpgradeImgByModelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopActionCustomeRequest.cc b/cloudwf/src/model/ShopActionCustomeRequest.cc index e348ac64e..e921223a4 100644 --- a/cloudwf/src/model/ShopActionCustomeRequest.cc +++ b/cloudwf/src/model/ShopActionCustomeRequest.cc @@ -33,7 +33,7 @@ long ShopActionCustomeRequest::getGsid()const void ShopActionCustomeRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ShopActionCustomeRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ShopActionCustomeRequest::getAccessKeyId()const void ShopActionCustomeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopActionCustomeResult.cc b/cloudwf/src/model/ShopActionCustomeResult.cc index 0be11a846..4bcf8762c 100644 --- a/cloudwf/src/model/ShopActionCustomeResult.cc +++ b/cloudwf/src/model/ShopActionCustomeResult.cc @@ -35,10 +35,13 @@ ShopActionCustomeResult::~ShopActionCustomeResult() void ShopActionCustomeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopActionReturningRequest.cc b/cloudwf/src/model/ShopActionReturningRequest.cc index 1368a6a1b..4d91b1bec 100644 --- a/cloudwf/src/model/ShopActionReturningRequest.cc +++ b/cloudwf/src/model/ShopActionReturningRequest.cc @@ -33,7 +33,7 @@ long ShopActionReturningRequest::getGsid()const void ShopActionReturningRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ShopActionReturningRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ShopActionReturningRequest::getAccessKeyId()const void ShopActionReturningRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopActionReturningResult.cc b/cloudwf/src/model/ShopActionReturningResult.cc index 9af4669fe..ebb57d2e1 100644 --- a/cloudwf/src/model/ShopActionReturningResult.cc +++ b/cloudwf/src/model/ShopActionReturningResult.cc @@ -35,10 +35,13 @@ ShopActionReturningResult::~ShopActionReturningResult() void ShopActionReturningResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopCameraRequest.cc b/cloudwf/src/model/ShopCameraRequest.cc index efab301bc..0300a47b3 100644 --- a/cloudwf/src/model/ShopCameraRequest.cc +++ b/cloudwf/src/model/ShopCameraRequest.cc @@ -33,7 +33,7 @@ long ShopCameraRequest::getGsid()const void ShopCameraRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ShopCameraRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ShopCameraRequest::getAccessKeyId()const void ShopCameraRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopCameraResult.cc b/cloudwf/src/model/ShopCameraResult.cc index f47b82cb0..e8484682f 100644 --- a/cloudwf/src/model/ShopCameraResult.cc +++ b/cloudwf/src/model/ShopCameraResult.cc @@ -35,10 +35,13 @@ ShopCameraResult::~ShopCameraResult() void ShopCameraResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopCreateRequest.cc b/cloudwf/src/model/ShopCreateRequest.cc index e4181c304..bcc3b0fab 100644 --- a/cloudwf/src/model/ShopCreateRequest.cc +++ b/cloudwf/src/model/ShopCreateRequest.cc @@ -33,7 +33,7 @@ std::string ShopCreateRequest::getShopCoordinate()const void ShopCreateRequest::setShopCoordinate(const std::string& shopCoordinate) { shopCoordinate_ = shopCoordinate; - setParameter("ShopCoordinate", shopCoordinate); + setCoreParameter("ShopCoordinate", shopCoordinate); } std::string ShopCreateRequest::getShopProvince()const @@ -44,7 +44,7 @@ std::string ShopCreateRequest::getShopProvince()const void ShopCreateRequest::setShopProvince(const std::string& shopProvince) { shopProvince_ = shopProvince; - setParameter("ShopProvince", shopProvince); + setCoreParameter("ShopProvince", shopProvince); } int ShopCreateRequest::getShopTopType()const @@ -55,7 +55,7 @@ int ShopCreateRequest::getShopTopType()const void ShopCreateRequest::setShopTopType(int shopTopType) { shopTopType_ = shopTopType; - setParameter("ShopTopType", std::to_string(shopTopType)); + setCoreParameter("ShopTopType", std::to_string(shopTopType)); } std::string ShopCreateRequest::getShopAddress()const @@ -66,7 +66,7 @@ std::string ShopCreateRequest::getShopAddress()const void ShopCreateRequest::setShopAddress(const std::string& shopAddress) { shopAddress_ = shopAddress; - setParameter("ShopAddress", shopAddress); + setCoreParameter("ShopAddress", shopAddress); } int ShopCreateRequest::getShopType()const @@ -77,7 +77,7 @@ int ShopCreateRequest::getShopType()const void ShopCreateRequest::setShopType(int shopType) { shopType_ = shopType; - setParameter("ShopType", std::to_string(shopType)); + setCoreParameter("ShopType", std::to_string(shopType)); } std::string ShopCreateRequest::getWarnEmail()const @@ -88,7 +88,7 @@ std::string ShopCreateRequest::getWarnEmail()const void ShopCreateRequest::setWarnEmail(const std::string& warnEmail) { warnEmail_ = warnEmail; - setParameter("WarnEmail", warnEmail); + setCoreParameter("WarnEmail", warnEmail); } std::string ShopCreateRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ShopCreateRequest::getAccessKeyId()const void ShopCreateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ShopCreateRequest::getShopTel()const @@ -110,7 +110,7 @@ std::string ShopCreateRequest::getShopTel()const void ShopCreateRequest::setShopTel(const std::string& shopTel) { shopTel_ = shopTel; - setParameter("ShopTel", shopTel); + setCoreParameter("ShopTel", shopTel); } std::string ShopCreateRequest::getWarnpHone()const @@ -121,7 +121,7 @@ std::string ShopCreateRequest::getWarnpHone()const void ShopCreateRequest::setWarnpHone(const std::string& warnpHone) { warnpHone_ = warnpHone; - setParameter("WarnpHone", warnpHone); + setCoreParameter("WarnpHone", warnpHone); } int ShopCreateRequest::getWarn()const @@ -132,7 +132,7 @@ int ShopCreateRequest::getWarn()const void ShopCreateRequest::setWarn(int warn) { warn_ = warn; - setParameter("Warn", std::to_string(warn)); + setCoreParameter("Warn", std::to_string(warn)); } int ShopCreateRequest::getShopArea()const @@ -143,7 +143,7 @@ int ShopCreateRequest::getShopArea()const void ShopCreateRequest::setShopArea(int shopArea) { shopArea_ = shopArea; - setParameter("ShopArea", std::to_string(shopArea)); + setCoreParameter("ShopArea", std::to_string(shopArea)); } std::string ShopCreateRequest::getShopRemarks()const @@ -154,7 +154,7 @@ std::string ShopCreateRequest::getShopRemarks()const void ShopCreateRequest::setShopRemarks(const std::string& shopRemarks) { shopRemarks_ = shopRemarks; - setParameter("ShopRemarks", shopRemarks); + setCoreParameter("ShopRemarks", shopRemarks); } std::string ShopCreateRequest::getShopCity()const @@ -165,7 +165,7 @@ std::string ShopCreateRequest::getShopCity()const void ShopCreateRequest::setShopCity(const std::string& shopCity) { shopCity_ = shopCity; - setParameter("ShopCity", shopCity); + setCoreParameter("ShopCity", shopCity); } int ShopCreateRequest::getShopSubtype()const @@ -176,7 +176,7 @@ int ShopCreateRequest::getShopSubtype()const void ShopCreateRequest::setShopSubtype(int shopSubtype) { shopSubtype_ = shopSubtype; - setParameter("ShopSubtype", std::to_string(shopSubtype)); + setCoreParameter("ShopSubtype", std::to_string(shopSubtype)); } std::string ShopCreateRequest::getShopBrand()const @@ -187,7 +187,7 @@ std::string ShopCreateRequest::getShopBrand()const void ShopCreateRequest::setShopBrand(const std::string& shopBrand) { shopBrand_ = shopBrand; - setParameter("ShopBrand", shopBrand); + setCoreParameter("ShopBrand", shopBrand); } std::string ShopCreateRequest::getShopName()const @@ -198,7 +198,7 @@ std::string ShopCreateRequest::getShopName()const void ShopCreateRequest::setShopName(const std::string& shopName) { shopName_ = shopName; - setParameter("ShopName", shopName); + setCoreParameter("ShopName", shopName); } int ShopCreateRequest::getShopCloseWarn()const @@ -209,7 +209,7 @@ int ShopCreateRequest::getShopCloseWarn()const void ShopCreateRequest::setShopCloseWarn(int shopCloseWarn) { shopCloseWarn_ = shopCloseWarn; - setParameter("ShopCloseWarn", std::to_string(shopCloseWarn)); + setCoreParameter("ShopCloseWarn", std::to_string(shopCloseWarn)); } long ShopCreateRequest::getBid()const @@ -220,7 +220,7 @@ long ShopCreateRequest::getBid()const void ShopCreateRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string ShopCreateRequest::getShopManager()const @@ -231,7 +231,7 @@ std::string ShopCreateRequest::getShopManager()const void ShopCreateRequest::setShopManager(const std::string& shopManager) { shopManager_ = shopManager; - setParameter("ShopManager", shopManager); + setCoreParameter("ShopManager", shopManager); } std::string ShopCreateRequest::getShopBusinessHours()const @@ -242,6 +242,6 @@ std::string ShopCreateRequest::getShopBusinessHours()const void ShopCreateRequest::setShopBusinessHours(const std::string& shopBusinessHours) { shopBusinessHours_ = shopBusinessHours; - setParameter("ShopBusinessHours", shopBusinessHours); + setCoreParameter("ShopBusinessHours", shopBusinessHours); } diff --git a/cloudwf/src/model/ShopCreateResult.cc b/cloudwf/src/model/ShopCreateResult.cc index b60868d77..78de9afc0 100644 --- a/cloudwf/src/model/ShopCreateResult.cc +++ b/cloudwf/src/model/ShopCreateResult.cc @@ -35,10 +35,13 @@ ShopCreateResult::~ShopCreateResult() void ShopCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopCreatemarketingRequest.cc b/cloudwf/src/model/ShopCreatemarketingRequest.cc index d2afa562f..fa15df4b1 100644 --- a/cloudwf/src/model/ShopCreatemarketingRequest.cc +++ b/cloudwf/src/model/ShopCreatemarketingRequest.cc @@ -33,7 +33,7 @@ std::string ShopCreatemarketingRequest::getEtime()const void ShopCreatemarketingRequest::setEtime(const std::string& etime) { etime_ = etime; - setParameter("Etime", etime); + setCoreParameter("Etime", etime); } std::string ShopCreatemarketingRequest::getName()const @@ -44,7 +44,7 @@ std::string ShopCreatemarketingRequest::getName()const void ShopCreatemarketingRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ShopCreatemarketingRequest::getStime()const @@ -55,7 +55,7 @@ std::string ShopCreatemarketingRequest::getStime()const void ShopCreatemarketingRequest::setStime(const std::string& stime) { stime_ = stime; - setParameter("Stime", stime); + setCoreParameter("Stime", stime); } std::string ShopCreatemarketingRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string ShopCreatemarketingRequest::getAccessKeyId()const void ShopCreatemarketingRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopCreatemarketingRequest::getSid()const @@ -77,6 +77,6 @@ long ShopCreatemarketingRequest::getSid()const void ShopCreatemarketingRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopCreatemarketingResult.cc b/cloudwf/src/model/ShopCreatemarketingResult.cc index c4ac1ff84..4f3aa7388 100644 --- a/cloudwf/src/model/ShopCreatemarketingResult.cc +++ b/cloudwf/src/model/ShopCreatemarketingResult.cc @@ -35,10 +35,13 @@ ShopCreatemarketingResult::~ShopCreatemarketingResult() void ShopCreatemarketingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopDataAlarmRequest.cc b/cloudwf/src/model/ShopDataAlarmRequest.cc index baa8ae8cf..090cb4688 100644 --- a/cloudwf/src/model/ShopDataAlarmRequest.cc +++ b/cloudwf/src/model/ShopDataAlarmRequest.cc @@ -33,7 +33,7 @@ std::string ShopDataAlarmRequest::getWarnPhone()const void ShopDataAlarmRequest::setWarnPhone(const std::string& warnPhone) { warnPhone_ = warnPhone; - setParameter("WarnPhone", warnPhone); + setCoreParameter("WarnPhone", warnPhone); } int ShopDataAlarmRequest::getWarn()const @@ -44,7 +44,7 @@ int ShopDataAlarmRequest::getWarn()const void ShopDataAlarmRequest::setWarn(int warn) { warn_ = warn; - setParameter("Warn", std::to_string(warn)); + setCoreParameter("Warn", std::to_string(warn)); } int ShopDataAlarmRequest::getCloseWarn()const @@ -55,7 +55,7 @@ int ShopDataAlarmRequest::getCloseWarn()const void ShopDataAlarmRequest::setCloseWarn(int closeWarn) { closeWarn_ = closeWarn; - setParameter("CloseWarn", std::to_string(closeWarn)); + setCoreParameter("CloseWarn", std::to_string(closeWarn)); } std::string ShopDataAlarmRequest::getWarnEmail()const @@ -66,7 +66,7 @@ std::string ShopDataAlarmRequest::getWarnEmail()const void ShopDataAlarmRequest::setWarnEmail(const std::string& warnEmail) { warnEmail_ = warnEmail; - setParameter("WarnEmail", warnEmail); + setCoreParameter("WarnEmail", warnEmail); } std::string ShopDataAlarmRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string ShopDataAlarmRequest::getAccessKeyId()const void ShopDataAlarmRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopDataAlarmRequest::getSid()const @@ -88,6 +88,6 @@ long ShopDataAlarmRequest::getSid()const void ShopDataAlarmRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopDataAlarmResult.cc b/cloudwf/src/model/ShopDataAlarmResult.cc index a7e0d8680..4c97611a5 100644 --- a/cloudwf/src/model/ShopDataAlarmResult.cc +++ b/cloudwf/src/model/ShopDataAlarmResult.cc @@ -35,10 +35,13 @@ ShopDataAlarmResult::~ShopDataAlarmResult() void ShopDataAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopDeleteRequest.cc b/cloudwf/src/model/ShopDeleteRequest.cc index 34d953123..c4e7dc2f1 100644 --- a/cloudwf/src/model/ShopDeleteRequest.cc +++ b/cloudwf/src/model/ShopDeleteRequest.cc @@ -33,7 +33,7 @@ std::string ShopDeleteRequest::getAccessKeyId()const void ShopDeleteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopDeleteRequest::getSid()const @@ -44,6 +44,6 @@ long ShopDeleteRequest::getSid()const void ShopDeleteRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopDeleteResult.cc b/cloudwf/src/model/ShopDeleteResult.cc index bcd83b503..218b34401 100644 --- a/cloudwf/src/model/ShopDeleteResult.cc +++ b/cloudwf/src/model/ShopDeleteResult.cc @@ -35,10 +35,13 @@ ShopDeleteResult::~ShopDeleteResult() void ShopDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopDeletemarketingRequest.cc b/cloudwf/src/model/ShopDeletemarketingRequest.cc index 6b7f28a2b..1b653d8cf 100644 --- a/cloudwf/src/model/ShopDeletemarketingRequest.cc +++ b/cloudwf/src/model/ShopDeletemarketingRequest.cc @@ -33,7 +33,7 @@ long ShopDeletemarketingRequest::getId()const void ShopDeletemarketingRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string ShopDeletemarketingRequest::getAccessKeyId()const @@ -44,7 +44,7 @@ std::string ShopDeletemarketingRequest::getAccessKeyId()const void ShopDeletemarketingRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopDeletemarketingRequest::getSid()const @@ -55,6 +55,6 @@ long ShopDeletemarketingRequest::getSid()const void ShopDeletemarketingRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopDeletemarketingResult.cc b/cloudwf/src/model/ShopDeletemarketingResult.cc index 9aa5a50c4..82219e6f3 100644 --- a/cloudwf/src/model/ShopDeletemarketingResult.cc +++ b/cloudwf/src/model/ShopDeletemarketingResult.cc @@ -35,10 +35,13 @@ ShopDeletemarketingResult::~ShopDeletemarketingResult() void ShopDeletemarketingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopGetfiltermacRequest.cc b/cloudwf/src/model/ShopGetfiltermacRequest.cc index b344489c3..471d1cc38 100644 --- a/cloudwf/src/model/ShopGetfiltermacRequest.cc +++ b/cloudwf/src/model/ShopGetfiltermacRequest.cc @@ -33,7 +33,7 @@ std::string ShopGetfiltermacRequest::getAccessKeyId()const void ShopGetfiltermacRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopGetfiltermacRequest::getSid()const @@ -44,6 +44,6 @@ long ShopGetfiltermacRequest::getSid()const void ShopGetfiltermacRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopGetfiltermacResult.cc b/cloudwf/src/model/ShopGetfiltermacResult.cc index 465fd580f..84f8ee6ed 100644 --- a/cloudwf/src/model/ShopGetfiltermacResult.cc +++ b/cloudwf/src/model/ShopGetfiltermacResult.cc @@ -35,10 +35,13 @@ ShopGetfiltermacResult::~ShopGetfiltermacResult() void ShopGetfiltermacResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopGetredressRequest.cc b/cloudwf/src/model/ShopGetredressRequest.cc index 9b015208c..e6ffa2571 100644 --- a/cloudwf/src/model/ShopGetredressRequest.cc +++ b/cloudwf/src/model/ShopGetredressRequest.cc @@ -33,7 +33,7 @@ std::string ShopGetredressRequest::getAccessKeyId()const void ShopGetredressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopGetredressRequest::getSid()const @@ -44,6 +44,6 @@ long ShopGetredressRequest::getSid()const void ShopGetredressRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopGetredressResult.cc b/cloudwf/src/model/ShopGetredressResult.cc index 543b45308..c3faed412 100644 --- a/cloudwf/src/model/ShopGetredressResult.cc +++ b/cloudwf/src/model/ShopGetredressResult.cc @@ -35,10 +35,13 @@ ShopGetredressResult::~ShopGetredressResult() void ShopGetredressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopGroupCreateRequest.cc b/cloudwf/src/model/ShopGroupCreateRequest.cc index cbd33996b..5e431405c 100644 --- a/cloudwf/src/model/ShopGroupCreateRequest.cc +++ b/cloudwf/src/model/ShopGroupCreateRequest.cc @@ -33,7 +33,7 @@ std::string ShopGroupCreateRequest::getShopIds()const void ShopGroupCreateRequest::setShopIds(const std::string& shopIds) { shopIds_ = shopIds; - setParameter("ShopIds", shopIds); + setCoreParameter("ShopIds", shopIds); } std::string ShopGroupCreateRequest::getName()const @@ -44,7 +44,7 @@ std::string ShopGroupCreateRequest::getName()const void ShopGroupCreateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ShopGroupCreateRequest::getDescription()const @@ -55,7 +55,7 @@ std::string ShopGroupCreateRequest::getDescription()const void ShopGroupCreateRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ShopGroupCreateRequest::getBid()const @@ -66,7 +66,7 @@ long ShopGroupCreateRequest::getBid()const void ShopGroupCreateRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string ShopGroupCreateRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ShopGroupCreateRequest::getAccessKeyId()const void ShopGroupCreateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopGroupCreateResult.cc b/cloudwf/src/model/ShopGroupCreateResult.cc index 5a1fb8410..d7582164d 100644 --- a/cloudwf/src/model/ShopGroupCreateResult.cc +++ b/cloudwf/src/model/ShopGroupCreateResult.cc @@ -35,10 +35,13 @@ ShopGroupCreateResult::~ShopGroupCreateResult() void ShopGroupCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopGroupDeleteRequest.cc b/cloudwf/src/model/ShopGroupDeleteRequest.cc index 60f421bbb..637b98670 100644 --- a/cloudwf/src/model/ShopGroupDeleteRequest.cc +++ b/cloudwf/src/model/ShopGroupDeleteRequest.cc @@ -33,7 +33,7 @@ long ShopGroupDeleteRequest::getGid()const void ShopGroupDeleteRequest::setGid(long gid) { gid_ = gid; - setParameter("Gid", std::to_string(gid)); + setCoreParameter("Gid", std::to_string(gid)); } std::string ShopGroupDeleteRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ShopGroupDeleteRequest::getAccessKeyId()const void ShopGroupDeleteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopGroupDeleteResult.cc b/cloudwf/src/model/ShopGroupDeleteResult.cc index 72ea79ab7..1b5b33912 100644 --- a/cloudwf/src/model/ShopGroupDeleteResult.cc +++ b/cloudwf/src/model/ShopGroupDeleteResult.cc @@ -35,10 +35,13 @@ ShopGroupDeleteResult::~ShopGroupDeleteResult() void ShopGroupDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopGroupInfoRequest.cc b/cloudwf/src/model/ShopGroupInfoRequest.cc index 4401e02c5..4fdeaccaf 100644 --- a/cloudwf/src/model/ShopGroupInfoRequest.cc +++ b/cloudwf/src/model/ShopGroupInfoRequest.cc @@ -33,7 +33,7 @@ long ShopGroupInfoRequest::getGid()const void ShopGroupInfoRequest::setGid(long gid) { gid_ = gid; - setParameter("Gid", std::to_string(gid)); + setCoreParameter("Gid", std::to_string(gid)); } std::string ShopGroupInfoRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ShopGroupInfoRequest::getAccessKeyId()const void ShopGroupInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopGroupInfoResult.cc b/cloudwf/src/model/ShopGroupInfoResult.cc index 22187efa7..b27786e10 100644 --- a/cloudwf/src/model/ShopGroupInfoResult.cc +++ b/cloudwf/src/model/ShopGroupInfoResult.cc @@ -35,10 +35,13 @@ ShopGroupInfoResult::~ShopGroupInfoResult() void ShopGroupInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopGroupShowListRequest.cc b/cloudwf/src/model/ShopGroupShowListRequest.cc index 2cbd45a34..1a3cc03ea 100644 --- a/cloudwf/src/model/ShopGroupShowListRequest.cc +++ b/cloudwf/src/model/ShopGroupShowListRequest.cc @@ -33,7 +33,7 @@ int ShopGroupShowListRequest::getPage()const void ShopGroupShowListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } long ShopGroupShowListRequest::getBid()const @@ -44,7 +44,7 @@ long ShopGroupShowListRequest::getBid()const void ShopGroupShowListRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } int ShopGroupShowListRequest::getPer()const @@ -55,7 +55,7 @@ int ShopGroupShowListRequest::getPer()const void ShopGroupShowListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } std::string ShopGroupShowListRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ShopGroupShowListRequest::getAccessKeyId()const void ShopGroupShowListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopGroupShowListResult.cc b/cloudwf/src/model/ShopGroupShowListResult.cc index f0108fc9c..c5930bd4b 100644 --- a/cloudwf/src/model/ShopGroupShowListResult.cc +++ b/cloudwf/src/model/ShopGroupShowListResult.cc @@ -35,10 +35,13 @@ ShopGroupShowListResult::~ShopGroupShowListResult() void ShopGroupShowListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopGroupUpdateRequest.cc b/cloudwf/src/model/ShopGroupUpdateRequest.cc index eda06e7e7..274c94e5f 100644 --- a/cloudwf/src/model/ShopGroupUpdateRequest.cc +++ b/cloudwf/src/model/ShopGroupUpdateRequest.cc @@ -33,7 +33,7 @@ long ShopGroupUpdateRequest::getGid()const void ShopGroupUpdateRequest::setGid(long gid) { gid_ = gid; - setParameter("Gid", std::to_string(gid)); + setCoreParameter("Gid", std::to_string(gid)); } std::string ShopGroupUpdateRequest::getShopIds()const @@ -44,7 +44,7 @@ std::string ShopGroupUpdateRequest::getShopIds()const void ShopGroupUpdateRequest::setShopIds(const std::string& shopIds) { shopIds_ = shopIds; - setParameter("ShopIds", shopIds); + setCoreParameter("ShopIds", shopIds); } std::string ShopGroupUpdateRequest::getName()const @@ -55,7 +55,7 @@ std::string ShopGroupUpdateRequest::getName()const void ShopGroupUpdateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ShopGroupUpdateRequest::getDescription()const @@ -66,7 +66,7 @@ std::string ShopGroupUpdateRequest::getDescription()const void ShopGroupUpdateRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ShopGroupUpdateRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ShopGroupUpdateRequest::getAccessKeyId()const void ShopGroupUpdateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopGroupUpdateResult.cc b/cloudwf/src/model/ShopGroupUpdateResult.cc index f51cb1d33..638b8750d 100644 --- a/cloudwf/src/model/ShopGroupUpdateResult.cc +++ b/cloudwf/src/model/ShopGroupUpdateResult.cc @@ -35,10 +35,13 @@ ShopGroupUpdateResult::~ShopGroupUpdateResult() void ShopGroupUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopInfoRequest.cc b/cloudwf/src/model/ShopInfoRequest.cc index 550f80f3c..3f8d68790 100644 --- a/cloudwf/src/model/ShopInfoRequest.cc +++ b/cloudwf/src/model/ShopInfoRequest.cc @@ -33,7 +33,7 @@ std::string ShopInfoRequest::getAccessKeyId()const void ShopInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopInfoRequest::getSid()const @@ -44,6 +44,6 @@ long ShopInfoRequest::getSid()const void ShopInfoRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopInfoResult.cc b/cloudwf/src/model/ShopInfoResult.cc index e59fd8034..b1f987f7a 100644 --- a/cloudwf/src/model/ShopInfoResult.cc +++ b/cloudwf/src/model/ShopInfoResult.cc @@ -35,10 +35,13 @@ ShopInfoResult::~ShopInfoResult() void ShopInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopMarketingListRequest.cc b/cloudwf/src/model/ShopMarketingListRequest.cc index b5a041271..03d1f010a 100644 --- a/cloudwf/src/model/ShopMarketingListRequest.cc +++ b/cloudwf/src/model/ShopMarketingListRequest.cc @@ -33,7 +33,7 @@ std::string ShopMarketingListRequest::getName()const void ShopMarketingListRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int ShopMarketingListRequest::getPage()const @@ -44,7 +44,7 @@ int ShopMarketingListRequest::getPage()const void ShopMarketingListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } int ShopMarketingListRequest::getPer()const @@ -55,7 +55,7 @@ int ShopMarketingListRequest::getPer()const void ShopMarketingListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } std::string ShopMarketingListRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string ShopMarketingListRequest::getAccessKeyId()const void ShopMarketingListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopMarketingListRequest::getSid()const @@ -77,6 +77,6 @@ long ShopMarketingListRequest::getSid()const void ShopMarketingListRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopMarketingListResult.cc b/cloudwf/src/model/ShopMarketingListResult.cc index 94dc18dc4..b633b8f98 100644 --- a/cloudwf/src/model/ShopMarketingListResult.cc +++ b/cloudwf/src/model/ShopMarketingListResult.cc @@ -35,10 +35,13 @@ ShopMarketingListResult::~ShopMarketingListResult() void ShopMarketingListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopOverviewRequest.cc b/cloudwf/src/model/ShopOverviewRequest.cc index da333a2f9..92c44494f 100644 --- a/cloudwf/src/model/ShopOverviewRequest.cc +++ b/cloudwf/src/model/ShopOverviewRequest.cc @@ -33,7 +33,7 @@ long ShopOverviewRequest::getGsid()const void ShopOverviewRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string ShopOverviewRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ShopOverviewRequest::getAccessKeyId()const void ShopOverviewRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopOverviewResult.cc b/cloudwf/src/model/ShopOverviewResult.cc index b4229874e..ef434fa2e 100644 --- a/cloudwf/src/model/ShopOverviewResult.cc +++ b/cloudwf/src/model/ShopOverviewResult.cc @@ -35,10 +35,13 @@ ShopOverviewResult::~ShopOverviewResult() void ShopOverviewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopSetfiltermacRequest.cc b/cloudwf/src/model/ShopSetfiltermacRequest.cc index c108e083c..48274583c 100644 --- a/cloudwf/src/model/ShopSetfiltermacRequest.cc +++ b/cloudwf/src/model/ShopSetfiltermacRequest.cc @@ -33,7 +33,7 @@ std::string ShopSetfiltermacRequest::getMac()const void ShopSetfiltermacRequest::setMac(const std::string& mac) { mac_ = mac; - setParameter("Mac", mac); + setCoreParameter("Mac", mac); } std::string ShopSetfiltermacRequest::getAccessKeyId()const @@ -44,7 +44,7 @@ std::string ShopSetfiltermacRequest::getAccessKeyId()const void ShopSetfiltermacRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopSetfiltermacRequest::getSid()const @@ -55,6 +55,6 @@ long ShopSetfiltermacRequest::getSid()const void ShopSetfiltermacRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } diff --git a/cloudwf/src/model/ShopSetfiltermacResult.cc b/cloudwf/src/model/ShopSetfiltermacResult.cc index 4a5af8761..7768aec21 100644 --- a/cloudwf/src/model/ShopSetfiltermacResult.cc +++ b/cloudwf/src/model/ShopSetfiltermacResult.cc @@ -35,10 +35,13 @@ ShopSetfiltermacResult::~ShopSetfiltermacResult() void ShopSetfiltermacResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopSetredressRequest.cc b/cloudwf/src/model/ShopSetredressRequest.cc index 1c15facd0..08fabc1b2 100644 --- a/cloudwf/src/model/ShopSetredressRequest.cc +++ b/cloudwf/src/model/ShopSetredressRequest.cc @@ -33,7 +33,7 @@ std::string ShopSetredressRequest::getWorkday()const void ShopSetredressRequest::setWorkday(const std::string& workday) { workday_ = workday; - setParameter("Workday", workday); + setCoreParameter("Workday", workday); } int ShopSetredressRequest::getFilterclose()const @@ -44,7 +44,7 @@ int ShopSetredressRequest::getFilterclose()const void ShopSetredressRequest::setFilterclose(int filterclose) { filterclose_ = filterclose; - setParameter("Filterclose", std::to_string(filterclose)); + setCoreParameter("Filterclose", std::to_string(filterclose)); } int ShopSetredressRequest::getMinstoptime()const @@ -55,7 +55,7 @@ int ShopSetredressRequest::getMinstoptime()const void ShopSetredressRequest::setMinstoptime(int minstoptime) { minstoptime_ = minstoptime; - setParameter("Minstoptime", std::to_string(minstoptime)); + setCoreParameter("Minstoptime", std::to_string(minstoptime)); } std::string ShopSetredressRequest::getHoliday()const @@ -66,7 +66,7 @@ std::string ShopSetredressRequest::getHoliday()const void ShopSetredressRequest::setHoliday(const std::string& holiday) { holiday_ = holiday; - setParameter("Holiday", holiday); + setCoreParameter("Holiday", holiday); } std::string ShopSetredressRequest::getHnum()const @@ -77,7 +77,7 @@ std::string ShopSetredressRequest::getHnum()const void ShopSetredressRequest::setHnum(const std::string& hnum) { hnum_ = hnum; - setParameter("Hnum", hnum); + setCoreParameter("Hnum", hnum); } std::string ShopSetredressRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string ShopSetredressRequest::getAccessKeyId()const void ShopSetredressRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopSetredressRequest::getSid()const @@ -99,7 +99,7 @@ long ShopSetredressRequest::getSid()const void ShopSetredressRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } int ShopSetredressRequest::getClerk()const @@ -110,7 +110,7 @@ int ShopSetredressRequest::getClerk()const void ShopSetredressRequest::setClerk(int clerk) { clerk_ = clerk; - setParameter("Clerk", std::to_string(clerk)); + setCoreParameter("Clerk", std::to_string(clerk)); } int ShopSetredressRequest::getFilterstate()const @@ -121,7 +121,7 @@ int ShopSetredressRequest::getFilterstate()const void ShopSetredressRequest::setFilterstate(int filterstate) { filterstate_ = filterstate; - setParameter("Filterstate", std::to_string(filterstate)); + setCoreParameter("Filterstate", std::to_string(filterstate)); } std::string ShopSetredressRequest::getWnum()const @@ -132,7 +132,7 @@ std::string ShopSetredressRequest::getWnum()const void ShopSetredressRequest::setWnum(const std::string& wnum) { wnum_ = wnum; - setParameter("Wnum", wnum); + setCoreParameter("Wnum", wnum); } int ShopSetredressRequest::getState()const @@ -143,7 +143,7 @@ int ShopSetredressRequest::getState()const void ShopSetredressRequest::setState(int state) { state_ = state; - setParameter("State", std::to_string(state)); + setCoreParameter("State", std::to_string(state)); } int ShopSetredressRequest::getCrowdfixed()const @@ -154,7 +154,7 @@ int ShopSetredressRequest::getCrowdfixed()const void ShopSetredressRequest::setCrowdfixed(int crowdfixed) { crowdfixed_ = crowdfixed; - setParameter("Crowdfixed", std::to_string(crowdfixed)); + setCoreParameter("Crowdfixed", std::to_string(crowdfixed)); } int ShopSetredressRequest::getMaxstoptime()const @@ -165,6 +165,6 @@ int ShopSetredressRequest::getMaxstoptime()const void ShopSetredressRequest::setMaxstoptime(int maxstoptime) { maxstoptime_ = maxstoptime; - setParameter("Maxstoptime", std::to_string(maxstoptime)); + setCoreParameter("Maxstoptime", std::to_string(maxstoptime)); } diff --git a/cloudwf/src/model/ShopSetredressResult.cc b/cloudwf/src/model/ShopSetredressResult.cc index 7ce0b6e02..286565990 100644 --- a/cloudwf/src/model/ShopSetredressResult.cc +++ b/cloudwf/src/model/ShopSetredressResult.cc @@ -35,10 +35,13 @@ ShopSetredressResult::~ShopSetredressResult() void ShopSetredressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopShowListRequest.cc b/cloudwf/src/model/ShopShowListRequest.cc index 1573a7c00..b80be88e6 100644 --- a/cloudwf/src/model/ShopShowListRequest.cc +++ b/cloudwf/src/model/ShopShowListRequest.cc @@ -33,7 +33,7 @@ long ShopShowListRequest::getGid()const void ShopShowListRequest::setGid(long gid) { gid_ = gid; - setParameter("Gid", std::to_string(gid)); + setCoreParameter("Gid", std::to_string(gid)); } std::string ShopShowListRequest::getAddress()const @@ -44,7 +44,7 @@ std::string ShopShowListRequest::getAddress()const void ShopShowListRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string ShopShowListRequest::getName()const @@ -55,7 +55,7 @@ std::string ShopShowListRequest::getName()const void ShopShowListRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ShopShowListRequest::getDirc()const @@ -66,7 +66,7 @@ std::string ShopShowListRequest::getDirc()const void ShopShowListRequest::setDirc(const std::string& dirc) { dirc_ = dirc; - setParameter("Dirc", dirc); + setCoreParameter("Dirc", dirc); } int ShopShowListRequest::getPage()const @@ -77,7 +77,7 @@ int ShopShowListRequest::getPage()const void ShopShowListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } long ShopShowListRequest::getBid()const @@ -88,7 +88,7 @@ long ShopShowListRequest::getBid()const void ShopShowListRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } int ShopShowListRequest::getPer()const @@ -99,7 +99,7 @@ int ShopShowListRequest::getPer()const void ShopShowListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } int ShopShowListRequest::getShopStatus()const @@ -110,7 +110,7 @@ int ShopShowListRequest::getShopStatus()const void ShopShowListRequest::setShopStatus(int shopStatus) { shopStatus_ = shopStatus; - setParameter("ShopStatus", std::to_string(shopStatus)); + setCoreParameter("ShopStatus", std::to_string(shopStatus)); } std::string ShopShowListRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ShopShowListRequest::getAccessKeyId()const void ShopShowListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/ShopShowListResult.cc b/cloudwf/src/model/ShopShowListResult.cc index 09fe005de..6f2eaf86d 100644 --- a/cloudwf/src/model/ShopShowListResult.cc +++ b/cloudwf/src/model/ShopShowListResult.cc @@ -35,10 +35,13 @@ ShopShowListResult::~ShopShowListResult() void ShopShowListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/ShopUpdateRequest.cc b/cloudwf/src/model/ShopUpdateRequest.cc index 7ebbea473..9a72abde4 100644 --- a/cloudwf/src/model/ShopUpdateRequest.cc +++ b/cloudwf/src/model/ShopUpdateRequest.cc @@ -33,7 +33,7 @@ std::string ShopUpdateRequest::getShopCoordinate()const void ShopUpdateRequest::setShopCoordinate(const std::string& shopCoordinate) { shopCoordinate_ = shopCoordinate; - setParameter("ShopCoordinate", shopCoordinate); + setCoreParameter("ShopCoordinate", shopCoordinate); } std::string ShopUpdateRequest::getShopProvince()const @@ -44,7 +44,7 @@ std::string ShopUpdateRequest::getShopProvince()const void ShopUpdateRequest::setShopProvince(const std::string& shopProvince) { shopProvince_ = shopProvince; - setParameter("ShopProvince", shopProvince); + setCoreParameter("ShopProvince", shopProvince); } int ShopUpdateRequest::getShopTopType()const @@ -55,7 +55,7 @@ int ShopUpdateRequest::getShopTopType()const void ShopUpdateRequest::setShopTopType(int shopTopType) { shopTopType_ = shopTopType; - setParameter("ShopTopType", std::to_string(shopTopType)); + setCoreParameter("ShopTopType", std::to_string(shopTopType)); } std::string ShopUpdateRequest::getShopAddress()const @@ -66,7 +66,7 @@ std::string ShopUpdateRequest::getShopAddress()const void ShopUpdateRequest::setShopAddress(const std::string& shopAddress) { shopAddress_ = shopAddress; - setParameter("ShopAddress", shopAddress); + setCoreParameter("ShopAddress", shopAddress); } int ShopUpdateRequest::getShopType()const @@ -77,7 +77,7 @@ int ShopUpdateRequest::getShopType()const void ShopUpdateRequest::setShopType(int shopType) { shopType_ = shopType; - setParameter("ShopType", std::to_string(shopType)); + setCoreParameter("ShopType", std::to_string(shopType)); } std::string ShopUpdateRequest::getWarnEmail()const @@ -88,7 +88,7 @@ std::string ShopUpdateRequest::getWarnEmail()const void ShopUpdateRequest::setWarnEmail(const std::string& warnEmail) { warnEmail_ = warnEmail; - setParameter("WarnEmail", warnEmail); + setCoreParameter("WarnEmail", warnEmail); } std::string ShopUpdateRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ShopUpdateRequest::getAccessKeyId()const void ShopUpdateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long ShopUpdateRequest::getSid()const @@ -110,7 +110,7 @@ long ShopUpdateRequest::getSid()const void ShopUpdateRequest::setSid(long sid) { sid_ = sid; - setParameter("Sid", std::to_string(sid)); + setCoreParameter("Sid", std::to_string(sid)); } std::string ShopUpdateRequest::getShopTel()const @@ -121,7 +121,7 @@ std::string ShopUpdateRequest::getShopTel()const void ShopUpdateRequest::setShopTel(const std::string& shopTel) { shopTel_ = shopTel; - setParameter("ShopTel", shopTel); + setCoreParameter("ShopTel", shopTel); } std::string ShopUpdateRequest::getWarnpHone()const @@ -132,7 +132,7 @@ std::string ShopUpdateRequest::getWarnpHone()const void ShopUpdateRequest::setWarnpHone(const std::string& warnpHone) { warnpHone_ = warnpHone; - setParameter("WarnpHone", warnpHone); + setCoreParameter("WarnpHone", warnpHone); } int ShopUpdateRequest::getWarn()const @@ -143,7 +143,7 @@ int ShopUpdateRequest::getWarn()const void ShopUpdateRequest::setWarn(int warn) { warn_ = warn; - setParameter("Warn", std::to_string(warn)); + setCoreParameter("Warn", std::to_string(warn)); } int ShopUpdateRequest::getShopArea()const @@ -154,7 +154,7 @@ int ShopUpdateRequest::getShopArea()const void ShopUpdateRequest::setShopArea(int shopArea) { shopArea_ = shopArea; - setParameter("ShopArea", std::to_string(shopArea)); + setCoreParameter("ShopArea", std::to_string(shopArea)); } std::string ShopUpdateRequest::getShopRemarks()const @@ -165,7 +165,7 @@ std::string ShopUpdateRequest::getShopRemarks()const void ShopUpdateRequest::setShopRemarks(const std::string& shopRemarks) { shopRemarks_ = shopRemarks; - setParameter("ShopRemarks", shopRemarks); + setCoreParameter("ShopRemarks", shopRemarks); } std::string ShopUpdateRequest::getShopCity()const @@ -176,7 +176,7 @@ std::string ShopUpdateRequest::getShopCity()const void ShopUpdateRequest::setShopCity(const std::string& shopCity) { shopCity_ = shopCity; - setParameter("ShopCity", shopCity); + setCoreParameter("ShopCity", shopCity); } int ShopUpdateRequest::getShopSubtype()const @@ -187,7 +187,7 @@ int ShopUpdateRequest::getShopSubtype()const void ShopUpdateRequest::setShopSubtype(int shopSubtype) { shopSubtype_ = shopSubtype; - setParameter("ShopSubtype", std::to_string(shopSubtype)); + setCoreParameter("ShopSubtype", std::to_string(shopSubtype)); } std::string ShopUpdateRequest::getShopBrand()const @@ -198,7 +198,7 @@ std::string ShopUpdateRequest::getShopBrand()const void ShopUpdateRequest::setShopBrand(const std::string& shopBrand) { shopBrand_ = shopBrand; - setParameter("ShopBrand", shopBrand); + setCoreParameter("ShopBrand", shopBrand); } std::string ShopUpdateRequest::getShopName()const @@ -209,7 +209,7 @@ std::string ShopUpdateRequest::getShopName()const void ShopUpdateRequest::setShopName(const std::string& shopName) { shopName_ = shopName; - setParameter("ShopName", shopName); + setCoreParameter("ShopName", shopName); } int ShopUpdateRequest::getShopCloseWarn()const @@ -220,7 +220,7 @@ int ShopUpdateRequest::getShopCloseWarn()const void ShopUpdateRequest::setShopCloseWarn(int shopCloseWarn) { shopCloseWarn_ = shopCloseWarn; - setParameter("ShopCloseWarn", std::to_string(shopCloseWarn)); + setCoreParameter("ShopCloseWarn", std::to_string(shopCloseWarn)); } std::string ShopUpdateRequest::getShopManager()const @@ -231,7 +231,7 @@ std::string ShopUpdateRequest::getShopManager()const void ShopUpdateRequest::setShopManager(const std::string& shopManager) { shopManager_ = shopManager; - setParameter("ShopManager", shopManager); + setCoreParameter("ShopManager", shopManager); } std::string ShopUpdateRequest::getShopBusinessHours()const @@ -242,6 +242,6 @@ std::string ShopUpdateRequest::getShopBusinessHours()const void ShopUpdateRequest::setShopBusinessHours(const std::string& shopBusinessHours) { shopBusinessHours_ = shopBusinessHours; - setParameter("ShopBusinessHours", shopBusinessHours); + setCoreParameter("ShopBusinessHours", shopBusinessHours); } diff --git a/cloudwf/src/model/ShopUpdateResult.cc b/cloudwf/src/model/ShopUpdateResult.cc index 6b24849c2..0c3b284b1 100644 --- a/cloudwf/src/model/ShopUpdateResult.cc +++ b/cloudwf/src/model/ShopUpdateResult.cc @@ -35,10 +35,13 @@ ShopUpdateResult::~ShopUpdateResult() void ShopUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UpLoadMapRequest.cc b/cloudwf/src/model/UpLoadMapRequest.cc index 272c7960f..b7141694e 100644 --- a/cloudwf/src/model/UpLoadMapRequest.cc +++ b/cloudwf/src/model/UpLoadMapRequest.cc @@ -33,7 +33,7 @@ std::string UpLoadMapRequest::getFileName()const void UpLoadMapRequest::setFileName(const std::string& fileName) { fileName_ = fileName; - setParameter("FileName", fileName); + setCoreParameter("FileName", fileName); } std::string UpLoadMapRequest::getUploadId()const @@ -44,7 +44,7 @@ std::string UpLoadMapRequest::getUploadId()const void UpLoadMapRequest::setUploadId(const std::string& uploadId) { uploadId_ = uploadId; - setParameter("UploadId", uploadId); + setCoreParameter("UploadId", uploadId); } std::string UpLoadMapRequest::getObjectName()const @@ -55,7 +55,7 @@ std::string UpLoadMapRequest::getObjectName()const void UpLoadMapRequest::setObjectName(const std::string& objectName) { objectName_ = objectName; - setParameter("ObjectName", objectName); + setCoreParameter("ObjectName", objectName); } int UpLoadMapRequest::getChunkIndex()const @@ -66,7 +66,7 @@ int UpLoadMapRequest::getChunkIndex()const void UpLoadMapRequest::setChunkIndex(int chunkIndex) { chunkIndex_ = chunkIndex; - setParameter("ChunkIndex", std::to_string(chunkIndex)); + setCoreParameter("ChunkIndex", std::to_string(chunkIndex)); } std::string UpLoadMapRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string UpLoadMapRequest::getAccessKeyId()const void UpLoadMapRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int UpLoadMapRequest::getChunkCnt()const @@ -88,6 +88,6 @@ int UpLoadMapRequest::getChunkCnt()const void UpLoadMapRequest::setChunkCnt(int chunkCnt) { chunkCnt_ = chunkCnt; - setParameter("ChunkCnt", std::to_string(chunkCnt)); + setCoreParameter("ChunkCnt", std::to_string(chunkCnt)); } diff --git a/cloudwf/src/model/UpLoadMapResult.cc b/cloudwf/src/model/UpLoadMapResult.cc index 5c0f953dd..20f699796 100644 --- a/cloudwf/src/model/UpLoadMapResult.cc +++ b/cloudwf/src/model/UpLoadMapResult.cc @@ -35,10 +35,13 @@ UpLoadMapResult::~UpLoadMapResult() void UpLoadMapResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UpgradeAPGroupRequest.cc b/cloudwf/src/model/UpgradeAPGroupRequest.cc index 0b123247a..6e87bc59d 100644 --- a/cloudwf/src/model/UpgradeAPGroupRequest.cc +++ b/cloudwf/src/model/UpgradeAPGroupRequest.cc @@ -34,7 +34,7 @@ void UpgradeAPGroupRequest::setIds(const std::vector& ids) { ids_ = ids; for(int i = 0; i!= ids.size(); i++) - setParameter("Ids."+ std::to_string(i), std::to_string(ids.at(i))); + setCoreParameter("Ids."+ std::to_string(i), std::to_string(ids.at(i))); } std::string UpgradeAPGroupRequest::getAccessKeyId()const @@ -45,6 +45,6 @@ std::string UpgradeAPGroupRequest::getAccessKeyId()const void UpgradeAPGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/UpgradeAPGroupResult.cc b/cloudwf/src/model/UpgradeAPGroupResult.cc index 9daa4d746..601372903 100644 --- a/cloudwf/src/model/UpgradeAPGroupResult.cc +++ b/cloudwf/src/model/UpgradeAPGroupResult.cc @@ -35,10 +35,13 @@ UpgradeAPGroupResult::~UpgradeAPGroupResult() void UpgradeAPGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UpgradeAPRequest.cc b/cloudwf/src/model/UpgradeAPRequest.cc index 0cef22950..e4ae6902d 100644 --- a/cloudwf/src/model/UpgradeAPRequest.cc +++ b/cloudwf/src/model/UpgradeAPRequest.cc @@ -34,7 +34,7 @@ void UpgradeAPRequest::setIds(const std::vector& ids) { ids_ = ids; for(int i = 0; i!= ids.size(); i++) - setParameter("Ids."+ std::to_string(i), std::to_string(ids.at(i))); + setCoreParameter("Ids."+ std::to_string(i), std::to_string(ids.at(i))); } std::string UpgradeAPRequest::getAccessKeyId()const @@ -45,6 +45,6 @@ std::string UpgradeAPRequest::getAccessKeyId()const void UpgradeAPRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/UpgradeAPResult.cc b/cloudwf/src/model/UpgradeAPResult.cc index 5a11f1436..e5d00d79f 100644 --- a/cloudwf/src/model/UpgradeAPResult.cc +++ b/cloudwf/src/model/UpgradeAPResult.cc @@ -35,10 +35,13 @@ UpgradeAPResult::~UpgradeAPResult() void UpgradeAPResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UserAnalyseRequest.cc b/cloudwf/src/model/UserAnalyseRequest.cc index 8a92cc5ce..108c2b3e3 100644 --- a/cloudwf/src/model/UserAnalyseRequest.cc +++ b/cloudwf/src/model/UserAnalyseRequest.cc @@ -33,7 +33,7 @@ long UserAnalyseRequest::getGsid()const void UserAnalyseRequest::setGsid(long gsid) { gsid_ = gsid; - setParameter("Gsid", std::to_string(gsid)); + setCoreParameter("Gsid", std::to_string(gsid)); } std::string UserAnalyseRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string UserAnalyseRequest::getAccessKeyId()const void UserAnalyseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/UserAnalyseResult.cc b/cloudwf/src/model/UserAnalyseResult.cc index e8184fb35..deeb25b07 100644 --- a/cloudwf/src/model/UserAnalyseResult.cc +++ b/cloudwf/src/model/UserAnalyseResult.cc @@ -35,10 +35,13 @@ UserAnalyseResult::~UserAnalyseResult() void UserAnalyseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UserDataCreateRequest.cc b/cloudwf/src/model/UserDataCreateRequest.cc index fdbaf4874..57d395e83 100644 --- a/cloudwf/src/model/UserDataCreateRequest.cc +++ b/cloudwf/src/model/UserDataCreateRequest.cc @@ -33,7 +33,7 @@ std::string UserDataCreateRequest::getUploadFile()const void UserDataCreateRequest::setUploadFile(const std::string& uploadFile) { uploadFile_ = uploadFile; - setParameter("UploadFile", uploadFile); + setCoreParameter("UploadFile", uploadFile); } std::string UserDataCreateRequest::getName()const @@ -44,7 +44,7 @@ std::string UserDataCreateRequest::getName()const void UserDataCreateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long UserDataCreateRequest::getBid()const @@ -55,7 +55,7 @@ long UserDataCreateRequest::getBid()const void UserDataCreateRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string UserDataCreateRequest::getType()const @@ -66,7 +66,7 @@ std::string UserDataCreateRequest::getType()const void UserDataCreateRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string UserDataCreateRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string UserDataCreateRequest::getAccessKeyId()const void UserDataCreateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/UserDataCreateResult.cc b/cloudwf/src/model/UserDataCreateResult.cc index e2f1de6a0..890d89a68 100644 --- a/cloudwf/src/model/UserDataCreateResult.cc +++ b/cloudwf/src/model/UserDataCreateResult.cc @@ -35,10 +35,13 @@ UserDataCreateResult::~UserDataCreateResult() void UserDataCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UserDataDeleteRequest.cc b/cloudwf/src/model/UserDataDeleteRequest.cc index 68b59d263..59a0a4773 100644 --- a/cloudwf/src/model/UserDataDeleteRequest.cc +++ b/cloudwf/src/model/UserDataDeleteRequest.cc @@ -33,7 +33,7 @@ long UserDataDeleteRequest::getIid()const void UserDataDeleteRequest::setIid(long iid) { iid_ = iid; - setParameter("Iid", std::to_string(iid)); + setCoreParameter("Iid", std::to_string(iid)); } long UserDataDeleteRequest::getBid()const @@ -44,7 +44,7 @@ long UserDataDeleteRequest::getBid()const void UserDataDeleteRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string UserDataDeleteRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string UserDataDeleteRequest::getAccessKeyId()const void UserDataDeleteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/UserDataDeleteResult.cc b/cloudwf/src/model/UserDataDeleteResult.cc index e77fb153d..bbccfbf81 100644 --- a/cloudwf/src/model/UserDataDeleteResult.cc +++ b/cloudwf/src/model/UserDataDeleteResult.cc @@ -35,10 +35,13 @@ UserDataDeleteResult::~UserDataDeleteResult() void UserDataDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UserDataShowListRequest.cc b/cloudwf/src/model/UserDataShowListRequest.cc index b7be600c7..d9d9c2150 100644 --- a/cloudwf/src/model/UserDataShowListRequest.cc +++ b/cloudwf/src/model/UserDataShowListRequest.cc @@ -33,7 +33,7 @@ long UserDataShowListRequest::getIid()const void UserDataShowListRequest::setIid(long iid) { iid_ = iid; - setParameter("Iid", std::to_string(iid)); + setCoreParameter("Iid", std::to_string(iid)); } std::string UserDataShowListRequest::getName()const @@ -44,7 +44,7 @@ std::string UserDataShowListRequest::getName()const void UserDataShowListRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int UserDataShowListRequest::getPage()const @@ -55,7 +55,7 @@ int UserDataShowListRequest::getPage()const void UserDataShowListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } long UserDataShowListRequest::getBid()const @@ -66,7 +66,7 @@ long UserDataShowListRequest::getBid()const void UserDataShowListRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } int UserDataShowListRequest::getPer()const @@ -77,7 +77,7 @@ int UserDataShowListRequest::getPer()const void UserDataShowListRequest::setPer(int per) { per_ = per; - setParameter("Per", std::to_string(per)); + setCoreParameter("Per", std::to_string(per)); } std::string UserDataShowListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string UserDataShowListRequest::getAccessKeyId()const void UserDataShowListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/UserDataShowListResult.cc b/cloudwf/src/model/UserDataShowListResult.cc index a73954fee..ed8f75382 100644 --- a/cloudwf/src/model/UserDataShowListResult.cc +++ b/cloudwf/src/model/UserDataShowListResult.cc @@ -35,10 +35,13 @@ UserDataShowListResult::~UserDataShowListResult() void UserDataShowListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cloudwf/src/model/UserDataUpdateRequest.cc b/cloudwf/src/model/UserDataUpdateRequest.cc index cbe6b8f92..8a7573760 100644 --- a/cloudwf/src/model/UserDataUpdateRequest.cc +++ b/cloudwf/src/model/UserDataUpdateRequest.cc @@ -33,7 +33,7 @@ long UserDataUpdateRequest::getIid()const void UserDataUpdateRequest::setIid(long iid) { iid_ = iid; - setParameter("Iid", std::to_string(iid)); + setCoreParameter("Iid", std::to_string(iid)); } std::string UserDataUpdateRequest::getUploadFile()const @@ -44,7 +44,7 @@ std::string UserDataUpdateRequest::getUploadFile()const void UserDataUpdateRequest::setUploadFile(const std::string& uploadFile) { uploadFile_ = uploadFile; - setParameter("UploadFile", uploadFile); + setCoreParameter("UploadFile", uploadFile); } std::string UserDataUpdateRequest::getName()const @@ -55,7 +55,7 @@ std::string UserDataUpdateRequest::getName()const void UserDataUpdateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long UserDataUpdateRequest::getBid()const @@ -66,7 +66,7 @@ long UserDataUpdateRequest::getBid()const void UserDataUpdateRequest::setBid(long bid) { bid_ = bid; - setParameter("Bid", std::to_string(bid)); + setCoreParameter("Bid", std::to_string(bid)); } std::string UserDataUpdateRequest::getType()const @@ -77,7 +77,7 @@ std::string UserDataUpdateRequest::getType()const void UserDataUpdateRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string UserDataUpdateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string UserDataUpdateRequest::getAccessKeyId()const void UserDataUpdateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cloudwf/src/model/UserDataUpdateResult.cc b/cloudwf/src/model/UserDataUpdateResult.cc index a9c85d08f..06561c0ca 100644 --- a/cloudwf/src/model/UserDataUpdateResult.cc +++ b/cloudwf/src/model/UserDataUpdateResult.cc @@ -35,10 +35,13 @@ UserDataUpdateResult::~UserDataUpdateResult() void UserDataUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/CMakeLists.txt b/cms/CMakeLists.txt index 54a8b6100..a0040f680 100644 --- a/cms/CMakeLists.txt +++ b/cms/CMakeLists.txt @@ -27,26 +27,28 @@ set(cms_public_header_model include/alibabacloud/cms/model/DeleteCustomMetricResult.h include/alibabacloud/cms/model/DisableEventRuleRequest.h include/alibabacloud/cms/model/DisableEventRuleResult.h - include/alibabacloud/cms/model/DescribeEventRuleRequest.h - include/alibabacloud/cms/model/DescribeEventRuleResult.h include/alibabacloud/cms/model/StartTasksRequest.h include/alibabacloud/cms/model/StartTasksResult.h + include/alibabacloud/cms/model/DescribeEventRuleRequest.h + include/alibabacloud/cms/model/DescribeEventRuleResult.h include/alibabacloud/cms/model/DescribeISPAreaCityRequest.h include/alibabacloud/cms/model/DescribeISPAreaCityResult.h + include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h + include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h include/alibabacloud/cms/model/QueryCustomEventCountRequest.h include/alibabacloud/cms/model/QueryCustomEventCountResult.h - include/alibabacloud/cms/model/ListEventRulesRequest.h - include/alibabacloud/cms/model/ListEventRulesResult.h include/alibabacloud/cms/model/UpdateMyGroupInstancesRequest.h include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h + include/alibabacloud/cms/model/ListEventRulesRequest.h + include/alibabacloud/cms/model/ListEventRulesResult.h include/alibabacloud/cms/model/ProfileGetRequest.h include/alibabacloud/cms/model/ProfileGetResult.h include/alibabacloud/cms/model/PutEventTargetsRequest.h include/alibabacloud/cms/model/PutEventTargetsResult.h - include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h - include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.h include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.h + include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h + include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h include/alibabacloud/cms/model/PutEventRuleRequest.h include/alibabacloud/cms/model/PutEventRuleResult.h include/alibabacloud/cms/model/NodeListRequest.h @@ -55,6 +57,8 @@ set(cms_public_header_model include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h include/alibabacloud/cms/model/NodeProcessesRequest.h include/alibabacloud/cms/model/NodeProcessesResult.h + include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h + include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h include/alibabacloud/cms/model/QueryMetricListRequest.h @@ -67,20 +71,22 @@ set(cms_public_header_model include/alibabacloud/cms/model/PutCustomMetricResult.h include/alibabacloud/cms/model/QueryMetricLastRequest.h include/alibabacloud/cms/model/QueryMetricLastResult.h + include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h + include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h include/alibabacloud/cms/model/QuerySystemEventHistogramRequest.h include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h include/alibabacloud/cms/model/DeleteEventRuleRequest.h include/alibabacloud/cms/model/DeleteEventRuleResult.h - include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h - include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h include/alibabacloud/cms/model/DeleteEventTargetsRequest.h include/alibabacloud/cms/model/DeleteEventTargetsResult.h + include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h + include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h - include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h - include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.h include/alibabacloud/cms/model/CreateMonitoringTemplateResult.h + include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h + include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h include/alibabacloud/cms/model/CreateMyGroupsRequest.h include/alibabacloud/cms/model/CreateMyGroupsResult.h include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h @@ -103,6 +109,8 @@ set(cms_public_header_model include/alibabacloud/cms/model/QueryMetricDataResult.h include/alibabacloud/cms/model/DisableActiveAlertRequest.h include/alibabacloud/cms/model/DisableActiveAlertResult.h + include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h + include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h include/alibabacloud/cms/model/PutEventRequest.h include/alibabacloud/cms/model/PutEventResult.h include/alibabacloud/cms/model/QueryCustomEventHistogramRequest.h @@ -125,16 +133,18 @@ set(cms_public_header_model include/alibabacloud/cms/model/ModifyTaskResult.h include/alibabacloud/cms/model/TaskConfigDeleteRequest.h include/alibabacloud/cms/model/TaskConfigDeleteResult.h - include/alibabacloud/cms/model/QueryCustomEventDetailRequest.h - include/alibabacloud/cms/model/QueryCustomEventDetailResult.h include/alibabacloud/cms/model/NodeProcessCreateRequest.h include/alibabacloud/cms/model/NodeProcessCreateResult.h + include/alibabacloud/cms/model/QueryCustomEventDetailRequest.h + include/alibabacloud/cms/model/QueryCustomEventDetailResult.h include/alibabacloud/cms/model/TaskConfigEnableRequest.h include/alibabacloud/cms/model/TaskConfigEnableResult.h include/alibabacloud/cms/model/QueryMetricMetaRequest.h include/alibabacloud/cms/model/QueryMetricMetaResult.h include/alibabacloud/cms/model/TaskConfigCreateRequest.h include/alibabacloud/cms/model/TaskConfigCreateResult.h + include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h + include/alibabacloud/cms/model/PutMetricRuleTargetsResult.h include/alibabacloud/cms/model/GetNotifyPolicyRequest.h include/alibabacloud/cms/model/GetNotifyPolicyResult.h include/alibabacloud/cms/model/NodeUninstallRequest.h @@ -145,14 +155,14 @@ set(cms_public_header_model include/alibabacloud/cms/model/EnableEventRuleResult.h include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.h include/alibabacloud/cms/model/ListEventTargetsByRuleResult.h - include/alibabacloud/cms/model/DescribeTaskDetailRequest.h - include/alibabacloud/cms/model/DescribeTaskDetailResult.h include/alibabacloud/cms/model/QueryMonitorDataRequest.h include/alibabacloud/cms/model/QueryMonitorDataResult.h - include/alibabacloud/cms/model/QueryCustomMetricListRequest.h - include/alibabacloud/cms/model/QueryCustomMetricListResult.h + include/alibabacloud/cms/model/DescribeTaskDetailRequest.h + include/alibabacloud/cms/model/DescribeTaskDetailResult.h include/alibabacloud/cms/model/ApplyTemplateRequest.h include/alibabacloud/cms/model/ApplyTemplateResult.h + include/alibabacloud/cms/model/QueryCustomMetricListRequest.h + include/alibabacloud/cms/model/QueryCustomMetricListResult.h include/alibabacloud/cms/model/EnableActiveAlertRequest.h include/alibabacloud/cms/model/EnableActiveAlertResult.h include/alibabacloud/cms/model/QuerySystemEventDetailRequest.h @@ -167,10 +177,10 @@ set(cms_public_header_model include/alibabacloud/cms/model/GetMonitoringTemplateResult.h include/alibabacloud/cms/model/ListMyGroupCategoriesRequest.h include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h - include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h - include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h include/alibabacloud/cms/model/CreateTaskRequest.h include/alibabacloud/cms/model/CreateTaskResult.h + include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h + include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h include/alibabacloud/cms/model/DeleteMyGroupsRequest.h @@ -193,10 +203,10 @@ set(cms_public_header_model include/alibabacloud/cms/model/CreateAlarmResult.h include/alibabacloud/cms/model/ListMyGroupsRequest.h include/alibabacloud/cms/model/ListMyGroupsResult.h - include/alibabacloud/cms/model/AddMyGroupInstancesRequest.h - include/alibabacloud/cms/model/AddMyGroupInstancesResult.h include/alibabacloud/cms/model/SendDryRunSystemEventRequest.h include/alibabacloud/cms/model/SendDryRunSystemEventResult.h + include/alibabacloud/cms/model/AddMyGroupInstancesRequest.h + include/alibabacloud/cms/model/AddMyGroupInstancesResult.h include/alibabacloud/cms/model/NodeProcessDeleteRequest.h include/alibabacloud/cms/model/NodeProcessDeleteResult.h include/alibabacloud/cms/model/UpdateMyGroupsRequest.h @@ -211,6 +221,8 @@ set(cms_public_header_model include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h + include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h + include/alibabacloud/cms/model/DescribeMetricRuleTargetsResult.h include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h include/alibabacloud/cms/model/ListAlarmRequest.h @@ -225,10 +237,10 @@ set(cms_public_header_model include/alibabacloud/cms/model/NodeStatusListResult.h include/alibabacloud/cms/model/ListContactGroupRequest.h include/alibabacloud/cms/model/ListContactGroupResult.h - include/alibabacloud/cms/model/DescribeContactRequest.h - include/alibabacloud/cms/model/DescribeContactResult.h include/alibabacloud/cms/model/PutMetricAlarmRequest.h include/alibabacloud/cms/model/PutMetricAlarmResult.h + include/alibabacloud/cms/model/DescribeContactRequest.h + include/alibabacloud/cms/model/DescribeContactResult.h include/alibabacloud/cms/model/ListNotifyPolicyRequest.h include/alibabacloud/cms/model/ListNotifyPolicyResult.h include/alibabacloud/cms/model/EnableAlarmRequest.h @@ -242,26 +254,28 @@ set(cms_src src/model/DeleteCustomMetricResult.cc src/model/DisableEventRuleRequest.cc src/model/DisableEventRuleResult.cc - src/model/DescribeEventRuleRequest.cc - src/model/DescribeEventRuleResult.cc src/model/StartTasksRequest.cc src/model/StartTasksResult.cc + src/model/DescribeEventRuleRequest.cc + src/model/DescribeEventRuleResult.cc src/model/DescribeISPAreaCityRequest.cc src/model/DescribeISPAreaCityResult.cc + src/model/RemoveMetricRuleTargetsRequest.cc + src/model/RemoveMetricRuleTargetsResult.cc src/model/QueryCustomEventCountRequest.cc src/model/QueryCustomEventCountResult.cc - src/model/ListEventRulesRequest.cc - src/model/ListEventRulesResult.cc src/model/UpdateMyGroupInstancesRequest.cc src/model/UpdateMyGroupInstancesResult.cc + src/model/ListEventRulesRequest.cc + src/model/ListEventRulesResult.cc src/model/ProfileGetRequest.cc src/model/ProfileGetResult.cc src/model/PutEventTargetsRequest.cc src/model/PutEventTargetsResult.cc - src/model/PutGroupDynamicRuleRequest.cc - src/model/PutGroupDynamicRuleResult.cc src/model/UpdateMonitoringTemplateRequest.cc src/model/UpdateMonitoringTemplateResult.cc + src/model/PutGroupDynamicRuleRequest.cc + src/model/PutGroupDynamicRuleResult.cc src/model/PutEventRuleRequest.cc src/model/PutEventRuleResult.cc src/model/NodeListRequest.cc @@ -270,6 +284,8 @@ set(cms_src src/model/QueryStaticsAvailabilityResult.cc src/model/NodeProcessesRequest.cc src/model/NodeProcessesResult.cc + src/model/DescribeSiteMonitorISPCityListRequest.cc + src/model/DescribeSiteMonitorISPCityListResult.cc src/model/ListMonitoringTemplatesRequest.cc src/model/ListMonitoringTemplatesResult.cc src/model/QueryMetricListRequest.cc @@ -282,20 +298,22 @@ set(cms_src src/model/PutCustomMetricResult.cc src/model/QueryMetricLastRequest.cc src/model/QueryMetricLastResult.cc + src/model/DescribeAlertHistoryListRequest.cc + src/model/DescribeAlertHistoryListResult.cc src/model/QuerySystemEventHistogramRequest.cc src/model/QuerySystemEventHistogramResult.cc src/model/DeleteEventRuleRequest.cc src/model/DeleteEventRuleResult.cc - src/model/TaskConfigUnhealthyRequest.cc - src/model/TaskConfigUnhealthyResult.cc src/model/DeleteEventTargetsRequest.cc src/model/DeleteEventTargetsResult.cc + src/model/TaskConfigUnhealthyRequest.cc + src/model/TaskConfigUnhealthyResult.cc src/model/ListProductOfActiveAlertRequest.cc src/model/ListProductOfActiveAlertResult.cc - src/model/UpdateMyGroupAlertRequest.cc - src/model/UpdateMyGroupAlertResult.cc src/model/CreateMonitoringTemplateRequest.cc src/model/CreateMonitoringTemplateResult.cc + src/model/UpdateMyGroupAlertRequest.cc + src/model/UpdateMyGroupAlertResult.cc src/model/CreateMyGroupsRequest.cc src/model/CreateMyGroupsResult.cc src/model/CreateMyGroupAlertBatchRequest.cc @@ -318,6 +336,8 @@ set(cms_src src/model/QueryMetricDataResult.cc src/model/DisableActiveAlertRequest.cc src/model/DisableActiveAlertResult.cc + src/model/DescribeSiteMonitorISPAreaCityRequest.cc + src/model/DescribeSiteMonitorISPAreaCityResult.cc src/model/PutEventRequest.cc src/model/PutEventResult.cc src/model/QueryCustomEventHistogramRequest.cc @@ -340,16 +360,18 @@ set(cms_src src/model/ModifyTaskResult.cc src/model/TaskConfigDeleteRequest.cc src/model/TaskConfigDeleteResult.cc - src/model/QueryCustomEventDetailRequest.cc - src/model/QueryCustomEventDetailResult.cc src/model/NodeProcessCreateRequest.cc src/model/NodeProcessCreateResult.cc + src/model/QueryCustomEventDetailRequest.cc + src/model/QueryCustomEventDetailResult.cc src/model/TaskConfigEnableRequest.cc src/model/TaskConfigEnableResult.cc src/model/QueryMetricMetaRequest.cc src/model/QueryMetricMetaResult.cc src/model/TaskConfigCreateRequest.cc src/model/TaskConfigCreateResult.cc + src/model/PutMetricRuleTargetsRequest.cc + src/model/PutMetricRuleTargetsResult.cc src/model/GetNotifyPolicyRequest.cc src/model/GetNotifyPolicyResult.cc src/model/NodeUninstallRequest.cc @@ -360,14 +382,14 @@ set(cms_src src/model/EnableEventRuleResult.cc src/model/ListEventTargetsByRuleRequest.cc src/model/ListEventTargetsByRuleResult.cc - src/model/DescribeTaskDetailRequest.cc - src/model/DescribeTaskDetailResult.cc src/model/QueryMonitorDataRequest.cc src/model/QueryMonitorDataResult.cc - src/model/QueryCustomMetricListRequest.cc - src/model/QueryCustomMetricListResult.cc + src/model/DescribeTaskDetailRequest.cc + src/model/DescribeTaskDetailResult.cc src/model/ApplyTemplateRequest.cc src/model/ApplyTemplateResult.cc + src/model/QueryCustomMetricListRequest.cc + src/model/QueryCustomMetricListResult.cc src/model/EnableActiveAlertRequest.cc src/model/EnableActiveAlertResult.cc src/model/QuerySystemEventDetailRequest.cc @@ -382,10 +404,10 @@ set(cms_src src/model/GetMonitoringTemplateResult.cc src/model/ListMyGroupCategoriesRequest.cc src/model/ListMyGroupCategoriesResult.cc - src/model/DeleteGroupDynamicRuleRequest.cc - src/model/DeleteGroupDynamicRuleResult.cc src/model/CreateTaskRequest.cc src/model/CreateTaskResult.cc + src/model/DeleteGroupDynamicRuleRequest.cc + src/model/DeleteGroupDynamicRuleResult.cc src/model/ListMyGroupInstancesDetailsRequest.cc src/model/ListMyGroupInstancesDetailsResult.cc src/model/DeleteMyGroupsRequest.cc @@ -408,10 +430,10 @@ set(cms_src src/model/CreateAlarmResult.cc src/model/ListMyGroupsRequest.cc src/model/ListMyGroupsResult.cc - src/model/AddMyGroupInstancesRequest.cc - src/model/AddMyGroupInstancesResult.cc src/model/SendDryRunSystemEventRequest.cc src/model/SendDryRunSystemEventResult.cc + src/model/AddMyGroupInstancesRequest.cc + src/model/AddMyGroupInstancesResult.cc src/model/NodeProcessDeleteRequest.cc src/model/NodeProcessDeleteResult.cc src/model/UpdateMyGroupsRequest.cc @@ -426,6 +448,8 @@ set(cms_src src/model/UpdateMyGroupMembersResult.cc src/model/QueryStaticsErrorRateRequest.cc src/model/QueryStaticsErrorRateResult.cc + src/model/DescribeMetricRuleTargetsRequest.cc + src/model/DescribeMetricRuleTargetsResult.cc src/model/ListGroupDynamicRuleRequest.cc src/model/ListGroupDynamicRuleResult.cc src/model/ListAlarmRequest.cc @@ -440,10 +464,10 @@ set(cms_src src/model/NodeStatusListResult.cc src/model/ListContactGroupRequest.cc src/model/ListContactGroupResult.cc - src/model/DescribeContactRequest.cc - src/model/DescribeContactResult.cc src/model/PutMetricAlarmRequest.cc src/model/PutMetricAlarmResult.cc + src/model/DescribeContactRequest.cc + src/model/DescribeContactResult.cc src/model/ListNotifyPolicyRequest.cc src/model/ListNotifyPolicyResult.cc src/model/EnableAlarmRequest.cc diff --git a/cms/include/alibabacloud/cms/CmsClient.h b/cms/include/alibabacloud/cms/CmsClient.h index b9972732d..b9c46901d 100644 --- a/cms/include/alibabacloud/cms/CmsClient.h +++ b/cms/include/alibabacloud/cms/CmsClient.h @@ -28,26 +28,28 @@ #include "model/DeleteCustomMetricResult.h" #include "model/DisableEventRuleRequest.h" #include "model/DisableEventRuleResult.h" -#include "model/DescribeEventRuleRequest.h" -#include "model/DescribeEventRuleResult.h" #include "model/StartTasksRequest.h" #include "model/StartTasksResult.h" +#include "model/DescribeEventRuleRequest.h" +#include "model/DescribeEventRuleResult.h" #include "model/DescribeISPAreaCityRequest.h" #include "model/DescribeISPAreaCityResult.h" +#include "model/RemoveMetricRuleTargetsRequest.h" +#include "model/RemoveMetricRuleTargetsResult.h" #include "model/QueryCustomEventCountRequest.h" #include "model/QueryCustomEventCountResult.h" -#include "model/ListEventRulesRequest.h" -#include "model/ListEventRulesResult.h" #include "model/UpdateMyGroupInstancesRequest.h" #include "model/UpdateMyGroupInstancesResult.h" +#include "model/ListEventRulesRequest.h" +#include "model/ListEventRulesResult.h" #include "model/ProfileGetRequest.h" #include "model/ProfileGetResult.h" #include "model/PutEventTargetsRequest.h" #include "model/PutEventTargetsResult.h" -#include "model/PutGroupDynamicRuleRequest.h" -#include "model/PutGroupDynamicRuleResult.h" #include "model/UpdateMonitoringTemplateRequest.h" #include "model/UpdateMonitoringTemplateResult.h" +#include "model/PutGroupDynamicRuleRequest.h" +#include "model/PutGroupDynamicRuleResult.h" #include "model/PutEventRuleRequest.h" #include "model/PutEventRuleResult.h" #include "model/NodeListRequest.h" @@ -56,6 +58,8 @@ #include "model/QueryStaticsAvailabilityResult.h" #include "model/NodeProcessesRequest.h" #include "model/NodeProcessesResult.h" +#include "model/DescribeSiteMonitorISPCityListRequest.h" +#include "model/DescribeSiteMonitorISPCityListResult.h" #include "model/ListMonitoringTemplatesRequest.h" #include "model/ListMonitoringTemplatesResult.h" #include "model/QueryMetricListRequest.h" @@ -68,20 +72,22 @@ #include "model/PutCustomMetricResult.h" #include "model/QueryMetricLastRequest.h" #include "model/QueryMetricLastResult.h" +#include "model/DescribeAlertHistoryListRequest.h" +#include "model/DescribeAlertHistoryListResult.h" #include "model/QuerySystemEventHistogramRequest.h" #include "model/QuerySystemEventHistogramResult.h" #include "model/DeleteEventRuleRequest.h" #include "model/DeleteEventRuleResult.h" -#include "model/TaskConfigUnhealthyRequest.h" -#include "model/TaskConfigUnhealthyResult.h" #include "model/DeleteEventTargetsRequest.h" #include "model/DeleteEventTargetsResult.h" +#include "model/TaskConfigUnhealthyRequest.h" +#include "model/TaskConfigUnhealthyResult.h" #include "model/ListProductOfActiveAlertRequest.h" #include "model/ListProductOfActiveAlertResult.h" -#include "model/UpdateMyGroupAlertRequest.h" -#include "model/UpdateMyGroupAlertResult.h" #include "model/CreateMonitoringTemplateRequest.h" #include "model/CreateMonitoringTemplateResult.h" +#include "model/UpdateMyGroupAlertRequest.h" +#include "model/UpdateMyGroupAlertResult.h" #include "model/CreateMyGroupsRequest.h" #include "model/CreateMyGroupsResult.h" #include "model/CreateMyGroupAlertBatchRequest.h" @@ -104,6 +110,8 @@ #include "model/QueryMetricDataResult.h" #include "model/DisableActiveAlertRequest.h" #include "model/DisableActiveAlertResult.h" +#include "model/DescribeSiteMonitorISPAreaCityRequest.h" +#include "model/DescribeSiteMonitorISPAreaCityResult.h" #include "model/PutEventRequest.h" #include "model/PutEventResult.h" #include "model/QueryCustomEventHistogramRequest.h" @@ -126,16 +134,18 @@ #include "model/ModifyTaskResult.h" #include "model/TaskConfigDeleteRequest.h" #include "model/TaskConfigDeleteResult.h" -#include "model/QueryCustomEventDetailRequest.h" -#include "model/QueryCustomEventDetailResult.h" #include "model/NodeProcessCreateRequest.h" #include "model/NodeProcessCreateResult.h" +#include "model/QueryCustomEventDetailRequest.h" +#include "model/QueryCustomEventDetailResult.h" #include "model/TaskConfigEnableRequest.h" #include "model/TaskConfigEnableResult.h" #include "model/QueryMetricMetaRequest.h" #include "model/QueryMetricMetaResult.h" #include "model/TaskConfigCreateRequest.h" #include "model/TaskConfigCreateResult.h" +#include "model/PutMetricRuleTargetsRequest.h" +#include "model/PutMetricRuleTargetsResult.h" #include "model/GetNotifyPolicyRequest.h" #include "model/GetNotifyPolicyResult.h" #include "model/NodeUninstallRequest.h" @@ -146,14 +156,14 @@ #include "model/EnableEventRuleResult.h" #include "model/ListEventTargetsByRuleRequest.h" #include "model/ListEventTargetsByRuleResult.h" -#include "model/DescribeTaskDetailRequest.h" -#include "model/DescribeTaskDetailResult.h" #include "model/QueryMonitorDataRequest.h" #include "model/QueryMonitorDataResult.h" -#include "model/QueryCustomMetricListRequest.h" -#include "model/QueryCustomMetricListResult.h" +#include "model/DescribeTaskDetailRequest.h" +#include "model/DescribeTaskDetailResult.h" #include "model/ApplyTemplateRequest.h" #include "model/ApplyTemplateResult.h" +#include "model/QueryCustomMetricListRequest.h" +#include "model/QueryCustomMetricListResult.h" #include "model/EnableActiveAlertRequest.h" #include "model/EnableActiveAlertResult.h" #include "model/QuerySystemEventDetailRequest.h" @@ -168,10 +178,10 @@ #include "model/GetMonitoringTemplateResult.h" #include "model/ListMyGroupCategoriesRequest.h" #include "model/ListMyGroupCategoriesResult.h" -#include "model/DeleteGroupDynamicRuleRequest.h" -#include "model/DeleteGroupDynamicRuleResult.h" #include "model/CreateTaskRequest.h" #include "model/CreateTaskResult.h" +#include "model/DeleteGroupDynamicRuleRequest.h" +#include "model/DeleteGroupDynamicRuleResult.h" #include "model/ListMyGroupInstancesDetailsRequest.h" #include "model/ListMyGroupInstancesDetailsResult.h" #include "model/DeleteMyGroupsRequest.h" @@ -194,10 +204,10 @@ #include "model/CreateAlarmResult.h" #include "model/ListMyGroupsRequest.h" #include "model/ListMyGroupsResult.h" -#include "model/AddMyGroupInstancesRequest.h" -#include "model/AddMyGroupInstancesResult.h" #include "model/SendDryRunSystemEventRequest.h" #include "model/SendDryRunSystemEventResult.h" +#include "model/AddMyGroupInstancesRequest.h" +#include "model/AddMyGroupInstancesResult.h" #include "model/NodeProcessDeleteRequest.h" #include "model/NodeProcessDeleteResult.h" #include "model/UpdateMyGroupsRequest.h" @@ -212,6 +222,8 @@ #include "model/UpdateMyGroupMembersResult.h" #include "model/QueryStaticsErrorRateRequest.h" #include "model/QueryStaticsErrorRateResult.h" +#include "model/DescribeMetricRuleTargetsRequest.h" +#include "model/DescribeMetricRuleTargetsResult.h" #include "model/ListGroupDynamicRuleRequest.h" #include "model/ListGroupDynamicRuleResult.h" #include "model/ListAlarmRequest.h" @@ -226,10 +238,10 @@ #include "model/NodeStatusListResult.h" #include "model/ListContactGroupRequest.h" #include "model/ListContactGroupResult.h" -#include "model/DescribeContactRequest.h" -#include "model/DescribeContactResult.h" #include "model/PutMetricAlarmRequest.h" #include "model/PutMetricAlarmResult.h" +#include "model/DescribeContactRequest.h" +#include "model/DescribeContactResult.h" #include "model/ListNotifyPolicyRequest.h" #include "model/ListNotifyPolicyResult.h" #include "model/EnableAlarmRequest.h" @@ -252,36 +264,39 @@ namespace AlibabaCloud typedef Outcome DisableEventRuleOutcome; typedef std::future DisableEventRuleOutcomeCallable; typedef std::function&)> DisableEventRuleAsyncHandler; - typedef Outcome DescribeEventRuleOutcome; - typedef std::future DescribeEventRuleOutcomeCallable; - typedef std::function&)> DescribeEventRuleAsyncHandler; typedef Outcome StartTasksOutcome; typedef std::future StartTasksOutcomeCallable; typedef std::function&)> StartTasksAsyncHandler; + typedef Outcome DescribeEventRuleOutcome; + typedef std::future DescribeEventRuleOutcomeCallable; + typedef std::function&)> DescribeEventRuleAsyncHandler; typedef Outcome DescribeISPAreaCityOutcome; typedef std::future DescribeISPAreaCityOutcomeCallable; typedef std::function&)> DescribeISPAreaCityAsyncHandler; + typedef Outcome RemoveMetricRuleTargetsOutcome; + typedef std::future RemoveMetricRuleTargetsOutcomeCallable; + typedef std::function&)> RemoveMetricRuleTargetsAsyncHandler; typedef Outcome QueryCustomEventCountOutcome; typedef std::future QueryCustomEventCountOutcomeCallable; typedef std::function&)> QueryCustomEventCountAsyncHandler; - typedef Outcome ListEventRulesOutcome; - typedef std::future ListEventRulesOutcomeCallable; - typedef std::function&)> ListEventRulesAsyncHandler; typedef Outcome UpdateMyGroupInstancesOutcome; typedef std::future UpdateMyGroupInstancesOutcomeCallable; typedef std::function&)> UpdateMyGroupInstancesAsyncHandler; + typedef Outcome ListEventRulesOutcome; + typedef std::future ListEventRulesOutcomeCallable; + typedef std::function&)> ListEventRulesAsyncHandler; typedef Outcome ProfileGetOutcome; typedef std::future ProfileGetOutcomeCallable; typedef std::function&)> ProfileGetAsyncHandler; typedef Outcome PutEventTargetsOutcome; typedef std::future PutEventTargetsOutcomeCallable; typedef std::function&)> PutEventTargetsAsyncHandler; - typedef Outcome PutGroupDynamicRuleOutcome; - typedef std::future PutGroupDynamicRuleOutcomeCallable; - typedef std::function&)> PutGroupDynamicRuleAsyncHandler; typedef Outcome UpdateMonitoringTemplateOutcome; typedef std::future UpdateMonitoringTemplateOutcomeCallable; typedef std::function&)> UpdateMonitoringTemplateAsyncHandler; + typedef Outcome PutGroupDynamicRuleOutcome; + typedef std::future PutGroupDynamicRuleOutcomeCallable; + typedef std::function&)> PutGroupDynamicRuleAsyncHandler; typedef Outcome PutEventRuleOutcome; typedef std::future PutEventRuleOutcomeCallable; typedef std::function&)> PutEventRuleAsyncHandler; @@ -294,6 +309,9 @@ namespace AlibabaCloud typedef Outcome NodeProcessesOutcome; typedef std::future NodeProcessesOutcomeCallable; typedef std::function&)> NodeProcessesAsyncHandler; + typedef Outcome DescribeSiteMonitorISPCityListOutcome; + typedef std::future DescribeSiteMonitorISPCityListOutcomeCallable; + typedef std::function&)> DescribeSiteMonitorISPCityListAsyncHandler; typedef Outcome ListMonitoringTemplatesOutcome; typedef std::future ListMonitoringTemplatesOutcomeCallable; typedef std::function&)> ListMonitoringTemplatesAsyncHandler; @@ -312,27 +330,30 @@ namespace AlibabaCloud typedef Outcome QueryMetricLastOutcome; typedef std::future QueryMetricLastOutcomeCallable; typedef std::function&)> QueryMetricLastAsyncHandler; + typedef Outcome DescribeAlertHistoryListOutcome; + typedef std::future DescribeAlertHistoryListOutcomeCallable; + typedef std::function&)> DescribeAlertHistoryListAsyncHandler; typedef Outcome QuerySystemEventHistogramOutcome; typedef std::future QuerySystemEventHistogramOutcomeCallable; typedef std::function&)> QuerySystemEventHistogramAsyncHandler; typedef Outcome DeleteEventRuleOutcome; typedef std::future DeleteEventRuleOutcomeCallable; typedef std::function&)> DeleteEventRuleAsyncHandler; - typedef Outcome TaskConfigUnhealthyOutcome; - typedef std::future TaskConfigUnhealthyOutcomeCallable; - typedef std::function&)> TaskConfigUnhealthyAsyncHandler; typedef Outcome DeleteEventTargetsOutcome; typedef std::future DeleteEventTargetsOutcomeCallable; typedef std::function&)> DeleteEventTargetsAsyncHandler; + typedef Outcome TaskConfigUnhealthyOutcome; + typedef std::future TaskConfigUnhealthyOutcomeCallable; + typedef std::function&)> TaskConfigUnhealthyAsyncHandler; typedef Outcome ListProductOfActiveAlertOutcome; typedef std::future ListProductOfActiveAlertOutcomeCallable; typedef std::function&)> ListProductOfActiveAlertAsyncHandler; - typedef Outcome UpdateMyGroupAlertOutcome; - typedef std::future UpdateMyGroupAlertOutcomeCallable; - typedef std::function&)> UpdateMyGroupAlertAsyncHandler; typedef Outcome CreateMonitoringTemplateOutcome; typedef std::future CreateMonitoringTemplateOutcomeCallable; typedef std::function&)> CreateMonitoringTemplateAsyncHandler; + typedef Outcome UpdateMyGroupAlertOutcome; + typedef std::future UpdateMyGroupAlertOutcomeCallable; + typedef std::function&)> UpdateMyGroupAlertAsyncHandler; typedef Outcome CreateMyGroupsOutcome; typedef std::future CreateMyGroupsOutcomeCallable; typedef std::function&)> CreateMyGroupsAsyncHandler; @@ -366,6 +387,9 @@ namespace AlibabaCloud typedef Outcome DisableActiveAlertOutcome; typedef std::future DisableActiveAlertOutcomeCallable; typedef std::function&)> DisableActiveAlertAsyncHandler; + typedef Outcome DescribeSiteMonitorISPAreaCityOutcome; + typedef std::future DescribeSiteMonitorISPAreaCityOutcomeCallable; + typedef std::function&)> DescribeSiteMonitorISPAreaCityAsyncHandler; typedef Outcome PutEventOutcome; typedef std::future PutEventOutcomeCallable; typedef std::function&)> PutEventAsyncHandler; @@ -399,12 +423,12 @@ namespace AlibabaCloud typedef Outcome TaskConfigDeleteOutcome; typedef std::future TaskConfigDeleteOutcomeCallable; typedef std::function&)> TaskConfigDeleteAsyncHandler; - typedef Outcome QueryCustomEventDetailOutcome; - typedef std::future QueryCustomEventDetailOutcomeCallable; - typedef std::function&)> QueryCustomEventDetailAsyncHandler; typedef Outcome NodeProcessCreateOutcome; typedef std::future NodeProcessCreateOutcomeCallable; typedef std::function&)> NodeProcessCreateAsyncHandler; + typedef Outcome QueryCustomEventDetailOutcome; + typedef std::future QueryCustomEventDetailOutcomeCallable; + typedef std::function&)> QueryCustomEventDetailAsyncHandler; typedef Outcome TaskConfigEnableOutcome; typedef std::future TaskConfigEnableOutcomeCallable; typedef std::function&)> TaskConfigEnableAsyncHandler; @@ -414,6 +438,9 @@ namespace AlibabaCloud typedef Outcome TaskConfigCreateOutcome; typedef std::future TaskConfigCreateOutcomeCallable; typedef std::function&)> TaskConfigCreateAsyncHandler; + typedef Outcome PutMetricRuleTargetsOutcome; + typedef std::future PutMetricRuleTargetsOutcomeCallable; + typedef std::function&)> PutMetricRuleTargetsAsyncHandler; typedef Outcome GetNotifyPolicyOutcome; typedef std::future GetNotifyPolicyOutcomeCallable; typedef std::function&)> GetNotifyPolicyAsyncHandler; @@ -429,18 +456,18 @@ namespace AlibabaCloud typedef Outcome ListEventTargetsByRuleOutcome; typedef std::future ListEventTargetsByRuleOutcomeCallable; typedef std::function&)> ListEventTargetsByRuleAsyncHandler; - typedef Outcome DescribeTaskDetailOutcome; - typedef std::future DescribeTaskDetailOutcomeCallable; - typedef std::function&)> DescribeTaskDetailAsyncHandler; typedef Outcome QueryMonitorDataOutcome; typedef std::future QueryMonitorDataOutcomeCallable; typedef std::function&)> QueryMonitorDataAsyncHandler; - typedef Outcome QueryCustomMetricListOutcome; - typedef std::future QueryCustomMetricListOutcomeCallable; - typedef std::function&)> QueryCustomMetricListAsyncHandler; + typedef Outcome DescribeTaskDetailOutcome; + typedef std::future DescribeTaskDetailOutcomeCallable; + typedef std::function&)> DescribeTaskDetailAsyncHandler; typedef Outcome ApplyTemplateOutcome; typedef std::future ApplyTemplateOutcomeCallable; typedef std::function&)> ApplyTemplateAsyncHandler; + typedef Outcome QueryCustomMetricListOutcome; + typedef std::future QueryCustomMetricListOutcomeCallable; + typedef std::function&)> QueryCustomMetricListAsyncHandler; typedef Outcome EnableActiveAlertOutcome; typedef std::future EnableActiveAlertOutcomeCallable; typedef std::function&)> EnableActiveAlertAsyncHandler; @@ -462,12 +489,12 @@ namespace AlibabaCloud typedef Outcome ListMyGroupCategoriesOutcome; typedef std::future ListMyGroupCategoriesOutcomeCallable; typedef std::function&)> ListMyGroupCategoriesAsyncHandler; - typedef Outcome DeleteGroupDynamicRuleOutcome; - typedef std::future DeleteGroupDynamicRuleOutcomeCallable; - typedef std::function&)> DeleteGroupDynamicRuleAsyncHandler; typedef Outcome CreateTaskOutcome; typedef std::future CreateTaskOutcomeCallable; typedef std::function&)> CreateTaskAsyncHandler; + typedef Outcome DeleteGroupDynamicRuleOutcome; + typedef std::future DeleteGroupDynamicRuleOutcomeCallable; + typedef std::function&)> DeleteGroupDynamicRuleAsyncHandler; typedef Outcome ListMyGroupInstancesDetailsOutcome; typedef std::future ListMyGroupInstancesDetailsOutcomeCallable; typedef std::function&)> ListMyGroupInstancesDetailsAsyncHandler; @@ -501,12 +528,12 @@ namespace AlibabaCloud typedef Outcome ListMyGroupsOutcome; typedef std::future ListMyGroupsOutcomeCallable; typedef std::function&)> ListMyGroupsAsyncHandler; - typedef Outcome AddMyGroupInstancesOutcome; - typedef std::future AddMyGroupInstancesOutcomeCallable; - typedef std::function&)> AddMyGroupInstancesAsyncHandler; typedef Outcome SendDryRunSystemEventOutcome; typedef std::future SendDryRunSystemEventOutcomeCallable; typedef std::function&)> SendDryRunSystemEventAsyncHandler; + typedef Outcome AddMyGroupInstancesOutcome; + typedef std::future AddMyGroupInstancesOutcomeCallable; + typedef std::function&)> AddMyGroupInstancesAsyncHandler; typedef Outcome NodeProcessDeleteOutcome; typedef std::future NodeProcessDeleteOutcomeCallable; typedef std::function&)> NodeProcessDeleteAsyncHandler; @@ -528,6 +555,9 @@ namespace AlibabaCloud typedef Outcome QueryStaticsErrorRateOutcome; typedef std::future QueryStaticsErrorRateOutcomeCallable; typedef std::function&)> QueryStaticsErrorRateAsyncHandler; + typedef Outcome DescribeMetricRuleTargetsOutcome; + typedef std::future DescribeMetricRuleTargetsOutcomeCallable; + typedef std::function&)> DescribeMetricRuleTargetsAsyncHandler; typedef Outcome ListGroupDynamicRuleOutcome; typedef std::future ListGroupDynamicRuleOutcomeCallable; typedef std::function&)> ListGroupDynamicRuleAsyncHandler; @@ -549,12 +579,12 @@ namespace AlibabaCloud typedef Outcome ListContactGroupOutcome; typedef std::future ListContactGroupOutcomeCallable; typedef std::function&)> ListContactGroupAsyncHandler; - typedef Outcome DescribeContactOutcome; - typedef std::future DescribeContactOutcomeCallable; - typedef std::function&)> DescribeContactAsyncHandler; typedef Outcome PutMetricAlarmOutcome; typedef std::future PutMetricAlarmOutcomeCallable; typedef std::function&)> PutMetricAlarmAsyncHandler; + typedef Outcome DescribeContactOutcome; + typedef std::future DescribeContactOutcomeCallable; + typedef std::function&)> DescribeContactAsyncHandler; typedef Outcome ListNotifyPolicyOutcome; typedef std::future ListNotifyPolicyOutcomeCallable; typedef std::function&)> ListNotifyPolicyAsyncHandler; @@ -575,36 +605,39 @@ namespace AlibabaCloud DisableEventRuleOutcome disableEventRule(const Model::DisableEventRuleRequest &request)const; void disableEventRuleAsync(const Model::DisableEventRuleRequest& request, const DisableEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableEventRuleOutcomeCallable disableEventRuleCallable(const Model::DisableEventRuleRequest& request) const; - DescribeEventRuleOutcome describeEventRule(const Model::DescribeEventRuleRequest &request)const; - void describeEventRuleAsync(const Model::DescribeEventRuleRequest& request, const DescribeEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeEventRuleOutcomeCallable describeEventRuleCallable(const Model::DescribeEventRuleRequest& request) const; StartTasksOutcome startTasks(const Model::StartTasksRequest &request)const; void startTasksAsync(const Model::StartTasksRequest& request, const StartTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartTasksOutcomeCallable startTasksCallable(const Model::StartTasksRequest& request) const; + DescribeEventRuleOutcome describeEventRule(const Model::DescribeEventRuleRequest &request)const; + void describeEventRuleAsync(const Model::DescribeEventRuleRequest& request, const DescribeEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventRuleOutcomeCallable describeEventRuleCallable(const Model::DescribeEventRuleRequest& request) const; DescribeISPAreaCityOutcome describeISPAreaCity(const Model::DescribeISPAreaCityRequest &request)const; void describeISPAreaCityAsync(const Model::DescribeISPAreaCityRequest& request, const DescribeISPAreaCityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeISPAreaCityOutcomeCallable describeISPAreaCityCallable(const Model::DescribeISPAreaCityRequest& request) const; + RemoveMetricRuleTargetsOutcome removeMetricRuleTargets(const Model::RemoveMetricRuleTargetsRequest &request)const; + void removeMetricRuleTargetsAsync(const Model::RemoveMetricRuleTargetsRequest& request, const RemoveMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveMetricRuleTargetsOutcomeCallable removeMetricRuleTargetsCallable(const Model::RemoveMetricRuleTargetsRequest& request) const; QueryCustomEventCountOutcome queryCustomEventCount(const Model::QueryCustomEventCountRequest &request)const; void queryCustomEventCountAsync(const Model::QueryCustomEventCountRequest& request, const QueryCustomEventCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCustomEventCountOutcomeCallable queryCustomEventCountCallable(const Model::QueryCustomEventCountRequest& request) const; - ListEventRulesOutcome listEventRules(const Model::ListEventRulesRequest &request)const; - void listEventRulesAsync(const Model::ListEventRulesRequest& request, const ListEventRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListEventRulesOutcomeCallable listEventRulesCallable(const Model::ListEventRulesRequest& request) const; UpdateMyGroupInstancesOutcome updateMyGroupInstances(const Model::UpdateMyGroupInstancesRequest &request)const; void updateMyGroupInstancesAsync(const Model::UpdateMyGroupInstancesRequest& request, const UpdateMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMyGroupInstancesOutcomeCallable updateMyGroupInstancesCallable(const Model::UpdateMyGroupInstancesRequest& request) const; + ListEventRulesOutcome listEventRules(const Model::ListEventRulesRequest &request)const; + void listEventRulesAsync(const Model::ListEventRulesRequest& request, const ListEventRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEventRulesOutcomeCallable listEventRulesCallable(const Model::ListEventRulesRequest& request) const; ProfileGetOutcome profileGet(const Model::ProfileGetRequest &request)const; void profileGetAsync(const Model::ProfileGetRequest& request, const ProfileGetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ProfileGetOutcomeCallable profileGetCallable(const Model::ProfileGetRequest& request) const; PutEventTargetsOutcome putEventTargets(const Model::PutEventTargetsRequest &request)const; void putEventTargetsAsync(const Model::PutEventTargetsRequest& request, const PutEventTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PutEventTargetsOutcomeCallable putEventTargetsCallable(const Model::PutEventTargetsRequest& request) const; - PutGroupDynamicRuleOutcome putGroupDynamicRule(const Model::PutGroupDynamicRuleRequest &request)const; - void putGroupDynamicRuleAsync(const Model::PutGroupDynamicRuleRequest& request, const PutGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutGroupDynamicRuleOutcomeCallable putGroupDynamicRuleCallable(const Model::PutGroupDynamicRuleRequest& request) const; UpdateMonitoringTemplateOutcome updateMonitoringTemplate(const Model::UpdateMonitoringTemplateRequest &request)const; void updateMonitoringTemplateAsync(const Model::UpdateMonitoringTemplateRequest& request, const UpdateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMonitoringTemplateOutcomeCallable updateMonitoringTemplateCallable(const Model::UpdateMonitoringTemplateRequest& request) const; + PutGroupDynamicRuleOutcome putGroupDynamicRule(const Model::PutGroupDynamicRuleRequest &request)const; + void putGroupDynamicRuleAsync(const Model::PutGroupDynamicRuleRequest& request, const PutGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutGroupDynamicRuleOutcomeCallable putGroupDynamicRuleCallable(const Model::PutGroupDynamicRuleRequest& request) const; PutEventRuleOutcome putEventRule(const Model::PutEventRuleRequest &request)const; void putEventRuleAsync(const Model::PutEventRuleRequest& request, const PutEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PutEventRuleOutcomeCallable putEventRuleCallable(const Model::PutEventRuleRequest& request) const; @@ -617,6 +650,9 @@ namespace AlibabaCloud NodeProcessesOutcome nodeProcesses(const Model::NodeProcessesRequest &request)const; void nodeProcessesAsync(const Model::NodeProcessesRequest& request, const NodeProcessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; NodeProcessesOutcomeCallable nodeProcessesCallable(const Model::NodeProcessesRequest& request) const; + DescribeSiteMonitorISPCityListOutcome describeSiteMonitorISPCityList(const Model::DescribeSiteMonitorISPCityListRequest &request)const; + void describeSiteMonitorISPCityListAsync(const Model::DescribeSiteMonitorISPCityListRequest& request, const DescribeSiteMonitorISPCityListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSiteMonitorISPCityListOutcomeCallable describeSiteMonitorISPCityListCallable(const Model::DescribeSiteMonitorISPCityListRequest& request) const; ListMonitoringTemplatesOutcome listMonitoringTemplates(const Model::ListMonitoringTemplatesRequest &request)const; void listMonitoringTemplatesAsync(const Model::ListMonitoringTemplatesRequest& request, const ListMonitoringTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListMonitoringTemplatesOutcomeCallable listMonitoringTemplatesCallable(const Model::ListMonitoringTemplatesRequest& request) const; @@ -635,27 +671,30 @@ namespace AlibabaCloud QueryMetricLastOutcome queryMetricLast(const Model::QueryMetricLastRequest &request)const; void queryMetricLastAsync(const Model::QueryMetricLastRequest& request, const QueryMetricLastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMetricLastOutcomeCallable queryMetricLastCallable(const Model::QueryMetricLastRequest& request) const; + DescribeAlertHistoryListOutcome describeAlertHistoryList(const Model::DescribeAlertHistoryListRequest &request)const; + void describeAlertHistoryListAsync(const Model::DescribeAlertHistoryListRequest& request, const DescribeAlertHistoryListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlertHistoryListOutcomeCallable describeAlertHistoryListCallable(const Model::DescribeAlertHistoryListRequest& request) const; QuerySystemEventHistogramOutcome querySystemEventHistogram(const Model::QuerySystemEventHistogramRequest &request)const; void querySystemEventHistogramAsync(const Model::QuerySystemEventHistogramRequest& request, const QuerySystemEventHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySystemEventHistogramOutcomeCallable querySystemEventHistogramCallable(const Model::QuerySystemEventHistogramRequest& request) const; DeleteEventRuleOutcome deleteEventRule(const Model::DeleteEventRuleRequest &request)const; void deleteEventRuleAsync(const Model::DeleteEventRuleRequest& request, const DeleteEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteEventRuleOutcomeCallable deleteEventRuleCallable(const Model::DeleteEventRuleRequest& request) const; - TaskConfigUnhealthyOutcome taskConfigUnhealthy(const Model::TaskConfigUnhealthyRequest &request)const; - void taskConfigUnhealthyAsync(const Model::TaskConfigUnhealthyRequest& request, const TaskConfigUnhealthyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskConfigUnhealthyOutcomeCallable taskConfigUnhealthyCallable(const Model::TaskConfigUnhealthyRequest& request) const; DeleteEventTargetsOutcome deleteEventTargets(const Model::DeleteEventTargetsRequest &request)const; void deleteEventTargetsAsync(const Model::DeleteEventTargetsRequest& request, const DeleteEventTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteEventTargetsOutcomeCallable deleteEventTargetsCallable(const Model::DeleteEventTargetsRequest& request) const; + TaskConfigUnhealthyOutcome taskConfigUnhealthy(const Model::TaskConfigUnhealthyRequest &request)const; + void taskConfigUnhealthyAsync(const Model::TaskConfigUnhealthyRequest& request, const TaskConfigUnhealthyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TaskConfigUnhealthyOutcomeCallable taskConfigUnhealthyCallable(const Model::TaskConfigUnhealthyRequest& request) const; ListProductOfActiveAlertOutcome listProductOfActiveAlert(const Model::ListProductOfActiveAlertRequest &request)const; void listProductOfActiveAlertAsync(const Model::ListProductOfActiveAlertRequest& request, const ListProductOfActiveAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListProductOfActiveAlertOutcomeCallable listProductOfActiveAlertCallable(const Model::ListProductOfActiveAlertRequest& request) const; - UpdateMyGroupAlertOutcome updateMyGroupAlert(const Model::UpdateMyGroupAlertRequest &request)const; - void updateMyGroupAlertAsync(const Model::UpdateMyGroupAlertRequest& request, const UpdateMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateMyGroupAlertOutcomeCallable updateMyGroupAlertCallable(const Model::UpdateMyGroupAlertRequest& request) const; CreateMonitoringTemplateOutcome createMonitoringTemplate(const Model::CreateMonitoringTemplateRequest &request)const; void createMonitoringTemplateAsync(const Model::CreateMonitoringTemplateRequest& request, const CreateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMonitoringTemplateOutcomeCallable createMonitoringTemplateCallable(const Model::CreateMonitoringTemplateRequest& request) const; + UpdateMyGroupAlertOutcome updateMyGroupAlert(const Model::UpdateMyGroupAlertRequest &request)const; + void updateMyGroupAlertAsync(const Model::UpdateMyGroupAlertRequest& request, const UpdateMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMyGroupAlertOutcomeCallable updateMyGroupAlertCallable(const Model::UpdateMyGroupAlertRequest& request) const; CreateMyGroupsOutcome createMyGroups(const Model::CreateMyGroupsRequest &request)const; void createMyGroupsAsync(const Model::CreateMyGroupsRequest& request, const CreateMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMyGroupsOutcomeCallable createMyGroupsCallable(const Model::CreateMyGroupsRequest& request) const; @@ -689,6 +728,9 @@ namespace AlibabaCloud DisableActiveAlertOutcome disableActiveAlert(const Model::DisableActiveAlertRequest &request)const; void disableActiveAlertAsync(const Model::DisableActiveAlertRequest& request, const DisableActiveAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableActiveAlertOutcomeCallable disableActiveAlertCallable(const Model::DisableActiveAlertRequest& request) const; + DescribeSiteMonitorISPAreaCityOutcome describeSiteMonitorISPAreaCity(const Model::DescribeSiteMonitorISPAreaCityRequest &request)const; + void describeSiteMonitorISPAreaCityAsync(const Model::DescribeSiteMonitorISPAreaCityRequest& request, const DescribeSiteMonitorISPAreaCityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSiteMonitorISPAreaCityOutcomeCallable describeSiteMonitorISPAreaCityCallable(const Model::DescribeSiteMonitorISPAreaCityRequest& request) const; PutEventOutcome putEvent(const Model::PutEventRequest &request)const; void putEventAsync(const Model::PutEventRequest& request, const PutEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PutEventOutcomeCallable putEventCallable(const Model::PutEventRequest& request) const; @@ -722,12 +764,12 @@ namespace AlibabaCloud TaskConfigDeleteOutcome taskConfigDelete(const Model::TaskConfigDeleteRequest &request)const; void taskConfigDeleteAsync(const Model::TaskConfigDeleteRequest& request, const TaskConfigDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TaskConfigDeleteOutcomeCallable taskConfigDeleteCallable(const Model::TaskConfigDeleteRequest& request) const; - QueryCustomEventDetailOutcome queryCustomEventDetail(const Model::QueryCustomEventDetailRequest &request)const; - void queryCustomEventDetailAsync(const Model::QueryCustomEventDetailRequest& request, const QueryCustomEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomEventDetailOutcomeCallable queryCustomEventDetailCallable(const Model::QueryCustomEventDetailRequest& request) const; NodeProcessCreateOutcome nodeProcessCreate(const Model::NodeProcessCreateRequest &request)const; void nodeProcessCreateAsync(const Model::NodeProcessCreateRequest& request, const NodeProcessCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; NodeProcessCreateOutcomeCallable nodeProcessCreateCallable(const Model::NodeProcessCreateRequest& request) const; + QueryCustomEventDetailOutcome queryCustomEventDetail(const Model::QueryCustomEventDetailRequest &request)const; + void queryCustomEventDetailAsync(const Model::QueryCustomEventDetailRequest& request, const QueryCustomEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCustomEventDetailOutcomeCallable queryCustomEventDetailCallable(const Model::QueryCustomEventDetailRequest& request) const; TaskConfigEnableOutcome taskConfigEnable(const Model::TaskConfigEnableRequest &request)const; void taskConfigEnableAsync(const Model::TaskConfigEnableRequest& request, const TaskConfigEnableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TaskConfigEnableOutcomeCallable taskConfigEnableCallable(const Model::TaskConfigEnableRequest& request) const; @@ -737,6 +779,9 @@ namespace AlibabaCloud TaskConfigCreateOutcome taskConfigCreate(const Model::TaskConfigCreateRequest &request)const; void taskConfigCreateAsync(const Model::TaskConfigCreateRequest& request, const TaskConfigCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TaskConfigCreateOutcomeCallable taskConfigCreateCallable(const Model::TaskConfigCreateRequest& request) const; + PutMetricRuleTargetsOutcome putMetricRuleTargets(const Model::PutMetricRuleTargetsRequest &request)const; + void putMetricRuleTargetsAsync(const Model::PutMetricRuleTargetsRequest& request, const PutMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutMetricRuleTargetsOutcomeCallable putMetricRuleTargetsCallable(const Model::PutMetricRuleTargetsRequest& request) const; GetNotifyPolicyOutcome getNotifyPolicy(const Model::GetNotifyPolicyRequest &request)const; void getNotifyPolicyAsync(const Model::GetNotifyPolicyRequest& request, const GetNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetNotifyPolicyOutcomeCallable getNotifyPolicyCallable(const Model::GetNotifyPolicyRequest& request) const; @@ -752,18 +797,18 @@ namespace AlibabaCloud ListEventTargetsByRuleOutcome listEventTargetsByRule(const Model::ListEventTargetsByRuleRequest &request)const; void listEventTargetsByRuleAsync(const Model::ListEventTargetsByRuleRequest& request, const ListEventTargetsByRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListEventTargetsByRuleOutcomeCallable listEventTargetsByRuleCallable(const Model::ListEventTargetsByRuleRequest& request) const; - DescribeTaskDetailOutcome describeTaskDetail(const Model::DescribeTaskDetailRequest &request)const; - void describeTaskDetailAsync(const Model::DescribeTaskDetailRequest& request, const DescribeTaskDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTaskDetailOutcomeCallable describeTaskDetailCallable(const Model::DescribeTaskDetailRequest& request) const; QueryMonitorDataOutcome queryMonitorData(const Model::QueryMonitorDataRequest &request)const; void queryMonitorDataAsync(const Model::QueryMonitorDataRequest& request, const QueryMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMonitorDataOutcomeCallable queryMonitorDataCallable(const Model::QueryMonitorDataRequest& request) const; - QueryCustomMetricListOutcome queryCustomMetricList(const Model::QueryCustomMetricListRequest &request)const; - void queryCustomMetricListAsync(const Model::QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomMetricListOutcomeCallable queryCustomMetricListCallable(const Model::QueryCustomMetricListRequest& request) const; + DescribeTaskDetailOutcome describeTaskDetail(const Model::DescribeTaskDetailRequest &request)const; + void describeTaskDetailAsync(const Model::DescribeTaskDetailRequest& request, const DescribeTaskDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTaskDetailOutcomeCallable describeTaskDetailCallable(const Model::DescribeTaskDetailRequest& request) const; ApplyTemplateOutcome applyTemplate(const Model::ApplyTemplateRequest &request)const; void applyTemplateAsync(const Model::ApplyTemplateRequest& request, const ApplyTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApplyTemplateOutcomeCallable applyTemplateCallable(const Model::ApplyTemplateRequest& request) const; + QueryCustomMetricListOutcome queryCustomMetricList(const Model::QueryCustomMetricListRequest &request)const; + void queryCustomMetricListAsync(const Model::QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCustomMetricListOutcomeCallable queryCustomMetricListCallable(const Model::QueryCustomMetricListRequest& request) const; EnableActiveAlertOutcome enableActiveAlert(const Model::EnableActiveAlertRequest &request)const; void enableActiveAlertAsync(const Model::EnableActiveAlertRequest& request, const EnableActiveAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableActiveAlertOutcomeCallable enableActiveAlertCallable(const Model::EnableActiveAlertRequest& request) const; @@ -785,12 +830,12 @@ namespace AlibabaCloud ListMyGroupCategoriesOutcome listMyGroupCategories(const Model::ListMyGroupCategoriesRequest &request)const; void listMyGroupCategoriesAsync(const Model::ListMyGroupCategoriesRequest& request, const ListMyGroupCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListMyGroupCategoriesOutcomeCallable listMyGroupCategoriesCallable(const Model::ListMyGroupCategoriesRequest& request) const; - DeleteGroupDynamicRuleOutcome deleteGroupDynamicRule(const Model::DeleteGroupDynamicRuleRequest &request)const; - void deleteGroupDynamicRuleAsync(const Model::DeleteGroupDynamicRuleRequest& request, const DeleteGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteGroupDynamicRuleOutcomeCallable deleteGroupDynamicRuleCallable(const Model::DeleteGroupDynamicRuleRequest& request) const; CreateTaskOutcome createTask(const Model::CreateTaskRequest &request)const; void createTaskAsync(const Model::CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTaskOutcomeCallable createTaskCallable(const Model::CreateTaskRequest& request) const; + DeleteGroupDynamicRuleOutcome deleteGroupDynamicRule(const Model::DeleteGroupDynamicRuleRequest &request)const; + void deleteGroupDynamicRuleAsync(const Model::DeleteGroupDynamicRuleRequest& request, const DeleteGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGroupDynamicRuleOutcomeCallable deleteGroupDynamicRuleCallable(const Model::DeleteGroupDynamicRuleRequest& request) const; ListMyGroupInstancesDetailsOutcome listMyGroupInstancesDetails(const Model::ListMyGroupInstancesDetailsRequest &request)const; void listMyGroupInstancesDetailsAsync(const Model::ListMyGroupInstancesDetailsRequest& request, const ListMyGroupInstancesDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListMyGroupInstancesDetailsOutcomeCallable listMyGroupInstancesDetailsCallable(const Model::ListMyGroupInstancesDetailsRequest& request) const; @@ -824,12 +869,12 @@ namespace AlibabaCloud ListMyGroupsOutcome listMyGroups(const Model::ListMyGroupsRequest &request)const; void listMyGroupsAsync(const Model::ListMyGroupsRequest& request, const ListMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListMyGroupsOutcomeCallable listMyGroupsCallable(const Model::ListMyGroupsRequest& request) const; - AddMyGroupInstancesOutcome addMyGroupInstances(const Model::AddMyGroupInstancesRequest &request)const; - void addMyGroupInstancesAsync(const Model::AddMyGroupInstancesRequest& request, const AddMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddMyGroupInstancesOutcomeCallable addMyGroupInstancesCallable(const Model::AddMyGroupInstancesRequest& request) const; SendDryRunSystemEventOutcome sendDryRunSystemEvent(const Model::SendDryRunSystemEventRequest &request)const; void sendDryRunSystemEventAsync(const Model::SendDryRunSystemEventRequest& request, const SendDryRunSystemEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendDryRunSystemEventOutcomeCallable sendDryRunSystemEventCallable(const Model::SendDryRunSystemEventRequest& request) const; + AddMyGroupInstancesOutcome addMyGroupInstances(const Model::AddMyGroupInstancesRequest &request)const; + void addMyGroupInstancesAsync(const Model::AddMyGroupInstancesRequest& request, const AddMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddMyGroupInstancesOutcomeCallable addMyGroupInstancesCallable(const Model::AddMyGroupInstancesRequest& request) const; NodeProcessDeleteOutcome nodeProcessDelete(const Model::NodeProcessDeleteRequest &request)const; void nodeProcessDeleteAsync(const Model::NodeProcessDeleteRequest& request, const NodeProcessDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; NodeProcessDeleteOutcomeCallable nodeProcessDeleteCallable(const Model::NodeProcessDeleteRequest& request) const; @@ -851,6 +896,9 @@ namespace AlibabaCloud QueryStaticsErrorRateOutcome queryStaticsErrorRate(const Model::QueryStaticsErrorRateRequest &request)const; void queryStaticsErrorRateAsync(const Model::QueryStaticsErrorRateRequest& request, const QueryStaticsErrorRateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryStaticsErrorRateOutcomeCallable queryStaticsErrorRateCallable(const Model::QueryStaticsErrorRateRequest& request) const; + DescribeMetricRuleTargetsOutcome describeMetricRuleTargets(const Model::DescribeMetricRuleTargetsRequest &request)const; + void describeMetricRuleTargetsAsync(const Model::DescribeMetricRuleTargetsRequest& request, const DescribeMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricRuleTargetsOutcomeCallable describeMetricRuleTargetsCallable(const Model::DescribeMetricRuleTargetsRequest& request) const; ListGroupDynamicRuleOutcome listGroupDynamicRule(const Model::ListGroupDynamicRuleRequest &request)const; void listGroupDynamicRuleAsync(const Model::ListGroupDynamicRuleRequest& request, const ListGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListGroupDynamicRuleOutcomeCallable listGroupDynamicRuleCallable(const Model::ListGroupDynamicRuleRequest& request) const; @@ -872,12 +920,12 @@ namespace AlibabaCloud ListContactGroupOutcome listContactGroup(const Model::ListContactGroupRequest &request)const; void listContactGroupAsync(const Model::ListContactGroupRequest& request, const ListContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListContactGroupOutcomeCallable listContactGroupCallable(const Model::ListContactGroupRequest& request) const; - DescribeContactOutcome describeContact(const Model::DescribeContactRequest &request)const; - void describeContactAsync(const Model::DescribeContactRequest& request, const DescribeContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeContactOutcomeCallable describeContactCallable(const Model::DescribeContactRequest& request) const; PutMetricAlarmOutcome putMetricAlarm(const Model::PutMetricAlarmRequest &request)const; void putMetricAlarmAsync(const Model::PutMetricAlarmRequest& request, const PutMetricAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PutMetricAlarmOutcomeCallable putMetricAlarmCallable(const Model::PutMetricAlarmRequest& request) const; + DescribeContactOutcome describeContact(const Model::DescribeContactRequest &request)const; + void describeContactAsync(const Model::DescribeContactRequest& request, const DescribeContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeContactOutcomeCallable describeContactCallable(const Model::DescribeContactRequest& request) const; ListNotifyPolicyOutcome listNotifyPolicy(const Model::ListNotifyPolicyRequest &request)const; void listNotifyPolicyAsync(const Model::ListNotifyPolicyRequest& request, const ListNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNotifyPolicyOutcomeCallable listNotifyPolicyCallable(const Model::ListNotifyPolicyRequest& request) const; diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h new file mode 100644 index 000000000..89f86ec34 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeAlertHistoryListRequest : public RpcServiceRequest + { + + public: + DescribeAlertHistoryListRequest(); + ~DescribeAlertHistoryListRequest(); + + std::string getAlertName()const; + void setAlertName(const std::string& alertName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + bool getAscending()const; + void setAscending(bool ascending); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getOnlyCount()const; + void setOnlyCount(bool onlyCount); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getState()const; + void setState(const std::string& state); + int getPage()const; + void setPage(int page); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string alertName_; + std::string groupId_; + std::string endTime_; + std::string ruleName_; + std::string startTime_; + bool ascending_; + std::string accessKeyId_; + bool onlyCount_; + std::string _namespace_; + int pageSize_; + std::string state_; + int page_; + std::string metricName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h new file mode 100644 index 000000000..2c0c31dbb --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeAlertHistoryListResult : public ServiceResult + { + public: + struct AlarmHistory + { + int status; + std::vector contactGroups; + std::string alertName; + std::string dimensions; + int evaluationCount; + std::string _namespace; + std::vector contactMails; + std::vector contactSmses; + long alertTime; + std::string groupId; + std::string instanceName; + std::string metricName; + std::vector contacts; + std::string expression; + std::string state; + std::string userId; + std::string value; + std::string webhooks; + std::string level; + std::string id; + std::string preLevel; + long lastTime; + std::string ruleName; + std::vector contactALIIMs; + }; + + + DescribeAlertHistoryListResult(); + explicit DescribeAlertHistoryListResult(const std::string &payload); + ~DescribeAlertHistoryListResult(); + std::vector getAlarmHistoryList()const; + std::string getMessage()const; + std::string getTotal()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector alarmHistoryList_; + std::string message_; + std::string total_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h new file mode 100644 index 000000000..c8b1c42dd --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.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_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTargetsRequest : public RpcServiceRequest + { + + public: + DescribeMetricRuleTargetsRequest(); + ~DescribeMetricRuleTargetsRequest(); + + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + + private: + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsResult.h new file mode 100644 index 000000000..166899ff3 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTargetsResult : public ServiceResult + { + public: + struct Target + { + std::string level; + std::string id; + std::string arn; + }; + + + DescribeMetricRuleTargetsResult(); + explicit DescribeMetricRuleTargetsResult(const std::string &payload); + ~DescribeMetricRuleTargetsResult(); + std::string getMessage()const; + std::vector getTargets()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector targets_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h new file mode 100644 index 000000000..aabe0df58 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.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_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPAreaCityRequest : public RpcServiceRequest + { + + public: + DescribeSiteMonitorISPAreaCityRequest(); + ~DescribeSiteMonitorISPAreaCityRequest(); + + std::string getCity()const; + void setCity(const std::string& city); + std::string getIsp()const; + void setIsp(const std::string& isp); + + private: + std::string city_; + std::string isp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h new file mode 100644 index 000000000..df7eb1d51 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.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_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPAreaCityResult : public ServiceResult + { + public: + struct IspCity + { + std::string ispName; + std::string isp; + std::string country; + std::string region; + std::string city; + std::string cityName; + }; + + + DescribeSiteMonitorISPAreaCityResult(); + explicit DescribeSiteMonitorISPAreaCityResult(const std::string &payload); + ~DescribeSiteMonitorISPAreaCityResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + std::vector getIspCityList()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + std::vector ispCityList_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h new file mode 100644 index 000000000..a54fae0f2 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.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_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPCityListRequest : public RpcServiceRequest + { + + public: + DescribeSiteMonitorISPCityListRequest(); + ~DescribeSiteMonitorISPCityListRequest(); + + std::string getCity()const; + void setCity(const std::string& city); + std::string getIsp()const; + void setIsp(const std::string& isp); + + private: + std::string city_; + std::string isp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h new file mode 100644 index 000000000..2a9525175 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.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_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPCityListResult : public ServiceResult + { + public: + struct IspCity + { + std::string ispNamezh_CN; + std::string cityNamezh_CN; + std::string isp; + std::string regionzh_CN; + std::string countryzh_CN; + std::string city; + }; + + + DescribeSiteMonitorISPCityListResult(); + explicit DescribeSiteMonitorISPCityListResult(const std::string &payload); + ~DescribeSiteMonitorISPCityListResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getIspCityList()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector ispCityList_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h new file mode 100644 index 000000000..f02427c3d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.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_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutMetricRuleTargetsRequest : public RpcServiceRequest + { + struct Targets + { + std::string level; + std::string id; + std::string arn; + }; + + public: + PutMetricRuleTargetsRequest(); + ~PutMetricRuleTargetsRequest(); + + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + std::string getActions()const; + void setActions(const std::string& actions); + std::vector getTargets()const; + void setTargets(const std::vector& targets); + + private: + std::string ruleName_; + std::string actions_; + std::vector targets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsResult.h b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsResult.h new file mode 100644 index 000000000..7f6bd8275 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsResult.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_CMS_MODEL_PUTMETRICRULETARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutMetricRuleTargetsResult : public ServiceResult + { + public: + struct FailData + { + struct Target + { + std::string level; + std::string id; + std::string arn; + }; + std::vector targets; + }; + + + PutMetricRuleTargetsResult(); + explicit PutMetricRuleTargetsResult(const std::string &payload); + ~PutMetricRuleTargetsResult(); + std::string getMessage()const; + FailData getFailData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + FailData failData_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h new file mode 100644 index 000000000..7b4c01d2f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.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_CMS_MODEL_REMOVEMETRICRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT RemoveMetricRuleTargetsRequest : public RpcServiceRequest + { + + public: + RemoveMetricRuleTargetsRequest(); + ~RemoveMetricRuleTargetsRequest(); + + std::vector getContactGroupTargetIds()const; + void setContactGroupTargetIds(const std::vector& contactGroupTargetIds); + std::vector getTargetIds()const; + void setTargetIds(const std::vector& targetIds); + std::vector getWebhookTargetIds()const; + void setWebhookTargetIds(const std::vector& webhookTargetIds); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + + private: + std::vector contactGroupTargetIds_; + std::vector targetIds_; + std::vector webhookTargetIds_; + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h b/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h new file mode 100644 index 000000000..e16459fcc --- /dev/null +++ b/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT RemoveMetricRuleTargetsResult : public ServiceResult + { + public: + struct FailIds + { + std::vector targetIds; + }; + + + RemoveMetricRuleTargetsResult(); + explicit RemoveMetricRuleTargetsResult(const std::string &payload); + ~RemoveMetricRuleTargetsResult(); + std::string getMessage()const; + std::string getCode()const; + FailIds getFailIds()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + FailIds failIds_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/src/CmsClient.cc b/cms/src/CmsClient.cc index e010cc801..e238ee89f 100644 --- a/cms/src/CmsClient.cc +++ b/cms/src/CmsClient.cc @@ -159,42 +159,6 @@ CmsClient::DisableEventRuleOutcomeCallable CmsClient::disableEventRuleCallable(c return task->get_future(); } -CmsClient::DescribeEventRuleOutcome CmsClient::describeEventRule(const DescribeEventRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeEventRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeEventRuleOutcome(DescribeEventRuleResult(outcome.result())); - else - return DescribeEventRuleOutcome(outcome.error()); -} - -void CmsClient::describeEventRuleAsync(const DescribeEventRuleRequest& request, const DescribeEventRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeEventRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::DescribeEventRuleOutcomeCallable CmsClient::describeEventRuleCallable(const DescribeEventRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeEventRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::StartTasksOutcome CmsClient::startTasks(const StartTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +195,42 @@ CmsClient::StartTasksOutcomeCallable CmsClient::startTasksCallable(const StartTa return task->get_future(); } +CmsClient::DescribeEventRuleOutcome CmsClient::describeEventRule(const DescribeEventRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventRuleOutcome(DescribeEventRuleResult(outcome.result())); + else + return DescribeEventRuleOutcome(outcome.error()); +} + +void CmsClient::describeEventRuleAsync(const DescribeEventRuleRequest& request, const DescribeEventRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeEventRuleOutcomeCallable CmsClient::describeEventRuleCallable(const DescribeEventRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::DescribeISPAreaCityOutcome CmsClient::describeISPAreaCity(const DescribeISPAreaCityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +267,42 @@ CmsClient::DescribeISPAreaCityOutcomeCallable CmsClient::describeISPAreaCityCall return task->get_future(); } +CmsClient::RemoveMetricRuleTargetsOutcome CmsClient::removeMetricRuleTargets(const RemoveMetricRuleTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveMetricRuleTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveMetricRuleTargetsOutcome(RemoveMetricRuleTargetsResult(outcome.result())); + else + return RemoveMetricRuleTargetsOutcome(outcome.error()); +} + +void CmsClient::removeMetricRuleTargetsAsync(const RemoveMetricRuleTargetsRequest& request, const RemoveMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeMetricRuleTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::RemoveMetricRuleTargetsOutcomeCallable CmsClient::removeMetricRuleTargetsCallable(const RemoveMetricRuleTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeMetricRuleTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::QueryCustomEventCountOutcome CmsClient::queryCustomEventCount(const QueryCustomEventCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,42 +339,6 @@ CmsClient::QueryCustomEventCountOutcomeCallable CmsClient::queryCustomEventCount return task->get_future(); } -CmsClient::ListEventRulesOutcome CmsClient::listEventRules(const ListEventRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListEventRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListEventRulesOutcome(ListEventRulesResult(outcome.result())); - else - return ListEventRulesOutcome(outcome.error()); -} - -void CmsClient::listEventRulesAsync(const ListEventRulesRequest& request, const ListEventRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listEventRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::ListEventRulesOutcomeCallable CmsClient::listEventRulesCallable(const ListEventRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listEventRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::UpdateMyGroupInstancesOutcome CmsClient::updateMyGroupInstances(const UpdateMyGroupInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +375,42 @@ CmsClient::UpdateMyGroupInstancesOutcomeCallable CmsClient::updateMyGroupInstanc return task->get_future(); } +CmsClient::ListEventRulesOutcome CmsClient::listEventRules(const ListEventRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEventRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEventRulesOutcome(ListEventRulesResult(outcome.result())); + else + return ListEventRulesOutcome(outcome.error()); +} + +void CmsClient::listEventRulesAsync(const ListEventRulesRequest& request, const ListEventRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEventRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::ListEventRulesOutcomeCallable CmsClient::listEventRulesCallable(const ListEventRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEventRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::ProfileGetOutcome CmsClient::profileGet(const ProfileGetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,42 +483,6 @@ CmsClient::PutEventTargetsOutcomeCallable CmsClient::putEventTargetsCallable(con return task->get_future(); } -CmsClient::PutGroupDynamicRuleOutcome CmsClient::putGroupDynamicRule(const PutGroupDynamicRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PutGroupDynamicRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PutGroupDynamicRuleOutcome(PutGroupDynamicRuleResult(outcome.result())); - else - return PutGroupDynamicRuleOutcome(outcome.error()); -} - -void CmsClient::putGroupDynamicRuleAsync(const PutGroupDynamicRuleRequest& request, const PutGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, putGroupDynamicRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::PutGroupDynamicRuleOutcomeCallable CmsClient::putGroupDynamicRuleCallable(const PutGroupDynamicRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->putGroupDynamicRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::UpdateMonitoringTemplateOutcome CmsClient::updateMonitoringTemplate(const UpdateMonitoringTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +519,42 @@ CmsClient::UpdateMonitoringTemplateOutcomeCallable CmsClient::updateMonitoringTe return task->get_future(); } +CmsClient::PutGroupDynamicRuleOutcome CmsClient::putGroupDynamicRule(const PutGroupDynamicRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutGroupDynamicRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutGroupDynamicRuleOutcome(PutGroupDynamicRuleResult(outcome.result())); + else + return PutGroupDynamicRuleOutcome(outcome.error()); +} + +void CmsClient::putGroupDynamicRuleAsync(const PutGroupDynamicRuleRequest& request, const PutGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putGroupDynamicRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::PutGroupDynamicRuleOutcomeCallable CmsClient::putGroupDynamicRuleCallable(const PutGroupDynamicRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putGroupDynamicRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::PutEventRuleOutcome CmsClient::putEventRule(const PutEventRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +699,42 @@ CmsClient::NodeProcessesOutcomeCallable CmsClient::nodeProcessesCallable(const N return task->get_future(); } +CmsClient::DescribeSiteMonitorISPCityListOutcome CmsClient::describeSiteMonitorISPCityList(const DescribeSiteMonitorISPCityListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSiteMonitorISPCityListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSiteMonitorISPCityListOutcome(DescribeSiteMonitorISPCityListResult(outcome.result())); + else + return DescribeSiteMonitorISPCityListOutcome(outcome.error()); +} + +void CmsClient::describeSiteMonitorISPCityListAsync(const DescribeSiteMonitorISPCityListRequest& request, const DescribeSiteMonitorISPCityListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSiteMonitorISPCityList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeSiteMonitorISPCityListOutcomeCallable CmsClient::describeSiteMonitorISPCityListCallable(const DescribeSiteMonitorISPCityListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSiteMonitorISPCityList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::ListMonitoringTemplatesOutcome CmsClient::listMonitoringTemplates(const ListMonitoringTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +951,42 @@ CmsClient::QueryMetricLastOutcomeCallable CmsClient::queryMetricLastCallable(con return task->get_future(); } +CmsClient::DescribeAlertHistoryListOutcome CmsClient::describeAlertHistoryList(const DescribeAlertHistoryListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlertHistoryListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlertHistoryListOutcome(DescribeAlertHistoryListResult(outcome.result())); + else + return DescribeAlertHistoryListOutcome(outcome.error()); +} + +void CmsClient::describeAlertHistoryListAsync(const DescribeAlertHistoryListRequest& request, const DescribeAlertHistoryListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlertHistoryList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeAlertHistoryListOutcomeCallable CmsClient::describeAlertHistoryListCallable(const DescribeAlertHistoryListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlertHistoryList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::QuerySystemEventHistogramOutcome CmsClient::querySystemEventHistogram(const QuerySystemEventHistogramRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,42 +1059,6 @@ CmsClient::DeleteEventRuleOutcomeCallable CmsClient::deleteEventRuleCallable(con return task->get_future(); } -CmsClient::TaskConfigUnhealthyOutcome CmsClient::taskConfigUnhealthy(const TaskConfigUnhealthyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskConfigUnhealthyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskConfigUnhealthyOutcome(TaskConfigUnhealthyResult(outcome.result())); - else - return TaskConfigUnhealthyOutcome(outcome.error()); -} - -void CmsClient::taskConfigUnhealthyAsync(const TaskConfigUnhealthyRequest& request, const TaskConfigUnhealthyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskConfigUnhealthy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::TaskConfigUnhealthyOutcomeCallable CmsClient::taskConfigUnhealthyCallable(const TaskConfigUnhealthyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskConfigUnhealthy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::DeleteEventTargetsOutcome CmsClient::deleteEventTargets(const DeleteEventTargetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1095,42 @@ CmsClient::DeleteEventTargetsOutcomeCallable CmsClient::deleteEventTargetsCallab return task->get_future(); } +CmsClient::TaskConfigUnhealthyOutcome CmsClient::taskConfigUnhealthy(const TaskConfigUnhealthyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TaskConfigUnhealthyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TaskConfigUnhealthyOutcome(TaskConfigUnhealthyResult(outcome.result())); + else + return TaskConfigUnhealthyOutcome(outcome.error()); +} + +void CmsClient::taskConfigUnhealthyAsync(const TaskConfigUnhealthyRequest& request, const TaskConfigUnhealthyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, taskConfigUnhealthy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::TaskConfigUnhealthyOutcomeCallable CmsClient::taskConfigUnhealthyCallable(const TaskConfigUnhealthyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->taskConfigUnhealthy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::ListProductOfActiveAlertOutcome CmsClient::listProductOfActiveAlert(const ListProductOfActiveAlertRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,42 +1167,6 @@ CmsClient::ListProductOfActiveAlertOutcomeCallable CmsClient::listProductOfActiv return task->get_future(); } -CmsClient::UpdateMyGroupAlertOutcome CmsClient::updateMyGroupAlert(const UpdateMyGroupAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMyGroupAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMyGroupAlertOutcome(UpdateMyGroupAlertResult(outcome.result())); - else - return UpdateMyGroupAlertOutcome(outcome.error()); -} - -void CmsClient::updateMyGroupAlertAsync(const UpdateMyGroupAlertRequest& request, const UpdateMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMyGroupAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateMyGroupAlertOutcomeCallable CmsClient::updateMyGroupAlertCallable(const UpdateMyGroupAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMyGroupAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::CreateMonitoringTemplateOutcome CmsClient::createMonitoringTemplate(const CreateMonitoringTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1203,42 @@ CmsClient::CreateMonitoringTemplateOutcomeCallable CmsClient::createMonitoringTe return task->get_future(); } +CmsClient::UpdateMyGroupAlertOutcome CmsClient::updateMyGroupAlert(const UpdateMyGroupAlertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMyGroupAlertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMyGroupAlertOutcome(UpdateMyGroupAlertResult(outcome.result())); + else + return UpdateMyGroupAlertOutcome(outcome.error()); +} + +void CmsClient::updateMyGroupAlertAsync(const UpdateMyGroupAlertRequest& request, const UpdateMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMyGroupAlert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::UpdateMyGroupAlertOutcomeCallable CmsClient::updateMyGroupAlertCallable(const UpdateMyGroupAlertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMyGroupAlert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::CreateMyGroupsOutcome CmsClient::createMyGroups(const CreateMyGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1635,42 @@ CmsClient::DisableActiveAlertOutcomeCallable CmsClient::disableActiveAlertCallab return task->get_future(); } +CmsClient::DescribeSiteMonitorISPAreaCityOutcome CmsClient::describeSiteMonitorISPAreaCity(const DescribeSiteMonitorISPAreaCityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSiteMonitorISPAreaCityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSiteMonitorISPAreaCityOutcome(DescribeSiteMonitorISPAreaCityResult(outcome.result())); + else + return DescribeSiteMonitorISPAreaCityOutcome(outcome.error()); +} + +void CmsClient::describeSiteMonitorISPAreaCityAsync(const DescribeSiteMonitorISPAreaCityRequest& request, const DescribeSiteMonitorISPAreaCityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSiteMonitorISPAreaCity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeSiteMonitorISPAreaCityOutcomeCallable CmsClient::describeSiteMonitorISPAreaCityCallable(const DescribeSiteMonitorISPAreaCityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSiteMonitorISPAreaCity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::PutEventOutcome CmsClient::putEvent(const PutEventRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,42 +2067,6 @@ CmsClient::TaskConfigDeleteOutcomeCallable CmsClient::taskConfigDeleteCallable(c return task->get_future(); } -CmsClient::QueryCustomEventDetailOutcome CmsClient::queryCustomEventDetail(const QueryCustomEventDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCustomEventDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCustomEventDetailOutcome(QueryCustomEventDetailResult(outcome.result())); - else - return QueryCustomEventDetailOutcome(outcome.error()); -} - -void CmsClient::queryCustomEventDetailAsync(const QueryCustomEventDetailRequest& request, const QueryCustomEventDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCustomEventDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryCustomEventDetailOutcomeCallable CmsClient::queryCustomEventDetailCallable(const QueryCustomEventDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCustomEventDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::NodeProcessCreateOutcome CmsClient::nodeProcessCreate(const NodeProcessCreateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2103,42 @@ CmsClient::NodeProcessCreateOutcomeCallable CmsClient::nodeProcessCreateCallable return task->get_future(); } +CmsClient::QueryCustomEventDetailOutcome CmsClient::queryCustomEventDetail(const QueryCustomEventDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCustomEventDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCustomEventDetailOutcome(QueryCustomEventDetailResult(outcome.result())); + else + return QueryCustomEventDetailOutcome(outcome.error()); +} + +void CmsClient::queryCustomEventDetailAsync(const QueryCustomEventDetailRequest& request, const QueryCustomEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCustomEventDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryCustomEventDetailOutcomeCallable CmsClient::queryCustomEventDetailCallable(const QueryCustomEventDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCustomEventDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::TaskConfigEnableOutcome CmsClient::taskConfigEnable(const TaskConfigEnableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2103,6 +2247,42 @@ CmsClient::TaskConfigCreateOutcomeCallable CmsClient::taskConfigCreateCallable(c return task->get_future(); } +CmsClient::PutMetricRuleTargetsOutcome CmsClient::putMetricRuleTargets(const PutMetricRuleTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutMetricRuleTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutMetricRuleTargetsOutcome(PutMetricRuleTargetsResult(outcome.result())); + else + return PutMetricRuleTargetsOutcome(outcome.error()); +} + +void CmsClient::putMetricRuleTargetsAsync(const PutMetricRuleTargetsRequest& request, const PutMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putMetricRuleTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::PutMetricRuleTargetsOutcomeCallable CmsClient::putMetricRuleTargetsCallable(const PutMetricRuleTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putMetricRuleTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::GetNotifyPolicyOutcome CmsClient::getNotifyPolicy(const GetNotifyPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,42 +2463,6 @@ CmsClient::ListEventTargetsByRuleOutcomeCallable CmsClient::listEventTargetsByRu return task->get_future(); } -CmsClient::DescribeTaskDetailOutcome CmsClient::describeTaskDetail(const DescribeTaskDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTaskDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTaskDetailOutcome(DescribeTaskDetailResult(outcome.result())); - else - return DescribeTaskDetailOutcome(outcome.error()); -} - -void CmsClient::describeTaskDetailAsync(const DescribeTaskDetailRequest& request, const DescribeTaskDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTaskDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::DescribeTaskDetailOutcomeCallable CmsClient::describeTaskDetailCallable(const DescribeTaskDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTaskDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::QueryMonitorDataOutcome CmsClient::queryMonitorData(const QueryMonitorDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,36 +2499,36 @@ CmsClient::QueryMonitorDataOutcomeCallable CmsClient::queryMonitorDataCallable(c return task->get_future(); } -CmsClient::QueryCustomMetricListOutcome CmsClient::queryCustomMetricList(const QueryCustomMetricListRequest &request) const +CmsClient::DescribeTaskDetailOutcome CmsClient::describeTaskDetail(const DescribeTaskDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryCustomMetricListOutcome(endpointOutcome.error()); + return DescribeTaskDetailOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryCustomMetricListOutcome(QueryCustomMetricListResult(outcome.result())); + return DescribeTaskDetailOutcome(DescribeTaskDetailResult(outcome.result())); else - return QueryCustomMetricListOutcome(outcome.error()); + return DescribeTaskDetailOutcome(outcome.error()); } -void CmsClient::queryCustomMetricListAsync(const QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeTaskDetailAsync(const DescribeTaskDetailRequest& request, const DescribeTaskDetailAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryCustomMetricList(request), context); + handler(this, request, describeTaskDetail(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QueryCustomMetricListOutcomeCallable CmsClient::queryCustomMetricListCallable(const QueryCustomMetricListRequest &request) const +CmsClient::DescribeTaskDetailOutcomeCallable CmsClient::describeTaskDetailCallable(const DescribeTaskDetailRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryCustomMetricList(request); + return this->describeTaskDetail(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2427,6 +2571,42 @@ CmsClient::ApplyTemplateOutcomeCallable CmsClient::applyTemplateCallable(const A return task->get_future(); } +CmsClient::QueryCustomMetricListOutcome CmsClient::queryCustomMetricList(const QueryCustomMetricListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCustomMetricListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCustomMetricListOutcome(QueryCustomMetricListResult(outcome.result())); + else + return QueryCustomMetricListOutcome(outcome.error()); +} + +void CmsClient::queryCustomMetricListAsync(const QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCustomMetricList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::QueryCustomMetricListOutcomeCallable CmsClient::queryCustomMetricListCallable(const QueryCustomMetricListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCustomMetricList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::EnableActiveAlertOutcome CmsClient::enableActiveAlert(const EnableActiveAlertRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,42 +2859,6 @@ CmsClient::ListMyGroupCategoriesOutcomeCallable CmsClient::listMyGroupCategories return task->get_future(); } -CmsClient::DeleteGroupDynamicRuleOutcome CmsClient::deleteGroupDynamicRule(const DeleteGroupDynamicRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteGroupDynamicRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteGroupDynamicRuleOutcome(DeleteGroupDynamicRuleResult(outcome.result())); - else - return DeleteGroupDynamicRuleOutcome(outcome.error()); -} - -void CmsClient::deleteGroupDynamicRuleAsync(const DeleteGroupDynamicRuleRequest& request, const DeleteGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteGroupDynamicRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::DeleteGroupDynamicRuleOutcomeCallable CmsClient::deleteGroupDynamicRuleCallable(const DeleteGroupDynamicRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteGroupDynamicRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::CreateTaskOutcome CmsClient::createTask(const CreateTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2751,6 +2895,42 @@ CmsClient::CreateTaskOutcomeCallable CmsClient::createTaskCallable(const CreateT return task->get_future(); } +CmsClient::DeleteGroupDynamicRuleOutcome CmsClient::deleteGroupDynamicRule(const DeleteGroupDynamicRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGroupDynamicRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGroupDynamicRuleOutcome(DeleteGroupDynamicRuleResult(outcome.result())); + else + return DeleteGroupDynamicRuleOutcome(outcome.error()); +} + +void CmsClient::deleteGroupDynamicRuleAsync(const DeleteGroupDynamicRuleRequest& request, const DeleteGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGroupDynamicRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteGroupDynamicRuleOutcomeCallable CmsClient::deleteGroupDynamicRuleCallable(const DeleteGroupDynamicRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGroupDynamicRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::ListMyGroupInstancesDetailsOutcome CmsClient::listMyGroupInstancesDetails(const ListMyGroupInstancesDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,42 +3327,6 @@ CmsClient::ListMyGroupsOutcomeCallable CmsClient::listMyGroupsCallable(const Lis return task->get_future(); } -CmsClient::AddMyGroupInstancesOutcome CmsClient::addMyGroupInstances(const AddMyGroupInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddMyGroupInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddMyGroupInstancesOutcome(AddMyGroupInstancesResult(outcome.result())); - else - return AddMyGroupInstancesOutcome(outcome.error()); -} - -void CmsClient::addMyGroupInstancesAsync(const AddMyGroupInstancesRequest& request, const AddMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addMyGroupInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::AddMyGroupInstancesOutcomeCallable CmsClient::addMyGroupInstancesCallable(const AddMyGroupInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addMyGroupInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::SendDryRunSystemEventOutcome CmsClient::sendDryRunSystemEvent(const SendDryRunSystemEventRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3363,42 @@ CmsClient::SendDryRunSystemEventOutcomeCallable CmsClient::sendDryRunSystemEvent return task->get_future(); } +CmsClient::AddMyGroupInstancesOutcome CmsClient::addMyGroupInstances(const AddMyGroupInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddMyGroupInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddMyGroupInstancesOutcome(AddMyGroupInstancesResult(outcome.result())); + else + return AddMyGroupInstancesOutcome(outcome.error()); +} + +void CmsClient::addMyGroupInstancesAsync(const AddMyGroupInstancesRequest& request, const AddMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addMyGroupInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::AddMyGroupInstancesOutcomeCallable CmsClient::addMyGroupInstancesCallable(const AddMyGroupInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addMyGroupInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::NodeProcessDeleteOutcome CmsClient::nodeProcessDelete(const NodeProcessDeleteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3471,6 +3651,42 @@ CmsClient::QueryStaticsErrorRateOutcomeCallable CmsClient::queryStaticsErrorRate return task->get_future(); } +CmsClient::DescribeMetricRuleTargetsOutcome CmsClient::describeMetricRuleTargets(const DescribeMetricRuleTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricRuleTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricRuleTargetsOutcome(DescribeMetricRuleTargetsResult(outcome.result())); + else + return DescribeMetricRuleTargetsOutcome(outcome.error()); +} + +void CmsClient::describeMetricRuleTargetsAsync(const DescribeMetricRuleTargetsRequest& request, const DescribeMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricRuleTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricRuleTargetsOutcomeCallable CmsClient::describeMetricRuleTargetsCallable(const DescribeMetricRuleTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricRuleTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::ListGroupDynamicRuleOutcome CmsClient::listGroupDynamicRule(const ListGroupDynamicRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3723,42 +3939,6 @@ CmsClient::ListContactGroupOutcomeCallable CmsClient::listContactGroupCallable(c return task->get_future(); } -CmsClient::DescribeContactOutcome CmsClient::describeContact(const DescribeContactRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeContactOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeContactOutcome(DescribeContactResult(outcome.result())); - else - return DescribeContactOutcome(outcome.error()); -} - -void CmsClient::describeContactAsync(const DescribeContactRequest& request, const DescribeContactAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeContact(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::DescribeContactOutcomeCallable CmsClient::describeContactCallable(const DescribeContactRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeContact(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::PutMetricAlarmOutcome CmsClient::putMetricAlarm(const PutMetricAlarmRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3795,6 +3975,42 @@ CmsClient::PutMetricAlarmOutcomeCallable CmsClient::putMetricAlarmCallable(const return task->get_future(); } +CmsClient::DescribeContactOutcome CmsClient::describeContact(const DescribeContactRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeContactOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeContactOutcome(DescribeContactResult(outcome.result())); + else + return DescribeContactOutcome(outcome.error()); +} + +void CmsClient::describeContactAsync(const DescribeContactRequest& request, const DescribeContactAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeContact(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeContactOutcomeCallable CmsClient::describeContactCallable(const DescribeContactRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeContact(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::ListNotifyPolicyOutcome CmsClient::listNotifyPolicy(const ListNotifyPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cms/src/model/AccessKeyGetRequest.cc b/cms/src/model/AccessKeyGetRequest.cc index a753f8799..14c9d04e0 100644 --- a/cms/src/model/AccessKeyGetRequest.cc +++ b/cms/src/model/AccessKeyGetRequest.cc @@ -33,6 +33,6 @@ long AccessKeyGetRequest::getUserId()const void AccessKeyGetRequest::setUserId(long userId) { userId_ = userId; - setParameter("UserId", std::to_string(userId)); + setCoreParameter("UserId", std::to_string(userId)); } diff --git a/cms/src/model/AccessKeyGetResult.cc b/cms/src/model/AccessKeyGetResult.cc index 8cd9e26a3..83bdaf6bb 100644 --- a/cms/src/model/AccessKeyGetResult.cc +++ b/cms/src/model/AccessKeyGetResult.cc @@ -35,10 +35,13 @@ AccessKeyGetResult::~AccessKeyGetResult() void AccessKeyGetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/AddMyGroupInstancesRequest.cc b/cms/src/model/AddMyGroupInstancesRequest.cc index 654156bbf..86128e8ba 100644 --- a/cms/src/model/AddMyGroupInstancesRequest.cc +++ b/cms/src/model/AddMyGroupInstancesRequest.cc @@ -33,7 +33,7 @@ std::string AddMyGroupInstancesRequest::getInstances()const void AddMyGroupInstancesRequest::setInstances(const std::string& instances) { instances_ = instances; - setParameter("Instances", instances); + setCoreParameter("Instances", instances); } long AddMyGroupInstancesRequest::getGroupId()const @@ -44,6 +44,6 @@ long AddMyGroupInstancesRequest::getGroupId()const void AddMyGroupInstancesRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } diff --git a/cms/src/model/AddMyGroupInstancesResult.cc b/cms/src/model/AddMyGroupInstancesResult.cc index 267f77aa0..ceb21ff2a 100644 --- a/cms/src/model/AddMyGroupInstancesResult.cc +++ b/cms/src/model/AddMyGroupInstancesResult.cc @@ -35,10 +35,13 @@ AddMyGroupInstancesResult::~AddMyGroupInstancesResult() void AddMyGroupInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/ApplyMonitoringTemplateRequest.cc b/cms/src/model/ApplyMonitoringTemplateRequest.cc index 92fd9936d..8bb43add1 100644 --- a/cms/src/model/ApplyMonitoringTemplateRequest.cc +++ b/cms/src/model/ApplyMonitoringTemplateRequest.cc @@ -33,7 +33,7 @@ long ApplyMonitoringTemplateRequest::getEnableStartTime()const void ApplyMonitoringTemplateRequest::setEnableStartTime(long enableStartTime) { enableStartTime_ = enableStartTime; - setParameter("EnableStartTime", std::to_string(enableStartTime)); + setCoreParameter("EnableStartTime", std::to_string(enableStartTime)); } std::string ApplyMonitoringTemplateRequest::getApplyMode()const @@ -44,7 +44,7 @@ std::string ApplyMonitoringTemplateRequest::getApplyMode()const void ApplyMonitoringTemplateRequest::setApplyMode(const std::string& applyMode) { applyMode_ = applyMode; - setParameter("ApplyMode", applyMode); + setCoreParameter("ApplyMode", applyMode); } std::string ApplyMonitoringTemplateRequest::getWebhook()const @@ -55,7 +55,7 @@ std::string ApplyMonitoringTemplateRequest::getWebhook()const void ApplyMonitoringTemplateRequest::setWebhook(const std::string& webhook) { webhook_ = webhook; - setParameter("Webhook", webhook); + setCoreParameter("Webhook", webhook); } std::string ApplyMonitoringTemplateRequest::getTemplateIds()const @@ -66,7 +66,7 @@ std::string ApplyMonitoringTemplateRequest::getTemplateIds()const void ApplyMonitoringTemplateRequest::setTemplateIds(const std::string& templateIds) { templateIds_ = templateIds; - setParameter("TemplateIds", templateIds); + setCoreParameter("TemplateIds", templateIds); } long ApplyMonitoringTemplateRequest::getEnableEndTime()const @@ -77,7 +77,7 @@ long ApplyMonitoringTemplateRequest::getEnableEndTime()const void ApplyMonitoringTemplateRequest::setEnableEndTime(long enableEndTime) { enableEndTime_ = enableEndTime; - setParameter("EnableEndTime", std::to_string(enableEndTime)); + setCoreParameter("EnableEndTime", std::to_string(enableEndTime)); } long ApplyMonitoringTemplateRequest::getGroupId()const @@ -88,7 +88,7 @@ long ApplyMonitoringTemplateRequest::getGroupId()const void ApplyMonitoringTemplateRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } long ApplyMonitoringTemplateRequest::getNotifyLevel()const @@ -99,7 +99,7 @@ long ApplyMonitoringTemplateRequest::getNotifyLevel()const void ApplyMonitoringTemplateRequest::setNotifyLevel(long notifyLevel) { notifyLevel_ = notifyLevel; - setParameter("NotifyLevel", std::to_string(notifyLevel)); + setCoreParameter("NotifyLevel", std::to_string(notifyLevel)); } long ApplyMonitoringTemplateRequest::getSilenceTime()const @@ -110,6 +110,6 @@ long ApplyMonitoringTemplateRequest::getSilenceTime()const void ApplyMonitoringTemplateRequest::setSilenceTime(long silenceTime) { silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); + setCoreParameter("SilenceTime", std::to_string(silenceTime)); } diff --git a/cms/src/model/ApplyMonitoringTemplateResult.cc b/cms/src/model/ApplyMonitoringTemplateResult.cc index 0f03d8814..f1ad839f2 100644 --- a/cms/src/model/ApplyMonitoringTemplateResult.cc +++ b/cms/src/model/ApplyMonitoringTemplateResult.cc @@ -35,10 +35,13 @@ ApplyMonitoringTemplateResult::~ApplyMonitoringTemplateResult() void ApplyMonitoringTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resourceNode = value["Resource"]; if(!resourceNode["GroupId"].isNull()) diff --git a/cms/src/model/ApplyTemplateRequest.cc b/cms/src/model/ApplyTemplateRequest.cc index 495c6d32b..3f039bdab 100644 --- a/cms/src/model/ApplyTemplateRequest.cc +++ b/cms/src/model/ApplyTemplateRequest.cc @@ -33,7 +33,7 @@ long ApplyTemplateRequest::getEnableStartTime()const void ApplyTemplateRequest::setEnableStartTime(long enableStartTime) { enableStartTime_ = enableStartTime; - setParameter("EnableStartTime", std::to_string(enableStartTime)); + setCoreParameter("EnableStartTime", std::to_string(enableStartTime)); } std::string ApplyTemplateRequest::getApplyMode()const @@ -44,7 +44,7 @@ std::string ApplyTemplateRequest::getApplyMode()const void ApplyTemplateRequest::setApplyMode(const std::string& applyMode) { applyMode_ = applyMode; - setParameter("ApplyMode", applyMode); + setCoreParameter("ApplyMode", applyMode); } std::string ApplyTemplateRequest::getTemplateIds()const @@ -55,7 +55,7 @@ std::string ApplyTemplateRequest::getTemplateIds()const void ApplyTemplateRequest::setTemplateIds(const std::string& templateIds) { templateIds_ = templateIds; - setParameter("TemplateIds", templateIds); + setCoreParameter("TemplateIds", templateIds); } long ApplyTemplateRequest::getEnableEndTime()const @@ -66,7 +66,7 @@ long ApplyTemplateRequest::getEnableEndTime()const void ApplyTemplateRequest::setEnableEndTime(long enableEndTime) { enableEndTime_ = enableEndTime; - setParameter("EnableEndTime", std::to_string(enableEndTime)); + setCoreParameter("EnableEndTime", std::to_string(enableEndTime)); } long ApplyTemplateRequest::getGroupId()const @@ -77,7 +77,7 @@ long ApplyTemplateRequest::getGroupId()const void ApplyTemplateRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } long ApplyTemplateRequest::getNotifyLevel()const @@ -88,7 +88,7 @@ long ApplyTemplateRequest::getNotifyLevel()const void ApplyTemplateRequest::setNotifyLevel(long notifyLevel) { notifyLevel_ = notifyLevel; - setParameter("NotifyLevel", std::to_string(notifyLevel)); + setCoreParameter("NotifyLevel", std::to_string(notifyLevel)); } long ApplyTemplateRequest::getSilenceTime()const @@ -99,6 +99,6 @@ long ApplyTemplateRequest::getSilenceTime()const void ApplyTemplateRequest::setSilenceTime(long silenceTime) { silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); + setCoreParameter("SilenceTime", std::to_string(silenceTime)); } diff --git a/cms/src/model/ApplyTemplateResult.cc b/cms/src/model/ApplyTemplateResult.cc index 46b19f17d..ac869da4e 100644 --- a/cms/src/model/ApplyTemplateResult.cc +++ b/cms/src/model/ApplyTemplateResult.cc @@ -35,10 +35,13 @@ ApplyTemplateResult::~ApplyTemplateResult() void ApplyTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resourceNode = value["Resource"]; auto allCreateAlertResults = value["CreateAlertResults"]["AlertResult"]; diff --git a/cms/src/model/CreateAlarmRequest.cc b/cms/src/model/CreateAlarmRequest.cc index bf3dcf860..be7f58faa 100644 --- a/cms/src/model/CreateAlarmRequest.cc +++ b/cms/src/model/CreateAlarmRequest.cc @@ -33,7 +33,7 @@ int CreateAlarmRequest::getPeriod()const void CreateAlarmRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string CreateAlarmRequest::getWebhook()const @@ -44,7 +44,7 @@ std::string CreateAlarmRequest::getWebhook()const void CreateAlarmRequest::setWebhook(const std::string& webhook) { webhook_ = webhook; - setParameter("Webhook", webhook); + setCoreParameter("Webhook", webhook); } bool CreateAlarmRequest::getDryRun()const @@ -55,7 +55,7 @@ bool CreateAlarmRequest::getDryRun()const void CreateAlarmRequest::setDryRun(bool dryRun) { dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); + setCoreParameter("DryRun", dryRun ? "true" : "false"); } std::string CreateAlarmRequest::getContactGroups()const @@ -66,7 +66,7 @@ std::string CreateAlarmRequest::getContactGroups()const void CreateAlarmRequest::setContactGroups(const std::string& contactGroups) { contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); + setCoreParameter("ContactGroups", contactGroups); } int CreateAlarmRequest::getEndTime()const @@ -77,7 +77,7 @@ int CreateAlarmRequest::getEndTime()const void CreateAlarmRequest::setEndTime(int endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } std::string CreateAlarmRequest::getThreshold()const @@ -88,7 +88,7 @@ std::string CreateAlarmRequest::getThreshold()const void CreateAlarmRequest::setThreshold(const std::string& threshold) { threshold_ = threshold; - setParameter("Threshold", threshold); + setCoreParameter("Threshold", threshold); } int CreateAlarmRequest::getStartTime()const @@ -99,7 +99,7 @@ int CreateAlarmRequest::getStartTime()const void CreateAlarmRequest::setStartTime(int startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string CreateAlarmRequest::getName()const @@ -110,7 +110,7 @@ std::string CreateAlarmRequest::getName()const void CreateAlarmRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateAlarmRequest::get_Namespace()const @@ -121,7 +121,7 @@ std::string CreateAlarmRequest::get_Namespace()const void CreateAlarmRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } int CreateAlarmRequest::getEvaluationCount()const @@ -132,7 +132,7 @@ int CreateAlarmRequest::getEvaluationCount()const void CreateAlarmRequest::setEvaluationCount(int evaluationCount) { evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); + setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); } int CreateAlarmRequest::getSilenceTime()const @@ -143,7 +143,7 @@ int CreateAlarmRequest::getSilenceTime()const void CreateAlarmRequest::setSilenceTime(int silenceTime) { silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); + setCoreParameter("SilenceTime", std::to_string(silenceTime)); } std::string CreateAlarmRequest::getMetricName()const @@ -154,7 +154,7 @@ std::string CreateAlarmRequest::getMetricName()const void CreateAlarmRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } int CreateAlarmRequest::getNotifyType()const @@ -165,7 +165,7 @@ int CreateAlarmRequest::getNotifyType()const void CreateAlarmRequest::setNotifyType(int notifyType) { notifyType_ = notifyType; - setParameter("NotifyType", std::to_string(notifyType)); + setCoreParameter("NotifyType", std::to_string(notifyType)); } std::string CreateAlarmRequest::getComparisonOperator()const @@ -176,7 +176,7 @@ std::string CreateAlarmRequest::getComparisonOperator()const void CreateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator) { comparisonOperator_ = comparisonOperator; - setParameter("ComparisonOperator", comparisonOperator); + setCoreParameter("ComparisonOperator", comparisonOperator); } std::string CreateAlarmRequest::getDimensions()const @@ -187,7 +187,7 @@ std::string CreateAlarmRequest::getDimensions()const void CreateAlarmRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } std::string CreateAlarmRequest::getStatistics()const @@ -198,6 +198,6 @@ std::string CreateAlarmRequest::getStatistics()const void CreateAlarmRequest::setStatistics(const std::string& statistics) { statistics_ = statistics; - setParameter("Statistics", statistics); + setCoreParameter("Statistics", statistics); } diff --git a/cms/src/model/CreateAlarmResult.cc b/cms/src/model/CreateAlarmResult.cc index 2302c373c..d673aebaf 100644 --- a/cms/src/model/CreateAlarmResult.cc +++ b/cms/src/model/CreateAlarmResult.cc @@ -35,10 +35,13 @@ CreateAlarmResult::~CreateAlarmResult() void CreateAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/CreateMonitoringTemplateRequest.cc b/cms/src/model/CreateMonitoringTemplateRequest.cc index 868f0e38d..f85b68c46 100644 --- a/cms/src/model/CreateMonitoringTemplateRequest.cc +++ b/cms/src/model/CreateMonitoringTemplateRequest.cc @@ -33,7 +33,7 @@ std::string CreateMonitoringTemplateRequest::getEventRuleTemplatesJson()const void CreateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson) { eventRuleTemplatesJson_ = eventRuleTemplatesJson; - setParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); + setCoreParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); } std::string CreateMonitoringTemplateRequest::getName()const @@ -44,7 +44,7 @@ std::string CreateMonitoringTemplateRequest::getName()const void CreateMonitoringTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateMonitoringTemplateRequest::get_Namespace()const @@ -55,7 +55,7 @@ std::string CreateMonitoringTemplateRequest::get_Namespace()const void CreateMonitoringTemplateRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } std::string CreateMonitoringTemplateRequest::getDescription()const @@ -66,7 +66,7 @@ std::string CreateMonitoringTemplateRequest::getDescription()const void CreateMonitoringTemplateRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateMonitoringTemplateRequest::getAlertTemplatesJson()const @@ -77,6 +77,6 @@ std::string CreateMonitoringTemplateRequest::getAlertTemplatesJson()const void CreateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson) { alertTemplatesJson_ = alertTemplatesJson; - setParameter("AlertTemplatesJson", alertTemplatesJson); + setCoreParameter("AlertTemplatesJson", alertTemplatesJson); } diff --git a/cms/src/model/CreateMonitoringTemplateResult.cc b/cms/src/model/CreateMonitoringTemplateResult.cc index fc85a038b..b43a818bc 100644 --- a/cms/src/model/CreateMonitoringTemplateResult.cc +++ b/cms/src/model/CreateMonitoringTemplateResult.cc @@ -35,10 +35,13 @@ CreateMonitoringTemplateResult::~CreateMonitoringTemplateResult() void CreateMonitoringTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/CreateMyGroupAlertBatchRequest.cc b/cms/src/model/CreateMyGroupAlertBatchRequest.cc index 861bfe804..ac3f1a623 100644 --- a/cms/src/model/CreateMyGroupAlertBatchRequest.cc +++ b/cms/src/model/CreateMyGroupAlertBatchRequest.cc @@ -33,7 +33,7 @@ long CreateMyGroupAlertBatchRequest::getGroupId()const void CreateMyGroupAlertBatchRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string CreateMyGroupAlertBatchRequest::getGroupAlertJsonArray()const @@ -44,6 +44,6 @@ std::string CreateMyGroupAlertBatchRequest::getGroupAlertJsonArray()const void CreateMyGroupAlertBatchRequest::setGroupAlertJsonArray(const std::string& groupAlertJsonArray) { groupAlertJsonArray_ = groupAlertJsonArray; - setParameter("GroupAlertJsonArray", groupAlertJsonArray); + setCoreParameter("GroupAlertJsonArray", groupAlertJsonArray); } diff --git a/cms/src/model/CreateMyGroupAlertBatchResult.cc b/cms/src/model/CreateMyGroupAlertBatchResult.cc index f5e434116..e3dd34ae0 100644 --- a/cms/src/model/CreateMyGroupAlertBatchResult.cc +++ b/cms/src/model/CreateMyGroupAlertBatchResult.cc @@ -35,10 +35,13 @@ CreateMyGroupAlertBatchResult::~CreateMyGroupAlertBatchResult() void CreateMyGroupAlertBatchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["AlertResult"]; for (auto value : allResources) diff --git a/cms/src/model/CreateMyGroupsRequest.cc b/cms/src/model/CreateMyGroupsRequest.cc index 0e1dfe951..78002be04 100644 --- a/cms/src/model/CreateMyGroupsRequest.cc +++ b/cms/src/model/CreateMyGroupsRequest.cc @@ -33,7 +33,7 @@ std::string CreateMyGroupsRequest::getContactGroups()const void CreateMyGroupsRequest::setContactGroups(const std::string& contactGroups) { contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); + setCoreParameter("ContactGroups", contactGroups); } std::string CreateMyGroupsRequest::getOptions()const @@ -44,7 +44,7 @@ std::string CreateMyGroupsRequest::getOptions()const void CreateMyGroupsRequest::setOptions(const std::string& options) { options_ = options; - setParameter("Options", options); + setCoreParameter("Options", options); } std::string CreateMyGroupsRequest::getType()const @@ -55,7 +55,7 @@ std::string CreateMyGroupsRequest::getType()const void CreateMyGroupsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } long CreateMyGroupsRequest::getServiceId()const @@ -66,7 +66,7 @@ long CreateMyGroupsRequest::getServiceId()const void CreateMyGroupsRequest::setServiceId(long serviceId) { serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + setCoreParameter("ServiceId", std::to_string(serviceId)); } std::string CreateMyGroupsRequest::getGroupName()const @@ -77,7 +77,7 @@ std::string CreateMyGroupsRequest::getGroupName()const void CreateMyGroupsRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string CreateMyGroupsRequest::getBindUrl()const @@ -88,6 +88,6 @@ std::string CreateMyGroupsRequest::getBindUrl()const void CreateMyGroupsRequest::setBindUrl(const std::string& bindUrl) { bindUrl_ = bindUrl; - setParameter("BindUrl", bindUrl); + setCoreParameter("BindUrl", bindUrl); } diff --git a/cms/src/model/CreateMyGroupsResult.cc b/cms/src/model/CreateMyGroupsResult.cc index 9f28ff100..db0c1e8a4 100644 --- a/cms/src/model/CreateMyGroupsResult.cc +++ b/cms/src/model/CreateMyGroupsResult.cc @@ -35,10 +35,13 @@ CreateMyGroupsResult::~CreateMyGroupsResult() void CreateMyGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/CreateNotifyPolicyRequest.cc b/cms/src/model/CreateNotifyPolicyRequest.cc index 39bca7771..87d48c1c3 100644 --- a/cms/src/model/CreateNotifyPolicyRequest.cc +++ b/cms/src/model/CreateNotifyPolicyRequest.cc @@ -33,7 +33,7 @@ std::string CreateNotifyPolicyRequest::getPolicyType()const void CreateNotifyPolicyRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string CreateNotifyPolicyRequest::getAlertName()const @@ -44,7 +44,7 @@ std::string CreateNotifyPolicyRequest::getAlertName()const void CreateNotifyPolicyRequest::setAlertName(const std::string& alertName) { alertName_ = alertName; - setParameter("AlertName", alertName); + setCoreParameter("AlertName", alertName); } std::string CreateNotifyPolicyRequest::getGroupId()const @@ -55,7 +55,7 @@ std::string CreateNotifyPolicyRequest::getGroupId()const void CreateNotifyPolicyRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } long CreateNotifyPolicyRequest::getEndTime()const @@ -66,7 +66,7 @@ long CreateNotifyPolicyRequest::getEndTime()const void CreateNotifyPolicyRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } long CreateNotifyPolicyRequest::getStartTime()const @@ -77,7 +77,7 @@ long CreateNotifyPolicyRequest::getStartTime()const void CreateNotifyPolicyRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string CreateNotifyPolicyRequest::getDimensions()const @@ -88,7 +88,7 @@ std::string CreateNotifyPolicyRequest::getDimensions()const void CreateNotifyPolicyRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } std::string CreateNotifyPolicyRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string CreateNotifyPolicyRequest::getAccessKeyId()const void CreateNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cms/src/model/CreateNotifyPolicyResult.cc b/cms/src/model/CreateNotifyPolicyResult.cc index 480a3aaec..b37f998e4 100644 --- a/cms/src/model/CreateNotifyPolicyResult.cc +++ b/cms/src/model/CreateNotifyPolicyResult.cc @@ -35,10 +35,13 @@ CreateNotifyPolicyResult::~CreateNotifyPolicyResult() void CreateNotifyPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/CreateTaskRequest.cc b/cms/src/model/CreateTaskRequest.cc index f0d8a10f9..5f5b959bf 100644 --- a/cms/src/model/CreateTaskRequest.cc +++ b/cms/src/model/CreateTaskRequest.cc @@ -33,7 +33,7 @@ std::string CreateTaskRequest::getCaller()const void CreateTaskRequest::setCaller(const std::string& caller) { caller_ = caller; - setParameter("Caller", caller); + setCoreParameter("Caller", caller); } std::string CreateTaskRequest::getAddress()const @@ -44,7 +44,7 @@ std::string CreateTaskRequest::getAddress()const void CreateTaskRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string CreateTaskRequest::getTaskType()const @@ -55,7 +55,7 @@ std::string CreateTaskRequest::getTaskType()const void CreateTaskRequest::setTaskType(const std::string& taskType) { taskType_ = taskType; - setParameter("TaskType", taskType); + setCoreParameter("TaskType", taskType); } std::string CreateTaskRequest::getIspCity()const @@ -66,7 +66,7 @@ std::string CreateTaskRequest::getIspCity()const void CreateTaskRequest::setIspCity(const std::string& ispCity) { ispCity_ = ispCity; - setParameter("IspCity", ispCity); + setCoreParameter("IspCity", ispCity); } std::string CreateTaskRequest::getAlertIds()const @@ -77,7 +77,7 @@ std::string CreateTaskRequest::getAlertIds()const void CreateTaskRequest::setAlertIds(const std::string& alertIds) { alertIds_ = alertIds; - setParameter("AlertIds", alertIds); + setCoreParameter("AlertIds", alertIds); } std::string CreateTaskRequest::getOptions()const @@ -88,7 +88,7 @@ std::string CreateTaskRequest::getOptions()const void CreateTaskRequest::setOptions(const std::string& options) { options_ = options; - setParameter("Options", options); + setCoreParameter("Options", options); } std::string CreateTaskRequest::getTaskName()const @@ -99,7 +99,7 @@ std::string CreateTaskRequest::getTaskName()const void CreateTaskRequest::setTaskName(const std::string& taskName) { taskName_ = taskName; - setParameter("TaskName", taskName); + setCoreParameter("TaskName", taskName); } std::string CreateTaskRequest::getInterval()const @@ -110,7 +110,7 @@ std::string CreateTaskRequest::getInterval()const void CreateTaskRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string CreateTaskRequest::getAlertRule()const @@ -121,6 +121,6 @@ std::string CreateTaskRequest::getAlertRule()const void CreateTaskRequest::setAlertRule(const std::string& alertRule) { alertRule_ = alertRule; - setParameter("AlertRule", alertRule); + setCoreParameter("AlertRule", alertRule); } diff --git a/cms/src/model/CreateTaskResult.cc b/cms/src/model/CreateTaskResult.cc index ae5f0dfaa..e08b98acd 100644 --- a/cms/src/model/CreateTaskResult.cc +++ b/cms/src/model/CreateTaskResult.cc @@ -35,10 +35,13 @@ CreateTaskResult::~CreateTaskResult() void CreateTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/DeleteAlarmRequest.cc b/cms/src/model/DeleteAlarmRequest.cc index 95f2a1a48..85d651e00 100644 --- a/cms/src/model/DeleteAlarmRequest.cc +++ b/cms/src/model/DeleteAlarmRequest.cc @@ -33,6 +33,6 @@ std::string DeleteAlarmRequest::getId()const void DeleteAlarmRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } diff --git a/cms/src/model/DeleteAlarmResult.cc b/cms/src/model/DeleteAlarmResult.cc index 8e957dc57..b1caf73bf 100644 --- a/cms/src/model/DeleteAlarmResult.cc +++ b/cms/src/model/DeleteAlarmResult.cc @@ -35,10 +35,13 @@ DeleteAlarmResult::~DeleteAlarmResult() void DeleteAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/DeleteCustomMetricRequest.cc b/cms/src/model/DeleteCustomMetricRequest.cc index 417185cbc..811e1701c 100644 --- a/cms/src/model/DeleteCustomMetricRequest.cc +++ b/cms/src/model/DeleteCustomMetricRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCustomMetricRequest::getGroupId()const void DeleteCustomMetricRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DeleteCustomMetricRequest::getMetricName()const @@ -44,7 +44,7 @@ std::string DeleteCustomMetricRequest::getMetricName()const void DeleteCustomMetricRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } std::string DeleteCustomMetricRequest::getUUID()const @@ -55,7 +55,7 @@ std::string DeleteCustomMetricRequest::getUUID()const void DeleteCustomMetricRequest::setUUID(const std::string& uUID) { uUID_ = uUID; - setParameter("UUID", uUID); + setCoreParameter("UUID", uUID); } std::string DeleteCustomMetricRequest::getMd5()const @@ -66,6 +66,6 @@ std::string DeleteCustomMetricRequest::getMd5()const void DeleteCustomMetricRequest::setMd5(const std::string& md5) { md5_ = md5; - setParameter("Md5", md5); + setCoreParameter("Md5", md5); } diff --git a/cms/src/model/DeleteCustomMetricResult.cc b/cms/src/model/DeleteCustomMetricResult.cc index b8acc4e6d..dc1833eeb 100644 --- a/cms/src/model/DeleteCustomMetricResult.cc +++ b/cms/src/model/DeleteCustomMetricResult.cc @@ -35,10 +35,13 @@ DeleteCustomMetricResult::~DeleteCustomMetricResult() void DeleteCustomMetricResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/DeleteEventRuleRequest.cc b/cms/src/model/DeleteEventRuleRequest.cc index 00b180cf1..53ef91045 100644 --- a/cms/src/model/DeleteEventRuleRequest.cc +++ b/cms/src/model/DeleteEventRuleRequest.cc @@ -34,7 +34,7 @@ void DeleteEventRuleRequest::setRuleNames(const std::vector& ruleNa { ruleNames_ = ruleNames; for(int i = 0; i!= ruleNames.size(); i++) - setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); + setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); } std::string DeleteEventRuleRequest::getRuleName()const @@ -45,6 +45,6 @@ std::string DeleteEventRuleRequest::getRuleName()const void DeleteEventRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } diff --git a/cms/src/model/DeleteEventRuleResult.cc b/cms/src/model/DeleteEventRuleResult.cc index 4dc175e61..40db9a1b5 100644 --- a/cms/src/model/DeleteEventRuleResult.cc +++ b/cms/src/model/DeleteEventRuleResult.cc @@ -35,10 +35,13 @@ DeleteEventRuleResult::~DeleteEventRuleResult() void DeleteEventRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/DeleteEventTargetsRequest.cc b/cms/src/model/DeleteEventTargetsRequest.cc index 407129470..149b3567a 100644 --- a/cms/src/model/DeleteEventTargetsRequest.cc +++ b/cms/src/model/DeleteEventTargetsRequest.cc @@ -34,7 +34,7 @@ void DeleteEventTargetsRequest::setIds(const std::vector& ids) { ids_ = ids; for(int i = 0; i!= ids.size(); i++) - setParameter("Ids."+ std::to_string(i), ids.at(i)); + setCoreParameter("Ids."+ std::to_string(i), ids.at(i)); } std::string DeleteEventTargetsRequest::getRuleName()const @@ -45,6 +45,6 @@ std::string DeleteEventTargetsRequest::getRuleName()const void DeleteEventTargetsRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } diff --git a/cms/src/model/DeleteEventTargetsResult.cc b/cms/src/model/DeleteEventTargetsResult.cc index 107c62a74..66c1b8a06 100644 --- a/cms/src/model/DeleteEventTargetsResult.cc +++ b/cms/src/model/DeleteEventTargetsResult.cc @@ -35,10 +35,13 @@ DeleteEventTargetsResult::~DeleteEventTargetsResult() void DeleteEventTargetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/DeleteGroupDynamicRuleRequest.cc b/cms/src/model/DeleteGroupDynamicRuleRequest.cc index 0fdf8014d..73417128f 100644 --- a/cms/src/model/DeleteGroupDynamicRuleRequest.cc +++ b/cms/src/model/DeleteGroupDynamicRuleRequest.cc @@ -33,7 +33,7 @@ long DeleteGroupDynamicRuleRequest::getGroupId()const void DeleteGroupDynamicRuleRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string DeleteGroupDynamicRuleRequest::getCategory()const @@ -44,6 +44,6 @@ std::string DeleteGroupDynamicRuleRequest::getCategory()const void DeleteGroupDynamicRuleRequest::setCategory(const std::string& category) { category_ = category; - setParameter("Category", category); + setCoreParameter("Category", category); } diff --git a/cms/src/model/DeleteGroupDynamicRuleResult.cc b/cms/src/model/DeleteGroupDynamicRuleResult.cc index 4cf8d1158..691426380 100644 --- a/cms/src/model/DeleteGroupDynamicRuleResult.cc +++ b/cms/src/model/DeleteGroupDynamicRuleResult.cc @@ -35,10 +35,13 @@ DeleteGroupDynamicRuleResult::~DeleteGroupDynamicRuleResult() void DeleteGroupDynamicRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/DeleteMonitoringTemplateRequest.cc b/cms/src/model/DeleteMonitoringTemplateRequest.cc index 2ea7748c7..34b93acf8 100644 --- a/cms/src/model/DeleteMonitoringTemplateRequest.cc +++ b/cms/src/model/DeleteMonitoringTemplateRequest.cc @@ -33,6 +33,6 @@ std::string DeleteMonitoringTemplateRequest::getId()const void DeleteMonitoringTemplateRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } diff --git a/cms/src/model/DeleteMonitoringTemplateResult.cc b/cms/src/model/DeleteMonitoringTemplateResult.cc index 8727f77ab..1b9c67323 100644 --- a/cms/src/model/DeleteMonitoringTemplateResult.cc +++ b/cms/src/model/DeleteMonitoringTemplateResult.cc @@ -35,10 +35,13 @@ DeleteMonitoringTemplateResult::~DeleteMonitoringTemplateResult() void DeleteMonitoringTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resourceNode = value["Resource"]; if(!resourceNode["Name"].isNull()) diff --git a/cms/src/model/DeleteMyGroupInstancesRequest.cc b/cms/src/model/DeleteMyGroupInstancesRequest.cc index 238f09913..a235c808f 100644 --- a/cms/src/model/DeleteMyGroupInstancesRequest.cc +++ b/cms/src/model/DeleteMyGroupInstancesRequest.cc @@ -33,7 +33,7 @@ std::string DeleteMyGroupInstancesRequest::getInstanceIds()const void DeleteMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds) { instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); + setCoreParameter("InstanceIds", instanceIds); } std::string DeleteMyGroupInstancesRequest::getInstanceIdList()const @@ -44,7 +44,7 @@ std::string DeleteMyGroupInstancesRequest::getInstanceIdList()const void DeleteMyGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList) { instanceIdList_ = instanceIdList; - setParameter("InstanceIdList", instanceIdList); + setCoreParameter("InstanceIdList", instanceIdList); } long DeleteMyGroupInstancesRequest::getGroupId()const @@ -55,7 +55,7 @@ long DeleteMyGroupInstancesRequest::getGroupId()const void DeleteMyGroupInstancesRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string DeleteMyGroupInstancesRequest::getCategory()const @@ -66,6 +66,6 @@ std::string DeleteMyGroupInstancesRequest::getCategory()const void DeleteMyGroupInstancesRequest::setCategory(const std::string& category) { category_ = category; - setParameter("Category", category); + setCoreParameter("Category", category); } diff --git a/cms/src/model/DeleteMyGroupInstancesResult.cc b/cms/src/model/DeleteMyGroupInstancesResult.cc index ff0b41c50..664d78fad 100644 --- a/cms/src/model/DeleteMyGroupInstancesResult.cc +++ b/cms/src/model/DeleteMyGroupInstancesResult.cc @@ -35,10 +35,13 @@ DeleteMyGroupInstancesResult::~DeleteMyGroupInstancesResult() void DeleteMyGroupInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/DeleteMyGroupsRequest.cc b/cms/src/model/DeleteMyGroupsRequest.cc index db05f4b88..1bf2c0dc5 100644 --- a/cms/src/model/DeleteMyGroupsRequest.cc +++ b/cms/src/model/DeleteMyGroupsRequest.cc @@ -33,6 +33,6 @@ long DeleteMyGroupsRequest::getGroupId()const void DeleteMyGroupsRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } diff --git a/cms/src/model/DeleteMyGroupsResult.cc b/cms/src/model/DeleteMyGroupsResult.cc index 01fb5628c..b81b3207c 100644 --- a/cms/src/model/DeleteMyGroupsResult.cc +++ b/cms/src/model/DeleteMyGroupsResult.cc @@ -35,10 +35,13 @@ DeleteMyGroupsResult::~DeleteMyGroupsResult() void DeleteMyGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; if(!groupNode["GroupId"].isNull()) diff --git a/cms/src/model/DeleteNotifyPolicyRequest.cc b/cms/src/model/DeleteNotifyPolicyRequest.cc index f90046ff5..3bbb1c2a7 100644 --- a/cms/src/model/DeleteNotifyPolicyRequest.cc +++ b/cms/src/model/DeleteNotifyPolicyRequest.cc @@ -33,7 +33,7 @@ std::string DeleteNotifyPolicyRequest::getPolicyType()const void DeleteNotifyPolicyRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string DeleteNotifyPolicyRequest::getAlertName()const @@ -44,7 +44,7 @@ std::string DeleteNotifyPolicyRequest::getAlertName()const void DeleteNotifyPolicyRequest::setAlertName(const std::string& alertName) { alertName_ = alertName; - setParameter("AlertName", alertName); + setCoreParameter("AlertName", alertName); } std::string DeleteNotifyPolicyRequest::getGroupId()const @@ -55,7 +55,7 @@ std::string DeleteNotifyPolicyRequest::getGroupId()const void DeleteNotifyPolicyRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DeleteNotifyPolicyRequest::getId()const @@ -66,7 +66,7 @@ std::string DeleteNotifyPolicyRequest::getId()const void DeleteNotifyPolicyRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteNotifyPolicyRequest::getDimensions()const @@ -77,7 +77,7 @@ std::string DeleteNotifyPolicyRequest::getDimensions()const void DeleteNotifyPolicyRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } std::string DeleteNotifyPolicyRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteNotifyPolicyRequest::getAccessKeyId()const void DeleteNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cms/src/model/DeleteNotifyPolicyResult.cc b/cms/src/model/DeleteNotifyPolicyResult.cc index e9159d6b3..a980cbc2c 100644 --- a/cms/src/model/DeleteNotifyPolicyResult.cc +++ b/cms/src/model/DeleteNotifyPolicyResult.cc @@ -35,10 +35,13 @@ DeleteNotifyPolicyResult::~DeleteNotifyPolicyResult() void DeleteNotifyPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/DeleteTasksRequest.cc b/cms/src/model/DeleteTasksRequest.cc index a55f4985d..a17456f5a 100644 --- a/cms/src/model/DeleteTasksRequest.cc +++ b/cms/src/model/DeleteTasksRequest.cc @@ -33,7 +33,7 @@ int DeleteTasksRequest::getIsDeleteAlarms()const void DeleteTasksRequest::setIsDeleteAlarms(int isDeleteAlarms) { isDeleteAlarms_ = isDeleteAlarms; - setParameter("IsDeleteAlarms", std::to_string(isDeleteAlarms)); + setCoreParameter("IsDeleteAlarms", std::to_string(isDeleteAlarms)); } std::string DeleteTasksRequest::getTaskIds()const @@ -44,6 +44,6 @@ std::string DeleteTasksRequest::getTaskIds()const void DeleteTasksRequest::setTaskIds(const std::string& taskIds) { taskIds_ = taskIds; - setParameter("TaskIds", taskIds); + setCoreParameter("TaskIds", taskIds); } diff --git a/cms/src/model/DeleteTasksResult.cc b/cms/src/model/DeleteTasksResult.cc index 023e1ea47..999128e0f 100644 --- a/cms/src/model/DeleteTasksResult.cc +++ b/cms/src/model/DeleteTasksResult.cc @@ -35,10 +35,13 @@ DeleteTasksResult::~DeleteTasksResult() void DeleteTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/DescribeAlarmHistoryRequest.cc b/cms/src/model/DescribeAlarmHistoryRequest.cc index 37b07a22c..b726dd101 100644 --- a/cms/src/model/DescribeAlarmHistoryRequest.cc +++ b/cms/src/model/DescribeAlarmHistoryRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAlarmHistoryRequest::getAlertName()const void DescribeAlarmHistoryRequest::setAlertName(const std::string& alertName) { alertName_ = alertName; - setParameter("AlertName", alertName); + setCoreParameter("AlertName", alertName); } std::string DescribeAlarmHistoryRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string DescribeAlarmHistoryRequest::getGroupId()const void DescribeAlarmHistoryRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DescribeAlarmHistoryRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string DescribeAlarmHistoryRequest::getEndTime()const void DescribeAlarmHistoryRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeAlarmHistoryRequest::getRuleName()const @@ -66,7 +66,7 @@ std::string DescribeAlarmHistoryRequest::getRuleName()const void DescribeAlarmHistoryRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } std::string DescribeAlarmHistoryRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeAlarmHistoryRequest::getStartTime()const void DescribeAlarmHistoryRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } bool DescribeAlarmHistoryRequest::getAscending()const @@ -88,7 +88,7 @@ bool DescribeAlarmHistoryRequest::getAscending()const void DescribeAlarmHistoryRequest::setAscending(bool ascending) { ascending_ = ascending; - setParameter("Ascending", ascending ? "true" : "false"); + setCoreParameter("Ascending", ascending ? "true" : "false"); } std::string DescribeAlarmHistoryRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeAlarmHistoryRequest::getAccessKeyId()const void DescribeAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeAlarmHistoryRequest::getOnlyCount()const @@ -110,7 +110,7 @@ bool DescribeAlarmHistoryRequest::getOnlyCount()const void DescribeAlarmHistoryRequest::setOnlyCount(bool onlyCount) { onlyCount_ = onlyCount; - setParameter("OnlyCount", onlyCount ? "true" : "false"); + setCoreParameter("OnlyCount", onlyCount ? "true" : "false"); } std::string DescribeAlarmHistoryRequest::get_Namespace()const @@ -121,7 +121,7 @@ std::string DescribeAlarmHistoryRequest::get_Namespace()const void DescribeAlarmHistoryRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } int DescribeAlarmHistoryRequest::getPageSize()const @@ -132,7 +132,7 @@ int DescribeAlarmHistoryRequest::getPageSize()const void DescribeAlarmHistoryRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeAlarmHistoryRequest::getState()const @@ -143,7 +143,7 @@ std::string DescribeAlarmHistoryRequest::getState()const void DescribeAlarmHistoryRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } int DescribeAlarmHistoryRequest::getPage()const @@ -154,7 +154,7 @@ int DescribeAlarmHistoryRequest::getPage()const void DescribeAlarmHistoryRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string DescribeAlarmHistoryRequest::getMetricName()const @@ -165,7 +165,7 @@ std::string DescribeAlarmHistoryRequest::getMetricName()const void DescribeAlarmHistoryRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } std::string DescribeAlarmHistoryRequest::getStatus()const @@ -176,6 +176,6 @@ std::string DescribeAlarmHistoryRequest::getStatus()const void DescribeAlarmHistoryRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cms/src/model/DescribeAlarmHistoryResult.cc b/cms/src/model/DescribeAlarmHistoryResult.cc index 050cc36c6..0ac8919b6 100644 --- a/cms/src/model/DescribeAlarmHistoryResult.cc +++ b/cms/src/model/DescribeAlarmHistoryResult.cc @@ -35,10 +35,13 @@ DescribeAlarmHistoryResult::~DescribeAlarmHistoryResult() void DescribeAlarmHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"]; for (auto value : allAlarmHistoryList) diff --git a/cms/src/model/DescribeAlarmsForResourcesRequest.cc b/cms/src/model/DescribeAlarmsForResourcesRequest.cc index 2322b8608..a109c9dd4 100644 --- a/cms/src/model/DescribeAlarmsForResourcesRequest.cc +++ b/cms/src/model/DescribeAlarmsForResourcesRequest.cc @@ -33,7 +33,7 @@ bool DescribeAlarmsForResourcesRequest::getEnableState()const void DescribeAlarmsForResourcesRequest::setEnableState(bool enableState) { enableState_ = enableState; - setParameter("EnableState", enableState ? "true" : "false"); + setCoreParameter("EnableState", enableState ? "true" : "false"); } std::string DescribeAlarmsForResourcesRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string DescribeAlarmsForResourcesRequest::getGroupId()const void DescribeAlarmsForResourcesRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DescribeAlarmsForResourcesRequest::get_Namespace()const @@ -55,7 +55,7 @@ std::string DescribeAlarmsForResourcesRequest::get_Namespace()const void DescribeAlarmsForResourcesRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } std::string DescribeAlarmsForResourcesRequest::getPageSize()const @@ -66,7 +66,7 @@ std::string DescribeAlarmsForResourcesRequest::getPageSize()const void DescribeAlarmsForResourcesRequest::setPageSize(const std::string& pageSize) { pageSize_ = pageSize; - setParameter("PageSize", pageSize); + setCoreParameter("PageSize", pageSize); } std::string DescribeAlarmsForResourcesRequest::getAlertState()const @@ -77,7 +77,7 @@ std::string DescribeAlarmsForResourcesRequest::getAlertState()const void DescribeAlarmsForResourcesRequest::setAlertState(const std::string& alertState) { alertState_ = alertState; - setParameter("AlertState", alertState); + setCoreParameter("AlertState", alertState); } std::string DescribeAlarmsForResourcesRequest::getPage()const @@ -88,7 +88,7 @@ std::string DescribeAlarmsForResourcesRequest::getPage()const void DescribeAlarmsForResourcesRequest::setPage(const std::string& page) { page_ = page; - setParameter("Page", page); + setCoreParameter("Page", page); } std::string DescribeAlarmsForResourcesRequest::getMetricName()const @@ -99,7 +99,7 @@ std::string DescribeAlarmsForResourcesRequest::getMetricName()const void DescribeAlarmsForResourcesRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } std::string DescribeAlarmsForResourcesRequest::getDimensions()const @@ -110,6 +110,6 @@ std::string DescribeAlarmsForResourcesRequest::getDimensions()const void DescribeAlarmsForResourcesRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } diff --git a/cms/src/model/DescribeAlarmsForResourcesResult.cc b/cms/src/model/DescribeAlarmsForResourcesResult.cc index bfdb36900..94a88636b 100644 --- a/cms/src/model/DescribeAlarmsForResourcesResult.cc +++ b/cms/src/model/DescribeAlarmsForResourcesResult.cc @@ -35,10 +35,13 @@ DescribeAlarmsForResourcesResult::~DescribeAlarmsForResourcesResult() void DescribeAlarmsForResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDatapoints = value["Datapoints"]["Alarm"]; for (auto value : allDatapoints) diff --git a/cms/src/model/DescribeAlarmsRequest.cc b/cms/src/model/DescribeAlarmsRequest.cc index e048a3cc6..15c4a65e3 100644 --- a/cms/src/model/DescribeAlarmsRequest.cc +++ b/cms/src/model/DescribeAlarmsRequest.cc @@ -33,7 +33,7 @@ bool DescribeAlarmsRequest::getEnableState()const void DescribeAlarmsRequest::setEnableState(bool enableState) { enableState_ = enableState; - setParameter("EnableState", enableState ? "true" : "false"); + setCoreParameter("EnableState", enableState ? "true" : "false"); } std::string DescribeAlarmsRequest::getNames()const @@ -44,7 +44,7 @@ std::string DescribeAlarmsRequest::getNames()const void DescribeAlarmsRequest::setNames(const std::string& names) { names_ = names; - setParameter("Names", names); + setCoreParameter("Names", names); } std::string DescribeAlarmsRequest::getDisplayName()const @@ -55,7 +55,7 @@ std::string DescribeAlarmsRequest::getDisplayName()const void DescribeAlarmsRequest::setDisplayName(const std::string& displayName) { displayName_ = displayName; - setParameter("DisplayName", displayName); + setCoreParameter("DisplayName", displayName); } std::string DescribeAlarmsRequest::getGroupId()const @@ -66,7 +66,7 @@ std::string DescribeAlarmsRequest::getGroupId()const void DescribeAlarmsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DescribeAlarmsRequest::get_Namespace()const @@ -77,7 +77,7 @@ std::string DescribeAlarmsRequest::get_Namespace()const void DescribeAlarmsRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } std::string DescribeAlarmsRequest::getPageSize()const @@ -88,7 +88,7 @@ std::string DescribeAlarmsRequest::getPageSize()const void DescribeAlarmsRequest::setPageSize(const std::string& pageSize) { pageSize_ = pageSize; - setParameter("PageSize", pageSize); + setCoreParameter("PageSize", pageSize); } std::string DescribeAlarmsRequest::getAlertState()const @@ -99,7 +99,7 @@ std::string DescribeAlarmsRequest::getAlertState()const void DescribeAlarmsRequest::setAlertState(const std::string& alertState) { alertState_ = alertState; - setParameter("AlertState", alertState); + setCoreParameter("AlertState", alertState); } std::string DescribeAlarmsRequest::getNameKeyword()const @@ -110,7 +110,7 @@ std::string DescribeAlarmsRequest::getNameKeyword()const void DescribeAlarmsRequest::setNameKeyword(const std::string& nameKeyword) { nameKeyword_ = nameKeyword; - setParameter("NameKeyword", nameKeyword); + setCoreParameter("NameKeyword", nameKeyword); } std::string DescribeAlarmsRequest::getGroupBy()const @@ -121,7 +121,7 @@ std::string DescribeAlarmsRequest::getGroupBy()const void DescribeAlarmsRequest::setGroupBy(const std::string& groupBy) { groupBy_ = groupBy; - setParameter("GroupBy", groupBy); + setCoreParameter("GroupBy", groupBy); } std::string DescribeAlarmsRequest::getPage()const @@ -132,7 +132,7 @@ std::string DescribeAlarmsRequest::getPage()const void DescribeAlarmsRequest::setPage(const std::string& page) { page_ = page; - setParameter("Page", page); + setCoreParameter("Page", page); } std::string DescribeAlarmsRequest::getMetricName()const @@ -143,6 +143,6 @@ std::string DescribeAlarmsRequest::getMetricName()const void DescribeAlarmsRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } diff --git a/cms/src/model/DescribeAlarmsResult.cc b/cms/src/model/DescribeAlarmsResult.cc index 6d11a304b..896f75de6 100644 --- a/cms/src/model/DescribeAlarmsResult.cc +++ b/cms/src/model/DescribeAlarmsResult.cc @@ -35,10 +35,13 @@ DescribeAlarmsResult::~DescribeAlarmsResult() void DescribeAlarmsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDatapoints = value["Datapoints"]["Alarm"]; for (auto value : allDatapoints) diff --git a/cms/src/model/DescribeAlertHistoryListRequest.cc b/cms/src/model/DescribeAlertHistoryListRequest.cc new file mode 100644 index 000000000..2ab32d08f --- /dev/null +++ b/cms/src/model/DescribeAlertHistoryListRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeAlertHistoryListRequest; + +DescribeAlertHistoryListRequest::DescribeAlertHistoryListRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeAlertHistoryList") +{} + +DescribeAlertHistoryListRequest::~DescribeAlertHistoryListRequest() +{} + +std::string DescribeAlertHistoryListRequest::getAlertName()const +{ + return alertName_; +} + +void DescribeAlertHistoryListRequest::setAlertName(const std::string& alertName) +{ + alertName_ = alertName; + setCoreParameter("AlertName", alertName); +} + +std::string DescribeAlertHistoryListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeAlertHistoryListRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeAlertHistoryListRequest::getRuleName()const +{ + return ruleName_; +} + +void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::string DescribeAlertHistoryListRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +bool DescribeAlertHistoryListRequest::getAscending()const +{ + return ascending_; +} + +void DescribeAlertHistoryListRequest::setAscending(bool ascending) +{ + ascending_ = ascending; + setCoreParameter("Ascending", ascending ? "true" : "false"); +} + +std::string DescribeAlertHistoryListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAlertHistoryListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DescribeAlertHistoryListRequest::getOnlyCount()const +{ + return onlyCount_; +} + +void DescribeAlertHistoryListRequest::setOnlyCount(bool onlyCount) +{ + onlyCount_ = onlyCount; + setCoreParameter("OnlyCount", onlyCount ? "true" : "false"); +} + +std::string DescribeAlertHistoryListRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +int DescribeAlertHistoryListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAlertHistoryListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeAlertHistoryListRequest::getState()const +{ + return state_; +} + +void DescribeAlertHistoryListRequest::setState(const std::string& state) +{ + state_ = state; + setCoreParameter("State", state); +} + +int DescribeAlertHistoryListRequest::getPage()const +{ + return page_; +} + +void DescribeAlertHistoryListRequest::setPage(int page) +{ + page_ = page; + setCoreParameter("Page", std::to_string(page)); +} + +std::string DescribeAlertHistoryListRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeAlertHistoryListRequest::getStatus()const +{ + return status_; +} + +void DescribeAlertHistoryListRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/cms/src/model/DescribeAlertHistoryListResult.cc b/cms/src/model/DescribeAlertHistoryListResult.cc new file mode 100644 index 000000000..dd25d09a5 --- /dev/null +++ b/cms/src/model/DescribeAlertHistoryListResult.cc @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeAlertHistoryListResult::DescribeAlertHistoryListResult() : + ServiceResult() +{} + +DescribeAlertHistoryListResult::DescribeAlertHistoryListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlertHistoryListResult::~DescribeAlertHistoryListResult() +{} + +void DescribeAlertHistoryListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"]; + for (auto value : allAlarmHistoryList) + { + AlarmHistory alarmHistoryListObject; + if(!value["Id"].isNull()) + alarmHistoryListObject.id = value["Id"].asString(); + if(!value["AlertName"].isNull()) + alarmHistoryListObject.alertName = value["AlertName"].asString(); + if(!value["GroupId"].isNull()) + alarmHistoryListObject.groupId = value["GroupId"].asString(); + if(!value["Namespace"].isNull()) + alarmHistoryListObject._namespace = value["Namespace"].asString(); + if(!value["MetricName"].isNull()) + alarmHistoryListObject.metricName = value["MetricName"].asString(); + if(!value["Dimensions"].isNull()) + alarmHistoryListObject.dimensions = value["Dimensions"].asString(); + if(!value["Expression"].isNull()) + alarmHistoryListObject.expression = value["Expression"].asString(); + if(!value["EvaluationCount"].isNull()) + alarmHistoryListObject.evaluationCount = std::stoi(value["EvaluationCount"].asString()); + if(!value["Value"].isNull()) + alarmHistoryListObject.value = value["Value"].asString(); + if(!value["AlertTime"].isNull()) + alarmHistoryListObject.alertTime = std::stol(value["AlertTime"].asString()); + if(!value["LastTime"].isNull()) + alarmHistoryListObject.lastTime = std::stol(value["LastTime"].asString()); + if(!value["Level"].isNull()) + alarmHistoryListObject.level = value["Level"].asString(); + if(!value["PreLevel"].isNull()) + alarmHistoryListObject.preLevel = value["PreLevel"].asString(); + if(!value["RuleName"].isNull()) + alarmHistoryListObject.ruleName = value["RuleName"].asString(); + if(!value["State"].isNull()) + alarmHistoryListObject.state = value["State"].asString(); + if(!value["Status"].isNull()) + alarmHistoryListObject.status = std::stoi(value["Status"].asString()); + if(!value["UserId"].isNull()) + alarmHistoryListObject.userId = value["UserId"].asString(); + if(!value["Webhooks"].isNull()) + alarmHistoryListObject.webhooks = value["Webhooks"].asString(); + if(!value["InstanceName"].isNull()) + alarmHistoryListObject.instanceName = value["InstanceName"].asString(); + auto allContactGroups = value["ContactGroups"]["ContactGroup"]; + for (auto value : allContactGroups) + alarmHistoryListObject.contactGroups.push_back(value.asString()); + auto allContacts = value["Contacts"]["Contact"]; + for (auto value : allContacts) + alarmHistoryListObject.contacts.push_back(value.asString()); + auto allContactALIIMs = value["ContactALIIMs"]["ContactALIIM"]; + for (auto value : allContactALIIMs) + alarmHistoryListObject.contactALIIMs.push_back(value.asString()); + auto allContactSmses = value["ContactSmses"]["ContactSms"]; + for (auto value : allContactSmses) + alarmHistoryListObject.contactSmses.push_back(value.asString()); + auto allContactMails = value["ContactMails"]["ContactMail"]; + for (auto value : allContactMails) + alarmHistoryListObject.contactMails.push_back(value.asString()); + alarmHistoryList_.push_back(alarmHistoryListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Total"].isNull()) + total_ = value["Total"].asString(); + +} + +std::vector DescribeAlertHistoryListResult::getAlarmHistoryList()const +{ + return alarmHistoryList_; +} + +std::string DescribeAlertHistoryListResult::getMessage()const +{ + return message_; +} + +std::string DescribeAlertHistoryListResult::getTotal()const +{ + return total_; +} + +std::string DescribeAlertHistoryListResult::getCode()const +{ + return code_; +} + +bool DescribeAlertHistoryListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeContactRequest.cc b/cms/src/model/DescribeContactRequest.cc index 6cd2f45c8..20f3f99fd 100644 --- a/cms/src/model/DescribeContactRequest.cc +++ b/cms/src/model/DescribeContactRequest.cc @@ -33,6 +33,6 @@ std::string DescribeContactRequest::getContactName()const void DescribeContactRequest::setContactName(const std::string& contactName) { contactName_ = contactName; - setParameter("ContactName", contactName); + setCoreParameter("ContactName", contactName); } diff --git a/cms/src/model/DescribeContactResult.cc b/cms/src/model/DescribeContactResult.cc index b074f4050..ae0095862 100644 --- a/cms/src/model/DescribeContactResult.cc +++ b/cms/src/model/DescribeContactResult.cc @@ -35,10 +35,13 @@ DescribeContactResult::~DescribeContactResult() void DescribeContactResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto datapointsNode = value["Datapoints"]; if(!datapointsNode["Name"].isNull()) diff --git a/cms/src/model/DescribeEventRuleRequest.cc b/cms/src/model/DescribeEventRuleRequest.cc index bec1314c7..28e87e8e6 100644 --- a/cms/src/model/DescribeEventRuleRequest.cc +++ b/cms/src/model/DescribeEventRuleRequest.cc @@ -33,6 +33,6 @@ std::string DescribeEventRuleRequest::getRuleName()const void DescribeEventRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } diff --git a/cms/src/model/DescribeEventRuleResult.cc b/cms/src/model/DescribeEventRuleResult.cc index 2f40a3d07..738c33f9b 100644 --- a/cms/src/model/DescribeEventRuleResult.cc +++ b/cms/src/model/DescribeEventRuleResult.cc @@ -35,10 +35,13 @@ DescribeEventRuleResult::~DescribeEventRuleResult() void DescribeEventRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; if(!resultNode["Description"].isNull()) diff --git a/cms/src/model/DescribeISPAreaCityRequest.cc b/cms/src/model/DescribeISPAreaCityRequest.cc index a823d01bf..a94f2e0fa 100644 --- a/cms/src/model/DescribeISPAreaCityRequest.cc +++ b/cms/src/model/DescribeISPAreaCityRequest.cc @@ -33,7 +33,7 @@ std::string DescribeISPAreaCityRequest::getCity()const void DescribeISPAreaCityRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); + setCoreParameter("City", city); } std::string DescribeISPAreaCityRequest::getIsp()const @@ -44,6 +44,6 @@ std::string DescribeISPAreaCityRequest::getIsp()const void DescribeISPAreaCityRequest::setIsp(const std::string& isp) { isp_ = isp; - setParameter("Isp", isp); + setCoreParameter("Isp", isp); } diff --git a/cms/src/model/DescribeISPAreaCityResult.cc b/cms/src/model/DescribeISPAreaCityResult.cc index c5a014bff..7f6a6f545 100644 --- a/cms/src/model/DescribeISPAreaCityResult.cc +++ b/cms/src/model/DescribeISPAreaCityResult.cc @@ -35,10 +35,13 @@ DescribeISPAreaCityResult::~DescribeISPAreaCityResult() void DescribeISPAreaCityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/DescribeMetricRuleTargetsRequest.cc b/cms/src/model/DescribeMetricRuleTargetsRequest.cc new file mode 100644 index 000000000..22fc1e557 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleTargetsRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cms::Model::DescribeMetricRuleTargetsRequest; + +DescribeMetricRuleTargetsRequest::DescribeMetricRuleTargetsRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeMetricRuleTargets") +{} + +DescribeMetricRuleTargetsRequest::~DescribeMetricRuleTargetsRequest() +{} + +std::string DescribeMetricRuleTargetsRequest::getRuleName()const +{ + return ruleName_; +} + +void DescribeMetricRuleTargetsRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/DescribeMetricRuleTargetsResult.cc b/cms/src/model/DescribeMetricRuleTargetsResult.cc new file mode 100644 index 000000000..f91b471a3 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleTargetsResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeMetricRuleTargetsResult::DescribeMetricRuleTargetsResult() : + ServiceResult() +{} + +DescribeMetricRuleTargetsResult::DescribeMetricRuleTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMetricRuleTargetsResult::~DescribeMetricRuleTargetsResult() +{} + +void DescribeMetricRuleTargetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTargets = value["Targets"]["Target"]; + for (auto value : allTargets) + { + Target targetsObject; + if(!value["Id"].isNull()) + targetsObject.id = value["Id"].asString(); + if(!value["Arn"].isNull()) + targetsObject.arn = value["Arn"].asString(); + if(!value["Level"].isNull()) + targetsObject.level = value["Level"].asString(); + targets_.push_back(targetsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeMetricRuleTargetsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeMetricRuleTargetsResult::getTargets()const +{ + return targets_; +} + +std::string DescribeMetricRuleTargetsResult::getCode()const +{ + return code_; +} + diff --git a/cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc b/cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc new file mode 100644 index 000000000..974c3b6bb --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cms::Model::DescribeSiteMonitorISPAreaCityRequest; + +DescribeSiteMonitorISPAreaCityRequest::DescribeSiteMonitorISPAreaCityRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeSiteMonitorISPAreaCity") +{} + +DescribeSiteMonitorISPAreaCityRequest::~DescribeSiteMonitorISPAreaCityRequest() +{} + +std::string DescribeSiteMonitorISPAreaCityRequest::getCity()const +{ + return city_; +} + +void DescribeSiteMonitorISPAreaCityRequest::setCity(const std::string& city) +{ + city_ = city; + setCoreParameter("City", city); +} + +std::string DescribeSiteMonitorISPAreaCityRequest::getIsp()const +{ + return isp_; +} + +void DescribeSiteMonitorISPAreaCityRequest::setIsp(const std::string& isp) +{ + isp_ = isp; + setCoreParameter("Isp", isp); +} + diff --git a/cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc b/cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc new file mode 100644 index 000000000..bf3a72d02 --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeSiteMonitorISPAreaCityResult::DescribeSiteMonitorISPAreaCityResult() : + ServiceResult() +{} + +DescribeSiteMonitorISPAreaCityResult::DescribeSiteMonitorISPAreaCityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSiteMonitorISPAreaCityResult::~DescribeSiteMonitorISPAreaCityResult() +{} + +void DescribeSiteMonitorISPAreaCityResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allIspCityList = value["IspCityList"]["IspCity"]; + for (auto value : allIspCityList) + { + IspCity ispCityListObject; + if(!value["City"].isNull()) + ispCityListObject.city = value["City"].asString(); + if(!value["Isp"].isNull()) + ispCityListObject.isp = value["Isp"].asString(); + if(!value["CityName"].isNull()) + ispCityListObject.cityName = value["CityName"].asString(); + if(!value["IspName"].isNull()) + ispCityListObject.ispName = value["IspName"].asString(); + if(!value["Country"].isNull()) + ispCityListObject.country = value["Country"].asString(); + if(!value["Region"].isNull()) + ispCityListObject.region = value["Region"].asString(); + ispCityList_.push_back(ispCityListObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeSiteMonitorISPAreaCityResult::getMessage()const +{ + return message_; +} + +std::string DescribeSiteMonitorISPAreaCityResult::getData()const +{ + return data_; +} + +std::string DescribeSiteMonitorISPAreaCityResult::getCode()const +{ + return code_; +} + +std::vector DescribeSiteMonitorISPAreaCityResult::getIspCityList()const +{ + return ispCityList_; +} + +std::string DescribeSiteMonitorISPAreaCityResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc b/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc new file mode 100644 index 000000000..37dbc4f7a --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cms::Model::DescribeSiteMonitorISPCityListRequest; + +DescribeSiteMonitorISPCityListRequest::DescribeSiteMonitorISPCityListRequest() : + RpcServiceRequest("cms", "2018-03-08", "DescribeSiteMonitorISPCityList") +{} + +DescribeSiteMonitorISPCityListRequest::~DescribeSiteMonitorISPCityListRequest() +{} + +std::string DescribeSiteMonitorISPCityListRequest::getCity()const +{ + return city_; +} + +void DescribeSiteMonitorISPCityListRequest::setCity(const std::string& city) +{ + city_ = city; + setCoreParameter("City", city); +} + +std::string DescribeSiteMonitorISPCityListRequest::getIsp()const +{ + return isp_; +} + +void DescribeSiteMonitorISPCityListRequest::setIsp(const std::string& isp) +{ + isp_ = isp; + setCoreParameter("Isp", isp); +} + diff --git a/cms/src/model/DescribeSiteMonitorISPCityListResult.cc b/cms/src/model/DescribeSiteMonitorISPCityListResult.cc new file mode 100644 index 000000000..c94794168 --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorISPCityListResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeSiteMonitorISPCityListResult::DescribeSiteMonitorISPCityListResult() : + ServiceResult() +{} + +DescribeSiteMonitorISPCityListResult::DescribeSiteMonitorISPCityListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSiteMonitorISPCityListResult::~DescribeSiteMonitorISPCityListResult() +{} + +void DescribeSiteMonitorISPCityListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allIspCityList = value["IspCityList"]["IspCity"]; + for (auto value : allIspCityList) + { + IspCity ispCityListObject; + if(!value["Isp"].isNull()) + ispCityListObject.isp = value["Isp"].asString(); + if(!value["City"].isNull()) + ispCityListObject.city = value["City"].asString(); + if(!value["IspName.zh_CN"].isNull()) + ispCityListObject.ispNamezh_CN = value["IspName.zh_CN"].asString(); + if(!value["CityName.zh_CN"].isNull()) + ispCityListObject.cityNamezh_CN = value["CityName.zh_CN"].asString(); + if(!value["Region.zh_CN"].isNull()) + ispCityListObject.regionzh_CN = value["Region.zh_CN"].asString(); + if(!value["Country.zh_CN"].isNull()) + ispCityListObject.countryzh_CN = value["Country.zh_CN"].asString(); + ispCityList_.push_back(ispCityListObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string DescribeSiteMonitorISPCityListResult::getMessage()const +{ + return message_; +} + +std::string DescribeSiteMonitorISPCityListResult::getCode()const +{ + return code_; +} + +std::vector DescribeSiteMonitorISPCityListResult::getIspCityList()const +{ + return ispCityList_; +} + +std::string DescribeSiteMonitorISPCityListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeTaskDetailRequest.cc b/cms/src/model/DescribeTaskDetailRequest.cc index 7d5b5d642..baf1dc88d 100644 --- a/cms/src/model/DescribeTaskDetailRequest.cc +++ b/cms/src/model/DescribeTaskDetailRequest.cc @@ -33,6 +33,6 @@ std::string DescribeTaskDetailRequest::getTaskId()const void DescribeTaskDetailRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/DescribeTaskDetailResult.cc b/cms/src/model/DescribeTaskDetailResult.cc index f63abb2cc..a0c5183e1 100644 --- a/cms/src/model/DescribeTaskDetailResult.cc +++ b/cms/src/model/DescribeTaskDetailResult.cc @@ -35,10 +35,13 @@ DescribeTaskDetailResult::~DescribeTaskDetailResult() void DescribeTaskDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/DescribeTasksRequest.cc b/cms/src/model/DescribeTasksRequest.cc index c52539d79..39c704c16 100644 --- a/cms/src/model/DescribeTasksRequest.cc +++ b/cms/src/model/DescribeTasksRequest.cc @@ -33,7 +33,7 @@ std::string DescribeTasksRequest::getTaskType()const void DescribeTasksRequest::setTaskType(const std::string& taskType) { taskType_ = taskType; - setParameter("TaskType", taskType); + setCoreParameter("TaskType", taskType); } int DescribeTasksRequest::getPageSize()const @@ -44,7 +44,7 @@ int DescribeTasksRequest::getPageSize()const void DescribeTasksRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeTasksRequest::getPage()const @@ -55,7 +55,7 @@ int DescribeTasksRequest::getPage()const void DescribeTasksRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string DescribeTasksRequest::getKeyword()const @@ -66,7 +66,7 @@ std::string DescribeTasksRequest::getKeyword()const void DescribeTasksRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } std::string DescribeTasksRequest::getTaskId()const @@ -77,6 +77,6 @@ std::string DescribeTasksRequest::getTaskId()const void DescribeTasksRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/DescribeTasksResult.cc b/cms/src/model/DescribeTasksResult.cc index b86ed169a..e31374fa6 100644 --- a/cms/src/model/DescribeTasksResult.cc +++ b/cms/src/model/DescribeTasksResult.cc @@ -35,10 +35,13 @@ DescribeTasksResult::~DescribeTasksResult() void DescribeTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/DisableActiveAlertRequest.cc b/cms/src/model/DisableActiveAlertRequest.cc index 571b64c28..d59d17fa8 100644 --- a/cms/src/model/DisableActiveAlertRequest.cc +++ b/cms/src/model/DisableActiveAlertRequest.cc @@ -33,7 +33,7 @@ std::string DisableActiveAlertRequest::getProduct()const void DisableActiveAlertRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DisableActiveAlertRequest::getUserId()const @@ -44,6 +44,6 @@ std::string DisableActiveAlertRequest::getUserId()const void DisableActiveAlertRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/cms/src/model/DisableActiveAlertResult.cc b/cms/src/model/DisableActiveAlertResult.cc index 8e73969e6..3a9bc1fb0 100644 --- a/cms/src/model/DisableActiveAlertResult.cc +++ b/cms/src/model/DisableActiveAlertResult.cc @@ -35,10 +35,13 @@ DisableActiveAlertResult::~DisableActiveAlertResult() void DisableActiveAlertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/DisableAlarmRequest.cc b/cms/src/model/DisableAlarmRequest.cc index f8d18d6d7..4b9b7b06d 100644 --- a/cms/src/model/DisableAlarmRequest.cc +++ b/cms/src/model/DisableAlarmRequest.cc @@ -33,6 +33,6 @@ std::string DisableAlarmRequest::getId()const void DisableAlarmRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } diff --git a/cms/src/model/DisableAlarmResult.cc b/cms/src/model/DisableAlarmResult.cc index 9bc285a75..b558d1f87 100644 --- a/cms/src/model/DisableAlarmResult.cc +++ b/cms/src/model/DisableAlarmResult.cc @@ -35,10 +35,13 @@ DisableAlarmResult::~DisableAlarmResult() void DisableAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/DisableEventRuleRequest.cc b/cms/src/model/DisableEventRuleRequest.cc index 38220c48d..64c6bd213 100644 --- a/cms/src/model/DisableEventRuleRequest.cc +++ b/cms/src/model/DisableEventRuleRequest.cc @@ -34,7 +34,7 @@ void DisableEventRuleRequest::setRuleNames(const std::vector& ruleN { ruleNames_ = ruleNames; for(int i = 0; i!= ruleNames.size(); i++) - setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); + setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); } std::string DisableEventRuleRequest::getRuleName()const @@ -45,6 +45,6 @@ std::string DisableEventRuleRequest::getRuleName()const void DisableEventRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } diff --git a/cms/src/model/DisableEventRuleResult.cc b/cms/src/model/DisableEventRuleResult.cc index 5dc8b2499..885d00ec5 100644 --- a/cms/src/model/DisableEventRuleResult.cc +++ b/cms/src/model/DisableEventRuleResult.cc @@ -35,10 +35,13 @@ DisableEventRuleResult::~DisableEventRuleResult() void DisableEventRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/EnableActiveAlertRequest.cc b/cms/src/model/EnableActiveAlertRequest.cc index fedd5d786..3d94a1818 100644 --- a/cms/src/model/EnableActiveAlertRequest.cc +++ b/cms/src/model/EnableActiveAlertRequest.cc @@ -33,7 +33,7 @@ std::string EnableActiveAlertRequest::getProduct()const void EnableActiveAlertRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string EnableActiveAlertRequest::getUserId()const @@ -44,6 +44,6 @@ std::string EnableActiveAlertRequest::getUserId()const void EnableActiveAlertRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/cms/src/model/EnableActiveAlertResult.cc b/cms/src/model/EnableActiveAlertResult.cc index afcecca42..159fe68e4 100644 --- a/cms/src/model/EnableActiveAlertResult.cc +++ b/cms/src/model/EnableActiveAlertResult.cc @@ -35,10 +35,13 @@ EnableActiveAlertResult::~EnableActiveAlertResult() void EnableActiveAlertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/EnableAlarmRequest.cc b/cms/src/model/EnableAlarmRequest.cc index bd4b9bae4..32eadb7ac 100644 --- a/cms/src/model/EnableAlarmRequest.cc +++ b/cms/src/model/EnableAlarmRequest.cc @@ -33,6 +33,6 @@ std::string EnableAlarmRequest::getId()const void EnableAlarmRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } diff --git a/cms/src/model/EnableAlarmResult.cc b/cms/src/model/EnableAlarmResult.cc index 39dc060f6..b0c49c688 100644 --- a/cms/src/model/EnableAlarmResult.cc +++ b/cms/src/model/EnableAlarmResult.cc @@ -35,10 +35,13 @@ EnableAlarmResult::~EnableAlarmResult() void EnableAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/EnableEventRuleRequest.cc b/cms/src/model/EnableEventRuleRequest.cc index 3127b62a1..3a9672b74 100644 --- a/cms/src/model/EnableEventRuleRequest.cc +++ b/cms/src/model/EnableEventRuleRequest.cc @@ -34,7 +34,7 @@ void EnableEventRuleRequest::setRuleNames(const std::vector& ruleNa { ruleNames_ = ruleNames; for(int i = 0; i!= ruleNames.size(); i++) - setParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); + setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); } std::string EnableEventRuleRequest::getRuleName()const @@ -45,6 +45,6 @@ std::string EnableEventRuleRequest::getRuleName()const void EnableEventRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } diff --git a/cms/src/model/EnableEventRuleResult.cc b/cms/src/model/EnableEventRuleResult.cc index 78ad6cf74..c8350451b 100644 --- a/cms/src/model/EnableEventRuleResult.cc +++ b/cms/src/model/EnableEventRuleResult.cc @@ -35,10 +35,13 @@ EnableEventRuleResult::~EnableEventRuleResult() void EnableEventRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/GetContactsRequest.cc b/cms/src/model/GetContactsRequest.cc index 2754625b2..40818d600 100644 --- a/cms/src/model/GetContactsRequest.cc +++ b/cms/src/model/GetContactsRequest.cc @@ -33,6 +33,6 @@ std::string GetContactsRequest::getGroupName()const void GetContactsRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/cms/src/model/GetContactsResult.cc b/cms/src/model/GetContactsResult.cc index 21ab1ebd9..8bf22d6f1 100644 --- a/cms/src/model/GetContactsResult.cc +++ b/cms/src/model/GetContactsResult.cc @@ -35,10 +35,13 @@ GetContactsResult::~GetContactsResult() void GetContactsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto datapointsNode = value["Datapoints"]; if(!datapointsNode["Name"].isNull()) diff --git a/cms/src/model/GetMonitoringTemplateRequest.cc b/cms/src/model/GetMonitoringTemplateRequest.cc index 4cf4fd436..13a1e8c83 100644 --- a/cms/src/model/GetMonitoringTemplateRequest.cc +++ b/cms/src/model/GetMonitoringTemplateRequest.cc @@ -33,7 +33,7 @@ std::string GetMonitoringTemplateRequest::getName()const void GetMonitoringTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string GetMonitoringTemplateRequest::getId()const @@ -44,6 +44,6 @@ std::string GetMonitoringTemplateRequest::getId()const void GetMonitoringTemplateRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } diff --git a/cms/src/model/GetMonitoringTemplateResult.cc b/cms/src/model/GetMonitoringTemplateResult.cc index 6e29777c5..08573c12a 100644 --- a/cms/src/model/GetMonitoringTemplateResult.cc +++ b/cms/src/model/GetMonitoringTemplateResult.cc @@ -35,10 +35,13 @@ GetMonitoringTemplateResult::~GetMonitoringTemplateResult() void GetMonitoringTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resourceNode = value["Resource"]; if(!resourceNode["Name"].isNull()) diff --git a/cms/src/model/GetMyGroupAlertRequest.cc b/cms/src/model/GetMyGroupAlertRequest.cc index 099f482bd..fea67ce98 100644 --- a/cms/src/model/GetMyGroupAlertRequest.cc +++ b/cms/src/model/GetMyGroupAlertRequest.cc @@ -33,7 +33,7 @@ long GetMyGroupAlertRequest::getGroupId()const void GetMyGroupAlertRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string GetMyGroupAlertRequest::getAlertName()const @@ -44,6 +44,6 @@ std::string GetMyGroupAlertRequest::getAlertName()const void GetMyGroupAlertRequest::setAlertName(const std::string& alertName) { alertName_ = alertName; - setParameter("AlertName", alertName); + setCoreParameter("AlertName", alertName); } diff --git a/cms/src/model/GetMyGroupAlertResult.cc b/cms/src/model/GetMyGroupAlertResult.cc index 6baa8da69..b5f7d8213 100644 --- a/cms/src/model/GetMyGroupAlertResult.cc +++ b/cms/src/model/GetMyGroupAlertResult.cc @@ -35,10 +35,13 @@ GetMyGroupAlertResult::~GetMyGroupAlertResult() void GetMyGroupAlertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto groupAlertNode = value["GroupAlert"]; if(!groupAlertNode["GroupId"].isNull()) diff --git a/cms/src/model/GetMyGroupsRequest.cc b/cms/src/model/GetMyGroupsRequest.cc index c504584ba..b2a40292d 100644 --- a/cms/src/model/GetMyGroupsRequest.cc +++ b/cms/src/model/GetMyGroupsRequest.cc @@ -33,7 +33,7 @@ bool GetMyGroupsRequest::getSelectContactGroups()const void GetMyGroupsRequest::setSelectContactGroups(bool selectContactGroups) { selectContactGroups_ = selectContactGroups; - setParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); + setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); } std::string GetMyGroupsRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string GetMyGroupsRequest::getInstanceId()const void GetMyGroupsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } long GetMyGroupsRequest::getGroupId()const @@ -55,7 +55,7 @@ long GetMyGroupsRequest::getGroupId()const void GetMyGroupsRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string GetMyGroupsRequest::getType()const @@ -66,7 +66,7 @@ std::string GetMyGroupsRequest::getType()const void GetMyGroupsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string GetMyGroupsRequest::getGroupName()const @@ -77,7 +77,7 @@ std::string GetMyGroupsRequest::getGroupName()const void GetMyGroupsRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string GetMyGroupsRequest::getBindUrl()const @@ -88,6 +88,6 @@ std::string GetMyGroupsRequest::getBindUrl()const void GetMyGroupsRequest::setBindUrl(const std::string& bindUrl) { bindUrl_ = bindUrl; - setParameter("BindUrl", bindUrl); + setCoreParameter("BindUrl", bindUrl); } diff --git a/cms/src/model/GetMyGroupsResult.cc b/cms/src/model/GetMyGroupsResult.cc index a6e3f8922..ad4650d53 100644 --- a/cms/src/model/GetMyGroupsResult.cc +++ b/cms/src/model/GetMyGroupsResult.cc @@ -35,10 +35,13 @@ GetMyGroupsResult::~GetMyGroupsResult() void GetMyGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; if(!groupNode["GroupId"].isNull()) diff --git a/cms/src/model/GetNotifyPolicyRequest.cc b/cms/src/model/GetNotifyPolicyRequest.cc index a8d1fadea..7e2c069e1 100644 --- a/cms/src/model/GetNotifyPolicyRequest.cc +++ b/cms/src/model/GetNotifyPolicyRequest.cc @@ -33,7 +33,7 @@ std::string GetNotifyPolicyRequest::getPolicyType()const void GetNotifyPolicyRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string GetNotifyPolicyRequest::getAlertName()const @@ -44,7 +44,7 @@ std::string GetNotifyPolicyRequest::getAlertName()const void GetNotifyPolicyRequest::setAlertName(const std::string& alertName) { alertName_ = alertName; - setParameter("AlertName", alertName); + setCoreParameter("AlertName", alertName); } std::string GetNotifyPolicyRequest::getGroupId()const @@ -55,7 +55,7 @@ std::string GetNotifyPolicyRequest::getGroupId()const void GetNotifyPolicyRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string GetNotifyPolicyRequest::getId()const @@ -66,7 +66,7 @@ std::string GetNotifyPolicyRequest::getId()const void GetNotifyPolicyRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string GetNotifyPolicyRequest::getDimensions()const @@ -77,7 +77,7 @@ std::string GetNotifyPolicyRequest::getDimensions()const void GetNotifyPolicyRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } std::string GetNotifyPolicyRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string GetNotifyPolicyRequest::getAccessKeyId()const void GetNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cms/src/model/GetNotifyPolicyResult.cc b/cms/src/model/GetNotifyPolicyResult.cc index 0b81dce2e..12f24bced 100644 --- a/cms/src/model/GetNotifyPolicyResult.cc +++ b/cms/src/model/GetNotifyPolicyResult.cc @@ -35,10 +35,13 @@ GetNotifyPolicyResult::~GetNotifyPolicyResult() void GetNotifyPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; if(!resultNode["AlertName"].isNull()) diff --git a/cms/src/model/ListActiveAlertRuleRequest.cc b/cms/src/model/ListActiveAlertRuleRequest.cc index 2b0637c01..d3292cdb7 100644 --- a/cms/src/model/ListActiveAlertRuleRequest.cc +++ b/cms/src/model/ListActiveAlertRuleRequest.cc @@ -33,7 +33,7 @@ std::string ListActiveAlertRuleRequest::getProduct()const void ListActiveAlertRuleRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string ListActiveAlertRuleRequest::getUserId()const @@ -44,6 +44,6 @@ std::string ListActiveAlertRuleRequest::getUserId()const void ListActiveAlertRuleRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/cms/src/model/ListActiveAlertRuleResult.cc b/cms/src/model/ListActiveAlertRuleResult.cc index 3a4dee6ea..e811240c1 100644 --- a/cms/src/model/ListActiveAlertRuleResult.cc +++ b/cms/src/model/ListActiveAlertRuleResult.cc @@ -35,10 +35,13 @@ ListActiveAlertRuleResult::~ListActiveAlertRuleResult() void ListActiveAlertRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDatapoints = value["Datapoints"]["Alarm"]; for (auto value : allDatapoints) diff --git a/cms/src/model/ListAlarmHistoryRequest.cc b/cms/src/model/ListAlarmHistoryRequest.cc index c4bee632b..dc491bbb1 100644 --- a/cms/src/model/ListAlarmHistoryRequest.cc +++ b/cms/src/model/ListAlarmHistoryRequest.cc @@ -33,7 +33,7 @@ std::string ListAlarmHistoryRequest::getCursor()const void ListAlarmHistoryRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } int ListAlarmHistoryRequest::getSize()const @@ -44,7 +44,7 @@ int ListAlarmHistoryRequest::getSize()const void ListAlarmHistoryRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ListAlarmHistoryRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string ListAlarmHistoryRequest::getEndTime()const void ListAlarmHistoryRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string ListAlarmHistoryRequest::getId()const @@ -66,7 +66,7 @@ std::string ListAlarmHistoryRequest::getId()const void ListAlarmHistoryRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListAlarmHistoryRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string ListAlarmHistoryRequest::getStartTime()const void ListAlarmHistoryRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string ListAlarmHistoryRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListAlarmHistoryRequest::getAccessKeyId()const void ListAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cms/src/model/ListAlarmHistoryResult.cc b/cms/src/model/ListAlarmHistoryResult.cc index e33dd7520..066c04074 100644 --- a/cms/src/model/ListAlarmHistoryResult.cc +++ b/cms/src/model/ListAlarmHistoryResult.cc @@ -35,10 +35,13 @@ ListAlarmHistoryResult::~ListAlarmHistoryResult() void ListAlarmHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlarmHistoryList = value["AlarmHistoryList"]["AlarmHistory"]; for (auto value : allAlarmHistoryList) diff --git a/cms/src/model/ListAlarmRequest.cc b/cms/src/model/ListAlarmRequest.cc index 30c25e22c..bde26d530 100644 --- a/cms/src/model/ListAlarmRequest.cc +++ b/cms/src/model/ListAlarmRequest.cc @@ -33,7 +33,7 @@ bool ListAlarmRequest::getIsEnable()const void ListAlarmRequest::setIsEnable(bool isEnable) { isEnable_ = isEnable; - setParameter("IsEnable", isEnable ? "true" : "false"); + setCoreParameter("IsEnable", isEnable ? "true" : "false"); } std::string ListAlarmRequest::getName()const @@ -44,7 +44,7 @@ std::string ListAlarmRequest::getName()const void ListAlarmRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ListAlarmRequest::get_Namespace()const @@ -55,7 +55,7 @@ std::string ListAlarmRequest::get_Namespace()const void ListAlarmRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } int ListAlarmRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListAlarmRequest::getPageSize()const void ListAlarmRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListAlarmRequest::getId()const @@ -77,7 +77,7 @@ std::string ListAlarmRequest::getId()const void ListAlarmRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListAlarmRequest::getState()const @@ -88,7 +88,7 @@ std::string ListAlarmRequest::getState()const void ListAlarmRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string ListAlarmRequest::getDimension()const @@ -99,7 +99,7 @@ std::string ListAlarmRequest::getDimension()const void ListAlarmRequest::setDimension(const std::string& dimension) { dimension_ = dimension; - setParameter("Dimension", dimension); + setCoreParameter("Dimension", dimension); } int ListAlarmRequest::getPageNumber()const @@ -110,6 +110,6 @@ int ListAlarmRequest::getPageNumber()const void ListAlarmRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cms/src/model/ListAlarmResult.cc b/cms/src/model/ListAlarmResult.cc index b68e858e6..5da179219 100644 --- a/cms/src/model/ListAlarmResult.cc +++ b/cms/src/model/ListAlarmResult.cc @@ -35,10 +35,13 @@ ListAlarmResult::~ListAlarmResult() void ListAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlarmList = value["AlarmList"]["Alarm"]; for (auto value : allAlarmList) diff --git a/cms/src/model/ListContactGroupRequest.cc b/cms/src/model/ListContactGroupRequest.cc index f9bb676e9..1563e19ef 100644 --- a/cms/src/model/ListContactGroupRequest.cc +++ b/cms/src/model/ListContactGroupRequest.cc @@ -33,7 +33,7 @@ int ListContactGroupRequest::getPageSize()const void ListContactGroupRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListContactGroupRequest::getPageNumber()const @@ -44,6 +44,6 @@ int ListContactGroupRequest::getPageNumber()const void ListContactGroupRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cms/src/model/ListContactGroupResult.cc b/cms/src/model/ListContactGroupResult.cc index a1f29d386..bd103203c 100644 --- a/cms/src/model/ListContactGroupResult.cc +++ b/cms/src/model/ListContactGroupResult.cc @@ -35,10 +35,13 @@ ListContactGroupResult::~ListContactGroupResult() void ListContactGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allContactGroups = value["ContactGroups"]["ContactGroup"]; for (const auto &item : allContactGroups) diff --git a/cms/src/model/ListEventRulesRequest.cc b/cms/src/model/ListEventRulesRequest.cc index b683328a3..94a7d6aea 100644 --- a/cms/src/model/ListEventRulesRequest.cc +++ b/cms/src/model/ListEventRulesRequest.cc @@ -33,7 +33,7 @@ std::string ListEventRulesRequest::getGroupId()const void ListEventRulesRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string ListEventRulesRequest::getPageSize()const @@ -44,7 +44,7 @@ std::string ListEventRulesRequest::getPageSize()const void ListEventRulesRequest::setPageSize(const std::string& pageSize) { pageSize_ = pageSize; - setParameter("PageSize", pageSize); + setCoreParameter("PageSize", pageSize); } std::string ListEventRulesRequest::getNamePrefix()const @@ -55,7 +55,7 @@ std::string ListEventRulesRequest::getNamePrefix()const void ListEventRulesRequest::setNamePrefix(const std::string& namePrefix) { namePrefix_ = namePrefix; - setParameter("NamePrefix", namePrefix); + setCoreParameter("NamePrefix", namePrefix); } std::string ListEventRulesRequest::getPage()const @@ -66,6 +66,6 @@ std::string ListEventRulesRequest::getPage()const void ListEventRulesRequest::setPage(const std::string& page) { page_ = page; - setParameter("Page", page); + setCoreParameter("Page", page); } diff --git a/cms/src/model/ListEventRulesResult.cc b/cms/src/model/ListEventRulesResult.cc index da3da383c..ba1543127 100644 --- a/cms/src/model/ListEventRulesResult.cc +++ b/cms/src/model/ListEventRulesResult.cc @@ -35,10 +35,13 @@ ListEventRulesResult::~ListEventRulesResult() void ListEventRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDatapoints = value["Datapoints"]["EventRule"]; for (auto value : allDatapoints) diff --git a/cms/src/model/ListEventTargetsByRuleRequest.cc b/cms/src/model/ListEventTargetsByRuleRequest.cc index 38ca7f815..81c4994a5 100644 --- a/cms/src/model/ListEventTargetsByRuleRequest.cc +++ b/cms/src/model/ListEventTargetsByRuleRequest.cc @@ -33,6 +33,6 @@ std::string ListEventTargetsByRuleRequest::getRuleName()const void ListEventTargetsByRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } diff --git a/cms/src/model/ListEventTargetsByRuleResult.cc b/cms/src/model/ListEventTargetsByRuleResult.cc index 12286ac1a..9bb60fb6e 100644 --- a/cms/src/model/ListEventTargetsByRuleResult.cc +++ b/cms/src/model/ListEventTargetsByRuleResult.cc @@ -35,10 +35,13 @@ ListEventTargetsByRuleResult::~ListEventTargetsByRuleResult() void ListEventTargetsByRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allContactParameters = value["ContactParameters"]["ContactParameter"]; for (auto value : allContactParameters) diff --git a/cms/src/model/ListGroupDynamicRuleRequest.cc b/cms/src/model/ListGroupDynamicRuleRequest.cc index 1831c9e24..cb06d514a 100644 --- a/cms/src/model/ListGroupDynamicRuleRequest.cc +++ b/cms/src/model/ListGroupDynamicRuleRequest.cc @@ -33,6 +33,6 @@ long ListGroupDynamicRuleRequest::getGroupId()const void ListGroupDynamicRuleRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } diff --git a/cms/src/model/ListGroupDynamicRuleResult.cc b/cms/src/model/ListGroupDynamicRuleResult.cc index 1b7904c1d..f9cbb551d 100644 --- a/cms/src/model/ListGroupDynamicRuleResult.cc +++ b/cms/src/model/ListGroupDynamicRuleResult.cc @@ -35,10 +35,13 @@ ListGroupDynamicRuleResult::~ListGroupDynamicRuleResult() void ListGroupDynamicRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResource = value["Resource"]["ResourceItem"]; for (auto value : allResource) diff --git a/cms/src/model/ListMonitoringTemplatesRequest.cc b/cms/src/model/ListMonitoringTemplatesRequest.cc index 96248fe60..916caebf2 100644 --- a/cms/src/model/ListMonitoringTemplatesRequest.cc +++ b/cms/src/model/ListMonitoringTemplatesRequest.cc @@ -33,7 +33,7 @@ bool ListMonitoringTemplatesRequest::getTotal()const void ListMonitoringTemplatesRequest::setTotal(bool total) { total_ = total; - setParameter("Total", total ? "true" : "false"); + setCoreParameter("Total", total ? "true" : "false"); } std::string ListMonitoringTemplatesRequest::getName()const @@ -44,7 +44,7 @@ std::string ListMonitoringTemplatesRequest::getName()const void ListMonitoringTemplatesRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long ListMonitoringTemplatesRequest::getPageSize()const @@ -55,7 +55,7 @@ long ListMonitoringTemplatesRequest::getPageSize()const void ListMonitoringTemplatesRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListMonitoringTemplatesRequest::getId()const @@ -66,7 +66,7 @@ long ListMonitoringTemplatesRequest::getId()const void ListMonitoringTemplatesRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } bool ListMonitoringTemplatesRequest::getHistory()const @@ -77,7 +77,7 @@ bool ListMonitoringTemplatesRequest::getHistory()const void ListMonitoringTemplatesRequest::setHistory(bool history) { history_ = history; - setParameter("History", history ? "true" : "false"); + setCoreParameter("History", history ? "true" : "false"); } std::string ListMonitoringTemplatesRequest::getKeyword()const @@ -88,7 +88,7 @@ std::string ListMonitoringTemplatesRequest::getKeyword()const void ListMonitoringTemplatesRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } long ListMonitoringTemplatesRequest::getPageNumber()const @@ -99,6 +99,6 @@ long ListMonitoringTemplatesRequest::getPageNumber()const void ListMonitoringTemplatesRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cms/src/model/ListMonitoringTemplatesResult.cc b/cms/src/model/ListMonitoringTemplatesResult.cc index 46724b5ae..c89808816 100644 --- a/cms/src/model/ListMonitoringTemplatesResult.cc +++ b/cms/src/model/ListMonitoringTemplatesResult.cc @@ -35,10 +35,13 @@ ListMonitoringTemplatesResult::~ListMonitoringTemplatesResult() void ListMonitoringTemplatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) diff --git a/cms/src/model/ListMyGroupCategoriesRequest.cc b/cms/src/model/ListMyGroupCategoriesRequest.cc index 944c60938..64d0aa9bc 100644 --- a/cms/src/model/ListMyGroupCategoriesRequest.cc +++ b/cms/src/model/ListMyGroupCategoriesRequest.cc @@ -33,6 +33,6 @@ long ListMyGroupCategoriesRequest::getGroupId()const void ListMyGroupCategoriesRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } diff --git a/cms/src/model/ListMyGroupCategoriesResult.cc b/cms/src/model/ListMyGroupCategoriesResult.cc index a9ce095f1..bb3d35e9c 100644 --- a/cms/src/model/ListMyGroupCategoriesResult.cc +++ b/cms/src/model/ListMyGroupCategoriesResult.cc @@ -35,10 +35,13 @@ ListMyGroupCategoriesResult::~ListMyGroupCategoriesResult() void ListMyGroupCategoriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto categoryNode = value["Category"]; if(!categoryNode["GroupId"].isNull()) diff --git a/cms/src/model/ListMyGroupInstancesDetailsRequest.cc b/cms/src/model/ListMyGroupInstancesDetailsRequest.cc index 8f9e0a497..4d6c546b6 100644 --- a/cms/src/model/ListMyGroupInstancesDetailsRequest.cc +++ b/cms/src/model/ListMyGroupInstancesDetailsRequest.cc @@ -33,7 +33,7 @@ bool ListMyGroupInstancesDetailsRequest::getTotal()const void ListMyGroupInstancesDetailsRequest::setTotal(bool total) { total_ = total; - setParameter("Total", total ? "true" : "false"); + setCoreParameter("Total", total ? "true" : "false"); } std::string ListMyGroupInstancesDetailsRequest::getInstanceIds()const @@ -44,7 +44,7 @@ std::string ListMyGroupInstancesDetailsRequest::getInstanceIds()const void ListMyGroupInstancesDetailsRequest::setInstanceIds(const std::string& instanceIds) { instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); + setCoreParameter("InstanceIds", instanceIds); } long ListMyGroupInstancesDetailsRequest::getGroupId()const @@ -55,7 +55,7 @@ long ListMyGroupInstancesDetailsRequest::getGroupId()const void ListMyGroupInstancesDetailsRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } int ListMyGroupInstancesDetailsRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListMyGroupInstancesDetailsRequest::getPageSize()const void ListMyGroupInstancesDetailsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListMyGroupInstancesDetailsRequest::getCategory()const @@ -77,7 +77,7 @@ std::string ListMyGroupInstancesDetailsRequest::getCategory()const void ListMyGroupInstancesDetailsRequest::setCategory(const std::string& category) { category_ = category; - setParameter("Category", category); + setCoreParameter("Category", category); } std::string ListMyGroupInstancesDetailsRequest::getKeyword()const @@ -88,7 +88,7 @@ std::string ListMyGroupInstancesDetailsRequest::getKeyword()const void ListMyGroupInstancesDetailsRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } int ListMyGroupInstancesDetailsRequest::getPageNumber()const @@ -99,6 +99,6 @@ int ListMyGroupInstancesDetailsRequest::getPageNumber()const void ListMyGroupInstancesDetailsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cms/src/model/ListMyGroupInstancesDetailsResult.cc b/cms/src/model/ListMyGroupInstancesDetailsResult.cc index 4c8fb845c..5d3a43df0 100644 --- a/cms/src/model/ListMyGroupInstancesDetailsResult.cc +++ b/cms/src/model/ListMyGroupInstancesDetailsResult.cc @@ -35,10 +35,13 @@ ListMyGroupInstancesDetailsResult::~ListMyGroupInstancesDetailsResult() void ListMyGroupInstancesDetailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) diff --git a/cms/src/model/ListMyGroupInstancesRequest.cc b/cms/src/model/ListMyGroupInstancesRequest.cc index ba78ed5b2..f2b82e7d5 100644 --- a/cms/src/model/ListMyGroupInstancesRequest.cc +++ b/cms/src/model/ListMyGroupInstancesRequest.cc @@ -33,7 +33,7 @@ bool ListMyGroupInstancesRequest::getTotal()const void ListMyGroupInstancesRequest::setTotal(bool total) { total_ = total; - setParameter("Total", total ? "true" : "false"); + setCoreParameter("Total", total ? "true" : "false"); } std::string ListMyGroupInstancesRequest::getInstanceIds()const @@ -44,7 +44,7 @@ std::string ListMyGroupInstancesRequest::getInstanceIds()const void ListMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds) { instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); + setCoreParameter("InstanceIds", instanceIds); } long ListMyGroupInstancesRequest::getGroupId()const @@ -55,7 +55,7 @@ long ListMyGroupInstancesRequest::getGroupId()const void ListMyGroupInstancesRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } int ListMyGroupInstancesRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListMyGroupInstancesRequest::getPageSize()const void ListMyGroupInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListMyGroupInstancesRequest::getCategory()const @@ -77,7 +77,7 @@ std::string ListMyGroupInstancesRequest::getCategory()const void ListMyGroupInstancesRequest::setCategory(const std::string& category) { category_ = category; - setParameter("Category", category); + setCoreParameter("Category", category); } std::string ListMyGroupInstancesRequest::getKeyword()const @@ -88,7 +88,7 @@ std::string ListMyGroupInstancesRequest::getKeyword()const void ListMyGroupInstancesRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } int ListMyGroupInstancesRequest::getPageNumber()const @@ -99,6 +99,6 @@ int ListMyGroupInstancesRequest::getPageNumber()const void ListMyGroupInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cms/src/model/ListMyGroupInstancesResult.cc b/cms/src/model/ListMyGroupInstancesResult.cc index a0d198f64..8bfb9ddc6 100644 --- a/cms/src/model/ListMyGroupInstancesResult.cc +++ b/cms/src/model/ListMyGroupInstancesResult.cc @@ -35,10 +35,13 @@ ListMyGroupInstancesResult::~ListMyGroupInstancesResult() void ListMyGroupInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) diff --git a/cms/src/model/ListMyGroupsRequest.cc b/cms/src/model/ListMyGroupsRequest.cc index ed0fe5f27..a3c10fa4b 100644 --- a/cms/src/model/ListMyGroupsRequest.cc +++ b/cms/src/model/ListMyGroupsRequest.cc @@ -33,7 +33,7 @@ bool ListMyGroupsRequest::getSelectContactGroups()const void ListMyGroupsRequest::setSelectContactGroups(bool selectContactGroups) { selectContactGroups_ = selectContactGroups; - setParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); + setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); } std::string ListMyGroupsRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ListMyGroupsRequest::getInstanceId()const void ListMyGroupsRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } int ListMyGroupsRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListMyGroupsRequest::getPageSize()const void ListMyGroupsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListMyGroupsRequest::getType()const @@ -66,7 +66,7 @@ std::string ListMyGroupsRequest::getType()const void ListMyGroupsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string ListMyGroupsRequest::getKeyword()const @@ -77,7 +77,7 @@ std::string ListMyGroupsRequest::getKeyword()const void ListMyGroupsRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } std::string ListMyGroupsRequest::getGroupName()const @@ -88,7 +88,7 @@ std::string ListMyGroupsRequest::getGroupName()const void ListMyGroupsRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } int ListMyGroupsRequest::getPageNumber()const @@ -99,7 +99,7 @@ int ListMyGroupsRequest::getPageNumber()const void ListMyGroupsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListMyGroupsRequest::getBindUrls()const @@ -110,6 +110,6 @@ std::string ListMyGroupsRequest::getBindUrls()const void ListMyGroupsRequest::setBindUrls(const std::string& bindUrls) { bindUrls_ = bindUrls; - setParameter("BindUrls", bindUrls); + setCoreParameter("BindUrls", bindUrls); } diff --git a/cms/src/model/ListMyGroupsResult.cc b/cms/src/model/ListMyGroupsResult.cc index 6ec8abdba..cf8754b99 100644 --- a/cms/src/model/ListMyGroupsResult.cc +++ b/cms/src/model/ListMyGroupsResult.cc @@ -35,10 +35,13 @@ ListMyGroupsResult::~ListMyGroupsResult() void ListMyGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) diff --git a/cms/src/model/ListNotifyPolicyRequest.cc b/cms/src/model/ListNotifyPolicyRequest.cc index 27f4176ad..ce1a7ce68 100644 --- a/cms/src/model/ListNotifyPolicyRequest.cc +++ b/cms/src/model/ListNotifyPolicyRequest.cc @@ -33,7 +33,7 @@ std::string ListNotifyPolicyRequest::getPolicyType()const void ListNotifyPolicyRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string ListNotifyPolicyRequest::getAlertName()const @@ -44,7 +44,7 @@ std::string ListNotifyPolicyRequest::getAlertName()const void ListNotifyPolicyRequest::setAlertName(const std::string& alertName) { alertName_ = alertName; - setParameter("AlertName", alertName); + setCoreParameter("AlertName", alertName); } std::string ListNotifyPolicyRequest::getGroupId()const @@ -55,7 +55,7 @@ std::string ListNotifyPolicyRequest::getGroupId()const void ListNotifyPolicyRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } int ListNotifyPolicyRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListNotifyPolicyRequest::getPageSize()const void ListNotifyPolicyRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListNotifyPolicyRequest::getId()const @@ -77,7 +77,7 @@ std::string ListNotifyPolicyRequest::getId()const void ListNotifyPolicyRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListNotifyPolicyRequest::getDimensions()const @@ -88,7 +88,7 @@ std::string ListNotifyPolicyRequest::getDimensions()const void ListNotifyPolicyRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } std::string ListNotifyPolicyRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListNotifyPolicyRequest::getAccessKeyId()const void ListNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cms/src/model/ListNotifyPolicyResult.cc b/cms/src/model/ListNotifyPolicyResult.cc index cdef68c18..5561d3c0f 100644 --- a/cms/src/model/ListNotifyPolicyResult.cc +++ b/cms/src/model/ListNotifyPolicyResult.cc @@ -35,10 +35,13 @@ ListNotifyPolicyResult::~ListNotifyPolicyResult() void ListNotifyPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNotifyPolicyList = value["NotifyPolicyList"]["NotifyPolicy"]; for (auto value : allNotifyPolicyList) diff --git a/cms/src/model/ListProductOfActiveAlertRequest.cc b/cms/src/model/ListProductOfActiveAlertRequest.cc index 1d25ec7e0..31e73073c 100644 --- a/cms/src/model/ListProductOfActiveAlertRequest.cc +++ b/cms/src/model/ListProductOfActiveAlertRequest.cc @@ -33,6 +33,6 @@ std::string ListProductOfActiveAlertRequest::getUserId()const void ListProductOfActiveAlertRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/cms/src/model/ListProductOfActiveAlertResult.cc b/cms/src/model/ListProductOfActiveAlertResult.cc index e84983d43..6309433ec 100644 --- a/cms/src/model/ListProductOfActiveAlertResult.cc +++ b/cms/src/model/ListProductOfActiveAlertResult.cc @@ -35,10 +35,13 @@ ListProductOfActiveAlertResult::~ListProductOfActiveAlertResult() void ListProductOfActiveAlertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/ModifyTaskRequest.cc b/cms/src/model/ModifyTaskRequest.cc index d4eac9a15..c4ed68256 100644 --- a/cms/src/model/ModifyTaskRequest.cc +++ b/cms/src/model/ModifyTaskRequest.cc @@ -33,7 +33,7 @@ std::string ModifyTaskRequest::getCaller()const void ModifyTaskRequest::setCaller(const std::string& caller) { caller_ = caller; - setParameter("Caller", caller); + setCoreParameter("Caller", caller); } std::string ModifyTaskRequest::getAddress()const @@ -44,7 +44,7 @@ std::string ModifyTaskRequest::getAddress()const void ModifyTaskRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string ModifyTaskRequest::getIspCity()const @@ -55,7 +55,7 @@ std::string ModifyTaskRequest::getIspCity()const void ModifyTaskRequest::setIspCity(const std::string& ispCity) { ispCity_ = ispCity; - setParameter("IspCity", ispCity); + setCoreParameter("IspCity", ispCity); } std::string ModifyTaskRequest::getAlertIds()const @@ -66,7 +66,7 @@ std::string ModifyTaskRequest::getAlertIds()const void ModifyTaskRequest::setAlertIds(const std::string& alertIds) { alertIds_ = alertIds; - setParameter("AlertIds", alertIds); + setCoreParameter("AlertIds", alertIds); } std::string ModifyTaskRequest::getOptions()const @@ -77,7 +77,7 @@ std::string ModifyTaskRequest::getOptions()const void ModifyTaskRequest::setOptions(const std::string& options) { options_ = options; - setParameter("Options", options); + setCoreParameter("Options", options); } std::string ModifyTaskRequest::getTaskName()const @@ -88,7 +88,7 @@ std::string ModifyTaskRequest::getTaskName()const void ModifyTaskRequest::setTaskName(const std::string& taskName) { taskName_ = taskName; - setParameter("TaskName", taskName); + setCoreParameter("TaskName", taskName); } std::string ModifyTaskRequest::getInterval()const @@ -99,7 +99,7 @@ std::string ModifyTaskRequest::getInterval()const void ModifyTaskRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string ModifyTaskRequest::getAlertRule()const @@ -110,7 +110,7 @@ std::string ModifyTaskRequest::getAlertRule()const void ModifyTaskRequest::setAlertRule(const std::string& alertRule) { alertRule_ = alertRule; - setParameter("AlertRule", alertRule); + setCoreParameter("AlertRule", alertRule); } std::string ModifyTaskRequest::getTaskId()const @@ -121,6 +121,6 @@ std::string ModifyTaskRequest::getTaskId()const void ModifyTaskRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/ModifyTaskResult.cc b/cms/src/model/ModifyTaskResult.cc index b7aada1ea..c67f1114a 100644 --- a/cms/src/model/ModifyTaskResult.cc +++ b/cms/src/model/ModifyTaskResult.cc @@ -35,10 +35,13 @@ ModifyTaskResult::~ModifyTaskResult() void ModifyTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/NodeInstallRequest.cc b/cms/src/model/NodeInstallRequest.cc index 90a0f2751..898585bd7 100644 --- a/cms/src/model/NodeInstallRequest.cc +++ b/cms/src/model/NodeInstallRequest.cc @@ -33,7 +33,7 @@ std::string NodeInstallRequest::getInstanceId()const void NodeInstallRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } bool NodeInstallRequest::getForce()const @@ -44,7 +44,7 @@ bool NodeInstallRequest::getForce()const void NodeInstallRequest::setForce(bool force) { force_ = force; - setParameter("Force", force ? "true" : "false"); + setCoreParameter("Force", force ? "true" : "false"); } std::string NodeInstallRequest::getUserId()const @@ -55,6 +55,6 @@ std::string NodeInstallRequest::getUserId()const void NodeInstallRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/cms/src/model/NodeInstallResult.cc b/cms/src/model/NodeInstallResult.cc index add1c0edd..313030aa6 100644 --- a/cms/src/model/NodeInstallResult.cc +++ b/cms/src/model/NodeInstallResult.cc @@ -35,10 +35,13 @@ NodeInstallResult::~NodeInstallResult() void NodeInstallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/NodeListRequest.cc b/cms/src/model/NodeListRequest.cc index 431733a66..4a77d5df7 100644 --- a/cms/src/model/NodeListRequest.cc +++ b/cms/src/model/NodeListRequest.cc @@ -33,7 +33,7 @@ std::string NodeListRequest::getHostName()const void NodeListRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string NodeListRequest::getInstanceIds()const @@ -44,7 +44,7 @@ std::string NodeListRequest::getInstanceIds()const void NodeListRequest::setInstanceIds(const std::string& instanceIds) { instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); + setCoreParameter("InstanceIds", instanceIds); } std::string NodeListRequest::getInstanceRegionId()const @@ -55,7 +55,7 @@ std::string NodeListRequest::getInstanceRegionId()const void NodeListRequest::setInstanceRegionId(const std::string& instanceRegionId) { instanceRegionId_ = instanceRegionId; - setParameter("InstanceRegionId", instanceRegionId); + setCoreParameter("InstanceRegionId", instanceRegionId); } int NodeListRequest::getPageSize()const @@ -66,7 +66,7 @@ int NodeListRequest::getPageSize()const void NodeListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string NodeListRequest::getKeyWord()const @@ -77,7 +77,7 @@ std::string NodeListRequest::getKeyWord()const void NodeListRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } long NodeListRequest::getUserId()const @@ -88,7 +88,7 @@ long NodeListRequest::getUserId()const void NodeListRequest::setUserId(long userId) { userId_ = userId; - setParameter("UserId", std::to_string(userId)); + setCoreParameter("UserId", std::to_string(userId)); } std::string NodeListRequest::getSerialNumbers()const @@ -99,7 +99,7 @@ std::string NodeListRequest::getSerialNumbers()const void NodeListRequest::setSerialNumbers(const std::string& serialNumbers) { serialNumbers_ = serialNumbers; - setParameter("SerialNumbers", serialNumbers); + setCoreParameter("SerialNumbers", serialNumbers); } int NodeListRequest::getPageNumber()const @@ -110,7 +110,7 @@ int NodeListRequest::getPageNumber()const void NodeListRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string NodeListRequest::getStatus()const @@ -121,6 +121,6 @@ std::string NodeListRequest::getStatus()const void NodeListRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cms/src/model/NodeListResult.cc b/cms/src/model/NodeListResult.cc index 275690062..a8f69534f 100644 --- a/cms/src/model/NodeListResult.cc +++ b/cms/src/model/NodeListResult.cc @@ -35,10 +35,13 @@ NodeListResult::~NodeListResult() void NodeListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNodes = value["Nodes"]["Node"]; for (auto value : allNodes) diff --git a/cms/src/model/NodeProcessCreateRequest.cc b/cms/src/model/NodeProcessCreateRequest.cc index f7e607e52..6efef79b1 100644 --- a/cms/src/model/NodeProcessCreateRequest.cc +++ b/cms/src/model/NodeProcessCreateRequest.cc @@ -33,7 +33,7 @@ std::string NodeProcessCreateRequest::getInstanceId()const void NodeProcessCreateRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string NodeProcessCreateRequest::getProcessName()const @@ -44,7 +44,7 @@ std::string NodeProcessCreateRequest::getProcessName()const void NodeProcessCreateRequest::setProcessName(const std::string& processName) { processName_ = processName; - setParameter("ProcessName", processName); + setCoreParameter("ProcessName", processName); } std::string NodeProcessCreateRequest::getName()const @@ -55,7 +55,7 @@ std::string NodeProcessCreateRequest::getName()const void NodeProcessCreateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string NodeProcessCreateRequest::getProcessUser()const @@ -66,7 +66,7 @@ std::string NodeProcessCreateRequest::getProcessUser()const void NodeProcessCreateRequest::setProcessUser(const std::string& processUser) { processUser_ = processUser; - setParameter("ProcessUser", processUser); + setCoreParameter("ProcessUser", processUser); } std::string NodeProcessCreateRequest::getCommand()const @@ -77,6 +77,6 @@ std::string NodeProcessCreateRequest::getCommand()const void NodeProcessCreateRequest::setCommand(const std::string& command) { command_ = command; - setParameter("Command", command); + setCoreParameter("Command", command); } diff --git a/cms/src/model/NodeProcessCreateResult.cc b/cms/src/model/NodeProcessCreateResult.cc index 10eb45b96..a5e05dff3 100644 --- a/cms/src/model/NodeProcessCreateResult.cc +++ b/cms/src/model/NodeProcessCreateResult.cc @@ -35,10 +35,13 @@ NodeProcessCreateResult::~NodeProcessCreateResult() void NodeProcessCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/NodeProcessDeleteRequest.cc b/cms/src/model/NodeProcessDeleteRequest.cc index 2debcbdfd..765d44384 100644 --- a/cms/src/model/NodeProcessDeleteRequest.cc +++ b/cms/src/model/NodeProcessDeleteRequest.cc @@ -33,7 +33,7 @@ std::string NodeProcessDeleteRequest::getInstanceId()const void NodeProcessDeleteRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string NodeProcessDeleteRequest::getName()const @@ -44,7 +44,7 @@ std::string NodeProcessDeleteRequest::getName()const void NodeProcessDeleteRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string NodeProcessDeleteRequest::getId()const @@ -55,6 +55,6 @@ std::string NodeProcessDeleteRequest::getId()const void NodeProcessDeleteRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } diff --git a/cms/src/model/NodeProcessDeleteResult.cc b/cms/src/model/NodeProcessDeleteResult.cc index 2134a0748..e67eddf66 100644 --- a/cms/src/model/NodeProcessDeleteResult.cc +++ b/cms/src/model/NodeProcessDeleteResult.cc @@ -35,10 +35,13 @@ NodeProcessDeleteResult::~NodeProcessDeleteResult() void NodeProcessDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/NodeProcessesRequest.cc b/cms/src/model/NodeProcessesRequest.cc index c13df0c46..8b7300771 100644 --- a/cms/src/model/NodeProcessesRequest.cc +++ b/cms/src/model/NodeProcessesRequest.cc @@ -33,6 +33,6 @@ std::string NodeProcessesRequest::getInstanceId()const void NodeProcessesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/cms/src/model/NodeProcessesResult.cc b/cms/src/model/NodeProcessesResult.cc index f111f64be..248b74624 100644 --- a/cms/src/model/NodeProcessesResult.cc +++ b/cms/src/model/NodeProcessesResult.cc @@ -35,10 +35,13 @@ NodeProcessesResult::~NodeProcessesResult() void NodeProcessesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNodeProcesses = value["NodeProcesses"]["NodeProcess"]; for (auto value : allNodeProcesses) diff --git a/cms/src/model/NodeStatusListRequest.cc b/cms/src/model/NodeStatusListRequest.cc index 03ace2bf4..54b80db55 100644 --- a/cms/src/model/NodeStatusListRequest.cc +++ b/cms/src/model/NodeStatusListRequest.cc @@ -33,6 +33,6 @@ std::string NodeStatusListRequest::getInstanceIds()const void NodeStatusListRequest::setInstanceIds(const std::string& instanceIds) { instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); + setCoreParameter("InstanceIds", instanceIds); } diff --git a/cms/src/model/NodeStatusListResult.cc b/cms/src/model/NodeStatusListResult.cc index b05e8953d..da4e7a408 100644 --- a/cms/src/model/NodeStatusListResult.cc +++ b/cms/src/model/NodeStatusListResult.cc @@ -35,10 +35,13 @@ NodeStatusListResult::~NodeStatusListResult() void NodeStatusListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNodeStatusList = value["NodeStatusList"]["NodeStatus"]; for (auto value : allNodeStatusList) diff --git a/cms/src/model/NodeStatusRequest.cc b/cms/src/model/NodeStatusRequest.cc index 3f93239c1..6310fd390 100644 --- a/cms/src/model/NodeStatusRequest.cc +++ b/cms/src/model/NodeStatusRequest.cc @@ -33,6 +33,6 @@ std::string NodeStatusRequest::getInstanceId()const void NodeStatusRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/cms/src/model/NodeStatusResult.cc b/cms/src/model/NodeStatusResult.cc index c938be996..9feb77d11 100644 --- a/cms/src/model/NodeStatusResult.cc +++ b/cms/src/model/NodeStatusResult.cc @@ -35,10 +35,13 @@ NodeStatusResult::~NodeStatusResult() void NodeStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/NodeUninstallRequest.cc b/cms/src/model/NodeUninstallRequest.cc index 2a89351c2..79e120eec 100644 --- a/cms/src/model/NodeUninstallRequest.cc +++ b/cms/src/model/NodeUninstallRequest.cc @@ -33,6 +33,6 @@ std::string NodeUninstallRequest::getInstanceId()const void NodeUninstallRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/cms/src/model/NodeUninstallResult.cc b/cms/src/model/NodeUninstallResult.cc index ed376b2d1..9ab34b09d 100644 --- a/cms/src/model/NodeUninstallResult.cc +++ b/cms/src/model/NodeUninstallResult.cc @@ -35,10 +35,13 @@ NodeUninstallResult::~NodeUninstallResult() void NodeUninstallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/ProfileGetRequest.cc b/cms/src/model/ProfileGetRequest.cc index a38e8e099..19c07c063 100644 --- a/cms/src/model/ProfileGetRequest.cc +++ b/cms/src/model/ProfileGetRequest.cc @@ -33,6 +33,6 @@ long ProfileGetRequest::getUserId()const void ProfileGetRequest::setUserId(long userId) { userId_ = userId; - setParameter("UserId", std::to_string(userId)); + setCoreParameter("UserId", std::to_string(userId)); } diff --git a/cms/src/model/ProfileGetResult.cc b/cms/src/model/ProfileGetResult.cc index f44a46c94..e9ab2579e 100644 --- a/cms/src/model/ProfileGetResult.cc +++ b/cms/src/model/ProfileGetResult.cc @@ -35,10 +35,13 @@ ProfileGetResult::~ProfileGetResult() void ProfileGetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/ProfileSetRequest.cc b/cms/src/model/ProfileSetRequest.cc index 4b2ed8d1e..62d165bba 100644 --- a/cms/src/model/ProfileSetRequest.cc +++ b/cms/src/model/ProfileSetRequest.cc @@ -33,7 +33,7 @@ bool ProfileSetRequest::getEnableInstallAgentNewECS()const void ProfileSetRequest::setEnableInstallAgentNewECS(bool enableInstallAgentNewECS) { enableInstallAgentNewECS_ = enableInstallAgentNewECS; - setParameter("EnableInstallAgentNewECS", enableInstallAgentNewECS ? "true" : "false"); + setCoreParameter("EnableInstallAgentNewECS", enableInstallAgentNewECS ? "true" : "false"); } std::string ProfileSetRequest::getEnableActiveAlert()const @@ -44,7 +44,7 @@ std::string ProfileSetRequest::getEnableActiveAlert()const void ProfileSetRequest::setEnableActiveAlert(const std::string& enableActiveAlert) { enableActiveAlert_ = enableActiveAlert; - setParameter("EnableActiveAlert", enableActiveAlert); + setCoreParameter("EnableActiveAlert", enableActiveAlert); } bool ProfileSetRequest::getAutoInstall()const @@ -55,7 +55,7 @@ bool ProfileSetRequest::getAutoInstall()const void ProfileSetRequest::setAutoInstall(bool autoInstall) { autoInstall_ = autoInstall; - setParameter("AutoInstall", autoInstall ? "true" : "false"); + setCoreParameter("AutoInstall", autoInstall ? "true" : "false"); } long ProfileSetRequest::getUserId()const @@ -66,6 +66,6 @@ long ProfileSetRequest::getUserId()const void ProfileSetRequest::setUserId(long userId) { userId_ = userId; - setParameter("UserId", std::to_string(userId)); + setCoreParameter("UserId", std::to_string(userId)); } diff --git a/cms/src/model/ProfileSetResult.cc b/cms/src/model/ProfileSetResult.cc index 14e122a4d..8ba036965 100644 --- a/cms/src/model/ProfileSetResult.cc +++ b/cms/src/model/ProfileSetResult.cc @@ -35,10 +35,13 @@ ProfileSetResult::~ProfileSetResult() void ProfileSetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/PutCustomMetricRequest.cc b/cms/src/model/PutCustomMetricRequest.cc index be9975ce0..0be070135 100644 --- a/cms/src/model/PutCustomMetricRequest.cc +++ b/cms/src/model/PutCustomMetricRequest.cc @@ -33,6 +33,6 @@ std::string PutCustomMetricRequest::getMetricList()const void PutCustomMetricRequest::setMetricList(const std::string& metricList) { metricList_ = metricList; - setParameter("MetricList", metricList); + setCoreParameter("MetricList", metricList); } diff --git a/cms/src/model/PutCustomMetricResult.cc b/cms/src/model/PutCustomMetricResult.cc index a64f797de..c8c3864c2 100644 --- a/cms/src/model/PutCustomMetricResult.cc +++ b/cms/src/model/PutCustomMetricResult.cc @@ -35,10 +35,13 @@ PutCustomMetricResult::~PutCustomMetricResult() void PutCustomMetricResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/PutEventRequest.cc b/cms/src/model/PutEventRequest.cc index 783ff56ed..2bac918f7 100644 --- a/cms/src/model/PutEventRequest.cc +++ b/cms/src/model/PutEventRequest.cc @@ -33,6 +33,6 @@ std::string PutEventRequest::getEventInfo()const void PutEventRequest::setEventInfo(const std::string& eventInfo) { eventInfo_ = eventInfo; - setParameter("EventInfo", eventInfo); + setCoreParameter("EventInfo", eventInfo); } diff --git a/cms/src/model/PutEventResult.cc b/cms/src/model/PutEventResult.cc index e3b882330..5bfaea6b6 100644 --- a/cms/src/model/PutEventResult.cc +++ b/cms/src/model/PutEventResult.cc @@ -35,10 +35,13 @@ PutEventResult::~PutEventResult() void PutEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/PutEventRuleRequest.cc b/cms/src/model/PutEventRuleRequest.cc index fcac71446..34d98d775 100644 --- a/cms/src/model/PutEventRuleRequest.cc +++ b/cms/src/model/PutEventRuleRequest.cc @@ -37,11 +37,11 @@ void PutEventRuleRequest::setEventPattern(const std::vector& event for(int i = 0; i!= eventPattern.size(); i++) { auto obj = eventPattern.at(i); std::string str ="EventPattern."+ std::to_string(i); - for(int i = 0; i!= obj.levelList.size(); i++) setParameter(str + ".LevelList."+ std::to_string(i), obj.levelList.at(i)); - setParameter(str + ".Product", obj.product); - for(int i = 0; i!= obj.statusList.size(); i++) setParameter(str + ".StatusList."+ std::to_string(i), obj.statusList.at(i)); - for(int i = 0; i!= obj.nameList.size(); i++) setParameter(str + ".NameList."+ std::to_string(i), obj.nameList.at(i)); - for(int i = 0; i!= obj.eventTypeList.size(); i++) setParameter(str + ".EventTypeList."+ std::to_string(i), obj.eventTypeList.at(i)); + for(int i = 0; i!= obj.levelList.size(); i++) setCoreParameter(str + ".LevelList."+ std::to_string(i), obj.levelList.at(i)); + setCoreParameter(str + ".Product", obj.product); + for(int i = 0; i!= obj.statusList.size(); i++) setCoreParameter(str + ".StatusList."+ std::to_string(i), obj.statusList.at(i)); + for(int i = 0; i!= obj.nameList.size(); i++) setCoreParameter(str + ".NameList."+ std::to_string(i), obj.nameList.at(i)); + for(int i = 0; i!= obj.eventTypeList.size(); i++) setCoreParameter(str + ".EventTypeList."+ std::to_string(i), obj.eventTypeList.at(i)); } } @@ -53,7 +53,7 @@ std::string PutEventRuleRequest::getGroupId()const void PutEventRuleRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string PutEventRuleRequest::getName()const @@ -64,7 +64,7 @@ std::string PutEventRuleRequest::getName()const void PutEventRuleRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string PutEventRuleRequest::getDescription()const @@ -75,7 +75,7 @@ std::string PutEventRuleRequest::getDescription()const void PutEventRuleRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string PutEventRuleRequest::getEventType()const @@ -86,7 +86,7 @@ std::string PutEventRuleRequest::getEventType()const void PutEventRuleRequest::setEventType(const std::string& eventType) { eventType_ = eventType; - setParameter("EventType", eventType); + setCoreParameter("EventType", eventType); } std::string PutEventRuleRequest::getState()const @@ -97,6 +97,6 @@ std::string PutEventRuleRequest::getState()const void PutEventRuleRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } diff --git a/cms/src/model/PutEventRuleResult.cc b/cms/src/model/PutEventRuleResult.cc index ef0a4777e..0c1da057a 100644 --- a/cms/src/model/PutEventRuleResult.cc +++ b/cms/src/model/PutEventRuleResult.cc @@ -35,10 +35,13 @@ PutEventRuleResult::~PutEventRuleResult() void PutEventRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/PutEventTargetsRequest.cc b/cms/src/model/PutEventTargetsRequest.cc index b5100d425..eb4cc7cf2 100644 --- a/cms/src/model/PutEventTargetsRequest.cc +++ b/cms/src/model/PutEventTargetsRequest.cc @@ -37,10 +37,10 @@ void PutEventTargetsRequest::setWebhookParameters(const std::vector& for(int i = 0; i!= slsParameters.size(); i++) { auto obj = slsParameters.at(i); std::string str ="SlsParameters."+ std::to_string(i); - setParameter(str + ".Project", obj.project); - setParameter(str + ".Id", obj.id); - setParameter(str + ".Region", obj.region); - setParameter(str + ".LogStore", obj.logStore); + setCoreParameter(str + ".Project", obj.project); + setCoreParameter(str + ".Id", obj.id); + setCoreParameter(str + ".Region", obj.region); + setCoreParameter(str + ".LogStore", obj.logStore); } } @@ -93,10 +93,10 @@ void PutEventTargetsRequest::setFcParameters(const std::vector& fc for(int i = 0; i!= fcParameters.size(); i++) { auto obj = fcParameters.at(i); std::string str ="FcParameters."+ std::to_string(i); - setParameter(str + ".FunctionName", obj.functionName); - setParameter(str + ".ServiceName", obj.serviceName); - setParameter(str + ".Id", obj.id); - setParameter(str + ".Region", obj.region); + setCoreParameter(str + ".FunctionName", obj.functionName); + setCoreParameter(str + ".ServiceName", obj.serviceName); + setCoreParameter(str + ".Id", obj.id); + setCoreParameter(str + ".Region", obj.region); } } @@ -108,7 +108,7 @@ std::string PutEventTargetsRequest::getRuleName()const void PutEventTargetsRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } std::vector PutEventTargetsRequest::getMnsParameters()const @@ -123,9 +123,9 @@ void PutEventTargetsRequest::setMnsParameters(const std::vector& for(int i = 0; i!= mnsParameters.size(); i++) { auto obj = mnsParameters.at(i); std::string str ="MnsParameters."+ std::to_string(i); - setParameter(str + ".Id", obj.id); - setParameter(str + ".Region", obj.region); - setParameter(str + ".Queue", obj.queue); + setCoreParameter(str + ".Id", obj.id); + setCoreParameter(str + ".Region", obj.region); + setCoreParameter(str + ".Queue", obj.queue); } } diff --git a/cms/src/model/PutEventTargetsResult.cc b/cms/src/model/PutEventTargetsResult.cc index 1ce9285bf..dedca084f 100644 --- a/cms/src/model/PutEventTargetsResult.cc +++ b/cms/src/model/PutEventTargetsResult.cc @@ -35,10 +35,13 @@ PutEventTargetsResult::~PutEventTargetsResult() void PutEventTargetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allContactParameters = value["ContactParameters"]["ContactParameter"]; for (auto value : allContactParameters) diff --git a/cms/src/model/PutGroupDynamicRuleRequest.cc b/cms/src/model/PutGroupDynamicRuleRequest.cc index c7e28a1b3..48a5666fa 100644 --- a/cms/src/model/PutGroupDynamicRuleRequest.cc +++ b/cms/src/model/PutGroupDynamicRuleRequest.cc @@ -33,7 +33,7 @@ long PutGroupDynamicRuleRequest::getGroupId()const void PutGroupDynamicRuleRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string PutGroupDynamicRuleRequest::getGroupRuleArrayJson()const @@ -44,6 +44,6 @@ std::string PutGroupDynamicRuleRequest::getGroupRuleArrayJson()const void PutGroupDynamicRuleRequest::setGroupRuleArrayJson(const std::string& groupRuleArrayJson) { groupRuleArrayJson_ = groupRuleArrayJson; - setParameter("GroupRuleArrayJson", groupRuleArrayJson); + setCoreParameter("GroupRuleArrayJson", groupRuleArrayJson); } diff --git a/cms/src/model/PutGroupDynamicRuleResult.cc b/cms/src/model/PutGroupDynamicRuleResult.cc index 1805a534e..624cebc53 100644 --- a/cms/src/model/PutGroupDynamicRuleResult.cc +++ b/cms/src/model/PutGroupDynamicRuleResult.cc @@ -35,10 +35,13 @@ PutGroupDynamicRuleResult::~PutGroupDynamicRuleResult() void PutGroupDynamicRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/PutMetricAlarmRequest.cc b/cms/src/model/PutMetricAlarmRequest.cc index 580ef0ee2..776498d6f 100644 --- a/cms/src/model/PutMetricAlarmRequest.cc +++ b/cms/src/model/PutMetricAlarmRequest.cc @@ -33,7 +33,7 @@ std::string PutMetricAlarmRequest::getPeriod()const void PutMetricAlarmRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } std::string PutMetricAlarmRequest::getWebhook()const @@ -44,7 +44,7 @@ std::string PutMetricAlarmRequest::getWebhook()const void PutMetricAlarmRequest::setWebhook(const std::string& webhook) { webhook_ = webhook; - setParameter("Webhook", webhook); + setCoreParameter("Webhook", webhook); } std::string PutMetricAlarmRequest::getContactGroups()const @@ -55,7 +55,7 @@ std::string PutMetricAlarmRequest::getContactGroups()const void PutMetricAlarmRequest::setContactGroups(const std::string& contactGroups) { contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); + setCoreParameter("ContactGroups", contactGroups); } int PutMetricAlarmRequest::getLevel()const @@ -66,7 +66,7 @@ int PutMetricAlarmRequest::getLevel()const void PutMetricAlarmRequest::setLevel(int level) { level_ = level; - setParameter("Level", std::to_string(level)); + setCoreParameter("Level", std::to_string(level)); } std::string PutMetricAlarmRequest::getSubject()const @@ -77,7 +77,7 @@ std::string PutMetricAlarmRequest::getSubject()const void PutMetricAlarmRequest::setSubject(const std::string& subject) { subject_ = subject; - setParameter("Subject", subject); + setCoreParameter("Subject", subject); } std::string PutMetricAlarmRequest::getAlertName()const @@ -88,7 +88,7 @@ std::string PutMetricAlarmRequest::getAlertName()const void PutMetricAlarmRequest::setAlertName(const std::string& alertName) { alertName_ = alertName; - setParameter("AlertName", alertName); + setCoreParameter("AlertName", alertName); } std::string PutMetricAlarmRequest::getGroupId()const @@ -99,7 +99,7 @@ std::string PutMetricAlarmRequest::getGroupId()const void PutMetricAlarmRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string PutMetricAlarmRequest::getDescription()const @@ -110,7 +110,7 @@ std::string PutMetricAlarmRequest::getDescription()const void PutMetricAlarmRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string PutMetricAlarmRequest::getResources()const @@ -121,7 +121,7 @@ std::string PutMetricAlarmRequest::getResources()const void PutMetricAlarmRequest::setResources(const std::string& resources) { resources_ = resources; - setParameter("Resources", resources); + setCoreParameter("Resources", resources); } std::string PutMetricAlarmRequest::getThreshold()const @@ -132,7 +132,7 @@ std::string PutMetricAlarmRequest::getThreshold()const void PutMetricAlarmRequest::setThreshold(const std::string& threshold) { threshold_ = threshold; - setParameter("Threshold", threshold); + setCoreParameter("Threshold", threshold); } std::string PutMetricAlarmRequest::getEffectiveInterval()const @@ -143,7 +143,7 @@ std::string PutMetricAlarmRequest::getEffectiveInterval()const void PutMetricAlarmRequest::setEffectiveInterval(const std::string& effectiveInterval) { effectiveInterval_ = effectiveInterval; - setParameter("EffectiveInterval", effectiveInterval); + setCoreParameter("EffectiveInterval", effectiveInterval); } std::string PutMetricAlarmRequest::getGroupName()const @@ -154,7 +154,7 @@ std::string PutMetricAlarmRequest::getGroupName()const void PutMetricAlarmRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string PutMetricAlarmRequest::getFilter()const @@ -165,7 +165,7 @@ std::string PutMetricAlarmRequest::getFilter()const void PutMetricAlarmRequest::setFilter(const std::string& filter) { filter_ = filter; - setParameter("Filter", filter); + setCoreParameter("Filter", filter); } std::string PutMetricAlarmRequest::getNoEffectiveInterval()const @@ -176,7 +176,7 @@ std::string PutMetricAlarmRequest::getNoEffectiveInterval()const void PutMetricAlarmRequest::setNoEffectiveInterval(const std::string& noEffectiveInterval) { noEffectiveInterval_ = noEffectiveInterval; - setParameter("NoEffectiveInterval", noEffectiveInterval); + setCoreParameter("NoEffectiveInterval", noEffectiveInterval); } std::string PutMetricAlarmRequest::getDisplayName()const @@ -187,7 +187,7 @@ std::string PutMetricAlarmRequest::getDisplayName()const void PutMetricAlarmRequest::setDisplayName(const std::string& displayName) { displayName_ = displayName; - setParameter("DisplayName", displayName); + setCoreParameter("DisplayName", displayName); } std::string PutMetricAlarmRequest::get_Namespace()const @@ -198,7 +198,7 @@ std::string PutMetricAlarmRequest::get_Namespace()const void PutMetricAlarmRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } int PutMetricAlarmRequest::getEvaluationCount()const @@ -209,7 +209,7 @@ int PutMetricAlarmRequest::getEvaluationCount()const void PutMetricAlarmRequest::setEvaluationCount(int evaluationCount) { evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); + setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); } int PutMetricAlarmRequest::getSilenceTime()const @@ -220,7 +220,7 @@ int PutMetricAlarmRequest::getSilenceTime()const void PutMetricAlarmRequest::setSilenceTime(int silenceTime) { silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); + setCoreParameter("SilenceTime", std::to_string(silenceTime)); } std::string PutMetricAlarmRequest::getInterval()const @@ -231,7 +231,7 @@ std::string PutMetricAlarmRequest::getInterval()const void PutMetricAlarmRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string PutMetricAlarmRequest::getMetricName()const @@ -242,7 +242,7 @@ std::string PutMetricAlarmRequest::getMetricName()const void PutMetricAlarmRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } std::string PutMetricAlarmRequest::getDeepDive()const @@ -253,7 +253,7 @@ std::string PutMetricAlarmRequest::getDeepDive()const void PutMetricAlarmRequest::setDeepDive(const std::string& deepDive) { deepDive_ = deepDive; - setParameter("DeepDive", deepDive); + setCoreParameter("DeepDive", deepDive); } std::string PutMetricAlarmRequest::getComparisonOperator()const @@ -264,7 +264,7 @@ std::string PutMetricAlarmRequest::getComparisonOperator()const void PutMetricAlarmRequest::setComparisonOperator(const std::string& comparisonOperator) { comparisonOperator_ = comparisonOperator; - setParameter("ComparisonOperator", comparisonOperator); + setCoreParameter("ComparisonOperator", comparisonOperator); } std::string PutMetricAlarmRequest::getDimensions()const @@ -275,7 +275,7 @@ std::string PutMetricAlarmRequest::getDimensions()const void PutMetricAlarmRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } std::string PutMetricAlarmRequest::getStatistics()const @@ -286,6 +286,6 @@ std::string PutMetricAlarmRequest::getStatistics()const void PutMetricAlarmRequest::setStatistics(const std::string& statistics) { statistics_ = statistics; - setParameter("Statistics", statistics); + setCoreParameter("Statistics", statistics); } diff --git a/cms/src/model/PutMetricAlarmResult.cc b/cms/src/model/PutMetricAlarmResult.cc index b461fa4d1..8a3ca0ca9 100644 --- a/cms/src/model/PutMetricAlarmResult.cc +++ b/cms/src/model/PutMetricAlarmResult.cc @@ -35,10 +35,13 @@ PutMetricAlarmResult::~PutMetricAlarmResult() void PutMetricAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/PutMetricRuleTargetsRequest.cc b/cms/src/model/PutMetricRuleTargetsRequest.cc new file mode 100644 index 000000000..f3a275aa4 --- /dev/null +++ b/cms/src/model/PutMetricRuleTargetsRequest.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::Cms::Model::PutMetricRuleTargetsRequest; + +PutMetricRuleTargetsRequest::PutMetricRuleTargetsRequest() : + RpcServiceRequest("cms", "2018-03-08", "PutMetricRuleTargets") +{} + +PutMetricRuleTargetsRequest::~PutMetricRuleTargetsRequest() +{} + +std::string PutMetricRuleTargetsRequest::getRuleName()const +{ + return ruleName_; +} + +void PutMetricRuleTargetsRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::string PutMetricRuleTargetsRequest::getActions()const +{ + return actions_; +} + +void PutMetricRuleTargetsRequest::setActions(const std::string& actions) +{ + actions_ = actions; + setCoreParameter("Actions", actions); +} + +std::vector PutMetricRuleTargetsRequest::getTargets()const +{ + return targets_; +} + +void PutMetricRuleTargetsRequest::setTargets(const std::vector& targets) +{ + targets_ = targets; + int i = 0; + for(int i = 0; i!= targets.size(); i++) { + auto obj = targets.at(i); + std::string str ="Targets."+ std::to_string(i); + setCoreParameter(str + ".Level", obj.level); + setCoreParameter(str + ".Id", obj.id); + setCoreParameter(str + ".Arn", obj.arn); + } +} + diff --git a/cms/src/model/PutMetricRuleTargetsResult.cc b/cms/src/model/PutMetricRuleTargetsResult.cc new file mode 100644 index 000000000..7abab8508 --- /dev/null +++ b/cms/src/model/PutMetricRuleTargetsResult.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::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutMetricRuleTargetsResult::PutMetricRuleTargetsResult() : + ServiceResult() +{} + +PutMetricRuleTargetsResult::PutMetricRuleTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutMetricRuleTargetsResult::~PutMetricRuleTargetsResult() +{} + +void PutMetricRuleTargetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto failDataNode = value["FailData"]; + auto allTargets = value["Targets"]["Target"]; + for (auto value : allTargets) + { + FailData::Target targetObject; + if(!value["Id"].isNull()) + targetObject.id = value["Id"].asString(); + if(!value["Arn"].isNull()) + targetObject.arn = value["Arn"].asString(); + if(!value["Level"].isNull()) + targetObject.level = value["Level"].asString(); + failData_.targets.push_back(targetObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PutMetricRuleTargetsResult::getMessage()const +{ + return message_; +} + +PutMetricRuleTargetsResult::FailData PutMetricRuleTargetsResult::getFailData()const +{ + return failData_; +} + +std::string PutMetricRuleTargetsResult::getCode()const +{ + return code_; +} + +bool PutMetricRuleTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryCustomEventCountRequest.cc b/cms/src/model/QueryCustomEventCountRequest.cc index cff65e7fa..077c7fb70 100644 --- a/cms/src/model/QueryCustomEventCountRequest.cc +++ b/cms/src/model/QueryCustomEventCountRequest.cc @@ -33,6 +33,6 @@ std::string QueryCustomEventCountRequest::getQueryJson()const void QueryCustomEventCountRequest::setQueryJson(const std::string& queryJson) { queryJson_ = queryJson; - setParameter("QueryJson", queryJson); + setCoreParameter("QueryJson", queryJson); } diff --git a/cms/src/model/QueryCustomEventCountResult.cc b/cms/src/model/QueryCustomEventCountResult.cc index 37498846c..07e6d66cf 100644 --- a/cms/src/model/QueryCustomEventCountResult.cc +++ b/cms/src/model/QueryCustomEventCountResult.cc @@ -35,10 +35,13 @@ QueryCustomEventCountResult::~QueryCustomEventCountResult() void QueryCustomEventCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryCustomEventDetailRequest.cc b/cms/src/model/QueryCustomEventDetailRequest.cc index 01b42dfd0..6aadf7228 100644 --- a/cms/src/model/QueryCustomEventDetailRequest.cc +++ b/cms/src/model/QueryCustomEventDetailRequest.cc @@ -33,6 +33,6 @@ std::string QueryCustomEventDetailRequest::getQueryJson()const void QueryCustomEventDetailRequest::setQueryJson(const std::string& queryJson) { queryJson_ = queryJson; - setParameter("QueryJson", queryJson); + setCoreParameter("QueryJson", queryJson); } diff --git a/cms/src/model/QueryCustomEventDetailResult.cc b/cms/src/model/QueryCustomEventDetailResult.cc index 069d91d85..c99e5dac5 100644 --- a/cms/src/model/QueryCustomEventDetailResult.cc +++ b/cms/src/model/QueryCustomEventDetailResult.cc @@ -35,10 +35,13 @@ QueryCustomEventDetailResult::~QueryCustomEventDetailResult() void QueryCustomEventDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryCustomEventHistogramRequest.cc b/cms/src/model/QueryCustomEventHistogramRequest.cc index 18b37c245..93a2682d3 100644 --- a/cms/src/model/QueryCustomEventHistogramRequest.cc +++ b/cms/src/model/QueryCustomEventHistogramRequest.cc @@ -33,6 +33,6 @@ std::string QueryCustomEventHistogramRequest::getQueryJson()const void QueryCustomEventHistogramRequest::setQueryJson(const std::string& queryJson) { queryJson_ = queryJson; - setParameter("QueryJson", queryJson); + setCoreParameter("QueryJson", queryJson); } diff --git a/cms/src/model/QueryCustomEventHistogramResult.cc b/cms/src/model/QueryCustomEventHistogramResult.cc index 95a34d7b6..35ee3e221 100644 --- a/cms/src/model/QueryCustomEventHistogramResult.cc +++ b/cms/src/model/QueryCustomEventHistogramResult.cc @@ -35,10 +35,13 @@ QueryCustomEventHistogramResult::~QueryCustomEventHistogramResult() void QueryCustomEventHistogramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryCustomMetricListRequest.cc b/cms/src/model/QueryCustomMetricListRequest.cc index e5f84ec13..61d3fdd4f 100644 --- a/cms/src/model/QueryCustomMetricListRequest.cc +++ b/cms/src/model/QueryCustomMetricListRequest.cc @@ -33,7 +33,7 @@ std::string QueryCustomMetricListRequest::getSize()const void QueryCustomMetricListRequest::setSize(const std::string& size) { size_ = size; - setParameter("Size", size); + setCoreParameter("Size", size); } std::string QueryCustomMetricListRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string QueryCustomMetricListRequest::getGroupId()const void QueryCustomMetricListRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string QueryCustomMetricListRequest::getPage()const @@ -55,7 +55,7 @@ std::string QueryCustomMetricListRequest::getPage()const void QueryCustomMetricListRequest::setPage(const std::string& page) { page_ = page; - setParameter("Page", page); + setCoreParameter("Page", page); } std::string QueryCustomMetricListRequest::getMetricName()const @@ -66,7 +66,7 @@ std::string QueryCustomMetricListRequest::getMetricName()const void QueryCustomMetricListRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } std::string QueryCustomMetricListRequest::getDimension()const @@ -77,7 +77,7 @@ std::string QueryCustomMetricListRequest::getDimension()const void QueryCustomMetricListRequest::setDimension(const std::string& dimension) { dimension_ = dimension; - setParameter("Dimension", dimension); + setCoreParameter("Dimension", dimension); } std::string QueryCustomMetricListRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string QueryCustomMetricListRequest::getAccessKeyId()const void QueryCustomMetricListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string QueryCustomMetricListRequest::getMd5()const @@ -99,6 +99,6 @@ std::string QueryCustomMetricListRequest::getMd5()const void QueryCustomMetricListRequest::setMd5(const std::string& md5) { md5_ = md5; - setParameter("Md5", md5); + setCoreParameter("Md5", md5); } diff --git a/cms/src/model/QueryCustomMetricListResult.cc b/cms/src/model/QueryCustomMetricListResult.cc index df99f19d2..697ec0fa4 100644 --- a/cms/src/model/QueryCustomMetricListResult.cc +++ b/cms/src/model/QueryCustomMetricListResult.cc @@ -35,10 +35,13 @@ QueryCustomMetricListResult::~QueryCustomMetricListResult() void QueryCustomMetricListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryErrorDistributionRequest.cc b/cms/src/model/QueryErrorDistributionRequest.cc index ff765e854..c3041a856 100644 --- a/cms/src/model/QueryErrorDistributionRequest.cc +++ b/cms/src/model/QueryErrorDistributionRequest.cc @@ -33,7 +33,7 @@ std::string QueryErrorDistributionRequest::getTimeRange()const void QueryErrorDistributionRequest::setTimeRange(const std::string& timeRange) { timeRange_ = timeRange; - setParameter("TimeRange", timeRange); + setCoreParameter("TimeRange", timeRange); } std::string QueryErrorDistributionRequest::getTaskId()const @@ -44,6 +44,6 @@ std::string QueryErrorDistributionRequest::getTaskId()const void QueryErrorDistributionRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/QueryErrorDistributionResult.cc b/cms/src/model/QueryErrorDistributionResult.cc index 140768319..65d87d45a 100644 --- a/cms/src/model/QueryErrorDistributionResult.cc +++ b/cms/src/model/QueryErrorDistributionResult.cc @@ -35,10 +35,13 @@ QueryErrorDistributionResult::~QueryErrorDistributionResult() void QueryErrorDistributionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryMetricDataRequest.cc b/cms/src/model/QueryMetricDataRequest.cc index 4b7ce4bc6..fd7b9727b 100644 --- a/cms/src/model/QueryMetricDataRequest.cc +++ b/cms/src/model/QueryMetricDataRequest.cc @@ -33,7 +33,7 @@ long QueryMetricDataRequest::getResourceOwnerId()const void QueryMetricDataRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMetricDataRequest::getPeriod()const @@ -44,7 +44,7 @@ std::string QueryMetricDataRequest::getPeriod()const void QueryMetricDataRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } std::string QueryMetricDataRequest::getMetric()const @@ -55,7 +55,7 @@ std::string QueryMetricDataRequest::getMetric()const void QueryMetricDataRequest::setMetric(const std::string& metric) { metric_ = metric; - setParameter("Metric", metric); + setCoreParameter("Metric", metric); } std::string QueryMetricDataRequest::getLength()const @@ -66,7 +66,7 @@ std::string QueryMetricDataRequest::getLength()const void QueryMetricDataRequest::setLength(const std::string& length) { length_ = length; - setParameter("Length", length); + setCoreParameter("Length", length); } std::string QueryMetricDataRequest::getProject()const @@ -77,7 +77,7 @@ std::string QueryMetricDataRequest::getProject()const void QueryMetricDataRequest::setProject(const std::string& project) { project_ = project; - setParameter("Project", project); + setCoreParameter("Project", project); } std::string QueryMetricDataRequest::getEndTime()const @@ -88,7 +88,7 @@ std::string QueryMetricDataRequest::getEndTime()const void QueryMetricDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string QueryMetricDataRequest::getExpress()const @@ -99,7 +99,7 @@ std::string QueryMetricDataRequest::getExpress()const void QueryMetricDataRequest::setExpress(const std::string& express) { express_ = express; - setParameter("Express", express); + setCoreParameter("Express", express); } std::string QueryMetricDataRequest::getStartTime()const @@ -110,7 +110,7 @@ std::string QueryMetricDataRequest::getStartTime()const void QueryMetricDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryMetricDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string QueryMetricDataRequest::getAccessKeyId()const void QueryMetricDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string QueryMetricDataRequest::getDimensions()const @@ -132,6 +132,6 @@ std::string QueryMetricDataRequest::getDimensions()const void QueryMetricDataRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } diff --git a/cms/src/model/QueryMetricDataResult.cc b/cms/src/model/QueryMetricDataResult.cc index fd5ac0186..97de9148e 100644 --- a/cms/src/model/QueryMetricDataResult.cc +++ b/cms/src/model/QueryMetricDataResult.cc @@ -35,10 +35,13 @@ QueryMetricDataResult::~QueryMetricDataResult() void QueryMetricDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryMetricLastRequest.cc b/cms/src/model/QueryMetricLastRequest.cc index 6263c5872..3038c54ef 100644 --- a/cms/src/model/QueryMetricLastRequest.cc +++ b/cms/src/model/QueryMetricLastRequest.cc @@ -33,7 +33,7 @@ std::string QueryMetricLastRequest::getCursor()const void QueryMetricLastRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } long QueryMetricLastRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryMetricLastRequest::getResourceOwnerId()const void QueryMetricLastRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMetricLastRequest::getPeriod()const @@ -55,7 +55,7 @@ std::string QueryMetricLastRequest::getPeriod()const void QueryMetricLastRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } std::string QueryMetricLastRequest::getLength()const @@ -66,7 +66,7 @@ std::string QueryMetricLastRequest::getLength()const void QueryMetricLastRequest::setLength(const std::string& length) { length_ = length; - setParameter("Length", length); + setCoreParameter("Length", length); } std::string QueryMetricLastRequest::getProject()const @@ -77,7 +77,7 @@ std::string QueryMetricLastRequest::getProject()const void QueryMetricLastRequest::setProject(const std::string& project) { project_ = project; - setParameter("Project", project); + setCoreParameter("Project", project); } std::string QueryMetricLastRequest::getEndTime()const @@ -88,7 +88,7 @@ std::string QueryMetricLastRequest::getEndTime()const void QueryMetricLastRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string QueryMetricLastRequest::getExpress()const @@ -99,7 +99,7 @@ std::string QueryMetricLastRequest::getExpress()const void QueryMetricLastRequest::setExpress(const std::string& express) { express_ = express; - setParameter("Express", express); + setCoreParameter("Express", express); } std::string QueryMetricLastRequest::getStartTime()const @@ -110,7 +110,7 @@ std::string QueryMetricLastRequest::getStartTime()const void QueryMetricLastRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryMetricLastRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string QueryMetricLastRequest::getAccessKeyId()const void QueryMetricLastRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string QueryMetricLastRequest::getMetric()const @@ -132,7 +132,7 @@ std::string QueryMetricLastRequest::getMetric()const void QueryMetricLastRequest::setMetric(const std::string& metric) { metric_ = metric; - setParameter("Metric", metric); + setCoreParameter("Metric", metric); } std::string QueryMetricLastRequest::getPage()const @@ -143,7 +143,7 @@ std::string QueryMetricLastRequest::getPage()const void QueryMetricLastRequest::setPage(const std::string& page) { page_ = page; - setParameter("Page", page); + setCoreParameter("Page", page); } std::string QueryMetricLastRequest::getDimensions()const @@ -154,6 +154,6 @@ std::string QueryMetricLastRequest::getDimensions()const void QueryMetricLastRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } diff --git a/cms/src/model/QueryMetricLastResult.cc b/cms/src/model/QueryMetricLastResult.cc index 19982f741..0f605a84e 100644 --- a/cms/src/model/QueryMetricLastResult.cc +++ b/cms/src/model/QueryMetricLastResult.cc @@ -35,10 +35,13 @@ QueryMetricLastResult::~QueryMetricLastResult() void QueryMetricLastResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryMetricListRequest.cc b/cms/src/model/QueryMetricListRequest.cc index cf1c0087a..242161aec 100644 --- a/cms/src/model/QueryMetricListRequest.cc +++ b/cms/src/model/QueryMetricListRequest.cc @@ -33,7 +33,7 @@ std::string QueryMetricListRequest::getCursor()const void QueryMetricListRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } long QueryMetricListRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryMetricListRequest::getResourceOwnerId()const void QueryMetricListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMetricListRequest::getPeriod()const @@ -55,7 +55,7 @@ std::string QueryMetricListRequest::getPeriod()const void QueryMetricListRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } std::string QueryMetricListRequest::getMetric()const @@ -66,7 +66,7 @@ std::string QueryMetricListRequest::getMetric()const void QueryMetricListRequest::setMetric(const std::string& metric) { metric_ = metric; - setParameter("Metric", metric); + setCoreParameter("Metric", metric); } std::string QueryMetricListRequest::getLength()const @@ -77,7 +77,7 @@ std::string QueryMetricListRequest::getLength()const void QueryMetricListRequest::setLength(const std::string& length) { length_ = length; - setParameter("Length", length); + setCoreParameter("Length", length); } std::string QueryMetricListRequest::getProject()const @@ -88,7 +88,7 @@ std::string QueryMetricListRequest::getProject()const void QueryMetricListRequest::setProject(const std::string& project) { project_ = project; - setParameter("Project", project); + setCoreParameter("Project", project); } std::string QueryMetricListRequest::getEndTime()const @@ -99,7 +99,7 @@ std::string QueryMetricListRequest::getEndTime()const void QueryMetricListRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string QueryMetricListRequest::getExpress()const @@ -110,7 +110,7 @@ std::string QueryMetricListRequest::getExpress()const void QueryMetricListRequest::setExpress(const std::string& express) { express_ = express; - setParameter("Express", express); + setCoreParameter("Express", express); } std::string QueryMetricListRequest::getStartTime()const @@ -121,7 +121,7 @@ std::string QueryMetricListRequest::getStartTime()const void QueryMetricListRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryMetricListRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string QueryMetricListRequest::getAccessKeyId()const void QueryMetricListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string QueryMetricListRequest::getDimensions()const @@ -143,6 +143,6 @@ std::string QueryMetricListRequest::getDimensions()const void QueryMetricListRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } diff --git a/cms/src/model/QueryMetricListResult.cc b/cms/src/model/QueryMetricListResult.cc index 0438b0808..964c8c44b 100644 --- a/cms/src/model/QueryMetricListResult.cc +++ b/cms/src/model/QueryMetricListResult.cc @@ -35,10 +35,13 @@ QueryMetricListResult::~QueryMetricListResult() void QueryMetricListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryMetricMetaRequest.cc b/cms/src/model/QueryMetricMetaRequest.cc index b25cb5a7d..3ee5a3354 100644 --- a/cms/src/model/QueryMetricMetaRequest.cc +++ b/cms/src/model/QueryMetricMetaRequest.cc @@ -33,7 +33,7 @@ std::string QueryMetricMetaRequest::getMetric()const void QueryMetricMetaRequest::setMetric(const std::string& metric) { metric_ = metric; - setParameter("Metric", metric); + setCoreParameter("Metric", metric); } int QueryMetricMetaRequest::getPageSize()const @@ -44,7 +44,7 @@ int QueryMetricMetaRequest::getPageSize()const void QueryMetricMetaRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryMetricMetaRequest::getProject()const @@ -55,7 +55,7 @@ std::string QueryMetricMetaRequest::getProject()const void QueryMetricMetaRequest::setProject(const std::string& project) { project_ = project; - setParameter("Project", project); + setCoreParameter("Project", project); } int QueryMetricMetaRequest::getPageNumber()const @@ -66,7 +66,7 @@ int QueryMetricMetaRequest::getPageNumber()const void QueryMetricMetaRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string QueryMetricMetaRequest::getLabels()const @@ -77,6 +77,6 @@ std::string QueryMetricMetaRequest::getLabels()const void QueryMetricMetaRequest::setLabels(const std::string& labels) { labels_ = labels; - setParameter("Labels", labels); + setCoreParameter("Labels", labels); } diff --git a/cms/src/model/QueryMetricMetaResult.cc b/cms/src/model/QueryMetricMetaResult.cc index 8581ce33c..855f81360 100644 --- a/cms/src/model/QueryMetricMetaResult.cc +++ b/cms/src/model/QueryMetricMetaResult.cc @@ -35,10 +35,13 @@ QueryMetricMetaResult::~QueryMetricMetaResult() void QueryMetricMetaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) diff --git a/cms/src/model/QueryMetricTopRequest.cc b/cms/src/model/QueryMetricTopRequest.cc index cd1ee37d7..2b1e3abce 100644 --- a/cms/src/model/QueryMetricTopRequest.cc +++ b/cms/src/model/QueryMetricTopRequest.cc @@ -33,7 +33,7 @@ std::string QueryMetricTopRequest::getPeriod()const void QueryMetricTopRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } long QueryMetricTopRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryMetricTopRequest::getResourceOwnerId()const void QueryMetricTopRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMetricTopRequest::getMetric()const @@ -55,7 +55,7 @@ std::string QueryMetricTopRequest::getMetric()const void QueryMetricTopRequest::setMetric(const std::string& metric) { metric_ = metric; - setParameter("Metric", metric); + setCoreParameter("Metric", metric); } std::string QueryMetricTopRequest::getLength()const @@ -66,7 +66,7 @@ std::string QueryMetricTopRequest::getLength()const void QueryMetricTopRequest::setLength(const std::string& length) { length_ = length; - setParameter("Length", length); + setCoreParameter("Length", length); } std::string QueryMetricTopRequest::getProject()const @@ -77,7 +77,7 @@ std::string QueryMetricTopRequest::getProject()const void QueryMetricTopRequest::setProject(const std::string& project) { project_ = project; - setParameter("Project", project); + setCoreParameter("Project", project); } std::string QueryMetricTopRequest::getEndTime()const @@ -88,7 +88,7 @@ std::string QueryMetricTopRequest::getEndTime()const void QueryMetricTopRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string QueryMetricTopRequest::getOrderby()const @@ -99,7 +99,7 @@ std::string QueryMetricTopRequest::getOrderby()const void QueryMetricTopRequest::setOrderby(const std::string& orderby) { orderby_ = orderby; - setParameter("Orderby", orderby); + setCoreParameter("Orderby", orderby); } std::string QueryMetricTopRequest::getExpress()const @@ -110,7 +110,7 @@ std::string QueryMetricTopRequest::getExpress()const void QueryMetricTopRequest::setExpress(const std::string& express) { express_ = express; - setParameter("Express", express); + setCoreParameter("Express", express); } std::string QueryMetricTopRequest::getStartTime()const @@ -121,7 +121,7 @@ std::string QueryMetricTopRequest::getStartTime()const void QueryMetricTopRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryMetricTopRequest::getDimensions()const @@ -132,7 +132,7 @@ std::string QueryMetricTopRequest::getDimensions()const void QueryMetricTopRequest::setDimensions(const std::string& dimensions) { dimensions_ = dimensions; - setParameter("Dimensions", dimensions); + setCoreParameter("Dimensions", dimensions); } std::string QueryMetricTopRequest::getOrderDesc()const @@ -143,7 +143,7 @@ std::string QueryMetricTopRequest::getOrderDesc()const void QueryMetricTopRequest::setOrderDesc(const std::string& orderDesc) { orderDesc_ = orderDesc; - setParameter("OrderDesc", orderDesc); + setCoreParameter("OrderDesc", orderDesc); } std::string QueryMetricTopRequest::getAccessKeyId()const @@ -154,6 +154,6 @@ std::string QueryMetricTopRequest::getAccessKeyId()const void QueryMetricTopRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/cms/src/model/QueryMetricTopResult.cc b/cms/src/model/QueryMetricTopResult.cc index f9846d5a6..9d39b3227 100644 --- a/cms/src/model/QueryMetricTopResult.cc +++ b/cms/src/model/QueryMetricTopResult.cc @@ -35,10 +35,13 @@ QueryMetricTopResult::~QueryMetricTopResult() void QueryMetricTopResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryProjectMetaRequest.cc b/cms/src/model/QueryProjectMetaRequest.cc index c9cf3916c..579291eaa 100644 --- a/cms/src/model/QueryProjectMetaRequest.cc +++ b/cms/src/model/QueryProjectMetaRequest.cc @@ -33,7 +33,7 @@ int QueryProjectMetaRequest::getPageSize()const void QueryProjectMetaRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int QueryProjectMetaRequest::getPageNumber()const @@ -44,7 +44,7 @@ int QueryProjectMetaRequest::getPageNumber()const void QueryProjectMetaRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string QueryProjectMetaRequest::getLabels()const @@ -55,6 +55,6 @@ std::string QueryProjectMetaRequest::getLabels()const void QueryProjectMetaRequest::setLabels(const std::string& labels) { labels_ = labels; - setParameter("Labels", labels); + setCoreParameter("Labels", labels); } diff --git a/cms/src/model/QueryProjectMetaResult.cc b/cms/src/model/QueryProjectMetaResult.cc index 33b3bfde2..3c8ac6e3f 100644 --- a/cms/src/model/QueryProjectMetaResult.cc +++ b/cms/src/model/QueryProjectMetaResult.cc @@ -35,10 +35,13 @@ QueryProjectMetaResult::~QueryProjectMetaResult() void QueryProjectMetaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) diff --git a/cms/src/model/QueryStaticsAvailabilityRequest.cc b/cms/src/model/QueryStaticsAvailabilityRequest.cc index dd593fe33..56e4ad765 100644 --- a/cms/src/model/QueryStaticsAvailabilityRequest.cc +++ b/cms/src/model/QueryStaticsAvailabilityRequest.cc @@ -33,7 +33,7 @@ std::string QueryStaticsAvailabilityRequest::getTimeRange()const void QueryStaticsAvailabilityRequest::setTimeRange(const std::string& timeRange) { timeRange_ = timeRange; - setParameter("TimeRange", timeRange); + setCoreParameter("TimeRange", timeRange); } std::string QueryStaticsAvailabilityRequest::getTaskId()const @@ -44,6 +44,6 @@ std::string QueryStaticsAvailabilityRequest::getTaskId()const void QueryStaticsAvailabilityRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/QueryStaticsAvailabilityResult.cc b/cms/src/model/QueryStaticsAvailabilityResult.cc index 09432403f..6dd02c546 100644 --- a/cms/src/model/QueryStaticsAvailabilityResult.cc +++ b/cms/src/model/QueryStaticsAvailabilityResult.cc @@ -35,10 +35,13 @@ QueryStaticsAvailabilityResult::~QueryStaticsAvailabilityResult() void QueryStaticsAvailabilityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryStaticsErrorRateRequest.cc b/cms/src/model/QueryStaticsErrorRateRequest.cc index 671d280b6..6bfa366bd 100644 --- a/cms/src/model/QueryStaticsErrorRateRequest.cc +++ b/cms/src/model/QueryStaticsErrorRateRequest.cc @@ -33,7 +33,7 @@ std::string QueryStaticsErrorRateRequest::getTimeRange()const void QueryStaticsErrorRateRequest::setTimeRange(const std::string& timeRange) { timeRange_ = timeRange; - setParameter("TimeRange", timeRange); + setCoreParameter("TimeRange", timeRange); } std::string QueryStaticsErrorRateRequest::getTaskId()const @@ -44,6 +44,6 @@ std::string QueryStaticsErrorRateRequest::getTaskId()const void QueryStaticsErrorRateRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/QueryStaticsErrorRateResult.cc b/cms/src/model/QueryStaticsErrorRateResult.cc index df022025a..d70f85f56 100644 --- a/cms/src/model/QueryStaticsErrorRateResult.cc +++ b/cms/src/model/QueryStaticsErrorRateResult.cc @@ -35,10 +35,13 @@ QueryStaticsErrorRateResult::~QueryStaticsErrorRateResult() void QueryStaticsErrorRateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryStaticsResponseTimeRequest.cc b/cms/src/model/QueryStaticsResponseTimeRequest.cc index 0f8edeaf3..e18f83fa8 100644 --- a/cms/src/model/QueryStaticsResponseTimeRequest.cc +++ b/cms/src/model/QueryStaticsResponseTimeRequest.cc @@ -33,7 +33,7 @@ std::string QueryStaticsResponseTimeRequest::getTimeRange()const void QueryStaticsResponseTimeRequest::setTimeRange(const std::string& timeRange) { timeRange_ = timeRange; - setParameter("TimeRange", timeRange); + setCoreParameter("TimeRange", timeRange); } std::string QueryStaticsResponseTimeRequest::getTaskId()const @@ -44,6 +44,6 @@ std::string QueryStaticsResponseTimeRequest::getTaskId()const void QueryStaticsResponseTimeRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/QueryStaticsResponseTimeResult.cc b/cms/src/model/QueryStaticsResponseTimeResult.cc index 4d01b49ca..e8d4c13a1 100644 --- a/cms/src/model/QueryStaticsResponseTimeResult.cc +++ b/cms/src/model/QueryStaticsResponseTimeResult.cc @@ -35,10 +35,13 @@ QueryStaticsResponseTimeResult::~QueryStaticsResponseTimeResult() void QueryStaticsResponseTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QuerySystemEventCountRequest.cc b/cms/src/model/QuerySystemEventCountRequest.cc index 7be446276..d0925c81d 100644 --- a/cms/src/model/QuerySystemEventCountRequest.cc +++ b/cms/src/model/QuerySystemEventCountRequest.cc @@ -33,6 +33,6 @@ std::string QuerySystemEventCountRequest::getQueryJson()const void QuerySystemEventCountRequest::setQueryJson(const std::string& queryJson) { queryJson_ = queryJson; - setParameter("QueryJson", queryJson); + setCoreParameter("QueryJson", queryJson); } diff --git a/cms/src/model/QuerySystemEventCountResult.cc b/cms/src/model/QuerySystemEventCountResult.cc index 9637203e3..4266e5b1f 100644 --- a/cms/src/model/QuerySystemEventCountResult.cc +++ b/cms/src/model/QuerySystemEventCountResult.cc @@ -35,10 +35,13 @@ QuerySystemEventCountResult::~QuerySystemEventCountResult() void QuerySystemEventCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QuerySystemEventDemoRequest.cc b/cms/src/model/QuerySystemEventDemoRequest.cc index 9608d3a3d..15f3c49b8 100644 --- a/cms/src/model/QuerySystemEventDemoRequest.cc +++ b/cms/src/model/QuerySystemEventDemoRequest.cc @@ -33,7 +33,7 @@ std::string QuerySystemEventDemoRequest::getProduct()const void QuerySystemEventDemoRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string QuerySystemEventDemoRequest::getEventName()const @@ -44,6 +44,6 @@ std::string QuerySystemEventDemoRequest::getEventName()const void QuerySystemEventDemoRequest::setEventName(const std::string& eventName) { eventName_ = eventName; - setParameter("EventName", eventName); + setCoreParameter("EventName", eventName); } diff --git a/cms/src/model/QuerySystemEventDemoResult.cc b/cms/src/model/QuerySystemEventDemoResult.cc index d553cb76c..1c72a0cf8 100644 --- a/cms/src/model/QuerySystemEventDemoResult.cc +++ b/cms/src/model/QuerySystemEventDemoResult.cc @@ -35,10 +35,13 @@ QuerySystemEventDemoResult::~QuerySystemEventDemoResult() void QuerySystemEventDemoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QuerySystemEventDetailRequest.cc b/cms/src/model/QuerySystemEventDetailRequest.cc index eb1edde0a..003fd7160 100644 --- a/cms/src/model/QuerySystemEventDetailRequest.cc +++ b/cms/src/model/QuerySystemEventDetailRequest.cc @@ -33,6 +33,6 @@ std::string QuerySystemEventDetailRequest::getQueryJson()const void QuerySystemEventDetailRequest::setQueryJson(const std::string& queryJson) { queryJson_ = queryJson; - setParameter("QueryJson", queryJson); + setCoreParameter("QueryJson", queryJson); } diff --git a/cms/src/model/QuerySystemEventDetailResult.cc b/cms/src/model/QuerySystemEventDetailResult.cc index 39917feba..20341cefb 100644 --- a/cms/src/model/QuerySystemEventDetailResult.cc +++ b/cms/src/model/QuerySystemEventDetailResult.cc @@ -35,10 +35,13 @@ QuerySystemEventDetailResult::~QuerySystemEventDetailResult() void QuerySystemEventDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QuerySystemEventHistogramRequest.cc b/cms/src/model/QuerySystemEventHistogramRequest.cc index 52652da08..bd59463cc 100644 --- a/cms/src/model/QuerySystemEventHistogramRequest.cc +++ b/cms/src/model/QuerySystemEventHistogramRequest.cc @@ -33,6 +33,6 @@ std::string QuerySystemEventHistogramRequest::getQueryJson()const void QuerySystemEventHistogramRequest::setQueryJson(const std::string& queryJson) { queryJson_ = queryJson; - setParameter("QueryJson", queryJson); + setCoreParameter("QueryJson", queryJson); } diff --git a/cms/src/model/QuerySystemEventHistogramResult.cc b/cms/src/model/QuerySystemEventHistogramResult.cc index 22b80345b..49e2889d6 100644 --- a/cms/src/model/QuerySystemEventHistogramResult.cc +++ b/cms/src/model/QuerySystemEventHistogramResult.cc @@ -35,10 +35,13 @@ QuerySystemEventHistogramResult::~QuerySystemEventHistogramResult() void QuerySystemEventHistogramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryTaskConfigResult.cc b/cms/src/model/QueryTaskConfigResult.cc index 94525e9f7..981139c5a 100644 --- a/cms/src/model/QueryTaskConfigResult.cc +++ b/cms/src/model/QueryTaskConfigResult.cc @@ -35,10 +35,13 @@ QueryTaskConfigResult::~QueryTaskConfigResult() void QueryTaskConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/QueryTaskMonitorDataRequest.cc b/cms/src/model/QueryTaskMonitorDataRequest.cc index 0cee0a911..86e3218f6 100644 --- a/cms/src/model/QueryTaskMonitorDataRequest.cc +++ b/cms/src/model/QueryTaskMonitorDataRequest.cc @@ -33,7 +33,7 @@ std::string QueryTaskMonitorDataRequest::getCursor()const void QueryTaskMonitorDataRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } std::string QueryTaskMonitorDataRequest::getPeriod()const @@ -44,7 +44,7 @@ std::string QueryTaskMonitorDataRequest::getPeriod()const void QueryTaskMonitorDataRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } int QueryTaskMonitorDataRequest::getLength()const @@ -55,7 +55,7 @@ int QueryTaskMonitorDataRequest::getLength()const void QueryTaskMonitorDataRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string QueryTaskMonitorDataRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string QueryTaskMonitorDataRequest::getEndTime()const void QueryTaskMonitorDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string QueryTaskMonitorDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string QueryTaskMonitorDataRequest::getStartTime()const void QueryTaskMonitorDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryTaskMonitorDataRequest::getType()const @@ -88,7 +88,7 @@ std::string QueryTaskMonitorDataRequest::getType()const void QueryTaskMonitorDataRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string QueryTaskMonitorDataRequest::getMetricName()const @@ -99,7 +99,7 @@ std::string QueryTaskMonitorDataRequest::getMetricName()const void QueryTaskMonitorDataRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } std::string QueryTaskMonitorDataRequest::getTaskId()const @@ -110,6 +110,6 @@ std::string QueryTaskMonitorDataRequest::getTaskId()const void QueryTaskMonitorDataRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } diff --git a/cms/src/model/QueryTaskMonitorDataResult.cc b/cms/src/model/QueryTaskMonitorDataResult.cc index e459442e4..7969e9bc8 100644 --- a/cms/src/model/QueryTaskMonitorDataResult.cc +++ b/cms/src/model/QueryTaskMonitorDataResult.cc @@ -35,10 +35,13 @@ QueryTaskMonitorDataResult::~QueryTaskMonitorDataResult() void QueryTaskMonitorDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/RemoveMetricRuleTargetsRequest.cc b/cms/src/model/RemoveMetricRuleTargetsRequest.cc new file mode 100644 index 000000000..2b06e0c79 --- /dev/null +++ b/cms/src/model/RemoveMetricRuleTargetsRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::RemoveMetricRuleTargetsRequest; + +RemoveMetricRuleTargetsRequest::RemoveMetricRuleTargetsRequest() : + RpcServiceRequest("cms", "2018-03-08", "RemoveMetricRuleTargets") +{} + +RemoveMetricRuleTargetsRequest::~RemoveMetricRuleTargetsRequest() +{} + +std::vector RemoveMetricRuleTargetsRequest::getContactGroupTargetIds()const +{ + return contactGroupTargetIds_; +} + +void RemoveMetricRuleTargetsRequest::setContactGroupTargetIds(const std::vector& contactGroupTargetIds) +{ + contactGroupTargetIds_ = contactGroupTargetIds; + for(int i = 0; i!= contactGroupTargetIds.size(); i++) + setCoreParameter("ContactGroupTargetIds."+ std::to_string(i), contactGroupTargetIds.at(i)); +} + +std::vector RemoveMetricRuleTargetsRequest::getTargetIds()const +{ + return targetIds_; +} + +void RemoveMetricRuleTargetsRequest::setTargetIds(const std::vector& targetIds) +{ + targetIds_ = targetIds; + for(int i = 0; i!= targetIds.size(); i++) + setCoreParameter("TargetIds."+ std::to_string(i), targetIds.at(i)); +} + +std::vector RemoveMetricRuleTargetsRequest::getWebhookTargetIds()const +{ + return webhookTargetIds_; +} + +void RemoveMetricRuleTargetsRequest::setWebhookTargetIds(const std::vector& webhookTargetIds) +{ + webhookTargetIds_ = webhookTargetIds; + for(int i = 0; i!= webhookTargetIds.size(); i++) + setCoreParameter("WebhookTargetIds."+ std::to_string(i), webhookTargetIds.at(i)); +} + +std::string RemoveMetricRuleTargetsRequest::getRuleName()const +{ + return ruleName_; +} + +void RemoveMetricRuleTargetsRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + diff --git a/cms/src/model/RemoveMetricRuleTargetsResult.cc b/cms/src/model/RemoveMetricRuleTargetsResult.cc new file mode 100644 index 000000000..45d323d69 --- /dev/null +++ b/cms/src/model/RemoveMetricRuleTargetsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +RemoveMetricRuleTargetsResult::RemoveMetricRuleTargetsResult() : + ServiceResult() +{} + +RemoveMetricRuleTargetsResult::RemoveMetricRuleTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveMetricRuleTargetsResult::~RemoveMetricRuleTargetsResult() +{} + +void RemoveMetricRuleTargetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto failIdsNode = value["FailIds"]; + auto allTargetIds = failIdsNode["TargetIds"]["TargetId"]; + for (auto value : allTargetIds) + failIds_.targetIds.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string RemoveMetricRuleTargetsResult::getMessage()const +{ + return message_; +} + +std::string RemoveMetricRuleTargetsResult::getCode()const +{ + return code_; +} + +RemoveMetricRuleTargetsResult::FailIds RemoveMetricRuleTargetsResult::getFailIds()const +{ + return failIds_; +} + +bool RemoveMetricRuleTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/SendDryRunSystemEventRequest.cc b/cms/src/model/SendDryRunSystemEventRequest.cc index c0e8b625c..9c7ac0baa 100644 --- a/cms/src/model/SendDryRunSystemEventRequest.cc +++ b/cms/src/model/SendDryRunSystemEventRequest.cc @@ -33,7 +33,7 @@ std::string SendDryRunSystemEventRequest::getProduct()const void SendDryRunSystemEventRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string SendDryRunSystemEventRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string SendDryRunSystemEventRequest::getGroupId()const void SendDryRunSystemEventRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string SendDryRunSystemEventRequest::getEventName()const @@ -55,7 +55,7 @@ std::string SendDryRunSystemEventRequest::getEventName()const void SendDryRunSystemEventRequest::setEventName(const std::string& eventName) { eventName_ = eventName; - setParameter("EventName", eventName); + setCoreParameter("EventName", eventName); } std::string SendDryRunSystemEventRequest::getEventContent()const @@ -66,6 +66,6 @@ std::string SendDryRunSystemEventRequest::getEventContent()const void SendDryRunSystemEventRequest::setEventContent(const std::string& eventContent) { eventContent_ = eventContent; - setParameter("EventContent", eventContent); + setCoreParameter("EventContent", eventContent); } diff --git a/cms/src/model/SendDryRunSystemEventResult.cc b/cms/src/model/SendDryRunSystemEventResult.cc index c785a610b..4e9e46f41 100644 --- a/cms/src/model/SendDryRunSystemEventResult.cc +++ b/cms/src/model/SendDryRunSystemEventResult.cc @@ -35,10 +35,13 @@ SendDryRunSystemEventResult::~SendDryRunSystemEventResult() void SendDryRunSystemEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/StartTasksRequest.cc b/cms/src/model/StartTasksRequest.cc index 492c8e988..ce875430c 100644 --- a/cms/src/model/StartTasksRequest.cc +++ b/cms/src/model/StartTasksRequest.cc @@ -33,6 +33,6 @@ std::string StartTasksRequest::getTaskIds()const void StartTasksRequest::setTaskIds(const std::string& taskIds) { taskIds_ = taskIds; - setParameter("TaskIds", taskIds); + setCoreParameter("TaskIds", taskIds); } diff --git a/cms/src/model/StartTasksResult.cc b/cms/src/model/StartTasksResult.cc index 4300a0e94..efd7b01b0 100644 --- a/cms/src/model/StartTasksResult.cc +++ b/cms/src/model/StartTasksResult.cc @@ -35,10 +35,13 @@ StartTasksResult::~StartTasksResult() void StartTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/StopTasksRequest.cc b/cms/src/model/StopTasksRequest.cc index db5d11b39..044cfe370 100644 --- a/cms/src/model/StopTasksRequest.cc +++ b/cms/src/model/StopTasksRequest.cc @@ -33,6 +33,6 @@ std::string StopTasksRequest::getTaskIds()const void StopTasksRequest::setTaskIds(const std::string& taskIds) { taskIds_ = taskIds; - setParameter("TaskIds", taskIds); + setCoreParameter("TaskIds", taskIds); } diff --git a/cms/src/model/StopTasksResult.cc b/cms/src/model/StopTasksResult.cc index 47503cd8d..d7e5c0eda 100644 --- a/cms/src/model/StopTasksResult.cc +++ b/cms/src/model/StopTasksResult.cc @@ -35,10 +35,13 @@ StopTasksResult::~StopTasksResult() void StopTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/cms/src/model/TaskConfigCreateRequest.cc b/cms/src/model/TaskConfigCreateRequest.cc index e57c65a88..00242da67 100644 --- a/cms/src/model/TaskConfigCreateRequest.cc +++ b/cms/src/model/TaskConfigCreateRequest.cc @@ -34,7 +34,7 @@ void TaskConfigCreateRequest::setInstanceList(const std::vector& in { instanceList_ = instanceList; for(int i = 0; i!= instanceList.size(); i++) - setParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); + setCoreParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); } std::string TaskConfigCreateRequest::getJsonData()const @@ -45,7 +45,7 @@ std::string TaskConfigCreateRequest::getJsonData()const void TaskConfigCreateRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string TaskConfigCreateRequest::getTaskType()const @@ -56,7 +56,7 @@ std::string TaskConfigCreateRequest::getTaskType()const void TaskConfigCreateRequest::setTaskType(const std::string& taskType) { taskType_ = taskType; - setParameter("TaskType", taskType); + setCoreParameter("TaskType", taskType); } std::string TaskConfigCreateRequest::getTaskScope()const @@ -67,7 +67,7 @@ std::string TaskConfigCreateRequest::getTaskScope()const void TaskConfigCreateRequest::setTaskScope(const std::string& taskScope) { taskScope_ = taskScope; - setParameter("TaskScope", taskScope); + setCoreParameter("TaskScope", taskScope); } std::string TaskConfigCreateRequest::getAlertConfig()const @@ -78,7 +78,7 @@ std::string TaskConfigCreateRequest::getAlertConfig()const void TaskConfigCreateRequest::setAlertConfig(const std::string& alertConfig) { alertConfig_ = alertConfig; - setParameter("AlertConfig", alertConfig); + setCoreParameter("AlertConfig", alertConfig); } long TaskConfigCreateRequest::getGroupId()const @@ -89,7 +89,7 @@ long TaskConfigCreateRequest::getGroupId()const void TaskConfigCreateRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string TaskConfigCreateRequest::getTaskName()const @@ -100,7 +100,7 @@ std::string TaskConfigCreateRequest::getTaskName()const void TaskConfigCreateRequest::setTaskName(const std::string& taskName) { taskName_ = taskName; - setParameter("TaskName", taskName); + setCoreParameter("TaskName", taskName); } std::string TaskConfigCreateRequest::getGroupName()const @@ -111,6 +111,6 @@ std::string TaskConfigCreateRequest::getGroupName()const void TaskConfigCreateRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/cms/src/model/TaskConfigCreateResult.cc b/cms/src/model/TaskConfigCreateResult.cc index f0d5ba3d5..6891e7732 100644 --- a/cms/src/model/TaskConfigCreateResult.cc +++ b/cms/src/model/TaskConfigCreateResult.cc @@ -35,10 +35,13 @@ TaskConfigCreateResult::~TaskConfigCreateResult() void TaskConfigCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/TaskConfigDeleteRequest.cc b/cms/src/model/TaskConfigDeleteRequest.cc index 65ba088b3..2de68fce9 100644 --- a/cms/src/model/TaskConfigDeleteRequest.cc +++ b/cms/src/model/TaskConfigDeleteRequest.cc @@ -34,6 +34,6 @@ void TaskConfigDeleteRequest::setIdList(const std::vector& idList) { idList_ = idList; for(int i = 0; i!= idList.size(); i++) - setParameter("IdList."+ std::to_string(i), std::to_string(idList.at(i))); + setCoreParameter("IdList."+ std::to_string(i), std::to_string(idList.at(i))); } diff --git a/cms/src/model/TaskConfigDeleteResult.cc b/cms/src/model/TaskConfigDeleteResult.cc index f200a90d9..3778bcde6 100644 --- a/cms/src/model/TaskConfigDeleteResult.cc +++ b/cms/src/model/TaskConfigDeleteResult.cc @@ -35,10 +35,13 @@ TaskConfigDeleteResult::~TaskConfigDeleteResult() void TaskConfigDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/TaskConfigEnableRequest.cc b/cms/src/model/TaskConfigEnableRequest.cc index e119a9900..b9ec69d2a 100644 --- a/cms/src/model/TaskConfigEnableRequest.cc +++ b/cms/src/model/TaskConfigEnableRequest.cc @@ -34,7 +34,7 @@ void TaskConfigEnableRequest::setIdList(const std::vector& idList) { idList_ = idList; for(int i = 0; i!= idList.size(); i++) - setParameter("IdList."+ std::to_string(i), std::to_string(idList.at(i))); + setCoreParameter("IdList."+ std::to_string(i), std::to_string(idList.at(i))); } bool TaskConfigEnableRequest::getEnabled()const @@ -45,6 +45,6 @@ bool TaskConfigEnableRequest::getEnabled()const void TaskConfigEnableRequest::setEnabled(bool enabled) { enabled_ = enabled; - setParameter("Enabled", enabled ? "true" : "false"); + setCoreParameter("Enabled", enabled ? "true" : "false"); } diff --git a/cms/src/model/TaskConfigEnableResult.cc b/cms/src/model/TaskConfigEnableResult.cc index 553074a72..1e026aeab 100644 --- a/cms/src/model/TaskConfigEnableResult.cc +++ b/cms/src/model/TaskConfigEnableResult.cc @@ -35,10 +35,13 @@ TaskConfigEnableResult::~TaskConfigEnableResult() void TaskConfigEnableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/TaskConfigListRequest.cc b/cms/src/model/TaskConfigListRequest.cc index 24f9f9699..913dc2e58 100644 --- a/cms/src/model/TaskConfigListRequest.cc +++ b/cms/src/model/TaskConfigListRequest.cc @@ -33,7 +33,7 @@ long TaskConfigListRequest::getGroupId()const void TaskConfigListRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } int TaskConfigListRequest::getPageSize()const @@ -44,7 +44,7 @@ int TaskConfigListRequest::getPageSize()const void TaskConfigListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string TaskConfigListRequest::getTaskName()const @@ -55,7 +55,7 @@ std::string TaskConfigListRequest::getTaskName()const void TaskConfigListRequest::setTaskName(const std::string& taskName) { taskName_ = taskName; - setParameter("TaskName", taskName); + setCoreParameter("TaskName", taskName); } long TaskConfigListRequest::getId()const @@ -66,7 +66,7 @@ long TaskConfigListRequest::getId()const void TaskConfigListRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } int TaskConfigListRequest::getPageNumber()const @@ -77,6 +77,6 @@ int TaskConfigListRequest::getPageNumber()const void TaskConfigListRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/cms/src/model/TaskConfigListResult.cc b/cms/src/model/TaskConfigListResult.cc index e93eb4709..6b8816abf 100644 --- a/cms/src/model/TaskConfigListResult.cc +++ b/cms/src/model/TaskConfigListResult.cc @@ -35,10 +35,13 @@ TaskConfigListResult::~TaskConfigListResult() void TaskConfigListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTaskList = value["TaskList"]["NodeTaskConfig"]; for (auto value : allTaskList) diff --git a/cms/src/model/TaskConfigModifyRequest.cc b/cms/src/model/TaskConfigModifyRequest.cc index 999921ccb..100e6af4f 100644 --- a/cms/src/model/TaskConfigModifyRequest.cc +++ b/cms/src/model/TaskConfigModifyRequest.cc @@ -34,7 +34,7 @@ void TaskConfigModifyRequest::setInstanceList(const std::vector& in { instanceList_ = instanceList; for(int i = 0; i!= instanceList.size(); i++) - setParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); + setCoreParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); } std::string TaskConfigModifyRequest::getJsonData()const @@ -45,7 +45,7 @@ std::string TaskConfigModifyRequest::getJsonData()const void TaskConfigModifyRequest::setJsonData(const std::string& jsonData) { jsonData_ = jsonData; - setParameter("JsonData", jsonData); + setCoreParameter("JsonData", jsonData); } std::string TaskConfigModifyRequest::getTaskType()const @@ -56,7 +56,7 @@ std::string TaskConfigModifyRequest::getTaskType()const void TaskConfigModifyRequest::setTaskType(const std::string& taskType) { taskType_ = taskType; - setParameter("TaskType", taskType); + setCoreParameter("TaskType", taskType); } std::string TaskConfigModifyRequest::getTaskScope()const @@ -67,7 +67,7 @@ std::string TaskConfigModifyRequest::getTaskScope()const void TaskConfigModifyRequest::setTaskScope(const std::string& taskScope) { taskScope_ = taskScope; - setParameter("TaskScope", taskScope); + setCoreParameter("TaskScope", taskScope); } std::string TaskConfigModifyRequest::getAlertConfig()const @@ -78,7 +78,7 @@ std::string TaskConfigModifyRequest::getAlertConfig()const void TaskConfigModifyRequest::setAlertConfig(const std::string& alertConfig) { alertConfig_ = alertConfig; - setParameter("AlertConfig", alertConfig); + setCoreParameter("AlertConfig", alertConfig); } long TaskConfigModifyRequest::getGroupId()const @@ -89,7 +89,7 @@ long TaskConfigModifyRequest::getGroupId()const void TaskConfigModifyRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string TaskConfigModifyRequest::getTaskName()const @@ -100,7 +100,7 @@ std::string TaskConfigModifyRequest::getTaskName()const void TaskConfigModifyRequest::setTaskName(const std::string& taskName) { taskName_ = taskName; - setParameter("TaskName", taskName); + setCoreParameter("TaskName", taskName); } long TaskConfigModifyRequest::getId()const @@ -111,7 +111,7 @@ long TaskConfigModifyRequest::getId()const void TaskConfigModifyRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string TaskConfigModifyRequest::getGroupName()const @@ -122,6 +122,6 @@ std::string TaskConfigModifyRequest::getGroupName()const void TaskConfigModifyRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/cms/src/model/TaskConfigModifyResult.cc b/cms/src/model/TaskConfigModifyResult.cc index f60065821..d9bfe471f 100644 --- a/cms/src/model/TaskConfigModifyResult.cc +++ b/cms/src/model/TaskConfigModifyResult.cc @@ -35,10 +35,13 @@ TaskConfigModifyResult::~TaskConfigModifyResult() void TaskConfigModifyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ErrorCode"].isNull()) errorCode_ = std::stoi(value["ErrorCode"].asString()); diff --git a/cms/src/model/TaskConfigUnhealthyRequest.cc b/cms/src/model/TaskConfigUnhealthyRequest.cc index 445140f6b..1cda466f4 100644 --- a/cms/src/model/TaskConfigUnhealthyRequest.cc +++ b/cms/src/model/TaskConfigUnhealthyRequest.cc @@ -34,6 +34,6 @@ void TaskConfigUnhealthyRequest::setTaskIdList(const std::vector& taskIdLi { taskIdList_ = taskIdList; for(int i = 0; i!= taskIdList.size(); i++) - setParameter("TaskIdList."+ std::to_string(i), std::to_string(taskIdList.at(i))); + setCoreParameter("TaskIdList."+ std::to_string(i), std::to_string(taskIdList.at(i))); } diff --git a/cms/src/model/TaskConfigUnhealthyResult.cc b/cms/src/model/TaskConfigUnhealthyResult.cc index 4523e2cb9..f434d83c3 100644 --- a/cms/src/model/TaskConfigUnhealthyResult.cc +++ b/cms/src/model/TaskConfigUnhealthyResult.cc @@ -35,10 +35,13 @@ TaskConfigUnhealthyResult::~TaskConfigUnhealthyResult() void TaskConfigUnhealthyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUnhealthyList = value["UnhealthyList"]["NodeTaskInstance"]; for (auto value : allUnhealthyList) diff --git a/cms/src/model/UpdateAlarmRequest.cc b/cms/src/model/UpdateAlarmRequest.cc index 48dadbbad..f2d8584fc 100644 --- a/cms/src/model/UpdateAlarmRequest.cc +++ b/cms/src/model/UpdateAlarmRequest.cc @@ -33,7 +33,7 @@ int UpdateAlarmRequest::getPeriod()const void UpdateAlarmRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string UpdateAlarmRequest::getWebhook()const @@ -44,7 +44,7 @@ std::string UpdateAlarmRequest::getWebhook()const void UpdateAlarmRequest::setWebhook(const std::string& webhook) { webhook_ = webhook; - setParameter("Webhook", webhook); + setCoreParameter("Webhook", webhook); } bool UpdateAlarmRequest::getDryRun()const @@ -55,7 +55,7 @@ bool UpdateAlarmRequest::getDryRun()const void UpdateAlarmRequest::setDryRun(bool dryRun) { dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); + setCoreParameter("DryRun", dryRun ? "true" : "false"); } std::string UpdateAlarmRequest::getContactGroups()const @@ -66,7 +66,7 @@ std::string UpdateAlarmRequest::getContactGroups()const void UpdateAlarmRequest::setContactGroups(const std::string& contactGroups) { contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); + setCoreParameter("ContactGroups", contactGroups); } int UpdateAlarmRequest::getEndTime()const @@ -77,7 +77,7 @@ int UpdateAlarmRequest::getEndTime()const void UpdateAlarmRequest::setEndTime(int endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } std::string UpdateAlarmRequest::getThreshold()const @@ -88,7 +88,7 @@ std::string UpdateAlarmRequest::getThreshold()const void UpdateAlarmRequest::setThreshold(const std::string& threshold) { threshold_ = threshold; - setParameter("Threshold", threshold); + setCoreParameter("Threshold", threshold); } int UpdateAlarmRequest::getStartTime()const @@ -99,7 +99,7 @@ int UpdateAlarmRequest::getStartTime()const void UpdateAlarmRequest::setStartTime(int startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string UpdateAlarmRequest::getName()const @@ -110,7 +110,7 @@ std::string UpdateAlarmRequest::getName()const void UpdateAlarmRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int UpdateAlarmRequest::getEvaluationCount()const @@ -121,7 +121,7 @@ int UpdateAlarmRequest::getEvaluationCount()const void UpdateAlarmRequest::setEvaluationCount(int evaluationCount) { evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); + setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); } int UpdateAlarmRequest::getSilenceTime()const @@ -132,7 +132,7 @@ int UpdateAlarmRequest::getSilenceTime()const void UpdateAlarmRequest::setSilenceTime(int silenceTime) { silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); + setCoreParameter("SilenceTime", std::to_string(silenceTime)); } std::string UpdateAlarmRequest::getId()const @@ -143,7 +143,7 @@ std::string UpdateAlarmRequest::getId()const void UpdateAlarmRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } int UpdateAlarmRequest::getNotifyType()const @@ -154,7 +154,7 @@ int UpdateAlarmRequest::getNotifyType()const void UpdateAlarmRequest::setNotifyType(int notifyType) { notifyType_ = notifyType; - setParameter("NotifyType", std::to_string(notifyType)); + setCoreParameter("NotifyType", std::to_string(notifyType)); } std::string UpdateAlarmRequest::getComparisonOperator()const @@ -165,7 +165,7 @@ std::string UpdateAlarmRequest::getComparisonOperator()const void UpdateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator) { comparisonOperator_ = comparisonOperator; - setParameter("ComparisonOperator", comparisonOperator); + setCoreParameter("ComparisonOperator", comparisonOperator); } std::string UpdateAlarmRequest::getStatistics()const @@ -176,6 +176,6 @@ std::string UpdateAlarmRequest::getStatistics()const void UpdateAlarmRequest::setStatistics(const std::string& statistics) { statistics_ = statistics; - setParameter("Statistics", statistics); + setCoreParameter("Statistics", statistics); } diff --git a/cms/src/model/UpdateAlarmResult.cc b/cms/src/model/UpdateAlarmResult.cc index a01f18991..14022cd3c 100644 --- a/cms/src/model/UpdateAlarmResult.cc +++ b/cms/src/model/UpdateAlarmResult.cc @@ -35,10 +35,13 @@ UpdateAlarmResult::~UpdateAlarmResult() void UpdateAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/UpdateMonitoringTemplateRequest.cc b/cms/src/model/UpdateMonitoringTemplateRequest.cc index 6de7ff906..b5bef4005 100644 --- a/cms/src/model/UpdateMonitoringTemplateRequest.cc +++ b/cms/src/model/UpdateMonitoringTemplateRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMonitoringTemplateRequest::getEventRuleTemplatesJson()const void UpdateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson) { eventRuleTemplatesJson_ = eventRuleTemplatesJson; - setParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); + setCoreParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); } std::string UpdateMonitoringTemplateRequest::getName()const @@ -44,7 +44,7 @@ std::string UpdateMonitoringTemplateRequest::getName()const void UpdateMonitoringTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long UpdateMonitoringTemplateRequest::getRestVersion()const @@ -55,7 +55,7 @@ long UpdateMonitoringTemplateRequest::getRestVersion()const void UpdateMonitoringTemplateRequest::setRestVersion(long restVersion) { restVersion_ = restVersion; - setParameter("RestVersion", std::to_string(restVersion)); + setCoreParameter("RestVersion", std::to_string(restVersion)); } std::string UpdateMonitoringTemplateRequest::getDescription()const @@ -66,7 +66,7 @@ std::string UpdateMonitoringTemplateRequest::getDescription()const void UpdateMonitoringTemplateRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long UpdateMonitoringTemplateRequest::getId()const @@ -77,7 +77,7 @@ long UpdateMonitoringTemplateRequest::getId()const void UpdateMonitoringTemplateRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string UpdateMonitoringTemplateRequest::getAlertTemplatesJson()const @@ -88,6 +88,6 @@ std::string UpdateMonitoringTemplateRequest::getAlertTemplatesJson()const void UpdateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson) { alertTemplatesJson_ = alertTemplatesJson; - setParameter("AlertTemplatesJson", alertTemplatesJson); + setCoreParameter("AlertTemplatesJson", alertTemplatesJson); } diff --git a/cms/src/model/UpdateMonitoringTemplateResult.cc b/cms/src/model/UpdateMonitoringTemplateResult.cc index 0de486ea9..c3c61dfa1 100644 --- a/cms/src/model/UpdateMonitoringTemplateResult.cc +++ b/cms/src/model/UpdateMonitoringTemplateResult.cc @@ -35,10 +35,13 @@ UpdateMonitoringTemplateResult::~UpdateMonitoringTemplateResult() void UpdateMonitoringTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/UpdateMyGroupAlertRequest.cc b/cms/src/model/UpdateMyGroupAlertRequest.cc index 9c97baad4..598ba7142 100644 --- a/cms/src/model/UpdateMyGroupAlertRequest.cc +++ b/cms/src/model/UpdateMyGroupAlertRequest.cc @@ -33,6 +33,6 @@ std::string UpdateMyGroupAlertRequest::getGroupAlertJson()const void UpdateMyGroupAlertRequest::setGroupAlertJson(const std::string& groupAlertJson) { groupAlertJson_ = groupAlertJson; - setParameter("GroupAlertJson", groupAlertJson); + setCoreParameter("GroupAlertJson", groupAlertJson); } diff --git a/cms/src/model/UpdateMyGroupAlertResult.cc b/cms/src/model/UpdateMyGroupAlertResult.cc index 68674c67c..12ec134c2 100644 --- a/cms/src/model/UpdateMyGroupAlertResult.cc +++ b/cms/src/model/UpdateMyGroupAlertResult.cc @@ -35,10 +35,13 @@ UpdateMyGroupAlertResult::~UpdateMyGroupAlertResult() void UpdateMyGroupAlertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/UpdateMyGroupInstancesRequest.cc b/cms/src/model/UpdateMyGroupInstancesRequest.cc index 211b13b39..718e3a5b4 100644 --- a/cms/src/model/UpdateMyGroupInstancesRequest.cc +++ b/cms/src/model/UpdateMyGroupInstancesRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMyGroupInstancesRequest::getInstances()const void UpdateMyGroupInstancesRequest::setInstances(const std::string& instances) { instances_ = instances; - setParameter("Instances", instances); + setCoreParameter("Instances", instances); } long UpdateMyGroupInstancesRequest::getGroupId()const @@ -44,6 +44,6 @@ long UpdateMyGroupInstancesRequest::getGroupId()const void UpdateMyGroupInstancesRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } diff --git a/cms/src/model/UpdateMyGroupInstancesResult.cc b/cms/src/model/UpdateMyGroupInstancesResult.cc index 1ffe8521b..b72cc5f44 100644 --- a/cms/src/model/UpdateMyGroupInstancesResult.cc +++ b/cms/src/model/UpdateMyGroupInstancesResult.cc @@ -35,10 +35,13 @@ UpdateMyGroupInstancesResult::~UpdateMyGroupInstancesResult() void UpdateMyGroupInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/UpdateMyGroupMembersRequest.cc b/cms/src/model/UpdateMyGroupMembersRequest.cc index abfcafa18..591aabe52 100644 --- a/cms/src/model/UpdateMyGroupMembersRequest.cc +++ b/cms/src/model/UpdateMyGroupMembersRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMyGroupMembersRequest::getReaders()const void UpdateMyGroupMembersRequest::setReaders(const std::string& readers) { readers_ = readers; - setParameter("Readers", readers); + setCoreParameter("Readers", readers); } long UpdateMyGroupMembersRequest::getGroupId()const @@ -44,7 +44,7 @@ long UpdateMyGroupMembersRequest::getGroupId()const void UpdateMyGroupMembersRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string UpdateMyGroupMembersRequest::getMasters()const @@ -55,6 +55,6 @@ std::string UpdateMyGroupMembersRequest::getMasters()const void UpdateMyGroupMembersRequest::setMasters(const std::string& masters) { masters_ = masters; - setParameter("Masters", masters); + setCoreParameter("Masters", masters); } diff --git a/cms/src/model/UpdateMyGroupMembersResult.cc b/cms/src/model/UpdateMyGroupMembersResult.cc index 3374bc04b..656222b42 100644 --- a/cms/src/model/UpdateMyGroupMembersResult.cc +++ b/cms/src/model/UpdateMyGroupMembersResult.cc @@ -35,10 +35,13 @@ UpdateMyGroupMembersResult::~UpdateMyGroupMembersResult() void UpdateMyGroupMembersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cms/src/model/UpdateMyGroupsRequest.cc b/cms/src/model/UpdateMyGroupsRequest.cc index 0bb77e650..6ace4bbd9 100644 --- a/cms/src/model/UpdateMyGroupsRequest.cc +++ b/cms/src/model/UpdateMyGroupsRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMyGroupsRequest::getContactGroups()const void UpdateMyGroupsRequest::setContactGroups(const std::string& contactGroups) { contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); + setCoreParameter("ContactGroups", contactGroups); } std::string UpdateMyGroupsRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string UpdateMyGroupsRequest::getGroupId()const void UpdateMyGroupsRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } long UpdateMyGroupsRequest::getServiceId()const @@ -55,7 +55,7 @@ long UpdateMyGroupsRequest::getServiceId()const void UpdateMyGroupsRequest::setServiceId(long serviceId) { serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + setCoreParameter("ServiceId", std::to_string(serviceId)); } std::string UpdateMyGroupsRequest::getType()const @@ -66,7 +66,7 @@ std::string UpdateMyGroupsRequest::getType()const void UpdateMyGroupsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string UpdateMyGroupsRequest::getGroupName()const @@ -77,7 +77,7 @@ std::string UpdateMyGroupsRequest::getGroupName()const void UpdateMyGroupsRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string UpdateMyGroupsRequest::getBindUrls()const @@ -88,6 +88,6 @@ std::string UpdateMyGroupsRequest::getBindUrls()const void UpdateMyGroupsRequest::setBindUrls(const std::string& bindUrls) { bindUrls_ = bindUrls; - setParameter("BindUrls", bindUrls); + setCoreParameter("BindUrls", bindUrls); } diff --git a/cms/src/model/UpdateMyGroupsResult.cc b/cms/src/model/UpdateMyGroupsResult.cc index 8d4b8085c..e11085f36 100644 --- a/cms/src/model/UpdateMyGroupsResult.cc +++ b/cms/src/model/UpdateMyGroupsResult.cc @@ -35,10 +35,13 @@ UpdateMyGroupsResult::~UpdateMyGroupsResult() void UpdateMyGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/cr/CMakeLists.txt b/cr/CMakeLists.txt index fac9e2ac2..ea369847b 100644 --- a/cr/CMakeLists.txt +++ b/cr/CMakeLists.txt @@ -43,24 +43,24 @@ set(cr_public_header_model include/alibabacloud/cr/model/CreateCollectionResult.h include/alibabacloud/cr/model/DeleteUserSourceAccountRequest.h include/alibabacloud/cr/model/DeleteUserSourceAccountResult.h - include/alibabacloud/cr/model/GetNamespaceRequest.h - include/alibabacloud/cr/model/GetNamespaceResult.h - include/alibabacloud/cr/model/UpdateRepoBuildRuleRequest.h - include/alibabacloud/cr/model/UpdateRepoBuildRuleResult.h include/alibabacloud/cr/model/StartImageScanRequest.h include/alibabacloud/cr/model/StartImageScanResult.h - include/alibabacloud/cr/model/DeleteCollectionRequest.h - include/alibabacloud/cr/model/DeleteCollectionResult.h + include/alibabacloud/cr/model/UpdateRepoBuildRuleRequest.h + include/alibabacloud/cr/model/UpdateRepoBuildRuleResult.h + include/alibabacloud/cr/model/GetNamespaceRequest.h + include/alibabacloud/cr/model/GetNamespaceResult.h include/alibabacloud/cr/model/GetUserSourceRepoListRequest.h include/alibabacloud/cr/model/GetUserSourceRepoListResult.h - include/alibabacloud/cr/model/GetRegionRequest.h - include/alibabacloud/cr/model/GetRegionResult.h - include/alibabacloud/cr/model/GetNamespaceAuthorizationListRequest.h - include/alibabacloud/cr/model/GetNamespaceAuthorizationListResult.h - include/alibabacloud/cr/model/GetAuthorizationTokenRequest.h - include/alibabacloud/cr/model/GetAuthorizationTokenResult.h + include/alibabacloud/cr/model/DeleteCollectionRequest.h + include/alibabacloud/cr/model/DeleteCollectionResult.h include/alibabacloud/cr/model/UpdateRepoWebhookRequest.h include/alibabacloud/cr/model/UpdateRepoWebhookResult.h + include/alibabacloud/cr/model/GetAuthorizationTokenRequest.h + include/alibabacloud/cr/model/GetAuthorizationTokenResult.h + include/alibabacloud/cr/model/GetNamespaceAuthorizationListRequest.h + include/alibabacloud/cr/model/GetNamespaceAuthorizationListResult.h + include/alibabacloud/cr/model/GetRegionRequest.h + include/alibabacloud/cr/model/GetRegionResult.h include/alibabacloud/cr/model/CreateRepoWebhookRequest.h include/alibabacloud/cr/model/CreateRepoWebhookResult.h include/alibabacloud/cr/model/UpdateUserInfoRequest.h @@ -83,10 +83,10 @@ set(cr_public_header_model include/alibabacloud/cr/model/GetUserInfoResult.h include/alibabacloud/cr/model/GetRepoBuildLogsRequest.h include/alibabacloud/cr/model/GetRepoBuildLogsResult.h - include/alibabacloud/cr/model/GetNamespaceListRequest.h - include/alibabacloud/cr/model/GetNamespaceListResult.h include/alibabacloud/cr/model/GetRepoListRequest.h include/alibabacloud/cr/model/GetRepoListResult.h + include/alibabacloud/cr/model/GetNamespaceListRequest.h + include/alibabacloud/cr/model/GetNamespaceListResult.h include/alibabacloud/cr/model/GetRegionListRequest.h include/alibabacloud/cr/model/GetRegionListResult.h include/alibabacloud/cr/model/GetImageLayerRequest.h @@ -101,22 +101,22 @@ set(cr_public_header_model include/alibabacloud/cr/model/StartRepoBuildByRuleResult.h include/alibabacloud/cr/model/CreateRepoSyncTaskRequest.h include/alibabacloud/cr/model/CreateRepoSyncTaskResult.h - include/alibabacloud/cr/model/GetRepoBuildRuleListRequest.h - include/alibabacloud/cr/model/GetRepoBuildRuleListResult.h - include/alibabacloud/cr/model/GetUserSourceRepoRefListRequest.h - include/alibabacloud/cr/model/GetUserSourceRepoRefListResult.h include/alibabacloud/cr/model/GetImageManifestRequest.h include/alibabacloud/cr/model/GetImageManifestResult.h + include/alibabacloud/cr/model/GetUserSourceRepoRefListRequest.h + include/alibabacloud/cr/model/GetUserSourceRepoRefListResult.h + include/alibabacloud/cr/model/GetRepoBuildRuleListRequest.h + include/alibabacloud/cr/model/GetRepoBuildRuleListResult.h include/alibabacloud/cr/model/CancelRepoBuildRequest.h include/alibabacloud/cr/model/CancelRepoBuildResult.h include/alibabacloud/cr/model/UpdateRepoAuthorizationRequest.h include/alibabacloud/cr/model/UpdateRepoAuthorizationResult.h include/alibabacloud/cr/model/GetRepoSourceRepoRequest.h include/alibabacloud/cr/model/GetRepoSourceRepoResult.h - include/alibabacloud/cr/model/DeleteNamespaceAuthorizationRequest.h - include/alibabacloud/cr/model/DeleteNamespaceAuthorizationResult.h include/alibabacloud/cr/model/CreateRepoBuildRuleRequest.h include/alibabacloud/cr/model/CreateRepoBuildRuleResult.h + include/alibabacloud/cr/model/DeleteNamespaceAuthorizationRequest.h + include/alibabacloud/cr/model/DeleteNamespaceAuthorizationResult.h include/alibabacloud/cr/model/UpdateRepoRequest.h include/alibabacloud/cr/model/UpdateRepoResult.h include/alibabacloud/cr/model/GetCollectionRequest.h @@ -135,10 +135,10 @@ set(cr_public_header_model include/alibabacloud/cr/model/UpdateRepoSourceRepoResult.h include/alibabacloud/cr/model/GetRepoRequest.h include/alibabacloud/cr/model/GetRepoResult.h - include/alibabacloud/cr/model/GetRepoBuildStatusRequest.h - include/alibabacloud/cr/model/GetRepoBuildStatusResult.h include/alibabacloud/cr/model/CreateRepoAuthorizationRequest.h include/alibabacloud/cr/model/CreateRepoAuthorizationResult.h + include/alibabacloud/cr/model/GetRepoBuildStatusRequest.h + include/alibabacloud/cr/model/GetRepoBuildStatusResult.h include/alibabacloud/cr/model/DeleteRepoWebhookRequest.h include/alibabacloud/cr/model/DeleteRepoWebhookResult.h include/alibabacloud/cr/model/DeleteRepoBuildRuleRequest.h @@ -174,24 +174,24 @@ set(cr_src src/model/CreateCollectionResult.cc src/model/DeleteUserSourceAccountRequest.cc src/model/DeleteUserSourceAccountResult.cc - src/model/GetNamespaceRequest.cc - src/model/GetNamespaceResult.cc - src/model/UpdateRepoBuildRuleRequest.cc - src/model/UpdateRepoBuildRuleResult.cc src/model/StartImageScanRequest.cc src/model/StartImageScanResult.cc - src/model/DeleteCollectionRequest.cc - src/model/DeleteCollectionResult.cc + src/model/UpdateRepoBuildRuleRequest.cc + src/model/UpdateRepoBuildRuleResult.cc + src/model/GetNamespaceRequest.cc + src/model/GetNamespaceResult.cc src/model/GetUserSourceRepoListRequest.cc src/model/GetUserSourceRepoListResult.cc - src/model/GetRegionRequest.cc - src/model/GetRegionResult.cc - src/model/GetNamespaceAuthorizationListRequest.cc - src/model/GetNamespaceAuthorizationListResult.cc - src/model/GetAuthorizationTokenRequest.cc - src/model/GetAuthorizationTokenResult.cc + src/model/DeleteCollectionRequest.cc + src/model/DeleteCollectionResult.cc src/model/UpdateRepoWebhookRequest.cc src/model/UpdateRepoWebhookResult.cc + src/model/GetAuthorizationTokenRequest.cc + src/model/GetAuthorizationTokenResult.cc + src/model/GetNamespaceAuthorizationListRequest.cc + src/model/GetNamespaceAuthorizationListResult.cc + src/model/GetRegionRequest.cc + src/model/GetRegionResult.cc src/model/CreateRepoWebhookRequest.cc src/model/CreateRepoWebhookResult.cc src/model/UpdateUserInfoRequest.cc @@ -214,10 +214,10 @@ set(cr_src src/model/GetUserInfoResult.cc src/model/GetRepoBuildLogsRequest.cc src/model/GetRepoBuildLogsResult.cc - src/model/GetNamespaceListRequest.cc - src/model/GetNamespaceListResult.cc src/model/GetRepoListRequest.cc src/model/GetRepoListResult.cc + src/model/GetNamespaceListRequest.cc + src/model/GetNamespaceListResult.cc src/model/GetRegionListRequest.cc src/model/GetRegionListResult.cc src/model/GetImageLayerRequest.cc @@ -232,22 +232,22 @@ set(cr_src src/model/StartRepoBuildByRuleResult.cc src/model/CreateRepoSyncTaskRequest.cc src/model/CreateRepoSyncTaskResult.cc - src/model/GetRepoBuildRuleListRequest.cc - src/model/GetRepoBuildRuleListResult.cc - src/model/GetUserSourceRepoRefListRequest.cc - src/model/GetUserSourceRepoRefListResult.cc src/model/GetImageManifestRequest.cc src/model/GetImageManifestResult.cc + src/model/GetUserSourceRepoRefListRequest.cc + src/model/GetUserSourceRepoRefListResult.cc + src/model/GetRepoBuildRuleListRequest.cc + src/model/GetRepoBuildRuleListResult.cc src/model/CancelRepoBuildRequest.cc src/model/CancelRepoBuildResult.cc src/model/UpdateRepoAuthorizationRequest.cc src/model/UpdateRepoAuthorizationResult.cc src/model/GetRepoSourceRepoRequest.cc src/model/GetRepoSourceRepoResult.cc - src/model/DeleteNamespaceAuthorizationRequest.cc - src/model/DeleteNamespaceAuthorizationResult.cc src/model/CreateRepoBuildRuleRequest.cc src/model/CreateRepoBuildRuleResult.cc + src/model/DeleteNamespaceAuthorizationRequest.cc + src/model/DeleteNamespaceAuthorizationResult.cc src/model/UpdateRepoRequest.cc src/model/UpdateRepoResult.cc src/model/GetCollectionRequest.cc @@ -266,10 +266,10 @@ set(cr_src src/model/UpdateRepoSourceRepoResult.cc src/model/GetRepoRequest.cc src/model/GetRepoResult.cc - src/model/GetRepoBuildStatusRequest.cc - src/model/GetRepoBuildStatusResult.cc src/model/CreateRepoAuthorizationRequest.cc src/model/CreateRepoAuthorizationResult.cc + src/model/GetRepoBuildStatusRequest.cc + src/model/GetRepoBuildStatusResult.cc src/model/DeleteRepoWebhookRequest.cc src/model/DeleteRepoWebhookResult.cc src/model/DeleteRepoBuildRuleRequest.cc diff --git a/cr/include/alibabacloud/cr/CrClient.h b/cr/include/alibabacloud/cr/CrClient.h index 2a1cdc063..5cb7d0bdd 100644 --- a/cr/include/alibabacloud/cr/CrClient.h +++ b/cr/include/alibabacloud/cr/CrClient.h @@ -44,24 +44,24 @@ #include "model/CreateCollectionResult.h" #include "model/DeleteUserSourceAccountRequest.h" #include "model/DeleteUserSourceAccountResult.h" -#include "model/GetNamespaceRequest.h" -#include "model/GetNamespaceResult.h" -#include "model/UpdateRepoBuildRuleRequest.h" -#include "model/UpdateRepoBuildRuleResult.h" #include "model/StartImageScanRequest.h" #include "model/StartImageScanResult.h" -#include "model/DeleteCollectionRequest.h" -#include "model/DeleteCollectionResult.h" +#include "model/UpdateRepoBuildRuleRequest.h" +#include "model/UpdateRepoBuildRuleResult.h" +#include "model/GetNamespaceRequest.h" +#include "model/GetNamespaceResult.h" #include "model/GetUserSourceRepoListRequest.h" #include "model/GetUserSourceRepoListResult.h" -#include "model/GetRegionRequest.h" -#include "model/GetRegionResult.h" -#include "model/GetNamespaceAuthorizationListRequest.h" -#include "model/GetNamespaceAuthorizationListResult.h" -#include "model/GetAuthorizationTokenRequest.h" -#include "model/GetAuthorizationTokenResult.h" +#include "model/DeleteCollectionRequest.h" +#include "model/DeleteCollectionResult.h" #include "model/UpdateRepoWebhookRequest.h" #include "model/UpdateRepoWebhookResult.h" +#include "model/GetAuthorizationTokenRequest.h" +#include "model/GetAuthorizationTokenResult.h" +#include "model/GetNamespaceAuthorizationListRequest.h" +#include "model/GetNamespaceAuthorizationListResult.h" +#include "model/GetRegionRequest.h" +#include "model/GetRegionResult.h" #include "model/CreateRepoWebhookRequest.h" #include "model/CreateRepoWebhookResult.h" #include "model/UpdateUserInfoRequest.h" @@ -84,10 +84,10 @@ #include "model/GetUserInfoResult.h" #include "model/GetRepoBuildLogsRequest.h" #include "model/GetRepoBuildLogsResult.h" -#include "model/GetNamespaceListRequest.h" -#include "model/GetNamespaceListResult.h" #include "model/GetRepoListRequest.h" #include "model/GetRepoListResult.h" +#include "model/GetNamespaceListRequest.h" +#include "model/GetNamespaceListResult.h" #include "model/GetRegionListRequest.h" #include "model/GetRegionListResult.h" #include "model/GetImageLayerRequest.h" @@ -102,22 +102,22 @@ #include "model/StartRepoBuildByRuleResult.h" #include "model/CreateRepoSyncTaskRequest.h" #include "model/CreateRepoSyncTaskResult.h" -#include "model/GetRepoBuildRuleListRequest.h" -#include "model/GetRepoBuildRuleListResult.h" -#include "model/GetUserSourceRepoRefListRequest.h" -#include "model/GetUserSourceRepoRefListResult.h" #include "model/GetImageManifestRequest.h" #include "model/GetImageManifestResult.h" +#include "model/GetUserSourceRepoRefListRequest.h" +#include "model/GetUserSourceRepoRefListResult.h" +#include "model/GetRepoBuildRuleListRequest.h" +#include "model/GetRepoBuildRuleListResult.h" #include "model/CancelRepoBuildRequest.h" #include "model/CancelRepoBuildResult.h" #include "model/UpdateRepoAuthorizationRequest.h" #include "model/UpdateRepoAuthorizationResult.h" #include "model/GetRepoSourceRepoRequest.h" #include "model/GetRepoSourceRepoResult.h" -#include "model/DeleteNamespaceAuthorizationRequest.h" -#include "model/DeleteNamespaceAuthorizationResult.h" #include "model/CreateRepoBuildRuleRequest.h" #include "model/CreateRepoBuildRuleResult.h" +#include "model/DeleteNamespaceAuthorizationRequest.h" +#include "model/DeleteNamespaceAuthorizationResult.h" #include "model/UpdateRepoRequest.h" #include "model/UpdateRepoResult.h" #include "model/GetCollectionRequest.h" @@ -136,10 +136,10 @@ #include "model/UpdateRepoSourceRepoResult.h" #include "model/GetRepoRequest.h" #include "model/GetRepoResult.h" -#include "model/GetRepoBuildStatusRequest.h" -#include "model/GetRepoBuildStatusResult.h" #include "model/CreateRepoAuthorizationRequest.h" #include "model/CreateRepoAuthorizationResult.h" +#include "model/GetRepoBuildStatusRequest.h" +#include "model/GetRepoBuildStatusResult.h" #include "model/DeleteRepoWebhookRequest.h" #include "model/DeleteRepoWebhookResult.h" #include "model/DeleteRepoBuildRuleRequest.h" @@ -192,33 +192,33 @@ namespace AlibabaCloud typedef Outcome DeleteUserSourceAccountOutcome; typedef std::future DeleteUserSourceAccountOutcomeCallable; typedef std::function&)> DeleteUserSourceAccountAsyncHandler; - typedef Outcome GetNamespaceOutcome; - typedef std::future GetNamespaceOutcomeCallable; - typedef std::function&)> GetNamespaceAsyncHandler; - typedef Outcome UpdateRepoBuildRuleOutcome; - typedef std::future UpdateRepoBuildRuleOutcomeCallable; - typedef std::function&)> UpdateRepoBuildRuleAsyncHandler; typedef Outcome StartImageScanOutcome; typedef std::future StartImageScanOutcomeCallable; typedef std::function&)> StartImageScanAsyncHandler; - typedef Outcome DeleteCollectionOutcome; - typedef std::future DeleteCollectionOutcomeCallable; - typedef std::function&)> DeleteCollectionAsyncHandler; + typedef Outcome UpdateRepoBuildRuleOutcome; + typedef std::future UpdateRepoBuildRuleOutcomeCallable; + typedef std::function&)> UpdateRepoBuildRuleAsyncHandler; + typedef Outcome GetNamespaceOutcome; + typedef std::future GetNamespaceOutcomeCallable; + typedef std::function&)> GetNamespaceAsyncHandler; typedef Outcome GetUserSourceRepoListOutcome; typedef std::future GetUserSourceRepoListOutcomeCallable; typedef std::function&)> GetUserSourceRepoListAsyncHandler; - typedef Outcome GetRegionOutcome; - typedef std::future GetRegionOutcomeCallable; - typedef std::function&)> GetRegionAsyncHandler; - typedef Outcome GetNamespaceAuthorizationListOutcome; - typedef std::future GetNamespaceAuthorizationListOutcomeCallable; - typedef std::function&)> GetNamespaceAuthorizationListAsyncHandler; - typedef Outcome GetAuthorizationTokenOutcome; - typedef std::future GetAuthorizationTokenOutcomeCallable; - typedef std::function&)> GetAuthorizationTokenAsyncHandler; + typedef Outcome DeleteCollectionOutcome; + typedef std::future DeleteCollectionOutcomeCallable; + typedef std::function&)> DeleteCollectionAsyncHandler; typedef Outcome UpdateRepoWebhookOutcome; typedef std::future UpdateRepoWebhookOutcomeCallable; typedef std::function&)> UpdateRepoWebhookAsyncHandler; + typedef Outcome GetAuthorizationTokenOutcome; + typedef std::future GetAuthorizationTokenOutcomeCallable; + typedef std::function&)> GetAuthorizationTokenAsyncHandler; + typedef Outcome GetNamespaceAuthorizationListOutcome; + typedef std::future GetNamespaceAuthorizationListOutcomeCallable; + typedef std::function&)> GetNamespaceAuthorizationListAsyncHandler; + typedef Outcome GetRegionOutcome; + typedef std::future GetRegionOutcomeCallable; + typedef std::function&)> GetRegionAsyncHandler; typedef Outcome CreateRepoWebhookOutcome; typedef std::future CreateRepoWebhookOutcomeCallable; typedef std::function&)> CreateRepoWebhookAsyncHandler; @@ -252,12 +252,12 @@ namespace AlibabaCloud typedef Outcome GetRepoBuildLogsOutcome; typedef std::future GetRepoBuildLogsOutcomeCallable; typedef std::function&)> GetRepoBuildLogsAsyncHandler; - typedef Outcome GetNamespaceListOutcome; - typedef std::future GetNamespaceListOutcomeCallable; - typedef std::function&)> GetNamespaceListAsyncHandler; typedef Outcome GetRepoListOutcome; typedef std::future GetRepoListOutcomeCallable; typedef std::function&)> GetRepoListAsyncHandler; + typedef Outcome GetNamespaceListOutcome; + typedef std::future GetNamespaceListOutcomeCallable; + typedef std::function&)> GetNamespaceListAsyncHandler; typedef Outcome GetRegionListOutcome; typedef std::future GetRegionListOutcomeCallable; typedef std::function&)> GetRegionListAsyncHandler; @@ -279,15 +279,15 @@ namespace AlibabaCloud typedef Outcome CreateRepoSyncTaskOutcome; typedef std::future CreateRepoSyncTaskOutcomeCallable; typedef std::function&)> CreateRepoSyncTaskAsyncHandler; - typedef Outcome GetRepoBuildRuleListOutcome; - typedef std::future GetRepoBuildRuleListOutcomeCallable; - typedef std::function&)> GetRepoBuildRuleListAsyncHandler; - typedef Outcome GetUserSourceRepoRefListOutcome; - typedef std::future GetUserSourceRepoRefListOutcomeCallable; - typedef std::function&)> GetUserSourceRepoRefListAsyncHandler; typedef Outcome GetImageManifestOutcome; typedef std::future GetImageManifestOutcomeCallable; typedef std::function&)> GetImageManifestAsyncHandler; + typedef Outcome GetUserSourceRepoRefListOutcome; + typedef std::future GetUserSourceRepoRefListOutcomeCallable; + typedef std::function&)> GetUserSourceRepoRefListAsyncHandler; + typedef Outcome GetRepoBuildRuleListOutcome; + typedef std::future GetRepoBuildRuleListOutcomeCallable; + typedef std::function&)> GetRepoBuildRuleListAsyncHandler; typedef Outcome CancelRepoBuildOutcome; typedef std::future CancelRepoBuildOutcomeCallable; typedef std::function&)> CancelRepoBuildAsyncHandler; @@ -297,12 +297,12 @@ namespace AlibabaCloud typedef Outcome GetRepoSourceRepoOutcome; typedef std::future GetRepoSourceRepoOutcomeCallable; typedef std::function&)> GetRepoSourceRepoAsyncHandler; - typedef Outcome DeleteNamespaceAuthorizationOutcome; - typedef std::future DeleteNamespaceAuthorizationOutcomeCallable; - typedef std::function&)> DeleteNamespaceAuthorizationAsyncHandler; typedef Outcome CreateRepoBuildRuleOutcome; typedef std::future CreateRepoBuildRuleOutcomeCallable; typedef std::function&)> CreateRepoBuildRuleAsyncHandler; + typedef Outcome DeleteNamespaceAuthorizationOutcome; + typedef std::future DeleteNamespaceAuthorizationOutcomeCallable; + typedef std::function&)> DeleteNamespaceAuthorizationAsyncHandler; typedef Outcome UpdateRepoOutcome; typedef std::future UpdateRepoOutcomeCallable; typedef std::function&)> UpdateRepoAsyncHandler; @@ -330,12 +330,12 @@ namespace AlibabaCloud typedef Outcome GetRepoOutcome; typedef std::future GetRepoOutcomeCallable; typedef std::function&)> GetRepoAsyncHandler; - typedef Outcome GetRepoBuildStatusOutcome; - typedef std::future GetRepoBuildStatusOutcomeCallable; - typedef std::function&)> GetRepoBuildStatusAsyncHandler; typedef Outcome CreateRepoAuthorizationOutcome; typedef std::future CreateRepoAuthorizationOutcomeCallable; typedef std::function&)> CreateRepoAuthorizationAsyncHandler; + typedef Outcome GetRepoBuildStatusOutcome; + typedef std::future GetRepoBuildStatusOutcomeCallable; + typedef std::function&)> GetRepoBuildStatusAsyncHandler; typedef Outcome DeleteRepoWebhookOutcome; typedef std::future DeleteRepoWebhookOutcomeCallable; typedef std::function&)> DeleteRepoWebhookAsyncHandler; @@ -389,33 +389,33 @@ namespace AlibabaCloud DeleteUserSourceAccountOutcome deleteUserSourceAccount(const Model::DeleteUserSourceAccountRequest &request)const; void deleteUserSourceAccountAsync(const Model::DeleteUserSourceAccountRequest& request, const DeleteUserSourceAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUserSourceAccountOutcomeCallable deleteUserSourceAccountCallable(const Model::DeleteUserSourceAccountRequest& request) const; - GetNamespaceOutcome getNamespace(const Model::GetNamespaceRequest &request)const; - void getNamespaceAsync(const Model::GetNamespaceRequest& request, const GetNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNamespaceOutcomeCallable getNamespaceCallable(const Model::GetNamespaceRequest& request) const; - UpdateRepoBuildRuleOutcome updateRepoBuildRule(const Model::UpdateRepoBuildRuleRequest &request)const; - void updateRepoBuildRuleAsync(const Model::UpdateRepoBuildRuleRequest& request, const UpdateRepoBuildRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateRepoBuildRuleOutcomeCallable updateRepoBuildRuleCallable(const Model::UpdateRepoBuildRuleRequest& request) const; StartImageScanOutcome startImageScan(const Model::StartImageScanRequest &request)const; void startImageScanAsync(const Model::StartImageScanRequest& request, const StartImageScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartImageScanOutcomeCallable startImageScanCallable(const Model::StartImageScanRequest& request) const; - DeleteCollectionOutcome deleteCollection(const Model::DeleteCollectionRequest &request)const; - void deleteCollectionAsync(const Model::DeleteCollectionRequest& request, const DeleteCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCollectionOutcomeCallable deleteCollectionCallable(const Model::DeleteCollectionRequest& request) const; + UpdateRepoBuildRuleOutcome updateRepoBuildRule(const Model::UpdateRepoBuildRuleRequest &request)const; + void updateRepoBuildRuleAsync(const Model::UpdateRepoBuildRuleRequest& request, const UpdateRepoBuildRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRepoBuildRuleOutcomeCallable updateRepoBuildRuleCallable(const Model::UpdateRepoBuildRuleRequest& request) const; + GetNamespaceOutcome getNamespace(const Model::GetNamespaceRequest &request)const; + void getNamespaceAsync(const Model::GetNamespaceRequest& request, const GetNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNamespaceOutcomeCallable getNamespaceCallable(const Model::GetNamespaceRequest& request) const; GetUserSourceRepoListOutcome getUserSourceRepoList(const Model::GetUserSourceRepoListRequest &request)const; void getUserSourceRepoListAsync(const Model::GetUserSourceRepoListRequest& request, const GetUserSourceRepoListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUserSourceRepoListOutcomeCallable getUserSourceRepoListCallable(const Model::GetUserSourceRepoListRequest& request) const; - GetRegionOutcome getRegion(const Model::GetRegionRequest &request)const; - void getRegionAsync(const Model::GetRegionRequest& request, const GetRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetRegionOutcomeCallable getRegionCallable(const Model::GetRegionRequest& request) const; - GetNamespaceAuthorizationListOutcome getNamespaceAuthorizationList(const Model::GetNamespaceAuthorizationListRequest &request)const; - void getNamespaceAuthorizationListAsync(const Model::GetNamespaceAuthorizationListRequest& request, const GetNamespaceAuthorizationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNamespaceAuthorizationListOutcomeCallable getNamespaceAuthorizationListCallable(const Model::GetNamespaceAuthorizationListRequest& request) const; - GetAuthorizationTokenOutcome getAuthorizationToken(const Model::GetAuthorizationTokenRequest &request)const; - void getAuthorizationTokenAsync(const Model::GetAuthorizationTokenRequest& request, const GetAuthorizationTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAuthorizationTokenOutcomeCallable getAuthorizationTokenCallable(const Model::GetAuthorizationTokenRequest& request) const; + DeleteCollectionOutcome deleteCollection(const Model::DeleteCollectionRequest &request)const; + void deleteCollectionAsync(const Model::DeleteCollectionRequest& request, const DeleteCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCollectionOutcomeCallable deleteCollectionCallable(const Model::DeleteCollectionRequest& request) const; UpdateRepoWebhookOutcome updateRepoWebhook(const Model::UpdateRepoWebhookRequest &request)const; void updateRepoWebhookAsync(const Model::UpdateRepoWebhookRequest& request, const UpdateRepoWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateRepoWebhookOutcomeCallable updateRepoWebhookCallable(const Model::UpdateRepoWebhookRequest& request) const; + GetAuthorizationTokenOutcome getAuthorizationToken(const Model::GetAuthorizationTokenRequest &request)const; + void getAuthorizationTokenAsync(const Model::GetAuthorizationTokenRequest& request, const GetAuthorizationTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAuthorizationTokenOutcomeCallable getAuthorizationTokenCallable(const Model::GetAuthorizationTokenRequest& request) const; + GetNamespaceAuthorizationListOutcome getNamespaceAuthorizationList(const Model::GetNamespaceAuthorizationListRequest &request)const; + void getNamespaceAuthorizationListAsync(const Model::GetNamespaceAuthorizationListRequest& request, const GetNamespaceAuthorizationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNamespaceAuthorizationListOutcomeCallable getNamespaceAuthorizationListCallable(const Model::GetNamespaceAuthorizationListRequest& request) const; + GetRegionOutcome getRegion(const Model::GetRegionRequest &request)const; + void getRegionAsync(const Model::GetRegionRequest& request, const GetRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRegionOutcomeCallable getRegionCallable(const Model::GetRegionRequest& request) const; CreateRepoWebhookOutcome createRepoWebhook(const Model::CreateRepoWebhookRequest &request)const; void createRepoWebhookAsync(const Model::CreateRepoWebhookRequest& request, const CreateRepoWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRepoWebhookOutcomeCallable createRepoWebhookCallable(const Model::CreateRepoWebhookRequest& request) const; @@ -449,12 +449,12 @@ namespace AlibabaCloud GetRepoBuildLogsOutcome getRepoBuildLogs(const Model::GetRepoBuildLogsRequest &request)const; void getRepoBuildLogsAsync(const Model::GetRepoBuildLogsRequest& request, const GetRepoBuildLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRepoBuildLogsOutcomeCallable getRepoBuildLogsCallable(const Model::GetRepoBuildLogsRequest& request) const; - GetNamespaceListOutcome getNamespaceList(const Model::GetNamespaceListRequest &request)const; - void getNamespaceListAsync(const Model::GetNamespaceListRequest& request, const GetNamespaceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNamespaceListOutcomeCallable getNamespaceListCallable(const Model::GetNamespaceListRequest& request) const; GetRepoListOutcome getRepoList(const Model::GetRepoListRequest &request)const; void getRepoListAsync(const Model::GetRepoListRequest& request, const GetRepoListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRepoListOutcomeCallable getRepoListCallable(const Model::GetRepoListRequest& request) const; + GetNamespaceListOutcome getNamespaceList(const Model::GetNamespaceListRequest &request)const; + void getNamespaceListAsync(const Model::GetNamespaceListRequest& request, const GetNamespaceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNamespaceListOutcomeCallable getNamespaceListCallable(const Model::GetNamespaceListRequest& request) const; GetRegionListOutcome getRegionList(const Model::GetRegionListRequest &request)const; void getRegionListAsync(const Model::GetRegionListRequest& request, const GetRegionListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRegionListOutcomeCallable getRegionListCallable(const Model::GetRegionListRequest& request) const; @@ -476,15 +476,15 @@ namespace AlibabaCloud CreateRepoSyncTaskOutcome createRepoSyncTask(const Model::CreateRepoSyncTaskRequest &request)const; void createRepoSyncTaskAsync(const Model::CreateRepoSyncTaskRequest& request, const CreateRepoSyncTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRepoSyncTaskOutcomeCallable createRepoSyncTaskCallable(const Model::CreateRepoSyncTaskRequest& request) const; - GetRepoBuildRuleListOutcome getRepoBuildRuleList(const Model::GetRepoBuildRuleListRequest &request)const; - void getRepoBuildRuleListAsync(const Model::GetRepoBuildRuleListRequest& request, const GetRepoBuildRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetRepoBuildRuleListOutcomeCallable getRepoBuildRuleListCallable(const Model::GetRepoBuildRuleListRequest& request) const; - GetUserSourceRepoRefListOutcome getUserSourceRepoRefList(const Model::GetUserSourceRepoRefListRequest &request)const; - void getUserSourceRepoRefListAsync(const Model::GetUserSourceRepoRefListRequest& request, const GetUserSourceRepoRefListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserSourceRepoRefListOutcomeCallable getUserSourceRepoRefListCallable(const Model::GetUserSourceRepoRefListRequest& request) const; GetImageManifestOutcome getImageManifest(const Model::GetImageManifestRequest &request)const; void getImageManifestAsync(const Model::GetImageManifestRequest& request, const GetImageManifestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetImageManifestOutcomeCallable getImageManifestCallable(const Model::GetImageManifestRequest& request) const; + GetUserSourceRepoRefListOutcome getUserSourceRepoRefList(const Model::GetUserSourceRepoRefListRequest &request)const; + void getUserSourceRepoRefListAsync(const Model::GetUserSourceRepoRefListRequest& request, const GetUserSourceRepoRefListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserSourceRepoRefListOutcomeCallable getUserSourceRepoRefListCallable(const Model::GetUserSourceRepoRefListRequest& request) const; + GetRepoBuildRuleListOutcome getRepoBuildRuleList(const Model::GetRepoBuildRuleListRequest &request)const; + void getRepoBuildRuleListAsync(const Model::GetRepoBuildRuleListRequest& request, const GetRepoBuildRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRepoBuildRuleListOutcomeCallable getRepoBuildRuleListCallable(const Model::GetRepoBuildRuleListRequest& request) const; CancelRepoBuildOutcome cancelRepoBuild(const Model::CancelRepoBuildRequest &request)const; void cancelRepoBuildAsync(const Model::CancelRepoBuildRequest& request, const CancelRepoBuildAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelRepoBuildOutcomeCallable cancelRepoBuildCallable(const Model::CancelRepoBuildRequest& request) const; @@ -494,12 +494,12 @@ namespace AlibabaCloud GetRepoSourceRepoOutcome getRepoSourceRepo(const Model::GetRepoSourceRepoRequest &request)const; void getRepoSourceRepoAsync(const Model::GetRepoSourceRepoRequest& request, const GetRepoSourceRepoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRepoSourceRepoOutcomeCallable getRepoSourceRepoCallable(const Model::GetRepoSourceRepoRequest& request) const; - DeleteNamespaceAuthorizationOutcome deleteNamespaceAuthorization(const Model::DeleteNamespaceAuthorizationRequest &request)const; - void deleteNamespaceAuthorizationAsync(const Model::DeleteNamespaceAuthorizationRequest& request, const DeleteNamespaceAuthorizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNamespaceAuthorizationOutcomeCallable deleteNamespaceAuthorizationCallable(const Model::DeleteNamespaceAuthorizationRequest& request) const; CreateRepoBuildRuleOutcome createRepoBuildRule(const Model::CreateRepoBuildRuleRequest &request)const; void createRepoBuildRuleAsync(const Model::CreateRepoBuildRuleRequest& request, const CreateRepoBuildRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRepoBuildRuleOutcomeCallable createRepoBuildRuleCallable(const Model::CreateRepoBuildRuleRequest& request) const; + DeleteNamespaceAuthorizationOutcome deleteNamespaceAuthorization(const Model::DeleteNamespaceAuthorizationRequest &request)const; + void deleteNamespaceAuthorizationAsync(const Model::DeleteNamespaceAuthorizationRequest& request, const DeleteNamespaceAuthorizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNamespaceAuthorizationOutcomeCallable deleteNamespaceAuthorizationCallable(const Model::DeleteNamespaceAuthorizationRequest& request) const; UpdateRepoOutcome updateRepo(const Model::UpdateRepoRequest &request)const; void updateRepoAsync(const Model::UpdateRepoRequest& request, const UpdateRepoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateRepoOutcomeCallable updateRepoCallable(const Model::UpdateRepoRequest& request) const; @@ -527,12 +527,12 @@ namespace AlibabaCloud GetRepoOutcome getRepo(const Model::GetRepoRequest &request)const; void getRepoAsync(const Model::GetRepoRequest& request, const GetRepoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRepoOutcomeCallable getRepoCallable(const Model::GetRepoRequest& request) const; - GetRepoBuildStatusOutcome getRepoBuildStatus(const Model::GetRepoBuildStatusRequest &request)const; - void getRepoBuildStatusAsync(const Model::GetRepoBuildStatusRequest& request, const GetRepoBuildStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetRepoBuildStatusOutcomeCallable getRepoBuildStatusCallable(const Model::GetRepoBuildStatusRequest& request) const; CreateRepoAuthorizationOutcome createRepoAuthorization(const Model::CreateRepoAuthorizationRequest &request)const; void createRepoAuthorizationAsync(const Model::CreateRepoAuthorizationRequest& request, const CreateRepoAuthorizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRepoAuthorizationOutcomeCallable createRepoAuthorizationCallable(const Model::CreateRepoAuthorizationRequest& request) const; + GetRepoBuildStatusOutcome getRepoBuildStatus(const Model::GetRepoBuildStatusRequest &request)const; + void getRepoBuildStatusAsync(const Model::GetRepoBuildStatusRequest& request, const GetRepoBuildStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRepoBuildStatusOutcomeCallable getRepoBuildStatusCallable(const Model::GetRepoBuildStatusRequest& request) const; DeleteRepoWebhookOutcome deleteRepoWebhook(const Model::DeleteRepoWebhookRequest &request)const; void deleteRepoWebhookAsync(const Model::DeleteRepoWebhookRequest& request, const DeleteRepoWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRepoWebhookOutcomeCallable deleteRepoWebhookCallable(const Model::DeleteRepoWebhookRequest& request) const; diff --git a/cr/src/CrClient.cc b/cr/src/CrClient.cc index 69fcc2793..eee1d6b85 100644 --- a/cr/src/CrClient.cc +++ b/cr/src/CrClient.cc @@ -447,36 +447,36 @@ CrClient::DeleteUserSourceAccountOutcomeCallable CrClient::deleteUserSourceAccou return task->get_future(); } -CrClient::GetNamespaceOutcome CrClient::getNamespace(const GetNamespaceRequest &request) const +CrClient::StartImageScanOutcome CrClient::startImageScan(const StartImageScanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetNamespaceOutcome(endpointOutcome.error()); + return StartImageScanOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetNamespaceOutcome(GetNamespaceResult(outcome.result())); + return StartImageScanOutcome(StartImageScanResult(outcome.result())); else - return GetNamespaceOutcome(outcome.error()); + return StartImageScanOutcome(outcome.error()); } -void CrClient::getNamespaceAsync(const GetNamespaceRequest& request, const GetNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +void CrClient::startImageScanAsync(const StartImageScanRequest& request, const StartImageScanAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getNamespace(request), context); + handler(this, request, startImageScan(request), context); }; asyncExecute(new Runnable(fn)); } -CrClient::GetNamespaceOutcomeCallable CrClient::getNamespaceCallable(const GetNamespaceRequest &request) const +CrClient::StartImageScanOutcomeCallable CrClient::startImageScanCallable(const StartImageScanRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getNamespace(request); + return this->startImageScan(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -519,72 +519,36 @@ CrClient::UpdateRepoBuildRuleOutcomeCallable CrClient::updateRepoBuildRuleCallab return task->get_future(); } -CrClient::StartImageScanOutcome CrClient::startImageScan(const StartImageScanRequest &request) const +CrClient::GetNamespaceOutcome CrClient::getNamespace(const GetNamespaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartImageScanOutcome(endpointOutcome.error()); + return GetNamespaceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartImageScanOutcome(StartImageScanResult(outcome.result())); + return GetNamespaceOutcome(GetNamespaceResult(outcome.result())); else - return StartImageScanOutcome(outcome.error()); + return GetNamespaceOutcome(outcome.error()); } -void CrClient::startImageScanAsync(const StartImageScanRequest& request, const StartImageScanAsyncHandler& handler, const std::shared_ptr& context) const +void CrClient::getNamespaceAsync(const GetNamespaceRequest& request, const GetNamespaceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startImageScan(request), context); + handler(this, request, getNamespace(request), context); }; asyncExecute(new Runnable(fn)); } -CrClient::StartImageScanOutcomeCallable CrClient::startImageScanCallable(const StartImageScanRequest &request) const +CrClient::GetNamespaceOutcomeCallable CrClient::getNamespaceCallable(const GetNamespaceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startImageScan(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CrClient::DeleteCollectionOutcome CrClient::deleteCollection(const DeleteCollectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteCollectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteCollectionOutcome(DeleteCollectionResult(outcome.result())); - else - return DeleteCollectionOutcome(outcome.error()); -} - -void CrClient::deleteCollectionAsync(const DeleteCollectionRequest& request, const DeleteCollectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteCollection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CrClient::DeleteCollectionOutcomeCallable CrClient::deleteCollectionCallable(const DeleteCollectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteCollection(request); + return this->getNamespace(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -627,72 +591,72 @@ CrClient::GetUserSourceRepoListOutcomeCallable CrClient::getUserSourceRepoListCa return task->get_future(); } -CrClient::GetRegionOutcome CrClient::getRegion(const GetRegionRequest &request) const +CrClient::DeleteCollectionOutcome CrClient::deleteCollection(const DeleteCollectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetRegionOutcome(endpointOutcome.error()); + return DeleteCollectionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetRegionOutcome(GetRegionResult(outcome.result())); + return DeleteCollectionOutcome(DeleteCollectionResult(outcome.result())); else - return GetRegionOutcome(outcome.error()); + return DeleteCollectionOutcome(outcome.error()); } -void CrClient::getRegionAsync(const GetRegionRequest& request, const GetRegionAsyncHandler& handler, const std::shared_ptr& context) const +void CrClient::deleteCollectionAsync(const DeleteCollectionRequest& request, const DeleteCollectionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getRegion(request), context); + handler(this, request, deleteCollection(request), context); }; asyncExecute(new Runnable(fn)); } -CrClient::GetRegionOutcomeCallable CrClient::getRegionCallable(const GetRegionRequest &request) const +CrClient::DeleteCollectionOutcomeCallable CrClient::deleteCollectionCallable(const DeleteCollectionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getRegion(request); + return this->deleteCollection(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CrClient::GetNamespaceAuthorizationListOutcome CrClient::getNamespaceAuthorizationList(const GetNamespaceAuthorizationListRequest &request) const +CrClient::UpdateRepoWebhookOutcome CrClient::updateRepoWebhook(const UpdateRepoWebhookRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetNamespaceAuthorizationListOutcome(endpointOutcome.error()); + return UpdateRepoWebhookOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetNamespaceAuthorizationListOutcome(GetNamespaceAuthorizationListResult(outcome.result())); + return UpdateRepoWebhookOutcome(UpdateRepoWebhookResult(outcome.result())); else - return GetNamespaceAuthorizationListOutcome(outcome.error()); + return UpdateRepoWebhookOutcome(outcome.error()); } -void CrClient::getNamespaceAuthorizationListAsync(const GetNamespaceAuthorizationListRequest& request, const GetNamespaceAuthorizationListAsyncHandler& handler, const std::shared_ptr& context) const +void CrClient::updateRepoWebhookAsync(const UpdateRepoWebhookRequest& request, const UpdateRepoWebhookAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getNamespaceAuthorizationList(request), context); + handler(this, request, updateRepoWebhook(request), context); }; asyncExecute(new Runnable(fn)); } -CrClient::GetNamespaceAuthorizationListOutcomeCallable CrClient::getNamespaceAuthorizationListCallable(const GetNamespaceAuthorizationListRequest &request) const +CrClient::UpdateRepoWebhookOutcomeCallable CrClient::updateRepoWebhookCallable(const UpdateRepoWebhookRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getNamespaceAuthorizationList(request); + return this->updateRepoWebhook(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -735,36 +699,72 @@ CrClient::GetAuthorizationTokenOutcomeCallable CrClient::getAuthorizationTokenCa return task->get_future(); } -CrClient::UpdateRepoWebhookOutcome CrClient::updateRepoWebhook(const UpdateRepoWebhookRequest &request) const +CrClient::GetNamespaceAuthorizationListOutcome CrClient::getNamespaceAuthorizationList(const GetNamespaceAuthorizationListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateRepoWebhookOutcome(endpointOutcome.error()); + return GetNamespaceAuthorizationListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateRepoWebhookOutcome(UpdateRepoWebhookResult(outcome.result())); + return GetNamespaceAuthorizationListOutcome(GetNamespaceAuthorizationListResult(outcome.result())); else - return UpdateRepoWebhookOutcome(outcome.error()); + return GetNamespaceAuthorizationListOutcome(outcome.error()); } -void CrClient::updateRepoWebhookAsync(const UpdateRepoWebhookRequest& request, const UpdateRepoWebhookAsyncHandler& handler, const std::shared_ptr& context) const +void CrClient::getNamespaceAuthorizationListAsync(const GetNamespaceAuthorizationListRequest& request, const GetNamespaceAuthorizationListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateRepoWebhook(request), context); + handler(this, request, getNamespaceAuthorizationList(request), context); }; asyncExecute(new Runnable(fn)); } -CrClient::UpdateRepoWebhookOutcomeCallable CrClient::updateRepoWebhookCallable(const UpdateRepoWebhookRequest &request) const +CrClient::GetNamespaceAuthorizationListOutcomeCallable CrClient::getNamespaceAuthorizationListCallable(const GetNamespaceAuthorizationListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateRepoWebhook(request); + return this->getNamespaceAuthorizationList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CrClient::GetRegionOutcome CrClient::getRegion(const GetRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRegionOutcome(GetRegionResult(outcome.result())); + else + return GetRegionOutcome(outcome.error()); +} + +void CrClient::getRegionAsync(const GetRegionRequest& request, const GetRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CrClient::GetRegionOutcomeCallable CrClient::getRegionCallable(const GetRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRegion(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1167,42 +1167,6 @@ CrClient::GetRepoBuildLogsOutcomeCallable CrClient::getRepoBuildLogsCallable(con return task->get_future(); } -CrClient::GetNamespaceListOutcome CrClient::getNamespaceList(const GetNamespaceListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetNamespaceListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetNamespaceListOutcome(GetNamespaceListResult(outcome.result())); - else - return GetNamespaceListOutcome(outcome.error()); -} - -void CrClient::getNamespaceListAsync(const GetNamespaceListRequest& request, const GetNamespaceListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getNamespaceList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CrClient::GetNamespaceListOutcomeCallable CrClient::getNamespaceListCallable(const GetNamespaceListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getNamespaceList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CrClient::GetRepoListOutcome CrClient::getRepoList(const GetRepoListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1203,42 @@ CrClient::GetRepoListOutcomeCallable CrClient::getRepoListCallable(const GetRepo return task->get_future(); } +CrClient::GetNamespaceListOutcome CrClient::getNamespaceList(const GetNamespaceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNamespaceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNamespaceListOutcome(GetNamespaceListResult(outcome.result())); + else + return GetNamespaceListOutcome(outcome.error()); +} + +void CrClient::getNamespaceListAsync(const GetNamespaceListRequest& request, const GetNamespaceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNamespaceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CrClient::GetNamespaceListOutcomeCallable CrClient::getNamespaceListCallable(const GetNamespaceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNamespaceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CrClient::GetRegionListOutcome CrClient::getRegionList(const GetRegionListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,36 +1491,36 @@ CrClient::CreateRepoSyncTaskOutcomeCallable CrClient::createRepoSyncTaskCallable return task->get_future(); } -CrClient::GetRepoBuildRuleListOutcome CrClient::getRepoBuildRuleList(const GetRepoBuildRuleListRequest &request) const +CrClient::GetImageManifestOutcome CrClient::getImageManifest(const GetImageManifestRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetRepoBuildRuleListOutcome(endpointOutcome.error()); + return GetImageManifestOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetRepoBuildRuleListOutcome(GetRepoBuildRuleListResult(outcome.result())); + return GetImageManifestOutcome(GetImageManifestResult(outcome.result())); else - return GetRepoBuildRuleListOutcome(outcome.error()); + return GetImageManifestOutcome(outcome.error()); } -void CrClient::getRepoBuildRuleListAsync(const GetRepoBuildRuleListRequest& request, const GetRepoBuildRuleListAsyncHandler& handler, const std::shared_ptr& context) const +void CrClient::getImageManifestAsync(const GetImageManifestRequest& request, const GetImageManifestAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getRepoBuildRuleList(request), context); + handler(this, request, getImageManifest(request), context); }; asyncExecute(new Runnable(fn)); } -CrClient::GetRepoBuildRuleListOutcomeCallable CrClient::getRepoBuildRuleListCallable(const GetRepoBuildRuleListRequest &request) const +CrClient::GetImageManifestOutcomeCallable CrClient::getImageManifestCallable(const GetImageManifestRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getRepoBuildRuleList(request); + return this->getImageManifest(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1563,36 +1563,36 @@ CrClient::GetUserSourceRepoRefListOutcomeCallable CrClient::getUserSourceRepoRef return task->get_future(); } -CrClient::GetImageManifestOutcome CrClient::getImageManifest(const GetImageManifestRequest &request) const +CrClient::GetRepoBuildRuleListOutcome CrClient::getRepoBuildRuleList(const GetRepoBuildRuleListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetImageManifestOutcome(endpointOutcome.error()); + return GetRepoBuildRuleListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetImageManifestOutcome(GetImageManifestResult(outcome.result())); + return GetRepoBuildRuleListOutcome(GetRepoBuildRuleListResult(outcome.result())); else - return GetImageManifestOutcome(outcome.error()); + return GetRepoBuildRuleListOutcome(outcome.error()); } -void CrClient::getImageManifestAsync(const GetImageManifestRequest& request, const GetImageManifestAsyncHandler& handler, const std::shared_ptr& context) const +void CrClient::getRepoBuildRuleListAsync(const GetRepoBuildRuleListRequest& request, const GetRepoBuildRuleListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getImageManifest(request), context); + handler(this, request, getRepoBuildRuleList(request), context); }; asyncExecute(new Runnable(fn)); } -CrClient::GetImageManifestOutcomeCallable CrClient::getImageManifestCallable(const GetImageManifestRequest &request) const +CrClient::GetRepoBuildRuleListOutcomeCallable CrClient::getRepoBuildRuleListCallable(const GetRepoBuildRuleListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getImageManifest(request); + return this->getRepoBuildRuleList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1707,42 +1707,6 @@ CrClient::GetRepoSourceRepoOutcomeCallable CrClient::getRepoSourceRepoCallable(c return task->get_future(); } -CrClient::DeleteNamespaceAuthorizationOutcome CrClient::deleteNamespaceAuthorization(const DeleteNamespaceAuthorizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteNamespaceAuthorizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteNamespaceAuthorizationOutcome(DeleteNamespaceAuthorizationResult(outcome.result())); - else - return DeleteNamespaceAuthorizationOutcome(outcome.error()); -} - -void CrClient::deleteNamespaceAuthorizationAsync(const DeleteNamespaceAuthorizationRequest& request, const DeleteNamespaceAuthorizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteNamespaceAuthorization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CrClient::DeleteNamespaceAuthorizationOutcomeCallable CrClient::deleteNamespaceAuthorizationCallable(const DeleteNamespaceAuthorizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteNamespaceAuthorization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CrClient::CreateRepoBuildRuleOutcome CrClient::createRepoBuildRule(const CreateRepoBuildRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +1743,42 @@ CrClient::CreateRepoBuildRuleOutcomeCallable CrClient::createRepoBuildRuleCallab return task->get_future(); } +CrClient::DeleteNamespaceAuthorizationOutcome CrClient::deleteNamespaceAuthorization(const DeleteNamespaceAuthorizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNamespaceAuthorizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNamespaceAuthorizationOutcome(DeleteNamespaceAuthorizationResult(outcome.result())); + else + return DeleteNamespaceAuthorizationOutcome(outcome.error()); +} + +void CrClient::deleteNamespaceAuthorizationAsync(const DeleteNamespaceAuthorizationRequest& request, const DeleteNamespaceAuthorizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNamespaceAuthorization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CrClient::DeleteNamespaceAuthorizationOutcomeCallable CrClient::deleteNamespaceAuthorizationCallable(const DeleteNamespaceAuthorizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNamespaceAuthorization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CrClient::UpdateRepoOutcome CrClient::updateRepo(const UpdateRepoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2103,42 +2103,6 @@ CrClient::GetRepoOutcomeCallable CrClient::getRepoCallable(const GetRepoRequest return task->get_future(); } -CrClient::GetRepoBuildStatusOutcome CrClient::getRepoBuildStatus(const GetRepoBuildStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetRepoBuildStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetRepoBuildStatusOutcome(GetRepoBuildStatusResult(outcome.result())); - else - return GetRepoBuildStatusOutcome(outcome.error()); -} - -void CrClient::getRepoBuildStatusAsync(const GetRepoBuildStatusRequest& request, const GetRepoBuildStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getRepoBuildStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CrClient::GetRepoBuildStatusOutcomeCallable CrClient::getRepoBuildStatusCallable(const GetRepoBuildStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getRepoBuildStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CrClient::CreateRepoAuthorizationOutcome CrClient::createRepoAuthorization(const CreateRepoAuthorizationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2139,42 @@ CrClient::CreateRepoAuthorizationOutcomeCallable CrClient::createRepoAuthorizati return task->get_future(); } +CrClient::GetRepoBuildStatusOutcome CrClient::getRepoBuildStatus(const GetRepoBuildStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRepoBuildStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRepoBuildStatusOutcome(GetRepoBuildStatusResult(outcome.result())); + else + return GetRepoBuildStatusOutcome(outcome.error()); +} + +void CrClient::getRepoBuildStatusAsync(const GetRepoBuildStatusRequest& request, const GetRepoBuildStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRepoBuildStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CrClient::GetRepoBuildStatusOutcomeCallable CrClient::getRepoBuildStatusCallable(const GetRepoBuildStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRepoBuildStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CrClient::DeleteRepoWebhookOutcome CrClient::deleteRepoWebhook(const DeleteRepoWebhookRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cr/src/model/CancelRepoBuildRequest.cc b/cr/src/model/CancelRepoBuildRequest.cc index cfa3de05c..abc269308 100644 --- a/cr/src/model/CancelRepoBuildRequest.cc +++ b/cr/src/model/CancelRepoBuildRequest.cc @@ -33,7 +33,7 @@ std::string CancelRepoBuildRequest::getRepoNamespace()const void CancelRepoBuildRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string CancelRepoBuildRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string CancelRepoBuildRequest::getRepoName()const void CancelRepoBuildRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string CancelRepoBuildRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CancelRepoBuildRequest::getRegionId()const void CancelRepoBuildRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CancelRepoBuildRequest::getBuildId()const @@ -66,6 +66,6 @@ std::string CancelRepoBuildRequest::getBuildId()const void CancelRepoBuildRequest::setBuildId(const std::string& buildId) { buildId_ = buildId; - setParameter("BuildId", buildId); + setCoreParameter("BuildId", buildId); } diff --git a/cr/src/model/CancelRepoBuildResult.cc b/cr/src/model/CancelRepoBuildResult.cc index b126923cc..6e2242df2 100644 --- a/cr/src/model/CancelRepoBuildResult.cc +++ b/cr/src/model/CancelRepoBuildResult.cc @@ -35,10 +35,13 @@ CancelRepoBuildResult::~CancelRepoBuildResult() void CancelRepoBuildResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateCollectionRequest.cc b/cr/src/model/CreateCollectionRequest.cc index 8b1af2b5c..299a6d951 100644 --- a/cr/src/model/CreateCollectionRequest.cc +++ b/cr/src/model/CreateCollectionRequest.cc @@ -33,6 +33,6 @@ std::string CreateCollectionRequest::getRegionId()const void CreateCollectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateCollectionResult.cc b/cr/src/model/CreateCollectionResult.cc index d5064c121..4a856be81 100644 --- a/cr/src/model/CreateCollectionResult.cc +++ b/cr/src/model/CreateCollectionResult.cc @@ -35,10 +35,13 @@ CreateCollectionResult::~CreateCollectionResult() void CreateCollectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateNamespaceAuthorizationRequest.cc b/cr/src/model/CreateNamespaceAuthorizationRequest.cc index 3672734a0..b7531cd42 100644 --- a/cr/src/model/CreateNamespaceAuthorizationRequest.cc +++ b/cr/src/model/CreateNamespaceAuthorizationRequest.cc @@ -33,7 +33,7 @@ std::string CreateNamespaceAuthorizationRequest::getRegionId()const void CreateNamespaceAuthorizationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateNamespaceAuthorizationRequest::get_Namespace()const @@ -44,6 +44,6 @@ std::string CreateNamespaceAuthorizationRequest::get_Namespace()const void CreateNamespaceAuthorizationRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } diff --git a/cr/src/model/CreateNamespaceAuthorizationResult.cc b/cr/src/model/CreateNamespaceAuthorizationResult.cc index 34ae72bc8..8230b9a71 100644 --- a/cr/src/model/CreateNamespaceAuthorizationResult.cc +++ b/cr/src/model/CreateNamespaceAuthorizationResult.cc @@ -35,10 +35,13 @@ CreateNamespaceAuthorizationResult::~CreateNamespaceAuthorizationResult() void CreateNamespaceAuthorizationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateNamespaceRequest.cc b/cr/src/model/CreateNamespaceRequest.cc index b99b476f9..7c46f306b 100644 --- a/cr/src/model/CreateNamespaceRequest.cc +++ b/cr/src/model/CreateNamespaceRequest.cc @@ -33,6 +33,6 @@ std::string CreateNamespaceRequest::getRegionId()const void CreateNamespaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateNamespaceResult.cc b/cr/src/model/CreateNamespaceResult.cc index 1cd8af0f9..c07691695 100644 --- a/cr/src/model/CreateNamespaceResult.cc +++ b/cr/src/model/CreateNamespaceResult.cc @@ -35,10 +35,13 @@ CreateNamespaceResult::~CreateNamespaceResult() void CreateNamespaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateRepoAuthorizationRequest.cc b/cr/src/model/CreateRepoAuthorizationRequest.cc index a8f363a0f..52f93a7f8 100644 --- a/cr/src/model/CreateRepoAuthorizationRequest.cc +++ b/cr/src/model/CreateRepoAuthorizationRequest.cc @@ -33,7 +33,7 @@ std::string CreateRepoAuthorizationRequest::getRepoNamespace()const void CreateRepoAuthorizationRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string CreateRepoAuthorizationRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string CreateRepoAuthorizationRequest::getRepoName()const void CreateRepoAuthorizationRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string CreateRepoAuthorizationRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string CreateRepoAuthorizationRequest::getRegionId()const void CreateRepoAuthorizationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateRepoAuthorizationResult.cc b/cr/src/model/CreateRepoAuthorizationResult.cc index da625744a..3a72149fc 100644 --- a/cr/src/model/CreateRepoAuthorizationResult.cc +++ b/cr/src/model/CreateRepoAuthorizationResult.cc @@ -35,10 +35,13 @@ CreateRepoAuthorizationResult::~CreateRepoAuthorizationResult() void CreateRepoAuthorizationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateRepoBuildRuleRequest.cc b/cr/src/model/CreateRepoBuildRuleRequest.cc index 69b9058be..b8cf63d16 100644 --- a/cr/src/model/CreateRepoBuildRuleRequest.cc +++ b/cr/src/model/CreateRepoBuildRuleRequest.cc @@ -33,7 +33,7 @@ std::string CreateRepoBuildRuleRequest::getRepoNamespace()const void CreateRepoBuildRuleRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string CreateRepoBuildRuleRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string CreateRepoBuildRuleRequest::getRepoName()const void CreateRepoBuildRuleRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string CreateRepoBuildRuleRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string CreateRepoBuildRuleRequest::getRegionId()const void CreateRepoBuildRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateRepoBuildRuleResult.cc b/cr/src/model/CreateRepoBuildRuleResult.cc index 6b7d0373f..e3a4f2a72 100644 --- a/cr/src/model/CreateRepoBuildRuleResult.cc +++ b/cr/src/model/CreateRepoBuildRuleResult.cc @@ -35,10 +35,13 @@ CreateRepoBuildRuleResult::~CreateRepoBuildRuleResult() void CreateRepoBuildRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateRepoRequest.cc b/cr/src/model/CreateRepoRequest.cc index a71ac72fc..8be751b43 100644 --- a/cr/src/model/CreateRepoRequest.cc +++ b/cr/src/model/CreateRepoRequest.cc @@ -33,6 +33,6 @@ std::string CreateRepoRequest::getRegionId()const void CreateRepoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateRepoResult.cc b/cr/src/model/CreateRepoResult.cc index 03904d393..10378c049 100644 --- a/cr/src/model/CreateRepoResult.cc +++ b/cr/src/model/CreateRepoResult.cc @@ -35,10 +35,13 @@ CreateRepoResult::~CreateRepoResult() void CreateRepoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateRepoSyncTaskRequest.cc b/cr/src/model/CreateRepoSyncTaskRequest.cc index d8354feb4..b822a1787 100644 --- a/cr/src/model/CreateRepoSyncTaskRequest.cc +++ b/cr/src/model/CreateRepoSyncTaskRequest.cc @@ -33,7 +33,7 @@ std::string CreateRepoSyncTaskRequest::getRepoNamespace()const void CreateRepoSyncTaskRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string CreateRepoSyncTaskRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string CreateRepoSyncTaskRequest::getRepoName()const void CreateRepoSyncTaskRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string CreateRepoSyncTaskRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string CreateRepoSyncTaskRequest::getRegionId()const void CreateRepoSyncTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateRepoSyncTaskResult.cc b/cr/src/model/CreateRepoSyncTaskResult.cc index aef41b557..c82f804a4 100644 --- a/cr/src/model/CreateRepoSyncTaskResult.cc +++ b/cr/src/model/CreateRepoSyncTaskResult.cc @@ -35,10 +35,13 @@ CreateRepoSyncTaskResult::~CreateRepoSyncTaskResult() void CreateRepoSyncTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateRepoWebhookRequest.cc b/cr/src/model/CreateRepoWebhookRequest.cc index 2443602db..d074bd83e 100644 --- a/cr/src/model/CreateRepoWebhookRequest.cc +++ b/cr/src/model/CreateRepoWebhookRequest.cc @@ -33,7 +33,7 @@ std::string CreateRepoWebhookRequest::getRepoNamespace()const void CreateRepoWebhookRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string CreateRepoWebhookRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string CreateRepoWebhookRequest::getRepoName()const void CreateRepoWebhookRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string CreateRepoWebhookRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string CreateRepoWebhookRequest::getRegionId()const void CreateRepoWebhookRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateRepoWebhookResult.cc b/cr/src/model/CreateRepoWebhookResult.cc index 51ec807fe..367bf0e6d 100644 --- a/cr/src/model/CreateRepoWebhookResult.cc +++ b/cr/src/model/CreateRepoWebhookResult.cc @@ -35,10 +35,13 @@ CreateRepoWebhookResult::~CreateRepoWebhookResult() void CreateRepoWebhookResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateUserInfoRequest.cc b/cr/src/model/CreateUserInfoRequest.cc index c2115fa38..44e6219f5 100644 --- a/cr/src/model/CreateUserInfoRequest.cc +++ b/cr/src/model/CreateUserInfoRequest.cc @@ -33,6 +33,6 @@ std::string CreateUserInfoRequest::getRegionId()const void CreateUserInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateUserInfoResult.cc b/cr/src/model/CreateUserInfoResult.cc index 33a295f21..71e6f9dee 100644 --- a/cr/src/model/CreateUserInfoResult.cc +++ b/cr/src/model/CreateUserInfoResult.cc @@ -35,10 +35,13 @@ CreateUserInfoResult::~CreateUserInfoResult() void CreateUserInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/CreateUserSourceAccountRequest.cc b/cr/src/model/CreateUserSourceAccountRequest.cc index 1ac034823..68c9545da 100644 --- a/cr/src/model/CreateUserSourceAccountRequest.cc +++ b/cr/src/model/CreateUserSourceAccountRequest.cc @@ -33,6 +33,6 @@ std::string CreateUserSourceAccountRequest::getRegionId()const void CreateUserSourceAccountRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/CreateUserSourceAccountResult.cc b/cr/src/model/CreateUserSourceAccountResult.cc index 40f86d095..915c9763e 100644 --- a/cr/src/model/CreateUserSourceAccountResult.cc +++ b/cr/src/model/CreateUserSourceAccountResult.cc @@ -35,10 +35,13 @@ CreateUserSourceAccountResult::~CreateUserSourceAccountResult() void CreateUserSourceAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteCollectionRequest.cc b/cr/src/model/DeleteCollectionRequest.cc index 39469141c..9a2c33aad 100644 --- a/cr/src/model/DeleteCollectionRequest.cc +++ b/cr/src/model/DeleteCollectionRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCollectionRequest::getRegionId()const void DeleteCollectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeleteCollectionRequest::getCollectionId()const @@ -44,6 +44,6 @@ long DeleteCollectionRequest::getCollectionId()const void DeleteCollectionRequest::setCollectionId(long collectionId) { collectionId_ = collectionId; - setParameter("CollectionId", std::to_string(collectionId)); + setCoreParameter("CollectionId", std::to_string(collectionId)); } diff --git a/cr/src/model/DeleteCollectionResult.cc b/cr/src/model/DeleteCollectionResult.cc index cca1b882e..f8a91aa20 100644 --- a/cr/src/model/DeleteCollectionResult.cc +++ b/cr/src/model/DeleteCollectionResult.cc @@ -35,10 +35,13 @@ DeleteCollectionResult::~DeleteCollectionResult() void DeleteCollectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteImageRequest.cc b/cr/src/model/DeleteImageRequest.cc index 823522f68..ccb805ff8 100644 --- a/cr/src/model/DeleteImageRequest.cc +++ b/cr/src/model/DeleteImageRequest.cc @@ -33,7 +33,7 @@ std::string DeleteImageRequest::getRepoNamespace()const void DeleteImageRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string DeleteImageRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string DeleteImageRequest::getRepoName()const void DeleteImageRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string DeleteImageRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteImageRequest::getRegionId()const void DeleteImageRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteImageRequest::getTag()const @@ -66,6 +66,6 @@ std::string DeleteImageRequest::getTag()const void DeleteImageRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } diff --git a/cr/src/model/DeleteImageResult.cc b/cr/src/model/DeleteImageResult.cc index e63a156ec..18052c0f7 100644 --- a/cr/src/model/DeleteImageResult.cc +++ b/cr/src/model/DeleteImageResult.cc @@ -35,10 +35,13 @@ DeleteImageResult::~DeleteImageResult() void DeleteImageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteNamespaceAuthorizationRequest.cc b/cr/src/model/DeleteNamespaceAuthorizationRequest.cc index fc847efb2..051b724ba 100644 --- a/cr/src/model/DeleteNamespaceAuthorizationRequest.cc +++ b/cr/src/model/DeleteNamespaceAuthorizationRequest.cc @@ -33,7 +33,7 @@ std::string DeleteNamespaceAuthorizationRequest::getRegionId()const void DeleteNamespaceAuthorizationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeleteNamespaceAuthorizationRequest::getAuthorizeId()const @@ -44,7 +44,7 @@ long DeleteNamespaceAuthorizationRequest::getAuthorizeId()const void DeleteNamespaceAuthorizationRequest::setAuthorizeId(long authorizeId) { authorizeId_ = authorizeId; - setParameter("AuthorizeId", std::to_string(authorizeId)); + setCoreParameter("AuthorizeId", std::to_string(authorizeId)); } std::string DeleteNamespaceAuthorizationRequest::get_Namespace()const @@ -55,6 +55,6 @@ std::string DeleteNamespaceAuthorizationRequest::get_Namespace()const void DeleteNamespaceAuthorizationRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } diff --git a/cr/src/model/DeleteNamespaceAuthorizationResult.cc b/cr/src/model/DeleteNamespaceAuthorizationResult.cc index 994736f3a..e1b748beb 100644 --- a/cr/src/model/DeleteNamespaceAuthorizationResult.cc +++ b/cr/src/model/DeleteNamespaceAuthorizationResult.cc @@ -35,10 +35,13 @@ DeleteNamespaceAuthorizationResult::~DeleteNamespaceAuthorizationResult() void DeleteNamespaceAuthorizationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteNamespaceRequest.cc b/cr/src/model/DeleteNamespaceRequest.cc index 5bf1caa65..06dff92c2 100644 --- a/cr/src/model/DeleteNamespaceRequest.cc +++ b/cr/src/model/DeleteNamespaceRequest.cc @@ -33,7 +33,7 @@ std::string DeleteNamespaceRequest::getRegionId()const void DeleteNamespaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteNamespaceRequest::get_Namespace()const @@ -44,6 +44,6 @@ std::string DeleteNamespaceRequest::get_Namespace()const void DeleteNamespaceRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } diff --git a/cr/src/model/DeleteNamespaceResult.cc b/cr/src/model/DeleteNamespaceResult.cc index 8890340c0..15ba70e2a 100644 --- a/cr/src/model/DeleteNamespaceResult.cc +++ b/cr/src/model/DeleteNamespaceResult.cc @@ -35,10 +35,13 @@ DeleteNamespaceResult::~DeleteNamespaceResult() void DeleteNamespaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteRepoAuthorizationRequest.cc b/cr/src/model/DeleteRepoAuthorizationRequest.cc index 45a4fe6fb..dc00abbce 100644 --- a/cr/src/model/DeleteRepoAuthorizationRequest.cc +++ b/cr/src/model/DeleteRepoAuthorizationRequest.cc @@ -33,7 +33,7 @@ std::string DeleteRepoAuthorizationRequest::getRepoNamespace()const void DeleteRepoAuthorizationRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string DeleteRepoAuthorizationRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string DeleteRepoAuthorizationRequest::getRepoName()const void DeleteRepoAuthorizationRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string DeleteRepoAuthorizationRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteRepoAuthorizationRequest::getRegionId()const void DeleteRepoAuthorizationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeleteRepoAuthorizationRequest::getAuthorizeId()const @@ -66,6 +66,6 @@ long DeleteRepoAuthorizationRequest::getAuthorizeId()const void DeleteRepoAuthorizationRequest::setAuthorizeId(long authorizeId) { authorizeId_ = authorizeId; - setParameter("AuthorizeId", std::to_string(authorizeId)); + setCoreParameter("AuthorizeId", std::to_string(authorizeId)); } diff --git a/cr/src/model/DeleteRepoAuthorizationResult.cc b/cr/src/model/DeleteRepoAuthorizationResult.cc index 199a7d97b..78b29be43 100644 --- a/cr/src/model/DeleteRepoAuthorizationResult.cc +++ b/cr/src/model/DeleteRepoAuthorizationResult.cc @@ -35,10 +35,13 @@ DeleteRepoAuthorizationResult::~DeleteRepoAuthorizationResult() void DeleteRepoAuthorizationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteRepoBuildRuleRequest.cc b/cr/src/model/DeleteRepoBuildRuleRequest.cc index ff544933f..e492308f5 100644 --- a/cr/src/model/DeleteRepoBuildRuleRequest.cc +++ b/cr/src/model/DeleteRepoBuildRuleRequest.cc @@ -33,7 +33,7 @@ std::string DeleteRepoBuildRuleRequest::getRepoNamespace()const void DeleteRepoBuildRuleRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string DeleteRepoBuildRuleRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string DeleteRepoBuildRuleRequest::getRepoName()const void DeleteRepoBuildRuleRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string DeleteRepoBuildRuleRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteRepoBuildRuleRequest::getRegionId()const void DeleteRepoBuildRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeleteRepoBuildRuleRequest::getBuildRuleId()const @@ -66,6 +66,6 @@ long DeleteRepoBuildRuleRequest::getBuildRuleId()const void DeleteRepoBuildRuleRequest::setBuildRuleId(long buildRuleId) { buildRuleId_ = buildRuleId; - setParameter("BuildRuleId", std::to_string(buildRuleId)); + setCoreParameter("BuildRuleId", std::to_string(buildRuleId)); } diff --git a/cr/src/model/DeleteRepoBuildRuleResult.cc b/cr/src/model/DeleteRepoBuildRuleResult.cc index 481b956d6..5a9838ce0 100644 --- a/cr/src/model/DeleteRepoBuildRuleResult.cc +++ b/cr/src/model/DeleteRepoBuildRuleResult.cc @@ -35,10 +35,13 @@ DeleteRepoBuildRuleResult::~DeleteRepoBuildRuleResult() void DeleteRepoBuildRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteRepoRequest.cc b/cr/src/model/DeleteRepoRequest.cc index 5ce9a2d8d..e4d3e8321 100644 --- a/cr/src/model/DeleteRepoRequest.cc +++ b/cr/src/model/DeleteRepoRequest.cc @@ -33,7 +33,7 @@ std::string DeleteRepoRequest::getRepoNamespace()const void DeleteRepoRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string DeleteRepoRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string DeleteRepoRequest::getRepoName()const void DeleteRepoRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string DeleteRepoRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string DeleteRepoRequest::getRegionId()const void DeleteRepoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/DeleteRepoResult.cc b/cr/src/model/DeleteRepoResult.cc index 0cf26c4e5..e1d0f3402 100644 --- a/cr/src/model/DeleteRepoResult.cc +++ b/cr/src/model/DeleteRepoResult.cc @@ -35,10 +35,13 @@ DeleteRepoResult::~DeleteRepoResult() void DeleteRepoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteRepoWebhookRequest.cc b/cr/src/model/DeleteRepoWebhookRequest.cc index b00dd7a3b..3ad88a596 100644 --- a/cr/src/model/DeleteRepoWebhookRequest.cc +++ b/cr/src/model/DeleteRepoWebhookRequest.cc @@ -33,7 +33,7 @@ std::string DeleteRepoWebhookRequest::getRepoNamespace()const void DeleteRepoWebhookRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } long DeleteRepoWebhookRequest::getWebhookId()const @@ -44,7 +44,7 @@ long DeleteRepoWebhookRequest::getWebhookId()const void DeleteRepoWebhookRequest::setWebhookId(long webhookId) { webhookId_ = webhookId; - setParameter("WebhookId", std::to_string(webhookId)); + setCoreParameter("WebhookId", std::to_string(webhookId)); } std::string DeleteRepoWebhookRequest::getRepoName()const @@ -55,7 +55,7 @@ std::string DeleteRepoWebhookRequest::getRepoName()const void DeleteRepoWebhookRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string DeleteRepoWebhookRequest::getRegionId()const @@ -66,6 +66,6 @@ std::string DeleteRepoWebhookRequest::getRegionId()const void DeleteRepoWebhookRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/DeleteRepoWebhookResult.cc b/cr/src/model/DeleteRepoWebhookResult.cc index 605786a37..9da0ddabf 100644 --- a/cr/src/model/DeleteRepoWebhookResult.cc +++ b/cr/src/model/DeleteRepoWebhookResult.cc @@ -35,10 +35,13 @@ DeleteRepoWebhookResult::~DeleteRepoWebhookResult() void DeleteRepoWebhookResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/DeleteUserSourceAccountRequest.cc b/cr/src/model/DeleteUserSourceAccountRequest.cc index 12a04c5b2..5123c245e 100644 --- a/cr/src/model/DeleteUserSourceAccountRequest.cc +++ b/cr/src/model/DeleteUserSourceAccountRequest.cc @@ -33,7 +33,7 @@ long DeleteUserSourceAccountRequest::getSourceAccountId()const void DeleteUserSourceAccountRequest::setSourceAccountId(long sourceAccountId) { sourceAccountId_ = sourceAccountId; - setParameter("SourceAccountId", std::to_string(sourceAccountId)); + setCoreParameter("SourceAccountId", std::to_string(sourceAccountId)); } std::string DeleteUserSourceAccountRequest::getRegionId()const @@ -44,6 +44,6 @@ std::string DeleteUserSourceAccountRequest::getRegionId()const void DeleteUserSourceAccountRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/DeleteUserSourceAccountResult.cc b/cr/src/model/DeleteUserSourceAccountResult.cc index 4abaa2951..730e9856d 100644 --- a/cr/src/model/DeleteUserSourceAccountResult.cc +++ b/cr/src/model/DeleteUserSourceAccountResult.cc @@ -35,10 +35,13 @@ DeleteUserSourceAccountResult::~DeleteUserSourceAccountResult() void DeleteUserSourceAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetAuthorizationTokenRequest.cc b/cr/src/model/GetAuthorizationTokenRequest.cc index 1f0563212..d6a627c2e 100644 --- a/cr/src/model/GetAuthorizationTokenRequest.cc +++ b/cr/src/model/GetAuthorizationTokenRequest.cc @@ -33,6 +33,6 @@ std::string GetAuthorizationTokenRequest::getRegionId()const void GetAuthorizationTokenRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetAuthorizationTokenResult.cc b/cr/src/model/GetAuthorizationTokenResult.cc index f304fc239..1d0b9c7cf 100644 --- a/cr/src/model/GetAuthorizationTokenResult.cc +++ b/cr/src/model/GetAuthorizationTokenResult.cc @@ -35,10 +35,13 @@ GetAuthorizationTokenResult::~GetAuthorizationTokenResult() void GetAuthorizationTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetCollectionRequest.cc b/cr/src/model/GetCollectionRequest.cc index 5358fb65e..a89e4de23 100644 --- a/cr/src/model/GetCollectionRequest.cc +++ b/cr/src/model/GetCollectionRequest.cc @@ -33,7 +33,7 @@ std::string GetCollectionRequest::getRegionId()const void GetCollectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetCollectionRequest::getPageSize()const @@ -44,7 +44,7 @@ int GetCollectionRequest::getPageSize()const void GetCollectionRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetCollectionRequest::getPage()const @@ -55,6 +55,6 @@ int GetCollectionRequest::getPage()const void GetCollectionRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } diff --git a/cr/src/model/GetCollectionResult.cc b/cr/src/model/GetCollectionResult.cc index f00b24836..8bec44b61 100644 --- a/cr/src/model/GetCollectionResult.cc +++ b/cr/src/model/GetCollectionResult.cc @@ -35,10 +35,13 @@ GetCollectionResult::~GetCollectionResult() void GetCollectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetImageLayerRequest.cc b/cr/src/model/GetImageLayerRequest.cc index e6283fd53..70c3e8be1 100644 --- a/cr/src/model/GetImageLayerRequest.cc +++ b/cr/src/model/GetImageLayerRequest.cc @@ -33,7 +33,7 @@ std::string GetImageLayerRequest::getRepoNamespace()const void GetImageLayerRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetImageLayerRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetImageLayerRequest::getRepoName()const void GetImageLayerRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetImageLayerRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetImageLayerRequest::getRegionId()const void GetImageLayerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetImageLayerRequest::getTag()const @@ -66,6 +66,6 @@ std::string GetImageLayerRequest::getTag()const void GetImageLayerRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } diff --git a/cr/src/model/GetImageLayerResult.cc b/cr/src/model/GetImageLayerResult.cc index 5fe62242c..81a6a96e7 100644 --- a/cr/src/model/GetImageLayerResult.cc +++ b/cr/src/model/GetImageLayerResult.cc @@ -35,10 +35,13 @@ GetImageLayerResult::~GetImageLayerResult() void GetImageLayerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetImageManifestRequest.cc b/cr/src/model/GetImageManifestRequest.cc index 6760990c4..a6ef0b468 100644 --- a/cr/src/model/GetImageManifestRequest.cc +++ b/cr/src/model/GetImageManifestRequest.cc @@ -33,7 +33,7 @@ std::string GetImageManifestRequest::getRepoNamespace()const void GetImageManifestRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetImageManifestRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetImageManifestRequest::getRepoName()const void GetImageManifestRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetImageManifestRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetImageManifestRequest::getRegionId()const void GetImageManifestRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetImageManifestRequest::getTag()const @@ -66,7 +66,7 @@ std::string GetImageManifestRequest::getTag()const void GetImageManifestRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } int GetImageManifestRequest::getSchemaVersion()const @@ -77,6 +77,6 @@ int GetImageManifestRequest::getSchemaVersion()const void GetImageManifestRequest::setSchemaVersion(int schemaVersion) { schemaVersion_ = schemaVersion; - setParameter("SchemaVersion", std::to_string(schemaVersion)); + setCoreParameter("SchemaVersion", std::to_string(schemaVersion)); } diff --git a/cr/src/model/GetImageManifestResult.cc b/cr/src/model/GetImageManifestResult.cc index 9e27dd238..b110993e1 100644 --- a/cr/src/model/GetImageManifestResult.cc +++ b/cr/src/model/GetImageManifestResult.cc @@ -35,10 +35,13 @@ GetImageManifestResult::~GetImageManifestResult() void GetImageManifestResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetImageScanRequest.cc b/cr/src/model/GetImageScanRequest.cc index dcd45eddf..1283d52bc 100644 --- a/cr/src/model/GetImageScanRequest.cc +++ b/cr/src/model/GetImageScanRequest.cc @@ -33,7 +33,7 @@ std::string GetImageScanRequest::getRepoNamespace()const void GetImageScanRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetImageScanRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetImageScanRequest::getRepoName()const void GetImageScanRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetImageScanRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetImageScanRequest::getRegionId()const void GetImageScanRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetImageScanRequest::getTag()const @@ -66,6 +66,6 @@ std::string GetImageScanRequest::getTag()const void GetImageScanRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } diff --git a/cr/src/model/GetImageScanResult.cc b/cr/src/model/GetImageScanResult.cc index c93c829aa..6a3c6cdd8 100644 --- a/cr/src/model/GetImageScanResult.cc +++ b/cr/src/model/GetImageScanResult.cc @@ -35,10 +35,13 @@ GetImageScanResult::~GetImageScanResult() void GetImageScanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetMirrorListRequest.cc b/cr/src/model/GetMirrorListRequest.cc index 5b885a751..2a0e51e53 100644 --- a/cr/src/model/GetMirrorListRequest.cc +++ b/cr/src/model/GetMirrorListRequest.cc @@ -33,6 +33,6 @@ std::string GetMirrorListRequest::getRegionId()const void GetMirrorListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetMirrorListResult.cc b/cr/src/model/GetMirrorListResult.cc index fc42685e0..0c9f53a32 100644 --- a/cr/src/model/GetMirrorListResult.cc +++ b/cr/src/model/GetMirrorListResult.cc @@ -35,10 +35,13 @@ GetMirrorListResult::~GetMirrorListResult() void GetMirrorListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetNamespaceAuthorizationListRequest.cc b/cr/src/model/GetNamespaceAuthorizationListRequest.cc index 8b402f670..43505cf12 100644 --- a/cr/src/model/GetNamespaceAuthorizationListRequest.cc +++ b/cr/src/model/GetNamespaceAuthorizationListRequest.cc @@ -33,7 +33,7 @@ std::string GetNamespaceAuthorizationListRequest::getRegionId()const void GetNamespaceAuthorizationListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetNamespaceAuthorizationListRequest::get_Namespace()const @@ -44,7 +44,7 @@ std::string GetNamespaceAuthorizationListRequest::get_Namespace()const void GetNamespaceAuthorizationListRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } std::string GetNamespaceAuthorizationListRequest::getAuthorize()const @@ -55,6 +55,6 @@ std::string GetNamespaceAuthorizationListRequest::getAuthorize()const void GetNamespaceAuthorizationListRequest::setAuthorize(const std::string& authorize) { authorize_ = authorize; - setParameter("Authorize", authorize); + setCoreParameter("Authorize", authorize); } diff --git a/cr/src/model/GetNamespaceAuthorizationListResult.cc b/cr/src/model/GetNamespaceAuthorizationListResult.cc index 27b11fcfa..e6cd503cc 100644 --- a/cr/src/model/GetNamespaceAuthorizationListResult.cc +++ b/cr/src/model/GetNamespaceAuthorizationListResult.cc @@ -35,10 +35,13 @@ GetNamespaceAuthorizationListResult::~GetNamespaceAuthorizationListResult() void GetNamespaceAuthorizationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetNamespaceListRequest.cc b/cr/src/model/GetNamespaceListRequest.cc index 63ff8f51a..8414ca4b8 100644 --- a/cr/src/model/GetNamespaceListRequest.cc +++ b/cr/src/model/GetNamespaceListRequest.cc @@ -33,7 +33,7 @@ std::string GetNamespaceListRequest::getRegionId()const void GetNamespaceListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetNamespaceListRequest::getAuthorize()const @@ -44,7 +44,7 @@ std::string GetNamespaceListRequest::getAuthorize()const void GetNamespaceListRequest::setAuthorize(const std::string& authorize) { authorize_ = authorize; - setParameter("Authorize", authorize); + setCoreParameter("Authorize", authorize); } std::string GetNamespaceListRequest::getStatus()const @@ -55,6 +55,6 @@ std::string GetNamespaceListRequest::getStatus()const void GetNamespaceListRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cr/src/model/GetNamespaceListResult.cc b/cr/src/model/GetNamespaceListResult.cc index a4abca040..50da8e35f 100644 --- a/cr/src/model/GetNamespaceListResult.cc +++ b/cr/src/model/GetNamespaceListResult.cc @@ -35,10 +35,13 @@ GetNamespaceListResult::~GetNamespaceListResult() void GetNamespaceListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetNamespaceRequest.cc b/cr/src/model/GetNamespaceRequest.cc index ff993ef54..9ae86dc1b 100644 --- a/cr/src/model/GetNamespaceRequest.cc +++ b/cr/src/model/GetNamespaceRequest.cc @@ -33,7 +33,7 @@ std::string GetNamespaceRequest::getRegionId()const void GetNamespaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetNamespaceRequest::get_Namespace()const @@ -44,6 +44,6 @@ std::string GetNamespaceRequest::get_Namespace()const void GetNamespaceRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } diff --git a/cr/src/model/GetNamespaceResult.cc b/cr/src/model/GetNamespaceResult.cc index c05c8a1d5..d3409a148 100644 --- a/cr/src/model/GetNamespaceResult.cc +++ b/cr/src/model/GetNamespaceResult.cc @@ -35,10 +35,13 @@ GetNamespaceResult::~GetNamespaceResult() void GetNamespaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRegionListRequest.cc b/cr/src/model/GetRegionListRequest.cc index 99ac84301..c0c81ef6b 100644 --- a/cr/src/model/GetRegionListRequest.cc +++ b/cr/src/model/GetRegionListRequest.cc @@ -33,6 +33,6 @@ std::string GetRegionListRequest::getRegionId()const void GetRegionListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetRegionListResult.cc b/cr/src/model/GetRegionListResult.cc index 014febb23..6591dd79b 100644 --- a/cr/src/model/GetRegionListResult.cc +++ b/cr/src/model/GetRegionListResult.cc @@ -35,10 +35,13 @@ GetRegionListResult::~GetRegionListResult() void GetRegionListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRegionRequest.cc b/cr/src/model/GetRegionRequest.cc index d59c0776c..13b1717a0 100644 --- a/cr/src/model/GetRegionRequest.cc +++ b/cr/src/model/GetRegionRequest.cc @@ -33,6 +33,6 @@ std::string GetRegionRequest::getDomain()const void GetRegionRequest::setDomain(const std::string& domain) { domain_ = domain; - setParameter("Domain", domain); + setCoreParameter("Domain", domain); } diff --git a/cr/src/model/GetRegionResult.cc b/cr/src/model/GetRegionResult.cc index 61ee2e9fa..4432c692b 100644 --- a/cr/src/model/GetRegionResult.cc +++ b/cr/src/model/GetRegionResult.cc @@ -35,10 +35,13 @@ GetRegionResult::~GetRegionResult() void GetRegionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoAuthorizationListRequest.cc b/cr/src/model/GetRepoAuthorizationListRequest.cc index f1bd7288e..9d9d896b8 100644 --- a/cr/src/model/GetRepoAuthorizationListRequest.cc +++ b/cr/src/model/GetRepoAuthorizationListRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoAuthorizationListRequest::getRepoNamespace()const void GetRepoAuthorizationListRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoAuthorizationListRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoAuthorizationListRequest::getRepoName()const void GetRepoAuthorizationListRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoAuthorizationListRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetRepoAuthorizationListRequest::getRegionId()const void GetRepoAuthorizationListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetRepoAuthorizationListRequest::getAuthorize()const @@ -66,6 +66,6 @@ std::string GetRepoAuthorizationListRequest::getAuthorize()const void GetRepoAuthorizationListRequest::setAuthorize(const std::string& authorize) { authorize_ = authorize; - setParameter("Authorize", authorize); + setCoreParameter("Authorize", authorize); } diff --git a/cr/src/model/GetRepoAuthorizationListResult.cc b/cr/src/model/GetRepoAuthorizationListResult.cc index a9ed41b38..274fb8a58 100644 --- a/cr/src/model/GetRepoAuthorizationListResult.cc +++ b/cr/src/model/GetRepoAuthorizationListResult.cc @@ -35,10 +35,13 @@ GetRepoAuthorizationListResult::~GetRepoAuthorizationListResult() void GetRepoAuthorizationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoBatchRequest.cc b/cr/src/model/GetRepoBatchRequest.cc index c43b67644..371a18646 100644 --- a/cr/src/model/GetRepoBatchRequest.cc +++ b/cr/src/model/GetRepoBatchRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoBatchRequest::getRegionId()const void GetRepoBatchRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetRepoBatchRequest::getRepoIds()const @@ -44,6 +44,6 @@ std::string GetRepoBatchRequest::getRepoIds()const void GetRepoBatchRequest::setRepoIds(const std::string& repoIds) { repoIds_ = repoIds; - setParameter("RepoIds", repoIds); + setCoreParameter("RepoIds", repoIds); } diff --git a/cr/src/model/GetRepoBatchResult.cc b/cr/src/model/GetRepoBatchResult.cc index 17a7357fa..add3336e8 100644 --- a/cr/src/model/GetRepoBatchResult.cc +++ b/cr/src/model/GetRepoBatchResult.cc @@ -35,10 +35,13 @@ GetRepoBatchResult::~GetRepoBatchResult() void GetRepoBatchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoBuildListRequest.cc b/cr/src/model/GetRepoBuildListRequest.cc index 7718f02fb..2ece816d0 100644 --- a/cr/src/model/GetRepoBuildListRequest.cc +++ b/cr/src/model/GetRepoBuildListRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoBuildListRequest::getRepoNamespace()const void GetRepoBuildListRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoBuildListRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoBuildListRequest::getRepoName()const void GetRepoBuildListRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoBuildListRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetRepoBuildListRequest::getRegionId()const void GetRepoBuildListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetRepoBuildListRequest::getPageSize()const @@ -66,7 +66,7 @@ int GetRepoBuildListRequest::getPageSize()const void GetRepoBuildListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetRepoBuildListRequest::getPage()const @@ -77,6 +77,6 @@ int GetRepoBuildListRequest::getPage()const void GetRepoBuildListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } diff --git a/cr/src/model/GetRepoBuildListResult.cc b/cr/src/model/GetRepoBuildListResult.cc index 964ee8138..9547e10be 100644 --- a/cr/src/model/GetRepoBuildListResult.cc +++ b/cr/src/model/GetRepoBuildListResult.cc @@ -35,10 +35,13 @@ GetRepoBuildListResult::~GetRepoBuildListResult() void GetRepoBuildListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoBuildLogsRequest.cc b/cr/src/model/GetRepoBuildLogsRequest.cc index 28639df27..b9190555e 100644 --- a/cr/src/model/GetRepoBuildLogsRequest.cc +++ b/cr/src/model/GetRepoBuildLogsRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoBuildLogsRequest::getRepoNamespace()const void GetRepoBuildLogsRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoBuildLogsRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoBuildLogsRequest::getRepoName()const void GetRepoBuildLogsRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoBuildLogsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetRepoBuildLogsRequest::getRegionId()const void GetRepoBuildLogsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetRepoBuildLogsRequest::getBuildId()const @@ -66,6 +66,6 @@ std::string GetRepoBuildLogsRequest::getBuildId()const void GetRepoBuildLogsRequest::setBuildId(const std::string& buildId) { buildId_ = buildId; - setParameter("BuildId", buildId); + setCoreParameter("BuildId", buildId); } diff --git a/cr/src/model/GetRepoBuildLogsResult.cc b/cr/src/model/GetRepoBuildLogsResult.cc index f0a6a5b5c..4c3db10a7 100644 --- a/cr/src/model/GetRepoBuildLogsResult.cc +++ b/cr/src/model/GetRepoBuildLogsResult.cc @@ -35,10 +35,13 @@ GetRepoBuildLogsResult::~GetRepoBuildLogsResult() void GetRepoBuildLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoBuildRuleListRequest.cc b/cr/src/model/GetRepoBuildRuleListRequest.cc index f4a37273c..778396c76 100644 --- a/cr/src/model/GetRepoBuildRuleListRequest.cc +++ b/cr/src/model/GetRepoBuildRuleListRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoBuildRuleListRequest::getRepoNamespace()const void GetRepoBuildRuleListRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoBuildRuleListRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoBuildRuleListRequest::getRepoName()const void GetRepoBuildRuleListRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoBuildRuleListRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string GetRepoBuildRuleListRequest::getRegionId()const void GetRepoBuildRuleListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetRepoBuildRuleListResult.cc b/cr/src/model/GetRepoBuildRuleListResult.cc index 4807b0acf..86e7d63c1 100644 --- a/cr/src/model/GetRepoBuildRuleListResult.cc +++ b/cr/src/model/GetRepoBuildRuleListResult.cc @@ -35,10 +35,13 @@ GetRepoBuildRuleListResult::~GetRepoBuildRuleListResult() void GetRepoBuildRuleListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoBuildStatusRequest.cc b/cr/src/model/GetRepoBuildStatusRequest.cc index 8709cf4da..dbb0f61d2 100644 --- a/cr/src/model/GetRepoBuildStatusRequest.cc +++ b/cr/src/model/GetRepoBuildStatusRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoBuildStatusRequest::getRepoNamespace()const void GetRepoBuildStatusRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoBuildStatusRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoBuildStatusRequest::getRepoName()const void GetRepoBuildStatusRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoBuildStatusRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetRepoBuildStatusRequest::getRegionId()const void GetRepoBuildStatusRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetRepoBuildStatusRequest::getBuildId()const @@ -66,6 +66,6 @@ std::string GetRepoBuildStatusRequest::getBuildId()const void GetRepoBuildStatusRequest::setBuildId(const std::string& buildId) { buildId_ = buildId; - setParameter("BuildId", buildId); + setCoreParameter("BuildId", buildId); } diff --git a/cr/src/model/GetRepoBuildStatusResult.cc b/cr/src/model/GetRepoBuildStatusResult.cc index 1a0c319c2..d8e86c964 100644 --- a/cr/src/model/GetRepoBuildStatusResult.cc +++ b/cr/src/model/GetRepoBuildStatusResult.cc @@ -35,10 +35,13 @@ GetRepoBuildStatusResult::~GetRepoBuildStatusResult() void GetRepoBuildStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoListByNamespaceRequest.cc b/cr/src/model/GetRepoListByNamespaceRequest.cc index 6c1869bc0..936ccd56a 100644 --- a/cr/src/model/GetRepoListByNamespaceRequest.cc +++ b/cr/src/model/GetRepoListByNamespaceRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoListByNamespaceRequest::getRepoNamespace()const void GetRepoListByNamespaceRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoListByNamespaceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string GetRepoListByNamespaceRequest::getRegionId()const void GetRepoListByNamespaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetRepoListByNamespaceRequest::getPageSize()const @@ -55,7 +55,7 @@ int GetRepoListByNamespaceRequest::getPageSize()const void GetRepoListByNamespaceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetRepoListByNamespaceRequest::getPage()const @@ -66,7 +66,7 @@ int GetRepoListByNamespaceRequest::getPage()const void GetRepoListByNamespaceRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string GetRepoListByNamespaceRequest::getStatus()const @@ -77,6 +77,6 @@ std::string GetRepoListByNamespaceRequest::getStatus()const void GetRepoListByNamespaceRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cr/src/model/GetRepoListByNamespaceResult.cc b/cr/src/model/GetRepoListByNamespaceResult.cc index 672a4ffd8..d7fe3ac1d 100644 --- a/cr/src/model/GetRepoListByNamespaceResult.cc +++ b/cr/src/model/GetRepoListByNamespaceResult.cc @@ -35,10 +35,13 @@ GetRepoListByNamespaceResult::~GetRepoListByNamespaceResult() void GetRepoListByNamespaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoListRequest.cc b/cr/src/model/GetRepoListRequest.cc index d94686e60..45168a8d4 100644 --- a/cr/src/model/GetRepoListRequest.cc +++ b/cr/src/model/GetRepoListRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoListRequest::getRegionId()const void GetRepoListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetRepoListRequest::getPageSize()const @@ -44,7 +44,7 @@ int GetRepoListRequest::getPageSize()const void GetRepoListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetRepoListRequest::getPage()const @@ -55,7 +55,7 @@ int GetRepoListRequest::getPage()const void GetRepoListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string GetRepoListRequest::getStatus()const @@ -66,6 +66,6 @@ std::string GetRepoListRequest::getStatus()const void GetRepoListRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/cr/src/model/GetRepoListResult.cc b/cr/src/model/GetRepoListResult.cc index 6c7f571d3..27afb932b 100644 --- a/cr/src/model/GetRepoListResult.cc +++ b/cr/src/model/GetRepoListResult.cc @@ -35,10 +35,13 @@ GetRepoListResult::~GetRepoListResult() void GetRepoListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoRequest.cc b/cr/src/model/GetRepoRequest.cc index 240fed835..ae6238d60 100644 --- a/cr/src/model/GetRepoRequest.cc +++ b/cr/src/model/GetRepoRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoRequest::getRepoNamespace()const void GetRepoRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoRequest::getRepoName()const void GetRepoRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string GetRepoRequest::getRegionId()const void GetRepoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetRepoResult.cc b/cr/src/model/GetRepoResult.cc index 6347a3951..d7e377bf0 100644 --- a/cr/src/model/GetRepoResult.cc +++ b/cr/src/model/GetRepoResult.cc @@ -35,10 +35,13 @@ GetRepoResult::~GetRepoResult() void GetRepoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoSourceRepoRequest.cc b/cr/src/model/GetRepoSourceRepoRequest.cc index f6cab6cda..55cf0403d 100644 --- a/cr/src/model/GetRepoSourceRepoRequest.cc +++ b/cr/src/model/GetRepoSourceRepoRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoSourceRepoRequest::getRepoNamespace()const void GetRepoSourceRepoRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoSourceRepoRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoSourceRepoRequest::getRepoName()const void GetRepoSourceRepoRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoSourceRepoRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string GetRepoSourceRepoRequest::getRegionId()const void GetRepoSourceRepoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetRepoSourceRepoResult.cc b/cr/src/model/GetRepoSourceRepoResult.cc index b87fd68d3..b99702c46 100644 --- a/cr/src/model/GetRepoSourceRepoResult.cc +++ b/cr/src/model/GetRepoSourceRepoResult.cc @@ -35,10 +35,13 @@ GetRepoSourceRepoResult::~GetRepoSourceRepoResult() void GetRepoSourceRepoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoSyncTaskListRequest.cc b/cr/src/model/GetRepoSyncTaskListRequest.cc index 232c32ed5..dc9d9bada 100644 --- a/cr/src/model/GetRepoSyncTaskListRequest.cc +++ b/cr/src/model/GetRepoSyncTaskListRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoSyncTaskListRequest::getRepoNamespace()const void GetRepoSyncTaskListRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoSyncTaskListRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoSyncTaskListRequest::getRepoName()const void GetRepoSyncTaskListRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoSyncTaskListRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetRepoSyncTaskListRequest::getRegionId()const void GetRepoSyncTaskListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetRepoSyncTaskListRequest::getPageSize()const @@ -66,7 +66,7 @@ int GetRepoSyncTaskListRequest::getPageSize()const void GetRepoSyncTaskListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetRepoSyncTaskListRequest::getPage()const @@ -77,6 +77,6 @@ int GetRepoSyncTaskListRequest::getPage()const void GetRepoSyncTaskListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } diff --git a/cr/src/model/GetRepoSyncTaskListResult.cc b/cr/src/model/GetRepoSyncTaskListResult.cc index cd3d1ff9b..6adedafb5 100644 --- a/cr/src/model/GetRepoSyncTaskListResult.cc +++ b/cr/src/model/GetRepoSyncTaskListResult.cc @@ -35,10 +35,13 @@ GetRepoSyncTaskListResult::~GetRepoSyncTaskListResult() void GetRepoSyncTaskListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoSyncTaskRequest.cc b/cr/src/model/GetRepoSyncTaskRequest.cc index b848f481f..6e9dd53db 100644 --- a/cr/src/model/GetRepoSyncTaskRequest.cc +++ b/cr/src/model/GetRepoSyncTaskRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoSyncTaskRequest::getRepoNamespace()const void GetRepoSyncTaskRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoSyncTaskRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoSyncTaskRequest::getRepoName()const void GetRepoSyncTaskRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoSyncTaskRequest::getSyncTaskId()const @@ -55,7 +55,7 @@ std::string GetRepoSyncTaskRequest::getSyncTaskId()const void GetRepoSyncTaskRequest::setSyncTaskId(const std::string& syncTaskId) { syncTaskId_ = syncTaskId; - setParameter("SyncTaskId", syncTaskId); + setCoreParameter("SyncTaskId", syncTaskId); } std::string GetRepoSyncTaskRequest::getRegionId()const @@ -66,6 +66,6 @@ std::string GetRepoSyncTaskRequest::getRegionId()const void GetRepoSyncTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetRepoSyncTaskResult.cc b/cr/src/model/GetRepoSyncTaskResult.cc index 6353ab486..c82f91971 100644 --- a/cr/src/model/GetRepoSyncTaskResult.cc +++ b/cr/src/model/GetRepoSyncTaskResult.cc @@ -35,10 +35,13 @@ GetRepoSyncTaskResult::~GetRepoSyncTaskResult() void GetRepoSyncTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoTagsRequest.cc b/cr/src/model/GetRepoTagsRequest.cc index a71f5afef..29c301d36 100644 --- a/cr/src/model/GetRepoTagsRequest.cc +++ b/cr/src/model/GetRepoTagsRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoTagsRequest::getRepoNamespace()const void GetRepoTagsRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoTagsRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoTagsRequest::getRepoName()const void GetRepoTagsRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoTagsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetRepoTagsRequest::getRegionId()const void GetRepoTagsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetRepoTagsRequest::getPageSize()const @@ -66,7 +66,7 @@ int GetRepoTagsRequest::getPageSize()const void GetRepoTagsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetRepoTagsRequest::getPage()const @@ -77,6 +77,6 @@ int GetRepoTagsRequest::getPage()const void GetRepoTagsRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } diff --git a/cr/src/model/GetRepoTagsResult.cc b/cr/src/model/GetRepoTagsResult.cc index 3bdca0cae..392c848a3 100644 --- a/cr/src/model/GetRepoTagsResult.cc +++ b/cr/src/model/GetRepoTagsResult.cc @@ -35,10 +35,13 @@ GetRepoTagsResult::~GetRepoTagsResult() void GetRepoTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoWebhookLogListRequest.cc b/cr/src/model/GetRepoWebhookLogListRequest.cc index fd8f428e0..9469bf5dc 100644 --- a/cr/src/model/GetRepoWebhookLogListRequest.cc +++ b/cr/src/model/GetRepoWebhookLogListRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoWebhookLogListRequest::getRepoNamespace()const void GetRepoWebhookLogListRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } long GetRepoWebhookLogListRequest::getWebhookId()const @@ -44,7 +44,7 @@ long GetRepoWebhookLogListRequest::getWebhookId()const void GetRepoWebhookLogListRequest::setWebhookId(long webhookId) { webhookId_ = webhookId; - setParameter("WebhookId", std::to_string(webhookId)); + setCoreParameter("WebhookId", std::to_string(webhookId)); } std::string GetRepoWebhookLogListRequest::getRepoName()const @@ -55,7 +55,7 @@ std::string GetRepoWebhookLogListRequest::getRepoName()const void GetRepoWebhookLogListRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoWebhookLogListRequest::getRegionId()const @@ -66,6 +66,6 @@ std::string GetRepoWebhookLogListRequest::getRegionId()const void GetRepoWebhookLogListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetRepoWebhookLogListResult.cc b/cr/src/model/GetRepoWebhookLogListResult.cc index c2e3cd02a..a100a88fc 100644 --- a/cr/src/model/GetRepoWebhookLogListResult.cc +++ b/cr/src/model/GetRepoWebhookLogListResult.cc @@ -35,10 +35,13 @@ GetRepoWebhookLogListResult::~GetRepoWebhookLogListResult() void GetRepoWebhookLogListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetRepoWebhookRequest.cc b/cr/src/model/GetRepoWebhookRequest.cc index 815888a4c..dcde5a3d9 100644 --- a/cr/src/model/GetRepoWebhookRequest.cc +++ b/cr/src/model/GetRepoWebhookRequest.cc @@ -33,7 +33,7 @@ std::string GetRepoWebhookRequest::getRepoNamespace()const void GetRepoWebhookRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string GetRepoWebhookRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string GetRepoWebhookRequest::getRepoName()const void GetRepoWebhookRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string GetRepoWebhookRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string GetRepoWebhookRequest::getRegionId()const void GetRepoWebhookRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetRepoWebhookResult.cc b/cr/src/model/GetRepoWebhookResult.cc index 48032aac1..8e09245fc 100644 --- a/cr/src/model/GetRepoWebhookResult.cc +++ b/cr/src/model/GetRepoWebhookResult.cc @@ -35,10 +35,13 @@ GetRepoWebhookResult::~GetRepoWebhookResult() void GetRepoWebhookResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetSearchRequest.cc b/cr/src/model/GetSearchRequest.cc index 308ef6360..5571ba121 100644 --- a/cr/src/model/GetSearchRequest.cc +++ b/cr/src/model/GetSearchRequest.cc @@ -33,7 +33,7 @@ std::string GetSearchRequest::getRegionId()const void GetSearchRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetSearchRequest::getOrigin()const @@ -44,7 +44,7 @@ std::string GetSearchRequest::getOrigin()const void GetSearchRequest::setOrigin(const std::string& origin) { origin_ = origin; - setParameter("Origin", origin); + setCoreParameter("Origin", origin); } int GetSearchRequest::getPageSize()const @@ -55,7 +55,7 @@ int GetSearchRequest::getPageSize()const void GetSearchRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetSearchRequest::getPage()const @@ -66,7 +66,7 @@ int GetSearchRequest::getPage()const void GetSearchRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string GetSearchRequest::getKeyword()const @@ -77,6 +77,6 @@ std::string GetSearchRequest::getKeyword()const void GetSearchRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } diff --git a/cr/src/model/GetSearchResult.cc b/cr/src/model/GetSearchResult.cc index ed94dcdea..45f224426 100644 --- a/cr/src/model/GetSearchResult.cc +++ b/cr/src/model/GetSearchResult.cc @@ -35,10 +35,13 @@ GetSearchResult::~GetSearchResult() void GetSearchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetSubUserListRequest.cc b/cr/src/model/GetSubUserListRequest.cc index b769ac9d7..8ce4a8304 100644 --- a/cr/src/model/GetSubUserListRequest.cc +++ b/cr/src/model/GetSubUserListRequest.cc @@ -33,6 +33,6 @@ std::string GetSubUserListRequest::getRegionId()const void GetSubUserListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetSubUserListResult.cc b/cr/src/model/GetSubUserListResult.cc index 940a3d5fd..d32a48203 100644 --- a/cr/src/model/GetSubUserListResult.cc +++ b/cr/src/model/GetSubUserListResult.cc @@ -35,10 +35,13 @@ GetSubUserListResult::~GetSubUserListResult() void GetSubUserListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetUserInfoRequest.cc b/cr/src/model/GetUserInfoRequest.cc index b1ce60831..1fa2541c9 100644 --- a/cr/src/model/GetUserInfoRequest.cc +++ b/cr/src/model/GetUserInfoRequest.cc @@ -33,6 +33,6 @@ std::string GetUserInfoRequest::getRegionId()const void GetUserInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetUserInfoResult.cc b/cr/src/model/GetUserInfoResult.cc index a2ec39ee9..f21da0503 100644 --- a/cr/src/model/GetUserInfoResult.cc +++ b/cr/src/model/GetUserInfoResult.cc @@ -35,10 +35,13 @@ GetUserInfoResult::~GetUserInfoResult() void GetUserInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetUserSourceAccountRequest.cc b/cr/src/model/GetUserSourceAccountRequest.cc index fb2c5d60f..3a6108ef5 100644 --- a/cr/src/model/GetUserSourceAccountRequest.cc +++ b/cr/src/model/GetUserSourceAccountRequest.cc @@ -33,7 +33,7 @@ std::string GetUserSourceAccountRequest::getRegionId()const void GetUserSourceAccountRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetUserSourceAccountRequest::getSourceOriginType()const @@ -44,6 +44,6 @@ std::string GetUserSourceAccountRequest::getSourceOriginType()const void GetUserSourceAccountRequest::setSourceOriginType(const std::string& sourceOriginType) { sourceOriginType_ = sourceOriginType; - setParameter("SourceOriginType", sourceOriginType); + setCoreParameter("SourceOriginType", sourceOriginType); } diff --git a/cr/src/model/GetUserSourceAccountResult.cc b/cr/src/model/GetUserSourceAccountResult.cc index 9c45be2c8..b5ab206d6 100644 --- a/cr/src/model/GetUserSourceAccountResult.cc +++ b/cr/src/model/GetUserSourceAccountResult.cc @@ -35,10 +35,13 @@ GetUserSourceAccountResult::~GetUserSourceAccountResult() void GetUserSourceAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetUserSourceRepoListRequest.cc b/cr/src/model/GetUserSourceRepoListRequest.cc index 8d5a4677b..19ac315e4 100644 --- a/cr/src/model/GetUserSourceRepoListRequest.cc +++ b/cr/src/model/GetUserSourceRepoListRequest.cc @@ -33,7 +33,7 @@ long GetUserSourceRepoListRequest::getSourceAccountId()const void GetUserSourceRepoListRequest::setSourceAccountId(long sourceAccountId) { sourceAccountId_ = sourceAccountId; - setParameter("SourceAccountId", std::to_string(sourceAccountId)); + setCoreParameter("SourceAccountId", std::to_string(sourceAccountId)); } std::string GetUserSourceRepoListRequest::getRegionId()const @@ -44,6 +44,6 @@ std::string GetUserSourceRepoListRequest::getRegionId()const void GetUserSourceRepoListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/GetUserSourceRepoListResult.cc b/cr/src/model/GetUserSourceRepoListResult.cc index 462b0001b..113bfb4e0 100644 --- a/cr/src/model/GetUserSourceRepoListResult.cc +++ b/cr/src/model/GetUserSourceRepoListResult.cc @@ -35,10 +35,13 @@ GetUserSourceRepoListResult::~GetUserSourceRepoListResult() void GetUserSourceRepoListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/GetUserSourceRepoRefListRequest.cc b/cr/src/model/GetUserSourceRepoRefListRequest.cc index 5f7f6575b..dd2befa88 100644 --- a/cr/src/model/GetUserSourceRepoRefListRequest.cc +++ b/cr/src/model/GetUserSourceRepoRefListRequest.cc @@ -33,7 +33,7 @@ long GetUserSourceRepoRefListRequest::getSourceAccountId()const void GetUserSourceRepoRefListRequest::setSourceAccountId(long sourceAccountId) { sourceAccountId_ = sourceAccountId; - setParameter("SourceAccountId", std::to_string(sourceAccountId)); + setCoreParameter("SourceAccountId", std::to_string(sourceAccountId)); } std::string GetUserSourceRepoRefListRequest::getSourceRepoName()const @@ -44,7 +44,7 @@ std::string GetUserSourceRepoRefListRequest::getSourceRepoName()const void GetUserSourceRepoRefListRequest::setSourceRepoName(const std::string& sourceRepoName) { sourceRepoName_ = sourceRepoName; - setParameter("SourceRepoName", sourceRepoName); + setCoreParameter("SourceRepoName", sourceRepoName); } std::string GetUserSourceRepoRefListRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetUserSourceRepoRefListRequest::getRegionId()const void GetUserSourceRepoRefListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetUserSourceRepoRefListRequest::getSourceRepoNamespace()const @@ -66,6 +66,6 @@ std::string GetUserSourceRepoRefListRequest::getSourceRepoNamespace()const void GetUserSourceRepoRefListRequest::setSourceRepoNamespace(const std::string& sourceRepoNamespace) { sourceRepoNamespace_ = sourceRepoNamespace; - setParameter("SourceRepoNamespace", sourceRepoNamespace); + setCoreParameter("SourceRepoNamespace", sourceRepoNamespace); } diff --git a/cr/src/model/GetUserSourceRepoRefListResult.cc b/cr/src/model/GetUserSourceRepoRefListResult.cc index f0a2bd4d9..f3e7fd398 100644 --- a/cr/src/model/GetUserSourceRepoRefListResult.cc +++ b/cr/src/model/GetUserSourceRepoRefListResult.cc @@ -35,10 +35,13 @@ GetUserSourceRepoRefListResult::~GetUserSourceRepoRefListResult() void GetUserSourceRepoRefListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/SearchRepoRequest.cc b/cr/src/model/SearchRepoRequest.cc index a14528ae6..0d67d0225 100644 --- a/cr/src/model/SearchRepoRequest.cc +++ b/cr/src/model/SearchRepoRequest.cc @@ -33,7 +33,7 @@ std::string SearchRepoRequest::getRegionId()const void SearchRepoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SearchRepoRequest::getOrigin()const @@ -44,7 +44,7 @@ std::string SearchRepoRequest::getOrigin()const void SearchRepoRequest::setOrigin(const std::string& origin) { origin_ = origin; - setParameter("Origin", origin); + setCoreParameter("Origin", origin); } int SearchRepoRequest::getPageSize()const @@ -55,7 +55,7 @@ int SearchRepoRequest::getPageSize()const void SearchRepoRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int SearchRepoRequest::getPage()const @@ -66,7 +66,7 @@ int SearchRepoRequest::getPage()const void SearchRepoRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string SearchRepoRequest::getKeyword()const @@ -77,6 +77,6 @@ std::string SearchRepoRequest::getKeyword()const void SearchRepoRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } diff --git a/cr/src/model/SearchRepoResult.cc b/cr/src/model/SearchRepoResult.cc index 516f23440..77a458de0 100644 --- a/cr/src/model/SearchRepoResult.cc +++ b/cr/src/model/SearchRepoResult.cc @@ -35,10 +35,13 @@ SearchRepoResult::~SearchRepoResult() void SearchRepoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/StartImageScanRequest.cc b/cr/src/model/StartImageScanRequest.cc index 2ec230f2a..149e05c91 100644 --- a/cr/src/model/StartImageScanRequest.cc +++ b/cr/src/model/StartImageScanRequest.cc @@ -33,7 +33,7 @@ std::string StartImageScanRequest::getRepoNamespace()const void StartImageScanRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string StartImageScanRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string StartImageScanRequest::getRepoName()const void StartImageScanRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string StartImageScanRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string StartImageScanRequest::getRegionId()const void StartImageScanRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string StartImageScanRequest::getTag()const @@ -66,6 +66,6 @@ std::string StartImageScanRequest::getTag()const void StartImageScanRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } diff --git a/cr/src/model/StartImageScanResult.cc b/cr/src/model/StartImageScanResult.cc index ad53eccda..48a6e4dff 100644 --- a/cr/src/model/StartImageScanResult.cc +++ b/cr/src/model/StartImageScanResult.cc @@ -35,10 +35,13 @@ StartImageScanResult::~StartImageScanResult() void StartImageScanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/StartRepoBuildByRuleRequest.cc b/cr/src/model/StartRepoBuildByRuleRequest.cc index 26b0a8b7c..444a62017 100644 --- a/cr/src/model/StartRepoBuildByRuleRequest.cc +++ b/cr/src/model/StartRepoBuildByRuleRequest.cc @@ -33,7 +33,7 @@ std::string StartRepoBuildByRuleRequest::getRepoNamespace()const void StartRepoBuildByRuleRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string StartRepoBuildByRuleRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string StartRepoBuildByRuleRequest::getRepoName()const void StartRepoBuildByRuleRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string StartRepoBuildByRuleRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string StartRepoBuildByRuleRequest::getRegionId()const void StartRepoBuildByRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long StartRepoBuildByRuleRequest::getBuildRuleId()const @@ -66,6 +66,6 @@ long StartRepoBuildByRuleRequest::getBuildRuleId()const void StartRepoBuildByRuleRequest::setBuildRuleId(long buildRuleId) { buildRuleId_ = buildRuleId; - setParameter("BuildRuleId", std::to_string(buildRuleId)); + setCoreParameter("BuildRuleId", std::to_string(buildRuleId)); } diff --git a/cr/src/model/StartRepoBuildByRuleResult.cc b/cr/src/model/StartRepoBuildByRuleResult.cc index 551db6bdf..dad33094f 100644 --- a/cr/src/model/StartRepoBuildByRuleResult.cc +++ b/cr/src/model/StartRepoBuildByRuleResult.cc @@ -35,10 +35,13 @@ StartRepoBuildByRuleResult::~StartRepoBuildByRuleResult() void StartRepoBuildByRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/StartRepoBuildRequest.cc b/cr/src/model/StartRepoBuildRequest.cc index 5e0dbab8f..bf900cc61 100644 --- a/cr/src/model/StartRepoBuildRequest.cc +++ b/cr/src/model/StartRepoBuildRequest.cc @@ -33,7 +33,7 @@ std::string StartRepoBuildRequest::getRepoNamespace()const void StartRepoBuildRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string StartRepoBuildRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string StartRepoBuildRequest::getRepoName()const void StartRepoBuildRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string StartRepoBuildRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string StartRepoBuildRequest::getRegionId()const void StartRepoBuildRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/StartRepoBuildResult.cc b/cr/src/model/StartRepoBuildResult.cc index a5d6953dc..fd5295b78 100644 --- a/cr/src/model/StartRepoBuildResult.cc +++ b/cr/src/model/StartRepoBuildResult.cc @@ -35,10 +35,13 @@ StartRepoBuildResult::~StartRepoBuildResult() void StartRepoBuildResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateNamespaceAuthorizationRequest.cc b/cr/src/model/UpdateNamespaceAuthorizationRequest.cc index 396ed2de2..618426a24 100644 --- a/cr/src/model/UpdateNamespaceAuthorizationRequest.cc +++ b/cr/src/model/UpdateNamespaceAuthorizationRequest.cc @@ -33,7 +33,7 @@ std::string UpdateNamespaceAuthorizationRequest::getRegionId()const void UpdateNamespaceAuthorizationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateNamespaceAuthorizationRequest::getAuthorizeId()const @@ -44,7 +44,7 @@ long UpdateNamespaceAuthorizationRequest::getAuthorizeId()const void UpdateNamespaceAuthorizationRequest::setAuthorizeId(long authorizeId) { authorizeId_ = authorizeId; - setParameter("AuthorizeId", std::to_string(authorizeId)); + setCoreParameter("AuthorizeId", std::to_string(authorizeId)); } std::string UpdateNamespaceAuthorizationRequest::get_Namespace()const @@ -55,6 +55,6 @@ std::string UpdateNamespaceAuthorizationRequest::get_Namespace()const void UpdateNamespaceAuthorizationRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } diff --git a/cr/src/model/UpdateNamespaceAuthorizationResult.cc b/cr/src/model/UpdateNamespaceAuthorizationResult.cc index 3cb65efa9..16714383d 100644 --- a/cr/src/model/UpdateNamespaceAuthorizationResult.cc +++ b/cr/src/model/UpdateNamespaceAuthorizationResult.cc @@ -35,10 +35,13 @@ UpdateNamespaceAuthorizationResult::~UpdateNamespaceAuthorizationResult() void UpdateNamespaceAuthorizationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateNamespaceRequest.cc b/cr/src/model/UpdateNamespaceRequest.cc index 4463a2f1b..47f94e970 100644 --- a/cr/src/model/UpdateNamespaceRequest.cc +++ b/cr/src/model/UpdateNamespaceRequest.cc @@ -33,7 +33,7 @@ std::string UpdateNamespaceRequest::getRegionId()const void UpdateNamespaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UpdateNamespaceRequest::get_Namespace()const @@ -44,6 +44,6 @@ std::string UpdateNamespaceRequest::get_Namespace()const void UpdateNamespaceRequest::set_Namespace(const std::string& _namespace) { _namespace_ = _namespace; - setParameter("_Namespace", _namespace); + setCoreParameter("_Namespace", _namespace); } diff --git a/cr/src/model/UpdateNamespaceResult.cc b/cr/src/model/UpdateNamespaceResult.cc index f9d9b8e8a..7a152c8a2 100644 --- a/cr/src/model/UpdateNamespaceResult.cc +++ b/cr/src/model/UpdateNamespaceResult.cc @@ -35,10 +35,13 @@ UpdateNamespaceResult::~UpdateNamespaceResult() void UpdateNamespaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateRepoAuthorizationRequest.cc b/cr/src/model/UpdateRepoAuthorizationRequest.cc index 4d390f611..5b209eacb 100644 --- a/cr/src/model/UpdateRepoAuthorizationRequest.cc +++ b/cr/src/model/UpdateRepoAuthorizationRequest.cc @@ -33,7 +33,7 @@ std::string UpdateRepoAuthorizationRequest::getRepoNamespace()const void UpdateRepoAuthorizationRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string UpdateRepoAuthorizationRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string UpdateRepoAuthorizationRequest::getRepoName()const void UpdateRepoAuthorizationRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string UpdateRepoAuthorizationRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string UpdateRepoAuthorizationRequest::getRegionId()const void UpdateRepoAuthorizationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateRepoAuthorizationRequest::getAuthorizeId()const @@ -66,6 +66,6 @@ long UpdateRepoAuthorizationRequest::getAuthorizeId()const void UpdateRepoAuthorizationRequest::setAuthorizeId(long authorizeId) { authorizeId_ = authorizeId; - setParameter("AuthorizeId", std::to_string(authorizeId)); + setCoreParameter("AuthorizeId", std::to_string(authorizeId)); } diff --git a/cr/src/model/UpdateRepoAuthorizationResult.cc b/cr/src/model/UpdateRepoAuthorizationResult.cc index 9d6a42fd6..c32c678a2 100644 --- a/cr/src/model/UpdateRepoAuthorizationResult.cc +++ b/cr/src/model/UpdateRepoAuthorizationResult.cc @@ -35,10 +35,13 @@ UpdateRepoAuthorizationResult::~UpdateRepoAuthorizationResult() void UpdateRepoAuthorizationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateRepoBuildRuleRequest.cc b/cr/src/model/UpdateRepoBuildRuleRequest.cc index ddb4edbef..1c03eb98e 100644 --- a/cr/src/model/UpdateRepoBuildRuleRequest.cc +++ b/cr/src/model/UpdateRepoBuildRuleRequest.cc @@ -33,7 +33,7 @@ std::string UpdateRepoBuildRuleRequest::getRepoNamespace()const void UpdateRepoBuildRuleRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string UpdateRepoBuildRuleRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string UpdateRepoBuildRuleRequest::getRepoName()const void UpdateRepoBuildRuleRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string UpdateRepoBuildRuleRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string UpdateRepoBuildRuleRequest::getRegionId()const void UpdateRepoBuildRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateRepoBuildRuleRequest::getBuildRuleId()const @@ -66,6 +66,6 @@ long UpdateRepoBuildRuleRequest::getBuildRuleId()const void UpdateRepoBuildRuleRequest::setBuildRuleId(long buildRuleId) { buildRuleId_ = buildRuleId; - setParameter("BuildRuleId", std::to_string(buildRuleId)); + setCoreParameter("BuildRuleId", std::to_string(buildRuleId)); } diff --git a/cr/src/model/UpdateRepoBuildRuleResult.cc b/cr/src/model/UpdateRepoBuildRuleResult.cc index 0b1609b6c..461a9928a 100644 --- a/cr/src/model/UpdateRepoBuildRuleResult.cc +++ b/cr/src/model/UpdateRepoBuildRuleResult.cc @@ -35,10 +35,13 @@ UpdateRepoBuildRuleResult::~UpdateRepoBuildRuleResult() void UpdateRepoBuildRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateRepoRequest.cc b/cr/src/model/UpdateRepoRequest.cc index 4c65e2e3a..589802901 100644 --- a/cr/src/model/UpdateRepoRequest.cc +++ b/cr/src/model/UpdateRepoRequest.cc @@ -33,7 +33,7 @@ std::string UpdateRepoRequest::getRepoNamespace()const void UpdateRepoRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string UpdateRepoRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string UpdateRepoRequest::getRepoName()const void UpdateRepoRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string UpdateRepoRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string UpdateRepoRequest::getRegionId()const void UpdateRepoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/UpdateRepoResult.cc b/cr/src/model/UpdateRepoResult.cc index 9f4a62306..678ea689a 100644 --- a/cr/src/model/UpdateRepoResult.cc +++ b/cr/src/model/UpdateRepoResult.cc @@ -35,10 +35,13 @@ UpdateRepoResult::~UpdateRepoResult() void UpdateRepoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateRepoSourceRepoRequest.cc b/cr/src/model/UpdateRepoSourceRepoRequest.cc index 710f35e2a..6e23fb934 100644 --- a/cr/src/model/UpdateRepoSourceRepoRequest.cc +++ b/cr/src/model/UpdateRepoSourceRepoRequest.cc @@ -33,7 +33,7 @@ std::string UpdateRepoSourceRepoRequest::getRepoNamespace()const void UpdateRepoSourceRepoRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } std::string UpdateRepoSourceRepoRequest::getRepoName()const @@ -44,7 +44,7 @@ std::string UpdateRepoSourceRepoRequest::getRepoName()const void UpdateRepoSourceRepoRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string UpdateRepoSourceRepoRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string UpdateRepoSourceRepoRequest::getRegionId()const void UpdateRepoSourceRepoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/UpdateRepoSourceRepoResult.cc b/cr/src/model/UpdateRepoSourceRepoResult.cc index 46e98e841..1b613b99a 100644 --- a/cr/src/model/UpdateRepoSourceRepoResult.cc +++ b/cr/src/model/UpdateRepoSourceRepoResult.cc @@ -35,10 +35,13 @@ UpdateRepoSourceRepoResult::~UpdateRepoSourceRepoResult() void UpdateRepoSourceRepoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateRepoWebhookRequest.cc b/cr/src/model/UpdateRepoWebhookRequest.cc index e92bce7ac..31832d2b1 100644 --- a/cr/src/model/UpdateRepoWebhookRequest.cc +++ b/cr/src/model/UpdateRepoWebhookRequest.cc @@ -33,7 +33,7 @@ std::string UpdateRepoWebhookRequest::getRepoNamespace()const void UpdateRepoWebhookRequest::setRepoNamespace(const std::string& repoNamespace) { repoNamespace_ = repoNamespace; - setParameter("RepoNamespace", repoNamespace); + setCoreParameter("RepoNamespace", repoNamespace); } long UpdateRepoWebhookRequest::getWebhookId()const @@ -44,7 +44,7 @@ long UpdateRepoWebhookRequest::getWebhookId()const void UpdateRepoWebhookRequest::setWebhookId(long webhookId) { webhookId_ = webhookId; - setParameter("WebhookId", std::to_string(webhookId)); + setCoreParameter("WebhookId", std::to_string(webhookId)); } std::string UpdateRepoWebhookRequest::getRepoName()const @@ -55,7 +55,7 @@ std::string UpdateRepoWebhookRequest::getRepoName()const void UpdateRepoWebhookRequest::setRepoName(const std::string& repoName) { repoName_ = repoName; - setParameter("RepoName", repoName); + setCoreParameter("RepoName", repoName); } std::string UpdateRepoWebhookRequest::getRegionId()const @@ -66,6 +66,6 @@ std::string UpdateRepoWebhookRequest::getRegionId()const void UpdateRepoWebhookRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/UpdateRepoWebhookResult.cc b/cr/src/model/UpdateRepoWebhookResult.cc index dfb8a7d06..9e849465b 100644 --- a/cr/src/model/UpdateRepoWebhookResult.cc +++ b/cr/src/model/UpdateRepoWebhookResult.cc @@ -35,10 +35,13 @@ UpdateRepoWebhookResult::~UpdateRepoWebhookResult() void UpdateRepoWebhookResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cr/src/model/UpdateUserInfoRequest.cc b/cr/src/model/UpdateUserInfoRequest.cc index 2a9bde314..501ebcfe2 100644 --- a/cr/src/model/UpdateUserInfoRequest.cc +++ b/cr/src/model/UpdateUserInfoRequest.cc @@ -33,6 +33,6 @@ std::string UpdateUserInfoRequest::getRegionId()const void UpdateUserInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/cr/src/model/UpdateUserInfoResult.cc b/cr/src/model/UpdateUserInfoResult.cc index 5f2474514..2f4009f6e 100644 --- a/cr/src/model/UpdateUserInfoResult.cc +++ b/cr/src/model/UpdateUserInfoResult.cc @@ -35,10 +35,13 @@ UpdateUserInfoResult::~UpdateUserInfoResult() void UpdateUserInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/crm/CMakeLists.txt b/crm/CMakeLists.txt index e54029453..ebba0eaea 100644 --- a/crm/CMakeLists.txt +++ b/crm/CMakeLists.txt @@ -33,14 +33,14 @@ set(crm_public_header_model include/alibabacloud/crm/model/GetAliyunPkByAliyunIdResult.h include/alibabacloud/crm/model/QueryCustomerLabelRequest.h include/alibabacloud/crm/model/QueryCustomerLabelResult.h - include/alibabacloud/crm/model/RemoveIdentityCertifiedForBidUserRequest.h - include/alibabacloud/crm/model/RemoveIdentityCertifiedForBidUserResult.h include/alibabacloud/crm/model/QueryBidUserCertifiedInfoRequest.h include/alibabacloud/crm/model/QueryBidUserCertifiedInfoResult.h - include/alibabacloud/crm/model/AddLabelForBidRequest.h - include/alibabacloud/crm/model/AddLabelForBidResult.h include/alibabacloud/crm/model/BatchGetAliyunIdByAliyunPkRequest.h include/alibabacloud/crm/model/BatchGetAliyunIdByAliyunPkResult.h + include/alibabacloud/crm/model/RemoveIdentityCertifiedForBidUserRequest.h + include/alibabacloud/crm/model/RemoveIdentityCertifiedForBidUserResult.h + include/alibabacloud/crm/model/AddLabelForBidRequest.h + include/alibabacloud/crm/model/AddLabelForBidResult.h include/alibabacloud/crm/model/DeleteLabelRequest.h include/alibabacloud/crm/model/DeleteLabelResult.h include/alibabacloud/crm/model/AddLabelRequest.h @@ -60,14 +60,14 @@ set(crm_src src/model/GetAliyunPkByAliyunIdResult.cc src/model/QueryCustomerLabelRequest.cc src/model/QueryCustomerLabelResult.cc - src/model/RemoveIdentityCertifiedForBidUserRequest.cc - src/model/RemoveIdentityCertifiedForBidUserResult.cc src/model/QueryBidUserCertifiedInfoRequest.cc src/model/QueryBidUserCertifiedInfoResult.cc - src/model/AddLabelForBidRequest.cc - src/model/AddLabelForBidResult.cc src/model/BatchGetAliyunIdByAliyunPkRequest.cc src/model/BatchGetAliyunIdByAliyunPkResult.cc + src/model/RemoveIdentityCertifiedForBidUserRequest.cc + src/model/RemoveIdentityCertifiedForBidUserResult.cc + src/model/AddLabelForBidRequest.cc + src/model/AddLabelForBidResult.cc src/model/DeleteLabelRequest.cc src/model/DeleteLabelResult.cc src/model/AddLabelRequest.cc diff --git a/crm/include/alibabacloud/crm/CrmClient.h b/crm/include/alibabacloud/crm/CrmClient.h index dcafdd978..134f34c77 100644 --- a/crm/include/alibabacloud/crm/CrmClient.h +++ b/crm/include/alibabacloud/crm/CrmClient.h @@ -34,14 +34,14 @@ #include "model/GetAliyunPkByAliyunIdResult.h" #include "model/QueryCustomerLabelRequest.h" #include "model/QueryCustomerLabelResult.h" -#include "model/RemoveIdentityCertifiedForBidUserRequest.h" -#include "model/RemoveIdentityCertifiedForBidUserResult.h" #include "model/QueryBidUserCertifiedInfoRequest.h" #include "model/QueryBidUserCertifiedInfoResult.h" -#include "model/AddLabelForBidRequest.h" -#include "model/AddLabelForBidResult.h" #include "model/BatchGetAliyunIdByAliyunPkRequest.h" #include "model/BatchGetAliyunIdByAliyunPkResult.h" +#include "model/RemoveIdentityCertifiedForBidUserRequest.h" +#include "model/RemoveIdentityCertifiedForBidUserResult.h" +#include "model/AddLabelForBidRequest.h" +#include "model/AddLabelForBidResult.h" #include "model/DeleteLabelRequest.h" #include "model/DeleteLabelResult.h" #include "model/AddLabelRequest.h" @@ -73,18 +73,18 @@ namespace AlibabaCloud typedef Outcome QueryCustomerLabelOutcome; typedef std::future QueryCustomerLabelOutcomeCallable; typedef std::function&)> QueryCustomerLabelAsyncHandler; - typedef Outcome RemoveIdentityCertifiedForBidUserOutcome; - typedef std::future RemoveIdentityCertifiedForBidUserOutcomeCallable; - typedef std::function&)> RemoveIdentityCertifiedForBidUserAsyncHandler; typedef Outcome QueryBidUserCertifiedInfoOutcome; typedef std::future QueryBidUserCertifiedInfoOutcomeCallable; typedef std::function&)> QueryBidUserCertifiedInfoAsyncHandler; - typedef Outcome AddLabelForBidOutcome; - typedef std::future AddLabelForBidOutcomeCallable; - typedef std::function&)> AddLabelForBidAsyncHandler; typedef Outcome BatchGetAliyunIdByAliyunPkOutcome; typedef std::future BatchGetAliyunIdByAliyunPkOutcomeCallable; typedef std::function&)> BatchGetAliyunIdByAliyunPkAsyncHandler; + typedef Outcome RemoveIdentityCertifiedForBidUserOutcome; + typedef std::future RemoveIdentityCertifiedForBidUserOutcomeCallable; + typedef std::function&)> RemoveIdentityCertifiedForBidUserAsyncHandler; + typedef Outcome AddLabelForBidOutcome; + typedef std::future AddLabelForBidOutcomeCallable; + typedef std::function&)> AddLabelForBidAsyncHandler; typedef Outcome DeleteLabelOutcome; typedef std::future DeleteLabelOutcomeCallable; typedef std::function&)> DeleteLabelAsyncHandler; @@ -114,18 +114,18 @@ namespace AlibabaCloud QueryCustomerLabelOutcome queryCustomerLabel(const Model::QueryCustomerLabelRequest &request)const; void queryCustomerLabelAsync(const Model::QueryCustomerLabelRequest& request, const QueryCustomerLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCustomerLabelOutcomeCallable queryCustomerLabelCallable(const Model::QueryCustomerLabelRequest& request) const; - RemoveIdentityCertifiedForBidUserOutcome removeIdentityCertifiedForBidUser(const Model::RemoveIdentityCertifiedForBidUserRequest &request)const; - void removeIdentityCertifiedForBidUserAsync(const Model::RemoveIdentityCertifiedForBidUserRequest& request, const RemoveIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveIdentityCertifiedForBidUserOutcomeCallable removeIdentityCertifiedForBidUserCallable(const Model::RemoveIdentityCertifiedForBidUserRequest& request) const; QueryBidUserCertifiedInfoOutcome queryBidUserCertifiedInfo(const Model::QueryBidUserCertifiedInfoRequest &request)const; void queryBidUserCertifiedInfoAsync(const Model::QueryBidUserCertifiedInfoRequest& request, const QueryBidUserCertifiedInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryBidUserCertifiedInfoOutcomeCallable queryBidUserCertifiedInfoCallable(const Model::QueryBidUserCertifiedInfoRequest& request) const; - AddLabelForBidOutcome addLabelForBid(const Model::AddLabelForBidRequest &request)const; - void addLabelForBidAsync(const Model::AddLabelForBidRequest& request, const AddLabelForBidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddLabelForBidOutcomeCallable addLabelForBidCallable(const Model::AddLabelForBidRequest& request) const; BatchGetAliyunIdByAliyunPkOutcome batchGetAliyunIdByAliyunPk(const Model::BatchGetAliyunIdByAliyunPkRequest &request)const; void batchGetAliyunIdByAliyunPkAsync(const Model::BatchGetAliyunIdByAliyunPkRequest& request, const BatchGetAliyunIdByAliyunPkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchGetAliyunIdByAliyunPkOutcomeCallable batchGetAliyunIdByAliyunPkCallable(const Model::BatchGetAliyunIdByAliyunPkRequest& request) const; + RemoveIdentityCertifiedForBidUserOutcome removeIdentityCertifiedForBidUser(const Model::RemoveIdentityCertifiedForBidUserRequest &request)const; + void removeIdentityCertifiedForBidUserAsync(const Model::RemoveIdentityCertifiedForBidUserRequest& request, const RemoveIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveIdentityCertifiedForBidUserOutcomeCallable removeIdentityCertifiedForBidUserCallable(const Model::RemoveIdentityCertifiedForBidUserRequest& request) const; + AddLabelForBidOutcome addLabelForBid(const Model::AddLabelForBidRequest &request)const; + void addLabelForBidAsync(const Model::AddLabelForBidRequest& request, const AddLabelForBidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddLabelForBidOutcomeCallable addLabelForBidCallable(const Model::AddLabelForBidRequest& request) const; DeleteLabelOutcome deleteLabel(const Model::DeleteLabelRequest &request)const; void deleteLabelAsync(const Model::DeleteLabelRequest& request, const DeleteLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLabelOutcomeCallable deleteLabelCallable(const Model::DeleteLabelRequest& request) const; diff --git a/crm/src/CrmClient.cc b/crm/src/CrmClient.cc index 15d30efbb..4a64b03de 100644 --- a/crm/src/CrmClient.cc +++ b/crm/src/CrmClient.cc @@ -267,42 +267,6 @@ CrmClient::QueryCustomerLabelOutcomeCallable CrmClient::queryCustomerLabelCallab return task->get_future(); } -CrmClient::RemoveIdentityCertifiedForBidUserOutcome CrmClient::removeIdentityCertifiedForBidUser(const RemoveIdentityCertifiedForBidUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveIdentityCertifiedForBidUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveIdentityCertifiedForBidUserOutcome(RemoveIdentityCertifiedForBidUserResult(outcome.result())); - else - return RemoveIdentityCertifiedForBidUserOutcome(outcome.error()); -} - -void CrmClient::removeIdentityCertifiedForBidUserAsync(const RemoveIdentityCertifiedForBidUserRequest& request, const RemoveIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeIdentityCertifiedForBidUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CrmClient::RemoveIdentityCertifiedForBidUserOutcomeCallable CrmClient::removeIdentityCertifiedForBidUserCallable(const RemoveIdentityCertifiedForBidUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeIdentityCertifiedForBidUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CrmClient::QueryBidUserCertifiedInfoOutcome CrmClient::queryBidUserCertifiedInfo(const QueryBidUserCertifiedInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,42 +303,6 @@ CrmClient::QueryBidUserCertifiedInfoOutcomeCallable CrmClient::queryBidUserCerti return task->get_future(); } -CrmClient::AddLabelForBidOutcome CrmClient::addLabelForBid(const AddLabelForBidRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddLabelForBidOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddLabelForBidOutcome(AddLabelForBidResult(outcome.result())); - else - return AddLabelForBidOutcome(outcome.error()); -} - -void CrmClient::addLabelForBidAsync(const AddLabelForBidRequest& request, const AddLabelForBidAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addLabelForBid(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CrmClient::AddLabelForBidOutcomeCallable CrmClient::addLabelForBidCallable(const AddLabelForBidRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addLabelForBid(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CrmClient::BatchGetAliyunIdByAliyunPkOutcome CrmClient::batchGetAliyunIdByAliyunPk(const BatchGetAliyunIdByAliyunPkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +339,78 @@ CrmClient::BatchGetAliyunIdByAliyunPkOutcomeCallable CrmClient::batchGetAliyunId return task->get_future(); } +CrmClient::RemoveIdentityCertifiedForBidUserOutcome CrmClient::removeIdentityCertifiedForBidUser(const RemoveIdentityCertifiedForBidUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveIdentityCertifiedForBidUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveIdentityCertifiedForBidUserOutcome(RemoveIdentityCertifiedForBidUserResult(outcome.result())); + else + return RemoveIdentityCertifiedForBidUserOutcome(outcome.error()); +} + +void CrmClient::removeIdentityCertifiedForBidUserAsync(const RemoveIdentityCertifiedForBidUserRequest& request, const RemoveIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeIdentityCertifiedForBidUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CrmClient::RemoveIdentityCertifiedForBidUserOutcomeCallable CrmClient::removeIdentityCertifiedForBidUserCallable(const RemoveIdentityCertifiedForBidUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeIdentityCertifiedForBidUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CrmClient::AddLabelForBidOutcome CrmClient::addLabelForBid(const AddLabelForBidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddLabelForBidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddLabelForBidOutcome(AddLabelForBidResult(outcome.result())); + else + return AddLabelForBidOutcome(outcome.error()); +} + +void CrmClient::addLabelForBidAsync(const AddLabelForBidRequest& request, const AddLabelForBidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addLabelForBid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CrmClient::AddLabelForBidOutcomeCallable CrmClient::addLabelForBidCallable(const AddLabelForBidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addLabelForBid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CrmClient::DeleteLabelOutcome CrmClient::deleteLabel(const DeleteLabelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/crm/src/model/AddIdentityCertifiedForBidUserRequest.cc b/crm/src/model/AddIdentityCertifiedForBidUserRequest.cc index 05c1e9ec5..8f98bbb70 100644 --- a/crm/src/model/AddIdentityCertifiedForBidUserRequest.cc +++ b/crm/src/model/AddIdentityCertifiedForBidUserRequest.cc @@ -33,7 +33,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getBidType()const void AddIdentityCertifiedForBidUserRequest::setBidType(const std::string& bidType) { bidType_ = bidType; - setParameter("BidType", bidType); + setCoreParameter("BidType", bidType); } std::string AddIdentityCertifiedForBidUserRequest::getLicenseNumber()const @@ -44,7 +44,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getLicenseNumber()const void AddIdentityCertifiedForBidUserRequest::setLicenseNumber(const std::string& licenseNumber) { licenseNumber_ = licenseNumber; - setParameter("LicenseNumber", licenseNumber); + setCoreParameter("LicenseNumber", licenseNumber); } std::string AddIdentityCertifiedForBidUserRequest::getLicenseType()const @@ -55,7 +55,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getLicenseType()const void AddIdentityCertifiedForBidUserRequest::setLicenseType(const std::string& licenseType) { licenseType_ = licenseType; - setParameter("LicenseType", licenseType); + setCoreParameter("LicenseType", licenseType); } std::string AddIdentityCertifiedForBidUserRequest::getPhone()const @@ -66,7 +66,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getPhone()const void AddIdentityCertifiedForBidUserRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); + setCoreParameter("Phone", phone); } std::string AddIdentityCertifiedForBidUserRequest::getName()const @@ -77,7 +77,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getName()const void AddIdentityCertifiedForBidUserRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddIdentityCertifiedForBidUserRequest::getPK()const @@ -88,7 +88,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getPK()const void AddIdentityCertifiedForBidUserRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } bool AddIdentityCertifiedForBidUserRequest::getIsEnterprise()const @@ -99,6 +99,6 @@ bool AddIdentityCertifiedForBidUserRequest::getIsEnterprise()const void AddIdentityCertifiedForBidUserRequest::setIsEnterprise(bool isEnterprise) { isEnterprise_ = isEnterprise; - setParameter("IsEnterprise", std::to_string(isEnterprise)); + setCoreParameter("IsEnterprise", isEnterprise ? "true" : "false"); } diff --git a/crm/src/model/AddIdentityCertifiedForBidUserResult.cc b/crm/src/model/AddIdentityCertifiedForBidUserResult.cc index bce9ec7d3..78a99e260 100644 --- a/crm/src/model/AddIdentityCertifiedForBidUserResult.cc +++ b/crm/src/model/AddIdentityCertifiedForBidUserResult.cc @@ -35,10 +35,13 @@ AddIdentityCertifiedForBidUserResult::~AddIdentityCertifiedForBidUserResult() void AddIdentityCertifiedForBidUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/crm/src/model/AddLabelForBidRequest.cc b/crm/src/model/AddLabelForBidRequest.cc index a4da00a8f..6920dd6ac 100644 --- a/crm/src/model/AddLabelForBidRequest.cc +++ b/crm/src/model/AddLabelForBidRequest.cc @@ -33,7 +33,7 @@ std::string AddLabelForBidRequest::getLabelSeries()const void AddLabelForBidRequest::setLabelSeries(const std::string& labelSeries) { labelSeries_ = labelSeries; - setParameter("LabelSeries", labelSeries); + setCoreParameter("LabelSeries", labelSeries); } std::string AddLabelForBidRequest::getEndTime()const @@ -44,7 +44,7 @@ std::string AddLabelForBidRequest::getEndTime()const void AddLabelForBidRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string AddLabelForBidRequest::getPK()const @@ -55,7 +55,7 @@ std::string AddLabelForBidRequest::getPK()const void AddLabelForBidRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } std::string AddLabelForBidRequest::getLabel()const @@ -66,6 +66,6 @@ std::string AddLabelForBidRequest::getLabel()const void AddLabelForBidRequest::setLabel(const std::string& label) { label_ = label; - setParameter("Label", label); + setCoreParameter("Label", label); } diff --git a/crm/src/model/AddLabelForBidResult.cc b/crm/src/model/AddLabelForBidResult.cc index 138480fae..7c36c98b5 100644 --- a/crm/src/model/AddLabelForBidResult.cc +++ b/crm/src/model/AddLabelForBidResult.cc @@ -35,10 +35,13 @@ AddLabelForBidResult::~AddLabelForBidResult() void AddLabelForBidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/crm/src/model/AddLabelRequest.cc b/crm/src/model/AddLabelRequest.cc index f49a55594..aaa8d31d6 100644 --- a/crm/src/model/AddLabelRequest.cc +++ b/crm/src/model/AddLabelRequest.cc @@ -33,7 +33,7 @@ std::string AddLabelRequest::getLabelSeries()const void AddLabelRequest::setLabelSeries(const std::string& labelSeries) { labelSeries_ = labelSeries; - setParameter("LabelSeries", labelSeries); + setCoreParameter("LabelSeries", labelSeries); } std::string AddLabelRequest::getOrganization()const @@ -44,7 +44,7 @@ std::string AddLabelRequest::getOrganization()const void AddLabelRequest::setOrganization(const std::string& organization) { organization_ = organization; - setParameter("Organization", organization); + setCoreParameter("Organization", organization); } std::string AddLabelRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string AddLabelRequest::getEndTime()const void AddLabelRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string AddLabelRequest::getPK()const @@ -66,7 +66,7 @@ std::string AddLabelRequest::getPK()const void AddLabelRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } std::string AddLabelRequest::getLabelName()const @@ -77,7 +77,7 @@ std::string AddLabelRequest::getLabelName()const void AddLabelRequest::setLabelName(const std::string& labelName) { labelName_ = labelName; - setParameter("LabelName", labelName); + setCoreParameter("LabelName", labelName); } std::string AddLabelRequest::getUserName()const @@ -88,6 +88,6 @@ std::string AddLabelRequest::getUserName()const void AddLabelRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/crm/src/model/AddLabelResult.cc b/crm/src/model/AddLabelResult.cc index 6f16b8db4..b231585ee 100644 --- a/crm/src/model/AddLabelResult.cc +++ b/crm/src/model/AddLabelResult.cc @@ -35,10 +35,13 @@ AddLabelResult::~AddLabelResult() void AddLabelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/crm/src/model/BatchGetAliyunIdByAliyunPkRequest.cc b/crm/src/model/BatchGetAliyunIdByAliyunPkRequest.cc index 359b39671..02bd1e5c0 100644 --- a/crm/src/model/BatchGetAliyunIdByAliyunPkRequest.cc +++ b/crm/src/model/BatchGetAliyunIdByAliyunPkRequest.cc @@ -34,6 +34,6 @@ void BatchGetAliyunIdByAliyunPkRequest::setPkList(const std::vector { pkList_ = pkList; for(int i = 0; i!= pkList.size(); i++) - setParameter("PkList."+ std::to_string(i), pkList.at(i)); + setCoreParameter("PkList."+ std::to_string(i), pkList.at(i)); } diff --git a/crm/src/model/BatchGetAliyunIdByAliyunPkResult.cc b/crm/src/model/BatchGetAliyunIdByAliyunPkResult.cc index f8a79b9b5..c05fe5ea9 100644 --- a/crm/src/model/BatchGetAliyunIdByAliyunPkResult.cc +++ b/crm/src/model/BatchGetAliyunIdByAliyunPkResult.cc @@ -35,10 +35,13 @@ BatchGetAliyunIdByAliyunPkResult::~BatchGetAliyunIdByAliyunPkResult() void BatchGetAliyunIdByAliyunPkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allProfileList = value["ProfileList"]["ProfileItem"]; for (auto value : allProfileList) diff --git a/crm/src/model/CheckLabelForBidRequest.cc b/crm/src/model/CheckLabelForBidRequest.cc index 8b7e4c292..51cc9c50e 100644 --- a/crm/src/model/CheckLabelForBidRequest.cc +++ b/crm/src/model/CheckLabelForBidRequest.cc @@ -33,7 +33,7 @@ std::string CheckLabelForBidRequest::getLabelSeries()const void CheckLabelForBidRequest::setLabelSeries(const std::string& labelSeries) { labelSeries_ = labelSeries; - setParameter("LabelSeries", labelSeries); + setCoreParameter("LabelSeries", labelSeries); } std::string CheckLabelForBidRequest::getPK()const @@ -44,7 +44,7 @@ std::string CheckLabelForBidRequest::getPK()const void CheckLabelForBidRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } std::string CheckLabelForBidRequest::getLabel()const @@ -55,6 +55,6 @@ std::string CheckLabelForBidRequest::getLabel()const void CheckLabelForBidRequest::setLabel(const std::string& label) { label_ = label; - setParameter("Label", label); + setCoreParameter("Label", label); } diff --git a/crm/src/model/CheckLabelForBidResult.cc b/crm/src/model/CheckLabelForBidResult.cc index eddec2178..c835ad9bf 100644 --- a/crm/src/model/CheckLabelForBidResult.cc +++ b/crm/src/model/CheckLabelForBidResult.cc @@ -35,10 +35,13 @@ CheckLabelForBidResult::~CheckLabelForBidResult() void CheckLabelForBidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString() == "true"; diff --git a/crm/src/model/CheckLabelRequest.cc b/crm/src/model/CheckLabelRequest.cc index a3cadcde2..9dde51ae2 100644 --- a/crm/src/model/CheckLabelRequest.cc +++ b/crm/src/model/CheckLabelRequest.cc @@ -33,7 +33,7 @@ std::string CheckLabelRequest::getLabelSeries()const void CheckLabelRequest::setLabelSeries(const std::string& labelSeries) { labelSeries_ = labelSeries; - setParameter("LabelSeries", labelSeries); + setCoreParameter("LabelSeries", labelSeries); } std::string CheckLabelRequest::getPK()const @@ -44,7 +44,7 @@ std::string CheckLabelRequest::getPK()const void CheckLabelRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } std::string CheckLabelRequest::getLabelName()const @@ -55,6 +55,6 @@ std::string CheckLabelRequest::getLabelName()const void CheckLabelRequest::setLabelName(const std::string& labelName) { labelName_ = labelName; - setParameter("LabelName", labelName); + setCoreParameter("LabelName", labelName); } diff --git a/crm/src/model/CheckLabelResult.cc b/crm/src/model/CheckLabelResult.cc index 2c86cfede..8b954138c 100644 --- a/crm/src/model/CheckLabelResult.cc +++ b/crm/src/model/CheckLabelResult.cc @@ -35,10 +35,13 @@ CheckLabelResult::~CheckLabelResult() void CheckLabelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString() == "true"; diff --git a/crm/src/model/DeleteLabelForBidRequest.cc b/crm/src/model/DeleteLabelForBidRequest.cc index cd87816d9..c0b40c641 100644 --- a/crm/src/model/DeleteLabelForBidRequest.cc +++ b/crm/src/model/DeleteLabelForBidRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLabelForBidRequest::getLabelSeries()const void DeleteLabelForBidRequest::setLabelSeries(const std::string& labelSeries) { labelSeries_ = labelSeries; - setParameter("LabelSeries", labelSeries); + setCoreParameter("LabelSeries", labelSeries); } std::string DeleteLabelForBidRequest::getPK()const @@ -44,7 +44,7 @@ std::string DeleteLabelForBidRequest::getPK()const void DeleteLabelForBidRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } std::string DeleteLabelForBidRequest::getLabel()const @@ -55,6 +55,6 @@ std::string DeleteLabelForBidRequest::getLabel()const void DeleteLabelForBidRequest::setLabel(const std::string& label) { label_ = label; - setParameter("Label", label); + setCoreParameter("Label", label); } diff --git a/crm/src/model/DeleteLabelForBidResult.cc b/crm/src/model/DeleteLabelForBidResult.cc index 2225f69d5..d725f571a 100644 --- a/crm/src/model/DeleteLabelForBidResult.cc +++ b/crm/src/model/DeleteLabelForBidResult.cc @@ -35,10 +35,13 @@ DeleteLabelForBidResult::~DeleteLabelForBidResult() void DeleteLabelForBidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/crm/src/model/DeleteLabelRequest.cc b/crm/src/model/DeleteLabelRequest.cc index 4ae99a506..c55f40f21 100644 --- a/crm/src/model/DeleteLabelRequest.cc +++ b/crm/src/model/DeleteLabelRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLabelRequest::getLabelSeries()const void DeleteLabelRequest::setLabelSeries(const std::string& labelSeries) { labelSeries_ = labelSeries; - setParameter("LabelSeries", labelSeries); + setCoreParameter("LabelSeries", labelSeries); } std::string DeleteLabelRequest::getOrganization()const @@ -44,7 +44,7 @@ std::string DeleteLabelRequest::getOrganization()const void DeleteLabelRequest::setOrganization(const std::string& organization) { organization_ = organization; - setParameter("Organization", organization); + setCoreParameter("Organization", organization); } std::string DeleteLabelRequest::getPK()const @@ -55,7 +55,7 @@ std::string DeleteLabelRequest::getPK()const void DeleteLabelRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } std::string DeleteLabelRequest::getLabelName()const @@ -66,7 +66,7 @@ std::string DeleteLabelRequest::getLabelName()const void DeleteLabelRequest::setLabelName(const std::string& labelName) { labelName_ = labelName; - setParameter("LabelName", labelName); + setCoreParameter("LabelName", labelName); } std::string DeleteLabelRequest::getUserName()const @@ -77,6 +77,6 @@ std::string DeleteLabelRequest::getUserName()const void DeleteLabelRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/crm/src/model/DeleteLabelResult.cc b/crm/src/model/DeleteLabelResult.cc index 25e939208..e0a7bd748 100644 --- a/crm/src/model/DeleteLabelResult.cc +++ b/crm/src/model/DeleteLabelResult.cc @@ -35,10 +35,13 @@ DeleteLabelResult::~DeleteLabelResult() void DeleteLabelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/crm/src/model/GetAliyunPkByAliyunIdRequest.cc b/crm/src/model/GetAliyunPkByAliyunIdRequest.cc index a5ff28ac6..6b61fffe9 100644 --- a/crm/src/model/GetAliyunPkByAliyunIdRequest.cc +++ b/crm/src/model/GetAliyunPkByAliyunIdRequest.cc @@ -33,6 +33,6 @@ std::string GetAliyunPkByAliyunIdRequest::getAliyunId()const void GetAliyunPkByAliyunIdRequest::setAliyunId(const std::string& aliyunId) { aliyunId_ = aliyunId; - setParameter("AliyunId", aliyunId); + setCoreParameter("AliyunId", aliyunId); } diff --git a/crm/src/model/GetAliyunPkByAliyunIdResult.cc b/crm/src/model/GetAliyunPkByAliyunIdResult.cc index 6dd16c4b1..b28d3115e 100644 --- a/crm/src/model/GetAliyunPkByAliyunIdResult.cc +++ b/crm/src/model/GetAliyunPkByAliyunIdResult.cc @@ -35,10 +35,13 @@ GetAliyunPkByAliyunIdResult::~GetAliyunPkByAliyunIdResult() void GetAliyunPkByAliyunIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AliyunPk"].isNull()) aliyunPk_ = value["AliyunPk"].asString(); diff --git a/crm/src/model/QueryBidUserCertifiedInfoRequest.cc b/crm/src/model/QueryBidUserCertifiedInfoRequest.cc index 0d8883849..7c1ad2d3b 100644 --- a/crm/src/model/QueryBidUserCertifiedInfoRequest.cc +++ b/crm/src/model/QueryBidUserCertifiedInfoRequest.cc @@ -33,7 +33,7 @@ std::string QueryBidUserCertifiedInfoRequest::getBidType()const void QueryBidUserCertifiedInfoRequest::setBidType(const std::string& bidType) { bidType_ = bidType; - setParameter("BidType", bidType); + setCoreParameter("BidType", bidType); } std::string QueryBidUserCertifiedInfoRequest::getPK()const @@ -44,6 +44,6 @@ std::string QueryBidUserCertifiedInfoRequest::getPK()const void QueryBidUserCertifiedInfoRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } diff --git a/crm/src/model/QueryBidUserCertifiedInfoResult.cc b/crm/src/model/QueryBidUserCertifiedInfoResult.cc index cd8d5202a..599943cd7 100644 --- a/crm/src/model/QueryBidUserCertifiedInfoResult.cc +++ b/crm/src/model/QueryBidUserCertifiedInfoResult.cc @@ -35,10 +35,13 @@ QueryBidUserCertifiedInfoResult::~QueryBidUserCertifiedInfoResult() void QueryBidUserCertifiedInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/crm/src/model/QueryCustomerLabelRequest.cc b/crm/src/model/QueryCustomerLabelRequest.cc index b77e08261..fcca37a62 100644 --- a/crm/src/model/QueryCustomerLabelRequest.cc +++ b/crm/src/model/QueryCustomerLabelRequest.cc @@ -33,6 +33,6 @@ std::string QueryCustomerLabelRequest::getLabelSeries()const void QueryCustomerLabelRequest::setLabelSeries(const std::string& labelSeries) { labelSeries_ = labelSeries; - setParameter("LabelSeries", labelSeries); + setCoreParameter("LabelSeries", labelSeries); } diff --git a/crm/src/model/QueryCustomerLabelResult.cc b/crm/src/model/QueryCustomerLabelResult.cc index 253a34f2d..70cd382bd 100644 --- a/crm/src/model/QueryCustomerLabelResult.cc +++ b/crm/src/model/QueryCustomerLabelResult.cc @@ -35,10 +35,13 @@ QueryCustomerLabelResult::~QueryCustomerLabelResult() void QueryCustomerLabelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["CustomerLabel"]; for (auto value : allData) diff --git a/crm/src/model/RemoveIdentityCertifiedForBidUserRequest.cc b/crm/src/model/RemoveIdentityCertifiedForBidUserRequest.cc index 01cf85fc0..25a366f1b 100644 --- a/crm/src/model/RemoveIdentityCertifiedForBidUserRequest.cc +++ b/crm/src/model/RemoveIdentityCertifiedForBidUserRequest.cc @@ -33,7 +33,7 @@ std::string RemoveIdentityCertifiedForBidUserRequest::getBidType()const void RemoveIdentityCertifiedForBidUserRequest::setBidType(const std::string& bidType) { bidType_ = bidType; - setParameter("BidType", bidType); + setCoreParameter("BidType", bidType); } std::string RemoveIdentityCertifiedForBidUserRequest::getPK()const @@ -44,6 +44,6 @@ std::string RemoveIdentityCertifiedForBidUserRequest::getPK()const void RemoveIdentityCertifiedForBidUserRequest::setPK(const std::string& pK) { pK_ = pK; - setParameter("PK", pK); + setCoreParameter("PK", pK); } diff --git a/crm/src/model/RemoveIdentityCertifiedForBidUserResult.cc b/crm/src/model/RemoveIdentityCertifiedForBidUserResult.cc index 640dbdbf5..4e17698ee 100644 --- a/crm/src/model/RemoveIdentityCertifiedForBidUserResult.cc +++ b/crm/src/model/RemoveIdentityCertifiedForBidUserResult.cc @@ -35,10 +35,13 @@ RemoveIdentityCertifiedForBidUserResult::~RemoveIdentityCertifiedForBidUserResul void RemoveIdentityCertifiedForBidUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/cs/CMakeLists.txt b/cs/CMakeLists.txt index 5b88b008e..d79249ab7 100644 --- a/cs/CMakeLists.txt +++ b/cs/CMakeLists.txt @@ -27,22 +27,30 @@ set(cs_public_header_model include/alibabacloud/cs/model/RevokeClusterTokenResult.h include/alibabacloud/cs/model/AttachInstancesRequest.h include/alibabacloud/cs/model/AttachInstancesResult.h + include/alibabacloud/cs/model/CreateClusterByResourcesGroupRequest.h + include/alibabacloud/cs/model/CreateClusterByResourcesGroupResult.h include/alibabacloud/cs/model/CheckAliyunCSServiceRoleRequest.h include/alibabacloud/cs/model/CheckAliyunCSServiceRoleResult.h include/alibabacloud/cs/model/DescribeClusterCertsRequest.h include/alibabacloud/cs/model/DescribeClusterCertsResult.h + include/alibabacloud/cs/model/DescribeClusterAttachScriptsRequest.h + include/alibabacloud/cs/model/DescribeClusterAttachScriptsResult.h include/alibabacloud/cs/model/DeleteClusterRequest.h include/alibabacloud/cs/model/DeleteClusterResult.h include/alibabacloud/cs/model/DescribeClusterNodesRequest.h include/alibabacloud/cs/model/DescribeClusterNodesResult.h + include/alibabacloud/cs/model/ModifyClusterRequest.h + include/alibabacloud/cs/model/ModifyClusterResult.h include/alibabacloud/cs/model/DescribeApiVersionRequest.h include/alibabacloud/cs/model/DescribeApiVersionResult.h + include/alibabacloud/cs/model/ScaleOutClusterRequest.h + include/alibabacloud/cs/model/ScaleOutClusterResult.h include/alibabacloud/cs/model/DescribeClusterLogsRequest.h include/alibabacloud/cs/model/DescribeClusterLogsResult.h - include/alibabacloud/cs/model/DescribeClusterDetailRequest.h - include/alibabacloud/cs/model/DescribeClusterDetailResult.h include/alibabacloud/cs/model/DescribeClusterUserKubeconfigRequest.h include/alibabacloud/cs/model/DescribeClusterUserKubeconfigResult.h + include/alibabacloud/cs/model/DescribeClusterDetailRequest.h + include/alibabacloud/cs/model/DescribeClusterDetailResult.h include/alibabacloud/cs/model/ResetClusterNodeRequest.h include/alibabacloud/cs/model/ResetClusterNodeResult.h include/alibabacloud/cs/model/ScaleClusterRequest.h @@ -53,6 +61,8 @@ set(cs_public_header_model include/alibabacloud/cs/model/DownloadClusterNodeCertsResult.h include/alibabacloud/cs/model/CreateClusterRequest.h include/alibabacloud/cs/model/CreateClusterResult.h + include/alibabacloud/cs/model/DeleteClusterNodesRequest.h + include/alibabacloud/cs/model/DeleteClusterNodesResult.h include/alibabacloud/cs/model/DeleteClusterNodeRequest.h include/alibabacloud/cs/model/DeleteClusterNodeResult.h ) @@ -64,22 +74,30 @@ set(cs_src src/model/RevokeClusterTokenResult.cc src/model/AttachInstancesRequest.cc src/model/AttachInstancesResult.cc + src/model/CreateClusterByResourcesGroupRequest.cc + src/model/CreateClusterByResourcesGroupResult.cc src/model/CheckAliyunCSServiceRoleRequest.cc src/model/CheckAliyunCSServiceRoleResult.cc src/model/DescribeClusterCertsRequest.cc src/model/DescribeClusterCertsResult.cc + src/model/DescribeClusterAttachScriptsRequest.cc + src/model/DescribeClusterAttachScriptsResult.cc src/model/DeleteClusterRequest.cc src/model/DeleteClusterResult.cc src/model/DescribeClusterNodesRequest.cc src/model/DescribeClusterNodesResult.cc + src/model/ModifyClusterRequest.cc + src/model/ModifyClusterResult.cc src/model/DescribeApiVersionRequest.cc src/model/DescribeApiVersionResult.cc + src/model/ScaleOutClusterRequest.cc + src/model/ScaleOutClusterResult.cc src/model/DescribeClusterLogsRequest.cc src/model/DescribeClusterLogsResult.cc - src/model/DescribeClusterDetailRequest.cc - src/model/DescribeClusterDetailResult.cc src/model/DescribeClusterUserKubeconfigRequest.cc src/model/DescribeClusterUserKubeconfigResult.cc + src/model/DescribeClusterDetailRequest.cc + src/model/DescribeClusterDetailResult.cc src/model/ResetClusterNodeRequest.cc src/model/ResetClusterNodeResult.cc src/model/ScaleClusterRequest.cc @@ -90,6 +108,8 @@ set(cs_src src/model/DownloadClusterNodeCertsResult.cc src/model/CreateClusterRequest.cc src/model/CreateClusterResult.cc + src/model/DeleteClusterNodesRequest.cc + src/model/DeleteClusterNodesResult.cc src/model/DeleteClusterNodeRequest.cc src/model/DeleteClusterNodeResult.cc ) diff --git a/cs/include/alibabacloud/cs/CSClient.h b/cs/include/alibabacloud/cs/CSClient.h index 91e5fcd24..d944e2c38 100644 --- a/cs/include/alibabacloud/cs/CSClient.h +++ b/cs/include/alibabacloud/cs/CSClient.h @@ -28,22 +28,30 @@ #include "model/RevokeClusterTokenResult.h" #include "model/AttachInstancesRequest.h" #include "model/AttachInstancesResult.h" +#include "model/CreateClusterByResourcesGroupRequest.h" +#include "model/CreateClusterByResourcesGroupResult.h" #include "model/CheckAliyunCSServiceRoleRequest.h" #include "model/CheckAliyunCSServiceRoleResult.h" #include "model/DescribeClusterCertsRequest.h" #include "model/DescribeClusterCertsResult.h" +#include "model/DescribeClusterAttachScriptsRequest.h" +#include "model/DescribeClusterAttachScriptsResult.h" #include "model/DeleteClusterRequest.h" #include "model/DeleteClusterResult.h" #include "model/DescribeClusterNodesRequest.h" #include "model/DescribeClusterNodesResult.h" +#include "model/ModifyClusterRequest.h" +#include "model/ModifyClusterResult.h" #include "model/DescribeApiVersionRequest.h" #include "model/DescribeApiVersionResult.h" +#include "model/ScaleOutClusterRequest.h" +#include "model/ScaleOutClusterResult.h" #include "model/DescribeClusterLogsRequest.h" #include "model/DescribeClusterLogsResult.h" -#include "model/DescribeClusterDetailRequest.h" -#include "model/DescribeClusterDetailResult.h" #include "model/DescribeClusterUserKubeconfigRequest.h" #include "model/DescribeClusterUserKubeconfigResult.h" +#include "model/DescribeClusterDetailRequest.h" +#include "model/DescribeClusterDetailResult.h" #include "model/ResetClusterNodeRequest.h" #include "model/ResetClusterNodeResult.h" #include "model/ScaleClusterRequest.h" @@ -54,6 +62,8 @@ #include "model/DownloadClusterNodeCertsResult.h" #include "model/CreateClusterRequest.h" #include "model/CreateClusterResult.h" +#include "model/DeleteClusterNodesRequest.h" +#include "model/DeleteClusterNodesResult.h" #include "model/DeleteClusterNodeRequest.h" #include "model/DeleteClusterNodeResult.h" @@ -74,30 +84,42 @@ namespace AlibabaCloud typedef Outcome AttachInstancesOutcome; typedef std::future AttachInstancesOutcomeCallable; typedef std::function&)> AttachInstancesAsyncHandler; + typedef Outcome CreateClusterByResourcesGroupOutcome; + typedef std::future CreateClusterByResourcesGroupOutcomeCallable; + typedef std::function&)> CreateClusterByResourcesGroupAsyncHandler; typedef Outcome CheckAliyunCSServiceRoleOutcome; typedef std::future CheckAliyunCSServiceRoleOutcomeCallable; typedef std::function&)> CheckAliyunCSServiceRoleAsyncHandler; typedef Outcome DescribeClusterCertsOutcome; typedef std::future DescribeClusterCertsOutcomeCallable; typedef std::function&)> DescribeClusterCertsAsyncHandler; + typedef Outcome DescribeClusterAttachScriptsOutcome; + typedef std::future DescribeClusterAttachScriptsOutcomeCallable; + typedef std::function&)> DescribeClusterAttachScriptsAsyncHandler; typedef Outcome DeleteClusterOutcome; typedef std::future DeleteClusterOutcomeCallable; typedef std::function&)> DeleteClusterAsyncHandler; typedef Outcome DescribeClusterNodesOutcome; typedef std::future DescribeClusterNodesOutcomeCallable; typedef std::function&)> DescribeClusterNodesAsyncHandler; + typedef Outcome ModifyClusterOutcome; + typedef std::future ModifyClusterOutcomeCallable; + typedef std::function&)> ModifyClusterAsyncHandler; typedef Outcome DescribeApiVersionOutcome; typedef std::future DescribeApiVersionOutcomeCallable; typedef std::function&)> DescribeApiVersionAsyncHandler; + typedef Outcome ScaleOutClusterOutcome; + typedef std::future ScaleOutClusterOutcomeCallable; + typedef std::function&)> ScaleOutClusterAsyncHandler; typedef Outcome DescribeClusterLogsOutcome; typedef std::future DescribeClusterLogsOutcomeCallable; typedef std::function&)> DescribeClusterLogsAsyncHandler; - typedef Outcome DescribeClusterDetailOutcome; - typedef std::future DescribeClusterDetailOutcomeCallable; - typedef std::function&)> DescribeClusterDetailAsyncHandler; typedef Outcome DescribeClusterUserKubeconfigOutcome; typedef std::future DescribeClusterUserKubeconfigOutcomeCallable; typedef std::function&)> DescribeClusterUserKubeconfigAsyncHandler; + typedef Outcome DescribeClusterDetailOutcome; + typedef std::future DescribeClusterDetailOutcomeCallable; + typedef std::function&)> DescribeClusterDetailAsyncHandler; typedef Outcome ResetClusterNodeOutcome; typedef std::future ResetClusterNodeOutcomeCallable; typedef std::function&)> ResetClusterNodeAsyncHandler; @@ -113,6 +135,9 @@ namespace AlibabaCloud typedef Outcome CreateClusterOutcome; typedef std::future CreateClusterOutcomeCallable; typedef std::function&)> CreateClusterAsyncHandler; + typedef Outcome DeleteClusterNodesOutcome; + typedef std::future DeleteClusterNodesOutcomeCallable; + typedef std::function&)> DeleteClusterNodesAsyncHandler; typedef Outcome DeleteClusterNodeOutcome; typedef std::future DeleteClusterNodeOutcomeCallable; typedef std::function&)> DeleteClusterNodeAsyncHandler; @@ -130,30 +155,42 @@ namespace AlibabaCloud AttachInstancesOutcome attachInstances(const Model::AttachInstancesRequest &request)const; void attachInstancesAsync(const Model::AttachInstancesRequest& request, const AttachInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachInstancesOutcomeCallable attachInstancesCallable(const Model::AttachInstancesRequest& request) const; + CreateClusterByResourcesGroupOutcome createClusterByResourcesGroup(const Model::CreateClusterByResourcesGroupRequest &request)const; + void createClusterByResourcesGroupAsync(const Model::CreateClusterByResourcesGroupRequest& request, const CreateClusterByResourcesGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterByResourcesGroupOutcomeCallable createClusterByResourcesGroupCallable(const Model::CreateClusterByResourcesGroupRequest& request) const; CheckAliyunCSServiceRoleOutcome checkAliyunCSServiceRole(const Model::CheckAliyunCSServiceRoleRequest &request)const; void checkAliyunCSServiceRoleAsync(const Model::CheckAliyunCSServiceRoleRequest& request, const CheckAliyunCSServiceRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckAliyunCSServiceRoleOutcomeCallable checkAliyunCSServiceRoleCallable(const Model::CheckAliyunCSServiceRoleRequest& request) const; DescribeClusterCertsOutcome describeClusterCerts(const Model::DescribeClusterCertsRequest &request)const; void describeClusterCertsAsync(const Model::DescribeClusterCertsRequest& request, const DescribeClusterCertsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterCertsOutcomeCallable describeClusterCertsCallable(const Model::DescribeClusterCertsRequest& request) const; + DescribeClusterAttachScriptsOutcome describeClusterAttachScripts(const Model::DescribeClusterAttachScriptsRequest &request)const; + void describeClusterAttachScriptsAsync(const Model::DescribeClusterAttachScriptsRequest& request, const DescribeClusterAttachScriptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterAttachScriptsOutcomeCallable describeClusterAttachScriptsCallable(const Model::DescribeClusterAttachScriptsRequest& 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; DescribeClusterNodesOutcome describeClusterNodes(const Model::DescribeClusterNodesRequest &request)const; void describeClusterNodesAsync(const Model::DescribeClusterNodesRequest& request, const DescribeClusterNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterNodesOutcomeCallable describeClusterNodesCallable(const Model::DescribeClusterNodesRequest& request) const; + ModifyClusterOutcome modifyCluster(const Model::ModifyClusterRequest &request)const; + void modifyClusterAsync(const Model::ModifyClusterRequest& request, const ModifyClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterOutcomeCallable modifyClusterCallable(const Model::ModifyClusterRequest& request) const; DescribeApiVersionOutcome describeApiVersion(const Model::DescribeApiVersionRequest &request)const; void describeApiVersionAsync(const Model::DescribeApiVersionRequest& request, const DescribeApiVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeApiVersionOutcomeCallable describeApiVersionCallable(const Model::DescribeApiVersionRequest& request) const; + ScaleOutClusterOutcome scaleOutCluster(const Model::ScaleOutClusterRequest &request)const; + void scaleOutClusterAsync(const Model::ScaleOutClusterRequest& request, const ScaleOutClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ScaleOutClusterOutcomeCallable scaleOutClusterCallable(const Model::ScaleOutClusterRequest& request) const; DescribeClusterLogsOutcome describeClusterLogs(const Model::DescribeClusterLogsRequest &request)const; void describeClusterLogsAsync(const Model::DescribeClusterLogsRequest& request, const DescribeClusterLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterLogsOutcomeCallable describeClusterLogsCallable(const Model::DescribeClusterLogsRequest& request) const; - DescribeClusterDetailOutcome describeClusterDetail(const Model::DescribeClusterDetailRequest &request)const; - void describeClusterDetailAsync(const Model::DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterDetailOutcomeCallable describeClusterDetailCallable(const Model::DescribeClusterDetailRequest& request) const; DescribeClusterUserKubeconfigOutcome describeClusterUserKubeconfig(const Model::DescribeClusterUserKubeconfigRequest &request)const; void describeClusterUserKubeconfigAsync(const Model::DescribeClusterUserKubeconfigRequest& request, const DescribeClusterUserKubeconfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterUserKubeconfigOutcomeCallable describeClusterUserKubeconfigCallable(const Model::DescribeClusterUserKubeconfigRequest& request) const; + DescribeClusterDetailOutcome describeClusterDetail(const Model::DescribeClusterDetailRequest &request)const; + void describeClusterDetailAsync(const Model::DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterDetailOutcomeCallable describeClusterDetailCallable(const Model::DescribeClusterDetailRequest& request) const; ResetClusterNodeOutcome resetClusterNode(const Model::ResetClusterNodeRequest &request)const; void resetClusterNodeAsync(const Model::ResetClusterNodeRequest& request, const ResetClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetClusterNodeOutcomeCallable resetClusterNodeCallable(const Model::ResetClusterNodeRequest& request) const; @@ -169,6 +206,9 @@ namespace AlibabaCloud 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; + DeleteClusterNodesOutcome deleteClusterNodes(const Model::DeleteClusterNodesRequest &request)const; + void deleteClusterNodesAsync(const Model::DeleteClusterNodesRequest& request, const DeleteClusterNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClusterNodesOutcomeCallable deleteClusterNodesCallable(const Model::DeleteClusterNodesRequest& request) const; DeleteClusterNodeOutcome deleteClusterNode(const Model::DeleteClusterNodeRequest &request)const; void deleteClusterNodeAsync(const Model::DeleteClusterNodeRequest& request, const DeleteClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteClusterNodeOutcomeCallable deleteClusterNodeCallable(const Model::DeleteClusterNodeRequest& request) const; diff --git a/cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupRequest.h b/cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupRequest.h new file mode 100644 index 000000000..4956461ad --- /dev/null +++ b/cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupRequest.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_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPREQUEST_H_ +#define ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT CreateClusterByResourcesGroupRequest : public RoaServiceRequest + { + + public: + CreateClusterByResourcesGroupRequest(); + ~CreateClusterByResourcesGroupRequest(); + + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + + private: + std::string resourceGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPREQUEST_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupResult.h b/cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupResult.h new file mode 100644 index 000000000..454ac4016 --- /dev/null +++ b/cs/include/alibabacloud/cs/model/CreateClusterByResourcesGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPRESULT_H_ +#define ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT CreateClusterByResourcesGroupResult : public ServiceResult + { + public: + + + CreateClusterByResourcesGroupResult(); + explicit CreateClusterByResourcesGroupResult(const std::string &payload); + ~CreateClusterByResourcesGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_CREATECLUSTERBYRESOURCESGROUPRESULT_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/DeleteClusterNodesRequest.h b/cs/include/alibabacloud/cs/model/DeleteClusterNodesRequest.h new file mode 100644 index 000000000..427875094 --- /dev/null +++ b/cs/include/alibabacloud/cs/model/DeleteClusterNodesRequest.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_CS_MODEL_DELETECLUSTERNODESREQUEST_H_ +#define ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT DeleteClusterNodesRequest : public RoaServiceRequest + { + + public: + DeleteClusterNodesRequest(); + ~DeleteClusterNodesRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESREQUEST_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/DeleteClusterNodesResult.h b/cs/include/alibabacloud/cs/model/DeleteClusterNodesResult.h new file mode 100644 index 000000000..366411b5c --- /dev/null +++ b/cs/include/alibabacloud/cs/model/DeleteClusterNodesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESRESULT_H_ +#define ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT DeleteClusterNodesResult : public ServiceResult + { + public: + + + DeleteClusterNodesResult(); + explicit DeleteClusterNodesResult(const std::string &payload); + ~DeleteClusterNodesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_DELETECLUSTERNODESRESULT_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsRequest.h b/cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsRequest.h new file mode 100644 index 000000000..31002f15b --- /dev/null +++ b/cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsRequest.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_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSREQUEST_H_ +#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT DescribeClusterAttachScriptsRequest : public RoaServiceRequest + { + + public: + DescribeClusterAttachScriptsRequest(); + ~DescribeClusterAttachScriptsRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSREQUEST_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsResult.h b/cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsResult.h new file mode 100644 index 000000000..3eca2a036 --- /dev/null +++ b/cs/include/alibabacloud/cs/model/DescribeClusterAttachScriptsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSRESULT_H_ +#define ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT DescribeClusterAttachScriptsResult : public ServiceResult + { + public: + + + DescribeClusterAttachScriptsResult(); + explicit DescribeClusterAttachScriptsResult(const std::string &payload); + ~DescribeClusterAttachScriptsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_DESCRIBECLUSTERATTACHSCRIPTSRESULT_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/DescribeClusterUserKubeconfigRequest.h b/cs/include/alibabacloud/cs/model/DescribeClusterUserKubeconfigRequest.h index a4465b9f0..e1bbeea56 100644 --- a/cs/include/alibabacloud/cs/model/DescribeClusterUserKubeconfigRequest.h +++ b/cs/include/alibabacloud/cs/model/DescribeClusterUserKubeconfigRequest.h @@ -35,10 +35,13 @@ namespace AlibabaCloud DescribeClusterUserKubeconfigRequest(); ~DescribeClusterUserKubeconfigRequest(); + bool getPrivateIpAddress()const; + void setPrivateIpAddress(bool privateIpAddress); std::string getClusterId()const; void setClusterId(const std::string& clusterId); private: + bool privateIpAddress_; std::string clusterId_; }; diff --git a/cs/include/alibabacloud/cs/model/ModifyClusterRequest.h b/cs/include/alibabacloud/cs/model/ModifyClusterRequest.h new file mode 100644 index 000000000..c466b0b49 --- /dev/null +++ b/cs/include/alibabacloud/cs/model/ModifyClusterRequest.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_CS_MODEL_MODIFYCLUSTERREQUEST_H_ +#define ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT ModifyClusterRequest : public RoaServiceRequest + { + + public: + ModifyClusterRequest(); + ~ModifyClusterRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/ModifyClusterResult.h b/cs/include/alibabacloud/cs/model/ModifyClusterResult.h new file mode 100644 index 000000000..5a30f91f7 --- /dev/null +++ b/cs/include/alibabacloud/cs/model/ModifyClusterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERRESULT_H_ +#define ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT ModifyClusterResult : public ServiceResult + { + public: + + + ModifyClusterResult(); + explicit ModifyClusterResult(const std::string &payload); + ~ModifyClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_MODIFYCLUSTERRESULT_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/ScaleOutClusterRequest.h b/cs/include/alibabacloud/cs/model/ScaleOutClusterRequest.h new file mode 100644 index 000000000..876da6447 --- /dev/null +++ b/cs/include/alibabacloud/cs/model/ScaleOutClusterRequest.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_CS_MODEL_SCALEOUTCLUSTERREQUEST_H_ +#define ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT ScaleOutClusterRequest : public RoaServiceRequest + { + + public: + ScaleOutClusterRequest(); + ~ScaleOutClusterRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/cs/include/alibabacloud/cs/model/ScaleOutClusterResult.h b/cs/include/alibabacloud/cs/model/ScaleOutClusterResult.h new file mode 100644 index 000000000..a2b2331e2 --- /dev/null +++ b/cs/include/alibabacloud/cs/model/ScaleOutClusterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERRESULT_H_ +#define ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CS + { + namespace Model + { + class ALIBABACLOUD_CS_EXPORT ScaleOutClusterResult : public ServiceResult + { + public: + + + ScaleOutClusterResult(); + explicit ScaleOutClusterResult(const std::string &payload); + ~ScaleOutClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CS_MODEL_SCALEOUTCLUSTERRESULT_H_ \ No newline at end of file diff --git a/cs/src/CSClient.cc b/cs/src/CSClient.cc index eb710aaf4..9ee8e2a1b 100644 --- a/cs/src/CSClient.cc +++ b/cs/src/CSClient.cc @@ -159,6 +159,42 @@ CSClient::AttachInstancesOutcomeCallable CSClient::attachInstancesCallable(const return task->get_future(); } +CSClient::CreateClusterByResourcesGroupOutcome CSClient::createClusterByResourcesGroup(const CreateClusterByResourcesGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterByResourcesGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterByResourcesGroupOutcome(CreateClusterByResourcesGroupResult(outcome.result())); + else + return CreateClusterByResourcesGroupOutcome(outcome.error()); +} + +void CSClient::createClusterByResourcesGroupAsync(const CreateClusterByResourcesGroupRequest& request, const CreateClusterByResourcesGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createClusterByResourcesGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSClient::CreateClusterByResourcesGroupOutcomeCallable CSClient::createClusterByResourcesGroupCallable(const CreateClusterByResourcesGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createClusterByResourcesGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSClient::CheckAliyunCSServiceRoleOutcome CSClient::checkAliyunCSServiceRole(const CheckAliyunCSServiceRoleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +267,42 @@ CSClient::DescribeClusterCertsOutcomeCallable CSClient::describeClusterCertsCall return task->get_future(); } +CSClient::DescribeClusterAttachScriptsOutcome CSClient::describeClusterAttachScripts(const DescribeClusterAttachScriptsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterAttachScriptsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterAttachScriptsOutcome(DescribeClusterAttachScriptsResult(outcome.result())); + else + return DescribeClusterAttachScriptsOutcome(outcome.error()); +} + +void CSClient::describeClusterAttachScriptsAsync(const DescribeClusterAttachScriptsRequest& request, const DescribeClusterAttachScriptsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterAttachScripts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSClient::DescribeClusterAttachScriptsOutcomeCallable CSClient::describeClusterAttachScriptsCallable(const DescribeClusterAttachScriptsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterAttachScripts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSClient::DeleteClusterOutcome CSClient::deleteCluster(const DeleteClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +375,42 @@ CSClient::DescribeClusterNodesOutcomeCallable CSClient::describeClusterNodesCall return task->get_future(); } +CSClient::ModifyClusterOutcome CSClient::modifyCluster(const ModifyClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterOutcome(ModifyClusterResult(outcome.result())); + else + return ModifyClusterOutcome(outcome.error()); +} + +void CSClient::modifyClusterAsync(const ModifyClusterRequest& request, const ModifyClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSClient::ModifyClusterOutcomeCallable CSClient::modifyClusterCallable(const ModifyClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSClient::DescribeApiVersionOutcome CSClient::describeApiVersion(const DescribeApiVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +447,42 @@ CSClient::DescribeApiVersionOutcomeCallable CSClient::describeApiVersionCallable return task->get_future(); } +CSClient::ScaleOutClusterOutcome CSClient::scaleOutCluster(const ScaleOutClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ScaleOutClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ScaleOutClusterOutcome(ScaleOutClusterResult(outcome.result())); + else + return ScaleOutClusterOutcome(outcome.error()); +} + +void CSClient::scaleOutClusterAsync(const ScaleOutClusterRequest& request, const ScaleOutClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, scaleOutCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSClient::ScaleOutClusterOutcomeCallable CSClient::scaleOutClusterCallable(const ScaleOutClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->scaleOutCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSClient::DescribeClusterLogsOutcome CSClient::describeClusterLogs(const DescribeClusterLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,42 +519,6 @@ CSClient::DescribeClusterLogsOutcomeCallable CSClient::describeClusterLogsCallab return task->get_future(); } -CSClient::DescribeClusterDetailOutcome CSClient::describeClusterDetail(const DescribeClusterDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterDetailOutcome(DescribeClusterDetailResult(outcome.result())); - else - return DescribeClusterDetailOutcome(outcome.error()); -} - -void CSClient::describeClusterDetailAsync(const DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CSClient::DescribeClusterDetailOutcomeCallable CSClient::describeClusterDetailCallable(const DescribeClusterDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CSClient::DescribeClusterUserKubeconfigOutcome CSClient::describeClusterUserKubeconfig(const DescribeClusterUserKubeconfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +555,42 @@ CSClient::DescribeClusterUserKubeconfigOutcomeCallable CSClient::describeCluster return task->get_future(); } +CSClient::DescribeClusterDetailOutcome CSClient::describeClusterDetail(const DescribeClusterDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterDetailOutcome(DescribeClusterDetailResult(outcome.result())); + else + return DescribeClusterDetailOutcome(outcome.error()); +} + +void CSClient::describeClusterDetailAsync(const DescribeClusterDetailRequest& request, const DescribeClusterDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSClient::DescribeClusterDetailOutcomeCallable CSClient::describeClusterDetailCallable(const DescribeClusterDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSClient::ResetClusterNodeOutcome CSClient::resetClusterNode(const ResetClusterNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +771,42 @@ CSClient::CreateClusterOutcomeCallable CSClient::createClusterCallable(const Cre return task->get_future(); } +CSClient::DeleteClusterNodesOutcome CSClient::deleteClusterNodes(const DeleteClusterNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClusterNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClusterNodesOutcome(DeleteClusterNodesResult(outcome.result())); + else + return DeleteClusterNodesOutcome(outcome.error()); +} + +void CSClient::deleteClusterNodesAsync(const DeleteClusterNodesRequest& request, const DeleteClusterNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteClusterNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSClient::DeleteClusterNodesOutcomeCallable CSClient::deleteClusterNodesCallable(const DeleteClusterNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteClusterNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSClient::DeleteClusterNodeOutcome CSClient::deleteClusterNode(const DeleteClusterNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cs/src/model/AttachInstancesRequest.cc b/cs/src/model/AttachInstancesRequest.cc index 1683d046b..d3ccee125 100644 --- a/cs/src/model/AttachInstancesRequest.cc +++ b/cs/src/model/AttachInstancesRequest.cc @@ -33,6 +33,6 @@ std::string AttachInstancesRequest::getClusterId()const void AttachInstancesRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/AttachInstancesResult.cc b/cs/src/model/AttachInstancesResult.cc index 866ec16ba..a4b1202d0 100644 --- a/cs/src/model/AttachInstancesResult.cc +++ b/cs/src/model/AttachInstancesResult.cc @@ -35,10 +35,13 @@ AttachInstancesResult::~AttachInstancesResult() void AttachInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/CreateClusterByResourcesGroupRequest.cc b/cs/src/model/CreateClusterByResourcesGroupRequest.cc new file mode 100644 index 000000000..4a3ae83ee --- /dev/null +++ b/cs/src/model/CreateClusterByResourcesGroupRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CS::Model::CreateClusterByResourcesGroupRequest; + +CreateClusterByResourcesGroupRequest::CreateClusterByResourcesGroupRequest() : + RoaServiceRequest("cs", "2015-12-15") +{} + +CreateClusterByResourcesGroupRequest::~CreateClusterByResourcesGroupRequest() +{} + +std::string CreateClusterByResourcesGroupRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateClusterByResourcesGroupRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + diff --git a/cs/src/model/CreateClusterByResourcesGroupResult.cc b/cs/src/model/CreateClusterByResourcesGroupResult.cc new file mode 100644 index 000000000..bdfba1114 --- /dev/null +++ b/cs/src/model/CreateClusterByResourcesGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CS; +using namespace AlibabaCloud::CS::Model; + +CreateClusterByResourcesGroupResult::CreateClusterByResourcesGroupResult() : + ServiceResult() +{} + +CreateClusterByResourcesGroupResult::CreateClusterByResourcesGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateClusterByResourcesGroupResult::~CreateClusterByResourcesGroupResult() +{} + +void CreateClusterByResourcesGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cs/src/model/CreateClusterResult.cc b/cs/src/model/CreateClusterResult.cc index 6bfa53311..33fab085c 100644 --- a/cs/src/model/CreateClusterResult.cc +++ b/cs/src/model/CreateClusterResult.cc @@ -35,10 +35,13 @@ CreateClusterResult::~CreateClusterResult() void CreateClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DeleteClusterNodesRequest.cc b/cs/src/model/DeleteClusterNodesRequest.cc new file mode 100644 index 000000000..5213bd40d --- /dev/null +++ b/cs/src/model/DeleteClusterNodesRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CS::Model::DeleteClusterNodesRequest; + +DeleteClusterNodesRequest::DeleteClusterNodesRequest() : + RoaServiceRequest("cs", "2015-12-15") +{} + +DeleteClusterNodesRequest::~DeleteClusterNodesRequest() +{} + +std::string DeleteClusterNodesRequest::getClusterId()const +{ + return clusterId_; +} + +void DeleteClusterNodesRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + diff --git a/cs/src/model/DeleteClusterNodesResult.cc b/cs/src/model/DeleteClusterNodesResult.cc new file mode 100644 index 000000000..e201a0274 --- /dev/null +++ b/cs/src/model/DeleteClusterNodesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CS; +using namespace AlibabaCloud::CS::Model; + +DeleteClusterNodesResult::DeleteClusterNodesResult() : + ServiceResult() +{} + +DeleteClusterNodesResult::DeleteClusterNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteClusterNodesResult::~DeleteClusterNodesResult() +{} + +void DeleteClusterNodesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cs/src/model/DeleteClusterRequest.cc b/cs/src/model/DeleteClusterRequest.cc index de1f1524e..dc8280da9 100644 --- a/cs/src/model/DeleteClusterRequest.cc +++ b/cs/src/model/DeleteClusterRequest.cc @@ -33,6 +33,6 @@ std::string DeleteClusterRequest::getClusterId()const void DeleteClusterRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/DeleteClusterResult.cc b/cs/src/model/DeleteClusterResult.cc index 07eb191b2..b8b6de989 100644 --- a/cs/src/model/DeleteClusterResult.cc +++ b/cs/src/model/DeleteClusterResult.cc @@ -35,10 +35,13 @@ DeleteClusterResult::~DeleteClusterResult() void DeleteClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DescribeApiVersionResult.cc b/cs/src/model/DescribeApiVersionResult.cc index 2d130d663..29afb47a7 100644 --- a/cs/src/model/DescribeApiVersionResult.cc +++ b/cs/src/model/DescribeApiVersionResult.cc @@ -35,10 +35,13 @@ DescribeApiVersionResult::~DescribeApiVersionResult() void DescribeApiVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DescribeClusterAttachScriptsRequest.cc b/cs/src/model/DescribeClusterAttachScriptsRequest.cc new file mode 100644 index 000000000..49ea21e71 --- /dev/null +++ b/cs/src/model/DescribeClusterAttachScriptsRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CS::Model::DescribeClusterAttachScriptsRequest; + +DescribeClusterAttachScriptsRequest::DescribeClusterAttachScriptsRequest() : + RoaServiceRequest("cs", "2015-12-15") +{} + +DescribeClusterAttachScriptsRequest::~DescribeClusterAttachScriptsRequest() +{} + +std::string DescribeClusterAttachScriptsRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeClusterAttachScriptsRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + diff --git a/cs/src/model/DescribeClusterAttachScriptsResult.cc b/cs/src/model/DescribeClusterAttachScriptsResult.cc new file mode 100644 index 000000000..b6cb2d262 --- /dev/null +++ b/cs/src/model/DescribeClusterAttachScriptsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CS; +using namespace AlibabaCloud::CS::Model; + +DescribeClusterAttachScriptsResult::DescribeClusterAttachScriptsResult() : + ServiceResult() +{} + +DescribeClusterAttachScriptsResult::DescribeClusterAttachScriptsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClusterAttachScriptsResult::~DescribeClusterAttachScriptsResult() +{} + +void DescribeClusterAttachScriptsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cs/src/model/DescribeClusterCertsRequest.cc b/cs/src/model/DescribeClusterCertsRequest.cc index 4c7bb1d18..94ca40308 100644 --- a/cs/src/model/DescribeClusterCertsRequest.cc +++ b/cs/src/model/DescribeClusterCertsRequest.cc @@ -33,6 +33,6 @@ std::string DescribeClusterCertsRequest::getClusterId()const void DescribeClusterCertsRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/DescribeClusterCertsResult.cc b/cs/src/model/DescribeClusterCertsResult.cc index f797ff697..26cc3d0dc 100644 --- a/cs/src/model/DescribeClusterCertsResult.cc +++ b/cs/src/model/DescribeClusterCertsResult.cc @@ -35,10 +35,13 @@ DescribeClusterCertsResult::~DescribeClusterCertsResult() void DescribeClusterCertsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DescribeClusterDetailRequest.cc b/cs/src/model/DescribeClusterDetailRequest.cc index c3b9785c6..6e779d2a9 100644 --- a/cs/src/model/DescribeClusterDetailRequest.cc +++ b/cs/src/model/DescribeClusterDetailRequest.cc @@ -33,6 +33,6 @@ std::string DescribeClusterDetailRequest::getClusterId()const void DescribeClusterDetailRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/DescribeClusterDetailResult.cc b/cs/src/model/DescribeClusterDetailResult.cc index 730e95510..29720367b 100644 --- a/cs/src/model/DescribeClusterDetailResult.cc +++ b/cs/src/model/DescribeClusterDetailResult.cc @@ -35,10 +35,13 @@ DescribeClusterDetailResult::~DescribeClusterDetailResult() void DescribeClusterDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DescribeClusterEndpointsRequest.cc b/cs/src/model/DescribeClusterEndpointsRequest.cc index 31c138798..889b48080 100644 --- a/cs/src/model/DescribeClusterEndpointsRequest.cc +++ b/cs/src/model/DescribeClusterEndpointsRequest.cc @@ -33,6 +33,6 @@ std::string DescribeClusterEndpointsRequest::getClusterId()const void DescribeClusterEndpointsRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/DescribeClusterEndpointsResult.cc b/cs/src/model/DescribeClusterEndpointsResult.cc index 4542ef5c0..55afe101a 100644 --- a/cs/src/model/DescribeClusterEndpointsResult.cc +++ b/cs/src/model/DescribeClusterEndpointsResult.cc @@ -35,10 +35,13 @@ DescribeClusterEndpointsResult::~DescribeClusterEndpointsResult() void DescribeClusterEndpointsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DescribeClusterLogsRequest.cc b/cs/src/model/DescribeClusterLogsRequest.cc index 9d9f2dd05..84c8ef22a 100644 --- a/cs/src/model/DescribeClusterLogsRequest.cc +++ b/cs/src/model/DescribeClusterLogsRequest.cc @@ -33,6 +33,6 @@ std::string DescribeClusterLogsRequest::getClusterId()const void DescribeClusterLogsRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/DescribeClusterLogsResult.cc b/cs/src/model/DescribeClusterLogsResult.cc index 29dc32505..0fb5de3a5 100644 --- a/cs/src/model/DescribeClusterLogsResult.cc +++ b/cs/src/model/DescribeClusterLogsResult.cc @@ -35,10 +35,13 @@ DescribeClusterLogsResult::~DescribeClusterLogsResult() void DescribeClusterLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DescribeClusterUserKubeconfigRequest.cc b/cs/src/model/DescribeClusterUserKubeconfigRequest.cc index 3d6a32d0e..893ff8c45 100644 --- a/cs/src/model/DescribeClusterUserKubeconfigRequest.cc +++ b/cs/src/model/DescribeClusterUserKubeconfigRequest.cc @@ -25,6 +25,17 @@ DescribeClusterUserKubeconfigRequest::DescribeClusterUserKubeconfigRequest() : DescribeClusterUserKubeconfigRequest::~DescribeClusterUserKubeconfigRequest() {} +bool DescribeClusterUserKubeconfigRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void DescribeClusterUserKubeconfigRequest::setPrivateIpAddress(bool privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setCoreParameter("PrivateIpAddress", privateIpAddress ? "true" : "false"); +} + std::string DescribeClusterUserKubeconfigRequest::getClusterId()const { return clusterId_; @@ -33,6 +44,6 @@ std::string DescribeClusterUserKubeconfigRequest::getClusterId()const void DescribeClusterUserKubeconfigRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/DescribeClusterUserKubeconfigResult.cc b/cs/src/model/DescribeClusterUserKubeconfigResult.cc index b4f008bc8..8917a35c1 100644 --- a/cs/src/model/DescribeClusterUserKubeconfigResult.cc +++ b/cs/src/model/DescribeClusterUserKubeconfigResult.cc @@ -35,10 +35,13 @@ DescribeClusterUserKubeconfigResult::~DescribeClusterUserKubeconfigResult() void DescribeClusterUserKubeconfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/DescribeClustersRequest.cc b/cs/src/model/DescribeClustersRequest.cc index 41f9d51ec..595ad7fa6 100644 --- a/cs/src/model/DescribeClustersRequest.cc +++ b/cs/src/model/DescribeClustersRequest.cc @@ -33,7 +33,7 @@ std::string DescribeClustersRequest::getClusterType()const void DescribeClustersRequest::setClusterType(const std::string& clusterType) { clusterType_ = clusterType; - setParameter("ClusterType", clusterType); + setCoreParameter("ClusterType", clusterType); } std::string DescribeClustersRequest::getName()const @@ -44,6 +44,6 @@ std::string DescribeClustersRequest::getName()const void DescribeClustersRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/cs/src/model/DescribeClustersResult.cc b/cs/src/model/DescribeClustersResult.cc index 44c014b69..6cd2322a6 100644 --- a/cs/src/model/DescribeClustersResult.cc +++ b/cs/src/model/DescribeClustersResult.cc @@ -35,10 +35,13 @@ DescribeClustersResult::~DescribeClustersResult() void DescribeClustersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/ModifyClusterRequest.cc b/cs/src/model/ModifyClusterRequest.cc new file mode 100644 index 000000000..879a5bbd5 --- /dev/null +++ b/cs/src/model/ModifyClusterRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CS::Model::ModifyClusterRequest; + +ModifyClusterRequest::ModifyClusterRequest() : + RoaServiceRequest("cs", "2015-12-15") +{} + +ModifyClusterRequest::~ModifyClusterRequest() +{} + +std::string ModifyClusterRequest::getClusterId()const +{ + return clusterId_; +} + +void ModifyClusterRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + diff --git a/cs/src/model/ModifyClusterResult.cc b/cs/src/model/ModifyClusterResult.cc new file mode 100644 index 000000000..c3d719cc3 --- /dev/null +++ b/cs/src/model/ModifyClusterResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CS; +using namespace AlibabaCloud::CS::Model; + +ModifyClusterResult::ModifyClusterResult() : + ServiceResult() +{} + +ModifyClusterResult::ModifyClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyClusterResult::~ModifyClusterResult() +{} + +void ModifyClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cs/src/model/ScaleClusterRequest.cc b/cs/src/model/ScaleClusterRequest.cc index c2c466a1c..72ec7b3eb 100644 --- a/cs/src/model/ScaleClusterRequest.cc +++ b/cs/src/model/ScaleClusterRequest.cc @@ -33,6 +33,6 @@ std::string ScaleClusterRequest::getClusterId()const void ScaleClusterRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } diff --git a/cs/src/model/ScaleClusterResult.cc b/cs/src/model/ScaleClusterResult.cc index b5a2300bd..60fcc6a78 100644 --- a/cs/src/model/ScaleClusterResult.cc +++ b/cs/src/model/ScaleClusterResult.cc @@ -35,10 +35,13 @@ ScaleClusterResult::~ScaleClusterResult() void ScaleClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/cs/src/model/ScaleOutClusterRequest.cc b/cs/src/model/ScaleOutClusterRequest.cc new file mode 100644 index 000000000..64e9041d9 --- /dev/null +++ b/cs/src/model/ScaleOutClusterRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::CS::Model::ScaleOutClusterRequest; + +ScaleOutClusterRequest::ScaleOutClusterRequest() : + RoaServiceRequest("cs", "2015-12-15") +{} + +ScaleOutClusterRequest::~ScaleOutClusterRequest() +{} + +std::string ScaleOutClusterRequest::getClusterId()const +{ + return clusterId_; +} + +void ScaleOutClusterRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + diff --git a/cs/src/model/ScaleOutClusterResult.cc b/cs/src/model/ScaleOutClusterResult.cc new file mode 100644 index 000000000..36d53662d --- /dev/null +++ b/cs/src/model/ScaleOutClusterResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CS; +using namespace AlibabaCloud::CS::Model; + +ScaleOutClusterResult::ScaleOutClusterResult() : + ServiceResult() +{} + +ScaleOutClusterResult::ScaleOutClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ScaleOutClusterResult::~ScaleOutClusterResult() +{} + +void ScaleOutClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/csb/CMakeLists.txt b/csb/CMakeLists.txt index d434c3158..a0d522658 100644 --- a/csb/CMakeLists.txt +++ b/csb/CMakeLists.txt @@ -41,6 +41,8 @@ set(csb_public_header_model include/alibabacloud/csb/model/FindOrderedListResult.h include/alibabacloud/csb/model/DeleteOrderListRequest.h include/alibabacloud/csb/model/DeleteOrderListResult.h + include/alibabacloud/csb/model/ImportCredentialsRequest.h + include/alibabacloud/csb/model/ImportCredentialsResult.h include/alibabacloud/csb/model/CreateCredentialsRequest.h include/alibabacloud/csb/model/CreateCredentialsResult.h include/alibabacloud/csb/model/DeleteCasServiceRequest.h @@ -49,46 +51,46 @@ set(csb_public_header_model include/alibabacloud/csb/model/DeleteProjectListResult.h include/alibabacloud/csb/model/FindInstanceListRequest.h include/alibabacloud/csb/model/FindInstanceListResult.h - include/alibabacloud/csb/model/PublishCasServiceRequest.h - include/alibabacloud/csb/model/PublishCasServiceResult.h include/alibabacloud/csb/model/UpdateProjectListStatusRequest.h include/alibabacloud/csb/model/UpdateProjectListStatusResult.h - include/alibabacloud/csb/model/FindProjectsNameListRequest.h - include/alibabacloud/csb/model/FindProjectsNameListResult.h + include/alibabacloud/csb/model/PublishCasServiceRequest.h + include/alibabacloud/csb/model/PublishCasServiceResult.h include/alibabacloud/csb/model/ReplaceCredentialRequest.h include/alibabacloud/csb/model/ReplaceCredentialResult.h + include/alibabacloud/csb/model/FindProjectsNameListRequest.h + include/alibabacloud/csb/model/FindProjectsNameListResult.h include/alibabacloud/csb/model/GetProjectRequest.h include/alibabacloud/csb/model/GetProjectResult.h include/alibabacloud/csb/model/DeleteUnionCasServiceRequest.h include/alibabacloud/csb/model/DeleteUnionCasServiceResult.h include/alibabacloud/csb/model/CheckServiceExistRequest.h include/alibabacloud/csb/model/CheckServiceExistResult.h - include/alibabacloud/csb/model/GetInstanceRequest.h - include/alibabacloud/csb/model/GetInstanceResult.h - include/alibabacloud/csb/model/RenewCredentialsRequest.h - include/alibabacloud/csb/model/RenewCredentialsResult.h - include/alibabacloud/csb/model/GetOrderRequest.h - include/alibabacloud/csb/model/GetOrderResult.h include/alibabacloud/csb/model/UpdateOrderListRequest.h include/alibabacloud/csb/model/UpdateOrderListResult.h + include/alibabacloud/csb/model/GetInstanceRequest.h + include/alibabacloud/csb/model/GetInstanceResult.h + include/alibabacloud/csb/model/GetOrderRequest.h + include/alibabacloud/csb/model/GetOrderResult.h + include/alibabacloud/csb/model/RenewCredentialsRequest.h + include/alibabacloud/csb/model/RenewCredentialsResult.h include/alibabacloud/csb/model/DeleteCredentialsListRequest.h include/alibabacloud/csb/model/DeleteCredentialsListResult.h - include/alibabacloud/csb/model/FindServiceStatisticalDataRequest.h - include/alibabacloud/csb/model/FindServiceStatisticalDataResult.h include/alibabacloud/csb/model/CreateServiceRequest.h include/alibabacloud/csb/model/CreateServiceResult.h + include/alibabacloud/csb/model/FindServiceStatisticalDataRequest.h + include/alibabacloud/csb/model/FindServiceStatisticalDataResult.h include/alibabacloud/csb/model/FindCredentialsListRequest.h include/alibabacloud/csb/model/FindCredentialsListResult.h include/alibabacloud/csb/model/ApproveOrderListRequest.h include/alibabacloud/csb/model/ApproveOrderListResult.h - include/alibabacloud/csb/model/UpdateServiceRequest.h - include/alibabacloud/csb/model/UpdateServiceResult.h include/alibabacloud/csb/model/DeleteProjectRequest.h include/alibabacloud/csb/model/DeleteProjectResult.h - include/alibabacloud/csb/model/UpdateProjectRequest.h - include/alibabacloud/csb/model/UpdateProjectResult.h + include/alibabacloud/csb/model/UpdateServiceRequest.h + include/alibabacloud/csb/model/UpdateServiceResult.h include/alibabacloud/csb/model/FindOrderableListRequest.h include/alibabacloud/csb/model/FindOrderableListResult.h + include/alibabacloud/csb/model/UpdateProjectRequest.h + include/alibabacloud/csb/model/UpdateProjectResult.h include/alibabacloud/csb/model/FindProjectListRequest.h include/alibabacloud/csb/model/FindProjectListResult.h include/alibabacloud/csb/model/FindApprovalOrderListRequest.h @@ -97,10 +99,10 @@ set(csb_public_header_model include/alibabacloud/csb/model/UpdateServiceQPSResult.h include/alibabacloud/csb/model/UpdateOrderRequest.h include/alibabacloud/csb/model/UpdateOrderResult.h - include/alibabacloud/csb/model/FindApproveServiceListRequest.h - include/alibabacloud/csb/model/FindApproveServiceListResult.h include/alibabacloud/csb/model/GetServiceRequest.h - include/alibabacloud/csb/model/GetServiceResult.h ) + include/alibabacloud/csb/model/GetServiceResult.h + include/alibabacloud/csb/model/FindApproveServiceListRequest.h + include/alibabacloud/csb/model/FindApproveServiceListResult.h ) set(csb_src src/CSBClient.cc @@ -124,6 +126,8 @@ set(csb_src src/model/FindOrderedListResult.cc src/model/DeleteOrderListRequest.cc src/model/DeleteOrderListResult.cc + src/model/ImportCredentialsRequest.cc + src/model/ImportCredentialsResult.cc src/model/CreateCredentialsRequest.cc src/model/CreateCredentialsResult.cc src/model/DeleteCasServiceRequest.cc @@ -132,46 +136,46 @@ set(csb_src src/model/DeleteProjectListResult.cc src/model/FindInstanceListRequest.cc src/model/FindInstanceListResult.cc - src/model/PublishCasServiceRequest.cc - src/model/PublishCasServiceResult.cc src/model/UpdateProjectListStatusRequest.cc src/model/UpdateProjectListStatusResult.cc - src/model/FindProjectsNameListRequest.cc - src/model/FindProjectsNameListResult.cc + src/model/PublishCasServiceRequest.cc + src/model/PublishCasServiceResult.cc src/model/ReplaceCredentialRequest.cc src/model/ReplaceCredentialResult.cc + src/model/FindProjectsNameListRequest.cc + src/model/FindProjectsNameListResult.cc src/model/GetProjectRequest.cc src/model/GetProjectResult.cc src/model/DeleteUnionCasServiceRequest.cc src/model/DeleteUnionCasServiceResult.cc src/model/CheckServiceExistRequest.cc src/model/CheckServiceExistResult.cc - src/model/GetInstanceRequest.cc - src/model/GetInstanceResult.cc - src/model/RenewCredentialsRequest.cc - src/model/RenewCredentialsResult.cc - src/model/GetOrderRequest.cc - src/model/GetOrderResult.cc src/model/UpdateOrderListRequest.cc src/model/UpdateOrderListResult.cc + src/model/GetInstanceRequest.cc + src/model/GetInstanceResult.cc + src/model/GetOrderRequest.cc + src/model/GetOrderResult.cc + src/model/RenewCredentialsRequest.cc + src/model/RenewCredentialsResult.cc src/model/DeleteCredentialsListRequest.cc src/model/DeleteCredentialsListResult.cc - src/model/FindServiceStatisticalDataRequest.cc - src/model/FindServiceStatisticalDataResult.cc src/model/CreateServiceRequest.cc src/model/CreateServiceResult.cc + src/model/FindServiceStatisticalDataRequest.cc + src/model/FindServiceStatisticalDataResult.cc src/model/FindCredentialsListRequest.cc src/model/FindCredentialsListResult.cc src/model/ApproveOrderListRequest.cc src/model/ApproveOrderListResult.cc - src/model/UpdateServiceRequest.cc - src/model/UpdateServiceResult.cc src/model/DeleteProjectRequest.cc src/model/DeleteProjectResult.cc - src/model/UpdateProjectRequest.cc - src/model/UpdateProjectResult.cc + src/model/UpdateServiceRequest.cc + src/model/UpdateServiceResult.cc src/model/FindOrderableListRequest.cc src/model/FindOrderableListResult.cc + src/model/UpdateProjectRequest.cc + src/model/UpdateProjectResult.cc src/model/FindProjectListRequest.cc src/model/FindProjectListResult.cc src/model/FindApprovalOrderListRequest.cc @@ -180,10 +184,10 @@ set(csb_src src/model/UpdateServiceQPSResult.cc src/model/UpdateOrderRequest.cc src/model/UpdateOrderResult.cc - src/model/FindApproveServiceListRequest.cc - src/model/FindApproveServiceListResult.cc src/model/GetServiceRequest.cc - src/model/GetServiceResult.cc ) + src/model/GetServiceResult.cc + src/model/FindApproveServiceListRequest.cc + src/model/FindApproveServiceListResult.cc ) add_library(csb ${LIB_TYPE} ${csb_public_header} diff --git a/csb/include/alibabacloud/csb/CSBClient.h b/csb/include/alibabacloud/csb/CSBClient.h index cbfc76e2b..bd94e2169 100644 --- a/csb/include/alibabacloud/csb/CSBClient.h +++ b/csb/include/alibabacloud/csb/CSBClient.h @@ -42,6 +42,8 @@ #include "model/FindOrderedListResult.h" #include "model/DeleteOrderListRequest.h" #include "model/DeleteOrderListResult.h" +#include "model/ImportCredentialsRequest.h" +#include "model/ImportCredentialsResult.h" #include "model/CreateCredentialsRequest.h" #include "model/CreateCredentialsResult.h" #include "model/DeleteCasServiceRequest.h" @@ -50,46 +52,46 @@ #include "model/DeleteProjectListResult.h" #include "model/FindInstanceListRequest.h" #include "model/FindInstanceListResult.h" -#include "model/PublishCasServiceRequest.h" -#include "model/PublishCasServiceResult.h" #include "model/UpdateProjectListStatusRequest.h" #include "model/UpdateProjectListStatusResult.h" -#include "model/FindProjectsNameListRequest.h" -#include "model/FindProjectsNameListResult.h" +#include "model/PublishCasServiceRequest.h" +#include "model/PublishCasServiceResult.h" #include "model/ReplaceCredentialRequest.h" #include "model/ReplaceCredentialResult.h" +#include "model/FindProjectsNameListRequest.h" +#include "model/FindProjectsNameListResult.h" #include "model/GetProjectRequest.h" #include "model/GetProjectResult.h" #include "model/DeleteUnionCasServiceRequest.h" #include "model/DeleteUnionCasServiceResult.h" #include "model/CheckServiceExistRequest.h" #include "model/CheckServiceExistResult.h" -#include "model/GetInstanceRequest.h" -#include "model/GetInstanceResult.h" -#include "model/RenewCredentialsRequest.h" -#include "model/RenewCredentialsResult.h" -#include "model/GetOrderRequest.h" -#include "model/GetOrderResult.h" #include "model/UpdateOrderListRequest.h" #include "model/UpdateOrderListResult.h" +#include "model/GetInstanceRequest.h" +#include "model/GetInstanceResult.h" +#include "model/GetOrderRequest.h" +#include "model/GetOrderResult.h" +#include "model/RenewCredentialsRequest.h" +#include "model/RenewCredentialsResult.h" #include "model/DeleteCredentialsListRequest.h" #include "model/DeleteCredentialsListResult.h" -#include "model/FindServiceStatisticalDataRequest.h" -#include "model/FindServiceStatisticalDataResult.h" #include "model/CreateServiceRequest.h" #include "model/CreateServiceResult.h" +#include "model/FindServiceStatisticalDataRequest.h" +#include "model/FindServiceStatisticalDataResult.h" #include "model/FindCredentialsListRequest.h" #include "model/FindCredentialsListResult.h" #include "model/ApproveOrderListRequest.h" #include "model/ApproveOrderListResult.h" -#include "model/UpdateServiceRequest.h" -#include "model/UpdateServiceResult.h" #include "model/DeleteProjectRequest.h" #include "model/DeleteProjectResult.h" -#include "model/UpdateProjectRequest.h" -#include "model/UpdateProjectResult.h" +#include "model/UpdateServiceRequest.h" +#include "model/UpdateServiceResult.h" #include "model/FindOrderableListRequest.h" #include "model/FindOrderableListResult.h" +#include "model/UpdateProjectRequest.h" +#include "model/UpdateProjectResult.h" #include "model/FindProjectListRequest.h" #include "model/FindProjectListResult.h" #include "model/FindApprovalOrderListRequest.h" @@ -98,10 +100,10 @@ #include "model/UpdateServiceQPSResult.h" #include "model/UpdateOrderRequest.h" #include "model/UpdateOrderResult.h" -#include "model/FindApproveServiceListRequest.h" -#include "model/FindApproveServiceListResult.h" #include "model/GetServiceRequest.h" #include "model/GetServiceResult.h" +#include "model/FindApproveServiceListRequest.h" +#include "model/FindApproveServiceListResult.h" namespace AlibabaCloud @@ -141,6 +143,9 @@ namespace AlibabaCloud typedef Outcome DeleteOrderListOutcome; typedef std::future DeleteOrderListOutcomeCallable; typedef std::function&)> DeleteOrderListAsyncHandler; + typedef Outcome ImportCredentialsOutcome; + typedef std::future ImportCredentialsOutcomeCallable; + typedef std::function&)> ImportCredentialsAsyncHandler; typedef Outcome CreateCredentialsOutcome; typedef std::future CreateCredentialsOutcomeCallable; typedef std::function&)> CreateCredentialsAsyncHandler; @@ -153,18 +158,18 @@ namespace AlibabaCloud typedef Outcome FindInstanceListOutcome; typedef std::future FindInstanceListOutcomeCallable; typedef std::function&)> FindInstanceListAsyncHandler; - typedef Outcome PublishCasServiceOutcome; - typedef std::future PublishCasServiceOutcomeCallable; - typedef std::function&)> PublishCasServiceAsyncHandler; typedef Outcome UpdateProjectListStatusOutcome; typedef std::future UpdateProjectListStatusOutcomeCallable; typedef std::function&)> UpdateProjectListStatusAsyncHandler; - typedef Outcome FindProjectsNameListOutcome; - typedef std::future FindProjectsNameListOutcomeCallable; - typedef std::function&)> FindProjectsNameListAsyncHandler; + typedef Outcome PublishCasServiceOutcome; + typedef std::future PublishCasServiceOutcomeCallable; + typedef std::function&)> PublishCasServiceAsyncHandler; typedef Outcome ReplaceCredentialOutcome; typedef std::future ReplaceCredentialOutcomeCallable; typedef std::function&)> ReplaceCredentialAsyncHandler; + typedef Outcome FindProjectsNameListOutcome; + typedef std::future FindProjectsNameListOutcomeCallable; + typedef std::function&)> FindProjectsNameListAsyncHandler; typedef Outcome GetProjectOutcome; typedef std::future GetProjectOutcomeCallable; typedef std::function&)> GetProjectAsyncHandler; @@ -174,45 +179,45 @@ namespace AlibabaCloud typedef Outcome CheckServiceExistOutcome; typedef std::future CheckServiceExistOutcomeCallable; typedef std::function&)> CheckServiceExistAsyncHandler; - typedef Outcome GetInstanceOutcome; - typedef std::future GetInstanceOutcomeCallable; - typedef std::function&)> GetInstanceAsyncHandler; - typedef Outcome RenewCredentialsOutcome; - typedef std::future RenewCredentialsOutcomeCallable; - typedef std::function&)> RenewCredentialsAsyncHandler; - typedef Outcome GetOrderOutcome; - typedef std::future GetOrderOutcomeCallable; - typedef std::function&)> GetOrderAsyncHandler; typedef Outcome UpdateOrderListOutcome; typedef std::future UpdateOrderListOutcomeCallable; typedef std::function&)> UpdateOrderListAsyncHandler; + typedef Outcome GetInstanceOutcome; + typedef std::future GetInstanceOutcomeCallable; + typedef std::function&)> GetInstanceAsyncHandler; + typedef Outcome GetOrderOutcome; + typedef std::future GetOrderOutcomeCallable; + typedef std::function&)> GetOrderAsyncHandler; + typedef Outcome RenewCredentialsOutcome; + typedef std::future RenewCredentialsOutcomeCallable; + typedef std::function&)> RenewCredentialsAsyncHandler; typedef Outcome DeleteCredentialsListOutcome; typedef std::future DeleteCredentialsListOutcomeCallable; typedef std::function&)> DeleteCredentialsListAsyncHandler; - typedef Outcome FindServiceStatisticalDataOutcome; - typedef std::future FindServiceStatisticalDataOutcomeCallable; - typedef std::function&)> FindServiceStatisticalDataAsyncHandler; typedef Outcome CreateServiceOutcome; typedef std::future CreateServiceOutcomeCallable; typedef std::function&)> CreateServiceAsyncHandler; + typedef Outcome FindServiceStatisticalDataOutcome; + typedef std::future FindServiceStatisticalDataOutcomeCallable; + typedef std::function&)> FindServiceStatisticalDataAsyncHandler; typedef Outcome FindCredentialsListOutcome; typedef std::future FindCredentialsListOutcomeCallable; typedef std::function&)> FindCredentialsListAsyncHandler; typedef Outcome ApproveOrderListOutcome; typedef std::future ApproveOrderListOutcomeCallable; typedef std::function&)> ApproveOrderListAsyncHandler; - typedef Outcome UpdateServiceOutcome; - typedef std::future UpdateServiceOutcomeCallable; - typedef std::function&)> UpdateServiceAsyncHandler; typedef Outcome DeleteProjectOutcome; typedef std::future DeleteProjectOutcomeCallable; typedef std::function&)> DeleteProjectAsyncHandler; - typedef Outcome UpdateProjectOutcome; - typedef std::future UpdateProjectOutcomeCallable; - typedef std::function&)> UpdateProjectAsyncHandler; + typedef Outcome UpdateServiceOutcome; + typedef std::future UpdateServiceOutcomeCallable; + typedef std::function&)> UpdateServiceAsyncHandler; typedef Outcome FindOrderableListOutcome; typedef std::future FindOrderableListOutcomeCallable; typedef std::function&)> FindOrderableListAsyncHandler; + typedef Outcome UpdateProjectOutcome; + typedef std::future UpdateProjectOutcomeCallable; + typedef std::function&)> UpdateProjectAsyncHandler; typedef Outcome FindProjectListOutcome; typedef std::future FindProjectListOutcomeCallable; typedef std::function&)> FindProjectListAsyncHandler; @@ -225,12 +230,12 @@ namespace AlibabaCloud typedef Outcome UpdateOrderOutcome; typedef std::future UpdateOrderOutcomeCallable; typedef std::function&)> UpdateOrderAsyncHandler; - typedef Outcome FindApproveServiceListOutcome; - typedef std::future FindApproveServiceListOutcomeCallable; - typedef std::function&)> FindApproveServiceListAsyncHandler; typedef Outcome GetServiceOutcome; typedef std::future GetServiceOutcomeCallable; typedef std::function&)> GetServiceAsyncHandler; + typedef Outcome FindApproveServiceListOutcome; + typedef std::future FindApproveServiceListOutcomeCallable; + typedef std::function&)> FindApproveServiceListAsyncHandler; CSBClient(const Credentials &credentials, const ClientConfiguration &configuration); CSBClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -266,6 +271,9 @@ namespace AlibabaCloud DeleteOrderListOutcome deleteOrderList(const Model::DeleteOrderListRequest &request)const; void deleteOrderListAsync(const Model::DeleteOrderListRequest& request, const DeleteOrderListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteOrderListOutcomeCallable deleteOrderListCallable(const Model::DeleteOrderListRequest& request) const; + ImportCredentialsOutcome importCredentials(const Model::ImportCredentialsRequest &request)const; + void importCredentialsAsync(const Model::ImportCredentialsRequest& request, const ImportCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportCredentialsOutcomeCallable importCredentialsCallable(const Model::ImportCredentialsRequest& request) const; CreateCredentialsOutcome createCredentials(const Model::CreateCredentialsRequest &request)const; void createCredentialsAsync(const Model::CreateCredentialsRequest& request, const CreateCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCredentialsOutcomeCallable createCredentialsCallable(const Model::CreateCredentialsRequest& request) const; @@ -278,18 +286,18 @@ namespace AlibabaCloud FindInstanceListOutcome findInstanceList(const Model::FindInstanceListRequest &request)const; void findInstanceListAsync(const Model::FindInstanceListRequest& request, const FindInstanceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FindInstanceListOutcomeCallable findInstanceListCallable(const Model::FindInstanceListRequest& request) const; - PublishCasServiceOutcome publishCasService(const Model::PublishCasServiceRequest &request)const; - void publishCasServiceAsync(const Model::PublishCasServiceRequest& request, const PublishCasServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PublishCasServiceOutcomeCallable publishCasServiceCallable(const Model::PublishCasServiceRequest& request) const; UpdateProjectListStatusOutcome updateProjectListStatus(const Model::UpdateProjectListStatusRequest &request)const; void updateProjectListStatusAsync(const Model::UpdateProjectListStatusRequest& request, const UpdateProjectListStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateProjectListStatusOutcomeCallable updateProjectListStatusCallable(const Model::UpdateProjectListStatusRequest& request) const; - FindProjectsNameListOutcome findProjectsNameList(const Model::FindProjectsNameListRequest &request)const; - void findProjectsNameListAsync(const Model::FindProjectsNameListRequest& request, const FindProjectsNameListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FindProjectsNameListOutcomeCallable findProjectsNameListCallable(const Model::FindProjectsNameListRequest& request) const; + PublishCasServiceOutcome publishCasService(const Model::PublishCasServiceRequest &request)const; + void publishCasServiceAsync(const Model::PublishCasServiceRequest& request, const PublishCasServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishCasServiceOutcomeCallable publishCasServiceCallable(const Model::PublishCasServiceRequest& request) const; ReplaceCredentialOutcome replaceCredential(const Model::ReplaceCredentialRequest &request)const; void replaceCredentialAsync(const Model::ReplaceCredentialRequest& request, const ReplaceCredentialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReplaceCredentialOutcomeCallable replaceCredentialCallable(const Model::ReplaceCredentialRequest& request) const; + FindProjectsNameListOutcome findProjectsNameList(const Model::FindProjectsNameListRequest &request)const; + void findProjectsNameListAsync(const Model::FindProjectsNameListRequest& request, const FindProjectsNameListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindProjectsNameListOutcomeCallable findProjectsNameListCallable(const Model::FindProjectsNameListRequest& request) const; GetProjectOutcome getProject(const Model::GetProjectRequest &request)const; void getProjectAsync(const Model::GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetProjectOutcomeCallable getProjectCallable(const Model::GetProjectRequest& request) const; @@ -299,45 +307,45 @@ namespace AlibabaCloud CheckServiceExistOutcome checkServiceExist(const Model::CheckServiceExistRequest &request)const; void checkServiceExistAsync(const Model::CheckServiceExistRequest& request, const CheckServiceExistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckServiceExistOutcomeCallable checkServiceExistCallable(const Model::CheckServiceExistRequest& request) const; - GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const; - void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const; - RenewCredentialsOutcome renewCredentials(const Model::RenewCredentialsRequest &request)const; - void renewCredentialsAsync(const Model::RenewCredentialsRequest& request, const RenewCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RenewCredentialsOutcomeCallable renewCredentialsCallable(const Model::RenewCredentialsRequest& request) const; - GetOrderOutcome getOrder(const Model::GetOrderRequest &request)const; - void getOrderAsync(const Model::GetOrderRequest& request, const GetOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOrderOutcomeCallable getOrderCallable(const Model::GetOrderRequest& request) const; UpdateOrderListOutcome updateOrderList(const Model::UpdateOrderListRequest &request)const; void updateOrderListAsync(const Model::UpdateOrderListRequest& request, const UpdateOrderListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateOrderListOutcomeCallable updateOrderListCallable(const Model::UpdateOrderListRequest& request) const; + GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const; + void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const; + GetOrderOutcome getOrder(const Model::GetOrderRequest &request)const; + void getOrderAsync(const Model::GetOrderRequest& request, const GetOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrderOutcomeCallable getOrderCallable(const Model::GetOrderRequest& request) const; + RenewCredentialsOutcome renewCredentials(const Model::RenewCredentialsRequest &request)const; + void renewCredentialsAsync(const Model::RenewCredentialsRequest& request, const RenewCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewCredentialsOutcomeCallable renewCredentialsCallable(const Model::RenewCredentialsRequest& request) const; DeleteCredentialsListOutcome deleteCredentialsList(const Model::DeleteCredentialsListRequest &request)const; void deleteCredentialsListAsync(const Model::DeleteCredentialsListRequest& request, const DeleteCredentialsListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCredentialsListOutcomeCallable deleteCredentialsListCallable(const Model::DeleteCredentialsListRequest& request) const; - FindServiceStatisticalDataOutcome findServiceStatisticalData(const Model::FindServiceStatisticalDataRequest &request)const; - void findServiceStatisticalDataAsync(const Model::FindServiceStatisticalDataRequest& request, const FindServiceStatisticalDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FindServiceStatisticalDataOutcomeCallable findServiceStatisticalDataCallable(const Model::FindServiceStatisticalDataRequest& request) const; CreateServiceOutcome createService(const Model::CreateServiceRequest &request)const; void createServiceAsync(const Model::CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateServiceOutcomeCallable createServiceCallable(const Model::CreateServiceRequest& request) const; + FindServiceStatisticalDataOutcome findServiceStatisticalData(const Model::FindServiceStatisticalDataRequest &request)const; + void findServiceStatisticalDataAsync(const Model::FindServiceStatisticalDataRequest& request, const FindServiceStatisticalDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindServiceStatisticalDataOutcomeCallable findServiceStatisticalDataCallable(const Model::FindServiceStatisticalDataRequest& request) const; FindCredentialsListOutcome findCredentialsList(const Model::FindCredentialsListRequest &request)const; void findCredentialsListAsync(const Model::FindCredentialsListRequest& request, const FindCredentialsListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FindCredentialsListOutcomeCallable findCredentialsListCallable(const Model::FindCredentialsListRequest& request) const; ApproveOrderListOutcome approveOrderList(const Model::ApproveOrderListRequest &request)const; void approveOrderListAsync(const Model::ApproveOrderListRequest& request, const ApproveOrderListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApproveOrderListOutcomeCallable approveOrderListCallable(const Model::ApproveOrderListRequest& request) const; - UpdateServiceOutcome updateService(const Model::UpdateServiceRequest &request)const; - void updateServiceAsync(const Model::UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateServiceOutcomeCallable updateServiceCallable(const Model::UpdateServiceRequest& request) const; DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; - UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; - void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const; + UpdateServiceOutcome updateService(const Model::UpdateServiceRequest &request)const; + void updateServiceAsync(const Model::UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceOutcomeCallable updateServiceCallable(const Model::UpdateServiceRequest& request) const; FindOrderableListOutcome findOrderableList(const Model::FindOrderableListRequest &request)const; void findOrderableListAsync(const Model::FindOrderableListRequest& request, const FindOrderableListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FindOrderableListOutcomeCallable findOrderableListCallable(const Model::FindOrderableListRequest& request) const; + UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; + void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const; FindProjectListOutcome findProjectList(const Model::FindProjectListRequest &request)const; void findProjectListAsync(const Model::FindProjectListRequest& request, const FindProjectListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FindProjectListOutcomeCallable findProjectListCallable(const Model::FindProjectListRequest& request) const; @@ -350,12 +358,12 @@ namespace AlibabaCloud UpdateOrderOutcome updateOrder(const Model::UpdateOrderRequest &request)const; void updateOrderAsync(const Model::UpdateOrderRequest& request, const UpdateOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateOrderOutcomeCallable updateOrderCallable(const Model::UpdateOrderRequest& request) const; - FindApproveServiceListOutcome findApproveServiceList(const Model::FindApproveServiceListRequest &request)const; - void findApproveServiceListAsync(const Model::FindApproveServiceListRequest& request, const FindApproveServiceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FindApproveServiceListOutcomeCallable findApproveServiceListCallable(const Model::FindApproveServiceListRequest& request) const; GetServiceOutcome getService(const Model::GetServiceRequest &request)const; void getServiceAsync(const Model::GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetServiceOutcomeCallable getServiceCallable(const Model::GetServiceRequest& request) const; + FindApproveServiceListOutcome findApproveServiceList(const Model::FindApproveServiceListRequest &request)const; + void findApproveServiceListAsync(const Model::FindApproveServiceListRequest& request, const FindApproveServiceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindApproveServiceListOutcomeCallable findApproveServiceListCallable(const Model::FindApproveServiceListRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h b/csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h index 28777b9ef..7ec362757 100644 --- a/csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h +++ b/csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h @@ -39,24 +39,27 @@ namespace AlibabaCloud void setProjectName(const std::string& projectName); std::string getRegionId()const; void setRegionId(const std::string& regionId); + long getCsbId()const; + void setCsbId(long csbId); std::string getAlias()const; void setAlias(const std::string& alias); std::string getServiceName()const; void setServiceName(const std::string& serviceName); - int getPageNum()const; - void setPageNum(int pageNum); long getServiceId()const; void setServiceId(long serviceId); + int getPageNum()const; + void setPageNum(int pageNum); bool getOnlyPending()const; void setOnlyPending(bool onlyPending); private: std::string projectName_; std::string regionId_; + long csbId_; std::string alias_; std::string serviceName_; - int pageNum_; long serviceId_; + int pageNum_; bool onlyPending_; }; diff --git a/csb/include/alibabacloud/csb/model/ImportCredentialsRequest.h b/csb/include/alibabacloud/csb/model/ImportCredentialsRequest.h new file mode 100644 index 000000000..ed54cc7ab --- /dev/null +++ b/csb/include/alibabacloud/csb/model/ImportCredentialsRequest.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_CSB_MODEL_IMPORTCREDENTIALSREQUEST_H_ +#define ALIBABACLOUD_CSB_MODEL_IMPORTCREDENTIALSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT ImportCredentialsRequest : public RpcServiceRequest + { + + public: + ImportCredentialsRequest(); + ~ImportCredentialsRequest(); + + std::string getData()const; + void setData(const std::string& data); + long getCsbId()const; + void setCsbId(long csbId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string data_; + long csbId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_IMPORTCREDENTIALSREQUEST_H_ \ No newline at end of file diff --git a/csb/include/alibabacloud/csb/model/ImportCredentialsResult.h b/csb/include/alibabacloud/csb/model/ImportCredentialsResult.h new file mode 100644 index 000000000..8c7159015 --- /dev/null +++ b/csb/include/alibabacloud/csb/model/ImportCredentialsResult.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_CSB_MODEL_IMPORTCREDENTIALSRESULT_H_ +#define ALIBABACLOUD_CSB_MODEL_IMPORTCREDENTIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CSB + { + namespace Model + { + class ALIBABACLOUD_CSB_EXPORT ImportCredentialsResult : public ServiceResult + { + public: + struct Data + { + struct Credentials + { + struct CurrentCredential + { + std::string secretKey; + std::string accessKey; + }; + CurrentCredential currentCredential; + long id; + }; + Credentials credentials; + }; + + + ImportCredentialsResult(); + explicit ImportCredentialsResult(const std::string &payload); + ~ImportCredentialsResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CSB_MODEL_IMPORTCREDENTIALSRESULT_H_ \ No newline at end of file diff --git a/csb/src/CSBClient.cc b/csb/src/CSBClient.cc index ce324d488..8f4674b62 100644 --- a/csb/src/CSBClient.cc +++ b/csb/src/CSBClient.cc @@ -31,21 +31,21 @@ CSBClient::CSBClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "csb"); } CSBClient::CSBClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "csb"); } CSBClient::CSBClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "csb"); } CSBClient::~CSBClient() @@ -411,6 +411,42 @@ CSBClient::DeleteOrderListOutcomeCallable CSBClient::deleteOrderListCallable(con return task->get_future(); } +CSBClient::ImportCredentialsOutcome CSBClient::importCredentials(const ImportCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportCredentialsOutcome(ImportCredentialsResult(outcome.result())); + else + return ImportCredentialsOutcome(outcome.error()); +} + +void CSBClient::importCredentialsAsync(const ImportCredentialsRequest& request, const ImportCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::ImportCredentialsOutcomeCallable CSBClient::importCredentialsCallable(const ImportCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSBClient::CreateCredentialsOutcome CSBClient::createCredentials(const CreateCredentialsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,42 +591,6 @@ CSBClient::FindInstanceListOutcomeCallable CSBClient::findInstanceListCallable(c return task->get_future(); } -CSBClient::PublishCasServiceOutcome CSBClient::publishCasService(const PublishCasServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PublishCasServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PublishCasServiceOutcome(PublishCasServiceResult(outcome.result())); - else - return PublishCasServiceOutcome(outcome.error()); -} - -void CSBClient::publishCasServiceAsync(const PublishCasServiceRequest& request, const PublishCasServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, publishCasService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CSBClient::PublishCasServiceOutcomeCallable CSBClient::publishCasServiceCallable(const PublishCasServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->publishCasService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CSBClient::UpdateProjectListStatusOutcome CSBClient::updateProjectListStatus(const UpdateProjectListStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,36 +627,36 @@ CSBClient::UpdateProjectListStatusOutcomeCallable CSBClient::updateProjectListSt return task->get_future(); } -CSBClient::FindProjectsNameListOutcome CSBClient::findProjectsNameList(const FindProjectsNameListRequest &request) const +CSBClient::PublishCasServiceOutcome CSBClient::publishCasService(const PublishCasServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FindProjectsNameListOutcome(endpointOutcome.error()); + return PublishCasServiceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FindProjectsNameListOutcome(FindProjectsNameListResult(outcome.result())); + return PublishCasServiceOutcome(PublishCasServiceResult(outcome.result())); else - return FindProjectsNameListOutcome(outcome.error()); + return PublishCasServiceOutcome(outcome.error()); } -void CSBClient::findProjectsNameListAsync(const FindProjectsNameListRequest& request, const FindProjectsNameListAsyncHandler& handler, const std::shared_ptr& context) const +void CSBClient::publishCasServiceAsync(const PublishCasServiceRequest& request, const PublishCasServiceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, findProjectsNameList(request), context); + handler(this, request, publishCasService(request), context); }; asyncExecute(new Runnable(fn)); } -CSBClient::FindProjectsNameListOutcomeCallable CSBClient::findProjectsNameListCallable(const FindProjectsNameListRequest &request) const +CSBClient::PublishCasServiceOutcomeCallable CSBClient::publishCasServiceCallable(const PublishCasServiceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->findProjectsNameList(request); + return this->publishCasService(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -699,6 +699,42 @@ CSBClient::ReplaceCredentialOutcomeCallable CSBClient::replaceCredentialCallable return task->get_future(); } +CSBClient::FindProjectsNameListOutcome CSBClient::findProjectsNameList(const FindProjectsNameListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindProjectsNameListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindProjectsNameListOutcome(FindProjectsNameListResult(outcome.result())); + else + return FindProjectsNameListOutcome(outcome.error()); +} + +void CSBClient::findProjectsNameListAsync(const FindProjectsNameListRequest& request, const FindProjectsNameListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findProjectsNameList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindProjectsNameListOutcomeCallable CSBClient::findProjectsNameListCallable(const FindProjectsNameListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findProjectsNameList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSBClient::GetProjectOutcome CSBClient::getProject(const GetProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +843,42 @@ CSBClient::CheckServiceExistOutcomeCallable CSBClient::checkServiceExistCallable return task->get_future(); } +CSBClient::UpdateOrderListOutcome CSBClient::updateOrderList(const UpdateOrderListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateOrderListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateOrderListOutcome(UpdateOrderListResult(outcome.result())); + else + return UpdateOrderListOutcome(outcome.error()); +} + +void CSBClient::updateOrderListAsync(const UpdateOrderListRequest& request, const UpdateOrderListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateOrderList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateOrderListOutcomeCallable CSBClient::updateOrderListCallable(const UpdateOrderListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateOrderList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSBClient::GetInstanceOutcome CSBClient::getInstance(const GetInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,42 +915,6 @@ CSBClient::GetInstanceOutcomeCallable CSBClient::getInstanceCallable(const GetIn return task->get_future(); } -CSBClient::RenewCredentialsOutcome CSBClient::renewCredentials(const RenewCredentialsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RenewCredentialsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RenewCredentialsOutcome(RenewCredentialsResult(outcome.result())); - else - return RenewCredentialsOutcome(outcome.error()); -} - -void CSBClient::renewCredentialsAsync(const RenewCredentialsRequest& request, const RenewCredentialsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, renewCredentials(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CSBClient::RenewCredentialsOutcomeCallable CSBClient::renewCredentialsCallable(const RenewCredentialsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->renewCredentials(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CSBClient::GetOrderOutcome CSBClient::getOrder(const GetOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,36 +951,36 @@ CSBClient::GetOrderOutcomeCallable CSBClient::getOrderCallable(const GetOrderReq return task->get_future(); } -CSBClient::UpdateOrderListOutcome CSBClient::updateOrderList(const UpdateOrderListRequest &request) const +CSBClient::RenewCredentialsOutcome CSBClient::renewCredentials(const RenewCredentialsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateOrderListOutcome(endpointOutcome.error()); + return RenewCredentialsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateOrderListOutcome(UpdateOrderListResult(outcome.result())); + return RenewCredentialsOutcome(RenewCredentialsResult(outcome.result())); else - return UpdateOrderListOutcome(outcome.error()); + return RenewCredentialsOutcome(outcome.error()); } -void CSBClient::updateOrderListAsync(const UpdateOrderListRequest& request, const UpdateOrderListAsyncHandler& handler, const std::shared_ptr& context) const +void CSBClient::renewCredentialsAsync(const RenewCredentialsRequest& request, const RenewCredentialsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateOrderList(request), context); + handler(this, request, renewCredentials(request), context); }; asyncExecute(new Runnable(fn)); } -CSBClient::UpdateOrderListOutcomeCallable CSBClient::updateOrderListCallable(const UpdateOrderListRequest &request) const +CSBClient::RenewCredentialsOutcomeCallable CSBClient::renewCredentialsCallable(const RenewCredentialsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateOrderList(request); + return this->renewCredentials(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -987,42 +1023,6 @@ CSBClient::DeleteCredentialsListOutcomeCallable CSBClient::deleteCredentialsList return task->get_future(); } -CSBClient::FindServiceStatisticalDataOutcome CSBClient::findServiceStatisticalData(const FindServiceStatisticalDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FindServiceStatisticalDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FindServiceStatisticalDataOutcome(FindServiceStatisticalDataResult(outcome.result())); - else - return FindServiceStatisticalDataOutcome(outcome.error()); -} - -void CSBClient::findServiceStatisticalDataAsync(const FindServiceStatisticalDataRequest& request, const FindServiceStatisticalDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, findServiceStatisticalData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CSBClient::FindServiceStatisticalDataOutcomeCallable CSBClient::findServiceStatisticalDataCallable(const FindServiceStatisticalDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->findServiceStatisticalData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CSBClient::CreateServiceOutcome CSBClient::createService(const CreateServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1059,42 @@ CSBClient::CreateServiceOutcomeCallable CSBClient::createServiceCallable(const C return task->get_future(); } +CSBClient::FindServiceStatisticalDataOutcome CSBClient::findServiceStatisticalData(const FindServiceStatisticalDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindServiceStatisticalDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindServiceStatisticalDataOutcome(FindServiceStatisticalDataResult(outcome.result())); + else + return FindServiceStatisticalDataOutcome(outcome.error()); +} + +void CSBClient::findServiceStatisticalDataAsync(const FindServiceStatisticalDataRequest& request, const FindServiceStatisticalDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findServiceStatisticalData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindServiceStatisticalDataOutcomeCallable CSBClient::findServiceStatisticalDataCallable(const FindServiceStatisticalDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findServiceStatisticalData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSBClient::FindCredentialsListOutcome CSBClient::findCredentialsList(const FindCredentialsListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,42 +1167,6 @@ CSBClient::ApproveOrderListOutcomeCallable CSBClient::approveOrderListCallable(c return task->get_future(); } -CSBClient::UpdateServiceOutcome CSBClient::updateService(const UpdateServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateServiceOutcome(UpdateServiceResult(outcome.result())); - else - return UpdateServiceOutcome(outcome.error()); -} - -void CSBClient::updateServiceAsync(const UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CSBClient::UpdateServiceOutcomeCallable CSBClient::updateServiceCallable(const UpdateServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CSBClient::DeleteProjectOutcome CSBClient::deleteProject(const DeleteProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,36 +1203,36 @@ CSBClient::DeleteProjectOutcomeCallable CSBClient::deleteProjectCallable(const D return task->get_future(); } -CSBClient::UpdateProjectOutcome CSBClient::updateProject(const UpdateProjectRequest &request) const +CSBClient::UpdateServiceOutcome CSBClient::updateService(const UpdateServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateProjectOutcome(endpointOutcome.error()); + return UpdateServiceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateProjectOutcome(UpdateProjectResult(outcome.result())); + return UpdateServiceOutcome(UpdateServiceResult(outcome.result())); else - return UpdateProjectOutcome(outcome.error()); + return UpdateServiceOutcome(outcome.error()); } -void CSBClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context) const +void CSBClient::updateServiceAsync(const UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateProject(request), context); + handler(this, request, updateService(request), context); }; asyncExecute(new Runnable(fn)); } -CSBClient::UpdateProjectOutcomeCallable CSBClient::updateProjectCallable(const UpdateProjectRequest &request) const +CSBClient::UpdateServiceOutcomeCallable CSBClient::updateServiceCallable(const UpdateServiceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateProject(request); + return this->updateService(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1275,6 +1275,42 @@ CSBClient::FindOrderableListOutcomeCallable CSBClient::findOrderableListCallable return task->get_future(); } +CSBClient::UpdateProjectOutcome CSBClient::updateProject(const UpdateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectOutcome(UpdateProjectResult(outcome.result())); + else + return UpdateProjectOutcome(outcome.error()); +} + +void CSBClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::UpdateProjectOutcomeCallable CSBClient::updateProjectCallable(const UpdateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CSBClient::FindProjectListOutcome CSBClient::findProjectList(const FindProjectListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,42 +1455,6 @@ CSBClient::UpdateOrderOutcomeCallable CSBClient::updateOrderCallable(const Updat return task->get_future(); } -CSBClient::FindApproveServiceListOutcome CSBClient::findApproveServiceList(const FindApproveServiceListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FindApproveServiceListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FindApproveServiceListOutcome(FindApproveServiceListResult(outcome.result())); - else - return FindApproveServiceListOutcome(outcome.error()); -} - -void CSBClient::findApproveServiceListAsync(const FindApproveServiceListRequest& request, const FindApproveServiceListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, findApproveServiceList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CSBClient::FindApproveServiceListOutcomeCallable CSBClient::findApproveServiceListCallable(const FindApproveServiceListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->findApproveServiceList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CSBClient::GetServiceOutcome CSBClient::getService(const GetServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,3 +1491,39 @@ CSBClient::GetServiceOutcomeCallable CSBClient::getServiceCallable(const GetServ return task->get_future(); } +CSBClient::FindApproveServiceListOutcome CSBClient::findApproveServiceList(const FindApproveServiceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindApproveServiceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindApproveServiceListOutcome(FindApproveServiceListResult(outcome.result())); + else + return FindApproveServiceListOutcome(outcome.error()); +} + +void CSBClient::findApproveServiceListAsync(const FindApproveServiceListRequest& request, const FindApproveServiceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findApproveServiceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CSBClient::FindApproveServiceListOutcomeCallable CSBClient::findApproveServiceListCallable(const FindApproveServiceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findApproveServiceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/csb/src/model/ApproveOrderListRequest.cc b/csb/src/model/ApproveOrderListRequest.cc index a247edb61..f4fbabd72 100644 --- a/csb/src/model/ApproveOrderListRequest.cc +++ b/csb/src/model/ApproveOrderListRequest.cc @@ -33,7 +33,7 @@ std::string ApproveOrderListRequest::getData()const void ApproveOrderListRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string ApproveOrderListRequest::getRegionId()const @@ -44,6 +44,6 @@ std::string ApproveOrderListRequest::getRegionId()const void ApproveOrderListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/ApproveOrderListResult.cc b/csb/src/model/ApproveOrderListResult.cc index eb63f1de9..e5b33a422 100644 --- a/csb/src/model/ApproveOrderListResult.cc +++ b/csb/src/model/ApproveOrderListResult.cc @@ -35,10 +35,13 @@ ApproveOrderListResult::~ApproveOrderListResult() void ApproveOrderListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/CheckServiceExistRequest.cc b/csb/src/model/CheckServiceExistRequest.cc index b753ed175..80b231fd3 100644 --- a/csb/src/model/CheckServiceExistRequest.cc +++ b/csb/src/model/CheckServiceExistRequest.cc @@ -33,7 +33,7 @@ std::string CheckServiceExistRequest::getRegionId()const void CheckServiceExistRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long CheckServiceExistRequest::getCsbId()const @@ -44,7 +44,7 @@ long CheckServiceExistRequest::getCsbId()const void CheckServiceExistRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string CheckServiceExistRequest::getServiceName()const @@ -55,6 +55,6 @@ std::string CheckServiceExistRequest::getServiceName()const void CheckServiceExistRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } diff --git a/csb/src/model/CheckServiceExistResult.cc b/csb/src/model/CheckServiceExistResult.cc index cd7f2254d..723e1a597 100644 --- a/csb/src/model/CheckServiceExistResult.cc +++ b/csb/src/model/CheckServiceExistResult.cc @@ -35,10 +35,13 @@ CheckServiceExistResult::~CheckServiceExistResult() void CheckServiceExistResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Exist"].isNull()) diff --git a/csb/src/model/CommitSuccessedServicesRequest.cc b/csb/src/model/CommitSuccessedServicesRequest.cc index b062231d9..81786c4c7 100644 --- a/csb/src/model/CommitSuccessedServicesRequest.cc +++ b/csb/src/model/CommitSuccessedServicesRequest.cc @@ -33,7 +33,7 @@ std::string CommitSuccessedServicesRequest::getCsbName()const void CommitSuccessedServicesRequest::setCsbName(const std::string& csbName) { csbName_ = csbName; - setParameter("CsbName", csbName); + setCoreParameter("CsbName", csbName); } std::string CommitSuccessedServicesRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CommitSuccessedServicesRequest::getRegionId()const void CommitSuccessedServicesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CommitSuccessedServicesRequest::getServices()const @@ -55,6 +55,6 @@ std::string CommitSuccessedServicesRequest::getServices()const void CommitSuccessedServicesRequest::setServices(const std::string& services) { services_ = services; - setParameter("Services", services); + setCoreParameter("Services", services); } diff --git a/csb/src/model/CommitSuccessedServicesResult.cc b/csb/src/model/CommitSuccessedServicesResult.cc index e402dbf63..8894cedf2 100644 --- a/csb/src/model/CommitSuccessedServicesResult.cc +++ b/csb/src/model/CommitSuccessedServicesResult.cc @@ -35,10 +35,13 @@ CommitSuccessedServicesResult::~CommitSuccessedServicesResult() void CommitSuccessedServicesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/CreateCredentialsRequest.cc b/csb/src/model/CreateCredentialsRequest.cc index 2230b1d53..cf764740f 100644 --- a/csb/src/model/CreateCredentialsRequest.cc +++ b/csb/src/model/CreateCredentialsRequest.cc @@ -33,7 +33,7 @@ std::string CreateCredentialsRequest::getData()const void CreateCredentialsRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } long CreateCredentialsRequest::getCsbId()const @@ -44,7 +44,7 @@ long CreateCredentialsRequest::getCsbId()const void CreateCredentialsRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string CreateCredentialsRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string CreateCredentialsRequest::getRegionId()const void CreateCredentialsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/CreateCredentialsResult.cc b/csb/src/model/CreateCredentialsResult.cc index a4d5087cb..823fe2c87 100644 --- a/csb/src/model/CreateCredentialsResult.cc +++ b/csb/src/model/CreateCredentialsResult.cc @@ -35,10 +35,13 @@ CreateCredentialsResult::~CreateCredentialsResult() void CreateCredentialsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto credentialsNode = dataNode["Credentials"]; diff --git a/csb/src/model/CreateOrderRequest.cc b/csb/src/model/CreateOrderRequest.cc index ce9a866d0..cd773d0dc 100644 --- a/csb/src/model/CreateOrderRequest.cc +++ b/csb/src/model/CreateOrderRequest.cc @@ -33,7 +33,7 @@ std::string CreateOrderRequest::getData()const void CreateOrderRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } long CreateOrderRequest::getCsbId()const @@ -44,7 +44,7 @@ long CreateOrderRequest::getCsbId()const void CreateOrderRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string CreateOrderRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string CreateOrderRequest::getRegionId()const void CreateOrderRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/CreateOrderResult.cc b/csb/src/model/CreateOrderResult.cc index 9d435fb24..3b403306d 100644 --- a/csb/src/model/CreateOrderResult.cc +++ b/csb/src/model/CreateOrderResult.cc @@ -35,10 +35,13 @@ CreateOrderResult::~CreateOrderResult() void CreateOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Id"].isNull()) diff --git a/csb/src/model/CreateProjectRequest.cc b/csb/src/model/CreateProjectRequest.cc index 162c105fc..52e090799 100644 --- a/csb/src/model/CreateProjectRequest.cc +++ b/csb/src/model/CreateProjectRequest.cc @@ -33,7 +33,7 @@ std::string CreateProjectRequest::getData()const void CreateProjectRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } long CreateProjectRequest::getCsbId()const @@ -44,7 +44,7 @@ long CreateProjectRequest::getCsbId()const void CreateProjectRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string CreateProjectRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string CreateProjectRequest::getRegionId()const void CreateProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/CreateProjectResult.cc b/csb/src/model/CreateProjectResult.cc index 3e55080db..a078458e5 100644 --- a/csb/src/model/CreateProjectResult.cc +++ b/csb/src/model/CreateProjectResult.cc @@ -35,10 +35,13 @@ CreateProjectResult::~CreateProjectResult() void CreateProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Id"].isNull()) diff --git a/csb/src/model/CreateServiceRequest.cc b/csb/src/model/CreateServiceRequest.cc index f94b9b169..2052fbfa9 100644 --- a/csb/src/model/CreateServiceRequest.cc +++ b/csb/src/model/CreateServiceRequest.cc @@ -33,7 +33,7 @@ std::string CreateServiceRequest::getData()const void CreateServiceRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string CreateServiceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateServiceRequest::getRegionId()const void CreateServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long CreateServiceRequest::getCsbId()const @@ -55,6 +55,6 @@ long CreateServiceRequest::getCsbId()const void CreateServiceRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/CreateServiceResult.cc b/csb/src/model/CreateServiceResult.cc index b16b7a276..c8a2769e3 100644 --- a/csb/src/model/CreateServiceResult.cc +++ b/csb/src/model/CreateServiceResult.cc @@ -35,10 +35,13 @@ CreateServiceResult::~CreateServiceResult() void CreateServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Id"].isNull()) diff --git a/csb/src/model/DeleteCasServiceRequest.cc b/csb/src/model/DeleteCasServiceRequest.cc index 10a7db634..a7a57576e 100644 --- a/csb/src/model/DeleteCasServiceRequest.cc +++ b/csb/src/model/DeleteCasServiceRequest.cc @@ -33,7 +33,7 @@ bool DeleteCasServiceRequest::getLeafOnly()const void DeleteCasServiceRequest::setLeafOnly(bool leafOnly) { leafOnly_ = leafOnly; - setParameter("LeafOnly", std::to_string(leafOnly)); + setCoreParameter("LeafOnly", leafOnly ? "true" : "false"); } std::string DeleteCasServiceRequest::getCasCsbName()const @@ -44,7 +44,7 @@ std::string DeleteCasServiceRequest::getCasCsbName()const void DeleteCasServiceRequest::setCasCsbName(const std::string& casCsbName) { casCsbName_ = casCsbName; - setParameter("CasCsbName", casCsbName); + setCoreParameter("CasCsbName", casCsbName); } std::string DeleteCasServiceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteCasServiceRequest::getRegionId()const void DeleteCasServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteCasServiceRequest::getSrcUserId()const @@ -66,7 +66,7 @@ std::string DeleteCasServiceRequest::getSrcUserId()const void DeleteCasServiceRequest::setSrcUserId(const std::string& srcUserId) { srcUserId_ = srcUserId; - setParameter("SrcUserId", srcUserId); + setCoreParameter("SrcUserId", srcUserId); } std::string DeleteCasServiceRequest::getCasServiceId()const @@ -77,6 +77,6 @@ std::string DeleteCasServiceRequest::getCasServiceId()const void DeleteCasServiceRequest::setCasServiceId(const std::string& casServiceId) { casServiceId_ = casServiceId; - setParameter("CasServiceId", casServiceId); + setCoreParameter("CasServiceId", casServiceId); } diff --git a/csb/src/model/DeleteCasServiceResult.cc b/csb/src/model/DeleteCasServiceResult.cc index 499b9ebcb..15e588077 100644 --- a/csb/src/model/DeleteCasServiceResult.cc +++ b/csb/src/model/DeleteCasServiceResult.cc @@ -35,10 +35,13 @@ DeleteCasServiceResult::~DeleteCasServiceResult() void DeleteCasServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/DeleteCredentialsListRequest.cc b/csb/src/model/DeleteCredentialsListRequest.cc index cdf36c13d..065f21da3 100644 --- a/csb/src/model/DeleteCredentialsListRequest.cc +++ b/csb/src/model/DeleteCredentialsListRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCredentialsListRequest::getData()const void DeleteCredentialsListRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string DeleteCredentialsListRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteCredentialsListRequest::getRegionId()const void DeleteCredentialsListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool DeleteCredentialsListRequest::getIgnoreDauth()const @@ -55,7 +55,7 @@ bool DeleteCredentialsListRequest::getIgnoreDauth()const void DeleteCredentialsListRequest::setIgnoreDauth(bool ignoreDauth) { ignoreDauth_ = ignoreDauth; - setParameter("IgnoreDauth", std::to_string(ignoreDauth)); + setCoreParameter("IgnoreDauth", ignoreDauth ? "true" : "false"); } bool DeleteCredentialsListRequest::getForce()const @@ -66,6 +66,6 @@ bool DeleteCredentialsListRequest::getForce()const void DeleteCredentialsListRequest::setForce(bool force) { force_ = force; - setParameter("Force", std::to_string(force)); + setCoreParameter("Force", force ? "true" : "false"); } diff --git a/csb/src/model/DeleteCredentialsListResult.cc b/csb/src/model/DeleteCredentialsListResult.cc index d2e87f6d1..960f7877d 100644 --- a/csb/src/model/DeleteCredentialsListResult.cc +++ b/csb/src/model/DeleteCredentialsListResult.cc @@ -35,10 +35,13 @@ DeleteCredentialsListResult::~DeleteCredentialsListResult() void DeleteCredentialsListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/DeleteOrderListRequest.cc b/csb/src/model/DeleteOrderListRequest.cc index bb54e9df5..a6469586e 100644 --- a/csb/src/model/DeleteOrderListRequest.cc +++ b/csb/src/model/DeleteOrderListRequest.cc @@ -33,7 +33,7 @@ std::string DeleteOrderListRequest::getData()const void DeleteOrderListRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string DeleteOrderListRequest::getRegionId()const @@ -44,6 +44,6 @@ std::string DeleteOrderListRequest::getRegionId()const void DeleteOrderListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/DeleteOrderListResult.cc b/csb/src/model/DeleteOrderListResult.cc index 879b6aec5..b470796db 100644 --- a/csb/src/model/DeleteOrderListResult.cc +++ b/csb/src/model/DeleteOrderListResult.cc @@ -35,10 +35,13 @@ DeleteOrderListResult::~DeleteOrderListResult() void DeleteOrderListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/DeleteProjectListRequest.cc b/csb/src/model/DeleteProjectListRequest.cc index ea6b60c86..4b0683630 100644 --- a/csb/src/model/DeleteProjectListRequest.cc +++ b/csb/src/model/DeleteProjectListRequest.cc @@ -33,7 +33,7 @@ std::string DeleteProjectListRequest::getData()const void DeleteProjectListRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string DeleteProjectListRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteProjectListRequest::getRegionId()const void DeleteProjectListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeleteProjectListRequest::getCsbId()const @@ -55,6 +55,6 @@ long DeleteProjectListRequest::getCsbId()const void DeleteProjectListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/DeleteProjectListResult.cc b/csb/src/model/DeleteProjectListResult.cc index 8b84a26e3..5c05717b2 100644 --- a/csb/src/model/DeleteProjectListResult.cc +++ b/csb/src/model/DeleteProjectListResult.cc @@ -35,10 +35,13 @@ DeleteProjectListResult::~DeleteProjectListResult() void DeleteProjectListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/DeleteProjectRequest.cc b/csb/src/model/DeleteProjectRequest.cc index fd1a2e493..e2e7f4a42 100644 --- a/csb/src/model/DeleteProjectRequest.cc +++ b/csb/src/model/DeleteProjectRequest.cc @@ -33,7 +33,7 @@ std::string DeleteProjectRequest::getRegionId()const void DeleteProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeleteProjectRequest::getCsbId()const @@ -44,7 +44,7 @@ long DeleteProjectRequest::getCsbId()const void DeleteProjectRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } long DeleteProjectRequest::getProjectId()const @@ -55,6 +55,6 @@ long DeleteProjectRequest::getProjectId()const void DeleteProjectRequest::setProjectId(long projectId) { projectId_ = projectId; - setParameter("ProjectId", std::to_string(projectId)); + setCoreParameter("ProjectId", std::to_string(projectId)); } diff --git a/csb/src/model/DeleteProjectResult.cc b/csb/src/model/DeleteProjectResult.cc index c65f59219..8ec27c26e 100644 --- a/csb/src/model/DeleteProjectResult.cc +++ b/csb/src/model/DeleteProjectResult.cc @@ -35,10 +35,13 @@ DeleteProjectResult::~DeleteProjectResult() void DeleteProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/DeleteServiceListRequest.cc b/csb/src/model/DeleteServiceListRequest.cc index 357ba842a..8b908420b 100644 --- a/csb/src/model/DeleteServiceListRequest.cc +++ b/csb/src/model/DeleteServiceListRequest.cc @@ -33,7 +33,7 @@ std::string DeleteServiceListRequest::getData()const void DeleteServiceListRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string DeleteServiceListRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteServiceListRequest::getRegionId()const void DeleteServiceListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeleteServiceListRequest::getCsbId()const @@ -55,6 +55,6 @@ long DeleteServiceListRequest::getCsbId()const void DeleteServiceListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/DeleteServiceListResult.cc b/csb/src/model/DeleteServiceListResult.cc index 4a8b8d2d1..90f93f138 100644 --- a/csb/src/model/DeleteServiceListResult.cc +++ b/csb/src/model/DeleteServiceListResult.cc @@ -35,10 +35,13 @@ DeleteServiceListResult::~DeleteServiceListResult() void DeleteServiceListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/DeleteServiceRequest.cc b/csb/src/model/DeleteServiceRequest.cc index 5c2d2da17..bb2422922 100644 --- a/csb/src/model/DeleteServiceRequest.cc +++ b/csb/src/model/DeleteServiceRequest.cc @@ -33,7 +33,7 @@ std::string DeleteServiceRequest::getRegionId()const void DeleteServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteServiceRequest::getServiceName()const @@ -44,7 +44,7 @@ std::string DeleteServiceRequest::getServiceName()const void DeleteServiceRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } long DeleteServiceRequest::getServiceId()const @@ -55,6 +55,6 @@ long DeleteServiceRequest::getServiceId()const void DeleteServiceRequest::setServiceId(long serviceId) { serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + setCoreParameter("ServiceId", std::to_string(serviceId)); } diff --git a/csb/src/model/DeleteServiceResult.cc b/csb/src/model/DeleteServiceResult.cc index af1d25575..40de9dacb 100644 --- a/csb/src/model/DeleteServiceResult.cc +++ b/csb/src/model/DeleteServiceResult.cc @@ -35,10 +35,13 @@ DeleteServiceResult::~DeleteServiceResult() void DeleteServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/DeleteUnionCasServiceRequest.cc b/csb/src/model/DeleteUnionCasServiceRequest.cc index 67e9346e3..9bca895b1 100644 --- a/csb/src/model/DeleteUnionCasServiceRequest.cc +++ b/csb/src/model/DeleteUnionCasServiceRequest.cc @@ -33,7 +33,7 @@ bool DeleteUnionCasServiceRequest::getLeafOnly()const void DeleteUnionCasServiceRequest::setLeafOnly(bool leafOnly) { leafOnly_ = leafOnly; - setParameter("LeafOnly", std::to_string(leafOnly)); + setCoreParameter("LeafOnly", leafOnly ? "true" : "false"); } std::string DeleteUnionCasServiceRequest::getCasCsbName()const @@ -44,7 +44,7 @@ std::string DeleteUnionCasServiceRequest::getCasCsbName()const void DeleteUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName) { casCsbName_ = casCsbName; - setParameter("CasCsbName", casCsbName); + setCoreParameter("CasCsbName", casCsbName); } std::string DeleteUnionCasServiceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteUnionCasServiceRequest::getRegionId()const void DeleteUnionCasServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteUnionCasServiceRequest::getSrcUserId()const @@ -66,7 +66,7 @@ std::string DeleteUnionCasServiceRequest::getSrcUserId()const void DeleteUnionCasServiceRequest::setSrcUserId(const std::string& srcUserId) { srcUserId_ = srcUserId; - setParameter("SrcUserId", srcUserId); + setCoreParameter("SrcUserId", srcUserId); } std::string DeleteUnionCasServiceRequest::getCasServiceId()const @@ -77,6 +77,6 @@ std::string DeleteUnionCasServiceRequest::getCasServiceId()const void DeleteUnionCasServiceRequest::setCasServiceId(const std::string& casServiceId) { casServiceId_ = casServiceId; - setParameter("CasServiceId", casServiceId); + setCoreParameter("CasServiceId", casServiceId); } diff --git a/csb/src/model/DeleteUnionCasServiceResult.cc b/csb/src/model/DeleteUnionCasServiceResult.cc index cf5dda839..527a01542 100644 --- a/csb/src/model/DeleteUnionCasServiceResult.cc +++ b/csb/src/model/DeleteUnionCasServiceResult.cc @@ -35,10 +35,13 @@ DeleteUnionCasServiceResult::~DeleteUnionCasServiceResult() void DeleteUnionCasServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/FindApprovalOrderListRequest.cc b/csb/src/model/FindApprovalOrderListRequest.cc index 0446eb204..9c0c6ab2d 100644 --- a/csb/src/model/FindApprovalOrderListRequest.cc +++ b/csb/src/model/FindApprovalOrderListRequest.cc @@ -33,7 +33,7 @@ std::string FindApprovalOrderListRequest::getProjectName()const void FindApprovalOrderListRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } std::string FindApprovalOrderListRequest::getRegionId()const @@ -44,7 +44,18 @@ std::string FindApprovalOrderListRequest::getRegionId()const void FindApprovalOrderListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); +} + +long FindApprovalOrderListRequest::getCsbId()const +{ + return csbId_; +} + +void FindApprovalOrderListRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setCoreParameter("CsbId", std::to_string(csbId)); } std::string FindApprovalOrderListRequest::getAlias()const @@ -55,7 +66,7 @@ std::string FindApprovalOrderListRequest::getAlias()const void FindApprovalOrderListRequest::setAlias(const std::string& alias) { alias_ = alias; - setParameter("Alias", alias); + setCoreParameter("Alias", alias); } std::string FindApprovalOrderListRequest::getServiceName()const @@ -66,18 +77,7 @@ std::string FindApprovalOrderListRequest::getServiceName()const void FindApprovalOrderListRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); -} - -int FindApprovalOrderListRequest::getPageNum()const -{ - return pageNum_; -} - -void FindApprovalOrderListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("ServiceName", serviceName); } long FindApprovalOrderListRequest::getServiceId()const @@ -88,7 +88,18 @@ long FindApprovalOrderListRequest::getServiceId()const void FindApprovalOrderListRequest::setServiceId(long serviceId) { serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + setCoreParameter("ServiceId", std::to_string(serviceId)); +} + +int FindApprovalOrderListRequest::getPageNum()const +{ + return pageNum_; +} + +void FindApprovalOrderListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); } bool FindApprovalOrderListRequest::getOnlyPending()const @@ -99,6 +110,6 @@ bool FindApprovalOrderListRequest::getOnlyPending()const void FindApprovalOrderListRequest::setOnlyPending(bool onlyPending) { onlyPending_ = onlyPending; - setParameter("OnlyPending", std::to_string(onlyPending)); + setCoreParameter("OnlyPending", onlyPending ? "true" : "false"); } diff --git a/csb/src/model/FindApprovalOrderListResult.cc b/csb/src/model/FindApprovalOrderListResult.cc index 18585d87b..6bd985945 100644 --- a/csb/src/model/FindApprovalOrderListResult.cc +++ b/csb/src/model/FindApprovalOrderListResult.cc @@ -35,10 +35,13 @@ FindApprovalOrderListResult::~FindApprovalOrderListResult() void FindApprovalOrderListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/FindApproveServiceListRequest.cc b/csb/src/model/FindApproveServiceListRequest.cc index 7d3593045..99e4052c6 100644 --- a/csb/src/model/FindApproveServiceListRequest.cc +++ b/csb/src/model/FindApproveServiceListRequest.cc @@ -33,7 +33,7 @@ std::string FindApproveServiceListRequest::getProjectName()const void FindApproveServiceListRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } std::string FindApproveServiceListRequest::getApproveLevel()const @@ -44,7 +44,7 @@ std::string FindApproveServiceListRequest::getApproveLevel()const void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel) { approveLevel_ = approveLevel; - setParameter("ApproveLevel", approveLevel); + setCoreParameter("ApproveLevel", approveLevel); } bool FindApproveServiceListRequest::getShowDelService()const @@ -55,7 +55,7 @@ bool FindApproveServiceListRequest::getShowDelService()const void FindApproveServiceListRequest::setShowDelService(bool showDelService) { showDelService_ = showDelService; - setParameter("ShowDelService", std::to_string(showDelService)); + setCoreParameter("ShowDelService", showDelService ? "true" : "false"); } long FindApproveServiceListRequest::getCsbId()const @@ -66,7 +66,7 @@ long FindApproveServiceListRequest::getCsbId()const void FindApproveServiceListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string FindApproveServiceListRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string FindApproveServiceListRequest::getRegionId()const void FindApproveServiceListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string FindApproveServiceListRequest::getAlias()const @@ -88,7 +88,7 @@ std::string FindApproveServiceListRequest::getAlias()const void FindApproveServiceListRequest::setAlias(const std::string& alias) { alias_ = alias; - setParameter("Alias", alias); + setCoreParameter("Alias", alias); } std::string FindApproveServiceListRequest::getServiceName()const @@ -99,6 +99,6 @@ std::string FindApproveServiceListRequest::getServiceName()const void FindApproveServiceListRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } diff --git a/csb/src/model/FindApproveServiceListResult.cc b/csb/src/model/FindApproveServiceListResult.cc index 4e918446b..4cfcfa889 100644 --- a/csb/src/model/FindApproveServiceListResult.cc +++ b/csb/src/model/FindApproveServiceListResult.cc @@ -35,10 +35,13 @@ FindApproveServiceListResult::~FindApproveServiceListResult() void FindApproveServiceListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Total"].isNull()) diff --git a/csb/src/model/FindCredentialsListRequest.cc b/csb/src/model/FindCredentialsListRequest.cc index 2b5cb5843..e1e80d5b3 100644 --- a/csb/src/model/FindCredentialsListRequest.cc +++ b/csb/src/model/FindCredentialsListRequest.cc @@ -33,7 +33,7 @@ std::string FindCredentialsListRequest::getRegionId()const void FindCredentialsListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long FindCredentialsListRequest::getCsbId()const @@ -44,7 +44,7 @@ long FindCredentialsListRequest::getCsbId()const void FindCredentialsListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } int FindCredentialsListRequest::getPageNum()const @@ -55,7 +55,7 @@ int FindCredentialsListRequest::getPageNum()const void FindCredentialsListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string FindCredentialsListRequest::getGroupName()const @@ -66,6 +66,6 @@ std::string FindCredentialsListRequest::getGroupName()const void FindCredentialsListRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/csb/src/model/FindCredentialsListResult.cc b/csb/src/model/FindCredentialsListResult.cc index d3f64547b..6cbe3e1e4 100644 --- a/csb/src/model/FindCredentialsListResult.cc +++ b/csb/src/model/FindCredentialsListResult.cc @@ -35,10 +35,13 @@ FindCredentialsListResult::~FindCredentialsListResult() void FindCredentialsListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/FindInstanceListRequest.cc b/csb/src/model/FindInstanceListRequest.cc index 200c45504..15790dd1b 100644 --- a/csb/src/model/FindInstanceListRequest.cc +++ b/csb/src/model/FindInstanceListRequest.cc @@ -33,7 +33,7 @@ std::string FindInstanceListRequest::getRegionId()const void FindInstanceListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string FindInstanceListRequest::getSearchTxt()const @@ -44,7 +44,7 @@ std::string FindInstanceListRequest::getSearchTxt()const void FindInstanceListRequest::setSearchTxt(const std::string& searchTxt) { searchTxt_ = searchTxt; - setParameter("SearchTxt", searchTxt); + setCoreParameter("SearchTxt", searchTxt); } long FindInstanceListRequest::getCsbId()const @@ -55,7 +55,7 @@ long FindInstanceListRequest::getCsbId()const void FindInstanceListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } int FindInstanceListRequest::getPageNum()const @@ -66,7 +66,7 @@ int FindInstanceListRequest::getPageNum()const void FindInstanceListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } int FindInstanceListRequest::getStatus()const @@ -77,6 +77,6 @@ int FindInstanceListRequest::getStatus()const void FindInstanceListRequest::setStatus(int status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", std::to_string(status)); } diff --git a/csb/src/model/FindInstanceListResult.cc b/csb/src/model/FindInstanceListResult.cc index aeaa343e6..25322ce27 100644 --- a/csb/src/model/FindInstanceListResult.cc +++ b/csb/src/model/FindInstanceListResult.cc @@ -35,10 +35,13 @@ FindInstanceListResult::~FindInstanceListResult() void FindInstanceListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/FindOrderableListRequest.cc b/csb/src/model/FindOrderableListRequest.cc index bf36e9617..91ef73039 100644 --- a/csb/src/model/FindOrderableListRequest.cc +++ b/csb/src/model/FindOrderableListRequest.cc @@ -33,7 +33,7 @@ std::string FindOrderableListRequest::getProjectName()const void FindOrderableListRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } long FindOrderableListRequest::getCsbId()const @@ -44,7 +44,7 @@ long FindOrderableListRequest::getCsbId()const void FindOrderableListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string FindOrderableListRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string FindOrderableListRequest::getRegionId()const void FindOrderableListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string FindOrderableListRequest::getAlias()const @@ -66,7 +66,7 @@ std::string FindOrderableListRequest::getAlias()const void FindOrderableListRequest::setAlias(const std::string& alias) { alias_ = alias; - setParameter("Alias", alias); + setCoreParameter("Alias", alias); } std::string FindOrderableListRequest::getServiceName()const @@ -77,7 +77,7 @@ std::string FindOrderableListRequest::getServiceName()const void FindOrderableListRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } int FindOrderableListRequest::getPageNum()const @@ -88,6 +88,6 @@ int FindOrderableListRequest::getPageNum()const void FindOrderableListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/csb/src/model/FindOrderableListResult.cc b/csb/src/model/FindOrderableListResult.cc index e5ae955d9..9d98a2523 100644 --- a/csb/src/model/FindOrderableListResult.cc +++ b/csb/src/model/FindOrderableListResult.cc @@ -35,10 +35,13 @@ FindOrderableListResult::~FindOrderableListResult() void FindOrderableListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/FindOrderedListRequest.cc b/csb/src/model/FindOrderedListRequest.cc index da4f66d33..dc92be1fc 100644 --- a/csb/src/model/FindOrderedListRequest.cc +++ b/csb/src/model/FindOrderedListRequest.cc @@ -33,7 +33,7 @@ std::string FindOrderedListRequest::getProjectName()const void FindOrderedListRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } bool FindOrderedListRequest::getShowDelOrder()const @@ -44,7 +44,7 @@ bool FindOrderedListRequest::getShowDelOrder()const void FindOrderedListRequest::setShowDelOrder(bool showDelOrder) { showDelOrder_ = showDelOrder; - setParameter("ShowDelOrder", std::to_string(showDelOrder)); + setCoreParameter("ShowDelOrder", showDelOrder ? "true" : "false"); } std::string FindOrderedListRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string FindOrderedListRequest::getRegionId()const void FindOrderedListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long FindOrderedListRequest::getCsbId()const @@ -66,7 +66,7 @@ long FindOrderedListRequest::getCsbId()const void FindOrderedListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string FindOrderedListRequest::getAlias()const @@ -77,7 +77,7 @@ std::string FindOrderedListRequest::getAlias()const void FindOrderedListRequest::setAlias(const std::string& alias) { alias_ = alias; - setParameter("Alias", alias); + setCoreParameter("Alias", alias); } std::string FindOrderedListRequest::getServiceName()const @@ -88,7 +88,7 @@ std::string FindOrderedListRequest::getServiceName()const void FindOrderedListRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } int FindOrderedListRequest::getPageNum()const @@ -99,7 +99,7 @@ int FindOrderedListRequest::getPageNum()const void FindOrderedListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } long FindOrderedListRequest::getServiceId()const @@ -110,7 +110,7 @@ long FindOrderedListRequest::getServiceId()const void FindOrderedListRequest::setServiceId(long serviceId) { serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + setCoreParameter("ServiceId", std::to_string(serviceId)); } std::string FindOrderedListRequest::getStatus()const @@ -121,6 +121,6 @@ std::string FindOrderedListRequest::getStatus()const void FindOrderedListRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/csb/src/model/FindOrderedListResult.cc b/csb/src/model/FindOrderedListResult.cc index 2898e77e9..ac361e6b2 100644 --- a/csb/src/model/FindOrderedListResult.cc +++ b/csb/src/model/FindOrderedListResult.cc @@ -35,10 +35,13 @@ FindOrderedListResult::~FindOrderedListResult() void FindOrderedListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/FindProjectListRequest.cc b/csb/src/model/FindProjectListRequest.cc index e339d2f98..5259e3430 100644 --- a/csb/src/model/FindProjectListRequest.cc +++ b/csb/src/model/FindProjectListRequest.cc @@ -33,7 +33,7 @@ std::string FindProjectListRequest::getProjectName()const void FindProjectListRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } std::string FindProjectListRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string FindProjectListRequest::getRegionId()const void FindProjectListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long FindProjectListRequest::getCsbId()const @@ -55,7 +55,7 @@ long FindProjectListRequest::getCsbId()const void FindProjectListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } int FindProjectListRequest::getPageNum()const @@ -66,6 +66,6 @@ int FindProjectListRequest::getPageNum()const void FindProjectListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/csb/src/model/FindProjectListResult.cc b/csb/src/model/FindProjectListResult.cc index 9031ee6ce..6c7672b75 100644 --- a/csb/src/model/FindProjectListResult.cc +++ b/csb/src/model/FindProjectListResult.cc @@ -35,10 +35,13 @@ FindProjectListResult::~FindProjectListResult() void FindProjectListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/FindProjectsNameListRequest.cc b/csb/src/model/FindProjectsNameListRequest.cc index 55e578e62..1266bac69 100644 --- a/csb/src/model/FindProjectsNameListRequest.cc +++ b/csb/src/model/FindProjectsNameListRequest.cc @@ -33,7 +33,7 @@ std::string FindProjectsNameListRequest::getOperationFlag()const void FindProjectsNameListRequest::setOperationFlag(const std::string& operationFlag) { operationFlag_ = operationFlag; - setParameter("OperationFlag", operationFlag); + setCoreParameter("OperationFlag", operationFlag); } std::string FindProjectsNameListRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string FindProjectsNameListRequest::getRegionId()const void FindProjectsNameListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long FindProjectsNameListRequest::getCsbId()const @@ -55,6 +55,6 @@ long FindProjectsNameListRequest::getCsbId()const void FindProjectsNameListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/FindProjectsNameListResult.cc b/csb/src/model/FindProjectsNameListResult.cc index c91123f60..6d6d260d3 100644 --- a/csb/src/model/FindProjectsNameListResult.cc +++ b/csb/src/model/FindProjectsNameListResult.cc @@ -35,10 +35,13 @@ FindProjectsNameListResult::~FindProjectsNameListResult() void FindProjectsNameListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allProjectNameList = dataNode["ProjectNameList"]["ProjectName"]; diff --git a/csb/src/model/FindServiceListRequest.cc b/csb/src/model/FindServiceListRequest.cc index f8b1a05bb..7889b864a 100644 --- a/csb/src/model/FindServiceListRequest.cc +++ b/csb/src/model/FindServiceListRequest.cc @@ -33,7 +33,7 @@ std::string FindServiceListRequest::getProjectName()const void FindServiceListRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } bool FindServiceListRequest::getShowDelService()const @@ -44,7 +44,7 @@ bool FindServiceListRequest::getShowDelService()const void FindServiceListRequest::setShowDelService(bool showDelService) { showDelService_ = showDelService; - setParameter("ShowDelService", std::to_string(showDelService)); + setCoreParameter("ShowDelService", showDelService ? "true" : "false"); } int FindServiceListRequest::getCasShowType()const @@ -55,7 +55,7 @@ int FindServiceListRequest::getCasShowType()const void FindServiceListRequest::setCasShowType(int casShowType) { casShowType_ = casShowType; - setParameter("CasShowType", std::to_string(casShowType)); + setCoreParameter("CasShowType", std::to_string(casShowType)); } long FindServiceListRequest::getCsbId()const @@ -66,7 +66,7 @@ long FindServiceListRequest::getCsbId()const void FindServiceListRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string FindServiceListRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string FindServiceListRequest::getRegionId()const void FindServiceListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string FindServiceListRequest::getAlias()const @@ -88,7 +88,7 @@ std::string FindServiceListRequest::getAlias()const void FindServiceListRequest::setAlias(const std::string& alias) { alias_ = alias; - setParameter("Alias", alias); + setCoreParameter("Alias", alias); } std::string FindServiceListRequest::getServiceName()const @@ -99,7 +99,7 @@ std::string FindServiceListRequest::getServiceName()const void FindServiceListRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } int FindServiceListRequest::getPageNum()const @@ -110,6 +110,6 @@ int FindServiceListRequest::getPageNum()const void FindServiceListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/csb/src/model/FindServiceListResult.cc b/csb/src/model/FindServiceListResult.cc index 5a7f33781..64f5c7b4b 100644 --- a/csb/src/model/FindServiceListResult.cc +++ b/csb/src/model/FindServiceListResult.cc @@ -35,10 +35,13 @@ FindServiceListResult::~FindServiceListResult() void FindServiceListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/FindServiceStatisticalDataRequest.cc b/csb/src/model/FindServiceStatisticalDataRequest.cc index 0fe16d73a..fa4b33db5 100644 --- a/csb/src/model/FindServiceStatisticalDataRequest.cc +++ b/csb/src/model/FindServiceStatisticalDataRequest.cc @@ -33,7 +33,7 @@ long FindServiceStatisticalDataRequest::getCsbId()const void FindServiceStatisticalDataRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } std::string FindServiceStatisticalDataRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string FindServiceStatisticalDataRequest::getRegionId()const void FindServiceStatisticalDataRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long FindServiceStatisticalDataRequest::getEndTime()const @@ -55,7 +55,7 @@ long FindServiceStatisticalDataRequest::getEndTime()const void FindServiceStatisticalDataRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } std::string FindServiceStatisticalDataRequest::getServiceName()const @@ -66,7 +66,7 @@ std::string FindServiceStatisticalDataRequest::getServiceName()const void FindServiceStatisticalDataRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } long FindServiceStatisticalDataRequest::getStartTime()const @@ -77,6 +77,6 @@ long FindServiceStatisticalDataRequest::getStartTime()const void FindServiceStatisticalDataRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } diff --git a/csb/src/model/FindServiceStatisticalDataResult.cc b/csb/src/model/FindServiceStatisticalDataResult.cc index 696d29ba7..ce3da8f29 100644 --- a/csb/src/model/FindServiceStatisticalDataResult.cc +++ b/csb/src/model/FindServiceStatisticalDataResult.cc @@ -35,10 +35,13 @@ FindServiceStatisticalDataResult::~FindServiceStatisticalDataResult() void FindServiceStatisticalDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["CurrentPage"].isNull()) diff --git a/csb/src/model/GetInstanceRequest.cc b/csb/src/model/GetInstanceRequest.cc index 89089807a..24f09bd15 100644 --- a/csb/src/model/GetInstanceRequest.cc +++ b/csb/src/model/GetInstanceRequest.cc @@ -33,7 +33,7 @@ std::string GetInstanceRequest::getRegionId()const void GetInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long GetInstanceRequest::getCsbId()const @@ -44,6 +44,6 @@ long GetInstanceRequest::getCsbId()const void GetInstanceRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/GetInstanceResult.cc b/csb/src/model/GetInstanceResult.cc index bd7febd6a..5fa9ab0e2 100644 --- a/csb/src/model/GetInstanceResult.cc +++ b/csb/src/model/GetInstanceResult.cc @@ -35,10 +35,13 @@ GetInstanceResult::~GetInstanceResult() void GetInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto instanceNode = dataNode["Instance"]; diff --git a/csb/src/model/GetOrderRequest.cc b/csb/src/model/GetOrderRequest.cc index 44ed46425..12c4c065c 100644 --- a/csb/src/model/GetOrderRequest.cc +++ b/csb/src/model/GetOrderRequest.cc @@ -33,7 +33,7 @@ std::string GetOrderRequest::getRegionId()const void GetOrderRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long GetOrderRequest::getOrderId()const @@ -44,7 +44,7 @@ long GetOrderRequest::getOrderId()const void GetOrderRequest::setOrderId(long orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string GetOrderRequest::getServiceName()const @@ -55,6 +55,6 @@ std::string GetOrderRequest::getServiceName()const void GetOrderRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } diff --git a/csb/src/model/GetOrderResult.cc b/csb/src/model/GetOrderResult.cc index 81793e6ba..c9ca55074 100644 --- a/csb/src/model/GetOrderResult.cc +++ b/csb/src/model/GetOrderResult.cc @@ -35,10 +35,13 @@ GetOrderResult::~GetOrderResult() void GetOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto orderNode = dataNode["Order"]; diff --git a/csb/src/model/GetProjectRequest.cc b/csb/src/model/GetProjectRequest.cc index 5ca38e37b..6e5be418f 100644 --- a/csb/src/model/GetProjectRequest.cc +++ b/csb/src/model/GetProjectRequest.cc @@ -33,7 +33,7 @@ std::string GetProjectRequest::getProjectName()const void GetProjectRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } std::string GetProjectRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string GetProjectRequest::getRegionId()const void GetProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long GetProjectRequest::getCsbId()const @@ -55,6 +55,6 @@ long GetProjectRequest::getCsbId()const void GetProjectRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/GetProjectResult.cc b/csb/src/model/GetProjectResult.cc index 58fef9060..b563180b8 100644 --- a/csb/src/model/GetProjectResult.cc +++ b/csb/src/model/GetProjectResult.cc @@ -35,10 +35,13 @@ GetProjectResult::~GetProjectResult() void GetProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allProjectList = value["ProjectList"]["Project"]; diff --git a/csb/src/model/GetServiceRequest.cc b/csb/src/model/GetServiceRequest.cc index 880320306..d77393b93 100644 --- a/csb/src/model/GetServiceRequest.cc +++ b/csb/src/model/GetServiceRequest.cc @@ -33,7 +33,7 @@ std::string GetServiceRequest::getRegionId()const void GetServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long GetServiceRequest::getCsbId()const @@ -44,7 +44,7 @@ long GetServiceRequest::getCsbId()const void GetServiceRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } long GetServiceRequest::getServiceId()const @@ -55,6 +55,6 @@ long GetServiceRequest::getServiceId()const void GetServiceRequest::setServiceId(long serviceId) { serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + setCoreParameter("ServiceId", std::to_string(serviceId)); } diff --git a/csb/src/model/GetServiceResult.cc b/csb/src/model/GetServiceResult.cc index fe206a5b4..5ae738a61 100644 --- a/csb/src/model/GetServiceResult.cc +++ b/csb/src/model/GetServiceResult.cc @@ -35,10 +35,13 @@ GetServiceResult::~GetServiceResult() void GetServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto serviceNode = dataNode["Service"]; diff --git a/csb/src/model/ImportCredentialsRequest.cc b/csb/src/model/ImportCredentialsRequest.cc new file mode 100644 index 000000000..56ef19510 --- /dev/null +++ b/csb/src/model/ImportCredentialsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::CSB::Model::ImportCredentialsRequest; + +ImportCredentialsRequest::ImportCredentialsRequest() : + RpcServiceRequest("csb", "2017-11-18", "ImportCredentials") +{} + +ImportCredentialsRequest::~ImportCredentialsRequest() +{} + +std::string ImportCredentialsRequest::getData()const +{ + return data_; +} + +void ImportCredentialsRequest::setData(const std::string& data) +{ + data_ = data; + setCoreParameter("Data", data); +} + +long ImportCredentialsRequest::getCsbId()const +{ + return csbId_; +} + +void ImportCredentialsRequest::setCsbId(long csbId) +{ + csbId_ = csbId; + setCoreParameter("CsbId", std::to_string(csbId)); +} + +std::string ImportCredentialsRequest::getRegionId()const +{ + return regionId_; +} + +void ImportCredentialsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + diff --git a/csb/src/model/ImportCredentialsResult.cc b/csb/src/model/ImportCredentialsResult.cc new file mode 100644 index 000000000..a4f59eb0f --- /dev/null +++ b/csb/src/model/ImportCredentialsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CSB; +using namespace AlibabaCloud::CSB::Model; + +ImportCredentialsResult::ImportCredentialsResult() : + ServiceResult() +{} + +ImportCredentialsResult::ImportCredentialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportCredentialsResult::~ImportCredentialsResult() +{} + +void ImportCredentialsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto credentialsNode = dataNode["Credentials"]; + if(!credentialsNode["Id"].isNull()) + data_.credentials.id = std::stol(credentialsNode["Id"].asString()); + auto currentCredentialNode = credentialsNode["CurrentCredential"]; + if(!currentCredentialNode["SecretKey"].isNull()) + data_.credentials.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString(); + if(!currentCredentialNode["AccessKey"].isNull()) + data_.credentials.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ImportCredentialsResult::getMessage()const +{ + return message_; +} + +ImportCredentialsResult::Data ImportCredentialsResult::getData()const +{ + return data_; +} + +int ImportCredentialsResult::getCode()const +{ + return code_; +} + diff --git a/csb/src/model/PublishCasServiceRequest.cc b/csb/src/model/PublishCasServiceRequest.cc index c9eb8ae10..bf365f304 100644 --- a/csb/src/model/PublishCasServiceRequest.cc +++ b/csb/src/model/PublishCasServiceRequest.cc @@ -33,7 +33,7 @@ std::string PublishCasServiceRequest::getCasCsbName()const void PublishCasServiceRequest::setCasCsbName(const std::string& casCsbName) { casCsbName_ = casCsbName; - setParameter("CasCsbName", casCsbName); + setCoreParameter("CasCsbName", casCsbName); } std::string PublishCasServiceRequest::getData()const @@ -44,7 +44,7 @@ std::string PublishCasServiceRequest::getData()const void PublishCasServiceRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string PublishCasServiceRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string PublishCasServiceRequest::getRegionId()const void PublishCasServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/PublishCasServiceResult.cc b/csb/src/model/PublishCasServiceResult.cc index 0136d0a3e..cdba5575e 100644 --- a/csb/src/model/PublishCasServiceResult.cc +++ b/csb/src/model/PublishCasServiceResult.cc @@ -35,10 +35,13 @@ PublishCasServiceResult::~PublishCasServiceResult() void PublishCasServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/PublishUnionCasServiceRequest.cc b/csb/src/model/PublishUnionCasServiceRequest.cc index 6367d1070..9601976a3 100644 --- a/csb/src/model/PublishUnionCasServiceRequest.cc +++ b/csb/src/model/PublishUnionCasServiceRequest.cc @@ -33,7 +33,7 @@ std::string PublishUnionCasServiceRequest::getCasCsbName()const void PublishUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName) { casCsbName_ = casCsbName; - setParameter("CasCsbName", casCsbName); + setCoreParameter("CasCsbName", casCsbName); } std::string PublishUnionCasServiceRequest::getData()const @@ -44,7 +44,7 @@ std::string PublishUnionCasServiceRequest::getData()const void PublishUnionCasServiceRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string PublishUnionCasServiceRequest::getRegionId()const @@ -55,6 +55,6 @@ std::string PublishUnionCasServiceRequest::getRegionId()const void PublishUnionCasServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/PublishUnionCasServiceResult.cc b/csb/src/model/PublishUnionCasServiceResult.cc index 30eff45f3..72b2c841b 100644 --- a/csb/src/model/PublishUnionCasServiceResult.cc +++ b/csb/src/model/PublishUnionCasServiceResult.cc @@ -35,10 +35,13 @@ PublishUnionCasServiceResult::~PublishUnionCasServiceResult() void PublishUnionCasServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/RenewCredentialsRequest.cc b/csb/src/model/RenewCredentialsRequest.cc index 564885823..a02ef6d5d 100644 --- a/csb/src/model/RenewCredentialsRequest.cc +++ b/csb/src/model/RenewCredentialsRequest.cc @@ -33,7 +33,7 @@ std::string RenewCredentialsRequest::getRegionId()const void RenewCredentialsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long RenewCredentialsRequest::getCredentialId()const @@ -44,6 +44,6 @@ long RenewCredentialsRequest::getCredentialId()const void RenewCredentialsRequest::setCredentialId(long credentialId) { credentialId_ = credentialId; - setParameter("CredentialId", std::to_string(credentialId)); + setCoreParameter("CredentialId", std::to_string(credentialId)); } diff --git a/csb/src/model/RenewCredentialsResult.cc b/csb/src/model/RenewCredentialsResult.cc index 8cb846eb7..e9082be4f 100644 --- a/csb/src/model/RenewCredentialsResult.cc +++ b/csb/src/model/RenewCredentialsResult.cc @@ -35,10 +35,13 @@ RenewCredentialsResult::~RenewCredentialsResult() void RenewCredentialsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto credentialsNode = dataNode["Credentials"]; diff --git a/csb/src/model/ReplaceCredentialRequest.cc b/csb/src/model/ReplaceCredentialRequest.cc index f1f88a72f..a53ad1d8b 100644 --- a/csb/src/model/ReplaceCredentialRequest.cc +++ b/csb/src/model/ReplaceCredentialRequest.cc @@ -33,7 +33,7 @@ std::string ReplaceCredentialRequest::getRegionId()const void ReplaceCredentialRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long ReplaceCredentialRequest::getCredentialId()const @@ -44,6 +44,6 @@ long ReplaceCredentialRequest::getCredentialId()const void ReplaceCredentialRequest::setCredentialId(long credentialId) { credentialId_ = credentialId; - setParameter("CredentialId", std::to_string(credentialId)); + setCoreParameter("CredentialId", std::to_string(credentialId)); } diff --git a/csb/src/model/ReplaceCredentialResult.cc b/csb/src/model/ReplaceCredentialResult.cc index a288add73..63d8e7abe 100644 --- a/csb/src/model/ReplaceCredentialResult.cc +++ b/csb/src/model/ReplaceCredentialResult.cc @@ -35,10 +35,13 @@ ReplaceCredentialResult::~ReplaceCredentialResult() void ReplaceCredentialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto credentialsNode = dataNode["Credentials"]; diff --git a/csb/src/model/UpdateOrderListRequest.cc b/csb/src/model/UpdateOrderListRequest.cc index 4b8c8ac0b..a47082887 100644 --- a/csb/src/model/UpdateOrderListRequest.cc +++ b/csb/src/model/UpdateOrderListRequest.cc @@ -33,7 +33,7 @@ std::string UpdateOrderListRequest::getData()const void UpdateOrderListRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string UpdateOrderListRequest::getRegionId()const @@ -44,6 +44,6 @@ std::string UpdateOrderListRequest::getRegionId()const void UpdateOrderListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/csb/src/model/UpdateOrderListResult.cc b/csb/src/model/UpdateOrderListResult.cc index 7723cf513..150d67c90 100644 --- a/csb/src/model/UpdateOrderListResult.cc +++ b/csb/src/model/UpdateOrderListResult.cc @@ -35,10 +35,13 @@ UpdateOrderListResult::~UpdateOrderListResult() void UpdateOrderListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["UpdateCount"].isNull()) diff --git a/csb/src/model/UpdateOrderRequest.cc b/csb/src/model/UpdateOrderRequest.cc index 9f6d55d35..981892038 100644 --- a/csb/src/model/UpdateOrderRequest.cc +++ b/csb/src/model/UpdateOrderRequest.cc @@ -33,7 +33,7 @@ std::string UpdateOrderRequest::getData()const void UpdateOrderRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string UpdateOrderRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateOrderRequest::getRegionId()const void UpdateOrderRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateOrderRequest::getCsbId()const @@ -55,6 +55,6 @@ long UpdateOrderRequest::getCsbId()const void UpdateOrderRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/UpdateOrderResult.cc b/csb/src/model/UpdateOrderResult.cc index b9790b5df..49494e586 100644 --- a/csb/src/model/UpdateOrderResult.cc +++ b/csb/src/model/UpdateOrderResult.cc @@ -35,10 +35,13 @@ UpdateOrderResult::~UpdateOrderResult() void UpdateOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/UpdateProjectListStatusRequest.cc b/csb/src/model/UpdateProjectListStatusRequest.cc index a2462a19f..79a3875af 100644 --- a/csb/src/model/UpdateProjectListStatusRequest.cc +++ b/csb/src/model/UpdateProjectListStatusRequest.cc @@ -33,7 +33,7 @@ std::string UpdateProjectListStatusRequest::getData()const void UpdateProjectListStatusRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string UpdateProjectListStatusRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateProjectListStatusRequest::getRegionId()const void UpdateProjectListStatusRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateProjectListStatusRequest::getCsbId()const @@ -55,6 +55,6 @@ long UpdateProjectListStatusRequest::getCsbId()const void UpdateProjectListStatusRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/UpdateProjectListStatusResult.cc b/csb/src/model/UpdateProjectListStatusResult.cc index 05365d6c9..c2d506f33 100644 --- a/csb/src/model/UpdateProjectListStatusResult.cc +++ b/csb/src/model/UpdateProjectListStatusResult.cc @@ -35,10 +35,13 @@ UpdateProjectListStatusResult::~UpdateProjectListStatusResult() void UpdateProjectListStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/UpdateProjectRequest.cc b/csb/src/model/UpdateProjectRequest.cc index 87805da67..442abc597 100644 --- a/csb/src/model/UpdateProjectRequest.cc +++ b/csb/src/model/UpdateProjectRequest.cc @@ -33,7 +33,7 @@ std::string UpdateProjectRequest::getData()const void UpdateProjectRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string UpdateProjectRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateProjectRequest::getRegionId()const void UpdateProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateProjectRequest::getCsbId()const @@ -55,6 +55,6 @@ long UpdateProjectRequest::getCsbId()const void UpdateProjectRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/UpdateProjectResult.cc b/csb/src/model/UpdateProjectResult.cc index 910a8960b..688764f71 100644 --- a/csb/src/model/UpdateProjectResult.cc +++ b/csb/src/model/UpdateProjectResult.cc @@ -35,10 +35,13 @@ UpdateProjectResult::~UpdateProjectResult() void UpdateProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/UpdateServiceListStatusRequest.cc b/csb/src/model/UpdateServiceListStatusRequest.cc index d5b868590..e4deace46 100644 --- a/csb/src/model/UpdateServiceListStatusRequest.cc +++ b/csb/src/model/UpdateServiceListStatusRequest.cc @@ -33,7 +33,7 @@ std::string UpdateServiceListStatusRequest::getData()const void UpdateServiceListStatusRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string UpdateServiceListStatusRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateServiceListStatusRequest::getRegionId()const void UpdateServiceListStatusRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateServiceListStatusRequest::getCsbId()const @@ -55,6 +55,6 @@ long UpdateServiceListStatusRequest::getCsbId()const void UpdateServiceListStatusRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/UpdateServiceListStatusResult.cc b/csb/src/model/UpdateServiceListStatusResult.cc index cb810b3b0..881b54799 100644 --- a/csb/src/model/UpdateServiceListStatusResult.cc +++ b/csb/src/model/UpdateServiceListStatusResult.cc @@ -35,10 +35,13 @@ UpdateServiceListStatusResult::~UpdateServiceListStatusResult() void UpdateServiceListStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/UpdateServiceQPSRequest.cc b/csb/src/model/UpdateServiceQPSRequest.cc index a5fbbbabe..48476ba4c 100644 --- a/csb/src/model/UpdateServiceQPSRequest.cc +++ b/csb/src/model/UpdateServiceQPSRequest.cc @@ -33,7 +33,7 @@ std::string UpdateServiceQPSRequest::getRegionId()const void UpdateServiceQPSRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UpdateServiceQPSRequest::getQps()const @@ -44,7 +44,7 @@ std::string UpdateServiceQPSRequest::getQps()const void UpdateServiceQPSRequest::setQps(const std::string& qps) { qps_ = qps; - setParameter("Qps", qps); + setCoreParameter("Qps", qps); } long UpdateServiceQPSRequest::getServiceId()const @@ -55,6 +55,6 @@ long UpdateServiceQPSRequest::getServiceId()const void UpdateServiceQPSRequest::setServiceId(long serviceId) { serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); + setCoreParameter("ServiceId", std::to_string(serviceId)); } diff --git a/csb/src/model/UpdateServiceQPSResult.cc b/csb/src/model/UpdateServiceQPSResult.cc index 0b3836a6a..b4c870698 100644 --- a/csb/src/model/UpdateServiceQPSResult.cc +++ b/csb/src/model/UpdateServiceQPSResult.cc @@ -35,10 +35,13 @@ UpdateServiceQPSResult::~UpdateServiceQPSResult() void UpdateServiceQPSResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/csb/src/model/UpdateServiceRequest.cc b/csb/src/model/UpdateServiceRequest.cc index 0881fd22e..b7f66a779 100644 --- a/csb/src/model/UpdateServiceRequest.cc +++ b/csb/src/model/UpdateServiceRequest.cc @@ -33,7 +33,7 @@ std::string UpdateServiceRequest::getData()const void UpdateServiceRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string UpdateServiceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateServiceRequest::getRegionId()const void UpdateServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long UpdateServiceRequest::getCsbId()const @@ -55,6 +55,6 @@ long UpdateServiceRequest::getCsbId()const void UpdateServiceRequest::setCsbId(long csbId) { csbId_ = csbId; - setParameter("CsbId", std::to_string(csbId)); + setCoreParameter("CsbId", std::to_string(csbId)); } diff --git a/csb/src/model/UpdateServiceResult.cc b/csb/src/model/UpdateServiceResult.cc index a2a685eb1..ca0ebc245 100644 --- a/csb/src/model/UpdateServiceResult.cc +++ b/csb/src/model/UpdateServiceResult.cc @@ -35,10 +35,13 @@ UpdateServiceResult::~UpdateServiceResult() void UpdateServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/cusanalytic_sc_online/CMakeLists.txt b/cusanalytic_sc_online/CMakeLists.txt new file mode 100644 index 000000000..d35528c41 --- /dev/null +++ b/cusanalytic_sc_online/CMakeLists.txt @@ -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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(cusanalytic_sc_online_public_header + include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineClient.h + include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h ) + +set(cusanalytic_sc_online_public_header_model + include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsRequest.h + include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreResult.h + include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataRequest.h + include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetLocationsRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetLocationsResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataResult.h + include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsRequest.h + include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsResult.h + include/alibabacloud/cusanalytic_sc_online/model/GetEMapRequest.h + include/alibabacloud/cusanalytic_sc_online/model/GetEMapResult.h + include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgRequest.h + include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h ) + +set(cusanalytic_sc_online_src + src/Cusanalytic_sc_onlineClient.cc + src/model/DescribeLocationsRequest.cc + src/model/DescribeLocationsResult.cc + src/model/GetSupportStoreRequest.cc + src/model/GetSupportStoreResult.cc + src/model/DescribeActionDataRequest.cc + src/model/DescribeActionDataResult.cc + src/model/GetPortrayalRequest.cc + src/model/GetPortrayalResult.cc + src/model/GetHeatMapDataRequest.cc + src/model/GetHeatMapDataResult.cc + src/model/GetActionCursorRequest.cc + src/model/GetActionCursorResult.cc + src/model/GetImageUrlRequest.cc + src/model/GetImageUrlResult.cc + src/model/GetAnalyzePlaceDataRequest.cc + src/model/GetAnalyzePlaceDataResult.cc + src/model/GetOverviewDataRequest.cc + src/model/GetOverviewDataResult.cc + src/model/GetLocationsRequest.cc + src/model/GetLocationsResult.cc + src/model/GetAnalyzeCommodityDataRequest.cc + src/model/GetAnalyzeCommodityDataResult.cc + src/model/ListVisitorsRequest.cc + src/model/ListVisitorsResult.cc + src/model/GetEMapRequest.cc + src/model/GetEMapResult.cc + src/model/SearchPersonByImgRequest.cc + src/model/SearchPersonByImgResult.cc ) + +add_library(cusanalytic_sc_online ${LIB_TYPE} + ${cusanalytic_sc_online_public_header} + ${cusanalytic_sc_online_public_header_model} + ${cusanalytic_sc_online_src}) + +set_target_properties(cusanalytic_sc_online + 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}cusanalytic_sc_online + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(cusanalytic_sc_online + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_LIBRARY) +endif() + +target_include_directories(cusanalytic_sc_online + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(cusanalytic_sc_online + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(cusanalytic_sc_online + jsoncpp) + target_include_directories(cusanalytic_sc_online + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(cusanalytic_sc_online + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(cusanalytic_sc_online + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(cusanalytic_sc_online + PRIVATE /usr/include/jsoncpp) + target_link_libraries(cusanalytic_sc_online + jsoncpp) +endif() + +install(FILES ${cusanalytic_sc_online_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cusanalytic_sc_online) +install(FILES ${cusanalytic_sc_online_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cusanalytic_sc_online/model) +install(TARGETS cusanalytic_sc_online + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineClient.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineClient.h index 3cd3c21b0..cc5b85a4d 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineClient.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineClient.h @@ -1,41 +1,47 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_ - -#include -#include -#include -#include -#include "Cusanalytic_sc_onlineExport.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_ + +#include +#include +#include +#include +#include "Cusanalytic_sc_onlineExport.h" #include "model/DescribeLocationsRequest.h" #include "model/DescribeLocationsResult.h" -#include "model/GetOverviewDataRequest.h" -#include "model/GetOverviewDataResult.h" #include "model/GetSupportStoreRequest.h" #include "model/GetSupportStoreResult.h" #include "model/DescribeActionDataRequest.h" #include "model/DescribeActionDataResult.h" -#include "model/GetLocationsRequest.h" -#include "model/GetLocationsResult.h" #include "model/GetPortrayalRequest.h" #include "model/GetPortrayalResult.h" #include "model/GetHeatMapDataRequest.h" #include "model/GetHeatMapDataResult.h" +#include "model/GetActionCursorRequest.h" +#include "model/GetActionCursorResult.h" +#include "model/GetImageUrlRequest.h" +#include "model/GetImageUrlResult.h" +#include "model/GetAnalyzePlaceDataRequest.h" +#include "model/GetAnalyzePlaceDataResult.h" +#include "model/GetOverviewDataRequest.h" +#include "model/GetOverviewDataResult.h" +#include "model/GetLocationsRequest.h" +#include "model/GetLocationsResult.h" #include "model/GetAnalyzeCommodityDataRequest.h" #include "model/GetAnalyzeCommodityDataResult.h" #include "model/ListVisitorsRequest.h" @@ -44,99 +50,109 @@ #include "model/GetEMapResult.h" #include "model/SearchPersonByImgRequest.h" #include "model/SearchPersonByImgResult.h" -#include "model/GetAnalyzePlaceDataRequest.h" -#include "model/GetAnalyzePlaceDataResult.h" - - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT Cusanalytic_sc_onlineClient : public RpcServiceClient - { - public: - typedef Outcome DescribeLocationsOutcome; - typedef std::future DescribeLocationsOutcomeCallable; + + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT Cusanalytic_sc_onlineClient : public RpcServiceClient + { + public: + typedef Outcome DescribeLocationsOutcome; + typedef std::future DescribeLocationsOutcomeCallable; typedef std::function&)> DescribeLocationsAsyncHandler; - typedef Outcome GetOverviewDataOutcome; - typedef std::future GetOverviewDataOutcomeCallable; - typedef std::function&)> GetOverviewDataAsyncHandler; - typedef Outcome GetSupportStoreOutcome; - typedef std::future GetSupportStoreOutcomeCallable; + typedef Outcome GetSupportStoreOutcome; + typedef std::future GetSupportStoreOutcomeCallable; typedef std::function&)> GetSupportStoreAsyncHandler; - typedef Outcome DescribeActionDataOutcome; - typedef std::future DescribeActionDataOutcomeCallable; + typedef Outcome DescribeActionDataOutcome; + typedef std::future DescribeActionDataOutcomeCallable; typedef std::function&)> DescribeActionDataAsyncHandler; - typedef Outcome GetLocationsOutcome; - typedef std::future GetLocationsOutcomeCallable; - typedef std::function&)> GetLocationsAsyncHandler; - typedef Outcome GetPortrayalOutcome; - typedef std::future GetPortrayalOutcomeCallable; + typedef Outcome GetPortrayalOutcome; + typedef std::future GetPortrayalOutcomeCallable; typedef std::function&)> GetPortrayalAsyncHandler; - typedef Outcome GetHeatMapDataOutcome; - typedef std::future GetHeatMapDataOutcomeCallable; + typedef Outcome GetHeatMapDataOutcome; + typedef std::future GetHeatMapDataOutcomeCallable; typedef std::function&)> GetHeatMapDataAsyncHandler; - typedef Outcome GetAnalyzeCommodityDataOutcome; - typedef std::future GetAnalyzeCommodityDataOutcomeCallable; - typedef std::function&)> GetAnalyzeCommodityDataAsyncHandler; - typedef Outcome ListVisitorsOutcome; - typedef std::future ListVisitorsOutcomeCallable; - typedef std::function&)> ListVisitorsAsyncHandler; - typedef Outcome GetEMapOutcome; - typedef std::future GetEMapOutcomeCallable; - typedef std::function&)> GetEMapAsyncHandler; - typedef Outcome SearchPersonByImgOutcome; - typedef std::future SearchPersonByImgOutcomeCallable; - typedef std::function&)> SearchPersonByImgAsyncHandler; - typedef Outcome GetAnalyzePlaceDataOutcome; - typedef std::future GetAnalyzePlaceDataOutcomeCallable; + typedef Outcome GetActionCursorOutcome; + typedef std::future GetActionCursorOutcomeCallable; + typedef std::function&)> GetActionCursorAsyncHandler; + typedef Outcome GetImageUrlOutcome; + typedef std::future GetImageUrlOutcomeCallable; + typedef std::function&)> GetImageUrlAsyncHandler; + typedef Outcome GetAnalyzePlaceDataOutcome; + typedef std::future GetAnalyzePlaceDataOutcomeCallable; typedef std::function&)> GetAnalyzePlaceDataAsyncHandler; - - Cusanalytic_sc_onlineClient(const Credentials &credentials, const ClientConfiguration &configuration); - Cusanalytic_sc_onlineClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - Cusanalytic_sc_onlineClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~Cusanalytic_sc_onlineClient(); - DescribeLocationsOutcome describeLocations(const Model::DescribeLocationsRequest &request)const; - void describeLocationsAsync(const Model::DescribeLocationsRequest& request, const DescribeLocationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + typedef Outcome GetOverviewDataOutcome; + typedef std::future GetOverviewDataOutcomeCallable; + typedef std::function&)> GetOverviewDataAsyncHandler; + typedef Outcome GetLocationsOutcome; + typedef std::future GetLocationsOutcomeCallable; + typedef std::function&)> GetLocationsAsyncHandler; + typedef Outcome GetAnalyzeCommodityDataOutcome; + typedef std::future GetAnalyzeCommodityDataOutcomeCallable; + typedef std::function&)> GetAnalyzeCommodityDataAsyncHandler; + typedef Outcome ListVisitorsOutcome; + typedef std::future ListVisitorsOutcomeCallable; + typedef std::function&)> ListVisitorsAsyncHandler; + typedef Outcome GetEMapOutcome; + typedef std::future GetEMapOutcomeCallable; + typedef std::function&)> GetEMapAsyncHandler; + typedef Outcome SearchPersonByImgOutcome; + typedef std::future SearchPersonByImgOutcomeCallable; + typedef std::function&)> SearchPersonByImgAsyncHandler; + + Cusanalytic_sc_onlineClient(const Credentials &credentials, const ClientConfiguration &configuration); + Cusanalytic_sc_onlineClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Cusanalytic_sc_onlineClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Cusanalytic_sc_onlineClient(); + DescribeLocationsOutcome describeLocations(const Model::DescribeLocationsRequest &request)const; + void describeLocationsAsync(const Model::DescribeLocationsRequest& request, const DescribeLocationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLocationsOutcomeCallable describeLocationsCallable(const Model::DescribeLocationsRequest& request) const; - GetOverviewDataOutcome getOverviewData(const Model::GetOverviewDataRequest &request)const; - void getOverviewDataAsync(const Model::GetOverviewDataRequest& request, const GetOverviewDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOverviewDataOutcomeCallable getOverviewDataCallable(const Model::GetOverviewDataRequest& request) const; - GetSupportStoreOutcome getSupportStore(const Model::GetSupportStoreRequest &request)const; - void getSupportStoreAsync(const Model::GetSupportStoreRequest& request, const GetSupportStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSupportStoreOutcome getSupportStore(const Model::GetSupportStoreRequest &request)const; + void getSupportStoreAsync(const Model::GetSupportStoreRequest& request, const GetSupportStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSupportStoreOutcomeCallable getSupportStoreCallable(const Model::GetSupportStoreRequest& request) const; - DescribeActionDataOutcome describeActionData(const Model::DescribeActionDataRequest &request)const; - void describeActionDataAsync(const Model::DescribeActionDataRequest& request, const DescribeActionDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActionDataOutcome describeActionData(const Model::DescribeActionDataRequest &request)const; + void describeActionDataAsync(const Model::DescribeActionDataRequest& request, const DescribeActionDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeActionDataOutcomeCallable describeActionDataCallable(const Model::DescribeActionDataRequest& request) const; - GetLocationsOutcome getLocations(const Model::GetLocationsRequest &request)const; - void getLocationsAsync(const Model::GetLocationsRequest& request, const GetLocationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLocationsOutcomeCallable getLocationsCallable(const Model::GetLocationsRequest& request) const; - GetPortrayalOutcome getPortrayal(const Model::GetPortrayalRequest &request)const; - void getPortrayalAsync(const Model::GetPortrayalRequest& request, const GetPortrayalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPortrayalOutcome getPortrayal(const Model::GetPortrayalRequest &request)const; + void getPortrayalAsync(const Model::GetPortrayalRequest& request, const GetPortrayalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPortrayalOutcomeCallable getPortrayalCallable(const Model::GetPortrayalRequest& request) const; - GetHeatMapDataOutcome getHeatMapData(const Model::GetHeatMapDataRequest &request)const; - void getHeatMapDataAsync(const Model::GetHeatMapDataRequest& request, const GetHeatMapDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHeatMapDataOutcome getHeatMapData(const Model::GetHeatMapDataRequest &request)const; + void getHeatMapDataAsync(const Model::GetHeatMapDataRequest& request, const GetHeatMapDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetHeatMapDataOutcomeCallable getHeatMapDataCallable(const Model::GetHeatMapDataRequest& request) const; - GetAnalyzeCommodityDataOutcome getAnalyzeCommodityData(const Model::GetAnalyzeCommodityDataRequest &request)const; - void getAnalyzeCommodityDataAsync(const Model::GetAnalyzeCommodityDataRequest& request, const GetAnalyzeCommodityDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAnalyzeCommodityDataOutcomeCallable getAnalyzeCommodityDataCallable(const Model::GetAnalyzeCommodityDataRequest& request) const; - ListVisitorsOutcome listVisitors(const Model::ListVisitorsRequest &request)const; - void listVisitorsAsync(const Model::ListVisitorsRequest& request, const ListVisitorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListVisitorsOutcomeCallable listVisitorsCallable(const Model::ListVisitorsRequest& request) const; - GetEMapOutcome getEMap(const Model::GetEMapRequest &request)const; - void getEMapAsync(const Model::GetEMapRequest& request, const GetEMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetEMapOutcomeCallable getEMapCallable(const Model::GetEMapRequest& request) const; - SearchPersonByImgOutcome searchPersonByImg(const Model::SearchPersonByImgRequest &request)const; - void searchPersonByImgAsync(const Model::SearchPersonByImgRequest& request, const SearchPersonByImgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchPersonByImgOutcomeCallable searchPersonByImgCallable(const Model::SearchPersonByImgRequest& request) const; - GetAnalyzePlaceDataOutcome getAnalyzePlaceData(const Model::GetAnalyzePlaceDataRequest &request)const; - void getAnalyzePlaceDataAsync(const Model::GetAnalyzePlaceDataRequest& request, const GetAnalyzePlaceDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetActionCursorOutcome getActionCursor(const Model::GetActionCursorRequest &request)const; + void getActionCursorAsync(const Model::GetActionCursorRequest& request, const GetActionCursorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetActionCursorOutcomeCallable getActionCursorCallable(const Model::GetActionCursorRequest& request) const; + GetImageUrlOutcome getImageUrl(const Model::GetImageUrlRequest &request)const; + void getImageUrlAsync(const Model::GetImageUrlRequest& request, const GetImageUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageUrlOutcomeCallable getImageUrlCallable(const Model::GetImageUrlRequest& request) const; + GetAnalyzePlaceDataOutcome getAnalyzePlaceData(const Model::GetAnalyzePlaceDataRequest &request)const; + void getAnalyzePlaceDataAsync(const Model::GetAnalyzePlaceDataRequest& request, const GetAnalyzePlaceDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAnalyzePlaceDataOutcomeCallable getAnalyzePlaceDataCallable(const Model::GetAnalyzePlaceDataRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_ + GetOverviewDataOutcome getOverviewData(const Model::GetOverviewDataRequest &request)const; + void getOverviewDataAsync(const Model::GetOverviewDataRequest& request, const GetOverviewDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOverviewDataOutcomeCallable getOverviewDataCallable(const Model::GetOverviewDataRequest& request) const; + GetLocationsOutcome getLocations(const Model::GetLocationsRequest &request)const; + void getLocationsAsync(const Model::GetLocationsRequest& request, const GetLocationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLocationsOutcomeCallable getLocationsCallable(const Model::GetLocationsRequest& request) const; + GetAnalyzeCommodityDataOutcome getAnalyzeCommodityData(const Model::GetAnalyzeCommodityDataRequest &request)const; + void getAnalyzeCommodityDataAsync(const Model::GetAnalyzeCommodityDataRequest& request, const GetAnalyzeCommodityDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAnalyzeCommodityDataOutcomeCallable getAnalyzeCommodityDataCallable(const Model::GetAnalyzeCommodityDataRequest& request) const; + ListVisitorsOutcome listVisitors(const Model::ListVisitorsRequest &request)const; + void listVisitorsAsync(const Model::ListVisitorsRequest& request, const ListVisitorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVisitorsOutcomeCallable listVisitorsCallable(const Model::ListVisitorsRequest& request) const; + GetEMapOutcome getEMap(const Model::GetEMapRequest &request)const; + void getEMapAsync(const Model::GetEMapRequest& request, const GetEMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEMapOutcomeCallable getEMapCallable(const Model::GetEMapRequest& request) const; + SearchPersonByImgOutcome searchPersonByImg(const Model::SearchPersonByImgRequest &request)const; + void searchPersonByImgAsync(const Model::SearchPersonByImgRequest& request, const SearchPersonByImgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchPersonByImgOutcomeCallable searchPersonByImgCallable(const Model::SearchPersonByImgRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_ diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h index a11037cf6..e43ccbe61 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h @@ -1,32 +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_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_LIBRARY) -# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_LIBRARY) +# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT +#endif + #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataRequest.h index 009c395f3..f85e04681 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeActionDataRequest : public RpcServiceRequest - { - - public: - DescribeActionDataRequest(); - ~DescribeActionDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeActionDataRequest : public RpcServiceRequest + { + + public: + DescribeActionDataRequest(); + ~DescribeActionDataRequest(); + long getTsEnd()const; void setTsEnd(long tsEnd); int getPageNo()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setStoreId(const std::string& storeId); int getPageLimit()const; void setPageLimit(int pageLimit); - - private: + + private: long tsEnd_; int pageNo_; long tsStart_; std::string storeId_; int pageLimit_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataResult.h index aaa57ef34..c292a0308 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeActionDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeActionDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeActionDataResult : public ServiceResult + { + public: struct ActionsMsgItem { struct ActionInfosItem @@ -77,32 +77,36 @@ namespace AlibabaCloud std::string tag; long id; }; - - - DescribeActionDataResult(); - explicit DescribeActionDataResult(const std::string &payload); - ~DescribeActionDataResult(); + + + DescribeActionDataResult(); + explicit DescribeActionDataResult(const std::string &payload); + ~DescribeActionDataResult(); + bool getIsSuccess()const; long getTsStart()const; int getPageCount()const; std::string getStoreId()const; + std::string getErrorMsg()const; long getTsEnd()const; int getPageNo()const; int getPageLimit()const; std::vector getActionsMsgItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: + bool isSuccess_; long tsStart_; int pageCount_; std::string storeId_; + std::string errorMsg_; long tsEnd_; int pageNo_; int pageLimit_; std::vector actionsMsgItems_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsRequest.h index 5689e451d..cf781bcb6 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsRequest.h @@ -1,48 +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_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeLocationsRequest : public RpcServiceRequest - { - - public: - DescribeLocationsRequest(); - ~DescribeLocationsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeLocationsRequest : public RpcServiceRequest + { + + public: + DescribeLocationsRequest(); + ~DescribeLocationsRequest(); + std::string getStoreId()const; void setStoreId(const std::string& storeId); - - private: + + private: std::string storeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsResult.h index d75c7ffa8..008edbc83 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/DescribeLocationsResult.h @@ -1,47 +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_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeLocationsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeLocationsResult : public ServiceResult + { + public: struct LocationMsgItem { struct RectRoi { + struct LeftTop + { + float x; + float y; + }; + struct RightBottom + { + float x; + float y; + }; struct Point { float x; float y; }; std::vector points; + LeftTop leftTop; + RightBottom rightBottom; }; long status; std::string gmtCreate; @@ -56,22 +68,22 @@ namespace AlibabaCloud std::string locationType; std::string name; }; - - - DescribeLocationsResult(); - explicit DescribeLocationsResult(const std::string &payload); - ~DescribeLocationsResult(); + + + DescribeLocationsResult(); + explicit DescribeLocationsResult(const std::string &payload); + ~DescribeLocationsResult(); std::string getStoreId()const; std::vector getLocationMsgItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string storeId_; std::vector locationMsgItems_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorRequest.h new file mode 100644 index 000000000..1558f4428 --- /dev/null +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorRequest.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_CUSANALYTIC_SC_ONLINE_MODEL_GETACTIONCURSORREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETACTIONCURSORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetActionCursorRequest : public RpcServiceRequest + { + + public: + GetActionCursorRequest(); + ~GetActionCursorRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETACTIONCURSORREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorResult.h new file mode 100644 index 000000000..75220d353 --- /dev/null +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetActionCursorResult.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_CUSANALYTIC_SC_ONLINE_MODEL_GETACTIONCURSORRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETACTIONCURSORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetActionCursorResult : public ServiceResult + { + public: + + + GetActionCursorResult(); + explicit GetActionCursorResult(const std::string &payload); + ~GetActionCursorResult(); + std::string getErrorMsg()const; + long getTimestamp()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + long timestamp_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETACTIONCURSORRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataRequest.h index 0aa76e305..4adf2f7e3 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzeCommodityDataRequest : public RpcServiceRequest - { - - public: - GetAnalyzeCommodityDataRequest(); - ~GetAnalyzeCommodityDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzeCommodityDataRequest : public RpcServiceRequest + { + + public: + GetAnalyzeCommodityDataRequest(); + ~GetAnalyzeCommodityDataRequest(); + long getStartUserCount()const; void setStartUserCount(long startUserCount); std::string getEndDate()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setStartDate(const std::string& startDate); long getStayPeriod()const; void setStayPeriod(long stayPeriod); - - private: + + private: long startUserCount_; std::string endDate_; long endUserCount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long storeId_; std::string startDate_; long stayPeriod_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataResult.h index 7450bafe7..ba42fb167 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzeCommodityDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzeCommodityDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzeCommodityDataResult : public ServiceResult + { + public: struct AnalyzeCommodityItem { std::string locationNames; @@ -39,26 +39,26 @@ namespace AlibabaCloud long itemCount; long supportCount; }; - - - GetAnalyzeCommodityDataResult(); - explicit GetAnalyzeCommodityDataResult(const std::string &payload); - ~GetAnalyzeCommodityDataResult(); + + + GetAnalyzeCommodityDataResult(); + explicit GetAnalyzeCommodityDataResult(const std::string &payload); + ~GetAnalyzeCommodityDataResult(); std::vector getAnalyzeCommodityItems()const; int getPageSize()const; int getTotal()const; int getPageIndex()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector analyzeCommodityItems_; int pageSize_; int total_; int pageIndex_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataRequest.h index 87236c182..8fbbe2ebd 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzePlaceDataRequest : public RpcServiceRequest - { - - public: - GetAnalyzePlaceDataRequest(); - ~GetAnalyzePlaceDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzePlaceDataRequest : public RpcServiceRequest + { + + public: + GetAnalyzePlaceDataRequest(); + ~GetAnalyzePlaceDataRequest(); + long getEndUVCount()const; void setEndUVCount(long endUVCount); long getParentAmount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setStartUVCount(long startUVCount); long getStoreId()const; void setStoreId(long storeId); - - private: + + private: long endUVCount_; long parentAmount_; std::string endDate_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string startDate_; long startUVCount_; long storeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataResult.h index dfdf445b0..c26ecb898 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetAnalyzePlaceDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzePlaceDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzePlaceDataResult : public ServiceResult + { + public: struct AnalyzePlaceItem { long storeId; @@ -41,11 +41,11 @@ namespace AlibabaCloud long count; std::string locationName; }; - - - GetAnalyzePlaceDataResult(); - explicit GetAnalyzePlaceDataResult(const std::string &payload); - ~GetAnalyzePlaceDataResult(); + + + GetAnalyzePlaceDataResult(); + explicit GetAnalyzePlaceDataResult(const std::string &payload); + ~GetAnalyzePlaceDataResult(); std::vector getAnalyzePlaceItems()const; long getStoreId()const; float getPercent()const; @@ -53,10 +53,10 @@ namespace AlibabaCloud long getLocationId()const; long getCount()const; std::string getLocationName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector analyzePlaceItems_; long storeId_; float percent_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long locationId_; long count_; std::string locationName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapRequest.h index d26d451eb..240d0a023 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapRequest.h @@ -1,51 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetEMapRequest : public RpcServiceRequest - { - - public: - GetEMapRequest(); - ~GetEMapRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetEMapRequest : public RpcServiceRequest + { + + public: + GetEMapRequest(); + ~GetEMapRequest(); + long getLocationId()const; void setLocationId(long locationId); long getStoreId()const; void setStoreId(long storeId); - - private: + + private: long locationId_; long storeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapResult.h index c4f2c0206..f64869ef6 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetEMapResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetEMapResult : public ServiceResult - { - public: - - - GetEMapResult(); - explicit GetEMapResult(const std::string &payload); - ~GetEMapResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetEMapResult : public ServiceResult + { + public: + + + GetEMapResult(); + explicit GetEMapResult(const std::string &payload); + ~GetEMapResult(); long getStoreId()const; long getLocationId()const; std::string getImageUrl()const; float getScale()const; long getEMapId()const; std::string getName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long storeId_; long locationId_; std::string imageUrl_; float scale_; long eMapId_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataRequest.h index ef238fd0e..eb9458d82 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataRequest.h @@ -1,51 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetHeatMapDataRequest : public RpcServiceRequest - { - - public: - GetHeatMapDataRequest(); - ~GetHeatMapDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetHeatMapDataRequest : public RpcServiceRequest + { + + public: + GetHeatMapDataRequest(); + ~GetHeatMapDataRequest(); + std::string getEMapName()const; void setEMapName(const std::string& eMapName); long getStoreId()const; void setStoreId(long storeId); - - private: + + private: std::string eMapName_; long storeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataResult.h index 47c89a9dd..64a4a9cf6 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetHeatMapDataResult.h @@ -1,67 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetHeatMapDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetHeatMapDataResult : public ServiceResult + { + public: struct HeatMapItem { float x; float y; float weight; }; - - - GetHeatMapDataResult(); - explicit GetHeatMapDataResult(const std::string &payload); - ~GetHeatMapDataResult(); + + + GetHeatMapDataResult(); + explicit GetHeatMapDataResult(const std::string &payload); + ~GetHeatMapDataResult(); std::vector getHeatMapItems()const; std::string getEMapName()const; long getStoreId()const; std::string getEMapUrl()const; float getHeight()const; float getWidth()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector heatMapItems_; std::string eMapName_; long storeId_; std::string eMapUrl_; float height_; float width_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlRequest.h new file mode 100644 index 000000000..365d9582d --- /dev/null +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlRequest.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_CUSANALYTIC_SC_ONLINE_MODEL_GETIMAGEURLREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETIMAGEURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetImageUrlRequest : public RpcServiceRequest + { + + public: + GetImageUrlRequest(); + ~GetImageUrlRequest(); + + std::string getObjectKeys()const; + void setObjectKeys(const std::string& objectKeys); + std::string getOriginUrls()const; + void setOriginUrls(const std::string& originUrls); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string objectKeys_; + std::string originUrls_; + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETIMAGEURLREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlResult.h new file mode 100644 index 000000000..1fb2c6524 --- /dev/null +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetImageUrlResult.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_CUSANALYTIC_SC_ONLINE_MODEL_GETIMAGEURLRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETIMAGEURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetImageUrlResult : public ServiceResult + { + public: + struct ImageUrl + { + std::string objectKey; + std::string url; + }; + + + GetImageUrlResult(); + explicit GetImageUrlResult(const std::string &payload); + ~GetImageUrlResult(); + std::string getErrorMsg()const; + std::vector getUrls()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector urls_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETIMAGEURLRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsRequest.h index 658d5b272..20a5c3a46 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsRequest.h @@ -1,48 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetLocationsRequest : public RpcServiceRequest - { - - public: - GetLocationsRequest(); - ~GetLocationsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetLocationsRequest : public RpcServiceRequest + { + + public: + GetLocationsRequest(); + ~GetLocationsRequest(); + long getStoreId()const; void setStoreId(long storeId); - - private: + + private: long storeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsResult.h index b2ab06491..9fac9bc5d 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetLocationsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetLocationsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetLocationsResult : public ServiceResult + { + public: struct LocationItem { int status; @@ -43,22 +43,22 @@ namespace AlibabaCloud bool link; std::string name; }; - - - GetLocationsResult(); - explicit GetLocationsResult(const std::string &payload); - ~GetLocationsResult(); + + + GetLocationsResult(); + explicit GetLocationsResult(const std::string &payload); + ~GetLocationsResult(); long getStoreId()const; std::vector getLocationItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long storeId_; std::vector locationItems_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataRequest.h index 2d4984912..e392ef4ed 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataRequest.h @@ -1,51 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetOverviewDataRequest : public RpcServiceRequest - { - - public: - GetOverviewDataRequest(); - ~GetOverviewDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetOverviewDataRequest : public RpcServiceRequest + { + + public: + GetOverviewDataRequest(); + ~GetOverviewDataRequest(); + std::string getDate()const; void setDate(const std::string& date); std::string getStoreIds()const; void setStoreIds(const std::string& storeIds); - - private: + + private: std::string date_; std::string storeIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataResult.h index 92e303f8a..5a1fd6099 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetOverviewDataResult.h @@ -1,42 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetOverviewDataResult : public ServiceResult - { - public: - - - GetOverviewDataResult(); - explicit GetOverviewDataResult(const std::string &payload); - ~GetOverviewDataResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetOverviewDataResult : public ServiceResult + { + public: + + + GetOverviewDataResult(); + explicit GetOverviewDataResult(const std::string &payload); + ~GetOverviewDataResult(); float getStayDeepAvg()const; float getUvWeekGrowthPercent()const; long getUv()const; @@ -47,10 +47,10 @@ namespace AlibabaCloud float getStayAvgPeriodWeekGrowthPercent()const; float getUvAvgWeekGrowthPercent()const; float getStayDeepAvgWeekGrowthPercent()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: float stayDeepAvg_; float uvWeekGrowthPercent_; long uv_; @@ -61,9 +61,9 @@ namespace AlibabaCloud float stayAvgPeriodWeekGrowthPercent_; float uvAvgWeekGrowthPercent_; float stayDeepAvgWeekGrowthPercent_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalRequest.h index 90144f182..3cc19e3a1 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalRequest.h @@ -1,54 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetPortrayalRequest : public RpcServiceRequest - { - - public: - GetPortrayalRequest(); - ~GetPortrayalRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetPortrayalRequest : public RpcServiceRequest + { + + public: + GetPortrayalRequest(); + ~GetPortrayalRequest(); + std::string getDate()const; void setDate(const std::string& date); std::string getLocationIds()const; void setLocationIds(const std::string& locationIds); std::string getStoreIds()const; void setStoreIds(const std::string& storeIds); - - private: + + private: std::string date_; std::string locationIds_; std::string storeIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalResult.h index dad02a319..a84bf7e9b 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetPortrayalResult.h @@ -1,42 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetPortrayalResult : public ServiceResult - { - public: - - - GetPortrayalResult(); - explicit GetPortrayalResult(const std::string &payload); - ~GetPortrayalResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetPortrayalResult : public ServiceResult + { + public: + + + GetPortrayalResult(); + explicit GetPortrayalResult(const std::string &payload); + ~GetPortrayalResult(); long getOldcount()const; float getAgecount5160Percent()const; long getFcount5160()const; @@ -66,10 +66,10 @@ namespace AlibabaCloud long getFcount4150()const; long getMcountgt60()const; float getAgecount2130Percent()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long oldcount_; float agecount5160Percent_; long fcount5160_; @@ -99,9 +99,9 @@ namespace AlibabaCloud long fcount4150_; long mcountgt60_; float agecount2130Percent_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreRequest.h index 060ad4ab7..e51207e13 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreRequest.h @@ -1,45 +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_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetSupportStoreRequest : public RpcServiceRequest - { - - public: - GetSupportStoreRequest(); - ~GetSupportStoreRequest(); - - - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetSupportStoreRequest : public RpcServiceRequest + { + + public: + GetSupportStoreRequest(); + ~GetSupportStoreRequest(); + + + private: + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreResult.h index ce371ce79..faf2e2539 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/GetSupportStoreResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetSupportStoreResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetSupportStoreResult : public ServiceResult + { + public: struct StorePopDTO { std::string storeType; @@ -43,20 +43,20 @@ namespace AlibabaCloud long regionId; std::string name; }; - - - GetSupportStoreResult(); - explicit GetSupportStoreResult(const std::string &payload); - ~GetSupportStoreResult(); + + + GetSupportStoreResult(); + explicit GetSupportStoreResult(const std::string &payload); + ~GetSupportStoreResult(); std::vector getStorePopDTOs()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector storePopDTOs_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsRequest.h index c36c826c7..a59d606be 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ListVisitorsRequest : public RpcServiceRequest - { - - public: - ListVisitorsRequest(); - ~ListVisitorsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ListVisitorsRequest : public RpcServiceRequest + { + + public: + ListVisitorsRequest(); + ~ListVisitorsRequest(); + std::string getPkId()const; void setPkId(const std::string& pkId); std::string getGender()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setAgeEnd(long ageEnd); std::string getStoreIds()const; void setStoreIds(const std::string& storeIds); - - private: + + private: std::string pkId_; std::string gender_; long ukId_; @@ -73,9 +73,9 @@ namespace AlibabaCloud long ageStart_; long ageEnd_; std::string storeIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsResult.h index 744d9236a..bf81bbc63 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/ListVisitorsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ListVisitorsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ListVisitorsResult : public ServiceResult + { + public: struct VisitorItem { std::string earliestPlace; @@ -46,26 +46,26 @@ namespace AlibabaCloud std::string gender; long age; }; - - - ListVisitorsResult(); - explicit ListVisitorsResult(const std::string &payload); - ~ListVisitorsResult(); + + + ListVisitorsResult(); + explicit ListVisitorsResult(const std::string &payload); + ~ListVisitorsResult(); int getPageSize()const; long getTotal()const; std::vector getVisitorItems()const; int getPageIndex()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int pageSize_; long total_; std::vector visitorItems_; int pageIndex_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgRequest.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgRequest.h index 2cf4d13cc..868435604 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgRequest.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgRequest.h @@ -1,51 +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_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT SearchPersonByImgRequest : public RpcServiceRequest - { - - public: - SearchPersonByImgRequest(); - ~SearchPersonByImgRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT SearchPersonByImgRequest : public RpcServiceRequest + { + + public: + SearchPersonByImgRequest(); + ~SearchPersonByImgRequest(); + std::string getImgUrl()const; void setImgUrl(const std::string& imgUrl); long getStoreId()const; void setStoreId(long storeId); - - private: + + private: std::string imgUrl_; long storeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h index 02dbadd24..d99d36a55 100644 --- a/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h +++ b/cusanalytic_sc_online/include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_ -#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cusanalytic_sc_online - { - namespace Model - { - class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT SearchPersonByImgResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_ +#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cusanalytic_sc_online + { + namespace Model + { + class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT SearchPersonByImgResult : public ServiceResult + { + public: struct PersonSearchResultItem { std::string faceId; float score; std::string ukId; }; - - - SearchPersonByImgResult(); - explicit SearchPersonByImgResult(const std::string &payload); - ~SearchPersonByImgResult(); + + + SearchPersonByImgResult(); + explicit SearchPersonByImgResult(const std::string &payload); + ~SearchPersonByImgResult(); std::string getMsg()const; std::vector getPersonSearchResultItems()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string msg_; std::vector personSearchResultItems_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_ \ No newline at end of file diff --git a/cusanalytic_sc_online/src/Cusanalytic_sc_onlineClient.cc b/cusanalytic_sc_online/src/Cusanalytic_sc_onlineClient.cc index 72099ca2a..09ec788f3 100644 --- a/cusanalytic_sc_online/src/Cusanalytic_sc_onlineClient.cc +++ b/cusanalytic_sc_online/src/Cusanalytic_sc_onlineClient.cc @@ -1,485 +1,557 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -namespace -{ - const std::string SERVICE_NAME = "cusanalytic_sc_online"; -} - -Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(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, ""); -} - -Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(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, ""); -} - -Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(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, ""); -} - -Cusanalytic_sc_onlineClient::~Cusanalytic_sc_onlineClient() -{} - -Cusanalytic_sc_onlineClient::DescribeLocationsOutcome Cusanalytic_sc_onlineClient::describeLocations(const DescribeLocationsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLocationsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLocationsOutcome(DescribeLocationsResult(outcome.result())); - else - return DescribeLocationsOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::describeLocationsAsync(const DescribeLocationsRequest& request, const DescribeLocationsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLocations(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::DescribeLocationsOutcomeCallable Cusanalytic_sc_onlineClient::describeLocationsCallable(const DescribeLocationsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLocations(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetOverviewDataOutcome Cusanalytic_sc_onlineClient::getOverviewData(const GetOverviewDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOverviewDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOverviewDataOutcome(GetOverviewDataResult(outcome.result())); - else - return GetOverviewDataOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getOverviewDataAsync(const GetOverviewDataRequest& request, const GetOverviewDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOverviewData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetOverviewDataOutcomeCallable Cusanalytic_sc_onlineClient::getOverviewDataCallable(const GetOverviewDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOverviewData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetSupportStoreOutcome Cusanalytic_sc_onlineClient::getSupportStore(const GetSupportStoreRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSupportStoreOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSupportStoreOutcome(GetSupportStoreResult(outcome.result())); - else - return GetSupportStoreOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getSupportStoreAsync(const GetSupportStoreRequest& request, const GetSupportStoreAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSupportStore(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetSupportStoreOutcomeCallable Cusanalytic_sc_onlineClient::getSupportStoreCallable(const GetSupportStoreRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSupportStore(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::DescribeActionDataOutcome Cusanalytic_sc_onlineClient::describeActionData(const DescribeActionDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeActionDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeActionDataOutcome(DescribeActionDataResult(outcome.result())); - else - return DescribeActionDataOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::describeActionDataAsync(const DescribeActionDataRequest& request, const DescribeActionDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeActionData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::DescribeActionDataOutcomeCallable Cusanalytic_sc_onlineClient::describeActionDataCallable(const DescribeActionDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeActionData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetLocationsOutcome Cusanalytic_sc_onlineClient::getLocations(const GetLocationsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetLocationsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetLocationsOutcome(GetLocationsResult(outcome.result())); - else - return GetLocationsOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getLocationsAsync(const GetLocationsRequest& request, const GetLocationsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getLocations(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetLocationsOutcomeCallable Cusanalytic_sc_onlineClient::getLocationsCallable(const GetLocationsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getLocations(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetPortrayalOutcome Cusanalytic_sc_onlineClient::getPortrayal(const GetPortrayalRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPortrayalOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPortrayalOutcome(GetPortrayalResult(outcome.result())); - else - return GetPortrayalOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getPortrayalAsync(const GetPortrayalRequest& request, const GetPortrayalAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPortrayal(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetPortrayalOutcomeCallable Cusanalytic_sc_onlineClient::getPortrayalCallable(const GetPortrayalRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPortrayal(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetHeatMapDataOutcome Cusanalytic_sc_onlineClient::getHeatMapData(const GetHeatMapDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetHeatMapDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetHeatMapDataOutcome(GetHeatMapDataResult(outcome.result())); - else - return GetHeatMapDataOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getHeatMapDataAsync(const GetHeatMapDataRequest& request, const GetHeatMapDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getHeatMapData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetHeatMapDataOutcomeCallable Cusanalytic_sc_onlineClient::getHeatMapDataCallable(const GetHeatMapDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getHeatMapData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetAnalyzeCommodityDataOutcome Cusanalytic_sc_onlineClient::getAnalyzeCommodityData(const GetAnalyzeCommodityDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAnalyzeCommodityDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAnalyzeCommodityDataOutcome(GetAnalyzeCommodityDataResult(outcome.result())); - else - return GetAnalyzeCommodityDataOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getAnalyzeCommodityDataAsync(const GetAnalyzeCommodityDataRequest& request, const GetAnalyzeCommodityDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAnalyzeCommodityData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetAnalyzeCommodityDataOutcomeCallable Cusanalytic_sc_onlineClient::getAnalyzeCommodityDataCallable(const GetAnalyzeCommodityDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAnalyzeCommodityData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::ListVisitorsOutcome Cusanalytic_sc_onlineClient::listVisitors(const ListVisitorsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListVisitorsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListVisitorsOutcome(ListVisitorsResult(outcome.result())); - else - return ListVisitorsOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::listVisitorsAsync(const ListVisitorsRequest& request, const ListVisitorsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listVisitors(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::ListVisitorsOutcomeCallable Cusanalytic_sc_onlineClient::listVisitorsCallable(const ListVisitorsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listVisitors(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetEMapOutcome Cusanalytic_sc_onlineClient::getEMap(const GetEMapRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetEMapOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetEMapOutcome(GetEMapResult(outcome.result())); - else - return GetEMapOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getEMapAsync(const GetEMapRequest& request, const GetEMapAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getEMap(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetEMapOutcomeCallable Cusanalytic_sc_onlineClient::getEMapCallable(const GetEMapRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getEMap(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::SearchPersonByImgOutcome Cusanalytic_sc_onlineClient::searchPersonByImg(const SearchPersonByImgRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchPersonByImgOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchPersonByImgOutcome(SearchPersonByImgResult(outcome.result())); - else - return SearchPersonByImgOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::searchPersonByImgAsync(const SearchPersonByImgRequest& request, const SearchPersonByImgAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchPersonByImg(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::SearchPersonByImgOutcomeCallable Cusanalytic_sc_onlineClient::searchPersonByImgCallable(const SearchPersonByImgRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchPersonByImg(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cusanalytic_sc_onlineClient::GetAnalyzePlaceDataOutcome Cusanalytic_sc_onlineClient::getAnalyzePlaceData(const GetAnalyzePlaceDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAnalyzePlaceDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAnalyzePlaceDataOutcome(GetAnalyzePlaceDataResult(outcome.result())); - else - return GetAnalyzePlaceDataOutcome(outcome.error()); -} - -void Cusanalytic_sc_onlineClient::getAnalyzePlaceDataAsync(const GetAnalyzePlaceDataRequest& request, const GetAnalyzePlaceDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAnalyzePlaceData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cusanalytic_sc_onlineClient::GetAnalyzePlaceDataOutcomeCallable Cusanalytic_sc_onlineClient::getAnalyzePlaceDataCallable(const GetAnalyzePlaceDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAnalyzePlaceData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +namespace +{ + const std::string SERVICE_NAME = "cusanalytic_sc_online"; +} + +Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(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, "cusanalytic_sc_online"); +} + +Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(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, "cusanalytic_sc_online"); +} + +Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(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, "cusanalytic_sc_online"); +} + +Cusanalytic_sc_onlineClient::~Cusanalytic_sc_onlineClient() +{} + +Cusanalytic_sc_onlineClient::DescribeLocationsOutcome Cusanalytic_sc_onlineClient::describeLocations(const DescribeLocationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLocationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLocationsOutcome(DescribeLocationsResult(outcome.result())); + else + return DescribeLocationsOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::describeLocationsAsync(const DescribeLocationsRequest& request, const DescribeLocationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLocations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::DescribeLocationsOutcomeCallable Cusanalytic_sc_onlineClient::describeLocationsCallable(const DescribeLocationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLocations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetSupportStoreOutcome Cusanalytic_sc_onlineClient::getSupportStore(const GetSupportStoreRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSupportStoreOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSupportStoreOutcome(GetSupportStoreResult(outcome.result())); + else + return GetSupportStoreOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getSupportStoreAsync(const GetSupportStoreRequest& request, const GetSupportStoreAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSupportStore(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetSupportStoreOutcomeCallable Cusanalytic_sc_onlineClient::getSupportStoreCallable(const GetSupportStoreRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSupportStore(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::DescribeActionDataOutcome Cusanalytic_sc_onlineClient::describeActionData(const DescribeActionDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActionDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActionDataOutcome(DescribeActionDataResult(outcome.result())); + else + return DescribeActionDataOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::describeActionDataAsync(const DescribeActionDataRequest& request, const DescribeActionDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActionData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::DescribeActionDataOutcomeCallable Cusanalytic_sc_onlineClient::describeActionDataCallable(const DescribeActionDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActionData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetPortrayalOutcome Cusanalytic_sc_onlineClient::getPortrayal(const GetPortrayalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPortrayalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPortrayalOutcome(GetPortrayalResult(outcome.result())); + else + return GetPortrayalOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getPortrayalAsync(const GetPortrayalRequest& request, const GetPortrayalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPortrayal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetPortrayalOutcomeCallable Cusanalytic_sc_onlineClient::getPortrayalCallable(const GetPortrayalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPortrayal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetHeatMapDataOutcome Cusanalytic_sc_onlineClient::getHeatMapData(const GetHeatMapDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHeatMapDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHeatMapDataOutcome(GetHeatMapDataResult(outcome.result())); + else + return GetHeatMapDataOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getHeatMapDataAsync(const GetHeatMapDataRequest& request, const GetHeatMapDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHeatMapData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetHeatMapDataOutcomeCallable Cusanalytic_sc_onlineClient::getHeatMapDataCallable(const GetHeatMapDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHeatMapData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetActionCursorOutcome Cusanalytic_sc_onlineClient::getActionCursor(const GetActionCursorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetActionCursorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetActionCursorOutcome(GetActionCursorResult(outcome.result())); + else + return GetActionCursorOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getActionCursorAsync(const GetActionCursorRequest& request, const GetActionCursorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getActionCursor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetActionCursorOutcomeCallable Cusanalytic_sc_onlineClient::getActionCursorCallable(const GetActionCursorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getActionCursor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetImageUrlOutcome Cusanalytic_sc_onlineClient::getImageUrl(const GetImageUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageUrlOutcome(GetImageUrlResult(outcome.result())); + else + return GetImageUrlOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getImageUrlAsync(const GetImageUrlRequest& request, const GetImageUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImageUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetImageUrlOutcomeCallable Cusanalytic_sc_onlineClient::getImageUrlCallable(const GetImageUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImageUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetAnalyzePlaceDataOutcome Cusanalytic_sc_onlineClient::getAnalyzePlaceData(const GetAnalyzePlaceDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAnalyzePlaceDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAnalyzePlaceDataOutcome(GetAnalyzePlaceDataResult(outcome.result())); + else + return GetAnalyzePlaceDataOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getAnalyzePlaceDataAsync(const GetAnalyzePlaceDataRequest& request, const GetAnalyzePlaceDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAnalyzePlaceData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetAnalyzePlaceDataOutcomeCallable Cusanalytic_sc_onlineClient::getAnalyzePlaceDataCallable(const GetAnalyzePlaceDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAnalyzePlaceData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetOverviewDataOutcome Cusanalytic_sc_onlineClient::getOverviewData(const GetOverviewDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOverviewDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOverviewDataOutcome(GetOverviewDataResult(outcome.result())); + else + return GetOverviewDataOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getOverviewDataAsync(const GetOverviewDataRequest& request, const GetOverviewDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOverviewData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetOverviewDataOutcomeCallable Cusanalytic_sc_onlineClient::getOverviewDataCallable(const GetOverviewDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOverviewData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetLocationsOutcome Cusanalytic_sc_onlineClient::getLocations(const GetLocationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLocationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLocationsOutcome(GetLocationsResult(outcome.result())); + else + return GetLocationsOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getLocationsAsync(const GetLocationsRequest& request, const GetLocationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLocations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetLocationsOutcomeCallable Cusanalytic_sc_onlineClient::getLocationsCallable(const GetLocationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLocations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetAnalyzeCommodityDataOutcome Cusanalytic_sc_onlineClient::getAnalyzeCommodityData(const GetAnalyzeCommodityDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAnalyzeCommodityDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAnalyzeCommodityDataOutcome(GetAnalyzeCommodityDataResult(outcome.result())); + else + return GetAnalyzeCommodityDataOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getAnalyzeCommodityDataAsync(const GetAnalyzeCommodityDataRequest& request, const GetAnalyzeCommodityDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAnalyzeCommodityData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetAnalyzeCommodityDataOutcomeCallable Cusanalytic_sc_onlineClient::getAnalyzeCommodityDataCallable(const GetAnalyzeCommodityDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAnalyzeCommodityData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::ListVisitorsOutcome Cusanalytic_sc_onlineClient::listVisitors(const ListVisitorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVisitorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVisitorsOutcome(ListVisitorsResult(outcome.result())); + else + return ListVisitorsOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::listVisitorsAsync(const ListVisitorsRequest& request, const ListVisitorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVisitors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::ListVisitorsOutcomeCallable Cusanalytic_sc_onlineClient::listVisitorsCallable(const ListVisitorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVisitors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::GetEMapOutcome Cusanalytic_sc_onlineClient::getEMap(const GetEMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEMapOutcome(GetEMapResult(outcome.result())); + else + return GetEMapOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::getEMapAsync(const GetEMapRequest& request, const GetEMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::GetEMapOutcomeCallable Cusanalytic_sc_onlineClient::getEMapCallable(const GetEMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cusanalytic_sc_onlineClient::SearchPersonByImgOutcome Cusanalytic_sc_onlineClient::searchPersonByImg(const SearchPersonByImgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchPersonByImgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchPersonByImgOutcome(SearchPersonByImgResult(outcome.result())); + else + return SearchPersonByImgOutcome(outcome.error()); +} + +void Cusanalytic_sc_onlineClient::searchPersonByImgAsync(const SearchPersonByImgRequest& request, const SearchPersonByImgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchPersonByImg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cusanalytic_sc_onlineClient::SearchPersonByImgOutcomeCallable Cusanalytic_sc_onlineClient::searchPersonByImgCallable(const SearchPersonByImgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchPersonByImg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/cusanalytic_sc_online/src/model/DescribeActionDataRequest.cc b/cusanalytic_sc_online/src/model/DescribeActionDataRequest.cc index 2b5f1edf6..ba021fb96 100644 --- a/cusanalytic_sc_online/src/model/DescribeActionDataRequest.cc +++ b/cusanalytic_sc_online/src/model/DescribeActionDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::DescribeActionDataRequest; - -DescribeActionDataRequest::DescribeActionDataRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeActionData") -{} - -DescribeActionDataRequest::~DescribeActionDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::DescribeActionDataRequest; + +DescribeActionDataRequest::DescribeActionDataRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeActionData") +{} + +DescribeActionDataRequest::~DescribeActionDataRequest() +{} + long DescribeActionDataRequest::getTsEnd()const { return tsEnd_; diff --git a/cusanalytic_sc_online/src/model/DescribeActionDataResult.cc b/cusanalytic_sc_online/src/model/DescribeActionDataResult.cc index 9307ff969..58a8e36c2 100644 --- a/cusanalytic_sc_online/src/model/DescribeActionDataResult.cc +++ b/cusanalytic_sc_online/src/model/DescribeActionDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -DescribeActionDataResult::DescribeActionDataResult() : - ServiceResult() -{} - -DescribeActionDataResult::DescribeActionDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeActionDataResult::~DescribeActionDataResult() -{} - -void DescribeActionDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +DescribeActionDataResult::DescribeActionDataResult() : + ServiceResult() +{} + +DescribeActionDataResult::DescribeActionDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActionDataResult::~DescribeActionDataResult() +{} + +void DescribeActionDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allActionsMsgItems = value["ActionsMsgItems"]["ActionsMsgItem"]; for (auto value : allActionsMsgItems) { @@ -110,13 +113,22 @@ void DescribeActionDataResult::parse(const std::string &payload) pageLimit_ = std::stoi(value["PageLimit"].asString()); if(!value["PageCount"].isNull()) pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["IsSuccess"].isNull()) + isSuccess_ = value["IsSuccess"].asString() == "true"; + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); if(!value["StoreId"].isNull()) storeId_ = value["StoreId"].asString(); if(!value["TsEnd"].isNull()) tsEnd_ = std::stol(value["TsEnd"].asString()); - -} - + +} + +bool DescribeActionDataResult::getIsSuccess()const +{ + return isSuccess_; +} + long DescribeActionDataResult::getTsStart()const { return tsStart_; @@ -132,6 +144,11 @@ std::string DescribeActionDataResult::getStoreId()const return storeId_; } +std::string DescribeActionDataResult::getErrorMsg()const +{ + return errorMsg_; +} + long DescribeActionDataResult::getTsEnd()const { return tsEnd_; diff --git a/cusanalytic_sc_online/src/model/DescribeLocationsRequest.cc b/cusanalytic_sc_online/src/model/DescribeLocationsRequest.cc index fd0548f3c..c578c5bd0 100644 --- a/cusanalytic_sc_online/src/model/DescribeLocationsRequest.cc +++ b/cusanalytic_sc_online/src/model/DescribeLocationsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::DescribeLocationsRequest; - -DescribeLocationsRequest::DescribeLocationsRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeLocations") -{} - -DescribeLocationsRequest::~DescribeLocationsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::DescribeLocationsRequest; + +DescribeLocationsRequest::DescribeLocationsRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeLocations") +{} + +DescribeLocationsRequest::~DescribeLocationsRequest() +{} + std::string DescribeLocationsRequest::getStoreId()const { return storeId_; diff --git a/cusanalytic_sc_online/src/model/DescribeLocationsResult.cc b/cusanalytic_sc_online/src/model/DescribeLocationsResult.cc index 16d0d4329..03d94c1f7 100644 --- a/cusanalytic_sc_online/src/model/DescribeLocationsResult.cc +++ b/cusanalytic_sc_online/src/model/DescribeLocationsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -DescribeLocationsResult::DescribeLocationsResult() : - ServiceResult() -{} - -DescribeLocationsResult::DescribeLocationsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLocationsResult::~DescribeLocationsResult() -{} - -void DescribeLocationsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +DescribeLocationsResult::DescribeLocationsResult() : + ServiceResult() +{} + +DescribeLocationsResult::DescribeLocationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLocationsResult::~DescribeLocationsResult() +{} + +void DescribeLocationsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLocationMsgItems = value["LocationMsgItems"]["LocationMsgItem"]; for (auto value : allLocationMsgItems) { @@ -80,15 +83,25 @@ void DescribeLocationsResult::parse(const std::string &payload) pointsObject.y = std::stof(value["Y"].asString()); rectRoisObject.points.push_back(pointsObject); } + auto leftTopNode = value["LeftTop"]; + if(!leftTopNode["X"].isNull()) + rectRoisObject.leftTop.x = std::stof(leftTopNode["X"].asString()); + if(!leftTopNode["Y"].isNull()) + rectRoisObject.leftTop.y = std::stof(leftTopNode["Y"].asString()); + auto rightBottomNode = value["RightBottom"]; + if(!rightBottomNode["X"].isNull()) + rectRoisObject.rightBottom.x = std::stof(rightBottomNode["X"].asString()); + if(!rightBottomNode["Y"].isNull()) + rectRoisObject.rightBottom.y = std::stof(rightBottomNode["Y"].asString()); locationMsgItemsObject.rectRois.push_back(rectRoisObject); } locationMsgItems_.push_back(locationMsgItemsObject); } if(!value["StoreId"].isNull()) storeId_ = value["StoreId"].asString(); - -} - + +} + std::string DescribeLocationsResult::getStoreId()const { return storeId_; diff --git a/cusanalytic_sc_online/src/model/GetActionCursorRequest.cc b/cusanalytic_sc_online/src/model/GetActionCursorRequest.cc new file mode 100644 index 000000000..e4326e092 --- /dev/null +++ b/cusanalytic_sc_online/src/model/GetActionCursorRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetActionCursorRequest; + +GetActionCursorRequest::GetActionCursorRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetActionCursor") +{} + +GetActionCursorRequest::~GetActionCursorRequest() +{} + +std::string GetActionCursorRequest::getStoreId()const +{ + return storeId_; +} + +void GetActionCursorRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setCoreParameter("StoreId", storeId); +} + diff --git a/cusanalytic_sc_online/src/model/GetActionCursorResult.cc b/cusanalytic_sc_online/src/model/GetActionCursorResult.cc new file mode 100644 index 000000000..6c9d61e9c --- /dev/null +++ b/cusanalytic_sc_online/src/model/GetActionCursorResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetActionCursorResult::GetActionCursorResult() : + ServiceResult() +{} + +GetActionCursorResult::GetActionCursorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetActionCursorResult::~GetActionCursorResult() +{} + +void GetActionCursorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["Timestamp"].isNull()) + timestamp_ = std::stol(value["Timestamp"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetActionCursorResult::getErrorMsg()const +{ + return errorMsg_; +} + +long GetActionCursorResult::getTimestamp()const +{ + return timestamp_; +} + +bool GetActionCursorResult::getSuccess()const +{ + return success_; +} + diff --git a/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataRequest.cc b/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataRequest.cc index c9c2f315a..6a4b71450 100644 --- a/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataRequest.cc +++ b/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetAnalyzeCommodityDataRequest; - -GetAnalyzeCommodityDataRequest::GetAnalyzeCommodityDataRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzeCommodityData") -{} - -GetAnalyzeCommodityDataRequest::~GetAnalyzeCommodityDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetAnalyzeCommodityDataRequest; + +GetAnalyzeCommodityDataRequest::GetAnalyzeCommodityDataRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzeCommodityData") +{} + +GetAnalyzeCommodityDataRequest::~GetAnalyzeCommodityDataRequest() +{} + long GetAnalyzeCommodityDataRequest::getStartUserCount()const { return startUserCount_; diff --git a/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataResult.cc b/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataResult.cc index d89120724..7f5a75a12 100644 --- a/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataResult.cc +++ b/cusanalytic_sc_online/src/model/GetAnalyzeCommodityDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetAnalyzeCommodityDataResult::GetAnalyzeCommodityDataResult() : - ServiceResult() -{} - -GetAnalyzeCommodityDataResult::GetAnalyzeCommodityDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAnalyzeCommodityDataResult::~GetAnalyzeCommodityDataResult() -{} - -void GetAnalyzeCommodityDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetAnalyzeCommodityDataResult::GetAnalyzeCommodityDataResult() : + ServiceResult() +{} + +GetAnalyzeCommodityDataResult::GetAnalyzeCommodityDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAnalyzeCommodityDataResult::~GetAnalyzeCommodityDataResult() +{} + +void GetAnalyzeCommodityDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAnalyzeCommodityItems = value["AnalyzeCommodityItems"]["AnalyzeCommodityItem"]; for (auto value : allAnalyzeCommodityItems) { @@ -60,9 +63,9 @@ void GetAnalyzeCommodityDataResult::parse(const std::string &payload) total_ = std::stoi(value["Total"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector GetAnalyzeCommodityDataResult::getAnalyzeCommodityItems()const { return analyzeCommodityItems_; diff --git a/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataRequest.cc b/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataRequest.cc index 16076ae9f..f21096d5a 100644 --- a/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataRequest.cc +++ b/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetAnalyzePlaceDataRequest; - -GetAnalyzePlaceDataRequest::GetAnalyzePlaceDataRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzePlaceData") -{} - -GetAnalyzePlaceDataRequest::~GetAnalyzePlaceDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetAnalyzePlaceDataRequest; + +GetAnalyzePlaceDataRequest::GetAnalyzePlaceDataRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzePlaceData") +{} + +GetAnalyzePlaceDataRequest::~GetAnalyzePlaceDataRequest() +{} + long GetAnalyzePlaceDataRequest::getEndUVCount()const { return endUVCount_; diff --git a/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataResult.cc b/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataResult.cc index 4831cd1d5..fe41a167e 100644 --- a/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataResult.cc +++ b/cusanalytic_sc_online/src/model/GetAnalyzePlaceDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetAnalyzePlaceDataResult::GetAnalyzePlaceDataResult() : - ServiceResult() -{} - -GetAnalyzePlaceDataResult::GetAnalyzePlaceDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAnalyzePlaceDataResult::~GetAnalyzePlaceDataResult() -{} - -void GetAnalyzePlaceDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetAnalyzePlaceDataResult::GetAnalyzePlaceDataResult() : + ServiceResult() +{} + +GetAnalyzePlaceDataResult::GetAnalyzePlaceDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAnalyzePlaceDataResult::~GetAnalyzePlaceDataResult() +{} + +void GetAnalyzePlaceDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAnalyzePlaceItems = value["AnalyzePlaceItems"]["AnalyzePlaceItem"]; for (auto value : allAnalyzePlaceItems) { @@ -70,9 +73,9 @@ void GetAnalyzePlaceDataResult::parse(const std::string &payload) parentLocationIds_ = value["ParentLocationIds"].asString(); if(!value["LocationId"].isNull()) locationId_ = std::stol(value["LocationId"].asString()); - -} - + +} + std::vector GetAnalyzePlaceDataResult::getAnalyzePlaceItems()const { return analyzePlaceItems_; diff --git a/cusanalytic_sc_online/src/model/GetEMapRequest.cc b/cusanalytic_sc_online/src/model/GetEMapRequest.cc index 642fb543f..67745eaec 100644 --- a/cusanalytic_sc_online/src/model/GetEMapRequest.cc +++ b/cusanalytic_sc_online/src/model/GetEMapRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetEMapRequest; - -GetEMapRequest::GetEMapRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetEMap") -{} - -GetEMapRequest::~GetEMapRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetEMapRequest; + +GetEMapRequest::GetEMapRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetEMap") +{} + +GetEMapRequest::~GetEMapRequest() +{} + long GetEMapRequest::getLocationId()const { return locationId_; diff --git a/cusanalytic_sc_online/src/model/GetEMapResult.cc b/cusanalytic_sc_online/src/model/GetEMapResult.cc index a75937bc5..f74f833fd 100644 --- a/cusanalytic_sc_online/src/model/GetEMapResult.cc +++ b/cusanalytic_sc_online/src/model/GetEMapResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetEMapResult::GetEMapResult() : - ServiceResult() -{} - -GetEMapResult::GetEMapResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetEMapResult::~GetEMapResult() -{} - -void GetEMapResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetEMapResult::GetEMapResult() : + ServiceResult() +{} + +GetEMapResult::GetEMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEMapResult::~GetEMapResult() +{} + +void GetEMapResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["StoreId"].isNull()) storeId_ = std::stol(value["StoreId"].asString()); if(!value["Name"].isNull()) @@ -52,9 +55,9 @@ void GetEMapResult::parse(const std::string &payload) eMapId_ = std::stol(value["EMapId"].asString()); if(!value["ImageUrl"].isNull()) imageUrl_ = value["ImageUrl"].asString(); - -} - + +} + long GetEMapResult::getStoreId()const { return storeId_; diff --git a/cusanalytic_sc_online/src/model/GetHeatMapDataRequest.cc b/cusanalytic_sc_online/src/model/GetHeatMapDataRequest.cc index 1eef4f09d..5033b3b5d 100644 --- a/cusanalytic_sc_online/src/model/GetHeatMapDataRequest.cc +++ b/cusanalytic_sc_online/src/model/GetHeatMapDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetHeatMapDataRequest; - -GetHeatMapDataRequest::GetHeatMapDataRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetHeatMapData") -{} - -GetHeatMapDataRequest::~GetHeatMapDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetHeatMapDataRequest; + +GetHeatMapDataRequest::GetHeatMapDataRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetHeatMapData") +{} + +GetHeatMapDataRequest::~GetHeatMapDataRequest() +{} + std::string GetHeatMapDataRequest::getEMapName()const { return eMapName_; diff --git a/cusanalytic_sc_online/src/model/GetHeatMapDataResult.cc b/cusanalytic_sc_online/src/model/GetHeatMapDataResult.cc index 90646d264..79cf70c2a 100644 --- a/cusanalytic_sc_online/src/model/GetHeatMapDataResult.cc +++ b/cusanalytic_sc_online/src/model/GetHeatMapDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetHeatMapDataResult::GetHeatMapDataResult() : - ServiceResult() -{} - -GetHeatMapDataResult::GetHeatMapDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetHeatMapDataResult::~GetHeatMapDataResult() -{} - -void GetHeatMapDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetHeatMapDataResult::GetHeatMapDataResult() : + ServiceResult() +{} + +GetHeatMapDataResult::GetHeatMapDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHeatMapDataResult::~GetHeatMapDataResult() +{} + +void GetHeatMapDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allHeatMapItems = value["HeatMapItems"]["HeatMapItem"]; for (auto value : allHeatMapItems) { @@ -62,9 +65,9 @@ void GetHeatMapDataResult::parse(const std::string &payload) storeId_ = std::stol(value["StoreId"].asString()); if(!value["Height"].isNull()) height_ = std::stof(value["Height"].asString()); - -} - + +} + std::vector GetHeatMapDataResult::getHeatMapItems()const { return heatMapItems_; diff --git a/cusanalytic_sc_online/src/model/GetImageUrlRequest.cc b/cusanalytic_sc_online/src/model/GetImageUrlRequest.cc new file mode 100644 index 000000000..a83cc56c9 --- /dev/null +++ b/cusanalytic_sc_online/src/model/GetImageUrlRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cusanalytic_sc_online::Model::GetImageUrlRequest; + +GetImageUrlRequest::GetImageUrlRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetImageUrl") +{} + +GetImageUrlRequest::~GetImageUrlRequest() +{} + +std::string GetImageUrlRequest::getObjectKeys()const +{ + return objectKeys_; +} + +void GetImageUrlRequest::setObjectKeys(const std::string& objectKeys) +{ + objectKeys_ = objectKeys; + setCoreParameter("ObjectKeys", objectKeys); +} + +std::string GetImageUrlRequest::getOriginUrls()const +{ + return originUrls_; +} + +void GetImageUrlRequest::setOriginUrls(const std::string& originUrls) +{ + originUrls_ = originUrls; + setCoreParameter("OriginUrls", originUrls); +} + +std::string GetImageUrlRequest::getStoreId()const +{ + return storeId_; +} + +void GetImageUrlRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setCoreParameter("StoreId", storeId); +} + diff --git a/cusanalytic_sc_online/src/model/GetImageUrlResult.cc b/cusanalytic_sc_online/src/model/GetImageUrlResult.cc new file mode 100644 index 000000000..1aefc47fe --- /dev/null +++ b/cusanalytic_sc_online/src/model/GetImageUrlResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetImageUrlResult::GetImageUrlResult() : + ServiceResult() +{} + +GetImageUrlResult::GetImageUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageUrlResult::~GetImageUrlResult() +{} + +void GetImageUrlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allUrls = value["Urls"]["ImageUrl"]; + for (auto value : allUrls) + { + ImageUrl urlsObject; + if(!value["ObjectKey"].isNull()) + urlsObject.objectKey = value["ObjectKey"].asString(); + if(!value["Url"].isNull()) + urlsObject.url = value["Url"].asString(); + urls_.push_back(urlsObject); + } + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetImageUrlResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector GetImageUrlResult::getUrls()const +{ + return urls_; +} + +bool GetImageUrlResult::getSuccess()const +{ + return success_; +} + diff --git a/cusanalytic_sc_online/src/model/GetLocationsRequest.cc b/cusanalytic_sc_online/src/model/GetLocationsRequest.cc index 88c96c997..9e6cc24a8 100644 --- a/cusanalytic_sc_online/src/model/GetLocationsRequest.cc +++ b/cusanalytic_sc_online/src/model/GetLocationsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetLocationsRequest; - -GetLocationsRequest::GetLocationsRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetLocations") -{} - -GetLocationsRequest::~GetLocationsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetLocationsRequest; + +GetLocationsRequest::GetLocationsRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetLocations") +{} + +GetLocationsRequest::~GetLocationsRequest() +{} + long GetLocationsRequest::getStoreId()const { return storeId_; diff --git a/cusanalytic_sc_online/src/model/GetLocationsResult.cc b/cusanalytic_sc_online/src/model/GetLocationsResult.cc index fe8163e2f..c73185669 100644 --- a/cusanalytic_sc_online/src/model/GetLocationsResult.cc +++ b/cusanalytic_sc_online/src/model/GetLocationsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetLocationsResult::GetLocationsResult() : - ServiceResult() -{} - -GetLocationsResult::GetLocationsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetLocationsResult::~GetLocationsResult() -{} - -void GetLocationsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetLocationsResult::GetLocationsResult() : + ServiceResult() +{} + +GetLocationsResult::GetLocationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLocationsResult::~GetLocationsResult() +{} + +void GetLocationsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLocationItems = value["LocationItems"]["LocationItem"]; for (auto value : allLocationItems) { @@ -64,9 +67,9 @@ void GetLocationsResult::parse(const std::string &payload) } if(!value["StoreId"].isNull()) storeId_ = std::stol(value["StoreId"].asString()); - -} - + +} + long GetLocationsResult::getStoreId()const { return storeId_; diff --git a/cusanalytic_sc_online/src/model/GetOverviewDataRequest.cc b/cusanalytic_sc_online/src/model/GetOverviewDataRequest.cc index 1ef060b40..b25cadf02 100644 --- a/cusanalytic_sc_online/src/model/GetOverviewDataRequest.cc +++ b/cusanalytic_sc_online/src/model/GetOverviewDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetOverviewDataRequest; - -GetOverviewDataRequest::GetOverviewDataRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetOverviewData") -{} - -GetOverviewDataRequest::~GetOverviewDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetOverviewDataRequest; + +GetOverviewDataRequest::GetOverviewDataRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetOverviewData") +{} + +GetOverviewDataRequest::~GetOverviewDataRequest() +{} + std::string GetOverviewDataRequest::getDate()const { return date_; diff --git a/cusanalytic_sc_online/src/model/GetOverviewDataResult.cc b/cusanalytic_sc_online/src/model/GetOverviewDataResult.cc index 57bbf9936..0aefc21ea 100644 --- a/cusanalytic_sc_online/src/model/GetOverviewDataResult.cc +++ b/cusanalytic_sc_online/src/model/GetOverviewDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetOverviewDataResult::GetOverviewDataResult() : - ServiceResult() -{} - -GetOverviewDataResult::GetOverviewDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetOverviewDataResult::~GetOverviewDataResult() -{} - -void GetOverviewDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetOverviewDataResult::GetOverviewDataResult() : + ServiceResult() +{} + +GetOverviewDataResult::GetOverviewDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOverviewDataResult::~GetOverviewDataResult() +{} + +void GetOverviewDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["StayDeepAvg"].isNull()) stayDeepAvg_ = std::stof(value["StayDeepAvg"].asString()); if(!value["UvWeekGrowthPercent"].isNull()) @@ -60,9 +63,9 @@ void GetOverviewDataResult::parse(const std::string &payload) uvAvg_ = std::stof(value["UvAvg"].asString()); if(!value["UvEverySqmGrowthWeekPercent"].isNull()) uvEverySqmGrowthWeekPercent_ = std::stof(value["UvEverySqmGrowthWeekPercent"].asString()); - -} - + +} + float GetOverviewDataResult::getStayDeepAvg()const { return stayDeepAvg_; diff --git a/cusanalytic_sc_online/src/model/GetPortrayalRequest.cc b/cusanalytic_sc_online/src/model/GetPortrayalRequest.cc index 71052a11a..1eed4a656 100644 --- a/cusanalytic_sc_online/src/model/GetPortrayalRequest.cc +++ b/cusanalytic_sc_online/src/model/GetPortrayalRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetPortrayalRequest; - -GetPortrayalRequest::GetPortrayalRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetPortrayal") -{} - -GetPortrayalRequest::~GetPortrayalRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetPortrayalRequest; + +GetPortrayalRequest::GetPortrayalRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetPortrayal") +{} + +GetPortrayalRequest::~GetPortrayalRequest() +{} + std::string GetPortrayalRequest::getDate()const { return date_; diff --git a/cusanalytic_sc_online/src/model/GetPortrayalResult.cc b/cusanalytic_sc_online/src/model/GetPortrayalResult.cc index 23de2bf0a..63078bde8 100644 --- a/cusanalytic_sc_online/src/model/GetPortrayalResult.cc +++ b/cusanalytic_sc_online/src/model/GetPortrayalResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetPortrayalResult::GetPortrayalResult() : - ServiceResult() -{} - -GetPortrayalResult::GetPortrayalResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetPortrayalResult::~GetPortrayalResult() -{} - -void GetPortrayalResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetPortrayalResult::GetPortrayalResult() : + ServiceResult() +{} + +GetPortrayalResult::GetPortrayalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPortrayalResult::~GetPortrayalResult() +{} + +void GetPortrayalResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["FemalePercent"].isNull()) femalePercent_ = std::stof(value["FemalePercent"].asString()); if(!value["Mcount"].isNull()) @@ -98,9 +101,9 @@ void GetPortrayalResult::parse(const std::string &payload) mcount5160_ = std::stol(value["Mcount5160"].asString()); if(!value["MalePercent"].isNull()) malePercent_ = std::stof(value["MalePercent"].asString()); - -} - + +} + long GetPortrayalResult::getOldcount()const { return oldcount_; diff --git a/cusanalytic_sc_online/src/model/GetSupportStoreRequest.cc b/cusanalytic_sc_online/src/model/GetSupportStoreRequest.cc index e2541b53c..6544b50bd 100644 --- a/cusanalytic_sc_online/src/model/GetSupportStoreRequest.cc +++ b/cusanalytic_sc_online/src/model/GetSupportStoreRequest.cc @@ -1,27 +1,27 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetSupportStoreRequest; - -GetSupportStoreRequest::GetSupportStoreRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetSupportStore") -{} - -GetSupportStoreRequest::~GetSupportStoreRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::GetSupportStoreRequest; + +GetSupportStoreRequest::GetSupportStoreRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetSupportStore") +{} + +GetSupportStoreRequest::~GetSupportStoreRequest() +{} + diff --git a/cusanalytic_sc_online/src/model/GetSupportStoreResult.cc b/cusanalytic_sc_online/src/model/GetSupportStoreResult.cc index cac964fd8..06ec67c64 100644 --- a/cusanalytic_sc_online/src/model/GetSupportStoreResult.cc +++ b/cusanalytic_sc_online/src/model/GetSupportStoreResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -GetSupportStoreResult::GetSupportStoreResult() : - ServiceResult() -{} - -GetSupportStoreResult::GetSupportStoreResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSupportStoreResult::~GetSupportStoreResult() -{} - -void GetSupportStoreResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +GetSupportStoreResult::GetSupportStoreResult() : + ServiceResult() +{} + +GetSupportStoreResult::GetSupportStoreResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSupportStoreResult::~GetSupportStoreResult() +{} + +void GetSupportStoreResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allStorePopDTOs = value["StorePopDTOs"]["StorePopDTO"]; for (auto value : allStorePopDTOs) { @@ -62,9 +65,9 @@ void GetSupportStoreResult::parse(const std::string &payload) storePopDTOsObject.address = value["Address"].asString(); storePopDTOs_.push_back(storePopDTOsObject); } - -} - + +} + std::vector GetSupportStoreResult::getStorePopDTOs()const { return storePopDTOs_; diff --git a/cusanalytic_sc_online/src/model/ListVisitorsRequest.cc b/cusanalytic_sc_online/src/model/ListVisitorsRequest.cc index 0c9e89b66..81e3f4a56 100644 --- a/cusanalytic_sc_online/src/model/ListVisitorsRequest.cc +++ b/cusanalytic_sc_online/src/model/ListVisitorsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::ListVisitorsRequest; - -ListVisitorsRequest::ListVisitorsRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "ListVisitors") -{} - -ListVisitorsRequest::~ListVisitorsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::ListVisitorsRequest; + +ListVisitorsRequest::ListVisitorsRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "ListVisitors") +{} + +ListVisitorsRequest::~ListVisitorsRequest() +{} + std::string ListVisitorsRequest::getPkId()const { return pkId_; diff --git a/cusanalytic_sc_online/src/model/ListVisitorsResult.cc b/cusanalytic_sc_online/src/model/ListVisitorsResult.cc index 1f76b99a6..9302b1f52 100644 --- a/cusanalytic_sc_online/src/model/ListVisitorsResult.cc +++ b/cusanalytic_sc_online/src/model/ListVisitorsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -ListVisitorsResult::ListVisitorsResult() : - ServiceResult() -{} - -ListVisitorsResult::ListVisitorsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListVisitorsResult::~ListVisitorsResult() -{} - -void ListVisitorsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +ListVisitorsResult::ListVisitorsResult() : + ServiceResult() +{} + +ListVisitorsResult::ListVisitorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVisitorsResult::~ListVisitorsResult() +{} + +void ListVisitorsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVisitorItems = value["VisitorItems"]["VisitorItem"]; for (auto value : allVisitorItems) { @@ -74,9 +77,9 @@ void ListVisitorsResult::parse(const std::string &payload) pageIndex_ = std::stoi(value["PageIndex"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int ListVisitorsResult::getPageSize()const { return pageSize_; diff --git a/cusanalytic_sc_online/src/model/SearchPersonByImgRequest.cc b/cusanalytic_sc_online/src/model/SearchPersonByImgRequest.cc index ef748e782..577e2e990 100644 --- a/cusanalytic_sc_online/src/model/SearchPersonByImgRequest.cc +++ b/cusanalytic_sc_online/src/model/SearchPersonByImgRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::SearchPersonByImgRequest; - -SearchPersonByImgRequest::SearchPersonByImgRequest() : - RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "SearchPersonByImg") -{} - -SearchPersonByImgRequest::~SearchPersonByImgRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online::Model::SearchPersonByImgRequest; + +SearchPersonByImgRequest::SearchPersonByImgRequest() : + RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "SearchPersonByImg") +{} + +SearchPersonByImgRequest::~SearchPersonByImgRequest() +{} + std::string SearchPersonByImgRequest::getImgUrl()const { return imgUrl_; diff --git a/cusanalytic_sc_online/src/model/SearchPersonByImgResult.cc b/cusanalytic_sc_online/src/model/SearchPersonByImgResult.cc index b484e8928..87d8bcfa2 100644 --- a/cusanalytic_sc_online/src/model/SearchPersonByImgResult.cc +++ b/cusanalytic_sc_online/src/model/SearchPersonByImgResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Cusanalytic_sc_online; -using namespace AlibabaCloud::Cusanalytic_sc_online::Model; - -SearchPersonByImgResult::SearchPersonByImgResult() : - ServiceResult() -{} - -SearchPersonByImgResult::SearchPersonByImgResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchPersonByImgResult::~SearchPersonByImgResult() -{} - -void SearchPersonByImgResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cusanalytic_sc_online; +using namespace AlibabaCloud::Cusanalytic_sc_online::Model; + +SearchPersonByImgResult::SearchPersonByImgResult() : + ServiceResult() +{} + +SearchPersonByImgResult::SearchPersonByImgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchPersonByImgResult::~SearchPersonByImgResult() +{} + +void SearchPersonByImgResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allPersonSearchResultItems = value["PersonSearchResultItems"]["PersonSearchResultItem"]; for (auto value : allPersonSearchResultItems) { @@ -56,9 +59,9 @@ void SearchPersonByImgResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["Msg"].isNull()) msg_ = value["Msg"].asString(); - -} - + +} + std::string SearchPersonByImgResult::getMsg()const { return msg_; diff --git a/dbs/CMakeLists.txt b/dbs/CMakeLists.txt index cace6b3b1..fa3ebe9f0 100644 --- a/dbs/CMakeLists.txt +++ b/dbs/CMakeLists.txt @@ -23,6 +23,10 @@ set(dbs_public_header set(dbs_public_header_model include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h + include/alibabacloud/dbs/model/CreateBackupPlanRequest.h + include/alibabacloud/dbs/model/CreateBackupPlanResult.h + include/alibabacloud/dbs/model/StartBackupPlanRequest.h + include/alibabacloud/dbs/model/StartBackupPlanResult.h include/alibabacloud/dbs/model/RenewBackupPlanRequest.h include/alibabacloud/dbs/model/RenewBackupPlanResult.h include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h @@ -39,8 +43,12 @@ set(dbs_public_header_model include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h + include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h + include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h include/alibabacloud/dbs/model/CreateRestoreTaskResult.h + include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h + include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h include/alibabacloud/dbs/model/ModifyBackupStrategyResult.h include/alibabacloud/dbs/model/StartRestoreTaskRequest.h @@ -52,6 +60,10 @@ set(dbs_src src/DbsClient.cc src/model/DescribeBackupPlanListRequest.cc src/model/DescribeBackupPlanListResult.cc + src/model/CreateBackupPlanRequest.cc + src/model/CreateBackupPlanResult.cc + src/model/StartBackupPlanRequest.cc + src/model/StartBackupPlanResult.cc src/model/RenewBackupPlanRequest.cc src/model/RenewBackupPlanResult.cc src/model/DescribeFullBackupListRequest.cc @@ -68,8 +80,12 @@ set(dbs_src src/model/DescribeBackupGatewayListResult.cc src/model/ModifyBackupObjectsRequest.cc src/model/ModifyBackupObjectsResult.cc + src/model/DescribeIncrementBackupListRequest.cc + src/model/DescribeIncrementBackupListResult.cc src/model/CreateRestoreTaskRequest.cc src/model/CreateRestoreTaskResult.cc + src/model/ConfigureBackupPlanRequest.cc + src/model/ConfigureBackupPlanResult.cc src/model/ModifyBackupStrategyRequest.cc src/model/ModifyBackupStrategyResult.cc src/model/StartRestoreTaskRequest.cc diff --git a/dbs/include/alibabacloud/dbs/DbsClient.h b/dbs/include/alibabacloud/dbs/DbsClient.h index f80fa61d5..88d86b742 100644 --- a/dbs/include/alibabacloud/dbs/DbsClient.h +++ b/dbs/include/alibabacloud/dbs/DbsClient.h @@ -44,10 +44,10 @@ #include "model/DescribeBackupGatewayListResult.h" #include "model/ModifyBackupObjectsRequest.h" #include "model/ModifyBackupObjectsResult.h" -#include "model/CreateRestoreTaskRequest.h" -#include "model/CreateRestoreTaskResult.h" #include "model/DescribeIncrementBackupListRequest.h" #include "model/DescribeIncrementBackupListResult.h" +#include "model/CreateRestoreTaskRequest.h" +#include "model/CreateRestoreTaskResult.h" #include "model/ConfigureBackupPlanRequest.h" #include "model/ConfigureBackupPlanResult.h" #include "model/ModifyBackupStrategyRequest.h" @@ -98,12 +98,12 @@ namespace AlibabaCloud typedef Outcome ModifyBackupObjectsOutcome; typedef std::future ModifyBackupObjectsOutcomeCallable; typedef std::function&)> ModifyBackupObjectsAsyncHandler; - typedef Outcome CreateRestoreTaskOutcome; - typedef std::future CreateRestoreTaskOutcomeCallable; - typedef std::function&)> CreateRestoreTaskAsyncHandler; typedef Outcome DescribeIncrementBackupListOutcome; typedef std::future DescribeIncrementBackupListOutcomeCallable; typedef std::function&)> DescribeIncrementBackupListAsyncHandler; + typedef Outcome CreateRestoreTaskOutcome; + typedef std::future CreateRestoreTaskOutcomeCallable; + typedef std::function&)> CreateRestoreTaskAsyncHandler; typedef Outcome ConfigureBackupPlanOutcome; typedef std::future ConfigureBackupPlanOutcomeCallable; typedef std::function&)> ConfigureBackupPlanAsyncHandler; @@ -154,12 +154,12 @@ namespace AlibabaCloud ModifyBackupObjectsOutcome modifyBackupObjects(const Model::ModifyBackupObjectsRequest &request)const; void modifyBackupObjectsAsync(const Model::ModifyBackupObjectsRequest& request, const ModifyBackupObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBackupObjectsOutcomeCallable modifyBackupObjectsCallable(const Model::ModifyBackupObjectsRequest& request) const; - CreateRestoreTaskOutcome createRestoreTask(const Model::CreateRestoreTaskRequest &request)const; - void createRestoreTaskAsync(const Model::CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateRestoreTaskOutcomeCallable createRestoreTaskCallable(const Model::CreateRestoreTaskRequest& request) const; DescribeIncrementBackupListOutcome describeIncrementBackupList(const Model::DescribeIncrementBackupListRequest &request)const; void describeIncrementBackupListAsync(const Model::DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIncrementBackupListOutcomeCallable describeIncrementBackupListCallable(const Model::DescribeIncrementBackupListRequest& request) const; + CreateRestoreTaskOutcome createRestoreTask(const Model::CreateRestoreTaskRequest &request)const; + void createRestoreTaskAsync(const Model::CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRestoreTaskOutcomeCallable createRestoreTaskCallable(const Model::CreateRestoreTaskRequest& request) const; ConfigureBackupPlanOutcome configureBackupPlan(const Model::ConfigureBackupPlanRequest &request)const; void configureBackupPlanAsync(const Model::ConfigureBackupPlanRequest& request, const ConfigureBackupPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConfigureBackupPlanOutcomeCallable configureBackupPlanCallable(const Model::ConfigureBackupPlanRequest& request) const; diff --git a/dbs/include/alibabacloud/dbs/DbsExport.h b/dbs/include/alibabacloud/dbs/DbsExport.h index 80322bdab..cf06de793 100644 --- a/dbs/include/alibabacloud/dbs/DbsExport.h +++ b/dbs/include/alibabacloud/dbs/DbsExport.h @@ -1,32 +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_DBS_DBSEXPORT_H_ -#define ALIBABACLOUD_DBS_DBSEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_DBS_LIBRARY) -# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_DBS_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_DBSEXPORT_H_ +#define ALIBABACLOUD_DBS_DBSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DBS_LIBRARY) +# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DBS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DBS_EXPORT +#endif + #endif // !ALIBABACLOUD_DBS_DBSEXPORT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h index d9491a922..bba9f59a1 100644 --- a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequest - { - - public: - ConfigureBackupPlanRequest(); - ~ConfigureBackupPlanRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequest + { + + public: + ConfigureBackupPlanRequest(); + ~ConfigureBackupPlanRequest(); + std::string getSourceEndpointRegion()const; void setSourceEndpointRegion(const std::string& sourceEndpointRegion); int getDuplicationArchivePeriod()const; @@ -81,8 +81,8 @@ namespace AlibabaCloud void setOSSBucketName(const std::string& oSSBucketName); bool getEnableBackupLog()const; void setEnableBackupLog(bool enableBackupLog); - - private: + + private: std::string sourceEndpointRegion_; int duplicationArchivePeriod_; long backupGatewayId_; @@ -106,9 +106,9 @@ namespace AlibabaCloud std::string sourceEndpointOracleSID_; std::string oSSBucketName_; bool enableBackupLog_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h index c798f908d..d166cb982 100644 --- a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h +++ b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h @@ -1,59 +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_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanResult : public ServiceResult - { - public: - - - ConfigureBackupPlanResult(); - explicit ConfigureBackupPlanResult(const std::string &payload); - ~ConfigureBackupPlanResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanResult : public ServiceResult + { + public: + + + ConfigureBackupPlanResult(); + explicit ConfigureBackupPlanResult(const std::string &payload); + ~ConfigureBackupPlanResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h index f43b01118..725df1eb0 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanRequest : public RpcServiceRequest - { - - public: - CreateBackupPlanRequest(); - ~CreateBackupPlanRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanRequest : public RpcServiceRequest + { + + public: + CreateBackupPlanRequest(); + ~CreateBackupPlanRequest(); + std::string getDatabaseType()const; void setDatabaseType(const std::string& databaseType); std::string getPeriod()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setRegion(const std::string& region); std::string getPayType()const; void setPayType(const std::string& payType); - - private: + + private: std::string databaseType_; std::string period_; std::string clientToken_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string instanceType_; std::string region_; std::string payType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/CreateBackupPlanResult.h b/dbs/include/alibabacloud/dbs/model/CreateBackupPlanResult.h index 1e1929197..29cec706a 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateBackupPlanResult.h +++ b/dbs/include/alibabacloud/dbs/model/CreateBackupPlanResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanResult : public ServiceResult - { - public: - - - CreateBackupPlanResult(); - explicit CreateBackupPlanResult(const std::string &payload); - ~CreateBackupPlanResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanResult : public ServiceResult + { + public: + + + CreateBackupPlanResult(); + explicit CreateBackupPlanResult(const std::string &payload); + ~CreateBackupPlanResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; std::string getErrMessage()const; std::string getOrderId()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; std::string errMessage_; std::string orderId_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h b/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h index 7c14b2202..8d84d4765 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateRestoreTaskRequest : public RpcServiceRequest - { - - public: - CreateRestoreTaskRequest(); - ~CreateRestoreTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT CreateRestoreTaskRequest : public RpcServiceRequest + { + + public: + CreateRestoreTaskRequest(); + ~CreateRestoreTaskRequest(); + long getBackupGatewayId()const; void setBackupGatewayId(long backupGatewayId); std::string getDestinationEndpointOracleSID()const; @@ -75,8 +75,8 @@ namespace AlibabaCloud void setDuplicateConflict(const std::string& duplicateConflict); std::string getDestinationEndpointPassword()const; void setDestinationEndpointPassword(const std::string& destinationEndpointPassword); - - private: + + private: long backupGatewayId_; std::string destinationEndpointOracleSID_; long restoreTime_; @@ -97,9 +97,9 @@ namespace AlibabaCloud std::string restoreTaskName_; std::string duplicateConflict_; std::string destinationEndpointPassword_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskResult.h b/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskResult.h index 3c32ad620..3000ea6a9 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskResult.h +++ b/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskResult.h @@ -1,59 +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_DBS_MODEL_CREATERESTORETASKRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateRestoreTaskResult : public ServiceResult - { - public: - - - CreateRestoreTaskResult(); - explicit CreateRestoreTaskResult(const std::string &payload); - ~CreateRestoreTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT CreateRestoreTaskResult : public ServiceResult + { + public: + + + CreateRestoreTaskResult(); + explicit CreateRestoreTaskResult(const std::string &payload); + ~CreateRestoreTaskResult(); std::string getRestoreTaskId()const; int getHttpStatusCode()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string restoreTaskId_; int httpStatusCode_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h index 4062f122d..78e07be7b 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServiceRequest - { - - public: - DescribeBackupGatewayListRequest(); - ~DescribeBackupGatewayListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServiceRequest + { + + public: + DescribeBackupGatewayListRequest(); + ~DescribeBackupGatewayListRequest(); + std::string getIdentifier()const; void setIdentifier(const std::string& identifier); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string identifier_; std::string regionId_; std::string clientToken_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string region_; int pageNum_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h index 8d8307b29..6fbda035a 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListResult : public ServiceResult + { + public: struct BackupGateway { std::string sourceEndpointHostname; @@ -45,11 +45,11 @@ namespace AlibabaCloud std::string region; std::string backupGatewayId; }; - - - DescribeBackupGatewayListResult(); - explicit DescribeBackupGatewayListResult(const std::string &payload); - ~DescribeBackupGatewayListResult(); + + + DescribeBackupGatewayListResult(); + explicit DescribeBackupGatewayListResult(const std::string &payload); + ~DescribeBackupGatewayListResult(); int getPageSize()const; int getPageNum()const; int getHttpStatusCode()const; @@ -59,10 +59,10 @@ namespace AlibabaCloud std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int pageSize_; int pageNum_; int httpStatusCode_; @@ -72,9 +72,9 @@ namespace AlibabaCloud std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h index 22bd9df48..39b82f7cd 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListRequest : public RpcServiceRequest - { - - public: - DescribeBackupPlanListRequest(); - ~DescribeBackupPlanListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListRequest : public RpcServiceRequest + { + + public: + DescribeBackupPlanListRequest(); + ~DescribeBackupPlanListRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; int pageSize_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string region_; int pageNum_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h index f523cb038..ea95d2ab5 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListResult : public ServiceResult + { + public: struct BackupPlanDetail { std::string backupPlanName; @@ -60,11 +60,11 @@ namespace AlibabaCloud std::string sourceEndpointOracleSID; int backupRetentionPeriod; }; - - - DescribeBackupPlanListResult(); - explicit DescribeBackupPlanListResult(const std::string &payload); - ~DescribeBackupPlanListResult(); + + + DescribeBackupPlanListResult(); + explicit DescribeBackupPlanListResult(const std::string &payload); + ~DescribeBackupPlanListResult(); int getPageSize()const; int getPageNum()const; int getHttpStatusCode()const; @@ -74,10 +74,10 @@ namespace AlibabaCloud std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int pageSize_; int pageNum_; int httpStatusCode_; @@ -87,9 +87,9 @@ namespace AlibabaCloud std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h index 4bcbfe6ec..05a6a74df 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListRequest : public RpcServiceRequest - { - - public: - DescribeFullBackupListRequest(); - ~DescribeFullBackupListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListRequest : public RpcServiceRequest + { + + public: + DescribeFullBackupListRequest(); + ~DescribeFullBackupListRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; int pageSize_; std::string backupPlanId_; int pageNum_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h index c89350ddc..5e14f38d4 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListResult : public ServiceResult + { + public: struct FullBackupFile { std::string sourceEndpointIpPort; @@ -47,11 +47,11 @@ namespace AlibabaCloud std::string errMessage; std::string backupStatus; }; - - - DescribeFullBackupListResult(); - explicit DescribeFullBackupListResult(const std::string &payload); - ~DescribeFullBackupListResult(); + + + DescribeFullBackupListResult(); + explicit DescribeFullBackupListResult(const std::string &payload); + ~DescribeFullBackupListResult(); int getPageSize()const; int getPageNum()const; int getHttpStatusCode()const; @@ -61,10 +61,10 @@ namespace AlibabaCloud std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int pageSize_; int pageNum_; int httpStatusCode_; @@ -74,9 +74,9 @@ namespace AlibabaCloud std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h index 87cf95cad..9d06413fe 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListRequest : public RpcServiceRequest - { - - public: - DescribeIncrementBackupListRequest(); - ~DescribeIncrementBackupListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListRequest : public RpcServiceRequest + { + + public: + DescribeIncrementBackupListRequest(); + ~DescribeIncrementBackupListRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; int pageSize_; std::string backupPlanId_; int pageNum_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h index 73a825c7d..4dfcc5b41 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListResult : public ServiceResult + { + public: struct IncrementBackupFile { std::string sourceEndpointIpPort; @@ -43,11 +43,11 @@ namespace AlibabaCloud std::string backupSetId; std::string backupStatus; }; - - - DescribeIncrementBackupListResult(); - explicit DescribeIncrementBackupListResult(const std::string &payload); - ~DescribeIncrementBackupListResult(); + + + DescribeIncrementBackupListResult(); + explicit DescribeIncrementBackupListResult(const std::string &payload); + ~DescribeIncrementBackupListResult(); int getPageSize()const; int getPageNum()const; int getHttpStatusCode()const; @@ -57,10 +57,10 @@ namespace AlibabaCloud std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int pageSize_; int pageNum_; int httpStatusCode_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h index 9ecb5e93c..274d3a1d8 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeNodeCidrListRequest : public RpcServiceRequest - { - - public: - DescribeNodeCidrListRequest(); - ~DescribeNodeCidrListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeNodeCidrListRequest : public RpcServiceRequest + { + + public: + DescribeNodeCidrListRequest(); + ~DescribeNodeCidrListRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setRegion(const std::string& region); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; std::string region_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListResult.h index 7d84cdb3a..ceabf564c 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeNodeCidrListResult : public ServiceResult - { - public: - - - DescribeNodeCidrListResult(); - explicit DescribeNodeCidrListResult(const std::string &payload); - ~DescribeNodeCidrListResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeNodeCidrListResult : public ServiceResult + { + public: + + + DescribeNodeCidrListResult(); + explicit DescribeNodeCidrListResult(const std::string &payload); + ~DescribeNodeCidrListResult(); std::vector getInternetIPs()const; int getHttpStatusCode()const; std::vector getIntranetIPs()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector internetIPs_; int httpStatusCode_; std::vector intranetIPs_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h index 7e01bf275..5f43c320b 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeRestoreTaskListRequest : public RpcServiceRequest - { - - public: - DescribeRestoreTaskListRequest(); - ~DescribeRestoreTaskListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeRestoreTaskListRequest : public RpcServiceRequest + { + + public: + DescribeRestoreTaskListRequest(); + ~DescribeRestoreTaskListRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; std::string restoreTaskId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string backupPlanId_; int pageNum_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h index 6cebec3e0..ed120f593 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeRestoreTaskListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeRestoreTaskListResult : public ServiceResult + { + public: struct RestoreTaskDetail { std::string restoreDir; @@ -58,11 +58,11 @@ namespace AlibabaCloud std::string destinationEndpointInstanceID; long restoreTaskFinishTime; }; - - - DescribeRestoreTaskListResult(); - explicit DescribeRestoreTaskListResult(const std::string &payload); - ~DescribeRestoreTaskListResult(); + + + DescribeRestoreTaskListResult(); + explicit DescribeRestoreTaskListResult(const std::string &payload); + ~DescribeRestoreTaskListResult(); int getPageSize()const; int getPageNum()const; int getHttpStatusCode()const; @@ -72,10 +72,10 @@ namespace AlibabaCloud std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int pageSize_; int pageNum_; int httpStatusCode_; @@ -85,9 +85,9 @@ namespace AlibabaCloud std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h index 5d803d505..93562a495 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupObjectsRequest : public RpcServiceRequest - { - - public: - ModifyBackupObjectsRequest(); - ~ModifyBackupObjectsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupObjectsRequest : public RpcServiceRequest + { + + public: + ModifyBackupObjectsRequest(); + ~ModifyBackupObjectsRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setBackupObjects(const std::string& backupObjects); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; std::string backupPlanId_; std::string backupObjects_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h index 60ec3094a..d9d1118f9 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupObjectsResult : public ServiceResult - { - public: - - - ModifyBackupObjectsResult(); - explicit ModifyBackupObjectsResult(const std::string &payload); - ~ModifyBackupObjectsResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupObjectsResult : public ServiceResult + { + public: + + + ModifyBackupObjectsResult(); + explicit ModifyBackupObjectsResult(const std::string &payload); + ~ModifyBackupObjectsResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; bool getNeedPrecheck()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; bool needPrecheck_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h index 19c833179..d457aee1b 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupPlanNameRequest : public RpcServiceRequest - { - - public: - ModifyBackupPlanNameRequest(); - ~ModifyBackupPlanNameRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupPlanNameRequest : public RpcServiceRequest + { + + public: + ModifyBackupPlanNameRequest(); + ~ModifyBackupPlanNameRequest(); + std::string getBackupPlanName()const; void setBackupPlanName(const std::string& backupPlanName); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setBackupPlanId(const std::string& backupPlanId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string backupPlanName_; std::string regionId_; std::string clientToken_; std::string backupPlanId_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameResult.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameResult.h index 30deb70b5..88c5d8394 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameResult.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameResult.h @@ -1,59 +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_DBS_MODEL_MODIFYBACKUPPLANNAMERESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupPlanNameResult : public ServiceResult - { - public: - - - ModifyBackupPlanNameResult(); - explicit ModifyBackupPlanNameResult(const std::string &payload); - ~ModifyBackupPlanNameResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMERESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupPlanNameResult : public ServiceResult + { + public: + + + ModifyBackupPlanNameResult(); + explicit ModifyBackupPlanNameResult(const std::string &payload); + ~ModifyBackupPlanNameResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMERESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h index 7fd75484a..6ae58cb65 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupSourceEndpointRequest : public RpcServiceRequest - { - - public: - ModifyBackupSourceEndpointRequest(); - ~ModifyBackupSourceEndpointRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupSourceEndpointRequest : public RpcServiceRequest + { + + public: + ModifyBackupSourceEndpointRequest(); + ~ModifyBackupSourceEndpointRequest(); + std::string getSourceEndpointRegion()const; void setSourceEndpointRegion(const std::string& sourceEndpointRegion); long getBackupGatewayId()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getSourceEndpointOracleSID()const; void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID); - - private: + + private: std::string sourceEndpointRegion_; long backupGatewayId_; std::string sourceEndpointInstanceID_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string sourceEndpointIP_; std::string regionId_; std::string sourceEndpointOracleSID_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointResult.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointResult.h index 53ba2a94a..c5c70c2ac 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointResult.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupSourceEndpointResult : public ServiceResult - { - public: - - - ModifyBackupSourceEndpointResult(); - explicit ModifyBackupSourceEndpointResult(const std::string &payload); - ~ModifyBackupSourceEndpointResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupSourceEndpointResult : public ServiceResult + { + public: + + + ModifyBackupSourceEndpointResult(); + explicit ModifyBackupSourceEndpointResult(const std::string &payload); + ~ModifyBackupSourceEndpointResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; bool getNeedPrecheck()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; bool needPrecheck_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h index 28f6e53e7..111e98c09 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupStrategyRequest : public RpcServiceRequest - { - - public: - ModifyBackupStrategyRequest(); - ~ModifyBackupStrategyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupStrategyRequest : public RpcServiceRequest + { + + public: + ModifyBackupStrategyRequest(); + ~ModifyBackupStrategyRequest(); + std::string getBackupPeriod()const; void setBackupPeriod(const std::string& backupPeriod); std::string getBackupStartTime()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setBackupPlanId(const std::string& backupPlanId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string backupPeriod_; std::string backupStartTime_; std::string regionId_; std::string clientToken_; std::string backupPlanId_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyResult.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyResult.h index a022c004f..df25690f8 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyResult.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupStrategyResult : public ServiceResult - { - public: - - - ModifyBackupStrategyResult(); - explicit ModifyBackupStrategyResult(const std::string &payload); - ~ModifyBackupStrategyResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT ModifyBackupStrategyResult : public ServiceResult + { + public: + + + ModifyBackupStrategyResult(); + explicit ModifyBackupStrategyResult(const std::string &payload); + ~ModifyBackupStrategyResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; bool getNeedPrecheck()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; bool needPrecheck_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.h index 153492130..019d91828 100644 --- a/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT RenewBackupPlanRequest : public RpcServiceRequest - { - - public: - RenewBackupPlanRequest(); - ~RenewBackupPlanRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT RenewBackupPlanRequest : public RpcServiceRequest + { + + public: + RenewBackupPlanRequest(); + ~RenewBackupPlanRequest(); + std::string getPeriod()const; void setPeriod(const std::string& period); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(const std::string& ownerId); int getUsedTime()const; void setUsedTime(int usedTime); - - private: + + private: std::string period_; std::string regionId_; std::string clientToken_; std::string backupPlanId_; std::string ownerId_; int usedTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/RenewBackupPlanResult.h b/dbs/include/alibabacloud/dbs/model/RenewBackupPlanResult.h index 036da6bd8..a9c18d7ff 100644 --- a/dbs/include/alibabacloud/dbs/model/RenewBackupPlanResult.h +++ b/dbs/include/alibabacloud/dbs/model/RenewBackupPlanResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT RenewBackupPlanResult : public ServiceResult - { - public: - - - RenewBackupPlanResult(); - explicit RenewBackupPlanResult(const std::string &payload); - ~RenewBackupPlanResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT RenewBackupPlanResult : public ServiceResult + { + public: + + + RenewBackupPlanResult(); + explicit RenewBackupPlanResult(const std::string &payload); + ~RenewBackupPlanResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; std::string getErrMessage()const; std::string getOrderId()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; std::string errMessage_; std::string orderId_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h index a554bde76..2f505981c 100644 --- a/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StartBackupPlanRequest : public RpcServiceRequest - { - - public: - StartBackupPlanRequest(); - ~StartBackupPlanRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT StartBackupPlanRequest : public RpcServiceRequest + { + + public: + StartBackupPlanRequest(); + ~StartBackupPlanRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setBackupPlanId(const std::string& backupPlanId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; std::string backupPlanId_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h b/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h index 0cdae7109..42c6d2e4a 100644 --- a/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h +++ b/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h @@ -1,59 +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_DBS_MODEL_STARTBACKUPPLANRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StartBackupPlanResult : public ServiceResult - { - public: - - - StartBackupPlanResult(); - explicit StartBackupPlanResult(const std::string &payload); - ~StartBackupPlanResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT StartBackupPlanResult : public ServiceResult + { + public: + + + StartBackupPlanResult(); + explicit StartBackupPlanResult(const std::string &payload); + ~StartBackupPlanResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.h b/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.h index c52d10de8..b1205a306 100644 --- a/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.h +++ b/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StartRestoreTaskRequest : public RpcServiceRequest - { - - public: - StartRestoreTaskRequest(); - ~StartRestoreTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT StartRestoreTaskRequest : public RpcServiceRequest + { + + public: + StartRestoreTaskRequest(); + ~StartRestoreTaskRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getClientToken()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setRestoreTaskId(const std::string& restoreTaskId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string regionId_; std::string clientToken_; std::string restoreTaskId_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/StartRestoreTaskResult.h b/dbs/include/alibabacloud/dbs/model/StartRestoreTaskResult.h index f757877c6..dd9555338 100644 --- a/dbs/include/alibabacloud/dbs/model/StartRestoreTaskResult.h +++ b/dbs/include/alibabacloud/dbs/model/StartRestoreTaskResult.h @@ -1,59 +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_DBS_MODEL_STARTRESTORETASKRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StartRestoreTaskResult : public ServiceResult - { - public: - - - StartRestoreTaskResult(); - explicit StartRestoreTaskResult(const std::string &payload); - ~StartRestoreTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT StartRestoreTaskResult : public ServiceResult + { + public: + + + StartRestoreTaskResult(); + explicit StartRestoreTaskResult(const std::string &payload); + ~StartRestoreTaskResult(); std::string getRestoreTaskId()const; int getHttpStatusCode()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string restoreTaskId_; int httpStatusCode_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h index 3aa9b5ca3..7c08207a3 100644 --- a/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StopBackupPlanRequest : public RpcServiceRequest - { - - public: - StopBackupPlanRequest(); - ~StopBackupPlanRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT StopBackupPlanRequest : public RpcServiceRequest + { + + public: + StopBackupPlanRequest(); + ~StopBackupPlanRequest(); + std::string getStopMethod()const; void setStopMethod(const std::string& stopMethod); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setBackupPlanId(const std::string& backupPlanId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); - - private: + + private: std::string stopMethod_; std::string regionId_; std::string clientToken_; std::string backupPlanId_; std::string ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/StopBackupPlanResult.h b/dbs/include/alibabacloud/dbs/model/StopBackupPlanResult.h index 004510161..e979ef6f4 100644 --- a/dbs/include/alibabacloud/dbs/model/StopBackupPlanResult.h +++ b/dbs/include/alibabacloud/dbs/model/StopBackupPlanResult.h @@ -1,59 +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_DBS_MODEL_STOPBACKUPPLANRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StopBackupPlanResult : public ServiceResult - { - public: - - - StopBackupPlanResult(); - explicit StopBackupPlanResult(const std::string &payload); - ~StopBackupPlanResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT StopBackupPlanResult : public ServiceResult + { + public: + + + StopBackupPlanResult(); + explicit StopBackupPlanResult(const std::string &payload); + ~StopBackupPlanResult(); int getHttpStatusCode()const; std::string getBackupPlanId()const; std::string getErrMessage()const; bool getSuccess()const; std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int httpStatusCode_; std::string backupPlanId_; std::string errMessage_; bool success_; std::string errCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANRESULT_H_ \ No newline at end of file diff --git a/dbs/src/DbsClient.cc b/dbs/src/DbsClient.cc index 4e4683d3e..30b21461f 100644 --- a/dbs/src/DbsClient.cc +++ b/dbs/src/DbsClient.cc @@ -31,21 +31,21 @@ DbsClient::DbsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dbs"); } DbsClient::DbsClient(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, "cbs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dbs"); } DbsClient::DbsClient(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, "cbs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dbs"); } DbsClient::~DbsClient() @@ -447,42 +447,6 @@ DbsClient::ModifyBackupObjectsOutcomeCallable DbsClient::modifyBackupObjectsCall return task->get_future(); } -DbsClient::CreateRestoreTaskOutcome DbsClient::createRestoreTask(const CreateRestoreTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateRestoreTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateRestoreTaskOutcome(CreateRestoreTaskResult(outcome.result())); - else - return CreateRestoreTaskOutcome(outcome.error()); -} - -void DbsClient::createRestoreTaskAsync(const CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createRestoreTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DbsClient::CreateRestoreTaskOutcomeCallable DbsClient::createRestoreTaskCallable(const CreateRestoreTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createRestoreTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DbsClient::DescribeIncrementBackupListOutcome DbsClient::describeIncrementBackupList(const DescribeIncrementBackupListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +483,42 @@ DbsClient::DescribeIncrementBackupListOutcomeCallable DbsClient::describeIncreme return task->get_future(); } +DbsClient::CreateRestoreTaskOutcome DbsClient::createRestoreTask(const CreateRestoreTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRestoreTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRestoreTaskOutcome(CreateRestoreTaskResult(outcome.result())); + else + return CreateRestoreTaskOutcome(outcome.error()); +} + +void DbsClient::createRestoreTaskAsync(const CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRestoreTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DbsClient::CreateRestoreTaskOutcomeCallable DbsClient::createRestoreTaskCallable(const CreateRestoreTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRestoreTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DbsClient::ConfigureBackupPlanOutcome DbsClient::configureBackupPlan(const ConfigureBackupPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dbs/src/model/ConfigureBackupPlanRequest.cc b/dbs/src/model/ConfigureBackupPlanRequest.cc index e012be929..a6486a379 100644 --- a/dbs/src/model/ConfigureBackupPlanRequest.cc +++ b/dbs/src/model/ConfigureBackupPlanRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::ConfigureBackupPlanRequest; - -ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan") -{} - -ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::ConfigureBackupPlanRequest; + +ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() : + RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan") +{} + +ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest() +{} + std::string ConfigureBackupPlanRequest::getSourceEndpointRegion()const { return sourceEndpointRegion_; diff --git a/dbs/src/model/ConfigureBackupPlanResult.cc b/dbs/src/model/ConfigureBackupPlanResult.cc index 1ec35a9bc..c969255e2 100644 --- a/dbs/src/model/ConfigureBackupPlanResult.cc +++ b/dbs/src/model/ConfigureBackupPlanResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -ConfigureBackupPlanResult::ConfigureBackupPlanResult() : - ServiceResult() -{} - -ConfigureBackupPlanResult::ConfigureBackupPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureBackupPlanResult::~ConfigureBackupPlanResult() -{} - -void ConfigureBackupPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +ConfigureBackupPlanResult::ConfigureBackupPlanResult() : + ServiceResult() +{} + +ConfigureBackupPlanResult::ConfigureBackupPlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConfigureBackupPlanResult::~ConfigureBackupPlanResult() +{} + +void ConfigureBackupPlanResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -50,9 +53,9 @@ void ConfigureBackupPlanResult::parse(const std::string &payload) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); - -} - + +} + int ConfigureBackupPlanResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/CreateBackupPlanRequest.cc b/dbs/src/model/CreateBackupPlanRequest.cc index f08b4b4fc..9092270ae 100644 --- a/dbs/src/model/CreateBackupPlanRequest.cc +++ b/dbs/src/model/CreateBackupPlanRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::CreateBackupPlanRequest; - -CreateBackupPlanRequest::CreateBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan") -{} - -CreateBackupPlanRequest::~CreateBackupPlanRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::CreateBackupPlanRequest; + +CreateBackupPlanRequest::CreateBackupPlanRequest() : + RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan") +{} + +CreateBackupPlanRequest::~CreateBackupPlanRequest() +{} + std::string CreateBackupPlanRequest::getDatabaseType()const { return databaseType_; diff --git a/dbs/src/model/CreateBackupPlanResult.cc b/dbs/src/model/CreateBackupPlanResult.cc index 42805954d..15219f42a 100644 --- a/dbs/src/model/CreateBackupPlanResult.cc +++ b/dbs/src/model/CreateBackupPlanResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -CreateBackupPlanResult::CreateBackupPlanResult() : - ServiceResult() -{} - -CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateBackupPlanResult::~CreateBackupPlanResult() -{} - -void CreateBackupPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +CreateBackupPlanResult::CreateBackupPlanResult() : + ServiceResult() +{} + +CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupPlanResult::~CreateBackupPlanResult() +{} + +void CreateBackupPlanResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -52,9 +55,9 @@ void CreateBackupPlanResult::parse(const std::string &payload) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + int CreateBackupPlanResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/CreateRestoreTaskRequest.cc b/dbs/src/model/CreateRestoreTaskRequest.cc index f85a16b55..77db341c1 100644 --- a/dbs/src/model/CreateRestoreTaskRequest.cc +++ b/dbs/src/model/CreateRestoreTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::CreateRestoreTaskRequest; - -CreateRestoreTaskRequest::CreateRestoreTaskRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateRestoreTask") -{} - -CreateRestoreTaskRequest::~CreateRestoreTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::CreateRestoreTaskRequest; + +CreateRestoreTaskRequest::CreateRestoreTaskRequest() : + RpcServiceRequest("dbs", "2019-03-06", "CreateRestoreTask") +{} + +CreateRestoreTaskRequest::~CreateRestoreTaskRequest() +{} + long CreateRestoreTaskRequest::getBackupGatewayId()const { return backupGatewayId_; diff --git a/dbs/src/model/CreateRestoreTaskResult.cc b/dbs/src/model/CreateRestoreTaskResult.cc index 424343176..66ccab1a4 100644 --- a/dbs/src/model/CreateRestoreTaskResult.cc +++ b/dbs/src/model/CreateRestoreTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -CreateRestoreTaskResult::CreateRestoreTaskResult() : - ServiceResult() -{} - -CreateRestoreTaskResult::CreateRestoreTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateRestoreTaskResult::~CreateRestoreTaskResult() -{} - -void CreateRestoreTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +CreateRestoreTaskResult::CreateRestoreTaskResult() : + ServiceResult() +{} + +CreateRestoreTaskResult::CreateRestoreTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRestoreTaskResult::~CreateRestoreTaskResult() +{} + +void CreateRestoreTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -50,9 +53,9 @@ void CreateRestoreTaskResult::parse(const std::string &payload) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["RestoreTaskId"].isNull()) restoreTaskId_ = value["RestoreTaskId"].asString(); - -} - + +} + std::string CreateRestoreTaskResult::getRestoreTaskId()const { return restoreTaskId_; diff --git a/dbs/src/model/DescribeBackupGatewayListRequest.cc b/dbs/src/model/DescribeBackupGatewayListRequest.cc index 20c881b67..07207964c 100644 --- a/dbs/src/model/DescribeBackupGatewayListRequest.cc +++ b/dbs/src/model/DescribeBackupGatewayListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::DescribeBackupGatewayListRequest; - -DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList") -{} - -DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::DescribeBackupGatewayListRequest; + +DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() : + RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList") +{} + +DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest() +{} + std::string DescribeBackupGatewayListRequest::getIdentifier()const { return identifier_; diff --git a/dbs/src/model/DescribeBackupGatewayListResult.cc b/dbs/src/model/DescribeBackupGatewayListResult.cc index e7f3ef8f5..dd7cd2d11 100644 --- a/dbs/src/model/DescribeBackupGatewayListResult.cc +++ b/dbs/src/model/DescribeBackupGatewayListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeBackupGatewayListResult::DescribeBackupGatewayListResult() : - ServiceResult() -{} - -DescribeBackupGatewayListResult::DescribeBackupGatewayListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupGatewayListResult::~DescribeBackupGatewayListResult() -{} - -void DescribeBackupGatewayListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +DescribeBackupGatewayListResult::DescribeBackupGatewayListResult() : + ServiceResult() +{} + +DescribeBackupGatewayListResult::DescribeBackupGatewayListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupGatewayListResult::~DescribeBackupGatewayListResult() +{} + +void DescribeBackupGatewayListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["BackupGateway"]; for (auto value : allItems) { @@ -82,9 +85,9 @@ void DescribeBackupGatewayListResult::parse(const std::string &payload) pageNum_ = std::stoi(value["PageNum"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); - -} - + +} + int DescribeBackupGatewayListResult::getPageSize()const { return pageSize_; diff --git a/dbs/src/model/DescribeBackupPlanListRequest.cc b/dbs/src/model/DescribeBackupPlanListRequest.cc index f17986af6..1ba67a0d6 100644 --- a/dbs/src/model/DescribeBackupPlanListRequest.cc +++ b/dbs/src/model/DescribeBackupPlanListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::DescribeBackupPlanListRequest; - -DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList") -{} - -DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::DescribeBackupPlanListRequest; + +DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() : + RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList") +{} + +DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest() +{} + std::string DescribeBackupPlanListRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/DescribeBackupPlanListResult.cc b/dbs/src/model/DescribeBackupPlanListResult.cc index 2287e41e9..77195c593 100644 --- a/dbs/src/model/DescribeBackupPlanListResult.cc +++ b/dbs/src/model/DescribeBackupPlanListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeBackupPlanListResult::DescribeBackupPlanListResult() : - ServiceResult() -{} - -DescribeBackupPlanListResult::DescribeBackupPlanListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupPlanListResult::~DescribeBackupPlanListResult() -{} - -void DescribeBackupPlanListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +DescribeBackupPlanListResult::DescribeBackupPlanListResult() : + ServiceResult() +{} + +DescribeBackupPlanListResult::DescribeBackupPlanListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupPlanListResult::~DescribeBackupPlanListResult() +{} + +void DescribeBackupPlanListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["BackupPlanDetail"]; for (auto value : allItems) { @@ -112,9 +115,9 @@ void DescribeBackupPlanListResult::parse(const std::string &payload) pageNum_ = std::stoi(value["PageNum"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); - -} - + +} + int DescribeBackupPlanListResult::getPageSize()const { return pageSize_; diff --git a/dbs/src/model/DescribeFullBackupListRequest.cc b/dbs/src/model/DescribeFullBackupListRequest.cc index 0efa9e41d..16e896727 100644 --- a/dbs/src/model/DescribeFullBackupListRequest.cc +++ b/dbs/src/model/DescribeFullBackupListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::DescribeFullBackupListRequest; - -DescribeFullBackupListRequest::DescribeFullBackupListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList") -{} - -DescribeFullBackupListRequest::~DescribeFullBackupListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::DescribeFullBackupListRequest; + +DescribeFullBackupListRequest::DescribeFullBackupListRequest() : + RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList") +{} + +DescribeFullBackupListRequest::~DescribeFullBackupListRequest() +{} + std::string DescribeFullBackupListRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/DescribeFullBackupListResult.cc b/dbs/src/model/DescribeFullBackupListResult.cc index 2eb4e4329..d76551220 100644 --- a/dbs/src/model/DescribeFullBackupListResult.cc +++ b/dbs/src/model/DescribeFullBackupListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeFullBackupListResult::DescribeFullBackupListResult() : - ServiceResult() -{} - -DescribeFullBackupListResult::DescribeFullBackupListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFullBackupListResult::~DescribeFullBackupListResult() -{} - -void DescribeFullBackupListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +DescribeFullBackupListResult::DescribeFullBackupListResult() : + ServiceResult() +{} + +DescribeFullBackupListResult::DescribeFullBackupListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFullBackupListResult::~DescribeFullBackupListResult() +{} + +void DescribeFullBackupListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["FullBackupFile"]; for (auto value : allItems) { @@ -86,9 +89,9 @@ void DescribeFullBackupListResult::parse(const std::string &payload) pageNum_ = std::stoi(value["PageNum"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); - -} - + +} + int DescribeFullBackupListResult::getPageSize()const { return pageSize_; diff --git a/dbs/src/model/DescribeIncrementBackupListRequest.cc b/dbs/src/model/DescribeIncrementBackupListRequest.cc index 2782e19d3..116ee9f52 100644 --- a/dbs/src/model/DescribeIncrementBackupListRequest.cc +++ b/dbs/src/model/DescribeIncrementBackupListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::DescribeIncrementBackupListRequest; - -DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList") -{} - -DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::DescribeIncrementBackupListRequest; + +DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() : + RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList") +{} + +DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest() +{} + std::string DescribeIncrementBackupListRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/DescribeIncrementBackupListResult.cc b/dbs/src/model/DescribeIncrementBackupListResult.cc index 4fa7eceef..1db384430 100644 --- a/dbs/src/model/DescribeIncrementBackupListResult.cc +++ b/dbs/src/model/DescribeIncrementBackupListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeIncrementBackupListResult::DescribeIncrementBackupListResult() : - ServiceResult() -{} - -DescribeIncrementBackupListResult::DescribeIncrementBackupListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeIncrementBackupListResult::~DescribeIncrementBackupListResult() -{} - -void DescribeIncrementBackupListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +DescribeIncrementBackupListResult::DescribeIncrementBackupListResult() : + ServiceResult() +{} + +DescribeIncrementBackupListResult::DescribeIncrementBackupListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIncrementBackupListResult::~DescribeIncrementBackupListResult() +{} + +void DescribeIncrementBackupListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["IncrementBackupFile"]; for (auto value : allItems) { @@ -78,9 +81,9 @@ void DescribeIncrementBackupListResult::parse(const std::string &payload) pageNum_ = std::stoi(value["PageNum"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); - -} - + +} + int DescribeIncrementBackupListResult::getPageSize()const { return pageSize_; diff --git a/dbs/src/model/DescribeNodeCidrListRequest.cc b/dbs/src/model/DescribeNodeCidrListRequest.cc index 14d4a83c3..135384877 100644 --- a/dbs/src/model/DescribeNodeCidrListRequest.cc +++ b/dbs/src/model/DescribeNodeCidrListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::DescribeNodeCidrListRequest; - -DescribeNodeCidrListRequest::DescribeNodeCidrListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeNodeCidrList") -{} - -DescribeNodeCidrListRequest::~DescribeNodeCidrListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::DescribeNodeCidrListRequest; + +DescribeNodeCidrListRequest::DescribeNodeCidrListRequest() : + RpcServiceRequest("dbs", "2019-03-06", "DescribeNodeCidrList") +{} + +DescribeNodeCidrListRequest::~DescribeNodeCidrListRequest() +{} + std::string DescribeNodeCidrListRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/DescribeNodeCidrListResult.cc b/dbs/src/model/DescribeNodeCidrListResult.cc index 93e4f87dd..60eccdb95 100644 --- a/dbs/src/model/DescribeNodeCidrListResult.cc +++ b/dbs/src/model/DescribeNodeCidrListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeNodeCidrListResult::DescribeNodeCidrListResult() : - ServiceResult() -{} - -DescribeNodeCidrListResult::DescribeNodeCidrListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNodeCidrListResult::~DescribeNodeCidrListResult() -{} - -void DescribeNodeCidrListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +DescribeNodeCidrListResult::DescribeNodeCidrListResult() : + ServiceResult() +{} + +DescribeNodeCidrListResult::DescribeNodeCidrListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNodeCidrListResult::~DescribeNodeCidrListResult() +{} + +void DescribeNodeCidrListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInternetIPs = value["InternetIPs"]["InternetIP"]; for (const auto &item : allInternetIPs) internetIPs_.push_back(item.asString()); @@ -54,9 +57,9 @@ void DescribeNodeCidrListResult::parse(const std::string &payload) errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - -} - + +} + std::vector DescribeNodeCidrListResult::getInternetIPs()const { return internetIPs_; diff --git a/dbs/src/model/DescribeRestoreTaskListRequest.cc b/dbs/src/model/DescribeRestoreTaskListRequest.cc index 255075b1d..9096f5c16 100644 --- a/dbs/src/model/DescribeRestoreTaskListRequest.cc +++ b/dbs/src/model/DescribeRestoreTaskListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::DescribeRestoreTaskListRequest; - -DescribeRestoreTaskListRequest::DescribeRestoreTaskListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreTaskList") -{} - -DescribeRestoreTaskListRequest::~DescribeRestoreTaskListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::DescribeRestoreTaskListRequest; + +DescribeRestoreTaskListRequest::DescribeRestoreTaskListRequest() : + RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreTaskList") +{} + +DescribeRestoreTaskListRequest::~DescribeRestoreTaskListRequest() +{} + std::string DescribeRestoreTaskListRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/DescribeRestoreTaskListResult.cc b/dbs/src/model/DescribeRestoreTaskListResult.cc index cf2da54bb..e3282e703 100644 --- a/dbs/src/model/DescribeRestoreTaskListResult.cc +++ b/dbs/src/model/DescribeRestoreTaskListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeRestoreTaskListResult::DescribeRestoreTaskListResult() : - ServiceResult() -{} - -DescribeRestoreTaskListResult::DescribeRestoreTaskListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRestoreTaskListResult::~DescribeRestoreTaskListResult() -{} - -void DescribeRestoreTaskListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +DescribeRestoreTaskListResult::DescribeRestoreTaskListResult() : + ServiceResult() +{} + +DescribeRestoreTaskListResult::DescribeRestoreTaskListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRestoreTaskListResult::~DescribeRestoreTaskListResult() +{} + +void DescribeRestoreTaskListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["RestoreTaskDetail"]; for (auto value : allItems) { @@ -108,9 +111,9 @@ void DescribeRestoreTaskListResult::parse(const std::string &payload) pageNum_ = std::stoi(value["PageNum"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); - -} - + +} + int DescribeRestoreTaskListResult::getPageSize()const { return pageSize_; diff --git a/dbs/src/model/ModifyBackupObjectsRequest.cc b/dbs/src/model/ModifyBackupObjectsRequest.cc index d5f19d699..8c69f92e2 100644 --- a/dbs/src/model/ModifyBackupObjectsRequest.cc +++ b/dbs/src/model/ModifyBackupObjectsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupObjectsRequest; - -ModifyBackupObjectsRequest::ModifyBackupObjectsRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupObjects") -{} - -ModifyBackupObjectsRequest::~ModifyBackupObjectsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupObjectsRequest; + +ModifyBackupObjectsRequest::ModifyBackupObjectsRequest() : + RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupObjects") +{} + +ModifyBackupObjectsRequest::~ModifyBackupObjectsRequest() +{} + std::string ModifyBackupObjectsRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/ModifyBackupObjectsResult.cc b/dbs/src/model/ModifyBackupObjectsResult.cc index 14e2914bf..4516e4ed1 100644 --- a/dbs/src/model/ModifyBackupObjectsResult.cc +++ b/dbs/src/model/ModifyBackupObjectsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -ModifyBackupObjectsResult::ModifyBackupObjectsResult() : - ServiceResult() -{} - -ModifyBackupObjectsResult::ModifyBackupObjectsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyBackupObjectsResult::~ModifyBackupObjectsResult() -{} - -void ModifyBackupObjectsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +ModifyBackupObjectsResult::ModifyBackupObjectsResult() : + ServiceResult() +{} + +ModifyBackupObjectsResult::ModifyBackupObjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupObjectsResult::~ModifyBackupObjectsResult() +{} + +void ModifyBackupObjectsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -52,9 +55,9 @@ void ModifyBackupObjectsResult::parse(const std::string &payload) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) needPrecheck_ = value["NeedPrecheck"].asString() == "true"; - -} - + +} + int ModifyBackupObjectsResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/ModifyBackupPlanNameRequest.cc b/dbs/src/model/ModifyBackupPlanNameRequest.cc index 5d2fe594e..3911a30c2 100644 --- a/dbs/src/model/ModifyBackupPlanNameRequest.cc +++ b/dbs/src/model/ModifyBackupPlanNameRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupPlanNameRequest; - -ModifyBackupPlanNameRequest::ModifyBackupPlanNameRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupPlanName") -{} - -ModifyBackupPlanNameRequest::~ModifyBackupPlanNameRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupPlanNameRequest; + +ModifyBackupPlanNameRequest::ModifyBackupPlanNameRequest() : + RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupPlanName") +{} + +ModifyBackupPlanNameRequest::~ModifyBackupPlanNameRequest() +{} + std::string ModifyBackupPlanNameRequest::getBackupPlanName()const { return backupPlanName_; diff --git a/dbs/src/model/ModifyBackupPlanNameResult.cc b/dbs/src/model/ModifyBackupPlanNameResult.cc index e05dc334d..84a1b1f96 100644 --- a/dbs/src/model/ModifyBackupPlanNameResult.cc +++ b/dbs/src/model/ModifyBackupPlanNameResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -ModifyBackupPlanNameResult::ModifyBackupPlanNameResult() : - ServiceResult() -{} - -ModifyBackupPlanNameResult::ModifyBackupPlanNameResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyBackupPlanNameResult::~ModifyBackupPlanNameResult() -{} - -void ModifyBackupPlanNameResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +ModifyBackupPlanNameResult::ModifyBackupPlanNameResult() : + ServiceResult() +{} + +ModifyBackupPlanNameResult::ModifyBackupPlanNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupPlanNameResult::~ModifyBackupPlanNameResult() +{} + +void ModifyBackupPlanNameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -50,9 +53,9 @@ void ModifyBackupPlanNameResult::parse(const std::string &payload) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); - -} - + +} + int ModifyBackupPlanNameResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/ModifyBackupSourceEndpointRequest.cc b/dbs/src/model/ModifyBackupSourceEndpointRequest.cc index 77b9c30c3..3fe63da3c 100644 --- a/dbs/src/model/ModifyBackupSourceEndpointRequest.cc +++ b/dbs/src/model/ModifyBackupSourceEndpointRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupSourceEndpointRequest; - -ModifyBackupSourceEndpointRequest::ModifyBackupSourceEndpointRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSourceEndpoint") -{} - -ModifyBackupSourceEndpointRequest::~ModifyBackupSourceEndpointRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupSourceEndpointRequest; + +ModifyBackupSourceEndpointRequest::ModifyBackupSourceEndpointRequest() : + RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSourceEndpoint") +{} + +ModifyBackupSourceEndpointRequest::~ModifyBackupSourceEndpointRequest() +{} + std::string ModifyBackupSourceEndpointRequest::getSourceEndpointRegion()const { return sourceEndpointRegion_; diff --git a/dbs/src/model/ModifyBackupSourceEndpointResult.cc b/dbs/src/model/ModifyBackupSourceEndpointResult.cc index d65c54aed..62e535164 100644 --- a/dbs/src/model/ModifyBackupSourceEndpointResult.cc +++ b/dbs/src/model/ModifyBackupSourceEndpointResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult() : - ServiceResult() -{} - -ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyBackupSourceEndpointResult::~ModifyBackupSourceEndpointResult() -{} - -void ModifyBackupSourceEndpointResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult() : + ServiceResult() +{} + +ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupSourceEndpointResult::~ModifyBackupSourceEndpointResult() +{} + +void ModifyBackupSourceEndpointResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -52,9 +55,9 @@ void ModifyBackupSourceEndpointResult::parse(const std::string &payload) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) needPrecheck_ = value["NeedPrecheck"].asString() == "true"; - -} - + +} + int ModifyBackupSourceEndpointResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/ModifyBackupStrategyRequest.cc b/dbs/src/model/ModifyBackupStrategyRequest.cc index 85772884f..3fc9f71c3 100644 --- a/dbs/src/model/ModifyBackupStrategyRequest.cc +++ b/dbs/src/model/ModifyBackupStrategyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupStrategyRequest; - -ModifyBackupStrategyRequest::ModifyBackupStrategyRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupStrategy") -{} - -ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::ModifyBackupStrategyRequest; + +ModifyBackupStrategyRequest::ModifyBackupStrategyRequest() : + RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupStrategy") +{} + +ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest() +{} + std::string ModifyBackupStrategyRequest::getBackupPeriod()const { return backupPeriod_; diff --git a/dbs/src/model/ModifyBackupStrategyResult.cc b/dbs/src/model/ModifyBackupStrategyResult.cc index 87d6d2476..dd02bd8b3 100644 --- a/dbs/src/model/ModifyBackupStrategyResult.cc +++ b/dbs/src/model/ModifyBackupStrategyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -ModifyBackupStrategyResult::ModifyBackupStrategyResult() : - ServiceResult() -{} - -ModifyBackupStrategyResult::ModifyBackupStrategyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyBackupStrategyResult::~ModifyBackupStrategyResult() -{} - -void ModifyBackupStrategyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +ModifyBackupStrategyResult::ModifyBackupStrategyResult() : + ServiceResult() +{} + +ModifyBackupStrategyResult::ModifyBackupStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupStrategyResult::~ModifyBackupStrategyResult() +{} + +void ModifyBackupStrategyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -52,9 +55,9 @@ void ModifyBackupStrategyResult::parse(const std::string &payload) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) needPrecheck_ = value["NeedPrecheck"].asString() == "true"; - -} - + +} + int ModifyBackupStrategyResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/RenewBackupPlanRequest.cc b/dbs/src/model/RenewBackupPlanRequest.cc index 59c0c8158..a3155db8a 100644 --- a/dbs/src/model/RenewBackupPlanRequest.cc +++ b/dbs/src/model/RenewBackupPlanRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::RenewBackupPlanRequest; - -RenewBackupPlanRequest::RenewBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "RenewBackupPlan") -{} - -RenewBackupPlanRequest::~RenewBackupPlanRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::RenewBackupPlanRequest; + +RenewBackupPlanRequest::RenewBackupPlanRequest() : + RpcServiceRequest("dbs", "2019-03-06", "RenewBackupPlan") +{} + +RenewBackupPlanRequest::~RenewBackupPlanRequest() +{} + std::string RenewBackupPlanRequest::getPeriod()const { return period_; diff --git a/dbs/src/model/RenewBackupPlanResult.cc b/dbs/src/model/RenewBackupPlanResult.cc index 813a7b978..c91f140d1 100644 --- a/dbs/src/model/RenewBackupPlanResult.cc +++ b/dbs/src/model/RenewBackupPlanResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -RenewBackupPlanResult::RenewBackupPlanResult() : - ServiceResult() -{} - -RenewBackupPlanResult::RenewBackupPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RenewBackupPlanResult::~RenewBackupPlanResult() -{} - -void RenewBackupPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +RenewBackupPlanResult::RenewBackupPlanResult() : + ServiceResult() +{} + +RenewBackupPlanResult::RenewBackupPlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewBackupPlanResult::~RenewBackupPlanResult() +{} + +void RenewBackupPlanResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -52,9 +55,9 @@ void RenewBackupPlanResult::parse(const std::string &payload) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + int RenewBackupPlanResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/StartBackupPlanRequest.cc b/dbs/src/model/StartBackupPlanRequest.cc index 49dff7256..fe56e1511 100644 --- a/dbs/src/model/StartBackupPlanRequest.cc +++ b/dbs/src/model/StartBackupPlanRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::StartBackupPlanRequest; - -StartBackupPlanRequest::StartBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan") -{} - -StartBackupPlanRequest::~StartBackupPlanRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::StartBackupPlanRequest; + +StartBackupPlanRequest::StartBackupPlanRequest() : + RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan") +{} + +StartBackupPlanRequest::~StartBackupPlanRequest() +{} + std::string StartBackupPlanRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/StartBackupPlanResult.cc b/dbs/src/model/StartBackupPlanResult.cc index 73736a3a9..e6899fea3 100644 --- a/dbs/src/model/StartBackupPlanResult.cc +++ b/dbs/src/model/StartBackupPlanResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -StartBackupPlanResult::StartBackupPlanResult() : - ServiceResult() -{} - -StartBackupPlanResult::StartBackupPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartBackupPlanResult::~StartBackupPlanResult() -{} - -void StartBackupPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +StartBackupPlanResult::StartBackupPlanResult() : + ServiceResult() +{} + +StartBackupPlanResult::StartBackupPlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartBackupPlanResult::~StartBackupPlanResult() +{} + +void StartBackupPlanResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -50,9 +53,9 @@ void StartBackupPlanResult::parse(const std::string &payload) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); - -} - + +} + int StartBackupPlanResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/StartRestoreTaskRequest.cc b/dbs/src/model/StartRestoreTaskRequest.cc index 997cc8e5a..d092784bb 100644 --- a/dbs/src/model/StartRestoreTaskRequest.cc +++ b/dbs/src/model/StartRestoreTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::StartRestoreTaskRequest; - -StartRestoreTaskRequest::StartRestoreTaskRequest() : - RpcServiceRequest("dbs", "2019-03-06", "StartRestoreTask") -{} - -StartRestoreTaskRequest::~StartRestoreTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::StartRestoreTaskRequest; + +StartRestoreTaskRequest::StartRestoreTaskRequest() : + RpcServiceRequest("dbs", "2019-03-06", "StartRestoreTask") +{} + +StartRestoreTaskRequest::~StartRestoreTaskRequest() +{} + std::string StartRestoreTaskRequest::getRegionId()const { return regionId_; diff --git a/dbs/src/model/StartRestoreTaskResult.cc b/dbs/src/model/StartRestoreTaskResult.cc index 36a2a9ac9..f62f968f8 100644 --- a/dbs/src/model/StartRestoreTaskResult.cc +++ b/dbs/src/model/StartRestoreTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -StartRestoreTaskResult::StartRestoreTaskResult() : - ServiceResult() -{} - -StartRestoreTaskResult::StartRestoreTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartRestoreTaskResult::~StartRestoreTaskResult() -{} - -void StartRestoreTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +StartRestoreTaskResult::StartRestoreTaskResult() : + ServiceResult() +{} + +StartRestoreTaskResult::StartRestoreTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartRestoreTaskResult::~StartRestoreTaskResult() +{} + +void StartRestoreTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -50,9 +53,9 @@ void StartRestoreTaskResult::parse(const std::string &payload) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["RestoreTaskId"].isNull()) restoreTaskId_ = value["RestoreTaskId"].asString(); - -} - + +} + std::string StartRestoreTaskResult::getRestoreTaskId()const { return restoreTaskId_; diff --git a/dbs/src/model/StopBackupPlanRequest.cc b/dbs/src/model/StopBackupPlanRequest.cc index b09370eb9..948386567 100644 --- a/dbs/src/model/StopBackupPlanRequest.cc +++ b/dbs/src/model/StopBackupPlanRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Dbs::Model::StopBackupPlanRequest; - -StopBackupPlanRequest::StopBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan") -{} - -StopBackupPlanRequest::~StopBackupPlanRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs::Model::StopBackupPlanRequest; + +StopBackupPlanRequest::StopBackupPlanRequest() : + RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan") +{} + +StopBackupPlanRequest::~StopBackupPlanRequest() +{} + std::string StopBackupPlanRequest::getStopMethod()const { return stopMethod_; diff --git a/dbs/src/model/StopBackupPlanResult.cc b/dbs/src/model/StopBackupPlanResult.cc index 8579700cd..2feeebfa6 100644 --- a/dbs/src/model/StopBackupPlanResult.cc +++ b/dbs/src/model/StopBackupPlanResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -StopBackupPlanResult::StopBackupPlanResult() : - ServiceResult() -{} - -StopBackupPlanResult::StopBackupPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopBackupPlanResult::~StopBackupPlanResult() -{} - -void StopBackupPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dbs; +using namespace AlibabaCloud::Dbs::Model; + +StopBackupPlanResult::StopBackupPlanResult() : + ServiceResult() +{} + +StopBackupPlanResult::StopBackupPlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopBackupPlanResult::~StopBackupPlanResult() +{} + +void StopBackupPlanResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrCode"].isNull()) @@ -50,9 +53,9 @@ void StopBackupPlanResult::parse(const std::string &payload) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); - -} - + +} + int StopBackupPlanResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dcdn/CMakeLists.txt b/dcdn/CMakeLists.txt index 24f676c65..b255fdeee 100644 --- a/dcdn/CMakeLists.txt +++ b/dcdn/CMakeLists.txt @@ -23,163 +23,255 @@ set(dcdn_public_header set(dcdn_public_header_model include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageRequest.h include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h - include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitResult.h - include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h - include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsResult.h + include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaResult.h include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h include/alibabacloud/dcdn/model/SetDcdnDomainCertificateResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainLogRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainLogResult.h - include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainOriginBpsDataRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainOriginBpsDataResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainCertificateInfoRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainCertificateInfoResult.h include/alibabacloud/dcdn/model/DescribeDcdnRefreshTasksRequest.h include/alibabacloud/dcdn/model/DescribeDcdnRefreshTasksResult.h - include/alibabacloud/dcdn/model/DescribeDcdnServiceRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnServiceResult.h include/alibabacloud/dcdn/model/UpdateDcdnDomainRequest.h include/alibabacloud/dcdn/model/UpdateDcdnDomainResult.h include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h include/alibabacloud/dcdn/model/DeleteDcdnDomainResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketTrafficDataRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketTrafficDataResult.h include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsRequest.h include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainDetailRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainDetailResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainHitRateDataRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainHitRateDataResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainConfigsRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainConfigsResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainBpsDataRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainBpsDataResult.h include/alibabacloud/dcdn/model/DescribeDcdnCertificateListRequest.h include/alibabacloud/dcdn/model/DescribeDcdnCertificateListResult.h - include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailResult.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketBpsDataRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketBpsDataResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainOriginTrafficDataRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainOriginTrafficDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainTrafficDataRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainTrafficDataResult.h - include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesRequest.h - include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesResult.h include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowRequest.h include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataResult.h - include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h - include/alibabacloud/dcdn/model/DescribeUserDcdnStatusResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainQpsDataRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainQpsDataResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainIspDataRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainIspDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataResult.h + include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.h + include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainCnameRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainCnameResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitResult.h + include/alibabacloud/dcdn/model/StopDcdnDomainRequest.h + include/alibabacloud/dcdn/model/StopDcdnDomainResult.h + include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainRequest.h + include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceResult.h + include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h + include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainLogRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainLogResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataResult.h + include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsRequest.h + include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsResult.h + include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainCertificateInfoRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainCertificateInfoResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataResult.h + include/alibabacloud/dcdn/model/StartDcdnIpaDomainRequest.h + include/alibabacloud/dcdn/model/StartDcdnIpaDomainResult.h + include/alibabacloud/dcdn/model/DescribeDcdnServiceRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnServiceResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.h + include/alibabacloud/dcdn/model/AddDcdnIpaDomainRequest.h + include/alibabacloud/dcdn/model/AddDcdnIpaDomainResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketTrafficDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketTrafficDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainHitRateDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainHitRateDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainBpsDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainBpsDataResult.h + include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.h + include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainResult.h + include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainOriginTrafficDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainOriginTrafficDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataResult.h + include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesRequest.h + include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesResult.h + include/alibabacloud/dcdn/model/StopDcdnIpaDomainRequest.h + include/alibabacloud/dcdn/model/StopDcdnIpaDomainResult.h + include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h + include/alibabacloud/dcdn/model/DescribeUserDcdnStatusResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataResult.h include/alibabacloud/dcdn/model/StartDcdnDomainRequest.h include/alibabacloud/dcdn/model/StartDcdnDomainResult.h include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsResult.h + include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusRequest.h + include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h include/alibabacloud/dcdn/model/DescribeDcdnDomainHttpCodeDataRequest.h include/alibabacloud/dcdn/model/DescribeDcdnDomainHttpCodeDataResult.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailResult.h include/alibabacloud/dcdn/model/AddDcdnDomainRequest.h include/alibabacloud/dcdn/model/AddDcdnDomainResult.h include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesRequest.h - include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitResult.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainCnameRequest.h - include/alibabacloud/dcdn/model/DescribeDcdnDomainCnameResult.h - include/alibabacloud/dcdn/model/StopDcdnDomainRequest.h - include/alibabacloud/dcdn/model/StopDcdnDomainResult.h ) + include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesResult.h ) set(dcdn_src src/DcdnClient.cc src/model/DescribeDcdnUserResourcePackageRequest.cc src/model/DescribeDcdnUserResourcePackageResult.cc - src/model/DescribeDcdnRefreshQuotaRequest.cc - src/model/DescribeDcdnRefreshQuotaResult.cc src/model/DescribeDcdnDomainTopUrlVisitRequest.cc src/model/DescribeDcdnDomainTopUrlVisitResult.cc - src/model/BatchSetDcdnDomainConfigsRequest.cc - src/model/BatchSetDcdnDomainConfigsResult.cc + src/model/DescribeDcdnRefreshQuotaRequest.cc + src/model/DescribeDcdnRefreshQuotaResult.cc src/model/SetDcdnDomainCertificateRequest.cc src/model/SetDcdnDomainCertificateResult.cc - src/model/DescribeDcdnDomainLogRequest.cc - src/model/DescribeDcdnDomainLogResult.cc - src/model/DescribeDcdnUserQuotaRequest.cc - src/model/DescribeDcdnUserQuotaResult.cc src/model/DescribeDcdnDomainOriginBpsDataRequest.cc src/model/DescribeDcdnDomainOriginBpsDataResult.cc - src/model/DescribeDcdnDomainCertificateInfoRequest.cc - src/model/DescribeDcdnDomainCertificateInfoResult.cc src/model/DescribeDcdnRefreshTasksRequest.cc src/model/DescribeDcdnRefreshTasksResult.cc - src/model/DescribeDcdnServiceRequest.cc - src/model/DescribeDcdnServiceResult.cc src/model/UpdateDcdnDomainRequest.cc src/model/UpdateDcdnDomainResult.cc src/model/DeleteDcdnDomainRequest.cc src/model/DeleteDcdnDomainResult.cc - src/model/DescribeDcdnDomainWebsocketTrafficDataRequest.cc - src/model/DescribeDcdnDomainWebsocketTrafficDataResult.cc src/model/BatchDeleteDcdnDomainConfigsRequest.cc src/model/BatchDeleteDcdnDomainConfigsResult.cc src/model/DescribeDcdnDomainDetailRequest.cc src/model/DescribeDcdnDomainDetailResult.cc - src/model/DescribeDcdnDomainHitRateDataRequest.cc - src/model/DescribeDcdnDomainHitRateDataResult.cc src/model/DescribeDcdnDomainConfigsRequest.cc src/model/DescribeDcdnDomainConfigsResult.cc - src/model/DescribeDcdnDomainBpsDataRequest.cc - src/model/DescribeDcdnDomainBpsDataResult.cc src/model/DescribeDcdnCertificateListRequest.cc src/model/DescribeDcdnCertificateListResult.cc - src/model/DescribeDcdnCertificateDetailRequest.cc - src/model/DescribeDcdnCertificateDetailResult.cc + src/model/DescribeDcdnIpaDomainConfigsRequest.cc + src/model/DescribeDcdnIpaDomainConfigsResult.cc src/model/DescribeDcdnDomainWebsocketBpsDataRequest.cc src/model/DescribeDcdnDomainWebsocketBpsDataResult.cc - src/model/DescribeDcdnDomainOriginTrafficDataRequest.cc - src/model/DescribeDcdnDomainOriginTrafficDataResult.cc + src/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.cc + src/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.cc src/model/DescribeDcdnDomainTrafficDataRequest.cc src/model/DescribeDcdnDomainTrafficDataResult.cc - src/model/RefreshDcdnObjectCachesRequest.cc - src/model/RefreshDcdnObjectCachesResult.cc src/model/DescribeDcdnTopDomainsByFlowRequest.cc src/model/DescribeDcdnTopDomainsByFlowResult.cc - src/model/DescribeDcdnDomainRegionDataRequest.cc - src/model/DescribeDcdnDomainRegionDataResult.cc - src/model/DescribeUserDcdnStatusRequest.cc - src/model/DescribeUserDcdnStatusResult.cc + src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc + src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.cc + src/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.cc + src/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.cc + src/model/DescribeDcdnDomainPvDataRequest.cc + src/model/DescribeDcdnDomainPvDataResult.cc src/model/DescribeDcdnDomainQpsDataRequest.cc src/model/DescribeDcdnDomainQpsDataResult.cc src/model/DescribeDcdnDomainIspDataRequest.cc src/model/DescribeDcdnDomainIspDataResult.cc + src/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.cc + src/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.cc + src/model/DescribeDcdnDomainRealTimeBpsDataRequest.cc + src/model/DescribeDcdnDomainRealTimeBpsDataResult.cc + src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc + src/model/ModifyDCdnDomainSchdmByPropertyResult.cc + src/model/DescribeDcdnDomainCnameRequest.cc + src/model/DescribeDcdnDomainCnameResult.cc + src/model/DescribeDcdnDomainTopReferVisitRequest.cc + src/model/DescribeDcdnDomainTopReferVisitResult.cc + src/model/StopDcdnDomainRequest.cc + src/model/StopDcdnDomainResult.cc + src/model/UpdateDcdnIpaDomainRequest.cc + src/model/UpdateDcdnIpaDomainResult.cc + src/model/DescribeDcdnIpaServiceRequest.cc + src/model/DescribeDcdnIpaServiceResult.cc + src/model/BatchSetDcdnDomainConfigsRequest.cc + src/model/BatchSetDcdnDomainConfigsResult.cc + src/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.cc + src/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.cc + src/model/DescribeDcdnDomainLogRequest.cc + src/model/DescribeDcdnDomainLogResult.cc + src/model/DescribeDcdnDomainUvDataRequest.cc + src/model/DescribeDcdnDomainUvDataResult.cc + src/model/BatchSetDcdnIpaDomainConfigsRequest.cc + src/model/BatchSetDcdnIpaDomainConfigsResult.cc + src/model/DescribeDcdnUserQuotaRequest.cc + src/model/DescribeDcdnUserQuotaResult.cc + src/model/DescribeDcdnDomainCertificateInfoRequest.cc + src/model/DescribeDcdnDomainCertificateInfoResult.cc + src/model/DescribeDcdnDomainIpaTrafficDataRequest.cc + src/model/DescribeDcdnDomainIpaTrafficDataResult.cc + src/model/StartDcdnIpaDomainRequest.cc + src/model/StartDcdnIpaDomainResult.cc + src/model/DescribeDcdnServiceRequest.cc + src/model/DescribeDcdnServiceResult.cc + src/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.cc + src/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.cc + src/model/AddDcdnIpaDomainRequest.cc + src/model/AddDcdnIpaDomainResult.cc + src/model/DescribeDcdnDomainWebsocketTrafficDataRequest.cc + src/model/DescribeDcdnDomainWebsocketTrafficDataResult.cc + src/model/DescribeDcdnDomainHitRateDataRequest.cc + src/model/DescribeDcdnDomainHitRateDataResult.cc + src/model/DescribeDcdnDomainBpsDataRequest.cc + src/model/DescribeDcdnDomainBpsDataResult.cc + src/model/DeleteDcdnIpaDomainRequest.cc + src/model/DeleteDcdnIpaDomainResult.cc + src/model/DescribeDcdnCertificateDetailRequest.cc + src/model/DescribeDcdnCertificateDetailResult.cc + src/model/DescribeDcdnDomainOriginTrafficDataRequest.cc + src/model/DescribeDcdnDomainOriginTrafficDataResult.cc + src/model/DescribeDcdnDomainRealTimeQpsDataRequest.cc + src/model/DescribeDcdnDomainRealTimeQpsDataResult.cc + src/model/RefreshDcdnObjectCachesRequest.cc + src/model/RefreshDcdnObjectCachesResult.cc + src/model/StopDcdnIpaDomainRequest.cc + src/model/StopDcdnIpaDomainResult.cc + src/model/DescribeUserDcdnStatusRequest.cc + src/model/DescribeUserDcdnStatusResult.cc + src/model/DescribeDcdnDomainRegionDataRequest.cc + src/model/DescribeDcdnDomainRegionDataResult.cc + src/model/DescribeDcdnDomainIpaBpsDataRequest.cc + src/model/DescribeDcdnDomainIpaBpsDataResult.cc src/model/StartDcdnDomainRequest.cc src/model/StartDcdnDomainResult.cc src/model/DescribeDcdnUserDomainsRequest.cc src/model/DescribeDcdnUserDomainsResult.cc - src/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.cc - src/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.cc + src/model/DescribeDcdnIpaUserDomainsRequest.cc + src/model/DescribeDcdnIpaUserDomainsResult.cc + src/model/DescribeUserDcdnIpaStatusRequest.cc + src/model/DescribeUserDcdnIpaStatusResult.cc src/model/DescribeDcdnDomainHttpCodeDataRequest.cc src/model/DescribeDcdnDomainHttpCodeDataResult.cc + src/model/DescribeDcdnIpaDomainDetailRequest.cc + src/model/DescribeDcdnIpaDomainDetailResult.cc src/model/AddDcdnDomainRequest.cc src/model/AddDcdnDomainResult.cc src/model/PreloadDcdnObjectCachesRequest.cc - src/model/PreloadDcdnObjectCachesResult.cc - src/model/DescribeDcdnDomainTopReferVisitRequest.cc - src/model/DescribeDcdnDomainTopReferVisitResult.cc - src/model/DescribeDcdnDomainCnameRequest.cc - src/model/DescribeDcdnDomainCnameResult.cc - src/model/StopDcdnDomainRequest.cc - src/model/StopDcdnDomainResult.cc ) + src/model/PreloadDcdnObjectCachesResult.cc ) add_library(dcdn ${LIB_TYPE} ${dcdn_public_header} diff --git a/dcdn/include/alibabacloud/dcdn/DcdnClient.h b/dcdn/include/alibabacloud/dcdn/DcdnClient.h index b3a8fecc3..f58730752 100644 --- a/dcdn/include/alibabacloud/dcdn/DcdnClient.h +++ b/dcdn/include/alibabacloud/dcdn/DcdnClient.h @@ -24,82 +24,128 @@ #include "DcdnExport.h" #include "model/DescribeDcdnUserResourcePackageRequest.h" #include "model/DescribeDcdnUserResourcePackageResult.h" -#include "model/DescribeDcdnRefreshQuotaRequest.h" -#include "model/DescribeDcdnRefreshQuotaResult.h" #include "model/DescribeDcdnDomainTopUrlVisitRequest.h" #include "model/DescribeDcdnDomainTopUrlVisitResult.h" -#include "model/BatchSetDcdnDomainConfigsRequest.h" -#include "model/BatchSetDcdnDomainConfigsResult.h" +#include "model/DescribeDcdnRefreshQuotaRequest.h" +#include "model/DescribeDcdnRefreshQuotaResult.h" #include "model/SetDcdnDomainCertificateRequest.h" #include "model/SetDcdnDomainCertificateResult.h" -#include "model/DescribeDcdnDomainLogRequest.h" -#include "model/DescribeDcdnDomainLogResult.h" -#include "model/DescribeDcdnUserQuotaRequest.h" -#include "model/DescribeDcdnUserQuotaResult.h" #include "model/DescribeDcdnDomainOriginBpsDataRequest.h" #include "model/DescribeDcdnDomainOriginBpsDataResult.h" -#include "model/DescribeDcdnDomainCertificateInfoRequest.h" -#include "model/DescribeDcdnDomainCertificateInfoResult.h" #include "model/DescribeDcdnRefreshTasksRequest.h" #include "model/DescribeDcdnRefreshTasksResult.h" -#include "model/DescribeDcdnServiceRequest.h" -#include "model/DescribeDcdnServiceResult.h" #include "model/UpdateDcdnDomainRequest.h" #include "model/UpdateDcdnDomainResult.h" #include "model/DeleteDcdnDomainRequest.h" #include "model/DeleteDcdnDomainResult.h" -#include "model/DescribeDcdnDomainWebsocketTrafficDataRequest.h" -#include "model/DescribeDcdnDomainWebsocketTrafficDataResult.h" #include "model/BatchDeleteDcdnDomainConfigsRequest.h" #include "model/BatchDeleteDcdnDomainConfigsResult.h" #include "model/DescribeDcdnDomainDetailRequest.h" #include "model/DescribeDcdnDomainDetailResult.h" -#include "model/DescribeDcdnDomainHitRateDataRequest.h" -#include "model/DescribeDcdnDomainHitRateDataResult.h" #include "model/DescribeDcdnDomainConfigsRequest.h" #include "model/DescribeDcdnDomainConfigsResult.h" -#include "model/DescribeDcdnDomainBpsDataRequest.h" -#include "model/DescribeDcdnDomainBpsDataResult.h" #include "model/DescribeDcdnCertificateListRequest.h" #include "model/DescribeDcdnCertificateListResult.h" -#include "model/DescribeDcdnCertificateDetailRequest.h" -#include "model/DescribeDcdnCertificateDetailResult.h" +#include "model/DescribeDcdnIpaDomainConfigsRequest.h" +#include "model/DescribeDcdnIpaDomainConfigsResult.h" #include "model/DescribeDcdnDomainWebsocketBpsDataRequest.h" #include "model/DescribeDcdnDomainWebsocketBpsDataResult.h" -#include "model/DescribeDcdnDomainOriginTrafficDataRequest.h" -#include "model/DescribeDcdnDomainOriginTrafficDataResult.h" +#include "model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.h" +#include "model/DescribeDcdnDomainRealTimeSrcBpsDataResult.h" #include "model/DescribeDcdnDomainTrafficDataRequest.h" #include "model/DescribeDcdnDomainTrafficDataResult.h" -#include "model/RefreshDcdnObjectCachesRequest.h" -#include "model/RefreshDcdnObjectCachesResult.h" #include "model/DescribeDcdnTopDomainsByFlowRequest.h" #include "model/DescribeDcdnTopDomainsByFlowResult.h" -#include "model/DescribeDcdnDomainRegionDataRequest.h" -#include "model/DescribeDcdnDomainRegionDataResult.h" -#include "model/DescribeUserDcdnStatusRequest.h" -#include "model/DescribeUserDcdnStatusResult.h" +#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h" +#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h" +#include "model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.h" +#include "model/DescribeDcdnDomainRealTimeByteHitRateDataResult.h" +#include "model/DescribeDcdnDomainPvDataRequest.h" +#include "model/DescribeDcdnDomainPvDataResult.h" #include "model/DescribeDcdnDomainQpsDataRequest.h" #include "model/DescribeDcdnDomainQpsDataResult.h" #include "model/DescribeDcdnDomainIspDataRequest.h" #include "model/DescribeDcdnDomainIspDataResult.h" +#include "model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.h" +#include "model/DescribeDcdnDomainWebsocketHttpCodeDataResult.h" +#include "model/DescribeDcdnDomainRealTimeBpsDataRequest.h" +#include "model/DescribeDcdnDomainRealTimeBpsDataResult.h" +#include "model/ModifyDCdnDomainSchdmByPropertyRequest.h" +#include "model/ModifyDCdnDomainSchdmByPropertyResult.h" +#include "model/DescribeDcdnDomainCnameRequest.h" +#include "model/DescribeDcdnDomainCnameResult.h" +#include "model/DescribeDcdnDomainTopReferVisitRequest.h" +#include "model/DescribeDcdnDomainTopReferVisitResult.h" +#include "model/StopDcdnDomainRequest.h" +#include "model/StopDcdnDomainResult.h" +#include "model/UpdateDcdnIpaDomainRequest.h" +#include "model/UpdateDcdnIpaDomainResult.h" +#include "model/DescribeDcdnIpaServiceRequest.h" +#include "model/DescribeDcdnIpaServiceResult.h" +#include "model/BatchSetDcdnDomainConfigsRequest.h" +#include "model/BatchSetDcdnDomainConfigsResult.h" +#include "model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.h" +#include "model/DescribeDcdnDomainRealTimeHttpCodeDataResult.h" +#include "model/DescribeDcdnDomainLogRequest.h" +#include "model/DescribeDcdnDomainLogResult.h" +#include "model/DescribeDcdnDomainUvDataRequest.h" +#include "model/DescribeDcdnDomainUvDataResult.h" +#include "model/BatchSetDcdnIpaDomainConfigsRequest.h" +#include "model/BatchSetDcdnIpaDomainConfigsResult.h" +#include "model/DescribeDcdnUserQuotaRequest.h" +#include "model/DescribeDcdnUserQuotaResult.h" +#include "model/DescribeDcdnDomainCertificateInfoRequest.h" +#include "model/DescribeDcdnDomainCertificateInfoResult.h" +#include "model/DescribeDcdnDomainIpaTrafficDataRequest.h" +#include "model/DescribeDcdnDomainIpaTrafficDataResult.h" +#include "model/StartDcdnIpaDomainRequest.h" +#include "model/StartDcdnIpaDomainResult.h" +#include "model/DescribeDcdnServiceRequest.h" +#include "model/DescribeDcdnServiceResult.h" +#include "model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.h" +#include "model/DescribeDcdnDomainRealTimeReqHitRateDataResult.h" +#include "model/AddDcdnIpaDomainRequest.h" +#include "model/AddDcdnIpaDomainResult.h" +#include "model/DescribeDcdnDomainWebsocketTrafficDataRequest.h" +#include "model/DescribeDcdnDomainWebsocketTrafficDataResult.h" +#include "model/DescribeDcdnDomainHitRateDataRequest.h" +#include "model/DescribeDcdnDomainHitRateDataResult.h" +#include "model/DescribeDcdnDomainBpsDataRequest.h" +#include "model/DescribeDcdnDomainBpsDataResult.h" +#include "model/DeleteDcdnIpaDomainRequest.h" +#include "model/DeleteDcdnIpaDomainResult.h" +#include "model/DescribeDcdnCertificateDetailRequest.h" +#include "model/DescribeDcdnCertificateDetailResult.h" +#include "model/DescribeDcdnDomainOriginTrafficDataRequest.h" +#include "model/DescribeDcdnDomainOriginTrafficDataResult.h" +#include "model/DescribeDcdnDomainRealTimeQpsDataRequest.h" +#include "model/DescribeDcdnDomainRealTimeQpsDataResult.h" +#include "model/RefreshDcdnObjectCachesRequest.h" +#include "model/RefreshDcdnObjectCachesResult.h" +#include "model/StopDcdnIpaDomainRequest.h" +#include "model/StopDcdnIpaDomainResult.h" +#include "model/DescribeUserDcdnStatusRequest.h" +#include "model/DescribeUserDcdnStatusResult.h" +#include "model/DescribeDcdnDomainRegionDataRequest.h" +#include "model/DescribeDcdnDomainRegionDataResult.h" +#include "model/DescribeDcdnDomainIpaBpsDataRequest.h" +#include "model/DescribeDcdnDomainIpaBpsDataResult.h" #include "model/StartDcdnDomainRequest.h" #include "model/StartDcdnDomainResult.h" #include "model/DescribeDcdnUserDomainsRequest.h" #include "model/DescribeDcdnUserDomainsResult.h" -#include "model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.h" -#include "model/DescribeDcdnDomainWebsocketHttpCodeDataResult.h" +#include "model/DescribeDcdnIpaUserDomainsRequest.h" +#include "model/DescribeDcdnIpaUserDomainsResult.h" +#include "model/DescribeUserDcdnIpaStatusRequest.h" +#include "model/DescribeUserDcdnIpaStatusResult.h" #include "model/DescribeDcdnDomainHttpCodeDataRequest.h" #include "model/DescribeDcdnDomainHttpCodeDataResult.h" +#include "model/DescribeDcdnIpaDomainDetailRequest.h" +#include "model/DescribeDcdnIpaDomainDetailResult.h" #include "model/AddDcdnDomainRequest.h" #include "model/AddDcdnDomainResult.h" #include "model/PreloadDcdnObjectCachesRequest.h" #include "model/PreloadDcdnObjectCachesResult.h" -#include "model/DescribeDcdnDomainTopReferVisitRequest.h" -#include "model/DescribeDcdnDomainTopReferVisitResult.h" -#include "model/DescribeDcdnDomainCnameRequest.h" -#include "model/DescribeDcdnDomainCnameResult.h" -#include "model/StopDcdnDomainRequest.h" -#include "model/StopDcdnDomainResult.h" namespace AlibabaCloud @@ -112,120 +158,189 @@ namespace AlibabaCloud typedef Outcome DescribeDcdnUserResourcePackageOutcome; typedef std::future DescribeDcdnUserResourcePackageOutcomeCallable; typedef std::function&)> DescribeDcdnUserResourcePackageAsyncHandler; - typedef Outcome DescribeDcdnRefreshQuotaOutcome; - typedef std::future DescribeDcdnRefreshQuotaOutcomeCallable; - typedef std::function&)> DescribeDcdnRefreshQuotaAsyncHandler; typedef Outcome DescribeDcdnDomainTopUrlVisitOutcome; typedef std::future DescribeDcdnDomainTopUrlVisitOutcomeCallable; typedef std::function&)> DescribeDcdnDomainTopUrlVisitAsyncHandler; - typedef Outcome BatchSetDcdnDomainConfigsOutcome; - typedef std::future BatchSetDcdnDomainConfigsOutcomeCallable; - typedef std::function&)> BatchSetDcdnDomainConfigsAsyncHandler; + typedef Outcome DescribeDcdnRefreshQuotaOutcome; + typedef std::future DescribeDcdnRefreshQuotaOutcomeCallable; + typedef std::function&)> DescribeDcdnRefreshQuotaAsyncHandler; typedef Outcome SetDcdnDomainCertificateOutcome; typedef std::future SetDcdnDomainCertificateOutcomeCallable; typedef std::function&)> SetDcdnDomainCertificateAsyncHandler; - typedef Outcome DescribeDcdnDomainLogOutcome; - typedef std::future DescribeDcdnDomainLogOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainLogAsyncHandler; - typedef Outcome DescribeDcdnUserQuotaOutcome; - typedef std::future DescribeDcdnUserQuotaOutcomeCallable; - typedef std::function&)> DescribeDcdnUserQuotaAsyncHandler; typedef Outcome DescribeDcdnDomainOriginBpsDataOutcome; typedef std::future DescribeDcdnDomainOriginBpsDataOutcomeCallable; typedef std::function&)> DescribeDcdnDomainOriginBpsDataAsyncHandler; - typedef Outcome DescribeDcdnDomainCertificateInfoOutcome; - typedef std::future DescribeDcdnDomainCertificateInfoOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainCertificateInfoAsyncHandler; typedef Outcome DescribeDcdnRefreshTasksOutcome; typedef std::future DescribeDcdnRefreshTasksOutcomeCallable; typedef std::function&)> DescribeDcdnRefreshTasksAsyncHandler; - typedef Outcome DescribeDcdnServiceOutcome; - typedef std::future DescribeDcdnServiceOutcomeCallable; - typedef std::function&)> DescribeDcdnServiceAsyncHandler; typedef Outcome UpdateDcdnDomainOutcome; typedef std::future UpdateDcdnDomainOutcomeCallable; typedef std::function&)> UpdateDcdnDomainAsyncHandler; typedef Outcome DeleteDcdnDomainOutcome; typedef std::future DeleteDcdnDomainOutcomeCallable; typedef std::function&)> DeleteDcdnDomainAsyncHandler; - typedef Outcome DescribeDcdnDomainWebsocketTrafficDataOutcome; - typedef std::future DescribeDcdnDomainWebsocketTrafficDataOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainWebsocketTrafficDataAsyncHandler; typedef Outcome BatchDeleteDcdnDomainConfigsOutcome; typedef std::future BatchDeleteDcdnDomainConfigsOutcomeCallable; typedef std::function&)> BatchDeleteDcdnDomainConfigsAsyncHandler; typedef Outcome DescribeDcdnDomainDetailOutcome; typedef std::future DescribeDcdnDomainDetailOutcomeCallable; typedef std::function&)> DescribeDcdnDomainDetailAsyncHandler; - typedef Outcome DescribeDcdnDomainHitRateDataOutcome; - typedef std::future DescribeDcdnDomainHitRateDataOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainHitRateDataAsyncHandler; typedef Outcome DescribeDcdnDomainConfigsOutcome; typedef std::future DescribeDcdnDomainConfigsOutcomeCallable; typedef std::function&)> DescribeDcdnDomainConfigsAsyncHandler; - typedef Outcome DescribeDcdnDomainBpsDataOutcome; - typedef std::future DescribeDcdnDomainBpsDataOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainBpsDataAsyncHandler; typedef Outcome DescribeDcdnCertificateListOutcome; typedef std::future DescribeDcdnCertificateListOutcomeCallable; typedef std::function&)> DescribeDcdnCertificateListAsyncHandler; - typedef Outcome DescribeDcdnCertificateDetailOutcome; - typedef std::future DescribeDcdnCertificateDetailOutcomeCallable; - typedef std::function&)> DescribeDcdnCertificateDetailAsyncHandler; + typedef Outcome DescribeDcdnIpaDomainConfigsOutcome; + typedef std::future DescribeDcdnIpaDomainConfigsOutcomeCallable; + typedef std::function&)> DescribeDcdnIpaDomainConfigsAsyncHandler; typedef Outcome DescribeDcdnDomainWebsocketBpsDataOutcome; typedef std::future DescribeDcdnDomainWebsocketBpsDataOutcomeCallable; typedef std::function&)> DescribeDcdnDomainWebsocketBpsDataAsyncHandler; - typedef Outcome DescribeDcdnDomainOriginTrafficDataOutcome; - typedef std::future DescribeDcdnDomainOriginTrafficDataOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainOriginTrafficDataAsyncHandler; + typedef Outcome DescribeDcdnDomainRealTimeSrcBpsDataOutcome; + typedef std::future DescribeDcdnDomainRealTimeSrcBpsDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRealTimeSrcBpsDataAsyncHandler; typedef Outcome DescribeDcdnDomainTrafficDataOutcome; typedef std::future DescribeDcdnDomainTrafficDataOutcomeCallable; typedef std::function&)> DescribeDcdnDomainTrafficDataAsyncHandler; - typedef Outcome RefreshDcdnObjectCachesOutcome; - typedef std::future RefreshDcdnObjectCachesOutcomeCallable; - typedef std::function&)> RefreshDcdnObjectCachesAsyncHandler; typedef Outcome DescribeDcdnTopDomainsByFlowOutcome; typedef std::future DescribeDcdnTopDomainsByFlowOutcomeCallable; typedef std::function&)> DescribeDcdnTopDomainsByFlowAsyncHandler; - typedef Outcome DescribeDcdnDomainRegionDataOutcome; - typedef std::future DescribeDcdnDomainRegionDataOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainRegionDataAsyncHandler; - typedef Outcome DescribeUserDcdnStatusOutcome; - typedef std::future DescribeUserDcdnStatusOutcomeCallable; - typedef std::function&)> DescribeUserDcdnStatusAsyncHandler; + typedef Outcome DescribeDcdnDomainRealTimeSrcTrafficDataOutcome; + typedef std::future DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler; + typedef Outcome DescribeDcdnDomainRealTimeByteHitRateDataOutcome; + typedef std::future DescribeDcdnDomainRealTimeByteHitRateDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRealTimeByteHitRateDataAsyncHandler; + typedef Outcome DescribeDcdnDomainPvDataOutcome; + typedef std::future DescribeDcdnDomainPvDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainPvDataAsyncHandler; typedef Outcome DescribeDcdnDomainQpsDataOutcome; typedef std::future DescribeDcdnDomainQpsDataOutcomeCallable; typedef std::function&)> DescribeDcdnDomainQpsDataAsyncHandler; typedef Outcome DescribeDcdnDomainIspDataOutcome; typedef std::future DescribeDcdnDomainIspDataOutcomeCallable; typedef std::function&)> DescribeDcdnDomainIspDataAsyncHandler; + typedef Outcome DescribeDcdnDomainWebsocketHttpCodeDataOutcome; + typedef std::future DescribeDcdnDomainWebsocketHttpCodeDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainWebsocketHttpCodeDataAsyncHandler; + typedef Outcome DescribeDcdnDomainRealTimeBpsDataOutcome; + typedef std::future DescribeDcdnDomainRealTimeBpsDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRealTimeBpsDataAsyncHandler; + typedef Outcome ModifyDCdnDomainSchdmByPropertyOutcome; + typedef std::future ModifyDCdnDomainSchdmByPropertyOutcomeCallable; + typedef std::function&)> ModifyDCdnDomainSchdmByPropertyAsyncHandler; + typedef Outcome DescribeDcdnDomainCnameOutcome; + typedef std::future DescribeDcdnDomainCnameOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainCnameAsyncHandler; + typedef Outcome DescribeDcdnDomainTopReferVisitOutcome; + typedef std::future DescribeDcdnDomainTopReferVisitOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainTopReferVisitAsyncHandler; + typedef Outcome StopDcdnDomainOutcome; + typedef std::future StopDcdnDomainOutcomeCallable; + typedef std::function&)> StopDcdnDomainAsyncHandler; + typedef Outcome UpdateDcdnIpaDomainOutcome; + typedef std::future UpdateDcdnIpaDomainOutcomeCallable; + typedef std::function&)> UpdateDcdnIpaDomainAsyncHandler; + typedef Outcome DescribeDcdnIpaServiceOutcome; + typedef std::future DescribeDcdnIpaServiceOutcomeCallable; + typedef std::function&)> DescribeDcdnIpaServiceAsyncHandler; + typedef Outcome BatchSetDcdnDomainConfigsOutcome; + typedef std::future BatchSetDcdnDomainConfigsOutcomeCallable; + typedef std::function&)> BatchSetDcdnDomainConfigsAsyncHandler; + typedef Outcome DescribeDcdnDomainRealTimeHttpCodeDataOutcome; + typedef std::future DescribeDcdnDomainRealTimeHttpCodeDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRealTimeHttpCodeDataAsyncHandler; + typedef Outcome DescribeDcdnDomainLogOutcome; + typedef std::future DescribeDcdnDomainLogOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainLogAsyncHandler; + typedef Outcome DescribeDcdnDomainUvDataOutcome; + typedef std::future DescribeDcdnDomainUvDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainUvDataAsyncHandler; + typedef Outcome BatchSetDcdnIpaDomainConfigsOutcome; + typedef std::future BatchSetDcdnIpaDomainConfigsOutcomeCallable; + typedef std::function&)> BatchSetDcdnIpaDomainConfigsAsyncHandler; + typedef Outcome DescribeDcdnUserQuotaOutcome; + typedef std::future DescribeDcdnUserQuotaOutcomeCallable; + typedef std::function&)> DescribeDcdnUserQuotaAsyncHandler; + typedef Outcome DescribeDcdnDomainCertificateInfoOutcome; + typedef std::future DescribeDcdnDomainCertificateInfoOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainCertificateInfoAsyncHandler; + typedef Outcome DescribeDcdnDomainIpaTrafficDataOutcome; + typedef std::future DescribeDcdnDomainIpaTrafficDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainIpaTrafficDataAsyncHandler; + typedef Outcome StartDcdnIpaDomainOutcome; + typedef std::future StartDcdnIpaDomainOutcomeCallable; + typedef std::function&)> StartDcdnIpaDomainAsyncHandler; + typedef Outcome DescribeDcdnServiceOutcome; + typedef std::future DescribeDcdnServiceOutcomeCallable; + typedef std::function&)> DescribeDcdnServiceAsyncHandler; + typedef Outcome DescribeDcdnDomainRealTimeReqHitRateDataOutcome; + typedef std::future DescribeDcdnDomainRealTimeReqHitRateDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRealTimeReqHitRateDataAsyncHandler; + typedef Outcome AddDcdnIpaDomainOutcome; + typedef std::future AddDcdnIpaDomainOutcomeCallable; + typedef std::function&)> AddDcdnIpaDomainAsyncHandler; + typedef Outcome DescribeDcdnDomainWebsocketTrafficDataOutcome; + typedef std::future DescribeDcdnDomainWebsocketTrafficDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainWebsocketTrafficDataAsyncHandler; + typedef Outcome DescribeDcdnDomainHitRateDataOutcome; + typedef std::future DescribeDcdnDomainHitRateDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainHitRateDataAsyncHandler; + typedef Outcome DescribeDcdnDomainBpsDataOutcome; + typedef std::future DescribeDcdnDomainBpsDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainBpsDataAsyncHandler; + typedef Outcome DeleteDcdnIpaDomainOutcome; + typedef std::future DeleteDcdnIpaDomainOutcomeCallable; + typedef std::function&)> DeleteDcdnIpaDomainAsyncHandler; + typedef Outcome DescribeDcdnCertificateDetailOutcome; + typedef std::future DescribeDcdnCertificateDetailOutcomeCallable; + typedef std::function&)> DescribeDcdnCertificateDetailAsyncHandler; + typedef Outcome DescribeDcdnDomainOriginTrafficDataOutcome; + typedef std::future DescribeDcdnDomainOriginTrafficDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainOriginTrafficDataAsyncHandler; + typedef Outcome DescribeDcdnDomainRealTimeQpsDataOutcome; + typedef std::future DescribeDcdnDomainRealTimeQpsDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRealTimeQpsDataAsyncHandler; + typedef Outcome RefreshDcdnObjectCachesOutcome; + typedef std::future RefreshDcdnObjectCachesOutcomeCallable; + typedef std::function&)> RefreshDcdnObjectCachesAsyncHandler; + typedef Outcome StopDcdnIpaDomainOutcome; + typedef std::future StopDcdnIpaDomainOutcomeCallable; + typedef std::function&)> StopDcdnIpaDomainAsyncHandler; + typedef Outcome DescribeUserDcdnStatusOutcome; + typedef std::future DescribeUserDcdnStatusOutcomeCallable; + typedef std::function&)> DescribeUserDcdnStatusAsyncHandler; + typedef Outcome DescribeDcdnDomainRegionDataOutcome; + typedef std::future DescribeDcdnDomainRegionDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainRegionDataAsyncHandler; + typedef Outcome DescribeDcdnDomainIpaBpsDataOutcome; + typedef std::future DescribeDcdnDomainIpaBpsDataOutcomeCallable; + typedef std::function&)> DescribeDcdnDomainIpaBpsDataAsyncHandler; typedef Outcome StartDcdnDomainOutcome; typedef std::future StartDcdnDomainOutcomeCallable; typedef std::function&)> StartDcdnDomainAsyncHandler; typedef Outcome DescribeDcdnUserDomainsOutcome; typedef std::future DescribeDcdnUserDomainsOutcomeCallable; typedef std::function&)> DescribeDcdnUserDomainsAsyncHandler; - typedef Outcome DescribeDcdnDomainWebsocketHttpCodeDataOutcome; - typedef std::future DescribeDcdnDomainWebsocketHttpCodeDataOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainWebsocketHttpCodeDataAsyncHandler; + typedef Outcome DescribeDcdnIpaUserDomainsOutcome; + typedef std::future DescribeDcdnIpaUserDomainsOutcomeCallable; + typedef std::function&)> DescribeDcdnIpaUserDomainsAsyncHandler; + typedef Outcome DescribeUserDcdnIpaStatusOutcome; + typedef std::future DescribeUserDcdnIpaStatusOutcomeCallable; + typedef std::function&)> DescribeUserDcdnIpaStatusAsyncHandler; typedef Outcome DescribeDcdnDomainHttpCodeDataOutcome; typedef std::future DescribeDcdnDomainHttpCodeDataOutcomeCallable; typedef std::function&)> DescribeDcdnDomainHttpCodeDataAsyncHandler; + typedef Outcome DescribeDcdnIpaDomainDetailOutcome; + typedef std::future DescribeDcdnIpaDomainDetailOutcomeCallable; + typedef std::function&)> DescribeDcdnIpaDomainDetailAsyncHandler; typedef Outcome AddDcdnDomainOutcome; typedef std::future AddDcdnDomainOutcomeCallable; typedef std::function&)> AddDcdnDomainAsyncHandler; typedef Outcome PreloadDcdnObjectCachesOutcome; typedef std::future PreloadDcdnObjectCachesOutcomeCallable; typedef std::function&)> PreloadDcdnObjectCachesAsyncHandler; - typedef Outcome DescribeDcdnDomainTopReferVisitOutcome; - typedef std::future DescribeDcdnDomainTopReferVisitOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainTopReferVisitAsyncHandler; - typedef Outcome DescribeDcdnDomainCnameOutcome; - typedef std::future DescribeDcdnDomainCnameOutcomeCallable; - typedef std::function&)> DescribeDcdnDomainCnameAsyncHandler; - typedef Outcome StopDcdnDomainOutcome; - typedef std::future StopDcdnDomainOutcomeCallable; - typedef std::function&)> StopDcdnDomainAsyncHandler; DcdnClient(const Credentials &credentials, const ClientConfiguration &configuration); DcdnClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -234,120 +349,189 @@ namespace AlibabaCloud DescribeDcdnUserResourcePackageOutcome describeDcdnUserResourcePackage(const Model::DescribeDcdnUserResourcePackageRequest &request)const; void describeDcdnUserResourcePackageAsync(const Model::DescribeDcdnUserResourcePackageRequest& request, const DescribeDcdnUserResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnUserResourcePackageOutcomeCallable describeDcdnUserResourcePackageCallable(const Model::DescribeDcdnUserResourcePackageRequest& request) const; - DescribeDcdnRefreshQuotaOutcome describeDcdnRefreshQuota(const Model::DescribeDcdnRefreshQuotaRequest &request)const; - void describeDcdnRefreshQuotaAsync(const Model::DescribeDcdnRefreshQuotaRequest& request, const DescribeDcdnRefreshQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnRefreshQuotaOutcomeCallable describeDcdnRefreshQuotaCallable(const Model::DescribeDcdnRefreshQuotaRequest& request) const; DescribeDcdnDomainTopUrlVisitOutcome describeDcdnDomainTopUrlVisit(const Model::DescribeDcdnDomainTopUrlVisitRequest &request)const; void describeDcdnDomainTopUrlVisitAsync(const Model::DescribeDcdnDomainTopUrlVisitRequest& request, const DescribeDcdnDomainTopUrlVisitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainTopUrlVisitOutcomeCallable describeDcdnDomainTopUrlVisitCallable(const Model::DescribeDcdnDomainTopUrlVisitRequest& request) const; - BatchSetDcdnDomainConfigsOutcome batchSetDcdnDomainConfigs(const Model::BatchSetDcdnDomainConfigsRequest &request)const; - void batchSetDcdnDomainConfigsAsync(const Model::BatchSetDcdnDomainConfigsRequest& request, const BatchSetDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BatchSetDcdnDomainConfigsOutcomeCallable batchSetDcdnDomainConfigsCallable(const Model::BatchSetDcdnDomainConfigsRequest& request) const; + DescribeDcdnRefreshQuotaOutcome describeDcdnRefreshQuota(const Model::DescribeDcdnRefreshQuotaRequest &request)const; + void describeDcdnRefreshQuotaAsync(const Model::DescribeDcdnRefreshQuotaRequest& request, const DescribeDcdnRefreshQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnRefreshQuotaOutcomeCallable describeDcdnRefreshQuotaCallable(const Model::DescribeDcdnRefreshQuotaRequest& request) const; SetDcdnDomainCertificateOutcome setDcdnDomainCertificate(const Model::SetDcdnDomainCertificateRequest &request)const; void setDcdnDomainCertificateAsync(const Model::SetDcdnDomainCertificateRequest& request, const SetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDcdnDomainCertificateOutcomeCallable setDcdnDomainCertificateCallable(const Model::SetDcdnDomainCertificateRequest& request) const; - DescribeDcdnDomainLogOutcome describeDcdnDomainLog(const Model::DescribeDcdnDomainLogRequest &request)const; - void describeDcdnDomainLogAsync(const Model::DescribeDcdnDomainLogRequest& request, const DescribeDcdnDomainLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainLogOutcomeCallable describeDcdnDomainLogCallable(const Model::DescribeDcdnDomainLogRequest& request) const; - DescribeDcdnUserQuotaOutcome describeDcdnUserQuota(const Model::DescribeDcdnUserQuotaRequest &request)const; - void describeDcdnUserQuotaAsync(const Model::DescribeDcdnUserQuotaRequest& request, const DescribeDcdnUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnUserQuotaOutcomeCallable describeDcdnUserQuotaCallable(const Model::DescribeDcdnUserQuotaRequest& request) const; DescribeDcdnDomainOriginBpsDataOutcome describeDcdnDomainOriginBpsData(const Model::DescribeDcdnDomainOriginBpsDataRequest &request)const; void describeDcdnDomainOriginBpsDataAsync(const Model::DescribeDcdnDomainOriginBpsDataRequest& request, const DescribeDcdnDomainOriginBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainOriginBpsDataOutcomeCallable describeDcdnDomainOriginBpsDataCallable(const Model::DescribeDcdnDomainOriginBpsDataRequest& request) const; - DescribeDcdnDomainCertificateInfoOutcome describeDcdnDomainCertificateInfo(const Model::DescribeDcdnDomainCertificateInfoRequest &request)const; - void describeDcdnDomainCertificateInfoAsync(const Model::DescribeDcdnDomainCertificateInfoRequest& request, const DescribeDcdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainCertificateInfoOutcomeCallable describeDcdnDomainCertificateInfoCallable(const Model::DescribeDcdnDomainCertificateInfoRequest& request) const; DescribeDcdnRefreshTasksOutcome describeDcdnRefreshTasks(const Model::DescribeDcdnRefreshTasksRequest &request)const; void describeDcdnRefreshTasksAsync(const Model::DescribeDcdnRefreshTasksRequest& request, const DescribeDcdnRefreshTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnRefreshTasksOutcomeCallable describeDcdnRefreshTasksCallable(const Model::DescribeDcdnRefreshTasksRequest& request) const; - DescribeDcdnServiceOutcome describeDcdnService(const Model::DescribeDcdnServiceRequest &request)const; - void describeDcdnServiceAsync(const Model::DescribeDcdnServiceRequest& request, const DescribeDcdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnServiceOutcomeCallable describeDcdnServiceCallable(const Model::DescribeDcdnServiceRequest& request) const; UpdateDcdnDomainOutcome updateDcdnDomain(const Model::UpdateDcdnDomainRequest &request)const; void updateDcdnDomainAsync(const Model::UpdateDcdnDomainRequest& request, const UpdateDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDcdnDomainOutcomeCallable updateDcdnDomainCallable(const Model::UpdateDcdnDomainRequest& request) const; DeleteDcdnDomainOutcome deleteDcdnDomain(const Model::DeleteDcdnDomainRequest &request)const; void deleteDcdnDomainAsync(const Model::DeleteDcdnDomainRequest& request, const DeleteDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDcdnDomainOutcomeCallable deleteDcdnDomainCallable(const Model::DeleteDcdnDomainRequest& request) const; - DescribeDcdnDomainWebsocketTrafficDataOutcome describeDcdnDomainWebsocketTrafficData(const Model::DescribeDcdnDomainWebsocketTrafficDataRequest &request)const; - void describeDcdnDomainWebsocketTrafficDataAsync(const Model::DescribeDcdnDomainWebsocketTrafficDataRequest& request, const DescribeDcdnDomainWebsocketTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainWebsocketTrafficDataOutcomeCallable describeDcdnDomainWebsocketTrafficDataCallable(const Model::DescribeDcdnDomainWebsocketTrafficDataRequest& request) const; BatchDeleteDcdnDomainConfigsOutcome batchDeleteDcdnDomainConfigs(const Model::BatchDeleteDcdnDomainConfigsRequest &request)const; void batchDeleteDcdnDomainConfigsAsync(const Model::BatchDeleteDcdnDomainConfigsRequest& request, const BatchDeleteDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchDeleteDcdnDomainConfigsOutcomeCallable batchDeleteDcdnDomainConfigsCallable(const Model::BatchDeleteDcdnDomainConfigsRequest& request) const; DescribeDcdnDomainDetailOutcome describeDcdnDomainDetail(const Model::DescribeDcdnDomainDetailRequest &request)const; void describeDcdnDomainDetailAsync(const Model::DescribeDcdnDomainDetailRequest& request, const DescribeDcdnDomainDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainDetailOutcomeCallable describeDcdnDomainDetailCallable(const Model::DescribeDcdnDomainDetailRequest& request) const; - DescribeDcdnDomainHitRateDataOutcome describeDcdnDomainHitRateData(const Model::DescribeDcdnDomainHitRateDataRequest &request)const; - void describeDcdnDomainHitRateDataAsync(const Model::DescribeDcdnDomainHitRateDataRequest& request, const DescribeDcdnDomainHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainHitRateDataOutcomeCallable describeDcdnDomainHitRateDataCallable(const Model::DescribeDcdnDomainHitRateDataRequest& request) const; DescribeDcdnDomainConfigsOutcome describeDcdnDomainConfigs(const Model::DescribeDcdnDomainConfigsRequest &request)const; void describeDcdnDomainConfigsAsync(const Model::DescribeDcdnDomainConfigsRequest& request, const DescribeDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainConfigsOutcomeCallable describeDcdnDomainConfigsCallable(const Model::DescribeDcdnDomainConfigsRequest& request) const; - DescribeDcdnDomainBpsDataOutcome describeDcdnDomainBpsData(const Model::DescribeDcdnDomainBpsDataRequest &request)const; - void describeDcdnDomainBpsDataAsync(const Model::DescribeDcdnDomainBpsDataRequest& request, const DescribeDcdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainBpsDataOutcomeCallable describeDcdnDomainBpsDataCallable(const Model::DescribeDcdnDomainBpsDataRequest& request) const; DescribeDcdnCertificateListOutcome describeDcdnCertificateList(const Model::DescribeDcdnCertificateListRequest &request)const; void describeDcdnCertificateListAsync(const Model::DescribeDcdnCertificateListRequest& request, const DescribeDcdnCertificateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnCertificateListOutcomeCallable describeDcdnCertificateListCallable(const Model::DescribeDcdnCertificateListRequest& request) const; - DescribeDcdnCertificateDetailOutcome describeDcdnCertificateDetail(const Model::DescribeDcdnCertificateDetailRequest &request)const; - void describeDcdnCertificateDetailAsync(const Model::DescribeDcdnCertificateDetailRequest& request, const DescribeDcdnCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnCertificateDetailOutcomeCallable describeDcdnCertificateDetailCallable(const Model::DescribeDcdnCertificateDetailRequest& request) const; + DescribeDcdnIpaDomainConfigsOutcome describeDcdnIpaDomainConfigs(const Model::DescribeDcdnIpaDomainConfigsRequest &request)const; + void describeDcdnIpaDomainConfigsAsync(const Model::DescribeDcdnIpaDomainConfigsRequest& request, const DescribeDcdnIpaDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnIpaDomainConfigsOutcomeCallable describeDcdnIpaDomainConfigsCallable(const Model::DescribeDcdnIpaDomainConfigsRequest& request) const; DescribeDcdnDomainWebsocketBpsDataOutcome describeDcdnDomainWebsocketBpsData(const Model::DescribeDcdnDomainWebsocketBpsDataRequest &request)const; void describeDcdnDomainWebsocketBpsDataAsync(const Model::DescribeDcdnDomainWebsocketBpsDataRequest& request, const DescribeDcdnDomainWebsocketBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainWebsocketBpsDataOutcomeCallable describeDcdnDomainWebsocketBpsDataCallable(const Model::DescribeDcdnDomainWebsocketBpsDataRequest& request) const; - DescribeDcdnDomainOriginTrafficDataOutcome describeDcdnDomainOriginTrafficData(const Model::DescribeDcdnDomainOriginTrafficDataRequest &request)const; - void describeDcdnDomainOriginTrafficDataAsync(const Model::DescribeDcdnDomainOriginTrafficDataRequest& request, const DescribeDcdnDomainOriginTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainOriginTrafficDataOutcomeCallable describeDcdnDomainOriginTrafficDataCallable(const Model::DescribeDcdnDomainOriginTrafficDataRequest& request) const; + DescribeDcdnDomainRealTimeSrcBpsDataOutcome describeDcdnDomainRealTimeSrcBpsData(const Model::DescribeDcdnDomainRealTimeSrcBpsDataRequest &request)const; + void describeDcdnDomainRealTimeSrcBpsDataAsync(const Model::DescribeDcdnDomainRealTimeSrcBpsDataRequest& request, const DescribeDcdnDomainRealTimeSrcBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRealTimeSrcBpsDataOutcomeCallable describeDcdnDomainRealTimeSrcBpsDataCallable(const Model::DescribeDcdnDomainRealTimeSrcBpsDataRequest& request) const; DescribeDcdnDomainTrafficDataOutcome describeDcdnDomainTrafficData(const Model::DescribeDcdnDomainTrafficDataRequest &request)const; void describeDcdnDomainTrafficDataAsync(const Model::DescribeDcdnDomainTrafficDataRequest& request, const DescribeDcdnDomainTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainTrafficDataOutcomeCallable describeDcdnDomainTrafficDataCallable(const Model::DescribeDcdnDomainTrafficDataRequest& request) const; - RefreshDcdnObjectCachesOutcome refreshDcdnObjectCaches(const Model::RefreshDcdnObjectCachesRequest &request)const; - void refreshDcdnObjectCachesAsync(const Model::RefreshDcdnObjectCachesRequest& request, const RefreshDcdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RefreshDcdnObjectCachesOutcomeCallable refreshDcdnObjectCachesCallable(const Model::RefreshDcdnObjectCachesRequest& request) const; DescribeDcdnTopDomainsByFlowOutcome describeDcdnTopDomainsByFlow(const Model::DescribeDcdnTopDomainsByFlowRequest &request)const; void describeDcdnTopDomainsByFlowAsync(const Model::DescribeDcdnTopDomainsByFlowRequest& request, const DescribeDcdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnTopDomainsByFlowOutcomeCallable describeDcdnTopDomainsByFlowCallable(const Model::DescribeDcdnTopDomainsByFlowRequest& request) const; - DescribeDcdnDomainRegionDataOutcome describeDcdnDomainRegionData(const Model::DescribeDcdnDomainRegionDataRequest &request)const; - void describeDcdnDomainRegionDataAsync(const Model::DescribeDcdnDomainRegionDataRequest& request, const DescribeDcdnDomainRegionDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainRegionDataOutcomeCallable describeDcdnDomainRegionDataCallable(const Model::DescribeDcdnDomainRegionDataRequest& request) const; - DescribeUserDcdnStatusOutcome describeUserDcdnStatus(const Model::DescribeUserDcdnStatusRequest &request)const; - void describeUserDcdnStatusAsync(const Model::DescribeUserDcdnStatusRequest& request, const DescribeUserDcdnStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserDcdnStatusOutcomeCallable describeUserDcdnStatusCallable(const Model::DescribeUserDcdnStatusRequest& request) const; + DescribeDcdnDomainRealTimeSrcTrafficDataOutcome describeDcdnDomainRealTimeSrcTrafficData(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest &request)const; + void describeDcdnDomainRealTimeSrcTrafficDataAsync(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable describeDcdnDomainRealTimeSrcTrafficDataCallable(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request) const; + DescribeDcdnDomainRealTimeByteHitRateDataOutcome describeDcdnDomainRealTimeByteHitRateData(const Model::DescribeDcdnDomainRealTimeByteHitRateDataRequest &request)const; + void describeDcdnDomainRealTimeByteHitRateDataAsync(const Model::DescribeDcdnDomainRealTimeByteHitRateDataRequest& request, const DescribeDcdnDomainRealTimeByteHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRealTimeByteHitRateDataOutcomeCallable describeDcdnDomainRealTimeByteHitRateDataCallable(const Model::DescribeDcdnDomainRealTimeByteHitRateDataRequest& request) const; + DescribeDcdnDomainPvDataOutcome describeDcdnDomainPvData(const Model::DescribeDcdnDomainPvDataRequest &request)const; + void describeDcdnDomainPvDataAsync(const Model::DescribeDcdnDomainPvDataRequest& request, const DescribeDcdnDomainPvDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainPvDataOutcomeCallable describeDcdnDomainPvDataCallable(const Model::DescribeDcdnDomainPvDataRequest& request) const; DescribeDcdnDomainQpsDataOutcome describeDcdnDomainQpsData(const Model::DescribeDcdnDomainQpsDataRequest &request)const; void describeDcdnDomainQpsDataAsync(const Model::DescribeDcdnDomainQpsDataRequest& request, const DescribeDcdnDomainQpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainQpsDataOutcomeCallable describeDcdnDomainQpsDataCallable(const Model::DescribeDcdnDomainQpsDataRequest& request) const; DescribeDcdnDomainIspDataOutcome describeDcdnDomainIspData(const Model::DescribeDcdnDomainIspDataRequest &request)const; void describeDcdnDomainIspDataAsync(const Model::DescribeDcdnDomainIspDataRequest& request, const DescribeDcdnDomainIspDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainIspDataOutcomeCallable describeDcdnDomainIspDataCallable(const Model::DescribeDcdnDomainIspDataRequest& request) const; + DescribeDcdnDomainWebsocketHttpCodeDataOutcome describeDcdnDomainWebsocketHttpCodeData(const Model::DescribeDcdnDomainWebsocketHttpCodeDataRequest &request)const; + void describeDcdnDomainWebsocketHttpCodeDataAsync(const Model::DescribeDcdnDomainWebsocketHttpCodeDataRequest& request, const DescribeDcdnDomainWebsocketHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainWebsocketHttpCodeDataOutcomeCallable describeDcdnDomainWebsocketHttpCodeDataCallable(const Model::DescribeDcdnDomainWebsocketHttpCodeDataRequest& request) const; + DescribeDcdnDomainRealTimeBpsDataOutcome describeDcdnDomainRealTimeBpsData(const Model::DescribeDcdnDomainRealTimeBpsDataRequest &request)const; + void describeDcdnDomainRealTimeBpsDataAsync(const Model::DescribeDcdnDomainRealTimeBpsDataRequest& request, const DescribeDcdnDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRealTimeBpsDataOutcomeCallable describeDcdnDomainRealTimeBpsDataCallable(const Model::DescribeDcdnDomainRealTimeBpsDataRequest& request) const; + ModifyDCdnDomainSchdmByPropertyOutcome modifyDCdnDomainSchdmByProperty(const Model::ModifyDCdnDomainSchdmByPropertyRequest &request)const; + void modifyDCdnDomainSchdmByPropertyAsync(const Model::ModifyDCdnDomainSchdmByPropertyRequest& request, const ModifyDCdnDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDCdnDomainSchdmByPropertyOutcomeCallable modifyDCdnDomainSchdmByPropertyCallable(const Model::ModifyDCdnDomainSchdmByPropertyRequest& request) const; + DescribeDcdnDomainCnameOutcome describeDcdnDomainCname(const Model::DescribeDcdnDomainCnameRequest &request)const; + void describeDcdnDomainCnameAsync(const Model::DescribeDcdnDomainCnameRequest& request, const DescribeDcdnDomainCnameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainCnameOutcomeCallable describeDcdnDomainCnameCallable(const Model::DescribeDcdnDomainCnameRequest& request) const; + DescribeDcdnDomainTopReferVisitOutcome describeDcdnDomainTopReferVisit(const Model::DescribeDcdnDomainTopReferVisitRequest &request)const; + void describeDcdnDomainTopReferVisitAsync(const Model::DescribeDcdnDomainTopReferVisitRequest& request, const DescribeDcdnDomainTopReferVisitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainTopReferVisitOutcomeCallable describeDcdnDomainTopReferVisitCallable(const Model::DescribeDcdnDomainTopReferVisitRequest& request) const; + StopDcdnDomainOutcome stopDcdnDomain(const Model::StopDcdnDomainRequest &request)const; + void stopDcdnDomainAsync(const Model::StopDcdnDomainRequest& request, const StopDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopDcdnDomainOutcomeCallable stopDcdnDomainCallable(const Model::StopDcdnDomainRequest& request) const; + UpdateDcdnIpaDomainOutcome updateDcdnIpaDomain(const Model::UpdateDcdnIpaDomainRequest &request)const; + void updateDcdnIpaDomainAsync(const Model::UpdateDcdnIpaDomainRequest& request, const UpdateDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDcdnIpaDomainOutcomeCallable updateDcdnIpaDomainCallable(const Model::UpdateDcdnIpaDomainRequest& request) const; + DescribeDcdnIpaServiceOutcome describeDcdnIpaService(const Model::DescribeDcdnIpaServiceRequest &request)const; + void describeDcdnIpaServiceAsync(const Model::DescribeDcdnIpaServiceRequest& request, const DescribeDcdnIpaServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnIpaServiceOutcomeCallable describeDcdnIpaServiceCallable(const Model::DescribeDcdnIpaServiceRequest& request) const; + BatchSetDcdnDomainConfigsOutcome batchSetDcdnDomainConfigs(const Model::BatchSetDcdnDomainConfigsRequest &request)const; + void batchSetDcdnDomainConfigsAsync(const Model::BatchSetDcdnDomainConfigsRequest& request, const BatchSetDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchSetDcdnDomainConfigsOutcomeCallable batchSetDcdnDomainConfigsCallable(const Model::BatchSetDcdnDomainConfigsRequest& request) const; + DescribeDcdnDomainRealTimeHttpCodeDataOutcome describeDcdnDomainRealTimeHttpCodeData(const Model::DescribeDcdnDomainRealTimeHttpCodeDataRequest &request)const; + void describeDcdnDomainRealTimeHttpCodeDataAsync(const Model::DescribeDcdnDomainRealTimeHttpCodeDataRequest& request, const DescribeDcdnDomainRealTimeHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRealTimeHttpCodeDataOutcomeCallable describeDcdnDomainRealTimeHttpCodeDataCallable(const Model::DescribeDcdnDomainRealTimeHttpCodeDataRequest& request) const; + DescribeDcdnDomainLogOutcome describeDcdnDomainLog(const Model::DescribeDcdnDomainLogRequest &request)const; + void describeDcdnDomainLogAsync(const Model::DescribeDcdnDomainLogRequest& request, const DescribeDcdnDomainLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainLogOutcomeCallable describeDcdnDomainLogCallable(const Model::DescribeDcdnDomainLogRequest& request) const; + DescribeDcdnDomainUvDataOutcome describeDcdnDomainUvData(const Model::DescribeDcdnDomainUvDataRequest &request)const; + void describeDcdnDomainUvDataAsync(const Model::DescribeDcdnDomainUvDataRequest& request, const DescribeDcdnDomainUvDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainUvDataOutcomeCallable describeDcdnDomainUvDataCallable(const Model::DescribeDcdnDomainUvDataRequest& request) const; + BatchSetDcdnIpaDomainConfigsOutcome batchSetDcdnIpaDomainConfigs(const Model::BatchSetDcdnIpaDomainConfigsRequest &request)const; + void batchSetDcdnIpaDomainConfigsAsync(const Model::BatchSetDcdnIpaDomainConfigsRequest& request, const BatchSetDcdnIpaDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchSetDcdnIpaDomainConfigsOutcomeCallable batchSetDcdnIpaDomainConfigsCallable(const Model::BatchSetDcdnIpaDomainConfigsRequest& request) const; + DescribeDcdnUserQuotaOutcome describeDcdnUserQuota(const Model::DescribeDcdnUserQuotaRequest &request)const; + void describeDcdnUserQuotaAsync(const Model::DescribeDcdnUserQuotaRequest& request, const DescribeDcdnUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnUserQuotaOutcomeCallable describeDcdnUserQuotaCallable(const Model::DescribeDcdnUserQuotaRequest& request) const; + DescribeDcdnDomainCertificateInfoOutcome describeDcdnDomainCertificateInfo(const Model::DescribeDcdnDomainCertificateInfoRequest &request)const; + void describeDcdnDomainCertificateInfoAsync(const Model::DescribeDcdnDomainCertificateInfoRequest& request, const DescribeDcdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainCertificateInfoOutcomeCallable describeDcdnDomainCertificateInfoCallable(const Model::DescribeDcdnDomainCertificateInfoRequest& request) const; + DescribeDcdnDomainIpaTrafficDataOutcome describeDcdnDomainIpaTrafficData(const Model::DescribeDcdnDomainIpaTrafficDataRequest &request)const; + void describeDcdnDomainIpaTrafficDataAsync(const Model::DescribeDcdnDomainIpaTrafficDataRequest& request, const DescribeDcdnDomainIpaTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainIpaTrafficDataOutcomeCallable describeDcdnDomainIpaTrafficDataCallable(const Model::DescribeDcdnDomainIpaTrafficDataRequest& request) const; + StartDcdnIpaDomainOutcome startDcdnIpaDomain(const Model::StartDcdnIpaDomainRequest &request)const; + void startDcdnIpaDomainAsync(const Model::StartDcdnIpaDomainRequest& request, const StartDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartDcdnIpaDomainOutcomeCallable startDcdnIpaDomainCallable(const Model::StartDcdnIpaDomainRequest& request) const; + DescribeDcdnServiceOutcome describeDcdnService(const Model::DescribeDcdnServiceRequest &request)const; + void describeDcdnServiceAsync(const Model::DescribeDcdnServiceRequest& request, const DescribeDcdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnServiceOutcomeCallable describeDcdnServiceCallable(const Model::DescribeDcdnServiceRequest& request) const; + DescribeDcdnDomainRealTimeReqHitRateDataOutcome describeDcdnDomainRealTimeReqHitRateData(const Model::DescribeDcdnDomainRealTimeReqHitRateDataRequest &request)const; + void describeDcdnDomainRealTimeReqHitRateDataAsync(const Model::DescribeDcdnDomainRealTimeReqHitRateDataRequest& request, const DescribeDcdnDomainRealTimeReqHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRealTimeReqHitRateDataOutcomeCallable describeDcdnDomainRealTimeReqHitRateDataCallable(const Model::DescribeDcdnDomainRealTimeReqHitRateDataRequest& request) const; + AddDcdnIpaDomainOutcome addDcdnIpaDomain(const Model::AddDcdnIpaDomainRequest &request)const; + void addDcdnIpaDomainAsync(const Model::AddDcdnIpaDomainRequest& request, const AddDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddDcdnIpaDomainOutcomeCallable addDcdnIpaDomainCallable(const Model::AddDcdnIpaDomainRequest& request) const; + DescribeDcdnDomainWebsocketTrafficDataOutcome describeDcdnDomainWebsocketTrafficData(const Model::DescribeDcdnDomainWebsocketTrafficDataRequest &request)const; + void describeDcdnDomainWebsocketTrafficDataAsync(const Model::DescribeDcdnDomainWebsocketTrafficDataRequest& request, const DescribeDcdnDomainWebsocketTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainWebsocketTrafficDataOutcomeCallable describeDcdnDomainWebsocketTrafficDataCallable(const Model::DescribeDcdnDomainWebsocketTrafficDataRequest& request) const; + DescribeDcdnDomainHitRateDataOutcome describeDcdnDomainHitRateData(const Model::DescribeDcdnDomainHitRateDataRequest &request)const; + void describeDcdnDomainHitRateDataAsync(const Model::DescribeDcdnDomainHitRateDataRequest& request, const DescribeDcdnDomainHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainHitRateDataOutcomeCallable describeDcdnDomainHitRateDataCallable(const Model::DescribeDcdnDomainHitRateDataRequest& request) const; + DescribeDcdnDomainBpsDataOutcome describeDcdnDomainBpsData(const Model::DescribeDcdnDomainBpsDataRequest &request)const; + void describeDcdnDomainBpsDataAsync(const Model::DescribeDcdnDomainBpsDataRequest& request, const DescribeDcdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainBpsDataOutcomeCallable describeDcdnDomainBpsDataCallable(const Model::DescribeDcdnDomainBpsDataRequest& request) const; + DeleteDcdnIpaDomainOutcome deleteDcdnIpaDomain(const Model::DeleteDcdnIpaDomainRequest &request)const; + void deleteDcdnIpaDomainAsync(const Model::DeleteDcdnIpaDomainRequest& request, const DeleteDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDcdnIpaDomainOutcomeCallable deleteDcdnIpaDomainCallable(const Model::DeleteDcdnIpaDomainRequest& request) const; + DescribeDcdnCertificateDetailOutcome describeDcdnCertificateDetail(const Model::DescribeDcdnCertificateDetailRequest &request)const; + void describeDcdnCertificateDetailAsync(const Model::DescribeDcdnCertificateDetailRequest& request, const DescribeDcdnCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnCertificateDetailOutcomeCallable describeDcdnCertificateDetailCallable(const Model::DescribeDcdnCertificateDetailRequest& request) const; + DescribeDcdnDomainOriginTrafficDataOutcome describeDcdnDomainOriginTrafficData(const Model::DescribeDcdnDomainOriginTrafficDataRequest &request)const; + void describeDcdnDomainOriginTrafficDataAsync(const Model::DescribeDcdnDomainOriginTrafficDataRequest& request, const DescribeDcdnDomainOriginTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainOriginTrafficDataOutcomeCallable describeDcdnDomainOriginTrafficDataCallable(const Model::DescribeDcdnDomainOriginTrafficDataRequest& request) const; + DescribeDcdnDomainRealTimeQpsDataOutcome describeDcdnDomainRealTimeQpsData(const Model::DescribeDcdnDomainRealTimeQpsDataRequest &request)const; + void describeDcdnDomainRealTimeQpsDataAsync(const Model::DescribeDcdnDomainRealTimeQpsDataRequest& request, const DescribeDcdnDomainRealTimeQpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRealTimeQpsDataOutcomeCallable describeDcdnDomainRealTimeQpsDataCallable(const Model::DescribeDcdnDomainRealTimeQpsDataRequest& request) const; + RefreshDcdnObjectCachesOutcome refreshDcdnObjectCaches(const Model::RefreshDcdnObjectCachesRequest &request)const; + void refreshDcdnObjectCachesAsync(const Model::RefreshDcdnObjectCachesRequest& request, const RefreshDcdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshDcdnObjectCachesOutcomeCallable refreshDcdnObjectCachesCallable(const Model::RefreshDcdnObjectCachesRequest& request) const; + StopDcdnIpaDomainOutcome stopDcdnIpaDomain(const Model::StopDcdnIpaDomainRequest &request)const; + void stopDcdnIpaDomainAsync(const Model::StopDcdnIpaDomainRequest& request, const StopDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopDcdnIpaDomainOutcomeCallable stopDcdnIpaDomainCallable(const Model::StopDcdnIpaDomainRequest& request) const; + DescribeUserDcdnStatusOutcome describeUserDcdnStatus(const Model::DescribeUserDcdnStatusRequest &request)const; + void describeUserDcdnStatusAsync(const Model::DescribeUserDcdnStatusRequest& request, const DescribeUserDcdnStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserDcdnStatusOutcomeCallable describeUserDcdnStatusCallable(const Model::DescribeUserDcdnStatusRequest& request) const; + DescribeDcdnDomainRegionDataOutcome describeDcdnDomainRegionData(const Model::DescribeDcdnDomainRegionDataRequest &request)const; + void describeDcdnDomainRegionDataAsync(const Model::DescribeDcdnDomainRegionDataRequest& request, const DescribeDcdnDomainRegionDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainRegionDataOutcomeCallable describeDcdnDomainRegionDataCallable(const Model::DescribeDcdnDomainRegionDataRequest& request) const; + DescribeDcdnDomainIpaBpsDataOutcome describeDcdnDomainIpaBpsData(const Model::DescribeDcdnDomainIpaBpsDataRequest &request)const; + void describeDcdnDomainIpaBpsDataAsync(const Model::DescribeDcdnDomainIpaBpsDataRequest& request, const DescribeDcdnDomainIpaBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnDomainIpaBpsDataOutcomeCallable describeDcdnDomainIpaBpsDataCallable(const Model::DescribeDcdnDomainIpaBpsDataRequest& request) const; StartDcdnDomainOutcome startDcdnDomain(const Model::StartDcdnDomainRequest &request)const; void startDcdnDomainAsync(const Model::StartDcdnDomainRequest& request, const StartDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartDcdnDomainOutcomeCallable startDcdnDomainCallable(const Model::StartDcdnDomainRequest& request) const; DescribeDcdnUserDomainsOutcome describeDcdnUserDomains(const Model::DescribeDcdnUserDomainsRequest &request)const; void describeDcdnUserDomainsAsync(const Model::DescribeDcdnUserDomainsRequest& request, const DescribeDcdnUserDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnUserDomainsOutcomeCallable describeDcdnUserDomainsCallable(const Model::DescribeDcdnUserDomainsRequest& request) const; - DescribeDcdnDomainWebsocketHttpCodeDataOutcome describeDcdnDomainWebsocketHttpCodeData(const Model::DescribeDcdnDomainWebsocketHttpCodeDataRequest &request)const; - void describeDcdnDomainWebsocketHttpCodeDataAsync(const Model::DescribeDcdnDomainWebsocketHttpCodeDataRequest& request, const DescribeDcdnDomainWebsocketHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainWebsocketHttpCodeDataOutcomeCallable describeDcdnDomainWebsocketHttpCodeDataCallable(const Model::DescribeDcdnDomainWebsocketHttpCodeDataRequest& request) const; + DescribeDcdnIpaUserDomainsOutcome describeDcdnIpaUserDomains(const Model::DescribeDcdnIpaUserDomainsRequest &request)const; + void describeDcdnIpaUserDomainsAsync(const Model::DescribeDcdnIpaUserDomainsRequest& request, const DescribeDcdnIpaUserDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnIpaUserDomainsOutcomeCallable describeDcdnIpaUserDomainsCallable(const Model::DescribeDcdnIpaUserDomainsRequest& request) const; + DescribeUserDcdnIpaStatusOutcome describeUserDcdnIpaStatus(const Model::DescribeUserDcdnIpaStatusRequest &request)const; + void describeUserDcdnIpaStatusAsync(const Model::DescribeUserDcdnIpaStatusRequest& request, const DescribeUserDcdnIpaStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserDcdnIpaStatusOutcomeCallable describeUserDcdnIpaStatusCallable(const Model::DescribeUserDcdnIpaStatusRequest& request) const; DescribeDcdnDomainHttpCodeDataOutcome describeDcdnDomainHttpCodeData(const Model::DescribeDcdnDomainHttpCodeDataRequest &request)const; void describeDcdnDomainHttpCodeDataAsync(const Model::DescribeDcdnDomainHttpCodeDataRequest& request, const DescribeDcdnDomainHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnDomainHttpCodeDataOutcomeCallable describeDcdnDomainHttpCodeDataCallable(const Model::DescribeDcdnDomainHttpCodeDataRequest& request) const; + DescribeDcdnIpaDomainDetailOutcome describeDcdnIpaDomainDetail(const Model::DescribeDcdnIpaDomainDetailRequest &request)const; + void describeDcdnIpaDomainDetailAsync(const Model::DescribeDcdnIpaDomainDetailRequest& request, const DescribeDcdnIpaDomainDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnIpaDomainDetailOutcomeCallable describeDcdnIpaDomainDetailCallable(const Model::DescribeDcdnIpaDomainDetailRequest& request) const; AddDcdnDomainOutcome addDcdnDomain(const Model::AddDcdnDomainRequest &request)const; void addDcdnDomainAsync(const Model::AddDcdnDomainRequest& request, const AddDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddDcdnDomainOutcomeCallable addDcdnDomainCallable(const Model::AddDcdnDomainRequest& request) const; PreloadDcdnObjectCachesOutcome preloadDcdnObjectCaches(const Model::PreloadDcdnObjectCachesRequest &request)const; void preloadDcdnObjectCachesAsync(const Model::PreloadDcdnObjectCachesRequest& request, const PreloadDcdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PreloadDcdnObjectCachesOutcomeCallable preloadDcdnObjectCachesCallable(const Model::PreloadDcdnObjectCachesRequest& request) const; - DescribeDcdnDomainTopReferVisitOutcome describeDcdnDomainTopReferVisit(const Model::DescribeDcdnDomainTopReferVisitRequest &request)const; - void describeDcdnDomainTopReferVisitAsync(const Model::DescribeDcdnDomainTopReferVisitRequest& request, const DescribeDcdnDomainTopReferVisitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainTopReferVisitOutcomeCallable describeDcdnDomainTopReferVisitCallable(const Model::DescribeDcdnDomainTopReferVisitRequest& request) const; - DescribeDcdnDomainCnameOutcome describeDcdnDomainCname(const Model::DescribeDcdnDomainCnameRequest &request)const; - void describeDcdnDomainCnameAsync(const Model::DescribeDcdnDomainCnameRequest& request, const DescribeDcdnDomainCnameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDcdnDomainCnameOutcomeCallable describeDcdnDomainCnameCallable(const Model::DescribeDcdnDomainCnameRequest& request) const; - StopDcdnDomainOutcome stopDcdnDomain(const Model::StopDcdnDomainRequest &request)const; - void stopDcdnDomainAsync(const Model::StopDcdnDomainRequest& request, const StopDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopDcdnDomainOutcomeCallable stopDcdnDomainCallable(const Model::StopDcdnDomainRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/dcdn/include/alibabacloud/dcdn/model/AddDcdnDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/AddDcdnDomainRequest.h index 1cdd416c9..b981a8efa 100644 --- a/dcdn/include/alibabacloud/dcdn/model/AddDcdnDomainRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/AddDcdnDomainRequest.h @@ -53,8 +53,6 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getCheckUrl()const; void setCheckUrl(const std::string& checkUrl); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string topLevelDomain_; @@ -66,7 +64,6 @@ namespace AlibabaCloud std::string domainName_; long ownerId_; std::string checkUrl_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainRequest.h new file mode 100644 index 000000000..9aea5a2c2 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainRequest.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_DCDN_MODEL_ADDDCDNIPADOMAINREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_ADDDCDNIPADOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT AddDcdnIpaDomainRequest : public RpcServiceRequest + { + + public: + AddDcdnIpaDomainRequest(); + ~AddDcdnIpaDomainRequest(); + + std::string getTopLevelDomain()const; + void setTopLevelDomain(const std::string& topLevelDomain); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSources()const; + void setSources(const std::string& sources); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getScope()const; + void setScope(const std::string& scope); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCheckUrl()const; + void setCheckUrl(const std::string& checkUrl); + + private: + std::string topLevelDomain_; + std::string resourceGroupId_; + std::string sources_; + std::string securityToken_; + std::string ownerAccount_; + std::string scope_; + std::string domainName_; + long ownerId_; + std::string checkUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_ADDDCDNIPADOMAINREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainResult.h b/dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainResult.h new file mode 100644 index 000000000..338610e22 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/AddDcdnIpaDomainResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_ADDDCDNIPADOMAINRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_ADDDCDNIPADOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT AddDcdnIpaDomainResult : public ServiceResult + { + public: + + + AddDcdnIpaDomainResult(); + explicit AddDcdnIpaDomainResult(const std::string &payload); + ~AddDcdnIpaDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_ADDDCDNIPADOMAINRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsRequest.h b/dcdn/include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsRequest.h index 33493a7af..252851249 100644 --- a/dcdn/include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string functionNames_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string domainNames_; std::string ownerAccount_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h index b3ac7cb95..4be737612 100644 --- a/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string functions_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string domainNames_; std::string ownerAccount_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsRequest.h b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsRequest.h new file mode 100644 index 000000000..6e36e6e81 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsRequest.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_DCDN_MODEL_BATCHSETDCDNIPADOMAINCONFIGSREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNIPADOMAINCONFIGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT BatchSetDcdnIpaDomainConfigsRequest : public RpcServiceRequest + { + + public: + BatchSetDcdnIpaDomainConfigsRequest(); + ~BatchSetDcdnIpaDomainConfigsRequest(); + + std::string getFunctions()const; + void setFunctions(const std::string& functions); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainNames()const; + void setDomainNames(const std::string& domainNames); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string functions_; + std::string securityToken_; + std::string domainNames_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNIPADOMAINCONFIGSREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsResult.h b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsResult.h new file mode 100644 index 000000000..695a5cf0e --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNIPADOMAINCONFIGSRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNIPADOMAINCONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT BatchSetDcdnIpaDomainConfigsResult : public ServiceResult + { + public: + + + BatchSetDcdnIpaDomainConfigsResult(); + explicit BatchSetDcdnIpaDomainConfigsResult(const std::string &payload); + ~BatchSetDcdnIpaDomainConfigsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNIPADOMAINCONFIGSRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h index fdd3cd2c7..efa2e7960 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string resourceGroupId_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string ownerAccount_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.h new file mode 100644 index 000000000..3ca1e5952 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.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_DCDN_MODEL_DELETEDCDNIPADOMAINREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DELETEDCDNIPADOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DeleteDcdnIpaDomainRequest : public RpcServiceRequest + { + + public: + DeleteDcdnIpaDomainRequest(); + ~DeleteDcdnIpaDomainRequest(); + + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string resourceGroupId_; + std::string securityToken_; + std::string ownerAccount_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DELETEDCDNIPADOMAINREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainResult.h b/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainResult.h new file mode 100644 index 000000000..fa0e2bef2 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DELETEDCDNIPADOMAINRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DELETEDCDNIPADOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DeleteDcdnIpaDomainResult : public ServiceResult + { + public: + + + DeleteDcdnIpaDomainResult(); + explicit DeleteDcdnIpaDomainResult(const std::string &payload); + ~DeleteDcdnIpaDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DELETEDCDNIPADOMAINRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailRequest.h index d89c20369..8737eae6d 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateDetailRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setCertName(const std::string& certName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string certName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateListRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateListRequest.h index 2c7c1e68a..4299de634 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateListRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnCertificateListRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainConfigsRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainConfigsRequest.h index 4619ba82c..607008784 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainConfigsRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainConfigsRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string functionNames_; std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainDetailRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainDetailRequest.h index 85d5ae2a2..dd45063e2 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainDetailRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainDetailRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataRequest.h new file mode 100644 index 000000000..ea436bdf0 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataRequest.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_DCDN_MODEL_DESCRIBEDCDNDOMAINIPABPSDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPABPSDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainIpaBpsDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainIpaBpsDataRequest(); + ~DescribeDcdnDomainIpaBpsDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getFixTimeGap()const; + void setFixTimeGap(const std::string& fixTimeGap); + std::string getTimeMerge()const; + void setTimeMerge(const std::string& timeMerge); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string startTime_; + std::string ispNameEn_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string fixTimeGap_; + std::string timeMerge_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPABPSDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataResult.h new file mode 100644 index 000000000..6ad316ea1 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaBpsDataResult.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_DCDN_MODEL_DESCRIBEDCDNDOMAINIPABPSDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPABPSDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainIpaBpsDataResult : public ServiceResult + { + public: + struct DataModule + { + float ipaBps; + std::string timeStamp; + }; + + + DescribeDcdnDomainIpaBpsDataResult(); + explicit DescribeDcdnDomainIpaBpsDataResult(const std::string &payload); + ~DescribeDcdnDomainIpaBpsDataResult(); + std::string getEndTime()const; + std::string getDomainName()const; + std::string getStartTime()const; + std::string getDataInterval()const; + std::vector getBpsDataPerInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string domainName_; + std::string startTime_; + std::string dataInterval_; + std::vector bpsDataPerInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPABPSDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataRequest.h new file mode 100644 index 000000000..2466effeb --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataRequest.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_DCDN_MODEL_DESCRIBEDCDNDOMAINIPATRAFFICDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPATRAFFICDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainIpaTrafficDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainIpaTrafficDataRequest(); + ~DescribeDcdnDomainIpaTrafficDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getFixTimeGap()const; + void setFixTimeGap(const std::string& fixTimeGap); + std::string getTimeMerge()const; + void setTimeMerge(const std::string& timeMerge); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string startTime_; + std::string ispNameEn_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string fixTimeGap_; + std::string timeMerge_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPATRAFFICDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataResult.h new file mode 100644 index 000000000..eb5b4f790 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainIpaTrafficDataResult.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_DCDN_MODEL_DESCRIBEDCDNDOMAINIPATRAFFICDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPATRAFFICDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainIpaTrafficDataResult : public ServiceResult + { + public: + struct DataModule + { + float ipaTraffic; + std::string timeStamp; + }; + + + DescribeDcdnDomainIpaTrafficDataResult(); + explicit DescribeDcdnDomainIpaTrafficDataResult(const std::string &payload); + ~DescribeDcdnDomainIpaTrafficDataResult(); + std::string getEndTime()const; + std::vector getTrafficDataPerInterval()const; + std::string getDomainName()const; + std::string getStartTime()const; + std::string getDataInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::vector trafficDataPerInterval_; + std::string domainName_; + std::string startTime_; + std::string dataInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINIPATRAFFICDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogRequest.h index 48ff968fb..1f4d2e7af 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DescribeDcdnDomainLogRequest(); ~DescribeDcdnDomainLogRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -87,6 +89,7 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); private: + long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; std::string startTime_; diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogResult.h index 2392524de..9bac2c112 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogResult.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainLogResult.h @@ -34,7 +34,7 @@ namespace AlibabaCloud public: struct DomainLogDetail { - struct PageInfoDetail + struct PageInfos { long pageSize; long total; @@ -49,7 +49,7 @@ namespace AlibabaCloud std::string logPath; }; std::vector logInfos; - std::vector pageInfos; + PageInfos pageInfos; long logCount; }; diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataRequest.h new file mode 100644 index 000000000..0abb1fb93 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataRequest.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_DCDN_MODEL_DESCRIBEDCDNDOMAINPVDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINPVDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainPvDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainPvDataRequest(); + ~DescribeDcdnDomainPvDataRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + std::string domainName_; + std::string endTime_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINPVDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataResult.h new file mode 100644 index 000000000..e617ada0e --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainPvDataResult.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_DCDN_MODEL_DESCRIBEDCDNDOMAINPVDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINPVDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainPvDataResult : public ServiceResult + { + public: + struct UsageData + { + std::string value; + std::string timeStamp; + }; + + + DescribeDcdnDomainPvDataResult(); + explicit DescribeDcdnDomainPvDataResult(const std::string &payload); + ~DescribeDcdnDomainPvDataResult(); + std::string getEndTime()const; + std::string getDomainName()const; + std::string getDataInterval()const; + std::string getStartTime()const; + std::vector getPvDataInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string domainName_; + std::string dataInterval_; + std::string startTime_; + std::vector pvDataInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINPVDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataRequest.h new file mode 100644 index 000000000..9e9381dde --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBPSDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBPSDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeBpsDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainRealTimeBpsDataRequest(); + ~DescribeDcdnDomainRealTimeBpsDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string ispNameEn_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBPSDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataResult.h new file mode 100644 index 000000000..427444331 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeBpsDataResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBPSDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBPSDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeBpsDataResult : public ServiceResult + { + public: + struct BpsModel + { + float bps; + std::string timeStamp; + }; + + + DescribeDcdnDomainRealTimeBpsDataResult(); + explicit DescribeDcdnDomainRealTimeBpsDataResult(const std::string &payload); + ~DescribeDcdnDomainRealTimeBpsDataResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBPSDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.h new file mode 100644 index 000000000..6bdf9a0d4 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBYTEHITRATEDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBYTEHITRATEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeByteHitRateDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainRealTimeByteHitRateDataRequest(); + ~DescribeDcdnDomainRealTimeByteHitRateDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBYTEHITRATEDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.h new file mode 100644 index 000000000..9967c9204 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBYTEHITRATEDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBYTEHITRATEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeByteHitRateDataResult : public ServiceResult + { + public: + struct ByteHitRateDataModel + { + float byteHitRate; + std::string timeStamp; + }; + + + DescribeDcdnDomainRealTimeByteHitRateDataResult(); + explicit DescribeDcdnDomainRealTimeByteHitRateDataResult(const std::string &payload); + ~DescribeDcdnDomainRealTimeByteHitRateDataResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEBYTEHITRATEDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.h new file mode 100644 index 000000000..f79bb70a4 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEHTTPCODEDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEHTTPCODEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeHttpCodeDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainRealTimeHttpCodeDataRequest(); + ~DescribeDcdnDomainRealTimeHttpCodeDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string startTime_; + std::string ispNameEn_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEHTTPCODEDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.h new file mode 100644 index 000000000..21a6db366 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.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_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEHTTPCODEDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEHTTPCODEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeHttpCodeDataResult : public ServiceResult + { + public: + struct UsageData + { + struct RealTimeCodeProportionData + { + std::string proportion; + std::string count; + std::string code; + }; + std::vector value; + std::string timeStamp; + }; + + + DescribeDcdnDomainRealTimeHttpCodeDataResult(); + explicit DescribeDcdnDomainRealTimeHttpCodeDataResult(const std::string &payload); + ~DescribeDcdnDomainRealTimeHttpCodeDataResult(); + std::string getEndTime()const; + std::string getDomainName()const; + std::string getStartTime()const; + std::string getDataInterval()const; + std::vector getRealTimeHttpCodeData()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string domainName_; + std::string startTime_; + std::string dataInterval_; + std::vector realTimeHttpCodeData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEHTTPCODEDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataRequest.h new file mode 100644 index 000000000..50035cec8 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEQPSDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEQPSDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeQpsDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainRealTimeQpsDataRequest(); + ~DescribeDcdnDomainRealTimeQpsDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getLocationNameEn()const; + void setLocationNameEn(const std::string& locationNameEn); + std::string getIspNameEn()const; + void setIspNameEn(const std::string& ispNameEn); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string locationNameEn_; + std::string ispNameEn_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEQPSDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataResult.h new file mode 100644 index 000000000..eee20988f --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeQpsDataResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEQPSDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEQPSDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeQpsDataResult : public ServiceResult + { + public: + struct QpsModel + { + float qps; + std::string timeStamp; + }; + + + DescribeDcdnDomainRealTimeQpsDataResult(); + explicit DescribeDcdnDomainRealTimeQpsDataResult(const std::string &payload); + ~DescribeDcdnDomainRealTimeQpsDataResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEQPSDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.h new file mode 100644 index 000000000..5f427bf8b --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEREQHITRATEDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEREQHITRATEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeReqHitRateDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainRealTimeReqHitRateDataRequest(); + ~DescribeDcdnDomainRealTimeReqHitRateDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEREQHITRATEDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.h new file mode 100644 index 000000000..cfc0e1b01 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEREQHITRATEDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEREQHITRATEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeReqHitRateDataResult : public ServiceResult + { + public: + struct ReqHitRateDataModel + { + float reqHitRate; + std::string timeStamp; + }; + + + DescribeDcdnDomainRealTimeReqHitRateDataResult(); + explicit DescribeDcdnDomainRealTimeReqHitRateDataResult(const std::string &payload); + ~DescribeDcdnDomainRealTimeReqHitRateDataResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMEREQHITRATEDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.h new file mode 100644 index 000000000..3dacf6acd --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCBPSDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCBPSDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeSrcBpsDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainRealTimeSrcBpsDataRequest(); + ~DescribeDcdnDomainRealTimeSrcBpsDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCBPSDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.h new file mode 100644 index 000000000..68aaedac0 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.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_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCBPSDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCBPSDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeSrcBpsDataResult : public ServiceResult + { + public: + struct DataModule + { + std::string value; + std::string timeStamp; + }; + + + DescribeDcdnDomainRealTimeSrcBpsDataResult(); + explicit DescribeDcdnDomainRealTimeSrcBpsDataResult(const std::string &payload); + ~DescribeDcdnDomainRealTimeSrcBpsDataResult(); + std::string getEndTime()const; + std::vector getRealTimeSrcBpsDataPerInterval()const; + std::string getDomainName()const; + std::string getStartTime()const; + std::string getDataInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::vector realTimeSrcBpsDataPerInterval_; + std::string domainName_; + std::string startTime_; + std::string dataInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCBPSDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h new file mode 100644 index 000000000..666bbbbbf --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCTRAFFICDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCTRAFFICDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeSrcTrafficDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainRealTimeSrcTrafficDataRequest(); + ~DescribeDcdnDomainRealTimeSrcTrafficDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string interval_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCTRAFFICDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h new file mode 100644 index 000000000..6f5cd4031 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.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_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCTRAFFICDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCTRAFFICDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeSrcTrafficDataResult : public ServiceResult + { + public: + struct DataModule + { + std::string value; + std::string timeStamp; + }; + + + DescribeDcdnDomainRealTimeSrcTrafficDataResult(); + explicit DescribeDcdnDomainRealTimeSrcTrafficDataResult(const std::string &payload); + ~DescribeDcdnDomainRealTimeSrcTrafficDataResult(); + std::string getEndTime()const; + std::string getDomainName()const; + std::string getStartTime()const; + std::string getDataInterval()const; + std::vector getRealTimeSrcTrafficDataPerInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string domainName_; + std::string startTime_; + std::string dataInterval_; + std::vector realTimeSrcTrafficDataPerInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMESRCTRAFFICDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitRequest.h index 22d23decd..94c6d4bd3 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopReferVisitRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string sortBy_; std::string startTime_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitRequest.h index 5d4c7c9b1..5321c2edc 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string sortBy_; std::string startTime_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataRequest.h new file mode 100644 index 000000000..063169e52 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataRequest.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_DCDN_MODEL_DESCRIBEDCDNDOMAINUVDATAREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINUVDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainUvDataRequest : public RpcServiceRequest + { + + public: + DescribeDcdnDomainUvDataRequest(); + ~DescribeDcdnDomainUvDataRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + std::string domainName_; + std::string endTime_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINUVDATAREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataResult.h new file mode 100644 index 000000000..858074cb2 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnDomainUvDataResult.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_DCDN_MODEL_DESCRIBEDCDNDOMAINUVDATARESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINUVDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainUvDataResult : public ServiceResult + { + public: + struct UsageData + { + std::string value; + std::string timeStamp; + }; + + + DescribeDcdnDomainUvDataResult(); + explicit DescribeDcdnDomainUvDataResult(const std::string &payload); + ~DescribeDcdnDomainUvDataResult(); + std::vector getUvDataInterval()const; + std::string getEndTime()const; + std::string getDomainName()const; + std::string getDataInterval()const; + std::string getStartTime()const; + + protected: + void parse(const std::string &payload); + private: + std::vector uvDataInterval_; + std::string endTime_; + std::string domainName_; + std::string dataInterval_; + std::string startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINUVDATARESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsRequest.h new file mode 100644 index 000000000..d3da725e1 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsRequest.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_DCDN_MODEL_DESCRIBEDCDNIPADOMAINCONFIGSREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINCONFIGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaDomainConfigsRequest : public RpcServiceRequest + { + + public: + DescribeDcdnIpaDomainConfigsRequest(); + ~DescribeDcdnIpaDomainConfigsRequest(); + + std::string getFunctionNames()const; + void setFunctionNames(const std::string& functionNames); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string functionNames_; + std::string securityToken_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINCONFIGSREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsResult.h new file mode 100644 index 000000000..9746ffad7 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainConfigsResult.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_DCDN_MODEL_DESCRIBEDCDNIPADOMAINCONFIGSRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINCONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaDomainConfigsResult : public ServiceResult + { + public: + struct DomainConfig + { + struct FunctionArg + { + std::string argValue; + std::string argName; + }; + std::string status; + std::string functionName; + std::vector functionArgs; + std::string configId; + }; + + + DescribeDcdnIpaDomainConfigsResult(); + explicit DescribeDcdnIpaDomainConfigsResult(const std::string &payload); + ~DescribeDcdnIpaDomainConfigsResult(); + std::vector getDomainConfigs()const; + + protected: + void parse(const std::string &payload); + private: + std::vector domainConfigs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINCONFIGSRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailRequest.h new file mode 100644 index 000000000..6c1726673 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailRequest.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_DCDN_MODEL_DESCRIBEDCDNIPADOMAINDETAILREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaDomainDetailRequest : public RpcServiceRequest + { + + public: + DescribeDcdnIpaDomainDetailRequest(); + ~DescribeDcdnIpaDomainDetailRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINDETAILREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailResult.h new file mode 100644 index 000000000..66fdd2370 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaDomainDetailResult.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_DCDN_MODEL_DESCRIBEDCDNIPADOMAINDETAILRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaDomainDetailResult : public ServiceResult + { + public: + struct DomainDetail + { + struct Source + { + std::string type; + std::string content; + std::string priority; + int port; + std::string enabled; + std::string weight; + }; + std::string description; + std::string scope; + std::string resourceGroupId; + std::string domainName; + std::string sSLPub; + std::string gmtModified; + std::string gmtCreated; + std::string certName; + std::vector sources; + std::string cname; + std::string domainStatus; + std::string sSLProtocol; + }; + + + DescribeDcdnIpaDomainDetailResult(); + explicit DescribeDcdnIpaDomainDetailResult(const std::string &payload); + ~DescribeDcdnIpaDomainDetailResult(); + DomainDetail getDomainDetail()const; + + protected: + void parse(const std::string &payload); + private: + DomainDetail domainDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPADOMAINDETAILRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceRequest.h new file mode 100644 index 000000000..9e7d58c6e --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceRequest.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_DCDN_MODEL_DESCRIBEDCDNIPASERVICEREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPASERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaServiceRequest : public RpcServiceRequest + { + + public: + DescribeDcdnIpaServiceRequest(); + ~DescribeDcdnIpaServiceRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPASERVICEREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceResult.h new file mode 100644 index 000000000..336dd1a62 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaServiceResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPASERVICERESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPASERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaServiceResult : public ServiceResult + { + public: + struct LockReason + { + std::string lockReason; + }; + + + DescribeDcdnIpaServiceResult(); + explicit DescribeDcdnIpaServiceResult(const std::string &payload); + ~DescribeDcdnIpaServiceResult(); + std::string getChangingChargeType()const; + std::string getInstanceId()const; + std::string getOpeningTime()const; + std::vector getOperationLocks()const; + std::string getChangingAffectTime()const; + std::string getInternetChargeType()const; + + protected: + void parse(const std::string &payload); + private: + std::string changingChargeType_; + std::string instanceId_; + std::string openingTime_; + std::vector operationLocks_; + std::string changingAffectTime_; + std::string internetChargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPASERVICERESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsRequest.h new file mode 100644 index 000000000..a87e259ad --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsRequest.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_DCDN_MODEL_DESCRIBEDCDNIPAUSERDOMAINSREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPAUSERDOMAINSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaUserDomainsRequest : public RpcServiceRequest + { + + public: + DescribeDcdnIpaUserDomainsRequest(); + ~DescribeDcdnIpaUserDomainsRequest(); + + std::string getFuncFilter()const; + void setFuncFilter(const std::string& funcFilter); + bool getCheckDomainShow()const; + void setCheckDomainShow(bool checkDomainShow); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFuncId()const; + void setFuncId(const std::string& funcId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getDomainStatus()const; + void setDomainStatus(const std::string& domainStatus); + std::string getDomainSearchType()const; + void setDomainSearchType(const std::string& domainSearchType); + + private: + std::string funcFilter_; + bool checkDomainShow_; + std::string resourceGroupId_; + std::string securityToken_; + int pageSize_; + std::string domainName_; + long ownerId_; + std::string funcId_; + int pageNumber_; + std::string domainStatus_; + std::string domainSearchType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPAUSERDOMAINSREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsResult.h new file mode 100644 index 000000000..f2548bfb1 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnIpaUserDomainsResult.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_DCDN_MODEL_DESCRIBEDCDNIPAUSERDOMAINSRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPAUSERDOMAINSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnIpaUserDomainsResult : public ServiceResult + { + public: + struct PageData + { + struct Source + { + std::string type; + std::string content; + std::string priority; + int port; + std::string weight; + }; + std::string description; + std::string resourceGroupId; + std::string domainName; + std::string gmtModified; + std::string gmtCreated; + std::vector sources; + std::string cname; + std::string domainStatus; + std::string sSLProtocol; + std::string sandbox; + }; + + + DescribeDcdnIpaUserDomainsResult(); + explicit DescribeDcdnIpaUserDomainsResult(const std::string &payload); + ~DescribeDcdnIpaUserDomainsResult(); + std::vector getDomains()const; + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector domains_; + long totalCount_; + long pageSize_; + long pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNIPAUSERDOMAINSRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaRequest.h index 6020eaf0d..13b92eb36 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshTasksRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshTasksRequest.h index ce96ff074..165f94a07 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshTasksRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnRefreshTasksRequest.h @@ -47,8 +47,6 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getSecurityToken()const; @@ -69,7 +67,6 @@ namespace AlibabaCloud std::string startTime_; long ownerId_; int pageNumber_; - std::string accessKeyId_; std::string resourceGroupId_; std::string securityToken_; int pageSize_; diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnServiceRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnServiceRequest.h index ec43fc37f..647b51021 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnServiceRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnServiceRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h index 2e343d71c..9ff638a9a 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h @@ -37,6 +37,14 @@ namespace AlibabaCloud std::string getFuncFilter()const; void setFuncFilter(const std::string& funcFilter); + bool getCheckDomainShow()const; + void setCheckDomainShow(bool checkDomainShow); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); std::string getDomainName()const; void setDomainName(const std::string& domainName); long getOwnerId()const; @@ -47,32 +55,21 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getDomainStatus()const; void setDomainStatus(const std::string& domainStatus); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getDomainSearchType()const; void setDomainSearchType(const std::string& domainSearchType); - bool getCheckDomainShow()const; - void setCheckDomainShow(bool checkDomainShow); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - int getPageSize()const; - void setPageSize(int pageSize); private: std::string funcFilter_; + bool checkDomainShow_; + std::string resourceGroupId_; + std::string securityToken_; + int pageSize_; std::string domainName_; long ownerId_; std::string funcId_; int pageNumber_; std::string domainStatus_; - std::string accessKeyId_; std::string domainSearchType_; - bool checkDomainShow_; - std::string resourceGroupId_; - std::string securityToken_; - int pageSize_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaRequest.h index d10aaa4b8..d1f8ab377 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserQuotaRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageRequest.h index 336794b52..e7f7ba9f9 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h index 17c976bc2..2726ca72a 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::string commodityCode; std::string displayName; std::string startTime; + std::string templateName; std::string currCapacity; }; diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusRequest.h new file mode 100644 index 000000000..6bb07e351 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusRequest.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_DCDN_MODEL_DESCRIBEUSERDCDNIPASTATUSREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERDCDNIPASTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeUserDcdnIpaStatusRequest : public RpcServiceRequest + { + + public: + DescribeUserDcdnIpaStatusRequest(); + ~DescribeUserDcdnIpaStatusRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERDCDNIPASTATUSREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h new file mode 100644 index 000000000..3bdf9973f --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.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_DCDN_MODEL_DESCRIBEUSERDCDNIPASTATUSRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERDCDNIPASTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeUserDcdnIpaStatusResult : public ServiceResult + { + public: + + + DescribeUserDcdnIpaStatusResult(); + explicit DescribeUserDcdnIpaStatusResult(const std::string &payload); + ~DescribeUserDcdnIpaStatusResult(); + bool getInDebt()const; + bool getEnabled()const; + bool getInDebtOverdue()const; + bool getOnService()const; + + protected: + void parse(const std::string &payload); + private: + bool inDebt_; + bool enabled_; + bool inDebtOverdue_; + bool onService_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEUSERDCDNIPASTATUSRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h index d4db99cf3..2500246fc 100644 --- a/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.h b/dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.h new file mode 100644 index 000000000..304cdaf86 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.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_DCDN_MODEL_MODIFYDCDNDOMAINSCHDMBYPROPERTYREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNDOMAINSCHDMBYPROPERTYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT ModifyDCdnDomainSchdmByPropertyRequest : public RpcServiceRequest + { + + public: + ModifyDCdnDomainSchdmByPropertyRequest(); + ~ModifyDCdnDomainSchdmByPropertyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getProperty()const; + void setProperty(const std::string& property); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string property_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNDOMAINSCHDMBYPROPERTYREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyResult.h b/dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyResult.h new file mode 100644 index 000000000..9c6ccb90d --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNDOMAINSCHDMBYPROPERTYRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNDOMAINSCHDMBYPROPERTYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT ModifyDCdnDomainSchdmByPropertyResult : public ServiceResult + { + public: + + + ModifyDCdnDomainSchdmByPropertyResult(); + explicit ModifyDCdnDomainSchdmByPropertyResult(const std::string &payload); + ~ModifyDCdnDomainSchdmByPropertyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNDOMAINSCHDMBYPROPERTYRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesRequest.h b/dcdn/include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesRequest.h index 61aba2e54..b361f9b27 100644 --- a/dcdn/include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setObjectPath(const std::string& objectPath); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string area_; std::string securityToken_; std::string objectPath_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesRequest.h b/dcdn/include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesRequest.h index 487c44efe..b67cd1339 100644 --- a/dcdn/include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/RefreshDcdnObjectCachesRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getObjectType()const; void setObjectType(const std::string& objectType); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string objectPath_; long ownerId_; std::string objectType_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h b/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h index e6f571521..9baae50e5 100644 --- a/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h @@ -53,8 +53,6 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getRegion()const; void setRegion(const std::string& region); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getSSLPri()const; void setSSLPri(const std::string& sSLPri); @@ -68,7 +66,6 @@ namespace AlibabaCloud std::string domainName_; long ownerId_; std::string region_; - std::string accessKeyId_; std::string sSLPri_; }; diff --git a/dcdn/include/alibabacloud/dcdn/model/StartDcdnDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/StartDcdnDomainRequest.h index 5228efd1a..180bf6c47 100644 --- a/dcdn/include/alibabacloud/dcdn/model/StartDcdnDomainRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/StartDcdnDomainRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainRequest.h new file mode 100644 index 000000000..0029ae1d4 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainRequest.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_DCDN_MODEL_STARTDCDNIPADOMAINREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_STARTDCDNIPADOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT StartDcdnIpaDomainRequest : public RpcServiceRequest + { + + public: + StartDcdnIpaDomainRequest(); + ~StartDcdnIpaDomainRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_STARTDCDNIPADOMAINREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainResult.h b/dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainResult.h new file mode 100644 index 000000000..f51714cb0 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/StartDcdnIpaDomainResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_STARTDCDNIPADOMAINRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_STARTDCDNIPADOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT StartDcdnIpaDomainResult : public ServiceResult + { + public: + + + StartDcdnIpaDomainResult(); + explicit StartDcdnIpaDomainResult(const std::string &payload); + ~StartDcdnIpaDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_STARTDCDNIPADOMAINRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/StopDcdnDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/StopDcdnDomainRequest.h index c1485910a..1a146d972 100644 --- a/dcdn/include/alibabacloud/dcdn/model/StopDcdnDomainRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/StopDcdnDomainRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainRequest.h new file mode 100644 index 000000000..6a0d9b136 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainRequest.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_DCDN_MODEL_STOPDCDNIPADOMAINREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_STOPDCDNIPADOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT StopDcdnIpaDomainRequest : public RpcServiceRequest + { + + public: + StopDcdnIpaDomainRequest(); + ~StopDcdnIpaDomainRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_STOPDCDNIPADOMAINREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainResult.h b/dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainResult.h new file mode 100644 index 000000000..c1c5e4450 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/StopDcdnIpaDomainResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_STOPDCDNIPADOMAINRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_STOPDCDNIPADOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT StopDcdnIpaDomainResult : public ServiceResult + { + public: + + + StopDcdnIpaDomainResult(); + explicit StopDcdnIpaDomainResult(const std::string &payload); + ~StopDcdnIpaDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_STOPDCDNIPADOMAINRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnDomainRequest.h index 1fef8350d..574a5f52b 100644 --- a/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnDomainRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnDomainRequest.h @@ -47,8 +47,6 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string topLevelDomain_; @@ -57,7 +55,6 @@ namespace AlibabaCloud std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainRequest.h new file mode 100644 index 000000000..0fd51a69d --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainRequest.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_DCDN_MODEL_UPDATEDCDNIPADOMAINREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_UPDATEDCDNIPADOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT UpdateDcdnIpaDomainRequest : public RpcServiceRequest + { + + public: + UpdateDcdnIpaDomainRequest(); + ~UpdateDcdnIpaDomainRequest(); + + std::string getTopLevelDomain()const; + void setTopLevelDomain(const std::string& topLevelDomain); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSources()const; + void setSources(const std::string& sources); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string topLevelDomain_; + std::string resourceGroupId_; + std::string sources_; + std::string securityToken_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_UPDATEDCDNIPADOMAINREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h b/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h new file mode 100644 index 000000000..474a78f57 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_UPDATEDCDNIPADOMAINRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_UPDATEDCDNIPADOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT UpdateDcdnIpaDomainResult : public ServiceResult + { + public: + + + UpdateDcdnIpaDomainResult(); + explicit UpdateDcdnIpaDomainResult(const std::string &payload); + ~UpdateDcdnIpaDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_UPDATEDCDNIPADOMAINRESULT_H_ \ No newline at end of file diff --git a/dcdn/src/DcdnClient.cc b/dcdn/src/DcdnClient.cc index 9c33a6067..b2665990e 100644 --- a/dcdn/src/DcdnClient.cc +++ b/dcdn/src/DcdnClient.cc @@ -87,42 +87,6 @@ DcdnClient::DescribeDcdnUserResourcePackageOutcomeCallable DcdnClient::describeD return task->get_future(); } -DcdnClient::DescribeDcdnRefreshQuotaOutcome DcdnClient::describeDcdnRefreshQuota(const DescribeDcdnRefreshQuotaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnRefreshQuotaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnRefreshQuotaOutcome(DescribeDcdnRefreshQuotaResult(outcome.result())); - else - return DescribeDcdnRefreshQuotaOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnRefreshQuotaAsync(const DescribeDcdnRefreshQuotaRequest& request, const DescribeDcdnRefreshQuotaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnRefreshQuota(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnRefreshQuotaOutcomeCallable DcdnClient::describeDcdnRefreshQuotaCallable(const DescribeDcdnRefreshQuotaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnRefreshQuota(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::DescribeDcdnDomainTopUrlVisitOutcome DcdnClient::describeDcdnDomainTopUrlVisit(const DescribeDcdnDomainTopUrlVisitRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,36 +123,36 @@ DcdnClient::DescribeDcdnDomainTopUrlVisitOutcomeCallable DcdnClient::describeDcd return task->get_future(); } -DcdnClient::BatchSetDcdnDomainConfigsOutcome DcdnClient::batchSetDcdnDomainConfigs(const BatchSetDcdnDomainConfigsRequest &request) const +DcdnClient::DescribeDcdnRefreshQuotaOutcome DcdnClient::describeDcdnRefreshQuota(const DescribeDcdnRefreshQuotaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BatchSetDcdnDomainConfigsOutcome(endpointOutcome.error()); + return DescribeDcdnRefreshQuotaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BatchSetDcdnDomainConfigsOutcome(BatchSetDcdnDomainConfigsResult(outcome.result())); + return DescribeDcdnRefreshQuotaOutcome(DescribeDcdnRefreshQuotaResult(outcome.result())); else - return BatchSetDcdnDomainConfigsOutcome(outcome.error()); + return DescribeDcdnRefreshQuotaOutcome(outcome.error()); } -void DcdnClient::batchSetDcdnDomainConfigsAsync(const BatchSetDcdnDomainConfigsRequest& request, const BatchSetDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context) const +void DcdnClient::describeDcdnRefreshQuotaAsync(const DescribeDcdnRefreshQuotaRequest& request, const DescribeDcdnRefreshQuotaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, batchSetDcdnDomainConfigs(request), context); + handler(this, request, describeDcdnRefreshQuota(request), context); }; asyncExecute(new Runnable(fn)); } -DcdnClient::BatchSetDcdnDomainConfigsOutcomeCallable DcdnClient::batchSetDcdnDomainConfigsCallable(const BatchSetDcdnDomainConfigsRequest &request) const +DcdnClient::DescribeDcdnRefreshQuotaOutcomeCallable DcdnClient::describeDcdnRefreshQuotaCallable(const DescribeDcdnRefreshQuotaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->batchSetDcdnDomainConfigs(request); + return this->describeDcdnRefreshQuota(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -231,78 +195,6 @@ DcdnClient::SetDcdnDomainCertificateOutcomeCallable DcdnClient::setDcdnDomainCer return task->get_future(); } -DcdnClient::DescribeDcdnDomainLogOutcome DcdnClient::describeDcdnDomainLog(const DescribeDcdnDomainLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnDomainLogOutcome(DescribeDcdnDomainLogResult(outcome.result())); - else - return DescribeDcdnDomainLogOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnDomainLogAsync(const DescribeDcdnDomainLogRequest& request, const DescribeDcdnDomainLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnDomainLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnDomainLogOutcomeCallable DcdnClient::describeDcdnDomainLogCallable(const DescribeDcdnDomainLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnDomainLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DcdnClient::DescribeDcdnUserQuotaOutcome DcdnClient::describeDcdnUserQuota(const DescribeDcdnUserQuotaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnUserQuotaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnUserQuotaOutcome(DescribeDcdnUserQuotaResult(outcome.result())); - else - return DescribeDcdnUserQuotaOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnUserQuotaAsync(const DescribeDcdnUserQuotaRequest& request, const DescribeDcdnUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnUserQuota(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnUserQuotaOutcomeCallable DcdnClient::describeDcdnUserQuotaCallable(const DescribeDcdnUserQuotaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnUserQuota(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::DescribeDcdnDomainOriginBpsDataOutcome DcdnClient::describeDcdnDomainOriginBpsData(const DescribeDcdnDomainOriginBpsDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,42 +231,6 @@ DcdnClient::DescribeDcdnDomainOriginBpsDataOutcomeCallable DcdnClient::describeD return task->get_future(); } -DcdnClient::DescribeDcdnDomainCertificateInfoOutcome DcdnClient::describeDcdnDomainCertificateInfo(const DescribeDcdnDomainCertificateInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainCertificateInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnDomainCertificateInfoOutcome(DescribeDcdnDomainCertificateInfoResult(outcome.result())); - else - return DescribeDcdnDomainCertificateInfoOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnDomainCertificateInfoAsync(const DescribeDcdnDomainCertificateInfoRequest& request, const DescribeDcdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnDomainCertificateInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnDomainCertificateInfoOutcomeCallable DcdnClient::describeDcdnDomainCertificateInfoCallable(const DescribeDcdnDomainCertificateInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnDomainCertificateInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::DescribeDcdnRefreshTasksOutcome DcdnClient::describeDcdnRefreshTasks(const DescribeDcdnRefreshTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,42 +267,6 @@ DcdnClient::DescribeDcdnRefreshTasksOutcomeCallable DcdnClient::describeDcdnRefr return task->get_future(); } -DcdnClient::DescribeDcdnServiceOutcome DcdnClient::describeDcdnService(const DescribeDcdnServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnServiceOutcome(DescribeDcdnServiceResult(outcome.result())); - else - return DescribeDcdnServiceOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnServiceAsync(const DescribeDcdnServiceRequest& request, const DescribeDcdnServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnServiceOutcomeCallable DcdnClient::describeDcdnServiceCallable(const DescribeDcdnServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::UpdateDcdnDomainOutcome DcdnClient::updateDcdnDomain(const UpdateDcdnDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,42 +339,6 @@ DcdnClient::DeleteDcdnDomainOutcomeCallable DcdnClient::deleteDcdnDomainCallable return task->get_future(); } -DcdnClient::DescribeDcdnDomainWebsocketTrafficDataOutcome DcdnClient::describeDcdnDomainWebsocketTrafficData(const DescribeDcdnDomainWebsocketTrafficDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainWebsocketTrafficDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnDomainWebsocketTrafficDataOutcome(DescribeDcdnDomainWebsocketTrafficDataResult(outcome.result())); - else - return DescribeDcdnDomainWebsocketTrafficDataOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnDomainWebsocketTrafficDataAsync(const DescribeDcdnDomainWebsocketTrafficDataRequest& request, const DescribeDcdnDomainWebsocketTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnDomainWebsocketTrafficData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnDomainWebsocketTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainWebsocketTrafficDataCallable(const DescribeDcdnDomainWebsocketTrafficDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnDomainWebsocketTrafficData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::BatchDeleteDcdnDomainConfigsOutcome DcdnClient::batchDeleteDcdnDomainConfigs(const BatchDeleteDcdnDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,42 +411,6 @@ DcdnClient::DescribeDcdnDomainDetailOutcomeCallable DcdnClient::describeDcdnDoma return task->get_future(); } -DcdnClient::DescribeDcdnDomainHitRateDataOutcome DcdnClient::describeDcdnDomainHitRateData(const DescribeDcdnDomainHitRateDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainHitRateDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnDomainHitRateDataOutcome(DescribeDcdnDomainHitRateDataResult(outcome.result())); - else - return DescribeDcdnDomainHitRateDataOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnDomainHitRateDataAsync(const DescribeDcdnDomainHitRateDataRequest& request, const DescribeDcdnDomainHitRateDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnDomainHitRateData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnDomainHitRateDataOutcomeCallable DcdnClient::describeDcdnDomainHitRateDataCallable(const DescribeDcdnDomainHitRateDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnDomainHitRateData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::DescribeDcdnDomainConfigsOutcome DcdnClient::describeDcdnDomainConfigs(const DescribeDcdnDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,42 +447,6 @@ DcdnClient::DescribeDcdnDomainConfigsOutcomeCallable DcdnClient::describeDcdnDom return task->get_future(); } -DcdnClient::DescribeDcdnDomainBpsDataOutcome DcdnClient::describeDcdnDomainBpsData(const DescribeDcdnDomainBpsDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainBpsDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnDomainBpsDataOutcome(DescribeDcdnDomainBpsDataResult(outcome.result())); - else - return DescribeDcdnDomainBpsDataOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnDomainBpsDataAsync(const DescribeDcdnDomainBpsDataRequest& request, const DescribeDcdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnDomainBpsData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnDomainBpsDataOutcomeCallable DcdnClient::describeDcdnDomainBpsDataCallable(const DescribeDcdnDomainBpsDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnDomainBpsData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::DescribeDcdnCertificateListOutcome DcdnClient::describeDcdnCertificateList(const DescribeDcdnCertificateListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,36 +483,36 @@ DcdnClient::DescribeDcdnCertificateListOutcomeCallable DcdnClient::describeDcdnC return task->get_future(); } -DcdnClient::DescribeDcdnCertificateDetailOutcome DcdnClient::describeDcdnCertificateDetail(const DescribeDcdnCertificateDetailRequest &request) const +DcdnClient::DescribeDcdnIpaDomainConfigsOutcome DcdnClient::describeDcdnIpaDomainConfigs(const DescribeDcdnIpaDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDcdnCertificateDetailOutcome(endpointOutcome.error()); + return DescribeDcdnIpaDomainConfigsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDcdnCertificateDetailOutcome(DescribeDcdnCertificateDetailResult(outcome.result())); + return DescribeDcdnIpaDomainConfigsOutcome(DescribeDcdnIpaDomainConfigsResult(outcome.result())); else - return DescribeDcdnCertificateDetailOutcome(outcome.error()); + return DescribeDcdnIpaDomainConfigsOutcome(outcome.error()); } -void DcdnClient::describeDcdnCertificateDetailAsync(const DescribeDcdnCertificateDetailRequest& request, const DescribeDcdnCertificateDetailAsyncHandler& handler, const std::shared_ptr& context) const +void DcdnClient::describeDcdnIpaDomainConfigsAsync(const DescribeDcdnIpaDomainConfigsRequest& request, const DescribeDcdnIpaDomainConfigsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDcdnCertificateDetail(request), context); + handler(this, request, describeDcdnIpaDomainConfigs(request), context); }; asyncExecute(new Runnable(fn)); } -DcdnClient::DescribeDcdnCertificateDetailOutcomeCallable DcdnClient::describeDcdnCertificateDetailCallable(const DescribeDcdnCertificateDetailRequest &request) const +DcdnClient::DescribeDcdnIpaDomainConfigsOutcomeCallable DcdnClient::describeDcdnIpaDomainConfigsCallable(const DescribeDcdnIpaDomainConfigsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDcdnCertificateDetail(request); + return this->describeDcdnIpaDomainConfigs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -843,36 +555,36 @@ DcdnClient::DescribeDcdnDomainWebsocketBpsDataOutcomeCallable DcdnClient::descri return task->get_future(); } -DcdnClient::DescribeDcdnDomainOriginTrafficDataOutcome DcdnClient::describeDcdnDomainOriginTrafficData(const DescribeDcdnDomainOriginTrafficDataRequest &request) const +DcdnClient::DescribeDcdnDomainRealTimeSrcBpsDataOutcome DcdnClient::describeDcdnDomainRealTimeSrcBpsData(const DescribeDcdnDomainRealTimeSrcBpsDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainOriginTrafficDataOutcome(endpointOutcome.error()); + return DescribeDcdnDomainRealTimeSrcBpsDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDcdnDomainOriginTrafficDataOutcome(DescribeDcdnDomainOriginTrafficDataResult(outcome.result())); + return DescribeDcdnDomainRealTimeSrcBpsDataOutcome(DescribeDcdnDomainRealTimeSrcBpsDataResult(outcome.result())); else - return DescribeDcdnDomainOriginTrafficDataOutcome(outcome.error()); + return DescribeDcdnDomainRealTimeSrcBpsDataOutcome(outcome.error()); } -void DcdnClient::describeDcdnDomainOriginTrafficDataAsync(const DescribeDcdnDomainOriginTrafficDataRequest& request, const DescribeDcdnDomainOriginTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +void DcdnClient::describeDcdnDomainRealTimeSrcBpsDataAsync(const DescribeDcdnDomainRealTimeSrcBpsDataRequest& request, const DescribeDcdnDomainRealTimeSrcBpsDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDcdnDomainOriginTrafficData(request), context); + handler(this, request, describeDcdnDomainRealTimeSrcBpsData(request), context); }; asyncExecute(new Runnable(fn)); } -DcdnClient::DescribeDcdnDomainOriginTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainOriginTrafficDataCallable(const DescribeDcdnDomainOriginTrafficDataRequest &request) const +DcdnClient::DescribeDcdnDomainRealTimeSrcBpsDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeSrcBpsDataCallable(const DescribeDcdnDomainRealTimeSrcBpsDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDcdnDomainOriginTrafficData(request); + return this->describeDcdnDomainRealTimeSrcBpsData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -915,42 +627,6 @@ DcdnClient::DescribeDcdnDomainTrafficDataOutcomeCallable DcdnClient::describeDcd return task->get_future(); } -DcdnClient::RefreshDcdnObjectCachesOutcome DcdnClient::refreshDcdnObjectCaches(const RefreshDcdnObjectCachesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RefreshDcdnObjectCachesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RefreshDcdnObjectCachesOutcome(RefreshDcdnObjectCachesResult(outcome.result())); - else - return RefreshDcdnObjectCachesOutcome(outcome.error()); -} - -void DcdnClient::refreshDcdnObjectCachesAsync(const RefreshDcdnObjectCachesRequest& request, const RefreshDcdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, refreshDcdnObjectCaches(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::RefreshDcdnObjectCachesOutcomeCallable DcdnClient::refreshDcdnObjectCachesCallable(const RefreshDcdnObjectCachesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->refreshDcdnObjectCaches(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DcdnClient::DescribeDcdnTopDomainsByFlowOutcome DcdnClient::describeDcdnTopDomainsByFlow(const DescribeDcdnTopDomainsByFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,72 +663,108 @@ DcdnClient::DescribeDcdnTopDomainsByFlowOutcomeCallable DcdnClient::describeDcdn return task->get_future(); } -DcdnClient::DescribeDcdnDomainRegionDataOutcome DcdnClient::describeDcdnDomainRegionData(const DescribeDcdnDomainRegionDataRequest &request) const +DcdnClient::DescribeDcdnDomainRealTimeSrcTrafficDataOutcome DcdnClient::describeDcdnDomainRealTimeSrcTrafficData(const DescribeDcdnDomainRealTimeSrcTrafficDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainRegionDataOutcome(endpointOutcome.error()); + return DescribeDcdnDomainRealTimeSrcTrafficDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDcdnDomainRegionDataOutcome(DescribeDcdnDomainRegionDataResult(outcome.result())); + return DescribeDcdnDomainRealTimeSrcTrafficDataOutcome(DescribeDcdnDomainRealTimeSrcTrafficDataResult(outcome.result())); else - return DescribeDcdnDomainRegionDataOutcome(outcome.error()); + return DescribeDcdnDomainRealTimeSrcTrafficDataOutcome(outcome.error()); } -void DcdnClient::describeDcdnDomainRegionDataAsync(const DescribeDcdnDomainRegionDataRequest& request, const DescribeDcdnDomainRegionDataAsyncHandler& handler, const std::shared_ptr& context) const +void DcdnClient::describeDcdnDomainRealTimeSrcTrafficDataAsync(const DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDcdnDomainRegionData(request), context); + handler(this, request, describeDcdnDomainRealTimeSrcTrafficData(request), context); }; asyncExecute(new Runnable(fn)); } -DcdnClient::DescribeDcdnDomainRegionDataOutcomeCallable DcdnClient::describeDcdnDomainRegionDataCallable(const DescribeDcdnDomainRegionDataRequest &request) const +DcdnClient::DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeSrcTrafficDataCallable(const DescribeDcdnDomainRealTimeSrcTrafficDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDcdnDomainRegionData(request); + return this->describeDcdnDomainRealTimeSrcTrafficData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -DcdnClient::DescribeUserDcdnStatusOutcome DcdnClient::describeUserDcdnStatus(const DescribeUserDcdnStatusRequest &request) const +DcdnClient::DescribeDcdnDomainRealTimeByteHitRateDataOutcome DcdnClient::describeDcdnDomainRealTimeByteHitRateData(const DescribeDcdnDomainRealTimeByteHitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeUserDcdnStatusOutcome(endpointOutcome.error()); + return DescribeDcdnDomainRealTimeByteHitRateDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeUserDcdnStatusOutcome(DescribeUserDcdnStatusResult(outcome.result())); + return DescribeDcdnDomainRealTimeByteHitRateDataOutcome(DescribeDcdnDomainRealTimeByteHitRateDataResult(outcome.result())); else - return DescribeUserDcdnStatusOutcome(outcome.error()); + return DescribeDcdnDomainRealTimeByteHitRateDataOutcome(outcome.error()); } -void DcdnClient::describeUserDcdnStatusAsync(const DescribeUserDcdnStatusRequest& request, const DescribeUserDcdnStatusAsyncHandler& handler, const std::shared_ptr& context) const +void DcdnClient::describeDcdnDomainRealTimeByteHitRateDataAsync(const DescribeDcdnDomainRealTimeByteHitRateDataRequest& request, const DescribeDcdnDomainRealTimeByteHitRateDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeUserDcdnStatus(request), context); + handler(this, request, describeDcdnDomainRealTimeByteHitRateData(request), context); }; asyncExecute(new Runnable(fn)); } -DcdnClient::DescribeUserDcdnStatusOutcomeCallable DcdnClient::describeUserDcdnStatusCallable(const DescribeUserDcdnStatusRequest &request) const +DcdnClient::DescribeDcdnDomainRealTimeByteHitRateDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeByteHitRateDataCallable(const DescribeDcdnDomainRealTimeByteHitRateDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeUserDcdnStatus(request); + return this->describeDcdnDomainRealTimeByteHitRateData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainPvDataOutcome DcdnClient::describeDcdnDomainPvData(const DescribeDcdnDomainPvDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainPvDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainPvDataOutcome(DescribeDcdnDomainPvDataResult(outcome.result())); + else + return DescribeDcdnDomainPvDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainPvDataAsync(const DescribeDcdnDomainPvDataRequest& request, const DescribeDcdnDomainPvDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainPvData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainPvDataOutcomeCallable DcdnClient::describeDcdnDomainPvDataCallable(const DescribeDcdnDomainPvDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainPvData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1131,6 +843,1158 @@ DcdnClient::DescribeDcdnDomainIspDataOutcomeCallable DcdnClient::describeDcdnDom return task->get_future(); } +DcdnClient::DescribeDcdnDomainWebsocketHttpCodeDataOutcome DcdnClient::describeDcdnDomainWebsocketHttpCodeData(const DescribeDcdnDomainWebsocketHttpCodeDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainWebsocketHttpCodeDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainWebsocketHttpCodeDataOutcome(DescribeDcdnDomainWebsocketHttpCodeDataResult(outcome.result())); + else + return DescribeDcdnDomainWebsocketHttpCodeDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainWebsocketHttpCodeDataAsync(const DescribeDcdnDomainWebsocketHttpCodeDataRequest& request, const DescribeDcdnDomainWebsocketHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainWebsocketHttpCodeData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainWebsocketHttpCodeDataOutcomeCallable DcdnClient::describeDcdnDomainWebsocketHttpCodeDataCallable(const DescribeDcdnDomainWebsocketHttpCodeDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainWebsocketHttpCodeData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainRealTimeBpsDataOutcome DcdnClient::describeDcdnDomainRealTimeBpsData(const DescribeDcdnDomainRealTimeBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainRealTimeBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainRealTimeBpsDataOutcome(DescribeDcdnDomainRealTimeBpsDataResult(outcome.result())); + else + return DescribeDcdnDomainRealTimeBpsDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainRealTimeBpsDataAsync(const DescribeDcdnDomainRealTimeBpsDataRequest& request, const DescribeDcdnDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainRealTimeBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainRealTimeBpsDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeBpsDataCallable(const DescribeDcdnDomainRealTimeBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainRealTimeBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::ModifyDCdnDomainSchdmByPropertyOutcome DcdnClient::modifyDCdnDomainSchdmByProperty(const ModifyDCdnDomainSchdmByPropertyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDCdnDomainSchdmByPropertyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDCdnDomainSchdmByPropertyOutcome(ModifyDCdnDomainSchdmByPropertyResult(outcome.result())); + else + return ModifyDCdnDomainSchdmByPropertyOutcome(outcome.error()); +} + +void DcdnClient::modifyDCdnDomainSchdmByPropertyAsync(const ModifyDCdnDomainSchdmByPropertyRequest& request, const ModifyDCdnDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDCdnDomainSchdmByProperty(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::ModifyDCdnDomainSchdmByPropertyOutcomeCallable DcdnClient::modifyDCdnDomainSchdmByPropertyCallable(const ModifyDCdnDomainSchdmByPropertyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDCdnDomainSchdmByProperty(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainCnameOutcome DcdnClient::describeDcdnDomainCname(const DescribeDcdnDomainCnameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainCnameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainCnameOutcome(DescribeDcdnDomainCnameResult(outcome.result())); + else + return DescribeDcdnDomainCnameOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainCnameAsync(const DescribeDcdnDomainCnameRequest& request, const DescribeDcdnDomainCnameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainCname(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainCnameOutcomeCallable DcdnClient::describeDcdnDomainCnameCallable(const DescribeDcdnDomainCnameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainCname(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainTopReferVisitOutcome DcdnClient::describeDcdnDomainTopReferVisit(const DescribeDcdnDomainTopReferVisitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainTopReferVisitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainTopReferVisitOutcome(DescribeDcdnDomainTopReferVisitResult(outcome.result())); + else + return DescribeDcdnDomainTopReferVisitOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainTopReferVisitAsync(const DescribeDcdnDomainTopReferVisitRequest& request, const DescribeDcdnDomainTopReferVisitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainTopReferVisit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainTopReferVisitOutcomeCallable DcdnClient::describeDcdnDomainTopReferVisitCallable(const DescribeDcdnDomainTopReferVisitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainTopReferVisit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::StopDcdnDomainOutcome DcdnClient::stopDcdnDomain(const StopDcdnDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopDcdnDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopDcdnDomainOutcome(StopDcdnDomainResult(outcome.result())); + else + return StopDcdnDomainOutcome(outcome.error()); +} + +void DcdnClient::stopDcdnDomainAsync(const StopDcdnDomainRequest& request, const StopDcdnDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopDcdnDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::StopDcdnDomainOutcomeCallable DcdnClient::stopDcdnDomainCallable(const StopDcdnDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopDcdnDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::UpdateDcdnIpaDomainOutcome DcdnClient::updateDcdnIpaDomain(const UpdateDcdnIpaDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDcdnIpaDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDcdnIpaDomainOutcome(UpdateDcdnIpaDomainResult(outcome.result())); + else + return UpdateDcdnIpaDomainOutcome(outcome.error()); +} + +void DcdnClient::updateDcdnIpaDomainAsync(const UpdateDcdnIpaDomainRequest& request, const UpdateDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDcdnIpaDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::UpdateDcdnIpaDomainOutcomeCallable DcdnClient::updateDcdnIpaDomainCallable(const UpdateDcdnIpaDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDcdnIpaDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnIpaServiceOutcome DcdnClient::describeDcdnIpaService(const DescribeDcdnIpaServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnIpaServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnIpaServiceOutcome(DescribeDcdnIpaServiceResult(outcome.result())); + else + return DescribeDcdnIpaServiceOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnIpaServiceAsync(const DescribeDcdnIpaServiceRequest& request, const DescribeDcdnIpaServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnIpaService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnIpaServiceOutcomeCallable DcdnClient::describeDcdnIpaServiceCallable(const DescribeDcdnIpaServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnIpaService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::BatchSetDcdnDomainConfigsOutcome DcdnClient::batchSetDcdnDomainConfigs(const BatchSetDcdnDomainConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchSetDcdnDomainConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchSetDcdnDomainConfigsOutcome(BatchSetDcdnDomainConfigsResult(outcome.result())); + else + return BatchSetDcdnDomainConfigsOutcome(outcome.error()); +} + +void DcdnClient::batchSetDcdnDomainConfigsAsync(const BatchSetDcdnDomainConfigsRequest& request, const BatchSetDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchSetDcdnDomainConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::BatchSetDcdnDomainConfigsOutcomeCallable DcdnClient::batchSetDcdnDomainConfigsCallable(const BatchSetDcdnDomainConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchSetDcdnDomainConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainRealTimeHttpCodeDataOutcome DcdnClient::describeDcdnDomainRealTimeHttpCodeData(const DescribeDcdnDomainRealTimeHttpCodeDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainRealTimeHttpCodeDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainRealTimeHttpCodeDataOutcome(DescribeDcdnDomainRealTimeHttpCodeDataResult(outcome.result())); + else + return DescribeDcdnDomainRealTimeHttpCodeDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainRealTimeHttpCodeDataAsync(const DescribeDcdnDomainRealTimeHttpCodeDataRequest& request, const DescribeDcdnDomainRealTimeHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainRealTimeHttpCodeData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainRealTimeHttpCodeDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeHttpCodeDataCallable(const DescribeDcdnDomainRealTimeHttpCodeDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainRealTimeHttpCodeData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainLogOutcome DcdnClient::describeDcdnDomainLog(const DescribeDcdnDomainLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainLogOutcome(DescribeDcdnDomainLogResult(outcome.result())); + else + return DescribeDcdnDomainLogOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainLogAsync(const DescribeDcdnDomainLogRequest& request, const DescribeDcdnDomainLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainLogOutcomeCallable DcdnClient::describeDcdnDomainLogCallable(const DescribeDcdnDomainLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainUvDataOutcome DcdnClient::describeDcdnDomainUvData(const DescribeDcdnDomainUvDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainUvDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainUvDataOutcome(DescribeDcdnDomainUvDataResult(outcome.result())); + else + return DescribeDcdnDomainUvDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainUvDataAsync(const DescribeDcdnDomainUvDataRequest& request, const DescribeDcdnDomainUvDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainUvData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainUvDataOutcomeCallable DcdnClient::describeDcdnDomainUvDataCallable(const DescribeDcdnDomainUvDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainUvData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::BatchSetDcdnIpaDomainConfigsOutcome DcdnClient::batchSetDcdnIpaDomainConfigs(const BatchSetDcdnIpaDomainConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchSetDcdnIpaDomainConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchSetDcdnIpaDomainConfigsOutcome(BatchSetDcdnIpaDomainConfigsResult(outcome.result())); + else + return BatchSetDcdnIpaDomainConfigsOutcome(outcome.error()); +} + +void DcdnClient::batchSetDcdnIpaDomainConfigsAsync(const BatchSetDcdnIpaDomainConfigsRequest& request, const BatchSetDcdnIpaDomainConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchSetDcdnIpaDomainConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::BatchSetDcdnIpaDomainConfigsOutcomeCallable DcdnClient::batchSetDcdnIpaDomainConfigsCallable(const BatchSetDcdnIpaDomainConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchSetDcdnIpaDomainConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnUserQuotaOutcome DcdnClient::describeDcdnUserQuota(const DescribeDcdnUserQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnUserQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnUserQuotaOutcome(DescribeDcdnUserQuotaResult(outcome.result())); + else + return DescribeDcdnUserQuotaOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnUserQuotaAsync(const DescribeDcdnUserQuotaRequest& request, const DescribeDcdnUserQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnUserQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnUserQuotaOutcomeCallable DcdnClient::describeDcdnUserQuotaCallable(const DescribeDcdnUserQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnUserQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainCertificateInfoOutcome DcdnClient::describeDcdnDomainCertificateInfo(const DescribeDcdnDomainCertificateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainCertificateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainCertificateInfoOutcome(DescribeDcdnDomainCertificateInfoResult(outcome.result())); + else + return DescribeDcdnDomainCertificateInfoOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainCertificateInfoAsync(const DescribeDcdnDomainCertificateInfoRequest& request, const DescribeDcdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainCertificateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainCertificateInfoOutcomeCallable DcdnClient::describeDcdnDomainCertificateInfoCallable(const DescribeDcdnDomainCertificateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainCertificateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainIpaTrafficDataOutcome DcdnClient::describeDcdnDomainIpaTrafficData(const DescribeDcdnDomainIpaTrafficDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainIpaTrafficDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainIpaTrafficDataOutcome(DescribeDcdnDomainIpaTrafficDataResult(outcome.result())); + else + return DescribeDcdnDomainIpaTrafficDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainIpaTrafficDataAsync(const DescribeDcdnDomainIpaTrafficDataRequest& request, const DescribeDcdnDomainIpaTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainIpaTrafficData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainIpaTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainIpaTrafficDataCallable(const DescribeDcdnDomainIpaTrafficDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainIpaTrafficData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::StartDcdnIpaDomainOutcome DcdnClient::startDcdnIpaDomain(const StartDcdnIpaDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartDcdnIpaDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartDcdnIpaDomainOutcome(StartDcdnIpaDomainResult(outcome.result())); + else + return StartDcdnIpaDomainOutcome(outcome.error()); +} + +void DcdnClient::startDcdnIpaDomainAsync(const StartDcdnIpaDomainRequest& request, const StartDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startDcdnIpaDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::StartDcdnIpaDomainOutcomeCallable DcdnClient::startDcdnIpaDomainCallable(const StartDcdnIpaDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startDcdnIpaDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnServiceOutcome DcdnClient::describeDcdnService(const DescribeDcdnServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnServiceOutcome(DescribeDcdnServiceResult(outcome.result())); + else + return DescribeDcdnServiceOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnServiceAsync(const DescribeDcdnServiceRequest& request, const DescribeDcdnServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnServiceOutcomeCallable DcdnClient::describeDcdnServiceCallable(const DescribeDcdnServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainRealTimeReqHitRateDataOutcome DcdnClient::describeDcdnDomainRealTimeReqHitRateData(const DescribeDcdnDomainRealTimeReqHitRateDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainRealTimeReqHitRateDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainRealTimeReqHitRateDataOutcome(DescribeDcdnDomainRealTimeReqHitRateDataResult(outcome.result())); + else + return DescribeDcdnDomainRealTimeReqHitRateDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainRealTimeReqHitRateDataAsync(const DescribeDcdnDomainRealTimeReqHitRateDataRequest& request, const DescribeDcdnDomainRealTimeReqHitRateDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainRealTimeReqHitRateData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainRealTimeReqHitRateDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeReqHitRateDataCallable(const DescribeDcdnDomainRealTimeReqHitRateDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainRealTimeReqHitRateData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::AddDcdnIpaDomainOutcome DcdnClient::addDcdnIpaDomain(const AddDcdnIpaDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddDcdnIpaDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddDcdnIpaDomainOutcome(AddDcdnIpaDomainResult(outcome.result())); + else + return AddDcdnIpaDomainOutcome(outcome.error()); +} + +void DcdnClient::addDcdnIpaDomainAsync(const AddDcdnIpaDomainRequest& request, const AddDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addDcdnIpaDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::AddDcdnIpaDomainOutcomeCallable DcdnClient::addDcdnIpaDomainCallable(const AddDcdnIpaDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addDcdnIpaDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainWebsocketTrafficDataOutcome DcdnClient::describeDcdnDomainWebsocketTrafficData(const DescribeDcdnDomainWebsocketTrafficDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainWebsocketTrafficDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainWebsocketTrafficDataOutcome(DescribeDcdnDomainWebsocketTrafficDataResult(outcome.result())); + else + return DescribeDcdnDomainWebsocketTrafficDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainWebsocketTrafficDataAsync(const DescribeDcdnDomainWebsocketTrafficDataRequest& request, const DescribeDcdnDomainWebsocketTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainWebsocketTrafficData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainWebsocketTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainWebsocketTrafficDataCallable(const DescribeDcdnDomainWebsocketTrafficDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainWebsocketTrafficData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainHitRateDataOutcome DcdnClient::describeDcdnDomainHitRateData(const DescribeDcdnDomainHitRateDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainHitRateDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainHitRateDataOutcome(DescribeDcdnDomainHitRateDataResult(outcome.result())); + else + return DescribeDcdnDomainHitRateDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainHitRateDataAsync(const DescribeDcdnDomainHitRateDataRequest& request, const DescribeDcdnDomainHitRateDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainHitRateData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainHitRateDataOutcomeCallable DcdnClient::describeDcdnDomainHitRateDataCallable(const DescribeDcdnDomainHitRateDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainHitRateData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainBpsDataOutcome DcdnClient::describeDcdnDomainBpsData(const DescribeDcdnDomainBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainBpsDataOutcome(DescribeDcdnDomainBpsDataResult(outcome.result())); + else + return DescribeDcdnDomainBpsDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainBpsDataAsync(const DescribeDcdnDomainBpsDataRequest& request, const DescribeDcdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainBpsDataOutcomeCallable DcdnClient::describeDcdnDomainBpsDataCallable(const DescribeDcdnDomainBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DeleteDcdnIpaDomainOutcome DcdnClient::deleteDcdnIpaDomain(const DeleteDcdnIpaDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDcdnIpaDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDcdnIpaDomainOutcome(DeleteDcdnIpaDomainResult(outcome.result())); + else + return DeleteDcdnIpaDomainOutcome(outcome.error()); +} + +void DcdnClient::deleteDcdnIpaDomainAsync(const DeleteDcdnIpaDomainRequest& request, const DeleteDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDcdnIpaDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DeleteDcdnIpaDomainOutcomeCallable DcdnClient::deleteDcdnIpaDomainCallable(const DeleteDcdnIpaDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDcdnIpaDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnCertificateDetailOutcome DcdnClient::describeDcdnCertificateDetail(const DescribeDcdnCertificateDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnCertificateDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnCertificateDetailOutcome(DescribeDcdnCertificateDetailResult(outcome.result())); + else + return DescribeDcdnCertificateDetailOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnCertificateDetailAsync(const DescribeDcdnCertificateDetailRequest& request, const DescribeDcdnCertificateDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnCertificateDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnCertificateDetailOutcomeCallable DcdnClient::describeDcdnCertificateDetailCallable(const DescribeDcdnCertificateDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnCertificateDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainOriginTrafficDataOutcome DcdnClient::describeDcdnDomainOriginTrafficData(const DescribeDcdnDomainOriginTrafficDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainOriginTrafficDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainOriginTrafficDataOutcome(DescribeDcdnDomainOriginTrafficDataResult(outcome.result())); + else + return DescribeDcdnDomainOriginTrafficDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainOriginTrafficDataAsync(const DescribeDcdnDomainOriginTrafficDataRequest& request, const DescribeDcdnDomainOriginTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainOriginTrafficData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainOriginTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainOriginTrafficDataCallable(const DescribeDcdnDomainOriginTrafficDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainOriginTrafficData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainRealTimeQpsDataOutcome DcdnClient::describeDcdnDomainRealTimeQpsData(const DescribeDcdnDomainRealTimeQpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainRealTimeQpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainRealTimeQpsDataOutcome(DescribeDcdnDomainRealTimeQpsDataResult(outcome.result())); + else + return DescribeDcdnDomainRealTimeQpsDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainRealTimeQpsDataAsync(const DescribeDcdnDomainRealTimeQpsDataRequest& request, const DescribeDcdnDomainRealTimeQpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainRealTimeQpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainRealTimeQpsDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeQpsDataCallable(const DescribeDcdnDomainRealTimeQpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainRealTimeQpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::RefreshDcdnObjectCachesOutcome DcdnClient::refreshDcdnObjectCaches(const RefreshDcdnObjectCachesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshDcdnObjectCachesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshDcdnObjectCachesOutcome(RefreshDcdnObjectCachesResult(outcome.result())); + else + return RefreshDcdnObjectCachesOutcome(outcome.error()); +} + +void DcdnClient::refreshDcdnObjectCachesAsync(const RefreshDcdnObjectCachesRequest& request, const RefreshDcdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshDcdnObjectCaches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::RefreshDcdnObjectCachesOutcomeCallable DcdnClient::refreshDcdnObjectCachesCallable(const RefreshDcdnObjectCachesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshDcdnObjectCaches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::StopDcdnIpaDomainOutcome DcdnClient::stopDcdnIpaDomain(const StopDcdnIpaDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopDcdnIpaDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopDcdnIpaDomainOutcome(StopDcdnIpaDomainResult(outcome.result())); + else + return StopDcdnIpaDomainOutcome(outcome.error()); +} + +void DcdnClient::stopDcdnIpaDomainAsync(const StopDcdnIpaDomainRequest& request, const StopDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopDcdnIpaDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::StopDcdnIpaDomainOutcomeCallable DcdnClient::stopDcdnIpaDomainCallable(const StopDcdnIpaDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopDcdnIpaDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeUserDcdnStatusOutcome DcdnClient::describeUserDcdnStatus(const DescribeUserDcdnStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserDcdnStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserDcdnStatusOutcome(DescribeUserDcdnStatusResult(outcome.result())); + else + return DescribeUserDcdnStatusOutcome(outcome.error()); +} + +void DcdnClient::describeUserDcdnStatusAsync(const DescribeUserDcdnStatusRequest& request, const DescribeUserDcdnStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserDcdnStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeUserDcdnStatusOutcomeCallable DcdnClient::describeUserDcdnStatusCallable(const DescribeUserDcdnStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserDcdnStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainRegionDataOutcome DcdnClient::describeDcdnDomainRegionData(const DescribeDcdnDomainRegionDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainRegionDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainRegionDataOutcome(DescribeDcdnDomainRegionDataResult(outcome.result())); + else + return DescribeDcdnDomainRegionDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainRegionDataAsync(const DescribeDcdnDomainRegionDataRequest& request, const DescribeDcdnDomainRegionDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainRegionData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainRegionDataOutcomeCallable DcdnClient::describeDcdnDomainRegionDataCallable(const DescribeDcdnDomainRegionDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainRegionData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeDcdnDomainIpaBpsDataOutcome DcdnClient::describeDcdnDomainIpaBpsData(const DescribeDcdnDomainIpaBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnDomainIpaBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnDomainIpaBpsDataOutcome(DescribeDcdnDomainIpaBpsDataResult(outcome.result())); + else + return DescribeDcdnDomainIpaBpsDataOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnDomainIpaBpsDataAsync(const DescribeDcdnDomainIpaBpsDataRequest& request, const DescribeDcdnDomainIpaBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnDomainIpaBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnDomainIpaBpsDataOutcomeCallable DcdnClient::describeDcdnDomainIpaBpsDataCallable(const DescribeDcdnDomainIpaBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnDomainIpaBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::StartDcdnDomainOutcome DcdnClient::startDcdnDomain(const StartDcdnDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,36 +2067,72 @@ DcdnClient::DescribeDcdnUserDomainsOutcomeCallable DcdnClient::describeDcdnUserD return task->get_future(); } -DcdnClient::DescribeDcdnDomainWebsocketHttpCodeDataOutcome DcdnClient::describeDcdnDomainWebsocketHttpCodeData(const DescribeDcdnDomainWebsocketHttpCodeDataRequest &request) const +DcdnClient::DescribeDcdnIpaUserDomainsOutcome DcdnClient::describeDcdnIpaUserDomains(const DescribeDcdnIpaUserDomainsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainWebsocketHttpCodeDataOutcome(endpointOutcome.error()); + return DescribeDcdnIpaUserDomainsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDcdnDomainWebsocketHttpCodeDataOutcome(DescribeDcdnDomainWebsocketHttpCodeDataResult(outcome.result())); + return DescribeDcdnIpaUserDomainsOutcome(DescribeDcdnIpaUserDomainsResult(outcome.result())); else - return DescribeDcdnDomainWebsocketHttpCodeDataOutcome(outcome.error()); + return DescribeDcdnIpaUserDomainsOutcome(outcome.error()); } -void DcdnClient::describeDcdnDomainWebsocketHttpCodeDataAsync(const DescribeDcdnDomainWebsocketHttpCodeDataRequest& request, const DescribeDcdnDomainWebsocketHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context) const +void DcdnClient::describeDcdnIpaUserDomainsAsync(const DescribeDcdnIpaUserDomainsRequest& request, const DescribeDcdnIpaUserDomainsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDcdnDomainWebsocketHttpCodeData(request), context); + handler(this, request, describeDcdnIpaUserDomains(request), context); }; asyncExecute(new Runnable(fn)); } -DcdnClient::DescribeDcdnDomainWebsocketHttpCodeDataOutcomeCallable DcdnClient::describeDcdnDomainWebsocketHttpCodeDataCallable(const DescribeDcdnDomainWebsocketHttpCodeDataRequest &request) const +DcdnClient::DescribeDcdnIpaUserDomainsOutcomeCallable DcdnClient::describeDcdnIpaUserDomainsCallable(const DescribeDcdnIpaUserDomainsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDcdnDomainWebsocketHttpCodeData(request); + return this->describeDcdnIpaUserDomains(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DcdnClient::DescribeUserDcdnIpaStatusOutcome DcdnClient::describeUserDcdnIpaStatus(const DescribeUserDcdnIpaStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserDcdnIpaStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserDcdnIpaStatusOutcome(DescribeUserDcdnIpaStatusResult(outcome.result())); + else + return DescribeUserDcdnIpaStatusOutcome(outcome.error()); +} + +void DcdnClient::describeUserDcdnIpaStatusAsync(const DescribeUserDcdnIpaStatusRequest& request, const DescribeUserDcdnIpaStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserDcdnIpaStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeUserDcdnIpaStatusOutcomeCallable DcdnClient::describeUserDcdnIpaStatusCallable(const DescribeUserDcdnIpaStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserDcdnIpaStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1275,6 +2175,42 @@ DcdnClient::DescribeDcdnDomainHttpCodeDataOutcomeCallable DcdnClient::describeDc return task->get_future(); } +DcdnClient::DescribeDcdnIpaDomainDetailOutcome DcdnClient::describeDcdnIpaDomainDetail(const DescribeDcdnIpaDomainDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnIpaDomainDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnIpaDomainDetailOutcome(DescribeDcdnIpaDomainDetailResult(outcome.result())); + else + return DescribeDcdnIpaDomainDetailOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnIpaDomainDetailAsync(const DescribeDcdnIpaDomainDetailRequest& request, const DescribeDcdnIpaDomainDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnIpaDomainDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnIpaDomainDetailOutcomeCallable DcdnClient::describeDcdnIpaDomainDetailCallable(const DescribeDcdnIpaDomainDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnIpaDomainDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::AddDcdnDomainOutcome DcdnClient::addDcdnDomain(const AddDcdnDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,111 +2283,3 @@ DcdnClient::PreloadDcdnObjectCachesOutcomeCallable DcdnClient::preloadDcdnObject return task->get_future(); } -DcdnClient::DescribeDcdnDomainTopReferVisitOutcome DcdnClient::describeDcdnDomainTopReferVisit(const DescribeDcdnDomainTopReferVisitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainTopReferVisitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnDomainTopReferVisitOutcome(DescribeDcdnDomainTopReferVisitResult(outcome.result())); - else - return DescribeDcdnDomainTopReferVisitOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnDomainTopReferVisitAsync(const DescribeDcdnDomainTopReferVisitRequest& request, const DescribeDcdnDomainTopReferVisitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnDomainTopReferVisit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnDomainTopReferVisitOutcomeCallable DcdnClient::describeDcdnDomainTopReferVisitCallable(const DescribeDcdnDomainTopReferVisitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnDomainTopReferVisit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DcdnClient::DescribeDcdnDomainCnameOutcome DcdnClient::describeDcdnDomainCname(const DescribeDcdnDomainCnameRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDcdnDomainCnameOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDcdnDomainCnameOutcome(DescribeDcdnDomainCnameResult(outcome.result())); - else - return DescribeDcdnDomainCnameOutcome(outcome.error()); -} - -void DcdnClient::describeDcdnDomainCnameAsync(const DescribeDcdnDomainCnameRequest& request, const DescribeDcdnDomainCnameAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDcdnDomainCname(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::DescribeDcdnDomainCnameOutcomeCallable DcdnClient::describeDcdnDomainCnameCallable(const DescribeDcdnDomainCnameRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDcdnDomainCname(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DcdnClient::StopDcdnDomainOutcome DcdnClient::stopDcdnDomain(const StopDcdnDomainRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopDcdnDomainOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopDcdnDomainOutcome(StopDcdnDomainResult(outcome.result())); - else - return StopDcdnDomainOutcome(outcome.error()); -} - -void DcdnClient::stopDcdnDomainAsync(const StopDcdnDomainRequest& request, const StopDcdnDomainAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopDcdnDomain(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DcdnClient::StopDcdnDomainOutcomeCallable DcdnClient::stopDcdnDomainCallable(const StopDcdnDomainRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopDcdnDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - diff --git a/dcdn/src/model/AddDcdnDomainRequest.cc b/dcdn/src/model/AddDcdnDomainRequest.cc index 81e86d4fd..894e8ffbe 100644 --- a/dcdn/src/model/AddDcdnDomainRequest.cc +++ b/dcdn/src/model/AddDcdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string AddDcdnDomainRequest::getTopLevelDomain()const void AddDcdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) { topLevelDomain_ = topLevelDomain; - setParameter("TopLevelDomain", topLevelDomain); + setCoreParameter("TopLevelDomain", topLevelDomain); } std::string AddDcdnDomainRequest::getResourceGroupId()const @@ -44,7 +44,7 @@ std::string AddDcdnDomainRequest::getResourceGroupId()const void AddDcdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string AddDcdnDomainRequest::getSources()const @@ -55,7 +55,7 @@ std::string AddDcdnDomainRequest::getSources()const void AddDcdnDomainRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string AddDcdnDomainRequest::getSecurityToken()const @@ -66,7 +66,7 @@ std::string AddDcdnDomainRequest::getSecurityToken()const void AddDcdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddDcdnDomainRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string AddDcdnDomainRequest::getOwnerAccount()const void AddDcdnDomainRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddDcdnDomainRequest::getScope()const @@ -88,7 +88,7 @@ std::string AddDcdnDomainRequest::getScope()const void AddDcdnDomainRequest::setScope(const std::string& scope) { scope_ = scope; - setParameter("Scope", scope); + setCoreParameter("Scope", scope); } std::string AddDcdnDomainRequest::getDomainName()const @@ -99,7 +99,7 @@ std::string AddDcdnDomainRequest::getDomainName()const void AddDcdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long AddDcdnDomainRequest::getOwnerId()const @@ -110,7 +110,7 @@ long AddDcdnDomainRequest::getOwnerId()const void AddDcdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddDcdnDomainRequest::getCheckUrl()const @@ -121,17 +121,6 @@ std::string AddDcdnDomainRequest::getCheckUrl()const void AddDcdnDomainRequest::setCheckUrl(const std::string& checkUrl) { checkUrl_ = checkUrl; - setParameter("CheckUrl", checkUrl); -} - -std::string AddDcdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddDcdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("CheckUrl", checkUrl); } diff --git a/dcdn/src/model/AddDcdnDomainResult.cc b/dcdn/src/model/AddDcdnDomainResult.cc index 9ecfef0a8..4711212c7 100644 --- a/dcdn/src/model/AddDcdnDomainResult.cc +++ b/dcdn/src/model/AddDcdnDomainResult.cc @@ -35,10 +35,13 @@ AddDcdnDomainResult::~AddDcdnDomainResult() void AddDcdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/AddDcdnIpaDomainRequest.cc b/dcdn/src/model/AddDcdnIpaDomainRequest.cc new file mode 100644 index 000000000..926adb1a0 --- /dev/null +++ b/dcdn/src/model/AddDcdnIpaDomainRequest.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::Dcdn::Model::AddDcdnIpaDomainRequest; + +AddDcdnIpaDomainRequest::AddDcdnIpaDomainRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "AddDcdnIpaDomain") +{} + +AddDcdnIpaDomainRequest::~AddDcdnIpaDomainRequest() +{} + +std::string AddDcdnIpaDomainRequest::getTopLevelDomain()const +{ + return topLevelDomain_; +} + +void AddDcdnIpaDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) +{ + topLevelDomain_ = topLevelDomain; + setCoreParameter("TopLevelDomain", topLevelDomain); +} + +std::string AddDcdnIpaDomainRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AddDcdnIpaDomainRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string AddDcdnIpaDomainRequest::getSources()const +{ + return sources_; +} + +void AddDcdnIpaDomainRequest::setSources(const std::string& sources) +{ + sources_ = sources; + setCoreParameter("Sources", sources); +} + +std::string AddDcdnIpaDomainRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AddDcdnIpaDomainRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string AddDcdnIpaDomainRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddDcdnIpaDomainRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AddDcdnIpaDomainRequest::getScope()const +{ + return scope_; +} + +void AddDcdnIpaDomainRequest::setScope(const std::string& scope) +{ + scope_ = scope; + setCoreParameter("Scope", scope); +} + +std::string AddDcdnIpaDomainRequest::getDomainName()const +{ + return domainName_; +} + +void AddDcdnIpaDomainRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long AddDcdnIpaDomainRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddDcdnIpaDomainRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddDcdnIpaDomainRequest::getCheckUrl()const +{ + return checkUrl_; +} + +void AddDcdnIpaDomainRequest::setCheckUrl(const std::string& checkUrl) +{ + checkUrl_ = checkUrl; + setCoreParameter("CheckUrl", checkUrl); +} + diff --git a/dcdn/src/model/AddDcdnIpaDomainResult.cc b/dcdn/src/model/AddDcdnIpaDomainResult.cc new file mode 100644 index 000000000..8477fd0c2 --- /dev/null +++ b/dcdn/src/model/AddDcdnIpaDomainResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +AddDcdnIpaDomainResult::AddDcdnIpaDomainResult() : + ServiceResult() +{} + +AddDcdnIpaDomainResult::AddDcdnIpaDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddDcdnIpaDomainResult::~AddDcdnIpaDomainResult() +{} + +void AddDcdnIpaDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/BatchDeleteDcdnDomainConfigsRequest.cc b/dcdn/src/model/BatchDeleteDcdnDomainConfigsRequest.cc index 02d08cdde..6d0caee25 100644 --- a/dcdn/src/model/BatchDeleteDcdnDomainConfigsRequest.cc +++ b/dcdn/src/model/BatchDeleteDcdnDomainConfigsRequest.cc @@ -33,7 +33,7 @@ std::string BatchDeleteDcdnDomainConfigsRequest::getFunctionNames()const void BatchDeleteDcdnDomainConfigsRequest::setFunctionNames(const std::string& functionNames) { functionNames_ = functionNames; - setParameter("FunctionNames", functionNames); + setCoreParameter("FunctionNames", functionNames); } std::string BatchDeleteDcdnDomainConfigsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string BatchDeleteDcdnDomainConfigsRequest::getSecurityToken()const void BatchDeleteDcdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string BatchDeleteDcdnDomainConfigsRequest::getDomainNames()const @@ -55,7 +55,7 @@ std::string BatchDeleteDcdnDomainConfigsRequest::getDomainNames()const void BatchDeleteDcdnDomainConfigsRequest::setDomainNames(const std::string& domainNames) { domainNames_ = domainNames; - setParameter("DomainNames", domainNames); + setCoreParameter("DomainNames", domainNames); } std::string BatchDeleteDcdnDomainConfigsRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string BatchDeleteDcdnDomainConfigsRequest::getOwnerAccount()const void BatchDeleteDcdnDomainConfigsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long BatchDeleteDcdnDomainConfigsRequest::getOwnerId()const @@ -77,17 +77,6 @@ long BatchDeleteDcdnDomainConfigsRequest::getOwnerId()const void BatchDeleteDcdnDomainConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string BatchDeleteDcdnDomainConfigsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void BatchDeleteDcdnDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/BatchDeleteDcdnDomainConfigsResult.cc b/dcdn/src/model/BatchDeleteDcdnDomainConfigsResult.cc index d13e2d4bd..f371bc75b 100644 --- a/dcdn/src/model/BatchDeleteDcdnDomainConfigsResult.cc +++ b/dcdn/src/model/BatchDeleteDcdnDomainConfigsResult.cc @@ -35,10 +35,13 @@ BatchDeleteDcdnDomainConfigsResult::~BatchDeleteDcdnDomainConfigsResult() void BatchDeleteDcdnDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/BatchSetDcdnDomainConfigsRequest.cc b/dcdn/src/model/BatchSetDcdnDomainConfigsRequest.cc index 7328b3e8e..8116c6f1a 100644 --- a/dcdn/src/model/BatchSetDcdnDomainConfigsRequest.cc +++ b/dcdn/src/model/BatchSetDcdnDomainConfigsRequest.cc @@ -33,7 +33,7 @@ std::string BatchSetDcdnDomainConfigsRequest::getFunctions()const void BatchSetDcdnDomainConfigsRequest::setFunctions(const std::string& functions) { functions_ = functions; - setParameter("Functions", functions); + setCoreParameter("Functions", functions); } std::string BatchSetDcdnDomainConfigsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string BatchSetDcdnDomainConfigsRequest::getSecurityToken()const void BatchSetDcdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string BatchSetDcdnDomainConfigsRequest::getDomainNames()const @@ -55,7 +55,7 @@ std::string BatchSetDcdnDomainConfigsRequest::getDomainNames()const void BatchSetDcdnDomainConfigsRequest::setDomainNames(const std::string& domainNames) { domainNames_ = domainNames; - setParameter("DomainNames", domainNames); + setCoreParameter("DomainNames", domainNames); } std::string BatchSetDcdnDomainConfigsRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string BatchSetDcdnDomainConfigsRequest::getOwnerAccount()const void BatchSetDcdnDomainConfigsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long BatchSetDcdnDomainConfigsRequest::getOwnerId()const @@ -77,17 +77,6 @@ long BatchSetDcdnDomainConfigsRequest::getOwnerId()const void BatchSetDcdnDomainConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string BatchSetDcdnDomainConfigsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void BatchSetDcdnDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/BatchSetDcdnDomainConfigsResult.cc b/dcdn/src/model/BatchSetDcdnDomainConfigsResult.cc index 40612af5b..1f573aaac 100644 --- a/dcdn/src/model/BatchSetDcdnDomainConfigsResult.cc +++ b/dcdn/src/model/BatchSetDcdnDomainConfigsResult.cc @@ -35,10 +35,13 @@ BatchSetDcdnDomainConfigsResult::~BatchSetDcdnDomainConfigsResult() void BatchSetDcdnDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/BatchSetDcdnIpaDomainConfigsRequest.cc b/dcdn/src/model/BatchSetDcdnIpaDomainConfigsRequest.cc new file mode 100644 index 000000000..99623945c --- /dev/null +++ b/dcdn/src/model/BatchSetDcdnIpaDomainConfigsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::BatchSetDcdnIpaDomainConfigsRequest; + +BatchSetDcdnIpaDomainConfigsRequest::BatchSetDcdnIpaDomainConfigsRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "BatchSetDcdnIpaDomainConfigs") +{} + +BatchSetDcdnIpaDomainConfigsRequest::~BatchSetDcdnIpaDomainConfigsRequest() +{} + +std::string BatchSetDcdnIpaDomainConfigsRequest::getFunctions()const +{ + return functions_; +} + +void BatchSetDcdnIpaDomainConfigsRequest::setFunctions(const std::string& functions) +{ + functions_ = functions; + setCoreParameter("Functions", functions); +} + +std::string BatchSetDcdnIpaDomainConfigsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void BatchSetDcdnIpaDomainConfigsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string BatchSetDcdnIpaDomainConfigsRequest::getDomainNames()const +{ + return domainNames_; +} + +void BatchSetDcdnIpaDomainConfigsRequest::setDomainNames(const std::string& domainNames) +{ + domainNames_ = domainNames; + setCoreParameter("DomainNames", domainNames); +} + +std::string BatchSetDcdnIpaDomainConfigsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void BatchSetDcdnIpaDomainConfigsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long BatchSetDcdnIpaDomainConfigsRequest::getOwnerId()const +{ + return ownerId_; +} + +void BatchSetDcdnIpaDomainConfigsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/BatchSetDcdnIpaDomainConfigsResult.cc b/dcdn/src/model/BatchSetDcdnIpaDomainConfigsResult.cc new file mode 100644 index 000000000..d65ed05c1 --- /dev/null +++ b/dcdn/src/model/BatchSetDcdnIpaDomainConfigsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +BatchSetDcdnIpaDomainConfigsResult::BatchSetDcdnIpaDomainConfigsResult() : + ServiceResult() +{} + +BatchSetDcdnIpaDomainConfigsResult::BatchSetDcdnIpaDomainConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchSetDcdnIpaDomainConfigsResult::~BatchSetDcdnIpaDomainConfigsResult() +{} + +void BatchSetDcdnIpaDomainConfigsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/DeleteDcdnDomainRequest.cc b/dcdn/src/model/DeleteDcdnDomainRequest.cc index 2b0df2eac..65db7dcde 100644 --- a/dcdn/src/model/DeleteDcdnDomainRequest.cc +++ b/dcdn/src/model/DeleteDcdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDcdnDomainRequest::getResourceGroupId()const void DeleteDcdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DeleteDcdnDomainRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DeleteDcdnDomainRequest::getSecurityToken()const void DeleteDcdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteDcdnDomainRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteDcdnDomainRequest::getOwnerAccount()const void DeleteDcdnDomainRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteDcdnDomainRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DeleteDcdnDomainRequest::getDomainName()const void DeleteDcdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteDcdnDomainRequest::getOwnerId()const @@ -77,17 +77,6 @@ long DeleteDcdnDomainRequest::getOwnerId()const void DeleteDcdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteDcdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteDcdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DeleteDcdnDomainResult.cc b/dcdn/src/model/DeleteDcdnDomainResult.cc index e3c781c89..bdbb14c34 100644 --- a/dcdn/src/model/DeleteDcdnDomainResult.cc +++ b/dcdn/src/model/DeleteDcdnDomainResult.cc @@ -35,10 +35,13 @@ DeleteDcdnDomainResult::~DeleteDcdnDomainResult() void DeleteDcdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/DeleteDcdnIpaDomainRequest.cc b/dcdn/src/model/DeleteDcdnIpaDomainRequest.cc new file mode 100644 index 000000000..e84435e3a --- /dev/null +++ b/dcdn/src/model/DeleteDcdnIpaDomainRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DeleteDcdnIpaDomainRequest; + +DeleteDcdnIpaDomainRequest::DeleteDcdnIpaDomainRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DeleteDcdnIpaDomain") +{} + +DeleteDcdnIpaDomainRequest::~DeleteDcdnIpaDomainRequest() +{} + +std::string DeleteDcdnIpaDomainRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DeleteDcdnIpaDomainRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string DeleteDcdnIpaDomainRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteDcdnIpaDomainRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteDcdnIpaDomainRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDcdnIpaDomainRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteDcdnIpaDomainRequest::getDomainName()const +{ + return domainName_; +} + +void DeleteDcdnIpaDomainRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long DeleteDcdnIpaDomainRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDcdnIpaDomainRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DeleteDcdnIpaDomainResult.cc b/dcdn/src/model/DeleteDcdnIpaDomainResult.cc new file mode 100644 index 000000000..63e8ae182 --- /dev/null +++ b/dcdn/src/model/DeleteDcdnIpaDomainResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DeleteDcdnIpaDomainResult::DeleteDcdnIpaDomainResult() : + ServiceResult() +{} + +DeleteDcdnIpaDomainResult::DeleteDcdnIpaDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDcdnIpaDomainResult::~DeleteDcdnIpaDomainResult() +{} + +void DeleteDcdnIpaDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/DescribeDcdnCertificateDetailRequest.cc b/dcdn/src/model/DescribeDcdnCertificateDetailRequest.cc index e27edc790..ca6862e8f 100644 --- a/dcdn/src/model/DescribeDcdnCertificateDetailRequest.cc +++ b/dcdn/src/model/DescribeDcdnCertificateDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnCertificateDetailRequest::getSecurityToken()const void DescribeDcdnCertificateDetailRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnCertificateDetailRequest::getCertName()const @@ -44,7 +44,7 @@ std::string DescribeDcdnCertificateDetailRequest::getCertName()const void DescribeDcdnCertificateDetailRequest::setCertName(const std::string& certName) { certName_ = certName; - setParameter("CertName", certName); + setCoreParameter("CertName", certName); } long DescribeDcdnCertificateDetailRequest::getOwnerId()const @@ -55,17 +55,6 @@ long DescribeDcdnCertificateDetailRequest::getOwnerId()const void DescribeDcdnCertificateDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnCertificateDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnCertificateDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnCertificateDetailResult.cc b/dcdn/src/model/DescribeDcdnCertificateDetailResult.cc index ebb810b62..c983b05fe 100644 --- a/dcdn/src/model/DescribeDcdnCertificateDetailResult.cc +++ b/dcdn/src/model/DescribeDcdnCertificateDetailResult.cc @@ -35,10 +35,13 @@ DescribeDcdnCertificateDetailResult::~DescribeDcdnCertificateDetailResult() void DescribeDcdnCertificateDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Cert"].isNull()) cert_ = value["Cert"].asString(); diff --git a/dcdn/src/model/DescribeDcdnCertificateListRequest.cc b/dcdn/src/model/DescribeDcdnCertificateListRequest.cc index cc47ea651..3b16ee076 100644 --- a/dcdn/src/model/DescribeDcdnCertificateListRequest.cc +++ b/dcdn/src/model/DescribeDcdnCertificateListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnCertificateListRequest::getSecurityToken()const void DescribeDcdnCertificateListRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnCertificateListRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDcdnCertificateListRequest::getDomainName()const void DescribeDcdnCertificateListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeDcdnCertificateListRequest::getOwnerId()const @@ -55,17 +55,6 @@ long DescribeDcdnCertificateListRequest::getOwnerId()const void DescribeDcdnCertificateListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnCertificateListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnCertificateListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnCertificateListResult.cc b/dcdn/src/model/DescribeDcdnCertificateListResult.cc index 2708b2410..5e2deee1d 100644 --- a/dcdn/src/model/DescribeDcdnCertificateListResult.cc +++ b/dcdn/src/model/DescribeDcdnCertificateListResult.cc @@ -35,10 +35,13 @@ DescribeDcdnCertificateListResult::~DescribeDcdnCertificateListResult() void DescribeDcdnCertificateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto certificateListModelNode = value["CertificateListModel"]; if(!certificateListModelNode["Count"].isNull()) diff --git a/dcdn/src/model/DescribeDcdnDomainBpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainBpsDataRequest.cc index 9a6058a2d..2fe21dcfc 100644 --- a/dcdn/src/model/DescribeDcdnDomainBpsDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainBpsDataRequest::getCallerParentId()const void DescribeDcdnDomainBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainBpsDataRequest::getProxy_original_security_transport()con void DescribeDcdnDomainBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainBpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getLocationNameEn()const void DescribeDcdnDomainBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDcdnDomainBpsDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getStartTime()const void DescribeDcdnDomainBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainBpsDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getIspNameEn()const void DescribeDcdnDomainBpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDcdnDomainBpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getProxy_original_source_ip()const void DescribeDcdnDomainBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainBpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainBpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getCallerType()const void DescribeDcdnDomainBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainBpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getAccessKeyId()const void DescribeDcdnDomainBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainBpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getSecurityToken()const void DescribeDcdnDomainBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainBpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getRequestContent()const void DescribeDcdnDomainBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainBpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getCallerBidEmail()const void DescribeDcdnDomainBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainBpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getCallerUidEmail()const void DescribeDcdnDomainBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainBpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDcdnDomainBpsDataRequest::getCallerUid()const void DescribeDcdnDomainBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainBpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getApp_ip()const void DescribeDcdnDomainBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainBpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getPopProduct()const void DescribeDcdnDomainBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainBpsDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getProduct()const void DescribeDcdnDomainBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainBpsDataRequest::getFixTimeGap()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getFixTimeGap()const void DescribeDcdnDomainBpsDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDcdnDomainBpsDataRequest::getTimeMerge()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getTimeMerge()const void DescribeDcdnDomainBpsDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDcdnDomainBpsDataRequest::getDomainName()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getDomainName()const void DescribeDcdnDomainBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainBpsDataRequest::getEndTime()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getEndTime()const void DescribeDcdnDomainBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainBpsDataRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getCallerBid()const void DescribeDcdnDomainBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainBpsDataRequest::getOwnerId()const @@ -275,7 +275,7 @@ long DescribeDcdnDomainBpsDataRequest::getOwnerId()const void DescribeDcdnDomainBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainBpsDataRequest::getVersion()const @@ -286,7 +286,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getVersion()const void DescribeDcdnDomainBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainBpsDataRequest::getProxy_trust_transport_info()const @@ -297,7 +297,7 @@ bool DescribeDcdnDomainBpsDataRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainBpsDataRequest::getAk_mfa_present()const @@ -308,7 +308,7 @@ bool DescribeDcdnDomainBpsDataRequest::getAk_mfa_present()const void DescribeDcdnDomainBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainBpsDataRequest::getSecurity_transport()const @@ -319,7 +319,7 @@ bool DescribeDcdnDomainBpsDataRequest::getSecurity_transport()const void DescribeDcdnDomainBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainBpsDataRequest::getRequestId()const @@ -330,7 +330,7 @@ std::string DescribeDcdnDomainBpsDataRequest::getRequestId()const void DescribeDcdnDomainBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainBpsDataRequest::getInterval()const @@ -341,6 +341,6 @@ std::string DescribeDcdnDomainBpsDataRequest::getInterval()const void DescribeDcdnDomainBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/dcdn/src/model/DescribeDcdnDomainBpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainBpsDataResult.cc index d8a7bfdc4..0df3734bc 100644 --- a/dcdn/src/model/DescribeDcdnDomainBpsDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainBpsDataResult::~DescribeDcdnDomainBpsDataResult() void DescribeDcdnDomainBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"]; for (auto value : allBpsDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainCertificateInfoRequest.cc b/dcdn/src/model/DescribeDcdnDomainCertificateInfoRequest.cc index 9aadfdad1..c30789a97 100644 --- a/dcdn/src/model/DescribeDcdnDomainCertificateInfoRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainCertificateInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getApp_ip()const void DescribeDcdnDomainCertificateInfoRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainCertificateInfoRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getPopProduct()const void DescribeDcdnDomainCertificateInfoRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainCertificateInfoRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getProduct()const void DescribeDcdnDomainCertificateInfoRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeDcdnDomainCertificateInfoRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeDcdnDomainCertificateInfoRequest::getCallerParentId()const void DescribeDcdnDomainCertificateInfoRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeDcdnDomainCertificateInfoRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getDomainName()const void DescribeDcdnDomainCertificateInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeDcdnDomainCertificateInfoRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeDcdnDomainCertificateInfoRequest::getProxy_original_security_transp void DescribeDcdnDomainCertificateInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainCertificateInfoRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getCallerBid()const void DescribeDcdnDomainCertificateInfoRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainCertificateInfoRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeDcdnDomainCertificateInfoRequest::getOwnerId()const void DescribeDcdnDomainCertificateInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainCertificateInfoRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getProxy_original_source_i void DescribeDcdnDomainCertificateInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainCertificateInfoRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getVersion()const void DescribeDcdnDomainCertificateInfoRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeDcdnDomainCertificateInfoRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getOwnerIdLoginEmail()cons void DescribeDcdnDomainCertificateInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainCertificateInfoRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getCallerType()const void DescribeDcdnDomainCertificateInfoRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeDcdnDomainCertificateInfoRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeDcdnDomainCertificateInfoRequest::getProxy_trust_transport_info()co void DescribeDcdnDomainCertificateInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainCertificateInfoRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeDcdnDomainCertificateInfoRequest::getAk_mfa_present()const void DescribeDcdnDomainCertificateInfoRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeDcdnDomainCertificateInfoRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getAccessKeyId()const void DescribeDcdnDomainCertificateInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeDcdnDomainCertificateInfoRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeDcdnDomainCertificateInfoRequest::getSecurity_transport()const void DescribeDcdnDomainCertificateInfoRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainCertificateInfoRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getSecurityToken()const void DescribeDcdnDomainCertificateInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainCertificateInfoRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getRequestId()const void DescribeDcdnDomainCertificateInfoRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainCertificateInfoRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getRequestContent()const void DescribeDcdnDomainCertificateInfoRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainCertificateInfoRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getCallerBidEmail()const void DescribeDcdnDomainCertificateInfoRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainCertificateInfoRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainCertificateInfoRequest::getCallerUidEmail()const void DescribeDcdnDomainCertificateInfoRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainCertificateInfoRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeDcdnDomainCertificateInfoRequest::getCallerUid()const void DescribeDcdnDomainCertificateInfoRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/dcdn/src/model/DescribeDcdnDomainCertificateInfoResult.cc b/dcdn/src/model/DescribeDcdnDomainCertificateInfoResult.cc index ce8064dba..5ff0ff578 100644 --- a/dcdn/src/model/DescribeDcdnDomainCertificateInfoResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainCertificateInfoResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainCertificateInfoResult::~DescribeDcdnDomainCertificateInfoResul void DescribeDcdnDomainCertificateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCertInfos = value["CertInfos"]["CertInfo"]; for (auto value : allCertInfos) diff --git a/dcdn/src/model/DescribeDcdnDomainCnameRequest.cc b/dcdn/src/model/DescribeDcdnDomainCnameRequest.cc index 31f3be87f..3851f1899 100644 --- a/dcdn/src/model/DescribeDcdnDomainCnameRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainCnameRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnDomainCnameRequest::getApp_ip()const void DescribeDcdnDomainCnameRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainCnameRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeDcdnDomainCnameRequest::getPopProduct()const void DescribeDcdnDomainCnameRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainCnameRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainCnameRequest::getProduct()const void DescribeDcdnDomainCnameRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeDcdnDomainCnameRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeDcdnDomainCnameRequest::getCallerParentId()const void DescribeDcdnDomainCnameRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeDcdnDomainCnameRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainCnameRequest::getDomainName()const void DescribeDcdnDomainCnameRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeDcdnDomainCnameRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeDcdnDomainCnameRequest::getProxy_original_security_transport()const void DescribeDcdnDomainCnameRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainCnameRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainCnameRequest::getCallerBid()const void DescribeDcdnDomainCnameRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainCnameRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeDcdnDomainCnameRequest::getOwnerId()const void DescribeDcdnDomainCnameRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainCnameRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainCnameRequest::getProxy_original_source_ip()const void DescribeDcdnDomainCnameRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainCnameRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainCnameRequest::getVersion()const void DescribeDcdnDomainCnameRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeDcdnDomainCnameRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainCnameRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainCnameRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainCnameRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainCnameRequest::getCallerType()const void DescribeDcdnDomainCnameRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeDcdnDomainCnameRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeDcdnDomainCnameRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainCnameRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainCnameRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeDcdnDomainCnameRequest::getAk_mfa_present()const void DescribeDcdnDomainCnameRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeDcdnDomainCnameRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainCnameRequest::getAccessKeyId()const void DescribeDcdnDomainCnameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeDcdnDomainCnameRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeDcdnDomainCnameRequest::getSecurity_transport()const void DescribeDcdnDomainCnameRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainCnameRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainCnameRequest::getSecurityToken()const void DescribeDcdnDomainCnameRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainCnameRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainCnameRequest::getRequestId()const void DescribeDcdnDomainCnameRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainCnameRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainCnameRequest::getRequestContent()const void DescribeDcdnDomainCnameRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainCnameRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainCnameRequest::getCallerBidEmail()const void DescribeDcdnDomainCnameRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainCnameRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainCnameRequest::getCallerUidEmail()const void DescribeDcdnDomainCnameRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainCnameRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeDcdnDomainCnameRequest::getCallerUid()const void DescribeDcdnDomainCnameRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/dcdn/src/model/DescribeDcdnDomainCnameResult.cc b/dcdn/src/model/DescribeDcdnDomainCnameResult.cc index 774bb12e0..1ed866958 100644 --- a/dcdn/src/model/DescribeDcdnDomainCnameResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainCnameResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainCnameResult::~DescribeDcdnDomainCnameResult() void DescribeDcdnDomainCnameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCnameDatas = value["CnameDatas"]["Data"]; for (auto value : allCnameDatas) diff --git a/dcdn/src/model/DescribeDcdnDomainConfigsRequest.cc b/dcdn/src/model/DescribeDcdnDomainConfigsRequest.cc index baf2d59a4..8afa87964 100644 --- a/dcdn/src/model/DescribeDcdnDomainConfigsRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainConfigsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnDomainConfigsRequest::getFunctionNames()const void DescribeDcdnDomainConfigsRequest::setFunctionNames(const std::string& functionNames) { functionNames_ = functionNames; - setParameter("FunctionNames", functionNames); + setCoreParameter("FunctionNames", functionNames); } std::string DescribeDcdnDomainConfigsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeDcdnDomainConfigsRequest::getSecurityToken()const void DescribeDcdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainConfigsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainConfigsRequest::getDomainName()const void DescribeDcdnDomainConfigsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeDcdnDomainConfigsRequest::getOwnerId()const @@ -66,17 +66,6 @@ long DescribeDcdnDomainConfigsRequest::getOwnerId()const void DescribeDcdnDomainConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnDomainConfigsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnDomainConfigsResult.cc b/dcdn/src/model/DescribeDcdnDomainConfigsResult.cc index 922d8fcd7..99de156ca 100644 --- a/dcdn/src/model/DescribeDcdnDomainConfigsResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainConfigsResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainConfigsResult::~DescribeDcdnDomainConfigsResult() void DescribeDcdnDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainConfigs = value["DomainConfigs"]["DomainConfig"]; for (auto value : allDomainConfigs) diff --git a/dcdn/src/model/DescribeDcdnDomainDetailRequest.cc b/dcdn/src/model/DescribeDcdnDomainDetailRequest.cc index 534fbad05..4b9f1f6c0 100644 --- a/dcdn/src/model/DescribeDcdnDomainDetailRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnDomainDetailRequest::getSecurityToken()const void DescribeDcdnDomainDetailRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainDetailRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDcdnDomainDetailRequest::getDomainName()const void DescribeDcdnDomainDetailRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeDcdnDomainDetailRequest::getOwnerId()const @@ -55,17 +55,6 @@ long DescribeDcdnDomainDetailRequest::getOwnerId()const void DescribeDcdnDomainDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnDomainDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnDomainDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnDomainDetailResult.cc b/dcdn/src/model/DescribeDcdnDomainDetailResult.cc index 447f21556..6cac8ba1a 100644 --- a/dcdn/src/model/DescribeDcdnDomainDetailResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainDetailResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainDetailResult::~DescribeDcdnDomainDetailResult() void DescribeDcdnDomainDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto domainDetailNode = value["DomainDetail"]; if(!domainDetailNode["GmtCreated"].isNull()) diff --git a/dcdn/src/model/DescribeDcdnDomainHitRateDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainHitRateDataRequest.cc index bfb18d301..384db9f2d 100644 --- a/dcdn/src/model/DescribeDcdnDomainHitRateDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainHitRateDataRequest::getCallerParentId()const void DescribeDcdnDomainHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainHitRateDataRequest::getProxy_original_security_transport( void DescribeDcdnDomainHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getStartTime()const void DescribeDcdnDomainHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getProxy_original_source_ip()c void DescribeDcdnDomainHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getCallerType()const void DescribeDcdnDomainHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getAccessKeyId()const void DescribeDcdnDomainHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getSecurityToken()const void DescribeDcdnDomainHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getRequestContent()const void DescribeDcdnDomainHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getCallerBidEmail()const void DescribeDcdnDomainHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getCallerUidEmail()const void DescribeDcdnDomainHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDcdnDomainHitRateDataRequest::getCallerUid()const void DescribeDcdnDomainHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getApp_ip()const void DescribeDcdnDomainHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getPopProduct()const void DescribeDcdnDomainHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainHitRateDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getProduct()const void DescribeDcdnDomainHitRateDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainHitRateDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getDomainName()const void DescribeDcdnDomainHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainHitRateDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getEndTime()const void DescribeDcdnDomainHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainHitRateDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getCallerBid()const void DescribeDcdnDomainHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainHitRateDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDcdnDomainHitRateDataRequest::getOwnerId()const void DescribeDcdnDomainHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainHitRateDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getVersion()const void DescribeDcdnDomainHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainHitRateDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDcdnDomainHitRateDataRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainHitRateDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDcdnDomainHitRateDataRequest::getAk_mfa_present()const void DescribeDcdnDomainHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainHitRateDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDcdnDomainHitRateDataRequest::getSecurity_transport()const void DescribeDcdnDomainHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainHitRateDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getRequestId()const void DescribeDcdnDomainHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainHitRateDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeDcdnDomainHitRateDataRequest::getInterval()const void DescribeDcdnDomainHitRateDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDcdnDomainHitRateDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeDcdnDomainHitRateDataRequest::getFields()const void DescribeDcdnDomainHitRateDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/dcdn/src/model/DescribeDcdnDomainHitRateDataResult.cc b/dcdn/src/model/DescribeDcdnDomainHitRateDataResult.cc index 7d2d9bf2a..b70c250ad 100644 --- a/dcdn/src/model/DescribeDcdnDomainHitRateDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainHitRateDataResult::~DescribeDcdnDomainHitRateDataResult() void DescribeDcdnDomainHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHitRatePerInterval = value["HitRatePerInterval"]["DataModule"]; for (auto value : allHitRatePerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainHttpCodeDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainHttpCodeDataRequest.cc index 6a79c81fc..7bc5cca52 100644 --- a/dcdn/src/model/DescribeDcdnDomainHttpCodeDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainHttpCodeDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainHttpCodeDataRequest::getCallerParentId()const void DescribeDcdnDomainHttpCodeDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainHttpCodeDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainHttpCodeDataRequest::getProxy_original_security_transport void DescribeDcdnDomainHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainHttpCodeDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getLocationNameEn()const void DescribeDcdnDomainHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDcdnDomainHttpCodeDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getStartTime()const void DescribeDcdnDomainHttpCodeDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainHttpCodeDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getIspNameEn()const void DescribeDcdnDomainHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDcdnDomainHttpCodeDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getProxy_original_source_ip() void DescribeDcdnDomainHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainHttpCodeDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerType()const void DescribeDcdnDomainHttpCodeDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainHttpCodeDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getAccessKeyId()const void DescribeDcdnDomainHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainHttpCodeDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getSecurityToken()const void DescribeDcdnDomainHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainHttpCodeDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getRequestContent()const void DescribeDcdnDomainHttpCodeDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerBidEmail()const void DescribeDcdnDomainHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerUidEmail()const void DescribeDcdnDomainHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainHttpCodeDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDcdnDomainHttpCodeDataRequest::getCallerUid()const void DescribeDcdnDomainHttpCodeDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainHttpCodeDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getApp_ip()const void DescribeDcdnDomainHttpCodeDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainHttpCodeDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getPopProduct()const void DescribeDcdnDomainHttpCodeDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainHttpCodeDataRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getDomainName()const void DescribeDcdnDomainHttpCodeDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainHttpCodeDataRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getEndTime()const void DescribeDcdnDomainHttpCodeDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getCallerBid()const void DescribeDcdnDomainHttpCodeDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainHttpCodeDataRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDcdnDomainHttpCodeDataRequest::getOwnerId()const void DescribeDcdnDomainHttpCodeDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainHttpCodeDataRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getVersion()const void DescribeDcdnDomainHttpCodeDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainHttpCodeDataRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDcdnDomainHttpCodeDataRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainHttpCodeDataRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDcdnDomainHttpCodeDataRequest::getAk_mfa_present()const void DescribeDcdnDomainHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainHttpCodeDataRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDcdnDomainHttpCodeDataRequest::getSecurity_transport()const void DescribeDcdnDomainHttpCodeDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainHttpCodeDataRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getRequestId()const void DescribeDcdnDomainHttpCodeDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainHttpCodeDataRequest::getInterval()const @@ -308,7 +308,7 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getInterval()const void DescribeDcdnDomainHttpCodeDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDcdnDomainHttpCodeDataRequest::getFields()const @@ -319,6 +319,6 @@ std::string DescribeDcdnDomainHttpCodeDataRequest::getFields()const void DescribeDcdnDomainHttpCodeDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/dcdn/src/model/DescribeDcdnDomainHttpCodeDataResult.cc b/dcdn/src/model/DescribeDcdnDomainHttpCodeDataResult.cc index 206fba5b9..dd7812ffe 100644 --- a/dcdn/src/model/DescribeDcdnDomainHttpCodeDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainHttpCodeDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainHttpCodeDataResult::~DescribeDcdnDomainHttpCodeDataResult() void DescribeDcdnDomainHttpCodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataPerInterval = value["DataPerInterval"]["DataModule"]; for (auto value : allDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainIpaBpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainIpaBpsDataRequest.cc new file mode 100644 index 000000000..88b349970 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainIpaBpsDataRequest.cc @@ -0,0 +1,357 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainIpaBpsDataRequest; + +DescribeDcdnDomainIpaBpsDataRequest::DescribeDcdnDomainIpaBpsDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainIpaBpsData") +{} + +DescribeDcdnDomainIpaBpsDataRequest::~DescribeDcdnDomainIpaBpsDataRequest() +{} + +long DescribeDcdnDomainIpaBpsDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainIpaBpsDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainIpaBpsDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setCoreParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setCoreParameter("IspNameEn", ispNameEn); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainIpaBpsDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getFixTimeGap()const +{ + return fixTimeGap_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setFixTimeGap(const std::string& fixTimeGap) +{ + fixTimeGap_ = fixTimeGap; + setCoreParameter("FixTimeGap", fixTimeGap); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getTimeMerge()const +{ + return timeMerge_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setTimeMerge(const std::string& timeMerge) +{ + timeMerge_ = timeMerge; + setCoreParameter("TimeMerge", timeMerge); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainIpaBpsDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainIpaBpsDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainIpaBpsDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainIpaBpsDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainIpaBpsDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainIpaBpsDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainIpaBpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainIpaBpsDataResult.cc new file mode 100644 index 000000000..79a6f000c --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainIpaBpsDataResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainIpaBpsDataResult::DescribeDcdnDomainIpaBpsDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainIpaBpsDataResult::DescribeDcdnDomainIpaBpsDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainIpaBpsDataResult::~DescribeDcdnDomainIpaBpsDataResult() +{} + +void DescribeDcdnDomainIpaBpsDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"]; + for (auto value : allBpsDataPerInterval) + { + DataModule bpsDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + bpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["IpaBps"].isNull()) + bpsDataPerIntervalObject.ipaBps = std::stof(value["IpaBps"].asString()); + bpsDataPerInterval_.push_back(bpsDataPerIntervalObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + +} + +std::string DescribeDcdnDomainIpaBpsDataResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDcdnDomainIpaBpsDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeDcdnDomainIpaBpsDataResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDcdnDomainIpaBpsDataResult::getDataInterval()const +{ + return dataInterval_; +} + +std::vector DescribeDcdnDomainIpaBpsDataResult::getBpsDataPerInterval()const +{ + return bpsDataPerInterval_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainIpaTrafficDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainIpaTrafficDataRequest.cc new file mode 100644 index 000000000..c4915ac4d --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainIpaTrafficDataRequest.cc @@ -0,0 +1,357 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainIpaTrafficDataRequest; + +DescribeDcdnDomainIpaTrafficDataRequest::DescribeDcdnDomainIpaTrafficDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainIpaTrafficData") +{} + +DescribeDcdnDomainIpaTrafficDataRequest::~DescribeDcdnDomainIpaTrafficDataRequest() +{} + +long DescribeDcdnDomainIpaTrafficDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainIpaTrafficDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainIpaTrafficDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setCoreParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setCoreParameter("IspNameEn", ispNameEn); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainIpaTrafficDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getFixTimeGap()const +{ + return fixTimeGap_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setFixTimeGap(const std::string& fixTimeGap) +{ + fixTimeGap_ = fixTimeGap; + setCoreParameter("FixTimeGap", fixTimeGap); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getTimeMerge()const +{ + return timeMerge_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setTimeMerge(const std::string& timeMerge) +{ + timeMerge_ = timeMerge; + setCoreParameter("TimeMerge", timeMerge); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainIpaTrafficDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainIpaTrafficDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainIpaTrafficDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainIpaTrafficDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainIpaTrafficDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainIpaTrafficDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainIpaTrafficDataResult.cc b/dcdn/src/model/DescribeDcdnDomainIpaTrafficDataResult.cc new file mode 100644 index 000000000..836b5a879 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainIpaTrafficDataResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainIpaTrafficDataResult::DescribeDcdnDomainIpaTrafficDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainIpaTrafficDataResult::DescribeDcdnDomainIpaTrafficDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainIpaTrafficDataResult::~DescribeDcdnDomainIpaTrafficDataResult() +{} + +void DescribeDcdnDomainIpaTrafficDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTrafficDataPerInterval = value["TrafficDataPerInterval"]["DataModule"]; + for (auto value : allTrafficDataPerInterval) + { + DataModule trafficDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + trafficDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["IpaTraffic"].isNull()) + trafficDataPerIntervalObject.ipaTraffic = std::stof(value["IpaTraffic"].asString()); + trafficDataPerInterval_.push_back(trafficDataPerIntervalObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + +} + +std::string DescribeDcdnDomainIpaTrafficDataResult::getEndTime()const +{ + return endTime_; +} + +std::vector DescribeDcdnDomainIpaTrafficDataResult::getTrafficDataPerInterval()const +{ + return trafficDataPerInterval_; +} + +std::string DescribeDcdnDomainIpaTrafficDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeDcdnDomainIpaTrafficDataResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDcdnDomainIpaTrafficDataResult::getDataInterval()const +{ + return dataInterval_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainIspDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainIspDataRequest.cc index 1983452fa..14ca632ba 100644 --- a/dcdn/src/model/DescribeDcdnDomainIspDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainIspDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainIspDataRequest::getCallerParentId()const void DescribeDcdnDomainIspDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainIspDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainIspDataRequest::getProxy_original_security_transport()con void DescribeDcdnDomainIspDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainIspDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainIspDataRequest::getStartTime()const void DescribeDcdnDomainIspDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainIspDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainIspDataRequest::getProxy_original_source_ip()const void DescribeDcdnDomainIspDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainIspDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainIspDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainIspDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainIspDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainIspDataRequest::getCallerType()const void DescribeDcdnDomainIspDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainIspDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainIspDataRequest::getAccessKeyId()const void DescribeDcdnDomainIspDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainIspDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainIspDataRequest::getSecurityToken()const void DescribeDcdnDomainIspDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainIspDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainIspDataRequest::getRequestContent()const void DescribeDcdnDomainIspDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainIspDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainIspDataRequest::getCallerBidEmail()const void DescribeDcdnDomainIspDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainIspDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainIspDataRequest::getCallerUidEmail()const void DescribeDcdnDomainIspDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainIspDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDcdnDomainIspDataRequest::getCallerUid()const void DescribeDcdnDomainIspDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainIspDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainIspDataRequest::getApp_ip()const void DescribeDcdnDomainIspDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainIspDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDcdnDomainIspDataRequest::getPopProduct()const void DescribeDcdnDomainIspDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainIspDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainIspDataRequest::getProduct()const void DescribeDcdnDomainIspDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainIspDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainIspDataRequest::getDomainName()const void DescribeDcdnDomainIspDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainIspDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainIspDataRequest::getEndTime()const void DescribeDcdnDomainIspDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainIspDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainIspDataRequest::getCallerBid()const void DescribeDcdnDomainIspDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainIspDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDcdnDomainIspDataRequest::getOwnerId()const void DescribeDcdnDomainIspDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainIspDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainIspDataRequest::getVersion()const void DescribeDcdnDomainIspDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainIspDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDcdnDomainIspDataRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainIspDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainIspDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDcdnDomainIspDataRequest::getAk_mfa_present()const void DescribeDcdnDomainIspDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainIspDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDcdnDomainIspDataRequest::getSecurity_transport()const void DescribeDcdnDomainIspDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainIspDataRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeDcdnDomainIspDataRequest::getRequestId()const void DescribeDcdnDomainIspDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/dcdn/src/model/DescribeDcdnDomainIspDataResult.cc b/dcdn/src/model/DescribeDcdnDomainIspDataResult.cc index 19d841c8e..51e170094 100644 --- a/dcdn/src/model/DescribeDcdnDomainIspDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainIspDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainIspDataResult::~DescribeDcdnDomainIspDataResult() void DescribeDcdnDomainIspDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allValue = value["Value"]["IspProportionData"]; for (auto value : allValue) diff --git a/dcdn/src/model/DescribeDcdnDomainLogRequest.cc b/dcdn/src/model/DescribeDcdnDomainLogRequest.cc index c82279175..cc3faa045 100644 --- a/dcdn/src/model/DescribeDcdnDomainLogRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainLogRequest.cc @@ -25,6 +25,17 @@ DescribeDcdnDomainLogRequest::DescribeDcdnDomainLogRequest() : DescribeDcdnDomainLogRequest::~DescribeDcdnDomainLogRequest() {} +long DescribeDcdnDomainLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + long DescribeDcdnDomainLogRequest::getCallerParentId()const { return callerParentId_; @@ -33,7 +44,7 @@ long DescribeDcdnDomainLogRequest::getCallerParentId()const void DescribeDcdnDomainLogRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainLogRequest::getProxy_original_security_transport()const @@ -44,7 +55,7 @@ bool DescribeDcdnDomainLogRequest::getProxy_original_security_transport()const void DescribeDcdnDomainLogRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainLogRequest::getStartTime()const @@ -55,7 +66,7 @@ std::string DescribeDcdnDomainLogRequest::getStartTime()const void DescribeDcdnDomainLogRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainLogRequest::getProxy_original_source_ip()const @@ -66,7 +77,7 @@ std::string DescribeDcdnDomainLogRequest::getProxy_original_source_ip()const void DescribeDcdnDomainLogRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainLogRequest::getOwnerIdLoginEmail()const @@ -77,7 +88,7 @@ std::string DescribeDcdnDomainLogRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainLogRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainLogRequest::getCallerType()const @@ -88,7 +99,7 @@ std::string DescribeDcdnDomainLogRequest::getCallerType()const void DescribeDcdnDomainLogRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } long DescribeDcdnDomainLogRequest::getPageNumber()const @@ -99,7 +110,7 @@ long DescribeDcdnDomainLogRequest::getPageNumber()const void DescribeDcdnDomainLogRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDcdnDomainLogRequest::getAccessKeyId()const @@ -110,7 +121,7 @@ std::string DescribeDcdnDomainLogRequest::getAccessKeyId()const void DescribeDcdnDomainLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainLogRequest::getSecurityToken()const @@ -121,7 +132,7 @@ std::string DescribeDcdnDomainLogRequest::getSecurityToken()const void DescribeDcdnDomainLogRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainLogRequest::getRequestContent()const @@ -132,7 +143,7 @@ std::string DescribeDcdnDomainLogRequest::getRequestContent()const void DescribeDcdnDomainLogRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } long DescribeDcdnDomainLogRequest::getPageSize()const @@ -143,7 +154,7 @@ long DescribeDcdnDomainLogRequest::getPageSize()const void DescribeDcdnDomainLogRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDcdnDomainLogRequest::getCallerBidEmail()const @@ -154,7 +165,7 @@ std::string DescribeDcdnDomainLogRequest::getCallerBidEmail()const void DescribeDcdnDomainLogRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainLogRequest::getCallerUidEmail()const @@ -165,7 +176,7 @@ std::string DescribeDcdnDomainLogRequest::getCallerUidEmail()const void DescribeDcdnDomainLogRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainLogRequest::getCallerUid()const @@ -176,7 +187,7 @@ long DescribeDcdnDomainLogRequest::getCallerUid()const void DescribeDcdnDomainLogRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainLogRequest::getApp_ip()const @@ -187,7 +198,7 @@ std::string DescribeDcdnDomainLogRequest::getApp_ip()const void DescribeDcdnDomainLogRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainLogRequest::getPopProduct()const @@ -198,7 +209,7 @@ std::string DescribeDcdnDomainLogRequest::getPopProduct()const void DescribeDcdnDomainLogRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainLogRequest::getDomainName()const @@ -209,7 +220,7 @@ std::string DescribeDcdnDomainLogRequest::getDomainName()const void DescribeDcdnDomainLogRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainLogRequest::getEndTime()const @@ -220,7 +231,7 @@ std::string DescribeDcdnDomainLogRequest::getEndTime()const void DescribeDcdnDomainLogRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainLogRequest::getCallerBid()const @@ -231,7 +242,7 @@ std::string DescribeDcdnDomainLogRequest::getCallerBid()const void DescribeDcdnDomainLogRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainLogRequest::getOwnerId()const @@ -242,7 +253,7 @@ long DescribeDcdnDomainLogRequest::getOwnerId()const void DescribeDcdnDomainLogRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainLogRequest::getVersion()const @@ -253,7 +264,7 @@ std::string DescribeDcdnDomainLogRequest::getVersion()const void DescribeDcdnDomainLogRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainLogRequest::getProxy_trust_transport_info()const @@ -264,7 +275,7 @@ bool DescribeDcdnDomainLogRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainLogRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainLogRequest::getAk_mfa_present()const @@ -275,7 +286,7 @@ bool DescribeDcdnDomainLogRequest::getAk_mfa_present()const void DescribeDcdnDomainLogRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainLogRequest::getSecurity_transport()const @@ -286,7 +297,7 @@ bool DescribeDcdnDomainLogRequest::getSecurity_transport()const void DescribeDcdnDomainLogRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainLogRequest::getRequestId()const @@ -297,6 +308,6 @@ std::string DescribeDcdnDomainLogRequest::getRequestId()const void DescribeDcdnDomainLogRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/dcdn/src/model/DescribeDcdnDomainLogResult.cc b/dcdn/src/model/DescribeDcdnDomainLogResult.cc index 8960ab234..0f0dc8d67 100644 --- a/dcdn/src/model/DescribeDcdnDomainLogResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainLogResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainLogResult::~DescribeDcdnDomainLogResult() void DescribeDcdnDomainLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"]; for (auto value : allDomainLogDetails) @@ -46,18 +49,6 @@ void DescribeDcdnDomainLogResult::parse(const std::string &payload) DomainLogDetail domainLogDetailsObject; if(!value["LogCount"].isNull()) domainLogDetailsObject.logCount = std::stol(value["LogCount"].asString()); - auto allPageInfos = value["PageInfos"]["PageInfoDetail"]; - for (auto value : allPageInfos) - { - DomainLogDetail::PageInfoDetail pageInfosObject; - if(!value["PageIndex"].isNull()) - pageInfosObject.pageIndex = std::stol(value["PageIndex"].asString()); - if(!value["PageSize"].isNull()) - pageInfosObject.pageSize = std::stol(value["PageSize"].asString()); - if(!value["Total"].isNull()) - pageInfosObject.total = std::stol(value["Total"].asString()); - domainLogDetailsObject.pageInfos.push_back(pageInfosObject); - } auto allLogInfos = value["LogInfos"]["LogInfoDetail"]; for (auto value : allLogInfos) { @@ -74,6 +65,13 @@ void DescribeDcdnDomainLogResult::parse(const std::string &payload) logInfosObject.endTime = value["EndTime"].asString(); domainLogDetailsObject.logInfos.push_back(logInfosObject); } + auto pageInfosNode = value["PageInfos"]; + if(!pageInfosNode["PageIndex"].isNull()) + domainLogDetailsObject.pageInfos.pageIndex = std::stol(pageInfosNode["PageIndex"].asString()); + if(!pageInfosNode["PageSize"].isNull()) + domainLogDetailsObject.pageInfos.pageSize = std::stol(pageInfosNode["PageSize"].asString()); + if(!pageInfosNode["Total"].isNull()) + domainLogDetailsObject.pageInfos.total = std::stol(pageInfosNode["Total"].asString()); domainLogDetails_.push_back(domainLogDetailsObject); } if(!value["DomainName"].isNull()) diff --git a/dcdn/src/model/DescribeDcdnDomainOriginBpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainOriginBpsDataRequest.cc index 7f2388ba4..36c632ea7 100644 --- a/dcdn/src/model/DescribeDcdnDomainOriginBpsDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainOriginBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainOriginBpsDataRequest::getCallerParentId()const void DescribeDcdnDomainOriginBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainOriginBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainOriginBpsDataRequest::getProxy_original_security_transpor void DescribeDcdnDomainOriginBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainOriginBpsDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getStartTime()const void DescribeDcdnDomainOriginBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainOriginBpsDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getProxy_original_source_ip( void DescribeDcdnDomainOriginBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainOriginBpsDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainOriginBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerType()const void DescribeDcdnDomainOriginBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainOriginBpsDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getAccessKeyId()const void DescribeDcdnDomainOriginBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainOriginBpsDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getSecurityToken()const void DescribeDcdnDomainOriginBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainOriginBpsDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getRequestContent()const void DescribeDcdnDomainOriginBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerBidEmail()const void DescribeDcdnDomainOriginBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerUidEmail()const void DescribeDcdnDomainOriginBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainOriginBpsDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDcdnDomainOriginBpsDataRequest::getCallerUid()const void DescribeDcdnDomainOriginBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainOriginBpsDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getApp_ip()const void DescribeDcdnDomainOriginBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainOriginBpsDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getPopProduct()const void DescribeDcdnDomainOriginBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainOriginBpsDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getProduct()const void DescribeDcdnDomainOriginBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainOriginBpsDataRequest::getFixTimeGap()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getFixTimeGap()const void DescribeDcdnDomainOriginBpsDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDcdnDomainOriginBpsDataRequest::getTimeMerge()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getTimeMerge()const void DescribeDcdnDomainOriginBpsDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDcdnDomainOriginBpsDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getDomainName()const void DescribeDcdnDomainOriginBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainOriginBpsDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getEndTime()const void DescribeDcdnDomainOriginBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getCallerBid()const void DescribeDcdnDomainOriginBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainOriginBpsDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeDcdnDomainOriginBpsDataRequest::getOwnerId()const void DescribeDcdnDomainOriginBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainOriginBpsDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getVersion()const void DescribeDcdnDomainOriginBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainOriginBpsDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeDcdnDomainOriginBpsDataRequest::getProxy_trust_transport_info()cons void DescribeDcdnDomainOriginBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainOriginBpsDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeDcdnDomainOriginBpsDataRequest::getAk_mfa_present()const void DescribeDcdnDomainOriginBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainOriginBpsDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeDcdnDomainOriginBpsDataRequest::getSecurity_transport()const void DescribeDcdnDomainOriginBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainOriginBpsDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getRequestId()const void DescribeDcdnDomainOriginBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainOriginBpsDataRequest::getInterval()const @@ -319,7 +319,7 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getInterval()const void DescribeDcdnDomainOriginBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDcdnDomainOriginBpsDataRequest::getFields()const @@ -330,6 +330,6 @@ std::string DescribeDcdnDomainOriginBpsDataRequest::getFields()const void DescribeDcdnDomainOriginBpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/dcdn/src/model/DescribeDcdnDomainOriginBpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainOriginBpsDataResult.cc index 2b591df03..70c0df577 100644 --- a/dcdn/src/model/DescribeDcdnDomainOriginBpsDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainOriginBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainOriginBpsDataResult::~DescribeDcdnDomainOriginBpsDataResult() void DescribeDcdnDomainOriginBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOriginBpsDataPerInterval = value["OriginBpsDataPerInterval"]["DataModule"]; for (auto value : allOriginBpsDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataRequest.cc index ab6b8bb11..a47bcd378 100644 --- a/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainOriginTrafficDataRequest::getCallerParentId()const void DescribeDcdnDomainOriginTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainOriginTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainOriginTrafficDataRequest::getProxy_original_security_tran void DescribeDcdnDomainOriginTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getStartTime()const void DescribeDcdnDomainOriginTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getProxy_original_source void DescribeDcdnDomainOriginTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getOwnerIdLoginEmail()co void DescribeDcdnDomainOriginTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerType()const void DescribeDcdnDomainOriginTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getAccessKeyId()const void DescribeDcdnDomainOriginTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getSecurityToken()const void DescribeDcdnDomainOriginTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getRequestContent()const void DescribeDcdnDomainOriginTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerBidEmail()const void DescribeDcdnDomainOriginTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerUidEmail()const void DescribeDcdnDomainOriginTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainOriginTrafficDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDcdnDomainOriginTrafficDataRequest::getCallerUid()const void DescribeDcdnDomainOriginTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getApp_ip()const void DescribeDcdnDomainOriginTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getPopProduct()const void DescribeDcdnDomainOriginTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getProduct()const void DescribeDcdnDomainOriginTrafficDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getFixTimeGap()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getFixTimeGap()const void DescribeDcdnDomainOriginTrafficDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getTimeMerge()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getTimeMerge()const void DescribeDcdnDomainOriginTrafficDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getDomainName()const void DescribeDcdnDomainOriginTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getEndTime()const void DescribeDcdnDomainOriginTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getCallerBid()const void DescribeDcdnDomainOriginTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainOriginTrafficDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeDcdnDomainOriginTrafficDataRequest::getOwnerId()const void DescribeDcdnDomainOriginTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getVersion()const void DescribeDcdnDomainOriginTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainOriginTrafficDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeDcdnDomainOriginTrafficDataRequest::getProxy_trust_transport_info() void DescribeDcdnDomainOriginTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainOriginTrafficDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeDcdnDomainOriginTrafficDataRequest::getAk_mfa_present()const void DescribeDcdnDomainOriginTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainOriginTrafficDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeDcdnDomainOriginTrafficDataRequest::getSecurity_transport()const void DescribeDcdnDomainOriginTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getRequestId()const void DescribeDcdnDomainOriginTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getInterval()const @@ -319,7 +319,7 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getInterval()const void DescribeDcdnDomainOriginTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDcdnDomainOriginTrafficDataRequest::getFields()const @@ -330,6 +330,6 @@ std::string DescribeDcdnDomainOriginTrafficDataRequest::getFields()const void DescribeDcdnDomainOriginTrafficDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataResult.cc b/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataResult.cc index c3fd23cf2..9ba8d04f4 100644 --- a/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainOriginTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainOriginTrafficDataResult::~DescribeDcdnDomainOriginTrafficDataR void DescribeDcdnDomainOriginTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOriginTrafficDataPerInterval = value["OriginTrafficDataPerInterval"]["DataModule"]; for (auto value : allOriginTrafficDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainPvDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainPvDataRequest.cc new file mode 100644 index 000000000..d9b3b3977 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainPvDataRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnDomainPvDataRequest; + +DescribeDcdnDomainPvDataRequest::DescribeDcdnDomainPvDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainPvData") +{} + +DescribeDcdnDomainPvDataRequest::~DescribeDcdnDomainPvDataRequest() +{} + +std::string DescribeDcdnDomainPvDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainPvDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainPvDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainPvDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainPvDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainPvDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainPvDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainPvDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeDcdnDomainPvDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainPvDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainPvDataResult.cc b/dcdn/src/model/DescribeDcdnDomainPvDataResult.cc new file mode 100644 index 000000000..95a044747 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainPvDataResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainPvDataResult::DescribeDcdnDomainPvDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainPvDataResult::DescribeDcdnDomainPvDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainPvDataResult::~DescribeDcdnDomainPvDataResult() +{} + +void DescribeDcdnDomainPvDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allPvDataInterval = value["PvDataInterval"]["UsageData"]; + for (auto value : allPvDataInterval) + { + UsageData pvDataIntervalObject; + if(!value["TimeStamp"].isNull()) + pvDataIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["Value"].isNull()) + pvDataIntervalObject.value = value["Value"].asString(); + pvDataInterval_.push_back(pvDataIntervalObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + +} + +std::string DescribeDcdnDomainPvDataResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDcdnDomainPvDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeDcdnDomainPvDataResult::getDataInterval()const +{ + return dataInterval_; +} + +std::string DescribeDcdnDomainPvDataResult::getStartTime()const +{ + return startTime_; +} + +std::vector DescribeDcdnDomainPvDataResult::getPvDataInterval()const +{ + return pvDataInterval_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainQpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainQpsDataRequest.cc index 39ebafe5a..809fc150c 100644 --- a/dcdn/src/model/DescribeDcdnDomainQpsDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainQpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainQpsDataRequest::getCallerParentId()const void DescribeDcdnDomainQpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainQpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainQpsDataRequest::getProxy_original_security_transport()con void DescribeDcdnDomainQpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainQpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getLocationNameEn()const void DescribeDcdnDomainQpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDcdnDomainQpsDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getStartTime()const void DescribeDcdnDomainQpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainQpsDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getIspNameEn()const void DescribeDcdnDomainQpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDcdnDomainQpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getProxy_original_source_ip()const void DescribeDcdnDomainQpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainQpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainQpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainQpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getCallerType()const void DescribeDcdnDomainQpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainQpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getAccessKeyId()const void DescribeDcdnDomainQpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainQpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getSecurityToken()const void DescribeDcdnDomainQpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainQpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getRequestContent()const void DescribeDcdnDomainQpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainQpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getCallerBidEmail()const void DescribeDcdnDomainQpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainQpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getCallerUidEmail()const void DescribeDcdnDomainQpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainQpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDcdnDomainQpsDataRequest::getCallerUid()const void DescribeDcdnDomainQpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainQpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getApp_ip()const void DescribeDcdnDomainQpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainQpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getPopProduct()const void DescribeDcdnDomainQpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainQpsDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getProduct()const void DescribeDcdnDomainQpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainQpsDataRequest::getFixTimeGap()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getFixTimeGap()const void DescribeDcdnDomainQpsDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDcdnDomainQpsDataRequest::getTimeMerge()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getTimeMerge()const void DescribeDcdnDomainQpsDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDcdnDomainQpsDataRequest::getDomainName()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getDomainName()const void DescribeDcdnDomainQpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainQpsDataRequest::getEndTime()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getEndTime()const void DescribeDcdnDomainQpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainQpsDataRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getCallerBid()const void DescribeDcdnDomainQpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainQpsDataRequest::getOwnerId()const @@ -275,7 +275,7 @@ long DescribeDcdnDomainQpsDataRequest::getOwnerId()const void DescribeDcdnDomainQpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainQpsDataRequest::getVersion()const @@ -286,7 +286,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getVersion()const void DescribeDcdnDomainQpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainQpsDataRequest::getProxy_trust_transport_info()const @@ -297,7 +297,7 @@ bool DescribeDcdnDomainQpsDataRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainQpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainQpsDataRequest::getAk_mfa_present()const @@ -308,7 +308,7 @@ bool DescribeDcdnDomainQpsDataRequest::getAk_mfa_present()const void DescribeDcdnDomainQpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainQpsDataRequest::getSecurity_transport()const @@ -319,7 +319,7 @@ bool DescribeDcdnDomainQpsDataRequest::getSecurity_transport()const void DescribeDcdnDomainQpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainQpsDataRequest::getRequestId()const @@ -330,7 +330,7 @@ std::string DescribeDcdnDomainQpsDataRequest::getRequestId()const void DescribeDcdnDomainQpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainQpsDataRequest::getInterval()const @@ -341,6 +341,6 @@ std::string DescribeDcdnDomainQpsDataRequest::getInterval()const void DescribeDcdnDomainQpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/dcdn/src/model/DescribeDcdnDomainQpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainQpsDataResult.cc index 6c410703e..a221e39f6 100644 --- a/dcdn/src/model/DescribeDcdnDomainQpsDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainQpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainQpsDataResult::~DescribeDcdnDomainQpsDataResult() void DescribeDcdnDomainQpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQpsDataPerInterval = value["QpsDataPerInterval"]["DataModule"]; for (auto value : allQpsDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataRequest.cc new file mode 100644 index 000000000..c7f25587f --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataRequest.cc @@ -0,0 +1,335 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainRealTimeBpsDataRequest; + +DescribeDcdnDomainRealTimeBpsDataRequest::DescribeDcdnDomainRealTimeBpsDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeBpsData") +{} + +DescribeDcdnDomainRealTimeBpsDataRequest::~DescribeDcdnDomainRealTimeBpsDataRequest() +{} + +long DescribeDcdnDomainRealTimeBpsDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainRealTimeBpsDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainRealTimeBpsDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setCoreParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setCoreParameter("IspNameEn", ispNameEn); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainRealTimeBpsDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainRealTimeBpsDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainRealTimeBpsDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeBpsDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeBpsDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainRealTimeBpsDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainRealTimeBpsDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataResult.cc new file mode 100644 index 000000000..822134550 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeBpsDataResult.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 +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainRealTimeBpsDataResult::DescribeDcdnDomainRealTimeBpsDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainRealTimeBpsDataResult::DescribeDcdnDomainRealTimeBpsDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainRealTimeBpsDataResult::~DescribeDcdnDomainRealTimeBpsDataResult() +{} + +void DescribeDcdnDomainRealTimeBpsDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["BpsModel"]; + for (auto value : allData) + { + BpsModel dataObject; + if(!value["Bps"].isNull()) + dataObject.bps = std::stof(value["Bps"].asString()); + if(!value["TimeStamp"].isNull()) + dataObject.timeStamp = value["TimeStamp"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector DescribeDcdnDomainRealTimeBpsDataResult::getData()const +{ + return data_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.cc new file mode 100644 index 000000000..ad070731d --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainRealTimeByteHitRateDataRequest; + +DescribeDcdnDomainRealTimeByteHitRateDataRequest::DescribeDcdnDomainRealTimeByteHitRateDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeByteHitRateData") +{} + +DescribeDcdnDomainRealTimeByteHitRateDataRequest::~DescribeDcdnDomainRealTimeByteHitRateDataRequest() +{} + +long DescribeDcdnDomainRealTimeByteHitRateDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainRealTimeByteHitRateDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainRealTimeByteHitRateDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainRealTimeByteHitRateDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainRealTimeByteHitRateDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainRealTimeByteHitRateDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeByteHitRateDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeByteHitRateDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainRealTimeByteHitRateDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainRealTimeByteHitRateDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.cc new file mode 100644 index 000000000..c6e8fc48d --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeByteHitRateDataResult.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 +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainRealTimeByteHitRateDataResult::DescribeDcdnDomainRealTimeByteHitRateDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainRealTimeByteHitRateDataResult::DescribeDcdnDomainRealTimeByteHitRateDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainRealTimeByteHitRateDataResult::~DescribeDcdnDomainRealTimeByteHitRateDataResult() +{} + +void DescribeDcdnDomainRealTimeByteHitRateDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["ByteHitRateDataModel"]; + for (auto value : allData) + { + ByteHitRateDataModel dataObject; + if(!value["ByteHitRate"].isNull()) + dataObject.byteHitRate = std::stof(value["ByteHitRate"].asString()); + if(!value["TimeStamp"].isNull()) + dataObject.timeStamp = value["TimeStamp"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector DescribeDcdnDomainRealTimeByteHitRateDataResult::getData()const +{ + return data_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.cc new file mode 100644 index 000000000..92ceb3aa5 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataRequest.cc @@ -0,0 +1,335 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainRealTimeHttpCodeDataRequest; + +DescribeDcdnDomainRealTimeHttpCodeDataRequest::DescribeDcdnDomainRealTimeHttpCodeDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeHttpCodeData") +{} + +DescribeDcdnDomainRealTimeHttpCodeDataRequest::~DescribeDcdnDomainRealTimeHttpCodeDataRequest() +{} + +long DescribeDcdnDomainRealTimeHttpCodeDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainRealTimeHttpCodeDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainRealTimeHttpCodeDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setCoreParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setCoreParameter("IspNameEn", ispNameEn); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainRealTimeHttpCodeDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainRealTimeHttpCodeDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainRealTimeHttpCodeDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeHttpCodeDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeHttpCodeDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainRealTimeHttpCodeDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.cc new file mode 100644 index 000000000..3b389325e --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeHttpCodeDataResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainRealTimeHttpCodeDataResult::DescribeDcdnDomainRealTimeHttpCodeDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainRealTimeHttpCodeDataResult::DescribeDcdnDomainRealTimeHttpCodeDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainRealTimeHttpCodeDataResult::~DescribeDcdnDomainRealTimeHttpCodeDataResult() +{} + +void DescribeDcdnDomainRealTimeHttpCodeDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRealTimeHttpCodeData = value["RealTimeHttpCodeData"]["UsageData"]; + for (auto value : allRealTimeHttpCodeData) + { + UsageData realTimeHttpCodeDataObject; + if(!value["TimeStamp"].isNull()) + realTimeHttpCodeDataObject.timeStamp = value["TimeStamp"].asString(); + auto allValue = value["Value"]["RealTimeCodeProportionData"]; + for (auto value : allValue) + { + UsageData::RealTimeCodeProportionData valueObject; + if(!value["Code"].isNull()) + valueObject.code = value["Code"].asString(); + if(!value["Proportion"].isNull()) + valueObject.proportion = value["Proportion"].asString(); + if(!value["Count"].isNull()) + valueObject.count = value["Count"].asString(); + realTimeHttpCodeDataObject.value.push_back(valueObject); + } + realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDcdnDomainRealTimeHttpCodeDataResult::getDataInterval()const +{ + return dataInterval_; +} + +std::vector DescribeDcdnDomainRealTimeHttpCodeDataResult::getRealTimeHttpCodeData()const +{ + return realTimeHttpCodeData_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataRequest.cc new file mode 100644 index 000000000..3287a3317 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataRequest.cc @@ -0,0 +1,335 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainRealTimeQpsDataRequest; + +DescribeDcdnDomainRealTimeQpsDataRequest::DescribeDcdnDomainRealTimeQpsDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeQpsData") +{} + +DescribeDcdnDomainRealTimeQpsDataRequest::~DescribeDcdnDomainRealTimeQpsDataRequest() +{} + +long DescribeDcdnDomainRealTimeQpsDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainRealTimeQpsDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainRealTimeQpsDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getLocationNameEn()const +{ + return locationNameEn_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setLocationNameEn(const std::string& locationNameEn) +{ + locationNameEn_ = locationNameEn; + setCoreParameter("LocationNameEn", locationNameEn); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getIspNameEn()const +{ + return ispNameEn_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setIspNameEn(const std::string& ispNameEn) +{ + ispNameEn_ = ispNameEn; + setCoreParameter("IspNameEn", ispNameEn); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainRealTimeQpsDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainRealTimeQpsDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainRealTimeQpsDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeQpsDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeQpsDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainRealTimeQpsDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainRealTimeQpsDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataResult.cc new file mode 100644 index 000000000..582f9fe26 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeQpsDataResult.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 +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainRealTimeQpsDataResult::DescribeDcdnDomainRealTimeQpsDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainRealTimeQpsDataResult::DescribeDcdnDomainRealTimeQpsDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainRealTimeQpsDataResult::~DescribeDcdnDomainRealTimeQpsDataResult() +{} + +void DescribeDcdnDomainRealTimeQpsDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["QpsModel"]; + for (auto value : allData) + { + QpsModel dataObject; + if(!value["Qps"].isNull()) + dataObject.qps = std::stof(value["Qps"].asString()); + if(!value["TimeStamp"].isNull()) + dataObject.timeStamp = value["TimeStamp"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector DescribeDcdnDomainRealTimeQpsDataResult::getData()const +{ + return data_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.cc new file mode 100644 index 000000000..b904ec621 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainRealTimeReqHitRateDataRequest; + +DescribeDcdnDomainRealTimeReqHitRateDataRequest::DescribeDcdnDomainRealTimeReqHitRateDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeReqHitRateData") +{} + +DescribeDcdnDomainRealTimeReqHitRateDataRequest::~DescribeDcdnDomainRealTimeReqHitRateDataRequest() +{} + +long DescribeDcdnDomainRealTimeReqHitRateDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainRealTimeReqHitRateDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainRealTimeReqHitRateDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainRealTimeReqHitRateDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainRealTimeReqHitRateDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainRealTimeReqHitRateDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeReqHitRateDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeReqHitRateDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainRealTimeReqHitRateDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainRealTimeReqHitRateDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.cc new file mode 100644 index 000000000..3960f728e --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeReqHitRateDataResult.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 +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainRealTimeReqHitRateDataResult::DescribeDcdnDomainRealTimeReqHitRateDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainRealTimeReqHitRateDataResult::DescribeDcdnDomainRealTimeReqHitRateDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainRealTimeReqHitRateDataResult::~DescribeDcdnDomainRealTimeReqHitRateDataResult() +{} + +void DescribeDcdnDomainRealTimeReqHitRateDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["ReqHitRateDataModel"]; + for (auto value : allData) + { + ReqHitRateDataModel dataObject; + if(!value["ReqHitRate"].isNull()) + dataObject.reqHitRate = std::stof(value["ReqHitRate"].asString()); + if(!value["TimeStamp"].isNull()) + dataObject.timeStamp = value["TimeStamp"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector DescribeDcdnDomainRealTimeReqHitRateDataResult::getData()const +{ + return data_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.cc new file mode 100644 index 000000000..bca13d2c8 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainRealTimeSrcBpsDataRequest; + +DescribeDcdnDomainRealTimeSrcBpsDataRequest::DescribeDcdnDomainRealTimeSrcBpsDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeSrcBpsData") +{} + +DescribeDcdnDomainRealTimeSrcBpsDataRequest::~DescribeDcdnDomainRealTimeSrcBpsDataRequest() +{} + +long DescribeDcdnDomainRealTimeSrcBpsDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainRealTimeSrcBpsDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainRealTimeSrcBpsDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainRealTimeSrcBpsDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainRealTimeSrcBpsDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainRealTimeSrcBpsDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeSrcBpsDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeSrcBpsDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainRealTimeSrcBpsDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.cc new file mode 100644 index 000000000..6dda71092 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcBpsDataResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainRealTimeSrcBpsDataResult::DescribeDcdnDomainRealTimeSrcBpsDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainRealTimeSrcBpsDataResult::DescribeDcdnDomainRealTimeSrcBpsDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainRealTimeSrcBpsDataResult::~DescribeDcdnDomainRealTimeSrcBpsDataResult() +{} + +void DescribeDcdnDomainRealTimeSrcBpsDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRealTimeSrcBpsDataPerInterval = value["RealTimeSrcBpsDataPerInterval"]["DataModule"]; + for (auto value : allRealTimeSrcBpsDataPerInterval) + { + DataModule realTimeSrcBpsDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + realTimeSrcBpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["Value"].isNull()) + realTimeSrcBpsDataPerIntervalObject.value = value["Value"].asString(); + realTimeSrcBpsDataPerInterval_.push_back(realTimeSrcBpsDataPerIntervalObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataResult::getEndTime()const +{ + return endTime_; +} + +std::vector DescribeDcdnDomainRealTimeSrcBpsDataResult::getRealTimeSrcBpsDataPerInterval()const +{ + return realTimeSrcBpsDataPerInterval_; +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDcdnDomainRealTimeSrcBpsDataResult::getDataInterval()const +{ + return dataInterval_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc new file mode 100644 index 000000000..ca6f15484 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest; + +DescribeDcdnDomainRealTimeSrcTrafficDataRequest::DescribeDcdnDomainRealTimeSrcTrafficDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeSrcTrafficData") +{} + +DescribeDcdnDomainRealTimeSrcTrafficDataRequest::~DescribeDcdnDomainRealTimeSrcTrafficDataRequest() +{} + +long DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getVersion()const +{ + return version_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataRequest::getFields()const +{ + return fields_; +} + +void DescribeDcdnDomainRealTimeSrcTrafficDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.cc new file mode 100644 index 000000000..235d17f8a --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainRealTimeSrcTrafficDataResult::DescribeDcdnDomainRealTimeSrcTrafficDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainRealTimeSrcTrafficDataResult::DescribeDcdnDomainRealTimeSrcTrafficDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainRealTimeSrcTrafficDataResult::~DescribeDcdnDomainRealTimeSrcTrafficDataResult() +{} + +void DescribeDcdnDomainRealTimeSrcTrafficDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRealTimeSrcTrafficDataPerInterval = value["RealTimeSrcTrafficDataPerInterval"]["DataModule"]; + for (auto value : allRealTimeSrcTrafficDataPerInterval) + { + DataModule realTimeSrcTrafficDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + realTimeSrcTrafficDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["Value"].isNull()) + realTimeSrcTrafficDataPerIntervalObject.value = value["Value"].asString(); + realTimeSrcTrafficDataPerInterval_.push_back(realTimeSrcTrafficDataPerIntervalObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDcdnDomainRealTimeSrcTrafficDataResult::getDataInterval()const +{ + return dataInterval_; +} + +std::vector DescribeDcdnDomainRealTimeSrcTrafficDataResult::getRealTimeSrcTrafficDataPerInterval()const +{ + return realTimeSrcTrafficDataPerInterval_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainRegionDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainRegionDataRequest.cc index f921b937b..e4807ecd1 100644 --- a/dcdn/src/model/DescribeDcdnDomainRegionDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainRegionDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainRegionDataRequest::getCallerParentId()const void DescribeDcdnDomainRegionDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainRegionDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainRegionDataRequest::getProxy_original_security_transport() void DescribeDcdnDomainRegionDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainRegionDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getStartTime()const void DescribeDcdnDomainRegionDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainRegionDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getProxy_original_source_ip()co void DescribeDcdnDomainRegionDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainRegionDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainRegionDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainRegionDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getCallerType()const void DescribeDcdnDomainRegionDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainRegionDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getAccessKeyId()const void DescribeDcdnDomainRegionDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainRegionDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getSecurityToken()const void DescribeDcdnDomainRegionDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainRegionDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getRequestContent()const void DescribeDcdnDomainRegionDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainRegionDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getCallerBidEmail()const void DescribeDcdnDomainRegionDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainRegionDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getCallerUidEmail()const void DescribeDcdnDomainRegionDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainRegionDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeDcdnDomainRegionDataRequest::getCallerUid()const void DescribeDcdnDomainRegionDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainRegionDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getApp_ip()const void DescribeDcdnDomainRegionDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainRegionDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getPopProduct()const void DescribeDcdnDomainRegionDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainRegionDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getProduct()const void DescribeDcdnDomainRegionDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainRegionDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getDomainName()const void DescribeDcdnDomainRegionDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainRegionDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getEndTime()const void DescribeDcdnDomainRegionDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainRegionDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getCallerBid()const void DescribeDcdnDomainRegionDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainRegionDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDcdnDomainRegionDataRequest::getOwnerId()const void DescribeDcdnDomainRegionDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainRegionDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainRegionDataRequest::getVersion()const void DescribeDcdnDomainRegionDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainRegionDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDcdnDomainRegionDataRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainRegionDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainRegionDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDcdnDomainRegionDataRequest::getAk_mfa_present()const void DescribeDcdnDomainRegionDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainRegionDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDcdnDomainRegionDataRequest::getSecurity_transport()const void DescribeDcdnDomainRegionDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainRegionDataRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeDcdnDomainRegionDataRequest::getRequestId()const void DescribeDcdnDomainRegionDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/dcdn/src/model/DescribeDcdnDomainRegionDataResult.cc b/dcdn/src/model/DescribeDcdnDomainRegionDataResult.cc index b3bd99bab..782d85fb9 100644 --- a/dcdn/src/model/DescribeDcdnDomainRegionDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainRegionDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainRegionDataResult::~DescribeDcdnDomainRegionDataResult() void DescribeDcdnDomainRegionDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allValue = value["Value"]["RegionProportionData"]; for (auto value : allValue) diff --git a/dcdn/src/model/DescribeDcdnDomainTopReferVisitRequest.cc b/dcdn/src/model/DescribeDcdnDomainTopReferVisitRequest.cc index bb1060338..7071de1c1 100644 --- a/dcdn/src/model/DescribeDcdnDomainTopReferVisitRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainTopReferVisitRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnDomainTopReferVisitRequest::getSecurityToken()const void DescribeDcdnDomainTopReferVisitRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainTopReferVisitRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDcdnDomainTopReferVisitRequest::getDomainName()const void DescribeDcdnDomainTopReferVisitRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainTopReferVisitRequest::getSortBy()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainTopReferVisitRequest::getSortBy()const void DescribeDcdnDomainTopReferVisitRequest::setSortBy(const std::string& sortBy) { sortBy_ = sortBy; - setParameter("SortBy", sortBy); + setCoreParameter("SortBy", sortBy); } std::string DescribeDcdnDomainTopReferVisitRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainTopReferVisitRequest::getStartTime()const void DescribeDcdnDomainTopReferVisitRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDcdnDomainTopReferVisitRequest::getOwnerId()const @@ -77,17 +77,6 @@ long DescribeDcdnDomainTopReferVisitRequest::getOwnerId()const void DescribeDcdnDomainTopReferVisitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnDomainTopReferVisitRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnDomainTopReferVisitRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnDomainTopReferVisitResult.cc b/dcdn/src/model/DescribeDcdnDomainTopReferVisitResult.cc index 4b59d0e7b..39354fd8f 100644 --- a/dcdn/src/model/DescribeDcdnDomainTopReferVisitResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainTopReferVisitResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainTopReferVisitResult::~DescribeDcdnDomainTopReferVisitResult() void DescribeDcdnDomainTopReferVisitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopReferList = value["TopReferList"]["ReferList"]; for (auto value : allTopReferList) diff --git a/dcdn/src/model/DescribeDcdnDomainTopUrlVisitRequest.cc b/dcdn/src/model/DescribeDcdnDomainTopUrlVisitRequest.cc index f3990d241..b9a7784c1 100644 --- a/dcdn/src/model/DescribeDcdnDomainTopUrlVisitRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainTopUrlVisitRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnDomainTopUrlVisitRequest::getSecurityToken()const void DescribeDcdnDomainTopUrlVisitRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainTopUrlVisitRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDcdnDomainTopUrlVisitRequest::getDomainName()const void DescribeDcdnDomainTopUrlVisitRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainTopUrlVisitRequest::getSortBy()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainTopUrlVisitRequest::getSortBy()const void DescribeDcdnDomainTopUrlVisitRequest::setSortBy(const std::string& sortBy) { sortBy_ = sortBy; - setParameter("SortBy", sortBy); + setCoreParameter("SortBy", sortBy); } std::string DescribeDcdnDomainTopUrlVisitRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainTopUrlVisitRequest::getStartTime()const void DescribeDcdnDomainTopUrlVisitRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDcdnDomainTopUrlVisitRequest::getOwnerId()const @@ -77,17 +77,6 @@ long DescribeDcdnDomainTopUrlVisitRequest::getOwnerId()const void DescribeDcdnDomainTopUrlVisitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnDomainTopUrlVisitRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnDomainTopUrlVisitRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnDomainTopUrlVisitResult.cc b/dcdn/src/model/DescribeDcdnDomainTopUrlVisitResult.cc index 908714d75..16b66310a 100644 --- a/dcdn/src/model/DescribeDcdnDomainTopUrlVisitResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainTopUrlVisitResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainTopUrlVisitResult::~DescribeDcdnDomainTopUrlVisitResult() void DescribeDcdnDomainTopUrlVisitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAllUrlList = value["AllUrlList"]["UrlList"]; for (auto value : allAllUrlList) diff --git a/dcdn/src/model/DescribeDcdnDomainTrafficDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainTrafficDataRequest.cc index a805bb322..2936619aa 100644 --- a/dcdn/src/model/DescribeDcdnDomainTrafficDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainTrafficDataRequest::getCallerParentId()const void DescribeDcdnDomainTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainTrafficDataRequest::getProxy_original_security_transport( void DescribeDcdnDomainTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainTrafficDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getLocationNameEn()const void DescribeDcdnDomainTrafficDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDcdnDomainTrafficDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getStartTime()const void DescribeDcdnDomainTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainTrafficDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getIspNameEn()const void DescribeDcdnDomainTrafficDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDcdnDomainTrafficDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getProxy_original_source_ip()c void DescribeDcdnDomainTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainTrafficDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getOwnerIdLoginEmail()const void DescribeDcdnDomainTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainTrafficDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getCallerType()const void DescribeDcdnDomainTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainTrafficDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getAccessKeyId()const void DescribeDcdnDomainTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainTrafficDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getSecurityToken()const void DescribeDcdnDomainTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainTrafficDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getRequestContent()const void DescribeDcdnDomainTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainTrafficDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getCallerBidEmail()const void DescribeDcdnDomainTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainTrafficDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getCallerUidEmail()const void DescribeDcdnDomainTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainTrafficDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDcdnDomainTrafficDataRequest::getCallerUid()const void DescribeDcdnDomainTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainTrafficDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getApp_ip()const void DescribeDcdnDomainTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainTrafficDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getPopProduct()const void DescribeDcdnDomainTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainTrafficDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getProduct()const void DescribeDcdnDomainTrafficDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnDomainTrafficDataRequest::getFixTimeGap()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getFixTimeGap()const void DescribeDcdnDomainTrafficDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDcdnDomainTrafficDataRequest::getTimeMerge()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getTimeMerge()const void DescribeDcdnDomainTrafficDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDcdnDomainTrafficDataRequest::getDomainName()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getDomainName()const void DescribeDcdnDomainTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainTrafficDataRequest::getEndTime()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getEndTime()const void DescribeDcdnDomainTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainTrafficDataRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getCallerBid()const void DescribeDcdnDomainTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainTrafficDataRequest::getOwnerId()const @@ -275,7 +275,7 @@ long DescribeDcdnDomainTrafficDataRequest::getOwnerId()const void DescribeDcdnDomainTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainTrafficDataRequest::getVersion()const @@ -286,7 +286,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getVersion()const void DescribeDcdnDomainTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainTrafficDataRequest::getProxy_trust_transport_info()const @@ -297,7 +297,7 @@ bool DescribeDcdnDomainTrafficDataRequest::getProxy_trust_transport_info()const void DescribeDcdnDomainTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainTrafficDataRequest::getAk_mfa_present()const @@ -308,7 +308,7 @@ bool DescribeDcdnDomainTrafficDataRequest::getAk_mfa_present()const void DescribeDcdnDomainTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainTrafficDataRequest::getSecurity_transport()const @@ -319,7 +319,7 @@ bool DescribeDcdnDomainTrafficDataRequest::getSecurity_transport()const void DescribeDcdnDomainTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainTrafficDataRequest::getRequestId()const @@ -330,7 +330,7 @@ std::string DescribeDcdnDomainTrafficDataRequest::getRequestId()const void DescribeDcdnDomainTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainTrafficDataRequest::getInterval()const @@ -341,6 +341,6 @@ std::string DescribeDcdnDomainTrafficDataRequest::getInterval()const void DescribeDcdnDomainTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/dcdn/src/model/DescribeDcdnDomainTrafficDataResult.cc b/dcdn/src/model/DescribeDcdnDomainTrafficDataResult.cc index 257ec6423..cfdcc54ec 100644 --- a/dcdn/src/model/DescribeDcdnDomainTrafficDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainTrafficDataResult::~DescribeDcdnDomainTrafficDataResult() void DescribeDcdnDomainTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrafficDataPerInterval = value["TrafficDataPerInterval"]["DataModule"]; for (auto value : allTrafficDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainUvDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainUvDataRequest.cc new file mode 100644 index 000000000..d43ef81e9 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainUvDataRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnDomainUvDataRequest; + +DescribeDcdnDomainUvDataRequest::DescribeDcdnDomainUvDataRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainUvData") +{} + +DescribeDcdnDomainUvDataRequest::~DescribeDcdnDomainUvDataRequest() +{} + +std::string DescribeDcdnDomainUvDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnDomainUvDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnDomainUvDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnDomainUvDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeDcdnDomainUvDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDcdnDomainUvDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDcdnDomainUvDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDcdnDomainUvDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeDcdnDomainUvDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnDomainUvDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeDcdnDomainUvDataResult.cc b/dcdn/src/model/DescribeDcdnDomainUvDataResult.cc new file mode 100644 index 000000000..8e3c41603 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnDomainUvDataResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnDomainUvDataResult::DescribeDcdnDomainUvDataResult() : + ServiceResult() +{} + +DescribeDcdnDomainUvDataResult::DescribeDcdnDomainUvDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnDomainUvDataResult::~DescribeDcdnDomainUvDataResult() +{} + +void DescribeDcdnDomainUvDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allUvDataInterval = value["UvDataInterval"]["UsageData"]; + for (auto value : allUvDataInterval) + { + UsageData uvDataIntervalObject; + if(!value["TimeStamp"].isNull()) + uvDataIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["Value"].isNull()) + uvDataIntervalObject.value = value["Value"].asString(); + uvDataInterval_.push_back(uvDataIntervalObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + +} + +std::vector DescribeDcdnDomainUvDataResult::getUvDataInterval()const +{ + return uvDataInterval_; +} + +std::string DescribeDcdnDomainUvDataResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDcdnDomainUvDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeDcdnDomainUvDataResult::getDataInterval()const +{ + return dataInterval_; +} + +std::string DescribeDcdnDomainUvDataResult::getStartTime()const +{ + return startTime_; +} + diff --git a/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataRequest.cc index 6f3ea399d..7fec094ca 100644 --- a/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainWebsocketBpsDataRequest::getCallerParentId()const void DescribeDcdnDomainWebsocketBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainWebsocketBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainWebsocketBpsDataRequest::getProxy_original_security_trans void DescribeDcdnDomainWebsocketBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getLocationNameEn()const void DescribeDcdnDomainWebsocketBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getStartTime()const void DescribeDcdnDomainWebsocketBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getIspNameEn()const void DescribeDcdnDomainWebsocketBpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getProxy_original_source_ void DescribeDcdnDomainWebsocketBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getOwnerIdLoginEmail()con void DescribeDcdnDomainWebsocketBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerType()const void DescribeDcdnDomainWebsocketBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getAccessKeyId()const void DescribeDcdnDomainWebsocketBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getSecurityToken()const void DescribeDcdnDomainWebsocketBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getRequestContent()const void DescribeDcdnDomainWebsocketBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerBidEmail()const void DescribeDcdnDomainWebsocketBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerUidEmail()const void DescribeDcdnDomainWebsocketBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainWebsocketBpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDcdnDomainWebsocketBpsDataRequest::getCallerUid()const void DescribeDcdnDomainWebsocketBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getApp_ip()const void DescribeDcdnDomainWebsocketBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getPopProduct()const void DescribeDcdnDomainWebsocketBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getFixTimeGap()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getFixTimeGap()const void DescribeDcdnDomainWebsocketBpsDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getTimeMerge()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getTimeMerge()const void DescribeDcdnDomainWebsocketBpsDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getDomainName()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getDomainName()const void DescribeDcdnDomainWebsocketBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getEndTime()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getEndTime()const void DescribeDcdnDomainWebsocketBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getCallerBid()const void DescribeDcdnDomainWebsocketBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainWebsocketBpsDataRequest::getOwnerId()const @@ -264,7 +264,7 @@ long DescribeDcdnDomainWebsocketBpsDataRequest::getOwnerId()const void DescribeDcdnDomainWebsocketBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getVersion()const @@ -275,7 +275,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getVersion()const void DescribeDcdnDomainWebsocketBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainWebsocketBpsDataRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool DescribeDcdnDomainWebsocketBpsDataRequest::getProxy_trust_transport_info()c void DescribeDcdnDomainWebsocketBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainWebsocketBpsDataRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool DescribeDcdnDomainWebsocketBpsDataRequest::getAk_mfa_present()const void DescribeDcdnDomainWebsocketBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainWebsocketBpsDataRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool DescribeDcdnDomainWebsocketBpsDataRequest::getSecurity_transport()const void DescribeDcdnDomainWebsocketBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getRequestId()const @@ -319,7 +319,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getRequestId()const void DescribeDcdnDomainWebsocketBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getInterval()const @@ -330,7 +330,7 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getInterval()const void DescribeDcdnDomainWebsocketBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDcdnDomainWebsocketBpsDataRequest::getFields()const @@ -341,6 +341,6 @@ std::string DescribeDcdnDomainWebsocketBpsDataRequest::getFields()const void DescribeDcdnDomainWebsocketBpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataResult.cc b/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataResult.cc index f486f1419..cb72b9de3 100644 --- a/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainWebsocketBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainWebsocketBpsDataResult::~DescribeDcdnDomainWebsocketBpsDataRes void DescribeDcdnDomainWebsocketBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"]; for (auto value : allBpsDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.cc index 846249f1b..b6215822d 100644 --- a/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerParentId()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getProxy_original_security_ void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getLocationNameEn()c void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getStartTime()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getIspNameEn()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getProxy_original_so void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getOwnerIdLoginEmail void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerType()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getAccessKeyId()cons void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getSecurityToken()co void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getRequestContent()c void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerBidEmail()c void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerUidEmail()c void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerUid()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getApp_ip()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getPopProduct()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getDomainName()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getEndTime()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getCallerBid()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainWebsocketHttpCodeDataRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeDcdnDomainWebsocketHttpCodeDataRequest::getOwnerId()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getVersion()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getProxy_trust_transport_in void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getAk_mfa_present()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeDcdnDomainWebsocketHttpCodeDataRequest::getSecurity_transport()cons void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getRequestId()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getInterval()const @@ -308,7 +308,7 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getInterval()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getFields()const @@ -319,6 +319,6 @@ std::string DescribeDcdnDomainWebsocketHttpCodeDataRequest::getFields()const void DescribeDcdnDomainWebsocketHttpCodeDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.cc b/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.cc index aff26522e..e2fcce8bf 100644 --- a/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainWebsocketHttpCodeDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainWebsocketHttpCodeDataResult::~DescribeDcdnDomainWebsocketHttpC void DescribeDcdnDomainWebsocketHttpCodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataPerInterval = value["DataPerInterval"]["DataModule"]; for (auto value : allDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataRequest.cc b/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataRequest.cc index 730382dba..2f4362a5a 100644 --- a/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataRequest.cc +++ b/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerParentId()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnDomainWebsocketTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnDomainWebsocketTrafficDataRequest::getProxy_original_security_t void DescribeDcdnDomainWebsocketTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getLocationNameEn()co void DescribeDcdnDomainWebsocketTrafficDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getStartTime()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getIspNameEn()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getProxy_original_sou void DescribeDcdnDomainWebsocketTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getOwnerIdLoginEmail( void DescribeDcdnDomainWebsocketTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerType()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getAccessKeyId()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getSecurityToken()con void DescribeDcdnDomainWebsocketTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getRequestContent()co void DescribeDcdnDomainWebsocketTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerBidEmail()co void DescribeDcdnDomainWebsocketTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerUidEmail()co void DescribeDcdnDomainWebsocketTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerUid()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getApp_ip()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getPopProduct()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getFixTimeGap()const @@ -209,7 +209,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getFixTimeGap()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setFixTimeGap(const std::string& fixTimeGap) { fixTimeGap_ = fixTimeGap; - setParameter("FixTimeGap", fixTimeGap); + setCoreParameter("FixTimeGap", fixTimeGap); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getTimeMerge()const @@ -220,7 +220,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getTimeMerge()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setTimeMerge(const std::string& timeMerge) { timeMerge_ = timeMerge; - setParameter("TimeMerge", timeMerge); + setCoreParameter("TimeMerge", timeMerge); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getDomainName()const @@ -231,7 +231,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getDomainName()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getEndTime()const @@ -242,7 +242,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getEndTime()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getCallerBid()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnDomainWebsocketTrafficDataRequest::getOwnerId()const @@ -264,7 +264,7 @@ long DescribeDcdnDomainWebsocketTrafficDataRequest::getOwnerId()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getVersion()const @@ -275,7 +275,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getVersion()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnDomainWebsocketTrafficDataRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool DescribeDcdnDomainWebsocketTrafficDataRequest::getProxy_trust_transport_inf void DescribeDcdnDomainWebsocketTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnDomainWebsocketTrafficDataRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool DescribeDcdnDomainWebsocketTrafficDataRequest::getAk_mfa_present()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnDomainWebsocketTrafficDataRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool DescribeDcdnDomainWebsocketTrafficDataRequest::getSecurity_transport()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getRequestId()const @@ -319,7 +319,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getRequestId()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getInterval()const @@ -330,7 +330,7 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getInterval()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getFields()const @@ -341,6 +341,6 @@ std::string DescribeDcdnDomainWebsocketTrafficDataRequest::getFields()const void DescribeDcdnDomainWebsocketTrafficDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataResult.cc b/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataResult.cc index fd657637e..8fcfdc0bf 100644 --- a/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataResult.cc +++ b/dcdn/src/model/DescribeDcdnDomainWebsocketTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeDcdnDomainWebsocketTrafficDataResult::~DescribeDcdnDomainWebsocketTraffi void DescribeDcdnDomainWebsocketTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrafficDataPerInterval = value["TrafficDataPerInterval"]["DataModule"]; for (auto value : allTrafficDataPerInterval) diff --git a/dcdn/src/model/DescribeDcdnIpaDomainConfigsRequest.cc b/dcdn/src/model/DescribeDcdnIpaDomainConfigsRequest.cc new file mode 100644 index 000000000..d673dce35 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaDomainConfigsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnIpaDomainConfigsRequest; + +DescribeDcdnIpaDomainConfigsRequest::DescribeDcdnIpaDomainConfigsRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnIpaDomainConfigs") +{} + +DescribeDcdnIpaDomainConfigsRequest::~DescribeDcdnIpaDomainConfigsRequest() +{} + +std::string DescribeDcdnIpaDomainConfigsRequest::getFunctionNames()const +{ + return functionNames_; +} + +void DescribeDcdnIpaDomainConfigsRequest::setFunctionNames(const std::string& functionNames) +{ + functionNames_ = functionNames; + setCoreParameter("FunctionNames", functionNames); +} + +std::string DescribeDcdnIpaDomainConfigsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnIpaDomainConfigsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnIpaDomainConfigsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnIpaDomainConfigsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long DescribeDcdnIpaDomainConfigsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnIpaDomainConfigsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeDcdnIpaDomainConfigsResult.cc b/dcdn/src/model/DescribeDcdnIpaDomainConfigsResult.cc new file mode 100644 index 000000000..d00048277 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaDomainConfigsResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnIpaDomainConfigsResult::DescribeDcdnIpaDomainConfigsResult() : + ServiceResult() +{} + +DescribeDcdnIpaDomainConfigsResult::DescribeDcdnIpaDomainConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnIpaDomainConfigsResult::~DescribeDcdnIpaDomainConfigsResult() +{} + +void DescribeDcdnIpaDomainConfigsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDomainConfigs = value["DomainConfigs"]["DomainConfig"]; + for (auto value : allDomainConfigs) + { + DomainConfig domainConfigsObject; + if(!value["FunctionName"].isNull()) + domainConfigsObject.functionName = value["FunctionName"].asString(); + if(!value["ConfigId"].isNull()) + domainConfigsObject.configId = value["ConfigId"].asString(); + if(!value["Status"].isNull()) + domainConfigsObject.status = value["Status"].asString(); + auto allFunctionArgs = value["FunctionArgs"]["FunctionArg"]; + for (auto value : allFunctionArgs) + { + DomainConfig::FunctionArg functionArgsObject; + if(!value["ArgName"].isNull()) + functionArgsObject.argName = value["ArgName"].asString(); + if(!value["ArgValue"].isNull()) + functionArgsObject.argValue = value["ArgValue"].asString(); + domainConfigsObject.functionArgs.push_back(functionArgsObject); + } + domainConfigs_.push_back(domainConfigsObject); + } + +} + +std::vector DescribeDcdnIpaDomainConfigsResult::getDomainConfigs()const +{ + return domainConfigs_; +} + diff --git a/dcdn/src/model/DescribeDcdnIpaDomainDetailRequest.cc b/dcdn/src/model/DescribeDcdnIpaDomainDetailRequest.cc new file mode 100644 index 000000000..2a42488f3 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaDomainDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnIpaDomainDetailRequest; + +DescribeDcdnIpaDomainDetailRequest::DescribeDcdnIpaDomainDetailRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnIpaDomainDetail") +{} + +DescribeDcdnIpaDomainDetailRequest::~DescribeDcdnIpaDomainDetailRequest() +{} + +std::string DescribeDcdnIpaDomainDetailRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnIpaDomainDetailRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDcdnIpaDomainDetailRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnIpaDomainDetailRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long DescribeDcdnIpaDomainDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnIpaDomainDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeDcdnIpaDomainDetailResult.cc b/dcdn/src/model/DescribeDcdnIpaDomainDetailResult.cc new file mode 100644 index 000000000..aafb1e328 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaDomainDetailResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnIpaDomainDetailResult::DescribeDcdnIpaDomainDetailResult() : + ServiceResult() +{} + +DescribeDcdnIpaDomainDetailResult::DescribeDcdnIpaDomainDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnIpaDomainDetailResult::~DescribeDcdnIpaDomainDetailResult() +{} + +void DescribeDcdnIpaDomainDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto domainDetailNode = value["DomainDetail"]; + if(!domainDetailNode["GmtCreated"].isNull()) + domainDetail_.gmtCreated = domainDetailNode["GmtCreated"].asString(); + if(!domainDetailNode["GmtModified"].isNull()) + domainDetail_.gmtModified = domainDetailNode["GmtModified"].asString(); + if(!domainDetailNode["DomainStatus"].isNull()) + domainDetail_.domainStatus = domainDetailNode["DomainStatus"].asString(); + if(!domainDetailNode["Cname"].isNull()) + domainDetail_.cname = domainDetailNode["Cname"].asString(); + if(!domainDetailNode["DomainName"].isNull()) + domainDetail_.domainName = domainDetailNode["DomainName"].asString(); + if(!domainDetailNode["Description"].isNull()) + domainDetail_.description = domainDetailNode["Description"].asString(); + if(!domainDetailNode["SSLProtocol"].isNull()) + domainDetail_.sSLProtocol = domainDetailNode["SSLProtocol"].asString(); + if(!domainDetailNode["SSLPub"].isNull()) + domainDetail_.sSLPub = domainDetailNode["SSLPub"].asString(); + if(!domainDetailNode["Scope"].isNull()) + domainDetail_.scope = domainDetailNode["Scope"].asString(); + if(!domainDetailNode["CertName"].isNull()) + domainDetail_.certName = domainDetailNode["CertName"].asString(); + if(!domainDetailNode["ResourceGroupId"].isNull()) + domainDetail_.resourceGroupId = domainDetailNode["ResourceGroupId"].asString(); + auto allSources = value["Sources"]["Source"]; + for (auto value : allSources) + { + DomainDetail::Source sourceObject; + if(!value["Content"].isNull()) + sourceObject.content = value["Content"].asString(); + if(!value["Type"].isNull()) + sourceObject.type = value["Type"].asString(); + if(!value["Port"].isNull()) + sourceObject.port = std::stoi(value["Port"].asString()); + if(!value["Enabled"].isNull()) + sourceObject.enabled = value["Enabled"].asString(); + if(!value["Priority"].isNull()) + sourceObject.priority = value["Priority"].asString(); + if(!value["Weight"].isNull()) + sourceObject.weight = value["Weight"].asString(); + domainDetail_.sources.push_back(sourceObject); + } + +} + +DescribeDcdnIpaDomainDetailResult::DomainDetail DescribeDcdnIpaDomainDetailResult::getDomainDetail()const +{ + return domainDetail_; +} + diff --git a/dcdn/src/model/DescribeDcdnIpaServiceRequest.cc b/dcdn/src/model/DescribeDcdnIpaServiceRequest.cc new file mode 100644 index 000000000..1f971017d --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaServiceRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeDcdnIpaServiceRequest; + +DescribeDcdnIpaServiceRequest::DescribeDcdnIpaServiceRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnIpaService") +{} + +DescribeDcdnIpaServiceRequest::~DescribeDcdnIpaServiceRequest() +{} + +std::string DescribeDcdnIpaServiceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnIpaServiceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +long DescribeDcdnIpaServiceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnIpaServiceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeDcdnIpaServiceResult.cc b/dcdn/src/model/DescribeDcdnIpaServiceResult.cc new file mode 100644 index 000000000..d5715127e --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaServiceResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnIpaServiceResult::DescribeDcdnIpaServiceResult() : + ServiceResult() +{} + +DescribeDcdnIpaServiceResult::DescribeDcdnIpaServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnIpaServiceResult::~DescribeDcdnIpaServiceResult() +{} + +void DescribeDcdnIpaServiceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allOperationLocks = value["OperationLocks"]["LockReason"]; + for (auto value : allOperationLocks) + { + LockReason operationLocksObject; + if(!value["LockReason"].isNull()) + operationLocksObject.lockReason = value["LockReason"].asString(); + operationLocks_.push_back(operationLocksObject); + } + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["InternetChargeType"].isNull()) + internetChargeType_ = value["InternetChargeType"].asString(); + if(!value["OpeningTime"].isNull()) + openingTime_ = value["OpeningTime"].asString(); + if(!value["ChangingChargeType"].isNull()) + changingChargeType_ = value["ChangingChargeType"].asString(); + if(!value["ChangingAffectTime"].isNull()) + changingAffectTime_ = value["ChangingAffectTime"].asString(); + +} + +std::string DescribeDcdnIpaServiceResult::getChangingChargeType()const +{ + return changingChargeType_; +} + +std::string DescribeDcdnIpaServiceResult::getInstanceId()const +{ + return instanceId_; +} + +std::string DescribeDcdnIpaServiceResult::getOpeningTime()const +{ + return openingTime_; +} + +std::vector DescribeDcdnIpaServiceResult::getOperationLocks()const +{ + return operationLocks_; +} + +std::string DescribeDcdnIpaServiceResult::getChangingAffectTime()const +{ + return changingAffectTime_; +} + +std::string DescribeDcdnIpaServiceResult::getInternetChargeType()const +{ + return internetChargeType_; +} + diff --git a/dcdn/src/model/DescribeDcdnIpaUserDomainsRequest.cc b/dcdn/src/model/DescribeDcdnIpaUserDomainsRequest.cc new file mode 100644 index 000000000..4b89013d0 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaUserDomainsRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dcdn::Model::DescribeDcdnIpaUserDomainsRequest; + +DescribeDcdnIpaUserDomainsRequest::DescribeDcdnIpaUserDomainsRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnIpaUserDomains") +{} + +DescribeDcdnIpaUserDomainsRequest::~DescribeDcdnIpaUserDomainsRequest() +{} + +std::string DescribeDcdnIpaUserDomainsRequest::getFuncFilter()const +{ + return funcFilter_; +} + +void DescribeDcdnIpaUserDomainsRequest::setFuncFilter(const std::string& funcFilter) +{ + funcFilter_ = funcFilter; + setCoreParameter("FuncFilter", funcFilter); +} + +bool DescribeDcdnIpaUserDomainsRequest::getCheckDomainShow()const +{ + return checkDomainShow_; +} + +void DescribeDcdnIpaUserDomainsRequest::setCheckDomainShow(bool checkDomainShow) +{ + checkDomainShow_ = checkDomainShow; + setCoreParameter("CheckDomainShow", checkDomainShow ? "true" : "false"); +} + +std::string DescribeDcdnIpaUserDomainsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeDcdnIpaUserDomainsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeDcdnIpaUserDomainsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDcdnIpaUserDomainsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +int DescribeDcdnIpaUserDomainsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDcdnIpaUserDomainsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDcdnIpaUserDomainsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnIpaUserDomainsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long DescribeDcdnIpaUserDomainsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnIpaUserDomainsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnIpaUserDomainsRequest::getFuncId()const +{ + return funcId_; +} + +void DescribeDcdnIpaUserDomainsRequest::setFuncId(const std::string& funcId) +{ + funcId_ = funcId; + setCoreParameter("FuncId", funcId); +} + +int DescribeDcdnIpaUserDomainsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDcdnIpaUserDomainsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDcdnIpaUserDomainsRequest::getDomainStatus()const +{ + return domainStatus_; +} + +void DescribeDcdnIpaUserDomainsRequest::setDomainStatus(const std::string& domainStatus) +{ + domainStatus_ = domainStatus; + setCoreParameter("DomainStatus", domainStatus); +} + +std::string DescribeDcdnIpaUserDomainsRequest::getDomainSearchType()const +{ + return domainSearchType_; +} + +void DescribeDcdnIpaUserDomainsRequest::setDomainSearchType(const std::string& domainSearchType) +{ + domainSearchType_ = domainSearchType; + setCoreParameter("DomainSearchType", domainSearchType); +} + diff --git a/dcdn/src/model/DescribeDcdnIpaUserDomainsResult.cc b/dcdn/src/model/DescribeDcdnIpaUserDomainsResult.cc new file mode 100644 index 000000000..6f74ef10c --- /dev/null +++ b/dcdn/src/model/DescribeDcdnIpaUserDomainsResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnIpaUserDomainsResult::DescribeDcdnIpaUserDomainsResult() : + ServiceResult() +{} + +DescribeDcdnIpaUserDomainsResult::DescribeDcdnIpaUserDomainsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnIpaUserDomainsResult::~DescribeDcdnIpaUserDomainsResult() +{} + +void DescribeDcdnIpaUserDomainsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDomains = value["Domains"]["PageData"]; + for (auto value : allDomains) + { + PageData domainsObject; + if(!value["DomainName"].isNull()) + domainsObject.domainName = value["DomainName"].asString(); + if(!value["Cname"].isNull()) + domainsObject.cname = value["Cname"].asString(); + if(!value["DomainStatus"].isNull()) + domainsObject.domainStatus = value["DomainStatus"].asString(); + if(!value["GmtCreated"].isNull()) + domainsObject.gmtCreated = value["GmtCreated"].asString(); + if(!value["GmtModified"].isNull()) + domainsObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + domainsObject.description = value["Description"].asString(); + if(!value["SSLProtocol"].isNull()) + domainsObject.sSLProtocol = value["SSLProtocol"].asString(); + if(!value["ResourceGroupId"].isNull()) + domainsObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["Sandbox"].isNull()) + domainsObject.sandbox = value["Sandbox"].asString(); + auto allSources = value["Sources"]["Source"]; + for (auto value : allSources) + { + PageData::Source sourcesObject; + if(!value["Type"].isNull()) + sourcesObject.type = value["Type"].asString(); + if(!value["Content"].isNull()) + sourcesObject.content = value["Content"].asString(); + if(!value["Port"].isNull()) + sourcesObject.port = std::stoi(value["Port"].asString()); + if(!value["Priority"].isNull()) + sourcesObject.priority = value["Priority"].asString(); + if(!value["Weight"].isNull()) + sourcesObject.weight = value["Weight"].asString(); + domainsObject.sources.push_back(sourcesObject); + } + domains_.push_back(domainsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +std::vector DescribeDcdnIpaUserDomainsResult::getDomains()const +{ + return domains_; +} + +long DescribeDcdnIpaUserDomainsResult::getTotalCount()const +{ + return totalCount_; +} + +long DescribeDcdnIpaUserDomainsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeDcdnIpaUserDomainsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/dcdn/src/model/DescribeDcdnRefreshQuotaRequest.cc b/dcdn/src/model/DescribeDcdnRefreshQuotaRequest.cc index e360772d8..0e252958d 100644 --- a/dcdn/src/model/DescribeDcdnRefreshQuotaRequest.cc +++ b/dcdn/src/model/DescribeDcdnRefreshQuotaRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnRefreshQuotaRequest::getSecurityToken()const void DescribeDcdnRefreshQuotaRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeDcdnRefreshQuotaRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeDcdnRefreshQuotaRequest::getOwnerId()const void DescribeDcdnRefreshQuotaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnRefreshQuotaRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnRefreshQuotaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnRefreshQuotaResult.cc b/dcdn/src/model/DescribeDcdnRefreshQuotaResult.cc index a98943e43..8dc6d35c4 100644 --- a/dcdn/src/model/DescribeDcdnRefreshQuotaResult.cc +++ b/dcdn/src/model/DescribeDcdnRefreshQuotaResult.cc @@ -35,10 +35,13 @@ DescribeDcdnRefreshQuotaResult::~DescribeDcdnRefreshQuotaResult() void DescribeDcdnRefreshQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["UrlQuota"].isNull()) urlQuota_ = value["UrlQuota"].asString(); diff --git a/dcdn/src/model/DescribeDcdnRefreshTasksRequest.cc b/dcdn/src/model/DescribeDcdnRefreshTasksRequest.cc index 1a7938d7b..b06d3922c 100644 --- a/dcdn/src/model/DescribeDcdnRefreshTasksRequest.cc +++ b/dcdn/src/model/DescribeDcdnRefreshTasksRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnRefreshTasksRequest::getObjectPath()const void DescribeDcdnRefreshTasksRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } std::string DescribeDcdnRefreshTasksRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeDcdnRefreshTasksRequest::getDomainName()const void DescribeDcdnRefreshTasksRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeDcdnRefreshTasksRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string DescribeDcdnRefreshTasksRequest::getEndTime()const void DescribeDcdnRefreshTasksRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnRefreshTasksRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeDcdnRefreshTasksRequest::getStartTime()const void DescribeDcdnRefreshTasksRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeDcdnRefreshTasksRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeDcdnRefreshTasksRequest::getOwnerId()const void DescribeDcdnRefreshTasksRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeDcdnRefreshTasksRequest::getPageNumber()const @@ -88,18 +88,7 @@ int DescribeDcdnRefreshTasksRequest::getPageNumber()const void DescribeDcdnRefreshTasksRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeDcdnRefreshTasksRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnRefreshTasksRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDcdnRefreshTasksRequest::getResourceGroupId()const @@ -110,7 +99,7 @@ std::string DescribeDcdnRefreshTasksRequest::getResourceGroupId()const void DescribeDcdnRefreshTasksRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeDcdnRefreshTasksRequest::getSecurityToken()const @@ -121,7 +110,7 @@ std::string DescribeDcdnRefreshTasksRequest::getSecurityToken()const void DescribeDcdnRefreshTasksRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } int DescribeDcdnRefreshTasksRequest::getPageSize()const @@ -132,7 +121,7 @@ int DescribeDcdnRefreshTasksRequest::getPageSize()const void DescribeDcdnRefreshTasksRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDcdnRefreshTasksRequest::getObjectType()const @@ -143,7 +132,7 @@ std::string DescribeDcdnRefreshTasksRequest::getObjectType()const void DescribeDcdnRefreshTasksRequest::setObjectType(const std::string& objectType) { objectType_ = objectType; - setParameter("ObjectType", objectType); + setCoreParameter("ObjectType", objectType); } std::string DescribeDcdnRefreshTasksRequest::getTaskId()const @@ -154,7 +143,7 @@ std::string DescribeDcdnRefreshTasksRequest::getTaskId()const void DescribeDcdnRefreshTasksRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string DescribeDcdnRefreshTasksRequest::getStatus()const @@ -165,6 +154,6 @@ std::string DescribeDcdnRefreshTasksRequest::getStatus()const void DescribeDcdnRefreshTasksRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/dcdn/src/model/DescribeDcdnRefreshTasksResult.cc b/dcdn/src/model/DescribeDcdnRefreshTasksResult.cc index dc2f63846..f7f728f05 100644 --- a/dcdn/src/model/DescribeDcdnRefreshTasksResult.cc +++ b/dcdn/src/model/DescribeDcdnRefreshTasksResult.cc @@ -35,10 +35,13 @@ DescribeDcdnRefreshTasksResult::~DescribeDcdnRefreshTasksResult() void DescribeDcdnRefreshTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["Task"]; for (auto value : allTasks) diff --git a/dcdn/src/model/DescribeDcdnServiceRequest.cc b/dcdn/src/model/DescribeDcdnServiceRequest.cc index 939d42939..0d801db38 100644 --- a/dcdn/src/model/DescribeDcdnServiceRequest.cc +++ b/dcdn/src/model/DescribeDcdnServiceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnServiceRequest::getSecurityToken()const void DescribeDcdnServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeDcdnServiceRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeDcdnServiceRequest::getOwnerId()const void DescribeDcdnServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnServiceResult.cc b/dcdn/src/model/DescribeDcdnServiceResult.cc index cb8cff1f2..d37aaee50 100644 --- a/dcdn/src/model/DescribeDcdnServiceResult.cc +++ b/dcdn/src/model/DescribeDcdnServiceResult.cc @@ -35,10 +35,13 @@ DescribeDcdnServiceResult::~DescribeDcdnServiceResult() void DescribeDcdnServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOperationLocks = value["OperationLocks"]["LockReason"]; for (auto value : allOperationLocks) diff --git a/dcdn/src/model/DescribeDcdnTopDomainsByFlowRequest.cc b/dcdn/src/model/DescribeDcdnTopDomainsByFlowRequest.cc index ef9e5c931..bda87df6b 100644 --- a/dcdn/src/model/DescribeDcdnTopDomainsByFlowRequest.cc +++ b/dcdn/src/model/DescribeDcdnTopDomainsByFlowRequest.cc @@ -33,7 +33,7 @@ long DescribeDcdnTopDomainsByFlowRequest::getCallerParentId()const void DescribeDcdnTopDomainsByFlowRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeDcdnTopDomainsByFlowRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeDcdnTopDomainsByFlowRequest::getProxy_original_security_transport() void DescribeDcdnTopDomainsByFlowRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeDcdnTopDomainsByFlowRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getStartTime()const void DescribeDcdnTopDomainsByFlowRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDcdnTopDomainsByFlowRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getProxy_original_source_ip()co void DescribeDcdnTopDomainsByFlowRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeDcdnTopDomainsByFlowRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getOwnerIdLoginEmail()const void DescribeDcdnTopDomainsByFlowRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeDcdnTopDomainsByFlowRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getCallerType()const void DescribeDcdnTopDomainsByFlowRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeDcdnTopDomainsByFlowRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getAccessKeyId()const void DescribeDcdnTopDomainsByFlowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeDcdnTopDomainsByFlowRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getSecurityToken()const void DescribeDcdnTopDomainsByFlowRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeDcdnTopDomainsByFlowRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getRequestContent()const void DescribeDcdnTopDomainsByFlowRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } long DescribeDcdnTopDomainsByFlowRequest::getLimit()const @@ -132,7 +132,7 @@ long DescribeDcdnTopDomainsByFlowRequest::getLimit()const void DescribeDcdnTopDomainsByFlowRequest::setLimit(long limit) { limit_ = limit; - setParameter("Limit", std::to_string(limit)); + setCoreParameter("Limit", std::to_string(limit)); } std::string DescribeDcdnTopDomainsByFlowRequest::getCallerBidEmail()const @@ -143,7 +143,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getCallerBidEmail()const void DescribeDcdnTopDomainsByFlowRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeDcdnTopDomainsByFlowRequest::getCallerUidEmail()const @@ -154,7 +154,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getCallerUidEmail()const void DescribeDcdnTopDomainsByFlowRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeDcdnTopDomainsByFlowRequest::getCallerUid()const @@ -165,7 +165,7 @@ long DescribeDcdnTopDomainsByFlowRequest::getCallerUid()const void DescribeDcdnTopDomainsByFlowRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeDcdnTopDomainsByFlowRequest::getApp_ip()const @@ -176,7 +176,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getApp_ip()const void DescribeDcdnTopDomainsByFlowRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeDcdnTopDomainsByFlowRequest::getPopProduct()const @@ -187,7 +187,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getPopProduct()const void DescribeDcdnTopDomainsByFlowRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeDcdnTopDomainsByFlowRequest::getProduct()const @@ -198,7 +198,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getProduct()const void DescribeDcdnTopDomainsByFlowRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeDcdnTopDomainsByFlowRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getEndTime()const void DescribeDcdnTopDomainsByFlowRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDcdnTopDomainsByFlowRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getCallerBid()const void DescribeDcdnTopDomainsByFlowRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeDcdnTopDomainsByFlowRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeDcdnTopDomainsByFlowRequest::getOwnerId()const void DescribeDcdnTopDomainsByFlowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDcdnTopDomainsByFlowRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getVersion()const void DescribeDcdnTopDomainsByFlowRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeDcdnTopDomainsByFlowRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeDcdnTopDomainsByFlowRequest::getProxy_trust_transport_info()const void DescribeDcdnTopDomainsByFlowRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeDcdnTopDomainsByFlowRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeDcdnTopDomainsByFlowRequest::getAk_mfa_present()const void DescribeDcdnTopDomainsByFlowRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeDcdnTopDomainsByFlowRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeDcdnTopDomainsByFlowRequest::getSecurity_transport()const void DescribeDcdnTopDomainsByFlowRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeDcdnTopDomainsByFlowRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeDcdnTopDomainsByFlowRequest::getRequestId()const void DescribeDcdnTopDomainsByFlowRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/dcdn/src/model/DescribeDcdnTopDomainsByFlowResult.cc b/dcdn/src/model/DescribeDcdnTopDomainsByFlowResult.cc index 483aa4746..08d1acdb0 100644 --- a/dcdn/src/model/DescribeDcdnTopDomainsByFlowResult.cc +++ b/dcdn/src/model/DescribeDcdnTopDomainsByFlowResult.cc @@ -35,10 +35,13 @@ DescribeDcdnTopDomainsByFlowResult::~DescribeDcdnTopDomainsByFlowResult() void DescribeDcdnTopDomainsByFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopDomains = value["TopDomains"]["TopDomain"]; for (auto value : allTopDomains) diff --git a/dcdn/src/model/DescribeDcdnUserDomainsRequest.cc b/dcdn/src/model/DescribeDcdnUserDomainsRequest.cc index de0a8975f..1b40207f3 100644 --- a/dcdn/src/model/DescribeDcdnUserDomainsRequest.cc +++ b/dcdn/src/model/DescribeDcdnUserDomainsRequest.cc @@ -33,84 +33,7 @@ std::string DescribeDcdnUserDomainsRequest::getFuncFilter()const void DescribeDcdnUserDomainsRequest::setFuncFilter(const std::string& funcFilter) { funcFilter_ = funcFilter; - setParameter("FuncFilter", funcFilter); -} - -std::string DescribeDcdnUserDomainsRequest::getDomainName()const -{ - return domainName_; -} - -void DescribeDcdnUserDomainsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); -} - -long DescribeDcdnUserDomainsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeDcdnUserDomainsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnUserDomainsRequest::getFuncId()const -{ - return funcId_; -} - -void DescribeDcdnUserDomainsRequest::setFuncId(const std::string& funcId) -{ - funcId_ = funcId; - setParameter("FuncId", funcId); -} - -int DescribeDcdnUserDomainsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeDcdnUserDomainsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeDcdnUserDomainsRequest::getDomainStatus()const -{ - return domainStatus_; -} - -void DescribeDcdnUserDomainsRequest::setDomainStatus(const std::string& domainStatus) -{ - domainStatus_ = domainStatus; - setParameter("DomainStatus", domainStatus); -} - -std::string DescribeDcdnUserDomainsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnUserDomainsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeDcdnUserDomainsRequest::getDomainSearchType()const -{ - return domainSearchType_; -} - -void DescribeDcdnUserDomainsRequest::setDomainSearchType(const std::string& domainSearchType) -{ - domainSearchType_ = domainSearchType; - setParameter("DomainSearchType", domainSearchType); + setCoreParameter("FuncFilter", funcFilter); } bool DescribeDcdnUserDomainsRequest::getCheckDomainShow()const @@ -121,7 +44,7 @@ bool DescribeDcdnUserDomainsRequest::getCheckDomainShow()const void DescribeDcdnUserDomainsRequest::setCheckDomainShow(bool checkDomainShow) { checkDomainShow_ = checkDomainShow; - setParameter("CheckDomainShow", std::to_string(checkDomainShow)); + setCoreParameter("CheckDomainShow", checkDomainShow ? "true" : "false"); } std::string DescribeDcdnUserDomainsRequest::getResourceGroupId()const @@ -132,7 +55,7 @@ std::string DescribeDcdnUserDomainsRequest::getResourceGroupId()const void DescribeDcdnUserDomainsRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeDcdnUserDomainsRequest::getSecurityToken()const @@ -143,7 +66,7 @@ std::string DescribeDcdnUserDomainsRequest::getSecurityToken()const void DescribeDcdnUserDomainsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } int DescribeDcdnUserDomainsRequest::getPageSize()const @@ -154,6 +77,72 @@ int DescribeDcdnUserDomainsRequest::getPageSize()const void DescribeDcdnUserDomainsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDcdnUserDomainsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnUserDomainsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long DescribeDcdnUserDomainsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnUserDomainsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDcdnUserDomainsRequest::getFuncId()const +{ + return funcId_; +} + +void DescribeDcdnUserDomainsRequest::setFuncId(const std::string& funcId) +{ + funcId_ = funcId; + setCoreParameter("FuncId", funcId); +} + +int DescribeDcdnUserDomainsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDcdnUserDomainsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDcdnUserDomainsRequest::getDomainStatus()const +{ + return domainStatus_; +} + +void DescribeDcdnUserDomainsRequest::setDomainStatus(const std::string& domainStatus) +{ + domainStatus_ = domainStatus; + setCoreParameter("DomainStatus", domainStatus); +} + +std::string DescribeDcdnUserDomainsRequest::getDomainSearchType()const +{ + return domainSearchType_; +} + +void DescribeDcdnUserDomainsRequest::setDomainSearchType(const std::string& domainSearchType) +{ + domainSearchType_ = domainSearchType; + setCoreParameter("DomainSearchType", domainSearchType); } diff --git a/dcdn/src/model/DescribeDcdnUserDomainsResult.cc b/dcdn/src/model/DescribeDcdnUserDomainsResult.cc index 7067debaf..c94592d94 100644 --- a/dcdn/src/model/DescribeDcdnUserDomainsResult.cc +++ b/dcdn/src/model/DescribeDcdnUserDomainsResult.cc @@ -35,10 +35,13 @@ DescribeDcdnUserDomainsResult::~DescribeDcdnUserDomainsResult() void DescribeDcdnUserDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["PageData"]; for (auto value : allDomains) diff --git a/dcdn/src/model/DescribeDcdnUserQuotaRequest.cc b/dcdn/src/model/DescribeDcdnUserQuotaRequest.cc index e980b7592..71d0f6a3e 100644 --- a/dcdn/src/model/DescribeDcdnUserQuotaRequest.cc +++ b/dcdn/src/model/DescribeDcdnUserQuotaRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnUserQuotaRequest::getSecurityToken()const void DescribeDcdnUserQuotaRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeDcdnUserQuotaRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeDcdnUserQuotaRequest::getOwnerId()const void DescribeDcdnUserQuotaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnUserQuotaRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnUserQuotaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnUserQuotaResult.cc b/dcdn/src/model/DescribeDcdnUserQuotaResult.cc index 3b4d62b5d..dfb4a08b2 100644 --- a/dcdn/src/model/DescribeDcdnUserQuotaResult.cc +++ b/dcdn/src/model/DescribeDcdnUserQuotaResult.cc @@ -35,10 +35,13 @@ DescribeDcdnUserQuotaResult::~DescribeDcdnUserQuotaResult() void DescribeDcdnUserQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainQuota"].isNull()) domainQuota_ = std::stoi(value["DomainQuota"].asString()); diff --git a/dcdn/src/model/DescribeDcdnUserResourcePackageRequest.cc b/dcdn/src/model/DescribeDcdnUserResourcePackageRequest.cc index e57979c59..26bd8377d 100644 --- a/dcdn/src/model/DescribeDcdnUserResourcePackageRequest.cc +++ b/dcdn/src/model/DescribeDcdnUserResourcePackageRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDcdnUserResourcePackageRequest::getSecurityToken()const void DescribeDcdnUserResourcePackageRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeDcdnUserResourcePackageRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeDcdnUserResourcePackageRequest::getOwnerId()const void DescribeDcdnUserResourcePackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeDcdnUserResourcePackageRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeDcdnUserResourcePackageRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeDcdnUserResourcePackageResult.cc b/dcdn/src/model/DescribeDcdnUserResourcePackageResult.cc index ec365b033..b3d94f9ab 100644 --- a/dcdn/src/model/DescribeDcdnUserResourcePackageResult.cc +++ b/dcdn/src/model/DescribeDcdnUserResourcePackageResult.cc @@ -35,10 +35,13 @@ DescribeDcdnUserResourcePackageResult::~DescribeDcdnUserResourcePackageResult() void DescribeDcdnUserResourcePackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResourcePackageInfos = value["ResourcePackageInfos"]["ResourcePackageInfo"]; for (auto value : allResourcePackageInfos) @@ -52,6 +55,8 @@ void DescribeDcdnUserResourcePackageResult::parse(const std::string &payload) resourcePackageInfosObject.commodityCode = value["CommodityCode"].asString(); if(!value["DisplayName"].isNull()) resourcePackageInfosObject.displayName = value["DisplayName"].asString(); + if(!value["TemplateName"].isNull()) + resourcePackageInfosObject.templateName = value["TemplateName"].asString(); if(!value["InstanceId"].isNull()) resourcePackageInfosObject.instanceId = value["InstanceId"].asString(); if(!value["Status"].isNull()) diff --git a/dcdn/src/model/DescribeUserDcdnIpaStatusRequest.cc b/dcdn/src/model/DescribeUserDcdnIpaStatusRequest.cc new file mode 100644 index 000000000..cc585d477 --- /dev/null +++ b/dcdn/src/model/DescribeUserDcdnIpaStatusRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::DescribeUserDcdnIpaStatusRequest; + +DescribeUserDcdnIpaStatusRequest::DescribeUserDcdnIpaStatusRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeUserDcdnIpaStatus") +{} + +DescribeUserDcdnIpaStatusRequest::~DescribeUserDcdnIpaStatusRequest() +{} + +std::string DescribeUserDcdnIpaStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeUserDcdnIpaStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +long DescribeUserDcdnIpaStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserDcdnIpaStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeUserDcdnIpaStatusResult.cc b/dcdn/src/model/DescribeUserDcdnIpaStatusResult.cc new file mode 100644 index 000000000..6b110c207 --- /dev/null +++ b/dcdn/src/model/DescribeUserDcdnIpaStatusResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeUserDcdnIpaStatusResult::DescribeUserDcdnIpaStatusResult() : + ServiceResult() +{} + +DescribeUserDcdnIpaStatusResult::DescribeUserDcdnIpaStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserDcdnIpaStatusResult::~DescribeUserDcdnIpaStatusResult() +{} + +void DescribeUserDcdnIpaStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; + if(!value["OnService"].isNull()) + onService_ = value["OnService"].asString() == "true"; + if(!value["InDebt"].isNull()) + inDebt_ = value["InDebt"].asString() == "true"; + if(!value["InDebtOverdue"].isNull()) + inDebtOverdue_ = value["InDebtOverdue"].asString() == "true"; + +} + +bool DescribeUserDcdnIpaStatusResult::getInDebt()const +{ + return inDebt_; +} + +bool DescribeUserDcdnIpaStatusResult::getEnabled()const +{ + return enabled_; +} + +bool DescribeUserDcdnIpaStatusResult::getInDebtOverdue()const +{ + return inDebtOverdue_; +} + +bool DescribeUserDcdnIpaStatusResult::getOnService()const +{ + return onService_; +} + diff --git a/dcdn/src/model/DescribeUserDcdnStatusRequest.cc b/dcdn/src/model/DescribeUserDcdnStatusRequest.cc index 12cd0ff67..7547389c3 100644 --- a/dcdn/src/model/DescribeUserDcdnStatusRequest.cc +++ b/dcdn/src/model/DescribeUserDcdnStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeUserDcdnStatusRequest::getSecurityToken()const void DescribeUserDcdnStatusRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeUserDcdnStatusRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeUserDcdnStatusRequest::getOwnerId()const void DescribeUserDcdnStatusRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeUserDcdnStatusRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeUserDcdnStatusRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/DescribeUserDcdnStatusResult.cc b/dcdn/src/model/DescribeUserDcdnStatusResult.cc index 142c70b7a..c2e21bb0f 100644 --- a/dcdn/src/model/DescribeUserDcdnStatusResult.cc +++ b/dcdn/src/model/DescribeUserDcdnStatusResult.cc @@ -35,10 +35,13 @@ DescribeUserDcdnStatusResult::~DescribeUserDcdnStatusResult() void DescribeUserDcdnStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Enabled"].isNull()) enabled_ = value["Enabled"].asString() == "true"; diff --git a/dcdn/src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc b/dcdn/src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc new file mode 100644 index 000000000..5d4680c97 --- /dev/null +++ b/dcdn/src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc @@ -0,0 +1,291 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dcdn::Model::ModifyDCdnDomainSchdmByPropertyRequest; + +ModifyDCdnDomainSchdmByPropertyRequest::ModifyDCdnDomainSchdmByPropertyRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "ModifyDCdnDomainSchdmByProperty") +{} + +ModifyDCdnDomainSchdmByPropertyRequest::~ModifyDCdnDomainSchdmByPropertyRequest() +{} + +long ModifyDCdnDomainSchdmByPropertyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyDCdnDomainSchdmByPropertyRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyDCdnDomainSchdmByPropertyRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getProperty()const +{ + return property_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setProperty(const std::string& property) +{ + property_ = property; + setCoreParameter("Property", property); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyDCdnDomainSchdmByPropertyRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getPopProduct()const +{ + return popProduct_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getDomainName()const +{ + return domainName_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long ModifyDCdnDomainSchdmByPropertyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getVersion()const +{ + return version_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool ModifyDCdnDomainSchdmByPropertyRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ModifyDCdnDomainSchdmByPropertyRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ModifyDCdnDomainSchdmByPropertyRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getServiceCode()const +{ + return serviceCode_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string ModifyDCdnDomainSchdmByPropertyRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyDCdnDomainSchdmByPropertyRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/dcdn/src/model/ModifyDCdnDomainSchdmByPropertyResult.cc b/dcdn/src/model/ModifyDCdnDomainSchdmByPropertyResult.cc new file mode 100644 index 000000000..193ab66e7 --- /dev/null +++ b/dcdn/src/model/ModifyDCdnDomainSchdmByPropertyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +ModifyDCdnDomainSchdmByPropertyResult::ModifyDCdnDomainSchdmByPropertyResult() : + ServiceResult() +{} + +ModifyDCdnDomainSchdmByPropertyResult::ModifyDCdnDomainSchdmByPropertyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDCdnDomainSchdmByPropertyResult::~ModifyDCdnDomainSchdmByPropertyResult() +{} + +void ModifyDCdnDomainSchdmByPropertyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/PreloadDcdnObjectCachesRequest.cc b/dcdn/src/model/PreloadDcdnObjectCachesRequest.cc index a2f8971bd..d3496bed3 100644 --- a/dcdn/src/model/PreloadDcdnObjectCachesRequest.cc +++ b/dcdn/src/model/PreloadDcdnObjectCachesRequest.cc @@ -33,7 +33,7 @@ std::string PreloadDcdnObjectCachesRequest::getArea()const void PreloadDcdnObjectCachesRequest::setArea(const std::string& area) { area_ = area; - setParameter("Area", area); + setCoreParameter("Area", area); } std::string PreloadDcdnObjectCachesRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string PreloadDcdnObjectCachesRequest::getSecurityToken()const void PreloadDcdnObjectCachesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string PreloadDcdnObjectCachesRequest::getObjectPath()const @@ -55,7 +55,7 @@ std::string PreloadDcdnObjectCachesRequest::getObjectPath()const void PreloadDcdnObjectCachesRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } long PreloadDcdnObjectCachesRequest::getOwnerId()const @@ -66,17 +66,6 @@ long PreloadDcdnObjectCachesRequest::getOwnerId()const void PreloadDcdnObjectCachesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string PreloadDcdnObjectCachesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void PreloadDcdnObjectCachesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/PreloadDcdnObjectCachesResult.cc b/dcdn/src/model/PreloadDcdnObjectCachesResult.cc index 345ca7233..430c70e68 100644 --- a/dcdn/src/model/PreloadDcdnObjectCachesResult.cc +++ b/dcdn/src/model/PreloadDcdnObjectCachesResult.cc @@ -35,10 +35,13 @@ PreloadDcdnObjectCachesResult::~PreloadDcdnObjectCachesResult() void PreloadDcdnObjectCachesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PreloadTaskId"].isNull()) preloadTaskId_ = value["PreloadTaskId"].asString(); diff --git a/dcdn/src/model/RefreshDcdnObjectCachesRequest.cc b/dcdn/src/model/RefreshDcdnObjectCachesRequest.cc index e32590625..d721a5c9e 100644 --- a/dcdn/src/model/RefreshDcdnObjectCachesRequest.cc +++ b/dcdn/src/model/RefreshDcdnObjectCachesRequest.cc @@ -33,7 +33,7 @@ std::string RefreshDcdnObjectCachesRequest::getSecurityToken()const void RefreshDcdnObjectCachesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string RefreshDcdnObjectCachesRequest::getObjectPath()const @@ -44,7 +44,7 @@ std::string RefreshDcdnObjectCachesRequest::getObjectPath()const void RefreshDcdnObjectCachesRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } long RefreshDcdnObjectCachesRequest::getOwnerId()const @@ -55,7 +55,7 @@ long RefreshDcdnObjectCachesRequest::getOwnerId()const void RefreshDcdnObjectCachesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RefreshDcdnObjectCachesRequest::getObjectType()const @@ -66,17 +66,6 @@ std::string RefreshDcdnObjectCachesRequest::getObjectType()const void RefreshDcdnObjectCachesRequest::setObjectType(const std::string& objectType) { objectType_ = objectType; - setParameter("ObjectType", objectType); -} - -std::string RefreshDcdnObjectCachesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RefreshDcdnObjectCachesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("ObjectType", objectType); } diff --git a/dcdn/src/model/RefreshDcdnObjectCachesResult.cc b/dcdn/src/model/RefreshDcdnObjectCachesResult.cc index 65c56dae2..5cd581b6e 100644 --- a/dcdn/src/model/RefreshDcdnObjectCachesResult.cc +++ b/dcdn/src/model/RefreshDcdnObjectCachesResult.cc @@ -35,10 +35,13 @@ RefreshDcdnObjectCachesResult::~RefreshDcdnObjectCachesResult() void RefreshDcdnObjectCachesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RefreshTaskId"].isNull()) refreshTaskId_ = value["RefreshTaskId"].asString(); diff --git a/dcdn/src/model/SetDcdnDomainCertificateRequest.cc b/dcdn/src/model/SetDcdnDomainCertificateRequest.cc index 949ded11b..9b2ed3a24 100644 --- a/dcdn/src/model/SetDcdnDomainCertificateRequest.cc +++ b/dcdn/src/model/SetDcdnDomainCertificateRequest.cc @@ -33,7 +33,7 @@ std::string SetDcdnDomainCertificateRequest::getForceSet()const void SetDcdnDomainCertificateRequest::setForceSet(const std::string& forceSet) { forceSet_ = forceSet; - setParameter("ForceSet", forceSet); + setCoreParameter("ForceSet", forceSet); } std::string SetDcdnDomainCertificateRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetDcdnDomainCertificateRequest::getSecurityToken()const void SetDcdnDomainCertificateRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetDcdnDomainCertificateRequest::getCertType()const @@ -55,7 +55,7 @@ std::string SetDcdnDomainCertificateRequest::getCertType()const void SetDcdnDomainCertificateRequest::setCertType(const std::string& certType) { certType_ = certType; - setParameter("CertType", certType); + setCoreParameter("CertType", certType); } std::string SetDcdnDomainCertificateRequest::getSSLPub()const @@ -66,7 +66,7 @@ std::string SetDcdnDomainCertificateRequest::getSSLPub()const void SetDcdnDomainCertificateRequest::setSSLPub(const std::string& sSLPub) { sSLPub_ = sSLPub; - setParameter("SSLPub", sSLPub); + setCoreParameter("SSLPub", sSLPub); } std::string SetDcdnDomainCertificateRequest::getCertName()const @@ -77,7 +77,7 @@ std::string SetDcdnDomainCertificateRequest::getCertName()const void SetDcdnDomainCertificateRequest::setCertName(const std::string& certName) { certName_ = certName; - setParameter("CertName", certName); + setCoreParameter("CertName", certName); } std::string SetDcdnDomainCertificateRequest::getSSLProtocol()const @@ -88,7 +88,7 @@ std::string SetDcdnDomainCertificateRequest::getSSLProtocol()const void SetDcdnDomainCertificateRequest::setSSLProtocol(const std::string& sSLProtocol) { sSLProtocol_ = sSLProtocol; - setParameter("SSLProtocol", sSLProtocol); + setCoreParameter("SSLProtocol", sSLProtocol); } std::string SetDcdnDomainCertificateRequest::getDomainName()const @@ -99,7 +99,7 @@ std::string SetDcdnDomainCertificateRequest::getDomainName()const void SetDcdnDomainCertificateRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetDcdnDomainCertificateRequest::getOwnerId()const @@ -110,7 +110,7 @@ long SetDcdnDomainCertificateRequest::getOwnerId()const void SetDcdnDomainCertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetDcdnDomainCertificateRequest::getRegion()const @@ -121,18 +121,7 @@ std::string SetDcdnDomainCertificateRequest::getRegion()const void SetDcdnDomainCertificateRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); -} - -std::string SetDcdnDomainCertificateRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SetDcdnDomainCertificateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("Region", region); } std::string SetDcdnDomainCertificateRequest::getSSLPri()const @@ -143,6 +132,6 @@ std::string SetDcdnDomainCertificateRequest::getSSLPri()const void SetDcdnDomainCertificateRequest::setSSLPri(const std::string& sSLPri) { sSLPri_ = sSLPri; - setParameter("SSLPri", sSLPri); + setCoreParameter("SSLPri", sSLPri); } diff --git a/dcdn/src/model/SetDcdnDomainCertificateResult.cc b/dcdn/src/model/SetDcdnDomainCertificateResult.cc index 00484fc97..c063b8e35 100644 --- a/dcdn/src/model/SetDcdnDomainCertificateResult.cc +++ b/dcdn/src/model/SetDcdnDomainCertificateResult.cc @@ -35,10 +35,13 @@ SetDcdnDomainCertificateResult::~SetDcdnDomainCertificateResult() void SetDcdnDomainCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/StartDcdnDomainRequest.cc b/dcdn/src/model/StartDcdnDomainRequest.cc index b36f3efa7..2ae3c5ca5 100644 --- a/dcdn/src/model/StartDcdnDomainRequest.cc +++ b/dcdn/src/model/StartDcdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string StartDcdnDomainRequest::getSecurityToken()const void StartDcdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StartDcdnDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string StartDcdnDomainRequest::getDomainName()const void StartDcdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long StartDcdnDomainRequest::getOwnerId()const @@ -55,17 +55,6 @@ long StartDcdnDomainRequest::getOwnerId()const void StartDcdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string StartDcdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StartDcdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/StartDcdnDomainResult.cc b/dcdn/src/model/StartDcdnDomainResult.cc index 73c64d091..cdd8681f5 100644 --- a/dcdn/src/model/StartDcdnDomainResult.cc +++ b/dcdn/src/model/StartDcdnDomainResult.cc @@ -35,10 +35,13 @@ StartDcdnDomainResult::~StartDcdnDomainResult() void StartDcdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/StartDcdnIpaDomainRequest.cc b/dcdn/src/model/StartDcdnIpaDomainRequest.cc new file mode 100644 index 000000000..2a43e6a3c --- /dev/null +++ b/dcdn/src/model/StartDcdnIpaDomainRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::StartDcdnIpaDomainRequest; + +StartDcdnIpaDomainRequest::StartDcdnIpaDomainRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "StartDcdnIpaDomain") +{} + +StartDcdnIpaDomainRequest::~StartDcdnIpaDomainRequest() +{} + +std::string StartDcdnIpaDomainRequest::getSecurityToken()const +{ + return securityToken_; +} + +void StartDcdnIpaDomainRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string StartDcdnIpaDomainRequest::getDomainName()const +{ + return domainName_; +} + +void StartDcdnIpaDomainRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long StartDcdnIpaDomainRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartDcdnIpaDomainRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/StartDcdnIpaDomainResult.cc b/dcdn/src/model/StartDcdnIpaDomainResult.cc new file mode 100644 index 000000000..5f34eab90 --- /dev/null +++ b/dcdn/src/model/StartDcdnIpaDomainResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +StartDcdnIpaDomainResult::StartDcdnIpaDomainResult() : + ServiceResult() +{} + +StartDcdnIpaDomainResult::StartDcdnIpaDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartDcdnIpaDomainResult::~StartDcdnIpaDomainResult() +{} + +void StartDcdnIpaDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/StopDcdnDomainRequest.cc b/dcdn/src/model/StopDcdnDomainRequest.cc index 47dcef880..33d7d3e06 100644 --- a/dcdn/src/model/StopDcdnDomainRequest.cc +++ b/dcdn/src/model/StopDcdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string StopDcdnDomainRequest::getSecurityToken()const void StopDcdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StopDcdnDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string StopDcdnDomainRequest::getDomainName()const void StopDcdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long StopDcdnDomainRequest::getOwnerId()const @@ -55,17 +55,6 @@ long StopDcdnDomainRequest::getOwnerId()const void StopDcdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string StopDcdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StopDcdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/StopDcdnDomainResult.cc b/dcdn/src/model/StopDcdnDomainResult.cc index 27a635754..5b12f563d 100644 --- a/dcdn/src/model/StopDcdnDomainResult.cc +++ b/dcdn/src/model/StopDcdnDomainResult.cc @@ -35,10 +35,13 @@ StopDcdnDomainResult::~StopDcdnDomainResult() void StopDcdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/StopDcdnIpaDomainRequest.cc b/dcdn/src/model/StopDcdnIpaDomainRequest.cc new file mode 100644 index 000000000..3f9faaa02 --- /dev/null +++ b/dcdn/src/model/StopDcdnIpaDomainRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dcdn::Model::StopDcdnIpaDomainRequest; + +StopDcdnIpaDomainRequest::StopDcdnIpaDomainRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "StopDcdnIpaDomain") +{} + +StopDcdnIpaDomainRequest::~StopDcdnIpaDomainRequest() +{} + +std::string StopDcdnIpaDomainRequest::getSecurityToken()const +{ + return securityToken_; +} + +void StopDcdnIpaDomainRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string StopDcdnIpaDomainRequest::getDomainName()const +{ + return domainName_; +} + +void StopDcdnIpaDomainRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long StopDcdnIpaDomainRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopDcdnIpaDomainRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/StopDcdnIpaDomainResult.cc b/dcdn/src/model/StopDcdnIpaDomainResult.cc new file mode 100644 index 000000000..25890af96 --- /dev/null +++ b/dcdn/src/model/StopDcdnIpaDomainResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +StopDcdnIpaDomainResult::StopDcdnIpaDomainResult() : + ServiceResult() +{} + +StopDcdnIpaDomainResult::StopDcdnIpaDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopDcdnIpaDomainResult::~StopDcdnIpaDomainResult() +{} + +void StopDcdnIpaDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/UpdateDcdnDomainRequest.cc b/dcdn/src/model/UpdateDcdnDomainRequest.cc index a45ec8611..079a9de1c 100644 --- a/dcdn/src/model/UpdateDcdnDomainRequest.cc +++ b/dcdn/src/model/UpdateDcdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string UpdateDcdnDomainRequest::getTopLevelDomain()const void UpdateDcdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) { topLevelDomain_ = topLevelDomain; - setParameter("TopLevelDomain", topLevelDomain); + setCoreParameter("TopLevelDomain", topLevelDomain); } std::string UpdateDcdnDomainRequest::getResourceGroupId()const @@ -44,7 +44,7 @@ std::string UpdateDcdnDomainRequest::getResourceGroupId()const void UpdateDcdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string UpdateDcdnDomainRequest::getSources()const @@ -55,7 +55,7 @@ std::string UpdateDcdnDomainRequest::getSources()const void UpdateDcdnDomainRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string UpdateDcdnDomainRequest::getSecurityToken()const @@ -66,7 +66,7 @@ std::string UpdateDcdnDomainRequest::getSecurityToken()const void UpdateDcdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UpdateDcdnDomainRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string UpdateDcdnDomainRequest::getDomainName()const void UpdateDcdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long UpdateDcdnDomainRequest::getOwnerId()const @@ -88,17 +88,6 @@ long UpdateDcdnDomainRequest::getOwnerId()const void UpdateDcdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UpdateDcdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateDcdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/dcdn/src/model/UpdateDcdnDomainResult.cc b/dcdn/src/model/UpdateDcdnDomainResult.cc index 225d2b7d9..d86314860 100644 --- a/dcdn/src/model/UpdateDcdnDomainResult.cc +++ b/dcdn/src/model/UpdateDcdnDomainResult.cc @@ -35,10 +35,13 @@ UpdateDcdnDomainResult::~UpdateDcdnDomainResult() void UpdateDcdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dcdn/src/model/UpdateDcdnIpaDomainRequest.cc b/dcdn/src/model/UpdateDcdnIpaDomainRequest.cc new file mode 100644 index 000000000..57773e94e --- /dev/null +++ b/dcdn/src/model/UpdateDcdnIpaDomainRequest.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 + +using AlibabaCloud::Dcdn::Model::UpdateDcdnIpaDomainRequest; + +UpdateDcdnIpaDomainRequest::UpdateDcdnIpaDomainRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "UpdateDcdnIpaDomain") +{} + +UpdateDcdnIpaDomainRequest::~UpdateDcdnIpaDomainRequest() +{} + +std::string UpdateDcdnIpaDomainRequest::getTopLevelDomain()const +{ + return topLevelDomain_; +} + +void UpdateDcdnIpaDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) +{ + topLevelDomain_ = topLevelDomain; + setCoreParameter("TopLevelDomain", topLevelDomain); +} + +std::string UpdateDcdnIpaDomainRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void UpdateDcdnIpaDomainRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string UpdateDcdnIpaDomainRequest::getSources()const +{ + return sources_; +} + +void UpdateDcdnIpaDomainRequest::setSources(const std::string& sources) +{ + sources_ = sources; + setCoreParameter("Sources", sources); +} + +std::string UpdateDcdnIpaDomainRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateDcdnIpaDomainRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpdateDcdnIpaDomainRequest::getDomainName()const +{ + return domainName_; +} + +void UpdateDcdnIpaDomainRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long UpdateDcdnIpaDomainRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateDcdnIpaDomainRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/UpdateDcdnIpaDomainResult.cc b/dcdn/src/model/UpdateDcdnIpaDomainResult.cc new file mode 100644 index 000000000..9caf2ce92 --- /dev/null +++ b/dcdn/src/model/UpdateDcdnIpaDomainResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +UpdateDcdnIpaDomainResult::UpdateDcdnIpaDomainResult() : + ServiceResult() +{} + +UpdateDcdnIpaDomainResult::UpdateDcdnIpaDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDcdnIpaDomainResult::~UpdateDcdnIpaDomainResult() +{} + +void UpdateDcdnIpaDomainResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/CMakeLists.txt b/dds/CMakeLists.txt index 6cf05b996..25b816bd4 100644 --- a/dds/CMakeLists.txt +++ b/dds/CMakeLists.txt @@ -20,10 +20,418 @@ set(dds_public_header include/alibabacloud/dds/DdsClient.h include/alibabacloud/dds/DdsExport.h ) -set(dds_public_header_model ) +set(dds_public_header_model + include/alibabacloud/dds/model/ModifyAuditLogFilterRequest.h + include/alibabacloud/dds/model/ModifyAuditLogFilterResult.h + include/alibabacloud/dds/model/UntagResourcesRequest.h + include/alibabacloud/dds/model/UntagResourcesResult.h + include/alibabacloud/dds/model/CheckRecoveryConditionRequest.h + include/alibabacloud/dds/model/CheckRecoveryConditionResult.h + include/alibabacloud/dds/model/ModifyParametersRequest.h + include/alibabacloud/dds/model/ModifyParametersResult.h + include/alibabacloud/dds/model/DescribeDBInstanceMonitorRequest.h + include/alibabacloud/dds/model/DescribeDBInstanceMonitorResult.h + include/alibabacloud/dds/model/DescribeReplicaSetRoleRequest.h + include/alibabacloud/dds/model/DescribeReplicaSetRoleResult.h + include/alibabacloud/dds/model/ModifyAccountDescriptionRequest.h + include/alibabacloud/dds/model/ModifyAccountDescriptionResult.h + include/alibabacloud/dds/model/DescribeShardingNetworkAddressRequest.h + include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h + include/alibabacloud/dds/model/MigrateAvailableZoneRequest.h + include/alibabacloud/dds/model/MigrateAvailableZoneResult.h + include/alibabacloud/dds/model/ReleaseReplicaRequest.h + include/alibabacloud/dds/model/ReleaseReplicaResult.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskRequest.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskResult.h + include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionRequest.h + include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionResult.h + include/alibabacloud/dds/model/ModifyReplicaRecoveryModeRequest.h + include/alibabacloud/dds/model/ModifyReplicaRecoveryModeResult.h + include/alibabacloud/dds/model/DescribeReplicasRequest.h + include/alibabacloud/dds/model/DescribeReplicasResult.h + include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringResult.h + include/alibabacloud/dds/model/RestartDBInstanceRequest.h + include/alibabacloud/dds/model/RestartDBInstanceResult.h + include/alibabacloud/dds/model/DescribeReplicaConflictInfoRequest.h + include/alibabacloud/dds/model/DescribeReplicaConflictInfoResult.h + include/alibabacloud/dds/model/DescribeAuditLogFilterRequest.h + include/alibabacloud/dds/model/DescribeAuditLogFilterResult.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskCountRequest.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskCountResult.h + include/alibabacloud/dds/model/CreateAccountRequest.h + include/alibabacloud/dds/model/CreateAccountResult.h + include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressRequest.h + include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressResult.h + include/alibabacloud/dds/model/ModifyDBInstanceMonitorRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceMonitorResult.h + include/alibabacloud/dds/model/ModifyBackupPolicyRequest.h + include/alibabacloud/dds/model/ModifyBackupPolicyResult.h + include/alibabacloud/dds/model/DescribeReplicaInitializeProgressRequest.h + include/alibabacloud/dds/model/DescribeReplicaInitializeProgressResult.h + include/alibabacloud/dds/model/ModifyReplicaDescriptionRequest.h + include/alibabacloud/dds/model/ModifyReplicaDescriptionResult.h + include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeRequest.h + include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeResult.h + include/alibabacloud/dds/model/DescribeParametersRequest.h + include/alibabacloud/dds/model/DescribeParametersResult.h + include/alibabacloud/dds/model/DescribeRenewalPriceRequest.h + include/alibabacloud/dds/model/DescribeRenewalPriceResult.h + include/alibabacloud/dds/model/CreateStaticVerificationRequest.h + include/alibabacloud/dds/model/CreateStaticVerificationResult.h + include/alibabacloud/dds/model/DescribeDBInstanceAttributeRequest.h + include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h + include/alibabacloud/dds/model/CreateRecommendationTaskRequest.h + include/alibabacloud/dds/model/CreateRecommendationTaskResult.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeRequest.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeResult.h + include/alibabacloud/dds/model/DescribeAuditPolicyRequest.h + include/alibabacloud/dds/model/DescribeAuditPolicyResult.h + include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeResult.h + include/alibabacloud/dds/model/SwithcDBInstanceHARequest.h + include/alibabacloud/dds/model/SwithcDBInstanceHAResult.h + include/alibabacloud/dds/model/CreateNodeRequest.h + include/alibabacloud/dds/model/CreateNodeResult.h + include/alibabacloud/dds/model/DescribeAuditRecordsRequest.h + include/alibabacloud/dds/model/DescribeAuditRecordsResult.h + include/alibabacloud/dds/model/DescribeBackupsRequest.h + include/alibabacloud/dds/model/DescribeBackupsResult.h + include/alibabacloud/dds/model/DescribeRdsVpcsRequest.h + include/alibabacloud/dds/model/DescribeRdsVpcsResult.h + include/alibabacloud/dds/model/DeleteDBInstanceRequest.h + include/alibabacloud/dds/model/DeleteDBInstanceResult.h + include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.h + include/alibabacloud/dds/model/RestoreDBInstanceRequest.h + include/alibabacloud/dds/model/RestoreDBInstanceResult.h + include/alibabacloud/dds/model/DescribeRdsVSwitchsRequest.h + include/alibabacloud/dds/model/DescribeRdsVSwitchsResult.h + include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceSpecResult.h + include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h + include/alibabacloud/dds/model/CreateShardingDBInstanceResult.h + include/alibabacloud/dds/model/DescribeErrorLogRecordsRequest.h + include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h + include/alibabacloud/dds/model/ModifySecurityIpsRequest.h + include/alibabacloud/dds/model/ModifySecurityIpsResult.h + include/alibabacloud/dds/model/DescribeVerificationListRequest.h + include/alibabacloud/dds/model/DescribeVerificationListResult.h + include/alibabacloud/dds/model/ModifyReplicaModeRequest.h + include/alibabacloud/dds/model/ModifyReplicaModeResult.h + include/alibabacloud/dds/model/DescribeStrategyRequest.h + include/alibabacloud/dds/model/DescribeStrategyResult.h + include/alibabacloud/dds/model/TagResourcesRequest.h + include/alibabacloud/dds/model/TagResourcesResult.h + include/alibabacloud/dds/model/TransformToPrePaidRequest.h + include/alibabacloud/dds/model/TransformToPrePaidResult.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionRequest.h + include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionResult.h + include/alibabacloud/dds/model/DescribeDBInstancePerformanceRequest.h + include/alibabacloud/dds/model/DescribeDBInstancePerformanceResult.h + include/alibabacloud/dds/model/ListTagResourcesRequest.h + include/alibabacloud/dds/model/ListTagResourcesResult.h + include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeResult.h + include/alibabacloud/dds/model/DescribeDBInstancesRequest.h + include/alibabacloud/dds/model/DescribeDBInstancesResult.h + include/alibabacloud/dds/model/DescribeParameterTemplatesRequest.h + include/alibabacloud/dds/model/DescribeParameterTemplatesResult.h + include/alibabacloud/dds/model/DeleteNodeRequest.h + include/alibabacloud/dds/model/DeleteNodeResult.h + include/alibabacloud/dds/model/DestroyInstanceRequest.h + include/alibabacloud/dds/model/DestroyInstanceResult.h + include/alibabacloud/dds/model/DescribeRunningLogRecordsRequest.h + include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h + include/alibabacloud/dds/model/ModifyDBInstanceSSLRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceSSLResult.h + include/alibabacloud/dds/model/CreateDBInstanceRequest.h + include/alibabacloud/dds/model/CreateDBInstanceResult.h + include/alibabacloud/dds/model/DescribeAuditFilesRequest.h + include/alibabacloud/dds/model/DescribeAuditFilesResult.h + include/alibabacloud/dds/model/DescribeStaticVerificationListRequest.h + include/alibabacloud/dds/model/DescribeStaticVerificationListResult.h + include/alibabacloud/dds/model/DescribeAvaliableTimeRangeRequest.h + include/alibabacloud/dds/model/DescribeAvaliableTimeRangeResult.h + include/alibabacloud/dds/model/AllocatePublicNetworkAddressRequest.h + include/alibabacloud/dds/model/AllocatePublicNetworkAddressResult.h + include/alibabacloud/dds/model/DescribeSecurityIpsRequest.h + include/alibabacloud/dds/model/DescribeSecurityIpsResult.h + include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressRequest.h + include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressResult.h + include/alibabacloud/dds/model/DescribeIndexRecommendationRequest.h + include/alibabacloud/dds/model/DescribeIndexRecommendationResult.h + include/alibabacloud/dds/model/DescribeAvailableEngineVersionRequest.h + include/alibabacloud/dds/model/DescribeAvailableEngineVersionResult.h + include/alibabacloud/dds/model/ModifyReplicaRelationRequest.h + include/alibabacloud/dds/model/ModifyReplicaRelationResult.h + include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeResult.h + include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.h + include/alibabacloud/dds/model/DescribeKernelReleaseNotesResult.h + include/alibabacloud/dds/model/DescribeAvailableTimeRangeRequest.h + include/alibabacloud/dds/model/DescribeAvailableTimeRangeResult.h + include/alibabacloud/dds/model/ModifyAuditPolicyRequest.h + include/alibabacloud/dds/model/ModifyAuditPolicyResult.h + include/alibabacloud/dds/model/DescribeReplicaUsageRequest.h + include/alibabacloud/dds/model/DescribeReplicaUsageResult.h + include/alibabacloud/dds/model/CreateBackupRequest.h + include/alibabacloud/dds/model/CreateBackupResult.h + include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeResult.h + include/alibabacloud/dds/model/ModifyDBInstanceDescriptionRequest.h + include/alibabacloud/dds/model/ModifyDBInstanceDescriptionResult.h + include/alibabacloud/dds/model/DescribeReplicaPerformanceRequest.h + include/alibabacloud/dds/model/DescribeReplicaPerformanceResult.h + include/alibabacloud/dds/model/ModifyNodeSpecRequest.h + include/alibabacloud/dds/model/ModifyNodeSpecResult.h + include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionRequest.h + include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionResult.h + include/alibabacloud/dds/model/DescribeRegionsRequest.h + include/alibabacloud/dds/model/DescribeRegionsResult.h + include/alibabacloud/dds/model/MigrateToOtherZoneRequest.h + include/alibabacloud/dds/model/MigrateToOtherZoneResult.h + include/alibabacloud/dds/model/DescribeReplicationGroupRequest.h + include/alibabacloud/dds/model/DescribeReplicationGroupResult.h + include/alibabacloud/dds/model/DescribeSlowLogRecordsRequest.h + include/alibabacloud/dds/model/DescribeSlowLogRecordsResult.h + include/alibabacloud/dds/model/DescribeParameterModificationHistoryRequest.h + include/alibabacloud/dds/model/DescribeParameterModificationHistoryResult.h + include/alibabacloud/dds/model/ResetAccountPasswordRequest.h + include/alibabacloud/dds/model/ResetAccountPasswordResult.h + include/alibabacloud/dds/model/SampleRequest.h + include/alibabacloud/dds/model/SampleResult.h + include/alibabacloud/dds/model/ReleasePublicNetworkAddressRequest.h + include/alibabacloud/dds/model/ReleasePublicNetworkAddressResult.h + include/alibabacloud/dds/model/DescribeAccountsRequest.h + include/alibabacloud/dds/model/DescribeAccountsResult.h + include/alibabacloud/dds/model/DescribeDBInstanceSSLRequest.h + include/alibabacloud/dds/model/DescribeDBInstanceSSLResult.h + include/alibabacloud/dds/model/DescribeRoleZoneInfoRequest.h + include/alibabacloud/dds/model/DescribeRoleZoneInfoResult.h + include/alibabacloud/dds/model/RenewDBInstanceRequest.h + include/alibabacloud/dds/model/RenewDBInstanceResult.h + include/alibabacloud/dds/model/EvaluateFailOverSwitchRequest.h + include/alibabacloud/dds/model/EvaluateFailOverSwitchResult.h + include/alibabacloud/dds/model/ModifyGuardDomainModeRequest.h + include/alibabacloud/dds/model/ModifyGuardDomainModeResult.h + include/alibabacloud/dds/model/ModifyReplicaVerificationModeRequest.h + include/alibabacloud/dds/model/ModifyReplicaVerificationModeResult.h + include/alibabacloud/dds/model/ModifyActiveOperationTaskRequest.h + include/alibabacloud/dds/model/ModifyActiveOperationTaskResult.h + include/alibabacloud/dds/model/DescribeBackupPolicyRequest.h + include/alibabacloud/dds/model/DescribeBackupPolicyResult.h + include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h + include/alibabacloud/dds/model/SwitchDBInstanceHAResult.h + include/alibabacloud/dds/model/DescribeBackupDBsRequest.h + include/alibabacloud/dds/model/DescribeBackupDBsResult.h ) set(dds_src - src/DdsClient.cc ) + src/DdsClient.cc + src/model/ModifyAuditLogFilterRequest.cc + src/model/ModifyAuditLogFilterResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/CheckRecoveryConditionRequest.cc + src/model/CheckRecoveryConditionResult.cc + src/model/ModifyParametersRequest.cc + src/model/ModifyParametersResult.cc + src/model/DescribeDBInstanceMonitorRequest.cc + src/model/DescribeDBInstanceMonitorResult.cc + src/model/DescribeReplicaSetRoleRequest.cc + src/model/DescribeReplicaSetRoleResult.cc + src/model/ModifyAccountDescriptionRequest.cc + src/model/ModifyAccountDescriptionResult.cc + src/model/DescribeShardingNetworkAddressRequest.cc + src/model/DescribeShardingNetworkAddressResult.cc + src/model/MigrateAvailableZoneRequest.cc + src/model/MigrateAvailableZoneResult.cc + src/model/ReleaseReplicaRequest.cc + src/model/ReleaseReplicaResult.cc + src/model/DescribeActiveOperationTaskRequest.cc + src/model/DescribeActiveOperationTaskResult.cc + src/model/UpgradeDBInstanceEngineVersionRequest.cc + src/model/UpgradeDBInstanceEngineVersionResult.cc + src/model/ModifyReplicaRecoveryModeRequest.cc + src/model/ModifyReplicaRecoveryModeResult.cc + src/model/DescribeReplicasRequest.cc + src/model/DescribeReplicasResult.cc + src/model/ModifyDBInstanceConnectionStringRequest.cc + src/model/ModifyDBInstanceConnectionStringResult.cc + src/model/RestartDBInstanceRequest.cc + src/model/RestartDBInstanceResult.cc + src/model/DescribeReplicaConflictInfoRequest.cc + src/model/DescribeReplicaConflictInfoResult.cc + src/model/DescribeAuditLogFilterRequest.cc + src/model/DescribeAuditLogFilterResult.cc + src/model/DescribeActiveOperationTaskCountRequest.cc + src/model/DescribeActiveOperationTaskCountResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc + src/model/AllocateNodePrivateNetworkAddressRequest.cc + src/model/AllocateNodePrivateNetworkAddressResult.cc + src/model/ModifyDBInstanceMonitorRequest.cc + src/model/ModifyDBInstanceMonitorResult.cc + src/model/ModifyBackupPolicyRequest.cc + src/model/ModifyBackupPolicyResult.cc + src/model/DescribeReplicaInitializeProgressRequest.cc + src/model/DescribeReplicaInitializeProgressResult.cc + src/model/ModifyReplicaDescriptionRequest.cc + src/model/ModifyReplicaDescriptionResult.cc + src/model/ModifyInstanceVpcAuthModeRequest.cc + src/model/ModifyInstanceVpcAuthModeResult.cc + src/model/DescribeParametersRequest.cc + src/model/DescribeParametersResult.cc + src/model/DescribeRenewalPriceRequest.cc + src/model/DescribeRenewalPriceResult.cc + src/model/CreateStaticVerificationRequest.cc + src/model/CreateStaticVerificationResult.cc + src/model/DescribeDBInstanceAttributeRequest.cc + src/model/DescribeDBInstanceAttributeResult.cc + src/model/CreateRecommendationTaskRequest.cc + src/model/CreateRecommendationTaskResult.cc + src/model/DescribeActiveOperationTaskTypeRequest.cc + src/model/DescribeActiveOperationTaskTypeResult.cc + src/model/DescribeAuditPolicyRequest.cc + src/model/DescribeAuditPolicyResult.cc + src/model/ModifyInstanceAutoRenewalAttributeRequest.cc + src/model/ModifyInstanceAutoRenewalAttributeResult.cc + src/model/SwithcDBInstanceHARequest.cc + src/model/SwithcDBInstanceHAResult.cc + src/model/CreateNodeRequest.cc + src/model/CreateNodeResult.cc + src/model/DescribeAuditRecordsRequest.cc + src/model/DescribeAuditRecordsResult.cc + src/model/DescribeBackupsRequest.cc + src/model/DescribeBackupsResult.cc + src/model/DescribeRdsVpcsRequest.cc + src/model/DescribeRdsVpcsResult.cc + src/model/DeleteDBInstanceRequest.cc + src/model/DeleteDBInstanceResult.cc + src/model/DescribeInstanceAutoRenewalAttributeRequest.cc + src/model/DescribeInstanceAutoRenewalAttributeResult.cc + src/model/RestoreDBInstanceRequest.cc + src/model/RestoreDBInstanceResult.cc + src/model/DescribeRdsVSwitchsRequest.cc + src/model/DescribeRdsVSwitchsResult.cc + src/model/ModifyDBInstanceSpecRequest.cc + src/model/ModifyDBInstanceSpecResult.cc + src/model/CreateShardingDBInstanceRequest.cc + src/model/CreateShardingDBInstanceResult.cc + src/model/DescribeErrorLogRecordsRequest.cc + src/model/DescribeErrorLogRecordsResult.cc + src/model/ModifySecurityIpsRequest.cc + src/model/ModifySecurityIpsResult.cc + src/model/DescribeVerificationListRequest.cc + src/model/DescribeVerificationListResult.cc + src/model/ModifyReplicaModeRequest.cc + src/model/ModifyReplicaModeResult.cc + src/model/DescribeStrategyRequest.cc + src/model/DescribeStrategyResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/TransformToPrePaidRequest.cc + src/model/TransformToPrePaidResult.cc + src/model/DescribeActiveOperationTaskRegionRequest.cc + src/model/DescribeActiveOperationTaskRegionResult.cc + src/model/DescribeDBInstancePerformanceRequest.cc + src/model/DescribeDBInstancePerformanceResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ModifyDBInstanceNetExpireTimeRequest.cc + src/model/ModifyDBInstanceNetExpireTimeResult.cc + src/model/DescribeDBInstancesRequest.cc + src/model/DescribeDBInstancesResult.cc + src/model/DescribeParameterTemplatesRequest.cc + src/model/DescribeParameterTemplatesResult.cc + src/model/DeleteNodeRequest.cc + src/model/DeleteNodeResult.cc + src/model/DestroyInstanceRequest.cc + src/model/DestroyInstanceResult.cc + src/model/DescribeRunningLogRecordsRequest.cc + src/model/DescribeRunningLogRecordsResult.cc + src/model/ModifyDBInstanceSSLRequest.cc + src/model/ModifyDBInstanceSSLResult.cc + src/model/CreateDBInstanceRequest.cc + src/model/CreateDBInstanceResult.cc + src/model/DescribeAuditFilesRequest.cc + src/model/DescribeAuditFilesResult.cc + src/model/DescribeStaticVerificationListRequest.cc + src/model/DescribeStaticVerificationListResult.cc + src/model/DescribeAvaliableTimeRangeRequest.cc + src/model/DescribeAvaliableTimeRangeResult.cc + src/model/AllocatePublicNetworkAddressRequest.cc + src/model/AllocatePublicNetworkAddressResult.cc + src/model/DescribeSecurityIpsRequest.cc + src/model/DescribeSecurityIpsResult.cc + src/model/ReleaseNodePrivateNetworkAddressRequest.cc + src/model/ReleaseNodePrivateNetworkAddressResult.cc + src/model/DescribeIndexRecommendationRequest.cc + src/model/DescribeIndexRecommendationResult.cc + src/model/DescribeAvailableEngineVersionRequest.cc + src/model/DescribeAvailableEngineVersionResult.cc + src/model/ModifyReplicaRelationRequest.cc + src/model/ModifyReplicaRelationResult.cc + src/model/ModifyDBInstanceNetworkTypeRequest.cc + src/model/ModifyDBInstanceNetworkTypeResult.cc + src/model/DescribeKernelReleaseNotesRequest.cc + src/model/DescribeKernelReleaseNotesResult.cc + src/model/DescribeAvailableTimeRangeRequest.cc + src/model/DescribeAvailableTimeRangeResult.cc + src/model/ModifyAuditPolicyRequest.cc + src/model/ModifyAuditPolicyResult.cc + src/model/DescribeReplicaUsageRequest.cc + src/model/DescribeReplicaUsageResult.cc + src/model/CreateBackupRequest.cc + src/model/CreateBackupResult.cc + src/model/ModifyDBInstanceMaintainTimeRequest.cc + src/model/ModifyDBInstanceMaintainTimeResult.cc + src/model/ModifyDBInstanceDescriptionRequest.cc + src/model/ModifyDBInstanceDescriptionResult.cc + src/model/DescribeReplicaPerformanceRequest.cc + src/model/DescribeReplicaPerformanceResult.cc + src/model/ModifyNodeSpecRequest.cc + src/model/ModifyNodeSpecResult.cc + src/model/UpgradeDBInstanceKernelVersionRequest.cc + src/model/UpgradeDBInstanceKernelVersionResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/MigrateToOtherZoneRequest.cc + src/model/MigrateToOtherZoneResult.cc + src/model/DescribeReplicationGroupRequest.cc + src/model/DescribeReplicationGroupResult.cc + src/model/DescribeSlowLogRecordsRequest.cc + src/model/DescribeSlowLogRecordsResult.cc + src/model/DescribeParameterModificationHistoryRequest.cc + src/model/DescribeParameterModificationHistoryResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc + src/model/SampleRequest.cc + src/model/SampleResult.cc + src/model/ReleasePublicNetworkAddressRequest.cc + src/model/ReleasePublicNetworkAddressResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/DescribeDBInstanceSSLRequest.cc + src/model/DescribeDBInstanceSSLResult.cc + src/model/DescribeRoleZoneInfoRequest.cc + src/model/DescribeRoleZoneInfoResult.cc + src/model/RenewDBInstanceRequest.cc + src/model/RenewDBInstanceResult.cc + src/model/EvaluateFailOverSwitchRequest.cc + src/model/EvaluateFailOverSwitchResult.cc + src/model/ModifyGuardDomainModeRequest.cc + src/model/ModifyGuardDomainModeResult.cc + src/model/ModifyReplicaVerificationModeRequest.cc + src/model/ModifyReplicaVerificationModeResult.cc + src/model/ModifyActiveOperationTaskRequest.cc + src/model/ModifyActiveOperationTaskResult.cc + src/model/DescribeBackupPolicyRequest.cc + src/model/DescribeBackupPolicyResult.cc + src/model/SwitchDBInstanceHARequest.cc + src/model/SwitchDBInstanceHAResult.cc + src/model/DescribeBackupDBsRequest.cc + src/model/DescribeBackupDBsResult.cc ) add_library(dds ${LIB_TYPE} ${dds_public_header} diff --git a/dds/include/alibabacloud/dds/DdsClient.h b/dds/include/alibabacloud/dds/DdsClient.h index 3464a6ae2..28c0a7032 100644 --- a/dds/include/alibabacloud/dds/DdsClient.h +++ b/dds/include/alibabacloud/dds/DdsClient.h @@ -48,10 +48,10 @@ #include "model/UpgradeDBInstanceEngineVersionResult.h" #include "model/ModifyReplicaRecoveryModeRequest.h" #include "model/ModifyReplicaRecoveryModeResult.h" -#include "model/ModifyDBInstanceConnectionStringRequest.h" -#include "model/ModifyDBInstanceConnectionStringResult.h" #include "model/DescribeReplicasRequest.h" #include "model/DescribeReplicasResult.h" +#include "model/ModifyDBInstanceConnectionStringRequest.h" +#include "model/ModifyDBInstanceConnectionStringResult.h" #include "model/RestartDBInstanceRequest.h" #include "model/RestartDBInstanceResult.h" #include "model/DescribeReplicaConflictInfoRequest.h" @@ -62,22 +62,26 @@ #include "model/DescribeActiveOperationTaskCountResult.h" #include "model/CreateAccountRequest.h" #include "model/CreateAccountResult.h" +#include "model/AllocateNodePrivateNetworkAddressRequest.h" +#include "model/AllocateNodePrivateNetworkAddressResult.h" #include "model/ModifyDBInstanceMonitorRequest.h" #include "model/ModifyDBInstanceMonitorResult.h" -#include "model/ModifyReplicaDescriptionRequest.h" -#include "model/ModifyReplicaDescriptionResult.h" -#include "model/DescribeReplicaInitializeProgressRequest.h" -#include "model/DescribeReplicaInitializeProgressResult.h" #include "model/ModifyBackupPolicyRequest.h" #include "model/ModifyBackupPolicyResult.h" +#include "model/DescribeReplicaInitializeProgressRequest.h" +#include "model/DescribeReplicaInitializeProgressResult.h" +#include "model/ModifyReplicaDescriptionRequest.h" +#include "model/ModifyReplicaDescriptionResult.h" +#include "model/ModifyInstanceVpcAuthModeRequest.h" +#include "model/ModifyInstanceVpcAuthModeResult.h" #include "model/DescribeParametersRequest.h" #include "model/DescribeParametersResult.h" #include "model/DescribeRenewalPriceRequest.h" #include "model/DescribeRenewalPriceResult.h" -#include "model/DescribeDBInstanceAttributeRequest.h" -#include "model/DescribeDBInstanceAttributeResult.h" #include "model/CreateStaticVerificationRequest.h" #include "model/CreateStaticVerificationResult.h" +#include "model/DescribeDBInstanceAttributeRequest.h" +#include "model/DescribeDBInstanceAttributeResult.h" #include "model/CreateRecommendationTaskRequest.h" #include "model/CreateRecommendationTaskResult.h" #include "model/DescribeActiveOperationTaskTypeRequest.h" @@ -86,10 +90,10 @@ #include "model/DescribeAuditPolicyResult.h" #include "model/ModifyInstanceAutoRenewalAttributeRequest.h" #include "model/ModifyInstanceAutoRenewalAttributeResult.h" -#include "model/CreateNodeRequest.h" -#include "model/CreateNodeResult.h" #include "model/SwithcDBInstanceHARequest.h" #include "model/SwithcDBInstanceHAResult.h" +#include "model/CreateNodeRequest.h" +#include "model/CreateNodeResult.h" #include "model/DescribeAuditRecordsRequest.h" #include "model/DescribeAuditRecordsResult.h" #include "model/DescribeBackupsRequest.h" @@ -140,10 +144,10 @@ #include "model/DestroyInstanceResult.h" #include "model/DescribeRunningLogRecordsRequest.h" #include "model/DescribeRunningLogRecordsResult.h" -#include "model/CreateDBInstanceRequest.h" -#include "model/CreateDBInstanceResult.h" #include "model/ModifyDBInstanceSSLRequest.h" #include "model/ModifyDBInstanceSSLResult.h" +#include "model/CreateDBInstanceRequest.h" +#include "model/CreateDBInstanceResult.h" #include "model/DescribeAuditFilesRequest.h" #include "model/DescribeAuditFilesResult.h" #include "model/DescribeStaticVerificationListRequest.h" @@ -154,6 +158,8 @@ #include "model/AllocatePublicNetworkAddressResult.h" #include "model/DescribeSecurityIpsRequest.h" #include "model/DescribeSecurityIpsResult.h" +#include "model/ReleaseNodePrivateNetworkAddressRequest.h" +#include "model/ReleaseNodePrivateNetworkAddressResult.h" #include "model/DescribeIndexRecommendationRequest.h" #include "model/DescribeIndexRecommendationResult.h" #include "model/DescribeAvailableEngineVersionRequest.h" @@ -184,10 +190,10 @@ #include "model/UpgradeDBInstanceKernelVersionResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" -#include "model/DescribeReplicationGroupRequest.h" -#include "model/DescribeReplicationGroupResult.h" #include "model/MigrateToOtherZoneRequest.h" #include "model/MigrateToOtherZoneResult.h" +#include "model/DescribeReplicationGroupRequest.h" +#include "model/DescribeReplicationGroupResult.h" #include "model/DescribeSlowLogRecordsRequest.h" #include "model/DescribeSlowLogRecordsResult.h" #include "model/DescribeParameterModificationHistoryRequest.h" @@ -202,6 +208,8 @@ #include "model/DescribeAccountsResult.h" #include "model/DescribeDBInstanceSSLRequest.h" #include "model/DescribeDBInstanceSSLResult.h" +#include "model/DescribeRoleZoneInfoRequest.h" +#include "model/DescribeRoleZoneInfoResult.h" #include "model/RenewDBInstanceRequest.h" #include "model/RenewDBInstanceResult.h" #include "model/EvaluateFailOverSwitchRequest.h" @@ -266,12 +274,12 @@ namespace AlibabaCloud typedef Outcome ModifyReplicaRecoveryModeOutcome; typedef std::future ModifyReplicaRecoveryModeOutcomeCallable; typedef std::function&)> ModifyReplicaRecoveryModeAsyncHandler; - typedef Outcome ModifyDBInstanceConnectionStringOutcome; - typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; - typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; typedef Outcome DescribeReplicasOutcome; typedef std::future DescribeReplicasOutcomeCallable; typedef std::function&)> DescribeReplicasAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionStringOutcome; + typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; typedef Outcome RestartDBInstanceOutcome; typedef std::future RestartDBInstanceOutcomeCallable; typedef std::function&)> RestartDBInstanceAsyncHandler; @@ -287,30 +295,36 @@ namespace AlibabaCloud typedef Outcome CreateAccountOutcome; typedef std::future CreateAccountOutcomeCallable; typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome AllocateNodePrivateNetworkAddressOutcome; + typedef std::future AllocateNodePrivateNetworkAddressOutcomeCallable; + typedef std::function&)> AllocateNodePrivateNetworkAddressAsyncHandler; typedef Outcome ModifyDBInstanceMonitorOutcome; typedef std::future ModifyDBInstanceMonitorOutcomeCallable; typedef std::function&)> ModifyDBInstanceMonitorAsyncHandler; - typedef Outcome ModifyReplicaDescriptionOutcome; - typedef std::future ModifyReplicaDescriptionOutcomeCallable; - typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; - typedef Outcome DescribeReplicaInitializeProgressOutcome; - typedef std::future DescribeReplicaInitializeProgressOutcomeCallable; - typedef std::function&)> DescribeReplicaInitializeProgressAsyncHandler; typedef Outcome ModifyBackupPolicyOutcome; typedef std::future ModifyBackupPolicyOutcomeCallable; typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome DescribeReplicaInitializeProgressOutcome; + typedef std::future DescribeReplicaInitializeProgressOutcomeCallable; + typedef std::function&)> DescribeReplicaInitializeProgressAsyncHandler; + typedef Outcome ModifyReplicaDescriptionOutcome; + typedef std::future ModifyReplicaDescriptionOutcomeCallable; + typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; + typedef Outcome ModifyInstanceVpcAuthModeOutcome; + typedef std::future ModifyInstanceVpcAuthModeOutcomeCallable; + typedef std::function&)> ModifyInstanceVpcAuthModeAsyncHandler; typedef Outcome DescribeParametersOutcome; typedef std::future DescribeParametersOutcomeCallable; typedef std::function&)> DescribeParametersAsyncHandler; typedef Outcome DescribeRenewalPriceOutcome; typedef std::future DescribeRenewalPriceOutcomeCallable; typedef std::function&)> DescribeRenewalPriceAsyncHandler; - typedef Outcome DescribeDBInstanceAttributeOutcome; - typedef std::future DescribeDBInstanceAttributeOutcomeCallable; - typedef std::function&)> DescribeDBInstanceAttributeAsyncHandler; typedef Outcome CreateStaticVerificationOutcome; typedef std::future CreateStaticVerificationOutcomeCallable; typedef std::function&)> CreateStaticVerificationAsyncHandler; + typedef Outcome DescribeDBInstanceAttributeOutcome; + typedef std::future DescribeDBInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeDBInstanceAttributeAsyncHandler; typedef Outcome CreateRecommendationTaskOutcome; typedef std::future CreateRecommendationTaskOutcomeCallable; typedef std::function&)> CreateRecommendationTaskAsyncHandler; @@ -323,12 +337,12 @@ namespace AlibabaCloud typedef Outcome ModifyInstanceAutoRenewalAttributeOutcome; typedef std::future ModifyInstanceAutoRenewalAttributeOutcomeCallable; typedef std::function&)> ModifyInstanceAutoRenewalAttributeAsyncHandler; - typedef Outcome CreateNodeOutcome; - typedef std::future CreateNodeOutcomeCallable; - typedef std::function&)> CreateNodeAsyncHandler; typedef Outcome SwithcDBInstanceHAOutcome; typedef std::future SwithcDBInstanceHAOutcomeCallable; typedef std::function&)> SwithcDBInstanceHAAsyncHandler; + typedef Outcome CreateNodeOutcome; + typedef std::future CreateNodeOutcomeCallable; + typedef std::function&)> CreateNodeAsyncHandler; typedef Outcome DescribeAuditRecordsOutcome; typedef std::future DescribeAuditRecordsOutcomeCallable; typedef std::function&)> DescribeAuditRecordsAsyncHandler; @@ -404,12 +418,12 @@ namespace AlibabaCloud typedef Outcome DescribeRunningLogRecordsOutcome; typedef std::future DescribeRunningLogRecordsOutcomeCallable; typedef std::function&)> DescribeRunningLogRecordsAsyncHandler; - typedef Outcome CreateDBInstanceOutcome; - typedef std::future CreateDBInstanceOutcomeCallable; - typedef std::function&)> CreateDBInstanceAsyncHandler; typedef Outcome ModifyDBInstanceSSLOutcome; typedef std::future ModifyDBInstanceSSLOutcomeCallable; typedef std::function&)> ModifyDBInstanceSSLAsyncHandler; + typedef Outcome CreateDBInstanceOutcome; + typedef std::future CreateDBInstanceOutcomeCallable; + typedef std::function&)> CreateDBInstanceAsyncHandler; typedef Outcome DescribeAuditFilesOutcome; typedef std::future DescribeAuditFilesOutcomeCallable; typedef std::function&)> DescribeAuditFilesAsyncHandler; @@ -425,6 +439,9 @@ namespace AlibabaCloud typedef Outcome DescribeSecurityIpsOutcome; typedef std::future DescribeSecurityIpsOutcomeCallable; typedef std::function&)> DescribeSecurityIpsAsyncHandler; + typedef Outcome ReleaseNodePrivateNetworkAddressOutcome; + typedef std::future ReleaseNodePrivateNetworkAddressOutcomeCallable; + typedef std::function&)> ReleaseNodePrivateNetworkAddressAsyncHandler; typedef Outcome DescribeIndexRecommendationOutcome; typedef std::future DescribeIndexRecommendationOutcomeCallable; typedef std::function&)> DescribeIndexRecommendationAsyncHandler; @@ -470,12 +487,12 @@ namespace AlibabaCloud typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; - typedef Outcome DescribeReplicationGroupOutcome; - typedef std::future DescribeReplicationGroupOutcomeCallable; - typedef std::function&)> DescribeReplicationGroupAsyncHandler; typedef Outcome MigrateToOtherZoneOutcome; typedef std::future MigrateToOtherZoneOutcomeCallable; typedef std::function&)> MigrateToOtherZoneAsyncHandler; + typedef Outcome DescribeReplicationGroupOutcome; + typedef std::future DescribeReplicationGroupOutcomeCallable; + typedef std::function&)> DescribeReplicationGroupAsyncHandler; typedef Outcome DescribeSlowLogRecordsOutcome; typedef std::future DescribeSlowLogRecordsOutcomeCallable; typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; @@ -497,6 +514,9 @@ namespace AlibabaCloud typedef Outcome DescribeDBInstanceSSLOutcome; typedef std::future DescribeDBInstanceSSLOutcomeCallable; typedef std::function&)> DescribeDBInstanceSSLAsyncHandler; + typedef Outcome DescribeRoleZoneInfoOutcome; + typedef std::future DescribeRoleZoneInfoOutcomeCallable; + typedef std::function&)> DescribeRoleZoneInfoAsyncHandler; typedef Outcome RenewDBInstanceOutcome; typedef std::future RenewDBInstanceOutcomeCallable; typedef std::function&)> RenewDBInstanceAsyncHandler; @@ -565,12 +585,12 @@ namespace AlibabaCloud ModifyReplicaRecoveryModeOutcome modifyReplicaRecoveryMode(const Model::ModifyReplicaRecoveryModeRequest &request)const; void modifyReplicaRecoveryModeAsync(const Model::ModifyReplicaRecoveryModeRequest& request, const ModifyReplicaRecoveryModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyReplicaRecoveryModeOutcomeCallable modifyReplicaRecoveryModeCallable(const Model::ModifyReplicaRecoveryModeRequest& request) const; - ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; - void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; DescribeReplicasOutcome describeReplicas(const Model::DescribeReplicasRequest &request)const; void describeReplicasAsync(const Model::DescribeReplicasRequest& request, const DescribeReplicasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeReplicasOutcomeCallable describeReplicasCallable(const Model::DescribeReplicasRequest& request) const; + ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; + void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; RestartDBInstanceOutcome restartDBInstance(const Model::RestartDBInstanceRequest &request)const; void restartDBInstanceAsync(const Model::RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartDBInstanceOutcomeCallable restartDBInstanceCallable(const Model::RestartDBInstanceRequest& request) const; @@ -586,30 +606,36 @@ namespace AlibabaCloud CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + AllocateNodePrivateNetworkAddressOutcome allocateNodePrivateNetworkAddress(const Model::AllocateNodePrivateNetworkAddressRequest &request)const; + void allocateNodePrivateNetworkAddressAsync(const Model::AllocateNodePrivateNetworkAddressRequest& request, const AllocateNodePrivateNetworkAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateNodePrivateNetworkAddressOutcomeCallable allocateNodePrivateNetworkAddressCallable(const Model::AllocateNodePrivateNetworkAddressRequest& request) const; ModifyDBInstanceMonitorOutcome modifyDBInstanceMonitor(const Model::ModifyDBInstanceMonitorRequest &request)const; void modifyDBInstanceMonitorAsync(const Model::ModifyDBInstanceMonitorRequest& request, const ModifyDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceMonitorOutcomeCallable modifyDBInstanceMonitorCallable(const Model::ModifyDBInstanceMonitorRequest& request) const; - ModifyReplicaDescriptionOutcome modifyReplicaDescription(const Model::ModifyReplicaDescriptionRequest &request)const; - void modifyReplicaDescriptionAsync(const Model::ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyReplicaDescriptionOutcomeCallable modifyReplicaDescriptionCallable(const Model::ModifyReplicaDescriptionRequest& request) const; - DescribeReplicaInitializeProgressOutcome describeReplicaInitializeProgress(const Model::DescribeReplicaInitializeProgressRequest &request)const; - void describeReplicaInitializeProgressAsync(const Model::DescribeReplicaInitializeProgressRequest& request, const DescribeReplicaInitializeProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeReplicaInitializeProgressOutcomeCallable describeReplicaInitializeProgressCallable(const Model::DescribeReplicaInitializeProgressRequest& request) const; ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + DescribeReplicaInitializeProgressOutcome describeReplicaInitializeProgress(const Model::DescribeReplicaInitializeProgressRequest &request)const; + void describeReplicaInitializeProgressAsync(const Model::DescribeReplicaInitializeProgressRequest& request, const DescribeReplicaInitializeProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicaInitializeProgressOutcomeCallable describeReplicaInitializeProgressCallable(const Model::DescribeReplicaInitializeProgressRequest& request) const; + ModifyReplicaDescriptionOutcome modifyReplicaDescription(const Model::ModifyReplicaDescriptionRequest &request)const; + void modifyReplicaDescriptionAsync(const Model::ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaDescriptionOutcomeCallable modifyReplicaDescriptionCallable(const Model::ModifyReplicaDescriptionRequest& request) const; + ModifyInstanceVpcAuthModeOutcome modifyInstanceVpcAuthMode(const Model::ModifyInstanceVpcAuthModeRequest &request)const; + void modifyInstanceVpcAuthModeAsync(const Model::ModifyInstanceVpcAuthModeRequest& request, const ModifyInstanceVpcAuthModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceVpcAuthModeOutcomeCallable modifyInstanceVpcAuthModeCallable(const Model::ModifyInstanceVpcAuthModeRequest& request) const; DescribeParametersOutcome describeParameters(const Model::DescribeParametersRequest &request)const; void describeParametersAsync(const Model::DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParametersOutcomeCallable describeParametersCallable(const Model::DescribeParametersRequest& request) const; DescribeRenewalPriceOutcome describeRenewalPrice(const Model::DescribeRenewalPriceRequest &request)const; void describeRenewalPriceAsync(const Model::DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRenewalPriceOutcomeCallable describeRenewalPriceCallable(const Model::DescribeRenewalPriceRequest& request) const; - DescribeDBInstanceAttributeOutcome describeDBInstanceAttribute(const Model::DescribeDBInstanceAttributeRequest &request)const; - void describeDBInstanceAttributeAsync(const Model::DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDBInstanceAttributeOutcomeCallable describeDBInstanceAttributeCallable(const Model::DescribeDBInstanceAttributeRequest& request) const; CreateStaticVerificationOutcome createStaticVerification(const Model::CreateStaticVerificationRequest &request)const; void createStaticVerificationAsync(const Model::CreateStaticVerificationRequest& request, const CreateStaticVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateStaticVerificationOutcomeCallable createStaticVerificationCallable(const Model::CreateStaticVerificationRequest& request) const; + DescribeDBInstanceAttributeOutcome describeDBInstanceAttribute(const Model::DescribeDBInstanceAttributeRequest &request)const; + void describeDBInstanceAttributeAsync(const Model::DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceAttributeOutcomeCallable describeDBInstanceAttributeCallable(const Model::DescribeDBInstanceAttributeRequest& request) const; CreateRecommendationTaskOutcome createRecommendationTask(const Model::CreateRecommendationTaskRequest &request)const; void createRecommendationTaskAsync(const Model::CreateRecommendationTaskRequest& request, const CreateRecommendationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRecommendationTaskOutcomeCallable createRecommendationTaskCallable(const Model::CreateRecommendationTaskRequest& request) const; @@ -622,12 +648,12 @@ namespace AlibabaCloud ModifyInstanceAutoRenewalAttributeOutcome modifyInstanceAutoRenewalAttribute(const Model::ModifyInstanceAutoRenewalAttributeRequest &request)const; void modifyInstanceAutoRenewalAttributeAsync(const Model::ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceAutoRenewalAttributeOutcomeCallable modifyInstanceAutoRenewalAttributeCallable(const Model::ModifyInstanceAutoRenewalAttributeRequest& request) const; - CreateNodeOutcome createNode(const Model::CreateNodeRequest &request)const; - void createNodeAsync(const Model::CreateNodeRequest& request, const CreateNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateNodeOutcomeCallable createNodeCallable(const Model::CreateNodeRequest& request) const; SwithcDBInstanceHAOutcome swithcDBInstanceHA(const Model::SwithcDBInstanceHARequest &request)const; void swithcDBInstanceHAAsync(const Model::SwithcDBInstanceHARequest& request, const SwithcDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwithcDBInstanceHAOutcomeCallable swithcDBInstanceHACallable(const Model::SwithcDBInstanceHARequest& request) const; + CreateNodeOutcome createNode(const Model::CreateNodeRequest &request)const; + void createNodeAsync(const Model::CreateNodeRequest& request, const CreateNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNodeOutcomeCallable createNodeCallable(const Model::CreateNodeRequest& request) const; DescribeAuditRecordsOutcome describeAuditRecords(const Model::DescribeAuditRecordsRequest &request)const; void describeAuditRecordsAsync(const Model::DescribeAuditRecordsRequest& request, const DescribeAuditRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditRecordsOutcomeCallable describeAuditRecordsCallable(const Model::DescribeAuditRecordsRequest& request) const; @@ -703,12 +729,12 @@ namespace AlibabaCloud DescribeRunningLogRecordsOutcome describeRunningLogRecords(const Model::DescribeRunningLogRecordsRequest &request)const; void describeRunningLogRecordsAsync(const Model::DescribeRunningLogRecordsRequest& request, const DescribeRunningLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRunningLogRecordsOutcomeCallable describeRunningLogRecordsCallable(const Model::DescribeRunningLogRecordsRequest& request) const; - CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; - void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; ModifyDBInstanceSSLOutcome modifyDBInstanceSSL(const Model::ModifyDBInstanceSSLRequest &request)const; void modifyDBInstanceSSLAsync(const Model::ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceSSLOutcomeCallable modifyDBInstanceSSLCallable(const Model::ModifyDBInstanceSSLRequest& request) const; + CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; + void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; DescribeAuditFilesOutcome describeAuditFiles(const Model::DescribeAuditFilesRequest &request)const; void describeAuditFilesAsync(const Model::DescribeAuditFilesRequest& request, const DescribeAuditFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditFilesOutcomeCallable describeAuditFilesCallable(const Model::DescribeAuditFilesRequest& request) const; @@ -724,6 +750,9 @@ namespace AlibabaCloud DescribeSecurityIpsOutcome describeSecurityIps(const Model::DescribeSecurityIpsRequest &request)const; void describeSecurityIpsAsync(const Model::DescribeSecurityIpsRequest& request, const DescribeSecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecurityIpsOutcomeCallable describeSecurityIpsCallable(const Model::DescribeSecurityIpsRequest& request) const; + ReleaseNodePrivateNetworkAddressOutcome releaseNodePrivateNetworkAddress(const Model::ReleaseNodePrivateNetworkAddressRequest &request)const; + void releaseNodePrivateNetworkAddressAsync(const Model::ReleaseNodePrivateNetworkAddressRequest& request, const ReleaseNodePrivateNetworkAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseNodePrivateNetworkAddressOutcomeCallable releaseNodePrivateNetworkAddressCallable(const Model::ReleaseNodePrivateNetworkAddressRequest& request) const; DescribeIndexRecommendationOutcome describeIndexRecommendation(const Model::DescribeIndexRecommendationRequest &request)const; void describeIndexRecommendationAsync(const Model::DescribeIndexRecommendationRequest& request, const DescribeIndexRecommendationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIndexRecommendationOutcomeCallable describeIndexRecommendationCallable(const Model::DescribeIndexRecommendationRequest& request) const; @@ -769,12 +798,12 @@ namespace AlibabaCloud DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; - DescribeReplicationGroupOutcome describeReplicationGroup(const Model::DescribeReplicationGroupRequest &request)const; - void describeReplicationGroupAsync(const Model::DescribeReplicationGroupRequest& request, const DescribeReplicationGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeReplicationGroupOutcomeCallable describeReplicationGroupCallable(const Model::DescribeReplicationGroupRequest& request) const; MigrateToOtherZoneOutcome migrateToOtherZone(const Model::MigrateToOtherZoneRequest &request)const; void migrateToOtherZoneAsync(const Model::MigrateToOtherZoneRequest& request, const MigrateToOtherZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MigrateToOtherZoneOutcomeCallable migrateToOtherZoneCallable(const Model::MigrateToOtherZoneRequest& request) const; + DescribeReplicationGroupOutcome describeReplicationGroup(const Model::DescribeReplicationGroupRequest &request)const; + void describeReplicationGroupAsync(const Model::DescribeReplicationGroupRequest& request, const DescribeReplicationGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicationGroupOutcomeCallable describeReplicationGroupCallable(const Model::DescribeReplicationGroupRequest& request) const; DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const; @@ -796,6 +825,9 @@ namespace AlibabaCloud DescribeDBInstanceSSLOutcome describeDBInstanceSSL(const Model::DescribeDBInstanceSSLRequest &request)const; void describeDBInstanceSSLAsync(const Model::DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceSSLOutcomeCallable describeDBInstanceSSLCallable(const Model::DescribeDBInstanceSSLRequest& request) const; + DescribeRoleZoneInfoOutcome describeRoleZoneInfo(const Model::DescribeRoleZoneInfoRequest &request)const; + void describeRoleZoneInfoAsync(const Model::DescribeRoleZoneInfoRequest& request, const DescribeRoleZoneInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRoleZoneInfoOutcomeCallable describeRoleZoneInfoCallable(const Model::DescribeRoleZoneInfoRequest& request) const; RenewDBInstanceOutcome renewDBInstance(const Model::RenewDBInstanceRequest &request)const; void renewDBInstanceAsync(const Model::RenewDBInstanceRequest& request, const RenewDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenewDBInstanceOutcomeCallable renewDBInstanceCallable(const Model::RenewDBInstanceRequest& request) const; diff --git a/dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressRequest.h b/dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressRequest.h new file mode 100644 index 000000000..17fd3ffd7 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_ALLOCATENODEPRIVATENETWORKADDRESSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_ALLOCATENODEPRIVATENETWORKADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT AllocateNodePrivateNetworkAddressRequest : public RpcServiceRequest + { + + public: + AllocateNodePrivateNetworkAddressRequest(); + ~AllocateNodePrivateNetworkAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string accountPassword_; + std::string accountName_; + std::string securityToken_; + std::string regionId_; + std::string zoneId_; + std::string dBInstanceId_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_ALLOCATENODEPRIVATENETWORKADDRESSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressResult.h b/dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressResult.h new file mode 100644 index 000000000..40d8a8631 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/AllocateNodePrivateNetworkAddressResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_ALLOCATENODEPRIVATENETWORKADDRESSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_ALLOCATENODEPRIVATENETWORKADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT AllocateNodePrivateNetworkAddressResult : public ServiceResult + { + public: + + + AllocateNodePrivateNetworkAddressResult(); + explicit AllocateNodePrivateNetworkAddressResult(const std::string &payload); + ~AllocateNodePrivateNetworkAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_ALLOCATENODEPRIVATENETWORKADDRESSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h index d7f2b9d9a..db2f2c8ce 100644 --- a/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h +++ b/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setDBInstanceStorage(int dBInstanceStorage); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + std::string getReadonlyReplicas()const; + void setReadonlyReplicas(const std::string& readonlyReplicas); std::string getCouponNo()const; void setCouponNo(const std::string& couponNo); std::string getEngineVersion()const; @@ -102,6 +104,7 @@ namespace AlibabaCloud long resourceOwnerId_; int dBInstanceStorage_; std::string clientToken_; + std::string readonlyReplicas_; std::string couponNo_; std::string engineVersion_; std::string networkType_; diff --git a/dds/include/alibabacloud/dds/model/DescribeAccountsResult.h b/dds/include/alibabacloud/dds/model/DescribeAccountsResult.h index 64f30dd4f..58f4d19be 100644 --- a/dds/include/alibabacloud/dds/model/DescribeAccountsResult.h +++ b/dds/include/alibabacloud/dds/model/DescribeAccountsResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string accountDescription; std::string accountStatus; std::string dBInstanceId; + std::string characterType; std::string accountName; }; diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h b/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h index 446442308..5d5e63f3c 100644 --- a/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h @@ -52,8 +52,21 @@ namespace AlibabaCloud std::string nodeClass; std::string nodeDescription; int maxConnections; + int port; std::string nodeId; int nodeStorage; + std::string connectString; + int maxIOPS; + }; + struct ConfigserverAttribute + { + std::string nodeClass; + std::string nodeDescription; + int maxConnections; + int port; + std::string nodeId; + int nodeStorage; + std::string connectString; int maxIOPS; }; struct ReplicaSet @@ -92,6 +105,7 @@ namespace AlibabaCloud std::string zoneId; std::string dBInstanceStatus; std::string replicationFactor; + std::string readonlyReplicas; int maxConnections; std::string dBInstanceClass; std::string vPCId; @@ -101,7 +115,9 @@ namespace AlibabaCloud int maxIOPS; std::string chargeType; std::string currentKernelVersion; + std::string vpcAuthMode; std::string creationTime; + std::vector configserverList; std::string regionId; std::string expireTime; }; diff --git a/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h b/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h index a47b698aa..89cc77807 100644 --- a/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h +++ b/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h @@ -36,7 +36,7 @@ namespace AlibabaCloud { std::string connInfo; std::string category; - long content; + std::string content; std::string createTime; int id; }; diff --git a/dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoRequest.h b/dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoRequest.h new file mode 100644 index 000000000..87aa5b7ad --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoRequest.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_DDS_MODEL_DESCRIBEROLEZONEINFOREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEROLEZONEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRoleZoneInfoRequest : public RpcServiceRequest + { + + public: + DescribeRoleZoneInfoRequest(); + ~DescribeRoleZoneInfoRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEROLEZONEINFOREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoResult.h b/dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoResult.h new file mode 100644 index 000000000..fa44cc786 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRoleZoneInfoResult.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_DDS_MODEL_DESCRIBEROLEZONEINFORESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEROLEZONEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRoleZoneInfoResult : public ServiceResult + { + public: + struct ZoneInfo + { + std::string zoneId; + std::string roleType; + std::string nodeType; + std::string insName; + std::string roleId; + }; + + + DescribeRoleZoneInfoResult(); + explicit DescribeRoleZoneInfoResult(const std::string &payload); + ~DescribeRoleZoneInfoResult(); + std::vector getZoneInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector zoneInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEROLEZONEINFORESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h b/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h index b4742db9c..c90e77115 100644 --- a/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h +++ b/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h @@ -36,7 +36,7 @@ namespace AlibabaCloud { std::string connInfo; std::string category; - long content; + std::string content; std::string createTime; int id; }; diff --git a/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h b/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h index 3bf12f71e..de6e34929 100644 --- a/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h +++ b/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string networkType; std::string port; std::string expiredTime; + std::string nodeType; std::string nodeId; std::string iPAddress; std::string vswitchId; diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h index 1e1b5fa2b..ba00b1b42 100644 --- a/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getReadonlyReplicas()const; + void setReadonlyReplicas(const std::string& readonlyReplicas); std::string getCouponNo()const; void setCouponNo(const std::string& couponNo); long getOwnerId()const; @@ -77,6 +79,7 @@ namespace AlibabaCloud std::string fromApp_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::string readonlyReplicas_; std::string couponNo_; long ownerId_; std::string replicationFactor_; diff --git a/dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeRequest.h b/dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeRequest.h new file mode 100644 index 000000000..60b5828f0 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeRequest.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_DDS_MODEL_MODIFYINSTANCEVPCAUTHMODEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEVPCAUTHMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyInstanceVpcAuthModeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceVpcAuthModeRequest(); + ~ModifyInstanceVpcAuthModeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpcAuthMode()const; + void setVpcAuthMode(const std::string& vpcAuthMode); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string vpcAuthMode_; + std::string dBInstanceId_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEVPCAUTHMODEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeResult.h b/dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeResult.h new file mode 100644 index 000000000..b777a9f5b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyInstanceVpcAuthModeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEVPCAUTHMODERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEVPCAUTHMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyInstanceVpcAuthModeResult : public ServiceResult + { + public: + + + ModifyInstanceVpcAuthModeResult(); + explicit ModifyInstanceVpcAuthModeResult(const std::string &payload); + ~ModifyInstanceVpcAuthModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEVPCAUTHMODERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressRequest.h b/dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressRequest.h new file mode 100644 index 000000000..50ee855a4 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressRequest.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_DDS_MODEL_RELEASENODEPRIVATENETWORKADDRESSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_RELEASENODEPRIVATENETWORKADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ReleaseNodePrivateNetworkAddressRequest : public RpcServiceRequest + { + + public: + ReleaseNodePrivateNetworkAddressRequest(); + ~ReleaseNodePrivateNetworkAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string networkType_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RELEASENODEPRIVATENETWORKADDRESSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressResult.h b/dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressResult.h new file mode 100644 index 000000000..46646f41e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ReleaseNodePrivateNetworkAddressResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_RELEASENODEPRIVATENETWORKADDRESSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_RELEASENODEPRIVATENETWORKADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ReleaseNodePrivateNetworkAddressResult : public ServiceResult + { + public: + + + ReleaseNodePrivateNetworkAddressResult(); + explicit ReleaseNodePrivateNetworkAddressResult(const std::string &payload); + ~ReleaseNodePrivateNetworkAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RELEASENODEPRIVATENETWORKADDRESSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h b/dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h index 0100630f8..ff9a00335 100644 --- a/dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h +++ b/dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); int getTargetInstanceId()const; void setTargetInstanceId(int targetInstanceId); + std::string getRoleIds()const; + void setRoleIds(const std::string& roleIds); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getRegionId()const; @@ -67,6 +69,7 @@ namespace AlibabaCloud long ownerId_; std::string accessKeyId_; int targetInstanceId_; + std::string roleIds_; std::string securityToken_; std::string regionId_; int switchType_; diff --git a/dds/src/DdsClient.cc b/dds/src/DdsClient.cc index 7456ae0f7..be354bcc6 100644 --- a/dds/src/DdsClient.cc +++ b/dds/src/DdsClient.cc @@ -31,21 +31,21 @@ DdsClient::DdsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "Dds"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dds"); } DdsClient::DdsClient(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, "Dds"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dds"); } DdsClient::DdsClient(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, "Dds"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dds"); } DdsClient::~DdsClient() @@ -519,42 +519,6 @@ DdsClient::ModifyReplicaRecoveryModeOutcomeCallable DdsClient::modifyReplicaReco return task->get_future(); } -DdsClient::ModifyDBInstanceConnectionStringOutcome DdsClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceConnectionStringOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceConnectionStringOutcome(ModifyDBInstanceConnectionStringResult(outcome.result())); - else - return ModifyDBInstanceConnectionStringOutcome(outcome.error()); -} - -void DdsClient::modifyDBInstanceConnectionStringAsync(const ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceConnectionString(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DdsClient::ModifyDBInstanceConnectionStringOutcomeCallable DdsClient::modifyDBInstanceConnectionStringCallable(const ModifyDBInstanceConnectionStringRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceConnectionString(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DdsClient::DescribeReplicasOutcome DdsClient::describeReplicas(const DescribeReplicasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +555,42 @@ DdsClient::DescribeReplicasOutcomeCallable DdsClient::describeReplicasCallable(c return task->get_future(); } +DdsClient::ModifyDBInstanceConnectionStringOutcome DdsClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(ModifyDBInstanceConnectionStringResult(outcome.result())); + else + return ModifyDBInstanceConnectionStringOutcome(outcome.error()); +} + +void DdsClient::modifyDBInstanceConnectionStringAsync(const ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionString(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyDBInstanceConnectionStringOutcomeCallable DdsClient::modifyDBInstanceConnectionStringCallable(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionString(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::RestartDBInstanceOutcome DdsClient::restartDBInstance(const RestartDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +771,42 @@ DdsClient::CreateAccountOutcomeCallable DdsClient::createAccountCallable(const C return task->get_future(); } +DdsClient::AllocateNodePrivateNetworkAddressOutcome DdsClient::allocateNodePrivateNetworkAddress(const AllocateNodePrivateNetworkAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateNodePrivateNetworkAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateNodePrivateNetworkAddressOutcome(AllocateNodePrivateNetworkAddressResult(outcome.result())); + else + return AllocateNodePrivateNetworkAddressOutcome(outcome.error()); +} + +void DdsClient::allocateNodePrivateNetworkAddressAsync(const AllocateNodePrivateNetworkAddressRequest& request, const AllocateNodePrivateNetworkAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateNodePrivateNetworkAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::AllocateNodePrivateNetworkAddressOutcomeCallable DdsClient::allocateNodePrivateNetworkAddressCallable(const AllocateNodePrivateNetworkAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateNodePrivateNetworkAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::ModifyDBInstanceMonitorOutcome DdsClient::modifyDBInstanceMonitor(const ModifyDBInstanceMonitorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,36 +843,36 @@ DdsClient::ModifyDBInstanceMonitorOutcomeCallable DdsClient::modifyDBInstanceMon return task->get_future(); } -DdsClient::ModifyReplicaDescriptionOutcome DdsClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const +DdsClient::ModifyBackupPolicyOutcome DdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyReplicaDescriptionOutcome(endpointOutcome.error()); + return ModifyBackupPolicyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyReplicaDescriptionOutcome(ModifyReplicaDescriptionResult(outcome.result())); + return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); else - return ModifyReplicaDescriptionOutcome(outcome.error()); + return ModifyBackupPolicyOutcome(outcome.error()); } -void DdsClient::modifyReplicaDescriptionAsync(const ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +void DdsClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyReplicaDescription(request), context); + handler(this, request, modifyBackupPolicy(request), context); }; asyncExecute(new Runnable(fn)); } -DdsClient::ModifyReplicaDescriptionOutcomeCallable DdsClient::modifyReplicaDescriptionCallable(const ModifyReplicaDescriptionRequest &request) const +DdsClient::ModifyBackupPolicyOutcomeCallable DdsClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyReplicaDescription(request); + return this->modifyBackupPolicy(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -879,36 +915,72 @@ DdsClient::DescribeReplicaInitializeProgressOutcomeCallable DdsClient::describeR return task->get_future(); } -DdsClient::ModifyBackupPolicyOutcome DdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const +DdsClient::ModifyReplicaDescriptionOutcome DdsClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyBackupPolicyOutcome(endpointOutcome.error()); + return ModifyReplicaDescriptionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); + return ModifyReplicaDescriptionOutcome(ModifyReplicaDescriptionResult(outcome.result())); else - return ModifyBackupPolicyOutcome(outcome.error()); + return ModifyReplicaDescriptionOutcome(outcome.error()); } -void DdsClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void DdsClient::modifyReplicaDescriptionAsync(const ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyBackupPolicy(request), context); + handler(this, request, modifyReplicaDescription(request), context); }; asyncExecute(new Runnable(fn)); } -DdsClient::ModifyBackupPolicyOutcomeCallable DdsClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const +DdsClient::ModifyReplicaDescriptionOutcomeCallable DdsClient::modifyReplicaDescriptionCallable(const ModifyReplicaDescriptionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyBackupPolicy(request); + return this->modifyReplicaDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyInstanceVpcAuthModeOutcome DdsClient::modifyInstanceVpcAuthMode(const ModifyInstanceVpcAuthModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceVpcAuthModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceVpcAuthModeOutcome(ModifyInstanceVpcAuthModeResult(outcome.result())); + else + return ModifyInstanceVpcAuthModeOutcome(outcome.error()); +} + +void DdsClient::modifyInstanceVpcAuthModeAsync(const ModifyInstanceVpcAuthModeRequest& request, const ModifyInstanceVpcAuthModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceVpcAuthMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyInstanceVpcAuthModeOutcomeCallable DdsClient::modifyInstanceVpcAuthModeCallable(const ModifyInstanceVpcAuthModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceVpcAuthMode(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -987,42 +1059,6 @@ DdsClient::DescribeRenewalPriceOutcomeCallable DdsClient::describeRenewalPriceCa return task->get_future(); } -DdsClient::DescribeDBInstanceAttributeOutcome DdsClient::describeDBInstanceAttribute(const DescribeDBInstanceAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceAttributeOutcome(DescribeDBInstanceAttributeResult(outcome.result())); - else - return DescribeDBInstanceAttributeOutcome(outcome.error()); -} - -void DdsClient::describeDBInstanceAttributeAsync(const DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DdsClient::DescribeDBInstanceAttributeOutcomeCallable DdsClient::describeDBInstanceAttributeCallable(const DescribeDBInstanceAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DdsClient::CreateStaticVerificationOutcome DdsClient::createStaticVerification(const CreateStaticVerificationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1095,42 @@ DdsClient::CreateStaticVerificationOutcomeCallable DdsClient::createStaticVerifi return task->get_future(); } +DdsClient::DescribeDBInstanceAttributeOutcome DdsClient::describeDBInstanceAttribute(const DescribeDBInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(DescribeDBInstanceAttributeResult(outcome.result())); + else + return DescribeDBInstanceAttributeOutcome(outcome.error()); +} + +void DdsClient::describeDBInstanceAttributeAsync(const DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeDBInstanceAttributeOutcomeCallable DdsClient::describeDBInstanceAttributeCallable(const DescribeDBInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::CreateRecommendationTaskOutcome DdsClient::createRecommendationTask(const CreateRecommendationTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,42 +1275,6 @@ DdsClient::ModifyInstanceAutoRenewalAttributeOutcomeCallable DdsClient::modifyIn return task->get_future(); } -DdsClient::CreateNodeOutcome DdsClient::createNode(const CreateNodeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateNodeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateNodeOutcome(CreateNodeResult(outcome.result())); - else - return CreateNodeOutcome(outcome.error()); -} - -void DdsClient::createNodeAsync(const CreateNodeRequest& request, const CreateNodeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createNode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DdsClient::CreateNodeOutcomeCallable DdsClient::createNodeCallable(const CreateNodeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createNode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DdsClient::SwithcDBInstanceHAOutcome DdsClient::swithcDBInstanceHA(const SwithcDBInstanceHARequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1311,42 @@ DdsClient::SwithcDBInstanceHAOutcomeCallable DdsClient::swithcDBInstanceHACallab return task->get_future(); } +DdsClient::CreateNodeOutcome DdsClient::createNode(const CreateNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNodeOutcome(CreateNodeResult(outcome.result())); + else + return CreateNodeOutcome(outcome.error()); +} + +void DdsClient::createNodeAsync(const CreateNodeRequest& request, const CreateNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::CreateNodeOutcomeCallable DdsClient::createNodeCallable(const CreateNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::DescribeAuditRecordsOutcome DdsClient::describeAuditRecords(const DescribeAuditRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,42 +2247,6 @@ DdsClient::DescribeRunningLogRecordsOutcomeCallable DdsClient::describeRunningLo return task->get_future(); } -DdsClient::CreateDBInstanceOutcome DdsClient::createDBInstance(const CreateDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDBInstanceOutcome(CreateDBInstanceResult(outcome.result())); - else - return CreateDBInstanceOutcome(outcome.error()); -} - -void DdsClient::createDBInstanceAsync(const CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DdsClient::CreateDBInstanceOutcomeCallable DdsClient::createDBInstanceCallable(const CreateDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DdsClient::ModifyDBInstanceSSLOutcome DdsClient::modifyDBInstanceSSL(const ModifyDBInstanceSSLRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,6 +2283,42 @@ DdsClient::ModifyDBInstanceSSLOutcomeCallable DdsClient::modifyDBInstanceSSLCall return task->get_future(); } +DdsClient::CreateDBInstanceOutcome DdsClient::createDBInstance(const CreateDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBInstanceOutcome(CreateDBInstanceResult(outcome.result())); + else + return CreateDBInstanceOutcome(outcome.error()); +} + +void DdsClient::createDBInstanceAsync(const CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::CreateDBInstanceOutcomeCallable DdsClient::createDBInstanceCallable(const CreateDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::DescribeAuditFilesOutcome DdsClient::describeAuditFiles(const DescribeAuditFilesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +2499,42 @@ DdsClient::DescribeSecurityIpsOutcomeCallable DdsClient::describeSecurityIpsCall return task->get_future(); } +DdsClient::ReleaseNodePrivateNetworkAddressOutcome DdsClient::releaseNodePrivateNetworkAddress(const ReleaseNodePrivateNetworkAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseNodePrivateNetworkAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseNodePrivateNetworkAddressOutcome(ReleaseNodePrivateNetworkAddressResult(outcome.result())); + else + return ReleaseNodePrivateNetworkAddressOutcome(outcome.error()); +} + +void DdsClient::releaseNodePrivateNetworkAddressAsync(const ReleaseNodePrivateNetworkAddressRequest& request, const ReleaseNodePrivateNetworkAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseNodePrivateNetworkAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ReleaseNodePrivateNetworkAddressOutcomeCallable DdsClient::releaseNodePrivateNetworkAddressCallable(const ReleaseNodePrivateNetworkAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseNodePrivateNetworkAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::DescribeIndexRecommendationOutcome DdsClient::describeIndexRecommendation(const DescribeIndexRecommendationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,42 +3075,6 @@ DdsClient::DescribeRegionsOutcomeCallable DdsClient::describeRegionsCallable(con return task->get_future(); } -DdsClient::DescribeReplicationGroupOutcome DdsClient::describeReplicationGroup(const DescribeReplicationGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeReplicationGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeReplicationGroupOutcome(DescribeReplicationGroupResult(outcome.result())); - else - return DescribeReplicationGroupOutcome(outcome.error()); -} - -void DdsClient::describeReplicationGroupAsync(const DescribeReplicationGroupRequest& request, const DescribeReplicationGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeReplicationGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DdsClient::DescribeReplicationGroupOutcomeCallable DdsClient::describeReplicationGroupCallable(const DescribeReplicationGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeReplicationGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DdsClient::MigrateToOtherZoneOutcome DdsClient::migrateToOtherZone(const MigrateToOtherZoneRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3039,6 +3111,42 @@ DdsClient::MigrateToOtherZoneOutcomeCallable DdsClient::migrateToOtherZoneCallab return task->get_future(); } +DdsClient::DescribeReplicationGroupOutcome DdsClient::describeReplicationGroup(const DescribeReplicationGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicationGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicationGroupOutcome(DescribeReplicationGroupResult(outcome.result())); + else + return DescribeReplicationGroupOutcome(outcome.error()); +} + +void DdsClient::describeReplicationGroupAsync(const DescribeReplicationGroupRequest& request, const DescribeReplicationGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicationGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeReplicationGroupOutcomeCallable DdsClient::describeReplicationGroupCallable(const DescribeReplicationGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicationGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::DescribeSlowLogRecordsOutcome DdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,6 +3399,42 @@ DdsClient::DescribeDBInstanceSSLOutcomeCallable DdsClient::describeDBInstanceSSL return task->get_future(); } +DdsClient::DescribeRoleZoneInfoOutcome DdsClient::describeRoleZoneInfo(const DescribeRoleZoneInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRoleZoneInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRoleZoneInfoOutcome(DescribeRoleZoneInfoResult(outcome.result())); + else + return DescribeRoleZoneInfoOutcome(outcome.error()); +} + +void DdsClient::describeRoleZoneInfoAsync(const DescribeRoleZoneInfoRequest& request, const DescribeRoleZoneInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRoleZoneInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeRoleZoneInfoOutcomeCallable DdsClient::describeRoleZoneInfoCallable(const DescribeRoleZoneInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRoleZoneInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DdsClient::RenewDBInstanceOutcome DdsClient::renewDBInstance(const RenewDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dds/src/model/AllocateNodePrivateNetworkAddressRequest.cc b/dds/src/model/AllocateNodePrivateNetworkAddressRequest.cc new file mode 100644 index 000000000..654b39e88 --- /dev/null +++ b/dds/src/model/AllocateNodePrivateNetworkAddressRequest.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 + +using AlibabaCloud::Dds::Model::AllocateNodePrivateNetworkAddressRequest; + +AllocateNodePrivateNetworkAddressRequest::AllocateNodePrivateNetworkAddressRequest() : + RpcServiceRequest("dds", "2015-12-01", "AllocateNodePrivateNetworkAddress") +{} + +AllocateNodePrivateNetworkAddressRequest::~AllocateNodePrivateNetworkAddressRequest() +{} + +long AllocateNodePrivateNetworkAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateNodePrivateNetworkAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateNodePrivateNetworkAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocateNodePrivateNetworkAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long AllocateNodePrivateNetworkAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateNodePrivateNetworkAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AllocateNodePrivateNetworkAddressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void AllocateNodePrivateNetworkAddressRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setCoreParameter("AccountPassword", accountPassword); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getAccountName()const +{ + return accountName_; +} + +void AllocateNodePrivateNetworkAddressRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setCoreParameter("AccountName", accountName); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AllocateNodePrivateNetworkAddressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getRegionId()const +{ + return regionId_; +} + +void AllocateNodePrivateNetworkAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getZoneId()const +{ + return zoneId_; +} + +void AllocateNodePrivateNetworkAddressRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AllocateNodePrivateNetworkAddressRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string AllocateNodePrivateNetworkAddressRequest::getNodeId()const +{ + return nodeId_; +} + +void AllocateNodePrivateNetworkAddressRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/AllocateNodePrivateNetworkAddressResult.cc b/dds/src/model/AllocateNodePrivateNetworkAddressResult.cc new file mode 100644 index 000000000..254fbd816 --- /dev/null +++ b/dds/src/model/AllocateNodePrivateNetworkAddressResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +AllocateNodePrivateNetworkAddressResult::AllocateNodePrivateNetworkAddressResult() : + ServiceResult() +{} + +AllocateNodePrivateNetworkAddressResult::AllocateNodePrivateNetworkAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateNodePrivateNetworkAddressResult::~AllocateNodePrivateNetworkAddressResult() +{} + +void AllocateNodePrivateNetworkAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/AllocatePublicNetworkAddressResult.cc b/dds/src/model/AllocatePublicNetworkAddressResult.cc index 7ff80ff98..ccd29dd44 100644 --- a/dds/src/model/AllocatePublicNetworkAddressResult.cc +++ b/dds/src/model/AllocatePublicNetworkAddressResult.cc @@ -35,10 +35,13 @@ AllocatePublicNetworkAddressResult::~AllocatePublicNetworkAddressResult() void AllocatePublicNetworkAddressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/CheckRecoveryConditionResult.cc b/dds/src/model/CheckRecoveryConditionResult.cc index 26b6db285..16e0ed9a4 100644 --- a/dds/src/model/CheckRecoveryConditionResult.cc +++ b/dds/src/model/CheckRecoveryConditionResult.cc @@ -35,10 +35,13 @@ CheckRecoveryConditionResult::~CheckRecoveryConditionResult() void CheckRecoveryConditionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DBInstanceName"].isNull()) dBInstanceName_ = std::stoi(value["DBInstanceName"].asString()); diff --git a/dds/src/model/CreateAccountResult.cc b/dds/src/model/CreateAccountResult.cc index f26e89d90..77d8d719e 100644 --- a/dds/src/model/CreateAccountResult.cc +++ b/dds/src/model/CreateAccountResult.cc @@ -35,10 +35,13 @@ CreateAccountResult::~CreateAccountResult() void CreateAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/CreateBackupResult.cc b/dds/src/model/CreateBackupResult.cc index 3f42e2b19..7df9b974d 100644 --- a/dds/src/model/CreateBackupResult.cc +++ b/dds/src/model/CreateBackupResult.cc @@ -35,10 +35,13 @@ CreateBackupResult::~CreateBackupResult() void CreateBackupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BackupId"].isNull()) backupId_ = value["BackupId"].asString(); diff --git a/dds/src/model/CreateDBInstanceRequest.cc b/dds/src/model/CreateDBInstanceRequest.cc index 17883a8dd..a9e5b7498 100644 --- a/dds/src/model/CreateDBInstanceRequest.cc +++ b/dds/src/model/CreateDBInstanceRequest.cc @@ -58,6 +58,17 @@ void CreateDBInstanceRequest::setClientToken(const std::string& clientToken) setCoreParameter("ClientToken", clientToken); } +std::string CreateDBInstanceRequest::getReadonlyReplicas()const +{ + return readonlyReplicas_; +} + +void CreateDBInstanceRequest::setReadonlyReplicas(const std::string& readonlyReplicas) +{ + readonlyReplicas_ = readonlyReplicas; + setCoreParameter("ReadonlyReplicas", readonlyReplicas); +} + std::string CreateDBInstanceRequest::getCouponNo()const { return couponNo_; diff --git a/dds/src/model/CreateDBInstanceResult.cc b/dds/src/model/CreateDBInstanceResult.cc index ce34627d5..189139d92 100644 --- a/dds/src/model/CreateDBInstanceResult.cc +++ b/dds/src/model/CreateDBInstanceResult.cc @@ -35,10 +35,13 @@ CreateDBInstanceResult::~CreateDBInstanceResult() void CreateDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dds/src/model/CreateNodeResult.cc b/dds/src/model/CreateNodeResult.cc index 9eac915c5..2a0ed7443 100644 --- a/dds/src/model/CreateNodeResult.cc +++ b/dds/src/model/CreateNodeResult.cc @@ -35,10 +35,13 @@ CreateNodeResult::~CreateNodeResult() void CreateNodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dds/src/model/CreateRecommendationTaskResult.cc b/dds/src/model/CreateRecommendationTaskResult.cc index 585b269ab..abf95cc67 100644 --- a/dds/src/model/CreateRecommendationTaskResult.cc +++ b/dds/src/model/CreateRecommendationTaskResult.cc @@ -35,10 +35,13 @@ CreateRecommendationTaskResult::~CreateRecommendationTaskResult() void CreateRecommendationTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/CreateShardingDBInstanceResult.cc b/dds/src/model/CreateShardingDBInstanceResult.cc index 14edf9c87..241b3c264 100644 --- a/dds/src/model/CreateShardingDBInstanceResult.cc +++ b/dds/src/model/CreateShardingDBInstanceResult.cc @@ -35,10 +35,13 @@ CreateShardingDBInstanceResult::~CreateShardingDBInstanceResult() void CreateShardingDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dds/src/model/CreateStaticVerificationResult.cc b/dds/src/model/CreateStaticVerificationResult.cc index f7b00029e..5f7ca35ad 100644 --- a/dds/src/model/CreateStaticVerificationResult.cc +++ b/dds/src/model/CreateStaticVerificationResult.cc @@ -35,10 +35,13 @@ CreateStaticVerificationResult::~CreateStaticVerificationResult() void CreateStaticVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/DeleteDBInstanceResult.cc b/dds/src/model/DeleteDBInstanceResult.cc index 4d1b2ff2a..85abb00ea 100644 --- a/dds/src/model/DeleteDBInstanceResult.cc +++ b/dds/src/model/DeleteDBInstanceResult.cc @@ -35,10 +35,13 @@ DeleteDBInstanceResult::~DeleteDBInstanceResult() void DeleteDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/DeleteNodeResult.cc b/dds/src/model/DeleteNodeResult.cc index db5443293..f0887c08d 100644 --- a/dds/src/model/DeleteNodeResult.cc +++ b/dds/src/model/DeleteNodeResult.cc @@ -35,10 +35,13 @@ DeleteNodeResult::~DeleteNodeResult() void DeleteNodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = std::stoi(value["TaskId"].asString()); diff --git a/dds/src/model/DescribeAccountsResult.cc b/dds/src/model/DescribeAccountsResult.cc index 1acea1d71..82affd693 100644 --- a/dds/src/model/DescribeAccountsResult.cc +++ b/dds/src/model/DescribeAccountsResult.cc @@ -35,10 +35,13 @@ DescribeAccountsResult::~DescribeAccountsResult() void DescribeAccountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAccounts = value["Accounts"]["Account"]; for (auto value : allAccounts) @@ -52,6 +55,8 @@ void DescribeAccountsResult::parse(const std::string &payload) accountsObject.accountStatus = value["AccountStatus"].asString(); if(!value["AccountDescription"].isNull()) accountsObject.accountDescription = value["AccountDescription"].asString(); + if(!value["CharacterType"].isNull()) + accountsObject.characterType = value["CharacterType"].asString(); accounts_.push_back(accountsObject); } diff --git a/dds/src/model/DescribeActiveOperationTaskCountResult.cc b/dds/src/model/DescribeActiveOperationTaskCountResult.cc index 02b0cc7df..3a4a6306e 100644 --- a/dds/src/model/DescribeActiveOperationTaskCountResult.cc +++ b/dds/src/model/DescribeActiveOperationTaskCountResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskCountResult::~DescribeActiveOperationTaskCountResult( void DescribeActiveOperationTaskCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskCount"].isNull()) taskCount_ = std::stoi(value["TaskCount"].asString()); diff --git a/dds/src/model/DescribeActiveOperationTaskRegionResult.cc b/dds/src/model/DescribeActiveOperationTaskRegionResult.cc index dc4da2214..b4253e376 100644 --- a/dds/src/model/DescribeActiveOperationTaskRegionResult.cc +++ b/dds/src/model/DescribeActiveOperationTaskRegionResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskRegionResult::~DescribeActiveOperationTaskRegionResul void DescribeActiveOperationTaskRegionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegionList = value["RegionList"]["Items"]; for (auto value : allRegionList) diff --git a/dds/src/model/DescribeActiveOperationTaskResult.cc b/dds/src/model/DescribeActiveOperationTaskResult.cc index d7a0e19cb..29288ff06 100644 --- a/dds/src/model/DescribeActiveOperationTaskResult.cc +++ b/dds/src/model/DescribeActiveOperationTaskResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskResult::~DescribeActiveOperationTaskResult() void DescribeActiveOperationTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeActiveOperationTaskTypeResult.cc b/dds/src/model/DescribeActiveOperationTaskTypeResult.cc index 8fb5a61bb..a2d5c5270 100644 --- a/dds/src/model/DescribeActiveOperationTaskTypeResult.cc +++ b/dds/src/model/DescribeActiveOperationTaskTypeResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskTypeResult::~DescribeActiveOperationTaskTypeResult() void DescribeActiveOperationTaskTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTypeList = value["TypeList"]["Items"]; for (auto value : allTypeList) diff --git a/dds/src/model/DescribeAuditFilesResult.cc b/dds/src/model/DescribeAuditFilesResult.cc index d518a0059..4f3d9a117 100644 --- a/dds/src/model/DescribeAuditFilesResult.cc +++ b/dds/src/model/DescribeAuditFilesResult.cc @@ -35,10 +35,13 @@ DescribeAuditFilesResult::~DescribeAuditFilesResult() void DescribeAuditFilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogFile"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeAuditLogFilterResult.cc b/dds/src/model/DescribeAuditLogFilterResult.cc index 3a1fd6ff8..49b1c15dc 100644 --- a/dds/src/model/DescribeAuditLogFilterResult.cc +++ b/dds/src/model/DescribeAuditLogFilterResult.cc @@ -35,10 +35,13 @@ DescribeAuditLogFilterResult::~DescribeAuditLogFilterResult() void DescribeAuditLogFilterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Filter"].isNull()) filter_ = value["Filter"].asString(); diff --git a/dds/src/model/DescribeAuditPolicyResult.cc b/dds/src/model/DescribeAuditPolicyResult.cc index 92d60f6ff..e6c65e840 100644 --- a/dds/src/model/DescribeAuditPolicyResult.cc +++ b/dds/src/model/DescribeAuditPolicyResult.cc @@ -35,10 +35,13 @@ DescribeAuditPolicyResult::~DescribeAuditPolicyResult() void DescribeAuditPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["LogAuditStatus"].isNull()) logAuditStatus_ = value["LogAuditStatus"].asString(); diff --git a/dds/src/model/DescribeAuditRecordsResult.cc b/dds/src/model/DescribeAuditRecordsResult.cc index 2a023946f..e7aca7101 100644 --- a/dds/src/model/DescribeAuditRecordsResult.cc +++ b/dds/src/model/DescribeAuditRecordsResult.cc @@ -35,10 +35,13 @@ DescribeAuditRecordsResult::~DescribeAuditRecordsResult() void DescribeAuditRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["SQLRecord"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeAvailableEngineVersionResult.cc b/dds/src/model/DescribeAvailableEngineVersionResult.cc index f34b77ae2..976ceccb0 100644 --- a/dds/src/model/DescribeAvailableEngineVersionResult.cc +++ b/dds/src/model/DescribeAvailableEngineVersionResult.cc @@ -35,10 +35,13 @@ DescribeAvailableEngineVersionResult::~DescribeAvailableEngineVersionResult() void DescribeAvailableEngineVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEngineVersions = value["EngineVersions"]["EngineVersion"]; for (const auto &item : allEngineVersions) diff --git a/dds/src/model/DescribeAvailableTimeRangeResult.cc b/dds/src/model/DescribeAvailableTimeRangeResult.cc index 388267ca0..50028f033 100644 --- a/dds/src/model/DescribeAvailableTimeRangeResult.cc +++ b/dds/src/model/DescribeAvailableTimeRangeResult.cc @@ -35,10 +35,13 @@ DescribeAvailableTimeRangeResult::~DescribeAvailableTimeRangeResult() void DescribeAvailableTimeRangeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTimeRange = value["TimeRange"]["TimeRangeItem"]; for (auto value : allTimeRange) diff --git a/dds/src/model/DescribeAvaliableTimeRangeResult.cc b/dds/src/model/DescribeAvaliableTimeRangeResult.cc index d3de61ae6..c60affbe5 100644 --- a/dds/src/model/DescribeAvaliableTimeRangeResult.cc +++ b/dds/src/model/DescribeAvaliableTimeRangeResult.cc @@ -35,10 +35,13 @@ DescribeAvaliableTimeRangeResult::~DescribeAvaliableTimeRangeResult() void DescribeAvaliableTimeRangeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTimeRange = value["TimeRange"]["TimeRangeItem"]; for (auto value : allTimeRange) diff --git a/dds/src/model/DescribeBackupDBsResult.cc b/dds/src/model/DescribeBackupDBsResult.cc index a533402cb..0ee3e2b68 100644 --- a/dds/src/model/DescribeBackupDBsResult.cc +++ b/dds/src/model/DescribeBackupDBsResult.cc @@ -35,10 +35,13 @@ DescribeBackupDBsResult::~DescribeBackupDBsResult() void DescribeBackupDBsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDatabases = value["Databases"]["Database"]; for (auto value : allDatabases) diff --git a/dds/src/model/DescribeBackupPolicyResult.cc b/dds/src/model/DescribeBackupPolicyResult.cc index 1cb334800..dcaf31ec5 100644 --- a/dds/src/model/DescribeBackupPolicyResult.cc +++ b/dds/src/model/DescribeBackupPolicyResult.cc @@ -35,10 +35,13 @@ DescribeBackupPolicyResult::~DescribeBackupPolicyResult() void DescribeBackupPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BackupRetentionPeriod"].isNull()) backupRetentionPeriod_ = value["BackupRetentionPeriod"].asString(); diff --git a/dds/src/model/DescribeBackupsResult.cc b/dds/src/model/DescribeBackupsResult.cc index 7bd029491..97d03b63a 100644 --- a/dds/src/model/DescribeBackupsResult.cc +++ b/dds/src/model/DescribeBackupsResult.cc @@ -35,10 +35,13 @@ DescribeBackupsResult::~DescribeBackupsResult() void DescribeBackupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackups = value["Backups"]["Backup"]; for (auto value : allBackups) diff --git a/dds/src/model/DescribeDBInstanceAttributeResult.cc b/dds/src/model/DescribeDBInstanceAttributeResult.cc index 4ea7ec3ef..be8405e6a 100644 --- a/dds/src/model/DescribeDBInstanceAttributeResult.cc +++ b/dds/src/model/DescribeDBInstanceAttributeResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult() void DescribeDBInstanceAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDBInstances = value["DBInstances"]["DBInstance"]; for (auto value : allDBInstances) @@ -96,12 +99,16 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload) dBInstancesObject.lastDowngradeTime = value["LastDowngradeTime"].asString(); if(!value["ReplicationFactor"].isNull()) dBInstancesObject.replicationFactor = value["ReplicationFactor"].asString(); + if(!value["ReadonlyReplicas"].isNull()) + dBInstancesObject.readonlyReplicas = value["ReadonlyReplicas"].asString(); if(!value["MaxIOPS"].isNull()) dBInstancesObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); if(!value["MaxConnections"].isNull()) dBInstancesObject.maxConnections = std::stoi(value["MaxConnections"].asString()); if(!value["CurrentKernelVersion"].isNull()) dBInstancesObject.currentKernelVersion = value["CurrentKernelVersion"].asString(); + if(!value["VpcAuthMode"].isNull()) + dBInstancesObject.vpcAuthMode = value["VpcAuthMode"].asString(); auto allMongosList = value["MongosList"]["MongosAttribute"]; for (auto value : allMongosList) { @@ -144,8 +151,34 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload) shardListObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); if(!value["MaxConnections"].isNull()) shardListObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + if(!value["ConnectString"].isNull()) + shardListObject.connectString = value["ConnectString"].asString(); + if(!value["Port"].isNull()) + shardListObject.port = std::stoi(value["Port"].asString()); dBInstancesObject.shardList.push_back(shardListObject); } + auto allConfigserverList = value["ConfigserverList"]["ConfigserverAttribute"]; + for (auto value : allConfigserverList) + { + DBInstance::ConfigserverAttribute configserverListObject; + if(!value["NodeId"].isNull()) + configserverListObject.nodeId = value["NodeId"].asString(); + if(!value["NodeDescription"].isNull()) + configserverListObject.nodeDescription = value["NodeDescription"].asString(); + if(!value["NodeClass"].isNull()) + configserverListObject.nodeClass = value["NodeClass"].asString(); + if(!value["NodeStorage"].isNull()) + configserverListObject.nodeStorage = std::stoi(value["NodeStorage"].asString()); + if(!value["MaxIOPS"].isNull()) + configserverListObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); + if(!value["MaxConnections"].isNull()) + configserverListObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + if(!value["ConnectString"].isNull()) + configserverListObject.connectString = value["ConnectString"].asString(); + if(!value["Port"].isNull()) + configserverListObject.port = std::stoi(value["Port"].asString()); + dBInstancesObject.configserverList.push_back(configserverListObject); + } auto allReplicaSets = value["ReplicaSets"]["ReplicaSet"]; for (auto value : allReplicaSets) { diff --git a/dds/src/model/DescribeDBInstanceMonitorResult.cc b/dds/src/model/DescribeDBInstanceMonitorResult.cc index cc75665ec..a2babb41d 100644 --- a/dds/src/model/DescribeDBInstanceMonitorResult.cc +++ b/dds/src/model/DescribeDBInstanceMonitorResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceMonitorResult::~DescribeDBInstanceMonitorResult() void DescribeDBInstanceMonitorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Granularity"].isNull()) granularity_ = value["Granularity"].asString(); diff --git a/dds/src/model/DescribeDBInstancePerformanceResult.cc b/dds/src/model/DescribeDBInstancePerformanceResult.cc index 16421b45a..75327992e 100644 --- a/dds/src/model/DescribeDBInstancePerformanceResult.cc +++ b/dds/src/model/DescribeDBInstancePerformanceResult.cc @@ -35,10 +35,13 @@ DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult() void DescribeDBInstancePerformanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPerformanceKeys = value["PerformanceKeys"]["PerformanceKey"]; for (auto value : allPerformanceKeys) diff --git a/dds/src/model/DescribeDBInstanceSSLResult.cc b/dds/src/model/DescribeDBInstanceSSLResult.cc index 7f01f8c05..a7a99fb2e 100644 --- a/dds/src/model/DescribeDBInstanceSSLResult.cc +++ b/dds/src/model/DescribeDBInstanceSSLResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceSSLResult::~DescribeDBInstanceSSLResult() void DescribeDBInstanceSSLResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SSLExpiredTime"].isNull()) sSLExpiredTime_ = value["SSLExpiredTime"].asString(); diff --git a/dds/src/model/DescribeDBInstancesResult.cc b/dds/src/model/DescribeDBInstancesResult.cc index 4ed453f45..7d204a3a4 100644 --- a/dds/src/model/DescribeDBInstancesResult.cc +++ b/dds/src/model/DescribeDBInstancesResult.cc @@ -35,10 +35,13 @@ DescribeDBInstancesResult::~DescribeDBInstancesResult() void DescribeDBInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDBInstances = value["DBInstances"]["DBInstance"]; for (auto value : allDBInstances) diff --git a/dds/src/model/DescribeErrorLogRecordsResult.cc b/dds/src/model/DescribeErrorLogRecordsResult.cc index c0b78c79b..49d63ea60 100644 --- a/dds/src/model/DescribeErrorLogRecordsResult.cc +++ b/dds/src/model/DescribeErrorLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeErrorLogRecordsResult::~DescribeErrorLogRecordsResult() void DescribeErrorLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogRecords"]; for (auto value : allItems) @@ -53,7 +56,7 @@ void DescribeErrorLogRecordsResult::parse(const std::string &payload) if(!value["ConnInfo"].isNull()) itemsObject.connInfo = value["ConnInfo"].asString(); if(!value["Content"].isNull()) - itemsObject.content = std::stol(value["Content"].asString()); + itemsObject.content = value["Content"].asString(); items_.push_back(itemsObject); } if(!value["Engine"].isNull()) diff --git a/dds/src/model/DescribeIndexRecommendationResult.cc b/dds/src/model/DescribeIndexRecommendationResult.cc index 64d24cc75..ef122a6e9 100644 --- a/dds/src/model/DescribeIndexRecommendationResult.cc +++ b/dds/src/model/DescribeIndexRecommendationResult.cc @@ -35,10 +35,13 @@ DescribeIndexRecommendationResult::~DescribeIndexRecommendationResult() void DescribeIndexRecommendationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAnalyzations = value["Analyzations"]["Analyzation"]; for (auto value : allAnalyzations) diff --git a/dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc b/dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc index c5d2d274f..0a1bc34cd 100644 --- a/dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc +++ b/dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc @@ -35,10 +35,13 @@ DescribeInstanceAutoRenewalAttributeResult::~DescribeInstanceAutoRenewalAttribut void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeKernelReleaseNotesResult.cc b/dds/src/model/DescribeKernelReleaseNotesResult.cc index 0860bacc8..68b02c9ed 100644 --- a/dds/src/model/DescribeKernelReleaseNotesResult.cc +++ b/dds/src/model/DescribeKernelReleaseNotesResult.cc @@ -35,10 +35,13 @@ DescribeKernelReleaseNotesResult::~DescribeKernelReleaseNotesResult() void DescribeKernelReleaseNotesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allReleaseNotes = value["ReleaseNotes"]["ReleaseNote"]; for (auto value : allReleaseNotes) diff --git a/dds/src/model/DescribeParameterModificationHistoryResult.cc b/dds/src/model/DescribeParameterModificationHistoryResult.cc index 77ec08090..b39bc5101 100644 --- a/dds/src/model/DescribeParameterModificationHistoryResult.cc +++ b/dds/src/model/DescribeParameterModificationHistoryResult.cc @@ -35,10 +35,13 @@ DescribeParameterModificationHistoryResult::~DescribeParameterModificationHistor void DescribeParameterModificationHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHistoricalParameters = value["HistoricalParameters"]["HistoricalParameter"]; for (auto value : allHistoricalParameters) diff --git a/dds/src/model/DescribeParameterTemplatesResult.cc b/dds/src/model/DescribeParameterTemplatesResult.cc index bb23d2945..ecc23222f 100644 --- a/dds/src/model/DescribeParameterTemplatesResult.cc +++ b/dds/src/model/DescribeParameterTemplatesResult.cc @@ -35,10 +35,13 @@ DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult() void DescribeParameterTemplatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParameters = value["Parameters"]["TemplateRecord"]; for (auto value : allParameters) diff --git a/dds/src/model/DescribeParametersResult.cc b/dds/src/model/DescribeParametersResult.cc index 93af7d773..5d6fcd163 100644 --- a/dds/src/model/DescribeParametersResult.cc +++ b/dds/src/model/DescribeParametersResult.cc @@ -35,10 +35,13 @@ DescribeParametersResult::~DescribeParametersResult() void DescribeParametersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigParameters = value["ConfigParameters"]["Parameter"]; for (auto value : allConfigParameters) diff --git a/dds/src/model/DescribeRdsVSwitchsResult.cc b/dds/src/model/DescribeRdsVSwitchsResult.cc index 1a64c159a..f0fa0e066 100644 --- a/dds/src/model/DescribeRdsVSwitchsResult.cc +++ b/dds/src/model/DescribeRdsVSwitchsResult.cc @@ -35,10 +35,13 @@ DescribeRdsVSwitchsResult::~DescribeRdsVSwitchsResult() void DescribeRdsVSwitchsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vSwitchesNode = value["VSwitches"]; auto allVSwitch = value["VSwitch"]["VSwitchItem"]; diff --git a/dds/src/model/DescribeRdsVpcsResult.cc b/dds/src/model/DescribeRdsVpcsResult.cc index bcc76f4c6..292ba61f2 100644 --- a/dds/src/model/DescribeRdsVpcsResult.cc +++ b/dds/src/model/DescribeRdsVpcsResult.cc @@ -35,10 +35,13 @@ DescribeRdsVpcsResult::~DescribeRdsVpcsResult() void DescribeRdsVpcsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vpcsNode = value["Vpcs"]; auto allVpc = value["Vpc"]["VpcItem"]; diff --git a/dds/src/model/DescribeRegionsResult.cc b/dds/src/model/DescribeRegionsResult.cc index 76ad48140..b9032ac29 100644 --- a/dds/src/model/DescribeRegionsResult.cc +++ b/dds/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["DdsRegion"]; for (auto value : allRegions) diff --git a/dds/src/model/DescribeRenewalPriceResult.cc b/dds/src/model/DescribeRenewalPriceResult.cc index 246d3b053..d18fa3c99 100644 --- a/dds/src/model/DescribeRenewalPriceResult.cc +++ b/dds/src/model/DescribeRenewalPriceResult.cc @@ -35,10 +35,13 @@ DescribeRenewalPriceResult::~DescribeRenewalPriceResult() void DescribeRenewalPriceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) diff --git a/dds/src/model/DescribeReplicaConflictInfoResult.cc b/dds/src/model/DescribeReplicaConflictInfoResult.cc index f979df293..f7aa9c74d 100644 --- a/dds/src/model/DescribeReplicaConflictInfoResult.cc +++ b/dds/src/model/DescribeReplicaConflictInfoResult.cc @@ -35,10 +35,13 @@ DescribeReplicaConflictInfoResult::~DescribeReplicaConflictInfoResult() void DescribeReplicaConflictInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeReplicaInitializeProgressResult.cc b/dds/src/model/DescribeReplicaInitializeProgressResult.cc index 6166ac1f3..8f1ace77d 100644 --- a/dds/src/model/DescribeReplicaInitializeProgressResult.cc +++ b/dds/src/model/DescribeReplicaInitializeProgressResult.cc @@ -35,10 +35,13 @@ DescribeReplicaInitializeProgressResult::~DescribeReplicaInitializeProgressResul void DescribeReplicaInitializeProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeReplicaPerformanceResult.cc b/dds/src/model/DescribeReplicaPerformanceResult.cc index 5a695f828..cb6b24470 100644 --- a/dds/src/model/DescribeReplicaPerformanceResult.cc +++ b/dds/src/model/DescribeReplicaPerformanceResult.cc @@ -35,10 +35,13 @@ DescribeReplicaPerformanceResult::~DescribeReplicaPerformanceResult() void DescribeReplicaPerformanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto performanceKeysNode = value["PerformanceKeys"]; auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; diff --git a/dds/src/model/DescribeReplicaSetRoleResult.cc b/dds/src/model/DescribeReplicaSetRoleResult.cc index dd6d3acad..d23656e09 100644 --- a/dds/src/model/DescribeReplicaSetRoleResult.cc +++ b/dds/src/model/DescribeReplicaSetRoleResult.cc @@ -35,10 +35,13 @@ DescribeReplicaSetRoleResult::~DescribeReplicaSetRoleResult() void DescribeReplicaSetRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allReplicaSets = value["ReplicaSets"]["ReplicaSet"]; for (auto value : allReplicaSets) diff --git a/dds/src/model/DescribeReplicaUsageResult.cc b/dds/src/model/DescribeReplicaUsageResult.cc index b9b40c3bf..af95a87f2 100644 --- a/dds/src/model/DescribeReplicaUsageResult.cc +++ b/dds/src/model/DescribeReplicaUsageResult.cc @@ -35,10 +35,13 @@ DescribeReplicaUsageResult::~DescribeReplicaUsageResult() void DescribeReplicaUsageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto performanceKeysNode = value["PerformanceKeys"]; auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; diff --git a/dds/src/model/DescribeReplicasResult.cc b/dds/src/model/DescribeReplicasResult.cc index 583fc2704..0e508a93b 100644 --- a/dds/src/model/DescribeReplicasResult.cc +++ b/dds/src/model/DescribeReplicasResult.cc @@ -35,10 +35,13 @@ DescribeReplicasResult::~DescribeReplicasResult() void DescribeReplicasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allReplicas = value["Replicas"]["Items"]; for (auto value : allReplicas) diff --git a/dds/src/model/DescribeReplicationGroupResult.cc b/dds/src/model/DescribeReplicationGroupResult.cc index 959d9b27d..65556546e 100644 --- a/dds/src/model/DescribeReplicationGroupResult.cc +++ b/dds/src/model/DescribeReplicationGroupResult.cc @@ -35,10 +35,13 @@ DescribeReplicationGroupResult::~DescribeReplicationGroupResult() void DescribeReplicationGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto alltunnelContext = value["tunnelContext"]["TunnelContext"]; for (const auto &item : alltunnelContext) diff --git a/dds/src/model/DescribeRoleZoneInfoRequest.cc b/dds/src/model/DescribeRoleZoneInfoRequest.cc new file mode 100644 index 000000000..2fbb33a48 --- /dev/null +++ b/dds/src/model/DescribeRoleZoneInfoRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds::Model::DescribeRoleZoneInfoRequest; + +DescribeRoleZoneInfoRequest::DescribeRoleZoneInfoRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeRoleZoneInfo") +{} + +DescribeRoleZoneInfoRequest::~DescribeRoleZoneInfoRequest() +{} + +long DescribeRoleZoneInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRoleZoneInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRoleZoneInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRoleZoneInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRoleZoneInfoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRoleZoneInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRoleZoneInfoRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRoleZoneInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeRoleZoneInfoRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRoleZoneInfoRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRoleZoneInfoRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeRoleZoneInfoRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeRoleZoneInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRoleZoneInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRoleZoneInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRoleZoneInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeRoleZoneInfoResult.cc b/dds/src/model/DescribeRoleZoneInfoResult.cc new file mode 100644 index 000000000..a0f53ff71 --- /dev/null +++ b/dds/src/model/DescribeRoleZoneInfoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeRoleZoneInfoResult::DescribeRoleZoneInfoResult() : + ServiceResult() +{} + +DescribeRoleZoneInfoResult::DescribeRoleZoneInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRoleZoneInfoResult::~DescribeRoleZoneInfoResult() +{} + +void DescribeRoleZoneInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allZoneInfos = value["ZoneInfos"]["ZoneInfo"]; + for (auto value : allZoneInfos) + { + ZoneInfo zoneInfosObject; + if(!value["NodeType"].isNull()) + zoneInfosObject.nodeType = value["NodeType"].asString(); + if(!value["RoleType"].isNull()) + zoneInfosObject.roleType = value["RoleType"].asString(); + if(!value["ZoneId"].isNull()) + zoneInfosObject.zoneId = value["ZoneId"].asString(); + if(!value["RoleId"].isNull()) + zoneInfosObject.roleId = value["RoleId"].asString(); + if(!value["InsName"].isNull()) + zoneInfosObject.insName = value["InsName"].asString(); + zoneInfos_.push_back(zoneInfosObject); + } + +} + +std::vector DescribeRoleZoneInfoResult::getZoneInfos()const +{ + return zoneInfos_; +} + diff --git a/dds/src/model/DescribeRunningLogRecordsResult.cc b/dds/src/model/DescribeRunningLogRecordsResult.cc index 7f8024b6a..110560c07 100644 --- a/dds/src/model/DescribeRunningLogRecordsResult.cc +++ b/dds/src/model/DescribeRunningLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeRunningLogRecordsResult::~DescribeRunningLogRecordsResult() void DescribeRunningLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogRecords"]; for (auto value : allItems) @@ -53,7 +56,7 @@ void DescribeRunningLogRecordsResult::parse(const std::string &payload) if(!value["ConnInfo"].isNull()) itemsObject.connInfo = value["ConnInfo"].asString(); if(!value["Content"].isNull()) - itemsObject.content = std::stol(value["Content"].asString()); + itemsObject.content = value["Content"].asString(); items_.push_back(itemsObject); } if(!value["Engine"].isNull()) diff --git a/dds/src/model/DescribeSecurityIpsResult.cc b/dds/src/model/DescribeSecurityIpsResult.cc index bba324abe..d0ef1f0c6 100644 --- a/dds/src/model/DescribeSecurityIpsResult.cc +++ b/dds/src/model/DescribeSecurityIpsResult.cc @@ -35,10 +35,13 @@ DescribeSecurityIpsResult::~DescribeSecurityIpsResult() void DescribeSecurityIpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSecurityIpGroups = value["SecurityIpGroups"]["SecurityIpGroup"]; for (auto value : allSecurityIpGroups) diff --git a/dds/src/model/DescribeShardingNetworkAddressResult.cc b/dds/src/model/DescribeShardingNetworkAddressResult.cc index b8a83f74f..51bfbb3f4 100644 --- a/dds/src/model/DescribeShardingNetworkAddressResult.cc +++ b/dds/src/model/DescribeShardingNetworkAddressResult.cc @@ -35,10 +35,13 @@ DescribeShardingNetworkAddressResult::~DescribeShardingNetworkAddressResult() void DescribeShardingNetworkAddressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNetworkAddresses = value["NetworkAddresses"]["NetworkAddress"]; for (auto value : allNetworkAddresses) @@ -60,6 +63,8 @@ void DescribeShardingNetworkAddressResult::parse(const std::string &payload) networkAddressesObject.nodeId = value["NodeId"].asString(); if(!value["ExpiredTime"].isNull()) networkAddressesObject.expiredTime = value["ExpiredTime"].asString(); + if(!value["NodeType"].isNull()) + networkAddressesObject.nodeType = value["NodeType"].asString(); networkAddresses_.push_back(networkAddressesObject); } diff --git a/dds/src/model/DescribeSlowLogRecordsResult.cc b/dds/src/model/DescribeSlowLogRecordsResult.cc index 8aa7deef4..b81c3511f 100644 --- a/dds/src/model/DescribeSlowLogRecordsResult.cc +++ b/dds/src/model/DescribeSlowLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() void DescribeSlowLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogRecords"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeStaticVerificationListResult.cc b/dds/src/model/DescribeStaticVerificationListResult.cc index 63e84fed0..5a15ecef2 100644 --- a/dds/src/model/DescribeStaticVerificationListResult.cc +++ b/dds/src/model/DescribeStaticVerificationListResult.cc @@ -35,10 +35,13 @@ DescribeStaticVerificationListResult::~DescribeStaticVerificationListResult() void DescribeStaticVerificationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/dds/src/model/DescribeStrategyResult.cc b/dds/src/model/DescribeStrategyResult.cc index b3eba6503..513db508e 100644 --- a/dds/src/model/DescribeStrategyResult.cc +++ b/dds/src/model/DescribeStrategyResult.cc @@ -35,10 +35,13 @@ DescribeStrategyResult::~DescribeStrategyResult() void DescribeStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ReplicaId"].isNull()) replicaId_ = value["ReplicaId"].asString(); diff --git a/dds/src/model/DescribeVerificationListResult.cc b/dds/src/model/DescribeVerificationListResult.cc index 0722f2895..35ac8db18 100644 --- a/dds/src/model/DescribeVerificationListResult.cc +++ b/dds/src/model/DescribeVerificationListResult.cc @@ -35,10 +35,13 @@ DescribeVerificationListResult::~DescribeVerificationListResult() void DescribeVerificationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/dds/src/model/DestroyInstanceResult.cc b/dds/src/model/DestroyInstanceResult.cc index 4d42f12df..5d6cb212f 100644 --- a/dds/src/model/DestroyInstanceResult.cc +++ b/dds/src/model/DestroyInstanceResult.cc @@ -35,10 +35,13 @@ DestroyInstanceResult::~DestroyInstanceResult() void DestroyInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/EvaluateFailOverSwitchResult.cc b/dds/src/model/EvaluateFailOverSwitchResult.cc index cb77fd764..58364956a 100644 --- a/dds/src/model/EvaluateFailOverSwitchResult.cc +++ b/dds/src/model/EvaluateFailOverSwitchResult.cc @@ -35,10 +35,13 @@ EvaluateFailOverSwitchResult::~EvaluateFailOverSwitchResult() void EvaluateFailOverSwitchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/dds/src/model/ListTagResourcesResult.cc b/dds/src/model/ListTagResourcesResult.cc index 13b2f6ed4..a8d50d953 100644 --- a/dds/src/model/ListTagResourcesResult.cc +++ b/dds/src/model/ListTagResourcesResult.cc @@ -35,10 +35,13 @@ ListTagResourcesResult::~ListTagResourcesResult() void ListTagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagResources = value["TagResources"]["TagResource"]; for (auto value : allTagResources) diff --git a/dds/src/model/MigrateAvailableZoneResult.cc b/dds/src/model/MigrateAvailableZoneResult.cc index 6c59fffae..64feed468 100644 --- a/dds/src/model/MigrateAvailableZoneResult.cc +++ b/dds/src/model/MigrateAvailableZoneResult.cc @@ -35,10 +35,13 @@ MigrateAvailableZoneResult::~MigrateAvailableZoneResult() void MigrateAvailableZoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/MigrateToOtherZoneResult.cc b/dds/src/model/MigrateToOtherZoneResult.cc index 1efbfb119..21d9f83f9 100644 --- a/dds/src/model/MigrateToOtherZoneResult.cc +++ b/dds/src/model/MigrateToOtherZoneResult.cc @@ -35,10 +35,13 @@ MigrateToOtherZoneResult::~MigrateToOtherZoneResult() void MigrateToOtherZoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyAccountDescriptionResult.cc b/dds/src/model/ModifyAccountDescriptionResult.cc index bad5f07a4..ae5a36aae 100644 --- a/dds/src/model/ModifyAccountDescriptionResult.cc +++ b/dds/src/model/ModifyAccountDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() void ModifyAccountDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyActiveOperationTaskResult.cc b/dds/src/model/ModifyActiveOperationTaskResult.cc index 52933079f..210c9b2e2 100644 --- a/dds/src/model/ModifyActiveOperationTaskResult.cc +++ b/dds/src/model/ModifyActiveOperationTaskResult.cc @@ -35,10 +35,13 @@ ModifyActiveOperationTaskResult::~ModifyActiveOperationTaskResult() void ModifyActiveOperationTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ids"].isNull()) ids_ = value["Ids"].asString(); diff --git a/dds/src/model/ModifyAuditLogFilterResult.cc b/dds/src/model/ModifyAuditLogFilterResult.cc index e469d0a3f..3937a4f0e 100644 --- a/dds/src/model/ModifyAuditLogFilterResult.cc +++ b/dds/src/model/ModifyAuditLogFilterResult.cc @@ -35,10 +35,13 @@ ModifyAuditLogFilterResult::~ModifyAuditLogFilterResult() void ModifyAuditLogFilterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyAuditPolicyResult.cc b/dds/src/model/ModifyAuditPolicyResult.cc index 6aed2cdbd..cc03f83ad 100644 --- a/dds/src/model/ModifyAuditPolicyResult.cc +++ b/dds/src/model/ModifyAuditPolicyResult.cc @@ -35,10 +35,13 @@ ModifyAuditPolicyResult::~ModifyAuditPolicyResult() void ModifyAuditPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyBackupPolicyResult.cc b/dds/src/model/ModifyBackupPolicyResult.cc index f0bf881dd..31bf93c9b 100644 --- a/dds/src/model/ModifyBackupPolicyResult.cc +++ b/dds/src/model/ModifyBackupPolicyResult.cc @@ -35,10 +35,13 @@ ModifyBackupPolicyResult::~ModifyBackupPolicyResult() void ModifyBackupPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceConnectionStringResult.cc b/dds/src/model/ModifyDBInstanceConnectionStringResult.cc index a75be0d78..ccf5f32ec 100644 --- a/dds/src/model/ModifyDBInstanceConnectionStringResult.cc +++ b/dds/src/model/ModifyDBInstanceConnectionStringResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult( void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceDescriptionResult.cc b/dds/src/model/ModifyDBInstanceDescriptionResult.cc index ea233c7ee..077d6d6d7 100644 --- a/dds/src/model/ModifyDBInstanceDescriptionResult.cc +++ b/dds/src/model/ModifyDBInstanceDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceDescriptionResult::~ModifyDBInstanceDescriptionResult() void ModifyDBInstanceDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceMaintainTimeResult.cc b/dds/src/model/ModifyDBInstanceMaintainTimeResult.cc index 204e4895f..5c6200b08 100644 --- a/dds/src/model/ModifyDBInstanceMaintainTimeResult.cc +++ b/dds/src/model/ModifyDBInstanceMaintainTimeResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceMaintainTimeResult::~ModifyDBInstanceMaintainTimeResult() void ModifyDBInstanceMaintainTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceMonitorResult.cc b/dds/src/model/ModifyDBInstanceMonitorResult.cc index bfe38cbcb..6045d781d 100644 --- a/dds/src/model/ModifyDBInstanceMonitorResult.cc +++ b/dds/src/model/ModifyDBInstanceMonitorResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceMonitorResult::~ModifyDBInstanceMonitorResult() void ModifyDBInstanceMonitorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceNetExpireTimeResult.cc b/dds/src/model/ModifyDBInstanceNetExpireTimeResult.cc index d8e70218a..82dbf9672 100644 --- a/dds/src/model/ModifyDBInstanceNetExpireTimeResult.cc +++ b/dds/src/model/ModifyDBInstanceNetExpireTimeResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceNetExpireTimeResult::~ModifyDBInstanceNetExpireTimeResult() void ModifyDBInstanceNetExpireTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceNetworkTypeResult.cc b/dds/src/model/ModifyDBInstanceNetworkTypeResult.cc index e498a1d0a..11cb99125 100644 --- a/dds/src/model/ModifyDBInstanceNetworkTypeResult.cc +++ b/dds/src/model/ModifyDBInstanceNetworkTypeResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult() void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceSSLResult.cc b/dds/src/model/ModifyDBInstanceSSLResult.cc index 1d9647767..58b54d32f 100644 --- a/dds/src/model/ModifyDBInstanceSSLResult.cc +++ b/dds/src/model/ModifyDBInstanceSSLResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceSSLResult::~ModifyDBInstanceSSLResult() void ModifyDBInstanceSSLResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyDBInstanceSpecRequest.cc b/dds/src/model/ModifyDBInstanceSpecRequest.cc index 2e55e3d01..c9235348d 100644 --- a/dds/src/model/ModifyDBInstanceSpecRequest.cc +++ b/dds/src/model/ModifyDBInstanceSpecRequest.cc @@ -91,6 +91,17 @@ void ModifyDBInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccoun setCoreParameter("OwnerAccount", ownerAccount); } +std::string ModifyDBInstanceSpecRequest::getReadonlyReplicas()const +{ + return readonlyReplicas_; +} + +void ModifyDBInstanceSpecRequest::setReadonlyReplicas(const std::string& readonlyReplicas) +{ + readonlyReplicas_ = readonlyReplicas; + setCoreParameter("ReadonlyReplicas", readonlyReplicas); +} + std::string ModifyDBInstanceSpecRequest::getCouponNo()const { return couponNo_; diff --git a/dds/src/model/ModifyDBInstanceSpecResult.cc b/dds/src/model/ModifyDBInstanceSpecResult.cc index 2a14ba351..120a93d02 100644 --- a/dds/src/model/ModifyDBInstanceSpecResult.cc +++ b/dds/src/model/ModifyDBInstanceSpecResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceSpecResult::~ModifyDBInstanceSpecResult() void ModifyDBInstanceSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dds/src/model/ModifyGuardDomainModeResult.cc b/dds/src/model/ModifyGuardDomainModeResult.cc index c66a03c2f..2801fcd1f 100644 --- a/dds/src/model/ModifyGuardDomainModeResult.cc +++ b/dds/src/model/ModifyGuardDomainModeResult.cc @@ -35,10 +35,13 @@ ModifyGuardDomainModeResult::~ModifyGuardDomainModeResult() void ModifyGuardDomainModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc b/dds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc index 6734c75d3..135516e82 100644 --- a/dds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc +++ b/dds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc @@ -35,10 +35,13 @@ ModifyInstanceAutoRenewalAttributeResult::~ModifyInstanceAutoRenewalAttributeRes void ModifyInstanceAutoRenewalAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyInstanceVpcAuthModeRequest.cc b/dds/src/model/ModifyInstanceVpcAuthModeRequest.cc new file mode 100644 index 000000000..f2efe789a --- /dev/null +++ b/dds/src/model/ModifyInstanceVpcAuthModeRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds::Model::ModifyInstanceVpcAuthModeRequest; + +ModifyInstanceVpcAuthModeRequest::ModifyInstanceVpcAuthModeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyInstanceVpcAuthMode") +{} + +ModifyInstanceVpcAuthModeRequest::~ModifyInstanceVpcAuthModeRequest() +{} + +long ModifyInstanceVpcAuthModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceVpcAuthModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceVpcAuthModeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyInstanceVpcAuthModeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyInstanceVpcAuthModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceVpcAuthModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceVpcAuthModeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceVpcAuthModeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyInstanceVpcAuthModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceVpcAuthModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyInstanceVpcAuthModeRequest::getVpcAuthMode()const +{ + return vpcAuthMode_; +} + +void ModifyInstanceVpcAuthModeRequest::setVpcAuthMode(const std::string& vpcAuthMode) +{ + vpcAuthMode_ = vpcAuthMode; + setCoreParameter("VpcAuthMode", vpcAuthMode); +} + +std::string ModifyInstanceVpcAuthModeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyInstanceVpcAuthModeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyInstanceVpcAuthModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceVpcAuthModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceVpcAuthModeRequest::getNodeId()const +{ + return nodeId_; +} + +void ModifyInstanceVpcAuthModeRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string ModifyInstanceVpcAuthModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyInstanceVpcAuthModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyInstanceVpcAuthModeResult.cc b/dds/src/model/ModifyInstanceVpcAuthModeResult.cc new file mode 100644 index 000000000..57daeba3e --- /dev/null +++ b/dds/src/model/ModifyInstanceVpcAuthModeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyInstanceVpcAuthModeResult::ModifyInstanceVpcAuthModeResult() : + ServiceResult() +{} + +ModifyInstanceVpcAuthModeResult::ModifyInstanceVpcAuthModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceVpcAuthModeResult::~ModifyInstanceVpcAuthModeResult() +{} + +void ModifyInstanceVpcAuthModeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ModifyNodeSpecResult.cc b/dds/src/model/ModifyNodeSpecResult.cc index e02034193..525ba4e86 100644 --- a/dds/src/model/ModifyNodeSpecResult.cc +++ b/dds/src/model/ModifyNodeSpecResult.cc @@ -35,10 +35,13 @@ ModifyNodeSpecResult::~ModifyNodeSpecResult() void ModifyNodeSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dds/src/model/ModifyParametersResult.cc b/dds/src/model/ModifyParametersResult.cc index 1876b9a28..08a94bfc0 100644 --- a/dds/src/model/ModifyParametersResult.cc +++ b/dds/src/model/ModifyParametersResult.cc @@ -35,10 +35,13 @@ ModifyParametersResult::~ModifyParametersResult() void ModifyParametersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyReplicaDescriptionResult.cc b/dds/src/model/ModifyReplicaDescriptionResult.cc index b0648f2a5..f4ee604d7 100644 --- a/dds/src/model/ModifyReplicaDescriptionResult.cc +++ b/dds/src/model/ModifyReplicaDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyReplicaDescriptionResult::~ModifyReplicaDescriptionResult() void ModifyReplicaDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyReplicaModeResult.cc b/dds/src/model/ModifyReplicaModeResult.cc index 8e9f84e04..934ba8655 100644 --- a/dds/src/model/ModifyReplicaModeResult.cc +++ b/dds/src/model/ModifyReplicaModeResult.cc @@ -35,10 +35,13 @@ ModifyReplicaModeResult::~ModifyReplicaModeResult() void ModifyReplicaModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyReplicaRecoveryModeResult.cc b/dds/src/model/ModifyReplicaRecoveryModeResult.cc index 7fe5f3551..510f19b94 100644 --- a/dds/src/model/ModifyReplicaRecoveryModeResult.cc +++ b/dds/src/model/ModifyReplicaRecoveryModeResult.cc @@ -35,10 +35,13 @@ ModifyReplicaRecoveryModeResult::~ModifyReplicaRecoveryModeResult() void ModifyReplicaRecoveryModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyReplicaRelationResult.cc b/dds/src/model/ModifyReplicaRelationResult.cc index 30cf068d2..e06fb6461 100644 --- a/dds/src/model/ModifyReplicaRelationResult.cc +++ b/dds/src/model/ModifyReplicaRelationResult.cc @@ -35,10 +35,13 @@ ModifyReplicaRelationResult::~ModifyReplicaRelationResult() void ModifyReplicaRelationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifyReplicaVerificationModeResult.cc b/dds/src/model/ModifyReplicaVerificationModeResult.cc index 0bedfdf19..5cc7fa23f 100644 --- a/dds/src/model/ModifyReplicaVerificationModeResult.cc +++ b/dds/src/model/ModifyReplicaVerificationModeResult.cc @@ -35,10 +35,13 @@ ModifyReplicaVerificationModeResult::~ModifyReplicaVerificationModeResult() void ModifyReplicaVerificationModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ModifySecurityIpsResult.cc b/dds/src/model/ModifySecurityIpsResult.cc index 102c91b23..3130f14a9 100644 --- a/dds/src/model/ModifySecurityIpsResult.cc +++ b/dds/src/model/ModifySecurityIpsResult.cc @@ -35,10 +35,13 @@ ModifySecurityIpsResult::~ModifySecurityIpsResult() void ModifySecurityIpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ReleaseNodePrivateNetworkAddressRequest.cc b/dds/src/model/ReleaseNodePrivateNetworkAddressRequest.cc new file mode 100644 index 000000000..9ff613ae1 --- /dev/null +++ b/dds/src/model/ReleaseNodePrivateNetworkAddressRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds::Model::ReleaseNodePrivateNetworkAddressRequest; + +ReleaseNodePrivateNetworkAddressRequest::ReleaseNodePrivateNetworkAddressRequest() : + RpcServiceRequest("dds", "2015-12-01", "ReleaseNodePrivateNetworkAddress") +{} + +ReleaseNodePrivateNetworkAddressRequest::~ReleaseNodePrivateNetworkAddressRequest() +{} + +long ReleaseNodePrivateNetworkAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getRegionId()const +{ + return regionId_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getNetworkType()const +{ + return networkType_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setCoreParameter("NetworkType", networkType); +} + +long ReleaseNodePrivateNetworkAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getNodeId()const +{ + return nodeId_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string ReleaseNodePrivateNetworkAddressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseNodePrivateNetworkAddressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ReleaseNodePrivateNetworkAddressResult.cc b/dds/src/model/ReleaseNodePrivateNetworkAddressResult.cc new file mode 100644 index 000000000..262bf8420 --- /dev/null +++ b/dds/src/model/ReleaseNodePrivateNetworkAddressResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +ReleaseNodePrivateNetworkAddressResult::ReleaseNodePrivateNetworkAddressResult() : + ServiceResult() +{} + +ReleaseNodePrivateNetworkAddressResult::ReleaseNodePrivateNetworkAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseNodePrivateNetworkAddressResult::~ReleaseNodePrivateNetworkAddressResult() +{} + +void ReleaseNodePrivateNetworkAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ReleasePublicNetworkAddressResult.cc b/dds/src/model/ReleasePublicNetworkAddressResult.cc index f328898e1..89415aa17 100644 --- a/dds/src/model/ReleasePublicNetworkAddressResult.cc +++ b/dds/src/model/ReleasePublicNetworkAddressResult.cc @@ -35,10 +35,13 @@ ReleasePublicNetworkAddressResult::~ReleasePublicNetworkAddressResult() void ReleasePublicNetworkAddressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/ReleaseReplicaResult.cc b/dds/src/model/ReleaseReplicaResult.cc index bf08b280c..4bccf0e1d 100644 --- a/dds/src/model/ReleaseReplicaResult.cc +++ b/dds/src/model/ReleaseReplicaResult.cc @@ -35,10 +35,13 @@ ReleaseReplicaResult::~ReleaseReplicaResult() void ReleaseReplicaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/RenewDBInstanceResult.cc b/dds/src/model/RenewDBInstanceResult.cc index 8dcc91563..3953d9a9c 100644 --- a/dds/src/model/RenewDBInstanceResult.cc +++ b/dds/src/model/RenewDBInstanceResult.cc @@ -35,10 +35,13 @@ RenewDBInstanceResult::~RenewDBInstanceResult() void RenewDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dds/src/model/ResetAccountPasswordResult.cc b/dds/src/model/ResetAccountPasswordResult.cc index 6e18661f9..ab7135ed3 100644 --- a/dds/src/model/ResetAccountPasswordResult.cc +++ b/dds/src/model/ResetAccountPasswordResult.cc @@ -35,10 +35,13 @@ ResetAccountPasswordResult::~ResetAccountPasswordResult() void ResetAccountPasswordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/RestartDBInstanceResult.cc b/dds/src/model/RestartDBInstanceResult.cc index 40a3eaafd..056d99151 100644 --- a/dds/src/model/RestartDBInstanceResult.cc +++ b/dds/src/model/RestartDBInstanceResult.cc @@ -35,10 +35,13 @@ RestartDBInstanceResult::~RestartDBInstanceResult() void RestartDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/RestoreDBInstanceResult.cc b/dds/src/model/RestoreDBInstanceResult.cc index 6b7ac0e22..e318b4e2c 100644 --- a/dds/src/model/RestoreDBInstanceResult.cc +++ b/dds/src/model/RestoreDBInstanceResult.cc @@ -35,10 +35,13 @@ RestoreDBInstanceResult::~RestoreDBInstanceResult() void RestoreDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/SampleResult.cc b/dds/src/model/SampleResult.cc index f43a23353..b92d6b68c 100644 --- a/dds/src/model/SampleResult.cc +++ b/dds/src/model/SampleResult.cc @@ -35,10 +35,13 @@ SampleResult::~SampleResult() void SampleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSecurityIpGroups = value["SecurityIpGroups"]["SecurityIpGroup"]; for (auto value : allSecurityIpGroups) diff --git a/dds/src/model/SwitchDBInstanceHARequest.cc b/dds/src/model/SwitchDBInstanceHARequest.cc index c00399cfc..1e0ae74ee 100644 --- a/dds/src/model/SwitchDBInstanceHARequest.cc +++ b/dds/src/model/SwitchDBInstanceHARequest.cc @@ -91,6 +91,17 @@ void SwitchDBInstanceHARequest::setTargetInstanceId(int targetInstanceId) setCoreParameter("TargetInstanceId", std::to_string(targetInstanceId)); } +std::string SwitchDBInstanceHARequest::getRoleIds()const +{ + return roleIds_; +} + +void SwitchDBInstanceHARequest::setRoleIds(const std::string& roleIds) +{ + roleIds_ = roleIds; + setCoreParameter("RoleIds", roleIds); +} + std::string SwitchDBInstanceHARequest::getSecurityToken()const { return securityToken_; diff --git a/dds/src/model/SwitchDBInstanceHAResult.cc b/dds/src/model/SwitchDBInstanceHAResult.cc index f8124c954..a1218a1e2 100644 --- a/dds/src/model/SwitchDBInstanceHAResult.cc +++ b/dds/src/model/SwitchDBInstanceHAResult.cc @@ -35,10 +35,13 @@ SwitchDBInstanceHAResult::~SwitchDBInstanceHAResult() void SwitchDBInstanceHAResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/SwithcDBInstanceHAResult.cc b/dds/src/model/SwithcDBInstanceHAResult.cc index 00c016f93..9ded1d8ca 100644 --- a/dds/src/model/SwithcDBInstanceHAResult.cc +++ b/dds/src/model/SwithcDBInstanceHAResult.cc @@ -35,10 +35,13 @@ SwithcDBInstanceHAResult::~SwithcDBInstanceHAResult() void SwithcDBInstanceHAResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/TagResourcesResult.cc b/dds/src/model/TagResourcesResult.cc index 05a362a4d..5a6aa8401 100644 --- a/dds/src/model/TagResourcesResult.cc +++ b/dds/src/model/TagResourcesResult.cc @@ -35,10 +35,13 @@ TagResourcesResult::~TagResourcesResult() void TagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/TransformToPrePaidResult.cc b/dds/src/model/TransformToPrePaidResult.cc index 11cf1d4b0..37065c77e 100644 --- a/dds/src/model/TransformToPrePaidResult.cc +++ b/dds/src/model/TransformToPrePaidResult.cc @@ -35,10 +35,13 @@ TransformToPrePaidResult::~TransformToPrePaidResult() void TransformToPrePaidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dds/src/model/UntagResourcesResult.cc b/dds/src/model/UntagResourcesResult.cc index 9c200cae8..701db4335 100644 --- a/dds/src/model/UntagResourcesResult.cc +++ b/dds/src/model/UntagResourcesResult.cc @@ -35,10 +35,13 @@ UntagResourcesResult::~UntagResourcesResult() void UntagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/UpgradeDBInstanceEngineVersionResult.cc b/dds/src/model/UpgradeDBInstanceEngineVersionResult.cc index abcb1a98c..7d1dddca4 100644 --- a/dds/src/model/UpgradeDBInstanceEngineVersionResult.cc +++ b/dds/src/model/UpgradeDBInstanceEngineVersionResult.cc @@ -35,10 +35,13 @@ UpgradeDBInstanceEngineVersionResult::~UpgradeDBInstanceEngineVersionResult() void UpgradeDBInstanceEngineVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/dds/src/model/UpgradeDBInstanceKernelVersionResult.cc b/dds/src/model/UpgradeDBInstanceKernelVersionResult.cc index d0d09543e..8dc5ffc8a 100644 --- a/dds/src/model/UpgradeDBInstanceKernelVersionResult.cc +++ b/dds/src/model/UpgradeDBInstanceKernelVersionResult.cc @@ -35,10 +35,13 @@ UpgradeDBInstanceKernelVersionResult::~UpgradeDBInstanceKernelVersionResult() void UpgradeDBInstanceKernelVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/CMakeLists.txt b/domain/CMakeLists.txt index d4f26b898..bc5c2e1ee 100644 --- a/domain/CMakeLists.txt +++ b/domain/CMakeLists.txt @@ -55,20 +55,24 @@ set(domain_public_header_model include/alibabacloud/domain/model/QueryBidRecordsResult.h include/alibabacloud/domain/model/RecordDemandRequest.h include/alibabacloud/domain/model/RecordDemandResult.h - include/alibabacloud/domain/model/UpdateDomainToDomainGroupRequest.h - include/alibabacloud/domain/model/UpdateDomainToDomainGroupResult.h + include/alibabacloud/domain/model/QueryArtExtensionRequest.h + include/alibabacloud/domain/model/QueryArtExtensionResult.h include/alibabacloud/domain/model/QueryContactInfoRequest.h include/alibabacloud/domain/model/QueryContactInfoResult.h + include/alibabacloud/domain/model/UpdateDomainToDomainGroupRequest.h + include/alibabacloud/domain/model/UpdateDomainToDomainGroupResult.h include/alibabacloud/domain/model/QueryDomainSuffixRequest.h include/alibabacloud/domain/model/QueryDomainSuffixResult.h - include/alibabacloud/domain/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.h - include/alibabacloud/domain/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.h include/alibabacloud/domain/model/GetReserveDomainUrlRequest.h include/alibabacloud/domain/model/GetReserveDomainUrlResult.h + include/alibabacloud/domain/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.h include/alibabacloud/domain/model/QueryLocalEnsAssociationRequest.h include/alibabacloud/domain/model/QueryLocalEnsAssociationResult.h include/alibabacloud/domain/model/SubmitEmailVerificationRequest.h include/alibabacloud/domain/model/SubmitEmailVerificationResult.h + include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordResult.h include/alibabacloud/domain/model/ResendEmailVerificationRequest.h include/alibabacloud/domain/model/ResendEmailVerificationResult.h include/alibabacloud/domain/model/BidDomainRequest.h @@ -83,18 +87,20 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveSingleTaskForUpdatingContactInfoResult.h include/alibabacloud/domain/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest.h include/alibabacloud/domain/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult.h - include/alibabacloud/domain/model/GetQualificationUploadPolicyRequest.h - include/alibabacloud/domain/model/GetQualificationUploadPolicyResult.h - include/alibabacloud/domain/model/QueryDomainRealNameVerificationInfoRequest.h - include/alibabacloud/domain/model/QueryDomainRealNameVerificationInfoResult.h include/alibabacloud/domain/model/VerifyEmailRequest.h include/alibabacloud/domain/model/VerifyEmailResult.h + include/alibabacloud/domain/model/QueryDomainRealNameVerificationInfoRequest.h + include/alibabacloud/domain/model/QueryDomainRealNameVerificationInfoResult.h + include/alibabacloud/domain/model/GetQualificationUploadPolicyRequest.h + include/alibabacloud/domain/model/GetQualificationUploadPolicyResult.h include/alibabacloud/domain/model/SaveBatchTaskForDomainNameProxyServiceRequest.h include/alibabacloud/domain/model/SaveBatchTaskForDomainNameProxyServiceResult.h include/alibabacloud/domain/model/SaveBatchTaskForModifyingDomainDnsRequest.h include/alibabacloud/domain/model/SaveBatchTaskForModifyingDomainDnsResult.h include/alibabacloud/domain/model/QueryDnsHostRequest.h include/alibabacloud/domain/model/QueryDnsHostResult.h + include/alibabacloud/domain/model/CancelTaskRequest.h + include/alibabacloud/domain/model/CancelTaskResult.h include/alibabacloud/domain/model/QueryRegistrantProfileRealNameVerificationInfoRequest.h include/alibabacloud/domain/model/QueryRegistrantProfileRealNameVerificationInfoResult.h include/alibabacloud/domain/model/FuzzyMatchDomainSensitiveWordRequest.h @@ -103,6 +109,8 @@ set(domain_public_header_model include/alibabacloud/domain/model/FailDemandResult.h include/alibabacloud/domain/model/SaveSingleTaskForCancelingTransferInRequest.h include/alibabacloud/domain/model/SaveSingleTaskForCancelingTransferInResult.h + include/alibabacloud/domain/model/QueryDSRecordRequest.h + include/alibabacloud/domain/model/QueryDSRecordResult.h include/alibabacloud/domain/model/QueryQualificationDetailRequest.h include/alibabacloud/domain/model/QueryQualificationDetailResult.h include/alibabacloud/domain/model/SaveBatchTaskForTransferProhibitionLockRequest.h @@ -125,6 +133,10 @@ set(domain_public_header_model include/alibabacloud/domain/model/QueryServerLockResult.h include/alibabacloud/domain/model/BatchFuzzyMatchDomainSensitiveWordRequest.h include/alibabacloud/domain/model/BatchFuzzyMatchDomainSensitiveWordResult.h + include/alibabacloud/domain/model/ScrollDomainListRequest.h + include/alibabacloud/domain/model/ScrollDomainListResult.h + include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionResult.h include/alibabacloud/domain/model/SaveSingleTaskForModifyingDnsHostRequest.h include/alibabacloud/domain/model/SaveSingleTaskForModifyingDnsHostResult.h include/alibabacloud/domain/model/QueryBookingDomainInfoRequest.h @@ -163,10 +175,10 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderActivateResult.h include/alibabacloud/domain/model/SaveSingleTaskForTransferProhibitionLockRequest.h include/alibabacloud/domain/model/SaveSingleTaskForTransferProhibitionLockResult.h - include/alibabacloud/domain/model/SaveSingleTaskForAssociatingEnsRequest.h - include/alibabacloud/domain/model/SaveSingleTaskForAssociatingEnsResult.h include/alibabacloud/domain/model/SaveTaskForSubmittingDomainDeleteRequest.h include/alibabacloud/domain/model/SaveTaskForSubmittingDomainDeleteResult.h + include/alibabacloud/domain/model/SaveSingleTaskForAssociatingEnsRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForAssociatingEnsResult.h include/alibabacloud/domain/model/QueryTransferInListRequest.h include/alibabacloud/domain/model/QueryTransferInListResult.h include/alibabacloud/domain/model/TransferInRefetchWhoisEmailRequest.h @@ -177,18 +189,22 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveSingleTaskForUpdateProhibitionLockResult.h include/alibabacloud/domain/model/LookupTmchNoticeRequest.h include/alibabacloud/domain/model/LookupTmchNoticeResult.h - include/alibabacloud/domain/model/ReserveDomainRequest.h - include/alibabacloud/domain/model/ReserveDomainResult.h include/alibabacloud/domain/model/QueryFailingReasonListForQualificationRequest.h include/alibabacloud/domain/model/QueryFailingReasonListForQualificationResult.h + include/alibabacloud/domain/model/ReserveDomainRequest.h + include/alibabacloud/domain/model/ReserveDomainResult.h include/alibabacloud/domain/model/TransferInResendMailTokenRequest.h include/alibabacloud/domain/model/TransferInResendMailTokenResult.h + include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordResult.h include/alibabacloud/domain/model/QueryTaskDetailHistoryRequest.h include/alibabacloud/domain/model/QueryTaskDetailHistoryResult.h include/alibabacloud/domain/model/QueryDomainGroupListRequest.h include/alibabacloud/domain/model/QueryDomainGroupListResult.h include/alibabacloud/domain/model/ListEmailVerificationRequest.h include/alibabacloud/domain/model/ListEmailVerificationResult.h + include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordResult.h include/alibabacloud/domain/model/SaveDomainGroupRequest.h include/alibabacloud/domain/model/SaveDomainGroupResult.h include/alibabacloud/domain/model/SaveSingleTaskForApprovingTransferOutRequest.h @@ -203,28 +219,32 @@ set(domain_public_header_model include/alibabacloud/domain/model/QueryAuctionDetailResult.h include/alibabacloud/domain/model/QueryDomainByInstanceIdRequest.h include/alibabacloud/domain/model/QueryDomainByInstanceIdResult.h - include/alibabacloud/domain/model/SaveSingleTaskForDeletingDnsHostRequest.h - include/alibabacloud/domain/model/SaveSingleTaskForDeletingDnsHostResult.h include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRedeemRequest.h include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRedeemResult.h + include/alibabacloud/domain/model/SaveSingleTaskForDeletingDnsHostRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForDeletingDnsHostResult.h include/alibabacloud/domain/model/QueryTaskListRequest.h include/alibabacloud/domain/model/QueryTaskListResult.h include/alibabacloud/domain/model/QueryRegistrantProfilesRequest.h include/alibabacloud/domain/model/QueryRegistrantProfilesResult.h include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRenewRequest.h include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRenewResult.h - include/alibabacloud/domain/model/PollTaskResultRequest.h - include/alibabacloud/domain/model/PollTaskResultResult.h - include/alibabacloud/domain/model/DeleteEmailVerificationRequest.h - include/alibabacloud/domain/model/DeleteEmailVerificationResult.h include/alibabacloud/domain/model/QueryDomainAdminDivisionRequest.h include/alibabacloud/domain/model/QueryDomainAdminDivisionResult.h + include/alibabacloud/domain/model/DeleteEmailVerificationRequest.h + include/alibabacloud/domain/model/DeleteEmailVerificationResult.h + include/alibabacloud/domain/model/PollTaskResultRequest.h + include/alibabacloud/domain/model/PollTaskResultResult.h include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderActivateRequest.h include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderActivateResult.h + include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordResult.h include/alibabacloud/domain/model/RefuseDemandRequest.h include/alibabacloud/domain/model/RefuseDemandResult.h include/alibabacloud/domain/model/TransferInReenterTransferAuthorizationCodeRequest.h include/alibabacloud/domain/model/TransferInReenterTransferAuthorizationCodeResult.h + include/alibabacloud/domain/model/QueryDomainByDomainNameRequest.h + include/alibabacloud/domain/model/QueryDomainByDomainNameResult.h include/alibabacloud/domain/model/EmailVerifiedRequest.h include/alibabacloud/domain/model/EmailVerifiedResult.h include/alibabacloud/domain/model/SaveSingleTaskForCreatingDnsHostRequest.h @@ -276,20 +296,24 @@ set(domain_src src/model/QueryBidRecordsResult.cc src/model/RecordDemandRequest.cc src/model/RecordDemandResult.cc - src/model/UpdateDomainToDomainGroupRequest.cc - src/model/UpdateDomainToDomainGroupResult.cc + src/model/QueryArtExtensionRequest.cc + src/model/QueryArtExtensionResult.cc src/model/QueryContactInfoRequest.cc src/model/QueryContactInfoResult.cc + src/model/UpdateDomainToDomainGroupRequest.cc + src/model/UpdateDomainToDomainGroupResult.cc src/model/QueryDomainSuffixRequest.cc src/model/QueryDomainSuffixResult.cc - src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.cc - src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.cc src/model/GetReserveDomainUrlRequest.cc src/model/GetReserveDomainUrlResult.cc + src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.cc + src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.cc src/model/QueryLocalEnsAssociationRequest.cc src/model/QueryLocalEnsAssociationResult.cc src/model/SubmitEmailVerificationRequest.cc src/model/SubmitEmailVerificationResult.cc + src/model/SaveSingleTaskForAddingDSRecordRequest.cc + src/model/SaveSingleTaskForAddingDSRecordResult.cc src/model/ResendEmailVerificationRequest.cc src/model/ResendEmailVerificationResult.cc src/model/BidDomainRequest.cc @@ -304,18 +328,20 @@ set(domain_src src/model/SaveSingleTaskForUpdatingContactInfoResult.cc src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest.cc src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult.cc - src/model/GetQualificationUploadPolicyRequest.cc - src/model/GetQualificationUploadPolicyResult.cc - src/model/QueryDomainRealNameVerificationInfoRequest.cc - src/model/QueryDomainRealNameVerificationInfoResult.cc src/model/VerifyEmailRequest.cc src/model/VerifyEmailResult.cc + src/model/QueryDomainRealNameVerificationInfoRequest.cc + src/model/QueryDomainRealNameVerificationInfoResult.cc + src/model/GetQualificationUploadPolicyRequest.cc + src/model/GetQualificationUploadPolicyResult.cc src/model/SaveBatchTaskForDomainNameProxyServiceRequest.cc src/model/SaveBatchTaskForDomainNameProxyServiceResult.cc src/model/SaveBatchTaskForModifyingDomainDnsRequest.cc src/model/SaveBatchTaskForModifyingDomainDnsResult.cc src/model/QueryDnsHostRequest.cc src/model/QueryDnsHostResult.cc + src/model/CancelTaskRequest.cc + src/model/CancelTaskResult.cc src/model/QueryRegistrantProfileRealNameVerificationInfoRequest.cc src/model/QueryRegistrantProfileRealNameVerificationInfoResult.cc src/model/FuzzyMatchDomainSensitiveWordRequest.cc @@ -324,6 +350,8 @@ set(domain_src src/model/FailDemandResult.cc src/model/SaveSingleTaskForCancelingTransferInRequest.cc src/model/SaveSingleTaskForCancelingTransferInResult.cc + src/model/QueryDSRecordRequest.cc + src/model/QueryDSRecordResult.cc src/model/QueryQualificationDetailRequest.cc src/model/QueryQualificationDetailResult.cc src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc @@ -346,6 +374,10 @@ set(domain_src src/model/QueryServerLockResult.cc src/model/BatchFuzzyMatchDomainSensitiveWordRequest.cc src/model/BatchFuzzyMatchDomainSensitiveWordResult.cc + src/model/ScrollDomainListRequest.cc + src/model/ScrollDomainListResult.cc + src/model/SaveSingleTaskForSaveArtExtensionRequest.cc + src/model/SaveSingleTaskForSaveArtExtensionResult.cc src/model/SaveSingleTaskForModifyingDnsHostRequest.cc src/model/SaveSingleTaskForModifyingDnsHostResult.cc src/model/QueryBookingDomainInfoRequest.cc @@ -384,10 +416,10 @@ set(domain_src src/model/SaveBatchTaskForCreatingOrderActivateResult.cc src/model/SaveSingleTaskForTransferProhibitionLockRequest.cc src/model/SaveSingleTaskForTransferProhibitionLockResult.cc - src/model/SaveSingleTaskForAssociatingEnsRequest.cc - src/model/SaveSingleTaskForAssociatingEnsResult.cc src/model/SaveTaskForSubmittingDomainDeleteRequest.cc src/model/SaveTaskForSubmittingDomainDeleteResult.cc + src/model/SaveSingleTaskForAssociatingEnsRequest.cc + src/model/SaveSingleTaskForAssociatingEnsResult.cc src/model/QueryTransferInListRequest.cc src/model/QueryTransferInListResult.cc src/model/TransferInRefetchWhoisEmailRequest.cc @@ -398,18 +430,22 @@ set(domain_src src/model/SaveSingleTaskForUpdateProhibitionLockResult.cc src/model/LookupTmchNoticeRequest.cc src/model/LookupTmchNoticeResult.cc - src/model/ReserveDomainRequest.cc - src/model/ReserveDomainResult.cc src/model/QueryFailingReasonListForQualificationRequest.cc src/model/QueryFailingReasonListForQualificationResult.cc + src/model/ReserveDomainRequest.cc + src/model/ReserveDomainResult.cc src/model/TransferInResendMailTokenRequest.cc src/model/TransferInResendMailTokenResult.cc + src/model/SaveSingleTaskForSynchronizingDSRecordRequest.cc + src/model/SaveSingleTaskForSynchronizingDSRecordResult.cc src/model/QueryTaskDetailHistoryRequest.cc src/model/QueryTaskDetailHistoryResult.cc src/model/QueryDomainGroupListRequest.cc src/model/QueryDomainGroupListResult.cc src/model/ListEmailVerificationRequest.cc src/model/ListEmailVerificationResult.cc + src/model/SaveSingleTaskForModifyingDSRecordRequest.cc + src/model/SaveSingleTaskForModifyingDSRecordResult.cc src/model/SaveDomainGroupRequest.cc src/model/SaveDomainGroupResult.cc src/model/SaveSingleTaskForApprovingTransferOutRequest.cc @@ -424,28 +460,32 @@ set(domain_src src/model/QueryAuctionDetailResult.cc src/model/QueryDomainByInstanceIdRequest.cc src/model/QueryDomainByInstanceIdResult.cc - src/model/SaveSingleTaskForDeletingDnsHostRequest.cc - src/model/SaveSingleTaskForDeletingDnsHostResult.cc src/model/SaveBatchTaskForCreatingOrderRedeemRequest.cc src/model/SaveBatchTaskForCreatingOrderRedeemResult.cc + src/model/SaveSingleTaskForDeletingDnsHostRequest.cc + src/model/SaveSingleTaskForDeletingDnsHostResult.cc src/model/QueryTaskListRequest.cc src/model/QueryTaskListResult.cc src/model/QueryRegistrantProfilesRequest.cc src/model/QueryRegistrantProfilesResult.cc src/model/SaveSingleTaskForCreatingOrderRenewRequest.cc src/model/SaveSingleTaskForCreatingOrderRenewResult.cc - src/model/PollTaskResultRequest.cc - src/model/PollTaskResultResult.cc - src/model/DeleteEmailVerificationRequest.cc - src/model/DeleteEmailVerificationResult.cc src/model/QueryDomainAdminDivisionRequest.cc src/model/QueryDomainAdminDivisionResult.cc + src/model/DeleteEmailVerificationRequest.cc + src/model/DeleteEmailVerificationResult.cc + src/model/PollTaskResultRequest.cc + src/model/PollTaskResultResult.cc src/model/SaveSingleTaskForCreatingOrderActivateRequest.cc src/model/SaveSingleTaskForCreatingOrderActivateResult.cc + src/model/SaveSingleTaskForDeletingDSRecordRequest.cc + src/model/SaveSingleTaskForDeletingDSRecordResult.cc src/model/RefuseDemandRequest.cc src/model/RefuseDemandResult.cc src/model/TransferInReenterTransferAuthorizationCodeRequest.cc src/model/TransferInReenterTransferAuthorizationCodeResult.cc + src/model/QueryDomainByDomainNameRequest.cc + src/model/QueryDomainByDomainNameResult.cc src/model/EmailVerifiedRequest.cc src/model/EmailVerifiedResult.cc src/model/SaveSingleTaskForCreatingDnsHostRequest.cc diff --git a/domain/include/alibabacloud/domain/DomainClient.h b/domain/include/alibabacloud/domain/DomainClient.h index e4ebe763c..a06fc03c4 100644 --- a/domain/include/alibabacloud/domain/DomainClient.h +++ b/domain/include/alibabacloud/domain/DomainClient.h @@ -56,20 +56,24 @@ #include "model/QueryBidRecordsResult.h" #include "model/RecordDemandRequest.h" #include "model/RecordDemandResult.h" -#include "model/UpdateDomainToDomainGroupRequest.h" -#include "model/UpdateDomainToDomainGroupResult.h" +#include "model/QueryArtExtensionRequest.h" +#include "model/QueryArtExtensionResult.h" #include "model/QueryContactInfoRequest.h" #include "model/QueryContactInfoResult.h" +#include "model/UpdateDomainToDomainGroupRequest.h" +#include "model/UpdateDomainToDomainGroupResult.h" #include "model/QueryDomainSuffixRequest.h" #include "model/QueryDomainSuffixResult.h" -#include "model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.h" -#include "model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.h" #include "model/GetReserveDomainUrlRequest.h" #include "model/GetReserveDomainUrlResult.h" +#include "model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.h" +#include "model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.h" #include "model/QueryLocalEnsAssociationRequest.h" #include "model/QueryLocalEnsAssociationResult.h" #include "model/SubmitEmailVerificationRequest.h" #include "model/SubmitEmailVerificationResult.h" +#include "model/SaveSingleTaskForAddingDSRecordRequest.h" +#include "model/SaveSingleTaskForAddingDSRecordResult.h" #include "model/ResendEmailVerificationRequest.h" #include "model/ResendEmailVerificationResult.h" #include "model/BidDomainRequest.h" @@ -84,18 +88,20 @@ #include "model/SaveSingleTaskForUpdatingContactInfoResult.h" #include "model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest.h" #include "model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult.h" -#include "model/GetQualificationUploadPolicyRequest.h" -#include "model/GetQualificationUploadPolicyResult.h" -#include "model/QueryDomainRealNameVerificationInfoRequest.h" -#include "model/QueryDomainRealNameVerificationInfoResult.h" #include "model/VerifyEmailRequest.h" #include "model/VerifyEmailResult.h" +#include "model/QueryDomainRealNameVerificationInfoRequest.h" +#include "model/QueryDomainRealNameVerificationInfoResult.h" +#include "model/GetQualificationUploadPolicyRequest.h" +#include "model/GetQualificationUploadPolicyResult.h" #include "model/SaveBatchTaskForDomainNameProxyServiceRequest.h" #include "model/SaveBatchTaskForDomainNameProxyServiceResult.h" #include "model/SaveBatchTaskForModifyingDomainDnsRequest.h" #include "model/SaveBatchTaskForModifyingDomainDnsResult.h" #include "model/QueryDnsHostRequest.h" #include "model/QueryDnsHostResult.h" +#include "model/CancelTaskRequest.h" +#include "model/CancelTaskResult.h" #include "model/QueryRegistrantProfileRealNameVerificationInfoRequest.h" #include "model/QueryRegistrantProfileRealNameVerificationInfoResult.h" #include "model/FuzzyMatchDomainSensitiveWordRequest.h" @@ -104,6 +110,8 @@ #include "model/FailDemandResult.h" #include "model/SaveSingleTaskForCancelingTransferInRequest.h" #include "model/SaveSingleTaskForCancelingTransferInResult.h" +#include "model/QueryDSRecordRequest.h" +#include "model/QueryDSRecordResult.h" #include "model/QueryQualificationDetailRequest.h" #include "model/QueryQualificationDetailResult.h" #include "model/SaveBatchTaskForTransferProhibitionLockRequest.h" @@ -126,6 +134,10 @@ #include "model/QueryServerLockResult.h" #include "model/BatchFuzzyMatchDomainSensitiveWordRequest.h" #include "model/BatchFuzzyMatchDomainSensitiveWordResult.h" +#include "model/ScrollDomainListRequest.h" +#include "model/ScrollDomainListResult.h" +#include "model/SaveSingleTaskForSaveArtExtensionRequest.h" +#include "model/SaveSingleTaskForSaveArtExtensionResult.h" #include "model/SaveSingleTaskForModifyingDnsHostRequest.h" #include "model/SaveSingleTaskForModifyingDnsHostResult.h" #include "model/QueryBookingDomainInfoRequest.h" @@ -164,10 +176,10 @@ #include "model/SaveBatchTaskForCreatingOrderActivateResult.h" #include "model/SaveSingleTaskForTransferProhibitionLockRequest.h" #include "model/SaveSingleTaskForTransferProhibitionLockResult.h" -#include "model/SaveSingleTaskForAssociatingEnsRequest.h" -#include "model/SaveSingleTaskForAssociatingEnsResult.h" #include "model/SaveTaskForSubmittingDomainDeleteRequest.h" #include "model/SaveTaskForSubmittingDomainDeleteResult.h" +#include "model/SaveSingleTaskForAssociatingEnsRequest.h" +#include "model/SaveSingleTaskForAssociatingEnsResult.h" #include "model/QueryTransferInListRequest.h" #include "model/QueryTransferInListResult.h" #include "model/TransferInRefetchWhoisEmailRequest.h" @@ -178,18 +190,22 @@ #include "model/SaveSingleTaskForUpdateProhibitionLockResult.h" #include "model/LookupTmchNoticeRequest.h" #include "model/LookupTmchNoticeResult.h" -#include "model/ReserveDomainRequest.h" -#include "model/ReserveDomainResult.h" #include "model/QueryFailingReasonListForQualificationRequest.h" #include "model/QueryFailingReasonListForQualificationResult.h" +#include "model/ReserveDomainRequest.h" +#include "model/ReserveDomainResult.h" #include "model/TransferInResendMailTokenRequest.h" #include "model/TransferInResendMailTokenResult.h" +#include "model/SaveSingleTaskForSynchronizingDSRecordRequest.h" +#include "model/SaveSingleTaskForSynchronizingDSRecordResult.h" #include "model/QueryTaskDetailHistoryRequest.h" #include "model/QueryTaskDetailHistoryResult.h" #include "model/QueryDomainGroupListRequest.h" #include "model/QueryDomainGroupListResult.h" #include "model/ListEmailVerificationRequest.h" #include "model/ListEmailVerificationResult.h" +#include "model/SaveSingleTaskForModifyingDSRecordRequest.h" +#include "model/SaveSingleTaskForModifyingDSRecordResult.h" #include "model/SaveDomainGroupRequest.h" #include "model/SaveDomainGroupResult.h" #include "model/SaveSingleTaskForApprovingTransferOutRequest.h" @@ -204,28 +220,32 @@ #include "model/QueryAuctionDetailResult.h" #include "model/QueryDomainByInstanceIdRequest.h" #include "model/QueryDomainByInstanceIdResult.h" -#include "model/SaveSingleTaskForDeletingDnsHostRequest.h" -#include "model/SaveSingleTaskForDeletingDnsHostResult.h" #include "model/SaveBatchTaskForCreatingOrderRedeemRequest.h" #include "model/SaveBatchTaskForCreatingOrderRedeemResult.h" +#include "model/SaveSingleTaskForDeletingDnsHostRequest.h" +#include "model/SaveSingleTaskForDeletingDnsHostResult.h" #include "model/QueryTaskListRequest.h" #include "model/QueryTaskListResult.h" #include "model/QueryRegistrantProfilesRequest.h" #include "model/QueryRegistrantProfilesResult.h" #include "model/SaveSingleTaskForCreatingOrderRenewRequest.h" #include "model/SaveSingleTaskForCreatingOrderRenewResult.h" -#include "model/PollTaskResultRequest.h" -#include "model/PollTaskResultResult.h" -#include "model/DeleteEmailVerificationRequest.h" -#include "model/DeleteEmailVerificationResult.h" #include "model/QueryDomainAdminDivisionRequest.h" #include "model/QueryDomainAdminDivisionResult.h" +#include "model/DeleteEmailVerificationRequest.h" +#include "model/DeleteEmailVerificationResult.h" +#include "model/PollTaskResultRequest.h" +#include "model/PollTaskResultResult.h" #include "model/SaveSingleTaskForCreatingOrderActivateRequest.h" #include "model/SaveSingleTaskForCreatingOrderActivateResult.h" +#include "model/SaveSingleTaskForDeletingDSRecordRequest.h" +#include "model/SaveSingleTaskForDeletingDSRecordResult.h" #include "model/RefuseDemandRequest.h" #include "model/RefuseDemandResult.h" #include "model/TransferInReenterTransferAuthorizationCodeRequest.h" #include "model/TransferInReenterTransferAuthorizationCodeResult.h" +#include "model/QueryDomainByDomainNameRequest.h" +#include "model/QueryDomainByDomainNameResult.h" #include "model/EmailVerifiedRequest.h" #include "model/EmailVerifiedResult.h" #include "model/SaveSingleTaskForCreatingDnsHostRequest.h" @@ -300,27 +320,33 @@ namespace AlibabaCloud typedef Outcome RecordDemandOutcome; typedef std::future RecordDemandOutcomeCallable; typedef std::function&)> RecordDemandAsyncHandler; - typedef Outcome UpdateDomainToDomainGroupOutcome; - typedef std::future UpdateDomainToDomainGroupOutcomeCallable; - typedef std::function&)> UpdateDomainToDomainGroupAsyncHandler; + typedef Outcome QueryArtExtensionOutcome; + typedef std::future QueryArtExtensionOutcomeCallable; + typedef std::function&)> QueryArtExtensionAsyncHandler; typedef Outcome QueryContactInfoOutcome; typedef std::future QueryContactInfoOutcomeCallable; typedef std::function&)> QueryContactInfoAsyncHandler; + typedef Outcome UpdateDomainToDomainGroupOutcome; + typedef std::future UpdateDomainToDomainGroupOutcomeCallable; + typedef std::function&)> UpdateDomainToDomainGroupAsyncHandler; typedef Outcome QueryDomainSuffixOutcome; typedef std::future QueryDomainSuffixOutcomeCallable; typedef std::function&)> QueryDomainSuffixAsyncHandler; - typedef Outcome SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome; - typedef std::future SaveSingleTaskForQueryingTransferAuthorizationCodeOutcomeCallable; - typedef std::function&)> SaveSingleTaskForQueryingTransferAuthorizationCodeAsyncHandler; typedef Outcome GetReserveDomainUrlOutcome; typedef std::future GetReserveDomainUrlOutcomeCallable; typedef std::function&)> GetReserveDomainUrlAsyncHandler; + typedef Outcome SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome; + typedef std::future SaveSingleTaskForQueryingTransferAuthorizationCodeOutcomeCallable; + typedef std::function&)> SaveSingleTaskForQueryingTransferAuthorizationCodeAsyncHandler; typedef Outcome QueryLocalEnsAssociationOutcome; typedef std::future QueryLocalEnsAssociationOutcomeCallable; typedef std::function&)> QueryLocalEnsAssociationAsyncHandler; typedef Outcome SubmitEmailVerificationOutcome; typedef std::future SubmitEmailVerificationOutcomeCallable; typedef std::function&)> SubmitEmailVerificationAsyncHandler; + typedef Outcome SaveSingleTaskForAddingDSRecordOutcome; + typedef std::future SaveSingleTaskForAddingDSRecordOutcomeCallable; + typedef std::function&)> SaveSingleTaskForAddingDSRecordAsyncHandler; typedef Outcome ResendEmailVerificationOutcome; typedef std::future ResendEmailVerificationOutcomeCallable; typedef std::function&)> ResendEmailVerificationAsyncHandler; @@ -342,15 +368,15 @@ namespace AlibabaCloud typedef Outcome SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDOutcome; typedef std::future SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDOutcomeCallable; typedef std::function&)> SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDAsyncHandler; - typedef Outcome GetQualificationUploadPolicyOutcome; - typedef std::future GetQualificationUploadPolicyOutcomeCallable; - typedef std::function&)> GetQualificationUploadPolicyAsyncHandler; - typedef Outcome QueryDomainRealNameVerificationInfoOutcome; - typedef std::future QueryDomainRealNameVerificationInfoOutcomeCallable; - typedef std::function&)> QueryDomainRealNameVerificationInfoAsyncHandler; typedef Outcome VerifyEmailOutcome; typedef std::future VerifyEmailOutcomeCallable; typedef std::function&)> VerifyEmailAsyncHandler; + typedef Outcome QueryDomainRealNameVerificationInfoOutcome; + typedef std::future QueryDomainRealNameVerificationInfoOutcomeCallable; + typedef std::function&)> QueryDomainRealNameVerificationInfoAsyncHandler; + typedef Outcome GetQualificationUploadPolicyOutcome; + typedef std::future GetQualificationUploadPolicyOutcomeCallable; + typedef std::function&)> GetQualificationUploadPolicyAsyncHandler; typedef Outcome SaveBatchTaskForDomainNameProxyServiceOutcome; typedef std::future SaveBatchTaskForDomainNameProxyServiceOutcomeCallable; typedef std::function&)> SaveBatchTaskForDomainNameProxyServiceAsyncHandler; @@ -360,6 +386,9 @@ namespace AlibabaCloud typedef Outcome QueryDnsHostOutcome; typedef std::future QueryDnsHostOutcomeCallable; typedef std::function&)> QueryDnsHostAsyncHandler; + typedef Outcome CancelTaskOutcome; + typedef std::future CancelTaskOutcomeCallable; + typedef std::function&)> CancelTaskAsyncHandler; typedef Outcome QueryRegistrantProfileRealNameVerificationInfoOutcome; typedef std::future QueryRegistrantProfileRealNameVerificationInfoOutcomeCallable; typedef std::function&)> QueryRegistrantProfileRealNameVerificationInfoAsyncHandler; @@ -372,6 +401,9 @@ namespace AlibabaCloud typedef Outcome SaveSingleTaskForCancelingTransferInOutcome; typedef std::future SaveSingleTaskForCancelingTransferInOutcomeCallable; typedef std::function&)> SaveSingleTaskForCancelingTransferInAsyncHandler; + typedef Outcome QueryDSRecordOutcome; + typedef std::future QueryDSRecordOutcomeCallable; + typedef std::function&)> QueryDSRecordAsyncHandler; typedef Outcome QueryQualificationDetailOutcome; typedef std::future QueryQualificationDetailOutcomeCallable; typedef std::function&)> QueryQualificationDetailAsyncHandler; @@ -405,6 +437,12 @@ namespace AlibabaCloud typedef Outcome BatchFuzzyMatchDomainSensitiveWordOutcome; typedef std::future BatchFuzzyMatchDomainSensitiveWordOutcomeCallable; typedef std::function&)> BatchFuzzyMatchDomainSensitiveWordAsyncHandler; + typedef Outcome ScrollDomainListOutcome; + typedef std::future ScrollDomainListOutcomeCallable; + typedef std::function&)> ScrollDomainListAsyncHandler; + typedef Outcome SaveSingleTaskForSaveArtExtensionOutcome; + typedef std::future SaveSingleTaskForSaveArtExtensionOutcomeCallable; + typedef std::function&)> SaveSingleTaskForSaveArtExtensionAsyncHandler; typedef Outcome SaveSingleTaskForModifyingDnsHostOutcome; typedef std::future SaveSingleTaskForModifyingDnsHostOutcomeCallable; typedef std::function&)> SaveSingleTaskForModifyingDnsHostAsyncHandler; @@ -462,12 +500,12 @@ namespace AlibabaCloud typedef Outcome SaveSingleTaskForTransferProhibitionLockOutcome; typedef std::future SaveSingleTaskForTransferProhibitionLockOutcomeCallable; typedef std::function&)> SaveSingleTaskForTransferProhibitionLockAsyncHandler; - typedef Outcome SaveSingleTaskForAssociatingEnsOutcome; - typedef std::future SaveSingleTaskForAssociatingEnsOutcomeCallable; - typedef std::function&)> SaveSingleTaskForAssociatingEnsAsyncHandler; typedef Outcome SaveTaskForSubmittingDomainDeleteOutcome; typedef std::future SaveTaskForSubmittingDomainDeleteOutcomeCallable; typedef std::function&)> SaveTaskForSubmittingDomainDeleteAsyncHandler; + typedef Outcome SaveSingleTaskForAssociatingEnsOutcome; + typedef std::future SaveSingleTaskForAssociatingEnsOutcomeCallable; + typedef std::function&)> SaveSingleTaskForAssociatingEnsAsyncHandler; typedef Outcome QueryTransferInListOutcome; typedef std::future QueryTransferInListOutcomeCallable; typedef std::function&)> QueryTransferInListAsyncHandler; @@ -483,15 +521,18 @@ namespace AlibabaCloud typedef Outcome LookupTmchNoticeOutcome; typedef std::future LookupTmchNoticeOutcomeCallable; typedef std::function&)> LookupTmchNoticeAsyncHandler; - typedef Outcome ReserveDomainOutcome; - typedef std::future ReserveDomainOutcomeCallable; - typedef std::function&)> ReserveDomainAsyncHandler; typedef Outcome QueryFailingReasonListForQualificationOutcome; typedef std::future QueryFailingReasonListForQualificationOutcomeCallable; typedef std::function&)> QueryFailingReasonListForQualificationAsyncHandler; + typedef Outcome ReserveDomainOutcome; + typedef std::future ReserveDomainOutcomeCallable; + typedef std::function&)> ReserveDomainAsyncHandler; typedef Outcome TransferInResendMailTokenOutcome; typedef std::future TransferInResendMailTokenOutcomeCallable; typedef std::function&)> TransferInResendMailTokenAsyncHandler; + typedef Outcome SaveSingleTaskForSynchronizingDSRecordOutcome; + typedef std::future SaveSingleTaskForSynchronizingDSRecordOutcomeCallable; + typedef std::function&)> SaveSingleTaskForSynchronizingDSRecordAsyncHandler; typedef Outcome QueryTaskDetailHistoryOutcome; typedef std::future QueryTaskDetailHistoryOutcomeCallable; typedef std::function&)> QueryTaskDetailHistoryAsyncHandler; @@ -501,6 +542,9 @@ namespace AlibabaCloud typedef Outcome ListEmailVerificationOutcome; typedef std::future ListEmailVerificationOutcomeCallable; typedef std::function&)> ListEmailVerificationAsyncHandler; + typedef Outcome SaveSingleTaskForModifyingDSRecordOutcome; + typedef std::future SaveSingleTaskForModifyingDSRecordOutcomeCallable; + typedef std::function&)> SaveSingleTaskForModifyingDSRecordAsyncHandler; typedef Outcome SaveDomainGroupOutcome; typedef std::future SaveDomainGroupOutcomeCallable; typedef std::function&)> SaveDomainGroupAsyncHandler; @@ -522,12 +566,12 @@ namespace AlibabaCloud typedef Outcome QueryDomainByInstanceIdOutcome; typedef std::future QueryDomainByInstanceIdOutcomeCallable; typedef std::function&)> QueryDomainByInstanceIdAsyncHandler; - typedef Outcome SaveSingleTaskForDeletingDnsHostOutcome; - typedef std::future SaveSingleTaskForDeletingDnsHostOutcomeCallable; - typedef std::function&)> SaveSingleTaskForDeletingDnsHostAsyncHandler; typedef Outcome SaveBatchTaskForCreatingOrderRedeemOutcome; typedef std::future SaveBatchTaskForCreatingOrderRedeemOutcomeCallable; typedef std::function&)> SaveBatchTaskForCreatingOrderRedeemAsyncHandler; + typedef Outcome SaveSingleTaskForDeletingDnsHostOutcome; + typedef std::future SaveSingleTaskForDeletingDnsHostOutcomeCallable; + typedef std::function&)> SaveSingleTaskForDeletingDnsHostAsyncHandler; typedef Outcome QueryTaskListOutcome; typedef std::future QueryTaskListOutcomeCallable; typedef std::function&)> QueryTaskListAsyncHandler; @@ -537,24 +581,30 @@ namespace AlibabaCloud typedef Outcome SaveSingleTaskForCreatingOrderRenewOutcome; typedef std::future SaveSingleTaskForCreatingOrderRenewOutcomeCallable; typedef std::function&)> SaveSingleTaskForCreatingOrderRenewAsyncHandler; - typedef Outcome PollTaskResultOutcome; - typedef std::future PollTaskResultOutcomeCallable; - typedef std::function&)> PollTaskResultAsyncHandler; - typedef Outcome DeleteEmailVerificationOutcome; - typedef std::future DeleteEmailVerificationOutcomeCallable; - typedef std::function&)> DeleteEmailVerificationAsyncHandler; typedef Outcome QueryDomainAdminDivisionOutcome; typedef std::future QueryDomainAdminDivisionOutcomeCallable; typedef std::function&)> QueryDomainAdminDivisionAsyncHandler; + typedef Outcome DeleteEmailVerificationOutcome; + typedef std::future DeleteEmailVerificationOutcomeCallable; + typedef std::function&)> DeleteEmailVerificationAsyncHandler; + typedef Outcome PollTaskResultOutcome; + typedef std::future PollTaskResultOutcomeCallable; + typedef std::function&)> PollTaskResultAsyncHandler; typedef Outcome SaveSingleTaskForCreatingOrderActivateOutcome; typedef std::future SaveSingleTaskForCreatingOrderActivateOutcomeCallable; typedef std::function&)> SaveSingleTaskForCreatingOrderActivateAsyncHandler; + typedef Outcome SaveSingleTaskForDeletingDSRecordOutcome; + typedef std::future SaveSingleTaskForDeletingDSRecordOutcomeCallable; + typedef std::function&)> SaveSingleTaskForDeletingDSRecordAsyncHandler; typedef Outcome RefuseDemandOutcome; typedef std::future RefuseDemandOutcomeCallable; typedef std::function&)> RefuseDemandAsyncHandler; typedef Outcome TransferInReenterTransferAuthorizationCodeOutcome; typedef std::future TransferInReenterTransferAuthorizationCodeOutcomeCallable; typedef std::function&)> TransferInReenterTransferAuthorizationCodeAsyncHandler; + typedef Outcome QueryDomainByDomainNameOutcome; + typedef std::future QueryDomainByDomainNameOutcomeCallable; + typedef std::function&)> QueryDomainByDomainNameAsyncHandler; typedef Outcome EmailVerifiedOutcome; typedef std::future EmailVerifiedOutcomeCallable; typedef std::function&)> EmailVerifiedAsyncHandler; @@ -632,27 +682,33 @@ namespace AlibabaCloud RecordDemandOutcome recordDemand(const Model::RecordDemandRequest &request)const; void recordDemandAsync(const Model::RecordDemandRequest& request, const RecordDemandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RecordDemandOutcomeCallable recordDemandCallable(const Model::RecordDemandRequest& request) const; - UpdateDomainToDomainGroupOutcome updateDomainToDomainGroup(const Model::UpdateDomainToDomainGroupRequest &request)const; - void updateDomainToDomainGroupAsync(const Model::UpdateDomainToDomainGroupRequest& request, const UpdateDomainToDomainGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateDomainToDomainGroupOutcomeCallable updateDomainToDomainGroupCallable(const Model::UpdateDomainToDomainGroupRequest& request) const; + QueryArtExtensionOutcome queryArtExtension(const Model::QueryArtExtensionRequest &request)const; + void queryArtExtensionAsync(const Model::QueryArtExtensionRequest& request, const QueryArtExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryArtExtensionOutcomeCallable queryArtExtensionCallable(const Model::QueryArtExtensionRequest& request) const; QueryContactInfoOutcome queryContactInfo(const Model::QueryContactInfoRequest &request)const; void queryContactInfoAsync(const Model::QueryContactInfoRequest& request, const QueryContactInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryContactInfoOutcomeCallable queryContactInfoCallable(const Model::QueryContactInfoRequest& request) const; + UpdateDomainToDomainGroupOutcome updateDomainToDomainGroup(const Model::UpdateDomainToDomainGroupRequest &request)const; + void updateDomainToDomainGroupAsync(const Model::UpdateDomainToDomainGroupRequest& request, const UpdateDomainToDomainGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDomainToDomainGroupOutcomeCallable updateDomainToDomainGroupCallable(const Model::UpdateDomainToDomainGroupRequest& request) const; QueryDomainSuffixOutcome queryDomainSuffix(const Model::QueryDomainSuffixRequest &request)const; void queryDomainSuffixAsync(const Model::QueryDomainSuffixRequest& request, const QueryDomainSuffixAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDomainSuffixOutcomeCallable queryDomainSuffixCallable(const Model::QueryDomainSuffixRequest& request) const; - SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome saveSingleTaskForQueryingTransferAuthorizationCode(const Model::SaveSingleTaskForQueryingTransferAuthorizationCodeRequest &request)const; - void saveSingleTaskForQueryingTransferAuthorizationCodeAsync(const Model::SaveSingleTaskForQueryingTransferAuthorizationCodeRequest& request, const SaveSingleTaskForQueryingTransferAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveSingleTaskForQueryingTransferAuthorizationCodeOutcomeCallable saveSingleTaskForQueryingTransferAuthorizationCodeCallable(const Model::SaveSingleTaskForQueryingTransferAuthorizationCodeRequest& request) const; GetReserveDomainUrlOutcome getReserveDomainUrl(const Model::GetReserveDomainUrlRequest &request)const; void getReserveDomainUrlAsync(const Model::GetReserveDomainUrlRequest& request, const GetReserveDomainUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetReserveDomainUrlOutcomeCallable getReserveDomainUrlCallable(const Model::GetReserveDomainUrlRequest& request) const; + SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome saveSingleTaskForQueryingTransferAuthorizationCode(const Model::SaveSingleTaskForQueryingTransferAuthorizationCodeRequest &request)const; + void saveSingleTaskForQueryingTransferAuthorizationCodeAsync(const Model::SaveSingleTaskForQueryingTransferAuthorizationCodeRequest& request, const SaveSingleTaskForQueryingTransferAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForQueryingTransferAuthorizationCodeOutcomeCallable saveSingleTaskForQueryingTransferAuthorizationCodeCallable(const Model::SaveSingleTaskForQueryingTransferAuthorizationCodeRequest& request) const; QueryLocalEnsAssociationOutcome queryLocalEnsAssociation(const Model::QueryLocalEnsAssociationRequest &request)const; void queryLocalEnsAssociationAsync(const Model::QueryLocalEnsAssociationRequest& request, const QueryLocalEnsAssociationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryLocalEnsAssociationOutcomeCallable queryLocalEnsAssociationCallable(const Model::QueryLocalEnsAssociationRequest& request) const; SubmitEmailVerificationOutcome submitEmailVerification(const Model::SubmitEmailVerificationRequest &request)const; void submitEmailVerificationAsync(const Model::SubmitEmailVerificationRequest& request, const SubmitEmailVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitEmailVerificationOutcomeCallable submitEmailVerificationCallable(const Model::SubmitEmailVerificationRequest& request) const; + SaveSingleTaskForAddingDSRecordOutcome saveSingleTaskForAddingDSRecord(const Model::SaveSingleTaskForAddingDSRecordRequest &request)const; + void saveSingleTaskForAddingDSRecordAsync(const Model::SaveSingleTaskForAddingDSRecordRequest& request, const SaveSingleTaskForAddingDSRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForAddingDSRecordOutcomeCallable saveSingleTaskForAddingDSRecordCallable(const Model::SaveSingleTaskForAddingDSRecordRequest& request) const; ResendEmailVerificationOutcome resendEmailVerification(const Model::ResendEmailVerificationRequest &request)const; void resendEmailVerificationAsync(const Model::ResendEmailVerificationRequest& request, const ResendEmailVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResendEmailVerificationOutcomeCallable resendEmailVerificationCallable(const Model::ResendEmailVerificationRequest& request) const; @@ -674,15 +730,15 @@ namespace AlibabaCloud SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDOutcome saveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID(const Model::SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest &request)const; void saveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDAsync(const Model::SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest& request, const SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDOutcomeCallable saveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDCallable(const Model::SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest& request) const; - GetQualificationUploadPolicyOutcome getQualificationUploadPolicy(const Model::GetQualificationUploadPolicyRequest &request)const; - void getQualificationUploadPolicyAsync(const Model::GetQualificationUploadPolicyRequest& request, const GetQualificationUploadPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetQualificationUploadPolicyOutcomeCallable getQualificationUploadPolicyCallable(const Model::GetQualificationUploadPolicyRequest& request) const; - QueryDomainRealNameVerificationInfoOutcome queryDomainRealNameVerificationInfo(const Model::QueryDomainRealNameVerificationInfoRequest &request)const; - void queryDomainRealNameVerificationInfoAsync(const Model::QueryDomainRealNameVerificationInfoRequest& request, const QueryDomainRealNameVerificationInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryDomainRealNameVerificationInfoOutcomeCallable queryDomainRealNameVerificationInfoCallable(const Model::QueryDomainRealNameVerificationInfoRequest& request) const; VerifyEmailOutcome verifyEmail(const Model::VerifyEmailRequest &request)const; void verifyEmailAsync(const Model::VerifyEmailRequest& request, const VerifyEmailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VerifyEmailOutcomeCallable verifyEmailCallable(const Model::VerifyEmailRequest& request) const; + QueryDomainRealNameVerificationInfoOutcome queryDomainRealNameVerificationInfo(const Model::QueryDomainRealNameVerificationInfoRequest &request)const; + void queryDomainRealNameVerificationInfoAsync(const Model::QueryDomainRealNameVerificationInfoRequest& request, const QueryDomainRealNameVerificationInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDomainRealNameVerificationInfoOutcomeCallable queryDomainRealNameVerificationInfoCallable(const Model::QueryDomainRealNameVerificationInfoRequest& request) const; + GetQualificationUploadPolicyOutcome getQualificationUploadPolicy(const Model::GetQualificationUploadPolicyRequest &request)const; + void getQualificationUploadPolicyAsync(const Model::GetQualificationUploadPolicyRequest& request, const GetQualificationUploadPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetQualificationUploadPolicyOutcomeCallable getQualificationUploadPolicyCallable(const Model::GetQualificationUploadPolicyRequest& request) const; SaveBatchTaskForDomainNameProxyServiceOutcome saveBatchTaskForDomainNameProxyService(const Model::SaveBatchTaskForDomainNameProxyServiceRequest &request)const; void saveBatchTaskForDomainNameProxyServiceAsync(const Model::SaveBatchTaskForDomainNameProxyServiceRequest& request, const SaveBatchTaskForDomainNameProxyServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveBatchTaskForDomainNameProxyServiceOutcomeCallable saveBatchTaskForDomainNameProxyServiceCallable(const Model::SaveBatchTaskForDomainNameProxyServiceRequest& request) const; @@ -692,6 +748,9 @@ namespace AlibabaCloud QueryDnsHostOutcome queryDnsHost(const Model::QueryDnsHostRequest &request)const; void queryDnsHostAsync(const Model::QueryDnsHostRequest& request, const QueryDnsHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDnsHostOutcomeCallable queryDnsHostCallable(const Model::QueryDnsHostRequest& request) const; + CancelTaskOutcome cancelTask(const Model::CancelTaskRequest &request)const; + void cancelTaskAsync(const Model::CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelTaskOutcomeCallable cancelTaskCallable(const Model::CancelTaskRequest& request) const; QueryRegistrantProfileRealNameVerificationInfoOutcome queryRegistrantProfileRealNameVerificationInfo(const Model::QueryRegistrantProfileRealNameVerificationInfoRequest &request)const; void queryRegistrantProfileRealNameVerificationInfoAsync(const Model::QueryRegistrantProfileRealNameVerificationInfoRequest& request, const QueryRegistrantProfileRealNameVerificationInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryRegistrantProfileRealNameVerificationInfoOutcomeCallable queryRegistrantProfileRealNameVerificationInfoCallable(const Model::QueryRegistrantProfileRealNameVerificationInfoRequest& request) const; @@ -704,6 +763,9 @@ namespace AlibabaCloud SaveSingleTaskForCancelingTransferInOutcome saveSingleTaskForCancelingTransferIn(const Model::SaveSingleTaskForCancelingTransferInRequest &request)const; void saveSingleTaskForCancelingTransferInAsync(const Model::SaveSingleTaskForCancelingTransferInRequest& request, const SaveSingleTaskForCancelingTransferInAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForCancelingTransferInOutcomeCallable saveSingleTaskForCancelingTransferInCallable(const Model::SaveSingleTaskForCancelingTransferInRequest& request) const; + QueryDSRecordOutcome queryDSRecord(const Model::QueryDSRecordRequest &request)const; + void queryDSRecordAsync(const Model::QueryDSRecordRequest& request, const QueryDSRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDSRecordOutcomeCallable queryDSRecordCallable(const Model::QueryDSRecordRequest& request) const; QueryQualificationDetailOutcome queryQualificationDetail(const Model::QueryQualificationDetailRequest &request)const; void queryQualificationDetailAsync(const Model::QueryQualificationDetailRequest& request, const QueryQualificationDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryQualificationDetailOutcomeCallable queryQualificationDetailCallable(const Model::QueryQualificationDetailRequest& request) const; @@ -737,6 +799,12 @@ namespace AlibabaCloud BatchFuzzyMatchDomainSensitiveWordOutcome batchFuzzyMatchDomainSensitiveWord(const Model::BatchFuzzyMatchDomainSensitiveWordRequest &request)const; void batchFuzzyMatchDomainSensitiveWordAsync(const Model::BatchFuzzyMatchDomainSensitiveWordRequest& request, const BatchFuzzyMatchDomainSensitiveWordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchFuzzyMatchDomainSensitiveWordOutcomeCallable batchFuzzyMatchDomainSensitiveWordCallable(const Model::BatchFuzzyMatchDomainSensitiveWordRequest& request) const; + ScrollDomainListOutcome scrollDomainList(const Model::ScrollDomainListRequest &request)const; + void scrollDomainListAsync(const Model::ScrollDomainListRequest& request, const ScrollDomainListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ScrollDomainListOutcomeCallable scrollDomainListCallable(const Model::ScrollDomainListRequest& request) const; + SaveSingleTaskForSaveArtExtensionOutcome saveSingleTaskForSaveArtExtension(const Model::SaveSingleTaskForSaveArtExtensionRequest &request)const; + void saveSingleTaskForSaveArtExtensionAsync(const Model::SaveSingleTaskForSaveArtExtensionRequest& request, const SaveSingleTaskForSaveArtExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForSaveArtExtensionOutcomeCallable saveSingleTaskForSaveArtExtensionCallable(const Model::SaveSingleTaskForSaveArtExtensionRequest& request) const; SaveSingleTaskForModifyingDnsHostOutcome saveSingleTaskForModifyingDnsHost(const Model::SaveSingleTaskForModifyingDnsHostRequest &request)const; void saveSingleTaskForModifyingDnsHostAsync(const Model::SaveSingleTaskForModifyingDnsHostRequest& request, const SaveSingleTaskForModifyingDnsHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForModifyingDnsHostOutcomeCallable saveSingleTaskForModifyingDnsHostCallable(const Model::SaveSingleTaskForModifyingDnsHostRequest& request) const; @@ -794,12 +862,12 @@ namespace AlibabaCloud SaveSingleTaskForTransferProhibitionLockOutcome saveSingleTaskForTransferProhibitionLock(const Model::SaveSingleTaskForTransferProhibitionLockRequest &request)const; void saveSingleTaskForTransferProhibitionLockAsync(const Model::SaveSingleTaskForTransferProhibitionLockRequest& request, const SaveSingleTaskForTransferProhibitionLockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForTransferProhibitionLockOutcomeCallable saveSingleTaskForTransferProhibitionLockCallable(const Model::SaveSingleTaskForTransferProhibitionLockRequest& request) const; - SaveSingleTaskForAssociatingEnsOutcome saveSingleTaskForAssociatingEns(const Model::SaveSingleTaskForAssociatingEnsRequest &request)const; - void saveSingleTaskForAssociatingEnsAsync(const Model::SaveSingleTaskForAssociatingEnsRequest& request, const SaveSingleTaskForAssociatingEnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveSingleTaskForAssociatingEnsOutcomeCallable saveSingleTaskForAssociatingEnsCallable(const Model::SaveSingleTaskForAssociatingEnsRequest& request) const; SaveTaskForSubmittingDomainDeleteOutcome saveTaskForSubmittingDomainDelete(const Model::SaveTaskForSubmittingDomainDeleteRequest &request)const; void saveTaskForSubmittingDomainDeleteAsync(const Model::SaveTaskForSubmittingDomainDeleteRequest& request, const SaveTaskForSubmittingDomainDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveTaskForSubmittingDomainDeleteOutcomeCallable saveTaskForSubmittingDomainDeleteCallable(const Model::SaveTaskForSubmittingDomainDeleteRequest& request) const; + SaveSingleTaskForAssociatingEnsOutcome saveSingleTaskForAssociatingEns(const Model::SaveSingleTaskForAssociatingEnsRequest &request)const; + void saveSingleTaskForAssociatingEnsAsync(const Model::SaveSingleTaskForAssociatingEnsRequest& request, const SaveSingleTaskForAssociatingEnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForAssociatingEnsOutcomeCallable saveSingleTaskForAssociatingEnsCallable(const Model::SaveSingleTaskForAssociatingEnsRequest& request) const; QueryTransferInListOutcome queryTransferInList(const Model::QueryTransferInListRequest &request)const; void queryTransferInListAsync(const Model::QueryTransferInListRequest& request, const QueryTransferInListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTransferInListOutcomeCallable queryTransferInListCallable(const Model::QueryTransferInListRequest& request) const; @@ -815,15 +883,18 @@ namespace AlibabaCloud LookupTmchNoticeOutcome lookupTmchNotice(const Model::LookupTmchNoticeRequest &request)const; void lookupTmchNoticeAsync(const Model::LookupTmchNoticeRequest& request, const LookupTmchNoticeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; LookupTmchNoticeOutcomeCallable lookupTmchNoticeCallable(const Model::LookupTmchNoticeRequest& request) const; - ReserveDomainOutcome reserveDomain(const Model::ReserveDomainRequest &request)const; - void reserveDomainAsync(const Model::ReserveDomainRequest& request, const ReserveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReserveDomainOutcomeCallable reserveDomainCallable(const Model::ReserveDomainRequest& request) const; QueryFailingReasonListForQualificationOutcome queryFailingReasonListForQualification(const Model::QueryFailingReasonListForQualificationRequest &request)const; void queryFailingReasonListForQualificationAsync(const Model::QueryFailingReasonListForQualificationRequest& request, const QueryFailingReasonListForQualificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryFailingReasonListForQualificationOutcomeCallable queryFailingReasonListForQualificationCallable(const Model::QueryFailingReasonListForQualificationRequest& request) const; + ReserveDomainOutcome reserveDomain(const Model::ReserveDomainRequest &request)const; + void reserveDomainAsync(const Model::ReserveDomainRequest& request, const ReserveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReserveDomainOutcomeCallable reserveDomainCallable(const Model::ReserveDomainRequest& request) const; TransferInResendMailTokenOutcome transferInResendMailToken(const Model::TransferInResendMailTokenRequest &request)const; void transferInResendMailTokenAsync(const Model::TransferInResendMailTokenRequest& request, const TransferInResendMailTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TransferInResendMailTokenOutcomeCallable transferInResendMailTokenCallable(const Model::TransferInResendMailTokenRequest& request) const; + SaveSingleTaskForSynchronizingDSRecordOutcome saveSingleTaskForSynchronizingDSRecord(const Model::SaveSingleTaskForSynchronizingDSRecordRequest &request)const; + void saveSingleTaskForSynchronizingDSRecordAsync(const Model::SaveSingleTaskForSynchronizingDSRecordRequest& request, const SaveSingleTaskForSynchronizingDSRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForSynchronizingDSRecordOutcomeCallable saveSingleTaskForSynchronizingDSRecordCallable(const Model::SaveSingleTaskForSynchronizingDSRecordRequest& request) const; QueryTaskDetailHistoryOutcome queryTaskDetailHistory(const Model::QueryTaskDetailHistoryRequest &request)const; void queryTaskDetailHistoryAsync(const Model::QueryTaskDetailHistoryRequest& request, const QueryTaskDetailHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTaskDetailHistoryOutcomeCallable queryTaskDetailHistoryCallable(const Model::QueryTaskDetailHistoryRequest& request) const; @@ -833,6 +904,9 @@ namespace AlibabaCloud ListEmailVerificationOutcome listEmailVerification(const Model::ListEmailVerificationRequest &request)const; void listEmailVerificationAsync(const Model::ListEmailVerificationRequest& request, const ListEmailVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListEmailVerificationOutcomeCallable listEmailVerificationCallable(const Model::ListEmailVerificationRequest& request) const; + SaveSingleTaskForModifyingDSRecordOutcome saveSingleTaskForModifyingDSRecord(const Model::SaveSingleTaskForModifyingDSRecordRequest &request)const; + void saveSingleTaskForModifyingDSRecordAsync(const Model::SaveSingleTaskForModifyingDSRecordRequest& request, const SaveSingleTaskForModifyingDSRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForModifyingDSRecordOutcomeCallable saveSingleTaskForModifyingDSRecordCallable(const Model::SaveSingleTaskForModifyingDSRecordRequest& request) const; SaveDomainGroupOutcome saveDomainGroup(const Model::SaveDomainGroupRequest &request)const; void saveDomainGroupAsync(const Model::SaveDomainGroupRequest& request, const SaveDomainGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveDomainGroupOutcomeCallable saveDomainGroupCallable(const Model::SaveDomainGroupRequest& request) const; @@ -854,12 +928,12 @@ namespace AlibabaCloud QueryDomainByInstanceIdOutcome queryDomainByInstanceId(const Model::QueryDomainByInstanceIdRequest &request)const; void queryDomainByInstanceIdAsync(const Model::QueryDomainByInstanceIdRequest& request, const QueryDomainByInstanceIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDomainByInstanceIdOutcomeCallable queryDomainByInstanceIdCallable(const Model::QueryDomainByInstanceIdRequest& request) const; - SaveSingleTaskForDeletingDnsHostOutcome saveSingleTaskForDeletingDnsHost(const Model::SaveSingleTaskForDeletingDnsHostRequest &request)const; - void saveSingleTaskForDeletingDnsHostAsync(const Model::SaveSingleTaskForDeletingDnsHostRequest& request, const SaveSingleTaskForDeletingDnsHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveSingleTaskForDeletingDnsHostOutcomeCallable saveSingleTaskForDeletingDnsHostCallable(const Model::SaveSingleTaskForDeletingDnsHostRequest& request) const; SaveBatchTaskForCreatingOrderRedeemOutcome saveBatchTaskForCreatingOrderRedeem(const Model::SaveBatchTaskForCreatingOrderRedeemRequest &request)const; void saveBatchTaskForCreatingOrderRedeemAsync(const Model::SaveBatchTaskForCreatingOrderRedeemRequest& request, const SaveBatchTaskForCreatingOrderRedeemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveBatchTaskForCreatingOrderRedeemOutcomeCallable saveBatchTaskForCreatingOrderRedeemCallable(const Model::SaveBatchTaskForCreatingOrderRedeemRequest& request) const; + SaveSingleTaskForDeletingDnsHostOutcome saveSingleTaskForDeletingDnsHost(const Model::SaveSingleTaskForDeletingDnsHostRequest &request)const; + void saveSingleTaskForDeletingDnsHostAsync(const Model::SaveSingleTaskForDeletingDnsHostRequest& request, const SaveSingleTaskForDeletingDnsHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForDeletingDnsHostOutcomeCallable saveSingleTaskForDeletingDnsHostCallable(const Model::SaveSingleTaskForDeletingDnsHostRequest& request) const; QueryTaskListOutcome queryTaskList(const Model::QueryTaskListRequest &request)const; void queryTaskListAsync(const Model::QueryTaskListRequest& request, const QueryTaskListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTaskListOutcomeCallable queryTaskListCallable(const Model::QueryTaskListRequest& request) const; @@ -869,24 +943,30 @@ namespace AlibabaCloud SaveSingleTaskForCreatingOrderRenewOutcome saveSingleTaskForCreatingOrderRenew(const Model::SaveSingleTaskForCreatingOrderRenewRequest &request)const; void saveSingleTaskForCreatingOrderRenewAsync(const Model::SaveSingleTaskForCreatingOrderRenewRequest& request, const SaveSingleTaskForCreatingOrderRenewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForCreatingOrderRenewOutcomeCallable saveSingleTaskForCreatingOrderRenewCallable(const Model::SaveSingleTaskForCreatingOrderRenewRequest& request) const; - PollTaskResultOutcome pollTaskResult(const Model::PollTaskResultRequest &request)const; - void pollTaskResultAsync(const Model::PollTaskResultRequest& request, const PollTaskResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PollTaskResultOutcomeCallable pollTaskResultCallable(const Model::PollTaskResultRequest& request) const; - DeleteEmailVerificationOutcome deleteEmailVerification(const Model::DeleteEmailVerificationRequest &request)const; - void deleteEmailVerificationAsync(const Model::DeleteEmailVerificationRequest& request, const DeleteEmailVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteEmailVerificationOutcomeCallable deleteEmailVerificationCallable(const Model::DeleteEmailVerificationRequest& request) const; QueryDomainAdminDivisionOutcome queryDomainAdminDivision(const Model::QueryDomainAdminDivisionRequest &request)const; void queryDomainAdminDivisionAsync(const Model::QueryDomainAdminDivisionRequest& request, const QueryDomainAdminDivisionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDomainAdminDivisionOutcomeCallable queryDomainAdminDivisionCallable(const Model::QueryDomainAdminDivisionRequest& request) const; + DeleteEmailVerificationOutcome deleteEmailVerification(const Model::DeleteEmailVerificationRequest &request)const; + void deleteEmailVerificationAsync(const Model::DeleteEmailVerificationRequest& request, const DeleteEmailVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEmailVerificationOutcomeCallable deleteEmailVerificationCallable(const Model::DeleteEmailVerificationRequest& request) const; + PollTaskResultOutcome pollTaskResult(const Model::PollTaskResultRequest &request)const; + void pollTaskResultAsync(const Model::PollTaskResultRequest& request, const PollTaskResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PollTaskResultOutcomeCallable pollTaskResultCallable(const Model::PollTaskResultRequest& request) const; SaveSingleTaskForCreatingOrderActivateOutcome saveSingleTaskForCreatingOrderActivate(const Model::SaveSingleTaskForCreatingOrderActivateRequest &request)const; void saveSingleTaskForCreatingOrderActivateAsync(const Model::SaveSingleTaskForCreatingOrderActivateRequest& request, const SaveSingleTaskForCreatingOrderActivateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForCreatingOrderActivateOutcomeCallable saveSingleTaskForCreatingOrderActivateCallable(const Model::SaveSingleTaskForCreatingOrderActivateRequest& request) const; + SaveSingleTaskForDeletingDSRecordOutcome saveSingleTaskForDeletingDSRecord(const Model::SaveSingleTaskForDeletingDSRecordRequest &request)const; + void saveSingleTaskForDeletingDSRecordAsync(const Model::SaveSingleTaskForDeletingDSRecordRequest& request, const SaveSingleTaskForDeletingDSRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForDeletingDSRecordOutcomeCallable saveSingleTaskForDeletingDSRecordCallable(const Model::SaveSingleTaskForDeletingDSRecordRequest& request) const; RefuseDemandOutcome refuseDemand(const Model::RefuseDemandRequest &request)const; void refuseDemandAsync(const Model::RefuseDemandRequest& request, const RefuseDemandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefuseDemandOutcomeCallable refuseDemandCallable(const Model::RefuseDemandRequest& request) const; TransferInReenterTransferAuthorizationCodeOutcome transferInReenterTransferAuthorizationCode(const Model::TransferInReenterTransferAuthorizationCodeRequest &request)const; void transferInReenterTransferAuthorizationCodeAsync(const Model::TransferInReenterTransferAuthorizationCodeRequest& request, const TransferInReenterTransferAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TransferInReenterTransferAuthorizationCodeOutcomeCallable transferInReenterTransferAuthorizationCodeCallable(const Model::TransferInReenterTransferAuthorizationCodeRequest& request) const; + QueryDomainByDomainNameOutcome queryDomainByDomainName(const Model::QueryDomainByDomainNameRequest &request)const; + void queryDomainByDomainNameAsync(const Model::QueryDomainByDomainNameRequest& request, const QueryDomainByDomainNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDomainByDomainNameOutcomeCallable queryDomainByDomainNameCallable(const Model::QueryDomainByDomainNameRequest& request) const; EmailVerifiedOutcome emailVerified(const Model::EmailVerifiedRequest &request)const; void emailVerifiedAsync(const Model::EmailVerifiedRequest& request, const EmailVerifiedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EmailVerifiedOutcomeCallable emailVerifiedCallable(const Model::EmailVerifiedRequest& request) const; diff --git a/domain/include/alibabacloud/domain/model/CancelTaskRequest.h b/domain/include/alibabacloud/domain/model/CancelTaskRequest.h new file mode 100644 index 000000000..137e336f7 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/CancelTaskRequest.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_DOMAIN_MODEL_CANCELTASKREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_CANCELTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT CancelTaskRequest : public RpcServiceRequest + { + + public: + CancelTaskRequest(); + ~CancelTaskRequest(); + + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getTaskNo()const; + void setTaskNo(const std::string& taskNo); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string userClientIp_; + std::string taskNo_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_CANCELTASKREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/CancelTaskResult.h b/domain/include/alibabacloud/domain/model/CancelTaskResult.h new file mode 100644 index 000000000..086eb1945 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/CancelTaskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_CANCELTASKRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_CANCELTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT CancelTaskResult : public ServiceResult + { + public: + + + CancelTaskResult(); + explicit CancelTaskResult(const std::string &payload); + ~CancelTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_CANCELTASKRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/CheckDomainRequest.h b/domain/include/alibabacloud/domain/model/CheckDomainRequest.h index 87b1e1516..565b5252b 100644 --- a/domain/include/alibabacloud/domain/model/CheckDomainRequest.h +++ b/domain/include/alibabacloud/domain/model/CheckDomainRequest.h @@ -41,8 +41,6 @@ namespace AlibabaCloud void setFeePeriod(int feePeriod); std::string getDomainName()const; void setDomainName(const std::string& domainName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); std::string getFeeCommand()const; void setFeeCommand(const std::string& feeCommand); std::string getLang()const; @@ -52,7 +50,6 @@ namespace AlibabaCloud std::string feeCurrency_; int feePeriod_; std::string domainName_; - std::string userClientIp_; std::string feeCommand_; std::string lang_; diff --git a/domain/include/alibabacloud/domain/model/QueryAdvancedDomainListResult.h b/domain/include/alibabacloud/domain/model/QueryAdvancedDomainListResult.h index 47074cfd3..e6289869b 100644 --- a/domain/include/alibabacloud/domain/model/QueryAdvancedDomainListResult.h +++ b/domain/include/alibabacloud/domain/model/QueryAdvancedDomainListResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Domain { std::string registrantType; + std::string email; std::string registrationDate; long registrationDateLong; int expirationCurrDateDiff; @@ -46,10 +47,13 @@ namespace AlibabaCloud std::string domainAuditStatus; std::string remark; long expirationDateLong; + std::vector dnsList; std::string domainType; std::string expirationDateStatus; std::string expirationDate; std::string domainGroupName; + std::string zhRegistrantOrganization; + std::string registrantOrganization; std::string domainStatus; }; diff --git a/domain/include/alibabacloud/domain/model/QueryArtExtensionRequest.h b/domain/include/alibabacloud/domain/model/QueryArtExtensionRequest.h new file mode 100644 index 000000000..b2afd0152 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/QueryArtExtensionRequest.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_DOMAIN_MODEL_QUERYARTEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_QUERYARTEXTENSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT QueryArtExtensionRequest : public RpcServiceRequest + { + + public: + QueryArtExtensionRequest(); + ~QueryArtExtensionRequest(); + + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string domainName_; + std::string userClientIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYARTEXTENSIONREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/QueryArtExtensionResult.h b/domain/include/alibabacloud/domain/model/QueryArtExtensionResult.h new file mode 100644 index 000000000..78db4a4df --- /dev/null +++ b/domain/include/alibabacloud/domain/model/QueryArtExtensionResult.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_DOMAIN_MODEL_QUERYARTEXTENSIONRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_QUERYARTEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT QueryArtExtensionResult : public ServiceResult + { + public: + + + QueryArtExtensionResult(); + explicit QueryArtExtensionResult(const std::string &payload); + ~QueryArtExtensionResult(); + std::string getObjectType()const; + std::string getMaterialsAndTechniques()const; + std::string getInscriptionsAndMarkings()const; + std::string getReference()const; + std::string getDateOrPeriod()const; + std::string getDimensions()const; + std::string getTitle()const; + std::string getFeatures()const; + std::string getMaker()const; + std::string getSubject()const; + + protected: + void parse(const std::string &payload); + private: + std::string objectType_; + std::string materialsAndTechniques_; + std::string inscriptionsAndMarkings_; + std::string reference_; + std::string dateOrPeriod_; + std::string dimensions_; + std::string title_; + std::string features_; + std::string maker_; + std::string subject_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYARTEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/QueryDSRecordRequest.h b/domain/include/alibabacloud/domain/model/QueryDSRecordRequest.h new file mode 100644 index 000000000..bdd4ceff2 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/QueryDSRecordRequest.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_DOMAIN_MODEL_QUERYDSRECORDREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_QUERYDSRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT QueryDSRecordRequest : public RpcServiceRequest + { + + public: + QueryDSRecordRequest(); + ~QueryDSRecordRequest(); + + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string domainName_; + std::string userClientIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYDSRECORDREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/QueryDSRecordResult.h b/domain/include/alibabacloud/domain/model/QueryDSRecordResult.h new file mode 100644 index 000000000..816da35d4 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/QueryDSRecordResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_QUERYDSRECORDRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_QUERYDSRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT QueryDSRecordResult : public ServiceResult + { + public: + struct DSRecord + { + std::string digest; + int digestType; + int keyTag; + int algorithm; + }; + + + QueryDSRecordResult(); + explicit QueryDSRecordResult(const std::string &payload); + ~QueryDSRecordResult(); + std::vector getDSRecordList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dSRecordList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYDSRECORDRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/QueryDomainByDomainNameRequest.h b/domain/include/alibabacloud/domain/model/QueryDomainByDomainNameRequest.h new file mode 100644 index 000000000..b9bfbbc28 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/QueryDomainByDomainNameRequest.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_DOMAIN_MODEL_QUERYDOMAINBYDOMAINNAMEREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_QUERYDOMAINBYDOMAINNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT QueryDomainByDomainNameRequest : public RpcServiceRequest + { + + public: + QueryDomainByDomainNameRequest(); + ~QueryDomainByDomainNameRequest(); + + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string userClientIp_; + std::string domainName_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYDOMAINBYDOMAINNAMEREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/QueryDomainByDomainNameResult.h b/domain/include/alibabacloud/domain/model/QueryDomainByDomainNameResult.h new file mode 100644 index 000000000..a0ac580d3 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/QueryDomainByDomainNameResult.h @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_QUERYDOMAINBYDOMAINNAMERESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_QUERYDOMAINBYDOMAINNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT QueryDomainByDomainNameResult : public ServiceResult + { + public: + + + QueryDomainByDomainNameResult(); + explicit QueryDomainByDomainNameResult(const std::string &payload); + ~QueryDomainByDomainNameResult(); + std::string getRegistrantType()const; + std::string getRegistrantUpdatingStatus()const; + std::string getEmail()const; + std::string getRegistrationDate()const; + long getRegistrationDateLong()const; + std::string getDomainName()const; + std::string getInstanceId()const; + std::string getRealNameStatus()const; + std::string getZhRegistrantName()const; + bool getPremium()const; + std::string getDomainNameVerificationStatus()const; + long getExpirationDateLong()const; + std::vector getDnsList()const; + std::string getExpirationDate()const; + std::string getRegistrantName()const; + std::string getTransferOutStatus()const; + std::string getUserId()const; + std::string getZhRegistrantOrganization()const; + bool getEmailVerificationClientHold()const; + std::string getUpdateProhibitionLock()const; + int getEmailVerificationStatus()const; + std::string getRegistrantOrganization()const; + std::string getTransferProhibitionLock()const; + bool getDomainNameProxyService()const; + + protected: + void parse(const std::string &payload); + private: + std::string registrantType_; + std::string registrantUpdatingStatus_; + std::string email_; + std::string registrationDate_; + long registrationDateLong_; + std::string domainName_; + std::string instanceId_; + std::string realNameStatus_; + std::string zhRegistrantName_; + bool premium_; + std::string domainNameVerificationStatus_; + long expirationDateLong_; + std::vector dnsList_; + std::string expirationDate_; + std::string registrantName_; + std::string transferOutStatus_; + std::string userId_; + std::string zhRegistrantOrganization_; + bool emailVerificationClientHold_; + std::string updateProhibitionLock_; + int emailVerificationStatus_; + std::string registrantOrganization_; + std::string transferProhibitionLock_; + bool domainNameProxyService_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYDOMAINBYDOMAINNAMERESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/QueryQualificationDetailResult.h b/domain/include/alibabacloud/domain/model/QueryQualificationDetailResult.h index 25edffb5f..18f6309ca 100644 --- a/domain/include/alibabacloud/domain/model/QueryQualificationDetailResult.h +++ b/domain/include/alibabacloud/domain/model/QueryQualificationDetailResult.h @@ -36,7 +36,6 @@ namespace AlibabaCloud { std::string credentialUrl; std::string credentialType; - std::string params; std::string credentialNo; }; diff --git a/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesRequest.h b/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesRequest.h index 543ca58b4..e637d22be 100644 --- a/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesRequest.h +++ b/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getRegistrantType()const; void setRegistrantType(const std::string& registrantType); + std::string getRegistrantProfileType()const; + void setRegistrantProfileType(const std::string& registrantProfileType); std::string getRealNameStatus()const; void setRealNameStatus(const std::string& realNameStatus); std::string getLang()const; @@ -53,6 +55,8 @@ namespace AlibabaCloud void setPageNum(int pageNum); bool getDefaultRegistrantProfile()const; void setDefaultRegistrantProfile(bool defaultRegistrantProfile); + std::string getEmail()const; + void setEmail(const std::string& email); std::string getZhRegistrantOrganization()const; void setZhRegistrantOrganization(const std::string& zhRegistrantOrganization); @@ -62,10 +66,12 @@ namespace AlibabaCloud long registrantProfileId_; int pageSize_; std::string registrantType_; + std::string registrantProfileType_; std::string realNameStatus_; std::string lang_; int pageNum_; bool defaultRegistrantProfile_; + std::string email_; std::string zhRegistrantOrganization_; }; diff --git a/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesResult.h b/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesResult.h index b8e10eba4..51275a4c8 100644 --- a/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesResult.h +++ b/domain/include/alibabacloud/domain/model/QueryRegistrantProfilesResult.h @@ -49,6 +49,7 @@ namespace AlibabaCloud std::string province; std::string registrantName; std::string zhCity; + std::string registrantProfileType; std::string updateTime; std::string country; std::string zhRegistrantOrganization; diff --git a/domain/include/alibabacloud/domain/model/QueryTaskListResult.h b/domain/include/alibabacloud/domain/model/QueryTaskListResult.h index 42e2d7c62..17bf28dd0 100644 --- a/domain/include/alibabacloud/domain/model/QueryTaskListResult.h +++ b/domain/include/alibabacloud/domain/model/QueryTaskListResult.h @@ -34,11 +34,13 @@ namespace AlibabaCloud public: struct TaskInfo { + int taskCancelStatusCode; std::string taskNo; int taskNum; int taskStatusCode; std::string taskType; std::string createTime; + std::string taskCancelStatus; std::string taskStatus; std::string clientip; std::string taskTypeDescription; diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderActivateRequest.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderActivateRequest.h index 3d5b6634f..e893b69f1 100644 --- a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderActivateRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderActivateRequest.h @@ -66,15 +66,27 @@ namespace AlibabaCloud std::vector getOrderActivateParam()const; void setOrderActivateParam(const std::vector& orderActivateParam); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getLang()const; void setLang(const std::string& lang); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: std::vector orderActivateParam_; + std::string promotionNo_; std::string userClientIp_; + std::string couponNo_; + bool useCoupon_; std::string lang_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRedeemRequest.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRedeemRequest.h index 9c6f6f72f..65fd0d492 100644 --- a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRedeemRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRedeemRequest.h @@ -40,17 +40,29 @@ namespace AlibabaCloud SaveBatchTaskForCreatingOrderRedeemRequest(); ~SaveBatchTaskForCreatingOrderRedeemRequest(); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); std::vector getOrderRedeemParam()const; void setOrderRedeemParam(const std::vector& orderRedeemParam); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getLang()const; void setLang(const std::string& lang); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: + std::string promotionNo_; std::vector orderRedeemParam_; std::string userClientIp_; + std::string couponNo_; + bool useCoupon_; std::string lang_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRenewRequest.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRenewRequest.h index ff8219752..f3f70957d 100644 --- a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRenewRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderRenewRequest.h @@ -41,17 +41,29 @@ namespace AlibabaCloud SaveBatchTaskForCreatingOrderRenewRequest(); ~SaveBatchTaskForCreatingOrderRenewRequest(); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); std::vector getOrderRenewParam()const; void setOrderRenewParam(const std::vector& orderRenewParam); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getLang()const; void setLang(const std::string& lang); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: + std::string promotionNo_; std::string userClientIp_; std::vector orderRenewParam_; + std::string couponNo_; + bool useCoupon_; std::string lang_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderTransferRequest.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderTransferRequest.h index b673ce146..a68a7cfcf 100644 --- a/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderTransferRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForCreatingOrderTransferRequest.h @@ -42,17 +42,29 @@ namespace AlibabaCloud SaveBatchTaskForCreatingOrderTransferRequest(); ~SaveBatchTaskForCreatingOrderTransferRequest(); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); std::vector getOrderTransferParam()const; void setOrderTransferParam(const std::vector& orderTransferParam); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getLang()const; void setLang(const std::string& lang); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: + std::string promotionNo_; std::vector orderTransferParam_; std::string userClientIp_; + std::string couponNo_; + bool useCoupon_; std::string lang_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRequest.h b/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRequest.h index abbe2ee9a..8eeb9e35e 100644 --- a/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setZhAddress(const std::string& zhAddress); std::string getRegistrantType()const; void setRegistrantType(const std::string& registrantType); + std::string getRegistrantProfileType()const; + void setRegistrantProfileType(const std::string& registrantProfileType); std::string getTelephone()const; void setTelephone(const std::string& telephone); bool getDefaultRegistrantProfile()const; @@ -86,6 +88,7 @@ namespace AlibabaCloud long registrantProfileId_; std::string zhAddress_; std::string registrantType_; + std::string registrantProfileType_; std::string telephone_; bool defaultRegistrantProfile_; std::string zhCity_; diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordRequest.h new file mode 100644 index 000000000..60838bdd1 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordRequest.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_DOMAIN_MODEL_SAVESINGLETASKFORADDINGDSRECORDREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORADDINGDSRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForAddingDSRecordRequest : public RpcServiceRequest + { + + public: + SaveSingleTaskForAddingDSRecordRequest(); + ~SaveSingleTaskForAddingDSRecordRequest(); + + int getKeyTag()const; + void setKeyTag(int keyTag); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + int getDigestType()const; + void setDigestType(int digestType); + std::string getDigest()const; + void setDigest(const std::string& digest); + std::string getLang()const; + void setLang(const std::string& lang); + int getAlgorithm()const; + void setAlgorithm(int algorithm); + + private: + int keyTag_; + std::string domainName_; + std::string userClientIp_; + int digestType_; + std::string digest_; + std::string lang_; + int algorithm_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORADDINGDSRECORDREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordResult.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordResult.h new file mode 100644 index 000000000..0efae788e --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordResult.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_DOMAIN_MODEL_SAVESINGLETASKFORADDINGDSRECORDRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORADDINGDSRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForAddingDSRecordResult : public ServiceResult + { + public: + + + SaveSingleTaskForAddingDSRecordResult(); + explicit SaveSingleTaskForAddingDSRecordResult(const std::string &payload); + ~SaveSingleTaskForAddingDSRecordResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORADDINGDSRECORDRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderActivateRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderActivateRequest.h index 7dce578bd..92e06a2f2 100644 --- a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderActivateRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderActivateRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setDns1(const std::string& dns1); long getRegistrantProfileId()const; void setRegistrantProfileId(long registrantProfileId); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); bool getAliyunDns()const; void setAliyunDns(bool aliyunDns); std::string getZhCity()const; @@ -81,16 +83,22 @@ namespace AlibabaCloud void setTelephone(const std::string& telephone); bool getTrademarkDomainActivation()const; void setTrademarkDomainActivation(bool trademarkDomainActivation); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getZhProvince()const; void setZhProvince(const std::string& zhProvince); std::string getRegistrantOrganization()const; void setRegistrantOrganization(const std::string& registrantOrganization); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); bool getEnableDomainProxy()const; void setEnableDomainProxy(bool enableDomainProxy); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); std::string getRegistrantName()const; void setRegistrantName(const std::string& registrantName); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: std::string country_; @@ -100,6 +108,7 @@ namespace AlibabaCloud std::string dns2_; std::string dns1_; long registrantProfileId_; + std::string couponNo_; bool aliyunDns_; std::string zhCity_; std::string telExt_; @@ -116,11 +125,14 @@ namespace AlibabaCloud std::string registrantType_; std::string telephone_; bool trademarkDomainActivation_; + bool useCoupon_; std::string zhProvince_; std::string registrantOrganization_; + std::string promotionNo_; bool enableDomainProxy_; std::string userClientIp_; std::string registrantName_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRedeemRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRedeemRequest.h index 041d9aed2..c358b68fc 100644 --- a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRedeemRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRedeemRequest.h @@ -35,20 +35,32 @@ namespace AlibabaCloud SaveSingleTaskForCreatingOrderRedeemRequest(); ~SaveSingleTaskForCreatingOrderRedeemRequest(); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); long getCurrentExpirationDate()const; void setCurrentExpirationDate(long currentExpirationDate); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); std::string getDomainName()const; void setDomainName(const std::string& domainName); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getLang()const; void setLang(const std::string& lang); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: + std::string promotionNo_; long currentExpirationDate_; std::string userClientIp_; std::string domainName_; + std::string couponNo_; + bool useCoupon_; std::string lang_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRenewRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRenewRequest.h index 1cbfcc782..0d3cff191 100644 --- a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRenewRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderRenewRequest.h @@ -37,21 +37,33 @@ namespace AlibabaCloud int getSubscriptionDuration()const; void setSubscriptionDuration(int subscriptionDuration); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); long getCurrentExpirationDate()const; void setCurrentExpirationDate(long currentExpirationDate); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); std::string getDomainName()const; void setDomainName(const std::string& domainName); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getLang()const; void setLang(const std::string& lang); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: int subscriptionDuration_; + std::string promotionNo_; long currentExpirationDate_; std::string userClientIp_; std::string domainName_; + std::string couponNo_; + bool useCoupon_; std::string lang_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderTransferRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderTransferRequest.h index 7b31d58dc..ac95eb326 100644 --- a/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderTransferRequest.h +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForCreatingOrderTransferRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud bool getPermitPremiumTransfer()const; void setPermitPremiumTransfer(bool permitPremiumTransfer); + std::string getPromotionNo()const; + void setPromotionNo(const std::string& promotionNo); std::string getAuthorizationCode()const; void setAuthorizationCode(const std::string& authorizationCode); std::string getUserClientIp()const; @@ -45,16 +47,26 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getRegistrantProfileId()const; void setRegistrantProfileId(long registrantProfileId); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + bool getUseCoupon()const; + void setUseCoupon(bool useCoupon); std::string getLang()const; void setLang(const std::string& lang); + bool getUsePromotion()const; + void setUsePromotion(bool usePromotion); private: bool permitPremiumTransfer_; + std::string promotionNo_; std::string authorizationCode_; std::string userClientIp_; std::string domainName_; long registrantProfileId_; + std::string couponNo_; + bool useCoupon_; std::string lang_; + bool usePromotion_; }; } diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordRequest.h new file mode 100644 index 000000000..b3059f14e --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordRequest.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_DOMAIN_MODEL_SAVESINGLETASKFORDELETINGDSRECORDREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORDELETINGDSRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForDeletingDSRecordRequest : public RpcServiceRequest + { + + public: + SaveSingleTaskForDeletingDSRecordRequest(); + ~SaveSingleTaskForDeletingDSRecordRequest(); + + int getKeyTag()const; + void setKeyTag(int keyTag); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + int keyTag_; + std::string domainName_; + std::string userClientIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORDELETINGDSRECORDREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordResult.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordResult.h new file mode 100644 index 000000000..8a701f9fa --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForDeletingDSRecordResult.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_DOMAIN_MODEL_SAVESINGLETASKFORDELETINGDSRECORDRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORDELETINGDSRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForDeletingDSRecordResult : public ServiceResult + { + public: + + + SaveSingleTaskForDeletingDSRecordResult(); + explicit SaveSingleTaskForDeletingDSRecordResult(const std::string &payload); + ~SaveSingleTaskForDeletingDSRecordResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORDELETINGDSRECORDRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordRequest.h new file mode 100644 index 000000000..1e7686241 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordRequest.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_DOMAIN_MODEL_SAVESINGLETASKFORMODIFYINGDSRECORDREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORMODIFYINGDSRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForModifyingDSRecordRequest : public RpcServiceRequest + { + + public: + SaveSingleTaskForModifyingDSRecordRequest(); + ~SaveSingleTaskForModifyingDSRecordRequest(); + + int getKeyTag()const; + void setKeyTag(int keyTag); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + int getDigestType()const; + void setDigestType(int digestType); + std::string getDigest()const; + void setDigest(const std::string& digest); + std::string getLang()const; + void setLang(const std::string& lang); + int getAlgorithm()const; + void setAlgorithm(int algorithm); + + private: + int keyTag_; + std::string domainName_; + std::string userClientIp_; + int digestType_; + std::string digest_; + std::string lang_; + int algorithm_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORMODIFYINGDSRECORDREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordResult.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordResult.h new file mode 100644 index 000000000..6d1095d38 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForModifyingDSRecordResult.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_DOMAIN_MODEL_SAVESINGLETASKFORMODIFYINGDSRECORDRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORMODIFYINGDSRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForModifyingDSRecordResult : public ServiceResult + { + public: + + + SaveSingleTaskForModifyingDSRecordResult(); + explicit SaveSingleTaskForModifyingDSRecordResult(const std::string &payload); + ~SaveSingleTaskForModifyingDSRecordResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORMODIFYINGDSRECORDRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionRequest.h new file mode 100644 index 000000000..93800cfd9 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSAVEARTEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSAVEARTEXTENSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForSaveArtExtensionRequest : public RpcServiceRequest + { + + public: + SaveSingleTaskForSaveArtExtensionRequest(); + ~SaveSingleTaskForSaveArtExtensionRequest(); + + std::string getReference()const; + void setReference(const std::string& reference); + std::string getFeatures()const; + void setFeatures(const std::string& features); + std::string getInscriptionsAndMarkings()const; + void setInscriptionsAndMarkings(const std::string& inscriptionsAndMarkings); + std::string getSubject()const; + void setSubject(const std::string& subject); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getMaker()const; + void setMaker(const std::string& maker); + std::string getObjectType()const; + void setObjectType(const std::string& objectType); + std::string getTitle()const; + void setTitle(const std::string& title); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getMaterialsAndTechniques()const; + void setMaterialsAndTechniques(const std::string& materialsAndTechniques); + std::string getDateOrPeriod()const; + void setDateOrPeriod(const std::string& dateOrPeriod); + std::string getDimensions()const; + void setDimensions(const std::string& dimensions); + + private: + std::string reference_; + std::string features_; + std::string inscriptionsAndMarkings_; + std::string subject_; + std::string domainName_; + std::string maker_; + std::string objectType_; + std::string title_; + std::string lang_; + std::string materialsAndTechniques_; + std::string dateOrPeriod_; + std::string dimensions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSAVEARTEXTENSIONREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionResult.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionResult.h new file mode 100644 index 000000000..ecc7768ab --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSaveArtExtensionResult.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_DOMAIN_MODEL_SAVESINGLETASKFORSAVEARTEXTENSIONRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSAVEARTEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForSaveArtExtensionResult : public ServiceResult + { + public: + + + SaveSingleTaskForSaveArtExtensionResult(); + explicit SaveSingleTaskForSaveArtExtensionResult(const std::string &payload); + ~SaveSingleTaskForSaveArtExtensionResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSAVEARTEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordRequest.h new file mode 100644 index 000000000..e9ec25f7d --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordRequest.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_DOMAIN_MODEL_SAVESINGLETASKFORSYNCHRONIZINGDSRECORDREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSYNCHRONIZINGDSRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForSynchronizingDSRecordRequest : public RpcServiceRequest + { + + public: + SaveSingleTaskForSynchronizingDSRecordRequest(); + ~SaveSingleTaskForSynchronizingDSRecordRequest(); + + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string domainName_; + std::string userClientIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSYNCHRONIZINGDSRECORDREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordResult.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordResult.h new file mode 100644 index 000000000..0b14f35da --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordResult.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_DOMAIN_MODEL_SAVESINGLETASKFORSYNCHRONIZINGDSRECORDRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSYNCHRONIZINGDSRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForSynchronizingDSRecordResult : public ServiceResult + { + public: + + + SaveSingleTaskForSynchronizingDSRecordResult(); + explicit SaveSingleTaskForSynchronizingDSRecordResult(const std::string &payload); + ~SaveSingleTaskForSynchronizingDSRecordResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORSYNCHRONIZINGDSRECORDRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/ScrollDomainListRequest.h b/domain/include/alibabacloud/domain/model/ScrollDomainListRequest.h new file mode 100644 index 000000000..8e00de91a --- /dev/null +++ b/domain/include/alibabacloud/domain/model/ScrollDomainListRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_SCROLLDOMAINLISTREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SCROLLDOMAINLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT ScrollDomainListRequest : public RpcServiceRequest + { + + public: + ScrollDomainListRequest(); + ~ScrollDomainListRequest(); + + long getEndExpirationDate()const; + void setEndExpirationDate(long endExpirationDate); + std::string getProductDomainType()const; + void setProductDomainType(const std::string& productDomainType); + std::string getSuffixs()const; + void setSuffixs(const std::string& suffixs); + long getStartExpirationDate()const; + void setStartExpirationDate(long startExpirationDate); + int getDomainStatus()const; + void setDomainStatus(int domainStatus); + long getDomainGroupId()const; + void setDomainGroupId(long domainGroupId); + bool getKeyWordSuffix()const; + void setKeyWordSuffix(bool keyWordSuffix); + std::string getScrollId()const; + void setScrollId(const std::string& scrollId); + std::string getExcluded()const; + void setExcluded(const std::string& excluded); + bool getKeyWordPrefix()const; + void setKeyWordPrefix(bool keyWordPrefix); + int getStartLength()const; + void setStartLength(int startLength); + int getTradeType()const; + void setTradeType(int tradeType); + bool getExcludedSuffix()const; + void setExcludedSuffix(bool excludedSuffix); + long getEndRegistrationDate()const; + void setEndRegistrationDate(long endRegistrationDate); + int getForm()const; + void setForm(int form); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getLang()const; + void setLang(const std::string& lang); + bool getExcludedPrefix()const; + void setExcludedPrefix(bool excludedPrefix); + std::string getKeyWord()const; + void setKeyWord(const std::string& keyWord); + long getStartRegistrationDate()const; + void setStartRegistrationDate(long startRegistrationDate); + int getEndLength()const; + void setEndLength(int endLength); + + private: + long endExpirationDate_; + std::string productDomainType_; + std::string suffixs_; + long startExpirationDate_; + int domainStatus_; + long domainGroupId_; + bool keyWordSuffix_; + std::string scrollId_; + std::string excluded_; + bool keyWordPrefix_; + int startLength_; + int tradeType_; + bool excludedSuffix_; + long endRegistrationDate_; + int form_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + bool excludedPrefix_; + std::string keyWord_; + long startRegistrationDate_; + int endLength_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SCROLLDOMAINLISTREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/ScrollDomainListResult.h b/domain/include/alibabacloud/domain/model/ScrollDomainListResult.h new file mode 100644 index 000000000..975cf0409 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/ScrollDomainListResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_SCROLLDOMAINLISTRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SCROLLDOMAINLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT ScrollDomainListResult : public ServiceResult + { + public: + struct Domain + { + std::string registrantType; + std::string email; + std::string registrationDate; + long registrationDateLong; + int expirationCurrDateDiff; + std::string domainName; + std::string instanceId; + std::string domainGroupId; + std::string productId; + bool premium; + std::string domainAuditStatus; + std::string remark; + long expirationDateLong; + std::vector dnsList; + std::string domainType; + std::string expirationDateStatus; + std::string expirationDate; + std::string domainGroupName; + std::string zhRegistrantOrganization; + std::string registrantOrganization; + std::string domainStatus; + }; + + + ScrollDomainListResult(); + explicit ScrollDomainListResult(const std::string &payload); + ~ScrollDomainListResult(); + int getPageSize()const; + std::string getScrollId()const; + std::vector getData()const; + int getTotalItemNum()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + std::string scrollId_; + std::vector data_; + int totalItemNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SCROLLDOMAINLISTRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/VerifyContactFieldRequest.h b/domain/include/alibabacloud/domain/model/VerifyContactFieldRequest.h index 4768a4d34..bdad2a883 100644 --- a/domain/include/alibabacloud/domain/model/VerifyContactFieldRequest.h +++ b/domain/include/alibabacloud/domain/model/VerifyContactFieldRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setZhAddress(const std::string& zhAddress); std::string getRegistrantType()const; void setRegistrantType(const std::string& registrantType); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); std::string getTelephone()const; void setTelephone(const std::string& telephone); std::string getZhCity()const; @@ -81,6 +83,7 @@ namespace AlibabaCloud std::string city_; std::string zhAddress_; std::string registrantType_; + std::string domainName_; std::string telephone_; std::string zhCity_; std::string zhProvince_; diff --git a/domain/src/DomainClient.cc b/domain/src/DomainClient.cc index 40fc68179..8422c2a2d 100644 --- a/domain/src/DomainClient.cc +++ b/domain/src/DomainClient.cc @@ -31,21 +31,21 @@ DomainClient::DomainClient(const Credentials &credentials, const ClientConfigura RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "domain"); } DomainClient::DomainClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "domain"); } DomainClient::DomainClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "domain"); } DomainClient::~DomainClient() @@ -663,36 +663,36 @@ DomainClient::RecordDemandOutcomeCallable DomainClient::recordDemandCallable(con return task->get_future(); } -DomainClient::UpdateDomainToDomainGroupOutcome DomainClient::updateDomainToDomainGroup(const UpdateDomainToDomainGroupRequest &request) const +DomainClient::QueryArtExtensionOutcome DomainClient::queryArtExtension(const QueryArtExtensionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateDomainToDomainGroupOutcome(endpointOutcome.error()); + return QueryArtExtensionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateDomainToDomainGroupOutcome(UpdateDomainToDomainGroupResult(outcome.result())); + return QueryArtExtensionOutcome(QueryArtExtensionResult(outcome.result())); else - return UpdateDomainToDomainGroupOutcome(outcome.error()); + return QueryArtExtensionOutcome(outcome.error()); } -void DomainClient::updateDomainToDomainGroupAsync(const UpdateDomainToDomainGroupRequest& request, const UpdateDomainToDomainGroupAsyncHandler& handler, const std::shared_ptr& context) const +void DomainClient::queryArtExtensionAsync(const QueryArtExtensionRequest& request, const QueryArtExtensionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateDomainToDomainGroup(request), context); + handler(this, request, queryArtExtension(request), context); }; asyncExecute(new Runnable(fn)); } -DomainClient::UpdateDomainToDomainGroupOutcomeCallable DomainClient::updateDomainToDomainGroupCallable(const UpdateDomainToDomainGroupRequest &request) const +DomainClient::QueryArtExtensionOutcomeCallable DomainClient::queryArtExtensionCallable(const QueryArtExtensionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateDomainToDomainGroup(request); + return this->queryArtExtension(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -735,6 +735,42 @@ DomainClient::QueryContactInfoOutcomeCallable DomainClient::queryContactInfoCall return task->get_future(); } +DomainClient::UpdateDomainToDomainGroupOutcome DomainClient::updateDomainToDomainGroup(const UpdateDomainToDomainGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDomainToDomainGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDomainToDomainGroupOutcome(UpdateDomainToDomainGroupResult(outcome.result())); + else + return UpdateDomainToDomainGroupOutcome(outcome.error()); +} + +void DomainClient::updateDomainToDomainGroupAsync(const UpdateDomainToDomainGroupRequest& request, const UpdateDomainToDomainGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDomainToDomainGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::UpdateDomainToDomainGroupOutcomeCallable DomainClient::updateDomainToDomainGroupCallable(const UpdateDomainToDomainGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDomainToDomainGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::QueryDomainSuffixOutcome DomainClient::queryDomainSuffix(const QueryDomainSuffixRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,42 +807,6 @@ DomainClient::QueryDomainSuffixOutcomeCallable DomainClient::queryDomainSuffixCa return task->get_future(); } -DomainClient::SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome DomainClient::saveSingleTaskForQueryingTransferAuthorizationCode(const SaveSingleTaskForQueryingTransferAuthorizationCodeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome(SaveSingleTaskForQueryingTransferAuthorizationCodeResult(outcome.result())); - else - return SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome(outcome.error()); -} - -void DomainClient::saveSingleTaskForQueryingTransferAuthorizationCodeAsync(const SaveSingleTaskForQueryingTransferAuthorizationCodeRequest& request, const SaveSingleTaskForQueryingTransferAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, saveSingleTaskForQueryingTransferAuthorizationCode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DomainClient::SaveSingleTaskForQueryingTransferAuthorizationCodeOutcomeCallable DomainClient::saveSingleTaskForQueryingTransferAuthorizationCodeCallable(const SaveSingleTaskForQueryingTransferAuthorizationCodeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->saveSingleTaskForQueryingTransferAuthorizationCode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DomainClient::GetReserveDomainUrlOutcome DomainClient::getReserveDomainUrl(const GetReserveDomainUrlRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +843,42 @@ DomainClient::GetReserveDomainUrlOutcomeCallable DomainClient::getReserveDomainU return task->get_future(); } +DomainClient::SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome DomainClient::saveSingleTaskForQueryingTransferAuthorizationCode(const SaveSingleTaskForQueryingTransferAuthorizationCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome(SaveSingleTaskForQueryingTransferAuthorizationCodeResult(outcome.result())); + else + return SaveSingleTaskForQueryingTransferAuthorizationCodeOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForQueryingTransferAuthorizationCodeAsync(const SaveSingleTaskForQueryingTransferAuthorizationCodeRequest& request, const SaveSingleTaskForQueryingTransferAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForQueryingTransferAuthorizationCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForQueryingTransferAuthorizationCodeOutcomeCallable DomainClient::saveSingleTaskForQueryingTransferAuthorizationCodeCallable(const SaveSingleTaskForQueryingTransferAuthorizationCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForQueryingTransferAuthorizationCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::QueryLocalEnsAssociationOutcome DomainClient::queryLocalEnsAssociation(const QueryLocalEnsAssociationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +951,42 @@ DomainClient::SubmitEmailVerificationOutcomeCallable DomainClient::submitEmailVe return task->get_future(); } +DomainClient::SaveSingleTaskForAddingDSRecordOutcome DomainClient::saveSingleTaskForAddingDSRecord(const SaveSingleTaskForAddingDSRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForAddingDSRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForAddingDSRecordOutcome(SaveSingleTaskForAddingDSRecordResult(outcome.result())); + else + return SaveSingleTaskForAddingDSRecordOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForAddingDSRecordAsync(const SaveSingleTaskForAddingDSRecordRequest& request, const SaveSingleTaskForAddingDSRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForAddingDSRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForAddingDSRecordOutcomeCallable DomainClient::saveSingleTaskForAddingDSRecordCallable(const SaveSingleTaskForAddingDSRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForAddingDSRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::ResendEmailVerificationOutcome DomainClient::resendEmailVerification(const ResendEmailVerificationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,36 +1239,36 @@ DomainClient::SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfile return task->get_future(); } -DomainClient::GetQualificationUploadPolicyOutcome DomainClient::getQualificationUploadPolicy(const GetQualificationUploadPolicyRequest &request) const +DomainClient::VerifyEmailOutcome DomainClient::verifyEmail(const VerifyEmailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetQualificationUploadPolicyOutcome(endpointOutcome.error()); + return VerifyEmailOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetQualificationUploadPolicyOutcome(GetQualificationUploadPolicyResult(outcome.result())); + return VerifyEmailOutcome(VerifyEmailResult(outcome.result())); else - return GetQualificationUploadPolicyOutcome(outcome.error()); + return VerifyEmailOutcome(outcome.error()); } -void DomainClient::getQualificationUploadPolicyAsync(const GetQualificationUploadPolicyRequest& request, const GetQualificationUploadPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void DomainClient::verifyEmailAsync(const VerifyEmailRequest& request, const VerifyEmailAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getQualificationUploadPolicy(request), context); + handler(this, request, verifyEmail(request), context); }; asyncExecute(new Runnable(fn)); } -DomainClient::GetQualificationUploadPolicyOutcomeCallable DomainClient::getQualificationUploadPolicyCallable(const GetQualificationUploadPolicyRequest &request) const +DomainClient::VerifyEmailOutcomeCallable DomainClient::verifyEmailCallable(const VerifyEmailRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getQualificationUploadPolicy(request); + return this->verifyEmail(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1239,36 +1311,36 @@ DomainClient::QueryDomainRealNameVerificationInfoOutcomeCallable DomainClient::q return task->get_future(); } -DomainClient::VerifyEmailOutcome DomainClient::verifyEmail(const VerifyEmailRequest &request) const +DomainClient::GetQualificationUploadPolicyOutcome DomainClient::getQualificationUploadPolicy(const GetQualificationUploadPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return VerifyEmailOutcome(endpointOutcome.error()); + return GetQualificationUploadPolicyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return VerifyEmailOutcome(VerifyEmailResult(outcome.result())); + return GetQualificationUploadPolicyOutcome(GetQualificationUploadPolicyResult(outcome.result())); else - return VerifyEmailOutcome(outcome.error()); + return GetQualificationUploadPolicyOutcome(outcome.error()); } -void DomainClient::verifyEmailAsync(const VerifyEmailRequest& request, const VerifyEmailAsyncHandler& handler, const std::shared_ptr& context) const +void DomainClient::getQualificationUploadPolicyAsync(const GetQualificationUploadPolicyRequest& request, const GetQualificationUploadPolicyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, verifyEmail(request), context); + handler(this, request, getQualificationUploadPolicy(request), context); }; asyncExecute(new Runnable(fn)); } -DomainClient::VerifyEmailOutcomeCallable DomainClient::verifyEmailCallable(const VerifyEmailRequest &request) const +DomainClient::GetQualificationUploadPolicyOutcomeCallable DomainClient::getQualificationUploadPolicyCallable(const GetQualificationUploadPolicyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->verifyEmail(request); + return this->getQualificationUploadPolicy(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1383,6 +1455,42 @@ DomainClient::QueryDnsHostOutcomeCallable DomainClient::queryDnsHostCallable(con return task->get_future(); } +DomainClient::CancelTaskOutcome DomainClient::cancelTask(const CancelTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelTaskOutcome(CancelTaskResult(outcome.result())); + else + return CancelTaskOutcome(outcome.error()); +} + +void DomainClient::cancelTaskAsync(const CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::CancelTaskOutcomeCallable DomainClient::cancelTaskCallable(const CancelTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::QueryRegistrantProfileRealNameVerificationInfoOutcome DomainClient::queryRegistrantProfileRealNameVerificationInfo(const QueryRegistrantProfileRealNameVerificationInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1635,42 @@ DomainClient::SaveSingleTaskForCancelingTransferInOutcomeCallable DomainClient:: return task->get_future(); } +DomainClient::QueryDSRecordOutcome DomainClient::queryDSRecord(const QueryDSRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDSRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDSRecordOutcome(QueryDSRecordResult(outcome.result())); + else + return QueryDSRecordOutcome(outcome.error()); +} + +void DomainClient::queryDSRecordAsync(const QueryDSRecordRequest& request, const QueryDSRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDSRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::QueryDSRecordOutcomeCallable DomainClient::queryDSRecordCallable(const QueryDSRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDSRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::QueryQualificationDetailOutcome DomainClient::queryQualificationDetail(const QueryQualificationDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +2067,78 @@ DomainClient::BatchFuzzyMatchDomainSensitiveWordOutcomeCallable DomainClient::ba return task->get_future(); } +DomainClient::ScrollDomainListOutcome DomainClient::scrollDomainList(const ScrollDomainListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ScrollDomainListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ScrollDomainListOutcome(ScrollDomainListResult(outcome.result())); + else + return ScrollDomainListOutcome(outcome.error()); +} + +void DomainClient::scrollDomainListAsync(const ScrollDomainListRequest& request, const ScrollDomainListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, scrollDomainList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::ScrollDomainListOutcomeCallable DomainClient::scrollDomainListCallable(const ScrollDomainListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->scrollDomainList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DomainClient::SaveSingleTaskForSaveArtExtensionOutcome DomainClient::saveSingleTaskForSaveArtExtension(const SaveSingleTaskForSaveArtExtensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForSaveArtExtensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForSaveArtExtensionOutcome(SaveSingleTaskForSaveArtExtensionResult(outcome.result())); + else + return SaveSingleTaskForSaveArtExtensionOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForSaveArtExtensionAsync(const SaveSingleTaskForSaveArtExtensionRequest& request, const SaveSingleTaskForSaveArtExtensionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForSaveArtExtension(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForSaveArtExtensionOutcomeCallable DomainClient::saveSingleTaskForSaveArtExtensionCallable(const SaveSingleTaskForSaveArtExtensionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForSaveArtExtension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::SaveSingleTaskForModifyingDnsHostOutcome DomainClient::saveSingleTaskForModifyingDnsHost(const SaveSingleTaskForModifyingDnsHostRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,42 +2823,6 @@ DomainClient::SaveSingleTaskForTransferProhibitionLockOutcomeCallable DomainClie return task->get_future(); } -DomainClient::SaveSingleTaskForAssociatingEnsOutcome DomainClient::saveSingleTaskForAssociatingEns(const SaveSingleTaskForAssociatingEnsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SaveSingleTaskForAssociatingEnsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SaveSingleTaskForAssociatingEnsOutcome(SaveSingleTaskForAssociatingEnsResult(outcome.result())); - else - return SaveSingleTaskForAssociatingEnsOutcome(outcome.error()); -} - -void DomainClient::saveSingleTaskForAssociatingEnsAsync(const SaveSingleTaskForAssociatingEnsRequest& request, const SaveSingleTaskForAssociatingEnsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, saveSingleTaskForAssociatingEns(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DomainClient::SaveSingleTaskForAssociatingEnsOutcomeCallable DomainClient::saveSingleTaskForAssociatingEnsCallable(const SaveSingleTaskForAssociatingEnsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->saveSingleTaskForAssociatingEns(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DomainClient::SaveTaskForSubmittingDomainDeleteOutcome DomainClient::saveTaskForSubmittingDomainDelete(const SaveTaskForSubmittingDomainDeleteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +2859,42 @@ DomainClient::SaveTaskForSubmittingDomainDeleteOutcomeCallable DomainClient::sav return task->get_future(); } +DomainClient::SaveSingleTaskForAssociatingEnsOutcome DomainClient::saveSingleTaskForAssociatingEns(const SaveSingleTaskForAssociatingEnsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForAssociatingEnsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForAssociatingEnsOutcome(SaveSingleTaskForAssociatingEnsResult(outcome.result())); + else + return SaveSingleTaskForAssociatingEnsOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForAssociatingEnsAsync(const SaveSingleTaskForAssociatingEnsRequest& request, const SaveSingleTaskForAssociatingEnsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForAssociatingEns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForAssociatingEnsOutcomeCallable DomainClient::saveSingleTaskForAssociatingEnsCallable(const SaveSingleTaskForAssociatingEnsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForAssociatingEns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::QueryTransferInListOutcome DomainClient::queryTransferInList(const QueryTransferInListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,42 +3075,6 @@ DomainClient::LookupTmchNoticeOutcomeCallable DomainClient::lookupTmchNoticeCall return task->get_future(); } -DomainClient::ReserveDomainOutcome DomainClient::reserveDomain(const ReserveDomainRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReserveDomainOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReserveDomainOutcome(ReserveDomainResult(outcome.result())); - else - return ReserveDomainOutcome(outcome.error()); -} - -void DomainClient::reserveDomainAsync(const ReserveDomainRequest& request, const ReserveDomainAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, reserveDomain(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DomainClient::ReserveDomainOutcomeCallable DomainClient::reserveDomainCallable(const ReserveDomainRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->reserveDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DomainClient::QueryFailingReasonListForQualificationOutcome DomainClient::queryFailingReasonListForQualification(const QueryFailingReasonListForQualificationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2931,6 +3111,42 @@ DomainClient::QueryFailingReasonListForQualificationOutcomeCallable DomainClient return task->get_future(); } +DomainClient::ReserveDomainOutcome DomainClient::reserveDomain(const ReserveDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReserveDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReserveDomainOutcome(ReserveDomainResult(outcome.result())); + else + return ReserveDomainOutcome(outcome.error()); +} + +void DomainClient::reserveDomainAsync(const ReserveDomainRequest& request, const ReserveDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reserveDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::ReserveDomainOutcomeCallable DomainClient::reserveDomainCallable(const ReserveDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reserveDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::TransferInResendMailTokenOutcome DomainClient::transferInResendMailToken(const TransferInResendMailTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,6 +3183,42 @@ DomainClient::TransferInResendMailTokenOutcomeCallable DomainClient::transferInR return task->get_future(); } +DomainClient::SaveSingleTaskForSynchronizingDSRecordOutcome DomainClient::saveSingleTaskForSynchronizingDSRecord(const SaveSingleTaskForSynchronizingDSRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForSynchronizingDSRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForSynchronizingDSRecordOutcome(SaveSingleTaskForSynchronizingDSRecordResult(outcome.result())); + else + return SaveSingleTaskForSynchronizingDSRecordOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForSynchronizingDSRecordAsync(const SaveSingleTaskForSynchronizingDSRecordRequest& request, const SaveSingleTaskForSynchronizingDSRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForSynchronizingDSRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForSynchronizingDSRecordOutcomeCallable DomainClient::saveSingleTaskForSynchronizingDSRecordCallable(const SaveSingleTaskForSynchronizingDSRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForSynchronizingDSRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::QueryTaskDetailHistoryOutcome DomainClient::queryTaskDetailHistory(const QueryTaskDetailHistoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3075,6 +3327,42 @@ DomainClient::ListEmailVerificationOutcomeCallable DomainClient::listEmailVerifi return task->get_future(); } +DomainClient::SaveSingleTaskForModifyingDSRecordOutcome DomainClient::saveSingleTaskForModifyingDSRecord(const SaveSingleTaskForModifyingDSRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForModifyingDSRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForModifyingDSRecordOutcome(SaveSingleTaskForModifyingDSRecordResult(outcome.result())); + else + return SaveSingleTaskForModifyingDSRecordOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForModifyingDSRecordAsync(const SaveSingleTaskForModifyingDSRecordRequest& request, const SaveSingleTaskForModifyingDSRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForModifyingDSRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForModifyingDSRecordOutcomeCallable DomainClient::saveSingleTaskForModifyingDSRecordCallable(const SaveSingleTaskForModifyingDSRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForModifyingDSRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::SaveDomainGroupOutcome DomainClient::saveDomainGroup(const SaveDomainGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3327,42 +3615,6 @@ DomainClient::QueryDomainByInstanceIdOutcomeCallable DomainClient::queryDomainBy return task->get_future(); } -DomainClient::SaveSingleTaskForDeletingDnsHostOutcome DomainClient::saveSingleTaskForDeletingDnsHost(const SaveSingleTaskForDeletingDnsHostRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SaveSingleTaskForDeletingDnsHostOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SaveSingleTaskForDeletingDnsHostOutcome(SaveSingleTaskForDeletingDnsHostResult(outcome.result())); - else - return SaveSingleTaskForDeletingDnsHostOutcome(outcome.error()); -} - -void DomainClient::saveSingleTaskForDeletingDnsHostAsync(const SaveSingleTaskForDeletingDnsHostRequest& request, const SaveSingleTaskForDeletingDnsHostAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, saveSingleTaskForDeletingDnsHost(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DomainClient::SaveSingleTaskForDeletingDnsHostOutcomeCallable DomainClient::saveSingleTaskForDeletingDnsHostCallable(const SaveSingleTaskForDeletingDnsHostRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->saveSingleTaskForDeletingDnsHost(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DomainClient::SaveBatchTaskForCreatingOrderRedeemOutcome DomainClient::saveBatchTaskForCreatingOrderRedeem(const SaveBatchTaskForCreatingOrderRedeemRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3399,6 +3651,42 @@ DomainClient::SaveBatchTaskForCreatingOrderRedeemOutcomeCallable DomainClient::s return task->get_future(); } +DomainClient::SaveSingleTaskForDeletingDnsHostOutcome DomainClient::saveSingleTaskForDeletingDnsHost(const SaveSingleTaskForDeletingDnsHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForDeletingDnsHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForDeletingDnsHostOutcome(SaveSingleTaskForDeletingDnsHostResult(outcome.result())); + else + return SaveSingleTaskForDeletingDnsHostOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForDeletingDnsHostAsync(const SaveSingleTaskForDeletingDnsHostRequest& request, const SaveSingleTaskForDeletingDnsHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForDeletingDnsHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForDeletingDnsHostOutcomeCallable DomainClient::saveSingleTaskForDeletingDnsHostCallable(const SaveSingleTaskForDeletingDnsHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForDeletingDnsHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::QueryTaskListOutcome DomainClient::queryTaskList(const QueryTaskListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,36 +3795,36 @@ DomainClient::SaveSingleTaskForCreatingOrderRenewOutcomeCallable DomainClient::s return task->get_future(); } -DomainClient::PollTaskResultOutcome DomainClient::pollTaskResult(const PollTaskResultRequest &request) const +DomainClient::QueryDomainAdminDivisionOutcome DomainClient::queryDomainAdminDivision(const QueryDomainAdminDivisionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PollTaskResultOutcome(endpointOutcome.error()); + return QueryDomainAdminDivisionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PollTaskResultOutcome(PollTaskResultResult(outcome.result())); + return QueryDomainAdminDivisionOutcome(QueryDomainAdminDivisionResult(outcome.result())); else - return PollTaskResultOutcome(outcome.error()); + return QueryDomainAdminDivisionOutcome(outcome.error()); } -void DomainClient::pollTaskResultAsync(const PollTaskResultRequest& request, const PollTaskResultAsyncHandler& handler, const std::shared_ptr& context) const +void DomainClient::queryDomainAdminDivisionAsync(const QueryDomainAdminDivisionRequest& request, const QueryDomainAdminDivisionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, pollTaskResult(request), context); + handler(this, request, queryDomainAdminDivision(request), context); }; asyncExecute(new Runnable(fn)); } -DomainClient::PollTaskResultOutcomeCallable DomainClient::pollTaskResultCallable(const PollTaskResultRequest &request) const +DomainClient::QueryDomainAdminDivisionOutcomeCallable DomainClient::queryDomainAdminDivisionCallable(const QueryDomainAdminDivisionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->pollTaskResult(request); + return this->queryDomainAdminDivision(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3579,36 +3867,36 @@ DomainClient::DeleteEmailVerificationOutcomeCallable DomainClient::deleteEmailVe return task->get_future(); } -DomainClient::QueryDomainAdminDivisionOutcome DomainClient::queryDomainAdminDivision(const QueryDomainAdminDivisionRequest &request) const +DomainClient::PollTaskResultOutcome DomainClient::pollTaskResult(const PollTaskResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryDomainAdminDivisionOutcome(endpointOutcome.error()); + return PollTaskResultOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryDomainAdminDivisionOutcome(QueryDomainAdminDivisionResult(outcome.result())); + return PollTaskResultOutcome(PollTaskResultResult(outcome.result())); else - return QueryDomainAdminDivisionOutcome(outcome.error()); + return PollTaskResultOutcome(outcome.error()); } -void DomainClient::queryDomainAdminDivisionAsync(const QueryDomainAdminDivisionRequest& request, const QueryDomainAdminDivisionAsyncHandler& handler, const std::shared_ptr& context) const +void DomainClient::pollTaskResultAsync(const PollTaskResultRequest& request, const PollTaskResultAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryDomainAdminDivision(request), context); + handler(this, request, pollTaskResult(request), context); }; asyncExecute(new Runnable(fn)); } -DomainClient::QueryDomainAdminDivisionOutcomeCallable DomainClient::queryDomainAdminDivisionCallable(const QueryDomainAdminDivisionRequest &request) const +DomainClient::PollTaskResultOutcomeCallable DomainClient::pollTaskResultCallable(const PollTaskResultRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryDomainAdminDivision(request); + return this->pollTaskResult(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3651,6 +3939,42 @@ DomainClient::SaveSingleTaskForCreatingOrderActivateOutcomeCallable DomainClient return task->get_future(); } +DomainClient::SaveSingleTaskForDeletingDSRecordOutcome DomainClient::saveSingleTaskForDeletingDSRecord(const SaveSingleTaskForDeletingDSRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForDeletingDSRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForDeletingDSRecordOutcome(SaveSingleTaskForDeletingDSRecordResult(outcome.result())); + else + return SaveSingleTaskForDeletingDSRecordOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForDeletingDSRecordAsync(const SaveSingleTaskForDeletingDSRecordRequest& request, const SaveSingleTaskForDeletingDSRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForDeletingDSRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForDeletingDSRecordOutcomeCallable DomainClient::saveSingleTaskForDeletingDSRecordCallable(const SaveSingleTaskForDeletingDSRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForDeletingDSRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::RefuseDemandOutcome DomainClient::refuseDemand(const RefuseDemandRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3723,6 +4047,42 @@ DomainClient::TransferInReenterTransferAuthorizationCodeOutcomeCallable DomainCl return task->get_future(); } +DomainClient::QueryDomainByDomainNameOutcome DomainClient::queryDomainByDomainName(const QueryDomainByDomainNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDomainByDomainNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDomainByDomainNameOutcome(QueryDomainByDomainNameResult(outcome.result())); + else + return QueryDomainByDomainNameOutcome(outcome.error()); +} + +void DomainClient::queryDomainByDomainNameAsync(const QueryDomainByDomainNameRequest& request, const QueryDomainByDomainNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDomainByDomainName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::QueryDomainByDomainNameOutcomeCallable DomainClient::queryDomainByDomainNameCallable(const QueryDomainByDomainNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDomainByDomainName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::EmailVerifiedOutcome DomainClient::emailVerified(const EmailVerifiedRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/domain/src/model/AcknowledgeTaskResultRequest.cc b/domain/src/model/AcknowledgeTaskResultRequest.cc index 27cd7745f..cae949f7d 100644 --- a/domain/src/model/AcknowledgeTaskResultRequest.cc +++ b/domain/src/model/AcknowledgeTaskResultRequest.cc @@ -34,7 +34,7 @@ void AcknowledgeTaskResultRequest::setTaskDetailNo(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = std::stoi(value["Result"].asString()); diff --git a/domain/src/model/BatchFuzzyMatchDomainSensitiveWordRequest.cc b/domain/src/model/BatchFuzzyMatchDomainSensitiveWordRequest.cc index dc118343b..58ee1825b 100644 --- a/domain/src/model/BatchFuzzyMatchDomainSensitiveWordRequest.cc +++ b/domain/src/model/BatchFuzzyMatchDomainSensitiveWordRequest.cc @@ -33,7 +33,7 @@ std::string BatchFuzzyMatchDomainSensitiveWordRequest::getUserClientIp()const void BatchFuzzyMatchDomainSensitiveWordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string BatchFuzzyMatchDomainSensitiveWordRequest::getKeyword()const @@ -44,7 +44,7 @@ std::string BatchFuzzyMatchDomainSensitiveWordRequest::getKeyword()const void BatchFuzzyMatchDomainSensitiveWordRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } std::string BatchFuzzyMatchDomainSensitiveWordRequest::getLang()const @@ -55,6 +55,6 @@ std::string BatchFuzzyMatchDomainSensitiveWordRequest::getLang()const void BatchFuzzyMatchDomainSensitiveWordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/BatchFuzzyMatchDomainSensitiveWordResult.cc b/domain/src/model/BatchFuzzyMatchDomainSensitiveWordResult.cc index f13443f11..0ddf84b9f 100644 --- a/domain/src/model/BatchFuzzyMatchDomainSensitiveWordResult.cc +++ b/domain/src/model/BatchFuzzyMatchDomainSensitiveWordResult.cc @@ -35,10 +35,13 @@ BatchFuzzyMatchDomainSensitiveWordResult::~BatchFuzzyMatchDomainSensitiveWordRes void BatchFuzzyMatchDomainSensitiveWordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSensitiveWordMatchResultList = value["SensitiveWordMatchResultList"]["SensitiveWordMatchResult"]; for (auto value : allSensitiveWordMatchResultList) diff --git a/domain/src/model/CancelDomainVerificationRequest.cc b/domain/src/model/CancelDomainVerificationRequest.cc index bc1c10c65..1a2b38b1c 100644 --- a/domain/src/model/CancelDomainVerificationRequest.cc +++ b/domain/src/model/CancelDomainVerificationRequest.cc @@ -33,7 +33,7 @@ std::string CancelDomainVerificationRequest::getActionType()const void CancelDomainVerificationRequest::setActionType(const std::string& actionType) { actionType_ = actionType; - setParameter("ActionType", actionType); + setCoreParameter("ActionType", actionType); } std::string CancelDomainVerificationRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string CancelDomainVerificationRequest::getInstanceId()const void CancelDomainVerificationRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CancelDomainVerificationRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string CancelDomainVerificationRequest::getUserClientIp()const void CancelDomainVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CancelDomainVerificationRequest::getLang()const @@ -66,7 +66,7 @@ std::string CancelDomainVerificationRequest::getLang()const void CancelDomainVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CancelDomainVerificationRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string CancelDomainVerificationRequest::getAccessKeyId()const void CancelDomainVerificationRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/domain/src/model/CancelDomainVerificationResult.cc b/domain/src/model/CancelDomainVerificationResult.cc index 2c9527a3f..38b1277b1 100644 --- a/domain/src/model/CancelDomainVerificationResult.cc +++ b/domain/src/model/CancelDomainVerificationResult.cc @@ -35,10 +35,13 @@ CancelDomainVerificationResult::~CancelDomainVerificationResult() void CancelDomainVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/CancelQualificationVerificationRequest.cc b/domain/src/model/CancelQualificationVerificationRequest.cc index 2c31e835b..25aa75830 100644 --- a/domain/src/model/CancelQualificationVerificationRequest.cc +++ b/domain/src/model/CancelQualificationVerificationRequest.cc @@ -33,7 +33,7 @@ std::string CancelQualificationVerificationRequest::getInstanceId()const void CancelQualificationVerificationRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CancelQualificationVerificationRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string CancelQualificationVerificationRequest::getUserClientIp()const void CancelQualificationVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CancelQualificationVerificationRequest::getLang()const @@ -55,7 +55,7 @@ std::string CancelQualificationVerificationRequest::getLang()const void CancelQualificationVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CancelQualificationVerificationRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string CancelQualificationVerificationRequest::getAccessKeyId()const void CancelQualificationVerificationRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CancelQualificationVerificationRequest::getQualificationType()const @@ -77,6 +77,6 @@ std::string CancelQualificationVerificationRequest::getQualificationType()const void CancelQualificationVerificationRequest::setQualificationType(const std::string& qualificationType) { qualificationType_ = qualificationType; - setParameter("QualificationType", qualificationType); + setCoreParameter("QualificationType", qualificationType); } diff --git a/domain/src/model/CancelQualificationVerificationResult.cc b/domain/src/model/CancelQualificationVerificationResult.cc index 1942ae8e9..ac06468ca 100644 --- a/domain/src/model/CancelQualificationVerificationResult.cc +++ b/domain/src/model/CancelQualificationVerificationResult.cc @@ -35,10 +35,13 @@ CancelQualificationVerificationResult::~CancelQualificationVerificationResult() void CancelQualificationVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/CancelTaskRequest.cc b/domain/src/model/CancelTaskRequest.cc new file mode 100644 index 000000000..1c942ec7a --- /dev/null +++ b/domain/src/model/CancelTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::CancelTaskRequest; + +CancelTaskRequest::CancelTaskRequest() : + RpcServiceRequest("domain", "2018-01-29", "CancelTask") +{} + +CancelTaskRequest::~CancelTaskRequest() +{} + +std::string CancelTaskRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void CancelTaskRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string CancelTaskRequest::getTaskNo()const +{ + return taskNo_; +} + +void CancelTaskRequest::setTaskNo(const std::string& taskNo) +{ + taskNo_ = taskNo; + setCoreParameter("TaskNo", taskNo); +} + +std::string CancelTaskRequest::getLang()const +{ + return lang_; +} + +void CancelTaskRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/domain/src/model/CancelTaskResult.cc b/domain/src/model/CancelTaskResult.cc new file mode 100644 index 000000000..d9fac94d4 --- /dev/null +++ b/domain/src/model/CancelTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Domain; +using namespace AlibabaCloud::Domain::Model; + +CancelTaskResult::CancelTaskResult() : + ServiceResult() +{} + +CancelTaskResult::CancelTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelTaskResult::~CancelTaskResult() +{} + +void CancelTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/domain/src/model/CheckDomainRequest.cc b/domain/src/model/CheckDomainRequest.cc index 77c5ba5ec..440e8a3e3 100644 --- a/domain/src/model/CheckDomainRequest.cc +++ b/domain/src/model/CheckDomainRequest.cc @@ -33,7 +33,7 @@ std::string CheckDomainRequest::getFeeCurrency()const void CheckDomainRequest::setFeeCurrency(const std::string& feeCurrency) { feeCurrency_ = feeCurrency; - setParameter("FeeCurrency", feeCurrency); + setCoreParameter("FeeCurrency", feeCurrency); } int CheckDomainRequest::getFeePeriod()const @@ -44,7 +44,7 @@ int CheckDomainRequest::getFeePeriod()const void CheckDomainRequest::setFeePeriod(int feePeriod) { feePeriod_ = feePeriod; - setParameter("FeePeriod", std::to_string(feePeriod)); + setCoreParameter("FeePeriod", std::to_string(feePeriod)); } std::string CheckDomainRequest::getDomainName()const @@ -55,18 +55,7 @@ std::string CheckDomainRequest::getDomainName()const void CheckDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); -} - -std::string CheckDomainRequest::getUserClientIp()const -{ - return userClientIp_; -} - -void CheckDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("DomainName", domainName); } std::string CheckDomainRequest::getFeeCommand()const @@ -77,7 +66,7 @@ std::string CheckDomainRequest::getFeeCommand()const void CheckDomainRequest::setFeeCommand(const std::string& feeCommand) { feeCommand_ = feeCommand; - setParameter("FeeCommand", feeCommand); + setCoreParameter("FeeCommand", feeCommand); } std::string CheckDomainRequest::getLang()const @@ -88,6 +77,6 @@ std::string CheckDomainRequest::getLang()const void CheckDomainRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/CheckDomainResult.cc b/domain/src/model/CheckDomainResult.cc index e048c462c..6c81931bc 100644 --- a/domain/src/model/CheckDomainResult.cc +++ b/domain/src/model/CheckDomainResult.cc @@ -35,10 +35,13 @@ CheckDomainResult::~CheckDomainResult() void CheckDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); diff --git a/domain/src/model/CheckDomainSunriseClaimRequest.cc b/domain/src/model/CheckDomainSunriseClaimRequest.cc index 260ad943f..afed59d14 100644 --- a/domain/src/model/CheckDomainSunriseClaimRequest.cc +++ b/domain/src/model/CheckDomainSunriseClaimRequest.cc @@ -33,7 +33,7 @@ std::string CheckDomainSunriseClaimRequest::getDomainName()const void CheckDomainSunriseClaimRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string CheckDomainSunriseClaimRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string CheckDomainSunriseClaimRequest::getUserClientIp()const void CheckDomainSunriseClaimRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CheckDomainSunriseClaimRequest::getLang()const @@ -55,6 +55,6 @@ std::string CheckDomainSunriseClaimRequest::getLang()const void CheckDomainSunriseClaimRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/CheckDomainSunriseClaimResult.cc b/domain/src/model/CheckDomainSunriseClaimResult.cc index 03491e982..edbe43c70 100644 --- a/domain/src/model/CheckDomainSunriseClaimResult.cc +++ b/domain/src/model/CheckDomainSunriseClaimResult.cc @@ -35,10 +35,13 @@ CheckDomainSunriseClaimResult::~CheckDomainSunriseClaimResult() void CheckDomainSunriseClaimResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = std::stoi(value["Result"].asString()); diff --git a/domain/src/model/CheckMaxYearOfServerLockRequest.cc b/domain/src/model/CheckMaxYearOfServerLockRequest.cc index cddc7730f..705634bd4 100644 --- a/domain/src/model/CheckMaxYearOfServerLockRequest.cc +++ b/domain/src/model/CheckMaxYearOfServerLockRequest.cc @@ -33,7 +33,7 @@ std::string CheckMaxYearOfServerLockRequest::getDomainName()const void CheckMaxYearOfServerLockRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string CheckMaxYearOfServerLockRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string CheckMaxYearOfServerLockRequest::getUserClientIp()const void CheckMaxYearOfServerLockRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CheckMaxYearOfServerLockRequest::getCheckAction()const @@ -55,7 +55,7 @@ std::string CheckMaxYearOfServerLockRequest::getCheckAction()const void CheckMaxYearOfServerLockRequest::setCheckAction(const std::string& checkAction) { checkAction_ = checkAction; - setParameter("CheckAction", checkAction); + setCoreParameter("CheckAction", checkAction); } std::string CheckMaxYearOfServerLockRequest::getLang()const @@ -66,6 +66,6 @@ std::string CheckMaxYearOfServerLockRequest::getLang()const void CheckMaxYearOfServerLockRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/CheckMaxYearOfServerLockResult.cc b/domain/src/model/CheckMaxYearOfServerLockResult.cc index 945baf0f2..c0217a137 100644 --- a/domain/src/model/CheckMaxYearOfServerLockResult.cc +++ b/domain/src/model/CheckMaxYearOfServerLockResult.cc @@ -35,10 +35,13 @@ CheckMaxYearOfServerLockResult::~CheckMaxYearOfServerLockResult() void CheckMaxYearOfServerLockResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MaxYear"].isNull()) maxYear_ = std::stoi(value["MaxYear"].asString()); diff --git a/domain/src/model/CheckProcessingServerLockApplyRequest.cc b/domain/src/model/CheckProcessingServerLockApplyRequest.cc index dc69e00fd..694fca383 100644 --- a/domain/src/model/CheckProcessingServerLockApplyRequest.cc +++ b/domain/src/model/CheckProcessingServerLockApplyRequest.cc @@ -33,7 +33,7 @@ int CheckProcessingServerLockApplyRequest::getFeePeriod()const void CheckProcessingServerLockApplyRequest::setFeePeriod(int feePeriod) { feePeriod_ = feePeriod; - setParameter("FeePeriod", std::to_string(feePeriod)); + setCoreParameter("FeePeriod", std::to_string(feePeriod)); } std::string CheckProcessingServerLockApplyRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string CheckProcessingServerLockApplyRequest::getDomainName()const void CheckProcessingServerLockApplyRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string CheckProcessingServerLockApplyRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string CheckProcessingServerLockApplyRequest::getUserClientIp()const void CheckProcessingServerLockApplyRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CheckProcessingServerLockApplyRequest::getLang()const @@ -66,6 +66,6 @@ std::string CheckProcessingServerLockApplyRequest::getLang()const void CheckProcessingServerLockApplyRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/CheckProcessingServerLockApplyResult.cc b/domain/src/model/CheckProcessingServerLockApplyResult.cc index 9b4d7c12f..a7c5b8003 100644 --- a/domain/src/model/CheckProcessingServerLockApplyResult.cc +++ b/domain/src/model/CheckProcessingServerLockApplyResult.cc @@ -35,10 +35,13 @@ CheckProcessingServerLockApplyResult::~CheckProcessingServerLockApplyResult() void CheckProcessingServerLockApplyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Exists"].isNull()) exists_ = value["Exists"].asString() == "true"; diff --git a/domain/src/model/CheckTransferInFeasibilityRequest.cc b/domain/src/model/CheckTransferInFeasibilityRequest.cc index 2a5c81d21..cced7bde7 100644 --- a/domain/src/model/CheckTransferInFeasibilityRequest.cc +++ b/domain/src/model/CheckTransferInFeasibilityRequest.cc @@ -33,7 +33,7 @@ std::string CheckTransferInFeasibilityRequest::getTransferAuthorizationCode()con void CheckTransferInFeasibilityRequest::setTransferAuthorizationCode(const std::string& transferAuthorizationCode) { transferAuthorizationCode_ = transferAuthorizationCode; - setParameter("TransferAuthorizationCode", transferAuthorizationCode); + setCoreParameter("TransferAuthorizationCode", transferAuthorizationCode); } std::string CheckTransferInFeasibilityRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string CheckTransferInFeasibilityRequest::getUserClientIp()const void CheckTransferInFeasibilityRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CheckTransferInFeasibilityRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string CheckTransferInFeasibilityRequest::getDomainName()const void CheckTransferInFeasibilityRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string CheckTransferInFeasibilityRequest::getLang()const @@ -66,6 +66,6 @@ std::string CheckTransferInFeasibilityRequest::getLang()const void CheckTransferInFeasibilityRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/CheckTransferInFeasibilityResult.cc b/domain/src/model/CheckTransferInFeasibilityResult.cc index 208f5ca9c..32c350c4a 100644 --- a/domain/src/model/CheckTransferInFeasibilityResult.cc +++ b/domain/src/model/CheckTransferInFeasibilityResult.cc @@ -35,10 +35,13 @@ CheckTransferInFeasibilityResult::~CheckTransferInFeasibilityResult() void CheckTransferInFeasibilityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CanTransfer"].isNull()) canTransfer_ = value["CanTransfer"].asString() == "true"; diff --git a/domain/src/model/ConfirmTransferInEmailRequest.cc b/domain/src/model/ConfirmTransferInEmailRequest.cc index e1b609d60..ffe44d10e 100644 --- a/domain/src/model/ConfirmTransferInEmailRequest.cc +++ b/domain/src/model/ConfirmTransferInEmailRequest.cc @@ -33,7 +33,7 @@ std::string ConfirmTransferInEmailRequest::getUserClientIp()const void ConfirmTransferInEmailRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::vector ConfirmTransferInEmailRequest::getDomainName()const @@ -45,7 +45,7 @@ void ConfirmTransferInEmailRequest::setDomainName(const std::vector { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::string ConfirmTransferInEmailRequest::getLang()const @@ -56,7 +56,7 @@ std::string ConfirmTransferInEmailRequest::getLang()const void ConfirmTransferInEmailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string ConfirmTransferInEmailRequest::getEmail()const @@ -67,6 +67,6 @@ std::string ConfirmTransferInEmailRequest::getEmail()const void ConfirmTransferInEmailRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } diff --git a/domain/src/model/ConfirmTransferInEmailResult.cc b/domain/src/model/ConfirmTransferInEmailResult.cc index 013d52793..4d11f025f 100644 --- a/domain/src/model/ConfirmTransferInEmailResult.cc +++ b/domain/src/model/ConfirmTransferInEmailResult.cc @@ -35,10 +35,13 @@ ConfirmTransferInEmailResult::~ConfirmTransferInEmailResult() void ConfirmTransferInEmailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuccessList = value["SuccessList"]["SuccessDomain"]; for (const auto &item : allSuccessList) diff --git a/domain/src/model/DeleteDomainGroupRequest.cc b/domain/src/model/DeleteDomainGroupRequest.cc index e83a887de..6d4c7d713 100644 --- a/domain/src/model/DeleteDomainGroupRequest.cc +++ b/domain/src/model/DeleteDomainGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDomainGroupRequest::getUserClientIp()const void DeleteDomainGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteDomainGroupRequest::getLang()const @@ -44,7 +44,7 @@ std::string DeleteDomainGroupRequest::getLang()const void DeleteDomainGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DeleteDomainGroupRequest::getDomainGroupId()const @@ -55,6 +55,6 @@ long DeleteDomainGroupRequest::getDomainGroupId()const void DeleteDomainGroupRequest::setDomainGroupId(long domainGroupId) { domainGroupId_ = domainGroupId; - setParameter("DomainGroupId", std::to_string(domainGroupId)); + setCoreParameter("DomainGroupId", std::to_string(domainGroupId)); } diff --git a/domain/src/model/DeleteDomainGroupResult.cc b/domain/src/model/DeleteDomainGroupResult.cc index 9a249454d..f1ac576db 100644 --- a/domain/src/model/DeleteDomainGroupResult.cc +++ b/domain/src/model/DeleteDomainGroupResult.cc @@ -35,10 +35,13 @@ DeleteDomainGroupResult::~DeleteDomainGroupResult() void DeleteDomainGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/DeleteEmailVerificationRequest.cc b/domain/src/model/DeleteEmailVerificationRequest.cc index 257f5dffc..eb96bd006 100644 --- a/domain/src/model/DeleteEmailVerificationRequest.cc +++ b/domain/src/model/DeleteEmailVerificationRequest.cc @@ -33,7 +33,7 @@ std::string DeleteEmailVerificationRequest::getUserClientIp()const void DeleteEmailVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteEmailVerificationRequest::getLang()const @@ -44,7 +44,7 @@ std::string DeleteEmailVerificationRequest::getLang()const void DeleteEmailVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteEmailVerificationRequest::getEmail()const @@ -55,6 +55,6 @@ std::string DeleteEmailVerificationRequest::getEmail()const void DeleteEmailVerificationRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } diff --git a/domain/src/model/DeleteEmailVerificationResult.cc b/domain/src/model/DeleteEmailVerificationResult.cc index 610493787..bfff16dee 100644 --- a/domain/src/model/DeleteEmailVerificationResult.cc +++ b/domain/src/model/DeleteEmailVerificationResult.cc @@ -35,10 +35,13 @@ DeleteEmailVerificationResult::~DeleteEmailVerificationResult() void DeleteEmailVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuccessList = value["SuccessList"]["SendResult"]; for (auto value : allSuccessList) diff --git a/domain/src/model/DeleteRegistrantProfileRequest.cc b/domain/src/model/DeleteRegistrantProfileRequest.cc index 724ef99e9..ba047ccda 100644 --- a/domain/src/model/DeleteRegistrantProfileRequest.cc +++ b/domain/src/model/DeleteRegistrantProfileRequest.cc @@ -33,7 +33,7 @@ std::string DeleteRegistrantProfileRequest::getUserClientIp()const void DeleteRegistrantProfileRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long DeleteRegistrantProfileRequest::getRegistrantProfileId()const @@ -44,7 +44,7 @@ long DeleteRegistrantProfileRequest::getRegistrantProfileId()const void DeleteRegistrantProfileRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } std::string DeleteRegistrantProfileRequest::getLang()const @@ -55,6 +55,6 @@ std::string DeleteRegistrantProfileRequest::getLang()const void DeleteRegistrantProfileRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/DeleteRegistrantProfileResult.cc b/domain/src/model/DeleteRegistrantProfileResult.cc index c597daad6..8e53a033b 100644 --- a/domain/src/model/DeleteRegistrantProfileResult.cc +++ b/domain/src/model/DeleteRegistrantProfileResult.cc @@ -35,10 +35,13 @@ DeleteRegistrantProfileResult::~DeleteRegistrantProfileResult() void DeleteRegistrantProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/EmailVerifiedRequest.cc b/domain/src/model/EmailVerifiedRequest.cc index d1ac0f731..bd36a82b9 100644 --- a/domain/src/model/EmailVerifiedRequest.cc +++ b/domain/src/model/EmailVerifiedRequest.cc @@ -33,7 +33,7 @@ std::string EmailVerifiedRequest::getUserClientIp()const void EmailVerifiedRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string EmailVerifiedRequest::getLang()const @@ -44,7 +44,7 @@ std::string EmailVerifiedRequest::getLang()const void EmailVerifiedRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string EmailVerifiedRequest::getEmail()const @@ -55,6 +55,6 @@ std::string EmailVerifiedRequest::getEmail()const void EmailVerifiedRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } diff --git a/domain/src/model/EmailVerifiedResult.cc b/domain/src/model/EmailVerifiedResult.cc index ccf434922..d4474b82a 100644 --- a/domain/src/model/EmailVerifiedResult.cc +++ b/domain/src/model/EmailVerifiedResult.cc @@ -35,10 +35,13 @@ EmailVerifiedResult::~EmailVerifiedResult() void EmailVerifiedResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/FuzzyMatchDomainSensitiveWordRequest.cc b/domain/src/model/FuzzyMatchDomainSensitiveWordRequest.cc index 6cbd4d607..9f1db80af 100644 --- a/domain/src/model/FuzzyMatchDomainSensitiveWordRequest.cc +++ b/domain/src/model/FuzzyMatchDomainSensitiveWordRequest.cc @@ -33,7 +33,7 @@ std::string FuzzyMatchDomainSensitiveWordRequest::getUserClientIp()const void FuzzyMatchDomainSensitiveWordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string FuzzyMatchDomainSensitiveWordRequest::getKeyword()const @@ -44,7 +44,7 @@ std::string FuzzyMatchDomainSensitiveWordRequest::getKeyword()const void FuzzyMatchDomainSensitiveWordRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } std::string FuzzyMatchDomainSensitiveWordRequest::getLang()const @@ -55,6 +55,6 @@ std::string FuzzyMatchDomainSensitiveWordRequest::getLang()const void FuzzyMatchDomainSensitiveWordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/FuzzyMatchDomainSensitiveWordResult.cc b/domain/src/model/FuzzyMatchDomainSensitiveWordResult.cc index 3041d6e98..fa6fb23e9 100644 --- a/domain/src/model/FuzzyMatchDomainSensitiveWordResult.cc +++ b/domain/src/model/FuzzyMatchDomainSensitiveWordResult.cc @@ -35,10 +35,13 @@ FuzzyMatchDomainSensitiveWordResult::~FuzzyMatchDomainSensitiveWordResult() void FuzzyMatchDomainSensitiveWordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMatchedSentiveWords = value["MatchedSentiveWords"]["MatchedSensitiveWord"]; for (auto value : allMatchedSentiveWords) diff --git a/domain/src/model/GetQualificationUploadPolicyRequest.cc b/domain/src/model/GetQualificationUploadPolicyRequest.cc index 4ebcf4b6f..59d2db2c5 100644 --- a/domain/src/model/GetQualificationUploadPolicyRequest.cc +++ b/domain/src/model/GetQualificationUploadPolicyRequest.cc @@ -33,7 +33,7 @@ std::string GetQualificationUploadPolicyRequest::getUserClientIp()const void GetQualificationUploadPolicyRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string GetQualificationUploadPolicyRequest::getLang()const @@ -44,6 +44,6 @@ std::string GetQualificationUploadPolicyRequest::getLang()const void GetQualificationUploadPolicyRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/GetQualificationUploadPolicyResult.cc b/domain/src/model/GetQualificationUploadPolicyResult.cc index 1bb03c67b..d51a18faf 100644 --- a/domain/src/model/GetQualificationUploadPolicyResult.cc +++ b/domain/src/model/GetQualificationUploadPolicyResult.cc @@ -35,10 +35,13 @@ GetQualificationUploadPolicyResult::~GetQualificationUploadPolicyResult() void GetQualificationUploadPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Accessid"].isNull()) accessid_ = value["Accessid"].asString(); diff --git a/domain/src/model/ListEmailVerificationRequest.cc b/domain/src/model/ListEmailVerificationRequest.cc index 67fa56886..fa7ff023b 100644 --- a/domain/src/model/ListEmailVerificationRequest.cc +++ b/domain/src/model/ListEmailVerificationRequest.cc @@ -33,7 +33,7 @@ long ListEmailVerificationRequest::getBeginCreateTime()const void ListEmailVerificationRequest::setBeginCreateTime(long beginCreateTime) { beginCreateTime_ = beginCreateTime; - setParameter("BeginCreateTime", std::to_string(beginCreateTime)); + setCoreParameter("BeginCreateTime", std::to_string(beginCreateTime)); } long ListEmailVerificationRequest::getEndCreateTime()const @@ -44,7 +44,7 @@ long ListEmailVerificationRequest::getEndCreateTime()const void ListEmailVerificationRequest::setEndCreateTime(long endCreateTime) { endCreateTime_ = endCreateTime; - setParameter("EndCreateTime", std::to_string(endCreateTime)); + setCoreParameter("EndCreateTime", std::to_string(endCreateTime)); } int ListEmailVerificationRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListEmailVerificationRequest::getPageSize()const void ListEmailVerificationRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListEmailVerificationRequest::getUserClientIp()const @@ -66,7 +66,7 @@ std::string ListEmailVerificationRequest::getUserClientIp()const void ListEmailVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string ListEmailVerificationRequest::getLang()const @@ -77,7 +77,7 @@ std::string ListEmailVerificationRequest::getLang()const void ListEmailVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int ListEmailVerificationRequest::getPageNum()const @@ -88,7 +88,7 @@ int ListEmailVerificationRequest::getPageNum()const void ListEmailVerificationRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string ListEmailVerificationRequest::getEmail()const @@ -99,7 +99,7 @@ std::string ListEmailVerificationRequest::getEmail()const void ListEmailVerificationRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } int ListEmailVerificationRequest::getVerificationStatus()const @@ -110,6 +110,6 @@ int ListEmailVerificationRequest::getVerificationStatus()const void ListEmailVerificationRequest::setVerificationStatus(int verificationStatus) { verificationStatus_ = verificationStatus; - setParameter("VerificationStatus", std::to_string(verificationStatus)); + setCoreParameter("VerificationStatus", std::to_string(verificationStatus)); } diff --git a/domain/src/model/ListEmailVerificationResult.cc b/domain/src/model/ListEmailVerificationResult.cc index 6033c61b0..353abae81 100644 --- a/domain/src/model/ListEmailVerificationResult.cc +++ b/domain/src/model/ListEmailVerificationResult.cc @@ -35,10 +35,13 @@ ListEmailVerificationResult::~ListEmailVerificationResult() void ListEmailVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["EmailVerification"]; for (auto value : allData) diff --git a/domain/src/model/ListServerLockRequest.cc b/domain/src/model/ListServerLockRequest.cc index a603e3506..75b21ae5f 100644 --- a/domain/src/model/ListServerLockRequest.cc +++ b/domain/src/model/ListServerLockRequest.cc @@ -33,7 +33,7 @@ std::string ListServerLockRequest::getLockProductId()const void ListServerLockRequest::setLockProductId(const std::string& lockProductId) { lockProductId_ = lockProductId; - setParameter("LockProductId", lockProductId); + setCoreParameter("LockProductId", lockProductId); } long ListServerLockRequest::getEndStartDate()const @@ -44,7 +44,7 @@ long ListServerLockRequest::getEndStartDate()const void ListServerLockRequest::setEndStartDate(long endStartDate) { endStartDate_ = endStartDate; - setParameter("EndStartDate", std::to_string(endStartDate)); + setCoreParameter("EndStartDate", std::to_string(endStartDate)); } int ListServerLockRequest::getServerLockStatus()const @@ -55,7 +55,7 @@ int ListServerLockRequest::getServerLockStatus()const void ListServerLockRequest::setServerLockStatus(int serverLockStatus) { serverLockStatus_ = serverLockStatus; - setParameter("ServerLockStatus", std::to_string(serverLockStatus)); + setCoreParameter("ServerLockStatus", std::to_string(serverLockStatus)); } long ListServerLockRequest::getStartExpireDate()const @@ -66,7 +66,7 @@ long ListServerLockRequest::getStartExpireDate()const void ListServerLockRequest::setStartExpireDate(long startExpireDate) { startExpireDate_ = startExpireDate; - setParameter("StartExpireDate", std::to_string(startExpireDate)); + setCoreParameter("StartExpireDate", std::to_string(startExpireDate)); } std::string ListServerLockRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string ListServerLockRequest::getDomainName()const void ListServerLockRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int ListServerLockRequest::getPageSize()const @@ -88,7 +88,7 @@ int ListServerLockRequest::getPageSize()const void ListServerLockRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListServerLockRequest::getUserClientIp()const @@ -99,7 +99,7 @@ std::string ListServerLockRequest::getUserClientIp()const void ListServerLockRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long ListServerLockRequest::getEndExpireDate()const @@ -110,7 +110,7 @@ long ListServerLockRequest::getEndExpireDate()const void ListServerLockRequest::setEndExpireDate(long endExpireDate) { endExpireDate_ = endExpireDate; - setParameter("EndExpireDate", std::to_string(endExpireDate)); + setCoreParameter("EndExpireDate", std::to_string(endExpireDate)); } int ListServerLockRequest::getPageNum()const @@ -121,7 +121,7 @@ int ListServerLockRequest::getPageNum()const void ListServerLockRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string ListServerLockRequest::getLang()const @@ -132,7 +132,7 @@ std::string ListServerLockRequest::getLang()const void ListServerLockRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long ListServerLockRequest::getBeginStartDate()const @@ -143,6 +143,6 @@ long ListServerLockRequest::getBeginStartDate()const void ListServerLockRequest::setBeginStartDate(long beginStartDate) { beginStartDate_ = beginStartDate; - setParameter("BeginStartDate", std::to_string(beginStartDate)); + setCoreParameter("BeginStartDate", std::to_string(beginStartDate)); } diff --git a/domain/src/model/ListServerLockResult.cc b/domain/src/model/ListServerLockResult.cc index 3cba0cef3..83df06fde 100644 --- a/domain/src/model/ListServerLockResult.cc +++ b/domain/src/model/ListServerLockResult.cc @@ -35,10 +35,13 @@ ListServerLockResult::~ListServerLockResult() void ListServerLockResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["QueryTransferInResponse"]; for (auto value : allData) diff --git a/domain/src/model/LookupTmchNoticeRequest.cc b/domain/src/model/LookupTmchNoticeRequest.cc index 07377a210..4c1733c2f 100644 --- a/domain/src/model/LookupTmchNoticeRequest.cc +++ b/domain/src/model/LookupTmchNoticeRequest.cc @@ -33,7 +33,7 @@ std::string LookupTmchNoticeRequest::getClaimKey()const void LookupTmchNoticeRequest::setClaimKey(const std::string& claimKey) { claimKey_ = claimKey; - setParameter("ClaimKey", claimKey); + setCoreParameter("ClaimKey", claimKey); } std::string LookupTmchNoticeRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string LookupTmchNoticeRequest::getUserClientIp()const void LookupTmchNoticeRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string LookupTmchNoticeRequest::getLang()const @@ -55,6 +55,6 @@ std::string LookupTmchNoticeRequest::getLang()const void LookupTmchNoticeRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/LookupTmchNoticeResult.cc b/domain/src/model/LookupTmchNoticeResult.cc index 46b517fbc..4ec89c5bf 100644 --- a/domain/src/model/LookupTmchNoticeResult.cc +++ b/domain/src/model/LookupTmchNoticeResult.cc @@ -35,10 +35,13 @@ LookupTmchNoticeResult::~LookupTmchNoticeResult() void LookupTmchNoticeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClaims = value["Claims"]["Claim"]; for (auto value : allClaims) diff --git a/domain/src/model/PollTaskResultRequest.cc b/domain/src/model/PollTaskResultRequest.cc index 219620f25..b5a418124 100644 --- a/domain/src/model/PollTaskResultRequest.cc +++ b/domain/src/model/PollTaskResultRequest.cc @@ -33,7 +33,7 @@ std::string PollTaskResultRequest::getInstanceId()const void PollTaskResultRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string PollTaskResultRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string PollTaskResultRequest::getUserClientIp()const void PollTaskResultRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string PollTaskResultRequest::getTaskNo()const @@ -55,7 +55,7 @@ std::string PollTaskResultRequest::getTaskNo()const void PollTaskResultRequest::setTaskNo(const std::string& taskNo) { taskNo_ = taskNo; - setParameter("TaskNo", taskNo); + setCoreParameter("TaskNo", taskNo); } std::string PollTaskResultRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string PollTaskResultRequest::getDomainName()const void PollTaskResultRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int PollTaskResultRequest::getPageSize()const @@ -77,7 +77,7 @@ int PollTaskResultRequest::getPageSize()const void PollTaskResultRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string PollTaskResultRequest::getLang()const @@ -88,7 +88,7 @@ std::string PollTaskResultRequest::getLang()const void PollTaskResultRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int PollTaskResultRequest::getPageNum()const @@ -99,7 +99,7 @@ int PollTaskResultRequest::getPageNum()const void PollTaskResultRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } int PollTaskResultRequest::getTaskResultStatus()const @@ -110,6 +110,6 @@ int PollTaskResultRequest::getTaskResultStatus()const void PollTaskResultRequest::setTaskResultStatus(int taskResultStatus) { taskResultStatus_ = taskResultStatus; - setParameter("TaskResultStatus", std::to_string(taskResultStatus)); + setCoreParameter("TaskResultStatus", std::to_string(taskResultStatus)); } diff --git a/domain/src/model/PollTaskResultResult.cc b/domain/src/model/PollTaskResultResult.cc index 8ad1a0c50..ded173329 100644 --- a/domain/src/model/PollTaskResultResult.cc +++ b/domain/src/model/PollTaskResultResult.cc @@ -35,10 +35,13 @@ PollTaskResultResult::~PollTaskResultResult() void PollTaskResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TaskDetail"]; for (auto value : allData) diff --git a/domain/src/model/QueryAdvancedDomainListRequest.cc b/domain/src/model/QueryAdvancedDomainListRequest.cc index 3c8fc3a15..b2e7aad2a 100644 --- a/domain/src/model/QueryAdvancedDomainListRequest.cc +++ b/domain/src/model/QueryAdvancedDomainListRequest.cc @@ -33,7 +33,7 @@ std::string QueryAdvancedDomainListRequest::getProductDomainType()const void QueryAdvancedDomainListRequest::setProductDomainType(const std::string& productDomainType) { productDomainType_ = productDomainType; - setParameter("ProductDomainType", productDomainType); + setCoreParameter("ProductDomainType", productDomainType); } int QueryAdvancedDomainListRequest::getPageNum()const @@ -44,7 +44,7 @@ int QueryAdvancedDomainListRequest::getPageNum()const void QueryAdvancedDomainListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string QueryAdvancedDomainListRequest::getExcluded()const @@ -55,7 +55,7 @@ std::string QueryAdvancedDomainListRequest::getExcluded()const void QueryAdvancedDomainListRequest::setExcluded(const std::string& excluded) { excluded_ = excluded; - setParameter("Excluded", excluded); + setCoreParameter("Excluded", excluded); } int QueryAdvancedDomainListRequest::getStartLength()const @@ -66,7 +66,7 @@ int QueryAdvancedDomainListRequest::getStartLength()const void QueryAdvancedDomainListRequest::setStartLength(int startLength) { startLength_ = startLength; - setParameter("StartLength", std::to_string(startLength)); + setCoreParameter("StartLength", std::to_string(startLength)); } bool QueryAdvancedDomainListRequest::getExcludedSuffix()const @@ -77,7 +77,7 @@ bool QueryAdvancedDomainListRequest::getExcludedSuffix()const void QueryAdvancedDomainListRequest::setExcludedSuffix(bool excludedSuffix) { excludedSuffix_ = excludedSuffix; - setParameter("ExcludedSuffix", std::to_string(excludedSuffix)); + setCoreParameter("ExcludedSuffix", excludedSuffix ? "true" : "false"); } int QueryAdvancedDomainListRequest::getPageSize()const @@ -88,7 +88,7 @@ int QueryAdvancedDomainListRequest::getPageSize()const void QueryAdvancedDomainListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryAdvancedDomainListRequest::getLang()const @@ -99,7 +99,7 @@ std::string QueryAdvancedDomainListRequest::getLang()const void QueryAdvancedDomainListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool QueryAdvancedDomainListRequest::getExcludedPrefix()const @@ -110,7 +110,7 @@ bool QueryAdvancedDomainListRequest::getExcludedPrefix()const void QueryAdvancedDomainListRequest::setExcludedPrefix(bool excludedPrefix) { excludedPrefix_ = excludedPrefix; - setParameter("ExcludedPrefix", std::to_string(excludedPrefix)); + setCoreParameter("ExcludedPrefix", excludedPrefix ? "true" : "false"); } std::string QueryAdvancedDomainListRequest::getKeyWord()const @@ -121,7 +121,7 @@ std::string QueryAdvancedDomainListRequest::getKeyWord()const void QueryAdvancedDomainListRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } bool QueryAdvancedDomainListRequest::getProductDomainTypeSort()const @@ -132,7 +132,7 @@ bool QueryAdvancedDomainListRequest::getProductDomainTypeSort()const void QueryAdvancedDomainListRequest::setProductDomainTypeSort(bool productDomainTypeSort) { productDomainTypeSort_ = productDomainTypeSort; - setParameter("ProductDomainTypeSort", std::to_string(productDomainTypeSort)); + setCoreParameter("ProductDomainTypeSort", productDomainTypeSort ? "true" : "false"); } long QueryAdvancedDomainListRequest::getEndExpirationDate()const @@ -143,7 +143,7 @@ long QueryAdvancedDomainListRequest::getEndExpirationDate()const void QueryAdvancedDomainListRequest::setEndExpirationDate(long endExpirationDate) { endExpirationDate_ = endExpirationDate; - setParameter("EndExpirationDate", std::to_string(endExpirationDate)); + setCoreParameter("EndExpirationDate", std::to_string(endExpirationDate)); } std::string QueryAdvancedDomainListRequest::getSuffixs()const @@ -154,7 +154,7 @@ std::string QueryAdvancedDomainListRequest::getSuffixs()const void QueryAdvancedDomainListRequest::setSuffixs(const std::string& suffixs) { suffixs_ = suffixs; - setParameter("Suffixs", suffixs); + setCoreParameter("Suffixs", suffixs); } bool QueryAdvancedDomainListRequest::getDomainNameSort()const @@ -165,7 +165,7 @@ bool QueryAdvancedDomainListRequest::getDomainNameSort()const void QueryAdvancedDomainListRequest::setDomainNameSort(bool domainNameSort) { domainNameSort_ = domainNameSort; - setParameter("DomainNameSort", std::to_string(domainNameSort)); + setCoreParameter("DomainNameSort", domainNameSort ? "true" : "false"); } bool QueryAdvancedDomainListRequest::getExpirationDateSort()const @@ -176,7 +176,7 @@ bool QueryAdvancedDomainListRequest::getExpirationDateSort()const void QueryAdvancedDomainListRequest::setExpirationDateSort(bool expirationDateSort) { expirationDateSort_ = expirationDateSort; - setParameter("ExpirationDateSort", std::to_string(expirationDateSort)); + setCoreParameter("ExpirationDateSort", expirationDateSort ? "true" : "false"); } long QueryAdvancedDomainListRequest::getStartExpirationDate()const @@ -187,7 +187,7 @@ long QueryAdvancedDomainListRequest::getStartExpirationDate()const void QueryAdvancedDomainListRequest::setStartExpirationDate(long startExpirationDate) { startExpirationDate_ = startExpirationDate; - setParameter("StartExpirationDate", std::to_string(startExpirationDate)); + setCoreParameter("StartExpirationDate", std::to_string(startExpirationDate)); } int QueryAdvancedDomainListRequest::getDomainStatus()const @@ -198,7 +198,7 @@ int QueryAdvancedDomainListRequest::getDomainStatus()const void QueryAdvancedDomainListRequest::setDomainStatus(int domainStatus) { domainStatus_ = domainStatus; - setParameter("DomainStatus", std::to_string(domainStatus)); + setCoreParameter("DomainStatus", std::to_string(domainStatus)); } long QueryAdvancedDomainListRequest::getDomainGroupId()const @@ -209,7 +209,7 @@ long QueryAdvancedDomainListRequest::getDomainGroupId()const void QueryAdvancedDomainListRequest::setDomainGroupId(long domainGroupId) { domainGroupId_ = domainGroupId; - setParameter("DomainGroupId", std::to_string(domainGroupId)); + setCoreParameter("DomainGroupId", std::to_string(domainGroupId)); } bool QueryAdvancedDomainListRequest::getKeyWordSuffix()const @@ -220,7 +220,7 @@ bool QueryAdvancedDomainListRequest::getKeyWordSuffix()const void QueryAdvancedDomainListRequest::setKeyWordSuffix(bool keyWordSuffix) { keyWordSuffix_ = keyWordSuffix; - setParameter("KeyWordSuffix", std::to_string(keyWordSuffix)); + setCoreParameter("KeyWordSuffix", keyWordSuffix ? "true" : "false"); } bool QueryAdvancedDomainListRequest::getKeyWordPrefix()const @@ -231,7 +231,7 @@ bool QueryAdvancedDomainListRequest::getKeyWordPrefix()const void QueryAdvancedDomainListRequest::setKeyWordPrefix(bool keyWordPrefix) { keyWordPrefix_ = keyWordPrefix; - setParameter("KeyWordPrefix", std::to_string(keyWordPrefix)); + setCoreParameter("KeyWordPrefix", keyWordPrefix ? "true" : "false"); } int QueryAdvancedDomainListRequest::getTradeType()const @@ -242,7 +242,7 @@ int QueryAdvancedDomainListRequest::getTradeType()const void QueryAdvancedDomainListRequest::setTradeType(int tradeType) { tradeType_ = tradeType; - setParameter("TradeType", std::to_string(tradeType)); + setCoreParameter("TradeType", std::to_string(tradeType)); } long QueryAdvancedDomainListRequest::getEndRegistrationDate()const @@ -253,7 +253,7 @@ long QueryAdvancedDomainListRequest::getEndRegistrationDate()const void QueryAdvancedDomainListRequest::setEndRegistrationDate(long endRegistrationDate) { endRegistrationDate_ = endRegistrationDate; - setParameter("EndRegistrationDate", std::to_string(endRegistrationDate)); + setCoreParameter("EndRegistrationDate", std::to_string(endRegistrationDate)); } int QueryAdvancedDomainListRequest::getForm()const @@ -264,7 +264,7 @@ int QueryAdvancedDomainListRequest::getForm()const void QueryAdvancedDomainListRequest::setForm(int form) { form_ = form; - setParameter("Form", std::to_string(form)); + setCoreParameter("Form", std::to_string(form)); } std::string QueryAdvancedDomainListRequest::getUserClientIp()const @@ -275,7 +275,7 @@ std::string QueryAdvancedDomainListRequest::getUserClientIp()const void QueryAdvancedDomainListRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } bool QueryAdvancedDomainListRequest::getRegistrationDateSort()const @@ -286,7 +286,7 @@ bool QueryAdvancedDomainListRequest::getRegistrationDateSort()const void QueryAdvancedDomainListRequest::setRegistrationDateSort(bool registrationDateSort) { registrationDateSort_ = registrationDateSort; - setParameter("RegistrationDateSort", std::to_string(registrationDateSort)); + setCoreParameter("RegistrationDateSort", registrationDateSort ? "true" : "false"); } long QueryAdvancedDomainListRequest::getStartRegistrationDate()const @@ -297,7 +297,7 @@ long QueryAdvancedDomainListRequest::getStartRegistrationDate()const void QueryAdvancedDomainListRequest::setStartRegistrationDate(long startRegistrationDate) { startRegistrationDate_ = startRegistrationDate; - setParameter("StartRegistrationDate", std::to_string(startRegistrationDate)); + setCoreParameter("StartRegistrationDate", std::to_string(startRegistrationDate)); } int QueryAdvancedDomainListRequest::getEndLength()const @@ -308,6 +308,6 @@ int QueryAdvancedDomainListRequest::getEndLength()const void QueryAdvancedDomainListRequest::setEndLength(int endLength) { endLength_ = endLength; - setParameter("EndLength", std::to_string(endLength)); + setCoreParameter("EndLength", std::to_string(endLength)); } diff --git a/domain/src/model/QueryAdvancedDomainListResult.cc b/domain/src/model/QueryAdvancedDomainListResult.cc index 423e3bb17..d41e7fe7d 100644 --- a/domain/src/model/QueryAdvancedDomainListResult.cc +++ b/domain/src/model/QueryAdvancedDomainListResult.cc @@ -35,10 +35,13 @@ QueryAdvancedDomainListResult::~QueryAdvancedDomainListResult() void QueryAdvancedDomainListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Domain"]; for (auto value : allData) @@ -78,6 +81,15 @@ void QueryAdvancedDomainListResult::parse(const std::string &payload) dataObject.domainGroupName = value["DomainGroupName"].asString(); if(!value["ExpirationCurrDateDiff"].isNull()) dataObject.expirationCurrDateDiff = std::stoi(value["ExpirationCurrDateDiff"].asString()); + if(!value["Email"].isNull()) + dataObject.email = value["Email"].asString(); + if(!value["ZhRegistrantOrganization"].isNull()) + dataObject.zhRegistrantOrganization = value["ZhRegistrantOrganization"].asString(); + if(!value["RegistrantOrganization"].isNull()) + dataObject.registrantOrganization = value["RegistrantOrganization"].asString(); + auto allDnsList = value["DnsList"]["Dns"]; + for (auto value : allDnsList) + dataObject.dnsList.push_back(value.asString()); data_.push_back(dataObject); } if(!value["TotalItemNum"].isNull()) diff --git a/domain/src/model/QueryArtExtensionRequest.cc b/domain/src/model/QueryArtExtensionRequest.cc new file mode 100644 index 000000000..1ae2760b2 --- /dev/null +++ b/domain/src/model/QueryArtExtensionRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::QueryArtExtensionRequest; + +QueryArtExtensionRequest::QueryArtExtensionRequest() : + RpcServiceRequest("domain", "2018-01-29", "QueryArtExtension") +{} + +QueryArtExtensionRequest::~QueryArtExtensionRequest() +{} + +std::string QueryArtExtensionRequest::getDomainName()const +{ + return domainName_; +} + +void QueryArtExtensionRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string QueryArtExtensionRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void QueryArtExtensionRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string QueryArtExtensionRequest::getLang()const +{ + return lang_; +} + +void QueryArtExtensionRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/domain/src/model/QueryArtExtensionResult.cc b/domain/src/model/QueryArtExtensionResult.cc new file mode 100644 index 000000000..ff400047f --- /dev/null +++ b/domain/src/model/QueryArtExtensionResult.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::Domain; +using namespace AlibabaCloud::Domain::Model; + +QueryArtExtensionResult::QueryArtExtensionResult() : + ServiceResult() +{} + +QueryArtExtensionResult::QueryArtExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryArtExtensionResult::~QueryArtExtensionResult() +{} + +void QueryArtExtensionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ObjectType"].isNull()) + objectType_ = value["ObjectType"].asString(); + if(!value["MaterialsAndTechniques"].isNull()) + materialsAndTechniques_ = value["MaterialsAndTechniques"].asString(); + if(!value["Dimensions"].isNull()) + dimensions_ = value["Dimensions"].asString(); + if(!value["Title"].isNull()) + title_ = value["Title"].asString(); + if(!value["DateOrPeriod"].isNull()) + dateOrPeriod_ = value["DateOrPeriod"].asString(); + if(!value["Maker"].isNull()) + maker_ = value["Maker"].asString(); + if(!value["InscriptionsAndMarkings"].isNull()) + inscriptionsAndMarkings_ = value["InscriptionsAndMarkings"].asString(); + if(!value["Subject"].isNull()) + subject_ = value["Subject"].asString(); + if(!value["Features"].isNull()) + features_ = value["Features"].asString(); + if(!value["Reference"].isNull()) + reference_ = value["Reference"].asString(); + +} + +std::string QueryArtExtensionResult::getObjectType()const +{ + return objectType_; +} + +std::string QueryArtExtensionResult::getMaterialsAndTechniques()const +{ + return materialsAndTechniques_; +} + +std::string QueryArtExtensionResult::getInscriptionsAndMarkings()const +{ + return inscriptionsAndMarkings_; +} + +std::string QueryArtExtensionResult::getReference()const +{ + return reference_; +} + +std::string QueryArtExtensionResult::getDateOrPeriod()const +{ + return dateOrPeriod_; +} + +std::string QueryArtExtensionResult::getDimensions()const +{ + return dimensions_; +} + +std::string QueryArtExtensionResult::getTitle()const +{ + return title_; +} + +std::string QueryArtExtensionResult::getFeatures()const +{ + return features_; +} + +std::string QueryArtExtensionResult::getMaker()const +{ + return maker_; +} + +std::string QueryArtExtensionResult::getSubject()const +{ + return subject_; +} + diff --git a/domain/src/model/QueryChangeLogListRequest.cc b/domain/src/model/QueryChangeLogListRequest.cc index a9e360463..0001a7c2d 100644 --- a/domain/src/model/QueryChangeLogListRequest.cc +++ b/domain/src/model/QueryChangeLogListRequest.cc @@ -33,7 +33,7 @@ long QueryChangeLogListRequest::getEndDate()const void QueryChangeLogListRequest::setEndDate(long endDate) { endDate_ = endDate; - setParameter("EndDate", std::to_string(endDate)); + setCoreParameter("EndDate", std::to_string(endDate)); } std::string QueryChangeLogListRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryChangeLogListRequest::getUserClientIp()const void QueryChangeLogListRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryChangeLogListRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string QueryChangeLogListRequest::getDomainName()const void QueryChangeLogListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int QueryChangeLogListRequest::getPageSize()const @@ -66,7 +66,7 @@ int QueryChangeLogListRequest::getPageSize()const void QueryChangeLogListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryChangeLogListRequest::getLang()const @@ -77,7 +77,7 @@ std::string QueryChangeLogListRequest::getLang()const void QueryChangeLogListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int QueryChangeLogListRequest::getPageNum()const @@ -88,7 +88,7 @@ int QueryChangeLogListRequest::getPageNum()const void QueryChangeLogListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } long QueryChangeLogListRequest::getStartDate()const @@ -99,6 +99,6 @@ long QueryChangeLogListRequest::getStartDate()const void QueryChangeLogListRequest::setStartDate(long startDate) { startDate_ = startDate; - setParameter("StartDate", std::to_string(startDate)); + setCoreParameter("StartDate", std::to_string(startDate)); } diff --git a/domain/src/model/QueryChangeLogListResult.cc b/domain/src/model/QueryChangeLogListResult.cc index 48968edc4..7586943d6 100644 --- a/domain/src/model/QueryChangeLogListResult.cc +++ b/domain/src/model/QueryChangeLogListResult.cc @@ -35,10 +35,13 @@ QueryChangeLogListResult::~QueryChangeLogListResult() void QueryChangeLogListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["ChangeLog"]; for (auto value : allData) diff --git a/domain/src/model/QueryContactInfoRequest.cc b/domain/src/model/QueryContactInfoRequest.cc index 4e5956d60..e9377331c 100644 --- a/domain/src/model/QueryContactInfoRequest.cc +++ b/domain/src/model/QueryContactInfoRequest.cc @@ -33,7 +33,7 @@ std::string QueryContactInfoRequest::getContactType()const void QueryContactInfoRequest::setContactType(const std::string& contactType) { contactType_ = contactType; - setParameter("ContactType", contactType); + setCoreParameter("ContactType", contactType); } std::string QueryContactInfoRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryContactInfoRequest::getUserClientIp()const void QueryContactInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryContactInfoRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string QueryContactInfoRequest::getDomainName()const void QueryContactInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryContactInfoRequest::getLang()const @@ -66,6 +66,6 @@ std::string QueryContactInfoRequest::getLang()const void QueryContactInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryContactInfoResult.cc b/domain/src/model/QueryContactInfoResult.cc index 4c21b04cb..75dc7cf5f 100644 --- a/domain/src/model/QueryContactInfoResult.cc +++ b/domain/src/model/QueryContactInfoResult.cc @@ -35,10 +35,13 @@ QueryContactInfoResult::~QueryContactInfoResult() void QueryContactInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CreateDate"].isNull()) createDate_ = value["CreateDate"].asString(); diff --git a/domain/src/model/QueryDSRecordRequest.cc b/domain/src/model/QueryDSRecordRequest.cc new file mode 100644 index 000000000..60bbad094 --- /dev/null +++ b/domain/src/model/QueryDSRecordRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::QueryDSRecordRequest; + +QueryDSRecordRequest::QueryDSRecordRequest() : + RpcServiceRequest("domain", "2018-01-29", "QueryDSRecord") +{} + +QueryDSRecordRequest::~QueryDSRecordRequest() +{} + +std::string QueryDSRecordRequest::getDomainName()const +{ + return domainName_; +} + +void QueryDSRecordRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string QueryDSRecordRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void QueryDSRecordRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string QueryDSRecordRequest::getLang()const +{ + return lang_; +} + +void QueryDSRecordRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/domain/src/model/QueryDSRecordResult.cc b/domain/src/model/QueryDSRecordResult.cc new file mode 100644 index 000000000..5188ae555 --- /dev/null +++ b/domain/src/model/QueryDSRecordResult.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 +#include + +using namespace AlibabaCloud::Domain; +using namespace AlibabaCloud::Domain::Model; + +QueryDSRecordResult::QueryDSRecordResult() : + ServiceResult() +{} + +QueryDSRecordResult::QueryDSRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDSRecordResult::~QueryDSRecordResult() +{} + +void QueryDSRecordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDSRecordList = value["DSRecordList"]["DSRecord"]; + for (auto value : allDSRecordList) + { + DSRecord dSRecordListObject; + if(!value["KeyTag"].isNull()) + dSRecordListObject.keyTag = std::stoi(value["KeyTag"].asString()); + if(!value["Algorithm"].isNull()) + dSRecordListObject.algorithm = std::stoi(value["Algorithm"].asString()); + if(!value["DigestType"].isNull()) + dSRecordListObject.digestType = std::stoi(value["DigestType"].asString()); + if(!value["Digest"].isNull()) + dSRecordListObject.digest = value["Digest"].asString(); + dSRecordList_.push_back(dSRecordListObject); + } + +} + +std::vector QueryDSRecordResult::getDSRecordList()const +{ + return dSRecordList_; +} + diff --git a/domain/src/model/QueryDnsHostRequest.cc b/domain/src/model/QueryDnsHostRequest.cc index eadbebdca..2df0a72cf 100644 --- a/domain/src/model/QueryDnsHostRequest.cc +++ b/domain/src/model/QueryDnsHostRequest.cc @@ -33,7 +33,7 @@ std::string QueryDnsHostRequest::getInstanceId()const void QueryDnsHostRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string QueryDnsHostRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryDnsHostRequest::getUserClientIp()const void QueryDnsHostRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryDnsHostRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryDnsHostRequest::getLang()const void QueryDnsHostRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryDnsHostResult.cc b/domain/src/model/QueryDnsHostResult.cc index 30450f365..54a9d9ea2 100644 --- a/domain/src/model/QueryDnsHostResult.cc +++ b/domain/src/model/QueryDnsHostResult.cc @@ -35,10 +35,13 @@ QueryDnsHostResult::~QueryDnsHostResult() void QueryDnsHostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDnsHostList = value["DnsHostList"]["DnsHost"]; for (auto value : allDnsHostList) diff --git a/domain/src/model/QueryDomainAdminDivisionRequest.cc b/domain/src/model/QueryDomainAdminDivisionRequest.cc index c274a38f9..ed61038c0 100644 --- a/domain/src/model/QueryDomainAdminDivisionRequest.cc +++ b/domain/src/model/QueryDomainAdminDivisionRequest.cc @@ -33,7 +33,7 @@ std::string QueryDomainAdminDivisionRequest::getUserClientIp()const void QueryDomainAdminDivisionRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryDomainAdminDivisionRequest::getLang()const @@ -44,6 +44,6 @@ std::string QueryDomainAdminDivisionRequest::getLang()const void QueryDomainAdminDivisionRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryDomainAdminDivisionResult.cc b/domain/src/model/QueryDomainAdminDivisionResult.cc index b8ef98aa5..d052deac6 100644 --- a/domain/src/model/QueryDomainAdminDivisionResult.cc +++ b/domain/src/model/QueryDomainAdminDivisionResult.cc @@ -35,10 +35,13 @@ QueryDomainAdminDivisionResult::~QueryDomainAdminDivisionResult() void QueryDomainAdminDivisionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAdminDivisions = value["AdminDivisions"]["AdminDivision"]; for (auto value : allAdminDivisions) diff --git a/domain/src/model/QueryDomainByDomainNameRequest.cc b/domain/src/model/QueryDomainByDomainNameRequest.cc new file mode 100644 index 000000000..5f1cfd9b0 --- /dev/null +++ b/domain/src/model/QueryDomainByDomainNameRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::QueryDomainByDomainNameRequest; + +QueryDomainByDomainNameRequest::QueryDomainByDomainNameRequest() : + RpcServiceRequest("domain", "2018-01-29", "QueryDomainByDomainName") +{} + +QueryDomainByDomainNameRequest::~QueryDomainByDomainNameRequest() +{} + +std::string QueryDomainByDomainNameRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void QueryDomainByDomainNameRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string QueryDomainByDomainNameRequest::getDomainName()const +{ + return domainName_; +} + +void QueryDomainByDomainNameRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string QueryDomainByDomainNameRequest::getLang()const +{ + return lang_; +} + +void QueryDomainByDomainNameRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/domain/src/model/QueryDomainByDomainNameResult.cc b/domain/src/model/QueryDomainByDomainNameResult.cc new file mode 100644 index 000000000..20415a10f --- /dev/null +++ b/domain/src/model/QueryDomainByDomainNameResult.cc @@ -0,0 +1,217 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Domain; +using namespace AlibabaCloud::Domain::Model; + +QueryDomainByDomainNameResult::QueryDomainByDomainNameResult() : + ServiceResult() +{} + +QueryDomainByDomainNameResult::QueryDomainByDomainNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDomainByDomainNameResult::~QueryDomainByDomainNameResult() +{} + +void QueryDomainByDomainNameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDnsList = value["DnsList"]["Dns"]; + for (const auto &item : allDnsList) + dnsList_.push_back(item.asString()); + if(!value["UserId"].isNull()) + userId_ = value["UserId"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["RegistrationDate"].isNull()) + registrationDate_ = value["RegistrationDate"].asString(); + if(!value["ExpirationDate"].isNull()) + expirationDate_ = value["ExpirationDate"].asString(); + if(!value["RegistrantOrganization"].isNull()) + registrantOrganization_ = value["RegistrantOrganization"].asString(); + if(!value["RegistrantName"].isNull()) + registrantName_ = value["RegistrantName"].asString(); + if(!value["Email"].isNull()) + email_ = value["Email"].asString(); + if(!value["UpdateProhibitionLock"].isNull()) + updateProhibitionLock_ = value["UpdateProhibitionLock"].asString(); + if(!value["TransferProhibitionLock"].isNull()) + transferProhibitionLock_ = value["TransferProhibitionLock"].asString(); + if(!value["DomainNameProxyService"].isNull()) + domainNameProxyService_ = value["DomainNameProxyService"].asString() == "true"; + if(!value["Premium"].isNull()) + premium_ = value["Premium"].asString() == "true"; + if(!value["EmailVerificationStatus"].isNull()) + emailVerificationStatus_ = std::stoi(value["EmailVerificationStatus"].asString()); + if(!value["EmailVerificationClientHold"].isNull()) + emailVerificationClientHold_ = value["EmailVerificationClientHold"].asString() == "true"; + if(!value["RealNameStatus"].isNull()) + realNameStatus_ = value["RealNameStatus"].asString(); + if(!value["RegistrantUpdatingStatus"].isNull()) + registrantUpdatingStatus_ = value["RegistrantUpdatingStatus"].asString(); + if(!value["TransferOutStatus"].isNull()) + transferOutStatus_ = value["TransferOutStatus"].asString(); + if(!value["RegistrantType"].isNull()) + registrantType_ = value["RegistrantType"].asString(); + if(!value["DomainNameVerificationStatus"].isNull()) + domainNameVerificationStatus_ = value["DomainNameVerificationStatus"].asString(); + if(!value["ZhRegistrantOrganization"].isNull()) + zhRegistrantOrganization_ = value["ZhRegistrantOrganization"].asString(); + if(!value["ZhRegistrantName"].isNull()) + zhRegistrantName_ = value["ZhRegistrantName"].asString(); + if(!value["RegistrationDateLong"].isNull()) + registrationDateLong_ = std::stol(value["RegistrationDateLong"].asString()); + if(!value["ExpirationDateLong"].isNull()) + expirationDateLong_ = std::stol(value["ExpirationDateLong"].asString()); + +} + +std::string QueryDomainByDomainNameResult::getRegistrantType()const +{ + return registrantType_; +} + +std::string QueryDomainByDomainNameResult::getRegistrantUpdatingStatus()const +{ + return registrantUpdatingStatus_; +} + +std::string QueryDomainByDomainNameResult::getEmail()const +{ + return email_; +} + +std::string QueryDomainByDomainNameResult::getRegistrationDate()const +{ + return registrationDate_; +} + +long QueryDomainByDomainNameResult::getRegistrationDateLong()const +{ + return registrationDateLong_; +} + +std::string QueryDomainByDomainNameResult::getDomainName()const +{ + return domainName_; +} + +std::string QueryDomainByDomainNameResult::getInstanceId()const +{ + return instanceId_; +} + +std::string QueryDomainByDomainNameResult::getRealNameStatus()const +{ + return realNameStatus_; +} + +std::string QueryDomainByDomainNameResult::getZhRegistrantName()const +{ + return zhRegistrantName_; +} + +bool QueryDomainByDomainNameResult::getPremium()const +{ + return premium_; +} + +std::string QueryDomainByDomainNameResult::getDomainNameVerificationStatus()const +{ + return domainNameVerificationStatus_; +} + +long QueryDomainByDomainNameResult::getExpirationDateLong()const +{ + return expirationDateLong_; +} + +std::vector QueryDomainByDomainNameResult::getDnsList()const +{ + return dnsList_; +} + +std::string QueryDomainByDomainNameResult::getExpirationDate()const +{ + return expirationDate_; +} + +std::string QueryDomainByDomainNameResult::getRegistrantName()const +{ + return registrantName_; +} + +std::string QueryDomainByDomainNameResult::getTransferOutStatus()const +{ + return transferOutStatus_; +} + +std::string QueryDomainByDomainNameResult::getUserId()const +{ + return userId_; +} + +std::string QueryDomainByDomainNameResult::getZhRegistrantOrganization()const +{ + return zhRegistrantOrganization_; +} + +bool QueryDomainByDomainNameResult::getEmailVerificationClientHold()const +{ + return emailVerificationClientHold_; +} + +std::string QueryDomainByDomainNameResult::getUpdateProhibitionLock()const +{ + return updateProhibitionLock_; +} + +int QueryDomainByDomainNameResult::getEmailVerificationStatus()const +{ + return emailVerificationStatus_; +} + +std::string QueryDomainByDomainNameResult::getRegistrantOrganization()const +{ + return registrantOrganization_; +} + +std::string QueryDomainByDomainNameResult::getTransferProhibitionLock()const +{ + return transferProhibitionLock_; +} + +bool QueryDomainByDomainNameResult::getDomainNameProxyService()const +{ + return domainNameProxyService_; +} + diff --git a/domain/src/model/QueryDomainByInstanceIdRequest.cc b/domain/src/model/QueryDomainByInstanceIdRequest.cc index ba4e60a03..86fde940a 100644 --- a/domain/src/model/QueryDomainByInstanceIdRequest.cc +++ b/domain/src/model/QueryDomainByInstanceIdRequest.cc @@ -33,7 +33,7 @@ std::string QueryDomainByInstanceIdRequest::getInstanceId()const void QueryDomainByInstanceIdRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string QueryDomainByInstanceIdRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryDomainByInstanceIdRequest::getUserClientIp()const void QueryDomainByInstanceIdRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryDomainByInstanceIdRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryDomainByInstanceIdRequest::getLang()const void QueryDomainByInstanceIdRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryDomainByInstanceIdResult.cc b/domain/src/model/QueryDomainByInstanceIdResult.cc index 3229f4f85..33754be8e 100644 --- a/domain/src/model/QueryDomainByInstanceIdResult.cc +++ b/domain/src/model/QueryDomainByInstanceIdResult.cc @@ -35,10 +35,13 @@ QueryDomainByInstanceIdResult::~QueryDomainByInstanceIdResult() void QueryDomainByInstanceIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDnsList = value["DnsList"]["Dns"]; for (const auto &item : allDnsList) diff --git a/domain/src/model/QueryDomainGroupListRequest.cc b/domain/src/model/QueryDomainGroupListRequest.cc index ec3ce8012..d06b5f1b7 100644 --- a/domain/src/model/QueryDomainGroupListRequest.cc +++ b/domain/src/model/QueryDomainGroupListRequest.cc @@ -33,7 +33,7 @@ std::string QueryDomainGroupListRequest::getUserClientIp()const void QueryDomainGroupListRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryDomainGroupListRequest::getDomainGroupName()const @@ -44,7 +44,7 @@ std::string QueryDomainGroupListRequest::getDomainGroupName()const void QueryDomainGroupListRequest::setDomainGroupName(const std::string& domainGroupName) { domainGroupName_ = domainGroupName; - setParameter("DomainGroupName", domainGroupName); + setCoreParameter("DomainGroupName", domainGroupName); } std::string QueryDomainGroupListRequest::getLang()const @@ -55,7 +55,7 @@ std::string QueryDomainGroupListRequest::getLang()const void QueryDomainGroupListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool QueryDomainGroupListRequest::getShowDeletingGroup()const @@ -66,6 +66,6 @@ bool QueryDomainGroupListRequest::getShowDeletingGroup()const void QueryDomainGroupListRequest::setShowDeletingGroup(bool showDeletingGroup) { showDeletingGroup_ = showDeletingGroup; - setParameter("ShowDeletingGroup", std::to_string(showDeletingGroup)); + setCoreParameter("ShowDeletingGroup", showDeletingGroup ? "true" : "false"); } diff --git a/domain/src/model/QueryDomainGroupListResult.cc b/domain/src/model/QueryDomainGroupListResult.cc index dc1836b5b..ab110fad7 100644 --- a/domain/src/model/QueryDomainGroupListResult.cc +++ b/domain/src/model/QueryDomainGroupListResult.cc @@ -35,10 +35,13 @@ QueryDomainGroupListResult::~QueryDomainGroupListResult() void QueryDomainGroupListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DomainGroup"]; for (auto value : allData) diff --git a/domain/src/model/QueryDomainListRequest.cc b/domain/src/model/QueryDomainListRequest.cc index 67704db50..9c185f43d 100644 --- a/domain/src/model/QueryDomainListRequest.cc +++ b/domain/src/model/QueryDomainListRequest.cc @@ -33,7 +33,7 @@ long QueryDomainListRequest::getEndExpirationDate()const void QueryDomainListRequest::setEndExpirationDate(long endExpirationDate) { endExpirationDate_ = endExpirationDate; - setParameter("EndExpirationDate", std::to_string(endExpirationDate)); + setCoreParameter("EndExpirationDate", std::to_string(endExpirationDate)); } std::string QueryDomainListRequest::getProductDomainType()const @@ -44,7 +44,7 @@ std::string QueryDomainListRequest::getProductDomainType()const void QueryDomainListRequest::setProductDomainType(const std::string& productDomainType) { productDomainType_ = productDomainType; - setParameter("ProductDomainType", productDomainType); + setCoreParameter("ProductDomainType", productDomainType); } std::string QueryDomainListRequest::getOrderKeyType()const @@ -55,7 +55,7 @@ std::string QueryDomainListRequest::getOrderKeyType()const void QueryDomainListRequest::setOrderKeyType(const std::string& orderKeyType) { orderKeyType_ = orderKeyType; - setParameter("OrderKeyType", orderKeyType); + setCoreParameter("OrderKeyType", orderKeyType); } std::string QueryDomainListRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string QueryDomainListRequest::getDomainName()const void QueryDomainListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long QueryDomainListRequest::getStartExpirationDate()const @@ -77,7 +77,7 @@ long QueryDomainListRequest::getStartExpirationDate()const void QueryDomainListRequest::setStartExpirationDate(long startExpirationDate) { startExpirationDate_ = startExpirationDate; - setParameter("StartExpirationDate", std::to_string(startExpirationDate)); + setCoreParameter("StartExpirationDate", std::to_string(startExpirationDate)); } int QueryDomainListRequest::getPageNum()const @@ -88,7 +88,7 @@ int QueryDomainListRequest::getPageNum()const void QueryDomainListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string QueryDomainListRequest::getOrderByType()const @@ -99,7 +99,7 @@ std::string QueryDomainListRequest::getOrderByType()const void QueryDomainListRequest::setOrderByType(const std::string& orderByType) { orderByType_ = orderByType; - setParameter("OrderByType", orderByType); + setCoreParameter("OrderByType", orderByType); } std::string QueryDomainListRequest::getDomainGroupId()const @@ -110,7 +110,7 @@ std::string QueryDomainListRequest::getDomainGroupId()const void QueryDomainListRequest::setDomainGroupId(const std::string& domainGroupId) { domainGroupId_ = domainGroupId; - setParameter("DomainGroupId", domainGroupId); + setCoreParameter("DomainGroupId", domainGroupId); } long QueryDomainListRequest::getEndRegistrationDate()const @@ -121,7 +121,7 @@ long QueryDomainListRequest::getEndRegistrationDate()const void QueryDomainListRequest::setEndRegistrationDate(long endRegistrationDate) { endRegistrationDate_ = endRegistrationDate; - setParameter("EndRegistrationDate", std::to_string(endRegistrationDate)); + setCoreParameter("EndRegistrationDate", std::to_string(endRegistrationDate)); } std::string QueryDomainListRequest::getUserClientIp()const @@ -132,7 +132,7 @@ std::string QueryDomainListRequest::getUserClientIp()const void QueryDomainListRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int QueryDomainListRequest::getPageSize()const @@ -143,7 +143,7 @@ int QueryDomainListRequest::getPageSize()const void QueryDomainListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryDomainListRequest::getLang()const @@ -154,7 +154,7 @@ std::string QueryDomainListRequest::getLang()const void QueryDomainListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string QueryDomainListRequest::getQueryType()const @@ -165,7 +165,7 @@ std::string QueryDomainListRequest::getQueryType()const void QueryDomainListRequest::setQueryType(const std::string& queryType) { queryType_ = queryType; - setParameter("QueryType", queryType); + setCoreParameter("QueryType", queryType); } long QueryDomainListRequest::getStartRegistrationDate()const @@ -176,6 +176,6 @@ long QueryDomainListRequest::getStartRegistrationDate()const void QueryDomainListRequest::setStartRegistrationDate(long startRegistrationDate) { startRegistrationDate_ = startRegistrationDate; - setParameter("StartRegistrationDate", std::to_string(startRegistrationDate)); + setCoreParameter("StartRegistrationDate", std::to_string(startRegistrationDate)); } diff --git a/domain/src/model/QueryDomainListResult.cc b/domain/src/model/QueryDomainListResult.cc index f90d4af25..f62c0feb4 100644 --- a/domain/src/model/QueryDomainListResult.cc +++ b/domain/src/model/QueryDomainListResult.cc @@ -35,10 +35,13 @@ QueryDomainListResult::~QueryDomainListResult() void QueryDomainListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Domain"]; for (auto value : allData) diff --git a/domain/src/model/QueryDomainRealNameVerificationInfoRequest.cc b/domain/src/model/QueryDomainRealNameVerificationInfoRequest.cc index c059d27e8..492e6300a 100644 --- a/domain/src/model/QueryDomainRealNameVerificationInfoRequest.cc +++ b/domain/src/model/QueryDomainRealNameVerificationInfoRequest.cc @@ -33,7 +33,7 @@ bool QueryDomainRealNameVerificationInfoRequest::getFetchImage()const void QueryDomainRealNameVerificationInfoRequest::setFetchImage(bool fetchImage) { fetchImage_ = fetchImage; - setParameter("FetchImage", std::to_string(fetchImage)); + setCoreParameter("FetchImage", fetchImage ? "true" : "false"); } std::string QueryDomainRealNameVerificationInfoRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryDomainRealNameVerificationInfoRequest::getUserClientIp()const void QueryDomainRealNameVerificationInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryDomainRealNameVerificationInfoRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string QueryDomainRealNameVerificationInfoRequest::getDomainName()const void QueryDomainRealNameVerificationInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryDomainRealNameVerificationInfoRequest::getLang()const @@ -66,6 +66,6 @@ std::string QueryDomainRealNameVerificationInfoRequest::getLang()const void QueryDomainRealNameVerificationInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryDomainRealNameVerificationInfoResult.cc b/domain/src/model/QueryDomainRealNameVerificationInfoResult.cc index 8b36ae849..52934188d 100644 --- a/domain/src/model/QueryDomainRealNameVerificationInfoResult.cc +++ b/domain/src/model/QueryDomainRealNameVerificationInfoResult.cc @@ -35,10 +35,13 @@ QueryDomainRealNameVerificationInfoResult::~QueryDomainRealNameVerificationInfoR void QueryDomainRealNameVerificationInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SubmissionDate"].isNull()) submissionDate_ = value["SubmissionDate"].asString(); diff --git a/domain/src/model/QueryDomainSuffixRequest.cc b/domain/src/model/QueryDomainSuffixRequest.cc index 74a3d2d67..f9e25a177 100644 --- a/domain/src/model/QueryDomainSuffixRequest.cc +++ b/domain/src/model/QueryDomainSuffixRequest.cc @@ -33,7 +33,7 @@ std::string QueryDomainSuffixRequest::getUserClientIp()const void QueryDomainSuffixRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryDomainSuffixRequest::getLang()const @@ -44,6 +44,6 @@ std::string QueryDomainSuffixRequest::getLang()const void QueryDomainSuffixRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryDomainSuffixResult.cc b/domain/src/model/QueryDomainSuffixResult.cc index b9b612b20..b4b3b4be6 100644 --- a/domain/src/model/QueryDomainSuffixResult.cc +++ b/domain/src/model/QueryDomainSuffixResult.cc @@ -35,10 +35,13 @@ QueryDomainSuffixResult::~QueryDomainSuffixResult() void QueryDomainSuffixResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuffixList = value["SuffixList"]["Suffix"]; for (const auto &item : allSuffixList) diff --git a/domain/src/model/QueryEmailVerificationRequest.cc b/domain/src/model/QueryEmailVerificationRequest.cc index e3468efe0..9bf947795 100644 --- a/domain/src/model/QueryEmailVerificationRequest.cc +++ b/domain/src/model/QueryEmailVerificationRequest.cc @@ -33,7 +33,7 @@ std::string QueryEmailVerificationRequest::getUserClientIp()const void QueryEmailVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryEmailVerificationRequest::getLang()const @@ -44,7 +44,7 @@ std::string QueryEmailVerificationRequest::getLang()const void QueryEmailVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string QueryEmailVerificationRequest::getEmail()const @@ -55,6 +55,6 @@ std::string QueryEmailVerificationRequest::getEmail()const void QueryEmailVerificationRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } diff --git a/domain/src/model/QueryEmailVerificationResult.cc b/domain/src/model/QueryEmailVerificationResult.cc index 1b8e31ec2..3f8b1e486 100644 --- a/domain/src/model/QueryEmailVerificationResult.cc +++ b/domain/src/model/QueryEmailVerificationResult.cc @@ -35,10 +35,13 @@ QueryEmailVerificationResult::~QueryEmailVerificationResult() void QueryEmailVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["GmtCreate"].isNull()) gmtCreate_ = value["GmtCreate"].asString(); diff --git a/domain/src/model/QueryEnsAssociationRequest.cc b/domain/src/model/QueryEnsAssociationRequest.cc index c498a59d9..9b430e2d3 100644 --- a/domain/src/model/QueryEnsAssociationRequest.cc +++ b/domain/src/model/QueryEnsAssociationRequest.cc @@ -33,7 +33,7 @@ std::string QueryEnsAssociationRequest::getDomainName()const void QueryEnsAssociationRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryEnsAssociationRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryEnsAssociationRequest::getUserClientIp()const void QueryEnsAssociationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryEnsAssociationRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryEnsAssociationRequest::getLang()const void QueryEnsAssociationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryEnsAssociationResult.cc b/domain/src/model/QueryEnsAssociationResult.cc index b98645fbf..e42b0893a 100644 --- a/domain/src/model/QueryEnsAssociationResult.cc +++ b/domain/src/model/QueryEnsAssociationResult.cc @@ -35,10 +35,13 @@ QueryEnsAssociationResult::~QueryEnsAssociationResult() void QueryEnsAssociationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Address"].isNull()) address_ = value["Address"].asString(); diff --git a/domain/src/model/QueryFailReasonForDomainRealNameVerificationRequest.cc b/domain/src/model/QueryFailReasonForDomainRealNameVerificationRequest.cc index 4064ea64f..80d401b65 100644 --- a/domain/src/model/QueryFailReasonForDomainRealNameVerificationRequest.cc +++ b/domain/src/model/QueryFailReasonForDomainRealNameVerificationRequest.cc @@ -33,7 +33,7 @@ std::string QueryFailReasonForDomainRealNameVerificationRequest::getRealNameVeri void QueryFailReasonForDomainRealNameVerificationRequest::setRealNameVerificationAction(const std::string& realNameVerificationAction) { realNameVerificationAction_ = realNameVerificationAction; - setParameter("RealNameVerificationAction", realNameVerificationAction); + setCoreParameter("RealNameVerificationAction", realNameVerificationAction); } std::string QueryFailReasonForDomainRealNameVerificationRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryFailReasonForDomainRealNameVerificationRequest::getUserClientIp void QueryFailReasonForDomainRealNameVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryFailReasonForDomainRealNameVerificationRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string QueryFailReasonForDomainRealNameVerificationRequest::getDomainName() void QueryFailReasonForDomainRealNameVerificationRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryFailReasonForDomainRealNameVerificationRequest::getLang()const @@ -66,6 +66,6 @@ std::string QueryFailReasonForDomainRealNameVerificationRequest::getLang()const void QueryFailReasonForDomainRealNameVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryFailReasonForDomainRealNameVerificationResult.cc b/domain/src/model/QueryFailReasonForDomainRealNameVerificationResult.cc index 4dd2e4605..dfa316e26 100644 --- a/domain/src/model/QueryFailReasonForDomainRealNameVerificationResult.cc +++ b/domain/src/model/QueryFailReasonForDomainRealNameVerificationResult.cc @@ -35,10 +35,13 @@ QueryFailReasonForDomainRealNameVerificationResult::~QueryFailReasonForDomainRea void QueryFailReasonForDomainRealNameVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["FailRecord"]; for (auto value : allData) diff --git a/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationRequest.cc b/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationRequest.cc index a5ee3dffd..78994c1d8 100644 --- a/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationRequest.cc +++ b/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationRequest.cc @@ -33,7 +33,7 @@ std::string QueryFailReasonForRegistrantProfileRealNameVerificationRequest::getU void QueryFailReasonForRegistrantProfileRealNameVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long QueryFailReasonForRegistrantProfileRealNameVerificationRequest::getRegistrantProfileID()const @@ -44,7 +44,7 @@ long QueryFailReasonForRegistrantProfileRealNameVerificationRequest::getRegistra void QueryFailReasonForRegistrantProfileRealNameVerificationRequest::setRegistrantProfileID(long registrantProfileID) { registrantProfileID_ = registrantProfileID; - setParameter("RegistrantProfileID", std::to_string(registrantProfileID)); + setCoreParameter("RegistrantProfileID", std::to_string(registrantProfileID)); } std::string QueryFailReasonForRegistrantProfileRealNameVerificationRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryFailReasonForRegistrantProfileRealNameVerificationRequest::getL void QueryFailReasonForRegistrantProfileRealNameVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationResult.cc b/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationResult.cc index 8cc486911..d25c56605 100644 --- a/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationResult.cc +++ b/domain/src/model/QueryFailReasonForRegistrantProfileRealNameVerificationResult.cc @@ -35,10 +35,13 @@ QueryFailReasonForRegistrantProfileRealNameVerificationResult::~QueryFailReasonF void QueryFailReasonForRegistrantProfileRealNameVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["FailRecord"]; for (auto value : allData) diff --git a/domain/src/model/QueryFailingReasonListForQualificationRequest.cc b/domain/src/model/QueryFailingReasonListForQualificationRequest.cc index 9cb34f099..e1c2886aa 100644 --- a/domain/src/model/QueryFailingReasonListForQualificationRequest.cc +++ b/domain/src/model/QueryFailingReasonListForQualificationRequest.cc @@ -33,7 +33,7 @@ std::string QueryFailingReasonListForQualificationRequest::getInstanceId()const void QueryFailingReasonListForQualificationRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string QueryFailingReasonListForQualificationRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryFailingReasonListForQualificationRequest::getUserClientIp()cons void QueryFailingReasonListForQualificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int QueryFailingReasonListForQualificationRequest::getLimit()const @@ -55,7 +55,7 @@ int QueryFailingReasonListForQualificationRequest::getLimit()const void QueryFailingReasonListForQualificationRequest::setLimit(int limit) { limit_ = limit; - setParameter("Limit", std::to_string(limit)); + setCoreParameter("Limit", std::to_string(limit)); } std::string QueryFailingReasonListForQualificationRequest::getLang()const @@ -66,7 +66,7 @@ std::string QueryFailingReasonListForQualificationRequest::getLang()const void QueryFailingReasonListForQualificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string QueryFailingReasonListForQualificationRequest::getQualificationType()const @@ -77,6 +77,6 @@ std::string QueryFailingReasonListForQualificationRequest::getQualificationType( void QueryFailingReasonListForQualificationRequest::setQualificationType(const std::string& qualificationType) { qualificationType_ = qualificationType; - setParameter("QualificationType", qualificationType); + setCoreParameter("QualificationType", qualificationType); } diff --git a/domain/src/model/QueryFailingReasonListForQualificationResult.cc b/domain/src/model/QueryFailingReasonListForQualificationResult.cc index ce96cf287..c08b200d8 100644 --- a/domain/src/model/QueryFailingReasonListForQualificationResult.cc +++ b/domain/src/model/QueryFailingReasonListForQualificationResult.cc @@ -35,10 +35,13 @@ QueryFailingReasonListForQualificationResult::~QueryFailingReasonListForQualific void QueryFailingReasonListForQualificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["FailRecord"]; for (auto value : allData) diff --git a/domain/src/model/QueryLocalEnsAssociationRequest.cc b/domain/src/model/QueryLocalEnsAssociationRequest.cc index a0cd13dd5..43c949589 100644 --- a/domain/src/model/QueryLocalEnsAssociationRequest.cc +++ b/domain/src/model/QueryLocalEnsAssociationRequest.cc @@ -33,7 +33,7 @@ std::string QueryLocalEnsAssociationRequest::getUserClientIp()const void QueryLocalEnsAssociationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryLocalEnsAssociationRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string QueryLocalEnsAssociationRequest::getDomainName()const void QueryLocalEnsAssociationRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryLocalEnsAssociationRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryLocalEnsAssociationRequest::getLang()const void QueryLocalEnsAssociationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryLocalEnsAssociationResult.cc b/domain/src/model/QueryLocalEnsAssociationResult.cc index 181370098..eeacf6be5 100644 --- a/domain/src/model/QueryLocalEnsAssociationResult.cc +++ b/domain/src/model/QueryLocalEnsAssociationResult.cc @@ -35,10 +35,13 @@ QueryLocalEnsAssociationResult::~QueryLocalEnsAssociationResult() void QueryLocalEnsAssociationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Address"].isNull()) address_ = value["Address"].asString(); diff --git a/domain/src/model/QueryQualificationDetailRequest.cc b/domain/src/model/QueryQualificationDetailRequest.cc index e2f4c25d0..9bdadab0e 100644 --- a/domain/src/model/QueryQualificationDetailRequest.cc +++ b/domain/src/model/QueryQualificationDetailRequest.cc @@ -33,7 +33,7 @@ std::string QueryQualificationDetailRequest::getInstanceId()const void QueryQualificationDetailRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string QueryQualificationDetailRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryQualificationDetailRequest::getUserClientIp()const void QueryQualificationDetailRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryQualificationDetailRequest::getLang()const @@ -55,7 +55,7 @@ std::string QueryQualificationDetailRequest::getLang()const void QueryQualificationDetailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string QueryQualificationDetailRequest::getQualificationType()const @@ -66,6 +66,6 @@ std::string QueryQualificationDetailRequest::getQualificationType()const void QueryQualificationDetailRequest::setQualificationType(const std::string& qualificationType) { qualificationType_ = qualificationType; - setParameter("QualificationType", qualificationType); + setCoreParameter("QualificationType", qualificationType); } diff --git a/domain/src/model/QueryQualificationDetailResult.cc b/domain/src/model/QueryQualificationDetailResult.cc index 7ae0c1ff6..c55212810 100644 --- a/domain/src/model/QueryQualificationDetailResult.cc +++ b/domain/src/model/QueryQualificationDetailResult.cc @@ -35,10 +35,13 @@ QueryQualificationDetailResult::~QueryQualificationDetailResult() void QueryQualificationDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCredentials = value["Credentials"]["QualificationCredential"]; for (auto value : allCredentials) @@ -50,8 +53,6 @@ void QueryQualificationDetailResult::parse(const std::string &payload) credentialsObject.credentialType = value["CredentialType"].asString(); if(!value["CredentialUrl"].isNull()) credentialsObject.credentialUrl = value["CredentialUrl"].asString(); - if(!value["Params"].isNull()) - credentialsObject.params = value["Params"].asString(); credentials_.push_back(credentialsObject); } if(!value["TrackId"].isNull()) diff --git a/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoRequest.cc b/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoRequest.cc index 30a2b6444..554839111 100644 --- a/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoRequest.cc +++ b/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoRequest.cc @@ -33,7 +33,7 @@ bool QueryRegistrantProfileRealNameVerificationInfoRequest::getFetchImage()const void QueryRegistrantProfileRealNameVerificationInfoRequest::setFetchImage(bool fetchImage) { fetchImage_ = fetchImage; - setParameter("FetchImage", std::to_string(fetchImage)); + setCoreParameter("FetchImage", fetchImage ? "true" : "false"); } std::string QueryRegistrantProfileRealNameVerificationInfoRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryRegistrantProfileRealNameVerificationInfoRequest::getUserClient void QueryRegistrantProfileRealNameVerificationInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long QueryRegistrantProfileRealNameVerificationInfoRequest::getRegistrantProfileId()const @@ -55,7 +55,7 @@ long QueryRegistrantProfileRealNameVerificationInfoRequest::getRegistrantProfile void QueryRegistrantProfileRealNameVerificationInfoRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } std::string QueryRegistrantProfileRealNameVerificationInfoRequest::getLang()const @@ -66,6 +66,6 @@ std::string QueryRegistrantProfileRealNameVerificationInfoRequest::getLang()cons void QueryRegistrantProfileRealNameVerificationInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoResult.cc b/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoResult.cc index 9eac03ae7..57f003103 100644 --- a/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoResult.cc +++ b/domain/src/model/QueryRegistrantProfileRealNameVerificationInfoResult.cc @@ -35,10 +35,13 @@ QueryRegistrantProfileRealNameVerificationInfoResult::~QueryRegistrantProfileRea void QueryRegistrantProfileRealNameVerificationInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SubmissionDate"].isNull()) submissionDate_ = value["SubmissionDate"].asString(); diff --git a/domain/src/model/QueryRegistrantProfilesRequest.cc b/domain/src/model/QueryRegistrantProfilesRequest.cc index d20925b1c..f0086a28b 100644 --- a/domain/src/model/QueryRegistrantProfilesRequest.cc +++ b/domain/src/model/QueryRegistrantProfilesRequest.cc @@ -33,7 +33,7 @@ std::string QueryRegistrantProfilesRequest::getRegistrantOrganization()const void QueryRegistrantProfilesRequest::setRegistrantOrganization(const std::string& registrantOrganization) { registrantOrganization_ = registrantOrganization; - setParameter("RegistrantOrganization", registrantOrganization); + setCoreParameter("RegistrantOrganization", registrantOrganization); } std::string QueryRegistrantProfilesRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryRegistrantProfilesRequest::getUserClientIp()const void QueryRegistrantProfilesRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long QueryRegistrantProfilesRequest::getRegistrantProfileId()const @@ -55,7 +55,7 @@ long QueryRegistrantProfilesRequest::getRegistrantProfileId()const void QueryRegistrantProfilesRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } int QueryRegistrantProfilesRequest::getPageSize()const @@ -66,7 +66,7 @@ int QueryRegistrantProfilesRequest::getPageSize()const void QueryRegistrantProfilesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryRegistrantProfilesRequest::getRegistrantType()const @@ -77,7 +77,18 @@ std::string QueryRegistrantProfilesRequest::getRegistrantType()const void QueryRegistrantProfilesRequest::setRegistrantType(const std::string& registrantType) { registrantType_ = registrantType; - setParameter("RegistrantType", registrantType); + setCoreParameter("RegistrantType", registrantType); +} + +std::string QueryRegistrantProfilesRequest::getRegistrantProfileType()const +{ + return registrantProfileType_; +} + +void QueryRegistrantProfilesRequest::setRegistrantProfileType(const std::string& registrantProfileType) +{ + registrantProfileType_ = registrantProfileType; + setCoreParameter("RegistrantProfileType", registrantProfileType); } std::string QueryRegistrantProfilesRequest::getRealNameStatus()const @@ -88,7 +99,7 @@ std::string QueryRegistrantProfilesRequest::getRealNameStatus()const void QueryRegistrantProfilesRequest::setRealNameStatus(const std::string& realNameStatus) { realNameStatus_ = realNameStatus; - setParameter("RealNameStatus", realNameStatus); + setCoreParameter("RealNameStatus", realNameStatus); } std::string QueryRegistrantProfilesRequest::getLang()const @@ -99,7 +110,7 @@ std::string QueryRegistrantProfilesRequest::getLang()const void QueryRegistrantProfilesRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int QueryRegistrantProfilesRequest::getPageNum()const @@ -110,7 +121,7 @@ int QueryRegistrantProfilesRequest::getPageNum()const void QueryRegistrantProfilesRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } bool QueryRegistrantProfilesRequest::getDefaultRegistrantProfile()const @@ -121,7 +132,18 @@ bool QueryRegistrantProfilesRequest::getDefaultRegistrantProfile()const void QueryRegistrantProfilesRequest::setDefaultRegistrantProfile(bool defaultRegistrantProfile) { defaultRegistrantProfile_ = defaultRegistrantProfile; - setParameter("DefaultRegistrantProfile", std::to_string(defaultRegistrantProfile)); + setCoreParameter("DefaultRegistrantProfile", defaultRegistrantProfile ? "true" : "false"); +} + +std::string QueryRegistrantProfilesRequest::getEmail()const +{ + return email_; +} + +void QueryRegistrantProfilesRequest::setEmail(const std::string& email) +{ + email_ = email; + setCoreParameter("Email", email); } std::string QueryRegistrantProfilesRequest::getZhRegistrantOrganization()const @@ -132,6 +154,6 @@ std::string QueryRegistrantProfilesRequest::getZhRegistrantOrganization()const void QueryRegistrantProfilesRequest::setZhRegistrantOrganization(const std::string& zhRegistrantOrganization) { zhRegistrantOrganization_ = zhRegistrantOrganization; - setParameter("ZhRegistrantOrganization", zhRegistrantOrganization); + setCoreParameter("ZhRegistrantOrganization", zhRegistrantOrganization); } diff --git a/domain/src/model/QueryRegistrantProfilesResult.cc b/domain/src/model/QueryRegistrantProfilesResult.cc index 816c999b7..5983bdfdd 100644 --- a/domain/src/model/QueryRegistrantProfilesResult.cc +++ b/domain/src/model/QueryRegistrantProfilesResult.cc @@ -35,10 +35,13 @@ QueryRegistrantProfilesResult::~QueryRegistrantProfilesResult() void QueryRegistrantProfilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegistrantProfiles = value["RegistrantProfiles"]["RegistrantProfile"]; for (auto value : allRegistrantProfiles) @@ -90,6 +93,8 @@ void QueryRegistrantProfilesResult::parse(const std::string &payload) registrantProfilesObject.registrantType = value["RegistrantType"].asString(); if(!value["RealNameStatus"].isNull()) registrantProfilesObject.realNameStatus = value["RealNameStatus"].asString(); + if(!value["RegistrantProfileType"].isNull()) + registrantProfilesObject.registrantProfileType = value["RegistrantProfileType"].asString(); registrantProfiles_.push_back(registrantProfilesObject); } if(!value["TotalItemNum"].isNull()) diff --git a/domain/src/model/QueryServerLockRequest.cc b/domain/src/model/QueryServerLockRequest.cc index 60a7a6131..8789a4a48 100644 --- a/domain/src/model/QueryServerLockRequest.cc +++ b/domain/src/model/QueryServerLockRequest.cc @@ -33,7 +33,7 @@ std::string QueryServerLockRequest::getInstanceId()const void QueryServerLockRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string QueryServerLockRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryServerLockRequest::getUserClientIp()const void QueryServerLockRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryServerLockRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryServerLockRequest::getLang()const void QueryServerLockRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryServerLockResult.cc b/domain/src/model/QueryServerLockResult.cc index 8987edf93..820e3541c 100644 --- a/domain/src/model/QueryServerLockResult.cc +++ b/domain/src/model/QueryServerLockResult.cc @@ -35,10 +35,13 @@ QueryServerLockResult::~QueryServerLockResult() void QueryServerLockResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["GmtCreate"].isNull()) gmtCreate_ = value["GmtCreate"].asString(); diff --git a/domain/src/model/QueryTaskDetailHistoryRequest.cc b/domain/src/model/QueryTaskDetailHistoryRequest.cc index a5b9d0b1e..d338a6ef2 100644 --- a/domain/src/model/QueryTaskDetailHistoryRequest.cc +++ b/domain/src/model/QueryTaskDetailHistoryRequest.cc @@ -33,7 +33,7 @@ int QueryTaskDetailHistoryRequest::getTaskStatus()const void QueryTaskDetailHistoryRequest::setTaskStatus(int taskStatus) { taskStatus_ = taskStatus; - setParameter("TaskStatus", std::to_string(taskStatus)); + setCoreParameter("TaskStatus", std::to_string(taskStatus)); } std::string QueryTaskDetailHistoryRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryTaskDetailHistoryRequest::getUserClientIp()const void QueryTaskDetailHistoryRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryTaskDetailHistoryRequest::getTaskNo()const @@ -55,7 +55,7 @@ std::string QueryTaskDetailHistoryRequest::getTaskNo()const void QueryTaskDetailHistoryRequest::setTaskNo(const std::string& taskNo) { taskNo_ = taskNo; - setParameter("TaskNo", taskNo); + setCoreParameter("TaskNo", taskNo); } std::string QueryTaskDetailHistoryRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string QueryTaskDetailHistoryRequest::getDomainName()const void QueryTaskDetailHistoryRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int QueryTaskDetailHistoryRequest::getPageSize()const @@ -77,7 +77,7 @@ int QueryTaskDetailHistoryRequest::getPageSize()const void QueryTaskDetailHistoryRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryTaskDetailHistoryRequest::getTaskDetailNoCursor()const @@ -88,7 +88,7 @@ std::string QueryTaskDetailHistoryRequest::getTaskDetailNoCursor()const void QueryTaskDetailHistoryRequest::setTaskDetailNoCursor(const std::string& taskDetailNoCursor) { taskDetailNoCursor_ = taskDetailNoCursor; - setParameter("TaskDetailNoCursor", taskDetailNoCursor); + setCoreParameter("TaskDetailNoCursor", taskDetailNoCursor); } std::string QueryTaskDetailHistoryRequest::getLang()const @@ -99,7 +99,7 @@ std::string QueryTaskDetailHistoryRequest::getLang()const void QueryTaskDetailHistoryRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string QueryTaskDetailHistoryRequest::getDomainNameCursor()const @@ -110,6 +110,6 @@ std::string QueryTaskDetailHistoryRequest::getDomainNameCursor()const void QueryTaskDetailHistoryRequest::setDomainNameCursor(const std::string& domainNameCursor) { domainNameCursor_ = domainNameCursor; - setParameter("DomainNameCursor", domainNameCursor); + setCoreParameter("DomainNameCursor", domainNameCursor); } diff --git a/domain/src/model/QueryTaskDetailHistoryResult.cc b/domain/src/model/QueryTaskDetailHistoryResult.cc index 869911ec4..d63840613 100644 --- a/domain/src/model/QueryTaskDetailHistoryResult.cc +++ b/domain/src/model/QueryTaskDetailHistoryResult.cc @@ -35,10 +35,13 @@ QueryTaskDetailHistoryResult::~QueryTaskDetailHistoryResult() void QueryTaskDetailHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allObjects = value["Objects"]["TaskDetailHistory"]; for (auto value : allObjects) diff --git a/domain/src/model/QueryTaskDetailListRequest.cc b/domain/src/model/QueryTaskDetailListRequest.cc index aa291bea5..3efa2fd15 100644 --- a/domain/src/model/QueryTaskDetailListRequest.cc +++ b/domain/src/model/QueryTaskDetailListRequest.cc @@ -33,7 +33,7 @@ int QueryTaskDetailListRequest::getTaskStatus()const void QueryTaskDetailListRequest::setTaskStatus(int taskStatus) { taskStatus_ = taskStatus; - setParameter("TaskStatus", std::to_string(taskStatus)); + setCoreParameter("TaskStatus", std::to_string(taskStatus)); } std::string QueryTaskDetailListRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string QueryTaskDetailListRequest::getInstanceId()const void QueryTaskDetailListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string QueryTaskDetailListRequest::getTaskNo()const @@ -55,7 +55,7 @@ std::string QueryTaskDetailListRequest::getTaskNo()const void QueryTaskDetailListRequest::setTaskNo(const std::string& taskNo) { taskNo_ = taskNo; - setParameter("TaskNo", taskNo); + setCoreParameter("TaskNo", taskNo); } std::string QueryTaskDetailListRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string QueryTaskDetailListRequest::getDomainName()const void QueryTaskDetailListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryTaskDetailListRequest::getUserClientIp()const @@ -77,7 +77,7 @@ std::string QueryTaskDetailListRequest::getUserClientIp()const void QueryTaskDetailListRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int QueryTaskDetailListRequest::getPageSize()const @@ -88,7 +88,7 @@ int QueryTaskDetailListRequest::getPageSize()const void QueryTaskDetailListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryTaskDetailListRequest::getLang()const @@ -99,7 +99,7 @@ std::string QueryTaskDetailListRequest::getLang()const void QueryTaskDetailListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int QueryTaskDetailListRequest::getPageNum()const @@ -110,6 +110,6 @@ int QueryTaskDetailListRequest::getPageNum()const void QueryTaskDetailListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/domain/src/model/QueryTaskDetailListResult.cc b/domain/src/model/QueryTaskDetailListResult.cc index ac442af39..17b66a17e 100644 --- a/domain/src/model/QueryTaskDetailListResult.cc +++ b/domain/src/model/QueryTaskDetailListResult.cc @@ -35,10 +35,13 @@ QueryTaskDetailListResult::~QueryTaskDetailListResult() void QueryTaskDetailListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TaskDetail"]; for (auto value : allData) diff --git a/domain/src/model/QueryTaskInfoHistoryRequest.cc b/domain/src/model/QueryTaskInfoHistoryRequest.cc index 6e13b5c58..a58ddb002 100644 --- a/domain/src/model/QueryTaskInfoHistoryRequest.cc +++ b/domain/src/model/QueryTaskInfoHistoryRequest.cc @@ -33,7 +33,7 @@ long QueryTaskInfoHistoryRequest::getBeginCreateTime()const void QueryTaskInfoHistoryRequest::setBeginCreateTime(long beginCreateTime) { beginCreateTime_ = beginCreateTime; - setParameter("BeginCreateTime", std::to_string(beginCreateTime)); + setCoreParameter("BeginCreateTime", std::to_string(beginCreateTime)); } long QueryTaskInfoHistoryRequest::getEndCreateTime()const @@ -44,7 +44,7 @@ long QueryTaskInfoHistoryRequest::getEndCreateTime()const void QueryTaskInfoHistoryRequest::setEndCreateTime(long endCreateTime) { endCreateTime_ = endCreateTime; - setParameter("EndCreateTime", std::to_string(endCreateTime)); + setCoreParameter("EndCreateTime", std::to_string(endCreateTime)); } std::string QueryTaskInfoHistoryRequest::getTaskNoCursor()const @@ -55,7 +55,7 @@ std::string QueryTaskInfoHistoryRequest::getTaskNoCursor()const void QueryTaskInfoHistoryRequest::setTaskNoCursor(const std::string& taskNoCursor) { taskNoCursor_ = taskNoCursor; - setParameter("TaskNoCursor", taskNoCursor); + setCoreParameter("TaskNoCursor", taskNoCursor); } std::string QueryTaskInfoHistoryRequest::getUserClientIp()const @@ -66,7 +66,7 @@ std::string QueryTaskInfoHistoryRequest::getUserClientIp()const void QueryTaskInfoHistoryRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int QueryTaskInfoHistoryRequest::getPageSize()const @@ -77,7 +77,7 @@ int QueryTaskInfoHistoryRequest::getPageSize()const void QueryTaskInfoHistoryRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryTaskInfoHistoryRequest::getLang()const @@ -88,7 +88,7 @@ std::string QueryTaskInfoHistoryRequest::getLang()const void QueryTaskInfoHistoryRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long QueryTaskInfoHistoryRequest::getCreateTimeCursor()const @@ -99,6 +99,6 @@ long QueryTaskInfoHistoryRequest::getCreateTimeCursor()const void QueryTaskInfoHistoryRequest::setCreateTimeCursor(long createTimeCursor) { createTimeCursor_ = createTimeCursor; - setParameter("CreateTimeCursor", std::to_string(createTimeCursor)); + setCoreParameter("CreateTimeCursor", std::to_string(createTimeCursor)); } diff --git a/domain/src/model/QueryTaskInfoHistoryResult.cc b/domain/src/model/QueryTaskInfoHistoryResult.cc index e79fccddb..9b476cd2e 100644 --- a/domain/src/model/QueryTaskInfoHistoryResult.cc +++ b/domain/src/model/QueryTaskInfoHistoryResult.cc @@ -35,10 +35,13 @@ QueryTaskInfoHistoryResult::~QueryTaskInfoHistoryResult() void QueryTaskInfoHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allObjects = value["Objects"]["TaskInfoHistory"]; for (auto value : allObjects) diff --git a/domain/src/model/QueryTaskListRequest.cc b/domain/src/model/QueryTaskListRequest.cc index ab5144a0c..cd9f3808c 100644 --- a/domain/src/model/QueryTaskListRequest.cc +++ b/domain/src/model/QueryTaskListRequest.cc @@ -33,7 +33,7 @@ long QueryTaskListRequest::getBeginCreateTime()const void QueryTaskListRequest::setBeginCreateTime(long beginCreateTime) { beginCreateTime_ = beginCreateTime; - setParameter("BeginCreateTime", std::to_string(beginCreateTime)); + setCoreParameter("BeginCreateTime", std::to_string(beginCreateTime)); } long QueryTaskListRequest::getEndCreateTime()const @@ -44,7 +44,7 @@ long QueryTaskListRequest::getEndCreateTime()const void QueryTaskListRequest::setEndCreateTime(long endCreateTime) { endCreateTime_ = endCreateTime; - setParameter("EndCreateTime", std::to_string(endCreateTime)); + setCoreParameter("EndCreateTime", std::to_string(endCreateTime)); } std::string QueryTaskListRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string QueryTaskListRequest::getUserClientIp()const void QueryTaskListRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } int QueryTaskListRequest::getPageSize()const @@ -66,7 +66,7 @@ int QueryTaskListRequest::getPageSize()const void QueryTaskListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryTaskListRequest::getLang()const @@ -77,7 +77,7 @@ std::string QueryTaskListRequest::getLang()const void QueryTaskListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int QueryTaskListRequest::getPageNum()const @@ -88,6 +88,6 @@ int QueryTaskListRequest::getPageNum()const void QueryTaskListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/domain/src/model/QueryTaskListResult.cc b/domain/src/model/QueryTaskListResult.cc index 91737a228..7f89d7e57 100644 --- a/domain/src/model/QueryTaskListResult.cc +++ b/domain/src/model/QueryTaskListResult.cc @@ -35,10 +35,13 @@ QueryTaskListResult::~QueryTaskListResult() void QueryTaskListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TaskInfo"]; for (auto value : allData) @@ -60,6 +63,10 @@ void QueryTaskListResult::parse(const std::string &payload) dataObject.taskStatusCode = std::stoi(value["TaskStatusCode"].asString()); if(!value["TaskTypeDescription"].isNull()) dataObject.taskTypeDescription = value["TaskTypeDescription"].asString(); + if(!value["TaskCancelStatus"].isNull()) + dataObject.taskCancelStatus = value["TaskCancelStatus"].asString(); + if(!value["TaskCancelStatusCode"].isNull()) + dataObject.taskCancelStatusCode = std::stoi(value["TaskCancelStatusCode"].asString()); data_.push_back(dataObject); } if(!value["TotalItemNum"].isNull()) diff --git a/domain/src/model/QueryTransferInByInstanceIdRequest.cc b/domain/src/model/QueryTransferInByInstanceIdRequest.cc index af0d4143c..edfe591a8 100644 --- a/domain/src/model/QueryTransferInByInstanceIdRequest.cc +++ b/domain/src/model/QueryTransferInByInstanceIdRequest.cc @@ -33,7 +33,7 @@ std::string QueryTransferInByInstanceIdRequest::getInstanceId()const void QueryTransferInByInstanceIdRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string QueryTransferInByInstanceIdRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryTransferInByInstanceIdRequest::getUserClientIp()const void QueryTransferInByInstanceIdRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryTransferInByInstanceIdRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryTransferInByInstanceIdRequest::getLang()const void QueryTransferInByInstanceIdRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryTransferInByInstanceIdResult.cc b/domain/src/model/QueryTransferInByInstanceIdResult.cc index 2f1d4c485..f6d961515 100644 --- a/domain/src/model/QueryTransferInByInstanceIdResult.cc +++ b/domain/src/model/QueryTransferInByInstanceIdResult.cc @@ -35,10 +35,13 @@ QueryTransferInByInstanceIdResult::~QueryTransferInByInstanceIdResult() void QueryTransferInByInstanceIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SubmissionDate"].isNull()) submissionDate_ = value["SubmissionDate"].asString(); diff --git a/domain/src/model/QueryTransferInListRequest.cc b/domain/src/model/QueryTransferInListRequest.cc index 42fc3877b..c338f86b6 100644 --- a/domain/src/model/QueryTransferInListRequest.cc +++ b/domain/src/model/QueryTransferInListRequest.cc @@ -33,7 +33,7 @@ long QueryTransferInListRequest::getSubmissionStartDate()const void QueryTransferInListRequest::setSubmissionStartDate(long submissionStartDate) { submissionStartDate_ = submissionStartDate; - setParameter("SubmissionStartDate", std::to_string(submissionStartDate)); + setCoreParameter("SubmissionStartDate", std::to_string(submissionStartDate)); } std::string QueryTransferInListRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryTransferInListRequest::getUserClientIp()const void QueryTransferInListRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long QueryTransferInListRequest::getSubmissionEndDate()const @@ -55,7 +55,7 @@ long QueryTransferInListRequest::getSubmissionEndDate()const void QueryTransferInListRequest::setSubmissionEndDate(long submissionEndDate) { submissionEndDate_ = submissionEndDate; - setParameter("SubmissionEndDate", std::to_string(submissionEndDate)); + setCoreParameter("SubmissionEndDate", std::to_string(submissionEndDate)); } std::string QueryTransferInListRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string QueryTransferInListRequest::getDomainName()const void QueryTransferInListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryTransferInListRequest::getSimpleTransferInStatus()const @@ -77,7 +77,7 @@ std::string QueryTransferInListRequest::getSimpleTransferInStatus()const void QueryTransferInListRequest::setSimpleTransferInStatus(const std::string& simpleTransferInStatus) { simpleTransferInStatus_ = simpleTransferInStatus; - setParameter("SimpleTransferInStatus", simpleTransferInStatus); + setCoreParameter("SimpleTransferInStatus", simpleTransferInStatus); } int QueryTransferInListRequest::getPageSize()const @@ -88,7 +88,7 @@ int QueryTransferInListRequest::getPageSize()const void QueryTransferInListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryTransferInListRequest::getLang()const @@ -99,7 +99,7 @@ std::string QueryTransferInListRequest::getLang()const void QueryTransferInListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } int QueryTransferInListRequest::getPageNum()const @@ -110,6 +110,6 @@ int QueryTransferInListRequest::getPageNum()const void QueryTransferInListRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/domain/src/model/QueryTransferInListResult.cc b/domain/src/model/QueryTransferInListResult.cc index d8d5fa53d..baefd61a5 100644 --- a/domain/src/model/QueryTransferInListResult.cc +++ b/domain/src/model/QueryTransferInListResult.cc @@ -35,10 +35,13 @@ QueryTransferInListResult::~QueryTransferInListResult() void QueryTransferInListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TransferInInfo"]; for (auto value : allData) diff --git a/domain/src/model/QueryTransferOutInfoRequest.cc b/domain/src/model/QueryTransferOutInfoRequest.cc index de6ea185f..43e4bca13 100644 --- a/domain/src/model/QueryTransferOutInfoRequest.cc +++ b/domain/src/model/QueryTransferOutInfoRequest.cc @@ -33,7 +33,7 @@ std::string QueryTransferOutInfoRequest::getDomainName()const void QueryTransferOutInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string QueryTransferOutInfoRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string QueryTransferOutInfoRequest::getUserClientIp()const void QueryTransferOutInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string QueryTransferOutInfoRequest::getLang()const @@ -55,6 +55,6 @@ std::string QueryTransferOutInfoRequest::getLang()const void QueryTransferOutInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/QueryTransferOutInfoResult.cc b/domain/src/model/QueryTransferOutInfoResult.cc index f0aa2ec6b..eaba08ac0 100644 --- a/domain/src/model/QueryTransferOutInfoResult.cc +++ b/domain/src/model/QueryTransferOutInfoResult.cc @@ -35,10 +35,13 @@ QueryTransferOutInfoResult::~QueryTransferOutInfoResult() void QueryTransferOutInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Status"].isNull()) status_ = std::stoi(value["Status"].asString()); diff --git a/domain/src/model/RegistrantProfileRealNameVerificationRequest.cc b/domain/src/model/RegistrantProfileRealNameVerificationRequest.cc index 94f007a96..ecac5b70e 100644 --- a/domain/src/model/RegistrantProfileRealNameVerificationRequest.cc +++ b/domain/src/model/RegistrantProfileRealNameVerificationRequest.cc @@ -33,7 +33,7 @@ std::string RegistrantProfileRealNameVerificationRequest::getIdentityCredentialT void RegistrantProfileRealNameVerificationRequest::setIdentityCredentialType(const std::string& identityCredentialType) { identityCredentialType_ = identityCredentialType; - setParameter("IdentityCredentialType", identityCredentialType); + setCoreParameter("IdentityCredentialType", identityCredentialType); } std::string RegistrantProfileRealNameVerificationRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string RegistrantProfileRealNameVerificationRequest::getUserClientIp()const void RegistrantProfileRealNameVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long RegistrantProfileRealNameVerificationRequest::getRegistrantProfileID()const @@ -55,7 +55,7 @@ long RegistrantProfileRealNameVerificationRequest::getRegistrantProfileID()const void RegistrantProfileRealNameVerificationRequest::setRegistrantProfileID(long registrantProfileID) { registrantProfileID_ = registrantProfileID; - setParameter("RegistrantProfileID", std::to_string(registrantProfileID)); + setCoreParameter("RegistrantProfileID", std::to_string(registrantProfileID)); } std::string RegistrantProfileRealNameVerificationRequest::getIdentityCredential()const @@ -66,7 +66,7 @@ std::string RegistrantProfileRealNameVerificationRequest::getIdentityCredential( void RegistrantProfileRealNameVerificationRequest::setIdentityCredential(const std::string& identityCredential) { identityCredential_ = identityCredential; - setParameter("IdentityCredential", identityCredential); + setCoreParameter("IdentityCredential", identityCredential); } std::string RegistrantProfileRealNameVerificationRequest::getLang()const @@ -77,7 +77,7 @@ std::string RegistrantProfileRealNameVerificationRequest::getLang()const void RegistrantProfileRealNameVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string RegistrantProfileRealNameVerificationRequest::getIdentityCredentialNo()const @@ -88,6 +88,6 @@ std::string RegistrantProfileRealNameVerificationRequest::getIdentityCredentialN void RegistrantProfileRealNameVerificationRequest::setIdentityCredentialNo(const std::string& identityCredentialNo) { identityCredentialNo_ = identityCredentialNo; - setParameter("IdentityCredentialNo", identityCredentialNo); + setCoreParameter("IdentityCredentialNo", identityCredentialNo); } diff --git a/domain/src/model/RegistrantProfileRealNameVerificationResult.cc b/domain/src/model/RegistrantProfileRealNameVerificationResult.cc index d0f8fad09..2ce35b308 100644 --- a/domain/src/model/RegistrantProfileRealNameVerificationResult.cc +++ b/domain/src/model/RegistrantProfileRealNameVerificationResult.cc @@ -35,10 +35,13 @@ RegistrantProfileRealNameVerificationResult::~RegistrantProfileRealNameVerificat void RegistrantProfileRealNameVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/ResendEmailVerificationRequest.cc b/domain/src/model/ResendEmailVerificationRequest.cc index 0e96609ac..a5230a042 100644 --- a/domain/src/model/ResendEmailVerificationRequest.cc +++ b/domain/src/model/ResendEmailVerificationRequest.cc @@ -33,7 +33,7 @@ std::string ResendEmailVerificationRequest::getUserClientIp()const void ResendEmailVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string ResendEmailVerificationRequest::getLang()const @@ -44,7 +44,7 @@ std::string ResendEmailVerificationRequest::getLang()const void ResendEmailVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string ResendEmailVerificationRequest::getEmail()const @@ -55,6 +55,6 @@ std::string ResendEmailVerificationRequest::getEmail()const void ResendEmailVerificationRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } diff --git a/domain/src/model/ResendEmailVerificationResult.cc b/domain/src/model/ResendEmailVerificationResult.cc index e70f4c058..6979cab4b 100644 --- a/domain/src/model/ResendEmailVerificationResult.cc +++ b/domain/src/model/ResendEmailVerificationResult.cc @@ -35,10 +35,13 @@ ResendEmailVerificationResult::~ResendEmailVerificationResult() void ResendEmailVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuccessList = value["SuccessList"]["SendResult"]; for (auto value : allSuccessList) diff --git a/domain/src/model/ResetQualificationVerificationRequest.cc b/domain/src/model/ResetQualificationVerificationRequest.cc index 41f2cd1c5..e78bcd6df 100644 --- a/domain/src/model/ResetQualificationVerificationRequest.cc +++ b/domain/src/model/ResetQualificationVerificationRequest.cc @@ -33,7 +33,7 @@ std::string ResetQualificationVerificationRequest::getInstanceId()const void ResetQualificationVerificationRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ResetQualificationVerificationRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string ResetQualificationVerificationRequest::getUserClientIp()const void ResetQualificationVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string ResetQualificationVerificationRequest::getLang()const @@ -55,7 +55,7 @@ std::string ResetQualificationVerificationRequest::getLang()const void ResetQualificationVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string ResetQualificationVerificationRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ResetQualificationVerificationRequest::getAccessKeyId()const void ResetQualificationVerificationRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/domain/src/model/ResetQualificationVerificationResult.cc b/domain/src/model/ResetQualificationVerificationResult.cc index 54b655696..ffdfc9e8a 100644 --- a/domain/src/model/ResetQualificationVerificationResult.cc +++ b/domain/src/model/ResetQualificationVerificationResult.cc @@ -35,10 +35,13 @@ ResetQualificationVerificationResult::~ResetQualificationVerificationResult() void ResetQualificationVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/SaveBatchDomainRemarkRequest.cc b/domain/src/model/SaveBatchDomainRemarkRequest.cc index 5f11fb1b3..29a0ab329 100644 --- a/domain/src/model/SaveBatchDomainRemarkRequest.cc +++ b/domain/src/model/SaveBatchDomainRemarkRequest.cc @@ -33,7 +33,7 @@ std::string SaveBatchDomainRemarkRequest::getInstanceIds()const void SaveBatchDomainRemarkRequest::setInstanceIds(const std::string& instanceIds) { instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); + setCoreParameter("InstanceIds", instanceIds); } std::string SaveBatchDomainRemarkRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveBatchDomainRemarkRequest::getUserClientIp()const void SaveBatchDomainRemarkRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveBatchDomainRemarkRequest::getRemark()const @@ -55,7 +55,7 @@ std::string SaveBatchDomainRemarkRequest::getRemark()const void SaveBatchDomainRemarkRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } std::string SaveBatchDomainRemarkRequest::getLang()const @@ -66,6 +66,6 @@ std::string SaveBatchDomainRemarkRequest::getLang()const void SaveBatchDomainRemarkRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveBatchDomainRemarkResult.cc b/domain/src/model/SaveBatchDomainRemarkResult.cc index f9770b29b..776f4c8f0 100644 --- a/domain/src/model/SaveBatchDomainRemarkResult.cc +++ b/domain/src/model/SaveBatchDomainRemarkResult.cc @@ -35,10 +35,13 @@ SaveBatchDomainRemarkResult::~SaveBatchDomainRemarkResult() void SaveBatchDomainRemarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderActivateRequest.cc b/domain/src/model/SaveBatchTaskForCreatingOrderActivateRequest.cc index 96be359de..b1dc4931c 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderActivateRequest.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderActivateRequest.cc @@ -37,35 +37,46 @@ void SaveBatchTaskForCreatingOrderActivateRequest::setOrderActivateParam(const s for(int i = 0; i!= orderActivateParam.size(); i++) { auto obj = orderActivateParam.at(i); std::string str ="OrderActivateParam."+ std::to_string(i); - setParameter(str + ".Country", obj.country); - setParameter(str + ".SubscriptionDuration", std::to_string(obj.subscriptionDuration)); - setParameter(str + ".PermitPremiumActivation", std::to_string(obj.permitPremiumActivation)); - setParameter(str + ".City", obj.city); - setParameter(str + ".Dns2", obj.dns2); - setParameter(str + ".Dns1", obj.dns1); - setParameter(str + ".RegistrantProfileId", std::to_string(obj.registrantProfileId)); - setParameter(str + ".AliyunDns", std::to_string(obj.aliyunDns)); - setParameter(str + ".ZhCity", obj.zhCity); - setParameter(str + ".TelExt", obj.telExt); - setParameter(str + ".ZhRegistrantName", obj.zhRegistrantName); - setParameter(str + ".Province", obj.province); - setParameter(str + ".PostalCode", obj.postalCode); - setParameter(str + ".Email", obj.email); - setParameter(str + ".ZhRegistrantOrganization", obj.zhRegistrantOrganization); - setParameter(str + ".Address", obj.address); - setParameter(str + ".TelArea", obj.telArea); - setParameter(str + ".DomainName", obj.domainName); - setParameter(str + ".ZhAddress", obj.zhAddress); - setParameter(str + ".RegistrantType", obj.registrantType); - setParameter(str + ".Telephone", obj.telephone); - setParameter(str + ".TrademarkDomainActivation", std::to_string(obj.trademarkDomainActivation)); - setParameter(str + ".ZhProvince", obj.zhProvince); - setParameter(str + ".RegistrantOrganization", obj.registrantOrganization); - setParameter(str + ".EnableDomainProxy", std::to_string(obj.enableDomainProxy)); - setParameter(str + ".RegistrantName", obj.registrantName); + setCoreParameter(str + ".Country", obj.country); + setCoreParameter(str + ".SubscriptionDuration", std::to_string(obj.subscriptionDuration)); + setCoreParameter(str + ".PermitPremiumActivation", obj.permitPremiumActivation ? "true" : "false"); + setCoreParameter(str + ".City", obj.city); + setCoreParameter(str + ".Dns2", obj.dns2); + setCoreParameter(str + ".Dns1", obj.dns1); + setCoreParameter(str + ".RegistrantProfileId", std::to_string(obj.registrantProfileId)); + setCoreParameter(str + ".AliyunDns", obj.aliyunDns ? "true" : "false"); + setCoreParameter(str + ".ZhCity", obj.zhCity); + setCoreParameter(str + ".TelExt", obj.telExt); + setCoreParameter(str + ".ZhRegistrantName", obj.zhRegistrantName); + setCoreParameter(str + ".Province", obj.province); + setCoreParameter(str + ".PostalCode", obj.postalCode); + setCoreParameter(str + ".Email", obj.email); + setCoreParameter(str + ".ZhRegistrantOrganization", obj.zhRegistrantOrganization); + setCoreParameter(str + ".Address", obj.address); + setCoreParameter(str + ".TelArea", obj.telArea); + setCoreParameter(str + ".DomainName", obj.domainName); + setCoreParameter(str + ".ZhAddress", obj.zhAddress); + setCoreParameter(str + ".RegistrantType", obj.registrantType); + setCoreParameter(str + ".Telephone", obj.telephone); + setCoreParameter(str + ".TrademarkDomainActivation", obj.trademarkDomainActivation ? "true" : "false"); + setCoreParameter(str + ".ZhProvince", obj.zhProvince); + setCoreParameter(str + ".RegistrantOrganization", obj.registrantOrganization); + setCoreParameter(str + ".EnableDomainProxy", obj.enableDomainProxy ? "true" : "false"); + setCoreParameter(str + ".RegistrantName", obj.registrantName); } } +std::string SaveBatchTaskForCreatingOrderActivateRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveBatchTaskForCreatingOrderActivateRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); +} + std::string SaveBatchTaskForCreatingOrderActivateRequest::getUserClientIp()const { return userClientIp_; @@ -74,7 +85,29 @@ std::string SaveBatchTaskForCreatingOrderActivateRequest::getUserClientIp()const void SaveBatchTaskForCreatingOrderActivateRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); +} + +std::string SaveBatchTaskForCreatingOrderActivateRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveBatchTaskForCreatingOrderActivateRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +bool SaveBatchTaskForCreatingOrderActivateRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveBatchTaskForCreatingOrderActivateRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); } std::string SaveBatchTaskForCreatingOrderActivateRequest::getLang()const @@ -85,6 +118,17 @@ std::string SaveBatchTaskForCreatingOrderActivateRequest::getLang()const void SaveBatchTaskForCreatingOrderActivateRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +bool SaveBatchTaskForCreatingOrderActivateRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveBatchTaskForCreatingOrderActivateRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderActivateResult.cc b/domain/src/model/SaveBatchTaskForCreatingOrderActivateResult.cc index bfcdb089d..6192dfea6 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderActivateResult.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderActivateResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForCreatingOrderActivateResult::~SaveBatchTaskForCreatingOrderActiv void SaveBatchTaskForCreatingOrderActivateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderRedeemRequest.cc b/domain/src/model/SaveBatchTaskForCreatingOrderRedeemRequest.cc index aea88ead0..e67ba6767 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderRedeemRequest.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderRedeemRequest.cc @@ -25,6 +25,17 @@ SaveBatchTaskForCreatingOrderRedeemRequest::SaveBatchTaskForCreatingOrderRedeemR SaveBatchTaskForCreatingOrderRedeemRequest::~SaveBatchTaskForCreatingOrderRedeemRequest() {} +std::string SaveBatchTaskForCreatingOrderRedeemRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveBatchTaskForCreatingOrderRedeemRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); +} + std::vector SaveBatchTaskForCreatingOrderRedeemRequest::getOrderRedeemParam()const { return orderRedeemParam_; @@ -37,8 +48,8 @@ void SaveBatchTaskForCreatingOrderRedeemRequest::setOrderRedeemParam(const std:: for(int i = 0; i!= orderRedeemParam.size(); i++) { auto obj = orderRedeemParam.at(i); std::string str ="OrderRedeemParam."+ std::to_string(i); - setParameter(str + ".CurrentExpirationDate", std::to_string(obj.currentExpirationDate)); - setParameter(str + ".DomainName", obj.domainName); + setCoreParameter(str + ".CurrentExpirationDate", std::to_string(obj.currentExpirationDate)); + setCoreParameter(str + ".DomainName", obj.domainName); } } @@ -50,7 +61,29 @@ std::string SaveBatchTaskForCreatingOrderRedeemRequest::getUserClientIp()const void SaveBatchTaskForCreatingOrderRedeemRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); +} + +std::string SaveBatchTaskForCreatingOrderRedeemRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveBatchTaskForCreatingOrderRedeemRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +bool SaveBatchTaskForCreatingOrderRedeemRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveBatchTaskForCreatingOrderRedeemRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); } std::string SaveBatchTaskForCreatingOrderRedeemRequest::getLang()const @@ -61,6 +94,17 @@ std::string SaveBatchTaskForCreatingOrderRedeemRequest::getLang()const void SaveBatchTaskForCreatingOrderRedeemRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +bool SaveBatchTaskForCreatingOrderRedeemRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveBatchTaskForCreatingOrderRedeemRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderRedeemResult.cc b/domain/src/model/SaveBatchTaskForCreatingOrderRedeemResult.cc index 31925db7b..223811288 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderRedeemResult.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderRedeemResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForCreatingOrderRedeemResult::~SaveBatchTaskForCreatingOrderRedeemR void SaveBatchTaskForCreatingOrderRedeemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderRenewRequest.cc b/domain/src/model/SaveBatchTaskForCreatingOrderRenewRequest.cc index 47c90a5cb..b50281df3 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderRenewRequest.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderRenewRequest.cc @@ -25,6 +25,17 @@ SaveBatchTaskForCreatingOrderRenewRequest::SaveBatchTaskForCreatingOrderRenewReq SaveBatchTaskForCreatingOrderRenewRequest::~SaveBatchTaskForCreatingOrderRenewRequest() {} +std::string SaveBatchTaskForCreatingOrderRenewRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveBatchTaskForCreatingOrderRenewRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); +} + std::string SaveBatchTaskForCreatingOrderRenewRequest::getUserClientIp()const { return userClientIp_; @@ -33,7 +44,7 @@ std::string SaveBatchTaskForCreatingOrderRenewRequest::getUserClientIp()const void SaveBatchTaskForCreatingOrderRenewRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::vector SaveBatchTaskForCreatingOrderRenewRequest::getOrderRenewParam()const @@ -48,12 +59,34 @@ void SaveBatchTaskForCreatingOrderRenewRequest::setOrderRenewParam(const std::ve for(int i = 0; i!= orderRenewParam.size(); i++) { auto obj = orderRenewParam.at(i); std::string str ="OrderRenewParam."+ std::to_string(i); - setParameter(str + ".SubscriptionDuration", std::to_string(obj.subscriptionDuration)); - setParameter(str + ".CurrentExpirationDate", std::to_string(obj.currentExpirationDate)); - setParameter(str + ".DomainName", obj.domainName); + setCoreParameter(str + ".SubscriptionDuration", std::to_string(obj.subscriptionDuration)); + setCoreParameter(str + ".CurrentExpirationDate", std::to_string(obj.currentExpirationDate)); + setCoreParameter(str + ".DomainName", obj.domainName); } } +std::string SaveBatchTaskForCreatingOrderRenewRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveBatchTaskForCreatingOrderRenewRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +bool SaveBatchTaskForCreatingOrderRenewRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveBatchTaskForCreatingOrderRenewRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); +} + std::string SaveBatchTaskForCreatingOrderRenewRequest::getLang()const { return lang_; @@ -62,6 +95,17 @@ std::string SaveBatchTaskForCreatingOrderRenewRequest::getLang()const void SaveBatchTaskForCreatingOrderRenewRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +bool SaveBatchTaskForCreatingOrderRenewRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveBatchTaskForCreatingOrderRenewRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderRenewResult.cc b/domain/src/model/SaveBatchTaskForCreatingOrderRenewResult.cc index 2f67447c6..eae36e4b7 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderRenewResult.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderRenewResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForCreatingOrderRenewResult::~SaveBatchTaskForCreatingOrderRenewRes void SaveBatchTaskForCreatingOrderRenewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderTransferRequest.cc b/domain/src/model/SaveBatchTaskForCreatingOrderTransferRequest.cc index b70db64a6..4b9b66f7c 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderTransferRequest.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderTransferRequest.cc @@ -25,6 +25,17 @@ SaveBatchTaskForCreatingOrderTransferRequest::SaveBatchTaskForCreatingOrderTrans SaveBatchTaskForCreatingOrderTransferRequest::~SaveBatchTaskForCreatingOrderTransferRequest() {} +std::string SaveBatchTaskForCreatingOrderTransferRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveBatchTaskForCreatingOrderTransferRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); +} + std::vector SaveBatchTaskForCreatingOrderTransferRequest::getOrderTransferParam()const { return orderTransferParam_; @@ -37,10 +48,10 @@ void SaveBatchTaskForCreatingOrderTransferRequest::setOrderTransferParam(const s for(int i = 0; i!= orderTransferParam.size(); i++) { auto obj = orderTransferParam.at(i); std::string str ="OrderTransferParam."+ std::to_string(i); - setParameter(str + ".PermitPremiumTransfer", std::to_string(obj.permitPremiumTransfer)); - setParameter(str + ".AuthorizationCode", obj.authorizationCode); - setParameter(str + ".DomainName", obj.domainName); - setParameter(str + ".RegistrantProfileId", std::to_string(obj.registrantProfileId)); + setCoreParameter(str + ".PermitPremiumTransfer", obj.permitPremiumTransfer ? "true" : "false"); + setCoreParameter(str + ".AuthorizationCode", obj.authorizationCode); + setCoreParameter(str + ".DomainName", obj.domainName); + setCoreParameter(str + ".RegistrantProfileId", std::to_string(obj.registrantProfileId)); } } @@ -52,7 +63,29 @@ std::string SaveBatchTaskForCreatingOrderTransferRequest::getUserClientIp()const void SaveBatchTaskForCreatingOrderTransferRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); +} + +std::string SaveBatchTaskForCreatingOrderTransferRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveBatchTaskForCreatingOrderTransferRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +bool SaveBatchTaskForCreatingOrderTransferRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveBatchTaskForCreatingOrderTransferRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); } std::string SaveBatchTaskForCreatingOrderTransferRequest::getLang()const @@ -63,6 +96,17 @@ std::string SaveBatchTaskForCreatingOrderTransferRequest::getLang()const void SaveBatchTaskForCreatingOrderTransferRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +bool SaveBatchTaskForCreatingOrderTransferRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveBatchTaskForCreatingOrderTransferRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForCreatingOrderTransferResult.cc b/domain/src/model/SaveBatchTaskForCreatingOrderTransferResult.cc index 8e296de41..d6d06c543 100644 --- a/domain/src/model/SaveBatchTaskForCreatingOrderTransferResult.cc +++ b/domain/src/model/SaveBatchTaskForCreatingOrderTransferResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForCreatingOrderTransferResult::~SaveBatchTaskForCreatingOrderTrans void SaveBatchTaskForCreatingOrderTransferResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForDomainNameProxyServiceRequest.cc b/domain/src/model/SaveBatchTaskForDomainNameProxyServiceRequest.cc index 5f9edf8e3..1f62b84cd 100644 --- a/domain/src/model/SaveBatchTaskForDomainNameProxyServiceRequest.cc +++ b/domain/src/model/SaveBatchTaskForDomainNameProxyServiceRequest.cc @@ -33,7 +33,7 @@ std::string SaveBatchTaskForDomainNameProxyServiceRequest::getUserClientIp()cons void SaveBatchTaskForDomainNameProxyServiceRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::vector SaveBatchTaskForDomainNameProxyServiceRequest::getDomainName()const @@ -45,7 +45,7 @@ void SaveBatchTaskForDomainNameProxyServiceRequest::setDomainName(const std::vec { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::string SaveBatchTaskForDomainNameProxyServiceRequest::getLang()const @@ -56,7 +56,7 @@ std::string SaveBatchTaskForDomainNameProxyServiceRequest::getLang()const void SaveBatchTaskForDomainNameProxyServiceRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SaveBatchTaskForDomainNameProxyServiceRequest::getStatus()const @@ -67,6 +67,6 @@ bool SaveBatchTaskForDomainNameProxyServiceRequest::getStatus()const void SaveBatchTaskForDomainNameProxyServiceRequest::setStatus(bool status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", status ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForDomainNameProxyServiceResult.cc b/domain/src/model/SaveBatchTaskForDomainNameProxyServiceResult.cc index 4a7acad00..d10ee604a 100644 --- a/domain/src/model/SaveBatchTaskForDomainNameProxyServiceResult.cc +++ b/domain/src/model/SaveBatchTaskForDomainNameProxyServiceResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForDomainNameProxyServiceResult::~SaveBatchTaskForDomainNameProxySe void SaveBatchTaskForDomainNameProxyServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForModifyingDomainDnsRequest.cc b/domain/src/model/SaveBatchTaskForModifyingDomainDnsRequest.cc index 0f9b2726d..a09c78800 100644 --- a/domain/src/model/SaveBatchTaskForModifyingDomainDnsRequest.cc +++ b/domain/src/model/SaveBatchTaskForModifyingDomainDnsRequest.cc @@ -33,7 +33,7 @@ std::string SaveBatchTaskForModifyingDomainDnsRequest::getUserClientIp()const void SaveBatchTaskForModifyingDomainDnsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::vector SaveBatchTaskForModifyingDomainDnsRequest::getDomainName()const @@ -45,7 +45,7 @@ void SaveBatchTaskForModifyingDomainDnsRequest::setDomainName(const std::vector< { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::vector SaveBatchTaskForModifyingDomainDnsRequest::getDomainNameServer()const @@ -57,7 +57,7 @@ void SaveBatchTaskForModifyingDomainDnsRequest::setDomainNameServer(const std::v { domainNameServer_ = domainNameServer; for(int i = 0; i!= domainNameServer.size(); i++) - setParameter("DomainNameServer."+ std::to_string(i), domainNameServer.at(i)); + setCoreParameter("DomainNameServer."+ std::to_string(i), domainNameServer.at(i)); } std::string SaveBatchTaskForModifyingDomainDnsRequest::getLang()const @@ -68,7 +68,7 @@ std::string SaveBatchTaskForModifyingDomainDnsRequest::getLang()const void SaveBatchTaskForModifyingDomainDnsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SaveBatchTaskForModifyingDomainDnsRequest::getAliyunDns()const @@ -79,6 +79,6 @@ bool SaveBatchTaskForModifyingDomainDnsRequest::getAliyunDns()const void SaveBatchTaskForModifyingDomainDnsRequest::setAliyunDns(bool aliyunDns) { aliyunDns_ = aliyunDns; - setParameter("AliyunDns", std::to_string(aliyunDns)); + setCoreParameter("AliyunDns", aliyunDns ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForModifyingDomainDnsResult.cc b/domain/src/model/SaveBatchTaskForModifyingDomainDnsResult.cc index b061ff480..61c9ea3ef 100644 --- a/domain/src/model/SaveBatchTaskForModifyingDomainDnsResult.cc +++ b/domain/src/model/SaveBatchTaskForModifyingDomainDnsResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForModifyingDomainDnsResult::~SaveBatchTaskForModifyingDomainDnsRes void SaveBatchTaskForModifyingDomainDnsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc b/domain/src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc index 826ebd728..ca0fcf1a6 100644 --- a/domain/src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc +++ b/domain/src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc @@ -33,7 +33,7 @@ std::string SaveBatchTaskForTransferProhibitionLockRequest::getUserClientIp()con void SaveBatchTaskForTransferProhibitionLockRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::vector SaveBatchTaskForTransferProhibitionLockRequest::getDomainName()const @@ -45,7 +45,7 @@ void SaveBatchTaskForTransferProhibitionLockRequest::setDomainName(const std::ve { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::string SaveBatchTaskForTransferProhibitionLockRequest::getLang()const @@ -56,7 +56,7 @@ std::string SaveBatchTaskForTransferProhibitionLockRequest::getLang()const void SaveBatchTaskForTransferProhibitionLockRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SaveBatchTaskForTransferProhibitionLockRequest::getStatus()const @@ -67,6 +67,6 @@ bool SaveBatchTaskForTransferProhibitionLockRequest::getStatus()const void SaveBatchTaskForTransferProhibitionLockRequest::setStatus(bool status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", status ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForTransferProhibitionLockResult.cc b/domain/src/model/SaveBatchTaskForTransferProhibitionLockResult.cc index af02a3b78..59cec022e 100644 --- a/domain/src/model/SaveBatchTaskForTransferProhibitionLockResult.cc +++ b/domain/src/model/SaveBatchTaskForTransferProhibitionLockResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForTransferProhibitionLockResult::~SaveBatchTaskForTransferProhibit void SaveBatchTaskForTransferProhibitionLockResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForUpdateProhibitionLockRequest.cc b/domain/src/model/SaveBatchTaskForUpdateProhibitionLockRequest.cc index 11c7a1263..14cc864ab 100644 --- a/domain/src/model/SaveBatchTaskForUpdateProhibitionLockRequest.cc +++ b/domain/src/model/SaveBatchTaskForUpdateProhibitionLockRequest.cc @@ -33,7 +33,7 @@ std::string SaveBatchTaskForUpdateProhibitionLockRequest::getUserClientIp()const void SaveBatchTaskForUpdateProhibitionLockRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::vector SaveBatchTaskForUpdateProhibitionLockRequest::getDomainName()const @@ -45,7 +45,7 @@ void SaveBatchTaskForUpdateProhibitionLockRequest::setDomainName(const std::vect { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::string SaveBatchTaskForUpdateProhibitionLockRequest::getLang()const @@ -56,7 +56,7 @@ std::string SaveBatchTaskForUpdateProhibitionLockRequest::getLang()const void SaveBatchTaskForUpdateProhibitionLockRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SaveBatchTaskForUpdateProhibitionLockRequest::getStatus()const @@ -67,6 +67,6 @@ bool SaveBatchTaskForUpdateProhibitionLockRequest::getStatus()const void SaveBatchTaskForUpdateProhibitionLockRequest::setStatus(bool status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", status ? "true" : "false"); } diff --git a/domain/src/model/SaveBatchTaskForUpdateProhibitionLockResult.cc b/domain/src/model/SaveBatchTaskForUpdateProhibitionLockResult.cc index 9b2322e39..32f6111ed 100644 --- a/domain/src/model/SaveBatchTaskForUpdateProhibitionLockResult.cc +++ b/domain/src/model/SaveBatchTaskForUpdateProhibitionLockResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForUpdateProhibitionLockResult::~SaveBatchTaskForUpdateProhibitionL void SaveBatchTaskForUpdateProhibitionLockResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactRequest.cc b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactRequest.cc index 028462574..7b736229c 100644 --- a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactRequest.cc +++ b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactRequest.cc @@ -33,7 +33,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getCountry() void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getAddress()const @@ -44,7 +44,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getAddress() void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTelArea()const @@ -55,7 +55,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTelArea() void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setTelArea(const std::string& telArea) { telArea_ = telArea; - setParameter("TelArea", telArea); + setCoreParameter("TelArea", telArea); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getContactType()const @@ -66,7 +66,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getContactTy void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setContactType(const std::string& contactType) { contactType_ = contactType; - setParameter("ContactType", contactType); + setCoreParameter("ContactType", contactType); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getCity()const @@ -77,7 +77,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getCity()con void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); + setCoreParameter("City", city); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhAddress()const @@ -88,7 +88,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhAddress void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setZhAddress(const std::string& zhAddress) { zhAddress_ = zhAddress; - setParameter("ZhAddress", zhAddress); + setCoreParameter("ZhAddress", zhAddress); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getRegistrantType()const @@ -99,7 +99,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getRegistran void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setRegistrantType(const std::string& registrantType) { registrantType_ = registrantType; - setParameter("RegistrantType", registrantType); + setCoreParameter("RegistrantType", registrantType); } std::vector SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getDomainName()const @@ -111,7 +111,7 @@ void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setDomainName(const { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTelephone()const @@ -122,7 +122,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTelephone void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setTelephone(const std::string& telephone) { telephone_ = telephone; - setParameter("Telephone", telephone); + setCoreParameter("Telephone", telephone); } bool SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTransferOutProhibited()const @@ -133,7 +133,7 @@ bool SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTransferOutProhi void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setTransferOutProhibited(bool transferOutProhibited) { transferOutProhibited_ = transferOutProhibited; - setParameter("TransferOutProhibited", std::to_string(transferOutProhibited)); + setCoreParameter("TransferOutProhibited", transferOutProhibited ? "true" : "false"); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhCity()const @@ -144,7 +144,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhCity()c void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setZhCity(const std::string& zhCity) { zhCity_ = zhCity; - setParameter("ZhCity", zhCity); + setCoreParameter("ZhCity", zhCity); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhProvince()const @@ -155,7 +155,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhProvinc void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setZhProvince(const std::string& zhProvince) { zhProvince_ = zhProvince; - setParameter("ZhProvince", zhProvince); + setCoreParameter("ZhProvince", zhProvince); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getRegistrantOrganization()const @@ -166,7 +166,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getRegistran void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setRegistrantOrganization(const std::string& registrantOrganization) { registrantOrganization_ = registrantOrganization; - setParameter("RegistrantOrganization", registrantOrganization); + setCoreParameter("RegistrantOrganization", registrantOrganization); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTelExt()const @@ -177,7 +177,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getTelExt()c void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setTelExt(const std::string& telExt) { telExt_ = telExt; - setParameter("TelExt", telExt); + setCoreParameter("TelExt", telExt); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getProvince()const @@ -188,7 +188,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getProvince( void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setProvince(const std::string& province) { province_ = province; - setParameter("Province", province); + setCoreParameter("Province", province); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhRegistrantName()const @@ -199,7 +199,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhRegistr void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setZhRegistrantName(const std::string& zhRegistrantName) { zhRegistrantName_ = zhRegistrantName; - setParameter("ZhRegistrantName", zhRegistrantName); + setCoreParameter("ZhRegistrantName", zhRegistrantName); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getPostalCode()const @@ -210,7 +210,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getPostalCod void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setPostalCode(const std::string& postalCode) { postalCode_ = postalCode; - setParameter("PostalCode", postalCode); + setCoreParameter("PostalCode", postalCode); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getUserClientIp()const @@ -221,7 +221,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getUserClien void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getLang()const @@ -232,7 +232,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getLang()con void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getEmail()const @@ -243,7 +243,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getEmail()co void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getRegistrantName()const @@ -254,7 +254,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getRegistran void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setRegistrantName(const std::string& registrantName) { registrantName_ = registrantName; - setParameter("RegistrantName", registrantName); + setCoreParameter("RegistrantName", registrantName); } std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhRegistrantOrganization()const @@ -265,6 +265,6 @@ std::string SaveBatchTaskForUpdatingContactInfoByNewContactRequest::getZhRegistr void SaveBatchTaskForUpdatingContactInfoByNewContactRequest::setZhRegistrantOrganization(const std::string& zhRegistrantOrganization) { zhRegistrantOrganization_ = zhRegistrantOrganization; - setParameter("ZhRegistrantOrganization", zhRegistrantOrganization); + setCoreParameter("ZhRegistrantOrganization", zhRegistrantOrganization); } diff --git a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactResult.cc b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactResult.cc index ab771f417..02c2b12ae 100644 --- a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactResult.cc +++ b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByNewContactResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForUpdatingContactInfoByNewContactResult::~SaveBatchTaskForUpdating void SaveBatchTaskForUpdatingContactInfoByNewContactResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest.cc b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest.cc index 0ef523343..75bc0a6bc 100644 --- a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest.cc +++ b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest.cc @@ -33,7 +33,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::get void SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::setContactType(const std::string& contactType) { contactType_ = contactType; - setParameter("ContactType", contactType); + setCoreParameter("ContactType", contactType); } std::string SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::get void SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::getRegistrantProfileId()const @@ -55,7 +55,7 @@ long SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::getRegistr void SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } std::vector SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::getDomainName()const @@ -67,7 +67,7 @@ void SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::setDomainN { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } bool SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::getTransferOutProhibited()const @@ -78,7 +78,7 @@ bool SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::getTransfe void SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::setTransferOutProhibited(bool transferOutProhibited) { transferOutProhibited_ = transferOutProhibited; - setParameter("TransferOutProhibited", std::to_string(transferOutProhibited)); + setCoreParameter("TransferOutProhibited", transferOutProhibited ? "true" : "false"); } std::string SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::getLang()const @@ -89,6 +89,6 @@ std::string SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::get void SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResult.cc b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResult.cc index 44ac85440..3e2200ddd 100644 --- a/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResult.cc +++ b/domain/src/model/SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResult.cc @@ -35,10 +35,13 @@ SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResult::~SaveBatchTaskFo void SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveDomainGroupRequest.cc b/domain/src/model/SaveDomainGroupRequest.cc index c9d0a1989..ee5e9c2f0 100644 --- a/domain/src/model/SaveDomainGroupRequest.cc +++ b/domain/src/model/SaveDomainGroupRequest.cc @@ -33,7 +33,7 @@ std::string SaveDomainGroupRequest::getUserClientIp()const void SaveDomainGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveDomainGroupRequest::getDomainGroupName()const @@ -44,7 +44,7 @@ std::string SaveDomainGroupRequest::getDomainGroupName()const void SaveDomainGroupRequest::setDomainGroupName(const std::string& domainGroupName) { domainGroupName_ = domainGroupName; - setParameter("DomainGroupName", domainGroupName); + setCoreParameter("DomainGroupName", domainGroupName); } std::string SaveDomainGroupRequest::getLang()const @@ -55,7 +55,7 @@ std::string SaveDomainGroupRequest::getLang()const void SaveDomainGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long SaveDomainGroupRequest::getDomainGroupId()const @@ -66,6 +66,6 @@ long SaveDomainGroupRequest::getDomainGroupId()const void SaveDomainGroupRequest::setDomainGroupId(long domainGroupId) { domainGroupId_ = domainGroupId; - setParameter("DomainGroupId", std::to_string(domainGroupId)); + setCoreParameter("DomainGroupId", std::to_string(domainGroupId)); } diff --git a/domain/src/model/SaveDomainGroupResult.cc b/domain/src/model/SaveDomainGroupResult.cc index 6a6c21fa6..879a9efb2 100644 --- a/domain/src/model/SaveDomainGroupResult.cc +++ b/domain/src/model/SaveDomainGroupResult.cc @@ -35,10 +35,13 @@ SaveDomainGroupResult::~SaveDomainGroupResult() void SaveDomainGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainGroupId"].isNull()) domainGroupId_ = std::stol(value["DomainGroupId"].asString()); diff --git a/domain/src/model/SaveRegistrantProfileRequest.cc b/domain/src/model/SaveRegistrantProfileRequest.cc index 1d766ad6b..fc8cd4433 100644 --- a/domain/src/model/SaveRegistrantProfileRequest.cc +++ b/domain/src/model/SaveRegistrantProfileRequest.cc @@ -33,7 +33,7 @@ std::string SaveRegistrantProfileRequest::getCountry()const void SaveRegistrantProfileRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } std::string SaveRegistrantProfileRequest::getAddress()const @@ -44,7 +44,7 @@ std::string SaveRegistrantProfileRequest::getAddress()const void SaveRegistrantProfileRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string SaveRegistrantProfileRequest::getTelArea()const @@ -55,7 +55,7 @@ std::string SaveRegistrantProfileRequest::getTelArea()const void SaveRegistrantProfileRequest::setTelArea(const std::string& telArea) { telArea_ = telArea; - setParameter("TelArea", telArea); + setCoreParameter("TelArea", telArea); } std::string SaveRegistrantProfileRequest::getCity()const @@ -66,7 +66,7 @@ std::string SaveRegistrantProfileRequest::getCity()const void SaveRegistrantProfileRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); + setCoreParameter("City", city); } long SaveRegistrantProfileRequest::getRegistrantProfileId()const @@ -77,7 +77,7 @@ long SaveRegistrantProfileRequest::getRegistrantProfileId()const void SaveRegistrantProfileRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } std::string SaveRegistrantProfileRequest::getZhAddress()const @@ -88,7 +88,7 @@ std::string SaveRegistrantProfileRequest::getZhAddress()const void SaveRegistrantProfileRequest::setZhAddress(const std::string& zhAddress) { zhAddress_ = zhAddress; - setParameter("ZhAddress", zhAddress); + setCoreParameter("ZhAddress", zhAddress); } std::string SaveRegistrantProfileRequest::getRegistrantType()const @@ -99,7 +99,18 @@ std::string SaveRegistrantProfileRequest::getRegistrantType()const void SaveRegistrantProfileRequest::setRegistrantType(const std::string& registrantType) { registrantType_ = registrantType; - setParameter("RegistrantType", registrantType); + setCoreParameter("RegistrantType", registrantType); +} + +std::string SaveRegistrantProfileRequest::getRegistrantProfileType()const +{ + return registrantProfileType_; +} + +void SaveRegistrantProfileRequest::setRegistrantProfileType(const std::string& registrantProfileType) +{ + registrantProfileType_ = registrantProfileType; + setCoreParameter("RegistrantProfileType", registrantProfileType); } std::string SaveRegistrantProfileRequest::getTelephone()const @@ -110,7 +121,7 @@ std::string SaveRegistrantProfileRequest::getTelephone()const void SaveRegistrantProfileRequest::setTelephone(const std::string& telephone) { telephone_ = telephone; - setParameter("Telephone", telephone); + setCoreParameter("Telephone", telephone); } bool SaveRegistrantProfileRequest::getDefaultRegistrantProfile()const @@ -121,7 +132,7 @@ bool SaveRegistrantProfileRequest::getDefaultRegistrantProfile()const void SaveRegistrantProfileRequest::setDefaultRegistrantProfile(bool defaultRegistrantProfile) { defaultRegistrantProfile_ = defaultRegistrantProfile; - setParameter("DefaultRegistrantProfile", std::to_string(defaultRegistrantProfile)); + setCoreParameter("DefaultRegistrantProfile", defaultRegistrantProfile ? "true" : "false"); } std::string SaveRegistrantProfileRequest::getZhCity()const @@ -132,7 +143,7 @@ std::string SaveRegistrantProfileRequest::getZhCity()const void SaveRegistrantProfileRequest::setZhCity(const std::string& zhCity) { zhCity_ = zhCity; - setParameter("ZhCity", zhCity); + setCoreParameter("ZhCity", zhCity); } std::string SaveRegistrantProfileRequest::getZhProvince()const @@ -143,7 +154,7 @@ std::string SaveRegistrantProfileRequest::getZhProvince()const void SaveRegistrantProfileRequest::setZhProvince(const std::string& zhProvince) { zhProvince_ = zhProvince; - setParameter("ZhProvince", zhProvince); + setCoreParameter("ZhProvince", zhProvince); } std::string SaveRegistrantProfileRequest::getRegistrantOrganization()const @@ -154,7 +165,7 @@ std::string SaveRegistrantProfileRequest::getRegistrantOrganization()const void SaveRegistrantProfileRequest::setRegistrantOrganization(const std::string& registrantOrganization) { registrantOrganization_ = registrantOrganization; - setParameter("RegistrantOrganization", registrantOrganization); + setCoreParameter("RegistrantOrganization", registrantOrganization); } std::string SaveRegistrantProfileRequest::getTelExt()const @@ -165,7 +176,7 @@ std::string SaveRegistrantProfileRequest::getTelExt()const void SaveRegistrantProfileRequest::setTelExt(const std::string& telExt) { telExt_ = telExt; - setParameter("TelExt", telExt); + setCoreParameter("TelExt", telExt); } std::string SaveRegistrantProfileRequest::getProvince()const @@ -176,7 +187,7 @@ std::string SaveRegistrantProfileRequest::getProvince()const void SaveRegistrantProfileRequest::setProvince(const std::string& province) { province_ = province; - setParameter("Province", province); + setCoreParameter("Province", province); } std::string SaveRegistrantProfileRequest::getZhRegistrantName()const @@ -187,7 +198,7 @@ std::string SaveRegistrantProfileRequest::getZhRegistrantName()const void SaveRegistrantProfileRequest::setZhRegistrantName(const std::string& zhRegistrantName) { zhRegistrantName_ = zhRegistrantName; - setParameter("ZhRegistrantName", zhRegistrantName); + setCoreParameter("ZhRegistrantName", zhRegistrantName); } std::string SaveRegistrantProfileRequest::getPostalCode()const @@ -198,7 +209,7 @@ std::string SaveRegistrantProfileRequest::getPostalCode()const void SaveRegistrantProfileRequest::setPostalCode(const std::string& postalCode) { postalCode_ = postalCode; - setParameter("PostalCode", postalCode); + setCoreParameter("PostalCode", postalCode); } std::string SaveRegistrantProfileRequest::getUserClientIp()const @@ -209,7 +220,7 @@ std::string SaveRegistrantProfileRequest::getUserClientIp()const void SaveRegistrantProfileRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveRegistrantProfileRequest::getLang()const @@ -220,7 +231,7 @@ std::string SaveRegistrantProfileRequest::getLang()const void SaveRegistrantProfileRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SaveRegistrantProfileRequest::getEmail()const @@ -231,7 +242,7 @@ std::string SaveRegistrantProfileRequest::getEmail()const void SaveRegistrantProfileRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string SaveRegistrantProfileRequest::getRegistrantName()const @@ -242,7 +253,7 @@ std::string SaveRegistrantProfileRequest::getRegistrantName()const void SaveRegistrantProfileRequest::setRegistrantName(const std::string& registrantName) { registrantName_ = registrantName; - setParameter("RegistrantName", registrantName); + setCoreParameter("RegistrantName", registrantName); } std::string SaveRegistrantProfileRequest::getZhRegistrantOrganization()const @@ -253,6 +264,6 @@ std::string SaveRegistrantProfileRequest::getZhRegistrantOrganization()const void SaveRegistrantProfileRequest::setZhRegistrantOrganization(const std::string& zhRegistrantOrganization) { zhRegistrantOrganization_ = zhRegistrantOrganization; - setParameter("ZhRegistrantOrganization", zhRegistrantOrganization); + setCoreParameter("ZhRegistrantOrganization", zhRegistrantOrganization); } diff --git a/domain/src/model/SaveRegistrantProfileResult.cc b/domain/src/model/SaveRegistrantProfileResult.cc index b233681bc..5d4c5275d 100644 --- a/domain/src/model/SaveRegistrantProfileResult.cc +++ b/domain/src/model/SaveRegistrantProfileResult.cc @@ -35,10 +35,13 @@ SaveRegistrantProfileResult::~SaveRegistrantProfileResult() void SaveRegistrantProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegistrantProfileId"].isNull()) registrantProfileId_ = std::stol(value["RegistrantProfileId"].asString()); diff --git a/domain/src/model/SaveSingleTaskForAddingDSRecordRequest.cc b/domain/src/model/SaveSingleTaskForAddingDSRecordRequest.cc new file mode 100644 index 000000000..cec7d634a --- /dev/null +++ b/domain/src/model/SaveSingleTaskForAddingDSRecordRequest.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 + +using AlibabaCloud::Domain::Model::SaveSingleTaskForAddingDSRecordRequest; + +SaveSingleTaskForAddingDSRecordRequest::SaveSingleTaskForAddingDSRecordRequest() : + RpcServiceRequest("domain", "2018-01-29", "SaveSingleTaskForAddingDSRecord") +{} + +SaveSingleTaskForAddingDSRecordRequest::~SaveSingleTaskForAddingDSRecordRequest() +{} + +int SaveSingleTaskForAddingDSRecordRequest::getKeyTag()const +{ + return keyTag_; +} + +void SaveSingleTaskForAddingDSRecordRequest::setKeyTag(int keyTag) +{ + keyTag_ = keyTag; + setCoreParameter("KeyTag", std::to_string(keyTag)); +} + +std::string SaveSingleTaskForAddingDSRecordRequest::getDomainName()const +{ + return domainName_; +} + +void SaveSingleTaskForAddingDSRecordRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string SaveSingleTaskForAddingDSRecordRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void SaveSingleTaskForAddingDSRecordRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +int SaveSingleTaskForAddingDSRecordRequest::getDigestType()const +{ + return digestType_; +} + +void SaveSingleTaskForAddingDSRecordRequest::setDigestType(int digestType) +{ + digestType_ = digestType; + setCoreParameter("DigestType", std::to_string(digestType)); +} + +std::string SaveSingleTaskForAddingDSRecordRequest::getDigest()const +{ + return digest_; +} + +void SaveSingleTaskForAddingDSRecordRequest::setDigest(const std::string& digest) +{ + digest_ = digest; + setCoreParameter("Digest", digest); +} + +std::string SaveSingleTaskForAddingDSRecordRequest::getLang()const +{ + return lang_; +} + +void SaveSingleTaskForAddingDSRecordRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int SaveSingleTaskForAddingDSRecordRequest::getAlgorithm()const +{ + return algorithm_; +} + +void SaveSingleTaskForAddingDSRecordRequest::setAlgorithm(int algorithm) +{ + algorithm_ = algorithm; + setCoreParameter("Algorithm", std::to_string(algorithm)); +} + diff --git a/domain/src/model/SaveSingleTaskForAddingDSRecordResult.cc b/domain/src/model/SaveSingleTaskForAddingDSRecordResult.cc new file mode 100644 index 000000000..b5ce26bce --- /dev/null +++ b/domain/src/model/SaveSingleTaskForAddingDSRecordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveSingleTaskForAddingDSRecordResult::SaveSingleTaskForAddingDSRecordResult() : + ServiceResult() +{} + +SaveSingleTaskForAddingDSRecordResult::SaveSingleTaskForAddingDSRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveSingleTaskForAddingDSRecordResult::~SaveSingleTaskForAddingDSRecordResult() +{} + +void SaveSingleTaskForAddingDSRecordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveSingleTaskForAddingDSRecordResult::getTaskNo()const +{ + return taskNo_; +} + diff --git a/domain/src/model/SaveSingleTaskForApprovingTransferOutRequest.cc b/domain/src/model/SaveSingleTaskForApprovingTransferOutRequest.cc index 73873c566..3eb4ad626 100644 --- a/domain/src/model/SaveSingleTaskForApprovingTransferOutRequest.cc +++ b/domain/src/model/SaveSingleTaskForApprovingTransferOutRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForApprovingTransferOutRequest::getDomainName()const void SaveSingleTaskForApprovingTransferOutRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForApprovingTransferOutRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForApprovingTransferOutRequest::getUserClientIp()const void SaveSingleTaskForApprovingTransferOutRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForApprovingTransferOutRequest::getLang()const @@ -55,6 +55,6 @@ std::string SaveSingleTaskForApprovingTransferOutRequest::getLang()const void SaveSingleTaskForApprovingTransferOutRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForApprovingTransferOutResult.cc b/domain/src/model/SaveSingleTaskForApprovingTransferOutResult.cc index a2a0f9c35..b46c4a20b 100644 --- a/domain/src/model/SaveSingleTaskForApprovingTransferOutResult.cc +++ b/domain/src/model/SaveSingleTaskForApprovingTransferOutResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForApprovingTransferOutResult::~SaveSingleTaskForApprovingTransfer void SaveSingleTaskForApprovingTransferOutResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForAssociatingEnsRequest.cc b/domain/src/model/SaveSingleTaskForAssociatingEnsRequest.cc index 20ea5735a..a833c3fcc 100644 --- a/domain/src/model/SaveSingleTaskForAssociatingEnsRequest.cc +++ b/domain/src/model/SaveSingleTaskForAssociatingEnsRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForAssociatingEnsRequest::getAddress()const void SaveSingleTaskForAssociatingEnsRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string SaveSingleTaskForAssociatingEnsRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForAssociatingEnsRequest::getUserClientIp()const void SaveSingleTaskForAssociatingEnsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForAssociatingEnsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SaveSingleTaskForAssociatingEnsRequest::getDomainName()const void SaveSingleTaskForAssociatingEnsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForAssociatingEnsRequest::getLang()const @@ -66,6 +66,6 @@ std::string SaveSingleTaskForAssociatingEnsRequest::getLang()const void SaveSingleTaskForAssociatingEnsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForAssociatingEnsResult.cc b/domain/src/model/SaveSingleTaskForAssociatingEnsResult.cc index 9ab1b9725..bd68617ae 100644 --- a/domain/src/model/SaveSingleTaskForAssociatingEnsResult.cc +++ b/domain/src/model/SaveSingleTaskForAssociatingEnsResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForAssociatingEnsResult::~SaveSingleTaskForAssociatingEnsResult() void SaveSingleTaskForAssociatingEnsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForCancelingTransferInRequest.cc b/domain/src/model/SaveSingleTaskForCancelingTransferInRequest.cc index 3464e3f9d..053b7f52e 100644 --- a/domain/src/model/SaveSingleTaskForCancelingTransferInRequest.cc +++ b/domain/src/model/SaveSingleTaskForCancelingTransferInRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForCancelingTransferInRequest::getDomainName()const void SaveSingleTaskForCancelingTransferInRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForCancelingTransferInRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForCancelingTransferInRequest::getUserClientIp()const void SaveSingleTaskForCancelingTransferInRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForCancelingTransferInRequest::getLang()const @@ -55,6 +55,6 @@ std::string SaveSingleTaskForCancelingTransferInRequest::getLang()const void SaveSingleTaskForCancelingTransferInRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForCancelingTransferInResult.cc b/domain/src/model/SaveSingleTaskForCancelingTransferInResult.cc index f24819363..44377a5f7 100644 --- a/domain/src/model/SaveSingleTaskForCancelingTransferInResult.cc +++ b/domain/src/model/SaveSingleTaskForCancelingTransferInResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForCancelingTransferInResult::~SaveSingleTaskForCancelingTransferI void SaveSingleTaskForCancelingTransferInResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForCancelingTransferOutRequest.cc b/domain/src/model/SaveSingleTaskForCancelingTransferOutRequest.cc index 5019c4c48..e67a421bc 100644 --- a/domain/src/model/SaveSingleTaskForCancelingTransferOutRequest.cc +++ b/domain/src/model/SaveSingleTaskForCancelingTransferOutRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForCancelingTransferOutRequest::getDomainName()const void SaveSingleTaskForCancelingTransferOutRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForCancelingTransferOutRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForCancelingTransferOutRequest::getUserClientIp()const void SaveSingleTaskForCancelingTransferOutRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForCancelingTransferOutRequest::getLang()const @@ -55,6 +55,6 @@ std::string SaveSingleTaskForCancelingTransferOutRequest::getLang()const void SaveSingleTaskForCancelingTransferOutRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForCancelingTransferOutResult.cc b/domain/src/model/SaveSingleTaskForCancelingTransferOutResult.cc index 6c21bc9d0..584804e51 100644 --- a/domain/src/model/SaveSingleTaskForCancelingTransferOutResult.cc +++ b/domain/src/model/SaveSingleTaskForCancelingTransferOutResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForCancelingTransferOutResult::~SaveSingleTaskForCancelingTransfer void SaveSingleTaskForCancelingTransferOutResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForCreatingDnsHostRequest.cc b/domain/src/model/SaveSingleTaskForCreatingDnsHostRequest.cc index 470824995..c7ebedb8b 100644 --- a/domain/src/model/SaveSingleTaskForCreatingDnsHostRequest.cc +++ b/domain/src/model/SaveSingleTaskForCreatingDnsHostRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForCreatingDnsHostRequest::getInstanceId()const void SaveSingleTaskForCreatingDnsHostRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector SaveSingleTaskForCreatingDnsHostRequest::getIp()const @@ -45,7 +45,7 @@ void SaveSingleTaskForCreatingDnsHostRequest::setIp(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderActivateRequest.cc b/domain/src/model/SaveSingleTaskForCreatingOrderActivateRequest.cc index a21b8a4f9..74ae45318 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderActivateRequest.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderActivateRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getCountry()const void SaveSingleTaskForCreatingOrderActivateRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } int SaveSingleTaskForCreatingOrderActivateRequest::getSubscriptionDuration()const @@ -44,7 +44,7 @@ int SaveSingleTaskForCreatingOrderActivateRequest::getSubscriptionDuration()cons void SaveSingleTaskForCreatingOrderActivateRequest::setSubscriptionDuration(int subscriptionDuration) { subscriptionDuration_ = subscriptionDuration; - setParameter("SubscriptionDuration", std::to_string(subscriptionDuration)); + setCoreParameter("SubscriptionDuration", std::to_string(subscriptionDuration)); } bool SaveSingleTaskForCreatingOrderActivateRequest::getPermitPremiumActivation()const @@ -55,7 +55,7 @@ bool SaveSingleTaskForCreatingOrderActivateRequest::getPermitPremiumActivation() void SaveSingleTaskForCreatingOrderActivateRequest::setPermitPremiumActivation(bool permitPremiumActivation) { permitPremiumActivation_ = permitPremiumActivation; - setParameter("PermitPremiumActivation", std::to_string(permitPremiumActivation)); + setCoreParameter("PermitPremiumActivation", permitPremiumActivation ? "true" : "false"); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getCity()const @@ -66,7 +66,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getCity()const void SaveSingleTaskForCreatingOrderActivateRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); + setCoreParameter("City", city); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getDns2()const @@ -77,7 +77,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getDns2()const void SaveSingleTaskForCreatingOrderActivateRequest::setDns2(const std::string& dns2) { dns2_ = dns2; - setParameter("Dns2", dns2); + setCoreParameter("Dns2", dns2); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getDns1()const @@ -88,7 +88,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getDns1()const void SaveSingleTaskForCreatingOrderActivateRequest::setDns1(const std::string& dns1) { dns1_ = dns1; - setParameter("Dns1", dns1); + setCoreParameter("Dns1", dns1); } long SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantProfileId()const @@ -99,7 +99,18 @@ long SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantProfileId()cons void SaveSingleTaskForCreatingOrderActivateRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); +} + +std::string SaveSingleTaskForCreatingOrderActivateRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveSingleTaskForCreatingOrderActivateRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); } bool SaveSingleTaskForCreatingOrderActivateRequest::getAliyunDns()const @@ -110,7 +121,7 @@ bool SaveSingleTaskForCreatingOrderActivateRequest::getAliyunDns()const void SaveSingleTaskForCreatingOrderActivateRequest::setAliyunDns(bool aliyunDns) { aliyunDns_ = aliyunDns; - setParameter("AliyunDns", std::to_string(aliyunDns)); + setCoreParameter("AliyunDns", aliyunDns ? "true" : "false"); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhCity()const @@ -121,7 +132,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhCity()const void SaveSingleTaskForCreatingOrderActivateRequest::setZhCity(const std::string& zhCity) { zhCity_ = zhCity; - setParameter("ZhCity", zhCity); + setCoreParameter("ZhCity", zhCity); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getTelExt()const @@ -132,7 +143,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getTelExt()const void SaveSingleTaskForCreatingOrderActivateRequest::setTelExt(const std::string& telExt) { telExt_ = telExt; - setParameter("TelExt", telExt); + setCoreParameter("TelExt", telExt); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhRegistrantName()const @@ -143,7 +154,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhRegistrantName() void SaveSingleTaskForCreatingOrderActivateRequest::setZhRegistrantName(const std::string& zhRegistrantName) { zhRegistrantName_ = zhRegistrantName; - setParameter("ZhRegistrantName", zhRegistrantName); + setCoreParameter("ZhRegistrantName", zhRegistrantName); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getProvince()const @@ -154,7 +165,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getProvince()const void SaveSingleTaskForCreatingOrderActivateRequest::setProvince(const std::string& province) { province_ = province; - setParameter("Province", province); + setCoreParameter("Province", province); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getPostalCode()const @@ -165,7 +176,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getPostalCode()const void SaveSingleTaskForCreatingOrderActivateRequest::setPostalCode(const std::string& postalCode) { postalCode_ = postalCode; - setParameter("PostalCode", postalCode); + setCoreParameter("PostalCode", postalCode); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getLang()const @@ -176,7 +187,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getLang()const void SaveSingleTaskForCreatingOrderActivateRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getEmail()const @@ -187,7 +198,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getEmail()const void SaveSingleTaskForCreatingOrderActivateRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhRegistrantOrganization()const @@ -198,7 +209,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhRegistrantOrgani void SaveSingleTaskForCreatingOrderActivateRequest::setZhRegistrantOrganization(const std::string& zhRegistrantOrganization) { zhRegistrantOrganization_ = zhRegistrantOrganization; - setParameter("ZhRegistrantOrganization", zhRegistrantOrganization); + setCoreParameter("ZhRegistrantOrganization", zhRegistrantOrganization); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getAddress()const @@ -209,7 +220,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getAddress()const void SaveSingleTaskForCreatingOrderActivateRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getTelArea()const @@ -220,7 +231,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getTelArea()const void SaveSingleTaskForCreatingOrderActivateRequest::setTelArea(const std::string& telArea) { telArea_ = telArea; - setParameter("TelArea", telArea); + setCoreParameter("TelArea", telArea); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getDomainName()const @@ -231,7 +242,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getDomainName()const void SaveSingleTaskForCreatingOrderActivateRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhAddress()const @@ -242,7 +253,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhAddress()const void SaveSingleTaskForCreatingOrderActivateRequest::setZhAddress(const std::string& zhAddress) { zhAddress_ = zhAddress; - setParameter("ZhAddress", zhAddress); + setCoreParameter("ZhAddress", zhAddress); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantType()const @@ -253,7 +264,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantType()co void SaveSingleTaskForCreatingOrderActivateRequest::setRegistrantType(const std::string& registrantType) { registrantType_ = registrantType; - setParameter("RegistrantType", registrantType); + setCoreParameter("RegistrantType", registrantType); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getTelephone()const @@ -264,7 +275,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getTelephone()const void SaveSingleTaskForCreatingOrderActivateRequest::setTelephone(const std::string& telephone) { telephone_ = telephone; - setParameter("Telephone", telephone); + setCoreParameter("Telephone", telephone); } bool SaveSingleTaskForCreatingOrderActivateRequest::getTrademarkDomainActivation()const @@ -275,7 +286,18 @@ bool SaveSingleTaskForCreatingOrderActivateRequest::getTrademarkDomainActivation void SaveSingleTaskForCreatingOrderActivateRequest::setTrademarkDomainActivation(bool trademarkDomainActivation) { trademarkDomainActivation_ = trademarkDomainActivation; - setParameter("TrademarkDomainActivation", std::to_string(trademarkDomainActivation)); + setCoreParameter("TrademarkDomainActivation", trademarkDomainActivation ? "true" : "false"); +} + +bool SaveSingleTaskForCreatingOrderActivateRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveSingleTaskForCreatingOrderActivateRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhProvince()const @@ -286,7 +308,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getZhProvince()const void SaveSingleTaskForCreatingOrderActivateRequest::setZhProvince(const std::string& zhProvince) { zhProvince_ = zhProvince; - setParameter("ZhProvince", zhProvince); + setCoreParameter("ZhProvince", zhProvince); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantOrganization()const @@ -297,7 +319,18 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantOrganiza void SaveSingleTaskForCreatingOrderActivateRequest::setRegistrantOrganization(const std::string& registrantOrganization) { registrantOrganization_ = registrantOrganization; - setParameter("RegistrantOrganization", registrantOrganization); + setCoreParameter("RegistrantOrganization", registrantOrganization); +} + +std::string SaveSingleTaskForCreatingOrderActivateRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveSingleTaskForCreatingOrderActivateRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); } bool SaveSingleTaskForCreatingOrderActivateRequest::getEnableDomainProxy()const @@ -308,7 +341,7 @@ bool SaveSingleTaskForCreatingOrderActivateRequest::getEnableDomainProxy()const void SaveSingleTaskForCreatingOrderActivateRequest::setEnableDomainProxy(bool enableDomainProxy) { enableDomainProxy_ = enableDomainProxy; - setParameter("EnableDomainProxy", std::to_string(enableDomainProxy)); + setCoreParameter("EnableDomainProxy", enableDomainProxy ? "true" : "false"); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getUserClientIp()const @@ -319,7 +352,7 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getUserClientIp()cons void SaveSingleTaskForCreatingOrderActivateRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantName()const @@ -330,6 +363,17 @@ std::string SaveSingleTaskForCreatingOrderActivateRequest::getRegistrantName()co void SaveSingleTaskForCreatingOrderActivateRequest::setRegistrantName(const std::string& registrantName) { registrantName_ = registrantName; - setParameter("RegistrantName", registrantName); + setCoreParameter("RegistrantName", registrantName); +} + +bool SaveSingleTaskForCreatingOrderActivateRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveSingleTaskForCreatingOrderActivateRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderActivateResult.cc b/domain/src/model/SaveSingleTaskForCreatingOrderActivateResult.cc index 3e565d97f..2279e06c1 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderActivateResult.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderActivateResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForCreatingOrderActivateResult::~SaveSingleTaskForCreatingOrderAct void SaveSingleTaskForCreatingOrderActivateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderRedeemRequest.cc b/domain/src/model/SaveSingleTaskForCreatingOrderRedeemRequest.cc index 0b744739c..ed64c65c3 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderRedeemRequest.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderRedeemRequest.cc @@ -25,6 +25,17 @@ SaveSingleTaskForCreatingOrderRedeemRequest::SaveSingleTaskForCreatingOrderRedee SaveSingleTaskForCreatingOrderRedeemRequest::~SaveSingleTaskForCreatingOrderRedeemRequest() {} +std::string SaveSingleTaskForCreatingOrderRedeemRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveSingleTaskForCreatingOrderRedeemRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); +} + long SaveSingleTaskForCreatingOrderRedeemRequest::getCurrentExpirationDate()const { return currentExpirationDate_; @@ -33,7 +44,7 @@ long SaveSingleTaskForCreatingOrderRedeemRequest::getCurrentExpirationDate()cons void SaveSingleTaskForCreatingOrderRedeemRequest::setCurrentExpirationDate(long currentExpirationDate) { currentExpirationDate_ = currentExpirationDate; - setParameter("CurrentExpirationDate", std::to_string(currentExpirationDate)); + setCoreParameter("CurrentExpirationDate", std::to_string(currentExpirationDate)); } std::string SaveSingleTaskForCreatingOrderRedeemRequest::getUserClientIp()const @@ -44,7 +55,7 @@ std::string SaveSingleTaskForCreatingOrderRedeemRequest::getUserClientIp()const void SaveSingleTaskForCreatingOrderRedeemRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForCreatingOrderRedeemRequest::getDomainName()const @@ -55,7 +66,29 @@ std::string SaveSingleTaskForCreatingOrderRedeemRequest::getDomainName()const void SaveSingleTaskForCreatingOrderRedeemRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); +} + +std::string SaveSingleTaskForCreatingOrderRedeemRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveSingleTaskForCreatingOrderRedeemRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +bool SaveSingleTaskForCreatingOrderRedeemRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveSingleTaskForCreatingOrderRedeemRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); } std::string SaveSingleTaskForCreatingOrderRedeemRequest::getLang()const @@ -66,6 +99,17 @@ std::string SaveSingleTaskForCreatingOrderRedeemRequest::getLang()const void SaveSingleTaskForCreatingOrderRedeemRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +bool SaveSingleTaskForCreatingOrderRedeemRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveSingleTaskForCreatingOrderRedeemRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderRedeemResult.cc b/domain/src/model/SaveSingleTaskForCreatingOrderRedeemResult.cc index 2321bcf30..2915ab272 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderRedeemResult.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderRedeemResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForCreatingOrderRedeemResult::~SaveSingleTaskForCreatingOrderRedee void SaveSingleTaskForCreatingOrderRedeemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderRenewRequest.cc b/domain/src/model/SaveSingleTaskForCreatingOrderRenewRequest.cc index df08e2422..211306bc1 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderRenewRequest.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderRenewRequest.cc @@ -33,7 +33,18 @@ int SaveSingleTaskForCreatingOrderRenewRequest::getSubscriptionDuration()const void SaveSingleTaskForCreatingOrderRenewRequest::setSubscriptionDuration(int subscriptionDuration) { subscriptionDuration_ = subscriptionDuration; - setParameter("SubscriptionDuration", std::to_string(subscriptionDuration)); + setCoreParameter("SubscriptionDuration", std::to_string(subscriptionDuration)); +} + +std::string SaveSingleTaskForCreatingOrderRenewRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveSingleTaskForCreatingOrderRenewRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); } long SaveSingleTaskForCreatingOrderRenewRequest::getCurrentExpirationDate()const @@ -44,7 +55,7 @@ long SaveSingleTaskForCreatingOrderRenewRequest::getCurrentExpirationDate()const void SaveSingleTaskForCreatingOrderRenewRequest::setCurrentExpirationDate(long currentExpirationDate) { currentExpirationDate_ = currentExpirationDate; - setParameter("CurrentExpirationDate", std::to_string(currentExpirationDate)); + setCoreParameter("CurrentExpirationDate", std::to_string(currentExpirationDate)); } std::string SaveSingleTaskForCreatingOrderRenewRequest::getUserClientIp()const @@ -55,7 +66,7 @@ std::string SaveSingleTaskForCreatingOrderRenewRequest::getUserClientIp()const void SaveSingleTaskForCreatingOrderRenewRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForCreatingOrderRenewRequest::getDomainName()const @@ -66,7 +77,29 @@ std::string SaveSingleTaskForCreatingOrderRenewRequest::getDomainName()const void SaveSingleTaskForCreatingOrderRenewRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); +} + +std::string SaveSingleTaskForCreatingOrderRenewRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveSingleTaskForCreatingOrderRenewRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +bool SaveSingleTaskForCreatingOrderRenewRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveSingleTaskForCreatingOrderRenewRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); } std::string SaveSingleTaskForCreatingOrderRenewRequest::getLang()const @@ -77,6 +110,17 @@ std::string SaveSingleTaskForCreatingOrderRenewRequest::getLang()const void SaveSingleTaskForCreatingOrderRenewRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +bool SaveSingleTaskForCreatingOrderRenewRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveSingleTaskForCreatingOrderRenewRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderRenewResult.cc b/domain/src/model/SaveSingleTaskForCreatingOrderRenewResult.cc index ba5d867ab..453a83185 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderRenewResult.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderRenewResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForCreatingOrderRenewResult::~SaveSingleTaskForCreatingOrderRenewR void SaveSingleTaskForCreatingOrderRenewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderTransferRequest.cc b/domain/src/model/SaveSingleTaskForCreatingOrderTransferRequest.cc index 4d23f3fec..43996659b 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderTransferRequest.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderTransferRequest.cc @@ -33,7 +33,18 @@ bool SaveSingleTaskForCreatingOrderTransferRequest::getPermitPremiumTransfer()co void SaveSingleTaskForCreatingOrderTransferRequest::setPermitPremiumTransfer(bool permitPremiumTransfer) { permitPremiumTransfer_ = permitPremiumTransfer; - setParameter("PermitPremiumTransfer", std::to_string(permitPremiumTransfer)); + setCoreParameter("PermitPremiumTransfer", permitPremiumTransfer ? "true" : "false"); +} + +std::string SaveSingleTaskForCreatingOrderTransferRequest::getPromotionNo()const +{ + return promotionNo_; +} + +void SaveSingleTaskForCreatingOrderTransferRequest::setPromotionNo(const std::string& promotionNo) +{ + promotionNo_ = promotionNo; + setCoreParameter("PromotionNo", promotionNo); } std::string SaveSingleTaskForCreatingOrderTransferRequest::getAuthorizationCode()const @@ -44,7 +55,7 @@ std::string SaveSingleTaskForCreatingOrderTransferRequest::getAuthorizationCode( void SaveSingleTaskForCreatingOrderTransferRequest::setAuthorizationCode(const std::string& authorizationCode) { authorizationCode_ = authorizationCode; - setParameter("AuthorizationCode", authorizationCode); + setCoreParameter("AuthorizationCode", authorizationCode); } std::string SaveSingleTaskForCreatingOrderTransferRequest::getUserClientIp()const @@ -55,7 +66,7 @@ std::string SaveSingleTaskForCreatingOrderTransferRequest::getUserClientIp()cons void SaveSingleTaskForCreatingOrderTransferRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForCreatingOrderTransferRequest::getDomainName()const @@ -66,7 +77,7 @@ std::string SaveSingleTaskForCreatingOrderTransferRequest::getDomainName()const void SaveSingleTaskForCreatingOrderTransferRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SaveSingleTaskForCreatingOrderTransferRequest::getRegistrantProfileId()const @@ -77,7 +88,29 @@ long SaveSingleTaskForCreatingOrderTransferRequest::getRegistrantProfileId()cons void SaveSingleTaskForCreatingOrderTransferRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); +} + +std::string SaveSingleTaskForCreatingOrderTransferRequest::getCouponNo()const +{ + return couponNo_; +} + +void SaveSingleTaskForCreatingOrderTransferRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +bool SaveSingleTaskForCreatingOrderTransferRequest::getUseCoupon()const +{ + return useCoupon_; +} + +void SaveSingleTaskForCreatingOrderTransferRequest::setUseCoupon(bool useCoupon) +{ + useCoupon_ = useCoupon; + setCoreParameter("UseCoupon", useCoupon ? "true" : "false"); } std::string SaveSingleTaskForCreatingOrderTransferRequest::getLang()const @@ -88,6 +121,17 @@ std::string SaveSingleTaskForCreatingOrderTransferRequest::getLang()const void SaveSingleTaskForCreatingOrderTransferRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); +} + +bool SaveSingleTaskForCreatingOrderTransferRequest::getUsePromotion()const +{ + return usePromotion_; +} + +void SaveSingleTaskForCreatingOrderTransferRequest::setUsePromotion(bool usePromotion) +{ + usePromotion_ = usePromotion; + setCoreParameter("UsePromotion", usePromotion ? "true" : "false"); } diff --git a/domain/src/model/SaveSingleTaskForCreatingOrderTransferResult.cc b/domain/src/model/SaveSingleTaskForCreatingOrderTransferResult.cc index 70f2b5ab9..010611d7b 100644 --- a/domain/src/model/SaveSingleTaskForCreatingOrderTransferResult.cc +++ b/domain/src/model/SaveSingleTaskForCreatingOrderTransferResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForCreatingOrderTransferResult::~SaveSingleTaskForCreatingOrderTra void SaveSingleTaskForCreatingOrderTransferResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForDeletingDSRecordRequest.cc b/domain/src/model/SaveSingleTaskForDeletingDSRecordRequest.cc new file mode 100644 index 000000000..716a61748 --- /dev/null +++ b/domain/src/model/SaveSingleTaskForDeletingDSRecordRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::SaveSingleTaskForDeletingDSRecordRequest; + +SaveSingleTaskForDeletingDSRecordRequest::SaveSingleTaskForDeletingDSRecordRequest() : + RpcServiceRequest("domain", "2018-01-29", "SaveSingleTaskForDeletingDSRecord") +{} + +SaveSingleTaskForDeletingDSRecordRequest::~SaveSingleTaskForDeletingDSRecordRequest() +{} + +int SaveSingleTaskForDeletingDSRecordRequest::getKeyTag()const +{ + return keyTag_; +} + +void SaveSingleTaskForDeletingDSRecordRequest::setKeyTag(int keyTag) +{ + keyTag_ = keyTag; + setCoreParameter("KeyTag", std::to_string(keyTag)); +} + +std::string SaveSingleTaskForDeletingDSRecordRequest::getDomainName()const +{ + return domainName_; +} + +void SaveSingleTaskForDeletingDSRecordRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string SaveSingleTaskForDeletingDSRecordRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void SaveSingleTaskForDeletingDSRecordRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string SaveSingleTaskForDeletingDSRecordRequest::getLang()const +{ + return lang_; +} + +void SaveSingleTaskForDeletingDSRecordRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/domain/src/model/SaveSingleTaskForDeletingDSRecordResult.cc b/domain/src/model/SaveSingleTaskForDeletingDSRecordResult.cc new file mode 100644 index 000000000..9a2128b70 --- /dev/null +++ b/domain/src/model/SaveSingleTaskForDeletingDSRecordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveSingleTaskForDeletingDSRecordResult::SaveSingleTaskForDeletingDSRecordResult() : + ServiceResult() +{} + +SaveSingleTaskForDeletingDSRecordResult::SaveSingleTaskForDeletingDSRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveSingleTaskForDeletingDSRecordResult::~SaveSingleTaskForDeletingDSRecordResult() +{} + +void SaveSingleTaskForDeletingDSRecordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveSingleTaskForDeletingDSRecordResult::getTaskNo()const +{ + return taskNo_; +} + diff --git a/domain/src/model/SaveSingleTaskForDeletingDnsHostRequest.cc b/domain/src/model/SaveSingleTaskForDeletingDnsHostRequest.cc index b6ac4407c..910deaf9c 100644 --- a/domain/src/model/SaveSingleTaskForDeletingDnsHostRequest.cc +++ b/domain/src/model/SaveSingleTaskForDeletingDnsHostRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForDeletingDnsHostRequest::getInstanceId()const void SaveSingleTaskForDeletingDnsHostRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string SaveSingleTaskForDeletingDnsHostRequest::getDnsName()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForDeletingDnsHostRequest::getDnsName()const void SaveSingleTaskForDeletingDnsHostRequest::setDnsName(const std::string& dnsName) { dnsName_ = dnsName; - setParameter("DnsName", dnsName); + setCoreParameter("DnsName", dnsName); } std::string SaveSingleTaskForDeletingDnsHostRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string SaveSingleTaskForDeletingDnsHostRequest::getUserClientIp()const void SaveSingleTaskForDeletingDnsHostRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForDeletingDnsHostRequest::getLang()const @@ -66,6 +66,6 @@ std::string SaveSingleTaskForDeletingDnsHostRequest::getLang()const void SaveSingleTaskForDeletingDnsHostRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForDeletingDnsHostResult.cc b/domain/src/model/SaveSingleTaskForDeletingDnsHostResult.cc index 31e701b75..3c4d014db 100644 --- a/domain/src/model/SaveSingleTaskForDeletingDnsHostResult.cc +++ b/domain/src/model/SaveSingleTaskForDeletingDnsHostResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForDeletingDnsHostResult::~SaveSingleTaskForDeletingDnsHostResult( void SaveSingleTaskForDeletingDnsHostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForDisassociatingEnsRequest.cc b/domain/src/model/SaveSingleTaskForDisassociatingEnsRequest.cc index a64b02544..1c3d85262 100644 --- a/domain/src/model/SaveSingleTaskForDisassociatingEnsRequest.cc +++ b/domain/src/model/SaveSingleTaskForDisassociatingEnsRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForDisassociatingEnsRequest::getUserClientIp()const void SaveSingleTaskForDisassociatingEnsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForDisassociatingEnsRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForDisassociatingEnsRequest::getDomainName()const void SaveSingleTaskForDisassociatingEnsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForDisassociatingEnsRequest::getLang()const @@ -55,6 +55,6 @@ std::string SaveSingleTaskForDisassociatingEnsRequest::getLang()const void SaveSingleTaskForDisassociatingEnsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForDisassociatingEnsResult.cc b/domain/src/model/SaveSingleTaskForDisassociatingEnsResult.cc index 17ebc941f..ef6d178ce 100644 --- a/domain/src/model/SaveSingleTaskForDisassociatingEnsResult.cc +++ b/domain/src/model/SaveSingleTaskForDisassociatingEnsResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForDisassociatingEnsResult::~SaveSingleTaskForDisassociatingEnsRes void SaveSingleTaskForDisassociatingEnsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForDomainNameProxyServiceRequest.cc b/domain/src/model/SaveSingleTaskForDomainNameProxyServiceRequest.cc index f689a7406..849d7d0eb 100644 --- a/domain/src/model/SaveSingleTaskForDomainNameProxyServiceRequest.cc +++ b/domain/src/model/SaveSingleTaskForDomainNameProxyServiceRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForDomainNameProxyServiceRequest::getUserClientIp()con void SaveSingleTaskForDomainNameProxyServiceRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForDomainNameProxyServiceRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForDomainNameProxyServiceRequest::getDomainName()const void SaveSingleTaskForDomainNameProxyServiceRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForDomainNameProxyServiceRequest::getLang()const @@ -55,7 +55,7 @@ std::string SaveSingleTaskForDomainNameProxyServiceRequest::getLang()const void SaveSingleTaskForDomainNameProxyServiceRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SaveSingleTaskForDomainNameProxyServiceRequest::getStatus()const @@ -66,6 +66,6 @@ bool SaveSingleTaskForDomainNameProxyServiceRequest::getStatus()const void SaveSingleTaskForDomainNameProxyServiceRequest::setStatus(bool status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", status ? "true" : "false"); } diff --git a/domain/src/model/SaveSingleTaskForDomainNameProxyServiceResult.cc b/domain/src/model/SaveSingleTaskForDomainNameProxyServiceResult.cc index 369f7e54c..f8c0361ae 100644 --- a/domain/src/model/SaveSingleTaskForDomainNameProxyServiceResult.cc +++ b/domain/src/model/SaveSingleTaskForDomainNameProxyServiceResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForDomainNameProxyServiceResult::~SaveSingleTaskForDomainNameProxy void SaveSingleTaskForDomainNameProxyServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForModifyingDSRecordRequest.cc b/domain/src/model/SaveSingleTaskForModifyingDSRecordRequest.cc new file mode 100644 index 000000000..7c5d3102c --- /dev/null +++ b/domain/src/model/SaveSingleTaskForModifyingDSRecordRequest.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 + +using AlibabaCloud::Domain::Model::SaveSingleTaskForModifyingDSRecordRequest; + +SaveSingleTaskForModifyingDSRecordRequest::SaveSingleTaskForModifyingDSRecordRequest() : + RpcServiceRequest("domain", "2018-01-29", "SaveSingleTaskForModifyingDSRecord") +{} + +SaveSingleTaskForModifyingDSRecordRequest::~SaveSingleTaskForModifyingDSRecordRequest() +{} + +int SaveSingleTaskForModifyingDSRecordRequest::getKeyTag()const +{ + return keyTag_; +} + +void SaveSingleTaskForModifyingDSRecordRequest::setKeyTag(int keyTag) +{ + keyTag_ = keyTag; + setCoreParameter("KeyTag", std::to_string(keyTag)); +} + +std::string SaveSingleTaskForModifyingDSRecordRequest::getDomainName()const +{ + return domainName_; +} + +void SaveSingleTaskForModifyingDSRecordRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string SaveSingleTaskForModifyingDSRecordRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void SaveSingleTaskForModifyingDSRecordRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +int SaveSingleTaskForModifyingDSRecordRequest::getDigestType()const +{ + return digestType_; +} + +void SaveSingleTaskForModifyingDSRecordRequest::setDigestType(int digestType) +{ + digestType_ = digestType; + setCoreParameter("DigestType", std::to_string(digestType)); +} + +std::string SaveSingleTaskForModifyingDSRecordRequest::getDigest()const +{ + return digest_; +} + +void SaveSingleTaskForModifyingDSRecordRequest::setDigest(const std::string& digest) +{ + digest_ = digest; + setCoreParameter("Digest", digest); +} + +std::string SaveSingleTaskForModifyingDSRecordRequest::getLang()const +{ + return lang_; +} + +void SaveSingleTaskForModifyingDSRecordRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +int SaveSingleTaskForModifyingDSRecordRequest::getAlgorithm()const +{ + return algorithm_; +} + +void SaveSingleTaskForModifyingDSRecordRequest::setAlgorithm(int algorithm) +{ + algorithm_ = algorithm; + setCoreParameter("Algorithm", std::to_string(algorithm)); +} + diff --git a/domain/src/model/SaveSingleTaskForModifyingDSRecordResult.cc b/domain/src/model/SaveSingleTaskForModifyingDSRecordResult.cc new file mode 100644 index 000000000..a68aa2648 --- /dev/null +++ b/domain/src/model/SaveSingleTaskForModifyingDSRecordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveSingleTaskForModifyingDSRecordResult::SaveSingleTaskForModifyingDSRecordResult() : + ServiceResult() +{} + +SaveSingleTaskForModifyingDSRecordResult::SaveSingleTaskForModifyingDSRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveSingleTaskForModifyingDSRecordResult::~SaveSingleTaskForModifyingDSRecordResult() +{} + +void SaveSingleTaskForModifyingDSRecordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveSingleTaskForModifyingDSRecordResult::getTaskNo()const +{ + return taskNo_; +} + diff --git a/domain/src/model/SaveSingleTaskForModifyingDnsHostRequest.cc b/domain/src/model/SaveSingleTaskForModifyingDnsHostRequest.cc index 0e6443dfc..92113e57c 100644 --- a/domain/src/model/SaveSingleTaskForModifyingDnsHostRequest.cc +++ b/domain/src/model/SaveSingleTaskForModifyingDnsHostRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForModifyingDnsHostRequest::getInstanceId()const void SaveSingleTaskForModifyingDnsHostRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::vector SaveSingleTaskForModifyingDnsHostRequest::getIp()const @@ -45,7 +45,7 @@ void SaveSingleTaskForModifyingDnsHostRequest::setIp(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.cc b/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.cc index c903bd7af..40fc85d5d 100644 --- a/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.cc +++ b/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::getDomain void SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::getUserCl void SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::getLang()const @@ -55,6 +55,6 @@ std::string SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::getLang() void SaveSingleTaskForQueryingTransferAuthorizationCodeRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.cc b/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.cc index ef5aef077..58d9d188e 100644 --- a/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.cc +++ b/domain/src/model/SaveSingleTaskForQueryingTransferAuthorizationCodeResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForQueryingTransferAuthorizationCodeResult::~SaveSingleTaskForQuer void SaveSingleTaskForQueryingTransferAuthorizationCodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForSaveArtExtensionRequest.cc b/domain/src/model/SaveSingleTaskForSaveArtExtensionRequest.cc new file mode 100644 index 000000000..18bb4bb7f --- /dev/null +++ b/domain/src/model/SaveSingleTaskForSaveArtExtensionRequest.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 + +using AlibabaCloud::Domain::Model::SaveSingleTaskForSaveArtExtensionRequest; + +SaveSingleTaskForSaveArtExtensionRequest::SaveSingleTaskForSaveArtExtensionRequest() : + RpcServiceRequest("domain", "2018-01-29", "SaveSingleTaskForSaveArtExtension") +{} + +SaveSingleTaskForSaveArtExtensionRequest::~SaveSingleTaskForSaveArtExtensionRequest() +{} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getReference()const +{ + return reference_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setReference(const std::string& reference) +{ + reference_ = reference; + setCoreParameter("Reference", reference); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getFeatures()const +{ + return features_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setFeatures(const std::string& features) +{ + features_ = features; + setCoreParameter("Features", features); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getInscriptionsAndMarkings()const +{ + return inscriptionsAndMarkings_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setInscriptionsAndMarkings(const std::string& inscriptionsAndMarkings) +{ + inscriptionsAndMarkings_ = inscriptionsAndMarkings; + setCoreParameter("InscriptionsAndMarkings", inscriptionsAndMarkings); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getSubject()const +{ + return subject_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setSubject(const std::string& subject) +{ + subject_ = subject; + setCoreParameter("Subject", subject); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getDomainName()const +{ + return domainName_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getMaker()const +{ + return maker_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setMaker(const std::string& maker) +{ + maker_ = maker; + setCoreParameter("Maker", maker); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getObjectType()const +{ + return objectType_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setObjectType(const std::string& objectType) +{ + objectType_ = objectType; + setCoreParameter("ObjectType", objectType); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getTitle()const +{ + return title_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setTitle(const std::string& title) +{ + title_ = title; + setCoreParameter("Title", title); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getLang()const +{ + return lang_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getMaterialsAndTechniques()const +{ + return materialsAndTechniques_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setMaterialsAndTechniques(const std::string& materialsAndTechniques) +{ + materialsAndTechniques_ = materialsAndTechniques; + setCoreParameter("MaterialsAndTechniques", materialsAndTechniques); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getDateOrPeriod()const +{ + return dateOrPeriod_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setDateOrPeriod(const std::string& dateOrPeriod) +{ + dateOrPeriod_ = dateOrPeriod; + setCoreParameter("DateOrPeriod", dateOrPeriod); +} + +std::string SaveSingleTaskForSaveArtExtensionRequest::getDimensions()const +{ + return dimensions_; +} + +void SaveSingleTaskForSaveArtExtensionRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setCoreParameter("Dimensions", dimensions); +} + diff --git a/domain/src/model/SaveSingleTaskForSaveArtExtensionResult.cc b/domain/src/model/SaveSingleTaskForSaveArtExtensionResult.cc new file mode 100644 index 000000000..fb51320c5 --- /dev/null +++ b/domain/src/model/SaveSingleTaskForSaveArtExtensionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveSingleTaskForSaveArtExtensionResult::SaveSingleTaskForSaveArtExtensionResult() : + ServiceResult() +{} + +SaveSingleTaskForSaveArtExtensionResult::SaveSingleTaskForSaveArtExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveSingleTaskForSaveArtExtensionResult::~SaveSingleTaskForSaveArtExtensionResult() +{} + +void SaveSingleTaskForSaveArtExtensionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveSingleTaskForSaveArtExtensionResult::getTaskNo()const +{ + return taskNo_; +} + diff --git a/domain/src/model/SaveSingleTaskForSynchronizingDSRecordRequest.cc b/domain/src/model/SaveSingleTaskForSynchronizingDSRecordRequest.cc new file mode 100644 index 000000000..75ca776d5 --- /dev/null +++ b/domain/src/model/SaveSingleTaskForSynchronizingDSRecordRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::SaveSingleTaskForSynchronizingDSRecordRequest; + +SaveSingleTaskForSynchronizingDSRecordRequest::SaveSingleTaskForSynchronizingDSRecordRequest() : + RpcServiceRequest("domain", "2018-01-29", "SaveSingleTaskForSynchronizingDSRecord") +{} + +SaveSingleTaskForSynchronizingDSRecordRequest::~SaveSingleTaskForSynchronizingDSRecordRequest() +{} + +std::string SaveSingleTaskForSynchronizingDSRecordRequest::getDomainName()const +{ + return domainName_; +} + +void SaveSingleTaskForSynchronizingDSRecordRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string SaveSingleTaskForSynchronizingDSRecordRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void SaveSingleTaskForSynchronizingDSRecordRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +std::string SaveSingleTaskForSynchronizingDSRecordRequest::getLang()const +{ + return lang_; +} + +void SaveSingleTaskForSynchronizingDSRecordRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/domain/src/model/SaveSingleTaskForSynchronizingDSRecordResult.cc b/domain/src/model/SaveSingleTaskForSynchronizingDSRecordResult.cc new file mode 100644 index 000000000..48ae17167 --- /dev/null +++ b/domain/src/model/SaveSingleTaskForSynchronizingDSRecordResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveSingleTaskForSynchronizingDSRecordResult::SaveSingleTaskForSynchronizingDSRecordResult() : + ServiceResult() +{} + +SaveSingleTaskForSynchronizingDSRecordResult::SaveSingleTaskForSynchronizingDSRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveSingleTaskForSynchronizingDSRecordResult::~SaveSingleTaskForSynchronizingDSRecordResult() +{} + +void SaveSingleTaskForSynchronizingDSRecordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveSingleTaskForSynchronizingDSRecordResult::getTaskNo()const +{ + return taskNo_; +} + diff --git a/domain/src/model/SaveSingleTaskForSynchronizingDnsHostRequest.cc b/domain/src/model/SaveSingleTaskForSynchronizingDnsHostRequest.cc index 72402373e..b25ca74c3 100644 --- a/domain/src/model/SaveSingleTaskForSynchronizingDnsHostRequest.cc +++ b/domain/src/model/SaveSingleTaskForSynchronizingDnsHostRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForSynchronizingDnsHostRequest::getInstanceId()const void SaveSingleTaskForSynchronizingDnsHostRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string SaveSingleTaskForSynchronizingDnsHostRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForSynchronizingDnsHostRequest::getUserClientIp()const void SaveSingleTaskForSynchronizingDnsHostRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForSynchronizingDnsHostRequest::getLang()const @@ -55,6 +55,6 @@ std::string SaveSingleTaskForSynchronizingDnsHostRequest::getLang()const void SaveSingleTaskForSynchronizingDnsHostRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForSynchronizingDnsHostResult.cc b/domain/src/model/SaveSingleTaskForSynchronizingDnsHostResult.cc index c04e74f29..4182e96e4 100644 --- a/domain/src/model/SaveSingleTaskForSynchronizingDnsHostResult.cc +++ b/domain/src/model/SaveSingleTaskForSynchronizingDnsHostResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForSynchronizingDnsHostResult::~SaveSingleTaskForSynchronizingDnsH void SaveSingleTaskForSynchronizingDnsHostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForTransferProhibitionLockRequest.cc b/domain/src/model/SaveSingleTaskForTransferProhibitionLockRequest.cc index 8180b05ec..23f635d7d 100644 --- a/domain/src/model/SaveSingleTaskForTransferProhibitionLockRequest.cc +++ b/domain/src/model/SaveSingleTaskForTransferProhibitionLockRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForTransferProhibitionLockRequest::getUserClientIp()co void SaveSingleTaskForTransferProhibitionLockRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForTransferProhibitionLockRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForTransferProhibitionLockRequest::getDomainName()cons void SaveSingleTaskForTransferProhibitionLockRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForTransferProhibitionLockRequest::getLang()const @@ -55,7 +55,7 @@ std::string SaveSingleTaskForTransferProhibitionLockRequest::getLang()const void SaveSingleTaskForTransferProhibitionLockRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SaveSingleTaskForTransferProhibitionLockRequest::getStatus()const @@ -66,6 +66,6 @@ bool SaveSingleTaskForTransferProhibitionLockRequest::getStatus()const void SaveSingleTaskForTransferProhibitionLockRequest::setStatus(bool status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", status ? "true" : "false"); } diff --git a/domain/src/model/SaveSingleTaskForTransferProhibitionLockResult.cc b/domain/src/model/SaveSingleTaskForTransferProhibitionLockResult.cc index bd4f58ba8..bfecfb895 100644 --- a/domain/src/model/SaveSingleTaskForTransferProhibitionLockResult.cc +++ b/domain/src/model/SaveSingleTaskForTransferProhibitionLockResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForTransferProhibitionLockResult::~SaveSingleTaskForTransferProhib void SaveSingleTaskForTransferProhibitionLockResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForUpdateProhibitionLockRequest.cc b/domain/src/model/SaveSingleTaskForUpdateProhibitionLockRequest.cc index 3d3ce71be..523389345 100644 --- a/domain/src/model/SaveSingleTaskForUpdateProhibitionLockRequest.cc +++ b/domain/src/model/SaveSingleTaskForUpdateProhibitionLockRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForUpdateProhibitionLockRequest::getUserClientIp()cons void SaveSingleTaskForUpdateProhibitionLockRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForUpdateProhibitionLockRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForUpdateProhibitionLockRequest::getDomainName()const void SaveSingleTaskForUpdateProhibitionLockRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string SaveSingleTaskForUpdateProhibitionLockRequest::getLang()const @@ -55,7 +55,7 @@ std::string SaveSingleTaskForUpdateProhibitionLockRequest::getLang()const void SaveSingleTaskForUpdateProhibitionLockRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } bool SaveSingleTaskForUpdateProhibitionLockRequest::getStatus()const @@ -66,6 +66,6 @@ bool SaveSingleTaskForUpdateProhibitionLockRequest::getStatus()const void SaveSingleTaskForUpdateProhibitionLockRequest::setStatus(bool status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", status ? "true" : "false"); } diff --git a/domain/src/model/SaveSingleTaskForUpdateProhibitionLockResult.cc b/domain/src/model/SaveSingleTaskForUpdateProhibitionLockResult.cc index 7bb9dae8f..cd81dd0fc 100644 --- a/domain/src/model/SaveSingleTaskForUpdateProhibitionLockResult.cc +++ b/domain/src/model/SaveSingleTaskForUpdateProhibitionLockResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForUpdateProhibitionLockResult::~SaveSingleTaskForUpdateProhibitio void SaveSingleTaskForUpdateProhibitionLockResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveSingleTaskForUpdatingContactInfoRequest.cc b/domain/src/model/SaveSingleTaskForUpdatingContactInfoRequest.cc index 9233e18f5..ebd39a5df 100644 --- a/domain/src/model/SaveSingleTaskForUpdatingContactInfoRequest.cc +++ b/domain/src/model/SaveSingleTaskForUpdatingContactInfoRequest.cc @@ -33,7 +33,7 @@ std::string SaveSingleTaskForUpdatingContactInfoRequest::getInstanceId()const void SaveSingleTaskForUpdatingContactInfoRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string SaveSingleTaskForUpdatingContactInfoRequest::getContactType()const @@ -44,7 +44,7 @@ std::string SaveSingleTaskForUpdatingContactInfoRequest::getContactType()const void SaveSingleTaskForUpdatingContactInfoRequest::setContactType(const std::string& contactType) { contactType_ = contactType; - setParameter("ContactType", contactType); + setCoreParameter("ContactType", contactType); } std::string SaveSingleTaskForUpdatingContactInfoRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string SaveSingleTaskForUpdatingContactInfoRequest::getUserClientIp()const void SaveSingleTaskForUpdatingContactInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveSingleTaskForUpdatingContactInfoRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string SaveSingleTaskForUpdatingContactInfoRequest::getDomainName()const void SaveSingleTaskForUpdatingContactInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SaveSingleTaskForUpdatingContactInfoRequest::getRegistrantProfileId()const @@ -77,7 +77,7 @@ long SaveSingleTaskForUpdatingContactInfoRequest::getRegistrantProfileId()const void SaveSingleTaskForUpdatingContactInfoRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } bool SaveSingleTaskForUpdatingContactInfoRequest::getAddTransferLock()const @@ -88,7 +88,7 @@ bool SaveSingleTaskForUpdatingContactInfoRequest::getAddTransferLock()const void SaveSingleTaskForUpdatingContactInfoRequest::setAddTransferLock(bool addTransferLock) { addTransferLock_ = addTransferLock; - setParameter("AddTransferLock", std::to_string(addTransferLock)); + setCoreParameter("AddTransferLock", addTransferLock ? "true" : "false"); } std::string SaveSingleTaskForUpdatingContactInfoRequest::getLang()const @@ -99,6 +99,6 @@ std::string SaveSingleTaskForUpdatingContactInfoRequest::getLang()const void SaveSingleTaskForUpdatingContactInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveSingleTaskForUpdatingContactInfoResult.cc b/domain/src/model/SaveSingleTaskForUpdatingContactInfoResult.cc index c257c38a7..9bc8d8963 100644 --- a/domain/src/model/SaveSingleTaskForUpdatingContactInfoResult.cc +++ b/domain/src/model/SaveSingleTaskForUpdatingContactInfoResult.cc @@ -35,10 +35,13 @@ SaveSingleTaskForUpdatingContactInfoResult::~SaveSingleTaskForUpdatingContactInf void SaveSingleTaskForUpdatingContactInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveTaskForSubmittingDomainDeleteRequest.cc b/domain/src/model/SaveTaskForSubmittingDomainDeleteRequest.cc index 8de89f4d6..eaaada912 100644 --- a/domain/src/model/SaveTaskForSubmittingDomainDeleteRequest.cc +++ b/domain/src/model/SaveTaskForSubmittingDomainDeleteRequest.cc @@ -33,7 +33,7 @@ std::string SaveTaskForSubmittingDomainDeleteRequest::getInstanceId()const void SaveTaskForSubmittingDomainDeleteRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string SaveTaskForSubmittingDomainDeleteRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveTaskForSubmittingDomainDeleteRequest::getUserClientIp()const void SaveTaskForSubmittingDomainDeleteRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveTaskForSubmittingDomainDeleteRequest::getLang()const @@ -55,6 +55,6 @@ std::string SaveTaskForSubmittingDomainDeleteRequest::getLang()const void SaveTaskForSubmittingDomainDeleteRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveTaskForSubmittingDomainDeleteResult.cc b/domain/src/model/SaveTaskForSubmittingDomainDeleteResult.cc index cd982fe4e..b358c1259 100644 --- a/domain/src/model/SaveTaskForSubmittingDomainDeleteResult.cc +++ b/domain/src/model/SaveTaskForSubmittingDomainDeleteResult.cc @@ -35,10 +35,13 @@ SaveTaskForSubmittingDomainDeleteResult::~SaveTaskForSubmittingDomainDeleteResul void SaveTaskForSubmittingDomainDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest.cc b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest.cc index 5ca9bdb4e..7026ebe52 100644 --- a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest.cc +++ b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest.cc @@ -33,7 +33,7 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialR void SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::setIdentityCredentialType(const std::string& identityCredentialType) { identityCredentialType_ = identityCredentialType; - setParameter("IdentityCredentialType", identityCredentialType); + setCoreParameter("IdentityCredentialType", identityCredentialType); } std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialR void SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::getIdentityCredential()const @@ -55,7 +55,7 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialR void SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::setIdentityCredential(const std::string& identityCredential) { identityCredential_ = identityCredential; - setParameter("IdentityCredential", identityCredential); + setCoreParameter("IdentityCredential", identityCredential); } std::vector SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::getDomainName()const @@ -67,7 +67,7 @@ void SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest: { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::getLang()const @@ -78,7 +78,7 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialR void SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::getIdentityCredentialNo()const @@ -89,6 +89,6 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialR void SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest::setIdentityCredentialNo(const std::string& identityCredentialNo) { identityCredentialNo_ = identityCredentialNo; - setParameter("IdentityCredentialNo", identityCredentialNo); + setCoreParameter("IdentityCredentialNo", identityCredentialNo); } diff --git a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResult.cc b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResult.cc index 7c6077921..921f57700 100644 --- a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResult.cc +++ b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResult.cc @@ -35,10 +35,13 @@ SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResult::~Save void SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest.cc b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest.cc index 0f95039d9..9e8b07edf 100644 --- a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest.cc +++ b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest.cc @@ -33,7 +33,7 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID void SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID void SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID void SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::getRegistrantProfileId()const @@ -66,7 +66,7 @@ long SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest void SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } std::string SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::getLang()const @@ -77,6 +77,6 @@ std::string SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID void SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult.cc b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult.cc index 69b07eccd..5e2b7e535 100644 --- a/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult.cc +++ b/domain/src/model/SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult.cc @@ -35,10 +35,13 @@ SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult::~Sav void SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest.cc b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest.cc index 523c4adc4..9f1a3664d 100644 --- a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest.cc +++ b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest.cc @@ -33,7 +33,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getCou void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getIdentityCredentialType()const @@ -44,7 +44,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getIde void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setIdentityCredentialType(const std::string& identityCredentialType) { identityCredentialType_ = identityCredentialType; - setParameter("IdentityCredentialType", identityCredentialType); + setCoreParameter("IdentityCredentialType", identityCredentialType); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getAddress()const @@ -55,7 +55,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getAdd void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTelArea()const @@ -66,7 +66,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTel void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setTelArea(const std::string& telArea) { telArea_ = telArea; - setParameter("TelArea", telArea); + setCoreParameter("TelArea", telArea); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getCity()const @@ -77,7 +77,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getCit void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); + setCoreParameter("City", city); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhAddress()const @@ -88,7 +88,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhA void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setZhAddress(const std::string& zhAddress) { zhAddress_ = zhAddress; - setParameter("ZhAddress", zhAddress); + setCoreParameter("ZhAddress", zhAddress); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getRegistrantType()const @@ -99,7 +99,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getReg void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setRegistrantType(const std::string& registrantType) { registrantType_ = registrantType; - setParameter("RegistrantType", registrantType); + setCoreParameter("RegistrantType", registrantType); } std::vector SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getDomainName()const @@ -111,7 +111,7 @@ void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setDomainName { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getIdentityCredential()const @@ -122,7 +122,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getIde void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setIdentityCredential(const std::string& identityCredential) { identityCredential_ = identityCredential; - setParameter("IdentityCredential", identityCredential); + setCoreParameter("IdentityCredential", identityCredential); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTelephone()const @@ -133,7 +133,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTel void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setTelephone(const std::string& telephone) { telephone_ = telephone; - setParameter("Telephone", telephone); + setCoreParameter("Telephone", telephone); } bool SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTransferOutProhibited()const @@ -144,7 +144,7 @@ bool SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTransferOu void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setTransferOutProhibited(bool transferOutProhibited) { transferOutProhibited_ = transferOutProhibited; - setParameter("TransferOutProhibited", std::to_string(transferOutProhibited)); + setCoreParameter("TransferOutProhibited", transferOutProhibited ? "true" : "false"); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhCity()const @@ -155,7 +155,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhC void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setZhCity(const std::string& zhCity) { zhCity_ = zhCity; - setParameter("ZhCity", zhCity); + setCoreParameter("ZhCity", zhCity); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhProvince()const @@ -166,7 +166,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhP void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setZhProvince(const std::string& zhProvince) { zhProvince_ = zhProvince; - setParameter("ZhProvince", zhProvince); + setCoreParameter("ZhProvince", zhProvince); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getRegistrantOrganization()const @@ -177,7 +177,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getReg void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setRegistrantOrganization(const std::string& registrantOrganization) { registrantOrganization_ = registrantOrganization; - setParameter("RegistrantOrganization", registrantOrganization); + setCoreParameter("RegistrantOrganization", registrantOrganization); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTelExt()const @@ -188,7 +188,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getTel void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setTelExt(const std::string& telExt) { telExt_ = telExt; - setParameter("TelExt", telExt); + setCoreParameter("TelExt", telExt); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getProvince()const @@ -199,7 +199,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getPro void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setProvince(const std::string& province) { province_ = province; - setParameter("Province", province); + setCoreParameter("Province", province); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhRegistrantName()const @@ -210,7 +210,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhR void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setZhRegistrantName(const std::string& zhRegistrantName) { zhRegistrantName_ = zhRegistrantName; - setParameter("ZhRegistrantName", zhRegistrantName); + setCoreParameter("ZhRegistrantName", zhRegistrantName); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getPostalCode()const @@ -221,7 +221,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getPos void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setPostalCode(const std::string& postalCode) { postalCode_ = postalCode; - setParameter("PostalCode", postalCode); + setCoreParameter("PostalCode", postalCode); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getUserClientIp()const @@ -232,7 +232,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getUse void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getLang()const @@ -243,7 +243,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getLan void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getIdentityCredentialNo()const @@ -254,7 +254,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getIde void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setIdentityCredentialNo(const std::string& identityCredentialNo) { identityCredentialNo_ = identityCredentialNo; - setParameter("IdentityCredentialNo", identityCredentialNo); + setCoreParameter("IdentityCredentialNo", identityCredentialNo); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getEmail()const @@ -265,7 +265,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getEma void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getRegistrantName()const @@ -276,7 +276,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getReg void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setRegistrantName(const std::string& registrantName) { registrantName_ = registrantName; - setParameter("RegistrantName", registrantName); + setCoreParameter("RegistrantName", registrantName); } std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhRegistrantOrganization()const @@ -287,6 +287,6 @@ std::string SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::getZhR void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest::setZhRegistrantOrganization(const std::string& zhRegistrantOrganization) { zhRegistrantOrganization_ = zhRegistrantOrganization; - setParameter("ZhRegistrantOrganization", zhRegistrantOrganization); + setCoreParameter("ZhRegistrantOrganization", zhRegistrantOrganization); } diff --git a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResult.cc b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResult.cc index 61976c63b..7b2fbee70 100644 --- a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResult.cc +++ b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResult.cc @@ -35,10 +35,13 @@ SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResult::~SaveTaskForUpdatin void SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest.cc b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest.cc index 490860b36..acb0e07b0 100644 --- a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest.cc +++ b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest.cc @@ -33,7 +33,7 @@ std::string SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getUs void SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } long SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getRegistrantProfileId()const @@ -44,7 +44,7 @@ long SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getRegistran void SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::setRegistrantProfileId(long registrantProfileId) { registrantProfileId_ = registrantProfileId; - setParameter("RegistrantProfileId", std::to_string(registrantProfileId)); + setCoreParameter("RegistrantProfileId", std::to_string(registrantProfileId)); } std::vector SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getDomainName()const @@ -56,7 +56,7 @@ void SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::setDomainNam { domainName_ = domainName; for(int i = 0; i!= domainName.size(); i++) - setParameter("DomainName."+ std::to_string(i), domainName.at(i)); + setCoreParameter("DomainName."+ std::to_string(i), domainName.at(i)); } bool SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getTransferOutProhibited()const @@ -67,7 +67,7 @@ bool SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getTransferO void SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::setTransferOutProhibited(bool transferOutProhibited) { transferOutProhibited_ = transferOutProhibited; - setParameter("TransferOutProhibited", std::to_string(transferOutProhibited)); + setCoreParameter("TransferOutProhibited", transferOutProhibited ? "true" : "false"); } std::string SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getLang()const @@ -78,6 +78,6 @@ std::string SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::getLa void SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult.cc b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult.cc index e1c437fe9..b6e9a3eb8 100644 --- a/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult.cc +++ b/domain/src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult.cc @@ -35,10 +35,13 @@ SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult::~SaveTaskForUpdati void SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskNo"].isNull()) taskNo_ = value["TaskNo"].asString(); diff --git a/domain/src/model/ScrollDomainListRequest.cc b/domain/src/model/ScrollDomainListRequest.cc new file mode 100644 index 000000000..1fb60cb00 --- /dev/null +++ b/domain/src/model/ScrollDomainListRequest.cc @@ -0,0 +1,269 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Domain::Model::ScrollDomainListRequest; + +ScrollDomainListRequest::ScrollDomainListRequest() : + RpcServiceRequest("domain", "2018-01-29", "ScrollDomainList") +{} + +ScrollDomainListRequest::~ScrollDomainListRequest() +{} + +long ScrollDomainListRequest::getEndExpirationDate()const +{ + return endExpirationDate_; +} + +void ScrollDomainListRequest::setEndExpirationDate(long endExpirationDate) +{ + endExpirationDate_ = endExpirationDate; + setCoreParameter("EndExpirationDate", std::to_string(endExpirationDate)); +} + +std::string ScrollDomainListRequest::getProductDomainType()const +{ + return productDomainType_; +} + +void ScrollDomainListRequest::setProductDomainType(const std::string& productDomainType) +{ + productDomainType_ = productDomainType; + setCoreParameter("ProductDomainType", productDomainType); +} + +std::string ScrollDomainListRequest::getSuffixs()const +{ + return suffixs_; +} + +void ScrollDomainListRequest::setSuffixs(const std::string& suffixs) +{ + suffixs_ = suffixs; + setCoreParameter("Suffixs", suffixs); +} + +long ScrollDomainListRequest::getStartExpirationDate()const +{ + return startExpirationDate_; +} + +void ScrollDomainListRequest::setStartExpirationDate(long startExpirationDate) +{ + startExpirationDate_ = startExpirationDate; + setCoreParameter("StartExpirationDate", std::to_string(startExpirationDate)); +} + +int ScrollDomainListRequest::getDomainStatus()const +{ + return domainStatus_; +} + +void ScrollDomainListRequest::setDomainStatus(int domainStatus) +{ + domainStatus_ = domainStatus; + setCoreParameter("DomainStatus", std::to_string(domainStatus)); +} + +long ScrollDomainListRequest::getDomainGroupId()const +{ + return domainGroupId_; +} + +void ScrollDomainListRequest::setDomainGroupId(long domainGroupId) +{ + domainGroupId_ = domainGroupId; + setCoreParameter("DomainGroupId", std::to_string(domainGroupId)); +} + +bool ScrollDomainListRequest::getKeyWordSuffix()const +{ + return keyWordSuffix_; +} + +void ScrollDomainListRequest::setKeyWordSuffix(bool keyWordSuffix) +{ + keyWordSuffix_ = keyWordSuffix; + setCoreParameter("KeyWordSuffix", keyWordSuffix ? "true" : "false"); +} + +std::string ScrollDomainListRequest::getScrollId()const +{ + return scrollId_; +} + +void ScrollDomainListRequest::setScrollId(const std::string& scrollId) +{ + scrollId_ = scrollId; + setCoreParameter("ScrollId", scrollId); +} + +std::string ScrollDomainListRequest::getExcluded()const +{ + return excluded_; +} + +void ScrollDomainListRequest::setExcluded(const std::string& excluded) +{ + excluded_ = excluded; + setCoreParameter("Excluded", excluded); +} + +bool ScrollDomainListRequest::getKeyWordPrefix()const +{ + return keyWordPrefix_; +} + +void ScrollDomainListRequest::setKeyWordPrefix(bool keyWordPrefix) +{ + keyWordPrefix_ = keyWordPrefix; + setCoreParameter("KeyWordPrefix", keyWordPrefix ? "true" : "false"); +} + +int ScrollDomainListRequest::getStartLength()const +{ + return startLength_; +} + +void ScrollDomainListRequest::setStartLength(int startLength) +{ + startLength_ = startLength; + setCoreParameter("StartLength", std::to_string(startLength)); +} + +int ScrollDomainListRequest::getTradeType()const +{ + return tradeType_; +} + +void ScrollDomainListRequest::setTradeType(int tradeType) +{ + tradeType_ = tradeType; + setCoreParameter("TradeType", std::to_string(tradeType)); +} + +bool ScrollDomainListRequest::getExcludedSuffix()const +{ + return excludedSuffix_; +} + +void ScrollDomainListRequest::setExcludedSuffix(bool excludedSuffix) +{ + excludedSuffix_ = excludedSuffix; + setCoreParameter("ExcludedSuffix", excludedSuffix ? "true" : "false"); +} + +long ScrollDomainListRequest::getEndRegistrationDate()const +{ + return endRegistrationDate_; +} + +void ScrollDomainListRequest::setEndRegistrationDate(long endRegistrationDate) +{ + endRegistrationDate_ = endRegistrationDate; + setCoreParameter("EndRegistrationDate", std::to_string(endRegistrationDate)); +} + +int ScrollDomainListRequest::getForm()const +{ + return form_; +} + +void ScrollDomainListRequest::setForm(int form) +{ + form_ = form; + setCoreParameter("Form", std::to_string(form)); +} + +std::string ScrollDomainListRequest::getUserClientIp()const +{ + return userClientIp_; +} + +void ScrollDomainListRequest::setUserClientIp(const std::string& userClientIp) +{ + userClientIp_ = userClientIp; + setCoreParameter("UserClientIp", userClientIp); +} + +int ScrollDomainListRequest::getPageSize()const +{ + return pageSize_; +} + +void ScrollDomainListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ScrollDomainListRequest::getLang()const +{ + return lang_; +} + +void ScrollDomainListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +bool ScrollDomainListRequest::getExcludedPrefix()const +{ + return excludedPrefix_; +} + +void ScrollDomainListRequest::setExcludedPrefix(bool excludedPrefix) +{ + excludedPrefix_ = excludedPrefix; + setCoreParameter("ExcludedPrefix", excludedPrefix ? "true" : "false"); +} + +std::string ScrollDomainListRequest::getKeyWord()const +{ + return keyWord_; +} + +void ScrollDomainListRequest::setKeyWord(const std::string& keyWord) +{ + keyWord_ = keyWord; + setCoreParameter("KeyWord", keyWord); +} + +long ScrollDomainListRequest::getStartRegistrationDate()const +{ + return startRegistrationDate_; +} + +void ScrollDomainListRequest::setStartRegistrationDate(long startRegistrationDate) +{ + startRegistrationDate_ = startRegistrationDate; + setCoreParameter("StartRegistrationDate", std::to_string(startRegistrationDate)); +} + +int ScrollDomainListRequest::getEndLength()const +{ + return endLength_; +} + +void ScrollDomainListRequest::setEndLength(int endLength) +{ + endLength_ = endLength; + setCoreParameter("EndLength", std::to_string(endLength)); +} + diff --git a/domain/src/model/ScrollDomainListResult.cc b/domain/src/model/ScrollDomainListResult.cc new file mode 100644 index 000000000..fad23ef33 --- /dev/null +++ b/domain/src/model/ScrollDomainListResult.cc @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Domain; +using namespace AlibabaCloud::Domain::Model; + +ScrollDomainListResult::ScrollDomainListResult() : + ServiceResult() +{} + +ScrollDomainListResult::ScrollDomainListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ScrollDomainListResult::~ScrollDomainListResult() +{} + +void ScrollDomainListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Domain"]; + for (auto value : allData) + { + Domain dataObject; + if(!value["DomainName"].isNull()) + dataObject.domainName = value["DomainName"].asString(); + if(!value["InstanceId"].isNull()) + dataObject.instanceId = value["InstanceId"].asString(); + if(!value["ExpirationDate"].isNull()) + dataObject.expirationDate = value["ExpirationDate"].asString(); + if(!value["RegistrationDate"].isNull()) + dataObject.registrationDate = value["RegistrationDate"].asString(); + if(!value["DomainType"].isNull()) + dataObject.domainType = value["DomainType"].asString(); + if(!value["DomainStatus"].isNull()) + dataObject.domainStatus = value["DomainStatus"].asString(); + if(!value["ProductId"].isNull()) + dataObject.productId = value["ProductId"].asString(); + if(!value["ExpirationDateLong"].isNull()) + dataObject.expirationDateLong = std::stol(value["ExpirationDateLong"].asString()); + if(!value["RegistrationDateLong"].isNull()) + dataObject.registrationDateLong = std::stol(value["RegistrationDateLong"].asString()); + if(!value["Premium"].isNull()) + dataObject.premium = value["Premium"].asString() == "true"; + if(!value["DomainAuditStatus"].isNull()) + dataObject.domainAuditStatus = value["DomainAuditStatus"].asString(); + if(!value["ExpirationDateStatus"].isNull()) + dataObject.expirationDateStatus = value["ExpirationDateStatus"].asString(); + if(!value["RegistrantType"].isNull()) + dataObject.registrantType = value["RegistrantType"].asString(); + if(!value["DomainGroupId"].isNull()) + dataObject.domainGroupId = value["DomainGroupId"].asString(); + if(!value["Remark"].isNull()) + dataObject.remark = value["Remark"].asString(); + if(!value["DomainGroupName"].isNull()) + dataObject.domainGroupName = value["DomainGroupName"].asString(); + if(!value["ExpirationCurrDateDiff"].isNull()) + dataObject.expirationCurrDateDiff = std::stoi(value["ExpirationCurrDateDiff"].asString()); + if(!value["Email"].isNull()) + dataObject.email = value["Email"].asString(); + if(!value["ZhRegistrantOrganization"].isNull()) + dataObject.zhRegistrantOrganization = value["ZhRegistrantOrganization"].asString(); + if(!value["RegistrantOrganization"].isNull()) + dataObject.registrantOrganization = value["RegistrantOrganization"].asString(); + auto allDnsList = value["DnsList"]["Dns"]; + for (auto value : allDnsList) + dataObject.dnsList.push_back(value.asString()); + data_.push_back(dataObject); + } + if(!value["TotalItemNum"].isNull()) + totalItemNum_ = std::stoi(value["TotalItemNum"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["ScrollId"].isNull()) + scrollId_ = value["ScrollId"].asString(); + +} + +int ScrollDomainListResult::getPageSize()const +{ + return pageSize_; +} + +std::string ScrollDomainListResult::getScrollId()const +{ + return scrollId_; +} + +std::vector ScrollDomainListResult::getData()const +{ + return data_; +} + +int ScrollDomainListResult::getTotalItemNum()const +{ + return totalItemNum_; +} + diff --git a/domain/src/model/SubmitEmailVerificationRequest.cc b/domain/src/model/SubmitEmailVerificationRequest.cc index 9049fdef8..918ff40f9 100644 --- a/domain/src/model/SubmitEmailVerificationRequest.cc +++ b/domain/src/model/SubmitEmailVerificationRequest.cc @@ -33,7 +33,7 @@ bool SubmitEmailVerificationRequest::getSendIfExist()const void SubmitEmailVerificationRequest::setSendIfExist(bool sendIfExist) { sendIfExist_ = sendIfExist; - setParameter("SendIfExist", std::to_string(sendIfExist)); + setCoreParameter("SendIfExist", sendIfExist ? "true" : "false"); } std::string SubmitEmailVerificationRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SubmitEmailVerificationRequest::getUserClientIp()const void SubmitEmailVerificationRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SubmitEmailVerificationRequest::getLang()const @@ -55,7 +55,7 @@ std::string SubmitEmailVerificationRequest::getLang()const void SubmitEmailVerificationRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SubmitEmailVerificationRequest::getEmail()const @@ -66,6 +66,6 @@ std::string SubmitEmailVerificationRequest::getEmail()const void SubmitEmailVerificationRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } diff --git a/domain/src/model/SubmitEmailVerificationResult.cc b/domain/src/model/SubmitEmailVerificationResult.cc index 53223aafa..59e50902e 100644 --- a/domain/src/model/SubmitEmailVerificationResult.cc +++ b/domain/src/model/SubmitEmailVerificationResult.cc @@ -35,10 +35,13 @@ SubmitEmailVerificationResult::~SubmitEmailVerificationResult() void SubmitEmailVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuccessList = value["SuccessList"]["SendResult"]; for (auto value : allSuccessList) diff --git a/domain/src/model/TransferInCheckMailTokenRequest.cc b/domain/src/model/TransferInCheckMailTokenRequest.cc index a5cb7c75f..9dcf26b99 100644 --- a/domain/src/model/TransferInCheckMailTokenRequest.cc +++ b/domain/src/model/TransferInCheckMailTokenRequest.cc @@ -33,7 +33,7 @@ std::string TransferInCheckMailTokenRequest::getUserClientIp()const void TransferInCheckMailTokenRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string TransferInCheckMailTokenRequest::getLang()const @@ -44,7 +44,7 @@ std::string TransferInCheckMailTokenRequest::getLang()const void TransferInCheckMailTokenRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string TransferInCheckMailTokenRequest::getToken()const @@ -55,6 +55,6 @@ std::string TransferInCheckMailTokenRequest::getToken()const void TransferInCheckMailTokenRequest::setToken(const std::string& token) { token_ = token; - setParameter("Token", token); + setCoreParameter("Token", token); } diff --git a/domain/src/model/TransferInCheckMailTokenResult.cc b/domain/src/model/TransferInCheckMailTokenResult.cc index 8dc8c803c..2f9267389 100644 --- a/domain/src/model/TransferInCheckMailTokenResult.cc +++ b/domain/src/model/TransferInCheckMailTokenResult.cc @@ -35,10 +35,13 @@ TransferInCheckMailTokenResult::~TransferInCheckMailTokenResult() void TransferInCheckMailTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuccessList = value["SuccessList"]["SuccessDomain"]; for (const auto &item : allSuccessList) diff --git a/domain/src/model/TransferInReenterTransferAuthorizationCodeRequest.cc b/domain/src/model/TransferInReenterTransferAuthorizationCodeRequest.cc index 31b4462fa..197d3da81 100644 --- a/domain/src/model/TransferInReenterTransferAuthorizationCodeRequest.cc +++ b/domain/src/model/TransferInReenterTransferAuthorizationCodeRequest.cc @@ -33,7 +33,7 @@ std::string TransferInReenterTransferAuthorizationCodeRequest::getTransferAuthor void TransferInReenterTransferAuthorizationCodeRequest::setTransferAuthorizationCode(const std::string& transferAuthorizationCode) { transferAuthorizationCode_ = transferAuthorizationCode; - setParameter("TransferAuthorizationCode", transferAuthorizationCode); + setCoreParameter("TransferAuthorizationCode", transferAuthorizationCode); } std::string TransferInReenterTransferAuthorizationCodeRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string TransferInReenterTransferAuthorizationCodeRequest::getDomainName()co void TransferInReenterTransferAuthorizationCodeRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string TransferInReenterTransferAuthorizationCodeRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string TransferInReenterTransferAuthorizationCodeRequest::getUserClientIp() void TransferInReenterTransferAuthorizationCodeRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string TransferInReenterTransferAuthorizationCodeRequest::getLang()const @@ -66,6 +66,6 @@ std::string TransferInReenterTransferAuthorizationCodeRequest::getLang()const void TransferInReenterTransferAuthorizationCodeRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/TransferInReenterTransferAuthorizationCodeResult.cc b/domain/src/model/TransferInReenterTransferAuthorizationCodeResult.cc index 06892f609..4bb16dfee 100644 --- a/domain/src/model/TransferInReenterTransferAuthorizationCodeResult.cc +++ b/domain/src/model/TransferInReenterTransferAuthorizationCodeResult.cc @@ -35,10 +35,13 @@ TransferInReenterTransferAuthorizationCodeResult::~TransferInReenterTransferAuth void TransferInReenterTransferAuthorizationCodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/TransferInRefetchWhoisEmailRequest.cc b/domain/src/model/TransferInRefetchWhoisEmailRequest.cc index a4b9dca35..97fb1dbf6 100644 --- a/domain/src/model/TransferInRefetchWhoisEmailRequest.cc +++ b/domain/src/model/TransferInRefetchWhoisEmailRequest.cc @@ -33,7 +33,7 @@ std::string TransferInRefetchWhoisEmailRequest::getDomainName()const void TransferInRefetchWhoisEmailRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string TransferInRefetchWhoisEmailRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string TransferInRefetchWhoisEmailRequest::getUserClientIp()const void TransferInRefetchWhoisEmailRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string TransferInRefetchWhoisEmailRequest::getLang()const @@ -55,6 +55,6 @@ std::string TransferInRefetchWhoisEmailRequest::getLang()const void TransferInRefetchWhoisEmailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/TransferInRefetchWhoisEmailResult.cc b/domain/src/model/TransferInRefetchWhoisEmailResult.cc index 7f8730478..9b5d3dc6c 100644 --- a/domain/src/model/TransferInRefetchWhoisEmailResult.cc +++ b/domain/src/model/TransferInRefetchWhoisEmailResult.cc @@ -35,10 +35,13 @@ TransferInRefetchWhoisEmailResult::~TransferInRefetchWhoisEmailResult() void TransferInRefetchWhoisEmailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/TransferInResendMailTokenRequest.cc b/domain/src/model/TransferInResendMailTokenRequest.cc index eab19bb0e..b08bd35ef 100644 --- a/domain/src/model/TransferInResendMailTokenRequest.cc +++ b/domain/src/model/TransferInResendMailTokenRequest.cc @@ -33,7 +33,7 @@ std::string TransferInResendMailTokenRequest::getDomainName()const void TransferInResendMailTokenRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string TransferInResendMailTokenRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string TransferInResendMailTokenRequest::getUserClientIp()const void TransferInResendMailTokenRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string TransferInResendMailTokenRequest::getLang()const @@ -55,6 +55,6 @@ std::string TransferInResendMailTokenRequest::getLang()const void TransferInResendMailTokenRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/domain/src/model/TransferInResendMailTokenResult.cc b/domain/src/model/TransferInResendMailTokenResult.cc index eb8158f6a..be7dd4d63 100644 --- a/domain/src/model/TransferInResendMailTokenResult.cc +++ b/domain/src/model/TransferInResendMailTokenResult.cc @@ -35,10 +35,13 @@ TransferInResendMailTokenResult::~TransferInResendMailTokenResult() void TransferInResendMailTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/UpdateDomainToDomainGroupRequest.cc b/domain/src/model/UpdateDomainToDomainGroupRequest.cc index db8153bf5..4cc16f57c 100644 --- a/domain/src/model/UpdateDomainToDomainGroupRequest.cc +++ b/domain/src/model/UpdateDomainToDomainGroupRequest.cc @@ -33,7 +33,7 @@ int UpdateDomainToDomainGroupRequest::getDataSource()const void UpdateDomainToDomainGroupRequest::setDataSource(int dataSource) { dataSource_ = dataSource; - setParameter("DataSource", std::to_string(dataSource)); + setCoreParameter("DataSource", std::to_string(dataSource)); } std::string UpdateDomainToDomainGroupRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string UpdateDomainToDomainGroupRequest::getUserClientIp()const void UpdateDomainToDomainGroupRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateDomainToDomainGroupRequest::getFileToUpload()const @@ -55,7 +55,7 @@ std::string UpdateDomainToDomainGroupRequest::getFileToUpload()const void UpdateDomainToDomainGroupRequest::setFileToUpload(const std::string& fileToUpload) { fileToUpload_ = fileToUpload; - setParameter("FileToUpload", fileToUpload); + setCoreParameter("FileToUpload", fileToUpload); } std::vector UpdateDomainToDomainGroupRequest::getDomainName()const @@ -67,7 +67,7 @@ void UpdateDomainToDomainGroupRequest::setDomainName(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/VerifyContactFieldRequest.cc b/domain/src/model/VerifyContactFieldRequest.cc index c7c163c92..98a037d0d 100644 --- a/domain/src/model/VerifyContactFieldRequest.cc +++ b/domain/src/model/VerifyContactFieldRequest.cc @@ -33,7 +33,7 @@ std::string VerifyContactFieldRequest::getCountry()const void VerifyContactFieldRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } std::string VerifyContactFieldRequest::getAddress()const @@ -44,7 +44,7 @@ std::string VerifyContactFieldRequest::getAddress()const void VerifyContactFieldRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string VerifyContactFieldRequest::getTelArea()const @@ -55,7 +55,7 @@ std::string VerifyContactFieldRequest::getTelArea()const void VerifyContactFieldRequest::setTelArea(const std::string& telArea) { telArea_ = telArea; - setParameter("TelArea", telArea); + setCoreParameter("TelArea", telArea); } std::string VerifyContactFieldRequest::getCity()const @@ -66,7 +66,7 @@ std::string VerifyContactFieldRequest::getCity()const void VerifyContactFieldRequest::setCity(const std::string& city) { city_ = city; - setParameter("City", city); + setCoreParameter("City", city); } std::string VerifyContactFieldRequest::getZhAddress()const @@ -77,7 +77,7 @@ std::string VerifyContactFieldRequest::getZhAddress()const void VerifyContactFieldRequest::setZhAddress(const std::string& zhAddress) { zhAddress_ = zhAddress; - setParameter("ZhAddress", zhAddress); + setCoreParameter("ZhAddress", zhAddress); } std::string VerifyContactFieldRequest::getRegistrantType()const @@ -88,7 +88,18 @@ std::string VerifyContactFieldRequest::getRegistrantType()const void VerifyContactFieldRequest::setRegistrantType(const std::string& registrantType) { registrantType_ = registrantType; - setParameter("RegistrantType", registrantType); + setCoreParameter("RegistrantType", registrantType); +} + +std::string VerifyContactFieldRequest::getDomainName()const +{ + return domainName_; +} + +void VerifyContactFieldRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); } std::string VerifyContactFieldRequest::getTelephone()const @@ -99,7 +110,7 @@ std::string VerifyContactFieldRequest::getTelephone()const void VerifyContactFieldRequest::setTelephone(const std::string& telephone) { telephone_ = telephone; - setParameter("Telephone", telephone); + setCoreParameter("Telephone", telephone); } std::string VerifyContactFieldRequest::getZhCity()const @@ -110,7 +121,7 @@ std::string VerifyContactFieldRequest::getZhCity()const void VerifyContactFieldRequest::setZhCity(const std::string& zhCity) { zhCity_ = zhCity; - setParameter("ZhCity", zhCity); + setCoreParameter("ZhCity", zhCity); } std::string VerifyContactFieldRequest::getZhProvince()const @@ -121,7 +132,7 @@ std::string VerifyContactFieldRequest::getZhProvince()const void VerifyContactFieldRequest::setZhProvince(const std::string& zhProvince) { zhProvince_ = zhProvince; - setParameter("ZhProvince", zhProvince); + setCoreParameter("ZhProvince", zhProvince); } std::string VerifyContactFieldRequest::getRegistrantOrganization()const @@ -132,7 +143,7 @@ std::string VerifyContactFieldRequest::getRegistrantOrganization()const void VerifyContactFieldRequest::setRegistrantOrganization(const std::string& registrantOrganization) { registrantOrganization_ = registrantOrganization; - setParameter("RegistrantOrganization", registrantOrganization); + setCoreParameter("RegistrantOrganization", registrantOrganization); } std::string VerifyContactFieldRequest::getTelExt()const @@ -143,7 +154,7 @@ std::string VerifyContactFieldRequest::getTelExt()const void VerifyContactFieldRequest::setTelExt(const std::string& telExt) { telExt_ = telExt; - setParameter("TelExt", telExt); + setCoreParameter("TelExt", telExt); } std::string VerifyContactFieldRequest::getProvince()const @@ -154,7 +165,7 @@ std::string VerifyContactFieldRequest::getProvince()const void VerifyContactFieldRequest::setProvince(const std::string& province) { province_ = province; - setParameter("Province", province); + setCoreParameter("Province", province); } std::string VerifyContactFieldRequest::getZhRegistrantName()const @@ -165,7 +176,7 @@ std::string VerifyContactFieldRequest::getZhRegistrantName()const void VerifyContactFieldRequest::setZhRegistrantName(const std::string& zhRegistrantName) { zhRegistrantName_ = zhRegistrantName; - setParameter("ZhRegistrantName", zhRegistrantName); + setCoreParameter("ZhRegistrantName", zhRegistrantName); } std::string VerifyContactFieldRequest::getPostalCode()const @@ -176,7 +187,7 @@ std::string VerifyContactFieldRequest::getPostalCode()const void VerifyContactFieldRequest::setPostalCode(const std::string& postalCode) { postalCode_ = postalCode; - setParameter("PostalCode", postalCode); + setCoreParameter("PostalCode", postalCode); } std::string VerifyContactFieldRequest::getUserClientIp()const @@ -187,7 +198,7 @@ std::string VerifyContactFieldRequest::getUserClientIp()const void VerifyContactFieldRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string VerifyContactFieldRequest::getLang()const @@ -198,7 +209,7 @@ std::string VerifyContactFieldRequest::getLang()const void VerifyContactFieldRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string VerifyContactFieldRequest::getEmail()const @@ -209,7 +220,7 @@ std::string VerifyContactFieldRequest::getEmail()const void VerifyContactFieldRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string VerifyContactFieldRequest::getRegistrantName()const @@ -220,7 +231,7 @@ std::string VerifyContactFieldRequest::getRegistrantName()const void VerifyContactFieldRequest::setRegistrantName(const std::string& registrantName) { registrantName_ = registrantName; - setParameter("RegistrantName", registrantName); + setCoreParameter("RegistrantName", registrantName); } std::string VerifyContactFieldRequest::getZhRegistrantOrganization()const @@ -231,6 +242,6 @@ std::string VerifyContactFieldRequest::getZhRegistrantOrganization()const void VerifyContactFieldRequest::setZhRegistrantOrganization(const std::string& zhRegistrantOrganization) { zhRegistrantOrganization_ = zhRegistrantOrganization; - setParameter("ZhRegistrantOrganization", zhRegistrantOrganization); + setCoreParameter("ZhRegistrantOrganization", zhRegistrantOrganization); } diff --git a/domain/src/model/VerifyContactFieldResult.cc b/domain/src/model/VerifyContactFieldResult.cc index 4770c51aa..aee28b2cc 100644 --- a/domain/src/model/VerifyContactFieldResult.cc +++ b/domain/src/model/VerifyContactFieldResult.cc @@ -35,10 +35,13 @@ VerifyContactFieldResult::~VerifyContactFieldResult() void VerifyContactFieldResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/domain/src/model/VerifyEmailRequest.cc b/domain/src/model/VerifyEmailRequest.cc index 903bca0cd..a29d46b7d 100644 --- a/domain/src/model/VerifyEmailRequest.cc +++ b/domain/src/model/VerifyEmailRequest.cc @@ -33,7 +33,7 @@ std::string VerifyEmailRequest::getUserClientIp()const void VerifyEmailRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string VerifyEmailRequest::getLang()const @@ -44,7 +44,7 @@ std::string VerifyEmailRequest::getLang()const void VerifyEmailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string VerifyEmailRequest::getToken()const @@ -55,6 +55,6 @@ std::string VerifyEmailRequest::getToken()const void VerifyEmailRequest::setToken(const std::string& token) { token_ = token; - setParameter("Token", token); + setCoreParameter("Token", token); } diff --git a/domain/src/model/VerifyEmailResult.cc b/domain/src/model/VerifyEmailResult.cc index 5e87948a8..5a88fd2e3 100644 --- a/domain/src/model/VerifyEmailResult.cc +++ b/domain/src/model/VerifyEmailResult.cc @@ -35,10 +35,13 @@ VerifyEmailResult::~VerifyEmailResult() void VerifyEmailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/drds/CMakeLists.txt b/drds/CMakeLists.txt index 6c2ca61de..a7c50a920 100644 --- a/drds/CMakeLists.txt +++ b/drds/CMakeLists.txt @@ -47,6 +47,8 @@ set(drds_public_header_model include/alibabacloud/drds/model/ModifyRdsReadWeightResult.h include/alibabacloud/drds/model/CreateDrdsInstanceRequest.h include/alibabacloud/drds/model/CreateDrdsInstanceResult.h + include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorRequest.h + include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorResult.h include/alibabacloud/drds/model/DescribeRegionsRequest.h include/alibabacloud/drds/model/DescribeRegionsResult.h include/alibabacloud/drds/model/DescribeDrdsDBIpWhiteListRequest.h @@ -65,6 +67,8 @@ set(drds_public_header_model include/alibabacloud/drds/model/ModifyDrdsDBPasswdResult.h include/alibabacloud/drds/model/DeleteFailedDrdsDBRequest.h include/alibabacloud/drds/model/DeleteFailedDrdsDBResult.h + include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorRequest.h + include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorResult.h include/alibabacloud/drds/model/DescribeCreateDrdsInstanceStatusRequest.h include/alibabacloud/drds/model/DescribeCreateDrdsInstanceStatusResult.h include/alibabacloud/drds/model/DescribeDrdsDBsRequest.h @@ -104,6 +108,8 @@ set(drds_src src/model/ModifyRdsReadWeightResult.cc src/model/CreateDrdsInstanceRequest.cc src/model/CreateDrdsInstanceResult.cc + src/model/DescribeDrdsInstanceMonitorRequest.cc + src/model/DescribeDrdsInstanceMonitorResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc src/model/DescribeDrdsDBIpWhiteListRequest.cc @@ -122,6 +128,8 @@ set(drds_src src/model/ModifyDrdsDBPasswdResult.cc src/model/DeleteFailedDrdsDBRequest.cc src/model/DeleteFailedDrdsDBResult.cc + src/model/DescribeDrdsInstanceDbMonitorRequest.cc + src/model/DescribeDrdsInstanceDbMonitorResult.cc src/model/DescribeCreateDrdsInstanceStatusRequest.cc src/model/DescribeCreateDrdsInstanceStatusResult.cc src/model/DescribeDrdsDBsRequest.cc diff --git a/drds/include/alibabacloud/drds/DrdsClient.h b/drds/include/alibabacloud/drds/DrdsClient.h index 1b32b79aa..c2299bd14 100644 --- a/drds/include/alibabacloud/drds/DrdsClient.h +++ b/drds/include/alibabacloud/drds/DrdsClient.h @@ -48,6 +48,8 @@ #include "model/ModifyRdsReadWeightResult.h" #include "model/CreateDrdsInstanceRequest.h" #include "model/CreateDrdsInstanceResult.h" +#include "model/DescribeDrdsInstanceMonitorRequest.h" +#include "model/DescribeDrdsInstanceMonitorResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" #include "model/DescribeDrdsDBIpWhiteListRequest.h" @@ -66,6 +68,8 @@ #include "model/ModifyDrdsDBPasswdResult.h" #include "model/DeleteFailedDrdsDBRequest.h" #include "model/DeleteFailedDrdsDBResult.h" +#include "model/DescribeDrdsInstanceDbMonitorRequest.h" +#include "model/DescribeDrdsInstanceDbMonitorResult.h" #include "model/DescribeCreateDrdsInstanceStatusRequest.h" #include "model/DescribeCreateDrdsInstanceStatusResult.h" #include "model/DescribeDrdsDBsRequest.h" @@ -124,6 +128,9 @@ namespace AlibabaCloud typedef Outcome CreateDrdsInstanceOutcome; typedef std::future CreateDrdsInstanceOutcomeCallable; typedef std::function&)> CreateDrdsInstanceAsyncHandler; + typedef Outcome DescribeDrdsInstanceMonitorOutcome; + typedef std::future DescribeDrdsInstanceMonitorOutcomeCallable; + typedef std::function&)> DescribeDrdsInstanceMonitorAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; @@ -151,6 +158,9 @@ namespace AlibabaCloud typedef Outcome DeleteFailedDrdsDBOutcome; typedef std::future DeleteFailedDrdsDBOutcomeCallable; typedef std::function&)> DeleteFailedDrdsDBAsyncHandler; + typedef Outcome DescribeDrdsInstanceDbMonitorOutcome; + typedef std::future DescribeDrdsInstanceDbMonitorOutcomeCallable; + typedef std::function&)> DescribeDrdsInstanceDbMonitorAsyncHandler; typedef Outcome DescribeCreateDrdsInstanceStatusOutcome; typedef std::future DescribeCreateDrdsInstanceStatusOutcomeCallable; typedef std::function&)> DescribeCreateDrdsInstanceStatusAsyncHandler; @@ -210,6 +220,9 @@ namespace AlibabaCloud CreateDrdsInstanceOutcome createDrdsInstance(const Model::CreateDrdsInstanceRequest &request)const; void createDrdsInstanceAsync(const Model::CreateDrdsInstanceRequest& request, const CreateDrdsInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDrdsInstanceOutcomeCallable createDrdsInstanceCallable(const Model::CreateDrdsInstanceRequest& request) const; + DescribeDrdsInstanceMonitorOutcome describeDrdsInstanceMonitor(const Model::DescribeDrdsInstanceMonitorRequest &request)const; + void describeDrdsInstanceMonitorAsync(const Model::DescribeDrdsInstanceMonitorRequest& request, const DescribeDrdsInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDrdsInstanceMonitorOutcomeCallable describeDrdsInstanceMonitorCallable(const Model::DescribeDrdsInstanceMonitorRequest& request) const; DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; @@ -237,6 +250,9 @@ namespace AlibabaCloud DeleteFailedDrdsDBOutcome deleteFailedDrdsDB(const Model::DeleteFailedDrdsDBRequest &request)const; void deleteFailedDrdsDBAsync(const Model::DeleteFailedDrdsDBRequest& request, const DeleteFailedDrdsDBAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFailedDrdsDBOutcomeCallable deleteFailedDrdsDBCallable(const Model::DeleteFailedDrdsDBRequest& request) const; + DescribeDrdsInstanceDbMonitorOutcome describeDrdsInstanceDbMonitor(const Model::DescribeDrdsInstanceDbMonitorRequest &request)const; + void describeDrdsInstanceDbMonitorAsync(const Model::DescribeDrdsInstanceDbMonitorRequest& request, const DescribeDrdsInstanceDbMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDrdsInstanceDbMonitorOutcomeCallable describeDrdsInstanceDbMonitorCallable(const Model::DescribeDrdsInstanceDbMonitorRequest& request) const; DescribeCreateDrdsInstanceStatusOutcome describeCreateDrdsInstanceStatus(const Model::DescribeCreateDrdsInstanceStatusRequest &request)const; void describeCreateDrdsInstanceStatusAsync(const Model::DescribeCreateDrdsInstanceStatusRequest& request, const DescribeCreateDrdsInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCreateDrdsInstanceStatusOutcomeCallable describeCreateDrdsInstanceStatusCallable(const Model::DescribeCreateDrdsInstanceStatusRequest& request) const; diff --git a/drds/include/alibabacloud/drds/model/CreateDrdsInstanceRequest.h b/drds/include/alibabacloud/drds/model/CreateDrdsInstanceRequest.h index 63f3200e5..a3a893941 100644 --- a/drds/include/alibabacloud/drds/model/CreateDrdsInstanceRequest.h +++ b/drds/include/alibabacloud/drds/model/CreateDrdsInstanceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud CreateDrdsInstanceRequest(); ~CreateDrdsInstanceRequest(); + bool getIsAutoRenew()const; + void setIsAutoRenew(bool isAutoRenew); int getQuantity()const; void setQuantity(int quantity); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getDescription()const; void setDescription(const std::string& description); std::string getSpecification()const; @@ -47,6 +51,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getVswitchId()const; void setVswitchId(const std::string& vswitchId); + int getDuration()const; + void setDuration(int duration); bool getIsHa()const; void setIsHa(bool isHa); std::string getRegionId()const; @@ -59,20 +65,26 @@ namespace AlibabaCloud void setZoneId(const std::string& zoneId); std::string getPayType()const; void setPayType(const std::string& payType); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); private: + bool isAutoRenew_; int quantity_; + std::string clientToken_; std::string description_; std::string specification_; std::string type_; std::string accessKeyId_; std::string vswitchId_; + int duration_; bool isHa_; std::string regionId_; std::string instanceSeries_; std::string vpcId_; std::string zoneId_; std::string payType_; + std::string pricingCycle_; }; } diff --git a/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorRequest.h b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorRequest.h new file mode 100644 index 000000000..9443ddca3 --- /dev/null +++ b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorRequest.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_DRDS_MODEL_DESCRIBEDRDSINSTANCEDBMONITORREQUEST_H_ +#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEDBMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Drds + { + namespace Model + { + class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceDbMonitorRequest : public RpcServiceRequest + { + + public: + DescribeDrdsInstanceDbMonitorRequest(); + ~DescribeDrdsInstanceDbMonitorRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getDrdsInstanceId()const; + void setDrdsInstanceId(const std::string& drdsInstanceId); + std::string getKey()const; + void setKey(const std::string& key); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dbName_; + long endTime_; + long startTime_; + std::string drdsInstanceId_; + std::string key_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEDBMONITORREQUEST_H_ \ No newline at end of file diff --git a/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorResult.h b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorResult.h new file mode 100644 index 000000000..bb437a826 --- /dev/null +++ b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceDbMonitorResult.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_DRDS_MODEL_DESCRIBEDRDSINSTANCEDBMONITORRESULT_H_ +#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEDBMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Drds + { + namespace Model + { + class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceDbMonitorResult : public ServiceResult + { + public: + struct PartialPerformanceData + { + struct PerformanceValue + { + std::string value; + long date; + }; + std::vector values; + std::string unit; + std::string key; + }; + + + DescribeDrdsInstanceDbMonitorResult(); + explicit DescribeDrdsInstanceDbMonitorResult(const std::string &payload); + ~DescribeDrdsInstanceDbMonitorResult(); + std::vector getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEDBMONITORRESULT_H_ \ No newline at end of file diff --git a/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorRequest.h b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorRequest.h new file mode 100644 index 000000000..a23a8d5e3 --- /dev/null +++ b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorRequest.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_DRDS_MODEL_DESCRIBEDRDSINSTANCEMONITORREQUEST_H_ +#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Drds + { + namespace Model + { + class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceMonitorRequest : public RpcServiceRequest + { + + public: + DescribeDrdsInstanceMonitorRequest(); + ~DescribeDrdsInstanceMonitorRequest(); + + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + std::string getDrdsInstanceId()const; + void setDrdsInstanceId(const std::string& drdsInstanceId); + std::string getKey()const; + void setKey(const std::string& key); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getPeriodMultiple()const; + void setPeriodMultiple(int periodMultiple); + + private: + long endTime_; + long startTime_; + std::string drdsInstanceId_; + std::string key_; + std::string accessKeyId_; + int periodMultiple_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEMONITORREQUEST_H_ \ No newline at end of file diff --git a/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorResult.h b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorResult.h new file mode 100644 index 000000000..caeca729b --- /dev/null +++ b/drds/include/alibabacloud/drds/model/DescribeDrdsInstanceMonitorResult.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_DRDS_MODEL_DESCRIBEDRDSINSTANCEMONITORRESULT_H_ +#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Drds + { + namespace Model + { + class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceMonitorResult : public ServiceResult + { + public: + struct PartialPerformanceData + { + struct PerformanceValue + { + std::string value; + long date; + }; + std::vector values; + std::string unit; + std::string key; + }; + + + DescribeDrdsInstanceMonitorResult(); + explicit DescribeDrdsInstanceMonitorResult(const std::string &payload); + ~DescribeDrdsInstanceMonitorResult(); + std::vector getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEMONITORRESULT_H_ \ No newline at end of file diff --git a/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesRequest.h b/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesRequest.h index 48fc24636..076fef8f5 100644 --- a/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesRequest.h +++ b/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesRequest.h @@ -41,11 +41,14 @@ namespace AlibabaCloud void setType(const std::string& type); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); private: std::string regionId_; std::string type_; std::string accessKeyId_; + std::string tags_; }; } diff --git a/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesResult.h b/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesResult.h index 9eb65831d..7f2b7bc1c 100644 --- a/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesResult.h +++ b/drds/include/alibabacloud/drds/model/DescribeDrdsInstancesResult.h @@ -43,15 +43,18 @@ namespace AlibabaCloud std::string vswitchId; }; std::string status; - std::string type; std::string description; - std::string drdsInstanceId; std::string zoneId; + long createTime; + std::string masterInstId; + std::string type; + std::string drdsInstanceId; long version; std::string networkType; - long createTime; + std::string instRole; std::string vpcCloudInstanceId; std::string regionId; + std::vector slaveInstId; std::vector vips; }; diff --git a/drds/include/alibabacloud/drds/model/DescribeShardDBsResult.h b/drds/include/alibabacloud/drds/model/DescribeShardDBsResult.h index fbf9bd8a5..df5b5df02 100644 --- a/drds/include/alibabacloud/drds/model/DescribeShardDBsResult.h +++ b/drds/include/alibabacloud/drds/model/DescribeShardDBsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct DbIntancePair { std::string instanceName; + std::string groupName; std::string subDbName; }; diff --git a/drds/src/DrdsClient.cc b/drds/src/DrdsClient.cc index 0597b25c0..50454142b 100644 --- a/drds/src/DrdsClient.cc +++ b/drds/src/DrdsClient.cc @@ -31,21 +31,21 @@ DrdsClient::DrdsClient(const Credentials &credentials, const ClientConfiguration RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "drds"); } DrdsClient::DrdsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "drds"); } DrdsClient::DrdsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "drds"); } DrdsClient::~DrdsClient() @@ -519,6 +519,42 @@ DrdsClient::CreateDrdsInstanceOutcomeCallable DrdsClient::createDrdsInstanceCall return task->get_future(); } +DrdsClient::DescribeDrdsInstanceMonitorOutcome DrdsClient::describeDrdsInstanceMonitor(const DescribeDrdsInstanceMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDrdsInstanceMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDrdsInstanceMonitorOutcome(DescribeDrdsInstanceMonitorResult(outcome.result())); + else + return DescribeDrdsInstanceMonitorOutcome(outcome.error()); +} + +void DrdsClient::describeDrdsInstanceMonitorAsync(const DescribeDrdsInstanceMonitorRequest& request, const DescribeDrdsInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDrdsInstanceMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DrdsClient::DescribeDrdsInstanceMonitorOutcomeCallable DrdsClient::describeDrdsInstanceMonitorCallable(const DescribeDrdsInstanceMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDrdsInstanceMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DrdsClient::DescribeRegionsOutcome DrdsClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +879,42 @@ DrdsClient::DeleteFailedDrdsDBOutcomeCallable DrdsClient::deleteFailedDrdsDBCall return task->get_future(); } +DrdsClient::DescribeDrdsInstanceDbMonitorOutcome DrdsClient::describeDrdsInstanceDbMonitor(const DescribeDrdsInstanceDbMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDrdsInstanceDbMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDrdsInstanceDbMonitorOutcome(DescribeDrdsInstanceDbMonitorResult(outcome.result())); + else + return DescribeDrdsInstanceDbMonitorOutcome(outcome.error()); +} + +void DrdsClient::describeDrdsInstanceDbMonitorAsync(const DescribeDrdsInstanceDbMonitorRequest& request, const DescribeDrdsInstanceDbMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDrdsInstanceDbMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DrdsClient::DescribeDrdsInstanceDbMonitorOutcomeCallable DrdsClient::describeDrdsInstanceDbMonitorCallable(const DescribeDrdsInstanceDbMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDrdsInstanceDbMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DrdsClient::DescribeCreateDrdsInstanceStatusOutcome DrdsClient::describeCreateDrdsInstanceStatus(const DescribeCreateDrdsInstanceStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/drds/src/model/CreateDrdsAccountRequest.cc b/drds/src/model/CreateDrdsAccountRequest.cc index 8b6e2b939..0ec65e156 100644 --- a/drds/src/model/CreateDrdsAccountRequest.cc +++ b/drds/src/model/CreateDrdsAccountRequest.cc @@ -33,7 +33,7 @@ std::string CreateDrdsAccountRequest::getPassword()const void CreateDrdsAccountRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } std::string CreateDrdsAccountRequest::getDbName()const @@ -44,7 +44,7 @@ std::string CreateDrdsAccountRequest::getDbName()const void CreateDrdsAccountRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string CreateDrdsAccountRequest::getDrdsInstanceId()const @@ -55,7 +55,7 @@ std::string CreateDrdsAccountRequest::getDrdsInstanceId()const void CreateDrdsAccountRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string CreateDrdsAccountRequest::getUserName()const @@ -66,7 +66,7 @@ std::string CreateDrdsAccountRequest::getUserName()const void CreateDrdsAccountRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } std::string CreateDrdsAccountRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string CreateDrdsAccountRequest::getAccessKeyId()const void CreateDrdsAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/CreateDrdsAccountResult.cc b/drds/src/model/CreateDrdsAccountResult.cc index 919bb3eb6..da3c162ed 100644 --- a/drds/src/model/CreateDrdsAccountResult.cc +++ b/drds/src/model/CreateDrdsAccountResult.cc @@ -35,10 +35,13 @@ CreateDrdsAccountResult::~CreateDrdsAccountResult() void CreateDrdsAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/CreateDrdsDBRequest.cc b/drds/src/model/CreateDrdsDBRequest.cc index fd8ddbd97..2896f7af8 100644 --- a/drds/src/model/CreateDrdsDBRequest.cc +++ b/drds/src/model/CreateDrdsDBRequest.cc @@ -33,7 +33,7 @@ std::string CreateDrdsDBRequest::getEncode()const void CreateDrdsDBRequest::setEncode(const std::string& encode) { encode_ = encode; - setParameter("Encode", encode); + setCoreParameter("Encode", encode); } std::string CreateDrdsDBRequest::getPassword()const @@ -44,7 +44,7 @@ std::string CreateDrdsDBRequest::getPassword()const void CreateDrdsDBRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } std::string CreateDrdsDBRequest::getDbName()const @@ -55,7 +55,7 @@ std::string CreateDrdsDBRequest::getDbName()const void CreateDrdsDBRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string CreateDrdsDBRequest::getRdsInstances()const @@ -66,7 +66,7 @@ std::string CreateDrdsDBRequest::getRdsInstances()const void CreateDrdsDBRequest::setRdsInstances(const std::string& rdsInstances) { rdsInstances_ = rdsInstances; - setParameter("RdsInstances", rdsInstances); + setCoreParameter("RdsInstances", rdsInstances); } std::string CreateDrdsDBRequest::getDrdsInstanceId()const @@ -77,7 +77,7 @@ std::string CreateDrdsDBRequest::getDrdsInstanceId()const void CreateDrdsDBRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string CreateDrdsDBRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string CreateDrdsDBRequest::getAccessKeyId()const void CreateDrdsDBRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/CreateDrdsDBResult.cc b/drds/src/model/CreateDrdsDBResult.cc index 37d3248ca..cf1f493ce 100644 --- a/drds/src/model/CreateDrdsDBResult.cc +++ b/drds/src/model/CreateDrdsDBResult.cc @@ -35,10 +35,13 @@ CreateDrdsDBResult::~CreateDrdsDBResult() void CreateDrdsDBResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/CreateDrdsInstanceRequest.cc b/drds/src/model/CreateDrdsInstanceRequest.cc index d21980c77..53c4920d8 100644 --- a/drds/src/model/CreateDrdsInstanceRequest.cc +++ b/drds/src/model/CreateDrdsInstanceRequest.cc @@ -25,6 +25,17 @@ CreateDrdsInstanceRequest::CreateDrdsInstanceRequest() : CreateDrdsInstanceRequest::~CreateDrdsInstanceRequest() {} +bool CreateDrdsInstanceRequest::getIsAutoRenew()const +{ + return isAutoRenew_; +} + +void CreateDrdsInstanceRequest::setIsAutoRenew(bool isAutoRenew) +{ + isAutoRenew_ = isAutoRenew; + setCoreParameter("IsAutoRenew", isAutoRenew ? "true" : "false"); +} + int CreateDrdsInstanceRequest::getQuantity()const { return quantity_; @@ -33,7 +44,18 @@ int CreateDrdsInstanceRequest::getQuantity()const void CreateDrdsInstanceRequest::setQuantity(int quantity) { quantity_ = quantity; - setParameter("Quantity", std::to_string(quantity)); + setCoreParameter("Quantity", std::to_string(quantity)); +} + +std::string CreateDrdsInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDrdsInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); } std::string CreateDrdsInstanceRequest::getDescription()const @@ -44,7 +66,7 @@ std::string CreateDrdsInstanceRequest::getDescription()const void CreateDrdsInstanceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateDrdsInstanceRequest::getSpecification()const @@ -55,7 +77,7 @@ std::string CreateDrdsInstanceRequest::getSpecification()const void CreateDrdsInstanceRequest::setSpecification(const std::string& specification) { specification_ = specification; - setParameter("Specification", specification); + setCoreParameter("Specification", specification); } std::string CreateDrdsInstanceRequest::getType()const @@ -66,7 +88,7 @@ std::string CreateDrdsInstanceRequest::getType()const void CreateDrdsInstanceRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateDrdsInstanceRequest::getAccessKeyId()const @@ -77,7 +99,7 @@ std::string CreateDrdsInstanceRequest::getAccessKeyId()const void CreateDrdsInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateDrdsInstanceRequest::getVswitchId()const @@ -88,7 +110,18 @@ std::string CreateDrdsInstanceRequest::getVswitchId()const void CreateDrdsInstanceRequest::setVswitchId(const std::string& vswitchId) { vswitchId_ = vswitchId; - setParameter("VswitchId", vswitchId); + setCoreParameter("VswitchId", vswitchId); +} + +int CreateDrdsInstanceRequest::getDuration()const +{ + return duration_; +} + +void CreateDrdsInstanceRequest::setDuration(int duration) +{ + duration_ = duration; + setCoreParameter("Duration", std::to_string(duration)); } bool CreateDrdsInstanceRequest::getIsHa()const @@ -99,7 +132,7 @@ bool CreateDrdsInstanceRequest::getIsHa()const void CreateDrdsInstanceRequest::setIsHa(bool isHa) { isHa_ = isHa; - setParameter("IsHa", std::to_string(isHa)); + setCoreParameter("IsHa", isHa ? "true" : "false"); } std::string CreateDrdsInstanceRequest::getRegionId()const @@ -110,7 +143,7 @@ std::string CreateDrdsInstanceRequest::getRegionId()const void CreateDrdsInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateDrdsInstanceRequest::getInstanceSeries()const @@ -121,7 +154,7 @@ std::string CreateDrdsInstanceRequest::getInstanceSeries()const void CreateDrdsInstanceRequest::setInstanceSeries(const std::string& instanceSeries) { instanceSeries_ = instanceSeries; - setParameter("InstanceSeries", instanceSeries); + setCoreParameter("InstanceSeries", instanceSeries); } std::string CreateDrdsInstanceRequest::getVpcId()const @@ -132,7 +165,7 @@ std::string CreateDrdsInstanceRequest::getVpcId()const void CreateDrdsInstanceRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string CreateDrdsInstanceRequest::getZoneId()const @@ -143,7 +176,7 @@ std::string CreateDrdsInstanceRequest::getZoneId()const void CreateDrdsInstanceRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string CreateDrdsInstanceRequest::getPayType()const @@ -154,6 +187,17 @@ std::string CreateDrdsInstanceRequest::getPayType()const void CreateDrdsInstanceRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); +} + +std::string CreateDrdsInstanceRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void CreateDrdsInstanceRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setCoreParameter("PricingCycle", pricingCycle); } diff --git a/drds/src/model/CreateDrdsInstanceResult.cc b/drds/src/model/CreateDrdsInstanceResult.cc index 4666ef2b9..e01b3e177 100644 --- a/drds/src/model/CreateDrdsInstanceResult.cc +++ b/drds/src/model/CreateDrdsInstanceResult.cc @@ -35,10 +35,13 @@ CreateDrdsInstanceResult::~CreateDrdsInstanceResult() void CreateDrdsInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["OrderId"].isNull()) diff --git a/drds/src/model/CreateReadOnlyAccountRequest.cc b/drds/src/model/CreateReadOnlyAccountRequest.cc index 80d716190..7b56763da 100644 --- a/drds/src/model/CreateReadOnlyAccountRequest.cc +++ b/drds/src/model/CreateReadOnlyAccountRequest.cc @@ -33,7 +33,7 @@ std::string CreateReadOnlyAccountRequest::getPassword()const void CreateReadOnlyAccountRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } std::string CreateReadOnlyAccountRequest::getDbName()const @@ -44,7 +44,7 @@ std::string CreateReadOnlyAccountRequest::getDbName()const void CreateReadOnlyAccountRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string CreateReadOnlyAccountRequest::getDrdsInstanceId()const @@ -55,7 +55,7 @@ std::string CreateReadOnlyAccountRequest::getDrdsInstanceId()const void CreateReadOnlyAccountRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string CreateReadOnlyAccountRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string CreateReadOnlyAccountRequest::getAccessKeyId()const void CreateReadOnlyAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/CreateReadOnlyAccountResult.cc b/drds/src/model/CreateReadOnlyAccountResult.cc index 3b5b178cb..f26ba9431 100644 --- a/drds/src/model/CreateReadOnlyAccountResult.cc +++ b/drds/src/model/CreateReadOnlyAccountResult.cc @@ -35,10 +35,13 @@ CreateReadOnlyAccountResult::~CreateReadOnlyAccountResult() void CreateReadOnlyAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["DbName"].isNull()) diff --git a/drds/src/model/DeleteDrdsDBRequest.cc b/drds/src/model/DeleteDrdsDBRequest.cc index 0dd054fc4..691b1c7a0 100644 --- a/drds/src/model/DeleteDrdsDBRequest.cc +++ b/drds/src/model/DeleteDrdsDBRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDrdsDBRequest::getDbName()const void DeleteDrdsDBRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DeleteDrdsDBRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DeleteDrdsDBRequest::getDrdsInstanceId()const void DeleteDrdsDBRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DeleteDrdsDBRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeleteDrdsDBRequest::getAccessKeyId()const void DeleteDrdsDBRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DeleteDrdsDBResult.cc b/drds/src/model/DeleteDrdsDBResult.cc index 4b7a5eeaf..b9cf6d3b9 100644 --- a/drds/src/model/DeleteDrdsDBResult.cc +++ b/drds/src/model/DeleteDrdsDBResult.cc @@ -35,10 +35,13 @@ DeleteDrdsDBResult::~DeleteDrdsDBResult() void DeleteDrdsDBResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/DeleteFailedDrdsDBRequest.cc b/drds/src/model/DeleteFailedDrdsDBRequest.cc index 2c09fbb61..e42955746 100644 --- a/drds/src/model/DeleteFailedDrdsDBRequest.cc +++ b/drds/src/model/DeleteFailedDrdsDBRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFailedDrdsDBRequest::getDbName()const void DeleteFailedDrdsDBRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DeleteFailedDrdsDBRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DeleteFailedDrdsDBRequest::getDrdsInstanceId()const void DeleteFailedDrdsDBRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DeleteFailedDrdsDBRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeleteFailedDrdsDBRequest::getAccessKeyId()const void DeleteFailedDrdsDBRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DeleteFailedDrdsDBResult.cc b/drds/src/model/DeleteFailedDrdsDBResult.cc index d7f53db68..a7d1a48c4 100644 --- a/drds/src/model/DeleteFailedDrdsDBResult.cc +++ b/drds/src/model/DeleteFailedDrdsDBResult.cc @@ -35,10 +35,13 @@ DeleteFailedDrdsDBResult::~DeleteFailedDrdsDBResult() void DeleteFailedDrdsDBResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/DescribeCreateDrdsInstanceStatusRequest.cc b/drds/src/model/DescribeCreateDrdsInstanceStatusRequest.cc index d11cdafbe..9c3062c6e 100644 --- a/drds/src/model/DescribeCreateDrdsInstanceStatusRequest.cc +++ b/drds/src/model/DescribeCreateDrdsInstanceStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCreateDrdsInstanceStatusRequest::getDrdsInstanceId()const void DescribeCreateDrdsInstanceStatusRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeCreateDrdsInstanceStatusRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeCreateDrdsInstanceStatusRequest::getAccessKeyId()const void DescribeCreateDrdsInstanceStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeCreateDrdsInstanceStatusResult.cc b/drds/src/model/DescribeCreateDrdsInstanceStatusResult.cc index e70d7b3f7..dc248d8cf 100644 --- a/drds/src/model/DescribeCreateDrdsInstanceStatusResult.cc +++ b/drds/src/model/DescribeCreateDrdsInstanceStatusResult.cc @@ -35,10 +35,13 @@ DescribeCreateDrdsInstanceStatusResult::~DescribeCreateDrdsInstanceStatusResult( void DescribeCreateDrdsInstanceStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Status"].isNull()) diff --git a/drds/src/model/DescribeDrdsDBIpWhiteListRequest.cc b/drds/src/model/DescribeDrdsDBIpWhiteListRequest.cc index 6dd1e7d5d..4daa63d66 100644 --- a/drds/src/model/DescribeDrdsDBIpWhiteListRequest.cc +++ b/drds/src/model/DescribeDrdsDBIpWhiteListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDrdsDBIpWhiteListRequest::getDbName()const void DescribeDrdsDBIpWhiteListRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeDrdsDBIpWhiteListRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeDrdsDBIpWhiteListRequest::getDrdsInstanceId()const void DescribeDrdsDBIpWhiteListRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeDrdsDBIpWhiteListRequest::getGroupName()const @@ -55,7 +55,7 @@ std::string DescribeDrdsDBIpWhiteListRequest::getGroupName()const void DescribeDrdsDBIpWhiteListRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string DescribeDrdsDBIpWhiteListRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeDrdsDBIpWhiteListRequest::getAccessKeyId()const void DescribeDrdsDBIpWhiteListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeDrdsDBIpWhiteListResult.cc b/drds/src/model/DescribeDrdsDBIpWhiteListResult.cc index 13ec88920..da82e2d38 100644 --- a/drds/src/model/DescribeDrdsDBIpWhiteListResult.cc +++ b/drds/src/model/DescribeDrdsDBIpWhiteListResult.cc @@ -35,10 +35,13 @@ DescribeDrdsDBIpWhiteListResult::~DescribeDrdsDBIpWhiteListResult() void DescribeDrdsDBIpWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allIpWhiteList = dataNode["IpWhiteList"]["Ip"]; diff --git a/drds/src/model/DescribeDrdsDBRequest.cc b/drds/src/model/DescribeDrdsDBRequest.cc index 26d2f9069..2d688a717 100644 --- a/drds/src/model/DescribeDrdsDBRequest.cc +++ b/drds/src/model/DescribeDrdsDBRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDrdsDBRequest::getDbName()const void DescribeDrdsDBRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeDrdsDBRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeDrdsDBRequest::getDrdsInstanceId()const void DescribeDrdsDBRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeDrdsDBRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DescribeDrdsDBRequest::getAccessKeyId()const void DescribeDrdsDBRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeDrdsDBResult.cc b/drds/src/model/DescribeDrdsDBResult.cc index 866bc144d..a94ed376b 100644 --- a/drds/src/model/DescribeDrdsDBResult.cc +++ b/drds/src/model/DescribeDrdsDBResult.cc @@ -35,10 +35,13 @@ DescribeDrdsDBResult::~DescribeDrdsDBResult() void DescribeDrdsDBResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["DbName"].isNull()) diff --git a/drds/src/model/DescribeDrdsDBsRequest.cc b/drds/src/model/DescribeDrdsDBsRequest.cc index 363d3a63f..3a723d855 100644 --- a/drds/src/model/DescribeDrdsDBsRequest.cc +++ b/drds/src/model/DescribeDrdsDBsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDrdsDBsRequest::getDrdsInstanceId()const void DescribeDrdsDBsRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeDrdsDBsRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeDrdsDBsRequest::getAccessKeyId()const void DescribeDrdsDBsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeDrdsDBsResult.cc b/drds/src/model/DescribeDrdsDBsResult.cc index 3501dff49..a8ac0f769 100644 --- a/drds/src/model/DescribeDrdsDBsResult.cc +++ b/drds/src/model/DescribeDrdsDBsResult.cc @@ -35,10 +35,13 @@ DescribeDrdsDBsResult::~DescribeDrdsDBsResult() void DescribeDrdsDBsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Db"]; for (auto value : allData) diff --git a/drds/src/model/DescribeDrdsInstanceDbMonitorRequest.cc b/drds/src/model/DescribeDrdsInstanceDbMonitorRequest.cc new file mode 100644 index 000000000..d82901555 --- /dev/null +++ b/drds/src/model/DescribeDrdsInstanceDbMonitorRequest.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 + +using AlibabaCloud::Drds::Model::DescribeDrdsInstanceDbMonitorRequest; + +DescribeDrdsInstanceDbMonitorRequest::DescribeDrdsInstanceDbMonitorRequest() : + RpcServiceRequest("drds", "2017-10-16", "DescribeDrdsInstanceDbMonitor") +{} + +DescribeDrdsInstanceDbMonitorRequest::~DescribeDrdsInstanceDbMonitorRequest() +{} + +std::string DescribeDrdsInstanceDbMonitorRequest::getDbName()const +{ + return dbName_; +} + +void DescribeDrdsInstanceDbMonitorRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setCoreParameter("DbName", dbName); +} + +long DescribeDrdsInstanceDbMonitorRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDrdsInstanceDbMonitorRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +long DescribeDrdsInstanceDbMonitorRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDrdsInstanceDbMonitorRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +std::string DescribeDrdsInstanceDbMonitorRequest::getDrdsInstanceId()const +{ + return drdsInstanceId_; +} + +void DescribeDrdsInstanceDbMonitorRequest::setDrdsInstanceId(const std::string& drdsInstanceId) +{ + drdsInstanceId_ = drdsInstanceId; + setCoreParameter("DrdsInstanceId", drdsInstanceId); +} + +std::string DescribeDrdsInstanceDbMonitorRequest::getKey()const +{ + return key_; +} + +void DescribeDrdsInstanceDbMonitorRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + +std::string DescribeDrdsInstanceDbMonitorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDrdsInstanceDbMonitorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/drds/src/model/DescribeDrdsInstanceDbMonitorResult.cc b/drds/src/model/DescribeDrdsInstanceDbMonitorResult.cc new file mode 100644 index 000000000..5eb70c320 --- /dev/null +++ b/drds/src/model/DescribeDrdsInstanceDbMonitorResult.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::Drds; +using namespace AlibabaCloud::Drds::Model; + +DescribeDrdsInstanceDbMonitorResult::DescribeDrdsInstanceDbMonitorResult() : + ServiceResult() +{} + +DescribeDrdsInstanceDbMonitorResult::DescribeDrdsInstanceDbMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDrdsInstanceDbMonitorResult::~DescribeDrdsInstanceDbMonitorResult() +{} + +void DescribeDrdsInstanceDbMonitorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["PartialPerformanceData"]; + for (auto value : allData) + { + PartialPerformanceData dataObject; + if(!value["Key"].isNull()) + dataObject.key = value["Key"].asString(); + if(!value["Unit"].isNull()) + dataObject.unit = value["Unit"].asString(); + auto allValues = value["Values"]["PerformanceValue"]; + for (auto value : allValues) + { + PartialPerformanceData::PerformanceValue valuesObject; + if(!value["Date"].isNull()) + valuesObject.date = std::stol(value["Date"].asString()); + if(!value["Value"].isNull()) + valuesObject.value = value["Value"].asString(); + dataObject.values.push_back(valuesObject); + } + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeDrdsInstanceDbMonitorResult::getData()const +{ + return data_; +} + +bool DescribeDrdsInstanceDbMonitorResult::getSuccess()const +{ + return success_; +} + diff --git a/drds/src/model/DescribeDrdsInstanceMonitorRequest.cc b/drds/src/model/DescribeDrdsInstanceMonitorRequest.cc new file mode 100644 index 000000000..98f475462 --- /dev/null +++ b/drds/src/model/DescribeDrdsInstanceMonitorRequest.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 + +using AlibabaCloud::Drds::Model::DescribeDrdsInstanceMonitorRequest; + +DescribeDrdsInstanceMonitorRequest::DescribeDrdsInstanceMonitorRequest() : + RpcServiceRequest("drds", "2017-10-16", "DescribeDrdsInstanceMonitor") +{} + +DescribeDrdsInstanceMonitorRequest::~DescribeDrdsInstanceMonitorRequest() +{} + +long DescribeDrdsInstanceMonitorRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDrdsInstanceMonitorRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +long DescribeDrdsInstanceMonitorRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDrdsInstanceMonitorRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +std::string DescribeDrdsInstanceMonitorRequest::getDrdsInstanceId()const +{ + return drdsInstanceId_; +} + +void DescribeDrdsInstanceMonitorRequest::setDrdsInstanceId(const std::string& drdsInstanceId) +{ + drdsInstanceId_ = drdsInstanceId; + setCoreParameter("DrdsInstanceId", drdsInstanceId); +} + +std::string DescribeDrdsInstanceMonitorRequest::getKey()const +{ + return key_; +} + +void DescribeDrdsInstanceMonitorRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + +std::string DescribeDrdsInstanceMonitorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDrdsInstanceMonitorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +int DescribeDrdsInstanceMonitorRequest::getPeriodMultiple()const +{ + return periodMultiple_; +} + +void DescribeDrdsInstanceMonitorRequest::setPeriodMultiple(int periodMultiple) +{ + periodMultiple_ = periodMultiple; + setCoreParameter("PeriodMultiple", std::to_string(periodMultiple)); +} + diff --git a/drds/src/model/DescribeDrdsInstanceMonitorResult.cc b/drds/src/model/DescribeDrdsInstanceMonitorResult.cc new file mode 100644 index 000000000..8b65d8f57 --- /dev/null +++ b/drds/src/model/DescribeDrdsInstanceMonitorResult.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::Drds; +using namespace AlibabaCloud::Drds::Model; + +DescribeDrdsInstanceMonitorResult::DescribeDrdsInstanceMonitorResult() : + ServiceResult() +{} + +DescribeDrdsInstanceMonitorResult::DescribeDrdsInstanceMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDrdsInstanceMonitorResult::~DescribeDrdsInstanceMonitorResult() +{} + +void DescribeDrdsInstanceMonitorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["PartialPerformanceData"]; + for (auto value : allData) + { + PartialPerformanceData dataObject; + if(!value["Key"].isNull()) + dataObject.key = value["Key"].asString(); + if(!value["Unit"].isNull()) + dataObject.unit = value["Unit"].asString(); + auto allValues = value["Values"]["PerformanceValue"]; + for (auto value : allValues) + { + PartialPerformanceData::PerformanceValue valuesObject; + if(!value["Date"].isNull()) + valuesObject.date = std::stol(value["Date"].asString()); + if(!value["Value"].isNull()) + valuesObject.value = value["Value"].asString(); + dataObject.values.push_back(valuesObject); + } + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector DescribeDrdsInstanceMonitorResult::getData()const +{ + return data_; +} + +bool DescribeDrdsInstanceMonitorResult::getSuccess()const +{ + return success_; +} + diff --git a/drds/src/model/DescribeDrdsInstanceNetInfoForInnerRequest.cc b/drds/src/model/DescribeDrdsInstanceNetInfoForInnerRequest.cc index 11abe9331..f17d3d1f1 100644 --- a/drds/src/model/DescribeDrdsInstanceNetInfoForInnerRequest.cc +++ b/drds/src/model/DescribeDrdsInstanceNetInfoForInnerRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDrdsInstanceNetInfoForInnerRequest::getDrdsInstanceId()const void DescribeDrdsInstanceNetInfoForInnerRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeDrdsInstanceNetInfoForInnerRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeDrdsInstanceNetInfoForInnerRequest::getAccessKeyId()const void DescribeDrdsInstanceNetInfoForInnerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeDrdsInstanceNetInfoForInnerResult.cc b/drds/src/model/DescribeDrdsInstanceNetInfoForInnerResult.cc index f25ecc17a..e7c2ec2b9 100644 --- a/drds/src/model/DescribeDrdsInstanceNetInfoForInnerResult.cc +++ b/drds/src/model/DescribeDrdsInstanceNetInfoForInnerResult.cc @@ -35,10 +35,13 @@ DescribeDrdsInstanceNetInfoForInnerResult::~DescribeDrdsInstanceNetInfoForInnerR void DescribeDrdsInstanceNetInfoForInnerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNetInfos = value["NetInfos"]["NetInfo"]; for (auto value : allNetInfos) diff --git a/drds/src/model/DescribeDrdsInstanceRequest.cc b/drds/src/model/DescribeDrdsInstanceRequest.cc index bfd13ae78..23501b6d0 100644 --- a/drds/src/model/DescribeDrdsInstanceRequest.cc +++ b/drds/src/model/DescribeDrdsInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDrdsInstanceRequest::getDrdsInstanceId()const void DescribeDrdsInstanceRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeDrdsInstanceRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeDrdsInstanceRequest::getAccessKeyId()const void DescribeDrdsInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeDrdsInstanceResult.cc b/drds/src/model/DescribeDrdsInstanceResult.cc index 1db067246..6e7f6daea 100644 --- a/drds/src/model/DescribeDrdsInstanceResult.cc +++ b/drds/src/model/DescribeDrdsInstanceResult.cc @@ -35,10 +35,13 @@ DescribeDrdsInstanceResult::~DescribeDrdsInstanceResult() void DescribeDrdsInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["DrdsInstanceId"].isNull()) diff --git a/drds/src/model/DescribeDrdsInstancesRequest.cc b/drds/src/model/DescribeDrdsInstancesRequest.cc index dacbef70a..fffc16452 100644 --- a/drds/src/model/DescribeDrdsInstancesRequest.cc +++ b/drds/src/model/DescribeDrdsInstancesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDrdsInstancesRequest::getRegionId()const void DescribeDrdsInstancesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeDrdsInstancesRequest::getType()const @@ -44,7 +44,7 @@ std::string DescribeDrdsInstancesRequest::getType()const void DescribeDrdsInstancesRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string DescribeDrdsInstancesRequest::getAccessKeyId()const @@ -55,6 +55,17 @@ std::string DescribeDrdsInstancesRequest::getAccessKeyId()const void DescribeDrdsInstancesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDrdsInstancesRequest::getTags()const +{ + return tags_; +} + +void DescribeDrdsInstancesRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setCoreParameter("Tags", tags); } diff --git a/drds/src/model/DescribeDrdsInstancesResult.cc b/drds/src/model/DescribeDrdsInstancesResult.cc index ae749af1c..6e8541b34 100644 --- a/drds/src/model/DescribeDrdsInstancesResult.cc +++ b/drds/src/model/DescribeDrdsInstancesResult.cc @@ -35,10 +35,13 @@ DescribeDrdsInstancesResult::~DescribeDrdsInstancesResult() void DescribeDrdsInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Instance"]; for (auto value : allData) @@ -64,6 +67,10 @@ void DescribeDrdsInstancesResult::parse(const std::string &payload) dataObject.version = std::stol(value["Version"].asString()); if(!value["VpcCloudInstanceId"].isNull()) dataObject.vpcCloudInstanceId = value["VpcCloudInstanceId"].asString(); + if(!value["InstRole"].isNull()) + dataObject.instRole = value["InstRole"].asString(); + if(!value["MasterInstId"].isNull()) + dataObject.masterInstId = value["MasterInstId"].asString(); auto allVips = value["Vips"]["Vip"]; for (auto value : allVips) { @@ -80,6 +87,9 @@ void DescribeDrdsInstancesResult::parse(const std::string &payload) vipsObject.vswitchId = value["VswitchId"].asString(); dataObject.vips.push_back(vipsObject); } + auto allSlaveInstId = value["SlaveInstId"]["instId"]; + for (auto value : allSlaveInstId) + dataObject.slaveInstId.push_back(value.asString()); data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/drds/src/model/DescribeRdsListRequest.cc b/drds/src/model/DescribeRdsListRequest.cc index 36688f19e..690cea3a7 100644 --- a/drds/src/model/DescribeRdsListRequest.cc +++ b/drds/src/model/DescribeRdsListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRdsListRequest::getDbName()const void DescribeRdsListRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeRdsListRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeRdsListRequest::getDrdsInstanceId()const void DescribeRdsListRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeRdsListRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DescribeRdsListRequest::getAccessKeyId()const void DescribeRdsListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeRdsListResult.cc b/drds/src/model/DescribeRdsListResult.cc index 7e1dcad81..306994b12 100644 --- a/drds/src/model/DescribeRdsListResult.cc +++ b/drds/src/model/DescribeRdsListResult.cc @@ -35,10 +35,13 @@ DescribeRdsListResult::~DescribeRdsListResult() void DescribeRdsListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["RdsInstance"]; for (auto value : allData) diff --git a/drds/src/model/DescribeReadOnlyAccountRequest.cc b/drds/src/model/DescribeReadOnlyAccountRequest.cc index eccdec122..f5e52fded 100644 --- a/drds/src/model/DescribeReadOnlyAccountRequest.cc +++ b/drds/src/model/DescribeReadOnlyAccountRequest.cc @@ -33,7 +33,7 @@ std::string DescribeReadOnlyAccountRequest::getDbName()const void DescribeReadOnlyAccountRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeReadOnlyAccountRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeReadOnlyAccountRequest::getDrdsInstanceId()const void DescribeReadOnlyAccountRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeReadOnlyAccountRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DescribeReadOnlyAccountRequest::getAccessKeyId()const void DescribeReadOnlyAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeReadOnlyAccountResult.cc b/drds/src/model/DescribeReadOnlyAccountResult.cc index bc5dce57d..9c93685c2 100644 --- a/drds/src/model/DescribeReadOnlyAccountResult.cc +++ b/drds/src/model/DescribeReadOnlyAccountResult.cc @@ -35,10 +35,13 @@ DescribeReadOnlyAccountResult::~DescribeReadOnlyAccountResult() void DescribeReadOnlyAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["DbName"].isNull()) diff --git a/drds/src/model/DescribeRegionsRequest.cc b/drds/src/model/DescribeRegionsRequest.cc index c37174466..7a6395cdd 100644 --- a/drds/src/model/DescribeRegionsRequest.cc +++ b/drds/src/model/DescribeRegionsRequest.cc @@ -33,6 +33,6 @@ std::string DescribeRegionsRequest::getAccessKeyId()const void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeRegionsResult.cc b/drds/src/model/DescribeRegionsResult.cc index 2b0aee64e..92f1d1e1b 100644 --- a/drds/src/model/DescribeRegionsResult.cc +++ b/drds/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDrdsRegions = value["DrdsRegions"]["DrdsRegion"]; for (auto value : allDrdsRegions) diff --git a/drds/src/model/DescribeShardDBsRequest.cc b/drds/src/model/DescribeShardDBsRequest.cc index 38bc10ed6..a401cf9c6 100644 --- a/drds/src/model/DescribeShardDBsRequest.cc +++ b/drds/src/model/DescribeShardDBsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeShardDBsRequest::getDbName()const void DescribeShardDBsRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeShardDBsRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeShardDBsRequest::getDrdsInstanceId()const void DescribeShardDBsRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeShardDBsRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DescribeShardDBsRequest::getAccessKeyId()const void DescribeShardDBsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeShardDBsResult.cc b/drds/src/model/DescribeShardDBsResult.cc index b0c6039d1..486b4f182 100644 --- a/drds/src/model/DescribeShardDBsResult.cc +++ b/drds/src/model/DescribeShardDBsResult.cc @@ -35,10 +35,13 @@ DescribeShardDBsResult::~DescribeShardDBsResult() void DescribeShardDBsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DbIntancePair"]; for (auto value : allData) @@ -48,6 +51,8 @@ void DescribeShardDBsResult::parse(const std::string &payload) dataObject.subDbName = value["SubDbName"].asString(); if(!value["InstanceName"].isNull()) dataObject.instanceName = value["InstanceName"].asString(); + if(!value["GroupName"].isNull()) + dataObject.groupName = value["GroupName"].asString(); data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/drds/src/model/DescribeShardDbConnectionInfoRequest.cc b/drds/src/model/DescribeShardDbConnectionInfoRequest.cc index fa5a40a64..0b26b5fa4 100644 --- a/drds/src/model/DescribeShardDbConnectionInfoRequest.cc +++ b/drds/src/model/DescribeShardDbConnectionInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeShardDbConnectionInfoRequest::getDbName()const void DescribeShardDbConnectionInfoRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeShardDbConnectionInfoRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeShardDbConnectionInfoRequest::getDrdsInstanceId()const void DescribeShardDbConnectionInfoRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string DescribeShardDbConnectionInfoRequest::getSubDbName()const @@ -55,7 +55,7 @@ std::string DescribeShardDbConnectionInfoRequest::getSubDbName()const void DescribeShardDbConnectionInfoRequest::setSubDbName(const std::string& subDbName) { subDbName_ = subDbName; - setParameter("SubDbName", subDbName); + setCoreParameter("SubDbName", subDbName); } std::string DescribeShardDbConnectionInfoRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeShardDbConnectionInfoRequest::getAccessKeyId()const void DescribeShardDbConnectionInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/DescribeShardDbConnectionInfoResult.cc b/drds/src/model/DescribeShardDbConnectionInfoResult.cc index a46184f3f..5d9cbc814 100644 --- a/drds/src/model/DescribeShardDbConnectionInfoResult.cc +++ b/drds/src/model/DescribeShardDbConnectionInfoResult.cc @@ -35,10 +35,13 @@ DescribeShardDbConnectionInfoResult::~DescribeShardDbConnectionInfoResult() void DescribeShardDbConnectionInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto connectionInfoNode = value["ConnectionInfo"]; if(!connectionInfoNode["InstanceName"].isNull()) diff --git a/drds/src/model/ModifyDrdsDBPasswdRequest.cc b/drds/src/model/ModifyDrdsDBPasswdRequest.cc index e6ea51b1e..8afe9168f 100644 --- a/drds/src/model/ModifyDrdsDBPasswdRequest.cc +++ b/drds/src/model/ModifyDrdsDBPasswdRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDrdsDBPasswdRequest::getNewPasswd()const void ModifyDrdsDBPasswdRequest::setNewPasswd(const std::string& newPasswd) { newPasswd_ = newPasswd; - setParameter("NewPasswd", newPasswd); + setCoreParameter("NewPasswd", newPasswd); } std::string ModifyDrdsDBPasswdRequest::getDbName()const @@ -44,7 +44,7 @@ std::string ModifyDrdsDBPasswdRequest::getDbName()const void ModifyDrdsDBPasswdRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string ModifyDrdsDBPasswdRequest::getDrdsInstanceId()const @@ -55,7 +55,7 @@ std::string ModifyDrdsDBPasswdRequest::getDrdsInstanceId()const void ModifyDrdsDBPasswdRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string ModifyDrdsDBPasswdRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ModifyDrdsDBPasswdRequest::getAccessKeyId()const void ModifyDrdsDBPasswdRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/ModifyDrdsDBPasswdResult.cc b/drds/src/model/ModifyDrdsDBPasswdResult.cc index b3d72aab8..010dfeaa2 100644 --- a/drds/src/model/ModifyDrdsDBPasswdResult.cc +++ b/drds/src/model/ModifyDrdsDBPasswdResult.cc @@ -35,10 +35,13 @@ ModifyDrdsDBPasswdResult::~ModifyDrdsDBPasswdResult() void ModifyDrdsDBPasswdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/ModifyDrdsInstanceDescriptionRequest.cc b/drds/src/model/ModifyDrdsInstanceDescriptionRequest.cc index 82cafd099..e35d325bb 100644 --- a/drds/src/model/ModifyDrdsInstanceDescriptionRequest.cc +++ b/drds/src/model/ModifyDrdsInstanceDescriptionRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDrdsInstanceDescriptionRequest::getDescription()const void ModifyDrdsInstanceDescriptionRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyDrdsInstanceDescriptionRequest::getDrdsInstanceId()const @@ -44,7 +44,7 @@ std::string ModifyDrdsInstanceDescriptionRequest::getDrdsInstanceId()const void ModifyDrdsInstanceDescriptionRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string ModifyDrdsInstanceDescriptionRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ModifyDrdsInstanceDescriptionRequest::getAccessKeyId()const void ModifyDrdsInstanceDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/ModifyDrdsInstanceDescriptionResult.cc b/drds/src/model/ModifyDrdsInstanceDescriptionResult.cc index c5b3668fc..e1ad5775c 100644 --- a/drds/src/model/ModifyDrdsInstanceDescriptionResult.cc +++ b/drds/src/model/ModifyDrdsInstanceDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyDrdsInstanceDescriptionResult::~ModifyDrdsInstanceDescriptionResult() void ModifyDrdsInstanceDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/ModifyDrdsIpWhiteListRequest.cc b/drds/src/model/ModifyDrdsIpWhiteListRequest.cc index 6540c65aa..d0ad1d376 100644 --- a/drds/src/model/ModifyDrdsIpWhiteListRequest.cc +++ b/drds/src/model/ModifyDrdsIpWhiteListRequest.cc @@ -33,7 +33,7 @@ bool ModifyDrdsIpWhiteListRequest::getMode()const void ModifyDrdsIpWhiteListRequest::setMode(bool mode) { mode_ = mode; - setParameter("Mode", std::to_string(mode)); + setCoreParameter("Mode", mode ? "true" : "false"); } std::string ModifyDrdsIpWhiteListRequest::getDbName()const @@ -44,7 +44,7 @@ std::string ModifyDrdsIpWhiteListRequest::getDbName()const void ModifyDrdsIpWhiteListRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string ModifyDrdsIpWhiteListRequest::getGroupAttribute()const @@ -55,7 +55,7 @@ std::string ModifyDrdsIpWhiteListRequest::getGroupAttribute()const void ModifyDrdsIpWhiteListRequest::setGroupAttribute(const std::string& groupAttribute) { groupAttribute_ = groupAttribute; - setParameter("GroupAttribute", groupAttribute); + setCoreParameter("GroupAttribute", groupAttribute); } std::string ModifyDrdsIpWhiteListRequest::getIpWhiteList()const @@ -66,7 +66,7 @@ std::string ModifyDrdsIpWhiteListRequest::getIpWhiteList()const void ModifyDrdsIpWhiteListRequest::setIpWhiteList(const std::string& ipWhiteList) { ipWhiteList_ = ipWhiteList; - setParameter("IpWhiteList", ipWhiteList); + setCoreParameter("IpWhiteList", ipWhiteList); } std::string ModifyDrdsIpWhiteListRequest::getDrdsInstanceId()const @@ -77,7 +77,7 @@ std::string ModifyDrdsIpWhiteListRequest::getDrdsInstanceId()const void ModifyDrdsIpWhiteListRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string ModifyDrdsIpWhiteListRequest::getGroupName()const @@ -88,7 +88,7 @@ std::string ModifyDrdsIpWhiteListRequest::getGroupName()const void ModifyDrdsIpWhiteListRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string ModifyDrdsIpWhiteListRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ModifyDrdsIpWhiteListRequest::getAccessKeyId()const void ModifyDrdsIpWhiteListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/ModifyDrdsIpWhiteListResult.cc b/drds/src/model/ModifyDrdsIpWhiteListResult.cc index ebe4b73c1..82218637a 100644 --- a/drds/src/model/ModifyDrdsIpWhiteListResult.cc +++ b/drds/src/model/ModifyDrdsIpWhiteListResult.cc @@ -35,10 +35,13 @@ ModifyDrdsIpWhiteListResult::~ModifyDrdsIpWhiteListResult() void ModifyDrdsIpWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/ModifyFullTableScanRequest.cc b/drds/src/model/ModifyFullTableScanRequest.cc index 1d3141988..a0621e9ba 100644 --- a/drds/src/model/ModifyFullTableScanRequest.cc +++ b/drds/src/model/ModifyFullTableScanRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFullTableScanRequest::getDbName()const void ModifyFullTableScanRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string ModifyFullTableScanRequest::getTableNames()const @@ -44,7 +44,7 @@ std::string ModifyFullTableScanRequest::getTableNames()const void ModifyFullTableScanRequest::setTableNames(const std::string& tableNames) { tableNames_ = tableNames; - setParameter("TableNames", tableNames); + setCoreParameter("TableNames", tableNames); } std::string ModifyFullTableScanRequest::getDrdsInstanceId()const @@ -55,7 +55,7 @@ std::string ModifyFullTableScanRequest::getDrdsInstanceId()const void ModifyFullTableScanRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } bool ModifyFullTableScanRequest::getFullTableScan()const @@ -66,7 +66,7 @@ bool ModifyFullTableScanRequest::getFullTableScan()const void ModifyFullTableScanRequest::setFullTableScan(bool fullTableScan) { fullTableScan_ = fullTableScan; - setParameter("FullTableScan", std::to_string(fullTableScan)); + setCoreParameter("FullTableScan", fullTableScan ? "true" : "false"); } std::string ModifyFullTableScanRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifyFullTableScanRequest::getAccessKeyId()const void ModifyFullTableScanRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/ModifyFullTableScanResult.cc b/drds/src/model/ModifyFullTableScanResult.cc index 13e2d7559..1df62cdb2 100644 --- a/drds/src/model/ModifyFullTableScanResult.cc +++ b/drds/src/model/ModifyFullTableScanResult.cc @@ -35,10 +35,13 @@ ModifyFullTableScanResult::~ModifyFullTableScanResult() void ModifyFullTableScanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/ModifyRdsReadWeightRequest.cc b/drds/src/model/ModifyRdsReadWeightRequest.cc index 271ff850b..27b20bedd 100644 --- a/drds/src/model/ModifyRdsReadWeightRequest.cc +++ b/drds/src/model/ModifyRdsReadWeightRequest.cc @@ -33,7 +33,7 @@ std::string ModifyRdsReadWeightRequest::getInstanceNames()const void ModifyRdsReadWeightRequest::setInstanceNames(const std::string& instanceNames) { instanceNames_ = instanceNames; - setParameter("InstanceNames", instanceNames); + setCoreParameter("InstanceNames", instanceNames); } std::string ModifyRdsReadWeightRequest::getDbName()const @@ -44,7 +44,7 @@ std::string ModifyRdsReadWeightRequest::getDbName()const void ModifyRdsReadWeightRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string ModifyRdsReadWeightRequest::getWeights()const @@ -55,7 +55,7 @@ std::string ModifyRdsReadWeightRequest::getWeights()const void ModifyRdsReadWeightRequest::setWeights(const std::string& weights) { weights_ = weights; - setParameter("Weights", weights); + setCoreParameter("Weights", weights); } std::string ModifyRdsReadWeightRequest::getDrdsInstanceId()const @@ -66,7 +66,7 @@ std::string ModifyRdsReadWeightRequest::getDrdsInstanceId()const void ModifyRdsReadWeightRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string ModifyRdsReadWeightRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifyRdsReadWeightRequest::getAccessKeyId()const void ModifyRdsReadWeightRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/ModifyRdsReadWeightResult.cc b/drds/src/model/ModifyRdsReadWeightResult.cc index 9cdee4501..c54a0da37 100644 --- a/drds/src/model/ModifyRdsReadWeightResult.cc +++ b/drds/src/model/ModifyRdsReadWeightResult.cc @@ -35,10 +35,13 @@ ModifyRdsReadWeightResult::~ModifyRdsReadWeightResult() void ModifyRdsReadWeightResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/ModifyReadOnlyAccountPasswordRequest.cc b/drds/src/model/ModifyReadOnlyAccountPasswordRequest.cc index fdbe8834c..4b9ab46df 100644 --- a/drds/src/model/ModifyReadOnlyAccountPasswordRequest.cc +++ b/drds/src/model/ModifyReadOnlyAccountPasswordRequest.cc @@ -33,7 +33,7 @@ std::string ModifyReadOnlyAccountPasswordRequest::getNewPasswd()const void ModifyReadOnlyAccountPasswordRequest::setNewPasswd(const std::string& newPasswd) { newPasswd_ = newPasswd; - setParameter("NewPasswd", newPasswd); + setCoreParameter("NewPasswd", newPasswd); } std::string ModifyReadOnlyAccountPasswordRequest::getDbName()const @@ -44,7 +44,7 @@ std::string ModifyReadOnlyAccountPasswordRequest::getDbName()const void ModifyReadOnlyAccountPasswordRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string ModifyReadOnlyAccountPasswordRequest::getAccountName()const @@ -55,7 +55,7 @@ std::string ModifyReadOnlyAccountPasswordRequest::getAccountName()const void ModifyReadOnlyAccountPasswordRequest::setAccountName(const std::string& accountName) { accountName_ = accountName; - setParameter("AccountName", accountName); + setCoreParameter("AccountName", accountName); } std::string ModifyReadOnlyAccountPasswordRequest::getOriginPassword()const @@ -66,7 +66,7 @@ std::string ModifyReadOnlyAccountPasswordRequest::getOriginPassword()const void ModifyReadOnlyAccountPasswordRequest::setOriginPassword(const std::string& originPassword) { originPassword_ = originPassword; - setParameter("OriginPassword", originPassword); + setCoreParameter("OriginPassword", originPassword); } std::string ModifyReadOnlyAccountPasswordRequest::getDrdsInstanceId()const @@ -77,7 +77,7 @@ std::string ModifyReadOnlyAccountPasswordRequest::getDrdsInstanceId()const void ModifyReadOnlyAccountPasswordRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string ModifyReadOnlyAccountPasswordRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ModifyReadOnlyAccountPasswordRequest::getAccessKeyId()const void ModifyReadOnlyAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/ModifyReadOnlyAccountPasswordResult.cc b/drds/src/model/ModifyReadOnlyAccountPasswordResult.cc index ac5b33131..3f62ca9d8 100644 --- a/drds/src/model/ModifyReadOnlyAccountPasswordResult.cc +++ b/drds/src/model/ModifyReadOnlyAccountPasswordResult.cc @@ -35,10 +35,13 @@ ModifyReadOnlyAccountPasswordResult::~ModifyReadOnlyAccountPasswordResult() void ModifyReadOnlyAccountPasswordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/QueryInstanceInfoByConnRequest.cc b/drds/src/model/QueryInstanceInfoByConnRequest.cc index db7dc9d1a..f5961f065 100644 --- a/drds/src/model/QueryInstanceInfoByConnRequest.cc +++ b/drds/src/model/QueryInstanceInfoByConnRequest.cc @@ -33,7 +33,7 @@ int QueryInstanceInfoByConnRequest::getPort()const void QueryInstanceInfoByConnRequest::setPort(int port) { port_ = port; - setParameter("Port", std::to_string(port)); + setCoreParameter("Port", std::to_string(port)); } std::string QueryInstanceInfoByConnRequest::getHost()const @@ -44,7 +44,7 @@ std::string QueryInstanceInfoByConnRequest::getHost()const void QueryInstanceInfoByConnRequest::setHost(const std::string& host) { host_ = host; - setParameter("Host", host); + setCoreParameter("Host", host); } std::string QueryInstanceInfoByConnRequest::getUserName()const @@ -55,7 +55,7 @@ std::string QueryInstanceInfoByConnRequest::getUserName()const void QueryInstanceInfoByConnRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } std::string QueryInstanceInfoByConnRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string QueryInstanceInfoByConnRequest::getAccessKeyId()const void QueryInstanceInfoByConnRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/QueryInstanceInfoByConnResult.cc b/drds/src/model/QueryInstanceInfoByConnResult.cc index dea77ffdb..383a6a441 100644 --- a/drds/src/model/QueryInstanceInfoByConnResult.cc +++ b/drds/src/model/QueryInstanceInfoByConnResult.cc @@ -35,10 +35,13 @@ QueryInstanceInfoByConnResult::~QueryInstanceInfoByConnResult() void QueryInstanceInfoByConnResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["DrdsInstanceId"].isNull()) diff --git a/drds/src/model/RemoveDrdsInstanceRequest.cc b/drds/src/model/RemoveDrdsInstanceRequest.cc index 9d10178f8..52de12e99 100644 --- a/drds/src/model/RemoveDrdsInstanceRequest.cc +++ b/drds/src/model/RemoveDrdsInstanceRequest.cc @@ -33,7 +33,7 @@ std::string RemoveDrdsInstanceRequest::getDrdsInstanceId()const void RemoveDrdsInstanceRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string RemoveDrdsInstanceRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string RemoveDrdsInstanceRequest::getAccessKeyId()const void RemoveDrdsInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/RemoveDrdsInstanceResult.cc b/drds/src/model/RemoveDrdsInstanceResult.cc index 475f0aa2d..1f0e7de2f 100644 --- a/drds/src/model/RemoveDrdsInstanceResult.cc +++ b/drds/src/model/RemoveDrdsInstanceResult.cc @@ -35,10 +35,13 @@ RemoveDrdsInstanceResult::~RemoveDrdsInstanceResult() void RemoveDrdsInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/drds/src/model/RemoveReadOnlyAccountRequest.cc b/drds/src/model/RemoveReadOnlyAccountRequest.cc index d55af1181..bc14089a7 100644 --- a/drds/src/model/RemoveReadOnlyAccountRequest.cc +++ b/drds/src/model/RemoveReadOnlyAccountRequest.cc @@ -33,7 +33,7 @@ std::string RemoveReadOnlyAccountRequest::getDbName()const void RemoveReadOnlyAccountRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string RemoveReadOnlyAccountRequest::getAccountName()const @@ -44,7 +44,7 @@ std::string RemoveReadOnlyAccountRequest::getAccountName()const void RemoveReadOnlyAccountRequest::setAccountName(const std::string& accountName) { accountName_ = accountName; - setParameter("AccountName", accountName); + setCoreParameter("AccountName", accountName); } std::string RemoveReadOnlyAccountRequest::getDrdsInstanceId()const @@ -55,7 +55,7 @@ std::string RemoveReadOnlyAccountRequest::getDrdsInstanceId()const void RemoveReadOnlyAccountRequest::setDrdsInstanceId(const std::string& drdsInstanceId) { drdsInstanceId_ = drdsInstanceId; - setParameter("DrdsInstanceId", drdsInstanceId); + setCoreParameter("DrdsInstanceId", drdsInstanceId); } std::string RemoveReadOnlyAccountRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string RemoveReadOnlyAccountRequest::getAccessKeyId()const void RemoveReadOnlyAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/drds/src/model/RemoveReadOnlyAccountResult.cc b/drds/src/model/RemoveReadOnlyAccountResult.cc index 472101570..dd48a69a4 100644 --- a/drds/src/model/RemoveReadOnlyAccountResult.cc +++ b/drds/src/model/RemoveReadOnlyAccountResult.cc @@ -35,10 +35,13 @@ RemoveReadOnlyAccountResult::~RemoveReadOnlyAccountResult() void RemoveReadOnlyAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/dysmsapi/src/model/QuerySendDetailsRequest.cc b/dysmsapi/src/model/QuerySendDetailsRequest.cc index a6d20c4f2..f49cb9e17 100644 --- a/dysmsapi/src/model/QuerySendDetailsRequest.cc +++ b/dysmsapi/src/model/QuerySendDetailsRequest.cc @@ -33,7 +33,7 @@ long QuerySendDetailsRequest::getResourceOwnerId()const void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QuerySendDetailsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QuerySendDetailsRequest::getResourceOwnerAccount()const void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QuerySendDetailsRequest::getSendDate()const @@ -55,7 +55,7 @@ std::string QuerySendDetailsRequest::getSendDate()const void QuerySendDetailsRequest::setSendDate(const std::string& sendDate) { sendDate_ = sendDate; - setParameter("SendDate", sendDate); + setCoreParameter("SendDate", sendDate); } std::string QuerySendDetailsRequest::getPhoneNumber()const @@ -66,7 +66,7 @@ std::string QuerySendDetailsRequest::getPhoneNumber()const void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } std::string QuerySendDetailsRequest::getBizId()const @@ -77,7 +77,7 @@ std::string QuerySendDetailsRequest::getBizId()const void QuerySendDetailsRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } long QuerySendDetailsRequest::getPageSize()const @@ -88,7 +88,7 @@ long QuerySendDetailsRequest::getPageSize()const void QuerySendDetailsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long QuerySendDetailsRequest::getCurrentPage()const @@ -99,7 +99,7 @@ long QuerySendDetailsRequest::getCurrentPage()const void QuerySendDetailsRequest::setCurrentPage(long currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } long QuerySendDetailsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long QuerySendDetailsRequest::getOwnerId()const void QuerySendDetailsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QuerySendDetailsRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string QuerySendDetailsRequest::getAccessKeyId()const void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/dysmsapi/src/model/QuerySendDetailsResult.cc b/dysmsapi/src/model/QuerySendDetailsResult.cc index 464d43f56..9196b876f 100644 --- a/dysmsapi/src/model/QuerySendDetailsResult.cc +++ b/dysmsapi/src/model/QuerySendDetailsResult.cc @@ -35,10 +35,13 @@ QuerySendDetailsResult::~QuerySendDetailsResult() void QuerySendDetailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSmsSendDetailDTOs = value["SmsSendDetailDTOs"]["SmsSendDetailDTO"]; for (auto value : allSmsSendDetailDTOs) diff --git a/dysmsapi/src/model/SendBatchSmsRequest.cc b/dysmsapi/src/model/SendBatchSmsRequest.cc index 562a01898..74bbbaaef 100644 --- a/dysmsapi/src/model/SendBatchSmsRequest.cc +++ b/dysmsapi/src/model/SendBatchSmsRequest.cc @@ -33,7 +33,7 @@ std::string SendBatchSmsRequest::getTemplateParamJson()const void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson) { templateParamJson_ = templateParamJson; - setParameter("TemplateParamJson", templateParamJson); + setCoreParameter("TemplateParamJson", templateParamJson); } long SendBatchSmsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SendBatchSmsRequest::getResourceOwnerId()const void SendBatchSmsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SendBatchSmsRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string SendBatchSmsRequest::getResourceOwnerAccount()const void SendBatchSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const @@ -66,7 +66,7 @@ std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson) { smsUpExtendCodeJson_ = smsUpExtendCodeJson; - setParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson); + setCoreParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson); } long SendBatchSmsRequest::getOwnerId()const @@ -77,7 +77,7 @@ long SendBatchSmsRequest::getOwnerId()const void SendBatchSmsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SendBatchSmsRequest::getSignNameJson()const @@ -88,7 +88,7 @@ std::string SendBatchSmsRequest::getSignNameJson()const void SendBatchSmsRequest::setSignNameJson(const std::string& signNameJson) { signNameJson_ = signNameJson; - setParameter("SignNameJson", signNameJson); + setCoreParameter("SignNameJson", signNameJson); } std::string SendBatchSmsRequest::getTemplateCode()const @@ -99,7 +99,7 @@ std::string SendBatchSmsRequest::getTemplateCode()const void SendBatchSmsRequest::setTemplateCode(const std::string& templateCode) { templateCode_ = templateCode; - setParameter("TemplateCode", templateCode); + setCoreParameter("TemplateCode", templateCode); } std::string SendBatchSmsRequest::getPhoneNumberJson()const @@ -110,7 +110,7 @@ std::string SendBatchSmsRequest::getPhoneNumberJson()const void SendBatchSmsRequest::setPhoneNumberJson(const std::string& phoneNumberJson) { phoneNumberJson_ = phoneNumberJson; - setParameter("PhoneNumberJson", phoneNumberJson); + setCoreParameter("PhoneNumberJson", phoneNumberJson); } std::string SendBatchSmsRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string SendBatchSmsRequest::getAccessKeyId()const void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/dysmsapi/src/model/SendBatchSmsResult.cc b/dysmsapi/src/model/SendBatchSmsResult.cc index f5df9adec..3c12ce8ae 100644 --- a/dysmsapi/src/model/SendBatchSmsResult.cc +++ b/dysmsapi/src/model/SendBatchSmsResult.cc @@ -35,10 +35,13 @@ SendBatchSmsResult::~SendBatchSmsResult() void SendBatchSmsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizId"].isNull()) bizId_ = value["BizId"].asString(); diff --git a/dysmsapi/src/model/SendSmsRequest.cc b/dysmsapi/src/model/SendSmsRequest.cc index 4816c3ec5..7245a9c36 100644 --- a/dysmsapi/src/model/SendSmsRequest.cc +++ b/dysmsapi/src/model/SendSmsRequest.cc @@ -33,7 +33,7 @@ std::string SendSmsRequest::getSmsUpExtendCode()const void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode) { smsUpExtendCode_ = smsUpExtendCode; - setParameter("SmsUpExtendCode", smsUpExtendCode); + setCoreParameter("SmsUpExtendCode", smsUpExtendCode); } long SendSmsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SendSmsRequest::getResourceOwnerId()const void SendSmsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SendSmsRequest::getSignName()const @@ -55,7 +55,7 @@ std::string SendSmsRequest::getSignName()const void SendSmsRequest::setSignName(const std::string& signName) { signName_ = signName; - setParameter("SignName", signName); + setCoreParameter("SignName", signName); } std::string SendSmsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SendSmsRequest::getResourceOwnerAccount()const void SendSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SendSmsRequest::getPhoneNumbers()const @@ -77,7 +77,7 @@ std::string SendSmsRequest::getPhoneNumbers()const void SendSmsRequest::setPhoneNumbers(const std::string& phoneNumbers) { phoneNumbers_ = phoneNumbers; - setParameter("PhoneNumbers", phoneNumbers); + setCoreParameter("PhoneNumbers", phoneNumbers); } std::string SendSmsRequest::getOutId()const @@ -88,7 +88,7 @@ std::string SendSmsRequest::getOutId()const void SendSmsRequest::setOutId(const std::string& outId) { outId_ = outId; - setParameter("OutId", outId); + setCoreParameter("OutId", outId); } long SendSmsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SendSmsRequest::getOwnerId()const void SendSmsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SendSmsRequest::getTemplateCode()const @@ -110,7 +110,7 @@ std::string SendSmsRequest::getTemplateCode()const void SendSmsRequest::setTemplateCode(const std::string& templateCode) { templateCode_ = templateCode; - setParameter("TemplateCode", templateCode); + setCoreParameter("TemplateCode", templateCode); } std::string SendSmsRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string SendSmsRequest::getAccessKeyId()const void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SendSmsRequest::getTemplateParam()const @@ -132,6 +132,6 @@ std::string SendSmsRequest::getTemplateParam()const void SendSmsRequest::setTemplateParam(const std::string& templateParam) { templateParam_ = templateParam; - setParameter("TemplateParam", templateParam); + setCoreParameter("TemplateParam", templateParam); } diff --git a/dysmsapi/src/model/SendSmsResult.cc b/dysmsapi/src/model/SendSmsResult.cc index a0a6e99c6..1e8a6d908 100644 --- a/dysmsapi/src/model/SendSmsResult.cc +++ b/dysmsapi/src/model/SendSmsResult.cc @@ -35,10 +35,13 @@ SendSmsResult::~SendSmsResult() void SendSmsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizId"].isNull()) bizId_ = value["BizId"].asString(); diff --git a/dyvmsapi/CMakeLists.txt b/dyvmsapi/CMakeLists.txt index ef041cfad..5e042a05e 100644 --- a/dyvmsapi/CMakeLists.txt +++ b/dyvmsapi/CMakeLists.txt @@ -21,45 +21,117 @@ set(dyvmsapi_public_header include/alibabacloud/dyvmsapi/DyvmsapiExport.h ) set(dyvmsapi_public_header_model - include/alibabacloud/dyvmsapi/model/SmartCallRequest.h - include/alibabacloud/dyvmsapi/model/SmartCallResult.h - include/alibabacloud/dyvmsapi/model/QueryCallDetailByCallIdRequest.h - include/alibabacloud/dyvmsapi/model/QueryCallDetailByCallIdResult.h - include/alibabacloud/dyvmsapi/model/VoipAddAccountRequest.h - include/alibabacloud/dyvmsapi/model/VoipAddAccountResult.h + include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileRequest.h + include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileResult.h include/alibabacloud/dyvmsapi/model/CancelCallRequest.h include/alibabacloud/dyvmsapi/model/CancelCallResult.h + include/alibabacloud/dyvmsapi/model/CancelRobotTaskRequest.h + include/alibabacloud/dyvmsapi/model/CancelRobotTaskResult.h + include/alibabacloud/dyvmsapi/model/AddRtcAccountRequest.h + include/alibabacloud/dyvmsapi/model/AddRtcAccountResult.h + include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdRequest.h + include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdResult.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailRequest.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailResult.h + include/alibabacloud/dyvmsapi/model/SmartCallOperateRequest.h + include/alibabacloud/dyvmsapi/model/SmartCallOperateResult.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailRequest.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailResult.h + include/alibabacloud/dyvmsapi/model/SingleCallByVoiceRequest.h + include/alibabacloud/dyvmsapi/model/SingleCallByVoiceResult.h + include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.h + include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.h + include/alibabacloud/dyvmsapi/model/GetRtcTokenRequest.h + include/alibabacloud/dyvmsapi/model/GetRtcTokenResult.h + include/alibabacloud/dyvmsapi/model/SingleCallByTtsRequest.h + include/alibabacloud/dyvmsapi/model/SingleCallByTtsResult.h + include/alibabacloud/dyvmsapi/model/QueryRobotInfoListRequest.h + include/alibabacloud/dyvmsapi/model/QueryRobotInfoListResult.h include/alibabacloud/dyvmsapi/model/VoipGetTokenRequest.h include/alibabacloud/dyvmsapi/model/VoipGetTokenResult.h include/alibabacloud/dyvmsapi/model/ClickToDialRequest.h include/alibabacloud/dyvmsapi/model/ClickToDialResult.h + include/alibabacloud/dyvmsapi/model/DeleteRobotTaskRequest.h + include/alibabacloud/dyvmsapi/model/DeleteRobotTaskResult.h + include/alibabacloud/dyvmsapi/model/CreateRobotTaskRequest.h + include/alibabacloud/dyvmsapi/model/CreateRobotTaskResult.h + include/alibabacloud/dyvmsapi/model/QueryCallDetailByCallIdRequest.h + include/alibabacloud/dyvmsapi/model/QueryCallDetailByCallIdResult.h + include/alibabacloud/dyvmsapi/model/StopRobotTaskRequest.h + include/alibabacloud/dyvmsapi/model/StopRobotTaskResult.h include/alibabacloud/dyvmsapi/model/IvrCallRequest.h include/alibabacloud/dyvmsapi/model/IvrCallResult.h - include/alibabacloud/dyvmsapi/model/SingleCallByVoiceRequest.h - include/alibabacloud/dyvmsapi/model/SingleCallByVoiceResult.h - include/alibabacloud/dyvmsapi/model/SingleCallByTtsRequest.h - include/alibabacloud/dyvmsapi/model/SingleCallByTtsResult.h ) + include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallRequest.h + include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallResult.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskListRequest.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListRequest.h + include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListResult.h + include/alibabacloud/dyvmsapi/model/SmartCallRequest.h + include/alibabacloud/dyvmsapi/model/SmartCallResult.h + include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskRequest.h + include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskResult.h + include/alibabacloud/dyvmsapi/model/VoipAddAccountRequest.h + include/alibabacloud/dyvmsapi/model/VoipAddAccountResult.h + include/alibabacloud/dyvmsapi/model/StartRobotTaskRequest.h + include/alibabacloud/dyvmsapi/model/StartRobotTaskResult.h ) set(dyvmsapi_src src/DyvmsapiClient.cc - src/model/SmartCallRequest.cc - src/model/SmartCallResult.cc - src/model/QueryCallDetailByCallIdRequest.cc - src/model/QueryCallDetailByCallIdResult.cc - src/model/VoipAddAccountRequest.cc - src/model/VoipAddAccountResult.cc + src/model/UploadRobotTaskCalledFileRequest.cc + src/model/UploadRobotTaskCalledFileResult.cc src/model/CancelCallRequest.cc src/model/CancelCallResult.cc + src/model/CancelRobotTaskRequest.cc + src/model/CancelRobotTaskResult.cc + src/model/AddRtcAccountRequest.cc + src/model/AddRtcAccountResult.cc + src/model/QueryCallDetailByTaskIdRequest.cc + src/model/QueryCallDetailByTaskIdResult.cc + src/model/QueryRobotTaskCallDetailRequest.cc + src/model/QueryRobotTaskCallDetailResult.cc + src/model/SmartCallOperateRequest.cc + src/model/SmartCallOperateResult.cc + src/model/QueryRobotTaskDetailRequest.cc + src/model/QueryRobotTaskDetailResult.cc + src/model/SingleCallByVoiceRequest.cc + src/model/SingleCallByVoiceResult.cc + src/model/QueryRobotv2AllListRequest.cc + src/model/QueryRobotv2AllListResult.cc + src/model/GetRtcTokenRequest.cc + src/model/GetRtcTokenResult.cc + src/model/SingleCallByTtsRequest.cc + src/model/SingleCallByTtsResult.cc + src/model/QueryRobotInfoListRequest.cc + src/model/QueryRobotInfoListResult.cc src/model/VoipGetTokenRequest.cc src/model/VoipGetTokenResult.cc src/model/ClickToDialRequest.cc src/model/ClickToDialResult.cc + src/model/DeleteRobotTaskRequest.cc + src/model/DeleteRobotTaskResult.cc + src/model/CreateRobotTaskRequest.cc + src/model/CreateRobotTaskResult.cc + src/model/QueryCallDetailByCallIdRequest.cc + src/model/QueryCallDetailByCallIdResult.cc + src/model/StopRobotTaskRequest.cc + src/model/StopRobotTaskResult.cc src/model/IvrCallRequest.cc src/model/IvrCallResult.cc - src/model/SingleCallByVoiceRequest.cc - src/model/SingleCallByVoiceResult.cc - src/model/SingleCallByTtsRequest.cc - src/model/SingleCallByTtsResult.cc ) + src/model/BatchRobotSmartCallRequest.cc + src/model/BatchRobotSmartCallResult.cc + src/model/QueryRobotTaskListRequest.cc + src/model/QueryRobotTaskListResult.cc + src/model/QueryRobotTaskCallListRequest.cc + src/model/QueryRobotTaskCallListResult.cc + src/model/SmartCallRequest.cc + src/model/SmartCallResult.cc + src/model/CancelOrderRobotTaskRequest.cc + src/model/CancelOrderRobotTaskResult.cc + src/model/VoipAddAccountRequest.cc + src/model/VoipAddAccountResult.cc + src/model/StartRobotTaskRequest.cc + src/model/StartRobotTaskResult.cc ) add_library(dyvmsapi ${LIB_TYPE} ${dyvmsapi_public_header} diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/DyvmsapiClient.h b/dyvmsapi/include/alibabacloud/dyvmsapi/DyvmsapiClient.h index b949aca0e..1717d4aad 100644 --- a/dyvmsapi/include/alibabacloud/dyvmsapi/DyvmsapiClient.h +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/DyvmsapiClient.h @@ -22,24 +22,60 @@ #include #include #include "DyvmsapiExport.h" -#include "model/SmartCallRequest.h" -#include "model/SmartCallResult.h" -#include "model/QueryCallDetailByCallIdRequest.h" -#include "model/QueryCallDetailByCallIdResult.h" -#include "model/VoipAddAccountRequest.h" -#include "model/VoipAddAccountResult.h" +#include "model/UploadRobotTaskCalledFileRequest.h" +#include "model/UploadRobotTaskCalledFileResult.h" #include "model/CancelCallRequest.h" #include "model/CancelCallResult.h" +#include "model/CancelRobotTaskRequest.h" +#include "model/CancelRobotTaskResult.h" +#include "model/AddRtcAccountRequest.h" +#include "model/AddRtcAccountResult.h" +#include "model/QueryCallDetailByTaskIdRequest.h" +#include "model/QueryCallDetailByTaskIdResult.h" +#include "model/QueryRobotTaskCallDetailRequest.h" +#include "model/QueryRobotTaskCallDetailResult.h" +#include "model/SmartCallOperateRequest.h" +#include "model/SmartCallOperateResult.h" +#include "model/QueryRobotTaskDetailRequest.h" +#include "model/QueryRobotTaskDetailResult.h" +#include "model/SingleCallByVoiceRequest.h" +#include "model/SingleCallByVoiceResult.h" +#include "model/QueryRobotv2AllListRequest.h" +#include "model/QueryRobotv2AllListResult.h" +#include "model/GetRtcTokenRequest.h" +#include "model/GetRtcTokenResult.h" +#include "model/SingleCallByTtsRequest.h" +#include "model/SingleCallByTtsResult.h" +#include "model/QueryRobotInfoListRequest.h" +#include "model/QueryRobotInfoListResult.h" #include "model/VoipGetTokenRequest.h" #include "model/VoipGetTokenResult.h" #include "model/ClickToDialRequest.h" #include "model/ClickToDialResult.h" +#include "model/DeleteRobotTaskRequest.h" +#include "model/DeleteRobotTaskResult.h" +#include "model/CreateRobotTaskRequest.h" +#include "model/CreateRobotTaskResult.h" +#include "model/QueryCallDetailByCallIdRequest.h" +#include "model/QueryCallDetailByCallIdResult.h" +#include "model/StopRobotTaskRequest.h" +#include "model/StopRobotTaskResult.h" #include "model/IvrCallRequest.h" #include "model/IvrCallResult.h" -#include "model/SingleCallByVoiceRequest.h" -#include "model/SingleCallByVoiceResult.h" -#include "model/SingleCallByTtsRequest.h" -#include "model/SingleCallByTtsResult.h" +#include "model/BatchRobotSmartCallRequest.h" +#include "model/BatchRobotSmartCallResult.h" +#include "model/QueryRobotTaskListRequest.h" +#include "model/QueryRobotTaskListResult.h" +#include "model/QueryRobotTaskCallListRequest.h" +#include "model/QueryRobotTaskCallListResult.h" +#include "model/SmartCallRequest.h" +#include "model/SmartCallResult.h" +#include "model/CancelOrderRobotTaskRequest.h" +#include "model/CancelOrderRobotTaskResult.h" +#include "model/VoipAddAccountRequest.h" +#include "model/VoipAddAccountResult.h" +#include "model/StartRobotTaskRequest.h" +#include "model/StartRobotTaskResult.h" namespace AlibabaCloud @@ -49,65 +85,173 @@ namespace AlibabaCloud class ALIBABACLOUD_DYVMSAPI_EXPORT DyvmsapiClient : public RpcServiceClient { public: - typedef Outcome SmartCallOutcome; - typedef std::future SmartCallOutcomeCallable; - typedef std::function&)> SmartCallAsyncHandler; - typedef Outcome QueryCallDetailByCallIdOutcome; - typedef std::future QueryCallDetailByCallIdOutcomeCallable; - typedef std::function&)> QueryCallDetailByCallIdAsyncHandler; - typedef Outcome VoipAddAccountOutcome; - typedef std::future VoipAddAccountOutcomeCallable; - typedef std::function&)> VoipAddAccountAsyncHandler; + typedef Outcome UploadRobotTaskCalledFileOutcome; + typedef std::future UploadRobotTaskCalledFileOutcomeCallable; + typedef std::function&)> UploadRobotTaskCalledFileAsyncHandler; typedef Outcome CancelCallOutcome; typedef std::future CancelCallOutcomeCallable; typedef std::function&)> CancelCallAsyncHandler; + typedef Outcome CancelRobotTaskOutcome; + typedef std::future CancelRobotTaskOutcomeCallable; + typedef std::function&)> CancelRobotTaskAsyncHandler; + typedef Outcome AddRtcAccountOutcome; + typedef std::future AddRtcAccountOutcomeCallable; + typedef std::function&)> AddRtcAccountAsyncHandler; + typedef Outcome QueryCallDetailByTaskIdOutcome; + typedef std::future QueryCallDetailByTaskIdOutcomeCallable; + typedef std::function&)> QueryCallDetailByTaskIdAsyncHandler; + typedef Outcome QueryRobotTaskCallDetailOutcome; + typedef std::future QueryRobotTaskCallDetailOutcomeCallable; + typedef std::function&)> QueryRobotTaskCallDetailAsyncHandler; + typedef Outcome SmartCallOperateOutcome; + typedef std::future SmartCallOperateOutcomeCallable; + typedef std::function&)> SmartCallOperateAsyncHandler; + typedef Outcome QueryRobotTaskDetailOutcome; + typedef std::future QueryRobotTaskDetailOutcomeCallable; + typedef std::function&)> QueryRobotTaskDetailAsyncHandler; + typedef Outcome SingleCallByVoiceOutcome; + typedef std::future SingleCallByVoiceOutcomeCallable; + typedef std::function&)> SingleCallByVoiceAsyncHandler; + typedef Outcome QueryRobotv2AllListOutcome; + typedef std::future QueryRobotv2AllListOutcomeCallable; + typedef std::function&)> QueryRobotv2AllListAsyncHandler; + typedef Outcome GetRtcTokenOutcome; + typedef std::future GetRtcTokenOutcomeCallable; + typedef std::function&)> GetRtcTokenAsyncHandler; + typedef Outcome SingleCallByTtsOutcome; + typedef std::future SingleCallByTtsOutcomeCallable; + typedef std::function&)> SingleCallByTtsAsyncHandler; + typedef Outcome QueryRobotInfoListOutcome; + typedef std::future QueryRobotInfoListOutcomeCallable; + typedef std::function&)> QueryRobotInfoListAsyncHandler; typedef Outcome VoipGetTokenOutcome; typedef std::future VoipGetTokenOutcomeCallable; typedef std::function&)> VoipGetTokenAsyncHandler; typedef Outcome ClickToDialOutcome; typedef std::future ClickToDialOutcomeCallable; typedef std::function&)> ClickToDialAsyncHandler; + typedef Outcome DeleteRobotTaskOutcome; + typedef std::future DeleteRobotTaskOutcomeCallable; + typedef std::function&)> DeleteRobotTaskAsyncHandler; + typedef Outcome CreateRobotTaskOutcome; + typedef std::future CreateRobotTaskOutcomeCallable; + typedef std::function&)> CreateRobotTaskAsyncHandler; + typedef Outcome QueryCallDetailByCallIdOutcome; + typedef std::future QueryCallDetailByCallIdOutcomeCallable; + typedef std::function&)> QueryCallDetailByCallIdAsyncHandler; + typedef Outcome StopRobotTaskOutcome; + typedef std::future StopRobotTaskOutcomeCallable; + typedef std::function&)> StopRobotTaskAsyncHandler; typedef Outcome IvrCallOutcome; typedef std::future IvrCallOutcomeCallable; typedef std::function&)> IvrCallAsyncHandler; - typedef Outcome SingleCallByVoiceOutcome; - typedef std::future SingleCallByVoiceOutcomeCallable; - typedef std::function&)> SingleCallByVoiceAsyncHandler; - typedef Outcome SingleCallByTtsOutcome; - typedef std::future SingleCallByTtsOutcomeCallable; - typedef std::function&)> SingleCallByTtsAsyncHandler; + typedef Outcome BatchRobotSmartCallOutcome; + typedef std::future BatchRobotSmartCallOutcomeCallable; + typedef std::function&)> BatchRobotSmartCallAsyncHandler; + typedef Outcome QueryRobotTaskListOutcome; + typedef std::future QueryRobotTaskListOutcomeCallable; + typedef std::function&)> QueryRobotTaskListAsyncHandler; + typedef Outcome QueryRobotTaskCallListOutcome; + typedef std::future QueryRobotTaskCallListOutcomeCallable; + typedef std::function&)> QueryRobotTaskCallListAsyncHandler; + typedef Outcome SmartCallOutcome; + typedef std::future SmartCallOutcomeCallable; + typedef std::function&)> SmartCallAsyncHandler; + typedef Outcome CancelOrderRobotTaskOutcome; + typedef std::future CancelOrderRobotTaskOutcomeCallable; + typedef std::function&)> CancelOrderRobotTaskAsyncHandler; + typedef Outcome VoipAddAccountOutcome; + typedef std::future VoipAddAccountOutcomeCallable; + typedef std::function&)> VoipAddAccountAsyncHandler; + typedef Outcome StartRobotTaskOutcome; + typedef std::future StartRobotTaskOutcomeCallable; + typedef std::function&)> StartRobotTaskAsyncHandler; DyvmsapiClient(const Credentials &credentials, const ClientConfiguration &configuration); DyvmsapiClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); DyvmsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~DyvmsapiClient(); - SmartCallOutcome smartCall(const Model::SmartCallRequest &request)const; - void smartCallAsync(const Model::SmartCallRequest& request, const SmartCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SmartCallOutcomeCallable smartCallCallable(const Model::SmartCallRequest& request) const; - QueryCallDetailByCallIdOutcome queryCallDetailByCallId(const Model::QueryCallDetailByCallIdRequest &request)const; - void queryCallDetailByCallIdAsync(const Model::QueryCallDetailByCallIdRequest& request, const QueryCallDetailByCallIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCallDetailByCallIdOutcomeCallable queryCallDetailByCallIdCallable(const Model::QueryCallDetailByCallIdRequest& request) const; - VoipAddAccountOutcome voipAddAccount(const Model::VoipAddAccountRequest &request)const; - void voipAddAccountAsync(const Model::VoipAddAccountRequest& request, const VoipAddAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - VoipAddAccountOutcomeCallable voipAddAccountCallable(const Model::VoipAddAccountRequest& request) const; + UploadRobotTaskCalledFileOutcome uploadRobotTaskCalledFile(const Model::UploadRobotTaskCalledFileRequest &request)const; + void uploadRobotTaskCalledFileAsync(const Model::UploadRobotTaskCalledFileRequest& request, const UploadRobotTaskCalledFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadRobotTaskCalledFileOutcomeCallable uploadRobotTaskCalledFileCallable(const Model::UploadRobotTaskCalledFileRequest& request) const; CancelCallOutcome cancelCall(const Model::CancelCallRequest &request)const; void cancelCallAsync(const Model::CancelCallRequest& request, const CancelCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelCallOutcomeCallable cancelCallCallable(const Model::CancelCallRequest& request) const; + CancelRobotTaskOutcome cancelRobotTask(const Model::CancelRobotTaskRequest &request)const; + void cancelRobotTaskAsync(const Model::CancelRobotTaskRequest& request, const CancelRobotTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelRobotTaskOutcomeCallable cancelRobotTaskCallable(const Model::CancelRobotTaskRequest& request) const; + AddRtcAccountOutcome addRtcAccount(const Model::AddRtcAccountRequest &request)const; + void addRtcAccountAsync(const Model::AddRtcAccountRequest& request, const AddRtcAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddRtcAccountOutcomeCallable addRtcAccountCallable(const Model::AddRtcAccountRequest& request) const; + QueryCallDetailByTaskIdOutcome queryCallDetailByTaskId(const Model::QueryCallDetailByTaskIdRequest &request)const; + void queryCallDetailByTaskIdAsync(const Model::QueryCallDetailByTaskIdRequest& request, const QueryCallDetailByTaskIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCallDetailByTaskIdOutcomeCallable queryCallDetailByTaskIdCallable(const Model::QueryCallDetailByTaskIdRequest& request) const; + QueryRobotTaskCallDetailOutcome queryRobotTaskCallDetail(const Model::QueryRobotTaskCallDetailRequest &request)const; + void queryRobotTaskCallDetailAsync(const Model::QueryRobotTaskCallDetailRequest& request, const QueryRobotTaskCallDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRobotTaskCallDetailOutcomeCallable queryRobotTaskCallDetailCallable(const Model::QueryRobotTaskCallDetailRequest& request) const; + SmartCallOperateOutcome smartCallOperate(const Model::SmartCallOperateRequest &request)const; + void smartCallOperateAsync(const Model::SmartCallOperateRequest& request, const SmartCallOperateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SmartCallOperateOutcomeCallable smartCallOperateCallable(const Model::SmartCallOperateRequest& request) const; + QueryRobotTaskDetailOutcome queryRobotTaskDetail(const Model::QueryRobotTaskDetailRequest &request)const; + void queryRobotTaskDetailAsync(const Model::QueryRobotTaskDetailRequest& request, const QueryRobotTaskDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRobotTaskDetailOutcomeCallable queryRobotTaskDetailCallable(const Model::QueryRobotTaskDetailRequest& request) const; + SingleCallByVoiceOutcome singleCallByVoice(const Model::SingleCallByVoiceRequest &request)const; + void singleCallByVoiceAsync(const Model::SingleCallByVoiceRequest& request, const SingleCallByVoiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SingleCallByVoiceOutcomeCallable singleCallByVoiceCallable(const Model::SingleCallByVoiceRequest& request) const; + QueryRobotv2AllListOutcome queryRobotv2AllList(const Model::QueryRobotv2AllListRequest &request)const; + void queryRobotv2AllListAsync(const Model::QueryRobotv2AllListRequest& request, const QueryRobotv2AllListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRobotv2AllListOutcomeCallable queryRobotv2AllListCallable(const Model::QueryRobotv2AllListRequest& request) const; + GetRtcTokenOutcome getRtcToken(const Model::GetRtcTokenRequest &request)const; + void getRtcTokenAsync(const Model::GetRtcTokenRequest& request, const GetRtcTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRtcTokenOutcomeCallable getRtcTokenCallable(const Model::GetRtcTokenRequest& request) const; + SingleCallByTtsOutcome singleCallByTts(const Model::SingleCallByTtsRequest &request)const; + void singleCallByTtsAsync(const Model::SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SingleCallByTtsOutcomeCallable singleCallByTtsCallable(const Model::SingleCallByTtsRequest& request) const; + QueryRobotInfoListOutcome queryRobotInfoList(const Model::QueryRobotInfoListRequest &request)const; + void queryRobotInfoListAsync(const Model::QueryRobotInfoListRequest& request, const QueryRobotInfoListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRobotInfoListOutcomeCallable queryRobotInfoListCallable(const Model::QueryRobotInfoListRequest& request) const; VoipGetTokenOutcome voipGetToken(const Model::VoipGetTokenRequest &request)const; void voipGetTokenAsync(const Model::VoipGetTokenRequest& request, const VoipGetTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VoipGetTokenOutcomeCallable voipGetTokenCallable(const Model::VoipGetTokenRequest& request) const; ClickToDialOutcome clickToDial(const Model::ClickToDialRequest &request)const; void clickToDialAsync(const Model::ClickToDialRequest& request, const ClickToDialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ClickToDialOutcomeCallable clickToDialCallable(const Model::ClickToDialRequest& request) const; + DeleteRobotTaskOutcome deleteRobotTask(const Model::DeleteRobotTaskRequest &request)const; + void deleteRobotTaskAsync(const Model::DeleteRobotTaskRequest& request, const DeleteRobotTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRobotTaskOutcomeCallable deleteRobotTaskCallable(const Model::DeleteRobotTaskRequest& request) const; + CreateRobotTaskOutcome createRobotTask(const Model::CreateRobotTaskRequest &request)const; + void createRobotTaskAsync(const Model::CreateRobotTaskRequest& request, const CreateRobotTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRobotTaskOutcomeCallable createRobotTaskCallable(const Model::CreateRobotTaskRequest& request) const; + QueryCallDetailByCallIdOutcome queryCallDetailByCallId(const Model::QueryCallDetailByCallIdRequest &request)const; + void queryCallDetailByCallIdAsync(const Model::QueryCallDetailByCallIdRequest& request, const QueryCallDetailByCallIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCallDetailByCallIdOutcomeCallable queryCallDetailByCallIdCallable(const Model::QueryCallDetailByCallIdRequest& request) const; + StopRobotTaskOutcome stopRobotTask(const Model::StopRobotTaskRequest &request)const; + void stopRobotTaskAsync(const Model::StopRobotTaskRequest& request, const StopRobotTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopRobotTaskOutcomeCallable stopRobotTaskCallable(const Model::StopRobotTaskRequest& request) const; IvrCallOutcome ivrCall(const Model::IvrCallRequest &request)const; void ivrCallAsync(const Model::IvrCallRequest& request, const IvrCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; IvrCallOutcomeCallable ivrCallCallable(const Model::IvrCallRequest& request) const; - SingleCallByVoiceOutcome singleCallByVoice(const Model::SingleCallByVoiceRequest &request)const; - void singleCallByVoiceAsync(const Model::SingleCallByVoiceRequest& request, const SingleCallByVoiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SingleCallByVoiceOutcomeCallable singleCallByVoiceCallable(const Model::SingleCallByVoiceRequest& request) const; - SingleCallByTtsOutcome singleCallByTts(const Model::SingleCallByTtsRequest &request)const; - void singleCallByTtsAsync(const Model::SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SingleCallByTtsOutcomeCallable singleCallByTtsCallable(const Model::SingleCallByTtsRequest& request) const; + BatchRobotSmartCallOutcome batchRobotSmartCall(const Model::BatchRobotSmartCallRequest &request)const; + void batchRobotSmartCallAsync(const Model::BatchRobotSmartCallRequest& request, const BatchRobotSmartCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchRobotSmartCallOutcomeCallable batchRobotSmartCallCallable(const Model::BatchRobotSmartCallRequest& request) const; + QueryRobotTaskListOutcome queryRobotTaskList(const Model::QueryRobotTaskListRequest &request)const; + void queryRobotTaskListAsync(const Model::QueryRobotTaskListRequest& request, const QueryRobotTaskListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRobotTaskListOutcomeCallable queryRobotTaskListCallable(const Model::QueryRobotTaskListRequest& request) const; + QueryRobotTaskCallListOutcome queryRobotTaskCallList(const Model::QueryRobotTaskCallListRequest &request)const; + void queryRobotTaskCallListAsync(const Model::QueryRobotTaskCallListRequest& request, const QueryRobotTaskCallListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRobotTaskCallListOutcomeCallable queryRobotTaskCallListCallable(const Model::QueryRobotTaskCallListRequest& request) const; + SmartCallOutcome smartCall(const Model::SmartCallRequest &request)const; + void smartCallAsync(const Model::SmartCallRequest& request, const SmartCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SmartCallOutcomeCallable smartCallCallable(const Model::SmartCallRequest& request) const; + CancelOrderRobotTaskOutcome cancelOrderRobotTask(const Model::CancelOrderRobotTaskRequest &request)const; + void cancelOrderRobotTaskAsync(const Model::CancelOrderRobotTaskRequest& request, const CancelOrderRobotTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelOrderRobotTaskOutcomeCallable cancelOrderRobotTaskCallable(const Model::CancelOrderRobotTaskRequest& request) const; + VoipAddAccountOutcome voipAddAccount(const Model::VoipAddAccountRequest &request)const; + void voipAddAccountAsync(const Model::VoipAddAccountRequest& request, const VoipAddAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VoipAddAccountOutcomeCallable voipAddAccountCallable(const Model::VoipAddAccountRequest& request) const; + StartRobotTaskOutcome startRobotTask(const Model::StartRobotTaskRequest &request)const; + void startRobotTaskAsync(const Model::StartRobotTaskRequest& request, const StartRobotTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartRobotTaskOutcomeCallable startRobotTaskCallable(const Model::StartRobotTaskRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountRequest.h new file mode 100644 index 000000000..2a7923a28 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountRequest.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_DYVMSAPI_MODEL_ADDRTCACCOUNTREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_ADDRTCACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT AddRtcAccountRequest : public RpcServiceRequest + { + + public: + AddRtcAccountRequest(); + ~AddRtcAccountRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string deviceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_ADDRTCACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountResult.h new file mode 100644 index 000000000..95ae0ef3d --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/AddRtcAccountResult.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_DYVMSAPI_MODEL_ADDRTCACCOUNTRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_ADDRTCACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT AddRtcAccountResult : public ServiceResult + { + public: + + + AddRtcAccountResult(); + explicit AddRtcAccountResult(const std::string &payload); + ~AddRtcAccountResult(); + std::string getMessage()const; + std::string getModule()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string module_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_ADDRTCACCOUNTRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallRequest.h new file mode 100644 index 000000000..0ea3d31ab --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallRequest.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_DYVMSAPI_MODEL_BATCHROBOTSMARTCALLREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_BATCHROBOTSMARTCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT BatchRobotSmartCallRequest : public RpcServiceRequest + { + + public: + BatchRobotSmartCallRequest(); + ~BatchRobotSmartCallRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getEarlyMediaAsr()const; + void setEarlyMediaAsr(bool earlyMediaAsr); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTtsParamHead()const; + void setTtsParamHead(const std::string& ttsParamHead); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + std::string getTtsParam()const; + void setTtsParam(const std::string& ttsParam); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDialogId()const; + void setDialogId(const std::string& dialogId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + long getScheduleTime()const; + void setScheduleTime(long scheduleTime); + std::string getCalledShowNumber()const; + void setCalledShowNumber(const std::string& calledShowNumber); + std::string getCorpName()const; + void setCorpName(const std::string& corpName); + bool getScheduleCall()const; + void setScheduleCall(bool scheduleCall); + bool getIsSelfLine()const; + void setIsSelfLine(bool isSelfLine); + + private: + long resourceOwnerId_; + bool earlyMediaAsr_; + std::string resourceOwnerAccount_; + std::string ttsParamHead_; + std::string taskName_; + std::string ttsParam_; + long ownerId_; + std::string dialogId_; + std::string accessKeyId_; + std::string calledNumber_; + long scheduleTime_; + std::string calledShowNumber_; + std::string corpName_; + bool scheduleCall_; + bool isSelfLine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_BATCHROBOTSMARTCALLREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallResult.h new file mode 100644 index 000000000..0c3ce48ac --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallResult.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_DYVMSAPI_MODEL_BATCHROBOTSMARTCALLRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_BATCHROBOTSMARTCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT BatchRobotSmartCallResult : public ServiceResult + { + public: + + + BatchRobotSmartCallResult(); + explicit BatchRobotSmartCallResult(const std::string &payload); + ~BatchRobotSmartCallResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_BATCHROBOTSMARTCALLRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskRequest.h new file mode 100644 index 000000000..197f887d6 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskRequest.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_DYVMSAPI_MODEL_CANCELORDERROBOTTASKREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_CANCELORDERROBOTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT CancelOrderRobotTaskRequest : public RpcServiceRequest + { + + public: + CancelOrderRobotTaskRequest(); + ~CancelOrderRobotTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTaskId()const; + void setTaskId(long taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + long taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_CANCELORDERROBOTTASKREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskResult.h new file mode 100644 index 000000000..6a5652a58 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskResult.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_DYVMSAPI_MODEL_CANCELORDERROBOTTASKRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_CANCELORDERROBOTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT CancelOrderRobotTaskResult : public ServiceResult + { + public: + + + CancelOrderRobotTaskResult(); + explicit CancelOrderRobotTaskResult(const std::string &payload); + ~CancelOrderRobotTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_CANCELORDERROBOTTASKRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskRequest.h new file mode 100644 index 000000000..ad84f2043 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskRequest.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_DYVMSAPI_MODEL_CANCELROBOTTASKREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_CANCELROBOTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT CancelRobotTaskRequest : public RpcServiceRequest + { + + public: + CancelRobotTaskRequest(); + ~CancelRobotTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTaskId()const; + void setTaskId(long taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + long taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_CANCELROBOTTASKREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskResult.h new file mode 100644 index 000000000..ba2d2c14e --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CancelRobotTaskResult.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_DYVMSAPI_MODEL_CANCELROBOTTASKRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_CANCELROBOTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT CancelRobotTaskResult : public ServiceResult + { + public: + + + CancelRobotTaskResult(); + explicit CancelRobotTaskResult(const std::string &payload); + ~CancelRobotTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_CANCELROBOTTASKRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskRequest.h new file mode 100644 index 000000000..b2762e345 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_CREATEROBOTTASKREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_CREATEROBOTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT CreateRobotTaskRequest : public RpcServiceRequest + { + + public: + CreateRobotTaskRequest(); + ~CreateRobotTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRecallStateCodes()const; + void setRecallStateCodes(const std::string& recallStateCodes); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + int getRetryType()const; + void setRetryType(int retryType); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getDialogId()const; + void setDialogId(long dialogId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getRecallTimes()const; + void setRecallTimes(int recallTimes); + std::string getCaller()const; + void setCaller(const std::string& caller); + bool getNumberStatusIdent()const; + void setNumberStatusIdent(bool numberStatusIdent); + std::string getCorpName()const; + void setCorpName(const std::string& corpName); + int getRecallInterval()const; + void setRecallInterval(int recallInterval); + bool getIsSelfLine()const; + void setIsSelfLine(bool isSelfLine); + + private: + long resourceOwnerId_; + std::string recallStateCodes_; + std::string resourceOwnerAccount_; + std::string taskName_; + int retryType_; + long ownerId_; + long dialogId_; + std::string accessKeyId_; + int recallTimes_; + std::string caller_; + bool numberStatusIdent_; + std::string corpName_; + int recallInterval_; + bool isSelfLine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_CREATEROBOTTASKREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskResult.h new file mode 100644 index 000000000..7f9e815a9 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/CreateRobotTaskResult.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_DYVMSAPI_MODEL_CREATEROBOTTASKRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_CREATEROBOTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT CreateRobotTaskResult : public ServiceResult + { + public: + + + CreateRobotTaskResult(); + explicit CreateRobotTaskResult(const std::string &payload); + ~CreateRobotTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_CREATEROBOTTASKRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskRequest.h new file mode 100644 index 000000000..5cb2ee0a3 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskRequest.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_DYVMSAPI_MODEL_DELETEROBOTTASKREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_DELETEROBOTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT DeleteRobotTaskRequest : public RpcServiceRequest + { + + public: + DeleteRobotTaskRequest(); + ~DeleteRobotTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTaskId()const; + void setTaskId(long taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + long taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_DELETEROBOTTASKREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskResult.h new file mode 100644 index 000000000..8ce89e133 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/DeleteRobotTaskResult.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_DYVMSAPI_MODEL_DELETEROBOTTASKRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_DELETEROBOTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT DeleteRobotTaskResult : public ServiceResult + { + public: + + + DeleteRobotTaskResult(); + explicit DeleteRobotTaskResult(const std::string &payload); + ~DeleteRobotTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_DELETEROBOTTASKRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenRequest.h new file mode 100644 index 000000000..0edf4a945 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenRequest.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_DYVMSAPI_MODEL_GETRTCTOKENREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_GETRTCTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT GetRtcTokenRequest : public RpcServiceRequest + { + + public: + GetRtcTokenRequest(); + ~GetRtcTokenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + bool getIsCustomAccount()const; + void setIsCustomAccount(bool isCustomAccount); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string userId_; + std::string deviceId_; + bool isCustomAccount_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_GETRTCTOKENREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenResult.h new file mode 100644 index 000000000..52d09c40e --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/GetRtcTokenResult.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_DYVMSAPI_MODEL_GETRTCTOKENRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_GETRTCTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT GetRtcTokenResult : public ServiceResult + { + public: + + + GetRtcTokenResult(); + explicit GetRtcTokenResult(const std::string &payload); + ~GetRtcTokenResult(); + std::string getMessage()const; + std::string getModule()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string module_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_GETRTCTOKENRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/IvrCallRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/IvrCallRequest.h index 66995e6d4..24ca46d4f 100644 --- a/dyvmsapi/include/alibabacloud/dyvmsapi/model/IvrCallRequest.h +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/IvrCallRequest.h @@ -32,9 +32,9 @@ namespace AlibabaCloud { struct MenuKeyMap { - std::string key; std::string code; std::string ttsParams; + std::string key; }; public: diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdRequest.h new file mode 100644 index 000000000..c80354f59 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdRequest.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_DYVMSAPI_MODEL_QUERYCALLDETAILBYTASKIDREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYCALLDETAILBYTASKIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryCallDetailByTaskIdRequest : public RpcServiceRequest + { + + public: + QueryCallDetailByTaskIdRequest(); + ~QueryCallDetailByTaskIdRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getQueryDate()const; + void setQueryDate(long queryDate); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallee()const; + void setCallee(const std::string& callee); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + long queryDate_; + std::string resourceOwnerAccount_; + std::string callee_; + long ownerId_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYCALLDETAILBYTASKIDREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdResult.h new file mode 100644 index 000000000..3a8f60480 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdResult.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_DYVMSAPI_MODEL_QUERYCALLDETAILBYTASKIDRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYCALLDETAILBYTASKIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryCallDetailByTaskIdResult : public ServiceResult + { + public: + + + QueryCallDetailByTaskIdResult(); + explicit QueryCallDetailByTaskIdResult(const std::string &payload); + ~QueryCallDetailByTaskIdResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYCALLDETAILBYTASKIDRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListRequest.h new file mode 100644 index 000000000..64e0caed7 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListRequest.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_DYVMSAPI_MODEL_QUERYROBOTINFOLISTREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTINFOLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotInfoListRequest : public RpcServiceRequest + { + + public: + QueryRobotInfoListRequest(); + ~QueryRobotInfoListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAuditStatus()const; + void setAuditStatus(const std::string& auditStatus); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string auditStatus_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTINFOLISTREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListResult.h new file mode 100644 index 000000000..3790335d4 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotInfoListResult.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_DYVMSAPI_MODEL_QUERYROBOTINFOLISTRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTINFOLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotInfoListResult : public ServiceResult + { + public: + + + QueryRobotInfoListResult(); + explicit QueryRobotInfoListResult(const std::string &payload); + ~QueryRobotInfoListResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTINFOLISTRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailRequest.h new file mode 100644 index 000000000..609123cbe --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailRequest.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_DYVMSAPI_MODEL_QUERYROBOTTASKCALLDETAILREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskCallDetailRequest : public RpcServiceRequest + { + + public: + QueryRobotTaskCallDetailRequest(); + ~QueryRobotTaskCallDetailRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getQueryDate()const; + void setQueryDate(long queryDate); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallee()const; + void setCallee(const std::string& callee); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTaskId()const; + void setTaskId(long taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + long queryDate_; + std::string resourceOwnerAccount_; + std::string callee_; + long ownerId_; + long taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLDETAILREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailResult.h new file mode 100644 index 000000000..f59576485 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailResult.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_DYVMSAPI_MODEL_QUERYROBOTTASKCALLDETAILRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskCallDetailResult : public ServiceResult + { + public: + + + QueryRobotTaskCallDetailResult(); + explicit QueryRobotTaskCallDetailResult(const std::string &payload); + ~QueryRobotTaskCallDetailResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLDETAILRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListRequest.h new file mode 100644 index 000000000..28bcd8d8f --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLLISTREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskCallListRequest : public RpcServiceRequest + { + + public: + QueryRobotTaskCallListRequest(); + ~QueryRobotTaskCallListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCalled()const; + void setCalled(const std::string& called); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDialogCountFrom()const; + void setDialogCountFrom(const std::string& dialogCountFrom); + std::string getDurationTo()const; + void setDurationTo(const std::string& durationTo); + std::string getHangupDirection()const; + void setHangupDirection(const std::string& hangupDirection); + std::string getDialogCountTo()const; + void setDialogCountTo(const std::string& dialogCountTo); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDurationFrom()const; + void setDurationFrom(const std::string& durationFrom); + int getPageNo()const; + void setPageNo(int pageNo); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallResult()const; + void setCallResult(const std::string& callResult); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + long resourceOwnerId_; + std::string called_; + std::string resourceOwnerAccount_; + std::string dialogCountFrom_; + std::string durationTo_; + std::string hangupDirection_; + std::string dialogCountTo_; + long ownerId_; + std::string accessKeyId_; + std::string durationFrom_; + int pageNo_; + int pageSize_; + std::string callResult_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLLISTREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListResult.h new file mode 100644 index 000000000..77899fee2 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskCallListResult.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_DYVMSAPI_MODEL_QUERYROBOTTASKCALLLISTRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskCallListResult : public ServiceResult + { + public: + + + QueryRobotTaskCallListResult(); + explicit QueryRobotTaskCallListResult(const std::string &payload); + ~QueryRobotTaskCallListResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKCALLLISTRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailRequest.h new file mode 100644 index 000000000..00b32ebe1 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailRequest.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_DYVMSAPI_MODEL_QUERYROBOTTASKDETAILREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskDetailRequest : public RpcServiceRequest + { + + public: + QueryRobotTaskDetailRequest(); + ~QueryRobotTaskDetailRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getId()const; + void setId(long id); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long id_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKDETAILREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailResult.h new file mode 100644 index 000000000..1529d9e5e --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskDetailResult.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_DYVMSAPI_MODEL_QUERYROBOTTASKDETAILRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskDetailResult : public ServiceResult + { + public: + + + QueryRobotTaskDetailResult(); + explicit QueryRobotTaskDetailResult(const std::string &payload); + ~QueryRobotTaskDetailResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKDETAILRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListRequest.h new file mode 100644 index 000000000..dbd272b42 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListRequest.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_DYVMSAPI_MODEL_QUERYROBOTTASKLISTREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskListRequest : public RpcServiceRequest + { + + public: + QueryRobotTaskListRequest(); + ~QueryRobotTaskListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getPageNo()const; + void setPageNo(int pageNo); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + std::string getTime()const; + void setTime(const std::string& time); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int pageNo_; + int pageSize_; + std::string taskName_; + std::string time_; + long ownerId_; + std::string accessKeyId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKLISTREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.h new file mode 100644 index 000000000..427dc2425 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.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_DYVMSAPI_MODEL_QUERYROBOTTASKLISTRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotTaskListResult : public ServiceResult + { + public: + + + QueryRobotTaskListResult(); + explicit QueryRobotTaskListResult(const std::string &payload); + ~QueryRobotTaskListResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTTASKLISTRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.h new file mode 100644 index 000000000..14d335830 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.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_DYVMSAPI_MODEL_QUERYROBOTV2ALLLISTREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTV2ALLLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotv2AllListRequest : public RpcServiceRequest + { + + public: + QueryRobotv2AllListRequest(); + ~QueryRobotv2AllListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTV2ALLLISTREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.h new file mode 100644 index 000000000..2ab8cd941 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.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_DYVMSAPI_MODEL_QUERYROBOTV2ALLLISTRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTV2ALLLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT QueryRobotv2AllListResult : public ServiceResult + { + public: + + + QueryRobotv2AllListResult(); + explicit QueryRobotv2AllListResult(const std::string &payload); + ~QueryRobotv2AllListResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYROBOTV2ALLLISTRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateRequest.h new file mode 100644 index 000000000..2e3b6b1d6 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateRequest.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_DYVMSAPI_MODEL_SMARTCALLOPERATEREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_SMARTCALLOPERATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT SmartCallOperateRequest : public RpcServiceRequest + { + + public: + SmartCallOperateRequest(); + ~SmartCallOperateRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getParam()const; + void setParam(const std::string& param); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCommand()const; + void setCommand(const std::string& command); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string callId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string param_; + long ownerId_; + std::string command_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_SMARTCALLOPERATEREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateResult.h new file mode 100644 index 000000000..79956986f --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallOperateResult.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_DYVMSAPI_MODEL_SMARTCALLOPERATERESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_SMARTCALLOPERATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT SmartCallOperateResult : public ServiceResult + { + public: + + + SmartCallOperateResult(); + explicit SmartCallOperateResult(const std::string &payload); + ~SmartCallOperateResult(); + bool getStatus()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_SMARTCALLOPERATERESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallRequest.h index ee3322447..87414b0e5 100644 --- a/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallRequest.h +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/SmartCallRequest.h @@ -37,6 +37,32 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getVoiceCodeParam()const; + void setVoiceCodeParam(const std::string& voiceCodeParam); + bool getEarlyMediaAsr()const; + void setEarlyMediaAsr(bool earlyMediaAsr); + int getSpeed()const; + void setSpeed(int speed); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getAsrBaseId()const; + void setAsrBaseId(const std::string& asrBaseId); + int getSessionTimeout()const; + void setSessionTimeout(int sessionTimeout); + std::string getDynamicId()const; + void setDynamicId(const std::string& dynamicId); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + int getTtsSpeed()const; + void setTtsSpeed(int ttsSpeed); + std::string getVoiceCode()const; + void setVoiceCode(const std::string& voiceCode); + std::string getCalledShowNumber()const; + void setCalledShowNumber(const std::string& calledShowNumber); + int getActionCodeTimeBreak()const; + void setActionCodeTimeBreak(int actionCodeTimeBreak); + bool getTtsConf()const; + void setTtsConf(bool ttsConf); bool getActionCodeBreak()const; void setActionCodeBreak(bool actionCodeBreak); std::string getResourceOwnerAccount()const; @@ -45,46 +71,47 @@ namespace AlibabaCloud void setRecordFlag(bool recordFlag); long getOwnerId()const; void setOwnerId(long ownerId); - int getSpeed()const; - void setSpeed(int speed); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + int getTtsVolume()const; + void setTtsVolume(int ttsVolume); int getVolume()const; void setVolume(int volume); - std::string getDynamicId()const; - void setDynamicId(const std::string& dynamicId); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - std::string getVoiceCode()const; - void setVoiceCode(const std::string& voiceCode); int getMuteTime()const; void setMuteTime(int muteTime); - std::string getCalledShowNumber()const; - void setCalledShowNumber(const std::string& calledShowNumber); std::string getOutId()const; void setOutId(const std::string& outId); std::string getAsrModelId()const; void setAsrModelId(const std::string& asrModelId); int getPauseTime()const; void setPauseTime(int pauseTime); + std::string getTtsStyle()const; + void setTtsStyle(const std::string& ttsStyle); private: long resourceOwnerId_; + std::string voiceCodeParam_; + bool earlyMediaAsr_; + int speed_; + std::string accessKeyId_; + std::string asrBaseId_; + int sessionTimeout_; + std::string dynamicId_; + std::string calledNumber_; + int ttsSpeed_; + std::string voiceCode_; + std::string calledShowNumber_; + int actionCodeTimeBreak_; + bool ttsConf_; bool actionCodeBreak_; std::string resourceOwnerAccount_; bool recordFlag_; long ownerId_; - int speed_; - std::string accessKeyId_; + int ttsVolume_; int volume_; - std::string dynamicId_; - std::string calledNumber_; - std::string voiceCode_; int muteTime_; - std::string calledShowNumber_; std::string outId_; std::string asrModelId_; int pauseTime_; + std::string ttsStyle_; }; } diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskRequest.h new file mode 100644 index 000000000..d8f6e4db4 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskRequest.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_DYVMSAPI_MODEL_STARTROBOTTASKREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_STARTROBOTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT StartRobotTaskRequest : public RpcServiceRequest + { + + public: + StartRobotTaskRequest(); + ~StartRobotTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getScheduleTime()const; + void setScheduleTime(const std::string& scheduleTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTaskId()const; + void setTaskId(long taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string scheduleTime_; + long ownerId_; + long taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_STARTROBOTTASKREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskResult.h new file mode 100644 index 000000000..a3a93966b --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StartRobotTaskResult.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_DYVMSAPI_MODEL_STARTROBOTTASKRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_STARTROBOTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT StartRobotTaskResult : public ServiceResult + { + public: + + + StartRobotTaskResult(); + explicit StartRobotTaskResult(const std::string &payload); + ~StartRobotTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_STARTROBOTTASKRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskRequest.h new file mode 100644 index 000000000..a1dfdf466 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskRequest.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_DYVMSAPI_MODEL_STOPROBOTTASKREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_STOPROBOTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT StopRobotTaskRequest : public RpcServiceRequest + { + + public: + StopRobotTaskRequest(); + ~StopRobotTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTaskId()const; + void setTaskId(long taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + long taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_STOPROBOTTASKREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskResult.h new file mode 100644 index 000000000..f2624bfd8 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/StopRobotTaskResult.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_DYVMSAPI_MODEL_STOPROBOTTASKRESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_STOPROBOTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT StopRobotTaskResult : public ServiceResult + { + public: + + + StopRobotTaskResult(); + explicit StopRobotTaskResult(const std::string &payload); + ~StopRobotTaskResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_STOPROBOTTASKRESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileRequest.h new file mode 100644 index 000000000..63a906771 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileRequest.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_DYVMSAPI_MODEL_UPLOADROBOTTASKCALLEDFILEREQUEST_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_UPLOADROBOTTASKCALLEDFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT UploadRobotTaskCalledFileRequest : public RpcServiceRequest + { + + public: + UploadRobotTaskCalledFileRequest(); + ~UploadRobotTaskCalledFileRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + std::string getTtsParamHead()const; + void setTtsParamHead(const std::string& ttsParamHead); + std::string getTtsParam()const; + void setTtsParam(const std::string& ttsParam); + long getId()const; + void setId(long id); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string calledNumber_; + std::string ttsParamHead_; + std::string ttsParam_; + long id_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_UPLOADROBOTTASKCALLEDFILEREQUEST_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileResult.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileResult.h new file mode 100644 index 000000000..fb6a53102 --- /dev/null +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileResult.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_DYVMSAPI_MODEL_UPLOADROBOTTASKCALLEDFILERESULT_H_ +#define ALIBABACLOUD_DYVMSAPI_MODEL_UPLOADROBOTTASKCALLEDFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyvmsapi + { + namespace Model + { + class ALIBABACLOUD_DYVMSAPI_EXPORT UploadRobotTaskCalledFileResult : public ServiceResult + { + public: + + + UploadRobotTaskCalledFileResult(); + explicit UploadRobotTaskCalledFileResult(const std::string &payload); + ~UploadRobotTaskCalledFileResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_UPLOADROBOTTASKCALLEDFILERESULT_H_ \ No newline at end of file diff --git a/dyvmsapi/include/alibabacloud/dyvmsapi/model/VoipGetTokenRequest.h b/dyvmsapi/include/alibabacloud/dyvmsapi/model/VoipGetTokenRequest.h index 225e8817e..8aa125c90 100644 --- a/dyvmsapi/include/alibabacloud/dyvmsapi/model/VoipGetTokenRequest.h +++ b/dyvmsapi/include/alibabacloud/dyvmsapi/model/VoipGetTokenRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getDeviceId()const; void setDeviceId(const std::string& deviceId); + bool getIsCustomAccount()const; + void setIsCustomAccount(bool isCustomAccount); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); @@ -54,6 +56,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; long ownerId_; std::string deviceId_; + bool isCustomAccount_; std::string accessKeyId_; }; diff --git a/dyvmsapi/src/DyvmsapiClient.cc b/dyvmsapi/src/DyvmsapiClient.cc index 81060f245..8e3befe5f 100644 --- a/dyvmsapi/src/DyvmsapiClient.cc +++ b/dyvmsapi/src/DyvmsapiClient.cc @@ -31,128 +31,56 @@ DyvmsapiClient::DyvmsapiClient(const Credentials &credentials, const ClientConfi RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dyvmsapi"); } DyvmsapiClient::DyvmsapiClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dyvmsapi"); } DyvmsapiClient::DyvmsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dyvmsapi"); } DyvmsapiClient::~DyvmsapiClient() {} -DyvmsapiClient::SmartCallOutcome DyvmsapiClient::smartCall(const SmartCallRequest &request) const +DyvmsapiClient::UploadRobotTaskCalledFileOutcome DyvmsapiClient::uploadRobotTaskCalledFile(const UploadRobotTaskCalledFileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SmartCallOutcome(endpointOutcome.error()); + return UploadRobotTaskCalledFileOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SmartCallOutcome(SmartCallResult(outcome.result())); + return UploadRobotTaskCalledFileOutcome(UploadRobotTaskCalledFileResult(outcome.result())); else - return SmartCallOutcome(outcome.error()); + return UploadRobotTaskCalledFileOutcome(outcome.error()); } -void DyvmsapiClient::smartCallAsync(const SmartCallRequest& request, const SmartCallAsyncHandler& handler, const std::shared_ptr& context) const +void DyvmsapiClient::uploadRobotTaskCalledFileAsync(const UploadRobotTaskCalledFileRequest& request, const UploadRobotTaskCalledFileAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, smartCall(request), context); + handler(this, request, uploadRobotTaskCalledFile(request), context); }; asyncExecute(new Runnable(fn)); } -DyvmsapiClient::SmartCallOutcomeCallable DyvmsapiClient::smartCallCallable(const SmartCallRequest &request) const +DyvmsapiClient::UploadRobotTaskCalledFileOutcomeCallable DyvmsapiClient::uploadRobotTaskCalledFileCallable(const UploadRobotTaskCalledFileRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->smartCall(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DyvmsapiClient::QueryCallDetailByCallIdOutcome DyvmsapiClient::queryCallDetailByCallId(const QueryCallDetailByCallIdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCallDetailByCallIdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCallDetailByCallIdOutcome(QueryCallDetailByCallIdResult(outcome.result())); - else - return QueryCallDetailByCallIdOutcome(outcome.error()); -} - -void DyvmsapiClient::queryCallDetailByCallIdAsync(const QueryCallDetailByCallIdRequest& request, const QueryCallDetailByCallIdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCallDetailByCallId(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DyvmsapiClient::QueryCallDetailByCallIdOutcomeCallable DyvmsapiClient::queryCallDetailByCallIdCallable(const QueryCallDetailByCallIdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCallDetailByCallId(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DyvmsapiClient::VoipAddAccountOutcome DyvmsapiClient::voipAddAccount(const VoipAddAccountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return VoipAddAccountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return VoipAddAccountOutcome(VoipAddAccountResult(outcome.result())); - else - return VoipAddAccountOutcome(outcome.error()); -} - -void DyvmsapiClient::voipAddAccountAsync(const VoipAddAccountRequest& request, const VoipAddAccountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, voipAddAccount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DyvmsapiClient::VoipAddAccountOutcomeCallable DyvmsapiClient::voipAddAccountCallable(const VoipAddAccountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->voipAddAccount(request); + return this->uploadRobotTaskCalledFile(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -195,6 +123,402 @@ DyvmsapiClient::CancelCallOutcomeCallable DyvmsapiClient::cancelCallCallable(con return task->get_future(); } +DyvmsapiClient::CancelRobotTaskOutcome DyvmsapiClient::cancelRobotTask(const CancelRobotTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelRobotTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelRobotTaskOutcome(CancelRobotTaskResult(outcome.result())); + else + return CancelRobotTaskOutcome(outcome.error()); +} + +void DyvmsapiClient::cancelRobotTaskAsync(const CancelRobotTaskRequest& request, const CancelRobotTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelRobotTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::CancelRobotTaskOutcomeCallable DyvmsapiClient::cancelRobotTaskCallable(const CancelRobotTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelRobotTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::AddRtcAccountOutcome DyvmsapiClient::addRtcAccount(const AddRtcAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddRtcAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddRtcAccountOutcome(AddRtcAccountResult(outcome.result())); + else + return AddRtcAccountOutcome(outcome.error()); +} + +void DyvmsapiClient::addRtcAccountAsync(const AddRtcAccountRequest& request, const AddRtcAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addRtcAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::AddRtcAccountOutcomeCallable DyvmsapiClient::addRtcAccountCallable(const AddRtcAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addRtcAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::QueryCallDetailByTaskIdOutcome DyvmsapiClient::queryCallDetailByTaskId(const QueryCallDetailByTaskIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCallDetailByTaskIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCallDetailByTaskIdOutcome(QueryCallDetailByTaskIdResult(outcome.result())); + else + return QueryCallDetailByTaskIdOutcome(outcome.error()); +} + +void DyvmsapiClient::queryCallDetailByTaskIdAsync(const QueryCallDetailByTaskIdRequest& request, const QueryCallDetailByTaskIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCallDetailByTaskId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::QueryCallDetailByTaskIdOutcomeCallable DyvmsapiClient::queryCallDetailByTaskIdCallable(const QueryCallDetailByTaskIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCallDetailByTaskId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::QueryRobotTaskCallDetailOutcome DyvmsapiClient::queryRobotTaskCallDetail(const QueryRobotTaskCallDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRobotTaskCallDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRobotTaskCallDetailOutcome(QueryRobotTaskCallDetailResult(outcome.result())); + else + return QueryRobotTaskCallDetailOutcome(outcome.error()); +} + +void DyvmsapiClient::queryRobotTaskCallDetailAsync(const QueryRobotTaskCallDetailRequest& request, const QueryRobotTaskCallDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRobotTaskCallDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::QueryRobotTaskCallDetailOutcomeCallable DyvmsapiClient::queryRobotTaskCallDetailCallable(const QueryRobotTaskCallDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRobotTaskCallDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::SmartCallOperateOutcome DyvmsapiClient::smartCallOperate(const SmartCallOperateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SmartCallOperateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SmartCallOperateOutcome(SmartCallOperateResult(outcome.result())); + else + return SmartCallOperateOutcome(outcome.error()); +} + +void DyvmsapiClient::smartCallOperateAsync(const SmartCallOperateRequest& request, const SmartCallOperateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, smartCallOperate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::SmartCallOperateOutcomeCallable DyvmsapiClient::smartCallOperateCallable(const SmartCallOperateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->smartCallOperate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::QueryRobotTaskDetailOutcome DyvmsapiClient::queryRobotTaskDetail(const QueryRobotTaskDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRobotTaskDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRobotTaskDetailOutcome(QueryRobotTaskDetailResult(outcome.result())); + else + return QueryRobotTaskDetailOutcome(outcome.error()); +} + +void DyvmsapiClient::queryRobotTaskDetailAsync(const QueryRobotTaskDetailRequest& request, const QueryRobotTaskDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRobotTaskDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::QueryRobotTaskDetailOutcomeCallable DyvmsapiClient::queryRobotTaskDetailCallable(const QueryRobotTaskDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRobotTaskDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::SingleCallByVoiceOutcome DyvmsapiClient::singleCallByVoice(const SingleCallByVoiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SingleCallByVoiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SingleCallByVoiceOutcome(SingleCallByVoiceResult(outcome.result())); + else + return SingleCallByVoiceOutcome(outcome.error()); +} + +void DyvmsapiClient::singleCallByVoiceAsync(const SingleCallByVoiceRequest& request, const SingleCallByVoiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, singleCallByVoice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::SingleCallByVoiceOutcomeCallable DyvmsapiClient::singleCallByVoiceCallable(const SingleCallByVoiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->singleCallByVoice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::QueryRobotv2AllListOutcome DyvmsapiClient::queryRobotv2AllList(const QueryRobotv2AllListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRobotv2AllListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRobotv2AllListOutcome(QueryRobotv2AllListResult(outcome.result())); + else + return QueryRobotv2AllListOutcome(outcome.error()); +} + +void DyvmsapiClient::queryRobotv2AllListAsync(const QueryRobotv2AllListRequest& request, const QueryRobotv2AllListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRobotv2AllList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::QueryRobotv2AllListOutcomeCallable DyvmsapiClient::queryRobotv2AllListCallable(const QueryRobotv2AllListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRobotv2AllList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::GetRtcTokenOutcome DyvmsapiClient::getRtcToken(const GetRtcTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRtcTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRtcTokenOutcome(GetRtcTokenResult(outcome.result())); + else + return GetRtcTokenOutcome(outcome.error()); +} + +void DyvmsapiClient::getRtcTokenAsync(const GetRtcTokenRequest& request, const GetRtcTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRtcToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::GetRtcTokenOutcomeCallable DyvmsapiClient::getRtcTokenCallable(const GetRtcTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRtcToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::SingleCallByTtsOutcome DyvmsapiClient::singleCallByTts(const SingleCallByTtsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SingleCallByTtsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SingleCallByTtsOutcome(SingleCallByTtsResult(outcome.result())); + else + return SingleCallByTtsOutcome(outcome.error()); +} + +void DyvmsapiClient::singleCallByTtsAsync(const SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, singleCallByTts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::SingleCallByTtsOutcomeCallable DyvmsapiClient::singleCallByTtsCallable(const SingleCallByTtsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->singleCallByTts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::QueryRobotInfoListOutcome DyvmsapiClient::queryRobotInfoList(const QueryRobotInfoListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRobotInfoListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRobotInfoListOutcome(QueryRobotInfoListResult(outcome.result())); + else + return QueryRobotInfoListOutcome(outcome.error()); +} + +void DyvmsapiClient::queryRobotInfoListAsync(const QueryRobotInfoListRequest& request, const QueryRobotInfoListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRobotInfoList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::QueryRobotInfoListOutcomeCallable DyvmsapiClient::queryRobotInfoListCallable(const QueryRobotInfoListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRobotInfoList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyvmsapiClient::VoipGetTokenOutcome DyvmsapiClient::voipGetToken(const VoipGetTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +591,150 @@ DyvmsapiClient::ClickToDialOutcomeCallable DyvmsapiClient::clickToDialCallable(c return task->get_future(); } +DyvmsapiClient::DeleteRobotTaskOutcome DyvmsapiClient::deleteRobotTask(const DeleteRobotTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRobotTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRobotTaskOutcome(DeleteRobotTaskResult(outcome.result())); + else + return DeleteRobotTaskOutcome(outcome.error()); +} + +void DyvmsapiClient::deleteRobotTaskAsync(const DeleteRobotTaskRequest& request, const DeleteRobotTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRobotTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::DeleteRobotTaskOutcomeCallable DyvmsapiClient::deleteRobotTaskCallable(const DeleteRobotTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRobotTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::CreateRobotTaskOutcome DyvmsapiClient::createRobotTask(const CreateRobotTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRobotTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRobotTaskOutcome(CreateRobotTaskResult(outcome.result())); + else + return CreateRobotTaskOutcome(outcome.error()); +} + +void DyvmsapiClient::createRobotTaskAsync(const CreateRobotTaskRequest& request, const CreateRobotTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRobotTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::CreateRobotTaskOutcomeCallable DyvmsapiClient::createRobotTaskCallable(const CreateRobotTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRobotTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::QueryCallDetailByCallIdOutcome DyvmsapiClient::queryCallDetailByCallId(const QueryCallDetailByCallIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCallDetailByCallIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCallDetailByCallIdOutcome(QueryCallDetailByCallIdResult(outcome.result())); + else + return QueryCallDetailByCallIdOutcome(outcome.error()); +} + +void DyvmsapiClient::queryCallDetailByCallIdAsync(const QueryCallDetailByCallIdRequest& request, const QueryCallDetailByCallIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCallDetailByCallId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::QueryCallDetailByCallIdOutcomeCallable DyvmsapiClient::queryCallDetailByCallIdCallable(const QueryCallDetailByCallIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCallDetailByCallId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::StopRobotTaskOutcome DyvmsapiClient::stopRobotTask(const StopRobotTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopRobotTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopRobotTaskOutcome(StopRobotTaskResult(outcome.result())); + else + return StopRobotTaskOutcome(outcome.error()); +} + +void DyvmsapiClient::stopRobotTaskAsync(const StopRobotTaskRequest& request, const StopRobotTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopRobotTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::StopRobotTaskOutcomeCallable DyvmsapiClient::stopRobotTaskCallable(const StopRobotTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopRobotTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyvmsapiClient::IvrCallOutcome DyvmsapiClient::ivrCall(const IvrCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,72 +771,252 @@ DyvmsapiClient::IvrCallOutcomeCallable DyvmsapiClient::ivrCallCallable(const Ivr return task->get_future(); } -DyvmsapiClient::SingleCallByVoiceOutcome DyvmsapiClient::singleCallByVoice(const SingleCallByVoiceRequest &request) const +DyvmsapiClient::BatchRobotSmartCallOutcome DyvmsapiClient::batchRobotSmartCall(const BatchRobotSmartCallRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SingleCallByVoiceOutcome(endpointOutcome.error()); + return BatchRobotSmartCallOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SingleCallByVoiceOutcome(SingleCallByVoiceResult(outcome.result())); + return BatchRobotSmartCallOutcome(BatchRobotSmartCallResult(outcome.result())); else - return SingleCallByVoiceOutcome(outcome.error()); + return BatchRobotSmartCallOutcome(outcome.error()); } -void DyvmsapiClient::singleCallByVoiceAsync(const SingleCallByVoiceRequest& request, const SingleCallByVoiceAsyncHandler& handler, const std::shared_ptr& context) const +void DyvmsapiClient::batchRobotSmartCallAsync(const BatchRobotSmartCallRequest& request, const BatchRobotSmartCallAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, singleCallByVoice(request), context); + handler(this, request, batchRobotSmartCall(request), context); }; asyncExecute(new Runnable(fn)); } -DyvmsapiClient::SingleCallByVoiceOutcomeCallable DyvmsapiClient::singleCallByVoiceCallable(const SingleCallByVoiceRequest &request) const +DyvmsapiClient::BatchRobotSmartCallOutcomeCallable DyvmsapiClient::batchRobotSmartCallCallable(const BatchRobotSmartCallRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->singleCallByVoice(request); + return this->batchRobotSmartCall(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -DyvmsapiClient::SingleCallByTtsOutcome DyvmsapiClient::singleCallByTts(const SingleCallByTtsRequest &request) const +DyvmsapiClient::QueryRobotTaskListOutcome DyvmsapiClient::queryRobotTaskList(const QueryRobotTaskListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SingleCallByTtsOutcome(endpointOutcome.error()); + return QueryRobotTaskListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SingleCallByTtsOutcome(SingleCallByTtsResult(outcome.result())); + return QueryRobotTaskListOutcome(QueryRobotTaskListResult(outcome.result())); else - return SingleCallByTtsOutcome(outcome.error()); + return QueryRobotTaskListOutcome(outcome.error()); } -void DyvmsapiClient::singleCallByTtsAsync(const SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr& context) const +void DyvmsapiClient::queryRobotTaskListAsync(const QueryRobotTaskListRequest& request, const QueryRobotTaskListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, singleCallByTts(request), context); + handler(this, request, queryRobotTaskList(request), context); }; asyncExecute(new Runnable(fn)); } -DyvmsapiClient::SingleCallByTtsOutcomeCallable DyvmsapiClient::singleCallByTtsCallable(const SingleCallByTtsRequest &request) const +DyvmsapiClient::QueryRobotTaskListOutcomeCallable DyvmsapiClient::queryRobotTaskListCallable(const QueryRobotTaskListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->singleCallByTts(request); + return this->queryRobotTaskList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::QueryRobotTaskCallListOutcome DyvmsapiClient::queryRobotTaskCallList(const QueryRobotTaskCallListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRobotTaskCallListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRobotTaskCallListOutcome(QueryRobotTaskCallListResult(outcome.result())); + else + return QueryRobotTaskCallListOutcome(outcome.error()); +} + +void DyvmsapiClient::queryRobotTaskCallListAsync(const QueryRobotTaskCallListRequest& request, const QueryRobotTaskCallListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRobotTaskCallList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::QueryRobotTaskCallListOutcomeCallable DyvmsapiClient::queryRobotTaskCallListCallable(const QueryRobotTaskCallListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRobotTaskCallList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::SmartCallOutcome DyvmsapiClient::smartCall(const SmartCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SmartCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SmartCallOutcome(SmartCallResult(outcome.result())); + else + return SmartCallOutcome(outcome.error()); +} + +void DyvmsapiClient::smartCallAsync(const SmartCallRequest& request, const SmartCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, smartCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::SmartCallOutcomeCallable DyvmsapiClient::smartCallCallable(const SmartCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->smartCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::CancelOrderRobotTaskOutcome DyvmsapiClient::cancelOrderRobotTask(const CancelOrderRobotTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelOrderRobotTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelOrderRobotTaskOutcome(CancelOrderRobotTaskResult(outcome.result())); + else + return CancelOrderRobotTaskOutcome(outcome.error()); +} + +void DyvmsapiClient::cancelOrderRobotTaskAsync(const CancelOrderRobotTaskRequest& request, const CancelOrderRobotTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelOrderRobotTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::CancelOrderRobotTaskOutcomeCallable DyvmsapiClient::cancelOrderRobotTaskCallable(const CancelOrderRobotTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelOrderRobotTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::VoipAddAccountOutcome DyvmsapiClient::voipAddAccount(const VoipAddAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VoipAddAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VoipAddAccountOutcome(VoipAddAccountResult(outcome.result())); + else + return VoipAddAccountOutcome(outcome.error()); +} + +void DyvmsapiClient::voipAddAccountAsync(const VoipAddAccountRequest& request, const VoipAddAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, voipAddAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::VoipAddAccountOutcomeCallable DyvmsapiClient::voipAddAccountCallable(const VoipAddAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->voipAddAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyvmsapiClient::StartRobotTaskOutcome DyvmsapiClient::startRobotTask(const StartRobotTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartRobotTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartRobotTaskOutcome(StartRobotTaskResult(outcome.result())); + else + return StartRobotTaskOutcome(outcome.error()); +} + +void DyvmsapiClient::startRobotTaskAsync(const StartRobotTaskRequest& request, const StartRobotTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startRobotTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyvmsapiClient::StartRobotTaskOutcomeCallable DyvmsapiClient::startRobotTaskCallable(const StartRobotTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startRobotTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/dyvmsapi/src/model/AddRtcAccountRequest.cc b/dyvmsapi/src/model/AddRtcAccountRequest.cc new file mode 100644 index 000000000..acbd373b2 --- /dev/null +++ b/dyvmsapi/src/model/AddRtcAccountRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::AddRtcAccountRequest; + +AddRtcAccountRequest::AddRtcAccountRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "AddRtcAccount") +{} + +AddRtcAccountRequest::~AddRtcAccountRequest() +{} + +long AddRtcAccountRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddRtcAccountRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddRtcAccountRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddRtcAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long AddRtcAccountRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddRtcAccountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddRtcAccountRequest::getDeviceId()const +{ + return deviceId_; +} + +void AddRtcAccountRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setCoreParameter("DeviceId", deviceId); +} + +std::string AddRtcAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddRtcAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/AddRtcAccountResult.cc b/dyvmsapi/src/model/AddRtcAccountResult.cc new file mode 100644 index 000000000..da8a71a25 --- /dev/null +++ b/dyvmsapi/src/model/AddRtcAccountResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +AddRtcAccountResult::AddRtcAccountResult() : + ServiceResult() +{} + +AddRtcAccountResult::AddRtcAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddRtcAccountResult::~AddRtcAccountResult() +{} + +void AddRtcAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AddRtcAccountResult::getMessage()const +{ + return message_; +} + +std::string AddRtcAccountResult::getModule()const +{ + return module_; +} + +std::string AddRtcAccountResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/BatchRobotSmartCallRequest.cc b/dyvmsapi/src/model/BatchRobotSmartCallRequest.cc new file mode 100644 index 000000000..f41eebe7a --- /dev/null +++ b/dyvmsapi/src/model/BatchRobotSmartCallRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dyvmsapi::Model::BatchRobotSmartCallRequest; + +BatchRobotSmartCallRequest::BatchRobotSmartCallRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "BatchRobotSmartCall") +{} + +BatchRobotSmartCallRequest::~BatchRobotSmartCallRequest() +{} + +long BatchRobotSmartCallRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BatchRobotSmartCallRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool BatchRobotSmartCallRequest::getEarlyMediaAsr()const +{ + return earlyMediaAsr_; +} + +void BatchRobotSmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr) +{ + earlyMediaAsr_ = earlyMediaAsr; + setCoreParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false"); +} + +std::string BatchRobotSmartCallRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BatchRobotSmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string BatchRobotSmartCallRequest::getTtsParamHead()const +{ + return ttsParamHead_; +} + +void BatchRobotSmartCallRequest::setTtsParamHead(const std::string& ttsParamHead) +{ + ttsParamHead_ = ttsParamHead; + setCoreParameter("TtsParamHead", ttsParamHead); +} + +std::string BatchRobotSmartCallRequest::getTaskName()const +{ + return taskName_; +} + +void BatchRobotSmartCallRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setCoreParameter("TaskName", taskName); +} + +std::string BatchRobotSmartCallRequest::getTtsParam()const +{ + return ttsParam_; +} + +void BatchRobotSmartCallRequest::setTtsParam(const std::string& ttsParam) +{ + ttsParam_ = ttsParam; + setCoreParameter("TtsParam", ttsParam); +} + +long BatchRobotSmartCallRequest::getOwnerId()const +{ + return ownerId_; +} + +void BatchRobotSmartCallRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BatchRobotSmartCallRequest::getDialogId()const +{ + return dialogId_; +} + +void BatchRobotSmartCallRequest::setDialogId(const std::string& dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", dialogId); +} + +std::string BatchRobotSmartCallRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BatchRobotSmartCallRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string BatchRobotSmartCallRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void BatchRobotSmartCallRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setCoreParameter("CalledNumber", calledNumber); +} + +long BatchRobotSmartCallRequest::getScheduleTime()const +{ + return scheduleTime_; +} + +void BatchRobotSmartCallRequest::setScheduleTime(long scheduleTime) +{ + scheduleTime_ = scheduleTime; + setCoreParameter("ScheduleTime", std::to_string(scheduleTime)); +} + +std::string BatchRobotSmartCallRequest::getCalledShowNumber()const +{ + return calledShowNumber_; +} + +void BatchRobotSmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber) +{ + calledShowNumber_ = calledShowNumber; + setCoreParameter("CalledShowNumber", calledShowNumber); +} + +std::string BatchRobotSmartCallRequest::getCorpName()const +{ + return corpName_; +} + +void BatchRobotSmartCallRequest::setCorpName(const std::string& corpName) +{ + corpName_ = corpName; + setCoreParameter("CorpName", corpName); +} + +bool BatchRobotSmartCallRequest::getScheduleCall()const +{ + return scheduleCall_; +} + +void BatchRobotSmartCallRequest::setScheduleCall(bool scheduleCall) +{ + scheduleCall_ = scheduleCall; + setCoreParameter("ScheduleCall", scheduleCall ? "true" : "false"); +} + +bool BatchRobotSmartCallRequest::getIsSelfLine()const +{ + return isSelfLine_; +} + +void BatchRobotSmartCallRequest::setIsSelfLine(bool isSelfLine) +{ + isSelfLine_ = isSelfLine; + setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false"); +} + diff --git a/dyvmsapi/src/model/BatchRobotSmartCallResult.cc b/dyvmsapi/src/model/BatchRobotSmartCallResult.cc new file mode 100644 index 000000000..4f2be7ed5 --- /dev/null +++ b/dyvmsapi/src/model/BatchRobotSmartCallResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +BatchRobotSmartCallResult::BatchRobotSmartCallResult() : + ServiceResult() +{} + +BatchRobotSmartCallResult::BatchRobotSmartCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchRobotSmartCallResult::~BatchRobotSmartCallResult() +{} + +void BatchRobotSmartCallResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string BatchRobotSmartCallResult::getTaskId()const +{ + return taskId_; +} + +std::string BatchRobotSmartCallResult::getMessage()const +{ + return message_; +} + +std::string BatchRobotSmartCallResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/CancelCallRequest.cc b/dyvmsapi/src/model/CancelCallRequest.cc index 91d3371fa..0364ea24e 100644 --- a/dyvmsapi/src/model/CancelCallRequest.cc +++ b/dyvmsapi/src/model/CancelCallRequest.cc @@ -33,7 +33,7 @@ std::string CancelCallRequest::getCallId()const void CancelCallRequest::setCallId(const std::string& callId) { callId_ = callId; - setParameter("CallId", callId); + setCoreParameter("CallId", callId); } long CancelCallRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CancelCallRequest::getResourceOwnerId()const void CancelCallRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CancelCallRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CancelCallRequest::getResourceOwnerAccount()const void CancelCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long CancelCallRequest::getOwnerId()const @@ -66,7 +66,7 @@ long CancelCallRequest::getOwnerId()const void CancelCallRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CancelCallRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string CancelCallRequest::getAccessKeyId()const void CancelCallRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/dyvmsapi/src/model/CancelCallResult.cc b/dyvmsapi/src/model/CancelCallResult.cc index 0bd03e3e7..52f45de5b 100644 --- a/dyvmsapi/src/model/CancelCallResult.cc +++ b/dyvmsapi/src/model/CancelCallResult.cc @@ -35,10 +35,13 @@ CancelCallResult::~CancelCallResult() void CancelCallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Status"].isNull()) status_ = value["Status"].asString() == "true"; diff --git a/dyvmsapi/src/model/CancelOrderRobotTaskRequest.cc b/dyvmsapi/src/model/CancelOrderRobotTaskRequest.cc new file mode 100644 index 000000000..6d6ddb118 --- /dev/null +++ b/dyvmsapi/src/model/CancelOrderRobotTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::CancelOrderRobotTaskRequest; + +CancelOrderRobotTaskRequest::CancelOrderRobotTaskRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "CancelOrderRobotTask") +{} + +CancelOrderRobotTaskRequest::~CancelOrderRobotTaskRequest() +{} + +long CancelOrderRobotTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelOrderRobotTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelOrderRobotTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelOrderRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long CancelOrderRobotTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelOrderRobotTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long CancelOrderRobotTaskRequest::getTaskId()const +{ + return taskId_; +} + +void CancelOrderRobotTaskRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string CancelOrderRobotTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CancelOrderRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/CancelOrderRobotTaskResult.cc b/dyvmsapi/src/model/CancelOrderRobotTaskResult.cc new file mode 100644 index 000000000..b3d704eab --- /dev/null +++ b/dyvmsapi/src/model/CancelOrderRobotTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +CancelOrderRobotTaskResult::CancelOrderRobotTaskResult() : + ServiceResult() +{} + +CancelOrderRobotTaskResult::CancelOrderRobotTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelOrderRobotTaskResult::~CancelOrderRobotTaskResult() +{} + +void CancelOrderRobotTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CancelOrderRobotTaskResult::getMessage()const +{ + return message_; +} + +std::string CancelOrderRobotTaskResult::getData()const +{ + return data_; +} + +std::string CancelOrderRobotTaskResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/CancelRobotTaskRequest.cc b/dyvmsapi/src/model/CancelRobotTaskRequest.cc new file mode 100644 index 000000000..0e1bec912 --- /dev/null +++ b/dyvmsapi/src/model/CancelRobotTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::CancelRobotTaskRequest; + +CancelRobotTaskRequest::CancelRobotTaskRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "CancelRobotTask") +{} + +CancelRobotTaskRequest::~CancelRobotTaskRequest() +{} + +long CancelRobotTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelRobotTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelRobotTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long CancelRobotTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelRobotTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long CancelRobotTaskRequest::getTaskId()const +{ + return taskId_; +} + +void CancelRobotTaskRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string CancelRobotTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CancelRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/CancelRobotTaskResult.cc b/dyvmsapi/src/model/CancelRobotTaskResult.cc new file mode 100644 index 000000000..ed46e05f8 --- /dev/null +++ b/dyvmsapi/src/model/CancelRobotTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +CancelRobotTaskResult::CancelRobotTaskResult() : + ServiceResult() +{} + +CancelRobotTaskResult::CancelRobotTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelRobotTaskResult::~CancelRobotTaskResult() +{} + +void CancelRobotTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CancelRobotTaskResult::getMessage()const +{ + return message_; +} + +std::string CancelRobotTaskResult::getData()const +{ + return data_; +} + +std::string CancelRobotTaskResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/ClickToDialRequest.cc b/dyvmsapi/src/model/ClickToDialRequest.cc index 0290aaf24..73717779e 100644 --- a/dyvmsapi/src/model/ClickToDialRequest.cc +++ b/dyvmsapi/src/model/ClickToDialRequest.cc @@ -33,7 +33,7 @@ long ClickToDialRequest::getResourceOwnerId()const void ClickToDialRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ClickToDialRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ClickToDialRequest::getResourceOwnerAccount()const void ClickToDialRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } bool ClickToDialRequest::getRecordFlag()const @@ -55,7 +55,7 @@ bool ClickToDialRequest::getRecordFlag()const void ClickToDialRequest::setRecordFlag(bool recordFlag) { recordFlag_ = recordFlag; - setParameter("RecordFlag", std::to_string(recordFlag)); + setCoreParameter("RecordFlag", recordFlag ? "true" : "false"); } long ClickToDialRequest::getOwnerId()const @@ -66,7 +66,7 @@ long ClickToDialRequest::getOwnerId()const void ClickToDialRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ClickToDialRequest::getCallerShowNumber()const @@ -77,7 +77,7 @@ std::string ClickToDialRequest::getCallerShowNumber()const void ClickToDialRequest::setCallerShowNumber(const std::string& callerShowNumber) { callerShowNumber_ = callerShowNumber; - setParameter("CallerShowNumber", callerShowNumber); + setCoreParameter("CallerShowNumber", callerShowNumber); } std::string ClickToDialRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string ClickToDialRequest::getAccessKeyId()const void ClickToDialRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int ClickToDialRequest::getSessionTimeout()const @@ -99,7 +99,7 @@ int ClickToDialRequest::getSessionTimeout()const void ClickToDialRequest::setSessionTimeout(int sessionTimeout) { sessionTimeout_ = sessionTimeout; - setParameter("SessionTimeout", std::to_string(sessionTimeout)); + setCoreParameter("SessionTimeout", std::to_string(sessionTimeout)); } std::string ClickToDialRequest::getCalledNumber()const @@ -110,7 +110,7 @@ std::string ClickToDialRequest::getCalledNumber()const void ClickToDialRequest::setCalledNumber(const std::string& calledNumber) { calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); + setCoreParameter("CalledNumber", calledNumber); } std::string ClickToDialRequest::getCalledShowNumber()const @@ -121,7 +121,7 @@ std::string ClickToDialRequest::getCalledShowNumber()const void ClickToDialRequest::setCalledShowNumber(const std::string& calledShowNumber) { calledShowNumber_ = calledShowNumber; - setParameter("CalledShowNumber", calledShowNumber); + setCoreParameter("CalledShowNumber", calledShowNumber); } std::string ClickToDialRequest::getOutId()const @@ -132,7 +132,7 @@ std::string ClickToDialRequest::getOutId()const void ClickToDialRequest::setOutId(const std::string& outId) { outId_ = outId; - setParameter("OutId", outId); + setCoreParameter("OutId", outId); } bool ClickToDialRequest::getAsrFlag()const @@ -143,7 +143,7 @@ bool ClickToDialRequest::getAsrFlag()const void ClickToDialRequest::setAsrFlag(bool asrFlag) { asrFlag_ = asrFlag; - setParameter("AsrFlag", std::to_string(asrFlag)); + setCoreParameter("AsrFlag", asrFlag ? "true" : "false"); } std::string ClickToDialRequest::getAsrModelId()const @@ -154,7 +154,7 @@ std::string ClickToDialRequest::getAsrModelId()const void ClickToDialRequest::setAsrModelId(const std::string& asrModelId) { asrModelId_ = asrModelId; - setParameter("AsrModelId", asrModelId); + setCoreParameter("AsrModelId", asrModelId); } std::string ClickToDialRequest::getCallerNumber()const @@ -165,6 +165,6 @@ std::string ClickToDialRequest::getCallerNumber()const void ClickToDialRequest::setCallerNumber(const std::string& callerNumber) { callerNumber_ = callerNumber; - setParameter("CallerNumber", callerNumber); + setCoreParameter("CallerNumber", callerNumber); } diff --git a/dyvmsapi/src/model/ClickToDialResult.cc b/dyvmsapi/src/model/ClickToDialResult.cc index 0bdd4eef1..4782f9f82 100644 --- a/dyvmsapi/src/model/ClickToDialResult.cc +++ b/dyvmsapi/src/model/ClickToDialResult.cc @@ -35,10 +35,13 @@ ClickToDialResult::~ClickToDialResult() void ClickToDialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CallId"].isNull()) callId_ = value["CallId"].asString(); diff --git a/dyvmsapi/src/model/CreateRobotTaskRequest.cc b/dyvmsapi/src/model/CreateRobotTaskRequest.cc new file mode 100644 index 000000000..0201b6459 --- /dev/null +++ b/dyvmsapi/src/model/CreateRobotTaskRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::CreateRobotTaskRequest; + +CreateRobotTaskRequest::CreateRobotTaskRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "CreateRobotTask") +{} + +CreateRobotTaskRequest::~CreateRobotTaskRequest() +{} + +long CreateRobotTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateRobotTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateRobotTaskRequest::getRecallStateCodes()const +{ + return recallStateCodes_; +} + +void CreateRobotTaskRequest::setRecallStateCodes(const std::string& recallStateCodes) +{ + recallStateCodes_ = recallStateCodes; + setCoreParameter("RecallStateCodes", recallStateCodes); +} + +std::string CreateRobotTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateRobotTaskRequest::getTaskName()const +{ + return taskName_; +} + +void CreateRobotTaskRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setCoreParameter("TaskName", taskName); +} + +int CreateRobotTaskRequest::getRetryType()const +{ + return retryType_; +} + +void CreateRobotTaskRequest::setRetryType(int retryType) +{ + retryType_ = retryType; + setCoreParameter("RetryType", std::to_string(retryType)); +} + +long CreateRobotTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateRobotTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long CreateRobotTaskRequest::getDialogId()const +{ + return dialogId_; +} + +void CreateRobotTaskRequest::setDialogId(long dialogId) +{ + dialogId_ = dialogId; + setCoreParameter("DialogId", std::to_string(dialogId)); +} + +std::string CreateRobotTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +int CreateRobotTaskRequest::getRecallTimes()const +{ + return recallTimes_; +} + +void CreateRobotTaskRequest::setRecallTimes(int recallTimes) +{ + recallTimes_ = recallTimes; + setCoreParameter("RecallTimes", std::to_string(recallTimes)); +} + +std::string CreateRobotTaskRequest::getCaller()const +{ + return caller_; +} + +void CreateRobotTaskRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setCoreParameter("Caller", caller); +} + +bool CreateRobotTaskRequest::getNumberStatusIdent()const +{ + return numberStatusIdent_; +} + +void CreateRobotTaskRequest::setNumberStatusIdent(bool numberStatusIdent) +{ + numberStatusIdent_ = numberStatusIdent; + setCoreParameter("NumberStatusIdent", numberStatusIdent ? "true" : "false"); +} + +std::string CreateRobotTaskRequest::getCorpName()const +{ + return corpName_; +} + +void CreateRobotTaskRequest::setCorpName(const std::string& corpName) +{ + corpName_ = corpName; + setCoreParameter("CorpName", corpName); +} + +int CreateRobotTaskRequest::getRecallInterval()const +{ + return recallInterval_; +} + +void CreateRobotTaskRequest::setRecallInterval(int recallInterval) +{ + recallInterval_ = recallInterval; + setCoreParameter("RecallInterval", std::to_string(recallInterval)); +} + +bool CreateRobotTaskRequest::getIsSelfLine()const +{ + return isSelfLine_; +} + +void CreateRobotTaskRequest::setIsSelfLine(bool isSelfLine) +{ + isSelfLine_ = isSelfLine; + setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false"); +} + diff --git a/dyvmsapi/src/model/CreateRobotTaskResult.cc b/dyvmsapi/src/model/CreateRobotTaskResult.cc new file mode 100644 index 000000000..db18c4e21 --- /dev/null +++ b/dyvmsapi/src/model/CreateRobotTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +CreateRobotTaskResult::CreateRobotTaskResult() : + ServiceResult() +{} + +CreateRobotTaskResult::CreateRobotTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRobotTaskResult::~CreateRobotTaskResult() +{} + +void CreateRobotTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateRobotTaskResult::getMessage()const +{ + return message_; +} + +std::string CreateRobotTaskResult::getData()const +{ + return data_; +} + +std::string CreateRobotTaskResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/DeleteRobotTaskRequest.cc b/dyvmsapi/src/model/DeleteRobotTaskRequest.cc new file mode 100644 index 000000000..aa5ff5857 --- /dev/null +++ b/dyvmsapi/src/model/DeleteRobotTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::DeleteRobotTaskRequest; + +DeleteRobotTaskRequest::DeleteRobotTaskRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "DeleteRobotTask") +{} + +DeleteRobotTaskRequest::~DeleteRobotTaskRequest() +{} + +long DeleteRobotTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteRobotTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteRobotTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long DeleteRobotTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRobotTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long DeleteRobotTaskRequest::getTaskId()const +{ + return taskId_; +} + +void DeleteRobotTaskRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string DeleteRobotTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/DeleteRobotTaskResult.cc b/dyvmsapi/src/model/DeleteRobotTaskResult.cc new file mode 100644 index 000000000..800650151 --- /dev/null +++ b/dyvmsapi/src/model/DeleteRobotTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +DeleteRobotTaskResult::DeleteRobotTaskResult() : + ServiceResult() +{} + +DeleteRobotTaskResult::DeleteRobotTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRobotTaskResult::~DeleteRobotTaskResult() +{} + +void DeleteRobotTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteRobotTaskResult::getMessage()const +{ + return message_; +} + +std::string DeleteRobotTaskResult::getData()const +{ + return data_; +} + +std::string DeleteRobotTaskResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/GetRtcTokenRequest.cc b/dyvmsapi/src/model/GetRtcTokenRequest.cc new file mode 100644 index 000000000..30aca5368 --- /dev/null +++ b/dyvmsapi/src/model/GetRtcTokenRequest.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 + +using AlibabaCloud::Dyvmsapi::Model::GetRtcTokenRequest; + +GetRtcTokenRequest::GetRtcTokenRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "GetRtcToken") +{} + +GetRtcTokenRequest::~GetRtcTokenRequest() +{} + +long GetRtcTokenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetRtcTokenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetRtcTokenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetRtcTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long GetRtcTokenRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetRtcTokenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetRtcTokenRequest::getUserId()const +{ + return userId_; +} + +void GetRtcTokenRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string GetRtcTokenRequest::getDeviceId()const +{ + return deviceId_; +} + +void GetRtcTokenRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setCoreParameter("DeviceId", deviceId); +} + +bool GetRtcTokenRequest::getIsCustomAccount()const +{ + return isCustomAccount_; +} + +void GetRtcTokenRequest::setIsCustomAccount(bool isCustomAccount) +{ + isCustomAccount_ = isCustomAccount; + setCoreParameter("IsCustomAccount", isCustomAccount ? "true" : "false"); +} + +std::string GetRtcTokenRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetRtcTokenRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/GetRtcTokenResult.cc b/dyvmsapi/src/model/GetRtcTokenResult.cc new file mode 100644 index 000000000..a3afc6654 --- /dev/null +++ b/dyvmsapi/src/model/GetRtcTokenResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +GetRtcTokenResult::GetRtcTokenResult() : + ServiceResult() +{} + +GetRtcTokenResult::GetRtcTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRtcTokenResult::~GetRtcTokenResult() +{} + +void GetRtcTokenResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetRtcTokenResult::getMessage()const +{ + return message_; +} + +std::string GetRtcTokenResult::getModule()const +{ + return module_; +} + +std::string GetRtcTokenResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/IvrCallRequest.cc b/dyvmsapi/src/model/IvrCallRequest.cc index 76ec3b71b..df8826da4 100644 --- a/dyvmsapi/src/model/IvrCallRequest.cc +++ b/dyvmsapi/src/model/IvrCallRequest.cc @@ -33,7 +33,7 @@ std::string IvrCallRequest::getByeCode()const void IvrCallRequest::setByeCode(const std::string& byeCode) { byeCode_ = byeCode; - setParameter("ByeCode", byeCode); + setCoreParameter("ByeCode", byeCode); } std::vector IvrCallRequest::getMenuKeyMap()const @@ -48,9 +48,9 @@ void IvrCallRequest::setMenuKeyMap(const std::vector& menuKeyMap) for(int i = 0; i!= menuKeyMap.size(); i++) { auto obj = menuKeyMap.at(i); std::string str ="MenuKeyMap."+ std::to_string(i); - setParameter(str + ".Key", obj.key); - setParameter(str + ".Code", obj.code); - setParameter(str + ".TtsParams", obj.ttsParams); + setCoreParameter(str + ".Code", obj.code); + setCoreParameter(str + ".TtsParams", obj.ttsParams); + setCoreParameter(str + ".Key", obj.key); } } @@ -62,7 +62,7 @@ long IvrCallRequest::getResourceOwnerId()const void IvrCallRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string IvrCallRequest::getResourceOwnerAccount()const @@ -73,7 +73,7 @@ std::string IvrCallRequest::getResourceOwnerAccount()const void IvrCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string IvrCallRequest::getStartTtsParams()const @@ -84,7 +84,7 @@ std::string IvrCallRequest::getStartTtsParams()const void IvrCallRequest::setStartTtsParams(const std::string& startTtsParams) { startTtsParams_ = startTtsParams; - setParameter("StartTtsParams", startTtsParams); + setCoreParameter("StartTtsParams", startTtsParams); } long IvrCallRequest::getPlayTimes()const @@ -95,7 +95,7 @@ long IvrCallRequest::getPlayTimes()const void IvrCallRequest::setPlayTimes(long playTimes) { playTimes_ = playTimes; - setParameter("PlayTimes", std::to_string(playTimes)); + setCoreParameter("PlayTimes", std::to_string(playTimes)); } long IvrCallRequest::getOwnerId()const @@ -106,7 +106,7 @@ long IvrCallRequest::getOwnerId()const void IvrCallRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int IvrCallRequest::getTimeout()const @@ -117,7 +117,7 @@ int IvrCallRequest::getTimeout()const void IvrCallRequest::setTimeout(int timeout) { timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); + setCoreParameter("Timeout", std::to_string(timeout)); } std::string IvrCallRequest::getAccessKeyId()const @@ -128,7 +128,7 @@ std::string IvrCallRequest::getAccessKeyId()const void IvrCallRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string IvrCallRequest::getStartCode()const @@ -139,7 +139,7 @@ std::string IvrCallRequest::getStartCode()const void IvrCallRequest::setStartCode(const std::string& startCode) { startCode_ = startCode; - setParameter("StartCode", startCode); + setCoreParameter("StartCode", startCode); } std::string IvrCallRequest::getCalledNumber()const @@ -150,7 +150,7 @@ std::string IvrCallRequest::getCalledNumber()const void IvrCallRequest::setCalledNumber(const std::string& calledNumber) { calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); + setCoreParameter("CalledNumber", calledNumber); } std::string IvrCallRequest::getCalledShowNumber()const @@ -161,7 +161,7 @@ std::string IvrCallRequest::getCalledShowNumber()const void IvrCallRequest::setCalledShowNumber(const std::string& calledShowNumber) { calledShowNumber_ = calledShowNumber; - setParameter("CalledShowNumber", calledShowNumber); + setCoreParameter("CalledShowNumber", calledShowNumber); } std::string IvrCallRequest::getOutId()const @@ -172,7 +172,7 @@ std::string IvrCallRequest::getOutId()const void IvrCallRequest::setOutId(const std::string& outId) { outId_ = outId; - setParameter("OutId", outId); + setCoreParameter("OutId", outId); } std::string IvrCallRequest::getByeTtsParams()const @@ -183,6 +183,6 @@ std::string IvrCallRequest::getByeTtsParams()const void IvrCallRequest::setByeTtsParams(const std::string& byeTtsParams) { byeTtsParams_ = byeTtsParams; - setParameter("ByeTtsParams", byeTtsParams); + setCoreParameter("ByeTtsParams", byeTtsParams); } diff --git a/dyvmsapi/src/model/IvrCallResult.cc b/dyvmsapi/src/model/IvrCallResult.cc index 3989818a7..7f92a7d38 100644 --- a/dyvmsapi/src/model/IvrCallResult.cc +++ b/dyvmsapi/src/model/IvrCallResult.cc @@ -35,10 +35,13 @@ IvrCallResult::~IvrCallResult() void IvrCallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CallId"].isNull()) callId_ = value["CallId"].asString(); diff --git a/dyvmsapi/src/model/QueryCallDetailByCallIdRequest.cc b/dyvmsapi/src/model/QueryCallDetailByCallIdRequest.cc index fde5b267e..f1dbf40b1 100644 --- a/dyvmsapi/src/model/QueryCallDetailByCallIdRequest.cc +++ b/dyvmsapi/src/model/QueryCallDetailByCallIdRequest.cc @@ -33,7 +33,7 @@ std::string QueryCallDetailByCallIdRequest::getCallId()const void QueryCallDetailByCallIdRequest::setCallId(const std::string& callId) { callId_ = callId; - setParameter("CallId", callId); + setCoreParameter("CallId", callId); } long QueryCallDetailByCallIdRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryCallDetailByCallIdRequest::getResourceOwnerId()const void QueryCallDetailByCallIdRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long QueryCallDetailByCallIdRequest::getQueryDate()const @@ -55,7 +55,7 @@ long QueryCallDetailByCallIdRequest::getQueryDate()const void QueryCallDetailByCallIdRequest::setQueryDate(long queryDate) { queryDate_ = queryDate; - setParameter("QueryDate", std::to_string(queryDate)); + setCoreParameter("QueryDate", std::to_string(queryDate)); } std::string QueryCallDetailByCallIdRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryCallDetailByCallIdRequest::getResourceOwnerAccount()const void QueryCallDetailByCallIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long QueryCallDetailByCallIdRequest::getProdId()const @@ -77,7 +77,7 @@ long QueryCallDetailByCallIdRequest::getProdId()const void QueryCallDetailByCallIdRequest::setProdId(long prodId) { prodId_ = prodId; - setParameter("ProdId", std::to_string(prodId)); + setCoreParameter("ProdId", std::to_string(prodId)); } long QueryCallDetailByCallIdRequest::getOwnerId()const @@ -88,7 +88,7 @@ long QueryCallDetailByCallIdRequest::getOwnerId()const void QueryCallDetailByCallIdRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const void QueryCallDetailByCallIdRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/dyvmsapi/src/model/QueryCallDetailByCallIdResult.cc b/dyvmsapi/src/model/QueryCallDetailByCallIdResult.cc index 6977b8dd0..9311919d0 100644 --- a/dyvmsapi/src/model/QueryCallDetailByCallIdResult.cc +++ b/dyvmsapi/src/model/QueryCallDetailByCallIdResult.cc @@ -35,10 +35,13 @@ QueryCallDetailByCallIdResult::~QueryCallDetailByCallIdResult() void QueryCallDetailByCallIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); diff --git a/dyvmsapi/src/model/QueryCallDetailByTaskIdRequest.cc b/dyvmsapi/src/model/QueryCallDetailByTaskIdRequest.cc new file mode 100644 index 000000000..e079746a6 --- /dev/null +++ b/dyvmsapi/src/model/QueryCallDetailByTaskIdRequest.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 + +using AlibabaCloud::Dyvmsapi::Model::QueryCallDetailByTaskIdRequest; + +QueryCallDetailByTaskIdRequest::QueryCallDetailByTaskIdRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryCallDetailByTaskId") +{} + +QueryCallDetailByTaskIdRequest::~QueryCallDetailByTaskIdRequest() +{} + +long QueryCallDetailByTaskIdRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryCallDetailByTaskIdRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long QueryCallDetailByTaskIdRequest::getQueryDate()const +{ + return queryDate_; +} + +void QueryCallDetailByTaskIdRequest::setQueryDate(long queryDate) +{ + queryDate_ = queryDate; + setCoreParameter("QueryDate", std::to_string(queryDate)); +} + +std::string QueryCallDetailByTaskIdRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryCallDetailByTaskIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryCallDetailByTaskIdRequest::getCallee()const +{ + return callee_; +} + +void QueryCallDetailByTaskIdRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setCoreParameter("Callee", callee); +} + +long QueryCallDetailByTaskIdRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryCallDetailByTaskIdRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryCallDetailByTaskIdRequest::getTaskId()const +{ + return taskId_; +} + +void QueryCallDetailByTaskIdRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + +std::string QueryCallDetailByTaskIdRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryCallDetailByTaskIdRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/QueryCallDetailByTaskIdResult.cc b/dyvmsapi/src/model/QueryCallDetailByTaskIdResult.cc new file mode 100644 index 000000000..df3609e07 --- /dev/null +++ b/dyvmsapi/src/model/QueryCallDetailByTaskIdResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +QueryCallDetailByTaskIdResult::QueryCallDetailByTaskIdResult() : + ServiceResult() +{} + +QueryCallDetailByTaskIdResult::QueryCallDetailByTaskIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCallDetailByTaskIdResult::~QueryCallDetailByTaskIdResult() +{} + +void QueryCallDetailByTaskIdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryCallDetailByTaskIdResult::getMessage()const +{ + return message_; +} + +std::string QueryCallDetailByTaskIdResult::getData()const +{ + return data_; +} + +std::string QueryCallDetailByTaskIdResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/QueryRobotInfoListRequest.cc b/dyvmsapi/src/model/QueryRobotInfoListRequest.cc new file mode 100644 index 000000000..092ce5495 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotInfoListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::QueryRobotInfoListRequest; + +QueryRobotInfoListRequest::QueryRobotInfoListRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotInfoList") +{} + +QueryRobotInfoListRequest::~QueryRobotInfoListRequest() +{} + +long QueryRobotInfoListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryRobotInfoListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryRobotInfoListRequest::getAuditStatus()const +{ + return auditStatus_; +} + +void QueryRobotInfoListRequest::setAuditStatus(const std::string& auditStatus) +{ + auditStatus_ = auditStatus; + setCoreParameter("AuditStatus", auditStatus); +} + +std::string QueryRobotInfoListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryRobotInfoListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QueryRobotInfoListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryRobotInfoListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryRobotInfoListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRobotInfoListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/QueryRobotInfoListResult.cc b/dyvmsapi/src/model/QueryRobotInfoListResult.cc new file mode 100644 index 000000000..e2f899ce9 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotInfoListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +QueryRobotInfoListResult::QueryRobotInfoListResult() : + ServiceResult() +{} + +QueryRobotInfoListResult::QueryRobotInfoListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRobotInfoListResult::~QueryRobotInfoListResult() +{} + +void QueryRobotInfoListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryRobotInfoListResult::getMessage()const +{ + return message_; +} + +std::string QueryRobotInfoListResult::getData()const +{ + return data_; +} + +std::string QueryRobotInfoListResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskCallDetailRequest.cc b/dyvmsapi/src/model/QueryRobotTaskCallDetailRequest.cc new file mode 100644 index 000000000..fa5c83c92 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskCallDetailRequest.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 + +using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskCallDetailRequest; + +QueryRobotTaskCallDetailRequest::QueryRobotTaskCallDetailRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskCallDetail") +{} + +QueryRobotTaskCallDetailRequest::~QueryRobotTaskCallDetailRequest() +{} + +long QueryRobotTaskCallDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryRobotTaskCallDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long QueryRobotTaskCallDetailRequest::getQueryDate()const +{ + return queryDate_; +} + +void QueryRobotTaskCallDetailRequest::setQueryDate(long queryDate) +{ + queryDate_ = queryDate; + setCoreParameter("QueryDate", std::to_string(queryDate)); +} + +std::string QueryRobotTaskCallDetailRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryRobotTaskCallDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryRobotTaskCallDetailRequest::getCallee()const +{ + return callee_; +} + +void QueryRobotTaskCallDetailRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setCoreParameter("Callee", callee); +} + +long QueryRobotTaskCallDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryRobotTaskCallDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long QueryRobotTaskCallDetailRequest::getTaskId()const +{ + return taskId_; +} + +void QueryRobotTaskCallDetailRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string QueryRobotTaskCallDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRobotTaskCallDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskCallDetailResult.cc b/dyvmsapi/src/model/QueryRobotTaskCallDetailResult.cc new file mode 100644 index 000000000..5b459c441 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskCallDetailResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +QueryRobotTaskCallDetailResult::QueryRobotTaskCallDetailResult() : + ServiceResult() +{} + +QueryRobotTaskCallDetailResult::QueryRobotTaskCallDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRobotTaskCallDetailResult::~QueryRobotTaskCallDetailResult() +{} + +void QueryRobotTaskCallDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryRobotTaskCallDetailResult::getMessage()const +{ + return message_; +} + +std::string QueryRobotTaskCallDetailResult::getData()const +{ + return data_; +} + +std::string QueryRobotTaskCallDetailResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskCallListRequest.cc b/dyvmsapi/src/model/QueryRobotTaskCallListRequest.cc new file mode 100644 index 000000000..1e9574671 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskCallListRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskCallListRequest; + +QueryRobotTaskCallListRequest::QueryRobotTaskCallListRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskCallList") +{} + +QueryRobotTaskCallListRequest::~QueryRobotTaskCallListRequest() +{} + +long QueryRobotTaskCallListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryRobotTaskCallListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryRobotTaskCallListRequest::getCalled()const +{ + return called_; +} + +void QueryRobotTaskCallListRequest::setCalled(const std::string& called) +{ + called_ = called; + setCoreParameter("Called", called); +} + +std::string QueryRobotTaskCallListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryRobotTaskCallListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryRobotTaskCallListRequest::getDialogCountFrom()const +{ + return dialogCountFrom_; +} + +void QueryRobotTaskCallListRequest::setDialogCountFrom(const std::string& dialogCountFrom) +{ + dialogCountFrom_ = dialogCountFrom; + setCoreParameter("DialogCountFrom", dialogCountFrom); +} + +std::string QueryRobotTaskCallListRequest::getDurationTo()const +{ + return durationTo_; +} + +void QueryRobotTaskCallListRequest::setDurationTo(const std::string& durationTo) +{ + durationTo_ = durationTo; + setCoreParameter("DurationTo", durationTo); +} + +std::string QueryRobotTaskCallListRequest::getHangupDirection()const +{ + return hangupDirection_; +} + +void QueryRobotTaskCallListRequest::setHangupDirection(const std::string& hangupDirection) +{ + hangupDirection_ = hangupDirection; + setCoreParameter("HangupDirection", hangupDirection); +} + +std::string QueryRobotTaskCallListRequest::getDialogCountTo()const +{ + return dialogCountTo_; +} + +void QueryRobotTaskCallListRequest::setDialogCountTo(const std::string& dialogCountTo) +{ + dialogCountTo_ = dialogCountTo; + setCoreParameter("DialogCountTo", dialogCountTo); +} + +long QueryRobotTaskCallListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryRobotTaskCallListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryRobotTaskCallListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRobotTaskCallListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QueryRobotTaskCallListRequest::getDurationFrom()const +{ + return durationFrom_; +} + +void QueryRobotTaskCallListRequest::setDurationFrom(const std::string& durationFrom) +{ + durationFrom_ = durationFrom; + setCoreParameter("DurationFrom", durationFrom); +} + +int QueryRobotTaskCallListRequest::getPageNo()const +{ + return pageNo_; +} + +void QueryRobotTaskCallListRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +int QueryRobotTaskCallListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryRobotTaskCallListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryRobotTaskCallListRequest::getCallResult()const +{ + return callResult_; +} + +void QueryRobotTaskCallListRequest::setCallResult(const std::string& callResult) +{ + callResult_ = callResult; + setCoreParameter("CallResult", callResult); +} + +std::string QueryRobotTaskCallListRequest::getTaskId()const +{ + return taskId_; +} + +void QueryRobotTaskCallListRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskCallListResult.cc b/dyvmsapi/src/model/QueryRobotTaskCallListResult.cc new file mode 100644 index 000000000..899683732 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskCallListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +QueryRobotTaskCallListResult::QueryRobotTaskCallListResult() : + ServiceResult() +{} + +QueryRobotTaskCallListResult::QueryRobotTaskCallListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRobotTaskCallListResult::~QueryRobotTaskCallListResult() +{} + +void QueryRobotTaskCallListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryRobotTaskCallListResult::getMessage()const +{ + return message_; +} + +std::string QueryRobotTaskCallListResult::getData()const +{ + return data_; +} + +std::string QueryRobotTaskCallListResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskDetailRequest.cc b/dyvmsapi/src/model/QueryRobotTaskDetailRequest.cc new file mode 100644 index 000000000..c06d620de --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskDetailRequest; + +QueryRobotTaskDetailRequest::QueryRobotTaskDetailRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskDetail") +{} + +QueryRobotTaskDetailRequest::~QueryRobotTaskDetailRequest() +{} + +long QueryRobotTaskDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryRobotTaskDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryRobotTaskDetailRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryRobotTaskDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QueryRobotTaskDetailRequest::getId()const +{ + return id_; +} + +void QueryRobotTaskDetailRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +long QueryRobotTaskDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryRobotTaskDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryRobotTaskDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRobotTaskDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskDetailResult.cc b/dyvmsapi/src/model/QueryRobotTaskDetailResult.cc new file mode 100644 index 000000000..3871cb357 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskDetailResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +QueryRobotTaskDetailResult::QueryRobotTaskDetailResult() : + ServiceResult() +{} + +QueryRobotTaskDetailResult::QueryRobotTaskDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRobotTaskDetailResult::~QueryRobotTaskDetailResult() +{} + +void QueryRobotTaskDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryRobotTaskDetailResult::getMessage()const +{ + return message_; +} + +std::string QueryRobotTaskDetailResult::getData()const +{ + return data_; +} + +std::string QueryRobotTaskDetailResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskListRequest.cc b/dyvmsapi/src/model/QueryRobotTaskListRequest.cc new file mode 100644 index 000000000..0d3e06ef2 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskListRequest.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::Dyvmsapi::Model::QueryRobotTaskListRequest; + +QueryRobotTaskListRequest::QueryRobotTaskListRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskList") +{} + +QueryRobotTaskListRequest::~QueryRobotTaskListRequest() +{} + +long QueryRobotTaskListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryRobotTaskListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryRobotTaskListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryRobotTaskListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int QueryRobotTaskListRequest::getPageNo()const +{ + return pageNo_; +} + +void QueryRobotTaskListRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +int QueryRobotTaskListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryRobotTaskListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryRobotTaskListRequest::getTaskName()const +{ + return taskName_; +} + +void QueryRobotTaskListRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setCoreParameter("TaskName", taskName); +} + +std::string QueryRobotTaskListRequest::getTime()const +{ + return time_; +} + +void QueryRobotTaskListRequest::setTime(const std::string& time) +{ + time_ = time; + setCoreParameter("Time", time); +} + +long QueryRobotTaskListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryRobotTaskListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryRobotTaskListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRobotTaskListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QueryRobotTaskListRequest::getStatus()const +{ + return status_; +} + +void QueryRobotTaskListRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/dyvmsapi/src/model/QueryRobotTaskListResult.cc b/dyvmsapi/src/model/QueryRobotTaskListResult.cc new file mode 100644 index 000000000..f7f0251fa --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotTaskListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +QueryRobotTaskListResult::QueryRobotTaskListResult() : + ServiceResult() +{} + +QueryRobotTaskListResult::QueryRobotTaskListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRobotTaskListResult::~QueryRobotTaskListResult() +{} + +void QueryRobotTaskListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryRobotTaskListResult::getMessage()const +{ + return message_; +} + +std::string QueryRobotTaskListResult::getData()const +{ + return data_; +} + +std::string QueryRobotTaskListResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/QueryRobotv2AllListRequest.cc b/dyvmsapi/src/model/QueryRobotv2AllListRequest.cc new file mode 100644 index 000000000..27920d2d2 --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotv2AllListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::QueryRobotv2AllListRequest; + +QueryRobotv2AllListRequest::QueryRobotv2AllListRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotv2AllList") +{} + +QueryRobotv2AllListRequest::~QueryRobotv2AllListRequest() +{} + +long QueryRobotv2AllListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryRobotv2AllListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryRobotv2AllListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryRobotv2AllListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QueryRobotv2AllListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryRobotv2AllListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryRobotv2AllListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRobotv2AllListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/QueryRobotv2AllListResult.cc b/dyvmsapi/src/model/QueryRobotv2AllListResult.cc new file mode 100644 index 000000000..d4c985edd --- /dev/null +++ b/dyvmsapi/src/model/QueryRobotv2AllListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +QueryRobotv2AllListResult::QueryRobotv2AllListResult() : + ServiceResult() +{} + +QueryRobotv2AllListResult::QueryRobotv2AllListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRobotv2AllListResult::~QueryRobotv2AllListResult() +{} + +void QueryRobotv2AllListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryRobotv2AllListResult::getMessage()const +{ + return message_; +} + +std::string QueryRobotv2AllListResult::getData()const +{ + return data_; +} + +std::string QueryRobotv2AllListResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/SingleCallByTtsRequest.cc b/dyvmsapi/src/model/SingleCallByTtsRequest.cc index c2829f6c9..07264fb0d 100644 --- a/dyvmsapi/src/model/SingleCallByTtsRequest.cc +++ b/dyvmsapi/src/model/SingleCallByTtsRequest.cc @@ -33,7 +33,7 @@ long SingleCallByTtsRequest::getResourceOwnerId()const void SingleCallByTtsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SingleCallByTtsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string SingleCallByTtsRequest::getResourceOwnerAccount()const void SingleCallByTtsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SingleCallByTtsRequest::getTtsCode()const @@ -55,7 +55,7 @@ std::string SingleCallByTtsRequest::getTtsCode()const void SingleCallByTtsRequest::setTtsCode(const std::string& ttsCode) { ttsCode_ = ttsCode; - setParameter("TtsCode", ttsCode); + setCoreParameter("TtsCode", ttsCode); } int SingleCallByTtsRequest::getPlayTimes()const @@ -66,7 +66,7 @@ int SingleCallByTtsRequest::getPlayTimes()const void SingleCallByTtsRequest::setPlayTimes(int playTimes) { playTimes_ = playTimes; - setParameter("PlayTimes", std::to_string(playTimes)); + setCoreParameter("PlayTimes", std::to_string(playTimes)); } std::string SingleCallByTtsRequest::getTtsParam()const @@ -77,7 +77,7 @@ std::string SingleCallByTtsRequest::getTtsParam()const void SingleCallByTtsRequest::setTtsParam(const std::string& ttsParam) { ttsParam_ = ttsParam; - setParameter("TtsParam", ttsParam); + setCoreParameter("TtsParam", ttsParam); } long SingleCallByTtsRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SingleCallByTtsRequest::getOwnerId()const void SingleCallByTtsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int SingleCallByTtsRequest::getSpeed()const @@ -99,7 +99,7 @@ int SingleCallByTtsRequest::getSpeed()const void SingleCallByTtsRequest::setSpeed(int speed) { speed_ = speed; - setParameter("Speed", std::to_string(speed)); + setCoreParameter("Speed", std::to_string(speed)); } std::string SingleCallByTtsRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SingleCallByTtsRequest::getAccessKeyId()const void SingleCallByTtsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int SingleCallByTtsRequest::getVolume()const @@ -121,7 +121,7 @@ int SingleCallByTtsRequest::getVolume()const void SingleCallByTtsRequest::setVolume(int volume) { volume_ = volume; - setParameter("Volume", std::to_string(volume)); + setCoreParameter("Volume", std::to_string(volume)); } std::string SingleCallByTtsRequest::getCalledNumber()const @@ -132,7 +132,7 @@ std::string SingleCallByTtsRequest::getCalledNumber()const void SingleCallByTtsRequest::setCalledNumber(const std::string& calledNumber) { calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); + setCoreParameter("CalledNumber", calledNumber); } std::string SingleCallByTtsRequest::getCalledShowNumber()const @@ -143,7 +143,7 @@ std::string SingleCallByTtsRequest::getCalledShowNumber()const void SingleCallByTtsRequest::setCalledShowNumber(const std::string& calledShowNumber) { calledShowNumber_ = calledShowNumber; - setParameter("CalledShowNumber", calledShowNumber); + setCoreParameter("CalledShowNumber", calledShowNumber); } std::string SingleCallByTtsRequest::getOutId()const @@ -154,6 +154,6 @@ std::string SingleCallByTtsRequest::getOutId()const void SingleCallByTtsRequest::setOutId(const std::string& outId) { outId_ = outId; - setParameter("OutId", outId); + setCoreParameter("OutId", outId); } diff --git a/dyvmsapi/src/model/SingleCallByTtsResult.cc b/dyvmsapi/src/model/SingleCallByTtsResult.cc index e92725d57..c369136d4 100644 --- a/dyvmsapi/src/model/SingleCallByTtsResult.cc +++ b/dyvmsapi/src/model/SingleCallByTtsResult.cc @@ -35,10 +35,13 @@ SingleCallByTtsResult::~SingleCallByTtsResult() void SingleCallByTtsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CallId"].isNull()) callId_ = value["CallId"].asString(); diff --git a/dyvmsapi/src/model/SingleCallByVoiceRequest.cc b/dyvmsapi/src/model/SingleCallByVoiceRequest.cc index bd7fe05e2..647fa6b37 100644 --- a/dyvmsapi/src/model/SingleCallByVoiceRequest.cc +++ b/dyvmsapi/src/model/SingleCallByVoiceRequest.cc @@ -33,7 +33,7 @@ int SingleCallByVoiceRequest::getVolume()const void SingleCallByVoiceRequest::setVolume(int volume) { volume_ = volume; - setParameter("Volume", std::to_string(volume)); + setCoreParameter("Volume", std::to_string(volume)); } long SingleCallByVoiceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SingleCallByVoiceRequest::getResourceOwnerId()const void SingleCallByVoiceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const void SingleCallByVoiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SingleCallByVoiceRequest::getCalledNumber()const @@ -66,7 +66,7 @@ std::string SingleCallByVoiceRequest::getCalledNumber()const void SingleCallByVoiceRequest::setCalledNumber(const std::string& calledNumber) { calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); + setCoreParameter("CalledNumber", calledNumber); } std::string SingleCallByVoiceRequest::getVoiceCode()const @@ -77,7 +77,7 @@ std::string SingleCallByVoiceRequest::getVoiceCode()const void SingleCallByVoiceRequest::setVoiceCode(const std::string& voiceCode) { voiceCode_ = voiceCode; - setParameter("VoiceCode", voiceCode); + setCoreParameter("VoiceCode", voiceCode); } std::string SingleCallByVoiceRequest::getCalledShowNumber()const @@ -88,7 +88,7 @@ std::string SingleCallByVoiceRequest::getCalledShowNumber()const void SingleCallByVoiceRequest::setCalledShowNumber(const std::string& calledShowNumber) { calledShowNumber_ = calledShowNumber; - setParameter("CalledShowNumber", calledShowNumber); + setCoreParameter("CalledShowNumber", calledShowNumber); } int SingleCallByVoiceRequest::getPlayTimes()const @@ -99,7 +99,7 @@ int SingleCallByVoiceRequest::getPlayTimes()const void SingleCallByVoiceRequest::setPlayTimes(int playTimes) { playTimes_ = playTimes; - setParameter("PlayTimes", std::to_string(playTimes)); + setCoreParameter("PlayTimes", std::to_string(playTimes)); } std::string SingleCallByVoiceRequest::getOutId()const @@ -110,7 +110,7 @@ std::string SingleCallByVoiceRequest::getOutId()const void SingleCallByVoiceRequest::setOutId(const std::string& outId) { outId_ = outId; - setParameter("OutId", outId); + setCoreParameter("OutId", outId); } long SingleCallByVoiceRequest::getOwnerId()const @@ -121,7 +121,7 @@ long SingleCallByVoiceRequest::getOwnerId()const void SingleCallByVoiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int SingleCallByVoiceRequest::getSpeed()const @@ -132,7 +132,7 @@ int SingleCallByVoiceRequest::getSpeed()const void SingleCallByVoiceRequest::setSpeed(int speed) { speed_ = speed; - setParameter("Speed", std::to_string(speed)); + setCoreParameter("Speed", std::to_string(speed)); } std::string SingleCallByVoiceRequest::getAccessKeyId()const @@ -143,6 +143,6 @@ std::string SingleCallByVoiceRequest::getAccessKeyId()const void SingleCallByVoiceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/dyvmsapi/src/model/SingleCallByVoiceResult.cc b/dyvmsapi/src/model/SingleCallByVoiceResult.cc index ca57bc4af..6f658e922 100644 --- a/dyvmsapi/src/model/SingleCallByVoiceResult.cc +++ b/dyvmsapi/src/model/SingleCallByVoiceResult.cc @@ -35,10 +35,13 @@ SingleCallByVoiceResult::~SingleCallByVoiceResult() void SingleCallByVoiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CallId"].isNull()) callId_ = value["CallId"].asString(); diff --git a/dyvmsapi/src/model/SmartCallOperateRequest.cc b/dyvmsapi/src/model/SmartCallOperateRequest.cc new file mode 100644 index 000000000..ed77a901e --- /dev/null +++ b/dyvmsapi/src/model/SmartCallOperateRequest.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 + +using AlibabaCloud::Dyvmsapi::Model::SmartCallOperateRequest; + +SmartCallOperateRequest::SmartCallOperateRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "SmartCallOperate") +{} + +SmartCallOperateRequest::~SmartCallOperateRequest() +{} + +std::string SmartCallOperateRequest::getCallId()const +{ + return callId_; +} + +void SmartCallOperateRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setCoreParameter("CallId", callId); +} + +long SmartCallOperateRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SmartCallOperateRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SmartCallOperateRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SmartCallOperateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SmartCallOperateRequest::getParam()const +{ + return param_; +} + +void SmartCallOperateRequest::setParam(const std::string& param) +{ + param_ = param; + setCoreParameter("Param", param); +} + +long SmartCallOperateRequest::getOwnerId()const +{ + return ownerId_; +} + +void SmartCallOperateRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SmartCallOperateRequest::getCommand()const +{ + return command_; +} + +void SmartCallOperateRequest::setCommand(const std::string& command) +{ + command_ = command; + setCoreParameter("Command", command); +} + +std::string SmartCallOperateRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SmartCallOperateRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/SmartCallOperateResult.cc b/dyvmsapi/src/model/SmartCallOperateResult.cc new file mode 100644 index 000000000..81b5e1bd5 --- /dev/null +++ b/dyvmsapi/src/model/SmartCallOperateResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +SmartCallOperateResult::SmartCallOperateResult() : + ServiceResult() +{} + +SmartCallOperateResult::SmartCallOperateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SmartCallOperateResult::~SmartCallOperateResult() +{} + +void SmartCallOperateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +bool SmartCallOperateResult::getStatus()const +{ + return status_; +} + +std::string SmartCallOperateResult::getMessage()const +{ + return message_; +} + +std::string SmartCallOperateResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/SmartCallRequest.cc b/dyvmsapi/src/model/SmartCallRequest.cc index 0c1277b97..d417a5f81 100644 --- a/dyvmsapi/src/model/SmartCallRequest.cc +++ b/dyvmsapi/src/model/SmartCallRequest.cc @@ -33,51 +33,29 @@ long SmartCallRequest::getResourceOwnerId()const void SmartCallRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -bool SmartCallRequest::getActionCodeBreak()const +std::string SmartCallRequest::getVoiceCodeParam()const { - return actionCodeBreak_; + return voiceCodeParam_; } -void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak) +void SmartCallRequest::setVoiceCodeParam(const std::string& voiceCodeParam) { - actionCodeBreak_ = actionCodeBreak; - setParameter("ActionCodeBreak", std::to_string(actionCodeBreak)); + voiceCodeParam_ = voiceCodeParam; + setCoreParameter("VoiceCodeParam", voiceCodeParam); } -std::string SmartCallRequest::getResourceOwnerAccount()const +bool SmartCallRequest::getEarlyMediaAsr()const { - return resourceOwnerAccount_; + return earlyMediaAsr_; } -void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +void SmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -bool SmartCallRequest::getRecordFlag()const -{ - return recordFlag_; -} - -void SmartCallRequest::setRecordFlag(bool recordFlag) -{ - recordFlag_ = recordFlag; - setParameter("RecordFlag", std::to_string(recordFlag)); -} - -long SmartCallRequest::getOwnerId()const -{ - return ownerId_; -} - -void SmartCallRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + earlyMediaAsr_ = earlyMediaAsr; + setCoreParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false"); } int SmartCallRequest::getSpeed()const @@ -88,7 +66,7 @@ int SmartCallRequest::getSpeed()const void SmartCallRequest::setSpeed(int speed) { speed_ = speed; - setParameter("Speed", std::to_string(speed)); + setCoreParameter("Speed", std::to_string(speed)); } std::string SmartCallRequest::getAccessKeyId()const @@ -99,18 +77,29 @@ std::string SmartCallRequest::getAccessKeyId()const void SmartCallRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } -int SmartCallRequest::getVolume()const +std::string SmartCallRequest::getAsrBaseId()const { - return volume_; + return asrBaseId_; } -void SmartCallRequest::setVolume(int volume) +void SmartCallRequest::setAsrBaseId(const std::string& asrBaseId) { - volume_ = volume; - setParameter("Volume", std::to_string(volume)); + asrBaseId_ = asrBaseId; + setCoreParameter("AsrBaseId", asrBaseId); +} + +int SmartCallRequest::getSessionTimeout()const +{ + return sessionTimeout_; +} + +void SmartCallRequest::setSessionTimeout(int sessionTimeout) +{ + sessionTimeout_ = sessionTimeout; + setCoreParameter("SessionTimeout", std::to_string(sessionTimeout)); } std::string SmartCallRequest::getDynamicId()const @@ -121,7 +110,7 @@ std::string SmartCallRequest::getDynamicId()const void SmartCallRequest::setDynamicId(const std::string& dynamicId) { dynamicId_ = dynamicId; - setParameter("DynamicId", dynamicId); + setCoreParameter("DynamicId", dynamicId); } std::string SmartCallRequest::getCalledNumber()const @@ -132,7 +121,18 @@ std::string SmartCallRequest::getCalledNumber()const void SmartCallRequest::setCalledNumber(const std::string& calledNumber) { calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); + setCoreParameter("CalledNumber", calledNumber); +} + +int SmartCallRequest::getTtsSpeed()const +{ + return ttsSpeed_; +} + +void SmartCallRequest::setTtsSpeed(int ttsSpeed) +{ + ttsSpeed_ = ttsSpeed; + setCoreParameter("TtsSpeed", std::to_string(ttsSpeed)); } std::string SmartCallRequest::getVoiceCode()const @@ -143,18 +143,7 @@ std::string SmartCallRequest::getVoiceCode()const void SmartCallRequest::setVoiceCode(const std::string& voiceCode) { voiceCode_ = voiceCode; - setParameter("VoiceCode", voiceCode); -} - -int SmartCallRequest::getMuteTime()const -{ - return muteTime_; -} - -void SmartCallRequest::setMuteTime(int muteTime) -{ - muteTime_ = muteTime; - setParameter("MuteTime", std::to_string(muteTime)); + setCoreParameter("VoiceCode", voiceCode); } std::string SmartCallRequest::getCalledShowNumber()const @@ -165,7 +154,106 @@ std::string SmartCallRequest::getCalledShowNumber()const void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber) { calledShowNumber_ = calledShowNumber; - setParameter("CalledShowNumber", calledShowNumber); + setCoreParameter("CalledShowNumber", calledShowNumber); +} + +int SmartCallRequest::getActionCodeTimeBreak()const +{ + return actionCodeTimeBreak_; +} + +void SmartCallRequest::setActionCodeTimeBreak(int actionCodeTimeBreak) +{ + actionCodeTimeBreak_ = actionCodeTimeBreak; + setCoreParameter("ActionCodeTimeBreak", std::to_string(actionCodeTimeBreak)); +} + +bool SmartCallRequest::getTtsConf()const +{ + return ttsConf_; +} + +void SmartCallRequest::setTtsConf(bool ttsConf) +{ + ttsConf_ = ttsConf; + setCoreParameter("TtsConf", ttsConf ? "true" : "false"); +} + +bool SmartCallRequest::getActionCodeBreak()const +{ + return actionCodeBreak_; +} + +void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak) +{ + actionCodeBreak_ = actionCodeBreak; + setCoreParameter("ActionCodeBreak", actionCodeBreak ? "true" : "false"); +} + +std::string SmartCallRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool SmartCallRequest::getRecordFlag()const +{ + return recordFlag_; +} + +void SmartCallRequest::setRecordFlag(bool recordFlag) +{ + recordFlag_ = recordFlag; + setCoreParameter("RecordFlag", recordFlag ? "true" : "false"); +} + +long SmartCallRequest::getOwnerId()const +{ + return ownerId_; +} + +void SmartCallRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int SmartCallRequest::getTtsVolume()const +{ + return ttsVolume_; +} + +void SmartCallRequest::setTtsVolume(int ttsVolume) +{ + ttsVolume_ = ttsVolume; + setCoreParameter("TtsVolume", std::to_string(ttsVolume)); +} + +int SmartCallRequest::getVolume()const +{ + return volume_; +} + +void SmartCallRequest::setVolume(int volume) +{ + volume_ = volume; + setCoreParameter("Volume", std::to_string(volume)); +} + +int SmartCallRequest::getMuteTime()const +{ + return muteTime_; +} + +void SmartCallRequest::setMuteTime(int muteTime) +{ + muteTime_ = muteTime; + setCoreParameter("MuteTime", std::to_string(muteTime)); } std::string SmartCallRequest::getOutId()const @@ -176,7 +264,7 @@ std::string SmartCallRequest::getOutId()const void SmartCallRequest::setOutId(const std::string& outId) { outId_ = outId; - setParameter("OutId", outId); + setCoreParameter("OutId", outId); } std::string SmartCallRequest::getAsrModelId()const @@ -187,7 +275,7 @@ std::string SmartCallRequest::getAsrModelId()const void SmartCallRequest::setAsrModelId(const std::string& asrModelId) { asrModelId_ = asrModelId; - setParameter("AsrModelId", asrModelId); + setCoreParameter("AsrModelId", asrModelId); } int SmartCallRequest::getPauseTime()const @@ -198,6 +286,17 @@ int SmartCallRequest::getPauseTime()const void SmartCallRequest::setPauseTime(int pauseTime) { pauseTime_ = pauseTime; - setParameter("PauseTime", std::to_string(pauseTime)); + setCoreParameter("PauseTime", std::to_string(pauseTime)); +} + +std::string SmartCallRequest::getTtsStyle()const +{ + return ttsStyle_; +} + +void SmartCallRequest::setTtsStyle(const std::string& ttsStyle) +{ + ttsStyle_ = ttsStyle; + setCoreParameter("TtsStyle", ttsStyle); } diff --git a/dyvmsapi/src/model/SmartCallResult.cc b/dyvmsapi/src/model/SmartCallResult.cc index bdd27d324..43fd40d35 100644 --- a/dyvmsapi/src/model/SmartCallResult.cc +++ b/dyvmsapi/src/model/SmartCallResult.cc @@ -35,10 +35,13 @@ SmartCallResult::~SmartCallResult() void SmartCallResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CallId"].isNull()) callId_ = value["CallId"].asString(); diff --git a/dyvmsapi/src/model/StartRobotTaskRequest.cc b/dyvmsapi/src/model/StartRobotTaskRequest.cc new file mode 100644 index 000000000..aab909b1c --- /dev/null +++ b/dyvmsapi/src/model/StartRobotTaskRequest.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 + +using AlibabaCloud::Dyvmsapi::Model::StartRobotTaskRequest; + +StartRobotTaskRequest::StartRobotTaskRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "StartRobotTask") +{} + +StartRobotTaskRequest::~StartRobotTaskRequest() +{} + +long StartRobotTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartRobotTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StartRobotTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StartRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string StartRobotTaskRequest::getScheduleTime()const +{ + return scheduleTime_; +} + +void StartRobotTaskRequest::setScheduleTime(const std::string& scheduleTime) +{ + scheduleTime_ = scheduleTime; + setCoreParameter("ScheduleTime", scheduleTime); +} + +long StartRobotTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartRobotTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long StartRobotTaskRequest::getTaskId()const +{ + return taskId_; +} + +void StartRobotTaskRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string StartRobotTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/StartRobotTaskResult.cc b/dyvmsapi/src/model/StartRobotTaskResult.cc new file mode 100644 index 000000000..1e8b4cb5f --- /dev/null +++ b/dyvmsapi/src/model/StartRobotTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +StartRobotTaskResult::StartRobotTaskResult() : + ServiceResult() +{} + +StartRobotTaskResult::StartRobotTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartRobotTaskResult::~StartRobotTaskResult() +{} + +void StartRobotTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string StartRobotTaskResult::getMessage()const +{ + return message_; +} + +std::string StartRobotTaskResult::getData()const +{ + return data_; +} + +std::string StartRobotTaskResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/StopRobotTaskRequest.cc b/dyvmsapi/src/model/StopRobotTaskRequest.cc new file mode 100644 index 000000000..f87a17163 --- /dev/null +++ b/dyvmsapi/src/model/StopRobotTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyvmsapi::Model::StopRobotTaskRequest; + +StopRobotTaskRequest::StopRobotTaskRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "StopRobotTask") +{} + +StopRobotTaskRequest::~StopRobotTaskRequest() +{} + +long StopRobotTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StopRobotTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StopRobotTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StopRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long StopRobotTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopRobotTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long StopRobotTaskRequest::getTaskId()const +{ + return taskId_; +} + +void StopRobotTaskRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string StopRobotTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StopRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/StopRobotTaskResult.cc b/dyvmsapi/src/model/StopRobotTaskResult.cc new file mode 100644 index 000000000..1fc402cf6 --- /dev/null +++ b/dyvmsapi/src/model/StopRobotTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +StopRobotTaskResult::StopRobotTaskResult() : + ServiceResult() +{} + +StopRobotTaskResult::StopRobotTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopRobotTaskResult::~StopRobotTaskResult() +{} + +void StopRobotTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string StopRobotTaskResult::getMessage()const +{ + return message_; +} + +std::string StopRobotTaskResult::getData()const +{ + return data_; +} + +std::string StopRobotTaskResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/UploadRobotTaskCalledFileRequest.cc b/dyvmsapi/src/model/UploadRobotTaskCalledFileRequest.cc new file mode 100644 index 000000000..894c18ac9 --- /dev/null +++ b/dyvmsapi/src/model/UploadRobotTaskCalledFileRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dyvmsapi::Model::UploadRobotTaskCalledFileRequest; + +UploadRobotTaskCalledFileRequest::UploadRobotTaskCalledFileRequest() : + RpcServiceRequest("dyvmsapi", "2017-05-25", "UploadRobotTaskCalledFile") +{} + +UploadRobotTaskCalledFileRequest::~UploadRobotTaskCalledFileRequest() +{} + +long UploadRobotTaskCalledFileRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UploadRobotTaskCalledFileRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UploadRobotTaskCalledFileRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UploadRobotTaskCalledFileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UploadRobotTaskCalledFileRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void UploadRobotTaskCalledFileRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setCoreParameter("CalledNumber", calledNumber); +} + +std::string UploadRobotTaskCalledFileRequest::getTtsParamHead()const +{ + return ttsParamHead_; +} + +void UploadRobotTaskCalledFileRequest::setTtsParamHead(const std::string& ttsParamHead) +{ + ttsParamHead_ = ttsParamHead; + setCoreParameter("TtsParamHead", ttsParamHead); +} + +std::string UploadRobotTaskCalledFileRequest::getTtsParam()const +{ + return ttsParam_; +} + +void UploadRobotTaskCalledFileRequest::setTtsParam(const std::string& ttsParam) +{ + ttsParam_ = ttsParam; + setCoreParameter("TtsParam", ttsParam); +} + +long UploadRobotTaskCalledFileRequest::getId()const +{ + return id_; +} + +void UploadRobotTaskCalledFileRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +long UploadRobotTaskCalledFileRequest::getOwnerId()const +{ + return ownerId_; +} + +void UploadRobotTaskCalledFileRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UploadRobotTaskCalledFileRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UploadRobotTaskCalledFileRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dyvmsapi/src/model/UploadRobotTaskCalledFileResult.cc b/dyvmsapi/src/model/UploadRobotTaskCalledFileResult.cc new file mode 100644 index 000000000..0d3f07d83 --- /dev/null +++ b/dyvmsapi/src/model/UploadRobotTaskCalledFileResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyvmsapi; +using namespace AlibabaCloud::Dyvmsapi::Model; + +UploadRobotTaskCalledFileResult::UploadRobotTaskCalledFileResult() : + ServiceResult() +{} + +UploadRobotTaskCalledFileResult::UploadRobotTaskCalledFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UploadRobotTaskCalledFileResult::~UploadRobotTaskCalledFileResult() +{} + +void UploadRobotTaskCalledFileResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UploadRobotTaskCalledFileResult::getMessage()const +{ + return message_; +} + +std::string UploadRobotTaskCalledFileResult::getData()const +{ + return data_; +} + +std::string UploadRobotTaskCalledFileResult::getCode()const +{ + return code_; +} + diff --git a/dyvmsapi/src/model/VoipAddAccountRequest.cc b/dyvmsapi/src/model/VoipAddAccountRequest.cc index b463c1030..3608de253 100644 --- a/dyvmsapi/src/model/VoipAddAccountRequest.cc +++ b/dyvmsapi/src/model/VoipAddAccountRequest.cc @@ -33,7 +33,7 @@ long VoipAddAccountRequest::getResourceOwnerId()const void VoipAddAccountRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string VoipAddAccountRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string VoipAddAccountRequest::getResourceOwnerAccount()const void VoipAddAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long VoipAddAccountRequest::getOwnerId()const @@ -55,7 +55,7 @@ long VoipAddAccountRequest::getOwnerId()const void VoipAddAccountRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string VoipAddAccountRequest::getDeviceId()const @@ -66,7 +66,7 @@ std::string VoipAddAccountRequest::getDeviceId()const void VoipAddAccountRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string VoipAddAccountRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string VoipAddAccountRequest::getAccessKeyId()const void VoipAddAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/dyvmsapi/src/model/VoipAddAccountResult.cc b/dyvmsapi/src/model/VoipAddAccountResult.cc index 348dd11a4..9dbea785f 100644 --- a/dyvmsapi/src/model/VoipAddAccountResult.cc +++ b/dyvmsapi/src/model/VoipAddAccountResult.cc @@ -35,10 +35,13 @@ VoipAddAccountResult::~VoipAddAccountResult() void VoipAddAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/dyvmsapi/src/model/VoipGetTokenRequest.cc b/dyvmsapi/src/model/VoipGetTokenRequest.cc index 667fb089a..442103b2c 100644 --- a/dyvmsapi/src/model/VoipGetTokenRequest.cc +++ b/dyvmsapi/src/model/VoipGetTokenRequest.cc @@ -33,7 +33,7 @@ long VoipGetTokenRequest::getResourceOwnerId()const void VoipGetTokenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string VoipGetTokenRequest::getVoipId()const @@ -44,7 +44,7 @@ std::string VoipGetTokenRequest::getVoipId()const void VoipGetTokenRequest::setVoipId(const std::string& voipId) { voipId_ = voipId; - setParameter("VoipId", voipId); + setCoreParameter("VoipId", voipId); } std::string VoipGetTokenRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string VoipGetTokenRequest::getResourceOwnerAccount()const void VoipGetTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long VoipGetTokenRequest::getOwnerId()const @@ -66,7 +66,7 @@ long VoipGetTokenRequest::getOwnerId()const void VoipGetTokenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string VoipGetTokenRequest::getDeviceId()const @@ -77,7 +77,18 @@ std::string VoipGetTokenRequest::getDeviceId()const void VoipGetTokenRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); +} + +bool VoipGetTokenRequest::getIsCustomAccount()const +{ + return isCustomAccount_; +} + +void VoipGetTokenRequest::setIsCustomAccount(bool isCustomAccount) +{ + isCustomAccount_ = isCustomAccount; + setCoreParameter("IsCustomAccount", isCustomAccount ? "true" : "false"); } std::string VoipGetTokenRequest::getAccessKeyId()const @@ -88,6 +99,6 @@ std::string VoipGetTokenRequest::getAccessKeyId()const void VoipGetTokenRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/dyvmsapi/src/model/VoipGetTokenResult.cc b/dyvmsapi/src/model/VoipGetTokenResult.cc index ccdd2c500..2558d69c0 100644 --- a/dyvmsapi/src/model/VoipGetTokenResult.cc +++ b/dyvmsapi/src/model/VoipGetTokenResult.cc @@ -35,10 +35,13 @@ VoipGetTokenResult::~VoipGetTokenResult() void VoipGetTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt index 2dbb1b901..de14633e9 100644 --- a/ecs/CMakeLists.txt +++ b/ecs/CMakeLists.txt @@ -20,10 +20,1102 @@ set(ecs_public_header include/alibabacloud/ecs/EcsClient.h include/alibabacloud/ecs/EcsExport.h ) -set(ecs_public_header_model ) +set(ecs_public_header_model + include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h + include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h + include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h + include/alibabacloud/ecs/model/JoinSecurityGroupResult.h + include/alibabacloud/ecs/model/UntagResourcesRequest.h + include/alibabacloud/ecs/model/UntagResourcesResult.h + include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h + include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h + include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h + include/alibabacloud/ecs/model/DescribeStorageSetsResult.h + include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotsResult.h + include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h + include/alibabacloud/ecs/model/ModifyStorageSetAttributeResult.h + include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h + include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h + include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h + include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h + include/alibabacloud/ecs/model/CreateNatGatewayRequest.h + include/alibabacloud/ecs/model/CreateNatGatewayResult.h + include/alibabacloud/ecs/model/AttachDiskRequest.h + include/alibabacloud/ecs/model/AttachDiskResult.h + include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeEniMonitorDataResult.h + include/alibabacloud/ecs/model/ExportSnapshotRequest.h + include/alibabacloud/ecs/model/ExportSnapshotResult.h + include/alibabacloud/ecs/model/CreateHaVipRequest.h + include/alibabacloud/ecs/model/CreateHaVipResult.h + include/alibabacloud/ecs/model/ReInitDiskRequest.h + include/alibabacloud/ecs/model/ReInitDiskResult.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h + include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingResult.h + include/alibabacloud/ecs/model/AssociateEipAddressRequest.h + include/alibabacloud/ecs/model/AssociateEipAddressResult.h + include/alibabacloud/ecs/model/DeleteInstancesRequest.h + include/alibabacloud/ecs/model/DeleteInstancesResult.h + include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h + include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h + include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h + include/alibabacloud/ecs/model/DescribeEipAddressesResult.h + include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h + include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h + include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h + include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h + include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/StopInstanceRequest.h + include/alibabacloud/ecs/model/StopInstanceResult.h + include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h + include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h + include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h + include/alibabacloud/ecs/model/DescribeInstanceTopologyResult.h + include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h + include/alibabacloud/ecs/model/ModifyDiskSpecResult.h + include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h + include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h + include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h + include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h + include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h + include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h + include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeResult.h + include/alibabacloud/ecs/model/ReActivateInstancesRequest.h + include/alibabacloud/ecs/model/ReActivateInstancesResult.h + include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h + include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h + include/alibabacloud/ecs/model/DescribeInstancesRequest.h + include/alibabacloud/ecs/model/DescribeInstancesResult.h + include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h + include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h + include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h + include/alibabacloud/ecs/model/AllocateDedicatedHostsResult.h + include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h + include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h + include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h + include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h + include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h + include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h + include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h + include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeResult.h + include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h + include/alibabacloud/ecs/model/ModifyReservedInstancesResult.h + include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h + include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h + include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h + include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h + include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h + include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h + include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h + include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h + include/alibabacloud/ecs/model/DeleteSnapshotRequest.h + include/alibabacloud/ecs/model/DeleteSnapshotResult.h + include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h + include/alibabacloud/ecs/model/DeleteKeyPairsResult.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h + include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h + include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h + include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h + include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h + include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h + include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h + include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h + include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h + include/alibabacloud/ecs/model/CreateSimulatedSystemEventsResult.h + include/alibabacloud/ecs/model/RedeployInstanceRequest.h + include/alibabacloud/ecs/model/RedeployInstanceResult.h + include/alibabacloud/ecs/model/CancelTaskRequest.h + include/alibabacloud/ecs/model/CancelTaskResult.h + include/alibabacloud/ecs/model/ModifyCommandRequest.h + include/alibabacloud/ecs/model/ModifyCommandResult.h + include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h + include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h + include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h + include/alibabacloud/ecs/model/DeleteHaVipRequest.h + include/alibabacloud/ecs/model/DeleteHaVipResult.h + include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h + include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h + include/alibabacloud/ecs/model/ResizeDiskRequest.h + include/alibabacloud/ecs/model/ResizeDiskResult.h + include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h + include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeResult.h + include/alibabacloud/ecs/model/ModifyFleetRequest.h + include/alibabacloud/ecs/model/ModifyFleetResult.h + include/alibabacloud/ecs/model/CreateRouteEntryRequest.h + include/alibabacloud/ecs/model/CreateRouteEntryResult.h + include/alibabacloud/ecs/model/AttachKeyPairRequest.h + include/alibabacloud/ecs/model/AttachKeyPairResult.h + include/alibabacloud/ecs/model/DescribeInvocationsRequest.h + include/alibabacloud/ecs/model/DescribeInvocationsResult.h + include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h + include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h + include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h + include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupResult.h + include/alibabacloud/ecs/model/TagResourcesRequest.h + include/alibabacloud/ecs/model/TagResourcesResult.h + include/alibabacloud/ecs/model/RunInstancesRequest.h + include/alibabacloud/ecs/model/RunInstancesResult.h + include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h + include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h + include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h + include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h + include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h + include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryResult.h + include/alibabacloud/ecs/model/StopInvocationRequest.h + include/alibabacloud/ecs/model/StopInvocationResult.h + include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h + include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h + include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h + include/alibabacloud/ecs/model/ModifyInstanceDeploymentResult.h + include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h + include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h + include/alibabacloud/ecs/model/CreateVSwitchRequest.h + include/alibabacloud/ecs/model/CreateVSwitchResult.h + include/alibabacloud/ecs/model/DescribeFleetsRequest.h + include/alibabacloud/ecs/model/DescribeFleetsResult.h + include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h + include/alibabacloud/ecs/model/DescribeBandwidthLimitationResult.h + include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h + include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h + include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h + include/alibabacloud/ecs/model/RenewDedicatedHostsResult.h + include/alibabacloud/ecs/model/RemoveTagsRequest.h + include/alibabacloud/ecs/model/RemoveTagsResult.h + include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h + include/alibabacloud/ecs/model/CancelSimulatedSystemEventsResult.h + include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h + include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h + include/alibabacloud/ecs/model/DeleteNatGatewayResult.h + include/alibabacloud/ecs/model/DescribeZonesRequest.h + include/alibabacloud/ecs/model/DescribeZonesResult.h + include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h + include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h + include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h + include/alibabacloud/ecs/model/DescribeAvailableResourceResult.h + include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h + include/alibabacloud/ecs/model/DescribeAccessPointsResult.h + include/alibabacloud/ecs/model/CreateCommandRequest.h + include/alibabacloud/ecs/model/CreateCommandResult.h + include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h + include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h + include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h + include/alibabacloud/ecs/model/DescribeDedicatedHostsResult.h + include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h + include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h + include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h + include/alibabacloud/ecs/model/ReleaseEipAddressResult.h + include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h + include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h + include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h + include/alibabacloud/ecs/model/DescribeVSwitchesResult.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h + include/alibabacloud/ecs/model/DescribeVpcsRequest.h + include/alibabacloud/ecs/model/DescribeVpcsResult.h + include/alibabacloud/ecs/model/ExportImageRequest.h + include/alibabacloud/ecs/model/ExportImageResult.h + include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h + include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h + include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h + include/alibabacloud/ecs/model/StartInstanceRequest.h + include/alibabacloud/ecs/model/StartInstanceResult.h + include/alibabacloud/ecs/model/CreateDiskRequest.h + include/alibabacloud/ecs/model/CreateDiskResult.h + include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h + include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h + include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h + include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h + include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h + include/alibabacloud/ecs/model/RebootInstanceRequest.h + include/alibabacloud/ecs/model/RebootInstanceResult.h + include/alibabacloud/ecs/model/InvokeCommandRequest.h + include/alibabacloud/ecs/model/InvokeCommandResult.h + include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h + include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h + include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h + include/alibabacloud/ecs/model/DeleteForwardEntryResult.h + include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h + include/alibabacloud/ecs/model/DescribeHpcClustersResult.h + include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h + include/alibabacloud/ecs/model/AcceptInquiredSystemEventResult.h + include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h + include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h + include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h + include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeResult.h + include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h + include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h + include/alibabacloud/ecs/model/DescribePriceRequest.h + include/alibabacloud/ecs/model/DescribePriceResult.h + include/alibabacloud/ecs/model/DescribeLimitationRequest.h + include/alibabacloud/ecs/model/DescribeLimitationResult.h + include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h + include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h + include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h + include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h + include/alibabacloud/ecs/model/ReleaseDedicatedHostResult.h + include/alibabacloud/ecs/model/AddTagsRequest.h + include/alibabacloud/ecs/model/AddTagsResult.h + include/alibabacloud/ecs/model/CreateHpcClusterRequest.h + include/alibabacloud/ecs/model/CreateHpcClusterResult.h + include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h + include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h + include/alibabacloud/ecs/model/DescribeCommandsRequest.h + include/alibabacloud/ecs/model/DescribeCommandsResult.h + include/alibabacloud/ecs/model/DeleteImageRequest.h + include/alibabacloud/ecs/model/DeleteImageResult.h + include/alibabacloud/ecs/model/CreateFleetRequest.h + include/alibabacloud/ecs/model/CreateFleetResult.h + include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h + include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h + include/alibabacloud/ecs/model/DescribeDisksRequest.h + include/alibabacloud/ecs/model/DescribeDisksResult.h + include/alibabacloud/ecs/model/DeleteVpcRequest.h + include/alibabacloud/ecs/model/DeleteVpcResult.h + include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h + include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h + include/alibabacloud/ecs/model/DeleteCommandRequest.h + include/alibabacloud/ecs/model/DeleteCommandResult.h + include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h + include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h + include/alibabacloud/ecs/model/DeleteVSwitchRequest.h + include/alibabacloud/ecs/model/DeleteVSwitchResult.h + include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h + include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h + include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h + include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h + include/alibabacloud/ecs/model/DescribeDemandsRequest.h + include/alibabacloud/ecs/model/DescribeDemandsResult.h + include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h + include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h + include/alibabacloud/ecs/model/DescribeClustersRequest.h + include/alibabacloud/ecs/model/DescribeClustersResult.h + include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h + include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h + include/alibabacloud/ecs/model/DescribeTagsRequest.h + include/alibabacloud/ecs/model/DescribeTagsResult.h + include/alibabacloud/ecs/model/DescribeImagesRequest.h + include/alibabacloud/ecs/model/DescribeImagesResult.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h + include/alibabacloud/ecs/model/ImportImageRequest.h + include/alibabacloud/ecs/model/ImportImageResult.h + include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h + include/alibabacloud/ecs/model/ModifyForwardEntryResult.h + include/alibabacloud/ecs/model/RenewInstanceRequest.h + include/alibabacloud/ecs/model/RenewInstanceResult.h + include/alibabacloud/ecs/model/CopyImageRequest.h + include/alibabacloud/ecs/model/CopyImageResult.h + include/alibabacloud/ecs/model/CreateVpcRequest.h + include/alibabacloud/ecs/model/CreateVpcResult.h + include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h + include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h + include/alibabacloud/ecs/model/UnassociateEipAddressResult.h + include/alibabacloud/ecs/model/CreateStorageSetRequest.h + include/alibabacloud/ecs/model/CreateStorageSetResult.h + include/alibabacloud/ecs/model/CreateSnapshotRequest.h + include/alibabacloud/ecs/model/CreateSnapshotResult.h + include/alibabacloud/ecs/model/DetachKeyPairRequest.h + include/alibabacloud/ecs/model/DetachKeyPairResult.h + include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h + include/alibabacloud/ecs/model/DescribeTasksRequest.h + include/alibabacloud/ecs/model/DescribeTasksResult.h + include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h + include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h + include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h + include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h + include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h + include/alibabacloud/ecs/model/UnassignPrivateIpAddressesResult.h + include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h + include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h + include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h + include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h + include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h + include/alibabacloud/ecs/model/DescribeResourcesModificationResult.h + include/alibabacloud/ecs/model/ImportKeyPairRequest.h + include/alibabacloud/ecs/model/ImportKeyPairResult.h + include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h + include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h + include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h + include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h + include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h + include/alibabacloud/ecs/model/CreateImageRequest.h + include/alibabacloud/ecs/model/CreateImageResult.h + include/alibabacloud/ecs/model/DescribeHaVipsRequest.h + include/alibabacloud/ecs/model/DescribeHaVipsResult.h + include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h + include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h + include/alibabacloud/ecs/model/DetachDiskRequest.h + include/alibabacloud/ecs/model/DetachDiskResult.h + include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h + include/alibabacloud/ecs/model/ModifyImageAttributeResult.h + include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h + include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h + include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h + include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h + include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h + include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h + include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h + include/alibabacloud/ecs/model/DeleteHpcClusterResult.h + include/alibabacloud/ecs/model/ResetDiskRequest.h + include/alibabacloud/ecs/model/ResetDiskResult.h + include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h + include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h + include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h + include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h + include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h + include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupResult.h + include/alibabacloud/ecs/model/DeleteFleetRequest.h + include/alibabacloud/ecs/model/DeleteFleetResult.h + include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h + include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h + include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h + include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h + include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h + include/alibabacloud/ecs/model/CreateSecurityGroupResult.h + include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h + include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h + include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h + include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h + include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h + include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h + include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewResult.h + include/alibabacloud/ecs/model/DeleteInstanceRequest.h + include/alibabacloud/ecs/model/DeleteInstanceResult.h + include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h + include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h + include/alibabacloud/ecs/model/ListTagResourcesRequest.h + include/alibabacloud/ecs/model/ListTagResourcesResult.h + include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h + include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h + include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h + include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h + include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h + include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h + include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h + include/alibabacloud/ecs/model/CreateInstanceRequest.h + include/alibabacloud/ecs/model/CreateInstanceResult.h + include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h + include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h + include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h + include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h + include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h + include/alibabacloud/ecs/model/CreateForwardEntryRequest.h + include/alibabacloud/ecs/model/CreateForwardEntryResult.h + include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h + include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h + include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h + include/alibabacloud/ecs/model/DescribeLaunchTemplatesResult.h + include/alibabacloud/ecs/model/EipNotifyPaidRequest.h + include/alibabacloud/ecs/model/EipNotifyPaidResult.h + include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h + include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h + include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h + include/alibabacloud/ecs/model/ReportInstancesStatusResult.h + include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h + include/alibabacloud/ecs/model/DescribeAccountAttributesResult.h + include/alibabacloud/ecs/model/EipFillParamsRequest.h + include/alibabacloud/ecs/model/EipFillParamsResult.h + include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h + include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h + include/alibabacloud/ecs/model/EipFillProductRequest.h + include/alibabacloud/ecs/model/EipFillProductResult.h + include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h + include/alibabacloud/ecs/model/CreateAutoProvisioningGroupResult.h + include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h + include/alibabacloud/ecs/model/DescribeRouteTablesResult.h + include/alibabacloud/ecs/model/DescribeUserDataRequest.h + include/alibabacloud/ecs/model/DescribeUserDataResult.h + include/alibabacloud/ecs/model/JoinResourceGroupRequest.h + include/alibabacloud/ecs/model/JoinResourceGroupResult.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h + include/alibabacloud/ecs/model/DeleteStorageSetRequest.h + include/alibabacloud/ecs/model/DeleteStorageSetResult.h + include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h + include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h + include/alibabacloud/ecs/model/DescribeKeyPairsResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h + include/alibabacloud/ecs/model/AssociateHaVipRequest.h + include/alibabacloud/ecs/model/AssociateHaVipResult.h + include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h + include/alibabacloud/ecs/model/DescribeStorageSetDetailsResult.h + include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h + include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h + include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h + include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h + include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h + include/alibabacloud/ecs/model/DeleteRouteEntryResult.h + include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h + include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h + include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h + include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h + include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h + include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h + include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h + include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h + include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h + include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h + include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h + include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h + include/alibabacloud/ecs/model/CancelCopyImageRequest.h + include/alibabacloud/ecs/model/CancelCopyImageResult.h + include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h + include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h + include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h + include/alibabacloud/ecs/model/CreateDeploymentSetResult.h + include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h + include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h + include/alibabacloud/ecs/model/DescribeRegionsRequest.h + include/alibabacloud/ecs/model/DescribeRegionsResult.h + include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h + include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h + include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h + include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h + include/alibabacloud/ecs/model/ImportSnapshotRequest.h + include/alibabacloud/ecs/model/ImportSnapshotResult.h + include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h + include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h + include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionResult.h + include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h + include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h + include/alibabacloud/ecs/model/DescribeVRoutersRequest.h + include/alibabacloud/ecs/model/DescribeVRoutersResult.h + include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h + include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h + include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h + include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h + include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h + include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h + include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h + include/alibabacloud/ecs/model/AllocateEipAddressRequest.h + include/alibabacloud/ecs/model/AllocateEipAddressResult.h + include/alibabacloud/ecs/model/DeleteDiskRequest.h + include/alibabacloud/ecs/model/DeleteDiskResult.h + include/alibabacloud/ecs/model/UnassociateHaVipRequest.h + include/alibabacloud/ecs/model/UnassociateHaVipResult.h + include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h + include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h + include/alibabacloud/ecs/model/CreateKeyPairRequest.h + include/alibabacloud/ecs/model/CreateKeyPairResult.h + include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h + include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h + include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h + include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h + include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h + include/alibabacloud/ecs/model/GetInstanceScreenshotResult.h + include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h + include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h + include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h + include/alibabacloud/ecs/model/InstallCloudAssistantResult.h + include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h ) set(ecs_src - src/EcsClient.cc ) + src/EcsClient.cc + src/model/ModifySnapshotAttributeRequest.cc + src/model/ModifySnapshotAttributeResult.cc + src/model/JoinSecurityGroupRequest.cc + src/model/JoinSecurityGroupResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/DescribeDedicatedHostTypesRequest.cc + src/model/DescribeDedicatedHostTypesResult.cc + src/model/DescribeStorageSetsRequest.cc + src/model/DescribeStorageSetsResult.cc + src/model/DescribeSnapshotsRequest.cc + src/model/DescribeSnapshotsResult.cc + src/model/ModifyStorageSetAttributeRequest.cc + src/model/ModifyStorageSetAttributeResult.cc + src/model/ModifyInstanceVncPasswdRequest.cc + src/model/ModifyInstanceVncPasswdResult.cc + src/model/ModifyBandwidthPackageSpecRequest.cc + src/model/ModifyBandwidthPackageSpecResult.cc + src/model/CreateNatGatewayRequest.cc + src/model/CreateNatGatewayResult.cc + src/model/AttachDiskRequest.cc + src/model/AttachDiskResult.cc + src/model/DescribeEniMonitorDataRequest.cc + src/model/DescribeEniMonitorDataResult.cc + src/model/ExportSnapshotRequest.cc + src/model/ExportSnapshotResult.cc + src/model/CreateHaVipRequest.cc + src/model/CreateHaVipResult.cc + src/model/ReInitDiskRequest.cc + src/model/ReInitDiskResult.cc + src/model/ModifyAutoSnapshotPolicyRequest.cc + src/model/ModifyAutoSnapshotPolicyResult.cc + src/model/PurchaseReservedInstancesOfferingRequest.cc + src/model/PurchaseReservedInstancesOfferingResult.cc + src/model/AssociateEipAddressRequest.cc + src/model/AssociateEipAddressResult.cc + src/model/DeleteInstancesRequest.cc + src/model/DeleteInstancesResult.cc + src/model/RevokeSecurityGroupEgressRequest.cc + src/model/RevokeSecurityGroupEgressResult.cc + src/model/DescribeEipAddressesRequest.cc + src/model/DescribeEipAddressesResult.cc + src/model/ActivateRouterInterfaceRequest.cc + src/model/ActivateRouterInterfaceResult.cc + src/model/DescribeSpotPriceHistoryRequest.cc + src/model/DescribeSpotPriceHistoryResult.cc + src/model/TerminateVirtualBorderRouterRequest.cc + src/model/TerminateVirtualBorderRouterResult.cc + src/model/StopInstanceRequest.cc + src/model/StopInstanceResult.cc + src/model/DescribeInstanceHistoryEventsRequest.cc + src/model/DescribeInstanceHistoryEventsResult.cc + src/model/DescribeInstanceTopologyRequest.cc + src/model/DescribeInstanceTopologyResult.cc + src/model/ModifyDiskSpecRequest.cc + src/model/ModifyDiskSpecResult.cc + src/model/DeletePhysicalConnectionRequest.cc + src/model/DeletePhysicalConnectionResult.cc + src/model/RevokeSecurityGroupRequest.cc + src/model/RevokeSecurityGroupResult.cc + src/model/DescribeTaskAttributeRequest.cc + src/model/DescribeTaskAttributeResult.cc + src/model/CreateAutoSnapshotPolicyRequest.cc + src/model/CreateAutoSnapshotPolicyResult.cc + src/model/ModifyReservedInstanceAttributeRequest.cc + src/model/ModifyReservedInstanceAttributeResult.cc + src/model/ReActivateInstancesRequest.cc + src/model/ReActivateInstancesResult.cc + src/model/DescribeForwardTableEntriesRequest.cc + src/model/DescribeForwardTableEntriesResult.cc + src/model/DescribeInstancesRequest.cc + src/model/DescribeInstancesResult.cc + src/model/DescribeSecurityGroupReferencesRequest.cc + src/model/DescribeSecurityGroupReferencesResult.cc + src/model/AllocateDedicatedHostsRequest.cc + src/model/AllocateDedicatedHostsResult.cc + src/model/DeleteRouterInterfaceRequest.cc + src/model/DeleteRouterInterfaceResult.cc + src/model/DetachInstanceRamRoleRequest.cc + src/model/DetachInstanceRamRoleResult.cc + src/model/AllocatePublicIpAddressRequest.cc + src/model/AllocatePublicIpAddressResult.cc + src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc + src/model/ModifyDedicatedHostAutoRenewAttributeResult.cc + src/model/ModifyReservedInstancesRequest.cc + src/model/ModifyReservedInstancesResult.cc + src/model/DescribeEipMonitorDataRequest.cc + src/model/DescribeEipMonitorDataResult.cc + src/model/CancelAutoSnapshotPolicyRequest.cc + src/model/CancelAutoSnapshotPolicyResult.cc + src/model/DescribeDisksFullStatusRequest.cc + src/model/DescribeDisksFullStatusResult.cc + src/model/DeleteNetworkInterfaceRequest.cc + src/model/DeleteNetworkInterfaceResult.cc + src/model/ModifyInstanceSpecRequest.cc + src/model/ModifyInstanceSpecResult.cc + src/model/AssignPrivateIpAddressesRequest.cc + src/model/AssignPrivateIpAddressesResult.cc + src/model/DeleteSnapshotRequest.cc + src/model/DeleteSnapshotResult.cc + src/model/DeleteKeyPairsRequest.cc + src/model/DeleteKeyPairsResult.cc + src/model/AuthorizeSecurityGroupRequest.cc + src/model/AuthorizeSecurityGroupResult.cc + src/model/DescribeSnapshotMonitorDataRequest.cc + src/model/DescribeSnapshotMonitorDataResult.cc + src/model/DeleteSecurityGroupRequest.cc + src/model/DeleteSecurityGroupResult.cc + src/model/ConnectRouterInterfaceRequest.cc + src/model/ConnectRouterInterfaceResult.cc + src/model/GetInstanceConsoleOutputRequest.cc + src/model/GetInstanceConsoleOutputResult.cc + src/model/CreateSimulatedSystemEventsRequest.cc + src/model/CreateSimulatedSystemEventsResult.cc + src/model/RedeployInstanceRequest.cc + src/model/RedeployInstanceResult.cc + src/model/CancelTaskRequest.cc + src/model/CancelTaskResult.cc + src/model/ModifyCommandRequest.cc + src/model/ModifyCommandResult.cc + src/model/ModifyPhysicalConnectionAttributeRequest.cc + src/model/ModifyPhysicalConnectionAttributeResult.cc + src/model/ModifyVSwitchAttributeRequest.cc + src/model/ModifyVSwitchAttributeResult.cc + src/model/ModifyInstanceAttributeRequest.cc + src/model/ModifyInstanceAttributeResult.cc + src/model/DeleteHaVipRequest.cc + src/model/DeleteHaVipResult.cc + src/model/DescribeSecurityGroupsRequest.cc + src/model/DescribeSecurityGroupsResult.cc + src/model/ResizeDiskRequest.cc + src/model/ResizeDiskResult.cc + src/model/ModifyDedicatedHostAttributeRequest.cc + src/model/ModifyDedicatedHostAttributeResult.cc + src/model/ModifyFleetRequest.cc + src/model/ModifyFleetResult.cc + src/model/CreateRouteEntryRequest.cc + src/model/CreateRouteEntryResult.cc + src/model/AttachKeyPairRequest.cc + src/model/AttachKeyPairResult.cc + src/model/DescribeInvocationsRequest.cc + src/model/DescribeInvocationsResult.cc + src/model/CreateRouterInterfaceRequest.cc + src/model/CreateRouterInterfaceResult.cc + src/model/DeleteAutoProvisioningGroupRequest.cc + src/model/DeleteAutoProvisioningGroupResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/RunInstancesRequest.cc + src/model/RunInstancesResult.cc + src/model/ModifyLaunchTemplateDefaultVersionRequest.cc + src/model/ModifyLaunchTemplateDefaultVersionResult.cc + src/model/CreateLaunchTemplateVersionRequest.cc + src/model/CreateLaunchTemplateVersionResult.cc + src/model/DescribeAutoProvisioningGroupHistoryRequest.cc + src/model/DescribeAutoProvisioningGroupHistoryResult.cc + src/model/StopInvocationRequest.cc + src/model/StopInvocationResult.cc + src/model/ModifyInstanceNetworkSpecRequest.cc + src/model/ModifyInstanceNetworkSpecResult.cc + src/model/ModifyInstanceDeploymentRequest.cc + src/model/ModifyInstanceDeploymentResult.cc + src/model/ModifyDiskAttributeRequest.cc + src/model/ModifyDiskAttributeResult.cc + src/model/CreateVSwitchRequest.cc + src/model/CreateVSwitchResult.cc + src/model/DescribeFleetsRequest.cc + src/model/DescribeFleetsResult.cc + src/model/DescribeBandwidthLimitationRequest.cc + src/model/DescribeBandwidthLimitationResult.cc + src/model/ModifyEipAddressAttributeRequest.cc + src/model/ModifyEipAddressAttributeResult.cc + src/model/ModifySecurityGroupAttributeRequest.cc + src/model/ModifySecurityGroupAttributeResult.cc + src/model/RenewDedicatedHostsRequest.cc + src/model/RenewDedicatedHostsResult.cc + src/model/RemoveTagsRequest.cc + src/model/RemoveTagsResult.cc + src/model/CancelSimulatedSystemEventsRequest.cc + src/model/CancelSimulatedSystemEventsResult.cc + src/model/ModifyInstanceAutoReleaseTimeRequest.cc + src/model/ModifyInstanceAutoReleaseTimeResult.cc + src/model/DeleteNatGatewayRequest.cc + src/model/DeleteNatGatewayResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DeactivateRouterInterfaceRequest.cc + src/model/DeactivateRouterInterfaceResult.cc + src/model/DescribeAvailableResourceRequest.cc + src/model/DescribeAvailableResourceResult.cc + src/model/DescribeAccessPointsRequest.cc + src/model/DescribeAccessPointsResult.cc + src/model/CreateCommandRequest.cc + src/model/CreateCommandResult.cc + src/model/DescribeInstancesFullStatusRequest.cc + src/model/DescribeInstancesFullStatusResult.cc + src/model/DescribeDedicatedHostsRequest.cc + src/model/DescribeDedicatedHostsResult.cc + src/model/DescribeFleetInstancesRequest.cc + src/model/DescribeFleetInstancesResult.cc + src/model/ReleaseEipAddressRequest.cc + src/model/ReleaseEipAddressResult.cc + src/model/DetachClassicLinkVpcRequest.cc + src/model/DetachClassicLinkVpcResult.cc + src/model/DescribeVSwitchesRequest.cc + src/model/DescribeVSwitchesResult.cc + src/model/ModifyRouterInterfaceSpecRequest.cc + src/model/ModifyRouterInterfaceSpecResult.cc + src/model/DescribeVpcsRequest.cc + src/model/DescribeVpcsResult.cc + src/model/ExportImageRequest.cc + src/model/ExportImageResult.cc + src/model/DescribeDiskMonitorDataRequest.cc + src/model/DescribeDiskMonitorDataResult.cc + src/model/ModifyDeploymentSetAttributeRequest.cc + src/model/ModifyDeploymentSetAttributeResult.cc + src/model/ModifyRouterInterfaceAttributeRequest.cc + src/model/ModifyRouterInterfaceAttributeResult.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc + src/model/StartInstanceRequest.cc + src/model/StartInstanceResult.cc + src/model/CreateDiskRequest.cc + src/model/CreateDiskResult.cc + src/model/DescribeAutoProvisioningGroupInstancesRequest.cc + src/model/DescribeAutoProvisioningGroupInstancesResult.cc + src/model/DescribeInstanceTypesRequest.cc + src/model/DescribeInstanceTypesResult.cc + src/model/DescribeSnapshotPackageRequest.cc + src/model/DescribeSnapshotPackageResult.cc + src/model/RebootInstanceRequest.cc + src/model/RebootInstanceResult.cc + src/model/InvokeCommandRequest.cc + src/model/InvokeCommandResult.cc + src/model/ModifyUserBusinessBehaviorRequest.cc + src/model/ModifyUserBusinessBehaviorResult.cc + src/model/DeleteForwardEntryRequest.cc + src/model/DeleteForwardEntryResult.cc + src/model/DescribeHpcClustersRequest.cc + src/model/DescribeHpcClustersResult.cc + src/model/AcceptInquiredSystemEventRequest.cc + src/model/AcceptInquiredSystemEventResult.cc + src/model/ModifyInstanceChargeTypeRequest.cc + src/model/ModifyInstanceChargeTypeResult.cc + src/model/ModifyInstanceAutoRenewAttributeRequest.cc + src/model/ModifyInstanceAutoRenewAttributeResult.cc + src/model/DescribeVirtualBorderRoutersRequest.cc + src/model/DescribeVirtualBorderRoutersResult.cc + src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc + src/model/ModifyDedicatedHostAutoReleaseTimeResult.cc + src/model/ModifyHpcClusterAttributeRequest.cc + src/model/ModifyHpcClusterAttributeResult.cc + src/model/DescribePriceRequest.cc + src/model/DescribePriceResult.cc + src/model/DescribeLimitationRequest.cc + src/model/DescribeLimitationResult.cc + src/model/DeleteDeploymentSetRequest.cc + src/model/DeleteDeploymentSetResult.cc + src/model/ModifyInstanceVpcAttributeRequest.cc + src/model/ModifyInstanceVpcAttributeResult.cc + src/model/ReleaseDedicatedHostRequest.cc + src/model/ReleaseDedicatedHostResult.cc + src/model/AddTagsRequest.cc + src/model/AddTagsResult.cc + src/model/CreateHpcClusterRequest.cc + src/model/CreateHpcClusterResult.cc + src/model/DescribeUserBusinessBehaviorRequest.cc + src/model/DescribeUserBusinessBehaviorResult.cc + src/model/DescribeCommandsRequest.cc + src/model/DescribeCommandsResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc + src/model/CreateFleetRequest.cc + src/model/CreateFleetResult.cc + src/model/DescribeNetworkInterfacePermissionsRequest.cc + src/model/DescribeNetworkInterfacePermissionsResult.cc + src/model/DescribeDisksRequest.cc + src/model/DescribeDisksResult.cc + src/model/DeleteVpcRequest.cc + src/model/DeleteVpcResult.cc + src/model/DescribeImageSupportInstanceTypesRequest.cc + src/model/DescribeImageSupportInstanceTypesResult.cc + src/model/DeleteCommandRequest.cc + src/model/DeleteCommandResult.cc + src/model/ReplaceSystemDiskRequest.cc + src/model/ReplaceSystemDiskResult.cc + src/model/DeleteVSwitchRequest.cc + src/model/DeleteVSwitchResult.cc + src/model/ModifyImageShareGroupPermissionRequest.cc + src/model/ModifyImageShareGroupPermissionResult.cc + src/model/DescribeInstanceVncUrlRequest.cc + src/model/DescribeInstanceVncUrlResult.cc + src/model/DescribeDemandsRequest.cc + src/model/DescribeDemandsResult.cc + src/model/RecoverVirtualBorderRouterRequest.cc + src/model/RecoverVirtualBorderRouterResult.cc + src/model/DescribeResourceByTagsRequest.cc + src/model/DescribeResourceByTagsResult.cc + src/model/DescribeClustersRequest.cc + src/model/DescribeClustersResult.cc + src/model/DeleteBandwidthPackageRequest.cc + src/model/DeleteBandwidthPackageResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc + src/model/DescribeImagesRequest.cc + src/model/DescribeImagesResult.cc + src/model/AuthorizeSecurityGroupEgressRequest.cc + src/model/AuthorizeSecurityGroupEgressResult.cc + src/model/ImportImageRequest.cc + src/model/ImportImageResult.cc + src/model/ModifyForwardEntryRequest.cc + src/model/ModifyForwardEntryResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/CopyImageRequest.cc + src/model/CopyImageResult.cc + src/model/CreateVpcRequest.cc + src/model/CreateVpcResult.cc + src/model/DescribeInstanceMonitorDataRequest.cc + src/model/DescribeInstanceMonitorDataResult.cc + src/model/UnassociateEipAddressRequest.cc + src/model/UnassociateEipAddressResult.cc + src/model/CreateStorageSetRequest.cc + src/model/CreateStorageSetResult.cc + src/model/CreateSnapshotRequest.cc + src/model/CreateSnapshotResult.cc + src/model/DetachKeyPairRequest.cc + src/model/DetachKeyPairResult.cc + src/model/ModifyVirtualBorderRouterAttributeRequest.cc + src/model/ModifyVirtualBorderRouterAttributeResult.cc + src/model/DescribeTasksRequest.cc + src/model/DescribeTasksResult.cc + src/model/DescribeRenewalPriceRequest.cc + src/model/DescribeRenewalPriceResult.cc + src/model/LeaveSecurityGroupRequest.cc + src/model/LeaveSecurityGroupResult.cc + src/model/UnassignPrivateIpAddressesRequest.cc + src/model/UnassignPrivateIpAddressesResult.cc + src/model/DescribeInstanceVncPasswdRequest.cc + src/model/DescribeInstanceVncPasswdResult.cc + src/model/DescribeInstanceAutoRenewAttributeRequest.cc + src/model/DescribeInstanceAutoRenewAttributeResult.cc + src/model/ModifySecurityGroupRuleRequest.cc + src/model/ModifySecurityGroupRuleResult.cc + src/model/DescribeResourcesModificationRequest.cc + src/model/DescribeResourcesModificationResult.cc + src/model/ImportKeyPairRequest.cc + src/model/ImportKeyPairResult.cc + src/model/DeleteLaunchTemplateRequest.cc + src/model/DeleteLaunchTemplateResult.cc + src/model/DescribeNewProjectEipMonitorDataRequest.cc + src/model/DescribeNewProjectEipMonitorDataResult.cc + src/model/DescribeInstanceRamRoleRequest.cc + src/model/DescribeInstanceRamRoleResult.cc + src/model/CreateImageRequest.cc + src/model/CreateImageResult.cc + src/model/DescribeHaVipsRequest.cc + src/model/DescribeHaVipsResult.cc + src/model/DescribeInstanceAttributeRequest.cc + src/model/DescribeInstanceAttributeResult.cc + src/model/DetachDiskRequest.cc + src/model/DetachDiskResult.cc + src/model/ModifyImageAttributeRequest.cc + src/model/ModifyImageAttributeResult.cc + src/model/AddBandwidthPackageIpsRequest.cc + src/model/AddBandwidthPackageIpsResult.cc + src/model/DescribeInstanceStatusRequest.cc + src/model/DescribeInstanceStatusResult.cc + src/model/DescribeNatGatewaysRequest.cc + src/model/DescribeNatGatewaysResult.cc + src/model/DeleteHpcClusterRequest.cc + src/model/DeleteHpcClusterResult.cc + src/model/ResetDiskRequest.cc + src/model/ResetDiskResult.cc + src/model/ModifyDiskChargeTypeRequest.cc + src/model/ModifyDiskChargeTypeResult.cc + src/model/DescribeAutoProvisioningGroupsRequest.cc + src/model/DescribeAutoProvisioningGroupsResult.cc + src/model/ModifyAutoProvisioningGroupRequest.cc + src/model/ModifyAutoProvisioningGroupResult.cc + src/model/DeleteFleetRequest.cc + src/model/DeleteFleetResult.cc + src/model/DescribeBandwidthPackagesRequest.cc + src/model/DescribeBandwidthPackagesResult.cc + src/model/DescribeFleetHistoryRequest.cc + src/model/DescribeFleetHistoryResult.cc + src/model/ApplyAutoSnapshotPolicyRequest.cc + src/model/ApplyAutoSnapshotPolicyResult.cc + src/model/CreateSecurityGroupRequest.cc + src/model/CreateSecurityGroupResult.cc + src/model/DescribeSnapshotLinksRequest.cc + src/model/DescribeSnapshotLinksResult.cc + src/model/DescribeInvocationResultsRequest.cc + src/model/DescribeInvocationResultsResult.cc + src/model/DescribeRecommendInstanceTypeRequest.cc + src/model/DescribeRecommendInstanceTypeResult.cc + src/model/DescribeDedicatedHostAutoRenewRequest.cc + src/model/DescribeDedicatedHostAutoRenewResult.cc + src/model/DeleteInstanceRequest.cc + src/model/DeleteInstanceResult.cc + src/model/CreateLaunchTemplateRequest.cc + src/model/CreateLaunchTemplateResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ModifyVpcAttributeRequest.cc + src/model/ModifyVpcAttributeResult.cc + src/model/RemoveBandwidthPackageIpsRequest.cc + src/model/RemoveBandwidthPackageIpsResult.cc + src/model/CreateNetworkInterfacePermissionRequest.cc + src/model/CreateNetworkInterfacePermissionResult.cc + src/model/DescribeSnapshotsUsageRequest.cc + src/model/DescribeSnapshotsUsageResult.cc + src/model/DeleteAutoSnapshotPolicyRequest.cc + src/model/DeleteAutoSnapshotPolicyResult.cc + src/model/ModifySecurityGroupEgressRuleRequest.cc + src/model/ModifySecurityGroupEgressRuleResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/EnablePhysicalConnectionRequest.cc + src/model/EnablePhysicalConnectionResult.cc + src/model/DescribeInstanceTypeFamiliesRequest.cc + src/model/DescribeInstanceTypeFamiliesResult.cc + src/model/DescribeRouterInterfacesRequest.cc + src/model/DescribeRouterInterfacesResult.cc + src/model/CreateForwardEntryRequest.cc + src/model/CreateForwardEntryResult.cc + src/model/DescribeReservedInstancesRequest.cc + src/model/DescribeReservedInstancesResult.cc + src/model/DescribeLaunchTemplatesRequest.cc + src/model/DescribeLaunchTemplatesResult.cc + src/model/EipNotifyPaidRequest.cc + src/model/EipNotifyPaidResult.cc + src/model/ReleasePublicIpAddressRequest.cc + src/model/ReleasePublicIpAddressResult.cc + src/model/ReportInstancesStatusRequest.cc + src/model/ReportInstancesStatusResult.cc + src/model/CreateVirtualBorderRouterRequest.cc + src/model/CreateVirtualBorderRouterResult.cc + src/model/DescribeAccountAttributesRequest.cc + src/model/DescribeAccountAttributesResult.cc + src/model/EipFillParamsRequest.cc + src/model/EipFillParamsResult.cc + src/model/ModifyPrepayInstanceSpecRequest.cc + src/model/ModifyPrepayInstanceSpecResult.cc + src/model/EipFillProductRequest.cc + src/model/EipFillProductResult.cc + src/model/CreateAutoProvisioningGroupRequest.cc + src/model/CreateAutoProvisioningGroupResult.cc + src/model/DescribeRouteTablesRequest.cc + src/model/DescribeRouteTablesResult.cc + src/model/DescribeUserDataRequest.cc + src/model/DescribeUserDataResult.cc + src/model/JoinResourceGroupRequest.cc + src/model/JoinResourceGroupResult.cc + src/model/ModifyAutoSnapshotPolicyExRequest.cc + src/model/ModifyAutoSnapshotPolicyExResult.cc + src/model/DeleteStorageSetRequest.cc + src/model/DeleteStorageSetResult.cc + src/model/CreatePhysicalConnectionRequest.cc + src/model/CreatePhysicalConnectionResult.cc + src/model/DescribeKeyPairsRequest.cc + src/model/DescribeKeyPairsResult.cc + src/model/ModifySecurityGroupPolicyRequest.cc + src/model/ModifySecurityGroupPolicyResult.cc + src/model/AssociateHaVipRequest.cc + src/model/AssociateHaVipResult.cc + src/model/DescribeStorageSetDetailsRequest.cc + src/model/DescribeStorageSetDetailsResult.cc + src/model/ConvertNatPublicIpToEipRequest.cc + src/model/ConvertNatPublicIpToEipResult.cc + src/model/AssignIpv6AddressesRequest.cc + src/model/AssignIpv6AddressesResult.cc + src/model/DeleteVirtualBorderRouterRequest.cc + src/model/DeleteVirtualBorderRouterResult.cc + src/model/DeleteRouteEntryRequest.cc + src/model/DeleteRouteEntryResult.cc + src/model/DescribeCloudAssistantStatusRequest.cc + src/model/DescribeCloudAssistantStatusResult.cc + src/model/UnassignIpv6AddressesRequest.cc + src/model/UnassignIpv6AddressesResult.cc + src/model/DescribeInstancePhysicalAttributeRequest.cc + src/model/DescribeInstancePhysicalAttributeResult.cc + src/model/TerminatePhysicalConnectionRequest.cc + src/model/TerminatePhysicalConnectionResult.cc + src/model/AttachNetworkInterfaceRequest.cc + src/model/AttachNetworkInterfaceResult.cc + src/model/ModifyImageSharePermissionRequest.cc + src/model/ModifyImageSharePermissionResult.cc + src/model/DescribeSecurityGroupAttributeRequest.cc + src/model/DescribeSecurityGroupAttributeResult.cc + src/model/DescribeAutoSnapshotPolicyExRequest.cc + src/model/DescribeAutoSnapshotPolicyExResult.cc + src/model/CancelCopyImageRequest.cc + src/model/CancelCopyImageResult.cc + src/model/DescribeImageSharePermissionRequest.cc + src/model/DescribeImageSharePermissionResult.cc + src/model/CreateDeploymentSetRequest.cc + src/model/CreateDeploymentSetResult.cc + src/model/DeleteLaunchTemplateVersionRequest.cc + src/model/DeleteLaunchTemplateVersionResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeClassicLinkInstancesRequest.cc + src/model/DescribeClassicLinkInstancesResult.cc + src/model/DescribePhysicalConnectionsRequest.cc + src/model/DescribePhysicalConnectionsResult.cc + src/model/ImportSnapshotRequest.cc + src/model/ImportSnapshotResult.cc + src/model/CreateNetworkInterfaceRequest.cc + src/model/CreateNetworkInterfaceResult.cc + src/model/DeleteNetworkInterfacePermissionRequest.cc + src/model/DeleteNetworkInterfacePermissionResult.cc + src/model/CancelPhysicalConnectionRequest.cc + src/model/CancelPhysicalConnectionResult.cc + src/model/DescribeVRoutersRequest.cc + src/model/DescribeVRoutersResult.cc + src/model/DescribeNetworkInterfacesRequest.cc + src/model/DescribeNetworkInterfacesResult.cc + src/model/DescribeLaunchTemplateVersionsRequest.cc + src/model/DescribeLaunchTemplateVersionsResult.cc + src/model/DetachNetworkInterfaceRequest.cc + src/model/DetachNetworkInterfaceResult.cc + src/model/ModifyNetworkInterfaceAttributeRequest.cc + src/model/ModifyNetworkInterfaceAttributeResult.cc + src/model/AllocateEipAddressRequest.cc + src/model/AllocateEipAddressResult.cc + src/model/DeleteDiskRequest.cc + src/model/DeleteDiskResult.cc + src/model/UnassociateHaVipRequest.cc + src/model/UnassociateHaVipResult.cc + src/model/ModifyHaVipAttributeRequest.cc + src/model/ModifyHaVipAttributeResult.cc + src/model/CreateKeyPairRequest.cc + src/model/CreateKeyPairResult.cc + src/model/DescribeDeploymentSetsRequest.cc + src/model/DescribeDeploymentSetsResult.cc + src/model/AttachClassicLinkVpcRequest.cc + src/model/AttachClassicLinkVpcResult.cc + src/model/GetInstanceScreenshotRequest.cc + src/model/GetInstanceScreenshotResult.cc + src/model/AttachInstanceRamRoleRequest.cc + src/model/AttachInstanceRamRoleResult.cc + src/model/InstallCloudAssistantRequest.cc + src/model/InstallCloudAssistantResult.cc + src/model/ModifyVRouterAttributeRequest.cc + src/model/ModifyVRouterAttributeResult.cc ) add_library(ecs ${LIB_TYPE} ${ecs_public_header} diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h index b25cd080f..31df08f2e 100644 --- a/ecs/include/alibabacloud/ecs/EcsClient.h +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -22,38 +22,44 @@ #include #include #include "EcsExport.h" -#include "model/JoinSecurityGroupRequest.h" -#include "model/JoinSecurityGroupResult.h" #include "model/ModifySnapshotAttributeRequest.h" #include "model/ModifySnapshotAttributeResult.h" -#include "model/DescribeDedicatedHostTypesRequest.h" -#include "model/DescribeDedicatedHostTypesResult.h" +#include "model/JoinSecurityGroupRequest.h" +#include "model/JoinSecurityGroupResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" +#include "model/DescribeDedicatedHostTypesRequest.h" +#include "model/DescribeDedicatedHostTypesResult.h" +#include "model/DescribeStorageSetsRequest.h" +#include "model/DescribeStorageSetsResult.h" #include "model/DescribeSnapshotsRequest.h" #include "model/DescribeSnapshotsResult.h" +#include "model/ModifyStorageSetAttributeRequest.h" +#include "model/ModifyStorageSetAttributeResult.h" #include "model/ModifyInstanceVncPasswdRequest.h" #include "model/ModifyInstanceVncPasswdResult.h" #include "model/ModifyBandwidthPackageSpecRequest.h" #include "model/ModifyBandwidthPackageSpecResult.h" -#include "model/AttachDiskRequest.h" -#include "model/AttachDiskResult.h" #include "model/CreateNatGatewayRequest.h" #include "model/CreateNatGatewayResult.h" +#include "model/AttachDiskRequest.h" +#include "model/AttachDiskResult.h" #include "model/DescribeEniMonitorDataRequest.h" #include "model/DescribeEniMonitorDataResult.h" #include "model/ExportSnapshotRequest.h" #include "model/ExportSnapshotResult.h" -#include "model/ReInitDiskRequest.h" -#include "model/ReInitDiskResult.h" #include "model/CreateHaVipRequest.h" #include "model/CreateHaVipResult.h" +#include "model/ReInitDiskRequest.h" +#include "model/ReInitDiskResult.h" #include "model/ModifyAutoSnapshotPolicyRequest.h" #include "model/ModifyAutoSnapshotPolicyResult.h" #include "model/PurchaseReservedInstancesOfferingRequest.h" #include "model/PurchaseReservedInstancesOfferingResult.h" #include "model/AssociateEipAddressRequest.h" #include "model/AssociateEipAddressResult.h" +#include "model/DeleteInstancesRequest.h" +#include "model/DeleteInstancesResult.h" #include "model/RevokeSecurityGroupEgressRequest.h" #include "model/RevokeSecurityGroupEgressResult.h" #include "model/DescribeEipAddressesRequest.h" @@ -70,6 +76,8 @@ #include "model/DescribeInstanceHistoryEventsResult.h" #include "model/DescribeInstanceTopologyRequest.h" #include "model/DescribeInstanceTopologyResult.h" +#include "model/ModifyDiskSpecRequest.h" +#include "model/ModifyDiskSpecResult.h" #include "model/DeletePhysicalConnectionRequest.h" #include "model/DeletePhysicalConnectionResult.h" #include "model/RevokeSecurityGroupRequest.h" @@ -98,14 +106,14 @@ #include "model/AllocatePublicIpAddressResult.h" #include "model/ModifyDedicatedHostAutoRenewAttributeRequest.h" #include "model/ModifyDedicatedHostAutoRenewAttributeResult.h" -#include "model/DescribeEipMonitorDataRequest.h" -#include "model/DescribeEipMonitorDataResult.h" #include "model/ModifyReservedInstancesRequest.h" #include "model/ModifyReservedInstancesResult.h" -#include "model/DescribeDisksFullStatusRequest.h" -#include "model/DescribeDisksFullStatusResult.h" +#include "model/DescribeEipMonitorDataRequest.h" +#include "model/DescribeEipMonitorDataResult.h" #include "model/CancelAutoSnapshotPolicyRequest.h" #include "model/CancelAutoSnapshotPolicyResult.h" +#include "model/DescribeDisksFullStatusRequest.h" +#include "model/DescribeDisksFullStatusResult.h" #include "model/DeleteNetworkInterfaceRequest.h" #include "model/DeleteNetworkInterfaceResult.h" #include "model/ModifyInstanceSpecRequest.h" @@ -118,20 +126,20 @@ #include "model/DeleteKeyPairsResult.h" #include "model/AuthorizeSecurityGroupRequest.h" #include "model/AuthorizeSecurityGroupResult.h" -#include "model/DeleteSecurityGroupRequest.h" -#include "model/DeleteSecurityGroupResult.h" #include "model/DescribeSnapshotMonitorDataRequest.h" #include "model/DescribeSnapshotMonitorDataResult.h" +#include "model/DeleteSecurityGroupRequest.h" +#include "model/DeleteSecurityGroupResult.h" #include "model/ConnectRouterInterfaceRequest.h" #include "model/ConnectRouterInterfaceResult.h" #include "model/GetInstanceConsoleOutputRequest.h" #include "model/GetInstanceConsoleOutputResult.h" #include "model/CreateSimulatedSystemEventsRequest.h" #include "model/CreateSimulatedSystemEventsResult.h" -#include "model/CancelTaskRequest.h" -#include "model/CancelTaskResult.h" #include "model/RedeployInstanceRequest.h" #include "model/RedeployInstanceResult.h" +#include "model/CancelTaskRequest.h" +#include "model/CancelTaskResult.h" #include "model/ModifyCommandRequest.h" #include "model/ModifyCommandResult.h" #include "model/ModifyPhysicalConnectionAttributeRequest.h" @@ -148,16 +156,18 @@ #include "model/ResizeDiskResult.h" #include "model/ModifyDedicatedHostAttributeRequest.h" #include "model/ModifyDedicatedHostAttributeResult.h" -#include "model/CreateRouteEntryRequest.h" -#include "model/CreateRouteEntryResult.h" #include "model/ModifyFleetRequest.h" #include "model/ModifyFleetResult.h" +#include "model/CreateRouteEntryRequest.h" +#include "model/CreateRouteEntryResult.h" #include "model/AttachKeyPairRequest.h" #include "model/AttachKeyPairResult.h" #include "model/DescribeInvocationsRequest.h" #include "model/DescribeInvocationsResult.h" #include "model/CreateRouterInterfaceRequest.h" #include "model/CreateRouterInterfaceResult.h" +#include "model/DeleteAutoProvisioningGroupRequest.h" +#include "model/DeleteAutoProvisioningGroupResult.h" #include "model/TagResourcesRequest.h" #include "model/TagResourcesResult.h" #include "model/RunInstancesRequest.h" @@ -166,6 +176,8 @@ #include "model/ModifyLaunchTemplateDefaultVersionResult.h" #include "model/CreateLaunchTemplateVersionRequest.h" #include "model/CreateLaunchTemplateVersionResult.h" +#include "model/DescribeAutoProvisioningGroupHistoryRequest.h" +#include "model/DescribeAutoProvisioningGroupHistoryResult.h" #include "model/StopInvocationRequest.h" #include "model/StopInvocationResult.h" #include "model/ModifyInstanceNetworkSpecRequest.h" @@ -184,10 +196,10 @@ #include "model/ModifyEipAddressAttributeResult.h" #include "model/ModifySecurityGroupAttributeRequest.h" #include "model/ModifySecurityGroupAttributeResult.h" -#include "model/RemoveTagsRequest.h" -#include "model/RemoveTagsResult.h" #include "model/RenewDedicatedHostsRequest.h" #include "model/RenewDedicatedHostsResult.h" +#include "model/RemoveTagsRequest.h" +#include "model/RemoveTagsResult.h" #include "model/CancelSimulatedSystemEventsRequest.h" #include "model/CancelSimulatedSystemEventsResult.h" #include "model/ModifyInstanceAutoReleaseTimeRequest.h" @@ -234,6 +246,8 @@ #include "model/StartInstanceResult.h" #include "model/CreateDiskRequest.h" #include "model/CreateDiskResult.h" +#include "model/DescribeAutoProvisioningGroupInstancesRequest.h" +#include "model/DescribeAutoProvisioningGroupInstancesResult.h" #include "model/DescribeInstanceTypesRequest.h" #include "model/DescribeInstanceTypesResult.h" #include "model/DescribeSnapshotPackageRequest.h" @@ -288,10 +302,10 @@ #include "model/DescribeDisksResult.h" #include "model/DeleteVpcRequest.h" #include "model/DeleteVpcResult.h" -#include "model/DeleteCommandRequest.h" -#include "model/DeleteCommandResult.h" #include "model/DescribeImageSupportInstanceTypesRequest.h" #include "model/DescribeImageSupportInstanceTypesResult.h" +#include "model/DeleteCommandRequest.h" +#include "model/DeleteCommandResult.h" #include "model/ReplaceSystemDiskRequest.h" #include "model/ReplaceSystemDiskResult.h" #include "model/DeleteVSwitchRequest.h" @@ -308,10 +322,10 @@ #include "model/DescribeResourceByTagsResult.h" #include "model/DescribeClustersRequest.h" #include "model/DescribeClustersResult.h" -#include "model/DescribeTagsRequest.h" -#include "model/DescribeTagsResult.h" #include "model/DeleteBandwidthPackageRequest.h" #include "model/DeleteBandwidthPackageResult.h" +#include "model/DescribeTagsRequest.h" +#include "model/DescribeTagsResult.h" #include "model/DescribeImagesRequest.h" #include "model/DescribeImagesResult.h" #include "model/AuthorizeSecurityGroupEgressRequest.h" @@ -330,12 +344,14 @@ #include "model/DescribeInstanceMonitorDataResult.h" #include "model/UnassociateEipAddressRequest.h" #include "model/UnassociateEipAddressResult.h" +#include "model/CreateStorageSetRequest.h" +#include "model/CreateStorageSetResult.h" #include "model/CreateSnapshotRequest.h" #include "model/CreateSnapshotResult.h" -#include "model/ModifyVirtualBorderRouterAttributeRequest.h" -#include "model/ModifyVirtualBorderRouterAttributeResult.h" #include "model/DetachKeyPairRequest.h" #include "model/DetachKeyPairResult.h" +#include "model/ModifyVirtualBorderRouterAttributeRequest.h" +#include "model/ModifyVirtualBorderRouterAttributeResult.h" #include "model/DescribeTasksRequest.h" #include "model/DescribeTasksResult.h" #include "model/DescribeRenewalPriceRequest.h" @@ -354,10 +370,10 @@ #include "model/DescribeResourcesModificationResult.h" #include "model/ImportKeyPairRequest.h" #include "model/ImportKeyPairResult.h" -#include "model/DescribeNewProjectEipMonitorDataRequest.h" -#include "model/DescribeNewProjectEipMonitorDataResult.h" #include "model/DeleteLaunchTemplateRequest.h" #include "model/DeleteLaunchTemplateResult.h" +#include "model/DescribeNewProjectEipMonitorDataRequest.h" +#include "model/DescribeNewProjectEipMonitorDataResult.h" #include "model/DescribeInstanceRamRoleRequest.h" #include "model/DescribeInstanceRamRoleResult.h" #include "model/CreateImageRequest.h" @@ -370,10 +386,10 @@ #include "model/DetachDiskResult.h" #include "model/ModifyImageAttributeRequest.h" #include "model/ModifyImageAttributeResult.h" -#include "model/DescribeInstanceStatusRequest.h" -#include "model/DescribeInstanceStatusResult.h" #include "model/AddBandwidthPackageIpsRequest.h" #include "model/AddBandwidthPackageIpsResult.h" +#include "model/DescribeInstanceStatusRequest.h" +#include "model/DescribeInstanceStatusResult.h" #include "model/DescribeNatGatewaysRequest.h" #include "model/DescribeNatGatewaysResult.h" #include "model/DeleteHpcClusterRequest.h" @@ -382,6 +398,10 @@ #include "model/ResetDiskResult.h" #include "model/ModifyDiskChargeTypeRequest.h" #include "model/ModifyDiskChargeTypeResult.h" +#include "model/DescribeAutoProvisioningGroupsRequest.h" +#include "model/DescribeAutoProvisioningGroupsResult.h" +#include "model/ModifyAutoProvisioningGroupRequest.h" +#include "model/ModifyAutoProvisioningGroupResult.h" #include "model/DeleteFleetRequest.h" #include "model/DeleteFleetResult.h" #include "model/DescribeBandwidthPackagesRequest.h" @@ -414,20 +434,20 @@ #include "model/CreateNetworkInterfacePermissionResult.h" #include "model/DescribeSnapshotsUsageRequest.h" #include "model/DescribeSnapshotsUsageResult.h" -#include "model/CreateInstanceRequest.h" -#include "model/CreateInstanceResult.h" -#include "model/ModifySecurityGroupEgressRuleRequest.h" -#include "model/ModifySecurityGroupEgressRuleResult.h" #include "model/DeleteAutoSnapshotPolicyRequest.h" #include "model/DeleteAutoSnapshotPolicyResult.h" +#include "model/ModifySecurityGroupEgressRuleRequest.h" +#include "model/ModifySecurityGroupEgressRuleResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" #include "model/EnablePhysicalConnectionRequest.h" #include "model/EnablePhysicalConnectionResult.h" #include "model/DescribeInstanceTypeFamiliesRequest.h" #include "model/DescribeInstanceTypeFamiliesResult.h" -#include "model/CreateForwardEntryRequest.h" -#include "model/CreateForwardEntryResult.h" #include "model/DescribeRouterInterfacesRequest.h" #include "model/DescribeRouterInterfacesResult.h" +#include "model/CreateForwardEntryRequest.h" +#include "model/CreateForwardEntryResult.h" #include "model/DescribeReservedInstancesRequest.h" #include "model/DescribeReservedInstancesResult.h" #include "model/DescribeLaunchTemplatesRequest.h" @@ -448,14 +468,18 @@ #include "model/ModifyPrepayInstanceSpecResult.h" #include "model/EipFillProductRequest.h" #include "model/EipFillProductResult.h" +#include "model/CreateAutoProvisioningGroupRequest.h" +#include "model/CreateAutoProvisioningGroupResult.h" #include "model/DescribeRouteTablesRequest.h" #include "model/DescribeRouteTablesResult.h" -#include "model/ModifyAutoSnapshotPolicyExRequest.h" -#include "model/ModifyAutoSnapshotPolicyExResult.h" -#include "model/JoinResourceGroupRequest.h" -#include "model/JoinResourceGroupResult.h" #include "model/DescribeUserDataRequest.h" #include "model/DescribeUserDataResult.h" +#include "model/JoinResourceGroupRequest.h" +#include "model/JoinResourceGroupResult.h" +#include "model/ModifyAutoSnapshotPolicyExRequest.h" +#include "model/ModifyAutoSnapshotPolicyExResult.h" +#include "model/DeleteStorageSetRequest.h" +#include "model/DeleteStorageSetResult.h" #include "model/CreatePhysicalConnectionRequest.h" #include "model/CreatePhysicalConnectionResult.h" #include "model/DescribeKeyPairsRequest.h" @@ -464,16 +488,18 @@ #include "model/ModifySecurityGroupPolicyResult.h" #include "model/AssociateHaVipRequest.h" #include "model/AssociateHaVipResult.h" +#include "model/DescribeStorageSetDetailsRequest.h" +#include "model/DescribeStorageSetDetailsResult.h" #include "model/ConvertNatPublicIpToEipRequest.h" #include "model/ConvertNatPublicIpToEipResult.h" #include "model/AssignIpv6AddressesRequest.h" #include "model/AssignIpv6AddressesResult.h" -#include "model/DescribeCloudAssistantStatusRequest.h" -#include "model/DescribeCloudAssistantStatusResult.h" -#include "model/DeleteRouteEntryRequest.h" -#include "model/DeleteRouteEntryResult.h" #include "model/DeleteVirtualBorderRouterRequest.h" #include "model/DeleteVirtualBorderRouterResult.h" +#include "model/DeleteRouteEntryRequest.h" +#include "model/DeleteRouteEntryResult.h" +#include "model/DescribeCloudAssistantStatusRequest.h" +#include "model/DescribeCloudAssistantStatusResult.h" #include "model/UnassignIpv6AddressesRequest.h" #include "model/UnassignIpv6AddressesResult.h" #include "model/DescribeInstancePhysicalAttributeRequest.h" @@ -482,10 +508,10 @@ #include "model/TerminatePhysicalConnectionResult.h" #include "model/AttachNetworkInterfaceRequest.h" #include "model/AttachNetworkInterfaceResult.h" -#include "model/DescribeSecurityGroupAttributeRequest.h" -#include "model/DescribeSecurityGroupAttributeResult.h" #include "model/ModifyImageSharePermissionRequest.h" #include "model/ModifyImageSharePermissionResult.h" +#include "model/DescribeSecurityGroupAttributeRequest.h" +#include "model/DescribeSecurityGroupAttributeResult.h" #include "model/DescribeAutoSnapshotPolicyExRequest.h" #include "model/DescribeAutoSnapshotPolicyExResult.h" #include "model/CancelCopyImageRequest.h" @@ -520,10 +546,10 @@ #include "model/DetachNetworkInterfaceResult.h" #include "model/ModifyNetworkInterfaceAttributeRequest.h" #include "model/ModifyNetworkInterfaceAttributeResult.h" -#include "model/DeleteDiskRequest.h" -#include "model/DeleteDiskResult.h" #include "model/AllocateEipAddressRequest.h" #include "model/AllocateEipAddressResult.h" +#include "model/DeleteDiskRequest.h" +#include "model/DeleteDiskResult.h" #include "model/UnassociateHaVipRequest.h" #include "model/UnassociateHaVipResult.h" #include "model/ModifyHaVipAttributeRequest.h" @@ -551,45 +577,51 @@ namespace AlibabaCloud class ALIBABACLOUD_ECS_EXPORT EcsClient : public RpcServiceClient { public: - typedef Outcome JoinSecurityGroupOutcome; - typedef std::future JoinSecurityGroupOutcomeCallable; - typedef std::function&)> JoinSecurityGroupAsyncHandler; typedef Outcome ModifySnapshotAttributeOutcome; typedef std::future ModifySnapshotAttributeOutcomeCallable; typedef std::function&)> ModifySnapshotAttributeAsyncHandler; - typedef Outcome DescribeDedicatedHostTypesOutcome; - typedef std::future DescribeDedicatedHostTypesOutcomeCallable; - typedef std::function&)> DescribeDedicatedHostTypesAsyncHandler; + typedef Outcome JoinSecurityGroupOutcome; + typedef std::future JoinSecurityGroupOutcomeCallable; + typedef std::function&)> JoinSecurityGroupAsyncHandler; typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome DescribeDedicatedHostTypesOutcome; + typedef std::future DescribeDedicatedHostTypesOutcomeCallable; + typedef std::function&)> DescribeDedicatedHostTypesAsyncHandler; + typedef Outcome DescribeStorageSetsOutcome; + typedef std::future DescribeStorageSetsOutcomeCallable; + typedef std::function&)> DescribeStorageSetsAsyncHandler; typedef Outcome DescribeSnapshotsOutcome; typedef std::future DescribeSnapshotsOutcomeCallable; typedef std::function&)> DescribeSnapshotsAsyncHandler; + typedef Outcome ModifyStorageSetAttributeOutcome; + typedef std::future ModifyStorageSetAttributeOutcomeCallable; + typedef std::function&)> ModifyStorageSetAttributeAsyncHandler; typedef Outcome ModifyInstanceVncPasswdOutcome; typedef std::future ModifyInstanceVncPasswdOutcomeCallable; typedef std::function&)> ModifyInstanceVncPasswdAsyncHandler; typedef Outcome ModifyBandwidthPackageSpecOutcome; typedef std::future ModifyBandwidthPackageSpecOutcomeCallable; typedef std::function&)> ModifyBandwidthPackageSpecAsyncHandler; - typedef Outcome AttachDiskOutcome; - typedef std::future AttachDiskOutcomeCallable; - typedef std::function&)> AttachDiskAsyncHandler; typedef Outcome CreateNatGatewayOutcome; typedef std::future CreateNatGatewayOutcomeCallable; typedef std::function&)> CreateNatGatewayAsyncHandler; + typedef Outcome AttachDiskOutcome; + typedef std::future AttachDiskOutcomeCallable; + typedef std::function&)> AttachDiskAsyncHandler; typedef Outcome DescribeEniMonitorDataOutcome; typedef std::future DescribeEniMonitorDataOutcomeCallable; typedef std::function&)> DescribeEniMonitorDataAsyncHandler; typedef Outcome ExportSnapshotOutcome; typedef std::future ExportSnapshotOutcomeCallable; typedef std::function&)> ExportSnapshotAsyncHandler; - typedef Outcome ReInitDiskOutcome; - typedef std::future ReInitDiskOutcomeCallable; - typedef std::function&)> ReInitDiskAsyncHandler; typedef Outcome CreateHaVipOutcome; typedef std::future CreateHaVipOutcomeCallable; typedef std::function&)> CreateHaVipAsyncHandler; + typedef Outcome ReInitDiskOutcome; + typedef std::future ReInitDiskOutcomeCallable; + typedef std::function&)> ReInitDiskAsyncHandler; typedef Outcome ModifyAutoSnapshotPolicyOutcome; typedef std::future ModifyAutoSnapshotPolicyOutcomeCallable; typedef std::function&)> ModifyAutoSnapshotPolicyAsyncHandler; @@ -599,6 +631,9 @@ namespace AlibabaCloud typedef Outcome AssociateEipAddressOutcome; typedef std::future AssociateEipAddressOutcomeCallable; typedef std::function&)> AssociateEipAddressAsyncHandler; + typedef Outcome DeleteInstancesOutcome; + typedef std::future DeleteInstancesOutcomeCallable; + typedef std::function&)> DeleteInstancesAsyncHandler; typedef Outcome RevokeSecurityGroupEgressOutcome; typedef std::future RevokeSecurityGroupEgressOutcomeCallable; typedef std::function&)> RevokeSecurityGroupEgressAsyncHandler; @@ -623,6 +658,9 @@ namespace AlibabaCloud typedef Outcome DescribeInstanceTopologyOutcome; typedef std::future DescribeInstanceTopologyOutcomeCallable; typedef std::function&)> DescribeInstanceTopologyAsyncHandler; + typedef Outcome ModifyDiskSpecOutcome; + typedef std::future ModifyDiskSpecOutcomeCallable; + typedef std::function&)> ModifyDiskSpecAsyncHandler; typedef Outcome DeletePhysicalConnectionOutcome; typedef std::future DeletePhysicalConnectionOutcomeCallable; typedef std::function&)> DeletePhysicalConnectionAsyncHandler; @@ -665,18 +703,18 @@ namespace AlibabaCloud typedef Outcome ModifyDedicatedHostAutoRenewAttributeOutcome; typedef std::future ModifyDedicatedHostAutoRenewAttributeOutcomeCallable; typedef std::function&)> ModifyDedicatedHostAutoRenewAttributeAsyncHandler; - typedef Outcome DescribeEipMonitorDataOutcome; - typedef std::future DescribeEipMonitorDataOutcomeCallable; - typedef std::function&)> DescribeEipMonitorDataAsyncHandler; typedef Outcome ModifyReservedInstancesOutcome; typedef std::future ModifyReservedInstancesOutcomeCallable; typedef std::function&)> ModifyReservedInstancesAsyncHandler; - typedef Outcome DescribeDisksFullStatusOutcome; - typedef std::future DescribeDisksFullStatusOutcomeCallable; - typedef std::function&)> DescribeDisksFullStatusAsyncHandler; + typedef Outcome DescribeEipMonitorDataOutcome; + typedef std::future DescribeEipMonitorDataOutcomeCallable; + typedef std::function&)> DescribeEipMonitorDataAsyncHandler; typedef Outcome CancelAutoSnapshotPolicyOutcome; typedef std::future CancelAutoSnapshotPolicyOutcomeCallable; typedef std::function&)> CancelAutoSnapshotPolicyAsyncHandler; + typedef Outcome DescribeDisksFullStatusOutcome; + typedef std::future DescribeDisksFullStatusOutcomeCallable; + typedef std::function&)> DescribeDisksFullStatusAsyncHandler; typedef Outcome DeleteNetworkInterfaceOutcome; typedef std::future DeleteNetworkInterfaceOutcomeCallable; typedef std::function&)> DeleteNetworkInterfaceAsyncHandler; @@ -695,12 +733,12 @@ namespace AlibabaCloud typedef Outcome AuthorizeSecurityGroupOutcome; typedef std::future AuthorizeSecurityGroupOutcomeCallable; typedef std::function&)> AuthorizeSecurityGroupAsyncHandler; - typedef Outcome DeleteSecurityGroupOutcome; - typedef std::future DeleteSecurityGroupOutcomeCallable; - typedef std::function&)> DeleteSecurityGroupAsyncHandler; typedef Outcome DescribeSnapshotMonitorDataOutcome; typedef std::future DescribeSnapshotMonitorDataOutcomeCallable; typedef std::function&)> DescribeSnapshotMonitorDataAsyncHandler; + typedef Outcome DeleteSecurityGroupOutcome; + typedef std::future DeleteSecurityGroupOutcomeCallable; + typedef std::function&)> DeleteSecurityGroupAsyncHandler; typedef Outcome ConnectRouterInterfaceOutcome; typedef std::future ConnectRouterInterfaceOutcomeCallable; typedef std::function&)> ConnectRouterInterfaceAsyncHandler; @@ -710,12 +748,12 @@ namespace AlibabaCloud typedef Outcome CreateSimulatedSystemEventsOutcome; typedef std::future CreateSimulatedSystemEventsOutcomeCallable; typedef std::function&)> CreateSimulatedSystemEventsAsyncHandler; - typedef Outcome CancelTaskOutcome; - typedef std::future CancelTaskOutcomeCallable; - typedef std::function&)> CancelTaskAsyncHandler; typedef Outcome RedeployInstanceOutcome; typedef std::future RedeployInstanceOutcomeCallable; typedef std::function&)> RedeployInstanceAsyncHandler; + typedef Outcome CancelTaskOutcome; + typedef std::future CancelTaskOutcomeCallable; + typedef std::function&)> CancelTaskAsyncHandler; typedef Outcome ModifyCommandOutcome; typedef std::future ModifyCommandOutcomeCallable; typedef std::function&)> ModifyCommandAsyncHandler; @@ -740,12 +778,12 @@ namespace AlibabaCloud typedef Outcome ModifyDedicatedHostAttributeOutcome; typedef std::future ModifyDedicatedHostAttributeOutcomeCallable; typedef std::function&)> ModifyDedicatedHostAttributeAsyncHandler; - typedef Outcome CreateRouteEntryOutcome; - typedef std::future CreateRouteEntryOutcomeCallable; - typedef std::function&)> CreateRouteEntryAsyncHandler; typedef Outcome ModifyFleetOutcome; typedef std::future ModifyFleetOutcomeCallable; typedef std::function&)> ModifyFleetAsyncHandler; + typedef Outcome CreateRouteEntryOutcome; + typedef std::future CreateRouteEntryOutcomeCallable; + typedef std::function&)> CreateRouteEntryAsyncHandler; typedef Outcome AttachKeyPairOutcome; typedef std::future AttachKeyPairOutcomeCallable; typedef std::function&)> AttachKeyPairAsyncHandler; @@ -755,6 +793,9 @@ namespace AlibabaCloud typedef Outcome CreateRouterInterfaceOutcome; typedef std::future CreateRouterInterfaceOutcomeCallable; typedef std::function&)> CreateRouterInterfaceAsyncHandler; + typedef Outcome DeleteAutoProvisioningGroupOutcome; + typedef std::future DeleteAutoProvisioningGroupOutcomeCallable; + typedef std::function&)> DeleteAutoProvisioningGroupAsyncHandler; typedef Outcome TagResourcesOutcome; typedef std::future TagResourcesOutcomeCallable; typedef std::function&)> TagResourcesAsyncHandler; @@ -767,6 +808,9 @@ namespace AlibabaCloud typedef Outcome CreateLaunchTemplateVersionOutcome; typedef std::future CreateLaunchTemplateVersionOutcomeCallable; typedef std::function&)> CreateLaunchTemplateVersionAsyncHandler; + typedef Outcome DescribeAutoProvisioningGroupHistoryOutcome; + typedef std::future DescribeAutoProvisioningGroupHistoryOutcomeCallable; + typedef std::function&)> DescribeAutoProvisioningGroupHistoryAsyncHandler; typedef Outcome StopInvocationOutcome; typedef std::future StopInvocationOutcomeCallable; typedef std::function&)> StopInvocationAsyncHandler; @@ -794,12 +838,12 @@ namespace AlibabaCloud typedef Outcome ModifySecurityGroupAttributeOutcome; typedef std::future ModifySecurityGroupAttributeOutcomeCallable; typedef std::function&)> ModifySecurityGroupAttributeAsyncHandler; - typedef Outcome RemoveTagsOutcome; - typedef std::future RemoveTagsOutcomeCallable; - typedef std::function&)> RemoveTagsAsyncHandler; typedef Outcome RenewDedicatedHostsOutcome; typedef std::future RenewDedicatedHostsOutcomeCallable; typedef std::function&)> RenewDedicatedHostsAsyncHandler; + typedef Outcome RemoveTagsOutcome; + typedef std::future RemoveTagsOutcomeCallable; + typedef std::function&)> RemoveTagsAsyncHandler; typedef Outcome CancelSimulatedSystemEventsOutcome; typedef std::future CancelSimulatedSystemEventsOutcomeCallable; typedef std::function&)> CancelSimulatedSystemEventsAsyncHandler; @@ -869,6 +913,9 @@ namespace AlibabaCloud typedef Outcome CreateDiskOutcome; typedef std::future CreateDiskOutcomeCallable; typedef std::function&)> CreateDiskAsyncHandler; + typedef Outcome DescribeAutoProvisioningGroupInstancesOutcome; + typedef std::future DescribeAutoProvisioningGroupInstancesOutcomeCallable; + typedef std::function&)> DescribeAutoProvisioningGroupInstancesAsyncHandler; typedef Outcome DescribeInstanceTypesOutcome; typedef std::future DescribeInstanceTypesOutcomeCallable; typedef std::function&)> DescribeInstanceTypesAsyncHandler; @@ -950,12 +997,12 @@ namespace AlibabaCloud typedef Outcome DeleteVpcOutcome; typedef std::future DeleteVpcOutcomeCallable; typedef std::function&)> DeleteVpcAsyncHandler; - typedef Outcome DeleteCommandOutcome; - typedef std::future DeleteCommandOutcomeCallable; - typedef std::function&)> DeleteCommandAsyncHandler; typedef Outcome DescribeImageSupportInstanceTypesOutcome; typedef std::future DescribeImageSupportInstanceTypesOutcomeCallable; typedef std::function&)> DescribeImageSupportInstanceTypesAsyncHandler; + typedef Outcome DeleteCommandOutcome; + typedef std::future DeleteCommandOutcomeCallable; + typedef std::function&)> DeleteCommandAsyncHandler; typedef Outcome ReplaceSystemDiskOutcome; typedef std::future ReplaceSystemDiskOutcomeCallable; typedef std::function&)> ReplaceSystemDiskAsyncHandler; @@ -980,12 +1027,12 @@ namespace AlibabaCloud typedef Outcome DescribeClustersOutcome; typedef std::future DescribeClustersOutcomeCallable; typedef std::function&)> DescribeClustersAsyncHandler; - typedef Outcome DescribeTagsOutcome; - typedef std::future DescribeTagsOutcomeCallable; - typedef std::function&)> DescribeTagsAsyncHandler; typedef Outcome DeleteBandwidthPackageOutcome; typedef std::future DeleteBandwidthPackageOutcomeCallable; typedef std::function&)> DeleteBandwidthPackageAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; typedef Outcome DescribeImagesOutcome; typedef std::future DescribeImagesOutcomeCallable; typedef std::function&)> DescribeImagesAsyncHandler; @@ -1013,15 +1060,18 @@ namespace AlibabaCloud typedef Outcome UnassociateEipAddressOutcome; typedef std::future UnassociateEipAddressOutcomeCallable; typedef std::function&)> UnassociateEipAddressAsyncHandler; + typedef Outcome CreateStorageSetOutcome; + typedef std::future CreateStorageSetOutcomeCallable; + typedef std::function&)> CreateStorageSetAsyncHandler; typedef Outcome CreateSnapshotOutcome; typedef std::future CreateSnapshotOutcomeCallable; typedef std::function&)> CreateSnapshotAsyncHandler; - typedef Outcome ModifyVirtualBorderRouterAttributeOutcome; - typedef std::future ModifyVirtualBorderRouterAttributeOutcomeCallable; - typedef std::function&)> ModifyVirtualBorderRouterAttributeAsyncHandler; typedef Outcome DetachKeyPairOutcome; typedef std::future DetachKeyPairOutcomeCallable; typedef std::function&)> DetachKeyPairAsyncHandler; + typedef Outcome ModifyVirtualBorderRouterAttributeOutcome; + typedef std::future ModifyVirtualBorderRouterAttributeOutcomeCallable; + typedef std::function&)> ModifyVirtualBorderRouterAttributeAsyncHandler; typedef Outcome DescribeTasksOutcome; typedef std::future DescribeTasksOutcomeCallable; typedef std::function&)> DescribeTasksAsyncHandler; @@ -1049,12 +1099,12 @@ namespace AlibabaCloud typedef Outcome ImportKeyPairOutcome; typedef std::future ImportKeyPairOutcomeCallable; typedef std::function&)> ImportKeyPairAsyncHandler; - typedef Outcome DescribeNewProjectEipMonitorDataOutcome; - typedef std::future DescribeNewProjectEipMonitorDataOutcomeCallable; - typedef std::function&)> DescribeNewProjectEipMonitorDataAsyncHandler; typedef Outcome DeleteLaunchTemplateOutcome; typedef std::future DeleteLaunchTemplateOutcomeCallable; typedef std::function&)> DeleteLaunchTemplateAsyncHandler; + typedef Outcome DescribeNewProjectEipMonitorDataOutcome; + typedef std::future DescribeNewProjectEipMonitorDataOutcomeCallable; + typedef std::function&)> DescribeNewProjectEipMonitorDataAsyncHandler; typedef Outcome DescribeInstanceRamRoleOutcome; typedef std::future DescribeInstanceRamRoleOutcomeCallable; typedef std::function&)> DescribeInstanceRamRoleAsyncHandler; @@ -1073,12 +1123,12 @@ namespace AlibabaCloud typedef Outcome ModifyImageAttributeOutcome; typedef std::future ModifyImageAttributeOutcomeCallable; typedef std::function&)> ModifyImageAttributeAsyncHandler; - typedef Outcome DescribeInstanceStatusOutcome; - typedef std::future DescribeInstanceStatusOutcomeCallable; - typedef std::function&)> DescribeInstanceStatusAsyncHandler; typedef Outcome AddBandwidthPackageIpsOutcome; typedef std::future AddBandwidthPackageIpsOutcomeCallable; typedef std::function&)> AddBandwidthPackageIpsAsyncHandler; + typedef Outcome DescribeInstanceStatusOutcome; + typedef std::future DescribeInstanceStatusOutcomeCallable; + typedef std::function&)> DescribeInstanceStatusAsyncHandler; typedef Outcome DescribeNatGatewaysOutcome; typedef std::future DescribeNatGatewaysOutcomeCallable; typedef std::function&)> DescribeNatGatewaysAsyncHandler; @@ -1091,6 +1141,12 @@ namespace AlibabaCloud typedef Outcome ModifyDiskChargeTypeOutcome; typedef std::future ModifyDiskChargeTypeOutcomeCallable; typedef std::function&)> ModifyDiskChargeTypeAsyncHandler; + typedef Outcome DescribeAutoProvisioningGroupsOutcome; + typedef std::future DescribeAutoProvisioningGroupsOutcomeCallable; + typedef std::function&)> DescribeAutoProvisioningGroupsAsyncHandler; + typedef Outcome ModifyAutoProvisioningGroupOutcome; + typedef std::future ModifyAutoProvisioningGroupOutcomeCallable; + typedef std::function&)> ModifyAutoProvisioningGroupAsyncHandler; typedef Outcome DeleteFleetOutcome; typedef std::future DeleteFleetOutcomeCallable; typedef std::function&)> DeleteFleetAsyncHandler; @@ -1139,27 +1195,27 @@ namespace AlibabaCloud typedef Outcome DescribeSnapshotsUsageOutcome; typedef std::future DescribeSnapshotsUsageOutcomeCallable; typedef std::function&)> DescribeSnapshotsUsageAsyncHandler; - typedef Outcome CreateInstanceOutcome; - typedef std::future CreateInstanceOutcomeCallable; - typedef std::function&)> CreateInstanceAsyncHandler; - typedef Outcome ModifySecurityGroupEgressRuleOutcome; - typedef std::future ModifySecurityGroupEgressRuleOutcomeCallable; - typedef std::function&)> ModifySecurityGroupEgressRuleAsyncHandler; typedef Outcome DeleteAutoSnapshotPolicyOutcome; typedef std::future DeleteAutoSnapshotPolicyOutcomeCallable; typedef std::function&)> DeleteAutoSnapshotPolicyAsyncHandler; + typedef Outcome ModifySecurityGroupEgressRuleOutcome; + typedef std::future ModifySecurityGroupEgressRuleOutcomeCallable; + typedef std::function&)> ModifySecurityGroupEgressRuleAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; + typedef std::function&)> CreateInstanceAsyncHandler; typedef Outcome EnablePhysicalConnectionOutcome; typedef std::future EnablePhysicalConnectionOutcomeCallable; typedef std::function&)> EnablePhysicalConnectionAsyncHandler; typedef Outcome DescribeInstanceTypeFamiliesOutcome; typedef std::future DescribeInstanceTypeFamiliesOutcomeCallable; typedef std::function&)> DescribeInstanceTypeFamiliesAsyncHandler; - typedef Outcome CreateForwardEntryOutcome; - typedef std::future CreateForwardEntryOutcomeCallable; - typedef std::function&)> CreateForwardEntryAsyncHandler; typedef Outcome DescribeRouterInterfacesOutcome; typedef std::future DescribeRouterInterfacesOutcomeCallable; typedef std::function&)> DescribeRouterInterfacesAsyncHandler; + typedef Outcome CreateForwardEntryOutcome; + typedef std::future CreateForwardEntryOutcomeCallable; + typedef std::function&)> CreateForwardEntryAsyncHandler; typedef Outcome DescribeReservedInstancesOutcome; typedef std::future DescribeReservedInstancesOutcomeCallable; typedef std::function&)> DescribeReservedInstancesAsyncHandler; @@ -1190,18 +1246,24 @@ namespace AlibabaCloud typedef Outcome EipFillProductOutcome; typedef std::future EipFillProductOutcomeCallable; typedef std::function&)> EipFillProductAsyncHandler; + typedef Outcome CreateAutoProvisioningGroupOutcome; + typedef std::future CreateAutoProvisioningGroupOutcomeCallable; + typedef std::function&)> CreateAutoProvisioningGroupAsyncHandler; typedef Outcome DescribeRouteTablesOutcome; typedef std::future DescribeRouteTablesOutcomeCallable; typedef std::function&)> DescribeRouteTablesAsyncHandler; - typedef Outcome ModifyAutoSnapshotPolicyExOutcome; - typedef std::future ModifyAutoSnapshotPolicyExOutcomeCallable; - typedef std::function&)> ModifyAutoSnapshotPolicyExAsyncHandler; - typedef Outcome JoinResourceGroupOutcome; - typedef std::future JoinResourceGroupOutcomeCallable; - typedef std::function&)> JoinResourceGroupAsyncHandler; typedef Outcome DescribeUserDataOutcome; typedef std::future DescribeUserDataOutcomeCallable; typedef std::function&)> DescribeUserDataAsyncHandler; + typedef Outcome JoinResourceGroupOutcome; + typedef std::future JoinResourceGroupOutcomeCallable; + typedef std::function&)> JoinResourceGroupAsyncHandler; + typedef Outcome ModifyAutoSnapshotPolicyExOutcome; + typedef std::future ModifyAutoSnapshotPolicyExOutcomeCallable; + typedef std::function&)> ModifyAutoSnapshotPolicyExAsyncHandler; + typedef Outcome DeleteStorageSetOutcome; + typedef std::future DeleteStorageSetOutcomeCallable; + typedef std::function&)> DeleteStorageSetAsyncHandler; typedef Outcome CreatePhysicalConnectionOutcome; typedef std::future CreatePhysicalConnectionOutcomeCallable; typedef std::function&)> CreatePhysicalConnectionAsyncHandler; @@ -1214,21 +1276,24 @@ namespace AlibabaCloud typedef Outcome AssociateHaVipOutcome; typedef std::future AssociateHaVipOutcomeCallable; typedef std::function&)> AssociateHaVipAsyncHandler; + typedef Outcome DescribeStorageSetDetailsOutcome; + typedef std::future DescribeStorageSetDetailsOutcomeCallable; + typedef std::function&)> DescribeStorageSetDetailsAsyncHandler; typedef Outcome ConvertNatPublicIpToEipOutcome; typedef std::future ConvertNatPublicIpToEipOutcomeCallable; typedef std::function&)> ConvertNatPublicIpToEipAsyncHandler; typedef Outcome AssignIpv6AddressesOutcome; typedef std::future AssignIpv6AddressesOutcomeCallable; typedef std::function&)> AssignIpv6AddressesAsyncHandler; - typedef Outcome DescribeCloudAssistantStatusOutcome; - typedef std::future DescribeCloudAssistantStatusOutcomeCallable; - typedef std::function&)> DescribeCloudAssistantStatusAsyncHandler; - typedef Outcome DeleteRouteEntryOutcome; - typedef std::future DeleteRouteEntryOutcomeCallable; - typedef std::function&)> DeleteRouteEntryAsyncHandler; typedef Outcome DeleteVirtualBorderRouterOutcome; typedef std::future DeleteVirtualBorderRouterOutcomeCallable; typedef std::function&)> DeleteVirtualBorderRouterAsyncHandler; + typedef Outcome DeleteRouteEntryOutcome; + typedef std::future DeleteRouteEntryOutcomeCallable; + typedef std::function&)> DeleteRouteEntryAsyncHandler; + typedef Outcome DescribeCloudAssistantStatusOutcome; + typedef std::future DescribeCloudAssistantStatusOutcomeCallable; + typedef std::function&)> DescribeCloudAssistantStatusAsyncHandler; typedef Outcome UnassignIpv6AddressesOutcome; typedef std::future UnassignIpv6AddressesOutcomeCallable; typedef std::function&)> UnassignIpv6AddressesAsyncHandler; @@ -1241,12 +1306,12 @@ namespace AlibabaCloud typedef Outcome AttachNetworkInterfaceOutcome; typedef std::future AttachNetworkInterfaceOutcomeCallable; typedef std::function&)> AttachNetworkInterfaceAsyncHandler; - typedef Outcome DescribeSecurityGroupAttributeOutcome; - typedef std::future DescribeSecurityGroupAttributeOutcomeCallable; - typedef std::function&)> DescribeSecurityGroupAttributeAsyncHandler; typedef Outcome ModifyImageSharePermissionOutcome; typedef std::future ModifyImageSharePermissionOutcomeCallable; typedef std::function&)> ModifyImageSharePermissionAsyncHandler; + typedef Outcome DescribeSecurityGroupAttributeOutcome; + typedef std::future DescribeSecurityGroupAttributeOutcomeCallable; + typedef std::function&)> DescribeSecurityGroupAttributeAsyncHandler; typedef Outcome DescribeAutoSnapshotPolicyExOutcome; typedef std::future DescribeAutoSnapshotPolicyExOutcomeCallable; typedef std::function&)> DescribeAutoSnapshotPolicyExAsyncHandler; @@ -1298,12 +1363,12 @@ namespace AlibabaCloud typedef Outcome ModifyNetworkInterfaceAttributeOutcome; typedef std::future ModifyNetworkInterfaceAttributeOutcomeCallable; typedef std::function&)> ModifyNetworkInterfaceAttributeAsyncHandler; - typedef Outcome DeleteDiskOutcome; - typedef std::future DeleteDiskOutcomeCallable; - typedef std::function&)> DeleteDiskAsyncHandler; typedef Outcome AllocateEipAddressOutcome; typedef std::future AllocateEipAddressOutcomeCallable; typedef std::function&)> AllocateEipAddressAsyncHandler; + typedef Outcome DeleteDiskOutcome; + typedef std::future DeleteDiskOutcomeCallable; + typedef std::function&)> DeleteDiskAsyncHandler; typedef Outcome UnassociateHaVipOutcome; typedef std::future UnassociateHaVipOutcomeCallable; typedef std::function&)> UnassociateHaVipAsyncHandler; @@ -1336,45 +1401,51 @@ namespace AlibabaCloud EcsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); EcsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~EcsClient(); - JoinSecurityGroupOutcome joinSecurityGroup(const Model::JoinSecurityGroupRequest &request)const; - void joinSecurityGroupAsync(const Model::JoinSecurityGroupRequest& request, const JoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - JoinSecurityGroupOutcomeCallable joinSecurityGroupCallable(const Model::JoinSecurityGroupRequest& request) const; ModifySnapshotAttributeOutcome modifySnapshotAttribute(const Model::ModifySnapshotAttributeRequest &request)const; void modifySnapshotAttributeAsync(const Model::ModifySnapshotAttributeRequest& request, const ModifySnapshotAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySnapshotAttributeOutcomeCallable modifySnapshotAttributeCallable(const Model::ModifySnapshotAttributeRequest& request) const; - DescribeDedicatedHostTypesOutcome describeDedicatedHostTypes(const Model::DescribeDedicatedHostTypesRequest &request)const; - void describeDedicatedHostTypesAsync(const Model::DescribeDedicatedHostTypesRequest& request, const DescribeDedicatedHostTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDedicatedHostTypesOutcomeCallable describeDedicatedHostTypesCallable(const Model::DescribeDedicatedHostTypesRequest& request) const; + JoinSecurityGroupOutcome joinSecurityGroup(const Model::JoinSecurityGroupRequest &request)const; + void joinSecurityGroupAsync(const Model::JoinSecurityGroupRequest& request, const JoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinSecurityGroupOutcomeCallable joinSecurityGroupCallable(const Model::JoinSecurityGroupRequest& request) const; UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + DescribeDedicatedHostTypesOutcome describeDedicatedHostTypes(const Model::DescribeDedicatedHostTypesRequest &request)const; + void describeDedicatedHostTypesAsync(const Model::DescribeDedicatedHostTypesRequest& request, const DescribeDedicatedHostTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDedicatedHostTypesOutcomeCallable describeDedicatedHostTypesCallable(const Model::DescribeDedicatedHostTypesRequest& request) const; + DescribeStorageSetsOutcome describeStorageSets(const Model::DescribeStorageSetsRequest &request)const; + void describeStorageSetsAsync(const Model::DescribeStorageSetsRequest& request, const DescribeStorageSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStorageSetsOutcomeCallable describeStorageSetsCallable(const Model::DescribeStorageSetsRequest& request) const; DescribeSnapshotsOutcome describeSnapshots(const Model::DescribeSnapshotsRequest &request)const; void describeSnapshotsAsync(const Model::DescribeSnapshotsRequest& request, const DescribeSnapshotsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSnapshotsOutcomeCallable describeSnapshotsCallable(const Model::DescribeSnapshotsRequest& request) const; + ModifyStorageSetAttributeOutcome modifyStorageSetAttribute(const Model::ModifyStorageSetAttributeRequest &request)const; + void modifyStorageSetAttributeAsync(const Model::ModifyStorageSetAttributeRequest& request, const ModifyStorageSetAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyStorageSetAttributeOutcomeCallable modifyStorageSetAttributeCallable(const Model::ModifyStorageSetAttributeRequest& request) const; ModifyInstanceVncPasswdOutcome modifyInstanceVncPasswd(const Model::ModifyInstanceVncPasswdRequest &request)const; void modifyInstanceVncPasswdAsync(const Model::ModifyInstanceVncPasswdRequest& request, const ModifyInstanceVncPasswdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceVncPasswdOutcomeCallable modifyInstanceVncPasswdCallable(const Model::ModifyInstanceVncPasswdRequest& request) const; ModifyBandwidthPackageSpecOutcome modifyBandwidthPackageSpec(const Model::ModifyBandwidthPackageSpecRequest &request)const; void modifyBandwidthPackageSpecAsync(const Model::ModifyBandwidthPackageSpecRequest& request, const ModifyBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBandwidthPackageSpecOutcomeCallable modifyBandwidthPackageSpecCallable(const Model::ModifyBandwidthPackageSpecRequest& request) const; - AttachDiskOutcome attachDisk(const Model::AttachDiskRequest &request)const; - void attachDiskAsync(const Model::AttachDiskRequest& request, const AttachDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AttachDiskOutcomeCallable attachDiskCallable(const Model::AttachDiskRequest& request) const; CreateNatGatewayOutcome createNatGateway(const Model::CreateNatGatewayRequest &request)const; void createNatGatewayAsync(const Model::CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNatGatewayOutcomeCallable createNatGatewayCallable(const Model::CreateNatGatewayRequest& request) const; + AttachDiskOutcome attachDisk(const Model::AttachDiskRequest &request)const; + void attachDiskAsync(const Model::AttachDiskRequest& request, const AttachDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachDiskOutcomeCallable attachDiskCallable(const Model::AttachDiskRequest& request) const; DescribeEniMonitorDataOutcome describeEniMonitorData(const Model::DescribeEniMonitorDataRequest &request)const; void describeEniMonitorDataAsync(const Model::DescribeEniMonitorDataRequest& request, const DescribeEniMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEniMonitorDataOutcomeCallable describeEniMonitorDataCallable(const Model::DescribeEniMonitorDataRequest& request) const; ExportSnapshotOutcome exportSnapshot(const Model::ExportSnapshotRequest &request)const; void exportSnapshotAsync(const Model::ExportSnapshotRequest& request, const ExportSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportSnapshotOutcomeCallable exportSnapshotCallable(const Model::ExportSnapshotRequest& request) const; - ReInitDiskOutcome reInitDisk(const Model::ReInitDiskRequest &request)const; - void reInitDiskAsync(const Model::ReInitDiskRequest& request, const ReInitDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReInitDiskOutcomeCallable reInitDiskCallable(const Model::ReInitDiskRequest& request) const; CreateHaVipOutcome createHaVip(const Model::CreateHaVipRequest &request)const; void createHaVipAsync(const Model::CreateHaVipRequest& request, const CreateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateHaVipOutcomeCallable createHaVipCallable(const Model::CreateHaVipRequest& request) const; + ReInitDiskOutcome reInitDisk(const Model::ReInitDiskRequest &request)const; + void reInitDiskAsync(const Model::ReInitDiskRequest& request, const ReInitDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReInitDiskOutcomeCallable reInitDiskCallable(const Model::ReInitDiskRequest& request) const; ModifyAutoSnapshotPolicyOutcome modifyAutoSnapshotPolicy(const Model::ModifyAutoSnapshotPolicyRequest &request)const; void modifyAutoSnapshotPolicyAsync(const Model::ModifyAutoSnapshotPolicyRequest& request, const ModifyAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAutoSnapshotPolicyOutcomeCallable modifyAutoSnapshotPolicyCallable(const Model::ModifyAutoSnapshotPolicyRequest& request) const; @@ -1384,6 +1455,9 @@ namespace AlibabaCloud AssociateEipAddressOutcome associateEipAddress(const Model::AssociateEipAddressRequest &request)const; void associateEipAddressAsync(const Model::AssociateEipAddressRequest& request, const AssociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateEipAddressOutcomeCallable associateEipAddressCallable(const Model::AssociateEipAddressRequest& request) const; + DeleteInstancesOutcome deleteInstances(const Model::DeleteInstancesRequest &request)const; + void deleteInstancesAsync(const Model::DeleteInstancesRequest& request, const DeleteInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteInstancesOutcomeCallable deleteInstancesCallable(const Model::DeleteInstancesRequest& request) const; RevokeSecurityGroupEgressOutcome revokeSecurityGroupEgress(const Model::RevokeSecurityGroupEgressRequest &request)const; void revokeSecurityGroupEgressAsync(const Model::RevokeSecurityGroupEgressRequest& request, const RevokeSecurityGroupEgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeSecurityGroupEgressOutcomeCallable revokeSecurityGroupEgressCallable(const Model::RevokeSecurityGroupEgressRequest& request) const; @@ -1408,6 +1482,9 @@ namespace AlibabaCloud DescribeInstanceTopologyOutcome describeInstanceTopology(const Model::DescribeInstanceTopologyRequest &request)const; void describeInstanceTopologyAsync(const Model::DescribeInstanceTopologyRequest& request, const DescribeInstanceTopologyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceTopologyOutcomeCallable describeInstanceTopologyCallable(const Model::DescribeInstanceTopologyRequest& request) const; + ModifyDiskSpecOutcome modifyDiskSpec(const Model::ModifyDiskSpecRequest &request)const; + void modifyDiskSpecAsync(const Model::ModifyDiskSpecRequest& request, const ModifyDiskSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDiskSpecOutcomeCallable modifyDiskSpecCallable(const Model::ModifyDiskSpecRequest& request) const; DeletePhysicalConnectionOutcome deletePhysicalConnection(const Model::DeletePhysicalConnectionRequest &request)const; void deletePhysicalConnectionAsync(const Model::DeletePhysicalConnectionRequest& request, const DeletePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePhysicalConnectionOutcomeCallable deletePhysicalConnectionCallable(const Model::DeletePhysicalConnectionRequest& request) const; @@ -1450,18 +1527,18 @@ namespace AlibabaCloud ModifyDedicatedHostAutoRenewAttributeOutcome modifyDedicatedHostAutoRenewAttribute(const Model::ModifyDedicatedHostAutoRenewAttributeRequest &request)const; void modifyDedicatedHostAutoRenewAttributeAsync(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request, const ModifyDedicatedHostAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDedicatedHostAutoRenewAttributeOutcomeCallable modifyDedicatedHostAutoRenewAttributeCallable(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request) const; - DescribeEipMonitorDataOutcome describeEipMonitorData(const Model::DescribeEipMonitorDataRequest &request)const; - void describeEipMonitorDataAsync(const Model::DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeEipMonitorDataOutcomeCallable describeEipMonitorDataCallable(const Model::DescribeEipMonitorDataRequest& request) const; ModifyReservedInstancesOutcome modifyReservedInstances(const Model::ModifyReservedInstancesRequest &request)const; void modifyReservedInstancesAsync(const Model::ModifyReservedInstancesRequest& request, const ModifyReservedInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyReservedInstancesOutcomeCallable modifyReservedInstancesCallable(const Model::ModifyReservedInstancesRequest& request) const; - DescribeDisksFullStatusOutcome describeDisksFullStatus(const Model::DescribeDisksFullStatusRequest &request)const; - void describeDisksFullStatusAsync(const Model::DescribeDisksFullStatusRequest& request, const DescribeDisksFullStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDisksFullStatusOutcomeCallable describeDisksFullStatusCallable(const Model::DescribeDisksFullStatusRequest& request) const; + DescribeEipMonitorDataOutcome describeEipMonitorData(const Model::DescribeEipMonitorDataRequest &request)const; + void describeEipMonitorDataAsync(const Model::DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEipMonitorDataOutcomeCallable describeEipMonitorDataCallable(const Model::DescribeEipMonitorDataRequest& request) const; CancelAutoSnapshotPolicyOutcome cancelAutoSnapshotPolicy(const Model::CancelAutoSnapshotPolicyRequest &request)const; void cancelAutoSnapshotPolicyAsync(const Model::CancelAutoSnapshotPolicyRequest& request, const CancelAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelAutoSnapshotPolicyOutcomeCallable cancelAutoSnapshotPolicyCallable(const Model::CancelAutoSnapshotPolicyRequest& request) const; + DescribeDisksFullStatusOutcome describeDisksFullStatus(const Model::DescribeDisksFullStatusRequest &request)const; + void describeDisksFullStatusAsync(const Model::DescribeDisksFullStatusRequest& request, const DescribeDisksFullStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDisksFullStatusOutcomeCallable describeDisksFullStatusCallable(const Model::DescribeDisksFullStatusRequest& request) const; DeleteNetworkInterfaceOutcome deleteNetworkInterface(const Model::DeleteNetworkInterfaceRequest &request)const; void deleteNetworkInterfaceAsync(const Model::DeleteNetworkInterfaceRequest& request, const DeleteNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNetworkInterfaceOutcomeCallable deleteNetworkInterfaceCallable(const Model::DeleteNetworkInterfaceRequest& request) const; @@ -1480,12 +1557,12 @@ namespace AlibabaCloud AuthorizeSecurityGroupOutcome authorizeSecurityGroup(const Model::AuthorizeSecurityGroupRequest &request)const; void authorizeSecurityGroupAsync(const Model::AuthorizeSecurityGroupRequest& request, const AuthorizeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AuthorizeSecurityGroupOutcomeCallable authorizeSecurityGroupCallable(const Model::AuthorizeSecurityGroupRequest& request) const; - DeleteSecurityGroupOutcome deleteSecurityGroup(const Model::DeleteSecurityGroupRequest &request)const; - void deleteSecurityGroupAsync(const Model::DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSecurityGroupOutcomeCallable deleteSecurityGroupCallable(const Model::DeleteSecurityGroupRequest& request) const; DescribeSnapshotMonitorDataOutcome describeSnapshotMonitorData(const Model::DescribeSnapshotMonitorDataRequest &request)const; void describeSnapshotMonitorDataAsync(const Model::DescribeSnapshotMonitorDataRequest& request, const DescribeSnapshotMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSnapshotMonitorDataOutcomeCallable describeSnapshotMonitorDataCallable(const Model::DescribeSnapshotMonitorDataRequest& request) const; + DeleteSecurityGroupOutcome deleteSecurityGroup(const Model::DeleteSecurityGroupRequest &request)const; + void deleteSecurityGroupAsync(const Model::DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecurityGroupOutcomeCallable deleteSecurityGroupCallable(const Model::DeleteSecurityGroupRequest& request) const; ConnectRouterInterfaceOutcome connectRouterInterface(const Model::ConnectRouterInterfaceRequest &request)const; void connectRouterInterfaceAsync(const Model::ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConnectRouterInterfaceOutcomeCallable connectRouterInterfaceCallable(const Model::ConnectRouterInterfaceRequest& request) const; @@ -1495,12 +1572,12 @@ namespace AlibabaCloud CreateSimulatedSystemEventsOutcome createSimulatedSystemEvents(const Model::CreateSimulatedSystemEventsRequest &request)const; void createSimulatedSystemEventsAsync(const Model::CreateSimulatedSystemEventsRequest& request, const CreateSimulatedSystemEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSimulatedSystemEventsOutcomeCallable createSimulatedSystemEventsCallable(const Model::CreateSimulatedSystemEventsRequest& request) const; - CancelTaskOutcome cancelTask(const Model::CancelTaskRequest &request)const; - void cancelTaskAsync(const Model::CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CancelTaskOutcomeCallable cancelTaskCallable(const Model::CancelTaskRequest& request) const; RedeployInstanceOutcome redeployInstance(const Model::RedeployInstanceRequest &request)const; void redeployInstanceAsync(const Model::RedeployInstanceRequest& request, const RedeployInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RedeployInstanceOutcomeCallable redeployInstanceCallable(const Model::RedeployInstanceRequest& request) const; + CancelTaskOutcome cancelTask(const Model::CancelTaskRequest &request)const; + void cancelTaskAsync(const Model::CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelTaskOutcomeCallable cancelTaskCallable(const Model::CancelTaskRequest& request) const; ModifyCommandOutcome modifyCommand(const Model::ModifyCommandRequest &request)const; void modifyCommandAsync(const Model::ModifyCommandRequest& request, const ModifyCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCommandOutcomeCallable modifyCommandCallable(const Model::ModifyCommandRequest& request) const; @@ -1525,12 +1602,12 @@ namespace AlibabaCloud ModifyDedicatedHostAttributeOutcome modifyDedicatedHostAttribute(const Model::ModifyDedicatedHostAttributeRequest &request)const; void modifyDedicatedHostAttributeAsync(const Model::ModifyDedicatedHostAttributeRequest& request, const ModifyDedicatedHostAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDedicatedHostAttributeOutcomeCallable modifyDedicatedHostAttributeCallable(const Model::ModifyDedicatedHostAttributeRequest& request) const; - CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const; - void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const; ModifyFleetOutcome modifyFleet(const Model::ModifyFleetRequest &request)const; void modifyFleetAsync(const Model::ModifyFleetRequest& request, const ModifyFleetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyFleetOutcomeCallable modifyFleetCallable(const Model::ModifyFleetRequest& request) const; + CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const; + void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const; AttachKeyPairOutcome attachKeyPair(const Model::AttachKeyPairRequest &request)const; void attachKeyPairAsync(const Model::AttachKeyPairRequest& request, const AttachKeyPairAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachKeyPairOutcomeCallable attachKeyPairCallable(const Model::AttachKeyPairRequest& request) const; @@ -1540,6 +1617,9 @@ namespace AlibabaCloud CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const; void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRouterInterfaceOutcomeCallable createRouterInterfaceCallable(const Model::CreateRouterInterfaceRequest& request) const; + DeleteAutoProvisioningGroupOutcome deleteAutoProvisioningGroup(const Model::DeleteAutoProvisioningGroupRequest &request)const; + void deleteAutoProvisioningGroupAsync(const Model::DeleteAutoProvisioningGroupRequest& request, const DeleteAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAutoProvisioningGroupOutcomeCallable deleteAutoProvisioningGroupCallable(const Model::DeleteAutoProvisioningGroupRequest& request) const; TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; @@ -1552,6 +1632,9 @@ namespace AlibabaCloud CreateLaunchTemplateVersionOutcome createLaunchTemplateVersion(const Model::CreateLaunchTemplateVersionRequest &request)const; void createLaunchTemplateVersionAsync(const Model::CreateLaunchTemplateVersionRequest& request, const CreateLaunchTemplateVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLaunchTemplateVersionOutcomeCallable createLaunchTemplateVersionCallable(const Model::CreateLaunchTemplateVersionRequest& request) const; + DescribeAutoProvisioningGroupHistoryOutcome describeAutoProvisioningGroupHistory(const Model::DescribeAutoProvisioningGroupHistoryRequest &request)const; + void describeAutoProvisioningGroupHistoryAsync(const Model::DescribeAutoProvisioningGroupHistoryRequest& request, const DescribeAutoProvisioningGroupHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoProvisioningGroupHistoryOutcomeCallable describeAutoProvisioningGroupHistoryCallable(const Model::DescribeAutoProvisioningGroupHistoryRequest& request) const; StopInvocationOutcome stopInvocation(const Model::StopInvocationRequest &request)const; void stopInvocationAsync(const Model::StopInvocationRequest& request, const StopInvocationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopInvocationOutcomeCallable stopInvocationCallable(const Model::StopInvocationRequest& request) const; @@ -1579,12 +1662,12 @@ namespace AlibabaCloud ModifySecurityGroupAttributeOutcome modifySecurityGroupAttribute(const Model::ModifySecurityGroupAttributeRequest &request)const; void modifySecurityGroupAttributeAsync(const Model::ModifySecurityGroupAttributeRequest& request, const ModifySecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySecurityGroupAttributeOutcomeCallable modifySecurityGroupAttributeCallable(const Model::ModifySecurityGroupAttributeRequest& request) const; - RemoveTagsOutcome removeTags(const Model::RemoveTagsRequest &request)const; - void removeTagsAsync(const Model::RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveTagsOutcomeCallable removeTagsCallable(const Model::RemoveTagsRequest& request) const; RenewDedicatedHostsOutcome renewDedicatedHosts(const Model::RenewDedicatedHostsRequest &request)const; void renewDedicatedHostsAsync(const Model::RenewDedicatedHostsRequest& request, const RenewDedicatedHostsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenewDedicatedHostsOutcomeCallable renewDedicatedHostsCallable(const Model::RenewDedicatedHostsRequest& request) const; + RemoveTagsOutcome removeTags(const Model::RemoveTagsRequest &request)const; + void removeTagsAsync(const Model::RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTagsOutcomeCallable removeTagsCallable(const Model::RemoveTagsRequest& request) const; CancelSimulatedSystemEventsOutcome cancelSimulatedSystemEvents(const Model::CancelSimulatedSystemEventsRequest &request)const; void cancelSimulatedSystemEventsAsync(const Model::CancelSimulatedSystemEventsRequest& request, const CancelSimulatedSystemEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelSimulatedSystemEventsOutcomeCallable cancelSimulatedSystemEventsCallable(const Model::CancelSimulatedSystemEventsRequest& request) const; @@ -1654,6 +1737,9 @@ namespace AlibabaCloud CreateDiskOutcome createDisk(const Model::CreateDiskRequest &request)const; void createDiskAsync(const Model::CreateDiskRequest& request, const CreateDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDiskOutcomeCallable createDiskCallable(const Model::CreateDiskRequest& request) const; + DescribeAutoProvisioningGroupInstancesOutcome describeAutoProvisioningGroupInstances(const Model::DescribeAutoProvisioningGroupInstancesRequest &request)const; + void describeAutoProvisioningGroupInstancesAsync(const Model::DescribeAutoProvisioningGroupInstancesRequest& request, const DescribeAutoProvisioningGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoProvisioningGroupInstancesOutcomeCallable describeAutoProvisioningGroupInstancesCallable(const Model::DescribeAutoProvisioningGroupInstancesRequest& request) const; DescribeInstanceTypesOutcome describeInstanceTypes(const Model::DescribeInstanceTypesRequest &request)const; void describeInstanceTypesAsync(const Model::DescribeInstanceTypesRequest& request, const DescribeInstanceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceTypesOutcomeCallable describeInstanceTypesCallable(const Model::DescribeInstanceTypesRequest& request) const; @@ -1735,12 +1821,12 @@ namespace AlibabaCloud DeleteVpcOutcome deleteVpc(const Model::DeleteVpcRequest &request)const; void deleteVpcAsync(const Model::DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVpcOutcomeCallable deleteVpcCallable(const Model::DeleteVpcRequest& request) const; - DeleteCommandOutcome deleteCommand(const Model::DeleteCommandRequest &request)const; - void deleteCommandAsync(const Model::DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCommandOutcomeCallable deleteCommandCallable(const Model::DeleteCommandRequest& request) const; DescribeImageSupportInstanceTypesOutcome describeImageSupportInstanceTypes(const Model::DescribeImageSupportInstanceTypesRequest &request)const; void describeImageSupportInstanceTypesAsync(const Model::DescribeImageSupportInstanceTypesRequest& request, const DescribeImageSupportInstanceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeImageSupportInstanceTypesOutcomeCallable describeImageSupportInstanceTypesCallable(const Model::DescribeImageSupportInstanceTypesRequest& request) const; + DeleteCommandOutcome deleteCommand(const Model::DeleteCommandRequest &request)const; + void deleteCommandAsync(const Model::DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCommandOutcomeCallable deleteCommandCallable(const Model::DeleteCommandRequest& request) const; ReplaceSystemDiskOutcome replaceSystemDisk(const Model::ReplaceSystemDiskRequest &request)const; void replaceSystemDiskAsync(const Model::ReplaceSystemDiskRequest& request, const ReplaceSystemDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReplaceSystemDiskOutcomeCallable replaceSystemDiskCallable(const Model::ReplaceSystemDiskRequest& request) const; @@ -1765,12 +1851,12 @@ namespace AlibabaCloud DescribeClustersOutcome describeClusters(const Model::DescribeClustersRequest &request)const; void describeClustersAsync(const Model::DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClustersOutcomeCallable describeClustersCallable(const Model::DescribeClustersRequest& request) const; - DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; - void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; DeleteBandwidthPackageOutcome deleteBandwidthPackage(const Model::DeleteBandwidthPackageRequest &request)const; void deleteBandwidthPackageAsync(const Model::DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBandwidthPackageOutcomeCallable deleteBandwidthPackageCallable(const Model::DeleteBandwidthPackageRequest& request) const; + DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; + void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; DescribeImagesOutcome describeImages(const Model::DescribeImagesRequest &request)const; void describeImagesAsync(const Model::DescribeImagesRequest& request, const DescribeImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeImagesOutcomeCallable describeImagesCallable(const Model::DescribeImagesRequest& request) const; @@ -1798,15 +1884,18 @@ namespace AlibabaCloud UnassociateEipAddressOutcome unassociateEipAddress(const Model::UnassociateEipAddressRequest &request)const; void unassociateEipAddressAsync(const Model::UnassociateEipAddressRequest& request, const UnassociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateEipAddressOutcomeCallable unassociateEipAddressCallable(const Model::UnassociateEipAddressRequest& request) const; + CreateStorageSetOutcome createStorageSet(const Model::CreateStorageSetRequest &request)const; + void createStorageSetAsync(const Model::CreateStorageSetRequest& request, const CreateStorageSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStorageSetOutcomeCallable createStorageSetCallable(const Model::CreateStorageSetRequest& request) const; CreateSnapshotOutcome createSnapshot(const Model::CreateSnapshotRequest &request)const; void createSnapshotAsync(const Model::CreateSnapshotRequest& request, const CreateSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSnapshotOutcomeCallable createSnapshotCallable(const Model::CreateSnapshotRequest& request) const; - ModifyVirtualBorderRouterAttributeOutcome modifyVirtualBorderRouterAttribute(const Model::ModifyVirtualBorderRouterAttributeRequest &request)const; - void modifyVirtualBorderRouterAttributeAsync(const Model::ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyVirtualBorderRouterAttributeOutcomeCallable modifyVirtualBorderRouterAttributeCallable(const Model::ModifyVirtualBorderRouterAttributeRequest& request) const; DetachKeyPairOutcome detachKeyPair(const Model::DetachKeyPairRequest &request)const; void detachKeyPairAsync(const Model::DetachKeyPairRequest& request, const DetachKeyPairAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachKeyPairOutcomeCallable detachKeyPairCallable(const Model::DetachKeyPairRequest& request) const; + ModifyVirtualBorderRouterAttributeOutcome modifyVirtualBorderRouterAttribute(const Model::ModifyVirtualBorderRouterAttributeRequest &request)const; + void modifyVirtualBorderRouterAttributeAsync(const Model::ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVirtualBorderRouterAttributeOutcomeCallable modifyVirtualBorderRouterAttributeCallable(const Model::ModifyVirtualBorderRouterAttributeRequest& request) const; DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const; @@ -1834,12 +1923,12 @@ namespace AlibabaCloud ImportKeyPairOutcome importKeyPair(const Model::ImportKeyPairRequest &request)const; void importKeyPairAsync(const Model::ImportKeyPairRequest& request, const ImportKeyPairAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportKeyPairOutcomeCallable importKeyPairCallable(const Model::ImportKeyPairRequest& request) const; - DescribeNewProjectEipMonitorDataOutcome describeNewProjectEipMonitorData(const Model::DescribeNewProjectEipMonitorDataRequest &request)const; - void describeNewProjectEipMonitorDataAsync(const Model::DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNewProjectEipMonitorDataOutcomeCallable describeNewProjectEipMonitorDataCallable(const Model::DescribeNewProjectEipMonitorDataRequest& request) const; DeleteLaunchTemplateOutcome deleteLaunchTemplate(const Model::DeleteLaunchTemplateRequest &request)const; void deleteLaunchTemplateAsync(const Model::DeleteLaunchTemplateRequest& request, const DeleteLaunchTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLaunchTemplateOutcomeCallable deleteLaunchTemplateCallable(const Model::DeleteLaunchTemplateRequest& request) const; + DescribeNewProjectEipMonitorDataOutcome describeNewProjectEipMonitorData(const Model::DescribeNewProjectEipMonitorDataRequest &request)const; + void describeNewProjectEipMonitorDataAsync(const Model::DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNewProjectEipMonitorDataOutcomeCallable describeNewProjectEipMonitorDataCallable(const Model::DescribeNewProjectEipMonitorDataRequest& request) const; DescribeInstanceRamRoleOutcome describeInstanceRamRole(const Model::DescribeInstanceRamRoleRequest &request)const; void describeInstanceRamRoleAsync(const Model::DescribeInstanceRamRoleRequest& request, const DescribeInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceRamRoleOutcomeCallable describeInstanceRamRoleCallable(const Model::DescribeInstanceRamRoleRequest& request) const; @@ -1858,12 +1947,12 @@ namespace AlibabaCloud ModifyImageAttributeOutcome modifyImageAttribute(const Model::ModifyImageAttributeRequest &request)const; void modifyImageAttributeAsync(const Model::ModifyImageAttributeRequest& request, const ModifyImageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyImageAttributeOutcomeCallable modifyImageAttributeCallable(const Model::ModifyImageAttributeRequest& request) const; - DescribeInstanceStatusOutcome describeInstanceStatus(const Model::DescribeInstanceStatusRequest &request)const; - void describeInstanceStatusAsync(const Model::DescribeInstanceStatusRequest& request, const DescribeInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeInstanceStatusOutcomeCallable describeInstanceStatusCallable(const Model::DescribeInstanceStatusRequest& request) const; AddBandwidthPackageIpsOutcome addBandwidthPackageIps(const Model::AddBandwidthPackageIpsRequest &request)const; void addBandwidthPackageIpsAsync(const Model::AddBandwidthPackageIpsRequest& request, const AddBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddBandwidthPackageIpsOutcomeCallable addBandwidthPackageIpsCallable(const Model::AddBandwidthPackageIpsRequest& request) const; + DescribeInstanceStatusOutcome describeInstanceStatus(const Model::DescribeInstanceStatusRequest &request)const; + void describeInstanceStatusAsync(const Model::DescribeInstanceStatusRequest& request, const DescribeInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceStatusOutcomeCallable describeInstanceStatusCallable(const Model::DescribeInstanceStatusRequest& request) const; DescribeNatGatewaysOutcome describeNatGateways(const Model::DescribeNatGatewaysRequest &request)const; void describeNatGatewaysAsync(const Model::DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNatGatewaysOutcomeCallable describeNatGatewaysCallable(const Model::DescribeNatGatewaysRequest& request) const; @@ -1876,6 +1965,12 @@ namespace AlibabaCloud ModifyDiskChargeTypeOutcome modifyDiskChargeType(const Model::ModifyDiskChargeTypeRequest &request)const; void modifyDiskChargeTypeAsync(const Model::ModifyDiskChargeTypeRequest& request, const ModifyDiskChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDiskChargeTypeOutcomeCallable modifyDiskChargeTypeCallable(const Model::ModifyDiskChargeTypeRequest& request) const; + DescribeAutoProvisioningGroupsOutcome describeAutoProvisioningGroups(const Model::DescribeAutoProvisioningGroupsRequest &request)const; + void describeAutoProvisioningGroupsAsync(const Model::DescribeAutoProvisioningGroupsRequest& request, const DescribeAutoProvisioningGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoProvisioningGroupsOutcomeCallable describeAutoProvisioningGroupsCallable(const Model::DescribeAutoProvisioningGroupsRequest& request) const; + ModifyAutoProvisioningGroupOutcome modifyAutoProvisioningGroup(const Model::ModifyAutoProvisioningGroupRequest &request)const; + void modifyAutoProvisioningGroupAsync(const Model::ModifyAutoProvisioningGroupRequest& request, const ModifyAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAutoProvisioningGroupOutcomeCallable modifyAutoProvisioningGroupCallable(const Model::ModifyAutoProvisioningGroupRequest& request) const; DeleteFleetOutcome deleteFleet(const Model::DeleteFleetRequest &request)const; void deleteFleetAsync(const Model::DeleteFleetRequest& request, const DeleteFleetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFleetOutcomeCallable deleteFleetCallable(const Model::DeleteFleetRequest& request) const; @@ -1924,27 +2019,27 @@ namespace AlibabaCloud DescribeSnapshotsUsageOutcome describeSnapshotsUsage(const Model::DescribeSnapshotsUsageRequest &request)const; void describeSnapshotsUsageAsync(const Model::DescribeSnapshotsUsageRequest& request, const DescribeSnapshotsUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSnapshotsUsageOutcomeCallable describeSnapshotsUsageCallable(const Model::DescribeSnapshotsUsageRequest& request) const; - CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; - void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; - ModifySecurityGroupEgressRuleOutcome modifySecurityGroupEgressRule(const Model::ModifySecurityGroupEgressRuleRequest &request)const; - void modifySecurityGroupEgressRuleAsync(const Model::ModifySecurityGroupEgressRuleRequest& request, const ModifySecurityGroupEgressRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySecurityGroupEgressRuleOutcomeCallable modifySecurityGroupEgressRuleCallable(const Model::ModifySecurityGroupEgressRuleRequest& request) const; DeleteAutoSnapshotPolicyOutcome deleteAutoSnapshotPolicy(const Model::DeleteAutoSnapshotPolicyRequest &request)const; void deleteAutoSnapshotPolicyAsync(const Model::DeleteAutoSnapshotPolicyRequest& request, const DeleteAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAutoSnapshotPolicyOutcomeCallable deleteAutoSnapshotPolicyCallable(const Model::DeleteAutoSnapshotPolicyRequest& request) const; + ModifySecurityGroupEgressRuleOutcome modifySecurityGroupEgressRule(const Model::ModifySecurityGroupEgressRuleRequest &request)const; + void modifySecurityGroupEgressRuleAsync(const Model::ModifySecurityGroupEgressRuleRequest& request, const ModifySecurityGroupEgressRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityGroupEgressRuleOutcomeCallable modifySecurityGroupEgressRuleCallable(const Model::ModifySecurityGroupEgressRuleRequest& request) const; + CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; + void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; EnablePhysicalConnectionOutcome enablePhysicalConnection(const Model::EnablePhysicalConnectionRequest &request)const; void enablePhysicalConnectionAsync(const Model::EnablePhysicalConnectionRequest& request, const EnablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnablePhysicalConnectionOutcomeCallable enablePhysicalConnectionCallable(const Model::EnablePhysicalConnectionRequest& request) const; DescribeInstanceTypeFamiliesOutcome describeInstanceTypeFamilies(const Model::DescribeInstanceTypeFamiliesRequest &request)const; void describeInstanceTypeFamiliesAsync(const Model::DescribeInstanceTypeFamiliesRequest& request, const DescribeInstanceTypeFamiliesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceTypeFamiliesOutcomeCallable describeInstanceTypeFamiliesCallable(const Model::DescribeInstanceTypeFamiliesRequest& request) const; - CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; - void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; DescribeRouterInterfacesOutcome describeRouterInterfaces(const Model::DescribeRouterInterfacesRequest &request)const; void describeRouterInterfacesAsync(const Model::DescribeRouterInterfacesRequest& request, const DescribeRouterInterfacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRouterInterfacesOutcomeCallable describeRouterInterfacesCallable(const Model::DescribeRouterInterfacesRequest& request) const; + CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; + void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; DescribeReservedInstancesOutcome describeReservedInstances(const Model::DescribeReservedInstancesRequest &request)const; void describeReservedInstancesAsync(const Model::DescribeReservedInstancesRequest& request, const DescribeReservedInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeReservedInstancesOutcomeCallable describeReservedInstancesCallable(const Model::DescribeReservedInstancesRequest& request) const; @@ -1975,18 +2070,24 @@ namespace AlibabaCloud EipFillProductOutcome eipFillProduct(const Model::EipFillProductRequest &request)const; void eipFillProductAsync(const Model::EipFillProductRequest& request, const EipFillProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EipFillProductOutcomeCallable eipFillProductCallable(const Model::EipFillProductRequest& request) const; + CreateAutoProvisioningGroupOutcome createAutoProvisioningGroup(const Model::CreateAutoProvisioningGroupRequest &request)const; + void createAutoProvisioningGroupAsync(const Model::CreateAutoProvisioningGroupRequest& request, const CreateAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAutoProvisioningGroupOutcomeCallable createAutoProvisioningGroupCallable(const Model::CreateAutoProvisioningGroupRequest& request) const; DescribeRouteTablesOutcome describeRouteTables(const Model::DescribeRouteTablesRequest &request)const; void describeRouteTablesAsync(const Model::DescribeRouteTablesRequest& request, const DescribeRouteTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRouteTablesOutcomeCallable describeRouteTablesCallable(const Model::DescribeRouteTablesRequest& request) const; - ModifyAutoSnapshotPolicyExOutcome modifyAutoSnapshotPolicyEx(const Model::ModifyAutoSnapshotPolicyExRequest &request)const; - void modifyAutoSnapshotPolicyExAsync(const Model::ModifyAutoSnapshotPolicyExRequest& request, const ModifyAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAutoSnapshotPolicyExOutcomeCallable modifyAutoSnapshotPolicyExCallable(const Model::ModifyAutoSnapshotPolicyExRequest& request) const; - JoinResourceGroupOutcome joinResourceGroup(const Model::JoinResourceGroupRequest &request)const; - void joinResourceGroupAsync(const Model::JoinResourceGroupRequest& request, const JoinResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - JoinResourceGroupOutcomeCallable joinResourceGroupCallable(const Model::JoinResourceGroupRequest& request) const; DescribeUserDataOutcome describeUserData(const Model::DescribeUserDataRequest &request)const; void describeUserDataAsync(const Model::DescribeUserDataRequest& request, const DescribeUserDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserDataOutcomeCallable describeUserDataCallable(const Model::DescribeUserDataRequest& request) const; + JoinResourceGroupOutcome joinResourceGroup(const Model::JoinResourceGroupRequest &request)const; + void joinResourceGroupAsync(const Model::JoinResourceGroupRequest& request, const JoinResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinResourceGroupOutcomeCallable joinResourceGroupCallable(const Model::JoinResourceGroupRequest& request) const; + ModifyAutoSnapshotPolicyExOutcome modifyAutoSnapshotPolicyEx(const Model::ModifyAutoSnapshotPolicyExRequest &request)const; + void modifyAutoSnapshotPolicyExAsync(const Model::ModifyAutoSnapshotPolicyExRequest& request, const ModifyAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAutoSnapshotPolicyExOutcomeCallable modifyAutoSnapshotPolicyExCallable(const Model::ModifyAutoSnapshotPolicyExRequest& request) const; + DeleteStorageSetOutcome deleteStorageSet(const Model::DeleteStorageSetRequest &request)const; + void deleteStorageSetAsync(const Model::DeleteStorageSetRequest& request, const DeleteStorageSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteStorageSetOutcomeCallable deleteStorageSetCallable(const Model::DeleteStorageSetRequest& request) const; CreatePhysicalConnectionOutcome createPhysicalConnection(const Model::CreatePhysicalConnectionRequest &request)const; void createPhysicalConnectionAsync(const Model::CreatePhysicalConnectionRequest& request, const CreatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePhysicalConnectionOutcomeCallable createPhysicalConnectionCallable(const Model::CreatePhysicalConnectionRequest& request) const; @@ -1999,21 +2100,24 @@ namespace AlibabaCloud AssociateHaVipOutcome associateHaVip(const Model::AssociateHaVipRequest &request)const; void associateHaVipAsync(const Model::AssociateHaVipRequest& request, const AssociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateHaVipOutcomeCallable associateHaVipCallable(const Model::AssociateHaVipRequest& request) const; + DescribeStorageSetDetailsOutcome describeStorageSetDetails(const Model::DescribeStorageSetDetailsRequest &request)const; + void describeStorageSetDetailsAsync(const Model::DescribeStorageSetDetailsRequest& request, const DescribeStorageSetDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStorageSetDetailsOutcomeCallable describeStorageSetDetailsCallable(const Model::DescribeStorageSetDetailsRequest& request) const; ConvertNatPublicIpToEipOutcome convertNatPublicIpToEip(const Model::ConvertNatPublicIpToEipRequest &request)const; void convertNatPublicIpToEipAsync(const Model::ConvertNatPublicIpToEipRequest& request, const ConvertNatPublicIpToEipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConvertNatPublicIpToEipOutcomeCallable convertNatPublicIpToEipCallable(const Model::ConvertNatPublicIpToEipRequest& request) const; AssignIpv6AddressesOutcome assignIpv6Addresses(const Model::AssignIpv6AddressesRequest &request)const; void assignIpv6AddressesAsync(const Model::AssignIpv6AddressesRequest& request, const AssignIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssignIpv6AddressesOutcomeCallable assignIpv6AddressesCallable(const Model::AssignIpv6AddressesRequest& request) const; - DescribeCloudAssistantStatusOutcome describeCloudAssistantStatus(const Model::DescribeCloudAssistantStatusRequest &request)const; - void describeCloudAssistantStatusAsync(const Model::DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCloudAssistantStatusOutcomeCallable describeCloudAssistantStatusCallable(const Model::DescribeCloudAssistantStatusRequest& request) const; - DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; - void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; DeleteVirtualBorderRouterOutcome deleteVirtualBorderRouter(const Model::DeleteVirtualBorderRouterRequest &request)const; void deleteVirtualBorderRouterAsync(const Model::DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVirtualBorderRouterOutcomeCallable deleteVirtualBorderRouterCallable(const Model::DeleteVirtualBorderRouterRequest& request) const; + DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; + void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; + DescribeCloudAssistantStatusOutcome describeCloudAssistantStatus(const Model::DescribeCloudAssistantStatusRequest &request)const; + void describeCloudAssistantStatusAsync(const Model::DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudAssistantStatusOutcomeCallable describeCloudAssistantStatusCallable(const Model::DescribeCloudAssistantStatusRequest& request) const; UnassignIpv6AddressesOutcome unassignIpv6Addresses(const Model::UnassignIpv6AddressesRequest &request)const; void unassignIpv6AddressesAsync(const Model::UnassignIpv6AddressesRequest& request, const UnassignIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassignIpv6AddressesOutcomeCallable unassignIpv6AddressesCallable(const Model::UnassignIpv6AddressesRequest& request) const; @@ -2026,12 +2130,12 @@ namespace AlibabaCloud AttachNetworkInterfaceOutcome attachNetworkInterface(const Model::AttachNetworkInterfaceRequest &request)const; void attachNetworkInterfaceAsync(const Model::AttachNetworkInterfaceRequest& request, const AttachNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachNetworkInterfaceOutcomeCallable attachNetworkInterfaceCallable(const Model::AttachNetworkInterfaceRequest& request) const; - DescribeSecurityGroupAttributeOutcome describeSecurityGroupAttribute(const Model::DescribeSecurityGroupAttributeRequest &request)const; - void describeSecurityGroupAttributeAsync(const Model::DescribeSecurityGroupAttributeRequest& request, const DescribeSecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSecurityGroupAttributeOutcomeCallable describeSecurityGroupAttributeCallable(const Model::DescribeSecurityGroupAttributeRequest& request) const; ModifyImageSharePermissionOutcome modifyImageSharePermission(const Model::ModifyImageSharePermissionRequest &request)const; void modifyImageSharePermissionAsync(const Model::ModifyImageSharePermissionRequest& request, const ModifyImageSharePermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyImageSharePermissionOutcomeCallable modifyImageSharePermissionCallable(const Model::ModifyImageSharePermissionRequest& request) const; + DescribeSecurityGroupAttributeOutcome describeSecurityGroupAttribute(const Model::DescribeSecurityGroupAttributeRequest &request)const; + void describeSecurityGroupAttributeAsync(const Model::DescribeSecurityGroupAttributeRequest& request, const DescribeSecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityGroupAttributeOutcomeCallable describeSecurityGroupAttributeCallable(const Model::DescribeSecurityGroupAttributeRequest& request) const; DescribeAutoSnapshotPolicyExOutcome describeAutoSnapshotPolicyEx(const Model::DescribeAutoSnapshotPolicyExRequest &request)const; void describeAutoSnapshotPolicyExAsync(const Model::DescribeAutoSnapshotPolicyExRequest& request, const DescribeAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAutoSnapshotPolicyExOutcomeCallable describeAutoSnapshotPolicyExCallable(const Model::DescribeAutoSnapshotPolicyExRequest& request) const; @@ -2083,12 +2187,12 @@ namespace AlibabaCloud ModifyNetworkInterfaceAttributeOutcome modifyNetworkInterfaceAttribute(const Model::ModifyNetworkInterfaceAttributeRequest &request)const; void modifyNetworkInterfaceAttributeAsync(const Model::ModifyNetworkInterfaceAttributeRequest& request, const ModifyNetworkInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyNetworkInterfaceAttributeOutcomeCallable modifyNetworkInterfaceAttributeCallable(const Model::ModifyNetworkInterfaceAttributeRequest& request) const; - DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const; - void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const; AllocateEipAddressOutcome allocateEipAddress(const Model::AllocateEipAddressRequest &request)const; void allocateEipAddressAsync(const Model::AllocateEipAddressRequest& request, const AllocateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateEipAddressOutcomeCallable allocateEipAddressCallable(const Model::AllocateEipAddressRequest& request) const; + DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const; + void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const; UnassociateHaVipOutcome unassociateHaVip(const Model::UnassociateHaVipRequest &request)const; void unassociateHaVipAsync(const Model::UnassociateHaVipRequest& request, const UnassociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateHaVipOutcomeCallable unassociateHaVipCallable(const Model::UnassociateHaVipRequest& request) const; diff --git a/ecs/include/alibabacloud/ecs/EcsExport.h b/ecs/include/alibabacloud/ecs/EcsExport.h index f6905feed..751efe3ab 100644 --- a/ecs/include/alibabacloud/ecs/EcsExport.h +++ b/ecs/include/alibabacloud/ecs/EcsExport.h @@ -1,32 +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_ECS_ECSEXPORT_H_ -#define ALIBABACLOUD_ECS_ECSEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_ECS_LIBRARY) -# define ALIBABACLOUD_ECS_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_ECS_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_ECS_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_ECSEXPORT_H_ +#define ALIBABACLOUD_ECS_ECSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ECS_LIBRARY) +# define ALIBABACLOUD_ECS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ECS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ECS_EXPORT +#endif + #endif // !ALIBABACLOUD_ECS_ECSEXPORT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h b/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h index 5e495ff3e..796bcc26a 100644 --- a/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AcceptInquiredSystemEventRequest : public RpcServiceRequest - { - - public: - AcceptInquiredSystemEventRequest(); - ~AcceptInquiredSystemEventRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AcceptInquiredSystemEventRequest : public RpcServiceRequest + { + + public: + AcceptInquiredSystemEventRequest(); + ~AcceptInquiredSystemEventRequest(); + std::string getEventId()const; void setEventId(const std::string& eventId); long getResourceOwnerId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string eventId_; long resourceOwnerId_; long callerParentId_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventResult.h b/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventResult.h index 181f9f89f..d53d07525 100644 --- a/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventResult.h +++ b/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AcceptInquiredSystemEventResult : public ServiceResult - { - public: - - - AcceptInquiredSystemEventResult(); - explicit AcceptInquiredSystemEventResult(const std::string &payload); - ~AcceptInquiredSystemEventResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AcceptInquiredSystemEventResult : public ServiceResult + { + public: + + + AcceptInquiredSystemEventResult(); + explicit AcceptInquiredSystemEventResult(const std::string &payload); + ~AcceptInquiredSystemEventResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h index cfd6107a6..8f68d77fd 100644 --- a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - ActivateRouterInterfaceRequest(); - ~ActivateRouterInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceRequest : public RpcServiceRequest + { + + public: + ActivateRouterInterfaceRequest(); + ~ActivateRouterInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getRouterInterfaceId()const; void setRouterInterfaceId(const std::string& routerInterfaceId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; long ownerId_; std::string routerInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h index b31ac6fdf..c4aa29ac9 100644 --- a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceResult : public ServiceResult - { - public: - - - ActivateRouterInterfaceResult(); - explicit ActivateRouterInterfaceResult(const std::string &payload); - ~ActivateRouterInterfaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceResult : public ServiceResult + { + public: + + + ActivateRouterInterfaceResult(); + explicit ActivateRouterInterfaceResult(const std::string &payload); + ~ActivateRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h index dacf210ce..4202ba94b 100644 --- a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsRequest : public RpcServiceRequest - { - - public: - AddBandwidthPackageIpsRequest(); - ~AddBandwidthPackageIpsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsRequest : public RpcServiceRequest + { + + public: + AddBandwidthPackageIpsRequest(); + ~AddBandwidthPackageIpsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBandwidthPackageId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getIpCount()const; void setIpCount(const std::string& ipCount); - - private: + + private: long resourceOwnerId_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string ipCount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h index dae236e3a..cddc1f096 100644 --- a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h +++ b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsResult : public ServiceResult - { - public: - - - AddBandwidthPackageIpsResult(); - explicit AddBandwidthPackageIpsResult(const std::string &payload); - ~AddBandwidthPackageIpsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsResult : public ServiceResult + { + public: + + + AddBandwidthPackageIpsResult(); + explicit AddBandwidthPackageIpsResult(const std::string &payload); + ~AddBandwidthPackageIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h b/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h index ef6ecb9aa..01ac18f99 100644 --- a/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h @@ -1,45 +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_ECS_MODEL_ADDTAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AddTagsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddTagsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - AddTagsRequest(); - ~AddTagsRequest(); - + + public: + AddTagsRequest(); + ~AddTagsRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getResourceType()const; void setResourceType(const std::string& resourceType); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceId_; @@ -66,9 +66,9 @@ namespace AlibabaCloud std::vector tag_; long ownerId_; std::string resourceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddTagsResult.h b/ecs/include/alibabacloud/ecs/model/AddTagsResult.h index 24446993d..fcff7e62c 100644 --- a/ecs/include/alibabacloud/ecs/model/AddTagsResult.h +++ b/ecs/include/alibabacloud/ecs/model/AddTagsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ADDTAGSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ADDTAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AddTagsResult : public ServiceResult - { - public: - - - AddTagsResult(); - explicit AddTagsResult(const std::string &payload); - ~AddTagsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDTAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddTagsResult : public ServiceResult + { + public: + + + AddTagsResult(); + explicit AddTagsResult(const std::string &payload); + ~AddTagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ADDTAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h b/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h index 5713ed826..2fdbce0ea 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h @@ -1,45 +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_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocateDedicatedHostsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocateDedicatedHostsRequest : public RpcServiceRequest + { struct Tag { std::string key; std::string value; }; - - public: - AllocateDedicatedHostsRequest(); - ~AllocateDedicatedHostsRequest(); - + + public: + AllocateDedicatedHostsRequest(); + ~AllocateDedicatedHostsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -126,8 +126,8 @@ namespace AlibabaCloud void setChargeType(const std::string& chargeType); int getNetworkAttributesUdpTimeout()const; void setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -171,9 +171,9 @@ namespace AlibabaCloud std::string autoPlacement_; std::string chargeType_; int networkAttributesUdpTimeout_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsResult.h b/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsResult.h index c31876fe1..227a0904b 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsResult.h +++ b/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsResult.h @@ -1,51 +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_ECS_MODEL_ALLOCATEDEDICATEDHOSTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocateDedicatedHostsResult : public ServiceResult - { - public: - - - AllocateDedicatedHostsResult(); - explicit AllocateDedicatedHostsResult(const std::string &payload); - ~AllocateDedicatedHostsResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocateDedicatedHostsResult : public ServiceResult + { + public: + + + AllocateDedicatedHostsResult(); + explicit AllocateDedicatedHostsResult(const std::string &payload); + ~AllocateDedicatedHostsResult(); std::vector getDedicatedHostIdSets()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector dedicatedHostIdSets_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h index 44a68e777..decef78df 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressRequest : public RpcServiceRequest - { - - public: - AllocateEipAddressRequest(); - ~AllocateEipAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressRequest : public RpcServiceRequest + { + + public: + AllocateEipAddressRequest(); + ~AllocateEipAddressRequest(); + long getActivityId()const; void setActivityId(long activityId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long activityId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string iSP_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h index 6174dbee0..17037defa 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h +++ b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressResult : public ServiceResult - { - public: - - - AllocateEipAddressResult(); - explicit AllocateEipAddressResult(const std::string &payload); - ~AllocateEipAddressResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressResult : public ServiceResult + { + public: + + + AllocateEipAddressResult(); + explicit AllocateEipAddressResult(const std::string &payload); + ~AllocateEipAddressResult(); std::string getAllocationId()const; std::string getEipAddress()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string allocationId_; std::string eipAddress_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h index 09ccddac4..fd0159543 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressRequest : public RpcServiceRequest - { - - public: - AllocatePublicIpAddressRequest(); - ~AllocatePublicIpAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressRequest : public RpcServiceRequest + { + + public: + AllocatePublicIpAddressRequest(); + ~AllocatePublicIpAddressRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getIpAddress()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string ipAddress_; long resourceOwnerId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string vlanId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h index 2c9361af1..b610f8c49 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h +++ b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h @@ -1,51 +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_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressResult : public ServiceResult - { - public: - - - AllocatePublicIpAddressResult(); - explicit AllocatePublicIpAddressResult(const std::string &payload); - ~AllocatePublicIpAddressResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressResult : public ServiceResult + { + public: + + + AllocatePublicIpAddressResult(); + explicit AllocatePublicIpAddressResult(const std::string &payload); + ~AllocatePublicIpAddressResult(); std::string getIpAddress()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string ipAddress_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h index f4e67ff91..c06662cd3 100644 --- a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - ApplyAutoSnapshotPolicyRequest(); - ~ApplyAutoSnapshotPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyRequest : public RpcServiceRequest + { + + public: + ApplyAutoSnapshotPolicyRequest(); + ~ApplyAutoSnapshotPolicyRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setDiskIds(const std::string& diskIds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string autoSnapshotPolicyId_; std::string diskIds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h index ae955a70f..3e95b5824 100644 --- a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h +++ b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyResult : public ServiceResult - { - public: - - - ApplyAutoSnapshotPolicyResult(); - explicit ApplyAutoSnapshotPolicyResult(const std::string &payload); - ~ApplyAutoSnapshotPolicyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + ApplyAutoSnapshotPolicyResult(); + explicit ApplyAutoSnapshotPolicyResult(const std::string &payload); + ~ApplyAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h index 7172ed649..1fbaf791e 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesRequest : public RpcServiceRequest - { - - public: - AssignIpv6AddressesRequest(); - ~AssignIpv6AddressesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesRequest : public RpcServiceRequest + { + + public: + AssignIpv6AddressesRequest(); + ~AssignIpv6AddressesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setNetworkInterfaceId(const std::string& networkInterfaceId); std::vector getIpv6Address()const; void setIpv6Address(const std::vector& ipv6Address); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string akProxy_; std::string networkInterfaceId_; std::vector ipv6Address_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h index 92374b7bf..cc7a6704b 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h +++ b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesResult : public ServiceResult - { - public: - - - AssignIpv6AddressesResult(); - explicit AssignIpv6AddressesResult(const std::string &payload); - ~AssignIpv6AddressesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesResult : public ServiceResult + { + public: + + + AssignIpv6AddressesResult(); + explicit AssignIpv6AddressesResult(const std::string &payload); + ~AssignIpv6AddressesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h index 54fbc786b..3e3bb0569 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssignPrivateIpAddressesRequest : public RpcServiceRequest - { - - public: - AssignPrivateIpAddressesRequest(); - ~AssignPrivateIpAddressesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssignPrivateIpAddressesRequest : public RpcServiceRequest + { + + public: + AssignPrivateIpAddressesRequest(); + ~AssignPrivateIpAddressesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h index 385153eae..4364f6c1f 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h +++ b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssignPrivateIpAddressesResult : public ServiceResult - { - public: - - - AssignPrivateIpAddressesResult(); - explicit AssignPrivateIpAddressesResult(const std::string &payload); - ~AssignPrivateIpAddressesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssignPrivateIpAddressesResult : public ServiceResult + { + public: + + + AssignPrivateIpAddressesResult(); + explicit AssignPrivateIpAddressesResult(const std::string &payload); + ~AssignPrivateIpAddressesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h index cc2262a8a..d8d4186dc 100644 --- a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressRequest : public RpcServiceRequest - { - - public: - AssociateEipAddressRequest(); - ~AssociateEipAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressRequest : public RpcServiceRequest + { + + public: + AssociateEipAddressRequest(); + ~AssociateEipAddressRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getInstanceId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAllocationId(const std::string& allocationId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string instanceId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string instanceType_; std::string allocationId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h index eea671c93..15aa0d5dc 100644 --- a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h +++ b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressResult : public ServiceResult - { - public: - - - AssociateEipAddressResult(); - explicit AssociateEipAddressResult(const std::string &payload); - ~AssociateEipAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressResult : public ServiceResult + { + public: + + + AssociateEipAddressResult(); + explicit AssociateEipAddressResult(const std::string &payload); + ~AssociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h index 79ee59be6..2d05cc3da 100644 --- a/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssociateHaVipRequest : public RpcServiceRequest - { - - public: - AssociateHaVipRequest(); - ~AssociateHaVipRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateHaVipRequest : public RpcServiceRequest + { + + public: + AssociateHaVipRequest(); + ~AssociateHaVipRequest(); + std::string getHaVipId()const; void setHaVipId(const std::string& haVipId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string haVipId_; long resourceOwnerId_; std::string instanceId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h b/ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h index 0ff0bbd78..10bbf4252 100644 --- a/ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h +++ b/ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssociateHaVipResult : public ServiceResult - { - public: - - - AssociateHaVipResult(); - explicit AssociateHaVipResult(const std::string &payload); - ~AssociateHaVipResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateHaVipResult : public ServiceResult + { + public: + + + AssociateHaVipResult(); + explicit AssociateHaVipResult(const std::string &payload); + ~AssociateHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h index f05331f80..73d8207f7 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcRequest : public RpcServiceRequest - { - - public: - AttachClassicLinkVpcRequest(); - ~AttachClassicLinkVpcRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcRequest : public RpcServiceRequest + { + + public: + AttachClassicLinkVpcRequest(); + ~AttachClassicLinkVpcRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setVpcId(const std::string& vpcId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string vpcId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h index e985103ea..6b47ac436 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h +++ b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcResult : public ServiceResult - { - public: - - - AttachClassicLinkVpcResult(); - explicit AttachClassicLinkVpcResult(const std::string &payload); - ~AttachClassicLinkVpcResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcResult : public ServiceResult + { + public: + + + AttachClassicLinkVpcResult(); + explicit AttachClassicLinkVpcResult(const std::string &payload); + ~AttachClassicLinkVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h b/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h index fc49a8252..6a911451f 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachDiskRequest : public RpcServiceRequest - { - - public: - AttachDiskRequest(); - ~AttachDiskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachDiskRequest : public RpcServiceRequest + { + + public: + AttachDiskRequest(); + ~AttachDiskRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setDevice(const std::string& device); bool getDeleteWithInstance()const; void setDeleteWithInstance(bool deleteWithInstance); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string device_; bool deleteWithInstance_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachDiskResult.h b/ecs/include/alibabacloud/ecs/model/AttachDiskResult.h index ef114c921..d357aee6b 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/AttachDiskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachDiskResult : public ServiceResult - { - public: - - - AttachDiskResult(); - explicit AttachDiskResult(const std::string &payload); - ~AttachDiskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachDiskResult : public ServiceResult + { + public: + + + AttachDiskResult(); + explicit AttachDiskResult(const std::string &payload); + ~AttachDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h index 6d4291077..05342c8d5 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleRequest : public RpcServiceRequest - { - - public: - AttachInstanceRamRoleRequest(); - ~AttachInstanceRamRoleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleRequest : public RpcServiceRequest + { + + public: + AttachInstanceRamRoleRequest(); + ~AttachInstanceRamRoleRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setRamRoleName(const std::string& ramRoleName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string instanceIds_; std::string ramRoleName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h index 4f143a57c..f360bbe37 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h +++ b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleResult : public ServiceResult + { + public: struct Result { std::string message; @@ -39,26 +39,26 @@ namespace AlibabaCloud std::string code; bool success; }; - - - AttachInstanceRamRoleResult(); - explicit AttachInstanceRamRoleResult(const std::string &payload); - ~AttachInstanceRamRoleResult(); + + + AttachInstanceRamRoleResult(); + explicit AttachInstanceRamRoleResult(const std::string &payload); + ~AttachInstanceRamRoleResult(); std::vector getAttachInstanceRamRoleResults()const; int getTotalCount()const; std::string getRamRoleName()const; int getFailCount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector attachInstanceRamRoleResults_; int totalCount_; std::string ramRoleName_; int failCount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h index 103a9def7..bcc8e8656 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachKeyPairRequest : public RpcServiceRequest - { - - public: - AttachKeyPairRequest(); - ~AttachKeyPairRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachKeyPairRequest : public RpcServiceRequest + { + + public: + AttachKeyPairRequest(); + ~AttachKeyPairRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setKeyPairName(const std::string& keyPairName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string instanceIds_; std::string keyPairName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.h index f03a4f1a6..75eab7705 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.h +++ b/ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachKeyPairResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachKeyPairResult : public ServiceResult + { + public: struct Result { std::string message; @@ -39,26 +39,26 @@ namespace AlibabaCloud std::string code; std::string success; }; - - - AttachKeyPairResult(); - explicit AttachKeyPairResult(const std::string &payload); - ~AttachKeyPairResult(); + + + AttachKeyPairResult(); + explicit AttachKeyPairResult(const std::string &payload); + ~AttachKeyPairResult(); std::string getKeyPairName()const; std::string getTotalCount()const; std::vector getResults()const; std::string getFailCount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string keyPairName_; std::string totalCount_; std::vector results_; std::string failCount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h index 1af964f0a..287a1c71d 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceRequest : public RpcServiceRequest - { - - public: - AttachNetworkInterfaceRequest(); - ~AttachNetworkInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceRequest : public RpcServiceRequest + { + + public: + AttachNetworkInterfaceRequest(); + ~AttachNetworkInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h index db8b92d27..4937fefb4 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceResult : public ServiceResult - { - public: - - - AttachNetworkInterfaceResult(); - explicit AttachNetworkInterfaceResult(const std::string &payload); - ~AttachNetworkInterfaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceResult : public ServiceResult + { + public: + + + AttachNetworkInterfaceResult(); + explicit AttachNetworkInterfaceResult(const std::string &payload); + ~AttachNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h index a3381354c..c84603f8e 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressRequest : public RpcServiceRequest - { - - public: - AuthorizeSecurityGroupEgressRequest(); - ~AuthorizeSecurityGroupEgressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressRequest : public RpcServiceRequest + { + + public: + AuthorizeSecurityGroupEgressRequest(); + ~AuthorizeSecurityGroupEgressRequest(); + std::string getNicType()const; void setNicType(const std::string& nicType); long getResourceOwnerId()const; @@ -117,8 +117,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string nicType_; long resourceOwnerId_; std::string sourcePortRange_; @@ -160,9 +160,9 @@ namespace AlibabaCloud long destGroupOwnerId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h index 713d4ec67..ba212d756 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressResult : public ServiceResult - { - public: - - - AuthorizeSecurityGroupEgressResult(); - explicit AuthorizeSecurityGroupEgressResult(const std::string &payload); - ~AuthorizeSecurityGroupEgressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressResult : public ServiceResult + { + public: + + + AuthorizeSecurityGroupEgressResult(); + explicit AuthorizeSecurityGroupEgressResult(const std::string &payload); + ~AuthorizeSecurityGroupEgressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h index 14d8a7923..354c8813f 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupRequest : public RpcServiceRequest - { - - public: - AuthorizeSecurityGroupRequest(); - ~AuthorizeSecurityGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupRequest : public RpcServiceRequest + { + + public: + AuthorizeSecurityGroupRequest(); + ~AuthorizeSecurityGroupRequest(); + std::string getNicType()const; void setNicType(const std::string& nicType); long getResourceOwnerId()const; @@ -117,8 +117,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getSourceGroupId()const; void setSourceGroupId(const std::string& sourceGroupId); - - private: + + private: std::string nicType_; long resourceOwnerId_; std::string sourcePortRange_; @@ -160,9 +160,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string sourceGroupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h index 7bf1c91c0..5be18e12e 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupResult : public ServiceResult - { - public: - - - AuthorizeSecurityGroupResult(); - explicit AuthorizeSecurityGroupResult(const std::string &payload); - ~AuthorizeSecurityGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupResult : public ServiceResult + { + public: + + + AuthorizeSecurityGroupResult(); + explicit AuthorizeSecurityGroupResult(const std::string &payload); + ~AuthorizeSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h index 822439c03..d3fb87f57 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - CancelAutoSnapshotPolicyRequest(); - ~CancelAutoSnapshotPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyRequest : public RpcServiceRequest + { + + public: + CancelAutoSnapshotPolicyRequest(); + ~CancelAutoSnapshotPolicyRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setDiskIds(const std::string& diskIds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string diskIds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h index 74ab9d518..589566d3f 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h +++ b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyResult : public ServiceResult - { - public: - - - CancelAutoSnapshotPolicyResult(); - explicit CancelAutoSnapshotPolicyResult(const std::string &payload); - ~CancelAutoSnapshotPolicyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + CancelAutoSnapshotPolicyResult(); + explicit CancelAutoSnapshotPolicyResult(const std::string &payload); + ~CancelAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h b/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h index 423021a0b..ab350029c 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelCopyImageRequest : public RpcServiceRequest - { - - public: - CancelCopyImageRequest(); - ~CancelCopyImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelCopyImageRequest : public RpcServiceRequest + { + + public: + CancelCopyImageRequest(); + ~CancelCopyImageRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string imageId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.h b/ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.h index 47161e035..8927c48d4 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.h +++ b/ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelCopyImageResult : public ServiceResult - { - public: - - - CancelCopyImageResult(); - explicit CancelCopyImageResult(const std::string &payload); - ~CancelCopyImageResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelCopyImageResult : public ServiceResult + { + public: + + + CancelCopyImageResult(); + explicit CancelCopyImageResult(const std::string &payload); + ~CancelCopyImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h index 17e721d49..0c795790d 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionRequest : public RpcServiceRequest - { - - public: - CancelPhysicalConnectionRequest(); - ~CancelPhysicalConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionRequest : public RpcServiceRequest + { + + public: + CancelPhysicalConnectionRequest(); + ~CancelPhysicalConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h index 0d8bf431f..eb2ad60a5 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h +++ b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionResult : public ServiceResult - { - public: - - - CancelPhysicalConnectionResult(); - explicit CancelPhysicalConnectionResult(const std::string &payload); - ~CancelPhysicalConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionResult : public ServiceResult + { + public: + + + CancelPhysicalConnectionResult(); + explicit CancelPhysicalConnectionResult(const std::string &payload); + ~CancelPhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h b/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h index 321e5b34c..06157fec3 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelSimulatedSystemEventsRequest : public RpcServiceRequest - { - - public: - CancelSimulatedSystemEventsRequest(); - ~CancelSimulatedSystemEventsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelSimulatedSystemEventsRequest : public RpcServiceRequest + { + + public: + CancelSimulatedSystemEventsRequest(); + ~CancelSimulatedSystemEventsRequest(); + std::vector getEventId()const; void setEventId(const std::vector& eventId); long getResourceOwnerId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::vector eventId_; long resourceOwnerId_; long callerParentId_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsResult.h b/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsResult.h index f373a3dab..c142926f3 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsResult.h +++ b/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelSimulatedSystemEventsResult : public ServiceResult - { - public: - - - CancelSimulatedSystemEventsResult(); - explicit CancelSimulatedSystemEventsResult(const std::string &payload); - ~CancelSimulatedSystemEventsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelSimulatedSystemEventsResult : public ServiceResult + { + public: + + + CancelSimulatedSystemEventsResult(); + explicit CancelSimulatedSystemEventsResult(const std::string &payload); + ~CancelSimulatedSystemEventsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h b/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h index 6c7c6a790..a425a1353 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelTaskRequest : public RpcServiceRequest - { - - public: - CancelTaskRequest(); - ~CancelTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelTaskRequest : public RpcServiceRequest + { + + public: + CancelTaskRequest(); + ~CancelTaskRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getTaskId()const; void setTaskId(const std::string& taskId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; long ownerId_; std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelTaskResult.h b/ecs/include/alibabacloud/ecs/model/CancelTaskResult.h index 1a78e2da0..a7511b204 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelTaskResult.h +++ b/ecs/include/alibabacloud/ecs/model/CancelTaskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELTASKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelTaskResult : public ServiceResult - { - public: - - - CancelTaskResult(); - explicit CancelTaskResult(const std::string &payload); - ~CancelTaskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELTASKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelTaskResult : public ServiceResult + { + public: + + + CancelTaskResult(); + explicit CancelTaskResult(const std::string &payload); + ~CancelTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CANCELTASKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h index 56b55616d..c9ab244e8 100644 --- a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceRequest : public RpcServiceRequest - { - - public: - ConnectRouterInterfaceRequest(); - ~ConnectRouterInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceRequest : public RpcServiceRequest + { + + public: + ConnectRouterInterfaceRequest(); + ~ConnectRouterInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getRouterInterfaceId()const; void setRouterInterfaceId(const std::string& routerInterfaceId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; long ownerId_; std::string routerInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h index 158534295..14b634c7c 100644 --- a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceResult : public ServiceResult - { - public: - - - ConnectRouterInterfaceResult(); - explicit ConnectRouterInterfaceResult(const std::string &payload); - ~ConnectRouterInterfaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceResult : public ServiceResult + { + public: + + + ConnectRouterInterfaceResult(); + explicit ConnectRouterInterfaceResult(const std::string &payload); + ~ConnectRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h index e27fccb0e..ab93f8701 100644 --- a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipRequest : public RpcServiceRequest - { - - public: - ConvertNatPublicIpToEipRequest(); - ~ConvertNatPublicIpToEipRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipRequest : public RpcServiceRequest + { + + public: + ConvertNatPublicIpToEipRequest(); + ~ConvertNatPublicIpToEipRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -85,8 +85,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -112,9 +112,9 @@ namespace AlibabaCloud std::string instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h index 95656864a..cace344e8 100644 --- a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h +++ b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipResult : public ServiceResult - { - public: - - - ConvertNatPublicIpToEipResult(); - explicit ConvertNatPublicIpToEipResult(const std::string &payload); - ~ConvertNatPublicIpToEipResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipResult : public ServiceResult + { + public: + + + ConvertNatPublicIpToEipResult(); + explicit ConvertNatPublicIpToEipResult(const std::string &payload); + ~ConvertNatPublicIpToEipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h b/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h index 31612380e..adbe5ee06 100644 --- a/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h @@ -1,45 +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_ECS_MODEL_COPYIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CopyImageRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CopyImageRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - CopyImageRequest(); - ~CopyImageRequest(); - + + public: + CopyImageRequest(); + ~CopyImageRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getImageId()const; @@ -66,8 +66,8 @@ namespace AlibabaCloud void setKMSKeyId(const std::string& kMSKeyId); std::string getDestinationDescription()const; void setDestinationDescription(const std::string& destinationDescription); - - private: + + private: long resourceOwnerId_; std::string imageId_; std::string resourceOwnerAccount_; @@ -81,9 +81,9 @@ namespace AlibabaCloud std::vector tag_; std::string kMSKeyId_; std::string destinationDescription_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CopyImageResult.h b/ecs/include/alibabacloud/ecs/model/CopyImageResult.h index b06c38fa9..95645af4c 100644 --- a/ecs/include/alibabacloud/ecs/model/CopyImageResult.h +++ b/ecs/include/alibabacloud/ecs/model/CopyImageResult.h @@ -1,51 +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_ECS_MODEL_COPYIMAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_COPYIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CopyImageResult : public ServiceResult - { - public: - - - CopyImageResult(); - explicit CopyImageResult(const std::string &payload); - ~CopyImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_COPYIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_COPYIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CopyImageResult : public ServiceResult + { + public: + + + CopyImageResult(); + explicit CopyImageResult(const std::string &payload); + ~CopyImageResult(); std::string getImageId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string imageId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_COPYIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h index 21b74bb3c..5bf8c1ce0 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupRequest : public RpcServiceRequest + { struct LaunchTemplateConfig { std::string instanceType; @@ -38,11 +38,11 @@ namespace AlibabaCloud double weightedCapacity; int priority; }; - - public: - CreateAutoProvisioningGroupRequest(); - ~CreateAutoProvisioningGroupRequest(); - + + public: + CreateAutoProvisioningGroupRequest(); + ~CreateAutoProvisioningGroupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -133,8 +133,8 @@ namespace AlibabaCloud void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName); float getMaxSpotPrice()const; void setMaxSpotPrice(float maxSpotPrice); - - private: + + private: long resourceOwnerId_; long callerParentId_; std::string autoProvisioningGroupType_; @@ -180,9 +180,9 @@ namespace AlibabaCloud std::string validFrom_; std::string autoProvisioningGroupName_; float maxSpotPrice_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupResult.h b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupResult.h index 69d2439b9..8b5304658 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupResult.h @@ -1,51 +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_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupResult : public ServiceResult - { - public: - - - CreateAutoProvisioningGroupResult(); - explicit CreateAutoProvisioningGroupResult(const std::string &payload); - ~CreateAutoProvisioningGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupResult : public ServiceResult + { + public: + + + CreateAutoProvisioningGroupResult(); + explicit CreateAutoProvisioningGroupResult(const std::string &payload); + ~CreateAutoProvisioningGroupResult(); std::string getAutoProvisioningGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string autoProvisioningGroupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h index 08ea28fae..d56078ae4 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - CreateAutoSnapshotPolicyRequest(); - ~CreateAutoSnapshotPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyRequest : public RpcServiceRequest + { + + public: + CreateAutoSnapshotPolicyRequest(); + ~CreateAutoSnapshotPolicyRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setRepeatWeekdays(const std::string& repeatWeekdays); std::string getAutoSnapshotPolicyName()const; void setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string repeatWeekdays_; std::string autoSnapshotPolicyName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h index 36b0cfed6..25ab56ca8 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h @@ -1,51 +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_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyResult : public ServiceResult - { - public: - - - CreateAutoSnapshotPolicyResult(); - explicit CreateAutoSnapshotPolicyResult(const std::string &payload); - ~CreateAutoSnapshotPolicyResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + CreateAutoSnapshotPolicyResult(); + explicit CreateAutoSnapshotPolicyResult(const std::string &payload); + ~CreateAutoSnapshotPolicyResult(); std::string getAutoSnapshotPolicyId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string autoSnapshotPolicyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h index 458bca7fb..47aa33be7 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateCommandRequest : public RpcServiceRequest - { - - public: - CreateCommandRequest(); - ~CreateCommandRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateCommandRequest : public RpcServiceRequest + { + + public: + CreateCommandRequest(); + ~CreateCommandRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -99,8 +99,8 @@ namespace AlibabaCloud void setName(const std::string& name); bool getEnableParameter()const; void setEnableParameter(bool enableParameter); - - private: + + private: long resourceOwnerId_; long callerParentId_; std::string workingDir_; @@ -133,9 +133,9 @@ namespace AlibabaCloud std::string akProxy_; std::string name_; bool enableParameter_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateCommandResult.h b/ecs/include/alibabacloud/ecs/model/CreateCommandResult.h index d2e517883..9a237329c 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateCommandResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateCommandResult.h @@ -1,51 +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_ECS_MODEL_CREATECOMMANDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateCommandResult : public ServiceResult - { - public: - - - CreateCommandResult(); - explicit CreateCommandResult(const std::string &payload); - ~CreateCommandResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATECOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateCommandResult : public ServiceResult + { + public: + + + CreateCommandResult(); + explicit CreateCommandResult(const std::string &payload); + ~CreateCommandResult(); std::string getCommandId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string commandId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATECOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h index 95bd075d0..ddb8913df 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetRequest : public RpcServiceRequest - { - - public: - CreateDeploymentSetRequest(); - ~CreateDeploymentSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetRequest : public RpcServiceRequest + { + + public: + CreateDeploymentSetRequest(); + ~CreateDeploymentSetRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setDomain(const std::string& domain); std::string getStrategy()const; void setStrategy(const std::string& strategy); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string granularity_; std::string domain_; std::string strategy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h index b50ad05c4..c2c9a5dec 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h @@ -1,51 +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_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetResult : public ServiceResult - { - public: - - - CreateDeploymentSetResult(); - explicit CreateDeploymentSetResult(const std::string &payload); - ~CreateDeploymentSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetResult : public ServiceResult + { + public: + + + CreateDeploymentSetResult(); + explicit CreateDeploymentSetResult(const std::string &payload); + ~CreateDeploymentSetResult(); std::string getDeploymentSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string deploymentSetId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h index 8141fea1c..7e60d1f10 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDiskRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDiskRequest : public RpcServiceRequest + { struct Tag { std::string value; @@ -41,11 +41,11 @@ namespace AlibabaCloud std::string roleType; long assumeRoleFor; }; - - public: - CreateDiskRequest(); - ~CreateDiskRequest(); - + + public: + CreateDiskRequest(); + ~CreateDiskRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSnapshotId()const; @@ -92,8 +92,8 @@ namespace AlibabaCloud void setKMSKeyId(const std::string& kMSKeyId); std::string getAdvancedFeatures()const; void setAdvancedFeatures(const std::string& advancedFeatures); - - private: + + private: long resourceOwnerId_; std::string snapshotId_; std::string resourceOwnerAccount_; @@ -117,9 +117,9 @@ namespace AlibabaCloud std::vector arn_; std::string kMSKeyId_; std::string advancedFeatures_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h b/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h index ddf93ea4c..a76ea81f1 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h @@ -1,51 +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_ECS_MODEL_CREATEDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDiskResult : public ServiceResult - { - public: - - - CreateDiskResult(); - explicit CreateDiskResult(const std::string &payload); - ~CreateDiskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDiskResult : public ServiceResult + { + public: + + + CreateDiskResult(); + explicit CreateDiskResult(const std::string &payload); + ~CreateDiskResult(); std::string getDiskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string diskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateFleetRequest.h b/ecs/include/alibabacloud/ecs/model/CreateFleetRequest.h index 9b84581ff..273b1b342 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateFleetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateFleetRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateFleetRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateFleetRequest : public RpcServiceRequest + { struct LaunchTemplateConfig { std::string instanceType; @@ -38,11 +38,11 @@ namespace AlibabaCloud double weightedCapacity; int priority; }; - - public: - CreateFleetRequest(); - ~CreateFleetRequest(); - + + public: + CreateFleetRequest(); + ~CreateFleetRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getFleetType()const; @@ -133,8 +133,8 @@ namespace AlibabaCloud void setValidFrom(const std::string& validFrom); float getMaxSpotPrice()const; void setMaxSpotPrice(float maxSpotPrice); - - private: + + private: long resourceOwnerId_; std::string fleetType_; long callerParentId_; @@ -180,9 +180,9 @@ namespace AlibabaCloud std::string spotTargetCapacity_; std::string validFrom_; float maxSpotPrice_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateFleetResult.h b/ecs/include/alibabacloud/ecs/model/CreateFleetResult.h index 0f0d08554..60cd790a3 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateFleetResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateFleetResult.h @@ -1,51 +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_ECS_MODEL_CREATEFLEETRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateFleetResult : public ServiceResult - { - public: - - - CreateFleetResult(); - explicit CreateFleetResult(const std::string &payload); - ~CreateFleetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateFleetResult : public ServiceResult + { + public: + + + CreateFleetResult(); + explicit CreateFleetResult(const std::string &payload); + ~CreateFleetResult(); std::string getFleetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string fleetId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEFLEETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h index b48215860..bdbc47f23 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryRequest : public RpcServiceRequest - { - - public: - CreateForwardEntryRequest(); - ~CreateForwardEntryRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryRequest : public RpcServiceRequest + { + + public: + CreateForwardEntryRequest(); + ~CreateForwardEntryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setExternalPort(const std::string& externalPort); std::string getInternalIp()const; void setInternalIp(const std::string& internalIp); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string externalIp_; std::string externalPort_; std::string internalIp_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h index 986c54eaf..b0a8c2a78 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h @@ -1,51 +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_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryResult : public ServiceResult - { - public: - - - CreateForwardEntryResult(); - explicit CreateForwardEntryResult(const std::string &payload); - ~CreateForwardEntryResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryResult : public ServiceResult + { + public: + + + CreateForwardEntryResult(); + explicit CreateForwardEntryResult(const std::string &payload); + ~CreateForwardEntryResult(); std::string getForwardEntryId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string forwardEntryId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h index 5c337c267..0ed0c95ff 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateHaVipRequest : public RpcServiceRequest - { - - public: - CreateHaVipRequest(); - ~CreateHaVipRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHaVipRequest : public RpcServiceRequest + { + + public: + CreateHaVipRequest(); + ~CreateHaVipRequest(); + std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); std::string getIpAddress()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setDescription(const std::string& description); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string vSwitchId_; std::string ipAddress_; long resourceOwnerId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string description_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h b/ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h index 6a60125d0..33378bbff 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h @@ -1,51 +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_ECS_MODEL_CREATEHAVIPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateHaVipResult : public ServiceResult - { - public: - - - CreateHaVipResult(); - explicit CreateHaVipResult(const std::string &payload); - ~CreateHaVipResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHaVipResult : public ServiceResult + { + public: + + + CreateHaVipResult(); + explicit CreateHaVipResult(const std::string &payload); + ~CreateHaVipResult(); std::string getHaVipId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string haVipId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h index afe383177..26d84bcb8 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterRequest : public RpcServiceRequest - { - - public: - CreateHpcClusterRequest(); - ~CreateHpcClusterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterRequest : public RpcServiceRequest + { + + public: + CreateHpcClusterRequest(); + ~CreateHpcClusterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getName()const; void setName(const std::string& name); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h index 7463de556..acf0245e2 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h @@ -1,51 +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_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterResult : public ServiceResult - { - public: - - - CreateHpcClusterResult(); - explicit CreateHpcClusterResult(const std::string &payload); - ~CreateHpcClusterResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterResult : public ServiceResult + { + public: + + + CreateHpcClusterResult(); + explicit CreateHpcClusterResult(const std::string &payload); + ~CreateHpcClusterResult(); std::string getHpcClusterId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string hpcClusterId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h index d6749f44a..67fafcd41 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateImageRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImageRequest : public RpcServiceRequest + { struct DiskDeviceMapping { std::string snapshotId; @@ -42,11 +42,11 @@ namespace AlibabaCloud std::string value; std::string key; }; - - public: - CreateImageRequest(); - ~CreateImageRequest(); - + + public: + CreateImageRequest(); + ~CreateImageRequest(); + std::vector getDiskDeviceMapping()const; void setDiskDeviceMapping(const std::vector& diskDeviceMapping); long getResourceOwnerId()const; @@ -81,8 +81,8 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getArchitecture()const; void setArchitecture(const std::string& architecture); - - private: + + private: std::vector diskDeviceMapping_; long resourceOwnerId_; std::string snapshotId_; @@ -100,9 +100,9 @@ namespace AlibabaCloud std::string imageVersion_; std::vector tag_; std::string architecture_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageResult.h b/ecs/include/alibabacloud/ecs/model/CreateImageResult.h index f72f78639..907427b8a 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImageResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImageResult.h @@ -1,51 +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_ECS_MODEL_CREATEIMAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateImageResult : public ServiceResult - { - public: - - - CreateImageResult(); - explicit CreateImageResult(const std::string &payload); - ~CreateImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImageResult : public ServiceResult + { + public: + + + CreateImageResult(); + explicit CreateImageResult(const std::string &payload); + ~CreateImageResult(); std::string getImageId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string imageId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h index 98bd01d41..029ce8d69 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateInstanceRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateInstanceRequest : public RpcServiceRequest + { struct Tag { std::string value; @@ -54,11 +54,11 @@ namespace AlibabaCloud std::string device; bool deleteWithInstance; }; - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - + + public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getHpcClusterId()const; @@ -179,8 +179,8 @@ namespace AlibabaCloud void setSystemDiskSize(int systemDiskSize); std::string getSystemDiskDescription()const; void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: + + private: long resourceOwnerId_; std::string hpcClusterId_; std::string securityEnhancementStrategy_; @@ -241,9 +241,9 @@ namespace AlibabaCloud std::string storageSetId_; int systemDiskSize_; std::string systemDiskDescription_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h b/ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h index e972119df..753a73f84 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateInstanceResult : public ServiceResult - { - public: - - - CreateInstanceResult(); - explicit CreateInstanceResult(const std::string &payload); - ~CreateInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateInstanceResult : public ServiceResult + { + public: + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); std::string getInstanceId()const; float getTradePrice()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string instanceId_; float tradePrice_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h index 706382b25..aa6fe976f 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h @@ -1,45 +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_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateKeyPairRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateKeyPairRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - CreateKeyPairRequest(); - ~CreateKeyPairRequest(); - + + public: + CreateKeyPairRequest(); + ~CreateKeyPairRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getResourceGroupId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setTag(const std::vector& tag); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string resourceGroupId_; long resourceOwnerId_; @@ -66,9 +66,9 @@ namespace AlibabaCloud std::string keyPairName_; std::vector tag_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.h index 0f7341425..5d8d65c93 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.h @@ -1,57 +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_ECS_MODEL_CREATEKEYPAIRRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateKeyPairResult : public ServiceResult - { - public: - - - CreateKeyPairResult(); - explicit CreateKeyPairResult(const std::string &payload); - ~CreateKeyPairResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateKeyPairResult : public ServiceResult + { + public: + + + CreateKeyPairResult(); + explicit CreateKeyPairResult(const std::string &payload); + ~CreateKeyPairResult(); std::string getKeyPairFingerPrint()const; std::string getKeyPairName()const; std::string getKeyPairId()const; std::string getPrivateKeyBody()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string keyPairFingerPrint_; std::string keyPairName_; std::string keyPairId_; std::string privateKeyBody_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h index 77ea77d74..c1ccb8af9 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateRequest : public RpcServiceRequest + { struct TemplateTag { std::string key; @@ -59,11 +59,11 @@ namespace AlibabaCloud bool deleteWithInstance; std::string device; }; - - public: - CreateLaunchTemplateRequest(); - ~CreateLaunchTemplateRequest(); - + + public: + CreateLaunchTemplateRequest(); + ~CreateLaunchTemplateRequest(); + std::string getLaunchTemplateName()const; void setLaunchTemplateName(const std::string& launchTemplateName); long getResourceOwnerId()const; @@ -194,8 +194,8 @@ namespace AlibabaCloud void setVpcId(const std::string& vpcId); std::string getSystemDiskDescription()const; void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: + + private: std::string launchTemplateName_; long resourceOwnerId_; long callerParentId_; @@ -261,9 +261,9 @@ namespace AlibabaCloud int systemDiskSize_; std::string vpcId_; std::string systemDiskDescription_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h index 3ebde5534..ada3cd53a 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h @@ -1,51 +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_ECS_MODEL_CREATELAUNCHTEMPLATERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateResult : public ServiceResult - { - public: - - - CreateLaunchTemplateResult(); - explicit CreateLaunchTemplateResult(const std::string &payload); - ~CreateLaunchTemplateResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateResult : public ServiceResult + { + public: + + + CreateLaunchTemplateResult(); + explicit CreateLaunchTemplateResult(const std::string &payload); + ~CreateLaunchTemplateResult(); std::string getLaunchTemplateId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string launchTemplateId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h index beb1cc919..19b131f2a 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateVersionRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateVersionRequest : public RpcServiceRequest + { struct Tag { std::string key; @@ -54,11 +54,11 @@ namespace AlibabaCloud bool deleteWithInstance; std::string device; }; - - public: - CreateLaunchTemplateVersionRequest(); - ~CreateLaunchTemplateVersionRequest(); - + + public: + CreateLaunchTemplateVersionRequest(); + ~CreateLaunchTemplateVersionRequest(); + std::string getLaunchTemplateName()const; void setLaunchTemplateName(const std::string& launchTemplateName); long getResourceOwnerId()const; @@ -187,8 +187,8 @@ namespace AlibabaCloud void setVpcId(const std::string& vpcId); std::string getSystemDiskDescription()const; void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: + + private: std::string launchTemplateName_; long resourceOwnerId_; long callerParentId_; @@ -253,9 +253,9 @@ namespace AlibabaCloud int systemDiskSize_; std::string vpcId_; std::string systemDiskDescription_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h index d1b39859b..ca735be61 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h @@ -1,51 +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_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateVersionResult : public ServiceResult - { - public: - - - CreateLaunchTemplateVersionResult(); - explicit CreateLaunchTemplateVersionResult(const std::string &payload); - ~CreateLaunchTemplateVersionResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateVersionResult : public ServiceResult + { + public: + + + CreateLaunchTemplateVersionResult(); + explicit CreateLaunchTemplateVersionResult(const std::string &payload); + ~CreateLaunchTemplateVersionResult(); long getLaunchTemplateVersionNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long launchTemplateVersionNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h index d3e8e5b79..60367c90d 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h @@ -1,46 +1,46 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayRequest : public RpcServiceRequest + { struct BandwidthPackage { int bandwidth; std::string zone; int ipCount; }; - - public: - CreateNatGatewayRequest(); - ~CreateNatGatewayRequest(); - + + public: + CreateNatGatewayRequest(); + ~CreateNatGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::vector getBandwidthPackage()const; void setBandwidthPackage(const std::vector& bandwidthPackage); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string description_; long ownerId_; std::vector bandwidthPackage_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.h b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.h index 2fc84d461..8f4185d98 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.h @@ -1,55 +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_ECS_MODEL_CREATENATGATEWAYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayResult : public ServiceResult - { - public: - - - CreateNatGatewayResult(); - explicit CreateNatGatewayResult(const std::string &payload); - ~CreateNatGatewayResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayResult : public ServiceResult + { + public: + + + CreateNatGatewayResult(); + explicit CreateNatGatewayResult(const std::string &payload); + ~CreateNatGatewayResult(); std::vector getForwardTableIds()const; std::vector getBandwidthPackageIds()const; std::string getNatGatewayId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector forwardTableIds_; std::vector bandwidthPackageIds_; std::string natGatewayId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h index 1ea0026c9..a9c2063e2 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfacePermissionRequest : public RpcServiceRequest - { - - public: - CreateNetworkInterfacePermissionRequest(); - ~CreateNetworkInterfacePermissionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfacePermissionRequest : public RpcServiceRequest + { + + public: + CreateNetworkInterfacePermissionRequest(); + ~CreateNetworkInterfacePermissionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h index 70fe4e543..69a3e41be 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfacePermissionResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfacePermissionResult : public ServiceResult + { + public: struct NetworkInterfacePermission { std::string permissionState; @@ -41,20 +41,20 @@ namespace AlibabaCloud std::string permission; std::string networkInterfaceId; }; - - - CreateNetworkInterfacePermissionResult(); - explicit CreateNetworkInterfacePermissionResult(const std::string &payload); - ~CreateNetworkInterfacePermissionResult(); + + + CreateNetworkInterfacePermissionResult(); + explicit CreateNetworkInterfacePermissionResult(const std::string &payload); + ~CreateNetworkInterfacePermissionResult(); NetworkInterfacePermission getNetworkInterfacePermission()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: NetworkInterfacePermission networkInterfacePermission_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h index 08ca8d2e7..85419db0e 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h @@ -1,45 +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_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceRequest : public RpcServiceRequest + { struct Tag { std::string key; std::string value; }; - - public: - CreateNetworkInterfaceRequest(); - ~CreateNetworkInterfaceRequest(); - + + public: + CreateNetworkInterfaceRequest(); + ~CreateNetworkInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -110,8 +110,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getPrimaryIpAddress()const; void setPrimaryIpAddress(const std::string& primaryIpAddress); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -147,9 +147,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string primaryIpAddress_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h index b66c4510e..50786b97f 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h @@ -1,51 +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_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceResult : public ServiceResult - { - public: - - - CreateNetworkInterfaceResult(); - explicit CreateNetworkInterfaceResult(const std::string &payload); - ~CreateNetworkInterfaceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceResult : public ServiceResult + { + public: + + + CreateNetworkInterfaceResult(); + explicit CreateNetworkInterfaceResult(const std::string &payload); + ~CreateNetworkInterfaceResult(); std::string getNetworkInterfaceId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h index d11fc62ae..f648ac08f 100644 --- a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - CreatePhysicalConnectionRequest(); - ~CreatePhysicalConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionRequest : public RpcServiceRequest + { + + public: + CreatePhysicalConnectionRequest(); + ~CreatePhysicalConnectionRequest(); + std::string getAccessPointId()const; void setAccessPointId(const std::string& accessPointId); std::string getRedundantPhysicalConnectionId()const; @@ -69,8 +69,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getUserCidr()const; void setUserCidr(const std::string& userCidr); - - private: + + private: std::string accessPointId_; std::string redundantPhysicalConnectionId_; std::string peerLocation_; @@ -88,9 +88,9 @@ namespace AlibabaCloud std::string regionId_; std::string name_; std::string userCidr_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h index 89e12637f..e326c62db 100644 --- a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h @@ -1,51 +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_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionResult : public ServiceResult - { - public: - - - CreatePhysicalConnectionResult(); - explicit CreatePhysicalConnectionResult(const std::string &payload); - ~CreatePhysicalConnectionResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionResult : public ServiceResult + { + public: + + + CreatePhysicalConnectionResult(); + explicit CreatePhysicalConnectionResult(const std::string &payload); + ~CreatePhysicalConnectionResult(); std::string getPhysicalConnectionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string physicalConnectionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h index f73e0f185..30ed1299d 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h @@ -1,45 +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_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryRequest : public RpcServiceRequest + { struct NextHopList { std::string nextHopId; std::string nextHopType; }; - - public: - CreateRouteEntryRequest(); - ~CreateRouteEntryRequest(); - + + public: + CreateRouteEntryRequest(); + ~CreateRouteEntryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud void setNextHopList(const std::vector& nextHopList); std::string getRouteTableId()const; void setRouteTableId(const std::string& routeTableId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -75,9 +75,9 @@ namespace AlibabaCloud std::string nextHopType_; std::vector nextHopList_; std::string routeTableId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h index ee659078c..7c5794fb1 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryResult : public ServiceResult - { - public: - - - CreateRouteEntryResult(); - explicit CreateRouteEntryResult(const std::string &payload); - ~CreateRouteEntryResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryResult : public ServiceResult + { + public: + + + CreateRouteEntryResult(); + explicit CreateRouteEntryResult(const std::string &payload); + ~CreateRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h index 88882ada0..455ad9535 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - CreateRouterInterfaceRequest(); - ~CreateRouterInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceRequest : public RpcServiceRequest + { + + public: + CreateRouterInterfaceRequest(); + ~CreateRouterInterfaceRequest(); + std::string getAccessPointId()const; void setAccessPointId(const std::string& accessPointId); std::string getOppositeRouterId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getPricingCycle()const; void setPricingCycle(const std::string& pricingCycle); - - private: + + private: std::string accessPointId_; std::string oppositeRouterId_; std::string oppositeAccessPointId_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string oppositeRouterType_; std::string name_; std::string pricingCycle_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h index bc75cda06..d43906d2b 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceResult : public ServiceResult - { - public: - - - CreateRouterInterfaceResult(); - explicit CreateRouterInterfaceResult(const std::string &payload); - ~CreateRouterInterfaceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceResult : public ServiceResult + { + public: + + + CreateRouterInterfaceResult(); + explicit CreateRouterInterfaceResult(const std::string &payload); + ~CreateRouterInterfaceResult(); long getOrderId()const; std::string getRouterInterfaceId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long orderId_; std::string routerInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h index 1a6a90f92..edcb51173 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h @@ -1,45 +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_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - CreateSecurityGroupRequest(); - ~CreateSecurityGroupRequest(); - + + public: + CreateSecurityGroupRequest(); + ~CreateSecurityGroupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -66,8 +66,8 @@ namespace AlibabaCloud void setVpcId(const std::string& vpcId); std::vector getTag()const; void setTag(const std::vector& tag); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -81,9 +81,9 @@ namespace AlibabaCloud std::string regionId_; std::string vpcId_; std::vector tag_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h index 8f690d8dd..cc5f302ae 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h @@ -1,51 +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_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupResult : public ServiceResult - { - public: - - - CreateSecurityGroupResult(); - explicit CreateSecurityGroupResult(const std::string &payload); - ~CreateSecurityGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupResult : public ServiceResult + { + public: + + + CreateSecurityGroupResult(); + explicit CreateSecurityGroupResult(const std::string &payload); + ~CreateSecurityGroupResult(); std::string getSecurityGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string securityGroupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h index 23af0f25d..4add9674b 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSimulatedSystemEventsRequest : public RpcServiceRequest - { - - public: - CreateSimulatedSystemEventsRequest(); - ~CreateSimulatedSystemEventsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSimulatedSystemEventsRequest : public RpcServiceRequest + { + + public: + CreateSimulatedSystemEventsRequest(); + ~CreateSimulatedSystemEventsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getNotBefore()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getEventType()const; void setEventType(const std::string& eventType); - - private: + + private: long resourceOwnerId_; std::string notBefore_; long callerParentId_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string eventType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsResult.h b/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsResult.h index 615e26be2..b7351dad8 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsResult.h @@ -1,51 +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_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSimulatedSystemEventsResult : public ServiceResult - { - public: - - - CreateSimulatedSystemEventsResult(); - explicit CreateSimulatedSystemEventsResult(const std::string &payload); - ~CreateSimulatedSystemEventsResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSimulatedSystemEventsResult : public ServiceResult + { + public: + + + CreateSimulatedSystemEventsResult(); + explicit CreateSimulatedSystemEventsResult(const std::string &payload); + ~CreateSimulatedSystemEventsResult(); std::vector getEventIdSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector eventIdSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h index a642bf000..26d9af194 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h @@ -1,45 +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_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSnapshotRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSnapshotRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - CreateSnapshotRequest(); - ~CreateSnapshotRequest(); - + + public: + CreateSnapshotRequest(); + ~CreateSnapshotRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -68,8 +68,8 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getCategory()const; void setCategory(const std::string& category); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -84,9 +84,9 @@ namespace AlibabaCloud int retentionDays_; std::vector tag_; std::string category_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h index 4eb66f784..a05718fe3 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h @@ -1,51 +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_ECS_MODEL_CREATESNAPSHOTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSnapshotResult : public ServiceResult - { - public: - - - CreateSnapshotResult(); - explicit CreateSnapshotResult(const std::string &payload); - ~CreateSnapshotResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSnapshotResult : public ServiceResult + { + public: + + + CreateSnapshotResult(); + explicit CreateSnapshotResult(const std::string &payload); + ~CreateSnapshotResult(); std::string getSnapshotId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string snapshotId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h b/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h index 5b39517ac..eee5977bc 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateStorageSetRequest : public RpcServiceRequest - { - - public: - CreateStorageSetRequest(); - ~CreateStorageSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateStorageSetRequest : public RpcServiceRequest + { + + public: + CreateStorageSetRequest(); + ~CreateStorageSetRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -95,8 +95,8 @@ namespace AlibabaCloud void setZoneId(const std::string& zoneId); std::string getStorageSetName()const; void setStorageSetName(const std::string& storageSetName); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -127,9 +127,9 @@ namespace AlibabaCloud std::string akProxy_; std::string zoneId_; std::string storageSetName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateStorageSetResult.h b/ecs/include/alibabacloud/ecs/model/CreateStorageSetResult.h index 1222c64c7..c9912f135 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateStorageSetResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateStorageSetResult.h @@ -1,51 +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_ECS_MODEL_CREATESTORAGESETRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateStorageSetResult : public ServiceResult - { - public: - - - CreateStorageSetResult(); - explicit CreateStorageSetResult(const std::string &payload); - ~CreateStorageSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateStorageSetResult : public ServiceResult + { + public: + + + CreateStorageSetResult(); + explicit CreateStorageSetResult(const std::string &payload); + ~CreateStorageSetResult(); std::string getStorageSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string storageSetId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h index e0a3064da..8a71bbd22 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVSwitchRequest : public RpcServiceRequest - { - - public: - CreateVSwitchRequest(); - ~CreateVSwitchRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVSwitchRequest : public RpcServiceRequest + { + + public: + CreateVSwitchRequest(); + ~CreateVSwitchRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setDescription(const std::string& description); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string zoneId_; std::string description_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h b/ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h index be3c59f82..4263efc5d 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h @@ -1,51 +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_ECS_MODEL_CREATEVSWITCHRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVSwitchResult : public ServiceResult - { - public: - - - CreateVSwitchResult(); - explicit CreateVSwitchResult(const std::string &payload); - ~CreateVSwitchResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVSwitchResult : public ServiceResult + { + public: + + + CreateVSwitchResult(); + explicit CreateVSwitchResult(const std::string &payload); + ~CreateVSwitchResult(); std::string getVSwitchId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string vSwitchId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h index c0f29fb0e..386099072 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - CreateVirtualBorderRouterRequest(); - ~CreateVirtualBorderRouterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterRequest : public RpcServiceRequest + { + + public: + CreateVirtualBorderRouterRequest(); + ~CreateVirtualBorderRouterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getCircuitCode()const; @@ -67,8 +67,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getVbrOwnerId()const; void setVbrOwnerId(long vbrOwnerId); - - private: + + private: long resourceOwnerId_; std::string circuitCode_; int vlanId_; @@ -85,9 +85,9 @@ namespace AlibabaCloud std::string localGatewayIp_; std::string userCidr_; long vbrOwnerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h index b42d41e35..03a4f3229 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h @@ -1,51 +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_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterResult : public ServiceResult - { - public: - - - CreateVirtualBorderRouterResult(); - explicit CreateVirtualBorderRouterResult(const std::string &payload); - ~CreateVirtualBorderRouterResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterResult : public ServiceResult + { + public: + + + CreateVirtualBorderRouterResult(); + explicit CreateVirtualBorderRouterResult(const std::string &payload); + ~CreateVirtualBorderRouterResult(); std::string getVbrId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string vbrId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h index f14bd3b4c..da6245571 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVpcRequest : public RpcServiceRequest - { - - public: - CreateVpcRequest(); - ~CreateVpcRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVpcRequest : public RpcServiceRequest + { + + public: + CreateVpcRequest(); + ~CreateVpcRequest(); + std::string getVpcName()const; void setVpcName(const std::string& vpcName); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string vpcName_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string description_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVpcResult.h b/ecs/include/alibabacloud/ecs/model/CreateVpcResult.h index 99b7a9e46..763597890 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVpcResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVpcResult.h @@ -1,55 +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_ECS_MODEL_CREATEVPCRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVPCRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVpcResult : public ServiceResult - { - public: - - - CreateVpcResult(); - explicit CreateVpcResult(const std::string &payload); - ~CreateVpcResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVpcResult : public ServiceResult + { + public: + + + CreateVpcResult(); + explicit CreateVpcResult(const std::string &payload); + ~CreateVpcResult(); std::string getVRouterId()const; std::string getRouteTableId()const; std::string getVpcId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string vRouterId_; std::string routeTableId_; std::string vpcId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_CREATEVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h index 8d788e0fd..aeae0251b 100644 --- a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - DeactivateRouterInterfaceRequest(); - ~DeactivateRouterInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceRequest : public RpcServiceRequest + { + + public: + DeactivateRouterInterfaceRequest(); + ~DeactivateRouterInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getRouterInterfaceId()const; void setRouterInterfaceId(const std::string& routerInterfaceId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; long ownerId_; std::string routerInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h index 443319db3..5c2ddaca5 100644 --- a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceResult : public ServiceResult - { - public: - - - DeactivateRouterInterfaceResult(); - explicit DeactivateRouterInterfaceResult(const std::string &payload); - ~DeactivateRouterInterfaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceResult : public ServiceResult + { + public: + + + DeactivateRouterInterfaceResult(); + explicit DeactivateRouterInterfaceResult(const std::string &payload); + ~DeactivateRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h index 5c710f337..bae14cfbb 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteAutoProvisioningGroupRequest : public RpcServiceRequest - { - - public: - DeleteAutoProvisioningGroupRequest(); - ~DeleteAutoProvisioningGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteAutoProvisioningGroupRequest : public RpcServiceRequest + { + + public: + DeleteAutoProvisioningGroupRequest(); + ~DeleteAutoProvisioningGroupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupResult.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupResult.h index 8a86962dd..654f78f6c 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteAutoProvisioningGroupResult : public ServiceResult - { - public: - - - DeleteAutoProvisioningGroupResult(); - explicit DeleteAutoProvisioningGroupResult(const std::string &payload); - ~DeleteAutoProvisioningGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteAutoProvisioningGroupResult : public ServiceResult + { + public: + + + DeleteAutoProvisioningGroupResult(); + explicit DeleteAutoProvisioningGroupResult(const std::string &payload); + ~DeleteAutoProvisioningGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h index 120d534b4..2fcff1fa7 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - DeleteAutoSnapshotPolicyRequest(); - ~DeleteAutoSnapshotPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyRequest : public RpcServiceRequest + { + + public: + DeleteAutoSnapshotPolicyRequest(); + ~DeleteAutoSnapshotPolicyRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string autoSnapshotPolicyId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h index 810c119ec..a0230c244 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyResult : public ServiceResult - { - public: - - - DeleteAutoSnapshotPolicyResult(); - explicit DeleteAutoSnapshotPolicyResult(const std::string &payload); - ~DeleteAutoSnapshotPolicyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + DeleteAutoSnapshotPolicyResult(); + explicit DeleteAutoSnapshotPolicyResult(const std::string &payload); + ~DeleteAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h index 20a31abb1..c6205f7ce 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageRequest : public RpcServiceRequest - { - - public: - DeleteBandwidthPackageRequest(); - ~DeleteBandwidthPackageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageRequest : public RpcServiceRequest + { + + public: + DeleteBandwidthPackageRequest(); + ~DeleteBandwidthPackageRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBandwidthPackageId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h index 0a598e3f3..bdd40b688 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageResult : public ServiceResult - { - public: - - - DeleteBandwidthPackageResult(); - explicit DeleteBandwidthPackageResult(const std::string &payload); - ~DeleteBandwidthPackageResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageResult : public ServiceResult + { + public: + + + DeleteBandwidthPackageResult(); + explicit DeleteBandwidthPackageResult(const std::string &payload); + ~DeleteBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h index d3356bec3..f46a97836 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteCommandRequest : public RpcServiceRequest - { - - public: - DeleteCommandRequest(); - ~DeleteCommandRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteCommandRequest : public RpcServiceRequest + { + + public: + DeleteCommandRequest(); + ~DeleteCommandRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteCommandResult.h b/ecs/include/alibabacloud/ecs/model/DeleteCommandResult.h index 15cd67206..2f5b77f7e 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteCommandResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteCommandResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETECOMMANDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteCommandResult : public ServiceResult - { - public: - - - DeleteCommandResult(); - explicit DeleteCommandResult(const std::string &payload); - ~DeleteCommandResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETECOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteCommandResult : public ServiceResult + { + public: + + + DeleteCommandResult(); + explicit DeleteCommandResult(const std::string &payload); + ~DeleteCommandResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETECOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h index f8931f626..c25215f74 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetRequest : public RpcServiceRequest - { - - public: - DeleteDeploymentSetRequest(); - ~DeleteDeploymentSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetRequest : public RpcServiceRequest + { + + public: + DeleteDeploymentSetRequest(); + ~DeleteDeploymentSetRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getDeploymentSetId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string deploymentSetId_; long resourceOwnerId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h index 5623e80b5..fc6cb45e6 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetResult : public ServiceResult - { - public: - - - DeleteDeploymentSetResult(); - explicit DeleteDeploymentSetResult(const std::string &payload); - ~DeleteDeploymentSetResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetResult : public ServiceResult + { + public: + + + DeleteDeploymentSetResult(); + explicit DeleteDeploymentSetResult(const std::string &payload); + ~DeleteDeploymentSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h index 126ae5d22..d5b05e25f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDiskRequest : public RpcServiceRequest - { - - public: - DeleteDiskRequest(); - ~DeleteDiskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDiskRequest : public RpcServiceRequest + { + + public: + DeleteDiskRequest(); + ~DeleteDiskRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setDiskId(const std::string& diskId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string diskId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDiskResult.h b/ecs/include/alibabacloud/ecs/model/DeleteDiskResult.h index 395107bfc..e13c9e24d 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDiskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDiskResult : public ServiceResult - { - public: - - - DeleteDiskResult(); - explicit DeleteDiskResult(const std::string &payload); - ~DeleteDiskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDiskResult : public ServiceResult + { + public: + + + DeleteDiskResult(); + explicit DeleteDiskResult(const std::string &payload); + ~DeleteDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteFleetRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteFleetRequest.h index 93842413d..43cbbc08b 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteFleetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteFleetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFLEETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEFLEETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteFleetRequest : public RpcServiceRequest - { - - public: - DeleteFleetRequest(); - ~DeleteFleetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFLEETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEFLEETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteFleetRequest : public RpcServiceRequest + { + + public: + DeleteFleetRequest(); + ~DeleteFleetRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEFLEETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteFleetResult.h b/ecs/include/alibabacloud/ecs/model/DeleteFleetResult.h index ceb15430c..8ace1b019 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteFleetResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteFleetResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFLEETRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEFLEETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteFleetResult : public ServiceResult - { - public: - - - DeleteFleetResult(); - explicit DeleteFleetResult(const std::string &payload); - ~DeleteFleetResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFLEETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEFLEETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteFleetResult : public ServiceResult + { + public: + + + DeleteFleetResult(); + explicit DeleteFleetResult(const std::string &payload); + ~DeleteFleetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEFLEETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h index cbd22c693..7bf957dcb 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryRequest : public RpcServiceRequest - { - - public: - DeleteForwardEntryRequest(); - ~DeleteForwardEntryRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryRequest : public RpcServiceRequest + { + + public: + DeleteForwardEntryRequest(); + ~DeleteForwardEntryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setForwardTableId(const std::string& forwardTableId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string forwardTableId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h index d418a7fe9..0760b101f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryResult : public ServiceResult - { - public: - - - DeleteForwardEntryResult(); - explicit DeleteForwardEntryResult(const std::string &payload); - ~DeleteForwardEntryResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryResult : public ServiceResult + { + public: + + + DeleteForwardEntryResult(); + explicit DeleteForwardEntryResult(const std::string &payload); + ~DeleteForwardEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h index 1fde180c0..78c7ac7b2 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteHaVipRequest : public RpcServiceRequest - { - - public: - DeleteHaVipRequest(); - ~DeleteHaVipRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHaVipRequest : public RpcServiceRequest + { + + public: + DeleteHaVipRequest(); + ~DeleteHaVipRequest(); + std::string getHaVipId()const; void setHaVipId(const std::string& haVipId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string haVipId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h b/ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h index d7c8e69f9..859504cc3 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteHaVipResult : public ServiceResult - { - public: - - - DeleteHaVipResult(); - explicit DeleteHaVipResult(const std::string &payload); - ~DeleteHaVipResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHaVipResult : public ServiceResult + { + public: + + + DeleteHaVipResult(); + explicit DeleteHaVipResult(const std::string &payload); + ~DeleteHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h index 13ebfdc25..2a7454075 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterRequest : public RpcServiceRequest - { - - public: - DeleteHpcClusterRequest(); - ~DeleteHpcClusterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterRequest : public RpcServiceRequest + { + + public: + DeleteHpcClusterRequest(); + ~DeleteHpcClusterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getHpcClusterId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; std::string hpcClusterId_; std::string clientToken_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.h b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.h index eff9a6fb1..966664bfc 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterResult : public ServiceResult - { - public: - - - DeleteHpcClusterResult(); - explicit DeleteHpcClusterResult(const std::string &payload); - ~DeleteHpcClusterResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterResult : public ServiceResult + { + public: + + + DeleteHpcClusterResult(); + explicit DeleteHpcClusterResult(const std::string &payload); + ~DeleteHpcClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h index 1de5c33a8..41deca007 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteImageRequest : public RpcServiceRequest - { - - public: - DeleteImageRequest(); - ~DeleteImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImageRequest : public RpcServiceRequest + { + + public: + DeleteImageRequest(); + ~DeleteImageRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setForce(bool force); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string imageId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; bool force_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageResult.h b/ecs/include/alibabacloud/ecs/model/DeleteImageResult.h index 2ae4bab2f..83ba7b53f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteImageResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteImageResult : public ServiceResult - { - public: - - - DeleteImageResult(); - explicit DeleteImageResult(const std::string &payload); - ~DeleteImageResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImageResult : public ServiceResult + { + public: + + + DeleteImageResult(); + explicit DeleteImageResult(const std::string &payload); + ~DeleteImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h index a4b9b984e..d0597b7a5 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteInstanceRequest : public RpcServiceRequest - { - - public: - DeleteInstanceRequest(); - ~DeleteInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteInstanceRequest : public RpcServiceRequest + { + + public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setForce(bool force); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud bool terminateSubscription_; bool force_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.h b/ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.h index e7e8910fa..390ca364b 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteInstanceResult : public ServiceResult - { - public: - - - DeleteInstanceResult(); - explicit DeleteInstanceResult(const std::string &payload); - ~DeleteInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteInstanceResult : public ServiceResult + { + public: + + + DeleteInstanceResult(); + explicit DeleteInstanceResult(const std::string &payload); + ~DeleteInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h index 5b16f53f1..9ae22bf1a 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteInstancesRequest : public RpcServiceRequest - { - - public: - DeleteInstancesRequest(); - ~DeleteInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteInstancesRequest : public RpcServiceRequest + { + + public: + DeleteInstancesRequest(); + ~DeleteInstancesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setForce(bool force); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::vector instanceId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud bool terminateSubscription_; bool force_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DeleteInstancesResult.h index 20ef2d1ad..5a757a8c2 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstancesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteInstancesResult : public ServiceResult - { - public: - - - DeleteInstancesResult(); - explicit DeleteInstancesResult(const std::string &payload); - ~DeleteInstancesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteInstancesResult : public ServiceResult + { + public: + + + DeleteInstancesResult(); + explicit DeleteInstancesResult(const std::string &payload); + ~DeleteInstancesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h index 8f145986b..95450745b 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsRequest : public RpcServiceRequest - { - - public: - DeleteKeyPairsRequest(); - ~DeleteKeyPairsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsRequest : public RpcServiceRequest + { + + public: + DeleteKeyPairsRequest(); + ~DeleteKeyPairsRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setKeyPairNames(const std::string& keyPairNames); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string keyPairNames_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.h b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.h index 571aaf65e..aa229cc7e 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsResult : public ServiceResult - { - public: - - - DeleteKeyPairsResult(); - explicit DeleteKeyPairsResult(const std::string &payload); - ~DeleteKeyPairsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsResult : public ServiceResult + { + public: + + + DeleteKeyPairsResult(); + explicit DeleteKeyPairsResult(const std::string &payload); + ~DeleteKeyPairsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h index 5fa19d733..6d61b49dd 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateRequest : public RpcServiceRequest - { - - public: - DeleteLaunchTemplateRequest(); - ~DeleteLaunchTemplateRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateRequest : public RpcServiceRequest + { + + public: + DeleteLaunchTemplateRequest(); + ~DeleteLaunchTemplateRequest(); + std::string getLaunchTemplateName()const; void setLaunchTemplateName(const std::string& launchTemplateName); long getResourceOwnerId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string launchTemplateName_; long resourceOwnerId_; long callerParentId_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h index 3921b7464..4106b4600 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateResult : public ServiceResult - { - public: - - - DeleteLaunchTemplateResult(); - explicit DeleteLaunchTemplateResult(const std::string &payload); - ~DeleteLaunchTemplateResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateResult : public ServiceResult + { + public: + + + DeleteLaunchTemplateResult(); + explicit DeleteLaunchTemplateResult(const std::string &payload); + ~DeleteLaunchTemplateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h index 6867d8afd..df6b37ae1 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateVersionRequest : public RpcServiceRequest - { - - public: - DeleteLaunchTemplateVersionRequest(); - ~DeleteLaunchTemplateVersionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateVersionRequest : public RpcServiceRequest + { + + public: + DeleteLaunchTemplateVersionRequest(); + ~DeleteLaunchTemplateVersionRequest(); + std::string getLaunchTemplateName()const; void setLaunchTemplateName(const std::string& launchTemplateName); long getResourceOwnerId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string launchTemplateName_; long resourceOwnerId_; long callerParentId_; @@ -121,9 +121,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h index 952fb1fdc..d4337777d 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateVersionResult : public ServiceResult - { - public: - - - DeleteLaunchTemplateVersionResult(); - explicit DeleteLaunchTemplateVersionResult(const std::string &payload); - ~DeleteLaunchTemplateVersionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateVersionResult : public ServiceResult + { + public: + + + DeleteLaunchTemplateVersionResult(); + explicit DeleteLaunchTemplateVersionResult(const std::string &payload); + ~DeleteLaunchTemplateVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h index 1812eafdb..07444cd18 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayRequest : public RpcServiceRequest - { - - public: - DeleteNatGatewayRequest(); - ~DeleteNatGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayRequest : public RpcServiceRequest + { + + public: + DeleteNatGatewayRequest(); + ~DeleteNatGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setNatGatewayId(const std::string& natGatewayId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string natGatewayId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h index b11cb6e74..d3a64d7cf 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayResult : public ServiceResult - { - public: - - - DeleteNatGatewayResult(); - explicit DeleteNatGatewayResult(const std::string &payload); - ~DeleteNatGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayResult : public ServiceResult + { + public: + + + DeleteNatGatewayResult(); + explicit DeleteNatGatewayResult(const std::string &payload); + ~DeleteNatGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h index 7fce49860..b1ae5999f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfacePermissionRequest : public RpcServiceRequest - { - - public: - DeleteNetworkInterfacePermissionRequest(); - ~DeleteNetworkInterfacePermissionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfacePermissionRequest : public RpcServiceRequest + { + + public: + DeleteNetworkInterfacePermissionRequest(); + ~DeleteNetworkInterfacePermissionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); bool getForce()const; void setForce(bool force); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; bool force_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionResult.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionResult.h index 91d132979..89fa4cfea 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfacePermissionResult : public ServiceResult - { - public: - - - DeleteNetworkInterfacePermissionResult(); - explicit DeleteNetworkInterfacePermissionResult(const std::string &payload); - ~DeleteNetworkInterfacePermissionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfacePermissionResult : public ServiceResult + { + public: + + + DeleteNetworkInterfacePermissionResult(); + explicit DeleteNetworkInterfacePermissionResult(const std::string &payload); + ~DeleteNetworkInterfacePermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h index f48115bd8..251aba124 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceRequest : public RpcServiceRequest - { - - public: - DeleteNetworkInterfaceRequest(); - ~DeleteNetworkInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceRequest : public RpcServiceRequest + { + + public: + DeleteNetworkInterfaceRequest(); + ~DeleteNetworkInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h index cc51da6af..cdc123df6 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceResult : public ServiceResult - { - public: - - - DeleteNetworkInterfaceResult(); - explicit DeleteNetworkInterfaceResult(const std::string &payload); - ~DeleteNetworkInterfaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceResult : public ServiceResult + { + public: + + + DeleteNetworkInterfaceResult(); + explicit DeleteNetworkInterfaceResult(const std::string &payload); + ~DeleteNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h index 24d3ca30d..ee8194e62 100644 --- a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - DeletePhysicalConnectionRequest(); - ~DeletePhysicalConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionRequest : public RpcServiceRequest + { + + public: + DeletePhysicalConnectionRequest(); + ~DeletePhysicalConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string physicalConnectionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h index 51283cabd..d0420f498 100644 --- a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionResult : public ServiceResult - { - public: - - - DeletePhysicalConnectionResult(); - explicit DeletePhysicalConnectionResult(const std::string &payload); - ~DeletePhysicalConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionResult : public ServiceResult + { + public: + + + DeletePhysicalConnectionResult(); + explicit DeletePhysicalConnectionResult(const std::string &payload); + ~DeletePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h index 86a0ad76e..37feaf4d5 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h @@ -1,45 +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_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryRequest : public RpcServiceRequest + { struct NextHopList { std::string nextHopId; std::string nextHopType; }; - - public: - DeleteRouteEntryRequest(); - ~DeleteRouteEntryRequest(); - + + public: + DeleteRouteEntryRequest(); + ~DeleteRouteEntryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -58,8 +58,8 @@ namespace AlibabaCloud void setNextHopList(const std::vector& nextHopList); std::string getRouteTableId()const; void setRouteTableId(const std::string& routeTableId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -69,9 +69,9 @@ namespace AlibabaCloud long ownerId_; std::vector nextHopList_; std::string routeTableId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h index ce4e2489b..5ded8884e 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryResult : public ServiceResult - { - public: - - - DeleteRouteEntryResult(); - explicit DeleteRouteEntryResult(const std::string &payload); - ~DeleteRouteEntryResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryResult : public ServiceResult + { + public: + + + DeleteRouteEntryResult(); + explicit DeleteRouteEntryResult(const std::string &payload); + ~DeleteRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h index e579fcaf3..b8a8f5bcf 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceRequest : public RpcServiceRequest - { - - public: - DeleteRouterInterfaceRequest(); - ~DeleteRouterInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceRequest : public RpcServiceRequest + { + + public: + DeleteRouterInterfaceRequest(); + ~DeleteRouterInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setRouterInterfaceId(const std::string& routerInterfaceId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string userCidr_; std::string routerInterfaceId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h index 2e32421df..b5eafd178 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceResult : public ServiceResult - { - public: - - - DeleteRouterInterfaceResult(); - explicit DeleteRouterInterfaceResult(const std::string &payload); - ~DeleteRouterInterfaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceResult : public ServiceResult + { + public: + + + DeleteRouterInterfaceResult(); + explicit DeleteRouterInterfaceResult(const std::string &payload); + ~DeleteRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h index 128ee8377..640e5b001 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupRequest : public RpcServiceRequest - { - - public: - DeleteSecurityGroupRequest(); - ~DeleteSecurityGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupRequest : public RpcServiceRequest + { + + public: + DeleteSecurityGroupRequest(); + ~DeleteSecurityGroupRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSecurityGroupId(const std::string& securityGroupId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string securityGroupId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h index 06f2a57c2..d2e02e728 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupResult : public ServiceResult - { - public: - - - DeleteSecurityGroupResult(); - explicit DeleteSecurityGroupResult(const std::string &payload); - ~DeleteSecurityGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupResult : public ServiceResult + { + public: + + + DeleteSecurityGroupResult(); + explicit DeleteSecurityGroupResult(const std::string &payload); + ~DeleteSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h index 9934c4569..3f48dcfb8 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotRequest : public RpcServiceRequest - { - - public: - DeleteSnapshotRequest(); - ~DeleteSnapshotRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotRequest : public RpcServiceRequest + { + + public: + DeleteSnapshotRequest(); + ~DeleteSnapshotRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setForce(bool force); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string snapshotId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; bool force_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.h index bc0f17b5b..7f8fdfbbe 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotResult : public ServiceResult - { - public: - - - DeleteSnapshotResult(); - explicit DeleteSnapshotResult(const std::string &payload); - ~DeleteSnapshotResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotResult : public ServiceResult + { + public: + + + DeleteSnapshotResult(); + explicit DeleteSnapshotResult(const std::string &payload); + ~DeleteSnapshotResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h index cb1fdf4c1..da4ce01ee 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteStorageSetRequest : public RpcServiceRequest - { - - public: - DeleteStorageSetRequest(); - ~DeleteStorageSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteStorageSetRequest : public RpcServiceRequest + { + + public: + DeleteStorageSetRequest(); + ~DeleteStorageSetRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string storageSetId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteStorageSetResult.h b/ecs/include/alibabacloud/ecs/model/DeleteStorageSetResult.h index 604b8307f..2c38492ae 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteStorageSetResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteStorageSetResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteStorageSetResult : public ServiceResult - { - public: - - - DeleteStorageSetResult(); - explicit DeleteStorageSetResult(const std::string &payload); - ~DeleteStorageSetResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteStorageSetResult : public ServiceResult + { + public: + + + DeleteStorageSetResult(); + explicit DeleteStorageSetResult(const std::string &payload); + ~DeleteStorageSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h index 503b69b28..1db1d6724 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchRequest : public RpcServiceRequest - { - - public: - DeleteVSwitchRequest(); - ~DeleteVSwitchRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchRequest : public RpcServiceRequest + { + + public: + DeleteVSwitchRequest(); + ~DeleteVSwitchRequest(); + std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string vSwitchId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h index 0b0612952..55ac249b9 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchResult : public ServiceResult - { - public: - - - DeleteVSwitchResult(); - explicit DeleteVSwitchResult(const std::string &payload); - ~DeleteVSwitchResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchResult : public ServiceResult + { + public: + + + DeleteVSwitchResult(); + explicit DeleteVSwitchResult(const std::string &payload); + ~DeleteVSwitchResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h index 3b655910e..0457f4485 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - DeleteVirtualBorderRouterRequest(); - ~DeleteVirtualBorderRouterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterRequest : public RpcServiceRequest + { + + public: + DeleteVirtualBorderRouterRequest(); + ~DeleteVirtualBorderRouterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setVbrId(const std::string& vbrId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string userCidr_; std::string vbrId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h index 035360fe7..35c459636 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterResult : public ServiceResult - { - public: - - - DeleteVirtualBorderRouterResult(); - explicit DeleteVirtualBorderRouterResult(const std::string &payload); - ~DeleteVirtualBorderRouterResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterResult : public ServiceResult + { + public: + + + DeleteVirtualBorderRouterResult(); + explicit DeleteVirtualBorderRouterResult(const std::string &payload); + ~DeleteVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h index 88b9af20a..10907529c 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVpcRequest : public RpcServiceRequest - { - - public: - DeleteVpcRequest(); - ~DeleteVpcRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVpcRequest : public RpcServiceRequest + { + + public: + DeleteVpcRequest(); + ~DeleteVpcRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string vpcId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h b/ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h index 45bfdfb33..7d11e2c3f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVpcResult : public ServiceResult - { - public: - - - DeleteVpcResult(); - explicit DeleteVpcResult(const std::string &payload); - ~DeleteVpcResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVpcResult : public ServiceResult + { + public: + + + DeleteVpcResult(); + explicit DeleteVpcResult(const std::string &payload); + ~DeleteVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h index df2ca1626..9326b1a12 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsRequest : public RpcServiceRequest + { struct Filter { std::vector value; std::string key; }; - - public: - DescribeAccessPointsRequest(); - ~DescribeAccessPointsRequest(); - + + public: + DescribeAccessPointsRequest(); + ~DescribeAccessPointsRequest(); + std::vector getFilter()const; void setFilter(const std::vector& filter); long getResourceOwnerId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setType(const std::string& type); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::vector filter_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -66,9 +66,9 @@ namespace AlibabaCloud long ownerId_; std::string type_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h index 98b4f695a..5a620f195 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsResult : public ServiceResult + { + public: struct AccessPointType { std::string status; @@ -43,26 +43,26 @@ namespace AlibabaCloud std::string location; std::string name; }; - - - DescribeAccessPointsResult(); - explicit DescribeAccessPointsResult(const std::string &payload); - ~DescribeAccessPointsResult(); + + + DescribeAccessPointsResult(); + explicit DescribeAccessPointsResult(const std::string &payload); + ~DescribeAccessPointsResult(); std::vector getAccessPointSet()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector accessPointSet_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h index a072a38ed..a7143acea 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAccountAttributesRequest : public RpcServiceRequest - { - - public: - DescribeAccountAttributesRequest(); - ~DescribeAccountAttributesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAccountAttributesRequest : public RpcServiceRequest + { + + public: + DescribeAccountAttributesRequest(); + ~DescribeAccountAttributesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getZoneId()const; void setZoneId(const std::string& zoneId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string zoneId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesResult.h index 455d9f26a..fa1bda859 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAccountAttributesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAccountAttributesResult : public ServiceResult + { + public: struct AccountAttributeItem { struct ValueItem @@ -46,20 +46,20 @@ namespace AlibabaCloud std::vector attributeValues; std::string attributeName; }; - - - DescribeAccountAttributesResult(); - explicit DescribeAccountAttributesResult(const std::string &payload); - ~DescribeAccountAttributesResult(); + + + DescribeAccountAttributesResult(); + explicit DescribeAccountAttributesResult(const std::string &payload); + ~DescribeAccountAttributesResult(); std::vector getAccountAttributeItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector accountAttributeItems_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h index 799a0d3e7..1aad942e1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupHistoryRequest : public RpcServiceRequest - { - - public: - DescribeAutoProvisioningGroupHistoryRequest(); - ~DescribeAutoProvisioningGroupHistoryRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupHistoryRequest : public RpcServiceRequest + { + + public: + DescribeAutoProvisioningGroupHistoryRequest(); + ~DescribeAutoProvisioningGroupHistoryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -124,9 +124,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryResult.h index 766a9caf7..c14ff7322 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupHistoryResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupHistoryResult : public ServiceResult + { + public: struct AutoProvisioningGroupHistory { struct ActivityDetail @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string startTime; std::string lastEventTime; }; - - - DescribeAutoProvisioningGroupHistoryResult(); - explicit DescribeAutoProvisioningGroupHistoryResult(const std::string &payload); - ~DescribeAutoProvisioningGroupHistoryResult(); + + + DescribeAutoProvisioningGroupHistoryResult(); + explicit DescribeAutoProvisioningGroupHistoryResult(const std::string &payload); + ~DescribeAutoProvisioningGroupHistoryResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getAutoProvisioningGroupHistories()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector autoProvisioningGroupHistories_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h index 5a31bd2ce..ef636705c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupInstancesRequest : public RpcServiceRequest - { - - public: - DescribeAutoProvisioningGroupInstancesRequest(); - ~DescribeAutoProvisioningGroupInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupInstancesRequest : public RpcServiceRequest + { + + public: + DescribeAutoProvisioningGroupInstancesRequest(); + ~DescribeAutoProvisioningGroupInstancesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h index f961c519b..fe9b87675 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupInstancesResult : public ServiceResult + { + public: struct Instance { std::string status; @@ -47,26 +47,26 @@ namespace AlibabaCloud std::string regionId; std::string instanceType; }; - - - DescribeAutoProvisioningGroupInstancesResult(); - explicit DescribeAutoProvisioningGroupInstancesResult(const std::string &payload); - ~DescribeAutoProvisioningGroupInstancesResult(); + + + DescribeAutoProvisioningGroupInstancesResult(); + explicit DescribeAutoProvisioningGroupInstancesResult(const std::string &payload); + ~DescribeAutoProvisioningGroupInstancesResult(); std::vector getInstances()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector instances_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h index d83ac12f5..92c3cc0d1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupsRequest : public RpcServiceRequest - { - - public: - DescribeAutoProvisioningGroupsRequest(); - ~DescribeAutoProvisioningGroupsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupsRequest : public RpcServiceRequest + { + + public: + DescribeAutoProvisioningGroupsRequest(); + ~DescribeAutoProvisioningGroupsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getAutoProvisioningGroupName()const; void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string autoProvisioningGroupName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h index 0a467c70a..7c25f7403 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupsResult : public ServiceResult + { + public: struct AutoProvisioningGroup { struct SpotOptions @@ -79,26 +79,26 @@ namespace AlibabaCloud std::string regionId; bool terminateInstances; }; - - - DescribeAutoProvisioningGroupsResult(); - explicit DescribeAutoProvisioningGroupsResult(const std::string &payload); - ~DescribeAutoProvisioningGroupsResult(); + + + DescribeAutoProvisioningGroupsResult(); + explicit DescribeAutoProvisioningGroupsResult(const std::string &payload); + ~DescribeAutoProvisioningGroupsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getAutoProvisioningGroups()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector autoProvisioningGroups_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h index 3617a4949..3d1c3495b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExRequest : public RpcServiceRequest - { - - public: - DescribeAutoSnapshotPolicyExRequest(); - ~DescribeAutoSnapshotPolicyExRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExRequest : public RpcServiceRequest + { + + public: + DescribeAutoSnapshotPolicyExRequest(); + ~DescribeAutoSnapshotPolicyExRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h index 0b4aa3511..71226a0a2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExResult : public ServiceResult + { + public: struct AutoSnapshotPolicy { std::string status; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string autoSnapshotPolicyName; int diskNums; }; - - - DescribeAutoSnapshotPolicyExResult(); - explicit DescribeAutoSnapshotPolicyExResult(const std::string &payload); - ~DescribeAutoSnapshotPolicyExResult(); + + + DescribeAutoSnapshotPolicyExResult(); + explicit DescribeAutoSnapshotPolicyExResult(const std::string &payload); + ~DescribeAutoSnapshotPolicyExResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getAutoSnapshotPolicies()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector autoSnapshotPolicies_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h index b366a6263..8b6c54dfe 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest - { - - public: - DescribeAvailableResourceRequest(); - ~DescribeAvailableResourceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest + { + + public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); float getMemory()const; @@ -113,8 +113,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getZoneId()const; void setZoneId(const std::string& zoneId); - - private: + + private: long resourceOwnerId_; float memory_; long callerParentId_; @@ -154,9 +154,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string zoneId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceResult.h index 4ad1fc0c0..c22852228 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAvailableResourceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAvailableResourceResult : public ServiceResult + { + public: struct AvailableZone { struct AvailableResource @@ -54,20 +54,20 @@ namespace AlibabaCloud std::vector availableResources; std::string regionId; }; - - - DescribeAvailableResourceResult(); - explicit DescribeAvailableResourceResult(const std::string &payload); - ~DescribeAvailableResourceResult(); + + + DescribeAvailableResourceResult(); + explicit DescribeAvailableResourceResult(const std::string &payload); + ~DescribeAvailableResourceResult(); std::vector getAvailableZones()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector availableZones_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h index 9620fc1dd..a22513809 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthLimitationRequest : public RpcServiceRequest - { - - public: - DescribeBandwidthLimitationRequest(); - ~DescribeBandwidthLimitationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthLimitationRequest : public RpcServiceRequest + { + + public: + DescribeBandwidthLimitationRequest(); + ~DescribeBandwidthLimitationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -95,8 +95,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -127,9 +127,9 @@ namespace AlibabaCloud std::string spotStrategy_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationResult.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationResult.h index 2a9cac929..bc3637a96 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthLimitationResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthLimitationResult : public ServiceResult + { + public: struct Bandwidth { int min; @@ -39,20 +39,20 @@ namespace AlibabaCloud std::string unit; std::string internetChargeType; }; - - - DescribeBandwidthLimitationResult(); - explicit DescribeBandwidthLimitationResult(const std::string &payload); - ~DescribeBandwidthLimitationResult(); + + + DescribeBandwidthLimitationResult(); + explicit DescribeBandwidthLimitationResult(const std::string &payload); + ~DescribeBandwidthLimitationResult(); std::vector getBandwidths()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector bandwidths_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h index b04be87be..241da0d56 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesRequest : public RpcServiceRequest - { - - public: - DescribeBandwidthPackagesRequest(); - ~DescribeBandwidthPackagesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesRequest : public RpcServiceRequest + { + + public: + DescribeBandwidthPackagesRequest(); + ~DescribeBandwidthPackagesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBandwidthPackageId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: long resourceOwnerId_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string natGatewayId_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h index f0ab489df..0b72484fb 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesResult : public ServiceResult + { + public: struct BandwidthPackage { struct PublicIpAddresse @@ -55,26 +55,26 @@ namespace AlibabaCloud std::string regionId; std::string natGatewayId; }; - - - DescribeBandwidthPackagesResult(); - explicit DescribeBandwidthPackagesResult(const std::string &payload); - ~DescribeBandwidthPackagesResult(); + + + DescribeBandwidthPackagesResult(); + explicit DescribeBandwidthPackagesResult(const std::string &payload); + ~DescribeBandwidthPackagesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getBandwidthPackages()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector bandwidthPackages_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h index 38db915a1..7b2ae5501 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesRequest : public RpcServiceRequest - { - - public: - DescribeClassicLinkInstancesRequest(); - ~DescribeClassicLinkInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesRequest : public RpcServiceRequest + { + + public: + DescribeClassicLinkInstancesRequest(); + ~DescribeClassicLinkInstancesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getPageNumber()const; void setPageNumber(const std::string& pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string pageSize_; long ownerId_; std::string pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h index 936cf5314..6e72e43dd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h @@ -1,62 +1,62 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesResult : public ServiceResult + { + public: struct Link { std::string vpcId; std::string instanceId; }; - - - DescribeClassicLinkInstancesResult(); - explicit DescribeClassicLinkInstancesResult(const std::string &payload); - ~DescribeClassicLinkInstancesResult(); + + + DescribeClassicLinkInstancesResult(); + explicit DescribeClassicLinkInstancesResult(const std::string &payload); + ~DescribeClassicLinkInstancesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getLinks()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector links_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h index cc91be595..902d2f7cf 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusRequest : public RpcServiceRequest - { - - public: - DescribeCloudAssistantStatusRequest(); - ~DescribeCloudAssistantStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusRequest : public RpcServiceRequest + { + + public: + DescribeCloudAssistantStatusRequest(); + ~DescribeCloudAssistantStatusRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::vector instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h index 6f8aca577..35f7c0d37 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusResult : public ServiceResult + { + public: struct InstanceCloudAssistantStatus { std::string instanceId; std::string cloudAssistantStatus; }; - - - DescribeCloudAssistantStatusResult(); - explicit DescribeCloudAssistantStatusResult(const std::string &payload); - ~DescribeCloudAssistantStatusResult(); + + + DescribeCloudAssistantStatusResult(); + explicit DescribeCloudAssistantStatusResult(const std::string &payload); + ~DescribeCloudAssistantStatusResult(); std::vector getInstanceCloudAssistantStatusSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector instanceCloudAssistantStatusSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h index 5d043d22e..93557f706 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeClustersRequest : public RpcServiceRequest - { - - public: - DescribeClustersRequest(); - ~DescribeClustersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClustersRequest : public RpcServiceRequest + { + + public: + DescribeClustersRequest(); + ~DescribeClustersRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h index c79d7d602..e44624f94 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h @@ -1,55 +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_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeClustersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClustersResult : public ServiceResult + { + public: struct Cluster { std::string clusterId; }; - - - DescribeClustersResult(); - explicit DescribeClustersResult(const std::string &payload); - ~DescribeClustersResult(); + + + DescribeClustersResult(); + explicit DescribeClustersResult(const std::string &payload); + ~DescribeClustersResult(); std::vector getClusters()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector clusters_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h index 604285c42..5daabd695 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCommandsRequest : public RpcServiceRequest - { - - public: - DescribeCommandsRequest(); - ~DescribeCommandsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCommandsRequest : public RpcServiceRequest + { + + public: + DescribeCommandsRequest(); + ~DescribeCommandsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -97,8 +97,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getName()const; void setName(const std::string& name); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -130,9 +130,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h index 5be6cfeae..b3f30f773 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCommandsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCommandsResult : public ServiceResult + { + public: struct Command { std::string commandContent; @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string commandId; std::string name; }; - - - DescribeCommandsResult(); - explicit DescribeCommandsResult(const std::string &payload); - ~DescribeCommandsResult(); + + + DescribeCommandsResult(); + explicit DescribeCommandsResult(const std::string &payload); + ~DescribeCommandsResult(); long getTotalCount()const; long getPageSize()const; long getPageNumber()const; std::vector getCommands()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long totalCount_; long pageSize_; long pageNumber_; std::vector commands_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h index 0c9030173..ad4a985d4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostAutoRenewRequest : public RpcServiceRequest - { - - public: - DescribeDedicatedHostAutoRenewRequest(); - ~DescribeDedicatedHostAutoRenewRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostAutoRenewRequest : public RpcServiceRequest + { + + public: + DescribeDedicatedHostAutoRenewRequest(); + ~DescribeDedicatedHostAutoRenewRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getDedicatedHostIds()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string dedicatedHostIds_; long resourceOwnerId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewResult.h index 27c9796d0..865962287 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostAutoRenewResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostAutoRenewResult : public ServiceResult + { + public: struct DedicatedHostRenewAttribute { bool autoRenewEnabled; @@ -40,20 +40,20 @@ namespace AlibabaCloud int duration; std::string periodUnit; }; - - - DescribeDedicatedHostAutoRenewResult(); - explicit DescribeDedicatedHostAutoRenewResult(const std::string &payload); - ~DescribeDedicatedHostAutoRenewResult(); + + + DescribeDedicatedHostAutoRenewResult(); + explicit DescribeDedicatedHostAutoRenewResult(const std::string &payload); + ~DescribeDedicatedHostAutoRenewResult(); std::vector getDedicatedHostRenewAttributes()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector dedicatedHostRenewAttributes_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h index bffaccf18..c1f65fffa 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostTypesRequest : public RpcServiceRequest - { - - public: - DescribeDedicatedHostTypesRequest(); - ~DescribeDedicatedHostTypesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostTypesRequest : public RpcServiceRequest + { + + public: + DescribeDedicatedHostTypesRequest(); + ~DescribeDedicatedHostTypesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h index 17bf59600..790753b1b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostTypesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostTypesResult : public ServiceResult + { + public: struct DedicatedHostType { int physicalGpus; @@ -48,20 +48,20 @@ namespace AlibabaCloud std::vector supportedInstanceTypesList; int totalVcpus; }; - - - DescribeDedicatedHostTypesResult(); - explicit DescribeDedicatedHostTypesResult(const std::string &payload); - ~DescribeDedicatedHostTypesResult(); + + + DescribeDedicatedHostTypesResult(); + explicit DescribeDedicatedHostTypesResult(const std::string &payload); + ~DescribeDedicatedHostTypesResult(); std::vector getDedicatedHostTypes()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector dedicatedHostTypes_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h index 099ee99a0..2c3842d89 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeDedicatedHostsRequest(); - ~DescribeDedicatedHostsRequest(); - + + public: + DescribeDedicatedHostsRequest(); + ~DescribeDedicatedHostsRequest(); + std::string getDedicatedHostIds()const; void setDedicatedHostIds(const std::string& dedicatedHostIds); long getResourceOwnerId()const; @@ -72,8 +72,8 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: std::string dedicatedHostIds_; long resourceOwnerId_; std::string dedicatedHostName_; @@ -90,9 +90,9 @@ namespace AlibabaCloud std::string dedicatedHostType_; std::vector tag_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsResult.h index c1023d7ab..075219c36 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostsResult : public ServiceResult + { + public: struct DedicatedHost { struct Capacity @@ -93,26 +93,26 @@ namespace AlibabaCloud std::vector supportedInstanceTypesList; std::string autoReleaseTime; }; - - - DescribeDedicatedHostsResult(); - explicit DescribeDedicatedHostsResult(const std::string &payload); - ~DescribeDedicatedHostsResult(); + + + DescribeDedicatedHostsResult(); + explicit DescribeDedicatedHostsResult(const std::string &payload); + ~DescribeDedicatedHostsResult(); std::vector getDedicatedHosts()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector dedicatedHosts_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h index 4d5a10a33..65989416c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDemandsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDemandsRequest : public RpcServiceRequest + { struct Tag { std::string key; std::string value; }; - - public: - DescribeDemandsRequest(); - ~DescribeDemandsRequest(); - + + public: + DescribeDemandsRequest(); + ~DescribeDemandsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -106,8 +106,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getZoneId()const; void setZoneId(const std::string& zoneId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -141,9 +141,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string zoneId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h index 6f7c6725c..749e3d969 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDemandsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDemandsResult : public ServiceResult + { + public: struct Demand { struct SupplyInfo @@ -57,28 +57,28 @@ namespace AlibabaCloud std::string demandStatus; std::string periodUnit; }; - - - DescribeDemandsResult(); - explicit DescribeDemandsResult(const std::string &payload); - ~DescribeDemandsResult(); + + + DescribeDemandsResult(); + explicit DescribeDemandsResult(const std::string &payload); + ~DescribeDemandsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getDemands()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector demands_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h index 937b0e59c..c7c3bdb47 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsRequest : public RpcServiceRequest - { - - public: - DescribeDeploymentSetsRequest(); - ~DescribeDeploymentSetsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsRequest : public RpcServiceRequest + { + + public: + DescribeDeploymentSetsRequest(); + ~DescribeDeploymentSetsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getStrategy()const; void setStrategy(const std::string& strategy); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string domain_; int pageSize_; std::string strategy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h index 90c302f0b..8716e8e2a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsResult : public ServiceResult + { + public: struct DeploymentSet { std::string deploymentSetId; @@ -45,28 +45,28 @@ namespace AlibabaCloud std::vector instanceIds; std::string deploymentStrategy; }; - - - DescribeDeploymentSetsResult(); - explicit DescribeDeploymentSetsResult(const std::string &payload); - ~DescribeDeploymentSetsResult(); + + + DescribeDeploymentSetsResult(); + explicit DescribeDeploymentSetsResult(const std::string &payload); + ~DescribeDeploymentSetsResult(); int getTotalCount()const; int getPageSize()const; std::vector getDeploymentSets()const; int getPageNumber()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; std::vector deploymentSets_; int pageNumber_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h index 3a1abd760..78493bf38 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeDiskMonitorDataRequest(); - ~DescribeDiskMonitorDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataRequest : public RpcServiceRequest + { + + public: + DescribeDiskMonitorDataRequest(); + ~DescribeDiskMonitorDataRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -121,9 +121,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h index de5b345bb..c1d3216a2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataResult : public ServiceResult + { + public: struct DiskMonitorData { int iOPSRead; @@ -45,22 +45,22 @@ namespace AlibabaCloud std::string timeStamp; std::string diskId; }; - - - DescribeDiskMonitorDataResult(); - explicit DescribeDiskMonitorDataResult(const std::string &payload); - ~DescribeDiskMonitorDataResult(); + + + DescribeDiskMonitorDataResult(); + explicit DescribeDiskMonitorDataResult(const std::string &payload); + ~DescribeDiskMonitorDataResult(); int getTotalCount()const; std::vector getMonitorData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::vector monitorData_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h index c98280096..3b4b135cb 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusRequest : public RpcServiceRequest - { - - public: - DescribeDisksFullStatusRequest(); - ~DescribeDisksFullStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusRequest : public RpcServiceRequest + { + + public: + DescribeDisksFullStatusRequest(); + ~DescribeDisksFullStatusRequest(); + std::vector getEventId()const; void setEventId(const std::vector& eventId); long getResourceOwnerId()const; @@ -103,8 +103,8 @@ namespace AlibabaCloud void setEventType(const std::string& eventType); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: std::vector eventId_; long resourceOwnerId_; long callerParentId_; @@ -139,9 +139,9 @@ namespace AlibabaCloud std::string healthStatus_; std::string eventType_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h index 2f2a888b8..f8fb04cc4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusResult : public ServiceResult + { + public: struct DiskFullStatusType { struct Status @@ -63,26 +63,26 @@ namespace AlibabaCloud HealthStatus healthStatus; std::string diskId; }; - - - DescribeDisksFullStatusResult(); - explicit DescribeDisksFullStatusResult(const std::string &payload); - ~DescribeDisksFullStatusResult(); + + + DescribeDisksFullStatusResult(); + explicit DescribeDisksFullStatusResult(const std::string &payload); + ~DescribeDisksFullStatusResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getDiskFullStatusSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector diskFullStatusSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h index 8415d8afc..ef5990813 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDisksRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeDisksRequest(); - ~DescribeDisksRequest(); - + + public: + DescribeDisksRequest(); + ~DescribeDisksRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSnapshotId()const; @@ -110,8 +110,8 @@ namespace AlibabaCloud void setKMSKeyId(const std::string& kMSKeyId); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: long resourceOwnerId_; std::string snapshotId_; std::string filter2Value_; @@ -147,9 +147,9 @@ namespace AlibabaCloud std::string category_; std::string kMSKeyId_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h index 7ecaa929a..e63b6ce94 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDisksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksResult : public ServiceResult + { + public: struct Disk { struct OperationLock @@ -89,26 +89,26 @@ namespace AlibabaCloud std::string regionId; std::string diskId; }; - - - DescribeDisksResult(); - explicit DescribeDisksResult(const std::string &payload); - ~DescribeDisksResult(); + + + DescribeDisksResult(); + explicit DescribeDisksResult(const std::string &payload); + ~DescribeDisksResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getDisks()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector disks_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h index e15389fa9..e4ed54264 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesRequest : public RpcServiceRequest - { - - public: - DescribeEipAddressesRequest(); - ~DescribeEipAddressesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesRequest : public RpcServiceRequest + { + + public: + DescribeEipAddressesRequest(); + ~DescribeEipAddressesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -73,8 +73,8 @@ namespace AlibabaCloud void setAssociatedInstanceId(const std::string& associatedInstanceId); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string filter2Value_; @@ -94,9 +94,9 @@ namespace AlibabaCloud std::string chargeType_; std::string associatedInstanceId_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.h index c1d22d39f..056d4bd75 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesResult : public ServiceResult + { + public: struct EipAddress { struct LockReason @@ -52,26 +52,26 @@ namespace AlibabaCloud std::string regionId; std::string instanceType; }; - - - DescribeEipAddressesResult(); - explicit DescribeEipAddressesResult(const std::string &payload); - ~DescribeEipAddressesResult(); + + + DescribeEipAddressesResult(); + explicit DescribeEipAddressesResult(const std::string &payload); + ~DescribeEipAddressesResult(); int getTotalCount()const; std::vector getEipAddresses()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::vector eipAddresses_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h index 4f139bcab..c497ccd16 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeEipMonitorDataRequest(); - ~DescribeEipMonitorDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataRequest : public RpcServiceRequest + { + + public: + DescribeEipMonitorDataRequest(); + ~DescribeEipMonitorDataRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getPeriod()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; int period_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string allocationId_; std::string startTime_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h index 040b640b7..867c6c40e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataResult : public ServiceResult + { + public: struct EipMonitorData { int eipPackets; @@ -41,20 +41,20 @@ namespace AlibabaCloud std::string timeStamp; int eipRX; }; - - - DescribeEipMonitorDataResult(); - explicit DescribeEipMonitorDataResult(const std::string &payload); - ~DescribeEipMonitorDataResult(); + + + DescribeEipMonitorDataResult(); + explicit DescribeEipMonitorDataResult(const std::string &payload); + ~DescribeEipMonitorDataResult(); std::vector getEipMonitorDatas()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector eipMonitorDatas_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h index d977e2536..feb80a3d9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEniMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeEniMonitorDataRequest(); - ~DescribeEniMonitorDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEniMonitorDataRequest : public RpcServiceRequest + { + + public: + DescribeEniMonitorDataRequest(); + ~DescribeEniMonitorDataRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getEniId()const; void setEniId(const std::string& eniId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string instanceId_; std::string requestId_; std::string eniId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataResult.h index 611996c2c..644444f9f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATARESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEniMonitorDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEniMonitorDataResult : public ServiceResult + { + public: struct EniMonitorData { std::string dropPacketRx; @@ -43,22 +43,22 @@ namespace AlibabaCloud std::string timeStamp; std::string intranetRx; }; - - - DescribeEniMonitorDataResult(); - explicit DescribeEniMonitorDataResult(const std::string &payload); - ~DescribeEniMonitorDataResult(); + + + DescribeEniMonitorDataResult(); + explicit DescribeEniMonitorDataResult(const std::string &payload); + ~DescribeEniMonitorDataResult(); int getTotalCount()const; std::vector getMonitorData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::vector monitorData_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h index 610360e06..dab76f6ec 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeFleetHistoryRequest : public RpcServiceRequest - { - - public: - DescribeFleetHistoryRequest(); - ~DescribeFleetHistoryRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeFleetHistoryRequest : public RpcServiceRequest + { + + public: + DescribeFleetHistoryRequest(); + ~DescribeFleetHistoryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -85,8 +85,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -112,9 +112,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h index cba27895a..1249c9219 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeFleetHistoryResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeFleetHistoryResult : public ServiceResult + { + public: struct FleetHistory { struct ActivityDetail @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string startTime; std::string lastEventTime; }; - - - DescribeFleetHistoryResult(); - explicit DescribeFleetHistoryResult(const std::string &payload); - ~DescribeFleetHistoryResult(); + + + DescribeFleetHistoryResult(); + explicit DescribeFleetHistoryResult(const std::string &payload); + ~DescribeFleetHistoryResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getFleetHistorys()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector fleetHistorys_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETHISTORYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h index c93964ad5..b06a28eb1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesRequest : public RpcServiceRequest - { - - public: - DescribeFleetInstancesRequest(); - ~DescribeFleetInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesRequest : public RpcServiceRequest + { + + public: + DescribeFleetInstancesRequest(); + ~DescribeFleetInstancesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h index 5aa0fbef6..cf12d531a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesResult : public ServiceResult + { + public: struct Instance { std::string status; @@ -48,26 +48,26 @@ namespace AlibabaCloud std::string regionId; std::string instanceType; }; - - - DescribeFleetInstancesResult(); - explicit DescribeFleetInstancesResult(const std::string &payload); - ~DescribeFleetInstancesResult(); + + + DescribeFleetInstancesResult(); + explicit DescribeFleetInstancesResult(const std::string &payload); + ~DescribeFleetInstancesResult(); std::vector getInstances()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector instances_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetsRequest.h index e856799ac..25adfe542 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeFleetsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeFleetsRequest : public RpcServiceRequest - { - - public: - DescribeFleetsRequest(); - ~DescribeFleetsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeFleetsRequest : public RpcServiceRequest + { + + public: + DescribeFleetsRequest(); + ~DescribeFleetsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -124,9 +124,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeFleetsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeFleetsResult.h index d415b587c..30a3cad2a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeFleetsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeFleetsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeFleetsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeFleetsResult : public ServiceResult + { + public: struct Fleet { struct SpotOptions @@ -80,26 +80,26 @@ namespace AlibabaCloud std::string regionId; bool terminateInstances; }; - - - DescribeFleetsResult(); - explicit DescribeFleetsResult(const std::string &payload); - ~DescribeFleetsResult(); + + + DescribeFleetsResult(); + explicit DescribeFleetsResult(const std::string &payload); + ~DescribeFleetsResult(); std::vector getFleets()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector fleets_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h index ec82b450a..083ff437a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesRequest : public RpcServiceRequest - { - - public: - DescribeForwardTableEntriesRequest(); - ~DescribeForwardTableEntriesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesRequest : public RpcServiceRequest + { + + public: + DescribeForwardTableEntriesRequest(); + ~DescribeForwardTableEntriesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h index fde9a4107..b3102c411 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesResult : public ServiceResult + { + public: struct ForwardTableEntry { std::string status; @@ -43,26 +43,26 @@ namespace AlibabaCloud std::string internalIp; std::string forwardTableId; }; - - - DescribeForwardTableEntriesResult(); - explicit DescribeForwardTableEntriesResult(const std::string &payload); - ~DescribeForwardTableEntriesResult(); + + + DescribeForwardTableEntriesResult(); + explicit DescribeForwardTableEntriesResult(const std::string &payload); + ~DescribeForwardTableEntriesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getForwardTableEntries()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector forwardTableEntries_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h index 6fd2a18e5..58058d6ed 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsRequest : public RpcServiceRequest + { struct Filter { std::vector value; std::string key; }; - - public: - DescribeHaVipsRequest(); - ~DescribeHaVipsRequest(); - + + public: + DescribeHaVipsRequest(); + ~DescribeHaVipsRequest(); + std::vector getFilter()const; void setFilter(const std::vector& filter); long getResourceOwnerId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::vector filter_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -66,9 +66,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h index 70434cf28..7571026af 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsResult : public ServiceResult + { + public: struct HaVip { std::string status; @@ -46,26 +46,26 @@ namespace AlibabaCloud std::string haVipId; std::string regionId; }; - - - DescribeHaVipsResult(); - explicit DescribeHaVipsResult(const std::string &payload); - ~DescribeHaVipsResult(); + + + DescribeHaVipsResult(); + explicit DescribeHaVipsResult(const std::string &payload); + ~DescribeHaVipsResult(); int getTotalCount()const; std::vector getHaVips()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::vector haVips_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h index 2e57035ba..035377f20 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersRequest : public RpcServiceRequest - { - - public: - DescribeHpcClustersRequest(); - ~DescribeHpcClustersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersRequest : public RpcServiceRequest + { + + public: + DescribeHpcClustersRequest(); + ~DescribeHpcClustersRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -124,9 +124,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.h index 14df20429..a1b607797 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.h @@ -1,63 +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_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersResult : public ServiceResult + { + public: struct HpcCluster { std::string description; std::string hpcClusterId; std::string name; }; - - - DescribeHpcClustersResult(); - explicit DescribeHpcClustersResult(const std::string &payload); - ~DescribeHpcClustersResult(); + + + DescribeHpcClustersResult(); + explicit DescribeHpcClustersResult(const std::string &payload); + ~DescribeHpcClustersResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getHpcClusters()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector hpcClusters_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h index e3358c604..d6c5a9a9e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionRequest : public RpcServiceRequest - { - - public: - DescribeImageSharePermissionRequest(); - ~DescribeImageSharePermissionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionRequest : public RpcServiceRequest + { + + public: + DescribeImageSharePermissionRequest(); + ~DescribeImageSharePermissionRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string imageId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h index afd724790..6d3b97ee3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionResult : public ServiceResult + { + public: struct ShareGroup { std::string group; @@ -40,11 +40,11 @@ namespace AlibabaCloud { std::string aliyunId; }; - - - DescribeImageSharePermissionResult(); - explicit DescribeImageSharePermissionResult(const std::string &payload); - ~DescribeImageSharePermissionResult(); + + + DescribeImageSharePermissionResult(); + explicit DescribeImageSharePermissionResult(const std::string &payload); + ~DescribeImageSharePermissionResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; @@ -52,10 +52,10 @@ namespace AlibabaCloud std::vector getShareGroups()const; std::string getRegionId()const; std::vector getAccounts()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; @@ -63,9 +63,9 @@ namespace AlibabaCloud std::vector shareGroups_; std::string regionId_; std::vector accounts_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h index 373df2925..38d55618d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesRequest : public RpcServiceRequest + { struct Filter { std::string value; std::string key; }; - - public: - DescribeImageSupportInstanceTypesRequest(); - ~DescribeImageSupportInstanceTypesRequest(); - + + public: + DescribeImageSupportInstanceTypesRequest(); + ~DescribeImageSupportInstanceTypesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getActionType()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string actionType_; std::vector filter_; @@ -66,9 +66,9 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string regionId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h index 50c45a321..aaca6907e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesResult : public ServiceResult + { + public: struct InstanceType { float memorySize; @@ -39,24 +39,24 @@ namespace AlibabaCloud std::string instanceTypeFamily; std::string instanceTypeId; }; - - - DescribeImageSupportInstanceTypesResult(); - explicit DescribeImageSupportInstanceTypesResult(const std::string &payload); - ~DescribeImageSupportInstanceTypesResult(); + + + DescribeImageSupportInstanceTypesResult(); + explicit DescribeImageSupportInstanceTypesResult(const std::string &payload); + ~DescribeImageSupportInstanceTypesResult(); std::string getImageId()const; std::vector getInstanceTypes()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string imageId_; std::vector instanceTypes_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h index c05e14024..4d99af2dd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImagesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagesRequest : public RpcServiceRequest + { struct Tag { std::string value; @@ -40,11 +40,11 @@ namespace AlibabaCloud std::string value; std::string key; }; - - public: - DescribeImagesRequest(); - ~DescribeImagesRequest(); - + + public: + DescribeImagesRequest(); + ~DescribeImagesRequest(); + std::string getActionType()const; void setActionType(const std::string& actionType); long getResourceOwnerId()const; @@ -95,8 +95,8 @@ namespace AlibabaCloud void setFilter(const std::vector& filter); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: std::string actionType_; long resourceOwnerId_; std::string imageId_; @@ -122,9 +122,9 @@ namespace AlibabaCloud long ownerId_; std::vector filter_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h index 1c053b5ce..4423f455e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImagesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagesResult : public ServiceResult + { + public: struct Image { struct DiskDeviceMapping @@ -76,28 +76,28 @@ namespace AlibabaCloud std::vector tags; std::string oSNameEn; }; - - - DescribeImagesResult(); - explicit DescribeImagesResult(const std::string &payload); - ~DescribeImagesResult(); + + + DescribeImagesResult(); + explicit DescribeImagesResult(const std::string &payload); + ~DescribeImagesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getImages()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector images_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h index 1526a25fe..0ed36df98 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeRequest : public RpcServiceRequest - { - - public: - DescribeInstanceAttributeRequest(); - ~DescribeInstanceAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeRequest : public RpcServiceRequest + { + + public: + DescribeInstanceAttributeRequest(); + ~DescribeInstanceAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h index 763dd2f85..10dbac1cd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeResult : public ServiceResult + { + public: struct VpcAttributes { std::vector privateIpAddress; @@ -55,11 +55,11 @@ namespace AlibabaCloud { std::string lockReason; }; - - - DescribeInstanceAttributeResult(); - explicit DescribeInstanceAttributeResult(const std::string &payload); - ~DescribeInstanceAttributeResult(); + + + DescribeInstanceAttributeResult(); + explicit DescribeInstanceAttributeResult(const std::string &payload); + ~DescribeInstanceAttributeResult(); std::string getDescription()const; int getMemory()const; std::string getInstanceChargeType()const; @@ -91,10 +91,10 @@ namespace AlibabaCloud std::string getCreationTime()const; std::string getRegionId()const; std::string getCreditSpecification()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string description_; int memory_; std::string instanceChargeType_; @@ -126,9 +126,9 @@ namespace AlibabaCloud std::string creationTime_; std::string regionId_; std::string creditSpecification_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h index 9ec8671e1..d0180a1a4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - DescribeInstanceAutoRenewAttributeRequest(); - ~DescribeInstanceAutoRenewAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeRequest : public RpcServiceRequest + { + + public: + DescribeInstanceAutoRenewAttributeRequest(); + ~DescribeInstanceAutoRenewAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getPageNumber()const; void setPageNumber(const std::string& pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string pageSize_; long ownerId_; std::string pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h index 6405399d8..75b3cdc25 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeResult : public ServiceResult + { + public: struct InstanceRenewAttribute { bool autoRenewEnabled; @@ -40,26 +40,26 @@ namespace AlibabaCloud int duration; std::string periodUnit; }; - - - DescribeInstanceAutoRenewAttributeResult(); - explicit DescribeInstanceAutoRenewAttributeResult(const std::string &payload); - ~DescribeInstanceAutoRenewAttributeResult(); + + + DescribeInstanceAutoRenewAttributeResult(); + explicit DescribeInstanceAutoRenewAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewAttributeResult(); int getTotalCount()const; std::vector getInstanceRenewAttributes()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::vector instanceRenewAttributes_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h index 44bcfc9ed..c8de8a5da 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsRequest : public RpcServiceRequest - { - - public: - DescribeInstanceHistoryEventsRequest(); - ~DescribeInstanceHistoryEventsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsRequest : public RpcServiceRequest + { + + public: + DescribeInstanceHistoryEventsRequest(); + ~DescribeInstanceHistoryEventsRequest(); + std::vector getEventId()const; void setEventId(const std::vector& eventId); long getResourceOwnerId()const; @@ -109,8 +109,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getEventType()const; void setEventType(const std::string& eventType); - - private: + + private: std::vector eventId_; long resourceOwnerId_; std::string eventCycleStatus_; @@ -148,9 +148,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string eventType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h index 77c233496..79cefdf91 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsResult : public ServiceResult + { + public: struct InstanceSystemEventType { struct EventType @@ -58,26 +58,26 @@ namespace AlibabaCloud std::string eventId; std::string notBefore; }; - - - DescribeInstanceHistoryEventsResult(); - explicit DescribeInstanceHistoryEventsResult(const std::string &payload); - ~DescribeInstanceHistoryEventsResult(); + + + DescribeInstanceHistoryEventsResult(); + explicit DescribeInstanceHistoryEventsResult(const std::string &payload); + ~DescribeInstanceHistoryEventsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getInstanceSystemEventSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector instanceSystemEventSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h index 1bcdae690..2479a719e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeInstanceMonitorDataRequest(); - ~DescribeInstanceMonitorDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataRequest : public RpcServiceRequest + { + + public: + DescribeInstanceMonitorDataRequest(); + ~DescribeInstanceMonitorDataRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h index c25b401b3..714c6e7f6 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataResult : public ServiceResult + { + public: struct InstanceMonitorData { int iOPSRead; @@ -52,20 +52,20 @@ namespace AlibabaCloud int internetRX; int bPSWrite; }; - - - DescribeInstanceMonitorDataResult(); - explicit DescribeInstanceMonitorDataResult(const std::string &payload); - ~DescribeInstanceMonitorDataResult(); + + + DescribeInstanceMonitorDataResult(); + explicit DescribeInstanceMonitorDataResult(const std::string &payload); + ~DescribeInstanceMonitorDataResult(); std::vector getMonitorData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector monitorData_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h index 782723a9d..37a8161f3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancePhysicalAttributeRequest : public RpcServiceRequest - { - - public: - DescribeInstancePhysicalAttributeRequest(); - ~DescribeInstancePhysicalAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancePhysicalAttributeRequest : public RpcServiceRequest + { + + public: + DescribeInstancePhysicalAttributeRequest(); + ~DescribeInstancePhysicalAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h index 3d09a5bcc..940ac0fe4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h @@ -1,57 +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_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancePhysicalAttributeResult : public ServiceResult - { - public: - - - DescribeInstancePhysicalAttributeResult(); - explicit DescribeInstancePhysicalAttributeResult(const std::string &payload); - ~DescribeInstancePhysicalAttributeResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancePhysicalAttributeResult : public ServiceResult + { + public: + + + DescribeInstancePhysicalAttributeResult(); + explicit DescribeInstancePhysicalAttributeResult(const std::string &payload); + ~DescribeInstancePhysicalAttributeResult(); std::string getRackId()const; std::string getNodeControllerId()const; std::string getInstanceId()const; std::string getVlanId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string rackId_; std::string nodeControllerId_; std::string instanceId_; std::string vlanId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h index c82a203cb..ede148aa2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleRequest : public RpcServiceRequest - { - - public: - DescribeInstanceRamRoleRequest(); - ~DescribeInstanceRamRoleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleRequest : public RpcServiceRequest + { + + public: + DescribeInstanceRamRoleRequest(); + ~DescribeInstanceRamRoleRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ramRoleName_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h index e174fdf80..552b36cf5 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h @@ -1,60 +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_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleResult : public ServiceResult + { + public: struct InstanceRamRoleSet { std::string ramRoleName; std::string instanceId; }; - - - DescribeInstanceRamRoleResult(); - explicit DescribeInstanceRamRoleResult(const std::string &payload); - ~DescribeInstanceRamRoleResult(); + + + DescribeInstanceRamRoleResult(); + explicit DescribeInstanceRamRoleResult(const std::string &payload); + ~DescribeInstanceRamRoleResult(); int getTotalCount()const; std::string getRegionId()const; std::vector getInstanceRamRoleSets()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::string regionId_; std::vector instanceRamRoleSets_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h index 02ef90242..36405cfb3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusRequest : public RpcServiceRequest - { - - public: - DescribeInstanceStatusRequest(); - ~DescribeInstanceStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusRequest : public RpcServiceRequest + { + + public: + DescribeInstanceStatusRequest(); + ~DescribeInstanceStatusRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string clusterId_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h index 4e18d313a..33359c6e1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h @@ -1,62 +1,62 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusResult : public ServiceResult + { + public: struct InstanceStatus { std::string status; std::string instanceId; }; - - - DescribeInstanceStatusResult(); - explicit DescribeInstanceStatusResult(const std::string &payload); - ~DescribeInstanceStatusResult(); + + + DescribeInstanceStatusResult(); + explicit DescribeInstanceStatusResult(const std::string &payload); + ~DescribeInstanceStatusResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getInstanceStatuses()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector instanceStatuses_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h index 432399f82..bb1147dbe 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyRequest : public RpcServiceRequest - { - - public: - DescribeInstanceTopologyRequest(); - ~DescribeInstanceTopologyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyRequest : public RpcServiceRequest + { + + public: + DescribeInstanceTopologyRequest(); + ~DescribeInstanceTopologyRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setInstanceIds(const std::string& instanceIds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string instanceIds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyResult.h index d5cbd628d..f7e6a7886 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyResult : public ServiceResult + { + public: struct Topology { std::string instanceId; std::string hostId; }; - - - DescribeInstanceTopologyResult(); - explicit DescribeInstanceTopologyResult(const std::string &payload); - ~DescribeInstanceTopologyResult(); + + + DescribeInstanceTopologyResult(); + explicit DescribeInstanceTopologyResult(const std::string &payload); + ~DescribeInstanceTopologyResult(); std::vector getTopologys()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector topologys_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h index 905f110d8..b53235a3d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesRequest : public RpcServiceRequest - { - - public: - DescribeInstanceTypeFamiliesRequest(); - ~DescribeInstanceTypeFamiliesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesRequest : public RpcServiceRequest + { + + public: + DescribeInstanceTypeFamiliesRequest(); + ~DescribeInstanceTypeFamiliesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getGeneration()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string generation_; long resourceOwnerId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h index 977e0cb1c..9f20aff0e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesResult : public ServiceResult + { + public: struct InstanceTypeFamily { std::string instanceTypeFamilyId; std::string generation; }; - - - DescribeInstanceTypeFamiliesResult(); - explicit DescribeInstanceTypeFamiliesResult(const std::string &payload); - ~DescribeInstanceTypeFamiliesResult(); + + + DescribeInstanceTypeFamiliesResult(); + explicit DescribeInstanceTypeFamiliesResult(const std::string &payload); + ~DescribeInstanceTypeFamiliesResult(); std::vector getInstanceTypeFamilies()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector instanceTypeFamilies_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h index f236b3338..ba0eb069c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesRequest : public RpcServiceRequest - { - - public: - DescribeInstanceTypesRequest(); - ~DescribeInstanceTypesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesRequest : public RpcServiceRequest + { + + public: + DescribeInstanceTypesRequest(); + ~DescribeInstanceTypesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setInstanceTypeFamily(const std::string& instanceTypeFamily); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string instanceTypeFamily_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h index db1188d03..bbed98329 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesResult : public ServiceResult + { + public: struct InstanceType { float memorySize; @@ -53,20 +53,20 @@ namespace AlibabaCloud std::string instanceTypeId; int eniPrivateIpAddressQuantity; }; - - - DescribeInstanceTypesResult(); - explicit DescribeInstanceTypesResult(const std::string &payload); - ~DescribeInstanceTypesResult(); + + + DescribeInstanceTypesResult(); + explicit DescribeInstanceTypesResult(const std::string &payload); + ~DescribeInstanceTypesResult(); std::vector getInstanceTypes()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector instanceTypes_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h index 7f8a63ebb..bd32903b3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdRequest : public RpcServiceRequest - { - - public: - DescribeInstanceVncPasswdRequest(); - ~DescribeInstanceVncPasswdRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdRequest : public RpcServiceRequest + { + + public: + DescribeInstanceVncPasswdRequest(); + ~DescribeInstanceVncPasswdRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h index c9e2aa2c4..c399eca9e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h @@ -1,51 +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_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdResult : public ServiceResult - { - public: - - - DescribeInstanceVncPasswdResult(); - explicit DescribeInstanceVncPasswdResult(const std::string &payload); - ~DescribeInstanceVncPasswdResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdResult : public ServiceResult + { + public: + + + DescribeInstanceVncPasswdResult(); + explicit DescribeInstanceVncPasswdResult(const std::string &payload); + ~DescribeInstanceVncPasswdResult(); std::string getVncPasswd()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string vncPasswd_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h index d183fbf13..4ac5e130c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlRequest : public RpcServiceRequest - { - - public: - DescribeInstanceVncUrlRequest(); - ~DescribeInstanceVncUrlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlRequest : public RpcServiceRequest + { + + public: + DescribeInstanceVncUrlRequest(); + ~DescribeInstanceVncUrlRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h index e3e93daaa..a7afa1fa9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h @@ -1,51 +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_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlResult : public ServiceResult - { - public: - - - DescribeInstanceVncUrlResult(); - explicit DescribeInstanceVncUrlResult(const std::string &payload); - ~DescribeInstanceVncUrlResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlResult : public ServiceResult + { + public: + + + DescribeInstanceVncUrlResult(); + explicit DescribeInstanceVncUrlResult(const std::string &payload); + ~DescribeInstanceVncUrlResult(); std::string getVncUrl()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string vncUrl_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h index 16be3642d..033c52378 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusRequest : public RpcServiceRequest - { - - public: - DescribeInstancesFullStatusRequest(); - ~DescribeInstancesFullStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusRequest : public RpcServiceRequest + { + + public: + DescribeInstancesFullStatusRequest(); + ~DescribeInstancesFullStatusRequest(); + std::vector getEventId()const; void setEventId(const std::vector& eventId); long getResourceOwnerId()const; @@ -109,8 +109,8 @@ namespace AlibabaCloud void setEventType(const std::string& eventType); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: std::vector eventId_; long resourceOwnerId_; long callerParentId_; @@ -148,9 +148,9 @@ namespace AlibabaCloud std::string healthStatus_; std::string eventType_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h index 5a7631833..fcdabe228 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusResult : public ServiceResult + { + public: struct InstanceFullStatusType { struct Status @@ -73,26 +73,26 @@ namespace AlibabaCloud HealthStatus healthStatus; std::vector scheduledSystemEventSet; }; - - - DescribeInstancesFullStatusResult(); - explicit DescribeInstancesFullStatusResult(const std::string &payload); - ~DescribeInstancesFullStatusResult(); + + + DescribeInstancesFullStatusResult(); + explicit DescribeInstancesFullStatusResult(const std::string &payload); + ~DescribeInstancesFullStatusResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getInstanceFullStatusSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector instanceFullStatusSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h index 2569cbe11..4b22fff61 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeInstancesRequest(); - ~DescribeInstancesRequest(); - + + public: + DescribeInstancesRequest(); + ~DescribeInstancesRequest(); + std::string getInnerIpAddresses()const; void setInnerIpAddresses(const std::string& innerIpAddresses); long getResourceOwnerId()const; @@ -126,8 +126,8 @@ namespace AlibabaCloud void setInstanceNetworkType(const std::string& instanceNetworkType); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: std::string innerIpAddresses_; long resourceOwnerId_; std::string imageId_; @@ -171,9 +171,9 @@ namespace AlibabaCloud std::string filter3Key_; std::string instanceNetworkType_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h index 60794b28e..2de696eb5 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesResult : public ServiceResult + { + public: struct Instance { struct VpcAttributes @@ -137,26 +137,26 @@ namespace AlibabaCloud std::string regionId; std::string creditSpecification; }; - - - DescribeInstancesResult(); - explicit DescribeInstancesResult(const std::string &payload); - ~DescribeInstancesResult(); + + + DescribeInstancesResult(); + explicit DescribeInstancesResult(const std::string &payload); + ~DescribeInstancesResult(); std::vector getInstances()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector instances_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h index e3b2bc771..2eff95816 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsRequest : public RpcServiceRequest - { - - public: - DescribeInvocationResultsRequest(); - ~DescribeInvocationResultsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsRequest : public RpcServiceRequest + { + + public: + DescribeInvocationResultsRequest(); + ~DescribeInvocationResultsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -99,8 +99,8 @@ namespace AlibabaCloud void setInvokeRecordStatus(const std::string& invokeRecordStatus); bool getIncludeHistory()const; void setIncludeHistory(bool includeHistory); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -133,9 +133,9 @@ namespace AlibabaCloud std::string akProxy_; std::string invokeRecordStatus_; bool includeHistory_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h index 4b4bf215f..6c781a38e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsResult : public ServiceResult + { + public: struct Invocation { struct InvocationResult @@ -50,20 +50,20 @@ namespace AlibabaCloud long pageSize; long pageNumber; }; - - - DescribeInvocationResultsResult(); - explicit DescribeInvocationResultsResult(const std::string &payload); - ~DescribeInvocationResultsResult(); + + + DescribeInvocationResultsResult(); + explicit DescribeInvocationResultsResult(const std::string &payload); + ~DescribeInvocationResultsResult(); Invocation getInvocation()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: Invocation invocation_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h index f2c5640e8..b8c27c0f7 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsRequest : public RpcServiceRequest - { - - public: - DescribeInvocationsRequest(); - ~DescribeInvocationsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsRequest : public RpcServiceRequest + { + + public: + DescribeInvocationsRequest(); + ~DescribeInvocationsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getInvokeStatus()const; @@ -101,8 +101,8 @@ namespace AlibabaCloud void setInstanceId(const std::string& instanceId); std::string getRequestId()const; void setRequestId(const std::string& requestId); - - private: + + private: long resourceOwnerId_; std::string invokeStatus_; long callerParentId_; @@ -136,9 +136,9 @@ namespace AlibabaCloud std::string commandType_; std::string instanceId_; std::string requestId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h index 409373d88..910e78d1f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsResult : public ServiceResult + { + public: struct Invocation { struct InvokeInstance @@ -53,26 +53,26 @@ namespace AlibabaCloud std::vector invokeInstances; std::string invokeId; }; - - - DescribeInvocationsResult(); - explicit DescribeInvocationsResult(const std::string &payload); - ~DescribeInvocationsResult(); + + + DescribeInvocationsResult(); + explicit DescribeInvocationsResult(const std::string &payload); + ~DescribeInvocationsResult(); long getTotalCount()const; long getPageSize()const; std::vector getInvocations()const; long getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long totalCount_; long pageSize_; std::vector invocations_; long pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h index d58e712b3..a8b25a643 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeKeyPairsRequest(); - ~DescribeKeyPairsRequest(); - + + public: + DescribeKeyPairsRequest(); + ~DescribeKeyPairsRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getResourceGroupId()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; std::string resourceGroupId_; long resourceOwnerId_; @@ -75,9 +75,9 @@ namespace AlibabaCloud std::vector tag_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h index c477eef8f..86fdf7f4c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsResult : public ServiceResult + { + public: struct KeyPair { struct Tag @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string resourceGroupId; std::vector tags; }; - - - DescribeKeyPairsResult(); - explicit DescribeKeyPairsResult(const std::string &payload); - ~DescribeKeyPairsResult(); + + + DescribeKeyPairsResult(); + explicit DescribeKeyPairsResult(const std::string &payload); + ~DescribeKeyPairsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getKeyPairs()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector keyPairs_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h index 42665052b..012faedbb 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplateVersionsRequest : public RpcServiceRequest - { - - public: - DescribeLaunchTemplateVersionsRequest(); - ~DescribeLaunchTemplateVersionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplateVersionsRequest : public RpcServiceRequest + { + + public: + DescribeLaunchTemplateVersionsRequest(); + ~DescribeLaunchTemplateVersionsRequest(); + std::string getLaunchTemplateName()const; void setLaunchTemplateName(const std::string& launchTemplateName); long getMaxVersion()const; @@ -103,8 +103,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); bool getDetailFlag()const; void setDetailFlag(bool detailFlag); - - private: + + private: std::string launchTemplateName_; long maxVersion_; long resourceOwnerId_; @@ -139,9 +139,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; bool detailFlag_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h index b48fb93c9..a0e7192fb 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplateVersionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplateVersionsResult : public ServiceResult + { + public: struct LaunchTemplateVersionSet { struct LaunchTemplateData @@ -107,26 +107,26 @@ namespace AlibabaCloud std::string launchTemplateId; long versionNumber; }; - - - DescribeLaunchTemplateVersionsResult(); - explicit DescribeLaunchTemplateVersionsResult(const std::string &payload); - ~DescribeLaunchTemplateVersionsResult(); + + + DescribeLaunchTemplateVersionsResult(); + explicit DescribeLaunchTemplateVersionsResult(const std::string &payload); + ~DescribeLaunchTemplateVersionsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getLaunchTemplateVersionSets()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector launchTemplateVersionSets_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h index 7d999228f..a165b26b3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplatesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplatesRequest : public RpcServiceRequest + { struct TemplateTag { std::string key; std::string value; }; - - public: - DescribeLaunchTemplatesRequest(); - ~DescribeLaunchTemplatesRequest(); - + + public: + DescribeLaunchTemplatesRequest(); + ~DescribeLaunchTemplatesRequest(); + std::vector getLaunchTemplateName()const; void setLaunchTemplateName(const std::vector& launchTemplateName); long getResourceOwnerId()const; @@ -102,8 +102,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::vector launchTemplateName_; long resourceOwnerId_; long callerParentId_; @@ -135,9 +135,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesResult.h index 051883428..db603da12 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplatesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplatesResult : public ServiceResult + { + public: struct LaunchTemplateSet { struct Tag @@ -49,26 +49,26 @@ namespace AlibabaCloud long defaultVersionNumber; std::vector tags; }; - - - DescribeLaunchTemplatesResult(); - explicit DescribeLaunchTemplatesResult(const std::string &payload); - ~DescribeLaunchTemplatesResult(); + + + DescribeLaunchTemplatesResult(); + explicit DescribeLaunchTemplatesResult(const std::string &payload); + ~DescribeLaunchTemplatesResult(); std::vector getLaunchTemplateSets()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector launchTemplateSets_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h index 052b76609..43c278df9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLimitationRequest : public RpcServiceRequest - { - - public: - DescribeLimitationRequest(); - ~DescribeLimitationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLimitationRequest : public RpcServiceRequest + { + + public: + DescribeLimitationRequest(); + ~DescribeLimitationRequest(); + std::string getLimitation()const; void setLimitation(const std::string& limitation); long getResourceOwnerId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string limitation_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h b/ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h index 10f06e6d6..16c12f27e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLimitationResult : public ServiceResult - { - public: - - - DescribeLimitationResult(); - explicit DescribeLimitationResult(const std::string &payload); - ~DescribeLimitationResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLimitationResult : public ServiceResult + { + public: + + + DescribeLimitationResult(); + explicit DescribeLimitationResult(const std::string &payload); + ~DescribeLimitationResult(); std::string getLimitation()const; std::string getValue()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string limitation_; std::string value_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h index 55c193c48..9a98a4999 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysRequest : public RpcServiceRequest - { - - public: - DescribeNatGatewaysRequest(); - ~DescribeNatGatewaysRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysRequest : public RpcServiceRequest + { + + public: + DescribeNatGatewaysRequest(); + ~DescribeNatGatewaysRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string natGatewayId_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h index dc253b1d9..ad3bfe814 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysResult : public ServiceResult + { + public: struct NatGateway { std::string status; @@ -47,26 +47,26 @@ namespace AlibabaCloud std::string businessStatus; std::string name; }; - - - DescribeNatGatewaysResult(); - explicit DescribeNatGatewaysResult(const std::string &payload); - ~DescribeNatGatewaysResult(); + + + DescribeNatGatewaysResult(); + explicit DescribeNatGatewaysResult(const std::string &payload); + ~DescribeNatGatewaysResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getNatGateways()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector natGateways_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h index d38ee8aab..486ea86a9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacePermissionsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkInterfacePermissionsRequest(); - ~DescribeNetworkInterfacePermissionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacePermissionsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkInterfacePermissionsRequest(); + ~DescribeNetworkInterfacePermissionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h index b0c5d2699..52d4e7c31 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacePermissionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacePermissionsResult : public ServiceResult + { + public: struct NetworkInterfacePermission { std::string permissionState; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string permission; std::string networkInterfaceId; }; - - - DescribeNetworkInterfacePermissionsResult(); - explicit DescribeNetworkInterfacePermissionsResult(const std::string &payload); - ~DescribeNetworkInterfacePermissionsResult(); + + + DescribeNetworkInterfacePermissionsResult(); + explicit DescribeNetworkInterfacePermissionsResult(const std::string &payload); + ~DescribeNetworkInterfacePermissionsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getNetworkInterfacePermissions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector networkInterfacePermissions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h index e1f432c06..1f365fbaf 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesRequest : public RpcServiceRequest + { struct Tag { std::string key; std::string value; }; - - public: - DescribeNetworkInterfacesRequest(); - ~DescribeNetworkInterfacesRequest(); - + + public: + DescribeNetworkInterfacesRequest(); + ~DescribeNetworkInterfacesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); bool getServiceManaged()const; @@ -118,8 +118,8 @@ namespace AlibabaCloud void setPrimaryIpAddress(const std::string& primaryIpAddress); std::vector getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::vector& networkInterfaceId); - - private: + + private: long resourceOwnerId_; bool serviceManaged_; long callerParentId_; @@ -159,9 +159,9 @@ namespace AlibabaCloud std::string vpcId_; std::string primaryIpAddress_; std::vector networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h index c53c85cf8..7840af6ab 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesResult : public ServiceResult + { + public: struct NetworkInterfaceSet { struct AssociatedPublicIp @@ -80,26 +80,26 @@ namespace AlibabaCloud std::vector tags; std::vector privateIpSets; }; - - - DescribeNetworkInterfacesResult(); - explicit DescribeNetworkInterfacesResult(const std::string &payload); - ~DescribeNetworkInterfacesResult(); + + + DescribeNetworkInterfacesResult(); + explicit DescribeNetworkInterfacesResult(const std::string &payload); + ~DescribeNetworkInterfacesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getNetworkInterfaceSets()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector networkInterfaceSets_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h index 2fc99e65e..4cf2f7a5c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeNewProjectEipMonitorDataRequest(); - ~DescribeNewProjectEipMonitorDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataRequest : public RpcServiceRequest + { + + public: + DescribeNewProjectEipMonitorDataRequest(); + ~DescribeNewProjectEipMonitorDataRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getPeriod()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; int period_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string allocationId_; std::string startTime_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h index 6301db809..1cc2a759e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataResult : public ServiceResult + { + public: struct EipMonitorData { int eipPackets; @@ -41,20 +41,20 @@ namespace AlibabaCloud std::string timeStamp; int eipRX; }; - - - DescribeNewProjectEipMonitorDataResult(); - explicit DescribeNewProjectEipMonitorDataResult(const std::string &payload); - ~DescribeNewProjectEipMonitorDataResult(); + + + DescribeNewProjectEipMonitorDataResult(); + explicit DescribeNewProjectEipMonitorDataResult(const std::string &payload); + ~DescribeNewProjectEipMonitorDataResult(); std::vector getEipMonitorDatas()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector eipMonitorDatas_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h index c4b6cef05..0025357da 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsRequest : public RpcServiceRequest + { struct Filter { std::vector value; std::string key; }; - - public: - DescribePhysicalConnectionsRequest(); - ~DescribePhysicalConnectionsRequest(); - + + public: + DescribePhysicalConnectionsRequest(); + ~DescribePhysicalConnectionsRequest(); + std::vector getFilter()const; void setFilter(const std::vector& filter); long getResourceOwnerId()const; @@ -60,8 +60,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::vector filter_; long resourceOwnerId_; std::string regionId_; @@ -72,9 +72,9 @@ namespace AlibabaCloud std::string userCidr_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h index 65d811dbc..844f704ab 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsResult : public ServiceResult + { + public: struct PhysicalConnectionType { std::string status; @@ -53,26 +53,26 @@ namespace AlibabaCloud std::string portNumber; std::string portType; }; - - - DescribePhysicalConnectionsResult(); - explicit DescribePhysicalConnectionsResult(const std::string &payload); - ~DescribePhysicalConnectionsResult(); + + + DescribePhysicalConnectionsResult(); + explicit DescribePhysicalConnectionsResult(const std::string &payload); + ~DescribePhysicalConnectionsResult(); std::vector getPhysicalConnectionSet()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector physicalConnectionSet_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h index 5a4c5fc1f..f6db0895b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePriceRequest : public RpcServiceRequest - { - - public: - DescribePriceRequest(); - ~DescribePriceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePriceRequest : public RpcServiceRequest + { + + public: + DescribePriceRequest(); + ~DescribePriceRequest(); + std::string getDataDisk3PerformanceLevel()const; void setDataDisk3PerformanceLevel(const std::string& dataDisk3PerformanceLevel); int getDataDisk3Size()const; @@ -97,8 +97,8 @@ namespace AlibabaCloud void setInternetChargeType(const std::string& internetChargeType); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); - - private: + + private: std::string dataDisk3PerformanceLevel_; int dataDisk3Size_; long resourceOwnerId_; @@ -130,9 +130,9 @@ namespace AlibabaCloud int systemDiskSize_; std::string internetChargeType_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePriceResult.h b/ecs/include/alibabacloud/ecs/model/DescribePriceResult.h index 409d966cf..98da6910f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePriceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePriceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePriceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePriceResult : public ServiceResult + { + public: struct PriceInfo { struct Price @@ -63,20 +63,20 @@ namespace AlibabaCloud Price price; std::vector rules; }; - - - DescribePriceResult(); - explicit DescribePriceResult(const std::string &payload); - ~DescribePriceResult(); + + + DescribePriceResult(); + explicit DescribePriceResult(const std::string &payload); + ~DescribePriceResult(); PriceInfo getPriceInfo()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: PriceInfo priceInfo_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h index 3d8e5ffb4..3df654854 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeRequest : public RpcServiceRequest - { - - public: - DescribeRecommendInstanceTypeRequest(); - ~DescribeRecommendInstanceTypeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeRequest : public RpcServiceRequest + { + + public: + DescribeRecommendInstanceTypeRequest(); + ~DescribeRecommendInstanceTypeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setInstanceType(const std::string& instanceType); std::string getProxyId()const; void setProxyId(const std::string& proxyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string regionId_; std::string instanceType_; std::string proxyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h index a0e941987..a11fba4a8 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeResult : public ServiceResult + { + public: struct RecommendInstanceType { struct InstanceType @@ -54,20 +54,20 @@ namespace AlibabaCloud std::string scene; std::vector zones; }; - - - DescribeRecommendInstanceTypeResult(); - explicit DescribeRecommendInstanceTypeResult(const std::string &payload); - ~DescribeRecommendInstanceTypeResult(); + + + DescribeRecommendInstanceTypeResult(); + explicit DescribeRecommendInstanceTypeResult(const std::string &payload); + ~DescribeRecommendInstanceTypeResult(); std::vector getData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector data_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h index b344e4070..918760bd4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setInstanceChargeType(const std::string& instanceChargeType); std::string getResourceType()const; void setResourceType(const std::string& resourceType); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string instanceChargeType_; std::string resourceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.h index a5425681c..d2bacdb28 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRegionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRegionsResult : public ServiceResult + { + public: struct Region { std::string status; @@ -39,20 +39,20 @@ namespace AlibabaCloud std::string regionEndpoint; std::string localName; }; - - - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); std::vector getRegions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector regions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h index ec7696beb..8e72a00d2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceRequest : public RpcServiceRequest - { - - public: - DescribeRenewalPriceRequest(); - ~DescribeRenewalPriceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceRequest : public RpcServiceRequest + { + + public: + DescribeRenewalPriceRequest(); + ~DescribeRenewalPriceRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getResourceType()const; void setResourceType(const std::string& resourceType); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string priceUnit_; long ownerId_; std::string resourceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h index 4c7a825e6..d8fac72d8 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceResult : public ServiceResult + { + public: struct PriceInfo { struct Price @@ -63,20 +63,20 @@ namespace AlibabaCloud Price price; std::vector rules; }; - - - DescribeRenewalPriceResult(); - explicit DescribeRenewalPriceResult(const std::string &payload); - ~DescribeRenewalPriceResult(); + + + DescribeRenewalPriceResult(); + explicit DescribeRenewalPriceResult(const std::string &payload); + ~DescribeRenewalPriceResult(); PriceInfo getPriceInfo()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: PriceInfo priceInfo_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h index 36c5b6b30..710b689b4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeReservedInstancesRequest : public RpcServiceRequest - { - - public: - DescribeReservedInstancesRequest(); - ~DescribeReservedInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeReservedInstancesRequest : public RpcServiceRequest + { + + public: + DescribeReservedInstancesRequest(); + ~DescribeReservedInstancesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -105,8 +105,8 @@ namespace AlibabaCloud void setReservedInstanceName(const std::string& reservedInstanceName); std::vector getStatus()const; void setStatus(const std::vector& status); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -142,9 +142,9 @@ namespace AlibabaCloud std::string zoneId_; std::string reservedInstanceName_; std::vector status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h index ef94596e4..b2322d0fe 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeReservedInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeReservedInstancesResult : public ServiceResult + { + public: struct ReservedInstance { struct OperationLock @@ -55,26 +55,26 @@ namespace AlibabaCloud std::string reservedInstanceName; std::string instanceType; }; - - - DescribeReservedInstancesResult(); - explicit DescribeReservedInstancesResult(const std::string &payload); - ~DescribeReservedInstancesResult(); + + + DescribeReservedInstancesResult(); + explicit DescribeReservedInstancesResult(const std::string &payload); + ~DescribeReservedInstancesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getReservedInstances()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector reservedInstances_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h index 2374ce517..e49f668ea 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeResourceByTagsRequest(); - ~DescribeResourceByTagsRequest(); - + + public: + DescribeResourceByTagsRequest(); + ~DescribeResourceByTagsRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -58,8 +58,8 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -69,9 +69,9 @@ namespace AlibabaCloud long ownerId_; std::string resourceType_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h index 23605119b..f3222bac7 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h @@ -1,63 +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_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsResult : public ServiceResult + { + public: struct Resource { std::string resourceId; std::string resourceType; std::string regionId; }; - - - DescribeResourceByTagsResult(); - explicit DescribeResourceByTagsResult(const std::string &payload); - ~DescribeResourceByTagsResult(); + + + DescribeResourceByTagsResult(); + explicit DescribeResourceByTagsResult(const std::string &payload); + ~DescribeResourceByTagsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getResources()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector resources_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h index 59f119eae..75a45d064 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeResourcesModificationRequest : public RpcServiceRequest - { - - public: - DescribeResourcesModificationRequest(); - ~DescribeResourcesModificationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeResourcesModificationRequest : public RpcServiceRequest + { + + public: + DescribeResourcesModificationRequest(); + ~DescribeResourcesModificationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); float getMemory()const; @@ -99,8 +99,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; float memory_; long callerParentId_; @@ -133,9 +133,9 @@ namespace AlibabaCloud std::string destinationResource_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationResult.h b/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationResult.h index a50dc6272..f6a7788bb 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeResourcesModificationResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeResourcesModificationResult : public ServiceResult + { + public: struct AvailableZone { struct AvailableResource @@ -54,20 +54,20 @@ namespace AlibabaCloud std::vector availableResources; std::string regionId; }; - - - DescribeResourcesModificationResult(); - explicit DescribeResourcesModificationResult(const std::string &payload); - ~DescribeResourcesModificationResult(); + + + DescribeResourcesModificationResult(); + explicit DescribeResourcesModificationResult(const std::string &payload); + ~DescribeResourcesModificationResult(); std::vector getAvailableZones()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector availableZones_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h index 22f77b1d0..3454358cc 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesRequest : public RpcServiceRequest - { - - public: - DescribeRouteTablesRequest(); - ~DescribeRouteTablesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesRequest : public RpcServiceRequest + { + + public: + DescribeRouteTablesRequest(); + ~DescribeRouteTablesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getVRouterId()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getRouteTableId()const; void setRouteTableId(const std::string& routeTableId); - - private: + + private: long resourceOwnerId_; std::string vRouterId_; std::string resourceOwnerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string routerId_; int pageSize_; std::string routeTableId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.h index 332ea02aa..67983ce6e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesResult : public ServiceResult + { + public: struct RouteTable { struct RouteEntry @@ -58,26 +58,26 @@ namespace AlibabaCloud std::vector routeEntrys; std::string routeTableType; }; - - - DescribeRouteTablesResult(); - explicit DescribeRouteTablesResult(const std::string &payload); - ~DescribeRouteTablesResult(); + + + DescribeRouteTablesResult(); + explicit DescribeRouteTablesResult(const std::string &payload); + ~DescribeRouteTablesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getRouteTables()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector routeTables_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h index 27f731939..4f8d08751 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesRequest : public RpcServiceRequest + { struct Filter { std::vector value; std::string key; }; - - public: - DescribeRouterInterfacesRequest(); - ~DescribeRouterInterfacesRequest(); - + + public: + DescribeRouterInterfacesRequest(); + ~DescribeRouterInterfacesRequest(); + std::vector getFilter()const; void setFilter(const std::vector& filter); long getResourceOwnerId()const; @@ -54,8 +54,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::vector filter_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -63,9 +63,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h index 3f96c6b87..2513e9ecd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesResult : public ServiceResult + { + public: struct RouterInterfaceType { std::string oppositeInterfaceId; @@ -60,26 +60,26 @@ namespace AlibabaCloud std::string routerInterfaceId; std::string healthCheckTargetIp; }; - - - DescribeRouterInterfacesResult(); - explicit DescribeRouterInterfacesResult(const std::string &payload); - ~DescribeRouterInterfacesResult(); + + + DescribeRouterInterfacesResult(); + explicit DescribeRouterInterfacesResult(const std::string &payload); + ~DescribeRouterInterfacesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getRouterInterfaceSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector routerInterfaceSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h index 4e7622b3f..898b219a0 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeRequest : public RpcServiceRequest - { - - public: - DescribeSecurityGroupAttributeRequest(); - ~DescribeSecurityGroupAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeRequest : public RpcServiceRequest + { + + public: + DescribeSecurityGroupAttributeRequest(); + ~DescribeSecurityGroupAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getNicType()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getDirection()const; void setDirection(const std::string& direction); - - private: + + private: std::string sourceRegionId_; std::string nicType_; long resourceOwnerId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string securityGroupId_; long ownerId_; std::string direction_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h index 9f5d2bff1..4fdf91371 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeResult : public ServiceResult + { + public: struct Permission { std::string sourceGroupId; @@ -54,11 +54,11 @@ namespace AlibabaCloud std::string sourceGroupOwnerAccount; std::string ipv6DestCidrIp; }; - - - DescribeSecurityGroupAttributeResult(); - explicit DescribeSecurityGroupAttributeResult(const std::string &payload); - ~DescribeSecurityGroupAttributeResult(); + + + DescribeSecurityGroupAttributeResult(); + explicit DescribeSecurityGroupAttributeResult(const std::string &payload); + ~DescribeSecurityGroupAttributeResult(); std::string getDescription()const; std::string getSecurityGroupName()const; std::string getVpcId()const; @@ -66,10 +66,10 @@ namespace AlibabaCloud std::vector getPermissions()const; std::string getRegionId()const; std::string getInnerAccessPolicy()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string description_; std::string securityGroupName_; std::string vpcId_; @@ -77,9 +77,9 @@ namespace AlibabaCloud std::vector permissions_; std::string regionId_; std::string innerAccessPolicy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h index aabcf04a4..dad9e9cec 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesRequest : public RpcServiceRequest - { - - public: - DescribeSecurityGroupReferencesRequest(); - ~DescribeSecurityGroupReferencesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesRequest : public RpcServiceRequest + { + + public: + DescribeSecurityGroupReferencesRequest(); + ~DescribeSecurityGroupReferencesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSecurityGroupId(const std::vector& securityGroupId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::vector securityGroupId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h index af51f992b..74b16929d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesResult : public ServiceResult + { + public: struct SecurityGroupReference { struct ReferencingSecurityGroup @@ -42,20 +42,20 @@ namespace AlibabaCloud std::vector referencingSecurityGroups; std::string securityGroupId; }; - - - DescribeSecurityGroupReferencesResult(); - explicit DescribeSecurityGroupReferencesResult(const std::string &payload); - ~DescribeSecurityGroupReferencesResult(); + + + DescribeSecurityGroupReferencesResult(); + explicit DescribeSecurityGroupReferencesResult(const std::string &payload); + ~DescribeSecurityGroupReferencesResult(); std::vector getSecurityGroupReferences()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector securityGroupReferences_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h index 285b6e0cb..dd5003217 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeSecurityGroupsRequest(); - ~DescribeSecurityGroupsRequest(); - + + public: + DescribeSecurityGroupsRequest(); + ~DescribeSecurityGroupsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); bool getDryRun()const; @@ -76,8 +76,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::vector getTag()const; void setTag(const std::vector& tag); - - private: + + private: long resourceOwnerId_; bool dryRun_; bool fuzzyQuery_; @@ -96,9 +96,9 @@ namespace AlibabaCloud std::string vpcId_; int pageSize_; std::vector tag_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h index 74df82d04..98302d2be 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsResult : public ServiceResult + { + public: struct SecurityGroup { struct Tag @@ -50,28 +50,28 @@ namespace AlibabaCloud std::vector tags; int availableInstanceAmount; }; - - - DescribeSecurityGroupsResult(); - explicit DescribeSecurityGroupsResult(const std::string &payload); - ~DescribeSecurityGroupsResult(); + + + DescribeSecurityGroupsResult(); + explicit DescribeSecurityGroupsResult(const std::string &payload); + ~DescribeSecurityGroupsResult(); std::vector getSecurityGroups()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector securityGroups_; int totalCount_; int pageSize_; int pageNumber_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h index d1e01a2d7..7108abd73 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotLinksRequest(); - ~DescribeSnapshotLinksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksRequest : public RpcServiceRequest + { + + public: + DescribeSnapshotLinksRequest(); + ~DescribeSnapshotLinksRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string snapshotLinkIds_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h index 3c8f9e9c1..9538693d2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksResult : public ServiceResult + { + public: struct SnapshotLink { std::string instanceName; @@ -42,29 +42,29 @@ namespace AlibabaCloud std::string sourceDiskName; std::string regionId; std::string sourceDiskType; - int totalSize; + long totalSize; std::string sourceDiskId; }; - - - DescribeSnapshotLinksResult(); - explicit DescribeSnapshotLinksResult(const std::string &payload); - ~DescribeSnapshotLinksResult(); + + + DescribeSnapshotLinksResult(); + explicit DescribeSnapshotLinksResult(const std::string &payload); + ~DescribeSnapshotLinksResult(); std::vector getSnapshotLinks()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector snapshotLinks_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h index e8a9bd0be..af50455d3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotMonitorDataRequest(); - ~DescribeSnapshotMonitorDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataRequest : public RpcServiceRequest + { + + public: + DescribeSnapshotMonitorDataRequest(); + ~DescribeSnapshotMonitorDataRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; int period_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string endTime_; std::string startTime_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h index 8ba64bd92..8ff0ce4f2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataResult : public ServiceResult + { + public: struct DataPoint { long size; std::string timeStamp; }; - - - DescribeSnapshotMonitorDataResult(); - explicit DescribeSnapshotMonitorDataResult(const std::string &payload); - ~DescribeSnapshotMonitorDataResult(); + + + DescribeSnapshotMonitorDataResult(); + explicit DescribeSnapshotMonitorDataResult(const std::string &payload); + ~DescribeSnapshotMonitorDataResult(); std::vector getMonitorData()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector monitorData_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h index cc856aaf0..0de2e3407 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotPackageRequest(); - ~DescribeSnapshotPackageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageRequest : public RpcServiceRequest + { + + public: + DescribeSnapshotPackageRequest(); + ~DescribeSnapshotPackageRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h index f53c23c43..d835db8e2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageResult : public ServiceResult + { + public: struct SnapshotPackage { std::string endTime; @@ -39,26 +39,26 @@ namespace AlibabaCloud std::string startTime; std::string displayName; }; - - - DescribeSnapshotPackageResult(); - explicit DescribeSnapshotPackageResult(const std::string &payload); - ~DescribeSnapshotPackageResult(); + + + DescribeSnapshotPackageResult(); + explicit DescribeSnapshotPackageResult(const std::string &payload); + ~DescribeSnapshotPackageResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getSnapshotPackages()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector snapshotPackages_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h index 15f8575f4..cc589dbfe 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeSnapshotsRequest(); - ~DescribeSnapshotsRequest(); - + + public: + DescribeSnapshotsRequest(); + ~DescribeSnapshotsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getFilter2Value()const; @@ -92,8 +92,8 @@ namespace AlibabaCloud void setKMSKeyId(const std::string& kMSKeyId); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: long resourceOwnerId_; std::string filter2Value_; std::string snapshotIds_; @@ -120,9 +120,9 @@ namespace AlibabaCloud std::string snapshotType_; std::string kMSKeyId_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.h index c905ab2fd..9587a77cd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsResult : public ServiceResult + { + public: struct Snapshot { struct Tag @@ -59,26 +59,26 @@ namespace AlibabaCloud int remainTime; std::vector tags; }; - - - DescribeSnapshotsResult(); - explicit DescribeSnapshotsResult(const std::string &payload); - ~DescribeSnapshotsResult(); + + + DescribeSnapshotsResult(); + explicit DescribeSnapshotsResult(const std::string &payload); + ~DescribeSnapshotsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getSnapshots()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector snapshots_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h index b7420e972..e7004ce16 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotsUsageRequest(); - ~DescribeSnapshotsUsageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageRequest : public RpcServiceRequest + { + + public: + DescribeSnapshotsUsageRequest(); + ~DescribeSnapshotsUsageRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -85,8 +85,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -112,9 +112,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h index 0998ecbce..d43179731 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageResult : public ServiceResult - { - public: - - - DescribeSnapshotsUsageResult(); - explicit DescribeSnapshotsUsageResult(const std::string &payload); - ~DescribeSnapshotsUsageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageResult : public ServiceResult + { + public: + + + DescribeSnapshotsUsageResult(); + explicit DescribeSnapshotsUsageResult(const std::string &payload); + ~DescribeSnapshotsUsageResult(); int getSnapshotCount()const; long getSnapshotSize()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int snapshotCount_; long snapshotSize_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h index 1e226cf35..910e2ed0a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryRequest : public RpcServiceRequest - { - - public: - DescribeSpotPriceHistoryRequest(); - ~DescribeSpotPriceHistoryRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryRequest : public RpcServiceRequest + { + + public: + DescribeSpotPriceHistoryRequest(); + ~DescribeSpotPriceHistoryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -101,8 +101,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getZoneId()const; void setZoneId(const std::string& zoneId); - - private: + + private: long resourceOwnerId_; long callerParentId_; std::string ioOptimized_; @@ -136,9 +136,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string zoneId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h index ab93b0e66..92530b2ec 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryResult : public ServiceResult + { + public: struct SpotPriceType { float spotPrice; @@ -42,24 +42,24 @@ namespace AlibabaCloud std::string instanceType; std::string timestamp; }; - - - DescribeSpotPriceHistoryResult(); - explicit DescribeSpotPriceHistoryResult(const std::string &payload); - ~DescribeSpotPriceHistoryResult(); + + + DescribeSpotPriceHistoryResult(); + explicit DescribeSpotPriceHistoryResult(const std::string &payload); + ~DescribeSpotPriceHistoryResult(); std::string getCurrency()const; int getNextOffset()const; std::vector getSpotPrices()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string currency_; int nextOffset_; std::vector spotPrices_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h index d934f2a93..908bfe476 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetDetailsRequest : public RpcServiceRequest - { - - public: - DescribeStorageSetDetailsRequest(); - ~DescribeStorageSetDetailsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetDetailsRequest : public RpcServiceRequest + { + + public: + DescribeStorageSetDetailsRequest(); + ~DescribeStorageSetDetailsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -97,8 +97,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -130,9 +130,9 @@ namespace AlibabaCloud std::string storageSetId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsResult.h index 3dd0761aa..cef2e2578 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetDetailsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetDetailsResult : public ServiceResult + { + public: struct Disk { std::string category; @@ -43,26 +43,26 @@ namespace AlibabaCloud std::string diskName; std::string diskId; }; - - - DescribeStorageSetDetailsResult(); - explicit DescribeStorageSetDetailsResult(const std::string &payload); - ~DescribeStorageSetDetailsResult(); + + + DescribeStorageSetDetailsResult(); + explicit DescribeStorageSetDetailsResult(const std::string &payload); + ~DescribeStorageSetDetailsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getDisks()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector disks_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h index efa882ca2..bb5d88ad2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetsRequest : public RpcServiceRequest - { - - public: - DescribeStorageSetsRequest(); - ~DescribeStorageSetsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetsRequest : public RpcServiceRequest + { + + public: + DescribeStorageSetsRequest(); + ~DescribeStorageSetsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -97,8 +97,8 @@ namespace AlibabaCloud void setZoneId(const std::string& zoneId); std::string getStorageSetName()const; void setStorageSetName(const std::string& storageSetName); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -130,9 +130,9 @@ namespace AlibabaCloud std::string akProxy_; std::string zoneId_; std::string storageSetName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsResult.h index 3cdd11248..ec97d8f93 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetsResult : public ServiceResult + { + public: struct StorageSet { std::string description; @@ -42,26 +42,26 @@ namespace AlibabaCloud std::string regionId; std::string storageSetName; }; - - - DescribeStorageSetsResult(); - explicit DescribeStorageSetsResult(const std::string &payload); - ~DescribeStorageSetsResult(); + + + DescribeStorageSetsResult(); + explicit DescribeStorageSetsResult(const std::string &payload); + ~DescribeStorageSetsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getStorageSets()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector storageSets_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h index 6811c002d..ade0379db 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBETAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTagsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTagsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeTagsRequest(); - ~DescribeTagsRequest(); - + + public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceId_; @@ -75,9 +75,9 @@ namespace AlibabaCloud std::string category_; std::string resourceType_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h index 07eac3c12..4db055611 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTagsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTagsResult : public ServiceResult + { + public: struct Tag { struct ResourceTypeCount @@ -51,26 +51,26 @@ namespace AlibabaCloud std::string tagKey; std::string tagValue; }; - - - DescribeTagsResult(); - explicit DescribeTagsResult(const std::string &payload); - ~DescribeTagsResult(); + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getTags()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector tags_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h index 7c3734881..14a674633 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeRequest : public RpcServiceRequest - { - - public: - DescribeTaskAttributeRequest(); - ~DescribeTaskAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeRequest : public RpcServiceRequest + { + + public: + DescribeTaskAttributeRequest(); + ~DescribeTaskAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getTaskId()const; void setTaskId(const std::string& taskId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; long ownerId_; std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h index 7f83ecc39..75b765e73 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeResult : public ServiceResult + { + public: struct OperationProgress { struct RelatedItem @@ -44,11 +44,11 @@ namespace AlibabaCloud std::vector relatedItemSet; std::string errorCode; }; - - - DescribeTaskAttributeResult(); - explicit DescribeTaskAttributeResult(const std::string &payload); - ~DescribeTaskAttributeResult(); + + + DescribeTaskAttributeResult(); + explicit DescribeTaskAttributeResult(const std::string &payload); + ~DescribeTaskAttributeResult(); int getTotalCount()const; std::string getTaskId()const; std::string getTaskProcess()const; @@ -61,10 +61,10 @@ namespace AlibabaCloud std::string getTaskStatus()const; int getSuccessCount()const; std::string getFinishedTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::string taskId_; std::string taskProcess_; @@ -77,9 +77,9 @@ namespace AlibabaCloud std::string taskStatus_; int successCount_; std::string finishedTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h index 4220750b9..94ffc04d6 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTasksRequest : public RpcServiceRequest - { - - public: - DescribeTasksRequest(); - ~DescribeTasksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTasksRequest : public RpcServiceRequest + { + + public: + DescribeTasksRequest(); + ~DescribeTasksRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getTaskAction()const; void setTaskAction(const std::string& taskAction); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string regionId_; int pageSize_; std::string taskAction_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h index b2701ba04..e0819f96c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTasksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTasksResult : public ServiceResult + { + public: struct Task { std::string taskId; @@ -41,28 +41,28 @@ namespace AlibabaCloud std::string taskStatus; std::string finishedTime; }; - - - DescribeTasksResult(); - explicit DescribeTasksResult(const std::string &payload); - ~DescribeTasksResult(); + + + DescribeTasksResult(); + explicit DescribeTasksResult(const std::string &payload); + ~DescribeTasksResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getTaskSet()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector taskSet_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h index d13de5726..ce2e39f6b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorRequest : public RpcServiceRequest - { - - public: - DescribeUserBusinessBehaviorRequest(); - ~DescribeUserBusinessBehaviorRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorRequest : public RpcServiceRequest + { + + public: + DescribeUserBusinessBehaviorRequest(); + ~DescribeUserBusinessBehaviorRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getStatusKey()const; void setStatusKey(const std::string& statusKey); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string statusKey_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h index 680e159f9..615292d61 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h @@ -1,51 +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_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorResult : public ServiceResult - { - public: - - - DescribeUserBusinessBehaviorResult(); - explicit DescribeUserBusinessBehaviorResult(const std::string &payload); - ~DescribeUserBusinessBehaviorResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorResult : public ServiceResult + { + public: + + + DescribeUserBusinessBehaviorResult(); + explicit DescribeUserBusinessBehaviorResult(const std::string &payload); + ~DescribeUserBusinessBehaviorResult(); std::string getStatusValue()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string statusValue_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h index 64e71f807..0b1ab56a9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeUserDataRequest : public RpcServiceRequest - { - - public: - DescribeUserDataRequest(); - ~DescribeUserDataRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserDataRequest : public RpcServiceRequest + { + + public: + DescribeUserDataRequest(); + ~DescribeUserDataRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; std::string resourceOwnerAccount_; std::string regionId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.h index 9b47f645f..ee2b4db4f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.h @@ -1,55 +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_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeUserDataResult : public ServiceResult - { - public: - - - DescribeUserDataResult(); - explicit DescribeUserDataResult(const std::string &payload); - ~DescribeUserDataResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserDataResult : public ServiceResult + { + public: + + + DescribeUserDataResult(); + explicit DescribeUserDataResult(const std::string &payload); + ~DescribeUserDataResult(); std::string getInstanceId()const; std::string getUserData()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string instanceId_; std::string userData_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h index dfb2153fa..f77b5b125 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersRequest : public RpcServiceRequest - { - - public: - DescribeVRoutersRequest(); - ~DescribeVRoutersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersRequest : public RpcServiceRequest + { + + public: + DescribeVRoutersRequest(); + ~DescribeVRoutersRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getVRouterId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: long resourceOwnerId_; std::string vRouterId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h index f73481af1..05644de9b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersResult : public ServiceResult + { + public: struct VRouter { std::string vRouterId; @@ -42,26 +42,26 @@ namespace AlibabaCloud std::string regionId; std::string vRouterName; }; - - - DescribeVRoutersResult(); - explicit DescribeVRoutersResult(const std::string &payload); - ~DescribeVRoutersResult(); + + + DescribeVRoutersResult(); + explicit DescribeVRoutersResult(const std::string &payload); + ~DescribeVRoutersResult(); std::vector getVRouters()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector vRouters_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h index e891059c9..62458e6c2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest - { - - public: - DescribeVSwitchesRequest(); - ~DescribeVSwitchesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest + { + + public: + DescribeVSwitchesRequest(); + ~DescribeVSwitchesRequest(); + std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); long getResourceOwnerId()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::string vSwitchId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -70,9 +70,9 @@ namespace AlibabaCloud bool isDefault_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h index 9431c84d0..178ad504c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesResult : public ServiceResult + { + public: struct VSwitch { std::string status; @@ -46,26 +46,26 @@ namespace AlibabaCloud std::string cidrBlock; std::string vSwitchName; }; - - - DescribeVSwitchesResult(); - explicit DescribeVSwitchesResult(const std::string &payload); - ~DescribeVSwitchesResult(); + + + DescribeVSwitchesResult(); + explicit DescribeVSwitchesResult(const std::string &payload); + ~DescribeVSwitchesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getVSwitches()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector vSwitches_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h index 2dbd49511..5dc68e19e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public RpcServiceRequest + { struct Filter { std::vector value; std::string key; }; - - public: - DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); - ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); - + + public: + DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + std::vector getFilter()const; void setFilter(const std::vector& filter); long getResourceOwnerId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::vector filter_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -66,9 +66,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h index 39d9567a5..1abc98b0a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionResult : public ServiceResult + { + public: struct VirtualBorderRouterForPhysicalConnectionType { long vbrOwnerUid; @@ -43,26 +43,26 @@ namespace AlibabaCloud int vlanId; std::string recoveryTime; }; - - - DescribeVirtualBorderRoutersForPhysicalConnectionResult(); - explicit DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload); - ~DescribeVirtualBorderRoutersForPhysicalConnectionResult(); + + + DescribeVirtualBorderRoutersForPhysicalConnectionResult(); + explicit DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload); + ~DescribeVirtualBorderRoutersForPhysicalConnectionResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getVirtualBorderRouterForPhysicalConnectionSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector virtualBorderRouterForPhysicalConnectionSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h index bef95c03e..86e3808bc 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h @@ -1,45 +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_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersRequest : public RpcServiceRequest + { struct Filter { std::vector value; std::string key; }; - - public: - DescribeVirtualBorderRoutersRequest(); - ~DescribeVirtualBorderRoutersRequest(); - + + public: + DescribeVirtualBorderRoutersRequest(); + ~DescribeVirtualBorderRoutersRequest(); + std::vector getFilter()const; void setFilter(const std::vector& filter); long getResourceOwnerId()const; @@ -54,8 +54,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: std::vector filter_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -63,9 +63,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h index 048b87083..867c9af40 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersResult : public ServiceResult + { + public: struct VirtualBorderRouterType { std::string status; @@ -55,26 +55,26 @@ namespace AlibabaCloud int vlanId; std::string physicalConnectionBusinessStatus; }; - - - DescribeVirtualBorderRoutersResult(); - explicit DescribeVirtualBorderRoutersResult(const std::string &payload); - ~DescribeVirtualBorderRoutersResult(); + + + DescribeVirtualBorderRoutersResult(); + explicit DescribeVirtualBorderRoutersResult(const std::string &payload); + ~DescribeVirtualBorderRoutersResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getVirtualBorderRouterSet()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector virtualBorderRouterSet_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h index 5a4049c70..69968fd21 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVpcsRequest : public RpcServiceRequest - { - - public: - DescribeVpcsRequest(); - ~DescribeVpcsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVpcsRequest : public RpcServiceRequest + { + + public: + DescribeVpcsRequest(); + ~DescribeVpcsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud bool isDefault_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.h index 10b86fe92..073eef3de 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVpcsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVpcsResult : public ServiceResult + { + public: struct Vpc { std::string status; @@ -46,26 +46,26 @@ namespace AlibabaCloud std::string regionId; std::vector userCidrs; }; - - - DescribeVpcsResult(); - explicit DescribeVpcsResult(const std::string &payload); - ~DescribeVpcsResult(); + + + DescribeVpcsResult(); + explicit DescribeVpcsResult(const std::string &payload); + ~DescribeVpcsResult(); std::vector getVpcs()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector vpcs_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h index 21e031caa..faa6ad8be 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeZonesRequest : public RpcServiceRequest - { - - public: - DescribeZonesRequest(); - ~DescribeZonesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeZonesRequest : public RpcServiceRequest + { + + public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getSpotStrategy()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setInstanceChargeType(const std::string& instanceChargeType); bool getVerbose()const; void setVerbose(bool verbose); - - private: + + private: std::string sourceRegionId_; std::string spotStrategy_; long resourceOwnerId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string instanceChargeType_; bool verbose_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeZonesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeZonesResult.h index d497e8f18..dd9043836 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeZonesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeZonesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeZonesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeZonesResult : public ServiceResult + { + public: struct Zone { struct ResourcesInfo @@ -54,20 +54,20 @@ namespace AlibabaCloud std::vector availableResourceCreation; std::vector availableVolumeCategories; }; - - - DescribeZonesResult(); - explicit DescribeZonesResult(const std::string &payload); - ~DescribeZonesResult(); + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); std::vector getZones()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector zones_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h index dd0864242..76160071f 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcRequest : public RpcServiceRequest - { - - public: - DetachClassicLinkVpcRequest(); - ~DetachClassicLinkVpcRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcRequest : public RpcServiceRequest + { + + public: + DetachClassicLinkVpcRequest(); + ~DetachClassicLinkVpcRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setVpcId(const std::string& vpcId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string vpcId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h index e0cd8828e..e1a96c1f8 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h +++ b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcResult : public ServiceResult - { - public: - - - DetachClassicLinkVpcResult(); - explicit DetachClassicLinkVpcResult(const std::string &payload); - ~DetachClassicLinkVpcResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcResult : public ServiceResult + { + public: + + + DetachClassicLinkVpcResult(); + explicit DetachClassicLinkVpcResult(const std::string &payload); + ~DetachClassicLinkVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h b/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h index 8ded05972..c7a25374f 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachDiskRequest : public RpcServiceRequest - { - - public: - DetachDiskRequest(); - ~DetachDiskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachDiskRequest : public RpcServiceRequest + { + + public: + DetachDiskRequest(); + ~DetachDiskRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setDiskId(const std::string& diskId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string diskId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachDiskResult.h b/ecs/include/alibabacloud/ecs/model/DetachDiskResult.h index 58cc5bd92..d10185264 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/DetachDiskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachDiskResult : public ServiceResult - { - public: - - - DetachDiskResult(); - explicit DetachDiskResult(const std::string &payload); - ~DetachDiskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachDiskResult : public ServiceResult + { + public: + + + DetachDiskResult(); + explicit DetachDiskResult(const std::string &payload); + ~DetachDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h index cddbdea5b..699e4c11e 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleRequest : public RpcServiceRequest - { - - public: - DetachInstanceRamRoleRequest(); - ~DetachInstanceRamRoleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleRequest : public RpcServiceRequest + { + + public: + DetachInstanceRamRoleRequest(); + ~DetachInstanceRamRoleRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setRamRoleName(const std::string& ramRoleName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string instanceIds_; std::string ramRoleName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h index 44fcf6c01..4138641bc 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h +++ b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleResult : public ServiceResult + { + public: struct Result { struct InstanceRamRoleSet @@ -45,26 +45,26 @@ namespace AlibabaCloud std::string code; bool success; }; - - - DetachInstanceRamRoleResult(); - explicit DetachInstanceRamRoleResult(const std::string &payload); - ~DetachInstanceRamRoleResult(); + + + DetachInstanceRamRoleResult(); + explicit DetachInstanceRamRoleResult(const std::string &payload); + ~DetachInstanceRamRoleResult(); int getTotalCount()const; std::string getRamRoleName()const; int getFailCount()const; std::vector getDetachInstanceRamRoleResults()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; std::string ramRoleName_; int failCount_; std::vector detachInstanceRamRoleResults_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h index ed174ef9b..496e8debf 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachKeyPairRequest : public RpcServiceRequest - { - - public: - DetachKeyPairRequest(); - ~DetachKeyPairRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachKeyPairRequest : public RpcServiceRequest + { + + public: + DetachKeyPairRequest(); + ~DetachKeyPairRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setKeyPairName(const std::string& keyPairName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string instanceIds_; std::string keyPairName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.h index e3b1ba55a..a5fa95108 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.h +++ b/ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachKeyPairResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachKeyPairResult : public ServiceResult + { + public: struct Result { std::string message; @@ -39,26 +39,26 @@ namespace AlibabaCloud std::string code; std::string success; }; - - - DetachKeyPairResult(); - explicit DetachKeyPairResult(const std::string &payload); - ~DetachKeyPairResult(); + + + DetachKeyPairResult(); + explicit DetachKeyPairResult(const std::string &payload); + ~DetachKeyPairResult(); std::string getKeyPairName()const; std::string getTotalCount()const; std::vector getResults()const; std::string getFailCount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string keyPairName_; std::string totalCount_; std::vector results_; std::string failCount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h index 7f3c5cb00..d36a593d0 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceRequest : public RpcServiceRequest - { - - public: - DetachNetworkInterfaceRequest(); - ~DetachNetworkInterfaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceRequest : public RpcServiceRequest + { + + public: + DetachNetworkInterfaceRequest(); + ~DetachNetworkInterfaceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h index ac56da904..95b88e29b 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceResult : public ServiceResult - { - public: - - - DetachNetworkInterfaceResult(); - explicit DetachNetworkInterfaceResult(const std::string &payload); - ~DetachNetworkInterfaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceResult : public ServiceResult + { + public: + + + DetachNetworkInterfaceResult(); + explicit DetachNetworkInterfaceResult(const std::string &payload); + ~DetachNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h index 2977f595e..80fba78cc 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillParamsRequest : public RpcServiceRequest - { - - public: - EipFillParamsRequest(); - ~EipFillParamsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillParamsRequest : public RpcServiceRequest + { + + public: + EipFillParamsRequest(); + ~EipFillParamsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getData()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string data_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h index 3e36f6cce..a1c66db9b 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h @@ -1,59 +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_ECS_MODEL_EIPFILLPARAMSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillParamsResult : public ServiceResult - { - public: - - - EipFillParamsResult(); - explicit EipFillParamsResult(const std::string &payload); - ~EipFillParamsResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillParamsResult : public ServiceResult + { + public: + + + EipFillParamsResult(); + explicit EipFillParamsResult(const std::string &payload); + ~EipFillParamsResult(); std::string getRequestId()const; std::string getMessage()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string requestId_; std::string message_; std::string data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h index 15b92c1dd..0d9213aec 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillProductRequest : public RpcServiceRequest - { - - public: - EipFillProductRequest(); - ~EipFillProductRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillProductRequest : public RpcServiceRequest + { + + public: + EipFillProductRequest(); + ~EipFillProductRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getData()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string data_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h b/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h index b23d4e22f..6133f8c90 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h @@ -1,59 +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_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillProductResult : public ServiceResult - { - public: - - - EipFillProductResult(); - explicit EipFillProductResult(const std::string &payload); - ~EipFillProductResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillProductResult : public ServiceResult + { + public: + + + EipFillProductResult(); + explicit EipFillProductResult(const std::string &payload); + ~EipFillProductResult(); std::string getRequestId()const; std::string getMessage()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string requestId_; std::string message_; std::string data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h index 5d57c44ab..281bd9199 100644 --- a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidRequest : public RpcServiceRequest - { - - public: - EipNotifyPaidRequest(); - ~EipNotifyPaidRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidRequest : public RpcServiceRequest + { + + public: + EipNotifyPaidRequest(); + ~EipNotifyPaidRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getData()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string data_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h index 7460bd1bb..dba665dae 100644 --- a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h +++ b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h @@ -1,59 +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_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidResult : public ServiceResult - { - public: - - - EipNotifyPaidResult(); - explicit EipNotifyPaidResult(const std::string &payload); - ~EipNotifyPaidResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidResult : public ServiceResult + { + public: + + + EipNotifyPaidResult(); + explicit EipNotifyPaidResult(const std::string &payload); + ~EipNotifyPaidResult(); std::string getRequestId()const; std::string getMessage()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string requestId_; std::string message_; std::string data_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h index ab73ac607..9d667ed6b 100644 --- a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - EnablePhysicalConnectionRequest(); - ~EnablePhysicalConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionRequest : public RpcServiceRequest + { + + public: + EnablePhysicalConnectionRequest(); + ~EnablePhysicalConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h index 7a2dd3d4b..e2ebf5bef 100644 --- a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h +++ b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionResult : public ServiceResult - { - public: - - - EnablePhysicalConnectionResult(); - explicit EnablePhysicalConnectionResult(const std::string &payload); - ~EnablePhysicalConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionResult : public ServiceResult + { + public: + + + EnablePhysicalConnectionResult(); + explicit EnablePhysicalConnectionResult(const std::string &payload); + ~EnablePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h b/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h index d2d094951..71f408394 100644 --- a/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ExportImageRequest : public RpcServiceRequest - { - - public: - ExportImageRequest(); - ~ExportImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ExportImageRequest : public RpcServiceRequest + { + + public: + ExportImageRequest(); + ~ExportImageRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getImageFormat()const; void setImageFormat(const std::string& imageFormat); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string imageId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string roleName_; long ownerId_; std::string imageFormat_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ExportImageResult.h b/ecs/include/alibabacloud/ecs/model/ExportImageResult.h index bee5f34cc..49dff78c6 100644 --- a/ecs/include/alibabacloud/ecs/model/ExportImageResult.h +++ b/ecs/include/alibabacloud/ecs/model/ExportImageResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ExportImageResult : public ServiceResult - { - public: - - - ExportImageResult(); - explicit ExportImageResult(const std::string &payload); - ~ExportImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ExportImageResult : public ServiceResult + { + public: + + + ExportImageResult(); + explicit ExportImageResult(const std::string &payload); + ~ExportImageResult(); std::string getTaskId()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h index 623b69845..35eea9a1d 100644 --- a/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ExportSnapshotRequest : public RpcServiceRequest - { - - public: - ExportSnapshotRequest(); - ~ExportSnapshotRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ExportSnapshotRequest : public RpcServiceRequest + { + + public: + ExportSnapshotRequest(); + ~ExportSnapshotRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSnapshotId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; std::string snapshotId_; long callerParentId_; @@ -115,9 +115,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ExportSnapshotResult.h b/ecs/include/alibabacloud/ecs/model/ExportSnapshotResult.h index af9f8217a..28790f5a8 100644 --- a/ecs/include/alibabacloud/ecs/model/ExportSnapshotResult.h +++ b/ecs/include/alibabacloud/ecs/model/ExportSnapshotResult.h @@ -1,51 +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_ECS_MODEL_EXPORTSNAPSHOTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ExportSnapshotResult : public ServiceResult - { - public: - - - ExportSnapshotResult(); - explicit ExportSnapshotResult(const std::string &payload); - ~ExportSnapshotResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ExportSnapshotResult : public ServiceResult + { + public: + + + ExportSnapshotResult(); + explicit ExportSnapshotResult(const std::string &payload); + ~ExportSnapshotResult(); std::string getTaskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h index 86ee79074..aacb39a07 100644 --- a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h +++ b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT GetInstanceConsoleOutputRequest : public RpcServiceRequest - { - - public: - GetInstanceConsoleOutputRequest(); - ~GetInstanceConsoleOutputRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT GetInstanceConsoleOutputRequest : public RpcServiceRequest + { + + public: + GetInstanceConsoleOutputRequest(); + ~GetInstanceConsoleOutputRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h index 5eb7d8ea1..45f8c02af 100644 --- a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h +++ b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h @@ -1,55 +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_ECS_MODEL_GETINSTANCECONSOLEOUTPUTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT GetInstanceConsoleOutputResult : public ServiceResult - { - public: - - - GetInstanceConsoleOutputResult(); - explicit GetInstanceConsoleOutputResult(const std::string &payload); - ~GetInstanceConsoleOutputResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT GetInstanceConsoleOutputResult : public ServiceResult + { + public: + + + GetInstanceConsoleOutputResult(); + explicit GetInstanceConsoleOutputResult(const std::string &payload); + ~GetInstanceConsoleOutputResult(); std::string getConsoleOutput()const; std::string getInstanceId()const; std::string getLastUpdateTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string consoleOutput_; std::string instanceId_; std::string lastUpdateTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h b/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h index 539972dc1..073bc8171 100644 --- a/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT GetInstanceScreenshotRequest : public RpcServiceRequest - { - - public: - GetInstanceScreenshotRequest(); - ~GetInstanceScreenshotRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT GetInstanceScreenshotRequest : public RpcServiceRequest + { + + public: + GetInstanceScreenshotRequest(); + ~GetInstanceScreenshotRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotResult.h b/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotResult.h index d785a880d..220d31f4e 100644 --- a/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotResult.h +++ b/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT GetInstanceScreenshotResult : public ServiceResult - { - public: - - - GetInstanceScreenshotResult(); - explicit GetInstanceScreenshotResult(const std::string &payload); - ~GetInstanceScreenshotResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT GetInstanceScreenshotResult : public ServiceResult + { + public: + + + GetInstanceScreenshotResult(); + explicit GetInstanceScreenshotResult(const std::string &payload); + ~GetInstanceScreenshotResult(); std::string getInstanceId()const; std::string getScreenshot()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string instanceId_; std::string screenshot_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h index ada4f7caa..f886f1016 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportImageRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportImageRequest : public RpcServiceRequest + { struct DiskDeviceMapping { std::string oSSBucket; @@ -39,11 +39,11 @@ namespace AlibabaCloud std::string oSSObject; int diskImageSize; }; - - public: - ImportImageRequest(); - ~ImportImageRequest(); - + + public: + ImportImageRequest(); + ~ImportImageRequest(); + std::vector getDiskDeviceMapping()const; void setDiskDeviceMapping(const std::vector& diskDeviceMapping); long getResourceOwnerId()const; @@ -68,8 +68,8 @@ namespace AlibabaCloud void setImageName(const std::string& imageName); std::string getArchitecture()const; void setArchitecture(const std::string& architecture); - - private: + + private: std::vector diskDeviceMapping_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string regionId_; std::string imageName_; std::string architecture_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportImageResult.h b/ecs/include/alibabacloud/ecs/model/ImportImageResult.h index 72eeb01d9..e4b95905f 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportImageResult.h +++ b/ecs/include/alibabacloud/ecs/model/ImportImageResult.h @@ -1,55 +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_ECS_MODEL_IMPORTIMAGERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportImageResult : public ServiceResult - { - public: - - - ImportImageResult(); - explicit ImportImageResult(const std::string &payload); - ~ImportImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportImageResult : public ServiceResult + { + public: + + + ImportImageResult(); + explicit ImportImageResult(const std::string &payload); + ~ImportImageResult(); std::string getTaskId()const; std::string getImageId()const; std::string getRegionId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string imageId_; std::string regionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_IMPORTIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h index cc0f56252..f956d7e49 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportKeyPairRequest : public RpcServiceRequest - { - - public: - ImportKeyPairRequest(); - ~ImportKeyPairRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportKeyPairRequest : public RpcServiceRequest + { + + public: + ImportKeyPairRequest(); + ~ImportKeyPairRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setKeyPairName(const std::string& keyPairName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string publicKeyBody_; std::string keyPairName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h index 67a77d9e8..d60433d88 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h +++ b/ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportKeyPairResult : public ServiceResult - { - public: - - - ImportKeyPairResult(); - explicit ImportKeyPairResult(const std::string &payload); - ~ImportKeyPairResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportKeyPairResult : public ServiceResult + { + public: + + + ImportKeyPairResult(); + explicit ImportKeyPairResult(const std::string &payload); + ~ImportKeyPairResult(); std::string getKeyPairFingerPrint()const; std::string getKeyPairName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string keyPairFingerPrint_; std::string keyPairName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h index cd51cf2b5..11c0cb1da 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportSnapshotRequest : public RpcServiceRequest - { - - public: - ImportSnapshotRequest(); - ~ImportSnapshotRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportSnapshotRequest : public RpcServiceRequest + { + + public: + ImportSnapshotRequest(); + ~ImportSnapshotRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportSnapshotResult.h b/ecs/include/alibabacloud/ecs/model/ImportSnapshotResult.h index ef9ff8f8e..f69d8efa9 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportSnapshotResult.h +++ b/ecs/include/alibabacloud/ecs/model/ImportSnapshotResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportSnapshotResult : public ServiceResult - { - public: - - - ImportSnapshotResult(); - explicit ImportSnapshotResult(const std::string &payload); - ~ImportSnapshotResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportSnapshotResult : public ServiceResult + { + public: + + + ImportSnapshotResult(); + explicit ImportSnapshotResult(const std::string &payload); + ~ImportSnapshotResult(); std::string getSnapshotId()const; std::string getTaskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string snapshotId_; std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h index ed6358a19..d701c990f 100644 --- a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h +++ b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantRequest : public RpcServiceRequest - { - - public: - InstallCloudAssistantRequest(); - ~InstallCloudAssistantRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantRequest : public RpcServiceRequest + { + + public: + InstallCloudAssistantRequest(); + ~InstallCloudAssistantRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::vector instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.h b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.h index 299ca8629..0e108361c 100644 --- a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.h +++ b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantResult : public ServiceResult - { - public: - - - InstallCloudAssistantResult(); - explicit InstallCloudAssistantResult(const std::string &payload); - ~InstallCloudAssistantResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantResult : public ServiceResult + { + public: + + + InstallCloudAssistantResult(); + explicit InstallCloudAssistantResult(const std::string &payload); + ~InstallCloudAssistantResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h index 48f7a82af..2e8019767 100644 --- a/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT InvokeCommandRequest : public RpcServiceRequest - { - - public: - InvokeCommandRequest(); - ~InvokeCommandRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InvokeCommandRequest : public RpcServiceRequest + { + + public: + InvokeCommandRequest(); + ~InvokeCommandRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,10 +93,10 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - Json getParameters()const; - void setParameters(const Json& parameters); - - private: + std::map getParameters()const; + void setParameters(const std::map& parameters); + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -126,10 +126,10 @@ namespace AlibabaCloud std::vector instanceId_; std::string requestId_; std::string akProxy_; - Json parameters_; - - }; - } - } -} + std::map parameters_; + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h b/ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h index e898e53df..584511b9b 100644 --- a/ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h +++ b/ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h @@ -1,51 +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_ECS_MODEL_INVOKECOMMANDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT InvokeCommandResult : public ServiceResult - { - public: - - - InvokeCommandResult(); - explicit InvokeCommandResult(const std::string &payload); - ~InvokeCommandResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InvokeCommandResult : public ServiceResult + { + public: + + + InvokeCommandResult(); + explicit InvokeCommandResult(const std::string &payload); + ~InvokeCommandResult(); std::string getInvokeId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string invokeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h index 8a428bd96..71f888196 100644 --- a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupRequest : public RpcServiceRequest - { - - public: - JoinResourceGroupRequest(); - ~JoinResourceGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupRequest : public RpcServiceRequest + { + + public: + JoinResourceGroupRequest(); + ~JoinResourceGroupRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getResourceGroupId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getResourceType()const; void setResourceType(const std::string& resourceType); - - private: + + private: std::string sourceRegionId_; std::string resourceGroupId_; long resourceOwnerId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string resourceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.h b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.h index 2c9174a4c..b41b3f173 100644 --- a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupResult : public ServiceResult - { - public: - - - JoinResourceGroupResult(); - explicit JoinResourceGroupResult(const std::string &payload); - ~JoinResourceGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupResult : public ServiceResult + { + public: + + + JoinResourceGroupResult(); + explicit JoinResourceGroupResult(const std::string &payload); + ~JoinResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h index 7e5b4f549..5afc52dbf 100644 --- a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupRequest : public RpcServiceRequest - { - - public: - JoinSecurityGroupRequest(); - ~JoinSecurityGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupRequest : public RpcServiceRequest + { + + public: + JoinSecurityGroupRequest(); + ~JoinSecurityGroupRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSecurityGroupId(const std::string& securityGroupId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string securityGroupId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.h index f7cc458fa..7947bd7ff 100644 --- a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupResult : public ServiceResult - { - public: - - - JoinSecurityGroupResult(); - explicit JoinSecurityGroupResult(const std::string &payload); - ~JoinSecurityGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupResult : public ServiceResult + { + public: + + + JoinSecurityGroupResult(); + explicit JoinSecurityGroupResult(const std::string &payload); + ~JoinSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h index 333726147..13421e502 100644 --- a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupRequest : public RpcServiceRequest - { - - public: - LeaveSecurityGroupRequest(); - ~LeaveSecurityGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupRequest : public RpcServiceRequest + { + + public: + LeaveSecurityGroupRequest(); + ~LeaveSecurityGroupRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSecurityGroupId(const std::string& securityGroupId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string securityGroupId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h index 2b56195df..75d0bfb43 100644 --- a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupResult : public ServiceResult - { - public: - - - LeaveSecurityGroupResult(); - explicit LeaveSecurityGroupResult(const std::string &payload); - ~LeaveSecurityGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupResult : public ServiceResult + { + public: + + + LeaveSecurityGroupResult(); + explicit LeaveSecurityGroupResult(const std::string &payload); + ~LeaveSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h b/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h index 4327dc6b5..859168109 100644 --- a/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h @@ -1,45 +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_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { struct Tag { std::string key; std::string value; }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -96,8 +96,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -126,9 +126,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ListTagResourcesResult.h b/ecs/include/alibabacloud/ecs/model/ListTagResourcesResult.h index e8bd2d434..5425d5513 100644 --- a/ecs/include/alibabacloud/ecs/model/ListTagResourcesResult.h +++ b/ecs/include/alibabacloud/ecs/model/ListTagResourcesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ListTagResourcesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ListTagResourcesResult : public ServiceResult + { + public: struct TagResource { std::string resourceId; @@ -39,22 +39,22 @@ namespace AlibabaCloud std::string resourceType; std::string tagValue; }; - - - ListTagResourcesResult(); - explicit ListTagResourcesResult(const std::string &payload); - ~ListTagResourcesResult(); + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); std::string getNextToken()const; std::vector getTagResources()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string nextToken_; std::vector tagResources_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h index e62afe703..1fd802a6d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoProvisioningGroupRequest : public RpcServiceRequest - { - - public: - ModifyAutoProvisioningGroupRequest(); - ~ModifyAutoProvisioningGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoProvisioningGroupRequest : public RpcServiceRequest + { + + public: + ModifyAutoProvisioningGroupRequest(); + ~ModifyAutoProvisioningGroupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -101,8 +101,8 @@ namespace AlibabaCloud void setMaxSpotPrice(float maxSpotPrice); std::string getAutoProvisioningGroupName()const; void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -136,9 +136,9 @@ namespace AlibabaCloud std::string spotTargetCapacity_; float maxSpotPrice_; std::string autoProvisioningGroupName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupResult.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupResult.h index af689479c..79378d763 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoProvisioningGroupResult : public ServiceResult - { - public: - - - ModifyAutoProvisioningGroupResult(); - explicit ModifyAutoProvisioningGroupResult(const std::string &payload); - ~ModifyAutoProvisioningGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoProvisioningGroupResult : public ServiceResult + { + public: + + + ModifyAutoProvisioningGroupResult(); + explicit ModifyAutoProvisioningGroupResult(const std::string &payload); + ~ModifyAutoProvisioningGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h index 4f803e1eb..c1b348e67 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExRequest : public RpcServiceRequest - { - - public: - ModifyAutoSnapshotPolicyExRequest(); - ~ModifyAutoSnapshotPolicyExRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExRequest : public RpcServiceRequest + { + + public: + ModifyAutoSnapshotPolicyExRequest(); + ~ModifyAutoSnapshotPolicyExRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setRepeatWeekdays(const std::string& repeatWeekdays); std::string getAutoSnapshotPolicyName()const; void setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string repeatWeekdays_; std::string autoSnapshotPolicyName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h index a9c0fa3e9..0cfcc90bf 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExResult : public ServiceResult - { - public: - - - ModifyAutoSnapshotPolicyExResult(); - explicit ModifyAutoSnapshotPolicyExResult(const std::string &payload); - ~ModifyAutoSnapshotPolicyExResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExResult : public ServiceResult + { + public: + + + ModifyAutoSnapshotPolicyExResult(); + explicit ModifyAutoSnapshotPolicyExResult(const std::string &payload); + ~ModifyAutoSnapshotPolicyExResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h index ff52818cb..6d9b3744c 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - ModifyAutoSnapshotPolicyRequest(); - ~ModifyAutoSnapshotPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyRequest : public RpcServiceRequest + { + + public: + ModifyAutoSnapshotPolicyRequest(); + ~ModifyAutoSnapshotPolicyRequest(); + bool getDataDiskPolicyEnabled()const; void setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled); long getResourceOwnerId()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod); bool getSystemDiskPolicyEnabled()const; void setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled); - - private: + + private: bool dataDiskPolicyEnabled_; long resourceOwnerId_; int dataDiskPolicyRetentionDays_; @@ -73,9 +73,9 @@ namespace AlibabaCloud int systemDiskPolicyRetentionDays_; int dataDiskPolicyTimePeriod_; bool systemDiskPolicyEnabled_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h index 61a475c7b..8f50739e0 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyResult : public ServiceResult - { - public: - - - ModifyAutoSnapshotPolicyResult(); - explicit ModifyAutoSnapshotPolicyResult(const std::string &payload); - ~ModifyAutoSnapshotPolicyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + ModifyAutoSnapshotPolicyResult(); + explicit ModifyAutoSnapshotPolicyResult(const std::string &payload); + ~ModifyAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h index b1271895b..abbf70ba7 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecRequest : public RpcServiceRequest - { - - public: - ModifyBandwidthPackageSpecRequest(); - ~ModifyBandwidthPackageSpecRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecRequest : public RpcServiceRequest + { + + public: + ModifyBandwidthPackageSpecRequest(); + ~ModifyBandwidthPackageSpecRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBandwidthPackageId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string bandwidth_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h index ecd819e86..4917aefe6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecResult : public ServiceResult - { - public: - - - ModifyBandwidthPackageSpecResult(); - explicit ModifyBandwidthPackageSpecResult(const std::string &payload); - ~ModifyBandwidthPackageSpecResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecResult : public ServiceResult + { + public: + + + ModifyBandwidthPackageSpecResult(); + explicit ModifyBandwidthPackageSpecResult(const std::string &payload); + ~ModifyBandwidthPackageSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h index 57d1c9c0d..e107555dd 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyCommandRequest : public RpcServiceRequest - { - - public: - ModifyCommandRequest(); - ~ModifyCommandRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyCommandRequest : public RpcServiceRequest + { + + public: + ModifyCommandRequest(); + ~ModifyCommandRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -97,8 +97,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getName()const; void setName(const std::string& name); - - private: + + private: long resourceOwnerId_; long callerParentId_; std::string workingDir_; @@ -130,9 +130,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyCommandResult.h b/ecs/include/alibabacloud/ecs/model/ModifyCommandResult.h index fe318dd3e..d15aee980 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyCommandResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyCommandResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyCommandResult : public ServiceResult - { - public: - - - ModifyCommandResult(); - explicit ModifyCommandResult(const std::string &payload); - ~ModifyCommandResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyCommandResult : public ServiceResult + { + public: + + + ModifyCommandResult(); + explicit ModifyCommandResult(const std::string &payload); + ~ModifyCommandResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h index 91dcd264e..bb5d73fe2 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostAttributeRequest(); - ~ModifyDedicatedHostAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAttributeRequest : public RpcServiceRequest + { + + public: + ModifyDedicatedHostAttributeRequest(); + ~ModifyDedicatedHostAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -99,8 +99,8 @@ namespace AlibabaCloud void setAutoPlacement(const std::string& autoPlacement); int getNetworkAttributesUdpTimeout()const; void setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -133,9 +133,9 @@ namespace AlibabaCloud int networkAttributesSlbUdpTimeout_; std::string autoPlacement_; int networkAttributesUdpTimeout_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeResult.h index 37994340a..184b774af 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAttributeResult : public ServiceResult - { - public: - - - ModifyDedicatedHostAttributeResult(); - explicit ModifyDedicatedHostAttributeResult(const std::string &payload); - ~ModifyDedicatedHostAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAttributeResult : public ServiceResult + { + public: + + + ModifyDedicatedHostAttributeResult(); + explicit ModifyDedicatedHostAttributeResult(const std::string &payload); + ~ModifyDedicatedHostAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h index 4a93b352d..b003a5361 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoReleaseTimeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostAutoReleaseTimeRequest(); - ~ModifyDedicatedHostAutoReleaseTimeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoReleaseTimeRequest : public RpcServiceRequest + { + + public: + ModifyDedicatedHostAutoReleaseTimeRequest(); + ~ModifyDedicatedHostAutoReleaseTimeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setDedicatedHostId(const std::string& dedicatedHostId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string autoReleaseTime_; std::string dedicatedHostId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeResult.h index da5426dfd..714ae7857 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoReleaseTimeResult : public ServiceResult - { - public: - - - ModifyDedicatedHostAutoReleaseTimeResult(); - explicit ModifyDedicatedHostAutoReleaseTimeResult(const std::string &payload); - ~ModifyDedicatedHostAutoReleaseTimeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoReleaseTimeResult : public ServiceResult + { + public: + + + ModifyDedicatedHostAutoReleaseTimeResult(); + explicit ModifyDedicatedHostAutoReleaseTimeResult(const std::string &payload); + ~ModifyDedicatedHostAutoReleaseTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h index 24835c0a1..c208d1dbf 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostAutoRenewAttributeRequest(); - ~ModifyDedicatedHostAutoRenewAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoRenewAttributeRequest : public RpcServiceRequest + { + + public: + ModifyDedicatedHostAutoRenewAttributeRequest(); + ~ModifyDedicatedHostAutoRenewAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); int getDuration()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setRenewalStatus(const std::string& renewalStatus); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; int duration_; std::string dedicatedHostIds_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string renewalStatus_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeResult.h index 056889c3e..fb33c0faa 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoRenewAttributeResult : public ServiceResult - { - public: - - - ModifyDedicatedHostAutoRenewAttributeResult(); - explicit ModifyDedicatedHostAutoRenewAttributeResult(const std::string &payload); - ~ModifyDedicatedHostAutoRenewAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoRenewAttributeResult : public ServiceResult + { + public: + + + ModifyDedicatedHostAutoRenewAttributeResult(); + explicit ModifyDedicatedHostAutoRenewAttributeResult(const std::string &payload); + ~ModifyDedicatedHostAutoRenewAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h index b40fa462f..99d1061b8 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDeploymentSetAttributeRequest(); - ~ModifyDeploymentSetAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeRequest : public RpcServiceRequest + { + + public: + ModifyDeploymentSetAttributeRequest(); + ~ModifyDeploymentSetAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getDeploymentSetId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setDeploymentSetName(const std::string& deploymentSetName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string deploymentSetId_; long resourceOwnerId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string description_; std::string deploymentSetName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h index 8ca20a556..5b83f9da6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeResult : public ServiceResult - { - public: - - - ModifyDeploymentSetAttributeResult(); - explicit ModifyDeploymentSetAttributeResult(const std::string &payload); - ~ModifyDeploymentSetAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeResult : public ServiceResult + { + public: + + + ModifyDeploymentSetAttributeResult(); + explicit ModifyDeploymentSetAttributeResult(const std::string &payload); + ~ModifyDeploymentSetAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h index 4d4f586f8..8011c1887 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDiskAttributeRequest(); - ~ModifyDiskAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeRequest : public RpcServiceRequest + { + + public: + ModifyDiskAttributeRequest(); + ~ModifyDiskAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getDiskName()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); bool getDeleteWithInstance()const; void setDeleteWithInstance(bool deleteWithInstance); - - private: + + private: std::string sourceRegionId_; std::string diskName_; bool deleteAutoSnapshot_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string diskId_; long ownerId_; bool deleteWithInstance_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h index 1e14b94b8..59a97fc43 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeResult : public ServiceResult - { - public: - - - ModifyDiskAttributeResult(); - explicit ModifyDiskAttributeResult(const std::string &payload); - ~ModifyDiskAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeResult : public ServiceResult + { + public: + + + ModifyDiskAttributeResult(); + explicit ModifyDiskAttributeResult(const std::string &payload); + ~ModifyDiskAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h index d50d05fd9..fe607a1ed 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeRequest : public RpcServiceRequest - { - - public: - ModifyDiskChargeTypeRequest(); - ~ModifyDiskChargeTypeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeRequest : public RpcServiceRequest + { + + public: + ModifyDiskChargeTypeRequest(); + ~ModifyDiskChargeTypeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setDiskIds(const std::string& diskIds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string diskChargeType_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string diskIds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h index 58e8465c4..8fe4f1b53 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h @@ -1,51 +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_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeResult : public ServiceResult - { - public: - - - ModifyDiskChargeTypeResult(); - explicit ModifyDiskChargeTypeResult(const std::string &payload); - ~ModifyDiskChargeTypeResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeResult : public ServiceResult + { + public: + + + ModifyDiskChargeTypeResult(); + explicit ModifyDiskChargeTypeResult(const std::string &payload); + ~ModifyDiskChargeTypeResult(); std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h index 46df0490a..940f7d157 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskSpecRequest : public RpcServiceRequest - { - - public: - ModifyDiskSpecRequest(); - ~ModifyDiskSpecRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskSpecRequest : public RpcServiceRequest + { + + public: + ModifyDiskSpecRequest(); + ~ModifyDiskSpecRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h index 7f5ff945a..0ec31d347 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskSpecResult : public ServiceResult - { - public: - - - ModifyDiskSpecResult(); - explicit ModifyDiskSpecResult(const std::string &payload); - ~ModifyDiskSpecResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskSpecResult : public ServiceResult + { + public: + + + ModifyDiskSpecResult(); + explicit ModifyDiskSpecResult(const std::string &payload); + ~ModifyDiskSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h index 8f0cd4b0a..8e6d84230 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeRequest : public RpcServiceRequest - { - - public: - ModifyEipAddressAttributeRequest(); - ~ModifyEipAddressAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeRequest : public RpcServiceRequest + { + + public: + ModifyEipAddressAttributeRequest(); + ~ModifyEipAddressAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setAllocationId(const std::string& allocationId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string allocationId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h index 48353f53f..c4bc32c29 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeResult : public ServiceResult - { - public: - - - ModifyEipAddressAttributeResult(); - explicit ModifyEipAddressAttributeResult(const std::string &payload); - ~ModifyEipAddressAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeResult : public ServiceResult + { + public: + + + ModifyEipAddressAttributeResult(); + explicit ModifyEipAddressAttributeResult(const std::string &payload); + ~ModifyEipAddressAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyFleetRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyFleetRequest.h index 6bee05f0d..904bdc23a 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyFleetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyFleetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyFleetRequest : public RpcServiceRequest - { - - public: - ModifyFleetRequest(); - ~ModifyFleetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyFleetRequest : public RpcServiceRequest + { + + public: + ModifyFleetRequest(); + ~ModifyFleetRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -99,8 +99,8 @@ namespace AlibabaCloud void setSpotTargetCapacity(const std::string& spotTargetCapacity); float getMaxSpotPrice()const; void setMaxSpotPrice(float maxSpotPrice); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -133,9 +133,9 @@ namespace AlibabaCloud std::string totalTargetCapacity_; std::string spotTargetCapacity_; float maxSpotPrice_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyFleetResult.h b/ecs/include/alibabacloud/ecs/model/ModifyFleetResult.h index 4d5d5bda2..0f6889fb2 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyFleetResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyFleetResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFLEETRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYFLEETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyFleetResult : public ServiceResult - { - public: - - - ModifyFleetResult(); - explicit ModifyFleetResult(const std::string &payload); - ~ModifyFleetResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFLEETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYFLEETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyFleetResult : public ServiceResult + { + public: + + + ModifyFleetResult(); + explicit ModifyFleetResult(const std::string &payload); + ~ModifyFleetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFLEETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h index 4f8fefbeb..c3925dc61 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryRequest : public RpcServiceRequest - { - - public: - ModifyForwardEntryRequest(); - ~ModifyForwardEntryRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryRequest : public RpcServiceRequest + { + + public: + ModifyForwardEntryRequest(); + ~ModifyForwardEntryRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setExternalIp(const std::string& externalIp); std::string getExternalPort()const; void setExternalPort(const std::string& externalPort); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ipProtocol_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string internalPort_; std::string externalIp_; std::string externalPort_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h index 9452ff33f..ebd522be4 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryResult : public ServiceResult - { - public: - - - ModifyForwardEntryResult(); - explicit ModifyForwardEntryResult(const std::string &payload); - ~ModifyForwardEntryResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryResult : public ServiceResult + { + public: + + + ModifyForwardEntryResult(); + explicit ModifyForwardEntryResult(const std::string &payload); + ~ModifyForwardEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h index b999316b2..7281e4d0b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeRequest : public RpcServiceRequest - { - - public: - ModifyHaVipAttributeRequest(); - ~ModifyHaVipAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeRequest : public RpcServiceRequest + { + + public: + ModifyHaVipAttributeRequest(); + ~ModifyHaVipAttributeRequest(); + std::string getHaVipId()const; void setHaVipId(const std::string& haVipId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setDescription(const std::string& description); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string haVipId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string description_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h index 05982b844..f20bf869b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeResult : public ServiceResult - { - public: - - - ModifyHaVipAttributeResult(); - explicit ModifyHaVipAttributeResult(const std::string &payload); - ~ModifyHaVipAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeResult : public ServiceResult + { + public: + + + ModifyHaVipAttributeResult(); + explicit ModifyHaVipAttributeResult(const std::string &payload); + ~ModifyHaVipAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h index ca485338c..c55cb9848 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyHpcClusterAttributeRequest(); - ~ModifyHpcClusterAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeRequest : public RpcServiceRequest + { + + public: + ModifyHpcClusterAttributeRequest(); + ~ModifyHpcClusterAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getHpcClusterId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getName()const; void setName(const std::string& name); - - private: + + private: long resourceOwnerId_; std::string hpcClusterId_; std::string clientToken_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h index 4f7608028..3126c5c53 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeResult : public ServiceResult - { - public: - - - ModifyHpcClusterAttributeResult(); - explicit ModifyHpcClusterAttributeResult(const std::string &payload); - ~ModifyHpcClusterAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeResult : public ServiceResult + { + public: + + + ModifyHpcClusterAttributeResult(); + explicit ModifyHpcClusterAttributeResult(const std::string &payload); + ~ModifyHpcClusterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h index 6ca889d2c..e4457f4ac 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeRequest : public RpcServiceRequest - { - - public: - ModifyImageAttributeRequest(); - ~ModifyImageAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeRequest : public RpcServiceRequest + { + + public: + ModifyImageAttributeRequest(); + ~ModifyImageAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setDescription(const std::string& description); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string imageId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string description_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.h index 9a630543b..dc57fa5b1 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeResult : public ServiceResult - { - public: - - - ModifyImageAttributeResult(); - explicit ModifyImageAttributeResult(const std::string &payload); - ~ModifyImageAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeResult : public ServiceResult + { + public: + + + ModifyImageAttributeResult(); + explicit ModifyImageAttributeResult(const std::string &payload); + ~ModifyImageAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h index 91694fa69..b45ac02fc 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionRequest : public RpcServiceRequest - { - - public: - ModifyImageShareGroupPermissionRequest(); - ~ModifyImageShareGroupPermissionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionRequest : public RpcServiceRequest + { + + public: + ModifyImageShareGroupPermissionRequest(); + ~ModifyImageShareGroupPermissionRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setRemoveGroup1(const std::string& removeGroup1); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string imageId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string removeGroup1_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h index c461f5bc5..f2e1e892a 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionResult : public ServiceResult - { - public: - - - ModifyImageShareGroupPermissionResult(); - explicit ModifyImageShareGroupPermissionResult(const std::string &payload); - ~ModifyImageShareGroupPermissionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionResult : public ServiceResult + { + public: + + + ModifyImageShareGroupPermissionResult(); + explicit ModifyImageShareGroupPermissionResult(const std::string &payload); + ~ModifyImageShareGroupPermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h index da177ae82..c00d12455 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionRequest : public RpcServiceRequest - { - - public: - ModifyImageSharePermissionRequest(); - ~ModifyImageSharePermissionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionRequest : public RpcServiceRequest + { + + public: + ModifyImageSharePermissionRequest(); + ~ModifyImageSharePermissionRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string imageId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::vector removeAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h index 68906eb5d..9e3b5bde8 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionResult : public ServiceResult - { - public: - - - ModifyImageSharePermissionResult(); - explicit ModifyImageSharePermissionResult(const std::string &payload); - ~ModifyImageSharePermissionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionResult : public ServiceResult + { + public: + + + ModifyImageSharePermissionResult(); + explicit ModifyImageSharePermissionResult(const std::string &payload); + ~ModifyImageSharePermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h index e3086b1e6..80aac781b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAttributeRequest(); - ~ModifyInstanceAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceAttributeRequest(); + ~ModifyInstanceAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setInstanceId(const std::string& instanceId); std::string getInstanceName()const; void setInstanceName(const std::string& instanceName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; bool recyclable_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string hostName_; std::string instanceId_; std::string instanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h index 8d64ae223..9b5366d6f 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeResult : public ServiceResult - { - public: - - - ModifyInstanceAttributeResult(); - explicit ModifyInstanceAttributeResult(const std::string &payload); - ~ModifyInstanceAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAttributeResult(); + explicit ModifyInstanceAttributeResult(const std::string &payload); + ~ModifyInstanceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h index 06d13f02f..1f36c017f 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAutoReleaseTimeRequest(); - ~ModifyInstanceAutoReleaseTimeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceAutoReleaseTimeRequest(); + ~ModifyInstanceAutoReleaseTimeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAutoReleaseTime(const std::string& autoReleaseTime); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string autoReleaseTime_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h index fec3b9f8c..eeced9a1c 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeResult : public ServiceResult - { - public: - - - ModifyInstanceAutoReleaseTimeResult(); - explicit ModifyInstanceAutoReleaseTimeResult(const std::string &payload); - ~ModifyInstanceAutoReleaseTimeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoReleaseTimeResult(); + explicit ModifyInstanceAutoReleaseTimeResult(const std::string &payload); + ~ModifyInstanceAutoReleaseTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h index e3571568f..706cd7e15 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAutoRenewAttributeRequest(); - ~ModifyInstanceAutoRenewAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceAutoRenewAttributeRequest(); + ~ModifyInstanceAutoRenewAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); int getDuration()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setRenewalStatus(const std::string& renewalStatus); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; int duration_; long resourceOwnerId_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string renewalStatus_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h index 03eb1275b..106216b82 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeResult : public ServiceResult - { - public: - - - ModifyInstanceAutoRenewAttributeResult(); - explicit ModifyInstanceAutoRenewAttributeResult(const std::string &payload); - ~ModifyInstanceAutoRenewAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoRenewAttributeResult(); + explicit ModifyInstanceAutoRenewAttributeResult(const std::string &payload); + ~ModifyInstanceAutoRenewAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h index d8be7b594..a4f1187d6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceChargeTypeRequest(); - ~ModifyInstanceChargeTypeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceChargeTypeRequest(); + ~ModifyInstanceChargeTypeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getPeriod()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud void setIsDetailFee(bool isDetailFee); std::string getInstanceChargeType()const; void setInstanceChargeType(const std::string& instanceChargeType); - - private: + + private: long resourceOwnerId_; int period_; bool dryRun_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string regionId_; bool isDetailFee_; std::string instanceChargeType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h index bf0934153..c36fd2a68 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h @@ -1,59 +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_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeResult : public ServiceResult + { + public: struct FeeOfInstance { std::string instanceId; std::string fee; std::string currency; }; - - - ModifyInstanceChargeTypeResult(); - explicit ModifyInstanceChargeTypeResult(const std::string &payload); - ~ModifyInstanceChargeTypeResult(); + + + ModifyInstanceChargeTypeResult(); + explicit ModifyInstanceChargeTypeResult(const std::string &payload); + ~ModifyInstanceChargeTypeResult(); std::vector getFeeOfInstances()const; std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector feeOfInstances_; std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h index 57ae006ce..0c6cf3f55 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceDeploymentRequest : public RpcServiceRequest - { - - public: - ModifyInstanceDeploymentRequest(); - ~ModifyInstanceDeploymentRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceDeploymentRequest : public RpcServiceRequest + { + + public: + ModifyInstanceDeploymentRequest(); + ~ModifyInstanceDeploymentRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -97,8 +97,8 @@ namespace AlibabaCloud void setForce(bool force); std::string getAffinity()const; void setAffinity(const std::string& affinity); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -130,9 +130,9 @@ namespace AlibabaCloud std::string akProxy_; bool force_; std::string affinity_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentResult.h index 9fafdc35d..2e36a46f1 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceDeploymentResult : public ServiceResult - { - public: - - - ModifyInstanceDeploymentResult(); - explicit ModifyInstanceDeploymentResult(const std::string &payload); - ~ModifyInstanceDeploymentResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceDeploymentResult : public ServiceResult + { + public: + + + ModifyInstanceDeploymentResult(); + explicit ModifyInstanceDeploymentResult(const std::string &payload); + ~ModifyInstanceDeploymentResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h index 3d08cedfc..b82034726 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecRequest : public RpcServiceRequest - { - - public: - ModifyInstanceNetworkSpecRequest(); - ~ModifyInstanceNetworkSpecRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecRequest : public RpcServiceRequest + { + + public: + ModifyInstanceNetworkSpecRequest(); + ~ModifyInstanceNetworkSpecRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); bool getAutoPay()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); bool getAllocatePublicIp()const; void setAllocatePublicIp(bool allocatePublicIp); - - private: + + private: long resourceOwnerId_; bool autoPay_; std::string resourceOwnerAccount_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string networkChargeType_; int internetMaxBandwidthIn_; bool allocatePublicIp_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h index 381cec766..418607932 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h @@ -1,51 +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_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecResult : public ServiceResult - { - public: - - - ModifyInstanceNetworkSpecResult(); - explicit ModifyInstanceNetworkSpecResult(const std::string &payload); - ~ModifyInstanceNetworkSpecResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecResult : public ServiceResult + { + public: + + + ModifyInstanceNetworkSpecResult(); + explicit ModifyInstanceNetworkSpecResult(const std::string &payload); + ~ModifyInstanceNetworkSpecResult(); std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h index c5c46c581..1ba4eb1e9 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecRequest : public RpcServiceRequest - { - - public: - ModifyInstanceSpecRequest(); - ~ModifyInstanceSpecRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecRequest : public RpcServiceRequest + { + + public: + ModifyInstanceSpecRequest(); + ~ModifyInstanceSpecRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -67,8 +67,8 @@ namespace AlibabaCloud void setTemporaryEndTime(const std::string& temporaryEndTime); int getInternetMaxBandwidthIn()const; void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -85,9 +85,9 @@ namespace AlibabaCloud std::string instanceType_; std::string temporaryEndTime_; int internetMaxBandwidthIn_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h index 603338fcb..e24b29fcb 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecResult : public ServiceResult - { - public: - - - ModifyInstanceSpecResult(); - explicit ModifyInstanceSpecResult(const std::string &payload); - ~ModifyInstanceSpecResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecResult : public ServiceResult + { + public: + + + ModifyInstanceSpecResult(); + explicit ModifyInstanceSpecResult(const std::string &payload); + ~ModifyInstanceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h index 6ff5cef8b..96b972ba7 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdRequest : public RpcServiceRequest - { - - public: - ModifyInstanceVncPasswdRequest(); - ~ModifyInstanceVncPasswdRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdRequest : public RpcServiceRequest + { + + public: + ModifyInstanceVncPasswdRequest(); + ~ModifyInstanceVncPasswdRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getVncPassword()const; void setVncPassword(const std::string& vncPassword); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string vncPassword_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h index 24d54c031..ea6051cc7 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdResult : public ServiceResult - { - public: - - - ModifyInstanceVncPasswdResult(); - explicit ModifyInstanceVncPasswdResult(const std::string &payload); - ~ModifyInstanceVncPasswdResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdResult : public ServiceResult + { + public: + + + ModifyInstanceVncPasswdResult(); + explicit ModifyInstanceVncPasswdResult(const std::string &payload); + ~ModifyInstanceVncPasswdResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h index b2cab538b..cda9cb4fc 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceVpcAttributeRequest(); - ~ModifyInstanceVpcAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceVpcAttributeRequest(); + ~ModifyInstanceVpcAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); std::string getVSwitchId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; std::string vSwitchId_; std::string privateIpAddress_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h index 226f71b8c..8be527412 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeResult : public ServiceResult - { - public: - - - ModifyInstanceVpcAttributeResult(); - explicit ModifyInstanceVpcAttributeResult(const std::string &payload); - ~ModifyInstanceVpcAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceVpcAttributeResult(); + explicit ModifyInstanceVpcAttributeResult(const std::string &payload); + ~ModifyInstanceVpcAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h index a18a66278..4358c80c6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyLaunchTemplateDefaultVersionRequest : public RpcServiceRequest - { - - public: - ModifyLaunchTemplateDefaultVersionRequest(); - ~ModifyLaunchTemplateDefaultVersionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyLaunchTemplateDefaultVersionRequest : public RpcServiceRequest + { + + public: + ModifyLaunchTemplateDefaultVersionRequest(); + ~ModifyLaunchTemplateDefaultVersionRequest(); + std::string getLaunchTemplateName()const; void setLaunchTemplateName(const std::string& launchTemplateName); long getResourceOwnerId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string launchTemplateName_; long resourceOwnerId_; long callerParentId_; @@ -121,9 +121,9 @@ namespace AlibabaCloud long defaultVersionNumber_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h b/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h index 7233859be..d890fd598 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyLaunchTemplateDefaultVersionResult : public ServiceResult - { - public: - - - ModifyLaunchTemplateDefaultVersionResult(); - explicit ModifyLaunchTemplateDefaultVersionResult(const std::string &payload); - ~ModifyLaunchTemplateDefaultVersionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyLaunchTemplateDefaultVersionResult : public ServiceResult + { + public: + + + ModifyLaunchTemplateDefaultVersionResult(); + explicit ModifyLaunchTemplateDefaultVersionResult(const std::string &payload); + ~ModifyLaunchTemplateDefaultVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h index 6a6b4c679..20e5583c6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyNetworkInterfaceAttributeRequest(); - ~ModifyNetworkInterfaceAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeRequest : public RpcServiceRequest + { + + public: + ModifyNetworkInterfaceAttributeRequest(); + ~ModifyNetworkInterfaceAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; std::vector securityGroupId_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h index 68498c314..1ffdc422e 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeResult : public ServiceResult - { - public: - - - ModifyNetworkInterfaceAttributeResult(); - explicit ModifyNetworkInterfaceAttributeResult(const std::string &payload); - ~ModifyNetworkInterfaceAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeResult : public ServiceResult + { + public: + + + ModifyNetworkInterfaceAttributeResult(); + explicit ModifyNetworkInterfaceAttributeResult(const std::string &payload); + ~ModifyNetworkInterfaceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h index 49643b70c..502628a0f 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeRequest : public RpcServiceRequest - { - - public: - ModifyPhysicalConnectionAttributeRequest(); - ~ModifyPhysicalConnectionAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeRequest : public RpcServiceRequest + { + + public: + ModifyPhysicalConnectionAttributeRequest(); + ~ModifyPhysicalConnectionAttributeRequest(); + std::string getRedundantPhysicalConnectionId()const; void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); std::string getPeerLocation()const; @@ -67,8 +67,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getUserCidr()const; void setUserCidr(const std::string& userCidr); - - private: + + private: std::string redundantPhysicalConnectionId_; std::string peerLocation_; long resourceOwnerId_; @@ -85,9 +85,9 @@ namespace AlibabaCloud std::string physicalConnectionId_; std::string name_; std::string userCidr_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h index 716054d7f..8786aae8d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeResult : public ServiceResult - { - public: - - - ModifyPhysicalConnectionAttributeResult(); - explicit ModifyPhysicalConnectionAttributeResult(const std::string &payload); - ~ModifyPhysicalConnectionAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeResult : public ServiceResult + { + public: + + + ModifyPhysicalConnectionAttributeResult(); + explicit ModifyPhysicalConnectionAttributeResult(const std::string &payload); + ~ModifyPhysicalConnectionAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h index 1f795c29e..402d4ed62 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecRequest : public RpcServiceRequest - { - - public: - ModifyPrepayInstanceSpecRequest(); - ~ModifyPrepayInstanceSpecRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecRequest : public RpcServiceRequest + { + + public: + ModifyPrepayInstanceSpecRequest(); + ~ModifyPrepayInstanceSpecRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); bool getAutoPay()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud void setMigrateAcrossZone(bool migrateAcrossZone); std::string getInstanceType()const; void setInstanceType(const std::string& instanceType); - - private: + + private: long resourceOwnerId_; bool autoPay_; std::string resourceOwnerAccount_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string regionId_; bool migrateAcrossZone_; std::string instanceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h index 12b8f389d..cf8b7107d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h @@ -1,51 +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_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecResult : public ServiceResult - { - public: - - - ModifyPrepayInstanceSpecResult(); - explicit ModifyPrepayInstanceSpecResult(const std::string &payload); - ~ModifyPrepayInstanceSpecResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecResult : public ServiceResult + { + public: + + + ModifyPrepayInstanceSpecResult(); + explicit ModifyPrepayInstanceSpecResult(const std::string &payload); + ~ModifyPrepayInstanceSpecResult(); std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h index f87288997..1eda05778 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstanceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyReservedInstanceAttributeRequest(); - ~ModifyReservedInstanceAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstanceAttributeRequest : public RpcServiceRequest + { + + public: + ModifyReservedInstanceAttributeRequest(); + ~ModifyReservedInstanceAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getReservedInstanceName()const; void setReservedInstanceName(const std::string& reservedInstanceName); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string reservedInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeResult.h index fa44d2559..e0feed2e0 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeResult.h @@ -1,55 +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_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstanceAttributeResult : public ServiceResult - { - public: - - - ModifyReservedInstanceAttributeResult(); - explicit ModifyReservedInstanceAttributeResult(const std::string &payload); - ~ModifyReservedInstanceAttributeResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstanceAttributeResult : public ServiceResult + { + public: + + + ModifyReservedInstanceAttributeResult(); + explicit ModifyReservedInstanceAttributeResult(const std::string &payload); + ~ModifyReservedInstanceAttributeResult(); std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; int httpStatusCode_; std::string code_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h index b5d37e514..eebc9208c 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstancesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstancesRequest : public RpcServiceRequest + { struct Configuration { std::string zoneId; @@ -38,11 +38,11 @@ namespace AlibabaCloud std::string scope; int instanceAmount; }; - - public: - ModifyReservedInstancesRequest(); - ~ModifyReservedInstancesRequest(); - + + public: + ModifyReservedInstancesRequest(); + ~ModifyReservedInstancesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::vector getConfiguration()const; @@ -95,8 +95,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; std::vector configuration_; long callerParentId_; @@ -123,9 +123,9 @@ namespace AlibabaCloud std::vector reservedInstanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesResult.h b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesResult.h index 78f02f809..07d6babe0 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesResult.h @@ -1,51 +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_ECS_MODEL_MODIFYRESERVEDINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstancesResult : public ServiceResult - { - public: - - - ModifyReservedInstancesResult(); - explicit ModifyReservedInstancesResult(const std::string &payload); - ~ModifyReservedInstancesResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstancesResult : public ServiceResult + { + public: + + + ModifyReservedInstancesResult(); + explicit ModifyReservedInstancesResult(const std::string &payload); + ~ModifyReservedInstancesResult(); std::vector getReservedInstanceIdSets()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector reservedInstanceIdSets_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h index e2a740b4e..de5532a1a 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyRouterInterfaceAttributeRequest(); - ~ModifyRouterInterfaceAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeRequest : public RpcServiceRequest + { + + public: + ModifyRouterInterfaceAttributeRequest(); + ~ModifyRouterInterfaceAttributeRequest(); + std::string getOppositeRouterId()const; void setOppositeRouterId(const std::string& oppositeRouterId); long getResourceOwnerId()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setOppositeRouterType(const std::string& oppositeRouterType); std::string getOppositeInterfaceId()const; void setOppositeInterfaceId(const std::string& oppositeInterfaceId); - - private: + + private: std::string oppositeRouterId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string name_; std::string oppositeRouterType_; std::string oppositeInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h index 400f4c953..782cb0bec 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeResult : public ServiceResult - { - public: - - - ModifyRouterInterfaceAttributeResult(); - explicit ModifyRouterInterfaceAttributeResult(const std::string &payload); - ~ModifyRouterInterfaceAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeResult : public ServiceResult + { + public: + + + ModifyRouterInterfaceAttributeResult(); + explicit ModifyRouterInterfaceAttributeResult(const std::string &payload); + ~ModifyRouterInterfaceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h index 5c0f3d17c..db3a85014 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecRequest : public RpcServiceRequest - { - - public: - ModifyRouterInterfaceSpecRequest(); - ~ModifyRouterInterfaceSpecRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecRequest : public RpcServiceRequest + { + + public: + ModifyRouterInterfaceSpecRequest(); + ~ModifyRouterInterfaceSpecRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getSpec()const; void setSpec(const std::string& spec); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string routerInterfaceId_; long ownerId_; std::string spec_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h index 8cd8a6063..b54fc66ee 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h @@ -1,51 +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_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecResult : public ServiceResult - { - public: - - - ModifyRouterInterfaceSpecResult(); - explicit ModifyRouterInterfaceSpecResult(const std::string &payload); - ~ModifyRouterInterfaceSpecResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecResult : public ServiceResult + { + public: + + + ModifyRouterInterfaceSpecResult(); + explicit ModifyRouterInterfaceSpecResult(const std::string &payload); + ~ModifyRouterInterfaceSpecResult(); std::string getSpec()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string spec_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h index 53ee8d16b..ceb53bed7 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupAttributeRequest(); - ~ModifySecurityGroupAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeRequest : public RpcServiceRequest + { + + public: + ModifySecurityGroupAttributeRequest(); + ~ModifySecurityGroupAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getSecurityGroupName()const; void setSecurityGroupName(const std::string& securityGroupName); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string description_; long ownerId_; std::string securityGroupName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h index 8f4dafcc3..7b4054e7d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeResult : public ServiceResult - { - public: - - - ModifySecurityGroupAttributeResult(); - explicit ModifySecurityGroupAttributeResult(const std::string &payload); - ~ModifySecurityGroupAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeResult : public ServiceResult + { + public: + + + ModifySecurityGroupAttributeResult(); + explicit ModifySecurityGroupAttributeResult(const std::string &payload); + ~ModifySecurityGroupAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h index 470d58f56..4ae9def50 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupEgressRuleRequest(); - ~ModifySecurityGroupEgressRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleRequest : public RpcServiceRequest + { + + public: + ModifySecurityGroupEgressRuleRequest(); + ~ModifySecurityGroupEgressRuleRequest(); + std::string getNicType()const; void setNicType(const std::string& nicType); long getResourceOwnerId()const; @@ -117,8 +117,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string nicType_; long resourceOwnerId_; std::string sourcePortRange_; @@ -160,9 +160,9 @@ namespace AlibabaCloud long destGroupOwnerId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h index de834b07e..bc9b94aff 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleResult : public ServiceResult - { - public: - - - ModifySecurityGroupEgressRuleResult(); - explicit ModifySecurityGroupEgressRuleResult(const std::string &payload); - ~ModifySecurityGroupEgressRuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleResult : public ServiceResult + { + public: + + + ModifySecurityGroupEgressRuleResult(); + explicit ModifySecurityGroupEgressRuleResult(const std::string &payload); + ~ModifySecurityGroupEgressRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h index 9024d1c12..c37f5ef3d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupPolicyRequest(); - ~ModifySecurityGroupPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyRequest : public RpcServiceRequest + { + + public: + ModifySecurityGroupPolicyRequest(); + ~ModifySecurityGroupPolicyRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getInnerAccessPolicy()const; void setInnerAccessPolicy(const std::string& innerAccessPolicy); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string regionId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string securityGroupId_; long ownerId_; std::string innerAccessPolicy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h index 5e8b4cbbd..e5efed104 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyResult : public ServiceResult - { - public: - - - ModifySecurityGroupPolicyResult(); - explicit ModifySecurityGroupPolicyResult(const std::string &payload); - ~ModifySecurityGroupPolicyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyResult : public ServiceResult + { + public: + + + ModifySecurityGroupPolicyResult(); + explicit ModifySecurityGroupPolicyResult(const std::string &payload); + ~ModifySecurityGroupPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h index 1a960b259..9b901bfbf 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupRuleRequest(); - ~ModifySecurityGroupRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleRequest : public RpcServiceRequest + { + + public: + ModifySecurityGroupRuleRequest(); + ~ModifySecurityGroupRuleRequest(); + std::string getNicType()const; void setNicType(const std::string& nicType); long getResourceOwnerId()const; @@ -117,8 +117,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getSourceGroupId()const; void setSourceGroupId(const std::string& sourceGroupId); - - private: + + private: std::string nicType_; long resourceOwnerId_; std::string sourcePortRange_; @@ -160,9 +160,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string sourceGroupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h index bbfb9a113..8fcbd19be 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleResult : public ServiceResult - { - public: - - - ModifySecurityGroupRuleResult(); - explicit ModifySecurityGroupRuleResult(const std::string &payload); - ~ModifySecurityGroupRuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleResult : public ServiceResult + { + public: + + + ModifySecurityGroupRuleResult(); + explicit ModifySecurityGroupRuleResult(const std::string &payload); + ~ModifySecurityGroupRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h index 6b8f7d605..274103db5 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeRequest : public RpcServiceRequest - { - - public: - ModifySnapshotAttributeRequest(); - ~ModifySnapshotAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeRequest : public RpcServiceRequest + { + + public: + ModifySnapshotAttributeRequest(); + ~ModifySnapshotAttributeRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setSnapshotName(const std::string& snapshotName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string snapshotId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string description_; std::string snapshotName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h index 2a77ccfd9..7a3d61772 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeResult : public ServiceResult - { - public: - - - ModifySnapshotAttributeResult(); - explicit ModifySnapshotAttributeResult(const std::string &payload); - ~ModifySnapshotAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeResult : public ServiceResult + { + public: + + + ModifySnapshotAttributeResult(); + explicit ModifySnapshotAttributeResult(const std::string &payload); + ~ModifySnapshotAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h index df446c3dd..393ccc4a3 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyStorageSetAttributeRequest : public RpcServiceRequest - { - - public: - ModifyStorageSetAttributeRequest(); - ~ModifyStorageSetAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyStorageSetAttributeRequest : public RpcServiceRequest + { + + public: + ModifyStorageSetAttributeRequest(); + ~ModifyStorageSetAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getStorageSetName()const; void setStorageSetName(const std::string& storageSetName); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string storageSetName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeResult.h index 2f439c28e..60a2108d1 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyStorageSetAttributeResult : public ServiceResult - { - public: - - - ModifyStorageSetAttributeResult(); - explicit ModifyStorageSetAttributeResult(const std::string &payload); - ~ModifyStorageSetAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyStorageSetAttributeResult : public ServiceResult + { + public: + + + ModifyStorageSetAttributeResult(); + explicit ModifyStorageSetAttributeResult(const std::string &payload); + ~ModifyStorageSetAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h index 0f8feca65..b2850cb1d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorRequest : public RpcServiceRequest - { - - public: - ModifyUserBusinessBehaviorRequest(); - ~ModifyUserBusinessBehaviorRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorRequest : public RpcServiceRequest + { + + public: + ModifyUserBusinessBehaviorRequest(); + ~ModifyUserBusinessBehaviorRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getStatusKey()const; void setStatusKey(const std::string& statusKey); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string statusKey_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h index 692cdd421..eb096d63b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorResult : public ServiceResult - { - public: - - - ModifyUserBusinessBehaviorResult(); - explicit ModifyUserBusinessBehaviorResult(const std::string &payload); - ~ModifyUserBusinessBehaviorResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorResult : public ServiceResult + { + public: + + + ModifyUserBusinessBehaviorResult(); + explicit ModifyUserBusinessBehaviorResult(const std::string &payload); + ~ModifyUserBusinessBehaviorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h index f24e1a5cd..7a6fbdd49 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVRouterAttributeRequest(); - ~ModifyVRouterAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeRequest : public RpcServiceRequest + { + + public: + ModifyVRouterAttributeRequest(); + ~ModifyVRouterAttributeRequest(); + std::string getVRouterName()const; void setVRouterName(const std::string& vRouterName); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setDescription(const std::string& description); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string vRouterName_; long resourceOwnerId_; std::string vRouterId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string description_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h index 5cbe98b7c..425496e77 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeResult : public ServiceResult - { - public: - - - ModifyVRouterAttributeResult(); - explicit ModifyVRouterAttributeResult(const std::string &payload); - ~ModifyVRouterAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeResult : public ServiceResult + { + public: + + + ModifyVRouterAttributeResult(); + explicit ModifyVRouterAttributeResult(const std::string &payload); + ~ModifyVRouterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h index fb43e060a..e73b41b4c 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVSwitchAttributeRequest(); - ~ModifyVSwitchAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeRequest : public RpcServiceRequest + { + + public: + ModifyVSwitchAttributeRequest(); + ~ModifyVSwitchAttributeRequest(); + std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setDescription(const std::string& description); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string vSwitchId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string description_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h index 9ab121903..d35ffa637 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeResult : public ServiceResult - { - public: - - - ModifyVSwitchAttributeResult(); - explicit ModifyVSwitchAttributeResult(const std::string &payload); - ~ModifyVSwitchAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeResult : public ServiceResult + { + public: + + + ModifyVSwitchAttributeResult(); + explicit ModifyVSwitchAttributeResult(const std::string &payload); + ~ModifyVSwitchAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h index 84ef5e409..459e181af 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVirtualBorderRouterAttributeRequest(); - ~ModifyVirtualBorderRouterAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeRequest : public RpcServiceRequest + { + + public: + ModifyVirtualBorderRouterAttributeRequest(); + ~ModifyVirtualBorderRouterAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getCircuitCode()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud void setLocalGatewayIp(const std::string& localGatewayIp); std::string getUserCidr()const; void setUserCidr(const std::string& userCidr); - - private: + + private: long resourceOwnerId_; std::string circuitCode_; int vlanId_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string name_; std::string localGatewayIp_; std::string userCidr_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h index c1e11d345..9bf23855c 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeResult : public ServiceResult - { - public: - - - ModifyVirtualBorderRouterAttributeResult(); - explicit ModifyVirtualBorderRouterAttributeResult(const std::string &payload); - ~ModifyVirtualBorderRouterAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeResult : public ServiceResult + { + public: + + + ModifyVirtualBorderRouterAttributeResult(); + explicit ModifyVirtualBorderRouterAttributeResult(const std::string &payload); + ~ModifyVirtualBorderRouterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h index 9ab34d274..afd248782 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVpcAttributeRequest(); - ~ModifyVpcAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeRequest : public RpcServiceRequest + { + + public: + ModifyVpcAttributeRequest(); + ~ModifyVpcAttributeRequest(); + std::string getVpcName()const; void setVpcName(const std::string& vpcName); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string vpcName_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string description_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h index 37abdd52a..fd882c6c4 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeResult : public ServiceResult - { - public: - - - ModifyVpcAttributeResult(); - explicit ModifyVpcAttributeResult(const std::string &payload); - ~ModifyVpcAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeResult : public ServiceResult + { + public: + + + ModifyVpcAttributeResult(); + explicit ModifyVpcAttributeResult(const std::string &payload); + ~ModifyVpcAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h index 808c211ea..8bd854d2f 100644 --- a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h +++ b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT PurchaseReservedInstancesOfferingRequest : public RpcServiceRequest - { - - public: - PurchaseReservedInstancesOfferingRequest(); - ~PurchaseReservedInstancesOfferingRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT PurchaseReservedInstancesOfferingRequest : public RpcServiceRequest + { + + public: + PurchaseReservedInstancesOfferingRequest(); + ~PurchaseReservedInstancesOfferingRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; @@ -105,8 +105,8 @@ namespace AlibabaCloud void setReservedInstanceName(const std::string& reservedInstanceName); int getInstanceAmount()const; void setInstanceAmount(int instanceAmount); - - private: + + private: long resourceOwnerId_; std::string clientToken_; long callerParentId_; @@ -142,9 +142,9 @@ namespace AlibabaCloud std::string zoneId_; std::string reservedInstanceName_; int instanceAmount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingResult.h b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingResult.h index f61908153..c9b0ee75a 100644 --- a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingResult.h +++ b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingResult.h @@ -1,51 +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_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT PurchaseReservedInstancesOfferingResult : public ServiceResult - { - public: - - - PurchaseReservedInstancesOfferingResult(); - explicit PurchaseReservedInstancesOfferingResult(const std::string &payload); - ~PurchaseReservedInstancesOfferingResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT PurchaseReservedInstancesOfferingResult : public ServiceResult + { + public: + + + PurchaseReservedInstancesOfferingResult(); + explicit PurchaseReservedInstancesOfferingResult(const std::string &payload); + ~PurchaseReservedInstancesOfferingResult(); std::vector getReservedInstanceIdSets()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector reservedInstanceIdSets_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h index d358ef509..3a6d5c882 100644 --- a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesRequest : public RpcServiceRequest - { - - public: - ReActivateInstancesRequest(); - ~ReActivateInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesRequest : public RpcServiceRequest + { + + public: + ReActivateInstancesRequest(); + ~ReActivateInstancesRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.h b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.h index e1c033751..fc758a0b0 100644 --- a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesResult : public ServiceResult - { - public: - - - ReActivateInstancesResult(); - explicit ReActivateInstancesResult(const std::string &payload); - ~ReActivateInstancesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesResult : public ServiceResult + { + public: + + + ReActivateInstancesResult(); + explicit ReActivateInstancesResult(const std::string &payload); + ~ReActivateInstancesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h index a95c61119..7ad2401e0 100644 --- a/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReInitDiskRequest : public RpcServiceRequest - { - - public: - ReInitDiskRequest(); - ~ReInitDiskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReInitDiskRequest : public RpcServiceRequest + { + + public: + ReInitDiskRequest(); + ~ReInitDiskRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setKeyPairName(const std::string& keyPairName); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string password_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string securityEnhancementStrategy_; std::string keyPairName_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReInitDiskResult.h b/ecs/include/alibabacloud/ecs/model/ReInitDiskResult.h index e6cad2d0f..908698ae1 100644 --- a/ecs/include/alibabacloud/ecs/model/ReInitDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReInitDiskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REINITDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REINITDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReInitDiskResult : public ServiceResult - { - public: - - - ReInitDiskResult(); - explicit ReInitDiskResult(const std::string &payload); - ~ReInitDiskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REINITDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REINITDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReInitDiskResult : public ServiceResult + { + public: + + + ReInitDiskResult(); + explicit ReInitDiskResult(const std::string &payload); + ~ReInitDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REINITDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h index 1276743f7..ba5ad5ae9 100644 --- a/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RebootInstanceRequest : public RpcServiceRequest - { - - public: - RebootInstanceRequest(); - ~RebootInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RebootInstanceRequest : public RpcServiceRequest + { + + public: + RebootInstanceRequest(); + ~RebootInstanceRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); bool getForceStop()const; void setForceStop(bool forceStop); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; bool forceStop_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RebootInstanceResult.h b/ecs/include/alibabacloud/ecs/model/RebootInstanceResult.h index d7d1f5510..494f01d18 100644 --- a/ecs/include/alibabacloud/ecs/model/RebootInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/RebootInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RebootInstanceResult : public ServiceResult - { - public: - - - RebootInstanceResult(); - explicit RebootInstanceResult(const std::string &payload); - ~RebootInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RebootInstanceResult : public ServiceResult + { + public: + + + RebootInstanceResult(); + explicit RebootInstanceResult(const std::string &payload); + ~RebootInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h index e58b2af52..97e7c11b1 100644 --- a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - RecoverVirtualBorderRouterRequest(); - ~RecoverVirtualBorderRouterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterRequest : public RpcServiceRequest + { + + public: + RecoverVirtualBorderRouterRequest(); + ~RecoverVirtualBorderRouterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setVbrId(const std::string& vbrId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string userCidr_; std::string vbrId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h index ee22406be..318b02c85 100644 --- a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h +++ b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterResult : public ServiceResult - { - public: - - - RecoverVirtualBorderRouterResult(); - explicit RecoverVirtualBorderRouterResult(const std::string &payload); - ~RecoverVirtualBorderRouterResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterResult : public ServiceResult + { + public: + + + RecoverVirtualBorderRouterResult(); + explicit RecoverVirtualBorderRouterResult(const std::string &payload); + ~RecoverVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h index 1a87afd11..b141d464f 100644 --- a/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RedeployInstanceRequest : public RpcServiceRequest - { - - public: - RedeployInstanceRequest(); - ~RedeployInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RedeployInstanceRequest : public RpcServiceRequest + { + + public: + RedeployInstanceRequest(); + ~RedeployInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RedeployInstanceResult.h b/ecs/include/alibabacloud/ecs/model/RedeployInstanceResult.h index 2567db647..3ce3ab088 100644 --- a/ecs/include/alibabacloud/ecs/model/RedeployInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/RedeployInstanceResult.h @@ -1,51 +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_ECS_MODEL_REDEPLOYINSTANCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RedeployInstanceResult : public ServiceResult - { - public: - - - RedeployInstanceResult(); - explicit RedeployInstanceResult(const std::string &payload); - ~RedeployInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RedeployInstanceResult : public ServiceResult + { + public: + + + RedeployInstanceResult(); + explicit RedeployInstanceResult(const std::string &payload); + ~RedeployInstanceResult(); std::string getTaskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h b/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h index 5307d8d5a..45b3cef19 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleaseDedicatedHostRequest : public RpcServiceRequest - { - - public: - ReleaseDedicatedHostRequest(); - ~ReleaseDedicatedHostRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleaseDedicatedHostRequest : public RpcServiceRequest + { + + public: + ReleaseDedicatedHostRequest(); + ~ReleaseDedicatedHostRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -115,9 +115,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostResult.h b/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostResult.h index b3ca3fad7..6e65cd151 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleaseDedicatedHostResult : public ServiceResult - { - public: - - - ReleaseDedicatedHostResult(); - explicit ReleaseDedicatedHostResult(const std::string &payload); - ~ReleaseDedicatedHostResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleaseDedicatedHostResult : public ServiceResult + { + public: + + + ReleaseDedicatedHostResult(); + explicit ReleaseDedicatedHostResult(const std::string &payload); + ~ReleaseDedicatedHostResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h index 8a1cbcfad..395fbc905 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressRequest : public RpcServiceRequest - { - - public: - ReleaseEipAddressRequest(); - ~ReleaseEipAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressRequest : public RpcServiceRequest + { + + public: + ReleaseEipAddressRequest(); + ~ReleaseEipAddressRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setAllocationId(const std::string& allocationId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string allocationId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h index be47cebb1..0033896c6 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressResult : public ServiceResult - { - public: - - - ReleaseEipAddressResult(); - explicit ReleaseEipAddressResult(const std::string &payload); - ~ReleaseEipAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressResult : public ServiceResult + { + public: + + + ReleaseEipAddressResult(); + explicit ReleaseEipAddressResult(const std::string &payload); + ~ReleaseEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h index 328b2946b..0b2e25b2e 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressRequest : public RpcServiceRequest - { - - public: - ReleasePublicIpAddressRequest(); - ~ReleasePublicIpAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressRequest : public RpcServiceRequest + { + + public: + ReleasePublicIpAddressRequest(); + ~ReleasePublicIpAddressRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string publicIpAddress_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h index 52003a46c..37098fe19 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressResult : public ServiceResult - { - public: - - - ReleasePublicIpAddressResult(); - explicit ReleasePublicIpAddressResult(const std::string &payload); - ~ReleasePublicIpAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressResult : public ServiceResult + { + public: + + + ReleasePublicIpAddressResult(); + explicit ReleasePublicIpAddressResult(const std::string &payload); + ~ReleasePublicIpAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h index e5c46f488..9ccbbeca7 100644 --- a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsRequest : public RpcServiceRequest - { - - public: - RemoveBandwidthPackageIpsRequest(); - ~RemoveBandwidthPackageIpsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsRequest : public RpcServiceRequest + { + + public: + RemoveBandwidthPackageIpsRequest(); + ~RemoveBandwidthPackageIpsRequest(); + std::vector getRemovedIpAddresses()const; void setRemovedIpAddresses(const std::vector& removedIpAddresses); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::vector removedIpAddresses_; long resourceOwnerId_; std::string bandwidthPackageId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string clientToken_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h index 68ed3ef84..2fe18589d 100644 --- a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h +++ b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsResult : public ServiceResult - { - public: - - - RemoveBandwidthPackageIpsResult(); - explicit RemoveBandwidthPackageIpsResult(const std::string &payload); - ~RemoveBandwidthPackageIpsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsResult : public ServiceResult + { + public: + + + RemoveBandwidthPackageIpsResult(); + explicit RemoveBandwidthPackageIpsResult(const std::string &payload); + ~RemoveBandwidthPackageIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h b/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h index b6fb7e020..0239f59a4 100644 --- a/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h @@ -1,45 +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_ECS_MODEL_REMOVETAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RemoveTagsRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveTagsRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - RemoveTagsRequest(); - ~RemoveTagsRequest(); - + + public: + RemoveTagsRequest(); + ~RemoveTagsRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getResourceType()const; void setResourceType(const std::string& resourceType); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceId_; @@ -66,9 +66,9 @@ namespace AlibabaCloud std::vector tag_; long ownerId_; std::string resourceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveTagsResult.h b/ecs/include/alibabacloud/ecs/model/RemoveTagsResult.h index 5bf38b720..6b8be8a34 100644 --- a/ecs/include/alibabacloud/ecs/model/RemoveTagsResult.h +++ b/ecs/include/alibabacloud/ecs/model/RemoveTagsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REMOVETAGSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RemoveTagsResult : public ServiceResult - { - public: - - - RemoveTagsResult(); - explicit RemoveTagsResult(const std::string &payload); - ~RemoveTagsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVETAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveTagsResult : public ServiceResult + { + public: + + + RemoveTagsResult(); + explicit RemoveTagsResult(const std::string &payload); + ~RemoveTagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REMOVETAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h b/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h index 16c7415b4..0921df231 100644 --- a/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RenewDedicatedHostsRequest : public RpcServiceRequest - { - - public: - RenewDedicatedHostsRequest(); - ~RenewDedicatedHostsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RenewDedicatedHostsRequest : public RpcServiceRequest + { + + public: + RenewDedicatedHostsRequest(); + ~RenewDedicatedHostsRequest(); + std::string getDedicatedHostIds()const; void setDedicatedHostIds(const std::string& dedicatedHostIds); long getResourceOwnerId()const; @@ -93,8 +93,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string dedicatedHostIds_; long resourceOwnerId_; std::string clientToken_; @@ -124,9 +124,9 @@ namespace AlibabaCloud std::string periodUnit_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsResult.h b/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsResult.h index 7e6e82483..9a1e40422 100644 --- a/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsResult.h +++ b/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RenewDedicatedHostsResult : public ServiceResult - { - public: - - - RenewDedicatedHostsResult(); - explicit RenewDedicatedHostsResult(const std::string &payload); - ~RenewDedicatedHostsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RenewDedicatedHostsResult : public ServiceResult + { + public: + + + RenewDedicatedHostsResult(); + explicit RenewDedicatedHostsResult(const std::string &payload); + ~RenewDedicatedHostsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h index 616b6017c..53baa3af4 100644 --- a/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RenewInstanceRequest : public RpcServiceRequest - { - - public: - RenewInstanceRequest(); - ~RenewInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RenewInstanceRequest : public RpcServiceRequest + { + + public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; int period_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RenewInstanceResult.h b/ecs/include/alibabacloud/ecs/model/RenewInstanceResult.h index 07f08e887..e80370119 100644 --- a/ecs/include/alibabacloud/ecs/model/RenewInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/RenewInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RENEWINSTANCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RenewInstanceResult : public ServiceResult - { - public: - - - RenewInstanceResult(); - explicit RenewInstanceResult(const std::string &payload); - ~RenewInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h index cffb05a97..902418ee9 100644 --- a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskRequest : public RpcServiceRequest - { - - public: - ReplaceSystemDiskRequest(); - ~ReplaceSystemDiskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskRequest : public RpcServiceRequest + { + + public: + ReplaceSystemDiskRequest(); + ~ReplaceSystemDiskRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getImageId()const; @@ -69,8 +69,8 @@ namespace AlibabaCloud void setUseAdditionalService(bool useAdditionalService); std::string getArchitecture()const; void setArchitecture(const std::string& architecture); - - private: + + private: long resourceOwnerId_; std::string imageId_; std::string resourceOwnerAccount_; @@ -88,9 +88,9 @@ namespace AlibabaCloud std::string diskId_; bool useAdditionalService_; std::string architecture_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h index db0f3e68f..1bd4aab0f 100644 --- a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h @@ -1,51 +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_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskResult : public ServiceResult - { - public: - - - ReplaceSystemDiskResult(); - explicit ReplaceSystemDiskResult(const std::string &payload); - ~ReplaceSystemDiskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskResult : public ServiceResult + { + public: + + + ReplaceSystemDiskResult(); + explicit ReplaceSystemDiskResult(const std::string &payload); + ~ReplaceSystemDiskResult(); std::string getDiskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string diskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h b/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h index 0a19a35fd..5349fb28c 100644 --- a/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReportInstancesStatusRequest : public RpcServiceRequest - { - - public: - ReportInstancesStatusRequest(); - ~ReportInstancesStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReportInstancesStatusRequest : public RpcServiceRequest + { + + public: + ReportInstancesStatusRequest(); + ~ReportInstancesStatusRequest(); + std::string getReason()const; void setReason(const std::string& reason); long getResourceOwnerId()const; @@ -101,8 +101,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::vector getDevice()const; void setDevice(const std::vector& device); - - private: + + private: std::string reason_; long resourceOwnerId_; long callerParentId_; @@ -136,9 +136,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::vector device_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusResult.h b/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusResult.h index 2466256ea..dc58f8a0a 100644 --- a/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReportInstancesStatusResult : public ServiceResult - { - public: - - - ReportInstancesStatusResult(); - explicit ReportInstancesStatusResult(const std::string &payload); - ~ReportInstancesStatusResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReportInstancesStatusResult : public ServiceResult + { + public: + + + ReportInstancesStatusResult(); + explicit ReportInstancesStatusResult(const std::string &payload); + ~ReportInstancesStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h index c35b37426..7dc358561 100644 --- a/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ResetDiskRequest : public RpcServiceRequest - { - - public: - ResetDiskRequest(); - ~ResetDiskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResetDiskRequest : public RpcServiceRequest + { + + public: + ResetDiskRequest(); + ~ResetDiskRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setDiskId(const std::string& diskId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string snapshotId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string diskId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResetDiskResult.h b/ecs/include/alibabacloud/ecs/model/ResetDiskResult.h index 4e1093ae0..2288e9158 100644 --- a/ecs/include/alibabacloud/ecs/model/ResetDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/ResetDiskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RESETDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ResetDiskResult : public ServiceResult - { - public: - - - ResetDiskResult(); - explicit ResetDiskResult(const std::string &payload); - ~ResetDiskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResetDiskResult : public ServiceResult + { + public: + + + ResetDiskResult(); + explicit ResetDiskResult(const std::string &payload); + ~ResetDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h index aa5feaf77..2d85eb495 100644 --- a/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ResizeDiskRequest : public RpcServiceRequest - { - - public: - ResizeDiskRequest(); - ~ResizeDiskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResizeDiskRequest : public RpcServiceRequest + { + + public: + ResizeDiskRequest(); + ~ResizeDiskRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getType()const; void setType(const std::string& type); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string diskId_; long ownerId_; std::string type_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h b/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h index c16d8ed59..e84c7dd60 100644 --- a/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h +++ b/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RESIZEDISKRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ResizeDiskResult : public ServiceResult - { - public: - - - ResizeDiskResult(); - explicit ResizeDiskResult(const std::string &payload); - ~ResizeDiskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESIZEDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResizeDiskResult : public ServiceResult + { + public: + + + ResizeDiskResult(); + explicit ResizeDiskResult(const std::string &payload); + ~ResizeDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RESIZEDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h index 5b83b24ad..0d8cd8dcc 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressRequest : public RpcServiceRequest - { - - public: - RevokeSecurityGroupEgressRequest(); - ~RevokeSecurityGroupEgressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressRequest : public RpcServiceRequest + { + + public: + RevokeSecurityGroupEgressRequest(); + ~RevokeSecurityGroupEgressRequest(); + std::string getNicType()const; void setNicType(const std::string& nicType); long getResourceOwnerId()const; @@ -117,8 +117,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: std::string nicType_; long resourceOwnerId_; std::string sourcePortRange_; @@ -160,9 +160,9 @@ namespace AlibabaCloud long destGroupOwnerId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h index 7c6e9679e..262dac6c6 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressResult : public ServiceResult - { - public: - - - RevokeSecurityGroupEgressResult(); - explicit RevokeSecurityGroupEgressResult(const std::string &payload); - ~RevokeSecurityGroupEgressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressResult : public ServiceResult + { + public: + + + RevokeSecurityGroupEgressResult(); + explicit RevokeSecurityGroupEgressResult(const std::string &payload); + ~RevokeSecurityGroupEgressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h index d9c76b9c4..6d6c8a8ae 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupRequest : public RpcServiceRequest - { - - public: - RevokeSecurityGroupRequest(); - ~RevokeSecurityGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupRequest : public RpcServiceRequest + { + + public: + RevokeSecurityGroupRequest(); + ~RevokeSecurityGroupRequest(); + std::string getNicType()const; void setNicType(const std::string& nicType); long getResourceOwnerId()const; @@ -117,8 +117,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getSourceGroupId()const; void setSourceGroupId(const std::string& sourceGroupId); - - private: + + private: std::string nicType_; long resourceOwnerId_; std::string sourcePortRange_; @@ -160,9 +160,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string sourceGroupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h index 539179d89..8c9f668c6 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupResult : public ServiceResult - { - public: - - - RevokeSecurityGroupResult(); - explicit RevokeSecurityGroupResult(const std::string &payload); - ~RevokeSecurityGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupResult : public ServiceResult + { + public: + + + RevokeSecurityGroupResult(); + explicit RevokeSecurityGroupResult(const std::string &payload); + ~RevokeSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h index c3c7bbc51..6ce66d372 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RunInstancesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RunInstancesRequest : public RpcServiceRequest + { struct Tag { std::string key; @@ -56,11 +56,11 @@ namespace AlibabaCloud bool deleteWithInstance; std::string performanceLevel; }; - - public: - RunInstancesRequest(); - ~RunInstancesRequest(); - + + public: + RunInstancesRequest(); + ~RunInstancesRequest(); + std::string getLaunchTemplateName()const; void setLaunchTemplateName(const std::string& launchTemplateName); long getResourceOwnerId()const; @@ -237,8 +237,8 @@ namespace AlibabaCloud void setSystemDiskSize(const std::string& systemDiskSize); std::string getSystemDiskDescription()const; void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: + + private: std::string launchTemplateName_; long resourceOwnerId_; bool uniqueSuffix_; @@ -327,9 +327,9 @@ namespace AlibabaCloud std::string storageSetId_; std::string systemDiskSize_; std::string systemDiskDescription_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesResult.h b/ecs/include/alibabacloud/ecs/model/RunInstancesResult.h index c06b858a9..3666b8d76 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RunInstancesResult : public ServiceResult - { - public: - - - RunInstancesResult(); - explicit RunInstancesResult(const std::string &payload); - ~RunInstancesResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RunInstancesResult : public ServiceResult + { + public: + + + RunInstancesResult(); + explicit RunInstancesResult(const std::string &payload); + ~RunInstancesResult(); std::vector getInstanceIdSets()const; float getTradePrice()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector instanceIdSets_; float tradePrice_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h index e55d526df..f34eebef9 100644 --- a/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartInstanceRequest : public RpcServiceRequest - { - - public: - StartInstanceRequest(); - ~StartInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StartInstanceRequest : public RpcServiceRequest + { + + public: + StartInstanceRequest(); + ~StartInstanceRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); bool getInitLocalDisk()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string sourceRegionId_; bool initLocalDisk_; long resourceOwnerId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StartInstanceResult.h b/ecs/include/alibabacloud/ecs/model/StartInstanceResult.h index 746edd076..71c1a8be3 100644 --- a/ecs/include/alibabacloud/ecs/model/StartInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/StartInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartInstanceResult : public ServiceResult - { - public: - - - StartInstanceResult(); - explicit StartInstanceResult(const std::string &payload); - ~StartInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StartInstanceResult : public ServiceResult + { + public: + + + StartInstanceResult(); + explicit StartInstanceResult(const std::string &payload); + ~StartInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h index 9327a3511..789cb9ea6 100644 --- a/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopInstanceRequest : public RpcServiceRequest - { - - public: - StopInstanceRequest(); - ~StopInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInstanceRequest : public RpcServiceRequest + { + + public: + StopInstanceRequest(); + ~StopInstanceRequest(); + std::string getSourceRegionId()const; void setSourceRegionId(const std::string& sourceRegionId); long getResourceOwnerId()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setHibernate(bool hibernate); bool getForceStop()const; void setForceStop(bool forceStop); - - private: + + private: std::string sourceRegionId_; long resourceOwnerId_; std::string instanceId_; @@ -70,9 +70,9 @@ namespace AlibabaCloud long ownerId_; bool hibernate_; bool forceStop_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInstanceResult.h b/ecs/include/alibabacloud/ecs/model/StopInstanceResult.h index fcfb9dc37..c1aa061bd 100644 --- a/ecs/include/alibabacloud/ecs/model/StopInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/StopInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCERESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopInstanceResult : public ServiceResult - { - public: - - - StopInstanceResult(); - explicit StopInstanceResult(const std::string &payload); - ~StopInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInstanceResult : public ServiceResult + { + public: + + + StopInstanceResult(); + explicit StopInstanceResult(const std::string &payload); + ~StopInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h b/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h index 31b72c1b5..e7a898f2e 100644 --- a/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopInvocationRequest : public RpcServiceRequest - { - - public: - StopInvocationRequest(); - ~StopInvocationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInvocationRequest : public RpcServiceRequest + { + + public: + StopInvocationRequest(); + ~StopInvocationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::vector instanceId_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInvocationResult.h b/ecs/include/alibabacloud/ecs/model/StopInvocationResult.h index 0a7520a0a..767450f5b 100644 --- a/ecs/include/alibabacloud/ecs/model/StopInvocationResult.h +++ b/ecs/include/alibabacloud/ecs/model/StopInvocationResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopInvocationResult : public ServiceResult - { - public: - - - StopInvocationResult(); - explicit StopInvocationResult(const std::string &payload); - ~StopInvocationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInvocationResult : public ServiceResult + { + public: + + + StopInvocationResult(); + explicit StopInvocationResult(const std::string &payload); + ~StopInvocationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h b/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h index 4281b8042..5c56d6f42 100644 --- a/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h @@ -1,45 +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_ECS_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TagResourcesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TagResourcesRequest : public RpcServiceRequest + { struct Tag { std::string key; std::string value; }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -96,8 +96,8 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); std::string getAkProxy()const; void setAkProxy(const std::string& akProxy); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -126,9 +126,9 @@ namespace AlibabaCloud bool security_transport_; std::string requestId_; std::string akProxy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TagResourcesResult.h b/ecs/include/alibabacloud/ecs/model/TagResourcesResult.h index ae6d2417d..43db63a35 100644 --- a/ecs/include/alibabacloud/ecs/model/TagResourcesResult.h +++ b/ecs/include/alibabacloud/ecs/model/TagResourcesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_TAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TagResourcesResult : public ServiceResult - { - public: - - - TagResourcesResult(); - explicit TagResourcesResult(const std::string &payload); - ~TagResourcesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h index 845402cc7..ae0acc823 100644 --- a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - TerminatePhysicalConnectionRequest(); - ~TerminatePhysicalConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionRequest : public RpcServiceRequest + { + + public: + TerminatePhysicalConnectionRequest(); + ~TerminatePhysicalConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setUserCidr(const std::string& userCidr); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string userCidr_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h index d6ec10d18..ba6aad8e6 100644 --- a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h +++ b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionResult : public ServiceResult - { - public: - - - TerminatePhysicalConnectionResult(); - explicit TerminatePhysicalConnectionResult(const std::string &payload); - ~TerminatePhysicalConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionResult : public ServiceResult + { + public: + + + TerminatePhysicalConnectionResult(); + explicit TerminatePhysicalConnectionResult(const std::string &payload); + ~TerminatePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h index a50841a34..cc093d198 100644 --- a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - TerminateVirtualBorderRouterRequest(); - ~TerminateVirtualBorderRouterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterRequest : public RpcServiceRequest + { + + public: + TerminateVirtualBorderRouterRequest(); + ~TerminateVirtualBorderRouterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setVbrId(const std::string& vbrId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string regionId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string userCidr_; std::string vbrId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h index fbadc7271..9e40939b8 100644 --- a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h +++ b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterResult : public ServiceResult - { - public: - - - TerminateVirtualBorderRouterResult(); - explicit TerminateVirtualBorderRouterResult(const std::string &payload); - ~TerminateVirtualBorderRouterResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterResult : public ServiceResult + { + public: + + + TerminateVirtualBorderRouterResult(); + explicit TerminateVirtualBorderRouterResult(const std::string &payload); + ~TerminateVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h index a6575120e..21a88f4af 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesRequest : public RpcServiceRequest - { - - public: - UnassignIpv6AddressesRequest(); - ~UnassignIpv6AddressesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesRequest : public RpcServiceRequest + { + + public: + UnassignIpv6AddressesRequest(); + ~UnassignIpv6AddressesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setNetworkInterfaceId(const std::string& networkInterfaceId); std::vector getIpv6Address()const; void setIpv6Address(const std::vector& ipv6Address); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string akProxy_; std::string networkInterfaceId_; std::vector ipv6Address_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h index 988a53c1e..58c50c175 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesResult : public ServiceResult - { - public: - - - UnassignIpv6AddressesResult(); - explicit UnassignIpv6AddressesResult(const std::string &payload); - ~UnassignIpv6AddressesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesResult : public ServiceResult + { + public: + + + UnassignIpv6AddressesResult(); + explicit UnassignIpv6AddressesResult(const std::string &payload); + ~UnassignIpv6AddressesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h index e77349198..b107b6e44 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassignPrivateIpAddressesRequest : public RpcServiceRequest - { - - public: - UnassignPrivateIpAddressesRequest(); - ~UnassignPrivateIpAddressesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassignPrivateIpAddressesRequest : public RpcServiceRequest + { + + public: + UnassignPrivateIpAddressesRequest(); + ~UnassignPrivateIpAddressesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::string getNetworkInterfaceId()const; void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -118,9 +118,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::string networkInterfaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesResult.h b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesResult.h index 156087514..6c99e03df 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesResult.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassignPrivateIpAddressesResult : public ServiceResult - { - public: - - - UnassignPrivateIpAddressesResult(); - explicit UnassignPrivateIpAddressesResult(const std::string &payload); - ~UnassignPrivateIpAddressesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassignPrivateIpAddressesResult : public ServiceResult + { + public: + + + UnassignPrivateIpAddressesResult(); + explicit UnassignPrivateIpAddressesResult(const std::string &payload); + ~UnassignPrivateIpAddressesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h index c7e605729..5ee93ba12 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressRequest : public RpcServiceRequest - { - - public: - UnassociateEipAddressRequest(); - ~UnassociateEipAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressRequest : public RpcServiceRequest + { + + public: + UnassociateEipAddressRequest(); + ~UnassociateEipAddressRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getInstanceId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAllocationId(const std::string& allocationId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string instanceId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string instanceType_; std::string allocationId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h index 4a3fa8b99..2bac7f2e1 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h +++ b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressResult : public ServiceResult - { - public: - - - UnassociateEipAddressResult(); - explicit UnassociateEipAddressResult(const std::string &payload); - ~UnassociateEipAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressResult : public ServiceResult + { + public: + + + UnassociateEipAddressResult(); + explicit UnassociateEipAddressResult(const std::string &payload); + ~UnassociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h index d346789f3..7429cd30c 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipRequest : public RpcServiceRequest - { - - public: - UnassociateHaVipRequest(); - ~UnassociateHaVipRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipRequest : public RpcServiceRequest + { + + public: + UnassociateHaVipRequest(); + ~UnassociateHaVipRequest(); + std::string getHaVipId()const; void setHaVipId(const std::string& haVipId); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setForce(const std::string& force); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string haVipId_; long resourceOwnerId_; std::string instanceId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string force_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h index ec09501a5..02a71c4c3 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h +++ b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipResult : public ServiceResult - { - public: - - - UnassociateHaVipResult(); - explicit UnassociateHaVipResult(const std::string &payload); - ~UnassociateHaVipResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipResult : public ServiceResult + { + public: + + + UnassociateHaVipResult(); + explicit UnassociateHaVipResult(const std::string &payload); + ~UnassociateHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h b/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h index e41da617c..355efb258 100644 --- a/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setAkProxy(const std::string& akProxy); std::vector getTagKey()const; void setTagKey(const std::vector& tagKey); - - private: + + private: long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string requestId_; std::string akProxy_; std::vector tagKey_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UntagResourcesResult.h b/ecs/include/alibabacloud/ecs/model/UntagResourcesResult.h index c1baec9a7..ad84ddb87 100644 --- a/ecs/include/alibabacloud/ecs/model/UntagResourcesResult.h +++ b/ecs/include/alibabacloud/ecs/model/UntagResourcesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UntagResourcesResult : public ServiceResult - { - public: - - - UntagResourcesResult(); - explicit UntagResourcesResult(const std::string &payload); - ~UntagResourcesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc index 2186fdd4b..4da4957d6 100644 --- a/ecs/src/EcsClient.cc +++ b/ecs/src/EcsClient.cc @@ -51,42 +51,6 @@ EcsClient::EcsClient(const std::string & accessKeyId, const std::string & access EcsClient::~EcsClient() {} -EcsClient::JoinSecurityGroupOutcome EcsClient::joinSecurityGroup(const JoinSecurityGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return JoinSecurityGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return JoinSecurityGroupOutcome(JoinSecurityGroupResult(outcome.result())); - else - return JoinSecurityGroupOutcome(outcome.error()); -} - -void EcsClient::joinSecurityGroupAsync(const JoinSecurityGroupRequest& request, const JoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, joinSecurityGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::JoinSecurityGroupOutcomeCallable EcsClient::joinSecurityGroupCallable(const JoinSecurityGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->joinSecurityGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::ModifySnapshotAttributeOutcome EcsClient::modifySnapshotAttribute(const ModifySnapshotAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,36 +87,36 @@ EcsClient::ModifySnapshotAttributeOutcomeCallable EcsClient::modifySnapshotAttri return task->get_future(); } -EcsClient::DescribeDedicatedHostTypesOutcome EcsClient::describeDedicatedHostTypes(const DescribeDedicatedHostTypesRequest &request) const +EcsClient::JoinSecurityGroupOutcome EcsClient::joinSecurityGroup(const JoinSecurityGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDedicatedHostTypesOutcome(endpointOutcome.error()); + return JoinSecurityGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDedicatedHostTypesOutcome(DescribeDedicatedHostTypesResult(outcome.result())); + return JoinSecurityGroupOutcome(JoinSecurityGroupResult(outcome.result())); else - return DescribeDedicatedHostTypesOutcome(outcome.error()); + return JoinSecurityGroupOutcome(outcome.error()); } -void EcsClient::describeDedicatedHostTypesAsync(const DescribeDedicatedHostTypesRequest& request, const DescribeDedicatedHostTypesAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::joinSecurityGroupAsync(const JoinSecurityGroupRequest& request, const JoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDedicatedHostTypes(request), context); + handler(this, request, joinSecurityGroup(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::DescribeDedicatedHostTypesOutcomeCallable EcsClient::describeDedicatedHostTypesCallable(const DescribeDedicatedHostTypesRequest &request) const +EcsClient::JoinSecurityGroupOutcomeCallable EcsClient::joinSecurityGroupCallable(const JoinSecurityGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDedicatedHostTypes(request); + return this->joinSecurityGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -195,6 +159,78 @@ EcsClient::UntagResourcesOutcomeCallable EcsClient::untagResourcesCallable(const return task->get_future(); } +EcsClient::DescribeDedicatedHostTypesOutcome EcsClient::describeDedicatedHostTypes(const DescribeDedicatedHostTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDedicatedHostTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDedicatedHostTypesOutcome(DescribeDedicatedHostTypesResult(outcome.result())); + else + return DescribeDedicatedHostTypesOutcome(outcome.error()); +} + +void EcsClient::describeDedicatedHostTypesAsync(const DescribeDedicatedHostTypesRequest& request, const DescribeDedicatedHostTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDedicatedHostTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDedicatedHostTypesOutcomeCallable EcsClient::describeDedicatedHostTypesCallable(const DescribeDedicatedHostTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDedicatedHostTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeStorageSetsOutcome EcsClient::describeStorageSets(const DescribeStorageSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStorageSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStorageSetsOutcome(DescribeStorageSetsResult(outcome.result())); + else + return DescribeStorageSetsOutcome(outcome.error()); +} + +void EcsClient::describeStorageSetsAsync(const DescribeStorageSetsRequest& request, const DescribeStorageSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStorageSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeStorageSetsOutcomeCallable EcsClient::describeStorageSetsCallable(const DescribeStorageSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStorageSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeSnapshotsOutcome EcsClient::describeSnapshots(const DescribeSnapshotsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +267,42 @@ EcsClient::DescribeSnapshotsOutcomeCallable EcsClient::describeSnapshotsCallable return task->get_future(); } +EcsClient::ModifyStorageSetAttributeOutcome EcsClient::modifyStorageSetAttribute(const ModifyStorageSetAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyStorageSetAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyStorageSetAttributeOutcome(ModifyStorageSetAttributeResult(outcome.result())); + else + return ModifyStorageSetAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyStorageSetAttributeAsync(const ModifyStorageSetAttributeRequest& request, const ModifyStorageSetAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyStorageSetAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyStorageSetAttributeOutcomeCallable EcsClient::modifyStorageSetAttributeCallable(const ModifyStorageSetAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyStorageSetAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyInstanceVncPasswdOutcome EcsClient::modifyInstanceVncPasswd(const ModifyInstanceVncPasswdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,42 +375,6 @@ EcsClient::ModifyBandwidthPackageSpecOutcomeCallable EcsClient::modifyBandwidthP return task->get_future(); } -EcsClient::AttachDiskOutcome EcsClient::attachDisk(const AttachDiskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AttachDiskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AttachDiskOutcome(AttachDiskResult(outcome.result())); - else - return AttachDiskOutcome(outcome.error()); -} - -void EcsClient::attachDiskAsync(const AttachDiskRequest& request, const AttachDiskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, attachDisk(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::AttachDiskOutcomeCallable EcsClient::attachDiskCallable(const AttachDiskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->attachDisk(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::CreateNatGatewayOutcome EcsClient::createNatGateway(const CreateNatGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +411,42 @@ EcsClient::CreateNatGatewayOutcomeCallable EcsClient::createNatGatewayCallable(c return task->get_future(); } +EcsClient::AttachDiskOutcome EcsClient::attachDisk(const AttachDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachDiskOutcome(AttachDiskResult(outcome.result())); + else + return AttachDiskOutcome(outcome.error()); +} + +void EcsClient::attachDiskAsync(const AttachDiskRequest& request, const AttachDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AttachDiskOutcomeCallable EcsClient::attachDiskCallable(const AttachDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeEniMonitorDataOutcome EcsClient::describeEniMonitorData(const DescribeEniMonitorDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,42 +519,6 @@ EcsClient::ExportSnapshotOutcomeCallable EcsClient::exportSnapshotCallable(const return task->get_future(); } -EcsClient::ReInitDiskOutcome EcsClient::reInitDisk(const ReInitDiskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReInitDiskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReInitDiskOutcome(ReInitDiskResult(outcome.result())); - else - return ReInitDiskOutcome(outcome.error()); -} - -void EcsClient::reInitDiskAsync(const ReInitDiskRequest& request, const ReInitDiskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, reInitDisk(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::ReInitDiskOutcomeCallable EcsClient::reInitDiskCallable(const ReInitDiskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->reInitDisk(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::CreateHaVipOutcome EcsClient::createHaVip(const CreateHaVipRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +555,42 @@ EcsClient::CreateHaVipOutcomeCallable EcsClient::createHaVipCallable(const Creat return task->get_future(); } +EcsClient::ReInitDiskOutcome EcsClient::reInitDisk(const ReInitDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReInitDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReInitDiskOutcome(ReInitDiskResult(outcome.result())); + else + return ReInitDiskOutcome(outcome.error()); +} + +void EcsClient::reInitDiskAsync(const ReInitDiskRequest& request, const ReInitDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reInitDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ReInitDiskOutcomeCallable EcsClient::reInitDiskCallable(const ReInitDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reInitDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyAutoSnapshotPolicyOutcome EcsClient::modifyAutoSnapshotPolicy(const ModifyAutoSnapshotPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +699,42 @@ EcsClient::AssociateEipAddressOutcomeCallable EcsClient::associateEipAddressCall return task->get_future(); } +EcsClient::DeleteInstancesOutcome EcsClient::deleteInstances(const DeleteInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteInstancesOutcome(DeleteInstancesResult(outcome.result())); + else + return DeleteInstancesOutcome(outcome.error()); +} + +void EcsClient::deleteInstancesAsync(const DeleteInstancesRequest& request, const DeleteInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteInstancesOutcomeCallable EcsClient::deleteInstancesCallable(const DeleteInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::RevokeSecurityGroupEgressOutcome EcsClient::revokeSecurityGroupEgress(const RevokeSecurityGroupEgressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +1023,42 @@ EcsClient::DescribeInstanceTopologyOutcomeCallable EcsClient::describeInstanceTo return task->get_future(); } +EcsClient::ModifyDiskSpecOutcome EcsClient::modifyDiskSpec(const ModifyDiskSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDiskSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDiskSpecOutcome(ModifyDiskSpecResult(outcome.result())); + else + return ModifyDiskSpecOutcome(outcome.error()); +} + +void EcsClient::modifyDiskSpecAsync(const ModifyDiskSpecRequest& request, const ModifyDiskSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDiskSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyDiskSpecOutcomeCallable EcsClient::modifyDiskSpecCallable(const ModifyDiskSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDiskSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeletePhysicalConnectionOutcome EcsClient::deletePhysicalConnection(const DeletePhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,42 +1563,6 @@ EcsClient::ModifyDedicatedHostAutoRenewAttributeOutcomeCallable EcsClient::modif return task->get_future(); } -EcsClient::DescribeEipMonitorDataOutcome EcsClient::describeEipMonitorData(const DescribeEipMonitorDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeEipMonitorDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeEipMonitorDataOutcome(DescribeEipMonitorDataResult(outcome.result())); - else - return DescribeEipMonitorDataOutcome(outcome.error()); -} - -void EcsClient::describeEipMonitorDataAsync(const DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeEipMonitorData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeEipMonitorDataOutcomeCallable EcsClient::describeEipMonitorDataCallable(const DescribeEipMonitorDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeEipMonitorData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::ModifyReservedInstancesOutcome EcsClient::modifyReservedInstances(const ModifyReservedInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,36 +1599,36 @@ EcsClient::ModifyReservedInstancesOutcomeCallable EcsClient::modifyReservedInsta return task->get_future(); } -EcsClient::DescribeDisksFullStatusOutcome EcsClient::describeDisksFullStatus(const DescribeDisksFullStatusRequest &request) const +EcsClient::DescribeEipMonitorDataOutcome EcsClient::describeEipMonitorData(const DescribeEipMonitorDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDisksFullStatusOutcome(endpointOutcome.error()); + return DescribeEipMonitorDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDisksFullStatusOutcome(DescribeDisksFullStatusResult(outcome.result())); + return DescribeEipMonitorDataOutcome(DescribeEipMonitorDataResult(outcome.result())); else - return DescribeDisksFullStatusOutcome(outcome.error()); + return DescribeEipMonitorDataOutcome(outcome.error()); } -void EcsClient::describeDisksFullStatusAsync(const DescribeDisksFullStatusRequest& request, const DescribeDisksFullStatusAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::describeEipMonitorDataAsync(const DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDisksFullStatus(request), context); + handler(this, request, describeEipMonitorData(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::DescribeDisksFullStatusOutcomeCallable EcsClient::describeDisksFullStatusCallable(const DescribeDisksFullStatusRequest &request) const +EcsClient::DescribeEipMonitorDataOutcomeCallable EcsClient::describeEipMonitorDataCallable(const DescribeEipMonitorDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDisksFullStatus(request); + return this->describeEipMonitorData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1563,6 +1671,42 @@ EcsClient::CancelAutoSnapshotPolicyOutcomeCallable EcsClient::cancelAutoSnapshot return task->get_future(); } +EcsClient::DescribeDisksFullStatusOutcome EcsClient::describeDisksFullStatus(const DescribeDisksFullStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDisksFullStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDisksFullStatusOutcome(DescribeDisksFullStatusResult(outcome.result())); + else + return DescribeDisksFullStatusOutcome(outcome.error()); +} + +void EcsClient::describeDisksFullStatusAsync(const DescribeDisksFullStatusRequest& request, const DescribeDisksFullStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDisksFullStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDisksFullStatusOutcomeCallable EcsClient::describeDisksFullStatusCallable(const DescribeDisksFullStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDisksFullStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteNetworkInterfaceOutcome EcsClient::deleteNetworkInterface(const DeleteNetworkInterfaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,42 +1923,6 @@ EcsClient::AuthorizeSecurityGroupOutcomeCallable EcsClient::authorizeSecurityGro return task->get_future(); } -EcsClient::DeleteSecurityGroupOutcome EcsClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSecurityGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSecurityGroupOutcome(DeleteSecurityGroupResult(outcome.result())); - else - return DeleteSecurityGroupOutcome(outcome.error()); -} - -void EcsClient::deleteSecurityGroupAsync(const DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSecurityGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DeleteSecurityGroupOutcomeCallable EcsClient::deleteSecurityGroupCallable(const DeleteSecurityGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSecurityGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DescribeSnapshotMonitorDataOutcome EcsClient::describeSnapshotMonitorData(const DescribeSnapshotMonitorDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1851,6 +1959,42 @@ EcsClient::DescribeSnapshotMonitorDataOutcomeCallable EcsClient::describeSnapsho return task->get_future(); } +EcsClient::DeleteSecurityGroupOutcome EcsClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSecurityGroupOutcome(DeleteSecurityGroupResult(outcome.result())); + else + return DeleteSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::deleteSecurityGroupAsync(const DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteSecurityGroupOutcomeCallable EcsClient::deleteSecurityGroupCallable(const DeleteSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ConnectRouterInterfaceOutcome EcsClient::connectRouterInterface(const ConnectRouterInterfaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,42 +2103,6 @@ EcsClient::CreateSimulatedSystemEventsOutcomeCallable EcsClient::createSimulated return task->get_future(); } -EcsClient::CancelTaskOutcome EcsClient::cancelTask(const CancelTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CancelTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CancelTaskOutcome(CancelTaskResult(outcome.result())); - else - return CancelTaskOutcome(outcome.error()); -} - -void EcsClient::cancelTaskAsync(const CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cancelTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::CancelTaskOutcomeCallable EcsClient::cancelTaskCallable(const CancelTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cancelTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::RedeployInstanceOutcome EcsClient::redeployInstance(const RedeployInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2139,42 @@ EcsClient::RedeployInstanceOutcomeCallable EcsClient::redeployInstanceCallable(c return task->get_future(); } +EcsClient::CancelTaskOutcome EcsClient::cancelTask(const CancelTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelTaskOutcome(CancelTaskResult(outcome.result())); + else + return CancelTaskOutcome(outcome.error()); +} + +void EcsClient::cancelTaskAsync(const CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelTaskOutcomeCallable EcsClient::cancelTaskCallable(const CancelTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyCommandOutcome EcsClient::modifyCommand(const ModifyCommandRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2319,42 +2463,6 @@ EcsClient::ModifyDedicatedHostAttributeOutcomeCallable EcsClient::modifyDedicate return task->get_future(); } -EcsClient::CreateRouteEntryOutcome EcsClient::createRouteEntry(const CreateRouteEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateRouteEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateRouteEntryOutcome(CreateRouteEntryResult(outcome.result())); - else - return CreateRouteEntryOutcome(outcome.error()); -} - -void EcsClient::createRouteEntryAsync(const CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createRouteEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::CreateRouteEntryOutcomeCallable EcsClient::createRouteEntryCallable(const CreateRouteEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createRouteEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::ModifyFleetOutcome EcsClient::modifyFleet(const ModifyFleetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2391,6 +2499,42 @@ EcsClient::ModifyFleetOutcomeCallable EcsClient::modifyFleetCallable(const Modif return task->get_future(); } +EcsClient::CreateRouteEntryOutcome EcsClient::createRouteEntry(const CreateRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouteEntryOutcome(CreateRouteEntryResult(outcome.result())); + else + return CreateRouteEntryOutcome(outcome.error()); +} + +void EcsClient::createRouteEntryAsync(const CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateRouteEntryOutcomeCallable EcsClient::createRouteEntryCallable(const CreateRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::AttachKeyPairOutcome EcsClient::attachKeyPair(const AttachKeyPairRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,6 +2643,42 @@ EcsClient::CreateRouterInterfaceOutcomeCallable EcsClient::createRouterInterface return task->get_future(); } +EcsClient::DeleteAutoProvisioningGroupOutcome EcsClient::deleteAutoProvisioningGroup(const DeleteAutoProvisioningGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAutoProvisioningGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAutoProvisioningGroupOutcome(DeleteAutoProvisioningGroupResult(outcome.result())); + else + return DeleteAutoProvisioningGroupOutcome(outcome.error()); +} + +void EcsClient::deleteAutoProvisioningGroupAsync(const DeleteAutoProvisioningGroupRequest& request, const DeleteAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAutoProvisioningGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteAutoProvisioningGroupOutcomeCallable EcsClient::deleteAutoProvisioningGroupCallable(const DeleteAutoProvisioningGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAutoProvisioningGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::TagResourcesOutcome EcsClient::tagResources(const TagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2643,6 +2823,42 @@ EcsClient::CreateLaunchTemplateVersionOutcomeCallable EcsClient::createLaunchTem return task->get_future(); } +EcsClient::DescribeAutoProvisioningGroupHistoryOutcome EcsClient::describeAutoProvisioningGroupHistory(const DescribeAutoProvisioningGroupHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoProvisioningGroupHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoProvisioningGroupHistoryOutcome(DescribeAutoProvisioningGroupHistoryResult(outcome.result())); + else + return DescribeAutoProvisioningGroupHistoryOutcome(outcome.error()); +} + +void EcsClient::describeAutoProvisioningGroupHistoryAsync(const DescribeAutoProvisioningGroupHistoryRequest& request, const DescribeAutoProvisioningGroupHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoProvisioningGroupHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeAutoProvisioningGroupHistoryOutcomeCallable EcsClient::describeAutoProvisioningGroupHistoryCallable(const DescribeAutoProvisioningGroupHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoProvisioningGroupHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::StopInvocationOutcome EcsClient::stopInvocation(const StopInvocationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,42 +3183,6 @@ EcsClient::ModifySecurityGroupAttributeOutcomeCallable EcsClient::modifySecurity return task->get_future(); } -EcsClient::RemoveTagsOutcome EcsClient::removeTags(const RemoveTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveTagsOutcome(RemoveTagsResult(outcome.result())); - else - return RemoveTagsOutcome(outcome.error()); -} - -void EcsClient::removeTagsAsync(const RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::RemoveTagsOutcomeCallable EcsClient::removeTagsCallable(const RemoveTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::RenewDedicatedHostsOutcome EcsClient::renewDedicatedHosts(const RenewDedicatedHostsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3039,6 +3219,42 @@ EcsClient::RenewDedicatedHostsOutcomeCallable EcsClient::renewDedicatedHostsCall return task->get_future(); } +EcsClient::RemoveTagsOutcome EcsClient::removeTags(const RemoveTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagsOutcome(RemoveTagsResult(outcome.result())); + else + return RemoveTagsOutcome(outcome.error()); +} + +void EcsClient::removeTagsAsync(const RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RemoveTagsOutcomeCallable EcsClient::removeTagsCallable(const RemoveTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CancelSimulatedSystemEventsOutcome EcsClient::cancelSimulatedSystemEvents(const CancelSimulatedSystemEventsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3867,6 +4083,42 @@ EcsClient::CreateDiskOutcomeCallable EcsClient::createDiskCallable(const CreateD return task->get_future(); } +EcsClient::DescribeAutoProvisioningGroupInstancesOutcome EcsClient::describeAutoProvisioningGroupInstances(const DescribeAutoProvisioningGroupInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoProvisioningGroupInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoProvisioningGroupInstancesOutcome(DescribeAutoProvisioningGroupInstancesResult(outcome.result())); + else + return DescribeAutoProvisioningGroupInstancesOutcome(outcome.error()); +} + +void EcsClient::describeAutoProvisioningGroupInstancesAsync(const DescribeAutoProvisioningGroupInstancesRequest& request, const DescribeAutoProvisioningGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoProvisioningGroupInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeAutoProvisioningGroupInstancesOutcomeCallable EcsClient::describeAutoProvisioningGroupInstancesCallable(const DescribeAutoProvisioningGroupInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoProvisioningGroupInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeInstanceTypesOutcome EcsClient::describeInstanceTypes(const DescribeInstanceTypesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4839,42 +5091,6 @@ EcsClient::DeleteVpcOutcomeCallable EcsClient::deleteVpcCallable(const DeleteVpc return task->get_future(); } -EcsClient::DeleteCommandOutcome EcsClient::deleteCommand(const DeleteCommandRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteCommandOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteCommandOutcome(DeleteCommandResult(outcome.result())); - else - return DeleteCommandOutcome(outcome.error()); -} - -void EcsClient::deleteCommandAsync(const DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteCommand(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DeleteCommandOutcomeCallable EcsClient::deleteCommandCallable(const DeleteCommandRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteCommand(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DescribeImageSupportInstanceTypesOutcome EcsClient::describeImageSupportInstanceTypes(const DescribeImageSupportInstanceTypesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,6 +5127,42 @@ EcsClient::DescribeImageSupportInstanceTypesOutcomeCallable EcsClient::describeI return task->get_future(); } +EcsClient::DeleteCommandOutcome EcsClient::deleteCommand(const DeleteCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCommandOutcome(DeleteCommandResult(outcome.result())); + else + return DeleteCommandOutcome(outcome.error()); +} + +void EcsClient::deleteCommandAsync(const DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteCommandOutcomeCallable EcsClient::deleteCommandCallable(const DeleteCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ReplaceSystemDiskOutcome EcsClient::replaceSystemDisk(const ReplaceSystemDiskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5199,42 +5451,6 @@ EcsClient::DescribeClustersOutcomeCallable EcsClient::describeClustersCallable(c return task->get_future(); } -EcsClient::DescribeTagsOutcome EcsClient::describeTags(const DescribeTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); - else - return DescribeTagsOutcome(outcome.error()); -} - -void EcsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeTagsOutcomeCallable EcsClient::describeTagsCallable(const DescribeTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DeleteBandwidthPackageOutcome EcsClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5271,6 +5487,42 @@ EcsClient::DeleteBandwidthPackageOutcomeCallable EcsClient::deleteBandwidthPacka return task->get_future(); } +EcsClient::DescribeTagsOutcome EcsClient::describeTags(const DescribeTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); + else + return DescribeTagsOutcome(outcome.error()); +} + +void EcsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeTagsOutcomeCallable EcsClient::describeTagsCallable(const DescribeTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeImagesOutcome EcsClient::describeImages(const DescribeImagesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5595,6 +5847,42 @@ EcsClient::UnassociateEipAddressOutcomeCallable EcsClient::unassociateEipAddress return task->get_future(); } +EcsClient::CreateStorageSetOutcome EcsClient::createStorageSet(const CreateStorageSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStorageSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStorageSetOutcome(CreateStorageSetResult(outcome.result())); + else + return CreateStorageSetOutcome(outcome.error()); +} + +void EcsClient::createStorageSetAsync(const CreateStorageSetRequest& request, const CreateStorageSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStorageSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateStorageSetOutcomeCallable EcsClient::createStorageSetCallable(const CreateStorageSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStorageSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::CreateSnapshotOutcome EcsClient::createSnapshot(const CreateSnapshotRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5631,42 +5919,6 @@ EcsClient::CreateSnapshotOutcomeCallable EcsClient::createSnapshotCallable(const return task->get_future(); } -EcsClient::ModifyVirtualBorderRouterAttributeOutcome EcsClient::modifyVirtualBorderRouterAttribute(const ModifyVirtualBorderRouterAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyVirtualBorderRouterAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyVirtualBorderRouterAttributeOutcome(ModifyVirtualBorderRouterAttributeResult(outcome.result())); - else - return ModifyVirtualBorderRouterAttributeOutcome(outcome.error()); -} - -void EcsClient::modifyVirtualBorderRouterAttributeAsync(const ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyVirtualBorderRouterAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::ModifyVirtualBorderRouterAttributeOutcomeCallable EcsClient::modifyVirtualBorderRouterAttributeCallable(const ModifyVirtualBorderRouterAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyVirtualBorderRouterAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DetachKeyPairOutcome EcsClient::detachKeyPair(const DetachKeyPairRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5703,6 +5955,42 @@ EcsClient::DetachKeyPairOutcomeCallable EcsClient::detachKeyPairCallable(const D return task->get_future(); } +EcsClient::ModifyVirtualBorderRouterAttributeOutcome EcsClient::modifyVirtualBorderRouterAttribute(const ModifyVirtualBorderRouterAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVirtualBorderRouterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVirtualBorderRouterAttributeOutcome(ModifyVirtualBorderRouterAttributeResult(outcome.result())); + else + return ModifyVirtualBorderRouterAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyVirtualBorderRouterAttributeAsync(const ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVirtualBorderRouterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyVirtualBorderRouterAttributeOutcomeCallable EcsClient::modifyVirtualBorderRouterAttributeCallable(const ModifyVirtualBorderRouterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVirtualBorderRouterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeTasksOutcome EcsClient::describeTasks(const DescribeTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6027,42 +6315,6 @@ EcsClient::ImportKeyPairOutcomeCallable EcsClient::importKeyPairCallable(const I return task->get_future(); } -EcsClient::DescribeNewProjectEipMonitorDataOutcome EcsClient::describeNewProjectEipMonitorData(const DescribeNewProjectEipMonitorDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNewProjectEipMonitorDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNewProjectEipMonitorDataOutcome(DescribeNewProjectEipMonitorDataResult(outcome.result())); - else - return DescribeNewProjectEipMonitorDataOutcome(outcome.error()); -} - -void EcsClient::describeNewProjectEipMonitorDataAsync(const DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNewProjectEipMonitorData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeNewProjectEipMonitorDataOutcomeCallable EcsClient::describeNewProjectEipMonitorDataCallable(const DescribeNewProjectEipMonitorDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNewProjectEipMonitorData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DeleteLaunchTemplateOutcome EcsClient::deleteLaunchTemplate(const DeleteLaunchTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6099,6 +6351,42 @@ EcsClient::DeleteLaunchTemplateOutcomeCallable EcsClient::deleteLaunchTemplateCa return task->get_future(); } +EcsClient::DescribeNewProjectEipMonitorDataOutcome EcsClient::describeNewProjectEipMonitorData(const DescribeNewProjectEipMonitorDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNewProjectEipMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNewProjectEipMonitorDataOutcome(DescribeNewProjectEipMonitorDataResult(outcome.result())); + else + return DescribeNewProjectEipMonitorDataOutcome(outcome.error()); +} + +void EcsClient::describeNewProjectEipMonitorDataAsync(const DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNewProjectEipMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeNewProjectEipMonitorDataOutcomeCallable EcsClient::describeNewProjectEipMonitorDataCallable(const DescribeNewProjectEipMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNewProjectEipMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeInstanceRamRoleOutcome EcsClient::describeInstanceRamRole(const DescribeInstanceRamRoleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6315,42 +6603,6 @@ EcsClient::ModifyImageAttributeOutcomeCallable EcsClient::modifyImageAttributeCa return task->get_future(); } -EcsClient::DescribeInstanceStatusOutcome EcsClient::describeInstanceStatus(const DescribeInstanceStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeInstanceStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeInstanceStatusOutcome(DescribeInstanceStatusResult(outcome.result())); - else - return DescribeInstanceStatusOutcome(outcome.error()); -} - -void EcsClient::describeInstanceStatusAsync(const DescribeInstanceStatusRequest& request, const DescribeInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeInstanceStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeInstanceStatusOutcomeCallable EcsClient::describeInstanceStatusCallable(const DescribeInstanceStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeInstanceStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::AddBandwidthPackageIpsOutcome EcsClient::addBandwidthPackageIps(const AddBandwidthPackageIpsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6387,6 +6639,42 @@ EcsClient::AddBandwidthPackageIpsOutcomeCallable EcsClient::addBandwidthPackageI return task->get_future(); } +EcsClient::DescribeInstanceStatusOutcome EcsClient::describeInstanceStatus(const DescribeInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceStatusOutcome(DescribeInstanceStatusResult(outcome.result())); + else + return DescribeInstanceStatusOutcome(outcome.error()); +} + +void EcsClient::describeInstanceStatusAsync(const DescribeInstanceStatusRequest& request, const DescribeInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceStatusOutcomeCallable EcsClient::describeInstanceStatusCallable(const DescribeInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeNatGatewaysOutcome EcsClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6531,6 +6819,78 @@ EcsClient::ModifyDiskChargeTypeOutcomeCallable EcsClient::modifyDiskChargeTypeCa return task->get_future(); } +EcsClient::DescribeAutoProvisioningGroupsOutcome EcsClient::describeAutoProvisioningGroups(const DescribeAutoProvisioningGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoProvisioningGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoProvisioningGroupsOutcome(DescribeAutoProvisioningGroupsResult(outcome.result())); + else + return DescribeAutoProvisioningGroupsOutcome(outcome.error()); +} + +void EcsClient::describeAutoProvisioningGroupsAsync(const DescribeAutoProvisioningGroupsRequest& request, const DescribeAutoProvisioningGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoProvisioningGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeAutoProvisioningGroupsOutcomeCallable EcsClient::describeAutoProvisioningGroupsCallable(const DescribeAutoProvisioningGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoProvisioningGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyAutoProvisioningGroupOutcome EcsClient::modifyAutoProvisioningGroup(const ModifyAutoProvisioningGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAutoProvisioningGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAutoProvisioningGroupOutcome(ModifyAutoProvisioningGroupResult(outcome.result())); + else + return ModifyAutoProvisioningGroupOutcome(outcome.error()); +} + +void EcsClient::modifyAutoProvisioningGroupAsync(const ModifyAutoProvisioningGroupRequest& request, const ModifyAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAutoProvisioningGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyAutoProvisioningGroupOutcomeCallable EcsClient::modifyAutoProvisioningGroupCallable(const ModifyAutoProvisioningGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAutoProvisioningGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DeleteFleetOutcome EcsClient::deleteFleet(const DeleteFleetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7107,36 +7467,36 @@ EcsClient::DescribeSnapshotsUsageOutcomeCallable EcsClient::describeSnapshotsUsa return task->get_future(); } -EcsClient::CreateInstanceOutcome EcsClient::createInstance(const CreateInstanceRequest &request) const +EcsClient::DeleteAutoSnapshotPolicyOutcome EcsClient::deleteAutoSnapshotPolicy(const DeleteAutoSnapshotPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateInstanceOutcome(endpointOutcome.error()); + return DeleteAutoSnapshotPolicyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + return DeleteAutoSnapshotPolicyOutcome(DeleteAutoSnapshotPolicyResult(outcome.result())); else - return CreateInstanceOutcome(outcome.error()); + return DeleteAutoSnapshotPolicyOutcome(outcome.error()); } -void EcsClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::deleteAutoSnapshotPolicyAsync(const DeleteAutoSnapshotPolicyRequest& request, const DeleteAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createInstance(request), context); + handler(this, request, deleteAutoSnapshotPolicy(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::CreateInstanceOutcomeCallable EcsClient::createInstanceCallable(const CreateInstanceRequest &request) const +EcsClient::DeleteAutoSnapshotPolicyOutcomeCallable EcsClient::deleteAutoSnapshotPolicyCallable(const DeleteAutoSnapshotPolicyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createInstance(request); + return this->deleteAutoSnapshotPolicy(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -7179,36 +7539,36 @@ EcsClient::ModifySecurityGroupEgressRuleOutcomeCallable EcsClient::modifySecurit return task->get_future(); } -EcsClient::DeleteAutoSnapshotPolicyOutcome EcsClient::deleteAutoSnapshotPolicy(const DeleteAutoSnapshotPolicyRequest &request) const +EcsClient::CreateInstanceOutcome EcsClient::createInstance(const CreateInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteAutoSnapshotPolicyOutcome(endpointOutcome.error()); + return CreateInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteAutoSnapshotPolicyOutcome(DeleteAutoSnapshotPolicyResult(outcome.result())); + return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); else - return DeleteAutoSnapshotPolicyOutcome(outcome.error()); + return CreateInstanceOutcome(outcome.error()); } -void EcsClient::deleteAutoSnapshotPolicyAsync(const DeleteAutoSnapshotPolicyRequest& request, const DeleteAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteAutoSnapshotPolicy(request), context); + handler(this, request, createInstance(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::DeleteAutoSnapshotPolicyOutcomeCallable EcsClient::deleteAutoSnapshotPolicyCallable(const DeleteAutoSnapshotPolicyRequest &request) const +EcsClient::CreateInstanceOutcomeCallable EcsClient::createInstanceCallable(const CreateInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteAutoSnapshotPolicy(request); + return this->createInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -7287,42 +7647,6 @@ EcsClient::DescribeInstanceTypeFamiliesOutcomeCallable EcsClient::describeInstan return task->get_future(); } -EcsClient::CreateForwardEntryOutcome EcsClient::createForwardEntry(const CreateForwardEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateForwardEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateForwardEntryOutcome(CreateForwardEntryResult(outcome.result())); - else - return CreateForwardEntryOutcome(outcome.error()); -} - -void EcsClient::createForwardEntryAsync(const CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createForwardEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::CreateForwardEntryOutcomeCallable EcsClient::createForwardEntryCallable(const CreateForwardEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createForwardEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DescribeRouterInterfacesOutcome EcsClient::describeRouterInterfaces(const DescribeRouterInterfacesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7359,6 +7683,42 @@ EcsClient::DescribeRouterInterfacesOutcomeCallable EcsClient::describeRouterInte return task->get_future(); } +EcsClient::CreateForwardEntryOutcome EcsClient::createForwardEntry(const CreateForwardEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateForwardEntryOutcome(CreateForwardEntryResult(outcome.result())); + else + return CreateForwardEntryOutcome(outcome.error()); +} + +void EcsClient::createForwardEntryAsync(const CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateForwardEntryOutcomeCallable EcsClient::createForwardEntryCallable(const CreateForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeReservedInstancesOutcome EcsClient::describeReservedInstances(const DescribeReservedInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7719,6 +8079,42 @@ EcsClient::EipFillProductOutcomeCallable EcsClient::eipFillProductCallable(const return task->get_future(); } +EcsClient::CreateAutoProvisioningGroupOutcome EcsClient::createAutoProvisioningGroup(const CreateAutoProvisioningGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAutoProvisioningGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAutoProvisioningGroupOutcome(CreateAutoProvisioningGroupResult(outcome.result())); + else + return CreateAutoProvisioningGroupOutcome(outcome.error()); +} + +void EcsClient::createAutoProvisioningGroupAsync(const CreateAutoProvisioningGroupRequest& request, const CreateAutoProvisioningGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAutoProvisioningGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateAutoProvisioningGroupOutcomeCallable EcsClient::createAutoProvisioningGroupCallable(const CreateAutoProvisioningGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAutoProvisioningGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeRouteTablesOutcome EcsClient::describeRouteTables(const DescribeRouteTablesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7755,36 +8151,36 @@ EcsClient::DescribeRouteTablesOutcomeCallable EcsClient::describeRouteTablesCall return task->get_future(); } -EcsClient::ModifyAutoSnapshotPolicyExOutcome EcsClient::modifyAutoSnapshotPolicyEx(const ModifyAutoSnapshotPolicyExRequest &request) const +EcsClient::DescribeUserDataOutcome EcsClient::describeUserData(const DescribeUserDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyAutoSnapshotPolicyExOutcome(endpointOutcome.error()); + return DescribeUserDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyAutoSnapshotPolicyExOutcome(ModifyAutoSnapshotPolicyExResult(outcome.result())); + return DescribeUserDataOutcome(DescribeUserDataResult(outcome.result())); else - return ModifyAutoSnapshotPolicyExOutcome(outcome.error()); + return DescribeUserDataOutcome(outcome.error()); } -void EcsClient::modifyAutoSnapshotPolicyExAsync(const ModifyAutoSnapshotPolicyExRequest& request, const ModifyAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::describeUserDataAsync(const DescribeUserDataRequest& request, const DescribeUserDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyAutoSnapshotPolicyEx(request), context); + handler(this, request, describeUserData(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::ModifyAutoSnapshotPolicyExOutcomeCallable EcsClient::modifyAutoSnapshotPolicyExCallable(const ModifyAutoSnapshotPolicyExRequest &request) const +EcsClient::DescribeUserDataOutcomeCallable EcsClient::describeUserDataCallable(const DescribeUserDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyAutoSnapshotPolicyEx(request); + return this->describeUserData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -7827,36 +8223,72 @@ EcsClient::JoinResourceGroupOutcomeCallable EcsClient::joinResourceGroupCallable return task->get_future(); } -EcsClient::DescribeUserDataOutcome EcsClient::describeUserData(const DescribeUserDataRequest &request) const +EcsClient::ModifyAutoSnapshotPolicyExOutcome EcsClient::modifyAutoSnapshotPolicyEx(const ModifyAutoSnapshotPolicyExRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeUserDataOutcome(endpointOutcome.error()); + return ModifyAutoSnapshotPolicyExOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeUserDataOutcome(DescribeUserDataResult(outcome.result())); + return ModifyAutoSnapshotPolicyExOutcome(ModifyAutoSnapshotPolicyExResult(outcome.result())); else - return DescribeUserDataOutcome(outcome.error()); + return ModifyAutoSnapshotPolicyExOutcome(outcome.error()); } -void EcsClient::describeUserDataAsync(const DescribeUserDataRequest& request, const DescribeUserDataAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::modifyAutoSnapshotPolicyExAsync(const ModifyAutoSnapshotPolicyExRequest& request, const ModifyAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeUserData(request), context); + handler(this, request, modifyAutoSnapshotPolicyEx(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::DescribeUserDataOutcomeCallable EcsClient::describeUserDataCallable(const DescribeUserDataRequest &request) const +EcsClient::ModifyAutoSnapshotPolicyExOutcomeCallable EcsClient::modifyAutoSnapshotPolicyExCallable(const ModifyAutoSnapshotPolicyExRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeUserData(request); + return this->modifyAutoSnapshotPolicyEx(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteStorageSetOutcome EcsClient::deleteStorageSet(const DeleteStorageSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteStorageSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteStorageSetOutcome(DeleteStorageSetResult(outcome.result())); + else + return DeleteStorageSetOutcome(outcome.error()); +} + +void EcsClient::deleteStorageSetAsync(const DeleteStorageSetRequest& request, const DeleteStorageSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteStorageSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteStorageSetOutcomeCallable EcsClient::deleteStorageSetCallable(const DeleteStorageSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteStorageSet(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -8007,6 +8439,42 @@ EcsClient::AssociateHaVipOutcomeCallable EcsClient::associateHaVipCallable(const return task->get_future(); } +EcsClient::DescribeStorageSetDetailsOutcome EcsClient::describeStorageSetDetails(const DescribeStorageSetDetailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStorageSetDetailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStorageSetDetailsOutcome(DescribeStorageSetDetailsResult(outcome.result())); + else + return DescribeStorageSetDetailsOutcome(outcome.error()); +} + +void EcsClient::describeStorageSetDetailsAsync(const DescribeStorageSetDetailsRequest& request, const DescribeStorageSetDetailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStorageSetDetails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeStorageSetDetailsOutcomeCallable EcsClient::describeStorageSetDetailsCallable(const DescribeStorageSetDetailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStorageSetDetails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ConvertNatPublicIpToEipOutcome EcsClient::convertNatPublicIpToEip(const ConvertNatPublicIpToEipRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8079,36 +8547,36 @@ EcsClient::AssignIpv6AddressesOutcomeCallable EcsClient::assignIpv6AddressesCall return task->get_future(); } -EcsClient::DescribeCloudAssistantStatusOutcome EcsClient::describeCloudAssistantStatus(const DescribeCloudAssistantStatusRequest &request) const +EcsClient::DeleteVirtualBorderRouterOutcome EcsClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCloudAssistantStatusOutcome(endpointOutcome.error()); + return DeleteVirtualBorderRouterOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCloudAssistantStatusOutcome(DescribeCloudAssistantStatusResult(outcome.result())); + return DeleteVirtualBorderRouterOutcome(DeleteVirtualBorderRouterResult(outcome.result())); else - return DescribeCloudAssistantStatusOutcome(outcome.error()); + return DeleteVirtualBorderRouterOutcome(outcome.error()); } -void EcsClient::describeCloudAssistantStatusAsync(const DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::deleteVirtualBorderRouterAsync(const DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCloudAssistantStatus(request), context); + handler(this, request, deleteVirtualBorderRouter(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::DescribeCloudAssistantStatusOutcomeCallable EcsClient::describeCloudAssistantStatusCallable(const DescribeCloudAssistantStatusRequest &request) const +EcsClient::DeleteVirtualBorderRouterOutcomeCallable EcsClient::deleteVirtualBorderRouterCallable(const DeleteVirtualBorderRouterRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCloudAssistantStatus(request); + return this->deleteVirtualBorderRouter(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -8151,36 +8619,36 @@ EcsClient::DeleteRouteEntryOutcomeCallable EcsClient::deleteRouteEntryCallable(c return task->get_future(); } -EcsClient::DeleteVirtualBorderRouterOutcome EcsClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const +EcsClient::DescribeCloudAssistantStatusOutcome EcsClient::describeCloudAssistantStatus(const DescribeCloudAssistantStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteVirtualBorderRouterOutcome(endpointOutcome.error()); + return DescribeCloudAssistantStatusOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteVirtualBorderRouterOutcome(DeleteVirtualBorderRouterResult(outcome.result())); + return DescribeCloudAssistantStatusOutcome(DescribeCloudAssistantStatusResult(outcome.result())); else - return DeleteVirtualBorderRouterOutcome(outcome.error()); + return DescribeCloudAssistantStatusOutcome(outcome.error()); } -void EcsClient::deleteVirtualBorderRouterAsync(const DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +void EcsClient::describeCloudAssistantStatusAsync(const DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteVirtualBorderRouter(request), context); + handler(this, request, describeCloudAssistantStatus(request), context); }; asyncExecute(new Runnable(fn)); } -EcsClient::DeleteVirtualBorderRouterOutcomeCallable EcsClient::deleteVirtualBorderRouterCallable(const DeleteVirtualBorderRouterRequest &request) const +EcsClient::DescribeCloudAssistantStatusOutcomeCallable EcsClient::describeCloudAssistantStatusCallable(const DescribeCloudAssistantStatusRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteVirtualBorderRouter(request); + return this->describeCloudAssistantStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -8331,42 +8799,6 @@ EcsClient::AttachNetworkInterfaceOutcomeCallable EcsClient::attachNetworkInterfa return task->get_future(); } -EcsClient::DescribeSecurityGroupAttributeOutcome EcsClient::describeSecurityGroupAttribute(const DescribeSecurityGroupAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSecurityGroupAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSecurityGroupAttributeOutcome(DescribeSecurityGroupAttributeResult(outcome.result())); - else - return DescribeSecurityGroupAttributeOutcome(outcome.error()); -} - -void EcsClient::describeSecurityGroupAttributeAsync(const DescribeSecurityGroupAttributeRequest& request, const DescribeSecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSecurityGroupAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeSecurityGroupAttributeOutcomeCallable EcsClient::describeSecurityGroupAttributeCallable(const DescribeSecurityGroupAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSecurityGroupAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::ModifyImageSharePermissionOutcome EcsClient::modifyImageSharePermission(const ModifyImageSharePermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8403,6 +8835,42 @@ EcsClient::ModifyImageSharePermissionOutcomeCallable EcsClient::modifyImageShare return task->get_future(); } +EcsClient::DescribeSecurityGroupAttributeOutcome EcsClient::describeSecurityGroupAttribute(const DescribeSecurityGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityGroupAttributeOutcome(DescribeSecurityGroupAttributeResult(outcome.result())); + else + return DescribeSecurityGroupAttributeOutcome(outcome.error()); +} + +void EcsClient::describeSecurityGroupAttributeAsync(const DescribeSecurityGroupAttributeRequest& request, const DescribeSecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSecurityGroupAttributeOutcomeCallable EcsClient::describeSecurityGroupAttributeCallable(const DescribeSecurityGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeAutoSnapshotPolicyExOutcome EcsClient::describeAutoSnapshotPolicyEx(const DescribeAutoSnapshotPolicyExRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9015,42 +9483,6 @@ EcsClient::ModifyNetworkInterfaceAttributeOutcomeCallable EcsClient::modifyNetwo return task->get_future(); } -EcsClient::DeleteDiskOutcome EcsClient::deleteDisk(const DeleteDiskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDiskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDiskOutcome(DeleteDiskResult(outcome.result())); - else - return DeleteDiskOutcome(outcome.error()); -} - -void EcsClient::deleteDiskAsync(const DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDisk(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DeleteDiskOutcomeCallable EcsClient::deleteDiskCallable(const DeleteDiskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDisk(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::AllocateEipAddressOutcome EcsClient::allocateEipAddress(const AllocateEipAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9087,6 +9519,42 @@ EcsClient::AllocateEipAddressOutcomeCallable EcsClient::allocateEipAddressCallab return task->get_future(); } +EcsClient::DeleteDiskOutcome EcsClient::deleteDisk(const DeleteDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDiskOutcome(DeleteDiskResult(outcome.result())); + else + return DeleteDiskOutcome(outcome.error()); +} + +void EcsClient::deleteDiskAsync(const DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteDiskOutcomeCallable EcsClient::deleteDiskCallable(const DeleteDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::UnassociateHaVipOutcome EcsClient::unassociateHaVip(const UnassociateHaVipRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ecs/src/model/AcceptInquiredSystemEventRequest.cc b/ecs/src/model/AcceptInquiredSystemEventRequest.cc index e7fd4e513..8173b04bc 100644 --- a/ecs/src/model/AcceptInquiredSystemEventRequest.cc +++ b/ecs/src/model/AcceptInquiredSystemEventRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AcceptInquiredSystemEventRequest; - -AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent") -{} - -AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AcceptInquiredSystemEventRequest; + +AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent") +{} + +AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest() +{} + std::string AcceptInquiredSystemEventRequest::getEventId()const { return eventId_; diff --git a/ecs/src/model/AcceptInquiredSystemEventResult.cc b/ecs/src/model/AcceptInquiredSystemEventResult.cc index 81854621b..7142f2710 100644 --- a/ecs/src/model/AcceptInquiredSystemEventResult.cc +++ b/ecs/src/model/AcceptInquiredSystemEventResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult() : - ServiceResult() -{} - -AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AcceptInquiredSystemEventResult::~AcceptInquiredSystemEventResult() -{} - -void AcceptInquiredSystemEventResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult() : + ServiceResult() +{} + +AcceptInquiredSystemEventResult::AcceptInquiredSystemEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AcceptInquiredSystemEventResult::~AcceptInquiredSystemEventResult() +{} + +void AcceptInquiredSystemEventResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ActivateRouterInterfaceRequest.cc b/ecs/src/model/ActivateRouterInterfaceRequest.cc index a54a6bfbb..43d70b256 100644 --- a/ecs/src/model/ActivateRouterInterfaceRequest.cc +++ b/ecs/src/model/ActivateRouterInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ActivateRouterInterfaceRequest; - -ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface") -{} - -ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ActivateRouterInterfaceRequest; + +ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface") +{} + +ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() +{} + long ActivateRouterInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ActivateRouterInterfaceResult.cc b/ecs/src/model/ActivateRouterInterfaceResult.cc index 8e397d401..c89fe1ff8 100644 --- a/ecs/src/model/ActivateRouterInterfaceResult.cc +++ b/ecs/src/model/ActivateRouterInterfaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ActivateRouterInterfaceResult::ActivateRouterInterfaceResult() : - ServiceResult() -{} - -ActivateRouterInterfaceResult::ActivateRouterInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult() -{} - -void ActivateRouterInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ActivateRouterInterfaceResult::ActivateRouterInterfaceResult() : + ServiceResult() +{} + +ActivateRouterInterfaceResult::ActivateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult() +{} + +void ActivateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AddBandwidthPackageIpsRequest.cc b/ecs/src/model/AddBandwidthPackageIpsRequest.cc index 9c97a8791..424e6c8c3 100644 --- a/ecs/src/model/AddBandwidthPackageIpsRequest.cc +++ b/ecs/src/model/AddBandwidthPackageIpsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AddBandwidthPackageIpsRequest; - -AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps") -{} - -AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AddBandwidthPackageIpsRequest; + +AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps") +{} + +AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() +{} + long AddBandwidthPackageIpsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/AddBandwidthPackageIpsResult.cc b/ecs/src/model/AddBandwidthPackageIpsResult.cc index 37b244abf..d279f3f3d 100644 --- a/ecs/src/model/AddBandwidthPackageIpsResult.cc +++ b/ecs/src/model/AddBandwidthPackageIpsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() : - ServiceResult() -{} - -AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult() -{} - -void AddBandwidthPackageIpsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() : + ServiceResult() +{} + +AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult() +{} + +void AddBandwidthPackageIpsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AddTagsRequest.cc b/ecs/src/model/AddTagsRequest.cc index 8907b76ee..38fe0b022 100644 --- a/ecs/src/model/AddTagsRequest.cc +++ b/ecs/src/model/AddTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AddTagsRequest; - -AddTagsRequest::AddTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AddTags") -{} - -AddTagsRequest::~AddTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AddTagsRequest; + +AddTagsRequest::AddTagsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AddTags") +{} + +AddTagsRequest::~AddTagsRequest() +{} + std::string AddTagsRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/AddTagsResult.cc b/ecs/src/model/AddTagsResult.cc index 96e4b0e94..e3e24ae77 100644 --- a/ecs/src/model/AddTagsResult.cc +++ b/ecs/src/model/AddTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AddTagsResult::AddTagsResult() : - ServiceResult() -{} - -AddTagsResult::AddTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddTagsResult::~AddTagsResult() -{} - -void AddTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddTagsResult::AddTagsResult() : + ServiceResult() +{} + +AddTagsResult::AddTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTagsResult::~AddTagsResult() +{} + +void AddTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AllocateDedicatedHostsRequest.cc b/ecs/src/model/AllocateDedicatedHostsRequest.cc index 2748bb9ab..2fcc2d5b6 100644 --- a/ecs/src/model/AllocateDedicatedHostsRequest.cc +++ b/ecs/src/model/AllocateDedicatedHostsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AllocateDedicatedHostsRequest; - -AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts") -{} - -AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AllocateDedicatedHostsRequest; + +AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts") +{} + +AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest() +{} + long AllocateDedicatedHostsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/AllocateDedicatedHostsResult.cc b/ecs/src/model/AllocateDedicatedHostsResult.cc index a27a331ae..64aa2ad7a 100644 --- a/ecs/src/model/AllocateDedicatedHostsResult.cc +++ b/ecs/src/model/AllocateDedicatedHostsResult.cc @@ -1,51 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AllocateDedicatedHostsResult::AllocateDedicatedHostsResult() : - ServiceResult() -{} - -AllocateDedicatedHostsResult::AllocateDedicatedHostsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AllocateDedicatedHostsResult::~AllocateDedicatedHostsResult() -{} - -void AllocateDedicatedHostsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AllocateDedicatedHostsResult::AllocateDedicatedHostsResult() : + ServiceResult() +{} + +AllocateDedicatedHostsResult::AllocateDedicatedHostsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateDedicatedHostsResult::~AllocateDedicatedHostsResult() +{} + +void AllocateDedicatedHostsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDedicatedHostIdSets = value["DedicatedHostIdSets"]["DedicatedHostId"]; for (const auto &item : allDedicatedHostIdSets) dedicatedHostIdSets_.push_back(item.asString()); - -} - + +} + std::vector AllocateDedicatedHostsResult::getDedicatedHostIdSets()const { return dedicatedHostIdSets_; diff --git a/ecs/src/model/AllocateEipAddressRequest.cc b/ecs/src/model/AllocateEipAddressRequest.cc index 856b30678..12770ecbe 100644 --- a/ecs/src/model/AllocateEipAddressRequest.cc +++ b/ecs/src/model/AllocateEipAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AllocateEipAddressRequest; - -AllocateEipAddressRequest::AllocateEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress") -{} - -AllocateEipAddressRequest::~AllocateEipAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AllocateEipAddressRequest; + +AllocateEipAddressRequest::AllocateEipAddressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress") +{} + +AllocateEipAddressRequest::~AllocateEipAddressRequest() +{} + long AllocateEipAddressRequest::getActivityId()const { return activityId_; diff --git a/ecs/src/model/AllocateEipAddressResult.cc b/ecs/src/model/AllocateEipAddressResult.cc index 9b2d918f8..5e1b90d2e 100644 --- a/ecs/src/model/AllocateEipAddressResult.cc +++ b/ecs/src/model/AllocateEipAddressResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AllocateEipAddressResult::AllocateEipAddressResult() : - ServiceResult() -{} - -AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AllocateEipAddressResult::~AllocateEipAddressResult() -{} - -void AllocateEipAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AllocateEipAddressResult::AllocateEipAddressResult() : + ServiceResult() +{} + +AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateEipAddressResult::~AllocateEipAddressResult() +{} + +void AllocateEipAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AllocationId"].isNull()) allocationId_ = value["AllocationId"].asString(); if(!value["EipAddress"].isNull()) eipAddress_ = value["EipAddress"].asString(); - -} - + +} + std::string AllocateEipAddressResult::getAllocationId()const { return allocationId_; diff --git a/ecs/src/model/AllocatePublicIpAddressRequest.cc b/ecs/src/model/AllocatePublicIpAddressRequest.cc index bc14ffc8b..e2d932509 100644 --- a/ecs/src/model/AllocatePublicIpAddressRequest.cc +++ b/ecs/src/model/AllocatePublicIpAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AllocatePublicIpAddressRequest; - -AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress") -{} - -AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AllocatePublicIpAddressRequest; + +AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress") +{} + +AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest() +{} + std::string AllocatePublicIpAddressRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/AllocatePublicIpAddressResult.cc b/ecs/src/model/AllocatePublicIpAddressResult.cc index 06120ca0a..08dc36447 100644 --- a/ecs/src/model/AllocatePublicIpAddressResult.cc +++ b/ecs/src/model/AllocatePublicIpAddressResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AllocatePublicIpAddressResult::AllocatePublicIpAddressResult() : - ServiceResult() -{} - -AllocatePublicIpAddressResult::AllocatePublicIpAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AllocatePublicIpAddressResult::~AllocatePublicIpAddressResult() -{} - -void AllocatePublicIpAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AllocatePublicIpAddressResult::AllocatePublicIpAddressResult() : + ServiceResult() +{} + +AllocatePublicIpAddressResult::AllocatePublicIpAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocatePublicIpAddressResult::~AllocatePublicIpAddressResult() +{} + +void AllocatePublicIpAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["IpAddress"].isNull()) ipAddress_ = value["IpAddress"].asString(); - -} - + +} + std::string AllocatePublicIpAddressResult::getIpAddress()const { return ipAddress_; diff --git a/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc b/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc index 62177325c..4941c0cfb 100644 --- a/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ApplyAutoSnapshotPolicyRequest; - -ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy") -{} - -ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ApplyAutoSnapshotPolicyRequest; + +ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy") +{} + +ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest() +{} + std::string ApplyAutoSnapshotPolicyRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ApplyAutoSnapshotPolicyResult.cc b/ecs/src/model/ApplyAutoSnapshotPolicyResult.cc index a3e76003e..eabc01e14 100644 --- a/ecs/src/model/ApplyAutoSnapshotPolicyResult.cc +++ b/ecs/src/model/ApplyAutoSnapshotPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult() : - ServiceResult() -{} - -ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ApplyAutoSnapshotPolicyResult::~ApplyAutoSnapshotPolicyResult() -{} - -void ApplyAutoSnapshotPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult() : + ServiceResult() +{} + +ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyAutoSnapshotPolicyResult::~ApplyAutoSnapshotPolicyResult() +{} + +void ApplyAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AssignIpv6AddressesRequest.cc b/ecs/src/model/AssignIpv6AddressesRequest.cc index 6b7989a71..aebd924e1 100644 --- a/ecs/src/model/AssignIpv6AddressesRequest.cc +++ b/ecs/src/model/AssignIpv6AddressesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AssignIpv6AddressesRequest; - -AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses") -{} - -AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AssignIpv6AddressesRequest; + +AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses") +{} + +AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest() +{} + long AssignIpv6AddressesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/AssignIpv6AddressesResult.cc b/ecs/src/model/AssignIpv6AddressesResult.cc index 6ad81960c..298acd006 100644 --- a/ecs/src/model/AssignIpv6AddressesResult.cc +++ b/ecs/src/model/AssignIpv6AddressesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AssignIpv6AddressesResult::AssignIpv6AddressesResult() : - ServiceResult() -{} - -AssignIpv6AddressesResult::AssignIpv6AddressesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AssignIpv6AddressesResult::~AssignIpv6AddressesResult() -{} - -void AssignIpv6AddressesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssignIpv6AddressesResult::AssignIpv6AddressesResult() : + ServiceResult() +{} + +AssignIpv6AddressesResult::AssignIpv6AddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignIpv6AddressesResult::~AssignIpv6AddressesResult() +{} + +void AssignIpv6AddressesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AssignPrivateIpAddressesRequest.cc b/ecs/src/model/AssignPrivateIpAddressesRequest.cc index 841b0582c..541219146 100644 --- a/ecs/src/model/AssignPrivateIpAddressesRequest.cc +++ b/ecs/src/model/AssignPrivateIpAddressesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AssignPrivateIpAddressesRequest; - -AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses") -{} - -AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AssignPrivateIpAddressesRequest; + +AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses") +{} + +AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest() +{} + long AssignPrivateIpAddressesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/AssignPrivateIpAddressesResult.cc b/ecs/src/model/AssignPrivateIpAddressesResult.cc index a148ac3a3..f9adbf72d 100644 --- a/ecs/src/model/AssignPrivateIpAddressesResult.cc +++ b/ecs/src/model/AssignPrivateIpAddressesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult() : - ServiceResult() -{} - -AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AssignPrivateIpAddressesResult::~AssignPrivateIpAddressesResult() -{} - -void AssignPrivateIpAddressesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult() : + ServiceResult() +{} + +AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignPrivateIpAddressesResult::~AssignPrivateIpAddressesResult() +{} + +void AssignPrivateIpAddressesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AssociateEipAddressRequest.cc b/ecs/src/model/AssociateEipAddressRequest.cc index ba416e6ad..1d8626303 100644 --- a/ecs/src/model/AssociateEipAddressRequest.cc +++ b/ecs/src/model/AssociateEipAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AssociateEipAddressRequest; - -AssociateEipAddressRequest::AssociateEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress") -{} - -AssociateEipAddressRequest::~AssociateEipAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AssociateEipAddressRequest; + +AssociateEipAddressRequest::AssociateEipAddressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress") +{} + +AssociateEipAddressRequest::~AssociateEipAddressRequest() +{} + long AssociateEipAddressRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/AssociateEipAddressResult.cc b/ecs/src/model/AssociateEipAddressResult.cc index fc6f380e0..f4729c26b 100644 --- a/ecs/src/model/AssociateEipAddressResult.cc +++ b/ecs/src/model/AssociateEipAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AssociateEipAddressResult::AssociateEipAddressResult() : - ServiceResult() -{} - -AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AssociateEipAddressResult::~AssociateEipAddressResult() -{} - -void AssociateEipAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssociateEipAddressResult::AssociateEipAddressResult() : + ServiceResult() +{} + +AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateEipAddressResult::~AssociateEipAddressResult() +{} + +void AssociateEipAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AssociateHaVipRequest.cc b/ecs/src/model/AssociateHaVipRequest.cc index 43c084988..4b0bd35e8 100644 --- a/ecs/src/model/AssociateHaVipRequest.cc +++ b/ecs/src/model/AssociateHaVipRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AssociateHaVipRequest; - -AssociateHaVipRequest::AssociateHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip") -{} - -AssociateHaVipRequest::~AssociateHaVipRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AssociateHaVipRequest; + +AssociateHaVipRequest::AssociateHaVipRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip") +{} + +AssociateHaVipRequest::~AssociateHaVipRequest() +{} + std::string AssociateHaVipRequest::getHaVipId()const { return haVipId_; diff --git a/ecs/src/model/AssociateHaVipResult.cc b/ecs/src/model/AssociateHaVipResult.cc index 2d92302db..3b9bee84b 100644 --- a/ecs/src/model/AssociateHaVipResult.cc +++ b/ecs/src/model/AssociateHaVipResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AssociateHaVipResult::AssociateHaVipResult() : - ServiceResult() -{} - -AssociateHaVipResult::AssociateHaVipResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AssociateHaVipResult::~AssociateHaVipResult() -{} - -void AssociateHaVipResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssociateHaVipResult::AssociateHaVipResult() : + ServiceResult() +{} + +AssociateHaVipResult::AssociateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateHaVipResult::~AssociateHaVipResult() +{} + +void AssociateHaVipResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AttachClassicLinkVpcRequest.cc b/ecs/src/model/AttachClassicLinkVpcRequest.cc index 8518248bd..511c3ca78 100644 --- a/ecs/src/model/AttachClassicLinkVpcRequest.cc +++ b/ecs/src/model/AttachClassicLinkVpcRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AttachClassicLinkVpcRequest; - -AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc") -{} - -AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AttachClassicLinkVpcRequest; + +AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc") +{} + +AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest() +{} + std::string AttachClassicLinkVpcRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/AttachClassicLinkVpcResult.cc b/ecs/src/model/AttachClassicLinkVpcResult.cc index 370dc23c4..dff20d1ed 100644 --- a/ecs/src/model/AttachClassicLinkVpcResult.cc +++ b/ecs/src/model/AttachClassicLinkVpcResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AttachClassicLinkVpcResult::AttachClassicLinkVpcResult() : - ServiceResult() -{} - -AttachClassicLinkVpcResult::AttachClassicLinkVpcResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachClassicLinkVpcResult::~AttachClassicLinkVpcResult() -{} - -void AttachClassicLinkVpcResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachClassicLinkVpcResult::AttachClassicLinkVpcResult() : + ServiceResult() +{} + +AttachClassicLinkVpcResult::AttachClassicLinkVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachClassicLinkVpcResult::~AttachClassicLinkVpcResult() +{} + +void AttachClassicLinkVpcResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AttachDiskRequest.cc b/ecs/src/model/AttachDiskRequest.cc index 55699ce3a..aba462db3 100644 --- a/ecs/src/model/AttachDiskRequest.cc +++ b/ecs/src/model/AttachDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AttachDiskRequest; - -AttachDiskRequest::AttachDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachDisk") -{} - -AttachDiskRequest::~AttachDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AttachDiskRequest; + +AttachDiskRequest::AttachDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AttachDisk") +{} + +AttachDiskRequest::~AttachDiskRequest() +{} + std::string AttachDiskRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/AttachDiskResult.cc b/ecs/src/model/AttachDiskResult.cc index eab09bc03..68e8d67af 100644 --- a/ecs/src/model/AttachDiskResult.cc +++ b/ecs/src/model/AttachDiskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AttachDiskResult::AttachDiskResult() : - ServiceResult() -{} - -AttachDiskResult::AttachDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachDiskResult::~AttachDiskResult() -{} - -void AttachDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachDiskResult::AttachDiskResult() : + ServiceResult() +{} + +AttachDiskResult::AttachDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachDiskResult::~AttachDiskResult() +{} + +void AttachDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AttachInstanceRamRoleRequest.cc b/ecs/src/model/AttachInstanceRamRoleRequest.cc index 63b115a54..a063d4b75 100644 --- a/ecs/src/model/AttachInstanceRamRoleRequest.cc +++ b/ecs/src/model/AttachInstanceRamRoleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AttachInstanceRamRoleRequest; - -AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole") -{} - -AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AttachInstanceRamRoleRequest; + +AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole") +{} + +AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest() +{} + std::string AttachInstanceRamRoleRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/AttachInstanceRamRoleResult.cc b/ecs/src/model/AttachInstanceRamRoleResult.cc index 3ffb971cf..07918f281 100644 --- a/ecs/src/model/AttachInstanceRamRoleResult.cc +++ b/ecs/src/model/AttachInstanceRamRoleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AttachInstanceRamRoleResult::AttachInstanceRamRoleResult() : - ServiceResult() -{} - -AttachInstanceRamRoleResult::AttachInstanceRamRoleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachInstanceRamRoleResult::~AttachInstanceRamRoleResult() -{} - -void AttachInstanceRamRoleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachInstanceRamRoleResult::AttachInstanceRamRoleResult() : + ServiceResult() +{} + +AttachInstanceRamRoleResult::AttachInstanceRamRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachInstanceRamRoleResult::~AttachInstanceRamRoleResult() +{} + +void AttachInstanceRamRoleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAttachInstanceRamRoleResults = value["AttachInstanceRamRoleResults"]["AttachInstanceRamRoleResult"]; for (auto value : allAttachInstanceRamRoleResults) { @@ -60,9 +63,9 @@ void AttachInstanceRamRoleResult::parse(const std::string &payload) failCount_ = std::stoi(value["FailCount"].asString()); if(!value["RamRoleName"].isNull()) ramRoleName_ = value["RamRoleName"].asString(); - -} - + +} + std::vector AttachInstanceRamRoleResult::getAttachInstanceRamRoleResults()const { return attachInstanceRamRoleResults_; diff --git a/ecs/src/model/AttachKeyPairRequest.cc b/ecs/src/model/AttachKeyPairRequest.cc index 912041894..11a2eaceb 100644 --- a/ecs/src/model/AttachKeyPairRequest.cc +++ b/ecs/src/model/AttachKeyPairRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AttachKeyPairRequest; - -AttachKeyPairRequest::AttachKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair") -{} - -AttachKeyPairRequest::~AttachKeyPairRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AttachKeyPairRequest; + +AttachKeyPairRequest::AttachKeyPairRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair") +{} + +AttachKeyPairRequest::~AttachKeyPairRequest() +{} + std::string AttachKeyPairRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/AttachKeyPairResult.cc b/ecs/src/model/AttachKeyPairResult.cc index ace793026..f2643c38b 100644 --- a/ecs/src/model/AttachKeyPairResult.cc +++ b/ecs/src/model/AttachKeyPairResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AttachKeyPairResult::AttachKeyPairResult() : - ServiceResult() -{} - -AttachKeyPairResult::AttachKeyPairResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachKeyPairResult::~AttachKeyPairResult() -{} - -void AttachKeyPairResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachKeyPairResult::AttachKeyPairResult() : + ServiceResult() +{} + +AttachKeyPairResult::AttachKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachKeyPairResult::~AttachKeyPairResult() +{} + +void AttachKeyPairResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) { @@ -60,9 +63,9 @@ void AttachKeyPairResult::parse(const std::string &payload) failCount_ = value["FailCount"].asString(); if(!value["KeyPairName"].isNull()) keyPairName_ = value["KeyPairName"].asString(); - -} - + +} + std::string AttachKeyPairResult::getKeyPairName()const { return keyPairName_; diff --git a/ecs/src/model/AttachNetworkInterfaceRequest.cc b/ecs/src/model/AttachNetworkInterfaceRequest.cc index 6049634b0..25ad5d33e 100644 --- a/ecs/src/model/AttachNetworkInterfaceRequest.cc +++ b/ecs/src/model/AttachNetworkInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AttachNetworkInterfaceRequest; - -AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface") -{} - -AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AttachNetworkInterfaceRequest; + +AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface") +{} + +AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest() +{} + long AttachNetworkInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/AttachNetworkInterfaceResult.cc b/ecs/src/model/AttachNetworkInterfaceResult.cc index 3cd1b311c..4609233f5 100644 --- a/ecs/src/model/AttachNetworkInterfaceResult.cc +++ b/ecs/src/model/AttachNetworkInterfaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AttachNetworkInterfaceResult::AttachNetworkInterfaceResult() : - ServiceResult() -{} - -AttachNetworkInterfaceResult::AttachNetworkInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachNetworkInterfaceResult::~AttachNetworkInterfaceResult() -{} - -void AttachNetworkInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachNetworkInterfaceResult::AttachNetworkInterfaceResult() : + ServiceResult() +{} + +AttachNetworkInterfaceResult::AttachNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachNetworkInterfaceResult::~AttachNetworkInterfaceResult() +{} + +void AttachNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc index c1a0de59b..9cad98b02 100644 --- a/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc +++ b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AuthorizeSecurityGroupEgressRequest; - -AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress") -{} - -AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AuthorizeSecurityGroupEgressRequest; + +AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress") +{} + +AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() +{} + std::string AuthorizeSecurityGroupEgressRequest::getNicType()const { return nicType_; diff --git a/ecs/src/model/AuthorizeSecurityGroupEgressResult.cc b/ecs/src/model/AuthorizeSecurityGroupEgressResult.cc index e4a6c58fd..c5e9edc8c 100644 --- a/ecs/src/model/AuthorizeSecurityGroupEgressResult.cc +++ b/ecs/src/model/AuthorizeSecurityGroupEgressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult() : - ServiceResult() -{} - -AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AuthorizeSecurityGroupEgressResult::~AuthorizeSecurityGroupEgressResult() -{} - -void AuthorizeSecurityGroupEgressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult() : + ServiceResult() +{} + +AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AuthorizeSecurityGroupEgressResult::~AuthorizeSecurityGroupEgressResult() +{} + +void AuthorizeSecurityGroupEgressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AuthorizeSecurityGroupRequest.cc b/ecs/src/model/AuthorizeSecurityGroupRequest.cc index aee623055..e81d2d048 100644 --- a/ecs/src/model/AuthorizeSecurityGroupRequest.cc +++ b/ecs/src/model/AuthorizeSecurityGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::AuthorizeSecurityGroupRequest; - -AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup") -{} - -AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::AuthorizeSecurityGroupRequest; + +AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup") +{} + +AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() +{} + std::string AuthorizeSecurityGroupRequest::getNicType()const { return nicType_; diff --git a/ecs/src/model/AuthorizeSecurityGroupResult.cc b/ecs/src/model/AuthorizeSecurityGroupResult.cc index aa87b104c..ce2970662 100644 --- a/ecs/src/model/AuthorizeSecurityGroupResult.cc +++ b/ecs/src/model/AuthorizeSecurityGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult() : - ServiceResult() -{} - -AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult() -{} - -void AuthorizeSecurityGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult() : + ServiceResult() +{} + +AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult() +{} + +void AuthorizeSecurityGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc b/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc index 70e916a46..dedb80619 100644 --- a/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CancelAutoSnapshotPolicyRequest; - -CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy") -{} - -CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CancelAutoSnapshotPolicyRequest; + +CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy") +{} + +CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest() +{} + std::string CancelAutoSnapshotPolicyRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/CancelAutoSnapshotPolicyResult.cc b/ecs/src/model/CancelAutoSnapshotPolicyResult.cc index 741c4d409..11f659bac 100644 --- a/ecs/src/model/CancelAutoSnapshotPolicyResult.cc +++ b/ecs/src/model/CancelAutoSnapshotPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult() : - ServiceResult() -{} - -CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelAutoSnapshotPolicyResult::~CancelAutoSnapshotPolicyResult() -{} - -void CancelAutoSnapshotPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult() : + ServiceResult() +{} + +CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelAutoSnapshotPolicyResult::~CancelAutoSnapshotPolicyResult() +{} + +void CancelAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelCopyImageRequest.cc b/ecs/src/model/CancelCopyImageRequest.cc index b932f8c70..d29fcd240 100644 --- a/ecs/src/model/CancelCopyImageRequest.cc +++ b/ecs/src/model/CancelCopyImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CancelCopyImageRequest; - -CancelCopyImageRequest::CancelCopyImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage") -{} - -CancelCopyImageRequest::~CancelCopyImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CancelCopyImageRequest; + +CancelCopyImageRequest::CancelCopyImageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage") +{} + +CancelCopyImageRequest::~CancelCopyImageRequest() +{} + std::string CancelCopyImageRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/CancelCopyImageResult.cc b/ecs/src/model/CancelCopyImageResult.cc index c51737a07..d225a6f04 100644 --- a/ecs/src/model/CancelCopyImageResult.cc +++ b/ecs/src/model/CancelCopyImageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CancelCopyImageResult::CancelCopyImageResult() : - ServiceResult() -{} - -CancelCopyImageResult::CancelCopyImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelCopyImageResult::~CancelCopyImageResult() -{} - -void CancelCopyImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelCopyImageResult::CancelCopyImageResult() : + ServiceResult() +{} + +CancelCopyImageResult::CancelCopyImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelCopyImageResult::~CancelCopyImageResult() +{} + +void CancelCopyImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelPhysicalConnectionRequest.cc b/ecs/src/model/CancelPhysicalConnectionRequest.cc index 69f8408bd..26815434e 100644 --- a/ecs/src/model/CancelPhysicalConnectionRequest.cc +++ b/ecs/src/model/CancelPhysicalConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CancelPhysicalConnectionRequest; - -CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection") -{} - -CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CancelPhysicalConnectionRequest; + +CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection") +{} + +CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() +{} + long CancelPhysicalConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CancelPhysicalConnectionResult.cc b/ecs/src/model/CancelPhysicalConnectionResult.cc index 7fb63e2ff..c6d347e67 100644 --- a/ecs/src/model/CancelPhysicalConnectionResult.cc +++ b/ecs/src/model/CancelPhysicalConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CancelPhysicalConnectionResult::CancelPhysicalConnectionResult() : - ServiceResult() -{} - -CancelPhysicalConnectionResult::CancelPhysicalConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult() -{} - -void CancelPhysicalConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelPhysicalConnectionResult::CancelPhysicalConnectionResult() : + ServiceResult() +{} + +CancelPhysicalConnectionResult::CancelPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult() +{} + +void CancelPhysicalConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelSimulatedSystemEventsRequest.cc b/ecs/src/model/CancelSimulatedSystemEventsRequest.cc index 3227e76fd..b0bb026df 100644 --- a/ecs/src/model/CancelSimulatedSystemEventsRequest.cc +++ b/ecs/src/model/CancelSimulatedSystemEventsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CancelSimulatedSystemEventsRequest; - -CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents") -{} - -CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CancelSimulatedSystemEventsRequest; + +CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents") +{} + +CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest() +{} + std::vector CancelSimulatedSystemEventsRequest::getEventId()const { return eventId_; diff --git a/ecs/src/model/CancelSimulatedSystemEventsResult.cc b/ecs/src/model/CancelSimulatedSystemEventsResult.cc index eaec154b9..e1e61974f 100644 --- a/ecs/src/model/CancelSimulatedSystemEventsResult.cc +++ b/ecs/src/model/CancelSimulatedSystemEventsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult() : - ServiceResult() -{} - -CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelSimulatedSystemEventsResult::~CancelSimulatedSystemEventsResult() -{} - -void CancelSimulatedSystemEventsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult() : + ServiceResult() +{} + +CancelSimulatedSystemEventsResult::CancelSimulatedSystemEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelSimulatedSystemEventsResult::~CancelSimulatedSystemEventsResult() +{} + +void CancelSimulatedSystemEventsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelTaskRequest.cc b/ecs/src/model/CancelTaskRequest.cc index af5e70307..502cbc7e5 100644 --- a/ecs/src/model/CancelTaskRequest.cc +++ b/ecs/src/model/CancelTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CancelTaskRequest; - -CancelTaskRequest::CancelTaskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelTask") -{} - -CancelTaskRequest::~CancelTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CancelTaskRequest; + +CancelTaskRequest::CancelTaskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CancelTask") +{} + +CancelTaskRequest::~CancelTaskRequest() +{} + std::string CancelTaskRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/CancelTaskResult.cc b/ecs/src/model/CancelTaskResult.cc index 81d4616ea..5031fe378 100644 --- a/ecs/src/model/CancelTaskResult.cc +++ b/ecs/src/model/CancelTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CancelTaskResult::CancelTaskResult() : - ServiceResult() -{} - -CancelTaskResult::CancelTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelTaskResult::~CancelTaskResult() -{} - -void CancelTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelTaskResult::CancelTaskResult() : + ServiceResult() +{} + +CancelTaskResult::CancelTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelTaskResult::~CancelTaskResult() +{} + +void CancelTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ConnectRouterInterfaceRequest.cc b/ecs/src/model/ConnectRouterInterfaceRequest.cc index 068df20aa..9f54e0980 100644 --- a/ecs/src/model/ConnectRouterInterfaceRequest.cc +++ b/ecs/src/model/ConnectRouterInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ConnectRouterInterfaceRequest; - -ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface") -{} - -ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ConnectRouterInterfaceRequest; + +ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface") +{} + +ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() +{} + long ConnectRouterInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ConnectRouterInterfaceResult.cc b/ecs/src/model/ConnectRouterInterfaceResult.cc index 3eab11c7f..3017690ad 100644 --- a/ecs/src/model/ConnectRouterInterfaceResult.cc +++ b/ecs/src/model/ConnectRouterInterfaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ConnectRouterInterfaceResult::ConnectRouterInterfaceResult() : - ServiceResult() -{} - -ConnectRouterInterfaceResult::ConnectRouterInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult() -{} - -void ConnectRouterInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ConnectRouterInterfaceResult::ConnectRouterInterfaceResult() : + ServiceResult() +{} + +ConnectRouterInterfaceResult::ConnectRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult() +{} + +void ConnectRouterInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ConvertNatPublicIpToEipRequest.cc b/ecs/src/model/ConvertNatPublicIpToEipRequest.cc index 307f9977a..2a2f84905 100644 --- a/ecs/src/model/ConvertNatPublicIpToEipRequest.cc +++ b/ecs/src/model/ConvertNatPublicIpToEipRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ConvertNatPublicIpToEipRequest; - -ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip") -{} - -ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ConvertNatPublicIpToEipRequest; + +ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip") +{} + +ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest() +{} + long ConvertNatPublicIpToEipRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ConvertNatPublicIpToEipResult.cc b/ecs/src/model/ConvertNatPublicIpToEipResult.cc index e6d60d930..361823515 100644 --- a/ecs/src/model/ConvertNatPublicIpToEipResult.cc +++ b/ecs/src/model/ConvertNatPublicIpToEipResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult() : - ServiceResult() -{} - -ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConvertNatPublicIpToEipResult::~ConvertNatPublicIpToEipResult() -{} - -void ConvertNatPublicIpToEipResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult() : + ServiceResult() +{} + +ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConvertNatPublicIpToEipResult::~ConvertNatPublicIpToEipResult() +{} + +void ConvertNatPublicIpToEipResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CopyImageRequest.cc b/ecs/src/model/CopyImageRequest.cc index 21a09f9b4..da4bcee88 100644 --- a/ecs/src/model/CopyImageRequest.cc +++ b/ecs/src/model/CopyImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CopyImageRequest; - -CopyImageRequest::CopyImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CopyImage") -{} - -CopyImageRequest::~CopyImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CopyImageRequest; + +CopyImageRequest::CopyImageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CopyImage") +{} + +CopyImageRequest::~CopyImageRequest() +{} + long CopyImageRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CopyImageResult.cc b/ecs/src/model/CopyImageResult.cc index c4bfcd410..9e1b17f44 100644 --- a/ecs/src/model/CopyImageResult.cc +++ b/ecs/src/model/CopyImageResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CopyImageResult::CopyImageResult() : - ServiceResult() -{} - -CopyImageResult::CopyImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CopyImageResult::~CopyImageResult() -{} - -void CopyImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CopyImageResult::CopyImageResult() : + ServiceResult() +{} + +CopyImageResult::CopyImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyImageResult::~CopyImageResult() +{} + +void CopyImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); - -} - + +} + std::string CopyImageResult::getImageId()const { return imageId_; diff --git a/ecs/src/model/CreateAutoProvisioningGroupRequest.cc b/ecs/src/model/CreateAutoProvisioningGroupRequest.cc index ae744e674..fb4ec3ce3 100644 --- a/ecs/src/model/CreateAutoProvisioningGroupRequest.cc +++ b/ecs/src/model/CreateAutoProvisioningGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateAutoProvisioningGroupRequest; - -CreateAutoProvisioningGroupRequest::CreateAutoProvisioningGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateAutoProvisioningGroup") -{} - -CreateAutoProvisioningGroupRequest::~CreateAutoProvisioningGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateAutoProvisioningGroupRequest; + +CreateAutoProvisioningGroupRequest::CreateAutoProvisioningGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateAutoProvisioningGroup") +{} + +CreateAutoProvisioningGroupRequest::~CreateAutoProvisioningGroupRequest() +{} + long CreateAutoProvisioningGroupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateAutoProvisioningGroupResult.cc b/ecs/src/model/CreateAutoProvisioningGroupResult.cc index 917526987..abfedc0d4 100644 --- a/ecs/src/model/CreateAutoProvisioningGroupResult.cc +++ b/ecs/src/model/CreateAutoProvisioningGroupResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateAutoProvisioningGroupResult::CreateAutoProvisioningGroupResult() : - ServiceResult() -{} - -CreateAutoProvisioningGroupResult::CreateAutoProvisioningGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAutoProvisioningGroupResult::~CreateAutoProvisioningGroupResult() -{} - -void CreateAutoProvisioningGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateAutoProvisioningGroupResult::CreateAutoProvisioningGroupResult() : + ServiceResult() +{} + +CreateAutoProvisioningGroupResult::CreateAutoProvisioningGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAutoProvisioningGroupResult::~CreateAutoProvisioningGroupResult() +{} + +void CreateAutoProvisioningGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AutoProvisioningGroupId"].isNull()) autoProvisioningGroupId_ = value["AutoProvisioningGroupId"].asString(); - -} - + +} + std::string CreateAutoProvisioningGroupResult::getAutoProvisioningGroupId()const { return autoProvisioningGroupId_; diff --git a/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc index c33e4e821..13932b65f 100644 --- a/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateAutoSnapshotPolicyRequest; - -CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy") -{} - -CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateAutoSnapshotPolicyRequest; + +CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy") +{} + +CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest() +{} + std::string CreateAutoSnapshotPolicyRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/CreateAutoSnapshotPolicyResult.cc b/ecs/src/model/CreateAutoSnapshotPolicyResult.cc index 127e8e356..192d1393c 100644 --- a/ecs/src/model/CreateAutoSnapshotPolicyResult.cc +++ b/ecs/src/model/CreateAutoSnapshotPolicyResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult() : - ServiceResult() -{} - -CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAutoSnapshotPolicyResult::~CreateAutoSnapshotPolicyResult() -{} - -void CreateAutoSnapshotPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult() : + ServiceResult() +{} + +CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAutoSnapshotPolicyResult::~CreateAutoSnapshotPolicyResult() +{} + +void CreateAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AutoSnapshotPolicyId"].isNull()) autoSnapshotPolicyId_ = value["AutoSnapshotPolicyId"].asString(); - -} - + +} + std::string CreateAutoSnapshotPolicyResult::getAutoSnapshotPolicyId()const { return autoSnapshotPolicyId_; diff --git a/ecs/src/model/CreateCommandRequest.cc b/ecs/src/model/CreateCommandRequest.cc index 363754bb7..b57a07628 100644 --- a/ecs/src/model/CreateCommandRequest.cc +++ b/ecs/src/model/CreateCommandRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateCommandRequest; - -CreateCommandRequest::CreateCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateCommand") -{} - -CreateCommandRequest::~CreateCommandRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateCommandRequest; + +CreateCommandRequest::CreateCommandRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateCommand") +{} + +CreateCommandRequest::~CreateCommandRequest() +{} + long CreateCommandRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateCommandResult.cc b/ecs/src/model/CreateCommandResult.cc index 815668aac..08a44ebb3 100644 --- a/ecs/src/model/CreateCommandResult.cc +++ b/ecs/src/model/CreateCommandResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateCommandResult::CreateCommandResult() : - ServiceResult() -{} - -CreateCommandResult::CreateCommandResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCommandResult::~CreateCommandResult() -{} - -void CreateCommandResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateCommandResult::CreateCommandResult() : + ServiceResult() +{} + +CreateCommandResult::CreateCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCommandResult::~CreateCommandResult() +{} + +void CreateCommandResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["CommandId"].isNull()) commandId_ = value["CommandId"].asString(); - -} - + +} + std::string CreateCommandResult::getCommandId()const { return commandId_; diff --git a/ecs/src/model/CreateDeploymentSetRequest.cc b/ecs/src/model/CreateDeploymentSetRequest.cc index d5cbfefec..7764b149e 100644 --- a/ecs/src/model/CreateDeploymentSetRequest.cc +++ b/ecs/src/model/CreateDeploymentSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateDeploymentSetRequest; - -CreateDeploymentSetRequest::CreateDeploymentSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet") -{} - -CreateDeploymentSetRequest::~CreateDeploymentSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateDeploymentSetRequest; + +CreateDeploymentSetRequest::CreateDeploymentSetRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet") +{} + +CreateDeploymentSetRequest::~CreateDeploymentSetRequest() +{} + long CreateDeploymentSetRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateDeploymentSetResult.cc b/ecs/src/model/CreateDeploymentSetResult.cc index 38a3f311c..8fc950ff2 100644 --- a/ecs/src/model/CreateDeploymentSetResult.cc +++ b/ecs/src/model/CreateDeploymentSetResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateDeploymentSetResult::CreateDeploymentSetResult() : - ServiceResult() -{} - -CreateDeploymentSetResult::CreateDeploymentSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDeploymentSetResult::~CreateDeploymentSetResult() -{} - -void CreateDeploymentSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateDeploymentSetResult::CreateDeploymentSetResult() : + ServiceResult() +{} + +CreateDeploymentSetResult::CreateDeploymentSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDeploymentSetResult::~CreateDeploymentSetResult() +{} + +void CreateDeploymentSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DeploymentSetId"].isNull()) deploymentSetId_ = value["DeploymentSetId"].asString(); - -} - + +} + std::string CreateDeploymentSetResult::getDeploymentSetId()const { return deploymentSetId_; diff --git a/ecs/src/model/CreateDiskRequest.cc b/ecs/src/model/CreateDiskRequest.cc index d5d930a52..718eb11c3 100644 --- a/ecs/src/model/CreateDiskRequest.cc +++ b/ecs/src/model/CreateDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateDiskRequest; - -CreateDiskRequest::CreateDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDisk") -{} - -CreateDiskRequest::~CreateDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateDiskRequest; + +CreateDiskRequest::CreateDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateDisk") +{} + +CreateDiskRequest::~CreateDiskRequest() +{} + long CreateDiskRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateDiskResult.cc b/ecs/src/model/CreateDiskResult.cc index c4e8eaa97..9b5b948ab 100644 --- a/ecs/src/model/CreateDiskResult.cc +++ b/ecs/src/model/CreateDiskResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateDiskResult::CreateDiskResult() : - ServiceResult() -{} - -CreateDiskResult::CreateDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDiskResult::~CreateDiskResult() -{} - -void CreateDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateDiskResult::CreateDiskResult() : + ServiceResult() +{} + +CreateDiskResult::CreateDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDiskResult::~CreateDiskResult() +{} + +void CreateDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DiskId"].isNull()) diskId_ = value["DiskId"].asString(); - -} - + +} + std::string CreateDiskResult::getDiskId()const { return diskId_; diff --git a/ecs/src/model/CreateFleetRequest.cc b/ecs/src/model/CreateFleetRequest.cc index 45d2608a8..e515d8d3b 100644 --- a/ecs/src/model/CreateFleetRequest.cc +++ b/ecs/src/model/CreateFleetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateFleetRequest; - -CreateFleetRequest::CreateFleetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateFleet") -{} - -CreateFleetRequest::~CreateFleetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateFleetRequest; + +CreateFleetRequest::CreateFleetRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateFleet") +{} + +CreateFleetRequest::~CreateFleetRequest() +{} + long CreateFleetRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateFleetResult.cc b/ecs/src/model/CreateFleetResult.cc index c81ce5b67..b7dd20377 100644 --- a/ecs/src/model/CreateFleetResult.cc +++ b/ecs/src/model/CreateFleetResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateFleetResult::CreateFleetResult() : - ServiceResult() -{} - -CreateFleetResult::CreateFleetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateFleetResult::~CreateFleetResult() -{} - -void CreateFleetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateFleetResult::CreateFleetResult() : + ServiceResult() +{} + +CreateFleetResult::CreateFleetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFleetResult::~CreateFleetResult() +{} + +void CreateFleetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["FleetId"].isNull()) fleetId_ = value["FleetId"].asString(); - -} - + +} + std::string CreateFleetResult::getFleetId()const { return fleetId_; diff --git a/ecs/src/model/CreateForwardEntryRequest.cc b/ecs/src/model/CreateForwardEntryRequest.cc index 6baafde0d..838237ce5 100644 --- a/ecs/src/model/CreateForwardEntryRequest.cc +++ b/ecs/src/model/CreateForwardEntryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateForwardEntryRequest; - -CreateForwardEntryRequest::CreateForwardEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry") -{} - -CreateForwardEntryRequest::~CreateForwardEntryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateForwardEntryRequest; + +CreateForwardEntryRequest::CreateForwardEntryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry") +{} + +CreateForwardEntryRequest::~CreateForwardEntryRequest() +{} + long CreateForwardEntryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateForwardEntryResult.cc b/ecs/src/model/CreateForwardEntryResult.cc index 03f837741..e94c5aa73 100644 --- a/ecs/src/model/CreateForwardEntryResult.cc +++ b/ecs/src/model/CreateForwardEntryResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateForwardEntryResult::CreateForwardEntryResult() : - ServiceResult() -{} - -CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateForwardEntryResult::~CreateForwardEntryResult() -{} - -void CreateForwardEntryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateForwardEntryResult::CreateForwardEntryResult() : + ServiceResult() +{} + +CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateForwardEntryResult::~CreateForwardEntryResult() +{} + +void CreateForwardEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ForwardEntryId"].isNull()) forwardEntryId_ = value["ForwardEntryId"].asString(); - -} - + +} + std::string CreateForwardEntryResult::getForwardEntryId()const { return forwardEntryId_; diff --git a/ecs/src/model/CreateHaVipRequest.cc b/ecs/src/model/CreateHaVipRequest.cc index bcdda2776..04e2c192e 100644 --- a/ecs/src/model/CreateHaVipRequest.cc +++ b/ecs/src/model/CreateHaVipRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateHaVipRequest; - -CreateHaVipRequest::CreateHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip") -{} - -CreateHaVipRequest::~CreateHaVipRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateHaVipRequest; + +CreateHaVipRequest::CreateHaVipRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip") +{} + +CreateHaVipRequest::~CreateHaVipRequest() +{} + std::string CreateHaVipRequest::getVSwitchId()const { return vSwitchId_; diff --git a/ecs/src/model/CreateHaVipResult.cc b/ecs/src/model/CreateHaVipResult.cc index dc4dbcad9..4dd14dfc5 100644 --- a/ecs/src/model/CreateHaVipResult.cc +++ b/ecs/src/model/CreateHaVipResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateHaVipResult::CreateHaVipResult() : - ServiceResult() -{} - -CreateHaVipResult::CreateHaVipResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateHaVipResult::~CreateHaVipResult() -{} - -void CreateHaVipResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateHaVipResult::CreateHaVipResult() : + ServiceResult() +{} + +CreateHaVipResult::CreateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHaVipResult::~CreateHaVipResult() +{} + +void CreateHaVipResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["HaVipId"].isNull()) haVipId_ = value["HaVipId"].asString(); - -} - + +} + std::string CreateHaVipResult::getHaVipId()const { return haVipId_; diff --git a/ecs/src/model/CreateHpcClusterRequest.cc b/ecs/src/model/CreateHpcClusterRequest.cc index ebd0d03e9..21a1c499c 100644 --- a/ecs/src/model/CreateHpcClusterRequest.cc +++ b/ecs/src/model/CreateHpcClusterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateHpcClusterRequest; - -CreateHpcClusterRequest::CreateHpcClusterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster") -{} - -CreateHpcClusterRequest::~CreateHpcClusterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateHpcClusterRequest; + +CreateHpcClusterRequest::CreateHpcClusterRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster") +{} + +CreateHpcClusterRequest::~CreateHpcClusterRequest() +{} + long CreateHpcClusterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateHpcClusterResult.cc b/ecs/src/model/CreateHpcClusterResult.cc index 20cf8c8ab..26cacfab4 100644 --- a/ecs/src/model/CreateHpcClusterResult.cc +++ b/ecs/src/model/CreateHpcClusterResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateHpcClusterResult::CreateHpcClusterResult() : - ServiceResult() -{} - -CreateHpcClusterResult::CreateHpcClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateHpcClusterResult::~CreateHpcClusterResult() -{} - -void CreateHpcClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateHpcClusterResult::CreateHpcClusterResult() : + ServiceResult() +{} + +CreateHpcClusterResult::CreateHpcClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHpcClusterResult::~CreateHpcClusterResult() +{} + +void CreateHpcClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["HpcClusterId"].isNull()) hpcClusterId_ = value["HpcClusterId"].asString(); - -} - + +} + std::string CreateHpcClusterResult::getHpcClusterId()const { return hpcClusterId_; diff --git a/ecs/src/model/CreateImageRequest.cc b/ecs/src/model/CreateImageRequest.cc index 193b4ce16..c64269992 100644 --- a/ecs/src/model/CreateImageRequest.cc +++ b/ecs/src/model/CreateImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateImageRequest; - -CreateImageRequest::CreateImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateImage") -{} - -CreateImageRequest::~CreateImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateImageRequest; + +CreateImageRequest::CreateImageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateImage") +{} + +CreateImageRequest::~CreateImageRequest() +{} + std::vector CreateImageRequest::getDiskDeviceMapping()const { return diskDeviceMapping_; diff --git a/ecs/src/model/CreateImageResult.cc b/ecs/src/model/CreateImageResult.cc index d3d5e6a11..d9291bd71 100644 --- a/ecs/src/model/CreateImageResult.cc +++ b/ecs/src/model/CreateImageResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateImageResult::CreateImageResult() : - ServiceResult() -{} - -CreateImageResult::CreateImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateImageResult::~CreateImageResult() -{} - -void CreateImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateImageResult::CreateImageResult() : + ServiceResult() +{} + +CreateImageResult::CreateImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateImageResult::~CreateImageResult() +{} + +void CreateImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); - -} - + +} + std::string CreateImageResult::getImageId()const { return imageId_; diff --git a/ecs/src/model/CreateInstanceRequest.cc b/ecs/src/model/CreateInstanceRequest.cc index 3b59f5712..70b516ccc 100644 --- a/ecs/src/model/CreateInstanceRequest.cc +++ b/ecs/src/model/CreateInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateInstanceRequest; - -CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateInstance") -{} - -CreateInstanceRequest::~CreateInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateInstance") +{} + +CreateInstanceRequest::~CreateInstanceRequest() +{} + long CreateInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateInstanceResult.cc b/ecs/src/model/CreateInstanceResult.cc index 49a1f19c4..278bea5c7 100644 --- a/ecs/src/model/CreateInstanceResult.cc +++ b/ecs/src/model/CreateInstanceResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateInstanceResult::CreateInstanceResult() : - ServiceResult() -{} - -CreateInstanceResult::CreateInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateInstanceResult::~CreateInstanceResult() -{} - -void CreateInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateInstanceResult::CreateInstanceResult() : + ServiceResult() +{} + +CreateInstanceResult::CreateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceResult::~CreateInstanceResult() +{} + +void CreateInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["TradePrice"].isNull()) tradePrice_ = std::stof(value["TradePrice"].asString()); - -} - + +} + std::string CreateInstanceResult::getInstanceId()const { return instanceId_; diff --git a/ecs/src/model/CreateKeyPairRequest.cc b/ecs/src/model/CreateKeyPairRequest.cc index b5f2001f7..7b0df30e8 100644 --- a/ecs/src/model/CreateKeyPairRequest.cc +++ b/ecs/src/model/CreateKeyPairRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateKeyPairRequest; - -CreateKeyPairRequest::CreateKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair") -{} - -CreateKeyPairRequest::~CreateKeyPairRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateKeyPairRequest; + +CreateKeyPairRequest::CreateKeyPairRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair") +{} + +CreateKeyPairRequest::~CreateKeyPairRequest() +{} + std::string CreateKeyPairRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/CreateKeyPairResult.cc b/ecs/src/model/CreateKeyPairResult.cc index 70903ef98..c22681f9b 100644 --- a/ecs/src/model/CreateKeyPairResult.cc +++ b/ecs/src/model/CreateKeyPairResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateKeyPairResult::CreateKeyPairResult() : - ServiceResult() -{} - -CreateKeyPairResult::CreateKeyPairResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateKeyPairResult::~CreateKeyPairResult() -{} - -void CreateKeyPairResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateKeyPairResult::CreateKeyPairResult() : + ServiceResult() +{} + +CreateKeyPairResult::CreateKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateKeyPairResult::~CreateKeyPairResult() +{} + +void CreateKeyPairResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["KeyPairId"].isNull()) keyPairId_ = value["KeyPairId"].asString(); if(!value["KeyPairName"].isNull()) @@ -48,9 +51,9 @@ void CreateKeyPairResult::parse(const std::string &payload) keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); if(!value["PrivateKeyBody"].isNull()) privateKeyBody_ = value["PrivateKeyBody"].asString(); - -} - + +} + std::string CreateKeyPairResult::getKeyPairFingerPrint()const { return keyPairFingerPrint_; diff --git a/ecs/src/model/CreateLaunchTemplateRequest.cc b/ecs/src/model/CreateLaunchTemplateRequest.cc index 1d2e8d2ac..91ce89a79 100644 --- a/ecs/src/model/CreateLaunchTemplateRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateLaunchTemplateRequest; - -CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate") -{} - -CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateLaunchTemplateRequest; + +CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate") +{} + +CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest() +{} + std::string CreateLaunchTemplateRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/CreateLaunchTemplateResult.cc b/ecs/src/model/CreateLaunchTemplateResult.cc index 9c595669e..659855264 100644 --- a/ecs/src/model/CreateLaunchTemplateResult.cc +++ b/ecs/src/model/CreateLaunchTemplateResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateLaunchTemplateResult::CreateLaunchTemplateResult() : - ServiceResult() -{} - -CreateLaunchTemplateResult::CreateLaunchTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateLaunchTemplateResult::~CreateLaunchTemplateResult() -{} - -void CreateLaunchTemplateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateLaunchTemplateResult::CreateLaunchTemplateResult() : + ServiceResult() +{} + +CreateLaunchTemplateResult::CreateLaunchTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLaunchTemplateResult::~CreateLaunchTemplateResult() +{} + +void CreateLaunchTemplateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["LaunchTemplateId"].isNull()) launchTemplateId_ = value["LaunchTemplateId"].asString(); - -} - + +} + std::string CreateLaunchTemplateResult::getLaunchTemplateId()const { return launchTemplateId_; diff --git a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc index cf30980a6..8c3670206 100644 --- a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateLaunchTemplateVersionRequest; - -CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion") -{} - -CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateLaunchTemplateVersionRequest; + +CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion") +{} + +CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest() +{} + std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/CreateLaunchTemplateVersionResult.cc b/ecs/src/model/CreateLaunchTemplateVersionResult.cc index 6d89268b8..4558c21e1 100644 --- a/ecs/src/model/CreateLaunchTemplateVersionResult.cc +++ b/ecs/src/model/CreateLaunchTemplateVersionResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult() : - ServiceResult() -{} - -CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateLaunchTemplateVersionResult::~CreateLaunchTemplateVersionResult() -{} - -void CreateLaunchTemplateVersionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult() : + ServiceResult() +{} + +CreateLaunchTemplateVersionResult::CreateLaunchTemplateVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLaunchTemplateVersionResult::~CreateLaunchTemplateVersionResult() +{} + +void CreateLaunchTemplateVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["LaunchTemplateVersionNumber"].isNull()) launchTemplateVersionNumber_ = std::stol(value["LaunchTemplateVersionNumber"].asString()); - -} - + +} + long CreateLaunchTemplateVersionResult::getLaunchTemplateVersionNumber()const { return launchTemplateVersionNumber_; diff --git a/ecs/src/model/CreateNatGatewayRequest.cc b/ecs/src/model/CreateNatGatewayRequest.cc index e95a2a03f..c6bff7423 100644 --- a/ecs/src/model/CreateNatGatewayRequest.cc +++ b/ecs/src/model/CreateNatGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateNatGatewayRequest; - -CreateNatGatewayRequest::CreateNatGatewayRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway") -{} - -CreateNatGatewayRequest::~CreateNatGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateNatGatewayRequest; + +CreateNatGatewayRequest::CreateNatGatewayRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway") +{} + +CreateNatGatewayRequest::~CreateNatGatewayRequest() +{} + long CreateNatGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateNatGatewayResult.cc b/ecs/src/model/CreateNatGatewayResult.cc index dd2974eac..f21a5dc57 100644 --- a/ecs/src/model/CreateNatGatewayResult.cc +++ b/ecs/src/model/CreateNatGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateNatGatewayResult::CreateNatGatewayResult() : - ServiceResult() -{} - -CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateNatGatewayResult::~CreateNatGatewayResult() -{} - -void CreateNatGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateNatGatewayResult::CreateNatGatewayResult() : + ServiceResult() +{} + +CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNatGatewayResult::~CreateNatGatewayResult() +{} + +void CreateNatGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; for (const auto &item : allForwardTableIds) forwardTableIds_.push_back(item.asString()); @@ -48,9 +51,9 @@ void CreateNatGatewayResult::parse(const std::string &payload) bandwidthPackageIds_.push_back(item.asString()); if(!value["NatGatewayId"].isNull()) natGatewayId_ = value["NatGatewayId"].asString(); - -} - + +} + std::vector CreateNatGatewayResult::getForwardTableIds()const { return forwardTableIds_; diff --git a/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc b/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc index 600b82cc5..245387b7f 100644 --- a/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc +++ b/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateNetworkInterfacePermissionRequest; - -CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission") -{} - -CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateNetworkInterfacePermissionRequest; + +CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission") +{} + +CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest() +{} + long CreateNetworkInterfacePermissionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateNetworkInterfacePermissionResult.cc b/ecs/src/model/CreateNetworkInterfacePermissionResult.cc index 660bf4242..23008e590 100644 --- a/ecs/src/model/CreateNetworkInterfacePermissionResult.cc +++ b/ecs/src/model/CreateNetworkInterfacePermissionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult() : - ServiceResult() -{} - -CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateNetworkInterfacePermissionResult::~CreateNetworkInterfacePermissionResult() -{} - -void CreateNetworkInterfacePermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult() : + ServiceResult() +{} + +CreateNetworkInterfacePermissionResult::CreateNetworkInterfacePermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkInterfacePermissionResult::~CreateNetworkInterfacePermissionResult() +{} + +void CreateNetworkInterfacePermissionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto networkInterfacePermissionNode = value["NetworkInterfacePermission"]; if(!networkInterfacePermissionNode["AccountId"].isNull()) networkInterfacePermission_.accountId = std::stol(networkInterfacePermissionNode["AccountId"].asString()); @@ -53,9 +56,9 @@ void CreateNetworkInterfacePermissionResult::parse(const std::string &payload) networkInterfacePermission_.permission = networkInterfacePermissionNode["Permission"].asString(); if(!networkInterfacePermissionNode["PermissionState"].isNull()) networkInterfacePermission_.permissionState = networkInterfacePermissionNode["PermissionState"].asString(); - -} - + +} + CreateNetworkInterfacePermissionResult::NetworkInterfacePermission CreateNetworkInterfacePermissionResult::getNetworkInterfacePermission()const { return networkInterfacePermission_; diff --git a/ecs/src/model/CreateNetworkInterfaceRequest.cc b/ecs/src/model/CreateNetworkInterfaceRequest.cc index 6ff5842b4..986a3b8e7 100644 --- a/ecs/src/model/CreateNetworkInterfaceRequest.cc +++ b/ecs/src/model/CreateNetworkInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateNetworkInterfaceRequest; - -CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface") -{} - -CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateNetworkInterfaceRequest; + +CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface") +{} + +CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest() +{} + long CreateNetworkInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateNetworkInterfaceResult.cc b/ecs/src/model/CreateNetworkInterfaceResult.cc index 34933ab7f..c0ff11043 100644 --- a/ecs/src/model/CreateNetworkInterfaceResult.cc +++ b/ecs/src/model/CreateNetworkInterfaceResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateNetworkInterfaceResult::CreateNetworkInterfaceResult() : - ServiceResult() -{} - -CreateNetworkInterfaceResult::CreateNetworkInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateNetworkInterfaceResult::~CreateNetworkInterfaceResult() -{} - -void CreateNetworkInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateNetworkInterfaceResult::CreateNetworkInterfaceResult() : + ServiceResult() +{} + +CreateNetworkInterfaceResult::CreateNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkInterfaceResult::~CreateNetworkInterfaceResult() +{} + +void CreateNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["NetworkInterfaceId"].isNull()) networkInterfaceId_ = value["NetworkInterfaceId"].asString(); - -} - + +} + std::string CreateNetworkInterfaceResult::getNetworkInterfaceId()const { return networkInterfaceId_; diff --git a/ecs/src/model/CreatePhysicalConnectionRequest.cc b/ecs/src/model/CreatePhysicalConnectionRequest.cc index 4c8a34e8d..97a8dc49f 100644 --- a/ecs/src/model/CreatePhysicalConnectionRequest.cc +++ b/ecs/src/model/CreatePhysicalConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreatePhysicalConnectionRequest; - -CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection") -{} - -CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreatePhysicalConnectionRequest; + +CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection") +{} + +CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() +{} + std::string CreatePhysicalConnectionRequest::getAccessPointId()const { return accessPointId_; diff --git a/ecs/src/model/CreatePhysicalConnectionResult.cc b/ecs/src/model/CreatePhysicalConnectionResult.cc index 25570ee86..c3ed273e8 100644 --- a/ecs/src/model/CreatePhysicalConnectionResult.cc +++ b/ecs/src/model/CreatePhysicalConnectionResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreatePhysicalConnectionResult::CreatePhysicalConnectionResult() : - ServiceResult() -{} - -CreatePhysicalConnectionResult::CreatePhysicalConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult() -{} - -void CreatePhysicalConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreatePhysicalConnectionResult::CreatePhysicalConnectionResult() : + ServiceResult() +{} + +CreatePhysicalConnectionResult::CreatePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult() +{} + +void CreatePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["PhysicalConnectionId"].isNull()) physicalConnectionId_ = value["PhysicalConnectionId"].asString(); - -} - + +} + std::string CreatePhysicalConnectionResult::getPhysicalConnectionId()const { return physicalConnectionId_; diff --git a/ecs/src/model/CreateRouteEntryRequest.cc b/ecs/src/model/CreateRouteEntryRequest.cc index 3e63ad522..6278df32c 100644 --- a/ecs/src/model/CreateRouteEntryRequest.cc +++ b/ecs/src/model/CreateRouteEntryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateRouteEntryRequest; - -CreateRouteEntryRequest::CreateRouteEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry") -{} - -CreateRouteEntryRequest::~CreateRouteEntryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateRouteEntryRequest; + +CreateRouteEntryRequest::CreateRouteEntryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry") +{} + +CreateRouteEntryRequest::~CreateRouteEntryRequest() +{} + long CreateRouteEntryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateRouteEntryResult.cc b/ecs/src/model/CreateRouteEntryResult.cc index d54bb55a6..854523d08 100644 --- a/ecs/src/model/CreateRouteEntryResult.cc +++ b/ecs/src/model/CreateRouteEntryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateRouteEntryResult::CreateRouteEntryResult() : - ServiceResult() -{} - -CreateRouteEntryResult::CreateRouteEntryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateRouteEntryResult::~CreateRouteEntryResult() -{} - -void CreateRouteEntryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateRouteEntryResult::CreateRouteEntryResult() : + ServiceResult() +{} + +CreateRouteEntryResult::CreateRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRouteEntryResult::~CreateRouteEntryResult() +{} + +void CreateRouteEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CreateRouterInterfaceRequest.cc b/ecs/src/model/CreateRouterInterfaceRequest.cc index 7d0e425e2..7527a4518 100644 --- a/ecs/src/model/CreateRouterInterfaceRequest.cc +++ b/ecs/src/model/CreateRouterInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateRouterInterfaceRequest; - -CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface") -{} - -CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateRouterInterfaceRequest; + +CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface") +{} + +CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() +{} + std::string CreateRouterInterfaceRequest::getAccessPointId()const { return accessPointId_; diff --git a/ecs/src/model/CreateRouterInterfaceResult.cc b/ecs/src/model/CreateRouterInterfaceResult.cc index 0621ed554..16e3eea0c 100644 --- a/ecs/src/model/CreateRouterInterfaceResult.cc +++ b/ecs/src/model/CreateRouterInterfaceResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateRouterInterfaceResult::CreateRouterInterfaceResult() : - ServiceResult() -{} - -CreateRouterInterfaceResult::CreateRouterInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateRouterInterfaceResult::~CreateRouterInterfaceResult() -{} - -void CreateRouterInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateRouterInterfaceResult::CreateRouterInterfaceResult() : + ServiceResult() +{} + +CreateRouterInterfaceResult::CreateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRouterInterfaceResult::~CreateRouterInterfaceResult() +{} + +void CreateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["RouterInterfaceId"].isNull()) routerInterfaceId_ = value["RouterInterfaceId"].asString(); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); - -} - + +} + long CreateRouterInterfaceResult::getOrderId()const { return orderId_; diff --git a/ecs/src/model/CreateSecurityGroupRequest.cc b/ecs/src/model/CreateSecurityGroupRequest.cc index 69d9477de..2a0f67b89 100644 --- a/ecs/src/model/CreateSecurityGroupRequest.cc +++ b/ecs/src/model/CreateSecurityGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateSecurityGroupRequest; - -CreateSecurityGroupRequest::CreateSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup") -{} - -CreateSecurityGroupRequest::~CreateSecurityGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateSecurityGroupRequest; + +CreateSecurityGroupRequest::CreateSecurityGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup") +{} + +CreateSecurityGroupRequest::~CreateSecurityGroupRequest() +{} + long CreateSecurityGroupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateSecurityGroupResult.cc b/ecs/src/model/CreateSecurityGroupResult.cc index 2e651858e..4dd001d64 100644 --- a/ecs/src/model/CreateSecurityGroupResult.cc +++ b/ecs/src/model/CreateSecurityGroupResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateSecurityGroupResult::CreateSecurityGroupResult() : - ServiceResult() -{} - -CreateSecurityGroupResult::CreateSecurityGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSecurityGroupResult::~CreateSecurityGroupResult() -{} - -void CreateSecurityGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSecurityGroupResult::CreateSecurityGroupResult() : + ServiceResult() +{} + +CreateSecurityGroupResult::CreateSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSecurityGroupResult::~CreateSecurityGroupResult() +{} + +void CreateSecurityGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SecurityGroupId"].isNull()) securityGroupId_ = value["SecurityGroupId"].asString(); - -} - + +} + std::string CreateSecurityGroupResult::getSecurityGroupId()const { return securityGroupId_; diff --git a/ecs/src/model/CreateSimulatedSystemEventsRequest.cc b/ecs/src/model/CreateSimulatedSystemEventsRequest.cc index d6b78ba21..6b1022f32 100644 --- a/ecs/src/model/CreateSimulatedSystemEventsRequest.cc +++ b/ecs/src/model/CreateSimulatedSystemEventsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateSimulatedSystemEventsRequest; - -CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents") -{} - -CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateSimulatedSystemEventsRequest; + +CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents") +{} + +CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest() +{} + long CreateSimulatedSystemEventsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateSimulatedSystemEventsResult.cc b/ecs/src/model/CreateSimulatedSystemEventsResult.cc index 61173ec63..16e4b2b31 100644 --- a/ecs/src/model/CreateSimulatedSystemEventsResult.cc +++ b/ecs/src/model/CreateSimulatedSystemEventsResult.cc @@ -1,51 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult() : - ServiceResult() -{} - -CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSimulatedSystemEventsResult::~CreateSimulatedSystemEventsResult() -{} - -void CreateSimulatedSystemEventsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult() : + ServiceResult() +{} + +CreateSimulatedSystemEventsResult::CreateSimulatedSystemEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSimulatedSystemEventsResult::~CreateSimulatedSystemEventsResult() +{} + +void CreateSimulatedSystemEventsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allEventIdSet = value["EventIdSet"]["EventId"]; for (const auto &item : allEventIdSet) eventIdSet_.push_back(item.asString()); - -} - + +} + std::vector CreateSimulatedSystemEventsResult::getEventIdSet()const { return eventIdSet_; diff --git a/ecs/src/model/CreateSnapshotRequest.cc b/ecs/src/model/CreateSnapshotRequest.cc index 6b1078685..e502d3ba1 100644 --- a/ecs/src/model/CreateSnapshotRequest.cc +++ b/ecs/src/model/CreateSnapshotRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateSnapshotRequest; - -CreateSnapshotRequest::CreateSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot") -{} - -CreateSnapshotRequest::~CreateSnapshotRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateSnapshotRequest; + +CreateSnapshotRequest::CreateSnapshotRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot") +{} + +CreateSnapshotRequest::~CreateSnapshotRequest() +{} + long CreateSnapshotRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateSnapshotResult.cc b/ecs/src/model/CreateSnapshotResult.cc index e2be6435d..bf0533a02 100644 --- a/ecs/src/model/CreateSnapshotResult.cc +++ b/ecs/src/model/CreateSnapshotResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateSnapshotResult::CreateSnapshotResult() : - ServiceResult() -{} - -CreateSnapshotResult::CreateSnapshotResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSnapshotResult::~CreateSnapshotResult() -{} - -void CreateSnapshotResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSnapshotResult::CreateSnapshotResult() : + ServiceResult() +{} + +CreateSnapshotResult::CreateSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSnapshotResult::~CreateSnapshotResult() +{} + +void CreateSnapshotResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SnapshotId"].isNull()) snapshotId_ = value["SnapshotId"].asString(); - -} - + +} + std::string CreateSnapshotResult::getSnapshotId()const { return snapshotId_; diff --git a/ecs/src/model/CreateStorageSetRequest.cc b/ecs/src/model/CreateStorageSetRequest.cc index 474c92d46..16b1966c8 100644 --- a/ecs/src/model/CreateStorageSetRequest.cc +++ b/ecs/src/model/CreateStorageSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateStorageSetRequest; - -CreateStorageSetRequest::CreateStorageSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateStorageSet") -{} - -CreateStorageSetRequest::~CreateStorageSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateStorageSetRequest; + +CreateStorageSetRequest::CreateStorageSetRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateStorageSet") +{} + +CreateStorageSetRequest::~CreateStorageSetRequest() +{} + long CreateStorageSetRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateStorageSetResult.cc b/ecs/src/model/CreateStorageSetResult.cc index 3457d782d..1a3c11fc2 100644 --- a/ecs/src/model/CreateStorageSetResult.cc +++ b/ecs/src/model/CreateStorageSetResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateStorageSetResult::CreateStorageSetResult() : - ServiceResult() -{} - -CreateStorageSetResult::CreateStorageSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateStorageSetResult::~CreateStorageSetResult() -{} - -void CreateStorageSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateStorageSetResult::CreateStorageSetResult() : + ServiceResult() +{} + +CreateStorageSetResult::CreateStorageSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStorageSetResult::~CreateStorageSetResult() +{} + +void CreateStorageSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["StorageSetId"].isNull()) storageSetId_ = value["StorageSetId"].asString(); - -} - + +} + std::string CreateStorageSetResult::getStorageSetId()const { return storageSetId_; diff --git a/ecs/src/model/CreateVSwitchRequest.cc b/ecs/src/model/CreateVSwitchRequest.cc index e618b149e..f9fc753d9 100644 --- a/ecs/src/model/CreateVSwitchRequest.cc +++ b/ecs/src/model/CreateVSwitchRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateVSwitchRequest; - -CreateVSwitchRequest::CreateVSwitchRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateVSwitch") -{} - -CreateVSwitchRequest::~CreateVSwitchRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateVSwitchRequest; + +CreateVSwitchRequest::CreateVSwitchRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateVSwitch") +{} + +CreateVSwitchRequest::~CreateVSwitchRequest() +{} + long CreateVSwitchRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateVSwitchResult.cc b/ecs/src/model/CreateVSwitchResult.cc index 63d3505bc..c8e4682af 100644 --- a/ecs/src/model/CreateVSwitchResult.cc +++ b/ecs/src/model/CreateVSwitchResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateVSwitchResult::CreateVSwitchResult() : - ServiceResult() -{} - -CreateVSwitchResult::CreateVSwitchResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVSwitchResult::~CreateVSwitchResult() -{} - -void CreateVSwitchResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVSwitchResult::CreateVSwitchResult() : + ServiceResult() +{} + +CreateVSwitchResult::CreateVSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVSwitchResult::~CreateVSwitchResult() +{} + +void CreateVSwitchResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["VSwitchId"].isNull()) vSwitchId_ = value["VSwitchId"].asString(); - -} - + +} + std::string CreateVSwitchResult::getVSwitchId()const { return vSwitchId_; diff --git a/ecs/src/model/CreateVirtualBorderRouterRequest.cc b/ecs/src/model/CreateVirtualBorderRouterRequest.cc index 841e4675e..81516e011 100644 --- a/ecs/src/model/CreateVirtualBorderRouterRequest.cc +++ b/ecs/src/model/CreateVirtualBorderRouterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateVirtualBorderRouterRequest; - -CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateVirtualBorderRouter") -{} - -CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateVirtualBorderRouterRequest; + +CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateVirtualBorderRouter") +{} + +CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() +{} + long CreateVirtualBorderRouterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/CreateVirtualBorderRouterResult.cc b/ecs/src/model/CreateVirtualBorderRouterResult.cc index 83743b5ef..28e585986 100644 --- a/ecs/src/model/CreateVirtualBorderRouterResult.cc +++ b/ecs/src/model/CreateVirtualBorderRouterResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult() : - ServiceResult() -{} - -CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVirtualBorderRouterResult::~CreateVirtualBorderRouterResult() -{} - -void CreateVirtualBorderRouterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult() : + ServiceResult() +{} + +CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVirtualBorderRouterResult::~CreateVirtualBorderRouterResult() +{} + +void CreateVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["VbrId"].isNull()) vbrId_ = value["VbrId"].asString(); - -} - + +} + std::string CreateVirtualBorderRouterResult::getVbrId()const { return vbrId_; diff --git a/ecs/src/model/CreateVpcRequest.cc b/ecs/src/model/CreateVpcRequest.cc index e27dc979a..cc628acd5 100644 --- a/ecs/src/model/CreateVpcRequest.cc +++ b/ecs/src/model/CreateVpcRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::CreateVpcRequest; - -CreateVpcRequest::CreateVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateVpc") -{} - -CreateVpcRequest::~CreateVpcRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::CreateVpcRequest; + +CreateVpcRequest::CreateVpcRequest() : + RpcServiceRequest("ecs", "2014-05-26", "CreateVpc") +{} + +CreateVpcRequest::~CreateVpcRequest() +{} + std::string CreateVpcRequest::getVpcName()const { return vpcName_; diff --git a/ecs/src/model/CreateVpcResult.cc b/ecs/src/model/CreateVpcResult.cc index aee62a0c0..46c4d9348 100644 --- a/ecs/src/model/CreateVpcResult.cc +++ b/ecs/src/model/CreateVpcResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateVpcResult::CreateVpcResult() : - ServiceResult() -{} - -CreateVpcResult::CreateVpcResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVpcResult::~CreateVpcResult() -{} - -void CreateVpcResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVpcResult::CreateVpcResult() : + ServiceResult() +{} + +CreateVpcResult::CreateVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpcResult::~CreateVpcResult() +{} + +void CreateVpcResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); if(!value["VRouterId"].isNull()) vRouterId_ = value["VRouterId"].asString(); if(!value["RouteTableId"].isNull()) routeTableId_ = value["RouteTableId"].asString(); - -} - + +} + std::string CreateVpcResult::getVRouterId()const { return vRouterId_; diff --git a/ecs/src/model/DeactivateRouterInterfaceRequest.cc b/ecs/src/model/DeactivateRouterInterfaceRequest.cc index 292a8b2af..60cb63377 100644 --- a/ecs/src/model/DeactivateRouterInterfaceRequest.cc +++ b/ecs/src/model/DeactivateRouterInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeactivateRouterInterfaceRequest; - -DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeactivateRouterInterface") -{} - -DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeactivateRouterInterfaceRequest; + +DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeactivateRouterInterface") +{} + +DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() +{} + long DeactivateRouterInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeactivateRouterInterfaceResult.cc b/ecs/src/model/DeactivateRouterInterfaceResult.cc index f31e2f33d..27df5749f 100644 --- a/ecs/src/model/DeactivateRouterInterfaceResult.cc +++ b/ecs/src/model/DeactivateRouterInterfaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult() : - ServiceResult() -{} - -DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeactivateRouterInterfaceResult::~DeactivateRouterInterfaceResult() -{} - -void DeactivateRouterInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult() : + ServiceResult() +{} + +DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeactivateRouterInterfaceResult::~DeactivateRouterInterfaceResult() +{} + +void DeactivateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc b/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc index 3e7ebf3c8..93d1bc05c 100644 --- a/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc +++ b/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteAutoProvisioningGroupRequest; - -DeleteAutoProvisioningGroupRequest::DeleteAutoProvisioningGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoProvisioningGroup") -{} - -DeleteAutoProvisioningGroupRequest::~DeleteAutoProvisioningGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteAutoProvisioningGroupRequest; + +DeleteAutoProvisioningGroupRequest::DeleteAutoProvisioningGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoProvisioningGroup") +{} + +DeleteAutoProvisioningGroupRequest::~DeleteAutoProvisioningGroupRequest() +{} + long DeleteAutoProvisioningGroupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteAutoProvisioningGroupResult.cc b/ecs/src/model/DeleteAutoProvisioningGroupResult.cc index 04e254e51..9065bd221 100644 --- a/ecs/src/model/DeleteAutoProvisioningGroupResult.cc +++ b/ecs/src/model/DeleteAutoProvisioningGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteAutoProvisioningGroupResult::DeleteAutoProvisioningGroupResult() : - ServiceResult() -{} - -DeleteAutoProvisioningGroupResult::DeleteAutoProvisioningGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAutoProvisioningGroupResult::~DeleteAutoProvisioningGroupResult() -{} - -void DeleteAutoProvisioningGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteAutoProvisioningGroupResult::DeleteAutoProvisioningGroupResult() : + ServiceResult() +{} + +DeleteAutoProvisioningGroupResult::DeleteAutoProvisioningGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAutoProvisioningGroupResult::~DeleteAutoProvisioningGroupResult() +{} + +void DeleteAutoProvisioningGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc b/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc index cadcdbd5b..0648fa4af 100644 --- a/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteAutoSnapshotPolicyRequest; - -DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoSnapshotPolicy") -{} - -DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteAutoSnapshotPolicyRequest; + +DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoSnapshotPolicy") +{} + +DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest() +{} + std::string DeleteAutoSnapshotPolicyRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteAutoSnapshotPolicyResult.cc b/ecs/src/model/DeleteAutoSnapshotPolicyResult.cc index 0119cd998..5c21d8cfe 100644 --- a/ecs/src/model/DeleteAutoSnapshotPolicyResult.cc +++ b/ecs/src/model/DeleteAutoSnapshotPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteAutoSnapshotPolicyResult::DeleteAutoSnapshotPolicyResult() : - ServiceResult() -{} - -DeleteAutoSnapshotPolicyResult::DeleteAutoSnapshotPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAutoSnapshotPolicyResult::~DeleteAutoSnapshotPolicyResult() -{} - -void DeleteAutoSnapshotPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteAutoSnapshotPolicyResult::DeleteAutoSnapshotPolicyResult() : + ServiceResult() +{} + +DeleteAutoSnapshotPolicyResult::DeleteAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAutoSnapshotPolicyResult::~DeleteAutoSnapshotPolicyResult() +{} + +void DeleteAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteBandwidthPackageRequest.cc b/ecs/src/model/DeleteBandwidthPackageRequest.cc index ccf232d16..1c464f608 100644 --- a/ecs/src/model/DeleteBandwidthPackageRequest.cc +++ b/ecs/src/model/DeleteBandwidthPackageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteBandwidthPackageRequest; - -DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteBandwidthPackage") -{} - -DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteBandwidthPackageRequest; + +DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteBandwidthPackage") +{} + +DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() +{} + long DeleteBandwidthPackageRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteBandwidthPackageResult.cc b/ecs/src/model/DeleteBandwidthPackageResult.cc index 1c0993f67..ca87761f9 100644 --- a/ecs/src/model/DeleteBandwidthPackageResult.cc +++ b/ecs/src/model/DeleteBandwidthPackageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() : - ServiceResult() -{} - -DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult() -{} - -void DeleteBandwidthPackageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() : + ServiceResult() +{} + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult() +{} + +void DeleteBandwidthPackageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteCommandRequest.cc b/ecs/src/model/DeleteCommandRequest.cc index 43e0b727f..4a5957675 100644 --- a/ecs/src/model/DeleteCommandRequest.cc +++ b/ecs/src/model/DeleteCommandRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteCommandRequest; - -DeleteCommandRequest::DeleteCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteCommand") -{} - -DeleteCommandRequest::~DeleteCommandRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteCommandRequest; + +DeleteCommandRequest::DeleteCommandRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteCommand") +{} + +DeleteCommandRequest::~DeleteCommandRequest() +{} + long DeleteCommandRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteCommandResult.cc b/ecs/src/model/DeleteCommandResult.cc index 6a62877a3..c67518ed5 100644 --- a/ecs/src/model/DeleteCommandResult.cc +++ b/ecs/src/model/DeleteCommandResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteCommandResult::DeleteCommandResult() : - ServiceResult() -{} - -DeleteCommandResult::DeleteCommandResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteCommandResult::~DeleteCommandResult() -{} - -void DeleteCommandResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteCommandResult::DeleteCommandResult() : + ServiceResult() +{} + +DeleteCommandResult::DeleteCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCommandResult::~DeleteCommandResult() +{} + +void DeleteCommandResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteDeploymentSetRequest.cc b/ecs/src/model/DeleteDeploymentSetRequest.cc index 17d638e70..34b298c93 100644 --- a/ecs/src/model/DeleteDeploymentSetRequest.cc +++ b/ecs/src/model/DeleteDeploymentSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteDeploymentSetRequest; - -DeleteDeploymentSetRequest::DeleteDeploymentSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteDeploymentSet") -{} - -DeleteDeploymentSetRequest::~DeleteDeploymentSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteDeploymentSetRequest; + +DeleteDeploymentSetRequest::DeleteDeploymentSetRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteDeploymentSet") +{} + +DeleteDeploymentSetRequest::~DeleteDeploymentSetRequest() +{} + std::string DeleteDeploymentSetRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteDeploymentSetResult.cc b/ecs/src/model/DeleteDeploymentSetResult.cc index 8125787de..a1f532d5d 100644 --- a/ecs/src/model/DeleteDeploymentSetResult.cc +++ b/ecs/src/model/DeleteDeploymentSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteDeploymentSetResult::DeleteDeploymentSetResult() : - ServiceResult() -{} - -DeleteDeploymentSetResult::DeleteDeploymentSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDeploymentSetResult::~DeleteDeploymentSetResult() -{} - -void DeleteDeploymentSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteDeploymentSetResult::DeleteDeploymentSetResult() : + ServiceResult() +{} + +DeleteDeploymentSetResult::DeleteDeploymentSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDeploymentSetResult::~DeleteDeploymentSetResult() +{} + +void DeleteDeploymentSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteDiskRequest.cc b/ecs/src/model/DeleteDiskRequest.cc index b72b7a0ff..f919b7c56 100644 --- a/ecs/src/model/DeleteDiskRequest.cc +++ b/ecs/src/model/DeleteDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteDiskRequest; - -DeleteDiskRequest::DeleteDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteDisk") -{} - -DeleteDiskRequest::~DeleteDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteDiskRequest; + +DeleteDiskRequest::DeleteDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteDisk") +{} + +DeleteDiskRequest::~DeleteDiskRequest() +{} + std::string DeleteDiskRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteDiskResult.cc b/ecs/src/model/DeleteDiskResult.cc index edf7d9f97..cd243af45 100644 --- a/ecs/src/model/DeleteDiskResult.cc +++ b/ecs/src/model/DeleteDiskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteDiskResult::DeleteDiskResult() : - ServiceResult() -{} - -DeleteDiskResult::DeleteDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDiskResult::~DeleteDiskResult() -{} - -void DeleteDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteDiskResult::DeleteDiskResult() : + ServiceResult() +{} + +DeleteDiskResult::DeleteDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDiskResult::~DeleteDiskResult() +{} + +void DeleteDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteFleetRequest.cc b/ecs/src/model/DeleteFleetRequest.cc index 350c49119..dc610b025 100644 --- a/ecs/src/model/DeleteFleetRequest.cc +++ b/ecs/src/model/DeleteFleetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteFleetRequest; - -DeleteFleetRequest::DeleteFleetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteFleet") -{} - -DeleteFleetRequest::~DeleteFleetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteFleetRequest; + +DeleteFleetRequest::DeleteFleetRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteFleet") +{} + +DeleteFleetRequest::~DeleteFleetRequest() +{} + long DeleteFleetRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteFleetResult.cc b/ecs/src/model/DeleteFleetResult.cc index 7bca25533..d61de8a08 100644 --- a/ecs/src/model/DeleteFleetResult.cc +++ b/ecs/src/model/DeleteFleetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteFleetResult::DeleteFleetResult() : - ServiceResult() -{} - -DeleteFleetResult::DeleteFleetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFleetResult::~DeleteFleetResult() -{} - -void DeleteFleetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteFleetResult::DeleteFleetResult() : + ServiceResult() +{} + +DeleteFleetResult::DeleteFleetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFleetResult::~DeleteFleetResult() +{} + +void DeleteFleetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteForwardEntryRequest.cc b/ecs/src/model/DeleteForwardEntryRequest.cc index 4372837d5..4d5b8c30a 100644 --- a/ecs/src/model/DeleteForwardEntryRequest.cc +++ b/ecs/src/model/DeleteForwardEntryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteForwardEntryRequest; - -DeleteForwardEntryRequest::DeleteForwardEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteForwardEntry") -{} - -DeleteForwardEntryRequest::~DeleteForwardEntryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteForwardEntryRequest; + +DeleteForwardEntryRequest::DeleteForwardEntryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteForwardEntry") +{} + +DeleteForwardEntryRequest::~DeleteForwardEntryRequest() +{} + long DeleteForwardEntryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteForwardEntryResult.cc b/ecs/src/model/DeleteForwardEntryResult.cc index a1e262299..4977fb955 100644 --- a/ecs/src/model/DeleteForwardEntryResult.cc +++ b/ecs/src/model/DeleteForwardEntryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteForwardEntryResult::DeleteForwardEntryResult() : - ServiceResult() -{} - -DeleteForwardEntryResult::DeleteForwardEntryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteForwardEntryResult::~DeleteForwardEntryResult() -{} - -void DeleteForwardEntryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteForwardEntryResult::DeleteForwardEntryResult() : + ServiceResult() +{} + +DeleteForwardEntryResult::DeleteForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteForwardEntryResult::~DeleteForwardEntryResult() +{} + +void DeleteForwardEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteHaVipRequest.cc b/ecs/src/model/DeleteHaVipRequest.cc index e75515661..1a65878a7 100644 --- a/ecs/src/model/DeleteHaVipRequest.cc +++ b/ecs/src/model/DeleteHaVipRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteHaVipRequest; - -DeleteHaVipRequest::DeleteHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteHaVip") -{} - -DeleteHaVipRequest::~DeleteHaVipRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteHaVipRequest; + +DeleteHaVipRequest::DeleteHaVipRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteHaVip") +{} + +DeleteHaVipRequest::~DeleteHaVipRequest() +{} + std::string DeleteHaVipRequest::getHaVipId()const { return haVipId_; diff --git a/ecs/src/model/DeleteHaVipResult.cc b/ecs/src/model/DeleteHaVipResult.cc index 1e2206a81..455867a95 100644 --- a/ecs/src/model/DeleteHaVipResult.cc +++ b/ecs/src/model/DeleteHaVipResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteHaVipResult::DeleteHaVipResult() : - ServiceResult() -{} - -DeleteHaVipResult::DeleteHaVipResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteHaVipResult::~DeleteHaVipResult() -{} - -void DeleteHaVipResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteHaVipResult::DeleteHaVipResult() : + ServiceResult() +{} + +DeleteHaVipResult::DeleteHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHaVipResult::~DeleteHaVipResult() +{} + +void DeleteHaVipResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteHpcClusterRequest.cc b/ecs/src/model/DeleteHpcClusterRequest.cc index 96cf11431..407e362ab 100644 --- a/ecs/src/model/DeleteHpcClusterRequest.cc +++ b/ecs/src/model/DeleteHpcClusterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteHpcClusterRequest; - -DeleteHpcClusterRequest::DeleteHpcClusterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteHpcCluster") -{} - -DeleteHpcClusterRequest::~DeleteHpcClusterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteHpcClusterRequest; + +DeleteHpcClusterRequest::DeleteHpcClusterRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteHpcCluster") +{} + +DeleteHpcClusterRequest::~DeleteHpcClusterRequest() +{} + long DeleteHpcClusterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteHpcClusterResult.cc b/ecs/src/model/DeleteHpcClusterResult.cc index f6d804521..ff8384408 100644 --- a/ecs/src/model/DeleteHpcClusterResult.cc +++ b/ecs/src/model/DeleteHpcClusterResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteHpcClusterResult::DeleteHpcClusterResult() : - ServiceResult() -{} - -DeleteHpcClusterResult::DeleteHpcClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteHpcClusterResult::~DeleteHpcClusterResult() -{} - -void DeleteHpcClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteHpcClusterResult::DeleteHpcClusterResult() : + ServiceResult() +{} + +DeleteHpcClusterResult::DeleteHpcClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHpcClusterResult::~DeleteHpcClusterResult() +{} + +void DeleteHpcClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteImageRequest.cc b/ecs/src/model/DeleteImageRequest.cc index 4460d59a4..203eebb2f 100644 --- a/ecs/src/model/DeleteImageRequest.cc +++ b/ecs/src/model/DeleteImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteImageRequest; - -DeleteImageRequest::DeleteImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteImage") -{} - -DeleteImageRequest::~DeleteImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteImageRequest; + +DeleteImageRequest::DeleteImageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteImage") +{} + +DeleteImageRequest::~DeleteImageRequest() +{} + std::string DeleteImageRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteImageResult.cc b/ecs/src/model/DeleteImageResult.cc index 587bad6c0..8864acc20 100644 --- a/ecs/src/model/DeleteImageResult.cc +++ b/ecs/src/model/DeleteImageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteImageResult::DeleteImageResult() : - ServiceResult() -{} - -DeleteImageResult::DeleteImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteImageResult::~DeleteImageResult() -{} - -void DeleteImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteImageResult::DeleteImageResult() : + ServiceResult() +{} + +DeleteImageResult::DeleteImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImageResult::~DeleteImageResult() +{} + +void DeleteImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteInstanceRequest.cc b/ecs/src/model/DeleteInstanceRequest.cc index ec9542952..22f92392a 100644 --- a/ecs/src/model/DeleteInstanceRequest.cc +++ b/ecs/src/model/DeleteInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteInstanceRequest; - -DeleteInstanceRequest::DeleteInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteInstance") -{} - -DeleteInstanceRequest::~DeleteInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteInstance") +{} + +DeleteInstanceRequest::~DeleteInstanceRequest() +{} + std::string DeleteInstanceRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteInstanceResult.cc b/ecs/src/model/DeleteInstanceResult.cc index d6cd72619..04806c594 100644 --- a/ecs/src/model/DeleteInstanceResult.cc +++ b/ecs/src/model/DeleteInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteInstanceResult::DeleteInstanceResult() : - ServiceResult() -{} - -DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteInstanceResult::~DeleteInstanceResult() -{} - -void DeleteInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteInstanceResult::DeleteInstanceResult() : + ServiceResult() +{} + +DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteInstanceResult::~DeleteInstanceResult() +{} + +void DeleteInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteInstancesRequest.cc b/ecs/src/model/DeleteInstancesRequest.cc index 8a7cb13e8..90507c272 100644 --- a/ecs/src/model/DeleteInstancesRequest.cc +++ b/ecs/src/model/DeleteInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteInstancesRequest; - -DeleteInstancesRequest::DeleteInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteInstances") -{} - -DeleteInstancesRequest::~DeleteInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteInstancesRequest; + +DeleteInstancesRequest::DeleteInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteInstances") +{} + +DeleteInstancesRequest::~DeleteInstancesRequest() +{} + std::string DeleteInstancesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteInstancesResult.cc b/ecs/src/model/DeleteInstancesResult.cc index 1c054a7e0..247e2608c 100644 --- a/ecs/src/model/DeleteInstancesResult.cc +++ b/ecs/src/model/DeleteInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteInstancesResult::DeleteInstancesResult() : - ServiceResult() -{} - -DeleteInstancesResult::DeleteInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteInstancesResult::~DeleteInstancesResult() -{} - -void DeleteInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteInstancesResult::DeleteInstancesResult() : + ServiceResult() +{} + +DeleteInstancesResult::DeleteInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteInstancesResult::~DeleteInstancesResult() +{} + +void DeleteInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteKeyPairsRequest.cc b/ecs/src/model/DeleteKeyPairsRequest.cc index 0c58b2ac3..775161492 100644 --- a/ecs/src/model/DeleteKeyPairsRequest.cc +++ b/ecs/src/model/DeleteKeyPairsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteKeyPairsRequest; - -DeleteKeyPairsRequest::DeleteKeyPairsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteKeyPairs") -{} - -DeleteKeyPairsRequest::~DeleteKeyPairsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteKeyPairsRequest; + +DeleteKeyPairsRequest::DeleteKeyPairsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteKeyPairs") +{} + +DeleteKeyPairsRequest::~DeleteKeyPairsRequest() +{} + std::string DeleteKeyPairsRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteKeyPairsResult.cc b/ecs/src/model/DeleteKeyPairsResult.cc index 0903e3836..b081d9a74 100644 --- a/ecs/src/model/DeleteKeyPairsResult.cc +++ b/ecs/src/model/DeleteKeyPairsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteKeyPairsResult::DeleteKeyPairsResult() : - ServiceResult() -{} - -DeleteKeyPairsResult::DeleteKeyPairsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteKeyPairsResult::~DeleteKeyPairsResult() -{} - -void DeleteKeyPairsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteKeyPairsResult::DeleteKeyPairsResult() : + ServiceResult() +{} + +DeleteKeyPairsResult::DeleteKeyPairsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteKeyPairsResult::~DeleteKeyPairsResult() +{} + +void DeleteKeyPairsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteLaunchTemplateRequest.cc b/ecs/src/model/DeleteLaunchTemplateRequest.cc index 8dca529a6..18cb9dcc8 100644 --- a/ecs/src/model/DeleteLaunchTemplateRequest.cc +++ b/ecs/src/model/DeleteLaunchTemplateRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteLaunchTemplateRequest; - -DeleteLaunchTemplateRequest::DeleteLaunchTemplateRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplate") -{} - -DeleteLaunchTemplateRequest::~DeleteLaunchTemplateRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteLaunchTemplateRequest; + +DeleteLaunchTemplateRequest::DeleteLaunchTemplateRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplate") +{} + +DeleteLaunchTemplateRequest::~DeleteLaunchTemplateRequest() +{} + std::string DeleteLaunchTemplateRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/DeleteLaunchTemplateResult.cc b/ecs/src/model/DeleteLaunchTemplateResult.cc index 7a8d2f98e..b7cfd1fa5 100644 --- a/ecs/src/model/DeleteLaunchTemplateResult.cc +++ b/ecs/src/model/DeleteLaunchTemplateResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteLaunchTemplateResult::DeleteLaunchTemplateResult() : - ServiceResult() -{} - -DeleteLaunchTemplateResult::DeleteLaunchTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteLaunchTemplateResult::~DeleteLaunchTemplateResult() -{} - -void DeleteLaunchTemplateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteLaunchTemplateResult::DeleteLaunchTemplateResult() : + ServiceResult() +{} + +DeleteLaunchTemplateResult::DeleteLaunchTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLaunchTemplateResult::~DeleteLaunchTemplateResult() +{} + +void DeleteLaunchTemplateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc b/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc index db9fd73fc..ac67110d5 100644 --- a/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc +++ b/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteLaunchTemplateVersionRequest; - -DeleteLaunchTemplateVersionRequest::DeleteLaunchTemplateVersionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplateVersion") -{} - -DeleteLaunchTemplateVersionRequest::~DeleteLaunchTemplateVersionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteLaunchTemplateVersionRequest; + +DeleteLaunchTemplateVersionRequest::DeleteLaunchTemplateVersionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplateVersion") +{} + +DeleteLaunchTemplateVersionRequest::~DeleteLaunchTemplateVersionRequest() +{} + std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/DeleteLaunchTemplateVersionResult.cc b/ecs/src/model/DeleteLaunchTemplateVersionResult.cc index 300bd8221..5d50aa86e 100644 --- a/ecs/src/model/DeleteLaunchTemplateVersionResult.cc +++ b/ecs/src/model/DeleteLaunchTemplateVersionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteLaunchTemplateVersionResult::DeleteLaunchTemplateVersionResult() : - ServiceResult() -{} - -DeleteLaunchTemplateVersionResult::DeleteLaunchTemplateVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteLaunchTemplateVersionResult::~DeleteLaunchTemplateVersionResult() -{} - -void DeleteLaunchTemplateVersionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteLaunchTemplateVersionResult::DeleteLaunchTemplateVersionResult() : + ServiceResult() +{} + +DeleteLaunchTemplateVersionResult::DeleteLaunchTemplateVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLaunchTemplateVersionResult::~DeleteLaunchTemplateVersionResult() +{} + +void DeleteLaunchTemplateVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteNatGatewayRequest.cc b/ecs/src/model/DeleteNatGatewayRequest.cc index 509d24aac..ff799db27 100644 --- a/ecs/src/model/DeleteNatGatewayRequest.cc +++ b/ecs/src/model/DeleteNatGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteNatGatewayRequest; - -DeleteNatGatewayRequest::DeleteNatGatewayRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteNatGateway") -{} - -DeleteNatGatewayRequest::~DeleteNatGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteNatGatewayRequest; + +DeleteNatGatewayRequest::DeleteNatGatewayRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteNatGateway") +{} + +DeleteNatGatewayRequest::~DeleteNatGatewayRequest() +{} + long DeleteNatGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteNatGatewayResult.cc b/ecs/src/model/DeleteNatGatewayResult.cc index 04bab2b1a..43c35e685 100644 --- a/ecs/src/model/DeleteNatGatewayResult.cc +++ b/ecs/src/model/DeleteNatGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteNatGatewayResult::DeleteNatGatewayResult() : - ServiceResult() -{} - -DeleteNatGatewayResult::DeleteNatGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteNatGatewayResult::~DeleteNatGatewayResult() -{} - -void DeleteNatGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteNatGatewayResult::DeleteNatGatewayResult() : + ServiceResult() +{} + +DeleteNatGatewayResult::DeleteNatGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNatGatewayResult::~DeleteNatGatewayResult() +{} + +void DeleteNatGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc b/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc index 31a8d2944..254a404fd 100644 --- a/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc +++ b/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteNetworkInterfacePermissionRequest; - -DeleteNetworkInterfacePermissionRequest::DeleteNetworkInterfacePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterfacePermission") -{} - -DeleteNetworkInterfacePermissionRequest::~DeleteNetworkInterfacePermissionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteNetworkInterfacePermissionRequest; + +DeleteNetworkInterfacePermissionRequest::DeleteNetworkInterfacePermissionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterfacePermission") +{} + +DeleteNetworkInterfacePermissionRequest::~DeleteNetworkInterfacePermissionRequest() +{} + long DeleteNetworkInterfacePermissionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteNetworkInterfacePermissionResult.cc b/ecs/src/model/DeleteNetworkInterfacePermissionResult.cc index f6e81738c..80c0a791f 100644 --- a/ecs/src/model/DeleteNetworkInterfacePermissionResult.cc +++ b/ecs/src/model/DeleteNetworkInterfacePermissionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteNetworkInterfacePermissionResult::DeleteNetworkInterfacePermissionResult() : - ServiceResult() -{} - -DeleteNetworkInterfacePermissionResult::DeleteNetworkInterfacePermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteNetworkInterfacePermissionResult::~DeleteNetworkInterfacePermissionResult() -{} - -void DeleteNetworkInterfacePermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteNetworkInterfacePermissionResult::DeleteNetworkInterfacePermissionResult() : + ServiceResult() +{} + +DeleteNetworkInterfacePermissionResult::DeleteNetworkInterfacePermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkInterfacePermissionResult::~DeleteNetworkInterfacePermissionResult() +{} + +void DeleteNetworkInterfacePermissionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteNetworkInterfaceRequest.cc b/ecs/src/model/DeleteNetworkInterfaceRequest.cc index a1e5e819c..78dd8c521 100644 --- a/ecs/src/model/DeleteNetworkInterfaceRequest.cc +++ b/ecs/src/model/DeleteNetworkInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteNetworkInterfaceRequest; - -DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterface") -{} - -DeleteNetworkInterfaceRequest::~DeleteNetworkInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteNetworkInterfaceRequest; + +DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterface") +{} + +DeleteNetworkInterfaceRequest::~DeleteNetworkInterfaceRequest() +{} + long DeleteNetworkInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteNetworkInterfaceResult.cc b/ecs/src/model/DeleteNetworkInterfaceResult.cc index d80cfce52..4a7e78c99 100644 --- a/ecs/src/model/DeleteNetworkInterfaceResult.cc +++ b/ecs/src/model/DeleteNetworkInterfaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteNetworkInterfaceResult::DeleteNetworkInterfaceResult() : - ServiceResult() -{} - -DeleteNetworkInterfaceResult::DeleteNetworkInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteNetworkInterfaceResult::~DeleteNetworkInterfaceResult() -{} - -void DeleteNetworkInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteNetworkInterfaceResult::DeleteNetworkInterfaceResult() : + ServiceResult() +{} + +DeleteNetworkInterfaceResult::DeleteNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkInterfaceResult::~DeleteNetworkInterfaceResult() +{} + +void DeleteNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeletePhysicalConnectionRequest.cc b/ecs/src/model/DeletePhysicalConnectionRequest.cc index e548c65c9..6b9fdb1f0 100644 --- a/ecs/src/model/DeletePhysicalConnectionRequest.cc +++ b/ecs/src/model/DeletePhysicalConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeletePhysicalConnectionRequest; - -DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeletePhysicalConnection") -{} - -DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeletePhysicalConnectionRequest; + +DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeletePhysicalConnection") +{} + +DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() +{} + long DeletePhysicalConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeletePhysicalConnectionResult.cc b/ecs/src/model/DeletePhysicalConnectionResult.cc index 1bebc2a5e..90cf21e50 100644 --- a/ecs/src/model/DeletePhysicalConnectionResult.cc +++ b/ecs/src/model/DeletePhysicalConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeletePhysicalConnectionResult::DeletePhysicalConnectionResult() : - ServiceResult() -{} - -DeletePhysicalConnectionResult::DeletePhysicalConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeletePhysicalConnectionResult::~DeletePhysicalConnectionResult() -{} - -void DeletePhysicalConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeletePhysicalConnectionResult::DeletePhysicalConnectionResult() : + ServiceResult() +{} + +DeletePhysicalConnectionResult::DeletePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePhysicalConnectionResult::~DeletePhysicalConnectionResult() +{} + +void DeletePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteRouteEntryRequest.cc b/ecs/src/model/DeleteRouteEntryRequest.cc index c87ba5d9f..6de03a56a 100644 --- a/ecs/src/model/DeleteRouteEntryRequest.cc +++ b/ecs/src/model/DeleteRouteEntryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteRouteEntryRequest; - -DeleteRouteEntryRequest::DeleteRouteEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteRouteEntry") -{} - -DeleteRouteEntryRequest::~DeleteRouteEntryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteRouteEntryRequest; + +DeleteRouteEntryRequest::DeleteRouteEntryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteRouteEntry") +{} + +DeleteRouteEntryRequest::~DeleteRouteEntryRequest() +{} + long DeleteRouteEntryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteRouteEntryResult.cc b/ecs/src/model/DeleteRouteEntryResult.cc index 6f5d39335..b0781a30c 100644 --- a/ecs/src/model/DeleteRouteEntryResult.cc +++ b/ecs/src/model/DeleteRouteEntryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteRouteEntryResult::DeleteRouteEntryResult() : - ServiceResult() -{} - -DeleteRouteEntryResult::DeleteRouteEntryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteRouteEntryResult::~DeleteRouteEntryResult() -{} - -void DeleteRouteEntryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRouteEntryResult::DeleteRouteEntryResult() : + ServiceResult() +{} + +DeleteRouteEntryResult::DeleteRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouteEntryResult::~DeleteRouteEntryResult() +{} + +void DeleteRouteEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteRouterInterfaceRequest.cc b/ecs/src/model/DeleteRouterInterfaceRequest.cc index ac0d2753c..625545f9a 100644 --- a/ecs/src/model/DeleteRouterInterfaceRequest.cc +++ b/ecs/src/model/DeleteRouterInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteRouterInterfaceRequest; - -DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteRouterInterface") -{} - -DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteRouterInterfaceRequest; + +DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteRouterInterface") +{} + +DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() +{} + long DeleteRouterInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteRouterInterfaceResult.cc b/ecs/src/model/DeleteRouterInterfaceResult.cc index 3e062e37d..bd1468ff8 100644 --- a/ecs/src/model/DeleteRouterInterfaceResult.cc +++ b/ecs/src/model/DeleteRouterInterfaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteRouterInterfaceResult::DeleteRouterInterfaceResult() : - ServiceResult() -{} - -DeleteRouterInterfaceResult::DeleteRouterInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteRouterInterfaceResult::~DeleteRouterInterfaceResult() -{} - -void DeleteRouterInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRouterInterfaceResult::DeleteRouterInterfaceResult() : + ServiceResult() +{} + +DeleteRouterInterfaceResult::DeleteRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouterInterfaceResult::~DeleteRouterInterfaceResult() +{} + +void DeleteRouterInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteSecurityGroupRequest.cc b/ecs/src/model/DeleteSecurityGroupRequest.cc index cbe68edea..fc34c0cd8 100644 --- a/ecs/src/model/DeleteSecurityGroupRequest.cc +++ b/ecs/src/model/DeleteSecurityGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteSecurityGroupRequest; - -DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteSecurityGroup") -{} - -DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteSecurityGroupRequest; + +DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteSecurityGroup") +{} + +DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() +{} + std::string DeleteSecurityGroupRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteSecurityGroupResult.cc b/ecs/src/model/DeleteSecurityGroupResult.cc index cab337e67..df1f6ca7f 100644 --- a/ecs/src/model/DeleteSecurityGroupResult.cc +++ b/ecs/src/model/DeleteSecurityGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteSecurityGroupResult::DeleteSecurityGroupResult() : - ServiceResult() -{} - -DeleteSecurityGroupResult::DeleteSecurityGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSecurityGroupResult::~DeleteSecurityGroupResult() -{} - -void DeleteSecurityGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteSecurityGroupResult::DeleteSecurityGroupResult() : + ServiceResult() +{} + +DeleteSecurityGroupResult::DeleteSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecurityGroupResult::~DeleteSecurityGroupResult() +{} + +void DeleteSecurityGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteSnapshotRequest.cc b/ecs/src/model/DeleteSnapshotRequest.cc index 371885167..d382f6c06 100644 --- a/ecs/src/model/DeleteSnapshotRequest.cc +++ b/ecs/src/model/DeleteSnapshotRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteSnapshotRequest; - -DeleteSnapshotRequest::DeleteSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteSnapshot") -{} - -DeleteSnapshotRequest::~DeleteSnapshotRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteSnapshotRequest; + +DeleteSnapshotRequest::DeleteSnapshotRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteSnapshot") +{} + +DeleteSnapshotRequest::~DeleteSnapshotRequest() +{} + std::string DeleteSnapshotRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DeleteSnapshotResult.cc b/ecs/src/model/DeleteSnapshotResult.cc index cd81ba0e0..bef56af0b 100644 --- a/ecs/src/model/DeleteSnapshotResult.cc +++ b/ecs/src/model/DeleteSnapshotResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteSnapshotResult::DeleteSnapshotResult() : - ServiceResult() -{} - -DeleteSnapshotResult::DeleteSnapshotResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSnapshotResult::~DeleteSnapshotResult() -{} - -void DeleteSnapshotResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteSnapshotResult::DeleteSnapshotResult() : + ServiceResult() +{} + +DeleteSnapshotResult::DeleteSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSnapshotResult::~DeleteSnapshotResult() +{} + +void DeleteSnapshotResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteStorageSetRequest.cc b/ecs/src/model/DeleteStorageSetRequest.cc index f617e0507..097103215 100644 --- a/ecs/src/model/DeleteStorageSetRequest.cc +++ b/ecs/src/model/DeleteStorageSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteStorageSetRequest; - -DeleteStorageSetRequest::DeleteStorageSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteStorageSet") -{} - -DeleteStorageSetRequest::~DeleteStorageSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteStorageSetRequest; + +DeleteStorageSetRequest::DeleteStorageSetRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteStorageSet") +{} + +DeleteStorageSetRequest::~DeleteStorageSetRequest() +{} + long DeleteStorageSetRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteStorageSetResult.cc b/ecs/src/model/DeleteStorageSetResult.cc index 31d17aac5..30b09d279 100644 --- a/ecs/src/model/DeleteStorageSetResult.cc +++ b/ecs/src/model/DeleteStorageSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteStorageSetResult::DeleteStorageSetResult() : - ServiceResult() -{} - -DeleteStorageSetResult::DeleteStorageSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteStorageSetResult::~DeleteStorageSetResult() -{} - -void DeleteStorageSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteStorageSetResult::DeleteStorageSetResult() : + ServiceResult() +{} + +DeleteStorageSetResult::DeleteStorageSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStorageSetResult::~DeleteStorageSetResult() +{} + +void DeleteStorageSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteVSwitchRequest.cc b/ecs/src/model/DeleteVSwitchRequest.cc index dac150650..370b1e208 100644 --- a/ecs/src/model/DeleteVSwitchRequest.cc +++ b/ecs/src/model/DeleteVSwitchRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteVSwitchRequest; - -DeleteVSwitchRequest::DeleteVSwitchRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteVSwitch") -{} - -DeleteVSwitchRequest::~DeleteVSwitchRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteVSwitchRequest; + +DeleteVSwitchRequest::DeleteVSwitchRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteVSwitch") +{} + +DeleteVSwitchRequest::~DeleteVSwitchRequest() +{} + std::string DeleteVSwitchRequest::getVSwitchId()const { return vSwitchId_; diff --git a/ecs/src/model/DeleteVSwitchResult.cc b/ecs/src/model/DeleteVSwitchResult.cc index 6ce2a607a..40213ea2a 100644 --- a/ecs/src/model/DeleteVSwitchResult.cc +++ b/ecs/src/model/DeleteVSwitchResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteVSwitchResult::DeleteVSwitchResult() : - ServiceResult() -{} - -DeleteVSwitchResult::DeleteVSwitchResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteVSwitchResult::~DeleteVSwitchResult() -{} - -void DeleteVSwitchResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVSwitchResult::DeleteVSwitchResult() : + ServiceResult() +{} + +DeleteVSwitchResult::DeleteVSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVSwitchResult::~DeleteVSwitchResult() +{} + +void DeleteVSwitchResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteVirtualBorderRouterRequest.cc b/ecs/src/model/DeleteVirtualBorderRouterRequest.cc index 540877926..b52073366 100644 --- a/ecs/src/model/DeleteVirtualBorderRouterRequest.cc +++ b/ecs/src/model/DeleteVirtualBorderRouterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteVirtualBorderRouterRequest; - -DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteVirtualBorderRouter") -{} - -DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteVirtualBorderRouterRequest; + +DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteVirtualBorderRouter") +{} + +DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() +{} + long DeleteVirtualBorderRouterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteVirtualBorderRouterResult.cc b/ecs/src/model/DeleteVirtualBorderRouterResult.cc index 678327e6b..1ed417660 100644 --- a/ecs/src/model/DeleteVirtualBorderRouterResult.cc +++ b/ecs/src/model/DeleteVirtualBorderRouterResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult() : - ServiceResult() -{} - -DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteVirtualBorderRouterResult::~DeleteVirtualBorderRouterResult() -{} - -void DeleteVirtualBorderRouterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult() : + ServiceResult() +{} + +DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVirtualBorderRouterResult::~DeleteVirtualBorderRouterResult() +{} + +void DeleteVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteVpcRequest.cc b/ecs/src/model/DeleteVpcRequest.cc index 05b7117f9..bb6cef3a7 100644 --- a/ecs/src/model/DeleteVpcRequest.cc +++ b/ecs/src/model/DeleteVpcRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DeleteVpcRequest; - -DeleteVpcRequest::DeleteVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteVpc") -{} - -DeleteVpcRequest::~DeleteVpcRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DeleteVpcRequest; + +DeleteVpcRequest::DeleteVpcRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DeleteVpc") +{} + +DeleteVpcRequest::~DeleteVpcRequest() +{} + long DeleteVpcRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DeleteVpcResult.cc b/ecs/src/model/DeleteVpcResult.cc index 1ce8089d8..6472812d5 100644 --- a/ecs/src/model/DeleteVpcResult.cc +++ b/ecs/src/model/DeleteVpcResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DeleteVpcResult::DeleteVpcResult() : - ServiceResult() -{} - -DeleteVpcResult::DeleteVpcResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteVpcResult::~DeleteVpcResult() -{} - -void DeleteVpcResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVpcResult::DeleteVpcResult() : + ServiceResult() +{} + +DeleteVpcResult::DeleteVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpcResult::~DeleteVpcResult() +{} + +void DeleteVpcResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DescribeAccessPointsRequest.cc b/ecs/src/model/DescribeAccessPointsRequest.cc index 24e620fac..d3dd06024 100644 --- a/ecs/src/model/DescribeAccessPointsRequest.cc +++ b/ecs/src/model/DescribeAccessPointsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAccessPointsRequest; - -DescribeAccessPointsRequest::DescribeAccessPointsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAccessPoints") -{} - -DescribeAccessPointsRequest::~DescribeAccessPointsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAccessPointsRequest; + +DescribeAccessPointsRequest::DescribeAccessPointsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAccessPoints") +{} + +DescribeAccessPointsRequest::~DescribeAccessPointsRequest() +{} + std::vector DescribeAccessPointsRequest::getFilter()const { return filter_; diff --git a/ecs/src/model/DescribeAccessPointsResult.cc b/ecs/src/model/DescribeAccessPointsResult.cc index 12ab49057..649c4fa50 100644 --- a/ecs/src/model/DescribeAccessPointsResult.cc +++ b/ecs/src/model/DescribeAccessPointsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeAccessPointsResult::DescribeAccessPointsResult() : - ServiceResult() -{} - -DescribeAccessPointsResult::DescribeAccessPointsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAccessPointsResult::~DescribeAccessPointsResult() -{} - -void DescribeAccessPointsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAccessPointsResult::DescribeAccessPointsResult() : + ServiceResult() +{} + +DescribeAccessPointsResult::DescribeAccessPointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessPointsResult::~DescribeAccessPointsResult() +{} + +void DescribeAccessPointsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAccessPointSet = value["AccessPointSet"]["AccessPointType"]; for (auto value : allAccessPointSet) { @@ -68,9 +71,9 @@ void DescribeAccessPointsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + std::vector DescribeAccessPointsResult::getAccessPointSet()const { return accessPointSet_; diff --git a/ecs/src/model/DescribeAccountAttributesRequest.cc b/ecs/src/model/DescribeAccountAttributesRequest.cc index 1611be967..b0ce98cf3 100644 --- a/ecs/src/model/DescribeAccountAttributesRequest.cc +++ b/ecs/src/model/DescribeAccountAttributesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAccountAttributesRequest; - -DescribeAccountAttributesRequest::DescribeAccountAttributesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAccountAttributes") -{} - -DescribeAccountAttributesRequest::~DescribeAccountAttributesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAccountAttributesRequest; + +DescribeAccountAttributesRequest::DescribeAccountAttributesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAccountAttributes") +{} + +DescribeAccountAttributesRequest::~DescribeAccountAttributesRequest() +{} + long DescribeAccountAttributesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeAccountAttributesResult.cc b/ecs/src/model/DescribeAccountAttributesResult.cc index 9ff9162c9..ffee10c1d 100644 --- a/ecs/src/model/DescribeAccountAttributesResult.cc +++ b/ecs/src/model/DescribeAccountAttributesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeAccountAttributesResult::DescribeAccountAttributesResult() : - ServiceResult() -{} - -DescribeAccountAttributesResult::DescribeAccountAttributesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAccountAttributesResult::~DescribeAccountAttributesResult() -{} - -void DescribeAccountAttributesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAccountAttributesResult::DescribeAccountAttributesResult() : + ServiceResult() +{} + +DescribeAccountAttributesResult::DescribeAccountAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountAttributesResult::~DescribeAccountAttributesResult() +{} + +void DescribeAccountAttributesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAccountAttributeItems = value["AccountAttributeItems"]["AccountAttributeItem"]; for (auto value : allAccountAttributeItems) { @@ -66,9 +69,9 @@ void DescribeAccountAttributesResult::parse(const std::string &payload) } accountAttributeItems_.push_back(accountAttributeItemsObject); } - -} - + +} + std::vector DescribeAccountAttributesResult::getAccountAttributeItems()const { return accountAttributeItems_; diff --git a/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc b/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc index cc70ac264..96c5469a3 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoProvisioningGroupHistoryRequest; - -DescribeAutoProvisioningGroupHistoryRequest::DescribeAutoProvisioningGroupHistoryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupHistory") -{} - -DescribeAutoProvisioningGroupHistoryRequest::~DescribeAutoProvisioningGroupHistoryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoProvisioningGroupHistoryRequest; + +DescribeAutoProvisioningGroupHistoryRequest::DescribeAutoProvisioningGroupHistoryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupHistory") +{} + +DescribeAutoProvisioningGroupHistoryRequest::~DescribeAutoProvisioningGroupHistoryRequest() +{} + long DescribeAutoProvisioningGroupHistoryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc b/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc index 6d3dd5c41..d0de39491 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeAutoProvisioningGroupHistoryResult::DescribeAutoProvisioningGroupHistoryResult() : - ServiceResult() -{} - -DescribeAutoProvisioningGroupHistoryResult::DescribeAutoProvisioningGroupHistoryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAutoProvisioningGroupHistoryResult::~DescribeAutoProvisioningGroupHistoryResult() -{} - -void DescribeAutoProvisioningGroupHistoryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoProvisioningGroupHistoryResult::DescribeAutoProvisioningGroupHistoryResult() : + ServiceResult() +{} + +DescribeAutoProvisioningGroupHistoryResult::DescribeAutoProvisioningGroupHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoProvisioningGroupHistoryResult::~DescribeAutoProvisioningGroupHistoryResult() +{} + +void DescribeAutoProvisioningGroupHistoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAutoProvisioningGroupHistories = value["AutoProvisioningGroupHistories"]["AutoProvisioningGroupHistory"]; for (auto value : allAutoProvisioningGroupHistories) { @@ -70,9 +73,9 @@ void DescribeAutoProvisioningGroupHistoryResult::parse(const std::string &payloa pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeAutoProvisioningGroupHistoryResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc b/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc index 9f1dc2072..08cfe127d 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoProvisioningGroupInstancesRequest; - -DescribeAutoProvisioningGroupInstancesRequest::DescribeAutoProvisioningGroupInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupInstances") -{} - -DescribeAutoProvisioningGroupInstancesRequest::~DescribeAutoProvisioningGroupInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoProvisioningGroupInstancesRequest; + +DescribeAutoProvisioningGroupInstancesRequest::DescribeAutoProvisioningGroupInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupInstances") +{} + +DescribeAutoProvisioningGroupInstancesRequest::~DescribeAutoProvisioningGroupInstancesRequest() +{} + long DescribeAutoProvisioningGroupInstancesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc b/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc index 105720aa6..f45070fd2 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeAutoProvisioningGroupInstancesResult::DescribeAutoProvisioningGroupInstancesResult() : - ServiceResult() -{} - -DescribeAutoProvisioningGroupInstancesResult::DescribeAutoProvisioningGroupInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAutoProvisioningGroupInstancesResult::~DescribeAutoProvisioningGroupInstancesResult() -{} - -void DescribeAutoProvisioningGroupInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoProvisioningGroupInstancesResult::DescribeAutoProvisioningGroupInstancesResult() : + ServiceResult() +{} + +DescribeAutoProvisioningGroupInstancesResult::DescribeAutoProvisioningGroupInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoProvisioningGroupInstancesResult::~DescribeAutoProvisioningGroupInstancesResult() +{} + +void DescribeAutoProvisioningGroupInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstances = value["Instances"]["Instance"]; for (auto value : allInstances) { @@ -76,9 +79,9 @@ void DescribeAutoProvisioningGroupInstancesResult::parse(const std::string &payl pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeAutoProvisioningGroupInstancesResult::getInstances()const { return instances_; diff --git a/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc b/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc index 2f0c863f4..f18d1b1b8 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoProvisioningGroupsRequest; - -DescribeAutoProvisioningGroupsRequest::DescribeAutoProvisioningGroupsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroups") -{} - -DescribeAutoProvisioningGroupsRequest::~DescribeAutoProvisioningGroupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoProvisioningGroupsRequest; + +DescribeAutoProvisioningGroupsRequest::DescribeAutoProvisioningGroupsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroups") +{} + +DescribeAutoProvisioningGroupsRequest::~DescribeAutoProvisioningGroupsRequest() +{} + long DescribeAutoProvisioningGroupsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc b/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc index 1f1c2e9e1..d2b27fb43 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeAutoProvisioningGroupsResult::DescribeAutoProvisioningGroupsResult() : - ServiceResult() -{} - -DescribeAutoProvisioningGroupsResult::DescribeAutoProvisioningGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAutoProvisioningGroupsResult::~DescribeAutoProvisioningGroupsResult() -{} - -void DescribeAutoProvisioningGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoProvisioningGroupsResult::DescribeAutoProvisioningGroupsResult() : + ServiceResult() +{} + +DescribeAutoProvisioningGroupsResult::DescribeAutoProvisioningGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoProvisioningGroupsResult::~DescribeAutoProvisioningGroupsResult() +{} + +void DescribeAutoProvisioningGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAutoProvisioningGroups = value["AutoProvisioningGroups"]["AutoProvisioningGroup"]; for (auto value : allAutoProvisioningGroups) { @@ -117,9 +120,9 @@ void DescribeAutoProvisioningGroupsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeAutoProvisioningGroupsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc b/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc index 8c9a4bf17..44255dd87 100644 --- a/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc +++ b/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoSnapshotPolicyExRequest; - -DescribeAutoSnapshotPolicyExRequest::DescribeAutoSnapshotPolicyExRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx") -{} - -DescribeAutoSnapshotPolicyExRequest::~DescribeAutoSnapshotPolicyExRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAutoSnapshotPolicyExRequest; + +DescribeAutoSnapshotPolicyExRequest::DescribeAutoSnapshotPolicyExRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx") +{} + +DescribeAutoSnapshotPolicyExRequest::~DescribeAutoSnapshotPolicyExRequest() +{} + std::string DescribeAutoSnapshotPolicyExRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyExResult.cc b/ecs/src/model/DescribeAutoSnapshotPolicyExResult.cc index 844eda85e..f917141ab 100644 --- a/ecs/src/model/DescribeAutoSnapshotPolicyExResult.cc +++ b/ecs/src/model/DescribeAutoSnapshotPolicyExResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeAutoSnapshotPolicyExResult::DescribeAutoSnapshotPolicyExResult() : - ServiceResult() -{} - -DescribeAutoSnapshotPolicyExResult::DescribeAutoSnapshotPolicyExResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAutoSnapshotPolicyExResult::~DescribeAutoSnapshotPolicyExResult() -{} - -void DescribeAutoSnapshotPolicyExResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoSnapshotPolicyExResult::DescribeAutoSnapshotPolicyExResult() : + ServiceResult() +{} + +DescribeAutoSnapshotPolicyExResult::DescribeAutoSnapshotPolicyExResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoSnapshotPolicyExResult::~DescribeAutoSnapshotPolicyExResult() +{} + +void DescribeAutoSnapshotPolicyExResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAutoSnapshotPolicies = value["AutoSnapshotPolicies"]["AutoSnapshotPolicy"]; for (auto value : allAutoSnapshotPolicies) { @@ -72,9 +75,9 @@ void DescribeAutoSnapshotPolicyExResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeAutoSnapshotPolicyExResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeAvailableResourceRequest.cc b/ecs/src/model/DescribeAvailableResourceRequest.cc index 866d03e6f..f71ac16e0 100644 --- a/ecs/src/model/DescribeAvailableResourceRequest.cc +++ b/ecs/src/model/DescribeAvailableResourceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAvailableResourceRequest; - -DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAvailableResource") -{} - -DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeAvailableResource") +{} + +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() +{} + long DescribeAvailableResourceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeAvailableResourceResult.cc b/ecs/src/model/DescribeAvailableResourceResult.cc index ed2cced93..0c07c2396 100644 --- a/ecs/src/model/DescribeAvailableResourceResult.cc +++ b/ecs/src/model/DescribeAvailableResourceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeAvailableResourceResult::DescribeAvailableResourceResult() : - ServiceResult() -{} - -DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAvailableResourceResult::~DescribeAvailableResourceResult() -{} - -void DescribeAvailableResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAvailableResourceResult::DescribeAvailableResourceResult() : + ServiceResult() +{} + +DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableResourceResult::~DescribeAvailableResourceResult() +{} + +void DescribeAvailableResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAvailableZones = value["AvailableZones"]["AvailableZone"]; for (auto value : allAvailableZones) { @@ -80,9 +83,9 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) } availableZones_.push_back(availableZonesObject); } - -} - + +} + std::vector DescribeAvailableResourceResult::getAvailableZones()const { return availableZones_; diff --git a/ecs/src/model/DescribeBandwidthLimitationRequest.cc b/ecs/src/model/DescribeBandwidthLimitationRequest.cc index 2af3cd871..e6344af7a 100644 --- a/ecs/src/model/DescribeBandwidthLimitationRequest.cc +++ b/ecs/src/model/DescribeBandwidthLimitationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeBandwidthLimitationRequest; - -DescribeBandwidthLimitationRequest::DescribeBandwidthLimitationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthLimitation") -{} - -DescribeBandwidthLimitationRequest::~DescribeBandwidthLimitationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeBandwidthLimitationRequest; + +DescribeBandwidthLimitationRequest::DescribeBandwidthLimitationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthLimitation") +{} + +DescribeBandwidthLimitationRequest::~DescribeBandwidthLimitationRequest() +{} + long DescribeBandwidthLimitationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeBandwidthLimitationResult.cc b/ecs/src/model/DescribeBandwidthLimitationResult.cc index 08992e8ca..f19e21b21 100644 --- a/ecs/src/model/DescribeBandwidthLimitationResult.cc +++ b/ecs/src/model/DescribeBandwidthLimitationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeBandwidthLimitationResult::DescribeBandwidthLimitationResult() : - ServiceResult() -{} - -DescribeBandwidthLimitationResult::DescribeBandwidthLimitationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBandwidthLimitationResult::~DescribeBandwidthLimitationResult() -{} - -void DescribeBandwidthLimitationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeBandwidthLimitationResult::DescribeBandwidthLimitationResult() : + ServiceResult() +{} + +DescribeBandwidthLimitationResult::DescribeBandwidthLimitationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwidthLimitationResult::~DescribeBandwidthLimitationResult() +{} + +void DescribeBandwidthLimitationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allBandwidths = value["Bandwidths"]["Bandwidth"]; for (auto value : allBandwidths) { @@ -54,9 +57,9 @@ void DescribeBandwidthLimitationResult::parse(const std::string &payload) bandwidthsObject.unit = value["Unit"].asString(); bandwidths_.push_back(bandwidthsObject); } - -} - + +} + std::vector DescribeBandwidthLimitationResult::getBandwidths()const { return bandwidths_; diff --git a/ecs/src/model/DescribeBandwidthPackagesRequest.cc b/ecs/src/model/DescribeBandwidthPackagesRequest.cc index 9a550e5ee..f2d103f76 100644 --- a/ecs/src/model/DescribeBandwidthPackagesRequest.cc +++ b/ecs/src/model/DescribeBandwidthPackagesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeBandwidthPackagesRequest; - -DescribeBandwidthPackagesRequest::DescribeBandwidthPackagesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthPackages") -{} - -DescribeBandwidthPackagesRequest::~DescribeBandwidthPackagesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeBandwidthPackagesRequest; + +DescribeBandwidthPackagesRequest::DescribeBandwidthPackagesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthPackages") +{} + +DescribeBandwidthPackagesRequest::~DescribeBandwidthPackagesRequest() +{} + long DescribeBandwidthPackagesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeBandwidthPackagesResult.cc b/ecs/src/model/DescribeBandwidthPackagesResult.cc index 00bcb69dc..56798cc5c 100644 --- a/ecs/src/model/DescribeBandwidthPackagesResult.cc +++ b/ecs/src/model/DescribeBandwidthPackagesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult() : - ServiceResult() -{} - -DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBandwidthPackagesResult::~DescribeBandwidthPackagesResult() -{} - -void DescribeBandwidthPackagesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult() : + ServiceResult() +{} + +DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwidthPackagesResult::~DescribeBandwidthPackagesResult() +{} + +void DescribeBandwidthPackagesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allBandwidthPackages = value["BandwidthPackages"]["BandwidthPackage"]; for (auto value : allBandwidthPackages) { @@ -90,9 +93,9 @@ void DescribeBandwidthPackagesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeBandwidthPackagesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeClassicLinkInstancesRequest.cc b/ecs/src/model/DescribeClassicLinkInstancesRequest.cc index fedff4eae..8637209b6 100644 --- a/ecs/src/model/DescribeClassicLinkInstancesRequest.cc +++ b/ecs/src/model/DescribeClassicLinkInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeClassicLinkInstancesRequest; - -DescribeClassicLinkInstancesRequest::DescribeClassicLinkInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeClassicLinkInstances") -{} - -DescribeClassicLinkInstancesRequest::~DescribeClassicLinkInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeClassicLinkInstancesRequest; + +DescribeClassicLinkInstancesRequest::DescribeClassicLinkInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeClassicLinkInstances") +{} + +DescribeClassicLinkInstancesRequest::~DescribeClassicLinkInstancesRequest() +{} + std::string DescribeClassicLinkInstancesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeClassicLinkInstancesResult.cc b/ecs/src/model/DescribeClassicLinkInstancesResult.cc index 8faef561f..63944cbe9 100644 --- a/ecs/src/model/DescribeClassicLinkInstancesResult.cc +++ b/ecs/src/model/DescribeClassicLinkInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeClassicLinkInstancesResult::DescribeClassicLinkInstancesResult() : - ServiceResult() -{} - -DescribeClassicLinkInstancesResult::DescribeClassicLinkInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeClassicLinkInstancesResult::~DescribeClassicLinkInstancesResult() -{} - -void DescribeClassicLinkInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeClassicLinkInstancesResult::DescribeClassicLinkInstancesResult() : + ServiceResult() +{} + +DescribeClassicLinkInstancesResult::DescribeClassicLinkInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClassicLinkInstancesResult::~DescribeClassicLinkInstancesResult() +{} + +void DescribeClassicLinkInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLinks = value["Links"]["Link"]; for (auto value : allLinks) { @@ -56,9 +59,9 @@ void DescribeClassicLinkInstancesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeClassicLinkInstancesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeCloudAssistantStatusRequest.cc b/ecs/src/model/DescribeCloudAssistantStatusRequest.cc index 80730de10..180b08836 100644 --- a/ecs/src/model/DescribeCloudAssistantStatusRequest.cc +++ b/ecs/src/model/DescribeCloudAssistantStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeCloudAssistantStatusRequest; - -DescribeCloudAssistantStatusRequest::DescribeCloudAssistantStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeCloudAssistantStatus") -{} - -DescribeCloudAssistantStatusRequest::~DescribeCloudAssistantStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeCloudAssistantStatusRequest; + +DescribeCloudAssistantStatusRequest::DescribeCloudAssistantStatusRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeCloudAssistantStatus") +{} + +DescribeCloudAssistantStatusRequest::~DescribeCloudAssistantStatusRequest() +{} + long DescribeCloudAssistantStatusRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeCloudAssistantStatusResult.cc b/ecs/src/model/DescribeCloudAssistantStatusResult.cc index 3ad35f50f..3ffec430b 100644 --- a/ecs/src/model/DescribeCloudAssistantStatusResult.cc +++ b/ecs/src/model/DescribeCloudAssistantStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult() : - ServiceResult() -{} - -DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCloudAssistantStatusResult::~DescribeCloudAssistantStatusResult() -{} - -void DescribeCloudAssistantStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult() : + ServiceResult() +{} + +DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudAssistantStatusResult::~DescribeCloudAssistantStatusResult() +{} + +void DescribeCloudAssistantStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceCloudAssistantStatusSet = value["InstanceCloudAssistantStatusSet"]["InstanceCloudAssistantStatus"]; for (auto value : allInstanceCloudAssistantStatusSet) { @@ -50,9 +53,9 @@ void DescribeCloudAssistantStatusResult::parse(const std::string &payload) instanceCloudAssistantStatusSetObject.cloudAssistantStatus = value["CloudAssistantStatus"].asString(); instanceCloudAssistantStatusSet_.push_back(instanceCloudAssistantStatusSetObject); } - -} - + +} + std::vector DescribeCloudAssistantStatusResult::getInstanceCloudAssistantStatusSet()const { return instanceCloudAssistantStatusSet_; diff --git a/ecs/src/model/DescribeClustersRequest.cc b/ecs/src/model/DescribeClustersRequest.cc index d3fd65e44..1aaf4d1af 100644 --- a/ecs/src/model/DescribeClustersRequest.cc +++ b/ecs/src/model/DescribeClustersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeClustersRequest; - -DescribeClustersRequest::DescribeClustersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeClusters") -{} - -DescribeClustersRequest::~DescribeClustersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeClustersRequest; + +DescribeClustersRequest::DescribeClustersRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeClusters") +{} + +DescribeClustersRequest::~DescribeClustersRequest() +{} + std::string DescribeClustersRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeClustersResult.cc b/ecs/src/model/DescribeClustersResult.cc index 66c27efff..23dec5c04 100644 --- a/ecs/src/model/DescribeClustersResult.cc +++ b/ecs/src/model/DescribeClustersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeClustersResult::DescribeClustersResult() : - ServiceResult() -{} - -DescribeClustersResult::DescribeClustersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeClustersResult::~DescribeClustersResult() -{} - -void DescribeClustersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeClustersResult::DescribeClustersResult() : + ServiceResult() +{} + +DescribeClustersResult::DescribeClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClustersResult::~DescribeClustersResult() +{} + +void DescribeClustersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allClusters = value["Clusters"]["Cluster"]; for (auto value : allClusters) { @@ -48,9 +51,9 @@ void DescribeClustersResult::parse(const std::string &payload) clustersObject.clusterId = value["ClusterId"].asString(); clusters_.push_back(clustersObject); } - -} - + +} + std::vector DescribeClustersResult::getClusters()const { return clusters_; diff --git a/ecs/src/model/DescribeCommandsRequest.cc b/ecs/src/model/DescribeCommandsRequest.cc index 590249ec0..13ced9e24 100644 --- a/ecs/src/model/DescribeCommandsRequest.cc +++ b/ecs/src/model/DescribeCommandsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeCommandsRequest; - -DescribeCommandsRequest::DescribeCommandsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeCommands") -{} - -DescribeCommandsRequest::~DescribeCommandsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeCommandsRequest; + +DescribeCommandsRequest::DescribeCommandsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeCommands") +{} + +DescribeCommandsRequest::~DescribeCommandsRequest() +{} + long DescribeCommandsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeCommandsResult.cc b/ecs/src/model/DescribeCommandsResult.cc index fcb4eab7b..44c15465b 100644 --- a/ecs/src/model/DescribeCommandsResult.cc +++ b/ecs/src/model/DescribeCommandsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeCommandsResult::DescribeCommandsResult() : - ServiceResult() -{} - -DescribeCommandsResult::DescribeCommandsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCommandsResult::~DescribeCommandsResult() -{} - -void DescribeCommandsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeCommandsResult::DescribeCommandsResult() : + ServiceResult() +{} + +DescribeCommandsResult::DescribeCommandsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCommandsResult::~DescribeCommandsResult() +{} + +void DescribeCommandsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCommands = value["Commands"]["Command"]; for (auto value : allCommands) { @@ -73,9 +76,9 @@ void DescribeCommandsResult::parse(const std::string &payload) pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); - -} - + +} + long DescribeCommandsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc b/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc index d17c96530..76ba94632 100644 --- a/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc +++ b/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDedicatedHostAutoRenewRequest; - -DescribeDedicatedHostAutoRenewRequest::DescribeDedicatedHostAutoRenewRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew") -{} - -DescribeDedicatedHostAutoRenewRequest::~DescribeDedicatedHostAutoRenewRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDedicatedHostAutoRenewRequest; + +DescribeDedicatedHostAutoRenewRequest::DescribeDedicatedHostAutoRenewRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew") +{} + +DescribeDedicatedHostAutoRenewRequest::~DescribeDedicatedHostAutoRenewRequest() +{} + std::string DescribeDedicatedHostAutoRenewRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeDedicatedHostAutoRenewResult.cc b/ecs/src/model/DescribeDedicatedHostAutoRenewResult.cc index 955e4851d..8e77f389b 100644 --- a/ecs/src/model/DescribeDedicatedHostAutoRenewResult.cc +++ b/ecs/src/model/DescribeDedicatedHostAutoRenewResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDedicatedHostAutoRenewResult::DescribeDedicatedHostAutoRenewResult() : - ServiceResult() -{} - -DescribeDedicatedHostAutoRenewResult::DescribeDedicatedHostAutoRenewResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDedicatedHostAutoRenewResult::~DescribeDedicatedHostAutoRenewResult() -{} - -void DescribeDedicatedHostAutoRenewResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDedicatedHostAutoRenewResult::DescribeDedicatedHostAutoRenewResult() : + ServiceResult() +{} + +DescribeDedicatedHostAutoRenewResult::DescribeDedicatedHostAutoRenewResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDedicatedHostAutoRenewResult::~DescribeDedicatedHostAutoRenewResult() +{} + +void DescribeDedicatedHostAutoRenewResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDedicatedHostRenewAttributes = value["DedicatedHostRenewAttributes"]["DedicatedHostRenewAttribute"]; for (auto value : allDedicatedHostRenewAttributes) { @@ -56,9 +59,9 @@ void DescribeDedicatedHostAutoRenewResult::parse(const std::string &payload) dedicatedHostRenewAttributesObject.renewalStatus = value["RenewalStatus"].asString(); dedicatedHostRenewAttributes_.push_back(dedicatedHostRenewAttributesObject); } - -} - + +} + std::vector DescribeDedicatedHostAutoRenewResult::getDedicatedHostRenewAttributes()const { return dedicatedHostRenewAttributes_; diff --git a/ecs/src/model/DescribeDedicatedHostTypesRequest.cc b/ecs/src/model/DescribeDedicatedHostTypesRequest.cc index 5b90f4e4c..5736039af 100644 --- a/ecs/src/model/DescribeDedicatedHostTypesRequest.cc +++ b/ecs/src/model/DescribeDedicatedHostTypesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDedicatedHostTypesRequest; - -DescribeDedicatedHostTypesRequest::DescribeDedicatedHostTypesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostTypes") -{} - -DescribeDedicatedHostTypesRequest::~DescribeDedicatedHostTypesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDedicatedHostTypesRequest; + +DescribeDedicatedHostTypesRequest::DescribeDedicatedHostTypesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostTypes") +{} + +DescribeDedicatedHostTypesRequest::~DescribeDedicatedHostTypesRequest() +{} + long DescribeDedicatedHostTypesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeDedicatedHostTypesResult.cc b/ecs/src/model/DescribeDedicatedHostTypesResult.cc index 6c8ef779b..a5bab61a3 100644 --- a/ecs/src/model/DescribeDedicatedHostTypesResult.cc +++ b/ecs/src/model/DescribeDedicatedHostTypesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDedicatedHostTypesResult::DescribeDedicatedHostTypesResult() : - ServiceResult() -{} - -DescribeDedicatedHostTypesResult::DescribeDedicatedHostTypesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDedicatedHostTypesResult::~DescribeDedicatedHostTypesResult() -{} - -void DescribeDedicatedHostTypesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDedicatedHostTypesResult::DescribeDedicatedHostTypesResult() : + ServiceResult() +{} + +DescribeDedicatedHostTypesResult::DescribeDedicatedHostTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDedicatedHostTypesResult::~DescribeDedicatedHostTypesResult() +{} + +void DescribeDedicatedHostTypesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDedicatedHostTypes = value["DedicatedHostTypes"]["DedicatedHostType"]; for (auto value : allDedicatedHostTypes) { @@ -74,9 +77,9 @@ void DescribeDedicatedHostTypesResult::parse(const std::string &payload) dedicatedHostTypesObject.supportedInstanceTypesList.push_back(value.asString()); dedicatedHostTypes_.push_back(dedicatedHostTypesObject); } - -} - + +} + std::vector DescribeDedicatedHostTypesResult::getDedicatedHostTypes()const { return dedicatedHostTypes_; diff --git a/ecs/src/model/DescribeDedicatedHostsRequest.cc b/ecs/src/model/DescribeDedicatedHostsRequest.cc index aa991ceca..1319e2ed6 100644 --- a/ecs/src/model/DescribeDedicatedHostsRequest.cc +++ b/ecs/src/model/DescribeDedicatedHostsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDedicatedHostsRequest; - -DescribeDedicatedHostsRequest::DescribeDedicatedHostsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHosts") -{} - -DescribeDedicatedHostsRequest::~DescribeDedicatedHostsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDedicatedHostsRequest; + +DescribeDedicatedHostsRequest::DescribeDedicatedHostsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHosts") +{} + +DescribeDedicatedHostsRequest::~DescribeDedicatedHostsRequest() +{} + std::string DescribeDedicatedHostsRequest::getDedicatedHostIds()const { return dedicatedHostIds_; diff --git a/ecs/src/model/DescribeDedicatedHostsResult.cc b/ecs/src/model/DescribeDedicatedHostsResult.cc index 8714aa565..2c0df4bf7 100644 --- a/ecs/src/model/DescribeDedicatedHostsResult.cc +++ b/ecs/src/model/DescribeDedicatedHostsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDedicatedHostsResult::DescribeDedicatedHostsResult() : - ServiceResult() -{} - -DescribeDedicatedHostsResult::DescribeDedicatedHostsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDedicatedHostsResult::~DescribeDedicatedHostsResult() -{} - -void DescribeDedicatedHostsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDedicatedHostsResult::DescribeDedicatedHostsResult() : + ServiceResult() +{} + +DescribeDedicatedHostsResult::DescribeDedicatedHostsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDedicatedHostsResult::~DescribeDedicatedHostsResult() +{} + +void DescribeDedicatedHostsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDedicatedHosts = value["DedicatedHosts"]["DedicatedHost"]; for (auto value : allDedicatedHosts) { @@ -150,9 +153,9 @@ void DescribeDedicatedHostsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeDedicatedHostsResult::getDedicatedHosts()const { return dedicatedHosts_; diff --git a/ecs/src/model/DescribeDemandsRequest.cc b/ecs/src/model/DescribeDemandsRequest.cc index a64bac3ef..094ed7bf3 100644 --- a/ecs/src/model/DescribeDemandsRequest.cc +++ b/ecs/src/model/DescribeDemandsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDemandsRequest; - -DescribeDemandsRequest::DescribeDemandsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDemands") -{} - -DescribeDemandsRequest::~DescribeDemandsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDemandsRequest; + +DescribeDemandsRequest::DescribeDemandsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDemands") +{} + +DescribeDemandsRequest::~DescribeDemandsRequest() +{} + long DescribeDemandsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeDemandsResult.cc b/ecs/src/model/DescribeDemandsResult.cc index ae73aa1e4..0dd325cd5 100644 --- a/ecs/src/model/DescribeDemandsResult.cc +++ b/ecs/src/model/DescribeDemandsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDemandsResult::DescribeDemandsResult() : - ServiceResult() -{} - -DescribeDemandsResult::DescribeDemandsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDemandsResult::~DescribeDemandsResult() -{} - -void DescribeDemandsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDemandsResult::DescribeDemandsResult() : + ServiceResult() +{} + +DescribeDemandsResult::DescribeDemandsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDemandsResult::~DescribeDemandsResult() +{} + +void DescribeDemandsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDemands = value["Demands"]["Demand"]; for (auto value : allDemands) { @@ -96,9 +99,9 @@ void DescribeDemandsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); - -} - + +} + int DescribeDemandsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeDeploymentSetsRequest.cc b/ecs/src/model/DescribeDeploymentSetsRequest.cc index bfab5d655..3d6b59890 100644 --- a/ecs/src/model/DescribeDeploymentSetsRequest.cc +++ b/ecs/src/model/DescribeDeploymentSetsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDeploymentSetsRequest; - -DescribeDeploymentSetsRequest::DescribeDeploymentSetsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDeploymentSets") -{} - -DescribeDeploymentSetsRequest::~DescribeDeploymentSetsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDeploymentSetsRequest; + +DescribeDeploymentSetsRequest::DescribeDeploymentSetsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDeploymentSets") +{} + +DescribeDeploymentSetsRequest::~DescribeDeploymentSetsRequest() +{} + long DescribeDeploymentSetsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeDeploymentSetsResult.cc b/ecs/src/model/DescribeDeploymentSetsResult.cc index 217025f89..b9fc76ccf 100644 --- a/ecs/src/model/DescribeDeploymentSetsResult.cc +++ b/ecs/src/model/DescribeDeploymentSetsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDeploymentSetsResult::DescribeDeploymentSetsResult() : - ServiceResult() -{} - -DescribeDeploymentSetsResult::DescribeDeploymentSetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDeploymentSetsResult::~DescribeDeploymentSetsResult() -{} - -void DescribeDeploymentSetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDeploymentSetsResult::DescribeDeploymentSetsResult() : + ServiceResult() +{} + +DescribeDeploymentSetsResult::DescribeDeploymentSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeploymentSetsResult::~DescribeDeploymentSetsResult() +{} + +void DescribeDeploymentSetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDeploymentSets = value["DeploymentSets"]["DeploymentSet"]; for (auto value : allDeploymentSets) { @@ -75,9 +78,9 @@ void DescribeDeploymentSetsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeDeploymentSetsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeDiskMonitorDataRequest.cc b/ecs/src/model/DescribeDiskMonitorDataRequest.cc index aca89b558..69c2d1341 100644 --- a/ecs/src/model/DescribeDiskMonitorDataRequest.cc +++ b/ecs/src/model/DescribeDiskMonitorDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDiskMonitorDataRequest; - -DescribeDiskMonitorDataRequest::DescribeDiskMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskMonitorData") -{} - -DescribeDiskMonitorDataRequest::~DescribeDiskMonitorDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDiskMonitorDataRequest; + +DescribeDiskMonitorDataRequest::DescribeDiskMonitorDataRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskMonitorData") +{} + +DescribeDiskMonitorDataRequest::~DescribeDiskMonitorDataRequest() +{} + long DescribeDiskMonitorDataRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeDiskMonitorDataResult.cc b/ecs/src/model/DescribeDiskMonitorDataResult.cc index 35d1c7bc0..00d70f5f2 100644 --- a/ecs/src/model/DescribeDiskMonitorDataResult.cc +++ b/ecs/src/model/DescribeDiskMonitorDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDiskMonitorDataResult::DescribeDiskMonitorDataResult() : - ServiceResult() -{} - -DescribeDiskMonitorDataResult::DescribeDiskMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDiskMonitorDataResult::~DescribeDiskMonitorDataResult() -{} - -void DescribeDiskMonitorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDiskMonitorDataResult::DescribeDiskMonitorDataResult() : + ServiceResult() +{} + +DescribeDiskMonitorDataResult::DescribeDiskMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiskMonitorDataResult::~DescribeDiskMonitorDataResult() +{} + +void DescribeDiskMonitorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allMonitorData = value["MonitorData"]["DiskMonitorData"]; for (auto value : allMonitorData) { @@ -68,9 +71,9 @@ void DescribeDiskMonitorDataResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeDiskMonitorDataResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeDisksFullStatusRequest.cc b/ecs/src/model/DescribeDisksFullStatusRequest.cc index 6099c2240..022eced6b 100644 --- a/ecs/src/model/DescribeDisksFullStatusRequest.cc +++ b/ecs/src/model/DescribeDisksFullStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDisksFullStatusRequest; - -DescribeDisksFullStatusRequest::DescribeDisksFullStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDisksFullStatus") -{} - -DescribeDisksFullStatusRequest::~DescribeDisksFullStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDisksFullStatusRequest; + +DescribeDisksFullStatusRequest::DescribeDisksFullStatusRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDisksFullStatus") +{} + +DescribeDisksFullStatusRequest::~DescribeDisksFullStatusRequest() +{} + std::vector DescribeDisksFullStatusRequest::getEventId()const { return eventId_; diff --git a/ecs/src/model/DescribeDisksFullStatusResult.cc b/ecs/src/model/DescribeDisksFullStatusResult.cc index d6a749cb0..56a0398a7 100644 --- a/ecs/src/model/DescribeDisksFullStatusResult.cc +++ b/ecs/src/model/DescribeDisksFullStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDisksFullStatusResult::DescribeDisksFullStatusResult() : - ServiceResult() -{} - -DescribeDisksFullStatusResult::DescribeDisksFullStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDisksFullStatusResult::~DescribeDisksFullStatusResult() -{} - -void DescribeDisksFullStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDisksFullStatusResult::DescribeDisksFullStatusResult() : + ServiceResult() +{} + +DescribeDisksFullStatusResult::DescribeDisksFullStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDisksFullStatusResult::~DescribeDisksFullStatusResult() +{} + +void DescribeDisksFullStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDiskFullStatusSet = value["DiskFullStatusSet"]["DiskFullStatusType"]; for (auto value : allDiskFullStatusSet) { @@ -85,9 +88,9 @@ void DescribeDisksFullStatusResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeDisksFullStatusResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeDisksRequest.cc b/ecs/src/model/DescribeDisksRequest.cc index c15054f90..ccd23d721 100644 --- a/ecs/src/model/DescribeDisksRequest.cc +++ b/ecs/src/model/DescribeDisksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDisksRequest; - -DescribeDisksRequest::DescribeDisksRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDisks") -{} - -DescribeDisksRequest::~DescribeDisksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeDisksRequest; + +DescribeDisksRequest::DescribeDisksRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeDisks") +{} + +DescribeDisksRequest::~DescribeDisksRequest() +{} + long DescribeDisksRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeDisksResult.cc b/ecs/src/model/DescribeDisksResult.cc index 8289c118a..d3fff888b 100644 --- a/ecs/src/model/DescribeDisksResult.cc +++ b/ecs/src/model/DescribeDisksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDisksResult::DescribeDisksResult() : - ServiceResult() -{} - -DescribeDisksResult::DescribeDisksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDisksResult::~DescribeDisksResult() -{} - -void DescribeDisksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDisksResult::DescribeDisksResult() : + ServiceResult() +{} + +DescribeDisksResult::DescribeDisksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDisksResult::~DescribeDisksResult() +{} + +void DescribeDisksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDisks = value["Disks"]["Disk"]; for (auto value : allDisks) { @@ -154,9 +157,9 @@ void DescribeDisksResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeDisksResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeEipAddressesRequest.cc b/ecs/src/model/DescribeEipAddressesRequest.cc index 14e560c86..2cad7bb7c 100644 --- a/ecs/src/model/DescribeEipAddressesRequest.cc +++ b/ecs/src/model/DescribeEipAddressesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeEipAddressesRequest; - -DescribeEipAddressesRequest::DescribeEipAddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeEipAddresses") -{} - -DescribeEipAddressesRequest::~DescribeEipAddressesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeEipAddressesRequest; + +DescribeEipAddressesRequest::DescribeEipAddressesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeEipAddresses") +{} + +DescribeEipAddressesRequest::~DescribeEipAddressesRequest() +{} + long DescribeEipAddressesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeEipAddressesResult.cc b/ecs/src/model/DescribeEipAddressesResult.cc index dc62ab3b8..3af098c9f 100644 --- a/ecs/src/model/DescribeEipAddressesResult.cc +++ b/ecs/src/model/DescribeEipAddressesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeEipAddressesResult::DescribeEipAddressesResult() : - ServiceResult() -{} - -DescribeEipAddressesResult::DescribeEipAddressesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeEipAddressesResult::~DescribeEipAddressesResult() -{} - -void DescribeEipAddressesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEipAddressesResult::DescribeEipAddressesResult() : + ServiceResult() +{} + +DescribeEipAddressesResult::DescribeEipAddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEipAddressesResult::~DescribeEipAddressesResult() +{} + +void DescribeEipAddressesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allEipAddresses = value["EipAddresses"]["EipAddress"]; for (auto value : allEipAddresses) { @@ -84,9 +87,9 @@ void DescribeEipAddressesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeEipAddressesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeEipMonitorDataRequest.cc b/ecs/src/model/DescribeEipMonitorDataRequest.cc index 55736051b..978c2bc58 100644 --- a/ecs/src/model/DescribeEipMonitorDataRequest.cc +++ b/ecs/src/model/DescribeEipMonitorDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeEipMonitorDataRequest; - -DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeEipMonitorData") -{} - -DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeEipMonitorDataRequest; + +DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeEipMonitorData") +{} + +DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() +{} + long DescribeEipMonitorDataRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeEipMonitorDataResult.cc b/ecs/src/model/DescribeEipMonitorDataResult.cc index dc5d9d78c..8ad60513a 100644 --- a/ecs/src/model/DescribeEipMonitorDataResult.cc +++ b/ecs/src/model/DescribeEipMonitorDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeEipMonitorDataResult::DescribeEipMonitorDataResult() : - ServiceResult() -{} - -DescribeEipMonitorDataResult::DescribeEipMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeEipMonitorDataResult::~DescribeEipMonitorDataResult() -{} - -void DescribeEipMonitorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEipMonitorDataResult::DescribeEipMonitorDataResult() : + ServiceResult() +{} + +DescribeEipMonitorDataResult::DescribeEipMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEipMonitorDataResult::~DescribeEipMonitorDataResult() +{} + +void DescribeEipMonitorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"]; for (auto value : allEipMonitorDatas) { @@ -58,9 +61,9 @@ void DescribeEipMonitorDataResult::parse(const std::string &payload) eipMonitorDatasObject.timeStamp = value["TimeStamp"].asString(); eipMonitorDatas_.push_back(eipMonitorDatasObject); } - -} - + +} + std::vector DescribeEipMonitorDataResult::getEipMonitorDatas()const { return eipMonitorDatas_; diff --git a/ecs/src/model/DescribeEniMonitorDataRequest.cc b/ecs/src/model/DescribeEniMonitorDataRequest.cc index a2d292604..699c8ee79 100644 --- a/ecs/src/model/DescribeEniMonitorDataRequest.cc +++ b/ecs/src/model/DescribeEniMonitorDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeEniMonitorDataRequest; - -DescribeEniMonitorDataRequest::DescribeEniMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeEniMonitorData") -{} - -DescribeEniMonitorDataRequest::~DescribeEniMonitorDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeEniMonitorDataRequest; + +DescribeEniMonitorDataRequest::DescribeEniMonitorDataRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeEniMonitorData") +{} + +DescribeEniMonitorDataRequest::~DescribeEniMonitorDataRequest() +{} + long DescribeEniMonitorDataRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeEniMonitorDataResult.cc b/ecs/src/model/DescribeEniMonitorDataResult.cc index 1312df083..f67e851ec 100644 --- a/ecs/src/model/DescribeEniMonitorDataResult.cc +++ b/ecs/src/model/DescribeEniMonitorDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeEniMonitorDataResult::DescribeEniMonitorDataResult() : - ServiceResult() -{} - -DescribeEniMonitorDataResult::DescribeEniMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeEniMonitorDataResult::~DescribeEniMonitorDataResult() -{} - -void DescribeEniMonitorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEniMonitorDataResult::DescribeEniMonitorDataResult() : + ServiceResult() +{} + +DescribeEniMonitorDataResult::DescribeEniMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEniMonitorDataResult::~DescribeEniMonitorDataResult() +{} + +void DescribeEniMonitorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allMonitorData = value["MonitorData"]["EniMonitorData"]; for (auto value : allMonitorData) { @@ -64,9 +67,9 @@ void DescribeEniMonitorDataResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeEniMonitorDataResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeFleetHistoryRequest.cc b/ecs/src/model/DescribeFleetHistoryRequest.cc index 4700c12cc..3145a6c75 100644 --- a/ecs/src/model/DescribeFleetHistoryRequest.cc +++ b/ecs/src/model/DescribeFleetHistoryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeFleetHistoryRequest; - -DescribeFleetHistoryRequest::DescribeFleetHistoryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetHistory") -{} - -DescribeFleetHistoryRequest::~DescribeFleetHistoryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeFleetHistoryRequest; + +DescribeFleetHistoryRequest::DescribeFleetHistoryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetHistory") +{} + +DescribeFleetHistoryRequest::~DescribeFleetHistoryRequest() +{} + long DescribeFleetHistoryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeFleetHistoryResult.cc b/ecs/src/model/DescribeFleetHistoryResult.cc index 9616f43b7..f95c1595d 100644 --- a/ecs/src/model/DescribeFleetHistoryResult.cc +++ b/ecs/src/model/DescribeFleetHistoryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeFleetHistoryResult::DescribeFleetHistoryResult() : - ServiceResult() -{} - -DescribeFleetHistoryResult::DescribeFleetHistoryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFleetHistoryResult::~DescribeFleetHistoryResult() -{} - -void DescribeFleetHistoryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeFleetHistoryResult::DescribeFleetHistoryResult() : + ServiceResult() +{} + +DescribeFleetHistoryResult::DescribeFleetHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFleetHistoryResult::~DescribeFleetHistoryResult() +{} + +void DescribeFleetHistoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFleetHistorys = value["FleetHistorys"]["FleetHistory"]; for (auto value : allFleetHistorys) { @@ -70,9 +73,9 @@ void DescribeFleetHistoryResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeFleetHistoryResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeFleetInstancesRequest.cc b/ecs/src/model/DescribeFleetInstancesRequest.cc index 735779f5c..a8e1ab81a 100644 --- a/ecs/src/model/DescribeFleetInstancesRequest.cc +++ b/ecs/src/model/DescribeFleetInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeFleetInstancesRequest; - -DescribeFleetInstancesRequest::DescribeFleetInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetInstances") -{} - -DescribeFleetInstancesRequest::~DescribeFleetInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeFleetInstancesRequest; + +DescribeFleetInstancesRequest::DescribeFleetInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetInstances") +{} + +DescribeFleetInstancesRequest::~DescribeFleetInstancesRequest() +{} + long DescribeFleetInstancesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeFleetInstancesResult.cc b/ecs/src/model/DescribeFleetInstancesResult.cc index c252f3cd1..185378bc9 100644 --- a/ecs/src/model/DescribeFleetInstancesResult.cc +++ b/ecs/src/model/DescribeFleetInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeFleetInstancesResult::DescribeFleetInstancesResult() : - ServiceResult() -{} - -DescribeFleetInstancesResult::DescribeFleetInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFleetInstancesResult::~DescribeFleetInstancesResult() -{} - -void DescribeFleetInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeFleetInstancesResult::DescribeFleetInstancesResult() : + ServiceResult() +{} + +DescribeFleetInstancesResult::DescribeFleetInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFleetInstancesResult::~DescribeFleetInstancesResult() +{} + +void DescribeFleetInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstances = value["Instances"]["Instance"]; for (auto value : allInstances) { @@ -78,9 +81,9 @@ void DescribeFleetInstancesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeFleetInstancesResult::getInstances()const { return instances_; diff --git a/ecs/src/model/DescribeFleetsRequest.cc b/ecs/src/model/DescribeFleetsRequest.cc index 72a051f9d..bb55f3dd0 100644 --- a/ecs/src/model/DescribeFleetsRequest.cc +++ b/ecs/src/model/DescribeFleetsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeFleetsRequest; - -DescribeFleetsRequest::DescribeFleetsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeFleets") -{} - -DescribeFleetsRequest::~DescribeFleetsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeFleetsRequest; + +DescribeFleetsRequest::DescribeFleetsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeFleets") +{} + +DescribeFleetsRequest::~DescribeFleetsRequest() +{} + long DescribeFleetsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeFleetsResult.cc b/ecs/src/model/DescribeFleetsResult.cc index 528d3aafa..17a278c73 100644 --- a/ecs/src/model/DescribeFleetsResult.cc +++ b/ecs/src/model/DescribeFleetsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeFleetsResult::DescribeFleetsResult() : - ServiceResult() -{} - -DescribeFleetsResult::DescribeFleetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFleetsResult::~DescribeFleetsResult() -{} - -void DescribeFleetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeFleetsResult::DescribeFleetsResult() : + ServiceResult() +{} + +DescribeFleetsResult::DescribeFleetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFleetsResult::~DescribeFleetsResult() +{} + +void DescribeFleetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFleets = value["Fleets"]["Fleet"]; for (auto value : allFleets) { @@ -119,9 +122,9 @@ void DescribeFleetsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeFleetsResult::getFleets()const { return fleets_; diff --git a/ecs/src/model/DescribeForwardTableEntriesRequest.cc b/ecs/src/model/DescribeForwardTableEntriesRequest.cc index 276301749..cc24cd2a1 100644 --- a/ecs/src/model/DescribeForwardTableEntriesRequest.cc +++ b/ecs/src/model/DescribeForwardTableEntriesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeForwardTableEntriesRequest; - -DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeForwardTableEntries") -{} - -DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeForwardTableEntriesRequest; + +DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeForwardTableEntries") +{} + +DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() +{} + long DescribeForwardTableEntriesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeForwardTableEntriesResult.cc b/ecs/src/model/DescribeForwardTableEntriesResult.cc index 0b0d13217..4058bf613 100644 --- a/ecs/src/model/DescribeForwardTableEntriesResult.cc +++ b/ecs/src/model/DescribeForwardTableEntriesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult() : - ServiceResult() -{} - -DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeForwardTableEntriesResult::~DescribeForwardTableEntriesResult() -{} - -void DescribeForwardTableEntriesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult() : + ServiceResult() +{} + +DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeForwardTableEntriesResult::~DescribeForwardTableEntriesResult() +{} + +void DescribeForwardTableEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allForwardTableEntries = value["ForwardTableEntries"]["ForwardTableEntry"]; for (auto value : allForwardTableEntries) { @@ -68,9 +71,9 @@ void DescribeForwardTableEntriesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeForwardTableEntriesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeHaVipsRequest.cc b/ecs/src/model/DescribeHaVipsRequest.cc index b9dc2a009..49aa9caa2 100644 --- a/ecs/src/model/DescribeHaVipsRequest.cc +++ b/ecs/src/model/DescribeHaVipsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeHaVipsRequest; - -DescribeHaVipsRequest::DescribeHaVipsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeHaVips") -{} - -DescribeHaVipsRequest::~DescribeHaVipsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeHaVipsRequest; + +DescribeHaVipsRequest::DescribeHaVipsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeHaVips") +{} + +DescribeHaVipsRequest::~DescribeHaVipsRequest() +{} + std::vector DescribeHaVipsRequest::getFilter()const { return filter_; diff --git a/ecs/src/model/DescribeHaVipsResult.cc b/ecs/src/model/DescribeHaVipsResult.cc index 3267b3c60..1bbc4d9c7 100644 --- a/ecs/src/model/DescribeHaVipsResult.cc +++ b/ecs/src/model/DescribeHaVipsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeHaVipsResult::DescribeHaVipsResult() : - ServiceResult() -{} - -DescribeHaVipsResult::DescribeHaVipsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeHaVipsResult::~DescribeHaVipsResult() -{} - -void DescribeHaVipsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeHaVipsResult::DescribeHaVipsResult() : + ServiceResult() +{} + +DescribeHaVipsResult::DescribeHaVipsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHaVipsResult::~DescribeHaVipsResult() +{} + +void DescribeHaVipsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allHaVips = value["HaVips"]["HaVip"]; for (auto value : allHaVips) { @@ -76,9 +79,9 @@ void DescribeHaVipsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeHaVipsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeHpcClustersRequest.cc b/ecs/src/model/DescribeHpcClustersRequest.cc index 2cf1caf2a..00415f40b 100644 --- a/ecs/src/model/DescribeHpcClustersRequest.cc +++ b/ecs/src/model/DescribeHpcClustersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeHpcClustersRequest; - -DescribeHpcClustersRequest::DescribeHpcClustersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeHpcClusters") -{} - -DescribeHpcClustersRequest::~DescribeHpcClustersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeHpcClustersRequest; + +DescribeHpcClustersRequest::DescribeHpcClustersRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeHpcClusters") +{} + +DescribeHpcClustersRequest::~DescribeHpcClustersRequest() +{} + long DescribeHpcClustersRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeHpcClustersResult.cc b/ecs/src/model/DescribeHpcClustersResult.cc index eab6c870f..5f0677955 100644 --- a/ecs/src/model/DescribeHpcClustersResult.cc +++ b/ecs/src/model/DescribeHpcClustersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeHpcClustersResult::DescribeHpcClustersResult() : - ServiceResult() -{} - -DescribeHpcClustersResult::DescribeHpcClustersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeHpcClustersResult::~DescribeHpcClustersResult() -{} - -void DescribeHpcClustersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeHpcClustersResult::DescribeHpcClustersResult() : + ServiceResult() +{} + +DescribeHpcClustersResult::DescribeHpcClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHpcClustersResult::~DescribeHpcClustersResult() +{} + +void DescribeHpcClustersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allHpcClusters = value["HpcClusters"]["HpcCluster"]; for (auto value : allHpcClusters) { @@ -58,9 +61,9 @@ void DescribeHpcClustersResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeHpcClustersResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeImageSharePermissionRequest.cc b/ecs/src/model/DescribeImageSharePermissionRequest.cc index 4c797f4b3..f1439fc1d 100644 --- a/ecs/src/model/DescribeImageSharePermissionRequest.cc +++ b/ecs/src/model/DescribeImageSharePermissionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeImageSharePermissionRequest; - -DescribeImageSharePermissionRequest::DescribeImageSharePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSharePermission") -{} - -DescribeImageSharePermissionRequest::~DescribeImageSharePermissionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeImageSharePermissionRequest; + +DescribeImageSharePermissionRequest::DescribeImageSharePermissionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSharePermission") +{} + +DescribeImageSharePermissionRequest::~DescribeImageSharePermissionRequest() +{} + std::string DescribeImageSharePermissionRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeImageSharePermissionResult.cc b/ecs/src/model/DescribeImageSharePermissionResult.cc index 5c793704a..3a6c32feb 100644 --- a/ecs/src/model/DescribeImageSharePermissionResult.cc +++ b/ecs/src/model/DescribeImageSharePermissionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeImageSharePermissionResult::DescribeImageSharePermissionResult() : - ServiceResult() -{} - -DescribeImageSharePermissionResult::DescribeImageSharePermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeImageSharePermissionResult::~DescribeImageSharePermissionResult() -{} - -void DescribeImageSharePermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImageSharePermissionResult::DescribeImageSharePermissionResult() : + ServiceResult() +{} + +DescribeImageSharePermissionResult::DescribeImageSharePermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageSharePermissionResult::~DescribeImageSharePermissionResult() +{} + +void DescribeImageSharePermissionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allShareGroups = value["ShareGroups"]["ShareGroup"]; for (auto value : allShareGroups) { @@ -66,9 +69,9 @@ void DescribeImageSharePermissionResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); - -} - + +} + int DescribeImageSharePermissionResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc b/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc index d30039309..127295c7d 100644 --- a/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc +++ b/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeImageSupportInstanceTypesRequest; - -DescribeImageSupportInstanceTypesRequest::DescribeImageSupportInstanceTypesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSupportInstanceTypes") -{} - -DescribeImageSupportInstanceTypesRequest::~DescribeImageSupportInstanceTypesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeImageSupportInstanceTypesRequest; + +DescribeImageSupportInstanceTypesRequest::DescribeImageSupportInstanceTypesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSupportInstanceTypes") +{} + +DescribeImageSupportInstanceTypesRequest::~DescribeImageSupportInstanceTypesRequest() +{} + std::string DescribeImageSupportInstanceTypesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc b/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc index 25b03370b..bba55217b 100644 --- a/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc +++ b/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeImageSupportInstanceTypesResult::DescribeImageSupportInstanceTypesResult() : - ServiceResult() -{} - -DescribeImageSupportInstanceTypesResult::DescribeImageSupportInstanceTypesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeImageSupportInstanceTypesResult::~DescribeImageSupportInstanceTypesResult() -{} - -void DescribeImageSupportInstanceTypesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImageSupportInstanceTypesResult::DescribeImageSupportInstanceTypesResult() : + ServiceResult() +{} + +DescribeImageSupportInstanceTypesResult::DescribeImageSupportInstanceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageSupportInstanceTypesResult::~DescribeImageSupportInstanceTypesResult() +{} + +void DescribeImageSupportInstanceTypesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceTypes = value["InstanceTypes"]["InstanceType"]; for (auto value : allInstanceTypes) { @@ -58,9 +61,9 @@ void DescribeImageSupportInstanceTypesResult::parse(const std::string &payload) regionId_ = value["RegionId"].asString(); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); - -} - + +} + std::string DescribeImageSupportInstanceTypesResult::getImageId()const { return imageId_; diff --git a/ecs/src/model/DescribeImagesRequest.cc b/ecs/src/model/DescribeImagesRequest.cc index bd15ce5e6..b99b8b8bd 100644 --- a/ecs/src/model/DescribeImagesRequest.cc +++ b/ecs/src/model/DescribeImagesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeImagesRequest; - -DescribeImagesRequest::DescribeImagesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImages") -{} - -DescribeImagesRequest::~DescribeImagesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeImagesRequest; + +DescribeImagesRequest::DescribeImagesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeImages") +{} + +DescribeImagesRequest::~DescribeImagesRequest() +{} + std::string DescribeImagesRequest::getActionType()const { return actionType_; diff --git a/ecs/src/model/DescribeImagesResult.cc b/ecs/src/model/DescribeImagesResult.cc index b0da3d7f2..f0416b9b0 100644 --- a/ecs/src/model/DescribeImagesResult.cc +++ b/ecs/src/model/DescribeImagesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeImagesResult::DescribeImagesResult() : - ServiceResult() -{} - -DescribeImagesResult::DescribeImagesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeImagesResult::~DescribeImagesResult() -{} - -void DescribeImagesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImagesResult::DescribeImagesResult() : + ServiceResult() +{} + +DescribeImagesResult::DescribeImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImagesResult::~DescribeImagesResult() +{} + +void DescribeImagesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allImages = value["Images"]["Image"]; for (auto value : allImages) { @@ -132,9 +135,9 @@ void DescribeImagesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeImagesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeInstanceAttributeRequest.cc b/ecs/src/model/DescribeInstanceAttributeRequest.cc index ccd85ab41..45c76811e 100644 --- a/ecs/src/model/DescribeInstanceAttributeRequest.cc +++ b/ecs/src/model/DescribeInstanceAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceAttributeRequest; - -DescribeInstanceAttributeRequest::DescribeInstanceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAttribute") -{} - -DescribeInstanceAttributeRequest::~DescribeInstanceAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceAttributeRequest; + +DescribeInstanceAttributeRequest::DescribeInstanceAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAttribute") +{} + +DescribeInstanceAttributeRequest::~DescribeInstanceAttributeRequest() +{} + std::string DescribeInstanceAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceAttributeResult.cc b/ecs/src/model/DescribeInstanceAttributeResult.cc index dd02830d4..ae9cce8b5 100644 --- a/ecs/src/model/DescribeInstanceAttributeResult.cc +++ b/ecs/src/model/DescribeInstanceAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceAttributeResult::DescribeInstanceAttributeResult() : - ServiceResult() -{} - -DescribeInstanceAttributeResult::DescribeInstanceAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceAttributeResult::~DescribeInstanceAttributeResult() -{} - -void DescribeInstanceAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceAttributeResult::DescribeInstanceAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAttributeResult::DescribeInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAttributeResult::~DescribeInstanceAttributeResult() +{} + +void DescribeInstanceAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allOperationLocks = value["OperationLocks"]["LockReason"]; for (auto value : allOperationLocks) { @@ -129,9 +132,9 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload) stoppedMode_ = value["StoppedMode"].asString(); if(!value["CreditSpecification"].isNull()) creditSpecification_ = value["CreditSpecification"].asString(); - -} - + +} + std::string DescribeInstanceAttributeResult::getDescription()const { return description_; diff --git a/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc b/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc index 6cf6a71df..fa7efef26 100644 --- a/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc +++ b/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceAutoRenewAttributeRequest; - -DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute") -{} - -DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceAutoRenewAttributeRequest; + +DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute") +{} + +DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() +{} + std::string DescribeInstanceAutoRenewAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc b/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc index d56d7419b..e7696955b 100644 --- a/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc +++ b/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult() : - ServiceResult() -{} - -DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceAutoRenewAttributeResult::~DescribeInstanceAutoRenewAttributeResult() -{} - -void DescribeInstanceAutoRenewAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAutoRenewAttributeResult::~DescribeInstanceAutoRenewAttributeResult() +{} + +void DescribeInstanceAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceRenewAttributes = value["InstanceRenewAttributes"]["InstanceRenewAttribute"]; for (auto value : allInstanceRenewAttributes) { @@ -62,9 +65,9 @@ void DescribeInstanceAutoRenewAttributeResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeInstanceAutoRenewAttributeResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc b/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc index ef1376d39..036195c5d 100644 --- a/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc +++ b/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceHistoryEventsRequest; - -DescribeInstanceHistoryEventsRequest::DescribeInstanceHistoryEventsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceHistoryEvents") -{} - -DescribeInstanceHistoryEventsRequest::~DescribeInstanceHistoryEventsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceHistoryEventsRequest; + +DescribeInstanceHistoryEventsRequest::DescribeInstanceHistoryEventsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceHistoryEvents") +{} + +DescribeInstanceHistoryEventsRequest::~DescribeInstanceHistoryEventsRequest() +{} + std::vector DescribeInstanceHistoryEventsRequest::getEventId()const { return eventId_; diff --git a/ecs/src/model/DescribeInstanceHistoryEventsResult.cc b/ecs/src/model/DescribeInstanceHistoryEventsResult.cc index df14ba215..a7bc94e21 100644 --- a/ecs/src/model/DescribeInstanceHistoryEventsResult.cc +++ b/ecs/src/model/DescribeInstanceHistoryEventsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceHistoryEventsResult::DescribeInstanceHistoryEventsResult() : - ServiceResult() -{} - -DescribeInstanceHistoryEventsResult::DescribeInstanceHistoryEventsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceHistoryEventsResult::~DescribeInstanceHistoryEventsResult() -{} - -void DescribeInstanceHistoryEventsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceHistoryEventsResult::DescribeInstanceHistoryEventsResult() : + ServiceResult() +{} + +DescribeInstanceHistoryEventsResult::DescribeInstanceHistoryEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceHistoryEventsResult::~DescribeInstanceHistoryEventsResult() +{} + +void DescribeInstanceHistoryEventsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceSystemEventSet = value["InstanceSystemEventSet"]["InstanceSystemEventType"]; for (auto value : allInstanceSystemEventSet) { @@ -77,9 +80,9 @@ void DescribeInstanceHistoryEventsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeInstanceHistoryEventsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeInstanceMonitorDataRequest.cc b/ecs/src/model/DescribeInstanceMonitorDataRequest.cc index 05e810389..b12ac7c39 100644 --- a/ecs/src/model/DescribeInstanceMonitorDataRequest.cc +++ b/ecs/src/model/DescribeInstanceMonitorDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceMonitorDataRequest; - -DescribeInstanceMonitorDataRequest::DescribeInstanceMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceMonitorData") -{} - -DescribeInstanceMonitorDataRequest::~DescribeInstanceMonitorDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceMonitorDataRequest; + +DescribeInstanceMonitorDataRequest::DescribeInstanceMonitorDataRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceMonitorData") +{} + +DescribeInstanceMonitorDataRequest::~DescribeInstanceMonitorDataRequest() +{} + long DescribeInstanceMonitorDataRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeInstanceMonitorDataResult.cc b/ecs/src/model/DescribeInstanceMonitorDataResult.cc index 713094a65..1a2cfaf84 100644 --- a/ecs/src/model/DescribeInstanceMonitorDataResult.cc +++ b/ecs/src/model/DescribeInstanceMonitorDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceMonitorDataResult::DescribeInstanceMonitorDataResult() : - ServiceResult() -{} - -DescribeInstanceMonitorDataResult::DescribeInstanceMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceMonitorDataResult::~DescribeInstanceMonitorDataResult() -{} - -void DescribeInstanceMonitorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceMonitorDataResult::DescribeInstanceMonitorDataResult() : + ServiceResult() +{} + +DescribeInstanceMonitorDataResult::DescribeInstanceMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceMonitorDataResult::~DescribeInstanceMonitorDataResult() +{} + +void DescribeInstanceMonitorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allMonitorData = value["MonitorData"]["InstanceMonitorData"]; for (auto value : allMonitorData) { @@ -80,9 +83,9 @@ void DescribeInstanceMonitorDataResult::parse(const std::string &payload) monitorDataObject.timeStamp = value["TimeStamp"].asString(); monitorData_.push_back(monitorDataObject); } - -} - + +} + std::vector DescribeInstanceMonitorDataResult::getMonitorData()const { return monitorData_; diff --git a/ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc b/ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc index 11ba81105..5d5796558 100644 --- a/ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc +++ b/ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstancePhysicalAttributeRequest; - -DescribeInstancePhysicalAttributeRequest::DescribeInstancePhysicalAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstancePhysicalAttribute") -{} - -DescribeInstancePhysicalAttributeRequest::~DescribeInstancePhysicalAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstancePhysicalAttributeRequest; + +DescribeInstancePhysicalAttributeRequest::DescribeInstancePhysicalAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstancePhysicalAttribute") +{} + +DescribeInstancePhysicalAttributeRequest::~DescribeInstancePhysicalAttributeRequest() +{} + std::string DescribeInstancePhysicalAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstancePhysicalAttributeResult.cc b/ecs/src/model/DescribeInstancePhysicalAttributeResult.cc index d0bc7a660..86ca9a099 100644 --- a/ecs/src/model/DescribeInstancePhysicalAttributeResult.cc +++ b/ecs/src/model/DescribeInstancePhysicalAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstancePhysicalAttributeResult::DescribeInstancePhysicalAttributeResult() : - ServiceResult() -{} - -DescribeInstancePhysicalAttributeResult::DescribeInstancePhysicalAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstancePhysicalAttributeResult::~DescribeInstancePhysicalAttributeResult() -{} - -void DescribeInstancePhysicalAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancePhysicalAttributeResult::DescribeInstancePhysicalAttributeResult() : + ServiceResult() +{} + +DescribeInstancePhysicalAttributeResult::DescribeInstancePhysicalAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancePhysicalAttributeResult::~DescribeInstancePhysicalAttributeResult() +{} + +void DescribeInstancePhysicalAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["VlanId"].isNull()) @@ -48,9 +51,9 @@ void DescribeInstancePhysicalAttributeResult::parse(const std::string &payload) nodeControllerId_ = value["NodeControllerId"].asString(); if(!value["RackId"].isNull()) rackId_ = value["RackId"].asString(); - -} - + +} + std::string DescribeInstancePhysicalAttributeResult::getRackId()const { return rackId_; diff --git a/ecs/src/model/DescribeInstanceRamRoleRequest.cc b/ecs/src/model/DescribeInstanceRamRoleRequest.cc index bde96378d..b1b434c28 100644 --- a/ecs/src/model/DescribeInstanceRamRoleRequest.cc +++ b/ecs/src/model/DescribeInstanceRamRoleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceRamRoleRequest; - -DescribeInstanceRamRoleRequest::DescribeInstanceRamRoleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceRamRole") -{} - -DescribeInstanceRamRoleRequest::~DescribeInstanceRamRoleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceRamRoleRequest; + +DescribeInstanceRamRoleRequest::DescribeInstanceRamRoleRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceRamRole") +{} + +DescribeInstanceRamRoleRequest::~DescribeInstanceRamRoleRequest() +{} + std::string DescribeInstanceRamRoleRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceRamRoleResult.cc b/ecs/src/model/DescribeInstanceRamRoleResult.cc index 6e5d51c43..b92b31a0c 100644 --- a/ecs/src/model/DescribeInstanceRamRoleResult.cc +++ b/ecs/src/model/DescribeInstanceRamRoleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceRamRoleResult::DescribeInstanceRamRoleResult() : - ServiceResult() -{} - -DescribeInstanceRamRoleResult::DescribeInstanceRamRoleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceRamRoleResult::~DescribeInstanceRamRoleResult() -{} - -void DescribeInstanceRamRoleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceRamRoleResult::DescribeInstanceRamRoleResult() : + ServiceResult() +{} + +DescribeInstanceRamRoleResult::DescribeInstanceRamRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceRamRoleResult::~DescribeInstanceRamRoleResult() +{} + +void DescribeInstanceRamRoleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceRamRoleSets = value["InstanceRamRoleSets"]["InstanceRamRoleSet"]; for (auto value : allInstanceRamRoleSets) { @@ -54,9 +57,9 @@ void DescribeInstanceRamRoleResult::parse(const std::string &payload) regionId_ = value["RegionId"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeInstanceRamRoleResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeInstanceStatusRequest.cc b/ecs/src/model/DescribeInstanceStatusRequest.cc index 1bec2bf4f..193ebe936 100644 --- a/ecs/src/model/DescribeInstanceStatusRequest.cc +++ b/ecs/src/model/DescribeInstanceStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceStatusRequest; - -DescribeInstanceStatusRequest::DescribeInstanceStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceStatus") -{} - -DescribeInstanceStatusRequest::~DescribeInstanceStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceStatusRequest; + +DescribeInstanceStatusRequest::DescribeInstanceStatusRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceStatus") +{} + +DescribeInstanceStatusRequest::~DescribeInstanceStatusRequest() +{} + std::string DescribeInstanceStatusRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceStatusResult.cc b/ecs/src/model/DescribeInstanceStatusResult.cc index 73b9840df..0dba93fd7 100644 --- a/ecs/src/model/DescribeInstanceStatusResult.cc +++ b/ecs/src/model/DescribeInstanceStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceStatusResult::DescribeInstanceStatusResult() : - ServiceResult() -{} - -DescribeInstanceStatusResult::DescribeInstanceStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceStatusResult::~DescribeInstanceStatusResult() -{} - -void DescribeInstanceStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceStatusResult::DescribeInstanceStatusResult() : + ServiceResult() +{} + +DescribeInstanceStatusResult::DescribeInstanceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceStatusResult::~DescribeInstanceStatusResult() +{} + +void DescribeInstanceStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceStatuses = value["InstanceStatuses"]["InstanceStatus"]; for (auto value : allInstanceStatuses) { @@ -56,9 +59,9 @@ void DescribeInstanceStatusResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeInstanceStatusResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeInstanceTopologyRequest.cc b/ecs/src/model/DescribeInstanceTopologyRequest.cc index c78f76faa..c3e352c08 100644 --- a/ecs/src/model/DescribeInstanceTopologyRequest.cc +++ b/ecs/src/model/DescribeInstanceTopologyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceTopologyRequest; - -DescribeInstanceTopologyRequest::DescribeInstanceTopologyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTopology") -{} - -DescribeInstanceTopologyRequest::~DescribeInstanceTopologyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceTopologyRequest; + +DescribeInstanceTopologyRequest::DescribeInstanceTopologyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTopology") +{} + +DescribeInstanceTopologyRequest::~DescribeInstanceTopologyRequest() +{} + std::string DescribeInstanceTopologyRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceTopologyResult.cc b/ecs/src/model/DescribeInstanceTopologyResult.cc index 923fbe33d..1ea7e2398 100644 --- a/ecs/src/model/DescribeInstanceTopologyResult.cc +++ b/ecs/src/model/DescribeInstanceTopologyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceTopologyResult::DescribeInstanceTopologyResult() : - ServiceResult() -{} - -DescribeInstanceTopologyResult::DescribeInstanceTopologyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceTopologyResult::~DescribeInstanceTopologyResult() -{} - -void DescribeInstanceTopologyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceTopologyResult::DescribeInstanceTopologyResult() : + ServiceResult() +{} + +DescribeInstanceTopologyResult::DescribeInstanceTopologyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceTopologyResult::~DescribeInstanceTopologyResult() +{} + +void DescribeInstanceTopologyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTopologys = value["Topologys"]["Topology"]; for (auto value : allTopologys) { @@ -50,9 +53,9 @@ void DescribeInstanceTopologyResult::parse(const std::string &payload) topologysObject.hostId = value["HostId"].asString(); topologys_.push_back(topologysObject); } - -} - + +} + std::vector DescribeInstanceTopologyResult::getTopologys()const { return topologys_; diff --git a/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc b/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc index 756cec06c..d6cc9f982 100644 --- a/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc +++ b/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceTypeFamiliesRequest; - -DescribeInstanceTypeFamiliesRequest::DescribeInstanceTypeFamiliesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypeFamilies") -{} - -DescribeInstanceTypeFamiliesRequest::~DescribeInstanceTypeFamiliesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceTypeFamiliesRequest; + +DescribeInstanceTypeFamiliesRequest::DescribeInstanceTypeFamiliesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypeFamilies") +{} + +DescribeInstanceTypeFamiliesRequest::~DescribeInstanceTypeFamiliesRequest() +{} + std::string DescribeInstanceTypeFamiliesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc b/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc index 920e367ca..994338025 100644 --- a/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc +++ b/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceTypeFamiliesResult::DescribeInstanceTypeFamiliesResult() : - ServiceResult() -{} - -DescribeInstanceTypeFamiliesResult::DescribeInstanceTypeFamiliesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceTypeFamiliesResult::~DescribeInstanceTypeFamiliesResult() -{} - -void DescribeInstanceTypeFamiliesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceTypeFamiliesResult::DescribeInstanceTypeFamiliesResult() : + ServiceResult() +{} + +DescribeInstanceTypeFamiliesResult::DescribeInstanceTypeFamiliesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceTypeFamiliesResult::~DescribeInstanceTypeFamiliesResult() +{} + +void DescribeInstanceTypeFamiliesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceTypeFamilies = value["InstanceTypeFamilies"]["InstanceTypeFamily"]; for (auto value : allInstanceTypeFamilies) { @@ -50,9 +53,9 @@ void DescribeInstanceTypeFamiliesResult::parse(const std::string &payload) instanceTypeFamiliesObject.generation = value["Generation"].asString(); instanceTypeFamilies_.push_back(instanceTypeFamiliesObject); } - -} - + +} + std::vector DescribeInstanceTypeFamiliesResult::getInstanceTypeFamilies()const { return instanceTypeFamilies_; diff --git a/ecs/src/model/DescribeInstanceTypesRequest.cc b/ecs/src/model/DescribeInstanceTypesRequest.cc index 2da451f43..06908738b 100644 --- a/ecs/src/model/DescribeInstanceTypesRequest.cc +++ b/ecs/src/model/DescribeInstanceTypesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceTypesRequest; - -DescribeInstanceTypesRequest::DescribeInstanceTypesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypes") -{} - -DescribeInstanceTypesRequest::~DescribeInstanceTypesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceTypesRequest; + +DescribeInstanceTypesRequest::DescribeInstanceTypesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypes") +{} + +DescribeInstanceTypesRequest::~DescribeInstanceTypesRequest() +{} + std::string DescribeInstanceTypesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceTypesResult.cc b/ecs/src/model/DescribeInstanceTypesResult.cc index d63cbf602..089b9afda 100644 --- a/ecs/src/model/DescribeInstanceTypesResult.cc +++ b/ecs/src/model/DescribeInstanceTypesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceTypesResult::DescribeInstanceTypesResult() : - ServiceResult() -{} - -DescribeInstanceTypesResult::DescribeInstanceTypesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceTypesResult::~DescribeInstanceTypesResult() -{} - -void DescribeInstanceTypesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceTypesResult::DescribeInstanceTypesResult() : + ServiceResult() +{} + +DescribeInstanceTypesResult::DescribeInstanceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceTypesResult::~DescribeInstanceTypesResult() +{} + +void DescribeInstanceTypesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceTypes = value["InstanceTypes"]["InstanceType"]; for (auto value : allInstanceTypes) { @@ -82,9 +85,9 @@ void DescribeInstanceTypesResult::parse(const std::string &payload) instanceTypesObject.instanceFamilyLevel = value["InstanceFamilyLevel"].asString(); instanceTypes_.push_back(instanceTypesObject); } - -} - + +} + std::vector DescribeInstanceTypesResult::getInstanceTypes()const { return instanceTypes_; diff --git a/ecs/src/model/DescribeInstanceVncPasswdRequest.cc b/ecs/src/model/DescribeInstanceVncPasswdRequest.cc index 64be0182c..fa35207d1 100644 --- a/ecs/src/model/DescribeInstanceVncPasswdRequest.cc +++ b/ecs/src/model/DescribeInstanceVncPasswdRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceVncPasswdRequest; - -DescribeInstanceVncPasswdRequest::DescribeInstanceVncPasswdRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncPasswd") -{} - -DescribeInstanceVncPasswdRequest::~DescribeInstanceVncPasswdRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceVncPasswdRequest; + +DescribeInstanceVncPasswdRequest::DescribeInstanceVncPasswdRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncPasswd") +{} + +DescribeInstanceVncPasswdRequest::~DescribeInstanceVncPasswdRequest() +{} + std::string DescribeInstanceVncPasswdRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceVncPasswdResult.cc b/ecs/src/model/DescribeInstanceVncPasswdResult.cc index fd2693440..7432731df 100644 --- a/ecs/src/model/DescribeInstanceVncPasswdResult.cc +++ b/ecs/src/model/DescribeInstanceVncPasswdResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceVncPasswdResult::DescribeInstanceVncPasswdResult() : - ServiceResult() -{} - -DescribeInstanceVncPasswdResult::DescribeInstanceVncPasswdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceVncPasswdResult::~DescribeInstanceVncPasswdResult() -{} - -void DescribeInstanceVncPasswdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceVncPasswdResult::DescribeInstanceVncPasswdResult() : + ServiceResult() +{} + +DescribeInstanceVncPasswdResult::DescribeInstanceVncPasswdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceVncPasswdResult::~DescribeInstanceVncPasswdResult() +{} + +void DescribeInstanceVncPasswdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["VncPasswd"].isNull()) vncPasswd_ = value["VncPasswd"].asString(); - -} - + +} + std::string DescribeInstanceVncPasswdResult::getVncPasswd()const { return vncPasswd_; diff --git a/ecs/src/model/DescribeInstanceVncUrlRequest.cc b/ecs/src/model/DescribeInstanceVncUrlRequest.cc index 73dcb6af5..a69d215ab 100644 --- a/ecs/src/model/DescribeInstanceVncUrlRequest.cc +++ b/ecs/src/model/DescribeInstanceVncUrlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceVncUrlRequest; - -DescribeInstanceVncUrlRequest::DescribeInstanceVncUrlRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncUrl") -{} - -DescribeInstanceVncUrlRequest::~DescribeInstanceVncUrlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstanceVncUrlRequest; + +DescribeInstanceVncUrlRequest::DescribeInstanceVncUrlRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncUrl") +{} + +DescribeInstanceVncUrlRequest::~DescribeInstanceVncUrlRequest() +{} + std::string DescribeInstanceVncUrlRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeInstanceVncUrlResult.cc b/ecs/src/model/DescribeInstanceVncUrlResult.cc index 271590bb5..a293f49f7 100644 --- a/ecs/src/model/DescribeInstanceVncUrlResult.cc +++ b/ecs/src/model/DescribeInstanceVncUrlResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult() : - ServiceResult() -{} - -DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceVncUrlResult::~DescribeInstanceVncUrlResult() -{} - -void DescribeInstanceVncUrlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult() : + ServiceResult() +{} + +DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceVncUrlResult::~DescribeInstanceVncUrlResult() +{} + +void DescribeInstanceVncUrlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["VncUrl"].isNull()) vncUrl_ = value["VncUrl"].asString(); - -} - + +} + std::string DescribeInstanceVncUrlResult::getVncUrl()const { return vncUrl_; diff --git a/ecs/src/model/DescribeInstancesFullStatusRequest.cc b/ecs/src/model/DescribeInstancesFullStatusRequest.cc index 195f5df98..cf1b2700a 100644 --- a/ecs/src/model/DescribeInstancesFullStatusRequest.cc +++ b/ecs/src/model/DescribeInstancesFullStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstancesFullStatusRequest; - -DescribeInstancesFullStatusRequest::DescribeInstancesFullStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstancesFullStatus") -{} - -DescribeInstancesFullStatusRequest::~DescribeInstancesFullStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstancesFullStatusRequest; + +DescribeInstancesFullStatusRequest::DescribeInstancesFullStatusRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstancesFullStatus") +{} + +DescribeInstancesFullStatusRequest::~DescribeInstancesFullStatusRequest() +{} + std::vector DescribeInstancesFullStatusRequest::getEventId()const { return eventId_; diff --git a/ecs/src/model/DescribeInstancesFullStatusResult.cc b/ecs/src/model/DescribeInstancesFullStatusResult.cc index 2a9dd5e3a..b8ffaf804 100644 --- a/ecs/src/model/DescribeInstancesFullStatusResult.cc +++ b/ecs/src/model/DescribeInstancesFullStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstancesFullStatusResult::DescribeInstancesFullStatusResult() : - ServiceResult() -{} - -DescribeInstancesFullStatusResult::DescribeInstancesFullStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstancesFullStatusResult::~DescribeInstancesFullStatusResult() -{} - -void DescribeInstancesFullStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancesFullStatusResult::DescribeInstancesFullStatusResult() : + ServiceResult() +{} + +DescribeInstancesFullStatusResult::DescribeInstancesFullStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancesFullStatusResult::~DescribeInstancesFullStatusResult() +{} + +void DescribeInstancesFullStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceFullStatusSet = value["InstanceFullStatusSet"]["InstanceFullStatusType"]; for (auto value : allInstanceFullStatusSet) { @@ -91,9 +94,9 @@ void DescribeInstancesFullStatusResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeInstancesFullStatusResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeInstancesRequest.cc b/ecs/src/model/DescribeInstancesRequest.cc index dfbbbb9b8..778a26d87 100644 --- a/ecs/src/model/DescribeInstancesRequest.cc +++ b/ecs/src/model/DescribeInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstancesRequest; - -DescribeInstancesRequest::DescribeInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstances") -{} - -DescribeInstancesRequest::~DescribeInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInstancesRequest; + +DescribeInstancesRequest::DescribeInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInstances") +{} + +DescribeInstancesRequest::~DescribeInstancesRequest() +{} + std::string DescribeInstancesRequest::getInnerIpAddresses()const { return innerIpAddresses_; diff --git a/ecs/src/model/DescribeInstancesResult.cc b/ecs/src/model/DescribeInstancesResult.cc index 87073483a..bc57c11a7 100644 --- a/ecs/src/model/DescribeInstancesResult.cc +++ b/ecs/src/model/DescribeInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInstancesResult::DescribeInstancesResult() : - ServiceResult() -{} - -DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstancesResult::~DescribeInstancesResult() -{} - -void DescribeInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancesResult::DescribeInstancesResult() : + ServiceResult() +{} + +DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancesResult::~DescribeInstancesResult() +{} + +void DescribeInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstances = value["Instances"]["Instance"]; for (auto value : allInstances) { @@ -220,9 +223,9 @@ void DescribeInstancesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeInstancesResult::getInstances()const { return instances_; diff --git a/ecs/src/model/DescribeInvocationResultsRequest.cc b/ecs/src/model/DescribeInvocationResultsRequest.cc index ff332882a..41f15655e 100644 --- a/ecs/src/model/DescribeInvocationResultsRequest.cc +++ b/ecs/src/model/DescribeInvocationResultsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInvocationResultsRequest; - -DescribeInvocationResultsRequest::DescribeInvocationResultsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocationResults") -{} - -DescribeInvocationResultsRequest::~DescribeInvocationResultsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInvocationResultsRequest; + +DescribeInvocationResultsRequest::DescribeInvocationResultsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocationResults") +{} + +DescribeInvocationResultsRequest::~DescribeInvocationResultsRequest() +{} + long DescribeInvocationResultsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeInvocationResultsResult.cc b/ecs/src/model/DescribeInvocationResultsResult.cc index 9ebe40a67..4e1afd887 100644 --- a/ecs/src/model/DescribeInvocationResultsResult.cc +++ b/ecs/src/model/DescribeInvocationResultsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInvocationResultsResult::DescribeInvocationResultsResult() : - ServiceResult() -{} - -DescribeInvocationResultsResult::DescribeInvocationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInvocationResultsResult::~DescribeInvocationResultsResult() -{} - -void DescribeInvocationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInvocationResultsResult::DescribeInvocationResultsResult() : + ServiceResult() +{} + +DescribeInvocationResultsResult::DescribeInvocationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInvocationResultsResult::~DescribeInvocationResultsResult() +{} + +void DescribeInvocationResultsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto invocationNode = value["Invocation"]; if(!invocationNode["PageSize"].isNull()) invocation_.pageSize = std::stol(invocationNode["PageSize"].asString()); @@ -69,9 +72,9 @@ void DescribeInvocationResultsResult::parse(const std::string &payload) invocationResultObject.exitCode = std::stol(value["ExitCode"].asString()); invocation_.invocationResults.push_back(invocationResultObject); } - -} - + +} + DescribeInvocationResultsResult::Invocation DescribeInvocationResultsResult::getInvocation()const { return invocation_; diff --git a/ecs/src/model/DescribeInvocationsRequest.cc b/ecs/src/model/DescribeInvocationsRequest.cc index 6d21e6ac9..f955207a5 100644 --- a/ecs/src/model/DescribeInvocationsRequest.cc +++ b/ecs/src/model/DescribeInvocationsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInvocationsRequest; - -DescribeInvocationsRequest::DescribeInvocationsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocations") -{} - -DescribeInvocationsRequest::~DescribeInvocationsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeInvocationsRequest; + +DescribeInvocationsRequest::DescribeInvocationsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocations") +{} + +DescribeInvocationsRequest::~DescribeInvocationsRequest() +{} + long DescribeInvocationsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeInvocationsResult.cc b/ecs/src/model/DescribeInvocationsResult.cc index 6cceb955d..9856b7c7d 100644 --- a/ecs/src/model/DescribeInvocationsResult.cc +++ b/ecs/src/model/DescribeInvocationsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeInvocationsResult::DescribeInvocationsResult() : - ServiceResult() -{} - -DescribeInvocationsResult::DescribeInvocationsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInvocationsResult::~DescribeInvocationsResult() -{} - -void DescribeInvocationsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInvocationsResult::DescribeInvocationsResult() : + ServiceResult() +{} + +DescribeInvocationsResult::DescribeInvocationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInvocationsResult::~DescribeInvocationsResult() +{} + +void DescribeInvocationsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInvocations = value["Invocations"]["Invocation"]; for (auto value : allInvocations) { @@ -86,9 +89,9 @@ void DescribeInvocationsResult::parse(const std::string &payload) pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); - -} - + +} + long DescribeInvocationsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeKeyPairsRequest.cc b/ecs/src/model/DescribeKeyPairsRequest.cc index 376707a19..6cf261846 100644 --- a/ecs/src/model/DescribeKeyPairsRequest.cc +++ b/ecs/src/model/DescribeKeyPairsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeKeyPairsRequest; - -DescribeKeyPairsRequest::DescribeKeyPairsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeKeyPairs") -{} - -DescribeKeyPairsRequest::~DescribeKeyPairsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeKeyPairsRequest; + +DescribeKeyPairsRequest::DescribeKeyPairsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeKeyPairs") +{} + +DescribeKeyPairsRequest::~DescribeKeyPairsRequest() +{} + std::string DescribeKeyPairsRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeKeyPairsResult.cc b/ecs/src/model/DescribeKeyPairsResult.cc index b0da10612..364403e71 100644 --- a/ecs/src/model/DescribeKeyPairsResult.cc +++ b/ecs/src/model/DescribeKeyPairsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeKeyPairsResult::DescribeKeyPairsResult() : - ServiceResult() -{} - -DescribeKeyPairsResult::DescribeKeyPairsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeKeyPairsResult::~DescribeKeyPairsResult() -{} - -void DescribeKeyPairsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeKeyPairsResult::DescribeKeyPairsResult() : + ServiceResult() +{} + +DescribeKeyPairsResult::DescribeKeyPairsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeKeyPairsResult::~DescribeKeyPairsResult() +{} + +void DescribeKeyPairsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allKeyPairs = value["KeyPairs"]["KeyPair"]; for (auto value : allKeyPairs) { @@ -68,9 +71,9 @@ void DescribeKeyPairsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeKeyPairsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc b/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc index f9acaab9f..2de2a67ea 100644 --- a/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc +++ b/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeLaunchTemplateVersionsRequest; - -DescribeLaunchTemplateVersionsRequest::DescribeLaunchTemplateVersionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplateVersions") -{} - -DescribeLaunchTemplateVersionsRequest::~DescribeLaunchTemplateVersionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeLaunchTemplateVersionsRequest; + +DescribeLaunchTemplateVersionsRequest::DescribeLaunchTemplateVersionsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplateVersions") +{} + +DescribeLaunchTemplateVersionsRequest::~DescribeLaunchTemplateVersionsRequest() +{} + std::string DescribeLaunchTemplateVersionsRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc index 3d5e6167f..788a1b626 100644 --- a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc +++ b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeLaunchTemplateVersionsResult::DescribeLaunchTemplateVersionsResult() : - ServiceResult() -{} - -DescribeLaunchTemplateVersionsResult::DescribeLaunchTemplateVersionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLaunchTemplateVersionsResult::~DescribeLaunchTemplateVersionsResult() -{} - -void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeLaunchTemplateVersionsResult::DescribeLaunchTemplateVersionsResult() : + ServiceResult() +{} + +DescribeLaunchTemplateVersionsResult::DescribeLaunchTemplateVersionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLaunchTemplateVersionsResult::~DescribeLaunchTemplateVersionsResult() +{} + +void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLaunchTemplateVersionSets = value["LaunchTemplateVersionSets"]["LaunchTemplateVersionSet"]; for (auto value : allLaunchTemplateVersionSets) { @@ -183,9 +186,9 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeLaunchTemplateVersionsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeLaunchTemplatesRequest.cc b/ecs/src/model/DescribeLaunchTemplatesRequest.cc index 62f2721d7..025555c2e 100644 --- a/ecs/src/model/DescribeLaunchTemplatesRequest.cc +++ b/ecs/src/model/DescribeLaunchTemplatesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeLaunchTemplatesRequest; - -DescribeLaunchTemplatesRequest::DescribeLaunchTemplatesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplates") -{} - -DescribeLaunchTemplatesRequest::~DescribeLaunchTemplatesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeLaunchTemplatesRequest; + +DescribeLaunchTemplatesRequest::DescribeLaunchTemplatesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplates") +{} + +DescribeLaunchTemplatesRequest::~DescribeLaunchTemplatesRequest() +{} + std::vector DescribeLaunchTemplatesRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/DescribeLaunchTemplatesResult.cc b/ecs/src/model/DescribeLaunchTemplatesResult.cc index 1d7b5b392..4f960006e 100644 --- a/ecs/src/model/DescribeLaunchTemplatesResult.cc +++ b/ecs/src/model/DescribeLaunchTemplatesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeLaunchTemplatesResult::DescribeLaunchTemplatesResult() : - ServiceResult() -{} - -DescribeLaunchTemplatesResult::DescribeLaunchTemplatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLaunchTemplatesResult::~DescribeLaunchTemplatesResult() -{} - -void DescribeLaunchTemplatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeLaunchTemplatesResult::DescribeLaunchTemplatesResult() : + ServiceResult() +{} + +DescribeLaunchTemplatesResult::DescribeLaunchTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLaunchTemplatesResult::~DescribeLaunchTemplatesResult() +{} + +void DescribeLaunchTemplatesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLaunchTemplateSets = value["LaunchTemplateSets"]["LaunchTemplateSet"]; for (auto value : allLaunchTemplateSets) { @@ -78,9 +81,9 @@ void DescribeLaunchTemplatesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeLaunchTemplatesResult::getLaunchTemplateSets()const { return launchTemplateSets_; diff --git a/ecs/src/model/DescribeLimitationRequest.cc b/ecs/src/model/DescribeLimitationRequest.cc index 2e576bd63..273a54039 100644 --- a/ecs/src/model/DescribeLimitationRequest.cc +++ b/ecs/src/model/DescribeLimitationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeLimitationRequest; - -DescribeLimitationRequest::DescribeLimitationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeLimitation") -{} - -DescribeLimitationRequest::~DescribeLimitationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeLimitationRequest; + +DescribeLimitationRequest::DescribeLimitationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeLimitation") +{} + +DescribeLimitationRequest::~DescribeLimitationRequest() +{} + std::string DescribeLimitationRequest::getLimitation()const { return limitation_; diff --git a/ecs/src/model/DescribeLimitationResult.cc b/ecs/src/model/DescribeLimitationResult.cc index e709590f6..a98787d96 100644 --- a/ecs/src/model/DescribeLimitationResult.cc +++ b/ecs/src/model/DescribeLimitationResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeLimitationResult::DescribeLimitationResult() : - ServiceResult() -{} - -DescribeLimitationResult::DescribeLimitationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLimitationResult::~DescribeLimitationResult() -{} - -void DescribeLimitationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeLimitationResult::DescribeLimitationResult() : + ServiceResult() +{} + +DescribeLimitationResult::DescribeLimitationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLimitationResult::~DescribeLimitationResult() +{} + +void DescribeLimitationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Limitation"].isNull()) limitation_ = value["Limitation"].asString(); if(!value["Value"].isNull()) value_ = value["Value"].asString(); - -} - + +} + std::string DescribeLimitationResult::getLimitation()const { return limitation_; diff --git a/ecs/src/model/DescribeNatGatewaysRequest.cc b/ecs/src/model/DescribeNatGatewaysRequest.cc index 88fc51d2b..4c199ad46 100644 --- a/ecs/src/model/DescribeNatGatewaysRequest.cc +++ b/ecs/src/model/DescribeNatGatewaysRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNatGatewaysRequest; - -DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNatGateways") -{} - -DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNatGatewaysRequest; + +DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeNatGateways") +{} + +DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() +{} + long DescribeNatGatewaysRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeNatGatewaysResult.cc b/ecs/src/model/DescribeNatGatewaysResult.cc index 4316babf0..b9dce6c17 100644 --- a/ecs/src/model/DescribeNatGatewaysResult.cc +++ b/ecs/src/model/DescribeNatGatewaysResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeNatGatewaysResult::DescribeNatGatewaysResult() : - ServiceResult() -{} - -DescribeNatGatewaysResult::DescribeNatGatewaysResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNatGatewaysResult::~DescribeNatGatewaysResult() -{} - -void DescribeNatGatewaysResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNatGatewaysResult::DescribeNatGatewaysResult() : + ServiceResult() +{} + +DescribeNatGatewaysResult::DescribeNatGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNatGatewaysResult::~DescribeNatGatewaysResult() +{} + +void DescribeNatGatewaysResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allNatGateways = value["NatGateways"]["NatGateway"]; for (auto value : allNatGateways) { @@ -78,9 +81,9 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeNatGatewaysResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc b/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc index f99218127..ace5b924f 100644 --- a/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc +++ b/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNetworkInterfacePermissionsRequest; - -DescribeNetworkInterfacePermissionsRequest::DescribeNetworkInterfacePermissionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfacePermissions") -{} - -DescribeNetworkInterfacePermissionsRequest::~DescribeNetworkInterfacePermissionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNetworkInterfacePermissionsRequest; + +DescribeNetworkInterfacePermissionsRequest::DescribeNetworkInterfacePermissionsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfacePermissions") +{} + +DescribeNetworkInterfacePermissionsRequest::~DescribeNetworkInterfacePermissionsRequest() +{} + long DescribeNetworkInterfacePermissionsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc b/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc index 82d9d2093..8f2ace97b 100644 --- a/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc +++ b/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeNetworkInterfacePermissionsResult::DescribeNetworkInterfacePermissionsResult() : - ServiceResult() -{} - -DescribeNetworkInterfacePermissionsResult::DescribeNetworkInterfacePermissionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkInterfacePermissionsResult::~DescribeNetworkInterfacePermissionsResult() -{} - -void DescribeNetworkInterfacePermissionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNetworkInterfacePermissionsResult::DescribeNetworkInterfacePermissionsResult() : + ServiceResult() +{} + +DescribeNetworkInterfacePermissionsResult::DescribeNetworkInterfacePermissionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkInterfacePermissionsResult::~DescribeNetworkInterfacePermissionsResult() +{} + +void DescribeNetworkInterfacePermissionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allNetworkInterfacePermissions = value["NetworkInterfacePermissions"]["NetworkInterfacePermission"]; for (auto value : allNetworkInterfacePermissions) { @@ -64,9 +67,9 @@ void DescribeNetworkInterfacePermissionsResult::parse(const std::string &payload pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeNetworkInterfacePermissionsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeNetworkInterfacesRequest.cc b/ecs/src/model/DescribeNetworkInterfacesRequest.cc index eab62121d..25d52dbe8 100644 --- a/ecs/src/model/DescribeNetworkInterfacesRequest.cc +++ b/ecs/src/model/DescribeNetworkInterfacesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNetworkInterfacesRequest; - -DescribeNetworkInterfacesRequest::DescribeNetworkInterfacesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfaces") -{} - -DescribeNetworkInterfacesRequest::~DescribeNetworkInterfacesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNetworkInterfacesRequest; + +DescribeNetworkInterfacesRequest::DescribeNetworkInterfacesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfaces") +{} + +DescribeNetworkInterfacesRequest::~DescribeNetworkInterfacesRequest() +{} + long DescribeNetworkInterfacesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeNetworkInterfacesResult.cc b/ecs/src/model/DescribeNetworkInterfacesResult.cc index 897b130a2..880625823 100644 --- a/ecs/src/model/DescribeNetworkInterfacesResult.cc +++ b/ecs/src/model/DescribeNetworkInterfacesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeNetworkInterfacesResult::DescribeNetworkInterfacesResult() : - ServiceResult() -{} - -DescribeNetworkInterfacesResult::DescribeNetworkInterfacesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkInterfacesResult::~DescribeNetworkInterfacesResult() -{} - -void DescribeNetworkInterfacesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNetworkInterfacesResult::DescribeNetworkInterfacesResult() : + ServiceResult() +{} + +DescribeNetworkInterfacesResult::DescribeNetworkInterfacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkInterfacesResult::~DescribeNetworkInterfacesResult() +{} + +void DescribeNetworkInterfacesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allNetworkInterfaceSets = value["NetworkInterfaceSets"]["NetworkInterfaceSet"]; for (auto value : allNetworkInterfaceSets) { @@ -123,9 +126,9 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeNetworkInterfacesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc b/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc index 4b7606514..66092543d 100644 --- a/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc +++ b/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNewProjectEipMonitorDataRequest; - -DescribeNewProjectEipMonitorDataRequest::DescribeNewProjectEipMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNewProjectEipMonitorData") -{} - -DescribeNewProjectEipMonitorDataRequest::~DescribeNewProjectEipMonitorDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeNewProjectEipMonitorDataRequest; + +DescribeNewProjectEipMonitorDataRequest::DescribeNewProjectEipMonitorDataRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeNewProjectEipMonitorData") +{} + +DescribeNewProjectEipMonitorDataRequest::~DescribeNewProjectEipMonitorDataRequest() +{} + long DescribeNewProjectEipMonitorDataRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc b/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc index 272df7c8b..807c62c2b 100644 --- a/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc +++ b/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult() : - ServiceResult() -{} - -DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNewProjectEipMonitorDataResult::~DescribeNewProjectEipMonitorDataResult() -{} - -void DescribeNewProjectEipMonitorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult() : + ServiceResult() +{} + +DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNewProjectEipMonitorDataResult::~DescribeNewProjectEipMonitorDataResult() +{} + +void DescribeNewProjectEipMonitorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"]; for (auto value : allEipMonitorDatas) { @@ -58,9 +61,9 @@ void DescribeNewProjectEipMonitorDataResult::parse(const std::string &payload) eipMonitorDatasObject.timeStamp = value["TimeStamp"].asString(); eipMonitorDatas_.push_back(eipMonitorDatasObject); } - -} - + +} + std::vector DescribeNewProjectEipMonitorDataResult::getEipMonitorDatas()const { return eipMonitorDatas_; diff --git a/ecs/src/model/DescribePhysicalConnectionsRequest.cc b/ecs/src/model/DescribePhysicalConnectionsRequest.cc index 87a2b5787..fbd52b13d 100644 --- a/ecs/src/model/DescribePhysicalConnectionsRequest.cc +++ b/ecs/src/model/DescribePhysicalConnectionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribePhysicalConnectionsRequest; - -DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribePhysicalConnections") -{} - -DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribePhysicalConnectionsRequest; + +DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribePhysicalConnections") +{} + +DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() +{} + std::vector DescribePhysicalConnectionsRequest::getFilter()const { return filter_; diff --git a/ecs/src/model/DescribePhysicalConnectionsResult.cc b/ecs/src/model/DescribePhysicalConnectionsResult.cc index d95269b2f..5cab122d6 100644 --- a/ecs/src/model/DescribePhysicalConnectionsResult.cc +++ b/ecs/src/model/DescribePhysicalConnectionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult() : - ServiceResult() -{} - -DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePhysicalConnectionsResult::~DescribePhysicalConnectionsResult() -{} - -void DescribePhysicalConnectionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult() : + ServiceResult() +{} + +DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhysicalConnectionsResult::~DescribePhysicalConnectionsResult() +{} + +void DescribePhysicalConnectionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allPhysicalConnectionSet = value["PhysicalConnectionSet"]["PhysicalConnectionType"]; for (auto value : allPhysicalConnectionSet) { @@ -88,9 +91,9 @@ void DescribePhysicalConnectionsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + std::vector DescribePhysicalConnectionsResult::getPhysicalConnectionSet()const { return physicalConnectionSet_; diff --git a/ecs/src/model/DescribePriceRequest.cc b/ecs/src/model/DescribePriceRequest.cc index 9cc4c2332..dc1ee889b 100644 --- a/ecs/src/model/DescribePriceRequest.cc +++ b/ecs/src/model/DescribePriceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribePriceRequest; - -DescribePriceRequest::DescribePriceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribePrice") -{} - -DescribePriceRequest::~DescribePriceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribePriceRequest; + +DescribePriceRequest::DescribePriceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribePrice") +{} + +DescribePriceRequest::~DescribePriceRequest() +{} + std::string DescribePriceRequest::getDataDisk3PerformanceLevel()const { return dataDisk3PerformanceLevel_; diff --git a/ecs/src/model/DescribePriceResult.cc b/ecs/src/model/DescribePriceResult.cc index 867a3b42d..e6a4cb3da 100644 --- a/ecs/src/model/DescribePriceResult.cc +++ b/ecs/src/model/DescribePriceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribePriceResult::DescribePriceResult() : - ServiceResult() -{} - -DescribePriceResult::DescribePriceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePriceResult::~DescribePriceResult() -{} - -void DescribePriceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribePriceResult::DescribePriceResult() : + ServiceResult() +{} + +DescribePriceResult::DescribePriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePriceResult::~DescribePriceResult() +{} + +void DescribePriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto priceInfoNode = value["PriceInfo"]; auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) @@ -84,9 +87,9 @@ void DescribePriceResult::parse(const std::string &payload) } priceInfo_.price.detailInfos.push_back(resourcePriceModelObject); } - -} - + +} + DescribePriceResult::PriceInfo DescribePriceResult::getPriceInfo()const { return priceInfo_; diff --git a/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc b/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc index 277465aa8..d1fa3ed59 100644 --- a/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc +++ b/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRecommendInstanceTypeRequest; - -DescribeRecommendInstanceTypeRequest::DescribeRecommendInstanceTypeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRecommendInstanceType") -{} - -DescribeRecommendInstanceTypeRequest::~DescribeRecommendInstanceTypeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRecommendInstanceTypeRequest; + +DescribeRecommendInstanceTypeRequest::DescribeRecommendInstanceTypeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeRecommendInstanceType") +{} + +DescribeRecommendInstanceTypeRequest::~DescribeRecommendInstanceTypeRequest() +{} + long DescribeRecommendInstanceTypeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeRecommendInstanceTypeResult.cc b/ecs/src/model/DescribeRecommendInstanceTypeResult.cc index 7c8f005a9..795c9636a 100644 --- a/ecs/src/model/DescribeRecommendInstanceTypeResult.cc +++ b/ecs/src/model/DescribeRecommendInstanceTypeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeRecommendInstanceTypeResult::DescribeRecommendInstanceTypeResult() : - ServiceResult() -{} - -DescribeRecommendInstanceTypeResult::DescribeRecommendInstanceTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRecommendInstanceTypeResult::~DescribeRecommendInstanceTypeResult() -{} - -void DescribeRecommendInstanceTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRecommendInstanceTypeResult::DescribeRecommendInstanceTypeResult() : + ServiceResult() +{} + +DescribeRecommendInstanceTypeResult::DescribeRecommendInstanceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecommendInstanceTypeResult::~DescribeRecommendInstanceTypeResult() +{} + +void DescribeRecommendInstanceTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["RecommendInstanceType"]; for (auto value : allData) { @@ -76,9 +79,9 @@ void DescribeRecommendInstanceTypeResult::parse(const std::string &payload) dataObject.instanceType.memory = std::stoi(instanceTypeNode["Memory"].asString()); data_.push_back(dataObject); } - -} - + +} + std::vector DescribeRecommendInstanceTypeResult::getData()const { return data_; diff --git a/ecs/src/model/DescribeRegionsRequest.cc b/ecs/src/model/DescribeRegionsRequest.cc index 3646ec3a7..57d37246e 100644 --- a/ecs/src/model/DescribeRegionsRequest.cc +++ b/ecs/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRegions") -{} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + std::string DescribeRegionsRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeRegionsResult.cc b/ecs/src/model/DescribeRegionsResult.cc index 3d44f249d..f61240205 100644 --- a/ecs/src/model/DescribeRegionsResult.cc +++ b/ecs/src/model/DescribeRegionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) { @@ -54,9 +57,9 @@ void DescribeRegionsResult::parse(const std::string &payload) regionsObject.status = value["Status"].asString(); regions_.push_back(regionsObject); } - -} - + +} + std::vector DescribeRegionsResult::getRegions()const { return regions_; diff --git a/ecs/src/model/DescribeRenewalPriceRequest.cc b/ecs/src/model/DescribeRenewalPriceRequest.cc index bfc68bdaa..0bb0bc121 100644 --- a/ecs/src/model/DescribeRenewalPriceRequest.cc +++ b/ecs/src/model/DescribeRenewalPriceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRenewalPriceRequest; - -DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRenewalPrice") -{} - -DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRenewalPriceRequest; + +DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeRenewalPrice") +{} + +DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() +{} + std::string DescribeRenewalPriceRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeRenewalPriceResult.cc b/ecs/src/model/DescribeRenewalPriceResult.cc index 476910acf..fd6a3e644 100644 --- a/ecs/src/model/DescribeRenewalPriceResult.cc +++ b/ecs/src/model/DescribeRenewalPriceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeRenewalPriceResult::DescribeRenewalPriceResult() : - ServiceResult() -{} - -DescribeRenewalPriceResult::DescribeRenewalPriceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRenewalPriceResult::~DescribeRenewalPriceResult() -{} - -void DescribeRenewalPriceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRenewalPriceResult::DescribeRenewalPriceResult() : + ServiceResult() +{} + +DescribeRenewalPriceResult::DescribeRenewalPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRenewalPriceResult::~DescribeRenewalPriceResult() +{} + +void DescribeRenewalPriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto priceInfoNode = value["PriceInfo"]; auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) @@ -84,9 +87,9 @@ void DescribeRenewalPriceResult::parse(const std::string &payload) } priceInfo_.price.detailInfos.push_back(resourcePriceModelObject); } - -} - + +} + DescribeRenewalPriceResult::PriceInfo DescribeRenewalPriceResult::getPriceInfo()const { return priceInfo_; diff --git a/ecs/src/model/DescribeReservedInstancesRequest.cc b/ecs/src/model/DescribeReservedInstancesRequest.cc index 7d8ad9905..b0f4944cf 100644 --- a/ecs/src/model/DescribeReservedInstancesRequest.cc +++ b/ecs/src/model/DescribeReservedInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeReservedInstancesRequest; - -DescribeReservedInstancesRequest::DescribeReservedInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeReservedInstances") -{} - -DescribeReservedInstancesRequest::~DescribeReservedInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeReservedInstancesRequest; + +DescribeReservedInstancesRequest::DescribeReservedInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeReservedInstances") +{} + +DescribeReservedInstancesRequest::~DescribeReservedInstancesRequest() +{} + long DescribeReservedInstancesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeReservedInstancesResult.cc b/ecs/src/model/DescribeReservedInstancesResult.cc index 4b2984598..f5f95d4fd 100644 --- a/ecs/src/model/DescribeReservedInstancesResult.cc +++ b/ecs/src/model/DescribeReservedInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeReservedInstancesResult::DescribeReservedInstancesResult() : - ServiceResult() -{} - -DescribeReservedInstancesResult::DescribeReservedInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeReservedInstancesResult::~DescribeReservedInstancesResult() -{} - -void DescribeReservedInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeReservedInstancesResult::DescribeReservedInstancesResult() : + ServiceResult() +{} + +DescribeReservedInstancesResult::DescribeReservedInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReservedInstancesResult::~DescribeReservedInstancesResult() +{} + +void DescribeReservedInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allReservedInstances = value["ReservedInstances"]["ReservedInstance"]; for (auto value : allReservedInstances) { @@ -90,9 +93,9 @@ void DescribeReservedInstancesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeReservedInstancesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeResourceByTagsRequest.cc b/ecs/src/model/DescribeResourceByTagsRequest.cc index 36b7c3f51..52a30e01c 100644 --- a/ecs/src/model/DescribeResourceByTagsRequest.cc +++ b/ecs/src/model/DescribeResourceByTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeResourceByTagsRequest; - -DescribeResourceByTagsRequest::DescribeResourceByTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeResourceByTags") -{} - -DescribeResourceByTagsRequest::~DescribeResourceByTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeResourceByTagsRequest; + +DescribeResourceByTagsRequest::DescribeResourceByTagsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeResourceByTags") +{} + +DescribeResourceByTagsRequest::~DescribeResourceByTagsRequest() +{} + std::string DescribeResourceByTagsRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeResourceByTagsResult.cc b/ecs/src/model/DescribeResourceByTagsResult.cc index 596117328..fc0d65074 100644 --- a/ecs/src/model/DescribeResourceByTagsResult.cc +++ b/ecs/src/model/DescribeResourceByTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeResourceByTagsResult::DescribeResourceByTagsResult() : - ServiceResult() -{} - -DescribeResourceByTagsResult::DescribeResourceByTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeResourceByTagsResult::~DescribeResourceByTagsResult() -{} - -void DescribeResourceByTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeResourceByTagsResult::DescribeResourceByTagsResult() : + ServiceResult() +{} + +DescribeResourceByTagsResult::DescribeResourceByTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourceByTagsResult::~DescribeResourceByTagsResult() +{} + +void DescribeResourceByTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) { @@ -58,9 +61,9 @@ void DescribeResourceByTagsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeResourceByTagsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeResourcesModificationRequest.cc b/ecs/src/model/DescribeResourcesModificationRequest.cc index 72a636a39..24c040ff6 100644 --- a/ecs/src/model/DescribeResourcesModificationRequest.cc +++ b/ecs/src/model/DescribeResourcesModificationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeResourcesModificationRequest; - -DescribeResourcesModificationRequest::DescribeResourcesModificationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeResourcesModification") -{} - -DescribeResourcesModificationRequest::~DescribeResourcesModificationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeResourcesModificationRequest; + +DescribeResourcesModificationRequest::DescribeResourcesModificationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeResourcesModification") +{} + +DescribeResourcesModificationRequest::~DescribeResourcesModificationRequest() +{} + long DescribeResourcesModificationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeResourcesModificationResult.cc b/ecs/src/model/DescribeResourcesModificationResult.cc index 854302795..abdc47ad9 100644 --- a/ecs/src/model/DescribeResourcesModificationResult.cc +++ b/ecs/src/model/DescribeResourcesModificationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeResourcesModificationResult::DescribeResourcesModificationResult() : - ServiceResult() -{} - -DescribeResourcesModificationResult::DescribeResourcesModificationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeResourcesModificationResult::~DescribeResourcesModificationResult() -{} - -void DescribeResourcesModificationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeResourcesModificationResult::DescribeResourcesModificationResult() : + ServiceResult() +{} + +DescribeResourcesModificationResult::DescribeResourcesModificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourcesModificationResult::~DescribeResourcesModificationResult() +{} + +void DescribeResourcesModificationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAvailableZones = value["AvailableZones"]["AvailableZone"]; for (auto value : allAvailableZones) { @@ -80,9 +83,9 @@ void DescribeResourcesModificationResult::parse(const std::string &payload) } availableZones_.push_back(availableZonesObject); } - -} - + +} + std::vector DescribeResourcesModificationResult::getAvailableZones()const { return availableZones_; diff --git a/ecs/src/model/DescribeRouteTablesRequest.cc b/ecs/src/model/DescribeRouteTablesRequest.cc index 7a8402342..9bd9849ef 100644 --- a/ecs/src/model/DescribeRouteTablesRequest.cc +++ b/ecs/src/model/DescribeRouteTablesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRouteTablesRequest; - -DescribeRouteTablesRequest::DescribeRouteTablesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRouteTables") -{} - -DescribeRouteTablesRequest::~DescribeRouteTablesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRouteTablesRequest; + +DescribeRouteTablesRequest::DescribeRouteTablesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeRouteTables") +{} + +DescribeRouteTablesRequest::~DescribeRouteTablesRequest() +{} + long DescribeRouteTablesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeRouteTablesResult.cc b/ecs/src/model/DescribeRouteTablesResult.cc index cda0af233..6393f87f8 100644 --- a/ecs/src/model/DescribeRouteTablesResult.cc +++ b/ecs/src/model/DescribeRouteTablesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeRouteTablesResult::DescribeRouteTablesResult() : - ServiceResult() -{} - -DescribeRouteTablesResult::DescribeRouteTablesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRouteTablesResult::~DescribeRouteTablesResult() -{} - -void DescribeRouteTablesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRouteTablesResult::DescribeRouteTablesResult() : + ServiceResult() +{} + +DescribeRouteTablesResult::DescribeRouteTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouteTablesResult::~DescribeRouteTablesResult() +{} + +void DescribeRouteTablesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRouteTables = value["RouteTables"]["RouteTable"]; for (auto value : allRouteTables) { @@ -94,9 +97,9 @@ void DescribeRouteTablesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeRouteTablesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeRouterInterfacesRequest.cc b/ecs/src/model/DescribeRouterInterfacesRequest.cc index 860ce9bdc..4170f2cff 100644 --- a/ecs/src/model/DescribeRouterInterfacesRequest.cc +++ b/ecs/src/model/DescribeRouterInterfacesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRouterInterfacesRequest; - -DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRouterInterfaces") -{} - -DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeRouterInterfacesRequest; + +DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeRouterInterfaces") +{} + +DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() +{} + std::vector DescribeRouterInterfacesRequest::getFilter()const { return filter_; diff --git a/ecs/src/model/DescribeRouterInterfacesResult.cc b/ecs/src/model/DescribeRouterInterfacesResult.cc index 077307079..020a9570e 100644 --- a/ecs/src/model/DescribeRouterInterfacesResult.cc +++ b/ecs/src/model/DescribeRouterInterfacesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeRouterInterfacesResult::DescribeRouterInterfacesResult() : - ServiceResult() -{} - -DescribeRouterInterfacesResult::DescribeRouterInterfacesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRouterInterfacesResult::~DescribeRouterInterfacesResult() -{} - -void DescribeRouterInterfacesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRouterInterfacesResult::DescribeRouterInterfacesResult() : + ServiceResult() +{} + +DescribeRouterInterfacesResult::DescribeRouterInterfacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouterInterfacesResult::~DescribeRouterInterfacesResult() +{} + +void DescribeRouterInterfacesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRouterInterfaceSet = value["RouterInterfaceSet"]["RouterInterfaceType"]; for (auto value : allRouterInterfaceSet) { @@ -102,9 +105,9 @@ void DescribeRouterInterfacesResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeRouterInterfacesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc b/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc index 7a2a515fd..e998de7c9 100644 --- a/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc +++ b/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSecurityGroupAttributeRequest; - -DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupAttribute") -{} - -DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSecurityGroupAttributeRequest; + +DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupAttribute") +{} + +DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest() +{} + std::string DescribeSecurityGroupAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc index ad2db2287..6fffd9231 100644 --- a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc +++ b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult() : - ServiceResult() -{} - -DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSecurityGroupAttributeResult::~DescribeSecurityGroupAttributeResult() -{} - -void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult() : + ServiceResult() +{} + +DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityGroupAttributeResult::~DescribeSecurityGroupAttributeResult() +{} + +void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allPermissions = value["Permissions"]["Permission"]; for (auto value : allPermissions) { @@ -96,9 +99,9 @@ void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) vpcId_ = value["VpcId"].asString(); if(!value["InnerAccessPolicy"].isNull()) innerAccessPolicy_ = value["InnerAccessPolicy"].asString(); - -} - + +} + std::string DescribeSecurityGroupAttributeResult::getDescription()const { return description_; diff --git a/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc b/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc index b2614391a..1ea513c09 100644 --- a/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc +++ b/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSecurityGroupReferencesRequest; - -DescribeSecurityGroupReferencesRequest::DescribeSecurityGroupReferencesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupReferences") -{} - -DescribeSecurityGroupReferencesRequest::~DescribeSecurityGroupReferencesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSecurityGroupReferencesRequest; + +DescribeSecurityGroupReferencesRequest::DescribeSecurityGroupReferencesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupReferences") +{} + +DescribeSecurityGroupReferencesRequest::~DescribeSecurityGroupReferencesRequest() +{} + std::string DescribeSecurityGroupReferencesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeSecurityGroupReferencesResult.cc b/ecs/src/model/DescribeSecurityGroupReferencesResult.cc index ebee21092..54acd558d 100644 --- a/ecs/src/model/DescribeSecurityGroupReferencesResult.cc +++ b/ecs/src/model/DescribeSecurityGroupReferencesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSecurityGroupReferencesResult::DescribeSecurityGroupReferencesResult() : - ServiceResult() -{} - -DescribeSecurityGroupReferencesResult::DescribeSecurityGroupReferencesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSecurityGroupReferencesResult::~DescribeSecurityGroupReferencesResult() -{} - -void DescribeSecurityGroupReferencesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupReferencesResult::DescribeSecurityGroupReferencesResult() : + ServiceResult() +{} + +DescribeSecurityGroupReferencesResult::DescribeSecurityGroupReferencesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityGroupReferencesResult::~DescribeSecurityGroupReferencesResult() +{} + +void DescribeSecurityGroupReferencesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSecurityGroupReferences = value["SecurityGroupReferences"]["SecurityGroupReference"]; for (auto value : allSecurityGroupReferences) { @@ -58,9 +61,9 @@ void DescribeSecurityGroupReferencesResult::parse(const std::string &payload) } securityGroupReferences_.push_back(securityGroupReferencesObject); } - -} - + +} + std::vector DescribeSecurityGroupReferencesResult::getSecurityGroupReferences()const { return securityGroupReferences_; diff --git a/ecs/src/model/DescribeSecurityGroupsRequest.cc b/ecs/src/model/DescribeSecurityGroupsRequest.cc index 0b1dd7776..7e271b68c 100644 --- a/ecs/src/model/DescribeSecurityGroupsRequest.cc +++ b/ecs/src/model/DescribeSecurityGroupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSecurityGroupsRequest; - -DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroups") -{} - -DescribeSecurityGroupsRequest::~DescribeSecurityGroupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSecurityGroupsRequest; + +DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroups") +{} + +DescribeSecurityGroupsRequest::~DescribeSecurityGroupsRequest() +{} + long DescribeSecurityGroupsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeSecurityGroupsResult.cc b/ecs/src/model/DescribeSecurityGroupsResult.cc index 680ed8002..f7d12f4aa 100644 --- a/ecs/src/model/DescribeSecurityGroupsResult.cc +++ b/ecs/src/model/DescribeSecurityGroupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSecurityGroupsResult::DescribeSecurityGroupsResult() : - ServiceResult() -{} - -DescribeSecurityGroupsResult::DescribeSecurityGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSecurityGroupsResult::~DescribeSecurityGroupsResult() -{} - -void DescribeSecurityGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupsResult::DescribeSecurityGroupsResult() : + ServiceResult() +{} + +DescribeSecurityGroupsResult::DescribeSecurityGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityGroupsResult::~DescribeSecurityGroupsResult() +{} + +void DescribeSecurityGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSecurityGroups = value["SecurityGroups"]["SecurityGroup"]; for (auto value : allSecurityGroups) { @@ -82,9 +85,9 @@ void DescribeSecurityGroupsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeSecurityGroupsResult::getSecurityGroups()const { return securityGroups_; diff --git a/ecs/src/model/DescribeSnapshotLinksRequest.cc b/ecs/src/model/DescribeSnapshotLinksRequest.cc index 9145aaca9..56cff7c71 100644 --- a/ecs/src/model/DescribeSnapshotLinksRequest.cc +++ b/ecs/src/model/DescribeSnapshotLinksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotLinksRequest; - -DescribeSnapshotLinksRequest::DescribeSnapshotLinksRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotLinks") -{} - -DescribeSnapshotLinksRequest::~DescribeSnapshotLinksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotLinksRequest; + +DescribeSnapshotLinksRequest::DescribeSnapshotLinksRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotLinks") +{} + +DescribeSnapshotLinksRequest::~DescribeSnapshotLinksRequest() +{} + std::string DescribeSnapshotLinksRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeSnapshotLinksResult.cc b/ecs/src/model/DescribeSnapshotLinksResult.cc index 45130fcee..f4528e761 100644 --- a/ecs/src/model/DescribeSnapshotLinksResult.cc +++ b/ecs/src/model/DescribeSnapshotLinksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSnapshotLinksResult::DescribeSnapshotLinksResult() : - ServiceResult() -{} - -DescribeSnapshotLinksResult::DescribeSnapshotLinksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSnapshotLinksResult::~DescribeSnapshotLinksResult() -{} - -void DescribeSnapshotLinksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotLinksResult::DescribeSnapshotLinksResult() : + ServiceResult() +{} + +DescribeSnapshotLinksResult::DescribeSnapshotLinksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotLinksResult::~DescribeSnapshotLinksResult() +{} + +void DescribeSnapshotLinksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSnapshotLinks = value["SnapshotLinks"]["SnapshotLink"]; for (auto value : allSnapshotLinks) { @@ -61,7 +64,7 @@ void DescribeSnapshotLinksResult::parse(const std::string &payload) if(!value["SourceDiskType"].isNull()) snapshotLinksObject.sourceDiskType = value["SourceDiskType"].asString(); if(!value["TotalSize"].isNull()) - snapshotLinksObject.totalSize = std::stoi(value["TotalSize"].asString()); + snapshotLinksObject.totalSize = std::stol(value["TotalSize"].asString()); if(!value["TotalCount"].isNull()) snapshotLinksObject.totalCount = std::stoi(value["TotalCount"].asString()); snapshotLinks_.push_back(snapshotLinksObject); @@ -72,9 +75,9 @@ void DescribeSnapshotLinksResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeSnapshotLinksResult::getSnapshotLinks()const { return snapshotLinks_; diff --git a/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc b/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc index 8e11118d9..4589631b7 100644 --- a/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc +++ b/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotMonitorDataRequest; - -DescribeSnapshotMonitorDataRequest::DescribeSnapshotMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotMonitorData") -{} - -DescribeSnapshotMonitorDataRequest::~DescribeSnapshotMonitorDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotMonitorDataRequest; + +DescribeSnapshotMonitorDataRequest::DescribeSnapshotMonitorDataRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotMonitorData") +{} + +DescribeSnapshotMonitorDataRequest::~DescribeSnapshotMonitorDataRequest() +{} + std::string DescribeSnapshotMonitorDataRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeSnapshotMonitorDataResult.cc b/ecs/src/model/DescribeSnapshotMonitorDataResult.cc index 796bf9d52..cc0ac2c51 100644 --- a/ecs/src/model/DescribeSnapshotMonitorDataResult.cc +++ b/ecs/src/model/DescribeSnapshotMonitorDataResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSnapshotMonitorDataResult::DescribeSnapshotMonitorDataResult() : - ServiceResult() -{} - -DescribeSnapshotMonitorDataResult::DescribeSnapshotMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSnapshotMonitorDataResult::~DescribeSnapshotMonitorDataResult() -{} - -void DescribeSnapshotMonitorDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotMonitorDataResult::DescribeSnapshotMonitorDataResult() : + ServiceResult() +{} + +DescribeSnapshotMonitorDataResult::DescribeSnapshotMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotMonitorDataResult::~DescribeSnapshotMonitorDataResult() +{} + +void DescribeSnapshotMonitorDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allMonitorData = value["MonitorData"]["DataPoint"]; for (auto value : allMonitorData) { @@ -50,9 +53,9 @@ void DescribeSnapshotMonitorDataResult::parse(const std::string &payload) monitorDataObject.size = std::stol(value["Size"].asString()); monitorData_.push_back(monitorDataObject); } - -} - + +} + std::vector DescribeSnapshotMonitorDataResult::getMonitorData()const { return monitorData_; diff --git a/ecs/src/model/DescribeSnapshotPackageRequest.cc b/ecs/src/model/DescribeSnapshotPackageRequest.cc index 051775f7d..ba7bc786b 100644 --- a/ecs/src/model/DescribeSnapshotPackageRequest.cc +++ b/ecs/src/model/DescribeSnapshotPackageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotPackageRequest; - -DescribeSnapshotPackageRequest::DescribeSnapshotPackageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotPackage") -{} - -DescribeSnapshotPackageRequest::~DescribeSnapshotPackageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotPackageRequest; + +DescribeSnapshotPackageRequest::DescribeSnapshotPackageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotPackage") +{} + +DescribeSnapshotPackageRequest::~DescribeSnapshotPackageRequest() +{} + std::string DescribeSnapshotPackageRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeSnapshotPackageResult.cc b/ecs/src/model/DescribeSnapshotPackageResult.cc index f46d10212..8e476b2e0 100644 --- a/ecs/src/model/DescribeSnapshotPackageResult.cc +++ b/ecs/src/model/DescribeSnapshotPackageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSnapshotPackageResult::DescribeSnapshotPackageResult() : - ServiceResult() -{} - -DescribeSnapshotPackageResult::DescribeSnapshotPackageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSnapshotPackageResult::~DescribeSnapshotPackageResult() -{} - -void DescribeSnapshotPackageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotPackageResult::DescribeSnapshotPackageResult() : + ServiceResult() +{} + +DescribeSnapshotPackageResult::DescribeSnapshotPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotPackageResult::~DescribeSnapshotPackageResult() +{} + +void DescribeSnapshotPackageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSnapshotPackages = value["SnapshotPackages"]["SnapshotPackage"]; for (auto value : allSnapshotPackages) { @@ -60,9 +63,9 @@ void DescribeSnapshotPackageResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeSnapshotPackageResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeSnapshotsRequest.cc b/ecs/src/model/DescribeSnapshotsRequest.cc index 69bb3931b..42ee2f130 100644 --- a/ecs/src/model/DescribeSnapshotsRequest.cc +++ b/ecs/src/model/DescribeSnapshotsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotsRequest; - -DescribeSnapshotsRequest::DescribeSnapshotsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshots") -{} - -DescribeSnapshotsRequest::~DescribeSnapshotsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotsRequest; + +DescribeSnapshotsRequest::DescribeSnapshotsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshots") +{} + +DescribeSnapshotsRequest::~DescribeSnapshotsRequest() +{} + long DescribeSnapshotsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeSnapshotsResult.cc b/ecs/src/model/DescribeSnapshotsResult.cc index 649bcb7db..3630a3980 100644 --- a/ecs/src/model/DescribeSnapshotsResult.cc +++ b/ecs/src/model/DescribeSnapshotsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSnapshotsResult::DescribeSnapshotsResult() : - ServiceResult() -{} - -DescribeSnapshotsResult::DescribeSnapshotsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSnapshotsResult::~DescribeSnapshotsResult() -{} - -void DescribeSnapshotsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotsResult::DescribeSnapshotsResult() : + ServiceResult() +{} + +DescribeSnapshotsResult::DescribeSnapshotsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotsResult::~DescribeSnapshotsResult() +{} + +void DescribeSnapshotsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSnapshots = value["Snapshots"]["Snapshot"]; for (auto value : allSnapshots) { @@ -98,9 +101,9 @@ void DescribeSnapshotsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeSnapshotsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeSnapshotsUsageRequest.cc b/ecs/src/model/DescribeSnapshotsUsageRequest.cc index 925feba46..bf0df6994 100644 --- a/ecs/src/model/DescribeSnapshotsUsageRequest.cc +++ b/ecs/src/model/DescribeSnapshotsUsageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotsUsageRequest; - -DescribeSnapshotsUsageRequest::DescribeSnapshotsUsageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotsUsage") -{} - -DescribeSnapshotsUsageRequest::~DescribeSnapshotsUsageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSnapshotsUsageRequest; + +DescribeSnapshotsUsageRequest::DescribeSnapshotsUsageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotsUsage") +{} + +DescribeSnapshotsUsageRequest::~DescribeSnapshotsUsageRequest() +{} + long DescribeSnapshotsUsageRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeSnapshotsUsageResult.cc b/ecs/src/model/DescribeSnapshotsUsageResult.cc index ef7c2c32e..136256c1d 100644 --- a/ecs/src/model/DescribeSnapshotsUsageResult.cc +++ b/ecs/src/model/DescribeSnapshotsUsageResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSnapshotsUsageResult::DescribeSnapshotsUsageResult() : - ServiceResult() -{} - -DescribeSnapshotsUsageResult::DescribeSnapshotsUsageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSnapshotsUsageResult::~DescribeSnapshotsUsageResult() -{} - -void DescribeSnapshotsUsageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotsUsageResult::DescribeSnapshotsUsageResult() : + ServiceResult() +{} + +DescribeSnapshotsUsageResult::DescribeSnapshotsUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotsUsageResult::~DescribeSnapshotsUsageResult() +{} + +void DescribeSnapshotsUsageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SnapshotCount"].isNull()) snapshotCount_ = std::stoi(value["SnapshotCount"].asString()); if(!value["SnapshotSize"].isNull()) snapshotSize_ = std::stol(value["SnapshotSize"].asString()); - -} - + +} + int DescribeSnapshotsUsageResult::getSnapshotCount()const { return snapshotCount_; diff --git a/ecs/src/model/DescribeSpotPriceHistoryRequest.cc b/ecs/src/model/DescribeSpotPriceHistoryRequest.cc index e1323a7cc..ae88708fa 100644 --- a/ecs/src/model/DescribeSpotPriceHistoryRequest.cc +++ b/ecs/src/model/DescribeSpotPriceHistoryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSpotPriceHistoryRequest; - -DescribeSpotPriceHistoryRequest::DescribeSpotPriceHistoryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSpotPriceHistory") -{} - -DescribeSpotPriceHistoryRequest::~DescribeSpotPriceHistoryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeSpotPriceHistoryRequest; + +DescribeSpotPriceHistoryRequest::DescribeSpotPriceHistoryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeSpotPriceHistory") +{} + +DescribeSpotPriceHistoryRequest::~DescribeSpotPriceHistoryRequest() +{} + long DescribeSpotPriceHistoryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeSpotPriceHistoryResult.cc b/ecs/src/model/DescribeSpotPriceHistoryResult.cc index 6d6abac29..bd95e1327 100644 --- a/ecs/src/model/DescribeSpotPriceHistoryResult.cc +++ b/ecs/src/model/DescribeSpotPriceHistoryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeSpotPriceHistoryResult::DescribeSpotPriceHistoryResult() : - ServiceResult() -{} - -DescribeSpotPriceHistoryResult::DescribeSpotPriceHistoryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSpotPriceHistoryResult::~DescribeSpotPriceHistoryResult() -{} - -void DescribeSpotPriceHistoryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSpotPriceHistoryResult::DescribeSpotPriceHistoryResult() : + ServiceResult() +{} + +DescribeSpotPriceHistoryResult::DescribeSpotPriceHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSpotPriceHistoryResult::~DescribeSpotPriceHistoryResult() +{} + +void DescribeSpotPriceHistoryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSpotPrices = value["SpotPrices"]["SpotPriceType"]; for (auto value : allSpotPrices) { @@ -64,9 +67,9 @@ void DescribeSpotPriceHistoryResult::parse(const std::string &payload) nextOffset_ = std::stoi(value["NextOffset"].asString()); if(!value["Currency"].isNull()) currency_ = value["Currency"].asString(); - -} - + +} + std::string DescribeSpotPriceHistoryResult::getCurrency()const { return currency_; diff --git a/ecs/src/model/DescribeStorageSetDetailsRequest.cc b/ecs/src/model/DescribeStorageSetDetailsRequest.cc index 3d0a3d56d..8a62a028d 100644 --- a/ecs/src/model/DescribeStorageSetDetailsRequest.cc +++ b/ecs/src/model/DescribeStorageSetDetailsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeStorageSetDetailsRequest; - -DescribeStorageSetDetailsRequest::DescribeStorageSetDetailsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSetDetails") -{} - -DescribeStorageSetDetailsRequest::~DescribeStorageSetDetailsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeStorageSetDetailsRequest; + +DescribeStorageSetDetailsRequest::DescribeStorageSetDetailsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSetDetails") +{} + +DescribeStorageSetDetailsRequest::~DescribeStorageSetDetailsRequest() +{} + long DescribeStorageSetDetailsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeStorageSetDetailsResult.cc b/ecs/src/model/DescribeStorageSetDetailsResult.cc index d9449ebf8..92672aa72 100644 --- a/ecs/src/model/DescribeStorageSetDetailsResult.cc +++ b/ecs/src/model/DescribeStorageSetDetailsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeStorageSetDetailsResult::DescribeStorageSetDetailsResult() : - ServiceResult() -{} - -DescribeStorageSetDetailsResult::DescribeStorageSetDetailsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeStorageSetDetailsResult::~DescribeStorageSetDetailsResult() -{} - -void DescribeStorageSetDetailsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeStorageSetDetailsResult::DescribeStorageSetDetailsResult() : + ServiceResult() +{} + +DescribeStorageSetDetailsResult::DescribeStorageSetDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStorageSetDetailsResult::~DescribeStorageSetDetailsResult() +{} + +void DescribeStorageSetDetailsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDisks = value["Disks"]["Disk"]; for (auto value : allDisks) { @@ -68,9 +71,9 @@ void DescribeStorageSetDetailsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeStorageSetDetailsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeStorageSetsRequest.cc b/ecs/src/model/DescribeStorageSetsRequest.cc index 8cd3c6d12..7bb004b9c 100644 --- a/ecs/src/model/DescribeStorageSetsRequest.cc +++ b/ecs/src/model/DescribeStorageSetsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeStorageSetsRequest; - -DescribeStorageSetsRequest::DescribeStorageSetsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSets") -{} - -DescribeStorageSetsRequest::~DescribeStorageSetsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeStorageSetsRequest; + +DescribeStorageSetsRequest::DescribeStorageSetsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSets") +{} + +DescribeStorageSetsRequest::~DescribeStorageSetsRequest() +{} + long DescribeStorageSetsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeStorageSetsResult.cc b/ecs/src/model/DescribeStorageSetsResult.cc index 570ff5613..159fb3e59 100644 --- a/ecs/src/model/DescribeStorageSetsResult.cc +++ b/ecs/src/model/DescribeStorageSetsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeStorageSetsResult::DescribeStorageSetsResult() : - ServiceResult() -{} - -DescribeStorageSetsResult::DescribeStorageSetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeStorageSetsResult::~DescribeStorageSetsResult() -{} - -void DescribeStorageSetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeStorageSetsResult::DescribeStorageSetsResult() : + ServiceResult() +{} + +DescribeStorageSetsResult::DescribeStorageSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStorageSetsResult::~DescribeStorageSetsResult() +{} + +void DescribeStorageSetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allStorageSets = value["StorageSets"]["StorageSet"]; for (auto value : allStorageSets) { @@ -66,9 +69,9 @@ void DescribeStorageSetsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeStorageSetsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeTagsRequest.cc b/ecs/src/model/DescribeTagsRequest.cc index 7a6f4c1b5..24638019c 100644 --- a/ecs/src/model/DescribeTagsRequest.cc +++ b/ecs/src/model/DescribeTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeTagsRequest; - -DescribeTagsRequest::DescribeTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeTags") -{} - -DescribeTagsRequest::~DescribeTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeTags") +{} + +DescribeTagsRequest::~DescribeTagsRequest() +{} + std::string DescribeTagsRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeTagsResult.cc b/ecs/src/model/DescribeTagsResult.cc index 7212000dc..030708a5a 100644 --- a/ecs/src/model/DescribeTagsResult.cc +++ b/ecs/src/model/DescribeTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeTagsResult::DescribeTagsResult() : - ServiceResult() -{} - -DescribeTagsResult::DescribeTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTagsResult::~DescribeTagsResult() -{} - -void DescribeTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTagsResult::DescribeTagsResult() : + ServiceResult() +{} + +DescribeTagsResult::DescribeTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagsResult::~DescribeTagsResult() +{} + +void DescribeTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { @@ -77,9 +80,9 @@ void DescribeTagsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeTagsResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeTaskAttributeRequest.cc b/ecs/src/model/DescribeTaskAttributeRequest.cc index 98a2dbc07..62786cf5d 100644 --- a/ecs/src/model/DescribeTaskAttributeRequest.cc +++ b/ecs/src/model/DescribeTaskAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeTaskAttributeRequest; - -DescribeTaskAttributeRequest::DescribeTaskAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeTaskAttribute") -{} - -DescribeTaskAttributeRequest::~DescribeTaskAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeTaskAttributeRequest; + +DescribeTaskAttributeRequest::DescribeTaskAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeTaskAttribute") +{} + +DescribeTaskAttributeRequest::~DescribeTaskAttributeRequest() +{} + std::string DescribeTaskAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeTaskAttributeResult.cc b/ecs/src/model/DescribeTaskAttributeResult.cc index 5d6d5f778..45ab47f05 100644 --- a/ecs/src/model/DescribeTaskAttributeResult.cc +++ b/ecs/src/model/DescribeTaskAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeTaskAttributeResult::DescribeTaskAttributeResult() : - ServiceResult() -{} - -DescribeTaskAttributeResult::DescribeTaskAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTaskAttributeResult::~DescribeTaskAttributeResult() -{} - -void DescribeTaskAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTaskAttributeResult::DescribeTaskAttributeResult() : + ServiceResult() +{} + +DescribeTaskAttributeResult::DescribeTaskAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTaskAttributeResult::~DescribeTaskAttributeResult() +{} + +void DescribeTaskAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allOperationProgressSet = value["OperationProgressSet"]["OperationProgress"]; for (auto value : allOperationProgressSet) { @@ -84,9 +87,9 @@ void DescribeTaskAttributeResult::parse(const std::string &payload) creationTime_ = value["CreationTime"].asString(); if(!value["FinishedTime"].isNull()) finishedTime_ = value["FinishedTime"].asString(); - -} - + +} + int DescribeTaskAttributeResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeTasksRequest.cc b/ecs/src/model/DescribeTasksRequest.cc index 5828aad33..ad906c3b7 100644 --- a/ecs/src/model/DescribeTasksRequest.cc +++ b/ecs/src/model/DescribeTasksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeTasksRequest; - -DescribeTasksRequest::DescribeTasksRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeTasks") -{} - -DescribeTasksRequest::~DescribeTasksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeTasksRequest; + +DescribeTasksRequest::DescribeTasksRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeTasks") +{} + +DescribeTasksRequest::~DescribeTasksRequest() +{} + long DescribeTasksRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeTasksResult.cc b/ecs/src/model/DescribeTasksResult.cc index 82c5e8069..ccdfc5d25 100644 --- a/ecs/src/model/DescribeTasksResult.cc +++ b/ecs/src/model/DescribeTasksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeTasksResult::DescribeTasksResult() : - ServiceResult() -{} - -DescribeTasksResult::DescribeTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTasksResult::~DescribeTasksResult() -{} - -void DescribeTasksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTasksResult::DescribeTasksResult() : + ServiceResult() +{} + +DescribeTasksResult::DescribeTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTasksResult::~DescribeTasksResult() +{} + +void DescribeTasksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTaskSet = value["TaskSet"]["Task"]; for (auto value : allTaskSet) { @@ -66,9 +69,9 @@ void DescribeTasksResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeTasksResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc b/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc index 2f964a20a..6a48113d9 100644 --- a/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc +++ b/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeUserBusinessBehaviorRequest; - -DescribeUserBusinessBehaviorRequest::DescribeUserBusinessBehaviorRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeUserBusinessBehavior") -{} - -DescribeUserBusinessBehaviorRequest::~DescribeUserBusinessBehaviorRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeUserBusinessBehaviorRequest; + +DescribeUserBusinessBehaviorRequest::DescribeUserBusinessBehaviorRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeUserBusinessBehavior") +{} + +DescribeUserBusinessBehaviorRequest::~DescribeUserBusinessBehaviorRequest() +{} + long DescribeUserBusinessBehaviorRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeUserBusinessBehaviorResult.cc b/ecs/src/model/DescribeUserBusinessBehaviorResult.cc index 7adcd4924..74b1132a5 100644 --- a/ecs/src/model/DescribeUserBusinessBehaviorResult.cc +++ b/ecs/src/model/DescribeUserBusinessBehaviorResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeUserBusinessBehaviorResult::DescribeUserBusinessBehaviorResult() : - ServiceResult() -{} - -DescribeUserBusinessBehaviorResult::DescribeUserBusinessBehaviorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeUserBusinessBehaviorResult::~DescribeUserBusinessBehaviorResult() -{} - -void DescribeUserBusinessBehaviorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeUserBusinessBehaviorResult::DescribeUserBusinessBehaviorResult() : + ServiceResult() +{} + +DescribeUserBusinessBehaviorResult::DescribeUserBusinessBehaviorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserBusinessBehaviorResult::~DescribeUserBusinessBehaviorResult() +{} + +void DescribeUserBusinessBehaviorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["StatusValue"].isNull()) statusValue_ = value["StatusValue"].asString(); - -} - + +} + std::string DescribeUserBusinessBehaviorResult::getStatusValue()const { return statusValue_; diff --git a/ecs/src/model/DescribeUserDataRequest.cc b/ecs/src/model/DescribeUserDataRequest.cc index fdd87edd1..ea92ffb6d 100644 --- a/ecs/src/model/DescribeUserDataRequest.cc +++ b/ecs/src/model/DescribeUserDataRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeUserDataRequest; - -DescribeUserDataRequest::DescribeUserDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeUserData") -{} - -DescribeUserDataRequest::~DescribeUserDataRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeUserDataRequest; + +DescribeUserDataRequest::DescribeUserDataRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeUserData") +{} + +DescribeUserDataRequest::~DescribeUserDataRequest() +{} + std::string DescribeUserDataRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeUserDataResult.cc b/ecs/src/model/DescribeUserDataResult.cc index 8d8e9ee16..9dbfce254 100644 --- a/ecs/src/model/DescribeUserDataResult.cc +++ b/ecs/src/model/DescribeUserDataResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeUserDataResult::DescribeUserDataResult() : - ServiceResult() -{} - -DescribeUserDataResult::DescribeUserDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeUserDataResult::~DescribeUserDataResult() -{} - -void DescribeUserDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeUserDataResult::DescribeUserDataResult() : + ServiceResult() +{} + +DescribeUserDataResult::DescribeUserDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserDataResult::~DescribeUserDataResult() +{} + +void DescribeUserDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["UserData"].isNull()) userData_ = value["UserData"].asString(); - -} - + +} + std::string DescribeUserDataResult::getInstanceId()const { return instanceId_; diff --git a/ecs/src/model/DescribeVRoutersRequest.cc b/ecs/src/model/DescribeVRoutersRequest.cc index 56b525376..97dd6cf61 100644 --- a/ecs/src/model/DescribeVRoutersRequest.cc +++ b/ecs/src/model/DescribeVRoutersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVRoutersRequest; - -DescribeVRoutersRequest::DescribeVRoutersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVRouters") -{} - -DescribeVRoutersRequest::~DescribeVRoutersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVRoutersRequest; + +DescribeVRoutersRequest::DescribeVRoutersRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeVRouters") +{} + +DescribeVRoutersRequest::~DescribeVRoutersRequest() +{} + long DescribeVRoutersRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeVRoutersResult.cc b/ecs/src/model/DescribeVRoutersResult.cc index bac7afd04..07d4578b4 100644 --- a/ecs/src/model/DescribeVRoutersResult.cc +++ b/ecs/src/model/DescribeVRoutersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeVRoutersResult::DescribeVRoutersResult() : - ServiceResult() -{} - -DescribeVRoutersResult::DescribeVRoutersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVRoutersResult::~DescribeVRoutersResult() -{} - -void DescribeVRoutersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVRoutersResult::DescribeVRoutersResult() : + ServiceResult() +{} + +DescribeVRoutersResult::DescribeVRoutersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVRoutersResult::~DescribeVRoutersResult() +{} + +void DescribeVRoutersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVRouters = value["VRouters"]["VRouter"]; for (auto value : allVRouters) { @@ -67,9 +70,9 @@ void DescribeVRoutersResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeVRoutersResult::getVRouters()const { return vRouters_; diff --git a/ecs/src/model/DescribeVSwitchesRequest.cc b/ecs/src/model/DescribeVSwitchesRequest.cc index 6c550450c..7e71ead56 100644 --- a/ecs/src/model/DescribeVSwitchesRequest.cc +++ b/ecs/src/model/DescribeVSwitchesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVSwitchesRequest; - -DescribeVSwitchesRequest::DescribeVSwitchesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVSwitches") -{} - -DescribeVSwitchesRequest::~DescribeVSwitchesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVSwitchesRequest; + +DescribeVSwitchesRequest::DescribeVSwitchesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeVSwitches") +{} + +DescribeVSwitchesRequest::~DescribeVSwitchesRequest() +{} + std::string DescribeVSwitchesRequest::getVSwitchId()const { return vSwitchId_; diff --git a/ecs/src/model/DescribeVSwitchesResult.cc b/ecs/src/model/DescribeVSwitchesResult.cc index f6ab37219..720ab66b2 100644 --- a/ecs/src/model/DescribeVSwitchesResult.cc +++ b/ecs/src/model/DescribeVSwitchesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeVSwitchesResult::DescribeVSwitchesResult() : - ServiceResult() -{} - -DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVSwitchesResult::~DescribeVSwitchesResult() -{} - -void DescribeVSwitchesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVSwitchesResult::DescribeVSwitchesResult() : + ServiceResult() +{} + +DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVSwitchesResult::~DescribeVSwitchesResult() +{} + +void DescribeVSwitchesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVSwitches = value["VSwitches"]["VSwitch"]; for (auto value : allVSwitches) { @@ -74,9 +77,9 @@ void DescribeVSwitchesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeVSwitchesResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc index ca9f893cb..d981db1de 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest; - -DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection") -{} - -DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest; + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection") +{} + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() +{} + std::vector DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getFilter()const { return filter_; diff --git a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc index 5da026960..9da6f1eba 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult() : - ServiceResult() -{} - -DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVirtualBorderRoutersForPhysicalConnectionResult::~DescribeVirtualBorderRoutersForPhysicalConnectionResult() -{} - -void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult() : + ServiceResult() +{} + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::~DescribeVirtualBorderRoutersForPhysicalConnectionResult() +{} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVirtualBorderRouterForPhysicalConnectionSet = value["VirtualBorderRouterForPhysicalConnectionSet"]["VirtualBorderRouterForPhysicalConnectionType"]; for (auto value : allVirtualBorderRouterForPhysicalConnectionSet) { @@ -68,9 +71,9 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::s pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeVirtualBorderRoutersForPhysicalConnectionResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc b/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc index a2ef2aba1..52f2724be 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVirtualBorderRoutersRequest; - -DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRouters") -{} - -DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVirtualBorderRoutersRequest; + +DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRouters") +{} + +DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() +{} + std::vector DescribeVirtualBorderRoutersRequest::getFilter()const { return filter_; diff --git a/ecs/src/model/DescribeVirtualBorderRoutersResult.cc b/ecs/src/model/DescribeVirtualBorderRoutersResult.cc index 10400b331..e230d1ef9 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersResult.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult() : - ServiceResult() -{} - -DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVirtualBorderRoutersResult::~DescribeVirtualBorderRoutersResult() -{} - -void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult() : + ServiceResult() +{} + +DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualBorderRoutersResult::~DescribeVirtualBorderRoutersResult() +{} + +void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVirtualBorderRouterSet = value["VirtualBorderRouterSet"]["VirtualBorderRouterType"]; for (auto value : allVirtualBorderRouterSet) { @@ -92,9 +95,9 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeVirtualBorderRoutersResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DescribeVpcsRequest.cc b/ecs/src/model/DescribeVpcsRequest.cc index a1f0498d0..a6e748e59 100644 --- a/ecs/src/model/DescribeVpcsRequest.cc +++ b/ecs/src/model/DescribeVpcsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVpcsRequest; - -DescribeVpcsRequest::DescribeVpcsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVpcs") -{} - -DescribeVpcsRequest::~DescribeVpcsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeVpcsRequest; + +DescribeVpcsRequest::DescribeVpcsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeVpcs") +{} + +DescribeVpcsRequest::~DescribeVpcsRequest() +{} + long DescribeVpcsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DescribeVpcsResult.cc b/ecs/src/model/DescribeVpcsResult.cc index 27e2a83bd..85147ec5c 100644 --- a/ecs/src/model/DescribeVpcsResult.cc +++ b/ecs/src/model/DescribeVpcsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeVpcsResult::DescribeVpcsResult() : - ServiceResult() -{} - -DescribeVpcsResult::DescribeVpcsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVpcsResult::~DescribeVpcsResult() -{} - -void DescribeVpcsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVpcsResult::DescribeVpcsResult() : + ServiceResult() +{} + +DescribeVpcsResult::DescribeVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcsResult::~DescribeVpcsResult() +{} + +void DescribeVpcsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVpcs = value["Vpcs"]["Vpc"]; for (auto value : allVpcs) { @@ -76,9 +79,9 @@ void DescribeVpcsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeVpcsResult::getVpcs()const { return vpcs_; diff --git a/ecs/src/model/DescribeZonesRequest.cc b/ecs/src/model/DescribeZonesRequest.cc index 96d503bf0..fa0b947d6 100644 --- a/ecs/src/model/DescribeZonesRequest.cc +++ b/ecs/src/model/DescribeZonesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DescribeZonesRequest; - -DescribeZonesRequest::DescribeZonesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeZones") -{} - -DescribeZonesRequest::~DescribeZonesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeZones") +{} + +DescribeZonesRequest::~DescribeZonesRequest() +{} + std::string DescribeZonesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DescribeZonesResult.cc b/ecs/src/model/DescribeZonesResult.cc index 6590641cd..434551746 100644 --- a/ecs/src/model/DescribeZonesResult.cc +++ b/ecs/src/model/DescribeZonesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeZonesResult::DescribeZonesResult() : - ServiceResult() -{} - -DescribeZonesResult::DescribeZonesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeZonesResult::~DescribeZonesResult() -{} - -void DescribeZonesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeZonesResult::DescribeZonesResult() : + ServiceResult() +{} + +DescribeZonesResult::DescribeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeZonesResult::~DescribeZonesResult() +{} + +void DescribeZonesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allZones = value["Zones"]["Zone"]; for (auto value : allZones) { @@ -94,9 +97,9 @@ void DescribeZonesResult::parse(const std::string &payload) zonesObject.dedicatedHostGenerations.push_back(value.asString()); zones_.push_back(zonesObject); } - -} - + +} + std::vector DescribeZonesResult::getZones()const { return zones_; diff --git a/ecs/src/model/DetachClassicLinkVpcRequest.cc b/ecs/src/model/DetachClassicLinkVpcRequest.cc index 5839662ab..e8058ff65 100644 --- a/ecs/src/model/DetachClassicLinkVpcRequest.cc +++ b/ecs/src/model/DetachClassicLinkVpcRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DetachClassicLinkVpcRequest; - -DetachClassicLinkVpcRequest::DetachClassicLinkVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachClassicLinkVpc") -{} - -DetachClassicLinkVpcRequest::~DetachClassicLinkVpcRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DetachClassicLinkVpcRequest; + +DetachClassicLinkVpcRequest::DetachClassicLinkVpcRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DetachClassicLinkVpc") +{} + +DetachClassicLinkVpcRequest::~DetachClassicLinkVpcRequest() +{} + std::string DetachClassicLinkVpcRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DetachClassicLinkVpcResult.cc b/ecs/src/model/DetachClassicLinkVpcResult.cc index cc1b94a83..24aa5ecc2 100644 --- a/ecs/src/model/DetachClassicLinkVpcResult.cc +++ b/ecs/src/model/DetachClassicLinkVpcResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DetachClassicLinkVpcResult::DetachClassicLinkVpcResult() : - ServiceResult() -{} - -DetachClassicLinkVpcResult::DetachClassicLinkVpcResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachClassicLinkVpcResult::~DetachClassicLinkVpcResult() -{} - -void DetachClassicLinkVpcResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachClassicLinkVpcResult::DetachClassicLinkVpcResult() : + ServiceResult() +{} + +DetachClassicLinkVpcResult::DetachClassicLinkVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachClassicLinkVpcResult::~DetachClassicLinkVpcResult() +{} + +void DetachClassicLinkVpcResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DetachDiskRequest.cc b/ecs/src/model/DetachDiskRequest.cc index 88bc21e17..636cd0a56 100644 --- a/ecs/src/model/DetachDiskRequest.cc +++ b/ecs/src/model/DetachDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DetachDiskRequest; - -DetachDiskRequest::DetachDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachDisk") -{} - -DetachDiskRequest::~DetachDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DetachDiskRequest; + +DetachDiskRequest::DetachDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DetachDisk") +{} + +DetachDiskRequest::~DetachDiskRequest() +{} + std::string DetachDiskRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DetachDiskResult.cc b/ecs/src/model/DetachDiskResult.cc index a337b47a1..ea42a9fd7 100644 --- a/ecs/src/model/DetachDiskResult.cc +++ b/ecs/src/model/DetachDiskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DetachDiskResult::DetachDiskResult() : - ServiceResult() -{} - -DetachDiskResult::DetachDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachDiskResult::~DetachDiskResult() -{} - -void DetachDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachDiskResult::DetachDiskResult() : + ServiceResult() +{} + +DetachDiskResult::DetachDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachDiskResult::~DetachDiskResult() +{} + +void DetachDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DetachInstanceRamRoleRequest.cc b/ecs/src/model/DetachInstanceRamRoleRequest.cc index 69aada89f..6dbc07420 100644 --- a/ecs/src/model/DetachInstanceRamRoleRequest.cc +++ b/ecs/src/model/DetachInstanceRamRoleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DetachInstanceRamRoleRequest; - -DetachInstanceRamRoleRequest::DetachInstanceRamRoleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachInstanceRamRole") -{} - -DetachInstanceRamRoleRequest::~DetachInstanceRamRoleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DetachInstanceRamRoleRequest; + +DetachInstanceRamRoleRequest::DetachInstanceRamRoleRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DetachInstanceRamRole") +{} + +DetachInstanceRamRoleRequest::~DetachInstanceRamRoleRequest() +{} + std::string DetachInstanceRamRoleRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DetachInstanceRamRoleResult.cc b/ecs/src/model/DetachInstanceRamRoleResult.cc index f274381f9..9e3aa1416 100644 --- a/ecs/src/model/DetachInstanceRamRoleResult.cc +++ b/ecs/src/model/DetachInstanceRamRoleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DetachInstanceRamRoleResult::DetachInstanceRamRoleResult() : - ServiceResult() -{} - -DetachInstanceRamRoleResult::DetachInstanceRamRoleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachInstanceRamRoleResult::~DetachInstanceRamRoleResult() -{} - -void DetachInstanceRamRoleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachInstanceRamRoleResult::DetachInstanceRamRoleResult() : + ServiceResult() +{} + +DetachInstanceRamRoleResult::DetachInstanceRamRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachInstanceRamRoleResult::~DetachInstanceRamRoleResult() +{} + +void DetachInstanceRamRoleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDetachInstanceRamRoleResults = value["DetachInstanceRamRoleResults"]["DetachInstanceRamRoleResult"]; for (auto value : allDetachInstanceRamRoleResults) { @@ -70,9 +73,9 @@ void DetachInstanceRamRoleResult::parse(const std::string &payload) failCount_ = std::stoi(value["FailCount"].asString()); if(!value["RamRoleName"].isNull()) ramRoleName_ = value["RamRoleName"].asString(); - -} - + +} + int DetachInstanceRamRoleResult::getTotalCount()const { return totalCount_; diff --git a/ecs/src/model/DetachKeyPairRequest.cc b/ecs/src/model/DetachKeyPairRequest.cc index 71cc7c6c6..aa119db62 100644 --- a/ecs/src/model/DetachKeyPairRequest.cc +++ b/ecs/src/model/DetachKeyPairRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DetachKeyPairRequest; - -DetachKeyPairRequest::DetachKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachKeyPair") -{} - -DetachKeyPairRequest::~DetachKeyPairRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DetachKeyPairRequest; + +DetachKeyPairRequest::DetachKeyPairRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DetachKeyPair") +{} + +DetachKeyPairRequest::~DetachKeyPairRequest() +{} + std::string DetachKeyPairRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/DetachKeyPairResult.cc b/ecs/src/model/DetachKeyPairResult.cc index 0b6228fce..ba37fd1a1 100644 --- a/ecs/src/model/DetachKeyPairResult.cc +++ b/ecs/src/model/DetachKeyPairResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DetachKeyPairResult::DetachKeyPairResult() : - ServiceResult() -{} - -DetachKeyPairResult::DetachKeyPairResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachKeyPairResult::~DetachKeyPairResult() -{} - -void DetachKeyPairResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachKeyPairResult::DetachKeyPairResult() : + ServiceResult() +{} + +DetachKeyPairResult::DetachKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachKeyPairResult::~DetachKeyPairResult() +{} + +void DetachKeyPairResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allResults = value["Results"]["Result"]; for (auto value : allResults) { @@ -60,9 +63,9 @@ void DetachKeyPairResult::parse(const std::string &payload) failCount_ = value["FailCount"].asString(); if(!value["KeyPairName"].isNull()) keyPairName_ = value["KeyPairName"].asString(); - -} - + +} + std::string DetachKeyPairResult::getKeyPairName()const { return keyPairName_; diff --git a/ecs/src/model/DetachNetworkInterfaceRequest.cc b/ecs/src/model/DetachNetworkInterfaceRequest.cc index 782385ecc..048343c9f 100644 --- a/ecs/src/model/DetachNetworkInterfaceRequest.cc +++ b/ecs/src/model/DetachNetworkInterfaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::DetachNetworkInterfaceRequest; - -DetachNetworkInterfaceRequest::DetachNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachNetworkInterface") -{} - -DetachNetworkInterfaceRequest::~DetachNetworkInterfaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::DetachNetworkInterfaceRequest; + +DetachNetworkInterfaceRequest::DetachNetworkInterfaceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DetachNetworkInterface") +{} + +DetachNetworkInterfaceRequest::~DetachNetworkInterfaceRequest() +{} + long DetachNetworkInterfaceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/DetachNetworkInterfaceResult.cc b/ecs/src/model/DetachNetworkInterfaceResult.cc index 3d10a6eb4..3f999d9b1 100644 --- a/ecs/src/model/DetachNetworkInterfaceResult.cc +++ b/ecs/src/model/DetachNetworkInterfaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DetachNetworkInterfaceResult::DetachNetworkInterfaceResult() : - ServiceResult() -{} - -DetachNetworkInterfaceResult::DetachNetworkInterfaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachNetworkInterfaceResult::~DetachNetworkInterfaceResult() -{} - -void DetachNetworkInterfaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachNetworkInterfaceResult::DetachNetworkInterfaceResult() : + ServiceResult() +{} + +DetachNetworkInterfaceResult::DetachNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachNetworkInterfaceResult::~DetachNetworkInterfaceResult() +{} + +void DetachNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/EipFillParamsRequest.cc b/ecs/src/model/EipFillParamsRequest.cc index 55943df04..2d3e5ca82 100644 --- a/ecs/src/model/EipFillParamsRequest.cc +++ b/ecs/src/model/EipFillParamsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::EipFillParamsRequest; - -EipFillParamsRequest::EipFillParamsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EipFillParams") -{} - -EipFillParamsRequest::~EipFillParamsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::EipFillParamsRequest; + +EipFillParamsRequest::EipFillParamsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "EipFillParams") +{} + +EipFillParamsRequest::~EipFillParamsRequest() +{} + long EipFillParamsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/EipFillParamsResult.cc b/ecs/src/model/EipFillParamsResult.cc index df74c2423..a9fc432e3 100644 --- a/ecs/src/model/EipFillParamsResult.cc +++ b/ecs/src/model/EipFillParamsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -EipFillParamsResult::EipFillParamsResult() : - ServiceResult() -{} - -EipFillParamsResult::EipFillParamsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EipFillParamsResult::~EipFillParamsResult() -{} - -void EipFillParamsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipFillParamsResult::EipFillParamsResult() : + ServiceResult() +{} + +EipFillParamsResult::EipFillParamsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EipFillParamsResult::~EipFillParamsResult() +{} + +void EipFillParamsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); if(!value["data"].isNull()) @@ -50,9 +53,9 @@ void EipFillParamsResult::parse(const std::string &payload) success_ = value["success"].asString() == "true"; if(!value["message"].isNull()) message_ = value["message"].asString(); - -} - + +} + std::string EipFillParamsResult::getRequestId()const { return requestId_; diff --git a/ecs/src/model/EipFillProductRequest.cc b/ecs/src/model/EipFillProductRequest.cc index 9007c63c4..f68e135bc 100644 --- a/ecs/src/model/EipFillProductRequest.cc +++ b/ecs/src/model/EipFillProductRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::EipFillProductRequest; - -EipFillProductRequest::EipFillProductRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EipFillProduct") -{} - -EipFillProductRequest::~EipFillProductRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::EipFillProductRequest; + +EipFillProductRequest::EipFillProductRequest() : + RpcServiceRequest("ecs", "2014-05-26", "EipFillProduct") +{} + +EipFillProductRequest::~EipFillProductRequest() +{} + long EipFillProductRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/EipFillProductResult.cc b/ecs/src/model/EipFillProductResult.cc index 50bd123e1..dec27101d 100644 --- a/ecs/src/model/EipFillProductResult.cc +++ b/ecs/src/model/EipFillProductResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -EipFillProductResult::EipFillProductResult() : - ServiceResult() -{} - -EipFillProductResult::EipFillProductResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EipFillProductResult::~EipFillProductResult() -{} - -void EipFillProductResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipFillProductResult::EipFillProductResult() : + ServiceResult() +{} + +EipFillProductResult::EipFillProductResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EipFillProductResult::~EipFillProductResult() +{} + +void EipFillProductResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); if(!value["data"].isNull()) @@ -50,9 +53,9 @@ void EipFillProductResult::parse(const std::string &payload) success_ = value["success"].asString() == "true"; if(!value["message"].isNull()) message_ = value["message"].asString(); - -} - + +} + std::string EipFillProductResult::getRequestId()const { return requestId_; diff --git a/ecs/src/model/EipNotifyPaidRequest.cc b/ecs/src/model/EipNotifyPaidRequest.cc index c1309fedf..08e14efa3 100644 --- a/ecs/src/model/EipNotifyPaidRequest.cc +++ b/ecs/src/model/EipNotifyPaidRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::EipNotifyPaidRequest; - -EipNotifyPaidRequest::EipNotifyPaidRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EipNotifyPaid") -{} - -EipNotifyPaidRequest::~EipNotifyPaidRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::EipNotifyPaidRequest; + +EipNotifyPaidRequest::EipNotifyPaidRequest() : + RpcServiceRequest("ecs", "2014-05-26", "EipNotifyPaid") +{} + +EipNotifyPaidRequest::~EipNotifyPaidRequest() +{} + long EipNotifyPaidRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/EipNotifyPaidResult.cc b/ecs/src/model/EipNotifyPaidResult.cc index 6aa08d9d3..dd70edf38 100644 --- a/ecs/src/model/EipNotifyPaidResult.cc +++ b/ecs/src/model/EipNotifyPaidResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -EipNotifyPaidResult::EipNotifyPaidResult() : - ServiceResult() -{} - -EipNotifyPaidResult::EipNotifyPaidResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EipNotifyPaidResult::~EipNotifyPaidResult() -{} - -void EipNotifyPaidResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipNotifyPaidResult::EipNotifyPaidResult() : + ServiceResult() +{} + +EipNotifyPaidResult::EipNotifyPaidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EipNotifyPaidResult::~EipNotifyPaidResult() +{} + +void EipNotifyPaidResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["requestId"].isNull()) requestId_ = value["requestId"].asString(); if(!value["data"].isNull()) @@ -50,9 +53,9 @@ void EipNotifyPaidResult::parse(const std::string &payload) message_ = value["message"].asString(); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; - -} - + +} + std::string EipNotifyPaidResult::getRequestId()const { return requestId_; diff --git a/ecs/src/model/EnablePhysicalConnectionRequest.cc b/ecs/src/model/EnablePhysicalConnectionRequest.cc index f9c0a7386..07c5624b6 100644 --- a/ecs/src/model/EnablePhysicalConnectionRequest.cc +++ b/ecs/src/model/EnablePhysicalConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::EnablePhysicalConnectionRequest; - -EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EnablePhysicalConnection") -{} - -EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::EnablePhysicalConnectionRequest; + +EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "EnablePhysicalConnection") +{} + +EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() +{} + long EnablePhysicalConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/EnablePhysicalConnectionResult.cc b/ecs/src/model/EnablePhysicalConnectionResult.cc index d96d65536..fdcd96a99 100644 --- a/ecs/src/model/EnablePhysicalConnectionResult.cc +++ b/ecs/src/model/EnablePhysicalConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -EnablePhysicalConnectionResult::EnablePhysicalConnectionResult() : - ServiceResult() -{} - -EnablePhysicalConnectionResult::EnablePhysicalConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EnablePhysicalConnectionResult::~EnablePhysicalConnectionResult() -{} - -void EnablePhysicalConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EnablePhysicalConnectionResult::EnablePhysicalConnectionResult() : + ServiceResult() +{} + +EnablePhysicalConnectionResult::EnablePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnablePhysicalConnectionResult::~EnablePhysicalConnectionResult() +{} + +void EnablePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ExportImageRequest.cc b/ecs/src/model/ExportImageRequest.cc index bfb9b2717..62145876c 100644 --- a/ecs/src/model/ExportImageRequest.cc +++ b/ecs/src/model/ExportImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ExportImageRequest; - -ExportImageRequest::ExportImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ExportImage") -{} - -ExportImageRequest::~ExportImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ExportImageRequest; + +ExportImageRequest::ExportImageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ExportImage") +{} + +ExportImageRequest::~ExportImageRequest() +{} + std::string ExportImageRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ExportImageResult.cc b/ecs/src/model/ExportImageResult.cc index 8dfc520ab..5e2530732 100644 --- a/ecs/src/model/ExportImageResult.cc +++ b/ecs/src/model/ExportImageResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ExportImageResult::ExportImageResult() : - ServiceResult() -{} - -ExportImageResult::ExportImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ExportImageResult::~ExportImageResult() -{} - -void ExportImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ExportImageResult::ExportImageResult() : + ServiceResult() +{} + +ExportImageResult::ExportImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportImageResult::~ExportImageResult() +{} + +void ExportImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); - -} - + +} + std::string ExportImageResult::getTaskId()const { return taskId_; diff --git a/ecs/src/model/ExportSnapshotRequest.cc b/ecs/src/model/ExportSnapshotRequest.cc index 594482dd1..c0d6f3878 100644 --- a/ecs/src/model/ExportSnapshotRequest.cc +++ b/ecs/src/model/ExportSnapshotRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ExportSnapshotRequest; - -ExportSnapshotRequest::ExportSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ExportSnapshot") -{} - -ExportSnapshotRequest::~ExportSnapshotRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ExportSnapshotRequest; + +ExportSnapshotRequest::ExportSnapshotRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ExportSnapshot") +{} + +ExportSnapshotRequest::~ExportSnapshotRequest() +{} + long ExportSnapshotRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ExportSnapshotResult.cc b/ecs/src/model/ExportSnapshotResult.cc index cb721dff2..9548a16ca 100644 --- a/ecs/src/model/ExportSnapshotResult.cc +++ b/ecs/src/model/ExportSnapshotResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ExportSnapshotResult::ExportSnapshotResult() : - ServiceResult() -{} - -ExportSnapshotResult::ExportSnapshotResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ExportSnapshotResult::~ExportSnapshotResult() -{} - -void ExportSnapshotResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ExportSnapshotResult::ExportSnapshotResult() : + ServiceResult() +{} + +ExportSnapshotResult::ExportSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportSnapshotResult::~ExportSnapshotResult() +{} + +void ExportSnapshotResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string ExportSnapshotResult::getTaskId()const { return taskId_; diff --git a/ecs/src/model/GetInstanceConsoleOutputRequest.cc b/ecs/src/model/GetInstanceConsoleOutputRequest.cc index 2957bca93..43de6cbcb 100644 --- a/ecs/src/model/GetInstanceConsoleOutputRequest.cc +++ b/ecs/src/model/GetInstanceConsoleOutputRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::GetInstanceConsoleOutputRequest; - -GetInstanceConsoleOutputRequest::GetInstanceConsoleOutputRequest() : - RpcServiceRequest("ecs", "2014-05-26", "GetInstanceConsoleOutput") -{} - -GetInstanceConsoleOutputRequest::~GetInstanceConsoleOutputRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::GetInstanceConsoleOutputRequest; + +GetInstanceConsoleOutputRequest::GetInstanceConsoleOutputRequest() : + RpcServiceRequest("ecs", "2014-05-26", "GetInstanceConsoleOutput") +{} + +GetInstanceConsoleOutputRequest::~GetInstanceConsoleOutputRequest() +{} + long GetInstanceConsoleOutputRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/GetInstanceConsoleOutputResult.cc b/ecs/src/model/GetInstanceConsoleOutputResult.cc index 1a67308d9..d174165e5 100644 --- a/ecs/src/model/GetInstanceConsoleOutputResult.cc +++ b/ecs/src/model/GetInstanceConsoleOutputResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -GetInstanceConsoleOutputResult::GetInstanceConsoleOutputResult() : - ServiceResult() -{} - -GetInstanceConsoleOutputResult::GetInstanceConsoleOutputResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetInstanceConsoleOutputResult::~GetInstanceConsoleOutputResult() -{} - -void GetInstanceConsoleOutputResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +GetInstanceConsoleOutputResult::GetInstanceConsoleOutputResult() : + ServiceResult() +{} + +GetInstanceConsoleOutputResult::GetInstanceConsoleOutputResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceConsoleOutputResult::~GetInstanceConsoleOutputResult() +{} + +void GetInstanceConsoleOutputResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["ConsoleOutput"].isNull()) consoleOutput_ = value["ConsoleOutput"].asString(); if(!value["LastUpdateTime"].isNull()) lastUpdateTime_ = value["LastUpdateTime"].asString(); - -} - + +} + std::string GetInstanceConsoleOutputResult::getConsoleOutput()const { return consoleOutput_; diff --git a/ecs/src/model/GetInstanceScreenshotRequest.cc b/ecs/src/model/GetInstanceScreenshotRequest.cc index d7b40b873..aee41e0ca 100644 --- a/ecs/src/model/GetInstanceScreenshotRequest.cc +++ b/ecs/src/model/GetInstanceScreenshotRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::GetInstanceScreenshotRequest; - -GetInstanceScreenshotRequest::GetInstanceScreenshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "GetInstanceScreenshot") -{} - -GetInstanceScreenshotRequest::~GetInstanceScreenshotRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::GetInstanceScreenshotRequest; + +GetInstanceScreenshotRequest::GetInstanceScreenshotRequest() : + RpcServiceRequest("ecs", "2014-05-26", "GetInstanceScreenshot") +{} + +GetInstanceScreenshotRequest::~GetInstanceScreenshotRequest() +{} + long GetInstanceScreenshotRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/GetInstanceScreenshotResult.cc b/ecs/src/model/GetInstanceScreenshotResult.cc index 2f173843a..30cc8d55d 100644 --- a/ecs/src/model/GetInstanceScreenshotResult.cc +++ b/ecs/src/model/GetInstanceScreenshotResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -GetInstanceScreenshotResult::GetInstanceScreenshotResult() : - ServiceResult() -{} - -GetInstanceScreenshotResult::GetInstanceScreenshotResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetInstanceScreenshotResult::~GetInstanceScreenshotResult() -{} - -void GetInstanceScreenshotResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +GetInstanceScreenshotResult::GetInstanceScreenshotResult() : + ServiceResult() +{} + +GetInstanceScreenshotResult::GetInstanceScreenshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstanceScreenshotResult::~GetInstanceScreenshotResult() +{} + +void GetInstanceScreenshotResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["Screenshot"].isNull()) screenshot_ = value["Screenshot"].asString(); - -} - + +} + std::string GetInstanceScreenshotResult::getInstanceId()const { return instanceId_; diff --git a/ecs/src/model/ImportImageRequest.cc b/ecs/src/model/ImportImageRequest.cc index 462c3f6f5..81a4e34f7 100644 --- a/ecs/src/model/ImportImageRequest.cc +++ b/ecs/src/model/ImportImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ImportImageRequest; - -ImportImageRequest::ImportImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ImportImage") -{} - -ImportImageRequest::~ImportImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ImportImageRequest; + +ImportImageRequest::ImportImageRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ImportImage") +{} + +ImportImageRequest::~ImportImageRequest() +{} + std::vector ImportImageRequest::getDiskDeviceMapping()const { return diskDeviceMapping_; diff --git a/ecs/src/model/ImportImageResult.cc b/ecs/src/model/ImportImageResult.cc index eb517daf1..8d78f68ba 100644 --- a/ecs/src/model/ImportImageResult.cc +++ b/ecs/src/model/ImportImageResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ImportImageResult::ImportImageResult() : - ServiceResult() -{} - -ImportImageResult::ImportImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportImageResult::~ImportImageResult() -{} - -void ImportImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ImportImageResult::ImportImageResult() : + ServiceResult() +{} + +ImportImageResult::ImportImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportImageResult::~ImportImageResult() +{} + +void ImportImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); - -} - + +} + std::string ImportImageResult::getTaskId()const { return taskId_; diff --git a/ecs/src/model/ImportKeyPairRequest.cc b/ecs/src/model/ImportKeyPairRequest.cc index 55f7e2825..7912b45bc 100644 --- a/ecs/src/model/ImportKeyPairRequest.cc +++ b/ecs/src/model/ImportKeyPairRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ImportKeyPairRequest; - -ImportKeyPairRequest::ImportKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ImportKeyPair") -{} - -ImportKeyPairRequest::~ImportKeyPairRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ImportKeyPairRequest; + +ImportKeyPairRequest::ImportKeyPairRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ImportKeyPair") +{} + +ImportKeyPairRequest::~ImportKeyPairRequest() +{} + std::string ImportKeyPairRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ImportKeyPairResult.cc b/ecs/src/model/ImportKeyPairResult.cc index 9189e3819..c94f3a6b9 100644 --- a/ecs/src/model/ImportKeyPairResult.cc +++ b/ecs/src/model/ImportKeyPairResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ImportKeyPairResult::ImportKeyPairResult() : - ServiceResult() -{} - -ImportKeyPairResult::ImportKeyPairResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportKeyPairResult::~ImportKeyPairResult() -{} - -void ImportKeyPairResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ImportKeyPairResult::ImportKeyPairResult() : + ServiceResult() +{} + +ImportKeyPairResult::ImportKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportKeyPairResult::~ImportKeyPairResult() +{} + +void ImportKeyPairResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["KeyPairName"].isNull()) keyPairName_ = value["KeyPairName"].asString(); if(!value["KeyPairFingerPrint"].isNull()) keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); - -} - + +} + std::string ImportKeyPairResult::getKeyPairFingerPrint()const { return keyPairFingerPrint_; diff --git a/ecs/src/model/ImportSnapshotRequest.cc b/ecs/src/model/ImportSnapshotRequest.cc index f3a060703..55622eaee 100644 --- a/ecs/src/model/ImportSnapshotRequest.cc +++ b/ecs/src/model/ImportSnapshotRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ImportSnapshotRequest; - -ImportSnapshotRequest::ImportSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ImportSnapshot") -{} - -ImportSnapshotRequest::~ImportSnapshotRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ImportSnapshotRequest; + +ImportSnapshotRequest::ImportSnapshotRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ImportSnapshot") +{} + +ImportSnapshotRequest::~ImportSnapshotRequest() +{} + long ImportSnapshotRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ImportSnapshotResult.cc b/ecs/src/model/ImportSnapshotResult.cc index ef4583340..089392cb3 100644 --- a/ecs/src/model/ImportSnapshotResult.cc +++ b/ecs/src/model/ImportSnapshotResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ImportSnapshotResult::ImportSnapshotResult() : - ServiceResult() -{} - -ImportSnapshotResult::ImportSnapshotResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportSnapshotResult::~ImportSnapshotResult() -{} - -void ImportSnapshotResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ImportSnapshotResult::ImportSnapshotResult() : + ServiceResult() +{} + +ImportSnapshotResult::ImportSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportSnapshotResult::~ImportSnapshotResult() +{} + +void ImportSnapshotResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["SnapshotId"].isNull()) snapshotId_ = value["SnapshotId"].asString(); - -} - + +} + std::string ImportSnapshotResult::getSnapshotId()const { return snapshotId_; diff --git a/ecs/src/model/InstallCloudAssistantRequest.cc b/ecs/src/model/InstallCloudAssistantRequest.cc index 316defb54..199545bbe 100644 --- a/ecs/src/model/InstallCloudAssistantRequest.cc +++ b/ecs/src/model/InstallCloudAssistantRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::InstallCloudAssistantRequest; - -InstallCloudAssistantRequest::InstallCloudAssistantRequest() : - RpcServiceRequest("ecs", "2014-05-26", "InstallCloudAssistant") -{} - -InstallCloudAssistantRequest::~InstallCloudAssistantRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::InstallCloudAssistantRequest; + +InstallCloudAssistantRequest::InstallCloudAssistantRequest() : + RpcServiceRequest("ecs", "2014-05-26", "InstallCloudAssistant") +{} + +InstallCloudAssistantRequest::~InstallCloudAssistantRequest() +{} + long InstallCloudAssistantRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/InstallCloudAssistantResult.cc b/ecs/src/model/InstallCloudAssistantResult.cc index 07e2fbfa2..051611865 100644 --- a/ecs/src/model/InstallCloudAssistantResult.cc +++ b/ecs/src/model/InstallCloudAssistantResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -InstallCloudAssistantResult::InstallCloudAssistantResult() : - ServiceResult() -{} - -InstallCloudAssistantResult::InstallCloudAssistantResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -InstallCloudAssistantResult::~InstallCloudAssistantResult() -{} - -void InstallCloudAssistantResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +InstallCloudAssistantResult::InstallCloudAssistantResult() : + ServiceResult() +{} + +InstallCloudAssistantResult::InstallCloudAssistantResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InstallCloudAssistantResult::~InstallCloudAssistantResult() +{} + +void InstallCloudAssistantResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/InvokeCommandRequest.cc b/ecs/src/model/InvokeCommandRequest.cc index 9ae84d334..171251073 100644 --- a/ecs/src/model/InvokeCommandRequest.cc +++ b/ecs/src/model/InvokeCommandRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::InvokeCommandRequest; - -InvokeCommandRequest::InvokeCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "InvokeCommand") -{} - -InvokeCommandRequest::~InvokeCommandRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::InvokeCommandRequest; + +InvokeCommandRequest::InvokeCommandRequest() : + RpcServiceRequest("ecs", "2014-05-26", "InvokeCommand") +{} + +InvokeCommandRequest::~InvokeCommandRequest() +{} + long InvokeCommandRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -345,14 +345,14 @@ void InvokeCommandRequest::setAkProxy(const std::string& akProxy) setCoreParameter("AkProxy", akProxy); } -Json InvokeCommandRequest::getParameters()const +std::map InvokeCommandRequest::getParameters()const { return parameters_; } -void InvokeCommandRequest::setParameters(const Json& parameters) +void InvokeCommandRequest::setParameters(const std::map& parameters) { parameters_ = parameters; - setCoreParameter("Parameters", std::to_string(parameters)); + setJsonParameters("Parameters", parameters); } diff --git a/ecs/src/model/InvokeCommandResult.cc b/ecs/src/model/InvokeCommandResult.cc index 4d3321d2d..0a92fab4d 100644 --- a/ecs/src/model/InvokeCommandResult.cc +++ b/ecs/src/model/InvokeCommandResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -InvokeCommandResult::InvokeCommandResult() : - ServiceResult() -{} - -InvokeCommandResult::InvokeCommandResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -InvokeCommandResult::~InvokeCommandResult() -{} - -void InvokeCommandResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +InvokeCommandResult::InvokeCommandResult() : + ServiceResult() +{} + +InvokeCommandResult::InvokeCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InvokeCommandResult::~InvokeCommandResult() +{} + +void InvokeCommandResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["InvokeId"].isNull()) invokeId_ = value["InvokeId"].asString(); - -} - + +} + std::string InvokeCommandResult::getInvokeId()const { return invokeId_; diff --git a/ecs/src/model/JoinResourceGroupRequest.cc b/ecs/src/model/JoinResourceGroupRequest.cc index 3464169c4..a7d42335c 100644 --- a/ecs/src/model/JoinResourceGroupRequest.cc +++ b/ecs/src/model/JoinResourceGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::JoinResourceGroupRequest; - -JoinResourceGroupRequest::JoinResourceGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "JoinResourceGroup") -{} - -JoinResourceGroupRequest::~JoinResourceGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::JoinResourceGroupRequest; + +JoinResourceGroupRequest::JoinResourceGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "JoinResourceGroup") +{} + +JoinResourceGroupRequest::~JoinResourceGroupRequest() +{} + std::string JoinResourceGroupRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/JoinResourceGroupResult.cc b/ecs/src/model/JoinResourceGroupResult.cc index d04338fcf..2378a9263 100644 --- a/ecs/src/model/JoinResourceGroupResult.cc +++ b/ecs/src/model/JoinResourceGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -JoinResourceGroupResult::JoinResourceGroupResult() : - ServiceResult() -{} - -JoinResourceGroupResult::JoinResourceGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -JoinResourceGroupResult::~JoinResourceGroupResult() -{} - -void JoinResourceGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +JoinResourceGroupResult::JoinResourceGroupResult() : + ServiceResult() +{} + +JoinResourceGroupResult::JoinResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinResourceGroupResult::~JoinResourceGroupResult() +{} + +void JoinResourceGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/JoinSecurityGroupRequest.cc b/ecs/src/model/JoinSecurityGroupRequest.cc index 06ae8a4d7..31535acb4 100644 --- a/ecs/src/model/JoinSecurityGroupRequest.cc +++ b/ecs/src/model/JoinSecurityGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::JoinSecurityGroupRequest; - -JoinSecurityGroupRequest::JoinSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "JoinSecurityGroup") -{} - -JoinSecurityGroupRequest::~JoinSecurityGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::JoinSecurityGroupRequest; + +JoinSecurityGroupRequest::JoinSecurityGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "JoinSecurityGroup") +{} + +JoinSecurityGroupRequest::~JoinSecurityGroupRequest() +{} + std::string JoinSecurityGroupRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/JoinSecurityGroupResult.cc b/ecs/src/model/JoinSecurityGroupResult.cc index 5fa6acc55..e22b0bb90 100644 --- a/ecs/src/model/JoinSecurityGroupResult.cc +++ b/ecs/src/model/JoinSecurityGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -JoinSecurityGroupResult::JoinSecurityGroupResult() : - ServiceResult() -{} - -JoinSecurityGroupResult::JoinSecurityGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -JoinSecurityGroupResult::~JoinSecurityGroupResult() -{} - -void JoinSecurityGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +JoinSecurityGroupResult::JoinSecurityGroupResult() : + ServiceResult() +{} + +JoinSecurityGroupResult::JoinSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinSecurityGroupResult::~JoinSecurityGroupResult() +{} + +void JoinSecurityGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/LeaveSecurityGroupRequest.cc b/ecs/src/model/LeaveSecurityGroupRequest.cc index c745dc4bd..2caa7c4b4 100644 --- a/ecs/src/model/LeaveSecurityGroupRequest.cc +++ b/ecs/src/model/LeaveSecurityGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::LeaveSecurityGroupRequest; - -LeaveSecurityGroupRequest::LeaveSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "LeaveSecurityGroup") -{} - -LeaveSecurityGroupRequest::~LeaveSecurityGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::LeaveSecurityGroupRequest; + +LeaveSecurityGroupRequest::LeaveSecurityGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "LeaveSecurityGroup") +{} + +LeaveSecurityGroupRequest::~LeaveSecurityGroupRequest() +{} + std::string LeaveSecurityGroupRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/LeaveSecurityGroupResult.cc b/ecs/src/model/LeaveSecurityGroupResult.cc index 6ff7e6e01..7af28665e 100644 --- a/ecs/src/model/LeaveSecurityGroupResult.cc +++ b/ecs/src/model/LeaveSecurityGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -LeaveSecurityGroupResult::LeaveSecurityGroupResult() : - ServiceResult() -{} - -LeaveSecurityGroupResult::LeaveSecurityGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -LeaveSecurityGroupResult::~LeaveSecurityGroupResult() -{} - -void LeaveSecurityGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +LeaveSecurityGroupResult::LeaveSecurityGroupResult() : + ServiceResult() +{} + +LeaveSecurityGroupResult::LeaveSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LeaveSecurityGroupResult::~LeaveSecurityGroupResult() +{} + +void LeaveSecurityGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ListTagResourcesRequest.cc b/ecs/src/model/ListTagResourcesRequest.cc index 4b6a6c8db..5ff6b390f 100644 --- a/ecs/src/model/ListTagResourcesRequest.cc +++ b/ecs/src/model/ListTagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ListTagResources") -{} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ListTagResources") +{} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + long ListTagResourcesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ListTagResourcesResult.cc b/ecs/src/model/ListTagResourcesResult.cc index ee6a478fe..ba2d9a748 100644 --- a/ecs/src/model/ListTagResourcesResult.cc +++ b/ecs/src/model/ListTagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ListTagResourcesResult::ListTagResourcesResult() : - ServiceResult() -{} - -ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagResourcesResult::~ListTagResourcesResult() -{} - -void ListTagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTagResources = value["TagResources"]["TagResource"]; for (auto value : allTagResources) { @@ -56,9 +59,9 @@ void ListTagResourcesResult::parse(const std::string &payload) } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); - -} - + +} + std::string ListTagResourcesResult::getNextToken()const { return nextToken_; diff --git a/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc b/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc index 18871ad4f..b2975b7eb 100644 --- a/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc +++ b/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyAutoProvisioningGroupRequest; - -ModifyAutoProvisioningGroupRequest::ModifyAutoProvisioningGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoProvisioningGroup") -{} - -ModifyAutoProvisioningGroupRequest::~ModifyAutoProvisioningGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyAutoProvisioningGroupRequest; + +ModifyAutoProvisioningGroupRequest::ModifyAutoProvisioningGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoProvisioningGroup") +{} + +ModifyAutoProvisioningGroupRequest::~ModifyAutoProvisioningGroupRequest() +{} + long ModifyAutoProvisioningGroupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyAutoProvisioningGroupResult.cc b/ecs/src/model/ModifyAutoProvisioningGroupResult.cc index bb6e3c0b7..2f2767fe4 100644 --- a/ecs/src/model/ModifyAutoProvisioningGroupResult.cc +++ b/ecs/src/model/ModifyAutoProvisioningGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyAutoProvisioningGroupResult::ModifyAutoProvisioningGroupResult() : - ServiceResult() -{} - -ModifyAutoProvisioningGroupResult::ModifyAutoProvisioningGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAutoProvisioningGroupResult::~ModifyAutoProvisioningGroupResult() -{} - -void ModifyAutoProvisioningGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyAutoProvisioningGroupResult::ModifyAutoProvisioningGroupResult() : + ServiceResult() +{} + +ModifyAutoProvisioningGroupResult::ModifyAutoProvisioningGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAutoProvisioningGroupResult::~ModifyAutoProvisioningGroupResult() +{} + +void ModifyAutoProvisioningGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc b/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc index fd0fcd24f..6dc857b23 100644 --- a/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc +++ b/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyAutoSnapshotPolicyExRequest; - -ModifyAutoSnapshotPolicyExRequest::ModifyAutoSnapshotPolicyExRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx") -{} - -ModifyAutoSnapshotPolicyExRequest::~ModifyAutoSnapshotPolicyExRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyAutoSnapshotPolicyExRequest; + +ModifyAutoSnapshotPolicyExRequest::ModifyAutoSnapshotPolicyExRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx") +{} + +ModifyAutoSnapshotPolicyExRequest::~ModifyAutoSnapshotPolicyExRequest() +{} + std::string ModifyAutoSnapshotPolicyExRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc b/ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc index c6287e2d3..feee5ece1 100644 --- a/ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc +++ b/ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyAutoSnapshotPolicyExResult::ModifyAutoSnapshotPolicyExResult() : - ServiceResult() -{} - -ModifyAutoSnapshotPolicyExResult::ModifyAutoSnapshotPolicyExResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAutoSnapshotPolicyExResult::~ModifyAutoSnapshotPolicyExResult() -{} - -void ModifyAutoSnapshotPolicyExResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyAutoSnapshotPolicyExResult::ModifyAutoSnapshotPolicyExResult() : + ServiceResult() +{} + +ModifyAutoSnapshotPolicyExResult::ModifyAutoSnapshotPolicyExResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAutoSnapshotPolicyExResult::~ModifyAutoSnapshotPolicyExResult() +{} + +void ModifyAutoSnapshotPolicyExResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc b/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc index 670d2822d..c64998358 100644 --- a/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyAutoSnapshotPolicyRequest; - -ModifyAutoSnapshotPolicyRequest::ModifyAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicy") -{} - -ModifyAutoSnapshotPolicyRequest::~ModifyAutoSnapshotPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyAutoSnapshotPolicyRequest; + +ModifyAutoSnapshotPolicyRequest::ModifyAutoSnapshotPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicy") +{} + +ModifyAutoSnapshotPolicyRequest::~ModifyAutoSnapshotPolicyRequest() +{} + bool ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const { return dataDiskPolicyEnabled_; diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyResult.cc b/ecs/src/model/ModifyAutoSnapshotPolicyResult.cc index e1b0b812f..7065fab66 100644 --- a/ecs/src/model/ModifyAutoSnapshotPolicyResult.cc +++ b/ecs/src/model/ModifyAutoSnapshotPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyAutoSnapshotPolicyResult::ModifyAutoSnapshotPolicyResult() : - ServiceResult() -{} - -ModifyAutoSnapshotPolicyResult::ModifyAutoSnapshotPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAutoSnapshotPolicyResult::~ModifyAutoSnapshotPolicyResult() -{} - -void ModifyAutoSnapshotPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyAutoSnapshotPolicyResult::ModifyAutoSnapshotPolicyResult() : + ServiceResult() +{} + +ModifyAutoSnapshotPolicyResult::ModifyAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAutoSnapshotPolicyResult::~ModifyAutoSnapshotPolicyResult() +{} + +void ModifyAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc b/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc index c57d52371..2ec090e46 100644 --- a/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc +++ b/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyBandwidthPackageSpecRequest; - -ModifyBandwidthPackageSpecRequest::ModifyBandwidthPackageSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyBandwidthPackageSpec") -{} - -ModifyBandwidthPackageSpecRequest::~ModifyBandwidthPackageSpecRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyBandwidthPackageSpecRequest; + +ModifyBandwidthPackageSpecRequest::ModifyBandwidthPackageSpecRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyBandwidthPackageSpec") +{} + +ModifyBandwidthPackageSpecRequest::~ModifyBandwidthPackageSpecRequest() +{} + long ModifyBandwidthPackageSpecRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyBandwidthPackageSpecResult.cc b/ecs/src/model/ModifyBandwidthPackageSpecResult.cc index f307d0399..12ff0b770 100644 --- a/ecs/src/model/ModifyBandwidthPackageSpecResult.cc +++ b/ecs/src/model/ModifyBandwidthPackageSpecResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult() : - ServiceResult() -{} - -ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyBandwidthPackageSpecResult::~ModifyBandwidthPackageSpecResult() -{} - -void ModifyBandwidthPackageSpecResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult() : + ServiceResult() +{} + +ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBandwidthPackageSpecResult::~ModifyBandwidthPackageSpecResult() +{} + +void ModifyBandwidthPackageSpecResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyCommandRequest.cc b/ecs/src/model/ModifyCommandRequest.cc index c454ad137..5b34f047a 100644 --- a/ecs/src/model/ModifyCommandRequest.cc +++ b/ecs/src/model/ModifyCommandRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyCommandRequest; - -ModifyCommandRequest::ModifyCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyCommand") -{} - -ModifyCommandRequest::~ModifyCommandRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyCommandRequest; + +ModifyCommandRequest::ModifyCommandRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyCommand") +{} + +ModifyCommandRequest::~ModifyCommandRequest() +{} + long ModifyCommandRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyCommandResult.cc b/ecs/src/model/ModifyCommandResult.cc index 2d9dc8362..99eb7cffe 100644 --- a/ecs/src/model/ModifyCommandResult.cc +++ b/ecs/src/model/ModifyCommandResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyCommandResult::ModifyCommandResult() : - ServiceResult() -{} - -ModifyCommandResult::ModifyCommandResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyCommandResult::~ModifyCommandResult() -{} - -void ModifyCommandResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyCommandResult::ModifyCommandResult() : + ServiceResult() +{} + +ModifyCommandResult::ModifyCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCommandResult::~ModifyCommandResult() +{} + +void ModifyCommandResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc b/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc index 74ca51cf2..a7bf88873 100644 --- a/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDedicatedHostAttributeRequest; - -ModifyDedicatedHostAttributeRequest::ModifyDedicatedHostAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAttribute") -{} - -ModifyDedicatedHostAttributeRequest::~ModifyDedicatedHostAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDedicatedHostAttributeRequest; + +ModifyDedicatedHostAttributeRequest::ModifyDedicatedHostAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAttribute") +{} + +ModifyDedicatedHostAttributeRequest::~ModifyDedicatedHostAttributeRequest() +{} + long ModifyDedicatedHostAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyDedicatedHostAttributeResult.cc b/ecs/src/model/ModifyDedicatedHostAttributeResult.cc index a8215427f..181f1c3f7 100644 --- a/ecs/src/model/ModifyDedicatedHostAttributeResult.cc +++ b/ecs/src/model/ModifyDedicatedHostAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyDedicatedHostAttributeResult::ModifyDedicatedHostAttributeResult() : - ServiceResult() -{} - -ModifyDedicatedHostAttributeResult::ModifyDedicatedHostAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDedicatedHostAttributeResult::~ModifyDedicatedHostAttributeResult() -{} - -void ModifyDedicatedHostAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDedicatedHostAttributeResult::ModifyDedicatedHostAttributeResult() : + ServiceResult() +{} + +ModifyDedicatedHostAttributeResult::ModifyDedicatedHostAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDedicatedHostAttributeResult::~ModifyDedicatedHostAttributeResult() +{} + +void ModifyDedicatedHostAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc b/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc index e3e0fd5ec..7f823a70e 100644 --- a/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDedicatedHostAutoReleaseTimeRequest; - -ModifyDedicatedHostAutoReleaseTimeRequest::ModifyDedicatedHostAutoReleaseTimeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoReleaseTime") -{} - -ModifyDedicatedHostAutoReleaseTimeRequest::~ModifyDedicatedHostAutoReleaseTimeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDedicatedHostAutoReleaseTimeRequest; + +ModifyDedicatedHostAutoReleaseTimeRequest::ModifyDedicatedHostAutoReleaseTimeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoReleaseTime") +{} + +ModifyDedicatedHostAutoReleaseTimeRequest::~ModifyDedicatedHostAutoReleaseTimeRequest() +{} + std::string ModifyDedicatedHostAutoReleaseTimeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeResult.cc b/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeResult.cc index 84d243c91..02be41042 100644 --- a/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeResult.cc +++ b/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyDedicatedHostAutoReleaseTimeResult::ModifyDedicatedHostAutoReleaseTimeResult() : - ServiceResult() -{} - -ModifyDedicatedHostAutoReleaseTimeResult::ModifyDedicatedHostAutoReleaseTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDedicatedHostAutoReleaseTimeResult::~ModifyDedicatedHostAutoReleaseTimeResult() -{} - -void ModifyDedicatedHostAutoReleaseTimeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDedicatedHostAutoReleaseTimeResult::ModifyDedicatedHostAutoReleaseTimeResult() : + ServiceResult() +{} + +ModifyDedicatedHostAutoReleaseTimeResult::ModifyDedicatedHostAutoReleaseTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDedicatedHostAutoReleaseTimeResult::~ModifyDedicatedHostAutoReleaseTimeResult() +{} + +void ModifyDedicatedHostAutoReleaseTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc b/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc index 476b8af66..15fd93c38 100644 --- a/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDedicatedHostAutoRenewAttributeRequest; - -ModifyDedicatedHostAutoRenewAttributeRequest::ModifyDedicatedHostAutoRenewAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute") -{} - -ModifyDedicatedHostAutoRenewAttributeRequest::~ModifyDedicatedHostAutoRenewAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDedicatedHostAutoRenewAttributeRequest; + +ModifyDedicatedHostAutoRenewAttributeRequest::ModifyDedicatedHostAutoRenewAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute") +{} + +ModifyDedicatedHostAutoRenewAttributeRequest::~ModifyDedicatedHostAutoRenewAttributeRequest() +{} + std::string ModifyDedicatedHostAutoRenewAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeResult.cc b/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeResult.cc index 5de865acf..580ba6f21 100644 --- a/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeResult.cc +++ b/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyDedicatedHostAutoRenewAttributeResult::ModifyDedicatedHostAutoRenewAttributeResult() : - ServiceResult() -{} - -ModifyDedicatedHostAutoRenewAttributeResult::ModifyDedicatedHostAutoRenewAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDedicatedHostAutoRenewAttributeResult::~ModifyDedicatedHostAutoRenewAttributeResult() -{} - -void ModifyDedicatedHostAutoRenewAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDedicatedHostAutoRenewAttributeResult::ModifyDedicatedHostAutoRenewAttributeResult() : + ServiceResult() +{} + +ModifyDedicatedHostAutoRenewAttributeResult::ModifyDedicatedHostAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDedicatedHostAutoRenewAttributeResult::~ModifyDedicatedHostAutoRenewAttributeResult() +{} + +void ModifyDedicatedHostAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc b/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc index 34ef2bdad..7f08a79bc 100644 --- a/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc +++ b/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDeploymentSetAttributeRequest; - -ModifyDeploymentSetAttributeRequest::ModifyDeploymentSetAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDeploymentSetAttribute") -{} - -ModifyDeploymentSetAttributeRequest::~ModifyDeploymentSetAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDeploymentSetAttributeRequest; + +ModifyDeploymentSetAttributeRequest::ModifyDeploymentSetAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyDeploymentSetAttribute") +{} + +ModifyDeploymentSetAttributeRequest::~ModifyDeploymentSetAttributeRequest() +{} + std::string ModifyDeploymentSetAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyDeploymentSetAttributeResult.cc b/ecs/src/model/ModifyDeploymentSetAttributeResult.cc index 6585c1f99..a12c6c049 100644 --- a/ecs/src/model/ModifyDeploymentSetAttributeResult.cc +++ b/ecs/src/model/ModifyDeploymentSetAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyDeploymentSetAttributeResult::ModifyDeploymentSetAttributeResult() : - ServiceResult() -{} - -ModifyDeploymentSetAttributeResult::ModifyDeploymentSetAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDeploymentSetAttributeResult::~ModifyDeploymentSetAttributeResult() -{} - -void ModifyDeploymentSetAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDeploymentSetAttributeResult::ModifyDeploymentSetAttributeResult() : + ServiceResult() +{} + +ModifyDeploymentSetAttributeResult::ModifyDeploymentSetAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDeploymentSetAttributeResult::~ModifyDeploymentSetAttributeResult() +{} + +void ModifyDeploymentSetAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDiskAttributeRequest.cc b/ecs/src/model/ModifyDiskAttributeRequest.cc index 82e443858..cdeb55901 100644 --- a/ecs/src/model/ModifyDiskAttributeRequest.cc +++ b/ecs/src/model/ModifyDiskAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDiskAttributeRequest; - -ModifyDiskAttributeRequest::ModifyDiskAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskAttribute") -{} - -ModifyDiskAttributeRequest::~ModifyDiskAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDiskAttributeRequest; + +ModifyDiskAttributeRequest::ModifyDiskAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskAttribute") +{} + +ModifyDiskAttributeRequest::~ModifyDiskAttributeRequest() +{} + std::string ModifyDiskAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyDiskAttributeResult.cc b/ecs/src/model/ModifyDiskAttributeResult.cc index 97f98e0c4..d54abe93a 100644 --- a/ecs/src/model/ModifyDiskAttributeResult.cc +++ b/ecs/src/model/ModifyDiskAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyDiskAttributeResult::ModifyDiskAttributeResult() : - ServiceResult() -{} - -ModifyDiskAttributeResult::ModifyDiskAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDiskAttributeResult::~ModifyDiskAttributeResult() -{} - -void ModifyDiskAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDiskAttributeResult::ModifyDiskAttributeResult() : + ServiceResult() +{} + +ModifyDiskAttributeResult::ModifyDiskAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDiskAttributeResult::~ModifyDiskAttributeResult() +{} + +void ModifyDiskAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDiskChargeTypeRequest.cc b/ecs/src/model/ModifyDiskChargeTypeRequest.cc index ffc207a7f..01d8c5294 100644 --- a/ecs/src/model/ModifyDiskChargeTypeRequest.cc +++ b/ecs/src/model/ModifyDiskChargeTypeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDiskChargeTypeRequest; - -ModifyDiskChargeTypeRequest::ModifyDiskChargeTypeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskChargeType") -{} - -ModifyDiskChargeTypeRequest::~ModifyDiskChargeTypeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDiskChargeTypeRequest; + +ModifyDiskChargeTypeRequest::ModifyDiskChargeTypeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskChargeType") +{} + +ModifyDiskChargeTypeRequest::~ModifyDiskChargeTypeRequest() +{} + std::string ModifyDiskChargeTypeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyDiskChargeTypeResult.cc b/ecs/src/model/ModifyDiskChargeTypeResult.cc index 89c14f17a..00d10a8ee 100644 --- a/ecs/src/model/ModifyDiskChargeTypeResult.cc +++ b/ecs/src/model/ModifyDiskChargeTypeResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyDiskChargeTypeResult::ModifyDiskChargeTypeResult() : - ServiceResult() -{} - -ModifyDiskChargeTypeResult::ModifyDiskChargeTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDiskChargeTypeResult::~ModifyDiskChargeTypeResult() -{} - -void ModifyDiskChargeTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDiskChargeTypeResult::ModifyDiskChargeTypeResult() : + ServiceResult() +{} + +ModifyDiskChargeTypeResult::ModifyDiskChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDiskChargeTypeResult::~ModifyDiskChargeTypeResult() +{} + +void ModifyDiskChargeTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string ModifyDiskChargeTypeResult::getOrderId()const { return orderId_; diff --git a/ecs/src/model/ModifyDiskSpecRequest.cc b/ecs/src/model/ModifyDiskSpecRequest.cc index e809d2434..dd484a237 100644 --- a/ecs/src/model/ModifyDiskSpecRequest.cc +++ b/ecs/src/model/ModifyDiskSpecRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDiskSpecRequest; - -ModifyDiskSpecRequest::ModifyDiskSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskSpec") -{} - -ModifyDiskSpecRequest::~ModifyDiskSpecRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyDiskSpecRequest; + +ModifyDiskSpecRequest::ModifyDiskSpecRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskSpec") +{} + +ModifyDiskSpecRequest::~ModifyDiskSpecRequest() +{} + long ModifyDiskSpecRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyDiskSpecResult.cc b/ecs/src/model/ModifyDiskSpecResult.cc index eaf6223da..3286a92d9 100644 --- a/ecs/src/model/ModifyDiskSpecResult.cc +++ b/ecs/src/model/ModifyDiskSpecResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyDiskSpecResult::ModifyDiskSpecResult() : - ServiceResult() -{} - -ModifyDiskSpecResult::ModifyDiskSpecResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDiskSpecResult::~ModifyDiskSpecResult() -{} - -void ModifyDiskSpecResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDiskSpecResult::ModifyDiskSpecResult() : + ServiceResult() +{} + +ModifyDiskSpecResult::ModifyDiskSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDiskSpecResult::~ModifyDiskSpecResult() +{} + +void ModifyDiskSpecResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyEipAddressAttributeRequest.cc b/ecs/src/model/ModifyEipAddressAttributeRequest.cc index 4b1a9861d..67596f534 100644 --- a/ecs/src/model/ModifyEipAddressAttributeRequest.cc +++ b/ecs/src/model/ModifyEipAddressAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyEipAddressAttributeRequest; - -ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyEipAddressAttribute") -{} - -ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyEipAddressAttributeRequest; + +ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyEipAddressAttribute") +{} + +ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() +{} + long ModifyEipAddressAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyEipAddressAttributeResult.cc b/ecs/src/model/ModifyEipAddressAttributeResult.cc index 2edec602f..ae2ae61c0 100644 --- a/ecs/src/model/ModifyEipAddressAttributeResult.cc +++ b/ecs/src/model/ModifyEipAddressAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult() : - ServiceResult() -{} - -ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyEipAddressAttributeResult::~ModifyEipAddressAttributeResult() -{} - -void ModifyEipAddressAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult() : + ServiceResult() +{} + +ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEipAddressAttributeResult::~ModifyEipAddressAttributeResult() +{} + +void ModifyEipAddressAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyFleetRequest.cc b/ecs/src/model/ModifyFleetRequest.cc index 26d28802d..d90246b83 100644 --- a/ecs/src/model/ModifyFleetRequest.cc +++ b/ecs/src/model/ModifyFleetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyFleetRequest; - -ModifyFleetRequest::ModifyFleetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyFleet") -{} - -ModifyFleetRequest::~ModifyFleetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyFleetRequest; + +ModifyFleetRequest::ModifyFleetRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyFleet") +{} + +ModifyFleetRequest::~ModifyFleetRequest() +{} + long ModifyFleetRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyFleetResult.cc b/ecs/src/model/ModifyFleetResult.cc index 63ccd23f9..11e9ff002 100644 --- a/ecs/src/model/ModifyFleetResult.cc +++ b/ecs/src/model/ModifyFleetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyFleetResult::ModifyFleetResult() : - ServiceResult() -{} - -ModifyFleetResult::ModifyFleetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyFleetResult::~ModifyFleetResult() -{} - -void ModifyFleetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyFleetResult::ModifyFleetResult() : + ServiceResult() +{} + +ModifyFleetResult::ModifyFleetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyFleetResult::~ModifyFleetResult() +{} + +void ModifyFleetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyForwardEntryRequest.cc b/ecs/src/model/ModifyForwardEntryRequest.cc index bc014f038..857db81ff 100644 --- a/ecs/src/model/ModifyForwardEntryRequest.cc +++ b/ecs/src/model/ModifyForwardEntryRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyForwardEntryRequest; - -ModifyForwardEntryRequest::ModifyForwardEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyForwardEntry") -{} - -ModifyForwardEntryRequest::~ModifyForwardEntryRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyForwardEntryRequest; + +ModifyForwardEntryRequest::ModifyForwardEntryRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyForwardEntry") +{} + +ModifyForwardEntryRequest::~ModifyForwardEntryRequest() +{} + long ModifyForwardEntryRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyForwardEntryResult.cc b/ecs/src/model/ModifyForwardEntryResult.cc index 7dd0fc02d..9a7d89c10 100644 --- a/ecs/src/model/ModifyForwardEntryResult.cc +++ b/ecs/src/model/ModifyForwardEntryResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyForwardEntryResult::ModifyForwardEntryResult() : - ServiceResult() -{} - -ModifyForwardEntryResult::ModifyForwardEntryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyForwardEntryResult::~ModifyForwardEntryResult() -{} - -void ModifyForwardEntryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyForwardEntryResult::ModifyForwardEntryResult() : + ServiceResult() +{} + +ModifyForwardEntryResult::ModifyForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyForwardEntryResult::~ModifyForwardEntryResult() +{} + +void ModifyForwardEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyHaVipAttributeRequest.cc b/ecs/src/model/ModifyHaVipAttributeRequest.cc index 6bff601d6..46816ad47 100644 --- a/ecs/src/model/ModifyHaVipAttributeRequest.cc +++ b/ecs/src/model/ModifyHaVipAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyHaVipAttributeRequest; - -ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyHaVipAttribute") -{} - -ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyHaVipAttributeRequest; + +ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyHaVipAttribute") +{} + +ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() +{} + std::string ModifyHaVipAttributeRequest::getHaVipId()const { return haVipId_; diff --git a/ecs/src/model/ModifyHaVipAttributeResult.cc b/ecs/src/model/ModifyHaVipAttributeResult.cc index fae00ad89..5b80fa7b7 100644 --- a/ecs/src/model/ModifyHaVipAttributeResult.cc +++ b/ecs/src/model/ModifyHaVipAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyHaVipAttributeResult::ModifyHaVipAttributeResult() : - ServiceResult() -{} - -ModifyHaVipAttributeResult::ModifyHaVipAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyHaVipAttributeResult::~ModifyHaVipAttributeResult() -{} - -void ModifyHaVipAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyHaVipAttributeResult::ModifyHaVipAttributeResult() : + ServiceResult() +{} + +ModifyHaVipAttributeResult::ModifyHaVipAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHaVipAttributeResult::~ModifyHaVipAttributeResult() +{} + +void ModifyHaVipAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyHpcClusterAttributeRequest.cc b/ecs/src/model/ModifyHpcClusterAttributeRequest.cc index 9a023f80e..0f8e97474 100644 --- a/ecs/src/model/ModifyHpcClusterAttributeRequest.cc +++ b/ecs/src/model/ModifyHpcClusterAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyHpcClusterAttributeRequest; - -ModifyHpcClusterAttributeRequest::ModifyHpcClusterAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyHpcClusterAttribute") -{} - -ModifyHpcClusterAttributeRequest::~ModifyHpcClusterAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyHpcClusterAttributeRequest; + +ModifyHpcClusterAttributeRequest::ModifyHpcClusterAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyHpcClusterAttribute") +{} + +ModifyHpcClusterAttributeRequest::~ModifyHpcClusterAttributeRequest() +{} + long ModifyHpcClusterAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyHpcClusterAttributeResult.cc b/ecs/src/model/ModifyHpcClusterAttributeResult.cc index 768ee763e..ad17f577f 100644 --- a/ecs/src/model/ModifyHpcClusterAttributeResult.cc +++ b/ecs/src/model/ModifyHpcClusterAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyHpcClusterAttributeResult::ModifyHpcClusterAttributeResult() : - ServiceResult() -{} - -ModifyHpcClusterAttributeResult::ModifyHpcClusterAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyHpcClusterAttributeResult::~ModifyHpcClusterAttributeResult() -{} - -void ModifyHpcClusterAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyHpcClusterAttributeResult::ModifyHpcClusterAttributeResult() : + ServiceResult() +{} + +ModifyHpcClusterAttributeResult::ModifyHpcClusterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHpcClusterAttributeResult::~ModifyHpcClusterAttributeResult() +{} + +void ModifyHpcClusterAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyImageAttributeRequest.cc b/ecs/src/model/ModifyImageAttributeRequest.cc index 697a4aa03..8c90e9eaf 100644 --- a/ecs/src/model/ModifyImageAttributeRequest.cc +++ b/ecs/src/model/ModifyImageAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyImageAttributeRequest; - -ModifyImageAttributeRequest::ModifyImageAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyImageAttribute") -{} - -ModifyImageAttributeRequest::~ModifyImageAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyImageAttributeRequest; + +ModifyImageAttributeRequest::ModifyImageAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyImageAttribute") +{} + +ModifyImageAttributeRequest::~ModifyImageAttributeRequest() +{} + std::string ModifyImageAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyImageAttributeResult.cc b/ecs/src/model/ModifyImageAttributeResult.cc index fee395605..88fd8f0ac 100644 --- a/ecs/src/model/ModifyImageAttributeResult.cc +++ b/ecs/src/model/ModifyImageAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyImageAttributeResult::ModifyImageAttributeResult() : - ServiceResult() -{} - -ModifyImageAttributeResult::ModifyImageAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyImageAttributeResult::~ModifyImageAttributeResult() -{} - -void ModifyImageAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageAttributeResult::ModifyImageAttributeResult() : + ServiceResult() +{} + +ModifyImageAttributeResult::ModifyImageAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageAttributeResult::~ModifyImageAttributeResult() +{} + +void ModifyImageAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc b/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc index 24220a777..59c622e1e 100644 --- a/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc +++ b/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyImageShareGroupPermissionRequest; - -ModifyImageShareGroupPermissionRequest::ModifyImageShareGroupPermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyImageShareGroupPermission") -{} - -ModifyImageShareGroupPermissionRequest::~ModifyImageShareGroupPermissionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyImageShareGroupPermissionRequest; + +ModifyImageShareGroupPermissionRequest::ModifyImageShareGroupPermissionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyImageShareGroupPermission") +{} + +ModifyImageShareGroupPermissionRequest::~ModifyImageShareGroupPermissionRequest() +{} + std::string ModifyImageShareGroupPermissionRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyImageShareGroupPermissionResult.cc b/ecs/src/model/ModifyImageShareGroupPermissionResult.cc index 9ed2b1036..431363b6f 100644 --- a/ecs/src/model/ModifyImageShareGroupPermissionResult.cc +++ b/ecs/src/model/ModifyImageShareGroupPermissionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyImageShareGroupPermissionResult::ModifyImageShareGroupPermissionResult() : - ServiceResult() -{} - -ModifyImageShareGroupPermissionResult::ModifyImageShareGroupPermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyImageShareGroupPermissionResult::~ModifyImageShareGroupPermissionResult() -{} - -void ModifyImageShareGroupPermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageShareGroupPermissionResult::ModifyImageShareGroupPermissionResult() : + ServiceResult() +{} + +ModifyImageShareGroupPermissionResult::ModifyImageShareGroupPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageShareGroupPermissionResult::~ModifyImageShareGroupPermissionResult() +{} + +void ModifyImageShareGroupPermissionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyImageSharePermissionRequest.cc b/ecs/src/model/ModifyImageSharePermissionRequest.cc index 6d0c637b9..acd685965 100644 --- a/ecs/src/model/ModifyImageSharePermissionRequest.cc +++ b/ecs/src/model/ModifyImageSharePermissionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyImageSharePermissionRequest; - -ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyImageSharePermission") -{} - -ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyImageSharePermissionRequest; + +ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyImageSharePermission") +{} + +ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest() +{} + std::string ModifyImageSharePermissionRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyImageSharePermissionResult.cc b/ecs/src/model/ModifyImageSharePermissionResult.cc index 9314d48ad..2e47b6e7b 100644 --- a/ecs/src/model/ModifyImageSharePermissionResult.cc +++ b/ecs/src/model/ModifyImageSharePermissionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyImageSharePermissionResult::ModifyImageSharePermissionResult() : - ServiceResult() -{} - -ModifyImageSharePermissionResult::ModifyImageSharePermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyImageSharePermissionResult::~ModifyImageSharePermissionResult() -{} - -void ModifyImageSharePermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageSharePermissionResult::ModifyImageSharePermissionResult() : + ServiceResult() +{} + +ModifyImageSharePermissionResult::ModifyImageSharePermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageSharePermissionResult::~ModifyImageSharePermissionResult() +{} + +void ModifyImageSharePermissionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceAttributeRequest.cc b/ecs/src/model/ModifyInstanceAttributeRequest.cc index b70724a6e..31c2c8b93 100644 --- a/ecs/src/model/ModifyInstanceAttributeRequest.cc +++ b/ecs/src/model/ModifyInstanceAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceAttributeRequest; - -ModifyInstanceAttributeRequest::ModifyInstanceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAttribute") -{} - -ModifyInstanceAttributeRequest::~ModifyInstanceAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceAttributeRequest; + +ModifyInstanceAttributeRequest::ModifyInstanceAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAttribute") +{} + +ModifyInstanceAttributeRequest::~ModifyInstanceAttributeRequest() +{} + long ModifyInstanceAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyInstanceAttributeResult.cc b/ecs/src/model/ModifyInstanceAttributeResult.cc index 440d30bff..44b89c864 100644 --- a/ecs/src/model/ModifyInstanceAttributeResult.cc +++ b/ecs/src/model/ModifyInstanceAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceAttributeResult::ModifyInstanceAttributeResult() : - ServiceResult() -{} - -ModifyInstanceAttributeResult::ModifyInstanceAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceAttributeResult::~ModifyInstanceAttributeResult() -{} - -void ModifyInstanceAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAttributeResult::ModifyInstanceAttributeResult() : + ServiceResult() +{} + +ModifyInstanceAttributeResult::ModifyInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAttributeResult::~ModifyInstanceAttributeResult() +{} + +void ModifyInstanceAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc b/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc index 70dd63481..dd15d88b4 100644 --- a/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc +++ b/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceAutoReleaseTimeRequest; - -ModifyInstanceAutoReleaseTimeRequest::ModifyInstanceAutoReleaseTimeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime") -{} - -ModifyInstanceAutoReleaseTimeRequest::~ModifyInstanceAutoReleaseTimeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceAutoReleaseTimeRequest; + +ModifyInstanceAutoReleaseTimeRequest::ModifyInstanceAutoReleaseTimeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime") +{} + +ModifyInstanceAutoReleaseTimeRequest::~ModifyInstanceAutoReleaseTimeRequest() +{} + std::string ModifyInstanceAutoReleaseTimeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc b/ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc index d7d9abd88..02493403f 100644 --- a/ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc +++ b/ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceAutoReleaseTimeResult::ModifyInstanceAutoReleaseTimeResult() : - ServiceResult() -{} - -ModifyInstanceAutoReleaseTimeResult::ModifyInstanceAutoReleaseTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceAutoReleaseTimeResult::~ModifyInstanceAutoReleaseTimeResult() -{} - -void ModifyInstanceAutoReleaseTimeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAutoReleaseTimeResult::ModifyInstanceAutoReleaseTimeResult() : + ServiceResult() +{} + +ModifyInstanceAutoReleaseTimeResult::ModifyInstanceAutoReleaseTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAutoReleaseTimeResult::~ModifyInstanceAutoReleaseTimeResult() +{} + +void ModifyInstanceAutoReleaseTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc b/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc index 40dfe8bd0..21197648c 100644 --- a/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc +++ b/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceAutoRenewAttributeRequest; - -ModifyInstanceAutoRenewAttributeRequest::ModifyInstanceAutoRenewAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute") -{} - -ModifyInstanceAutoRenewAttributeRequest::~ModifyInstanceAutoRenewAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceAutoRenewAttributeRequest; + +ModifyInstanceAutoRenewAttributeRequest::ModifyInstanceAutoRenewAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute") +{} + +ModifyInstanceAutoRenewAttributeRequest::~ModifyInstanceAutoRenewAttributeRequest() +{} + std::string ModifyInstanceAutoRenewAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc b/ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc index ad1709601..f9d2399a2 100644 --- a/ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc +++ b/ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceAutoRenewAttributeResult::ModifyInstanceAutoRenewAttributeResult() : - ServiceResult() -{} - -ModifyInstanceAutoRenewAttributeResult::ModifyInstanceAutoRenewAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceAutoRenewAttributeResult::~ModifyInstanceAutoRenewAttributeResult() -{} - -void ModifyInstanceAutoRenewAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAutoRenewAttributeResult::ModifyInstanceAutoRenewAttributeResult() : + ServiceResult() +{} + +ModifyInstanceAutoRenewAttributeResult::ModifyInstanceAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAutoRenewAttributeResult::~ModifyInstanceAutoRenewAttributeResult() +{} + +void ModifyInstanceAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceChargeTypeRequest.cc b/ecs/src/model/ModifyInstanceChargeTypeRequest.cc index cdbdc88e3..40e6b3dbf 100644 --- a/ecs/src/model/ModifyInstanceChargeTypeRequest.cc +++ b/ecs/src/model/ModifyInstanceChargeTypeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceChargeTypeRequest; - -ModifyInstanceChargeTypeRequest::ModifyInstanceChargeTypeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceChargeType") -{} - -ModifyInstanceChargeTypeRequest::~ModifyInstanceChargeTypeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceChargeTypeRequest; + +ModifyInstanceChargeTypeRequest::ModifyInstanceChargeTypeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceChargeType") +{} + +ModifyInstanceChargeTypeRequest::~ModifyInstanceChargeTypeRequest() +{} + long ModifyInstanceChargeTypeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyInstanceChargeTypeResult.cc b/ecs/src/model/ModifyInstanceChargeTypeResult.cc index f76b843ce..7a6bc411c 100644 --- a/ecs/src/model/ModifyInstanceChargeTypeResult.cc +++ b/ecs/src/model/ModifyInstanceChargeTypeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceChargeTypeResult::ModifyInstanceChargeTypeResult() : - ServiceResult() -{} - -ModifyInstanceChargeTypeResult::ModifyInstanceChargeTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceChargeTypeResult::~ModifyInstanceChargeTypeResult() -{} - -void ModifyInstanceChargeTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceChargeTypeResult::ModifyInstanceChargeTypeResult() : + ServiceResult() +{} + +ModifyInstanceChargeTypeResult::ModifyInstanceChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceChargeTypeResult::~ModifyInstanceChargeTypeResult() +{} + +void ModifyInstanceChargeTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFeeOfInstances = value["FeeOfInstances"]["FeeOfInstance"]; for (auto value : allFeeOfInstances) { @@ -54,9 +57,9 @@ void ModifyInstanceChargeTypeResult::parse(const std::string &payload) } if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::vector ModifyInstanceChargeTypeResult::getFeeOfInstances()const { return feeOfInstances_; diff --git a/ecs/src/model/ModifyInstanceDeploymentRequest.cc b/ecs/src/model/ModifyInstanceDeploymentRequest.cc index 5ccf48287..1a1f2d009 100644 --- a/ecs/src/model/ModifyInstanceDeploymentRequest.cc +++ b/ecs/src/model/ModifyInstanceDeploymentRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceDeploymentRequest; - -ModifyInstanceDeploymentRequest::ModifyInstanceDeploymentRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceDeployment") -{} - -ModifyInstanceDeploymentRequest::~ModifyInstanceDeploymentRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceDeploymentRequest; + +ModifyInstanceDeploymentRequest::ModifyInstanceDeploymentRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceDeployment") +{} + +ModifyInstanceDeploymentRequest::~ModifyInstanceDeploymentRequest() +{} + long ModifyInstanceDeploymentRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyInstanceDeploymentResult.cc b/ecs/src/model/ModifyInstanceDeploymentResult.cc index 22ae7900d..36cd12af4 100644 --- a/ecs/src/model/ModifyInstanceDeploymentResult.cc +++ b/ecs/src/model/ModifyInstanceDeploymentResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceDeploymentResult::ModifyInstanceDeploymentResult() : - ServiceResult() -{} - -ModifyInstanceDeploymentResult::ModifyInstanceDeploymentResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceDeploymentResult::~ModifyInstanceDeploymentResult() -{} - -void ModifyInstanceDeploymentResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceDeploymentResult::ModifyInstanceDeploymentResult() : + ServiceResult() +{} + +ModifyInstanceDeploymentResult::ModifyInstanceDeploymentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceDeploymentResult::~ModifyInstanceDeploymentResult() +{} + +void ModifyInstanceDeploymentResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc b/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc index d4e927dca..8c5cdb5a1 100644 --- a/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc +++ b/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceNetworkSpecRequest; - -ModifyInstanceNetworkSpecRequest::ModifyInstanceNetworkSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceNetworkSpec") -{} - -ModifyInstanceNetworkSpecRequest::~ModifyInstanceNetworkSpecRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceNetworkSpecRequest; + +ModifyInstanceNetworkSpecRequest::ModifyInstanceNetworkSpecRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceNetworkSpec") +{} + +ModifyInstanceNetworkSpecRequest::~ModifyInstanceNetworkSpecRequest() +{} + long ModifyInstanceNetworkSpecRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyInstanceNetworkSpecResult.cc b/ecs/src/model/ModifyInstanceNetworkSpecResult.cc index 42fce5366..b014f08a2 100644 --- a/ecs/src/model/ModifyInstanceNetworkSpecResult.cc +++ b/ecs/src/model/ModifyInstanceNetworkSpecResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceNetworkSpecResult::ModifyInstanceNetworkSpecResult() : - ServiceResult() -{} - -ModifyInstanceNetworkSpecResult::ModifyInstanceNetworkSpecResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceNetworkSpecResult::~ModifyInstanceNetworkSpecResult() -{} - -void ModifyInstanceNetworkSpecResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceNetworkSpecResult::ModifyInstanceNetworkSpecResult() : + ServiceResult() +{} + +ModifyInstanceNetworkSpecResult::ModifyInstanceNetworkSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceNetworkSpecResult::~ModifyInstanceNetworkSpecResult() +{} + +void ModifyInstanceNetworkSpecResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string ModifyInstanceNetworkSpecResult::getOrderId()const { return orderId_; diff --git a/ecs/src/model/ModifyInstanceSpecRequest.cc b/ecs/src/model/ModifyInstanceSpecRequest.cc index 9e561183d..c89da46fd 100644 --- a/ecs/src/model/ModifyInstanceSpecRequest.cc +++ b/ecs/src/model/ModifyInstanceSpecRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceSpecRequest; - -ModifyInstanceSpecRequest::ModifyInstanceSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceSpec") -{} - -ModifyInstanceSpecRequest::~ModifyInstanceSpecRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceSpecRequest; + +ModifyInstanceSpecRequest::ModifyInstanceSpecRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceSpec") +{} + +ModifyInstanceSpecRequest::~ModifyInstanceSpecRequest() +{} + long ModifyInstanceSpecRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyInstanceSpecResult.cc b/ecs/src/model/ModifyInstanceSpecResult.cc index 461f8010a..96012e326 100644 --- a/ecs/src/model/ModifyInstanceSpecResult.cc +++ b/ecs/src/model/ModifyInstanceSpecResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceSpecResult::ModifyInstanceSpecResult() : - ServiceResult() -{} - -ModifyInstanceSpecResult::ModifyInstanceSpecResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceSpecResult::~ModifyInstanceSpecResult() -{} - -void ModifyInstanceSpecResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceSpecResult::ModifyInstanceSpecResult() : + ServiceResult() +{} + +ModifyInstanceSpecResult::ModifyInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceSpecResult::~ModifyInstanceSpecResult() +{} + +void ModifyInstanceSpecResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceVncPasswdRequest.cc b/ecs/src/model/ModifyInstanceVncPasswdRequest.cc index a66884961..43387b076 100644 --- a/ecs/src/model/ModifyInstanceVncPasswdRequest.cc +++ b/ecs/src/model/ModifyInstanceVncPasswdRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceVncPasswdRequest; - -ModifyInstanceVncPasswdRequest::ModifyInstanceVncPasswdRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVncPasswd") -{} - -ModifyInstanceVncPasswdRequest::~ModifyInstanceVncPasswdRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceVncPasswdRequest; + +ModifyInstanceVncPasswdRequest::ModifyInstanceVncPasswdRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVncPasswd") +{} + +ModifyInstanceVncPasswdRequest::~ModifyInstanceVncPasswdRequest() +{} + std::string ModifyInstanceVncPasswdRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyInstanceVncPasswdResult.cc b/ecs/src/model/ModifyInstanceVncPasswdResult.cc index 896fc112d..cce3a3175 100644 --- a/ecs/src/model/ModifyInstanceVncPasswdResult.cc +++ b/ecs/src/model/ModifyInstanceVncPasswdResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceVncPasswdResult::ModifyInstanceVncPasswdResult() : - ServiceResult() -{} - -ModifyInstanceVncPasswdResult::ModifyInstanceVncPasswdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceVncPasswdResult::~ModifyInstanceVncPasswdResult() -{} - -void ModifyInstanceVncPasswdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceVncPasswdResult::ModifyInstanceVncPasswdResult() : + ServiceResult() +{} + +ModifyInstanceVncPasswdResult::ModifyInstanceVncPasswdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceVncPasswdResult::~ModifyInstanceVncPasswdResult() +{} + +void ModifyInstanceVncPasswdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc b/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc index 9c4ab200b..d7f97ac5a 100644 --- a/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc +++ b/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceVpcAttributeRequest; - -ModifyInstanceVpcAttributeRequest::ModifyInstanceVpcAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVpcAttribute") -{} - -ModifyInstanceVpcAttributeRequest::~ModifyInstanceVpcAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyInstanceVpcAttributeRequest; + +ModifyInstanceVpcAttributeRequest::ModifyInstanceVpcAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVpcAttribute") +{} + +ModifyInstanceVpcAttributeRequest::~ModifyInstanceVpcAttributeRequest() +{} + std::string ModifyInstanceVpcAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifyInstanceVpcAttributeResult.cc b/ecs/src/model/ModifyInstanceVpcAttributeResult.cc index 3cf1c0cb9..1b704a2b7 100644 --- a/ecs/src/model/ModifyInstanceVpcAttributeResult.cc +++ b/ecs/src/model/ModifyInstanceVpcAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyInstanceVpcAttributeResult::ModifyInstanceVpcAttributeResult() : - ServiceResult() -{} - -ModifyInstanceVpcAttributeResult::ModifyInstanceVpcAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceVpcAttributeResult::~ModifyInstanceVpcAttributeResult() -{} - -void ModifyInstanceVpcAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceVpcAttributeResult::ModifyInstanceVpcAttributeResult() : + ServiceResult() +{} + +ModifyInstanceVpcAttributeResult::ModifyInstanceVpcAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceVpcAttributeResult::~ModifyInstanceVpcAttributeResult() +{} + +void ModifyInstanceVpcAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc b/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc index b508335af..e1f4dd78f 100644 --- a/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc +++ b/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyLaunchTemplateDefaultVersionRequest; - -ModifyLaunchTemplateDefaultVersionRequest::ModifyLaunchTemplateDefaultVersionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion") -{} - -ModifyLaunchTemplateDefaultVersionRequest::~ModifyLaunchTemplateDefaultVersionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyLaunchTemplateDefaultVersionRequest; + +ModifyLaunchTemplateDefaultVersionRequest::ModifyLaunchTemplateDefaultVersionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion") +{} + +ModifyLaunchTemplateDefaultVersionRequest::~ModifyLaunchTemplateDefaultVersionRequest() +{} + std::string ModifyLaunchTemplateDefaultVersionRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/ModifyLaunchTemplateDefaultVersionResult.cc b/ecs/src/model/ModifyLaunchTemplateDefaultVersionResult.cc index e6e769b77..651257eb6 100644 --- a/ecs/src/model/ModifyLaunchTemplateDefaultVersionResult.cc +++ b/ecs/src/model/ModifyLaunchTemplateDefaultVersionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyLaunchTemplateDefaultVersionResult::ModifyLaunchTemplateDefaultVersionResult() : - ServiceResult() -{} - -ModifyLaunchTemplateDefaultVersionResult::ModifyLaunchTemplateDefaultVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyLaunchTemplateDefaultVersionResult::~ModifyLaunchTemplateDefaultVersionResult() -{} - -void ModifyLaunchTemplateDefaultVersionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyLaunchTemplateDefaultVersionResult::ModifyLaunchTemplateDefaultVersionResult() : + ServiceResult() +{} + +ModifyLaunchTemplateDefaultVersionResult::ModifyLaunchTemplateDefaultVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLaunchTemplateDefaultVersionResult::~ModifyLaunchTemplateDefaultVersionResult() +{} + +void ModifyLaunchTemplateDefaultVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc b/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc index a48912872..39d0441db 100644 --- a/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc +++ b/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyNetworkInterfaceAttributeRequest; - -ModifyNetworkInterfaceAttributeRequest::ModifyNetworkInterfaceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute") -{} - -ModifyNetworkInterfaceAttributeRequest::~ModifyNetworkInterfaceAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyNetworkInterfaceAttributeRequest; + +ModifyNetworkInterfaceAttributeRequest::ModifyNetworkInterfaceAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute") +{} + +ModifyNetworkInterfaceAttributeRequest::~ModifyNetworkInterfaceAttributeRequest() +{} + long ModifyNetworkInterfaceAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc b/ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc index 9fa495311..21bdf58c5 100644 --- a/ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc +++ b/ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyNetworkInterfaceAttributeResult::ModifyNetworkInterfaceAttributeResult() : - ServiceResult() -{} - -ModifyNetworkInterfaceAttributeResult::ModifyNetworkInterfaceAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyNetworkInterfaceAttributeResult::~ModifyNetworkInterfaceAttributeResult() -{} - -void ModifyNetworkInterfaceAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyNetworkInterfaceAttributeResult::ModifyNetworkInterfaceAttributeResult() : + ServiceResult() +{} + +ModifyNetworkInterfaceAttributeResult::ModifyNetworkInterfaceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNetworkInterfaceAttributeResult::~ModifyNetworkInterfaceAttributeResult() +{} + +void ModifyNetworkInterfaceAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc b/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc index 9d19f5f34..1685cc466 100644 --- a/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc +++ b/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyPhysicalConnectionAttributeRequest; - -ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute") -{} - -ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyPhysicalConnectionAttributeRequest; + +ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute") +{} + +ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() +{} + std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnectionId()const { return redundantPhysicalConnectionId_; diff --git a/ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc b/ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc index 798c639df..144340570 100644 --- a/ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc +++ b/ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult() : - ServiceResult() -{} - -ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyPhysicalConnectionAttributeResult::~ModifyPhysicalConnectionAttributeResult() -{} - -void ModifyPhysicalConnectionAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult() : + ServiceResult() +{} + +ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPhysicalConnectionAttributeResult::~ModifyPhysicalConnectionAttributeResult() +{} + +void ModifyPhysicalConnectionAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc index de7e5a923..d2d4ec105 100644 --- a/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc +++ b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyPrepayInstanceSpecRequest; - -ModifyPrepayInstanceSpecRequest::ModifyPrepayInstanceSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyPrepayInstanceSpec") -{} - -ModifyPrepayInstanceSpecRequest::~ModifyPrepayInstanceSpecRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyPrepayInstanceSpecRequest; + +ModifyPrepayInstanceSpecRequest::ModifyPrepayInstanceSpecRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyPrepayInstanceSpec") +{} + +ModifyPrepayInstanceSpecRequest::~ModifyPrepayInstanceSpecRequest() +{} + long ModifyPrepayInstanceSpecRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyPrepayInstanceSpecResult.cc b/ecs/src/model/ModifyPrepayInstanceSpecResult.cc index 3ff5b6475..cd6ae0571 100644 --- a/ecs/src/model/ModifyPrepayInstanceSpecResult.cc +++ b/ecs/src/model/ModifyPrepayInstanceSpecResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult() : - ServiceResult() -{} - -ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyPrepayInstanceSpecResult::~ModifyPrepayInstanceSpecResult() -{} - -void ModifyPrepayInstanceSpecResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult() : + ServiceResult() +{} + +ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPrepayInstanceSpecResult::~ModifyPrepayInstanceSpecResult() +{} + +void ModifyPrepayInstanceSpecResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string ModifyPrepayInstanceSpecResult::getOrderId()const { return orderId_; diff --git a/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc b/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc index d44c9d79c..5de505bc5 100644 --- a/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc +++ b/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyReservedInstanceAttributeRequest; - -ModifyReservedInstanceAttributeRequest::ModifyReservedInstanceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstanceAttribute") -{} - -ModifyReservedInstanceAttributeRequest::~ModifyReservedInstanceAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyReservedInstanceAttributeRequest; + +ModifyReservedInstanceAttributeRequest::ModifyReservedInstanceAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstanceAttribute") +{} + +ModifyReservedInstanceAttributeRequest::~ModifyReservedInstanceAttributeRequest() +{} + long ModifyReservedInstanceAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyReservedInstanceAttributeResult.cc b/ecs/src/model/ModifyReservedInstanceAttributeResult.cc index d4ecc8056..f1af0cb20 100644 --- a/ecs/src/model/ModifyReservedInstanceAttributeResult.cc +++ b/ecs/src/model/ModifyReservedInstanceAttributeResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyReservedInstanceAttributeResult::ModifyReservedInstanceAttributeResult() : - ServiceResult() -{} - -ModifyReservedInstanceAttributeResult::ModifyReservedInstanceAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyReservedInstanceAttributeResult::~ModifyReservedInstanceAttributeResult() -{} - -void ModifyReservedInstanceAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyReservedInstanceAttributeResult::ModifyReservedInstanceAttributeResult() : + ServiceResult() +{} + +ModifyReservedInstanceAttributeResult::ModifyReservedInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReservedInstanceAttributeResult::~ModifyReservedInstanceAttributeResult() +{} + +void ModifyReservedInstanceAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - -} - + +} + std::string ModifyReservedInstanceAttributeResult::getMessage()const { return message_; diff --git a/ecs/src/model/ModifyReservedInstancesRequest.cc b/ecs/src/model/ModifyReservedInstancesRequest.cc index e2e3404c1..beb91ef2c 100644 --- a/ecs/src/model/ModifyReservedInstancesRequest.cc +++ b/ecs/src/model/ModifyReservedInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyReservedInstancesRequest; - -ModifyReservedInstancesRequest::ModifyReservedInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstances") -{} - -ModifyReservedInstancesRequest::~ModifyReservedInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyReservedInstancesRequest; + +ModifyReservedInstancesRequest::ModifyReservedInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstances") +{} + +ModifyReservedInstancesRequest::~ModifyReservedInstancesRequest() +{} + long ModifyReservedInstancesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyReservedInstancesResult.cc b/ecs/src/model/ModifyReservedInstancesResult.cc index cc12a5fdb..34dba86d1 100644 --- a/ecs/src/model/ModifyReservedInstancesResult.cc +++ b/ecs/src/model/ModifyReservedInstancesResult.cc @@ -1,51 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyReservedInstancesResult::ModifyReservedInstancesResult() : - ServiceResult() -{} - -ModifyReservedInstancesResult::ModifyReservedInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyReservedInstancesResult::~ModifyReservedInstancesResult() -{} - -void ModifyReservedInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyReservedInstancesResult::ModifyReservedInstancesResult() : + ServiceResult() +{} + +ModifyReservedInstancesResult::ModifyReservedInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReservedInstancesResult::~ModifyReservedInstancesResult() +{} + +void ModifyReservedInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allReservedInstanceIdSets = value["ReservedInstanceIdSets"]["ReservedInstanceId"]; for (const auto &item : allReservedInstanceIdSets) reservedInstanceIdSets_.push_back(item.asString()); - -} - + +} + std::vector ModifyReservedInstancesResult::getReservedInstanceIdSets()const { return reservedInstanceIdSets_; diff --git a/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc b/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc index d1f1f29e3..b9cb7eae9 100644 --- a/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc +++ b/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyRouterInterfaceAttributeRequest; - -ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceAttribute") -{} - -ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyRouterInterfaceAttributeRequest; + +ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceAttribute") +{} + +ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() +{} + std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId()const { return oppositeRouterId_; diff --git a/ecs/src/model/ModifyRouterInterfaceAttributeResult.cc b/ecs/src/model/ModifyRouterInterfaceAttributeResult.cc index 492a17594..935a61474 100644 --- a/ecs/src/model/ModifyRouterInterfaceAttributeResult.cc +++ b/ecs/src/model/ModifyRouterInterfaceAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult() : - ServiceResult() -{} - -ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyRouterInterfaceAttributeResult::~ModifyRouterInterfaceAttributeResult() -{} - -void ModifyRouterInterfaceAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult() : + ServiceResult() +{} + +ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRouterInterfaceAttributeResult::~ModifyRouterInterfaceAttributeResult() +{} + +void ModifyRouterInterfaceAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc b/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc index 848f610c0..cb4f6a49e 100644 --- a/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc +++ b/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyRouterInterfaceSpecRequest; - -ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceSpec") -{} - -ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyRouterInterfaceSpecRequest; + +ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceSpec") +{} + +ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() +{} + long ModifyRouterInterfaceSpecRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyRouterInterfaceSpecResult.cc b/ecs/src/model/ModifyRouterInterfaceSpecResult.cc index 6919af0e5..e927eb546 100644 --- a/ecs/src/model/ModifyRouterInterfaceSpecResult.cc +++ b/ecs/src/model/ModifyRouterInterfaceSpecResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult() : - ServiceResult() -{} - -ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyRouterInterfaceSpecResult::~ModifyRouterInterfaceSpecResult() -{} - -void ModifyRouterInterfaceSpecResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult() : + ServiceResult() +{} + +ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRouterInterfaceSpecResult::~ModifyRouterInterfaceSpecResult() +{} + +void ModifyRouterInterfaceSpecResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Spec"].isNull()) spec_ = value["Spec"].asString(); - -} - + +} + std::string ModifyRouterInterfaceSpecResult::getSpec()const { return spec_; diff --git a/ecs/src/model/ModifySecurityGroupAttributeRequest.cc b/ecs/src/model/ModifySecurityGroupAttributeRequest.cc index 686249cf9..d280a1f17 100644 --- a/ecs/src/model/ModifySecurityGroupAttributeRequest.cc +++ b/ecs/src/model/ModifySecurityGroupAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupAttributeRequest; - -ModifySecurityGroupAttributeRequest::ModifySecurityGroupAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupAttribute") -{} - -ModifySecurityGroupAttributeRequest::~ModifySecurityGroupAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupAttributeRequest; + +ModifySecurityGroupAttributeRequest::ModifySecurityGroupAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupAttribute") +{} + +ModifySecurityGroupAttributeRequest::~ModifySecurityGroupAttributeRequest() +{} + std::string ModifySecurityGroupAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifySecurityGroupAttributeResult.cc b/ecs/src/model/ModifySecurityGroupAttributeResult.cc index 039a71daf..3511015dc 100644 --- a/ecs/src/model/ModifySecurityGroupAttributeResult.cc +++ b/ecs/src/model/ModifySecurityGroupAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifySecurityGroupAttributeResult::ModifySecurityGroupAttributeResult() : - ServiceResult() -{} - -ModifySecurityGroupAttributeResult::ModifySecurityGroupAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySecurityGroupAttributeResult::~ModifySecurityGroupAttributeResult() -{} - -void ModifySecurityGroupAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupAttributeResult::ModifySecurityGroupAttributeResult() : + ServiceResult() +{} + +ModifySecurityGroupAttributeResult::ModifySecurityGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupAttributeResult::~ModifySecurityGroupAttributeResult() +{} + +void ModifySecurityGroupAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc index f15629ea9..4dce5cf6b 100644 --- a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupEgressRuleRequest; - -ModifySecurityGroupEgressRuleRequest::ModifySecurityGroupEgressRuleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupEgressRule") -{} - -ModifySecurityGroupEgressRuleRequest::~ModifySecurityGroupEgressRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupEgressRuleRequest; + +ModifySecurityGroupEgressRuleRequest::ModifySecurityGroupEgressRuleRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupEgressRule") +{} + +ModifySecurityGroupEgressRuleRequest::~ModifySecurityGroupEgressRuleRequest() +{} + std::string ModifySecurityGroupEgressRuleRequest::getNicType()const { return nicType_; diff --git a/ecs/src/model/ModifySecurityGroupEgressRuleResult.cc b/ecs/src/model/ModifySecurityGroupEgressRuleResult.cc index fd91d936d..9f75769cf 100644 --- a/ecs/src/model/ModifySecurityGroupEgressRuleResult.cc +++ b/ecs/src/model/ModifySecurityGroupEgressRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifySecurityGroupEgressRuleResult::ModifySecurityGroupEgressRuleResult() : - ServiceResult() -{} - -ModifySecurityGroupEgressRuleResult::ModifySecurityGroupEgressRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySecurityGroupEgressRuleResult::~ModifySecurityGroupEgressRuleResult() -{} - -void ModifySecurityGroupEgressRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupEgressRuleResult::ModifySecurityGroupEgressRuleResult() : + ServiceResult() +{} + +ModifySecurityGroupEgressRuleResult::ModifySecurityGroupEgressRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupEgressRuleResult::~ModifySecurityGroupEgressRuleResult() +{} + +void ModifySecurityGroupEgressRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySecurityGroupPolicyRequest.cc b/ecs/src/model/ModifySecurityGroupPolicyRequest.cc index 1976314a8..ef0b86939 100644 --- a/ecs/src/model/ModifySecurityGroupPolicyRequest.cc +++ b/ecs/src/model/ModifySecurityGroupPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupPolicyRequest; - -ModifySecurityGroupPolicyRequest::ModifySecurityGroupPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupPolicy") -{} - -ModifySecurityGroupPolicyRequest::~ModifySecurityGroupPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupPolicyRequest; + +ModifySecurityGroupPolicyRequest::ModifySecurityGroupPolicyRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupPolicy") +{} + +ModifySecurityGroupPolicyRequest::~ModifySecurityGroupPolicyRequest() +{} + std::string ModifySecurityGroupPolicyRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifySecurityGroupPolicyResult.cc b/ecs/src/model/ModifySecurityGroupPolicyResult.cc index b9c58437e..bcdb288aa 100644 --- a/ecs/src/model/ModifySecurityGroupPolicyResult.cc +++ b/ecs/src/model/ModifySecurityGroupPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifySecurityGroupPolicyResult::ModifySecurityGroupPolicyResult() : - ServiceResult() -{} - -ModifySecurityGroupPolicyResult::ModifySecurityGroupPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySecurityGroupPolicyResult::~ModifySecurityGroupPolicyResult() -{} - -void ModifySecurityGroupPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupPolicyResult::ModifySecurityGroupPolicyResult() : + ServiceResult() +{} + +ModifySecurityGroupPolicyResult::ModifySecurityGroupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupPolicyResult::~ModifySecurityGroupPolicyResult() +{} + +void ModifySecurityGroupPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySecurityGroupRuleRequest.cc b/ecs/src/model/ModifySecurityGroupRuleRequest.cc index bb5861bbd..7ed7923f6 100644 --- a/ecs/src/model/ModifySecurityGroupRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupRuleRequest; - -ModifySecurityGroupRuleRequest::ModifySecurityGroupRuleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupRule") -{} - -ModifySecurityGroupRuleRequest::~ModifySecurityGroupRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifySecurityGroupRuleRequest; + +ModifySecurityGroupRuleRequest::ModifySecurityGroupRuleRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupRule") +{} + +ModifySecurityGroupRuleRequest::~ModifySecurityGroupRuleRequest() +{} + std::string ModifySecurityGroupRuleRequest::getNicType()const { return nicType_; diff --git a/ecs/src/model/ModifySecurityGroupRuleResult.cc b/ecs/src/model/ModifySecurityGroupRuleResult.cc index e6a4df51f..2b743fa53 100644 --- a/ecs/src/model/ModifySecurityGroupRuleResult.cc +++ b/ecs/src/model/ModifySecurityGroupRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifySecurityGroupRuleResult::ModifySecurityGroupRuleResult() : - ServiceResult() -{} - -ModifySecurityGroupRuleResult::ModifySecurityGroupRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySecurityGroupRuleResult::~ModifySecurityGroupRuleResult() -{} - -void ModifySecurityGroupRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupRuleResult::ModifySecurityGroupRuleResult() : + ServiceResult() +{} + +ModifySecurityGroupRuleResult::ModifySecurityGroupRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupRuleResult::~ModifySecurityGroupRuleResult() +{} + +void ModifySecurityGroupRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySnapshotAttributeRequest.cc b/ecs/src/model/ModifySnapshotAttributeRequest.cc index 70e6f0d0f..0ae6cd6b5 100644 --- a/ecs/src/model/ModifySnapshotAttributeRequest.cc +++ b/ecs/src/model/ModifySnapshotAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifySnapshotAttributeRequest; - -ModifySnapshotAttributeRequest::ModifySnapshotAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySnapshotAttribute") -{} - -ModifySnapshotAttributeRequest::~ModifySnapshotAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifySnapshotAttributeRequest; + +ModifySnapshotAttributeRequest::ModifySnapshotAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifySnapshotAttribute") +{} + +ModifySnapshotAttributeRequest::~ModifySnapshotAttributeRequest() +{} + std::string ModifySnapshotAttributeRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ModifySnapshotAttributeResult.cc b/ecs/src/model/ModifySnapshotAttributeResult.cc index 1bbe7949b..0136af18e 100644 --- a/ecs/src/model/ModifySnapshotAttributeResult.cc +++ b/ecs/src/model/ModifySnapshotAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifySnapshotAttributeResult::ModifySnapshotAttributeResult() : - ServiceResult() -{} - -ModifySnapshotAttributeResult::ModifySnapshotAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySnapshotAttributeResult::~ModifySnapshotAttributeResult() -{} - -void ModifySnapshotAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySnapshotAttributeResult::ModifySnapshotAttributeResult() : + ServiceResult() +{} + +ModifySnapshotAttributeResult::ModifySnapshotAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySnapshotAttributeResult::~ModifySnapshotAttributeResult() +{} + +void ModifySnapshotAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyStorageSetAttributeRequest.cc b/ecs/src/model/ModifyStorageSetAttributeRequest.cc index 0012feb77..a074d8495 100644 --- a/ecs/src/model/ModifyStorageSetAttributeRequest.cc +++ b/ecs/src/model/ModifyStorageSetAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyStorageSetAttributeRequest; - -ModifyStorageSetAttributeRequest::ModifyStorageSetAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyStorageSetAttribute") -{} - -ModifyStorageSetAttributeRequest::~ModifyStorageSetAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyStorageSetAttributeRequest; + +ModifyStorageSetAttributeRequest::ModifyStorageSetAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyStorageSetAttribute") +{} + +ModifyStorageSetAttributeRequest::~ModifyStorageSetAttributeRequest() +{} + long ModifyStorageSetAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyStorageSetAttributeResult.cc b/ecs/src/model/ModifyStorageSetAttributeResult.cc index 2ae9ea89d..da43df0b2 100644 --- a/ecs/src/model/ModifyStorageSetAttributeResult.cc +++ b/ecs/src/model/ModifyStorageSetAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyStorageSetAttributeResult::ModifyStorageSetAttributeResult() : - ServiceResult() -{} - -ModifyStorageSetAttributeResult::ModifyStorageSetAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyStorageSetAttributeResult::~ModifyStorageSetAttributeResult() -{} - -void ModifyStorageSetAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyStorageSetAttributeResult::ModifyStorageSetAttributeResult() : + ServiceResult() +{} + +ModifyStorageSetAttributeResult::ModifyStorageSetAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyStorageSetAttributeResult::~ModifyStorageSetAttributeResult() +{} + +void ModifyStorageSetAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc b/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc index 6cf6d0ba7..a0eb0a9a1 100644 --- a/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc +++ b/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyUserBusinessBehaviorRequest; - -ModifyUserBusinessBehaviorRequest::ModifyUserBusinessBehaviorRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyUserBusinessBehavior") -{} - -ModifyUserBusinessBehaviorRequest::~ModifyUserBusinessBehaviorRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyUserBusinessBehaviorRequest; + +ModifyUserBusinessBehaviorRequest::ModifyUserBusinessBehaviorRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyUserBusinessBehavior") +{} + +ModifyUserBusinessBehaviorRequest::~ModifyUserBusinessBehaviorRequest() +{} + long ModifyUserBusinessBehaviorRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyUserBusinessBehaviorResult.cc b/ecs/src/model/ModifyUserBusinessBehaviorResult.cc index 485bad83c..7455aa5d5 100644 --- a/ecs/src/model/ModifyUserBusinessBehaviorResult.cc +++ b/ecs/src/model/ModifyUserBusinessBehaviorResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyUserBusinessBehaviorResult::ModifyUserBusinessBehaviorResult() : - ServiceResult() -{} - -ModifyUserBusinessBehaviorResult::ModifyUserBusinessBehaviorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyUserBusinessBehaviorResult::~ModifyUserBusinessBehaviorResult() -{} - -void ModifyUserBusinessBehaviorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyUserBusinessBehaviorResult::ModifyUserBusinessBehaviorResult() : + ServiceResult() +{} + +ModifyUserBusinessBehaviorResult::ModifyUserBusinessBehaviorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyUserBusinessBehaviorResult::~ModifyUserBusinessBehaviorResult() +{} + +void ModifyUserBusinessBehaviorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVRouterAttributeRequest.cc b/ecs/src/model/ModifyVRouterAttributeRequest.cc index 64c62fd52..2aa389e41 100644 --- a/ecs/src/model/ModifyVRouterAttributeRequest.cc +++ b/ecs/src/model/ModifyVRouterAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVRouterAttributeRequest; - -ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVRouterAttribute") -{} - -ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVRouterAttributeRequest; + +ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyVRouterAttribute") +{} + +ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() +{} + std::string ModifyVRouterAttributeRequest::getVRouterName()const { return vRouterName_; diff --git a/ecs/src/model/ModifyVRouterAttributeResult.cc b/ecs/src/model/ModifyVRouterAttributeResult.cc index 88c4723e5..4e0417fc8 100644 --- a/ecs/src/model/ModifyVRouterAttributeResult.cc +++ b/ecs/src/model/ModifyVRouterAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyVRouterAttributeResult::ModifyVRouterAttributeResult() : - ServiceResult() -{} - -ModifyVRouterAttributeResult::ModifyVRouterAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyVRouterAttributeResult::~ModifyVRouterAttributeResult() -{} - -void ModifyVRouterAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVRouterAttributeResult::ModifyVRouterAttributeResult() : + ServiceResult() +{} + +ModifyVRouterAttributeResult::ModifyVRouterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVRouterAttributeResult::~ModifyVRouterAttributeResult() +{} + +void ModifyVRouterAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVSwitchAttributeRequest.cc b/ecs/src/model/ModifyVSwitchAttributeRequest.cc index 78e657a57..a16e0dbab 100644 --- a/ecs/src/model/ModifyVSwitchAttributeRequest.cc +++ b/ecs/src/model/ModifyVSwitchAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVSwitchAttributeRequest; - -ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVSwitchAttribute") -{} - -ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVSwitchAttributeRequest; + +ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyVSwitchAttribute") +{} + +ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() +{} + std::string ModifyVSwitchAttributeRequest::getVSwitchId()const { return vSwitchId_; diff --git a/ecs/src/model/ModifyVSwitchAttributeResult.cc b/ecs/src/model/ModifyVSwitchAttributeResult.cc index 79691906b..5934257b6 100644 --- a/ecs/src/model/ModifyVSwitchAttributeResult.cc +++ b/ecs/src/model/ModifyVSwitchAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult() : - ServiceResult() -{} - -ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyVSwitchAttributeResult::~ModifyVSwitchAttributeResult() -{} - -void ModifyVSwitchAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult() : + ServiceResult() +{} + +ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVSwitchAttributeResult::~ModifyVSwitchAttributeResult() +{} + +void ModifyVSwitchAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc index 0fc1a58dd..46ae991dd 100644 --- a/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc +++ b/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVirtualBorderRouterAttributeRequest; - -ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute") -{} - -ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVirtualBorderRouterAttributeRequest; + +ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute") +{} + +ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() +{} + long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc b/ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc index 9267caa7e..d2e0f1024 100644 --- a/ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc +++ b/ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult() : - ServiceResult() -{} - -ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyVirtualBorderRouterAttributeResult::~ModifyVirtualBorderRouterAttributeResult() -{} - -void ModifyVirtualBorderRouterAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult() : + ServiceResult() +{} + +ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVirtualBorderRouterAttributeResult::~ModifyVirtualBorderRouterAttributeResult() +{} + +void ModifyVirtualBorderRouterAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVpcAttributeRequest.cc b/ecs/src/model/ModifyVpcAttributeRequest.cc index 17e0192ae..73d1b8556 100644 --- a/ecs/src/model/ModifyVpcAttributeRequest.cc +++ b/ecs/src/model/ModifyVpcAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVpcAttributeRequest; - -ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVpcAttribute") -{} - -ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ModifyVpcAttributeRequest; + +ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ModifyVpcAttribute") +{} + +ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() +{} + std::string ModifyVpcAttributeRequest::getVpcName()const { return vpcName_; diff --git a/ecs/src/model/ModifyVpcAttributeResult.cc b/ecs/src/model/ModifyVpcAttributeResult.cc index 81517914d..e5ae99874 100644 --- a/ecs/src/model/ModifyVpcAttributeResult.cc +++ b/ecs/src/model/ModifyVpcAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ModifyVpcAttributeResult::ModifyVpcAttributeResult() : - ServiceResult() -{} - -ModifyVpcAttributeResult::ModifyVpcAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyVpcAttributeResult::~ModifyVpcAttributeResult() -{} - -void ModifyVpcAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVpcAttributeResult::ModifyVpcAttributeResult() : + ServiceResult() +{} + +ModifyVpcAttributeResult::ModifyVpcAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpcAttributeResult::~ModifyVpcAttributeResult() +{} + +void ModifyVpcAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc index 1ccd5f338..f7e326015 100644 --- a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc +++ b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::PurchaseReservedInstancesOfferingRequest; - -PurchaseReservedInstancesOfferingRequest::PurchaseReservedInstancesOfferingRequest() : - RpcServiceRequest("ecs", "2014-05-26", "PurchaseReservedInstancesOffering") -{} - -PurchaseReservedInstancesOfferingRequest::~PurchaseReservedInstancesOfferingRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::PurchaseReservedInstancesOfferingRequest; + +PurchaseReservedInstancesOfferingRequest::PurchaseReservedInstancesOfferingRequest() : + RpcServiceRequest("ecs", "2014-05-26", "PurchaseReservedInstancesOffering") +{} + +PurchaseReservedInstancesOfferingRequest::~PurchaseReservedInstancesOfferingRequest() +{} + long PurchaseReservedInstancesOfferingRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/PurchaseReservedInstancesOfferingResult.cc b/ecs/src/model/PurchaseReservedInstancesOfferingResult.cc index 0753c61fa..c441864dc 100644 --- a/ecs/src/model/PurchaseReservedInstancesOfferingResult.cc +++ b/ecs/src/model/PurchaseReservedInstancesOfferingResult.cc @@ -1,51 +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 -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -PurchaseReservedInstancesOfferingResult::PurchaseReservedInstancesOfferingResult() : - ServiceResult() -{} - -PurchaseReservedInstancesOfferingResult::PurchaseReservedInstancesOfferingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PurchaseReservedInstancesOfferingResult::~PurchaseReservedInstancesOfferingResult() -{} - -void PurchaseReservedInstancesOfferingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +PurchaseReservedInstancesOfferingResult::PurchaseReservedInstancesOfferingResult() : + ServiceResult() +{} + +PurchaseReservedInstancesOfferingResult::PurchaseReservedInstancesOfferingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PurchaseReservedInstancesOfferingResult::~PurchaseReservedInstancesOfferingResult() +{} + +void PurchaseReservedInstancesOfferingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allReservedInstanceIdSets = value["ReservedInstanceIdSets"]["ReservedInstanceId"]; for (const auto &item : allReservedInstanceIdSets) reservedInstanceIdSets_.push_back(item.asString()); - -} - + +} + std::vector PurchaseReservedInstancesOfferingResult::getReservedInstanceIdSets()const { return reservedInstanceIdSets_; diff --git a/ecs/src/model/ReActivateInstancesRequest.cc b/ecs/src/model/ReActivateInstancesRequest.cc index d48a587e3..796e965e4 100644 --- a/ecs/src/model/ReActivateInstancesRequest.cc +++ b/ecs/src/model/ReActivateInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ReActivateInstancesRequest; - -ReActivateInstancesRequest::ReActivateInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReActivateInstances") -{} - -ReActivateInstancesRequest::~ReActivateInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ReActivateInstancesRequest; + +ReActivateInstancesRequest::ReActivateInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ReActivateInstances") +{} + +ReActivateInstancesRequest::~ReActivateInstancesRequest() +{} + std::string ReActivateInstancesRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ReActivateInstancesResult.cc b/ecs/src/model/ReActivateInstancesResult.cc index 4e25a3856..8eea9c17b 100644 --- a/ecs/src/model/ReActivateInstancesResult.cc +++ b/ecs/src/model/ReActivateInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ReActivateInstancesResult::ReActivateInstancesResult() : - ServiceResult() -{} - -ReActivateInstancesResult::ReActivateInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReActivateInstancesResult::~ReActivateInstancesResult() -{} - -void ReActivateInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReActivateInstancesResult::ReActivateInstancesResult() : + ServiceResult() +{} + +ReActivateInstancesResult::ReActivateInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReActivateInstancesResult::~ReActivateInstancesResult() +{} + +void ReActivateInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReInitDiskRequest.cc b/ecs/src/model/ReInitDiskRequest.cc index 7f43ddf5b..68b45b13b 100644 --- a/ecs/src/model/ReInitDiskRequest.cc +++ b/ecs/src/model/ReInitDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ReInitDiskRequest; - -ReInitDiskRequest::ReInitDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReInitDisk") -{} - -ReInitDiskRequest::~ReInitDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ReInitDiskRequest; + +ReInitDiskRequest::ReInitDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ReInitDisk") +{} + +ReInitDiskRequest::~ReInitDiskRequest() +{} + std::string ReInitDiskRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ReInitDiskResult.cc b/ecs/src/model/ReInitDiskResult.cc index c61113afe..10a7ffcd5 100644 --- a/ecs/src/model/ReInitDiskResult.cc +++ b/ecs/src/model/ReInitDiskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ReInitDiskResult::ReInitDiskResult() : - ServiceResult() -{} - -ReInitDiskResult::ReInitDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReInitDiskResult::~ReInitDiskResult() -{} - -void ReInitDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReInitDiskResult::ReInitDiskResult() : + ServiceResult() +{} + +ReInitDiskResult::ReInitDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReInitDiskResult::~ReInitDiskResult() +{} + +void ReInitDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RebootInstanceRequest.cc b/ecs/src/model/RebootInstanceRequest.cc index cef666660..32bc898dc 100644 --- a/ecs/src/model/RebootInstanceRequest.cc +++ b/ecs/src/model/RebootInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RebootInstanceRequest; - -RebootInstanceRequest::RebootInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RebootInstance") -{} - -RebootInstanceRequest::~RebootInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RebootInstanceRequest; + +RebootInstanceRequest::RebootInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RebootInstance") +{} + +RebootInstanceRequest::~RebootInstanceRequest() +{} + std::string RebootInstanceRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/RebootInstanceResult.cc b/ecs/src/model/RebootInstanceResult.cc index 143620a77..ccbc41b05 100644 --- a/ecs/src/model/RebootInstanceResult.cc +++ b/ecs/src/model/RebootInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RebootInstanceResult::RebootInstanceResult() : - ServiceResult() -{} - -RebootInstanceResult::RebootInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RebootInstanceResult::~RebootInstanceResult() -{} - -void RebootInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RebootInstanceResult::RebootInstanceResult() : + ServiceResult() +{} + +RebootInstanceResult::RebootInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RebootInstanceResult::~RebootInstanceResult() +{} + +void RebootInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RecoverVirtualBorderRouterRequest.cc b/ecs/src/model/RecoverVirtualBorderRouterRequest.cc index d83fa7091..68717cc3c 100644 --- a/ecs/src/model/RecoverVirtualBorderRouterRequest.cc +++ b/ecs/src/model/RecoverVirtualBorderRouterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RecoverVirtualBorderRouterRequest; - -RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RecoverVirtualBorderRouter") -{} - -RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RecoverVirtualBorderRouterRequest; + +RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RecoverVirtualBorderRouter") +{} + +RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() +{} + long RecoverVirtualBorderRouterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/RecoverVirtualBorderRouterResult.cc b/ecs/src/model/RecoverVirtualBorderRouterResult.cc index 4eda7e0f9..eba36d796 100644 --- a/ecs/src/model/RecoverVirtualBorderRouterResult.cc +++ b/ecs/src/model/RecoverVirtualBorderRouterResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult() : - ServiceResult() -{} - -RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RecoverVirtualBorderRouterResult::~RecoverVirtualBorderRouterResult() -{} - -void RecoverVirtualBorderRouterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult() : + ServiceResult() +{} + +RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecoverVirtualBorderRouterResult::~RecoverVirtualBorderRouterResult() +{} + +void RecoverVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RedeployInstanceRequest.cc b/ecs/src/model/RedeployInstanceRequest.cc index 7ebe9013e..bd74a849e 100644 --- a/ecs/src/model/RedeployInstanceRequest.cc +++ b/ecs/src/model/RedeployInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RedeployInstanceRequest; - -RedeployInstanceRequest::RedeployInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RedeployInstance") -{} - -RedeployInstanceRequest::~RedeployInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RedeployInstanceRequest; + +RedeployInstanceRequest::RedeployInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RedeployInstance") +{} + +RedeployInstanceRequest::~RedeployInstanceRequest() +{} + long RedeployInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/RedeployInstanceResult.cc b/ecs/src/model/RedeployInstanceResult.cc index 29db44a59..96dc33259 100644 --- a/ecs/src/model/RedeployInstanceResult.cc +++ b/ecs/src/model/RedeployInstanceResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RedeployInstanceResult::RedeployInstanceResult() : - ServiceResult() -{} - -RedeployInstanceResult::RedeployInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RedeployInstanceResult::~RedeployInstanceResult() -{} - -void RedeployInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RedeployInstanceResult::RedeployInstanceResult() : + ServiceResult() +{} + +RedeployInstanceResult::RedeployInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RedeployInstanceResult::~RedeployInstanceResult() +{} + +void RedeployInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string RedeployInstanceResult::getTaskId()const { return taskId_; diff --git a/ecs/src/model/ReleaseDedicatedHostRequest.cc b/ecs/src/model/ReleaseDedicatedHostRequest.cc index cffd66253..7d2ce43ce 100644 --- a/ecs/src/model/ReleaseDedicatedHostRequest.cc +++ b/ecs/src/model/ReleaseDedicatedHostRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ReleaseDedicatedHostRequest; - -ReleaseDedicatedHostRequest::ReleaseDedicatedHostRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReleaseDedicatedHost") -{} - -ReleaseDedicatedHostRequest::~ReleaseDedicatedHostRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ReleaseDedicatedHostRequest; + +ReleaseDedicatedHostRequest::ReleaseDedicatedHostRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ReleaseDedicatedHost") +{} + +ReleaseDedicatedHostRequest::~ReleaseDedicatedHostRequest() +{} + long ReleaseDedicatedHostRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ReleaseDedicatedHostResult.cc b/ecs/src/model/ReleaseDedicatedHostResult.cc index 15439f622..9fd9ad7c3 100644 --- a/ecs/src/model/ReleaseDedicatedHostResult.cc +++ b/ecs/src/model/ReleaseDedicatedHostResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ReleaseDedicatedHostResult::ReleaseDedicatedHostResult() : - ServiceResult() -{} - -ReleaseDedicatedHostResult::ReleaseDedicatedHostResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReleaseDedicatedHostResult::~ReleaseDedicatedHostResult() -{} - -void ReleaseDedicatedHostResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReleaseDedicatedHostResult::ReleaseDedicatedHostResult() : + ServiceResult() +{} + +ReleaseDedicatedHostResult::ReleaseDedicatedHostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseDedicatedHostResult::~ReleaseDedicatedHostResult() +{} + +void ReleaseDedicatedHostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReleaseEipAddressRequest.cc b/ecs/src/model/ReleaseEipAddressRequest.cc index 1be381d77..263def129 100644 --- a/ecs/src/model/ReleaseEipAddressRequest.cc +++ b/ecs/src/model/ReleaseEipAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ReleaseEipAddressRequest; - -ReleaseEipAddressRequest::ReleaseEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReleaseEipAddress") -{} - -ReleaseEipAddressRequest::~ReleaseEipAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ReleaseEipAddressRequest; + +ReleaseEipAddressRequest::ReleaseEipAddressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ReleaseEipAddress") +{} + +ReleaseEipAddressRequest::~ReleaseEipAddressRequest() +{} + long ReleaseEipAddressRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ReleaseEipAddressResult.cc b/ecs/src/model/ReleaseEipAddressResult.cc index 58f6a8ecd..dcc2e59af 100644 --- a/ecs/src/model/ReleaseEipAddressResult.cc +++ b/ecs/src/model/ReleaseEipAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ReleaseEipAddressResult::ReleaseEipAddressResult() : - ServiceResult() -{} - -ReleaseEipAddressResult::ReleaseEipAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReleaseEipAddressResult::~ReleaseEipAddressResult() -{} - -void ReleaseEipAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReleaseEipAddressResult::ReleaseEipAddressResult() : + ServiceResult() +{} + +ReleaseEipAddressResult::ReleaseEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseEipAddressResult::~ReleaseEipAddressResult() +{} + +void ReleaseEipAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReleasePublicIpAddressRequest.cc b/ecs/src/model/ReleasePublicIpAddressRequest.cc index 8fa984690..c89b9680f 100644 --- a/ecs/src/model/ReleasePublicIpAddressRequest.cc +++ b/ecs/src/model/ReleasePublicIpAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ReleasePublicIpAddressRequest; - -ReleasePublicIpAddressRequest::ReleasePublicIpAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReleasePublicIpAddress") -{} - -ReleasePublicIpAddressRequest::~ReleasePublicIpAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ReleasePublicIpAddressRequest; + +ReleasePublicIpAddressRequest::ReleasePublicIpAddressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ReleasePublicIpAddress") +{} + +ReleasePublicIpAddressRequest::~ReleasePublicIpAddressRequest() +{} + std::string ReleasePublicIpAddressRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ReleasePublicIpAddressResult.cc b/ecs/src/model/ReleasePublicIpAddressResult.cc index 7257e7f16..65192f683 100644 --- a/ecs/src/model/ReleasePublicIpAddressResult.cc +++ b/ecs/src/model/ReleasePublicIpAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ReleasePublicIpAddressResult::ReleasePublicIpAddressResult() : - ServiceResult() -{} - -ReleasePublicIpAddressResult::ReleasePublicIpAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReleasePublicIpAddressResult::~ReleasePublicIpAddressResult() -{} - -void ReleasePublicIpAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReleasePublicIpAddressResult::ReleasePublicIpAddressResult() : + ServiceResult() +{} + +ReleasePublicIpAddressResult::ReleasePublicIpAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleasePublicIpAddressResult::~ReleasePublicIpAddressResult() +{} + +void ReleasePublicIpAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc b/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc index 8c044439c..7a7091e34 100644 --- a/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc +++ b/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RemoveBandwidthPackageIpsRequest; - -RemoveBandwidthPackageIpsRequest::RemoveBandwidthPackageIpsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RemoveBandwidthPackageIps") -{} - -RemoveBandwidthPackageIpsRequest::~RemoveBandwidthPackageIpsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RemoveBandwidthPackageIpsRequest; + +RemoveBandwidthPackageIpsRequest::RemoveBandwidthPackageIpsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RemoveBandwidthPackageIps") +{} + +RemoveBandwidthPackageIpsRequest::~RemoveBandwidthPackageIpsRequest() +{} + std::vector RemoveBandwidthPackageIpsRequest::getRemovedIpAddresses()const { return removedIpAddresses_; diff --git a/ecs/src/model/RemoveBandwidthPackageIpsResult.cc b/ecs/src/model/RemoveBandwidthPackageIpsResult.cc index 15113e817..49ee41ceb 100644 --- a/ecs/src/model/RemoveBandwidthPackageIpsResult.cc +++ b/ecs/src/model/RemoveBandwidthPackageIpsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult() : - ServiceResult() -{} - -RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveBandwidthPackageIpsResult::~RemoveBandwidthPackageIpsResult() -{} - -void RemoveBandwidthPackageIpsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult() : + ServiceResult() +{} + +RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveBandwidthPackageIpsResult::~RemoveBandwidthPackageIpsResult() +{} + +void RemoveBandwidthPackageIpsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RemoveTagsRequest.cc b/ecs/src/model/RemoveTagsRequest.cc index 7c54966ba..ca1058b36 100644 --- a/ecs/src/model/RemoveTagsRequest.cc +++ b/ecs/src/model/RemoveTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RemoveTagsRequest; - -RemoveTagsRequest::RemoveTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RemoveTags") -{} - -RemoveTagsRequest::~RemoveTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RemoveTagsRequest; + +RemoveTagsRequest::RemoveTagsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RemoveTags") +{} + +RemoveTagsRequest::~RemoveTagsRequest() +{} + std::string RemoveTagsRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/RemoveTagsResult.cc b/ecs/src/model/RemoveTagsResult.cc index ede17c05e..f8ef053af 100644 --- a/ecs/src/model/RemoveTagsResult.cc +++ b/ecs/src/model/RemoveTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RemoveTagsResult::RemoveTagsResult() : - ServiceResult() -{} - -RemoveTagsResult::RemoveTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveTagsResult::~RemoveTagsResult() -{} - -void RemoveTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RemoveTagsResult::RemoveTagsResult() : + ServiceResult() +{} + +RemoveTagsResult::RemoveTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagsResult::~RemoveTagsResult() +{} + +void RemoveTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RenewDedicatedHostsRequest.cc b/ecs/src/model/RenewDedicatedHostsRequest.cc index fa6f32d6b..392e0159c 100644 --- a/ecs/src/model/RenewDedicatedHostsRequest.cc +++ b/ecs/src/model/RenewDedicatedHostsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RenewDedicatedHostsRequest; - -RenewDedicatedHostsRequest::RenewDedicatedHostsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RenewDedicatedHosts") -{} - -RenewDedicatedHostsRequest::~RenewDedicatedHostsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RenewDedicatedHostsRequest; + +RenewDedicatedHostsRequest::RenewDedicatedHostsRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RenewDedicatedHosts") +{} + +RenewDedicatedHostsRequest::~RenewDedicatedHostsRequest() +{} + std::string RenewDedicatedHostsRequest::getDedicatedHostIds()const { return dedicatedHostIds_; diff --git a/ecs/src/model/RenewDedicatedHostsResult.cc b/ecs/src/model/RenewDedicatedHostsResult.cc index 58695fc5c..429e33613 100644 --- a/ecs/src/model/RenewDedicatedHostsResult.cc +++ b/ecs/src/model/RenewDedicatedHostsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RenewDedicatedHostsResult::RenewDedicatedHostsResult() : - ServiceResult() -{} - -RenewDedicatedHostsResult::RenewDedicatedHostsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RenewDedicatedHostsResult::~RenewDedicatedHostsResult() -{} - -void RenewDedicatedHostsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RenewDedicatedHostsResult::RenewDedicatedHostsResult() : + ServiceResult() +{} + +RenewDedicatedHostsResult::RenewDedicatedHostsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewDedicatedHostsResult::~RenewDedicatedHostsResult() +{} + +void RenewDedicatedHostsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RenewInstanceRequest.cc b/ecs/src/model/RenewInstanceRequest.cc index ca148a5ca..70b5cf9c1 100644 --- a/ecs/src/model/RenewInstanceRequest.cc +++ b/ecs/src/model/RenewInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RenewInstanceRequest; - -RenewInstanceRequest::RenewInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RenewInstance") -{} - -RenewInstanceRequest::~RenewInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RenewInstance") +{} + +RenewInstanceRequest::~RenewInstanceRequest() +{} + std::string RenewInstanceRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/RenewInstanceResult.cc b/ecs/src/model/RenewInstanceResult.cc index 5736789c1..939fa7255 100644 --- a/ecs/src/model/RenewInstanceResult.cc +++ b/ecs/src/model/RenewInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RenewInstanceResult::RenewInstanceResult() : - ServiceResult() -{} - -RenewInstanceResult::RenewInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RenewInstanceResult::~RenewInstanceResult() -{} - -void RenewInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RenewInstanceResult::RenewInstanceResult() : + ServiceResult() +{} + +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewInstanceResult::~RenewInstanceResult() +{} + +void RenewInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReplaceSystemDiskRequest.cc b/ecs/src/model/ReplaceSystemDiskRequest.cc index 6ba252058..8fbcfff08 100644 --- a/ecs/src/model/ReplaceSystemDiskRequest.cc +++ b/ecs/src/model/ReplaceSystemDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ReplaceSystemDiskRequest; - -ReplaceSystemDiskRequest::ReplaceSystemDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReplaceSystemDisk") -{} - -ReplaceSystemDiskRequest::~ReplaceSystemDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ReplaceSystemDiskRequest; + +ReplaceSystemDiskRequest::ReplaceSystemDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ReplaceSystemDisk") +{} + +ReplaceSystemDiskRequest::~ReplaceSystemDiskRequest() +{} + long ReplaceSystemDiskRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/ReplaceSystemDiskResult.cc b/ecs/src/model/ReplaceSystemDiskResult.cc index 2926ba33f..4df12c7d2 100644 --- a/ecs/src/model/ReplaceSystemDiskResult.cc +++ b/ecs/src/model/ReplaceSystemDiskResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ReplaceSystemDiskResult::ReplaceSystemDiskResult() : - ServiceResult() -{} - -ReplaceSystemDiskResult::ReplaceSystemDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReplaceSystemDiskResult::~ReplaceSystemDiskResult() -{} - -void ReplaceSystemDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReplaceSystemDiskResult::ReplaceSystemDiskResult() : + ServiceResult() +{} + +ReplaceSystemDiskResult::ReplaceSystemDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReplaceSystemDiskResult::~ReplaceSystemDiskResult() +{} + +void ReplaceSystemDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DiskId"].isNull()) diskId_ = value["DiskId"].asString(); - -} - + +} + std::string ReplaceSystemDiskResult::getDiskId()const { return diskId_; diff --git a/ecs/src/model/ReportInstancesStatusRequest.cc b/ecs/src/model/ReportInstancesStatusRequest.cc index 9c4878253..098167080 100644 --- a/ecs/src/model/ReportInstancesStatusRequest.cc +++ b/ecs/src/model/ReportInstancesStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ReportInstancesStatusRequest; - -ReportInstancesStatusRequest::ReportInstancesStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReportInstancesStatus") -{} - -ReportInstancesStatusRequest::~ReportInstancesStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ReportInstancesStatusRequest; + +ReportInstancesStatusRequest::ReportInstancesStatusRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ReportInstancesStatus") +{} + +ReportInstancesStatusRequest::~ReportInstancesStatusRequest() +{} + std::string ReportInstancesStatusRequest::getReason()const { return reason_; diff --git a/ecs/src/model/ReportInstancesStatusResult.cc b/ecs/src/model/ReportInstancesStatusResult.cc index d8ce0fdba..1cf7e4b35 100644 --- a/ecs/src/model/ReportInstancesStatusResult.cc +++ b/ecs/src/model/ReportInstancesStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ReportInstancesStatusResult::ReportInstancesStatusResult() : - ServiceResult() -{} - -ReportInstancesStatusResult::ReportInstancesStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReportInstancesStatusResult::~ReportInstancesStatusResult() -{} - -void ReportInstancesStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReportInstancesStatusResult::ReportInstancesStatusResult() : + ServiceResult() +{} + +ReportInstancesStatusResult::ReportInstancesStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReportInstancesStatusResult::~ReportInstancesStatusResult() +{} + +void ReportInstancesStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ResetDiskRequest.cc b/ecs/src/model/ResetDiskRequest.cc index 76dea4531..f17e5441d 100644 --- a/ecs/src/model/ResetDiskRequest.cc +++ b/ecs/src/model/ResetDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ResetDiskRequest; - -ResetDiskRequest::ResetDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ResetDisk") -{} - -ResetDiskRequest::~ResetDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ResetDiskRequest; + +ResetDiskRequest::ResetDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ResetDisk") +{} + +ResetDiskRequest::~ResetDiskRequest() +{} + std::string ResetDiskRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ResetDiskResult.cc b/ecs/src/model/ResetDiskResult.cc index 3a92f89ad..4ca72364b 100644 --- a/ecs/src/model/ResetDiskResult.cc +++ b/ecs/src/model/ResetDiskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ResetDiskResult::ResetDiskResult() : - ServiceResult() -{} - -ResetDiskResult::ResetDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetDiskResult::~ResetDiskResult() -{} - -void ResetDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ResetDiskResult::ResetDiskResult() : + ServiceResult() +{} + +ResetDiskResult::ResetDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetDiskResult::~ResetDiskResult() +{} + +void ResetDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ResizeDiskRequest.cc b/ecs/src/model/ResizeDiskRequest.cc index 91448e454..4ad4da104 100644 --- a/ecs/src/model/ResizeDiskRequest.cc +++ b/ecs/src/model/ResizeDiskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::ResizeDiskRequest; - -ResizeDiskRequest::ResizeDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ResizeDisk") -{} - -ResizeDiskRequest::~ResizeDiskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::ResizeDiskRequest; + +ResizeDiskRequest::ResizeDiskRequest() : + RpcServiceRequest("ecs", "2014-05-26", "ResizeDisk") +{} + +ResizeDiskRequest::~ResizeDiskRequest() +{} + std::string ResizeDiskRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/ResizeDiskResult.cc b/ecs/src/model/ResizeDiskResult.cc index 78d7ad1f5..a0663dee7 100644 --- a/ecs/src/model/ResizeDiskResult.cc +++ b/ecs/src/model/ResizeDiskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -ResizeDiskResult::ResizeDiskResult() : - ServiceResult() -{} - -ResizeDiskResult::ResizeDiskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResizeDiskResult::~ResizeDiskResult() -{} - -void ResizeDiskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ResizeDiskResult::ResizeDiskResult() : + ServiceResult() +{} + +ResizeDiskResult::ResizeDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResizeDiskResult::~ResizeDiskResult() +{} + +void ResizeDiskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc index 509b9d48b..eddb74611 100644 --- a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RevokeSecurityGroupEgressRequest; - -RevokeSecurityGroupEgressRequest::RevokeSecurityGroupEgressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroupEgress") -{} - -RevokeSecurityGroupEgressRequest::~RevokeSecurityGroupEgressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RevokeSecurityGroupEgressRequest; + +RevokeSecurityGroupEgressRequest::RevokeSecurityGroupEgressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroupEgress") +{} + +RevokeSecurityGroupEgressRequest::~RevokeSecurityGroupEgressRequest() +{} + std::string RevokeSecurityGroupEgressRequest::getNicType()const { return nicType_; diff --git a/ecs/src/model/RevokeSecurityGroupEgressResult.cc b/ecs/src/model/RevokeSecurityGroupEgressResult.cc index 39f10def5..932996f0e 100644 --- a/ecs/src/model/RevokeSecurityGroupEgressResult.cc +++ b/ecs/src/model/RevokeSecurityGroupEgressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RevokeSecurityGroupEgressResult::RevokeSecurityGroupEgressResult() : - ServiceResult() -{} - -RevokeSecurityGroupEgressResult::RevokeSecurityGroupEgressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevokeSecurityGroupEgressResult::~RevokeSecurityGroupEgressResult() -{} - -void RevokeSecurityGroupEgressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RevokeSecurityGroupEgressResult::RevokeSecurityGroupEgressResult() : + ServiceResult() +{} + +RevokeSecurityGroupEgressResult::RevokeSecurityGroupEgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeSecurityGroupEgressResult::~RevokeSecurityGroupEgressResult() +{} + +void RevokeSecurityGroupEgressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RevokeSecurityGroupRequest.cc b/ecs/src/model/RevokeSecurityGroupRequest.cc index e925e7440..dd34e64c6 100644 --- a/ecs/src/model/RevokeSecurityGroupRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RevokeSecurityGroupRequest; - -RevokeSecurityGroupRequest::RevokeSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroup") -{} - -RevokeSecurityGroupRequest::~RevokeSecurityGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RevokeSecurityGroupRequest; + +RevokeSecurityGroupRequest::RevokeSecurityGroupRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroup") +{} + +RevokeSecurityGroupRequest::~RevokeSecurityGroupRequest() +{} + std::string RevokeSecurityGroupRequest::getNicType()const { return nicType_; diff --git a/ecs/src/model/RevokeSecurityGroupResult.cc b/ecs/src/model/RevokeSecurityGroupResult.cc index 2d403ef12..aee04c7e8 100644 --- a/ecs/src/model/RevokeSecurityGroupResult.cc +++ b/ecs/src/model/RevokeSecurityGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RevokeSecurityGroupResult::RevokeSecurityGroupResult() : - ServiceResult() -{} - -RevokeSecurityGroupResult::RevokeSecurityGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevokeSecurityGroupResult::~RevokeSecurityGroupResult() -{} - -void RevokeSecurityGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RevokeSecurityGroupResult::RevokeSecurityGroupResult() : + ServiceResult() +{} + +RevokeSecurityGroupResult::RevokeSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeSecurityGroupResult::~RevokeSecurityGroupResult() +{} + +void RevokeSecurityGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc index 3145cebc1..fc7edeafb 100644 --- a/ecs/src/model/RunInstancesRequest.cc +++ b/ecs/src/model/RunInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::RunInstancesRequest; - -RunInstancesRequest::RunInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RunInstances") -{} - -RunInstancesRequest::~RunInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::RunInstancesRequest; + +RunInstancesRequest::RunInstancesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "RunInstances") +{} + +RunInstancesRequest::~RunInstancesRequest() +{} + std::string RunInstancesRequest::getLaunchTemplateName()const { return launchTemplateName_; diff --git a/ecs/src/model/RunInstancesResult.cc b/ecs/src/model/RunInstancesResult.cc index c8a2cefc3..3418ad610 100644 --- a/ecs/src/model/RunInstancesResult.cc +++ b/ecs/src/model/RunInstancesResult.cc @@ -1,53 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -RunInstancesResult::RunInstancesResult() : - ServiceResult() -{} - -RunInstancesResult::RunInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RunInstancesResult::~RunInstancesResult() -{} - -void RunInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RunInstancesResult::RunInstancesResult() : + ServiceResult() +{} + +RunInstancesResult::RunInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RunInstancesResult::~RunInstancesResult() +{} + +void RunInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allInstanceIdSets = value["InstanceIdSets"]["InstanceIdSet"]; for (const auto &item : allInstanceIdSets) instanceIdSets_.push_back(item.asString()); if(!value["TradePrice"].isNull()) tradePrice_ = std::stof(value["TradePrice"].asString()); - -} - + +} + std::vector RunInstancesResult::getInstanceIdSets()const { return instanceIdSets_; diff --git a/ecs/src/model/StartInstanceRequest.cc b/ecs/src/model/StartInstanceRequest.cc index e0ebcff8d..a34acb633 100644 --- a/ecs/src/model/StartInstanceRequest.cc +++ b/ecs/src/model/StartInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::StartInstanceRequest; - -StartInstanceRequest::StartInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StartInstance") -{} - -StartInstanceRequest::~StartInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::StartInstanceRequest; + +StartInstanceRequest::StartInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "StartInstance") +{} + +StartInstanceRequest::~StartInstanceRequest() +{} + std::string StartInstanceRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/StartInstanceResult.cc b/ecs/src/model/StartInstanceResult.cc index 7053112a2..786cebbaa 100644 --- a/ecs/src/model/StartInstanceResult.cc +++ b/ecs/src/model/StartInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -StartInstanceResult::StartInstanceResult() : - ServiceResult() -{} - -StartInstanceResult::StartInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartInstanceResult::~StartInstanceResult() -{} - -void StartInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StartInstanceResult::StartInstanceResult() : + ServiceResult() +{} + +StartInstanceResult::StartInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartInstanceResult::~StartInstanceResult() +{} + +void StartInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/StopInstanceRequest.cc b/ecs/src/model/StopInstanceRequest.cc index c8df924bd..ca1f7c687 100644 --- a/ecs/src/model/StopInstanceRequest.cc +++ b/ecs/src/model/StopInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::StopInstanceRequest; - -StopInstanceRequest::StopInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StopInstance") -{} - -StopInstanceRequest::~StopInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::StopInstanceRequest; + +StopInstanceRequest::StopInstanceRequest() : + RpcServiceRequest("ecs", "2014-05-26", "StopInstance") +{} + +StopInstanceRequest::~StopInstanceRequest() +{} + std::string StopInstanceRequest::getSourceRegionId()const { return sourceRegionId_; diff --git a/ecs/src/model/StopInstanceResult.cc b/ecs/src/model/StopInstanceResult.cc index d10813482..d2f12b971 100644 --- a/ecs/src/model/StopInstanceResult.cc +++ b/ecs/src/model/StopInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -StopInstanceResult::StopInstanceResult() : - ServiceResult() -{} - -StopInstanceResult::StopInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopInstanceResult::~StopInstanceResult() -{} - -void StopInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StopInstanceResult::StopInstanceResult() : + ServiceResult() +{} + +StopInstanceResult::StopInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopInstanceResult::~StopInstanceResult() +{} + +void StopInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/StopInvocationRequest.cc b/ecs/src/model/StopInvocationRequest.cc index 83da629cd..0c4c13487 100644 --- a/ecs/src/model/StopInvocationRequest.cc +++ b/ecs/src/model/StopInvocationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::StopInvocationRequest; - -StopInvocationRequest::StopInvocationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StopInvocation") -{} - -StopInvocationRequest::~StopInvocationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::StopInvocationRequest; + +StopInvocationRequest::StopInvocationRequest() : + RpcServiceRequest("ecs", "2014-05-26", "StopInvocation") +{} + +StopInvocationRequest::~StopInvocationRequest() +{} + long StopInvocationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/StopInvocationResult.cc b/ecs/src/model/StopInvocationResult.cc index bb878eea0..ac39543fa 100644 --- a/ecs/src/model/StopInvocationResult.cc +++ b/ecs/src/model/StopInvocationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -StopInvocationResult::StopInvocationResult() : - ServiceResult() -{} - -StopInvocationResult::StopInvocationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopInvocationResult::~StopInvocationResult() -{} - -void StopInvocationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StopInvocationResult::StopInvocationResult() : + ServiceResult() +{} + +StopInvocationResult::StopInvocationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopInvocationResult::~StopInvocationResult() +{} + +void StopInvocationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/TagResourcesRequest.cc b/ecs/src/model/TagResourcesRequest.cc index 258db46d4..3a715e5cf 100644 --- a/ecs/src/model/TagResourcesRequest.cc +++ b/ecs/src/model/TagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "TagResources") -{} - -TagResourcesRequest::~TagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "TagResources") +{} + +TagResourcesRequest::~TagResourcesRequest() +{} + long TagResourcesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/TagResourcesResult.cc b/ecs/src/model/TagResourcesResult.cc index 3a16ac782..e4c429f2e 100644 --- a/ecs/src/model/TagResourcesResult.cc +++ b/ecs/src/model/TagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -TagResourcesResult::TagResourcesResult() : - ServiceResult() -{} - -TagResourcesResult::TagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TagResourcesResult::~TagResourcesResult() -{} - -void TagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/TerminatePhysicalConnectionRequest.cc b/ecs/src/model/TerminatePhysicalConnectionRequest.cc index 1bfef760b..147ecbb1a 100644 --- a/ecs/src/model/TerminatePhysicalConnectionRequest.cc +++ b/ecs/src/model/TerminatePhysicalConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::TerminatePhysicalConnectionRequest; - -TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "TerminatePhysicalConnection") -{} - -TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::TerminatePhysicalConnectionRequest; + +TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() : + RpcServiceRequest("ecs", "2014-05-26", "TerminatePhysicalConnection") +{} + +TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() +{} + long TerminatePhysicalConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/TerminatePhysicalConnectionResult.cc b/ecs/src/model/TerminatePhysicalConnectionResult.cc index 088578637..82f68b5ab 100644 --- a/ecs/src/model/TerminatePhysicalConnectionResult.cc +++ b/ecs/src/model/TerminatePhysicalConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult() : - ServiceResult() -{} - -TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TerminatePhysicalConnectionResult::~TerminatePhysicalConnectionResult() -{} - -void TerminatePhysicalConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult() : + ServiceResult() +{} + +TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TerminatePhysicalConnectionResult::~TerminatePhysicalConnectionResult() +{} + +void TerminatePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/TerminateVirtualBorderRouterRequest.cc b/ecs/src/model/TerminateVirtualBorderRouterRequest.cc index aca1b0373..d821b5725 100644 --- a/ecs/src/model/TerminateVirtualBorderRouterRequest.cc +++ b/ecs/src/model/TerminateVirtualBorderRouterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::TerminateVirtualBorderRouterRequest; - -TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "TerminateVirtualBorderRouter") -{} - -TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::TerminateVirtualBorderRouterRequest; + +TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() : + RpcServiceRequest("ecs", "2014-05-26", "TerminateVirtualBorderRouter") +{} + +TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() +{} + long TerminateVirtualBorderRouterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/TerminateVirtualBorderRouterResult.cc b/ecs/src/model/TerminateVirtualBorderRouterResult.cc index 059520022..41bebd09e 100644 --- a/ecs/src/model/TerminateVirtualBorderRouterResult.cc +++ b/ecs/src/model/TerminateVirtualBorderRouterResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult() : - ServiceResult() -{} - -TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TerminateVirtualBorderRouterResult::~TerminateVirtualBorderRouterResult() -{} - -void TerminateVirtualBorderRouterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult() : + ServiceResult() +{} + +TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TerminateVirtualBorderRouterResult::~TerminateVirtualBorderRouterResult() +{} + +void TerminateVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnassignIpv6AddressesRequest.cc b/ecs/src/model/UnassignIpv6AddressesRequest.cc index b29d98661..2d4be5654 100644 --- a/ecs/src/model/UnassignIpv6AddressesRequest.cc +++ b/ecs/src/model/UnassignIpv6AddressesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::UnassignIpv6AddressesRequest; - -UnassignIpv6AddressesRequest::UnassignIpv6AddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassignIpv6Addresses") -{} - -UnassignIpv6AddressesRequest::~UnassignIpv6AddressesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::UnassignIpv6AddressesRequest; + +UnassignIpv6AddressesRequest::UnassignIpv6AddressesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "UnassignIpv6Addresses") +{} + +UnassignIpv6AddressesRequest::~UnassignIpv6AddressesRequest() +{} + long UnassignIpv6AddressesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/UnassignIpv6AddressesResult.cc b/ecs/src/model/UnassignIpv6AddressesResult.cc index d4e968040..0489436ae 100644 --- a/ecs/src/model/UnassignIpv6AddressesResult.cc +++ b/ecs/src/model/UnassignIpv6AddressesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -UnassignIpv6AddressesResult::UnassignIpv6AddressesResult() : - ServiceResult() -{} - -UnassignIpv6AddressesResult::UnassignIpv6AddressesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnassignIpv6AddressesResult::~UnassignIpv6AddressesResult() -{} - -void UnassignIpv6AddressesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassignIpv6AddressesResult::UnassignIpv6AddressesResult() : + ServiceResult() +{} + +UnassignIpv6AddressesResult::UnassignIpv6AddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassignIpv6AddressesResult::~UnassignIpv6AddressesResult() +{} + +void UnassignIpv6AddressesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnassignPrivateIpAddressesRequest.cc b/ecs/src/model/UnassignPrivateIpAddressesRequest.cc index 43711802d..0ad9cd09a 100644 --- a/ecs/src/model/UnassignPrivateIpAddressesRequest.cc +++ b/ecs/src/model/UnassignPrivateIpAddressesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::UnassignPrivateIpAddressesRequest; - -UnassignPrivateIpAddressesRequest::UnassignPrivateIpAddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassignPrivateIpAddresses") -{} - -UnassignPrivateIpAddressesRequest::~UnassignPrivateIpAddressesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::UnassignPrivateIpAddressesRequest; + +UnassignPrivateIpAddressesRequest::UnassignPrivateIpAddressesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "UnassignPrivateIpAddresses") +{} + +UnassignPrivateIpAddressesRequest::~UnassignPrivateIpAddressesRequest() +{} + long UnassignPrivateIpAddressesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/UnassignPrivateIpAddressesResult.cc b/ecs/src/model/UnassignPrivateIpAddressesResult.cc index 7f14e1dce..dd864a5f9 100644 --- a/ecs/src/model/UnassignPrivateIpAddressesResult.cc +++ b/ecs/src/model/UnassignPrivateIpAddressesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -UnassignPrivateIpAddressesResult::UnassignPrivateIpAddressesResult() : - ServiceResult() -{} - -UnassignPrivateIpAddressesResult::UnassignPrivateIpAddressesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnassignPrivateIpAddressesResult::~UnassignPrivateIpAddressesResult() -{} - -void UnassignPrivateIpAddressesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassignPrivateIpAddressesResult::UnassignPrivateIpAddressesResult() : + ServiceResult() +{} + +UnassignPrivateIpAddressesResult::UnassignPrivateIpAddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassignPrivateIpAddressesResult::~UnassignPrivateIpAddressesResult() +{} + +void UnassignPrivateIpAddressesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnassociateEipAddressRequest.cc b/ecs/src/model/UnassociateEipAddressRequest.cc index c03123cdd..857642bff 100644 --- a/ecs/src/model/UnassociateEipAddressRequest.cc +++ b/ecs/src/model/UnassociateEipAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::UnassociateEipAddressRequest; - -UnassociateEipAddressRequest::UnassociateEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassociateEipAddress") -{} - -UnassociateEipAddressRequest::~UnassociateEipAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::UnassociateEipAddressRequest; + +UnassociateEipAddressRequest::UnassociateEipAddressRequest() : + RpcServiceRequest("ecs", "2014-05-26", "UnassociateEipAddress") +{} + +UnassociateEipAddressRequest::~UnassociateEipAddressRequest() +{} + long UnassociateEipAddressRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/UnassociateEipAddressResult.cc b/ecs/src/model/UnassociateEipAddressResult.cc index a2368948e..d32e657a1 100644 --- a/ecs/src/model/UnassociateEipAddressResult.cc +++ b/ecs/src/model/UnassociateEipAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -UnassociateEipAddressResult::UnassociateEipAddressResult() : - ServiceResult() -{} - -UnassociateEipAddressResult::UnassociateEipAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnassociateEipAddressResult::~UnassociateEipAddressResult() -{} - -void UnassociateEipAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassociateEipAddressResult::UnassociateEipAddressResult() : + ServiceResult() +{} + +UnassociateEipAddressResult::UnassociateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateEipAddressResult::~UnassociateEipAddressResult() +{} + +void UnassociateEipAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnassociateHaVipRequest.cc b/ecs/src/model/UnassociateHaVipRequest.cc index 3d744208a..9a3ab80be 100644 --- a/ecs/src/model/UnassociateHaVipRequest.cc +++ b/ecs/src/model/UnassociateHaVipRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::UnassociateHaVipRequest; - -UnassociateHaVipRequest::UnassociateHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassociateHaVip") -{} - -UnassociateHaVipRequest::~UnassociateHaVipRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::UnassociateHaVipRequest; + +UnassociateHaVipRequest::UnassociateHaVipRequest() : + RpcServiceRequest("ecs", "2014-05-26", "UnassociateHaVip") +{} + +UnassociateHaVipRequest::~UnassociateHaVipRequest() +{} + std::string UnassociateHaVipRequest::getHaVipId()const { return haVipId_; diff --git a/ecs/src/model/UnassociateHaVipResult.cc b/ecs/src/model/UnassociateHaVipResult.cc index 1b1dfb96d..30baf9bf4 100644 --- a/ecs/src/model/UnassociateHaVipResult.cc +++ b/ecs/src/model/UnassociateHaVipResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -UnassociateHaVipResult::UnassociateHaVipResult() : - ServiceResult() -{} - -UnassociateHaVipResult::UnassociateHaVipResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnassociateHaVipResult::~UnassociateHaVipResult() -{} - -void UnassociateHaVipResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassociateHaVipResult::UnassociateHaVipResult() : + ServiceResult() +{} + +UnassociateHaVipResult::UnassociateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateHaVipResult::~UnassociateHaVipResult() +{} + +void UnassociateHaVipResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UntagResourcesRequest.cc b/ecs/src/model/UntagResourcesRequest.cc index 772511a9d..e8f907b23 100644 --- a/ecs/src/model/UntagResourcesRequest.cc +++ b/ecs/src/model/UntagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Ecs::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UntagResources") -{} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("ecs", "2014-05-26", "UntagResources") +{} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + long UntagResourcesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/ecs/src/model/UntagResourcesResult.cc b/ecs/src/model/UntagResourcesResult.cc index 30202b25d..090a583a9 100644 --- a/ecs/src/model/UntagResourcesResult.cc +++ b/ecs/src/model/UntagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -UntagResourcesResult::UntagResourcesResult() : - ServiceResult() -{} - -UntagResourcesResult::UntagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UntagResourcesResult::~UntagResourcesResult() -{} - -void UntagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/CMakeLists.txt b/ehpc/CMakeLists.txt index 0e2587640..cdd0c1e92 100644 --- a/ehpc/CMakeLists.txt +++ b/ehpc/CMakeLists.txt @@ -20,10 +20,430 @@ set(ehpc_public_header include/alibabacloud/ehpc/EHPCClient.h include/alibabacloud/ehpc/EHPCExport.h ) -set(ehpc_public_header_model ) +set(ehpc_public_header_model + include/alibabacloud/ehpc/model/DescribeJobRequest.h + include/alibabacloud/ehpc/model/DescribeJobResult.h + include/alibabacloud/ehpc/model/DeleteImageRequest.h + include/alibabacloud/ehpc/model/DeleteImageResult.h + include/alibabacloud/ehpc/model/DeleteUsersRequest.h + include/alibabacloud/ehpc/model/DeleteUsersResult.h + include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h + include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h + include/alibabacloud/ehpc/model/DescribeClusterRequest.h + include/alibabacloud/ehpc/model/DescribeClusterResult.h + include/alibabacloud/ehpc/model/ListUsersRequest.h + include/alibabacloud/ehpc/model/ListUsersResult.h + include/alibabacloud/ehpc/model/PullImageRequest.h + include/alibabacloud/ehpc/model/PullImageResult.h + include/alibabacloud/ehpc/model/StopNodesRequest.h + include/alibabacloud/ehpc/model/StopNodesResult.h + include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h + include/alibabacloud/ehpc/model/DescribeContainerAppResult.h + include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h + include/alibabacloud/ehpc/model/ListNodesByQueueResult.h + include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h + include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h + include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h + include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h + include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h + include/alibabacloud/ehpc/model/DescribeImagePriceResult.h + include/alibabacloud/ehpc/model/GetAutoScaleConfigRequest.h + include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h + include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h + include/alibabacloud/ehpc/model/StopGWSInstanceResult.h + include/alibabacloud/ehpc/model/ListNodesRequest.h + include/alibabacloud/ehpc/model/ListNodesResult.h + include/alibabacloud/ehpc/model/InstallNFSClientRequest.h + include/alibabacloud/ehpc/model/InstallNFSClientResult.h + include/alibabacloud/ehpc/model/ListCommandsRequest.h + include/alibabacloud/ehpc/model/ListCommandsResult.h + include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h + include/alibabacloud/ehpc/model/InvokeShellCommandResult.h + include/alibabacloud/ehpc/model/CreateGWSImageRequest.h + include/alibabacloud/ehpc/model/CreateGWSImageResult.h + include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h + include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h + include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h + include/alibabacloud/ehpc/model/ModifyClusterAttributesResult.h + include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h + include/alibabacloud/ehpc/model/DeleteJobTemplatesResult.h + include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h + include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h + include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h + include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h + include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h + include/alibabacloud/ehpc/model/CreateJobTemplateResult.h + include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h + include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h + include/alibabacloud/ehpc/model/ResetNodesRequest.h + include/alibabacloud/ehpc/model/ResetNodesResult.h + include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h + include/alibabacloud/ehpc/model/UninstallSoftwareResult.h + include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h + include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h + include/alibabacloud/ehpc/model/DeleteJobsRequest.h + include/alibabacloud/ehpc/model/DeleteJobsResult.h + include/alibabacloud/ehpc/model/ListContainerImagesRequest.h + include/alibabacloud/ehpc/model/ListContainerImagesResult.h + include/alibabacloud/ehpc/model/DeleteNodesRequest.h + include/alibabacloud/ehpc/model/DeleteNodesResult.h + include/alibabacloud/ehpc/model/ListJobsRequest.h + include/alibabacloud/ehpc/model/ListJobsResult.h + include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.h + include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h + include/alibabacloud/ehpc/model/ListAvailableFileSystemTypesRequest.h + include/alibabacloud/ehpc/model/ListAvailableFileSystemTypesResult.h + include/alibabacloud/ehpc/model/ListClustersMetaRequest.h + include/alibabacloud/ehpc/model/ListClustersMetaResult.h + include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h + include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h + include/alibabacloud/ehpc/model/ListVolumesRequest.h + include/alibabacloud/ehpc/model/ListVolumesResult.h + include/alibabacloud/ehpc/model/DeleteContainerAppsRequest.h + include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h + include/alibabacloud/ehpc/model/ModifyImageGatewayConfigRequest.h + include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h + include/alibabacloud/ehpc/model/ListInvocationStatusRequest.h + include/alibabacloud/ehpc/model/ListInvocationStatusResult.h + include/alibabacloud/ehpc/model/ListContainerAppsRequest.h + include/alibabacloud/ehpc/model/ListContainerAppsResult.h + include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h + include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h + include/alibabacloud/ehpc/model/ListClustersRequest.h + include/alibabacloud/ehpc/model/ListClustersResult.h + include/alibabacloud/ehpc/model/SubmitJobRequest.h + include/alibabacloud/ehpc/model/SubmitJobResult.h + include/alibabacloud/ehpc/model/GetAccountingReportRequest.h + include/alibabacloud/ehpc/model/GetAccountingReportResult.h + include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h + include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h + include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h + include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h + include/alibabacloud/ehpc/model/StartVisualServiceRequest.h + include/alibabacloud/ehpc/model/StartVisualServiceResult.h + include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h + include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h + include/alibabacloud/ehpc/model/InstallSoftwareRequest.h + include/alibabacloud/ehpc/model/InstallSoftwareResult.h + include/alibabacloud/ehpc/model/MountNFSRequest.h + include/alibabacloud/ehpc/model/MountNFSResult.h + include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h + include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h + include/alibabacloud/ehpc/model/AddQueueRequest.h + include/alibabacloud/ehpc/model/AddQueueResult.h + include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h + include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h + include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h + include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h + include/alibabacloud/ehpc/model/ListCurrentClientVersionRequest.h + include/alibabacloud/ehpc/model/ListCurrentClientVersionResult.h + include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h + include/alibabacloud/ehpc/model/StartGWSInstanceResult.h + include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h + include/alibabacloud/ehpc/model/ListInvocationResultsResult.h + include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h + include/alibabacloud/ehpc/model/SetAutoScaleConfigResult.h + include/alibabacloud/ehpc/model/ListSoftwaresRequest.h + include/alibabacloud/ehpc/model/ListSoftwaresResult.h + include/alibabacloud/ehpc/model/AddNodesRequest.h + include/alibabacloud/ehpc/model/AddNodesResult.h + include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h + include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h + include/alibabacloud/ehpc/model/StopJobsRequest.h + include/alibabacloud/ehpc/model/StopJobsResult.h + include/alibabacloud/ehpc/model/StartNodesRequest.h + include/alibabacloud/ehpc/model/StartNodesResult.h + include/alibabacloud/ehpc/model/ModifyUserGroupsRequest.h + include/alibabacloud/ehpc/model/ModifyUserGroupsResult.h + include/alibabacloud/ehpc/model/StartClusterRequest.h + include/alibabacloud/ehpc/model/StartClusterResult.h + include/alibabacloud/ehpc/model/SetQueueRequest.h + include/alibabacloud/ehpc/model/SetQueueResult.h + include/alibabacloud/ehpc/model/ListCustomImagesRequest.h + include/alibabacloud/ehpc/model/ListCustomImagesResult.h + include/alibabacloud/ehpc/model/AddUsersRequest.h + include/alibabacloud/ehpc/model/AddUsersResult.h + include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h + include/alibabacloud/ehpc/model/ListJobTemplatesResult.h + include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h + include/alibabacloud/ehpc/model/CreateGWSClusterResult.h + include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h + include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h + include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h + include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h + include/alibabacloud/ehpc/model/StopClusterRequest.h + include/alibabacloud/ehpc/model/StopClusterResult.h + include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h + include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h + include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h + include/alibabacloud/ehpc/model/CreateHybridClusterResult.h + include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h + include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h + include/alibabacloud/ehpc/model/StopVisualServiceRequest.h + include/alibabacloud/ehpc/model/StopVisualServiceResult.h + include/alibabacloud/ehpc/model/CreateClusterRequest.h + include/alibabacloud/ehpc/model/CreateClusterResult.h + include/alibabacloud/ehpc/model/ModifyUserPasswordsRequest.h + include/alibabacloud/ehpc/model/ModifyUserPasswordsResult.h + include/alibabacloud/ehpc/model/DescribeImageRequest.h + include/alibabacloud/ehpc/model/DescribeImageResult.h + include/alibabacloud/ehpc/model/DeleteQueueRequest.h + include/alibabacloud/ehpc/model/DeleteQueueResult.h + include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.h + include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h + include/alibabacloud/ehpc/model/UpgradeClientRequest.h + include/alibabacloud/ehpc/model/UpgradeClientResult.h + include/alibabacloud/ehpc/model/DeleteClusterRequest.h + include/alibabacloud/ehpc/model/DeleteClusterResult.h + include/alibabacloud/ehpc/model/ListImagesRequest.h + include/alibabacloud/ehpc/model/ListImagesResult.h + include/alibabacloud/ehpc/model/ListQueuesRequest.h + include/alibabacloud/ehpc/model/ListQueuesResult.h + include/alibabacloud/ehpc/model/CreateJobFileRequest.h + include/alibabacloud/ehpc/model/CreateJobFileResult.h + include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h + include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h + include/alibabacloud/ehpc/model/GetClusterVolumesRequest.h + include/alibabacloud/ehpc/model/GetClusterVolumesResult.h + include/alibabacloud/ehpc/model/SetJobUserRequest.h + include/alibabacloud/ehpc/model/SetJobUserResult.h + include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h + include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h + include/alibabacloud/ehpc/model/ListRegionsRequest.h + include/alibabacloud/ehpc/model/ListRegionsResult.h + include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h + include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h + include/alibabacloud/ehpc/model/DescribePriceRequest.h + include/alibabacloud/ehpc/model/DescribePriceResult.h + include/alibabacloud/ehpc/model/RerunJobsRequest.h + include/alibabacloud/ehpc/model/RerunJobsResult.h + include/alibabacloud/ehpc/model/EditJobTemplateRequest.h + include/alibabacloud/ehpc/model/EditJobTemplateResult.h + include/alibabacloud/ehpc/model/AddLocalNodesRequest.h + include/alibabacloud/ehpc/model/AddLocalNodesResult.h + include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h + include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h + include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h + include/alibabacloud/ehpc/model/ListPreferredEcsTypesResult.h + include/alibabacloud/ehpc/model/AddContainerAppRequest.h + include/alibabacloud/ehpc/model/AddContainerAppResult.h + include/alibabacloud/ehpc/model/ListClusterLogsRequest.h + include/alibabacloud/ehpc/model/ListClusterLogsResult.h + include/alibabacloud/ehpc/model/RecoverClusterRequest.h + include/alibabacloud/ehpc/model/RecoverClusterResult.h ) set(ehpc_src - src/EHPCClient.cc ) + src/EHPCClient.cc + src/model/DescribeJobRequest.cc + src/model/DescribeJobResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc + src/model/DeleteUsersRequest.cc + src/model/DeleteUsersResult.cc + src/model/DeleteGWSClusterRequest.cc + src/model/DeleteGWSClusterResult.cc + src/model/DescribeClusterRequest.cc + src/model/DescribeClusterResult.cc + src/model/ListUsersRequest.cc + src/model/ListUsersResult.cc + src/model/PullImageRequest.cc + src/model/PullImageResult.cc + src/model/StopNodesRequest.cc + src/model/StopNodesResult.cc + src/model/DescribeContainerAppRequest.cc + src/model/DescribeContainerAppResult.cc + src/model/ListNodesByQueueRequest.cc + src/model/ListNodesByQueueResult.cc + src/model/ModifyContainerAppAttributesRequest.cc + src/model/ModifyContainerAppAttributesResult.cc + src/model/GetCloudMetricProfilingRequest.cc + src/model/GetCloudMetricProfilingResult.cc + src/model/DescribeImagePriceRequest.cc + src/model/DescribeImagePriceResult.cc + src/model/GetAutoScaleConfigRequest.cc + src/model/GetAutoScaleConfigResult.cc + src/model/StopGWSInstanceRequest.cc + src/model/StopGWSInstanceResult.cc + src/model/ListNodesRequest.cc + src/model/ListNodesResult.cc + src/model/InstallNFSClientRequest.cc + src/model/InstallNFSClientResult.cc + src/model/ListCommandsRequest.cc + src/model/ListCommandsResult.cc + src/model/InvokeShellCommandRequest.cc + src/model/InvokeShellCommandResult.cc + src/model/CreateGWSImageRequest.cc + src/model/CreateGWSImageResult.cc + src/model/ListFileSystemWithMountTargetsRequest.cc + src/model/ListFileSystemWithMountTargetsResult.cc + src/model/ModifyClusterAttributesRequest.cc + src/model/ModifyClusterAttributesResult.cc + src/model/DeleteJobTemplatesRequest.cc + src/model/DeleteJobTemplatesResult.cc + src/model/GetCloudMetricLogsRequest.cc + src/model/GetCloudMetricLogsResult.cc + src/model/GetHybridClusterConfigRequest.cc + src/model/GetHybridClusterConfigResult.cc + src/model/CreateJobTemplateRequest.cc + src/model/CreateJobTemplateResult.cc + src/model/DescribeGWSInstancesRequest.cc + src/model/DescribeGWSInstancesResult.cc + src/model/ResetNodesRequest.cc + src/model/ResetNodesResult.cc + src/model/UninstallSoftwareRequest.cc + src/model/UninstallSoftwareResult.cc + src/model/DescribeGWSClustersRequest.cc + src/model/DescribeGWSClustersResult.cc + src/model/DeleteJobsRequest.cc + src/model/DeleteJobsResult.cc + src/model/ListContainerImagesRequest.cc + src/model/ListContainerImagesResult.cc + src/model/DeleteNodesRequest.cc + src/model/DeleteNodesResult.cc + src/model/ListJobsRequest.cc + src/model/ListJobsResult.cc + src/model/ListCpfsFileSystemsRequest.cc + src/model/ListCpfsFileSystemsResult.cc + src/model/ListAvailableFileSystemTypesRequest.cc + src/model/ListAvailableFileSystemTypesResult.cc + src/model/ListClustersMetaRequest.cc + src/model/ListClustersMetaResult.cc + src/model/QueryServicePackAndPriceRequest.cc + src/model/QueryServicePackAndPriceResult.cc + src/model/ListVolumesRequest.cc + src/model/ListVolumesResult.cc + src/model/DeleteContainerAppsRequest.cc + src/model/DeleteContainerAppsResult.cc + src/model/ModifyImageGatewayConfigRequest.cc + src/model/ModifyImageGatewayConfigResult.cc + src/model/ListInvocationStatusRequest.cc + src/model/ListInvocationStatusResult.cc + src/model/ListContainerAppsRequest.cc + src/model/ListContainerAppsResult.cc + src/model/DescribeNFSClientStatusRequest.cc + src/model/DescribeNFSClientStatusResult.cc + src/model/ListClustersRequest.cc + src/model/ListClustersResult.cc + src/model/SubmitJobRequest.cc + src/model/SubmitJobResult.cc + src/model/GetAccountingReportRequest.cc + src/model/GetAccountingReportResult.cc + src/model/DescribeAutoScaleConfigRequest.cc + src/model/DescribeAutoScaleConfigResult.cc + src/model/GetVisualServiceStatusRequest.cc + src/model/GetVisualServiceStatusResult.cc + src/model/StartVisualServiceRequest.cc + src/model/StartVisualServiceResult.cc + src/model/SetGWSInstanceUserRequest.cc + src/model/SetGWSInstanceUserResult.cc + src/model/InstallSoftwareRequest.cc + src/model/InstallSoftwareResult.cc + src/model/MountNFSRequest.cc + src/model/MountNFSResult.cc + src/model/ListAvailableEcsTypesRequest.cc + src/model/ListAvailableEcsTypesResult.cc + src/model/AddQueueRequest.cc + src/model/AddQueueResult.cc + src/model/CreateGWSInstanceRequest.cc + src/model/CreateGWSInstanceResult.cc + src/model/UpdateClusterVolumesRequest.cc + src/model/UpdateClusterVolumesResult.cc + src/model/ListCurrentClientVersionRequest.cc + src/model/ListCurrentClientVersionResult.cc + src/model/StartGWSInstanceRequest.cc + src/model/StartGWSInstanceResult.cc + src/model/ListInvocationResultsRequest.cc + src/model/ListInvocationResultsResult.cc + src/model/SetAutoScaleConfigRequest.cc + src/model/SetAutoScaleConfigResult.cc + src/model/ListSoftwaresRequest.cc + src/model/ListSoftwaresResult.cc + src/model/AddNodesRequest.cc + src/model/AddNodesResult.cc + src/model/DescribeGWSImagesRequest.cc + src/model/DescribeGWSImagesResult.cc + src/model/StopJobsRequest.cc + src/model/StopJobsResult.cc + src/model/StartNodesRequest.cc + src/model/StartNodesResult.cc + src/model/ModifyUserGroupsRequest.cc + src/model/ModifyUserGroupsResult.cc + src/model/StartClusterRequest.cc + src/model/StartClusterResult.cc + src/model/SetQueueRequest.cc + src/model/SetQueueResult.cc + src/model/ListCustomImagesRequest.cc + src/model/ListCustomImagesResult.cc + src/model/AddUsersRequest.cc + src/model/AddUsersResult.cc + src/model/ListJobTemplatesRequest.cc + src/model/ListJobTemplatesResult.cc + src/model/CreateGWSClusterRequest.cc + src/model/CreateGWSClusterResult.cc + src/model/DescribeImageGatewayConfigRequest.cc + src/model/DescribeImageGatewayConfigResult.cc + src/model/GetGWSConnectTicketRequest.cc + src/model/GetGWSConnectTicketResult.cc + src/model/StopClusterRequest.cc + src/model/StopClusterResult.cc + src/model/ListNodesNoPagingRequest.cc + src/model/ListNodesNoPagingResult.cc + src/model/CreateHybridClusterRequest.cc + src/model/CreateHybridClusterResult.cc + src/model/UpdateQueueConfigRequest.cc + src/model/UpdateQueueConfigResult.cc + src/model/StopVisualServiceRequest.cc + src/model/StopVisualServiceResult.cc + src/model/CreateClusterRequest.cc + src/model/CreateClusterResult.cc + src/model/ModifyUserPasswordsRequest.cc + src/model/ModifyUserPasswordsResult.cc + src/model/DescribeImageRequest.cc + src/model/DescribeImageResult.cc + src/model/DeleteQueueRequest.cc + src/model/DeleteQueueResult.cc + src/model/ListInstalledSoftwareRequest.cc + src/model/ListInstalledSoftwareResult.cc + src/model/UpgradeClientRequest.cc + src/model/UpgradeClientResult.cc + src/model/DeleteClusterRequest.cc + src/model/DeleteClusterResult.cc + src/model/ListImagesRequest.cc + src/model/ListImagesResult.cc + src/model/ListQueuesRequest.cc + src/model/ListQueuesResult.cc + src/model/CreateJobFileRequest.cc + src/model/CreateJobFileResult.cc + src/model/ListCloudMetricProfilingsRequest.cc + src/model/ListCloudMetricProfilingsResult.cc + src/model/GetClusterVolumesRequest.cc + src/model/GetClusterVolumesResult.cc + src/model/SetJobUserRequest.cc + src/model/SetJobUserResult.cc + src/model/DeleteGWSInstanceRequest.cc + src/model/DeleteGWSInstanceResult.cc + src/model/ListRegionsRequest.cc + src/model/ListRegionsResult.cc + src/model/RunCloudMetricProfilingRequest.cc + src/model/RunCloudMetricProfilingResult.cc + src/model/DescribePriceRequest.cc + src/model/DescribePriceResult.cc + src/model/RerunJobsRequest.cc + src/model/RerunJobsResult.cc + src/model/EditJobTemplateRequest.cc + src/model/EditJobTemplateResult.cc + src/model/AddLocalNodesRequest.cc + src/model/AddLocalNodesResult.cc + src/model/ModifyVisualServicePasswdRequest.cc + src/model/ModifyVisualServicePasswdResult.cc + src/model/ListPreferredEcsTypesRequest.cc + src/model/ListPreferredEcsTypesResult.cc + src/model/AddContainerAppRequest.cc + src/model/AddContainerAppResult.cc + src/model/ListClusterLogsRequest.cc + src/model/ListClusterLogsResult.cc + src/model/RecoverClusterRequest.cc + src/model/RecoverClusterResult.cc ) add_library(ehpc ${LIB_TYPE} ${ehpc_public_header} diff --git a/ehpc/include/alibabacloud/ehpc/EHPCClient.h b/ehpc/include/alibabacloud/ehpc/EHPCClient.h index f4e641c48..0c019cecd 100644 --- a/ehpc/include/alibabacloud/ehpc/EHPCClient.h +++ b/ehpc/include/alibabacloud/ehpc/EHPCClient.h @@ -28,24 +28,118 @@ #include "model/DeleteImageResult.h" #include "model/DeleteUsersRequest.h" #include "model/DeleteUsersResult.h" +#include "model/DeleteGWSClusterRequest.h" +#include "model/DeleteGWSClusterResult.h" #include "model/DescribeClusterRequest.h" #include "model/DescribeClusterResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" -#include "model/StopNodesRequest.h" -#include "model/StopNodesResult.h" #include "model/PullImageRequest.h" #include "model/PullImageResult.h" +#include "model/StopNodesRequest.h" +#include "model/StopNodesResult.h" #include "model/DescribeContainerAppRequest.h" #include "model/DescribeContainerAppResult.h" -#include "model/ListCurrentClientVersionRequest.h" -#include "model/ListCurrentClientVersionResult.h" -#include "model/UpdateClusterVolumesRequest.h" -#include "model/UpdateClusterVolumesResult.h" #include "model/ListNodesByQueueRequest.h" #include "model/ListNodesByQueueResult.h" #include "model/ModifyContainerAppAttributesRequest.h" #include "model/ModifyContainerAppAttributesResult.h" +#include "model/GetCloudMetricProfilingRequest.h" +#include "model/GetCloudMetricProfilingResult.h" +#include "model/DescribeImagePriceRequest.h" +#include "model/DescribeImagePriceResult.h" +#include "model/GetAutoScaleConfigRequest.h" +#include "model/GetAutoScaleConfigResult.h" +#include "model/StopGWSInstanceRequest.h" +#include "model/StopGWSInstanceResult.h" +#include "model/ListNodesRequest.h" +#include "model/ListNodesResult.h" +#include "model/InstallNFSClientRequest.h" +#include "model/InstallNFSClientResult.h" +#include "model/ListCommandsRequest.h" +#include "model/ListCommandsResult.h" +#include "model/InvokeShellCommandRequest.h" +#include "model/InvokeShellCommandResult.h" +#include "model/CreateGWSImageRequest.h" +#include "model/CreateGWSImageResult.h" +#include "model/ListFileSystemWithMountTargetsRequest.h" +#include "model/ListFileSystemWithMountTargetsResult.h" +#include "model/ModifyClusterAttributesRequest.h" +#include "model/ModifyClusterAttributesResult.h" +#include "model/DeleteJobTemplatesRequest.h" +#include "model/DeleteJobTemplatesResult.h" +#include "model/GetCloudMetricLogsRequest.h" +#include "model/GetCloudMetricLogsResult.h" +#include "model/GetHybridClusterConfigRequest.h" +#include "model/GetHybridClusterConfigResult.h" +#include "model/CreateJobTemplateRequest.h" +#include "model/CreateJobTemplateResult.h" +#include "model/DescribeGWSInstancesRequest.h" +#include "model/DescribeGWSInstancesResult.h" +#include "model/ResetNodesRequest.h" +#include "model/ResetNodesResult.h" +#include "model/UninstallSoftwareRequest.h" +#include "model/UninstallSoftwareResult.h" +#include "model/DescribeGWSClustersRequest.h" +#include "model/DescribeGWSClustersResult.h" +#include "model/DeleteJobsRequest.h" +#include "model/DeleteJobsResult.h" +#include "model/ListContainerImagesRequest.h" +#include "model/ListContainerImagesResult.h" +#include "model/DeleteNodesRequest.h" +#include "model/DeleteNodesResult.h" +#include "model/ListJobsRequest.h" +#include "model/ListJobsResult.h" +#include "model/ListCpfsFileSystemsRequest.h" +#include "model/ListCpfsFileSystemsResult.h" +#include "model/ListAvailableFileSystemTypesRequest.h" +#include "model/ListAvailableFileSystemTypesResult.h" +#include "model/ListClustersMetaRequest.h" +#include "model/ListClustersMetaResult.h" +#include "model/QueryServicePackAndPriceRequest.h" +#include "model/QueryServicePackAndPriceResult.h" +#include "model/ListVolumesRequest.h" +#include "model/ListVolumesResult.h" +#include "model/DeleteContainerAppsRequest.h" +#include "model/DeleteContainerAppsResult.h" +#include "model/ModifyImageGatewayConfigRequest.h" +#include "model/ModifyImageGatewayConfigResult.h" +#include "model/ListInvocationStatusRequest.h" +#include "model/ListInvocationStatusResult.h" +#include "model/ListContainerAppsRequest.h" +#include "model/ListContainerAppsResult.h" +#include "model/DescribeNFSClientStatusRequest.h" +#include "model/DescribeNFSClientStatusResult.h" +#include "model/ListClustersRequest.h" +#include "model/ListClustersResult.h" +#include "model/SubmitJobRequest.h" +#include "model/SubmitJobResult.h" +#include "model/GetAccountingReportRequest.h" +#include "model/GetAccountingReportResult.h" +#include "model/DescribeAutoScaleConfigRequest.h" +#include "model/DescribeAutoScaleConfigResult.h" +#include "model/GetVisualServiceStatusRequest.h" +#include "model/GetVisualServiceStatusResult.h" +#include "model/StartVisualServiceRequest.h" +#include "model/StartVisualServiceResult.h" +#include "model/SetGWSInstanceUserRequest.h" +#include "model/SetGWSInstanceUserResult.h" +#include "model/InstallSoftwareRequest.h" +#include "model/InstallSoftwareResult.h" +#include "model/MountNFSRequest.h" +#include "model/MountNFSResult.h" +#include "model/ListAvailableEcsTypesRequest.h" +#include "model/ListAvailableEcsTypesResult.h" +#include "model/AddQueueRequest.h" +#include "model/AddQueueResult.h" +#include "model/CreateGWSInstanceRequest.h" +#include "model/CreateGWSInstanceResult.h" +#include "model/UpdateClusterVolumesRequest.h" +#include "model/UpdateClusterVolumesResult.h" +#include "model/ListCurrentClientVersionRequest.h" +#include "model/ListCurrentClientVersionResult.h" +#include "model/StartGWSInstanceRequest.h" +#include "model/StartGWSInstanceResult.h" #include "model/ListInvocationResultsRequest.h" #include "model/ListInvocationResultsResult.h" #include "model/SetAutoScaleConfigRequest.h" @@ -54,68 +148,40 @@ #include "model/ListSoftwaresResult.h" #include "model/AddNodesRequest.h" #include "model/AddNodesResult.h" +#include "model/DescribeGWSImagesRequest.h" +#include "model/DescribeGWSImagesResult.h" #include "model/StopJobsRequest.h" #include "model/StopJobsResult.h" #include "model/StartNodesRequest.h" #include "model/StartNodesResult.h" -#include "model/GetCloudMetricProfilingRequest.h" -#include "model/GetCloudMetricProfilingResult.h" -#include "model/GetAutoScaleConfigRequest.h" -#include "model/GetAutoScaleConfigResult.h" -#include "model/DescribeImagePriceRequest.h" -#include "model/DescribeImagePriceResult.h" -#include "model/ListNodesRequest.h" -#include "model/ListNodesResult.h" #include "model/ModifyUserGroupsRequest.h" #include "model/ModifyUserGroupsResult.h" #include "model/StartClusterRequest.h" #include "model/StartClusterResult.h" #include "model/SetQueueRequest.h" #include "model/SetQueueResult.h" -#include "model/ListCommandsRequest.h" -#include "model/ListCommandsResult.h" #include "model/ListCustomImagesRequest.h" #include "model/ListCustomImagesResult.h" -#include "model/InvokeShellCommandRequest.h" -#include "model/InvokeShellCommandResult.h" -#include "model/ListJobTemplatesRequest.h" -#include "model/ListJobTemplatesResult.h" -#include "model/ListFileSystemWithMountTargetsRequest.h" -#include "model/ListFileSystemWithMountTargetsResult.h" #include "model/AddUsersRequest.h" #include "model/AddUsersResult.h" +#include "model/ListJobTemplatesRequest.h" +#include "model/ListJobTemplatesResult.h" +#include "model/CreateGWSClusterRequest.h" +#include "model/CreateGWSClusterResult.h" #include "model/DescribeImageGatewayConfigRequest.h" #include "model/DescribeImageGatewayConfigResult.h" -#include "model/ModifyClusterAttributesRequest.h" -#include "model/ModifyClusterAttributesResult.h" -#include "model/DeleteJobTemplatesRequest.h" -#include "model/DeleteJobTemplatesResult.h" +#include "model/GetGWSConnectTicketRequest.h" +#include "model/GetGWSConnectTicketResult.h" #include "model/StopClusterRequest.h" #include "model/StopClusterResult.h" #include "model/ListNodesNoPagingRequest.h" #include "model/ListNodesNoPagingResult.h" -#include "model/GetCloudMetricLogsRequest.h" -#include "model/GetCloudMetricLogsResult.h" -#include "model/CreateJobTemplateRequest.h" -#include "model/CreateJobTemplateResult.h" -#include "model/GetHybridClusterConfigRequest.h" -#include "model/GetHybridClusterConfigResult.h" -#include "model/ResetNodesRequest.h" -#include "model/ResetNodesResult.h" -#include "model/UninstallSoftwareRequest.h" -#include "model/UninstallSoftwareResult.h" #include "model/CreateHybridClusterRequest.h" #include "model/CreateHybridClusterResult.h" -#include "model/ListContainerImagesRequest.h" -#include "model/ListContainerImagesResult.h" -#include "model/DeleteJobsRequest.h" -#include "model/DeleteJobsResult.h" -#include "model/DeleteNodesRequest.h" -#include "model/DeleteNodesResult.h" +#include "model/UpdateQueueConfigRequest.h" +#include "model/UpdateQueueConfigResult.h" #include "model/StopVisualServiceRequest.h" #include "model/StopVisualServiceResult.h" -#include "model/ListJobsRequest.h" -#include "model/ListJobsResult.h" #include "model/CreateClusterRequest.h" #include "model/CreateClusterResult.h" #include "model/ModifyUserPasswordsRequest.h" @@ -124,30 +190,14 @@ #include "model/DescribeImageResult.h" #include "model/DeleteQueueRequest.h" #include "model/DeleteQueueResult.h" -#include "model/ListCpfsFileSystemsRequest.h" -#include "model/ListCpfsFileSystemsResult.h" #include "model/ListInstalledSoftwareRequest.h" #include "model/ListInstalledSoftwareResult.h" #include "model/UpgradeClientRequest.h" #include "model/UpgradeClientResult.h" -#include "model/ListAvailableFileSystemTypesRequest.h" -#include "model/ListAvailableFileSystemTypesResult.h" -#include "model/ListClustersMetaRequest.h" -#include "model/ListClustersMetaResult.h" #include "model/DeleteClusterRequest.h" #include "model/DeleteClusterResult.h" #include "model/ListImagesRequest.h" #include "model/ListImagesResult.h" -#include "model/ListVolumesRequest.h" -#include "model/ListVolumesResult.h" -#include "model/DeleteContainerAppsRequest.h" -#include "model/DeleteContainerAppsResult.h" -#include "model/ListInvocationStatusRequest.h" -#include "model/ListInvocationStatusResult.h" -#include "model/ModifyImageGatewayConfigRequest.h" -#include "model/ModifyImageGatewayConfigResult.h" -#include "model/ListContainerAppsRequest.h" -#include "model/ListContainerAppsResult.h" #include "model/ListQueuesRequest.h" #include "model/ListQueuesResult.h" #include "model/CreateJobFileRequest.h" @@ -158,22 +208,12 @@ #include "model/GetClusterVolumesResult.h" #include "model/SetJobUserRequest.h" #include "model/SetJobUserResult.h" -#include "model/ListClustersRequest.h" -#include "model/ListClustersResult.h" -#include "model/SubmitJobRequest.h" -#include "model/SubmitJobResult.h" -#include "model/GetAccountingReportRequest.h" -#include "model/GetAccountingReportResult.h" +#include "model/DeleteGWSInstanceRequest.h" +#include "model/DeleteGWSInstanceResult.h" #include "model/ListRegionsRequest.h" #include "model/ListRegionsResult.h" -#include "model/DescribeAutoScaleConfigRequest.h" -#include "model/DescribeAutoScaleConfigResult.h" -#include "model/GetVisualServiceStatusRequest.h" -#include "model/GetVisualServiceStatusResult.h" #include "model/RunCloudMetricProfilingRequest.h" #include "model/RunCloudMetricProfilingResult.h" -#include "model/StartVisualServiceRequest.h" -#include "model/StartVisualServiceResult.h" #include "model/DescribePriceRequest.h" #include "model/DescribePriceResult.h" #include "model/RerunJobsRequest.h" @@ -188,16 +228,10 @@ #include "model/ListPreferredEcsTypesResult.h" #include "model/AddContainerAppRequest.h" #include "model/AddContainerAppResult.h" -#include "model/InstallSoftwareRequest.h" -#include "model/InstallSoftwareResult.h" #include "model/ListClusterLogsRequest.h" #include "model/ListClusterLogsResult.h" #include "model/RecoverClusterRequest.h" #include "model/RecoverClusterResult.h" -#include "model/ListAvailableEcsTypesRequest.h" -#include "model/ListAvailableEcsTypesResult.h" -#include "model/AddQueueRequest.h" -#include "model/AddQueueResult.h" namespace AlibabaCloud @@ -216,33 +250,174 @@ namespace AlibabaCloud typedef Outcome DeleteUsersOutcome; typedef std::future DeleteUsersOutcomeCallable; typedef std::function&)> DeleteUsersAsyncHandler; + typedef Outcome DeleteGWSClusterOutcome; + typedef std::future DeleteGWSClusterOutcomeCallable; + typedef std::function&)> DeleteGWSClusterAsyncHandler; typedef Outcome DescribeClusterOutcome; typedef std::future DescribeClusterOutcomeCallable; typedef std::function&)> DescribeClusterAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; - typedef Outcome StopNodesOutcome; - typedef std::future StopNodesOutcomeCallable; - typedef std::function&)> StopNodesAsyncHandler; typedef Outcome PullImageOutcome; typedef std::future PullImageOutcomeCallable; typedef std::function&)> PullImageAsyncHandler; + typedef Outcome StopNodesOutcome; + typedef std::future StopNodesOutcomeCallable; + typedef std::function&)> StopNodesAsyncHandler; typedef Outcome DescribeContainerAppOutcome; typedef std::future DescribeContainerAppOutcomeCallable; typedef std::function&)> DescribeContainerAppAsyncHandler; - typedef Outcome ListCurrentClientVersionOutcome; - typedef std::future ListCurrentClientVersionOutcomeCallable; - typedef std::function&)> ListCurrentClientVersionAsyncHandler; - typedef Outcome UpdateClusterVolumesOutcome; - typedef std::future UpdateClusterVolumesOutcomeCallable; - typedef std::function&)> UpdateClusterVolumesAsyncHandler; typedef Outcome ListNodesByQueueOutcome; typedef std::future ListNodesByQueueOutcomeCallable; typedef std::function&)> ListNodesByQueueAsyncHandler; typedef Outcome ModifyContainerAppAttributesOutcome; typedef std::future ModifyContainerAppAttributesOutcomeCallable; typedef std::function&)> ModifyContainerAppAttributesAsyncHandler; + typedef Outcome GetCloudMetricProfilingOutcome; + typedef std::future GetCloudMetricProfilingOutcomeCallable; + typedef std::function&)> GetCloudMetricProfilingAsyncHandler; + typedef Outcome DescribeImagePriceOutcome; + typedef std::future DescribeImagePriceOutcomeCallable; + typedef std::function&)> DescribeImagePriceAsyncHandler; + typedef Outcome GetAutoScaleConfigOutcome; + typedef std::future GetAutoScaleConfigOutcomeCallable; + typedef std::function&)> GetAutoScaleConfigAsyncHandler; + typedef Outcome StopGWSInstanceOutcome; + typedef std::future StopGWSInstanceOutcomeCallable; + typedef std::function&)> StopGWSInstanceAsyncHandler; + typedef Outcome ListNodesOutcome; + typedef std::future ListNodesOutcomeCallable; + typedef std::function&)> ListNodesAsyncHandler; + typedef Outcome InstallNFSClientOutcome; + typedef std::future InstallNFSClientOutcomeCallable; + typedef std::function&)> InstallNFSClientAsyncHandler; + typedef Outcome ListCommandsOutcome; + typedef std::future ListCommandsOutcomeCallable; + typedef std::function&)> ListCommandsAsyncHandler; + typedef Outcome InvokeShellCommandOutcome; + typedef std::future InvokeShellCommandOutcomeCallable; + typedef std::function&)> InvokeShellCommandAsyncHandler; + typedef Outcome CreateGWSImageOutcome; + typedef std::future CreateGWSImageOutcomeCallable; + typedef std::function&)> CreateGWSImageAsyncHandler; + typedef Outcome ListFileSystemWithMountTargetsOutcome; + typedef std::future ListFileSystemWithMountTargetsOutcomeCallable; + typedef std::function&)> ListFileSystemWithMountTargetsAsyncHandler; + typedef Outcome ModifyClusterAttributesOutcome; + typedef std::future ModifyClusterAttributesOutcomeCallable; + typedef std::function&)> ModifyClusterAttributesAsyncHandler; + typedef Outcome DeleteJobTemplatesOutcome; + typedef std::future DeleteJobTemplatesOutcomeCallable; + typedef std::function&)> DeleteJobTemplatesAsyncHandler; + typedef Outcome GetCloudMetricLogsOutcome; + typedef std::future GetCloudMetricLogsOutcomeCallable; + typedef std::function&)> GetCloudMetricLogsAsyncHandler; + typedef Outcome GetHybridClusterConfigOutcome; + typedef std::future GetHybridClusterConfigOutcomeCallable; + typedef std::function&)> GetHybridClusterConfigAsyncHandler; + typedef Outcome CreateJobTemplateOutcome; + typedef std::future CreateJobTemplateOutcomeCallable; + typedef std::function&)> CreateJobTemplateAsyncHandler; + typedef Outcome DescribeGWSInstancesOutcome; + typedef std::future DescribeGWSInstancesOutcomeCallable; + typedef std::function&)> DescribeGWSInstancesAsyncHandler; + typedef Outcome ResetNodesOutcome; + typedef std::future ResetNodesOutcomeCallable; + typedef std::function&)> ResetNodesAsyncHandler; + typedef Outcome UninstallSoftwareOutcome; + typedef std::future UninstallSoftwareOutcomeCallable; + typedef std::function&)> UninstallSoftwareAsyncHandler; + typedef Outcome DescribeGWSClustersOutcome; + typedef std::future DescribeGWSClustersOutcomeCallable; + typedef std::function&)> DescribeGWSClustersAsyncHandler; + typedef Outcome DeleteJobsOutcome; + typedef std::future DeleteJobsOutcomeCallable; + typedef std::function&)> DeleteJobsAsyncHandler; + typedef Outcome ListContainerImagesOutcome; + typedef std::future ListContainerImagesOutcomeCallable; + typedef std::function&)> ListContainerImagesAsyncHandler; + typedef Outcome DeleteNodesOutcome; + typedef std::future DeleteNodesOutcomeCallable; + typedef std::function&)> DeleteNodesAsyncHandler; + typedef Outcome ListJobsOutcome; + typedef std::future ListJobsOutcomeCallable; + typedef std::function&)> ListJobsAsyncHandler; + typedef Outcome ListCpfsFileSystemsOutcome; + typedef std::future ListCpfsFileSystemsOutcomeCallable; + typedef std::function&)> ListCpfsFileSystemsAsyncHandler; + typedef Outcome ListAvailableFileSystemTypesOutcome; + typedef std::future ListAvailableFileSystemTypesOutcomeCallable; + typedef std::function&)> ListAvailableFileSystemTypesAsyncHandler; + typedef Outcome ListClustersMetaOutcome; + typedef std::future ListClustersMetaOutcomeCallable; + typedef std::function&)> ListClustersMetaAsyncHandler; + typedef Outcome QueryServicePackAndPriceOutcome; + typedef std::future QueryServicePackAndPriceOutcomeCallable; + typedef std::function&)> QueryServicePackAndPriceAsyncHandler; + typedef Outcome ListVolumesOutcome; + typedef std::future ListVolumesOutcomeCallable; + typedef std::function&)> ListVolumesAsyncHandler; + typedef Outcome DeleteContainerAppsOutcome; + typedef std::future DeleteContainerAppsOutcomeCallable; + typedef std::function&)> DeleteContainerAppsAsyncHandler; + typedef Outcome ModifyImageGatewayConfigOutcome; + typedef std::future ModifyImageGatewayConfigOutcomeCallable; + typedef std::function&)> ModifyImageGatewayConfigAsyncHandler; + typedef Outcome ListInvocationStatusOutcome; + typedef std::future ListInvocationStatusOutcomeCallable; + typedef std::function&)> ListInvocationStatusAsyncHandler; + typedef Outcome ListContainerAppsOutcome; + typedef std::future ListContainerAppsOutcomeCallable; + typedef std::function&)> ListContainerAppsAsyncHandler; + typedef Outcome DescribeNFSClientStatusOutcome; + typedef std::future DescribeNFSClientStatusOutcomeCallable; + typedef std::function&)> DescribeNFSClientStatusAsyncHandler; + typedef Outcome ListClustersOutcome; + typedef std::future ListClustersOutcomeCallable; + typedef std::function&)> ListClustersAsyncHandler; + typedef Outcome SubmitJobOutcome; + typedef std::future SubmitJobOutcomeCallable; + typedef std::function&)> SubmitJobAsyncHandler; + typedef Outcome GetAccountingReportOutcome; + typedef std::future GetAccountingReportOutcomeCallable; + typedef std::function&)> GetAccountingReportAsyncHandler; + typedef Outcome DescribeAutoScaleConfigOutcome; + typedef std::future DescribeAutoScaleConfigOutcomeCallable; + typedef std::function&)> DescribeAutoScaleConfigAsyncHandler; + typedef Outcome GetVisualServiceStatusOutcome; + typedef std::future GetVisualServiceStatusOutcomeCallable; + typedef std::function&)> GetVisualServiceStatusAsyncHandler; + typedef Outcome StartVisualServiceOutcome; + typedef std::future StartVisualServiceOutcomeCallable; + typedef std::function&)> StartVisualServiceAsyncHandler; + typedef Outcome SetGWSInstanceUserOutcome; + typedef std::future SetGWSInstanceUserOutcomeCallable; + typedef std::function&)> SetGWSInstanceUserAsyncHandler; + typedef Outcome InstallSoftwareOutcome; + typedef std::future InstallSoftwareOutcomeCallable; + typedef std::function&)> InstallSoftwareAsyncHandler; + typedef Outcome MountNFSOutcome; + typedef std::future MountNFSOutcomeCallable; + typedef std::function&)> MountNFSAsyncHandler; + typedef Outcome ListAvailableEcsTypesOutcome; + typedef std::future ListAvailableEcsTypesOutcomeCallable; + typedef std::function&)> ListAvailableEcsTypesAsyncHandler; + typedef Outcome AddQueueOutcome; + typedef std::future AddQueueOutcomeCallable; + typedef std::function&)> AddQueueAsyncHandler; + typedef Outcome CreateGWSInstanceOutcome; + typedef std::future CreateGWSInstanceOutcomeCallable; + typedef std::function&)> CreateGWSInstanceAsyncHandler; + typedef Outcome UpdateClusterVolumesOutcome; + typedef std::future UpdateClusterVolumesOutcomeCallable; + typedef std::function&)> UpdateClusterVolumesAsyncHandler; + typedef Outcome ListCurrentClientVersionOutcome; + typedef std::future ListCurrentClientVersionOutcomeCallable; + typedef std::function&)> ListCurrentClientVersionAsyncHandler; + typedef Outcome StartGWSInstanceOutcome; + typedef std::future StartGWSInstanceOutcomeCallable; + typedef std::function&)> StartGWSInstanceAsyncHandler; typedef Outcome ListInvocationResultsOutcome; typedef std::future ListInvocationResultsOutcomeCallable; typedef std::function&)> ListInvocationResultsAsyncHandler; @@ -255,24 +430,15 @@ namespace AlibabaCloud typedef Outcome AddNodesOutcome; typedef std::future AddNodesOutcomeCallable; typedef std::function&)> AddNodesAsyncHandler; + typedef Outcome DescribeGWSImagesOutcome; + typedef std::future DescribeGWSImagesOutcomeCallable; + typedef std::function&)> DescribeGWSImagesAsyncHandler; typedef Outcome StopJobsOutcome; typedef std::future StopJobsOutcomeCallable; typedef std::function&)> StopJobsAsyncHandler; typedef Outcome StartNodesOutcome; typedef std::future StartNodesOutcomeCallable; typedef std::function&)> StartNodesAsyncHandler; - typedef Outcome GetCloudMetricProfilingOutcome; - typedef std::future GetCloudMetricProfilingOutcomeCallable; - typedef std::function&)> GetCloudMetricProfilingAsyncHandler; - typedef Outcome GetAutoScaleConfigOutcome; - typedef std::future GetAutoScaleConfigOutcomeCallable; - typedef std::function&)> GetAutoScaleConfigAsyncHandler; - typedef Outcome DescribeImagePriceOutcome; - typedef std::future DescribeImagePriceOutcomeCallable; - typedef std::function&)> DescribeImagePriceAsyncHandler; - typedef Outcome ListNodesOutcome; - typedef std::future ListNodesOutcomeCallable; - typedef std::function&)> ListNodesAsyncHandler; typedef Outcome ModifyUserGroupsOutcome; typedef std::future ModifyUserGroupsOutcomeCallable; typedef std::function&)> ModifyUserGroupsAsyncHandler; @@ -282,72 +448,39 @@ namespace AlibabaCloud typedef Outcome SetQueueOutcome; typedef std::future SetQueueOutcomeCallable; typedef std::function&)> SetQueueAsyncHandler; - typedef Outcome ListCommandsOutcome; - typedef std::future ListCommandsOutcomeCallable; - typedef std::function&)> ListCommandsAsyncHandler; typedef Outcome ListCustomImagesOutcome; typedef std::future ListCustomImagesOutcomeCallable; typedef std::function&)> ListCustomImagesAsyncHandler; - typedef Outcome InvokeShellCommandOutcome; - typedef std::future InvokeShellCommandOutcomeCallable; - typedef std::function&)> InvokeShellCommandAsyncHandler; - typedef Outcome ListJobTemplatesOutcome; - typedef std::future ListJobTemplatesOutcomeCallable; - typedef std::function&)> ListJobTemplatesAsyncHandler; - typedef Outcome ListFileSystemWithMountTargetsOutcome; - typedef std::future ListFileSystemWithMountTargetsOutcomeCallable; - typedef std::function&)> ListFileSystemWithMountTargetsAsyncHandler; typedef Outcome AddUsersOutcome; typedef std::future AddUsersOutcomeCallable; typedef std::function&)> AddUsersAsyncHandler; + typedef Outcome ListJobTemplatesOutcome; + typedef std::future ListJobTemplatesOutcomeCallable; + typedef std::function&)> ListJobTemplatesAsyncHandler; + typedef Outcome CreateGWSClusterOutcome; + typedef std::future CreateGWSClusterOutcomeCallable; + typedef std::function&)> CreateGWSClusterAsyncHandler; typedef Outcome DescribeImageGatewayConfigOutcome; typedef std::future DescribeImageGatewayConfigOutcomeCallable; typedef std::function&)> DescribeImageGatewayConfigAsyncHandler; - typedef Outcome ModifyClusterAttributesOutcome; - typedef std::future ModifyClusterAttributesOutcomeCallable; - typedef std::function&)> ModifyClusterAttributesAsyncHandler; - typedef Outcome DeleteJobTemplatesOutcome; - typedef std::future DeleteJobTemplatesOutcomeCallable; - typedef std::function&)> DeleteJobTemplatesAsyncHandler; + typedef Outcome GetGWSConnectTicketOutcome; + typedef std::future GetGWSConnectTicketOutcomeCallable; + typedef std::function&)> GetGWSConnectTicketAsyncHandler; typedef Outcome StopClusterOutcome; typedef std::future StopClusterOutcomeCallable; typedef std::function&)> StopClusterAsyncHandler; typedef Outcome ListNodesNoPagingOutcome; typedef std::future ListNodesNoPagingOutcomeCallable; typedef std::function&)> ListNodesNoPagingAsyncHandler; - typedef Outcome GetCloudMetricLogsOutcome; - typedef std::future GetCloudMetricLogsOutcomeCallable; - typedef std::function&)> GetCloudMetricLogsAsyncHandler; - typedef Outcome CreateJobTemplateOutcome; - typedef std::future CreateJobTemplateOutcomeCallable; - typedef std::function&)> CreateJobTemplateAsyncHandler; - typedef Outcome GetHybridClusterConfigOutcome; - typedef std::future GetHybridClusterConfigOutcomeCallable; - typedef std::function&)> GetHybridClusterConfigAsyncHandler; - typedef Outcome ResetNodesOutcome; - typedef std::future ResetNodesOutcomeCallable; - typedef std::function&)> ResetNodesAsyncHandler; - typedef Outcome UninstallSoftwareOutcome; - typedef std::future UninstallSoftwareOutcomeCallable; - typedef std::function&)> UninstallSoftwareAsyncHandler; typedef Outcome CreateHybridClusterOutcome; typedef std::future CreateHybridClusterOutcomeCallable; typedef std::function&)> CreateHybridClusterAsyncHandler; - typedef Outcome ListContainerImagesOutcome; - typedef std::future ListContainerImagesOutcomeCallable; - typedef std::function&)> ListContainerImagesAsyncHandler; - typedef Outcome DeleteJobsOutcome; - typedef std::future DeleteJobsOutcomeCallable; - typedef std::function&)> DeleteJobsAsyncHandler; - typedef Outcome DeleteNodesOutcome; - typedef std::future DeleteNodesOutcomeCallable; - typedef std::function&)> DeleteNodesAsyncHandler; + typedef Outcome UpdateQueueConfigOutcome; + typedef std::future UpdateQueueConfigOutcomeCallable; + typedef std::function&)> UpdateQueueConfigAsyncHandler; typedef Outcome StopVisualServiceOutcome; typedef std::future StopVisualServiceOutcomeCallable; typedef std::function&)> StopVisualServiceAsyncHandler; - typedef Outcome ListJobsOutcome; - typedef std::future ListJobsOutcomeCallable; - typedef std::function&)> ListJobsAsyncHandler; typedef Outcome CreateClusterOutcome; typedef std::future CreateClusterOutcomeCallable; typedef std::function&)> CreateClusterAsyncHandler; @@ -360,42 +493,18 @@ namespace AlibabaCloud typedef Outcome DeleteQueueOutcome; typedef std::future DeleteQueueOutcomeCallable; typedef std::function&)> DeleteQueueAsyncHandler; - typedef Outcome ListCpfsFileSystemsOutcome; - typedef std::future ListCpfsFileSystemsOutcomeCallable; - typedef std::function&)> ListCpfsFileSystemsAsyncHandler; typedef Outcome ListInstalledSoftwareOutcome; typedef std::future ListInstalledSoftwareOutcomeCallable; typedef std::function&)> ListInstalledSoftwareAsyncHandler; typedef Outcome UpgradeClientOutcome; typedef std::future UpgradeClientOutcomeCallable; typedef std::function&)> UpgradeClientAsyncHandler; - typedef Outcome ListAvailableFileSystemTypesOutcome; - typedef std::future ListAvailableFileSystemTypesOutcomeCallable; - typedef std::function&)> ListAvailableFileSystemTypesAsyncHandler; - typedef Outcome ListClustersMetaOutcome; - typedef std::future ListClustersMetaOutcomeCallable; - typedef std::function&)> ListClustersMetaAsyncHandler; typedef Outcome DeleteClusterOutcome; typedef std::future DeleteClusterOutcomeCallable; typedef std::function&)> DeleteClusterAsyncHandler; typedef Outcome ListImagesOutcome; typedef std::future ListImagesOutcomeCallable; typedef std::function&)> ListImagesAsyncHandler; - typedef Outcome ListVolumesOutcome; - typedef std::future ListVolumesOutcomeCallable; - typedef std::function&)> ListVolumesAsyncHandler; - typedef Outcome DeleteContainerAppsOutcome; - typedef std::future DeleteContainerAppsOutcomeCallable; - typedef std::function&)> DeleteContainerAppsAsyncHandler; - typedef Outcome ListInvocationStatusOutcome; - typedef std::future ListInvocationStatusOutcomeCallable; - typedef std::function&)> ListInvocationStatusAsyncHandler; - typedef Outcome ModifyImageGatewayConfigOutcome; - typedef std::future ModifyImageGatewayConfigOutcomeCallable; - typedef std::function&)> ModifyImageGatewayConfigAsyncHandler; - typedef Outcome ListContainerAppsOutcome; - typedef std::future ListContainerAppsOutcomeCallable; - typedef std::function&)> ListContainerAppsAsyncHandler; typedef Outcome ListQueuesOutcome; typedef std::future ListQueuesOutcomeCallable; typedef std::function&)> ListQueuesAsyncHandler; @@ -411,30 +520,15 @@ namespace AlibabaCloud typedef Outcome SetJobUserOutcome; typedef std::future SetJobUserOutcomeCallable; typedef std::function&)> SetJobUserAsyncHandler; - typedef Outcome ListClustersOutcome; - typedef std::future ListClustersOutcomeCallable; - typedef std::function&)> ListClustersAsyncHandler; - typedef Outcome SubmitJobOutcome; - typedef std::future SubmitJobOutcomeCallable; - typedef std::function&)> SubmitJobAsyncHandler; - typedef Outcome GetAccountingReportOutcome; - typedef std::future GetAccountingReportOutcomeCallable; - typedef std::function&)> GetAccountingReportAsyncHandler; + typedef Outcome DeleteGWSInstanceOutcome; + typedef std::future DeleteGWSInstanceOutcomeCallable; + typedef std::function&)> DeleteGWSInstanceAsyncHandler; typedef Outcome ListRegionsOutcome; typedef std::future ListRegionsOutcomeCallable; typedef std::function&)> ListRegionsAsyncHandler; - typedef Outcome DescribeAutoScaleConfigOutcome; - typedef std::future DescribeAutoScaleConfigOutcomeCallable; - typedef std::function&)> DescribeAutoScaleConfigAsyncHandler; - typedef Outcome GetVisualServiceStatusOutcome; - typedef std::future GetVisualServiceStatusOutcomeCallable; - typedef std::function&)> GetVisualServiceStatusAsyncHandler; typedef Outcome RunCloudMetricProfilingOutcome; typedef std::future RunCloudMetricProfilingOutcomeCallable; typedef std::function&)> RunCloudMetricProfilingAsyncHandler; - typedef Outcome StartVisualServiceOutcome; - typedef std::future StartVisualServiceOutcomeCallable; - typedef std::function&)> StartVisualServiceAsyncHandler; typedef Outcome DescribePriceOutcome; typedef std::future DescribePriceOutcomeCallable; typedef std::function&)> DescribePriceAsyncHandler; @@ -456,21 +550,12 @@ namespace AlibabaCloud typedef Outcome AddContainerAppOutcome; typedef std::future AddContainerAppOutcomeCallable; typedef std::function&)> AddContainerAppAsyncHandler; - typedef Outcome InstallSoftwareOutcome; - typedef std::future InstallSoftwareOutcomeCallable; - typedef std::function&)> InstallSoftwareAsyncHandler; typedef Outcome ListClusterLogsOutcome; typedef std::future ListClusterLogsOutcomeCallable; typedef std::function&)> ListClusterLogsAsyncHandler; typedef Outcome RecoverClusterOutcome; typedef std::future RecoverClusterOutcomeCallable; typedef std::function&)> RecoverClusterAsyncHandler; - typedef Outcome ListAvailableEcsTypesOutcome; - typedef std::future ListAvailableEcsTypesOutcomeCallable; - typedef std::function&)> ListAvailableEcsTypesAsyncHandler; - typedef Outcome AddQueueOutcome; - typedef std::future AddQueueOutcomeCallable; - typedef std::function&)> AddQueueAsyncHandler; EHPCClient(const Credentials &credentials, const ClientConfiguration &configuration); EHPCClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -485,33 +570,174 @@ namespace AlibabaCloud DeleteUsersOutcome deleteUsers(const Model::DeleteUsersRequest &request)const; void deleteUsersAsync(const Model::DeleteUsersRequest& request, const DeleteUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUsersOutcomeCallable deleteUsersCallable(const Model::DeleteUsersRequest& request) const; + DeleteGWSClusterOutcome deleteGWSCluster(const Model::DeleteGWSClusterRequest &request)const; + void deleteGWSClusterAsync(const Model::DeleteGWSClusterRequest& request, const DeleteGWSClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGWSClusterOutcomeCallable deleteGWSClusterCallable(const Model::DeleteGWSClusterRequest& request) const; DescribeClusterOutcome describeCluster(const Model::DescribeClusterRequest &request)const; void describeClusterAsync(const Model::DescribeClusterRequest& request, const DescribeClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterOutcomeCallable describeClusterCallable(const Model::DescribeClusterRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; - StopNodesOutcome stopNodes(const Model::StopNodesRequest &request)const; - void stopNodesAsync(const Model::StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopNodesOutcomeCallable stopNodesCallable(const Model::StopNodesRequest& request) const; PullImageOutcome pullImage(const Model::PullImageRequest &request)const; void pullImageAsync(const Model::PullImageRequest& request, const PullImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PullImageOutcomeCallable pullImageCallable(const Model::PullImageRequest& request) const; + StopNodesOutcome stopNodes(const Model::StopNodesRequest &request)const; + void stopNodesAsync(const Model::StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopNodesOutcomeCallable stopNodesCallable(const Model::StopNodesRequest& request) const; DescribeContainerAppOutcome describeContainerApp(const Model::DescribeContainerAppRequest &request)const; void describeContainerAppAsync(const Model::DescribeContainerAppRequest& request, const DescribeContainerAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeContainerAppOutcomeCallable describeContainerAppCallable(const Model::DescribeContainerAppRequest& request) const; - ListCurrentClientVersionOutcome listCurrentClientVersion(const Model::ListCurrentClientVersionRequest &request)const; - void listCurrentClientVersionAsync(const Model::ListCurrentClientVersionRequest& request, const ListCurrentClientVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCurrentClientVersionOutcomeCallable listCurrentClientVersionCallable(const Model::ListCurrentClientVersionRequest& request) const; - UpdateClusterVolumesOutcome updateClusterVolumes(const Model::UpdateClusterVolumesRequest &request)const; - void updateClusterVolumesAsync(const Model::UpdateClusterVolumesRequest& request, const UpdateClusterVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateClusterVolumesOutcomeCallable updateClusterVolumesCallable(const Model::UpdateClusterVolumesRequest& request) const; ListNodesByQueueOutcome listNodesByQueue(const Model::ListNodesByQueueRequest &request)const; void listNodesByQueueAsync(const Model::ListNodesByQueueRequest& request, const ListNodesByQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNodesByQueueOutcomeCallable listNodesByQueueCallable(const Model::ListNodesByQueueRequest& request) const; ModifyContainerAppAttributesOutcome modifyContainerAppAttributes(const Model::ModifyContainerAppAttributesRequest &request)const; void modifyContainerAppAttributesAsync(const Model::ModifyContainerAppAttributesRequest& request, const ModifyContainerAppAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyContainerAppAttributesOutcomeCallable modifyContainerAppAttributesCallable(const Model::ModifyContainerAppAttributesRequest& request) const; + GetCloudMetricProfilingOutcome getCloudMetricProfiling(const Model::GetCloudMetricProfilingRequest &request)const; + void getCloudMetricProfilingAsync(const Model::GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCloudMetricProfilingOutcomeCallable getCloudMetricProfilingCallable(const Model::GetCloudMetricProfilingRequest& request) const; + DescribeImagePriceOutcome describeImagePrice(const Model::DescribeImagePriceRequest &request)const; + void describeImagePriceAsync(const Model::DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImagePriceOutcomeCallable describeImagePriceCallable(const Model::DescribeImagePriceRequest& request) const; + GetAutoScaleConfigOutcome getAutoScaleConfig(const Model::GetAutoScaleConfigRequest &request)const; + void getAutoScaleConfigAsync(const Model::GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAutoScaleConfigOutcomeCallable getAutoScaleConfigCallable(const Model::GetAutoScaleConfigRequest& request) const; + StopGWSInstanceOutcome stopGWSInstance(const Model::StopGWSInstanceRequest &request)const; + void stopGWSInstanceAsync(const Model::StopGWSInstanceRequest& request, const StopGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopGWSInstanceOutcomeCallable stopGWSInstanceCallable(const Model::StopGWSInstanceRequest& request) const; + ListNodesOutcome listNodes(const Model::ListNodesRequest &request)const; + void listNodesAsync(const Model::ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNodesOutcomeCallable listNodesCallable(const Model::ListNodesRequest& request) const; + InstallNFSClientOutcome installNFSClient(const Model::InstallNFSClientRequest &request)const; + void installNFSClientAsync(const Model::InstallNFSClientRequest& request, const InstallNFSClientAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InstallNFSClientOutcomeCallable installNFSClientCallable(const Model::InstallNFSClientRequest& request) const; + ListCommandsOutcome listCommands(const Model::ListCommandsRequest &request)const; + void listCommandsAsync(const Model::ListCommandsRequest& request, const ListCommandsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCommandsOutcomeCallable listCommandsCallable(const Model::ListCommandsRequest& request) const; + InvokeShellCommandOutcome invokeShellCommand(const Model::InvokeShellCommandRequest &request)const; + void invokeShellCommandAsync(const Model::InvokeShellCommandRequest& request, const InvokeShellCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InvokeShellCommandOutcomeCallable invokeShellCommandCallable(const Model::InvokeShellCommandRequest& request) const; + CreateGWSImageOutcome createGWSImage(const Model::CreateGWSImageRequest &request)const; + void createGWSImageAsync(const Model::CreateGWSImageRequest& request, const CreateGWSImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGWSImageOutcomeCallable createGWSImageCallable(const Model::CreateGWSImageRequest& request) const; + ListFileSystemWithMountTargetsOutcome listFileSystemWithMountTargets(const Model::ListFileSystemWithMountTargetsRequest &request)const; + void listFileSystemWithMountTargetsAsync(const Model::ListFileSystemWithMountTargetsRequest& request, const ListFileSystemWithMountTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFileSystemWithMountTargetsOutcomeCallable listFileSystemWithMountTargetsCallable(const Model::ListFileSystemWithMountTargetsRequest& request) const; + ModifyClusterAttributesOutcome modifyClusterAttributes(const Model::ModifyClusterAttributesRequest &request)const; + void modifyClusterAttributesAsync(const Model::ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterAttributesOutcomeCallable modifyClusterAttributesCallable(const Model::ModifyClusterAttributesRequest& request) const; + DeleteJobTemplatesOutcome deleteJobTemplates(const Model::DeleteJobTemplatesRequest &request)const; + void deleteJobTemplatesAsync(const Model::DeleteJobTemplatesRequest& request, const DeleteJobTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteJobTemplatesOutcomeCallable deleteJobTemplatesCallable(const Model::DeleteJobTemplatesRequest& request) const; + GetCloudMetricLogsOutcome getCloudMetricLogs(const Model::GetCloudMetricLogsRequest &request)const; + void getCloudMetricLogsAsync(const Model::GetCloudMetricLogsRequest& request, const GetCloudMetricLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCloudMetricLogsOutcomeCallable getCloudMetricLogsCallable(const Model::GetCloudMetricLogsRequest& request) const; + GetHybridClusterConfigOutcome getHybridClusterConfig(const Model::GetHybridClusterConfigRequest &request)const; + void getHybridClusterConfigAsync(const Model::GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHybridClusterConfigOutcomeCallable getHybridClusterConfigCallable(const Model::GetHybridClusterConfigRequest& request) const; + CreateJobTemplateOutcome createJobTemplate(const Model::CreateJobTemplateRequest &request)const; + void createJobTemplateAsync(const Model::CreateJobTemplateRequest& request, const CreateJobTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobTemplateOutcomeCallable createJobTemplateCallable(const Model::CreateJobTemplateRequest& request) const; + DescribeGWSInstancesOutcome describeGWSInstances(const Model::DescribeGWSInstancesRequest &request)const; + void describeGWSInstancesAsync(const Model::DescribeGWSInstancesRequest& request, const DescribeGWSInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGWSInstancesOutcomeCallable describeGWSInstancesCallable(const Model::DescribeGWSInstancesRequest& request) const; + ResetNodesOutcome resetNodes(const Model::ResetNodesRequest &request)const; + void resetNodesAsync(const Model::ResetNodesRequest& request, const ResetNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetNodesOutcomeCallable resetNodesCallable(const Model::ResetNodesRequest& request) const; + UninstallSoftwareOutcome uninstallSoftware(const Model::UninstallSoftwareRequest &request)const; + void uninstallSoftwareAsync(const Model::UninstallSoftwareRequest& request, const UninstallSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UninstallSoftwareOutcomeCallable uninstallSoftwareCallable(const Model::UninstallSoftwareRequest& request) const; + DescribeGWSClustersOutcome describeGWSClusters(const Model::DescribeGWSClustersRequest &request)const; + void describeGWSClustersAsync(const Model::DescribeGWSClustersRequest& request, const DescribeGWSClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGWSClustersOutcomeCallable describeGWSClustersCallable(const Model::DescribeGWSClustersRequest& request) const; + DeleteJobsOutcome deleteJobs(const Model::DeleteJobsRequest &request)const; + void deleteJobsAsync(const Model::DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteJobsOutcomeCallable deleteJobsCallable(const Model::DeleteJobsRequest& request) const; + ListContainerImagesOutcome listContainerImages(const Model::ListContainerImagesRequest &request)const; + void listContainerImagesAsync(const Model::ListContainerImagesRequest& request, const ListContainerImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListContainerImagesOutcomeCallable listContainerImagesCallable(const Model::ListContainerImagesRequest& request) const; + DeleteNodesOutcome deleteNodes(const Model::DeleteNodesRequest &request)const; + void deleteNodesAsync(const Model::DeleteNodesRequest& request, const DeleteNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNodesOutcomeCallable deleteNodesCallable(const Model::DeleteNodesRequest& request) const; + ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; + void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const; + ListCpfsFileSystemsOutcome listCpfsFileSystems(const Model::ListCpfsFileSystemsRequest &request)const; + void listCpfsFileSystemsAsync(const Model::ListCpfsFileSystemsRequest& request, const ListCpfsFileSystemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCpfsFileSystemsOutcomeCallable listCpfsFileSystemsCallable(const Model::ListCpfsFileSystemsRequest& request) const; + ListAvailableFileSystemTypesOutcome listAvailableFileSystemTypes(const Model::ListAvailableFileSystemTypesRequest &request)const; + void listAvailableFileSystemTypesAsync(const Model::ListAvailableFileSystemTypesRequest& request, const ListAvailableFileSystemTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAvailableFileSystemTypesOutcomeCallable listAvailableFileSystemTypesCallable(const Model::ListAvailableFileSystemTypesRequest& request) const; + ListClustersMetaOutcome listClustersMeta(const Model::ListClustersMetaRequest &request)const; + void listClustersMetaAsync(const Model::ListClustersMetaRequest& request, const ListClustersMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClustersMetaOutcomeCallable listClustersMetaCallable(const Model::ListClustersMetaRequest& request) const; + QueryServicePackAndPriceOutcome queryServicePackAndPrice(const Model::QueryServicePackAndPriceRequest &request)const; + void queryServicePackAndPriceAsync(const Model::QueryServicePackAndPriceRequest& request, const QueryServicePackAndPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryServicePackAndPriceOutcomeCallable queryServicePackAndPriceCallable(const Model::QueryServicePackAndPriceRequest& request) const; + ListVolumesOutcome listVolumes(const Model::ListVolumesRequest &request)const; + void listVolumesAsync(const Model::ListVolumesRequest& request, const ListVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVolumesOutcomeCallable listVolumesCallable(const Model::ListVolumesRequest& request) const; + DeleteContainerAppsOutcome deleteContainerApps(const Model::DeleteContainerAppsRequest &request)const; + void deleteContainerAppsAsync(const Model::DeleteContainerAppsRequest& request, const DeleteContainerAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContainerAppsOutcomeCallable deleteContainerAppsCallable(const Model::DeleteContainerAppsRequest& request) const; + ModifyImageGatewayConfigOutcome modifyImageGatewayConfig(const Model::ModifyImageGatewayConfigRequest &request)const; + void modifyImageGatewayConfigAsync(const Model::ModifyImageGatewayConfigRequest& request, const ModifyImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyImageGatewayConfigOutcomeCallable modifyImageGatewayConfigCallable(const Model::ModifyImageGatewayConfigRequest& request) const; + ListInvocationStatusOutcome listInvocationStatus(const Model::ListInvocationStatusRequest &request)const; + void listInvocationStatusAsync(const Model::ListInvocationStatusRequest& request, const ListInvocationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInvocationStatusOutcomeCallable listInvocationStatusCallable(const Model::ListInvocationStatusRequest& request) const; + ListContainerAppsOutcome listContainerApps(const Model::ListContainerAppsRequest &request)const; + void listContainerAppsAsync(const Model::ListContainerAppsRequest& request, const ListContainerAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListContainerAppsOutcomeCallable listContainerAppsCallable(const Model::ListContainerAppsRequest& request) const; + DescribeNFSClientStatusOutcome describeNFSClientStatus(const Model::DescribeNFSClientStatusRequest &request)const; + void describeNFSClientStatusAsync(const Model::DescribeNFSClientStatusRequest& request, const DescribeNFSClientStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNFSClientStatusOutcomeCallable describeNFSClientStatusCallable(const Model::DescribeNFSClientStatusRequest& 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; + SubmitJobOutcome submitJob(const Model::SubmitJobRequest &request)const; + void submitJobAsync(const Model::SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitJobOutcomeCallable submitJobCallable(const Model::SubmitJobRequest& request) const; + GetAccountingReportOutcome getAccountingReport(const Model::GetAccountingReportRequest &request)const; + void getAccountingReportAsync(const Model::GetAccountingReportRequest& request, const GetAccountingReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountingReportOutcomeCallable getAccountingReportCallable(const Model::GetAccountingReportRequest& request) const; + DescribeAutoScaleConfigOutcome describeAutoScaleConfig(const Model::DescribeAutoScaleConfigRequest &request)const; + void describeAutoScaleConfigAsync(const Model::DescribeAutoScaleConfigRequest& request, const DescribeAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoScaleConfigOutcomeCallable describeAutoScaleConfigCallable(const Model::DescribeAutoScaleConfigRequest& request) const; + GetVisualServiceStatusOutcome getVisualServiceStatus(const Model::GetVisualServiceStatusRequest &request)const; + void getVisualServiceStatusAsync(const Model::GetVisualServiceStatusRequest& request, const GetVisualServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVisualServiceStatusOutcomeCallable getVisualServiceStatusCallable(const Model::GetVisualServiceStatusRequest& request) const; + StartVisualServiceOutcome startVisualService(const Model::StartVisualServiceRequest &request)const; + void startVisualServiceAsync(const Model::StartVisualServiceRequest& request, const StartVisualServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartVisualServiceOutcomeCallable startVisualServiceCallable(const Model::StartVisualServiceRequest& request) const; + SetGWSInstanceUserOutcome setGWSInstanceUser(const Model::SetGWSInstanceUserRequest &request)const; + void setGWSInstanceUserAsync(const Model::SetGWSInstanceUserRequest& request, const SetGWSInstanceUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGWSInstanceUserOutcomeCallable setGWSInstanceUserCallable(const Model::SetGWSInstanceUserRequest& request) const; + InstallSoftwareOutcome installSoftware(const Model::InstallSoftwareRequest &request)const; + void installSoftwareAsync(const Model::InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InstallSoftwareOutcomeCallable installSoftwareCallable(const Model::InstallSoftwareRequest& request) const; + MountNFSOutcome mountNFS(const Model::MountNFSRequest &request)const; + void mountNFSAsync(const Model::MountNFSRequest& request, const MountNFSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MountNFSOutcomeCallable mountNFSCallable(const Model::MountNFSRequest& request) const; + ListAvailableEcsTypesOutcome listAvailableEcsTypes(const Model::ListAvailableEcsTypesRequest &request)const; + void listAvailableEcsTypesAsync(const Model::ListAvailableEcsTypesRequest& request, const ListAvailableEcsTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAvailableEcsTypesOutcomeCallable listAvailableEcsTypesCallable(const Model::ListAvailableEcsTypesRequest& request) const; + AddQueueOutcome addQueue(const Model::AddQueueRequest &request)const; + void addQueueAsync(const Model::AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddQueueOutcomeCallable addQueueCallable(const Model::AddQueueRequest& request) const; + CreateGWSInstanceOutcome createGWSInstance(const Model::CreateGWSInstanceRequest &request)const; + void createGWSInstanceAsync(const Model::CreateGWSInstanceRequest& request, const CreateGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGWSInstanceOutcomeCallable createGWSInstanceCallable(const Model::CreateGWSInstanceRequest& request) const; + UpdateClusterVolumesOutcome updateClusterVolumes(const Model::UpdateClusterVolumesRequest &request)const; + void updateClusterVolumesAsync(const Model::UpdateClusterVolumesRequest& request, const UpdateClusterVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateClusterVolumesOutcomeCallable updateClusterVolumesCallable(const Model::UpdateClusterVolumesRequest& request) const; + ListCurrentClientVersionOutcome listCurrentClientVersion(const Model::ListCurrentClientVersionRequest &request)const; + void listCurrentClientVersionAsync(const Model::ListCurrentClientVersionRequest& request, const ListCurrentClientVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCurrentClientVersionOutcomeCallable listCurrentClientVersionCallable(const Model::ListCurrentClientVersionRequest& request) const; + StartGWSInstanceOutcome startGWSInstance(const Model::StartGWSInstanceRequest &request)const; + void startGWSInstanceAsync(const Model::StartGWSInstanceRequest& request, const StartGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartGWSInstanceOutcomeCallable startGWSInstanceCallable(const Model::StartGWSInstanceRequest& request) const; ListInvocationResultsOutcome listInvocationResults(const Model::ListInvocationResultsRequest &request)const; void listInvocationResultsAsync(const Model::ListInvocationResultsRequest& request, const ListInvocationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInvocationResultsOutcomeCallable listInvocationResultsCallable(const Model::ListInvocationResultsRequest& request) const; @@ -524,24 +750,15 @@ namespace AlibabaCloud AddNodesOutcome addNodes(const Model::AddNodesRequest &request)const; void addNodesAsync(const Model::AddNodesRequest& request, const AddNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddNodesOutcomeCallable addNodesCallable(const Model::AddNodesRequest& request) const; + DescribeGWSImagesOutcome describeGWSImages(const Model::DescribeGWSImagesRequest &request)const; + void describeGWSImagesAsync(const Model::DescribeGWSImagesRequest& request, const DescribeGWSImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGWSImagesOutcomeCallable describeGWSImagesCallable(const Model::DescribeGWSImagesRequest& request) const; StopJobsOutcome stopJobs(const Model::StopJobsRequest &request)const; void stopJobsAsync(const Model::StopJobsRequest& request, const StopJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopJobsOutcomeCallable stopJobsCallable(const Model::StopJobsRequest& request) const; StartNodesOutcome startNodes(const Model::StartNodesRequest &request)const; void startNodesAsync(const Model::StartNodesRequest& request, const StartNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartNodesOutcomeCallable startNodesCallable(const Model::StartNodesRequest& request) const; - GetCloudMetricProfilingOutcome getCloudMetricProfiling(const Model::GetCloudMetricProfilingRequest &request)const; - void getCloudMetricProfilingAsync(const Model::GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCloudMetricProfilingOutcomeCallable getCloudMetricProfilingCallable(const Model::GetCloudMetricProfilingRequest& request) const; - GetAutoScaleConfigOutcome getAutoScaleConfig(const Model::GetAutoScaleConfigRequest &request)const; - void getAutoScaleConfigAsync(const Model::GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAutoScaleConfigOutcomeCallable getAutoScaleConfigCallable(const Model::GetAutoScaleConfigRequest& request) const; - DescribeImagePriceOutcome describeImagePrice(const Model::DescribeImagePriceRequest &request)const; - void describeImagePriceAsync(const Model::DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeImagePriceOutcomeCallable describeImagePriceCallable(const Model::DescribeImagePriceRequest& request) const; - ListNodesOutcome listNodes(const Model::ListNodesRequest &request)const; - void listNodesAsync(const Model::ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListNodesOutcomeCallable listNodesCallable(const Model::ListNodesRequest& request) const; ModifyUserGroupsOutcome modifyUserGroups(const Model::ModifyUserGroupsRequest &request)const; void modifyUserGroupsAsync(const Model::ModifyUserGroupsRequest& request, const ModifyUserGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyUserGroupsOutcomeCallable modifyUserGroupsCallable(const Model::ModifyUserGroupsRequest& request) const; @@ -551,72 +768,39 @@ namespace AlibabaCloud SetQueueOutcome setQueue(const Model::SetQueueRequest &request)const; void setQueueAsync(const Model::SetQueueRequest& request, const SetQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetQueueOutcomeCallable setQueueCallable(const Model::SetQueueRequest& request) const; - ListCommandsOutcome listCommands(const Model::ListCommandsRequest &request)const; - void listCommandsAsync(const Model::ListCommandsRequest& request, const ListCommandsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCommandsOutcomeCallable listCommandsCallable(const Model::ListCommandsRequest& request) const; ListCustomImagesOutcome listCustomImages(const Model::ListCustomImagesRequest &request)const; void listCustomImagesAsync(const Model::ListCustomImagesRequest& request, const ListCustomImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCustomImagesOutcomeCallable listCustomImagesCallable(const Model::ListCustomImagesRequest& request) const; - InvokeShellCommandOutcome invokeShellCommand(const Model::InvokeShellCommandRequest &request)const; - void invokeShellCommandAsync(const Model::InvokeShellCommandRequest& request, const InvokeShellCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InvokeShellCommandOutcomeCallable invokeShellCommandCallable(const Model::InvokeShellCommandRequest& request) const; - ListJobTemplatesOutcome listJobTemplates(const Model::ListJobTemplatesRequest &request)const; - void listJobTemplatesAsync(const Model::ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobTemplatesOutcomeCallable listJobTemplatesCallable(const Model::ListJobTemplatesRequest& request) const; - ListFileSystemWithMountTargetsOutcome listFileSystemWithMountTargets(const Model::ListFileSystemWithMountTargetsRequest &request)const; - void listFileSystemWithMountTargetsAsync(const Model::ListFileSystemWithMountTargetsRequest& request, const ListFileSystemWithMountTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFileSystemWithMountTargetsOutcomeCallable listFileSystemWithMountTargetsCallable(const Model::ListFileSystemWithMountTargetsRequest& request) const; AddUsersOutcome addUsers(const Model::AddUsersRequest &request)const; void addUsersAsync(const Model::AddUsersRequest& request, const AddUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddUsersOutcomeCallable addUsersCallable(const Model::AddUsersRequest& request) const; + ListJobTemplatesOutcome listJobTemplates(const Model::ListJobTemplatesRequest &request)const; + void listJobTemplatesAsync(const Model::ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobTemplatesOutcomeCallable listJobTemplatesCallable(const Model::ListJobTemplatesRequest& request) const; + CreateGWSClusterOutcome createGWSCluster(const Model::CreateGWSClusterRequest &request)const; + void createGWSClusterAsync(const Model::CreateGWSClusterRequest& request, const CreateGWSClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGWSClusterOutcomeCallable createGWSClusterCallable(const Model::CreateGWSClusterRequest& request) const; DescribeImageGatewayConfigOutcome describeImageGatewayConfig(const Model::DescribeImageGatewayConfigRequest &request)const; void describeImageGatewayConfigAsync(const Model::DescribeImageGatewayConfigRequest& request, const DescribeImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeImageGatewayConfigOutcomeCallable describeImageGatewayConfigCallable(const Model::DescribeImageGatewayConfigRequest& request) const; - ModifyClusterAttributesOutcome modifyClusterAttributes(const Model::ModifyClusterAttributesRequest &request)const; - void modifyClusterAttributesAsync(const Model::ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyClusterAttributesOutcomeCallable modifyClusterAttributesCallable(const Model::ModifyClusterAttributesRequest& request) const; - DeleteJobTemplatesOutcome deleteJobTemplates(const Model::DeleteJobTemplatesRequest &request)const; - void deleteJobTemplatesAsync(const Model::DeleteJobTemplatesRequest& request, const DeleteJobTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteJobTemplatesOutcomeCallable deleteJobTemplatesCallable(const Model::DeleteJobTemplatesRequest& request) const; + GetGWSConnectTicketOutcome getGWSConnectTicket(const Model::GetGWSConnectTicketRequest &request)const; + void getGWSConnectTicketAsync(const Model::GetGWSConnectTicketRequest& request, const GetGWSConnectTicketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGWSConnectTicketOutcomeCallable getGWSConnectTicketCallable(const Model::GetGWSConnectTicketRequest& request) const; StopClusterOutcome stopCluster(const Model::StopClusterRequest &request)const; void stopClusterAsync(const Model::StopClusterRequest& request, const StopClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopClusterOutcomeCallable stopClusterCallable(const Model::StopClusterRequest& request) const; ListNodesNoPagingOutcome listNodesNoPaging(const Model::ListNodesNoPagingRequest &request)const; void listNodesNoPagingAsync(const Model::ListNodesNoPagingRequest& request, const ListNodesNoPagingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNodesNoPagingOutcomeCallable listNodesNoPagingCallable(const Model::ListNodesNoPagingRequest& request) const; - GetCloudMetricLogsOutcome getCloudMetricLogs(const Model::GetCloudMetricLogsRequest &request)const; - void getCloudMetricLogsAsync(const Model::GetCloudMetricLogsRequest& request, const GetCloudMetricLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCloudMetricLogsOutcomeCallable getCloudMetricLogsCallable(const Model::GetCloudMetricLogsRequest& request) const; - CreateJobTemplateOutcome createJobTemplate(const Model::CreateJobTemplateRequest &request)const; - void createJobTemplateAsync(const Model::CreateJobTemplateRequest& request, const CreateJobTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateJobTemplateOutcomeCallable createJobTemplateCallable(const Model::CreateJobTemplateRequest& request) const; - GetHybridClusterConfigOutcome getHybridClusterConfig(const Model::GetHybridClusterConfigRequest &request)const; - void getHybridClusterConfigAsync(const Model::GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetHybridClusterConfigOutcomeCallable getHybridClusterConfigCallable(const Model::GetHybridClusterConfigRequest& request) const; - ResetNodesOutcome resetNodes(const Model::ResetNodesRequest &request)const; - void resetNodesAsync(const Model::ResetNodesRequest& request, const ResetNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResetNodesOutcomeCallable resetNodesCallable(const Model::ResetNodesRequest& request) const; - UninstallSoftwareOutcome uninstallSoftware(const Model::UninstallSoftwareRequest &request)const; - void uninstallSoftwareAsync(const Model::UninstallSoftwareRequest& request, const UninstallSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UninstallSoftwareOutcomeCallable uninstallSoftwareCallable(const Model::UninstallSoftwareRequest& request) const; CreateHybridClusterOutcome createHybridCluster(const Model::CreateHybridClusterRequest &request)const; void createHybridClusterAsync(const Model::CreateHybridClusterRequest& request, const CreateHybridClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateHybridClusterOutcomeCallable createHybridClusterCallable(const Model::CreateHybridClusterRequest& request) const; - ListContainerImagesOutcome listContainerImages(const Model::ListContainerImagesRequest &request)const; - void listContainerImagesAsync(const Model::ListContainerImagesRequest& request, const ListContainerImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListContainerImagesOutcomeCallable listContainerImagesCallable(const Model::ListContainerImagesRequest& request) const; - DeleteJobsOutcome deleteJobs(const Model::DeleteJobsRequest &request)const; - void deleteJobsAsync(const Model::DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteJobsOutcomeCallable deleteJobsCallable(const Model::DeleteJobsRequest& request) const; - DeleteNodesOutcome deleteNodes(const Model::DeleteNodesRequest &request)const; - void deleteNodesAsync(const Model::DeleteNodesRequest& request, const DeleteNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNodesOutcomeCallable deleteNodesCallable(const Model::DeleteNodesRequest& request) const; + UpdateQueueConfigOutcome updateQueueConfig(const Model::UpdateQueueConfigRequest &request)const; + void updateQueueConfigAsync(const Model::UpdateQueueConfigRequest& request, const UpdateQueueConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateQueueConfigOutcomeCallable updateQueueConfigCallable(const Model::UpdateQueueConfigRequest& request) const; StopVisualServiceOutcome stopVisualService(const Model::StopVisualServiceRequest &request)const; void stopVisualServiceAsync(const Model::StopVisualServiceRequest& request, const StopVisualServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopVisualServiceOutcomeCallable stopVisualServiceCallable(const Model::StopVisualServiceRequest& request) const; - ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; - void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& 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; @@ -629,42 +813,18 @@ namespace AlibabaCloud DeleteQueueOutcome deleteQueue(const Model::DeleteQueueRequest &request)const; void deleteQueueAsync(const Model::DeleteQueueRequest& request, const DeleteQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteQueueOutcomeCallable deleteQueueCallable(const Model::DeleteQueueRequest& request) const; - ListCpfsFileSystemsOutcome listCpfsFileSystems(const Model::ListCpfsFileSystemsRequest &request)const; - void listCpfsFileSystemsAsync(const Model::ListCpfsFileSystemsRequest& request, const ListCpfsFileSystemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCpfsFileSystemsOutcomeCallable listCpfsFileSystemsCallable(const Model::ListCpfsFileSystemsRequest& request) const; ListInstalledSoftwareOutcome listInstalledSoftware(const Model::ListInstalledSoftwareRequest &request)const; void listInstalledSoftwareAsync(const Model::ListInstalledSoftwareRequest& request, const ListInstalledSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInstalledSoftwareOutcomeCallable listInstalledSoftwareCallable(const Model::ListInstalledSoftwareRequest& request) const; UpgradeClientOutcome upgradeClient(const Model::UpgradeClientRequest &request)const; void upgradeClientAsync(const Model::UpgradeClientRequest& request, const UpgradeClientAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeClientOutcomeCallable upgradeClientCallable(const Model::UpgradeClientRequest& request) const; - ListAvailableFileSystemTypesOutcome listAvailableFileSystemTypes(const Model::ListAvailableFileSystemTypesRequest &request)const; - void listAvailableFileSystemTypesAsync(const Model::ListAvailableFileSystemTypesRequest& request, const ListAvailableFileSystemTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAvailableFileSystemTypesOutcomeCallable listAvailableFileSystemTypesCallable(const Model::ListAvailableFileSystemTypesRequest& request) const; - ListClustersMetaOutcome listClustersMeta(const Model::ListClustersMetaRequest &request)const; - void listClustersMetaAsync(const Model::ListClustersMetaRequest& request, const ListClustersMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClustersMetaOutcomeCallable listClustersMetaCallable(const Model::ListClustersMetaRequest& 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; ListImagesOutcome listImages(const Model::ListImagesRequest &request)const; void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const; - ListVolumesOutcome listVolumes(const Model::ListVolumesRequest &request)const; - void listVolumesAsync(const Model::ListVolumesRequest& request, const ListVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListVolumesOutcomeCallable listVolumesCallable(const Model::ListVolumesRequest& request) const; - DeleteContainerAppsOutcome deleteContainerApps(const Model::DeleteContainerAppsRequest &request)const; - void deleteContainerAppsAsync(const Model::DeleteContainerAppsRequest& request, const DeleteContainerAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteContainerAppsOutcomeCallable deleteContainerAppsCallable(const Model::DeleteContainerAppsRequest& request) const; - ListInvocationStatusOutcome listInvocationStatus(const Model::ListInvocationStatusRequest &request)const; - void listInvocationStatusAsync(const Model::ListInvocationStatusRequest& request, const ListInvocationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListInvocationStatusOutcomeCallable listInvocationStatusCallable(const Model::ListInvocationStatusRequest& request) const; - ModifyImageGatewayConfigOutcome modifyImageGatewayConfig(const Model::ModifyImageGatewayConfigRequest &request)const; - void modifyImageGatewayConfigAsync(const Model::ModifyImageGatewayConfigRequest& request, const ModifyImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyImageGatewayConfigOutcomeCallable modifyImageGatewayConfigCallable(const Model::ModifyImageGatewayConfigRequest& request) const; - ListContainerAppsOutcome listContainerApps(const Model::ListContainerAppsRequest &request)const; - void listContainerAppsAsync(const Model::ListContainerAppsRequest& request, const ListContainerAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListContainerAppsOutcomeCallable listContainerAppsCallable(const Model::ListContainerAppsRequest& request) const; ListQueuesOutcome listQueues(const Model::ListQueuesRequest &request)const; void listQueuesAsync(const Model::ListQueuesRequest& request, const ListQueuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListQueuesOutcomeCallable listQueuesCallable(const Model::ListQueuesRequest& request) const; @@ -680,30 +840,15 @@ namespace AlibabaCloud SetJobUserOutcome setJobUser(const Model::SetJobUserRequest &request)const; void setJobUserAsync(const Model::SetJobUserRequest& request, const SetJobUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetJobUserOutcomeCallable setJobUserCallable(const Model::SetJobUserRequest& 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; - SubmitJobOutcome submitJob(const Model::SubmitJobRequest &request)const; - void submitJobAsync(const Model::SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitJobOutcomeCallable submitJobCallable(const Model::SubmitJobRequest& request) const; - GetAccountingReportOutcome getAccountingReport(const Model::GetAccountingReportRequest &request)const; - void getAccountingReportAsync(const Model::GetAccountingReportRequest& request, const GetAccountingReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAccountingReportOutcomeCallable getAccountingReportCallable(const Model::GetAccountingReportRequest& request) const; + DeleteGWSInstanceOutcome deleteGWSInstance(const Model::DeleteGWSInstanceRequest &request)const; + void deleteGWSInstanceAsync(const Model::DeleteGWSInstanceRequest& request, const DeleteGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGWSInstanceOutcomeCallable deleteGWSInstanceCallable(const Model::DeleteGWSInstanceRequest& request) const; ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const; void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const; - DescribeAutoScaleConfigOutcome describeAutoScaleConfig(const Model::DescribeAutoScaleConfigRequest &request)const; - void describeAutoScaleConfigAsync(const Model::DescribeAutoScaleConfigRequest& request, const DescribeAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAutoScaleConfigOutcomeCallable describeAutoScaleConfigCallable(const Model::DescribeAutoScaleConfigRequest& request) const; - GetVisualServiceStatusOutcome getVisualServiceStatus(const Model::GetVisualServiceStatusRequest &request)const; - void getVisualServiceStatusAsync(const Model::GetVisualServiceStatusRequest& request, const GetVisualServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetVisualServiceStatusOutcomeCallable getVisualServiceStatusCallable(const Model::GetVisualServiceStatusRequest& request) const; RunCloudMetricProfilingOutcome runCloudMetricProfiling(const Model::RunCloudMetricProfilingRequest &request)const; void runCloudMetricProfilingAsync(const Model::RunCloudMetricProfilingRequest& request, const RunCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RunCloudMetricProfilingOutcomeCallable runCloudMetricProfilingCallable(const Model::RunCloudMetricProfilingRequest& request) const; - StartVisualServiceOutcome startVisualService(const Model::StartVisualServiceRequest &request)const; - void startVisualServiceAsync(const Model::StartVisualServiceRequest& request, const StartVisualServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartVisualServiceOutcomeCallable startVisualServiceCallable(const Model::StartVisualServiceRequest& request) const; DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const; void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const; @@ -725,21 +870,12 @@ namespace AlibabaCloud AddContainerAppOutcome addContainerApp(const Model::AddContainerAppRequest &request)const; void addContainerAppAsync(const Model::AddContainerAppRequest& request, const AddContainerAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddContainerAppOutcomeCallable addContainerAppCallable(const Model::AddContainerAppRequest& request) const; - InstallSoftwareOutcome installSoftware(const Model::InstallSoftwareRequest &request)const; - void installSoftwareAsync(const Model::InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InstallSoftwareOutcomeCallable installSoftwareCallable(const Model::InstallSoftwareRequest& request) const; ListClusterLogsOutcome listClusterLogs(const Model::ListClusterLogsRequest &request)const; void listClusterLogsAsync(const Model::ListClusterLogsRequest& request, const ListClusterLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterLogsOutcomeCallable listClusterLogsCallable(const Model::ListClusterLogsRequest& request) const; RecoverClusterOutcome recoverCluster(const Model::RecoverClusterRequest &request)const; void recoverClusterAsync(const Model::RecoverClusterRequest& request, const RecoverClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RecoverClusterOutcomeCallable recoverClusterCallable(const Model::RecoverClusterRequest& request) const; - ListAvailableEcsTypesOutcome listAvailableEcsTypes(const Model::ListAvailableEcsTypesRequest &request)const; - void listAvailableEcsTypesAsync(const Model::ListAvailableEcsTypesRequest& request, const ListAvailableEcsTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAvailableEcsTypesOutcomeCallable listAvailableEcsTypesCallable(const Model::ListAvailableEcsTypesRequest& request) const; - AddQueueOutcome addQueue(const Model::AddQueueRequest &request)const; - void addQueueAsync(const Model::AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddQueueOutcomeCallable addQueueCallable(const Model::AddQueueRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h index cf1f01a7f..e282d4dc5 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getImageOwnerAlias()const; void setImageOwnerAlias(const std::string& imageOwnerAlias); + std::string getSystemDiskType()const; + void setSystemDiskType(const std::string& systemDiskType); std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); std::string getPeriodUnit()const; @@ -82,6 +84,7 @@ namespace AlibabaCloud std::string jobQueue_; std::string accessKeyId_; std::string imageOwnerAlias_; + std::string systemDiskType_; std::string vSwitchId_; std::string periodUnit_; std::string autoRenew_; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h index 39e6cb542..b1534112c 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h @@ -88,6 +88,8 @@ namespace AlibabaCloud void setVolumeType(const std::string& volumeType); std::string getDeployMode()const; void setDeployMode(const std::string& deployMode); + std::string getSystemDiskType()const; + void setSystemDiskType(const std::string& systemDiskType); int getEcsOrderManagerCount()const; void setEcsOrderManagerCount(int ecsOrderManagerCount); std::string getResourceGroupId()const; @@ -166,6 +168,7 @@ namespace AlibabaCloud std::string imageOwnerAlias_; std::string volumeType_; std::string deployMode_; + std::string systemDiskType_; int ecsOrderManagerCount_; std::string resourceGroupId_; std::string password_; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h new file mode 100644 index 000000000..98849fe8a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.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_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSClusterRequest : public RpcServiceRequest + { + + public: + CreateGWSClusterRequest(); + ~CreateGWSClusterRequest(); + + std::string getClusterType()const; + void setClusterType(const std::string& clusterType); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getName()const; + void setName(const std::string& name); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string clusterType_; + std::string vpcId_; + std::string name_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h new file mode 100644 index 000000000..e3d439201 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.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_EHPC_MODEL_CREATEGWSCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSClusterResult : public ServiceResult + { + public: + + + CreateGWSClusterResult(); + explicit CreateGWSClusterResult(const std::string &payload); + ~CreateGWSClusterResult(); + std::string getClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.h new file mode 100644 index 000000000..8c54de972 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.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_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSImageRequest : public RpcServiceRequest + { + + public: + CreateGWSImageRequest(); + ~CreateGWSImageRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getName()const; + void setName(const std::string& name); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string name_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h new file mode 100644 index 000000000..ce77bb535 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.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_EHPC_MODEL_CREATEGWSIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSImageResult : public ServiceResult + { + public: + + + CreateGWSImageResult(); + explicit CreateGWSImageResult(const std::string &payload); + ~CreateGWSImageResult(); + std::string getImageId()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h new file mode 100644 index 000000000..ff93153dd --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSInstanceRequest : public RpcServiceRequest + { + + public: + CreateGWSInstanceRequest(); + ~CreateGWSInstanceRequest(); + + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getImageId()const; + void setImageId(const std::string& imageId); + bool getAllocatePublicAddress()const; + void setAllocatePublicAddress(bool allocatePublicAddress); + std::string getAppList()const; + void setAppList(const std::string& appList); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getWorkMode()const; + void setWorkMode(const std::string& workMode); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPeriodUnit()const; + void setPeriodUnit(const std::string& periodUnit); + bool getAutoRenew()const; + void setAutoRenew(bool autoRenew); + std::string getSystemDiskCategory()const; + void setSystemDiskCategory(const std::string& systemDiskCategory); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + int getSystemDiskSize()const; + void setSystemDiskSize(int systemDiskSize); + std::string getName()const; + void setName(const std::string& name); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + int getInternetMaxBandwidthIn()const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + + private: + std::string period_; + std::string imageId_; + bool allocatePublicAddress_; + std::string appList_; + int internetMaxBandwidthOut_; + std::string clusterId_; + std::string workMode_; + std::string accessKeyId_; + std::string periodUnit_; + bool autoRenew_; + std::string systemDiskCategory_; + std::string internetChargeType_; + int systemDiskSize_; + std::string name_; + std::string instanceType_; + std::string instanceChargeType_; + int internetMaxBandwidthIn_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h new file mode 100644 index 000000000..4998e54b1 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.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_EHPC_MODEL_CREATEGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSInstanceResult : public ServiceResult + { + public: + + + CreateGWSInstanceResult(); + explicit CreateGWSInstanceResult(const std::string &payload); + ~CreateGWSInstanceResult(); + std::string getInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h index e0b6bd149..1d209b2e1 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h @@ -35,6 +35,14 @@ namespace AlibabaCloud std::string args; std::string url; }; + struct Nodes + { + std::string ipAddress; + std::string hostName; + std::string role; + std::string accountType; + std::string schedulerType; + }; struct Application { std::string tag; @@ -86,8 +94,8 @@ namespace AlibabaCloud void setPostInstallScript(const std::vector& postInstallScript); std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); - std::string getNodes()const; - void setNodes(const std::string& nodes); + std::vector getNodes()const; + void setNodes(const std::vector& nodes); std::vector getApplication()const; void setApplication(const std::vector& application); std::string getDomain()const; @@ -102,6 +110,8 @@ namespace AlibabaCloud void setVolumeMountpoint(const std::string& volumeMountpoint); std::string getZoneId()const; void setZoneId(const std::string& zoneId); + bool getSchedulerPreInstall()const; + void setSchedulerPreInstall(bool schedulerPreInstall); std::string getLocation()const; void setLocation(const std::string& location); @@ -127,7 +137,7 @@ namespace AlibabaCloud std::string remoteDirectory_; std::vector postInstallScript_; std::string vSwitchId_; - std::string nodes_; + std::vector nodes_; std::vector application_; std::string domain_; std::string vpcId_; @@ -135,6 +145,7 @@ namespace AlibabaCloud std::string volumeId_; std::string volumeMountpoint_; std::string zoneId_; + bool schedulerPreInstall_; std::string location_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h new file mode 100644 index 000000000..bbcd8bb0b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.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_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteGWSClusterRequest : public RpcServiceRequest + { + + public: + DeleteGWSClusterRequest(); + ~DeleteGWSClusterRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h new file mode 100644 index 000000000..3b34c2dd6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteGWSClusterResult : public ServiceResult + { + public: + + + DeleteGWSClusterResult(); + explicit DeleteGWSClusterResult(const std::string &payload); + ~DeleteGWSClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h new file mode 100644 index 000000000..e2d3dd8de --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.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_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteGWSInstanceRequest : public RpcServiceRequest + { + + public: + DeleteGWSInstanceRequest(); + ~DeleteGWSInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h new file mode 100644 index 000000000..4e505d7f5 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteGWSInstanceResult : public ServiceResult + { + public: + + + DeleteGWSInstanceResult(); + explicit DeleteGWSInstanceResult(const std::string &payload); + ~DeleteGWSInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h new file mode 100644 index 000000000..ee2cfe3c8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.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_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSClustersRequest : public RpcServiceRequest + { + + public: + DescribeGWSClustersRequest(); + ~DescribeGWSClustersRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int pageSize_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h new file mode 100644 index 000000000..fdfab592a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.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_EHPC_MODEL_DESCRIBEGWSCLUSTERSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSClustersResult : public ServiceResult + { + public: + struct ClusterInfo + { + std::string status; + int instanceCount; + std::string vpcId; + std::string clusterId; + std::string createTime; + }; + + + DescribeGWSClustersResult(); + explicit DescribeGWSClustersResult(const std::string &payload); + ~DescribeGWSClustersResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getClusters()const; + std::string getCallerType()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector clusters_; + std::string callerType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h new file mode 100644 index 000000000..277e68e1c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.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_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSImagesRequest : public RpcServiceRequest + { + + public: + DescribeGWSImagesRequest(); + ~DescribeGWSImagesRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h new file mode 100644 index 000000000..30700b2fb --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.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_EHPC_MODEL_DESCRIBEGWSIMAGESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSImagesResult : public ServiceResult + { + public: + struct ImageInfo + { + std::string status; + std::string progress; + int size; + std::string createTime; + std::string imageId; + std::string name; + std::string imageType; + }; + + + DescribeGWSImagesResult(); + explicit DescribeGWSImagesResult(const std::string &payload); + ~DescribeGWSImagesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getImages()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector images_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h new file mode 100644 index 000000000..2f08d4fc8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.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_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSInstancesRequest : public RpcServiceRequest + { + + public: + DescribeGWSInstancesRequest(); + ~DescribeGWSInstancesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h new file mode 100644 index 000000000..dd180eeb6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.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_EHPC_MODEL_DESCRIBEGWSINSTANCESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSInstancesResult : public ServiceResult + { + public: + struct InstanceInfo + { + struct AppInfo + { + std::string appArgs; + std::string appPath; + std::string appName; + }; + std::string status; + std::string userName; + std::string clusterId; + std::string instanceId; + std::string createTime; + std::string instanceType; + std::string expireTime; + std::vector appList; + std::string workMode; + std::string name; + }; + + + DescribeGWSInstancesResult(); + explicit DescribeGWSInstancesResult(const std::string &payload); + ~DescribeGWSInstancesResult(); + std::vector getInstances()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h new file mode 100644 index 000000000..1711c4a1a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.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_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeNFSClientStatusRequest : public RpcServiceRequest + { + + public: + DescribeNFSClientStatusRequest(); + ~DescribeNFSClientStatusRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h new file mode 100644 index 000000000..961061d0a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.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_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeNFSClientStatusResult : public ServiceResult + { + public: + struct Result + { + int exitCode; + std::string output; + std::string invokeRecordStatus; + }; + + + DescribeNFSClientStatusResult(); + explicit DescribeNFSClientStatusResult(const std::string &payload); + ~DescribeNFSClientStatusResult(); + std::string getStatus()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h index 68724e8ff..70105331f 100644 --- a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string instanceType; std::string spotStrategy; }; + std::string resourceGroupId; bool enableAutoGrow; float spotPriceLimit; std::vector instanceTypes; diff --git a/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h new file mode 100644 index 000000000..5d7607bfa --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.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_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetGWSConnectTicketRequest : public RpcServiceRequest + { + + public: + GetGWSConnectTicketRequest(); + ~GetGWSConnectTicketRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string appName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h new file mode 100644 index 000000000..f9233f2bc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.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_EHPC_MODEL_GETGWSCONNECTTICKETRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetGWSConnectTicketResult : public ServiceResult + { + public: + + + GetGWSConnectTicketResult(); + explicit GetGWSConnectTicketResult(const std::string &payload); + ~GetGWSConnectTicketResult(); + std::string getTicket()const; + + protected: + void parse(const std::string &payload); + private: + std::string ticket_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InstallNFSClientRequest.h b/ehpc/include/alibabacloud/ehpc/model/InstallNFSClientRequest.h new file mode 100644 index 000000000..27c26f6e5 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InstallNFSClientRequest.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_EHPC_MODEL_INSTALLNFSCLIENTREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_INSTALLNFSCLIENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT InstallNFSClientRequest : public RpcServiceRequest + { + + public: + InstallNFSClientRequest(); + ~InstallNFSClientRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_INSTALLNFSCLIENTREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InstallNFSClientResult.h b/ehpc/include/alibabacloud/ehpc/model/InstallNFSClientResult.h new file mode 100644 index 000000000..0e43bbc0f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InstallNFSClientResult.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_EHPC_MODEL_INSTALLNFSCLIENTRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_INSTALLNFSCLIENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT InstallNFSClientResult : public ServiceResult + { + public: + + + InstallNFSClientResult(); + explicit InstallNFSClientResult(const std::string &payload); + ~InstallNFSClientResult(); + std::string getInvokeId()const; + + protected: + void parse(const std::string &payload); + private: + std::string invokeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_INSTALLNFSCLIENTRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h index 83df957e1..acdc46c9a 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setSpotStrategy(const std::string& spotStrategy); std::string getZoneId()const; void setZoneId(const std::string& zoneId); + bool getShowSoldOut()const; + void setShowSoldOut(bool showSoldOut); std::string getInstanceChargeType()const; void setInstanceChargeType(const std::string& instanceChargeType); std::string getAccessKeyId()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: std::string spotStrategy_; std::string zoneId_; + bool showSoldOut_; std::string instanceChargeType_; std::string accessKeyId_; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h index 0f52f9a3a..fc653c109 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { struct TypesInfo { + std::string status; int memorySize; int instancePpsTx; int cpuCoreCount; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h index 0a55d82c1..ec664fd05 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string description; std::string id; std::string name; + std::string location; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h index c8671ad3d..f36050802 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h @@ -61,6 +61,7 @@ namespace AlibabaCloud TotalResources totalResources; std::string expiredTime; std::string imageId; + std::string ipAddress; std::string id; std::string regionId; std::string lockReason; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h index f44d08ff9..88f849ae1 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h @@ -35,7 +35,9 @@ namespace AlibabaCloud struct QueueInfo { std::string type; + std::string resourceGroupId; std::string queueName; + std::string computeInstanceType; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.h b/ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.h new file mode 100644 index 000000000..35344bc89 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.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_EHPC_MODEL_MOUNTNFSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MOUNTNFSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT MountNFSRequest : public RpcServiceRequest + { + + public: + MountNFSRequest(); + ~MountNFSRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getNfsDir()const; + void setNfsDir(const std::string& nfsDir); + std::string getMountDir()const; + void setMountDir(const std::string& mountDir); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string nfsDir_; + std::string mountDir_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_MOUNTNFSREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h b/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h new file mode 100644 index 000000000..d7af49fdc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.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_EHPC_MODEL_MOUNTNFSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_MOUNTNFSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT MountNFSResult : public ServiceResult + { + public: + + + MountNFSResult(); + explicit MountNFSResult(const std::string &payload); + ~MountNFSResult(); + std::string getInvokeId()const; + + protected: + void parse(const std::string &payload); + private: + std::string invokeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_MOUNTNFSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h new file mode 100644 index 000000000..d6e2dc0ac --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.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_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT QueryServicePackAndPriceRequest : public RpcServiceRequest + { + + public: + QueryServicePackAndPriceRequest(); + ~QueryServicePackAndPriceRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h new file mode 100644 index 000000000..870b22e7d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.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_EHPC_MODEL_QUERYSERVICEPACKANDPRICERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT QueryServicePackAndPriceResult : public ServiceResult + { + public: + struct ServicePackInfo + { + std::string instanceName; + int endTime; + int capacity; + int startTime; + }; + + + QueryServicePackAndPriceResult(); + explicit QueryServicePackAndPriceResult(const std::string &payload); + ~QueryServicePackAndPriceResult(); + float getOriginalPrice()const; + float getDiscountPrice()const; + std::string getCurrency()const; + std::vector getServicePack()const; + std::string getRegionId()const; + float getTradePrice()const; + int getOriginalAmount()const; + int getChargeAmount()const; + + protected: + void parse(const std::string &payload); + private: + float originalPrice_; + float discountPrice_; + std::string currency_; + std::vector servicePack_; + std::string regionId_; + float tradePrice_; + int originalAmount_; + int chargeAmount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h new file mode 100644 index 000000000..01e4fe571 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.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_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetGWSInstanceUserRequest : public RpcServiceRequest + { + + public: + SetGWSInstanceUserRequest(); + ~SetGWSInstanceUserRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserUid()const; + void setUserUid(const std::string& userUid); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string instanceId_; + std::string userUid_; + std::string accessKeyId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h new file mode 100644 index 000000000..1d3d2f7d6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetGWSInstanceUserResult : public ServiceResult + { + public: + + + SetGWSInstanceUserResult(); + explicit SetGWSInstanceUserResult(const std::string &payload); + ~SetGWSInstanceUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h new file mode 100644 index 000000000..8b4f670da --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.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_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StartGWSInstanceRequest : public RpcServiceRequest + { + + public: + StartGWSInstanceRequest(); + ~StartGWSInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h new file mode 100644 index 000000000..fd3f680cf --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StartGWSInstanceResult : public ServiceResult + { + public: + + + StartGWSInstanceResult(); + explicit StartGWSInstanceResult(const std::string &payload); + ~StartGWSInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h new file mode 100644 index 000000000..26de359c4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.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_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StopGWSInstanceRequest : public RpcServiceRequest + { + + public: + StopGWSInstanceRequest(); + ~StopGWSInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string instanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h new file mode 100644 index 000000000..e158989c8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StopGWSInstanceResult : public ServiceResult + { + public: + + + StopGWSInstanceResult(); + explicit StopGWSInstanceResult(const std::string &payload); + ~StopGWSInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h new file mode 100644 index 000000000..66f09f879 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.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_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT UpdateQueueConfigRequest : public RpcServiceRequest + { + + public: + UpdateQueueConfigRequest(); + ~UpdateQueueConfigRequest(); + + std::string getQueueName()const; + void setQueueName(const std::string& queueName); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getComputeInstanceType()const; + void setComputeInstanceType(const std::string& computeInstanceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string queueName_; + std::string resourceGroupId_; + std::string clusterId_; + std::string computeInstanceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h new file mode 100644 index 000000000..88cb5ed9e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT UpdateQueueConfigResult : public ServiceResult + { + public: + + + UpdateQueueConfigResult(); + explicit UpdateQueueConfigResult(const std::string &payload); + ~UpdateQueueConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGRESULT_H_ \ No newline at end of file diff --git a/ehpc/src/EHPCClient.cc b/ehpc/src/EHPCClient.cc index 9898a2d72..5214b708c 100644 --- a/ehpc/src/EHPCClient.cc +++ b/ehpc/src/EHPCClient.cc @@ -31,21 +31,21 @@ EHPCClient::EHPCClient(const Credentials &credentials, const ClientConfiguration RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ehs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ehpc"); } EHPCClient::EHPCClient(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, "ehs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ehpc"); } EHPCClient::EHPCClient(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, "ehs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ehpc"); } EHPCClient::~EHPCClient() @@ -159,6 +159,42 @@ EHPCClient::DeleteUsersOutcomeCallable EHPCClient::deleteUsersCallable(const Del return task->get_future(); } +EHPCClient::DeleteGWSClusterOutcome EHPCClient::deleteGWSCluster(const DeleteGWSClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGWSClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGWSClusterOutcome(DeleteGWSClusterResult(outcome.result())); + else + return DeleteGWSClusterOutcome(outcome.error()); +} + +void EHPCClient::deleteGWSClusterAsync(const DeleteGWSClusterRequest& request, const DeleteGWSClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGWSCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteGWSClusterOutcomeCallable EHPCClient::deleteGWSClusterCallable(const DeleteGWSClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGWSCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DescribeClusterOutcome EHPCClient::describeCluster(const DescribeClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,42 +267,6 @@ EHPCClient::ListUsersOutcomeCallable EHPCClient::listUsersCallable(const ListUse return task->get_future(); } -EHPCClient::StopNodesOutcome EHPCClient::stopNodes(const StopNodesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopNodesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopNodesOutcome(StopNodesResult(outcome.result())); - else - return StopNodesOutcome(outcome.error()); -} - -void EHPCClient::stopNodesAsync(const StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopNodes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::StopNodesOutcomeCallable EHPCClient::stopNodesCallable(const StopNodesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopNodes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::PullImageOutcome EHPCClient::pullImage(const PullImageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +303,42 @@ EHPCClient::PullImageOutcomeCallable EHPCClient::pullImageCallable(const PullIma return task->get_future(); } +EHPCClient::StopNodesOutcome EHPCClient::stopNodes(const StopNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopNodesOutcome(StopNodesResult(outcome.result())); + else + return StopNodesOutcome(outcome.error()); +} + +void EHPCClient::stopNodesAsync(const StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StopNodesOutcomeCallable EHPCClient::stopNodesCallable(const StopNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DescribeContainerAppOutcome EHPCClient::describeContainerApp(const DescribeContainerAppRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,78 +375,6 @@ EHPCClient::DescribeContainerAppOutcomeCallable EHPCClient::describeContainerApp return task->get_future(); } -EHPCClient::ListCurrentClientVersionOutcome EHPCClient::listCurrentClientVersion(const ListCurrentClientVersionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCurrentClientVersionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCurrentClientVersionOutcome(ListCurrentClientVersionResult(outcome.result())); - else - return ListCurrentClientVersionOutcome(outcome.error()); -} - -void EHPCClient::listCurrentClientVersionAsync(const ListCurrentClientVersionRequest& request, const ListCurrentClientVersionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCurrentClientVersion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListCurrentClientVersionOutcomeCallable EHPCClient::listCurrentClientVersionCallable(const ListCurrentClientVersionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCurrentClientVersion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::UpdateClusterVolumesOutcome EHPCClient::updateClusterVolumes(const UpdateClusterVolumesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateClusterVolumesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateClusterVolumesOutcome(UpdateClusterVolumesResult(outcome.result())); - else - return UpdateClusterVolumesOutcome(outcome.error()); -} - -void EHPCClient::updateClusterVolumesAsync(const UpdateClusterVolumesRequest& request, const UpdateClusterVolumesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateClusterVolumes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::UpdateClusterVolumesOutcomeCallable EHPCClient::updateClusterVolumesCallable(const UpdateClusterVolumesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateClusterVolumes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::ListNodesByQueueOutcome EHPCClient::listNodesByQueue(const ListNodesByQueueRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +447,1734 @@ EHPCClient::ModifyContainerAppAttributesOutcomeCallable EHPCClient::modifyContai return task->get_future(); } +EHPCClient::GetCloudMetricProfilingOutcome EHPCClient::getCloudMetricProfiling(const GetCloudMetricProfilingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCloudMetricProfilingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCloudMetricProfilingOutcome(GetCloudMetricProfilingResult(outcome.result())); + else + return GetCloudMetricProfilingOutcome(outcome.error()); +} + +void EHPCClient::getCloudMetricProfilingAsync(const GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCloudMetricProfiling(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetCloudMetricProfilingOutcomeCallable EHPCClient::getCloudMetricProfilingCallable(const GetCloudMetricProfilingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCloudMetricProfiling(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeImagePriceOutcome EHPCClient::describeImagePrice(const DescribeImagePriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImagePriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImagePriceOutcome(DescribeImagePriceResult(outcome.result())); + else + return DescribeImagePriceOutcome(outcome.error()); +} + +void EHPCClient::describeImagePriceAsync(const DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImagePrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeImagePriceOutcomeCallable EHPCClient::describeImagePriceCallable(const DescribeImagePriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImagePrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetAutoScaleConfigOutcome EHPCClient::getAutoScaleConfig(const GetAutoScaleConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAutoScaleConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAutoScaleConfigOutcome(GetAutoScaleConfigResult(outcome.result())); + else + return GetAutoScaleConfigOutcome(outcome.error()); +} + +void EHPCClient::getAutoScaleConfigAsync(const GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAutoScaleConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetAutoScaleConfigOutcomeCallable EHPCClient::getAutoScaleConfigCallable(const GetAutoScaleConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAutoScaleConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StopGWSInstanceOutcome EHPCClient::stopGWSInstance(const StopGWSInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopGWSInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopGWSInstanceOutcome(StopGWSInstanceResult(outcome.result())); + else + return StopGWSInstanceOutcome(outcome.error()); +} + +void EHPCClient::stopGWSInstanceAsync(const StopGWSInstanceRequest& request, const StopGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopGWSInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StopGWSInstanceOutcomeCallable EHPCClient::stopGWSInstanceCallable(const StopGWSInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopGWSInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListNodesOutcome EHPCClient::listNodes(const ListNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNodesOutcome(ListNodesResult(outcome.result())); + else + return ListNodesOutcome(outcome.error()); +} + +void EHPCClient::listNodesAsync(const ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListNodesOutcomeCallable EHPCClient::listNodesCallable(const ListNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::InstallNFSClientOutcome EHPCClient::installNFSClient(const InstallNFSClientRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InstallNFSClientOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InstallNFSClientOutcome(InstallNFSClientResult(outcome.result())); + else + return InstallNFSClientOutcome(outcome.error()); +} + +void EHPCClient::installNFSClientAsync(const InstallNFSClientRequest& request, const InstallNFSClientAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, installNFSClient(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::InstallNFSClientOutcomeCallable EHPCClient::installNFSClientCallable(const InstallNFSClientRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->installNFSClient(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListCommandsOutcome EHPCClient::listCommands(const ListCommandsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCommandsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCommandsOutcome(ListCommandsResult(outcome.result())); + else + return ListCommandsOutcome(outcome.error()); +} + +void EHPCClient::listCommandsAsync(const ListCommandsRequest& request, const ListCommandsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCommands(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListCommandsOutcomeCallable EHPCClient::listCommandsCallable(const ListCommandsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCommands(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::InvokeShellCommandOutcome EHPCClient::invokeShellCommand(const InvokeShellCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InvokeShellCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InvokeShellCommandOutcome(InvokeShellCommandResult(outcome.result())); + else + return InvokeShellCommandOutcome(outcome.error()); +} + +void EHPCClient::invokeShellCommandAsync(const InvokeShellCommandRequest& request, const InvokeShellCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, invokeShellCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::InvokeShellCommandOutcomeCallable EHPCClient::invokeShellCommandCallable(const InvokeShellCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->invokeShellCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateGWSImageOutcome EHPCClient::createGWSImage(const CreateGWSImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGWSImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGWSImageOutcome(CreateGWSImageResult(outcome.result())); + else + return CreateGWSImageOutcome(outcome.error()); +} + +void EHPCClient::createGWSImageAsync(const CreateGWSImageRequest& request, const CreateGWSImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGWSImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateGWSImageOutcomeCallable EHPCClient::createGWSImageCallable(const CreateGWSImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGWSImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListFileSystemWithMountTargetsOutcome EHPCClient::listFileSystemWithMountTargets(const ListFileSystemWithMountTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFileSystemWithMountTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFileSystemWithMountTargetsOutcome(ListFileSystemWithMountTargetsResult(outcome.result())); + else + return ListFileSystemWithMountTargetsOutcome(outcome.error()); +} + +void EHPCClient::listFileSystemWithMountTargetsAsync(const ListFileSystemWithMountTargetsRequest& request, const ListFileSystemWithMountTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFileSystemWithMountTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListFileSystemWithMountTargetsOutcomeCallable EHPCClient::listFileSystemWithMountTargetsCallable(const ListFileSystemWithMountTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFileSystemWithMountTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ModifyClusterAttributesOutcome EHPCClient::modifyClusterAttributes(const ModifyClusterAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterAttributesOutcome(ModifyClusterAttributesResult(outcome.result())); + else + return ModifyClusterAttributesOutcome(outcome.error()); +} + +void EHPCClient::modifyClusterAttributesAsync(const ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClusterAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ModifyClusterAttributesOutcomeCallable EHPCClient::modifyClusterAttributesCallable(const ModifyClusterAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClusterAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteJobTemplatesOutcome EHPCClient::deleteJobTemplates(const DeleteJobTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteJobTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteJobTemplatesOutcome(DeleteJobTemplatesResult(outcome.result())); + else + return DeleteJobTemplatesOutcome(outcome.error()); +} + +void EHPCClient::deleteJobTemplatesAsync(const DeleteJobTemplatesRequest& request, const DeleteJobTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteJobTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteJobTemplatesOutcomeCallable EHPCClient::deleteJobTemplatesCallable(const DeleteJobTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteJobTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetCloudMetricLogsOutcome EHPCClient::getCloudMetricLogs(const GetCloudMetricLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCloudMetricLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCloudMetricLogsOutcome(GetCloudMetricLogsResult(outcome.result())); + else + return GetCloudMetricLogsOutcome(outcome.error()); +} + +void EHPCClient::getCloudMetricLogsAsync(const GetCloudMetricLogsRequest& request, const GetCloudMetricLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCloudMetricLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetCloudMetricLogsOutcomeCallable EHPCClient::getCloudMetricLogsCallable(const GetCloudMetricLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCloudMetricLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetHybridClusterConfigOutcome EHPCClient::getHybridClusterConfig(const GetHybridClusterConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHybridClusterConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHybridClusterConfigOutcome(GetHybridClusterConfigResult(outcome.result())); + else + return GetHybridClusterConfigOutcome(outcome.error()); +} + +void EHPCClient::getHybridClusterConfigAsync(const GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHybridClusterConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetHybridClusterConfigOutcomeCallable EHPCClient::getHybridClusterConfigCallable(const GetHybridClusterConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHybridClusterConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateJobTemplateOutcome EHPCClient::createJobTemplate(const CreateJobTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobTemplateOutcome(CreateJobTemplateResult(outcome.result())); + else + return CreateJobTemplateOutcome(outcome.error()); +} + +void EHPCClient::createJobTemplateAsync(const CreateJobTemplateRequest& request, const CreateJobTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJobTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateJobTemplateOutcomeCallable EHPCClient::createJobTemplateCallable(const CreateJobTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJobTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeGWSInstancesOutcome EHPCClient::describeGWSInstances(const DescribeGWSInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGWSInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGWSInstancesOutcome(DescribeGWSInstancesResult(outcome.result())); + else + return DescribeGWSInstancesOutcome(outcome.error()); +} + +void EHPCClient::describeGWSInstancesAsync(const DescribeGWSInstancesRequest& request, const DescribeGWSInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGWSInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeGWSInstancesOutcomeCallable EHPCClient::describeGWSInstancesCallable(const DescribeGWSInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGWSInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ResetNodesOutcome EHPCClient::resetNodes(const ResetNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetNodesOutcome(ResetNodesResult(outcome.result())); + else + return ResetNodesOutcome(outcome.error()); +} + +void EHPCClient::resetNodesAsync(const ResetNodesRequest& request, const ResetNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ResetNodesOutcomeCallable EHPCClient::resetNodesCallable(const ResetNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::UninstallSoftwareOutcome EHPCClient::uninstallSoftware(const UninstallSoftwareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UninstallSoftwareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UninstallSoftwareOutcome(UninstallSoftwareResult(outcome.result())); + else + return UninstallSoftwareOutcome(outcome.error()); +} + +void EHPCClient::uninstallSoftwareAsync(const UninstallSoftwareRequest& request, const UninstallSoftwareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uninstallSoftware(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::UninstallSoftwareOutcomeCallable EHPCClient::uninstallSoftwareCallable(const UninstallSoftwareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uninstallSoftware(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeGWSClustersOutcome EHPCClient::describeGWSClusters(const DescribeGWSClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGWSClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGWSClustersOutcome(DescribeGWSClustersResult(outcome.result())); + else + return DescribeGWSClustersOutcome(outcome.error()); +} + +void EHPCClient::describeGWSClustersAsync(const DescribeGWSClustersRequest& request, const DescribeGWSClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGWSClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeGWSClustersOutcomeCallable EHPCClient::describeGWSClustersCallable(const DescribeGWSClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGWSClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteJobsOutcome EHPCClient::deleteJobs(const DeleteJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteJobsOutcome(DeleteJobsResult(outcome.result())); + else + return DeleteJobsOutcome(outcome.error()); +} + +void EHPCClient::deleteJobsAsync(const DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteJobsOutcomeCallable EHPCClient::deleteJobsCallable(const DeleteJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListContainerImagesOutcome EHPCClient::listContainerImages(const ListContainerImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListContainerImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListContainerImagesOutcome(ListContainerImagesResult(outcome.result())); + else + return ListContainerImagesOutcome(outcome.error()); +} + +void EHPCClient::listContainerImagesAsync(const ListContainerImagesRequest& request, const ListContainerImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listContainerImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListContainerImagesOutcomeCallable EHPCClient::listContainerImagesCallable(const ListContainerImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listContainerImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteNodesOutcome EHPCClient::deleteNodes(const DeleteNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNodesOutcome(DeleteNodesResult(outcome.result())); + else + return DeleteNodesOutcome(outcome.error()); +} + +void EHPCClient::deleteNodesAsync(const DeleteNodesRequest& request, const DeleteNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteNodesOutcomeCallable EHPCClient::deleteNodesCallable(const DeleteNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListJobsOutcome EHPCClient::listJobs(const ListJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobsOutcome(ListJobsResult(outcome.result())); + else + return ListJobsOutcome(outcome.error()); +} + +void EHPCClient::listJobsAsync(const ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListJobsOutcomeCallable EHPCClient::listJobsCallable(const ListJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListCpfsFileSystemsOutcome EHPCClient::listCpfsFileSystems(const ListCpfsFileSystemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCpfsFileSystemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCpfsFileSystemsOutcome(ListCpfsFileSystemsResult(outcome.result())); + else + return ListCpfsFileSystemsOutcome(outcome.error()); +} + +void EHPCClient::listCpfsFileSystemsAsync(const ListCpfsFileSystemsRequest& request, const ListCpfsFileSystemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCpfsFileSystems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListCpfsFileSystemsOutcomeCallable EHPCClient::listCpfsFileSystemsCallable(const ListCpfsFileSystemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCpfsFileSystems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListAvailableFileSystemTypesOutcome EHPCClient::listAvailableFileSystemTypes(const ListAvailableFileSystemTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAvailableFileSystemTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAvailableFileSystemTypesOutcome(ListAvailableFileSystemTypesResult(outcome.result())); + else + return ListAvailableFileSystemTypesOutcome(outcome.error()); +} + +void EHPCClient::listAvailableFileSystemTypesAsync(const ListAvailableFileSystemTypesRequest& request, const ListAvailableFileSystemTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAvailableFileSystemTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListAvailableFileSystemTypesOutcomeCallable EHPCClient::listAvailableFileSystemTypesCallable(const ListAvailableFileSystemTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAvailableFileSystemTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListClustersMetaOutcome EHPCClient::listClustersMeta(const ListClustersMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClustersMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClustersMetaOutcome(ListClustersMetaResult(outcome.result())); + else + return ListClustersMetaOutcome(outcome.error()); +} + +void EHPCClient::listClustersMetaAsync(const ListClustersMetaRequest& request, const ListClustersMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClustersMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListClustersMetaOutcomeCallable EHPCClient::listClustersMetaCallable(const ListClustersMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClustersMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::QueryServicePackAndPriceOutcome EHPCClient::queryServicePackAndPrice(const QueryServicePackAndPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryServicePackAndPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryServicePackAndPriceOutcome(QueryServicePackAndPriceResult(outcome.result())); + else + return QueryServicePackAndPriceOutcome(outcome.error()); +} + +void EHPCClient::queryServicePackAndPriceAsync(const QueryServicePackAndPriceRequest& request, const QueryServicePackAndPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryServicePackAndPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::QueryServicePackAndPriceOutcomeCallable EHPCClient::queryServicePackAndPriceCallable(const QueryServicePackAndPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryServicePackAndPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListVolumesOutcome EHPCClient::listVolumes(const ListVolumesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVolumesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVolumesOutcome(ListVolumesResult(outcome.result())); + else + return ListVolumesOutcome(outcome.error()); +} + +void EHPCClient::listVolumesAsync(const ListVolumesRequest& request, const ListVolumesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVolumes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListVolumesOutcomeCallable EHPCClient::listVolumesCallable(const ListVolumesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVolumes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteContainerAppsOutcome EHPCClient::deleteContainerApps(const DeleteContainerAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteContainerAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteContainerAppsOutcome(DeleteContainerAppsResult(outcome.result())); + else + return DeleteContainerAppsOutcome(outcome.error()); +} + +void EHPCClient::deleteContainerAppsAsync(const DeleteContainerAppsRequest& request, const DeleteContainerAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteContainerApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteContainerAppsOutcomeCallable EHPCClient::deleteContainerAppsCallable(const DeleteContainerAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteContainerApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ModifyImageGatewayConfigOutcome EHPCClient::modifyImageGatewayConfig(const ModifyImageGatewayConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyImageGatewayConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyImageGatewayConfigOutcome(ModifyImageGatewayConfigResult(outcome.result())); + else + return ModifyImageGatewayConfigOutcome(outcome.error()); +} + +void EHPCClient::modifyImageGatewayConfigAsync(const ModifyImageGatewayConfigRequest& request, const ModifyImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyImageGatewayConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ModifyImageGatewayConfigOutcomeCallable EHPCClient::modifyImageGatewayConfigCallable(const ModifyImageGatewayConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyImageGatewayConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListInvocationStatusOutcome EHPCClient::listInvocationStatus(const ListInvocationStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInvocationStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInvocationStatusOutcome(ListInvocationStatusResult(outcome.result())); + else + return ListInvocationStatusOutcome(outcome.error()); +} + +void EHPCClient::listInvocationStatusAsync(const ListInvocationStatusRequest& request, const ListInvocationStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInvocationStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListInvocationStatusOutcomeCallable EHPCClient::listInvocationStatusCallable(const ListInvocationStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInvocationStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListContainerAppsOutcome EHPCClient::listContainerApps(const ListContainerAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListContainerAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListContainerAppsOutcome(ListContainerAppsResult(outcome.result())); + else + return ListContainerAppsOutcome(outcome.error()); +} + +void EHPCClient::listContainerAppsAsync(const ListContainerAppsRequest& request, const ListContainerAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listContainerApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListContainerAppsOutcomeCallable EHPCClient::listContainerAppsCallable(const ListContainerAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listContainerApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeNFSClientStatusOutcome EHPCClient::describeNFSClientStatus(const DescribeNFSClientStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNFSClientStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNFSClientStatusOutcome(DescribeNFSClientStatusResult(outcome.result())); + else + return DescribeNFSClientStatusOutcome(outcome.error()); +} + +void EHPCClient::describeNFSClientStatusAsync(const DescribeNFSClientStatusRequest& request, const DescribeNFSClientStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNFSClientStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeNFSClientStatusOutcomeCallable EHPCClient::describeNFSClientStatusCallable(const DescribeNFSClientStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNFSClientStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListClustersOutcome EHPCClient::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 EHPCClient::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)); +} + +EHPCClient::ListClustersOutcomeCallable EHPCClient::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(); +} + +EHPCClient::SubmitJobOutcome EHPCClient::submitJob(const SubmitJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitJobOutcome(SubmitJobResult(outcome.result())); + else + return SubmitJobOutcome(outcome.error()); +} + +void EHPCClient::submitJobAsync(const SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SubmitJobOutcomeCallable EHPCClient::submitJobCallable(const SubmitJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetAccountingReportOutcome EHPCClient::getAccountingReport(const GetAccountingReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountingReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountingReportOutcome(GetAccountingReportResult(outcome.result())); + else + return GetAccountingReportOutcome(outcome.error()); +} + +void EHPCClient::getAccountingReportAsync(const GetAccountingReportRequest& request, const GetAccountingReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountingReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetAccountingReportOutcomeCallable EHPCClient::getAccountingReportCallable(const GetAccountingReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountingReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeAutoScaleConfigOutcome EHPCClient::describeAutoScaleConfig(const DescribeAutoScaleConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoScaleConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoScaleConfigOutcome(DescribeAutoScaleConfigResult(outcome.result())); + else + return DescribeAutoScaleConfigOutcome(outcome.error()); +} + +void EHPCClient::describeAutoScaleConfigAsync(const DescribeAutoScaleConfigRequest& request, const DescribeAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoScaleConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeAutoScaleConfigOutcomeCallable EHPCClient::describeAutoScaleConfigCallable(const DescribeAutoScaleConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoScaleConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetVisualServiceStatusOutcome EHPCClient::getVisualServiceStatus(const GetVisualServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVisualServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVisualServiceStatusOutcome(GetVisualServiceStatusResult(outcome.result())); + else + return GetVisualServiceStatusOutcome(outcome.error()); +} + +void EHPCClient::getVisualServiceStatusAsync(const GetVisualServiceStatusRequest& request, const GetVisualServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVisualServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetVisualServiceStatusOutcomeCallable EHPCClient::getVisualServiceStatusCallable(const GetVisualServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVisualServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StartVisualServiceOutcome EHPCClient::startVisualService(const StartVisualServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartVisualServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartVisualServiceOutcome(StartVisualServiceResult(outcome.result())); + else + return StartVisualServiceOutcome(outcome.error()); +} + +void EHPCClient::startVisualServiceAsync(const StartVisualServiceRequest& request, const StartVisualServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startVisualService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StartVisualServiceOutcomeCallable EHPCClient::startVisualServiceCallable(const StartVisualServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startVisualService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SetGWSInstanceUserOutcome EHPCClient::setGWSInstanceUser(const SetGWSInstanceUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGWSInstanceUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGWSInstanceUserOutcome(SetGWSInstanceUserResult(outcome.result())); + else + return SetGWSInstanceUserOutcome(outcome.error()); +} + +void EHPCClient::setGWSInstanceUserAsync(const SetGWSInstanceUserRequest& request, const SetGWSInstanceUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGWSInstanceUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SetGWSInstanceUserOutcomeCallable EHPCClient::setGWSInstanceUserCallable(const SetGWSInstanceUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGWSInstanceUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::InstallSoftwareOutcome EHPCClient::installSoftware(const InstallSoftwareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InstallSoftwareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InstallSoftwareOutcome(InstallSoftwareResult(outcome.result())); + else + return InstallSoftwareOutcome(outcome.error()); +} + +void EHPCClient::installSoftwareAsync(const InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, installSoftware(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::InstallSoftwareOutcomeCallable EHPCClient::installSoftwareCallable(const InstallSoftwareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->installSoftware(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::MountNFSOutcome EHPCClient::mountNFS(const MountNFSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MountNFSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MountNFSOutcome(MountNFSResult(outcome.result())); + else + return MountNFSOutcome(outcome.error()); +} + +void EHPCClient::mountNFSAsync(const MountNFSRequest& request, const MountNFSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mountNFS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::MountNFSOutcomeCallable EHPCClient::mountNFSCallable(const MountNFSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mountNFS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListAvailableEcsTypesOutcome EHPCClient::listAvailableEcsTypes(const ListAvailableEcsTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAvailableEcsTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAvailableEcsTypesOutcome(ListAvailableEcsTypesResult(outcome.result())); + else + return ListAvailableEcsTypesOutcome(outcome.error()); +} + +void EHPCClient::listAvailableEcsTypesAsync(const ListAvailableEcsTypesRequest& request, const ListAvailableEcsTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAvailableEcsTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListAvailableEcsTypesOutcomeCallable EHPCClient::listAvailableEcsTypesCallable(const ListAvailableEcsTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAvailableEcsTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::AddQueueOutcome EHPCClient::addQueue(const AddQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddQueueOutcome(AddQueueResult(outcome.result())); + else + return AddQueueOutcome(outcome.error()); +} + +void EHPCClient::addQueueAsync(const AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::AddQueueOutcomeCallable EHPCClient::addQueueCallable(const AddQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateGWSInstanceOutcome EHPCClient::createGWSInstance(const CreateGWSInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGWSInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGWSInstanceOutcome(CreateGWSInstanceResult(outcome.result())); + else + return CreateGWSInstanceOutcome(outcome.error()); +} + +void EHPCClient::createGWSInstanceAsync(const CreateGWSInstanceRequest& request, const CreateGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGWSInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateGWSInstanceOutcomeCallable EHPCClient::createGWSInstanceCallable(const CreateGWSInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGWSInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::UpdateClusterVolumesOutcome EHPCClient::updateClusterVolumes(const UpdateClusterVolumesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateClusterVolumesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateClusterVolumesOutcome(UpdateClusterVolumesResult(outcome.result())); + else + return UpdateClusterVolumesOutcome(outcome.error()); +} + +void EHPCClient::updateClusterVolumesAsync(const UpdateClusterVolumesRequest& request, const UpdateClusterVolumesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateClusterVolumes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::UpdateClusterVolumesOutcomeCallable EHPCClient::updateClusterVolumesCallable(const UpdateClusterVolumesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateClusterVolumes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListCurrentClientVersionOutcome EHPCClient::listCurrentClientVersion(const ListCurrentClientVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCurrentClientVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCurrentClientVersionOutcome(ListCurrentClientVersionResult(outcome.result())); + else + return ListCurrentClientVersionOutcome(outcome.error()); +} + +void EHPCClient::listCurrentClientVersionAsync(const ListCurrentClientVersionRequest& request, const ListCurrentClientVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCurrentClientVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListCurrentClientVersionOutcomeCallable EHPCClient::listCurrentClientVersionCallable(const ListCurrentClientVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCurrentClientVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StartGWSInstanceOutcome EHPCClient::startGWSInstance(const StartGWSInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartGWSInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartGWSInstanceOutcome(StartGWSInstanceResult(outcome.result())); + else + return StartGWSInstanceOutcome(outcome.error()); +} + +void EHPCClient::startGWSInstanceAsync(const StartGWSInstanceRequest& request, const StartGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startGWSInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StartGWSInstanceOutcomeCallable EHPCClient::startGWSInstanceCallable(const StartGWSInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startGWSInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListInvocationResultsOutcome EHPCClient::listInvocationResults(const ListInvocationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +2319,42 @@ EHPCClient::AddNodesOutcomeCallable EHPCClient::addNodesCallable(const AddNodesR return task->get_future(); } +EHPCClient::DescribeGWSImagesOutcome EHPCClient::describeGWSImages(const DescribeGWSImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGWSImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGWSImagesOutcome(DescribeGWSImagesResult(outcome.result())); + else + return DescribeGWSImagesOutcome(outcome.error()); +} + +void EHPCClient::describeGWSImagesAsync(const DescribeGWSImagesRequest& request, const DescribeGWSImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGWSImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeGWSImagesOutcomeCallable EHPCClient::describeGWSImagesCallable(const DescribeGWSImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGWSImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::StopJobsOutcome EHPCClient::stopJobs(const StopJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,150 +2427,6 @@ EHPCClient::StartNodesOutcomeCallable EHPCClient::startNodesCallable(const Start return task->get_future(); } -EHPCClient::GetCloudMetricProfilingOutcome EHPCClient::getCloudMetricProfiling(const GetCloudMetricProfilingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCloudMetricProfilingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCloudMetricProfilingOutcome(GetCloudMetricProfilingResult(outcome.result())); - else - return GetCloudMetricProfilingOutcome(outcome.error()); -} - -void EHPCClient::getCloudMetricProfilingAsync(const GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCloudMetricProfiling(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetCloudMetricProfilingOutcomeCallable EHPCClient::getCloudMetricProfilingCallable(const GetCloudMetricProfilingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCloudMetricProfiling(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::GetAutoScaleConfigOutcome EHPCClient::getAutoScaleConfig(const GetAutoScaleConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAutoScaleConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAutoScaleConfigOutcome(GetAutoScaleConfigResult(outcome.result())); - else - return GetAutoScaleConfigOutcome(outcome.error()); -} - -void EHPCClient::getAutoScaleConfigAsync(const GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAutoScaleConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetAutoScaleConfigOutcomeCallable EHPCClient::getAutoScaleConfigCallable(const GetAutoScaleConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAutoScaleConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::DescribeImagePriceOutcome EHPCClient::describeImagePrice(const DescribeImagePriceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeImagePriceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeImagePriceOutcome(DescribeImagePriceResult(outcome.result())); - else - return DescribeImagePriceOutcome(outcome.error()); -} - -void EHPCClient::describeImagePriceAsync(const DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeImagePrice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::DescribeImagePriceOutcomeCallable EHPCClient::describeImagePriceCallable(const DescribeImagePriceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeImagePrice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ListNodesOutcome EHPCClient::listNodes(const ListNodesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListNodesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListNodesOutcome(ListNodesResult(outcome.result())); - else - return ListNodesOutcome(outcome.error()); -} - -void EHPCClient::listNodesAsync(const ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listNodes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListNodesOutcomeCallable EHPCClient::listNodesCallable(const ListNodesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listNodes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::ModifyUserGroupsOutcome EHPCClient::modifyUserGroups(const ModifyUserGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,42 +2535,6 @@ EHPCClient::SetQueueOutcomeCallable EHPCClient::setQueueCallable(const SetQueueR return task->get_future(); } -EHPCClient::ListCommandsOutcome EHPCClient::listCommands(const ListCommandsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCommandsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCommandsOutcome(ListCommandsResult(outcome.result())); - else - return ListCommandsOutcome(outcome.error()); -} - -void EHPCClient::listCommandsAsync(const ListCommandsRequest& request, const ListCommandsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCommands(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListCommandsOutcomeCallable EHPCClient::listCommandsCallable(const ListCommandsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCommands(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::ListCustomImagesOutcome EHPCClient::listCustomImages(const ListCustomImagesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,114 +2571,6 @@ EHPCClient::ListCustomImagesOutcomeCallable EHPCClient::listCustomImagesCallable return task->get_future(); } -EHPCClient::InvokeShellCommandOutcome EHPCClient::invokeShellCommand(const InvokeShellCommandRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InvokeShellCommandOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InvokeShellCommandOutcome(InvokeShellCommandResult(outcome.result())); - else - return InvokeShellCommandOutcome(outcome.error()); -} - -void EHPCClient::invokeShellCommandAsync(const InvokeShellCommandRequest& request, const InvokeShellCommandAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, invokeShellCommand(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::InvokeShellCommandOutcomeCallable EHPCClient::invokeShellCommandCallable(const InvokeShellCommandRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->invokeShellCommand(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ListJobTemplatesOutcome EHPCClient::listJobTemplates(const ListJobTemplatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListJobTemplatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListJobTemplatesOutcome(ListJobTemplatesResult(outcome.result())); - else - return ListJobTemplatesOutcome(outcome.error()); -} - -void EHPCClient::listJobTemplatesAsync(const ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listJobTemplates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListJobTemplatesOutcomeCallable EHPCClient::listJobTemplatesCallable(const ListJobTemplatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listJobTemplates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ListFileSystemWithMountTargetsOutcome EHPCClient::listFileSystemWithMountTargets(const ListFileSystemWithMountTargetsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFileSystemWithMountTargetsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFileSystemWithMountTargetsOutcome(ListFileSystemWithMountTargetsResult(outcome.result())); - else - return ListFileSystemWithMountTargetsOutcome(outcome.error()); -} - -void EHPCClient::listFileSystemWithMountTargetsAsync(const ListFileSystemWithMountTargetsRequest& request, const ListFileSystemWithMountTargetsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFileSystemWithMountTargets(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListFileSystemWithMountTargetsOutcomeCallable EHPCClient::listFileSystemWithMountTargetsCallable(const ListFileSystemWithMountTargetsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFileSystemWithMountTargets(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::AddUsersOutcome EHPCClient::addUsers(const AddUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +2607,78 @@ EHPCClient::AddUsersOutcomeCallable EHPCClient::addUsersCallable(const AddUsersR return task->get_future(); } +EHPCClient::ListJobTemplatesOutcome EHPCClient::listJobTemplates(const ListJobTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobTemplatesOutcome(ListJobTemplatesResult(outcome.result())); + else + return ListJobTemplatesOutcome(outcome.error()); +} + +void EHPCClient::listJobTemplatesAsync(const ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListJobTemplatesOutcomeCallable EHPCClient::listJobTemplatesCallable(const ListJobTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateGWSClusterOutcome EHPCClient::createGWSCluster(const CreateGWSClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGWSClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGWSClusterOutcome(CreateGWSClusterResult(outcome.result())); + else + return CreateGWSClusterOutcome(outcome.error()); +} + +void EHPCClient::createGWSClusterAsync(const CreateGWSClusterRequest& request, const CreateGWSClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGWSCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateGWSClusterOutcomeCallable EHPCClient::createGWSClusterCallable(const CreateGWSClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGWSCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DescribeImageGatewayConfigOutcome EHPCClient::describeImageGatewayConfig(const DescribeImageGatewayConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,72 +2715,36 @@ EHPCClient::DescribeImageGatewayConfigOutcomeCallable EHPCClient::describeImageG return task->get_future(); } -EHPCClient::ModifyClusterAttributesOutcome EHPCClient::modifyClusterAttributes(const ModifyClusterAttributesRequest &request) const +EHPCClient::GetGWSConnectTicketOutcome EHPCClient::getGWSConnectTicket(const GetGWSConnectTicketRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyClusterAttributesOutcome(endpointOutcome.error()); + return GetGWSConnectTicketOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyClusterAttributesOutcome(ModifyClusterAttributesResult(outcome.result())); + return GetGWSConnectTicketOutcome(GetGWSConnectTicketResult(outcome.result())); else - return ModifyClusterAttributesOutcome(outcome.error()); + return GetGWSConnectTicketOutcome(outcome.error()); } -void EHPCClient::modifyClusterAttributesAsync(const ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr& context) const +void EHPCClient::getGWSConnectTicketAsync(const GetGWSConnectTicketRequest& request, const GetGWSConnectTicketAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyClusterAttributes(request), context); + handler(this, request, getGWSConnectTicket(request), context); }; asyncExecute(new Runnable(fn)); } -EHPCClient::ModifyClusterAttributesOutcomeCallable EHPCClient::modifyClusterAttributesCallable(const ModifyClusterAttributesRequest &request) const +EHPCClient::GetGWSConnectTicketOutcomeCallable EHPCClient::getGWSConnectTicketCallable(const GetGWSConnectTicketRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyClusterAttributes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::DeleteJobTemplatesOutcome EHPCClient::deleteJobTemplates(const DeleteJobTemplatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteJobTemplatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteJobTemplatesOutcome(DeleteJobTemplatesResult(outcome.result())); - else - return DeleteJobTemplatesOutcome(outcome.error()); -} - -void EHPCClient::deleteJobTemplatesAsync(const DeleteJobTemplatesRequest& request, const DeleteJobTemplatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteJobTemplates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::DeleteJobTemplatesOutcomeCallable EHPCClient::deleteJobTemplatesCallable(const DeleteJobTemplatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteJobTemplates(request); + return this->getGWSConnectTicket(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1347,186 +2823,6 @@ EHPCClient::ListNodesNoPagingOutcomeCallable EHPCClient::listNodesNoPagingCallab return task->get_future(); } -EHPCClient::GetCloudMetricLogsOutcome EHPCClient::getCloudMetricLogs(const GetCloudMetricLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCloudMetricLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCloudMetricLogsOutcome(GetCloudMetricLogsResult(outcome.result())); - else - return GetCloudMetricLogsOutcome(outcome.error()); -} - -void EHPCClient::getCloudMetricLogsAsync(const GetCloudMetricLogsRequest& request, const GetCloudMetricLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCloudMetricLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetCloudMetricLogsOutcomeCallable EHPCClient::getCloudMetricLogsCallable(const GetCloudMetricLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCloudMetricLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::CreateJobTemplateOutcome EHPCClient::createJobTemplate(const CreateJobTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateJobTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateJobTemplateOutcome(CreateJobTemplateResult(outcome.result())); - else - return CreateJobTemplateOutcome(outcome.error()); -} - -void EHPCClient::createJobTemplateAsync(const CreateJobTemplateRequest& request, const CreateJobTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createJobTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::CreateJobTemplateOutcomeCallable EHPCClient::createJobTemplateCallable(const CreateJobTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createJobTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::GetHybridClusterConfigOutcome EHPCClient::getHybridClusterConfig(const GetHybridClusterConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetHybridClusterConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetHybridClusterConfigOutcome(GetHybridClusterConfigResult(outcome.result())); - else - return GetHybridClusterConfigOutcome(outcome.error()); -} - -void EHPCClient::getHybridClusterConfigAsync(const GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getHybridClusterConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetHybridClusterConfigOutcomeCallable EHPCClient::getHybridClusterConfigCallable(const GetHybridClusterConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getHybridClusterConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ResetNodesOutcome EHPCClient::resetNodes(const ResetNodesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResetNodesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResetNodesOutcome(ResetNodesResult(outcome.result())); - else - return ResetNodesOutcome(outcome.error()); -} - -void EHPCClient::resetNodesAsync(const ResetNodesRequest& request, const ResetNodesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resetNodes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ResetNodesOutcomeCallable EHPCClient::resetNodesCallable(const ResetNodesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resetNodes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::UninstallSoftwareOutcome EHPCClient::uninstallSoftware(const UninstallSoftwareRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UninstallSoftwareOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UninstallSoftwareOutcome(UninstallSoftwareResult(outcome.result())); - else - return UninstallSoftwareOutcome(outcome.error()); -} - -void EHPCClient::uninstallSoftwareAsync(const UninstallSoftwareRequest& request, const UninstallSoftwareAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uninstallSoftware(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::UninstallSoftwareOutcomeCallable EHPCClient::uninstallSoftwareCallable(const UninstallSoftwareRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uninstallSoftware(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::CreateHybridClusterOutcome EHPCClient::createHybridCluster(const CreateHybridClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,108 +2859,36 @@ EHPCClient::CreateHybridClusterOutcomeCallable EHPCClient::createHybridClusterCa return task->get_future(); } -EHPCClient::ListContainerImagesOutcome EHPCClient::listContainerImages(const ListContainerImagesRequest &request) const +EHPCClient::UpdateQueueConfigOutcome EHPCClient::updateQueueConfig(const UpdateQueueConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListContainerImagesOutcome(endpointOutcome.error()); + return UpdateQueueConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListContainerImagesOutcome(ListContainerImagesResult(outcome.result())); + return UpdateQueueConfigOutcome(UpdateQueueConfigResult(outcome.result())); else - return ListContainerImagesOutcome(outcome.error()); + return UpdateQueueConfigOutcome(outcome.error()); } -void EHPCClient::listContainerImagesAsync(const ListContainerImagesRequest& request, const ListContainerImagesAsyncHandler& handler, const std::shared_ptr& context) const +void EHPCClient::updateQueueConfigAsync(const UpdateQueueConfigRequest& request, const UpdateQueueConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listContainerImages(request), context); + handler(this, request, updateQueueConfig(request), context); }; asyncExecute(new Runnable(fn)); } -EHPCClient::ListContainerImagesOutcomeCallable EHPCClient::listContainerImagesCallable(const ListContainerImagesRequest &request) const +EHPCClient::UpdateQueueConfigOutcomeCallable EHPCClient::updateQueueConfigCallable(const UpdateQueueConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listContainerImages(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::DeleteJobsOutcome EHPCClient::deleteJobs(const DeleteJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteJobsOutcome(DeleteJobsResult(outcome.result())); - else - return DeleteJobsOutcome(outcome.error()); -} - -void EHPCClient::deleteJobsAsync(const DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::DeleteJobsOutcomeCallable EHPCClient::deleteJobsCallable(const DeleteJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::DeleteNodesOutcome EHPCClient::deleteNodes(const DeleteNodesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteNodesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteNodesOutcome(DeleteNodesResult(outcome.result())); - else - return DeleteNodesOutcome(outcome.error()); -} - -void EHPCClient::deleteNodesAsync(const DeleteNodesRequest& request, const DeleteNodesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteNodes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::DeleteNodesOutcomeCallable EHPCClient::deleteNodesCallable(const DeleteNodesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteNodes(request); + return this->updateQueueConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1707,42 +2931,6 @@ EHPCClient::StopVisualServiceOutcomeCallable EHPCClient::stopVisualServiceCallab return task->get_future(); } -EHPCClient::ListJobsOutcome EHPCClient::listJobs(const ListJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListJobsOutcome(ListJobsResult(outcome.result())); - else - return ListJobsOutcome(outcome.error()); -} - -void EHPCClient::listJobsAsync(const ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListJobsOutcomeCallable EHPCClient::listJobsCallable(const ListJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::CreateClusterOutcome EHPCClient::createCluster(const CreateClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,42 +3075,6 @@ EHPCClient::DeleteQueueOutcomeCallable EHPCClient::deleteQueueCallable(const Del return task->get_future(); } -EHPCClient::ListCpfsFileSystemsOutcome EHPCClient::listCpfsFileSystems(const ListCpfsFileSystemsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCpfsFileSystemsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCpfsFileSystemsOutcome(ListCpfsFileSystemsResult(outcome.result())); - else - return ListCpfsFileSystemsOutcome(outcome.error()); -} - -void EHPCClient::listCpfsFileSystemsAsync(const ListCpfsFileSystemsRequest& request, const ListCpfsFileSystemsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCpfsFileSystems(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListCpfsFileSystemsOutcomeCallable EHPCClient::listCpfsFileSystemsCallable(const ListCpfsFileSystemsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCpfsFileSystems(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::ListInstalledSoftwareOutcome EHPCClient::listInstalledSoftware(const ListInstalledSoftwareRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,78 +3147,6 @@ EHPCClient::UpgradeClientOutcomeCallable EHPCClient::upgradeClientCallable(const return task->get_future(); } -EHPCClient::ListAvailableFileSystemTypesOutcome EHPCClient::listAvailableFileSystemTypes(const ListAvailableFileSystemTypesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAvailableFileSystemTypesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAvailableFileSystemTypesOutcome(ListAvailableFileSystemTypesResult(outcome.result())); - else - return ListAvailableFileSystemTypesOutcome(outcome.error()); -} - -void EHPCClient::listAvailableFileSystemTypesAsync(const ListAvailableFileSystemTypesRequest& request, const ListAvailableFileSystemTypesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAvailableFileSystemTypes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListAvailableFileSystemTypesOutcomeCallable EHPCClient::listAvailableFileSystemTypesCallable(const ListAvailableFileSystemTypesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAvailableFileSystemTypes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ListClustersMetaOutcome EHPCClient::listClustersMeta(const ListClustersMetaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListClustersMetaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListClustersMetaOutcome(ListClustersMetaResult(outcome.result())); - else - return ListClustersMetaOutcome(outcome.error()); -} - -void EHPCClient::listClustersMetaAsync(const ListClustersMetaRequest& request, const ListClustersMetaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listClustersMeta(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListClustersMetaOutcomeCallable EHPCClient::listClustersMetaCallable(const ListClustersMetaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listClustersMeta(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::DeleteClusterOutcome EHPCClient::deleteCluster(const DeleteClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,186 +3219,6 @@ EHPCClient::ListImagesOutcomeCallable EHPCClient::listImagesCallable(const ListI return task->get_future(); } -EHPCClient::ListVolumesOutcome EHPCClient::listVolumes(const ListVolumesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListVolumesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListVolumesOutcome(ListVolumesResult(outcome.result())); - else - return ListVolumesOutcome(outcome.error()); -} - -void EHPCClient::listVolumesAsync(const ListVolumesRequest& request, const ListVolumesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listVolumes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListVolumesOutcomeCallable EHPCClient::listVolumesCallable(const ListVolumesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listVolumes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::DeleteContainerAppsOutcome EHPCClient::deleteContainerApps(const DeleteContainerAppsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteContainerAppsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteContainerAppsOutcome(DeleteContainerAppsResult(outcome.result())); - else - return DeleteContainerAppsOutcome(outcome.error()); -} - -void EHPCClient::deleteContainerAppsAsync(const DeleteContainerAppsRequest& request, const DeleteContainerAppsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteContainerApps(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::DeleteContainerAppsOutcomeCallable EHPCClient::deleteContainerAppsCallable(const DeleteContainerAppsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteContainerApps(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ListInvocationStatusOutcome EHPCClient::listInvocationStatus(const ListInvocationStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListInvocationStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListInvocationStatusOutcome(ListInvocationStatusResult(outcome.result())); - else - return ListInvocationStatusOutcome(outcome.error()); -} - -void EHPCClient::listInvocationStatusAsync(const ListInvocationStatusRequest& request, const ListInvocationStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listInvocationStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListInvocationStatusOutcomeCallable EHPCClient::listInvocationStatusCallable(const ListInvocationStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listInvocationStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ModifyImageGatewayConfigOutcome EHPCClient::modifyImageGatewayConfig(const ModifyImageGatewayConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyImageGatewayConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyImageGatewayConfigOutcome(ModifyImageGatewayConfigResult(outcome.result())); - else - return ModifyImageGatewayConfigOutcome(outcome.error()); -} - -void EHPCClient::modifyImageGatewayConfigAsync(const ModifyImageGatewayConfigRequest& request, const ModifyImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyImageGatewayConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ModifyImageGatewayConfigOutcomeCallable EHPCClient::modifyImageGatewayConfigCallable(const ModifyImageGatewayConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyImageGatewayConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::ListContainerAppsOutcome EHPCClient::listContainerApps(const ListContainerAppsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListContainerAppsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListContainerAppsOutcome(ListContainerAppsResult(outcome.result())); - else - return ListContainerAppsOutcome(outcome.error()); -} - -void EHPCClient::listContainerAppsAsync(const ListContainerAppsRequest& request, const ListContainerAppsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listContainerApps(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListContainerAppsOutcomeCallable EHPCClient::listContainerAppsCallable(const ListContainerAppsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listContainerApps(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::ListQueuesOutcome EHPCClient::listQueues(const ListQueuesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,108 +3399,36 @@ EHPCClient::SetJobUserOutcomeCallable EHPCClient::setJobUserCallable(const SetJo return task->get_future(); } -EHPCClient::ListClustersOutcome EHPCClient::listClusters(const ListClustersRequest &request) const +EHPCClient::DeleteGWSInstanceOutcome EHPCClient::deleteGWSInstance(const DeleteGWSInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListClustersOutcome(endpointOutcome.error()); + return DeleteGWSInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListClustersOutcome(ListClustersResult(outcome.result())); + return DeleteGWSInstanceOutcome(DeleteGWSInstanceResult(outcome.result())); else - return ListClustersOutcome(outcome.error()); + return DeleteGWSInstanceOutcome(outcome.error()); } -void EHPCClient::listClustersAsync(const ListClustersRequest& request, const ListClustersAsyncHandler& handler, const std::shared_ptr& context) const +void EHPCClient::deleteGWSInstanceAsync(const DeleteGWSInstanceRequest& request, const DeleteGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listClusters(request), context); + handler(this, request, deleteGWSInstance(request), context); }; asyncExecute(new Runnable(fn)); } -EHPCClient::ListClustersOutcomeCallable EHPCClient::listClustersCallable(const ListClustersRequest &request) const +EHPCClient::DeleteGWSInstanceOutcomeCallable EHPCClient::deleteGWSInstanceCallable(const DeleteGWSInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listClusters(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::SubmitJobOutcome EHPCClient::submitJob(const SubmitJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitJobOutcome(SubmitJobResult(outcome.result())); - else - return SubmitJobOutcome(outcome.error()); -} - -void EHPCClient::submitJobAsync(const SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::SubmitJobOutcomeCallable EHPCClient::submitJobCallable(const SubmitJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::GetAccountingReportOutcome EHPCClient::getAccountingReport(const GetAccountingReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAccountingReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAccountingReportOutcome(GetAccountingReportResult(outcome.result())); - else - return GetAccountingReportOutcome(outcome.error()); -} - -void EHPCClient::getAccountingReportAsync(const GetAccountingReportRequest& request, const GetAccountingReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAccountingReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetAccountingReportOutcomeCallable EHPCClient::getAccountingReportCallable(const GetAccountingReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAccountingReport(request); + return this->deleteGWSInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2643,78 +3471,6 @@ EHPCClient::ListRegionsOutcomeCallable EHPCClient::listRegionsCallable(const Lis return task->get_future(); } -EHPCClient::DescribeAutoScaleConfigOutcome EHPCClient::describeAutoScaleConfig(const DescribeAutoScaleConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAutoScaleConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAutoScaleConfigOutcome(DescribeAutoScaleConfigResult(outcome.result())); - else - return DescribeAutoScaleConfigOutcome(outcome.error()); -} - -void EHPCClient::describeAutoScaleConfigAsync(const DescribeAutoScaleConfigRequest& request, const DescribeAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAutoScaleConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::DescribeAutoScaleConfigOutcomeCallable EHPCClient::describeAutoScaleConfigCallable(const DescribeAutoScaleConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAutoScaleConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::GetVisualServiceStatusOutcome EHPCClient::getVisualServiceStatus(const GetVisualServiceStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetVisualServiceStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetVisualServiceStatusOutcome(GetVisualServiceStatusResult(outcome.result())); - else - return GetVisualServiceStatusOutcome(outcome.error()); -} - -void EHPCClient::getVisualServiceStatusAsync(const GetVisualServiceStatusRequest& request, const GetVisualServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getVisualServiceStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::GetVisualServiceStatusOutcomeCallable EHPCClient::getVisualServiceStatusCallable(const GetVisualServiceStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getVisualServiceStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::RunCloudMetricProfilingOutcome EHPCClient::runCloudMetricProfiling(const RunCloudMetricProfilingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2751,42 +3507,6 @@ EHPCClient::RunCloudMetricProfilingOutcomeCallable EHPCClient::runCloudMetricPro return task->get_future(); } -EHPCClient::StartVisualServiceOutcome EHPCClient::startVisualService(const StartVisualServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StartVisualServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StartVisualServiceOutcome(StartVisualServiceResult(outcome.result())); - else - return StartVisualServiceOutcome(outcome.error()); -} - -void EHPCClient::startVisualServiceAsync(const StartVisualServiceRequest& request, const StartVisualServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, startVisualService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::StartVisualServiceOutcomeCallable EHPCClient::startVisualServiceCallable(const StartVisualServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->startVisualService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::DescribePriceOutcome EHPCClient::describePrice(const DescribePriceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3039,42 +3759,6 @@ EHPCClient::AddContainerAppOutcomeCallable EHPCClient::addContainerAppCallable(c return task->get_future(); } -EHPCClient::InstallSoftwareOutcome EHPCClient::installSoftware(const InstallSoftwareRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InstallSoftwareOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InstallSoftwareOutcome(InstallSoftwareResult(outcome.result())); - else - return InstallSoftwareOutcome(outcome.error()); -} - -void EHPCClient::installSoftwareAsync(const InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, installSoftware(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::InstallSoftwareOutcomeCallable EHPCClient::installSoftwareCallable(const InstallSoftwareRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->installSoftware(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EHPCClient::ListClusterLogsOutcome EHPCClient::listClusterLogs(const ListClusterLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,75 +3831,3 @@ EHPCClient::RecoverClusterOutcomeCallable EHPCClient::recoverClusterCallable(con return task->get_future(); } -EHPCClient::ListAvailableEcsTypesOutcome EHPCClient::listAvailableEcsTypes(const ListAvailableEcsTypesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAvailableEcsTypesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAvailableEcsTypesOutcome(ListAvailableEcsTypesResult(outcome.result())); - else - return ListAvailableEcsTypesOutcome(outcome.error()); -} - -void EHPCClient::listAvailableEcsTypesAsync(const ListAvailableEcsTypesRequest& request, const ListAvailableEcsTypesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAvailableEcsTypes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::ListAvailableEcsTypesOutcomeCallable EHPCClient::listAvailableEcsTypesCallable(const ListAvailableEcsTypesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAvailableEcsTypes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EHPCClient::AddQueueOutcome EHPCClient::addQueue(const AddQueueRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddQueueOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddQueueOutcome(AddQueueResult(outcome.result())); - else - return AddQueueOutcome(outcome.error()); -} - -void EHPCClient::addQueueAsync(const AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addQueue(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EHPCClient::AddQueueOutcomeCallable EHPCClient::addQueueCallable(const AddQueueRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addQueue(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - diff --git a/ehpc/src/model/AddContainerAppResult.cc b/ehpc/src/model/AddContainerAppResult.cc index 3820e3996..5f6b9f59c 100644 --- a/ehpc/src/model/AddContainerAppResult.cc +++ b/ehpc/src/model/AddContainerAppResult.cc @@ -35,10 +35,13 @@ AddContainerAppResult::~AddContainerAppResult() void AddContainerAppResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allContainerId = value["ContainerId"]["ContainerId"]; for (const auto &item : allContainerId) diff --git a/ehpc/src/model/AddLocalNodesResult.cc b/ehpc/src/model/AddLocalNodesResult.cc index 2d39c0eb8..f5141673c 100644 --- a/ehpc/src/model/AddLocalNodesResult.cc +++ b/ehpc/src/model/AddLocalNodesResult.cc @@ -35,10 +35,13 @@ AddLocalNodesResult::~AddLocalNodesResult() void AddLocalNodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (const auto &item : allInstanceIds) diff --git a/ehpc/src/model/AddNodesRequest.cc b/ehpc/src/model/AddNodesRequest.cc index 0ce981c85..078120cb4 100644 --- a/ehpc/src/model/AddNodesRequest.cc +++ b/ehpc/src/model/AddNodesRequest.cc @@ -124,6 +124,17 @@ void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) setCoreParameter("ImageOwnerAlias", imageOwnerAlias); } +std::string AddNodesRequest::getSystemDiskType()const +{ + return systemDiskType_; +} + +void AddNodesRequest::setSystemDiskType(const std::string& systemDiskType) +{ + systemDiskType_ = systemDiskType; + setCoreParameter("SystemDiskType", systemDiskType); +} + std::string AddNodesRequest::getVSwitchId()const { return vSwitchId_; diff --git a/ehpc/src/model/AddNodesResult.cc b/ehpc/src/model/AddNodesResult.cc index b31be6065..fd508e876 100644 --- a/ehpc/src/model/AddNodesResult.cc +++ b/ehpc/src/model/AddNodesResult.cc @@ -35,10 +35,13 @@ AddNodesResult::~AddNodesResult() void AddNodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (const auto &item : allInstanceIds) diff --git a/ehpc/src/model/AddQueueResult.cc b/ehpc/src/model/AddQueueResult.cc index e6c989680..b225c331e 100644 --- a/ehpc/src/model/AddQueueResult.cc +++ b/ehpc/src/model/AddQueueResult.cc @@ -35,10 +35,13 @@ AddQueueResult::~AddQueueResult() void AddQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/AddUsersResult.cc b/ehpc/src/model/AddUsersResult.cc index c3b359f08..5cf35c493 100644 --- a/ehpc/src/model/AddUsersResult.cc +++ b/ehpc/src/model/AddUsersResult.cc @@ -35,10 +35,13 @@ AddUsersResult::~AddUsersResult() void AddUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/CreateClusterRequest.cc b/ehpc/src/model/CreateClusterRequest.cc index 51b38cc85..5705a5b18 100644 --- a/ehpc/src/model/CreateClusterRequest.cc +++ b/ehpc/src/model/CreateClusterRequest.cc @@ -214,6 +214,17 @@ void CreateClusterRequest::setDeployMode(const std::string& deployMode) setCoreParameter("DeployMode", deployMode); } +std::string CreateClusterRequest::getSystemDiskType()const +{ + return systemDiskType_; +} + +void CreateClusterRequest::setSystemDiskType(const std::string& systemDiskType) +{ + systemDiskType_ = systemDiskType; + setCoreParameter("SystemDiskType", systemDiskType); +} + int CreateClusterRequest::getEcsOrderManagerCount()const { return ecsOrderManagerCount_; diff --git a/ehpc/src/model/CreateClusterResult.cc b/ehpc/src/model/CreateClusterResult.cc index 19d9a2cb3..3e221a728 100644 --- a/ehpc/src/model/CreateClusterResult.cc +++ b/ehpc/src/model/CreateClusterResult.cc @@ -35,10 +35,13 @@ CreateClusterResult::~CreateClusterResult() void CreateClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/ehpc/src/model/CreateGWSClusterRequest.cc b/ehpc/src/model/CreateGWSClusterRequest.cc new file mode 100644 index 000000000..c4a574dff --- /dev/null +++ b/ehpc/src/model/CreateGWSClusterRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::CreateGWSClusterRequest; + +CreateGWSClusterRequest::CreateGWSClusterRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSCluster") +{} + +CreateGWSClusterRequest::~CreateGWSClusterRequest() +{} + +std::string CreateGWSClusterRequest::getClusterType()const +{ + return clusterType_; +} + +void CreateGWSClusterRequest::setClusterType(const std::string& clusterType) +{ + clusterType_ = clusterType; + setCoreParameter("ClusterType", clusterType); +} + +std::string CreateGWSClusterRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateGWSClusterRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string CreateGWSClusterRequest::getName()const +{ + return name_; +} + +void CreateGWSClusterRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateGWSClusterRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGWSClusterRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/CreateGWSClusterResult.cc b/ehpc/src/model/CreateGWSClusterResult.cc new file mode 100644 index 000000000..8811897c5 --- /dev/null +++ b/ehpc/src/model/CreateGWSClusterResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateGWSClusterResult::CreateGWSClusterResult() : + ServiceResult() +{} + +CreateGWSClusterResult::CreateGWSClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGWSClusterResult::~CreateGWSClusterResult() +{} + +void CreateGWSClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + +} + +std::string CreateGWSClusterResult::getClusterId()const +{ + return clusterId_; +} + diff --git a/ehpc/src/model/CreateGWSImageRequest.cc b/ehpc/src/model/CreateGWSImageRequest.cc new file mode 100644 index 000000000..91ccdb645 --- /dev/null +++ b/ehpc/src/model/CreateGWSImageRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::CreateGWSImageRequest; + +CreateGWSImageRequest::CreateGWSImageRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSImage") +{} + +CreateGWSImageRequest::~CreateGWSImageRequest() +{} + +std::string CreateGWSImageRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateGWSImageRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateGWSImageRequest::getName()const +{ + return name_; +} + +void CreateGWSImageRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateGWSImageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGWSImageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/CreateGWSImageResult.cc b/ehpc/src/model/CreateGWSImageResult.cc new file mode 100644 index 000000000..e72fbc6e1 --- /dev/null +++ b/ehpc/src/model/CreateGWSImageResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateGWSImageResult::CreateGWSImageResult() : + ServiceResult() +{} + +CreateGWSImageResult::CreateGWSImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGWSImageResult::~CreateGWSImageResult() +{} + +void CreateGWSImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + +} + +std::string CreateGWSImageResult::getImageId()const +{ + return imageId_; +} + diff --git a/ehpc/src/model/CreateGWSInstanceRequest.cc b/ehpc/src/model/CreateGWSInstanceRequest.cc new file mode 100644 index 000000000..4c393f7a7 --- /dev/null +++ b/ehpc/src/model/CreateGWSInstanceRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::CreateGWSInstanceRequest; + +CreateGWSInstanceRequest::CreateGWSInstanceRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSInstance") +{} + +CreateGWSInstanceRequest::~CreateGWSInstanceRequest() +{} + +std::string CreateGWSInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateGWSInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string CreateGWSInstanceRequest::getImageId()const +{ + return imageId_; +} + +void CreateGWSInstanceRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setCoreParameter("ImageId", imageId); +} + +bool CreateGWSInstanceRequest::getAllocatePublicAddress()const +{ + return allocatePublicAddress_; +} + +void CreateGWSInstanceRequest::setAllocatePublicAddress(bool allocatePublicAddress) +{ + allocatePublicAddress_ = allocatePublicAddress; + setCoreParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false"); +} + +std::string CreateGWSInstanceRequest::getAppList()const +{ + return appList_; +} + +void CreateGWSInstanceRequest::setAppList(const std::string& appList) +{ + appList_ = appList; + setCoreParameter("AppList", appList); +} + +int CreateGWSInstanceRequest::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void CreateGWSInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setCoreParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +} + +std::string CreateGWSInstanceRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateGWSInstanceRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string CreateGWSInstanceRequest::getWorkMode()const +{ + return workMode_; +} + +void CreateGWSInstanceRequest::setWorkMode(const std::string& workMode) +{ + workMode_ = workMode; + setCoreParameter("WorkMode", workMode); +} + +std::string CreateGWSInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateGWSInstanceRequest::getPeriodUnit()const +{ + return periodUnit_; +} + +void CreateGWSInstanceRequest::setPeriodUnit(const std::string& periodUnit) +{ + periodUnit_ = periodUnit; + setCoreParameter("PeriodUnit", periodUnit); +} + +bool CreateGWSInstanceRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void CreateGWSInstanceRequest::setAutoRenew(bool autoRenew) +{ + autoRenew_ = autoRenew; + setCoreParameter("AutoRenew", autoRenew ? "true" : "false"); +} + +std::string CreateGWSInstanceRequest::getSystemDiskCategory()const +{ + return systemDiskCategory_; +} + +void CreateGWSInstanceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) +{ + systemDiskCategory_ = systemDiskCategory; + setCoreParameter("SystemDiskCategory", systemDiskCategory); +} + +std::string CreateGWSInstanceRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void CreateGWSInstanceRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setCoreParameter("InternetChargeType", internetChargeType); +} + +int CreateGWSInstanceRequest::getSystemDiskSize()const +{ + return systemDiskSize_; +} + +void CreateGWSInstanceRequest::setSystemDiskSize(int systemDiskSize) +{ + systemDiskSize_ = systemDiskSize; + setCoreParameter("SystemDiskSize", std::to_string(systemDiskSize)); +} + +std::string CreateGWSInstanceRequest::getName()const +{ + return name_; +} + +void CreateGWSInstanceRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateGWSInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void CreateGWSInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setCoreParameter("InstanceType", instanceType); +} + +std::string CreateGWSInstanceRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void CreateGWSInstanceRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setCoreParameter("InstanceChargeType", instanceChargeType); +} + +int CreateGWSInstanceRequest::getInternetMaxBandwidthIn()const +{ + return internetMaxBandwidthIn_; +} + +void CreateGWSInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) +{ + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setCoreParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +} + diff --git a/ehpc/src/model/CreateGWSInstanceResult.cc b/ehpc/src/model/CreateGWSInstanceResult.cc new file mode 100644 index 000000000..5b04ee9ab --- /dev/null +++ b/ehpc/src/model/CreateGWSInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateGWSInstanceResult::CreateGWSInstanceResult() : + ServiceResult() +{} + +CreateGWSInstanceResult::CreateGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGWSInstanceResult::~CreateGWSInstanceResult() +{} + +void CreateGWSInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string CreateGWSInstanceResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/ehpc/src/model/CreateHybridClusterRequest.cc b/ehpc/src/model/CreateHybridClusterRequest.cc index b0aace458..afb2b1c22 100644 --- a/ehpc/src/model/CreateHybridClusterRequest.cc +++ b/ehpc/src/model/CreateHybridClusterRequest.cc @@ -262,15 +262,24 @@ void CreateHybridClusterRequest::setVSwitchId(const std::string& vSwitchId) setCoreParameter("VSwitchId", vSwitchId); } -std::string CreateHybridClusterRequest::getNodes()const +std::vector CreateHybridClusterRequest::getNodes()const { return nodes_; } -void CreateHybridClusterRequest::setNodes(const std::string& nodes) +void CreateHybridClusterRequest::setNodes(const std::vector& nodes) { nodes_ = nodes; - setCoreParameter("Nodes", nodes); + int i = 0; + for(int i = 0; i!= nodes.size(); i++) { + auto obj = nodes.at(i); + std::string str ="Nodes."+ std::to_string(i); + setCoreParameter(str + ".IpAddress", obj.ipAddress); + setCoreParameter(str + ".HostName", obj.hostName); + setCoreParameter(str + ".Role", obj.role); + setCoreParameter(str + ".AccountType", obj.accountType); + setCoreParameter(str + ".SchedulerType", obj.schedulerType); + } } std::vector CreateHybridClusterRequest::getApplication()const @@ -355,6 +364,17 @@ void CreateHybridClusterRequest::setZoneId(const std::string& zoneId) setCoreParameter("ZoneId", zoneId); } +bool CreateHybridClusterRequest::getSchedulerPreInstall()const +{ + return schedulerPreInstall_; +} + +void CreateHybridClusterRequest::setSchedulerPreInstall(bool schedulerPreInstall) +{ + schedulerPreInstall_ = schedulerPreInstall; + setCoreParameter("SchedulerPreInstall", schedulerPreInstall ? "true" : "false"); +} + std::string CreateHybridClusterRequest::getLocation()const { return location_; diff --git a/ehpc/src/model/CreateHybridClusterResult.cc b/ehpc/src/model/CreateHybridClusterResult.cc index 23a9b0540..5488961db 100644 --- a/ehpc/src/model/CreateHybridClusterResult.cc +++ b/ehpc/src/model/CreateHybridClusterResult.cc @@ -35,10 +35,13 @@ CreateHybridClusterResult::~CreateHybridClusterResult() void CreateHybridClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/ehpc/src/model/CreateJobFileResult.cc b/ehpc/src/model/CreateJobFileResult.cc index 9e164c46f..80035a5a8 100644 --- a/ehpc/src/model/CreateJobFileResult.cc +++ b/ehpc/src/model/CreateJobFileResult.cc @@ -35,10 +35,13 @@ CreateJobFileResult::~CreateJobFileResult() void CreateJobFileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/ehpc/src/model/CreateJobTemplateResult.cc b/ehpc/src/model/CreateJobTemplateResult.cc index fc802f4e9..a20750531 100644 --- a/ehpc/src/model/CreateJobTemplateResult.cc +++ b/ehpc/src/model/CreateJobTemplateResult.cc @@ -35,10 +35,13 @@ CreateJobTemplateResult::~CreateJobTemplateResult() void CreateJobTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/ehpc/src/model/DeleteClusterResult.cc b/ehpc/src/model/DeleteClusterResult.cc index d81164188..0616747de 100644 --- a/ehpc/src/model/DeleteClusterResult.cc +++ b/ehpc/src/model/DeleteClusterResult.cc @@ -35,10 +35,13 @@ DeleteClusterResult::~DeleteClusterResult() void DeleteClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DeleteContainerAppsResult.cc b/ehpc/src/model/DeleteContainerAppsResult.cc index 6a3254d14..3949e257b 100644 --- a/ehpc/src/model/DeleteContainerAppsResult.cc +++ b/ehpc/src/model/DeleteContainerAppsResult.cc @@ -35,10 +35,13 @@ DeleteContainerAppsResult::~DeleteContainerAppsResult() void DeleteContainerAppsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DeleteGWSClusterRequest.cc b/ehpc/src/model/DeleteGWSClusterRequest.cc new file mode 100644 index 000000000..628d6dad8 --- /dev/null +++ b/ehpc/src/model/DeleteGWSClusterRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::DeleteGWSClusterRequest; + +DeleteGWSClusterRequest::DeleteGWSClusterRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSCluster") +{} + +DeleteGWSClusterRequest::~DeleteGWSClusterRequest() +{} + +std::string DeleteGWSClusterRequest::getClusterId()const +{ + return clusterId_; +} + +void DeleteGWSClusterRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string DeleteGWSClusterRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGWSClusterRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/DeleteGWSClusterResult.cc b/ehpc/src/model/DeleteGWSClusterResult.cc new file mode 100644 index 000000000..4657ba41d --- /dev/null +++ b/ehpc/src/model/DeleteGWSClusterResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteGWSClusterResult::DeleteGWSClusterResult() : + ServiceResult() +{} + +DeleteGWSClusterResult::DeleteGWSClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGWSClusterResult::~DeleteGWSClusterResult() +{} + +void DeleteGWSClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteGWSInstanceRequest.cc b/ehpc/src/model/DeleteGWSInstanceRequest.cc new file mode 100644 index 000000000..3c497350f --- /dev/null +++ b/ehpc/src/model/DeleteGWSInstanceRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::DeleteGWSInstanceRequest; + +DeleteGWSInstanceRequest::DeleteGWSInstanceRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSInstance") +{} + +DeleteGWSInstanceRequest::~DeleteGWSInstanceRequest() +{} + +std::string DeleteGWSInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteGWSInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DeleteGWSInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/DeleteGWSInstanceResult.cc b/ehpc/src/model/DeleteGWSInstanceResult.cc new file mode 100644 index 000000000..dcd5a6540 --- /dev/null +++ b/ehpc/src/model/DeleteGWSInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteGWSInstanceResult::DeleteGWSInstanceResult() : + ServiceResult() +{} + +DeleteGWSInstanceResult::DeleteGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGWSInstanceResult::~DeleteGWSInstanceResult() +{} + +void DeleteGWSInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteImageResult.cc b/ehpc/src/model/DeleteImageResult.cc index 1b56784c7..b7842bfb4 100644 --- a/ehpc/src/model/DeleteImageResult.cc +++ b/ehpc/src/model/DeleteImageResult.cc @@ -35,10 +35,13 @@ DeleteImageResult::~DeleteImageResult() void DeleteImageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DeleteJobTemplatesResult.cc b/ehpc/src/model/DeleteJobTemplatesResult.cc index 2574ca3a3..661cf23a0 100644 --- a/ehpc/src/model/DeleteJobTemplatesResult.cc +++ b/ehpc/src/model/DeleteJobTemplatesResult.cc @@ -35,10 +35,13 @@ DeleteJobTemplatesResult::~DeleteJobTemplatesResult() void DeleteJobTemplatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DeleteJobsResult.cc b/ehpc/src/model/DeleteJobsResult.cc index 13558b90f..3f1bb4fbe 100644 --- a/ehpc/src/model/DeleteJobsResult.cc +++ b/ehpc/src/model/DeleteJobsResult.cc @@ -35,10 +35,13 @@ DeleteJobsResult::~DeleteJobsResult() void DeleteJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DeleteNodesResult.cc b/ehpc/src/model/DeleteNodesResult.cc index b53d80b34..d326dc56b 100644 --- a/ehpc/src/model/DeleteNodesResult.cc +++ b/ehpc/src/model/DeleteNodesResult.cc @@ -35,10 +35,13 @@ DeleteNodesResult::~DeleteNodesResult() void DeleteNodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DeleteQueueResult.cc b/ehpc/src/model/DeleteQueueResult.cc index 64f793dc0..652d067b8 100644 --- a/ehpc/src/model/DeleteQueueResult.cc +++ b/ehpc/src/model/DeleteQueueResult.cc @@ -35,10 +35,13 @@ DeleteQueueResult::~DeleteQueueResult() void DeleteQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DeleteUsersResult.cc b/ehpc/src/model/DeleteUsersResult.cc index 3be3dbebc..c94d82103 100644 --- a/ehpc/src/model/DeleteUsersResult.cc +++ b/ehpc/src/model/DeleteUsersResult.cc @@ -35,10 +35,13 @@ DeleteUsersResult::~DeleteUsersResult() void DeleteUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/DescribeAutoScaleConfigResult.cc b/ehpc/src/model/DescribeAutoScaleConfigResult.cc index 817d2fec6..9892c1427 100644 --- a/ehpc/src/model/DescribeAutoScaleConfigResult.cc +++ b/ehpc/src/model/DescribeAutoScaleConfigResult.cc @@ -35,10 +35,13 @@ DescribeAutoScaleConfigResult::~DescribeAutoScaleConfigResult() void DescribeAutoScaleConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Uid"].isNull()) uid_ = value["Uid"].asString(); diff --git a/ehpc/src/model/DescribeClusterResult.cc b/ehpc/src/model/DescribeClusterResult.cc index df1341a37..5c339f871 100644 --- a/ehpc/src/model/DescribeClusterResult.cc +++ b/ehpc/src/model/DescribeClusterResult.cc @@ -35,10 +35,13 @@ DescribeClusterResult::~DescribeClusterResult() void DescribeClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto clusterInfoNode = value["ClusterInfo"]; if(!clusterInfoNode["Id"].isNull()) diff --git a/ehpc/src/model/DescribeContainerAppResult.cc b/ehpc/src/model/DescribeContainerAppResult.cc index e9e6fefa0..e1d4baa22 100644 --- a/ehpc/src/model/DescribeContainerAppResult.cc +++ b/ehpc/src/model/DescribeContainerAppResult.cc @@ -35,10 +35,13 @@ DescribeContainerAppResult::~DescribeContainerAppResult() void DescribeContainerAppResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto containerAppInfoNode = value["ContainerAppInfo"]; if(!containerAppInfoNode["Id"].isNull()) diff --git a/ehpc/src/model/DescribeGWSClustersRequest.cc b/ehpc/src/model/DescribeGWSClustersRequest.cc new file mode 100644 index 000000000..92c036610 --- /dev/null +++ b/ehpc/src/model/DescribeGWSClustersRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeGWSClustersRequest; + +DescribeGWSClustersRequest::DescribeGWSClustersRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSClusters") +{} + +DescribeGWSClustersRequest::~DescribeGWSClustersRequest() +{} + +int DescribeGWSClustersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGWSClustersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeGWSClustersRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeGWSClustersRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +int DescribeGWSClustersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGWSClustersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGWSClustersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGWSClustersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/DescribeGWSClustersResult.cc b/ehpc/src/model/DescribeGWSClustersResult.cc new file mode 100644 index 000000000..8e595d5a2 --- /dev/null +++ b/ehpc/src/model/DescribeGWSClustersResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeGWSClustersResult::DescribeGWSClustersResult() : + ServiceResult() +{} + +DescribeGWSClustersResult::DescribeGWSClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGWSClustersResult::~DescribeGWSClustersResult() +{} + +void DescribeGWSClustersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allClusters = value["Clusters"]["ClusterInfo"]; + for (auto value : allClusters) + { + ClusterInfo clustersObject; + if(!value["ClusterId"].isNull()) + clustersObject.clusterId = value["ClusterId"].asString(); + if(!value["Status"].isNull()) + clustersObject.status = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + clustersObject.createTime = value["CreateTime"].asString(); + if(!value["VpcId"].isNull()) + clustersObject.vpcId = value["VpcId"].asString(); + if(!value["InstanceCount"].isNull()) + clustersObject.instanceCount = std::stoi(value["InstanceCount"].asString()); + clusters_.push_back(clustersObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CallerType"].isNull()) + callerType_ = value["CallerType"].asString(); + +} + +int DescribeGWSClustersResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGWSClustersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGWSClustersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGWSClustersResult::getClusters()const +{ + return clusters_; +} + +std::string DescribeGWSClustersResult::getCallerType()const +{ + return callerType_; +} + diff --git a/ehpc/src/model/DescribeGWSImagesRequest.cc b/ehpc/src/model/DescribeGWSImagesRequest.cc new file mode 100644 index 000000000..571f87b01 --- /dev/null +++ b/ehpc/src/model/DescribeGWSImagesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeGWSImagesRequest; + +DescribeGWSImagesRequest::DescribeGWSImagesRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSImages") +{} + +DescribeGWSImagesRequest::~DescribeGWSImagesRequest() +{} + +int DescribeGWSImagesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGWSImagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeGWSImagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGWSImagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGWSImagesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGWSImagesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/DescribeGWSImagesResult.cc b/ehpc/src/model/DescribeGWSImagesResult.cc new file mode 100644 index 000000000..e4aed9fcb --- /dev/null +++ b/ehpc/src/model/DescribeGWSImagesResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeGWSImagesResult::DescribeGWSImagesResult() : + ServiceResult() +{} + +DescribeGWSImagesResult::DescribeGWSImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGWSImagesResult::~DescribeGWSImagesResult() +{} + +void DescribeGWSImagesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allImages = value["Images"]["ImageInfo"]; + for (auto value : allImages) + { + ImageInfo imagesObject; + if(!value["ImageId"].isNull()) + imagesObject.imageId = value["ImageId"].asString(); + if(!value["Status"].isNull()) + imagesObject.status = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + imagesObject.createTime = value["CreateTime"].asString(); + if(!value["Name"].isNull()) + imagesObject.name = value["Name"].asString(); + if(!value["ImageType"].isNull()) + imagesObject.imageType = value["ImageType"].asString(); + if(!value["Progress"].isNull()) + imagesObject.progress = value["Progress"].asString(); + if(!value["Size"].isNull()) + imagesObject.size = std::stoi(value["Size"].asString()); + images_.push_back(imagesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGWSImagesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGWSImagesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGWSImagesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGWSImagesResult::getImages()const +{ + return images_; +} + diff --git a/ehpc/src/model/DescribeGWSInstancesRequest.cc b/ehpc/src/model/DescribeGWSInstancesRequest.cc new file mode 100644 index 000000000..c4b73123b --- /dev/null +++ b/ehpc/src/model/DescribeGWSInstancesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeGWSInstancesRequest; + +DescribeGWSInstancesRequest::DescribeGWSInstancesRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSInstances") +{} + +DescribeGWSInstancesRequest::~DescribeGWSInstancesRequest() +{} + +std::string DescribeGWSInstancesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeGWSInstancesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int DescribeGWSInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGWSInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeGWSInstancesRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeGWSInstancesRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +int DescribeGWSInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGWSInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGWSInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGWSInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/DescribeGWSInstancesResult.cc b/ehpc/src/model/DescribeGWSInstancesResult.cc new file mode 100644 index 000000000..835f4b8dc --- /dev/null +++ b/ehpc/src/model/DescribeGWSInstancesResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeGWSInstancesResult::DescribeGWSInstancesResult() : + ServiceResult() +{} + +DescribeGWSInstancesResult::DescribeGWSInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGWSInstancesResult::~DescribeGWSInstancesResult() +{} + +void DescribeGWSInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allInstances = value["Instances"]["InstanceInfo"]; + for (auto value : allInstances) + { + InstanceInfo instancesObject; + if(!value["ClusterId"].isNull()) + instancesObject.clusterId = value["ClusterId"].asString(); + if(!value["InstanceId"].isNull()) + instancesObject.instanceId = value["InstanceId"].asString(); + if(!value["InstanceType"].isNull()) + instancesObject.instanceType = value["InstanceType"].asString(); + if(!value["Status"].isNull()) + instancesObject.status = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + instancesObject.createTime = value["CreateTime"].asString(); + if(!value["ExpireTime"].isNull()) + instancesObject.expireTime = value["ExpireTime"].asString(); + if(!value["WorkMode"].isNull()) + instancesObject.workMode = value["WorkMode"].asString(); + if(!value["Name"].isNull()) + instancesObject.name = value["Name"].asString(); + if(!value["UserName"].isNull()) + instancesObject.userName = value["UserName"].asString(); + auto allAppList = value["AppList"]["AppInfo"]; + for (auto value : allAppList) + { + InstanceInfo::AppInfo appListObject; + if(!value["AppName"].isNull()) + appListObject.appName = value["AppName"].asString(); + if(!value["AppPath"].isNull()) + appListObject.appPath = value["AppPath"].asString(); + if(!value["AppArgs"].isNull()) + appListObject.appArgs = value["AppArgs"].asString(); + instancesObject.appList.push_back(appListObject); + } + instances_.push_back(instancesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::vector DescribeGWSInstancesResult::getInstances()const +{ + return instances_; +} + +int DescribeGWSInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGWSInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGWSInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ehpc/src/model/DescribeImageGatewayConfigResult.cc b/ehpc/src/model/DescribeImageGatewayConfigResult.cc index 2752f5222..6a260522a 100644 --- a/ehpc/src/model/DescribeImageGatewayConfigResult.cc +++ b/ehpc/src/model/DescribeImageGatewayConfigResult.cc @@ -35,10 +35,13 @@ DescribeImageGatewayConfigResult::~DescribeImageGatewayConfigResult() void DescribeImageGatewayConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto imagegwNode = value["Imagegw"]; if(!imagegwNode["DefaultImageLocation"].isNull()) diff --git a/ehpc/src/model/DescribeImagePriceResult.cc b/ehpc/src/model/DescribeImagePriceResult.cc index 3ee2e0a10..0e37442ef 100644 --- a/ehpc/src/model/DescribeImagePriceResult.cc +++ b/ehpc/src/model/DescribeImagePriceResult.cc @@ -35,10 +35,13 @@ DescribeImagePriceResult::~DescribeImagePriceResult() void DescribeImagePriceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); diff --git a/ehpc/src/model/DescribeImageResult.cc b/ehpc/src/model/DescribeImageResult.cc index 2b212dc10..a089760b3 100644 --- a/ehpc/src/model/DescribeImageResult.cc +++ b/ehpc/src/model/DescribeImageResult.cc @@ -35,10 +35,13 @@ DescribeImageResult::~DescribeImageResult() void DescribeImageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto imageInfoNode = value["ImageInfo"]; if(!imageInfoNode["System"].isNull()) diff --git a/ehpc/src/model/DescribeJobResult.cc b/ehpc/src/model/DescribeJobResult.cc index 6228832f9..8e0a837d5 100644 --- a/ehpc/src/model/DescribeJobResult.cc +++ b/ehpc/src/model/DescribeJobResult.cc @@ -35,10 +35,13 @@ DescribeJobResult::~DescribeJobResult() void DescribeJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto messageNode = value["Message"]; if(!messageNode["JobInfo"].isNull()) diff --git a/ehpc/src/model/DescribeNFSClientStatusRequest.cc b/ehpc/src/model/DescribeNFSClientStatusRequest.cc new file mode 100644 index 000000000..565376304 --- /dev/null +++ b/ehpc/src/model/DescribeNFSClientStatusRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::DescribeNFSClientStatusRequest; + +DescribeNFSClientStatusRequest::DescribeNFSClientStatusRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "DescribeNFSClientStatus") +{} + +DescribeNFSClientStatusRequest::~DescribeNFSClientStatusRequest() +{} + +std::string DescribeNFSClientStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeNFSClientStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeNFSClientStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeNFSClientStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/DescribeNFSClientStatusResult.cc b/ehpc/src/model/DescribeNFSClientStatusResult.cc new file mode 100644 index 000000000..72e177ac2 --- /dev/null +++ b/ehpc/src/model/DescribeNFSClientStatusResult.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 +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeNFSClientStatusResult::DescribeNFSClientStatusResult() : + ServiceResult() +{} + +DescribeNFSClientStatusResult::DescribeNFSClientStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNFSClientStatusResult::~DescribeNFSClientStatusResult() +{} + +void DescribeNFSClientStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["InvokeRecordStatus"].isNull()) + result_.invokeRecordStatus = resultNode["InvokeRecordStatus"].asString(); + if(!resultNode["ExitCode"].isNull()) + result_.exitCode = std::stoi(resultNode["ExitCode"].asString()); + if(!resultNode["Output"].isNull()) + result_.output = resultNode["Output"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DescribeNFSClientStatusResult::getStatus()const +{ + return status_; +} + +DescribeNFSClientStatusResult::Result DescribeNFSClientStatusResult::getResult()const +{ + return result_; +} + diff --git a/ehpc/src/model/DescribePriceResult.cc b/ehpc/src/model/DescribePriceResult.cc index 065454583..9048d65f3 100644 --- a/ehpc/src/model/DescribePriceResult.cc +++ b/ehpc/src/model/DescribePriceResult.cc @@ -35,10 +35,13 @@ DescribePriceResult::~DescribePriceResult() void DescribePriceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPrices = value["Prices"]["PriceInfo"]; for (auto value : allPrices) diff --git a/ehpc/src/model/EditJobTemplateResult.cc b/ehpc/src/model/EditJobTemplateResult.cc index 4ee26f8d5..4e58d5a82 100644 --- a/ehpc/src/model/EditJobTemplateResult.cc +++ b/ehpc/src/model/EditJobTemplateResult.cc @@ -35,10 +35,13 @@ EditJobTemplateResult::~EditJobTemplateResult() void EditJobTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/ehpc/src/model/GetAccountingReportResult.cc b/ehpc/src/model/GetAccountingReportResult.cc index 632507e25..5629ffdc6 100644 --- a/ehpc/src/model/GetAccountingReportResult.cc +++ b/ehpc/src/model/GetAccountingReportResult.cc @@ -35,10 +35,13 @@ GetAccountingReportResult::~GetAccountingReportResult() void GetAccountingReportResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Metrics"].isNull()) metrics_ = value["Metrics"].asString(); diff --git a/ehpc/src/model/GetAutoScaleConfigResult.cc b/ehpc/src/model/GetAutoScaleConfigResult.cc index bbe8f88a5..a47e2ab0b 100644 --- a/ehpc/src/model/GetAutoScaleConfigResult.cc +++ b/ehpc/src/model/GetAutoScaleConfigResult.cc @@ -35,10 +35,13 @@ GetAutoScaleConfigResult::~GetAutoScaleConfigResult() void GetAutoScaleConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQueues = value["Queues"]["QueueInfo"]; for (auto value : allQueues) @@ -46,6 +49,8 @@ void GetAutoScaleConfigResult::parse(const std::string &payload) QueueInfo queuesObject; if(!value["QueueName"].isNull()) queuesObject.queueName = value["QueueName"].asString(); + if(!value["ResourceGroupId"].isNull()) + queuesObject.resourceGroupId = value["ResourceGroupId"].asString(); if(!value["InstanceType"].isNull()) queuesObject.instanceType = value["InstanceType"].asString(); if(!value["SpotStrategy"].isNull()) diff --git a/ehpc/src/model/GetCloudMetricLogsResult.cc b/ehpc/src/model/GetCloudMetricLogsResult.cc index 5f8d7aead..874e61716 100644 --- a/ehpc/src/model/GetCloudMetricLogsResult.cc +++ b/ehpc/src/model/GetCloudMetricLogsResult.cc @@ -35,10 +35,13 @@ GetCloudMetricLogsResult::~GetCloudMetricLogsResult() void GetCloudMetricLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMetricLogs = value["MetricLogs"]["MetricLog"]; for (auto value : allMetricLogs) diff --git a/ehpc/src/model/GetCloudMetricProfilingResult.cc b/ehpc/src/model/GetCloudMetricProfilingResult.cc index cab3a70a6..b3dc68cbb 100644 --- a/ehpc/src/model/GetCloudMetricProfilingResult.cc +++ b/ehpc/src/model/GetCloudMetricProfilingResult.cc @@ -35,10 +35,13 @@ GetCloudMetricProfilingResult::~GetCloudMetricProfilingResult() void GetCloudMetricProfilingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSvgUrls = value["SvgUrls"]["SvgInfo"]; for (auto value : allSvgUrls) diff --git a/ehpc/src/model/GetClusterVolumesResult.cc b/ehpc/src/model/GetClusterVolumesResult.cc index a17822856..f7263872d 100644 --- a/ehpc/src/model/GetClusterVolumesResult.cc +++ b/ehpc/src/model/GetClusterVolumesResult.cc @@ -35,10 +35,13 @@ GetClusterVolumesResult::~GetClusterVolumesResult() void GetClusterVolumesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVolumes = value["Volumes"]["VolumeInfo"]; for (auto value : allVolumes) diff --git a/ehpc/src/model/GetGWSConnectTicketRequest.cc b/ehpc/src/model/GetGWSConnectTicketRequest.cc new file mode 100644 index 000000000..360635a09 --- /dev/null +++ b/ehpc/src/model/GetGWSConnectTicketRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetGWSConnectTicketRequest; + +GetGWSConnectTicketRequest::GetGWSConnectTicketRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "GetGWSConnectTicket") +{} + +GetGWSConnectTicketRequest::~GetGWSConnectTicketRequest() +{} + +std::string GetGWSConnectTicketRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetGWSConnectTicketRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string GetGWSConnectTicketRequest::getAppName()const +{ + return appName_; +} + +void GetGWSConnectTicketRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setCoreParameter("AppName", appName); +} + +std::string GetGWSConnectTicketRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetGWSConnectTicketRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/GetGWSConnectTicketResult.cc b/ehpc/src/model/GetGWSConnectTicketResult.cc new file mode 100644 index 000000000..4e84f9855 --- /dev/null +++ b/ehpc/src/model/GetGWSConnectTicketResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetGWSConnectTicketResult::GetGWSConnectTicketResult() : + ServiceResult() +{} + +GetGWSConnectTicketResult::GetGWSConnectTicketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGWSConnectTicketResult::~GetGWSConnectTicketResult() +{} + +void GetGWSConnectTicketResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Ticket"].isNull()) + ticket_ = value["Ticket"].asString(); + +} + +std::string GetGWSConnectTicketResult::getTicket()const +{ + return ticket_; +} + diff --git a/ehpc/src/model/GetHybridClusterConfigResult.cc b/ehpc/src/model/GetHybridClusterConfigResult.cc index 0883b729a..47a2a61fa 100644 --- a/ehpc/src/model/GetHybridClusterConfigResult.cc +++ b/ehpc/src/model/GetHybridClusterConfigResult.cc @@ -35,10 +35,13 @@ GetHybridClusterConfigResult::~GetHybridClusterConfigResult() void GetHybridClusterConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterConfig"].isNull()) clusterConfig_ = value["ClusterConfig"].asString(); diff --git a/ehpc/src/model/GetVisualServiceStatusResult.cc b/ehpc/src/model/GetVisualServiceStatusResult.cc index a6fa9dddf..44837e2a7 100644 --- a/ehpc/src/model/GetVisualServiceStatusResult.cc +++ b/ehpc/src/model/GetVisualServiceStatusResult.cc @@ -35,10 +35,13 @@ GetVisualServiceStatusResult::~GetVisualServiceStatusResult() void GetVisualServiceStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); diff --git a/ehpc/src/model/InstallNFSClientRequest.cc b/ehpc/src/model/InstallNFSClientRequest.cc new file mode 100644 index 000000000..802e6d9ea --- /dev/null +++ b/ehpc/src/model/InstallNFSClientRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::InstallNFSClientRequest; + +InstallNFSClientRequest::InstallNFSClientRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "InstallNFSClient") +{} + +InstallNFSClientRequest::~InstallNFSClientRequest() +{} + +std::string InstallNFSClientRequest::getInstanceId()const +{ + return instanceId_; +} + +void InstallNFSClientRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string InstallNFSClientRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void InstallNFSClientRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/InstallNFSClientResult.cc b/ehpc/src/model/InstallNFSClientResult.cc new file mode 100644 index 000000000..b5f9015a9 --- /dev/null +++ b/ehpc/src/model/InstallNFSClientResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +InstallNFSClientResult::InstallNFSClientResult() : + ServiceResult() +{} + +InstallNFSClientResult::InstallNFSClientResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InstallNFSClientResult::~InstallNFSClientResult() +{} + +void InstallNFSClientResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["InvokeId"].isNull()) + invokeId_ = value["InvokeId"].asString(); + +} + +std::string InstallNFSClientResult::getInvokeId()const +{ + return invokeId_; +} + diff --git a/ehpc/src/model/InstallSoftwareResult.cc b/ehpc/src/model/InstallSoftwareResult.cc index ce04566a8..01caedead 100644 --- a/ehpc/src/model/InstallSoftwareResult.cc +++ b/ehpc/src/model/InstallSoftwareResult.cc @@ -35,10 +35,13 @@ InstallSoftwareResult::~InstallSoftwareResult() void InstallSoftwareResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/InvokeShellCommandResult.cc b/ehpc/src/model/InvokeShellCommandResult.cc index 24170c863..7f5eca689 100644 --- a/ehpc/src/model/InvokeShellCommandResult.cc +++ b/ehpc/src/model/InvokeShellCommandResult.cc @@ -35,10 +35,13 @@ InvokeShellCommandResult::~InvokeShellCommandResult() void InvokeShellCommandResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (const auto &item : allInstanceIds) diff --git a/ehpc/src/model/ListAvailableEcsTypesRequest.cc b/ehpc/src/model/ListAvailableEcsTypesRequest.cc index cd028ebaa..6438c878a 100644 --- a/ehpc/src/model/ListAvailableEcsTypesRequest.cc +++ b/ehpc/src/model/ListAvailableEcsTypesRequest.cc @@ -47,6 +47,17 @@ void ListAvailableEcsTypesRequest::setZoneId(const std::string& zoneId) setCoreParameter("ZoneId", zoneId); } +bool ListAvailableEcsTypesRequest::getShowSoldOut()const +{ + return showSoldOut_; +} + +void ListAvailableEcsTypesRequest::setShowSoldOut(bool showSoldOut) +{ + showSoldOut_ = showSoldOut; + setCoreParameter("ShowSoldOut", showSoldOut ? "true" : "false"); +} + std::string ListAvailableEcsTypesRequest::getInstanceChargeType()const { return instanceChargeType_; diff --git a/ehpc/src/model/ListAvailableEcsTypesResult.cc b/ehpc/src/model/ListAvailableEcsTypesResult.cc index 3936cf235..dab4f1463 100644 --- a/ehpc/src/model/ListAvailableEcsTypesResult.cc +++ b/ehpc/src/model/ListAvailableEcsTypesResult.cc @@ -35,10 +35,13 @@ ListAvailableEcsTypesResult::~ListAvailableEcsTypesResult() void ListAvailableEcsTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceTypeFamilies = value["InstanceTypeFamilies"]["InstanceTypeFamilyInfo"]; for (auto value : allInstanceTypeFamilies) @@ -72,6 +75,8 @@ void ListAvailableEcsTypesResult::parse(const std::string &payload) typesObject.instanceTypeId = value["InstanceTypeId"].asString(); if(!value["GPUSpec"].isNull()) typesObject.gPUSpec = value["GPUSpec"].asString(); + if(!value["Status"].isNull()) + typesObject.status = value["Status"].asString(); instanceTypeFamiliesObject.types.push_back(typesObject); } instanceTypeFamilies_.push_back(instanceTypeFamiliesObject); diff --git a/ehpc/src/model/ListAvailableFileSystemTypesResult.cc b/ehpc/src/model/ListAvailableFileSystemTypesResult.cc index f1d86d206..74a9e9a9c 100644 --- a/ehpc/src/model/ListAvailableFileSystemTypesResult.cc +++ b/ehpc/src/model/ListAvailableFileSystemTypesResult.cc @@ -35,10 +35,13 @@ ListAvailableFileSystemTypesResult::~ListAvailableFileSystemTypesResult() void ListAvailableFileSystemTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFileSystemTypeList = value["FileSystemTypeList"]["FileSystemTypes"]; for (auto value : allFileSystemTypeList) diff --git a/ehpc/src/model/ListCloudMetricProfilingsResult.cc b/ehpc/src/model/ListCloudMetricProfilingsResult.cc index b6362e1c0..586ba59ee 100644 --- a/ehpc/src/model/ListCloudMetricProfilingsResult.cc +++ b/ehpc/src/model/ListCloudMetricProfilingsResult.cc @@ -35,10 +35,13 @@ ListCloudMetricProfilingsResult::~ListCloudMetricProfilingsResult() void ListCloudMetricProfilingsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allProfilings = value["Profilings"]["ProfilingInfo"]; for (auto value : allProfilings) diff --git a/ehpc/src/model/ListClusterLogsResult.cc b/ehpc/src/model/ListClusterLogsResult.cc index e214fbf04..f7b6851a5 100644 --- a/ehpc/src/model/ListClusterLogsResult.cc +++ b/ehpc/src/model/ListClusterLogsResult.cc @@ -35,10 +35,13 @@ ListClusterLogsResult::~ListClusterLogsResult() void ListClusterLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogs = value["Logs"]["LogInfo"]; for (auto value : allLogs) diff --git a/ehpc/src/model/ListClustersMetaResult.cc b/ehpc/src/model/ListClustersMetaResult.cc index ce3176b39..4f6125f49 100644 --- a/ehpc/src/model/ListClustersMetaResult.cc +++ b/ehpc/src/model/ListClustersMetaResult.cc @@ -35,10 +35,13 @@ ListClustersMetaResult::~ListClustersMetaResult() void ListClustersMetaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusters = value["Clusters"]["ClusterInfoSimple"]; for (auto value : allClusters) @@ -52,6 +55,8 @@ void ListClustersMetaResult::parse(const std::string &payload) clustersObject.description = value["Description"].asString(); if(!value["Status"].isNull()) clustersObject.status = value["Status"].asString(); + if(!value["Location"].isNull()) + clustersObject.location = value["Location"].asString(); clusters_.push_back(clustersObject); } if(!value["TotalCount"].isNull()) diff --git a/ehpc/src/model/ListClustersResult.cc b/ehpc/src/model/ListClustersResult.cc index 6ef10c30f..71efe71e9 100644 --- a/ehpc/src/model/ListClustersResult.cc +++ b/ehpc/src/model/ListClustersResult.cc @@ -35,10 +35,13 @@ ListClustersResult::~ListClustersResult() void ListClustersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusters = value["Clusters"]["ClusterInfoSimple"]; for (auto value : allClusters) diff --git a/ehpc/src/model/ListCommandsResult.cc b/ehpc/src/model/ListCommandsResult.cc index 5b51af053..8cd5c6e85 100644 --- a/ehpc/src/model/ListCommandsResult.cc +++ b/ehpc/src/model/ListCommandsResult.cc @@ -35,10 +35,13 @@ ListCommandsResult::~ListCommandsResult() void ListCommandsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCommands = value["Commands"]["Command"]; for (auto value : allCommands) diff --git a/ehpc/src/model/ListContainerAppsResult.cc b/ehpc/src/model/ListContainerAppsResult.cc index f60efdb7b..fb0df41c8 100644 --- a/ehpc/src/model/ListContainerAppsResult.cc +++ b/ehpc/src/model/ListContainerAppsResult.cc @@ -35,10 +35,13 @@ ListContainerAppsResult::~ListContainerAppsResult() void ListContainerAppsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allContainerApps = value["ContainerApps"]["ContainerAppsItem"]; for (auto value : allContainerApps) diff --git a/ehpc/src/model/ListContainerImagesResult.cc b/ehpc/src/model/ListContainerImagesResult.cc index 6018eeb41..00d92f3c7 100644 --- a/ehpc/src/model/ListContainerImagesResult.cc +++ b/ehpc/src/model/ListContainerImagesResult.cc @@ -35,10 +35,13 @@ ListContainerImagesResult::~ListContainerImagesResult() void ListContainerImagesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allImages = value["Images"]["ImagesItem"]; for (auto value : allImages) diff --git a/ehpc/src/model/ListCpfsFileSystemsResult.cc b/ehpc/src/model/ListCpfsFileSystemsResult.cc index cfccdf9e7..8fbe77791 100644 --- a/ehpc/src/model/ListCpfsFileSystemsResult.cc +++ b/ehpc/src/model/ListCpfsFileSystemsResult.cc @@ -35,10 +35,13 @@ ListCpfsFileSystemsResult::~ListCpfsFileSystemsResult() void ListCpfsFileSystemsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFileSystemList = value["FileSystemList"]["FileSystems"]; for (auto value : allFileSystemList) diff --git a/ehpc/src/model/ListCurrentClientVersionResult.cc b/ehpc/src/model/ListCurrentClientVersionResult.cc index 8c9ef8c2a..fa921a786 100644 --- a/ehpc/src/model/ListCurrentClientVersionResult.cc +++ b/ehpc/src/model/ListCurrentClientVersionResult.cc @@ -35,10 +35,13 @@ ListCurrentClientVersionResult::~ListCurrentClientVersionResult() void ListCurrentClientVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClientVersion"].isNull()) clientVersion_ = value["ClientVersion"].asString(); diff --git a/ehpc/src/model/ListCustomImagesResult.cc b/ehpc/src/model/ListCustomImagesResult.cc index 2d6dec3c0..18a4462ab 100644 --- a/ehpc/src/model/ListCustomImagesResult.cc +++ b/ehpc/src/model/ListCustomImagesResult.cc @@ -35,10 +35,13 @@ ListCustomImagesResult::~ListCustomImagesResult() void ListCustomImagesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allImages = value["Images"]["ImageInfo"]; for (auto value : allImages) diff --git a/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc b/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc index 79ba8f4a8..b5fc12f7e 100644 --- a/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc +++ b/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc @@ -35,10 +35,13 @@ ListFileSystemWithMountTargetsResult::~ListFileSystemWithMountTargetsResult() void ListFileSystemWithMountTargetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFileSystemList = value["FileSystemList"]["FileSystems"]; for (auto value : allFileSystemList) diff --git a/ehpc/src/model/ListImagesResult.cc b/ehpc/src/model/ListImagesResult.cc index e12683fbc..2ae2bf30d 100644 --- a/ehpc/src/model/ListImagesResult.cc +++ b/ehpc/src/model/ListImagesResult.cc @@ -35,10 +35,13 @@ ListImagesResult::~ListImagesResult() void ListImagesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOsTags = value["OsTags"]["OsInfo"]; for (auto value : allOsTags) diff --git a/ehpc/src/model/ListInstalledSoftwareResult.cc b/ehpc/src/model/ListInstalledSoftwareResult.cc index 3efb26249..ba2c47e8e 100644 --- a/ehpc/src/model/ListInstalledSoftwareResult.cc +++ b/ehpc/src/model/ListInstalledSoftwareResult.cc @@ -35,10 +35,13 @@ ListInstalledSoftwareResult::~ListInstalledSoftwareResult() void ListInstalledSoftwareResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSoftwareList = value["SoftwareList"]["SoftwareListItem"]; for (auto value : allSoftwareList) diff --git a/ehpc/src/model/ListInvocationResultsResult.cc b/ehpc/src/model/ListInvocationResultsResult.cc index 5cc2c763b..428baa577 100644 --- a/ehpc/src/model/ListInvocationResultsResult.cc +++ b/ehpc/src/model/ListInvocationResultsResult.cc @@ -35,10 +35,13 @@ ListInvocationResultsResult::~ListInvocationResultsResult() void ListInvocationResultsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInvocationResults = value["InvocationResults"]["InvocationResult"]; for (auto value : allInvocationResults) diff --git a/ehpc/src/model/ListInvocationStatusResult.cc b/ehpc/src/model/ListInvocationStatusResult.cc index 6efa88322..ce54c0492 100644 --- a/ehpc/src/model/ListInvocationStatusResult.cc +++ b/ehpc/src/model/ListInvocationStatusResult.cc @@ -35,10 +35,13 @@ ListInvocationStatusResult::~ListInvocationStatusResult() void ListInvocationStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInvokeInstances = value["InvokeInstances"]["InvokeInstance"]; for (auto value : allInvokeInstances) diff --git a/ehpc/src/model/ListJobTemplatesResult.cc b/ehpc/src/model/ListJobTemplatesResult.cc index 3c337385a..25492d779 100644 --- a/ehpc/src/model/ListJobTemplatesResult.cc +++ b/ehpc/src/model/ListJobTemplatesResult.cc @@ -35,10 +35,13 @@ ListJobTemplatesResult::~ListJobTemplatesResult() void ListJobTemplatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplates = value["Templates"]["JobTemplates"]; for (auto value : allTemplates) diff --git a/ehpc/src/model/ListJobsResult.cc b/ehpc/src/model/ListJobsResult.cc index 49900250c..04c7c5436 100644 --- a/ehpc/src/model/ListJobsResult.cc +++ b/ehpc/src/model/ListJobsResult.cc @@ -35,10 +35,13 @@ ListJobsResult::~ListJobsResult() void ListJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobs = value["Jobs"]["JobInfo"]; for (auto value : allJobs) diff --git a/ehpc/src/model/ListNodesByQueueResult.cc b/ehpc/src/model/ListNodesByQueueResult.cc index 6489c3665..d37e7d3a1 100644 --- a/ehpc/src/model/ListNodesByQueueResult.cc +++ b/ehpc/src/model/ListNodesByQueueResult.cc @@ -35,10 +35,13 @@ ListNodesByQueueResult::~ListNodesByQueueResult() void ListNodesByQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNodes = value["Nodes"]["NodeInfo"]; for (auto value : allNodes) diff --git a/ehpc/src/model/ListNodesNoPagingResult.cc b/ehpc/src/model/ListNodesNoPagingResult.cc index 29347c72a..0dfc1fe16 100644 --- a/ehpc/src/model/ListNodesNoPagingResult.cc +++ b/ehpc/src/model/ListNodesNoPagingResult.cc @@ -35,10 +35,13 @@ ListNodesNoPagingResult::~ListNodesNoPagingResult() void ListNodesNoPagingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNodes = value["Nodes"]["NodeInfo"]; for (auto value : allNodes) diff --git a/ehpc/src/model/ListNodesResult.cc b/ehpc/src/model/ListNodesResult.cc index b18d2ab38..6268f3a7f 100644 --- a/ehpc/src/model/ListNodesResult.cc +++ b/ehpc/src/model/ListNodesResult.cc @@ -35,10 +35,13 @@ ListNodesResult::~ListNodesResult() void ListNodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNodes = value["Nodes"]["NodeInfo"]; for (auto value : allNodes) @@ -50,6 +53,8 @@ void ListNodesResult::parse(const std::string &payload) nodesObject.regionId = value["RegionId"].asString(); if(!value["HostName"].isNull()) nodesObject.hostName = value["HostName"].asString(); + if(!value["IpAddress"].isNull()) + nodesObject.ipAddress = value["IpAddress"].asString(); if(!value["Status"].isNull()) nodesObject.status = value["Status"].asString(); if(!value["Version"].isNull()) diff --git a/ehpc/src/model/ListPreferredEcsTypesResult.cc b/ehpc/src/model/ListPreferredEcsTypesResult.cc index d5f09357e..4202676d2 100644 --- a/ehpc/src/model/ListPreferredEcsTypesResult.cc +++ b/ehpc/src/model/ListPreferredEcsTypesResult.cc @@ -35,10 +35,13 @@ ListPreferredEcsTypesResult::~ListPreferredEcsTypesResult() void ListPreferredEcsTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSeries = value["Series"]["SeriesInfo"]; for (auto value : allSeries) diff --git a/ehpc/src/model/ListQueuesResult.cc b/ehpc/src/model/ListQueuesResult.cc index a0ec71010..37bd1cea8 100644 --- a/ehpc/src/model/ListQueuesResult.cc +++ b/ehpc/src/model/ListQueuesResult.cc @@ -35,10 +35,13 @@ ListQueuesResult::~ListQueuesResult() void ListQueuesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQueues = value["Queues"]["QueueInfo"]; for (auto value : allQueues) @@ -48,6 +51,10 @@ void ListQueuesResult::parse(const std::string &payload) queuesObject.queueName = value["QueueName"].asString(); if(!value["Type"].isNull()) queuesObject.type = value["Type"].asString(); + if(!value["ResourceGroupId"].isNull()) + queuesObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["ComputeInstanceType"].isNull()) + queuesObject.computeInstanceType = value["ComputeInstanceType"].asString(); queues_.push_back(queuesObject); } diff --git a/ehpc/src/model/ListRegionsResult.cc b/ehpc/src/model/ListRegionsResult.cc index df418685a..5099064ee 100644 --- a/ehpc/src/model/ListRegionsResult.cc +++ b/ehpc/src/model/ListRegionsResult.cc @@ -35,10 +35,13 @@ ListRegionsResult::~ListRegionsResult() void ListRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["RegionInfo"]; for (auto value : allRegions) diff --git a/ehpc/src/model/ListSoftwaresResult.cc b/ehpc/src/model/ListSoftwaresResult.cc index fec27ba60..338a101df 100644 --- a/ehpc/src/model/ListSoftwaresResult.cc +++ b/ehpc/src/model/ListSoftwaresResult.cc @@ -35,10 +35,13 @@ ListSoftwaresResult::~ListSoftwaresResult() void ListSoftwaresResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSoftwares = value["Softwares"]["SoftwareInfo"]; for (auto value : allSoftwares) diff --git a/ehpc/src/model/ListUsersResult.cc b/ehpc/src/model/ListUsersResult.cc index 774559926..4cf70254e 100644 --- a/ehpc/src/model/ListUsersResult.cc +++ b/ehpc/src/model/ListUsersResult.cc @@ -35,10 +35,13 @@ ListUsersResult::~ListUsersResult() void ListUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUsers = value["Users"]["UserInfo"]; for (auto value : allUsers) diff --git a/ehpc/src/model/ListVolumesResult.cc b/ehpc/src/model/ListVolumesResult.cc index 5a881d991..9536dfbb6 100644 --- a/ehpc/src/model/ListVolumesResult.cc +++ b/ehpc/src/model/ListVolumesResult.cc @@ -35,10 +35,13 @@ ListVolumesResult::~ListVolumesResult() void ListVolumesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVolumes = value["Volumes"]["VolumeInfo"]; for (auto value : allVolumes) diff --git a/ehpc/src/model/ModifyClusterAttributesResult.cc b/ehpc/src/model/ModifyClusterAttributesResult.cc index c27dcebca..c230871f6 100644 --- a/ehpc/src/model/ModifyClusterAttributesResult.cc +++ b/ehpc/src/model/ModifyClusterAttributesResult.cc @@ -35,10 +35,13 @@ ModifyClusterAttributesResult::~ModifyClusterAttributesResult() void ModifyClusterAttributesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/ModifyContainerAppAttributesResult.cc b/ehpc/src/model/ModifyContainerAppAttributesResult.cc index 38cb588ed..fe9e4fc94 100644 --- a/ehpc/src/model/ModifyContainerAppAttributesResult.cc +++ b/ehpc/src/model/ModifyContainerAppAttributesResult.cc @@ -35,10 +35,13 @@ ModifyContainerAppAttributesResult::~ModifyContainerAppAttributesResult() void ModifyContainerAppAttributesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/ModifyImageGatewayConfigResult.cc b/ehpc/src/model/ModifyImageGatewayConfigResult.cc index 2f4fd0eac..88d520fbb 100644 --- a/ehpc/src/model/ModifyImageGatewayConfigResult.cc +++ b/ehpc/src/model/ModifyImageGatewayConfigResult.cc @@ -35,10 +35,13 @@ ModifyImageGatewayConfigResult::~ModifyImageGatewayConfigResult() void ModifyImageGatewayConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/ModifyUserGroupsResult.cc b/ehpc/src/model/ModifyUserGroupsResult.cc index 4e3590b79..eb712c689 100644 --- a/ehpc/src/model/ModifyUserGroupsResult.cc +++ b/ehpc/src/model/ModifyUserGroupsResult.cc @@ -35,10 +35,13 @@ ModifyUserGroupsResult::~ModifyUserGroupsResult() void ModifyUserGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/ModifyUserPasswordsResult.cc b/ehpc/src/model/ModifyUserPasswordsResult.cc index 370f3cd5a..70cbff04e 100644 --- a/ehpc/src/model/ModifyUserPasswordsResult.cc +++ b/ehpc/src/model/ModifyUserPasswordsResult.cc @@ -35,10 +35,13 @@ ModifyUserPasswordsResult::~ModifyUserPasswordsResult() void ModifyUserPasswordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/ModifyVisualServicePasswdResult.cc b/ehpc/src/model/ModifyVisualServicePasswdResult.cc index 74697f2e7..2e146920a 100644 --- a/ehpc/src/model/ModifyVisualServicePasswdResult.cc +++ b/ehpc/src/model/ModifyVisualServicePasswdResult.cc @@ -35,10 +35,13 @@ ModifyVisualServicePasswdResult::~ModifyVisualServicePasswdResult() void ModifyVisualServicePasswdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); diff --git a/ehpc/src/model/MountNFSRequest.cc b/ehpc/src/model/MountNFSRequest.cc new file mode 100644 index 000000000..51f0c70c7 --- /dev/null +++ b/ehpc/src/model/MountNFSRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::MountNFSRequest; + +MountNFSRequest::MountNFSRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "MountNFS") +{} + +MountNFSRequest::~MountNFSRequest() +{} + +std::string MountNFSRequest::getInstanceId()const +{ + return instanceId_; +} + +void MountNFSRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string MountNFSRequest::getNfsDir()const +{ + return nfsDir_; +} + +void MountNFSRequest::setNfsDir(const std::string& nfsDir) +{ + nfsDir_ = nfsDir; + setCoreParameter("NfsDir", nfsDir); +} + +std::string MountNFSRequest::getMountDir()const +{ + return mountDir_; +} + +void MountNFSRequest::setMountDir(const std::string& mountDir) +{ + mountDir_ = mountDir; + setCoreParameter("MountDir", mountDir); +} + +std::string MountNFSRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void MountNFSRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/MountNFSResult.cc b/ehpc/src/model/MountNFSResult.cc new file mode 100644 index 000000000..c1547d7dd --- /dev/null +++ b/ehpc/src/model/MountNFSResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +MountNFSResult::MountNFSResult() : + ServiceResult() +{} + +MountNFSResult::MountNFSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MountNFSResult::~MountNFSResult() +{} + +void MountNFSResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["InvokeId"].isNull()) + invokeId_ = value["InvokeId"].asString(); + +} + +std::string MountNFSResult::getInvokeId()const +{ + return invokeId_; +} + diff --git a/ehpc/src/model/PullImageResult.cc b/ehpc/src/model/PullImageResult.cc index 1bc52a599..e69f05754 100644 --- a/ehpc/src/model/PullImageResult.cc +++ b/ehpc/src/model/PullImageResult.cc @@ -35,10 +35,13 @@ PullImageResult::~PullImageResult() void PullImageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/QueryServicePackAndPriceRequest.cc b/ehpc/src/model/QueryServicePackAndPriceRequest.cc new file mode 100644 index 000000000..c7a6e2d14 --- /dev/null +++ b/ehpc/src/model/QueryServicePackAndPriceRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::QueryServicePackAndPriceRequest; + +QueryServicePackAndPriceRequest::QueryServicePackAndPriceRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "QueryServicePackAndPrice") +{} + +QueryServicePackAndPriceRequest::~QueryServicePackAndPriceRequest() +{} + +std::string QueryServicePackAndPriceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryServicePackAndPriceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/QueryServicePackAndPriceResult.cc b/ehpc/src/model/QueryServicePackAndPriceResult.cc new file mode 100644 index 000000000..720709b52 --- /dev/null +++ b/ehpc/src/model/QueryServicePackAndPriceResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +QueryServicePackAndPriceResult::QueryServicePackAndPriceResult() : + ServiceResult() +{} + +QueryServicePackAndPriceResult::QueryServicePackAndPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryServicePackAndPriceResult::~QueryServicePackAndPriceResult() +{} + +void QueryServicePackAndPriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allServicePack = value["ServicePack"]["ServicePackInfo"]; + for (auto value : allServicePack) + { + ServicePackInfo servicePackObject; + if(!value["InstanceName"].isNull()) + servicePackObject.instanceName = value["InstanceName"].asString(); + if(!value["Capacity"].isNull()) + servicePackObject.capacity = std::stoi(value["Capacity"].asString()); + if(!value["StartTime"].isNull()) + servicePackObject.startTime = std::stoi(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + servicePackObject.endTime = std::stoi(value["EndTime"].asString()); + servicePack_.push_back(servicePackObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["TradePrice"].isNull()) + tradePrice_ = std::stof(value["TradePrice"].asString()); + if(!value["OriginalPrice"].isNull()) + originalPrice_ = std::stof(value["OriginalPrice"].asString()); + if(!value["DiscountPrice"].isNull()) + discountPrice_ = std::stof(value["DiscountPrice"].asString()); + if(!value["Currency"].isNull()) + currency_ = value["Currency"].asString(); + if(!value["OriginalAmount"].isNull()) + originalAmount_ = std::stoi(value["OriginalAmount"].asString()); + if(!value["ChargeAmount"].isNull()) + chargeAmount_ = std::stoi(value["ChargeAmount"].asString()); + +} + +float QueryServicePackAndPriceResult::getOriginalPrice()const +{ + return originalPrice_; +} + +float QueryServicePackAndPriceResult::getDiscountPrice()const +{ + return discountPrice_; +} + +std::string QueryServicePackAndPriceResult::getCurrency()const +{ + return currency_; +} + +std::vector QueryServicePackAndPriceResult::getServicePack()const +{ + return servicePack_; +} + +std::string QueryServicePackAndPriceResult::getRegionId()const +{ + return regionId_; +} + +float QueryServicePackAndPriceResult::getTradePrice()const +{ + return tradePrice_; +} + +int QueryServicePackAndPriceResult::getOriginalAmount()const +{ + return originalAmount_; +} + +int QueryServicePackAndPriceResult::getChargeAmount()const +{ + return chargeAmount_; +} + diff --git a/ehpc/src/model/RecoverClusterResult.cc b/ehpc/src/model/RecoverClusterResult.cc index bfe2fa693..eef2e78b7 100644 --- a/ehpc/src/model/RecoverClusterResult.cc +++ b/ehpc/src/model/RecoverClusterResult.cc @@ -35,10 +35,13 @@ RecoverClusterResult::~RecoverClusterResult() void RecoverClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/RerunJobsResult.cc b/ehpc/src/model/RerunJobsResult.cc index eb38e0249..6140ca35e 100644 --- a/ehpc/src/model/RerunJobsResult.cc +++ b/ehpc/src/model/RerunJobsResult.cc @@ -35,10 +35,13 @@ RerunJobsResult::~RerunJobsResult() void RerunJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/ResetNodesResult.cc b/ehpc/src/model/ResetNodesResult.cc index 1128eb1ce..7fa8ffb9d 100644 --- a/ehpc/src/model/ResetNodesResult.cc +++ b/ehpc/src/model/ResetNodesResult.cc @@ -35,10 +35,13 @@ ResetNodesResult::~ResetNodesResult() void ResetNodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/RunCloudMetricProfilingResult.cc b/ehpc/src/model/RunCloudMetricProfilingResult.cc index ee63e9454..629be8a69 100644 --- a/ehpc/src/model/RunCloudMetricProfilingResult.cc +++ b/ehpc/src/model/RunCloudMetricProfilingResult.cc @@ -35,10 +35,13 @@ RunCloudMetricProfilingResult::~RunCloudMetricProfilingResult() void RunCloudMetricProfilingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/SetAutoScaleConfigResult.cc b/ehpc/src/model/SetAutoScaleConfigResult.cc index cb041f234..a06daa091 100644 --- a/ehpc/src/model/SetAutoScaleConfigResult.cc +++ b/ehpc/src/model/SetAutoScaleConfigResult.cc @@ -35,10 +35,13 @@ SetAutoScaleConfigResult::~SetAutoScaleConfigResult() void SetAutoScaleConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/SetGWSInstanceUserRequest.cc b/ehpc/src/model/SetGWSInstanceUserRequest.cc new file mode 100644 index 000000000..6ecdbb947 --- /dev/null +++ b/ehpc/src/model/SetGWSInstanceUserRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::SetGWSInstanceUserRequest; + +SetGWSInstanceUserRequest::SetGWSInstanceUserRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "SetGWSInstanceUser") +{} + +SetGWSInstanceUserRequest::~SetGWSInstanceUserRequest() +{} + +std::string SetGWSInstanceUserRequest::getInstanceId()const +{ + return instanceId_; +} + +void SetGWSInstanceUserRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string SetGWSInstanceUserRequest::getUserUid()const +{ + return userUid_; +} + +void SetGWSInstanceUserRequest::setUserUid(const std::string& userUid) +{ + userUid_ = userUid; + setCoreParameter("UserUid", userUid); +} + +std::string SetGWSInstanceUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SetGWSInstanceUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SetGWSInstanceUserRequest::getUserName()const +{ + return userName_; +} + +void SetGWSInstanceUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/ehpc/src/model/SetGWSInstanceUserResult.cc b/ehpc/src/model/SetGWSInstanceUserResult.cc new file mode 100644 index 000000000..9d6f84322 --- /dev/null +++ b/ehpc/src/model/SetGWSInstanceUserResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SetGWSInstanceUserResult::SetGWSInstanceUserResult() : + ServiceResult() +{} + +SetGWSInstanceUserResult::SetGWSInstanceUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetGWSInstanceUserResult::~SetGWSInstanceUserResult() +{} + +void SetGWSInstanceUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/SetJobUserResult.cc b/ehpc/src/model/SetJobUserResult.cc index fceaca31e..15665fa0e 100644 --- a/ehpc/src/model/SetJobUserResult.cc +++ b/ehpc/src/model/SetJobUserResult.cc @@ -35,10 +35,13 @@ SetJobUserResult::~SetJobUserResult() void SetJobUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/SetQueueResult.cc b/ehpc/src/model/SetQueueResult.cc index b35a58186..d864b872e 100644 --- a/ehpc/src/model/SetQueueResult.cc +++ b/ehpc/src/model/SetQueueResult.cc @@ -35,10 +35,13 @@ SetQueueResult::~SetQueueResult() void SetQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/StartClusterResult.cc b/ehpc/src/model/StartClusterResult.cc index f5e4ef81e..d7540cc43 100644 --- a/ehpc/src/model/StartClusterResult.cc +++ b/ehpc/src/model/StartClusterResult.cc @@ -35,10 +35,13 @@ StartClusterResult::~StartClusterResult() void StartClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/StartGWSInstanceRequest.cc b/ehpc/src/model/StartGWSInstanceRequest.cc new file mode 100644 index 000000000..d8a4bdf08 --- /dev/null +++ b/ehpc/src/model/StartGWSInstanceRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::StartGWSInstanceRequest; + +StartGWSInstanceRequest::StartGWSInstanceRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "StartGWSInstance") +{} + +StartGWSInstanceRequest::~StartGWSInstanceRequest() +{} + +std::string StartGWSInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartGWSInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string StartGWSInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/StartGWSInstanceResult.cc b/ehpc/src/model/StartGWSInstanceResult.cc new file mode 100644 index 000000000..7264a54a8 --- /dev/null +++ b/ehpc/src/model/StartGWSInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StartGWSInstanceResult::StartGWSInstanceResult() : + ServiceResult() +{} + +StartGWSInstanceResult::StartGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartGWSInstanceResult::~StartGWSInstanceResult() +{} + +void StartGWSInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/StartNodesResult.cc b/ehpc/src/model/StartNodesResult.cc index 20427922b..9b31dd664 100644 --- a/ehpc/src/model/StartNodesResult.cc +++ b/ehpc/src/model/StartNodesResult.cc @@ -35,10 +35,13 @@ StartNodesResult::~StartNodesResult() void StartNodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/StartVisualServiceResult.cc b/ehpc/src/model/StartVisualServiceResult.cc index 72b183460..fbdc647e3 100644 --- a/ehpc/src/model/StartVisualServiceResult.cc +++ b/ehpc/src/model/StartVisualServiceResult.cc @@ -35,10 +35,13 @@ StartVisualServiceResult::~StartVisualServiceResult() void StartVisualServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); diff --git a/ehpc/src/model/StopClusterResult.cc b/ehpc/src/model/StopClusterResult.cc index 12fe2d720..495827f19 100644 --- a/ehpc/src/model/StopClusterResult.cc +++ b/ehpc/src/model/StopClusterResult.cc @@ -35,10 +35,13 @@ StopClusterResult::~StopClusterResult() void StopClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/StopGWSInstanceRequest.cc b/ehpc/src/model/StopGWSInstanceRequest.cc new file mode 100644 index 000000000..196a8d09f --- /dev/null +++ b/ehpc/src/model/StopGWSInstanceRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::EHPC::Model::StopGWSInstanceRequest; + +StopGWSInstanceRequest::StopGWSInstanceRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "StopGWSInstance") +{} + +StopGWSInstanceRequest::~StopGWSInstanceRequest() +{} + +std::string StopGWSInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void StopGWSInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string StopGWSInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StopGWSInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/StopGWSInstanceResult.cc b/ehpc/src/model/StopGWSInstanceResult.cc new file mode 100644 index 000000000..acab19cbb --- /dev/null +++ b/ehpc/src/model/StopGWSInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StopGWSInstanceResult::StopGWSInstanceResult() : + ServiceResult() +{} + +StopGWSInstanceResult::StopGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopGWSInstanceResult::~StopGWSInstanceResult() +{} + +void StopGWSInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/StopJobsResult.cc b/ehpc/src/model/StopJobsResult.cc index 1f825eaa8..061f553f3 100644 --- a/ehpc/src/model/StopJobsResult.cc +++ b/ehpc/src/model/StopJobsResult.cc @@ -35,10 +35,13 @@ StopJobsResult::~StopJobsResult() void StopJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/StopNodesResult.cc b/ehpc/src/model/StopNodesResult.cc index 6bdce0d02..e0524c261 100644 --- a/ehpc/src/model/StopNodesResult.cc +++ b/ehpc/src/model/StopNodesResult.cc @@ -35,10 +35,13 @@ StopNodesResult::~StopNodesResult() void StopNodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/StopVisualServiceResult.cc b/ehpc/src/model/StopVisualServiceResult.cc index e9fe15e83..7abea20fe 100644 --- a/ehpc/src/model/StopVisualServiceResult.cc +++ b/ehpc/src/model/StopVisualServiceResult.cc @@ -35,10 +35,13 @@ StopVisualServiceResult::~StopVisualServiceResult() void StopVisualServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); diff --git a/ehpc/src/model/SubmitJobResult.cc b/ehpc/src/model/SubmitJobResult.cc index 081643a28..a1298becc 100644 --- a/ehpc/src/model/SubmitJobResult.cc +++ b/ehpc/src/model/SubmitJobResult.cc @@ -35,10 +35,13 @@ SubmitJobResult::~SubmitJobResult() void SubmitJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/ehpc/src/model/UninstallSoftwareResult.cc b/ehpc/src/model/UninstallSoftwareResult.cc index 4e2cd4d3a..57f70073a 100644 --- a/ehpc/src/model/UninstallSoftwareResult.cc +++ b/ehpc/src/model/UninstallSoftwareResult.cc @@ -35,10 +35,13 @@ UninstallSoftwareResult::~UninstallSoftwareResult() void UninstallSoftwareResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/UpdateClusterVolumesResult.cc b/ehpc/src/model/UpdateClusterVolumesResult.cc index ed19db772..df39fa317 100644 --- a/ehpc/src/model/UpdateClusterVolumesResult.cc +++ b/ehpc/src/model/UpdateClusterVolumesResult.cc @@ -35,10 +35,13 @@ UpdateClusterVolumesResult::~UpdateClusterVolumesResult() void UpdateClusterVolumesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ehpc/src/model/UpdateQueueConfigRequest.cc b/ehpc/src/model/UpdateQueueConfigRequest.cc new file mode 100644 index 000000000..d43885343 --- /dev/null +++ b/ehpc/src/model/UpdateQueueConfigRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::UpdateQueueConfigRequest; + +UpdateQueueConfigRequest::UpdateQueueConfigRequest() : + RpcServiceRequest("ehpc", "2018-04-12", "UpdateQueueConfig") +{} + +UpdateQueueConfigRequest::~UpdateQueueConfigRequest() +{} + +std::string UpdateQueueConfigRequest::getQueueName()const +{ + return queueName_; +} + +void UpdateQueueConfigRequest::setQueueName(const std::string& queueName) +{ + queueName_ = queueName; + setCoreParameter("QueueName", queueName); +} + +std::string UpdateQueueConfigRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void UpdateQueueConfigRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string UpdateQueueConfigRequest::getClusterId()const +{ + return clusterId_; +} + +void UpdateQueueConfigRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string UpdateQueueConfigRequest::getComputeInstanceType()const +{ + return computeInstanceType_; +} + +void UpdateQueueConfigRequest::setComputeInstanceType(const std::string& computeInstanceType) +{ + computeInstanceType_ = computeInstanceType; + setCoreParameter("ComputeInstanceType", computeInstanceType); +} + +std::string UpdateQueueConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateQueueConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/ehpc/src/model/UpdateQueueConfigResult.cc b/ehpc/src/model/UpdateQueueConfigResult.cc new file mode 100644 index 000000000..629232a56 --- /dev/null +++ b/ehpc/src/model/UpdateQueueConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +UpdateQueueConfigResult::UpdateQueueConfigResult() : + ServiceResult() +{} + +UpdateQueueConfigResult::UpdateQueueConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateQueueConfigResult::~UpdateQueueConfigResult() +{} + +void UpdateQueueConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/UpgradeClientResult.cc b/ehpc/src/model/UpgradeClientResult.cc index 3aa1561c2..94475eaa1 100644 --- a/ehpc/src/model/UpgradeClientResult.cc +++ b/ehpc/src/model/UpgradeClientResult.cc @@ -35,10 +35,13 @@ UpgradeClientResult::~UpgradeClientResult() void UpgradeClientResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/CMakeLists.txt b/emr/CMakeLists.txt index 7b8f10f57..b95add2c2 100644 --- a/emr/CMakeLists.txt +++ b/emr/CMakeLists.txt @@ -23,26 +23,12 @@ set(emr_public_header set(emr_public_header_model include/alibabacloud/emr/model/CreateFlowRequest.h include/alibabacloud/emr/model/CreateFlowResult.h - include/alibabacloud/emr/model/DescribeDataSourceCommandRequest.h - include/alibabacloud/emr/model/DescribeDataSourceCommandResult.h - include/alibabacloud/emr/model/ListUsersRequest.h - include/alibabacloud/emr/model/ListUsersResult.h include/alibabacloud/emr/model/GetJobOutputStatisticInfoRequest.h include/alibabacloud/emr/model/GetJobOutputStatisticInfoResult.h - include/alibabacloud/emr/model/ListResourcePoolRequest.h - include/alibabacloud/emr/model/ListResourcePoolResult.h - include/alibabacloud/emr/model/ListFlowClusterHostRequest.h - include/alibabacloud/emr/model/ListFlowClusterHostResult.h - include/alibabacloud/emr/model/KillFlowRequest.h - include/alibabacloud/emr/model/KillFlowResult.h - include/alibabacloud/emr/model/RunOpsCommandRequest.h - include/alibabacloud/emr/model/RunOpsCommandResult.h + include/alibabacloud/emr/model/RemoveBackupPlanRequest.h + include/alibabacloud/emr/model/RemoveBackupPlanResult.h include/alibabacloud/emr/model/DescribeClusterStatisticsRequest.h include/alibabacloud/emr/model/DescribeClusterStatisticsResult.h - include/alibabacloud/emr/model/ModifyExecutionPlanJobInfoRequest.h - include/alibabacloud/emr/model/ModifyExecutionPlanJobInfoResult.h - include/alibabacloud/emr/model/DeleteClusterTemplateRequest.h - include/alibabacloud/emr/model/DeleteClusterTemplateResult.h include/alibabacloud/emr/model/CancelOrderRequest.h include/alibabacloud/emr/model/CancelOrderResult.h include/alibabacloud/emr/model/CreateAlertDingDingGroupRequest.h @@ -53,282 +39,192 @@ set(emr_public_header_model include/alibabacloud/emr/model/StartFlowResult.h include/alibabacloud/emr/model/ListClusterServiceConfigHistoryRequest.h include/alibabacloud/emr/model/ListClusterServiceConfigHistoryResult.h - include/alibabacloud/emr/model/ListDataSourceSchemaTableRequest.h - include/alibabacloud/emr/model/ListDataSourceSchemaTableResult.h - include/alibabacloud/emr/model/CreateJobRequest.h - include/alibabacloud/emr/model/CreateJobResult.h - include/alibabacloud/emr/model/AttachClusterForNoteRequest.h - include/alibabacloud/emr/model/AttachClusterForNoteResult.h + include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingRequest.h + include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingResult.h + include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.h + include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminResult.h include/alibabacloud/emr/model/QueryAlarmHistoryRequest.h include/alibabacloud/emr/model/QueryAlarmHistoryResult.h include/alibabacloud/emr/model/ListJobExecutionPlanHierarchyRequest.h include/alibabacloud/emr/model/ListJobExecutionPlanHierarchyResult.h - include/alibabacloud/emr/model/ListExecutionPlansRequest.h - include/alibabacloud/emr/model/ListExecutionPlansResult.h - include/alibabacloud/emr/model/ListJobMigrateInfoRequest.h - include/alibabacloud/emr/model/ListJobMigrateInfoResult.h - include/alibabacloud/emr/model/CloneFlowRequest.h - include/alibabacloud/emr/model/CloneFlowResult.h - include/alibabacloud/emr/model/ListEmrMainVersionRequest.h - include/alibabacloud/emr/model/ListEmrMainVersionResult.h - include/alibabacloud/emr/model/CreateClusterTemplateRequest.h - include/alibabacloud/emr/model/CreateClusterTemplateResult.h include/alibabacloud/emr/model/MetastoreDropDatabaseRequest.h include/alibabacloud/emr/model/MetastoreDropDatabaseResult.h - include/alibabacloud/emr/model/ListAlertContactsRequest.h - include/alibabacloud/emr/model/ListAlertContactsResult.h - include/alibabacloud/emr/model/MetastoreDescribeDatabaseRequest.h - include/alibabacloud/emr/model/MetastoreDescribeDatabaseResult.h include/alibabacloud/emr/model/ListFlowInstanceRequest.h include/alibabacloud/emr/model/ListFlowInstanceResult.h + include/alibabacloud/emr/model/MetastoreDescribeDatabaseRequest.h + include/alibabacloud/emr/model/MetastoreDescribeDatabaseResult.h + include/alibabacloud/emr/model/PageListUsersRequest.h + include/alibabacloud/emr/model/PageListUsersResult.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigHistoryRequest.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigHistoryResult.h include/alibabacloud/emr/model/ListJobExecutionInstanceTrendRequest.h include/alibabacloud/emr/model/ListJobExecutionInstanceTrendResult.h include/alibabacloud/emr/model/MetastoreDescribeTaskRequest.h include/alibabacloud/emr/model/MetastoreDescribeTaskResult.h - include/alibabacloud/emr/model/DescribeClusterServiceConfigHistoryRequest.h - include/alibabacloud/emr/model/DescribeClusterServiceConfigHistoryResult.h + include/alibabacloud/emr/model/QueryUserActionsPolicyRequest.h + include/alibabacloud/emr/model/QueryUserActionsPolicyResult.h include/alibabacloud/emr/model/GetJobMigrateResultRequest.h include/alibabacloud/emr/model/GetJobMigrateResultResult.h - include/alibabacloud/emr/model/GetHdfsCapacityStatisticInfoRequest.h - include/alibabacloud/emr/model/GetHdfsCapacityStatisticInfoResult.h - include/alibabacloud/emr/model/ResumeExecutionPlanSchedulerRequest.h - include/alibabacloud/emr/model/ResumeExecutionPlanSchedulerResult.h - include/alibabacloud/emr/model/ListFlowNodeInstanceRequest.h - include/alibabacloud/emr/model/ListFlowNodeInstanceResult.h include/alibabacloud/emr/model/DescribeDataSourceRequest.h include/alibabacloud/emr/model/DescribeDataSourceResult.h - include/alibabacloud/emr/model/ListJobsRequest.h - include/alibabacloud/emr/model/ListJobsResult.h + include/alibabacloud/emr/model/ListFlowNodeInstanceRequest.h + include/alibabacloud/emr/model/ListFlowNodeInstanceResult.h include/alibabacloud/emr/model/DescribeFlowVariableCollectionRequest.h include/alibabacloud/emr/model/DescribeFlowVariableCollectionResult.h include/alibabacloud/emr/model/CreateAlertUserGroupRequest.h include/alibabacloud/emr/model/CreateAlertUserGroupResult.h include/alibabacloud/emr/model/DescribeScalingActivityRequest.h include/alibabacloud/emr/model/DescribeScalingActivityResult.h - include/alibabacloud/emr/model/ListEmrAvailableResourceRequest.h - include/alibabacloud/emr/model/ListEmrAvailableResourceResult.h - include/alibabacloud/emr/model/ReleaseETLJobRequest.h - include/alibabacloud/emr/model/ReleaseETLJobResult.h + include/alibabacloud/emr/model/ListClusterInstalledServiceRequest.h + include/alibabacloud/emr/model/ListClusterInstalledServiceResult.h include/alibabacloud/emr/model/DescribeEmrMainVersionRequest.h include/alibabacloud/emr/model/DescribeEmrMainVersionResult.h - include/alibabacloud/emr/model/DescribeClusterServiceConfigTagRequest.h - include/alibabacloud/emr/model/DescribeClusterServiceConfigTagResult.h include/alibabacloud/emr/model/DeleteETLJobRequest.h include/alibabacloud/emr/model/DeleteETLJobResult.h - include/alibabacloud/emr/model/RunClusterServiceActionRequest.h - include/alibabacloud/emr/model/RunClusterServiceActionResult.h - include/alibabacloud/emr/model/SuspendFlowRequest.h - include/alibabacloud/emr/model/SuspendFlowResult.h include/alibabacloud/emr/model/MetastoreDataPreviewRequest.h include/alibabacloud/emr/model/MetastoreDataPreviewResult.h - include/alibabacloud/emr/model/AuthorizeSecurityGroupRequest.h - include/alibabacloud/emr/model/AuthorizeSecurityGroupResult.h - include/alibabacloud/emr/model/ModifyClusterTemplateRequest.h - include/alibabacloud/emr/model/ModifyClusterTemplateResult.h include/alibabacloud/emr/model/AttachPubIpRequest.h include/alibabacloud/emr/model/AttachPubIpResult.h + include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingRequest.h + include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingResult.h include/alibabacloud/emr/model/RunExecutionPlanRequest.h include/alibabacloud/emr/model/RunExecutionPlanResult.h - include/alibabacloud/emr/model/ContextQueryLogRequest.h - include/alibabacloud/emr/model/ContextQueryLogResult.h - include/alibabacloud/emr/model/ListClusterOperationHostRequest.h - include/alibabacloud/emr/model/ListClusterOperationHostResult.h include/alibabacloud/emr/model/ListClusterTemplatesRequest.h include/alibabacloud/emr/model/ListClusterTemplatesResult.h include/alibabacloud/emr/model/DescribeFlowCategoryRequest.h include/alibabacloud/emr/model/DescribeFlowCategoryResult.h + include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerRequest.h + include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerResult.h include/alibabacloud/emr/model/ModifyFlowJobRequest.h include/alibabacloud/emr/model/ModifyFlowJobResult.h - include/alibabacloud/emr/model/ListScalingRuleRequest.h - include/alibabacloud/emr/model/ListScalingRuleResult.h - include/alibabacloud/emr/model/DeleteFlowRequest.h - include/alibabacloud/emr/model/DeleteFlowResult.h - include/alibabacloud/emr/model/DeleteDataSourceRequest.h - include/alibabacloud/emr/model/DeleteDataSourceResult.h - include/alibabacloud/emr/model/RunETLJobRequest.h - include/alibabacloud/emr/model/RunETLJobResult.h + include/alibabacloud/emr/model/RemoveBackupRuleRequest.h + include/alibabacloud/emr/model/RemoveBackupRuleResult.h + include/alibabacloud/emr/model/RetrySyncUserAccountRequest.h + include/alibabacloud/emr/model/RetrySyncUserAccountResult.h include/alibabacloud/emr/model/CreateClusterHostGroupRequest.h include/alibabacloud/emr/model/CreateClusterHostGroupResult.h include/alibabacloud/emr/model/DescribeClusterTemplateRequest.h include/alibabacloud/emr/model/DescribeClusterTemplateResult.h include/alibabacloud/emr/model/ModifyScalingRuleRequest.h include/alibabacloud/emr/model/ModifyScalingRuleResult.h - include/alibabacloud/emr/model/ListClusterServiceComponentHealthInfoRequest.h - include/alibabacloud/emr/model/ListClusterServiceComponentHealthInfoResult.h - include/alibabacloud/emr/model/ListFlowProjectRequest.h - include/alibabacloud/emr/model/ListFlowProjectResult.h include/alibabacloud/emr/model/RemoveClusterHostsRequest.h include/alibabacloud/emr/model/RemoveClusterHostsResult.h include/alibabacloud/emr/model/ListETLJobTriggerEntityRequest.h include/alibabacloud/emr/model/ListETLJobTriggerEntityResult.h - include/alibabacloud/emr/model/ModifyAlertDingDingGroupRequest.h - include/alibabacloud/emr/model/ModifyAlertDingDingGroupResult.h - include/alibabacloud/emr/model/CreateETLJobRequest.h - include/alibabacloud/emr/model/CreateETLJobResult.h + include/alibabacloud/emr/model/AddClusterServiceForAdminRequest.h + include/alibabacloud/emr/model/AddClusterServiceForAdminResult.h + include/alibabacloud/emr/model/DescribeHostPoolRequest.h + include/alibabacloud/emr/model/DescribeHostPoolResult.h include/alibabacloud/emr/model/SaveParagraphRequest.h include/alibabacloud/emr/model/SaveParagraphResult.h include/alibabacloud/emr/model/DeleteParagraphRequest.h include/alibabacloud/emr/model/DeleteParagraphResult.h - include/alibabacloud/emr/model/ListFlowJobHistoryRequest.h - include/alibabacloud/emr/model/ListFlowJobHistoryResult.h - include/alibabacloud/emr/model/CreateClusterScriptRequest.h - include/alibabacloud/emr/model/CreateClusterScriptResult.h - include/alibabacloud/emr/model/SubmitFlowRequest.h - include/alibabacloud/emr/model/SubmitFlowResult.h include/alibabacloud/emr/model/GetQueueInputStatisticInfoRequest.h include/alibabacloud/emr/model/GetQueueInputStatisticInfoResult.h - include/alibabacloud/emr/model/ListClusterServiceQuickLinkRequest.h - include/alibabacloud/emr/model/ListClusterServiceQuickLinkResult.h include/alibabacloud/emr/model/MetastoreUpdateTableRequest.h include/alibabacloud/emr/model/MetastoreUpdateTableResult.h + include/alibabacloud/emr/model/GetBackupRuleInfoRequest.h + include/alibabacloud/emr/model/GetBackupRuleInfoResult.h + include/alibabacloud/emr/model/ListClusterServiceQuickLinkRequest.h + include/alibabacloud/emr/model/ListClusterServiceQuickLinkResult.h include/alibabacloud/emr/model/ListClusterHostGroupRequest.h include/alibabacloud/emr/model/ListClusterHostGroupResult.h include/alibabacloud/emr/model/StopParagraphRequest.h include/alibabacloud/emr/model/StopParagraphResult.h include/alibabacloud/emr/model/MetastoreDeleteKafkaTopicRequest.h include/alibabacloud/emr/model/MetastoreDeleteKafkaTopicResult.h - include/alibabacloud/emr/model/ResumeFlowRequest.h - include/alibabacloud/emr/model/ResumeFlowResult.h - include/alibabacloud/emr/model/DeleteFlowProjectByIdRequest.h - include/alibabacloud/emr/model/DeleteFlowProjectByIdResult.h include/alibabacloud/emr/model/SuspendExecutionPlanInstanceRequest.h include/alibabacloud/emr/model/SuspendExecutionPlanInstanceResult.h - include/alibabacloud/emr/model/GetUserSubmissionStatisticInfoRequest.h - include/alibabacloud/emr/model/GetUserSubmissionStatisticInfoResult.h include/alibabacloud/emr/model/DeleteScalingTaskGroupRequest.h include/alibabacloud/emr/model/DeleteScalingTaskGroupResult.h - include/alibabacloud/emr/model/DescribeParagraphRequest.h - include/alibabacloud/emr/model/DescribeParagraphResult.h - include/alibabacloud/emr/model/MetastoreCreateDatabaseRequest.h - include/alibabacloud/emr/model/MetastoreCreateDatabaseResult.h + include/alibabacloud/emr/model/GetUserSubmissionStatisticInfoRequest.h + include/alibabacloud/emr/model/GetUserSubmissionStatisticInfoResult.h include/alibabacloud/emr/model/ListFailureJobExecutionInstancesRequest.h include/alibabacloud/emr/model/ListFailureJobExecutionInstancesResult.h - include/alibabacloud/emr/model/DeleteFlowJobRequest.h - include/alibabacloud/emr/model/DeleteFlowJobResult.h - include/alibabacloud/emr/model/RefreshClusterResourcePoolRequest.h - include/alibabacloud/emr/model/RefreshClusterResourcePoolResult.h - include/alibabacloud/emr/model/ModifyJobRequest.h - include/alibabacloud/emr/model/ModifyJobResult.h + include/alibabacloud/emr/model/CreateBackupPlanRequest.h + include/alibabacloud/emr/model/CreateBackupPlanResult.h + include/alibabacloud/emr/model/ListHpHostRequest.h + include/alibabacloud/emr/model/ListHpHostResult.h include/alibabacloud/emr/model/MetastoreCreateDataResourceRequest.h include/alibabacloud/emr/model/MetastoreCreateDataResourceResult.h + include/alibabacloud/emr/model/ListClusterHostComponentForAdminRequest.h + include/alibabacloud/emr/model/ListClusterHostComponentForAdminResult.h include/alibabacloud/emr/model/KillETLJobInstanceRequest.h include/alibabacloud/emr/model/KillETLJobInstanceResult.h - include/alibabacloud/emr/model/DescribeFlowJobRequest.h - include/alibabacloud/emr/model/DescribeFlowJobResult.h include/alibabacloud/emr/model/RetryExecutionPlanInstanceRequest.h include/alibabacloud/emr/model/RetryExecutionPlanInstanceResult.h - include/alibabacloud/emr/model/RerunFlowRequest.h - include/alibabacloud/emr/model/RerunFlowResult.h - include/alibabacloud/emr/model/MetastoreRetryTaskRequest.h - include/alibabacloud/emr/model/MetastoreRetryTaskResult.h + include/alibabacloud/emr/model/ListHostPoolRequest.h + include/alibabacloud/emr/model/ListHostPoolResult.h include/alibabacloud/emr/model/DescribeClusterOperationHostTaskLogRequest.h include/alibabacloud/emr/model/DescribeClusterOperationHostTaskLogResult.h include/alibabacloud/emr/model/CreateScalingTaskGroupRequest.h include/alibabacloud/emr/model/CreateScalingTaskGroupResult.h include/alibabacloud/emr/model/KillFlowJobRequest.h include/alibabacloud/emr/model/KillFlowJobResult.h + include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingRequest.h + include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingResult.h include/alibabacloud/emr/model/DescribeFlowRequest.h include/alibabacloud/emr/model/DescribeFlowResult.h - include/alibabacloud/emr/model/DescribeClusterV2Request.h - include/alibabacloud/emr/model/DescribeClusterV2Result.h include/alibabacloud/emr/model/DescribeDataSourceSchemaDatabaseRequest.h include/alibabacloud/emr/model/DescribeDataSourceSchemaDatabaseResult.h include/alibabacloud/emr/model/DescribeETLJobStageOutputSchemaRequest.h include/alibabacloud/emr/model/DescribeETLJobStageOutputSchemaResult.h - include/alibabacloud/emr/model/CreateFlowProjectClusterSettingRequest.h - include/alibabacloud/emr/model/CreateFlowProjectClusterSettingResult.h - include/alibabacloud/emr/model/ListClusterScriptsRequest.h - include/alibabacloud/emr/model/ListClusterScriptsResult.h - include/alibabacloud/emr/model/DescribeFlowInstanceRequest.h - include/alibabacloud/emr/model/DescribeFlowInstanceResult.h - include/alibabacloud/emr/model/CreateDataSourceRequest.h - include/alibabacloud/emr/model/CreateDataSourceResult.h include/alibabacloud/emr/model/GetUserInputStatisticInfoRequest.h include/alibabacloud/emr/model/GetUserInputStatisticInfoResult.h + include/alibabacloud/emr/model/CreateDataSourceRequest.h + include/alibabacloud/emr/model/CreateDataSourceResult.h include/alibabacloud/emr/model/ModifyAlertContactRequest.h include/alibabacloud/emr/model/ModifyAlertContactResult.h - include/alibabacloud/emr/model/CreateAlertContactRequest.h - include/alibabacloud/emr/model/CreateAlertContactResult.h include/alibabacloud/emr/model/DeleteAlertDingDingGroupsRequest.h include/alibabacloud/emr/model/DeleteAlertDingDingGroupsResult.h - include/alibabacloud/emr/model/MetastoreModifyDataResourceRequest.h - include/alibabacloud/emr/model/MetastoreModifyDataResourceResult.h - include/alibabacloud/emr/model/ListExecutePlanMigrateInfoRequest.h - include/alibabacloud/emr/model/ListExecutePlanMigrateInfoResult.h - include/alibabacloud/emr/model/GetOpsCommandResultOnceRequest.h - include/alibabacloud/emr/model/GetOpsCommandResultOnceResult.h - include/alibabacloud/emr/model/ResumeExecutionPlanInstanceRequest.h - include/alibabacloud/emr/model/ResumeExecutionPlanInstanceResult.h - include/alibabacloud/emr/model/CreateParagraphRequest.h - include/alibabacloud/emr/model/CreateParagraphResult.h - include/alibabacloud/emr/model/GetJobInputStatisticInfoRequest.h - include/alibabacloud/emr/model/GetJobInputStatisticInfoResult.h - include/alibabacloud/emr/model/DeleteFlowProjectUserRequest.h - include/alibabacloud/emr/model/DeleteFlowProjectUserResult.h + include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingRequest.h + include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingResult.h include/alibabacloud/emr/model/CreateResourceQueueRequest.h include/alibabacloud/emr/model/CreateResourceQueueResult.h - include/alibabacloud/emr/model/ListDependedServiceRequest.h - include/alibabacloud/emr/model/ListDependedServiceResult.h include/alibabacloud/emr/model/CloneETLJobRequest.h include/alibabacloud/emr/model/CloneETLJobResult.h - include/alibabacloud/emr/model/DeleteAlertContactsRequest.h - include/alibabacloud/emr/model/DeleteAlertContactsResult.h include/alibabacloud/emr/model/MetastoreListTablePartitionRequest.h include/alibabacloud/emr/model/MetastoreListTablePartitionResult.h - include/alibabacloud/emr/model/CreateClusterV2Request.h - include/alibabacloud/emr/model/CreateClusterV2Result.h include/alibabacloud/emr/model/ModifyExecutionPlanScheduleInfoRequest.h include/alibabacloud/emr/model/ModifyExecutionPlanScheduleInfoResult.h - include/alibabacloud/emr/model/ListClusterHostRequest.h - include/alibabacloud/emr/model/ListClusterHostResult.h - include/alibabacloud/emr/model/DescribeClusterServiceRequest.h - include/alibabacloud/emr/model/DescribeClusterServiceResult.h include/alibabacloud/emr/model/GetQueueOutputStatisticInfoRequest.h include/alibabacloud/emr/model/GetQueueOutputStatisticInfoResult.h include/alibabacloud/emr/model/CreateExecutionPlanRequest.h include/alibabacloud/emr/model/CreateExecutionPlanResult.h - include/alibabacloud/emr/model/MetastoreCreateTableRequest.h - include/alibabacloud/emr/model/MetastoreCreateTableResult.h + include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.h + include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.h include/alibabacloud/emr/model/DeleteAlertUserGroupsRequest.h include/alibabacloud/emr/model/DeleteAlertUserGroupsResult.h include/alibabacloud/emr/model/MetastoreListKafkaConsumerGroupRequest.h include/alibabacloud/emr/model/MetastoreListKafkaConsumerGroupResult.h - include/alibabacloud/emr/model/CommonApiWhiteListRequest.h - include/alibabacloud/emr/model/CommonApiWhiteListResult.h - include/alibabacloud/emr/model/CreateFlowForWebRequest.h - include/alibabacloud/emr/model/CreateFlowForWebResult.h + include/alibabacloud/emr/model/AddResourceToUsersRequest.h + include/alibabacloud/emr/model/AddResourceToUsersResult.h + include/alibabacloud/emr/model/SaveUserAccountInfoRequest.h + include/alibabacloud/emr/model/SaveUserAccountInfoResult.h include/alibabacloud/emr/model/DeleteScalingRuleRequest.h include/alibabacloud/emr/model/DeleteScalingRuleResult.h - include/alibabacloud/emr/model/QuerySlsMetricDataRequest.h - include/alibabacloud/emr/model/QuerySlsMetricDataResult.h + include/alibabacloud/emr/model/CreateBackupRuleRequest.h + include/alibabacloud/emr/model/CreateBackupRuleResult.h include/alibabacloud/emr/model/DescribeFlowJobStatisticRequest.h include/alibabacloud/emr/model/DescribeFlowJobStatisticResult.h - include/alibabacloud/emr/model/MetastoreListKafkaTopicRequest.h - include/alibabacloud/emr/model/MetastoreListKafkaTopicResult.h - include/alibabacloud/emr/model/DescribeJobRequest.h - include/alibabacloud/emr/model/DescribeJobResult.h + include/alibabacloud/emr/model/ListKafkaBrokerRequest.h + include/alibabacloud/emr/model/ListKafkaBrokerResult.h include/alibabacloud/emr/model/ReleaseClusterHostGroupRequest.h include/alibabacloud/emr/model/ReleaseClusterHostGroupResult.h + include/alibabacloud/emr/model/ListBackupsRequest.h + include/alibabacloud/emr/model/ListBackupsResult.h include/alibabacloud/emr/model/ListOpsOperationRequest.h include/alibabacloud/emr/model/ListOpsOperationResult.h - include/alibabacloud/emr/model/ModifyFlowProjectRequest.h - include/alibabacloud/emr/model/ModifyFlowProjectResult.h include/alibabacloud/emr/model/ModifyClusterHostGroupRequest.h include/alibabacloud/emr/model/ModifyClusterHostGroupResult.h - include/alibabacloud/emr/model/DescribeUserStatisticsRequest.h - include/alibabacloud/emr/model/DescribeUserStatisticsResult.h include/alibabacloud/emr/model/DescribeFlowNodeInstanceLauncherLogRequest.h include/alibabacloud/emr/model/DescribeFlowNodeInstanceLauncherLogResult.h - include/alibabacloud/emr/model/ListFlowRequest.h - include/alibabacloud/emr/model/ListFlowResult.h + include/alibabacloud/emr/model/DescribeUserStatisticsRequest.h + include/alibabacloud/emr/model/DescribeUserStatisticsResult.h include/alibabacloud/emr/model/DeleteClusterScriptRequest.h include/alibabacloud/emr/model/DeleteClusterScriptResult.h - include/alibabacloud/emr/model/ListResourceQueueRequest.h - include/alibabacloud/emr/model/ListResourceQueueResult.h include/alibabacloud/emr/model/ListClusterOperationRequest.h include/alibabacloud/emr/model/ListClusterOperationResult.h - include/alibabacloud/emr/model/KillExecutionPlanInstanceRequest.h - include/alibabacloud/emr/model/KillExecutionPlanInstanceResult.h include/alibabacloud/emr/model/UpdateNavNodeRequest.h include/alibabacloud/emr/model/UpdateNavNodeResult.h include/alibabacloud/emr/model/CloneFlowJobRequest.h @@ -337,36 +233,20 @@ set(emr_public_header_model include/alibabacloud/emr/model/CreateResourcePoolResult.h include/alibabacloud/emr/model/CreateFlowJobRequest.h include/alibabacloud/emr/model/CreateFlowJobResult.h - include/alibabacloud/emr/model/DeleteFlowCategoryRequest.h - include/alibabacloud/emr/model/DeleteFlowCategoryResult.h - include/alibabacloud/emr/model/MigrateJobsRequest.h - include/alibabacloud/emr/model/MigrateJobsResult.h - include/alibabacloud/emr/model/KillExecutionJobInstanceRequest.h - include/alibabacloud/emr/model/KillExecutionJobInstanceResult.h + include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionRequest.h + include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionResult.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminRequest.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminResult.h include/alibabacloud/emr/model/CreateClusterWithTemplateRequest.h include/alibabacloud/emr/model/CreateClusterWithTemplateResult.h include/alibabacloud/emr/model/ListFlowClusterAllRequest.h include/alibabacloud/emr/model/ListFlowClusterAllResult.h - include/alibabacloud/emr/model/ModifyExecutionPlanRequest.h - include/alibabacloud/emr/model/ModifyExecutionPlanResult.h - include/alibabacloud/emr/model/ListUserStatisticsRequest.h - include/alibabacloud/emr/model/ListUserStatisticsResult.h - include/alibabacloud/emr/model/AddClusterServiceRequest.h - include/alibabacloud/emr/model/AddClusterServiceResult.h - include/alibabacloud/emr/model/ModifyFlowCategoryRequest.h - include/alibabacloud/emr/model/ModifyFlowCategoryResult.h - include/alibabacloud/emr/model/QueryAlarmRulesRequest.h - include/alibabacloud/emr/model/QueryAlarmRulesResult.h - include/alibabacloud/emr/model/ModifyClusterServiceConfigRequest.h - include/alibabacloud/emr/model/ModifyClusterServiceConfigResult.h + include/alibabacloud/emr/model/DescribeKafkaReassignRequest.h + include/alibabacloud/emr/model/DescribeKafkaReassignResult.h + include/alibabacloud/emr/model/GetAuditLogsRequest.h + include/alibabacloud/emr/model/GetAuditLogsResult.h include/alibabacloud/emr/model/ListNotesRequest.h include/alibabacloud/emr/model/ListNotesResult.h - include/alibabacloud/emr/model/MetastoreListDataResourcesRequest.h - include/alibabacloud/emr/model/MetastoreListDataResourcesResult.h - include/alibabacloud/emr/model/UpdateETLJobRequest.h - include/alibabacloud/emr/model/UpdateETLJobResult.h - include/alibabacloud/emr/model/DescribeScalingTaskGroupRequest.h - include/alibabacloud/emr/model/DescribeScalingTaskGroupResult.h include/alibabacloud/emr/model/MetastoreDescribeDataSourceRequest.h include/alibabacloud/emr/model/MetastoreDescribeDataSourceResult.h include/alibabacloud/emr/model/ListExecutionPlanInstanceTrendRequest.h @@ -379,228 +259,134 @@ set(emr_public_header_model include/alibabacloud/emr/model/SearchLogResult.h include/alibabacloud/emr/model/RenderResourcePoolXmlRequest.h include/alibabacloud/emr/model/RenderResourcePoolXmlResult.h - include/alibabacloud/emr/model/UpdateDataSourceRequest.h - include/alibabacloud/emr/model/UpdateDataSourceResult.h include/alibabacloud/emr/model/ModifyScalingTaskGroupRequest.h include/alibabacloud/emr/model/ModifyScalingTaskGroupResult.h - include/alibabacloud/emr/model/ListDataSourceSchemaDatabaseRequest.h - include/alibabacloud/emr/model/ListDataSourceSchemaDatabaseResult.h include/alibabacloud/emr/model/DescribeFlowProjectRequest.h include/alibabacloud/emr/model/DescribeFlowProjectResult.h - include/alibabacloud/emr/model/CreateUsersRequest.h - include/alibabacloud/emr/model/CreateUsersResult.h - include/alibabacloud/emr/model/CheckDataSourceRequest.h - include/alibabacloud/emr/model/CheckDataSourceResult.h - include/alibabacloud/emr/model/ListScalingActivityRequest.h - include/alibabacloud/emr/model/ListScalingActivityResult.h - include/alibabacloud/emr/model/CreateNoteRequest.h - include/alibabacloud/emr/model/CreateNoteResult.h include/alibabacloud/emr/model/DeleteResourcePoolRequest.h include/alibabacloud/emr/model/DeleteResourcePoolResult.h + include/alibabacloud/emr/model/QueryUserPoliciesRequest.h + include/alibabacloud/emr/model/QueryUserPoliciesResult.h include/alibabacloud/emr/model/ListFlowJobRequest.h include/alibabacloud/emr/model/ListFlowJobResult.h - include/alibabacloud/emr/model/RetryExecutionPlanRequest.h - include/alibabacloud/emr/model/RetryExecutionPlanResult.h - include/alibabacloud/emr/model/DescribeAvailableInstanceTypeRequest.h - include/alibabacloud/emr/model/DescribeAvailableInstanceTypeResult.h include/alibabacloud/emr/model/MetastoreUpdateKafkaTopicBatchRequest.h include/alibabacloud/emr/model/MetastoreUpdateKafkaTopicBatchResult.h + include/alibabacloud/emr/model/DescribeAvailableInstanceTypeRequest.h + include/alibabacloud/emr/model/DescribeAvailableInstanceTypeResult.h include/alibabacloud/emr/model/ListNavSubTreeRequest.h include/alibabacloud/emr/model/ListNavSubTreeResult.h - include/alibabacloud/emr/model/ListFlowNodeInstanceContainerStatusRequest.h - include/alibabacloud/emr/model/ListFlowNodeInstanceContainerStatusResult.h include/alibabacloud/emr/model/CreateFlowProjectRequest.h include/alibabacloud/emr/model/CreateFlowProjectResult.h - include/alibabacloud/emr/model/MetastoreListDataSourceRequest.h - include/alibabacloud/emr/model/MetastoreListDataSourceResult.h - include/alibabacloud/emr/model/GetSupportedOpsCommandRequest.h - include/alibabacloud/emr/model/GetSupportedOpsCommandResult.h - include/alibabacloud/emr/model/DescribeETLJobSqlSchemaRequest.h - include/alibabacloud/emr/model/DescribeETLJobSqlSchemaResult.h include/alibabacloud/emr/model/CreateVerificationCodeRequest.h include/alibabacloud/emr/model/CreateVerificationCodeResult.h - include/alibabacloud/emr/model/ListExecutionPlanInstancesRequest.h - include/alibabacloud/emr/model/ListExecutionPlanInstancesResult.h - include/alibabacloud/emr/model/DetachClusterForNoteRequest.h - include/alibabacloud/emr/model/DetachClusterForNoteResult.h include/alibabacloud/emr/model/ListClustersRequest.h include/alibabacloud/emr/model/ListClustersResult.h - include/alibabacloud/emr/model/MetastoreDescribeKafkaConsumerGroupRequest.h - include/alibabacloud/emr/model/MetastoreDescribeKafkaConsumerGroupResult.h - include/alibabacloud/emr/model/MetastoreListTaskRequest.h - include/alibabacloud/emr/model/MetastoreListTaskResult.h - include/alibabacloud/emr/model/DescribeClusterOpLogRequest.h - include/alibabacloud/emr/model/DescribeClusterOpLogResult.h + include/alibabacloud/emr/model/DetachClusterForNoteRequest.h + include/alibabacloud/emr/model/DetachClusterForNoteResult.h + include/alibabacloud/emr/model/ListRolesRequest.h + include/alibabacloud/emr/model/ListRolesResult.h + include/alibabacloud/emr/model/DeleteBatchResourceUsersRequest.h + include/alibabacloud/emr/model/DeleteBatchResourceUsersResult.h include/alibabacloud/emr/model/DescribeFlowNodeInstanceRequest.h include/alibabacloud/emr/model/DescribeFlowNodeInstanceResult.h + include/alibabacloud/emr/model/ListStreamingSqlQueryRequest.h + include/alibabacloud/emr/model/ListStreamingSqlQueryResult.h include/alibabacloud/emr/model/MetastoreDescribeKafkaTopicRequest.h include/alibabacloud/emr/model/MetastoreDescribeKafkaTopicResult.h include/alibabacloud/emr/model/ListScalingTaskGroupRequest.h include/alibabacloud/emr/model/ListScalingTaskGroupResult.h - include/alibabacloud/emr/model/GetQueueSubmissionStatisticInfoRequest.h - include/alibabacloud/emr/model/GetQueueSubmissionStatisticInfoResult.h - include/alibabacloud/emr/model/ListDataSourceRequest.h - include/alibabacloud/emr/model/ListDataSourceResult.h include/alibabacloud/emr/model/ModifyUserStatisticsRequest.h include/alibabacloud/emr/model/ModifyUserStatisticsResult.h - include/alibabacloud/emr/model/MetastoreCreateKafkaTopicRequest.h - include/alibabacloud/emr/model/MetastoreCreateKafkaTopicResult.h - include/alibabacloud/emr/model/ListETLJobInstanceRequest.h - include/alibabacloud/emr/model/ListETLJobInstanceResult.h include/alibabacloud/emr/model/ModifyFlowVariableCollectionRequest.h include/alibabacloud/emr/model/ModifyFlowVariableCollectionResult.h include/alibabacloud/emr/model/DescribeETLJobInstanceRequest.h include/alibabacloud/emr/model/DescribeETLJobInstanceResult.h - include/alibabacloud/emr/model/ModifyExecutionPlanBasicInfoRequest.h - include/alibabacloud/emr/model/ModifyExecutionPlanBasicInfoResult.h - include/alibabacloud/emr/model/SubmitFlowJobRequest.h - include/alibabacloud/emr/model/SubmitFlowJobResult.h + include/alibabacloud/emr/model/UpdateUserStatusRequest.h + include/alibabacloud/emr/model/UpdateUserStatusResult.h + include/alibabacloud/emr/model/UpdateUserRequest.h + include/alibabacloud/emr/model/UpdateUserResult.h include/alibabacloud/emr/model/CreateUserPasswordRequest.h include/alibabacloud/emr/model/CreateUserPasswordResult.h - include/alibabacloud/emr/model/DescribeETLJobRequest.h - include/alibabacloud/emr/model/DescribeETLJobResult.h - include/alibabacloud/emr/model/ListClusterHostComponentRequest.h - include/alibabacloud/emr/model/ListClusterHostComponentResult.h + include/alibabacloud/emr/model/GetFlowAuditLogsRequest.h + include/alibabacloud/emr/model/GetFlowAuditLogsResult.h + include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminRequest.h + include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminResult.h include/alibabacloud/emr/model/ListAlertDingDingGroupRequest.h include/alibabacloud/emr/model/ListAlertDingDingGroupResult.h include/alibabacloud/emr/model/CloneDataSourceRequest.h include/alibabacloud/emr/model/CloneDataSourceResult.h - include/alibabacloud/emr/model/GetJobRunningTimeStatisticInfoRequest.h - include/alibabacloud/emr/model/GetJobRunningTimeStatisticInfoResult.h - include/alibabacloud/emr/model/ListFlowProjectClusterSettingRequest.h - include/alibabacloud/emr/model/ListFlowProjectClusterSettingResult.h include/alibabacloud/emr/model/DescribeFlowProjectClusterSettingRequest.h include/alibabacloud/emr/model/DescribeFlowProjectClusterSettingResult.h include/alibabacloud/emr/model/SyncDataSourceSchemaTableRequest.h include/alibabacloud/emr/model/SyncDataSourceSchemaTableResult.h - include/alibabacloud/emr/model/ListJobExecutionInstancesRequest.h - include/alibabacloud/emr/model/ListJobExecutionInstancesResult.h include/alibabacloud/emr/model/TerminateClusterOperationRequest.h include/alibabacloud/emr/model/TerminateClusterOperationResult.h - include/alibabacloud/emr/model/ListSlsLogstoreInfoRequest.h - include/alibabacloud/emr/model/ListSlsLogstoreInfoResult.h - include/alibabacloud/emr/model/MetastoreDropTableRequest.h - include/alibabacloud/emr/model/MetastoreDropTableResult.h - include/alibabacloud/emr/model/GetOpsCommandDetailRequest.h - include/alibabacloud/emr/model/GetOpsCommandDetailResult.h - include/alibabacloud/emr/model/ListClusterServiceRequest.h - include/alibabacloud/emr/model/ListClusterServiceResult.h - include/alibabacloud/emr/model/CreateScalingRuleRequest.h - include/alibabacloud/emr/model/CreateScalingRuleResult.h include/alibabacloud/emr/model/CreateNavNodeRequest.h include/alibabacloud/emr/model/CreateNavNodeResult.h + include/alibabacloud/emr/model/DeleteResourceUserRequest.h + include/alibabacloud/emr/model/DeleteResourceUserResult.h include/alibabacloud/emr/model/DeleteFlowProjectRequest.h include/alibabacloud/emr/model/DeleteFlowProjectResult.h include/alibabacloud/emr/model/ReleaseClusterRequest.h include/alibabacloud/emr/model/ReleaseClusterResult.h - include/alibabacloud/emr/model/RetryCreateUserPasswordRequest.h - include/alibabacloud/emr/model/RetryCreateUserPasswordResult.h include/alibabacloud/emr/model/ListSupportedServiceNameRequest.h include/alibabacloud/emr/model/ListSupportedServiceNameResult.h + include/alibabacloud/emr/model/RetryCreateUserPasswordRequest.h + include/alibabacloud/emr/model/RetryCreateUserPasswordResult.h + include/alibabacloud/emr/model/PlanHostNameRequest.h + include/alibabacloud/emr/model/PlanHostNameResult.h include/alibabacloud/emr/model/ListJobInstanceWorkersRequest.h include/alibabacloud/emr/model/ListJobInstanceWorkersResult.h - include/alibabacloud/emr/model/DeleteNoteRequest.h - include/alibabacloud/emr/model/DeleteNoteResult.h - include/alibabacloud/emr/model/ListFlowClusterAllHostsRequest.h - include/alibabacloud/emr/model/ListFlowClusterAllHostsResult.h + include/alibabacloud/emr/model/ModifyHostPoolRequest.h + include/alibabacloud/emr/model/ModifyHostPoolResult.h include/alibabacloud/emr/model/MigrateClusterHostGroupHostRequest.h include/alibabacloud/emr/model/MigrateClusterHostGroupHostResult.h - include/alibabacloud/emr/model/GetLogHistogramRequest.h - include/alibabacloud/emr/model/GetLogHistogramResult.h - include/alibabacloud/emr/model/MetastoreDeleteDataResourceRequest.h - include/alibabacloud/emr/model/MetastoreDeleteDataResourceResult.h - include/alibabacloud/emr/model/DeleteResourceQueueRequest.h - include/alibabacloud/emr/model/DeleteResourceQueueResult.h - include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeRequest.h - include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeResult.h - include/alibabacloud/emr/model/DescribeFlowCategoryTreeRequest.h - include/alibabacloud/emr/model/DescribeFlowCategoryTreeResult.h include/alibabacloud/emr/model/ListServiceLogRequest.h include/alibabacloud/emr/model/ListServiceLogResult.h - include/alibabacloud/emr/model/ListFlowNodeSqlResultRequest.h - include/alibabacloud/emr/model/ListFlowNodeSqlResultResult.h - include/alibabacloud/emr/model/ModifyFlowForWebRequest.h - include/alibabacloud/emr/model/ModifyFlowForWebResult.h - include/alibabacloud/emr/model/RunNoteParagraphsRequest.h - include/alibabacloud/emr/model/RunNoteParagraphsResult.h - include/alibabacloud/emr/model/ListJobExecutionPlanParamsRequest.h - include/alibabacloud/emr/model/ListJobExecutionPlanParamsResult.h - include/alibabacloud/emr/model/DescribeFlowNodeInstanceContainerLogRequest.h - include/alibabacloud/emr/model/DescribeFlowNodeInstanceContainerLogResult.h + include/alibabacloud/emr/model/DescribeFlowCategoryTreeRequest.h + include/alibabacloud/emr/model/DescribeFlowCategoryTreeResult.h + include/alibabacloud/emr/model/GetBackPlanInfoRequest.h + include/alibabacloud/emr/model/GetBackPlanInfoResult.h include/alibabacloud/emr/model/CancelETLJobReleaseRequest.h include/alibabacloud/emr/model/CancelETLJobReleaseResult.h + include/alibabacloud/emr/model/ListStackRequest.h + include/alibabacloud/emr/model/ListStackResult.h include/alibabacloud/emr/model/ListClusterTagRequest.h include/alibabacloud/emr/model/ListClusterTagResult.h - include/alibabacloud/emr/model/GetUserOutputStatisticInfoRequest.h - include/alibabacloud/emr/model/GetUserOutputStatisticInfoResult.h include/alibabacloud/emr/model/ModifyJobExecutionPlanFolderRequest.h include/alibabacloud/emr/model/ModifyJobExecutionPlanFolderResult.h - include/alibabacloud/emr/model/DescribeClusterBasicInfoRequest.h - include/alibabacloud/emr/model/DescribeClusterBasicInfoResult.h - include/alibabacloud/emr/model/GetOpsCommandResultRequest.h - include/alibabacloud/emr/model/GetOpsCommandResultResult.h - include/alibabacloud/emr/model/ListEmrAvailableConfigRequest.h - include/alibabacloud/emr/model/ListEmrAvailableConfigResult.h include/alibabacloud/emr/model/ModifyAlertUserGroupRequest.h include/alibabacloud/emr/model/ModifyAlertUserGroupResult.h include/alibabacloud/emr/model/MetastoreListDatabasesRequest.h include/alibabacloud/emr/model/MetastoreListDatabasesResult.h - include/alibabacloud/emr/model/ListAlertUserGroupRequest.h - include/alibabacloud/emr/model/ListAlertUserGroupResult.h include/alibabacloud/emr/model/ModifyResourceQueueRequest.h include/alibabacloud/emr/model/ModifyResourceQueueResult.h - include/alibabacloud/emr/model/MetastoreSearchTablesRequest.h - include/alibabacloud/emr/model/MetastoreSearchTablesResult.h - include/alibabacloud/emr/model/ListFlowClusterRequest.h - include/alibabacloud/emr/model/ListFlowClusterResult.h include/alibabacloud/emr/model/DescribeSecurityGroupAttributeRequest.h include/alibabacloud/emr/model/DescribeSecurityGroupAttributeResult.h - include/alibabacloud/emr/model/DeleteUserRequest.h - include/alibabacloud/emr/model/DeleteUserResult.h include/alibabacloud/emr/model/ListFlowCategoryRequest.h include/alibabacloud/emr/model/ListFlowCategoryResult.h - include/alibabacloud/emr/model/ModifyJobExecutionPlanParamRequest.h - include/alibabacloud/emr/model/ModifyJobExecutionPlanParamResult.h - include/alibabacloud/emr/model/ResizeClusterV2Request.h - include/alibabacloud/emr/model/ResizeClusterV2Result.h include/alibabacloud/emr/model/DescribeExecutionPlanRequest.h include/alibabacloud/emr/model/DescribeExecutionPlanResult.h include/alibabacloud/emr/model/CreateFlowProjectUserRequest.h include/alibabacloud/emr/model/CreateFlowProjectUserResult.h - include/alibabacloud/emr/model/CreateFlowCategoryRequest.h - include/alibabacloud/emr/model/CreateFlowCategoryResult.h include/alibabacloud/emr/model/DeleteFlowProjectClusterSettingRequest.h include/alibabacloud/emr/model/DeleteFlowProjectClusterSettingResult.h + include/alibabacloud/emr/model/DescribeUserGroupRequest.h + include/alibabacloud/emr/model/DescribeUserGroupResult.h include/alibabacloud/emr/model/DeleteExecutionPlanRequest.h include/alibabacloud/emr/model/DeleteExecutionPlanResult.h - include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigRequest.h - include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigResult.h - include/alibabacloud/emr/model/MetastoreDescribeTableRequest.h - include/alibabacloud/emr/model/MetastoreDescribeTableResult.h - include/alibabacloud/emr/model/GetLogDownloadUrlRequest.h - include/alibabacloud/emr/model/GetLogDownloadUrlResult.h - include/alibabacloud/emr/model/ModifyFlowRequest.h - include/alibabacloud/emr/model/ModifyFlowResult.h - include/alibabacloud/emr/model/DescribeScalingRuleRequest.h - include/alibabacloud/emr/model/DescribeScalingRuleResult.h + include/alibabacloud/emr/model/UpdateUserGroupRequest.h + include/alibabacloud/emr/model/UpdateUserGroupResult.h include/alibabacloud/emr/model/RunParagraphRequest.h include/alibabacloud/emr/model/RunParagraphResult.h include/alibabacloud/emr/model/SyncDataSourceSchemaDatabaseRequest.h include/alibabacloud/emr/model/SyncDataSourceSchemaDatabaseResult.h - include/alibabacloud/emr/model/CreateUserStatisticsRequest.h - include/alibabacloud/emr/model/CreateUserStatisticsResult.h include/alibabacloud/emr/model/DescribeClusterServiceConfigRequest.h include/alibabacloud/emr/model/DescribeClusterServiceConfigResult.h - include/alibabacloud/emr/model/ModifyFlowProjectClusterSettingRequest.h - include/alibabacloud/emr/model/ModifyFlowProjectClusterSettingResult.h - include/alibabacloud/emr/model/DeleteJobRequest.h - include/alibabacloud/emr/model/DeleteJobResult.h include/alibabacloud/emr/model/ModifyExecutionPlanClusterInfoRequest.h include/alibabacloud/emr/model/ModifyExecutionPlanClusterInfoResult.h - include/alibabacloud/emr/model/ModifyClusterNameRequest.h - include/alibabacloud/emr/model/ModifyClusterNameResult.h - include/alibabacloud/emr/model/MetastoreListTablesRequest.h - include/alibabacloud/emr/model/MetastoreListTablesResult.h + include/alibabacloud/emr/model/ListUsersByConditionRequest.h + include/alibabacloud/emr/model/ListUsersByConditionResult.h include/alibabacloud/emr/model/ListClusterOperationHostTaskRequest.h include/alibabacloud/emr/model/ListClusterOperationHostTaskResult.h include/alibabacloud/emr/model/ModifyResourcePoolRequest.h @@ -609,24 +395,424 @@ set(emr_public_header_model include/alibabacloud/emr/model/DescribeClusterScriptResult.h include/alibabacloud/emr/model/ListRequiredServiceRequest.h include/alibabacloud/emr/model/ListRequiredServiceResult.h + include/alibabacloud/emr/model/ListBackupPlansRequest.h + include/alibabacloud/emr/model/ListBackupPlansResult.h include/alibabacloud/emr/model/ListFlowProjectUserRequest.h include/alibabacloud/emr/model/ListFlowProjectUserResult.h include/alibabacloud/emr/model/SuspendExecutionPlanSchedulerRequest.h include/alibabacloud/emr/model/SuspendExecutionPlanSchedulerResult.h + include/alibabacloud/emr/model/DeleteUserGroupRequest.h + include/alibabacloud/emr/model/DeleteUserGroupResult.h + include/alibabacloud/emr/model/DeleteClusterHostGroupRequest.h + include/alibabacloud/emr/model/DeleteClusterHostGroupResult.h + include/alibabacloud/emr/model/DescribeDataSourceSchemaTableRequest.h + include/alibabacloud/emr/model/DescribeDataSourceSchemaTableResult.h + include/alibabacloud/emr/model/OperateExistsNodeClusterRequest.h + include/alibabacloud/emr/model/OperateExistsNodeClusterResult.h + include/alibabacloud/emr/model/DescribeDataSourceCommandRequest.h + include/alibabacloud/emr/model/DescribeDataSourceCommandResult.h + include/alibabacloud/emr/model/ListUsersRequest.h + include/alibabacloud/emr/model/ListUsersResult.h + include/alibabacloud/emr/model/ListResourcePoolRequest.h + include/alibabacloud/emr/model/ListResourcePoolResult.h + include/alibabacloud/emr/model/ListFlowClusterHostRequest.h + include/alibabacloud/emr/model/ListFlowClusterHostResult.h + include/alibabacloud/emr/model/KillFlowRequest.h + include/alibabacloud/emr/model/KillFlowResult.h + include/alibabacloud/emr/model/RunOpsCommandRequest.h + include/alibabacloud/emr/model/RunOpsCommandResult.h + include/alibabacloud/emr/model/ModifyExecutionPlanJobInfoRequest.h + include/alibabacloud/emr/model/ModifyExecutionPlanJobInfoResult.h + include/alibabacloud/emr/model/DeleteClusterTemplateRequest.h + include/alibabacloud/emr/model/DeleteClusterTemplateResult.h + include/alibabacloud/emr/model/ListKafkaTopicStatisticsRequest.h + include/alibabacloud/emr/model/ListKafkaTopicStatisticsResult.h + include/alibabacloud/emr/model/QueryInfoByTokenRequest.h + include/alibabacloud/emr/model/QueryInfoByTokenResult.h + include/alibabacloud/emr/model/ListDataSourceSchemaTableRequest.h + include/alibabacloud/emr/model/ListDataSourceSchemaTableResult.h + include/alibabacloud/emr/model/CreateJobRequest.h + include/alibabacloud/emr/model/CreateJobResult.h + include/alibabacloud/emr/model/GetBackInfoRequest.h + include/alibabacloud/emr/model/GetBackInfoResult.h + include/alibabacloud/emr/model/AttachClusterForNoteRequest.h + include/alibabacloud/emr/model/AttachClusterForNoteResult.h + include/alibabacloud/emr/model/ListExecutionPlansRequest.h + include/alibabacloud/emr/model/ListExecutionPlansResult.h + include/alibabacloud/emr/model/ListJobMigrateInfoRequest.h + include/alibabacloud/emr/model/ListJobMigrateInfoResult.h + include/alibabacloud/emr/model/CloneFlowRequest.h + include/alibabacloud/emr/model/CloneFlowResult.h + include/alibabacloud/emr/model/ListEmrMainVersionRequest.h + include/alibabacloud/emr/model/ListEmrMainVersionResult.h + include/alibabacloud/emr/model/CreateClusterTemplateRequest.h + include/alibabacloud/emr/model/CreateClusterTemplateResult.h + include/alibabacloud/emr/model/RestoreBackupRequest.h + include/alibabacloud/emr/model/RestoreBackupResult.h + include/alibabacloud/emr/model/ListAlertContactsRequest.h + include/alibabacloud/emr/model/ListAlertContactsResult.h + include/alibabacloud/emr/model/ListSupportedServiceNameForAdminRequest.h + include/alibabacloud/emr/model/ListSupportedServiceNameForAdminResult.h + include/alibabacloud/emr/model/ReassignKafkaRequest.h + include/alibabacloud/emr/model/ReassignKafkaResult.h + include/alibabacloud/emr/model/GetHdfsCapacityStatisticInfoRequest.h + include/alibabacloud/emr/model/GetHdfsCapacityStatisticInfoResult.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminRequest.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminResult.h + include/alibabacloud/emr/model/ResumeExecutionPlanSchedulerRequest.h + include/alibabacloud/emr/model/ResumeExecutionPlanSchedulerResult.h + include/alibabacloud/emr/model/ListJobsRequest.h + include/alibabacloud/emr/model/ListJobsResult.h + include/alibabacloud/emr/model/ListEmrAvailableResourceRequest.h + include/alibabacloud/emr/model/ListEmrAvailableResourceResult.h + include/alibabacloud/emr/model/ModifyHpHostRequest.h + include/alibabacloud/emr/model/ModifyHpHostResult.h + include/alibabacloud/emr/model/ReleaseETLJobRequest.h + include/alibabacloud/emr/model/ReleaseETLJobResult.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigTagRequest.h + include/alibabacloud/emr/model/DescribeClusterServiceConfigTagResult.h + include/alibabacloud/emr/model/RunClusterServiceActionRequest.h + include/alibabacloud/emr/model/RunClusterServiceActionResult.h + include/alibabacloud/emr/model/SuspendFlowRequest.h + include/alibabacloud/emr/model/SuspendFlowResult.h + include/alibabacloud/emr/model/ListClusterSupportServiceRequest.h + include/alibabacloud/emr/model/ListClusterSupportServiceResult.h + include/alibabacloud/emr/model/AuthorizeSecurityGroupRequest.h + include/alibabacloud/emr/model/AuthorizeSecurityGroupResult.h + include/alibabacloud/emr/model/ModifyClusterTemplateRequest.h + include/alibabacloud/emr/model/ModifyClusterTemplateResult.h + include/alibabacloud/emr/model/CreateClusterWithHostPoolRequest.h + include/alibabacloud/emr/model/CreateClusterWithHostPoolResult.h + include/alibabacloud/emr/model/ContextQueryLogRequest.h + include/alibabacloud/emr/model/ContextQueryLogResult.h + include/alibabacloud/emr/model/ListClusterOperationHostRequest.h + include/alibabacloud/emr/model/ListClusterOperationHostResult.h + include/alibabacloud/emr/model/ListScalingRuleRequest.h + include/alibabacloud/emr/model/ListScalingRuleResult.h + include/alibabacloud/emr/model/DeleteFlowRequest.h + include/alibabacloud/emr/model/DeleteFlowResult.h + include/alibabacloud/emr/model/DeleteDataSourceRequest.h + include/alibabacloud/emr/model/DeleteDataSourceResult.h + include/alibabacloud/emr/model/RunETLJobRequest.h + include/alibabacloud/emr/model/RunETLJobResult.h + include/alibabacloud/emr/model/ListFlowProjectRequest.h + include/alibabacloud/emr/model/ListFlowProjectResult.h + include/alibabacloud/emr/model/ListClusterServiceComponentHealthInfoRequest.h + include/alibabacloud/emr/model/ListClusterServiceComponentHealthInfoResult.h + include/alibabacloud/emr/model/CreateHostPoolRequest.h + include/alibabacloud/emr/model/CreateHostPoolResult.h + include/alibabacloud/emr/model/ModifyAlertDingDingGroupRequest.h + include/alibabacloud/emr/model/ModifyAlertDingDingGroupResult.h + include/alibabacloud/emr/model/ListFlowJobHistoryRequest.h + include/alibabacloud/emr/model/ListFlowJobHistoryResult.h + include/alibabacloud/emr/model/CreateETLJobRequest.h + include/alibabacloud/emr/model/CreateETLJobResult.h + include/alibabacloud/emr/model/CreateClusterScriptRequest.h + include/alibabacloud/emr/model/CreateClusterScriptResult.h + include/alibabacloud/emr/model/SubmitFlowRequest.h + include/alibabacloud/emr/model/SubmitFlowResult.h + include/alibabacloud/emr/model/ResumeFlowRequest.h + include/alibabacloud/emr/model/ResumeFlowResult.h + include/alibabacloud/emr/model/DeleteFlowProjectByIdRequest.h + include/alibabacloud/emr/model/DeleteFlowProjectByIdResult.h + include/alibabacloud/emr/model/OfflineKafkaBrokerRequest.h + include/alibabacloud/emr/model/OfflineKafkaBrokerResult.h + include/alibabacloud/emr/model/DescribeParagraphRequest.h + include/alibabacloud/emr/model/DescribeParagraphResult.h + include/alibabacloud/emr/model/MetastoreCreateDatabaseRequest.h + include/alibabacloud/emr/model/MetastoreCreateDatabaseResult.h + include/alibabacloud/emr/model/DeleteFlowJobRequest.h + include/alibabacloud/emr/model/DeleteFlowJobResult.h + include/alibabacloud/emr/model/RefreshClusterResourcePoolRequest.h + include/alibabacloud/emr/model/RefreshClusterResourcePoolResult.h + include/alibabacloud/emr/model/UpdateKafkaReassignParamRequest.h + include/alibabacloud/emr/model/UpdateKafkaReassignParamResult.h + include/alibabacloud/emr/model/ModifyJobRequest.h + include/alibabacloud/emr/model/ModifyJobResult.h + include/alibabacloud/emr/model/DescribeFlowJobRequest.h + include/alibabacloud/emr/model/DescribeFlowJobResult.h + include/alibabacloud/emr/model/GetMetadataTypeListRequest.h + include/alibabacloud/emr/model/GetMetadataTypeListResult.h + include/alibabacloud/emr/model/MetastoreRetryTaskRequest.h + include/alibabacloud/emr/model/MetastoreRetryTaskResult.h + include/alibabacloud/emr/model/RerunFlowRequest.h + include/alibabacloud/emr/model/RerunFlowResult.h + include/alibabacloud/emr/model/CreateBackupRequest.h + include/alibabacloud/emr/model/CreateBackupResult.h + include/alibabacloud/emr/model/ListKafkaReassignRequest.h + include/alibabacloud/emr/model/ListKafkaReassignResult.h + include/alibabacloud/emr/model/DescribeClusterV2Request.h + include/alibabacloud/emr/model/DescribeClusterV2Result.h + include/alibabacloud/emr/model/ResizeClusterWithHostPoolRequest.h + include/alibabacloud/emr/model/ResizeClusterWithHostPoolResult.h + include/alibabacloud/emr/model/CreateFlowProjectClusterSettingRequest.h + include/alibabacloud/emr/model/CreateFlowProjectClusterSettingResult.h + include/alibabacloud/emr/model/ListClusterScriptsRequest.h + include/alibabacloud/emr/model/ListClusterScriptsResult.h + include/alibabacloud/emr/model/DescribeFlowInstanceRequest.h + include/alibabacloud/emr/model/DescribeFlowInstanceResult.h + include/alibabacloud/emr/model/DeleteUserResourceRoleRequest.h + include/alibabacloud/emr/model/DeleteUserResourceRoleResult.h + include/alibabacloud/emr/model/ListETLJobReleaseRequest.h + include/alibabacloud/emr/model/ListETLJobReleaseResult.h + include/alibabacloud/emr/model/CreateAlertContactRequest.h + include/alibabacloud/emr/model/CreateAlertContactResult.h + include/alibabacloud/emr/model/MetastoreModifyDataResourceRequest.h + include/alibabacloud/emr/model/MetastoreModifyDataResourceResult.h + include/alibabacloud/emr/model/ListExecutePlanMigrateInfoRequest.h + include/alibabacloud/emr/model/ListExecutePlanMigrateInfoResult.h + include/alibabacloud/emr/model/ResumeExecutionPlanInstanceRequest.h + include/alibabacloud/emr/model/ResumeExecutionPlanInstanceResult.h + include/alibabacloud/emr/model/CreateParagraphRequest.h + include/alibabacloud/emr/model/CreateParagraphResult.h + include/alibabacloud/emr/model/GetOpsCommandResultOnceRequest.h + include/alibabacloud/emr/model/GetOpsCommandResultOnceResult.h + include/alibabacloud/emr/model/AddHpHostRequest.h + include/alibabacloud/emr/model/AddHpHostResult.h + include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminRequest.h + include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminResult.h + include/alibabacloud/emr/model/GetJobInputStatisticInfoRequest.h + include/alibabacloud/emr/model/GetJobInputStatisticInfoResult.h + include/alibabacloud/emr/model/DeleteFlowProjectUserRequest.h + include/alibabacloud/emr/model/DeleteFlowProjectUserResult.h + include/alibabacloud/emr/model/ListDependedServiceRequest.h + include/alibabacloud/emr/model/ListDependedServiceResult.h + include/alibabacloud/emr/model/DeleteAlertContactsRequest.h + include/alibabacloud/emr/model/DeleteAlertContactsResult.h + include/alibabacloud/emr/model/CreateClusterV2Request.h + include/alibabacloud/emr/model/CreateClusterV2Result.h + include/alibabacloud/emr/model/PlanComponentTopoRequest.h + include/alibabacloud/emr/model/PlanComponentTopoResult.h + include/alibabacloud/emr/model/ListClusterHostRequest.h + include/alibabacloud/emr/model/ListClusterHostResult.h + include/alibabacloud/emr/model/DescribeClusterServiceRequest.h + include/alibabacloud/emr/model/DescribeClusterServiceResult.h + include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminRequest.h + include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminResult.h + include/alibabacloud/emr/model/ListApmApplicationRequest.h + include/alibabacloud/emr/model/ListApmApplicationResult.h + include/alibabacloud/emr/model/MetastoreCreateTableRequest.h + include/alibabacloud/emr/model/MetastoreCreateTableResult.h + include/alibabacloud/emr/model/CommonApiWhiteListRequest.h + include/alibabacloud/emr/model/CommonApiWhiteListResult.h + include/alibabacloud/emr/model/CreateFlowForWebRequest.h + include/alibabacloud/emr/model/CreateFlowForWebResult.h + include/alibabacloud/emr/model/QuerySlsMetricDataRequest.h + include/alibabacloud/emr/model/QuerySlsMetricDataResult.h + include/alibabacloud/emr/model/MetastoreListKafkaTopicRequest.h + include/alibabacloud/emr/model/MetastoreListKafkaTopicResult.h + include/alibabacloud/emr/model/DescribeJobRequest.h + include/alibabacloud/emr/model/DescribeJobResult.h + include/alibabacloud/emr/model/ListKafkaReassignTopicRequest.h + include/alibabacloud/emr/model/ListKafkaReassignTopicResult.h + include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminRequest.h + include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminResult.h + include/alibabacloud/emr/model/ModifyFlowProjectRequest.h + include/alibabacloud/emr/model/ModifyFlowProjectResult.h + include/alibabacloud/emr/model/ListFlowRequest.h + include/alibabacloud/emr/model/ListFlowResult.h + include/alibabacloud/emr/model/ListResourceQueueRequest.h + include/alibabacloud/emr/model/ListResourceQueueResult.h + include/alibabacloud/emr/model/ListClusterTagForAdminRequest.h + include/alibabacloud/emr/model/ListClusterTagForAdminResult.h + include/alibabacloud/emr/model/KillExecutionPlanInstanceRequest.h + include/alibabacloud/emr/model/KillExecutionPlanInstanceResult.h + include/alibabacloud/emr/model/DeleteFlowCategoryRequest.h + include/alibabacloud/emr/model/DeleteFlowCategoryResult.h + include/alibabacloud/emr/model/PageListUserGroupsRequest.h + include/alibabacloud/emr/model/PageListUserGroupsResult.h + include/alibabacloud/emr/model/ListResourcePoolForAdminRequest.h + include/alibabacloud/emr/model/ListResourcePoolForAdminResult.h + include/alibabacloud/emr/model/MigrateJobsRequest.h + include/alibabacloud/emr/model/MigrateJobsResult.h + include/alibabacloud/emr/model/KillExecutionJobInstanceRequest.h + include/alibabacloud/emr/model/KillExecutionJobInstanceResult.h + include/alibabacloud/emr/model/CreateBatchUsersRequest.h + include/alibabacloud/emr/model/CreateBatchUsersResult.h + include/alibabacloud/emr/model/ModifyExecutionPlanRequest.h + include/alibabacloud/emr/model/ModifyExecutionPlanResult.h + include/alibabacloud/emr/model/AddClusterServiceRequest.h + include/alibabacloud/emr/model/AddClusterServiceResult.h + include/alibabacloud/emr/model/ListUserStatisticsRequest.h + include/alibabacloud/emr/model/ListUserStatisticsResult.h + include/alibabacloud/emr/model/ModifyFlowCategoryRequest.h + include/alibabacloud/emr/model/ModifyFlowCategoryResult.h + include/alibabacloud/emr/model/QueryAlarmRulesRequest.h + include/alibabacloud/emr/model/QueryAlarmRulesResult.h + include/alibabacloud/emr/model/ModifyClusterServiceConfigRequest.h + include/alibabacloud/emr/model/ModifyClusterServiceConfigResult.h + include/alibabacloud/emr/model/MetastoreListDataResourcesRequest.h + include/alibabacloud/emr/model/MetastoreListDataResourcesResult.h + include/alibabacloud/emr/model/UpdateETLJobRequest.h + include/alibabacloud/emr/model/UpdateETLJobResult.h + include/alibabacloud/emr/model/DescribeScalingTaskGroupRequest.h + include/alibabacloud/emr/model/DescribeScalingTaskGroupResult.h + include/alibabacloud/emr/model/DeleteHostPoolRequest.h + include/alibabacloud/emr/model/DeleteHostPoolResult.h + include/alibabacloud/emr/model/RefreshBackupListRequest.h + include/alibabacloud/emr/model/RefreshBackupListResult.h + include/alibabacloud/emr/model/UpdateDataSourceRequest.h + include/alibabacloud/emr/model/UpdateDataSourceResult.h + include/alibabacloud/emr/model/ListDataSourceSchemaDatabaseRequest.h + include/alibabacloud/emr/model/ListDataSourceSchemaDatabaseResult.h + include/alibabacloud/emr/model/CreateUsersRequest.h + include/alibabacloud/emr/model/CreateUsersResult.h + include/alibabacloud/emr/model/CheckDataSourceRequest.h + include/alibabacloud/emr/model/CheckDataSourceResult.h + include/alibabacloud/emr/model/ListScalingActivityRequest.h + include/alibabacloud/emr/model/ListScalingActivityResult.h + include/alibabacloud/emr/model/CreateNoteRequest.h + include/alibabacloud/emr/model/CreateNoteResult.h + include/alibabacloud/emr/model/RemoveHpHostRequest.h + include/alibabacloud/emr/model/RemoveHpHostResult.h + include/alibabacloud/emr/model/GetBackupInfoRequest.h + include/alibabacloud/emr/model/GetBackupInfoResult.h + include/alibabacloud/emr/model/DescribeHpHostRequest.h + include/alibabacloud/emr/model/DescribeHpHostResult.h + include/alibabacloud/emr/model/RetryExecutionPlanRequest.h + include/alibabacloud/emr/model/RetryExecutionPlanResult.h + include/alibabacloud/emr/model/ListBackupRulesRequest.h + include/alibabacloud/emr/model/ListBackupRulesResult.h + include/alibabacloud/emr/model/MetastoreListDataSourceRequest.h + include/alibabacloud/emr/model/MetastoreListDataSourceResult.h + include/alibabacloud/emr/model/ListFlowNodeInstanceContainerStatusRequest.h + include/alibabacloud/emr/model/ListFlowNodeInstanceContainerStatusResult.h + include/alibabacloud/emr/model/GetSupportedOpsCommandRequest.h + include/alibabacloud/emr/model/GetSupportedOpsCommandResult.h + include/alibabacloud/emr/model/DescribeETLJobSqlSchemaRequest.h + include/alibabacloud/emr/model/DescribeETLJobSqlSchemaResult.h + include/alibabacloud/emr/model/ListExecutionPlanInstancesRequest.h + include/alibabacloud/emr/model/ListExecutionPlanInstancesResult.h + include/alibabacloud/emr/model/MetastoreDescribeKafkaConsumerGroupRequest.h + include/alibabacloud/emr/model/MetastoreDescribeKafkaConsumerGroupResult.h + include/alibabacloud/emr/model/MetastoreListTaskRequest.h + include/alibabacloud/emr/model/MetastoreListTaskResult.h + include/alibabacloud/emr/model/RemoveBackupRequest.h + include/alibabacloud/emr/model/RemoveBackupResult.h + include/alibabacloud/emr/model/DescribeClusterOpLogRequest.h + include/alibabacloud/emr/model/DescribeClusterOpLogResult.h + include/alibabacloud/emr/model/GetQueueSubmissionStatisticInfoRequest.h + include/alibabacloud/emr/model/GetQueueSubmissionStatisticInfoResult.h + include/alibabacloud/emr/model/CreateUserRequest.h + include/alibabacloud/emr/model/CreateUserResult.h + include/alibabacloud/emr/model/ListDataSourceRequest.h + include/alibabacloud/emr/model/ListDataSourceResult.h + include/alibabacloud/emr/model/MetastoreCreateKafkaTopicRequest.h + include/alibabacloud/emr/model/MetastoreCreateKafkaTopicResult.h + include/alibabacloud/emr/model/ListETLJobInstanceRequest.h + include/alibabacloud/emr/model/ListETLJobInstanceResult.h + include/alibabacloud/emr/model/ModifyExecutionPlanBasicInfoRequest.h + include/alibabacloud/emr/model/ModifyExecutionPlanBasicInfoResult.h + include/alibabacloud/emr/model/SubmitFlowJobRequest.h + include/alibabacloud/emr/model/SubmitFlowJobResult.h + include/alibabacloud/emr/model/ListStackServiceRequest.h + include/alibabacloud/emr/model/ListStackServiceResult.h + include/alibabacloud/emr/model/DescribeETLJobRequest.h + include/alibabacloud/emr/model/DescribeETLJobResult.h + include/alibabacloud/emr/model/ListClusterHostComponentRequest.h + include/alibabacloud/emr/model/ListClusterHostComponentResult.h + include/alibabacloud/emr/model/GetJobRunningTimeStatisticInfoRequest.h + include/alibabacloud/emr/model/GetJobRunningTimeStatisticInfoResult.h + include/alibabacloud/emr/model/ListFlowProjectClusterSettingRequest.h + include/alibabacloud/emr/model/ListFlowProjectClusterSettingResult.h + include/alibabacloud/emr/model/ListJobExecutionInstancesRequest.h + include/alibabacloud/emr/model/ListJobExecutionInstancesResult.h + include/alibabacloud/emr/model/ListSlsLogstoreInfoRequest.h + include/alibabacloud/emr/model/ListSlsLogstoreInfoResult.h + include/alibabacloud/emr/model/MetastoreDropTableRequest.h + include/alibabacloud/emr/model/MetastoreDropTableResult.h + include/alibabacloud/emr/model/CreateScalingRuleRequest.h + include/alibabacloud/emr/model/CreateScalingRuleResult.h + include/alibabacloud/emr/model/ListClusterServiceRequest.h + include/alibabacloud/emr/model/ListClusterServiceResult.h + include/alibabacloud/emr/model/GetOpsCommandDetailRequest.h + include/alibabacloud/emr/model/GetOpsCommandDetailResult.h + include/alibabacloud/emr/model/CreateUserGroupRequest.h + include/alibabacloud/emr/model/CreateUserGroupResult.h + include/alibabacloud/emr/model/DeleteNoteRequest.h + include/alibabacloud/emr/model/DeleteNoteResult.h + include/alibabacloud/emr/model/ListFlowClusterAllHostsRequest.h + include/alibabacloud/emr/model/ListFlowClusterAllHostsResult.h + include/alibabacloud/emr/model/GetLogHistogramRequest.h + include/alibabacloud/emr/model/GetLogHistogramResult.h + include/alibabacloud/emr/model/MetastoreDeleteDataResourceRequest.h + include/alibabacloud/emr/model/MetastoreDeleteDataResourceResult.h + include/alibabacloud/emr/model/DeleteResourceQueueRequest.h + include/alibabacloud/emr/model/DeleteResourceQueueResult.h + include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeRequest.h + include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeResult.h + include/alibabacloud/emr/model/PageListResourceUsersRequest.h + include/alibabacloud/emr/model/PageListResourceUsersResult.h + include/alibabacloud/emr/model/ListFlowNodeSqlResultRequest.h + include/alibabacloud/emr/model/ListFlowNodeSqlResultResult.h + include/alibabacloud/emr/model/ModifyFlowForWebRequest.h + include/alibabacloud/emr/model/ModifyFlowForWebResult.h + include/alibabacloud/emr/model/RunNoteParagraphsRequest.h + include/alibabacloud/emr/model/RunNoteParagraphsResult.h + include/alibabacloud/emr/model/ListJobExecutionPlanParamsRequest.h + include/alibabacloud/emr/model/ListJobExecutionPlanParamsResult.h + include/alibabacloud/emr/model/DescribeKafkaBrokerRequest.h + include/alibabacloud/emr/model/DescribeKafkaBrokerResult.h + include/alibabacloud/emr/model/DescribeFlowNodeInstanceContainerLogRequest.h + include/alibabacloud/emr/model/DescribeFlowNodeInstanceContainerLogResult.h + include/alibabacloud/emr/model/GetUserOutputStatisticInfoRequest.h + include/alibabacloud/emr/model/GetUserOutputStatisticInfoResult.h + include/alibabacloud/emr/model/DescribeClusterBasicInfoRequest.h + include/alibabacloud/emr/model/DescribeClusterBasicInfoResult.h + include/alibabacloud/emr/model/SaveBatchUserAccountInfoRequest.h + include/alibabacloud/emr/model/SaveBatchUserAccountInfoResult.h + include/alibabacloud/emr/model/GetOpsCommandResultRequest.h + include/alibabacloud/emr/model/GetOpsCommandResultResult.h + include/alibabacloud/emr/model/ListEmrAvailableConfigRequest.h + include/alibabacloud/emr/model/ListEmrAvailableConfigResult.h + include/alibabacloud/emr/model/ListAlertUserGroupRequest.h + include/alibabacloud/emr/model/ListAlertUserGroupResult.h + include/alibabacloud/emr/model/MetastoreSearchTablesRequest.h + include/alibabacloud/emr/model/MetastoreSearchTablesResult.h + include/alibabacloud/emr/model/ListFlowClusterRequest.h + include/alibabacloud/emr/model/ListFlowClusterResult.h + include/alibabacloud/emr/model/DeleteUserRequest.h + include/alibabacloud/emr/model/DeleteUserResult.h + include/alibabacloud/emr/model/ResizeClusterV2Request.h + include/alibabacloud/emr/model/ResizeClusterV2Result.h + include/alibabacloud/emr/model/ModifyJobExecutionPlanParamRequest.h + include/alibabacloud/emr/model/ModifyJobExecutionPlanParamResult.h + include/alibabacloud/emr/model/CreateFlowCategoryRequest.h + include/alibabacloud/emr/model/CreateFlowCategoryResult.h + include/alibabacloud/emr/model/DescribeUserRequest.h + include/alibabacloud/emr/model/DescribeUserResult.h + include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigRequest.h + include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigResult.h + include/alibabacloud/emr/model/GetLogDownloadUrlRequest.h + include/alibabacloud/emr/model/GetLogDownloadUrlResult.h + include/alibabacloud/emr/model/MetastoreDescribeTableRequest.h + include/alibabacloud/emr/model/MetastoreDescribeTableResult.h + include/alibabacloud/emr/model/ModifyFlowRequest.h + include/alibabacloud/emr/model/ModifyFlowResult.h + include/alibabacloud/emr/model/DescribeScalingRuleRequest.h + include/alibabacloud/emr/model/DescribeScalingRuleResult.h + include/alibabacloud/emr/model/CreateUserStatisticsRequest.h + include/alibabacloud/emr/model/CreateUserStatisticsResult.h + include/alibabacloud/emr/model/DeleteJobRequest.h + include/alibabacloud/emr/model/DeleteJobResult.h + include/alibabacloud/emr/model/ModifyFlowProjectClusterSettingRequest.h + include/alibabacloud/emr/model/ModifyFlowProjectClusterSettingResult.h + include/alibabacloud/emr/model/AddUserResourceRoleRequest.h + include/alibabacloud/emr/model/AddUserResourceRoleResult.h + include/alibabacloud/emr/model/ModifyClusterNameRequest.h + include/alibabacloud/emr/model/ModifyClusterNameResult.h + include/alibabacloud/emr/model/MetastoreListTablesRequest.h + include/alibabacloud/emr/model/MetastoreListTablesResult.h include/alibabacloud/emr/model/ModifyResourcePoolSchedulerTypeRequest.h include/alibabacloud/emr/model/ModifyResourcePoolSchedulerTypeResult.h include/alibabacloud/emr/model/ListOpsOperationTaskRequest.h include/alibabacloud/emr/model/ListOpsOperationTaskResult.h - include/alibabacloud/emr/model/DeleteClusterHostGroupRequest.h - include/alibabacloud/emr/model/DeleteClusterHostGroupResult.h include/alibabacloud/emr/model/DeleteNavNodeRequest.h include/alibabacloud/emr/model/DeleteNavNodeResult.h - include/alibabacloud/emr/model/DescribeDataSourceSchemaTableRequest.h - include/alibabacloud/emr/model/DescribeDataSourceSchemaTableResult.h + include/alibabacloud/emr/model/ListUserGroupsRequest.h + include/alibabacloud/emr/model/ListUserGroupsResult.h include/alibabacloud/emr/model/UpdateProjectSettingRequest.h include/alibabacloud/emr/model/UpdateProjectSettingResult.h - include/alibabacloud/emr/model/OperateExistsNodeClusterRequest.h - include/alibabacloud/emr/model/OperateExistsNodeClusterResult.h include/alibabacloud/emr/model/DescribeNoteRequest.h include/alibabacloud/emr/model/DescribeNoteResult.h ) @@ -634,26 +820,12 @@ set(emr_src src/EmrClient.cc src/model/CreateFlowRequest.cc src/model/CreateFlowResult.cc - src/model/DescribeDataSourceCommandRequest.cc - src/model/DescribeDataSourceCommandResult.cc - src/model/ListUsersRequest.cc - src/model/ListUsersResult.cc src/model/GetJobOutputStatisticInfoRequest.cc src/model/GetJobOutputStatisticInfoResult.cc - src/model/ListResourcePoolRequest.cc - src/model/ListResourcePoolResult.cc - src/model/ListFlowClusterHostRequest.cc - src/model/ListFlowClusterHostResult.cc - src/model/KillFlowRequest.cc - src/model/KillFlowResult.cc - src/model/RunOpsCommandRequest.cc - src/model/RunOpsCommandResult.cc + src/model/RemoveBackupPlanRequest.cc + src/model/RemoveBackupPlanResult.cc src/model/DescribeClusterStatisticsRequest.cc src/model/DescribeClusterStatisticsResult.cc - src/model/ModifyExecutionPlanJobInfoRequest.cc - src/model/ModifyExecutionPlanJobInfoResult.cc - src/model/DeleteClusterTemplateRequest.cc - src/model/DeleteClusterTemplateResult.cc src/model/CancelOrderRequest.cc src/model/CancelOrderResult.cc src/model/CreateAlertDingDingGroupRequest.cc @@ -664,282 +836,192 @@ set(emr_src src/model/StartFlowResult.cc src/model/ListClusterServiceConfigHistoryRequest.cc src/model/ListClusterServiceConfigHistoryResult.cc - src/model/ListDataSourceSchemaTableRequest.cc - src/model/ListDataSourceSchemaTableResult.cc - src/model/CreateJobRequest.cc - src/model/CreateJobResult.cc - src/model/AttachClusterForNoteRequest.cc - src/model/AttachClusterForNoteResult.cc + src/model/UpdateWorkspaceRepoSettingRequest.cc + src/model/UpdateWorkspaceRepoSettingResult.cc + src/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.cc + src/model/ListClusterServiceCustomActionSupportConfigForAdminResult.cc src/model/QueryAlarmHistoryRequest.cc src/model/QueryAlarmHistoryResult.cc src/model/ListJobExecutionPlanHierarchyRequest.cc src/model/ListJobExecutionPlanHierarchyResult.cc - src/model/ListExecutionPlansRequest.cc - src/model/ListExecutionPlansResult.cc - src/model/ListJobMigrateInfoRequest.cc - src/model/ListJobMigrateInfoResult.cc - src/model/CloneFlowRequest.cc - src/model/CloneFlowResult.cc - src/model/ListEmrMainVersionRequest.cc - src/model/ListEmrMainVersionResult.cc - src/model/CreateClusterTemplateRequest.cc - src/model/CreateClusterTemplateResult.cc src/model/MetastoreDropDatabaseRequest.cc src/model/MetastoreDropDatabaseResult.cc - src/model/ListAlertContactsRequest.cc - src/model/ListAlertContactsResult.cc - src/model/MetastoreDescribeDatabaseRequest.cc - src/model/MetastoreDescribeDatabaseResult.cc src/model/ListFlowInstanceRequest.cc src/model/ListFlowInstanceResult.cc + src/model/MetastoreDescribeDatabaseRequest.cc + src/model/MetastoreDescribeDatabaseResult.cc + src/model/PageListUsersRequest.cc + src/model/PageListUsersResult.cc + src/model/DescribeClusterServiceConfigHistoryRequest.cc + src/model/DescribeClusterServiceConfigHistoryResult.cc src/model/ListJobExecutionInstanceTrendRequest.cc src/model/ListJobExecutionInstanceTrendResult.cc src/model/MetastoreDescribeTaskRequest.cc src/model/MetastoreDescribeTaskResult.cc - src/model/DescribeClusterServiceConfigHistoryRequest.cc - src/model/DescribeClusterServiceConfigHistoryResult.cc + src/model/QueryUserActionsPolicyRequest.cc + src/model/QueryUserActionsPolicyResult.cc src/model/GetJobMigrateResultRequest.cc src/model/GetJobMigrateResultResult.cc - src/model/GetHdfsCapacityStatisticInfoRequest.cc - src/model/GetHdfsCapacityStatisticInfoResult.cc - src/model/ResumeExecutionPlanSchedulerRequest.cc - src/model/ResumeExecutionPlanSchedulerResult.cc - src/model/ListFlowNodeInstanceRequest.cc - src/model/ListFlowNodeInstanceResult.cc src/model/DescribeDataSourceRequest.cc src/model/DescribeDataSourceResult.cc - src/model/ListJobsRequest.cc - src/model/ListJobsResult.cc + src/model/ListFlowNodeInstanceRequest.cc + src/model/ListFlowNodeInstanceResult.cc src/model/DescribeFlowVariableCollectionRequest.cc src/model/DescribeFlowVariableCollectionResult.cc src/model/CreateAlertUserGroupRequest.cc src/model/CreateAlertUserGroupResult.cc src/model/DescribeScalingActivityRequest.cc src/model/DescribeScalingActivityResult.cc - src/model/ListEmrAvailableResourceRequest.cc - src/model/ListEmrAvailableResourceResult.cc - src/model/ReleaseETLJobRequest.cc - src/model/ReleaseETLJobResult.cc + src/model/ListClusterInstalledServiceRequest.cc + src/model/ListClusterInstalledServiceResult.cc src/model/DescribeEmrMainVersionRequest.cc src/model/DescribeEmrMainVersionResult.cc - src/model/DescribeClusterServiceConfigTagRequest.cc - src/model/DescribeClusterServiceConfigTagResult.cc src/model/DeleteETLJobRequest.cc src/model/DeleteETLJobResult.cc - src/model/RunClusterServiceActionRequest.cc - src/model/RunClusterServiceActionResult.cc - src/model/SuspendFlowRequest.cc - src/model/SuspendFlowResult.cc src/model/MetastoreDataPreviewRequest.cc src/model/MetastoreDataPreviewResult.cc - src/model/AuthorizeSecurityGroupRequest.cc - src/model/AuthorizeSecurityGroupResult.cc - src/model/ModifyClusterTemplateRequest.cc - src/model/ModifyClusterTemplateResult.cc src/model/AttachPubIpRequest.cc src/model/AttachPubIpResult.cc + src/model/UpdateWorkspaceResourceSettingRequest.cc + src/model/UpdateWorkspaceResourceSettingResult.cc src/model/RunExecutionPlanRequest.cc src/model/RunExecutionPlanResult.cc - src/model/ContextQueryLogRequest.cc - src/model/ContextQueryLogResult.cc - src/model/ListClusterOperationHostRequest.cc - src/model/ListClusterOperationHostResult.cc src/model/ListClusterTemplatesRequest.cc src/model/ListClusterTemplatesResult.cc src/model/DescribeFlowCategoryRequest.cc src/model/DescribeFlowCategoryResult.cc + src/model/StartKafkaBrokerDiskBalancerRequest.cc + src/model/StartKafkaBrokerDiskBalancerResult.cc src/model/ModifyFlowJobRequest.cc src/model/ModifyFlowJobResult.cc - src/model/ListScalingRuleRequest.cc - src/model/ListScalingRuleResult.cc - src/model/DeleteFlowRequest.cc - src/model/DeleteFlowResult.cc - src/model/DeleteDataSourceRequest.cc - src/model/DeleteDataSourceResult.cc - src/model/RunETLJobRequest.cc - src/model/RunETLJobResult.cc + src/model/RemoveBackupRuleRequest.cc + src/model/RemoveBackupRuleResult.cc + src/model/RetrySyncUserAccountRequest.cc + src/model/RetrySyncUserAccountResult.cc src/model/CreateClusterHostGroupRequest.cc src/model/CreateClusterHostGroupResult.cc src/model/DescribeClusterTemplateRequest.cc src/model/DescribeClusterTemplateResult.cc src/model/ModifyScalingRuleRequest.cc src/model/ModifyScalingRuleResult.cc - src/model/ListClusterServiceComponentHealthInfoRequest.cc - src/model/ListClusterServiceComponentHealthInfoResult.cc - src/model/ListFlowProjectRequest.cc - src/model/ListFlowProjectResult.cc src/model/RemoveClusterHostsRequest.cc src/model/RemoveClusterHostsResult.cc src/model/ListETLJobTriggerEntityRequest.cc src/model/ListETLJobTriggerEntityResult.cc - src/model/ModifyAlertDingDingGroupRequest.cc - src/model/ModifyAlertDingDingGroupResult.cc - src/model/CreateETLJobRequest.cc - src/model/CreateETLJobResult.cc + src/model/AddClusterServiceForAdminRequest.cc + src/model/AddClusterServiceForAdminResult.cc + src/model/DescribeHostPoolRequest.cc + src/model/DescribeHostPoolResult.cc src/model/SaveParagraphRequest.cc src/model/SaveParagraphResult.cc src/model/DeleteParagraphRequest.cc src/model/DeleteParagraphResult.cc - src/model/ListFlowJobHistoryRequest.cc - src/model/ListFlowJobHistoryResult.cc - src/model/CreateClusterScriptRequest.cc - src/model/CreateClusterScriptResult.cc - src/model/SubmitFlowRequest.cc - src/model/SubmitFlowResult.cc src/model/GetQueueInputStatisticInfoRequest.cc src/model/GetQueueInputStatisticInfoResult.cc - src/model/ListClusterServiceQuickLinkRequest.cc - src/model/ListClusterServiceQuickLinkResult.cc src/model/MetastoreUpdateTableRequest.cc src/model/MetastoreUpdateTableResult.cc + src/model/GetBackupRuleInfoRequest.cc + src/model/GetBackupRuleInfoResult.cc + src/model/ListClusterServiceQuickLinkRequest.cc + src/model/ListClusterServiceQuickLinkResult.cc src/model/ListClusterHostGroupRequest.cc src/model/ListClusterHostGroupResult.cc src/model/StopParagraphRequest.cc src/model/StopParagraphResult.cc src/model/MetastoreDeleteKafkaTopicRequest.cc src/model/MetastoreDeleteKafkaTopicResult.cc - src/model/ResumeFlowRequest.cc - src/model/ResumeFlowResult.cc - src/model/DeleteFlowProjectByIdRequest.cc - src/model/DeleteFlowProjectByIdResult.cc src/model/SuspendExecutionPlanInstanceRequest.cc src/model/SuspendExecutionPlanInstanceResult.cc - src/model/GetUserSubmissionStatisticInfoRequest.cc - src/model/GetUserSubmissionStatisticInfoResult.cc src/model/DeleteScalingTaskGroupRequest.cc src/model/DeleteScalingTaskGroupResult.cc - src/model/DescribeParagraphRequest.cc - src/model/DescribeParagraphResult.cc - src/model/MetastoreCreateDatabaseRequest.cc - src/model/MetastoreCreateDatabaseResult.cc + src/model/GetUserSubmissionStatisticInfoRequest.cc + src/model/GetUserSubmissionStatisticInfoResult.cc src/model/ListFailureJobExecutionInstancesRequest.cc src/model/ListFailureJobExecutionInstancesResult.cc - src/model/DeleteFlowJobRequest.cc - src/model/DeleteFlowJobResult.cc - src/model/RefreshClusterResourcePoolRequest.cc - src/model/RefreshClusterResourcePoolResult.cc - src/model/ModifyJobRequest.cc - src/model/ModifyJobResult.cc + src/model/CreateBackupPlanRequest.cc + src/model/CreateBackupPlanResult.cc + src/model/ListHpHostRequest.cc + src/model/ListHpHostResult.cc src/model/MetastoreCreateDataResourceRequest.cc src/model/MetastoreCreateDataResourceResult.cc + src/model/ListClusterHostComponentForAdminRequest.cc + src/model/ListClusterHostComponentForAdminResult.cc src/model/KillETLJobInstanceRequest.cc src/model/KillETLJobInstanceResult.cc - src/model/DescribeFlowJobRequest.cc - src/model/DescribeFlowJobResult.cc src/model/RetryExecutionPlanInstanceRequest.cc src/model/RetryExecutionPlanInstanceResult.cc - src/model/RerunFlowRequest.cc - src/model/RerunFlowResult.cc - src/model/MetastoreRetryTaskRequest.cc - src/model/MetastoreRetryTaskResult.cc + src/model/ListHostPoolRequest.cc + src/model/ListHostPoolResult.cc src/model/DescribeClusterOperationHostTaskLogRequest.cc src/model/DescribeClusterOperationHostTaskLogResult.cc src/model/CreateScalingTaskGroupRequest.cc src/model/CreateScalingTaskGroupResult.cc src/model/KillFlowJobRequest.cc src/model/KillFlowJobResult.cc + src/model/DescribeWorkspaceRepoSettingRequest.cc + src/model/DescribeWorkspaceRepoSettingResult.cc src/model/DescribeFlowRequest.cc src/model/DescribeFlowResult.cc - src/model/DescribeClusterV2Request.cc - src/model/DescribeClusterV2Result.cc src/model/DescribeDataSourceSchemaDatabaseRequest.cc src/model/DescribeDataSourceSchemaDatabaseResult.cc src/model/DescribeETLJobStageOutputSchemaRequest.cc src/model/DescribeETLJobStageOutputSchemaResult.cc - src/model/CreateFlowProjectClusterSettingRequest.cc - src/model/CreateFlowProjectClusterSettingResult.cc - src/model/ListClusterScriptsRequest.cc - src/model/ListClusterScriptsResult.cc - src/model/DescribeFlowInstanceRequest.cc - src/model/DescribeFlowInstanceResult.cc - src/model/CreateDataSourceRequest.cc - src/model/CreateDataSourceResult.cc src/model/GetUserInputStatisticInfoRequest.cc src/model/GetUserInputStatisticInfoResult.cc + src/model/CreateDataSourceRequest.cc + src/model/CreateDataSourceResult.cc src/model/ModifyAlertContactRequest.cc src/model/ModifyAlertContactResult.cc - src/model/CreateAlertContactRequest.cc - src/model/CreateAlertContactResult.cc src/model/DeleteAlertDingDingGroupsRequest.cc src/model/DeleteAlertDingDingGroupsResult.cc - src/model/MetastoreModifyDataResourceRequest.cc - src/model/MetastoreModifyDataResourceResult.cc - src/model/ListExecutePlanMigrateInfoRequest.cc - src/model/ListExecutePlanMigrateInfoResult.cc - src/model/GetOpsCommandResultOnceRequest.cc - src/model/GetOpsCommandResultOnceResult.cc - src/model/ResumeExecutionPlanInstanceRequest.cc - src/model/ResumeExecutionPlanInstanceResult.cc - src/model/CreateParagraphRequest.cc - src/model/CreateParagraphResult.cc - src/model/GetJobInputStatisticInfoRequest.cc - src/model/GetJobInputStatisticInfoResult.cc - src/model/DeleteFlowProjectUserRequest.cc - src/model/DeleteFlowProjectUserResult.cc + src/model/DescribeWorkspaceResourceSettingRequest.cc + src/model/DescribeWorkspaceResourceSettingResult.cc src/model/CreateResourceQueueRequest.cc src/model/CreateResourceQueueResult.cc - src/model/ListDependedServiceRequest.cc - src/model/ListDependedServiceResult.cc src/model/CloneETLJobRequest.cc src/model/CloneETLJobResult.cc - src/model/DeleteAlertContactsRequest.cc - src/model/DeleteAlertContactsResult.cc src/model/MetastoreListTablePartitionRequest.cc src/model/MetastoreListTablePartitionResult.cc - src/model/CreateClusterV2Request.cc - src/model/CreateClusterV2Result.cc src/model/ModifyExecutionPlanScheduleInfoRequest.cc src/model/ModifyExecutionPlanScheduleInfoResult.cc - src/model/ListClusterHostRequest.cc - src/model/ListClusterHostResult.cc - src/model/DescribeClusterServiceRequest.cc - src/model/DescribeClusterServiceResult.cc src/model/GetQueueOutputStatisticInfoRequest.cc src/model/GetQueueOutputStatisticInfoResult.cc src/model/CreateExecutionPlanRequest.cc src/model/CreateExecutionPlanResult.cc - src/model/MetastoreCreateTableRequest.cc - src/model/MetastoreCreateTableResult.cc + src/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.cc + src/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.cc src/model/DeleteAlertUserGroupsRequest.cc src/model/DeleteAlertUserGroupsResult.cc src/model/MetastoreListKafkaConsumerGroupRequest.cc src/model/MetastoreListKafkaConsumerGroupResult.cc - src/model/CommonApiWhiteListRequest.cc - src/model/CommonApiWhiteListResult.cc - src/model/CreateFlowForWebRequest.cc - src/model/CreateFlowForWebResult.cc + src/model/AddResourceToUsersRequest.cc + src/model/AddResourceToUsersResult.cc + src/model/SaveUserAccountInfoRequest.cc + src/model/SaveUserAccountInfoResult.cc src/model/DeleteScalingRuleRequest.cc src/model/DeleteScalingRuleResult.cc - src/model/QuerySlsMetricDataRequest.cc - src/model/QuerySlsMetricDataResult.cc + src/model/CreateBackupRuleRequest.cc + src/model/CreateBackupRuleResult.cc src/model/DescribeFlowJobStatisticRequest.cc src/model/DescribeFlowJobStatisticResult.cc - src/model/MetastoreListKafkaTopicRequest.cc - src/model/MetastoreListKafkaTopicResult.cc - src/model/DescribeJobRequest.cc - src/model/DescribeJobResult.cc + src/model/ListKafkaBrokerRequest.cc + src/model/ListKafkaBrokerResult.cc src/model/ReleaseClusterHostGroupRequest.cc src/model/ReleaseClusterHostGroupResult.cc + src/model/ListBackupsRequest.cc + src/model/ListBackupsResult.cc src/model/ListOpsOperationRequest.cc src/model/ListOpsOperationResult.cc - src/model/ModifyFlowProjectRequest.cc - src/model/ModifyFlowProjectResult.cc src/model/ModifyClusterHostGroupRequest.cc src/model/ModifyClusterHostGroupResult.cc - src/model/DescribeUserStatisticsRequest.cc - src/model/DescribeUserStatisticsResult.cc src/model/DescribeFlowNodeInstanceLauncherLogRequest.cc src/model/DescribeFlowNodeInstanceLauncherLogResult.cc - src/model/ListFlowRequest.cc - src/model/ListFlowResult.cc + src/model/DescribeUserStatisticsRequest.cc + src/model/DescribeUserStatisticsResult.cc src/model/DeleteClusterScriptRequest.cc src/model/DeleteClusterScriptResult.cc - src/model/ListResourceQueueRequest.cc - src/model/ListResourceQueueResult.cc src/model/ListClusterOperationRequest.cc src/model/ListClusterOperationResult.cc - src/model/KillExecutionPlanInstanceRequest.cc - src/model/KillExecutionPlanInstanceResult.cc src/model/UpdateNavNodeRequest.cc src/model/UpdateNavNodeResult.cc src/model/CloneFlowJobRequest.cc @@ -948,36 +1030,20 @@ set(emr_src src/model/CreateResourcePoolResult.cc src/model/CreateFlowJobRequest.cc src/model/CreateFlowJobResult.cc - src/model/DeleteFlowCategoryRequest.cc - src/model/DeleteFlowCategoryResult.cc - src/model/MigrateJobsRequest.cc - src/model/MigrateJobsResult.cc - src/model/KillExecutionJobInstanceRequest.cc - src/model/KillExecutionJobInstanceResult.cc + src/model/StartKafkaPreferredReplicaElectionRequest.cc + src/model/StartKafkaPreferredReplicaElectionResult.cc + src/model/DescribeClusterServiceConfigForAdminRequest.cc + src/model/DescribeClusterServiceConfigForAdminResult.cc src/model/CreateClusterWithTemplateRequest.cc src/model/CreateClusterWithTemplateResult.cc src/model/ListFlowClusterAllRequest.cc src/model/ListFlowClusterAllResult.cc - src/model/ModifyExecutionPlanRequest.cc - src/model/ModifyExecutionPlanResult.cc - src/model/ListUserStatisticsRequest.cc - src/model/ListUserStatisticsResult.cc - src/model/AddClusterServiceRequest.cc - src/model/AddClusterServiceResult.cc - src/model/ModifyFlowCategoryRequest.cc - src/model/ModifyFlowCategoryResult.cc - src/model/QueryAlarmRulesRequest.cc - src/model/QueryAlarmRulesResult.cc - src/model/ModifyClusterServiceConfigRequest.cc - src/model/ModifyClusterServiceConfigResult.cc + src/model/DescribeKafkaReassignRequest.cc + src/model/DescribeKafkaReassignResult.cc + src/model/GetAuditLogsRequest.cc + src/model/GetAuditLogsResult.cc src/model/ListNotesRequest.cc src/model/ListNotesResult.cc - src/model/MetastoreListDataResourcesRequest.cc - src/model/MetastoreListDataResourcesResult.cc - src/model/UpdateETLJobRequest.cc - src/model/UpdateETLJobResult.cc - src/model/DescribeScalingTaskGroupRequest.cc - src/model/DescribeScalingTaskGroupResult.cc src/model/MetastoreDescribeDataSourceRequest.cc src/model/MetastoreDescribeDataSourceResult.cc src/model/ListExecutionPlanInstanceTrendRequest.cc @@ -990,228 +1056,134 @@ set(emr_src src/model/SearchLogResult.cc src/model/RenderResourcePoolXmlRequest.cc src/model/RenderResourcePoolXmlResult.cc - src/model/UpdateDataSourceRequest.cc - src/model/UpdateDataSourceResult.cc src/model/ModifyScalingTaskGroupRequest.cc src/model/ModifyScalingTaskGroupResult.cc - src/model/ListDataSourceSchemaDatabaseRequest.cc - src/model/ListDataSourceSchemaDatabaseResult.cc src/model/DescribeFlowProjectRequest.cc src/model/DescribeFlowProjectResult.cc - src/model/CreateUsersRequest.cc - src/model/CreateUsersResult.cc - src/model/CheckDataSourceRequest.cc - src/model/CheckDataSourceResult.cc - src/model/ListScalingActivityRequest.cc - src/model/ListScalingActivityResult.cc - src/model/CreateNoteRequest.cc - src/model/CreateNoteResult.cc src/model/DeleteResourcePoolRequest.cc src/model/DeleteResourcePoolResult.cc + src/model/QueryUserPoliciesRequest.cc + src/model/QueryUserPoliciesResult.cc src/model/ListFlowJobRequest.cc src/model/ListFlowJobResult.cc - src/model/RetryExecutionPlanRequest.cc - src/model/RetryExecutionPlanResult.cc - src/model/DescribeAvailableInstanceTypeRequest.cc - src/model/DescribeAvailableInstanceTypeResult.cc src/model/MetastoreUpdateKafkaTopicBatchRequest.cc src/model/MetastoreUpdateKafkaTopicBatchResult.cc + src/model/DescribeAvailableInstanceTypeRequest.cc + src/model/DescribeAvailableInstanceTypeResult.cc src/model/ListNavSubTreeRequest.cc src/model/ListNavSubTreeResult.cc - src/model/ListFlowNodeInstanceContainerStatusRequest.cc - src/model/ListFlowNodeInstanceContainerStatusResult.cc src/model/CreateFlowProjectRequest.cc src/model/CreateFlowProjectResult.cc - src/model/MetastoreListDataSourceRequest.cc - src/model/MetastoreListDataSourceResult.cc - src/model/GetSupportedOpsCommandRequest.cc - src/model/GetSupportedOpsCommandResult.cc - src/model/DescribeETLJobSqlSchemaRequest.cc - src/model/DescribeETLJobSqlSchemaResult.cc src/model/CreateVerificationCodeRequest.cc src/model/CreateVerificationCodeResult.cc - src/model/ListExecutionPlanInstancesRequest.cc - src/model/ListExecutionPlanInstancesResult.cc - src/model/DetachClusterForNoteRequest.cc - src/model/DetachClusterForNoteResult.cc src/model/ListClustersRequest.cc src/model/ListClustersResult.cc - src/model/MetastoreDescribeKafkaConsumerGroupRequest.cc - src/model/MetastoreDescribeKafkaConsumerGroupResult.cc - src/model/MetastoreListTaskRequest.cc - src/model/MetastoreListTaskResult.cc - src/model/DescribeClusterOpLogRequest.cc - src/model/DescribeClusterOpLogResult.cc + src/model/DetachClusterForNoteRequest.cc + src/model/DetachClusterForNoteResult.cc + src/model/ListRolesRequest.cc + src/model/ListRolesResult.cc + src/model/DeleteBatchResourceUsersRequest.cc + src/model/DeleteBatchResourceUsersResult.cc src/model/DescribeFlowNodeInstanceRequest.cc src/model/DescribeFlowNodeInstanceResult.cc + src/model/ListStreamingSqlQueryRequest.cc + src/model/ListStreamingSqlQueryResult.cc src/model/MetastoreDescribeKafkaTopicRequest.cc src/model/MetastoreDescribeKafkaTopicResult.cc src/model/ListScalingTaskGroupRequest.cc src/model/ListScalingTaskGroupResult.cc - src/model/GetQueueSubmissionStatisticInfoRequest.cc - src/model/GetQueueSubmissionStatisticInfoResult.cc - src/model/ListDataSourceRequest.cc - src/model/ListDataSourceResult.cc src/model/ModifyUserStatisticsRequest.cc src/model/ModifyUserStatisticsResult.cc - src/model/MetastoreCreateKafkaTopicRequest.cc - src/model/MetastoreCreateKafkaTopicResult.cc - src/model/ListETLJobInstanceRequest.cc - src/model/ListETLJobInstanceResult.cc src/model/ModifyFlowVariableCollectionRequest.cc src/model/ModifyFlowVariableCollectionResult.cc src/model/DescribeETLJobInstanceRequest.cc src/model/DescribeETLJobInstanceResult.cc - src/model/ModifyExecutionPlanBasicInfoRequest.cc - src/model/ModifyExecutionPlanBasicInfoResult.cc - src/model/SubmitFlowJobRequest.cc - src/model/SubmitFlowJobResult.cc + src/model/UpdateUserStatusRequest.cc + src/model/UpdateUserStatusResult.cc + src/model/UpdateUserRequest.cc + src/model/UpdateUserResult.cc src/model/CreateUserPasswordRequest.cc src/model/CreateUserPasswordResult.cc - src/model/DescribeETLJobRequest.cc - src/model/DescribeETLJobResult.cc - src/model/ListClusterHostComponentRequest.cc - src/model/ListClusterHostComponentResult.cc + src/model/GetFlowAuditLogsRequest.cc + src/model/GetFlowAuditLogsResult.cc + src/model/RefreshClusterResourcePoolForAdminRequest.cc + src/model/RefreshClusterResourcePoolForAdminResult.cc src/model/ListAlertDingDingGroupRequest.cc src/model/ListAlertDingDingGroupResult.cc src/model/CloneDataSourceRequest.cc src/model/CloneDataSourceResult.cc - src/model/GetJobRunningTimeStatisticInfoRequest.cc - src/model/GetJobRunningTimeStatisticInfoResult.cc - src/model/ListFlowProjectClusterSettingRequest.cc - src/model/ListFlowProjectClusterSettingResult.cc src/model/DescribeFlowProjectClusterSettingRequest.cc src/model/DescribeFlowProjectClusterSettingResult.cc src/model/SyncDataSourceSchemaTableRequest.cc src/model/SyncDataSourceSchemaTableResult.cc - src/model/ListJobExecutionInstancesRequest.cc - src/model/ListJobExecutionInstancesResult.cc src/model/TerminateClusterOperationRequest.cc src/model/TerminateClusterOperationResult.cc - src/model/ListSlsLogstoreInfoRequest.cc - src/model/ListSlsLogstoreInfoResult.cc - src/model/MetastoreDropTableRequest.cc - src/model/MetastoreDropTableResult.cc - src/model/GetOpsCommandDetailRequest.cc - src/model/GetOpsCommandDetailResult.cc - src/model/ListClusterServiceRequest.cc - src/model/ListClusterServiceResult.cc - src/model/CreateScalingRuleRequest.cc - src/model/CreateScalingRuleResult.cc src/model/CreateNavNodeRequest.cc src/model/CreateNavNodeResult.cc + src/model/DeleteResourceUserRequest.cc + src/model/DeleteResourceUserResult.cc src/model/DeleteFlowProjectRequest.cc src/model/DeleteFlowProjectResult.cc src/model/ReleaseClusterRequest.cc src/model/ReleaseClusterResult.cc - src/model/RetryCreateUserPasswordRequest.cc - src/model/RetryCreateUserPasswordResult.cc src/model/ListSupportedServiceNameRequest.cc src/model/ListSupportedServiceNameResult.cc + src/model/RetryCreateUserPasswordRequest.cc + src/model/RetryCreateUserPasswordResult.cc + src/model/PlanHostNameRequest.cc + src/model/PlanHostNameResult.cc src/model/ListJobInstanceWorkersRequest.cc src/model/ListJobInstanceWorkersResult.cc - src/model/DeleteNoteRequest.cc - src/model/DeleteNoteResult.cc - src/model/ListFlowClusterAllHostsRequest.cc - src/model/ListFlowClusterAllHostsResult.cc + src/model/ModifyHostPoolRequest.cc + src/model/ModifyHostPoolResult.cc src/model/MigrateClusterHostGroupHostRequest.cc src/model/MigrateClusterHostGroupHostResult.cc - src/model/GetLogHistogramRequest.cc - src/model/GetLogHistogramResult.cc - src/model/MetastoreDeleteDataResourceRequest.cc - src/model/MetastoreDeleteDataResourceResult.cc - src/model/DeleteResourceQueueRequest.cc - src/model/DeleteResourceQueueResult.cc - src/model/DescribeClusterResourcePoolSchedulerTypeRequest.cc - src/model/DescribeClusterResourcePoolSchedulerTypeResult.cc - src/model/DescribeFlowCategoryTreeRequest.cc - src/model/DescribeFlowCategoryTreeResult.cc src/model/ListServiceLogRequest.cc src/model/ListServiceLogResult.cc - src/model/ListFlowNodeSqlResultRequest.cc - src/model/ListFlowNodeSqlResultResult.cc - src/model/ModifyFlowForWebRequest.cc - src/model/ModifyFlowForWebResult.cc - src/model/RunNoteParagraphsRequest.cc - src/model/RunNoteParagraphsResult.cc - src/model/ListJobExecutionPlanParamsRequest.cc - src/model/ListJobExecutionPlanParamsResult.cc - src/model/DescribeFlowNodeInstanceContainerLogRequest.cc - src/model/DescribeFlowNodeInstanceContainerLogResult.cc + src/model/DescribeFlowCategoryTreeRequest.cc + src/model/DescribeFlowCategoryTreeResult.cc + src/model/GetBackPlanInfoRequest.cc + src/model/GetBackPlanInfoResult.cc src/model/CancelETLJobReleaseRequest.cc src/model/CancelETLJobReleaseResult.cc + src/model/ListStackRequest.cc + src/model/ListStackResult.cc src/model/ListClusterTagRequest.cc src/model/ListClusterTagResult.cc - src/model/GetUserOutputStatisticInfoRequest.cc - src/model/GetUserOutputStatisticInfoResult.cc src/model/ModifyJobExecutionPlanFolderRequest.cc src/model/ModifyJobExecutionPlanFolderResult.cc - src/model/DescribeClusterBasicInfoRequest.cc - src/model/DescribeClusterBasicInfoResult.cc - src/model/GetOpsCommandResultRequest.cc - src/model/GetOpsCommandResultResult.cc - src/model/ListEmrAvailableConfigRequest.cc - src/model/ListEmrAvailableConfigResult.cc src/model/ModifyAlertUserGroupRequest.cc src/model/ModifyAlertUserGroupResult.cc src/model/MetastoreListDatabasesRequest.cc src/model/MetastoreListDatabasesResult.cc - src/model/ListAlertUserGroupRequest.cc - src/model/ListAlertUserGroupResult.cc src/model/ModifyResourceQueueRequest.cc src/model/ModifyResourceQueueResult.cc - src/model/MetastoreSearchTablesRequest.cc - src/model/MetastoreSearchTablesResult.cc - src/model/ListFlowClusterRequest.cc - src/model/ListFlowClusterResult.cc src/model/DescribeSecurityGroupAttributeRequest.cc src/model/DescribeSecurityGroupAttributeResult.cc - src/model/DeleteUserRequest.cc - src/model/DeleteUserResult.cc src/model/ListFlowCategoryRequest.cc src/model/ListFlowCategoryResult.cc - src/model/ModifyJobExecutionPlanParamRequest.cc - src/model/ModifyJobExecutionPlanParamResult.cc - src/model/ResizeClusterV2Request.cc - src/model/ResizeClusterV2Result.cc src/model/DescribeExecutionPlanRequest.cc src/model/DescribeExecutionPlanResult.cc src/model/CreateFlowProjectUserRequest.cc src/model/CreateFlowProjectUserResult.cc - src/model/CreateFlowCategoryRequest.cc - src/model/CreateFlowCategoryResult.cc src/model/DeleteFlowProjectClusterSettingRequest.cc src/model/DeleteFlowProjectClusterSettingResult.cc + src/model/DescribeUserGroupRequest.cc + src/model/DescribeUserGroupResult.cc src/model/DeleteExecutionPlanRequest.cc src/model/DeleteExecutionPlanResult.cc - src/model/ListClusterServiceCustomActionSupportConfigRequest.cc - src/model/ListClusterServiceCustomActionSupportConfigResult.cc - src/model/MetastoreDescribeTableRequest.cc - src/model/MetastoreDescribeTableResult.cc - src/model/GetLogDownloadUrlRequest.cc - src/model/GetLogDownloadUrlResult.cc - src/model/ModifyFlowRequest.cc - src/model/ModifyFlowResult.cc - src/model/DescribeScalingRuleRequest.cc - src/model/DescribeScalingRuleResult.cc + src/model/UpdateUserGroupRequest.cc + src/model/UpdateUserGroupResult.cc src/model/RunParagraphRequest.cc src/model/RunParagraphResult.cc src/model/SyncDataSourceSchemaDatabaseRequest.cc src/model/SyncDataSourceSchemaDatabaseResult.cc - src/model/CreateUserStatisticsRequest.cc - src/model/CreateUserStatisticsResult.cc src/model/DescribeClusterServiceConfigRequest.cc src/model/DescribeClusterServiceConfigResult.cc - src/model/ModifyFlowProjectClusterSettingRequest.cc - src/model/ModifyFlowProjectClusterSettingResult.cc - src/model/DeleteJobRequest.cc - src/model/DeleteJobResult.cc src/model/ModifyExecutionPlanClusterInfoRequest.cc src/model/ModifyExecutionPlanClusterInfoResult.cc - src/model/ModifyClusterNameRequest.cc - src/model/ModifyClusterNameResult.cc - src/model/MetastoreListTablesRequest.cc - src/model/MetastoreListTablesResult.cc + src/model/ListUsersByConditionRequest.cc + src/model/ListUsersByConditionResult.cc src/model/ListClusterOperationHostTaskRequest.cc src/model/ListClusterOperationHostTaskResult.cc src/model/ModifyResourcePoolRequest.cc @@ -1220,24 +1192,424 @@ set(emr_src src/model/DescribeClusterScriptResult.cc src/model/ListRequiredServiceRequest.cc src/model/ListRequiredServiceResult.cc + src/model/ListBackupPlansRequest.cc + src/model/ListBackupPlansResult.cc src/model/ListFlowProjectUserRequest.cc src/model/ListFlowProjectUserResult.cc src/model/SuspendExecutionPlanSchedulerRequest.cc src/model/SuspendExecutionPlanSchedulerResult.cc + src/model/DeleteUserGroupRequest.cc + src/model/DeleteUserGroupResult.cc + src/model/DeleteClusterHostGroupRequest.cc + src/model/DeleteClusterHostGroupResult.cc + src/model/DescribeDataSourceSchemaTableRequest.cc + src/model/DescribeDataSourceSchemaTableResult.cc + src/model/OperateExistsNodeClusterRequest.cc + src/model/OperateExistsNodeClusterResult.cc + src/model/DescribeDataSourceCommandRequest.cc + src/model/DescribeDataSourceCommandResult.cc + src/model/ListUsersRequest.cc + src/model/ListUsersResult.cc + src/model/ListResourcePoolRequest.cc + src/model/ListResourcePoolResult.cc + src/model/ListFlowClusterHostRequest.cc + src/model/ListFlowClusterHostResult.cc + src/model/KillFlowRequest.cc + src/model/KillFlowResult.cc + src/model/RunOpsCommandRequest.cc + src/model/RunOpsCommandResult.cc + src/model/ModifyExecutionPlanJobInfoRequest.cc + src/model/ModifyExecutionPlanJobInfoResult.cc + src/model/DeleteClusterTemplateRequest.cc + src/model/DeleteClusterTemplateResult.cc + src/model/ListKafkaTopicStatisticsRequest.cc + src/model/ListKafkaTopicStatisticsResult.cc + src/model/QueryInfoByTokenRequest.cc + src/model/QueryInfoByTokenResult.cc + src/model/ListDataSourceSchemaTableRequest.cc + src/model/ListDataSourceSchemaTableResult.cc + src/model/CreateJobRequest.cc + src/model/CreateJobResult.cc + src/model/GetBackInfoRequest.cc + src/model/GetBackInfoResult.cc + src/model/AttachClusterForNoteRequest.cc + src/model/AttachClusterForNoteResult.cc + src/model/ListExecutionPlansRequest.cc + src/model/ListExecutionPlansResult.cc + src/model/ListJobMigrateInfoRequest.cc + src/model/ListJobMigrateInfoResult.cc + src/model/CloneFlowRequest.cc + src/model/CloneFlowResult.cc + src/model/ListEmrMainVersionRequest.cc + src/model/ListEmrMainVersionResult.cc + src/model/CreateClusterTemplateRequest.cc + src/model/CreateClusterTemplateResult.cc + src/model/RestoreBackupRequest.cc + src/model/RestoreBackupResult.cc + src/model/ListAlertContactsRequest.cc + src/model/ListAlertContactsResult.cc + src/model/ListSupportedServiceNameForAdminRequest.cc + src/model/ListSupportedServiceNameForAdminResult.cc + src/model/ReassignKafkaRequest.cc + src/model/ReassignKafkaResult.cc + src/model/GetHdfsCapacityStatisticInfoRequest.cc + src/model/GetHdfsCapacityStatisticInfoResult.cc + src/model/DescribeClusterServiceConfigTagForAdminRequest.cc + src/model/DescribeClusterServiceConfigTagForAdminResult.cc + src/model/ResumeExecutionPlanSchedulerRequest.cc + src/model/ResumeExecutionPlanSchedulerResult.cc + src/model/ListJobsRequest.cc + src/model/ListJobsResult.cc + src/model/ListEmrAvailableResourceRequest.cc + src/model/ListEmrAvailableResourceResult.cc + src/model/ModifyHpHostRequest.cc + src/model/ModifyHpHostResult.cc + src/model/ReleaseETLJobRequest.cc + src/model/ReleaseETLJobResult.cc + src/model/DescribeClusterServiceConfigTagRequest.cc + src/model/DescribeClusterServiceConfigTagResult.cc + src/model/RunClusterServiceActionRequest.cc + src/model/RunClusterServiceActionResult.cc + src/model/SuspendFlowRequest.cc + src/model/SuspendFlowResult.cc + src/model/ListClusterSupportServiceRequest.cc + src/model/ListClusterSupportServiceResult.cc + src/model/AuthorizeSecurityGroupRequest.cc + src/model/AuthorizeSecurityGroupResult.cc + src/model/ModifyClusterTemplateRequest.cc + src/model/ModifyClusterTemplateResult.cc + src/model/CreateClusterWithHostPoolRequest.cc + src/model/CreateClusterWithHostPoolResult.cc + src/model/ContextQueryLogRequest.cc + src/model/ContextQueryLogResult.cc + src/model/ListClusterOperationHostRequest.cc + src/model/ListClusterOperationHostResult.cc + src/model/ListScalingRuleRequest.cc + src/model/ListScalingRuleResult.cc + src/model/DeleteFlowRequest.cc + src/model/DeleteFlowResult.cc + src/model/DeleteDataSourceRequest.cc + src/model/DeleteDataSourceResult.cc + src/model/RunETLJobRequest.cc + src/model/RunETLJobResult.cc + src/model/ListFlowProjectRequest.cc + src/model/ListFlowProjectResult.cc + src/model/ListClusterServiceComponentHealthInfoRequest.cc + src/model/ListClusterServiceComponentHealthInfoResult.cc + src/model/CreateHostPoolRequest.cc + src/model/CreateHostPoolResult.cc + src/model/ModifyAlertDingDingGroupRequest.cc + src/model/ModifyAlertDingDingGroupResult.cc + src/model/ListFlowJobHistoryRequest.cc + src/model/ListFlowJobHistoryResult.cc + src/model/CreateETLJobRequest.cc + src/model/CreateETLJobResult.cc + src/model/CreateClusterScriptRequest.cc + src/model/CreateClusterScriptResult.cc + src/model/SubmitFlowRequest.cc + src/model/SubmitFlowResult.cc + src/model/ResumeFlowRequest.cc + src/model/ResumeFlowResult.cc + src/model/DeleteFlowProjectByIdRequest.cc + src/model/DeleteFlowProjectByIdResult.cc + src/model/OfflineKafkaBrokerRequest.cc + src/model/OfflineKafkaBrokerResult.cc + src/model/DescribeParagraphRequest.cc + src/model/DescribeParagraphResult.cc + src/model/MetastoreCreateDatabaseRequest.cc + src/model/MetastoreCreateDatabaseResult.cc + src/model/DeleteFlowJobRequest.cc + src/model/DeleteFlowJobResult.cc + src/model/RefreshClusterResourcePoolRequest.cc + src/model/RefreshClusterResourcePoolResult.cc + src/model/UpdateKafkaReassignParamRequest.cc + src/model/UpdateKafkaReassignParamResult.cc + src/model/ModifyJobRequest.cc + src/model/ModifyJobResult.cc + src/model/DescribeFlowJobRequest.cc + src/model/DescribeFlowJobResult.cc + src/model/GetMetadataTypeListRequest.cc + src/model/GetMetadataTypeListResult.cc + src/model/MetastoreRetryTaskRequest.cc + src/model/MetastoreRetryTaskResult.cc + src/model/RerunFlowRequest.cc + src/model/RerunFlowResult.cc + src/model/CreateBackupRequest.cc + src/model/CreateBackupResult.cc + src/model/ListKafkaReassignRequest.cc + src/model/ListKafkaReassignResult.cc + src/model/DescribeClusterV2Request.cc + src/model/DescribeClusterV2Result.cc + src/model/ResizeClusterWithHostPoolRequest.cc + src/model/ResizeClusterWithHostPoolResult.cc + src/model/CreateFlowProjectClusterSettingRequest.cc + src/model/CreateFlowProjectClusterSettingResult.cc + src/model/ListClusterScriptsRequest.cc + src/model/ListClusterScriptsResult.cc + src/model/DescribeFlowInstanceRequest.cc + src/model/DescribeFlowInstanceResult.cc + src/model/DeleteUserResourceRoleRequest.cc + src/model/DeleteUserResourceRoleResult.cc + src/model/ListETLJobReleaseRequest.cc + src/model/ListETLJobReleaseResult.cc + src/model/CreateAlertContactRequest.cc + src/model/CreateAlertContactResult.cc + src/model/MetastoreModifyDataResourceRequest.cc + src/model/MetastoreModifyDataResourceResult.cc + src/model/ListExecutePlanMigrateInfoRequest.cc + src/model/ListExecutePlanMigrateInfoResult.cc + src/model/ResumeExecutionPlanInstanceRequest.cc + src/model/ResumeExecutionPlanInstanceResult.cc + src/model/CreateParagraphRequest.cc + src/model/CreateParagraphResult.cc + src/model/GetOpsCommandResultOnceRequest.cc + src/model/GetOpsCommandResultOnceResult.cc + src/model/AddHpHostRequest.cc + src/model/AddHpHostResult.cc + src/model/ListClusterServiceConfigHistoryForAdminRequest.cc + src/model/ListClusterServiceConfigHistoryForAdminResult.cc + src/model/GetJobInputStatisticInfoRequest.cc + src/model/GetJobInputStatisticInfoResult.cc + src/model/DeleteFlowProjectUserRequest.cc + src/model/DeleteFlowProjectUserResult.cc + src/model/ListDependedServiceRequest.cc + src/model/ListDependedServiceResult.cc + src/model/DeleteAlertContactsRequest.cc + src/model/DeleteAlertContactsResult.cc + src/model/CreateClusterV2Request.cc + src/model/CreateClusterV2Result.cc + src/model/PlanComponentTopoRequest.cc + src/model/PlanComponentTopoResult.cc + src/model/ListClusterHostRequest.cc + src/model/ListClusterHostResult.cc + src/model/DescribeClusterServiceRequest.cc + src/model/DescribeClusterServiceResult.cc + src/model/RenderResourcePoolXmlForAdminRequest.cc + src/model/RenderResourcePoolXmlForAdminResult.cc + src/model/ListApmApplicationRequest.cc + src/model/ListApmApplicationResult.cc + src/model/MetastoreCreateTableRequest.cc + src/model/MetastoreCreateTableResult.cc + src/model/CommonApiWhiteListRequest.cc + src/model/CommonApiWhiteListResult.cc + src/model/CreateFlowForWebRequest.cc + src/model/CreateFlowForWebResult.cc + src/model/QuerySlsMetricDataRequest.cc + src/model/QuerySlsMetricDataResult.cc + src/model/MetastoreListKafkaTopicRequest.cc + src/model/MetastoreListKafkaTopicResult.cc + src/model/DescribeJobRequest.cc + src/model/DescribeJobResult.cc + src/model/ListKafkaReassignTopicRequest.cc + src/model/ListKafkaReassignTopicResult.cc + src/model/ModifyClusterServiceConfigForAdminRequest.cc + src/model/ModifyClusterServiceConfigForAdminResult.cc + src/model/ModifyFlowProjectRequest.cc + src/model/ModifyFlowProjectResult.cc + src/model/ListFlowRequest.cc + src/model/ListFlowResult.cc + src/model/ListResourceQueueRequest.cc + src/model/ListResourceQueueResult.cc + src/model/ListClusterTagForAdminRequest.cc + src/model/ListClusterTagForAdminResult.cc + src/model/KillExecutionPlanInstanceRequest.cc + src/model/KillExecutionPlanInstanceResult.cc + src/model/DeleteFlowCategoryRequest.cc + src/model/DeleteFlowCategoryResult.cc + src/model/PageListUserGroupsRequest.cc + src/model/PageListUserGroupsResult.cc + src/model/ListResourcePoolForAdminRequest.cc + src/model/ListResourcePoolForAdminResult.cc + src/model/MigrateJobsRequest.cc + src/model/MigrateJobsResult.cc + src/model/KillExecutionJobInstanceRequest.cc + src/model/KillExecutionJobInstanceResult.cc + src/model/CreateBatchUsersRequest.cc + src/model/CreateBatchUsersResult.cc + src/model/ModifyExecutionPlanRequest.cc + src/model/ModifyExecutionPlanResult.cc + src/model/AddClusterServiceRequest.cc + src/model/AddClusterServiceResult.cc + src/model/ListUserStatisticsRequest.cc + src/model/ListUserStatisticsResult.cc + src/model/ModifyFlowCategoryRequest.cc + src/model/ModifyFlowCategoryResult.cc + src/model/QueryAlarmRulesRequest.cc + src/model/QueryAlarmRulesResult.cc + src/model/ModifyClusterServiceConfigRequest.cc + src/model/ModifyClusterServiceConfigResult.cc + src/model/MetastoreListDataResourcesRequest.cc + src/model/MetastoreListDataResourcesResult.cc + src/model/UpdateETLJobRequest.cc + src/model/UpdateETLJobResult.cc + src/model/DescribeScalingTaskGroupRequest.cc + src/model/DescribeScalingTaskGroupResult.cc + src/model/DeleteHostPoolRequest.cc + src/model/DeleteHostPoolResult.cc + src/model/RefreshBackupListRequest.cc + src/model/RefreshBackupListResult.cc + src/model/UpdateDataSourceRequest.cc + src/model/UpdateDataSourceResult.cc + src/model/ListDataSourceSchemaDatabaseRequest.cc + src/model/ListDataSourceSchemaDatabaseResult.cc + src/model/CreateUsersRequest.cc + src/model/CreateUsersResult.cc + src/model/CheckDataSourceRequest.cc + src/model/CheckDataSourceResult.cc + src/model/ListScalingActivityRequest.cc + src/model/ListScalingActivityResult.cc + src/model/CreateNoteRequest.cc + src/model/CreateNoteResult.cc + src/model/RemoveHpHostRequest.cc + src/model/RemoveHpHostResult.cc + src/model/GetBackupInfoRequest.cc + src/model/GetBackupInfoResult.cc + src/model/DescribeHpHostRequest.cc + src/model/DescribeHpHostResult.cc + src/model/RetryExecutionPlanRequest.cc + src/model/RetryExecutionPlanResult.cc + src/model/ListBackupRulesRequest.cc + src/model/ListBackupRulesResult.cc + src/model/MetastoreListDataSourceRequest.cc + src/model/MetastoreListDataSourceResult.cc + src/model/ListFlowNodeInstanceContainerStatusRequest.cc + src/model/ListFlowNodeInstanceContainerStatusResult.cc + src/model/GetSupportedOpsCommandRequest.cc + src/model/GetSupportedOpsCommandResult.cc + src/model/DescribeETLJobSqlSchemaRequest.cc + src/model/DescribeETLJobSqlSchemaResult.cc + src/model/ListExecutionPlanInstancesRequest.cc + src/model/ListExecutionPlanInstancesResult.cc + src/model/MetastoreDescribeKafkaConsumerGroupRequest.cc + src/model/MetastoreDescribeKafkaConsumerGroupResult.cc + src/model/MetastoreListTaskRequest.cc + src/model/MetastoreListTaskResult.cc + src/model/RemoveBackupRequest.cc + src/model/RemoveBackupResult.cc + src/model/DescribeClusterOpLogRequest.cc + src/model/DescribeClusterOpLogResult.cc + src/model/GetQueueSubmissionStatisticInfoRequest.cc + src/model/GetQueueSubmissionStatisticInfoResult.cc + src/model/CreateUserRequest.cc + src/model/CreateUserResult.cc + src/model/ListDataSourceRequest.cc + src/model/ListDataSourceResult.cc + src/model/MetastoreCreateKafkaTopicRequest.cc + src/model/MetastoreCreateKafkaTopicResult.cc + src/model/ListETLJobInstanceRequest.cc + src/model/ListETLJobInstanceResult.cc + src/model/ModifyExecutionPlanBasicInfoRequest.cc + src/model/ModifyExecutionPlanBasicInfoResult.cc + src/model/SubmitFlowJobRequest.cc + src/model/SubmitFlowJobResult.cc + src/model/ListStackServiceRequest.cc + src/model/ListStackServiceResult.cc + src/model/DescribeETLJobRequest.cc + src/model/DescribeETLJobResult.cc + src/model/ListClusterHostComponentRequest.cc + src/model/ListClusterHostComponentResult.cc + src/model/GetJobRunningTimeStatisticInfoRequest.cc + src/model/GetJobRunningTimeStatisticInfoResult.cc + src/model/ListFlowProjectClusterSettingRequest.cc + src/model/ListFlowProjectClusterSettingResult.cc + src/model/ListJobExecutionInstancesRequest.cc + src/model/ListJobExecutionInstancesResult.cc + src/model/ListSlsLogstoreInfoRequest.cc + src/model/ListSlsLogstoreInfoResult.cc + src/model/MetastoreDropTableRequest.cc + src/model/MetastoreDropTableResult.cc + src/model/CreateScalingRuleRequest.cc + src/model/CreateScalingRuleResult.cc + src/model/ListClusterServiceRequest.cc + src/model/ListClusterServiceResult.cc + src/model/GetOpsCommandDetailRequest.cc + src/model/GetOpsCommandDetailResult.cc + src/model/CreateUserGroupRequest.cc + src/model/CreateUserGroupResult.cc + src/model/DeleteNoteRequest.cc + src/model/DeleteNoteResult.cc + src/model/ListFlowClusterAllHostsRequest.cc + src/model/ListFlowClusterAllHostsResult.cc + src/model/GetLogHistogramRequest.cc + src/model/GetLogHistogramResult.cc + src/model/MetastoreDeleteDataResourceRequest.cc + src/model/MetastoreDeleteDataResourceResult.cc + src/model/DeleteResourceQueueRequest.cc + src/model/DeleteResourceQueueResult.cc + src/model/DescribeClusterResourcePoolSchedulerTypeRequest.cc + src/model/DescribeClusterResourcePoolSchedulerTypeResult.cc + src/model/PageListResourceUsersRequest.cc + src/model/PageListResourceUsersResult.cc + src/model/ListFlowNodeSqlResultRequest.cc + src/model/ListFlowNodeSqlResultResult.cc + src/model/ModifyFlowForWebRequest.cc + src/model/ModifyFlowForWebResult.cc + src/model/RunNoteParagraphsRequest.cc + src/model/RunNoteParagraphsResult.cc + src/model/ListJobExecutionPlanParamsRequest.cc + src/model/ListJobExecutionPlanParamsResult.cc + src/model/DescribeKafkaBrokerRequest.cc + src/model/DescribeKafkaBrokerResult.cc + src/model/DescribeFlowNodeInstanceContainerLogRequest.cc + src/model/DescribeFlowNodeInstanceContainerLogResult.cc + src/model/GetUserOutputStatisticInfoRequest.cc + src/model/GetUserOutputStatisticInfoResult.cc + src/model/DescribeClusterBasicInfoRequest.cc + src/model/DescribeClusterBasicInfoResult.cc + src/model/SaveBatchUserAccountInfoRequest.cc + src/model/SaveBatchUserAccountInfoResult.cc + src/model/GetOpsCommandResultRequest.cc + src/model/GetOpsCommandResultResult.cc + src/model/ListEmrAvailableConfigRequest.cc + src/model/ListEmrAvailableConfigResult.cc + src/model/ListAlertUserGroupRequest.cc + src/model/ListAlertUserGroupResult.cc + src/model/MetastoreSearchTablesRequest.cc + src/model/MetastoreSearchTablesResult.cc + src/model/ListFlowClusterRequest.cc + src/model/ListFlowClusterResult.cc + src/model/DeleteUserRequest.cc + src/model/DeleteUserResult.cc + src/model/ResizeClusterV2Request.cc + src/model/ResizeClusterV2Result.cc + src/model/ModifyJobExecutionPlanParamRequest.cc + src/model/ModifyJobExecutionPlanParamResult.cc + src/model/CreateFlowCategoryRequest.cc + src/model/CreateFlowCategoryResult.cc + src/model/DescribeUserRequest.cc + src/model/DescribeUserResult.cc + src/model/ListClusterServiceCustomActionSupportConfigRequest.cc + src/model/ListClusterServiceCustomActionSupportConfigResult.cc + src/model/GetLogDownloadUrlRequest.cc + src/model/GetLogDownloadUrlResult.cc + src/model/MetastoreDescribeTableRequest.cc + src/model/MetastoreDescribeTableResult.cc + src/model/ModifyFlowRequest.cc + src/model/ModifyFlowResult.cc + src/model/DescribeScalingRuleRequest.cc + src/model/DescribeScalingRuleResult.cc + src/model/CreateUserStatisticsRequest.cc + src/model/CreateUserStatisticsResult.cc + src/model/DeleteJobRequest.cc + src/model/DeleteJobResult.cc + src/model/ModifyFlowProjectClusterSettingRequest.cc + src/model/ModifyFlowProjectClusterSettingResult.cc + src/model/AddUserResourceRoleRequest.cc + src/model/AddUserResourceRoleResult.cc + src/model/ModifyClusterNameRequest.cc + src/model/ModifyClusterNameResult.cc + src/model/MetastoreListTablesRequest.cc + src/model/MetastoreListTablesResult.cc src/model/ModifyResourcePoolSchedulerTypeRequest.cc src/model/ModifyResourcePoolSchedulerTypeResult.cc src/model/ListOpsOperationTaskRequest.cc src/model/ListOpsOperationTaskResult.cc - src/model/DeleteClusterHostGroupRequest.cc - src/model/DeleteClusterHostGroupResult.cc src/model/DeleteNavNodeRequest.cc src/model/DeleteNavNodeResult.cc - src/model/DescribeDataSourceSchemaTableRequest.cc - src/model/DescribeDataSourceSchemaTableResult.cc + src/model/ListUserGroupsRequest.cc + src/model/ListUserGroupsResult.cc src/model/UpdateProjectSettingRequest.cc src/model/UpdateProjectSettingResult.cc - src/model/OperateExistsNodeClusterRequest.cc - src/model/OperateExistsNodeClusterResult.cc src/model/DescribeNoteRequest.cc src/model/DescribeNoteResult.cc ) diff --git a/emr/include/alibabacloud/emr/EmrClient.h b/emr/include/alibabacloud/emr/EmrClient.h index d4c79f919..7da90f0e7 100644 --- a/emr/include/alibabacloud/emr/EmrClient.h +++ b/emr/include/alibabacloud/emr/EmrClient.h @@ -24,26 +24,12 @@ #include "EmrExport.h" #include "model/CreateFlowRequest.h" #include "model/CreateFlowResult.h" -#include "model/DescribeDataSourceCommandRequest.h" -#include "model/DescribeDataSourceCommandResult.h" -#include "model/ListUsersRequest.h" -#include "model/ListUsersResult.h" #include "model/GetJobOutputStatisticInfoRequest.h" #include "model/GetJobOutputStatisticInfoResult.h" -#include "model/ListResourcePoolRequest.h" -#include "model/ListResourcePoolResult.h" -#include "model/ListFlowClusterHostRequest.h" -#include "model/ListFlowClusterHostResult.h" -#include "model/KillFlowRequest.h" -#include "model/KillFlowResult.h" -#include "model/RunOpsCommandRequest.h" -#include "model/RunOpsCommandResult.h" +#include "model/RemoveBackupPlanRequest.h" +#include "model/RemoveBackupPlanResult.h" #include "model/DescribeClusterStatisticsRequest.h" #include "model/DescribeClusterStatisticsResult.h" -#include "model/ModifyExecutionPlanJobInfoRequest.h" -#include "model/ModifyExecutionPlanJobInfoResult.h" -#include "model/DeleteClusterTemplateRequest.h" -#include "model/DeleteClusterTemplateResult.h" #include "model/CancelOrderRequest.h" #include "model/CancelOrderResult.h" #include "model/CreateAlertDingDingGroupRequest.h" @@ -54,282 +40,192 @@ #include "model/StartFlowResult.h" #include "model/ListClusterServiceConfigHistoryRequest.h" #include "model/ListClusterServiceConfigHistoryResult.h" -#include "model/ListDataSourceSchemaTableRequest.h" -#include "model/ListDataSourceSchemaTableResult.h" -#include "model/CreateJobRequest.h" -#include "model/CreateJobResult.h" -#include "model/AttachClusterForNoteRequest.h" -#include "model/AttachClusterForNoteResult.h" +#include "model/UpdateWorkspaceRepoSettingRequest.h" +#include "model/UpdateWorkspaceRepoSettingResult.h" +#include "model/ListClusterServiceCustomActionSupportConfigForAdminRequest.h" +#include "model/ListClusterServiceCustomActionSupportConfigForAdminResult.h" #include "model/QueryAlarmHistoryRequest.h" #include "model/QueryAlarmHistoryResult.h" #include "model/ListJobExecutionPlanHierarchyRequest.h" #include "model/ListJobExecutionPlanHierarchyResult.h" -#include "model/ListExecutionPlansRequest.h" -#include "model/ListExecutionPlansResult.h" -#include "model/ListJobMigrateInfoRequest.h" -#include "model/ListJobMigrateInfoResult.h" -#include "model/CloneFlowRequest.h" -#include "model/CloneFlowResult.h" -#include "model/ListEmrMainVersionRequest.h" -#include "model/ListEmrMainVersionResult.h" -#include "model/CreateClusterTemplateRequest.h" -#include "model/CreateClusterTemplateResult.h" #include "model/MetastoreDropDatabaseRequest.h" #include "model/MetastoreDropDatabaseResult.h" -#include "model/ListAlertContactsRequest.h" -#include "model/ListAlertContactsResult.h" -#include "model/MetastoreDescribeDatabaseRequest.h" -#include "model/MetastoreDescribeDatabaseResult.h" #include "model/ListFlowInstanceRequest.h" #include "model/ListFlowInstanceResult.h" +#include "model/MetastoreDescribeDatabaseRequest.h" +#include "model/MetastoreDescribeDatabaseResult.h" +#include "model/PageListUsersRequest.h" +#include "model/PageListUsersResult.h" +#include "model/DescribeClusterServiceConfigHistoryRequest.h" +#include "model/DescribeClusterServiceConfigHistoryResult.h" #include "model/ListJobExecutionInstanceTrendRequest.h" #include "model/ListJobExecutionInstanceTrendResult.h" #include "model/MetastoreDescribeTaskRequest.h" #include "model/MetastoreDescribeTaskResult.h" -#include "model/DescribeClusterServiceConfigHistoryRequest.h" -#include "model/DescribeClusterServiceConfigHistoryResult.h" +#include "model/QueryUserActionsPolicyRequest.h" +#include "model/QueryUserActionsPolicyResult.h" #include "model/GetJobMigrateResultRequest.h" #include "model/GetJobMigrateResultResult.h" -#include "model/GetHdfsCapacityStatisticInfoRequest.h" -#include "model/GetHdfsCapacityStatisticInfoResult.h" -#include "model/ResumeExecutionPlanSchedulerRequest.h" -#include "model/ResumeExecutionPlanSchedulerResult.h" -#include "model/ListFlowNodeInstanceRequest.h" -#include "model/ListFlowNodeInstanceResult.h" #include "model/DescribeDataSourceRequest.h" #include "model/DescribeDataSourceResult.h" -#include "model/ListJobsRequest.h" -#include "model/ListJobsResult.h" +#include "model/ListFlowNodeInstanceRequest.h" +#include "model/ListFlowNodeInstanceResult.h" #include "model/DescribeFlowVariableCollectionRequest.h" #include "model/DescribeFlowVariableCollectionResult.h" #include "model/CreateAlertUserGroupRequest.h" #include "model/CreateAlertUserGroupResult.h" #include "model/DescribeScalingActivityRequest.h" #include "model/DescribeScalingActivityResult.h" -#include "model/ListEmrAvailableResourceRequest.h" -#include "model/ListEmrAvailableResourceResult.h" -#include "model/ReleaseETLJobRequest.h" -#include "model/ReleaseETLJobResult.h" +#include "model/ListClusterInstalledServiceRequest.h" +#include "model/ListClusterInstalledServiceResult.h" #include "model/DescribeEmrMainVersionRequest.h" #include "model/DescribeEmrMainVersionResult.h" -#include "model/DescribeClusterServiceConfigTagRequest.h" -#include "model/DescribeClusterServiceConfigTagResult.h" #include "model/DeleteETLJobRequest.h" #include "model/DeleteETLJobResult.h" -#include "model/RunClusterServiceActionRequest.h" -#include "model/RunClusterServiceActionResult.h" -#include "model/SuspendFlowRequest.h" -#include "model/SuspendFlowResult.h" #include "model/MetastoreDataPreviewRequest.h" #include "model/MetastoreDataPreviewResult.h" -#include "model/AuthorizeSecurityGroupRequest.h" -#include "model/AuthorizeSecurityGroupResult.h" -#include "model/ModifyClusterTemplateRequest.h" -#include "model/ModifyClusterTemplateResult.h" #include "model/AttachPubIpRequest.h" #include "model/AttachPubIpResult.h" +#include "model/UpdateWorkspaceResourceSettingRequest.h" +#include "model/UpdateWorkspaceResourceSettingResult.h" #include "model/RunExecutionPlanRequest.h" #include "model/RunExecutionPlanResult.h" -#include "model/ContextQueryLogRequest.h" -#include "model/ContextQueryLogResult.h" -#include "model/ListClusterOperationHostRequest.h" -#include "model/ListClusterOperationHostResult.h" #include "model/ListClusterTemplatesRequest.h" #include "model/ListClusterTemplatesResult.h" #include "model/DescribeFlowCategoryRequest.h" #include "model/DescribeFlowCategoryResult.h" +#include "model/StartKafkaBrokerDiskBalancerRequest.h" +#include "model/StartKafkaBrokerDiskBalancerResult.h" #include "model/ModifyFlowJobRequest.h" #include "model/ModifyFlowJobResult.h" -#include "model/ListScalingRuleRequest.h" -#include "model/ListScalingRuleResult.h" -#include "model/DeleteFlowRequest.h" -#include "model/DeleteFlowResult.h" -#include "model/DeleteDataSourceRequest.h" -#include "model/DeleteDataSourceResult.h" -#include "model/RunETLJobRequest.h" -#include "model/RunETLJobResult.h" +#include "model/RemoveBackupRuleRequest.h" +#include "model/RemoveBackupRuleResult.h" +#include "model/RetrySyncUserAccountRequest.h" +#include "model/RetrySyncUserAccountResult.h" #include "model/CreateClusterHostGroupRequest.h" #include "model/CreateClusterHostGroupResult.h" #include "model/DescribeClusterTemplateRequest.h" #include "model/DescribeClusterTemplateResult.h" #include "model/ModifyScalingRuleRequest.h" #include "model/ModifyScalingRuleResult.h" -#include "model/ListClusterServiceComponentHealthInfoRequest.h" -#include "model/ListClusterServiceComponentHealthInfoResult.h" -#include "model/ListFlowProjectRequest.h" -#include "model/ListFlowProjectResult.h" #include "model/RemoveClusterHostsRequest.h" #include "model/RemoveClusterHostsResult.h" #include "model/ListETLJobTriggerEntityRequest.h" #include "model/ListETLJobTriggerEntityResult.h" -#include "model/ModifyAlertDingDingGroupRequest.h" -#include "model/ModifyAlertDingDingGroupResult.h" -#include "model/CreateETLJobRequest.h" -#include "model/CreateETLJobResult.h" +#include "model/AddClusterServiceForAdminRequest.h" +#include "model/AddClusterServiceForAdminResult.h" +#include "model/DescribeHostPoolRequest.h" +#include "model/DescribeHostPoolResult.h" #include "model/SaveParagraphRequest.h" #include "model/SaveParagraphResult.h" #include "model/DeleteParagraphRequest.h" #include "model/DeleteParagraphResult.h" -#include "model/ListFlowJobHistoryRequest.h" -#include "model/ListFlowJobHistoryResult.h" -#include "model/CreateClusterScriptRequest.h" -#include "model/CreateClusterScriptResult.h" -#include "model/SubmitFlowRequest.h" -#include "model/SubmitFlowResult.h" #include "model/GetQueueInputStatisticInfoRequest.h" #include "model/GetQueueInputStatisticInfoResult.h" -#include "model/ListClusterServiceQuickLinkRequest.h" -#include "model/ListClusterServiceQuickLinkResult.h" #include "model/MetastoreUpdateTableRequest.h" #include "model/MetastoreUpdateTableResult.h" +#include "model/GetBackupRuleInfoRequest.h" +#include "model/GetBackupRuleInfoResult.h" +#include "model/ListClusterServiceQuickLinkRequest.h" +#include "model/ListClusterServiceQuickLinkResult.h" #include "model/ListClusterHostGroupRequest.h" #include "model/ListClusterHostGroupResult.h" #include "model/StopParagraphRequest.h" #include "model/StopParagraphResult.h" #include "model/MetastoreDeleteKafkaTopicRequest.h" #include "model/MetastoreDeleteKafkaTopicResult.h" -#include "model/ResumeFlowRequest.h" -#include "model/ResumeFlowResult.h" -#include "model/DeleteFlowProjectByIdRequest.h" -#include "model/DeleteFlowProjectByIdResult.h" #include "model/SuspendExecutionPlanInstanceRequest.h" #include "model/SuspendExecutionPlanInstanceResult.h" -#include "model/GetUserSubmissionStatisticInfoRequest.h" -#include "model/GetUserSubmissionStatisticInfoResult.h" #include "model/DeleteScalingTaskGroupRequest.h" #include "model/DeleteScalingTaskGroupResult.h" -#include "model/DescribeParagraphRequest.h" -#include "model/DescribeParagraphResult.h" -#include "model/MetastoreCreateDatabaseRequest.h" -#include "model/MetastoreCreateDatabaseResult.h" +#include "model/GetUserSubmissionStatisticInfoRequest.h" +#include "model/GetUserSubmissionStatisticInfoResult.h" #include "model/ListFailureJobExecutionInstancesRequest.h" #include "model/ListFailureJobExecutionInstancesResult.h" -#include "model/DeleteFlowJobRequest.h" -#include "model/DeleteFlowJobResult.h" -#include "model/RefreshClusterResourcePoolRequest.h" -#include "model/RefreshClusterResourcePoolResult.h" -#include "model/ModifyJobRequest.h" -#include "model/ModifyJobResult.h" +#include "model/CreateBackupPlanRequest.h" +#include "model/CreateBackupPlanResult.h" +#include "model/ListHpHostRequest.h" +#include "model/ListHpHostResult.h" #include "model/MetastoreCreateDataResourceRequest.h" #include "model/MetastoreCreateDataResourceResult.h" +#include "model/ListClusterHostComponentForAdminRequest.h" +#include "model/ListClusterHostComponentForAdminResult.h" #include "model/KillETLJobInstanceRequest.h" #include "model/KillETLJobInstanceResult.h" -#include "model/DescribeFlowJobRequest.h" -#include "model/DescribeFlowJobResult.h" #include "model/RetryExecutionPlanInstanceRequest.h" #include "model/RetryExecutionPlanInstanceResult.h" -#include "model/RerunFlowRequest.h" -#include "model/RerunFlowResult.h" -#include "model/MetastoreRetryTaskRequest.h" -#include "model/MetastoreRetryTaskResult.h" +#include "model/ListHostPoolRequest.h" +#include "model/ListHostPoolResult.h" #include "model/DescribeClusterOperationHostTaskLogRequest.h" #include "model/DescribeClusterOperationHostTaskLogResult.h" #include "model/CreateScalingTaskGroupRequest.h" #include "model/CreateScalingTaskGroupResult.h" #include "model/KillFlowJobRequest.h" #include "model/KillFlowJobResult.h" +#include "model/DescribeWorkspaceRepoSettingRequest.h" +#include "model/DescribeWorkspaceRepoSettingResult.h" #include "model/DescribeFlowRequest.h" #include "model/DescribeFlowResult.h" -#include "model/DescribeClusterV2Request.h" -#include "model/DescribeClusterV2Result.h" #include "model/DescribeDataSourceSchemaDatabaseRequest.h" #include "model/DescribeDataSourceSchemaDatabaseResult.h" #include "model/DescribeETLJobStageOutputSchemaRequest.h" #include "model/DescribeETLJobStageOutputSchemaResult.h" -#include "model/CreateFlowProjectClusterSettingRequest.h" -#include "model/CreateFlowProjectClusterSettingResult.h" -#include "model/ListClusterScriptsRequest.h" -#include "model/ListClusterScriptsResult.h" -#include "model/DescribeFlowInstanceRequest.h" -#include "model/DescribeFlowInstanceResult.h" -#include "model/CreateDataSourceRequest.h" -#include "model/CreateDataSourceResult.h" #include "model/GetUserInputStatisticInfoRequest.h" #include "model/GetUserInputStatisticInfoResult.h" +#include "model/CreateDataSourceRequest.h" +#include "model/CreateDataSourceResult.h" #include "model/ModifyAlertContactRequest.h" #include "model/ModifyAlertContactResult.h" -#include "model/CreateAlertContactRequest.h" -#include "model/CreateAlertContactResult.h" #include "model/DeleteAlertDingDingGroupsRequest.h" #include "model/DeleteAlertDingDingGroupsResult.h" -#include "model/MetastoreModifyDataResourceRequest.h" -#include "model/MetastoreModifyDataResourceResult.h" -#include "model/ListExecutePlanMigrateInfoRequest.h" -#include "model/ListExecutePlanMigrateInfoResult.h" -#include "model/GetOpsCommandResultOnceRequest.h" -#include "model/GetOpsCommandResultOnceResult.h" -#include "model/ResumeExecutionPlanInstanceRequest.h" -#include "model/ResumeExecutionPlanInstanceResult.h" -#include "model/CreateParagraphRequest.h" -#include "model/CreateParagraphResult.h" -#include "model/GetJobInputStatisticInfoRequest.h" -#include "model/GetJobInputStatisticInfoResult.h" -#include "model/DeleteFlowProjectUserRequest.h" -#include "model/DeleteFlowProjectUserResult.h" +#include "model/DescribeWorkspaceResourceSettingRequest.h" +#include "model/DescribeWorkspaceResourceSettingResult.h" #include "model/CreateResourceQueueRequest.h" #include "model/CreateResourceQueueResult.h" -#include "model/ListDependedServiceRequest.h" -#include "model/ListDependedServiceResult.h" #include "model/CloneETLJobRequest.h" #include "model/CloneETLJobResult.h" -#include "model/DeleteAlertContactsRequest.h" -#include "model/DeleteAlertContactsResult.h" #include "model/MetastoreListTablePartitionRequest.h" #include "model/MetastoreListTablePartitionResult.h" -#include "model/CreateClusterV2Request.h" -#include "model/CreateClusterV2Result.h" #include "model/ModifyExecutionPlanScheduleInfoRequest.h" #include "model/ModifyExecutionPlanScheduleInfoResult.h" -#include "model/ListClusterHostRequest.h" -#include "model/ListClusterHostResult.h" -#include "model/DescribeClusterServiceRequest.h" -#include "model/DescribeClusterServiceResult.h" #include "model/GetQueueOutputStatisticInfoRequest.h" #include "model/GetQueueOutputStatisticInfoResult.h" #include "model/CreateExecutionPlanRequest.h" #include "model/CreateExecutionPlanResult.h" -#include "model/MetastoreCreateTableRequest.h" -#include "model/MetastoreCreateTableResult.h" +#include "model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.h" +#include "model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.h" #include "model/DeleteAlertUserGroupsRequest.h" #include "model/DeleteAlertUserGroupsResult.h" #include "model/MetastoreListKafkaConsumerGroupRequest.h" #include "model/MetastoreListKafkaConsumerGroupResult.h" -#include "model/CommonApiWhiteListRequest.h" -#include "model/CommonApiWhiteListResult.h" -#include "model/CreateFlowForWebRequest.h" -#include "model/CreateFlowForWebResult.h" +#include "model/AddResourceToUsersRequest.h" +#include "model/AddResourceToUsersResult.h" +#include "model/SaveUserAccountInfoRequest.h" +#include "model/SaveUserAccountInfoResult.h" #include "model/DeleteScalingRuleRequest.h" #include "model/DeleteScalingRuleResult.h" -#include "model/QuerySlsMetricDataRequest.h" -#include "model/QuerySlsMetricDataResult.h" +#include "model/CreateBackupRuleRequest.h" +#include "model/CreateBackupRuleResult.h" #include "model/DescribeFlowJobStatisticRequest.h" #include "model/DescribeFlowJobStatisticResult.h" -#include "model/MetastoreListKafkaTopicRequest.h" -#include "model/MetastoreListKafkaTopicResult.h" -#include "model/DescribeJobRequest.h" -#include "model/DescribeJobResult.h" +#include "model/ListKafkaBrokerRequest.h" +#include "model/ListKafkaBrokerResult.h" #include "model/ReleaseClusterHostGroupRequest.h" #include "model/ReleaseClusterHostGroupResult.h" +#include "model/ListBackupsRequest.h" +#include "model/ListBackupsResult.h" #include "model/ListOpsOperationRequest.h" #include "model/ListOpsOperationResult.h" -#include "model/ModifyFlowProjectRequest.h" -#include "model/ModifyFlowProjectResult.h" #include "model/ModifyClusterHostGroupRequest.h" #include "model/ModifyClusterHostGroupResult.h" -#include "model/DescribeUserStatisticsRequest.h" -#include "model/DescribeUserStatisticsResult.h" #include "model/DescribeFlowNodeInstanceLauncherLogRequest.h" #include "model/DescribeFlowNodeInstanceLauncherLogResult.h" -#include "model/ListFlowRequest.h" -#include "model/ListFlowResult.h" +#include "model/DescribeUserStatisticsRequest.h" +#include "model/DescribeUserStatisticsResult.h" #include "model/DeleteClusterScriptRequest.h" #include "model/DeleteClusterScriptResult.h" -#include "model/ListResourceQueueRequest.h" -#include "model/ListResourceQueueResult.h" #include "model/ListClusterOperationRequest.h" #include "model/ListClusterOperationResult.h" -#include "model/KillExecutionPlanInstanceRequest.h" -#include "model/KillExecutionPlanInstanceResult.h" #include "model/UpdateNavNodeRequest.h" #include "model/UpdateNavNodeResult.h" #include "model/CloneFlowJobRequest.h" @@ -338,36 +234,20 @@ #include "model/CreateResourcePoolResult.h" #include "model/CreateFlowJobRequest.h" #include "model/CreateFlowJobResult.h" -#include "model/DeleteFlowCategoryRequest.h" -#include "model/DeleteFlowCategoryResult.h" -#include "model/MigrateJobsRequest.h" -#include "model/MigrateJobsResult.h" -#include "model/KillExecutionJobInstanceRequest.h" -#include "model/KillExecutionJobInstanceResult.h" +#include "model/StartKafkaPreferredReplicaElectionRequest.h" +#include "model/StartKafkaPreferredReplicaElectionResult.h" +#include "model/DescribeClusterServiceConfigForAdminRequest.h" +#include "model/DescribeClusterServiceConfigForAdminResult.h" #include "model/CreateClusterWithTemplateRequest.h" #include "model/CreateClusterWithTemplateResult.h" #include "model/ListFlowClusterAllRequest.h" #include "model/ListFlowClusterAllResult.h" -#include "model/ModifyExecutionPlanRequest.h" -#include "model/ModifyExecutionPlanResult.h" -#include "model/ListUserStatisticsRequest.h" -#include "model/ListUserStatisticsResult.h" -#include "model/AddClusterServiceRequest.h" -#include "model/AddClusterServiceResult.h" -#include "model/ModifyFlowCategoryRequest.h" -#include "model/ModifyFlowCategoryResult.h" -#include "model/QueryAlarmRulesRequest.h" -#include "model/QueryAlarmRulesResult.h" -#include "model/ModifyClusterServiceConfigRequest.h" -#include "model/ModifyClusterServiceConfigResult.h" +#include "model/DescribeKafkaReassignRequest.h" +#include "model/DescribeKafkaReassignResult.h" +#include "model/GetAuditLogsRequest.h" +#include "model/GetAuditLogsResult.h" #include "model/ListNotesRequest.h" #include "model/ListNotesResult.h" -#include "model/MetastoreListDataResourcesRequest.h" -#include "model/MetastoreListDataResourcesResult.h" -#include "model/UpdateETLJobRequest.h" -#include "model/UpdateETLJobResult.h" -#include "model/DescribeScalingTaskGroupRequest.h" -#include "model/DescribeScalingTaskGroupResult.h" #include "model/MetastoreDescribeDataSourceRequest.h" #include "model/MetastoreDescribeDataSourceResult.h" #include "model/ListExecutionPlanInstanceTrendRequest.h" @@ -380,228 +260,134 @@ #include "model/SearchLogResult.h" #include "model/RenderResourcePoolXmlRequest.h" #include "model/RenderResourcePoolXmlResult.h" -#include "model/UpdateDataSourceRequest.h" -#include "model/UpdateDataSourceResult.h" #include "model/ModifyScalingTaskGroupRequest.h" #include "model/ModifyScalingTaskGroupResult.h" -#include "model/ListDataSourceSchemaDatabaseRequest.h" -#include "model/ListDataSourceSchemaDatabaseResult.h" #include "model/DescribeFlowProjectRequest.h" #include "model/DescribeFlowProjectResult.h" -#include "model/CreateUsersRequest.h" -#include "model/CreateUsersResult.h" -#include "model/CheckDataSourceRequest.h" -#include "model/CheckDataSourceResult.h" -#include "model/ListScalingActivityRequest.h" -#include "model/ListScalingActivityResult.h" -#include "model/CreateNoteRequest.h" -#include "model/CreateNoteResult.h" #include "model/DeleteResourcePoolRequest.h" #include "model/DeleteResourcePoolResult.h" +#include "model/QueryUserPoliciesRequest.h" +#include "model/QueryUserPoliciesResult.h" #include "model/ListFlowJobRequest.h" #include "model/ListFlowJobResult.h" -#include "model/RetryExecutionPlanRequest.h" -#include "model/RetryExecutionPlanResult.h" -#include "model/DescribeAvailableInstanceTypeRequest.h" -#include "model/DescribeAvailableInstanceTypeResult.h" #include "model/MetastoreUpdateKafkaTopicBatchRequest.h" #include "model/MetastoreUpdateKafkaTopicBatchResult.h" +#include "model/DescribeAvailableInstanceTypeRequest.h" +#include "model/DescribeAvailableInstanceTypeResult.h" #include "model/ListNavSubTreeRequest.h" #include "model/ListNavSubTreeResult.h" -#include "model/ListFlowNodeInstanceContainerStatusRequest.h" -#include "model/ListFlowNodeInstanceContainerStatusResult.h" #include "model/CreateFlowProjectRequest.h" #include "model/CreateFlowProjectResult.h" -#include "model/MetastoreListDataSourceRequest.h" -#include "model/MetastoreListDataSourceResult.h" -#include "model/GetSupportedOpsCommandRequest.h" -#include "model/GetSupportedOpsCommandResult.h" -#include "model/DescribeETLJobSqlSchemaRequest.h" -#include "model/DescribeETLJobSqlSchemaResult.h" #include "model/CreateVerificationCodeRequest.h" #include "model/CreateVerificationCodeResult.h" -#include "model/ListExecutionPlanInstancesRequest.h" -#include "model/ListExecutionPlanInstancesResult.h" -#include "model/DetachClusterForNoteRequest.h" -#include "model/DetachClusterForNoteResult.h" #include "model/ListClustersRequest.h" #include "model/ListClustersResult.h" -#include "model/MetastoreDescribeKafkaConsumerGroupRequest.h" -#include "model/MetastoreDescribeKafkaConsumerGroupResult.h" -#include "model/MetastoreListTaskRequest.h" -#include "model/MetastoreListTaskResult.h" -#include "model/DescribeClusterOpLogRequest.h" -#include "model/DescribeClusterOpLogResult.h" +#include "model/DetachClusterForNoteRequest.h" +#include "model/DetachClusterForNoteResult.h" +#include "model/ListRolesRequest.h" +#include "model/ListRolesResult.h" +#include "model/DeleteBatchResourceUsersRequest.h" +#include "model/DeleteBatchResourceUsersResult.h" #include "model/DescribeFlowNodeInstanceRequest.h" #include "model/DescribeFlowNodeInstanceResult.h" +#include "model/ListStreamingSqlQueryRequest.h" +#include "model/ListStreamingSqlQueryResult.h" #include "model/MetastoreDescribeKafkaTopicRequest.h" #include "model/MetastoreDescribeKafkaTopicResult.h" #include "model/ListScalingTaskGroupRequest.h" #include "model/ListScalingTaskGroupResult.h" -#include "model/GetQueueSubmissionStatisticInfoRequest.h" -#include "model/GetQueueSubmissionStatisticInfoResult.h" -#include "model/ListDataSourceRequest.h" -#include "model/ListDataSourceResult.h" #include "model/ModifyUserStatisticsRequest.h" #include "model/ModifyUserStatisticsResult.h" -#include "model/MetastoreCreateKafkaTopicRequest.h" -#include "model/MetastoreCreateKafkaTopicResult.h" -#include "model/ListETLJobInstanceRequest.h" -#include "model/ListETLJobInstanceResult.h" #include "model/ModifyFlowVariableCollectionRequest.h" #include "model/ModifyFlowVariableCollectionResult.h" #include "model/DescribeETLJobInstanceRequest.h" #include "model/DescribeETLJobInstanceResult.h" -#include "model/ModifyExecutionPlanBasicInfoRequest.h" -#include "model/ModifyExecutionPlanBasicInfoResult.h" -#include "model/SubmitFlowJobRequest.h" -#include "model/SubmitFlowJobResult.h" +#include "model/UpdateUserStatusRequest.h" +#include "model/UpdateUserStatusResult.h" +#include "model/UpdateUserRequest.h" +#include "model/UpdateUserResult.h" #include "model/CreateUserPasswordRequest.h" #include "model/CreateUserPasswordResult.h" -#include "model/DescribeETLJobRequest.h" -#include "model/DescribeETLJobResult.h" -#include "model/ListClusterHostComponentRequest.h" -#include "model/ListClusterHostComponentResult.h" +#include "model/GetFlowAuditLogsRequest.h" +#include "model/GetFlowAuditLogsResult.h" +#include "model/RefreshClusterResourcePoolForAdminRequest.h" +#include "model/RefreshClusterResourcePoolForAdminResult.h" #include "model/ListAlertDingDingGroupRequest.h" #include "model/ListAlertDingDingGroupResult.h" #include "model/CloneDataSourceRequest.h" #include "model/CloneDataSourceResult.h" -#include "model/GetJobRunningTimeStatisticInfoRequest.h" -#include "model/GetJobRunningTimeStatisticInfoResult.h" -#include "model/ListFlowProjectClusterSettingRequest.h" -#include "model/ListFlowProjectClusterSettingResult.h" #include "model/DescribeFlowProjectClusterSettingRequest.h" #include "model/DescribeFlowProjectClusterSettingResult.h" #include "model/SyncDataSourceSchemaTableRequest.h" #include "model/SyncDataSourceSchemaTableResult.h" -#include "model/ListJobExecutionInstancesRequest.h" -#include "model/ListJobExecutionInstancesResult.h" #include "model/TerminateClusterOperationRequest.h" #include "model/TerminateClusterOperationResult.h" -#include "model/ListSlsLogstoreInfoRequest.h" -#include "model/ListSlsLogstoreInfoResult.h" -#include "model/MetastoreDropTableRequest.h" -#include "model/MetastoreDropTableResult.h" -#include "model/GetOpsCommandDetailRequest.h" -#include "model/GetOpsCommandDetailResult.h" -#include "model/ListClusterServiceRequest.h" -#include "model/ListClusterServiceResult.h" -#include "model/CreateScalingRuleRequest.h" -#include "model/CreateScalingRuleResult.h" #include "model/CreateNavNodeRequest.h" #include "model/CreateNavNodeResult.h" +#include "model/DeleteResourceUserRequest.h" +#include "model/DeleteResourceUserResult.h" #include "model/DeleteFlowProjectRequest.h" #include "model/DeleteFlowProjectResult.h" #include "model/ReleaseClusterRequest.h" #include "model/ReleaseClusterResult.h" -#include "model/RetryCreateUserPasswordRequest.h" -#include "model/RetryCreateUserPasswordResult.h" #include "model/ListSupportedServiceNameRequest.h" #include "model/ListSupportedServiceNameResult.h" +#include "model/RetryCreateUserPasswordRequest.h" +#include "model/RetryCreateUserPasswordResult.h" +#include "model/PlanHostNameRequest.h" +#include "model/PlanHostNameResult.h" #include "model/ListJobInstanceWorkersRequest.h" #include "model/ListJobInstanceWorkersResult.h" -#include "model/DeleteNoteRequest.h" -#include "model/DeleteNoteResult.h" -#include "model/ListFlowClusterAllHostsRequest.h" -#include "model/ListFlowClusterAllHostsResult.h" +#include "model/ModifyHostPoolRequest.h" +#include "model/ModifyHostPoolResult.h" #include "model/MigrateClusterHostGroupHostRequest.h" #include "model/MigrateClusterHostGroupHostResult.h" -#include "model/GetLogHistogramRequest.h" -#include "model/GetLogHistogramResult.h" -#include "model/MetastoreDeleteDataResourceRequest.h" -#include "model/MetastoreDeleteDataResourceResult.h" -#include "model/DeleteResourceQueueRequest.h" -#include "model/DeleteResourceQueueResult.h" -#include "model/DescribeClusterResourcePoolSchedulerTypeRequest.h" -#include "model/DescribeClusterResourcePoolSchedulerTypeResult.h" -#include "model/DescribeFlowCategoryTreeRequest.h" -#include "model/DescribeFlowCategoryTreeResult.h" #include "model/ListServiceLogRequest.h" #include "model/ListServiceLogResult.h" -#include "model/ListFlowNodeSqlResultRequest.h" -#include "model/ListFlowNodeSqlResultResult.h" -#include "model/ModifyFlowForWebRequest.h" -#include "model/ModifyFlowForWebResult.h" -#include "model/RunNoteParagraphsRequest.h" -#include "model/RunNoteParagraphsResult.h" -#include "model/ListJobExecutionPlanParamsRequest.h" -#include "model/ListJobExecutionPlanParamsResult.h" -#include "model/DescribeFlowNodeInstanceContainerLogRequest.h" -#include "model/DescribeFlowNodeInstanceContainerLogResult.h" +#include "model/DescribeFlowCategoryTreeRequest.h" +#include "model/DescribeFlowCategoryTreeResult.h" +#include "model/GetBackPlanInfoRequest.h" +#include "model/GetBackPlanInfoResult.h" #include "model/CancelETLJobReleaseRequest.h" #include "model/CancelETLJobReleaseResult.h" +#include "model/ListStackRequest.h" +#include "model/ListStackResult.h" #include "model/ListClusterTagRequest.h" #include "model/ListClusterTagResult.h" -#include "model/GetUserOutputStatisticInfoRequest.h" -#include "model/GetUserOutputStatisticInfoResult.h" #include "model/ModifyJobExecutionPlanFolderRequest.h" #include "model/ModifyJobExecutionPlanFolderResult.h" -#include "model/DescribeClusterBasicInfoRequest.h" -#include "model/DescribeClusterBasicInfoResult.h" -#include "model/GetOpsCommandResultRequest.h" -#include "model/GetOpsCommandResultResult.h" -#include "model/ListEmrAvailableConfigRequest.h" -#include "model/ListEmrAvailableConfigResult.h" #include "model/ModifyAlertUserGroupRequest.h" #include "model/ModifyAlertUserGroupResult.h" #include "model/MetastoreListDatabasesRequest.h" #include "model/MetastoreListDatabasesResult.h" -#include "model/ListAlertUserGroupRequest.h" -#include "model/ListAlertUserGroupResult.h" #include "model/ModifyResourceQueueRequest.h" #include "model/ModifyResourceQueueResult.h" -#include "model/MetastoreSearchTablesRequest.h" -#include "model/MetastoreSearchTablesResult.h" -#include "model/ListFlowClusterRequest.h" -#include "model/ListFlowClusterResult.h" #include "model/DescribeSecurityGroupAttributeRequest.h" #include "model/DescribeSecurityGroupAttributeResult.h" -#include "model/DeleteUserRequest.h" -#include "model/DeleteUserResult.h" #include "model/ListFlowCategoryRequest.h" #include "model/ListFlowCategoryResult.h" -#include "model/ModifyJobExecutionPlanParamRequest.h" -#include "model/ModifyJobExecutionPlanParamResult.h" -#include "model/ResizeClusterV2Request.h" -#include "model/ResizeClusterV2Result.h" #include "model/DescribeExecutionPlanRequest.h" #include "model/DescribeExecutionPlanResult.h" #include "model/CreateFlowProjectUserRequest.h" #include "model/CreateFlowProjectUserResult.h" -#include "model/CreateFlowCategoryRequest.h" -#include "model/CreateFlowCategoryResult.h" #include "model/DeleteFlowProjectClusterSettingRequest.h" #include "model/DeleteFlowProjectClusterSettingResult.h" +#include "model/DescribeUserGroupRequest.h" +#include "model/DescribeUserGroupResult.h" #include "model/DeleteExecutionPlanRequest.h" #include "model/DeleteExecutionPlanResult.h" -#include "model/ListClusterServiceCustomActionSupportConfigRequest.h" -#include "model/ListClusterServiceCustomActionSupportConfigResult.h" -#include "model/MetastoreDescribeTableRequest.h" -#include "model/MetastoreDescribeTableResult.h" -#include "model/GetLogDownloadUrlRequest.h" -#include "model/GetLogDownloadUrlResult.h" -#include "model/ModifyFlowRequest.h" -#include "model/ModifyFlowResult.h" -#include "model/DescribeScalingRuleRequest.h" -#include "model/DescribeScalingRuleResult.h" +#include "model/UpdateUserGroupRequest.h" +#include "model/UpdateUserGroupResult.h" #include "model/RunParagraphRequest.h" #include "model/RunParagraphResult.h" #include "model/SyncDataSourceSchemaDatabaseRequest.h" #include "model/SyncDataSourceSchemaDatabaseResult.h" -#include "model/CreateUserStatisticsRequest.h" -#include "model/CreateUserStatisticsResult.h" #include "model/DescribeClusterServiceConfigRequest.h" #include "model/DescribeClusterServiceConfigResult.h" -#include "model/ModifyFlowProjectClusterSettingRequest.h" -#include "model/ModifyFlowProjectClusterSettingResult.h" -#include "model/DeleteJobRequest.h" -#include "model/DeleteJobResult.h" #include "model/ModifyExecutionPlanClusterInfoRequest.h" #include "model/ModifyExecutionPlanClusterInfoResult.h" -#include "model/ModifyClusterNameRequest.h" -#include "model/ModifyClusterNameResult.h" -#include "model/MetastoreListTablesRequest.h" -#include "model/MetastoreListTablesResult.h" +#include "model/ListUsersByConditionRequest.h" +#include "model/ListUsersByConditionResult.h" #include "model/ListClusterOperationHostTaskRequest.h" #include "model/ListClusterOperationHostTaskResult.h" #include "model/ModifyResourcePoolRequest.h" @@ -610,24 +396,424 @@ #include "model/DescribeClusterScriptResult.h" #include "model/ListRequiredServiceRequest.h" #include "model/ListRequiredServiceResult.h" +#include "model/ListBackupPlansRequest.h" +#include "model/ListBackupPlansResult.h" #include "model/ListFlowProjectUserRequest.h" #include "model/ListFlowProjectUserResult.h" #include "model/SuspendExecutionPlanSchedulerRequest.h" #include "model/SuspendExecutionPlanSchedulerResult.h" +#include "model/DeleteUserGroupRequest.h" +#include "model/DeleteUserGroupResult.h" +#include "model/DeleteClusterHostGroupRequest.h" +#include "model/DeleteClusterHostGroupResult.h" +#include "model/DescribeDataSourceSchemaTableRequest.h" +#include "model/DescribeDataSourceSchemaTableResult.h" +#include "model/OperateExistsNodeClusterRequest.h" +#include "model/OperateExistsNodeClusterResult.h" +#include "model/DescribeDataSourceCommandRequest.h" +#include "model/DescribeDataSourceCommandResult.h" +#include "model/ListUsersRequest.h" +#include "model/ListUsersResult.h" +#include "model/ListResourcePoolRequest.h" +#include "model/ListResourcePoolResult.h" +#include "model/ListFlowClusterHostRequest.h" +#include "model/ListFlowClusterHostResult.h" +#include "model/KillFlowRequest.h" +#include "model/KillFlowResult.h" +#include "model/RunOpsCommandRequest.h" +#include "model/RunOpsCommandResult.h" +#include "model/ModifyExecutionPlanJobInfoRequest.h" +#include "model/ModifyExecutionPlanJobInfoResult.h" +#include "model/DeleteClusterTemplateRequest.h" +#include "model/DeleteClusterTemplateResult.h" +#include "model/ListKafkaTopicStatisticsRequest.h" +#include "model/ListKafkaTopicStatisticsResult.h" +#include "model/QueryInfoByTokenRequest.h" +#include "model/QueryInfoByTokenResult.h" +#include "model/ListDataSourceSchemaTableRequest.h" +#include "model/ListDataSourceSchemaTableResult.h" +#include "model/CreateJobRequest.h" +#include "model/CreateJobResult.h" +#include "model/GetBackInfoRequest.h" +#include "model/GetBackInfoResult.h" +#include "model/AttachClusterForNoteRequest.h" +#include "model/AttachClusterForNoteResult.h" +#include "model/ListExecutionPlansRequest.h" +#include "model/ListExecutionPlansResult.h" +#include "model/ListJobMigrateInfoRequest.h" +#include "model/ListJobMigrateInfoResult.h" +#include "model/CloneFlowRequest.h" +#include "model/CloneFlowResult.h" +#include "model/ListEmrMainVersionRequest.h" +#include "model/ListEmrMainVersionResult.h" +#include "model/CreateClusterTemplateRequest.h" +#include "model/CreateClusterTemplateResult.h" +#include "model/RestoreBackupRequest.h" +#include "model/RestoreBackupResult.h" +#include "model/ListAlertContactsRequest.h" +#include "model/ListAlertContactsResult.h" +#include "model/ListSupportedServiceNameForAdminRequest.h" +#include "model/ListSupportedServiceNameForAdminResult.h" +#include "model/ReassignKafkaRequest.h" +#include "model/ReassignKafkaResult.h" +#include "model/GetHdfsCapacityStatisticInfoRequest.h" +#include "model/GetHdfsCapacityStatisticInfoResult.h" +#include "model/DescribeClusterServiceConfigTagForAdminRequest.h" +#include "model/DescribeClusterServiceConfigTagForAdminResult.h" +#include "model/ResumeExecutionPlanSchedulerRequest.h" +#include "model/ResumeExecutionPlanSchedulerResult.h" +#include "model/ListJobsRequest.h" +#include "model/ListJobsResult.h" +#include "model/ListEmrAvailableResourceRequest.h" +#include "model/ListEmrAvailableResourceResult.h" +#include "model/ModifyHpHostRequest.h" +#include "model/ModifyHpHostResult.h" +#include "model/ReleaseETLJobRequest.h" +#include "model/ReleaseETLJobResult.h" +#include "model/DescribeClusterServiceConfigTagRequest.h" +#include "model/DescribeClusterServiceConfigTagResult.h" +#include "model/RunClusterServiceActionRequest.h" +#include "model/RunClusterServiceActionResult.h" +#include "model/SuspendFlowRequest.h" +#include "model/SuspendFlowResult.h" +#include "model/ListClusterSupportServiceRequest.h" +#include "model/ListClusterSupportServiceResult.h" +#include "model/AuthorizeSecurityGroupRequest.h" +#include "model/AuthorizeSecurityGroupResult.h" +#include "model/ModifyClusterTemplateRequest.h" +#include "model/ModifyClusterTemplateResult.h" +#include "model/CreateClusterWithHostPoolRequest.h" +#include "model/CreateClusterWithHostPoolResult.h" +#include "model/ContextQueryLogRequest.h" +#include "model/ContextQueryLogResult.h" +#include "model/ListClusterOperationHostRequest.h" +#include "model/ListClusterOperationHostResult.h" +#include "model/ListScalingRuleRequest.h" +#include "model/ListScalingRuleResult.h" +#include "model/DeleteFlowRequest.h" +#include "model/DeleteFlowResult.h" +#include "model/DeleteDataSourceRequest.h" +#include "model/DeleteDataSourceResult.h" +#include "model/RunETLJobRequest.h" +#include "model/RunETLJobResult.h" +#include "model/ListFlowProjectRequest.h" +#include "model/ListFlowProjectResult.h" +#include "model/ListClusterServiceComponentHealthInfoRequest.h" +#include "model/ListClusterServiceComponentHealthInfoResult.h" +#include "model/CreateHostPoolRequest.h" +#include "model/CreateHostPoolResult.h" +#include "model/ModifyAlertDingDingGroupRequest.h" +#include "model/ModifyAlertDingDingGroupResult.h" +#include "model/ListFlowJobHistoryRequest.h" +#include "model/ListFlowJobHistoryResult.h" +#include "model/CreateETLJobRequest.h" +#include "model/CreateETLJobResult.h" +#include "model/CreateClusterScriptRequest.h" +#include "model/CreateClusterScriptResult.h" +#include "model/SubmitFlowRequest.h" +#include "model/SubmitFlowResult.h" +#include "model/ResumeFlowRequest.h" +#include "model/ResumeFlowResult.h" +#include "model/DeleteFlowProjectByIdRequest.h" +#include "model/DeleteFlowProjectByIdResult.h" +#include "model/OfflineKafkaBrokerRequest.h" +#include "model/OfflineKafkaBrokerResult.h" +#include "model/DescribeParagraphRequest.h" +#include "model/DescribeParagraphResult.h" +#include "model/MetastoreCreateDatabaseRequest.h" +#include "model/MetastoreCreateDatabaseResult.h" +#include "model/DeleteFlowJobRequest.h" +#include "model/DeleteFlowJobResult.h" +#include "model/RefreshClusterResourcePoolRequest.h" +#include "model/RefreshClusterResourcePoolResult.h" +#include "model/UpdateKafkaReassignParamRequest.h" +#include "model/UpdateKafkaReassignParamResult.h" +#include "model/ModifyJobRequest.h" +#include "model/ModifyJobResult.h" +#include "model/DescribeFlowJobRequest.h" +#include "model/DescribeFlowJobResult.h" +#include "model/GetMetadataTypeListRequest.h" +#include "model/GetMetadataTypeListResult.h" +#include "model/MetastoreRetryTaskRequest.h" +#include "model/MetastoreRetryTaskResult.h" +#include "model/RerunFlowRequest.h" +#include "model/RerunFlowResult.h" +#include "model/CreateBackupRequest.h" +#include "model/CreateBackupResult.h" +#include "model/ListKafkaReassignRequest.h" +#include "model/ListKafkaReassignResult.h" +#include "model/DescribeClusterV2Request.h" +#include "model/DescribeClusterV2Result.h" +#include "model/ResizeClusterWithHostPoolRequest.h" +#include "model/ResizeClusterWithHostPoolResult.h" +#include "model/CreateFlowProjectClusterSettingRequest.h" +#include "model/CreateFlowProjectClusterSettingResult.h" +#include "model/ListClusterScriptsRequest.h" +#include "model/ListClusterScriptsResult.h" +#include "model/DescribeFlowInstanceRequest.h" +#include "model/DescribeFlowInstanceResult.h" +#include "model/DeleteUserResourceRoleRequest.h" +#include "model/DeleteUserResourceRoleResult.h" +#include "model/ListETLJobReleaseRequest.h" +#include "model/ListETLJobReleaseResult.h" +#include "model/CreateAlertContactRequest.h" +#include "model/CreateAlertContactResult.h" +#include "model/MetastoreModifyDataResourceRequest.h" +#include "model/MetastoreModifyDataResourceResult.h" +#include "model/ListExecutePlanMigrateInfoRequest.h" +#include "model/ListExecutePlanMigrateInfoResult.h" +#include "model/ResumeExecutionPlanInstanceRequest.h" +#include "model/ResumeExecutionPlanInstanceResult.h" +#include "model/CreateParagraphRequest.h" +#include "model/CreateParagraphResult.h" +#include "model/GetOpsCommandResultOnceRequest.h" +#include "model/GetOpsCommandResultOnceResult.h" +#include "model/AddHpHostRequest.h" +#include "model/AddHpHostResult.h" +#include "model/ListClusterServiceConfigHistoryForAdminRequest.h" +#include "model/ListClusterServiceConfigHistoryForAdminResult.h" +#include "model/GetJobInputStatisticInfoRequest.h" +#include "model/GetJobInputStatisticInfoResult.h" +#include "model/DeleteFlowProjectUserRequest.h" +#include "model/DeleteFlowProjectUserResult.h" +#include "model/ListDependedServiceRequest.h" +#include "model/ListDependedServiceResult.h" +#include "model/DeleteAlertContactsRequest.h" +#include "model/DeleteAlertContactsResult.h" +#include "model/CreateClusterV2Request.h" +#include "model/CreateClusterV2Result.h" +#include "model/PlanComponentTopoRequest.h" +#include "model/PlanComponentTopoResult.h" +#include "model/ListClusterHostRequest.h" +#include "model/ListClusterHostResult.h" +#include "model/DescribeClusterServiceRequest.h" +#include "model/DescribeClusterServiceResult.h" +#include "model/RenderResourcePoolXmlForAdminRequest.h" +#include "model/RenderResourcePoolXmlForAdminResult.h" +#include "model/ListApmApplicationRequest.h" +#include "model/ListApmApplicationResult.h" +#include "model/MetastoreCreateTableRequest.h" +#include "model/MetastoreCreateTableResult.h" +#include "model/CommonApiWhiteListRequest.h" +#include "model/CommonApiWhiteListResult.h" +#include "model/CreateFlowForWebRequest.h" +#include "model/CreateFlowForWebResult.h" +#include "model/QuerySlsMetricDataRequest.h" +#include "model/QuerySlsMetricDataResult.h" +#include "model/MetastoreListKafkaTopicRequest.h" +#include "model/MetastoreListKafkaTopicResult.h" +#include "model/DescribeJobRequest.h" +#include "model/DescribeJobResult.h" +#include "model/ListKafkaReassignTopicRequest.h" +#include "model/ListKafkaReassignTopicResult.h" +#include "model/ModifyClusterServiceConfigForAdminRequest.h" +#include "model/ModifyClusterServiceConfigForAdminResult.h" +#include "model/ModifyFlowProjectRequest.h" +#include "model/ModifyFlowProjectResult.h" +#include "model/ListFlowRequest.h" +#include "model/ListFlowResult.h" +#include "model/ListResourceQueueRequest.h" +#include "model/ListResourceQueueResult.h" +#include "model/ListClusterTagForAdminRequest.h" +#include "model/ListClusterTagForAdminResult.h" +#include "model/KillExecutionPlanInstanceRequest.h" +#include "model/KillExecutionPlanInstanceResult.h" +#include "model/DeleteFlowCategoryRequest.h" +#include "model/DeleteFlowCategoryResult.h" +#include "model/PageListUserGroupsRequest.h" +#include "model/PageListUserGroupsResult.h" +#include "model/ListResourcePoolForAdminRequest.h" +#include "model/ListResourcePoolForAdminResult.h" +#include "model/MigrateJobsRequest.h" +#include "model/MigrateJobsResult.h" +#include "model/KillExecutionJobInstanceRequest.h" +#include "model/KillExecutionJobInstanceResult.h" +#include "model/CreateBatchUsersRequest.h" +#include "model/CreateBatchUsersResult.h" +#include "model/ModifyExecutionPlanRequest.h" +#include "model/ModifyExecutionPlanResult.h" +#include "model/AddClusterServiceRequest.h" +#include "model/AddClusterServiceResult.h" +#include "model/ListUserStatisticsRequest.h" +#include "model/ListUserStatisticsResult.h" +#include "model/ModifyFlowCategoryRequest.h" +#include "model/ModifyFlowCategoryResult.h" +#include "model/QueryAlarmRulesRequest.h" +#include "model/QueryAlarmRulesResult.h" +#include "model/ModifyClusterServiceConfigRequest.h" +#include "model/ModifyClusterServiceConfigResult.h" +#include "model/MetastoreListDataResourcesRequest.h" +#include "model/MetastoreListDataResourcesResult.h" +#include "model/UpdateETLJobRequest.h" +#include "model/UpdateETLJobResult.h" +#include "model/DescribeScalingTaskGroupRequest.h" +#include "model/DescribeScalingTaskGroupResult.h" +#include "model/DeleteHostPoolRequest.h" +#include "model/DeleteHostPoolResult.h" +#include "model/RefreshBackupListRequest.h" +#include "model/RefreshBackupListResult.h" +#include "model/UpdateDataSourceRequest.h" +#include "model/UpdateDataSourceResult.h" +#include "model/ListDataSourceSchemaDatabaseRequest.h" +#include "model/ListDataSourceSchemaDatabaseResult.h" +#include "model/CreateUsersRequest.h" +#include "model/CreateUsersResult.h" +#include "model/CheckDataSourceRequest.h" +#include "model/CheckDataSourceResult.h" +#include "model/ListScalingActivityRequest.h" +#include "model/ListScalingActivityResult.h" +#include "model/CreateNoteRequest.h" +#include "model/CreateNoteResult.h" +#include "model/RemoveHpHostRequest.h" +#include "model/RemoveHpHostResult.h" +#include "model/GetBackupInfoRequest.h" +#include "model/GetBackupInfoResult.h" +#include "model/DescribeHpHostRequest.h" +#include "model/DescribeHpHostResult.h" +#include "model/RetryExecutionPlanRequest.h" +#include "model/RetryExecutionPlanResult.h" +#include "model/ListBackupRulesRequest.h" +#include "model/ListBackupRulesResult.h" +#include "model/MetastoreListDataSourceRequest.h" +#include "model/MetastoreListDataSourceResult.h" +#include "model/ListFlowNodeInstanceContainerStatusRequest.h" +#include "model/ListFlowNodeInstanceContainerStatusResult.h" +#include "model/GetSupportedOpsCommandRequest.h" +#include "model/GetSupportedOpsCommandResult.h" +#include "model/DescribeETLJobSqlSchemaRequest.h" +#include "model/DescribeETLJobSqlSchemaResult.h" +#include "model/ListExecutionPlanInstancesRequest.h" +#include "model/ListExecutionPlanInstancesResult.h" +#include "model/MetastoreDescribeKafkaConsumerGroupRequest.h" +#include "model/MetastoreDescribeKafkaConsumerGroupResult.h" +#include "model/MetastoreListTaskRequest.h" +#include "model/MetastoreListTaskResult.h" +#include "model/RemoveBackupRequest.h" +#include "model/RemoveBackupResult.h" +#include "model/DescribeClusterOpLogRequest.h" +#include "model/DescribeClusterOpLogResult.h" +#include "model/GetQueueSubmissionStatisticInfoRequest.h" +#include "model/GetQueueSubmissionStatisticInfoResult.h" +#include "model/CreateUserRequest.h" +#include "model/CreateUserResult.h" +#include "model/ListDataSourceRequest.h" +#include "model/ListDataSourceResult.h" +#include "model/MetastoreCreateKafkaTopicRequest.h" +#include "model/MetastoreCreateKafkaTopicResult.h" +#include "model/ListETLJobInstanceRequest.h" +#include "model/ListETLJobInstanceResult.h" +#include "model/ModifyExecutionPlanBasicInfoRequest.h" +#include "model/ModifyExecutionPlanBasicInfoResult.h" +#include "model/SubmitFlowJobRequest.h" +#include "model/SubmitFlowJobResult.h" +#include "model/ListStackServiceRequest.h" +#include "model/ListStackServiceResult.h" +#include "model/DescribeETLJobRequest.h" +#include "model/DescribeETLJobResult.h" +#include "model/ListClusterHostComponentRequest.h" +#include "model/ListClusterHostComponentResult.h" +#include "model/GetJobRunningTimeStatisticInfoRequest.h" +#include "model/GetJobRunningTimeStatisticInfoResult.h" +#include "model/ListFlowProjectClusterSettingRequest.h" +#include "model/ListFlowProjectClusterSettingResult.h" +#include "model/ListJobExecutionInstancesRequest.h" +#include "model/ListJobExecutionInstancesResult.h" +#include "model/ListSlsLogstoreInfoRequest.h" +#include "model/ListSlsLogstoreInfoResult.h" +#include "model/MetastoreDropTableRequest.h" +#include "model/MetastoreDropTableResult.h" +#include "model/CreateScalingRuleRequest.h" +#include "model/CreateScalingRuleResult.h" +#include "model/ListClusterServiceRequest.h" +#include "model/ListClusterServiceResult.h" +#include "model/GetOpsCommandDetailRequest.h" +#include "model/GetOpsCommandDetailResult.h" +#include "model/CreateUserGroupRequest.h" +#include "model/CreateUserGroupResult.h" +#include "model/DeleteNoteRequest.h" +#include "model/DeleteNoteResult.h" +#include "model/ListFlowClusterAllHostsRequest.h" +#include "model/ListFlowClusterAllHostsResult.h" +#include "model/GetLogHistogramRequest.h" +#include "model/GetLogHistogramResult.h" +#include "model/MetastoreDeleteDataResourceRequest.h" +#include "model/MetastoreDeleteDataResourceResult.h" +#include "model/DeleteResourceQueueRequest.h" +#include "model/DeleteResourceQueueResult.h" +#include "model/DescribeClusterResourcePoolSchedulerTypeRequest.h" +#include "model/DescribeClusterResourcePoolSchedulerTypeResult.h" +#include "model/PageListResourceUsersRequest.h" +#include "model/PageListResourceUsersResult.h" +#include "model/ListFlowNodeSqlResultRequest.h" +#include "model/ListFlowNodeSqlResultResult.h" +#include "model/ModifyFlowForWebRequest.h" +#include "model/ModifyFlowForWebResult.h" +#include "model/RunNoteParagraphsRequest.h" +#include "model/RunNoteParagraphsResult.h" +#include "model/ListJobExecutionPlanParamsRequest.h" +#include "model/ListJobExecutionPlanParamsResult.h" +#include "model/DescribeKafkaBrokerRequest.h" +#include "model/DescribeKafkaBrokerResult.h" +#include "model/DescribeFlowNodeInstanceContainerLogRequest.h" +#include "model/DescribeFlowNodeInstanceContainerLogResult.h" +#include "model/GetUserOutputStatisticInfoRequest.h" +#include "model/GetUserOutputStatisticInfoResult.h" +#include "model/DescribeClusterBasicInfoRequest.h" +#include "model/DescribeClusterBasicInfoResult.h" +#include "model/SaveBatchUserAccountInfoRequest.h" +#include "model/SaveBatchUserAccountInfoResult.h" +#include "model/GetOpsCommandResultRequest.h" +#include "model/GetOpsCommandResultResult.h" +#include "model/ListEmrAvailableConfigRequest.h" +#include "model/ListEmrAvailableConfigResult.h" +#include "model/ListAlertUserGroupRequest.h" +#include "model/ListAlertUserGroupResult.h" +#include "model/MetastoreSearchTablesRequest.h" +#include "model/MetastoreSearchTablesResult.h" +#include "model/ListFlowClusterRequest.h" +#include "model/ListFlowClusterResult.h" +#include "model/DeleteUserRequest.h" +#include "model/DeleteUserResult.h" +#include "model/ResizeClusterV2Request.h" +#include "model/ResizeClusterV2Result.h" +#include "model/ModifyJobExecutionPlanParamRequest.h" +#include "model/ModifyJobExecutionPlanParamResult.h" +#include "model/CreateFlowCategoryRequest.h" +#include "model/CreateFlowCategoryResult.h" +#include "model/DescribeUserRequest.h" +#include "model/DescribeUserResult.h" +#include "model/ListClusterServiceCustomActionSupportConfigRequest.h" +#include "model/ListClusterServiceCustomActionSupportConfigResult.h" +#include "model/GetLogDownloadUrlRequest.h" +#include "model/GetLogDownloadUrlResult.h" +#include "model/MetastoreDescribeTableRequest.h" +#include "model/MetastoreDescribeTableResult.h" +#include "model/ModifyFlowRequest.h" +#include "model/ModifyFlowResult.h" +#include "model/DescribeScalingRuleRequest.h" +#include "model/DescribeScalingRuleResult.h" +#include "model/CreateUserStatisticsRequest.h" +#include "model/CreateUserStatisticsResult.h" +#include "model/DeleteJobRequest.h" +#include "model/DeleteJobResult.h" +#include "model/ModifyFlowProjectClusterSettingRequest.h" +#include "model/ModifyFlowProjectClusterSettingResult.h" +#include "model/AddUserResourceRoleRequest.h" +#include "model/AddUserResourceRoleResult.h" +#include "model/ModifyClusterNameRequest.h" +#include "model/ModifyClusterNameResult.h" +#include "model/MetastoreListTablesRequest.h" +#include "model/MetastoreListTablesResult.h" #include "model/ModifyResourcePoolSchedulerTypeRequest.h" #include "model/ModifyResourcePoolSchedulerTypeResult.h" #include "model/ListOpsOperationTaskRequest.h" #include "model/ListOpsOperationTaskResult.h" -#include "model/DeleteClusterHostGroupRequest.h" -#include "model/DeleteClusterHostGroupResult.h" #include "model/DeleteNavNodeRequest.h" #include "model/DeleteNavNodeResult.h" -#include "model/DescribeDataSourceSchemaTableRequest.h" -#include "model/DescribeDataSourceSchemaTableResult.h" +#include "model/ListUserGroupsRequest.h" +#include "model/ListUserGroupsResult.h" #include "model/UpdateProjectSettingRequest.h" #include "model/UpdateProjectSettingResult.h" -#include "model/OperateExistsNodeClusterRequest.h" -#include "model/OperateExistsNodeClusterResult.h" #include "model/DescribeNoteRequest.h" #include "model/DescribeNoteResult.h" @@ -642,36 +828,15 @@ namespace AlibabaCloud typedef Outcome CreateFlowOutcome; typedef std::future CreateFlowOutcomeCallable; typedef std::function&)> CreateFlowAsyncHandler; - typedef Outcome DescribeDataSourceCommandOutcome; - typedef std::future DescribeDataSourceCommandOutcomeCallable; - typedef std::function&)> DescribeDataSourceCommandAsyncHandler; - typedef Outcome ListUsersOutcome; - typedef std::future ListUsersOutcomeCallable; - typedef std::function&)> ListUsersAsyncHandler; typedef Outcome GetJobOutputStatisticInfoOutcome; typedef std::future GetJobOutputStatisticInfoOutcomeCallable; typedef std::function&)> GetJobOutputStatisticInfoAsyncHandler; - typedef Outcome ListResourcePoolOutcome; - typedef std::future ListResourcePoolOutcomeCallable; - typedef std::function&)> ListResourcePoolAsyncHandler; - typedef Outcome ListFlowClusterHostOutcome; - typedef std::future ListFlowClusterHostOutcomeCallable; - typedef std::function&)> ListFlowClusterHostAsyncHandler; - typedef Outcome KillFlowOutcome; - typedef std::future KillFlowOutcomeCallable; - typedef std::function&)> KillFlowAsyncHandler; - typedef Outcome RunOpsCommandOutcome; - typedef std::future RunOpsCommandOutcomeCallable; - typedef std::function&)> RunOpsCommandAsyncHandler; + typedef Outcome RemoveBackupPlanOutcome; + typedef std::future RemoveBackupPlanOutcomeCallable; + typedef std::function&)> RemoveBackupPlanAsyncHandler; typedef Outcome DescribeClusterStatisticsOutcome; typedef std::future DescribeClusterStatisticsOutcomeCallable; typedef std::function&)> DescribeClusterStatisticsAsyncHandler; - typedef Outcome ModifyExecutionPlanJobInfoOutcome; - typedef std::future ModifyExecutionPlanJobInfoOutcomeCallable; - typedef std::function&)> ModifyExecutionPlanJobInfoAsyncHandler; - typedef Outcome DeleteClusterTemplateOutcome; - typedef std::future DeleteClusterTemplateOutcomeCallable; - typedef std::function&)> DeleteClusterTemplateAsyncHandler; typedef Outcome CancelOrderOutcome; typedef std::future CancelOrderOutcomeCallable; typedef std::function&)> CancelOrderAsyncHandler; @@ -687,75 +852,51 @@ namespace AlibabaCloud typedef Outcome ListClusterServiceConfigHistoryOutcome; typedef std::future ListClusterServiceConfigHistoryOutcomeCallable; typedef std::function&)> ListClusterServiceConfigHistoryAsyncHandler; - typedef Outcome ListDataSourceSchemaTableOutcome; - typedef std::future ListDataSourceSchemaTableOutcomeCallable; - typedef std::function&)> ListDataSourceSchemaTableAsyncHandler; - typedef Outcome CreateJobOutcome; - typedef std::future CreateJobOutcomeCallable; - typedef std::function&)> CreateJobAsyncHandler; - typedef Outcome AttachClusterForNoteOutcome; - typedef std::future AttachClusterForNoteOutcomeCallable; - typedef std::function&)> AttachClusterForNoteAsyncHandler; + typedef Outcome UpdateWorkspaceRepoSettingOutcome; + typedef std::future UpdateWorkspaceRepoSettingOutcomeCallable; + typedef std::function&)> UpdateWorkspaceRepoSettingAsyncHandler; + typedef Outcome ListClusterServiceCustomActionSupportConfigForAdminOutcome; + typedef std::future ListClusterServiceCustomActionSupportConfigForAdminOutcomeCallable; + typedef std::function&)> ListClusterServiceCustomActionSupportConfigForAdminAsyncHandler; typedef Outcome QueryAlarmHistoryOutcome; typedef std::future QueryAlarmHistoryOutcomeCallable; typedef std::function&)> QueryAlarmHistoryAsyncHandler; typedef Outcome ListJobExecutionPlanHierarchyOutcome; typedef std::future ListJobExecutionPlanHierarchyOutcomeCallable; typedef std::function&)> ListJobExecutionPlanHierarchyAsyncHandler; - typedef Outcome ListExecutionPlansOutcome; - typedef std::future ListExecutionPlansOutcomeCallable; - typedef std::function&)> ListExecutionPlansAsyncHandler; - typedef Outcome ListJobMigrateInfoOutcome; - typedef std::future ListJobMigrateInfoOutcomeCallable; - typedef std::function&)> ListJobMigrateInfoAsyncHandler; - typedef Outcome CloneFlowOutcome; - typedef std::future CloneFlowOutcomeCallable; - typedef std::function&)> CloneFlowAsyncHandler; - typedef Outcome ListEmrMainVersionOutcome; - typedef std::future ListEmrMainVersionOutcomeCallable; - typedef std::function&)> ListEmrMainVersionAsyncHandler; - typedef Outcome CreateClusterTemplateOutcome; - typedef std::future CreateClusterTemplateOutcomeCallable; - typedef std::function&)> CreateClusterTemplateAsyncHandler; typedef Outcome MetastoreDropDatabaseOutcome; typedef std::future MetastoreDropDatabaseOutcomeCallable; typedef std::function&)> MetastoreDropDatabaseAsyncHandler; - typedef Outcome ListAlertContactsOutcome; - typedef std::future ListAlertContactsOutcomeCallable; - typedef std::function&)> ListAlertContactsAsyncHandler; - typedef Outcome MetastoreDescribeDatabaseOutcome; - typedef std::future MetastoreDescribeDatabaseOutcomeCallable; - typedef std::function&)> MetastoreDescribeDatabaseAsyncHandler; typedef Outcome ListFlowInstanceOutcome; typedef std::future ListFlowInstanceOutcomeCallable; typedef std::function&)> ListFlowInstanceAsyncHandler; + typedef Outcome MetastoreDescribeDatabaseOutcome; + typedef std::future MetastoreDescribeDatabaseOutcomeCallable; + typedef std::function&)> MetastoreDescribeDatabaseAsyncHandler; + typedef Outcome PageListUsersOutcome; + typedef std::future PageListUsersOutcomeCallable; + typedef std::function&)> PageListUsersAsyncHandler; + typedef Outcome DescribeClusterServiceConfigHistoryOutcome; + typedef std::future DescribeClusterServiceConfigHistoryOutcomeCallable; + typedef std::function&)> DescribeClusterServiceConfigHistoryAsyncHandler; typedef Outcome ListJobExecutionInstanceTrendOutcome; typedef std::future ListJobExecutionInstanceTrendOutcomeCallable; typedef std::function&)> ListJobExecutionInstanceTrendAsyncHandler; typedef Outcome MetastoreDescribeTaskOutcome; typedef std::future MetastoreDescribeTaskOutcomeCallable; typedef std::function&)> MetastoreDescribeTaskAsyncHandler; - typedef Outcome DescribeClusterServiceConfigHistoryOutcome; - typedef std::future DescribeClusterServiceConfigHistoryOutcomeCallable; - typedef std::function&)> DescribeClusterServiceConfigHistoryAsyncHandler; + typedef Outcome QueryUserActionsPolicyOutcome; + typedef std::future QueryUserActionsPolicyOutcomeCallable; + typedef std::function&)> QueryUserActionsPolicyAsyncHandler; typedef Outcome GetJobMigrateResultOutcome; typedef std::future GetJobMigrateResultOutcomeCallable; typedef std::function&)> GetJobMigrateResultAsyncHandler; - typedef Outcome GetHdfsCapacityStatisticInfoOutcome; - typedef std::future GetHdfsCapacityStatisticInfoOutcomeCallable; - typedef std::function&)> GetHdfsCapacityStatisticInfoAsyncHandler; - typedef Outcome ResumeExecutionPlanSchedulerOutcome; - typedef std::future ResumeExecutionPlanSchedulerOutcomeCallable; - typedef std::function&)> ResumeExecutionPlanSchedulerAsyncHandler; - typedef Outcome ListFlowNodeInstanceOutcome; - typedef std::future ListFlowNodeInstanceOutcomeCallable; - typedef std::function&)> ListFlowNodeInstanceAsyncHandler; typedef Outcome DescribeDataSourceOutcome; typedef std::future DescribeDataSourceOutcomeCallable; typedef std::function&)> DescribeDataSourceAsyncHandler; - typedef Outcome ListJobsOutcome; - typedef std::future ListJobsOutcomeCallable; - typedef std::function&)> ListJobsAsyncHandler; + typedef Outcome ListFlowNodeInstanceOutcome; + typedef std::future ListFlowNodeInstanceOutcomeCallable; + typedef std::function&)> ListFlowNodeInstanceAsyncHandler; typedef Outcome DescribeFlowVariableCollectionOutcome; typedef std::future DescribeFlowVariableCollectionOutcomeCallable; typedef std::function&)> DescribeFlowVariableCollectionAsyncHandler; @@ -765,69 +906,45 @@ namespace AlibabaCloud typedef Outcome DescribeScalingActivityOutcome; typedef std::future DescribeScalingActivityOutcomeCallable; typedef std::function&)> DescribeScalingActivityAsyncHandler; - typedef Outcome ListEmrAvailableResourceOutcome; - typedef std::future ListEmrAvailableResourceOutcomeCallable; - typedef std::function&)> ListEmrAvailableResourceAsyncHandler; - typedef Outcome ReleaseETLJobOutcome; - typedef std::future ReleaseETLJobOutcomeCallable; - typedef std::function&)> ReleaseETLJobAsyncHandler; + typedef Outcome ListClusterInstalledServiceOutcome; + typedef std::future ListClusterInstalledServiceOutcomeCallable; + typedef std::function&)> ListClusterInstalledServiceAsyncHandler; typedef Outcome DescribeEmrMainVersionOutcome; typedef std::future DescribeEmrMainVersionOutcomeCallable; typedef std::function&)> DescribeEmrMainVersionAsyncHandler; - typedef Outcome DescribeClusterServiceConfigTagOutcome; - typedef std::future DescribeClusterServiceConfigTagOutcomeCallable; - typedef std::function&)> DescribeClusterServiceConfigTagAsyncHandler; typedef Outcome DeleteETLJobOutcome; typedef std::future DeleteETLJobOutcomeCallable; typedef std::function&)> DeleteETLJobAsyncHandler; - typedef Outcome RunClusterServiceActionOutcome; - typedef std::future RunClusterServiceActionOutcomeCallable; - typedef std::function&)> RunClusterServiceActionAsyncHandler; - typedef Outcome SuspendFlowOutcome; - typedef std::future SuspendFlowOutcomeCallable; - typedef std::function&)> SuspendFlowAsyncHandler; typedef Outcome MetastoreDataPreviewOutcome; typedef std::future MetastoreDataPreviewOutcomeCallable; typedef std::function&)> MetastoreDataPreviewAsyncHandler; - typedef Outcome AuthorizeSecurityGroupOutcome; - typedef std::future AuthorizeSecurityGroupOutcomeCallable; - typedef std::function&)> AuthorizeSecurityGroupAsyncHandler; - typedef Outcome ModifyClusterTemplateOutcome; - typedef std::future ModifyClusterTemplateOutcomeCallable; - typedef std::function&)> ModifyClusterTemplateAsyncHandler; typedef Outcome AttachPubIpOutcome; typedef std::future AttachPubIpOutcomeCallable; typedef std::function&)> AttachPubIpAsyncHandler; + typedef Outcome UpdateWorkspaceResourceSettingOutcome; + typedef std::future UpdateWorkspaceResourceSettingOutcomeCallable; + typedef std::function&)> UpdateWorkspaceResourceSettingAsyncHandler; typedef Outcome RunExecutionPlanOutcome; typedef std::future RunExecutionPlanOutcomeCallable; typedef std::function&)> RunExecutionPlanAsyncHandler; - typedef Outcome ContextQueryLogOutcome; - typedef std::future ContextQueryLogOutcomeCallable; - typedef std::function&)> ContextQueryLogAsyncHandler; - typedef Outcome ListClusterOperationHostOutcome; - typedef std::future ListClusterOperationHostOutcomeCallable; - typedef std::function&)> ListClusterOperationHostAsyncHandler; typedef Outcome ListClusterTemplatesOutcome; typedef std::future ListClusterTemplatesOutcomeCallable; typedef std::function&)> ListClusterTemplatesAsyncHandler; typedef Outcome DescribeFlowCategoryOutcome; typedef std::future DescribeFlowCategoryOutcomeCallable; typedef std::function&)> DescribeFlowCategoryAsyncHandler; + typedef Outcome StartKafkaBrokerDiskBalancerOutcome; + typedef std::future StartKafkaBrokerDiskBalancerOutcomeCallable; + typedef std::function&)> StartKafkaBrokerDiskBalancerAsyncHandler; typedef Outcome ModifyFlowJobOutcome; typedef std::future ModifyFlowJobOutcomeCallable; typedef std::function&)> ModifyFlowJobAsyncHandler; - typedef Outcome ListScalingRuleOutcome; - typedef std::future ListScalingRuleOutcomeCallable; - typedef std::function&)> ListScalingRuleAsyncHandler; - typedef Outcome DeleteFlowOutcome; - typedef std::future DeleteFlowOutcomeCallable; - typedef std::function&)> DeleteFlowAsyncHandler; - typedef Outcome DeleteDataSourceOutcome; - typedef std::future DeleteDataSourceOutcomeCallable; - typedef std::function&)> DeleteDataSourceAsyncHandler; - typedef Outcome RunETLJobOutcome; - typedef std::future RunETLJobOutcomeCallable; - typedef std::function&)> RunETLJobAsyncHandler; + typedef Outcome RemoveBackupRuleOutcome; + typedef std::future RemoveBackupRuleOutcomeCallable; + typedef std::function&)> RemoveBackupRuleAsyncHandler; + typedef Outcome RetrySyncUserAccountOutcome; + typedef std::future RetrySyncUserAccountOutcomeCallable; + typedef std::function&)> RetrySyncUserAccountAsyncHandler; typedef Outcome CreateClusterHostGroupOutcome; typedef std::future CreateClusterHostGroupOutcomeCallable; typedef std::function&)> CreateClusterHostGroupAsyncHandler; @@ -837,48 +954,36 @@ namespace AlibabaCloud typedef Outcome ModifyScalingRuleOutcome; typedef std::future ModifyScalingRuleOutcomeCallable; typedef std::function&)> ModifyScalingRuleAsyncHandler; - typedef Outcome ListClusterServiceComponentHealthInfoOutcome; - typedef std::future ListClusterServiceComponentHealthInfoOutcomeCallable; - typedef std::function&)> ListClusterServiceComponentHealthInfoAsyncHandler; - typedef Outcome ListFlowProjectOutcome; - typedef std::future ListFlowProjectOutcomeCallable; - typedef std::function&)> ListFlowProjectAsyncHandler; typedef Outcome RemoveClusterHostsOutcome; typedef std::future RemoveClusterHostsOutcomeCallable; typedef std::function&)> RemoveClusterHostsAsyncHandler; typedef Outcome ListETLJobTriggerEntityOutcome; typedef std::future ListETLJobTriggerEntityOutcomeCallable; typedef std::function&)> ListETLJobTriggerEntityAsyncHandler; - typedef Outcome ModifyAlertDingDingGroupOutcome; - typedef std::future ModifyAlertDingDingGroupOutcomeCallable; - typedef std::function&)> ModifyAlertDingDingGroupAsyncHandler; - typedef Outcome CreateETLJobOutcome; - typedef std::future CreateETLJobOutcomeCallable; - typedef std::function&)> CreateETLJobAsyncHandler; + typedef Outcome AddClusterServiceForAdminOutcome; + typedef std::future AddClusterServiceForAdminOutcomeCallable; + typedef std::function&)> AddClusterServiceForAdminAsyncHandler; + typedef Outcome DescribeHostPoolOutcome; + typedef std::future DescribeHostPoolOutcomeCallable; + typedef std::function&)> DescribeHostPoolAsyncHandler; typedef Outcome SaveParagraphOutcome; typedef std::future SaveParagraphOutcomeCallable; typedef std::function&)> SaveParagraphAsyncHandler; typedef Outcome DeleteParagraphOutcome; typedef std::future DeleteParagraphOutcomeCallable; typedef std::function&)> DeleteParagraphAsyncHandler; - typedef Outcome ListFlowJobHistoryOutcome; - typedef std::future ListFlowJobHistoryOutcomeCallable; - typedef std::function&)> ListFlowJobHistoryAsyncHandler; - typedef Outcome CreateClusterScriptOutcome; - typedef std::future CreateClusterScriptOutcomeCallable; - typedef std::function&)> CreateClusterScriptAsyncHandler; - typedef Outcome SubmitFlowOutcome; - typedef std::future SubmitFlowOutcomeCallable; - typedef std::function&)> SubmitFlowAsyncHandler; typedef Outcome GetQueueInputStatisticInfoOutcome; typedef std::future GetQueueInputStatisticInfoOutcomeCallable; typedef std::function&)> GetQueueInputStatisticInfoAsyncHandler; - typedef Outcome ListClusterServiceQuickLinkOutcome; - typedef std::future ListClusterServiceQuickLinkOutcomeCallable; - typedef std::function&)> ListClusterServiceQuickLinkAsyncHandler; typedef Outcome MetastoreUpdateTableOutcome; typedef std::future MetastoreUpdateTableOutcomeCallable; typedef std::function&)> MetastoreUpdateTableAsyncHandler; + typedef Outcome GetBackupRuleInfoOutcome; + typedef std::future GetBackupRuleInfoOutcomeCallable; + typedef std::function&)> GetBackupRuleInfoAsyncHandler; + typedef Outcome ListClusterServiceQuickLinkOutcome; + typedef std::future ListClusterServiceQuickLinkOutcomeCallable; + typedef std::function&)> ListClusterServiceQuickLinkAsyncHandler; typedef Outcome ListClusterHostGroupOutcome; typedef std::future ListClusterHostGroupOutcomeCallable; typedef std::function&)> ListClusterHostGroupAsyncHandler; @@ -888,57 +993,39 @@ namespace AlibabaCloud typedef Outcome MetastoreDeleteKafkaTopicOutcome; typedef std::future MetastoreDeleteKafkaTopicOutcomeCallable; typedef std::function&)> MetastoreDeleteKafkaTopicAsyncHandler; - typedef Outcome ResumeFlowOutcome; - typedef std::future ResumeFlowOutcomeCallable; - typedef std::function&)> ResumeFlowAsyncHandler; - typedef Outcome DeleteFlowProjectByIdOutcome; - typedef std::future DeleteFlowProjectByIdOutcomeCallable; - typedef std::function&)> DeleteFlowProjectByIdAsyncHandler; typedef Outcome SuspendExecutionPlanInstanceOutcome; typedef std::future SuspendExecutionPlanInstanceOutcomeCallable; typedef std::function&)> SuspendExecutionPlanInstanceAsyncHandler; - typedef Outcome GetUserSubmissionStatisticInfoOutcome; - typedef std::future GetUserSubmissionStatisticInfoOutcomeCallable; - typedef std::function&)> GetUserSubmissionStatisticInfoAsyncHandler; typedef Outcome DeleteScalingTaskGroupOutcome; typedef std::future DeleteScalingTaskGroupOutcomeCallable; typedef std::function&)> DeleteScalingTaskGroupAsyncHandler; - typedef Outcome DescribeParagraphOutcome; - typedef std::future DescribeParagraphOutcomeCallable; - typedef std::function&)> DescribeParagraphAsyncHandler; - typedef Outcome MetastoreCreateDatabaseOutcome; - typedef std::future MetastoreCreateDatabaseOutcomeCallable; - typedef std::function&)> MetastoreCreateDatabaseAsyncHandler; + typedef Outcome GetUserSubmissionStatisticInfoOutcome; + typedef std::future GetUserSubmissionStatisticInfoOutcomeCallable; + typedef std::function&)> GetUserSubmissionStatisticInfoAsyncHandler; typedef Outcome ListFailureJobExecutionInstancesOutcome; typedef std::future ListFailureJobExecutionInstancesOutcomeCallable; typedef std::function&)> ListFailureJobExecutionInstancesAsyncHandler; - typedef Outcome DeleteFlowJobOutcome; - typedef std::future DeleteFlowJobOutcomeCallable; - typedef std::function&)> DeleteFlowJobAsyncHandler; - typedef Outcome RefreshClusterResourcePoolOutcome; - typedef std::future RefreshClusterResourcePoolOutcomeCallable; - typedef std::function&)> RefreshClusterResourcePoolAsyncHandler; - typedef Outcome ModifyJobOutcome; - typedef std::future ModifyJobOutcomeCallable; - typedef std::function&)> ModifyJobAsyncHandler; + typedef Outcome CreateBackupPlanOutcome; + typedef std::future CreateBackupPlanOutcomeCallable; + typedef std::function&)> CreateBackupPlanAsyncHandler; + typedef Outcome ListHpHostOutcome; + typedef std::future ListHpHostOutcomeCallable; + typedef std::function&)> ListHpHostAsyncHandler; typedef Outcome MetastoreCreateDataResourceOutcome; typedef std::future MetastoreCreateDataResourceOutcomeCallable; typedef std::function&)> MetastoreCreateDataResourceAsyncHandler; + typedef Outcome ListClusterHostComponentForAdminOutcome; + typedef std::future ListClusterHostComponentForAdminOutcomeCallable; + typedef std::function&)> ListClusterHostComponentForAdminAsyncHandler; typedef Outcome KillETLJobInstanceOutcome; typedef std::future KillETLJobInstanceOutcomeCallable; typedef std::function&)> KillETLJobInstanceAsyncHandler; - typedef Outcome DescribeFlowJobOutcome; - typedef std::future DescribeFlowJobOutcomeCallable; - typedef std::function&)> DescribeFlowJobAsyncHandler; typedef Outcome RetryExecutionPlanInstanceOutcome; typedef std::future RetryExecutionPlanInstanceOutcomeCallable; typedef std::function&)> RetryExecutionPlanInstanceAsyncHandler; - typedef Outcome RerunFlowOutcome; - typedef std::future RerunFlowOutcomeCallable; - typedef std::function&)> RerunFlowAsyncHandler; - typedef Outcome MetastoreRetryTaskOutcome; - typedef std::future MetastoreRetryTaskOutcomeCallable; - typedef std::function&)> MetastoreRetryTaskAsyncHandler; + typedef Outcome ListHostPoolOutcome; + typedef std::future ListHostPoolOutcomeCallable; + typedef std::function&)> ListHostPoolAsyncHandler; typedef Outcome DescribeClusterOperationHostTaskLogOutcome; typedef std::future DescribeClusterOperationHostTaskLogOutcomeCallable; typedef std::function&)> DescribeClusterOperationHostTaskLogAsyncHandler; @@ -948,159 +1035,102 @@ namespace AlibabaCloud typedef Outcome KillFlowJobOutcome; typedef std::future KillFlowJobOutcomeCallable; typedef std::function&)> KillFlowJobAsyncHandler; + typedef Outcome DescribeWorkspaceRepoSettingOutcome; + typedef std::future DescribeWorkspaceRepoSettingOutcomeCallable; + typedef std::function&)> DescribeWorkspaceRepoSettingAsyncHandler; typedef Outcome DescribeFlowOutcome; typedef std::future DescribeFlowOutcomeCallable; typedef std::function&)> DescribeFlowAsyncHandler; - typedef Outcome DescribeClusterV2Outcome; - typedef std::future DescribeClusterV2OutcomeCallable; - typedef std::function&)> DescribeClusterV2AsyncHandler; typedef Outcome DescribeDataSourceSchemaDatabaseOutcome; typedef std::future DescribeDataSourceSchemaDatabaseOutcomeCallable; typedef std::function&)> DescribeDataSourceSchemaDatabaseAsyncHandler; typedef Outcome DescribeETLJobStageOutputSchemaOutcome; typedef std::future DescribeETLJobStageOutputSchemaOutcomeCallable; typedef std::function&)> DescribeETLJobStageOutputSchemaAsyncHandler; - typedef Outcome CreateFlowProjectClusterSettingOutcome; - typedef std::future CreateFlowProjectClusterSettingOutcomeCallable; - typedef std::function&)> CreateFlowProjectClusterSettingAsyncHandler; - typedef Outcome ListClusterScriptsOutcome; - typedef std::future ListClusterScriptsOutcomeCallable; - typedef std::function&)> ListClusterScriptsAsyncHandler; - typedef Outcome DescribeFlowInstanceOutcome; - typedef std::future DescribeFlowInstanceOutcomeCallable; - typedef std::function&)> DescribeFlowInstanceAsyncHandler; - typedef Outcome CreateDataSourceOutcome; - typedef std::future CreateDataSourceOutcomeCallable; - typedef std::function&)> CreateDataSourceAsyncHandler; typedef Outcome GetUserInputStatisticInfoOutcome; typedef std::future GetUserInputStatisticInfoOutcomeCallable; typedef std::function&)> GetUserInputStatisticInfoAsyncHandler; + typedef Outcome CreateDataSourceOutcome; + typedef std::future CreateDataSourceOutcomeCallable; + typedef std::function&)> CreateDataSourceAsyncHandler; typedef Outcome ModifyAlertContactOutcome; typedef std::future ModifyAlertContactOutcomeCallable; typedef std::function&)> ModifyAlertContactAsyncHandler; - typedef Outcome CreateAlertContactOutcome; - typedef std::future CreateAlertContactOutcomeCallable; - typedef std::function&)> CreateAlertContactAsyncHandler; typedef Outcome DeleteAlertDingDingGroupsOutcome; typedef std::future DeleteAlertDingDingGroupsOutcomeCallable; typedef std::function&)> DeleteAlertDingDingGroupsAsyncHandler; - typedef Outcome MetastoreModifyDataResourceOutcome; - typedef std::future MetastoreModifyDataResourceOutcomeCallable; - typedef std::function&)> MetastoreModifyDataResourceAsyncHandler; - typedef Outcome ListExecutePlanMigrateInfoOutcome; - typedef std::future ListExecutePlanMigrateInfoOutcomeCallable; - typedef std::function&)> ListExecutePlanMigrateInfoAsyncHandler; - typedef Outcome GetOpsCommandResultOnceOutcome; - typedef std::future GetOpsCommandResultOnceOutcomeCallable; - typedef std::function&)> GetOpsCommandResultOnceAsyncHandler; - typedef Outcome ResumeExecutionPlanInstanceOutcome; - typedef std::future ResumeExecutionPlanInstanceOutcomeCallable; - typedef std::function&)> ResumeExecutionPlanInstanceAsyncHandler; - typedef Outcome CreateParagraphOutcome; - typedef std::future CreateParagraphOutcomeCallable; - typedef std::function&)> CreateParagraphAsyncHandler; - typedef Outcome GetJobInputStatisticInfoOutcome; - typedef std::future GetJobInputStatisticInfoOutcomeCallable; - typedef std::function&)> GetJobInputStatisticInfoAsyncHandler; - typedef Outcome DeleteFlowProjectUserOutcome; - typedef std::future DeleteFlowProjectUserOutcomeCallable; - typedef std::function&)> DeleteFlowProjectUserAsyncHandler; + typedef Outcome DescribeWorkspaceResourceSettingOutcome; + typedef std::future DescribeWorkspaceResourceSettingOutcomeCallable; + typedef std::function&)> DescribeWorkspaceResourceSettingAsyncHandler; typedef Outcome CreateResourceQueueOutcome; typedef std::future CreateResourceQueueOutcomeCallable; typedef std::function&)> CreateResourceQueueAsyncHandler; - typedef Outcome ListDependedServiceOutcome; - typedef std::future ListDependedServiceOutcomeCallable; - typedef std::function&)> ListDependedServiceAsyncHandler; typedef Outcome CloneETLJobOutcome; typedef std::future CloneETLJobOutcomeCallable; typedef std::function&)> CloneETLJobAsyncHandler; - typedef Outcome DeleteAlertContactsOutcome; - typedef std::future DeleteAlertContactsOutcomeCallable; - typedef std::function&)> DeleteAlertContactsAsyncHandler; typedef Outcome MetastoreListTablePartitionOutcome; typedef std::future MetastoreListTablePartitionOutcomeCallable; typedef std::function&)> MetastoreListTablePartitionAsyncHandler; - typedef Outcome CreateClusterV2Outcome; - typedef std::future CreateClusterV2OutcomeCallable; - typedef std::function&)> CreateClusterV2AsyncHandler; typedef Outcome ModifyExecutionPlanScheduleInfoOutcome; typedef std::future ModifyExecutionPlanScheduleInfoOutcomeCallable; typedef std::function&)> ModifyExecutionPlanScheduleInfoAsyncHandler; - typedef Outcome ListClusterHostOutcome; - typedef std::future ListClusterHostOutcomeCallable; - typedef std::function&)> ListClusterHostAsyncHandler; - typedef Outcome DescribeClusterServiceOutcome; - typedef std::future DescribeClusterServiceOutcomeCallable; - typedef std::function&)> DescribeClusterServiceAsyncHandler; typedef Outcome GetQueueOutputStatisticInfoOutcome; typedef std::future GetQueueOutputStatisticInfoOutcomeCallable; typedef std::function&)> GetQueueOutputStatisticInfoAsyncHandler; typedef Outcome CreateExecutionPlanOutcome; typedef std::future CreateExecutionPlanOutcomeCallable; typedef std::function&)> CreateExecutionPlanAsyncHandler; - typedef Outcome MetastoreCreateTableOutcome; - typedef std::future MetastoreCreateTableOutcomeCallable; - typedef std::function&)> MetastoreCreateTableAsyncHandler; + typedef Outcome DescribeClusterResourcePoolSchedulerTypeForAdminOutcome; + typedef std::future DescribeClusterResourcePoolSchedulerTypeForAdminOutcomeCallable; + typedef std::function&)> DescribeClusterResourcePoolSchedulerTypeForAdminAsyncHandler; typedef Outcome DeleteAlertUserGroupsOutcome; typedef std::future DeleteAlertUserGroupsOutcomeCallable; typedef std::function&)> DeleteAlertUserGroupsAsyncHandler; typedef Outcome MetastoreListKafkaConsumerGroupOutcome; typedef std::future MetastoreListKafkaConsumerGroupOutcomeCallable; typedef std::function&)> MetastoreListKafkaConsumerGroupAsyncHandler; - typedef Outcome CommonApiWhiteListOutcome; - typedef std::future CommonApiWhiteListOutcomeCallable; - typedef std::function&)> CommonApiWhiteListAsyncHandler; - typedef Outcome CreateFlowForWebOutcome; - typedef std::future CreateFlowForWebOutcomeCallable; - typedef std::function&)> CreateFlowForWebAsyncHandler; + typedef Outcome AddResourceToUsersOutcome; + typedef std::future AddResourceToUsersOutcomeCallable; + typedef std::function&)> AddResourceToUsersAsyncHandler; + typedef Outcome SaveUserAccountInfoOutcome; + typedef std::future SaveUserAccountInfoOutcomeCallable; + typedef std::function&)> SaveUserAccountInfoAsyncHandler; typedef Outcome DeleteScalingRuleOutcome; typedef std::future DeleteScalingRuleOutcomeCallable; typedef std::function&)> DeleteScalingRuleAsyncHandler; - typedef Outcome QuerySlsMetricDataOutcome; - typedef std::future QuerySlsMetricDataOutcomeCallable; - typedef std::function&)> QuerySlsMetricDataAsyncHandler; + typedef Outcome CreateBackupRuleOutcome; + typedef std::future CreateBackupRuleOutcomeCallable; + typedef std::function&)> CreateBackupRuleAsyncHandler; typedef Outcome DescribeFlowJobStatisticOutcome; typedef std::future DescribeFlowJobStatisticOutcomeCallable; typedef std::function&)> DescribeFlowJobStatisticAsyncHandler; - typedef Outcome MetastoreListKafkaTopicOutcome; - typedef std::future MetastoreListKafkaTopicOutcomeCallable; - typedef std::function&)> MetastoreListKafkaTopicAsyncHandler; - typedef Outcome DescribeJobOutcome; - typedef std::future DescribeJobOutcomeCallable; - typedef std::function&)> DescribeJobAsyncHandler; + typedef Outcome ListKafkaBrokerOutcome; + typedef std::future ListKafkaBrokerOutcomeCallable; + typedef std::function&)> ListKafkaBrokerAsyncHandler; typedef Outcome ReleaseClusterHostGroupOutcome; typedef std::future ReleaseClusterHostGroupOutcomeCallable; typedef std::function&)> ReleaseClusterHostGroupAsyncHandler; + typedef Outcome ListBackupsOutcome; + typedef std::future ListBackupsOutcomeCallable; + typedef std::function&)> ListBackupsAsyncHandler; typedef Outcome ListOpsOperationOutcome; typedef std::future ListOpsOperationOutcomeCallable; typedef std::function&)> ListOpsOperationAsyncHandler; - typedef Outcome ModifyFlowProjectOutcome; - typedef std::future ModifyFlowProjectOutcomeCallable; - typedef std::function&)> ModifyFlowProjectAsyncHandler; typedef Outcome ModifyClusterHostGroupOutcome; typedef std::future ModifyClusterHostGroupOutcomeCallable; typedef std::function&)> ModifyClusterHostGroupAsyncHandler; - typedef Outcome DescribeUserStatisticsOutcome; - typedef std::future DescribeUserStatisticsOutcomeCallable; - typedef std::function&)> DescribeUserStatisticsAsyncHandler; typedef Outcome DescribeFlowNodeInstanceLauncherLogOutcome; typedef std::future DescribeFlowNodeInstanceLauncherLogOutcomeCallable; typedef std::function&)> DescribeFlowNodeInstanceLauncherLogAsyncHandler; - typedef Outcome ListFlowOutcome; - typedef std::future ListFlowOutcomeCallable; - typedef std::function&)> ListFlowAsyncHandler; + typedef Outcome DescribeUserStatisticsOutcome; + typedef std::future DescribeUserStatisticsOutcomeCallable; + typedef std::function&)> DescribeUserStatisticsAsyncHandler; typedef Outcome DeleteClusterScriptOutcome; typedef std::future DeleteClusterScriptOutcomeCallable; typedef std::function&)> DeleteClusterScriptAsyncHandler; - typedef Outcome ListResourceQueueOutcome; - typedef std::future ListResourceQueueOutcomeCallable; - typedef std::function&)> ListResourceQueueAsyncHandler; typedef Outcome ListClusterOperationOutcome; typedef std::future ListClusterOperationOutcomeCallable; typedef std::function&)> ListClusterOperationAsyncHandler; - typedef Outcome KillExecutionPlanInstanceOutcome; - typedef std::future KillExecutionPlanInstanceOutcomeCallable; - typedef std::function&)> KillExecutionPlanInstanceAsyncHandler; typedef Outcome UpdateNavNodeOutcome; typedef std::future UpdateNavNodeOutcomeCallable; typedef std::function&)> UpdateNavNodeAsyncHandler; @@ -1113,51 +1143,27 @@ namespace AlibabaCloud typedef Outcome CreateFlowJobOutcome; typedef std::future CreateFlowJobOutcomeCallable; typedef std::function&)> CreateFlowJobAsyncHandler; - typedef Outcome DeleteFlowCategoryOutcome; - typedef std::future DeleteFlowCategoryOutcomeCallable; - typedef std::function&)> DeleteFlowCategoryAsyncHandler; - typedef Outcome MigrateJobsOutcome; - typedef std::future MigrateJobsOutcomeCallable; - typedef std::function&)> MigrateJobsAsyncHandler; - typedef Outcome KillExecutionJobInstanceOutcome; - typedef std::future KillExecutionJobInstanceOutcomeCallable; - typedef std::function&)> KillExecutionJobInstanceAsyncHandler; + typedef Outcome StartKafkaPreferredReplicaElectionOutcome; + typedef std::future StartKafkaPreferredReplicaElectionOutcomeCallable; + typedef std::function&)> StartKafkaPreferredReplicaElectionAsyncHandler; + typedef Outcome DescribeClusterServiceConfigForAdminOutcome; + typedef std::future DescribeClusterServiceConfigForAdminOutcomeCallable; + typedef std::function&)> DescribeClusterServiceConfigForAdminAsyncHandler; typedef Outcome CreateClusterWithTemplateOutcome; typedef std::future CreateClusterWithTemplateOutcomeCallable; typedef std::function&)> CreateClusterWithTemplateAsyncHandler; typedef Outcome ListFlowClusterAllOutcome; typedef std::future ListFlowClusterAllOutcomeCallable; typedef std::function&)> ListFlowClusterAllAsyncHandler; - typedef Outcome ModifyExecutionPlanOutcome; - typedef std::future ModifyExecutionPlanOutcomeCallable; - typedef std::function&)> ModifyExecutionPlanAsyncHandler; - typedef Outcome ListUserStatisticsOutcome; - typedef std::future ListUserStatisticsOutcomeCallable; - typedef std::function&)> ListUserStatisticsAsyncHandler; - typedef Outcome AddClusterServiceOutcome; - typedef std::future AddClusterServiceOutcomeCallable; - typedef std::function&)> AddClusterServiceAsyncHandler; - typedef Outcome ModifyFlowCategoryOutcome; - typedef std::future ModifyFlowCategoryOutcomeCallable; - typedef std::function&)> ModifyFlowCategoryAsyncHandler; - typedef Outcome QueryAlarmRulesOutcome; - typedef std::future QueryAlarmRulesOutcomeCallable; - typedef std::function&)> QueryAlarmRulesAsyncHandler; - typedef Outcome ModifyClusterServiceConfigOutcome; - typedef std::future ModifyClusterServiceConfigOutcomeCallable; - typedef std::function&)> ModifyClusterServiceConfigAsyncHandler; + typedef Outcome DescribeKafkaReassignOutcome; + typedef std::future DescribeKafkaReassignOutcomeCallable; + typedef std::function&)> DescribeKafkaReassignAsyncHandler; + typedef Outcome GetAuditLogsOutcome; + typedef std::future GetAuditLogsOutcomeCallable; + typedef std::function&)> GetAuditLogsAsyncHandler; typedef Outcome ListNotesOutcome; typedef std::future ListNotesOutcomeCallable; typedef std::function&)> ListNotesAsyncHandler; - typedef Outcome MetastoreListDataResourcesOutcome; - typedef std::future MetastoreListDataResourcesOutcomeCallable; - typedef std::function&)> MetastoreListDataResourcesAsyncHandler; - typedef Outcome UpdateETLJobOutcome; - typedef std::future UpdateETLJobOutcomeCallable; - typedef std::function&)> UpdateETLJobAsyncHandler; - typedef Outcome DescribeScalingTaskGroupOutcome; - typedef std::future DescribeScalingTaskGroupOutcomeCallable; - typedef std::function&)> DescribeScalingTaskGroupAsyncHandler; typedef Outcome MetastoreDescribeDataSourceOutcome; typedef std::future MetastoreDescribeDataSourceOutcomeCallable; typedef std::function&)> MetastoreDescribeDataSourceAsyncHandler; @@ -1176,339 +1182,198 @@ namespace AlibabaCloud typedef Outcome RenderResourcePoolXmlOutcome; typedef std::future RenderResourcePoolXmlOutcomeCallable; typedef std::function&)> RenderResourcePoolXmlAsyncHandler; - typedef Outcome UpdateDataSourceOutcome; - typedef std::future UpdateDataSourceOutcomeCallable; - typedef std::function&)> UpdateDataSourceAsyncHandler; typedef Outcome ModifyScalingTaskGroupOutcome; typedef std::future ModifyScalingTaskGroupOutcomeCallable; typedef std::function&)> ModifyScalingTaskGroupAsyncHandler; - typedef Outcome ListDataSourceSchemaDatabaseOutcome; - typedef std::future ListDataSourceSchemaDatabaseOutcomeCallable; - typedef std::function&)> ListDataSourceSchemaDatabaseAsyncHandler; typedef Outcome DescribeFlowProjectOutcome; typedef std::future DescribeFlowProjectOutcomeCallable; typedef std::function&)> DescribeFlowProjectAsyncHandler; - typedef Outcome CreateUsersOutcome; - typedef std::future CreateUsersOutcomeCallable; - typedef std::function&)> CreateUsersAsyncHandler; - typedef Outcome CheckDataSourceOutcome; - typedef std::future CheckDataSourceOutcomeCallable; - typedef std::function&)> CheckDataSourceAsyncHandler; - typedef Outcome ListScalingActivityOutcome; - typedef std::future ListScalingActivityOutcomeCallable; - typedef std::function&)> ListScalingActivityAsyncHandler; - typedef Outcome CreateNoteOutcome; - typedef std::future CreateNoteOutcomeCallable; - typedef std::function&)> CreateNoteAsyncHandler; typedef Outcome DeleteResourcePoolOutcome; typedef std::future DeleteResourcePoolOutcomeCallable; typedef std::function&)> DeleteResourcePoolAsyncHandler; + typedef Outcome QueryUserPoliciesOutcome; + typedef std::future QueryUserPoliciesOutcomeCallable; + typedef std::function&)> QueryUserPoliciesAsyncHandler; typedef Outcome ListFlowJobOutcome; typedef std::future ListFlowJobOutcomeCallable; typedef std::function&)> ListFlowJobAsyncHandler; - typedef Outcome RetryExecutionPlanOutcome; - typedef std::future RetryExecutionPlanOutcomeCallable; - typedef std::function&)> RetryExecutionPlanAsyncHandler; - typedef Outcome DescribeAvailableInstanceTypeOutcome; - typedef std::future DescribeAvailableInstanceTypeOutcomeCallable; - typedef std::function&)> DescribeAvailableInstanceTypeAsyncHandler; typedef Outcome MetastoreUpdateKafkaTopicBatchOutcome; typedef std::future MetastoreUpdateKafkaTopicBatchOutcomeCallable; typedef std::function&)> MetastoreUpdateKafkaTopicBatchAsyncHandler; + typedef Outcome DescribeAvailableInstanceTypeOutcome; + typedef std::future DescribeAvailableInstanceTypeOutcomeCallable; + typedef std::function&)> DescribeAvailableInstanceTypeAsyncHandler; typedef Outcome ListNavSubTreeOutcome; typedef std::future ListNavSubTreeOutcomeCallable; typedef std::function&)> ListNavSubTreeAsyncHandler; - typedef Outcome ListFlowNodeInstanceContainerStatusOutcome; - typedef std::future ListFlowNodeInstanceContainerStatusOutcomeCallable; - typedef std::function&)> ListFlowNodeInstanceContainerStatusAsyncHandler; typedef Outcome CreateFlowProjectOutcome; typedef std::future CreateFlowProjectOutcomeCallable; typedef std::function&)> CreateFlowProjectAsyncHandler; - typedef Outcome MetastoreListDataSourceOutcome; - typedef std::future MetastoreListDataSourceOutcomeCallable; - typedef std::function&)> MetastoreListDataSourceAsyncHandler; - typedef Outcome GetSupportedOpsCommandOutcome; - typedef std::future GetSupportedOpsCommandOutcomeCallable; - typedef std::function&)> GetSupportedOpsCommandAsyncHandler; - typedef Outcome DescribeETLJobSqlSchemaOutcome; - typedef std::future DescribeETLJobSqlSchemaOutcomeCallable; - typedef std::function&)> DescribeETLJobSqlSchemaAsyncHandler; typedef Outcome CreateVerificationCodeOutcome; typedef std::future CreateVerificationCodeOutcomeCallable; typedef std::function&)> CreateVerificationCodeAsyncHandler; - typedef Outcome ListExecutionPlanInstancesOutcome; - typedef std::future ListExecutionPlanInstancesOutcomeCallable; - typedef std::function&)> ListExecutionPlanInstancesAsyncHandler; - typedef Outcome DetachClusterForNoteOutcome; - typedef std::future DetachClusterForNoteOutcomeCallable; - typedef std::function&)> DetachClusterForNoteAsyncHandler; typedef Outcome ListClustersOutcome; typedef std::future ListClustersOutcomeCallable; typedef std::function&)> ListClustersAsyncHandler; - typedef Outcome MetastoreDescribeKafkaConsumerGroupOutcome; - typedef std::future MetastoreDescribeKafkaConsumerGroupOutcomeCallable; - typedef std::function&)> MetastoreDescribeKafkaConsumerGroupAsyncHandler; - typedef Outcome MetastoreListTaskOutcome; - typedef std::future MetastoreListTaskOutcomeCallable; - typedef std::function&)> MetastoreListTaskAsyncHandler; - typedef Outcome DescribeClusterOpLogOutcome; - typedef std::future DescribeClusterOpLogOutcomeCallable; - typedef std::function&)> DescribeClusterOpLogAsyncHandler; + typedef Outcome DetachClusterForNoteOutcome; + typedef std::future DetachClusterForNoteOutcomeCallable; + typedef std::function&)> DetachClusterForNoteAsyncHandler; + typedef Outcome ListRolesOutcome; + typedef std::future ListRolesOutcomeCallable; + typedef std::function&)> ListRolesAsyncHandler; + typedef Outcome DeleteBatchResourceUsersOutcome; + typedef std::future DeleteBatchResourceUsersOutcomeCallable; + typedef std::function&)> DeleteBatchResourceUsersAsyncHandler; typedef Outcome DescribeFlowNodeInstanceOutcome; typedef std::future DescribeFlowNodeInstanceOutcomeCallable; typedef std::function&)> DescribeFlowNodeInstanceAsyncHandler; + typedef Outcome ListStreamingSqlQueryOutcome; + typedef std::future ListStreamingSqlQueryOutcomeCallable; + typedef std::function&)> ListStreamingSqlQueryAsyncHandler; typedef Outcome MetastoreDescribeKafkaTopicOutcome; typedef std::future MetastoreDescribeKafkaTopicOutcomeCallable; typedef std::function&)> MetastoreDescribeKafkaTopicAsyncHandler; typedef Outcome ListScalingTaskGroupOutcome; typedef std::future ListScalingTaskGroupOutcomeCallable; typedef std::function&)> ListScalingTaskGroupAsyncHandler; - typedef Outcome GetQueueSubmissionStatisticInfoOutcome; - typedef std::future GetQueueSubmissionStatisticInfoOutcomeCallable; - typedef std::function&)> GetQueueSubmissionStatisticInfoAsyncHandler; - typedef Outcome ListDataSourceOutcome; - typedef std::future ListDataSourceOutcomeCallable; - typedef std::function&)> ListDataSourceAsyncHandler; typedef Outcome ModifyUserStatisticsOutcome; typedef std::future ModifyUserStatisticsOutcomeCallable; typedef std::function&)> ModifyUserStatisticsAsyncHandler; - typedef Outcome MetastoreCreateKafkaTopicOutcome; - typedef std::future MetastoreCreateKafkaTopicOutcomeCallable; - typedef std::function&)> MetastoreCreateKafkaTopicAsyncHandler; - typedef Outcome ListETLJobInstanceOutcome; - typedef std::future ListETLJobInstanceOutcomeCallable; - typedef std::function&)> ListETLJobInstanceAsyncHandler; typedef Outcome ModifyFlowVariableCollectionOutcome; typedef std::future ModifyFlowVariableCollectionOutcomeCallable; typedef std::function&)> ModifyFlowVariableCollectionAsyncHandler; typedef Outcome DescribeETLJobInstanceOutcome; typedef std::future DescribeETLJobInstanceOutcomeCallable; typedef std::function&)> DescribeETLJobInstanceAsyncHandler; - typedef Outcome ModifyExecutionPlanBasicInfoOutcome; - typedef std::future ModifyExecutionPlanBasicInfoOutcomeCallable; - typedef std::function&)> ModifyExecutionPlanBasicInfoAsyncHandler; - typedef Outcome SubmitFlowJobOutcome; - typedef std::future SubmitFlowJobOutcomeCallable; - typedef std::function&)> SubmitFlowJobAsyncHandler; + typedef Outcome UpdateUserStatusOutcome; + typedef std::future UpdateUserStatusOutcomeCallable; + typedef std::function&)> UpdateUserStatusAsyncHandler; + typedef Outcome UpdateUserOutcome; + typedef std::future UpdateUserOutcomeCallable; + typedef std::function&)> UpdateUserAsyncHandler; typedef Outcome CreateUserPasswordOutcome; typedef std::future CreateUserPasswordOutcomeCallable; typedef std::function&)> CreateUserPasswordAsyncHandler; - typedef Outcome DescribeETLJobOutcome; - typedef std::future DescribeETLJobOutcomeCallable; - typedef std::function&)> DescribeETLJobAsyncHandler; - typedef Outcome ListClusterHostComponentOutcome; - typedef std::future ListClusterHostComponentOutcomeCallable; - typedef std::function&)> ListClusterHostComponentAsyncHandler; + typedef Outcome GetFlowAuditLogsOutcome; + typedef std::future GetFlowAuditLogsOutcomeCallable; + typedef std::function&)> GetFlowAuditLogsAsyncHandler; + typedef Outcome RefreshClusterResourcePoolForAdminOutcome; + typedef std::future RefreshClusterResourcePoolForAdminOutcomeCallable; + typedef std::function&)> RefreshClusterResourcePoolForAdminAsyncHandler; typedef Outcome ListAlertDingDingGroupOutcome; typedef std::future ListAlertDingDingGroupOutcomeCallable; typedef std::function&)> ListAlertDingDingGroupAsyncHandler; typedef Outcome CloneDataSourceOutcome; typedef std::future CloneDataSourceOutcomeCallable; typedef std::function&)> CloneDataSourceAsyncHandler; - typedef Outcome GetJobRunningTimeStatisticInfoOutcome; - typedef std::future GetJobRunningTimeStatisticInfoOutcomeCallable; - typedef std::function&)> GetJobRunningTimeStatisticInfoAsyncHandler; - typedef Outcome ListFlowProjectClusterSettingOutcome; - typedef std::future ListFlowProjectClusterSettingOutcomeCallable; - typedef std::function&)> ListFlowProjectClusterSettingAsyncHandler; typedef Outcome DescribeFlowProjectClusterSettingOutcome; typedef std::future DescribeFlowProjectClusterSettingOutcomeCallable; typedef std::function&)> DescribeFlowProjectClusterSettingAsyncHandler; typedef Outcome SyncDataSourceSchemaTableOutcome; typedef std::future SyncDataSourceSchemaTableOutcomeCallable; typedef std::function&)> SyncDataSourceSchemaTableAsyncHandler; - typedef Outcome ListJobExecutionInstancesOutcome; - typedef std::future ListJobExecutionInstancesOutcomeCallable; - typedef std::function&)> ListJobExecutionInstancesAsyncHandler; typedef Outcome TerminateClusterOperationOutcome; typedef std::future TerminateClusterOperationOutcomeCallable; typedef std::function&)> TerminateClusterOperationAsyncHandler; - typedef Outcome ListSlsLogstoreInfoOutcome; - typedef std::future ListSlsLogstoreInfoOutcomeCallable; - typedef std::function&)> ListSlsLogstoreInfoAsyncHandler; - typedef Outcome MetastoreDropTableOutcome; - typedef std::future MetastoreDropTableOutcomeCallable; - typedef std::function&)> MetastoreDropTableAsyncHandler; - typedef Outcome GetOpsCommandDetailOutcome; - typedef std::future GetOpsCommandDetailOutcomeCallable; - typedef std::function&)> GetOpsCommandDetailAsyncHandler; - typedef Outcome ListClusterServiceOutcome; - typedef std::future ListClusterServiceOutcomeCallable; - typedef std::function&)> ListClusterServiceAsyncHandler; - typedef Outcome CreateScalingRuleOutcome; - typedef std::future CreateScalingRuleOutcomeCallable; - typedef std::function&)> CreateScalingRuleAsyncHandler; typedef Outcome CreateNavNodeOutcome; typedef std::future CreateNavNodeOutcomeCallable; typedef std::function&)> CreateNavNodeAsyncHandler; + typedef Outcome DeleteResourceUserOutcome; + typedef std::future DeleteResourceUserOutcomeCallable; + typedef std::function&)> DeleteResourceUserAsyncHandler; typedef Outcome DeleteFlowProjectOutcome; typedef std::future DeleteFlowProjectOutcomeCallable; typedef std::function&)> DeleteFlowProjectAsyncHandler; typedef Outcome ReleaseClusterOutcome; typedef std::future ReleaseClusterOutcomeCallable; typedef std::function&)> ReleaseClusterAsyncHandler; - typedef Outcome RetryCreateUserPasswordOutcome; - typedef std::future RetryCreateUserPasswordOutcomeCallable; - typedef std::function&)> RetryCreateUserPasswordAsyncHandler; typedef Outcome ListSupportedServiceNameOutcome; typedef std::future ListSupportedServiceNameOutcomeCallable; typedef std::function&)> ListSupportedServiceNameAsyncHandler; + typedef Outcome RetryCreateUserPasswordOutcome; + typedef std::future RetryCreateUserPasswordOutcomeCallable; + typedef std::function&)> RetryCreateUserPasswordAsyncHandler; + typedef Outcome PlanHostNameOutcome; + typedef std::future PlanHostNameOutcomeCallable; + typedef std::function&)> PlanHostNameAsyncHandler; typedef Outcome ListJobInstanceWorkersOutcome; typedef std::future ListJobInstanceWorkersOutcomeCallable; typedef std::function&)> ListJobInstanceWorkersAsyncHandler; - typedef Outcome DeleteNoteOutcome; - typedef std::future DeleteNoteOutcomeCallable; - typedef std::function&)> DeleteNoteAsyncHandler; - typedef Outcome ListFlowClusterAllHostsOutcome; - typedef std::future ListFlowClusterAllHostsOutcomeCallable; - typedef std::function&)> ListFlowClusterAllHostsAsyncHandler; + typedef Outcome ModifyHostPoolOutcome; + typedef std::future ModifyHostPoolOutcomeCallable; + typedef std::function&)> ModifyHostPoolAsyncHandler; typedef Outcome MigrateClusterHostGroupHostOutcome; typedef std::future MigrateClusterHostGroupHostOutcomeCallable; typedef std::function&)> MigrateClusterHostGroupHostAsyncHandler; - typedef Outcome GetLogHistogramOutcome; - typedef std::future GetLogHistogramOutcomeCallable; - typedef std::function&)> GetLogHistogramAsyncHandler; - typedef Outcome MetastoreDeleteDataResourceOutcome; - typedef std::future MetastoreDeleteDataResourceOutcomeCallable; - typedef std::function&)> MetastoreDeleteDataResourceAsyncHandler; - typedef Outcome DeleteResourceQueueOutcome; - typedef std::future DeleteResourceQueueOutcomeCallable; - typedef std::function&)> DeleteResourceQueueAsyncHandler; - typedef Outcome DescribeClusterResourcePoolSchedulerTypeOutcome; - typedef std::future DescribeClusterResourcePoolSchedulerTypeOutcomeCallable; - typedef std::function&)> DescribeClusterResourcePoolSchedulerTypeAsyncHandler; - typedef Outcome DescribeFlowCategoryTreeOutcome; - typedef std::future DescribeFlowCategoryTreeOutcomeCallable; - typedef std::function&)> DescribeFlowCategoryTreeAsyncHandler; typedef Outcome ListServiceLogOutcome; typedef std::future ListServiceLogOutcomeCallable; typedef std::function&)> ListServiceLogAsyncHandler; - typedef Outcome ListFlowNodeSqlResultOutcome; - typedef std::future ListFlowNodeSqlResultOutcomeCallable; - typedef std::function&)> ListFlowNodeSqlResultAsyncHandler; - typedef Outcome ModifyFlowForWebOutcome; - typedef std::future ModifyFlowForWebOutcomeCallable; - typedef std::function&)> ModifyFlowForWebAsyncHandler; - typedef Outcome RunNoteParagraphsOutcome; - typedef std::future RunNoteParagraphsOutcomeCallable; - typedef std::function&)> RunNoteParagraphsAsyncHandler; - typedef Outcome ListJobExecutionPlanParamsOutcome; - typedef std::future ListJobExecutionPlanParamsOutcomeCallable; - typedef std::function&)> ListJobExecutionPlanParamsAsyncHandler; - typedef Outcome DescribeFlowNodeInstanceContainerLogOutcome; - typedef std::future DescribeFlowNodeInstanceContainerLogOutcomeCallable; - typedef std::function&)> DescribeFlowNodeInstanceContainerLogAsyncHandler; + typedef Outcome DescribeFlowCategoryTreeOutcome; + typedef std::future DescribeFlowCategoryTreeOutcomeCallable; + typedef std::function&)> DescribeFlowCategoryTreeAsyncHandler; + typedef Outcome GetBackPlanInfoOutcome; + typedef std::future GetBackPlanInfoOutcomeCallable; + typedef std::function&)> GetBackPlanInfoAsyncHandler; typedef Outcome CancelETLJobReleaseOutcome; typedef std::future CancelETLJobReleaseOutcomeCallable; typedef std::function&)> CancelETLJobReleaseAsyncHandler; + typedef Outcome ListStackOutcome; + typedef std::future ListStackOutcomeCallable; + typedef std::function&)> ListStackAsyncHandler; typedef Outcome ListClusterTagOutcome; typedef std::future ListClusterTagOutcomeCallable; typedef std::function&)> ListClusterTagAsyncHandler; - typedef Outcome GetUserOutputStatisticInfoOutcome; - typedef std::future GetUserOutputStatisticInfoOutcomeCallable; - typedef std::function&)> GetUserOutputStatisticInfoAsyncHandler; typedef Outcome ModifyJobExecutionPlanFolderOutcome; typedef std::future ModifyJobExecutionPlanFolderOutcomeCallable; typedef std::function&)> ModifyJobExecutionPlanFolderAsyncHandler; - typedef Outcome DescribeClusterBasicInfoOutcome; - typedef std::future DescribeClusterBasicInfoOutcomeCallable; - typedef std::function&)> DescribeClusterBasicInfoAsyncHandler; - typedef Outcome GetOpsCommandResultOutcome; - typedef std::future GetOpsCommandResultOutcomeCallable; - typedef std::function&)> GetOpsCommandResultAsyncHandler; - typedef Outcome ListEmrAvailableConfigOutcome; - typedef std::future ListEmrAvailableConfigOutcomeCallable; - typedef std::function&)> ListEmrAvailableConfigAsyncHandler; typedef Outcome ModifyAlertUserGroupOutcome; typedef std::future ModifyAlertUserGroupOutcomeCallable; typedef std::function&)> ModifyAlertUserGroupAsyncHandler; typedef Outcome MetastoreListDatabasesOutcome; typedef std::future MetastoreListDatabasesOutcomeCallable; typedef std::function&)> MetastoreListDatabasesAsyncHandler; - typedef Outcome ListAlertUserGroupOutcome; - typedef std::future ListAlertUserGroupOutcomeCallable; - typedef std::function&)> ListAlertUserGroupAsyncHandler; typedef Outcome ModifyResourceQueueOutcome; typedef std::future ModifyResourceQueueOutcomeCallable; typedef std::function&)> ModifyResourceQueueAsyncHandler; - typedef Outcome MetastoreSearchTablesOutcome; - typedef std::future MetastoreSearchTablesOutcomeCallable; - typedef std::function&)> MetastoreSearchTablesAsyncHandler; - typedef Outcome ListFlowClusterOutcome; - typedef std::future ListFlowClusterOutcomeCallable; - typedef std::function&)> ListFlowClusterAsyncHandler; typedef Outcome DescribeSecurityGroupAttributeOutcome; typedef std::future DescribeSecurityGroupAttributeOutcomeCallable; typedef std::function&)> DescribeSecurityGroupAttributeAsyncHandler; - typedef Outcome DeleteUserOutcome; - typedef std::future DeleteUserOutcomeCallable; - typedef std::function&)> DeleteUserAsyncHandler; typedef Outcome ListFlowCategoryOutcome; typedef std::future ListFlowCategoryOutcomeCallable; typedef std::function&)> ListFlowCategoryAsyncHandler; - typedef Outcome ModifyJobExecutionPlanParamOutcome; - typedef std::future ModifyJobExecutionPlanParamOutcomeCallable; - typedef std::function&)> ModifyJobExecutionPlanParamAsyncHandler; - typedef Outcome ResizeClusterV2Outcome; - typedef std::future ResizeClusterV2OutcomeCallable; - typedef std::function&)> ResizeClusterV2AsyncHandler; typedef Outcome DescribeExecutionPlanOutcome; typedef std::future DescribeExecutionPlanOutcomeCallable; typedef std::function&)> DescribeExecutionPlanAsyncHandler; typedef Outcome CreateFlowProjectUserOutcome; typedef std::future CreateFlowProjectUserOutcomeCallable; typedef std::function&)> CreateFlowProjectUserAsyncHandler; - typedef Outcome CreateFlowCategoryOutcome; - typedef std::future CreateFlowCategoryOutcomeCallable; - typedef std::function&)> CreateFlowCategoryAsyncHandler; typedef Outcome DeleteFlowProjectClusterSettingOutcome; typedef std::future DeleteFlowProjectClusterSettingOutcomeCallable; typedef std::function&)> DeleteFlowProjectClusterSettingAsyncHandler; + typedef Outcome DescribeUserGroupOutcome; + typedef std::future DescribeUserGroupOutcomeCallable; + typedef std::function&)> DescribeUserGroupAsyncHandler; typedef Outcome DeleteExecutionPlanOutcome; typedef std::future DeleteExecutionPlanOutcomeCallable; typedef std::function&)> DeleteExecutionPlanAsyncHandler; - typedef Outcome ListClusterServiceCustomActionSupportConfigOutcome; - typedef std::future ListClusterServiceCustomActionSupportConfigOutcomeCallable; - typedef std::function&)> ListClusterServiceCustomActionSupportConfigAsyncHandler; - typedef Outcome MetastoreDescribeTableOutcome; - typedef std::future MetastoreDescribeTableOutcomeCallable; - typedef std::function&)> MetastoreDescribeTableAsyncHandler; - typedef Outcome GetLogDownloadUrlOutcome; - typedef std::future GetLogDownloadUrlOutcomeCallable; - typedef std::function&)> GetLogDownloadUrlAsyncHandler; - typedef Outcome ModifyFlowOutcome; - typedef std::future ModifyFlowOutcomeCallable; - typedef std::function&)> ModifyFlowAsyncHandler; - typedef Outcome DescribeScalingRuleOutcome; - typedef std::future DescribeScalingRuleOutcomeCallable; - typedef std::function&)> DescribeScalingRuleAsyncHandler; + typedef Outcome UpdateUserGroupOutcome; + typedef std::future UpdateUserGroupOutcomeCallable; + typedef std::function&)> UpdateUserGroupAsyncHandler; typedef Outcome RunParagraphOutcome; typedef std::future RunParagraphOutcomeCallable; typedef std::function&)> RunParagraphAsyncHandler; typedef Outcome SyncDataSourceSchemaDatabaseOutcome; typedef std::future SyncDataSourceSchemaDatabaseOutcomeCallable; typedef std::function&)> SyncDataSourceSchemaDatabaseAsyncHandler; - typedef Outcome CreateUserStatisticsOutcome; - typedef std::future CreateUserStatisticsOutcomeCallable; - typedef std::function&)> CreateUserStatisticsAsyncHandler; typedef Outcome DescribeClusterServiceConfigOutcome; typedef std::future DescribeClusterServiceConfigOutcomeCallable; typedef std::function&)> DescribeClusterServiceConfigAsyncHandler; - typedef Outcome ModifyFlowProjectClusterSettingOutcome; - typedef std::future ModifyFlowProjectClusterSettingOutcomeCallable; - typedef std::function&)> ModifyFlowProjectClusterSettingAsyncHandler; - typedef Outcome DeleteJobOutcome; - typedef std::future DeleteJobOutcomeCallable; - typedef std::function&)> DeleteJobAsyncHandler; typedef Outcome ModifyExecutionPlanClusterInfoOutcome; typedef std::future ModifyExecutionPlanClusterInfoOutcomeCallable; typedef std::function&)> ModifyExecutionPlanClusterInfoAsyncHandler; - typedef Outcome ModifyClusterNameOutcome; - typedef std::future ModifyClusterNameOutcomeCallable; - typedef std::function&)> ModifyClusterNameAsyncHandler; - typedef Outcome MetastoreListTablesOutcome; - typedef std::future MetastoreListTablesOutcomeCallable; - typedef std::function&)> MetastoreListTablesAsyncHandler; + typedef Outcome ListUsersByConditionOutcome; + typedef std::future ListUsersByConditionOutcomeCallable; + typedef std::function&)> ListUsersByConditionAsyncHandler; typedef Outcome ListClusterOperationHostTaskOutcome; typedef std::future ListClusterOperationHostTaskOutcomeCallable; typedef std::function&)> ListClusterOperationHostTaskAsyncHandler; @@ -1521,33 +1386,633 @@ namespace AlibabaCloud typedef Outcome ListRequiredServiceOutcome; typedef std::future ListRequiredServiceOutcomeCallable; typedef std::function&)> ListRequiredServiceAsyncHandler; + typedef Outcome ListBackupPlansOutcome; + typedef std::future ListBackupPlansOutcomeCallable; + typedef std::function&)> ListBackupPlansAsyncHandler; typedef Outcome ListFlowProjectUserOutcome; typedef std::future ListFlowProjectUserOutcomeCallable; typedef std::function&)> ListFlowProjectUserAsyncHandler; typedef Outcome SuspendExecutionPlanSchedulerOutcome; typedef std::future SuspendExecutionPlanSchedulerOutcomeCallable; typedef std::function&)> SuspendExecutionPlanSchedulerAsyncHandler; + typedef Outcome DeleteUserGroupOutcome; + typedef std::future DeleteUserGroupOutcomeCallable; + typedef std::function&)> DeleteUserGroupAsyncHandler; + typedef Outcome DeleteClusterHostGroupOutcome; + typedef std::future DeleteClusterHostGroupOutcomeCallable; + typedef std::function&)> DeleteClusterHostGroupAsyncHandler; + typedef Outcome DescribeDataSourceSchemaTableOutcome; + typedef std::future DescribeDataSourceSchemaTableOutcomeCallable; + typedef std::function&)> DescribeDataSourceSchemaTableAsyncHandler; + typedef Outcome OperateExistsNodeClusterOutcome; + typedef std::future OperateExistsNodeClusterOutcomeCallable; + typedef std::function&)> OperateExistsNodeClusterAsyncHandler; + typedef Outcome DescribeDataSourceCommandOutcome; + typedef std::future DescribeDataSourceCommandOutcomeCallable; + typedef std::function&)> DescribeDataSourceCommandAsyncHandler; + typedef Outcome ListUsersOutcome; + typedef std::future ListUsersOutcomeCallable; + typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome ListResourcePoolOutcome; + typedef std::future ListResourcePoolOutcomeCallable; + typedef std::function&)> ListResourcePoolAsyncHandler; + typedef Outcome ListFlowClusterHostOutcome; + typedef std::future ListFlowClusterHostOutcomeCallable; + typedef std::function&)> ListFlowClusterHostAsyncHandler; + typedef Outcome KillFlowOutcome; + typedef std::future KillFlowOutcomeCallable; + typedef std::function&)> KillFlowAsyncHandler; + typedef Outcome RunOpsCommandOutcome; + typedef std::future RunOpsCommandOutcomeCallable; + typedef std::function&)> RunOpsCommandAsyncHandler; + typedef Outcome ModifyExecutionPlanJobInfoOutcome; + typedef std::future ModifyExecutionPlanJobInfoOutcomeCallable; + typedef std::function&)> ModifyExecutionPlanJobInfoAsyncHandler; + typedef Outcome DeleteClusterTemplateOutcome; + typedef std::future DeleteClusterTemplateOutcomeCallable; + typedef std::function&)> DeleteClusterTemplateAsyncHandler; + typedef Outcome ListKafkaTopicStatisticsOutcome; + typedef std::future ListKafkaTopicStatisticsOutcomeCallable; + typedef std::function&)> ListKafkaTopicStatisticsAsyncHandler; + typedef Outcome QueryInfoByTokenOutcome; + typedef std::future QueryInfoByTokenOutcomeCallable; + typedef std::function&)> QueryInfoByTokenAsyncHandler; + typedef Outcome ListDataSourceSchemaTableOutcome; + typedef std::future ListDataSourceSchemaTableOutcomeCallable; + typedef std::function&)> ListDataSourceSchemaTableAsyncHandler; + typedef Outcome CreateJobOutcome; + typedef std::future CreateJobOutcomeCallable; + typedef std::function&)> CreateJobAsyncHandler; + typedef Outcome GetBackInfoOutcome; + typedef std::future GetBackInfoOutcomeCallable; + typedef std::function&)> GetBackInfoAsyncHandler; + typedef Outcome AttachClusterForNoteOutcome; + typedef std::future AttachClusterForNoteOutcomeCallable; + typedef std::function&)> AttachClusterForNoteAsyncHandler; + typedef Outcome ListExecutionPlansOutcome; + typedef std::future ListExecutionPlansOutcomeCallable; + typedef std::function&)> ListExecutionPlansAsyncHandler; + typedef Outcome ListJobMigrateInfoOutcome; + typedef std::future ListJobMigrateInfoOutcomeCallable; + typedef std::function&)> ListJobMigrateInfoAsyncHandler; + typedef Outcome CloneFlowOutcome; + typedef std::future CloneFlowOutcomeCallable; + typedef std::function&)> CloneFlowAsyncHandler; + typedef Outcome ListEmrMainVersionOutcome; + typedef std::future ListEmrMainVersionOutcomeCallable; + typedef std::function&)> ListEmrMainVersionAsyncHandler; + typedef Outcome CreateClusterTemplateOutcome; + typedef std::future CreateClusterTemplateOutcomeCallable; + typedef std::function&)> CreateClusterTemplateAsyncHandler; + typedef Outcome RestoreBackupOutcome; + typedef std::future RestoreBackupOutcomeCallable; + typedef std::function&)> RestoreBackupAsyncHandler; + typedef Outcome ListAlertContactsOutcome; + typedef std::future ListAlertContactsOutcomeCallable; + typedef std::function&)> ListAlertContactsAsyncHandler; + typedef Outcome ListSupportedServiceNameForAdminOutcome; + typedef std::future ListSupportedServiceNameForAdminOutcomeCallable; + typedef std::function&)> ListSupportedServiceNameForAdminAsyncHandler; + typedef Outcome ReassignKafkaOutcome; + typedef std::future ReassignKafkaOutcomeCallable; + typedef std::function&)> ReassignKafkaAsyncHandler; + typedef Outcome GetHdfsCapacityStatisticInfoOutcome; + typedef std::future GetHdfsCapacityStatisticInfoOutcomeCallable; + typedef std::function&)> GetHdfsCapacityStatisticInfoAsyncHandler; + typedef Outcome DescribeClusterServiceConfigTagForAdminOutcome; + typedef std::future DescribeClusterServiceConfigTagForAdminOutcomeCallable; + typedef std::function&)> DescribeClusterServiceConfigTagForAdminAsyncHandler; + typedef Outcome ResumeExecutionPlanSchedulerOutcome; + typedef std::future ResumeExecutionPlanSchedulerOutcomeCallable; + typedef std::function&)> ResumeExecutionPlanSchedulerAsyncHandler; + typedef Outcome ListJobsOutcome; + typedef std::future ListJobsOutcomeCallable; + typedef std::function&)> ListJobsAsyncHandler; + typedef Outcome ListEmrAvailableResourceOutcome; + typedef std::future ListEmrAvailableResourceOutcomeCallable; + typedef std::function&)> ListEmrAvailableResourceAsyncHandler; + typedef Outcome ModifyHpHostOutcome; + typedef std::future ModifyHpHostOutcomeCallable; + typedef std::function&)> ModifyHpHostAsyncHandler; + typedef Outcome ReleaseETLJobOutcome; + typedef std::future ReleaseETLJobOutcomeCallable; + typedef std::function&)> ReleaseETLJobAsyncHandler; + typedef Outcome DescribeClusterServiceConfigTagOutcome; + typedef std::future DescribeClusterServiceConfigTagOutcomeCallable; + typedef std::function&)> DescribeClusterServiceConfigTagAsyncHandler; + typedef Outcome RunClusterServiceActionOutcome; + typedef std::future RunClusterServiceActionOutcomeCallable; + typedef std::function&)> RunClusterServiceActionAsyncHandler; + typedef Outcome SuspendFlowOutcome; + typedef std::future SuspendFlowOutcomeCallable; + typedef std::function&)> SuspendFlowAsyncHandler; + typedef Outcome ListClusterSupportServiceOutcome; + typedef std::future ListClusterSupportServiceOutcomeCallable; + typedef std::function&)> ListClusterSupportServiceAsyncHandler; + typedef Outcome AuthorizeSecurityGroupOutcome; + typedef std::future AuthorizeSecurityGroupOutcomeCallable; + typedef std::function&)> AuthorizeSecurityGroupAsyncHandler; + typedef Outcome ModifyClusterTemplateOutcome; + typedef std::future ModifyClusterTemplateOutcomeCallable; + typedef std::function&)> ModifyClusterTemplateAsyncHandler; + typedef Outcome CreateClusterWithHostPoolOutcome; + typedef std::future CreateClusterWithHostPoolOutcomeCallable; + typedef std::function&)> CreateClusterWithHostPoolAsyncHandler; + typedef Outcome ContextQueryLogOutcome; + typedef std::future ContextQueryLogOutcomeCallable; + typedef std::function&)> ContextQueryLogAsyncHandler; + typedef Outcome ListClusterOperationHostOutcome; + typedef std::future ListClusterOperationHostOutcomeCallable; + typedef std::function&)> ListClusterOperationHostAsyncHandler; + typedef Outcome ListScalingRuleOutcome; + typedef std::future ListScalingRuleOutcomeCallable; + typedef std::function&)> ListScalingRuleAsyncHandler; + typedef Outcome DeleteFlowOutcome; + typedef std::future DeleteFlowOutcomeCallable; + typedef std::function&)> DeleteFlowAsyncHandler; + typedef Outcome DeleteDataSourceOutcome; + typedef std::future DeleteDataSourceOutcomeCallable; + typedef std::function&)> DeleteDataSourceAsyncHandler; + typedef Outcome RunETLJobOutcome; + typedef std::future RunETLJobOutcomeCallable; + typedef std::function&)> RunETLJobAsyncHandler; + typedef Outcome ListFlowProjectOutcome; + typedef std::future ListFlowProjectOutcomeCallable; + typedef std::function&)> ListFlowProjectAsyncHandler; + typedef Outcome ListClusterServiceComponentHealthInfoOutcome; + typedef std::future ListClusterServiceComponentHealthInfoOutcomeCallable; + typedef std::function&)> ListClusterServiceComponentHealthInfoAsyncHandler; + typedef Outcome CreateHostPoolOutcome; + typedef std::future CreateHostPoolOutcomeCallable; + typedef std::function&)> CreateHostPoolAsyncHandler; + typedef Outcome ModifyAlertDingDingGroupOutcome; + typedef std::future ModifyAlertDingDingGroupOutcomeCallable; + typedef std::function&)> ModifyAlertDingDingGroupAsyncHandler; + typedef Outcome ListFlowJobHistoryOutcome; + typedef std::future ListFlowJobHistoryOutcomeCallable; + typedef std::function&)> ListFlowJobHistoryAsyncHandler; + typedef Outcome CreateETLJobOutcome; + typedef std::future CreateETLJobOutcomeCallable; + typedef std::function&)> CreateETLJobAsyncHandler; + typedef Outcome CreateClusterScriptOutcome; + typedef std::future CreateClusterScriptOutcomeCallable; + typedef std::function&)> CreateClusterScriptAsyncHandler; + typedef Outcome SubmitFlowOutcome; + typedef std::future SubmitFlowOutcomeCallable; + typedef std::function&)> SubmitFlowAsyncHandler; + typedef Outcome ResumeFlowOutcome; + typedef std::future ResumeFlowOutcomeCallable; + typedef std::function&)> ResumeFlowAsyncHandler; + typedef Outcome DeleteFlowProjectByIdOutcome; + typedef std::future DeleteFlowProjectByIdOutcomeCallable; + typedef std::function&)> DeleteFlowProjectByIdAsyncHandler; + typedef Outcome OfflineKafkaBrokerOutcome; + typedef std::future OfflineKafkaBrokerOutcomeCallable; + typedef std::function&)> OfflineKafkaBrokerAsyncHandler; + typedef Outcome DescribeParagraphOutcome; + typedef std::future DescribeParagraphOutcomeCallable; + typedef std::function&)> DescribeParagraphAsyncHandler; + typedef Outcome MetastoreCreateDatabaseOutcome; + typedef std::future MetastoreCreateDatabaseOutcomeCallable; + typedef std::function&)> MetastoreCreateDatabaseAsyncHandler; + typedef Outcome DeleteFlowJobOutcome; + typedef std::future DeleteFlowJobOutcomeCallable; + typedef std::function&)> DeleteFlowJobAsyncHandler; + typedef Outcome RefreshClusterResourcePoolOutcome; + typedef std::future RefreshClusterResourcePoolOutcomeCallable; + typedef std::function&)> RefreshClusterResourcePoolAsyncHandler; + typedef Outcome UpdateKafkaReassignParamOutcome; + typedef std::future UpdateKafkaReassignParamOutcomeCallable; + typedef std::function&)> UpdateKafkaReassignParamAsyncHandler; + typedef Outcome ModifyJobOutcome; + typedef std::future ModifyJobOutcomeCallable; + typedef std::function&)> ModifyJobAsyncHandler; + typedef Outcome DescribeFlowJobOutcome; + typedef std::future DescribeFlowJobOutcomeCallable; + typedef std::function&)> DescribeFlowJobAsyncHandler; + typedef Outcome GetMetadataTypeListOutcome; + typedef std::future GetMetadataTypeListOutcomeCallable; + typedef std::function&)> GetMetadataTypeListAsyncHandler; + typedef Outcome MetastoreRetryTaskOutcome; + typedef std::future MetastoreRetryTaskOutcomeCallable; + typedef std::function&)> MetastoreRetryTaskAsyncHandler; + typedef Outcome RerunFlowOutcome; + typedef std::future RerunFlowOutcomeCallable; + typedef std::function&)> RerunFlowAsyncHandler; + typedef Outcome CreateBackupOutcome; + typedef std::future CreateBackupOutcomeCallable; + typedef std::function&)> CreateBackupAsyncHandler; + typedef Outcome ListKafkaReassignOutcome; + typedef std::future ListKafkaReassignOutcomeCallable; + typedef std::function&)> ListKafkaReassignAsyncHandler; + typedef Outcome DescribeClusterV2Outcome; + typedef std::future DescribeClusterV2OutcomeCallable; + typedef std::function&)> DescribeClusterV2AsyncHandler; + typedef Outcome ResizeClusterWithHostPoolOutcome; + typedef std::future ResizeClusterWithHostPoolOutcomeCallable; + typedef std::function&)> ResizeClusterWithHostPoolAsyncHandler; + typedef Outcome CreateFlowProjectClusterSettingOutcome; + typedef std::future CreateFlowProjectClusterSettingOutcomeCallable; + typedef std::function&)> CreateFlowProjectClusterSettingAsyncHandler; + typedef Outcome ListClusterScriptsOutcome; + typedef std::future ListClusterScriptsOutcomeCallable; + typedef std::function&)> ListClusterScriptsAsyncHandler; + typedef Outcome DescribeFlowInstanceOutcome; + typedef std::future DescribeFlowInstanceOutcomeCallable; + typedef std::function&)> DescribeFlowInstanceAsyncHandler; + typedef Outcome DeleteUserResourceRoleOutcome; + typedef std::future DeleteUserResourceRoleOutcomeCallable; + typedef std::function&)> DeleteUserResourceRoleAsyncHandler; + typedef Outcome ListETLJobReleaseOutcome; + typedef std::future ListETLJobReleaseOutcomeCallable; + typedef std::function&)> ListETLJobReleaseAsyncHandler; + typedef Outcome CreateAlertContactOutcome; + typedef std::future CreateAlertContactOutcomeCallable; + typedef std::function&)> CreateAlertContactAsyncHandler; + typedef Outcome MetastoreModifyDataResourceOutcome; + typedef std::future MetastoreModifyDataResourceOutcomeCallable; + typedef std::function&)> MetastoreModifyDataResourceAsyncHandler; + typedef Outcome ListExecutePlanMigrateInfoOutcome; + typedef std::future ListExecutePlanMigrateInfoOutcomeCallable; + typedef std::function&)> ListExecutePlanMigrateInfoAsyncHandler; + typedef Outcome ResumeExecutionPlanInstanceOutcome; + typedef std::future ResumeExecutionPlanInstanceOutcomeCallable; + typedef std::function&)> ResumeExecutionPlanInstanceAsyncHandler; + typedef Outcome CreateParagraphOutcome; + typedef std::future CreateParagraphOutcomeCallable; + typedef std::function&)> CreateParagraphAsyncHandler; + typedef Outcome GetOpsCommandResultOnceOutcome; + typedef std::future GetOpsCommandResultOnceOutcomeCallable; + typedef std::function&)> GetOpsCommandResultOnceAsyncHandler; + typedef Outcome AddHpHostOutcome; + typedef std::future AddHpHostOutcomeCallable; + typedef std::function&)> AddHpHostAsyncHandler; + typedef Outcome ListClusterServiceConfigHistoryForAdminOutcome; + typedef std::future ListClusterServiceConfigHistoryForAdminOutcomeCallable; + typedef std::function&)> ListClusterServiceConfigHistoryForAdminAsyncHandler; + typedef Outcome GetJobInputStatisticInfoOutcome; + typedef std::future GetJobInputStatisticInfoOutcomeCallable; + typedef std::function&)> GetJobInputStatisticInfoAsyncHandler; + typedef Outcome DeleteFlowProjectUserOutcome; + typedef std::future DeleteFlowProjectUserOutcomeCallable; + typedef std::function&)> DeleteFlowProjectUserAsyncHandler; + typedef Outcome ListDependedServiceOutcome; + typedef std::future ListDependedServiceOutcomeCallable; + typedef std::function&)> ListDependedServiceAsyncHandler; + typedef Outcome DeleteAlertContactsOutcome; + typedef std::future DeleteAlertContactsOutcomeCallable; + typedef std::function&)> DeleteAlertContactsAsyncHandler; + typedef Outcome CreateClusterV2Outcome; + typedef std::future CreateClusterV2OutcomeCallable; + typedef std::function&)> CreateClusterV2AsyncHandler; + typedef Outcome PlanComponentTopoOutcome; + typedef std::future PlanComponentTopoOutcomeCallable; + typedef std::function&)> PlanComponentTopoAsyncHandler; + typedef Outcome ListClusterHostOutcome; + typedef std::future ListClusterHostOutcomeCallable; + typedef std::function&)> ListClusterHostAsyncHandler; + typedef Outcome DescribeClusterServiceOutcome; + typedef std::future DescribeClusterServiceOutcomeCallable; + typedef std::function&)> DescribeClusterServiceAsyncHandler; + typedef Outcome RenderResourcePoolXmlForAdminOutcome; + typedef std::future RenderResourcePoolXmlForAdminOutcomeCallable; + typedef std::function&)> RenderResourcePoolXmlForAdminAsyncHandler; + typedef Outcome ListApmApplicationOutcome; + typedef std::future ListApmApplicationOutcomeCallable; + typedef std::function&)> ListApmApplicationAsyncHandler; + typedef Outcome MetastoreCreateTableOutcome; + typedef std::future MetastoreCreateTableOutcomeCallable; + typedef std::function&)> MetastoreCreateTableAsyncHandler; + typedef Outcome CommonApiWhiteListOutcome; + typedef std::future CommonApiWhiteListOutcomeCallable; + typedef std::function&)> CommonApiWhiteListAsyncHandler; + typedef Outcome CreateFlowForWebOutcome; + typedef std::future CreateFlowForWebOutcomeCallable; + typedef std::function&)> CreateFlowForWebAsyncHandler; + typedef Outcome QuerySlsMetricDataOutcome; + typedef std::future QuerySlsMetricDataOutcomeCallable; + typedef std::function&)> QuerySlsMetricDataAsyncHandler; + typedef Outcome MetastoreListKafkaTopicOutcome; + typedef std::future MetastoreListKafkaTopicOutcomeCallable; + typedef std::function&)> MetastoreListKafkaTopicAsyncHandler; + typedef Outcome DescribeJobOutcome; + typedef std::future DescribeJobOutcomeCallable; + typedef std::function&)> DescribeJobAsyncHandler; + typedef Outcome ListKafkaReassignTopicOutcome; + typedef std::future ListKafkaReassignTopicOutcomeCallable; + typedef std::function&)> ListKafkaReassignTopicAsyncHandler; + typedef Outcome ModifyClusterServiceConfigForAdminOutcome; + typedef std::future ModifyClusterServiceConfigForAdminOutcomeCallable; + typedef std::function&)> ModifyClusterServiceConfigForAdminAsyncHandler; + typedef Outcome ModifyFlowProjectOutcome; + typedef std::future ModifyFlowProjectOutcomeCallable; + typedef std::function&)> ModifyFlowProjectAsyncHandler; + typedef Outcome ListFlowOutcome; + typedef std::future ListFlowOutcomeCallable; + typedef std::function&)> ListFlowAsyncHandler; + typedef Outcome ListResourceQueueOutcome; + typedef std::future ListResourceQueueOutcomeCallable; + typedef std::function&)> ListResourceQueueAsyncHandler; + typedef Outcome ListClusterTagForAdminOutcome; + typedef std::future ListClusterTagForAdminOutcomeCallable; + typedef std::function&)> ListClusterTagForAdminAsyncHandler; + typedef Outcome KillExecutionPlanInstanceOutcome; + typedef std::future KillExecutionPlanInstanceOutcomeCallable; + typedef std::function&)> KillExecutionPlanInstanceAsyncHandler; + typedef Outcome DeleteFlowCategoryOutcome; + typedef std::future DeleteFlowCategoryOutcomeCallable; + typedef std::function&)> DeleteFlowCategoryAsyncHandler; + typedef Outcome PageListUserGroupsOutcome; + typedef std::future PageListUserGroupsOutcomeCallable; + typedef std::function&)> PageListUserGroupsAsyncHandler; + typedef Outcome ListResourcePoolForAdminOutcome; + typedef std::future ListResourcePoolForAdminOutcomeCallable; + typedef std::function&)> ListResourcePoolForAdminAsyncHandler; + typedef Outcome MigrateJobsOutcome; + typedef std::future MigrateJobsOutcomeCallable; + typedef std::function&)> MigrateJobsAsyncHandler; + typedef Outcome KillExecutionJobInstanceOutcome; + typedef std::future KillExecutionJobInstanceOutcomeCallable; + typedef std::function&)> KillExecutionJobInstanceAsyncHandler; + typedef Outcome CreateBatchUsersOutcome; + typedef std::future CreateBatchUsersOutcomeCallable; + typedef std::function&)> CreateBatchUsersAsyncHandler; + typedef Outcome ModifyExecutionPlanOutcome; + typedef std::future ModifyExecutionPlanOutcomeCallable; + typedef std::function&)> ModifyExecutionPlanAsyncHandler; + typedef Outcome AddClusterServiceOutcome; + typedef std::future AddClusterServiceOutcomeCallable; + typedef std::function&)> AddClusterServiceAsyncHandler; + typedef Outcome ListUserStatisticsOutcome; + typedef std::future ListUserStatisticsOutcomeCallable; + typedef std::function&)> ListUserStatisticsAsyncHandler; + typedef Outcome ModifyFlowCategoryOutcome; + typedef std::future ModifyFlowCategoryOutcomeCallable; + typedef std::function&)> ModifyFlowCategoryAsyncHandler; + typedef Outcome QueryAlarmRulesOutcome; + typedef std::future QueryAlarmRulesOutcomeCallable; + typedef std::function&)> QueryAlarmRulesAsyncHandler; + typedef Outcome ModifyClusterServiceConfigOutcome; + typedef std::future ModifyClusterServiceConfigOutcomeCallable; + typedef std::function&)> ModifyClusterServiceConfigAsyncHandler; + typedef Outcome MetastoreListDataResourcesOutcome; + typedef std::future MetastoreListDataResourcesOutcomeCallable; + typedef std::function&)> MetastoreListDataResourcesAsyncHandler; + typedef Outcome UpdateETLJobOutcome; + typedef std::future UpdateETLJobOutcomeCallable; + typedef std::function&)> UpdateETLJobAsyncHandler; + typedef Outcome DescribeScalingTaskGroupOutcome; + typedef std::future DescribeScalingTaskGroupOutcomeCallable; + typedef std::function&)> DescribeScalingTaskGroupAsyncHandler; + typedef Outcome DeleteHostPoolOutcome; + typedef std::future DeleteHostPoolOutcomeCallable; + typedef std::function&)> DeleteHostPoolAsyncHandler; + typedef Outcome RefreshBackupListOutcome; + typedef std::future RefreshBackupListOutcomeCallable; + typedef std::function&)> RefreshBackupListAsyncHandler; + typedef Outcome UpdateDataSourceOutcome; + typedef std::future UpdateDataSourceOutcomeCallable; + typedef std::function&)> UpdateDataSourceAsyncHandler; + typedef Outcome ListDataSourceSchemaDatabaseOutcome; + typedef std::future ListDataSourceSchemaDatabaseOutcomeCallable; + typedef std::function&)> ListDataSourceSchemaDatabaseAsyncHandler; + typedef Outcome CreateUsersOutcome; + typedef std::future CreateUsersOutcomeCallable; + typedef std::function&)> CreateUsersAsyncHandler; + typedef Outcome CheckDataSourceOutcome; + typedef std::future CheckDataSourceOutcomeCallable; + typedef std::function&)> CheckDataSourceAsyncHandler; + typedef Outcome ListScalingActivityOutcome; + typedef std::future ListScalingActivityOutcomeCallable; + typedef std::function&)> ListScalingActivityAsyncHandler; + typedef Outcome CreateNoteOutcome; + typedef std::future CreateNoteOutcomeCallable; + typedef std::function&)> CreateNoteAsyncHandler; + typedef Outcome RemoveHpHostOutcome; + typedef std::future RemoveHpHostOutcomeCallable; + typedef std::function&)> RemoveHpHostAsyncHandler; + typedef Outcome GetBackupInfoOutcome; + typedef std::future GetBackupInfoOutcomeCallable; + typedef std::function&)> GetBackupInfoAsyncHandler; + typedef Outcome DescribeHpHostOutcome; + typedef std::future DescribeHpHostOutcomeCallable; + typedef std::function&)> DescribeHpHostAsyncHandler; + typedef Outcome RetryExecutionPlanOutcome; + typedef std::future RetryExecutionPlanOutcomeCallable; + typedef std::function&)> RetryExecutionPlanAsyncHandler; + typedef Outcome ListBackupRulesOutcome; + typedef std::future ListBackupRulesOutcomeCallable; + typedef std::function&)> ListBackupRulesAsyncHandler; + typedef Outcome MetastoreListDataSourceOutcome; + typedef std::future MetastoreListDataSourceOutcomeCallable; + typedef std::function&)> MetastoreListDataSourceAsyncHandler; + typedef Outcome ListFlowNodeInstanceContainerStatusOutcome; + typedef std::future ListFlowNodeInstanceContainerStatusOutcomeCallable; + typedef std::function&)> ListFlowNodeInstanceContainerStatusAsyncHandler; + typedef Outcome GetSupportedOpsCommandOutcome; + typedef std::future GetSupportedOpsCommandOutcomeCallable; + typedef std::function&)> GetSupportedOpsCommandAsyncHandler; + typedef Outcome DescribeETLJobSqlSchemaOutcome; + typedef std::future DescribeETLJobSqlSchemaOutcomeCallable; + typedef std::function&)> DescribeETLJobSqlSchemaAsyncHandler; + typedef Outcome ListExecutionPlanInstancesOutcome; + typedef std::future ListExecutionPlanInstancesOutcomeCallable; + typedef std::function&)> ListExecutionPlanInstancesAsyncHandler; + typedef Outcome MetastoreDescribeKafkaConsumerGroupOutcome; + typedef std::future MetastoreDescribeKafkaConsumerGroupOutcomeCallable; + typedef std::function&)> MetastoreDescribeKafkaConsumerGroupAsyncHandler; + typedef Outcome MetastoreListTaskOutcome; + typedef std::future MetastoreListTaskOutcomeCallable; + typedef std::function&)> MetastoreListTaskAsyncHandler; + typedef Outcome RemoveBackupOutcome; + typedef std::future RemoveBackupOutcomeCallable; + typedef std::function&)> RemoveBackupAsyncHandler; + typedef Outcome DescribeClusterOpLogOutcome; + typedef std::future DescribeClusterOpLogOutcomeCallable; + typedef std::function&)> DescribeClusterOpLogAsyncHandler; + typedef Outcome GetQueueSubmissionStatisticInfoOutcome; + typedef std::future GetQueueSubmissionStatisticInfoOutcomeCallable; + typedef std::function&)> GetQueueSubmissionStatisticInfoAsyncHandler; + typedef Outcome CreateUserOutcome; + typedef std::future CreateUserOutcomeCallable; + typedef std::function&)> CreateUserAsyncHandler; + typedef Outcome ListDataSourceOutcome; + typedef std::future ListDataSourceOutcomeCallable; + typedef std::function&)> ListDataSourceAsyncHandler; + typedef Outcome MetastoreCreateKafkaTopicOutcome; + typedef std::future MetastoreCreateKafkaTopicOutcomeCallable; + typedef std::function&)> MetastoreCreateKafkaTopicAsyncHandler; + typedef Outcome ListETLJobInstanceOutcome; + typedef std::future ListETLJobInstanceOutcomeCallable; + typedef std::function&)> ListETLJobInstanceAsyncHandler; + typedef Outcome ModifyExecutionPlanBasicInfoOutcome; + typedef std::future ModifyExecutionPlanBasicInfoOutcomeCallable; + typedef std::function&)> ModifyExecutionPlanBasicInfoAsyncHandler; + typedef Outcome SubmitFlowJobOutcome; + typedef std::future SubmitFlowJobOutcomeCallable; + typedef std::function&)> SubmitFlowJobAsyncHandler; + typedef Outcome ListStackServiceOutcome; + typedef std::future ListStackServiceOutcomeCallable; + typedef std::function&)> ListStackServiceAsyncHandler; + typedef Outcome DescribeETLJobOutcome; + typedef std::future DescribeETLJobOutcomeCallable; + typedef std::function&)> DescribeETLJobAsyncHandler; + typedef Outcome ListClusterHostComponentOutcome; + typedef std::future ListClusterHostComponentOutcomeCallable; + typedef std::function&)> ListClusterHostComponentAsyncHandler; + typedef Outcome GetJobRunningTimeStatisticInfoOutcome; + typedef std::future GetJobRunningTimeStatisticInfoOutcomeCallable; + typedef std::function&)> GetJobRunningTimeStatisticInfoAsyncHandler; + typedef Outcome ListFlowProjectClusterSettingOutcome; + typedef std::future ListFlowProjectClusterSettingOutcomeCallable; + typedef std::function&)> ListFlowProjectClusterSettingAsyncHandler; + typedef Outcome ListJobExecutionInstancesOutcome; + typedef std::future ListJobExecutionInstancesOutcomeCallable; + typedef std::function&)> ListJobExecutionInstancesAsyncHandler; + typedef Outcome ListSlsLogstoreInfoOutcome; + typedef std::future ListSlsLogstoreInfoOutcomeCallable; + typedef std::function&)> ListSlsLogstoreInfoAsyncHandler; + typedef Outcome MetastoreDropTableOutcome; + typedef std::future MetastoreDropTableOutcomeCallable; + typedef std::function&)> MetastoreDropTableAsyncHandler; + typedef Outcome CreateScalingRuleOutcome; + typedef std::future CreateScalingRuleOutcomeCallable; + typedef std::function&)> CreateScalingRuleAsyncHandler; + typedef Outcome ListClusterServiceOutcome; + typedef std::future ListClusterServiceOutcomeCallable; + typedef std::function&)> ListClusterServiceAsyncHandler; + typedef Outcome GetOpsCommandDetailOutcome; + typedef std::future GetOpsCommandDetailOutcomeCallable; + typedef std::function&)> GetOpsCommandDetailAsyncHandler; + typedef Outcome CreateUserGroupOutcome; + typedef std::future CreateUserGroupOutcomeCallable; + typedef std::function&)> CreateUserGroupAsyncHandler; + typedef Outcome DeleteNoteOutcome; + typedef std::future DeleteNoteOutcomeCallable; + typedef std::function&)> DeleteNoteAsyncHandler; + typedef Outcome ListFlowClusterAllHostsOutcome; + typedef std::future ListFlowClusterAllHostsOutcomeCallable; + typedef std::function&)> ListFlowClusterAllHostsAsyncHandler; + typedef Outcome GetLogHistogramOutcome; + typedef std::future GetLogHistogramOutcomeCallable; + typedef std::function&)> GetLogHistogramAsyncHandler; + typedef Outcome MetastoreDeleteDataResourceOutcome; + typedef std::future MetastoreDeleteDataResourceOutcomeCallable; + typedef std::function&)> MetastoreDeleteDataResourceAsyncHandler; + typedef Outcome DeleteResourceQueueOutcome; + typedef std::future DeleteResourceQueueOutcomeCallable; + typedef std::function&)> DeleteResourceQueueAsyncHandler; + typedef Outcome DescribeClusterResourcePoolSchedulerTypeOutcome; + typedef std::future DescribeClusterResourcePoolSchedulerTypeOutcomeCallable; + typedef std::function&)> DescribeClusterResourcePoolSchedulerTypeAsyncHandler; + typedef Outcome PageListResourceUsersOutcome; + typedef std::future PageListResourceUsersOutcomeCallable; + typedef std::function&)> PageListResourceUsersAsyncHandler; + typedef Outcome ListFlowNodeSqlResultOutcome; + typedef std::future ListFlowNodeSqlResultOutcomeCallable; + typedef std::function&)> ListFlowNodeSqlResultAsyncHandler; + typedef Outcome ModifyFlowForWebOutcome; + typedef std::future ModifyFlowForWebOutcomeCallable; + typedef std::function&)> ModifyFlowForWebAsyncHandler; + typedef Outcome RunNoteParagraphsOutcome; + typedef std::future RunNoteParagraphsOutcomeCallable; + typedef std::function&)> RunNoteParagraphsAsyncHandler; + typedef Outcome ListJobExecutionPlanParamsOutcome; + typedef std::future ListJobExecutionPlanParamsOutcomeCallable; + typedef std::function&)> ListJobExecutionPlanParamsAsyncHandler; + typedef Outcome DescribeKafkaBrokerOutcome; + typedef std::future DescribeKafkaBrokerOutcomeCallable; + typedef std::function&)> DescribeKafkaBrokerAsyncHandler; + typedef Outcome DescribeFlowNodeInstanceContainerLogOutcome; + typedef std::future DescribeFlowNodeInstanceContainerLogOutcomeCallable; + typedef std::function&)> DescribeFlowNodeInstanceContainerLogAsyncHandler; + typedef Outcome GetUserOutputStatisticInfoOutcome; + typedef std::future GetUserOutputStatisticInfoOutcomeCallable; + typedef std::function&)> GetUserOutputStatisticInfoAsyncHandler; + typedef Outcome DescribeClusterBasicInfoOutcome; + typedef std::future DescribeClusterBasicInfoOutcomeCallable; + typedef std::function&)> DescribeClusterBasicInfoAsyncHandler; + typedef Outcome SaveBatchUserAccountInfoOutcome; + typedef std::future SaveBatchUserAccountInfoOutcomeCallable; + typedef std::function&)> SaveBatchUserAccountInfoAsyncHandler; + typedef Outcome GetOpsCommandResultOutcome; + typedef std::future GetOpsCommandResultOutcomeCallable; + typedef std::function&)> GetOpsCommandResultAsyncHandler; + typedef Outcome ListEmrAvailableConfigOutcome; + typedef std::future ListEmrAvailableConfigOutcomeCallable; + typedef std::function&)> ListEmrAvailableConfigAsyncHandler; + typedef Outcome ListAlertUserGroupOutcome; + typedef std::future ListAlertUserGroupOutcomeCallable; + typedef std::function&)> ListAlertUserGroupAsyncHandler; + typedef Outcome MetastoreSearchTablesOutcome; + typedef std::future MetastoreSearchTablesOutcomeCallable; + typedef std::function&)> MetastoreSearchTablesAsyncHandler; + typedef Outcome ListFlowClusterOutcome; + typedef std::future ListFlowClusterOutcomeCallable; + typedef std::function&)> ListFlowClusterAsyncHandler; + typedef Outcome DeleteUserOutcome; + typedef std::future DeleteUserOutcomeCallable; + typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome ResizeClusterV2Outcome; + typedef std::future ResizeClusterV2OutcomeCallable; + typedef std::function&)> ResizeClusterV2AsyncHandler; + typedef Outcome ModifyJobExecutionPlanParamOutcome; + typedef std::future ModifyJobExecutionPlanParamOutcomeCallable; + typedef std::function&)> ModifyJobExecutionPlanParamAsyncHandler; + typedef Outcome CreateFlowCategoryOutcome; + typedef std::future CreateFlowCategoryOutcomeCallable; + typedef std::function&)> CreateFlowCategoryAsyncHandler; + typedef Outcome DescribeUserOutcome; + typedef std::future DescribeUserOutcomeCallable; + typedef std::function&)> DescribeUserAsyncHandler; + typedef Outcome ListClusterServiceCustomActionSupportConfigOutcome; + typedef std::future ListClusterServiceCustomActionSupportConfigOutcomeCallable; + typedef std::function&)> ListClusterServiceCustomActionSupportConfigAsyncHandler; + typedef Outcome GetLogDownloadUrlOutcome; + typedef std::future GetLogDownloadUrlOutcomeCallable; + typedef std::function&)> GetLogDownloadUrlAsyncHandler; + typedef Outcome MetastoreDescribeTableOutcome; + typedef std::future MetastoreDescribeTableOutcomeCallable; + typedef std::function&)> MetastoreDescribeTableAsyncHandler; + typedef Outcome ModifyFlowOutcome; + typedef std::future ModifyFlowOutcomeCallable; + typedef std::function&)> ModifyFlowAsyncHandler; + typedef Outcome DescribeScalingRuleOutcome; + typedef std::future DescribeScalingRuleOutcomeCallable; + typedef std::function&)> DescribeScalingRuleAsyncHandler; + typedef Outcome CreateUserStatisticsOutcome; + typedef std::future CreateUserStatisticsOutcomeCallable; + typedef std::function&)> CreateUserStatisticsAsyncHandler; + typedef Outcome DeleteJobOutcome; + typedef std::future DeleteJobOutcomeCallable; + typedef std::function&)> DeleteJobAsyncHandler; + typedef Outcome ModifyFlowProjectClusterSettingOutcome; + typedef std::future ModifyFlowProjectClusterSettingOutcomeCallable; + typedef std::function&)> ModifyFlowProjectClusterSettingAsyncHandler; + typedef Outcome AddUserResourceRoleOutcome; + typedef std::future AddUserResourceRoleOutcomeCallable; + typedef std::function&)> AddUserResourceRoleAsyncHandler; + typedef Outcome ModifyClusterNameOutcome; + typedef std::future ModifyClusterNameOutcomeCallable; + typedef std::function&)> ModifyClusterNameAsyncHandler; + typedef Outcome MetastoreListTablesOutcome; + typedef std::future MetastoreListTablesOutcomeCallable; + typedef std::function&)> MetastoreListTablesAsyncHandler; typedef Outcome ModifyResourcePoolSchedulerTypeOutcome; typedef std::future ModifyResourcePoolSchedulerTypeOutcomeCallable; typedef std::function&)> ModifyResourcePoolSchedulerTypeAsyncHandler; typedef Outcome ListOpsOperationTaskOutcome; typedef std::future ListOpsOperationTaskOutcomeCallable; typedef std::function&)> ListOpsOperationTaskAsyncHandler; - typedef Outcome DeleteClusterHostGroupOutcome; - typedef std::future DeleteClusterHostGroupOutcomeCallable; - typedef std::function&)> DeleteClusterHostGroupAsyncHandler; typedef Outcome DeleteNavNodeOutcome; typedef std::future DeleteNavNodeOutcomeCallable; typedef std::function&)> DeleteNavNodeAsyncHandler; - typedef Outcome DescribeDataSourceSchemaTableOutcome; - typedef std::future DescribeDataSourceSchemaTableOutcomeCallable; - typedef std::function&)> DescribeDataSourceSchemaTableAsyncHandler; + typedef Outcome ListUserGroupsOutcome; + typedef std::future ListUserGroupsOutcomeCallable; + typedef std::function&)> ListUserGroupsAsyncHandler; typedef Outcome UpdateProjectSettingOutcome; typedef std::future UpdateProjectSettingOutcomeCallable; typedef std::function&)> UpdateProjectSettingAsyncHandler; - typedef Outcome OperateExistsNodeClusterOutcome; - typedef std::future OperateExistsNodeClusterOutcomeCallable; - typedef std::function&)> OperateExistsNodeClusterAsyncHandler; typedef Outcome DescribeNoteOutcome; typedef std::future DescribeNoteOutcomeCallable; typedef std::function&)> DescribeNoteAsyncHandler; @@ -1559,36 +2024,15 @@ namespace AlibabaCloud CreateFlowOutcome createFlow(const Model::CreateFlowRequest &request)const; void createFlowAsync(const Model::CreateFlowRequest& request, const CreateFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFlowOutcomeCallable createFlowCallable(const Model::CreateFlowRequest& request) const; - DescribeDataSourceCommandOutcome describeDataSourceCommand(const Model::DescribeDataSourceCommandRequest &request)const; - void describeDataSourceCommandAsync(const Model::DescribeDataSourceCommandRequest& request, const DescribeDataSourceCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataSourceCommandOutcomeCallable describeDataSourceCommandCallable(const Model::DescribeDataSourceCommandRequest& request) const; - ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; - void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; GetJobOutputStatisticInfoOutcome getJobOutputStatisticInfo(const Model::GetJobOutputStatisticInfoRequest &request)const; void getJobOutputStatisticInfoAsync(const Model::GetJobOutputStatisticInfoRequest& request, const GetJobOutputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetJobOutputStatisticInfoOutcomeCallable getJobOutputStatisticInfoCallable(const Model::GetJobOutputStatisticInfoRequest& request) const; - ListResourcePoolOutcome listResourcePool(const Model::ListResourcePoolRequest &request)const; - void listResourcePoolAsync(const Model::ListResourcePoolRequest& request, const ListResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListResourcePoolOutcomeCallable listResourcePoolCallable(const Model::ListResourcePoolRequest& request) const; - ListFlowClusterHostOutcome listFlowClusterHost(const Model::ListFlowClusterHostRequest &request)const; - void listFlowClusterHostAsync(const Model::ListFlowClusterHostRequest& request, const ListFlowClusterHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowClusterHostOutcomeCallable listFlowClusterHostCallable(const Model::ListFlowClusterHostRequest& request) const; - KillFlowOutcome killFlow(const Model::KillFlowRequest &request)const; - void killFlowAsync(const Model::KillFlowRequest& request, const KillFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - KillFlowOutcomeCallable killFlowCallable(const Model::KillFlowRequest& request) const; - RunOpsCommandOutcome runOpsCommand(const Model::RunOpsCommandRequest &request)const; - void runOpsCommandAsync(const Model::RunOpsCommandRequest& request, const RunOpsCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RunOpsCommandOutcomeCallable runOpsCommandCallable(const Model::RunOpsCommandRequest& request) const; + RemoveBackupPlanOutcome removeBackupPlan(const Model::RemoveBackupPlanRequest &request)const; + void removeBackupPlanAsync(const Model::RemoveBackupPlanRequest& request, const RemoveBackupPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveBackupPlanOutcomeCallable removeBackupPlanCallable(const Model::RemoveBackupPlanRequest& request) const; DescribeClusterStatisticsOutcome describeClusterStatistics(const Model::DescribeClusterStatisticsRequest &request)const; void describeClusterStatisticsAsync(const Model::DescribeClusterStatisticsRequest& request, const DescribeClusterStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterStatisticsOutcomeCallable describeClusterStatisticsCallable(const Model::DescribeClusterStatisticsRequest& request) const; - ModifyExecutionPlanJobInfoOutcome modifyExecutionPlanJobInfo(const Model::ModifyExecutionPlanJobInfoRequest &request)const; - void modifyExecutionPlanJobInfoAsync(const Model::ModifyExecutionPlanJobInfoRequest& request, const ModifyExecutionPlanJobInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyExecutionPlanJobInfoOutcomeCallable modifyExecutionPlanJobInfoCallable(const Model::ModifyExecutionPlanJobInfoRequest& request) const; - DeleteClusterTemplateOutcome deleteClusterTemplate(const Model::DeleteClusterTemplateRequest &request)const; - void deleteClusterTemplateAsync(const Model::DeleteClusterTemplateRequest& request, const DeleteClusterTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteClusterTemplateOutcomeCallable deleteClusterTemplateCallable(const Model::DeleteClusterTemplateRequest& request) const; CancelOrderOutcome cancelOrder(const Model::CancelOrderRequest &request)const; void cancelOrderAsync(const Model::CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelOrderOutcomeCallable cancelOrderCallable(const Model::CancelOrderRequest& request) const; @@ -1604,75 +2048,51 @@ namespace AlibabaCloud ListClusterServiceConfigHistoryOutcome listClusterServiceConfigHistory(const Model::ListClusterServiceConfigHistoryRequest &request)const; void listClusterServiceConfigHistoryAsync(const Model::ListClusterServiceConfigHistoryRequest& request, const ListClusterServiceConfigHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterServiceConfigHistoryOutcomeCallable listClusterServiceConfigHistoryCallable(const Model::ListClusterServiceConfigHistoryRequest& request) const; - ListDataSourceSchemaTableOutcome listDataSourceSchemaTable(const Model::ListDataSourceSchemaTableRequest &request)const; - void listDataSourceSchemaTableAsync(const Model::ListDataSourceSchemaTableRequest& request, const ListDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListDataSourceSchemaTableOutcomeCallable listDataSourceSchemaTableCallable(const Model::ListDataSourceSchemaTableRequest& request) const; - CreateJobOutcome createJob(const Model::CreateJobRequest &request)const; - void createJobAsync(const Model::CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateJobOutcomeCallable createJobCallable(const Model::CreateJobRequest& request) const; - AttachClusterForNoteOutcome attachClusterForNote(const Model::AttachClusterForNoteRequest &request)const; - void attachClusterForNoteAsync(const Model::AttachClusterForNoteRequest& request, const AttachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AttachClusterForNoteOutcomeCallable attachClusterForNoteCallable(const Model::AttachClusterForNoteRequest& request) const; + UpdateWorkspaceRepoSettingOutcome updateWorkspaceRepoSetting(const Model::UpdateWorkspaceRepoSettingRequest &request)const; + void updateWorkspaceRepoSettingAsync(const Model::UpdateWorkspaceRepoSettingRequest& request, const UpdateWorkspaceRepoSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateWorkspaceRepoSettingOutcomeCallable updateWorkspaceRepoSettingCallable(const Model::UpdateWorkspaceRepoSettingRequest& request) const; + ListClusterServiceCustomActionSupportConfigForAdminOutcome listClusterServiceCustomActionSupportConfigForAdmin(const Model::ListClusterServiceCustomActionSupportConfigForAdminRequest &request)const; + void listClusterServiceCustomActionSupportConfigForAdminAsync(const Model::ListClusterServiceCustomActionSupportConfigForAdminRequest& request, const ListClusterServiceCustomActionSupportConfigForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterServiceCustomActionSupportConfigForAdminOutcomeCallable listClusterServiceCustomActionSupportConfigForAdminCallable(const Model::ListClusterServiceCustomActionSupportConfigForAdminRequest& request) const; QueryAlarmHistoryOutcome queryAlarmHistory(const Model::QueryAlarmHistoryRequest &request)const; void queryAlarmHistoryAsync(const Model::QueryAlarmHistoryRequest& request, const QueryAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryAlarmHistoryOutcomeCallable queryAlarmHistoryCallable(const Model::QueryAlarmHistoryRequest& request) const; ListJobExecutionPlanHierarchyOutcome listJobExecutionPlanHierarchy(const Model::ListJobExecutionPlanHierarchyRequest &request)const; void listJobExecutionPlanHierarchyAsync(const Model::ListJobExecutionPlanHierarchyRequest& request, const ListJobExecutionPlanHierarchyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobExecutionPlanHierarchyOutcomeCallable listJobExecutionPlanHierarchyCallable(const Model::ListJobExecutionPlanHierarchyRequest& request) const; - ListExecutionPlansOutcome listExecutionPlans(const Model::ListExecutionPlansRequest &request)const; - void listExecutionPlansAsync(const Model::ListExecutionPlansRequest& request, const ListExecutionPlansAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListExecutionPlansOutcomeCallable listExecutionPlansCallable(const Model::ListExecutionPlansRequest& request) const; - ListJobMigrateInfoOutcome listJobMigrateInfo(const Model::ListJobMigrateInfoRequest &request)const; - void listJobMigrateInfoAsync(const Model::ListJobMigrateInfoRequest& request, const ListJobMigrateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobMigrateInfoOutcomeCallable listJobMigrateInfoCallable(const Model::ListJobMigrateInfoRequest& request) const; - CloneFlowOutcome cloneFlow(const Model::CloneFlowRequest &request)const; - void cloneFlowAsync(const Model::CloneFlowRequest& request, const CloneFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CloneFlowOutcomeCallable cloneFlowCallable(const Model::CloneFlowRequest& request) const; - ListEmrMainVersionOutcome listEmrMainVersion(const Model::ListEmrMainVersionRequest &request)const; - void listEmrMainVersionAsync(const Model::ListEmrMainVersionRequest& request, const ListEmrMainVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListEmrMainVersionOutcomeCallable listEmrMainVersionCallable(const Model::ListEmrMainVersionRequest& request) const; - CreateClusterTemplateOutcome createClusterTemplate(const Model::CreateClusterTemplateRequest &request)const; - void createClusterTemplateAsync(const Model::CreateClusterTemplateRequest& request, const CreateClusterTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateClusterTemplateOutcomeCallable createClusterTemplateCallable(const Model::CreateClusterTemplateRequest& request) const; MetastoreDropDatabaseOutcome metastoreDropDatabase(const Model::MetastoreDropDatabaseRequest &request)const; void metastoreDropDatabaseAsync(const Model::MetastoreDropDatabaseRequest& request, const MetastoreDropDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreDropDatabaseOutcomeCallable metastoreDropDatabaseCallable(const Model::MetastoreDropDatabaseRequest& request) const; - ListAlertContactsOutcome listAlertContacts(const Model::ListAlertContactsRequest &request)const; - void listAlertContactsAsync(const Model::ListAlertContactsRequest& request, const ListAlertContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlertContactsOutcomeCallable listAlertContactsCallable(const Model::ListAlertContactsRequest& request) const; - MetastoreDescribeDatabaseOutcome metastoreDescribeDatabase(const Model::MetastoreDescribeDatabaseRequest &request)const; - void metastoreDescribeDatabaseAsync(const Model::MetastoreDescribeDatabaseRequest& request, const MetastoreDescribeDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreDescribeDatabaseOutcomeCallable metastoreDescribeDatabaseCallable(const Model::MetastoreDescribeDatabaseRequest& request) const; ListFlowInstanceOutcome listFlowInstance(const Model::ListFlowInstanceRequest &request)const; void listFlowInstanceAsync(const Model::ListFlowInstanceRequest& request, const ListFlowInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFlowInstanceOutcomeCallable listFlowInstanceCallable(const Model::ListFlowInstanceRequest& request) const; + MetastoreDescribeDatabaseOutcome metastoreDescribeDatabase(const Model::MetastoreDescribeDatabaseRequest &request)const; + void metastoreDescribeDatabaseAsync(const Model::MetastoreDescribeDatabaseRequest& request, const MetastoreDescribeDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreDescribeDatabaseOutcomeCallable metastoreDescribeDatabaseCallable(const Model::MetastoreDescribeDatabaseRequest& request) const; + PageListUsersOutcome pageListUsers(const Model::PageListUsersRequest &request)const; + void pageListUsersAsync(const Model::PageListUsersRequest& request, const PageListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageListUsersOutcomeCallable pageListUsersCallable(const Model::PageListUsersRequest& request) const; + DescribeClusterServiceConfigHistoryOutcome describeClusterServiceConfigHistory(const Model::DescribeClusterServiceConfigHistoryRequest &request)const; + void describeClusterServiceConfigHistoryAsync(const Model::DescribeClusterServiceConfigHistoryRequest& request, const DescribeClusterServiceConfigHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterServiceConfigHistoryOutcomeCallable describeClusterServiceConfigHistoryCallable(const Model::DescribeClusterServiceConfigHistoryRequest& request) const; ListJobExecutionInstanceTrendOutcome listJobExecutionInstanceTrend(const Model::ListJobExecutionInstanceTrendRequest &request)const; void listJobExecutionInstanceTrendAsync(const Model::ListJobExecutionInstanceTrendRequest& request, const ListJobExecutionInstanceTrendAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobExecutionInstanceTrendOutcomeCallable listJobExecutionInstanceTrendCallable(const Model::ListJobExecutionInstanceTrendRequest& request) const; MetastoreDescribeTaskOutcome metastoreDescribeTask(const Model::MetastoreDescribeTaskRequest &request)const; void metastoreDescribeTaskAsync(const Model::MetastoreDescribeTaskRequest& request, const MetastoreDescribeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreDescribeTaskOutcomeCallable metastoreDescribeTaskCallable(const Model::MetastoreDescribeTaskRequest& request) const; - DescribeClusterServiceConfigHistoryOutcome describeClusterServiceConfigHistory(const Model::DescribeClusterServiceConfigHistoryRequest &request)const; - void describeClusterServiceConfigHistoryAsync(const Model::DescribeClusterServiceConfigHistoryRequest& request, const DescribeClusterServiceConfigHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterServiceConfigHistoryOutcomeCallable describeClusterServiceConfigHistoryCallable(const Model::DescribeClusterServiceConfigHistoryRequest& request) const; + QueryUserActionsPolicyOutcome queryUserActionsPolicy(const Model::QueryUserActionsPolicyRequest &request)const; + void queryUserActionsPolicyAsync(const Model::QueryUserActionsPolicyRequest& request, const QueryUserActionsPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryUserActionsPolicyOutcomeCallable queryUserActionsPolicyCallable(const Model::QueryUserActionsPolicyRequest& request) const; GetJobMigrateResultOutcome getJobMigrateResult(const Model::GetJobMigrateResultRequest &request)const; void getJobMigrateResultAsync(const Model::GetJobMigrateResultRequest& request, const GetJobMigrateResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetJobMigrateResultOutcomeCallable getJobMigrateResultCallable(const Model::GetJobMigrateResultRequest& request) const; - GetHdfsCapacityStatisticInfoOutcome getHdfsCapacityStatisticInfo(const Model::GetHdfsCapacityStatisticInfoRequest &request)const; - void getHdfsCapacityStatisticInfoAsync(const Model::GetHdfsCapacityStatisticInfoRequest& request, const GetHdfsCapacityStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetHdfsCapacityStatisticInfoOutcomeCallable getHdfsCapacityStatisticInfoCallable(const Model::GetHdfsCapacityStatisticInfoRequest& request) const; - ResumeExecutionPlanSchedulerOutcome resumeExecutionPlanScheduler(const Model::ResumeExecutionPlanSchedulerRequest &request)const; - void resumeExecutionPlanSchedulerAsync(const Model::ResumeExecutionPlanSchedulerRequest& request, const ResumeExecutionPlanSchedulerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumeExecutionPlanSchedulerOutcomeCallable resumeExecutionPlanSchedulerCallable(const Model::ResumeExecutionPlanSchedulerRequest& request) const; - ListFlowNodeInstanceOutcome listFlowNodeInstance(const Model::ListFlowNodeInstanceRequest &request)const; - void listFlowNodeInstanceAsync(const Model::ListFlowNodeInstanceRequest& request, const ListFlowNodeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowNodeInstanceOutcomeCallable listFlowNodeInstanceCallable(const Model::ListFlowNodeInstanceRequest& request) const; DescribeDataSourceOutcome describeDataSource(const Model::DescribeDataSourceRequest &request)const; void describeDataSourceAsync(const Model::DescribeDataSourceRequest& request, const DescribeDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataSourceOutcomeCallable describeDataSourceCallable(const Model::DescribeDataSourceRequest& request) const; - ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; - void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const; + ListFlowNodeInstanceOutcome listFlowNodeInstance(const Model::ListFlowNodeInstanceRequest &request)const; + void listFlowNodeInstanceAsync(const Model::ListFlowNodeInstanceRequest& request, const ListFlowNodeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowNodeInstanceOutcomeCallable listFlowNodeInstanceCallable(const Model::ListFlowNodeInstanceRequest& request) const; DescribeFlowVariableCollectionOutcome describeFlowVariableCollection(const Model::DescribeFlowVariableCollectionRequest &request)const; void describeFlowVariableCollectionAsync(const Model::DescribeFlowVariableCollectionRequest& request, const DescribeFlowVariableCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowVariableCollectionOutcomeCallable describeFlowVariableCollectionCallable(const Model::DescribeFlowVariableCollectionRequest& request) const; @@ -1682,69 +2102,45 @@ namespace AlibabaCloud DescribeScalingActivityOutcome describeScalingActivity(const Model::DescribeScalingActivityRequest &request)const; void describeScalingActivityAsync(const Model::DescribeScalingActivityRequest& request, const DescribeScalingActivityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScalingActivityOutcomeCallable describeScalingActivityCallable(const Model::DescribeScalingActivityRequest& request) const; - ListEmrAvailableResourceOutcome listEmrAvailableResource(const Model::ListEmrAvailableResourceRequest &request)const; - void listEmrAvailableResourceAsync(const Model::ListEmrAvailableResourceRequest& request, const ListEmrAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListEmrAvailableResourceOutcomeCallable listEmrAvailableResourceCallable(const Model::ListEmrAvailableResourceRequest& request) const; - ReleaseETLJobOutcome releaseETLJob(const Model::ReleaseETLJobRequest &request)const; - void releaseETLJobAsync(const Model::ReleaseETLJobRequest& request, const ReleaseETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReleaseETLJobOutcomeCallable releaseETLJobCallable(const Model::ReleaseETLJobRequest& request) const; + ListClusterInstalledServiceOutcome listClusterInstalledService(const Model::ListClusterInstalledServiceRequest &request)const; + void listClusterInstalledServiceAsync(const Model::ListClusterInstalledServiceRequest& request, const ListClusterInstalledServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterInstalledServiceOutcomeCallable listClusterInstalledServiceCallable(const Model::ListClusterInstalledServiceRequest& request) const; DescribeEmrMainVersionOutcome describeEmrMainVersion(const Model::DescribeEmrMainVersionRequest &request)const; void describeEmrMainVersionAsync(const Model::DescribeEmrMainVersionRequest& request, const DescribeEmrMainVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEmrMainVersionOutcomeCallable describeEmrMainVersionCallable(const Model::DescribeEmrMainVersionRequest& request) const; - DescribeClusterServiceConfigTagOutcome describeClusterServiceConfigTag(const Model::DescribeClusterServiceConfigTagRequest &request)const; - void describeClusterServiceConfigTagAsync(const Model::DescribeClusterServiceConfigTagRequest& request, const DescribeClusterServiceConfigTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterServiceConfigTagOutcomeCallable describeClusterServiceConfigTagCallable(const Model::DescribeClusterServiceConfigTagRequest& request) const; DeleteETLJobOutcome deleteETLJob(const Model::DeleteETLJobRequest &request)const; void deleteETLJobAsync(const Model::DeleteETLJobRequest& request, const DeleteETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteETLJobOutcomeCallable deleteETLJobCallable(const Model::DeleteETLJobRequest& request) const; - RunClusterServiceActionOutcome runClusterServiceAction(const Model::RunClusterServiceActionRequest &request)const; - void runClusterServiceActionAsync(const Model::RunClusterServiceActionRequest& request, const RunClusterServiceActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RunClusterServiceActionOutcomeCallable runClusterServiceActionCallable(const Model::RunClusterServiceActionRequest& request) const; - SuspendFlowOutcome suspendFlow(const Model::SuspendFlowRequest &request)const; - void suspendFlowAsync(const Model::SuspendFlowRequest& request, const SuspendFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SuspendFlowOutcomeCallable suspendFlowCallable(const Model::SuspendFlowRequest& request) const; MetastoreDataPreviewOutcome metastoreDataPreview(const Model::MetastoreDataPreviewRequest &request)const; void metastoreDataPreviewAsync(const Model::MetastoreDataPreviewRequest& request, const MetastoreDataPreviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreDataPreviewOutcomeCallable metastoreDataPreviewCallable(const Model::MetastoreDataPreviewRequest& request) const; - AuthorizeSecurityGroupOutcome authorizeSecurityGroup(const Model::AuthorizeSecurityGroupRequest &request)const; - void authorizeSecurityGroupAsync(const Model::AuthorizeSecurityGroupRequest& request, const AuthorizeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AuthorizeSecurityGroupOutcomeCallable authorizeSecurityGroupCallable(const Model::AuthorizeSecurityGroupRequest& request) const; - ModifyClusterTemplateOutcome modifyClusterTemplate(const Model::ModifyClusterTemplateRequest &request)const; - void modifyClusterTemplateAsync(const Model::ModifyClusterTemplateRequest& request, const ModifyClusterTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyClusterTemplateOutcomeCallable modifyClusterTemplateCallable(const Model::ModifyClusterTemplateRequest& request) const; AttachPubIpOutcome attachPubIp(const Model::AttachPubIpRequest &request)const; void attachPubIpAsync(const Model::AttachPubIpRequest& request, const AttachPubIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachPubIpOutcomeCallable attachPubIpCallable(const Model::AttachPubIpRequest& request) const; + UpdateWorkspaceResourceSettingOutcome updateWorkspaceResourceSetting(const Model::UpdateWorkspaceResourceSettingRequest &request)const; + void updateWorkspaceResourceSettingAsync(const Model::UpdateWorkspaceResourceSettingRequest& request, const UpdateWorkspaceResourceSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateWorkspaceResourceSettingOutcomeCallable updateWorkspaceResourceSettingCallable(const Model::UpdateWorkspaceResourceSettingRequest& request) const; RunExecutionPlanOutcome runExecutionPlan(const Model::RunExecutionPlanRequest &request)const; void runExecutionPlanAsync(const Model::RunExecutionPlanRequest& request, const RunExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RunExecutionPlanOutcomeCallable runExecutionPlanCallable(const Model::RunExecutionPlanRequest& request) const; - ContextQueryLogOutcome contextQueryLog(const Model::ContextQueryLogRequest &request)const; - void contextQueryLogAsync(const Model::ContextQueryLogRequest& request, const ContextQueryLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ContextQueryLogOutcomeCallable contextQueryLogCallable(const Model::ContextQueryLogRequest& request) const; - ListClusterOperationHostOutcome listClusterOperationHost(const Model::ListClusterOperationHostRequest &request)const; - void listClusterOperationHostAsync(const Model::ListClusterOperationHostRequest& request, const ListClusterOperationHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterOperationHostOutcomeCallable listClusterOperationHostCallable(const Model::ListClusterOperationHostRequest& request) const; ListClusterTemplatesOutcome listClusterTemplates(const Model::ListClusterTemplatesRequest &request)const; void listClusterTemplatesAsync(const Model::ListClusterTemplatesRequest& request, const ListClusterTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterTemplatesOutcomeCallable listClusterTemplatesCallable(const Model::ListClusterTemplatesRequest& request) const; DescribeFlowCategoryOutcome describeFlowCategory(const Model::DescribeFlowCategoryRequest &request)const; void describeFlowCategoryAsync(const Model::DescribeFlowCategoryRequest& request, const DescribeFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowCategoryOutcomeCallable describeFlowCategoryCallable(const Model::DescribeFlowCategoryRequest& request) const; + StartKafkaBrokerDiskBalancerOutcome startKafkaBrokerDiskBalancer(const Model::StartKafkaBrokerDiskBalancerRequest &request)const; + void startKafkaBrokerDiskBalancerAsync(const Model::StartKafkaBrokerDiskBalancerRequest& request, const StartKafkaBrokerDiskBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartKafkaBrokerDiskBalancerOutcomeCallable startKafkaBrokerDiskBalancerCallable(const Model::StartKafkaBrokerDiskBalancerRequest& request) const; ModifyFlowJobOutcome modifyFlowJob(const Model::ModifyFlowJobRequest &request)const; void modifyFlowJobAsync(const Model::ModifyFlowJobRequest& request, const ModifyFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyFlowJobOutcomeCallable modifyFlowJobCallable(const Model::ModifyFlowJobRequest& request) const; - ListScalingRuleOutcome listScalingRule(const Model::ListScalingRuleRequest &request)const; - void listScalingRuleAsync(const Model::ListScalingRuleRequest& request, const ListScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListScalingRuleOutcomeCallable listScalingRuleCallable(const Model::ListScalingRuleRequest& request) const; - DeleteFlowOutcome deleteFlow(const Model::DeleteFlowRequest &request)const; - void deleteFlowAsync(const Model::DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFlowOutcomeCallable deleteFlowCallable(const Model::DeleteFlowRequest& request) const; - DeleteDataSourceOutcome deleteDataSource(const Model::DeleteDataSourceRequest &request)const; - void deleteDataSourceAsync(const Model::DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDataSourceOutcomeCallable deleteDataSourceCallable(const Model::DeleteDataSourceRequest& request) const; - RunETLJobOutcome runETLJob(const Model::RunETLJobRequest &request)const; - void runETLJobAsync(const Model::RunETLJobRequest& request, const RunETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RunETLJobOutcomeCallable runETLJobCallable(const Model::RunETLJobRequest& request) const; + RemoveBackupRuleOutcome removeBackupRule(const Model::RemoveBackupRuleRequest &request)const; + void removeBackupRuleAsync(const Model::RemoveBackupRuleRequest& request, const RemoveBackupRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveBackupRuleOutcomeCallable removeBackupRuleCallable(const Model::RemoveBackupRuleRequest& request) const; + RetrySyncUserAccountOutcome retrySyncUserAccount(const Model::RetrySyncUserAccountRequest &request)const; + void retrySyncUserAccountAsync(const Model::RetrySyncUserAccountRequest& request, const RetrySyncUserAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetrySyncUserAccountOutcomeCallable retrySyncUserAccountCallable(const Model::RetrySyncUserAccountRequest& request) const; CreateClusterHostGroupOutcome createClusterHostGroup(const Model::CreateClusterHostGroupRequest &request)const; void createClusterHostGroupAsync(const Model::CreateClusterHostGroupRequest& request, const CreateClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateClusterHostGroupOutcomeCallable createClusterHostGroupCallable(const Model::CreateClusterHostGroupRequest& request) const; @@ -1754,48 +2150,36 @@ namespace AlibabaCloud ModifyScalingRuleOutcome modifyScalingRule(const Model::ModifyScalingRuleRequest &request)const; void modifyScalingRuleAsync(const Model::ModifyScalingRuleRequest& request, const ModifyScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyScalingRuleOutcomeCallable modifyScalingRuleCallable(const Model::ModifyScalingRuleRequest& request) const; - ListClusterServiceComponentHealthInfoOutcome listClusterServiceComponentHealthInfo(const Model::ListClusterServiceComponentHealthInfoRequest &request)const; - void listClusterServiceComponentHealthInfoAsync(const Model::ListClusterServiceComponentHealthInfoRequest& request, const ListClusterServiceComponentHealthInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterServiceComponentHealthInfoOutcomeCallable listClusterServiceComponentHealthInfoCallable(const Model::ListClusterServiceComponentHealthInfoRequest& request) const; - ListFlowProjectOutcome listFlowProject(const Model::ListFlowProjectRequest &request)const; - void listFlowProjectAsync(const Model::ListFlowProjectRequest& request, const ListFlowProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowProjectOutcomeCallable listFlowProjectCallable(const Model::ListFlowProjectRequest& request) const; RemoveClusterHostsOutcome removeClusterHosts(const Model::RemoveClusterHostsRequest &request)const; void removeClusterHostsAsync(const Model::RemoveClusterHostsRequest& request, const RemoveClusterHostsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveClusterHostsOutcomeCallable removeClusterHostsCallable(const Model::RemoveClusterHostsRequest& request) const; ListETLJobTriggerEntityOutcome listETLJobTriggerEntity(const Model::ListETLJobTriggerEntityRequest &request)const; void listETLJobTriggerEntityAsync(const Model::ListETLJobTriggerEntityRequest& request, const ListETLJobTriggerEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListETLJobTriggerEntityOutcomeCallable listETLJobTriggerEntityCallable(const Model::ListETLJobTriggerEntityRequest& request) const; - ModifyAlertDingDingGroupOutcome modifyAlertDingDingGroup(const Model::ModifyAlertDingDingGroupRequest &request)const; - void modifyAlertDingDingGroupAsync(const Model::ModifyAlertDingDingGroupRequest& request, const ModifyAlertDingDingGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAlertDingDingGroupOutcomeCallable modifyAlertDingDingGroupCallable(const Model::ModifyAlertDingDingGroupRequest& request) const; - CreateETLJobOutcome createETLJob(const Model::CreateETLJobRequest &request)const; - void createETLJobAsync(const Model::CreateETLJobRequest& request, const CreateETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateETLJobOutcomeCallable createETLJobCallable(const Model::CreateETLJobRequest& request) const; + AddClusterServiceForAdminOutcome addClusterServiceForAdmin(const Model::AddClusterServiceForAdminRequest &request)const; + void addClusterServiceForAdminAsync(const Model::AddClusterServiceForAdminRequest& request, const AddClusterServiceForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddClusterServiceForAdminOutcomeCallable addClusterServiceForAdminCallable(const Model::AddClusterServiceForAdminRequest& request) const; + DescribeHostPoolOutcome describeHostPool(const Model::DescribeHostPoolRequest &request)const; + void describeHostPoolAsync(const Model::DescribeHostPoolRequest& request, const DescribeHostPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHostPoolOutcomeCallable describeHostPoolCallable(const Model::DescribeHostPoolRequest& request) const; SaveParagraphOutcome saveParagraph(const Model::SaveParagraphRequest &request)const; void saveParagraphAsync(const Model::SaveParagraphRequest& request, const SaveParagraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveParagraphOutcomeCallable saveParagraphCallable(const Model::SaveParagraphRequest& request) const; DeleteParagraphOutcome deleteParagraph(const Model::DeleteParagraphRequest &request)const; void deleteParagraphAsync(const Model::DeleteParagraphRequest& request, const DeleteParagraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteParagraphOutcomeCallable deleteParagraphCallable(const Model::DeleteParagraphRequest& request) const; - ListFlowJobHistoryOutcome listFlowJobHistory(const Model::ListFlowJobHistoryRequest &request)const; - void listFlowJobHistoryAsync(const Model::ListFlowJobHistoryRequest& request, const ListFlowJobHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowJobHistoryOutcomeCallable listFlowJobHistoryCallable(const Model::ListFlowJobHistoryRequest& request) const; - CreateClusterScriptOutcome createClusterScript(const Model::CreateClusterScriptRequest &request)const; - void createClusterScriptAsync(const Model::CreateClusterScriptRequest& request, const CreateClusterScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateClusterScriptOutcomeCallable createClusterScriptCallable(const Model::CreateClusterScriptRequest& request) const; - SubmitFlowOutcome submitFlow(const Model::SubmitFlowRequest &request)const; - void submitFlowAsync(const Model::SubmitFlowRequest& request, const SubmitFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitFlowOutcomeCallable submitFlowCallable(const Model::SubmitFlowRequest& request) const; GetQueueInputStatisticInfoOutcome getQueueInputStatisticInfo(const Model::GetQueueInputStatisticInfoRequest &request)const; void getQueueInputStatisticInfoAsync(const Model::GetQueueInputStatisticInfoRequest& request, const GetQueueInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetQueueInputStatisticInfoOutcomeCallable getQueueInputStatisticInfoCallable(const Model::GetQueueInputStatisticInfoRequest& request) const; - ListClusterServiceQuickLinkOutcome listClusterServiceQuickLink(const Model::ListClusterServiceQuickLinkRequest &request)const; - void listClusterServiceQuickLinkAsync(const Model::ListClusterServiceQuickLinkRequest& request, const ListClusterServiceQuickLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterServiceQuickLinkOutcomeCallable listClusterServiceQuickLinkCallable(const Model::ListClusterServiceQuickLinkRequest& request) const; MetastoreUpdateTableOutcome metastoreUpdateTable(const Model::MetastoreUpdateTableRequest &request)const; void metastoreUpdateTableAsync(const Model::MetastoreUpdateTableRequest& request, const MetastoreUpdateTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreUpdateTableOutcomeCallable metastoreUpdateTableCallable(const Model::MetastoreUpdateTableRequest& request) const; + GetBackupRuleInfoOutcome getBackupRuleInfo(const Model::GetBackupRuleInfoRequest &request)const; + void getBackupRuleInfoAsync(const Model::GetBackupRuleInfoRequest& request, const GetBackupRuleInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBackupRuleInfoOutcomeCallable getBackupRuleInfoCallable(const Model::GetBackupRuleInfoRequest& request) const; + ListClusterServiceQuickLinkOutcome listClusterServiceQuickLink(const Model::ListClusterServiceQuickLinkRequest &request)const; + void listClusterServiceQuickLinkAsync(const Model::ListClusterServiceQuickLinkRequest& request, const ListClusterServiceQuickLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterServiceQuickLinkOutcomeCallable listClusterServiceQuickLinkCallable(const Model::ListClusterServiceQuickLinkRequest& request) const; ListClusterHostGroupOutcome listClusterHostGroup(const Model::ListClusterHostGroupRequest &request)const; void listClusterHostGroupAsync(const Model::ListClusterHostGroupRequest& request, const ListClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterHostGroupOutcomeCallable listClusterHostGroupCallable(const Model::ListClusterHostGroupRequest& request) const; @@ -1805,57 +2189,39 @@ namespace AlibabaCloud MetastoreDeleteKafkaTopicOutcome metastoreDeleteKafkaTopic(const Model::MetastoreDeleteKafkaTopicRequest &request)const; void metastoreDeleteKafkaTopicAsync(const Model::MetastoreDeleteKafkaTopicRequest& request, const MetastoreDeleteKafkaTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreDeleteKafkaTopicOutcomeCallable metastoreDeleteKafkaTopicCallable(const Model::MetastoreDeleteKafkaTopicRequest& request) const; - ResumeFlowOutcome resumeFlow(const Model::ResumeFlowRequest &request)const; - void resumeFlowAsync(const Model::ResumeFlowRequest& request, const ResumeFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumeFlowOutcomeCallable resumeFlowCallable(const Model::ResumeFlowRequest& request) const; - DeleteFlowProjectByIdOutcome deleteFlowProjectById(const Model::DeleteFlowProjectByIdRequest &request)const; - void deleteFlowProjectByIdAsync(const Model::DeleteFlowProjectByIdRequest& request, const DeleteFlowProjectByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFlowProjectByIdOutcomeCallable deleteFlowProjectByIdCallable(const Model::DeleteFlowProjectByIdRequest& request) const; SuspendExecutionPlanInstanceOutcome suspendExecutionPlanInstance(const Model::SuspendExecutionPlanInstanceRequest &request)const; void suspendExecutionPlanInstanceAsync(const Model::SuspendExecutionPlanInstanceRequest& request, const SuspendExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SuspendExecutionPlanInstanceOutcomeCallable suspendExecutionPlanInstanceCallable(const Model::SuspendExecutionPlanInstanceRequest& request) const; - GetUserSubmissionStatisticInfoOutcome getUserSubmissionStatisticInfo(const Model::GetUserSubmissionStatisticInfoRequest &request)const; - void getUserSubmissionStatisticInfoAsync(const Model::GetUserSubmissionStatisticInfoRequest& request, const GetUserSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserSubmissionStatisticInfoOutcomeCallable getUserSubmissionStatisticInfoCallable(const Model::GetUserSubmissionStatisticInfoRequest& request) const; DeleteScalingTaskGroupOutcome deleteScalingTaskGroup(const Model::DeleteScalingTaskGroupRequest &request)const; void deleteScalingTaskGroupAsync(const Model::DeleteScalingTaskGroupRequest& request, const DeleteScalingTaskGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteScalingTaskGroupOutcomeCallable deleteScalingTaskGroupCallable(const Model::DeleteScalingTaskGroupRequest& request) const; - DescribeParagraphOutcome describeParagraph(const Model::DescribeParagraphRequest &request)const; - void describeParagraphAsync(const Model::DescribeParagraphRequest& request, const DescribeParagraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeParagraphOutcomeCallable describeParagraphCallable(const Model::DescribeParagraphRequest& request) const; - MetastoreCreateDatabaseOutcome metastoreCreateDatabase(const Model::MetastoreCreateDatabaseRequest &request)const; - void metastoreCreateDatabaseAsync(const Model::MetastoreCreateDatabaseRequest& request, const MetastoreCreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreCreateDatabaseOutcomeCallable metastoreCreateDatabaseCallable(const Model::MetastoreCreateDatabaseRequest& request) const; + GetUserSubmissionStatisticInfoOutcome getUserSubmissionStatisticInfo(const Model::GetUserSubmissionStatisticInfoRequest &request)const; + void getUserSubmissionStatisticInfoAsync(const Model::GetUserSubmissionStatisticInfoRequest& request, const GetUserSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserSubmissionStatisticInfoOutcomeCallable getUserSubmissionStatisticInfoCallable(const Model::GetUserSubmissionStatisticInfoRequest& request) const; ListFailureJobExecutionInstancesOutcome listFailureJobExecutionInstances(const Model::ListFailureJobExecutionInstancesRequest &request)const; void listFailureJobExecutionInstancesAsync(const Model::ListFailureJobExecutionInstancesRequest& request, const ListFailureJobExecutionInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFailureJobExecutionInstancesOutcomeCallable listFailureJobExecutionInstancesCallable(const Model::ListFailureJobExecutionInstancesRequest& request) const; - DeleteFlowJobOutcome deleteFlowJob(const Model::DeleteFlowJobRequest &request)const; - void deleteFlowJobAsync(const Model::DeleteFlowJobRequest& request, const DeleteFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFlowJobOutcomeCallable deleteFlowJobCallable(const Model::DeleteFlowJobRequest& request) const; - RefreshClusterResourcePoolOutcome refreshClusterResourcePool(const Model::RefreshClusterResourcePoolRequest &request)const; - void refreshClusterResourcePoolAsync(const Model::RefreshClusterResourcePoolRequest& request, const RefreshClusterResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RefreshClusterResourcePoolOutcomeCallable refreshClusterResourcePoolCallable(const Model::RefreshClusterResourcePoolRequest& request) const; - ModifyJobOutcome modifyJob(const Model::ModifyJobRequest &request)const; - void modifyJobAsync(const Model::ModifyJobRequest& request, const ModifyJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyJobOutcomeCallable modifyJobCallable(const Model::ModifyJobRequest& request) const; + CreateBackupPlanOutcome createBackupPlan(const Model::CreateBackupPlanRequest &request)const; + void createBackupPlanAsync(const Model::CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBackupPlanOutcomeCallable createBackupPlanCallable(const Model::CreateBackupPlanRequest& request) const; + ListHpHostOutcome listHpHost(const Model::ListHpHostRequest &request)const; + void listHpHostAsync(const Model::ListHpHostRequest& request, const ListHpHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHpHostOutcomeCallable listHpHostCallable(const Model::ListHpHostRequest& request) const; MetastoreCreateDataResourceOutcome metastoreCreateDataResource(const Model::MetastoreCreateDataResourceRequest &request)const; void metastoreCreateDataResourceAsync(const Model::MetastoreCreateDataResourceRequest& request, const MetastoreCreateDataResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreCreateDataResourceOutcomeCallable metastoreCreateDataResourceCallable(const Model::MetastoreCreateDataResourceRequest& request) const; + ListClusterHostComponentForAdminOutcome listClusterHostComponentForAdmin(const Model::ListClusterHostComponentForAdminRequest &request)const; + void listClusterHostComponentForAdminAsync(const Model::ListClusterHostComponentForAdminRequest& request, const ListClusterHostComponentForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterHostComponentForAdminOutcomeCallable listClusterHostComponentForAdminCallable(const Model::ListClusterHostComponentForAdminRequest& request) const; KillETLJobInstanceOutcome killETLJobInstance(const Model::KillETLJobInstanceRequest &request)const; void killETLJobInstanceAsync(const Model::KillETLJobInstanceRequest& request, const KillETLJobInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; KillETLJobInstanceOutcomeCallable killETLJobInstanceCallable(const Model::KillETLJobInstanceRequest& request) const; - DescribeFlowJobOutcome describeFlowJob(const Model::DescribeFlowJobRequest &request)const; - void describeFlowJobAsync(const Model::DescribeFlowJobRequest& request, const DescribeFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFlowJobOutcomeCallable describeFlowJobCallable(const Model::DescribeFlowJobRequest& request) const; RetryExecutionPlanInstanceOutcome retryExecutionPlanInstance(const Model::RetryExecutionPlanInstanceRequest &request)const; void retryExecutionPlanInstanceAsync(const Model::RetryExecutionPlanInstanceRequest& request, const RetryExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RetryExecutionPlanInstanceOutcomeCallable retryExecutionPlanInstanceCallable(const Model::RetryExecutionPlanInstanceRequest& request) const; - RerunFlowOutcome rerunFlow(const Model::RerunFlowRequest &request)const; - void rerunFlowAsync(const Model::RerunFlowRequest& request, const RerunFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RerunFlowOutcomeCallable rerunFlowCallable(const Model::RerunFlowRequest& request) const; - MetastoreRetryTaskOutcome metastoreRetryTask(const Model::MetastoreRetryTaskRequest &request)const; - void metastoreRetryTaskAsync(const Model::MetastoreRetryTaskRequest& request, const MetastoreRetryTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreRetryTaskOutcomeCallable metastoreRetryTaskCallable(const Model::MetastoreRetryTaskRequest& request) const; + ListHostPoolOutcome listHostPool(const Model::ListHostPoolRequest &request)const; + void listHostPoolAsync(const Model::ListHostPoolRequest& request, const ListHostPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHostPoolOutcomeCallable listHostPoolCallable(const Model::ListHostPoolRequest& request) const; DescribeClusterOperationHostTaskLogOutcome describeClusterOperationHostTaskLog(const Model::DescribeClusterOperationHostTaskLogRequest &request)const; void describeClusterOperationHostTaskLogAsync(const Model::DescribeClusterOperationHostTaskLogRequest& request, const DescribeClusterOperationHostTaskLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterOperationHostTaskLogOutcomeCallable describeClusterOperationHostTaskLogCallable(const Model::DescribeClusterOperationHostTaskLogRequest& request) const; @@ -1865,159 +2231,102 @@ namespace AlibabaCloud KillFlowJobOutcome killFlowJob(const Model::KillFlowJobRequest &request)const; void killFlowJobAsync(const Model::KillFlowJobRequest& request, const KillFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; KillFlowJobOutcomeCallable killFlowJobCallable(const Model::KillFlowJobRequest& request) const; + DescribeWorkspaceRepoSettingOutcome describeWorkspaceRepoSetting(const Model::DescribeWorkspaceRepoSettingRequest &request)const; + void describeWorkspaceRepoSettingAsync(const Model::DescribeWorkspaceRepoSettingRequest& request, const DescribeWorkspaceRepoSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWorkspaceRepoSettingOutcomeCallable describeWorkspaceRepoSettingCallable(const Model::DescribeWorkspaceRepoSettingRequest& request) const; DescribeFlowOutcome describeFlow(const Model::DescribeFlowRequest &request)const; void describeFlowAsync(const Model::DescribeFlowRequest& request, const DescribeFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowOutcomeCallable describeFlowCallable(const Model::DescribeFlowRequest& request) const; - DescribeClusterV2Outcome describeClusterV2(const Model::DescribeClusterV2Request &request)const; - void describeClusterV2Async(const Model::DescribeClusterV2Request& request, const DescribeClusterV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterV2OutcomeCallable describeClusterV2Callable(const Model::DescribeClusterV2Request& request) const; DescribeDataSourceSchemaDatabaseOutcome describeDataSourceSchemaDatabase(const Model::DescribeDataSourceSchemaDatabaseRequest &request)const; void describeDataSourceSchemaDatabaseAsync(const Model::DescribeDataSourceSchemaDatabaseRequest& request, const DescribeDataSourceSchemaDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataSourceSchemaDatabaseOutcomeCallable describeDataSourceSchemaDatabaseCallable(const Model::DescribeDataSourceSchemaDatabaseRequest& request) const; DescribeETLJobStageOutputSchemaOutcome describeETLJobStageOutputSchema(const Model::DescribeETLJobStageOutputSchemaRequest &request)const; void describeETLJobStageOutputSchemaAsync(const Model::DescribeETLJobStageOutputSchemaRequest& request, const DescribeETLJobStageOutputSchemaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeETLJobStageOutputSchemaOutcomeCallable describeETLJobStageOutputSchemaCallable(const Model::DescribeETLJobStageOutputSchemaRequest& request) const; - CreateFlowProjectClusterSettingOutcome createFlowProjectClusterSetting(const Model::CreateFlowProjectClusterSettingRequest &request)const; - void createFlowProjectClusterSettingAsync(const Model::CreateFlowProjectClusterSettingRequest& request, const CreateFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFlowProjectClusterSettingOutcomeCallable createFlowProjectClusterSettingCallable(const Model::CreateFlowProjectClusterSettingRequest& request) const; - ListClusterScriptsOutcome listClusterScripts(const Model::ListClusterScriptsRequest &request)const; - void listClusterScriptsAsync(const Model::ListClusterScriptsRequest& request, const ListClusterScriptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterScriptsOutcomeCallable listClusterScriptsCallable(const Model::ListClusterScriptsRequest& request) const; - DescribeFlowInstanceOutcome describeFlowInstance(const Model::DescribeFlowInstanceRequest &request)const; - void describeFlowInstanceAsync(const Model::DescribeFlowInstanceRequest& request, const DescribeFlowInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFlowInstanceOutcomeCallable describeFlowInstanceCallable(const Model::DescribeFlowInstanceRequest& request) const; - CreateDataSourceOutcome createDataSource(const Model::CreateDataSourceRequest &request)const; - void createDataSourceAsync(const Model::CreateDataSourceRequest& request, const CreateDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDataSourceOutcomeCallable createDataSourceCallable(const Model::CreateDataSourceRequest& request) const; GetUserInputStatisticInfoOutcome getUserInputStatisticInfo(const Model::GetUserInputStatisticInfoRequest &request)const; void getUserInputStatisticInfoAsync(const Model::GetUserInputStatisticInfoRequest& request, const GetUserInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUserInputStatisticInfoOutcomeCallable getUserInputStatisticInfoCallable(const Model::GetUserInputStatisticInfoRequest& request) const; + CreateDataSourceOutcome createDataSource(const Model::CreateDataSourceRequest &request)const; + void createDataSourceAsync(const Model::CreateDataSourceRequest& request, const CreateDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDataSourceOutcomeCallable createDataSourceCallable(const Model::CreateDataSourceRequest& request) const; ModifyAlertContactOutcome modifyAlertContact(const Model::ModifyAlertContactRequest &request)const; void modifyAlertContactAsync(const Model::ModifyAlertContactRequest& request, const ModifyAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAlertContactOutcomeCallable modifyAlertContactCallable(const Model::ModifyAlertContactRequest& request) const; - CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const; - void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& request) const; DeleteAlertDingDingGroupsOutcome deleteAlertDingDingGroups(const Model::DeleteAlertDingDingGroupsRequest &request)const; void deleteAlertDingDingGroupsAsync(const Model::DeleteAlertDingDingGroupsRequest& request, const DeleteAlertDingDingGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAlertDingDingGroupsOutcomeCallable deleteAlertDingDingGroupsCallable(const Model::DeleteAlertDingDingGroupsRequest& request) const; - MetastoreModifyDataResourceOutcome metastoreModifyDataResource(const Model::MetastoreModifyDataResourceRequest &request)const; - void metastoreModifyDataResourceAsync(const Model::MetastoreModifyDataResourceRequest& request, const MetastoreModifyDataResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreModifyDataResourceOutcomeCallable metastoreModifyDataResourceCallable(const Model::MetastoreModifyDataResourceRequest& request) const; - ListExecutePlanMigrateInfoOutcome listExecutePlanMigrateInfo(const Model::ListExecutePlanMigrateInfoRequest &request)const; - void listExecutePlanMigrateInfoAsync(const Model::ListExecutePlanMigrateInfoRequest& request, const ListExecutePlanMigrateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListExecutePlanMigrateInfoOutcomeCallable listExecutePlanMigrateInfoCallable(const Model::ListExecutePlanMigrateInfoRequest& request) const; - GetOpsCommandResultOnceOutcome getOpsCommandResultOnce(const Model::GetOpsCommandResultOnceRequest &request)const; - void getOpsCommandResultOnceAsync(const Model::GetOpsCommandResultOnceRequest& request, const GetOpsCommandResultOnceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOpsCommandResultOnceOutcomeCallable getOpsCommandResultOnceCallable(const Model::GetOpsCommandResultOnceRequest& request) const; - ResumeExecutionPlanInstanceOutcome resumeExecutionPlanInstance(const Model::ResumeExecutionPlanInstanceRequest &request)const; - void resumeExecutionPlanInstanceAsync(const Model::ResumeExecutionPlanInstanceRequest& request, const ResumeExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumeExecutionPlanInstanceOutcomeCallable resumeExecutionPlanInstanceCallable(const Model::ResumeExecutionPlanInstanceRequest& request) const; - CreateParagraphOutcome createParagraph(const Model::CreateParagraphRequest &request)const; - void createParagraphAsync(const Model::CreateParagraphRequest& request, const CreateParagraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateParagraphOutcomeCallable createParagraphCallable(const Model::CreateParagraphRequest& request) const; - GetJobInputStatisticInfoOutcome getJobInputStatisticInfo(const Model::GetJobInputStatisticInfoRequest &request)const; - void getJobInputStatisticInfoAsync(const Model::GetJobInputStatisticInfoRequest& request, const GetJobInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetJobInputStatisticInfoOutcomeCallable getJobInputStatisticInfoCallable(const Model::GetJobInputStatisticInfoRequest& request) const; - DeleteFlowProjectUserOutcome deleteFlowProjectUser(const Model::DeleteFlowProjectUserRequest &request)const; - void deleteFlowProjectUserAsync(const Model::DeleteFlowProjectUserRequest& request, const DeleteFlowProjectUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFlowProjectUserOutcomeCallable deleteFlowProjectUserCallable(const Model::DeleteFlowProjectUserRequest& request) const; + DescribeWorkspaceResourceSettingOutcome describeWorkspaceResourceSetting(const Model::DescribeWorkspaceResourceSettingRequest &request)const; + void describeWorkspaceResourceSettingAsync(const Model::DescribeWorkspaceResourceSettingRequest& request, const DescribeWorkspaceResourceSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWorkspaceResourceSettingOutcomeCallable describeWorkspaceResourceSettingCallable(const Model::DescribeWorkspaceResourceSettingRequest& request) const; CreateResourceQueueOutcome createResourceQueue(const Model::CreateResourceQueueRequest &request)const; void createResourceQueueAsync(const Model::CreateResourceQueueRequest& request, const CreateResourceQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateResourceQueueOutcomeCallable createResourceQueueCallable(const Model::CreateResourceQueueRequest& request) const; - ListDependedServiceOutcome listDependedService(const Model::ListDependedServiceRequest &request)const; - void listDependedServiceAsync(const Model::ListDependedServiceRequest& request, const ListDependedServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListDependedServiceOutcomeCallable listDependedServiceCallable(const Model::ListDependedServiceRequest& request) const; CloneETLJobOutcome cloneETLJob(const Model::CloneETLJobRequest &request)const; void cloneETLJobAsync(const Model::CloneETLJobRequest& request, const CloneETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloneETLJobOutcomeCallable cloneETLJobCallable(const Model::CloneETLJobRequest& request) const; - DeleteAlertContactsOutcome deleteAlertContacts(const Model::DeleteAlertContactsRequest &request)const; - void deleteAlertContactsAsync(const Model::DeleteAlertContactsRequest& request, const DeleteAlertContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteAlertContactsOutcomeCallable deleteAlertContactsCallable(const Model::DeleteAlertContactsRequest& request) const; MetastoreListTablePartitionOutcome metastoreListTablePartition(const Model::MetastoreListTablePartitionRequest &request)const; void metastoreListTablePartitionAsync(const Model::MetastoreListTablePartitionRequest& request, const MetastoreListTablePartitionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreListTablePartitionOutcomeCallable metastoreListTablePartitionCallable(const Model::MetastoreListTablePartitionRequest& request) const; - CreateClusterV2Outcome createClusterV2(const Model::CreateClusterV2Request &request)const; - void createClusterV2Async(const Model::CreateClusterV2Request& request, const CreateClusterV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateClusterV2OutcomeCallable createClusterV2Callable(const Model::CreateClusterV2Request& request) const; ModifyExecutionPlanScheduleInfoOutcome modifyExecutionPlanScheduleInfo(const Model::ModifyExecutionPlanScheduleInfoRequest &request)const; void modifyExecutionPlanScheduleInfoAsync(const Model::ModifyExecutionPlanScheduleInfoRequest& request, const ModifyExecutionPlanScheduleInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyExecutionPlanScheduleInfoOutcomeCallable modifyExecutionPlanScheduleInfoCallable(const Model::ModifyExecutionPlanScheduleInfoRequest& request) const; - ListClusterHostOutcome listClusterHost(const Model::ListClusterHostRequest &request)const; - void listClusterHostAsync(const Model::ListClusterHostRequest& request, const ListClusterHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterHostOutcomeCallable listClusterHostCallable(const Model::ListClusterHostRequest& request) const; - DescribeClusterServiceOutcome describeClusterService(const Model::DescribeClusterServiceRequest &request)const; - void describeClusterServiceAsync(const Model::DescribeClusterServiceRequest& request, const DescribeClusterServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterServiceOutcomeCallable describeClusterServiceCallable(const Model::DescribeClusterServiceRequest& request) const; GetQueueOutputStatisticInfoOutcome getQueueOutputStatisticInfo(const Model::GetQueueOutputStatisticInfoRequest &request)const; void getQueueOutputStatisticInfoAsync(const Model::GetQueueOutputStatisticInfoRequest& request, const GetQueueOutputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetQueueOutputStatisticInfoOutcomeCallable getQueueOutputStatisticInfoCallable(const Model::GetQueueOutputStatisticInfoRequest& request) const; CreateExecutionPlanOutcome createExecutionPlan(const Model::CreateExecutionPlanRequest &request)const; void createExecutionPlanAsync(const Model::CreateExecutionPlanRequest& request, const CreateExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateExecutionPlanOutcomeCallable createExecutionPlanCallable(const Model::CreateExecutionPlanRequest& request) const; - MetastoreCreateTableOutcome metastoreCreateTable(const Model::MetastoreCreateTableRequest &request)const; - void metastoreCreateTableAsync(const Model::MetastoreCreateTableRequest& request, const MetastoreCreateTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreCreateTableOutcomeCallable metastoreCreateTableCallable(const Model::MetastoreCreateTableRequest& request) const; + DescribeClusterResourcePoolSchedulerTypeForAdminOutcome describeClusterResourcePoolSchedulerTypeForAdmin(const Model::DescribeClusterResourcePoolSchedulerTypeForAdminRequest &request)const; + void describeClusterResourcePoolSchedulerTypeForAdminAsync(const Model::DescribeClusterResourcePoolSchedulerTypeForAdminRequest& request, const DescribeClusterResourcePoolSchedulerTypeForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterResourcePoolSchedulerTypeForAdminOutcomeCallable describeClusterResourcePoolSchedulerTypeForAdminCallable(const Model::DescribeClusterResourcePoolSchedulerTypeForAdminRequest& request) const; DeleteAlertUserGroupsOutcome deleteAlertUserGroups(const Model::DeleteAlertUserGroupsRequest &request)const; void deleteAlertUserGroupsAsync(const Model::DeleteAlertUserGroupsRequest& request, const DeleteAlertUserGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAlertUserGroupsOutcomeCallable deleteAlertUserGroupsCallable(const Model::DeleteAlertUserGroupsRequest& request) const; MetastoreListKafkaConsumerGroupOutcome metastoreListKafkaConsumerGroup(const Model::MetastoreListKafkaConsumerGroupRequest &request)const; void metastoreListKafkaConsumerGroupAsync(const Model::MetastoreListKafkaConsumerGroupRequest& request, const MetastoreListKafkaConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreListKafkaConsumerGroupOutcomeCallable metastoreListKafkaConsumerGroupCallable(const Model::MetastoreListKafkaConsumerGroupRequest& request) const; - CommonApiWhiteListOutcome commonApiWhiteList(const Model::CommonApiWhiteListRequest &request)const; - void commonApiWhiteListAsync(const Model::CommonApiWhiteListRequest& request, const CommonApiWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CommonApiWhiteListOutcomeCallable commonApiWhiteListCallable(const Model::CommonApiWhiteListRequest& request) const; - CreateFlowForWebOutcome createFlowForWeb(const Model::CreateFlowForWebRequest &request)const; - void createFlowForWebAsync(const Model::CreateFlowForWebRequest& request, const CreateFlowForWebAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFlowForWebOutcomeCallable createFlowForWebCallable(const Model::CreateFlowForWebRequest& request) const; + AddResourceToUsersOutcome addResourceToUsers(const Model::AddResourceToUsersRequest &request)const; + void addResourceToUsersAsync(const Model::AddResourceToUsersRequest& request, const AddResourceToUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddResourceToUsersOutcomeCallable addResourceToUsersCallable(const Model::AddResourceToUsersRequest& request) const; + SaveUserAccountInfoOutcome saveUserAccountInfo(const Model::SaveUserAccountInfoRequest &request)const; + void saveUserAccountInfoAsync(const Model::SaveUserAccountInfoRequest& request, const SaveUserAccountInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveUserAccountInfoOutcomeCallable saveUserAccountInfoCallable(const Model::SaveUserAccountInfoRequest& request) const; DeleteScalingRuleOutcome deleteScalingRule(const Model::DeleteScalingRuleRequest &request)const; void deleteScalingRuleAsync(const Model::DeleteScalingRuleRequest& request, const DeleteScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteScalingRuleOutcomeCallable deleteScalingRuleCallable(const Model::DeleteScalingRuleRequest& request) const; - QuerySlsMetricDataOutcome querySlsMetricData(const Model::QuerySlsMetricDataRequest &request)const; - void querySlsMetricDataAsync(const Model::QuerySlsMetricDataRequest& request, const QuerySlsMetricDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySlsMetricDataOutcomeCallable querySlsMetricDataCallable(const Model::QuerySlsMetricDataRequest& request) const; + CreateBackupRuleOutcome createBackupRule(const Model::CreateBackupRuleRequest &request)const; + void createBackupRuleAsync(const Model::CreateBackupRuleRequest& request, const CreateBackupRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBackupRuleOutcomeCallable createBackupRuleCallable(const Model::CreateBackupRuleRequest& request) const; DescribeFlowJobStatisticOutcome describeFlowJobStatistic(const Model::DescribeFlowJobStatisticRequest &request)const; void describeFlowJobStatisticAsync(const Model::DescribeFlowJobStatisticRequest& request, const DescribeFlowJobStatisticAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowJobStatisticOutcomeCallable describeFlowJobStatisticCallable(const Model::DescribeFlowJobStatisticRequest& request) const; - MetastoreListKafkaTopicOutcome metastoreListKafkaTopic(const Model::MetastoreListKafkaTopicRequest &request)const; - void metastoreListKafkaTopicAsync(const Model::MetastoreListKafkaTopicRequest& request, const MetastoreListKafkaTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreListKafkaTopicOutcomeCallable metastoreListKafkaTopicCallable(const Model::MetastoreListKafkaTopicRequest& request) const; - DescribeJobOutcome describeJob(const Model::DescribeJobRequest &request)const; - void describeJobAsync(const Model::DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeJobOutcomeCallable describeJobCallable(const Model::DescribeJobRequest& request) const; + ListKafkaBrokerOutcome listKafkaBroker(const Model::ListKafkaBrokerRequest &request)const; + void listKafkaBrokerAsync(const Model::ListKafkaBrokerRequest& request, const ListKafkaBrokerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListKafkaBrokerOutcomeCallable listKafkaBrokerCallable(const Model::ListKafkaBrokerRequest& request) const; ReleaseClusterHostGroupOutcome releaseClusterHostGroup(const Model::ReleaseClusterHostGroupRequest &request)const; void releaseClusterHostGroupAsync(const Model::ReleaseClusterHostGroupRequest& request, const ReleaseClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseClusterHostGroupOutcomeCallable releaseClusterHostGroupCallable(const Model::ReleaseClusterHostGroupRequest& request) const; + ListBackupsOutcome listBackups(const Model::ListBackupsRequest &request)const; + void listBackupsAsync(const Model::ListBackupsRequest& request, const ListBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBackupsOutcomeCallable listBackupsCallable(const Model::ListBackupsRequest& request) const; ListOpsOperationOutcome listOpsOperation(const Model::ListOpsOperationRequest &request)const; void listOpsOperationAsync(const Model::ListOpsOperationRequest& request, const ListOpsOperationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOpsOperationOutcomeCallable listOpsOperationCallable(const Model::ListOpsOperationRequest& request) const; - ModifyFlowProjectOutcome modifyFlowProject(const Model::ModifyFlowProjectRequest &request)const; - void modifyFlowProjectAsync(const Model::ModifyFlowProjectRequest& request, const ModifyFlowProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyFlowProjectOutcomeCallable modifyFlowProjectCallable(const Model::ModifyFlowProjectRequest& request) const; ModifyClusterHostGroupOutcome modifyClusterHostGroup(const Model::ModifyClusterHostGroupRequest &request)const; void modifyClusterHostGroupAsync(const Model::ModifyClusterHostGroupRequest& request, const ModifyClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyClusterHostGroupOutcomeCallable modifyClusterHostGroupCallable(const Model::ModifyClusterHostGroupRequest& request) const; - DescribeUserStatisticsOutcome describeUserStatistics(const Model::DescribeUserStatisticsRequest &request)const; - void describeUserStatisticsAsync(const Model::DescribeUserStatisticsRequest& request, const DescribeUserStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserStatisticsOutcomeCallable describeUserStatisticsCallable(const Model::DescribeUserStatisticsRequest& request) const; DescribeFlowNodeInstanceLauncherLogOutcome describeFlowNodeInstanceLauncherLog(const Model::DescribeFlowNodeInstanceLauncherLogRequest &request)const; void describeFlowNodeInstanceLauncherLogAsync(const Model::DescribeFlowNodeInstanceLauncherLogRequest& request, const DescribeFlowNodeInstanceLauncherLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowNodeInstanceLauncherLogOutcomeCallable describeFlowNodeInstanceLauncherLogCallable(const Model::DescribeFlowNodeInstanceLauncherLogRequest& request) const; - ListFlowOutcome listFlow(const Model::ListFlowRequest &request)const; - void listFlowAsync(const Model::ListFlowRequest& request, const ListFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowOutcomeCallable listFlowCallable(const Model::ListFlowRequest& request) const; + DescribeUserStatisticsOutcome describeUserStatistics(const Model::DescribeUserStatisticsRequest &request)const; + void describeUserStatisticsAsync(const Model::DescribeUserStatisticsRequest& request, const DescribeUserStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserStatisticsOutcomeCallable describeUserStatisticsCallable(const Model::DescribeUserStatisticsRequest& request) const; DeleteClusterScriptOutcome deleteClusterScript(const Model::DeleteClusterScriptRequest &request)const; void deleteClusterScriptAsync(const Model::DeleteClusterScriptRequest& request, const DeleteClusterScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteClusterScriptOutcomeCallable deleteClusterScriptCallable(const Model::DeleteClusterScriptRequest& request) const; - ListResourceQueueOutcome listResourceQueue(const Model::ListResourceQueueRequest &request)const; - void listResourceQueueAsync(const Model::ListResourceQueueRequest& request, const ListResourceQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListResourceQueueOutcomeCallable listResourceQueueCallable(const Model::ListResourceQueueRequest& request) const; ListClusterOperationOutcome listClusterOperation(const Model::ListClusterOperationRequest &request)const; void listClusterOperationAsync(const Model::ListClusterOperationRequest& request, const ListClusterOperationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterOperationOutcomeCallable listClusterOperationCallable(const Model::ListClusterOperationRequest& request) const; - KillExecutionPlanInstanceOutcome killExecutionPlanInstance(const Model::KillExecutionPlanInstanceRequest &request)const; - void killExecutionPlanInstanceAsync(const Model::KillExecutionPlanInstanceRequest& request, const KillExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - KillExecutionPlanInstanceOutcomeCallable killExecutionPlanInstanceCallable(const Model::KillExecutionPlanInstanceRequest& request) const; UpdateNavNodeOutcome updateNavNode(const Model::UpdateNavNodeRequest &request)const; void updateNavNodeAsync(const Model::UpdateNavNodeRequest& request, const UpdateNavNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateNavNodeOutcomeCallable updateNavNodeCallable(const Model::UpdateNavNodeRequest& request) const; @@ -2030,51 +2339,27 @@ namespace AlibabaCloud CreateFlowJobOutcome createFlowJob(const Model::CreateFlowJobRequest &request)const; void createFlowJobAsync(const Model::CreateFlowJobRequest& request, const CreateFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFlowJobOutcomeCallable createFlowJobCallable(const Model::CreateFlowJobRequest& request) const; - DeleteFlowCategoryOutcome deleteFlowCategory(const Model::DeleteFlowCategoryRequest &request)const; - void deleteFlowCategoryAsync(const Model::DeleteFlowCategoryRequest& request, const DeleteFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFlowCategoryOutcomeCallable deleteFlowCategoryCallable(const Model::DeleteFlowCategoryRequest& request) const; - MigrateJobsOutcome migrateJobs(const Model::MigrateJobsRequest &request)const; - void migrateJobsAsync(const Model::MigrateJobsRequest& request, const MigrateJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MigrateJobsOutcomeCallable migrateJobsCallable(const Model::MigrateJobsRequest& request) const; - KillExecutionJobInstanceOutcome killExecutionJobInstance(const Model::KillExecutionJobInstanceRequest &request)const; - void killExecutionJobInstanceAsync(const Model::KillExecutionJobInstanceRequest& request, const KillExecutionJobInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - KillExecutionJobInstanceOutcomeCallable killExecutionJobInstanceCallable(const Model::KillExecutionJobInstanceRequest& request) const; + StartKafkaPreferredReplicaElectionOutcome startKafkaPreferredReplicaElection(const Model::StartKafkaPreferredReplicaElectionRequest &request)const; + void startKafkaPreferredReplicaElectionAsync(const Model::StartKafkaPreferredReplicaElectionRequest& request, const StartKafkaPreferredReplicaElectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartKafkaPreferredReplicaElectionOutcomeCallable startKafkaPreferredReplicaElectionCallable(const Model::StartKafkaPreferredReplicaElectionRequest& request) const; + DescribeClusterServiceConfigForAdminOutcome describeClusterServiceConfigForAdmin(const Model::DescribeClusterServiceConfigForAdminRequest &request)const; + void describeClusterServiceConfigForAdminAsync(const Model::DescribeClusterServiceConfigForAdminRequest& request, const DescribeClusterServiceConfigForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterServiceConfigForAdminOutcomeCallable describeClusterServiceConfigForAdminCallable(const Model::DescribeClusterServiceConfigForAdminRequest& request) const; CreateClusterWithTemplateOutcome createClusterWithTemplate(const Model::CreateClusterWithTemplateRequest &request)const; void createClusterWithTemplateAsync(const Model::CreateClusterWithTemplateRequest& request, const CreateClusterWithTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateClusterWithTemplateOutcomeCallable createClusterWithTemplateCallable(const Model::CreateClusterWithTemplateRequest& request) const; ListFlowClusterAllOutcome listFlowClusterAll(const Model::ListFlowClusterAllRequest &request)const; void listFlowClusterAllAsync(const Model::ListFlowClusterAllRequest& request, const ListFlowClusterAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFlowClusterAllOutcomeCallable listFlowClusterAllCallable(const Model::ListFlowClusterAllRequest& request) const; - ModifyExecutionPlanOutcome modifyExecutionPlan(const Model::ModifyExecutionPlanRequest &request)const; - void modifyExecutionPlanAsync(const Model::ModifyExecutionPlanRequest& request, const ModifyExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyExecutionPlanOutcomeCallable modifyExecutionPlanCallable(const Model::ModifyExecutionPlanRequest& request) const; - ListUserStatisticsOutcome listUserStatistics(const Model::ListUserStatisticsRequest &request)const; - void listUserStatisticsAsync(const Model::ListUserStatisticsRequest& request, const ListUserStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListUserStatisticsOutcomeCallable listUserStatisticsCallable(const Model::ListUserStatisticsRequest& request) const; - AddClusterServiceOutcome addClusterService(const Model::AddClusterServiceRequest &request)const; - void addClusterServiceAsync(const Model::AddClusterServiceRequest& request, const AddClusterServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddClusterServiceOutcomeCallable addClusterServiceCallable(const Model::AddClusterServiceRequest& request) const; - ModifyFlowCategoryOutcome modifyFlowCategory(const Model::ModifyFlowCategoryRequest &request)const; - void modifyFlowCategoryAsync(const Model::ModifyFlowCategoryRequest& request, const ModifyFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyFlowCategoryOutcomeCallable modifyFlowCategoryCallable(const Model::ModifyFlowCategoryRequest& request) const; - QueryAlarmRulesOutcome queryAlarmRules(const Model::QueryAlarmRulesRequest &request)const; - void queryAlarmRulesAsync(const Model::QueryAlarmRulesRequest& request, const QueryAlarmRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryAlarmRulesOutcomeCallable queryAlarmRulesCallable(const Model::QueryAlarmRulesRequest& request) const; - ModifyClusterServiceConfigOutcome modifyClusterServiceConfig(const Model::ModifyClusterServiceConfigRequest &request)const; - void modifyClusterServiceConfigAsync(const Model::ModifyClusterServiceConfigRequest& request, const ModifyClusterServiceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyClusterServiceConfigOutcomeCallable modifyClusterServiceConfigCallable(const Model::ModifyClusterServiceConfigRequest& request) const; + DescribeKafkaReassignOutcome describeKafkaReassign(const Model::DescribeKafkaReassignRequest &request)const; + void describeKafkaReassignAsync(const Model::DescribeKafkaReassignRequest& request, const DescribeKafkaReassignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeKafkaReassignOutcomeCallable describeKafkaReassignCallable(const Model::DescribeKafkaReassignRequest& request) const; + GetAuditLogsOutcome getAuditLogs(const Model::GetAuditLogsRequest &request)const; + void getAuditLogsAsync(const Model::GetAuditLogsRequest& request, const GetAuditLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAuditLogsOutcomeCallable getAuditLogsCallable(const Model::GetAuditLogsRequest& request) const; ListNotesOutcome listNotes(const Model::ListNotesRequest &request)const; void listNotesAsync(const Model::ListNotesRequest& request, const ListNotesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNotesOutcomeCallable listNotesCallable(const Model::ListNotesRequest& request) const; - MetastoreListDataResourcesOutcome metastoreListDataResources(const Model::MetastoreListDataResourcesRequest &request)const; - void metastoreListDataResourcesAsync(const Model::MetastoreListDataResourcesRequest& request, const MetastoreListDataResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreListDataResourcesOutcomeCallable metastoreListDataResourcesCallable(const Model::MetastoreListDataResourcesRequest& request) const; - UpdateETLJobOutcome updateETLJob(const Model::UpdateETLJobRequest &request)const; - void updateETLJobAsync(const Model::UpdateETLJobRequest& request, const UpdateETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateETLJobOutcomeCallable updateETLJobCallable(const Model::UpdateETLJobRequest& request) const; - DescribeScalingTaskGroupOutcome describeScalingTaskGroup(const Model::DescribeScalingTaskGroupRequest &request)const; - void describeScalingTaskGroupAsync(const Model::DescribeScalingTaskGroupRequest& request, const DescribeScalingTaskGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScalingTaskGroupOutcomeCallable describeScalingTaskGroupCallable(const Model::DescribeScalingTaskGroupRequest& request) const; MetastoreDescribeDataSourceOutcome metastoreDescribeDataSource(const Model::MetastoreDescribeDataSourceRequest &request)const; void metastoreDescribeDataSourceAsync(const Model::MetastoreDescribeDataSourceRequest& request, const MetastoreDescribeDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreDescribeDataSourceOutcomeCallable metastoreDescribeDataSourceCallable(const Model::MetastoreDescribeDataSourceRequest& request) const; @@ -2093,339 +2378,198 @@ namespace AlibabaCloud RenderResourcePoolXmlOutcome renderResourcePoolXml(const Model::RenderResourcePoolXmlRequest &request)const; void renderResourcePoolXmlAsync(const Model::RenderResourcePoolXmlRequest& request, const RenderResourcePoolXmlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenderResourcePoolXmlOutcomeCallable renderResourcePoolXmlCallable(const Model::RenderResourcePoolXmlRequest& request) const; - UpdateDataSourceOutcome updateDataSource(const Model::UpdateDataSourceRequest &request)const; - void updateDataSourceAsync(const Model::UpdateDataSourceRequest& request, const UpdateDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateDataSourceOutcomeCallable updateDataSourceCallable(const Model::UpdateDataSourceRequest& request) const; ModifyScalingTaskGroupOutcome modifyScalingTaskGroup(const Model::ModifyScalingTaskGroupRequest &request)const; void modifyScalingTaskGroupAsync(const Model::ModifyScalingTaskGroupRequest& request, const ModifyScalingTaskGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyScalingTaskGroupOutcomeCallable modifyScalingTaskGroupCallable(const Model::ModifyScalingTaskGroupRequest& request) const; - ListDataSourceSchemaDatabaseOutcome listDataSourceSchemaDatabase(const Model::ListDataSourceSchemaDatabaseRequest &request)const; - void listDataSourceSchemaDatabaseAsync(const Model::ListDataSourceSchemaDatabaseRequest& request, const ListDataSourceSchemaDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListDataSourceSchemaDatabaseOutcomeCallable listDataSourceSchemaDatabaseCallable(const Model::ListDataSourceSchemaDatabaseRequest& request) const; DescribeFlowProjectOutcome describeFlowProject(const Model::DescribeFlowProjectRequest &request)const; void describeFlowProjectAsync(const Model::DescribeFlowProjectRequest& request, const DescribeFlowProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowProjectOutcomeCallable describeFlowProjectCallable(const Model::DescribeFlowProjectRequest& request) const; - CreateUsersOutcome createUsers(const Model::CreateUsersRequest &request)const; - void createUsersAsync(const Model::CreateUsersRequest& request, const CreateUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateUsersOutcomeCallable createUsersCallable(const Model::CreateUsersRequest& request) const; - CheckDataSourceOutcome checkDataSource(const Model::CheckDataSourceRequest &request)const; - void checkDataSourceAsync(const Model::CheckDataSourceRequest& request, const CheckDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CheckDataSourceOutcomeCallable checkDataSourceCallable(const Model::CheckDataSourceRequest& request) const; - ListScalingActivityOutcome listScalingActivity(const Model::ListScalingActivityRequest &request)const; - void listScalingActivityAsync(const Model::ListScalingActivityRequest& request, const ListScalingActivityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListScalingActivityOutcomeCallable listScalingActivityCallable(const Model::ListScalingActivityRequest& request) const; - CreateNoteOutcome createNote(const Model::CreateNoteRequest &request)const; - void createNoteAsync(const Model::CreateNoteRequest& request, const CreateNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateNoteOutcomeCallable createNoteCallable(const Model::CreateNoteRequest& request) const; DeleteResourcePoolOutcome deleteResourcePool(const Model::DeleteResourcePoolRequest &request)const; void deleteResourcePoolAsync(const Model::DeleteResourcePoolRequest& request, const DeleteResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteResourcePoolOutcomeCallable deleteResourcePoolCallable(const Model::DeleteResourcePoolRequest& request) const; + QueryUserPoliciesOutcome queryUserPolicies(const Model::QueryUserPoliciesRequest &request)const; + void queryUserPoliciesAsync(const Model::QueryUserPoliciesRequest& request, const QueryUserPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryUserPoliciesOutcomeCallable queryUserPoliciesCallable(const Model::QueryUserPoliciesRequest& request) const; ListFlowJobOutcome listFlowJob(const Model::ListFlowJobRequest &request)const; void listFlowJobAsync(const Model::ListFlowJobRequest& request, const ListFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFlowJobOutcomeCallable listFlowJobCallable(const Model::ListFlowJobRequest& request) const; - RetryExecutionPlanOutcome retryExecutionPlan(const Model::RetryExecutionPlanRequest &request)const; - void retryExecutionPlanAsync(const Model::RetryExecutionPlanRequest& request, const RetryExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RetryExecutionPlanOutcomeCallable retryExecutionPlanCallable(const Model::RetryExecutionPlanRequest& request) const; - DescribeAvailableInstanceTypeOutcome describeAvailableInstanceType(const Model::DescribeAvailableInstanceTypeRequest &request)const; - void describeAvailableInstanceTypeAsync(const Model::DescribeAvailableInstanceTypeRequest& request, const DescribeAvailableInstanceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAvailableInstanceTypeOutcomeCallable describeAvailableInstanceTypeCallable(const Model::DescribeAvailableInstanceTypeRequest& request) const; MetastoreUpdateKafkaTopicBatchOutcome metastoreUpdateKafkaTopicBatch(const Model::MetastoreUpdateKafkaTopicBatchRequest &request)const; void metastoreUpdateKafkaTopicBatchAsync(const Model::MetastoreUpdateKafkaTopicBatchRequest& request, const MetastoreUpdateKafkaTopicBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreUpdateKafkaTopicBatchOutcomeCallable metastoreUpdateKafkaTopicBatchCallable(const Model::MetastoreUpdateKafkaTopicBatchRequest& request) const; + DescribeAvailableInstanceTypeOutcome describeAvailableInstanceType(const Model::DescribeAvailableInstanceTypeRequest &request)const; + void describeAvailableInstanceTypeAsync(const Model::DescribeAvailableInstanceTypeRequest& request, const DescribeAvailableInstanceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableInstanceTypeOutcomeCallable describeAvailableInstanceTypeCallable(const Model::DescribeAvailableInstanceTypeRequest& request) const; ListNavSubTreeOutcome listNavSubTree(const Model::ListNavSubTreeRequest &request)const; void listNavSubTreeAsync(const Model::ListNavSubTreeRequest& request, const ListNavSubTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNavSubTreeOutcomeCallable listNavSubTreeCallable(const Model::ListNavSubTreeRequest& request) const; - ListFlowNodeInstanceContainerStatusOutcome listFlowNodeInstanceContainerStatus(const Model::ListFlowNodeInstanceContainerStatusRequest &request)const; - void listFlowNodeInstanceContainerStatusAsync(const Model::ListFlowNodeInstanceContainerStatusRequest& request, const ListFlowNodeInstanceContainerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowNodeInstanceContainerStatusOutcomeCallable listFlowNodeInstanceContainerStatusCallable(const Model::ListFlowNodeInstanceContainerStatusRequest& request) const; CreateFlowProjectOutcome createFlowProject(const Model::CreateFlowProjectRequest &request)const; void createFlowProjectAsync(const Model::CreateFlowProjectRequest& request, const CreateFlowProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFlowProjectOutcomeCallable createFlowProjectCallable(const Model::CreateFlowProjectRequest& request) const; - MetastoreListDataSourceOutcome metastoreListDataSource(const Model::MetastoreListDataSourceRequest &request)const; - void metastoreListDataSourceAsync(const Model::MetastoreListDataSourceRequest& request, const MetastoreListDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreListDataSourceOutcomeCallable metastoreListDataSourceCallable(const Model::MetastoreListDataSourceRequest& request) const; - GetSupportedOpsCommandOutcome getSupportedOpsCommand(const Model::GetSupportedOpsCommandRequest &request)const; - void getSupportedOpsCommandAsync(const Model::GetSupportedOpsCommandRequest& request, const GetSupportedOpsCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSupportedOpsCommandOutcomeCallable getSupportedOpsCommandCallable(const Model::GetSupportedOpsCommandRequest& request) const; - DescribeETLJobSqlSchemaOutcome describeETLJobSqlSchema(const Model::DescribeETLJobSqlSchemaRequest &request)const; - void describeETLJobSqlSchemaAsync(const Model::DescribeETLJobSqlSchemaRequest& request, const DescribeETLJobSqlSchemaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeETLJobSqlSchemaOutcomeCallable describeETLJobSqlSchemaCallable(const Model::DescribeETLJobSqlSchemaRequest& request) const; CreateVerificationCodeOutcome createVerificationCode(const Model::CreateVerificationCodeRequest &request)const; void createVerificationCodeAsync(const Model::CreateVerificationCodeRequest& request, const CreateVerificationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVerificationCodeOutcomeCallable createVerificationCodeCallable(const Model::CreateVerificationCodeRequest& request) const; - ListExecutionPlanInstancesOutcome listExecutionPlanInstances(const Model::ListExecutionPlanInstancesRequest &request)const; - void listExecutionPlanInstancesAsync(const Model::ListExecutionPlanInstancesRequest& request, const ListExecutionPlanInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListExecutionPlanInstancesOutcomeCallable listExecutionPlanInstancesCallable(const Model::ListExecutionPlanInstancesRequest& request) const; - DetachClusterForNoteOutcome detachClusterForNote(const Model::DetachClusterForNoteRequest &request)const; - void detachClusterForNoteAsync(const Model::DetachClusterForNoteRequest& request, const DetachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetachClusterForNoteOutcomeCallable detachClusterForNoteCallable(const Model::DetachClusterForNoteRequest& 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; - MetastoreDescribeKafkaConsumerGroupOutcome metastoreDescribeKafkaConsumerGroup(const Model::MetastoreDescribeKafkaConsumerGroupRequest &request)const; - void metastoreDescribeKafkaConsumerGroupAsync(const Model::MetastoreDescribeKafkaConsumerGroupRequest& request, const MetastoreDescribeKafkaConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreDescribeKafkaConsumerGroupOutcomeCallable metastoreDescribeKafkaConsumerGroupCallable(const Model::MetastoreDescribeKafkaConsumerGroupRequest& request) const; - MetastoreListTaskOutcome metastoreListTask(const Model::MetastoreListTaskRequest &request)const; - void metastoreListTaskAsync(const Model::MetastoreListTaskRequest& request, const MetastoreListTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreListTaskOutcomeCallable metastoreListTaskCallable(const Model::MetastoreListTaskRequest& request) const; - DescribeClusterOpLogOutcome describeClusterOpLog(const Model::DescribeClusterOpLogRequest &request)const; - void describeClusterOpLogAsync(const Model::DescribeClusterOpLogRequest& request, const DescribeClusterOpLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterOpLogOutcomeCallable describeClusterOpLogCallable(const Model::DescribeClusterOpLogRequest& request) const; + DetachClusterForNoteOutcome detachClusterForNote(const Model::DetachClusterForNoteRequest &request)const; + void detachClusterForNoteAsync(const Model::DetachClusterForNoteRequest& request, const DetachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachClusterForNoteOutcomeCallable detachClusterForNoteCallable(const Model::DetachClusterForNoteRequest& request) const; + ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; + void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; + DeleteBatchResourceUsersOutcome deleteBatchResourceUsers(const Model::DeleteBatchResourceUsersRequest &request)const; + void deleteBatchResourceUsersAsync(const Model::DeleteBatchResourceUsersRequest& request, const DeleteBatchResourceUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBatchResourceUsersOutcomeCallable deleteBatchResourceUsersCallable(const Model::DeleteBatchResourceUsersRequest& request) const; DescribeFlowNodeInstanceOutcome describeFlowNodeInstance(const Model::DescribeFlowNodeInstanceRequest &request)const; void describeFlowNodeInstanceAsync(const Model::DescribeFlowNodeInstanceRequest& request, const DescribeFlowNodeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowNodeInstanceOutcomeCallable describeFlowNodeInstanceCallable(const Model::DescribeFlowNodeInstanceRequest& request) const; + ListStreamingSqlQueryOutcome listStreamingSqlQuery(const Model::ListStreamingSqlQueryRequest &request)const; + void listStreamingSqlQueryAsync(const Model::ListStreamingSqlQueryRequest& request, const ListStreamingSqlQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStreamingSqlQueryOutcomeCallable listStreamingSqlQueryCallable(const Model::ListStreamingSqlQueryRequest& request) const; MetastoreDescribeKafkaTopicOutcome metastoreDescribeKafkaTopic(const Model::MetastoreDescribeKafkaTopicRequest &request)const; void metastoreDescribeKafkaTopicAsync(const Model::MetastoreDescribeKafkaTopicRequest& request, const MetastoreDescribeKafkaTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreDescribeKafkaTopicOutcomeCallable metastoreDescribeKafkaTopicCallable(const Model::MetastoreDescribeKafkaTopicRequest& request) const; ListScalingTaskGroupOutcome listScalingTaskGroup(const Model::ListScalingTaskGroupRequest &request)const; void listScalingTaskGroupAsync(const Model::ListScalingTaskGroupRequest& request, const ListScalingTaskGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListScalingTaskGroupOutcomeCallable listScalingTaskGroupCallable(const Model::ListScalingTaskGroupRequest& request) const; - GetQueueSubmissionStatisticInfoOutcome getQueueSubmissionStatisticInfo(const Model::GetQueueSubmissionStatisticInfoRequest &request)const; - void getQueueSubmissionStatisticInfoAsync(const Model::GetQueueSubmissionStatisticInfoRequest& request, const GetQueueSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetQueueSubmissionStatisticInfoOutcomeCallable getQueueSubmissionStatisticInfoCallable(const Model::GetQueueSubmissionStatisticInfoRequest& request) const; - ListDataSourceOutcome listDataSource(const Model::ListDataSourceRequest &request)const; - void listDataSourceAsync(const Model::ListDataSourceRequest& request, const ListDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListDataSourceOutcomeCallable listDataSourceCallable(const Model::ListDataSourceRequest& request) const; ModifyUserStatisticsOutcome modifyUserStatistics(const Model::ModifyUserStatisticsRequest &request)const; void modifyUserStatisticsAsync(const Model::ModifyUserStatisticsRequest& request, const ModifyUserStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyUserStatisticsOutcomeCallable modifyUserStatisticsCallable(const Model::ModifyUserStatisticsRequest& request) const; - MetastoreCreateKafkaTopicOutcome metastoreCreateKafkaTopic(const Model::MetastoreCreateKafkaTopicRequest &request)const; - void metastoreCreateKafkaTopicAsync(const Model::MetastoreCreateKafkaTopicRequest& request, const MetastoreCreateKafkaTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreCreateKafkaTopicOutcomeCallable metastoreCreateKafkaTopicCallable(const Model::MetastoreCreateKafkaTopicRequest& request) const; - ListETLJobInstanceOutcome listETLJobInstance(const Model::ListETLJobInstanceRequest &request)const; - void listETLJobInstanceAsync(const Model::ListETLJobInstanceRequest& request, const ListETLJobInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListETLJobInstanceOutcomeCallable listETLJobInstanceCallable(const Model::ListETLJobInstanceRequest& request) const; ModifyFlowVariableCollectionOutcome modifyFlowVariableCollection(const Model::ModifyFlowVariableCollectionRequest &request)const; void modifyFlowVariableCollectionAsync(const Model::ModifyFlowVariableCollectionRequest& request, const ModifyFlowVariableCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyFlowVariableCollectionOutcomeCallable modifyFlowVariableCollectionCallable(const Model::ModifyFlowVariableCollectionRequest& request) const; DescribeETLJobInstanceOutcome describeETLJobInstance(const Model::DescribeETLJobInstanceRequest &request)const; void describeETLJobInstanceAsync(const Model::DescribeETLJobInstanceRequest& request, const DescribeETLJobInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeETLJobInstanceOutcomeCallable describeETLJobInstanceCallable(const Model::DescribeETLJobInstanceRequest& request) const; - ModifyExecutionPlanBasicInfoOutcome modifyExecutionPlanBasicInfo(const Model::ModifyExecutionPlanBasicInfoRequest &request)const; - void modifyExecutionPlanBasicInfoAsync(const Model::ModifyExecutionPlanBasicInfoRequest& request, const ModifyExecutionPlanBasicInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyExecutionPlanBasicInfoOutcomeCallable modifyExecutionPlanBasicInfoCallable(const Model::ModifyExecutionPlanBasicInfoRequest& request) const; - SubmitFlowJobOutcome submitFlowJob(const Model::SubmitFlowJobRequest &request)const; - void submitFlowJobAsync(const Model::SubmitFlowJobRequest& request, const SubmitFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitFlowJobOutcomeCallable submitFlowJobCallable(const Model::SubmitFlowJobRequest& request) const; + UpdateUserStatusOutcome updateUserStatus(const Model::UpdateUserStatusRequest &request)const; + void updateUserStatusAsync(const Model::UpdateUserStatusRequest& request, const UpdateUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserStatusOutcomeCallable updateUserStatusCallable(const Model::UpdateUserStatusRequest& request) const; + UpdateUserOutcome updateUser(const Model::UpdateUserRequest &request)const; + void updateUserAsync(const Model::UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserOutcomeCallable updateUserCallable(const Model::UpdateUserRequest& request) const; CreateUserPasswordOutcome createUserPassword(const Model::CreateUserPasswordRequest &request)const; void createUserPasswordAsync(const Model::CreateUserPasswordRequest& request, const CreateUserPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserPasswordOutcomeCallable createUserPasswordCallable(const Model::CreateUserPasswordRequest& request) const; - DescribeETLJobOutcome describeETLJob(const Model::DescribeETLJobRequest &request)const; - void describeETLJobAsync(const Model::DescribeETLJobRequest& request, const DescribeETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeETLJobOutcomeCallable describeETLJobCallable(const Model::DescribeETLJobRequest& request) const; - ListClusterHostComponentOutcome listClusterHostComponent(const Model::ListClusterHostComponentRequest &request)const; - void listClusterHostComponentAsync(const Model::ListClusterHostComponentRequest& request, const ListClusterHostComponentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterHostComponentOutcomeCallable listClusterHostComponentCallable(const Model::ListClusterHostComponentRequest& request) const; + GetFlowAuditLogsOutcome getFlowAuditLogs(const Model::GetFlowAuditLogsRequest &request)const; + void getFlowAuditLogsAsync(const Model::GetFlowAuditLogsRequest& request, const GetFlowAuditLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFlowAuditLogsOutcomeCallable getFlowAuditLogsCallable(const Model::GetFlowAuditLogsRequest& request) const; + RefreshClusterResourcePoolForAdminOutcome refreshClusterResourcePoolForAdmin(const Model::RefreshClusterResourcePoolForAdminRequest &request)const; + void refreshClusterResourcePoolForAdminAsync(const Model::RefreshClusterResourcePoolForAdminRequest& request, const RefreshClusterResourcePoolForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshClusterResourcePoolForAdminOutcomeCallable refreshClusterResourcePoolForAdminCallable(const Model::RefreshClusterResourcePoolForAdminRequest& request) const; ListAlertDingDingGroupOutcome listAlertDingDingGroup(const Model::ListAlertDingDingGroupRequest &request)const; void listAlertDingDingGroupAsync(const Model::ListAlertDingDingGroupRequest& request, const ListAlertDingDingGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAlertDingDingGroupOutcomeCallable listAlertDingDingGroupCallable(const Model::ListAlertDingDingGroupRequest& request) const; CloneDataSourceOutcome cloneDataSource(const Model::CloneDataSourceRequest &request)const; void cloneDataSourceAsync(const Model::CloneDataSourceRequest& request, const CloneDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloneDataSourceOutcomeCallable cloneDataSourceCallable(const Model::CloneDataSourceRequest& request) const; - GetJobRunningTimeStatisticInfoOutcome getJobRunningTimeStatisticInfo(const Model::GetJobRunningTimeStatisticInfoRequest &request)const; - void getJobRunningTimeStatisticInfoAsync(const Model::GetJobRunningTimeStatisticInfoRequest& request, const GetJobRunningTimeStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetJobRunningTimeStatisticInfoOutcomeCallable getJobRunningTimeStatisticInfoCallable(const Model::GetJobRunningTimeStatisticInfoRequest& request) const; - ListFlowProjectClusterSettingOutcome listFlowProjectClusterSetting(const Model::ListFlowProjectClusterSettingRequest &request)const; - void listFlowProjectClusterSettingAsync(const Model::ListFlowProjectClusterSettingRequest& request, const ListFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowProjectClusterSettingOutcomeCallable listFlowProjectClusterSettingCallable(const Model::ListFlowProjectClusterSettingRequest& request) const; DescribeFlowProjectClusterSettingOutcome describeFlowProjectClusterSetting(const Model::DescribeFlowProjectClusterSettingRequest &request)const; void describeFlowProjectClusterSettingAsync(const Model::DescribeFlowProjectClusterSettingRequest& request, const DescribeFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowProjectClusterSettingOutcomeCallable describeFlowProjectClusterSettingCallable(const Model::DescribeFlowProjectClusterSettingRequest& request) const; SyncDataSourceSchemaTableOutcome syncDataSourceSchemaTable(const Model::SyncDataSourceSchemaTableRequest &request)const; void syncDataSourceSchemaTableAsync(const Model::SyncDataSourceSchemaTableRequest& request, const SyncDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SyncDataSourceSchemaTableOutcomeCallable syncDataSourceSchemaTableCallable(const Model::SyncDataSourceSchemaTableRequest& request) const; - ListJobExecutionInstancesOutcome listJobExecutionInstances(const Model::ListJobExecutionInstancesRequest &request)const; - void listJobExecutionInstancesAsync(const Model::ListJobExecutionInstancesRequest& request, const ListJobExecutionInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobExecutionInstancesOutcomeCallable listJobExecutionInstancesCallable(const Model::ListJobExecutionInstancesRequest& request) const; TerminateClusterOperationOutcome terminateClusterOperation(const Model::TerminateClusterOperationRequest &request)const; void terminateClusterOperationAsync(const Model::TerminateClusterOperationRequest& request, const TerminateClusterOperationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TerminateClusterOperationOutcomeCallable terminateClusterOperationCallable(const Model::TerminateClusterOperationRequest& request) const; - ListSlsLogstoreInfoOutcome listSlsLogstoreInfo(const Model::ListSlsLogstoreInfoRequest &request)const; - void listSlsLogstoreInfoAsync(const Model::ListSlsLogstoreInfoRequest& request, const ListSlsLogstoreInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSlsLogstoreInfoOutcomeCallable listSlsLogstoreInfoCallable(const Model::ListSlsLogstoreInfoRequest& request) const; - MetastoreDropTableOutcome metastoreDropTable(const Model::MetastoreDropTableRequest &request)const; - void metastoreDropTableAsync(const Model::MetastoreDropTableRequest& request, const MetastoreDropTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreDropTableOutcomeCallable metastoreDropTableCallable(const Model::MetastoreDropTableRequest& request) const; - GetOpsCommandDetailOutcome getOpsCommandDetail(const Model::GetOpsCommandDetailRequest &request)const; - void getOpsCommandDetailAsync(const Model::GetOpsCommandDetailRequest& request, const GetOpsCommandDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOpsCommandDetailOutcomeCallable getOpsCommandDetailCallable(const Model::GetOpsCommandDetailRequest& request) const; - ListClusterServiceOutcome listClusterService(const Model::ListClusterServiceRequest &request)const; - void listClusterServiceAsync(const Model::ListClusterServiceRequest& request, const ListClusterServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterServiceOutcomeCallable listClusterServiceCallable(const Model::ListClusterServiceRequest& request) const; - CreateScalingRuleOutcome createScalingRule(const Model::CreateScalingRuleRequest &request)const; - void createScalingRuleAsync(const Model::CreateScalingRuleRequest& request, const CreateScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateScalingRuleOutcomeCallable createScalingRuleCallable(const Model::CreateScalingRuleRequest& request) const; CreateNavNodeOutcome createNavNode(const Model::CreateNavNodeRequest &request)const; void createNavNodeAsync(const Model::CreateNavNodeRequest& request, const CreateNavNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNavNodeOutcomeCallable createNavNodeCallable(const Model::CreateNavNodeRequest& request) const; + DeleteResourceUserOutcome deleteResourceUser(const Model::DeleteResourceUserRequest &request)const; + void deleteResourceUserAsync(const Model::DeleteResourceUserRequest& request, const DeleteResourceUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteResourceUserOutcomeCallable deleteResourceUserCallable(const Model::DeleteResourceUserRequest& request) const; DeleteFlowProjectOutcome deleteFlowProject(const Model::DeleteFlowProjectRequest &request)const; void deleteFlowProjectAsync(const Model::DeleteFlowProjectRequest& request, const DeleteFlowProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFlowProjectOutcomeCallable deleteFlowProjectCallable(const Model::DeleteFlowProjectRequest& request) const; ReleaseClusterOutcome releaseCluster(const Model::ReleaseClusterRequest &request)const; void releaseClusterAsync(const Model::ReleaseClusterRequest& request, const ReleaseClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseClusterOutcomeCallable releaseClusterCallable(const Model::ReleaseClusterRequest& request) const; - RetryCreateUserPasswordOutcome retryCreateUserPassword(const Model::RetryCreateUserPasswordRequest &request)const; - void retryCreateUserPasswordAsync(const Model::RetryCreateUserPasswordRequest& request, const RetryCreateUserPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RetryCreateUserPasswordOutcomeCallable retryCreateUserPasswordCallable(const Model::RetryCreateUserPasswordRequest& request) const; ListSupportedServiceNameOutcome listSupportedServiceName(const Model::ListSupportedServiceNameRequest &request)const; void listSupportedServiceNameAsync(const Model::ListSupportedServiceNameRequest& request, const ListSupportedServiceNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSupportedServiceNameOutcomeCallable listSupportedServiceNameCallable(const Model::ListSupportedServiceNameRequest& request) const; + RetryCreateUserPasswordOutcome retryCreateUserPassword(const Model::RetryCreateUserPasswordRequest &request)const; + void retryCreateUserPasswordAsync(const Model::RetryCreateUserPasswordRequest& request, const RetryCreateUserPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryCreateUserPasswordOutcomeCallable retryCreateUserPasswordCallable(const Model::RetryCreateUserPasswordRequest& request) const; + PlanHostNameOutcome planHostName(const Model::PlanHostNameRequest &request)const; + void planHostNameAsync(const Model::PlanHostNameRequest& request, const PlanHostNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PlanHostNameOutcomeCallable planHostNameCallable(const Model::PlanHostNameRequest& request) const; ListJobInstanceWorkersOutcome listJobInstanceWorkers(const Model::ListJobInstanceWorkersRequest &request)const; void listJobInstanceWorkersAsync(const Model::ListJobInstanceWorkersRequest& request, const ListJobInstanceWorkersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobInstanceWorkersOutcomeCallable listJobInstanceWorkersCallable(const Model::ListJobInstanceWorkersRequest& request) const; - DeleteNoteOutcome deleteNote(const Model::DeleteNoteRequest &request)const; - void deleteNoteAsync(const Model::DeleteNoteRequest& request, const DeleteNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNoteOutcomeCallable deleteNoteCallable(const Model::DeleteNoteRequest& request) const; - ListFlowClusterAllHostsOutcome listFlowClusterAllHosts(const Model::ListFlowClusterAllHostsRequest &request)const; - void listFlowClusterAllHostsAsync(const Model::ListFlowClusterAllHostsRequest& request, const ListFlowClusterAllHostsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowClusterAllHostsOutcomeCallable listFlowClusterAllHostsCallable(const Model::ListFlowClusterAllHostsRequest& request) const; + ModifyHostPoolOutcome modifyHostPool(const Model::ModifyHostPoolRequest &request)const; + void modifyHostPoolAsync(const Model::ModifyHostPoolRequest& request, const ModifyHostPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHostPoolOutcomeCallable modifyHostPoolCallable(const Model::ModifyHostPoolRequest& request) const; MigrateClusterHostGroupHostOutcome migrateClusterHostGroupHost(const Model::MigrateClusterHostGroupHostRequest &request)const; void migrateClusterHostGroupHostAsync(const Model::MigrateClusterHostGroupHostRequest& request, const MigrateClusterHostGroupHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MigrateClusterHostGroupHostOutcomeCallable migrateClusterHostGroupHostCallable(const Model::MigrateClusterHostGroupHostRequest& request) const; - GetLogHistogramOutcome getLogHistogram(const Model::GetLogHistogramRequest &request)const; - void getLogHistogramAsync(const Model::GetLogHistogramRequest& request, const GetLogHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLogHistogramOutcomeCallable getLogHistogramCallable(const Model::GetLogHistogramRequest& request) const; - MetastoreDeleteDataResourceOutcome metastoreDeleteDataResource(const Model::MetastoreDeleteDataResourceRequest &request)const; - void metastoreDeleteDataResourceAsync(const Model::MetastoreDeleteDataResourceRequest& request, const MetastoreDeleteDataResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreDeleteDataResourceOutcomeCallable metastoreDeleteDataResourceCallable(const Model::MetastoreDeleteDataResourceRequest& request) const; - DeleteResourceQueueOutcome deleteResourceQueue(const Model::DeleteResourceQueueRequest &request)const; - void deleteResourceQueueAsync(const Model::DeleteResourceQueueRequest& request, const DeleteResourceQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteResourceQueueOutcomeCallable deleteResourceQueueCallable(const Model::DeleteResourceQueueRequest& request) const; - DescribeClusterResourcePoolSchedulerTypeOutcome describeClusterResourcePoolSchedulerType(const Model::DescribeClusterResourcePoolSchedulerTypeRequest &request)const; - void describeClusterResourcePoolSchedulerTypeAsync(const Model::DescribeClusterResourcePoolSchedulerTypeRequest& request, const DescribeClusterResourcePoolSchedulerTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterResourcePoolSchedulerTypeOutcomeCallable describeClusterResourcePoolSchedulerTypeCallable(const Model::DescribeClusterResourcePoolSchedulerTypeRequest& request) const; - DescribeFlowCategoryTreeOutcome describeFlowCategoryTree(const Model::DescribeFlowCategoryTreeRequest &request)const; - void describeFlowCategoryTreeAsync(const Model::DescribeFlowCategoryTreeRequest& request, const DescribeFlowCategoryTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFlowCategoryTreeOutcomeCallable describeFlowCategoryTreeCallable(const Model::DescribeFlowCategoryTreeRequest& request) const; ListServiceLogOutcome listServiceLog(const Model::ListServiceLogRequest &request)const; void listServiceLogAsync(const Model::ListServiceLogRequest& request, const ListServiceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListServiceLogOutcomeCallable listServiceLogCallable(const Model::ListServiceLogRequest& request) const; - ListFlowNodeSqlResultOutcome listFlowNodeSqlResult(const Model::ListFlowNodeSqlResultRequest &request)const; - void listFlowNodeSqlResultAsync(const Model::ListFlowNodeSqlResultRequest& request, const ListFlowNodeSqlResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowNodeSqlResultOutcomeCallable listFlowNodeSqlResultCallable(const Model::ListFlowNodeSqlResultRequest& request) const; - ModifyFlowForWebOutcome modifyFlowForWeb(const Model::ModifyFlowForWebRequest &request)const; - void modifyFlowForWebAsync(const Model::ModifyFlowForWebRequest& request, const ModifyFlowForWebAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyFlowForWebOutcomeCallable modifyFlowForWebCallable(const Model::ModifyFlowForWebRequest& request) const; - RunNoteParagraphsOutcome runNoteParagraphs(const Model::RunNoteParagraphsRequest &request)const; - void runNoteParagraphsAsync(const Model::RunNoteParagraphsRequest& request, const RunNoteParagraphsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RunNoteParagraphsOutcomeCallable runNoteParagraphsCallable(const Model::RunNoteParagraphsRequest& request) const; - ListJobExecutionPlanParamsOutcome listJobExecutionPlanParams(const Model::ListJobExecutionPlanParamsRequest &request)const; - void listJobExecutionPlanParamsAsync(const Model::ListJobExecutionPlanParamsRequest& request, const ListJobExecutionPlanParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobExecutionPlanParamsOutcomeCallable listJobExecutionPlanParamsCallable(const Model::ListJobExecutionPlanParamsRequest& request) const; - DescribeFlowNodeInstanceContainerLogOutcome describeFlowNodeInstanceContainerLog(const Model::DescribeFlowNodeInstanceContainerLogRequest &request)const; - void describeFlowNodeInstanceContainerLogAsync(const Model::DescribeFlowNodeInstanceContainerLogRequest& request, const DescribeFlowNodeInstanceContainerLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFlowNodeInstanceContainerLogOutcomeCallable describeFlowNodeInstanceContainerLogCallable(const Model::DescribeFlowNodeInstanceContainerLogRequest& request) const; + DescribeFlowCategoryTreeOutcome describeFlowCategoryTree(const Model::DescribeFlowCategoryTreeRequest &request)const; + void describeFlowCategoryTreeAsync(const Model::DescribeFlowCategoryTreeRequest& request, const DescribeFlowCategoryTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowCategoryTreeOutcomeCallable describeFlowCategoryTreeCallable(const Model::DescribeFlowCategoryTreeRequest& request) const; + GetBackPlanInfoOutcome getBackPlanInfo(const Model::GetBackPlanInfoRequest &request)const; + void getBackPlanInfoAsync(const Model::GetBackPlanInfoRequest& request, const GetBackPlanInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBackPlanInfoOutcomeCallable getBackPlanInfoCallable(const Model::GetBackPlanInfoRequest& request) const; CancelETLJobReleaseOutcome cancelETLJobRelease(const Model::CancelETLJobReleaseRequest &request)const; void cancelETLJobReleaseAsync(const Model::CancelETLJobReleaseRequest& request, const CancelETLJobReleaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelETLJobReleaseOutcomeCallable cancelETLJobReleaseCallable(const Model::CancelETLJobReleaseRequest& request) const; + ListStackOutcome listStack(const Model::ListStackRequest &request)const; + void listStackAsync(const Model::ListStackRequest& request, const ListStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStackOutcomeCallable listStackCallable(const Model::ListStackRequest& request) const; ListClusterTagOutcome listClusterTag(const Model::ListClusterTagRequest &request)const; void listClusterTagAsync(const Model::ListClusterTagRequest& request, const ListClusterTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterTagOutcomeCallable listClusterTagCallable(const Model::ListClusterTagRequest& request) const; - GetUserOutputStatisticInfoOutcome getUserOutputStatisticInfo(const Model::GetUserOutputStatisticInfoRequest &request)const; - void getUserOutputStatisticInfoAsync(const Model::GetUserOutputStatisticInfoRequest& request, const GetUserOutputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserOutputStatisticInfoOutcomeCallable getUserOutputStatisticInfoCallable(const Model::GetUserOutputStatisticInfoRequest& request) const; ModifyJobExecutionPlanFolderOutcome modifyJobExecutionPlanFolder(const Model::ModifyJobExecutionPlanFolderRequest &request)const; void modifyJobExecutionPlanFolderAsync(const Model::ModifyJobExecutionPlanFolderRequest& request, const ModifyJobExecutionPlanFolderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyJobExecutionPlanFolderOutcomeCallable modifyJobExecutionPlanFolderCallable(const Model::ModifyJobExecutionPlanFolderRequest& request) const; - DescribeClusterBasicInfoOutcome describeClusterBasicInfo(const Model::DescribeClusterBasicInfoRequest &request)const; - void describeClusterBasicInfoAsync(const Model::DescribeClusterBasicInfoRequest& request, const DescribeClusterBasicInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterBasicInfoOutcomeCallable describeClusterBasicInfoCallable(const Model::DescribeClusterBasicInfoRequest& request) const; - GetOpsCommandResultOutcome getOpsCommandResult(const Model::GetOpsCommandResultRequest &request)const; - void getOpsCommandResultAsync(const Model::GetOpsCommandResultRequest& request, const GetOpsCommandResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOpsCommandResultOutcomeCallable getOpsCommandResultCallable(const Model::GetOpsCommandResultRequest& request) const; - ListEmrAvailableConfigOutcome listEmrAvailableConfig(const Model::ListEmrAvailableConfigRequest &request)const; - void listEmrAvailableConfigAsync(const Model::ListEmrAvailableConfigRequest& request, const ListEmrAvailableConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListEmrAvailableConfigOutcomeCallable listEmrAvailableConfigCallable(const Model::ListEmrAvailableConfigRequest& request) const; ModifyAlertUserGroupOutcome modifyAlertUserGroup(const Model::ModifyAlertUserGroupRequest &request)const; void modifyAlertUserGroupAsync(const Model::ModifyAlertUserGroupRequest& request, const ModifyAlertUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAlertUserGroupOutcomeCallable modifyAlertUserGroupCallable(const Model::ModifyAlertUserGroupRequest& request) const; MetastoreListDatabasesOutcome metastoreListDatabases(const Model::MetastoreListDatabasesRequest &request)const; void metastoreListDatabasesAsync(const Model::MetastoreListDatabasesRequest& request, const MetastoreListDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MetastoreListDatabasesOutcomeCallable metastoreListDatabasesCallable(const Model::MetastoreListDatabasesRequest& request) const; - ListAlertUserGroupOutcome listAlertUserGroup(const Model::ListAlertUserGroupRequest &request)const; - void listAlertUserGroupAsync(const Model::ListAlertUserGroupRequest& request, const ListAlertUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlertUserGroupOutcomeCallable listAlertUserGroupCallable(const Model::ListAlertUserGroupRequest& request) const; ModifyResourceQueueOutcome modifyResourceQueue(const Model::ModifyResourceQueueRequest &request)const; void modifyResourceQueueAsync(const Model::ModifyResourceQueueRequest& request, const ModifyResourceQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyResourceQueueOutcomeCallable modifyResourceQueueCallable(const Model::ModifyResourceQueueRequest& request) const; - MetastoreSearchTablesOutcome metastoreSearchTables(const Model::MetastoreSearchTablesRequest &request)const; - void metastoreSearchTablesAsync(const Model::MetastoreSearchTablesRequest& request, const MetastoreSearchTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreSearchTablesOutcomeCallable metastoreSearchTablesCallable(const Model::MetastoreSearchTablesRequest& request) const; - ListFlowClusterOutcome listFlowCluster(const Model::ListFlowClusterRequest &request)const; - void listFlowClusterAsync(const Model::ListFlowClusterRequest& request, const ListFlowClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFlowClusterOutcomeCallable listFlowClusterCallable(const Model::ListFlowClusterRequest& request) const; DescribeSecurityGroupAttributeOutcome describeSecurityGroupAttribute(const Model::DescribeSecurityGroupAttributeRequest &request)const; void describeSecurityGroupAttributeAsync(const Model::DescribeSecurityGroupAttributeRequest& request, const DescribeSecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecurityGroupAttributeOutcomeCallable describeSecurityGroupAttributeCallable(const Model::DescribeSecurityGroupAttributeRequest& request) const; - DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; - void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; ListFlowCategoryOutcome listFlowCategory(const Model::ListFlowCategoryRequest &request)const; void listFlowCategoryAsync(const Model::ListFlowCategoryRequest& request, const ListFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFlowCategoryOutcomeCallable listFlowCategoryCallable(const Model::ListFlowCategoryRequest& request) const; - ModifyJobExecutionPlanParamOutcome modifyJobExecutionPlanParam(const Model::ModifyJobExecutionPlanParamRequest &request)const; - void modifyJobExecutionPlanParamAsync(const Model::ModifyJobExecutionPlanParamRequest& request, const ModifyJobExecutionPlanParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyJobExecutionPlanParamOutcomeCallable modifyJobExecutionPlanParamCallable(const Model::ModifyJobExecutionPlanParamRequest& request) const; - ResizeClusterV2Outcome resizeClusterV2(const Model::ResizeClusterV2Request &request)const; - void resizeClusterV2Async(const Model::ResizeClusterV2Request& request, const ResizeClusterV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResizeClusterV2OutcomeCallable resizeClusterV2Callable(const Model::ResizeClusterV2Request& request) const; DescribeExecutionPlanOutcome describeExecutionPlan(const Model::DescribeExecutionPlanRequest &request)const; void describeExecutionPlanAsync(const Model::DescribeExecutionPlanRequest& request, const DescribeExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeExecutionPlanOutcomeCallable describeExecutionPlanCallable(const Model::DescribeExecutionPlanRequest& request) const; CreateFlowProjectUserOutcome createFlowProjectUser(const Model::CreateFlowProjectUserRequest &request)const; void createFlowProjectUserAsync(const Model::CreateFlowProjectUserRequest& request, const CreateFlowProjectUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFlowProjectUserOutcomeCallable createFlowProjectUserCallable(const Model::CreateFlowProjectUserRequest& request) const; - CreateFlowCategoryOutcome createFlowCategory(const Model::CreateFlowCategoryRequest &request)const; - void createFlowCategoryAsync(const Model::CreateFlowCategoryRequest& request, const CreateFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFlowCategoryOutcomeCallable createFlowCategoryCallable(const Model::CreateFlowCategoryRequest& request) const; DeleteFlowProjectClusterSettingOutcome deleteFlowProjectClusterSetting(const Model::DeleteFlowProjectClusterSettingRequest &request)const; void deleteFlowProjectClusterSettingAsync(const Model::DeleteFlowProjectClusterSettingRequest& request, const DeleteFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFlowProjectClusterSettingOutcomeCallable deleteFlowProjectClusterSettingCallable(const Model::DeleteFlowProjectClusterSettingRequest& request) const; + DescribeUserGroupOutcome describeUserGroup(const Model::DescribeUserGroupRequest &request)const; + void describeUserGroupAsync(const Model::DescribeUserGroupRequest& request, const DescribeUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserGroupOutcomeCallable describeUserGroupCallable(const Model::DescribeUserGroupRequest& request) const; DeleteExecutionPlanOutcome deleteExecutionPlan(const Model::DeleteExecutionPlanRequest &request)const; void deleteExecutionPlanAsync(const Model::DeleteExecutionPlanRequest& request, const DeleteExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteExecutionPlanOutcomeCallable deleteExecutionPlanCallable(const Model::DeleteExecutionPlanRequest& request) const; - ListClusterServiceCustomActionSupportConfigOutcome listClusterServiceCustomActionSupportConfig(const Model::ListClusterServiceCustomActionSupportConfigRequest &request)const; - void listClusterServiceCustomActionSupportConfigAsync(const Model::ListClusterServiceCustomActionSupportConfigRequest& request, const ListClusterServiceCustomActionSupportConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListClusterServiceCustomActionSupportConfigOutcomeCallable listClusterServiceCustomActionSupportConfigCallable(const Model::ListClusterServiceCustomActionSupportConfigRequest& request) const; - MetastoreDescribeTableOutcome metastoreDescribeTable(const Model::MetastoreDescribeTableRequest &request)const; - void metastoreDescribeTableAsync(const Model::MetastoreDescribeTableRequest& request, const MetastoreDescribeTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreDescribeTableOutcomeCallable metastoreDescribeTableCallable(const Model::MetastoreDescribeTableRequest& request) const; - GetLogDownloadUrlOutcome getLogDownloadUrl(const Model::GetLogDownloadUrlRequest &request)const; - void getLogDownloadUrlAsync(const Model::GetLogDownloadUrlRequest& request, const GetLogDownloadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLogDownloadUrlOutcomeCallable getLogDownloadUrlCallable(const Model::GetLogDownloadUrlRequest& request) const; - ModifyFlowOutcome modifyFlow(const Model::ModifyFlowRequest &request)const; - void modifyFlowAsync(const Model::ModifyFlowRequest& request, const ModifyFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyFlowOutcomeCallable modifyFlowCallable(const Model::ModifyFlowRequest& request) const; - DescribeScalingRuleOutcome describeScalingRule(const Model::DescribeScalingRuleRequest &request)const; - void describeScalingRuleAsync(const Model::DescribeScalingRuleRequest& request, const DescribeScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScalingRuleOutcomeCallable describeScalingRuleCallable(const Model::DescribeScalingRuleRequest& request) const; + UpdateUserGroupOutcome updateUserGroup(const Model::UpdateUserGroupRequest &request)const; + void updateUserGroupAsync(const Model::UpdateUserGroupRequest& request, const UpdateUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserGroupOutcomeCallable updateUserGroupCallable(const Model::UpdateUserGroupRequest& request) const; RunParagraphOutcome runParagraph(const Model::RunParagraphRequest &request)const; void runParagraphAsync(const Model::RunParagraphRequest& request, const RunParagraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RunParagraphOutcomeCallable runParagraphCallable(const Model::RunParagraphRequest& request) const; SyncDataSourceSchemaDatabaseOutcome syncDataSourceSchemaDatabase(const Model::SyncDataSourceSchemaDatabaseRequest &request)const; void syncDataSourceSchemaDatabaseAsync(const Model::SyncDataSourceSchemaDatabaseRequest& request, const SyncDataSourceSchemaDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SyncDataSourceSchemaDatabaseOutcomeCallable syncDataSourceSchemaDatabaseCallable(const Model::SyncDataSourceSchemaDatabaseRequest& request) const; - CreateUserStatisticsOutcome createUserStatistics(const Model::CreateUserStatisticsRequest &request)const; - void createUserStatisticsAsync(const Model::CreateUserStatisticsRequest& request, const CreateUserStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateUserStatisticsOutcomeCallable createUserStatisticsCallable(const Model::CreateUserStatisticsRequest& request) const; DescribeClusterServiceConfigOutcome describeClusterServiceConfig(const Model::DescribeClusterServiceConfigRequest &request)const; void describeClusterServiceConfigAsync(const Model::DescribeClusterServiceConfigRequest& request, const DescribeClusterServiceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterServiceConfigOutcomeCallable describeClusterServiceConfigCallable(const Model::DescribeClusterServiceConfigRequest& request) const; - ModifyFlowProjectClusterSettingOutcome modifyFlowProjectClusterSetting(const Model::ModifyFlowProjectClusterSettingRequest &request)const; - void modifyFlowProjectClusterSettingAsync(const Model::ModifyFlowProjectClusterSettingRequest& request, const ModifyFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyFlowProjectClusterSettingOutcomeCallable modifyFlowProjectClusterSettingCallable(const Model::ModifyFlowProjectClusterSettingRequest& request) const; - DeleteJobOutcome deleteJob(const Model::DeleteJobRequest &request)const; - void deleteJobAsync(const Model::DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteJobOutcomeCallable deleteJobCallable(const Model::DeleteJobRequest& request) const; ModifyExecutionPlanClusterInfoOutcome modifyExecutionPlanClusterInfo(const Model::ModifyExecutionPlanClusterInfoRequest &request)const; void modifyExecutionPlanClusterInfoAsync(const Model::ModifyExecutionPlanClusterInfoRequest& request, const ModifyExecutionPlanClusterInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyExecutionPlanClusterInfoOutcomeCallable modifyExecutionPlanClusterInfoCallable(const Model::ModifyExecutionPlanClusterInfoRequest& request) const; - ModifyClusterNameOutcome modifyClusterName(const Model::ModifyClusterNameRequest &request)const; - void modifyClusterNameAsync(const Model::ModifyClusterNameRequest& request, const ModifyClusterNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyClusterNameOutcomeCallable modifyClusterNameCallable(const Model::ModifyClusterNameRequest& request) const; - MetastoreListTablesOutcome metastoreListTables(const Model::MetastoreListTablesRequest &request)const; - void metastoreListTablesAsync(const Model::MetastoreListTablesRequest& request, const MetastoreListTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MetastoreListTablesOutcomeCallable metastoreListTablesCallable(const Model::MetastoreListTablesRequest& request) const; + ListUsersByConditionOutcome listUsersByCondition(const Model::ListUsersByConditionRequest &request)const; + void listUsersByConditionAsync(const Model::ListUsersByConditionRequest& request, const ListUsersByConditionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersByConditionOutcomeCallable listUsersByConditionCallable(const Model::ListUsersByConditionRequest& request) const; ListClusterOperationHostTaskOutcome listClusterOperationHostTask(const Model::ListClusterOperationHostTaskRequest &request)const; void listClusterOperationHostTaskAsync(const Model::ListClusterOperationHostTaskRequest& request, const ListClusterOperationHostTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterOperationHostTaskOutcomeCallable listClusterOperationHostTaskCallable(const Model::ListClusterOperationHostTaskRequest& request) const; @@ -2438,33 +2582,633 @@ namespace AlibabaCloud ListRequiredServiceOutcome listRequiredService(const Model::ListRequiredServiceRequest &request)const; void listRequiredServiceAsync(const Model::ListRequiredServiceRequest& request, const ListRequiredServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRequiredServiceOutcomeCallable listRequiredServiceCallable(const Model::ListRequiredServiceRequest& request) const; + ListBackupPlansOutcome listBackupPlans(const Model::ListBackupPlansRequest &request)const; + void listBackupPlansAsync(const Model::ListBackupPlansRequest& request, const ListBackupPlansAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBackupPlansOutcomeCallable listBackupPlansCallable(const Model::ListBackupPlansRequest& request) const; ListFlowProjectUserOutcome listFlowProjectUser(const Model::ListFlowProjectUserRequest &request)const; void listFlowProjectUserAsync(const Model::ListFlowProjectUserRequest& request, const ListFlowProjectUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFlowProjectUserOutcomeCallable listFlowProjectUserCallable(const Model::ListFlowProjectUserRequest& request) const; SuspendExecutionPlanSchedulerOutcome suspendExecutionPlanScheduler(const Model::SuspendExecutionPlanSchedulerRequest &request)const; void suspendExecutionPlanSchedulerAsync(const Model::SuspendExecutionPlanSchedulerRequest& request, const SuspendExecutionPlanSchedulerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SuspendExecutionPlanSchedulerOutcomeCallable suspendExecutionPlanSchedulerCallable(const Model::SuspendExecutionPlanSchedulerRequest& request) const; + DeleteUserGroupOutcome deleteUserGroup(const Model::DeleteUserGroupRequest &request)const; + void deleteUserGroupAsync(const Model::DeleteUserGroupRequest& request, const DeleteUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserGroupOutcomeCallable deleteUserGroupCallable(const Model::DeleteUserGroupRequest& request) const; + DeleteClusterHostGroupOutcome deleteClusterHostGroup(const Model::DeleteClusterHostGroupRequest &request)const; + void deleteClusterHostGroupAsync(const Model::DeleteClusterHostGroupRequest& request, const DeleteClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClusterHostGroupOutcomeCallable deleteClusterHostGroupCallable(const Model::DeleteClusterHostGroupRequest& request) const; + DescribeDataSourceSchemaTableOutcome describeDataSourceSchemaTable(const Model::DescribeDataSourceSchemaTableRequest &request)const; + void describeDataSourceSchemaTableAsync(const Model::DescribeDataSourceSchemaTableRequest& request, const DescribeDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataSourceSchemaTableOutcomeCallable describeDataSourceSchemaTableCallable(const Model::DescribeDataSourceSchemaTableRequest& request) const; + OperateExistsNodeClusterOutcome operateExistsNodeCluster(const Model::OperateExistsNodeClusterRequest &request)const; + void operateExistsNodeClusterAsync(const Model::OperateExistsNodeClusterRequest& request, const OperateExistsNodeClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateExistsNodeClusterOutcomeCallable operateExistsNodeClusterCallable(const Model::OperateExistsNodeClusterRequest& request) const; + DescribeDataSourceCommandOutcome describeDataSourceCommand(const Model::DescribeDataSourceCommandRequest &request)const; + void describeDataSourceCommandAsync(const Model::DescribeDataSourceCommandRequest& request, const DescribeDataSourceCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataSourceCommandOutcomeCallable describeDataSourceCommandCallable(const Model::DescribeDataSourceCommandRequest& request) const; + ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; + void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + ListResourcePoolOutcome listResourcePool(const Model::ListResourcePoolRequest &request)const; + void listResourcePoolAsync(const Model::ListResourcePoolRequest& request, const ListResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourcePoolOutcomeCallable listResourcePoolCallable(const Model::ListResourcePoolRequest& request) const; + ListFlowClusterHostOutcome listFlowClusterHost(const Model::ListFlowClusterHostRequest &request)const; + void listFlowClusterHostAsync(const Model::ListFlowClusterHostRequest& request, const ListFlowClusterHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowClusterHostOutcomeCallable listFlowClusterHostCallable(const Model::ListFlowClusterHostRequest& request) const; + KillFlowOutcome killFlow(const Model::KillFlowRequest &request)const; + void killFlowAsync(const Model::KillFlowRequest& request, const KillFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillFlowOutcomeCallable killFlowCallable(const Model::KillFlowRequest& request) const; + RunOpsCommandOutcome runOpsCommand(const Model::RunOpsCommandRequest &request)const; + void runOpsCommandAsync(const Model::RunOpsCommandRequest& request, const RunOpsCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunOpsCommandOutcomeCallable runOpsCommandCallable(const Model::RunOpsCommandRequest& request) const; + ModifyExecutionPlanJobInfoOutcome modifyExecutionPlanJobInfo(const Model::ModifyExecutionPlanJobInfoRequest &request)const; + void modifyExecutionPlanJobInfoAsync(const Model::ModifyExecutionPlanJobInfoRequest& request, const ModifyExecutionPlanJobInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExecutionPlanJobInfoOutcomeCallable modifyExecutionPlanJobInfoCallable(const Model::ModifyExecutionPlanJobInfoRequest& request) const; + DeleteClusterTemplateOutcome deleteClusterTemplate(const Model::DeleteClusterTemplateRequest &request)const; + void deleteClusterTemplateAsync(const Model::DeleteClusterTemplateRequest& request, const DeleteClusterTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClusterTemplateOutcomeCallable deleteClusterTemplateCallable(const Model::DeleteClusterTemplateRequest& request) const; + ListKafkaTopicStatisticsOutcome listKafkaTopicStatistics(const Model::ListKafkaTopicStatisticsRequest &request)const; + void listKafkaTopicStatisticsAsync(const Model::ListKafkaTopicStatisticsRequest& request, const ListKafkaTopicStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListKafkaTopicStatisticsOutcomeCallable listKafkaTopicStatisticsCallable(const Model::ListKafkaTopicStatisticsRequest& request) const; + QueryInfoByTokenOutcome queryInfoByToken(const Model::QueryInfoByTokenRequest &request)const; + void queryInfoByTokenAsync(const Model::QueryInfoByTokenRequest& request, const QueryInfoByTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryInfoByTokenOutcomeCallable queryInfoByTokenCallable(const Model::QueryInfoByTokenRequest& request) const; + ListDataSourceSchemaTableOutcome listDataSourceSchemaTable(const Model::ListDataSourceSchemaTableRequest &request)const; + void listDataSourceSchemaTableAsync(const Model::ListDataSourceSchemaTableRequest& request, const ListDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataSourceSchemaTableOutcomeCallable listDataSourceSchemaTableCallable(const Model::ListDataSourceSchemaTableRequest& request) const; + CreateJobOutcome createJob(const Model::CreateJobRequest &request)const; + void createJobAsync(const Model::CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobOutcomeCallable createJobCallable(const Model::CreateJobRequest& request) const; + GetBackInfoOutcome getBackInfo(const Model::GetBackInfoRequest &request)const; + void getBackInfoAsync(const Model::GetBackInfoRequest& request, const GetBackInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBackInfoOutcomeCallable getBackInfoCallable(const Model::GetBackInfoRequest& request) const; + AttachClusterForNoteOutcome attachClusterForNote(const Model::AttachClusterForNoteRequest &request)const; + void attachClusterForNoteAsync(const Model::AttachClusterForNoteRequest& request, const AttachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachClusterForNoteOutcomeCallable attachClusterForNoteCallable(const Model::AttachClusterForNoteRequest& request) const; + ListExecutionPlansOutcome listExecutionPlans(const Model::ListExecutionPlansRequest &request)const; + void listExecutionPlansAsync(const Model::ListExecutionPlansRequest& request, const ListExecutionPlansAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListExecutionPlansOutcomeCallable listExecutionPlansCallable(const Model::ListExecutionPlansRequest& request) const; + ListJobMigrateInfoOutcome listJobMigrateInfo(const Model::ListJobMigrateInfoRequest &request)const; + void listJobMigrateInfoAsync(const Model::ListJobMigrateInfoRequest& request, const ListJobMigrateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobMigrateInfoOutcomeCallable listJobMigrateInfoCallable(const Model::ListJobMigrateInfoRequest& request) const; + CloneFlowOutcome cloneFlow(const Model::CloneFlowRequest &request)const; + void cloneFlowAsync(const Model::CloneFlowRequest& request, const CloneFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloneFlowOutcomeCallable cloneFlowCallable(const Model::CloneFlowRequest& request) const; + ListEmrMainVersionOutcome listEmrMainVersion(const Model::ListEmrMainVersionRequest &request)const; + void listEmrMainVersionAsync(const Model::ListEmrMainVersionRequest& request, const ListEmrMainVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEmrMainVersionOutcomeCallable listEmrMainVersionCallable(const Model::ListEmrMainVersionRequest& request) const; + CreateClusterTemplateOutcome createClusterTemplate(const Model::CreateClusterTemplateRequest &request)const; + void createClusterTemplateAsync(const Model::CreateClusterTemplateRequest& request, const CreateClusterTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterTemplateOutcomeCallable createClusterTemplateCallable(const Model::CreateClusterTemplateRequest& request) const; + RestoreBackupOutcome restoreBackup(const Model::RestoreBackupRequest &request)const; + void restoreBackupAsync(const Model::RestoreBackupRequest& request, const RestoreBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestoreBackupOutcomeCallable restoreBackupCallable(const Model::RestoreBackupRequest& request) const; + ListAlertContactsOutcome listAlertContacts(const Model::ListAlertContactsRequest &request)const; + void listAlertContactsAsync(const Model::ListAlertContactsRequest& request, const ListAlertContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlertContactsOutcomeCallable listAlertContactsCallable(const Model::ListAlertContactsRequest& request) const; + ListSupportedServiceNameForAdminOutcome listSupportedServiceNameForAdmin(const Model::ListSupportedServiceNameForAdminRequest &request)const; + void listSupportedServiceNameForAdminAsync(const Model::ListSupportedServiceNameForAdminRequest& request, const ListSupportedServiceNameForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSupportedServiceNameForAdminOutcomeCallable listSupportedServiceNameForAdminCallable(const Model::ListSupportedServiceNameForAdminRequest& request) const; + ReassignKafkaOutcome reassignKafka(const Model::ReassignKafkaRequest &request)const; + void reassignKafkaAsync(const Model::ReassignKafkaRequest& request, const ReassignKafkaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReassignKafkaOutcomeCallable reassignKafkaCallable(const Model::ReassignKafkaRequest& request) const; + GetHdfsCapacityStatisticInfoOutcome getHdfsCapacityStatisticInfo(const Model::GetHdfsCapacityStatisticInfoRequest &request)const; + void getHdfsCapacityStatisticInfoAsync(const Model::GetHdfsCapacityStatisticInfoRequest& request, const GetHdfsCapacityStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHdfsCapacityStatisticInfoOutcomeCallable getHdfsCapacityStatisticInfoCallable(const Model::GetHdfsCapacityStatisticInfoRequest& request) const; + DescribeClusterServiceConfigTagForAdminOutcome describeClusterServiceConfigTagForAdmin(const Model::DescribeClusterServiceConfigTagForAdminRequest &request)const; + void describeClusterServiceConfigTagForAdminAsync(const Model::DescribeClusterServiceConfigTagForAdminRequest& request, const DescribeClusterServiceConfigTagForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterServiceConfigTagForAdminOutcomeCallable describeClusterServiceConfigTagForAdminCallable(const Model::DescribeClusterServiceConfigTagForAdminRequest& request) const; + ResumeExecutionPlanSchedulerOutcome resumeExecutionPlanScheduler(const Model::ResumeExecutionPlanSchedulerRequest &request)const; + void resumeExecutionPlanSchedulerAsync(const Model::ResumeExecutionPlanSchedulerRequest& request, const ResumeExecutionPlanSchedulerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeExecutionPlanSchedulerOutcomeCallable resumeExecutionPlanSchedulerCallable(const Model::ResumeExecutionPlanSchedulerRequest& request) const; + ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; + void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const; + ListEmrAvailableResourceOutcome listEmrAvailableResource(const Model::ListEmrAvailableResourceRequest &request)const; + void listEmrAvailableResourceAsync(const Model::ListEmrAvailableResourceRequest& request, const ListEmrAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEmrAvailableResourceOutcomeCallable listEmrAvailableResourceCallable(const Model::ListEmrAvailableResourceRequest& request) const; + ModifyHpHostOutcome modifyHpHost(const Model::ModifyHpHostRequest &request)const; + void modifyHpHostAsync(const Model::ModifyHpHostRequest& request, const ModifyHpHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHpHostOutcomeCallable modifyHpHostCallable(const Model::ModifyHpHostRequest& request) const; + ReleaseETLJobOutcome releaseETLJob(const Model::ReleaseETLJobRequest &request)const; + void releaseETLJobAsync(const Model::ReleaseETLJobRequest& request, const ReleaseETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseETLJobOutcomeCallable releaseETLJobCallable(const Model::ReleaseETLJobRequest& request) const; + DescribeClusterServiceConfigTagOutcome describeClusterServiceConfigTag(const Model::DescribeClusterServiceConfigTagRequest &request)const; + void describeClusterServiceConfigTagAsync(const Model::DescribeClusterServiceConfigTagRequest& request, const DescribeClusterServiceConfigTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterServiceConfigTagOutcomeCallable describeClusterServiceConfigTagCallable(const Model::DescribeClusterServiceConfigTagRequest& request) const; + RunClusterServiceActionOutcome runClusterServiceAction(const Model::RunClusterServiceActionRequest &request)const; + void runClusterServiceActionAsync(const Model::RunClusterServiceActionRequest& request, const RunClusterServiceActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunClusterServiceActionOutcomeCallable runClusterServiceActionCallable(const Model::RunClusterServiceActionRequest& request) const; + SuspendFlowOutcome suspendFlow(const Model::SuspendFlowRequest &request)const; + void suspendFlowAsync(const Model::SuspendFlowRequest& request, const SuspendFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SuspendFlowOutcomeCallable suspendFlowCallable(const Model::SuspendFlowRequest& request) const; + ListClusterSupportServiceOutcome listClusterSupportService(const Model::ListClusterSupportServiceRequest &request)const; + void listClusterSupportServiceAsync(const Model::ListClusterSupportServiceRequest& request, const ListClusterSupportServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterSupportServiceOutcomeCallable listClusterSupportServiceCallable(const Model::ListClusterSupportServiceRequest& request) const; + AuthorizeSecurityGroupOutcome authorizeSecurityGroup(const Model::AuthorizeSecurityGroupRequest &request)const; + void authorizeSecurityGroupAsync(const Model::AuthorizeSecurityGroupRequest& request, const AuthorizeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AuthorizeSecurityGroupOutcomeCallable authorizeSecurityGroupCallable(const Model::AuthorizeSecurityGroupRequest& request) const; + ModifyClusterTemplateOutcome modifyClusterTemplate(const Model::ModifyClusterTemplateRequest &request)const; + void modifyClusterTemplateAsync(const Model::ModifyClusterTemplateRequest& request, const ModifyClusterTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterTemplateOutcomeCallable modifyClusterTemplateCallable(const Model::ModifyClusterTemplateRequest& request) const; + CreateClusterWithHostPoolOutcome createClusterWithHostPool(const Model::CreateClusterWithHostPoolRequest &request)const; + void createClusterWithHostPoolAsync(const Model::CreateClusterWithHostPoolRequest& request, const CreateClusterWithHostPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterWithHostPoolOutcomeCallable createClusterWithHostPoolCallable(const Model::CreateClusterWithHostPoolRequest& request) const; + ContextQueryLogOutcome contextQueryLog(const Model::ContextQueryLogRequest &request)const; + void contextQueryLogAsync(const Model::ContextQueryLogRequest& request, const ContextQueryLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ContextQueryLogOutcomeCallable contextQueryLogCallable(const Model::ContextQueryLogRequest& request) const; + ListClusterOperationHostOutcome listClusterOperationHost(const Model::ListClusterOperationHostRequest &request)const; + void listClusterOperationHostAsync(const Model::ListClusterOperationHostRequest& request, const ListClusterOperationHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterOperationHostOutcomeCallable listClusterOperationHostCallable(const Model::ListClusterOperationHostRequest& request) const; + ListScalingRuleOutcome listScalingRule(const Model::ListScalingRuleRequest &request)const; + void listScalingRuleAsync(const Model::ListScalingRuleRequest& request, const ListScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScalingRuleOutcomeCallable listScalingRuleCallable(const Model::ListScalingRuleRequest& request) const; + DeleteFlowOutcome deleteFlow(const Model::DeleteFlowRequest &request)const; + void deleteFlowAsync(const Model::DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowOutcomeCallable deleteFlowCallable(const Model::DeleteFlowRequest& request) const; + DeleteDataSourceOutcome deleteDataSource(const Model::DeleteDataSourceRequest &request)const; + void deleteDataSourceAsync(const Model::DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataSourceOutcomeCallable deleteDataSourceCallable(const Model::DeleteDataSourceRequest& request) const; + RunETLJobOutcome runETLJob(const Model::RunETLJobRequest &request)const; + void runETLJobAsync(const Model::RunETLJobRequest& request, const RunETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunETLJobOutcomeCallable runETLJobCallable(const Model::RunETLJobRequest& request) const; + ListFlowProjectOutcome listFlowProject(const Model::ListFlowProjectRequest &request)const; + void listFlowProjectAsync(const Model::ListFlowProjectRequest& request, const ListFlowProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowProjectOutcomeCallable listFlowProjectCallable(const Model::ListFlowProjectRequest& request) const; + ListClusterServiceComponentHealthInfoOutcome listClusterServiceComponentHealthInfo(const Model::ListClusterServiceComponentHealthInfoRequest &request)const; + void listClusterServiceComponentHealthInfoAsync(const Model::ListClusterServiceComponentHealthInfoRequest& request, const ListClusterServiceComponentHealthInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterServiceComponentHealthInfoOutcomeCallable listClusterServiceComponentHealthInfoCallable(const Model::ListClusterServiceComponentHealthInfoRequest& request) const; + CreateHostPoolOutcome createHostPool(const Model::CreateHostPoolRequest &request)const; + void createHostPoolAsync(const Model::CreateHostPoolRequest& request, const CreateHostPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHostPoolOutcomeCallable createHostPoolCallable(const Model::CreateHostPoolRequest& request) const; + ModifyAlertDingDingGroupOutcome modifyAlertDingDingGroup(const Model::ModifyAlertDingDingGroupRequest &request)const; + void modifyAlertDingDingGroupAsync(const Model::ModifyAlertDingDingGroupRequest& request, const ModifyAlertDingDingGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAlertDingDingGroupOutcomeCallable modifyAlertDingDingGroupCallable(const Model::ModifyAlertDingDingGroupRequest& request) const; + ListFlowJobHistoryOutcome listFlowJobHistory(const Model::ListFlowJobHistoryRequest &request)const; + void listFlowJobHistoryAsync(const Model::ListFlowJobHistoryRequest& request, const ListFlowJobHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowJobHistoryOutcomeCallable listFlowJobHistoryCallable(const Model::ListFlowJobHistoryRequest& request) const; + CreateETLJobOutcome createETLJob(const Model::CreateETLJobRequest &request)const; + void createETLJobAsync(const Model::CreateETLJobRequest& request, const CreateETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateETLJobOutcomeCallable createETLJobCallable(const Model::CreateETLJobRequest& request) const; + CreateClusterScriptOutcome createClusterScript(const Model::CreateClusterScriptRequest &request)const; + void createClusterScriptAsync(const Model::CreateClusterScriptRequest& request, const CreateClusterScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterScriptOutcomeCallable createClusterScriptCallable(const Model::CreateClusterScriptRequest& request) const; + SubmitFlowOutcome submitFlow(const Model::SubmitFlowRequest &request)const; + void submitFlowAsync(const Model::SubmitFlowRequest& request, const SubmitFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitFlowOutcomeCallable submitFlowCallable(const Model::SubmitFlowRequest& request) const; + ResumeFlowOutcome resumeFlow(const Model::ResumeFlowRequest &request)const; + void resumeFlowAsync(const Model::ResumeFlowRequest& request, const ResumeFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeFlowOutcomeCallable resumeFlowCallable(const Model::ResumeFlowRequest& request) const; + DeleteFlowProjectByIdOutcome deleteFlowProjectById(const Model::DeleteFlowProjectByIdRequest &request)const; + void deleteFlowProjectByIdAsync(const Model::DeleteFlowProjectByIdRequest& request, const DeleteFlowProjectByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowProjectByIdOutcomeCallable deleteFlowProjectByIdCallable(const Model::DeleteFlowProjectByIdRequest& request) const; + OfflineKafkaBrokerOutcome offlineKafkaBroker(const Model::OfflineKafkaBrokerRequest &request)const; + void offlineKafkaBrokerAsync(const Model::OfflineKafkaBrokerRequest& request, const OfflineKafkaBrokerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OfflineKafkaBrokerOutcomeCallable offlineKafkaBrokerCallable(const Model::OfflineKafkaBrokerRequest& request) const; + DescribeParagraphOutcome describeParagraph(const Model::DescribeParagraphRequest &request)const; + void describeParagraphAsync(const Model::DescribeParagraphRequest& request, const DescribeParagraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeParagraphOutcomeCallable describeParagraphCallable(const Model::DescribeParagraphRequest& request) const; + MetastoreCreateDatabaseOutcome metastoreCreateDatabase(const Model::MetastoreCreateDatabaseRequest &request)const; + void metastoreCreateDatabaseAsync(const Model::MetastoreCreateDatabaseRequest& request, const MetastoreCreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreCreateDatabaseOutcomeCallable metastoreCreateDatabaseCallable(const Model::MetastoreCreateDatabaseRequest& request) const; + DeleteFlowJobOutcome deleteFlowJob(const Model::DeleteFlowJobRequest &request)const; + void deleteFlowJobAsync(const Model::DeleteFlowJobRequest& request, const DeleteFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowJobOutcomeCallable deleteFlowJobCallable(const Model::DeleteFlowJobRequest& request) const; + RefreshClusterResourcePoolOutcome refreshClusterResourcePool(const Model::RefreshClusterResourcePoolRequest &request)const; + void refreshClusterResourcePoolAsync(const Model::RefreshClusterResourcePoolRequest& request, const RefreshClusterResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshClusterResourcePoolOutcomeCallable refreshClusterResourcePoolCallable(const Model::RefreshClusterResourcePoolRequest& request) const; + UpdateKafkaReassignParamOutcome updateKafkaReassignParam(const Model::UpdateKafkaReassignParamRequest &request)const; + void updateKafkaReassignParamAsync(const Model::UpdateKafkaReassignParamRequest& request, const UpdateKafkaReassignParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateKafkaReassignParamOutcomeCallable updateKafkaReassignParamCallable(const Model::UpdateKafkaReassignParamRequest& request) const; + ModifyJobOutcome modifyJob(const Model::ModifyJobRequest &request)const; + void modifyJobAsync(const Model::ModifyJobRequest& request, const ModifyJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyJobOutcomeCallable modifyJobCallable(const Model::ModifyJobRequest& request) const; + DescribeFlowJobOutcome describeFlowJob(const Model::DescribeFlowJobRequest &request)const; + void describeFlowJobAsync(const Model::DescribeFlowJobRequest& request, const DescribeFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowJobOutcomeCallable describeFlowJobCallable(const Model::DescribeFlowJobRequest& request) const; + GetMetadataTypeListOutcome getMetadataTypeList(const Model::GetMetadataTypeListRequest &request)const; + void getMetadataTypeListAsync(const Model::GetMetadataTypeListRequest& request, const GetMetadataTypeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMetadataTypeListOutcomeCallable getMetadataTypeListCallable(const Model::GetMetadataTypeListRequest& request) const; + MetastoreRetryTaskOutcome metastoreRetryTask(const Model::MetastoreRetryTaskRequest &request)const; + void metastoreRetryTaskAsync(const Model::MetastoreRetryTaskRequest& request, const MetastoreRetryTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreRetryTaskOutcomeCallable metastoreRetryTaskCallable(const Model::MetastoreRetryTaskRequest& request) const; + RerunFlowOutcome rerunFlow(const Model::RerunFlowRequest &request)const; + void rerunFlowAsync(const Model::RerunFlowRequest& request, const RerunFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RerunFlowOutcomeCallable rerunFlowCallable(const Model::RerunFlowRequest& request) const; + CreateBackupOutcome createBackup(const Model::CreateBackupRequest &request)const; + void createBackupAsync(const Model::CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBackupOutcomeCallable createBackupCallable(const Model::CreateBackupRequest& request) const; + ListKafkaReassignOutcome listKafkaReassign(const Model::ListKafkaReassignRequest &request)const; + void listKafkaReassignAsync(const Model::ListKafkaReassignRequest& request, const ListKafkaReassignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListKafkaReassignOutcomeCallable listKafkaReassignCallable(const Model::ListKafkaReassignRequest& request) const; + DescribeClusterV2Outcome describeClusterV2(const Model::DescribeClusterV2Request &request)const; + void describeClusterV2Async(const Model::DescribeClusterV2Request& request, const DescribeClusterV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterV2OutcomeCallable describeClusterV2Callable(const Model::DescribeClusterV2Request& request) const; + ResizeClusterWithHostPoolOutcome resizeClusterWithHostPool(const Model::ResizeClusterWithHostPoolRequest &request)const; + void resizeClusterWithHostPoolAsync(const Model::ResizeClusterWithHostPoolRequest& request, const ResizeClusterWithHostPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResizeClusterWithHostPoolOutcomeCallable resizeClusterWithHostPoolCallable(const Model::ResizeClusterWithHostPoolRequest& request) const; + CreateFlowProjectClusterSettingOutcome createFlowProjectClusterSetting(const Model::CreateFlowProjectClusterSettingRequest &request)const; + void createFlowProjectClusterSettingAsync(const Model::CreateFlowProjectClusterSettingRequest& request, const CreateFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowProjectClusterSettingOutcomeCallable createFlowProjectClusterSettingCallable(const Model::CreateFlowProjectClusterSettingRequest& request) const; + ListClusterScriptsOutcome listClusterScripts(const Model::ListClusterScriptsRequest &request)const; + void listClusterScriptsAsync(const Model::ListClusterScriptsRequest& request, const ListClusterScriptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterScriptsOutcomeCallable listClusterScriptsCallable(const Model::ListClusterScriptsRequest& request) const; + DescribeFlowInstanceOutcome describeFlowInstance(const Model::DescribeFlowInstanceRequest &request)const; + void describeFlowInstanceAsync(const Model::DescribeFlowInstanceRequest& request, const DescribeFlowInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowInstanceOutcomeCallable describeFlowInstanceCallable(const Model::DescribeFlowInstanceRequest& request) const; + DeleteUserResourceRoleOutcome deleteUserResourceRole(const Model::DeleteUserResourceRoleRequest &request)const; + void deleteUserResourceRoleAsync(const Model::DeleteUserResourceRoleRequest& request, const DeleteUserResourceRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserResourceRoleOutcomeCallable deleteUserResourceRoleCallable(const Model::DeleteUserResourceRoleRequest& request) const; + ListETLJobReleaseOutcome listETLJobRelease(const Model::ListETLJobReleaseRequest &request)const; + void listETLJobReleaseAsync(const Model::ListETLJobReleaseRequest& request, const ListETLJobReleaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListETLJobReleaseOutcomeCallable listETLJobReleaseCallable(const Model::ListETLJobReleaseRequest& request) const; + CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const; + void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& request) const; + MetastoreModifyDataResourceOutcome metastoreModifyDataResource(const Model::MetastoreModifyDataResourceRequest &request)const; + void metastoreModifyDataResourceAsync(const Model::MetastoreModifyDataResourceRequest& request, const MetastoreModifyDataResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreModifyDataResourceOutcomeCallable metastoreModifyDataResourceCallable(const Model::MetastoreModifyDataResourceRequest& request) const; + ListExecutePlanMigrateInfoOutcome listExecutePlanMigrateInfo(const Model::ListExecutePlanMigrateInfoRequest &request)const; + void listExecutePlanMigrateInfoAsync(const Model::ListExecutePlanMigrateInfoRequest& request, const ListExecutePlanMigrateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListExecutePlanMigrateInfoOutcomeCallable listExecutePlanMigrateInfoCallable(const Model::ListExecutePlanMigrateInfoRequest& request) const; + ResumeExecutionPlanInstanceOutcome resumeExecutionPlanInstance(const Model::ResumeExecutionPlanInstanceRequest &request)const; + void resumeExecutionPlanInstanceAsync(const Model::ResumeExecutionPlanInstanceRequest& request, const ResumeExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeExecutionPlanInstanceOutcomeCallable resumeExecutionPlanInstanceCallable(const Model::ResumeExecutionPlanInstanceRequest& request) const; + CreateParagraphOutcome createParagraph(const Model::CreateParagraphRequest &request)const; + void createParagraphAsync(const Model::CreateParagraphRequest& request, const CreateParagraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateParagraphOutcomeCallable createParagraphCallable(const Model::CreateParagraphRequest& request) const; + GetOpsCommandResultOnceOutcome getOpsCommandResultOnce(const Model::GetOpsCommandResultOnceRequest &request)const; + void getOpsCommandResultOnceAsync(const Model::GetOpsCommandResultOnceRequest& request, const GetOpsCommandResultOnceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOpsCommandResultOnceOutcomeCallable getOpsCommandResultOnceCallable(const Model::GetOpsCommandResultOnceRequest& request) const; + AddHpHostOutcome addHpHost(const Model::AddHpHostRequest &request)const; + void addHpHostAsync(const Model::AddHpHostRequest& request, const AddHpHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddHpHostOutcomeCallable addHpHostCallable(const Model::AddHpHostRequest& request) const; + ListClusterServiceConfigHistoryForAdminOutcome listClusterServiceConfigHistoryForAdmin(const Model::ListClusterServiceConfigHistoryForAdminRequest &request)const; + void listClusterServiceConfigHistoryForAdminAsync(const Model::ListClusterServiceConfigHistoryForAdminRequest& request, const ListClusterServiceConfigHistoryForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterServiceConfigHistoryForAdminOutcomeCallable listClusterServiceConfigHistoryForAdminCallable(const Model::ListClusterServiceConfigHistoryForAdminRequest& request) const; + GetJobInputStatisticInfoOutcome getJobInputStatisticInfo(const Model::GetJobInputStatisticInfoRequest &request)const; + void getJobInputStatisticInfoAsync(const Model::GetJobInputStatisticInfoRequest& request, const GetJobInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobInputStatisticInfoOutcomeCallable getJobInputStatisticInfoCallable(const Model::GetJobInputStatisticInfoRequest& request) const; + DeleteFlowProjectUserOutcome deleteFlowProjectUser(const Model::DeleteFlowProjectUserRequest &request)const; + void deleteFlowProjectUserAsync(const Model::DeleteFlowProjectUserRequest& request, const DeleteFlowProjectUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowProjectUserOutcomeCallable deleteFlowProjectUserCallable(const Model::DeleteFlowProjectUserRequest& request) const; + ListDependedServiceOutcome listDependedService(const Model::ListDependedServiceRequest &request)const; + void listDependedServiceAsync(const Model::ListDependedServiceRequest& request, const ListDependedServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDependedServiceOutcomeCallable listDependedServiceCallable(const Model::ListDependedServiceRequest& request) const; + DeleteAlertContactsOutcome deleteAlertContacts(const Model::DeleteAlertContactsRequest &request)const; + void deleteAlertContactsAsync(const Model::DeleteAlertContactsRequest& request, const DeleteAlertContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAlertContactsOutcomeCallable deleteAlertContactsCallable(const Model::DeleteAlertContactsRequest& request) const; + CreateClusterV2Outcome createClusterV2(const Model::CreateClusterV2Request &request)const; + void createClusterV2Async(const Model::CreateClusterV2Request& request, const CreateClusterV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterV2OutcomeCallable createClusterV2Callable(const Model::CreateClusterV2Request& request) const; + PlanComponentTopoOutcome planComponentTopo(const Model::PlanComponentTopoRequest &request)const; + void planComponentTopoAsync(const Model::PlanComponentTopoRequest& request, const PlanComponentTopoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PlanComponentTopoOutcomeCallable planComponentTopoCallable(const Model::PlanComponentTopoRequest& request) const; + ListClusterHostOutcome listClusterHost(const Model::ListClusterHostRequest &request)const; + void listClusterHostAsync(const Model::ListClusterHostRequest& request, const ListClusterHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterHostOutcomeCallable listClusterHostCallable(const Model::ListClusterHostRequest& request) const; + DescribeClusterServiceOutcome describeClusterService(const Model::DescribeClusterServiceRequest &request)const; + void describeClusterServiceAsync(const Model::DescribeClusterServiceRequest& request, const DescribeClusterServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterServiceOutcomeCallable describeClusterServiceCallable(const Model::DescribeClusterServiceRequest& request) const; + RenderResourcePoolXmlForAdminOutcome renderResourcePoolXmlForAdmin(const Model::RenderResourcePoolXmlForAdminRequest &request)const; + void renderResourcePoolXmlForAdminAsync(const Model::RenderResourcePoolXmlForAdminRequest& request, const RenderResourcePoolXmlForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenderResourcePoolXmlForAdminOutcomeCallable renderResourcePoolXmlForAdminCallable(const Model::RenderResourcePoolXmlForAdminRequest& request) const; + ListApmApplicationOutcome listApmApplication(const Model::ListApmApplicationRequest &request)const; + void listApmApplicationAsync(const Model::ListApmApplicationRequest& request, const ListApmApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApmApplicationOutcomeCallable listApmApplicationCallable(const Model::ListApmApplicationRequest& request) const; + MetastoreCreateTableOutcome metastoreCreateTable(const Model::MetastoreCreateTableRequest &request)const; + void metastoreCreateTableAsync(const Model::MetastoreCreateTableRequest& request, const MetastoreCreateTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreCreateTableOutcomeCallable metastoreCreateTableCallable(const Model::MetastoreCreateTableRequest& request) const; + CommonApiWhiteListOutcome commonApiWhiteList(const Model::CommonApiWhiteListRequest &request)const; + void commonApiWhiteListAsync(const Model::CommonApiWhiteListRequest& request, const CommonApiWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CommonApiWhiteListOutcomeCallable commonApiWhiteListCallable(const Model::CommonApiWhiteListRequest& request) const; + CreateFlowForWebOutcome createFlowForWeb(const Model::CreateFlowForWebRequest &request)const; + void createFlowForWebAsync(const Model::CreateFlowForWebRequest& request, const CreateFlowForWebAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowForWebOutcomeCallable createFlowForWebCallable(const Model::CreateFlowForWebRequest& request) const; + QuerySlsMetricDataOutcome querySlsMetricData(const Model::QuerySlsMetricDataRequest &request)const; + void querySlsMetricDataAsync(const Model::QuerySlsMetricDataRequest& request, const QuerySlsMetricDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySlsMetricDataOutcomeCallable querySlsMetricDataCallable(const Model::QuerySlsMetricDataRequest& request) const; + MetastoreListKafkaTopicOutcome metastoreListKafkaTopic(const Model::MetastoreListKafkaTopicRequest &request)const; + void metastoreListKafkaTopicAsync(const Model::MetastoreListKafkaTopicRequest& request, const MetastoreListKafkaTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreListKafkaTopicOutcomeCallable metastoreListKafkaTopicCallable(const Model::MetastoreListKafkaTopicRequest& request) const; + DescribeJobOutcome describeJob(const Model::DescribeJobRequest &request)const; + void describeJobAsync(const Model::DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeJobOutcomeCallable describeJobCallable(const Model::DescribeJobRequest& request) const; + ListKafkaReassignTopicOutcome listKafkaReassignTopic(const Model::ListKafkaReassignTopicRequest &request)const; + void listKafkaReassignTopicAsync(const Model::ListKafkaReassignTopicRequest& request, const ListKafkaReassignTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListKafkaReassignTopicOutcomeCallable listKafkaReassignTopicCallable(const Model::ListKafkaReassignTopicRequest& request) const; + ModifyClusterServiceConfigForAdminOutcome modifyClusterServiceConfigForAdmin(const Model::ModifyClusterServiceConfigForAdminRequest &request)const; + void modifyClusterServiceConfigForAdminAsync(const Model::ModifyClusterServiceConfigForAdminRequest& request, const ModifyClusterServiceConfigForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterServiceConfigForAdminOutcomeCallable modifyClusterServiceConfigForAdminCallable(const Model::ModifyClusterServiceConfigForAdminRequest& request) const; + ModifyFlowProjectOutcome modifyFlowProject(const Model::ModifyFlowProjectRequest &request)const; + void modifyFlowProjectAsync(const Model::ModifyFlowProjectRequest& request, const ModifyFlowProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowProjectOutcomeCallable modifyFlowProjectCallable(const Model::ModifyFlowProjectRequest& request) const; + ListFlowOutcome listFlow(const Model::ListFlowRequest &request)const; + void listFlowAsync(const Model::ListFlowRequest& request, const ListFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowOutcomeCallable listFlowCallable(const Model::ListFlowRequest& request) const; + ListResourceQueueOutcome listResourceQueue(const Model::ListResourceQueueRequest &request)const; + void listResourceQueueAsync(const Model::ListResourceQueueRequest& request, const ListResourceQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourceQueueOutcomeCallable listResourceQueueCallable(const Model::ListResourceQueueRequest& request) const; + ListClusterTagForAdminOutcome listClusterTagForAdmin(const Model::ListClusterTagForAdminRequest &request)const; + void listClusterTagForAdminAsync(const Model::ListClusterTagForAdminRequest& request, const ListClusterTagForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterTagForAdminOutcomeCallable listClusterTagForAdminCallable(const Model::ListClusterTagForAdminRequest& request) const; + KillExecutionPlanInstanceOutcome killExecutionPlanInstance(const Model::KillExecutionPlanInstanceRequest &request)const; + void killExecutionPlanInstanceAsync(const Model::KillExecutionPlanInstanceRequest& request, const KillExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillExecutionPlanInstanceOutcomeCallable killExecutionPlanInstanceCallable(const Model::KillExecutionPlanInstanceRequest& request) const; + DeleteFlowCategoryOutcome deleteFlowCategory(const Model::DeleteFlowCategoryRequest &request)const; + void deleteFlowCategoryAsync(const Model::DeleteFlowCategoryRequest& request, const DeleteFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowCategoryOutcomeCallable deleteFlowCategoryCallable(const Model::DeleteFlowCategoryRequest& request) const; + PageListUserGroupsOutcome pageListUserGroups(const Model::PageListUserGroupsRequest &request)const; + void pageListUserGroupsAsync(const Model::PageListUserGroupsRequest& request, const PageListUserGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageListUserGroupsOutcomeCallable pageListUserGroupsCallable(const Model::PageListUserGroupsRequest& request) const; + ListResourcePoolForAdminOutcome listResourcePoolForAdmin(const Model::ListResourcePoolForAdminRequest &request)const; + void listResourcePoolForAdminAsync(const Model::ListResourcePoolForAdminRequest& request, const ListResourcePoolForAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourcePoolForAdminOutcomeCallable listResourcePoolForAdminCallable(const Model::ListResourcePoolForAdminRequest& request) const; + MigrateJobsOutcome migrateJobs(const Model::MigrateJobsRequest &request)const; + void migrateJobsAsync(const Model::MigrateJobsRequest& request, const MigrateJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MigrateJobsOutcomeCallable migrateJobsCallable(const Model::MigrateJobsRequest& request) const; + KillExecutionJobInstanceOutcome killExecutionJobInstance(const Model::KillExecutionJobInstanceRequest &request)const; + void killExecutionJobInstanceAsync(const Model::KillExecutionJobInstanceRequest& request, const KillExecutionJobInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillExecutionJobInstanceOutcomeCallable killExecutionJobInstanceCallable(const Model::KillExecutionJobInstanceRequest& request) const; + CreateBatchUsersOutcome createBatchUsers(const Model::CreateBatchUsersRequest &request)const; + void createBatchUsersAsync(const Model::CreateBatchUsersRequest& request, const CreateBatchUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBatchUsersOutcomeCallable createBatchUsersCallable(const Model::CreateBatchUsersRequest& request) const; + ModifyExecutionPlanOutcome modifyExecutionPlan(const Model::ModifyExecutionPlanRequest &request)const; + void modifyExecutionPlanAsync(const Model::ModifyExecutionPlanRequest& request, const ModifyExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExecutionPlanOutcomeCallable modifyExecutionPlanCallable(const Model::ModifyExecutionPlanRequest& request) const; + AddClusterServiceOutcome addClusterService(const Model::AddClusterServiceRequest &request)const; + void addClusterServiceAsync(const Model::AddClusterServiceRequest& request, const AddClusterServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddClusterServiceOutcomeCallable addClusterServiceCallable(const Model::AddClusterServiceRequest& request) const; + ListUserStatisticsOutcome listUserStatistics(const Model::ListUserStatisticsRequest &request)const; + void listUserStatisticsAsync(const Model::ListUserStatisticsRequest& request, const ListUserStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserStatisticsOutcomeCallable listUserStatisticsCallable(const Model::ListUserStatisticsRequest& request) const; + ModifyFlowCategoryOutcome modifyFlowCategory(const Model::ModifyFlowCategoryRequest &request)const; + void modifyFlowCategoryAsync(const Model::ModifyFlowCategoryRequest& request, const ModifyFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowCategoryOutcomeCallable modifyFlowCategoryCallable(const Model::ModifyFlowCategoryRequest& request) const; + QueryAlarmRulesOutcome queryAlarmRules(const Model::QueryAlarmRulesRequest &request)const; + void queryAlarmRulesAsync(const Model::QueryAlarmRulesRequest& request, const QueryAlarmRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryAlarmRulesOutcomeCallable queryAlarmRulesCallable(const Model::QueryAlarmRulesRequest& request) const; + ModifyClusterServiceConfigOutcome modifyClusterServiceConfig(const Model::ModifyClusterServiceConfigRequest &request)const; + void modifyClusterServiceConfigAsync(const Model::ModifyClusterServiceConfigRequest& request, const ModifyClusterServiceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterServiceConfigOutcomeCallable modifyClusterServiceConfigCallable(const Model::ModifyClusterServiceConfigRequest& request) const; + MetastoreListDataResourcesOutcome metastoreListDataResources(const Model::MetastoreListDataResourcesRequest &request)const; + void metastoreListDataResourcesAsync(const Model::MetastoreListDataResourcesRequest& request, const MetastoreListDataResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreListDataResourcesOutcomeCallable metastoreListDataResourcesCallable(const Model::MetastoreListDataResourcesRequest& request) const; + UpdateETLJobOutcome updateETLJob(const Model::UpdateETLJobRequest &request)const; + void updateETLJobAsync(const Model::UpdateETLJobRequest& request, const UpdateETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateETLJobOutcomeCallable updateETLJobCallable(const Model::UpdateETLJobRequest& request) const; + DescribeScalingTaskGroupOutcome describeScalingTaskGroup(const Model::DescribeScalingTaskGroupRequest &request)const; + void describeScalingTaskGroupAsync(const Model::DescribeScalingTaskGroupRequest& request, const DescribeScalingTaskGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScalingTaskGroupOutcomeCallable describeScalingTaskGroupCallable(const Model::DescribeScalingTaskGroupRequest& request) const; + DeleteHostPoolOutcome deleteHostPool(const Model::DeleteHostPoolRequest &request)const; + void deleteHostPoolAsync(const Model::DeleteHostPoolRequest& request, const DeleteHostPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHostPoolOutcomeCallable deleteHostPoolCallable(const Model::DeleteHostPoolRequest& request) const; + RefreshBackupListOutcome refreshBackupList(const Model::RefreshBackupListRequest &request)const; + void refreshBackupListAsync(const Model::RefreshBackupListRequest& request, const RefreshBackupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshBackupListOutcomeCallable refreshBackupListCallable(const Model::RefreshBackupListRequest& request) const; + UpdateDataSourceOutcome updateDataSource(const Model::UpdateDataSourceRequest &request)const; + void updateDataSourceAsync(const Model::UpdateDataSourceRequest& request, const UpdateDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDataSourceOutcomeCallable updateDataSourceCallable(const Model::UpdateDataSourceRequest& request) const; + ListDataSourceSchemaDatabaseOutcome listDataSourceSchemaDatabase(const Model::ListDataSourceSchemaDatabaseRequest &request)const; + void listDataSourceSchemaDatabaseAsync(const Model::ListDataSourceSchemaDatabaseRequest& request, const ListDataSourceSchemaDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataSourceSchemaDatabaseOutcomeCallable listDataSourceSchemaDatabaseCallable(const Model::ListDataSourceSchemaDatabaseRequest& request) const; + CreateUsersOutcome createUsers(const Model::CreateUsersRequest &request)const; + void createUsersAsync(const Model::CreateUsersRequest& request, const CreateUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUsersOutcomeCallable createUsersCallable(const Model::CreateUsersRequest& request) const; + CheckDataSourceOutcome checkDataSource(const Model::CheckDataSourceRequest &request)const; + void checkDataSourceAsync(const Model::CheckDataSourceRequest& request, const CheckDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckDataSourceOutcomeCallable checkDataSourceCallable(const Model::CheckDataSourceRequest& request) const; + ListScalingActivityOutcome listScalingActivity(const Model::ListScalingActivityRequest &request)const; + void listScalingActivityAsync(const Model::ListScalingActivityRequest& request, const ListScalingActivityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListScalingActivityOutcomeCallable listScalingActivityCallable(const Model::ListScalingActivityRequest& request) const; + CreateNoteOutcome createNote(const Model::CreateNoteRequest &request)const; + void createNoteAsync(const Model::CreateNoteRequest& request, const CreateNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNoteOutcomeCallable createNoteCallable(const Model::CreateNoteRequest& request) const; + RemoveHpHostOutcome removeHpHost(const Model::RemoveHpHostRequest &request)const; + void removeHpHostAsync(const Model::RemoveHpHostRequest& request, const RemoveHpHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveHpHostOutcomeCallable removeHpHostCallable(const Model::RemoveHpHostRequest& request) const; + GetBackupInfoOutcome getBackupInfo(const Model::GetBackupInfoRequest &request)const; + void getBackupInfoAsync(const Model::GetBackupInfoRequest& request, const GetBackupInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBackupInfoOutcomeCallable getBackupInfoCallable(const Model::GetBackupInfoRequest& request) const; + DescribeHpHostOutcome describeHpHost(const Model::DescribeHpHostRequest &request)const; + void describeHpHostAsync(const Model::DescribeHpHostRequest& request, const DescribeHpHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHpHostOutcomeCallable describeHpHostCallable(const Model::DescribeHpHostRequest& request) const; + RetryExecutionPlanOutcome retryExecutionPlan(const Model::RetryExecutionPlanRequest &request)const; + void retryExecutionPlanAsync(const Model::RetryExecutionPlanRequest& request, const RetryExecutionPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryExecutionPlanOutcomeCallable retryExecutionPlanCallable(const Model::RetryExecutionPlanRequest& request) const; + ListBackupRulesOutcome listBackupRules(const Model::ListBackupRulesRequest &request)const; + void listBackupRulesAsync(const Model::ListBackupRulesRequest& request, const ListBackupRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBackupRulesOutcomeCallable listBackupRulesCallable(const Model::ListBackupRulesRequest& request) const; + MetastoreListDataSourceOutcome metastoreListDataSource(const Model::MetastoreListDataSourceRequest &request)const; + void metastoreListDataSourceAsync(const Model::MetastoreListDataSourceRequest& request, const MetastoreListDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreListDataSourceOutcomeCallable metastoreListDataSourceCallable(const Model::MetastoreListDataSourceRequest& request) const; + ListFlowNodeInstanceContainerStatusOutcome listFlowNodeInstanceContainerStatus(const Model::ListFlowNodeInstanceContainerStatusRequest &request)const; + void listFlowNodeInstanceContainerStatusAsync(const Model::ListFlowNodeInstanceContainerStatusRequest& request, const ListFlowNodeInstanceContainerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowNodeInstanceContainerStatusOutcomeCallable listFlowNodeInstanceContainerStatusCallable(const Model::ListFlowNodeInstanceContainerStatusRequest& request) const; + GetSupportedOpsCommandOutcome getSupportedOpsCommand(const Model::GetSupportedOpsCommandRequest &request)const; + void getSupportedOpsCommandAsync(const Model::GetSupportedOpsCommandRequest& request, const GetSupportedOpsCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSupportedOpsCommandOutcomeCallable getSupportedOpsCommandCallable(const Model::GetSupportedOpsCommandRequest& request) const; + DescribeETLJobSqlSchemaOutcome describeETLJobSqlSchema(const Model::DescribeETLJobSqlSchemaRequest &request)const; + void describeETLJobSqlSchemaAsync(const Model::DescribeETLJobSqlSchemaRequest& request, const DescribeETLJobSqlSchemaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeETLJobSqlSchemaOutcomeCallable describeETLJobSqlSchemaCallable(const Model::DescribeETLJobSqlSchemaRequest& request) const; + ListExecutionPlanInstancesOutcome listExecutionPlanInstances(const Model::ListExecutionPlanInstancesRequest &request)const; + void listExecutionPlanInstancesAsync(const Model::ListExecutionPlanInstancesRequest& request, const ListExecutionPlanInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListExecutionPlanInstancesOutcomeCallable listExecutionPlanInstancesCallable(const Model::ListExecutionPlanInstancesRequest& request) const; + MetastoreDescribeKafkaConsumerGroupOutcome metastoreDescribeKafkaConsumerGroup(const Model::MetastoreDescribeKafkaConsumerGroupRequest &request)const; + void metastoreDescribeKafkaConsumerGroupAsync(const Model::MetastoreDescribeKafkaConsumerGroupRequest& request, const MetastoreDescribeKafkaConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreDescribeKafkaConsumerGroupOutcomeCallable metastoreDescribeKafkaConsumerGroupCallable(const Model::MetastoreDescribeKafkaConsumerGroupRequest& request) const; + MetastoreListTaskOutcome metastoreListTask(const Model::MetastoreListTaskRequest &request)const; + void metastoreListTaskAsync(const Model::MetastoreListTaskRequest& request, const MetastoreListTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreListTaskOutcomeCallable metastoreListTaskCallable(const Model::MetastoreListTaskRequest& request) const; + RemoveBackupOutcome removeBackup(const Model::RemoveBackupRequest &request)const; + void removeBackupAsync(const Model::RemoveBackupRequest& request, const RemoveBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveBackupOutcomeCallable removeBackupCallable(const Model::RemoveBackupRequest& request) const; + DescribeClusterOpLogOutcome describeClusterOpLog(const Model::DescribeClusterOpLogRequest &request)const; + void describeClusterOpLogAsync(const Model::DescribeClusterOpLogRequest& request, const DescribeClusterOpLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterOpLogOutcomeCallable describeClusterOpLogCallable(const Model::DescribeClusterOpLogRequest& request) const; + GetQueueSubmissionStatisticInfoOutcome getQueueSubmissionStatisticInfo(const Model::GetQueueSubmissionStatisticInfoRequest &request)const; + void getQueueSubmissionStatisticInfoAsync(const Model::GetQueueSubmissionStatisticInfoRequest& request, const GetQueueSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetQueueSubmissionStatisticInfoOutcomeCallable getQueueSubmissionStatisticInfoCallable(const Model::GetQueueSubmissionStatisticInfoRequest& request) const; + CreateUserOutcome createUser(const Model::CreateUserRequest &request)const; + void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const; + ListDataSourceOutcome listDataSource(const Model::ListDataSourceRequest &request)const; + void listDataSourceAsync(const Model::ListDataSourceRequest& request, const ListDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataSourceOutcomeCallable listDataSourceCallable(const Model::ListDataSourceRequest& request) const; + MetastoreCreateKafkaTopicOutcome metastoreCreateKafkaTopic(const Model::MetastoreCreateKafkaTopicRequest &request)const; + void metastoreCreateKafkaTopicAsync(const Model::MetastoreCreateKafkaTopicRequest& request, const MetastoreCreateKafkaTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreCreateKafkaTopicOutcomeCallable metastoreCreateKafkaTopicCallable(const Model::MetastoreCreateKafkaTopicRequest& request) const; + ListETLJobInstanceOutcome listETLJobInstance(const Model::ListETLJobInstanceRequest &request)const; + void listETLJobInstanceAsync(const Model::ListETLJobInstanceRequest& request, const ListETLJobInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListETLJobInstanceOutcomeCallable listETLJobInstanceCallable(const Model::ListETLJobInstanceRequest& request) const; + ModifyExecutionPlanBasicInfoOutcome modifyExecutionPlanBasicInfo(const Model::ModifyExecutionPlanBasicInfoRequest &request)const; + void modifyExecutionPlanBasicInfoAsync(const Model::ModifyExecutionPlanBasicInfoRequest& request, const ModifyExecutionPlanBasicInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExecutionPlanBasicInfoOutcomeCallable modifyExecutionPlanBasicInfoCallable(const Model::ModifyExecutionPlanBasicInfoRequest& request) const; + SubmitFlowJobOutcome submitFlowJob(const Model::SubmitFlowJobRequest &request)const; + void submitFlowJobAsync(const Model::SubmitFlowJobRequest& request, const SubmitFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitFlowJobOutcomeCallable submitFlowJobCallable(const Model::SubmitFlowJobRequest& request) const; + ListStackServiceOutcome listStackService(const Model::ListStackServiceRequest &request)const; + void listStackServiceAsync(const Model::ListStackServiceRequest& request, const ListStackServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStackServiceOutcomeCallable listStackServiceCallable(const Model::ListStackServiceRequest& request) const; + DescribeETLJobOutcome describeETLJob(const Model::DescribeETLJobRequest &request)const; + void describeETLJobAsync(const Model::DescribeETLJobRequest& request, const DescribeETLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeETLJobOutcomeCallable describeETLJobCallable(const Model::DescribeETLJobRequest& request) const; + ListClusterHostComponentOutcome listClusterHostComponent(const Model::ListClusterHostComponentRequest &request)const; + void listClusterHostComponentAsync(const Model::ListClusterHostComponentRequest& request, const ListClusterHostComponentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterHostComponentOutcomeCallable listClusterHostComponentCallable(const Model::ListClusterHostComponentRequest& request) const; + GetJobRunningTimeStatisticInfoOutcome getJobRunningTimeStatisticInfo(const Model::GetJobRunningTimeStatisticInfoRequest &request)const; + void getJobRunningTimeStatisticInfoAsync(const Model::GetJobRunningTimeStatisticInfoRequest& request, const GetJobRunningTimeStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobRunningTimeStatisticInfoOutcomeCallable getJobRunningTimeStatisticInfoCallable(const Model::GetJobRunningTimeStatisticInfoRequest& request) const; + ListFlowProjectClusterSettingOutcome listFlowProjectClusterSetting(const Model::ListFlowProjectClusterSettingRequest &request)const; + void listFlowProjectClusterSettingAsync(const Model::ListFlowProjectClusterSettingRequest& request, const ListFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowProjectClusterSettingOutcomeCallable listFlowProjectClusterSettingCallable(const Model::ListFlowProjectClusterSettingRequest& request) const; + ListJobExecutionInstancesOutcome listJobExecutionInstances(const Model::ListJobExecutionInstancesRequest &request)const; + void listJobExecutionInstancesAsync(const Model::ListJobExecutionInstancesRequest& request, const ListJobExecutionInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobExecutionInstancesOutcomeCallable listJobExecutionInstancesCallable(const Model::ListJobExecutionInstancesRequest& request) const; + ListSlsLogstoreInfoOutcome listSlsLogstoreInfo(const Model::ListSlsLogstoreInfoRequest &request)const; + void listSlsLogstoreInfoAsync(const Model::ListSlsLogstoreInfoRequest& request, const ListSlsLogstoreInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSlsLogstoreInfoOutcomeCallable listSlsLogstoreInfoCallable(const Model::ListSlsLogstoreInfoRequest& request) const; + MetastoreDropTableOutcome metastoreDropTable(const Model::MetastoreDropTableRequest &request)const; + void metastoreDropTableAsync(const Model::MetastoreDropTableRequest& request, const MetastoreDropTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreDropTableOutcomeCallable metastoreDropTableCallable(const Model::MetastoreDropTableRequest& request) const; + CreateScalingRuleOutcome createScalingRule(const Model::CreateScalingRuleRequest &request)const; + void createScalingRuleAsync(const Model::CreateScalingRuleRequest& request, const CreateScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateScalingRuleOutcomeCallable createScalingRuleCallable(const Model::CreateScalingRuleRequest& request) const; + ListClusterServiceOutcome listClusterService(const Model::ListClusterServiceRequest &request)const; + void listClusterServiceAsync(const Model::ListClusterServiceRequest& request, const ListClusterServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterServiceOutcomeCallable listClusterServiceCallable(const Model::ListClusterServiceRequest& request) const; + GetOpsCommandDetailOutcome getOpsCommandDetail(const Model::GetOpsCommandDetailRequest &request)const; + void getOpsCommandDetailAsync(const Model::GetOpsCommandDetailRequest& request, const GetOpsCommandDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOpsCommandDetailOutcomeCallable getOpsCommandDetailCallable(const Model::GetOpsCommandDetailRequest& request) const; + CreateUserGroupOutcome createUserGroup(const Model::CreateUserGroupRequest &request)const; + void createUserGroupAsync(const Model::CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserGroupOutcomeCallable createUserGroupCallable(const Model::CreateUserGroupRequest& request) const; + DeleteNoteOutcome deleteNote(const Model::DeleteNoteRequest &request)const; + void deleteNoteAsync(const Model::DeleteNoteRequest& request, const DeleteNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNoteOutcomeCallable deleteNoteCallable(const Model::DeleteNoteRequest& request) const; + ListFlowClusterAllHostsOutcome listFlowClusterAllHosts(const Model::ListFlowClusterAllHostsRequest &request)const; + void listFlowClusterAllHostsAsync(const Model::ListFlowClusterAllHostsRequest& request, const ListFlowClusterAllHostsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowClusterAllHostsOutcomeCallable listFlowClusterAllHostsCallable(const Model::ListFlowClusterAllHostsRequest& request) const; + GetLogHistogramOutcome getLogHistogram(const Model::GetLogHistogramRequest &request)const; + void getLogHistogramAsync(const Model::GetLogHistogramRequest& request, const GetLogHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLogHistogramOutcomeCallable getLogHistogramCallable(const Model::GetLogHistogramRequest& request) const; + MetastoreDeleteDataResourceOutcome metastoreDeleteDataResource(const Model::MetastoreDeleteDataResourceRequest &request)const; + void metastoreDeleteDataResourceAsync(const Model::MetastoreDeleteDataResourceRequest& request, const MetastoreDeleteDataResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreDeleteDataResourceOutcomeCallable metastoreDeleteDataResourceCallable(const Model::MetastoreDeleteDataResourceRequest& request) const; + DeleteResourceQueueOutcome deleteResourceQueue(const Model::DeleteResourceQueueRequest &request)const; + void deleteResourceQueueAsync(const Model::DeleteResourceQueueRequest& request, const DeleteResourceQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteResourceQueueOutcomeCallable deleteResourceQueueCallable(const Model::DeleteResourceQueueRequest& request) const; + DescribeClusterResourcePoolSchedulerTypeOutcome describeClusterResourcePoolSchedulerType(const Model::DescribeClusterResourcePoolSchedulerTypeRequest &request)const; + void describeClusterResourcePoolSchedulerTypeAsync(const Model::DescribeClusterResourcePoolSchedulerTypeRequest& request, const DescribeClusterResourcePoolSchedulerTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterResourcePoolSchedulerTypeOutcomeCallable describeClusterResourcePoolSchedulerTypeCallable(const Model::DescribeClusterResourcePoolSchedulerTypeRequest& request) const; + PageListResourceUsersOutcome pageListResourceUsers(const Model::PageListResourceUsersRequest &request)const; + void pageListResourceUsersAsync(const Model::PageListResourceUsersRequest& request, const PageListResourceUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageListResourceUsersOutcomeCallable pageListResourceUsersCallable(const Model::PageListResourceUsersRequest& request) const; + ListFlowNodeSqlResultOutcome listFlowNodeSqlResult(const Model::ListFlowNodeSqlResultRequest &request)const; + void listFlowNodeSqlResultAsync(const Model::ListFlowNodeSqlResultRequest& request, const ListFlowNodeSqlResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowNodeSqlResultOutcomeCallable listFlowNodeSqlResultCallable(const Model::ListFlowNodeSqlResultRequest& request) const; + ModifyFlowForWebOutcome modifyFlowForWeb(const Model::ModifyFlowForWebRequest &request)const; + void modifyFlowForWebAsync(const Model::ModifyFlowForWebRequest& request, const ModifyFlowForWebAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowForWebOutcomeCallable modifyFlowForWebCallable(const Model::ModifyFlowForWebRequest& request) const; + RunNoteParagraphsOutcome runNoteParagraphs(const Model::RunNoteParagraphsRequest &request)const; + void runNoteParagraphsAsync(const Model::RunNoteParagraphsRequest& request, const RunNoteParagraphsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunNoteParagraphsOutcomeCallable runNoteParagraphsCallable(const Model::RunNoteParagraphsRequest& request) const; + ListJobExecutionPlanParamsOutcome listJobExecutionPlanParams(const Model::ListJobExecutionPlanParamsRequest &request)const; + void listJobExecutionPlanParamsAsync(const Model::ListJobExecutionPlanParamsRequest& request, const ListJobExecutionPlanParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobExecutionPlanParamsOutcomeCallable listJobExecutionPlanParamsCallable(const Model::ListJobExecutionPlanParamsRequest& request) const; + DescribeKafkaBrokerOutcome describeKafkaBroker(const Model::DescribeKafkaBrokerRequest &request)const; + void describeKafkaBrokerAsync(const Model::DescribeKafkaBrokerRequest& request, const DescribeKafkaBrokerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeKafkaBrokerOutcomeCallable describeKafkaBrokerCallable(const Model::DescribeKafkaBrokerRequest& request) const; + DescribeFlowNodeInstanceContainerLogOutcome describeFlowNodeInstanceContainerLog(const Model::DescribeFlowNodeInstanceContainerLogRequest &request)const; + void describeFlowNodeInstanceContainerLogAsync(const Model::DescribeFlowNodeInstanceContainerLogRequest& request, const DescribeFlowNodeInstanceContainerLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowNodeInstanceContainerLogOutcomeCallable describeFlowNodeInstanceContainerLogCallable(const Model::DescribeFlowNodeInstanceContainerLogRequest& request) const; + GetUserOutputStatisticInfoOutcome getUserOutputStatisticInfo(const Model::GetUserOutputStatisticInfoRequest &request)const; + void getUserOutputStatisticInfoAsync(const Model::GetUserOutputStatisticInfoRequest& request, const GetUserOutputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserOutputStatisticInfoOutcomeCallable getUserOutputStatisticInfoCallable(const Model::GetUserOutputStatisticInfoRequest& request) const; + DescribeClusterBasicInfoOutcome describeClusterBasicInfo(const Model::DescribeClusterBasicInfoRequest &request)const; + void describeClusterBasicInfoAsync(const Model::DescribeClusterBasicInfoRequest& request, const DescribeClusterBasicInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterBasicInfoOutcomeCallable describeClusterBasicInfoCallable(const Model::DescribeClusterBasicInfoRequest& request) const; + SaveBatchUserAccountInfoOutcome saveBatchUserAccountInfo(const Model::SaveBatchUserAccountInfoRequest &request)const; + void saveBatchUserAccountInfoAsync(const Model::SaveBatchUserAccountInfoRequest& request, const SaveBatchUserAccountInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveBatchUserAccountInfoOutcomeCallable saveBatchUserAccountInfoCallable(const Model::SaveBatchUserAccountInfoRequest& request) const; + GetOpsCommandResultOutcome getOpsCommandResult(const Model::GetOpsCommandResultRequest &request)const; + void getOpsCommandResultAsync(const Model::GetOpsCommandResultRequest& request, const GetOpsCommandResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOpsCommandResultOutcomeCallable getOpsCommandResultCallable(const Model::GetOpsCommandResultRequest& request) const; + ListEmrAvailableConfigOutcome listEmrAvailableConfig(const Model::ListEmrAvailableConfigRequest &request)const; + void listEmrAvailableConfigAsync(const Model::ListEmrAvailableConfigRequest& request, const ListEmrAvailableConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEmrAvailableConfigOutcomeCallable listEmrAvailableConfigCallable(const Model::ListEmrAvailableConfigRequest& request) const; + ListAlertUserGroupOutcome listAlertUserGroup(const Model::ListAlertUserGroupRequest &request)const; + void listAlertUserGroupAsync(const Model::ListAlertUserGroupRequest& request, const ListAlertUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlertUserGroupOutcomeCallable listAlertUserGroupCallable(const Model::ListAlertUserGroupRequest& request) const; + MetastoreSearchTablesOutcome metastoreSearchTables(const Model::MetastoreSearchTablesRequest &request)const; + void metastoreSearchTablesAsync(const Model::MetastoreSearchTablesRequest& request, const MetastoreSearchTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreSearchTablesOutcomeCallable metastoreSearchTablesCallable(const Model::MetastoreSearchTablesRequest& request) const; + ListFlowClusterOutcome listFlowCluster(const Model::ListFlowClusterRequest &request)const; + void listFlowClusterAsync(const Model::ListFlowClusterRequest& request, const ListFlowClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowClusterOutcomeCallable listFlowClusterCallable(const Model::ListFlowClusterRequest& request) const; + DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; + void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; + ResizeClusterV2Outcome resizeClusterV2(const Model::ResizeClusterV2Request &request)const; + void resizeClusterV2Async(const Model::ResizeClusterV2Request& request, const ResizeClusterV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResizeClusterV2OutcomeCallable resizeClusterV2Callable(const Model::ResizeClusterV2Request& request) const; + ModifyJobExecutionPlanParamOutcome modifyJobExecutionPlanParam(const Model::ModifyJobExecutionPlanParamRequest &request)const; + void modifyJobExecutionPlanParamAsync(const Model::ModifyJobExecutionPlanParamRequest& request, const ModifyJobExecutionPlanParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyJobExecutionPlanParamOutcomeCallable modifyJobExecutionPlanParamCallable(const Model::ModifyJobExecutionPlanParamRequest& request) const; + CreateFlowCategoryOutcome createFlowCategory(const Model::CreateFlowCategoryRequest &request)const; + void createFlowCategoryAsync(const Model::CreateFlowCategoryRequest& request, const CreateFlowCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowCategoryOutcomeCallable createFlowCategoryCallable(const Model::CreateFlowCategoryRequest& request) const; + DescribeUserOutcome describeUser(const Model::DescribeUserRequest &request)const; + void describeUserAsync(const Model::DescribeUserRequest& request, const DescribeUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserOutcomeCallable describeUserCallable(const Model::DescribeUserRequest& request) const; + ListClusterServiceCustomActionSupportConfigOutcome listClusterServiceCustomActionSupportConfig(const Model::ListClusterServiceCustomActionSupportConfigRequest &request)const; + void listClusterServiceCustomActionSupportConfigAsync(const Model::ListClusterServiceCustomActionSupportConfigRequest& request, const ListClusterServiceCustomActionSupportConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterServiceCustomActionSupportConfigOutcomeCallable listClusterServiceCustomActionSupportConfigCallable(const Model::ListClusterServiceCustomActionSupportConfigRequest& request) const; + GetLogDownloadUrlOutcome getLogDownloadUrl(const Model::GetLogDownloadUrlRequest &request)const; + void getLogDownloadUrlAsync(const Model::GetLogDownloadUrlRequest& request, const GetLogDownloadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLogDownloadUrlOutcomeCallable getLogDownloadUrlCallable(const Model::GetLogDownloadUrlRequest& request) const; + MetastoreDescribeTableOutcome metastoreDescribeTable(const Model::MetastoreDescribeTableRequest &request)const; + void metastoreDescribeTableAsync(const Model::MetastoreDescribeTableRequest& request, const MetastoreDescribeTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreDescribeTableOutcomeCallable metastoreDescribeTableCallable(const Model::MetastoreDescribeTableRequest& request) const; + ModifyFlowOutcome modifyFlow(const Model::ModifyFlowRequest &request)const; + void modifyFlowAsync(const Model::ModifyFlowRequest& request, const ModifyFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowOutcomeCallable modifyFlowCallable(const Model::ModifyFlowRequest& request) const; + DescribeScalingRuleOutcome describeScalingRule(const Model::DescribeScalingRuleRequest &request)const; + void describeScalingRuleAsync(const Model::DescribeScalingRuleRequest& request, const DescribeScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScalingRuleOutcomeCallable describeScalingRuleCallable(const Model::DescribeScalingRuleRequest& request) const; + CreateUserStatisticsOutcome createUserStatistics(const Model::CreateUserStatisticsRequest &request)const; + void createUserStatisticsAsync(const Model::CreateUserStatisticsRequest& request, const CreateUserStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserStatisticsOutcomeCallable createUserStatisticsCallable(const Model::CreateUserStatisticsRequest& request) const; + DeleteJobOutcome deleteJob(const Model::DeleteJobRequest &request)const; + void deleteJobAsync(const Model::DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteJobOutcomeCallable deleteJobCallable(const Model::DeleteJobRequest& request) const; + ModifyFlowProjectClusterSettingOutcome modifyFlowProjectClusterSetting(const Model::ModifyFlowProjectClusterSettingRequest &request)const; + void modifyFlowProjectClusterSettingAsync(const Model::ModifyFlowProjectClusterSettingRequest& request, const ModifyFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowProjectClusterSettingOutcomeCallable modifyFlowProjectClusterSettingCallable(const Model::ModifyFlowProjectClusterSettingRequest& request) const; + AddUserResourceRoleOutcome addUserResourceRole(const Model::AddUserResourceRoleRequest &request)const; + void addUserResourceRoleAsync(const Model::AddUserResourceRoleRequest& request, const AddUserResourceRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserResourceRoleOutcomeCallable addUserResourceRoleCallable(const Model::AddUserResourceRoleRequest& request) const; + ModifyClusterNameOutcome modifyClusterName(const Model::ModifyClusterNameRequest &request)const; + void modifyClusterNameAsync(const Model::ModifyClusterNameRequest& request, const ModifyClusterNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterNameOutcomeCallable modifyClusterNameCallable(const Model::ModifyClusterNameRequest& request) const; + MetastoreListTablesOutcome metastoreListTables(const Model::MetastoreListTablesRequest &request)const; + void metastoreListTablesAsync(const Model::MetastoreListTablesRequest& request, const MetastoreListTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MetastoreListTablesOutcomeCallable metastoreListTablesCallable(const Model::MetastoreListTablesRequest& request) const; ModifyResourcePoolSchedulerTypeOutcome modifyResourcePoolSchedulerType(const Model::ModifyResourcePoolSchedulerTypeRequest &request)const; void modifyResourcePoolSchedulerTypeAsync(const Model::ModifyResourcePoolSchedulerTypeRequest& request, const ModifyResourcePoolSchedulerTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyResourcePoolSchedulerTypeOutcomeCallable modifyResourcePoolSchedulerTypeCallable(const Model::ModifyResourcePoolSchedulerTypeRequest& request) const; ListOpsOperationTaskOutcome listOpsOperationTask(const Model::ListOpsOperationTaskRequest &request)const; void listOpsOperationTaskAsync(const Model::ListOpsOperationTaskRequest& request, const ListOpsOperationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOpsOperationTaskOutcomeCallable listOpsOperationTaskCallable(const Model::ListOpsOperationTaskRequest& request) const; - DeleteClusterHostGroupOutcome deleteClusterHostGroup(const Model::DeleteClusterHostGroupRequest &request)const; - void deleteClusterHostGroupAsync(const Model::DeleteClusterHostGroupRequest& request, const DeleteClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteClusterHostGroupOutcomeCallable deleteClusterHostGroupCallable(const Model::DeleteClusterHostGroupRequest& request) const; DeleteNavNodeOutcome deleteNavNode(const Model::DeleteNavNodeRequest &request)const; void deleteNavNodeAsync(const Model::DeleteNavNodeRequest& request, const DeleteNavNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNavNodeOutcomeCallable deleteNavNodeCallable(const Model::DeleteNavNodeRequest& request) const; - DescribeDataSourceSchemaTableOutcome describeDataSourceSchemaTable(const Model::DescribeDataSourceSchemaTableRequest &request)const; - void describeDataSourceSchemaTableAsync(const Model::DescribeDataSourceSchemaTableRequest& request, const DescribeDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataSourceSchemaTableOutcomeCallable describeDataSourceSchemaTableCallable(const Model::DescribeDataSourceSchemaTableRequest& request) const; + ListUserGroupsOutcome listUserGroups(const Model::ListUserGroupsRequest &request)const; + void listUserGroupsAsync(const Model::ListUserGroupsRequest& request, const ListUserGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserGroupsOutcomeCallable listUserGroupsCallable(const Model::ListUserGroupsRequest& request) const; UpdateProjectSettingOutcome updateProjectSetting(const Model::UpdateProjectSettingRequest &request)const; void updateProjectSettingAsync(const Model::UpdateProjectSettingRequest& request, const UpdateProjectSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateProjectSettingOutcomeCallable updateProjectSettingCallable(const Model::UpdateProjectSettingRequest& request) const; - OperateExistsNodeClusterOutcome operateExistsNodeCluster(const Model::OperateExistsNodeClusterRequest &request)const; - void operateExistsNodeClusterAsync(const Model::OperateExistsNodeClusterRequest& request, const OperateExistsNodeClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OperateExistsNodeClusterOutcomeCallable operateExistsNodeClusterCallable(const Model::OperateExistsNodeClusterRequest& request) const; DescribeNoteOutcome describeNote(const Model::DescribeNoteRequest &request)const; void describeNoteAsync(const Model::DescribeNoteRequest& request, const DescribeNoteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNoteOutcomeCallable describeNoteCallable(const Model::DescribeNoteRequest& request) const; diff --git a/emr/include/alibabacloud/emr/model/AddClusterServiceForAdminRequest.h b/emr/include/alibabacloud/emr/model/AddClusterServiceForAdminRequest.h new file mode 100644 index 000000000..1a4af899b --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddClusterServiceForAdminRequest.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_EMR_MODEL_ADDCLUSTERSERVICEFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDCLUSTERSERVICEFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddClusterServiceForAdminRequest : public RpcServiceRequest + { + + public: + AddClusterServiceForAdminRequest(); + ~AddClusterServiceForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceList()const; + void setServiceList(const std::string& serviceList); + std::string getComment()const; + void setComment(const std::string& comment); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string serviceList_; + std::string comment_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDCLUSTERSERVICEFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/AddClusterServiceForAdminResult.h b/emr/include/alibabacloud/emr/model/AddClusterServiceForAdminResult.h new file mode 100644 index 000000000..b2b9a2559 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddClusterServiceForAdminResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_ADDCLUSTERSERVICEFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDCLUSTERSERVICEFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddClusterServiceForAdminResult : public ServiceResult + { + public: + + + AddClusterServiceForAdminResult(); + explicit AddClusterServiceForAdminResult(const std::string &payload); + ~AddClusterServiceForAdminResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDCLUSTERSERVICEFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/AddHpHostRequest.h b/emr/include/alibabacloud/emr/model/AddHpHostRequest.h new file mode 100644 index 000000000..156be0377 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddHpHostRequest.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_EMR_MODEL_ADDHPHOSTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDHPHOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddHpHostRequest : public RpcServiceRequest + { + struct HpHost + { + int cpuCore; + int memSize; + std::string rackInfo; + std::string role; + std::string serialNumber; + std::string hostType; + std::string securityGroupId; + RepeatList hpHostDisk; + std::string vswitchId; + std::string externalKey; + std::string hostName; + std::string vpcId; + std::string innerIp; + std::string externalIp; + }; + + public: + AddHpHostRequest(); + ~AddHpHostRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getHpHost()const; + void setHpHost(const std::vector& hpHost); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHpBizId()const; + void setHpBizId(const std::string& hpBizId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::vector hpHost_; + std::string regionId_; + std::string hpBizId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDHPHOSTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/AddHpHostResult.h b/emr/include/alibabacloud/emr/model/AddHpHostResult.h new file mode 100644 index 000000000..7f11dad58 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddHpHostResult.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_EMR_MODEL_ADDHPHOSTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDHPHOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddHpHostResult : public ServiceResult + { + public: + + + AddHpHostResult(); + explicit AddHpHostResult(const std::string &payload); + ~AddHpHostResult(); + std::string getBizId()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDHPHOSTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/AddResourceToUsersRequest.h b/emr/include/alibabacloud/emr/model/AddResourceToUsersRequest.h new file mode 100644 index 000000000..83edf83df --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddResourceToUsersRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddResourceToUsersRequest : public RpcServiceRequest + { + + public: + AddResourceToUsersRequest(); + ~AddResourceToUsersRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::vector getUserIdList()const; + void setUserIdList(const std::vector& userIdList); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::vector getRoleIdList()const; + void setRoleIdList(const std::vector& roleIdList); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + std::vector userIdList_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::vector roleIdList_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/AddResourceToUsersResult.h b/emr/include/alibabacloud/emr/model/AddResourceToUsersResult.h new file mode 100644 index 000000000..6cdb1fc97 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddResourceToUsersResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddResourceToUsersResult : public ServiceResult + { + public: + + + AddResourceToUsersResult(); + explicit AddResourceToUsersResult(const std::string &payload); + ~AddResourceToUsersResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDRESOURCETOUSERSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/AddUserResourceRoleRequest.h b/emr/include/alibabacloud/emr/model/AddUserResourceRoleRequest.h new file mode 100644 index 000000000..ec25f8f88 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddUserResourceRoleRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddUserResourceRoleRequest : public RpcServiceRequest + { + + public: + AddUserResourceRoleRequest(); + ~AddUserResourceRoleRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getRoleId()const; + void setRoleId(long roleId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + long roleId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string aliyunUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/AddUserResourceRoleResult.h b/emr/include/alibabacloud/emr/model/AddUserResourceRoleResult.h new file mode 100644 index 000000000..08df2351c --- /dev/null +++ b/emr/include/alibabacloud/emr/model/AddUserResourceRoleResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT AddUserResourceRoleResult : public ServiceResult + { + public: + + + AddUserResourceRoleResult(); + explicit AddUserResourceRoleResult(const std::string &payload); + ~AddUserResourceRoleResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CloneDataSourceRequest.h b/emr/include/alibabacloud/emr/model/CloneDataSourceRequest.h index 983bc76bd..a62e98e7a 100644 --- a/emr/include/alibabacloud/emr/model/CloneDataSourceRequest.h +++ b/emr/include/alibabacloud/emr/model/CloneDataSourceRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); std::string getId()const; void setId(const std::string& id); std::string getAccessKeyId()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string regionId_; + std::string name_; std::string id_; std::string accessKeyId_; diff --git a/emr/include/alibabacloud/emr/model/CloneETLJobRequest.h b/emr/include/alibabacloud/emr/model/CloneETLJobRequest.h index 073f0e944..4d17eb912 100644 --- a/emr/include/alibabacloud/emr/model/CloneETLJobRequest.h +++ b/emr/include/alibabacloud/emr/model/CloneETLJobRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); std::string getId()const; void setId(const std::string& id); std::string getAccessKeyId()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string regionId_; + std::string name_; std::string id_; std::string accessKeyId_; diff --git a/emr/include/alibabacloud/emr/model/CreateBackupPlanRequest.h b/emr/include/alibabacloud/emr/model/CreateBackupPlanRequest.h new file mode 100644 index 000000000..c029abbbf --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBackupPlanRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBackupPlanRequest : public RpcServiceRequest + { + + public: + CreateBackupPlanRequest(); + ~CreateBackupPlanRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + std::string getRootPath()const; + void setRootPath(const std::string& rootPath); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string callerBid_; + std::string clusterId_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::string name_; + std::string rootPath_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBACKUPPLANREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateBackupPlanResult.h b/emr/include/alibabacloud/emr/model/CreateBackupPlanResult.h new file mode 100644 index 000000000..05a96c7aa --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBackupPlanResult.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_EMR_MODEL_CREATEBACKUPPLANRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBACKUPPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBackupPlanResult : public ServiceResult + { + public: + + + CreateBackupPlanResult(); + explicit CreateBackupPlanResult(const std::string &payload); + ~CreateBackupPlanResult(); + std::string getRootPath()const; + std::string getDescription()const; + std::string getClusterId()const; + std::string getId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string rootPath_; + std::string description_; + std::string clusterId_; + std::string id_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBACKUPPLANRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateBackupRequest.h b/emr/include/alibabacloud/emr/model/CreateBackupRequest.h new file mode 100644 index 000000000..06e35e998 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBackupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEBACKUPREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBackupRequest : public RpcServiceRequest + { + + public: + CreateBackupRequest(); + ~CreateBackupRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getMetadataType()const; + void setMetadataType(const std::string& metadataType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string backupPlanId_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string metadataType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateBackupResult.h b/emr/include/alibabacloud/emr/model/CreateBackupResult.h new file mode 100644 index 000000000..1e9194dd5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBackupResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBackupResult : public ServiceResult + { + public: + + + CreateBackupResult(); + explicit CreateBackupResult(const std::string &payload); + ~CreateBackupResult(); + std::string getTriggerType()const; + long getEndTime()const; + long getStartTime()const; + long getGmtModified()const; + std::string getTaskStatus()const; + std::string getTaskDetail()const; + std::string getTriggerUser()const; + long getGmtCreate()const; + int getTaskProcess()const; + std::string getClusterBizId()const; + std::string getTaskType()const; + std::string getBizId()const; + long getDataSourceId()const; + std::string getHostName()const; + long getEcmTaskId()const; + std::string getTaskResultDetail()const; + + protected: + void parse(const std::string &payload); + private: + std::string triggerType_; + long endTime_; + long startTime_; + long gmtModified_; + std::string taskStatus_; + std::string taskDetail_; + std::string triggerUser_; + long gmtCreate_; + int taskProcess_; + std::string clusterBizId_; + std::string taskType_; + std::string bizId_; + long dataSourceId_; + std::string hostName_; + long ecmTaskId_; + std::string taskResultDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateBackupRuleRequest.h b/emr/include/alibabacloud/emr/model/CreateBackupRuleRequest.h new file mode 100644 index 000000000..a1f05c6b9 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBackupRuleRequest.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_EMR_MODEL_CREATEBACKUPRULEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBackupRuleRequest : public RpcServiceRequest + { + + public: + CreateBackupRuleRequest(); + ~CreateBackupRuleRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBackupMethodType()const; + void setBackupMethodType(const std::string& backupMethodType); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getMetadataType()const; + void setMetadataType(const std::string& metadataType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string backupMethodType_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string backupPlanId_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string metadataType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::string name_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRULEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateBackupRuleResult.h b/emr/include/alibabacloud/emr/model/CreateBackupRuleResult.h new file mode 100644 index 000000000..bdce0503c --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBackupRuleResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRULERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBackupRuleResult : public ServiceResult + { + public: + + + CreateBackupRuleResult(); + explicit CreateBackupRuleResult(const std::string &payload); + ~CreateBackupRuleResult(); + std::string getDescription()const; + std::string getMetadataType()const; + std::string getBackupPlanId()const; + std::string getId()const; + std::string getBackupMethodType()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string metadataType_; + std::string backupPlanId_; + std::string id_; + std::string backupMethodType_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBACKUPRULERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateBatchUsersRequest.h b/emr/include/alibabacloud/emr/model/CreateBatchUsersRequest.h new file mode 100644 index 000000000..89b15b7e5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBatchUsersRequest.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEBATCHUSERSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBATCHUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBatchUsersRequest : public RpcServiceRequest + { + struct UserBaseParamList + { + std::string aliyunUserId; + std::string userName; + std::string userType; + std::string isSuperAdmin; + }; + + public: + CreateBatchUsersRequest(); + ~CreateBatchUsersRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getUserBaseParamList()const; + void setUserBaseParamList(const std::vector& userBaseParamList); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::vector getGroupId()const; + void setGroupId(const std::vector& groupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::vector userBaseParamList_; + long callerParentId_; + std::vector roleId_; + std::vector groupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBATCHUSERSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateBatchUsersResult.h b/emr/include/alibabacloud/emr/model/CreateBatchUsersResult.h new file mode 100644 index 000000000..ce96c3d03 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateBatchUsersResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEBATCHUSERSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEBATCHUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateBatchUsersResult : public ServiceResult + { + public: + + + CreateBatchUsersResult(); + explicit CreateBatchUsersResult(const std::string &payload); + ~CreateBatchUsersResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEBATCHUSERSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateClusterTemplateRequest.h b/emr/include/alibabacloud/emr/model/CreateClusterTemplateRequest.h index bb42d744f..d6cddd99e 100644 --- a/emr/include/alibabacloud/emr/model/CreateClusterTemplateRequest.h +++ b/emr/include/alibabacloud/emr/model/CreateClusterTemplateRequest.h @@ -87,6 +87,10 @@ namespace AlibabaCloud void setSshEnable(bool sshEnable); bool getEasEnable()const; void setEasEnable(bool easEnable); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + std::string getMetaStoreType()const; + void setMetaStoreType(const std::string& metaStoreType); std::string getSecurityGroupName()const; void setSecurityGroupName(const std::string& securityGroupName); std::string getDepositType()const; @@ -101,6 +105,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); bool getUseLocalMetaDb()const; void setUseLocalMetaDb(bool useLocalMetaDb); + std::string getMetaStoreConf()const; + void setMetaStoreConf(const std::string& metaStoreConf); std::string getEmrVer()const; void setEmrVer(const std::string& emrVer); std::string getTemplateName()const; @@ -147,6 +153,8 @@ namespace AlibabaCloud std::string securityGroupId_; bool sshEnable_; bool easEnable_; + std::string keyPairName_; + std::string metaStoreType_; std::string securityGroupName_; std::string depositType_; std::string accessKeyId_; @@ -154,6 +162,7 @@ namespace AlibabaCloud std::vector bootstrapAction_; std::string regionId_; bool useLocalMetaDb_; + std::string metaStoreConf_; std::string emrVer_; std::string templateName_; std::string userDefinedEmrEcsRole_; diff --git a/emr/include/alibabacloud/emr/model/CreateClusterV2Request.h b/emr/include/alibabacloud/emr/model/CreateClusterV2Request.h index 28139cd5d..4831a93bc 100644 --- a/emr/include/alibabacloud/emr/model/CreateClusterV2Request.h +++ b/emr/include/alibabacloud/emr/model/CreateClusterV2Request.h @@ -103,6 +103,8 @@ namespace AlibabaCloud void setEasEnable(bool easEnable); std::string getKeyPairName()const; void setKeyPairName(const std::string& keyPairName); + std::string getMetaStoreType()const; + void setMetaStoreType(const std::string& metaStoreType); std::string getSecurityGroupName()const; void setSecurityGroupName(const std::string& securityGroupName); std::string getDepositType()const; @@ -119,6 +121,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); bool getUseLocalMetaDb()const; void setUseLocalMetaDb(bool useLocalMetaDb); + std::string getMetaStoreConf()const; + void setMetaStoreConf(const std::string& metaStoreConf); std::string getEmrVer()const; void setEmrVer(const std::string& emrVer); std::vector getUserInfo()const; @@ -177,6 +181,7 @@ namespace AlibabaCloud bool sshEnable_; bool easEnable_; std::string keyPairName_; + std::string metaStoreType_; std::string securityGroupName_; std::string depositType_; std::string accessKeyId_; @@ -185,6 +190,7 @@ namespace AlibabaCloud std::vector bootstrapAction_; std::string regionId_; bool useLocalMetaDb_; + std::string metaStoreConf_; std::string emrVer_; std::vector userInfo_; std::string userDefinedEmrEcsRole_; diff --git a/emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolRequest.h b/emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolRequest.h new file mode 100644 index 000000000..06f428462 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolRequest.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATECLUSTERWITHHOSTPOOLREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATECLUSTERWITHHOSTPOOLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateClusterWithHostPoolRequest : public RpcServiceRequest + { + struct HostInfo + { + std::string hpHostBizId; + std::string hostName; + std::string role; + long groupId; + std::string privateIp; + RepeatList serviceComponentInfo; + std::string hostGroupName; + }; + struct HostGroup + { + std::string groupType; + long groupId; + std::string groupName; + }; + struct ServiceInfo + { + std::string serviceEcmVersion; + std::string serviceVersion; + std::string serviceName; + }; + struct Config + { + std::string configKey; + std::string fileName; + std::string configValue; + std::string serviceName; + }; + + public: + CreateClusterWithHostPoolRequest(); + ~CreateClusterWithHostPoolRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClusterName()const; + void setClusterName(const std::string& clusterName); + bool getEasEnable()const; + void setEasEnable(bool easEnable); + std::vector getHostInfo()const; + void setHostInfo(const std::vector& hostInfo); + std::string getRelatedClusterId()const; + void setRelatedClusterId(const std::string& relatedClusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getClusterType()const; + void setClusterType(const std::string& clusterType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getHostGroup()const; + void setHostGroup(const std::vector& hostGroup); + std::string getStackName()const; + void setStackName(const std::string& stackName); + std::string getStackVersion()const; + void setStackVersion(const std::string& stackVersion); + std::vector getServiceInfo()const; + void setServiceInfo(const std::vector& serviceInfo); + std::vector getConfig()const; + void setConfig(const std::vector& config); + + private: + long resourceOwnerId_; + std::string clusterName_; + bool easEnable_; + std::vector hostInfo_; + std::string relatedClusterId_; + std::string accessKeyId_; + std::string clusterType_; + std::string regionId_; + std::vector hostGroup_; + std::string stackName_; + std::string stackVersion_; + std::vector serviceInfo_; + std::vector config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATECLUSTERWITHHOSTPOOLREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolResult.h b/emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolResult.h new file mode 100644 index 000000000..b29eb059e --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateClusterWithHostPoolResult.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_EMR_MODEL_CREATECLUSTERWITHHOSTPOOLRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATECLUSTERWITHHOSTPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateClusterWithHostPoolResult : public ServiceResult + { + public: + + + CreateClusterWithHostPoolResult(); + explicit CreateClusterWithHostPoolResult(const std::string &payload); + ~CreateClusterWithHostPoolResult(); + std::string getWorkFlowInstanceId()const; + std::string getClusterId()const; + std::string getOperationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string workFlowInstanceId_; + std::string clusterId_; + std::string operationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATECLUSTERWITHHOSTPOOLRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateClusterWithTemplateRequest.h b/emr/include/alibabacloud/emr/model/CreateClusterWithTemplateRequest.h index a356c98c3..4c5d2b9a7 100644 --- a/emr/include/alibabacloud/emr/model/CreateClusterWithTemplateRequest.h +++ b/emr/include/alibabacloud/emr/model/CreateClusterWithTemplateRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getUniqueTag()const; void setUniqueTag(const std::string& uniqueTag); + std::string getClusterName()const; + void setClusterName(const std::string& clusterName); std::string getTemplateBizId()const; void setTemplateBizId(const std::string& templateBizId); std::string getAccessKeyId()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string uniqueTag_; + std::string clusterName_; std::string templateBizId_; std::string accessKeyId_; diff --git a/emr/include/alibabacloud/emr/model/CreateETLJobRequest.h b/emr/include/alibabacloud/emr/model/CreateETLJobRequest.h index a32ce12fa..857600039 100644 --- a/emr/include/alibabacloud/emr/model/CreateETLJobRequest.h +++ b/emr/include/alibabacloud/emr/model/CreateETLJobRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getDescription()const; void setDescription(const std::string& description); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); std::string getType()const; void setType(const std::string& type); std::string getProjectId()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud std::string navParentId_; std::string name_; std::string description_; + std::string clusterId_; std::string type_; std::string projectId_; std::string accessKeyId_; diff --git a/emr/include/alibabacloud/emr/model/CreateHostPoolRequest.h b/emr/include/alibabacloud/emr/model/CreateHostPoolRequest.h new file mode 100644 index 000000000..da93c8045 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateHostPoolRequest.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_EMR_MODEL_CREATEHOSTPOOLREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEHOSTPOOLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateHostPoolRequest : public RpcServiceRequest + { + struct KubeClusterInfo + { + std::string externalKey; + std::string internalConfig; + std::string publicConfig; + std::string sshConfig; + }; + + public: + CreateHostPoolRequest(); + ~CreateHostPoolRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::vector getKubeClusterInfo()const; + void setKubeClusterInfo(const std::vector& kubeClusterInfo); + std::string getType()const; + void setType(const std::string& type); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string name_; + std::string description_; + std::vector kubeClusterInfo_; + std::string type_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEHOSTPOOLREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateHostPoolResult.h b/emr/include/alibabacloud/emr/model/CreateHostPoolResult.h new file mode 100644 index 000000000..1540535ce --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateHostPoolResult.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_EMR_MODEL_CREATEHOSTPOOLRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEHOSTPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateHostPoolResult : public ServiceResult + { + public: + + + CreateHostPoolResult(); + explicit CreateHostPoolResult(const std::string &payload); + ~CreateHostPoolResult(); + std::string getBizId()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEHOSTPOOLRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateUserGroupRequest.h b/emr/include/alibabacloud/emr/model/CreateUserGroupRequest.h new file mode 100644 index 000000000..eae260620 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateUserGroupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEUSERGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateUserGroupRequest : public RpcServiceRequest + { + + public: + CreateUserGroupRequest(); + ~CreateUserGroupRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getType()const; + void setType(const std::string& type); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + std::vector getRoleIdList()const; + void setRoleIdList(const std::vector& roleIdList); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string type_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::string name_; + std::vector roleIdList_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEUSERGROUPREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateUserGroupResult.h b/emr/include/alibabacloud/emr/model/CreateUserGroupResult.h new file mode 100644 index 000000000..2510ad352 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateUserGroupResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEUSERGROUPRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateUserGroupResult : public ServiceResult + { + public: + + + CreateUserGroupResult(); + explicit CreateUserGroupResult(const std::string &payload); + ~CreateUserGroupResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateUserRequest.h b/emr/include/alibabacloud/emr/model/CreateUserRequest.h new file mode 100644 index 000000000..ec5e290c1 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateUserRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEUSERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateUserRequest : public RpcServiceRequest + { + struct UserAccountParamList + { + std::string accountType; + std::string authType; + std::string accountPassword; + }; + + public: + CreateUserRequest(); + ~CreateUserRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getUserType()const; + void setUserType(const std::string& userType); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::vector getUserAccountParamList()const; + void setUserAccountParamList(const std::vector& userAccountParamList); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::vector getGroupIdList()const; + void setGroupIdList(const std::vector& groupIdList); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::vector getRoleIdList()const; + void setRoleIdList(const std::vector& roleIdList); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + std::string getUserName()const; + void setUserName(const std::string& userName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string userType_; + std::string description_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + std::vector userAccountParamList_; + bool security_transport_; + std::vector groupIdList_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::vector roleIdList_; + long callerUid_; + std::string aliyunUserId_; + std::string userName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEUSERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/CreateUserResult.h b/emr/include/alibabacloud/emr/model/CreateUserResult.h new file mode 100644 index 000000000..f5f0a9176 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/CreateUserResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_CREATEUSERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_CREATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT CreateUserResult : public ServiceResult + { + public: + + + CreateUserResult(); + explicit CreateUserResult(const std::string &payload); + ~CreateUserResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_CREATEUSERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersRequest.h b/emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersRequest.h new file mode 100644 index 000000000..08bf40c4c --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersRequest.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_EMR_MODEL_DELETEBATCHRESOURCEUSERSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEBATCHRESOURCEUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteBatchResourceUsersRequest : public RpcServiceRequest + { + + public: + DeleteBatchResourceUsersRequest(); + ~DeleteBatchResourceUsersRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::vector getUserIdList()const; + void setUserIdList(const std::vector& userIdList); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + std::vector userIdList_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEBATCHRESOURCEUSERSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersResult.h b/emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersResult.h new file mode 100644 index 000000000..886603ba4 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteBatchResourceUsersResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DELETEBATCHRESOURCEUSERSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEBATCHRESOURCEUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteBatchResourceUsersResult : public ServiceResult + { + public: + + + DeleteBatchResourceUsersResult(); + explicit DeleteBatchResourceUsersResult(const std::string &payload); + ~DeleteBatchResourceUsersResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEBATCHRESOURCEUSERSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteHostPoolRequest.h b/emr/include/alibabacloud/emr/model/DeleteHostPoolRequest.h new file mode 100644 index 000000000..ee3570e7d --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteHostPoolRequest.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_EMR_MODEL_DELETEHOSTPOOLREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteHostPoolRequest : public RpcServiceRequest + { + + public: + DeleteHostPoolRequest(); + ~DeleteHostPoolRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string bizId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteHostPoolResult.h b/emr/include/alibabacloud/emr/model/DeleteHostPoolResult.h new file mode 100644 index 000000000..925be47b6 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteHostPoolResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteHostPoolResult : public ServiceResult + { + public: + + + DeleteHostPoolResult(); + explicit DeleteHostPoolResult(const std::string &payload); + ~DeleteHostPoolResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteResourceUserRequest.h b/emr/include/alibabacloud/emr/model/DeleteResourceUserRequest.h new file mode 100644 index 000000000..4b2fddc22 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteResourceUserRequest.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_EMR_MODEL_DELETERESOURCEUSERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETERESOURCEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteResourceUserRequest : public RpcServiceRequest + { + + public: + DeleteResourceUserRequest(); + ~DeleteResourceUserRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string aliyunUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETERESOURCEUSERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteResourceUserResult.h b/emr/include/alibabacloud/emr/model/DeleteResourceUserResult.h new file mode 100644 index 000000000..9384a6670 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteResourceUserResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DELETERESOURCEUSERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETERESOURCEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteResourceUserResult : public ServiceResult + { + public: + + + DeleteResourceUserResult(); + explicit DeleteResourceUserResult(const std::string &payload); + ~DeleteResourceUserResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETERESOURCEUSERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteUserGroupRequest.h b/emr/include/alibabacloud/emr/model/DeleteUserGroupRequest.h new file mode 100644 index 000000000..d9a845355 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteUserGroupRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DELETEUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEUSERGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteUserGroupRequest : public RpcServiceRequest + { + + public: + DeleteUserGroupRequest(); + ~DeleteUserGroupRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + long getGroupId()const; + void setGroupId(long groupId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEUSERGROUPREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteUserGroupResult.h b/emr/include/alibabacloud/emr/model/DeleteUserGroupResult.h new file mode 100644 index 000000000..c4bf42a1e --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteUserGroupResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DELETEUSERGROUPRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteUserGroupResult : public ServiceResult + { + public: + + + DeleteUserGroupResult(); + explicit DeleteUserGroupResult(const std::string &payload); + ~DeleteUserGroupResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteUserResourceRoleRequest.h b/emr/include/alibabacloud/emr/model/DeleteUserResourceRoleRequest.h new file mode 100644 index 000000000..9fe26f5df --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteUserResourceRoleRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DELETEUSERRESOURCEROLEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEUSERRESOURCEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteUserResourceRoleRequest : public RpcServiceRequest + { + + public: + DeleteUserResourceRoleRequest(); + ~DeleteUserResourceRoleRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getRoleId()const; + void setRoleId(long roleId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + long roleId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string aliyunUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEUSERRESOURCEROLEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DeleteUserResourceRoleResult.h b/emr/include/alibabacloud/emr/model/DeleteUserResourceRoleResult.h new file mode 100644 index 000000000..b9ff728e0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DeleteUserResourceRoleResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DELETEUSERRESOURCEROLERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DELETEUSERRESOURCEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DeleteUserResourceRoleResult : public ServiceResult + { + public: + + + DeleteUserResourceRoleResult(); + explicit DeleteUserResourceRoleResult(const std::string &payload); + ~DeleteUserResourceRoleResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DELETEUSERRESOURCEROLERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterBasicInfoResult.h b/emr/include/alibabacloud/emr/model/DescribeClusterBasicInfoResult.h index 377ebf460..baef167cf 100644 --- a/emr/include/alibabacloud/emr/model/DescribeClusterBasicInfoResult.h +++ b/emr/include/alibabacloud/emr/model/DescribeClusterBasicInfoResult.h @@ -34,6 +34,23 @@ namespace AlibabaCloud public: struct ClusterInfo { + struct RelateClusterInfo + { + std::string status; + std::string clusterId; + std::string clusterName; + }; + struct HostPoolInfo + { + std::string hpBizId; + std::string hpName; + }; + struct FailReason + { + std::string requestId; + std::string errorMsg; + std::string errorCode; + }; struct SoftwareInfo { struct Software @@ -48,11 +65,20 @@ namespace AlibabaCloud std::string emrVer; std::string clusterType; }; - struct FailReason + struct AccessInfo { - std::string requestId; - std::string errorMsg; - std::string errorCode; + struct ZKLink + { + std::string port; + std::string link; + }; + std::vector zKLinks; + }; + struct GatewayClusterInfo + { + std::string status; + std::string clusterId; + std::string clusterName; }; struct BootstrapAction { @@ -62,43 +88,58 @@ namespace AlibabaCloud }; int taskNodeInService; bool showSoftwareInterface; + HostPoolInfo hostPoolInfo; int coreNodeInService; - std::string securityGroupName; std::vector bootstrapActionList; - bool logEnable; - int masterNodeInService; + bool resizeDiskEnable; FailReason failReason; std::string name; bool highAvailabilityEnable; long expiredTime; std::string createType; - int coreNodeTotal; std::string imageId; - std::string configurations; - std::string netType; + bool autoScalingSpotWithLimitAllowed; std::string userDefinedEmrEcsRole; + bool autoScalingAllowed; long stopTime; std::string status; - bool ioOptimized; - std::string zoneId; + std::string createResource; bool bootstrapFailed; std::string vSwitchId; - std::string securityGroupId; + std::string depositType; long startTime; - int taskNodeTotal; + std::vector gatewayClusterInfoList; int period; - int masterNodeTotal; - std::string clusterType; + std::string metaStoreType; bool easEnable; std::string vpcId; + SoftwareInfo softwareInfo; + std::string securityGroupName; + bool logEnable; + int masterNodeInService; + RelateClusterInfo relateClusterInfo; + std::string relateClusterId; + bool autoScalingByLoadAllowed; + int coreNodeTotal; + std::string configurations; + std::string netType; + bool localMetaDb; + std::string gatewayClusterIds; + bool ioOptimized; + std::string zoneId; + std::string clusterId; + std::string securityGroupId; + std::string machineType; + int taskNodeTotal; + AccessInfo accessInfo; + int masterNodeTotal; + std::string userId; std::string chargeType; + bool autoScalingEnable; std::string instanceGeneration; - std::string id; std::string regionId; - std::string bizId; std::string logPath; int runningTime; - SoftwareInfo softwareInfo; }; diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.h b/emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.h new file mode 100644 index 000000000..8bb9617c5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.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_EMR_MODEL_DESCRIBECLUSTERRESOURCEPOOLSCHEDULERTYPEFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERRESOURCEPOOLSCHEDULERTYPEFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeClusterResourcePoolSchedulerTypeForAdminRequest : public RpcServiceRequest + { + + public: + DescribeClusterResourcePoolSchedulerTypeForAdminRequest(); + ~DescribeClusterResourcePoolSchedulerTypeForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERRESOURCEPOOLSCHEDULERTYPEFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.h b/emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.h new file mode 100644 index 000000000..92da919c9 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.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_EMR_MODEL_DESCRIBECLUSTERRESOURCEPOOLSCHEDULERTYPEFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERRESOURCEPOOLSCHEDULERTYPEFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeClusterResourcePoolSchedulerTypeForAdminResult : public ServiceResult + { + public: + + + DescribeClusterResourcePoolSchedulerTypeForAdminResult(); + explicit DescribeClusterResourcePoolSchedulerTypeForAdminResult(const std::string &payload); + ~DescribeClusterResourcePoolSchedulerTypeForAdminResult(); + std::string getCurrentSchedulerType()const; + std::string getSupportSchedulerType()const; + std::string getDefaultSchedulerType()const; + + protected: + void parse(const std::string &payload); + private: + std::string currentSchedulerType_; + std::string supportSchedulerType_; + std::string defaultSchedulerType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERRESOURCEPOOLSCHEDULERTYPEFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminRequest.h b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminRequest.h new file mode 100644 index 000000000..c34726687 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminRequest.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_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeClusterServiceConfigForAdminRequest : public RpcServiceRequest + { + + public: + DescribeClusterServiceConfigForAdminRequest(); + ~DescribeClusterServiceConfigForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHostInstanceId()const; + void setHostInstanceId(const std::string& hostInstanceId); + std::string getTagValue()const; + void setTagValue(const std::string& tagValue); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getConfigVersion()const; + void setConfigVersion(const std::string& configVersion); + + private: + long resourceOwnerId_; + std::string hostInstanceId_; + std::string tagValue_; + std::string regionId_; + std::string groupId_; + std::string serviceName_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + std::string configVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminResult.h b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminResult.h new file mode 100644 index 000000000..c2d4c71cf --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigForAdminResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeClusterServiceConfigForAdminResult : public ServiceResult + { + public: + struct Config + { + struct ConfigValue + { + struct ConfigItemValue + { + std::string description; + bool isCustom; + std::string value; + std::string itemName; + }; + std::string configName; + bool allowCustom; + std::vector configItemValueList; + }; + struct PropertyInfo + { + struct PropertyValueAttributes + { + struct ValueEntryInfo + { + std::string description; + std::string value; + std::string label; + }; + bool readOnly; + std::string type; + std::string maximum; + std::string mimimum; + bool hidden; + std::vector entries; + std::string incrememtStep; + std::string unit; + }; + struct EffectWay + { + std::string invokeServiceName; + std::string effectType; + }; + std::vector propertyTypes; + std::string description; + PropertyValueAttributes propertyValueAttributes; + std::string serviceName; + EffectWay effectWay; + std::string fileName; + std::string value; + std::string displayName; + std::string component; + std::string name; + }; + std::string comment; + std::string serviceName; + std::vector propertyInfoList; + std::string configVersion; + std::string createTime; + std::string author; + std::vector configValueList; + std::string applied; + }; + + + DescribeClusterServiceConfigForAdminResult(); + explicit DescribeClusterServiceConfigForAdminResult(const std::string &payload); + ~DescribeClusterServiceConfigForAdminResult(); + Config getConfig()const; + + protected: + void parse(const std::string &payload); + private: + Config config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminRequest.h b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminRequest.h new file mode 100644 index 000000000..5599a7f00 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminRequest.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_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGTAGFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGTAGFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeClusterServiceConfigTagForAdminRequest : public RpcServiceRequest + { + + public: + DescribeClusterServiceConfigTagForAdminRequest(); + ~DescribeClusterServiceConfigTagForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getConfigTag()const; + void setConfigTag(const std::string& configTag); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string configTag_; + std::string serviceName_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGTAGFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminResult.h b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminResult.h new file mode 100644 index 000000000..3363fc85c --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeClusterServiceConfigTagForAdminResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGTAGFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGTAGFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeClusterServiceConfigTagForAdminResult : public ServiceResult + { + public: + struct ConfigTag + { + struct Value + { + std::string valueDesc; + std::string value; + }; + std::vector valueList; + std::string tagDesc; + std::string tag; + }; + + + DescribeClusterServiceConfigTagForAdminResult(); + explicit DescribeClusterServiceConfigTagForAdminResult(const std::string &payload); + ~DescribeClusterServiceConfigTagForAdminResult(); + std::vector getConfigTagList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector configTagList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBECLUSTERSERVICECONFIGTAGFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterTemplateResult.h b/emr/include/alibabacloud/emr/model/DescribeClusterTemplateResult.h index c995d27b3..9610c4f8e 100644 --- a/emr/include/alibabacloud/emr/model/DescribeClusterTemplateResult.h +++ b/emr/include/alibabacloud/emr/model/DescribeClusterTemplateResult.h @@ -71,6 +71,7 @@ namespace AlibabaCloud bool logEnable; long gmtModified; bool highAvailabilityEnable; + std::string masterPwd; bool sshEnable; bool isOpenPublicIp; std::string templateName; @@ -81,12 +82,14 @@ namespace AlibabaCloud bool initCustomHiveMetaDb; std::vector softwareInfoList; bool useLocalMetaDb; + std::string keyPairName; bool ioOptimized; std::string zoneId; std::string vSwitchId; std::string securityGroupId; std::string depositType; std::string machineType; + std::string metaStoreType; std::string emrVer; int masterNodeTotal; std::string clusterType; @@ -95,6 +98,7 @@ namespace AlibabaCloud std::string vpcId; bool useCustomHiveMetaDb; std::string userId; + std::string metaStoreConf; std::vector hostGroupList; std::string instanceGeneration; std::string id; diff --git a/emr/include/alibabacloud/emr/model/DescribeClusterV2Result.h b/emr/include/alibabacloud/emr/model/DescribeClusterV2Result.h index cf63fb9cd..c1908e673 100644 --- a/emr/include/alibabacloud/emr/model/DescribeClusterV2Result.h +++ b/emr/include/alibabacloud/emr/model/DescribeClusterV2Result.h @@ -40,6 +40,11 @@ namespace AlibabaCloud std::string clusterId; std::string clusterName; }; + struct HostPoolInfo + { + std::string hpBizId; + std::string hpName; + }; struct FailReason { std::string requestId; @@ -131,6 +136,7 @@ namespace AlibabaCloud }; int taskNodeInService; bool showSoftwareInterface; + HostPoolInfo hostPoolInfo; int coreNodeInService; std::vector bootstrapActionList; bool resizeDiskEnable; @@ -152,6 +158,7 @@ namespace AlibabaCloud long startTime; std::vector gatewayClusterInfoList; int period; + std::string metaStoreType; bool easEnable; std::string vpcId; std::vector hostGroupList; @@ -171,6 +178,7 @@ namespace AlibabaCloud bool ioOptimized; std::string zoneId; std::string securityGroupId; + std::string machineType; int taskNodeTotal; AccessInfo accessInfo; int masterNodeTotal; diff --git a/emr/include/alibabacloud/emr/model/DescribeDataSourceSchemaTableResult.h b/emr/include/alibabacloud/emr/model/DescribeDataSourceSchemaTableResult.h index d7f12e138..ab3c3db4d 100644 --- a/emr/include/alibabacloud/emr/model/DescribeDataSourceSchemaTableResult.h +++ b/emr/include/alibabacloud/emr/model/DescribeDataSourceSchemaTableResult.h @@ -37,6 +37,8 @@ namespace AlibabaCloud struct Field { std::string type; + std::string length; + bool partitionKey; int index; std::string rawType; std::string assignType; diff --git a/emr/include/alibabacloud/emr/model/DescribeETLJobInstanceResult.h b/emr/include/alibabacloud/emr/model/DescribeETLJobInstanceResult.h index 1b90118ac..af0ed293f 100644 --- a/emr/include/alibabacloud/emr/model/DescribeETLJobInstanceResult.h +++ b/emr/include/alibabacloud/emr/model/DescribeETLJobInstanceResult.h @@ -62,20 +62,9 @@ namespace AlibabaCloud }; struct StageInstance { - struct Metrics1 - { - long recordsOut; - long vcores; - long memSize; - long totalTime; - std::string recordsRate; - long recordsIn; - long recordsError; - }; - long endTime; - Metrics1 metrics1; - long startTime; + long stageEndTime; std::string id; + long stageStartTime; std::string name; }; diff --git a/emr/include/alibabacloud/emr/model/DescribeETLJobResult.h b/emr/include/alibabacloud/emr/model/DescribeETLJobResult.h index b07d55fa9..e5b010558 100644 --- a/emr/include/alibabacloud/emr/model/DescribeETLJobResult.h +++ b/emr/include/alibabacloud/emr/model/DescribeETLJobResult.h @@ -60,7 +60,7 @@ namespace AlibabaCloud std::vector alertUserGroupIdList; bool enable; std::string eventId; - std::vector alertDingDingGroupIdList; + std::vector alertDingDingGroupList; }; std::vector items; }; diff --git a/emr/include/alibabacloud/emr/model/DescribeETLJobSqlSchemaResult.h b/emr/include/alibabacloud/emr/model/DescribeETLJobSqlSchemaResult.h index c20583da5..d3c930fac 100644 --- a/emr/include/alibabacloud/emr/model/DescribeETLJobSqlSchemaResult.h +++ b/emr/include/alibabacloud/emr/model/DescribeETLJobSqlSchemaResult.h @@ -37,6 +37,8 @@ namespace AlibabaCloud struct Field { std::string type; + std::string length; + bool partitionKey; int index; std::string rawType; std::string assignType; diff --git a/emr/include/alibabacloud/emr/model/DescribeETLJobStageOutputSchemaResult.h b/emr/include/alibabacloud/emr/model/DescribeETLJobStageOutputSchemaResult.h index 97765c37c..e6f779ecf 100644 --- a/emr/include/alibabacloud/emr/model/DescribeETLJobStageOutputSchemaResult.h +++ b/emr/include/alibabacloud/emr/model/DescribeETLJobStageOutputSchemaResult.h @@ -37,6 +37,8 @@ namespace AlibabaCloud struct Field { std::string type; + std::string length; + bool partitionKey; int index; std::string rawType; std::string assignType; diff --git a/emr/include/alibabacloud/emr/model/DescribeHostPoolRequest.h b/emr/include/alibabacloud/emr/model/DescribeHostPoolRequest.h new file mode 100644 index 000000000..4957a09af --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeHostPoolRequest.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_EMR_MODEL_DESCRIBEHOSTPOOLREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEHOSTPOOLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeHostPoolRequest : public RpcServiceRequest + { + + public: + DescribeHostPoolRequest(); + ~DescribeHostPoolRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string bizId_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEHOSTPOOLREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeHostPoolResult.h b/emr/include/alibabacloud/emr/model/DescribeHostPoolResult.h new file mode 100644 index 000000000..5288a7544 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeHostPoolResult.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_EMR_MODEL_DESCRIBEHOSTPOOLRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEHOSTPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeHostPoolResult : public ServiceResult + { + public: + + + DescribeHostPoolResult(); + explicit DescribeHostPoolResult(const std::string &payload); + ~DescribeHostPoolResult(); + std::string getStatus()const; + std::string getType()const; + long getGmtCreate()const; + std::string getDescription()const; + int getHostCount()const; + std::string getBizId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string type_; + long gmtCreate_; + std::string description_; + int hostCount_; + std::string bizId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEHOSTPOOLRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeHpHostRequest.h b/emr/include/alibabacloud/emr/model/DescribeHpHostRequest.h new file mode 100644 index 000000000..dc490ed72 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeHpHostRequest.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_EMR_MODEL_DESCRIBEHPHOSTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEHPHOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeHpHostRequest : public RpcServiceRequest + { + + public: + DescribeHpHostRequest(); + ~DescribeHpHostRequest(); + + std::string getHpHostBizId()const; + void setHpHostBizId(const std::string& hpHostBizId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string hpHostBizId_; + long resourceOwnerId_; + std::string regionId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEHPHOSTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeHpHostResult.h b/emr/include/alibabacloud/emr/model/DescribeHpHostResult.h new file mode 100644 index 000000000..3d9616ebe --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeHpHostResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEHPHOSTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEHPHOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeHpHostResult : public ServiceResult + { + public: + struct Disk + { + std::string mountPath; + std::string diskDevice; + int diskSize; + }; + + + DescribeHpHostResult(); + explicit DescribeHpHostResult(const std::string &payload); + ~DescribeHpHostResult(); + std::string getStatus()const; + std::string getInnerIp()const; + std::string getSecurityGroupId()const; + std::vector getInstalledComponents()const; + std::string getVswitchId()const; + std::string getRole()const; + std::string getExternalIp()const; + std::string getVpcId()const; + int getCpuCore()const; + int getMemSize()const; + std::vector getDiskList()const; + std::string getExternalKey()const; + std::string getBizId()const; + std::string getHostName()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string innerIp_; + std::string securityGroupId_; + std::vector installedComponents_; + std::string vswitchId_; + std::string role_; + std::string externalIp_; + std::string vpcId_; + int cpuCore_; + int memSize_; + std::vector diskList_; + std::string externalKey_; + std::string bizId_; + std::string hostName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEHPHOSTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeKafkaBrokerRequest.h b/emr/include/alibabacloud/emr/model/DescribeKafkaBrokerRequest.h new file mode 100644 index 000000000..119f412d5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeKafkaBrokerRequest.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_EMR_MODEL_DESCRIBEKAFKABROKERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKABROKERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeKafkaBrokerRequest : public RpcServiceRequest + { + + public: + DescribeKafkaBrokerRequest(); + ~DescribeKafkaBrokerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHostId()const; + void setHostId(const std::string& hostId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string hostId_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKABROKERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeKafkaBrokerResult.h b/emr/include/alibabacloud/emr/model/DescribeKafkaBrokerResult.h new file mode 100644 index 000000000..24a793da1 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeKafkaBrokerResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKABROKERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKABROKERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeKafkaBrokerResult : public ServiceResult + { + public: + struct Topic + { + int leaderCount; + int replicationFactor; + int numPartitions; + int brokerNumPartitions; + std::string topicId; + std::vector partitionList; + std::string topicName; + }; + + + DescribeKafkaBrokerResult(); + explicit DescribeKafkaBrokerResult(const std::string &payload); + ~DescribeKafkaBrokerResult(); + std::string getHostIp()const; + std::string getStatus()const; + int getLeaderCount()const; + int getBrokerId()const; + std::string getDiskUsageMean()const; + std::string getDiskUsageMax()const; + std::string getTraffic()const; + int getTopicCount()const; + std::string getHostId()const; + int getDiskCapacity()const; + std::string getDiskUnbalanceRate()const; + std::vector getTopicList()const; + std::string getHostName()const; + int getPartitionCount()const; + + protected: + void parse(const std::string &payload); + private: + std::string hostIp_; + std::string status_; + int leaderCount_; + int brokerId_; + std::string diskUsageMean_; + std::string diskUsageMax_; + std::string traffic_; + int topicCount_; + std::string hostId_; + int diskCapacity_; + std::string diskUnbalanceRate_; + std::vector topicList_; + std::string hostName_; + int partitionCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKABROKERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeKafkaReassignRequest.h b/emr/include/alibabacloud/emr/model/DescribeKafkaReassignRequest.h new file mode 100644 index 000000000..14669394c --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeKafkaReassignRequest.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_EMR_MODEL_DESCRIBEKAFKAREASSIGNREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKAREASSIGNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeKafkaReassignRequest : public RpcServiceRequest + { + + public: + DescribeKafkaReassignRequest(); + ~DescribeKafkaReassignRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getReassignId()const; + void setReassignId(const std::string& reassignId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string reassignId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKAREASSIGNREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeKafkaReassignResult.h b/emr/include/alibabacloud/emr/model/DescribeKafkaReassignResult.h new file mode 100644 index 000000000..ccfa83122 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeKafkaReassignResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKAREASSIGNRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKAREASSIGNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeKafkaReassignResult : public ServiceResult + { + public: + + + DescribeKafkaReassignResult(); + explicit DescribeKafkaReassignResult(const std::string &payload); + ~DescribeKafkaReassignResult(); + std::string getStatus()const; + long getEndTime()const; + long getStartTime()const; + std::string getId()const; + int getTopicCount()const; + int getAssignProcess()const; + int getPartitionCount()const; + long getThrottle()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long endTime_; + long startTime_; + std::string id_; + int topicCount_; + int assignProcess_; + int partitionCount_; + long throttle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEKAFKAREASSIGNRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeUserGroupRequest.h b/emr/include/alibabacloud/emr/model/DescribeUserGroupRequest.h new file mode 100644 index 000000000..078d13247 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeUserGroupRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeUserGroupRequest : public RpcServiceRequest + { + + public: + DescribeUserGroupRequest(); + ~DescribeUserGroupRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + long getGroupId()const; + void setGroupId(long groupId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERGROUPREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeUserGroupResult.h b/emr/include/alibabacloud/emr/model/DescribeUserGroupResult.h new file mode 100644 index 000000000..bd9a6660b --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeUserGroupResult.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_EMR_MODEL_DESCRIBEUSERGROUPRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeUserGroupResult : public ServiceResult + { + public: + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + + + DescribeUserGroupResult(); + explicit DescribeUserGroupResult(const std::string &payload); + ~DescribeUserGroupResult(); + std::string getType()const; + std::string getGmtCreate()const; + bool getPaging()const; + long getId()const; + std::vector getRoleDTOList()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string type_; + std::string gmtCreate_; + bool paging_; + long id_; + std::vector roleDTOList_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeUserRequest.h b/emr/include/alibabacloud/emr/model/DescribeUserRequest.h new file mode 100644 index 000000000..8157d35e0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeUserRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeUserRequest : public RpcServiceRequest + { + + public: + DescribeUserRequest(); + ~DescribeUserRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string aliyunUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeUserResult.h b/emr/include/alibabacloud/emr/model/DescribeUserResult.h new file mode 100644 index 000000000..f2c9524cc --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeUserResult.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_EMR_MODEL_DESCRIBEUSERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeUserResult : public ServiceResult + { + public: + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + struct GroupDTO + { + struct RoleDTO2 + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + std::string type; + std::string gmtCreate; + long id; + std::vector roleDTOList1; + std::string name; + }; + struct AccountDTO + { + std::string authType; + std::string accountType; + std::string aliyunUserId; + }; + + + DescribeUserResult(); + explicit DescribeUserResult(const std::string &payload); + ~DescribeUserResult(); + std::string getStatus()const; + std::string getIsSuperAdmin()const; + std::string getGmtCreate()const; + std::string getUserName()const; + std::string getDescription()const; + std::vector getGroupDTOList()const; + std::vector getAccountDTOList()const; + bool getPaging()const; + std::string getGmtModified()const; + std::vector getRoleDTOList()const; + std::string getUserType()const; + std::string getAliyunUserId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string isSuperAdmin_; + std::string gmtCreate_; + std::string userName_; + std::string description_; + std::vector groupDTOList_; + std::vector accountDTOList_; + bool paging_; + std::string gmtModified_; + std::vector roleDTOList_; + std::string userType_; + std::string aliyunUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEUSERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingRequest.h b/emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingRequest.h new file mode 100644 index 000000000..a2c5395ca --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACEREPOSETTINGREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACEREPOSETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeWorkspaceRepoSettingRequest : public RpcServiceRequest + { + + public: + DescribeWorkspaceRepoSettingRequest(); + ~DescribeWorkspaceRepoSettingRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getWorkspaceId()const; + void setWorkspaceId(const std::string& workspaceId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string workspaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACEREPOSETTINGREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingResult.h b/emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingResult.h new file mode 100644 index 000000000..6fc246488 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeWorkspaceRepoSettingResult.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_EMR_MODEL_DESCRIBEWORKSPACEREPOSETTINGRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACEREPOSETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeWorkspaceRepoSettingResult : public ServiceResult + { + public: + struct RepoMaven + { + std::string artifactId; + std::string version; + std::string groupId; + }; + struct RepoPip + { + std::string packageName; + std::string version; + }; + + + DescribeWorkspaceRepoSettingResult(); + explicit DescribeWorkspaceRepoSettingResult(const std::string &payload); + ~DescribeWorkspaceRepoSettingResult(); + RepoMaven getRepoMaven()const; + RepoPip getRepoPip ()const; + + protected: + void parse(const std::string &payload); + private: + RepoMaven repoMaven_; + RepoPip repoPip _; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACEREPOSETTINGRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingRequest.h b/emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingRequest.h new file mode 100644 index 000000000..61a21c2f9 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACERESOURCESETTINGREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACERESOURCESETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeWorkspaceResourceSettingRequest : public RpcServiceRequest + { + + public: + DescribeWorkspaceResourceSettingRequest(); + ~DescribeWorkspaceResourceSettingRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getWorkspaceId()const; + void setWorkspaceId(const std::string& workspaceId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string workspaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACERESOURCESETTINGREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingResult.h b/emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingResult.h new file mode 100644 index 000000000..bda77d00d --- /dev/null +++ b/emr/include/alibabacloud/emr/model/DescribeWorkspaceResourceSettingResult.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_EMR_MODEL_DESCRIBEWORKSPACERESOURCESETTINGRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACERESOURCESETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT DescribeWorkspaceResourceSettingResult : public ServiceResult + { + public: + struct Oss + { + std::string defaultOssPath; + }; + + + DescribeWorkspaceResourceSettingResult(); + explicit DescribeWorkspaceResourceSettingResult(const std::string &payload); + ~DescribeWorkspaceResourceSettingResult(); + Oss getOss()const; + + protected: + void parse(const std::string &payload); + private: + Oss oss_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_DESCRIBEWORKSPACERESOURCESETTINGRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetAuditLogsRequest.h b/emr/include/alibabacloud/emr/model/GetAuditLogsRequest.h new file mode 100644 index 000000000..75c930596 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetAuditLogsRequest.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_EMR_MODEL_GETAUDITLOGSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_GETAUDITLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetAuditLogsRequest : public RpcServiceRequest + { + + public: + GetAuditLogsRequest(); + ~GetAuditLogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageCount()const; + void setPageCount(int pageCount); + std::string getOrderMode()const; + void setOrderMode(const std::string& orderMode); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getEntityId()const; + void setEntityId(const std::string& entityId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getLimit()const; + void setLimit(int limit); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentSize()const; + void setCurrentSize(int currentSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getOrderField()const; + void setOrderField(const std::string& orderField); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getOperation()const; + void setOperation(const std::string& operation); + + private: + long resourceOwnerId_; + int pageCount_; + std::string orderMode_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string entityId_; + std::string proxy_original_source_ip_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + int limit_; + int pageSize_; + int currentSize_; + long callerUid_; + std::string orderField_; + std::string app_ip_; + std::string callerBid_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + bool security_transport_; + std::string requestId_; + std::string operation_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETAUDITLOGSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetAuditLogsResult.h b/emr/include/alibabacloud/emr/model/GetAuditLogsResult.h new file mode 100644 index 000000000..b27c2f0f1 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetAuditLogsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_GETAUDITLOGSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_GETAUDITLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetAuditLogsResult : public ServiceResult + { + public: + struct Item + { + std::string entityId; + std::string userId; + std::string content; + std::string operation; + long ts; + }; + + + GetAuditLogsResult(); + explicit GetAuditLogsResult(const std::string &payload); + ~GetAuditLogsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETAUDITLOGSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackInfoRequest.h b/emr/include/alibabacloud/emr/model/GetBackInfoRequest.h new file mode 100644 index 000000000..5b8df0e91 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackInfoRequest.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_EMR_MODEL_GETBACKINFOREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackInfoRequest : public RpcServiceRequest + { + + public: + GetBackInfoRequest(); + ~GetBackInfoRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKINFOREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackInfoResult.h b/emr/include/alibabacloud/emr/model/GetBackInfoResult.h new file mode 100644 index 000000000..f6513ae25 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackInfoResult.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_EMR_MODEL_GETBACKINFORESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackInfoResult : public ServiceResult + { + public: + struct MetadataInfo + { + std::string metadataType; + std::string properties; + }; + + + GetBackInfoResult(); + explicit GetBackInfoResult(const std::string &payload); + ~GetBackInfoResult(); + std::string getStatus()const; + MetadataInfo getMetadataInfo()const; + std::string getTarFileName()const; + std::string getClusterId()const; + bool getPaging()const; + long getCreateTime()const; + std::string getBackupPlanId()const; + std::string getId()const; + std::string getMd5()const; + std::string getStorePath()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + MetadataInfo metadataInfo_; + std::string tarFileName_; + std::string clusterId_; + bool paging_; + long createTime_; + std::string backupPlanId_; + std::string id_; + std::string md5_; + std::string storePath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKINFORESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackPlanInfoRequest.h b/emr/include/alibabacloud/emr/model/GetBackPlanInfoRequest.h new file mode 100644 index 000000000..02c0053de --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackPlanInfoRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_GETBACKPLANINFOREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKPLANINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackPlanInfoRequest : public RpcServiceRequest + { + + public: + GetBackPlanInfoRequest(); + ~GetBackPlanInfoRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string backupPlanId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKPLANINFOREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackPlanInfoResult.h b/emr/include/alibabacloud/emr/model/GetBackPlanInfoResult.h new file mode 100644 index 000000000..dec7bd795 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackPlanInfoResult.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_EMR_MODEL_GETBACKPLANINFORESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKPLANINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackPlanInfoResult : public ServiceResult + { + public: + + + GetBackPlanInfoResult(); + explicit GetBackPlanInfoResult(const std::string &payload); + ~GetBackPlanInfoResult(); + std::string getRootPath()const; + std::string getDescription()const; + std::string getClusterId()const; + std::string getId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string rootPath_; + std::string description_; + std::string clusterId_; + std::string id_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKPLANINFORESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackupInfoRequest.h b/emr/include/alibabacloud/emr/model/GetBackupInfoRequest.h new file mode 100644 index 000000000..1d2ddf12d --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackupInfoRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackupInfoRequest : public RpcServiceRequest + { + + public: + GetBackupInfoRequest(); + ~GetBackupInfoRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string backupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackupInfoResult.h b/emr/include/alibabacloud/emr/model/GetBackupInfoResult.h new file mode 100644 index 000000000..b0c586395 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackupInfoResult.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_EMR_MODEL_GETBACKUPINFORESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKUPINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackupInfoResult : public ServiceResult + { + public: + struct MetadataInfo + { + std::string metadataType; + std::string properties; + }; + + + GetBackupInfoResult(); + explicit GetBackupInfoResult(const std::string &payload); + ~GetBackupInfoResult(); + std::string getStatus()const; + MetadataInfo getMetadataInfo()const; + std::string getTarFileName()const; + std::string getClusterId()const; + long getCreateTime()const; + std::string getBackupPlanId()const; + std::string getId()const; + std::string getMd5()const; + std::string getStorePath()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + MetadataInfo metadataInfo_; + std::string tarFileName_; + std::string clusterId_; + long createTime_; + std::string backupPlanId_; + std::string id_; + std::string md5_; + std::string storePath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKUPINFORESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackupRuleInfoRequest.h b/emr/include/alibabacloud/emr/model/GetBackupRuleInfoRequest.h new file mode 100644 index 000000000..5dc7fc25e --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackupRuleInfoRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_GETBACKUPRULEINFOREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKUPRULEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackupRuleInfoRequest : public RpcServiceRequest + { + + public: + GetBackupRuleInfoRequest(); + ~GetBackupRuleInfoRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getBackupRuleId()const; + void setBackupRuleId(const std::string& backupRuleId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string backupRuleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKUPRULEINFOREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetBackupRuleInfoResult.h b/emr/include/alibabacloud/emr/model/GetBackupRuleInfoResult.h new file mode 100644 index 000000000..1750f5d0b --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetBackupRuleInfoResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_GETBACKUPRULEINFORESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_GETBACKUPRULEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetBackupRuleInfoResult : public ServiceResult + { + public: + + + GetBackupRuleInfoResult(); + explicit GetBackupRuleInfoResult(const std::string &payload); + ~GetBackupRuleInfoResult(); + std::string getDescription()const; + std::string getMetadataType()const; + std::string getBackupPlanId()const; + std::string getId()const; + std::string getBackupMethodType()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string metadataType_; + std::string backupPlanId_; + std::string id_; + std::string backupMethodType_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKUPRULEINFORESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetFlowAuditLogsRequest.h b/emr/include/alibabacloud/emr/model/GetFlowAuditLogsRequest.h new file mode 100644 index 000000000..9dfa4a726 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetFlowAuditLogsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_GETFLOWAUDITLOGSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_GETFLOWAUDITLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetFlowAuditLogsRequest : public RpcServiceRequest + { + + public: + GetFlowAuditLogsRequest(); + ~GetFlowAuditLogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageCount()const; + void setPageCount(int pageCount); + std::string getOrderMode()const; + void setOrderMode(const std::string& orderMode); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getEntityId()const; + void setEntityId(const std::string& entityId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getLimit()const; + void setLimit(int limit); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentSize()const; + void setCurrentSize(int currentSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getOrderField()const; + void setOrderField(const std::string& orderField); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getEntityGroupId()const; + void setEntityGroupId(const std::string& entityGroupId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getEntityType()const; + void setEntityType(const std::string& entityType); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getOperatorId()const; + void setOperatorId(const std::string& operatorId); + std::string getOperation()const; + void setOperation(const std::string& operation); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + int pageCount_; + std::string orderMode_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string entityId_; + std::string proxy_original_source_ip_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + int limit_; + int pageSize_; + int currentSize_; + long callerUid_; + std::string orderField_; + std::string app_ip_; + std::string entityGroupId_; + std::string callerBid_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + bool security_transport_; + std::string entityType_; + std::string requestId_; + std::string operatorId_; + std::string operation_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETFLOWAUDITLOGSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetFlowAuditLogsResult.h b/emr/include/alibabacloud/emr/model/GetFlowAuditLogsResult.h new file mode 100644 index 000000000..1e8a632e5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetFlowAuditLogsResult.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_EMR_MODEL_GETFLOWAUDITLOGSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_GETFLOWAUDITLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetFlowAuditLogsResult : public ServiceResult + { + public: + struct Item + { + std::string entityId; + std::string entityType; + std::string status; + std::string userId; + std::string content; + std::string operatorId; + std::string entityGroupId; + std::string operation; + long ts; + }; + + + GetFlowAuditLogsResult(); + explicit GetFlowAuditLogsResult(const std::string &payload); + ~GetFlowAuditLogsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETFLOWAUDITLOGSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetMetadataTypeListRequest.h b/emr/include/alibabacloud/emr/model/GetMetadataTypeListRequest.h new file mode 100644 index 000000000..7b0935ae8 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetMetadataTypeListRequest.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_EMR_MODEL_GETMETADATATYPELISTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_GETMETADATATYPELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetMetadataTypeListRequest : public RpcServiceRequest + { + + public: + GetMetadataTypeListRequest(); + ~GetMetadataTypeListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETMETADATATYPELISTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/GetMetadataTypeListResult.h b/emr/include/alibabacloud/emr/model/GetMetadataTypeListResult.h new file mode 100644 index 000000000..bdba1ef17 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/GetMetadataTypeListResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_GETMETADATATYPELISTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_GETMETADATATYPELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT GetMetadataTypeListResult : public ServiceResult + { + public: + struct SupportedMetadataTypeDTO + { + std::vector serviceName; + std::vector name; + }; + + + GetMetadataTypeListResult(); + explicit GetMetadataTypeListResult(const std::string &payload); + ~GetMetadataTypeListResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_GETMETADATATYPELISTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListApmApplicationRequest.h b/emr/include/alibabacloud/emr/model/ListApmApplicationRequest.h new file mode 100644 index 000000000..0b1216cc3 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListApmApplicationRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListApmApplicationRequest : public RpcServiceRequest + { + + public: + ListApmApplicationRequest(); + ~ListApmApplicationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDiagnoseResult()const; + void setDiagnoseResult(const std::string& diagnoseResult); + long getEndTimeFrom()const; + void setEndTimeFrom(long endTimeFrom); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getJobType()const; + void setJobType(const std::string& jobType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getFinalStatus()const; + void setFinalStatus(const std::string& finalStatus); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getStartTimeFrom()const; + void setStartTimeFrom(long startTimeFrom); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getState()const; + void setState(const std::string& state); + long getStartTimeTo()const; + void setStartTimeTo(long startTimeTo); + std::string getUser()const; + void setUser(const std::string& user); + long getEndTimeTo()const; + void setEndTimeTo(long endTimeTo); + std::string getQueue()const; + void setQueue(const std::string& queue); + + private: + long resourceOwnerId_; + std::string diagnoseResult_; + long endTimeFrom_; + std::string orderBy_; + std::string clusterId_; + std::string jobType_; + int pageNumber_; + std::string accessKeyId_; + std::string finalStatus_; + std::string regionId_; + long startTimeFrom_; + std::string appId_; + std::string name_; + int pageSize_; + std::string state_; + long startTimeTo_; + std::string user_; + long endTimeTo_; + std::string queue_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListApmApplicationResult.h b/emr/include/alibabacloud/emr/model/ListApmApplicationResult.h new file mode 100644 index 000000000..393f1eb4d --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListApmApplicationResult.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_EMR_MODEL_LISTAPMAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListApmApplicationResult : public ServiceResult + { + public: + struct ApmAppInfo + { + float queueUsagePercent; + long allocatedMemory; + std::string resourceRequests; + std::string user; + std::string diagnostics; + long finishedTime; + std::string name; + std::string clusterBizId; + int runningDuration; + long memorySeconds; + std::string finalStatus; + std::string queue; + long allocatedVcore; + float clusterUsagePercent; + float progress; + long vcoreSeconds; + long startTime; + int runningContainers; + int duration; + long submitTime; + std::string diagnoseCode; + std::string applicationType; + std::string state; + std::string applicationId; + std::string diagnoseResult; + }; + + + ListApmApplicationResult(); + explicit ListApmApplicationResult(const std::string &payload); + ~ListApmApplicationResult(); + std::vector getApmAppInfoList()const; + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + + protected: + void parse(const std::string &payload); + private: + std::vector apmAppInfoList_; + int pageSize_; + int pageNumber_; + int total_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTAPMAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListBackupPlansRequest.h b/emr/include/alibabacloud/emr/model/ListBackupPlansRequest.h new file mode 100644 index 000000000..ae8e66353 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListBackupPlansRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTBACKUPPLANSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTBACKUPPLANSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListBackupPlansRequest : public RpcServiceRequest + { + + public: + ListBackupPlansRequest(); + ~ListBackupPlansRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageCount()const; + void setPageCount(int pageCount); + std::string getOrderMode()const; + void setOrderMode(const std::string& orderMode); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getLimit()const; + void setLimit(int limit); + int getPageSize()const; + void setPageSize(int pageSize); + long getId()const; + void setId(long id); + int getCurrentSize()const; + void setCurrentSize(int currentSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getOrderField()const; + void setOrderField(const std::string& orderField); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + int pageCount_; + std::string orderMode_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + int limit_; + int pageSize_; + long id_; + int currentSize_; + long callerUid_; + std::string orderField_; + std::string app_ip_; + std::string callerBid_; + std::string clusterId_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + bool security_transport_; + std::string requestId_; + std::string bizId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTBACKUPPLANSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListBackupPlansResult.h b/emr/include/alibabacloud/emr/model/ListBackupPlansResult.h new file mode 100644 index 000000000..a8f8d4ac2 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListBackupPlansResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTBACKUPPLANSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTBACKUPPLANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListBackupPlansResult : public ServiceResult + { + public: + struct Item + { + std::string rootPath; + std::string description; + std::string clusterId; + std::string id; + std::string name; + }; + + + ListBackupPlansResult(); + explicit ListBackupPlansResult(const std::string &payload); + ~ListBackupPlansResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTBACKUPPLANSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListBackupRulesRequest.h b/emr/include/alibabacloud/emr/model/ListBackupRulesRequest.h new file mode 100644 index 000000000..16368994a --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListBackupRulesRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTBACKUPRULESREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTBACKUPRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListBackupRulesRequest : public RpcServiceRequest + { + + public: + ListBackupRulesRequest(); + ~ListBackupRulesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageCount()const; + void setPageCount(int pageCount); + std::string getOrderMode()const; + void setOrderMode(const std::string& orderMode); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getLimit()const; + void setLimit(int limit); + int getPageSize()const; + void setPageSize(int pageSize); + long getId()const; + void setId(long id); + int getCurrentSize()const; + void setCurrentSize(int currentSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getOrderField()const; + void setOrderField(const std::string& orderField); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + int pageCount_; + std::string orderMode_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string backupPlanId_; + std::string proxy_original_source_ip_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + int limit_; + int pageSize_; + long id_; + int currentSize_; + long callerUid_; + std::string orderField_; + std::string app_ip_; + std::string callerBid_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + bool security_transport_; + std::string requestId_; + std::string bizId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTBACKUPRULESREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListBackupRulesResult.h b/emr/include/alibabacloud/emr/model/ListBackupRulesResult.h new file mode 100644 index 000000000..9230e0249 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListBackupRulesResult.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_EMR_MODEL_LISTBACKUPRULESRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTBACKUPRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListBackupRulesResult : public ServiceResult + { + public: + struct Item + { + std::string description; + std::string metadataType; + std::string backupPlanId; + std::string id; + std::string backupMethodType; + std::string name; + }; + + + ListBackupRulesResult(); + explicit ListBackupRulesResult(const std::string &payload); + ~ListBackupRulesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTBACKUPRULESRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListBackupsRequest.h b/emr/include/alibabacloud/emr/model/ListBackupsRequest.h new file mode 100644 index 000000000..dde0e40db --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListBackupsRequest.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_EMR_MODEL_LISTBACKUPSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTBACKUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListBackupsRequest : public RpcServiceRequest + { + + public: + ListBackupsRequest(); + ~ListBackupsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageCount()const; + void setPageCount(int pageCount); + std::string getOrderMode()const; + void setOrderMode(const std::string& orderMode); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getLimit()const; + void setLimit(int limit); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + long getId()const; + void setId(long id); + int getCurrentSize()const; + void setCurrentSize(int currentSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getOrderField()const; + void setOrderField(const std::string& orderField); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::vector getBackupId()const; + void setBackupId(const std::vector& backupId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getMetadataType()const; + void setMetadataType(const std::string& metadataType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + int pageCount_; + std::string orderMode_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string backupPlanId_; + std::string proxy_original_source_ip_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + int limit_; + int pageSize_; + std::string serviceName_; + long id_; + int currentSize_; + long callerUid_; + std::string orderField_; + std::string app_ip_; + std::vector backupId_; + std::string callerBid_; + std::string clusterId_; + std::string metadataType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + bool security_transport_; + std::string requestId_; + std::string bizId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTBACKUPSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListBackupsResult.h b/emr/include/alibabacloud/emr/model/ListBackupsResult.h new file mode 100644 index 000000000..ba78f1bdd --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListBackupsResult.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_EMR_MODEL_LISTBACKUPSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTBACKUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListBackupsResult : public ServiceResult + { + public: + struct Item + { + struct MetadataInfo + { + std::string metadataType; + std::string properties; + }; + std::string status; + MetadataInfo metadataInfo; + std::string tarFileName; + std::string clusterId; + long createTime; + std::string backupPlanId; + std::string id; + std::string md5; + std::string storePath; + }; + + + ListBackupsResult(); + explicit ListBackupsResult(const std::string &payload); + ~ListBackupsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTBACKUPSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminRequest.h b/emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminRequest.h new file mode 100644 index 000000000..138cdd09b --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminRequest.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_EMR_MODEL_LISTCLUSTERHOSTCOMPONENTFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERHOSTCOMPONENTFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterHostComponentForAdminRequest : public RpcServiceRequest + { + + public: + ListClusterHostComponentForAdminRequest(); + ~ListClusterHostComponentForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHostInstanceId()const; + void setHostInstanceId(const std::string& hostInstanceId); + std::string getComponentName()const; + void setComponentName(const std::string& componentName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getComponentStatus()const; + void setComponentStatus(const std::string& componentStatus); + std::string getHostName()const; + void setHostName(const std::string& hostName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + std::string getHostRole()const; + void setHostRole(const std::string& hostRole); + + private: + long resourceOwnerId_; + std::string hostInstanceId_; + std::string componentName_; + std::string clusterId_; + std::string userId_; + int pageNumber_; + std::string accessKeyId_; + std::string componentStatus_; + std::string hostName_; + std::string regionId_; + int pageSize_; + std::string serviceName_; + std::string hostRole_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERHOSTCOMPONENTFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminResult.h b/emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminResult.h new file mode 100644 index 000000000..2da9a5a4b --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterHostComponentForAdminResult.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_EMR_MODEL_LISTCLUSTERHOSTCOMPONENTFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERHOSTCOMPONENTFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterHostComponentForAdminResult : public ServiceResult + { + public: + struct Component + { + std::string status; + std::string componentDisplayName; + std::string publicIp; + int memory; + int cpu; + std::string hostId; + std::string hostInstanceId; + std::string serviceDisplayName; + std::string role; + std::string serialNumber; + std::string serviceName; + std::string privateIp; + std::string serverStatus; + bool needRestart; + std::string componentName; + std::string instanceType; + std::string hostName; + }; + + + ListClusterHostComponentForAdminResult(); + explicit ListClusterHostComponentForAdminResult(const std::string &payload); + ~ListClusterHostComponentForAdminResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getComponentList()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int total_; + std::vector componentList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERHOSTCOMPONENTFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterHostGroupResult.h b/emr/include/alibabacloud/emr/model/ListClusterHostGroupResult.h index 449f5ef09..c94cc7a05 100644 --- a/emr/include/alibabacloud/emr/model/ListClusterHostGroupResult.h +++ b/emr/include/alibabacloud/emr/model/ListClusterHostGroupResult.h @@ -35,28 +35,31 @@ namespace AlibabaCloud struct HostGroup { std::string hostGroupType; - std::string status; std::string hostGroupSubType; - int systemDiskCount; - std::string comment; - int nodeCount; + std::string hostGroupChangeType; + std::string hostGroupChangeStatus; int systemDiskSize; int memory; - std::string securityGroupId; std::string gmtModified; int cpu; int dataDiskCount; + std::string lockType; + std::string systemDiskType; + std::string instanceType; + std::string lockReason; + std::string status; + int systemDiskCount; + std::string comment; + int nodeCount; + std::string securityGroupId; std::string payType; std::string hostGroupName; - std::string lockType; std::string vswitchId; - std::string systemDiskType; std::string gmtCreate; std::string hostGroupId; std::string dataDiskType; + std::string chargeType; int dataDiskSize; - std::string instanceType; - std::string lockReason; }; diff --git a/emr/include/alibabacloud/emr/model/ListClusterHostResult.h b/emr/include/alibabacloud/emr/model/ListClusterHostResult.h index 623ae2939..1afff43e0 100644 --- a/emr/include/alibabacloud/emr/model/ListClusterHostResult.h +++ b/emr/include/alibabacloud/emr/model/ListClusterHostResult.h @@ -38,10 +38,12 @@ namespace AlibabaCloud { std::string diskType; std::string type; + std::string device; int diskSize; std::string diskId; }; std::string status; + std::string zoneId; std::string publicIp; int memory; std::string createTime; diff --git a/emr/include/alibabacloud/emr/model/ListClusterInstalledServiceRequest.h b/emr/include/alibabacloud/emr/model/ListClusterInstalledServiceRequest.h new file mode 100644 index 000000000..517c1ff43 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterInstalledServiceRequest.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_EMR_MODEL_LISTCLUSTERINSTALLEDSERVICEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERINSTALLEDSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterInstalledServiceRequest : public RpcServiceRequest + { + + public: + ListClusterInstalledServiceRequest(); + ~ListClusterInstalledServiceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERINSTALLEDSERVICEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterInstalledServiceResult.h b/emr/include/alibabacloud/emr/model/ListClusterInstalledServiceResult.h new file mode 100644 index 000000000..4194186b5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterInstalledServiceResult.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_EMR_MODEL_LISTCLUSTERINSTALLEDSERVICERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERINSTALLEDSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterInstalledServiceResult : public ServiceResult + { + public: + struct ClusterInstalledService + { + struct ServiceAction + { + std::string actionName; + std::string serviceName; + std::string command; + std::string displayName; + std::string componentName; + }; + std::string comment; + std::vector serviceActionList; + std::string serviceName; + std::string serviceEcmVersion; + std::string serviceStatus; + int notStartedNum; + int abnormalNum; + std::string serviceVersion; + bool onlyClient; + int needRestartNum; + std::string serviceDisplayName; + }; + + + ListClusterInstalledServiceResult(); + explicit ListClusterInstalledServiceResult(const std::string &payload); + ~ListClusterInstalledServiceResult(); + std::vector getClusterInstalledServiceList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector clusterInstalledServiceList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERINSTALLEDSERVICERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminRequest.h b/emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminRequest.h new file mode 100644 index 000000000..b6c2bde49 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminRequest.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_EMR_MODEL_LISTCLUSTERSERVICECONFIGHISTORYFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECONFIGHISTORYFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterServiceConfigHistoryForAdminRequest : public RpcServiceRequest + { + + public: + ListClusterServiceConfigHistoryForAdminRequest(); + ~ListClusterServiceConfigHistoryForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getConfigVersion()const; + void setConfigVersion(const std::string& configVersion); + + private: + long resourceOwnerId_; + std::string regionId_; + int pageSize_; + std::string serviceName_; + std::string clusterId_; + std::string userId_; + int pageNumber_; + std::string accessKeyId_; + std::string configVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECONFIGHISTORYFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminResult.h b/emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminResult.h new file mode 100644 index 000000000..ec218dfe3 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterServiceConfigHistoryForAdminResult.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_EMR_MODEL_LISTCLUSTERSERVICECONFIGHISTORYFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECONFIGHISTORYFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterServiceConfigHistoryForAdminResult : public ServiceResult + { + public: + struct ConfigHistory + { + std::string configFileName; + std::string comment; + std::string serviceName; + std::string oldValue; + std::string configVersion; + long createTime; + std::string author; + std::string newValue; + bool applied; + std::string configItemName; + }; + + + ListClusterServiceConfigHistoryForAdminResult(); + explicit ListClusterServiceConfigHistoryForAdminResult(const std::string &payload); + ~ListClusterServiceConfigHistoryForAdminResult(); + std::vector getConfigHistoryList()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector configHistoryList_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECONFIGHISTORYFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.h b/emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.h new file mode 100644 index 000000000..f1cc744eb --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.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_EMR_MODEL_LISTCLUSTERSERVICECUSTOMACTIONSUPPORTCONFIGFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECUSTOMACTIONSUPPORTCONFIGFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterServiceCustomActionSupportConfigForAdminRequest : public RpcServiceRequest + { + + public: + ListClusterServiceCustomActionSupportConfigForAdminRequest(); + ~ListClusterServiceCustomActionSupportConfigForAdminRequest(); + + std::string getServiceCustomActionName()const; + void setServiceCustomActionName(const std::string& serviceCustomActionName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string serviceCustomActionName_; + long resourceOwnerId_; + std::string regionId_; + std::string serviceName_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECUSTOMACTIONSUPPORTCONFIGFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminResult.h b/emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminResult.h new file mode 100644 index 000000000..03bad0bb5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterServiceCustomActionSupportConfigForAdminResult.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_EMR_MODEL_LISTCLUSTERSERVICECUSTOMACTIONSUPPORTCONFIGFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECUSTOMACTIONSUPPORTCONFIGFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterServiceCustomActionSupportConfigForAdminResult : public ServiceResult + { + public: + struct SupportedConfig + { + std::string configKey; + }; + + + ListClusterServiceCustomActionSupportConfigForAdminResult(); + explicit ListClusterServiceCustomActionSupportConfigForAdminResult(const std::string &payload); + ~ListClusterServiceCustomActionSupportConfigForAdminResult(); + std::vector getSupportedConfigList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector supportedConfigList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSERVICECUSTOMACTIONSUPPORTCONFIGFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterSupportServiceRequest.h b/emr/include/alibabacloud/emr/model/ListClusterSupportServiceRequest.h new file mode 100644 index 000000000..478004e45 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterSupportServiceRequest.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_EMR_MODEL_LISTCLUSTERSUPPORTSERVICEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSUPPORTSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterSupportServiceRequest : public RpcServiceRequest + { + + public: + ListClusterSupportServiceRequest(); + ~ListClusterSupportServiceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSUPPORTSERVICEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterSupportServiceResult.h b/emr/include/alibabacloud/emr/model/ListClusterSupportServiceResult.h new file mode 100644 index 000000000..0cf75f756 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterSupportServiceResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSUPPORTSERVICERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSUPPORTSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterSupportServiceResult : public ServiceResult + { + public: + struct SupportService + { + std::string serviceName; + std::string serviceEcmVersion; + std::string serviceVersion; + std::string serviceDisplayName; + }; + + + ListClusterSupportServiceResult(); + explicit ListClusterSupportServiceResult(const std::string &payload); + ~ListClusterSupportServiceResult(); + std::vector getSupportServiceList()const; + std::string getTotalCount()const; + std::string getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector supportServiceList_; + std::string totalCount_; + std::string pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERSUPPORTSERVICERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterTagForAdminRequest.h b/emr/include/alibabacloud/emr/model/ListClusterTagForAdminRequest.h new file mode 100644 index 000000000..76ca86114 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterTagForAdminRequest.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_EMR_MODEL_LISTCLUSTERTAGFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERTAGFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterTagForAdminRequest : public RpcServiceRequest + { + + public: + ListClusterTagForAdminRequest(); + ~ListClusterTagForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getClusterIdList()const; + void setClusterIdList(const std::vector& clusterIdList); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::vector clusterIdList_; + std::string regionId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERTAGFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterTagForAdminResult.h b/emr/include/alibabacloud/emr/model/ListClusterTagForAdminResult.h new file mode 100644 index 000000000..338d6e544 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListClusterTagForAdminResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTCLUSTERTAGFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTCLUSTERTAGFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListClusterTagForAdminResult : public ServiceResult + { + public: + struct ClusterTag + { + struct TagInfo + { + std::string tagType; + std::string tagKey; + std::string tagValue; + }; + std::string clusterId; + std::vector tagInfoList; + }; + + + ListClusterTagForAdminResult(); + explicit ListClusterTagForAdminResult(const std::string &payload); + ~ListClusterTagForAdminResult(); + std::vector getClusterTagList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector clusterTagList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTCLUSTERTAGFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListClusterTemplatesResult.h b/emr/include/alibabacloud/emr/model/ListClusterTemplatesResult.h index 3a8450bc6..c1cf6f061 100644 --- a/emr/include/alibabacloud/emr/model/ListClusterTemplatesResult.h +++ b/emr/include/alibabacloud/emr/model/ListClusterTemplatesResult.h @@ -81,12 +81,14 @@ namespace AlibabaCloud bool initCustomHiveMetaDb; std::vector softwareInfoList; bool useLocalMetaDb; + std::string keyPairName; bool ioOptimized; std::string zoneId; std::string vSwitchId; std::string securityGroupId; std::string depositType; std::string machineType; + std::string metaStoreType; int masterNodeTotal; std::string clusterType; bool easEnable; @@ -94,6 +96,7 @@ namespace AlibabaCloud std::string vpcId; bool useCustomHiveMetaDb; std::string userId; + std::string metaStoreConf; std::vector hostGroupList; std::string instanceGeneration; std::string id; diff --git a/emr/include/alibabacloud/emr/model/ListClustersRequest.h b/emr/include/alibabacloud/emr/model/ListClustersRequest.h index 036ecb95c..68a78cc24 100644 --- a/emr/include/alibabacloud/emr/model/ListClustersRequest.h +++ b/emr/include/alibabacloud/emr/model/ListClustersRequest.h @@ -57,6 +57,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getMachineType()const; + void setMachineType(const std::string& machineType); private: long resourceOwnerId_; @@ -70,6 +72,7 @@ namespace AlibabaCloud bool defaultStatus_; int pageNumber_; std::string accessKeyId_; + std::string machineType_; }; } diff --git a/emr/include/alibabacloud/emr/model/ListClustersResult.h b/emr/include/alibabacloud/emr/model/ListClustersResult.h index 328e99050..7d4f2486c 100644 --- a/emr/include/alibabacloud/emr/model/ListClustersResult.h +++ b/emr/include/alibabacloud/emr/model/ListClustersResult.h @@ -49,8 +49,10 @@ namespace AlibabaCloud std::string status; std::string createResource; long createTime; + std::string machineType; std::string depositType; int period; + std::string metaStoreType; FailReason failReason; std::string name; std::string type; diff --git a/emr/include/alibabacloud/emr/model/ListDataSourceSchemaTableResult.h b/emr/include/alibabacloud/emr/model/ListDataSourceSchemaTableResult.h index cd12ca622..994dd6ca4 100644 --- a/emr/include/alibabacloud/emr/model/ListDataSourceSchemaTableResult.h +++ b/emr/include/alibabacloud/emr/model/ListDataSourceSchemaTableResult.h @@ -37,6 +37,8 @@ namespace AlibabaCloud struct Field { std::string type; + std::string length; + bool partitionKey; int index; std::string rawType; std::string assignType; diff --git a/emr/include/alibabacloud/emr/model/ListETLJobInstanceResult.h b/emr/include/alibabacloud/emr/model/ListETLJobInstanceResult.h index 33587284f..f0813d25a 100644 --- a/emr/include/alibabacloud/emr/model/ListETLJobInstanceResult.h +++ b/emr/include/alibabacloud/emr/model/ListETLJobInstanceResult.h @@ -56,20 +56,9 @@ namespace AlibabaCloud }; struct StageInstance { - struct Metrics1 - { - long recordsOut; - long vcores; - long memSize; - long totalTime; - std::string recordsRate; - long recordsIn; - long recordsError; - }; - long endTime; - Metrics1 metrics1; - long startTime; + long stageEndTime; std::string id; + long stageStartTime; std::string name; }; std::string triggerUser; diff --git a/emr/include/alibabacloud/emr/model/ListETLJobReleaseRequest.h b/emr/include/alibabacloud/emr/model/ListETLJobReleaseRequest.h new file mode 100644 index 000000000..7cf538c05 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListETLJobReleaseRequest.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_EMR_MODEL_LISTETLJOBRELEASEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTETLJOBRELEASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListETLJobReleaseRequest : public RpcServiceRequest + { + + public: + ListETLJobReleaseRequest(); + ~ListETLJobReleaseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEtlJobId()const; + void setEtlJobId(const std::string& etlJobId); + std::string getReleaseId()const; + void setReleaseId(const std::string& releaseId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getReleaseVersion()const; + void setReleaseVersion(int releaseVersion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string etlJobId_; + std::string releaseId_; + int pageSize_; + int pageNumber_; + int releaseVersion_; + std::string accessKeyId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTETLJOBRELEASEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListETLJobReleaseResult.h b/emr/include/alibabacloud/emr/model/ListETLJobReleaseResult.h new file mode 100644 index 000000000..e0f199a79 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListETLJobReleaseResult.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_EMR_MODEL_LISTETLJOBRELEASERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTETLJOBRELEASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListETLJobReleaseResult : public ServiceResult + { + public: + struct Release + { + std::string status; + long gmtCreate; + long gmtModified; + std::string id; + std::string etlJobId; + int releaseVersion; + }; + + + ListETLJobReleaseResult(); + explicit ListETLJobReleaseResult(const std::string &payload); + ~ListETLJobReleaseResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getReleaseList()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int total_; + std::vector releaseList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTETLJOBRELEASERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListEmrAvailableConfigResult.h b/emr/include/alibabacloud/emr/model/ListEmrAvailableConfigResult.h index 8f01fb020..984efa9ae 100644 --- a/emr/include/alibabacloud/emr/model/ListEmrAvailableConfigResult.h +++ b/emr/include/alibabacloud/emr/model/ListEmrAvailableConfigResult.h @@ -50,6 +50,8 @@ namespace AlibabaCloud bool ecmVersion; std::string regionId; std::string mainVersionName; + std::string stackName; + std::string stackVersion; }; struct SecurityGroup { diff --git a/emr/include/alibabacloud/emr/model/ListFlowJobHistoryRequest.h b/emr/include/alibabacloud/emr/model/ListFlowJobHistoryRequest.h index 4de840697..073ac0652 100644 --- a/emr/include/alibabacloud/emr/model/ListFlowJobHistoryRequest.h +++ b/emr/include/alibabacloud/emr/model/ListFlowJobHistoryRequest.h @@ -35,6 +35,12 @@ namespace AlibabaCloud ListFlowJobHistoryRequest(); ~ListFlowJobHistoryRequest(); + std::string getTimeRange()const; + void setTimeRange(const std::string& timeRange); + std::vector getStatusList()const; + void setStatusList(const std::vector& statusList); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getPageSize()const; @@ -43,14 +49,20 @@ namespace AlibabaCloud void setId(const std::string& id); std::string getProjectId()const; void setProjectId(const std::string& projectId); + std::string getJobType()const; + void setJobType(const std::string& jobType); int getPageNumber()const; void setPageNumber(int pageNumber); private: + std::string timeRange_; + std::vector statusList_; + std::string instanceId_; std::string regionId_; int pageSize_; std::string id_; std::string projectId_; + std::string jobType_; int pageNumber_; }; diff --git a/emr/include/alibabacloud/emr/model/ListHostPoolRequest.h b/emr/include/alibabacloud/emr/model/ListHostPoolRequest.h new file mode 100644 index 000000000..bb7290c43 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListHostPoolRequest.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_EMR_MODEL_LISTHOSTPOOLREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTHOSTPOOLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListHostPoolRequest : public RpcServiceRequest + { + + public: + ListHostPoolRequest(); + ~ListHostPoolRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTHOSTPOOLREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListHostPoolResult.h b/emr/include/alibabacloud/emr/model/ListHostPoolResult.h new file mode 100644 index 000000000..dbbce31fb --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListHostPoolResult.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_EMR_MODEL_LISTHOSTPOOLRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTHOSTPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListHostPoolResult : public ServiceResult + { + public: + struct HostPool + { + std::string status; + std::string type; + long gmtCreate; + std::string description; + int hostCount; + std::string bizId; + std::string name; + }; + + + ListHostPoolResult(); + explicit ListHostPoolResult(const std::string &payload); + ~ListHostPoolResult(); + int getTotalCount()const; + std::vector getHostPoolList()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector hostPoolList_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTHOSTPOOLRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListHpHostRequest.h b/emr/include/alibabacloud/emr/model/ListHpHostRequest.h new file mode 100644 index 000000000..599ec0e9e --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListHpHostRequest.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_EMR_MODEL_LISTHPHOSTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTHPHOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListHpHostRequest : public RpcServiceRequest + { + + public: + ListHpHostRequest(); + ~ListHpHostRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole()const; + void setRole(const std::string& role); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getHpBizId()const; + void setHpBizId(const std::string& hpBizId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string role_; + std::string regionId_; + int pageSize_; + std::string hpBizId_; + int pageNumber_; + std::string accessKeyId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTHPHOSTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListHpHostResult.h b/emr/include/alibabacloud/emr/model/ListHpHostResult.h new file mode 100644 index 000000000..5ab162d54 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListHpHostResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTHPHOSTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTHPHOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListHpHostResult : public ServiceResult + { + public: + struct HpHost + { + struct Disk + { + std::string mountPath; + std::string diskDevice; + int diskSize; + }; + std::string status; + std::string description; + std::string innerIp; + std::string securityGroupId; + std::vector installedComponents; + std::string vswitchId; + std::string role; + std::string externalIp; + std::string vpcId; + int cpuCore; + int memSize; + std::vector diskList; + std::string externalKey; + std::string bizId; + std::string hostName; + }; + + + ListHpHostResult(); + explicit ListHpHostResult(const std::string &payload); + ~ListHpHostResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getHpHostList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector hpHostList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTHPHOSTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaBrokerRequest.h b/emr/include/alibabacloud/emr/model/ListKafkaBrokerRequest.h new file mode 100644 index 000000000..b41ff6c16 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaBrokerRequest.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_EMR_MODEL_LISTKAFKABROKERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKABROKERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaBrokerRequest : public RpcServiceRequest + { + + public: + ListKafkaBrokerRequest(); + ~ListKafkaBrokerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKABROKERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaBrokerResult.h b/emr/include/alibabacloud/emr/model/ListKafkaBrokerResult.h new file mode 100644 index 000000000..45c809cfc --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaBrokerResult.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_EMR_MODEL_LISTKAFKABROKERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKABROKERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaBrokerResult : public ServiceResult + { + public: + struct Broker + { + std::string hostIp; + std::string status; + int leaderCount; + int brokerId; + std::string diskUsageMean; + std::string diskUsageMax; + int topicCount; + std::string hostId; + std::string trafficIn; + int diskCapacity; + std::string trafficOut; + std::string diskUnbalanceRate; + std::string hostName; + int partitionCount; + }; + + + ListKafkaBrokerResult(); + explicit ListKafkaBrokerResult(const std::string &payload); + ~ListKafkaBrokerResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getBrokerList()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int total_; + std::vector brokerList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKABROKERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaReassignRequest.h b/emr/include/alibabacloud/emr/model/ListKafkaReassignRequest.h new file mode 100644 index 000000000..b5bf3c8b5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaReassignRequest.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_EMR_MODEL_LISTKAFKAREASSIGNREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaReassignRequest : public RpcServiceRequest + { + + public: + ListKafkaReassignRequest(); + ~ListKafkaReassignRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTopicId()const; + void setTopicId(const std::string& topicId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string topicId_; + std::string regionId_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaReassignResult.h b/emr/include/alibabacloud/emr/model/ListKafkaReassignResult.h new file mode 100644 index 000000000..da53a31ff --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaReassignResult.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_EMR_MODEL_LISTKAFKAREASSIGNRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaReassignResult : public ServiceResult + { + public: + struct Reassign + { + std::string status; + long endTime; + long startTime; + std::string id; + int topicCount; + int assignProcess; + int partitionCount; + long throttle; + }; + + + ListKafkaReassignResult(); + explicit ListKafkaReassignResult(const std::string &payload); + ~ListKafkaReassignResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getReassignList()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int total_; + std::vector reassignList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaReassignTopicRequest.h b/emr/include/alibabacloud/emr/model/ListKafkaReassignTopicRequest.h new file mode 100644 index 000000000..3f688e0f8 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaReassignTopicRequest.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_EMR_MODEL_LISTKAFKAREASSIGNTOPICREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNTOPICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaReassignTopicRequest : public RpcServiceRequest + { + + public: + ListKafkaReassignTopicRequest(); + ~ListKafkaReassignTopicRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getReassignId()const; + void setReassignId(const std::string& reassignId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string reassignId_; + int pageSize_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNTOPICREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaReassignTopicResult.h b/emr/include/alibabacloud/emr/model/ListKafkaReassignTopicResult.h new file mode 100644 index 000000000..1085e0bb9 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaReassignTopicResult.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_EMR_MODEL_LISTKAFKAREASSIGNTOPICRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNTOPICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaReassignTopicResult : public ServiceResult + { + public: + struct ReassignTopic + { + std::string status; + int numPartition; + std::string topicId; + std::string process; + int finishedPartition; + std::string topicName; + }; + + + ListKafkaReassignTopicResult(); + explicit ListKafkaReassignTopicResult(const std::string &payload); + ~ListKafkaReassignTopicResult(); + std::vector getReassignTopicList()const; + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + + protected: + void parse(const std::string &payload); + private: + std::vector reassignTopicList_; + int pageSize_; + int pageNumber_; + int total_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKAREASSIGNTOPICRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsRequest.h b/emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsRequest.h new file mode 100644 index 000000000..1b25f5c7a --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsRequest.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_EMR_MODEL_LISTKAFKATOPICSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKATOPICSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaTopicStatisticsRequest : public RpcServiceRequest + { + + public: + ListKafkaTopicStatisticsRequest(); + ~ListKafkaTopicStatisticsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getActiveOnly()const; + void setActiveOnly(bool activeOnly); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDataSourceId()const; + void setDataSourceId(const std::string& dataSourceId); + std::string getTopicName()const; + void setTopicName(const std::string& topicName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getFuzzyTopicName()const; + void setFuzzyTopicName(const std::string& fuzzyTopicName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + bool activeOnly_; + std::string regionId_; + int pageSize_; + std::string dataSourceId_; + std::string topicName_; + std::string clusterId_; + int pageNumber_; + std::string fuzzyTopicName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKATOPICSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsResult.h b/emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsResult.h new file mode 100644 index 000000000..63e7436a0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListKafkaTopicStatisticsResult.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_EMR_MODEL_LISTKAFKATOPICSTATISTICSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTKAFKATOPICSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListKafkaTopicStatisticsResult : public ServiceResult + { + public: + struct Topic + { + struct Cluster + { + std::string clusterId; + std::string clusterName; + std::string clusterStatus; + }; + std::string bytesOutPerSecondRate; + std::string offsetRate; + int numPartitions; + std::string bytesInPerSecondRate; + Cluster cluster; + std::string messageRate; + std::string topicId; + long offsetSum; + std::string dataSourceId; + std::string topicName; + std::string underReplicatedPercentage; + }; + + + ListKafkaTopicStatisticsResult(); + explicit ListKafkaTopicStatisticsResult(const std::string &payload); + ~ListKafkaTopicStatisticsResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getTopicList()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int total_; + std::vector topicList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTKAFKATOPICSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListNavSubTreeRequest.h b/emr/include/alibabacloud/emr/model/ListNavSubTreeRequest.h index ace16ea71..831e7a57a 100644 --- a/emr/include/alibabacloud/emr/model/ListNavSubTreeRequest.h +++ b/emr/include/alibabacloud/emr/model/ListNavSubTreeRequest.h @@ -37,26 +37,35 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + int getDepth()const; + void setDepth(int depth); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getName()const; void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); std::string getType()const; void setType(const std::string& type); std::string getProjectId()const; void setProjectId(const std::string& projectId); std::string getParentId()const; void setParentId(const std::string& parentId); + int getPageNumber()const; + void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); private: long resourceOwnerId_; + int depth_; std::string regionId_; std::string name_; + int pageSize_; std::string type_; std::string projectId_; std::string parentId_; + int pageNumber_; std::string accessKeyId_; }; diff --git a/emr/include/alibabacloud/emr/model/ListResourcePoolForAdminRequest.h b/emr/include/alibabacloud/emr/model/ListResourcePoolForAdminRequest.h new file mode 100644 index 000000000..df92c6998 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListResourcePoolForAdminRequest.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_EMR_MODEL_LISTRESOURCEPOOLFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTRESOURCEPOOLFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListResourcePoolForAdminRequest : public RpcServiceRequest + { + + public: + ListResourcePoolForAdminRequest(); + ~ListResourcePoolForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPoolType()const; + void setPoolType(const std::string& poolType); + + private: + long resourceOwnerId_; + std::string regionId_; + int pageSize_; + std::string clusterId_; + std::string userId_; + int pageNumber_; + std::string accessKeyId_; + std::string poolType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTRESOURCEPOOLFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListResourcePoolForAdminResult.h b/emr/include/alibabacloud/emr/model/ListResourcePoolForAdminResult.h new file mode 100644 index 000000000..30dfd9967 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListResourcePoolForAdminResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTRESOURCEPOOLFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTRESOURCEPOOLFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListResourcePoolForAdminResult : public ServiceResult + { + public: + struct PoolInfo + { + struct EcmResourcePool + { + bool active; + std::string poolType; + std::string userId; + std::string note; + std::string yarnSiteConfig; + long id; + std::string name; + }; + struct Queue + { + struct EcmResourceQueue + { + std::string status; + std::string userId; + std::string qualifiedName; + long parentQueueId; + bool leaf; + long id; + std::string name; + std::string queueType; + long resourcePoolId; + }; + struct EcmResourcePoolConfig + { + std::string status; + std::string configValue; + std::string configKey; + std::string category; + std::string note; + long id; + std::string configType; + }; + EcmResourceQueue ecmResourceQueue; + std::vector ecmResourcePoolConfigList1; + }; + struct EcmResourcePoolConfig2 + { + std::string status; + std::string configValue; + std::string configKey; + std::string category; + std::string note; + long id; + std::string configType; + }; + std::vector ecmResourcePoolConfigList; + EcmResourcePool ecmResourcePool; + std::vector queueList; + }; + + + ListResourcePoolForAdminResult(); + explicit ListResourcePoolForAdminResult(const std::string &payload); + ~ListResourcePoolForAdminResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotal()const; + std::vector getPoolInfoList()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int total_; + std::vector poolInfoList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTRESOURCEPOOLFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListRolesRequest.h b/emr/include/alibabacloud/emr/model/ListRolesRequest.h new file mode 100644 index 000000000..861f1faa0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListRolesRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTROLESREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTROLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListRolesRequest : public RpcServiceRequest + { + + public: + ListRolesRequest(); + ~ListRolesRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTROLESREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListRolesResult.h b/emr/include/alibabacloud/emr/model/ListRolesResult.h new file mode 100644 index 000000000..102ecd91d --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListRolesResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTROLESRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTROLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListRolesResult : public ServiceResult + { + public: + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + + + ListRolesResult(); + explicit ListRolesResult(const std::string &payload); + ~ListRolesResult(); + bool getPaging()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTROLESRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListStackRequest.h b/emr/include/alibabacloud/emr/model/ListStackRequest.h new file mode 100644 index 000000000..aa27755a2 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListStackRequest.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_EMR_MODEL_LISTSTACKREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListStackRequest : public RpcServiceRequest + { + + public: + ListStackRequest(); + ~ListStackRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getStackName()const; + void setStackName(const std::string& stackName); + std::string getStackVersion()const; + void setStackVersion(const std::string& stackVersion); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + int pageSize_; + std::string stackName_; + std::string stackVersion_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSTACKREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListStackResult.h b/emr/include/alibabacloud/emr/model/ListStackResult.h new file mode 100644 index 000000000..618c1f7cb --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListStackResult.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_EMR_MODEL_LISTSTACKRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListStackResult : public ServiceResult + { + public: + struct Stack + { + std::string status; + std::string version; + std::string name; + }; + + + ListStackResult(); + explicit ListStackResult(const std::string &payload); + ~ListStackResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getStackList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector stackList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSTACKRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListStackServiceRequest.h b/emr/include/alibabacloud/emr/model/ListStackServiceRequest.h new file mode 100644 index 000000000..c718fd09b --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListStackServiceRequest.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_EMR_MODEL_LISTSTACKSERVICEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSTACKSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListStackServiceRequest : public RpcServiceRequest + { + + public: + ListStackServiceRequest(); + ~ListStackServiceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackName()const; + void setStackName(const std::string& stackName); + std::string getStackVersion()const; + void setStackVersion(const std::string& stackVersion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string stackName_; + std::string stackVersion_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSTACKSERVICEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListStackServiceResult.h b/emr/include/alibabacloud/emr/model/ListStackServiceResult.h new file mode 100644 index 000000000..eb4b92693 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListStackServiceResult.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_EMR_MODEL_LISTSTACKSERVICERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSTACKSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListStackServiceResult : public ServiceResult + { + public: + struct Service + { + struct Component + { + std::string componentDisplayName; + std::string componentName; + }; + std::string comment; + std::string serviceName; + std::string version; + std::string displayName; + std::string ecmVersion; + std::vector componentList; + }; + + + ListStackServiceResult(); + explicit ListStackServiceResult(const std::string &payload); + ~ListStackServiceResult(); + std::vector getServiceList()const; + std::string getStackName()const; + std::string getStackVersion()const; + + protected: + void parse(const std::string &payload); + private: + std::vector serviceList_; + std::string stackName_; + std::string stackVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSTACKSERVICERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListStreamingSqlQueryRequest.h b/emr/include/alibabacloud/emr/model/ListStreamingSqlQueryRequest.h new file mode 100644 index 000000000..4113b89f7 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListStreamingSqlQueryRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTSTREAMINGSQLQUERYREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSTREAMINGSQLQUERYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListStreamingSqlQueryRequest : public RpcServiceRequest + { + + public: + ListStreamingSqlQueryRequest(); + ~ListStreamingSqlQueryRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string instanceId_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSTREAMINGSQLQUERYREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListStreamingSqlQueryResult.h b/emr/include/alibabacloud/emr/model/ListStreamingSqlQueryResult.h new file mode 100644 index 000000000..71608ca6b --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListStreamingSqlQueryResult.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_EMR_MODEL_LISTSTREAMINGSQLQUERYRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSTREAMINGSQLQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListStreamingSqlQueryResult : public ServiceResult + { + public: + struct Item + { + std::string status; + long gmtCreate; + std::string instanceId; + std::string queryId; + long gmtModified; + std::string error; + std::string runId; + std::string queryName; + }; + + + ListStreamingSqlQueryResult(); + explicit ListStreamingSqlQueryResult(const std::string &payload); + ~ListStreamingSqlQueryResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSTREAMINGSQLQUERYRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminRequest.h b/emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminRequest.h new file mode 100644 index 000000000..3cea0f07f --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminRequest.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_EMR_MODEL_LISTSUPPORTEDSERVICENAMEFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSUPPORTEDSERVICENAMEFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListSupportedServiceNameForAdminRequest : public RpcServiceRequest + { + + public: + ListSupportedServiceNameForAdminRequest(); + ~ListSupportedServiceNameForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSUPPORTEDSERVICENAMEFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminResult.h b/emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminResult.h new file mode 100644 index 000000000..a6f8ca886 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListSupportedServiceNameForAdminResult.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_EMR_MODEL_LISTSUPPORTEDSERVICENAMEFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTSUPPORTEDSERVICENAMEFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListSupportedServiceNameForAdminResult : public ServiceResult + { + public: + + + ListSupportedServiceNameForAdminResult(); + explicit ListSupportedServiceNameForAdminResult(const std::string &payload); + ~ListSupportedServiceNameForAdminResult(); + std::vector getSupportedServiceNameList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector supportedServiceNameList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTSUPPORTEDSERVICENAMEFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListUserGroupsRequest.h b/emr/include/alibabacloud/emr/model/ListUserGroupsRequest.h new file mode 100644 index 000000000..3fbe10b3d --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListUserGroupsRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTUSERGROUPSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTUSERGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListUserGroupsRequest : public RpcServiceRequest + { + + public: + ListUserGroupsRequest(); + ~ListUserGroupsRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFuzzyName()const; + void setFuzzyName(const std::string& fuzzyName); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string fuzzyName_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTUSERGROUPSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListUserGroupsResult.h b/emr/include/alibabacloud/emr/model/ListUserGroupsResult.h new file mode 100644 index 000000000..f55f30846 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListUserGroupsResult.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_EMR_MODEL_LISTUSERGROUPSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTUSERGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListUserGroupsResult : public ServiceResult + { + public: + struct GroupDTO + { + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + std::string type; + std::string gmtCreate; + long id; + std::vector roleDTOList; + std::string name; + }; + + + ListUserGroupsResult(); + explicit ListUserGroupsResult(const std::string &payload); + ~ListUserGroupsResult(); + bool getPaging()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTUSERGROUPSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListUsersByConditionRequest.h b/emr/include/alibabacloud/emr/model/ListUsersByConditionRequest.h new file mode 100644 index 000000000..b58ee34ee --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListUsersByConditionRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_LISTUSERSBYCONDITIONREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTUSERSBYCONDITIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListUsersByConditionRequest : public RpcServiceRequest + { + + public: + ListUsersByConditionRequest(); + ~ListUsersByConditionRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getSearchKey()const; + void setSearchKey(const std::string& searchKey); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string searchKey_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTUSERSBYCONDITIONREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ListUsersByConditionResult.h b/emr/include/alibabacloud/emr/model/ListUsersByConditionResult.h new file mode 100644 index 000000000..12ac9a989 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ListUsersByConditionResult.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_EMR_MODEL_LISTUSERSBYCONDITIONRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_LISTUSERSBYCONDITIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ListUsersByConditionResult : public ServiceResult + { + public: + struct UserDTO + { + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + struct GroupDTO + { + struct RoleDTO2 + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + std::string type; + std::string gmtCreate; + long id; + std::vector roleDTOList1; + std::string name; + }; + struct AccountDTO + { + std::string authType; + std::string accountType; + std::string aliyunUserId; + }; + std::string status; + std::string isSuperAdmin; + std::string gmtCreate; + std::string userName; + std::string description; + std::vector groupDTOList; + std::vector accountDTOList; + std::string gmtModified; + std::vector roleDTOList; + std::string userType; + std::string aliyunUserId; + }; + + + ListUsersByConditionResult(); + explicit ListUsersByConditionResult(const std::string &payload); + ~ListUsersByConditionResult(); + bool getPaging()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_LISTUSERSBYCONDITIONRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/MetastoreDescribeKafkaTopicResult.h b/emr/include/alibabacloud/emr/model/MetastoreDescribeKafkaTopicResult.h index 8e1624631..6f533a073 100644 --- a/emr/include/alibabacloud/emr/model/MetastoreDescribeKafkaTopicResult.h +++ b/emr/include/alibabacloud/emr/model/MetastoreDescribeKafkaTopicResult.h @@ -64,8 +64,10 @@ namespace AlibabaCloud MetastoreDescribeKafkaTopicResult(); explicit MetastoreDescribeKafkaTopicResult(const std::string &payload); ~MetastoreDescribeKafkaTopicResult(); + std::string getStatus()const; std::vector getAdvancedConfigList()const; int getReplicationFactor()const; + std::string getReassignId()const; std::vector getSummaryList()const; long getGmtModified()const; Cluster getCluster()const; @@ -84,8 +86,10 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::string status_; std::vector advancedConfigList_; int replicationFactor_; + std::string reassignId_; std::vector summaryList_; long gmtModified_; Cluster cluster_; diff --git a/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicRequest.h b/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicRequest.h index b394d7ecf..99537588a 100644 --- a/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicRequest.h +++ b/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getActiveOnly()const; + void setActiveOnly(bool activeOnly); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getPageSize()const; @@ -54,6 +56,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool activeOnly_; std::string regionId_; int pageSize_; std::string dataSourceId_; diff --git a/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicResult.h b/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicResult.h index 406cd5a50..b8e658728 100644 --- a/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicResult.h +++ b/emr/include/alibabacloud/emr/model/MetastoreListKafkaTopicResult.h @@ -45,9 +45,11 @@ namespace AlibabaCloud std::string value; std::string key; }; + std::string status; long gmtCreate; std::vector advancedConfigList; int replicationFactor; + std::string reassignId; int numPartitions; long gmtModified; Cluster cluster; diff --git a/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminRequest.h b/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminRequest.h new file mode 100644 index 000000000..4d6fbb2ca --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminRequest.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_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ModifyClusterServiceConfigForAdminRequest : public RpcServiceRequest + { + + public: + ModifyClusterServiceConfigForAdminRequest(); + ~ModifyClusterServiceConfigForAdminRequest(); + + bool getRefreshHostConfig()const; + void setRefreshHostConfig(bool refreshHostConfig); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConfigType()const; + void setConfigType(const std::string& configType); + std::string getHostInstanceId()const; + void setHostInstanceId(const std::string& hostInstanceId); + std::string getAuthor()const; + void setAuthor(const std::string& author); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCustomConfigParams()const; + void setCustomConfigParams(const std::string& customConfigParams); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + std::string getComment()const; + void setComment(const std::string& comment); + std::vector getGatewayClusterIdList()const; + void setGatewayClusterIdList(const std::vector& gatewayClusterIdList); + std::string getConfigParams()const; + void setConfigParams(const std::string& configParams); + + private: + bool refreshHostConfig_; + long resourceOwnerId_; + std::string configType_; + std::string hostInstanceId_; + std::string author_; + std::string groupId_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + std::string customConfigParams_; + std::string regionId_; + std::string serviceName_; + std::string comment_; + std::vector gatewayClusterIdList_; + std::string configParams_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminResult.h b/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminResult.h new file mode 100644 index 000000000..9eeb033e7 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigForAdminResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ModifyClusterServiceConfigForAdminResult : public ServiceResult + { + public: + + + ModifyClusterServiceConfigForAdminResult(); + explicit ModifyClusterServiceConfigForAdminResult(const std::string &payload); + ~ModifyClusterServiceConfigForAdminResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYCLUSTERSERVICECONFIGFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigRequest.h b/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigRequest.h index 3be93bc74..ef167ca5e 100644 --- a/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigRequest.h +++ b/emr/include/alibabacloud/emr/model/ModifyClusterServiceConfigRequest.h @@ -35,40 +35,46 @@ namespace AlibabaCloud ModifyClusterServiceConfigRequest(); ~ModifyClusterServiceConfigRequest(); + bool getRefreshHostConfig()const; + void setRefreshHostConfig(bool refreshHostConfig); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getCustomConfigParams()const; - void setCustomConfigParams(const std::string& customConfigParams); std::string getConfigType()const; void setConfigType(const std::string& configType); std::string getHostInstanceId()const; void setHostInstanceId(const std::string& hostInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); std::string getGroupId()const; void setGroupId(const std::string& groupId); - std::string getServiceName()const; - void setServiceName(const std::string& serviceName); - std::string getComment()const; - void setComment(const std::string& comment); std::string getClusterId()const; void setClusterId(const std::string& clusterId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getCustomConfigParams()const; + void setCustomConfigParams(const std::string& customConfigParams); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceName()const; + void setServiceName(const std::string& serviceName); + std::string getComment()const; + void setComment(const std::string& comment); + std::vector getGatewayClusterIdList()const; + void setGatewayClusterIdList(const std::vector& gatewayClusterIdList); std::string getConfigParams()const; void setConfigParams(const std::string& configParams); private: + bool refreshHostConfig_; long resourceOwnerId_; - std::string customConfigParams_; std::string configType_; std::string hostInstanceId_; - std::string regionId_; std::string groupId_; - std::string serviceName_; - std::string comment_; std::string clusterId_; std::string accessKeyId_; + std::string customConfigParams_; + std::string regionId_; + std::string serviceName_; + std::string comment_; + std::vector gatewayClusterIdList_; std::string configParams_; }; diff --git a/emr/include/alibabacloud/emr/model/ModifyClusterTemplateRequest.h b/emr/include/alibabacloud/emr/model/ModifyClusterTemplateRequest.h index 14f0aa7b9..d7d4ff537 100644 --- a/emr/include/alibabacloud/emr/model/ModifyClusterTemplateRequest.h +++ b/emr/include/alibabacloud/emr/model/ModifyClusterTemplateRequest.h @@ -87,6 +87,10 @@ namespace AlibabaCloud void setSshEnable(bool sshEnable); bool getEasEnable()const; void setEasEnable(bool easEnable); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + std::string getMetaStoreType()const; + void setMetaStoreType(const std::string& metaStoreType); std::string getSecurityGroupName()const; void setSecurityGroupName(const std::string& securityGroupName); std::string getDepositType()const; @@ -101,6 +105,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); bool getUseLocalMetaDb()const; void setUseLocalMetaDb(bool useLocalMetaDb); + std::string getMetaStoreConf()const; + void setMetaStoreConf(const std::string& metaStoreConf); std::string getEmrVer()const; void setEmrVer(const std::string& emrVer); std::string getTemplateName()const; @@ -151,6 +157,8 @@ namespace AlibabaCloud std::string securityGroupId_; bool sshEnable_; bool easEnable_; + std::string keyPairName_; + std::string metaStoreType_; std::string securityGroupName_; std::string depositType_; std::string accessKeyId_; @@ -158,6 +166,7 @@ namespace AlibabaCloud std::vector bootstrapAction_; std::string regionId_; bool useLocalMetaDb_; + std::string metaStoreConf_; std::string emrVer_; std::string templateName_; std::string userDefinedEmrEcsRole_; diff --git a/emr/include/alibabacloud/emr/model/ModifyHostPoolRequest.h b/emr/include/alibabacloud/emr/model/ModifyHostPoolRequest.h new file mode 100644 index 000000000..28f3268b0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ModifyHostPoolRequest.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_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ModifyHostPoolRequest : public RpcServiceRequest + { + + public: + ModifyHostPoolRequest(); + ~ModifyHostPoolRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string name_; + std::string bizId_; + std::string description_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ModifyHostPoolResult.h b/emr/include/alibabacloud/emr/model/ModifyHostPoolResult.h new file mode 100644 index 000000000..86932e1d0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ModifyHostPoolResult.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_EMR_MODEL_MODIFYHOSTPOOLRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ModifyHostPoolResult : public ServiceResult + { + public: + + + ModifyHostPoolResult(); + explicit ModifyHostPoolResult(const std::string &payload); + ~ModifyHostPoolResult(); + std::string getBizId()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ModifyHpHostRequest.h b/emr/include/alibabacloud/emr/model/ModifyHpHostRequest.h new file mode 100644 index 000000000..b70fa3010 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ModifyHpHostRequest.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_EMR_MODEL_MODIFYHPHOSTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_MODIFYHPHOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ModifyHpHostRequest : public RpcServiceRequest + { + struct HpHostDisk + { + std::string diskSize; + std::string mountPath; + std::string diskDevice; + }; + + public: + ModifyHpHostRequest(); + ~ModifyHpHostRequest(); + + int getCpuCore()const; + void setCpuCore(int cpuCore); + int getMemSize()const; + void setMemSize(int memSize); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRackInfo()const; + void setRackInfo(const std::string& rackInfo); + std::string getRole()const; + void setRole(const std::string& role); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getHostType()const; + void setHostType(const std::string& hostType); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::vector getHpHostDisk()const; + void setHpHostDisk(const std::vector& hpHostDisk); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getVswitchId()const; + void setVswitchId(const std::string& vswitchId); + std::string getHpHostBizId()const; + void setHpHostBizId(const std::string& hpHostBizId); + std::string getExternalKey()const; + void setExternalKey(const std::string& externalKey); + std::string getHostName()const; + void setHostName(const std::string& hostName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getInnerIp()const; + void setInnerIp(const std::string& innerIp); + std::string getExternalIp()const; + void setExternalIp(const std::string& externalIp); + + private: + int cpuCore_; + int memSize_; + long resourceOwnerId_; + std::string rackInfo_; + std::string role_; + std::string serialNumber_; + std::string hostType_; + std::string securityGroupId_; + std::vector hpHostDisk_; + std::string accessKeyId_; + std::string vswitchId_; + std::string hpHostBizId_; + std::string externalKey_; + std::string hostName_; + std::string regionId_; + std::string vpcId_; + std::string innerIp_; + std::string externalIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYHPHOSTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ModifyHpHostResult.h b/emr/include/alibabacloud/emr/model/ModifyHpHostResult.h new file mode 100644 index 000000000..468df8f86 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ModifyHpHostResult.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_EMR_MODEL_MODIFYHPHOSTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_MODIFYHPHOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ModifyHpHostResult : public ServiceResult + { + public: + + + ModifyHpHostResult(); + explicit ModifyHpHostResult(const std::string &payload); + ~ModifyHpHostResult(); + std::string getBizId()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYHPHOSTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/OfflineKafkaBrokerRequest.h b/emr/include/alibabacloud/emr/model/OfflineKafkaBrokerRequest.h new file mode 100644 index 000000000..fae49cfb4 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/OfflineKafkaBrokerRequest.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_EMR_MODEL_OFFLINEKAFKABROKERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_OFFLINEKAFKABROKERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT OfflineKafkaBrokerRequest : public RpcServiceRequest + { + + public: + OfflineKafkaBrokerRequest(); + ~OfflineKafkaBrokerRequest(); + + long getThrottle()const; + void setThrottle(long throttle); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHostId()const; + void setHostId(const std::string& hostId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long throttle_; + long resourceOwnerId_; + std::string regionId_; + std::string hostId_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_OFFLINEKAFKABROKERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/OfflineKafkaBrokerResult.h b/emr/include/alibabacloud/emr/model/OfflineKafkaBrokerResult.h new file mode 100644 index 000000000..678fbe240 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/OfflineKafkaBrokerResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_OFFLINEKAFKABROKERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_OFFLINEKAFKABROKERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT OfflineKafkaBrokerResult : public ServiceResult + { + public: + + + OfflineKafkaBrokerResult(); + explicit OfflineKafkaBrokerResult(const std::string &payload); + ~OfflineKafkaBrokerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_OFFLINEKAFKABROKERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PageListResourceUsersRequest.h b/emr/include/alibabacloud/emr/model/PageListResourceUsersRequest.h new file mode 100644 index 000000000..169f945af --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PageListResourceUsersRequest.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_EMR_MODEL_PAGELISTRESOURCEUSERSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_PAGELISTRESOURCEUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PageListResourceUsersRequest : public RpcServiceRequest + { + + public: + PageListResourceUsersRequest(); + ~PageListResourceUsersRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getSearchKey()const; + void setSearchKey(const std::string& searchKey); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + int getPageSize()const; + void setPageSize(int pageSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string searchKey_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + int pageSize_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PAGELISTRESOURCEUSERSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PageListResourceUsersResult.h b/emr/include/alibabacloud/emr/model/PageListResourceUsersResult.h new file mode 100644 index 000000000..815b1a59c --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PageListResourceUsersResult.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_EMR_MODEL_PAGELISTRESOURCEUSERSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_PAGELISTRESOURCEUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PageListResourceUsersResult : public ServiceResult + { + public: + struct Item + { + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + std::string status; + std::string linuxSyncStatus; + long gmtCreate; + std::string userName; + std::string sourceType; + std::string kerberosStutus; + std::vector roleDTOList; + std::string aliyunUserId; + std::string knoxSyncStatus; + }; + + + PageListResourceUsersResult(); + explicit PageListResourceUsersResult(const std::string &payload); + ~PageListResourceUsersResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + bool getPaging()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + bool paging_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PAGELISTRESOURCEUSERSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PageListUserGroupsRequest.h b/emr/include/alibabacloud/emr/model/PageListUserGroupsRequest.h new file mode 100644 index 000000000..b15ca46fa --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PageListUserGroupsRequest.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_EMR_MODEL_PAGELISTUSERGROUPSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_PAGELISTUSERGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PageListUserGroupsRequest : public RpcServiceRequest + { + + public: + PageListUserGroupsRequest(); + ~PageListUserGroupsRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFuzzyName()const; + void setFuzzyName(const std::string& fuzzyName); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + int getPageSize()const; + void setPageSize(int pageSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string fuzzyName_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + int pageSize_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PAGELISTUSERGROUPSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PageListUserGroupsResult.h b/emr/include/alibabacloud/emr/model/PageListUserGroupsResult.h new file mode 100644 index 000000000..6d44be9b7 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PageListUserGroupsResult.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_EMR_MODEL_PAGELISTUSERGROUPSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_PAGELISTUSERGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PageListUserGroupsResult : public ServiceResult + { + public: + struct Item + { + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + std::string type; + std::string gmtCreate; + long id; + std::vector roleDTOList; + std::string name; + }; + + + PageListUserGroupsResult(); + explicit PageListUserGroupsResult(const std::string &payload); + ~PageListUserGroupsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + bool getPaging()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + bool paging_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PAGELISTUSERGROUPSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PageListUsersRequest.h b/emr/include/alibabacloud/emr/model/PageListUsersRequest.h new file mode 100644 index 000000000..f71159c30 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PageListUsersRequest.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_EMR_MODEL_PAGELISTUSERSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_PAGELISTUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PageListUsersRequest : public RpcServiceRequest + { + + public: + PageListUsersRequest(); + ~PageListUsersRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFuzzyName()const; + void setFuzzyName(const std::string& fuzzyName); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + int getPageSize()const; + void setPageSize(int pageSize); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string fuzzyName_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + int pageSize_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PAGELISTUSERSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PageListUsersResult.h b/emr/include/alibabacloud/emr/model/PageListUsersResult.h new file mode 100644 index 000000000..15eb6f6e8 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PageListUsersResult.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_EMR_MODEL_PAGELISTUSERSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_PAGELISTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PageListUsersResult : public ServiceResult + { + public: + struct Item + { + struct RoleDTO + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + struct GroupDTO + { + struct RoleDTO2 + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string resourceType; + long id; + std::string name; + }; + std::string type; + std::string gmtCreate; + long id; + std::vector roleDTOList1; + std::string name; + }; + struct AccountDTO + { + std::string authType; + std::string accountType; + std::string aliyunUserId; + }; + std::string status; + std::string isSuperAdmin; + std::string gmtCreate; + std::string userName; + std::string description; + std::vector groupDTOList; + std::vector accountDTOList; + std::string gmtModified; + std::vector roleDTOList; + std::string userType; + std::string aliyunUserId; + }; + + + PageListUsersResult(); + explicit PageListUsersResult(const std::string &payload); + ~PageListUsersResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + bool getPaging()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + bool paging_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PAGELISTUSERSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PlanComponentTopoRequest.h b/emr/include/alibabacloud/emr/model/PlanComponentTopoRequest.h new file mode 100644 index 000000000..ae90f5aee --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PlanComponentTopoRequest.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_EMR_MODEL_PLANCOMPONENTTOPOREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_PLANCOMPONENTTOPOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PlanComponentTopoRequest : public RpcServiceRequest + { + struct HostGroup + { + std::string groupType; + int nodeCount; + std::string groupName; + }; + struct HostInfo + { + std::string hpHostBizId; + std::string hostGroupName; + }; + struct ServiceInfo + { + std::string serviceEcmVersion; + std::string serviceVersion; + std::string serviceName; + }; + + public: + PlanComponentTopoRequest(); + ~PlanComponentTopoRequest(); + + std::string getClusterType()const; + void setClusterType(const std::string& clusterType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getHostGroup()const; + void setHostGroup(const std::vector& hostGroup); + std::vector getHostInfo()const; + void setHostInfo(const std::vector& hostInfo); + std::string getStackName()const; + void setStackName(const std::string& stackName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getStackVersion()const; + void setStackVersion(const std::string& stackVersion); + std::vector getServiceInfo()const; + void setServiceInfo(const std::vector& serviceInfo); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string clusterType_; + long resourceOwnerId_; + std::string regionId_; + std::vector hostGroup_; + std::vector hostInfo_; + std::string stackName_; + std::string clusterId_; + std::string stackVersion_; + std::vector serviceInfo_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PLANCOMPONENTTOPOREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PlanComponentTopoResult.h b/emr/include/alibabacloud/emr/model/PlanComponentTopoResult.h new file mode 100644 index 000000000..8ba547c2a --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PlanComponentTopoResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_PLANCOMPONENTTOPORESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_PLANCOMPONENTTOPORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PlanComponentTopoResult : public ServiceResult + { + public: + struct HostComponent + { + bool readOnly; + std::string serviceName; + std::string serviceEcmVersion; + std::string serviceVersion; + std::string componentName; + std::vector hostNameList; + bool display; + }; + + + PlanComponentTopoResult(); + explicit PlanComponentTopoResult(const std::string &payload); + ~PlanComponentTopoResult(); + std::vector getHostComponentList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector hostComponentList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PLANCOMPONENTTOPORESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PlanHostNameRequest.h b/emr/include/alibabacloud/emr/model/PlanHostNameRequest.h new file mode 100644 index 000000000..3f49f9d7a --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PlanHostNameRequest.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_EMR_MODEL_PLANHOSTNAMEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_PLANHOSTNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PlanHostNameRequest : public RpcServiceRequest + { + struct HostGroup + { + std::string groupType; + std::string groupName; + }; + struct HostInfo + { + std::string hpHostBizId; + std::string hostGroupName; + }; + + public: + PlanHostNameRequest(); + ~PlanHostNameRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getHostGroup()const; + void setHostGroup(const std::vector& hostGroup); + std::vector getHostInfo()const; + void setHostInfo(const std::vector& hostInfo); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::vector hostGroup_; + std::vector hostInfo_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PLANHOSTNAMEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/PlanHostNameResult.h b/emr/include/alibabacloud/emr/model/PlanHostNameResult.h new file mode 100644 index 000000000..a6335f2ca --- /dev/null +++ b/emr/include/alibabacloud/emr/model/PlanHostNameResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_PLANHOSTNAMERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_PLANHOSTNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT PlanHostNameResult : public ServiceResult + { + public: + struct HostInfo + { + std::string hpHostBizId; + std::string hostName; + }; + + + PlanHostNameResult(); + explicit PlanHostNameResult(const std::string &payload); + ~PlanHostNameResult(); + std::vector getHostInfoList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector hostInfoList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_PLANHOSTNAMERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/QueryInfoByTokenRequest.h b/emr/include/alibabacloud/emr/model/QueryInfoByTokenRequest.h new file mode 100644 index 000000000..58da01004 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/QueryInfoByTokenRequest.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_EMR_MODEL_QUERYINFOBYTOKENREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_QUERYINFOBYTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT QueryInfoByTokenRequest : public RpcServiceRequest + { + + public: + QueryInfoByTokenRequest(); + ~QueryInfoByTokenRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_QUERYINFOBYTOKENREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/QueryInfoByTokenResult.h b/emr/include/alibabacloud/emr/model/QueryInfoByTokenResult.h new file mode 100644 index 000000000..02babaaed --- /dev/null +++ b/emr/include/alibabacloud/emr/model/QueryInfoByTokenResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_QUERYINFOBYTOKENRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_QUERYINFOBYTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT QueryInfoByTokenResult : public ServiceResult + { + public: + + + QueryInfoByTokenResult(); + explicit QueryInfoByTokenResult(const std::string &payload); + ~QueryInfoByTokenResult(); + std::string getTokenUid()const; + std::string getTokenBid()const; + + protected: + void parse(const std::string &payload); + private: + std::string tokenUid_; + std::string tokenBid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_QUERYINFOBYTOKENRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/QueryUserActionsPolicyRequest.h b/emr/include/alibabacloud/emr/model/QueryUserActionsPolicyRequest.h new file mode 100644 index 000000000..3350ca811 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/QueryUserActionsPolicyRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_QUERYUSERACTIONSPOLICYREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_QUERYUSERACTIONSPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT QueryUserActionsPolicyRequest : public RpcServiceRequest + { + + public: + QueryUserActionsPolicyRequest(); + ~QueryUserActionsPolicyRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::vector getActionNameList()const; + void setActionNameList(const std::vector& actionNameList); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::vector actionNameList_; + std::string aliyunUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_QUERYUSERACTIONSPOLICYREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/QueryUserActionsPolicyResult.h b/emr/include/alibabacloud/emr/model/QueryUserActionsPolicyResult.h new file mode 100644 index 000000000..bcda75244 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/QueryUserActionsPolicyResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_QUERYUSERACTIONSPOLICYRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_QUERYUSERACTIONSPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT QueryUserActionsPolicyResult : public ServiceResult + { + public: + struct PolicyDTO + { + std::string gmtCreate; + std::string action; + std::string effect; + std::string conditions; + std::string name; + }; + + + QueryUserActionsPolicyResult(); + explicit QueryUserActionsPolicyResult(const std::string &payload); + ~QueryUserActionsPolicyResult(); + bool getPaging()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_QUERYUSERACTIONSPOLICYRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/QueryUserPoliciesRequest.h b/emr/include/alibabacloud/emr/model/QueryUserPoliciesRequest.h new file mode 100644 index 000000000..e3ac31f55 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/QueryUserPoliciesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT QueryUserPoliciesRequest : public RpcServiceRequest + { + + public: + QueryUserPoliciesRequest(); + ~QueryUserPoliciesRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/QueryUserPoliciesResult.h b/emr/include/alibabacloud/emr/model/QueryUserPoliciesResult.h new file mode 100644 index 000000000..3b0104119 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/QueryUserPoliciesResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT QueryUserPoliciesResult : public ServiceResult + { + public: + struct PolicyDTO + { + std::string gmtCreate; + std::string action; + std::string effect; + std::string conditions; + std::string name; + }; + + + QueryUserPoliciesResult(); + explicit QueryUserPoliciesResult(const std::string &payload); + ~QueryUserPoliciesResult(); + bool getPaging()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ReassignKafkaRequest.h b/emr/include/alibabacloud/emr/model/ReassignKafkaRequest.h new file mode 100644 index 000000000..3ce289d22 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ReassignKafkaRequest.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_EMR_MODEL_REASSIGNKAFKAREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_REASSIGNKAFKAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ReassignKafkaRequest : public RpcServiceRequest + { + + public: + ReassignKafkaRequest(); + ~ReassignKafkaRequest(); + + long getThrottle()const; + void setThrottle(long throttle); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTopicId()const; + void setTopicId(const std::string& topicId); + std::vector getBrokerId()const; + void setBrokerId(const std::vector& brokerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long throttle_; + long resourceOwnerId_; + std::string topicId_; + std::vector brokerId_; + std::string regionId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REASSIGNKAFKAREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ReassignKafkaResult.h b/emr/include/alibabacloud/emr/model/ReassignKafkaResult.h new file mode 100644 index 000000000..ed8fb9205 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ReassignKafkaResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REASSIGNKAFKARESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_REASSIGNKAFKARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ReassignKafkaResult : public ServiceResult + { + public: + + + ReassignKafkaResult(); + explicit ReassignKafkaResult(const std::string &payload); + ~ReassignKafkaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REASSIGNKAFKARESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RefreshBackupListRequest.h b/emr/include/alibabacloud/emr/model/RefreshBackupListRequest.h new file mode 100644 index 000000000..55027db4e --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RefreshBackupListRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REFRESHBACKUPLISTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_REFRESHBACKUPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RefreshBackupListRequest : public RpcServiceRequest + { + + public: + RefreshBackupListRequest(); + ~RefreshBackupListRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string backupPlanId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REFRESHBACKUPLISTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RefreshBackupListResult.h b/emr/include/alibabacloud/emr/model/RefreshBackupListResult.h new file mode 100644 index 000000000..f21fbd163 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RefreshBackupListResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REFRESHBACKUPLISTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_REFRESHBACKUPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RefreshBackupListResult : public ServiceResult + { + public: + + + RefreshBackupListResult(); + explicit RefreshBackupListResult(const std::string &payload); + ~RefreshBackupListResult(); + std::string getTriggerType()const; + long getEndTime()const; + long getStartTime()const; + long getGmtModified()const; + std::string getTaskStatus()const; + std::string getTaskDetail()const; + std::string getTriggerUser()const; + long getGmtCreate()const; + int getTaskProcess()const; + std::string getClusterBizId()const; + std::string getTaskType()const; + std::string getBizId()const; + long getDataSourceId()const; + std::string getHostName()const; + long getEcmTaskId()const; + std::string getTaskResultDetail()const; + + protected: + void parse(const std::string &payload); + private: + std::string triggerType_; + long endTime_; + long startTime_; + long gmtModified_; + std::string taskStatus_; + std::string taskDetail_; + std::string triggerUser_; + long gmtCreate_; + int taskProcess_; + std::string clusterBizId_; + std::string taskType_; + std::string bizId_; + long dataSourceId_; + std::string hostName_; + long ecmTaskId_; + std::string taskResultDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REFRESHBACKUPLISTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminRequest.h b/emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminRequest.h new file mode 100644 index 000000000..b2932e814 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminRequest.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_EMR_MODEL_REFRESHCLUSTERRESOURCEPOOLFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_REFRESHCLUSTERRESOURCEPOOLFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RefreshClusterResourcePoolForAdminRequest : public RpcServiceRequest + { + + public: + RefreshClusterResourcePoolForAdminRequest(); + ~RefreshClusterResourcePoolForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getResourcePoolId()const; + void setResourcePoolId(long resourcePoolId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + long resourcePoolId_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REFRESHCLUSTERRESOURCEPOOLFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminResult.h b/emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminResult.h new file mode 100644 index 000000000..e2452b6a0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RefreshClusterResourcePoolForAdminResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REFRESHCLUSTERRESOURCEPOOLFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_REFRESHCLUSTERRESOURCEPOOLFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RefreshClusterResourcePoolForAdminResult : public ServiceResult + { + public: + + + RefreshClusterResourcePoolForAdminResult(); + explicit RefreshClusterResourcePoolForAdminResult(const std::string &payload); + ~RefreshClusterResourcePoolForAdminResult(); + std::string getWorkFlowInstanceId()const; + std::string getOperationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string workFlowInstanceId_; + std::string operationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REFRESHCLUSTERRESOURCEPOOLFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ReleaseETLJobRequest.h b/emr/include/alibabacloud/emr/model/ReleaseETLJobRequest.h index 0d2944c13..0c5241cd4 100644 --- a/emr/include/alibabacloud/emr/model/ReleaseETLJobRequest.h +++ b/emr/include/alibabacloud/emr/model/ReleaseETLJobRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getReleaseId()const; + void setReleaseId(const std::string& releaseId); std::string getId()const; void setId(const std::string& id); std::string getAccessKeyId()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string regionId_; + std::string releaseId_; std::string id_; std::string accessKeyId_; diff --git a/emr/include/alibabacloud/emr/model/RemoveBackupPlanRequest.h b/emr/include/alibabacloud/emr/model/RemoveBackupPlanRequest.h new file mode 100644 index 000000000..1a29956b3 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveBackupPlanRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveBackupPlanRequest : public RpcServiceRequest + { + + public: + RemoveBackupPlanRequest(); + ~RemoveBackupPlanRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string backupPlanId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPPLANREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RemoveBackupPlanResult.h b/emr/include/alibabacloud/emr/model/RemoveBackupPlanResult.h new file mode 100644 index 000000000..d0fee746d --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveBackupPlanResult.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_EMR_MODEL_REMOVEBACKUPPLANRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveBackupPlanResult : public ServiceResult + { + public: + + + RemoveBackupPlanResult(); + explicit RemoveBackupPlanResult(const std::string &payload); + ~RemoveBackupPlanResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPPLANRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RemoveBackupRequest.h b/emr/include/alibabacloud/emr/model/RemoveBackupRequest.h new file mode 100644 index 000000000..aa8c622c0 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveBackupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveBackupRequest : public RpcServiceRequest + { + + public: + RemoveBackupRequest(); + ~RemoveBackupRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::vector getBackupId()const; + void setBackupId(const std::vector& backupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + std::vector backupId_; + bool proxy_original_security_transport_; + std::string backupPlanId_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RemoveBackupResult.h b/emr/include/alibabacloud/emr/model/RemoveBackupResult.h new file mode 100644 index 000000000..caf9fd29a --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveBackupResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveBackupResult : public ServiceResult + { + public: + + + RemoveBackupResult(); + explicit RemoveBackupResult(const std::string &payload); + ~RemoveBackupResult(); + std::string getTriggerType()const; + long getEndTime()const; + long getStartTime()const; + long getGmtModified()const; + std::string getTaskStatus()const; + std::string getTaskDetail()const; + std::string getTriggerUser()const; + long getGmtCreate()const; + int getTaskProcess()const; + std::string getClusterBizId()const; + std::string getTaskType()const; + std::string getBizId()const; + long getDataSourceId()const; + std::string getHostName()const; + long getEcmTaskId()const; + std::string getTaskResultDetail()const; + + protected: + void parse(const std::string &payload); + private: + std::string triggerType_; + long endTime_; + long startTime_; + long gmtModified_; + std::string taskStatus_; + std::string taskDetail_; + std::string triggerUser_; + long gmtCreate_; + int taskProcess_; + std::string clusterBizId_; + std::string taskType_; + std::string bizId_; + long dataSourceId_; + std::string hostName_; + long ecmTaskId_; + std::string taskResultDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RemoveBackupRuleRequest.h b/emr/include/alibabacloud/emr/model/RemoveBackupRuleRequest.h new file mode 100644 index 000000000..0f9dbe2ea --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveBackupRuleRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULEREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveBackupRuleRequest : public RpcServiceRequest + { + + public: + RemoveBackupRuleRequest(); + ~RemoveBackupRuleRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getBackupRuleId()const; + void setBackupRuleId(const std::string& backupRuleId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string backupRuleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULEREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RemoveBackupRuleResult.h b/emr/include/alibabacloud/emr/model/RemoveBackupRuleResult.h new file mode 100644 index 000000000..af4255974 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveBackupRuleResult.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_EMR_MODEL_REMOVEBACKUPRULERESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveBackupRuleResult : public ServiceResult + { + public: + + + RemoveBackupRuleResult(); + explicit RemoveBackupRuleResult(const std::string &payload); + ~RemoveBackupRuleResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEBACKUPRULERESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RemoveHpHostRequest.h b/emr/include/alibabacloud/emr/model/RemoveHpHostRequest.h new file mode 100644 index 000000000..2d456b957 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveHpHostRequest.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_EMR_MODEL_REMOVEHPHOSTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEHPHOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveHpHostRequest : public RpcServiceRequest + { + + public: + RemoveHpHostRequest(); + ~RemoveHpHostRequest(); + + std::string getHpHostBizId()const; + void setHpHostBizId(const std::string& hpHostBizId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string hpHostBizId_; + long resourceOwnerId_; + std::string regionId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEHPHOSTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RemoveHpHostResult.h b/emr/include/alibabacloud/emr/model/RemoveHpHostResult.h new file mode 100644 index 000000000..f05f2b34c --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RemoveHpHostResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_REMOVEHPHOSTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_REMOVEHPHOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RemoveHpHostResult : public ServiceResult + { + public: + + + RemoveHpHostResult(); + explicit RemoveHpHostResult(const std::string &payload); + ~RemoveHpHostResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_REMOVEHPHOSTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminRequest.h b/emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminRequest.h new file mode 100644 index 000000000..65ce6d599 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminRequest.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_EMR_MODEL_RENDERRESOURCEPOOLXMLFORADMINREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_RENDERRESOURCEPOOLXMLFORADMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RenderResourcePoolXmlForAdminRequest : public RpcServiceRequest + { + + public: + RenderResourcePoolXmlForAdminRequest(); + ~RenderResourcePoolXmlForAdminRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourcePoolId()const; + void setResourcePoolId(const std::string& resourcePoolId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourcePoolId_; + std::string clusterId_; + std::string userId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RENDERRESOURCEPOOLXMLFORADMINREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminResult.h b/emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminResult.h new file mode 100644 index 000000000..a6f208316 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RenderResourcePoolXmlForAdminResult.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_EMR_MODEL_RENDERRESOURCEPOOLXMLFORADMINRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_RENDERRESOURCEPOOLXMLFORADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RenderResourcePoolXmlForAdminResult : public ServiceResult + { + public: + + + RenderResourcePoolXmlForAdminResult(); + explicit RenderResourcePoolXmlForAdminResult(const std::string &payload); + ~RenderResourcePoolXmlForAdminResult(); + std::string getXmlContent()const; + + protected: + void parse(const std::string &payload); + private: + std::string xmlContent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RENDERRESOURCEPOOLXMLFORADMINRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolRequest.h b/emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolRequest.h new file mode 100644 index 000000000..034bdac6f --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolRequest.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_EMR_MODEL_RESIZECLUSTERWITHHOSTPOOLREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_RESIZECLUSTERWITHHOSTPOOLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ResizeClusterWithHostPoolRequest : public RpcServiceRequest + { + struct HostGroup + { + std::string groupType; + std::string groupId; + std::string groupName; + }; + struct HostInfo + { + std::string hpHostBizId; + std::string hostName; + std::string role; + std::string groupId; + std::string privateIp; + RepeatList serviceComponentInfo; + std::string hostGroupName; + std::string hostGroupType; + }; + + public: + ResizeClusterWithHostPoolRequest(); + ~ResizeClusterWithHostPoolRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getHostGroup()const; + void setHostGroup(const std::vector& hostGroup); + std::vector getHostInfo()const; + void setHostInfo(const std::vector& hostInfo); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::vector hostGroup_; + std::vector hostInfo_; + std::string clusterId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RESIZECLUSTERWITHHOSTPOOLREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolResult.h b/emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolResult.h new file mode 100644 index 000000000..e23bfc496 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/ResizeClusterWithHostPoolResult.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_EMR_MODEL_RESIZECLUSTERWITHHOSTPOOLRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_RESIZECLUSTERWITHHOSTPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT ResizeClusterWithHostPoolResult : public ServiceResult + { + public: + + + ResizeClusterWithHostPoolResult(); + explicit ResizeClusterWithHostPoolResult(const std::string &payload); + ~ResizeClusterWithHostPoolResult(); + std::string getWorkFlowInstanceId()const; + std::string getClusterId()const; + std::string getOperationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string workFlowInstanceId_; + std::string clusterId_; + std::string operationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RESIZECLUSTERWITHHOSTPOOLRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RestoreBackupRequest.h b/emr/include/alibabacloud/emr/model/RestoreBackupRequest.h new file mode 100644 index 000000000..317fec889 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RestoreBackupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_RESTOREBACKUPREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_RESTOREBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RestoreBackupRequest : public RpcServiceRequest + { + + public: + RestoreBackupRequest(); + ~RestoreBackupRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getBackupPlanId()const; + void setBackupPlanId(const std::string& backupPlanId); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string backupPlanId_; + std::string backupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RESTOREBACKUPREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RestoreBackupResult.h b/emr/include/alibabacloud/emr/model/RestoreBackupResult.h new file mode 100644 index 000000000..c556f9b6a --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RestoreBackupResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_RESTOREBACKUPRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_RESTOREBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RestoreBackupResult : public ServiceResult + { + public: + + + RestoreBackupResult(); + explicit RestoreBackupResult(const std::string &payload); + ~RestoreBackupResult(); + std::string getTriggerType()const; + long getEndTime()const; + long getStartTime()const; + long getGmtModified()const; + std::string getTaskStatus()const; + std::string getTaskDetail()const; + std::string getTriggerUser()const; + long getGmtCreate()const; + int getTaskProcess()const; + std::string getClusterBizId()const; + std::string getTaskType()const; + std::string getBizId()const; + long getDataSourceId()const; + std::string getHostName()const; + long getEcmTaskId()const; + std::string getTaskResultDetail()const; + + protected: + void parse(const std::string &payload); + private: + std::string triggerType_; + long endTime_; + long startTime_; + long gmtModified_; + std::string taskStatus_; + std::string taskDetail_; + std::string triggerUser_; + long gmtCreate_; + int taskProcess_; + std::string clusterBizId_; + std::string taskType_; + std::string bizId_; + long dataSourceId_; + std::string hostName_; + long ecmTaskId_; + std::string taskResultDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RESTOREBACKUPRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RetrySyncUserAccountRequest.h b/emr/include/alibabacloud/emr/model/RetrySyncUserAccountRequest.h new file mode 100644 index 000000000..dea316ca4 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RetrySyncUserAccountRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_RETRYSYNCUSERACCOUNTREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_RETRYSYNCUSERACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RetrySyncUserAccountRequest : public RpcServiceRequest + { + + public: + RetrySyncUserAccountRequest(); + ~RetrySyncUserAccountRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::vector getAliyunUserIdList()const; + void setAliyunUserIdList(const std::vector& aliyunUserIdList); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getAccountType()const; + void setAccountType(const std::string& accountType); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + std::vector aliyunUserIdList_; + long callerParentId_; + std::string accountType_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RETRYSYNCUSERACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/RetrySyncUserAccountResult.h b/emr/include/alibabacloud/emr/model/RetrySyncUserAccountResult.h new file mode 100644 index 000000000..e7ae304cc --- /dev/null +++ b/emr/include/alibabacloud/emr/model/RetrySyncUserAccountResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_RETRYSYNCUSERACCOUNTRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_RETRYSYNCUSERACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT RetrySyncUserAccountResult : public ServiceResult + { + public: + + + RetrySyncUserAccountResult(); + explicit RetrySyncUserAccountResult(const std::string &payload); + ~RetrySyncUserAccountResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_RETRYSYNCUSERACCOUNTRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoRequest.h b/emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoRequest.h new file mode 100644 index 000000000..0e51b66b5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_SAVEBATCHUSERACCOUNTINFOREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_SAVEBATCHUSERACCOUNTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT SaveBatchUserAccountInfoRequest : public RpcServiceRequest + { + + public: + SaveBatchUserAccountInfoRequest(); + ~SaveBatchUserAccountInfoRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::vector getAliyunUserIdList()const; + void setAliyunUserIdList(const std::vector& aliyunUserIdList); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getAccountType()const; + void setAccountType(const std::string& accountType); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getAuthType()const; + void setAuthType(const std::string& authType); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceId_; + std::vector aliyunUserIdList_; + long callerParentId_; + std::string accountType_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string groupName_; + std::string resourceType_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + std::string authType_; + bool security_transport_; + std::string accountPassword_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_SAVEBATCHUSERACCOUNTINFOREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoResult.h b/emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoResult.h new file mode 100644 index 000000000..3d153ab4f --- /dev/null +++ b/emr/include/alibabacloud/emr/model/SaveBatchUserAccountInfoResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_SAVEBATCHUSERACCOUNTINFORESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_SAVEBATCHUSERACCOUNTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT SaveBatchUserAccountInfoResult : public ServiceResult + { + public: + + + SaveBatchUserAccountInfoResult(); + explicit SaveBatchUserAccountInfoResult(const std::string &payload); + ~SaveBatchUserAccountInfoResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_SAVEBATCHUSERACCOUNTINFORESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/SaveUserAccountInfoRequest.h b/emr/include/alibabacloud/emr/model/SaveUserAccountInfoRequest.h new file mode 100644 index 000000000..f3a1cfa04 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/SaveUserAccountInfoRequest.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_EMR_MODEL_SAVEUSERACCOUNTINFOREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_SAVEUSERACCOUNTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT SaveUserAccountInfoRequest : public RpcServiceRequest + { + + public: + SaveUserAccountInfoRequest(); + ~SaveUserAccountInfoRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getAccountType()const; + void setAccountType(const std::string& accountType); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getAuthType()const; + void setAuthType(const std::string& authType); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + std::string accountType_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string groupName_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + std::string authType_; + bool security_transport_; + std::string accountPassword_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string aliyunUserId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_SAVEUSERACCOUNTINFOREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/SaveUserAccountInfoResult.h b/emr/include/alibabacloud/emr/model/SaveUserAccountInfoResult.h new file mode 100644 index 000000000..e6106f724 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/SaveUserAccountInfoResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_SAVEUSERACCOUNTINFORESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_SAVEUSERACCOUNTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT SaveUserAccountInfoResult : public ServiceResult + { + public: + + + SaveUserAccountInfoResult(); + explicit SaveUserAccountInfoResult(const std::string &payload); + ~SaveUserAccountInfoResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_SAVEUSERACCOUNTINFORESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerRequest.h b/emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerRequest.h new file mode 100644 index 000000000..9bc475b96 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerRequest.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_EMR_MODEL_STARTKAFKABROKERDISKBALANCERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_STARTKAFKABROKERDISKBALANCERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT StartKafkaBrokerDiskBalancerRequest : public RpcServiceRequest + { + + public: + StartKafkaBrokerDiskBalancerRequest(); + ~StartKafkaBrokerDiskBalancerRequest(); + + long getThrottle()const; + void setThrottle(long throttle); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getBrokerId()const; + void setBrokerId(int brokerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getBalanceThreshold()const; + void setBalanceThreshold(const std::string& balanceThreshold); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long throttle_; + long resourceOwnerId_; + int brokerId_; + std::string regionId_; + std::string clusterId_; + std::string balanceThreshold_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_STARTKAFKABROKERDISKBALANCERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerResult.h b/emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerResult.h new file mode 100644 index 000000000..9f048d048 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/StartKafkaBrokerDiskBalancerResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_STARTKAFKABROKERDISKBALANCERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_STARTKAFKABROKERDISKBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT StartKafkaBrokerDiskBalancerResult : public ServiceResult + { + public: + + + StartKafkaBrokerDiskBalancerResult(); + explicit StartKafkaBrokerDiskBalancerResult(const std::string &payload); + ~StartKafkaBrokerDiskBalancerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_STARTKAFKABROKERDISKBALANCERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionRequest.h b/emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionRequest.h new file mode 100644 index 000000000..3e354397e --- /dev/null +++ b/emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionRequest.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_EMR_MODEL_STARTKAFKAPREFERREDREPLICAELECTIONREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_STARTKAFKAPREFERREDREPLICAELECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT StartKafkaPreferredReplicaElectionRequest : public RpcServiceRequest + { + + public: + StartKafkaPreferredReplicaElectionRequest(); + ~StartKafkaPreferredReplicaElectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTopicId()const; + void setTopicId(const std::string& topicId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string topicId_; + std::string regionId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_STARTKAFKAPREFERREDREPLICAELECTIONREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionResult.h b/emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionResult.h new file mode 100644 index 000000000..222477d8a --- /dev/null +++ b/emr/include/alibabacloud/emr/model/StartKafkaPreferredReplicaElectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_STARTKAFKAPREFERREDREPLICAELECTIONRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_STARTKAFKAPREFERREDREPLICAELECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT StartKafkaPreferredReplicaElectionResult : public ServiceResult + { + public: + + + StartKafkaPreferredReplicaElectionResult(); + explicit StartKafkaPreferredReplicaElectionResult(const std::string &payload); + ~StartKafkaPreferredReplicaElectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_STARTKAFKAPREFERREDREPLICAELECTIONRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/SubmitFlowResult.h b/emr/include/alibabacloud/emr/model/SubmitFlowResult.h index 9486bbf67..687760019 100644 --- a/emr/include/alibabacloud/emr/model/SubmitFlowResult.h +++ b/emr/include/alibabacloud/emr/model/SubmitFlowResult.h @@ -37,11 +37,15 @@ namespace AlibabaCloud SubmitFlowResult(); explicit SubmitFlowResult(const std::string &payload); ~SubmitFlowResult(); + std::string getInstanceId()const; + std::string getData()const; std::string getId()const; protected: void parse(const std::string &payload); private: + std::string instanceId_; + std::string data_; std::string id_; }; diff --git a/emr/include/alibabacloud/emr/model/UpdateETLJobRequest.h b/emr/include/alibabacloud/emr/model/UpdateETLJobRequest.h index 81f75712e..43689278f 100644 --- a/emr/include/alibabacloud/emr/model/UpdateETLJobRequest.h +++ b/emr/include/alibabacloud/emr/model/UpdateETLJobRequest.h @@ -30,12 +30,6 @@ namespace AlibabaCloud { class ALIBABACLOUD_EMR_EXPORT UpdateETLJobRequest : public RpcServiceRequest { - struct StageConnection - { - std::string port; - std::string from; - std::string to; - }; struct TriggerRule { std::string cronExpr; @@ -43,6 +37,12 @@ namespace AlibabaCloud long startTime; bool enabled; }; + struct StageConnection + { + std::string port; + std::string from; + std::string to; + }; struct Stage { std::string stageName; @@ -57,42 +57,42 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::vector getStageConnection()const; - void setStageConnection(const std::vector& stageConnection); std::string getClusterConfig()const; void setClusterConfig(const std::string& clusterConfig); std::vector getTriggerRule()const; void setTriggerRule(const std::vector& triggerRule); - std::vector getStage()const; - void setStage(const std::vector& stage); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); std::string getAlertConfig()const; void setAlertConfig(const std::string& alertConfig); - std::string getName()const; - void setName(const std::string& name); std::string getDescription()const; void setDescription(const std::string& description); - std::string getId()const; - void setId(const std::string& id); bool getCheck()const; void setCheck(bool check); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::vector getStageConnection()const; + void setStageConnection(const std::vector& stageConnection); + std::vector getStage()const; + void setStage(const std::vector& stage); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getId()const; + void setId(const std::string& id); private: long resourceOwnerId_; - std::vector stageConnection_; std::string clusterConfig_; std::vector triggerRule_; - std::vector stage_; - std::string regionId_; std::string alertConfig_; - std::string name_; std::string description_; - std::string id_; bool check_; std::string accessKeyId_; + std::vector stageConnection_; + std::vector stage_; + std::string regionId_; + std::string name_; + std::string id_; }; } diff --git a/emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamRequest.h b/emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamRequest.h new file mode 100644 index 000000000..fc02ff7f9 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamRequest.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_EMR_MODEL_UPDATEKAFKAREASSIGNPARAMREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEKAFKAREASSIGNPARAMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateKafkaReassignParamRequest : public RpcServiceRequest + { + + public: + UpdateKafkaReassignParamRequest(); + ~UpdateKafkaReassignParamRequest(); + + long getThrottle()const; + void setThrottle(long throttle); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getReassignId()const; + void setReassignId(const std::string& reassignId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long throttle_; + long resourceOwnerId_; + std::string regionId_; + std::string reassignId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEKAFKAREASSIGNPARAMREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamResult.h b/emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamResult.h new file mode 100644 index 000000000..9e6ef22c9 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateKafkaReassignParamResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEKAFKAREASSIGNPARAMRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEKAFKAREASSIGNPARAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateKafkaReassignParamResult : public ServiceResult + { + public: + + + UpdateKafkaReassignParamResult(); + explicit UpdateKafkaReassignParamResult(const std::string &payload); + ~UpdateKafkaReassignParamResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEKAFKAREASSIGNPARAMRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateUserGroupRequest.h b/emr/include/alibabacloud/emr/model/UpdateUserGroupRequest.h new file mode 100644 index 000000000..71088c3d5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateUserGroupRequest.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_EMR_MODEL_UPDATEUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEUSERGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateUserGroupRequest : public RpcServiceRequest + { + + public: + UpdateUserGroupRequest(); + ~UpdateUserGroupRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getType()const; + void setType(const std::string& type); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + long getId()const; + void setId(long id); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + std::vector roleId_; + bool proxy_original_security_transport_; + std::string description_; + std::string callerBid_; + std::string proxy_original_source_ip_; + std::string type_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::string name_; + long id_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEUSERGROUPREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateUserGroupResult.h b/emr/include/alibabacloud/emr/model/UpdateUserGroupResult.h new file mode 100644 index 000000000..b57298c24 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateUserGroupResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEUSERGROUPRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateUserGroupResult : public ServiceResult + { + public: + + + UpdateUserGroupResult(); + explicit UpdateUserGroupResult(const std::string &payload); + ~UpdateUserGroupResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateUserRequest.h b/emr/include/alibabacloud/emr/model/UpdateUserRequest.h new file mode 100644 index 000000000..1afd385df --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateUserRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateUserRequest : public RpcServiceRequest + { + struct UserAccountParamList + { + std::string accountType; + std::string authType; + std::string accountPassword; + }; + + public: + UpdateUserRequest(); + ~UpdateUserRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getUserType()const; + void setUserType(const std::string& userType); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::vector getUserAccountParamList()const; + void setUserAccountParamList(const std::vector& userAccountParamList); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::vector getGroupIdList()const; + void setGroupIdList(const std::vector& groupIdList); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::vector getRoleIdList()const; + void setRoleIdList(const std::vector& roleIdList); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + std::string getUserName()const; + void setUserName(const std::string& userName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string userType_; + std::string description_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + std::vector userAccountParamList_; + bool security_transport_; + std::vector groupIdList_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::vector roleIdList_; + long callerUid_; + std::string aliyunUserId_; + std::string userName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateUserResult.h b/emr/include/alibabacloud/emr/model/UpdateUserResult.h new file mode 100644 index 000000000..0435f2196 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateUserResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEUSERRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateUserResult : public ServiceResult + { + public: + + + UpdateUserResult(); + explicit UpdateUserResult(const std::string &payload); + ~UpdateUserResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEUSERRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateUserStatusRequest.h b/emr/include/alibabacloud/emr/model/UpdateUserStatusRequest.h new file mode 100644 index 000000000..c1bab12c8 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateUserStatusRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEUSERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateUserStatusRequest : public RpcServiceRequest + { + + public: + UpdateUserStatusRequest(); + ~UpdateUserStatusRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAliyunUserId()const; + void setAliyunUserId(const std::string& aliyunUserId); + std::string getUpdateStatus()const; + void setUpdateStatus(const std::string& updateStatus); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string aliyunUserId_; + std::string updateStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateUserStatusResult.h b/emr/include/alibabacloud/emr/model/UpdateUserStatusResult.h new file mode 100644 index 000000000..5937cccdf --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateUserStatusResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEUSERSTATUSRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEUSERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateUserStatusResult : public ServiceResult + { + public: + + + UpdateUserStatusResult(); + explicit UpdateUserStatusResult(const std::string &payload); + ~UpdateUserStatusResult(); + bool getPaging()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool paging_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEUSERSTATUSRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingRequest.h b/emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingRequest.h new file mode 100644 index 000000000..1737aaf28 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACEREPOSETTINGREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACEREPOSETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateWorkspaceRepoSettingRequest : public RpcServiceRequest + { + struct RepoMaven + { + std::string groupId; + std::string artifactId; + std::string version; + }; + struct RepoPip + { + std::string packageName; + std::string version; + }; + + public: + UpdateWorkspaceRepoSettingRequest(); + ~UpdateWorkspaceRepoSettingRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::vector getRepoMaven()const; + void setRepoMaven(const std::vector& repoMaven); + std::vector getRepoPip()const; + void setRepoPip(const std::vector& repoPip); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getWorkspaceId()const; + void setWorkspaceId(const std::string& workspaceId); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + std::vector repoMaven_; + std::vector repoPip_; + long callerUid_; + std::string workspaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACEREPOSETTINGREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingResult.h b/emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingResult.h new file mode 100644 index 000000000..eddd80fe5 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateWorkspaceRepoSettingResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACEREPOSETTINGRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACEREPOSETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateWorkspaceRepoSettingResult : public ServiceResult + { + public: + + + UpdateWorkspaceRepoSettingResult(); + explicit UpdateWorkspaceRepoSettingResult(const std::string &payload); + ~UpdateWorkspaceRepoSettingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACEREPOSETTINGRESULT_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingRequest.h b/emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingRequest.h new file mode 100644 index 000000000..abffcaff4 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACERESOURCESETTINGREQUEST_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACERESOURCESETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateWorkspaceResourceSettingRequest : public RpcServiceRequest + { + + public: + UpdateWorkspaceResourceSettingRequest(); + ~UpdateWorkspaceResourceSettingRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getWorkspaceId()const; + void setWorkspaceId(const std::string& workspaceId); + std::string getOssSetting()const; + void setOssSetting(const std::string& ossSetting); + + private: + std::string app_ip_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + std::string proxy_original_source_ip_; + bool ak_mfa_present_; + bool proxy_trust_transport_info_; + std::string callerType_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + long callerUid_; + std::string workspaceId_; + std::string ossSetting_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACERESOURCESETTINGREQUEST_H_ \ No newline at end of file diff --git a/emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingResult.h b/emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingResult.h new file mode 100644 index 000000000..055a544b1 --- /dev/null +++ b/emr/include/alibabacloud/emr/model/UpdateWorkspaceResourceSettingResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACERESOURCESETTINGRESULT_H_ +#define ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACERESOURCESETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Emr + { + namespace Model + { + class ALIBABACLOUD_EMR_EXPORT UpdateWorkspaceResourceSettingResult : public ServiceResult + { + public: + + + UpdateWorkspaceResourceSettingResult(); + explicit UpdateWorkspaceResourceSettingResult(const std::string &payload); + ~UpdateWorkspaceResourceSettingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EMR_MODEL_UPDATEWORKSPACERESOURCESETTINGRESULT_H_ \ No newline at end of file diff --git a/emr/src/EmrClient.cc b/emr/src/EmrClient.cc index 0773730cf..ad12a5d92 100644 --- a/emr/src/EmrClient.cc +++ b/emr/src/EmrClient.cc @@ -87,78 +87,6 @@ EmrClient::CreateFlowOutcomeCallable EmrClient::createFlowCallable(const CreateF return task->get_future(); } -EmrClient::DescribeDataSourceCommandOutcome EmrClient::describeDataSourceCommand(const DescribeDataSourceCommandRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataSourceCommandOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataSourceCommandOutcome(DescribeDataSourceCommandResult(outcome.result())); - else - return DescribeDataSourceCommandOutcome(outcome.error()); -} - -void EmrClient::describeDataSourceCommandAsync(const DescribeDataSourceCommandRequest& request, const DescribeDataSourceCommandAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataSourceCommand(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeDataSourceCommandOutcomeCallable EmrClient::describeDataSourceCommandCallable(const DescribeDataSourceCommandRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataSourceCommand(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListUsersOutcome EmrClient::listUsers(const ListUsersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListUsersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListUsersOutcome(ListUsersResult(outcome.result())); - else - return ListUsersOutcome(outcome.error()); -} - -void EmrClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listUsers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListUsersOutcomeCallable EmrClient::listUsersCallable(const ListUsersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listUsers(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::GetJobOutputStatisticInfoOutcome EmrClient::getJobOutputStatisticInfo(const GetJobOutputStatisticInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,144 +123,36 @@ EmrClient::GetJobOutputStatisticInfoOutcomeCallable EmrClient::getJobOutputStati return task->get_future(); } -EmrClient::ListResourcePoolOutcome EmrClient::listResourcePool(const ListResourcePoolRequest &request) const +EmrClient::RemoveBackupPlanOutcome EmrClient::removeBackupPlan(const RemoveBackupPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListResourcePoolOutcome(endpointOutcome.error()); + return RemoveBackupPlanOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListResourcePoolOutcome(ListResourcePoolResult(outcome.result())); + return RemoveBackupPlanOutcome(RemoveBackupPlanResult(outcome.result())); else - return ListResourcePoolOutcome(outcome.error()); + return RemoveBackupPlanOutcome(outcome.error()); } -void EmrClient::listResourcePoolAsync(const ListResourcePoolRequest& request, const ListResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::removeBackupPlanAsync(const RemoveBackupPlanRequest& request, const RemoveBackupPlanAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listResourcePool(request), context); + handler(this, request, removeBackupPlan(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListResourcePoolOutcomeCallable EmrClient::listResourcePoolCallable(const ListResourcePoolRequest &request) const +EmrClient::RemoveBackupPlanOutcomeCallable EmrClient::removeBackupPlanCallable(const RemoveBackupPlanRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listResourcePool(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListFlowClusterHostOutcome EmrClient::listFlowClusterHost(const ListFlowClusterHostRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowClusterHostOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowClusterHostOutcome(ListFlowClusterHostResult(outcome.result())); - else - return ListFlowClusterHostOutcome(outcome.error()); -} - -void EmrClient::listFlowClusterHostAsync(const ListFlowClusterHostRequest& request, const ListFlowClusterHostAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowClusterHost(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowClusterHostOutcomeCallable EmrClient::listFlowClusterHostCallable(const ListFlowClusterHostRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowClusterHost(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::KillFlowOutcome EmrClient::killFlow(const KillFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return KillFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return KillFlowOutcome(KillFlowResult(outcome.result())); - else - return KillFlowOutcome(outcome.error()); -} - -void EmrClient::killFlowAsync(const KillFlowRequest& request, const KillFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, killFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::KillFlowOutcomeCallable EmrClient::killFlowCallable(const KillFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->killFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::RunOpsCommandOutcome EmrClient::runOpsCommand(const RunOpsCommandRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RunOpsCommandOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RunOpsCommandOutcome(RunOpsCommandResult(outcome.result())); - else - return RunOpsCommandOutcome(outcome.error()); -} - -void EmrClient::runOpsCommandAsync(const RunOpsCommandRequest& request, const RunOpsCommandAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, runOpsCommand(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::RunOpsCommandOutcomeCallable EmrClient::runOpsCommandCallable(const RunOpsCommandRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->runOpsCommand(request); + return this->removeBackupPlan(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -375,78 +195,6 @@ EmrClient::DescribeClusterStatisticsOutcomeCallable EmrClient::describeClusterSt return task->get_future(); } -EmrClient::ModifyExecutionPlanJobInfoOutcome EmrClient::modifyExecutionPlanJobInfo(const ModifyExecutionPlanJobInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyExecutionPlanJobInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyExecutionPlanJobInfoOutcome(ModifyExecutionPlanJobInfoResult(outcome.result())); - else - return ModifyExecutionPlanJobInfoOutcome(outcome.error()); -} - -void EmrClient::modifyExecutionPlanJobInfoAsync(const ModifyExecutionPlanJobInfoRequest& request, const ModifyExecutionPlanJobInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyExecutionPlanJobInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyExecutionPlanJobInfoOutcomeCallable EmrClient::modifyExecutionPlanJobInfoCallable(const ModifyExecutionPlanJobInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyExecutionPlanJobInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DeleteClusterTemplateOutcome EmrClient::deleteClusterTemplate(const DeleteClusterTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteClusterTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteClusterTemplateOutcome(DeleteClusterTemplateResult(outcome.result())); - else - return DeleteClusterTemplateOutcome(outcome.error()); -} - -void EmrClient::deleteClusterTemplateAsync(const DeleteClusterTemplateRequest& request, const DeleteClusterTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteClusterTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteClusterTemplateOutcomeCallable EmrClient::deleteClusterTemplateCallable(const DeleteClusterTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteClusterTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::CancelOrderOutcome EmrClient::cancelOrder(const CancelOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,108 +375,72 @@ EmrClient::ListClusterServiceConfigHistoryOutcomeCallable EmrClient::listCluster return task->get_future(); } -EmrClient::ListDataSourceSchemaTableOutcome EmrClient::listDataSourceSchemaTable(const ListDataSourceSchemaTableRequest &request) const +EmrClient::UpdateWorkspaceRepoSettingOutcome EmrClient::updateWorkspaceRepoSetting(const UpdateWorkspaceRepoSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListDataSourceSchemaTableOutcome(endpointOutcome.error()); + return UpdateWorkspaceRepoSettingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListDataSourceSchemaTableOutcome(ListDataSourceSchemaTableResult(outcome.result())); + return UpdateWorkspaceRepoSettingOutcome(UpdateWorkspaceRepoSettingResult(outcome.result())); else - return ListDataSourceSchemaTableOutcome(outcome.error()); + return UpdateWorkspaceRepoSettingOutcome(outcome.error()); } -void EmrClient::listDataSourceSchemaTableAsync(const ListDataSourceSchemaTableRequest& request, const ListDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::updateWorkspaceRepoSettingAsync(const UpdateWorkspaceRepoSettingRequest& request, const UpdateWorkspaceRepoSettingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listDataSourceSchemaTable(request), context); + handler(this, request, updateWorkspaceRepoSetting(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListDataSourceSchemaTableOutcomeCallable EmrClient::listDataSourceSchemaTableCallable(const ListDataSourceSchemaTableRequest &request) const +EmrClient::UpdateWorkspaceRepoSettingOutcomeCallable EmrClient::updateWorkspaceRepoSettingCallable(const UpdateWorkspaceRepoSettingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listDataSourceSchemaTable(request); + return this->updateWorkspaceRepoSetting(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::CreateJobOutcome EmrClient::createJob(const CreateJobRequest &request) const +EmrClient::ListClusterServiceCustomActionSupportConfigForAdminOutcome EmrClient::listClusterServiceCustomActionSupportConfigForAdmin(const ListClusterServiceCustomActionSupportConfigForAdminRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateJobOutcome(endpointOutcome.error()); + return ListClusterServiceCustomActionSupportConfigForAdminOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateJobOutcome(CreateJobResult(outcome.result())); + return ListClusterServiceCustomActionSupportConfigForAdminOutcome(ListClusterServiceCustomActionSupportConfigForAdminResult(outcome.result())); else - return CreateJobOutcome(outcome.error()); + return ListClusterServiceCustomActionSupportConfigForAdminOutcome(outcome.error()); } -void EmrClient::createJobAsync(const CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listClusterServiceCustomActionSupportConfigForAdminAsync(const ListClusterServiceCustomActionSupportConfigForAdminRequest& request, const ListClusterServiceCustomActionSupportConfigForAdminAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createJob(request), context); + handler(this, request, listClusterServiceCustomActionSupportConfigForAdmin(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::CreateJobOutcomeCallable EmrClient::createJobCallable(const CreateJobRequest &request) const +EmrClient::ListClusterServiceCustomActionSupportConfigForAdminOutcomeCallable EmrClient::listClusterServiceCustomActionSupportConfigForAdminCallable(const ListClusterServiceCustomActionSupportConfigForAdminRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::AttachClusterForNoteOutcome EmrClient::attachClusterForNote(const AttachClusterForNoteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AttachClusterForNoteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AttachClusterForNoteOutcome(AttachClusterForNoteResult(outcome.result())); - else - return AttachClusterForNoteOutcome(outcome.error()); -} - -void EmrClient::attachClusterForNoteAsync(const AttachClusterForNoteRequest& request, const AttachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, attachClusterForNote(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::AttachClusterForNoteOutcomeCallable EmrClient::attachClusterForNoteCallable(const AttachClusterForNoteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->attachClusterForNote(request); + return this->listClusterServiceCustomActionSupportConfigForAdmin(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -807,186 +519,6 @@ EmrClient::ListJobExecutionPlanHierarchyOutcomeCallable EmrClient::listJobExecut return task->get_future(); } -EmrClient::ListExecutionPlansOutcome EmrClient::listExecutionPlans(const ListExecutionPlansRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListExecutionPlansOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListExecutionPlansOutcome(ListExecutionPlansResult(outcome.result())); - else - return ListExecutionPlansOutcome(outcome.error()); -} - -void EmrClient::listExecutionPlansAsync(const ListExecutionPlansRequest& request, const ListExecutionPlansAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listExecutionPlans(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListExecutionPlansOutcomeCallable EmrClient::listExecutionPlansCallable(const ListExecutionPlansRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listExecutionPlans(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListJobMigrateInfoOutcome EmrClient::listJobMigrateInfo(const ListJobMigrateInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListJobMigrateInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListJobMigrateInfoOutcome(ListJobMigrateInfoResult(outcome.result())); - else - return ListJobMigrateInfoOutcome(outcome.error()); -} - -void EmrClient::listJobMigrateInfoAsync(const ListJobMigrateInfoRequest& request, const ListJobMigrateInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listJobMigrateInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListJobMigrateInfoOutcomeCallable EmrClient::listJobMigrateInfoCallable(const ListJobMigrateInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listJobMigrateInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::CloneFlowOutcome EmrClient::cloneFlow(const CloneFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CloneFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CloneFlowOutcome(CloneFlowResult(outcome.result())); - else - return CloneFlowOutcome(outcome.error()); -} - -void EmrClient::cloneFlowAsync(const CloneFlowRequest& request, const CloneFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cloneFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CloneFlowOutcomeCallable EmrClient::cloneFlowCallable(const CloneFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cloneFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListEmrMainVersionOutcome EmrClient::listEmrMainVersion(const ListEmrMainVersionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListEmrMainVersionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListEmrMainVersionOutcome(ListEmrMainVersionResult(outcome.result())); - else - return ListEmrMainVersionOutcome(outcome.error()); -} - -void EmrClient::listEmrMainVersionAsync(const ListEmrMainVersionRequest& request, const ListEmrMainVersionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listEmrMainVersion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListEmrMainVersionOutcomeCallable EmrClient::listEmrMainVersionCallable(const ListEmrMainVersionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listEmrMainVersion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::CreateClusterTemplateOutcome EmrClient::createClusterTemplate(const CreateClusterTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateClusterTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateClusterTemplateOutcome(CreateClusterTemplateResult(outcome.result())); - else - return CreateClusterTemplateOutcome(outcome.error()); -} - -void EmrClient::createClusterTemplateAsync(const CreateClusterTemplateRequest& request, const CreateClusterTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createClusterTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateClusterTemplateOutcomeCallable EmrClient::createClusterTemplateCallable(const CreateClusterTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createClusterTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::MetastoreDropDatabaseOutcome EmrClient::metastoreDropDatabase(const MetastoreDropDatabaseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,36 +555,36 @@ EmrClient::MetastoreDropDatabaseOutcomeCallable EmrClient::metastoreDropDatabase return task->get_future(); } -EmrClient::ListAlertContactsOutcome EmrClient::listAlertContacts(const ListAlertContactsRequest &request) const +EmrClient::ListFlowInstanceOutcome EmrClient::listFlowInstance(const ListFlowInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListAlertContactsOutcome(endpointOutcome.error()); + return ListFlowInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListAlertContactsOutcome(ListAlertContactsResult(outcome.result())); + return ListFlowInstanceOutcome(ListFlowInstanceResult(outcome.result())); else - return ListAlertContactsOutcome(outcome.error()); + return ListFlowInstanceOutcome(outcome.error()); } -void EmrClient::listAlertContactsAsync(const ListAlertContactsRequest& request, const ListAlertContactsAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listFlowInstanceAsync(const ListFlowInstanceRequest& request, const ListFlowInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listAlertContacts(request), context); + handler(this, request, listFlowInstance(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListAlertContactsOutcomeCallable EmrClient::listAlertContactsCallable(const ListAlertContactsRequest &request) const +EmrClient::ListFlowInstanceOutcomeCallable EmrClient::listFlowInstanceCallable(const ListFlowInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listAlertContacts(request); + return this->listFlowInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1095,36 +627,72 @@ EmrClient::MetastoreDescribeDatabaseOutcomeCallable EmrClient::metastoreDescribe return task->get_future(); } -EmrClient::ListFlowInstanceOutcome EmrClient::listFlowInstance(const ListFlowInstanceRequest &request) const +EmrClient::PageListUsersOutcome EmrClient::pageListUsers(const PageListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListFlowInstanceOutcome(endpointOutcome.error()); + return PageListUsersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListFlowInstanceOutcome(ListFlowInstanceResult(outcome.result())); + return PageListUsersOutcome(PageListUsersResult(outcome.result())); else - return ListFlowInstanceOutcome(outcome.error()); + return PageListUsersOutcome(outcome.error()); } -void EmrClient::listFlowInstanceAsync(const ListFlowInstanceRequest& request, const ListFlowInstanceAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::pageListUsersAsync(const PageListUsersRequest& request, const PageListUsersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listFlowInstance(request), context); + handler(this, request, pageListUsers(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListFlowInstanceOutcomeCallable EmrClient::listFlowInstanceCallable(const ListFlowInstanceRequest &request) const +EmrClient::PageListUsersOutcomeCallable EmrClient::pageListUsersCallable(const PageListUsersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listFlowInstance(request); + return this->pageListUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterServiceConfigHistoryOutcome EmrClient::describeClusterServiceConfigHistory(const DescribeClusterServiceConfigHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterServiceConfigHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterServiceConfigHistoryOutcome(DescribeClusterServiceConfigHistoryResult(outcome.result())); + else + return DescribeClusterServiceConfigHistoryOutcome(outcome.error()); +} + +void EmrClient::describeClusterServiceConfigHistoryAsync(const DescribeClusterServiceConfigHistoryRequest& request, const DescribeClusterServiceConfigHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterServiceConfigHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterServiceConfigHistoryOutcomeCallable EmrClient::describeClusterServiceConfigHistoryCallable(const DescribeClusterServiceConfigHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterServiceConfigHistory(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1203,36 +771,36 @@ EmrClient::MetastoreDescribeTaskOutcomeCallable EmrClient::metastoreDescribeTask return task->get_future(); } -EmrClient::DescribeClusterServiceConfigHistoryOutcome EmrClient::describeClusterServiceConfigHistory(const DescribeClusterServiceConfigHistoryRequest &request) const +EmrClient::QueryUserActionsPolicyOutcome EmrClient::queryUserActionsPolicy(const QueryUserActionsPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeClusterServiceConfigHistoryOutcome(endpointOutcome.error()); + return QueryUserActionsPolicyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeClusterServiceConfigHistoryOutcome(DescribeClusterServiceConfigHistoryResult(outcome.result())); + return QueryUserActionsPolicyOutcome(QueryUserActionsPolicyResult(outcome.result())); else - return DescribeClusterServiceConfigHistoryOutcome(outcome.error()); + return QueryUserActionsPolicyOutcome(outcome.error()); } -void EmrClient::describeClusterServiceConfigHistoryAsync(const DescribeClusterServiceConfigHistoryRequest& request, const DescribeClusterServiceConfigHistoryAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::queryUserActionsPolicyAsync(const QueryUserActionsPolicyRequest& request, const QueryUserActionsPolicyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeClusterServiceConfigHistory(request), context); + handler(this, request, queryUserActionsPolicy(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DescribeClusterServiceConfigHistoryOutcomeCallable EmrClient::describeClusterServiceConfigHistoryCallable(const DescribeClusterServiceConfigHistoryRequest &request) const +EmrClient::QueryUserActionsPolicyOutcomeCallable EmrClient::queryUserActionsPolicyCallable(const QueryUserActionsPolicyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeClusterServiceConfigHistory(request); + return this->queryUserActionsPolicy(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1275,114 +843,6 @@ EmrClient::GetJobMigrateResultOutcomeCallable EmrClient::getJobMigrateResultCall return task->get_future(); } -EmrClient::GetHdfsCapacityStatisticInfoOutcome EmrClient::getHdfsCapacityStatisticInfo(const GetHdfsCapacityStatisticInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetHdfsCapacityStatisticInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetHdfsCapacityStatisticInfoOutcome(GetHdfsCapacityStatisticInfoResult(outcome.result())); - else - return GetHdfsCapacityStatisticInfoOutcome(outcome.error()); -} - -void EmrClient::getHdfsCapacityStatisticInfoAsync(const GetHdfsCapacityStatisticInfoRequest& request, const GetHdfsCapacityStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getHdfsCapacityStatisticInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetHdfsCapacityStatisticInfoOutcomeCallable EmrClient::getHdfsCapacityStatisticInfoCallable(const GetHdfsCapacityStatisticInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getHdfsCapacityStatisticInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ResumeExecutionPlanSchedulerOutcome EmrClient::resumeExecutionPlanScheduler(const ResumeExecutionPlanSchedulerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResumeExecutionPlanSchedulerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResumeExecutionPlanSchedulerOutcome(ResumeExecutionPlanSchedulerResult(outcome.result())); - else - return ResumeExecutionPlanSchedulerOutcome(outcome.error()); -} - -void EmrClient::resumeExecutionPlanSchedulerAsync(const ResumeExecutionPlanSchedulerRequest& request, const ResumeExecutionPlanSchedulerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resumeExecutionPlanScheduler(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ResumeExecutionPlanSchedulerOutcomeCallable EmrClient::resumeExecutionPlanSchedulerCallable(const ResumeExecutionPlanSchedulerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resumeExecutionPlanScheduler(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListFlowNodeInstanceOutcome EmrClient::listFlowNodeInstance(const ListFlowNodeInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowNodeInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowNodeInstanceOutcome(ListFlowNodeInstanceResult(outcome.result())); - else - return ListFlowNodeInstanceOutcome(outcome.error()); -} - -void EmrClient::listFlowNodeInstanceAsync(const ListFlowNodeInstanceRequest& request, const ListFlowNodeInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowNodeInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowNodeInstanceOutcomeCallable EmrClient::listFlowNodeInstanceCallable(const ListFlowNodeInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowNodeInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeDataSourceOutcome EmrClient::describeDataSource(const DescribeDataSourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,36 +879,36 @@ EmrClient::DescribeDataSourceOutcomeCallable EmrClient::describeDataSourceCallab return task->get_future(); } -EmrClient::ListJobsOutcome EmrClient::listJobs(const ListJobsRequest &request) const +EmrClient::ListFlowNodeInstanceOutcome EmrClient::listFlowNodeInstance(const ListFlowNodeInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListJobsOutcome(endpointOutcome.error()); + return ListFlowNodeInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListJobsOutcome(ListJobsResult(outcome.result())); + return ListFlowNodeInstanceOutcome(ListFlowNodeInstanceResult(outcome.result())); else - return ListJobsOutcome(outcome.error()); + return ListFlowNodeInstanceOutcome(outcome.error()); } -void EmrClient::listJobsAsync(const ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listFlowNodeInstanceAsync(const ListFlowNodeInstanceRequest& request, const ListFlowNodeInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listJobs(request), context); + handler(this, request, listFlowNodeInstance(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListJobsOutcomeCallable EmrClient::listJobsCallable(const ListJobsRequest &request) const +EmrClient::ListFlowNodeInstanceOutcomeCallable EmrClient::listFlowNodeInstanceCallable(const ListFlowNodeInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listJobs(request); + return this->listFlowNodeInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1563,72 +1023,36 @@ EmrClient::DescribeScalingActivityOutcomeCallable EmrClient::describeScalingActi return task->get_future(); } -EmrClient::ListEmrAvailableResourceOutcome EmrClient::listEmrAvailableResource(const ListEmrAvailableResourceRequest &request) const +EmrClient::ListClusterInstalledServiceOutcome EmrClient::listClusterInstalledService(const ListClusterInstalledServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListEmrAvailableResourceOutcome(endpointOutcome.error()); + return ListClusterInstalledServiceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListEmrAvailableResourceOutcome(ListEmrAvailableResourceResult(outcome.result())); + return ListClusterInstalledServiceOutcome(ListClusterInstalledServiceResult(outcome.result())); else - return ListEmrAvailableResourceOutcome(outcome.error()); + return ListClusterInstalledServiceOutcome(outcome.error()); } -void EmrClient::listEmrAvailableResourceAsync(const ListEmrAvailableResourceRequest& request, const ListEmrAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listClusterInstalledServiceAsync(const ListClusterInstalledServiceRequest& request, const ListClusterInstalledServiceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listEmrAvailableResource(request), context); + handler(this, request, listClusterInstalledService(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListEmrAvailableResourceOutcomeCallable EmrClient::listEmrAvailableResourceCallable(const ListEmrAvailableResourceRequest &request) const +EmrClient::ListClusterInstalledServiceOutcomeCallable EmrClient::listClusterInstalledServiceCallable(const ListClusterInstalledServiceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listEmrAvailableResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ReleaseETLJobOutcome EmrClient::releaseETLJob(const ReleaseETLJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReleaseETLJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReleaseETLJobOutcome(ReleaseETLJobResult(outcome.result())); - else - return ReleaseETLJobOutcome(outcome.error()); -} - -void EmrClient::releaseETLJobAsync(const ReleaseETLJobRequest& request, const ReleaseETLJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, releaseETLJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ReleaseETLJobOutcomeCallable EmrClient::releaseETLJobCallable(const ReleaseETLJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->releaseETLJob(request); + return this->listClusterInstalledService(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1671,42 +1095,6 @@ EmrClient::DescribeEmrMainVersionOutcomeCallable EmrClient::describeEmrMainVersi return task->get_future(); } -EmrClient::DescribeClusterServiceConfigTagOutcome EmrClient::describeClusterServiceConfigTag(const DescribeClusterServiceConfigTagRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterServiceConfigTagOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterServiceConfigTagOutcome(DescribeClusterServiceConfigTagResult(outcome.result())); - else - return DescribeClusterServiceConfigTagOutcome(outcome.error()); -} - -void EmrClient::describeClusterServiceConfigTagAsync(const DescribeClusterServiceConfigTagRequest& request, const DescribeClusterServiceConfigTagAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterServiceConfigTag(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeClusterServiceConfigTagOutcomeCallable EmrClient::describeClusterServiceConfigTagCallable(const DescribeClusterServiceConfigTagRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterServiceConfigTag(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DeleteETLJobOutcome EmrClient::deleteETLJob(const DeleteETLJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,78 +1131,6 @@ EmrClient::DeleteETLJobOutcomeCallable EmrClient::deleteETLJobCallable(const Del return task->get_future(); } -EmrClient::RunClusterServiceActionOutcome EmrClient::runClusterServiceAction(const RunClusterServiceActionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RunClusterServiceActionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RunClusterServiceActionOutcome(RunClusterServiceActionResult(outcome.result())); - else - return RunClusterServiceActionOutcome(outcome.error()); -} - -void EmrClient::runClusterServiceActionAsync(const RunClusterServiceActionRequest& request, const RunClusterServiceActionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, runClusterServiceAction(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::RunClusterServiceActionOutcomeCallable EmrClient::runClusterServiceActionCallable(const RunClusterServiceActionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->runClusterServiceAction(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::SuspendFlowOutcome EmrClient::suspendFlow(const SuspendFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SuspendFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SuspendFlowOutcome(SuspendFlowResult(outcome.result())); - else - return SuspendFlowOutcome(outcome.error()); -} - -void EmrClient::suspendFlowAsync(const SuspendFlowRequest& request, const SuspendFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, suspendFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::SuspendFlowOutcomeCallable EmrClient::suspendFlowCallable(const SuspendFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->suspendFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::MetastoreDataPreviewOutcome EmrClient::metastoreDataPreview(const MetastoreDataPreviewRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1851,78 +1167,6 @@ EmrClient::MetastoreDataPreviewOutcomeCallable EmrClient::metastoreDataPreviewCa return task->get_future(); } -EmrClient::AuthorizeSecurityGroupOutcome EmrClient::authorizeSecurityGroup(const AuthorizeSecurityGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AuthorizeSecurityGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AuthorizeSecurityGroupOutcome(AuthorizeSecurityGroupResult(outcome.result())); - else - return AuthorizeSecurityGroupOutcome(outcome.error()); -} - -void EmrClient::authorizeSecurityGroupAsync(const AuthorizeSecurityGroupRequest& request, const AuthorizeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, authorizeSecurityGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::AuthorizeSecurityGroupOutcomeCallable EmrClient::authorizeSecurityGroupCallable(const AuthorizeSecurityGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->authorizeSecurityGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ModifyClusterTemplateOutcome EmrClient::modifyClusterTemplate(const ModifyClusterTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyClusterTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyClusterTemplateOutcome(ModifyClusterTemplateResult(outcome.result())); - else - return ModifyClusterTemplateOutcome(outcome.error()); -} - -void EmrClient::modifyClusterTemplateAsync(const ModifyClusterTemplateRequest& request, const ModifyClusterTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyClusterTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyClusterTemplateOutcomeCallable EmrClient::modifyClusterTemplateCallable(const ModifyClusterTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyClusterTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::AttachPubIpOutcome EmrClient::attachPubIp(const AttachPubIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,6 +1203,42 @@ EmrClient::AttachPubIpOutcomeCallable EmrClient::attachPubIpCallable(const Attac return task->get_future(); } +EmrClient::UpdateWorkspaceResourceSettingOutcome EmrClient::updateWorkspaceResourceSetting(const UpdateWorkspaceResourceSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateWorkspaceResourceSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateWorkspaceResourceSettingOutcome(UpdateWorkspaceResourceSettingResult(outcome.result())); + else + return UpdateWorkspaceResourceSettingOutcome(outcome.error()); +} + +void EmrClient::updateWorkspaceResourceSettingAsync(const UpdateWorkspaceResourceSettingRequest& request, const UpdateWorkspaceResourceSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateWorkspaceResourceSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::UpdateWorkspaceResourceSettingOutcomeCallable EmrClient::updateWorkspaceResourceSettingCallable(const UpdateWorkspaceResourceSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateWorkspaceResourceSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::RunExecutionPlanOutcome EmrClient::runExecutionPlan(const RunExecutionPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,78 +1275,6 @@ EmrClient::RunExecutionPlanOutcomeCallable EmrClient::runExecutionPlanCallable(c return task->get_future(); } -EmrClient::ContextQueryLogOutcome EmrClient::contextQueryLog(const ContextQueryLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ContextQueryLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ContextQueryLogOutcome(ContextQueryLogResult(outcome.result())); - else - return ContextQueryLogOutcome(outcome.error()); -} - -void EmrClient::contextQueryLogAsync(const ContextQueryLogRequest& request, const ContextQueryLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, contextQueryLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ContextQueryLogOutcomeCallable EmrClient::contextQueryLogCallable(const ContextQueryLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->contextQueryLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListClusterOperationHostOutcome EmrClient::listClusterOperationHost(const ListClusterOperationHostRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListClusterOperationHostOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListClusterOperationHostOutcome(ListClusterOperationHostResult(outcome.result())); - else - return ListClusterOperationHostOutcome(outcome.error()); -} - -void EmrClient::listClusterOperationHostAsync(const ListClusterOperationHostRequest& request, const ListClusterOperationHostAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listClusterOperationHost(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListClusterOperationHostOutcomeCallable EmrClient::listClusterOperationHostCallable(const ListClusterOperationHostRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listClusterOperationHost(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ListClusterTemplatesOutcome EmrClient::listClusterTemplates(const ListClusterTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +1347,42 @@ EmrClient::DescribeFlowCategoryOutcomeCallable EmrClient::describeFlowCategoryCa return task->get_future(); } +EmrClient::StartKafkaBrokerDiskBalancerOutcome EmrClient::startKafkaBrokerDiskBalancer(const StartKafkaBrokerDiskBalancerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartKafkaBrokerDiskBalancerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartKafkaBrokerDiskBalancerOutcome(StartKafkaBrokerDiskBalancerResult(outcome.result())); + else + return StartKafkaBrokerDiskBalancerOutcome(outcome.error()); +} + +void EmrClient::startKafkaBrokerDiskBalancerAsync(const StartKafkaBrokerDiskBalancerRequest& request, const StartKafkaBrokerDiskBalancerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startKafkaBrokerDiskBalancer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::StartKafkaBrokerDiskBalancerOutcomeCallable EmrClient::startKafkaBrokerDiskBalancerCallable(const StartKafkaBrokerDiskBalancerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startKafkaBrokerDiskBalancer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::ModifyFlowJobOutcome EmrClient::modifyFlowJob(const ModifyFlowJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,144 +1419,72 @@ EmrClient::ModifyFlowJobOutcomeCallable EmrClient::modifyFlowJobCallable(const M return task->get_future(); } -EmrClient::ListScalingRuleOutcome EmrClient::listScalingRule(const ListScalingRuleRequest &request) const +EmrClient::RemoveBackupRuleOutcome EmrClient::removeBackupRule(const RemoveBackupRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListScalingRuleOutcome(endpointOutcome.error()); + return RemoveBackupRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListScalingRuleOutcome(ListScalingRuleResult(outcome.result())); + return RemoveBackupRuleOutcome(RemoveBackupRuleResult(outcome.result())); else - return ListScalingRuleOutcome(outcome.error()); + return RemoveBackupRuleOutcome(outcome.error()); } -void EmrClient::listScalingRuleAsync(const ListScalingRuleRequest& request, const ListScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::removeBackupRuleAsync(const RemoveBackupRuleRequest& request, const RemoveBackupRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listScalingRule(request), context); + handler(this, request, removeBackupRule(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListScalingRuleOutcomeCallable EmrClient::listScalingRuleCallable(const ListScalingRuleRequest &request) const +EmrClient::RemoveBackupRuleOutcomeCallable EmrClient::removeBackupRuleCallable(const RemoveBackupRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listScalingRule(request); + return this->removeBackupRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::DeleteFlowOutcome EmrClient::deleteFlow(const DeleteFlowRequest &request) const +EmrClient::RetrySyncUserAccountOutcome EmrClient::retrySyncUserAccount(const RetrySyncUserAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteFlowOutcome(endpointOutcome.error()); + return RetrySyncUserAccountOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteFlowOutcome(DeleteFlowResult(outcome.result())); + return RetrySyncUserAccountOutcome(RetrySyncUserAccountResult(outcome.result())); else - return DeleteFlowOutcome(outcome.error()); + return RetrySyncUserAccountOutcome(outcome.error()); } -void EmrClient::deleteFlowAsync(const DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::retrySyncUserAccountAsync(const RetrySyncUserAccountRequest& request, const RetrySyncUserAccountAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteFlow(request), context); + handler(this, request, retrySyncUserAccount(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DeleteFlowOutcomeCallable EmrClient::deleteFlowCallable(const DeleteFlowRequest &request) const +EmrClient::RetrySyncUserAccountOutcomeCallable EmrClient::retrySyncUserAccountCallable(const RetrySyncUserAccountRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DeleteDataSourceOutcome EmrClient::deleteDataSource(const DeleteDataSourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDataSourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDataSourceOutcome(DeleteDataSourceResult(outcome.result())); - else - return DeleteDataSourceOutcome(outcome.error()); -} - -void EmrClient::deleteDataSourceAsync(const DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDataSource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteDataSourceOutcomeCallable EmrClient::deleteDataSourceCallable(const DeleteDataSourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDataSource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::RunETLJobOutcome EmrClient::runETLJob(const RunETLJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RunETLJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RunETLJobOutcome(RunETLJobResult(outcome.result())); - else - return RunETLJobOutcome(outcome.error()); -} - -void EmrClient::runETLJobAsync(const RunETLJobRequest& request, const RunETLJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, runETLJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::RunETLJobOutcomeCallable EmrClient::runETLJobCallable(const RunETLJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->runETLJob(request); + return this->retrySyncUserAccount(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2427,78 +1599,6 @@ EmrClient::ModifyScalingRuleOutcomeCallable EmrClient::modifyScalingRuleCallable return task->get_future(); } -EmrClient::ListClusterServiceComponentHealthInfoOutcome EmrClient::listClusterServiceComponentHealthInfo(const ListClusterServiceComponentHealthInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListClusterServiceComponentHealthInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListClusterServiceComponentHealthInfoOutcome(ListClusterServiceComponentHealthInfoResult(outcome.result())); - else - return ListClusterServiceComponentHealthInfoOutcome(outcome.error()); -} - -void EmrClient::listClusterServiceComponentHealthInfoAsync(const ListClusterServiceComponentHealthInfoRequest& request, const ListClusterServiceComponentHealthInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listClusterServiceComponentHealthInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListClusterServiceComponentHealthInfoOutcomeCallable EmrClient::listClusterServiceComponentHealthInfoCallable(const ListClusterServiceComponentHealthInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listClusterServiceComponentHealthInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListFlowProjectOutcome EmrClient::listFlowProject(const ListFlowProjectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowProjectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowProjectOutcome(ListFlowProjectResult(outcome.result())); - else - return ListFlowProjectOutcome(outcome.error()); -} - -void EmrClient::listFlowProjectAsync(const ListFlowProjectRequest& request, const ListFlowProjectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowProject(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowProjectOutcomeCallable EmrClient::listFlowProjectCallable(const ListFlowProjectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowProject(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::RemoveClusterHostsOutcome EmrClient::removeClusterHosts(const RemoveClusterHostsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,72 +1671,72 @@ EmrClient::ListETLJobTriggerEntityOutcomeCallable EmrClient::listETLJobTriggerEn return task->get_future(); } -EmrClient::ModifyAlertDingDingGroupOutcome EmrClient::modifyAlertDingDingGroup(const ModifyAlertDingDingGroupRequest &request) const +EmrClient::AddClusterServiceForAdminOutcome EmrClient::addClusterServiceForAdmin(const AddClusterServiceForAdminRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyAlertDingDingGroupOutcome(endpointOutcome.error()); + return AddClusterServiceForAdminOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyAlertDingDingGroupOutcome(ModifyAlertDingDingGroupResult(outcome.result())); + return AddClusterServiceForAdminOutcome(AddClusterServiceForAdminResult(outcome.result())); else - return ModifyAlertDingDingGroupOutcome(outcome.error()); + return AddClusterServiceForAdminOutcome(outcome.error()); } -void EmrClient::modifyAlertDingDingGroupAsync(const ModifyAlertDingDingGroupRequest& request, const ModifyAlertDingDingGroupAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::addClusterServiceForAdminAsync(const AddClusterServiceForAdminRequest& request, const AddClusterServiceForAdminAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyAlertDingDingGroup(request), context); + handler(this, request, addClusterServiceForAdmin(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ModifyAlertDingDingGroupOutcomeCallable EmrClient::modifyAlertDingDingGroupCallable(const ModifyAlertDingDingGroupRequest &request) const +EmrClient::AddClusterServiceForAdminOutcomeCallable EmrClient::addClusterServiceForAdminCallable(const AddClusterServiceForAdminRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyAlertDingDingGroup(request); + return this->addClusterServiceForAdmin(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::CreateETLJobOutcome EmrClient::createETLJob(const CreateETLJobRequest &request) const +EmrClient::DescribeHostPoolOutcome EmrClient::describeHostPool(const DescribeHostPoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateETLJobOutcome(endpointOutcome.error()); + return DescribeHostPoolOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateETLJobOutcome(CreateETLJobResult(outcome.result())); + return DescribeHostPoolOutcome(DescribeHostPoolResult(outcome.result())); else - return CreateETLJobOutcome(outcome.error()); + return DescribeHostPoolOutcome(outcome.error()); } -void EmrClient::createETLJobAsync(const CreateETLJobRequest& request, const CreateETLJobAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::describeHostPoolAsync(const DescribeHostPoolRequest& request, const DescribeHostPoolAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createETLJob(request), context); + handler(this, request, describeHostPool(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::CreateETLJobOutcomeCallable EmrClient::createETLJobCallable(const CreateETLJobRequest &request) const +EmrClient::DescribeHostPoolOutcomeCallable EmrClient::describeHostPoolCallable(const DescribeHostPoolRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createETLJob(request); + return this->describeHostPool(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2715,114 +1815,6 @@ EmrClient::DeleteParagraphOutcomeCallable EmrClient::deleteParagraphCallable(con return task->get_future(); } -EmrClient::ListFlowJobHistoryOutcome EmrClient::listFlowJobHistory(const ListFlowJobHistoryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowJobHistoryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowJobHistoryOutcome(ListFlowJobHistoryResult(outcome.result())); - else - return ListFlowJobHistoryOutcome(outcome.error()); -} - -void EmrClient::listFlowJobHistoryAsync(const ListFlowJobHistoryRequest& request, const ListFlowJobHistoryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowJobHistory(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowJobHistoryOutcomeCallable EmrClient::listFlowJobHistoryCallable(const ListFlowJobHistoryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowJobHistory(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::CreateClusterScriptOutcome EmrClient::createClusterScript(const CreateClusterScriptRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateClusterScriptOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateClusterScriptOutcome(CreateClusterScriptResult(outcome.result())); - else - return CreateClusterScriptOutcome(outcome.error()); -} - -void EmrClient::createClusterScriptAsync(const CreateClusterScriptRequest& request, const CreateClusterScriptAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createClusterScript(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateClusterScriptOutcomeCallable EmrClient::createClusterScriptCallable(const CreateClusterScriptRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createClusterScript(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::SubmitFlowOutcome EmrClient::submitFlow(const SubmitFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitFlowOutcome(SubmitFlowResult(outcome.result())); - else - return SubmitFlowOutcome(outcome.error()); -} - -void EmrClient::submitFlowAsync(const SubmitFlowRequest& request, const SubmitFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::SubmitFlowOutcomeCallable EmrClient::submitFlowCallable(const SubmitFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::GetQueueInputStatisticInfoOutcome EmrClient::getQueueInputStatisticInfo(const GetQueueInputStatisticInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,42 +1851,6 @@ EmrClient::GetQueueInputStatisticInfoOutcomeCallable EmrClient::getQueueInputSta return task->get_future(); } -EmrClient::ListClusterServiceQuickLinkOutcome EmrClient::listClusterServiceQuickLink(const ListClusterServiceQuickLinkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListClusterServiceQuickLinkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListClusterServiceQuickLinkOutcome(ListClusterServiceQuickLinkResult(outcome.result())); - else - return ListClusterServiceQuickLinkOutcome(outcome.error()); -} - -void EmrClient::listClusterServiceQuickLinkAsync(const ListClusterServiceQuickLinkRequest& request, const ListClusterServiceQuickLinkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listClusterServiceQuickLink(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListClusterServiceQuickLinkOutcomeCallable EmrClient::listClusterServiceQuickLinkCallable(const ListClusterServiceQuickLinkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listClusterServiceQuickLink(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::MetastoreUpdateTableOutcome EmrClient::metastoreUpdateTable(const MetastoreUpdateTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2931,6 +1887,78 @@ EmrClient::MetastoreUpdateTableOutcomeCallable EmrClient::metastoreUpdateTableCa return task->get_future(); } +EmrClient::GetBackupRuleInfoOutcome EmrClient::getBackupRuleInfo(const GetBackupRuleInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBackupRuleInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBackupRuleInfoOutcome(GetBackupRuleInfoResult(outcome.result())); + else + return GetBackupRuleInfoOutcome(outcome.error()); +} + +void EmrClient::getBackupRuleInfoAsync(const GetBackupRuleInfoRequest& request, const GetBackupRuleInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBackupRuleInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetBackupRuleInfoOutcomeCallable EmrClient::getBackupRuleInfoCallable(const GetBackupRuleInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBackupRuleInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterServiceQuickLinkOutcome EmrClient::listClusterServiceQuickLink(const ListClusterServiceQuickLinkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterServiceQuickLinkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterServiceQuickLinkOutcome(ListClusterServiceQuickLinkResult(outcome.result())); + else + return ListClusterServiceQuickLinkOutcome(outcome.error()); +} + +void EmrClient::listClusterServiceQuickLinkAsync(const ListClusterServiceQuickLinkRequest& request, const ListClusterServiceQuickLinkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterServiceQuickLink(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterServiceQuickLinkOutcomeCallable EmrClient::listClusterServiceQuickLinkCallable(const ListClusterServiceQuickLinkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterServiceQuickLink(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::ListClusterHostGroupOutcome EmrClient::listClusterHostGroup(const ListClusterHostGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3039,78 +2067,6 @@ EmrClient::MetastoreDeleteKafkaTopicOutcomeCallable EmrClient::metastoreDeleteKa return task->get_future(); } -EmrClient::ResumeFlowOutcome EmrClient::resumeFlow(const ResumeFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResumeFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResumeFlowOutcome(ResumeFlowResult(outcome.result())); - else - return ResumeFlowOutcome(outcome.error()); -} - -void EmrClient::resumeFlowAsync(const ResumeFlowRequest& request, const ResumeFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resumeFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ResumeFlowOutcomeCallable EmrClient::resumeFlowCallable(const ResumeFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resumeFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DeleteFlowProjectByIdOutcome EmrClient::deleteFlowProjectById(const DeleteFlowProjectByIdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFlowProjectByIdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFlowProjectByIdOutcome(DeleteFlowProjectByIdResult(outcome.result())); - else - return DeleteFlowProjectByIdOutcome(outcome.error()); -} - -void EmrClient::deleteFlowProjectByIdAsync(const DeleteFlowProjectByIdRequest& request, const DeleteFlowProjectByIdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFlowProjectById(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteFlowProjectByIdOutcomeCallable EmrClient::deleteFlowProjectByIdCallable(const DeleteFlowProjectByIdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFlowProjectById(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::SuspendExecutionPlanInstanceOutcome EmrClient::suspendExecutionPlanInstance(const SuspendExecutionPlanInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,42 +2103,6 @@ EmrClient::SuspendExecutionPlanInstanceOutcomeCallable EmrClient::suspendExecuti return task->get_future(); } -EmrClient::GetUserSubmissionStatisticInfoOutcome EmrClient::getUserSubmissionStatisticInfo(const GetUserSubmissionStatisticInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUserSubmissionStatisticInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUserSubmissionStatisticInfoOutcome(GetUserSubmissionStatisticInfoResult(outcome.result())); - else - return GetUserSubmissionStatisticInfoOutcome(outcome.error()); -} - -void EmrClient::getUserSubmissionStatisticInfoAsync(const GetUserSubmissionStatisticInfoRequest& request, const GetUserSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUserSubmissionStatisticInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetUserSubmissionStatisticInfoOutcomeCallable EmrClient::getUserSubmissionStatisticInfoCallable(const GetUserSubmissionStatisticInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUserSubmissionStatisticInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DeleteScalingTaskGroupOutcome EmrClient::deleteScalingTaskGroup(const DeleteScalingTaskGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,72 +2139,36 @@ EmrClient::DeleteScalingTaskGroupOutcomeCallable EmrClient::deleteScalingTaskGro return task->get_future(); } -EmrClient::DescribeParagraphOutcome EmrClient::describeParagraph(const DescribeParagraphRequest &request) const +EmrClient::GetUserSubmissionStatisticInfoOutcome EmrClient::getUserSubmissionStatisticInfo(const GetUserSubmissionStatisticInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeParagraphOutcome(endpointOutcome.error()); + return GetUserSubmissionStatisticInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeParagraphOutcome(DescribeParagraphResult(outcome.result())); + return GetUserSubmissionStatisticInfoOutcome(GetUserSubmissionStatisticInfoResult(outcome.result())); else - return DescribeParagraphOutcome(outcome.error()); + return GetUserSubmissionStatisticInfoOutcome(outcome.error()); } -void EmrClient::describeParagraphAsync(const DescribeParagraphRequest& request, const DescribeParagraphAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::getUserSubmissionStatisticInfoAsync(const GetUserSubmissionStatisticInfoRequest& request, const GetUserSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeParagraph(request), context); + handler(this, request, getUserSubmissionStatisticInfo(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DescribeParagraphOutcomeCallable EmrClient::describeParagraphCallable(const DescribeParagraphRequest &request) const +EmrClient::GetUserSubmissionStatisticInfoOutcomeCallable EmrClient::getUserSubmissionStatisticInfoCallable(const GetUserSubmissionStatisticInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeParagraph(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::MetastoreCreateDatabaseOutcome EmrClient::metastoreCreateDatabase(const MetastoreCreateDatabaseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreCreateDatabaseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreCreateDatabaseOutcome(MetastoreCreateDatabaseResult(outcome.result())); - else - return MetastoreCreateDatabaseOutcome(outcome.error()); -} - -void EmrClient::metastoreCreateDatabaseAsync(const MetastoreCreateDatabaseRequest& request, const MetastoreCreateDatabaseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreCreateDatabase(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreCreateDatabaseOutcomeCallable EmrClient::metastoreCreateDatabaseCallable(const MetastoreCreateDatabaseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreCreateDatabase(request); + return this->getUserSubmissionStatisticInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3327,108 +2211,72 @@ EmrClient::ListFailureJobExecutionInstancesOutcomeCallable EmrClient::listFailur return task->get_future(); } -EmrClient::DeleteFlowJobOutcome EmrClient::deleteFlowJob(const DeleteFlowJobRequest &request) const +EmrClient::CreateBackupPlanOutcome EmrClient::createBackupPlan(const CreateBackupPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteFlowJobOutcome(endpointOutcome.error()); + return CreateBackupPlanOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteFlowJobOutcome(DeleteFlowJobResult(outcome.result())); + return CreateBackupPlanOutcome(CreateBackupPlanResult(outcome.result())); else - return DeleteFlowJobOutcome(outcome.error()); + return CreateBackupPlanOutcome(outcome.error()); } -void EmrClient::deleteFlowJobAsync(const DeleteFlowJobRequest& request, const DeleteFlowJobAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::createBackupPlanAsync(const CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteFlowJob(request), context); + handler(this, request, createBackupPlan(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DeleteFlowJobOutcomeCallable EmrClient::deleteFlowJobCallable(const DeleteFlowJobRequest &request) const +EmrClient::CreateBackupPlanOutcomeCallable EmrClient::createBackupPlanCallable(const CreateBackupPlanRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteFlowJob(request); + return this->createBackupPlan(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::RefreshClusterResourcePoolOutcome EmrClient::refreshClusterResourcePool(const RefreshClusterResourcePoolRequest &request) const +EmrClient::ListHpHostOutcome EmrClient::listHpHost(const ListHpHostRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RefreshClusterResourcePoolOutcome(endpointOutcome.error()); + return ListHpHostOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RefreshClusterResourcePoolOutcome(RefreshClusterResourcePoolResult(outcome.result())); + return ListHpHostOutcome(ListHpHostResult(outcome.result())); else - return RefreshClusterResourcePoolOutcome(outcome.error()); + return ListHpHostOutcome(outcome.error()); } -void EmrClient::refreshClusterResourcePoolAsync(const RefreshClusterResourcePoolRequest& request, const RefreshClusterResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listHpHostAsync(const ListHpHostRequest& request, const ListHpHostAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, refreshClusterResourcePool(request), context); + handler(this, request, listHpHost(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::RefreshClusterResourcePoolOutcomeCallable EmrClient::refreshClusterResourcePoolCallable(const RefreshClusterResourcePoolRequest &request) const +EmrClient::ListHpHostOutcomeCallable EmrClient::listHpHostCallable(const ListHpHostRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->refreshClusterResourcePool(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ModifyJobOutcome EmrClient::modifyJob(const ModifyJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyJobOutcome(ModifyJobResult(outcome.result())); - else - return ModifyJobOutcome(outcome.error()); -} - -void EmrClient::modifyJobAsync(const ModifyJobRequest& request, const ModifyJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyJobOutcomeCallable EmrClient::modifyJobCallable(const ModifyJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyJob(request); + return this->listHpHost(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3471,6 +2319,42 @@ EmrClient::MetastoreCreateDataResourceOutcomeCallable EmrClient::metastoreCreate return task->get_future(); } +EmrClient::ListClusterHostComponentForAdminOutcome EmrClient::listClusterHostComponentForAdmin(const ListClusterHostComponentForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterHostComponentForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterHostComponentForAdminOutcome(ListClusterHostComponentForAdminResult(outcome.result())); + else + return ListClusterHostComponentForAdminOutcome(outcome.error()); +} + +void EmrClient::listClusterHostComponentForAdminAsync(const ListClusterHostComponentForAdminRequest& request, const ListClusterHostComponentForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterHostComponentForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterHostComponentForAdminOutcomeCallable EmrClient::listClusterHostComponentForAdminCallable(const ListClusterHostComponentForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterHostComponentForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::KillETLJobInstanceOutcome EmrClient::killETLJobInstance(const KillETLJobInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,42 +2391,6 @@ EmrClient::KillETLJobInstanceOutcomeCallable EmrClient::killETLJobInstanceCallab return task->get_future(); } -EmrClient::DescribeFlowJobOutcome EmrClient::describeFlowJob(const DescribeFlowJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFlowJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFlowJobOutcome(DescribeFlowJobResult(outcome.result())); - else - return DescribeFlowJobOutcome(outcome.error()); -} - -void EmrClient::describeFlowJobAsync(const DescribeFlowJobRequest& request, const DescribeFlowJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFlowJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeFlowJobOutcomeCallable EmrClient::describeFlowJobCallable(const DescribeFlowJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFlowJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::RetryExecutionPlanInstanceOutcome EmrClient::retryExecutionPlanInstance(const RetryExecutionPlanInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,72 +2427,36 @@ EmrClient::RetryExecutionPlanInstanceOutcomeCallable EmrClient::retryExecutionPl return task->get_future(); } -EmrClient::RerunFlowOutcome EmrClient::rerunFlow(const RerunFlowRequest &request) const +EmrClient::ListHostPoolOutcome EmrClient::listHostPool(const ListHostPoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RerunFlowOutcome(endpointOutcome.error()); + return ListHostPoolOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RerunFlowOutcome(RerunFlowResult(outcome.result())); + return ListHostPoolOutcome(ListHostPoolResult(outcome.result())); else - return RerunFlowOutcome(outcome.error()); + return ListHostPoolOutcome(outcome.error()); } -void EmrClient::rerunFlowAsync(const RerunFlowRequest& request, const RerunFlowAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listHostPoolAsync(const ListHostPoolRequest& request, const ListHostPoolAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, rerunFlow(request), context); + handler(this, request, listHostPool(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::RerunFlowOutcomeCallable EmrClient::rerunFlowCallable(const RerunFlowRequest &request) const +EmrClient::ListHostPoolOutcomeCallable EmrClient::listHostPoolCallable(const ListHostPoolRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->rerunFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::MetastoreRetryTaskOutcome EmrClient::metastoreRetryTask(const MetastoreRetryTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreRetryTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreRetryTaskOutcome(MetastoreRetryTaskResult(outcome.result())); - else - return MetastoreRetryTaskOutcome(outcome.error()); -} - -void EmrClient::metastoreRetryTaskAsync(const MetastoreRetryTaskRequest& request, const MetastoreRetryTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreRetryTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreRetryTaskOutcomeCallable EmrClient::metastoreRetryTaskCallable(const MetastoreRetryTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreRetryTask(request); + return this->listHostPool(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3759,6 +2571,42 @@ EmrClient::KillFlowJobOutcomeCallable EmrClient::killFlowJobCallable(const KillF return task->get_future(); } +EmrClient::DescribeWorkspaceRepoSettingOutcome EmrClient::describeWorkspaceRepoSetting(const DescribeWorkspaceRepoSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWorkspaceRepoSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWorkspaceRepoSettingOutcome(DescribeWorkspaceRepoSettingResult(outcome.result())); + else + return DescribeWorkspaceRepoSettingOutcome(outcome.error()); +} + +void EmrClient::describeWorkspaceRepoSettingAsync(const DescribeWorkspaceRepoSettingRequest& request, const DescribeWorkspaceRepoSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWorkspaceRepoSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeWorkspaceRepoSettingOutcomeCallable EmrClient::describeWorkspaceRepoSettingCallable(const DescribeWorkspaceRepoSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWorkspaceRepoSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::DescribeFlowOutcome EmrClient::describeFlow(const DescribeFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3795,42 +2643,6 @@ EmrClient::DescribeFlowOutcomeCallable EmrClient::describeFlowCallable(const Des return task->get_future(); } -EmrClient::DescribeClusterV2Outcome EmrClient::describeClusterV2(const DescribeClusterV2Request &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterV2Outcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterV2Outcome(DescribeClusterV2Result(outcome.result())); - else - return DescribeClusterV2Outcome(outcome.error()); -} - -void EmrClient::describeClusterV2Async(const DescribeClusterV2Request& request, const DescribeClusterV2AsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterV2(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeClusterV2OutcomeCallable EmrClient::describeClusterV2Callable(const DescribeClusterV2Request &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterV2(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeDataSourceSchemaDatabaseOutcome EmrClient::describeDataSourceSchemaDatabase(const DescribeDataSourceSchemaDatabaseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,108 +2715,36 @@ EmrClient::DescribeETLJobStageOutputSchemaOutcomeCallable EmrClient::describeETL return task->get_future(); } -EmrClient::CreateFlowProjectClusterSettingOutcome EmrClient::createFlowProjectClusterSetting(const CreateFlowProjectClusterSettingRequest &request) const +EmrClient::GetUserInputStatisticInfoOutcome EmrClient::getUserInputStatisticInfo(const GetUserInputStatisticInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateFlowProjectClusterSettingOutcome(endpointOutcome.error()); + return GetUserInputStatisticInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateFlowProjectClusterSettingOutcome(CreateFlowProjectClusterSettingResult(outcome.result())); + return GetUserInputStatisticInfoOutcome(GetUserInputStatisticInfoResult(outcome.result())); else - return CreateFlowProjectClusterSettingOutcome(outcome.error()); + return GetUserInputStatisticInfoOutcome(outcome.error()); } -void EmrClient::createFlowProjectClusterSettingAsync(const CreateFlowProjectClusterSettingRequest& request, const CreateFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::getUserInputStatisticInfoAsync(const GetUserInputStatisticInfoRequest& request, const GetUserInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createFlowProjectClusterSetting(request), context); + handler(this, request, getUserInputStatisticInfo(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::CreateFlowProjectClusterSettingOutcomeCallable EmrClient::createFlowProjectClusterSettingCallable(const CreateFlowProjectClusterSettingRequest &request) const +EmrClient::GetUserInputStatisticInfoOutcomeCallable EmrClient::getUserInputStatisticInfoCallable(const GetUserInputStatisticInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createFlowProjectClusterSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListClusterScriptsOutcome EmrClient::listClusterScripts(const ListClusterScriptsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListClusterScriptsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListClusterScriptsOutcome(ListClusterScriptsResult(outcome.result())); - else - return ListClusterScriptsOutcome(outcome.error()); -} - -void EmrClient::listClusterScriptsAsync(const ListClusterScriptsRequest& request, const ListClusterScriptsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listClusterScripts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListClusterScriptsOutcomeCallable EmrClient::listClusterScriptsCallable(const ListClusterScriptsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listClusterScripts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeFlowInstanceOutcome EmrClient::describeFlowInstance(const DescribeFlowInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFlowInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFlowInstanceOutcome(DescribeFlowInstanceResult(outcome.result())); - else - return DescribeFlowInstanceOutcome(outcome.error()); -} - -void EmrClient::describeFlowInstanceAsync(const DescribeFlowInstanceRequest& request, const DescribeFlowInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFlowInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeFlowInstanceOutcomeCallable EmrClient::describeFlowInstanceCallable(const DescribeFlowInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFlowInstance(request); + return this->getUserInputStatisticInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4047,42 +2787,6 @@ EmrClient::CreateDataSourceOutcomeCallable EmrClient::createDataSourceCallable(c return task->get_future(); } -EmrClient::GetUserInputStatisticInfoOutcome EmrClient::getUserInputStatisticInfo(const GetUserInputStatisticInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUserInputStatisticInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUserInputStatisticInfoOutcome(GetUserInputStatisticInfoResult(outcome.result())); - else - return GetUserInputStatisticInfoOutcome(outcome.error()); -} - -void EmrClient::getUserInputStatisticInfoAsync(const GetUserInputStatisticInfoRequest& request, const GetUserInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUserInputStatisticInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetUserInputStatisticInfoOutcomeCallable EmrClient::getUserInputStatisticInfoCallable(const GetUserInputStatisticInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUserInputStatisticInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyAlertContactOutcome EmrClient::modifyAlertContact(const ModifyAlertContactRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4119,42 +2823,6 @@ EmrClient::ModifyAlertContactOutcomeCallable EmrClient::modifyAlertContactCallab return task->get_future(); } -EmrClient::CreateAlertContactOutcome EmrClient::createAlertContact(const CreateAlertContactRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAlertContactOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAlertContactOutcome(CreateAlertContactResult(outcome.result())); - else - return CreateAlertContactOutcome(outcome.error()); -} - -void EmrClient::createAlertContactAsync(const CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAlertContact(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateAlertContactOutcomeCallable EmrClient::createAlertContactCallable(const CreateAlertContactRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAlertContact(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DeleteAlertDingDingGroupsOutcome EmrClient::deleteAlertDingDingGroups(const DeleteAlertDingDingGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4191,252 +2859,36 @@ EmrClient::DeleteAlertDingDingGroupsOutcomeCallable EmrClient::deleteAlertDingDi return task->get_future(); } -EmrClient::MetastoreModifyDataResourceOutcome EmrClient::metastoreModifyDataResource(const MetastoreModifyDataResourceRequest &request) const +EmrClient::DescribeWorkspaceResourceSettingOutcome EmrClient::describeWorkspaceResourceSetting(const DescribeWorkspaceResourceSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MetastoreModifyDataResourceOutcome(endpointOutcome.error()); + return DescribeWorkspaceResourceSettingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MetastoreModifyDataResourceOutcome(MetastoreModifyDataResourceResult(outcome.result())); + return DescribeWorkspaceResourceSettingOutcome(DescribeWorkspaceResourceSettingResult(outcome.result())); else - return MetastoreModifyDataResourceOutcome(outcome.error()); + return DescribeWorkspaceResourceSettingOutcome(outcome.error()); } -void EmrClient::metastoreModifyDataResourceAsync(const MetastoreModifyDataResourceRequest& request, const MetastoreModifyDataResourceAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::describeWorkspaceResourceSettingAsync(const DescribeWorkspaceResourceSettingRequest& request, const DescribeWorkspaceResourceSettingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, metastoreModifyDataResource(request), context); + handler(this, request, describeWorkspaceResourceSetting(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::MetastoreModifyDataResourceOutcomeCallable EmrClient::metastoreModifyDataResourceCallable(const MetastoreModifyDataResourceRequest &request) const +EmrClient::DescribeWorkspaceResourceSettingOutcomeCallable EmrClient::describeWorkspaceResourceSettingCallable(const DescribeWorkspaceResourceSettingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->metastoreModifyDataResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListExecutePlanMigrateInfoOutcome EmrClient::listExecutePlanMigrateInfo(const ListExecutePlanMigrateInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListExecutePlanMigrateInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListExecutePlanMigrateInfoOutcome(ListExecutePlanMigrateInfoResult(outcome.result())); - else - return ListExecutePlanMigrateInfoOutcome(outcome.error()); -} - -void EmrClient::listExecutePlanMigrateInfoAsync(const ListExecutePlanMigrateInfoRequest& request, const ListExecutePlanMigrateInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listExecutePlanMigrateInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListExecutePlanMigrateInfoOutcomeCallable EmrClient::listExecutePlanMigrateInfoCallable(const ListExecutePlanMigrateInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listExecutePlanMigrateInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::GetOpsCommandResultOnceOutcome EmrClient::getOpsCommandResultOnce(const GetOpsCommandResultOnceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOpsCommandResultOnceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOpsCommandResultOnceOutcome(GetOpsCommandResultOnceResult(outcome.result())); - else - return GetOpsCommandResultOnceOutcome(outcome.error()); -} - -void EmrClient::getOpsCommandResultOnceAsync(const GetOpsCommandResultOnceRequest& request, const GetOpsCommandResultOnceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOpsCommandResultOnce(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetOpsCommandResultOnceOutcomeCallable EmrClient::getOpsCommandResultOnceCallable(const GetOpsCommandResultOnceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOpsCommandResultOnce(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ResumeExecutionPlanInstanceOutcome EmrClient::resumeExecutionPlanInstance(const ResumeExecutionPlanInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResumeExecutionPlanInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResumeExecutionPlanInstanceOutcome(ResumeExecutionPlanInstanceResult(outcome.result())); - else - return ResumeExecutionPlanInstanceOutcome(outcome.error()); -} - -void EmrClient::resumeExecutionPlanInstanceAsync(const ResumeExecutionPlanInstanceRequest& request, const ResumeExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resumeExecutionPlanInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ResumeExecutionPlanInstanceOutcomeCallable EmrClient::resumeExecutionPlanInstanceCallable(const ResumeExecutionPlanInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resumeExecutionPlanInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::CreateParagraphOutcome EmrClient::createParagraph(const CreateParagraphRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateParagraphOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateParagraphOutcome(CreateParagraphResult(outcome.result())); - else - return CreateParagraphOutcome(outcome.error()); -} - -void EmrClient::createParagraphAsync(const CreateParagraphRequest& request, const CreateParagraphAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createParagraph(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateParagraphOutcomeCallable EmrClient::createParagraphCallable(const CreateParagraphRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createParagraph(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::GetJobInputStatisticInfoOutcome EmrClient::getJobInputStatisticInfo(const GetJobInputStatisticInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetJobInputStatisticInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetJobInputStatisticInfoOutcome(GetJobInputStatisticInfoResult(outcome.result())); - else - return GetJobInputStatisticInfoOutcome(outcome.error()); -} - -void EmrClient::getJobInputStatisticInfoAsync(const GetJobInputStatisticInfoRequest& request, const GetJobInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getJobInputStatisticInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetJobInputStatisticInfoOutcomeCallable EmrClient::getJobInputStatisticInfoCallable(const GetJobInputStatisticInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getJobInputStatisticInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DeleteFlowProjectUserOutcome EmrClient::deleteFlowProjectUser(const DeleteFlowProjectUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFlowProjectUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFlowProjectUserOutcome(DeleteFlowProjectUserResult(outcome.result())); - else - return DeleteFlowProjectUserOutcome(outcome.error()); -} - -void EmrClient::deleteFlowProjectUserAsync(const DeleteFlowProjectUserRequest& request, const DeleteFlowProjectUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFlowProjectUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteFlowProjectUserOutcomeCallable EmrClient::deleteFlowProjectUserCallable(const DeleteFlowProjectUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFlowProjectUser(request); + return this->describeWorkspaceResourceSetting(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4479,42 +2931,6 @@ EmrClient::CreateResourceQueueOutcomeCallable EmrClient::createResourceQueueCall return task->get_future(); } -EmrClient::ListDependedServiceOutcome EmrClient::listDependedService(const ListDependedServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListDependedServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListDependedServiceOutcome(ListDependedServiceResult(outcome.result())); - else - return ListDependedServiceOutcome(outcome.error()); -} - -void EmrClient::listDependedServiceAsync(const ListDependedServiceRequest& request, const ListDependedServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listDependedService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListDependedServiceOutcomeCallable EmrClient::listDependedServiceCallable(const ListDependedServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listDependedService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::CloneETLJobOutcome EmrClient::cloneETLJob(const CloneETLJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,42 +2967,6 @@ EmrClient::CloneETLJobOutcomeCallable EmrClient::cloneETLJobCallable(const Clone return task->get_future(); } -EmrClient::DeleteAlertContactsOutcome EmrClient::deleteAlertContacts(const DeleteAlertContactsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteAlertContactsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAlertContactsOutcome(DeleteAlertContactsResult(outcome.result())); - else - return DeleteAlertContactsOutcome(outcome.error()); -} - -void EmrClient::deleteAlertContactsAsync(const DeleteAlertContactsRequest& request, const DeleteAlertContactsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAlertContacts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteAlertContactsOutcomeCallable EmrClient::deleteAlertContactsCallable(const DeleteAlertContactsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAlertContacts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::MetastoreListTablePartitionOutcome EmrClient::metastoreListTablePartition(const MetastoreListTablePartitionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4623,42 +3003,6 @@ EmrClient::MetastoreListTablePartitionOutcomeCallable EmrClient::metastoreListTa return task->get_future(); } -EmrClient::CreateClusterV2Outcome EmrClient::createClusterV2(const CreateClusterV2Request &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateClusterV2Outcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateClusterV2Outcome(CreateClusterV2Result(outcome.result())); - else - return CreateClusterV2Outcome(outcome.error()); -} - -void EmrClient::createClusterV2Async(const CreateClusterV2Request& request, const CreateClusterV2AsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createClusterV2(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateClusterV2OutcomeCallable EmrClient::createClusterV2Callable(const CreateClusterV2Request &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createClusterV2(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyExecutionPlanScheduleInfoOutcome EmrClient::modifyExecutionPlanScheduleInfo(const ModifyExecutionPlanScheduleInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4695,78 +3039,6 @@ EmrClient::ModifyExecutionPlanScheduleInfoOutcomeCallable EmrClient::modifyExecu return task->get_future(); } -EmrClient::ListClusterHostOutcome EmrClient::listClusterHost(const ListClusterHostRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListClusterHostOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListClusterHostOutcome(ListClusterHostResult(outcome.result())); - else - return ListClusterHostOutcome(outcome.error()); -} - -void EmrClient::listClusterHostAsync(const ListClusterHostRequest& request, const ListClusterHostAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listClusterHost(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListClusterHostOutcomeCallable EmrClient::listClusterHostCallable(const ListClusterHostRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listClusterHost(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeClusterServiceOutcome EmrClient::describeClusterService(const DescribeClusterServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterServiceOutcome(DescribeClusterServiceResult(outcome.result())); - else - return DescribeClusterServiceOutcome(outcome.error()); -} - -void EmrClient::describeClusterServiceAsync(const DescribeClusterServiceRequest& request, const DescribeClusterServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeClusterServiceOutcomeCallable EmrClient::describeClusterServiceCallable(const DescribeClusterServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::GetQueueOutputStatisticInfoOutcome EmrClient::getQueueOutputStatisticInfo(const GetQueueOutputStatisticInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4839,36 +3111,36 @@ EmrClient::CreateExecutionPlanOutcomeCallable EmrClient::createExecutionPlanCall return task->get_future(); } -EmrClient::MetastoreCreateTableOutcome EmrClient::metastoreCreateTable(const MetastoreCreateTableRequest &request) const +EmrClient::DescribeClusterResourcePoolSchedulerTypeForAdminOutcome EmrClient::describeClusterResourcePoolSchedulerTypeForAdmin(const DescribeClusterResourcePoolSchedulerTypeForAdminRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MetastoreCreateTableOutcome(endpointOutcome.error()); + return DescribeClusterResourcePoolSchedulerTypeForAdminOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MetastoreCreateTableOutcome(MetastoreCreateTableResult(outcome.result())); + return DescribeClusterResourcePoolSchedulerTypeForAdminOutcome(DescribeClusterResourcePoolSchedulerTypeForAdminResult(outcome.result())); else - return MetastoreCreateTableOutcome(outcome.error()); + return DescribeClusterResourcePoolSchedulerTypeForAdminOutcome(outcome.error()); } -void EmrClient::metastoreCreateTableAsync(const MetastoreCreateTableRequest& request, const MetastoreCreateTableAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::describeClusterResourcePoolSchedulerTypeForAdminAsync(const DescribeClusterResourcePoolSchedulerTypeForAdminRequest& request, const DescribeClusterResourcePoolSchedulerTypeForAdminAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, metastoreCreateTable(request), context); + handler(this, request, describeClusterResourcePoolSchedulerTypeForAdmin(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::MetastoreCreateTableOutcomeCallable EmrClient::metastoreCreateTableCallable(const MetastoreCreateTableRequest &request) const +EmrClient::DescribeClusterResourcePoolSchedulerTypeForAdminOutcomeCallable EmrClient::describeClusterResourcePoolSchedulerTypeForAdminCallable(const DescribeClusterResourcePoolSchedulerTypeForAdminRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->metastoreCreateTable(request); + return this->describeClusterResourcePoolSchedulerTypeForAdmin(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4947,72 +3219,72 @@ EmrClient::MetastoreListKafkaConsumerGroupOutcomeCallable EmrClient::metastoreLi return task->get_future(); } -EmrClient::CommonApiWhiteListOutcome EmrClient::commonApiWhiteList(const CommonApiWhiteListRequest &request) const +EmrClient::AddResourceToUsersOutcome EmrClient::addResourceToUsers(const AddResourceToUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CommonApiWhiteListOutcome(endpointOutcome.error()); + return AddResourceToUsersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CommonApiWhiteListOutcome(CommonApiWhiteListResult(outcome.result())); + return AddResourceToUsersOutcome(AddResourceToUsersResult(outcome.result())); else - return CommonApiWhiteListOutcome(outcome.error()); + return AddResourceToUsersOutcome(outcome.error()); } -void EmrClient::commonApiWhiteListAsync(const CommonApiWhiteListRequest& request, const CommonApiWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::addResourceToUsersAsync(const AddResourceToUsersRequest& request, const AddResourceToUsersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, commonApiWhiteList(request), context); + handler(this, request, addResourceToUsers(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::CommonApiWhiteListOutcomeCallable EmrClient::commonApiWhiteListCallable(const CommonApiWhiteListRequest &request) const +EmrClient::AddResourceToUsersOutcomeCallable EmrClient::addResourceToUsersCallable(const AddResourceToUsersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->commonApiWhiteList(request); + return this->addResourceToUsers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::CreateFlowForWebOutcome EmrClient::createFlowForWeb(const CreateFlowForWebRequest &request) const +EmrClient::SaveUserAccountInfoOutcome EmrClient::saveUserAccountInfo(const SaveUserAccountInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateFlowForWebOutcome(endpointOutcome.error()); + return SaveUserAccountInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateFlowForWebOutcome(CreateFlowForWebResult(outcome.result())); + return SaveUserAccountInfoOutcome(SaveUserAccountInfoResult(outcome.result())); else - return CreateFlowForWebOutcome(outcome.error()); + return SaveUserAccountInfoOutcome(outcome.error()); } -void EmrClient::createFlowForWebAsync(const CreateFlowForWebRequest& request, const CreateFlowForWebAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::saveUserAccountInfoAsync(const SaveUserAccountInfoRequest& request, const SaveUserAccountInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createFlowForWeb(request), context); + handler(this, request, saveUserAccountInfo(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::CreateFlowForWebOutcomeCallable EmrClient::createFlowForWebCallable(const CreateFlowForWebRequest &request) const +EmrClient::SaveUserAccountInfoOutcomeCallable EmrClient::saveUserAccountInfoCallable(const SaveUserAccountInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createFlowForWeb(request); + return this->saveUserAccountInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5055,36 +3327,36 @@ EmrClient::DeleteScalingRuleOutcomeCallable EmrClient::deleteScalingRuleCallable return task->get_future(); } -EmrClient::QuerySlsMetricDataOutcome EmrClient::querySlsMetricData(const QuerySlsMetricDataRequest &request) const +EmrClient::CreateBackupRuleOutcome EmrClient::createBackupRule(const CreateBackupRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QuerySlsMetricDataOutcome(endpointOutcome.error()); + return CreateBackupRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QuerySlsMetricDataOutcome(QuerySlsMetricDataResult(outcome.result())); + return CreateBackupRuleOutcome(CreateBackupRuleResult(outcome.result())); else - return QuerySlsMetricDataOutcome(outcome.error()); + return CreateBackupRuleOutcome(outcome.error()); } -void EmrClient::querySlsMetricDataAsync(const QuerySlsMetricDataRequest& request, const QuerySlsMetricDataAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::createBackupRuleAsync(const CreateBackupRuleRequest& request, const CreateBackupRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, querySlsMetricData(request), context); + handler(this, request, createBackupRule(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::QuerySlsMetricDataOutcomeCallable EmrClient::querySlsMetricDataCallable(const QuerySlsMetricDataRequest &request) const +EmrClient::CreateBackupRuleOutcomeCallable EmrClient::createBackupRuleCallable(const CreateBackupRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->querySlsMetricData(request); + return this->createBackupRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5127,72 +3399,36 @@ EmrClient::DescribeFlowJobStatisticOutcomeCallable EmrClient::describeFlowJobSta return task->get_future(); } -EmrClient::MetastoreListKafkaTopicOutcome EmrClient::metastoreListKafkaTopic(const MetastoreListKafkaTopicRequest &request) const +EmrClient::ListKafkaBrokerOutcome EmrClient::listKafkaBroker(const ListKafkaBrokerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MetastoreListKafkaTopicOutcome(endpointOutcome.error()); + return ListKafkaBrokerOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MetastoreListKafkaTopicOutcome(MetastoreListKafkaTopicResult(outcome.result())); + return ListKafkaBrokerOutcome(ListKafkaBrokerResult(outcome.result())); else - return MetastoreListKafkaTopicOutcome(outcome.error()); + return ListKafkaBrokerOutcome(outcome.error()); } -void EmrClient::metastoreListKafkaTopicAsync(const MetastoreListKafkaTopicRequest& request, const MetastoreListKafkaTopicAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listKafkaBrokerAsync(const ListKafkaBrokerRequest& request, const ListKafkaBrokerAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, metastoreListKafkaTopic(request), context); + handler(this, request, listKafkaBroker(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::MetastoreListKafkaTopicOutcomeCallable EmrClient::metastoreListKafkaTopicCallable(const MetastoreListKafkaTopicRequest &request) const +EmrClient::ListKafkaBrokerOutcomeCallable EmrClient::listKafkaBrokerCallable(const ListKafkaBrokerRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->metastoreListKafkaTopic(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeJobOutcome EmrClient::describeJob(const DescribeJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeJobOutcome(DescribeJobResult(outcome.result())); - else - return DescribeJobOutcome(outcome.error()); -} - -void EmrClient::describeJobAsync(const DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeJobOutcomeCallable EmrClient::describeJobCallable(const DescribeJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeJob(request); + return this->listKafkaBroker(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5235,6 +3471,42 @@ EmrClient::ReleaseClusterHostGroupOutcomeCallable EmrClient::releaseClusterHostG return task->get_future(); } +EmrClient::ListBackupsOutcome EmrClient::listBackups(const ListBackupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBackupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBackupsOutcome(ListBackupsResult(outcome.result())); + else + return ListBackupsOutcome(outcome.error()); +} + +void EmrClient::listBackupsAsync(const ListBackupsRequest& request, const ListBackupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBackups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListBackupsOutcomeCallable EmrClient::listBackupsCallable(const ListBackupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBackups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::ListOpsOperationOutcome EmrClient::listOpsOperation(const ListOpsOperationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5271,42 +3543,6 @@ EmrClient::ListOpsOperationOutcomeCallable EmrClient::listOpsOperationCallable(c return task->get_future(); } -EmrClient::ModifyFlowProjectOutcome EmrClient::modifyFlowProject(const ModifyFlowProjectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyFlowProjectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyFlowProjectOutcome(ModifyFlowProjectResult(outcome.result())); - else - return ModifyFlowProjectOutcome(outcome.error()); -} - -void EmrClient::modifyFlowProjectAsync(const ModifyFlowProjectRequest& request, const ModifyFlowProjectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyFlowProject(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyFlowProjectOutcomeCallable EmrClient::modifyFlowProjectCallable(const ModifyFlowProjectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyFlowProject(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyClusterHostGroupOutcome EmrClient::modifyClusterHostGroup(const ModifyClusterHostGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5343,42 +3579,6 @@ EmrClient::ModifyClusterHostGroupOutcomeCallable EmrClient::modifyClusterHostGro return task->get_future(); } -EmrClient::DescribeUserStatisticsOutcome EmrClient::describeUserStatistics(const DescribeUserStatisticsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserStatisticsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserStatisticsOutcome(DescribeUserStatisticsResult(outcome.result())); - else - return DescribeUserStatisticsOutcome(outcome.error()); -} - -void EmrClient::describeUserStatisticsAsync(const DescribeUserStatisticsRequest& request, const DescribeUserStatisticsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserStatistics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeUserStatisticsOutcomeCallable EmrClient::describeUserStatisticsCallable(const DescribeUserStatisticsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeFlowNodeInstanceLauncherLogOutcome EmrClient::describeFlowNodeInstanceLauncherLog(const DescribeFlowNodeInstanceLauncherLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5415,36 +3615,36 @@ EmrClient::DescribeFlowNodeInstanceLauncherLogOutcomeCallable EmrClient::describ return task->get_future(); } -EmrClient::ListFlowOutcome EmrClient::listFlow(const ListFlowRequest &request) const +EmrClient::DescribeUserStatisticsOutcome EmrClient::describeUserStatistics(const DescribeUserStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListFlowOutcome(endpointOutcome.error()); + return DescribeUserStatisticsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListFlowOutcome(ListFlowResult(outcome.result())); + return DescribeUserStatisticsOutcome(DescribeUserStatisticsResult(outcome.result())); else - return ListFlowOutcome(outcome.error()); + return DescribeUserStatisticsOutcome(outcome.error()); } -void EmrClient::listFlowAsync(const ListFlowRequest& request, const ListFlowAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::describeUserStatisticsAsync(const DescribeUserStatisticsRequest& request, const DescribeUserStatisticsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listFlow(request), context); + handler(this, request, describeUserStatistics(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListFlowOutcomeCallable EmrClient::listFlowCallable(const ListFlowRequest &request) const +EmrClient::DescribeUserStatisticsOutcomeCallable EmrClient::describeUserStatisticsCallable(const DescribeUserStatisticsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listFlow(request); + return this->describeUserStatistics(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5487,42 +3687,6 @@ EmrClient::DeleteClusterScriptOutcomeCallable EmrClient::deleteClusterScriptCall return task->get_future(); } -EmrClient::ListResourceQueueOutcome EmrClient::listResourceQueue(const ListResourceQueueRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListResourceQueueOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListResourceQueueOutcome(ListResourceQueueResult(outcome.result())); - else - return ListResourceQueueOutcome(outcome.error()); -} - -void EmrClient::listResourceQueueAsync(const ListResourceQueueRequest& request, const ListResourceQueueAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listResourceQueue(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListResourceQueueOutcomeCallable EmrClient::listResourceQueueCallable(const ListResourceQueueRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listResourceQueue(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ListClusterOperationOutcome EmrClient::listClusterOperation(const ListClusterOperationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5559,42 +3723,6 @@ EmrClient::ListClusterOperationOutcomeCallable EmrClient::listClusterOperationCa return task->get_future(); } -EmrClient::KillExecutionPlanInstanceOutcome EmrClient::killExecutionPlanInstance(const KillExecutionPlanInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return KillExecutionPlanInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return KillExecutionPlanInstanceOutcome(KillExecutionPlanInstanceResult(outcome.result())); - else - return KillExecutionPlanInstanceOutcome(outcome.error()); -} - -void EmrClient::killExecutionPlanInstanceAsync(const KillExecutionPlanInstanceRequest& request, const KillExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, killExecutionPlanInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::KillExecutionPlanInstanceOutcomeCallable EmrClient::killExecutionPlanInstanceCallable(const KillExecutionPlanInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->killExecutionPlanInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::UpdateNavNodeOutcome EmrClient::updateNavNode(const UpdateNavNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5739,108 +3867,72 @@ EmrClient::CreateFlowJobOutcomeCallable EmrClient::createFlowJobCallable(const C return task->get_future(); } -EmrClient::DeleteFlowCategoryOutcome EmrClient::deleteFlowCategory(const DeleteFlowCategoryRequest &request) const +EmrClient::StartKafkaPreferredReplicaElectionOutcome EmrClient::startKafkaPreferredReplicaElection(const StartKafkaPreferredReplicaElectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteFlowCategoryOutcome(endpointOutcome.error()); + return StartKafkaPreferredReplicaElectionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteFlowCategoryOutcome(DeleteFlowCategoryResult(outcome.result())); + return StartKafkaPreferredReplicaElectionOutcome(StartKafkaPreferredReplicaElectionResult(outcome.result())); else - return DeleteFlowCategoryOutcome(outcome.error()); + return StartKafkaPreferredReplicaElectionOutcome(outcome.error()); } -void EmrClient::deleteFlowCategoryAsync(const DeleteFlowCategoryRequest& request, const DeleteFlowCategoryAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::startKafkaPreferredReplicaElectionAsync(const StartKafkaPreferredReplicaElectionRequest& request, const StartKafkaPreferredReplicaElectionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteFlowCategory(request), context); + handler(this, request, startKafkaPreferredReplicaElection(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DeleteFlowCategoryOutcomeCallable EmrClient::deleteFlowCategoryCallable(const DeleteFlowCategoryRequest &request) const +EmrClient::StartKafkaPreferredReplicaElectionOutcomeCallable EmrClient::startKafkaPreferredReplicaElectionCallable(const StartKafkaPreferredReplicaElectionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteFlowCategory(request); + return this->startKafkaPreferredReplicaElection(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::MigrateJobsOutcome EmrClient::migrateJobs(const MigrateJobsRequest &request) const +EmrClient::DescribeClusterServiceConfigForAdminOutcome EmrClient::describeClusterServiceConfigForAdmin(const DescribeClusterServiceConfigForAdminRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MigrateJobsOutcome(endpointOutcome.error()); + return DescribeClusterServiceConfigForAdminOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MigrateJobsOutcome(MigrateJobsResult(outcome.result())); + return DescribeClusterServiceConfigForAdminOutcome(DescribeClusterServiceConfigForAdminResult(outcome.result())); else - return MigrateJobsOutcome(outcome.error()); + return DescribeClusterServiceConfigForAdminOutcome(outcome.error()); } -void EmrClient::migrateJobsAsync(const MigrateJobsRequest& request, const MigrateJobsAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::describeClusterServiceConfigForAdminAsync(const DescribeClusterServiceConfigForAdminRequest& request, const DescribeClusterServiceConfigForAdminAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, migrateJobs(request), context); + handler(this, request, describeClusterServiceConfigForAdmin(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::MigrateJobsOutcomeCallable EmrClient::migrateJobsCallable(const MigrateJobsRequest &request) const +EmrClient::DescribeClusterServiceConfigForAdminOutcomeCallable EmrClient::describeClusterServiceConfigForAdminCallable(const DescribeClusterServiceConfigForAdminRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->migrateJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::KillExecutionJobInstanceOutcome EmrClient::killExecutionJobInstance(const KillExecutionJobInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return KillExecutionJobInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return KillExecutionJobInstanceOutcome(KillExecutionJobInstanceResult(outcome.result())); - else - return KillExecutionJobInstanceOutcome(outcome.error()); -} - -void EmrClient::killExecutionJobInstanceAsync(const KillExecutionJobInstanceRequest& request, const KillExecutionJobInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, killExecutionJobInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::KillExecutionJobInstanceOutcomeCallable EmrClient::killExecutionJobInstanceCallable(const KillExecutionJobInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->killExecutionJobInstance(request); + return this->describeClusterServiceConfigForAdmin(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5919,216 +4011,72 @@ EmrClient::ListFlowClusterAllOutcomeCallable EmrClient::listFlowClusterAllCallab return task->get_future(); } -EmrClient::ModifyExecutionPlanOutcome EmrClient::modifyExecutionPlan(const ModifyExecutionPlanRequest &request) const +EmrClient::DescribeKafkaReassignOutcome EmrClient::describeKafkaReassign(const DescribeKafkaReassignRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyExecutionPlanOutcome(endpointOutcome.error()); + return DescribeKafkaReassignOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyExecutionPlanOutcome(ModifyExecutionPlanResult(outcome.result())); + return DescribeKafkaReassignOutcome(DescribeKafkaReassignResult(outcome.result())); else - return ModifyExecutionPlanOutcome(outcome.error()); + return DescribeKafkaReassignOutcome(outcome.error()); } -void EmrClient::modifyExecutionPlanAsync(const ModifyExecutionPlanRequest& request, const ModifyExecutionPlanAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::describeKafkaReassignAsync(const DescribeKafkaReassignRequest& request, const DescribeKafkaReassignAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyExecutionPlan(request), context); + handler(this, request, describeKafkaReassign(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ModifyExecutionPlanOutcomeCallable EmrClient::modifyExecutionPlanCallable(const ModifyExecutionPlanRequest &request) const +EmrClient::DescribeKafkaReassignOutcomeCallable EmrClient::describeKafkaReassignCallable(const DescribeKafkaReassignRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyExecutionPlan(request); + return this->describeKafkaReassign(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::ListUserStatisticsOutcome EmrClient::listUserStatistics(const ListUserStatisticsRequest &request) const +EmrClient::GetAuditLogsOutcome EmrClient::getAuditLogs(const GetAuditLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListUserStatisticsOutcome(endpointOutcome.error()); + return GetAuditLogsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListUserStatisticsOutcome(ListUserStatisticsResult(outcome.result())); + return GetAuditLogsOutcome(GetAuditLogsResult(outcome.result())); else - return ListUserStatisticsOutcome(outcome.error()); + return GetAuditLogsOutcome(outcome.error()); } -void EmrClient::listUserStatisticsAsync(const ListUserStatisticsRequest& request, const ListUserStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::getAuditLogsAsync(const GetAuditLogsRequest& request, const GetAuditLogsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listUserStatistics(request), context); + handler(this, request, getAuditLogs(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListUserStatisticsOutcomeCallable EmrClient::listUserStatisticsCallable(const ListUserStatisticsRequest &request) const +EmrClient::GetAuditLogsOutcomeCallable EmrClient::getAuditLogsCallable(const GetAuditLogsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listUserStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::AddClusterServiceOutcome EmrClient::addClusterService(const AddClusterServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddClusterServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddClusterServiceOutcome(AddClusterServiceResult(outcome.result())); - else - return AddClusterServiceOutcome(outcome.error()); -} - -void EmrClient::addClusterServiceAsync(const AddClusterServiceRequest& request, const AddClusterServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addClusterService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::AddClusterServiceOutcomeCallable EmrClient::addClusterServiceCallable(const AddClusterServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addClusterService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ModifyFlowCategoryOutcome EmrClient::modifyFlowCategory(const ModifyFlowCategoryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyFlowCategoryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyFlowCategoryOutcome(ModifyFlowCategoryResult(outcome.result())); - else - return ModifyFlowCategoryOutcome(outcome.error()); -} - -void EmrClient::modifyFlowCategoryAsync(const ModifyFlowCategoryRequest& request, const ModifyFlowCategoryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyFlowCategory(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyFlowCategoryOutcomeCallable EmrClient::modifyFlowCategoryCallable(const ModifyFlowCategoryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyFlowCategory(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::QueryAlarmRulesOutcome EmrClient::queryAlarmRules(const QueryAlarmRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryAlarmRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryAlarmRulesOutcome(QueryAlarmRulesResult(outcome.result())); - else - return QueryAlarmRulesOutcome(outcome.error()); -} - -void EmrClient::queryAlarmRulesAsync(const QueryAlarmRulesRequest& request, const QueryAlarmRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryAlarmRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::QueryAlarmRulesOutcomeCallable EmrClient::queryAlarmRulesCallable(const QueryAlarmRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryAlarmRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ModifyClusterServiceConfigOutcome EmrClient::modifyClusterServiceConfig(const ModifyClusterServiceConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyClusterServiceConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyClusterServiceConfigOutcome(ModifyClusterServiceConfigResult(outcome.result())); - else - return ModifyClusterServiceConfigOutcome(outcome.error()); -} - -void EmrClient::modifyClusterServiceConfigAsync(const ModifyClusterServiceConfigRequest& request, const ModifyClusterServiceConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyClusterServiceConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyClusterServiceConfigOutcomeCallable EmrClient::modifyClusterServiceConfigCallable(const ModifyClusterServiceConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyClusterServiceConfig(request); + return this->getAuditLogs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -6171,114 +4119,6 @@ EmrClient::ListNotesOutcomeCallable EmrClient::listNotesCallable(const ListNotes return task->get_future(); } -EmrClient::MetastoreListDataResourcesOutcome EmrClient::metastoreListDataResources(const MetastoreListDataResourcesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreListDataResourcesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreListDataResourcesOutcome(MetastoreListDataResourcesResult(outcome.result())); - else - return MetastoreListDataResourcesOutcome(outcome.error()); -} - -void EmrClient::metastoreListDataResourcesAsync(const MetastoreListDataResourcesRequest& request, const MetastoreListDataResourcesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreListDataResources(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreListDataResourcesOutcomeCallable EmrClient::metastoreListDataResourcesCallable(const MetastoreListDataResourcesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreListDataResources(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::UpdateETLJobOutcome EmrClient::updateETLJob(const UpdateETLJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateETLJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateETLJobOutcome(UpdateETLJobResult(outcome.result())); - else - return UpdateETLJobOutcome(outcome.error()); -} - -void EmrClient::updateETLJobAsync(const UpdateETLJobRequest& request, const UpdateETLJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateETLJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::UpdateETLJobOutcomeCallable EmrClient::updateETLJobCallable(const UpdateETLJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateETLJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeScalingTaskGroupOutcome EmrClient::describeScalingTaskGroup(const DescribeScalingTaskGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScalingTaskGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScalingTaskGroupOutcome(DescribeScalingTaskGroupResult(outcome.result())); - else - return DescribeScalingTaskGroupOutcome(outcome.error()); -} - -void EmrClient::describeScalingTaskGroupAsync(const DescribeScalingTaskGroupRequest& request, const DescribeScalingTaskGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScalingTaskGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeScalingTaskGroupOutcomeCallable EmrClient::describeScalingTaskGroupCallable(const DescribeScalingTaskGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScalingTaskGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::MetastoreDescribeDataSourceOutcome EmrClient::metastoreDescribeDataSource(const MetastoreDescribeDataSourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6495,42 +4335,6 @@ EmrClient::RenderResourcePoolXmlOutcomeCallable EmrClient::renderResourcePoolXml return task->get_future(); } -EmrClient::UpdateDataSourceOutcome EmrClient::updateDataSource(const UpdateDataSourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateDataSourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateDataSourceOutcome(UpdateDataSourceResult(outcome.result())); - else - return UpdateDataSourceOutcome(outcome.error()); -} - -void EmrClient::updateDataSourceAsync(const UpdateDataSourceRequest& request, const UpdateDataSourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateDataSource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::UpdateDataSourceOutcomeCallable EmrClient::updateDataSourceCallable(const UpdateDataSourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateDataSource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyScalingTaskGroupOutcome EmrClient::modifyScalingTaskGroup(const ModifyScalingTaskGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6567,42 +4371,6 @@ EmrClient::ModifyScalingTaskGroupOutcomeCallable EmrClient::modifyScalingTaskGro return task->get_future(); } -EmrClient::ListDataSourceSchemaDatabaseOutcome EmrClient::listDataSourceSchemaDatabase(const ListDataSourceSchemaDatabaseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListDataSourceSchemaDatabaseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListDataSourceSchemaDatabaseOutcome(ListDataSourceSchemaDatabaseResult(outcome.result())); - else - return ListDataSourceSchemaDatabaseOutcome(outcome.error()); -} - -void EmrClient::listDataSourceSchemaDatabaseAsync(const ListDataSourceSchemaDatabaseRequest& request, const ListDataSourceSchemaDatabaseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listDataSourceSchemaDatabase(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListDataSourceSchemaDatabaseOutcomeCallable EmrClient::listDataSourceSchemaDatabaseCallable(const ListDataSourceSchemaDatabaseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listDataSourceSchemaDatabase(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeFlowProjectOutcome EmrClient::describeFlowProject(const DescribeFlowProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6639,150 +4407,6 @@ EmrClient::DescribeFlowProjectOutcomeCallable EmrClient::describeFlowProjectCall return task->get_future(); } -EmrClient::CreateUsersOutcome EmrClient::createUsers(const CreateUsersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateUsersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateUsersOutcome(CreateUsersResult(outcome.result())); - else - return CreateUsersOutcome(outcome.error()); -} - -void EmrClient::createUsersAsync(const CreateUsersRequest& request, const CreateUsersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createUsers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateUsersOutcomeCallable EmrClient::createUsersCallable(const CreateUsersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createUsers(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::CheckDataSourceOutcome EmrClient::checkDataSource(const CheckDataSourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CheckDataSourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CheckDataSourceOutcome(CheckDataSourceResult(outcome.result())); - else - return CheckDataSourceOutcome(outcome.error()); -} - -void EmrClient::checkDataSourceAsync(const CheckDataSourceRequest& request, const CheckDataSourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, checkDataSource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CheckDataSourceOutcomeCallable EmrClient::checkDataSourceCallable(const CheckDataSourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->checkDataSource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListScalingActivityOutcome EmrClient::listScalingActivity(const ListScalingActivityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListScalingActivityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListScalingActivityOutcome(ListScalingActivityResult(outcome.result())); - else - return ListScalingActivityOutcome(outcome.error()); -} - -void EmrClient::listScalingActivityAsync(const ListScalingActivityRequest& request, const ListScalingActivityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listScalingActivity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListScalingActivityOutcomeCallable EmrClient::listScalingActivityCallable(const ListScalingActivityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listScalingActivity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::CreateNoteOutcome EmrClient::createNote(const CreateNoteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateNoteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateNoteOutcome(CreateNoteResult(outcome.result())); - else - return CreateNoteOutcome(outcome.error()); -} - -void EmrClient::createNoteAsync(const CreateNoteRequest& request, const CreateNoteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createNote(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateNoteOutcomeCallable EmrClient::createNoteCallable(const CreateNoteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createNote(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DeleteResourcePoolOutcome EmrClient::deleteResourcePool(const DeleteResourcePoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6819,6 +4443,42 @@ EmrClient::DeleteResourcePoolOutcomeCallable EmrClient::deleteResourcePoolCallab return task->get_future(); } +EmrClient::QueryUserPoliciesOutcome EmrClient::queryUserPolicies(const QueryUserPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryUserPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryUserPoliciesOutcome(QueryUserPoliciesResult(outcome.result())); + else + return QueryUserPoliciesOutcome(outcome.error()); +} + +void EmrClient::queryUserPoliciesAsync(const QueryUserPoliciesRequest& request, const QueryUserPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryUserPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::QueryUserPoliciesOutcomeCallable EmrClient::queryUserPoliciesCallable(const QueryUserPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryUserPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::ListFlowJobOutcome EmrClient::listFlowJob(const ListFlowJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6855,36 +4515,36 @@ EmrClient::ListFlowJobOutcomeCallable EmrClient::listFlowJobCallable(const ListF return task->get_future(); } -EmrClient::RetryExecutionPlanOutcome EmrClient::retryExecutionPlan(const RetryExecutionPlanRequest &request) const +EmrClient::MetastoreUpdateKafkaTopicBatchOutcome EmrClient::metastoreUpdateKafkaTopicBatch(const MetastoreUpdateKafkaTopicBatchRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RetryExecutionPlanOutcome(endpointOutcome.error()); + return MetastoreUpdateKafkaTopicBatchOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RetryExecutionPlanOutcome(RetryExecutionPlanResult(outcome.result())); + return MetastoreUpdateKafkaTopicBatchOutcome(MetastoreUpdateKafkaTopicBatchResult(outcome.result())); else - return RetryExecutionPlanOutcome(outcome.error()); + return MetastoreUpdateKafkaTopicBatchOutcome(outcome.error()); } -void EmrClient::retryExecutionPlanAsync(const RetryExecutionPlanRequest& request, const RetryExecutionPlanAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::metastoreUpdateKafkaTopicBatchAsync(const MetastoreUpdateKafkaTopicBatchRequest& request, const MetastoreUpdateKafkaTopicBatchAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, retryExecutionPlan(request), context); + handler(this, request, metastoreUpdateKafkaTopicBatch(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::RetryExecutionPlanOutcomeCallable EmrClient::retryExecutionPlanCallable(const RetryExecutionPlanRequest &request) const +EmrClient::MetastoreUpdateKafkaTopicBatchOutcomeCallable EmrClient::metastoreUpdateKafkaTopicBatchCallable(const MetastoreUpdateKafkaTopicBatchRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->retryExecutionPlan(request); + return this->metastoreUpdateKafkaTopicBatch(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -6927,42 +4587,6 @@ EmrClient::DescribeAvailableInstanceTypeOutcomeCallable EmrClient::describeAvail return task->get_future(); } -EmrClient::MetastoreUpdateKafkaTopicBatchOutcome EmrClient::metastoreUpdateKafkaTopicBatch(const MetastoreUpdateKafkaTopicBatchRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreUpdateKafkaTopicBatchOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreUpdateKafkaTopicBatchOutcome(MetastoreUpdateKafkaTopicBatchResult(outcome.result())); - else - return MetastoreUpdateKafkaTopicBatchOutcome(outcome.error()); -} - -void EmrClient::metastoreUpdateKafkaTopicBatchAsync(const MetastoreUpdateKafkaTopicBatchRequest& request, const MetastoreUpdateKafkaTopicBatchAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreUpdateKafkaTopicBatch(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreUpdateKafkaTopicBatchOutcomeCallable EmrClient::metastoreUpdateKafkaTopicBatchCallable(const MetastoreUpdateKafkaTopicBatchRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreUpdateKafkaTopicBatch(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ListNavSubTreeOutcome EmrClient::listNavSubTree(const ListNavSubTreeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6999,42 +4623,6 @@ EmrClient::ListNavSubTreeOutcomeCallable EmrClient::listNavSubTreeCallable(const return task->get_future(); } -EmrClient::ListFlowNodeInstanceContainerStatusOutcome EmrClient::listFlowNodeInstanceContainerStatus(const ListFlowNodeInstanceContainerStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowNodeInstanceContainerStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowNodeInstanceContainerStatusOutcome(ListFlowNodeInstanceContainerStatusResult(outcome.result())); - else - return ListFlowNodeInstanceContainerStatusOutcome(outcome.error()); -} - -void EmrClient::listFlowNodeInstanceContainerStatusAsync(const ListFlowNodeInstanceContainerStatusRequest& request, const ListFlowNodeInstanceContainerStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowNodeInstanceContainerStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowNodeInstanceContainerStatusOutcomeCallable EmrClient::listFlowNodeInstanceContainerStatusCallable(const ListFlowNodeInstanceContainerStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowNodeInstanceContainerStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::CreateFlowProjectOutcome EmrClient::createFlowProject(const CreateFlowProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7071,114 +4659,6 @@ EmrClient::CreateFlowProjectOutcomeCallable EmrClient::createFlowProjectCallable return task->get_future(); } -EmrClient::MetastoreListDataSourceOutcome EmrClient::metastoreListDataSource(const MetastoreListDataSourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreListDataSourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreListDataSourceOutcome(MetastoreListDataSourceResult(outcome.result())); - else - return MetastoreListDataSourceOutcome(outcome.error()); -} - -void EmrClient::metastoreListDataSourceAsync(const MetastoreListDataSourceRequest& request, const MetastoreListDataSourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreListDataSource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreListDataSourceOutcomeCallable EmrClient::metastoreListDataSourceCallable(const MetastoreListDataSourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreListDataSource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::GetSupportedOpsCommandOutcome EmrClient::getSupportedOpsCommand(const GetSupportedOpsCommandRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSupportedOpsCommandOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSupportedOpsCommandOutcome(GetSupportedOpsCommandResult(outcome.result())); - else - return GetSupportedOpsCommandOutcome(outcome.error()); -} - -void EmrClient::getSupportedOpsCommandAsync(const GetSupportedOpsCommandRequest& request, const GetSupportedOpsCommandAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSupportedOpsCommand(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetSupportedOpsCommandOutcomeCallable EmrClient::getSupportedOpsCommandCallable(const GetSupportedOpsCommandRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSupportedOpsCommand(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeETLJobSqlSchemaOutcome EmrClient::describeETLJobSqlSchema(const DescribeETLJobSqlSchemaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeETLJobSqlSchemaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeETLJobSqlSchemaOutcome(DescribeETLJobSqlSchemaResult(outcome.result())); - else - return DescribeETLJobSqlSchemaOutcome(outcome.error()); -} - -void EmrClient::describeETLJobSqlSchemaAsync(const DescribeETLJobSqlSchemaRequest& request, const DescribeETLJobSqlSchemaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeETLJobSqlSchema(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeETLJobSqlSchemaOutcomeCallable EmrClient::describeETLJobSqlSchemaCallable(const DescribeETLJobSqlSchemaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeETLJobSqlSchema(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::CreateVerificationCodeOutcome EmrClient::createVerificationCode(const CreateVerificationCodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7215,78 +4695,6 @@ EmrClient::CreateVerificationCodeOutcomeCallable EmrClient::createVerificationCo return task->get_future(); } -EmrClient::ListExecutionPlanInstancesOutcome EmrClient::listExecutionPlanInstances(const ListExecutionPlanInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListExecutionPlanInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListExecutionPlanInstancesOutcome(ListExecutionPlanInstancesResult(outcome.result())); - else - return ListExecutionPlanInstancesOutcome(outcome.error()); -} - -void EmrClient::listExecutionPlanInstancesAsync(const ListExecutionPlanInstancesRequest& request, const ListExecutionPlanInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listExecutionPlanInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListExecutionPlanInstancesOutcomeCallable EmrClient::listExecutionPlanInstancesCallable(const ListExecutionPlanInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listExecutionPlanInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DetachClusterForNoteOutcome EmrClient::detachClusterForNote(const DetachClusterForNoteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetachClusterForNoteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetachClusterForNoteOutcome(DetachClusterForNoteResult(outcome.result())); - else - return DetachClusterForNoteOutcome(outcome.error()); -} - -void EmrClient::detachClusterForNoteAsync(const DetachClusterForNoteRequest& request, const DetachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detachClusterForNote(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DetachClusterForNoteOutcomeCallable EmrClient::detachClusterForNoteCallable(const DetachClusterForNoteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detachClusterForNote(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ListClustersOutcome EmrClient::listClusters(const ListClustersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7323,108 +4731,108 @@ EmrClient::ListClustersOutcomeCallable EmrClient::listClustersCallable(const Lis return task->get_future(); } -EmrClient::MetastoreDescribeKafkaConsumerGroupOutcome EmrClient::metastoreDescribeKafkaConsumerGroup(const MetastoreDescribeKafkaConsumerGroupRequest &request) const +EmrClient::DetachClusterForNoteOutcome EmrClient::detachClusterForNote(const DetachClusterForNoteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MetastoreDescribeKafkaConsumerGroupOutcome(endpointOutcome.error()); + return DetachClusterForNoteOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MetastoreDescribeKafkaConsumerGroupOutcome(MetastoreDescribeKafkaConsumerGroupResult(outcome.result())); + return DetachClusterForNoteOutcome(DetachClusterForNoteResult(outcome.result())); else - return MetastoreDescribeKafkaConsumerGroupOutcome(outcome.error()); + return DetachClusterForNoteOutcome(outcome.error()); } -void EmrClient::metastoreDescribeKafkaConsumerGroupAsync(const MetastoreDescribeKafkaConsumerGroupRequest& request, const MetastoreDescribeKafkaConsumerGroupAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::detachClusterForNoteAsync(const DetachClusterForNoteRequest& request, const DetachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, metastoreDescribeKafkaConsumerGroup(request), context); + handler(this, request, detachClusterForNote(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::MetastoreDescribeKafkaConsumerGroupOutcomeCallable EmrClient::metastoreDescribeKafkaConsumerGroupCallable(const MetastoreDescribeKafkaConsumerGroupRequest &request) const +EmrClient::DetachClusterForNoteOutcomeCallable EmrClient::detachClusterForNoteCallable(const DetachClusterForNoteRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->metastoreDescribeKafkaConsumerGroup(request); + return this->detachClusterForNote(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::MetastoreListTaskOutcome EmrClient::metastoreListTask(const MetastoreListTaskRequest &request) const +EmrClient::ListRolesOutcome EmrClient::listRoles(const ListRolesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return MetastoreListTaskOutcome(endpointOutcome.error()); + return ListRolesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return MetastoreListTaskOutcome(MetastoreListTaskResult(outcome.result())); + return ListRolesOutcome(ListRolesResult(outcome.result())); else - return MetastoreListTaskOutcome(outcome.error()); + return ListRolesOutcome(outcome.error()); } -void EmrClient::metastoreListTaskAsync(const MetastoreListTaskRequest& request, const MetastoreListTaskAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listRolesAsync(const ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, metastoreListTask(request), context); + handler(this, request, listRoles(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::MetastoreListTaskOutcomeCallable EmrClient::metastoreListTaskCallable(const MetastoreListTaskRequest &request) const +EmrClient::ListRolesOutcomeCallable EmrClient::listRolesCallable(const ListRolesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->metastoreListTask(request); + return this->listRoles(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::DescribeClusterOpLogOutcome EmrClient::describeClusterOpLog(const DescribeClusterOpLogRequest &request) const +EmrClient::DeleteBatchResourceUsersOutcome EmrClient::deleteBatchResourceUsers(const DeleteBatchResourceUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeClusterOpLogOutcome(endpointOutcome.error()); + return DeleteBatchResourceUsersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeClusterOpLogOutcome(DescribeClusterOpLogResult(outcome.result())); + return DeleteBatchResourceUsersOutcome(DeleteBatchResourceUsersResult(outcome.result())); else - return DescribeClusterOpLogOutcome(outcome.error()); + return DeleteBatchResourceUsersOutcome(outcome.error()); } -void EmrClient::describeClusterOpLogAsync(const DescribeClusterOpLogRequest& request, const DescribeClusterOpLogAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::deleteBatchResourceUsersAsync(const DeleteBatchResourceUsersRequest& request, const DeleteBatchResourceUsersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeClusterOpLog(request), context); + handler(this, request, deleteBatchResourceUsers(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DescribeClusterOpLogOutcomeCallable EmrClient::describeClusterOpLogCallable(const DescribeClusterOpLogRequest &request) const +EmrClient::DeleteBatchResourceUsersOutcomeCallable EmrClient::deleteBatchResourceUsersCallable(const DeleteBatchResourceUsersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeClusterOpLog(request); + return this->deleteBatchResourceUsers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -7467,6 +4875,42 @@ EmrClient::DescribeFlowNodeInstanceOutcomeCallable EmrClient::describeFlowNodeIn return task->get_future(); } +EmrClient::ListStreamingSqlQueryOutcome EmrClient::listStreamingSqlQuery(const ListStreamingSqlQueryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStreamingSqlQueryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStreamingSqlQueryOutcome(ListStreamingSqlQueryResult(outcome.result())); + else + return ListStreamingSqlQueryOutcome(outcome.error()); +} + +void EmrClient::listStreamingSqlQueryAsync(const ListStreamingSqlQueryRequest& request, const ListStreamingSqlQueryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStreamingSqlQuery(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListStreamingSqlQueryOutcomeCallable EmrClient::listStreamingSqlQueryCallable(const ListStreamingSqlQueryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStreamingSqlQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::MetastoreDescribeKafkaTopicOutcome EmrClient::metastoreDescribeKafkaTopic(const MetastoreDescribeKafkaTopicRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7539,78 +4983,6 @@ EmrClient::ListScalingTaskGroupOutcomeCallable EmrClient::listScalingTaskGroupCa return task->get_future(); } -EmrClient::GetQueueSubmissionStatisticInfoOutcome EmrClient::getQueueSubmissionStatisticInfo(const GetQueueSubmissionStatisticInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetQueueSubmissionStatisticInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetQueueSubmissionStatisticInfoOutcome(GetQueueSubmissionStatisticInfoResult(outcome.result())); - else - return GetQueueSubmissionStatisticInfoOutcome(outcome.error()); -} - -void EmrClient::getQueueSubmissionStatisticInfoAsync(const GetQueueSubmissionStatisticInfoRequest& request, const GetQueueSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getQueueSubmissionStatisticInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetQueueSubmissionStatisticInfoOutcomeCallable EmrClient::getQueueSubmissionStatisticInfoCallable(const GetQueueSubmissionStatisticInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getQueueSubmissionStatisticInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListDataSourceOutcome EmrClient::listDataSource(const ListDataSourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListDataSourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListDataSourceOutcome(ListDataSourceResult(outcome.result())); - else - return ListDataSourceOutcome(outcome.error()); -} - -void EmrClient::listDataSourceAsync(const ListDataSourceRequest& request, const ListDataSourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listDataSource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListDataSourceOutcomeCallable EmrClient::listDataSourceCallable(const ListDataSourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listDataSource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyUserStatisticsOutcome EmrClient::modifyUserStatistics(const ModifyUserStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7647,78 +5019,6 @@ EmrClient::ModifyUserStatisticsOutcomeCallable EmrClient::modifyUserStatisticsCa return task->get_future(); } -EmrClient::MetastoreCreateKafkaTopicOutcome EmrClient::metastoreCreateKafkaTopic(const MetastoreCreateKafkaTopicRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreCreateKafkaTopicOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreCreateKafkaTopicOutcome(MetastoreCreateKafkaTopicResult(outcome.result())); - else - return MetastoreCreateKafkaTopicOutcome(outcome.error()); -} - -void EmrClient::metastoreCreateKafkaTopicAsync(const MetastoreCreateKafkaTopicRequest& request, const MetastoreCreateKafkaTopicAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreCreateKafkaTopic(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreCreateKafkaTopicOutcomeCallable EmrClient::metastoreCreateKafkaTopicCallable(const MetastoreCreateKafkaTopicRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreCreateKafkaTopic(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListETLJobInstanceOutcome EmrClient::listETLJobInstance(const ListETLJobInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListETLJobInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListETLJobInstanceOutcome(ListETLJobInstanceResult(outcome.result())); - else - return ListETLJobInstanceOutcome(outcome.error()); -} - -void EmrClient::listETLJobInstanceAsync(const ListETLJobInstanceRequest& request, const ListETLJobInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listETLJobInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListETLJobInstanceOutcomeCallable EmrClient::listETLJobInstanceCallable(const ListETLJobInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listETLJobInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyFlowVariableCollectionOutcome EmrClient::modifyFlowVariableCollection(const ModifyFlowVariableCollectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7791,72 +5091,72 @@ EmrClient::DescribeETLJobInstanceOutcomeCallable EmrClient::describeETLJobInstan return task->get_future(); } -EmrClient::ModifyExecutionPlanBasicInfoOutcome EmrClient::modifyExecutionPlanBasicInfo(const ModifyExecutionPlanBasicInfoRequest &request) const +EmrClient::UpdateUserStatusOutcome EmrClient::updateUserStatus(const UpdateUserStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyExecutionPlanBasicInfoOutcome(endpointOutcome.error()); + return UpdateUserStatusOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyExecutionPlanBasicInfoOutcome(ModifyExecutionPlanBasicInfoResult(outcome.result())); + return UpdateUserStatusOutcome(UpdateUserStatusResult(outcome.result())); else - return ModifyExecutionPlanBasicInfoOutcome(outcome.error()); + return UpdateUserStatusOutcome(outcome.error()); } -void EmrClient::modifyExecutionPlanBasicInfoAsync(const ModifyExecutionPlanBasicInfoRequest& request, const ModifyExecutionPlanBasicInfoAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::updateUserStatusAsync(const UpdateUserStatusRequest& request, const UpdateUserStatusAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyExecutionPlanBasicInfo(request), context); + handler(this, request, updateUserStatus(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ModifyExecutionPlanBasicInfoOutcomeCallable EmrClient::modifyExecutionPlanBasicInfoCallable(const ModifyExecutionPlanBasicInfoRequest &request) const +EmrClient::UpdateUserStatusOutcomeCallable EmrClient::updateUserStatusCallable(const UpdateUserStatusRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyExecutionPlanBasicInfo(request); + return this->updateUserStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::SubmitFlowJobOutcome EmrClient::submitFlowJob(const SubmitFlowJobRequest &request) const +EmrClient::UpdateUserOutcome EmrClient::updateUser(const UpdateUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SubmitFlowJobOutcome(endpointOutcome.error()); + return UpdateUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SubmitFlowJobOutcome(SubmitFlowJobResult(outcome.result())); + return UpdateUserOutcome(UpdateUserResult(outcome.result())); else - return SubmitFlowJobOutcome(outcome.error()); + return UpdateUserOutcome(outcome.error()); } -void EmrClient::submitFlowJobAsync(const SubmitFlowJobRequest& request, const SubmitFlowJobAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::updateUserAsync(const UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, submitFlowJob(request), context); + handler(this, request, updateUser(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::SubmitFlowJobOutcomeCallable EmrClient::submitFlowJobCallable(const SubmitFlowJobRequest &request) const +EmrClient::UpdateUserOutcomeCallable EmrClient::updateUserCallable(const UpdateUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->submitFlowJob(request); + return this->updateUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -7899,72 +5199,72 @@ EmrClient::CreateUserPasswordOutcomeCallable EmrClient::createUserPasswordCallab return task->get_future(); } -EmrClient::DescribeETLJobOutcome EmrClient::describeETLJob(const DescribeETLJobRequest &request) const +EmrClient::GetFlowAuditLogsOutcome EmrClient::getFlowAuditLogs(const GetFlowAuditLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeETLJobOutcome(endpointOutcome.error()); + return GetFlowAuditLogsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeETLJobOutcome(DescribeETLJobResult(outcome.result())); + return GetFlowAuditLogsOutcome(GetFlowAuditLogsResult(outcome.result())); else - return DescribeETLJobOutcome(outcome.error()); + return GetFlowAuditLogsOutcome(outcome.error()); } -void EmrClient::describeETLJobAsync(const DescribeETLJobRequest& request, const DescribeETLJobAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::getFlowAuditLogsAsync(const GetFlowAuditLogsRequest& request, const GetFlowAuditLogsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeETLJob(request), context); + handler(this, request, getFlowAuditLogs(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DescribeETLJobOutcomeCallable EmrClient::describeETLJobCallable(const DescribeETLJobRequest &request) const +EmrClient::GetFlowAuditLogsOutcomeCallable EmrClient::getFlowAuditLogsCallable(const GetFlowAuditLogsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeETLJob(request); + return this->getFlowAuditLogs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -EmrClient::ListClusterHostComponentOutcome EmrClient::listClusterHostComponent(const ListClusterHostComponentRequest &request) const +EmrClient::RefreshClusterResourcePoolForAdminOutcome EmrClient::refreshClusterResourcePoolForAdmin(const RefreshClusterResourcePoolForAdminRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListClusterHostComponentOutcome(endpointOutcome.error()); + return RefreshClusterResourcePoolForAdminOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListClusterHostComponentOutcome(ListClusterHostComponentResult(outcome.result())); + return RefreshClusterResourcePoolForAdminOutcome(RefreshClusterResourcePoolForAdminResult(outcome.result())); else - return ListClusterHostComponentOutcome(outcome.error()); + return RefreshClusterResourcePoolForAdminOutcome(outcome.error()); } -void EmrClient::listClusterHostComponentAsync(const ListClusterHostComponentRequest& request, const ListClusterHostComponentAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::refreshClusterResourcePoolForAdminAsync(const RefreshClusterResourcePoolForAdminRequest& request, const RefreshClusterResourcePoolForAdminAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listClusterHostComponent(request), context); + handler(this, request, refreshClusterResourcePoolForAdmin(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListClusterHostComponentOutcomeCallable EmrClient::listClusterHostComponentCallable(const ListClusterHostComponentRequest &request) const +EmrClient::RefreshClusterResourcePoolForAdminOutcomeCallable EmrClient::refreshClusterResourcePoolForAdminCallable(const RefreshClusterResourcePoolForAdminRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listClusterHostComponent(request); + return this->refreshClusterResourcePoolForAdmin(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -8043,78 +5343,6 @@ EmrClient::CloneDataSourceOutcomeCallable EmrClient::cloneDataSourceCallable(con return task->get_future(); } -EmrClient::GetJobRunningTimeStatisticInfoOutcome EmrClient::getJobRunningTimeStatisticInfo(const GetJobRunningTimeStatisticInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetJobRunningTimeStatisticInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetJobRunningTimeStatisticInfoOutcome(GetJobRunningTimeStatisticInfoResult(outcome.result())); - else - return GetJobRunningTimeStatisticInfoOutcome(outcome.error()); -} - -void EmrClient::getJobRunningTimeStatisticInfoAsync(const GetJobRunningTimeStatisticInfoRequest& request, const GetJobRunningTimeStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getJobRunningTimeStatisticInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetJobRunningTimeStatisticInfoOutcomeCallable EmrClient::getJobRunningTimeStatisticInfoCallable(const GetJobRunningTimeStatisticInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getJobRunningTimeStatisticInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListFlowProjectClusterSettingOutcome EmrClient::listFlowProjectClusterSetting(const ListFlowProjectClusterSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowProjectClusterSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowProjectClusterSettingOutcome(ListFlowProjectClusterSettingResult(outcome.result())); - else - return ListFlowProjectClusterSettingOutcome(outcome.error()); -} - -void EmrClient::listFlowProjectClusterSettingAsync(const ListFlowProjectClusterSettingRequest& request, const ListFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowProjectClusterSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowProjectClusterSettingOutcomeCallable EmrClient::listFlowProjectClusterSettingCallable(const ListFlowProjectClusterSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowProjectClusterSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeFlowProjectClusterSettingOutcome EmrClient::describeFlowProjectClusterSetting(const DescribeFlowProjectClusterSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8187,42 +5415,6 @@ EmrClient::SyncDataSourceSchemaTableOutcomeCallable EmrClient::syncDataSourceSch return task->get_future(); } -EmrClient::ListJobExecutionInstancesOutcome EmrClient::listJobExecutionInstances(const ListJobExecutionInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListJobExecutionInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListJobExecutionInstancesOutcome(ListJobExecutionInstancesResult(outcome.result())); - else - return ListJobExecutionInstancesOutcome(outcome.error()); -} - -void EmrClient::listJobExecutionInstancesAsync(const ListJobExecutionInstancesRequest& request, const ListJobExecutionInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listJobExecutionInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListJobExecutionInstancesOutcomeCallable EmrClient::listJobExecutionInstancesCallable(const ListJobExecutionInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listJobExecutionInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::TerminateClusterOperationOutcome EmrClient::terminateClusterOperation(const TerminateClusterOperationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8259,186 +5451,6 @@ EmrClient::TerminateClusterOperationOutcomeCallable EmrClient::terminateClusterO return task->get_future(); } -EmrClient::ListSlsLogstoreInfoOutcome EmrClient::listSlsLogstoreInfo(const ListSlsLogstoreInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSlsLogstoreInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSlsLogstoreInfoOutcome(ListSlsLogstoreInfoResult(outcome.result())); - else - return ListSlsLogstoreInfoOutcome(outcome.error()); -} - -void EmrClient::listSlsLogstoreInfoAsync(const ListSlsLogstoreInfoRequest& request, const ListSlsLogstoreInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSlsLogstoreInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListSlsLogstoreInfoOutcomeCallable EmrClient::listSlsLogstoreInfoCallable(const ListSlsLogstoreInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSlsLogstoreInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::MetastoreDropTableOutcome EmrClient::metastoreDropTable(const MetastoreDropTableRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreDropTableOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreDropTableOutcome(MetastoreDropTableResult(outcome.result())); - else - return MetastoreDropTableOutcome(outcome.error()); -} - -void EmrClient::metastoreDropTableAsync(const MetastoreDropTableRequest& request, const MetastoreDropTableAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreDropTable(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreDropTableOutcomeCallable EmrClient::metastoreDropTableCallable(const MetastoreDropTableRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreDropTable(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::GetOpsCommandDetailOutcome EmrClient::getOpsCommandDetail(const GetOpsCommandDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOpsCommandDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOpsCommandDetailOutcome(GetOpsCommandDetailResult(outcome.result())); - else - return GetOpsCommandDetailOutcome(outcome.error()); -} - -void EmrClient::getOpsCommandDetailAsync(const GetOpsCommandDetailRequest& request, const GetOpsCommandDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOpsCommandDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetOpsCommandDetailOutcomeCallable EmrClient::getOpsCommandDetailCallable(const GetOpsCommandDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOpsCommandDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListClusterServiceOutcome EmrClient::listClusterService(const ListClusterServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListClusterServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListClusterServiceOutcome(ListClusterServiceResult(outcome.result())); - else - return ListClusterServiceOutcome(outcome.error()); -} - -void EmrClient::listClusterServiceAsync(const ListClusterServiceRequest& request, const ListClusterServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listClusterService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListClusterServiceOutcomeCallable EmrClient::listClusterServiceCallable(const ListClusterServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listClusterService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::CreateScalingRuleOutcome EmrClient::createScalingRule(const CreateScalingRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateScalingRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateScalingRuleOutcome(CreateScalingRuleResult(outcome.result())); - else - return CreateScalingRuleOutcome(outcome.error()); -} - -void EmrClient::createScalingRuleAsync(const CreateScalingRuleRequest& request, const CreateScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createScalingRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateScalingRuleOutcomeCallable EmrClient::createScalingRuleCallable(const CreateScalingRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createScalingRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::CreateNavNodeOutcome EmrClient::createNavNode(const CreateNavNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8475,6 +5487,42 @@ EmrClient::CreateNavNodeOutcomeCallable EmrClient::createNavNodeCallable(const C return task->get_future(); } +EmrClient::DeleteResourceUserOutcome EmrClient::deleteResourceUser(const DeleteResourceUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteResourceUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteResourceUserOutcome(DeleteResourceUserResult(outcome.result())); + else + return DeleteResourceUserOutcome(outcome.error()); +} + +void EmrClient::deleteResourceUserAsync(const DeleteResourceUserRequest& request, const DeleteResourceUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteResourceUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteResourceUserOutcomeCallable EmrClient::deleteResourceUserCallable(const DeleteResourceUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteResourceUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::DeleteFlowProjectOutcome EmrClient::deleteFlowProject(const DeleteFlowProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8547,6 +5595,42 @@ EmrClient::ReleaseClusterOutcomeCallable EmrClient::releaseClusterCallable(const return task->get_future(); } +EmrClient::ListSupportedServiceNameOutcome EmrClient::listSupportedServiceName(const ListSupportedServiceNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSupportedServiceNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSupportedServiceNameOutcome(ListSupportedServiceNameResult(outcome.result())); + else + return ListSupportedServiceNameOutcome(outcome.error()); +} + +void EmrClient::listSupportedServiceNameAsync(const ListSupportedServiceNameRequest& request, const ListSupportedServiceNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSupportedServiceName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListSupportedServiceNameOutcomeCallable EmrClient::listSupportedServiceNameCallable(const ListSupportedServiceNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSupportedServiceName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::RetryCreateUserPasswordOutcome EmrClient::retryCreateUserPassword(const RetryCreateUserPasswordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8583,36 +5667,36 @@ EmrClient::RetryCreateUserPasswordOutcomeCallable EmrClient::retryCreateUserPass return task->get_future(); } -EmrClient::ListSupportedServiceNameOutcome EmrClient::listSupportedServiceName(const ListSupportedServiceNameRequest &request) const +EmrClient::PlanHostNameOutcome EmrClient::planHostName(const PlanHostNameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSupportedServiceNameOutcome(endpointOutcome.error()); + return PlanHostNameOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSupportedServiceNameOutcome(ListSupportedServiceNameResult(outcome.result())); + return PlanHostNameOutcome(PlanHostNameResult(outcome.result())); else - return ListSupportedServiceNameOutcome(outcome.error()); + return PlanHostNameOutcome(outcome.error()); } -void EmrClient::listSupportedServiceNameAsync(const ListSupportedServiceNameRequest& request, const ListSupportedServiceNameAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::planHostNameAsync(const PlanHostNameRequest& request, const PlanHostNameAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listSupportedServiceName(request), context); + handler(this, request, planHostName(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListSupportedServiceNameOutcomeCallable EmrClient::listSupportedServiceNameCallable(const ListSupportedServiceNameRequest &request) const +EmrClient::PlanHostNameOutcomeCallable EmrClient::planHostNameCallable(const PlanHostNameRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listSupportedServiceName(request); + return this->planHostName(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -8655,72 +5739,36 @@ EmrClient::ListJobInstanceWorkersOutcomeCallable EmrClient::listJobInstanceWorke return task->get_future(); } -EmrClient::DeleteNoteOutcome EmrClient::deleteNote(const DeleteNoteRequest &request) const +EmrClient::ModifyHostPoolOutcome EmrClient::modifyHostPool(const ModifyHostPoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteNoteOutcome(endpointOutcome.error()); + return ModifyHostPoolOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteNoteOutcome(DeleteNoteResult(outcome.result())); + return ModifyHostPoolOutcome(ModifyHostPoolResult(outcome.result())); else - return DeleteNoteOutcome(outcome.error()); + return ModifyHostPoolOutcome(outcome.error()); } -void EmrClient::deleteNoteAsync(const DeleteNoteRequest& request, const DeleteNoteAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::modifyHostPoolAsync(const ModifyHostPoolRequest& request, const ModifyHostPoolAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteNote(request), context); + handler(this, request, modifyHostPool(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DeleteNoteOutcomeCallable EmrClient::deleteNoteCallable(const DeleteNoteRequest &request) const +EmrClient::ModifyHostPoolOutcomeCallable EmrClient::modifyHostPoolCallable(const ModifyHostPoolRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteNote(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListFlowClusterAllHostsOutcome EmrClient::listFlowClusterAllHosts(const ListFlowClusterAllHostsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowClusterAllHostsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowClusterAllHostsOutcome(ListFlowClusterAllHostsResult(outcome.result())); - else - return ListFlowClusterAllHostsOutcome(outcome.error()); -} - -void EmrClient::listFlowClusterAllHostsAsync(const ListFlowClusterAllHostsRequest& request, const ListFlowClusterAllHostsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowClusterAllHosts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowClusterAllHostsOutcomeCallable EmrClient::listFlowClusterAllHostsCallable(const ListFlowClusterAllHostsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowClusterAllHosts(request); + return this->modifyHostPool(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -8763,144 +5811,36 @@ EmrClient::MigrateClusterHostGroupHostOutcomeCallable EmrClient::migrateClusterH return task->get_future(); } -EmrClient::GetLogHistogramOutcome EmrClient::getLogHistogram(const GetLogHistogramRequest &request) const +EmrClient::ListServiceLogOutcome EmrClient::listServiceLog(const ListServiceLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetLogHistogramOutcome(endpointOutcome.error()); + return ListServiceLogOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetLogHistogramOutcome(GetLogHistogramResult(outcome.result())); + return ListServiceLogOutcome(ListServiceLogResult(outcome.result())); else - return GetLogHistogramOutcome(outcome.error()); + return ListServiceLogOutcome(outcome.error()); } -void EmrClient::getLogHistogramAsync(const GetLogHistogramRequest& request, const GetLogHistogramAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listServiceLogAsync(const ListServiceLogRequest& request, const ListServiceLogAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getLogHistogram(request), context); + handler(this, request, listServiceLog(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::GetLogHistogramOutcomeCallable EmrClient::getLogHistogramCallable(const GetLogHistogramRequest &request) const +EmrClient::ListServiceLogOutcomeCallable EmrClient::listServiceLogCallable(const ListServiceLogRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getLogHistogram(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::MetastoreDeleteDataResourceOutcome EmrClient::metastoreDeleteDataResource(const MetastoreDeleteDataResourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreDeleteDataResourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreDeleteDataResourceOutcome(MetastoreDeleteDataResourceResult(outcome.result())); - else - return MetastoreDeleteDataResourceOutcome(outcome.error()); -} - -void EmrClient::metastoreDeleteDataResourceAsync(const MetastoreDeleteDataResourceRequest& request, const MetastoreDeleteDataResourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreDeleteDataResource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreDeleteDataResourceOutcomeCallable EmrClient::metastoreDeleteDataResourceCallable(const MetastoreDeleteDataResourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreDeleteDataResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DeleteResourceQueueOutcome EmrClient::deleteResourceQueue(const DeleteResourceQueueRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteResourceQueueOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteResourceQueueOutcome(DeleteResourceQueueResult(outcome.result())); - else - return DeleteResourceQueueOutcome(outcome.error()); -} - -void EmrClient::deleteResourceQueueAsync(const DeleteResourceQueueRequest& request, const DeleteResourceQueueAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteResourceQueue(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteResourceQueueOutcomeCallable EmrClient::deleteResourceQueueCallable(const DeleteResourceQueueRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteResourceQueue(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeClusterResourcePoolSchedulerTypeOutcome EmrClient::describeClusterResourcePoolSchedulerType(const DescribeClusterResourcePoolSchedulerTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterResourcePoolSchedulerTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterResourcePoolSchedulerTypeOutcome(DescribeClusterResourcePoolSchedulerTypeResult(outcome.result())); - else - return DescribeClusterResourcePoolSchedulerTypeOutcome(outcome.error()); -} - -void EmrClient::describeClusterResourcePoolSchedulerTypeAsync(const DescribeClusterResourcePoolSchedulerTypeRequest& request, const DescribeClusterResourcePoolSchedulerTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterResourcePoolSchedulerType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeClusterResourcePoolSchedulerTypeOutcomeCallable EmrClient::describeClusterResourcePoolSchedulerTypeCallable(const DescribeClusterResourcePoolSchedulerTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterResourcePoolSchedulerType(request); + return this->listServiceLog(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -8943,216 +5883,36 @@ EmrClient::DescribeFlowCategoryTreeOutcomeCallable EmrClient::describeFlowCatego return task->get_future(); } -EmrClient::ListServiceLogOutcome EmrClient::listServiceLog(const ListServiceLogRequest &request) const +EmrClient::GetBackPlanInfoOutcome EmrClient::getBackPlanInfo(const GetBackPlanInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListServiceLogOutcome(endpointOutcome.error()); + return GetBackPlanInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListServiceLogOutcome(ListServiceLogResult(outcome.result())); + return GetBackPlanInfoOutcome(GetBackPlanInfoResult(outcome.result())); else - return ListServiceLogOutcome(outcome.error()); + return GetBackPlanInfoOutcome(outcome.error()); } -void EmrClient::listServiceLogAsync(const ListServiceLogRequest& request, const ListServiceLogAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::getBackPlanInfoAsync(const GetBackPlanInfoRequest& request, const GetBackPlanInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listServiceLog(request), context); + handler(this, request, getBackPlanInfo(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListServiceLogOutcomeCallable EmrClient::listServiceLogCallable(const ListServiceLogRequest &request) const +EmrClient::GetBackPlanInfoOutcomeCallable EmrClient::getBackPlanInfoCallable(const GetBackPlanInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listServiceLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListFlowNodeSqlResultOutcome EmrClient::listFlowNodeSqlResult(const ListFlowNodeSqlResultRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowNodeSqlResultOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowNodeSqlResultOutcome(ListFlowNodeSqlResultResult(outcome.result())); - else - return ListFlowNodeSqlResultOutcome(outcome.error()); -} - -void EmrClient::listFlowNodeSqlResultAsync(const ListFlowNodeSqlResultRequest& request, const ListFlowNodeSqlResultAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowNodeSqlResult(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowNodeSqlResultOutcomeCallable EmrClient::listFlowNodeSqlResultCallable(const ListFlowNodeSqlResultRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowNodeSqlResult(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ModifyFlowForWebOutcome EmrClient::modifyFlowForWeb(const ModifyFlowForWebRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyFlowForWebOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyFlowForWebOutcome(ModifyFlowForWebResult(outcome.result())); - else - return ModifyFlowForWebOutcome(outcome.error()); -} - -void EmrClient::modifyFlowForWebAsync(const ModifyFlowForWebRequest& request, const ModifyFlowForWebAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyFlowForWeb(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyFlowForWebOutcomeCallable EmrClient::modifyFlowForWebCallable(const ModifyFlowForWebRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyFlowForWeb(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::RunNoteParagraphsOutcome EmrClient::runNoteParagraphs(const RunNoteParagraphsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RunNoteParagraphsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RunNoteParagraphsOutcome(RunNoteParagraphsResult(outcome.result())); - else - return RunNoteParagraphsOutcome(outcome.error()); -} - -void EmrClient::runNoteParagraphsAsync(const RunNoteParagraphsRequest& request, const RunNoteParagraphsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, runNoteParagraphs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::RunNoteParagraphsOutcomeCallable EmrClient::runNoteParagraphsCallable(const RunNoteParagraphsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->runNoteParagraphs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListJobExecutionPlanParamsOutcome EmrClient::listJobExecutionPlanParams(const ListJobExecutionPlanParamsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListJobExecutionPlanParamsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListJobExecutionPlanParamsOutcome(ListJobExecutionPlanParamsResult(outcome.result())); - else - return ListJobExecutionPlanParamsOutcome(outcome.error()); -} - -void EmrClient::listJobExecutionPlanParamsAsync(const ListJobExecutionPlanParamsRequest& request, const ListJobExecutionPlanParamsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listJobExecutionPlanParams(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListJobExecutionPlanParamsOutcomeCallable EmrClient::listJobExecutionPlanParamsCallable(const ListJobExecutionPlanParamsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listJobExecutionPlanParams(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeFlowNodeInstanceContainerLogOutcome EmrClient::describeFlowNodeInstanceContainerLog(const DescribeFlowNodeInstanceContainerLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFlowNodeInstanceContainerLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFlowNodeInstanceContainerLogOutcome(DescribeFlowNodeInstanceContainerLogResult(outcome.result())); - else - return DescribeFlowNodeInstanceContainerLogOutcome(outcome.error()); -} - -void EmrClient::describeFlowNodeInstanceContainerLogAsync(const DescribeFlowNodeInstanceContainerLogRequest& request, const DescribeFlowNodeInstanceContainerLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFlowNodeInstanceContainerLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeFlowNodeInstanceContainerLogOutcomeCallable EmrClient::describeFlowNodeInstanceContainerLogCallable(const DescribeFlowNodeInstanceContainerLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFlowNodeInstanceContainerLog(request); + return this->getBackPlanInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -9195,6 +5955,42 @@ EmrClient::CancelETLJobReleaseOutcomeCallable EmrClient::cancelETLJobReleaseCall return task->get_future(); } +EmrClient::ListStackOutcome EmrClient::listStack(const ListStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStackOutcome(ListStackResult(outcome.result())); + else + return ListStackOutcome(outcome.error()); +} + +void EmrClient::listStackAsync(const ListStackRequest& request, const ListStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListStackOutcomeCallable EmrClient::listStackCallable(const ListStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::ListClusterTagOutcome EmrClient::listClusterTag(const ListClusterTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9231,42 +6027,6 @@ EmrClient::ListClusterTagOutcomeCallable EmrClient::listClusterTagCallable(const return task->get_future(); } -EmrClient::GetUserOutputStatisticInfoOutcome EmrClient::getUserOutputStatisticInfo(const GetUserOutputStatisticInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUserOutputStatisticInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUserOutputStatisticInfoOutcome(GetUserOutputStatisticInfoResult(outcome.result())); - else - return GetUserOutputStatisticInfoOutcome(outcome.error()); -} - -void EmrClient::getUserOutputStatisticInfoAsync(const GetUserOutputStatisticInfoRequest& request, const GetUserOutputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUserOutputStatisticInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetUserOutputStatisticInfoOutcomeCallable EmrClient::getUserOutputStatisticInfoCallable(const GetUserOutputStatisticInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUserOutputStatisticInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyJobExecutionPlanFolderOutcome EmrClient::modifyJobExecutionPlanFolder(const ModifyJobExecutionPlanFolderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9303,114 +6063,6 @@ EmrClient::ModifyJobExecutionPlanFolderOutcomeCallable EmrClient::modifyJobExecu return task->get_future(); } -EmrClient::DescribeClusterBasicInfoOutcome EmrClient::describeClusterBasicInfo(const DescribeClusterBasicInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterBasicInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterBasicInfoOutcome(DescribeClusterBasicInfoResult(outcome.result())); - else - return DescribeClusterBasicInfoOutcome(outcome.error()); -} - -void EmrClient::describeClusterBasicInfoAsync(const DescribeClusterBasicInfoRequest& request, const DescribeClusterBasicInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterBasicInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeClusterBasicInfoOutcomeCallable EmrClient::describeClusterBasicInfoCallable(const DescribeClusterBasicInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterBasicInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::GetOpsCommandResultOutcome EmrClient::getOpsCommandResult(const GetOpsCommandResultRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOpsCommandResultOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOpsCommandResultOutcome(GetOpsCommandResultResult(outcome.result())); - else - return GetOpsCommandResultOutcome(outcome.error()); -} - -void EmrClient::getOpsCommandResultAsync(const GetOpsCommandResultRequest& request, const GetOpsCommandResultAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOpsCommandResult(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetOpsCommandResultOutcomeCallable EmrClient::getOpsCommandResultCallable(const GetOpsCommandResultRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOpsCommandResult(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListEmrAvailableConfigOutcome EmrClient::listEmrAvailableConfig(const ListEmrAvailableConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListEmrAvailableConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListEmrAvailableConfigOutcome(ListEmrAvailableConfigResult(outcome.result())); - else - return ListEmrAvailableConfigOutcome(outcome.error()); -} - -void EmrClient::listEmrAvailableConfigAsync(const ListEmrAvailableConfigRequest& request, const ListEmrAvailableConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listEmrAvailableConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListEmrAvailableConfigOutcomeCallable EmrClient::listEmrAvailableConfigCallable(const ListEmrAvailableConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listEmrAvailableConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyAlertUserGroupOutcome EmrClient::modifyAlertUserGroup(const ModifyAlertUserGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9483,42 +6135,6 @@ EmrClient::MetastoreListDatabasesOutcomeCallable EmrClient::metastoreListDatabas return task->get_future(); } -EmrClient::ListAlertUserGroupOutcome EmrClient::listAlertUserGroup(const ListAlertUserGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAlertUserGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAlertUserGroupOutcome(ListAlertUserGroupResult(outcome.result())); - else - return ListAlertUserGroupOutcome(outcome.error()); -} - -void EmrClient::listAlertUserGroupAsync(const ListAlertUserGroupRequest& request, const ListAlertUserGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAlertUserGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListAlertUserGroupOutcomeCallable EmrClient::listAlertUserGroupCallable(const ListAlertUserGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAlertUserGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyResourceQueueOutcome EmrClient::modifyResourceQueue(const ModifyResourceQueueRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9555,78 +6171,6 @@ EmrClient::ModifyResourceQueueOutcomeCallable EmrClient::modifyResourceQueueCall return task->get_future(); } -EmrClient::MetastoreSearchTablesOutcome EmrClient::metastoreSearchTables(const MetastoreSearchTablesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreSearchTablesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreSearchTablesOutcome(MetastoreSearchTablesResult(outcome.result())); - else - return MetastoreSearchTablesOutcome(outcome.error()); -} - -void EmrClient::metastoreSearchTablesAsync(const MetastoreSearchTablesRequest& request, const MetastoreSearchTablesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreSearchTables(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreSearchTablesOutcomeCallable EmrClient::metastoreSearchTablesCallable(const MetastoreSearchTablesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreSearchTables(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ListFlowClusterOutcome EmrClient::listFlowCluster(const ListFlowClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFlowClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFlowClusterOutcome(ListFlowClusterResult(outcome.result())); - else - return ListFlowClusterOutcome(outcome.error()); -} - -void EmrClient::listFlowClusterAsync(const ListFlowClusterRequest& request, const ListFlowClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFlowCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ListFlowClusterOutcomeCallable EmrClient::listFlowClusterCallable(const ListFlowClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFlowCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeSecurityGroupAttributeOutcome EmrClient::describeSecurityGroupAttribute(const DescribeSecurityGroupAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9663,42 +6207,6 @@ EmrClient::DescribeSecurityGroupAttributeOutcomeCallable EmrClient::describeSecu return task->get_future(); } -EmrClient::DeleteUserOutcome EmrClient::deleteUser(const DeleteUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteUserOutcome(DeleteUserResult(outcome.result())); - else - return DeleteUserOutcome(outcome.error()); -} - -void EmrClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteUserOutcomeCallable EmrClient::deleteUserCallable(const DeleteUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ListFlowCategoryOutcome EmrClient::listFlowCategory(const ListFlowCategoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9735,78 +6243,6 @@ EmrClient::ListFlowCategoryOutcomeCallable EmrClient::listFlowCategoryCallable(c return task->get_future(); } -EmrClient::ModifyJobExecutionPlanParamOutcome EmrClient::modifyJobExecutionPlanParam(const ModifyJobExecutionPlanParamRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyJobExecutionPlanParamOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyJobExecutionPlanParamOutcome(ModifyJobExecutionPlanParamResult(outcome.result())); - else - return ModifyJobExecutionPlanParamOutcome(outcome.error()); -} - -void EmrClient::modifyJobExecutionPlanParamAsync(const ModifyJobExecutionPlanParamRequest& request, const ModifyJobExecutionPlanParamAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyJobExecutionPlanParam(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyJobExecutionPlanParamOutcomeCallable EmrClient::modifyJobExecutionPlanParamCallable(const ModifyJobExecutionPlanParamRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyJobExecutionPlanParam(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ResizeClusterV2Outcome EmrClient::resizeClusterV2(const ResizeClusterV2Request &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResizeClusterV2Outcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResizeClusterV2Outcome(ResizeClusterV2Result(outcome.result())); - else - return ResizeClusterV2Outcome(outcome.error()); -} - -void EmrClient::resizeClusterV2Async(const ResizeClusterV2Request& request, const ResizeClusterV2AsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resizeClusterV2(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ResizeClusterV2OutcomeCallable EmrClient::resizeClusterV2Callable(const ResizeClusterV2Request &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resizeClusterV2(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeExecutionPlanOutcome EmrClient::describeExecutionPlan(const DescribeExecutionPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9879,42 +6315,6 @@ EmrClient::CreateFlowProjectUserOutcomeCallable EmrClient::createFlowProjectUser return task->get_future(); } -EmrClient::CreateFlowCategoryOutcome EmrClient::createFlowCategory(const CreateFlowCategoryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateFlowCategoryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateFlowCategoryOutcome(CreateFlowCategoryResult(outcome.result())); - else - return CreateFlowCategoryOutcome(outcome.error()); -} - -void EmrClient::createFlowCategoryAsync(const CreateFlowCategoryRequest& request, const CreateFlowCategoryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createFlowCategory(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateFlowCategoryOutcomeCallable EmrClient::createFlowCategoryCallable(const CreateFlowCategoryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createFlowCategory(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DeleteFlowProjectClusterSettingOutcome EmrClient::deleteFlowProjectClusterSetting(const DeleteFlowProjectClusterSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9951,6 +6351,42 @@ EmrClient::DeleteFlowProjectClusterSettingOutcomeCallable EmrClient::deleteFlowP return task->get_future(); } +EmrClient::DescribeUserGroupOutcome EmrClient::describeUserGroup(const DescribeUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserGroupOutcome(DescribeUserGroupResult(outcome.result())); + else + return DescribeUserGroupOutcome(outcome.error()); +} + +void EmrClient::describeUserGroupAsync(const DescribeUserGroupRequest& request, const DescribeUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeUserGroupOutcomeCallable EmrClient::describeUserGroupCallable(const DescribeUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::DeleteExecutionPlanOutcome EmrClient::deleteExecutionPlan(const DeleteExecutionPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9987,180 +6423,36 @@ EmrClient::DeleteExecutionPlanOutcomeCallable EmrClient::deleteExecutionPlanCall return task->get_future(); } -EmrClient::ListClusterServiceCustomActionSupportConfigOutcome EmrClient::listClusterServiceCustomActionSupportConfig(const ListClusterServiceCustomActionSupportConfigRequest &request) const +EmrClient::UpdateUserGroupOutcome EmrClient::updateUserGroup(const UpdateUserGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListClusterServiceCustomActionSupportConfigOutcome(endpointOutcome.error()); + return UpdateUserGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListClusterServiceCustomActionSupportConfigOutcome(ListClusterServiceCustomActionSupportConfigResult(outcome.result())); + return UpdateUserGroupOutcome(UpdateUserGroupResult(outcome.result())); else - return ListClusterServiceCustomActionSupportConfigOutcome(outcome.error()); + return UpdateUserGroupOutcome(outcome.error()); } -void EmrClient::listClusterServiceCustomActionSupportConfigAsync(const ListClusterServiceCustomActionSupportConfigRequest& request, const ListClusterServiceCustomActionSupportConfigAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::updateUserGroupAsync(const UpdateUserGroupRequest& request, const UpdateUserGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listClusterServiceCustomActionSupportConfig(request), context); + handler(this, request, updateUserGroup(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ListClusterServiceCustomActionSupportConfigOutcomeCallable EmrClient::listClusterServiceCustomActionSupportConfigCallable(const ListClusterServiceCustomActionSupportConfigRequest &request) const +EmrClient::UpdateUserGroupOutcomeCallable EmrClient::updateUserGroupCallable(const UpdateUserGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listClusterServiceCustomActionSupportConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::MetastoreDescribeTableOutcome EmrClient::metastoreDescribeTable(const MetastoreDescribeTableRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreDescribeTableOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreDescribeTableOutcome(MetastoreDescribeTableResult(outcome.result())); - else - return MetastoreDescribeTableOutcome(outcome.error()); -} - -void EmrClient::metastoreDescribeTableAsync(const MetastoreDescribeTableRequest& request, const MetastoreDescribeTableAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreDescribeTable(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreDescribeTableOutcomeCallable EmrClient::metastoreDescribeTableCallable(const MetastoreDescribeTableRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreDescribeTable(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::GetLogDownloadUrlOutcome EmrClient::getLogDownloadUrl(const GetLogDownloadUrlRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetLogDownloadUrlOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetLogDownloadUrlOutcome(GetLogDownloadUrlResult(outcome.result())); - else - return GetLogDownloadUrlOutcome(outcome.error()); -} - -void EmrClient::getLogDownloadUrlAsync(const GetLogDownloadUrlRequest& request, const GetLogDownloadUrlAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getLogDownloadUrl(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::GetLogDownloadUrlOutcomeCallable EmrClient::getLogDownloadUrlCallable(const GetLogDownloadUrlRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getLogDownloadUrl(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::ModifyFlowOutcome EmrClient::modifyFlow(const ModifyFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyFlowOutcome(ModifyFlowResult(outcome.result())); - else - return ModifyFlowOutcome(outcome.error()); -} - -void EmrClient::modifyFlowAsync(const ModifyFlowRequest& request, const ModifyFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyFlowOutcomeCallable EmrClient::modifyFlowCallable(const ModifyFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DescribeScalingRuleOutcome EmrClient::describeScalingRule(const DescribeScalingRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScalingRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScalingRuleOutcome(DescribeScalingRuleResult(outcome.result())); - else - return DescribeScalingRuleOutcome(outcome.error()); -} - -void EmrClient::describeScalingRuleAsync(const DescribeScalingRuleRequest& request, const DescribeScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScalingRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DescribeScalingRuleOutcomeCallable EmrClient::describeScalingRuleCallable(const DescribeScalingRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScalingRule(request); + return this->updateUserGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -10239,42 +6531,6 @@ EmrClient::SyncDataSourceSchemaDatabaseOutcomeCallable EmrClient::syncDataSource return task->get_future(); } -EmrClient::CreateUserStatisticsOutcome EmrClient::createUserStatistics(const CreateUserStatisticsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateUserStatisticsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateUserStatisticsOutcome(CreateUserStatisticsResult(outcome.result())); - else - return CreateUserStatisticsOutcome(outcome.error()); -} - -void EmrClient::createUserStatisticsAsync(const CreateUserStatisticsRequest& request, const CreateUserStatisticsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createUserStatistics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::CreateUserStatisticsOutcomeCallable EmrClient::createUserStatisticsCallable(const CreateUserStatisticsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createUserStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeClusterServiceConfigOutcome EmrClient::describeClusterServiceConfig(const DescribeClusterServiceConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10311,78 +6567,6 @@ EmrClient::DescribeClusterServiceConfigOutcomeCallable EmrClient::describeCluste return task->get_future(); } -EmrClient::ModifyFlowProjectClusterSettingOutcome EmrClient::modifyFlowProjectClusterSetting(const ModifyFlowProjectClusterSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyFlowProjectClusterSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyFlowProjectClusterSettingOutcome(ModifyFlowProjectClusterSettingResult(outcome.result())); - else - return ModifyFlowProjectClusterSettingOutcome(outcome.error()); -} - -void EmrClient::modifyFlowProjectClusterSettingAsync(const ModifyFlowProjectClusterSettingRequest& request, const ModifyFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyFlowProjectClusterSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::ModifyFlowProjectClusterSettingOutcomeCallable EmrClient::modifyFlowProjectClusterSettingCallable(const ModifyFlowProjectClusterSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyFlowProjectClusterSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::DeleteJobOutcome EmrClient::deleteJob(const DeleteJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteJobOutcome(DeleteJobResult(outcome.result())); - else - return DeleteJobOutcome(outcome.error()); -} - -void EmrClient::deleteJobAsync(const DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteJobOutcomeCallable EmrClient::deleteJobCallable(const DeleteJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::ModifyExecutionPlanClusterInfoOutcome EmrClient::modifyExecutionPlanClusterInfo(const ModifyExecutionPlanClusterInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10419,72 +6603,36 @@ EmrClient::ModifyExecutionPlanClusterInfoOutcomeCallable EmrClient::modifyExecut return task->get_future(); } -EmrClient::ModifyClusterNameOutcome EmrClient::modifyClusterName(const ModifyClusterNameRequest &request) const +EmrClient::ListUsersByConditionOutcome EmrClient::listUsersByCondition(const ListUsersByConditionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyClusterNameOutcome(endpointOutcome.error()); + return ListUsersByConditionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyClusterNameOutcome(ModifyClusterNameResult(outcome.result())); + return ListUsersByConditionOutcome(ListUsersByConditionResult(outcome.result())); else - return ModifyClusterNameOutcome(outcome.error()); + return ListUsersByConditionOutcome(outcome.error()); } -void EmrClient::modifyClusterNameAsync(const ModifyClusterNameRequest& request, const ModifyClusterNameAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listUsersByConditionAsync(const ListUsersByConditionRequest& request, const ListUsersByConditionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyClusterName(request), context); + handler(this, request, listUsersByCondition(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::ModifyClusterNameOutcomeCallable EmrClient::modifyClusterNameCallable(const ModifyClusterNameRequest &request) const +EmrClient::ListUsersByConditionOutcomeCallable EmrClient::listUsersByConditionCallable(const ListUsersByConditionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyClusterName(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -EmrClient::MetastoreListTablesOutcome EmrClient::metastoreListTables(const MetastoreListTablesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MetastoreListTablesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MetastoreListTablesOutcome(MetastoreListTablesResult(outcome.result())); - else - return MetastoreListTablesOutcome(outcome.error()); -} - -void EmrClient::metastoreListTablesAsync(const MetastoreListTablesRequest& request, const MetastoreListTablesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, metastoreListTables(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::MetastoreListTablesOutcomeCallable EmrClient::metastoreListTablesCallable(const MetastoreListTablesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->metastoreListTables(request); + return this->listUsersByCondition(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -10635,6 +6783,42 @@ EmrClient::ListRequiredServiceOutcomeCallable EmrClient::listRequiredServiceCall return task->get_future(); } +EmrClient::ListBackupPlansOutcome EmrClient::listBackupPlans(const ListBackupPlansRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBackupPlansOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBackupPlansOutcome(ListBackupPlansResult(outcome.result())); + else + return ListBackupPlansOutcome(outcome.error()); +} + +void EmrClient::listBackupPlansAsync(const ListBackupPlansRequest& request, const ListBackupPlansAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBackupPlans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListBackupPlansOutcomeCallable EmrClient::listBackupPlansCallable(const ListBackupPlansRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBackupPlans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::ListFlowProjectUserOutcome EmrClient::listFlowProjectUser(const ListFlowProjectUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10707,6 +6891,7242 @@ EmrClient::SuspendExecutionPlanSchedulerOutcomeCallable EmrClient::suspendExecut return task->get_future(); } +EmrClient::DeleteUserGroupOutcome EmrClient::deleteUserGroup(const DeleteUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserGroupOutcome(DeleteUserGroupResult(outcome.result())); + else + return DeleteUserGroupOutcome(outcome.error()); +} + +void EmrClient::deleteUserGroupAsync(const DeleteUserGroupRequest& request, const DeleteUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteUserGroupOutcomeCallable EmrClient::deleteUserGroupCallable(const DeleteUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteClusterHostGroupOutcome EmrClient::deleteClusterHostGroup(const DeleteClusterHostGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClusterHostGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClusterHostGroupOutcome(DeleteClusterHostGroupResult(outcome.result())); + else + return DeleteClusterHostGroupOutcome(outcome.error()); +} + +void EmrClient::deleteClusterHostGroupAsync(const DeleteClusterHostGroupRequest& request, const DeleteClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteClusterHostGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteClusterHostGroupOutcomeCallable EmrClient::deleteClusterHostGroupCallable(const DeleteClusterHostGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteClusterHostGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeDataSourceSchemaTableOutcome EmrClient::describeDataSourceSchemaTable(const DescribeDataSourceSchemaTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataSourceSchemaTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataSourceSchemaTableOutcome(DescribeDataSourceSchemaTableResult(outcome.result())); + else + return DescribeDataSourceSchemaTableOutcome(outcome.error()); +} + +void EmrClient::describeDataSourceSchemaTableAsync(const DescribeDataSourceSchemaTableRequest& request, const DescribeDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataSourceSchemaTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeDataSourceSchemaTableOutcomeCallable EmrClient::describeDataSourceSchemaTableCallable(const DescribeDataSourceSchemaTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataSourceSchemaTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::OperateExistsNodeClusterOutcome EmrClient::operateExistsNodeCluster(const OperateExistsNodeClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateExistsNodeClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateExistsNodeClusterOutcome(OperateExistsNodeClusterResult(outcome.result())); + else + return OperateExistsNodeClusterOutcome(outcome.error()); +} + +void EmrClient::operateExistsNodeClusterAsync(const OperateExistsNodeClusterRequest& request, const OperateExistsNodeClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateExistsNodeCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::OperateExistsNodeClusterOutcomeCallable EmrClient::operateExistsNodeClusterCallable(const OperateExistsNodeClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateExistsNodeCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeDataSourceCommandOutcome EmrClient::describeDataSourceCommand(const DescribeDataSourceCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataSourceCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataSourceCommandOutcome(DescribeDataSourceCommandResult(outcome.result())); + else + return DescribeDataSourceCommandOutcome(outcome.error()); +} + +void EmrClient::describeDataSourceCommandAsync(const DescribeDataSourceCommandRequest& request, const DescribeDataSourceCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataSourceCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeDataSourceCommandOutcomeCallable EmrClient::describeDataSourceCommandCallable(const DescribeDataSourceCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataSourceCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListUsersOutcome EmrClient::listUsers(const ListUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersOutcome(ListUsersResult(outcome.result())); + else + return ListUsersOutcome(outcome.error()); +} + +void EmrClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListUsersOutcomeCallable EmrClient::listUsersCallable(const ListUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListResourcePoolOutcome EmrClient::listResourcePool(const ListResourcePoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourcePoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourcePoolOutcome(ListResourcePoolResult(outcome.result())); + else + return ListResourcePoolOutcome(outcome.error()); +} + +void EmrClient::listResourcePoolAsync(const ListResourcePoolRequest& request, const ListResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourcePool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListResourcePoolOutcomeCallable EmrClient::listResourcePoolCallable(const ListResourcePoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourcePool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowClusterHostOutcome EmrClient::listFlowClusterHost(const ListFlowClusterHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowClusterHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowClusterHostOutcome(ListFlowClusterHostResult(outcome.result())); + else + return ListFlowClusterHostOutcome(outcome.error()); +} + +void EmrClient::listFlowClusterHostAsync(const ListFlowClusterHostRequest& request, const ListFlowClusterHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowClusterHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowClusterHostOutcomeCallable EmrClient::listFlowClusterHostCallable(const ListFlowClusterHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowClusterHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::KillFlowOutcome EmrClient::killFlow(const KillFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillFlowOutcome(KillFlowResult(outcome.result())); + else + return KillFlowOutcome(outcome.error()); +} + +void EmrClient::killFlowAsync(const KillFlowRequest& request, const KillFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::KillFlowOutcomeCallable EmrClient::killFlowCallable(const KillFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RunOpsCommandOutcome EmrClient::runOpsCommand(const RunOpsCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunOpsCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunOpsCommandOutcome(RunOpsCommandResult(outcome.result())); + else + return RunOpsCommandOutcome(outcome.error()); +} + +void EmrClient::runOpsCommandAsync(const RunOpsCommandRequest& request, const RunOpsCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runOpsCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RunOpsCommandOutcomeCallable EmrClient::runOpsCommandCallable(const RunOpsCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runOpsCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyExecutionPlanJobInfoOutcome EmrClient::modifyExecutionPlanJobInfo(const ModifyExecutionPlanJobInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExecutionPlanJobInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExecutionPlanJobInfoOutcome(ModifyExecutionPlanJobInfoResult(outcome.result())); + else + return ModifyExecutionPlanJobInfoOutcome(outcome.error()); +} + +void EmrClient::modifyExecutionPlanJobInfoAsync(const ModifyExecutionPlanJobInfoRequest& request, const ModifyExecutionPlanJobInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExecutionPlanJobInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyExecutionPlanJobInfoOutcomeCallable EmrClient::modifyExecutionPlanJobInfoCallable(const ModifyExecutionPlanJobInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExecutionPlanJobInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteClusterTemplateOutcome EmrClient::deleteClusterTemplate(const DeleteClusterTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClusterTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClusterTemplateOutcome(DeleteClusterTemplateResult(outcome.result())); + else + return DeleteClusterTemplateOutcome(outcome.error()); +} + +void EmrClient::deleteClusterTemplateAsync(const DeleteClusterTemplateRequest& request, const DeleteClusterTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteClusterTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteClusterTemplateOutcomeCallable EmrClient::deleteClusterTemplateCallable(const DeleteClusterTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteClusterTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListKafkaTopicStatisticsOutcome EmrClient::listKafkaTopicStatistics(const ListKafkaTopicStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListKafkaTopicStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListKafkaTopicStatisticsOutcome(ListKafkaTopicStatisticsResult(outcome.result())); + else + return ListKafkaTopicStatisticsOutcome(outcome.error()); +} + +void EmrClient::listKafkaTopicStatisticsAsync(const ListKafkaTopicStatisticsRequest& request, const ListKafkaTopicStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listKafkaTopicStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListKafkaTopicStatisticsOutcomeCallable EmrClient::listKafkaTopicStatisticsCallable(const ListKafkaTopicStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listKafkaTopicStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::QueryInfoByTokenOutcome EmrClient::queryInfoByToken(const QueryInfoByTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryInfoByTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryInfoByTokenOutcome(QueryInfoByTokenResult(outcome.result())); + else + return QueryInfoByTokenOutcome(outcome.error()); +} + +void EmrClient::queryInfoByTokenAsync(const QueryInfoByTokenRequest& request, const QueryInfoByTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryInfoByToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::QueryInfoByTokenOutcomeCallable EmrClient::queryInfoByTokenCallable(const QueryInfoByTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryInfoByToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListDataSourceSchemaTableOutcome EmrClient::listDataSourceSchemaTable(const ListDataSourceSchemaTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSourceSchemaTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSourceSchemaTableOutcome(ListDataSourceSchemaTableResult(outcome.result())); + else + return ListDataSourceSchemaTableOutcome(outcome.error()); +} + +void EmrClient::listDataSourceSchemaTableAsync(const ListDataSourceSchemaTableRequest& request, const ListDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataSourceSchemaTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListDataSourceSchemaTableOutcomeCallable EmrClient::listDataSourceSchemaTableCallable(const ListDataSourceSchemaTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataSourceSchemaTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateJobOutcome EmrClient::createJob(const CreateJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobOutcome(CreateJobResult(outcome.result())); + else + return CreateJobOutcome(outcome.error()); +} + +void EmrClient::createJobAsync(const CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateJobOutcomeCallable EmrClient::createJobCallable(const CreateJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetBackInfoOutcome EmrClient::getBackInfo(const GetBackInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBackInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBackInfoOutcome(GetBackInfoResult(outcome.result())); + else + return GetBackInfoOutcome(outcome.error()); +} + +void EmrClient::getBackInfoAsync(const GetBackInfoRequest& request, const GetBackInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBackInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetBackInfoOutcomeCallable EmrClient::getBackInfoCallable(const GetBackInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBackInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::AttachClusterForNoteOutcome EmrClient::attachClusterForNote(const AttachClusterForNoteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachClusterForNoteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachClusterForNoteOutcome(AttachClusterForNoteResult(outcome.result())); + else + return AttachClusterForNoteOutcome(outcome.error()); +} + +void EmrClient::attachClusterForNoteAsync(const AttachClusterForNoteRequest& request, const AttachClusterForNoteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachClusterForNote(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::AttachClusterForNoteOutcomeCallable EmrClient::attachClusterForNoteCallable(const AttachClusterForNoteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachClusterForNote(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListExecutionPlansOutcome EmrClient::listExecutionPlans(const ListExecutionPlansRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListExecutionPlansOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListExecutionPlansOutcome(ListExecutionPlansResult(outcome.result())); + else + return ListExecutionPlansOutcome(outcome.error()); +} + +void EmrClient::listExecutionPlansAsync(const ListExecutionPlansRequest& request, const ListExecutionPlansAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listExecutionPlans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListExecutionPlansOutcomeCallable EmrClient::listExecutionPlansCallable(const ListExecutionPlansRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listExecutionPlans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListJobMigrateInfoOutcome EmrClient::listJobMigrateInfo(const ListJobMigrateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobMigrateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobMigrateInfoOutcome(ListJobMigrateInfoResult(outcome.result())); + else + return ListJobMigrateInfoOutcome(outcome.error()); +} + +void EmrClient::listJobMigrateInfoAsync(const ListJobMigrateInfoRequest& request, const ListJobMigrateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobMigrateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListJobMigrateInfoOutcomeCallable EmrClient::listJobMigrateInfoCallable(const ListJobMigrateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobMigrateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CloneFlowOutcome EmrClient::cloneFlow(const CloneFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloneFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloneFlowOutcome(CloneFlowResult(outcome.result())); + else + return CloneFlowOutcome(outcome.error()); +} + +void EmrClient::cloneFlowAsync(const CloneFlowRequest& request, const CloneFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cloneFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CloneFlowOutcomeCallable EmrClient::cloneFlowCallable(const CloneFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cloneFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListEmrMainVersionOutcome EmrClient::listEmrMainVersion(const ListEmrMainVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEmrMainVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEmrMainVersionOutcome(ListEmrMainVersionResult(outcome.result())); + else + return ListEmrMainVersionOutcome(outcome.error()); +} + +void EmrClient::listEmrMainVersionAsync(const ListEmrMainVersionRequest& request, const ListEmrMainVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEmrMainVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListEmrMainVersionOutcomeCallable EmrClient::listEmrMainVersionCallable(const ListEmrMainVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEmrMainVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateClusterTemplateOutcome EmrClient::createClusterTemplate(const CreateClusterTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterTemplateOutcome(CreateClusterTemplateResult(outcome.result())); + else + return CreateClusterTemplateOutcome(outcome.error()); +} + +void EmrClient::createClusterTemplateAsync(const CreateClusterTemplateRequest& request, const CreateClusterTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createClusterTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateClusterTemplateOutcomeCallable EmrClient::createClusterTemplateCallable(const CreateClusterTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createClusterTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RestoreBackupOutcome EmrClient::restoreBackup(const RestoreBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestoreBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestoreBackupOutcome(RestoreBackupResult(outcome.result())); + else + return RestoreBackupOutcome(outcome.error()); +} + +void EmrClient::restoreBackupAsync(const RestoreBackupRequest& request, const RestoreBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restoreBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RestoreBackupOutcomeCallable EmrClient::restoreBackupCallable(const RestoreBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restoreBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListAlertContactsOutcome EmrClient::listAlertContacts(const ListAlertContactsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlertContactsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlertContactsOutcome(ListAlertContactsResult(outcome.result())); + else + return ListAlertContactsOutcome(outcome.error()); +} + +void EmrClient::listAlertContactsAsync(const ListAlertContactsRequest& request, const ListAlertContactsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlertContacts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListAlertContactsOutcomeCallable EmrClient::listAlertContactsCallable(const ListAlertContactsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlertContacts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListSupportedServiceNameForAdminOutcome EmrClient::listSupportedServiceNameForAdmin(const ListSupportedServiceNameForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSupportedServiceNameForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSupportedServiceNameForAdminOutcome(ListSupportedServiceNameForAdminResult(outcome.result())); + else + return ListSupportedServiceNameForAdminOutcome(outcome.error()); +} + +void EmrClient::listSupportedServiceNameForAdminAsync(const ListSupportedServiceNameForAdminRequest& request, const ListSupportedServiceNameForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSupportedServiceNameForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListSupportedServiceNameForAdminOutcomeCallable EmrClient::listSupportedServiceNameForAdminCallable(const ListSupportedServiceNameForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSupportedServiceNameForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ReassignKafkaOutcome EmrClient::reassignKafka(const ReassignKafkaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReassignKafkaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReassignKafkaOutcome(ReassignKafkaResult(outcome.result())); + else + return ReassignKafkaOutcome(outcome.error()); +} + +void EmrClient::reassignKafkaAsync(const ReassignKafkaRequest& request, const ReassignKafkaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reassignKafka(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ReassignKafkaOutcomeCallable EmrClient::reassignKafkaCallable(const ReassignKafkaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reassignKafka(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetHdfsCapacityStatisticInfoOutcome EmrClient::getHdfsCapacityStatisticInfo(const GetHdfsCapacityStatisticInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHdfsCapacityStatisticInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHdfsCapacityStatisticInfoOutcome(GetHdfsCapacityStatisticInfoResult(outcome.result())); + else + return GetHdfsCapacityStatisticInfoOutcome(outcome.error()); +} + +void EmrClient::getHdfsCapacityStatisticInfoAsync(const GetHdfsCapacityStatisticInfoRequest& request, const GetHdfsCapacityStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHdfsCapacityStatisticInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetHdfsCapacityStatisticInfoOutcomeCallable EmrClient::getHdfsCapacityStatisticInfoCallable(const GetHdfsCapacityStatisticInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHdfsCapacityStatisticInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterServiceConfigTagForAdminOutcome EmrClient::describeClusterServiceConfigTagForAdmin(const DescribeClusterServiceConfigTagForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterServiceConfigTagForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterServiceConfigTagForAdminOutcome(DescribeClusterServiceConfigTagForAdminResult(outcome.result())); + else + return DescribeClusterServiceConfigTagForAdminOutcome(outcome.error()); +} + +void EmrClient::describeClusterServiceConfigTagForAdminAsync(const DescribeClusterServiceConfigTagForAdminRequest& request, const DescribeClusterServiceConfigTagForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterServiceConfigTagForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterServiceConfigTagForAdminOutcomeCallable EmrClient::describeClusterServiceConfigTagForAdminCallable(const DescribeClusterServiceConfigTagForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterServiceConfigTagForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ResumeExecutionPlanSchedulerOutcome EmrClient::resumeExecutionPlanScheduler(const ResumeExecutionPlanSchedulerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeExecutionPlanSchedulerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeExecutionPlanSchedulerOutcome(ResumeExecutionPlanSchedulerResult(outcome.result())); + else + return ResumeExecutionPlanSchedulerOutcome(outcome.error()); +} + +void EmrClient::resumeExecutionPlanSchedulerAsync(const ResumeExecutionPlanSchedulerRequest& request, const ResumeExecutionPlanSchedulerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeExecutionPlanScheduler(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ResumeExecutionPlanSchedulerOutcomeCallable EmrClient::resumeExecutionPlanSchedulerCallable(const ResumeExecutionPlanSchedulerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeExecutionPlanScheduler(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListJobsOutcome EmrClient::listJobs(const ListJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobsOutcome(ListJobsResult(outcome.result())); + else + return ListJobsOutcome(outcome.error()); +} + +void EmrClient::listJobsAsync(const ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListJobsOutcomeCallable EmrClient::listJobsCallable(const ListJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListEmrAvailableResourceOutcome EmrClient::listEmrAvailableResource(const ListEmrAvailableResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEmrAvailableResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEmrAvailableResourceOutcome(ListEmrAvailableResourceResult(outcome.result())); + else + return ListEmrAvailableResourceOutcome(outcome.error()); +} + +void EmrClient::listEmrAvailableResourceAsync(const ListEmrAvailableResourceRequest& request, const ListEmrAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEmrAvailableResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListEmrAvailableResourceOutcomeCallable EmrClient::listEmrAvailableResourceCallable(const ListEmrAvailableResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEmrAvailableResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyHpHostOutcome EmrClient::modifyHpHost(const ModifyHpHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyHpHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyHpHostOutcome(ModifyHpHostResult(outcome.result())); + else + return ModifyHpHostOutcome(outcome.error()); +} + +void EmrClient::modifyHpHostAsync(const ModifyHpHostRequest& request, const ModifyHpHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyHpHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyHpHostOutcomeCallable EmrClient::modifyHpHostCallable(const ModifyHpHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyHpHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ReleaseETLJobOutcome EmrClient::releaseETLJob(const ReleaseETLJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseETLJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseETLJobOutcome(ReleaseETLJobResult(outcome.result())); + else + return ReleaseETLJobOutcome(outcome.error()); +} + +void EmrClient::releaseETLJobAsync(const ReleaseETLJobRequest& request, const ReleaseETLJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseETLJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ReleaseETLJobOutcomeCallable EmrClient::releaseETLJobCallable(const ReleaseETLJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseETLJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterServiceConfigTagOutcome EmrClient::describeClusterServiceConfigTag(const DescribeClusterServiceConfigTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterServiceConfigTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterServiceConfigTagOutcome(DescribeClusterServiceConfigTagResult(outcome.result())); + else + return DescribeClusterServiceConfigTagOutcome(outcome.error()); +} + +void EmrClient::describeClusterServiceConfigTagAsync(const DescribeClusterServiceConfigTagRequest& request, const DescribeClusterServiceConfigTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterServiceConfigTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterServiceConfigTagOutcomeCallable EmrClient::describeClusterServiceConfigTagCallable(const DescribeClusterServiceConfigTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterServiceConfigTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RunClusterServiceActionOutcome EmrClient::runClusterServiceAction(const RunClusterServiceActionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunClusterServiceActionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunClusterServiceActionOutcome(RunClusterServiceActionResult(outcome.result())); + else + return RunClusterServiceActionOutcome(outcome.error()); +} + +void EmrClient::runClusterServiceActionAsync(const RunClusterServiceActionRequest& request, const RunClusterServiceActionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runClusterServiceAction(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RunClusterServiceActionOutcomeCallable EmrClient::runClusterServiceActionCallable(const RunClusterServiceActionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runClusterServiceAction(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::SuspendFlowOutcome EmrClient::suspendFlow(const SuspendFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SuspendFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SuspendFlowOutcome(SuspendFlowResult(outcome.result())); + else + return SuspendFlowOutcome(outcome.error()); +} + +void EmrClient::suspendFlowAsync(const SuspendFlowRequest& request, const SuspendFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, suspendFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::SuspendFlowOutcomeCallable EmrClient::suspendFlowCallable(const SuspendFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->suspendFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterSupportServiceOutcome EmrClient::listClusterSupportService(const ListClusterSupportServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterSupportServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterSupportServiceOutcome(ListClusterSupportServiceResult(outcome.result())); + else + return ListClusterSupportServiceOutcome(outcome.error()); +} + +void EmrClient::listClusterSupportServiceAsync(const ListClusterSupportServiceRequest& request, const ListClusterSupportServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterSupportService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterSupportServiceOutcomeCallable EmrClient::listClusterSupportServiceCallable(const ListClusterSupportServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterSupportService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::AuthorizeSecurityGroupOutcome EmrClient::authorizeSecurityGroup(const AuthorizeSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AuthorizeSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AuthorizeSecurityGroupOutcome(AuthorizeSecurityGroupResult(outcome.result())); + else + return AuthorizeSecurityGroupOutcome(outcome.error()); +} + +void EmrClient::authorizeSecurityGroupAsync(const AuthorizeSecurityGroupRequest& request, const AuthorizeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, authorizeSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::AuthorizeSecurityGroupOutcomeCallable EmrClient::authorizeSecurityGroupCallable(const AuthorizeSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->authorizeSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyClusterTemplateOutcome EmrClient::modifyClusterTemplate(const ModifyClusterTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterTemplateOutcome(ModifyClusterTemplateResult(outcome.result())); + else + return ModifyClusterTemplateOutcome(outcome.error()); +} + +void EmrClient::modifyClusterTemplateAsync(const ModifyClusterTemplateRequest& request, const ModifyClusterTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClusterTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyClusterTemplateOutcomeCallable EmrClient::modifyClusterTemplateCallable(const ModifyClusterTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClusterTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateClusterWithHostPoolOutcome EmrClient::createClusterWithHostPool(const CreateClusterWithHostPoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterWithHostPoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterWithHostPoolOutcome(CreateClusterWithHostPoolResult(outcome.result())); + else + return CreateClusterWithHostPoolOutcome(outcome.error()); +} + +void EmrClient::createClusterWithHostPoolAsync(const CreateClusterWithHostPoolRequest& request, const CreateClusterWithHostPoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createClusterWithHostPool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateClusterWithHostPoolOutcomeCallable EmrClient::createClusterWithHostPoolCallable(const CreateClusterWithHostPoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createClusterWithHostPool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ContextQueryLogOutcome EmrClient::contextQueryLog(const ContextQueryLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ContextQueryLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ContextQueryLogOutcome(ContextQueryLogResult(outcome.result())); + else + return ContextQueryLogOutcome(outcome.error()); +} + +void EmrClient::contextQueryLogAsync(const ContextQueryLogRequest& request, const ContextQueryLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, contextQueryLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ContextQueryLogOutcomeCallable EmrClient::contextQueryLogCallable(const ContextQueryLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->contextQueryLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterOperationHostOutcome EmrClient::listClusterOperationHost(const ListClusterOperationHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterOperationHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterOperationHostOutcome(ListClusterOperationHostResult(outcome.result())); + else + return ListClusterOperationHostOutcome(outcome.error()); +} + +void EmrClient::listClusterOperationHostAsync(const ListClusterOperationHostRequest& request, const ListClusterOperationHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterOperationHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterOperationHostOutcomeCallable EmrClient::listClusterOperationHostCallable(const ListClusterOperationHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterOperationHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListScalingRuleOutcome EmrClient::listScalingRule(const ListScalingRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScalingRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScalingRuleOutcome(ListScalingRuleResult(outcome.result())); + else + return ListScalingRuleOutcome(outcome.error()); +} + +void EmrClient::listScalingRuleAsync(const ListScalingRuleRequest& request, const ListScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScalingRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListScalingRuleOutcomeCallable EmrClient::listScalingRuleCallable(const ListScalingRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScalingRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteFlowOutcome EmrClient::deleteFlow(const DeleteFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowOutcome(DeleteFlowResult(outcome.result())); + else + return DeleteFlowOutcome(outcome.error()); +} + +void EmrClient::deleteFlowAsync(const DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteFlowOutcomeCallable EmrClient::deleteFlowCallable(const DeleteFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteDataSourceOutcome EmrClient::deleteDataSource(const DeleteDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataSourceOutcome(DeleteDataSourceResult(outcome.result())); + else + return DeleteDataSourceOutcome(outcome.error()); +} + +void EmrClient::deleteDataSourceAsync(const DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteDataSourceOutcomeCallable EmrClient::deleteDataSourceCallable(const DeleteDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RunETLJobOutcome EmrClient::runETLJob(const RunETLJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunETLJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunETLJobOutcome(RunETLJobResult(outcome.result())); + else + return RunETLJobOutcome(outcome.error()); +} + +void EmrClient::runETLJobAsync(const RunETLJobRequest& request, const RunETLJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runETLJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RunETLJobOutcomeCallable EmrClient::runETLJobCallable(const RunETLJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runETLJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowProjectOutcome EmrClient::listFlowProject(const ListFlowProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowProjectOutcome(ListFlowProjectResult(outcome.result())); + else + return ListFlowProjectOutcome(outcome.error()); +} + +void EmrClient::listFlowProjectAsync(const ListFlowProjectRequest& request, const ListFlowProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowProjectOutcomeCallable EmrClient::listFlowProjectCallable(const ListFlowProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterServiceComponentHealthInfoOutcome EmrClient::listClusterServiceComponentHealthInfo(const ListClusterServiceComponentHealthInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterServiceComponentHealthInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterServiceComponentHealthInfoOutcome(ListClusterServiceComponentHealthInfoResult(outcome.result())); + else + return ListClusterServiceComponentHealthInfoOutcome(outcome.error()); +} + +void EmrClient::listClusterServiceComponentHealthInfoAsync(const ListClusterServiceComponentHealthInfoRequest& request, const ListClusterServiceComponentHealthInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterServiceComponentHealthInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterServiceComponentHealthInfoOutcomeCallable EmrClient::listClusterServiceComponentHealthInfoCallable(const ListClusterServiceComponentHealthInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterServiceComponentHealthInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateHostPoolOutcome EmrClient::createHostPool(const CreateHostPoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHostPoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHostPoolOutcome(CreateHostPoolResult(outcome.result())); + else + return CreateHostPoolOutcome(outcome.error()); +} + +void EmrClient::createHostPoolAsync(const CreateHostPoolRequest& request, const CreateHostPoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHostPool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateHostPoolOutcomeCallable EmrClient::createHostPoolCallable(const CreateHostPoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHostPool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyAlertDingDingGroupOutcome EmrClient::modifyAlertDingDingGroup(const ModifyAlertDingDingGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAlertDingDingGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAlertDingDingGroupOutcome(ModifyAlertDingDingGroupResult(outcome.result())); + else + return ModifyAlertDingDingGroupOutcome(outcome.error()); +} + +void EmrClient::modifyAlertDingDingGroupAsync(const ModifyAlertDingDingGroupRequest& request, const ModifyAlertDingDingGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAlertDingDingGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyAlertDingDingGroupOutcomeCallable EmrClient::modifyAlertDingDingGroupCallable(const ModifyAlertDingDingGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAlertDingDingGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowJobHistoryOutcome EmrClient::listFlowJobHistory(const ListFlowJobHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowJobHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowJobHistoryOutcome(ListFlowJobHistoryResult(outcome.result())); + else + return ListFlowJobHistoryOutcome(outcome.error()); +} + +void EmrClient::listFlowJobHistoryAsync(const ListFlowJobHistoryRequest& request, const ListFlowJobHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowJobHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowJobHistoryOutcomeCallable EmrClient::listFlowJobHistoryCallable(const ListFlowJobHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowJobHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateETLJobOutcome EmrClient::createETLJob(const CreateETLJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateETLJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateETLJobOutcome(CreateETLJobResult(outcome.result())); + else + return CreateETLJobOutcome(outcome.error()); +} + +void EmrClient::createETLJobAsync(const CreateETLJobRequest& request, const CreateETLJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createETLJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateETLJobOutcomeCallable EmrClient::createETLJobCallable(const CreateETLJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createETLJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateClusterScriptOutcome EmrClient::createClusterScript(const CreateClusterScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterScriptOutcome(CreateClusterScriptResult(outcome.result())); + else + return CreateClusterScriptOutcome(outcome.error()); +} + +void EmrClient::createClusterScriptAsync(const CreateClusterScriptRequest& request, const CreateClusterScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createClusterScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateClusterScriptOutcomeCallable EmrClient::createClusterScriptCallable(const CreateClusterScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createClusterScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::SubmitFlowOutcome EmrClient::submitFlow(const SubmitFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitFlowOutcome(SubmitFlowResult(outcome.result())); + else + return SubmitFlowOutcome(outcome.error()); +} + +void EmrClient::submitFlowAsync(const SubmitFlowRequest& request, const SubmitFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::SubmitFlowOutcomeCallable EmrClient::submitFlowCallable(const SubmitFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ResumeFlowOutcome EmrClient::resumeFlow(const ResumeFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeFlowOutcome(ResumeFlowResult(outcome.result())); + else + return ResumeFlowOutcome(outcome.error()); +} + +void EmrClient::resumeFlowAsync(const ResumeFlowRequest& request, const ResumeFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ResumeFlowOutcomeCallable EmrClient::resumeFlowCallable(const ResumeFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteFlowProjectByIdOutcome EmrClient::deleteFlowProjectById(const DeleteFlowProjectByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowProjectByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowProjectByIdOutcome(DeleteFlowProjectByIdResult(outcome.result())); + else + return DeleteFlowProjectByIdOutcome(outcome.error()); +} + +void EmrClient::deleteFlowProjectByIdAsync(const DeleteFlowProjectByIdRequest& request, const DeleteFlowProjectByIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowProjectById(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteFlowProjectByIdOutcomeCallable EmrClient::deleteFlowProjectByIdCallable(const DeleteFlowProjectByIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowProjectById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::OfflineKafkaBrokerOutcome EmrClient::offlineKafkaBroker(const OfflineKafkaBrokerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OfflineKafkaBrokerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OfflineKafkaBrokerOutcome(OfflineKafkaBrokerResult(outcome.result())); + else + return OfflineKafkaBrokerOutcome(outcome.error()); +} + +void EmrClient::offlineKafkaBrokerAsync(const OfflineKafkaBrokerRequest& request, const OfflineKafkaBrokerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, offlineKafkaBroker(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::OfflineKafkaBrokerOutcomeCallable EmrClient::offlineKafkaBrokerCallable(const OfflineKafkaBrokerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->offlineKafkaBroker(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeParagraphOutcome EmrClient::describeParagraph(const DescribeParagraphRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeParagraphOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeParagraphOutcome(DescribeParagraphResult(outcome.result())); + else + return DescribeParagraphOutcome(outcome.error()); +} + +void EmrClient::describeParagraphAsync(const DescribeParagraphRequest& request, const DescribeParagraphAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeParagraph(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeParagraphOutcomeCallable EmrClient::describeParagraphCallable(const DescribeParagraphRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeParagraph(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreCreateDatabaseOutcome EmrClient::metastoreCreateDatabase(const MetastoreCreateDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreCreateDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreCreateDatabaseOutcome(MetastoreCreateDatabaseResult(outcome.result())); + else + return MetastoreCreateDatabaseOutcome(outcome.error()); +} + +void EmrClient::metastoreCreateDatabaseAsync(const MetastoreCreateDatabaseRequest& request, const MetastoreCreateDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreCreateDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreCreateDatabaseOutcomeCallable EmrClient::metastoreCreateDatabaseCallable(const MetastoreCreateDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreCreateDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteFlowJobOutcome EmrClient::deleteFlowJob(const DeleteFlowJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowJobOutcome(DeleteFlowJobResult(outcome.result())); + else + return DeleteFlowJobOutcome(outcome.error()); +} + +void EmrClient::deleteFlowJobAsync(const DeleteFlowJobRequest& request, const DeleteFlowJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteFlowJobOutcomeCallable EmrClient::deleteFlowJobCallable(const DeleteFlowJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RefreshClusterResourcePoolOutcome EmrClient::refreshClusterResourcePool(const RefreshClusterResourcePoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshClusterResourcePoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshClusterResourcePoolOutcome(RefreshClusterResourcePoolResult(outcome.result())); + else + return RefreshClusterResourcePoolOutcome(outcome.error()); +} + +void EmrClient::refreshClusterResourcePoolAsync(const RefreshClusterResourcePoolRequest& request, const RefreshClusterResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshClusterResourcePool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RefreshClusterResourcePoolOutcomeCallable EmrClient::refreshClusterResourcePoolCallable(const RefreshClusterResourcePoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshClusterResourcePool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::UpdateKafkaReassignParamOutcome EmrClient::updateKafkaReassignParam(const UpdateKafkaReassignParamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateKafkaReassignParamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateKafkaReassignParamOutcome(UpdateKafkaReassignParamResult(outcome.result())); + else + return UpdateKafkaReassignParamOutcome(outcome.error()); +} + +void EmrClient::updateKafkaReassignParamAsync(const UpdateKafkaReassignParamRequest& request, const UpdateKafkaReassignParamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateKafkaReassignParam(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::UpdateKafkaReassignParamOutcomeCallable EmrClient::updateKafkaReassignParamCallable(const UpdateKafkaReassignParamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateKafkaReassignParam(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyJobOutcome EmrClient::modifyJob(const ModifyJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyJobOutcome(ModifyJobResult(outcome.result())); + else + return ModifyJobOutcome(outcome.error()); +} + +void EmrClient::modifyJobAsync(const ModifyJobRequest& request, const ModifyJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyJobOutcomeCallable EmrClient::modifyJobCallable(const ModifyJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeFlowJobOutcome EmrClient::describeFlowJob(const DescribeFlowJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFlowJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFlowJobOutcome(DescribeFlowJobResult(outcome.result())); + else + return DescribeFlowJobOutcome(outcome.error()); +} + +void EmrClient::describeFlowJobAsync(const DescribeFlowJobRequest& request, const DescribeFlowJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFlowJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeFlowJobOutcomeCallable EmrClient::describeFlowJobCallable(const DescribeFlowJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFlowJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetMetadataTypeListOutcome EmrClient::getMetadataTypeList(const GetMetadataTypeListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMetadataTypeListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMetadataTypeListOutcome(GetMetadataTypeListResult(outcome.result())); + else + return GetMetadataTypeListOutcome(outcome.error()); +} + +void EmrClient::getMetadataTypeListAsync(const GetMetadataTypeListRequest& request, const GetMetadataTypeListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMetadataTypeList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetMetadataTypeListOutcomeCallable EmrClient::getMetadataTypeListCallable(const GetMetadataTypeListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMetadataTypeList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreRetryTaskOutcome EmrClient::metastoreRetryTask(const MetastoreRetryTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreRetryTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreRetryTaskOutcome(MetastoreRetryTaskResult(outcome.result())); + else + return MetastoreRetryTaskOutcome(outcome.error()); +} + +void EmrClient::metastoreRetryTaskAsync(const MetastoreRetryTaskRequest& request, const MetastoreRetryTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreRetryTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreRetryTaskOutcomeCallable EmrClient::metastoreRetryTaskCallable(const MetastoreRetryTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreRetryTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RerunFlowOutcome EmrClient::rerunFlow(const RerunFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RerunFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RerunFlowOutcome(RerunFlowResult(outcome.result())); + else + return RerunFlowOutcome(outcome.error()); +} + +void EmrClient::rerunFlowAsync(const RerunFlowRequest& request, const RerunFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rerunFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RerunFlowOutcomeCallable EmrClient::rerunFlowCallable(const RerunFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rerunFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateBackupOutcome EmrClient::createBackup(const CreateBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBackupOutcome(CreateBackupResult(outcome.result())); + else + return CreateBackupOutcome(outcome.error()); +} + +void EmrClient::createBackupAsync(const CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateBackupOutcomeCallable EmrClient::createBackupCallable(const CreateBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListKafkaReassignOutcome EmrClient::listKafkaReassign(const ListKafkaReassignRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListKafkaReassignOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListKafkaReassignOutcome(ListKafkaReassignResult(outcome.result())); + else + return ListKafkaReassignOutcome(outcome.error()); +} + +void EmrClient::listKafkaReassignAsync(const ListKafkaReassignRequest& request, const ListKafkaReassignAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listKafkaReassign(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListKafkaReassignOutcomeCallable EmrClient::listKafkaReassignCallable(const ListKafkaReassignRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listKafkaReassign(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterV2Outcome EmrClient::describeClusterV2(const DescribeClusterV2Request &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterV2Outcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterV2Outcome(DescribeClusterV2Result(outcome.result())); + else + return DescribeClusterV2Outcome(outcome.error()); +} + +void EmrClient::describeClusterV2Async(const DescribeClusterV2Request& request, const DescribeClusterV2AsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterV2(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterV2OutcomeCallable EmrClient::describeClusterV2Callable(const DescribeClusterV2Request &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterV2(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ResizeClusterWithHostPoolOutcome EmrClient::resizeClusterWithHostPool(const ResizeClusterWithHostPoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResizeClusterWithHostPoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResizeClusterWithHostPoolOutcome(ResizeClusterWithHostPoolResult(outcome.result())); + else + return ResizeClusterWithHostPoolOutcome(outcome.error()); +} + +void EmrClient::resizeClusterWithHostPoolAsync(const ResizeClusterWithHostPoolRequest& request, const ResizeClusterWithHostPoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resizeClusterWithHostPool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ResizeClusterWithHostPoolOutcomeCallable EmrClient::resizeClusterWithHostPoolCallable(const ResizeClusterWithHostPoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resizeClusterWithHostPool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateFlowProjectClusterSettingOutcome EmrClient::createFlowProjectClusterSetting(const CreateFlowProjectClusterSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowProjectClusterSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowProjectClusterSettingOutcome(CreateFlowProjectClusterSettingResult(outcome.result())); + else + return CreateFlowProjectClusterSettingOutcome(outcome.error()); +} + +void EmrClient::createFlowProjectClusterSettingAsync(const CreateFlowProjectClusterSettingRequest& request, const CreateFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowProjectClusterSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateFlowProjectClusterSettingOutcomeCallable EmrClient::createFlowProjectClusterSettingCallable(const CreateFlowProjectClusterSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowProjectClusterSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterScriptsOutcome EmrClient::listClusterScripts(const ListClusterScriptsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterScriptsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterScriptsOutcome(ListClusterScriptsResult(outcome.result())); + else + return ListClusterScriptsOutcome(outcome.error()); +} + +void EmrClient::listClusterScriptsAsync(const ListClusterScriptsRequest& request, const ListClusterScriptsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterScripts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterScriptsOutcomeCallable EmrClient::listClusterScriptsCallable(const ListClusterScriptsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterScripts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeFlowInstanceOutcome EmrClient::describeFlowInstance(const DescribeFlowInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFlowInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFlowInstanceOutcome(DescribeFlowInstanceResult(outcome.result())); + else + return DescribeFlowInstanceOutcome(outcome.error()); +} + +void EmrClient::describeFlowInstanceAsync(const DescribeFlowInstanceRequest& request, const DescribeFlowInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFlowInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeFlowInstanceOutcomeCallable EmrClient::describeFlowInstanceCallable(const DescribeFlowInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFlowInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteUserResourceRoleOutcome EmrClient::deleteUserResourceRole(const DeleteUserResourceRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserResourceRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserResourceRoleOutcome(DeleteUserResourceRoleResult(outcome.result())); + else + return DeleteUserResourceRoleOutcome(outcome.error()); +} + +void EmrClient::deleteUserResourceRoleAsync(const DeleteUserResourceRoleRequest& request, const DeleteUserResourceRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUserResourceRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteUserResourceRoleOutcomeCallable EmrClient::deleteUserResourceRoleCallable(const DeleteUserResourceRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUserResourceRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListETLJobReleaseOutcome EmrClient::listETLJobRelease(const ListETLJobReleaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListETLJobReleaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListETLJobReleaseOutcome(ListETLJobReleaseResult(outcome.result())); + else + return ListETLJobReleaseOutcome(outcome.error()); +} + +void EmrClient::listETLJobReleaseAsync(const ListETLJobReleaseRequest& request, const ListETLJobReleaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listETLJobRelease(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListETLJobReleaseOutcomeCallable EmrClient::listETLJobReleaseCallable(const ListETLJobReleaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listETLJobRelease(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateAlertContactOutcome EmrClient::createAlertContact(const CreateAlertContactRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAlertContactOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAlertContactOutcome(CreateAlertContactResult(outcome.result())); + else + return CreateAlertContactOutcome(outcome.error()); +} + +void EmrClient::createAlertContactAsync(const CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAlertContact(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateAlertContactOutcomeCallable EmrClient::createAlertContactCallable(const CreateAlertContactRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAlertContact(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreModifyDataResourceOutcome EmrClient::metastoreModifyDataResource(const MetastoreModifyDataResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreModifyDataResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreModifyDataResourceOutcome(MetastoreModifyDataResourceResult(outcome.result())); + else + return MetastoreModifyDataResourceOutcome(outcome.error()); +} + +void EmrClient::metastoreModifyDataResourceAsync(const MetastoreModifyDataResourceRequest& request, const MetastoreModifyDataResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreModifyDataResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreModifyDataResourceOutcomeCallable EmrClient::metastoreModifyDataResourceCallable(const MetastoreModifyDataResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreModifyDataResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListExecutePlanMigrateInfoOutcome EmrClient::listExecutePlanMigrateInfo(const ListExecutePlanMigrateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListExecutePlanMigrateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListExecutePlanMigrateInfoOutcome(ListExecutePlanMigrateInfoResult(outcome.result())); + else + return ListExecutePlanMigrateInfoOutcome(outcome.error()); +} + +void EmrClient::listExecutePlanMigrateInfoAsync(const ListExecutePlanMigrateInfoRequest& request, const ListExecutePlanMigrateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listExecutePlanMigrateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListExecutePlanMigrateInfoOutcomeCallable EmrClient::listExecutePlanMigrateInfoCallable(const ListExecutePlanMigrateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listExecutePlanMigrateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ResumeExecutionPlanInstanceOutcome EmrClient::resumeExecutionPlanInstance(const ResumeExecutionPlanInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeExecutionPlanInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeExecutionPlanInstanceOutcome(ResumeExecutionPlanInstanceResult(outcome.result())); + else + return ResumeExecutionPlanInstanceOutcome(outcome.error()); +} + +void EmrClient::resumeExecutionPlanInstanceAsync(const ResumeExecutionPlanInstanceRequest& request, const ResumeExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeExecutionPlanInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ResumeExecutionPlanInstanceOutcomeCallable EmrClient::resumeExecutionPlanInstanceCallable(const ResumeExecutionPlanInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeExecutionPlanInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateParagraphOutcome EmrClient::createParagraph(const CreateParagraphRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateParagraphOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateParagraphOutcome(CreateParagraphResult(outcome.result())); + else + return CreateParagraphOutcome(outcome.error()); +} + +void EmrClient::createParagraphAsync(const CreateParagraphRequest& request, const CreateParagraphAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createParagraph(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateParagraphOutcomeCallable EmrClient::createParagraphCallable(const CreateParagraphRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createParagraph(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetOpsCommandResultOnceOutcome EmrClient::getOpsCommandResultOnce(const GetOpsCommandResultOnceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOpsCommandResultOnceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOpsCommandResultOnceOutcome(GetOpsCommandResultOnceResult(outcome.result())); + else + return GetOpsCommandResultOnceOutcome(outcome.error()); +} + +void EmrClient::getOpsCommandResultOnceAsync(const GetOpsCommandResultOnceRequest& request, const GetOpsCommandResultOnceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOpsCommandResultOnce(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetOpsCommandResultOnceOutcomeCallable EmrClient::getOpsCommandResultOnceCallable(const GetOpsCommandResultOnceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOpsCommandResultOnce(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::AddHpHostOutcome EmrClient::addHpHost(const AddHpHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddHpHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddHpHostOutcome(AddHpHostResult(outcome.result())); + else + return AddHpHostOutcome(outcome.error()); +} + +void EmrClient::addHpHostAsync(const AddHpHostRequest& request, const AddHpHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addHpHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::AddHpHostOutcomeCallable EmrClient::addHpHostCallable(const AddHpHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addHpHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterServiceConfigHistoryForAdminOutcome EmrClient::listClusterServiceConfigHistoryForAdmin(const ListClusterServiceConfigHistoryForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterServiceConfigHistoryForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterServiceConfigHistoryForAdminOutcome(ListClusterServiceConfigHistoryForAdminResult(outcome.result())); + else + return ListClusterServiceConfigHistoryForAdminOutcome(outcome.error()); +} + +void EmrClient::listClusterServiceConfigHistoryForAdminAsync(const ListClusterServiceConfigHistoryForAdminRequest& request, const ListClusterServiceConfigHistoryForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterServiceConfigHistoryForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterServiceConfigHistoryForAdminOutcomeCallable EmrClient::listClusterServiceConfigHistoryForAdminCallable(const ListClusterServiceConfigHistoryForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterServiceConfigHistoryForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetJobInputStatisticInfoOutcome EmrClient::getJobInputStatisticInfo(const GetJobInputStatisticInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobInputStatisticInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobInputStatisticInfoOutcome(GetJobInputStatisticInfoResult(outcome.result())); + else + return GetJobInputStatisticInfoOutcome(outcome.error()); +} + +void EmrClient::getJobInputStatisticInfoAsync(const GetJobInputStatisticInfoRequest& request, const GetJobInputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobInputStatisticInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetJobInputStatisticInfoOutcomeCallable EmrClient::getJobInputStatisticInfoCallable(const GetJobInputStatisticInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobInputStatisticInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteFlowProjectUserOutcome EmrClient::deleteFlowProjectUser(const DeleteFlowProjectUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowProjectUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowProjectUserOutcome(DeleteFlowProjectUserResult(outcome.result())); + else + return DeleteFlowProjectUserOutcome(outcome.error()); +} + +void EmrClient::deleteFlowProjectUserAsync(const DeleteFlowProjectUserRequest& request, const DeleteFlowProjectUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowProjectUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteFlowProjectUserOutcomeCallable EmrClient::deleteFlowProjectUserCallable(const DeleteFlowProjectUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowProjectUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListDependedServiceOutcome EmrClient::listDependedService(const ListDependedServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDependedServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDependedServiceOutcome(ListDependedServiceResult(outcome.result())); + else + return ListDependedServiceOutcome(outcome.error()); +} + +void EmrClient::listDependedServiceAsync(const ListDependedServiceRequest& request, const ListDependedServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDependedService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListDependedServiceOutcomeCallable EmrClient::listDependedServiceCallable(const ListDependedServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDependedService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteAlertContactsOutcome EmrClient::deleteAlertContacts(const DeleteAlertContactsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAlertContactsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAlertContactsOutcome(DeleteAlertContactsResult(outcome.result())); + else + return DeleteAlertContactsOutcome(outcome.error()); +} + +void EmrClient::deleteAlertContactsAsync(const DeleteAlertContactsRequest& request, const DeleteAlertContactsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAlertContacts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteAlertContactsOutcomeCallable EmrClient::deleteAlertContactsCallable(const DeleteAlertContactsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAlertContacts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateClusterV2Outcome EmrClient::createClusterV2(const CreateClusterV2Request &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterV2Outcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterV2Outcome(CreateClusterV2Result(outcome.result())); + else + return CreateClusterV2Outcome(outcome.error()); +} + +void EmrClient::createClusterV2Async(const CreateClusterV2Request& request, const CreateClusterV2AsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createClusterV2(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateClusterV2OutcomeCallable EmrClient::createClusterV2Callable(const CreateClusterV2Request &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createClusterV2(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::PlanComponentTopoOutcome EmrClient::planComponentTopo(const PlanComponentTopoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PlanComponentTopoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PlanComponentTopoOutcome(PlanComponentTopoResult(outcome.result())); + else + return PlanComponentTopoOutcome(outcome.error()); +} + +void EmrClient::planComponentTopoAsync(const PlanComponentTopoRequest& request, const PlanComponentTopoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, planComponentTopo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::PlanComponentTopoOutcomeCallable EmrClient::planComponentTopoCallable(const PlanComponentTopoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->planComponentTopo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterHostOutcome EmrClient::listClusterHost(const ListClusterHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterHostOutcome(ListClusterHostResult(outcome.result())); + else + return ListClusterHostOutcome(outcome.error()); +} + +void EmrClient::listClusterHostAsync(const ListClusterHostRequest& request, const ListClusterHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterHostOutcomeCallable EmrClient::listClusterHostCallable(const ListClusterHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterServiceOutcome EmrClient::describeClusterService(const DescribeClusterServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterServiceOutcome(DescribeClusterServiceResult(outcome.result())); + else + return DescribeClusterServiceOutcome(outcome.error()); +} + +void EmrClient::describeClusterServiceAsync(const DescribeClusterServiceRequest& request, const DescribeClusterServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterServiceOutcomeCallable EmrClient::describeClusterServiceCallable(const DescribeClusterServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RenderResourcePoolXmlForAdminOutcome EmrClient::renderResourcePoolXmlForAdmin(const RenderResourcePoolXmlForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenderResourcePoolXmlForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenderResourcePoolXmlForAdminOutcome(RenderResourcePoolXmlForAdminResult(outcome.result())); + else + return RenderResourcePoolXmlForAdminOutcome(outcome.error()); +} + +void EmrClient::renderResourcePoolXmlForAdminAsync(const RenderResourcePoolXmlForAdminRequest& request, const RenderResourcePoolXmlForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renderResourcePoolXmlForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RenderResourcePoolXmlForAdminOutcomeCallable EmrClient::renderResourcePoolXmlForAdminCallable(const RenderResourcePoolXmlForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renderResourcePoolXmlForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListApmApplicationOutcome EmrClient::listApmApplication(const ListApmApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApmApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApmApplicationOutcome(ListApmApplicationResult(outcome.result())); + else + return ListApmApplicationOutcome(outcome.error()); +} + +void EmrClient::listApmApplicationAsync(const ListApmApplicationRequest& request, const ListApmApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApmApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListApmApplicationOutcomeCallable EmrClient::listApmApplicationCallable(const ListApmApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApmApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreCreateTableOutcome EmrClient::metastoreCreateTable(const MetastoreCreateTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreCreateTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreCreateTableOutcome(MetastoreCreateTableResult(outcome.result())); + else + return MetastoreCreateTableOutcome(outcome.error()); +} + +void EmrClient::metastoreCreateTableAsync(const MetastoreCreateTableRequest& request, const MetastoreCreateTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreCreateTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreCreateTableOutcomeCallable EmrClient::metastoreCreateTableCallable(const MetastoreCreateTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreCreateTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CommonApiWhiteListOutcome EmrClient::commonApiWhiteList(const CommonApiWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CommonApiWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CommonApiWhiteListOutcome(CommonApiWhiteListResult(outcome.result())); + else + return CommonApiWhiteListOutcome(outcome.error()); +} + +void EmrClient::commonApiWhiteListAsync(const CommonApiWhiteListRequest& request, const CommonApiWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, commonApiWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CommonApiWhiteListOutcomeCallable EmrClient::commonApiWhiteListCallable(const CommonApiWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->commonApiWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateFlowForWebOutcome EmrClient::createFlowForWeb(const CreateFlowForWebRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowForWebOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowForWebOutcome(CreateFlowForWebResult(outcome.result())); + else + return CreateFlowForWebOutcome(outcome.error()); +} + +void EmrClient::createFlowForWebAsync(const CreateFlowForWebRequest& request, const CreateFlowForWebAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowForWeb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateFlowForWebOutcomeCallable EmrClient::createFlowForWebCallable(const CreateFlowForWebRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowForWeb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::QuerySlsMetricDataOutcome EmrClient::querySlsMetricData(const QuerySlsMetricDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySlsMetricDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySlsMetricDataOutcome(QuerySlsMetricDataResult(outcome.result())); + else + return QuerySlsMetricDataOutcome(outcome.error()); +} + +void EmrClient::querySlsMetricDataAsync(const QuerySlsMetricDataRequest& request, const QuerySlsMetricDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySlsMetricData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::QuerySlsMetricDataOutcomeCallable EmrClient::querySlsMetricDataCallable(const QuerySlsMetricDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySlsMetricData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreListKafkaTopicOutcome EmrClient::metastoreListKafkaTopic(const MetastoreListKafkaTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreListKafkaTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreListKafkaTopicOutcome(MetastoreListKafkaTopicResult(outcome.result())); + else + return MetastoreListKafkaTopicOutcome(outcome.error()); +} + +void EmrClient::metastoreListKafkaTopicAsync(const MetastoreListKafkaTopicRequest& request, const MetastoreListKafkaTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreListKafkaTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreListKafkaTopicOutcomeCallable EmrClient::metastoreListKafkaTopicCallable(const MetastoreListKafkaTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreListKafkaTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeJobOutcome EmrClient::describeJob(const DescribeJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeJobOutcome(DescribeJobResult(outcome.result())); + else + return DescribeJobOutcome(outcome.error()); +} + +void EmrClient::describeJobAsync(const DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeJobOutcomeCallable EmrClient::describeJobCallable(const DescribeJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListKafkaReassignTopicOutcome EmrClient::listKafkaReassignTopic(const ListKafkaReassignTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListKafkaReassignTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListKafkaReassignTopicOutcome(ListKafkaReassignTopicResult(outcome.result())); + else + return ListKafkaReassignTopicOutcome(outcome.error()); +} + +void EmrClient::listKafkaReassignTopicAsync(const ListKafkaReassignTopicRequest& request, const ListKafkaReassignTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listKafkaReassignTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListKafkaReassignTopicOutcomeCallable EmrClient::listKafkaReassignTopicCallable(const ListKafkaReassignTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listKafkaReassignTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyClusterServiceConfigForAdminOutcome EmrClient::modifyClusterServiceConfigForAdmin(const ModifyClusterServiceConfigForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterServiceConfigForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterServiceConfigForAdminOutcome(ModifyClusterServiceConfigForAdminResult(outcome.result())); + else + return ModifyClusterServiceConfigForAdminOutcome(outcome.error()); +} + +void EmrClient::modifyClusterServiceConfigForAdminAsync(const ModifyClusterServiceConfigForAdminRequest& request, const ModifyClusterServiceConfigForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClusterServiceConfigForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyClusterServiceConfigForAdminOutcomeCallable EmrClient::modifyClusterServiceConfigForAdminCallable(const ModifyClusterServiceConfigForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClusterServiceConfigForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyFlowProjectOutcome EmrClient::modifyFlowProject(const ModifyFlowProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowProjectOutcome(ModifyFlowProjectResult(outcome.result())); + else + return ModifyFlowProjectOutcome(outcome.error()); +} + +void EmrClient::modifyFlowProjectAsync(const ModifyFlowProjectRequest& request, const ModifyFlowProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlowProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyFlowProjectOutcomeCallable EmrClient::modifyFlowProjectCallable(const ModifyFlowProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlowProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowOutcome EmrClient::listFlow(const ListFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowOutcome(ListFlowResult(outcome.result())); + else + return ListFlowOutcome(outcome.error()); +} + +void EmrClient::listFlowAsync(const ListFlowRequest& request, const ListFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowOutcomeCallable EmrClient::listFlowCallable(const ListFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListResourceQueueOutcome EmrClient::listResourceQueue(const ListResourceQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourceQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourceQueueOutcome(ListResourceQueueResult(outcome.result())); + else + return ListResourceQueueOutcome(outcome.error()); +} + +void EmrClient::listResourceQueueAsync(const ListResourceQueueRequest& request, const ListResourceQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourceQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListResourceQueueOutcomeCallable EmrClient::listResourceQueueCallable(const ListResourceQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourceQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterTagForAdminOutcome EmrClient::listClusterTagForAdmin(const ListClusterTagForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterTagForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterTagForAdminOutcome(ListClusterTagForAdminResult(outcome.result())); + else + return ListClusterTagForAdminOutcome(outcome.error()); +} + +void EmrClient::listClusterTagForAdminAsync(const ListClusterTagForAdminRequest& request, const ListClusterTagForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterTagForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterTagForAdminOutcomeCallable EmrClient::listClusterTagForAdminCallable(const ListClusterTagForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterTagForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::KillExecutionPlanInstanceOutcome EmrClient::killExecutionPlanInstance(const KillExecutionPlanInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillExecutionPlanInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillExecutionPlanInstanceOutcome(KillExecutionPlanInstanceResult(outcome.result())); + else + return KillExecutionPlanInstanceOutcome(outcome.error()); +} + +void EmrClient::killExecutionPlanInstanceAsync(const KillExecutionPlanInstanceRequest& request, const KillExecutionPlanInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killExecutionPlanInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::KillExecutionPlanInstanceOutcomeCallable EmrClient::killExecutionPlanInstanceCallable(const KillExecutionPlanInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killExecutionPlanInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteFlowCategoryOutcome EmrClient::deleteFlowCategory(const DeleteFlowCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowCategoryOutcome(DeleteFlowCategoryResult(outcome.result())); + else + return DeleteFlowCategoryOutcome(outcome.error()); +} + +void EmrClient::deleteFlowCategoryAsync(const DeleteFlowCategoryRequest& request, const DeleteFlowCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteFlowCategoryOutcomeCallable EmrClient::deleteFlowCategoryCallable(const DeleteFlowCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::PageListUserGroupsOutcome EmrClient::pageListUserGroups(const PageListUserGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageListUserGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageListUserGroupsOutcome(PageListUserGroupsResult(outcome.result())); + else + return PageListUserGroupsOutcome(outcome.error()); +} + +void EmrClient::pageListUserGroupsAsync(const PageListUserGroupsRequest& request, const PageListUserGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageListUserGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::PageListUserGroupsOutcomeCallable EmrClient::pageListUserGroupsCallable(const PageListUserGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageListUserGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListResourcePoolForAdminOutcome EmrClient::listResourcePoolForAdmin(const ListResourcePoolForAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourcePoolForAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourcePoolForAdminOutcome(ListResourcePoolForAdminResult(outcome.result())); + else + return ListResourcePoolForAdminOutcome(outcome.error()); +} + +void EmrClient::listResourcePoolForAdminAsync(const ListResourcePoolForAdminRequest& request, const ListResourcePoolForAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourcePoolForAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListResourcePoolForAdminOutcomeCallable EmrClient::listResourcePoolForAdminCallable(const ListResourcePoolForAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourcePoolForAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MigrateJobsOutcome EmrClient::migrateJobs(const MigrateJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MigrateJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MigrateJobsOutcome(MigrateJobsResult(outcome.result())); + else + return MigrateJobsOutcome(outcome.error()); +} + +void EmrClient::migrateJobsAsync(const MigrateJobsRequest& request, const MigrateJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, migrateJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MigrateJobsOutcomeCallable EmrClient::migrateJobsCallable(const MigrateJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->migrateJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::KillExecutionJobInstanceOutcome EmrClient::killExecutionJobInstance(const KillExecutionJobInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillExecutionJobInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillExecutionJobInstanceOutcome(KillExecutionJobInstanceResult(outcome.result())); + else + return KillExecutionJobInstanceOutcome(outcome.error()); +} + +void EmrClient::killExecutionJobInstanceAsync(const KillExecutionJobInstanceRequest& request, const KillExecutionJobInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killExecutionJobInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::KillExecutionJobInstanceOutcomeCallable EmrClient::killExecutionJobInstanceCallable(const KillExecutionJobInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killExecutionJobInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateBatchUsersOutcome EmrClient::createBatchUsers(const CreateBatchUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBatchUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBatchUsersOutcome(CreateBatchUsersResult(outcome.result())); + else + return CreateBatchUsersOutcome(outcome.error()); +} + +void EmrClient::createBatchUsersAsync(const CreateBatchUsersRequest& request, const CreateBatchUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBatchUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateBatchUsersOutcomeCallable EmrClient::createBatchUsersCallable(const CreateBatchUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBatchUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyExecutionPlanOutcome EmrClient::modifyExecutionPlan(const ModifyExecutionPlanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExecutionPlanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExecutionPlanOutcome(ModifyExecutionPlanResult(outcome.result())); + else + return ModifyExecutionPlanOutcome(outcome.error()); +} + +void EmrClient::modifyExecutionPlanAsync(const ModifyExecutionPlanRequest& request, const ModifyExecutionPlanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExecutionPlan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyExecutionPlanOutcomeCallable EmrClient::modifyExecutionPlanCallable(const ModifyExecutionPlanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExecutionPlan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::AddClusterServiceOutcome EmrClient::addClusterService(const AddClusterServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddClusterServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddClusterServiceOutcome(AddClusterServiceResult(outcome.result())); + else + return AddClusterServiceOutcome(outcome.error()); +} + +void EmrClient::addClusterServiceAsync(const AddClusterServiceRequest& request, const AddClusterServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addClusterService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::AddClusterServiceOutcomeCallable EmrClient::addClusterServiceCallable(const AddClusterServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addClusterService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListUserStatisticsOutcome EmrClient::listUserStatistics(const ListUserStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserStatisticsOutcome(ListUserStatisticsResult(outcome.result())); + else + return ListUserStatisticsOutcome(outcome.error()); +} + +void EmrClient::listUserStatisticsAsync(const ListUserStatisticsRequest& request, const ListUserStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListUserStatisticsOutcomeCallable EmrClient::listUserStatisticsCallable(const ListUserStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyFlowCategoryOutcome EmrClient::modifyFlowCategory(const ModifyFlowCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowCategoryOutcome(ModifyFlowCategoryResult(outcome.result())); + else + return ModifyFlowCategoryOutcome(outcome.error()); +} + +void EmrClient::modifyFlowCategoryAsync(const ModifyFlowCategoryRequest& request, const ModifyFlowCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlowCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyFlowCategoryOutcomeCallable EmrClient::modifyFlowCategoryCallable(const ModifyFlowCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlowCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::QueryAlarmRulesOutcome EmrClient::queryAlarmRules(const QueryAlarmRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAlarmRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAlarmRulesOutcome(QueryAlarmRulesResult(outcome.result())); + else + return QueryAlarmRulesOutcome(outcome.error()); +} + +void EmrClient::queryAlarmRulesAsync(const QueryAlarmRulesRequest& request, const QueryAlarmRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAlarmRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::QueryAlarmRulesOutcomeCallable EmrClient::queryAlarmRulesCallable(const QueryAlarmRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAlarmRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyClusterServiceConfigOutcome EmrClient::modifyClusterServiceConfig(const ModifyClusterServiceConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterServiceConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterServiceConfigOutcome(ModifyClusterServiceConfigResult(outcome.result())); + else + return ModifyClusterServiceConfigOutcome(outcome.error()); +} + +void EmrClient::modifyClusterServiceConfigAsync(const ModifyClusterServiceConfigRequest& request, const ModifyClusterServiceConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClusterServiceConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyClusterServiceConfigOutcomeCallable EmrClient::modifyClusterServiceConfigCallable(const ModifyClusterServiceConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClusterServiceConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreListDataResourcesOutcome EmrClient::metastoreListDataResources(const MetastoreListDataResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreListDataResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreListDataResourcesOutcome(MetastoreListDataResourcesResult(outcome.result())); + else + return MetastoreListDataResourcesOutcome(outcome.error()); +} + +void EmrClient::metastoreListDataResourcesAsync(const MetastoreListDataResourcesRequest& request, const MetastoreListDataResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreListDataResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreListDataResourcesOutcomeCallable EmrClient::metastoreListDataResourcesCallable(const MetastoreListDataResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreListDataResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::UpdateETLJobOutcome EmrClient::updateETLJob(const UpdateETLJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateETLJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateETLJobOutcome(UpdateETLJobResult(outcome.result())); + else + return UpdateETLJobOutcome(outcome.error()); +} + +void EmrClient::updateETLJobAsync(const UpdateETLJobRequest& request, const UpdateETLJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateETLJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::UpdateETLJobOutcomeCallable EmrClient::updateETLJobCallable(const UpdateETLJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateETLJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeScalingTaskGroupOutcome EmrClient::describeScalingTaskGroup(const DescribeScalingTaskGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScalingTaskGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScalingTaskGroupOutcome(DescribeScalingTaskGroupResult(outcome.result())); + else + return DescribeScalingTaskGroupOutcome(outcome.error()); +} + +void EmrClient::describeScalingTaskGroupAsync(const DescribeScalingTaskGroupRequest& request, const DescribeScalingTaskGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScalingTaskGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeScalingTaskGroupOutcomeCallable EmrClient::describeScalingTaskGroupCallable(const DescribeScalingTaskGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScalingTaskGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteHostPoolOutcome EmrClient::deleteHostPool(const DeleteHostPoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteHostPoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteHostPoolOutcome(DeleteHostPoolResult(outcome.result())); + else + return DeleteHostPoolOutcome(outcome.error()); +} + +void EmrClient::deleteHostPoolAsync(const DeleteHostPoolRequest& request, const DeleteHostPoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteHostPool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteHostPoolOutcomeCallable EmrClient::deleteHostPoolCallable(const DeleteHostPoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteHostPool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RefreshBackupListOutcome EmrClient::refreshBackupList(const RefreshBackupListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshBackupListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshBackupListOutcome(RefreshBackupListResult(outcome.result())); + else + return RefreshBackupListOutcome(outcome.error()); +} + +void EmrClient::refreshBackupListAsync(const RefreshBackupListRequest& request, const RefreshBackupListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshBackupList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RefreshBackupListOutcomeCallable EmrClient::refreshBackupListCallable(const RefreshBackupListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshBackupList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::UpdateDataSourceOutcome EmrClient::updateDataSource(const UpdateDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDataSourceOutcome(UpdateDataSourceResult(outcome.result())); + else + return UpdateDataSourceOutcome(outcome.error()); +} + +void EmrClient::updateDataSourceAsync(const UpdateDataSourceRequest& request, const UpdateDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::UpdateDataSourceOutcomeCallable EmrClient::updateDataSourceCallable(const UpdateDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListDataSourceSchemaDatabaseOutcome EmrClient::listDataSourceSchemaDatabase(const ListDataSourceSchemaDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSourceSchemaDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSourceSchemaDatabaseOutcome(ListDataSourceSchemaDatabaseResult(outcome.result())); + else + return ListDataSourceSchemaDatabaseOutcome(outcome.error()); +} + +void EmrClient::listDataSourceSchemaDatabaseAsync(const ListDataSourceSchemaDatabaseRequest& request, const ListDataSourceSchemaDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataSourceSchemaDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListDataSourceSchemaDatabaseOutcomeCallable EmrClient::listDataSourceSchemaDatabaseCallable(const ListDataSourceSchemaDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataSourceSchemaDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateUsersOutcome EmrClient::createUsers(const CreateUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUsersOutcome(CreateUsersResult(outcome.result())); + else + return CreateUsersOutcome(outcome.error()); +} + +void EmrClient::createUsersAsync(const CreateUsersRequest& request, const CreateUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateUsersOutcomeCallable EmrClient::createUsersCallable(const CreateUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CheckDataSourceOutcome EmrClient::checkDataSource(const CheckDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckDataSourceOutcome(CheckDataSourceResult(outcome.result())); + else + return CheckDataSourceOutcome(outcome.error()); +} + +void EmrClient::checkDataSourceAsync(const CheckDataSourceRequest& request, const CheckDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CheckDataSourceOutcomeCallable EmrClient::checkDataSourceCallable(const CheckDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListScalingActivityOutcome EmrClient::listScalingActivity(const ListScalingActivityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListScalingActivityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListScalingActivityOutcome(ListScalingActivityResult(outcome.result())); + else + return ListScalingActivityOutcome(outcome.error()); +} + +void EmrClient::listScalingActivityAsync(const ListScalingActivityRequest& request, const ListScalingActivityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listScalingActivity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListScalingActivityOutcomeCallable EmrClient::listScalingActivityCallable(const ListScalingActivityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listScalingActivity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateNoteOutcome EmrClient::createNote(const CreateNoteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNoteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNoteOutcome(CreateNoteResult(outcome.result())); + else + return CreateNoteOutcome(outcome.error()); +} + +void EmrClient::createNoteAsync(const CreateNoteRequest& request, const CreateNoteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNote(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateNoteOutcomeCallable EmrClient::createNoteCallable(const CreateNoteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNote(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RemoveHpHostOutcome EmrClient::removeHpHost(const RemoveHpHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveHpHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveHpHostOutcome(RemoveHpHostResult(outcome.result())); + else + return RemoveHpHostOutcome(outcome.error()); +} + +void EmrClient::removeHpHostAsync(const RemoveHpHostRequest& request, const RemoveHpHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeHpHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RemoveHpHostOutcomeCallable EmrClient::removeHpHostCallable(const RemoveHpHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeHpHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetBackupInfoOutcome EmrClient::getBackupInfo(const GetBackupInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBackupInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBackupInfoOutcome(GetBackupInfoResult(outcome.result())); + else + return GetBackupInfoOutcome(outcome.error()); +} + +void EmrClient::getBackupInfoAsync(const GetBackupInfoRequest& request, const GetBackupInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBackupInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetBackupInfoOutcomeCallable EmrClient::getBackupInfoCallable(const GetBackupInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBackupInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeHpHostOutcome EmrClient::describeHpHost(const DescribeHpHostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHpHostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHpHostOutcome(DescribeHpHostResult(outcome.result())); + else + return DescribeHpHostOutcome(outcome.error()); +} + +void EmrClient::describeHpHostAsync(const DescribeHpHostRequest& request, const DescribeHpHostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHpHost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeHpHostOutcomeCallable EmrClient::describeHpHostCallable(const DescribeHpHostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHpHost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RetryExecutionPlanOutcome EmrClient::retryExecutionPlan(const RetryExecutionPlanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RetryExecutionPlanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RetryExecutionPlanOutcome(RetryExecutionPlanResult(outcome.result())); + else + return RetryExecutionPlanOutcome(outcome.error()); +} + +void EmrClient::retryExecutionPlanAsync(const RetryExecutionPlanRequest& request, const RetryExecutionPlanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, retryExecutionPlan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RetryExecutionPlanOutcomeCallable EmrClient::retryExecutionPlanCallable(const RetryExecutionPlanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->retryExecutionPlan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListBackupRulesOutcome EmrClient::listBackupRules(const ListBackupRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBackupRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBackupRulesOutcome(ListBackupRulesResult(outcome.result())); + else + return ListBackupRulesOutcome(outcome.error()); +} + +void EmrClient::listBackupRulesAsync(const ListBackupRulesRequest& request, const ListBackupRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBackupRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListBackupRulesOutcomeCallable EmrClient::listBackupRulesCallable(const ListBackupRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBackupRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreListDataSourceOutcome EmrClient::metastoreListDataSource(const MetastoreListDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreListDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreListDataSourceOutcome(MetastoreListDataSourceResult(outcome.result())); + else + return MetastoreListDataSourceOutcome(outcome.error()); +} + +void EmrClient::metastoreListDataSourceAsync(const MetastoreListDataSourceRequest& request, const MetastoreListDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreListDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreListDataSourceOutcomeCallable EmrClient::metastoreListDataSourceCallable(const MetastoreListDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreListDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowNodeInstanceContainerStatusOutcome EmrClient::listFlowNodeInstanceContainerStatus(const ListFlowNodeInstanceContainerStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowNodeInstanceContainerStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowNodeInstanceContainerStatusOutcome(ListFlowNodeInstanceContainerStatusResult(outcome.result())); + else + return ListFlowNodeInstanceContainerStatusOutcome(outcome.error()); +} + +void EmrClient::listFlowNodeInstanceContainerStatusAsync(const ListFlowNodeInstanceContainerStatusRequest& request, const ListFlowNodeInstanceContainerStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowNodeInstanceContainerStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowNodeInstanceContainerStatusOutcomeCallable EmrClient::listFlowNodeInstanceContainerStatusCallable(const ListFlowNodeInstanceContainerStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowNodeInstanceContainerStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetSupportedOpsCommandOutcome EmrClient::getSupportedOpsCommand(const GetSupportedOpsCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSupportedOpsCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSupportedOpsCommandOutcome(GetSupportedOpsCommandResult(outcome.result())); + else + return GetSupportedOpsCommandOutcome(outcome.error()); +} + +void EmrClient::getSupportedOpsCommandAsync(const GetSupportedOpsCommandRequest& request, const GetSupportedOpsCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSupportedOpsCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetSupportedOpsCommandOutcomeCallable EmrClient::getSupportedOpsCommandCallable(const GetSupportedOpsCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSupportedOpsCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeETLJobSqlSchemaOutcome EmrClient::describeETLJobSqlSchema(const DescribeETLJobSqlSchemaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeETLJobSqlSchemaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeETLJobSqlSchemaOutcome(DescribeETLJobSqlSchemaResult(outcome.result())); + else + return DescribeETLJobSqlSchemaOutcome(outcome.error()); +} + +void EmrClient::describeETLJobSqlSchemaAsync(const DescribeETLJobSqlSchemaRequest& request, const DescribeETLJobSqlSchemaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeETLJobSqlSchema(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeETLJobSqlSchemaOutcomeCallable EmrClient::describeETLJobSqlSchemaCallable(const DescribeETLJobSqlSchemaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeETLJobSqlSchema(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListExecutionPlanInstancesOutcome EmrClient::listExecutionPlanInstances(const ListExecutionPlanInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListExecutionPlanInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListExecutionPlanInstancesOutcome(ListExecutionPlanInstancesResult(outcome.result())); + else + return ListExecutionPlanInstancesOutcome(outcome.error()); +} + +void EmrClient::listExecutionPlanInstancesAsync(const ListExecutionPlanInstancesRequest& request, const ListExecutionPlanInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listExecutionPlanInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListExecutionPlanInstancesOutcomeCallable EmrClient::listExecutionPlanInstancesCallable(const ListExecutionPlanInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listExecutionPlanInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreDescribeKafkaConsumerGroupOutcome EmrClient::metastoreDescribeKafkaConsumerGroup(const MetastoreDescribeKafkaConsumerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreDescribeKafkaConsumerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreDescribeKafkaConsumerGroupOutcome(MetastoreDescribeKafkaConsumerGroupResult(outcome.result())); + else + return MetastoreDescribeKafkaConsumerGroupOutcome(outcome.error()); +} + +void EmrClient::metastoreDescribeKafkaConsumerGroupAsync(const MetastoreDescribeKafkaConsumerGroupRequest& request, const MetastoreDescribeKafkaConsumerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreDescribeKafkaConsumerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreDescribeKafkaConsumerGroupOutcomeCallable EmrClient::metastoreDescribeKafkaConsumerGroupCallable(const MetastoreDescribeKafkaConsumerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreDescribeKafkaConsumerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreListTaskOutcome EmrClient::metastoreListTask(const MetastoreListTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreListTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreListTaskOutcome(MetastoreListTaskResult(outcome.result())); + else + return MetastoreListTaskOutcome(outcome.error()); +} + +void EmrClient::metastoreListTaskAsync(const MetastoreListTaskRequest& request, const MetastoreListTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreListTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreListTaskOutcomeCallable EmrClient::metastoreListTaskCallable(const MetastoreListTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreListTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RemoveBackupOutcome EmrClient::removeBackup(const RemoveBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveBackupOutcome(RemoveBackupResult(outcome.result())); + else + return RemoveBackupOutcome(outcome.error()); +} + +void EmrClient::removeBackupAsync(const RemoveBackupRequest& request, const RemoveBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RemoveBackupOutcomeCallable EmrClient::removeBackupCallable(const RemoveBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterOpLogOutcome EmrClient::describeClusterOpLog(const DescribeClusterOpLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterOpLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterOpLogOutcome(DescribeClusterOpLogResult(outcome.result())); + else + return DescribeClusterOpLogOutcome(outcome.error()); +} + +void EmrClient::describeClusterOpLogAsync(const DescribeClusterOpLogRequest& request, const DescribeClusterOpLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterOpLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterOpLogOutcomeCallable EmrClient::describeClusterOpLogCallable(const DescribeClusterOpLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterOpLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetQueueSubmissionStatisticInfoOutcome EmrClient::getQueueSubmissionStatisticInfo(const GetQueueSubmissionStatisticInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetQueueSubmissionStatisticInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetQueueSubmissionStatisticInfoOutcome(GetQueueSubmissionStatisticInfoResult(outcome.result())); + else + return GetQueueSubmissionStatisticInfoOutcome(outcome.error()); +} + +void EmrClient::getQueueSubmissionStatisticInfoAsync(const GetQueueSubmissionStatisticInfoRequest& request, const GetQueueSubmissionStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getQueueSubmissionStatisticInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetQueueSubmissionStatisticInfoOutcomeCallable EmrClient::getQueueSubmissionStatisticInfoCallable(const GetQueueSubmissionStatisticInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getQueueSubmissionStatisticInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateUserOutcome EmrClient::createUser(const CreateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserOutcome(CreateUserResult(outcome.result())); + else + return CreateUserOutcome(outcome.error()); +} + +void EmrClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateUserOutcomeCallable EmrClient::createUserCallable(const CreateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListDataSourceOutcome EmrClient::listDataSource(const ListDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSourceOutcome(ListDataSourceResult(outcome.result())); + else + return ListDataSourceOutcome(outcome.error()); +} + +void EmrClient::listDataSourceAsync(const ListDataSourceRequest& request, const ListDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListDataSourceOutcomeCallable EmrClient::listDataSourceCallable(const ListDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreCreateKafkaTopicOutcome EmrClient::metastoreCreateKafkaTopic(const MetastoreCreateKafkaTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreCreateKafkaTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreCreateKafkaTopicOutcome(MetastoreCreateKafkaTopicResult(outcome.result())); + else + return MetastoreCreateKafkaTopicOutcome(outcome.error()); +} + +void EmrClient::metastoreCreateKafkaTopicAsync(const MetastoreCreateKafkaTopicRequest& request, const MetastoreCreateKafkaTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreCreateKafkaTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreCreateKafkaTopicOutcomeCallable EmrClient::metastoreCreateKafkaTopicCallable(const MetastoreCreateKafkaTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreCreateKafkaTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListETLJobInstanceOutcome EmrClient::listETLJobInstance(const ListETLJobInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListETLJobInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListETLJobInstanceOutcome(ListETLJobInstanceResult(outcome.result())); + else + return ListETLJobInstanceOutcome(outcome.error()); +} + +void EmrClient::listETLJobInstanceAsync(const ListETLJobInstanceRequest& request, const ListETLJobInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listETLJobInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListETLJobInstanceOutcomeCallable EmrClient::listETLJobInstanceCallable(const ListETLJobInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listETLJobInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyExecutionPlanBasicInfoOutcome EmrClient::modifyExecutionPlanBasicInfo(const ModifyExecutionPlanBasicInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExecutionPlanBasicInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExecutionPlanBasicInfoOutcome(ModifyExecutionPlanBasicInfoResult(outcome.result())); + else + return ModifyExecutionPlanBasicInfoOutcome(outcome.error()); +} + +void EmrClient::modifyExecutionPlanBasicInfoAsync(const ModifyExecutionPlanBasicInfoRequest& request, const ModifyExecutionPlanBasicInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExecutionPlanBasicInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyExecutionPlanBasicInfoOutcomeCallable EmrClient::modifyExecutionPlanBasicInfoCallable(const ModifyExecutionPlanBasicInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExecutionPlanBasicInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::SubmitFlowJobOutcome EmrClient::submitFlowJob(const SubmitFlowJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitFlowJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitFlowJobOutcome(SubmitFlowJobResult(outcome.result())); + else + return SubmitFlowJobOutcome(outcome.error()); +} + +void EmrClient::submitFlowJobAsync(const SubmitFlowJobRequest& request, const SubmitFlowJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitFlowJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::SubmitFlowJobOutcomeCallable EmrClient::submitFlowJobCallable(const SubmitFlowJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitFlowJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListStackServiceOutcome EmrClient::listStackService(const ListStackServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStackServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStackServiceOutcome(ListStackServiceResult(outcome.result())); + else + return ListStackServiceOutcome(outcome.error()); +} + +void EmrClient::listStackServiceAsync(const ListStackServiceRequest& request, const ListStackServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStackService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListStackServiceOutcomeCallable EmrClient::listStackServiceCallable(const ListStackServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStackService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeETLJobOutcome EmrClient::describeETLJob(const DescribeETLJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeETLJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeETLJobOutcome(DescribeETLJobResult(outcome.result())); + else + return DescribeETLJobOutcome(outcome.error()); +} + +void EmrClient::describeETLJobAsync(const DescribeETLJobRequest& request, const DescribeETLJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeETLJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeETLJobOutcomeCallable EmrClient::describeETLJobCallable(const DescribeETLJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeETLJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterHostComponentOutcome EmrClient::listClusterHostComponent(const ListClusterHostComponentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterHostComponentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterHostComponentOutcome(ListClusterHostComponentResult(outcome.result())); + else + return ListClusterHostComponentOutcome(outcome.error()); +} + +void EmrClient::listClusterHostComponentAsync(const ListClusterHostComponentRequest& request, const ListClusterHostComponentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterHostComponent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterHostComponentOutcomeCallable EmrClient::listClusterHostComponentCallable(const ListClusterHostComponentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterHostComponent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetJobRunningTimeStatisticInfoOutcome EmrClient::getJobRunningTimeStatisticInfo(const GetJobRunningTimeStatisticInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobRunningTimeStatisticInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobRunningTimeStatisticInfoOutcome(GetJobRunningTimeStatisticInfoResult(outcome.result())); + else + return GetJobRunningTimeStatisticInfoOutcome(outcome.error()); +} + +void EmrClient::getJobRunningTimeStatisticInfoAsync(const GetJobRunningTimeStatisticInfoRequest& request, const GetJobRunningTimeStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobRunningTimeStatisticInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetJobRunningTimeStatisticInfoOutcomeCallable EmrClient::getJobRunningTimeStatisticInfoCallable(const GetJobRunningTimeStatisticInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobRunningTimeStatisticInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowProjectClusterSettingOutcome EmrClient::listFlowProjectClusterSetting(const ListFlowProjectClusterSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowProjectClusterSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowProjectClusterSettingOutcome(ListFlowProjectClusterSettingResult(outcome.result())); + else + return ListFlowProjectClusterSettingOutcome(outcome.error()); +} + +void EmrClient::listFlowProjectClusterSettingAsync(const ListFlowProjectClusterSettingRequest& request, const ListFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowProjectClusterSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowProjectClusterSettingOutcomeCallable EmrClient::listFlowProjectClusterSettingCallable(const ListFlowProjectClusterSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowProjectClusterSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListJobExecutionInstancesOutcome EmrClient::listJobExecutionInstances(const ListJobExecutionInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobExecutionInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobExecutionInstancesOutcome(ListJobExecutionInstancesResult(outcome.result())); + else + return ListJobExecutionInstancesOutcome(outcome.error()); +} + +void EmrClient::listJobExecutionInstancesAsync(const ListJobExecutionInstancesRequest& request, const ListJobExecutionInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobExecutionInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListJobExecutionInstancesOutcomeCallable EmrClient::listJobExecutionInstancesCallable(const ListJobExecutionInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobExecutionInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListSlsLogstoreInfoOutcome EmrClient::listSlsLogstoreInfo(const ListSlsLogstoreInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSlsLogstoreInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSlsLogstoreInfoOutcome(ListSlsLogstoreInfoResult(outcome.result())); + else + return ListSlsLogstoreInfoOutcome(outcome.error()); +} + +void EmrClient::listSlsLogstoreInfoAsync(const ListSlsLogstoreInfoRequest& request, const ListSlsLogstoreInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSlsLogstoreInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListSlsLogstoreInfoOutcomeCallable EmrClient::listSlsLogstoreInfoCallable(const ListSlsLogstoreInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSlsLogstoreInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreDropTableOutcome EmrClient::metastoreDropTable(const MetastoreDropTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreDropTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreDropTableOutcome(MetastoreDropTableResult(outcome.result())); + else + return MetastoreDropTableOutcome(outcome.error()); +} + +void EmrClient::metastoreDropTableAsync(const MetastoreDropTableRequest& request, const MetastoreDropTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreDropTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreDropTableOutcomeCallable EmrClient::metastoreDropTableCallable(const MetastoreDropTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreDropTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateScalingRuleOutcome EmrClient::createScalingRule(const CreateScalingRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateScalingRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateScalingRuleOutcome(CreateScalingRuleResult(outcome.result())); + else + return CreateScalingRuleOutcome(outcome.error()); +} + +void EmrClient::createScalingRuleAsync(const CreateScalingRuleRequest& request, const CreateScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createScalingRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateScalingRuleOutcomeCallable EmrClient::createScalingRuleCallable(const CreateScalingRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createScalingRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterServiceOutcome EmrClient::listClusterService(const ListClusterServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterServiceOutcome(ListClusterServiceResult(outcome.result())); + else + return ListClusterServiceOutcome(outcome.error()); +} + +void EmrClient::listClusterServiceAsync(const ListClusterServiceRequest& request, const ListClusterServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterServiceOutcomeCallable EmrClient::listClusterServiceCallable(const ListClusterServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetOpsCommandDetailOutcome EmrClient::getOpsCommandDetail(const GetOpsCommandDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOpsCommandDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOpsCommandDetailOutcome(GetOpsCommandDetailResult(outcome.result())); + else + return GetOpsCommandDetailOutcome(outcome.error()); +} + +void EmrClient::getOpsCommandDetailAsync(const GetOpsCommandDetailRequest& request, const GetOpsCommandDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOpsCommandDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetOpsCommandDetailOutcomeCallable EmrClient::getOpsCommandDetailCallable(const GetOpsCommandDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOpsCommandDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateUserGroupOutcome EmrClient::createUserGroup(const CreateUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserGroupOutcome(CreateUserGroupResult(outcome.result())); + else + return CreateUserGroupOutcome(outcome.error()); +} + +void EmrClient::createUserGroupAsync(const CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateUserGroupOutcomeCallable EmrClient::createUserGroupCallable(const CreateUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteNoteOutcome EmrClient::deleteNote(const DeleteNoteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNoteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNoteOutcome(DeleteNoteResult(outcome.result())); + else + return DeleteNoteOutcome(outcome.error()); +} + +void EmrClient::deleteNoteAsync(const DeleteNoteRequest& request, const DeleteNoteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNote(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteNoteOutcomeCallable EmrClient::deleteNoteCallable(const DeleteNoteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNote(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowClusterAllHostsOutcome EmrClient::listFlowClusterAllHosts(const ListFlowClusterAllHostsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowClusterAllHostsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowClusterAllHostsOutcome(ListFlowClusterAllHostsResult(outcome.result())); + else + return ListFlowClusterAllHostsOutcome(outcome.error()); +} + +void EmrClient::listFlowClusterAllHostsAsync(const ListFlowClusterAllHostsRequest& request, const ListFlowClusterAllHostsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowClusterAllHosts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowClusterAllHostsOutcomeCallable EmrClient::listFlowClusterAllHostsCallable(const ListFlowClusterAllHostsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowClusterAllHosts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetLogHistogramOutcome EmrClient::getLogHistogram(const GetLogHistogramRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLogHistogramOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLogHistogramOutcome(GetLogHistogramResult(outcome.result())); + else + return GetLogHistogramOutcome(outcome.error()); +} + +void EmrClient::getLogHistogramAsync(const GetLogHistogramRequest& request, const GetLogHistogramAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLogHistogram(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetLogHistogramOutcomeCallable EmrClient::getLogHistogramCallable(const GetLogHistogramRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLogHistogram(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreDeleteDataResourceOutcome EmrClient::metastoreDeleteDataResource(const MetastoreDeleteDataResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreDeleteDataResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreDeleteDataResourceOutcome(MetastoreDeleteDataResourceResult(outcome.result())); + else + return MetastoreDeleteDataResourceOutcome(outcome.error()); +} + +void EmrClient::metastoreDeleteDataResourceAsync(const MetastoreDeleteDataResourceRequest& request, const MetastoreDeleteDataResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreDeleteDataResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreDeleteDataResourceOutcomeCallable EmrClient::metastoreDeleteDataResourceCallable(const MetastoreDeleteDataResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreDeleteDataResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteResourceQueueOutcome EmrClient::deleteResourceQueue(const DeleteResourceQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteResourceQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteResourceQueueOutcome(DeleteResourceQueueResult(outcome.result())); + else + return DeleteResourceQueueOutcome(outcome.error()); +} + +void EmrClient::deleteResourceQueueAsync(const DeleteResourceQueueRequest& request, const DeleteResourceQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteResourceQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteResourceQueueOutcomeCallable EmrClient::deleteResourceQueueCallable(const DeleteResourceQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteResourceQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterResourcePoolSchedulerTypeOutcome EmrClient::describeClusterResourcePoolSchedulerType(const DescribeClusterResourcePoolSchedulerTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterResourcePoolSchedulerTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterResourcePoolSchedulerTypeOutcome(DescribeClusterResourcePoolSchedulerTypeResult(outcome.result())); + else + return DescribeClusterResourcePoolSchedulerTypeOutcome(outcome.error()); +} + +void EmrClient::describeClusterResourcePoolSchedulerTypeAsync(const DescribeClusterResourcePoolSchedulerTypeRequest& request, const DescribeClusterResourcePoolSchedulerTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterResourcePoolSchedulerType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterResourcePoolSchedulerTypeOutcomeCallable EmrClient::describeClusterResourcePoolSchedulerTypeCallable(const DescribeClusterResourcePoolSchedulerTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterResourcePoolSchedulerType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::PageListResourceUsersOutcome EmrClient::pageListResourceUsers(const PageListResourceUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageListResourceUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageListResourceUsersOutcome(PageListResourceUsersResult(outcome.result())); + else + return PageListResourceUsersOutcome(outcome.error()); +} + +void EmrClient::pageListResourceUsersAsync(const PageListResourceUsersRequest& request, const PageListResourceUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageListResourceUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::PageListResourceUsersOutcomeCallable EmrClient::pageListResourceUsersCallable(const PageListResourceUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageListResourceUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowNodeSqlResultOutcome EmrClient::listFlowNodeSqlResult(const ListFlowNodeSqlResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowNodeSqlResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowNodeSqlResultOutcome(ListFlowNodeSqlResultResult(outcome.result())); + else + return ListFlowNodeSqlResultOutcome(outcome.error()); +} + +void EmrClient::listFlowNodeSqlResultAsync(const ListFlowNodeSqlResultRequest& request, const ListFlowNodeSqlResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowNodeSqlResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowNodeSqlResultOutcomeCallable EmrClient::listFlowNodeSqlResultCallable(const ListFlowNodeSqlResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowNodeSqlResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyFlowForWebOutcome EmrClient::modifyFlowForWeb(const ModifyFlowForWebRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowForWebOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowForWebOutcome(ModifyFlowForWebResult(outcome.result())); + else + return ModifyFlowForWebOutcome(outcome.error()); +} + +void EmrClient::modifyFlowForWebAsync(const ModifyFlowForWebRequest& request, const ModifyFlowForWebAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlowForWeb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyFlowForWebOutcomeCallable EmrClient::modifyFlowForWebCallable(const ModifyFlowForWebRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlowForWeb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::RunNoteParagraphsOutcome EmrClient::runNoteParagraphs(const RunNoteParagraphsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunNoteParagraphsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunNoteParagraphsOutcome(RunNoteParagraphsResult(outcome.result())); + else + return RunNoteParagraphsOutcome(outcome.error()); +} + +void EmrClient::runNoteParagraphsAsync(const RunNoteParagraphsRequest& request, const RunNoteParagraphsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runNoteParagraphs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::RunNoteParagraphsOutcomeCallable EmrClient::runNoteParagraphsCallable(const RunNoteParagraphsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runNoteParagraphs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListJobExecutionPlanParamsOutcome EmrClient::listJobExecutionPlanParams(const ListJobExecutionPlanParamsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobExecutionPlanParamsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobExecutionPlanParamsOutcome(ListJobExecutionPlanParamsResult(outcome.result())); + else + return ListJobExecutionPlanParamsOutcome(outcome.error()); +} + +void EmrClient::listJobExecutionPlanParamsAsync(const ListJobExecutionPlanParamsRequest& request, const ListJobExecutionPlanParamsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobExecutionPlanParams(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListJobExecutionPlanParamsOutcomeCallable EmrClient::listJobExecutionPlanParamsCallable(const ListJobExecutionPlanParamsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobExecutionPlanParams(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeKafkaBrokerOutcome EmrClient::describeKafkaBroker(const DescribeKafkaBrokerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeKafkaBrokerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeKafkaBrokerOutcome(DescribeKafkaBrokerResult(outcome.result())); + else + return DescribeKafkaBrokerOutcome(outcome.error()); +} + +void EmrClient::describeKafkaBrokerAsync(const DescribeKafkaBrokerRequest& request, const DescribeKafkaBrokerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeKafkaBroker(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeKafkaBrokerOutcomeCallable EmrClient::describeKafkaBrokerCallable(const DescribeKafkaBrokerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeKafkaBroker(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeFlowNodeInstanceContainerLogOutcome EmrClient::describeFlowNodeInstanceContainerLog(const DescribeFlowNodeInstanceContainerLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFlowNodeInstanceContainerLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFlowNodeInstanceContainerLogOutcome(DescribeFlowNodeInstanceContainerLogResult(outcome.result())); + else + return DescribeFlowNodeInstanceContainerLogOutcome(outcome.error()); +} + +void EmrClient::describeFlowNodeInstanceContainerLogAsync(const DescribeFlowNodeInstanceContainerLogRequest& request, const DescribeFlowNodeInstanceContainerLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFlowNodeInstanceContainerLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeFlowNodeInstanceContainerLogOutcomeCallable EmrClient::describeFlowNodeInstanceContainerLogCallable(const DescribeFlowNodeInstanceContainerLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFlowNodeInstanceContainerLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetUserOutputStatisticInfoOutcome EmrClient::getUserOutputStatisticInfo(const GetUserOutputStatisticInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserOutputStatisticInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserOutputStatisticInfoOutcome(GetUserOutputStatisticInfoResult(outcome.result())); + else + return GetUserOutputStatisticInfoOutcome(outcome.error()); +} + +void EmrClient::getUserOutputStatisticInfoAsync(const GetUserOutputStatisticInfoRequest& request, const GetUserOutputStatisticInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserOutputStatisticInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetUserOutputStatisticInfoOutcomeCallable EmrClient::getUserOutputStatisticInfoCallable(const GetUserOutputStatisticInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserOutputStatisticInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeClusterBasicInfoOutcome EmrClient::describeClusterBasicInfo(const DescribeClusterBasicInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterBasicInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterBasicInfoOutcome(DescribeClusterBasicInfoResult(outcome.result())); + else + return DescribeClusterBasicInfoOutcome(outcome.error()); +} + +void EmrClient::describeClusterBasicInfoAsync(const DescribeClusterBasicInfoRequest& request, const DescribeClusterBasicInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterBasicInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeClusterBasicInfoOutcomeCallable EmrClient::describeClusterBasicInfoCallable(const DescribeClusterBasicInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterBasicInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::SaveBatchUserAccountInfoOutcome EmrClient::saveBatchUserAccountInfo(const SaveBatchUserAccountInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveBatchUserAccountInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveBatchUserAccountInfoOutcome(SaveBatchUserAccountInfoResult(outcome.result())); + else + return SaveBatchUserAccountInfoOutcome(outcome.error()); +} + +void EmrClient::saveBatchUserAccountInfoAsync(const SaveBatchUserAccountInfoRequest& request, const SaveBatchUserAccountInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveBatchUserAccountInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::SaveBatchUserAccountInfoOutcomeCallable EmrClient::saveBatchUserAccountInfoCallable(const SaveBatchUserAccountInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveBatchUserAccountInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetOpsCommandResultOutcome EmrClient::getOpsCommandResult(const GetOpsCommandResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOpsCommandResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOpsCommandResultOutcome(GetOpsCommandResultResult(outcome.result())); + else + return GetOpsCommandResultOutcome(outcome.error()); +} + +void EmrClient::getOpsCommandResultAsync(const GetOpsCommandResultRequest& request, const GetOpsCommandResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOpsCommandResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetOpsCommandResultOutcomeCallable EmrClient::getOpsCommandResultCallable(const GetOpsCommandResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOpsCommandResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListEmrAvailableConfigOutcome EmrClient::listEmrAvailableConfig(const ListEmrAvailableConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEmrAvailableConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEmrAvailableConfigOutcome(ListEmrAvailableConfigResult(outcome.result())); + else + return ListEmrAvailableConfigOutcome(outcome.error()); +} + +void EmrClient::listEmrAvailableConfigAsync(const ListEmrAvailableConfigRequest& request, const ListEmrAvailableConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEmrAvailableConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListEmrAvailableConfigOutcomeCallable EmrClient::listEmrAvailableConfigCallable(const ListEmrAvailableConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEmrAvailableConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListAlertUserGroupOutcome EmrClient::listAlertUserGroup(const ListAlertUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlertUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlertUserGroupOutcome(ListAlertUserGroupResult(outcome.result())); + else + return ListAlertUserGroupOutcome(outcome.error()); +} + +void EmrClient::listAlertUserGroupAsync(const ListAlertUserGroupRequest& request, const ListAlertUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlertUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListAlertUserGroupOutcomeCallable EmrClient::listAlertUserGroupCallable(const ListAlertUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlertUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreSearchTablesOutcome EmrClient::metastoreSearchTables(const MetastoreSearchTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreSearchTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreSearchTablesOutcome(MetastoreSearchTablesResult(outcome.result())); + else + return MetastoreSearchTablesOutcome(outcome.error()); +} + +void EmrClient::metastoreSearchTablesAsync(const MetastoreSearchTablesRequest& request, const MetastoreSearchTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreSearchTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreSearchTablesOutcomeCallable EmrClient::metastoreSearchTablesCallable(const MetastoreSearchTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreSearchTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListFlowClusterOutcome EmrClient::listFlowCluster(const ListFlowClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowClusterOutcome(ListFlowClusterResult(outcome.result())); + else + return ListFlowClusterOutcome(outcome.error()); +} + +void EmrClient::listFlowClusterAsync(const ListFlowClusterRequest& request, const ListFlowClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListFlowClusterOutcomeCallable EmrClient::listFlowClusterCallable(const ListFlowClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteUserOutcome EmrClient::deleteUser(const DeleteUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserOutcome(DeleteUserResult(outcome.result())); + else + return DeleteUserOutcome(outcome.error()); +} + +void EmrClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteUserOutcomeCallable EmrClient::deleteUserCallable(const DeleteUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ResizeClusterV2Outcome EmrClient::resizeClusterV2(const ResizeClusterV2Request &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResizeClusterV2Outcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResizeClusterV2Outcome(ResizeClusterV2Result(outcome.result())); + else + return ResizeClusterV2Outcome(outcome.error()); +} + +void EmrClient::resizeClusterV2Async(const ResizeClusterV2Request& request, const ResizeClusterV2AsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resizeClusterV2(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ResizeClusterV2OutcomeCallable EmrClient::resizeClusterV2Callable(const ResizeClusterV2Request &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resizeClusterV2(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyJobExecutionPlanParamOutcome EmrClient::modifyJobExecutionPlanParam(const ModifyJobExecutionPlanParamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyJobExecutionPlanParamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyJobExecutionPlanParamOutcome(ModifyJobExecutionPlanParamResult(outcome.result())); + else + return ModifyJobExecutionPlanParamOutcome(outcome.error()); +} + +void EmrClient::modifyJobExecutionPlanParamAsync(const ModifyJobExecutionPlanParamRequest& request, const ModifyJobExecutionPlanParamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyJobExecutionPlanParam(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyJobExecutionPlanParamOutcomeCallable EmrClient::modifyJobExecutionPlanParamCallable(const ModifyJobExecutionPlanParamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyJobExecutionPlanParam(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateFlowCategoryOutcome EmrClient::createFlowCategory(const CreateFlowCategoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowCategoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowCategoryOutcome(CreateFlowCategoryResult(outcome.result())); + else + return CreateFlowCategoryOutcome(outcome.error()); +} + +void EmrClient::createFlowCategoryAsync(const CreateFlowCategoryRequest& request, const CreateFlowCategoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowCategory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateFlowCategoryOutcomeCallable EmrClient::createFlowCategoryCallable(const CreateFlowCategoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowCategory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeUserOutcome EmrClient::describeUser(const DescribeUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserOutcome(DescribeUserResult(outcome.result())); + else + return DescribeUserOutcome(outcome.error()); +} + +void EmrClient::describeUserAsync(const DescribeUserRequest& request, const DescribeUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeUserOutcomeCallable EmrClient::describeUserCallable(const DescribeUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ListClusterServiceCustomActionSupportConfigOutcome EmrClient::listClusterServiceCustomActionSupportConfig(const ListClusterServiceCustomActionSupportConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterServiceCustomActionSupportConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterServiceCustomActionSupportConfigOutcome(ListClusterServiceCustomActionSupportConfigResult(outcome.result())); + else + return ListClusterServiceCustomActionSupportConfigOutcome(outcome.error()); +} + +void EmrClient::listClusterServiceCustomActionSupportConfigAsync(const ListClusterServiceCustomActionSupportConfigRequest& request, const ListClusterServiceCustomActionSupportConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterServiceCustomActionSupportConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ListClusterServiceCustomActionSupportConfigOutcomeCallable EmrClient::listClusterServiceCustomActionSupportConfigCallable(const ListClusterServiceCustomActionSupportConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterServiceCustomActionSupportConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::GetLogDownloadUrlOutcome EmrClient::getLogDownloadUrl(const GetLogDownloadUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLogDownloadUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLogDownloadUrlOutcome(GetLogDownloadUrlResult(outcome.result())); + else + return GetLogDownloadUrlOutcome(outcome.error()); +} + +void EmrClient::getLogDownloadUrlAsync(const GetLogDownloadUrlRequest& request, const GetLogDownloadUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLogDownloadUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::GetLogDownloadUrlOutcomeCallable EmrClient::getLogDownloadUrlCallable(const GetLogDownloadUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLogDownloadUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreDescribeTableOutcome EmrClient::metastoreDescribeTable(const MetastoreDescribeTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreDescribeTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreDescribeTableOutcome(MetastoreDescribeTableResult(outcome.result())); + else + return MetastoreDescribeTableOutcome(outcome.error()); +} + +void EmrClient::metastoreDescribeTableAsync(const MetastoreDescribeTableRequest& request, const MetastoreDescribeTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreDescribeTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreDescribeTableOutcomeCallable EmrClient::metastoreDescribeTableCallable(const MetastoreDescribeTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreDescribeTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyFlowOutcome EmrClient::modifyFlow(const ModifyFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowOutcome(ModifyFlowResult(outcome.result())); + else + return ModifyFlowOutcome(outcome.error()); +} + +void EmrClient::modifyFlowAsync(const ModifyFlowRequest& request, const ModifyFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyFlowOutcomeCallable EmrClient::modifyFlowCallable(const ModifyFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DescribeScalingRuleOutcome EmrClient::describeScalingRule(const DescribeScalingRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScalingRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScalingRuleOutcome(DescribeScalingRuleResult(outcome.result())); + else + return DescribeScalingRuleOutcome(outcome.error()); +} + +void EmrClient::describeScalingRuleAsync(const DescribeScalingRuleRequest& request, const DescribeScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScalingRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DescribeScalingRuleOutcomeCallable EmrClient::describeScalingRuleCallable(const DescribeScalingRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScalingRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::CreateUserStatisticsOutcome EmrClient::createUserStatistics(const CreateUserStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserStatisticsOutcome(CreateUserStatisticsResult(outcome.result())); + else + return CreateUserStatisticsOutcome(outcome.error()); +} + +void EmrClient::createUserStatisticsAsync(const CreateUserStatisticsRequest& request, const CreateUserStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::CreateUserStatisticsOutcomeCallable EmrClient::createUserStatisticsCallable(const CreateUserStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::DeleteJobOutcome EmrClient::deleteJob(const DeleteJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteJobOutcome(DeleteJobResult(outcome.result())); + else + return DeleteJobOutcome(outcome.error()); +} + +void EmrClient::deleteJobAsync(const DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::DeleteJobOutcomeCallable EmrClient::deleteJobCallable(const DeleteJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyFlowProjectClusterSettingOutcome EmrClient::modifyFlowProjectClusterSetting(const ModifyFlowProjectClusterSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowProjectClusterSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowProjectClusterSettingOutcome(ModifyFlowProjectClusterSettingResult(outcome.result())); + else + return ModifyFlowProjectClusterSettingOutcome(outcome.error()); +} + +void EmrClient::modifyFlowProjectClusterSettingAsync(const ModifyFlowProjectClusterSettingRequest& request, const ModifyFlowProjectClusterSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlowProjectClusterSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyFlowProjectClusterSettingOutcomeCallable EmrClient::modifyFlowProjectClusterSettingCallable(const ModifyFlowProjectClusterSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlowProjectClusterSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::AddUserResourceRoleOutcome EmrClient::addUserResourceRole(const AddUserResourceRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserResourceRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserResourceRoleOutcome(AddUserResourceRoleResult(outcome.result())); + else + return AddUserResourceRoleOutcome(outcome.error()); +} + +void EmrClient::addUserResourceRoleAsync(const AddUserResourceRoleRequest& request, const AddUserResourceRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUserResourceRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::AddUserResourceRoleOutcomeCallable EmrClient::addUserResourceRoleCallable(const AddUserResourceRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUserResourceRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::ModifyClusterNameOutcome EmrClient::modifyClusterName(const ModifyClusterNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterNameOutcome(ModifyClusterNameResult(outcome.result())); + else + return ModifyClusterNameOutcome(outcome.error()); +} + +void EmrClient::modifyClusterNameAsync(const ModifyClusterNameRequest& request, const ModifyClusterNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClusterName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::ModifyClusterNameOutcomeCallable EmrClient::modifyClusterNameCallable(const ModifyClusterNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClusterName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EmrClient::MetastoreListTablesOutcome EmrClient::metastoreListTables(const MetastoreListTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MetastoreListTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MetastoreListTablesOutcome(MetastoreListTablesResult(outcome.result())); + else + return MetastoreListTablesOutcome(outcome.error()); +} + +void EmrClient::metastoreListTablesAsync(const MetastoreListTablesRequest& request, const MetastoreListTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, metastoreListTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EmrClient::MetastoreListTablesOutcomeCallable EmrClient::metastoreListTablesCallable(const MetastoreListTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->metastoreListTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EmrClient::ModifyResourcePoolSchedulerTypeOutcome EmrClient::modifyResourcePoolSchedulerType(const ModifyResourcePoolSchedulerTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10779,42 +14199,6 @@ EmrClient::ListOpsOperationTaskOutcomeCallable EmrClient::listOpsOperationTaskCa return task->get_future(); } -EmrClient::DeleteClusterHostGroupOutcome EmrClient::deleteClusterHostGroup(const DeleteClusterHostGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteClusterHostGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteClusterHostGroupOutcome(DeleteClusterHostGroupResult(outcome.result())); - else - return DeleteClusterHostGroupOutcome(outcome.error()); -} - -void EmrClient::deleteClusterHostGroupAsync(const DeleteClusterHostGroupRequest& request, const DeleteClusterHostGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteClusterHostGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::DeleteClusterHostGroupOutcomeCallable EmrClient::deleteClusterHostGroupCallable(const DeleteClusterHostGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteClusterHostGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DeleteNavNodeOutcome EmrClient::deleteNavNode(const DeleteNavNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10851,36 +14235,36 @@ EmrClient::DeleteNavNodeOutcomeCallable EmrClient::deleteNavNodeCallable(const D return task->get_future(); } -EmrClient::DescribeDataSourceSchemaTableOutcome EmrClient::describeDataSourceSchemaTable(const DescribeDataSourceSchemaTableRequest &request) const +EmrClient::ListUserGroupsOutcome EmrClient::listUserGroups(const ListUserGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDataSourceSchemaTableOutcome(endpointOutcome.error()); + return ListUserGroupsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDataSourceSchemaTableOutcome(DescribeDataSourceSchemaTableResult(outcome.result())); + return ListUserGroupsOutcome(ListUserGroupsResult(outcome.result())); else - return DescribeDataSourceSchemaTableOutcome(outcome.error()); + return ListUserGroupsOutcome(outcome.error()); } -void EmrClient::describeDataSourceSchemaTableAsync(const DescribeDataSourceSchemaTableRequest& request, const DescribeDataSourceSchemaTableAsyncHandler& handler, const std::shared_ptr& context) const +void EmrClient::listUserGroupsAsync(const ListUserGroupsRequest& request, const ListUserGroupsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDataSourceSchemaTable(request), context); + handler(this, request, listUserGroups(request), context); }; asyncExecute(new Runnable(fn)); } -EmrClient::DescribeDataSourceSchemaTableOutcomeCallable EmrClient::describeDataSourceSchemaTableCallable(const DescribeDataSourceSchemaTableRequest &request) const +EmrClient::ListUserGroupsOutcomeCallable EmrClient::listUserGroupsCallable(const ListUserGroupsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDataSourceSchemaTable(request); + return this->listUserGroups(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -10923,42 +14307,6 @@ EmrClient::UpdateProjectSettingOutcomeCallable EmrClient::updateProjectSettingCa return task->get_future(); } -EmrClient::OperateExistsNodeClusterOutcome EmrClient::operateExistsNodeCluster(const OperateExistsNodeClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OperateExistsNodeClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OperateExistsNodeClusterOutcome(OperateExistsNodeClusterResult(outcome.result())); - else - return OperateExistsNodeClusterOutcome(outcome.error()); -} - -void EmrClient::operateExistsNodeClusterAsync(const OperateExistsNodeClusterRequest& request, const OperateExistsNodeClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, operateExistsNodeCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EmrClient::OperateExistsNodeClusterOutcomeCallable EmrClient::operateExistsNodeClusterCallable(const OperateExistsNodeClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->operateExistsNodeCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EmrClient::DescribeNoteOutcome EmrClient::describeNote(const DescribeNoteRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/emr/src/model/AddClusterServiceForAdminRequest.cc b/emr/src/model/AddClusterServiceForAdminRequest.cc new file mode 100644 index 000000000..ada7d8bc1 --- /dev/null +++ b/emr/src/model/AddClusterServiceForAdminRequest.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 + +using AlibabaCloud::Emr::Model::AddClusterServiceForAdminRequest; + +AddClusterServiceForAdminRequest::AddClusterServiceForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "AddClusterServiceForAdmin") +{} + +AddClusterServiceForAdminRequest::~AddClusterServiceForAdminRequest() +{} + +long AddClusterServiceForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddClusterServiceForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddClusterServiceForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void AddClusterServiceForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddClusterServiceForAdminRequest::getServiceList()const +{ + return serviceList_; +} + +void AddClusterServiceForAdminRequest::setServiceList(const std::string& serviceList) +{ + serviceList_ = serviceList; + setCoreParameter("ServiceList", serviceList); +} + +std::string AddClusterServiceForAdminRequest::getComment()const +{ + return comment_; +} + +void AddClusterServiceForAdminRequest::setComment(const std::string& comment) +{ + comment_ = comment; + setCoreParameter("Comment", comment); +} + +std::string AddClusterServiceForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void AddClusterServiceForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string AddClusterServiceForAdminRequest::getUserId()const +{ + return userId_; +} + +void AddClusterServiceForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string AddClusterServiceForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddClusterServiceForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/AddClusterServiceForAdminResult.cc b/emr/src/model/AddClusterServiceForAdminResult.cc new file mode 100644 index 000000000..99be0c613 --- /dev/null +++ b/emr/src/model/AddClusterServiceForAdminResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +AddClusterServiceForAdminResult::AddClusterServiceForAdminResult() : + ServiceResult() +{} + +AddClusterServiceForAdminResult::AddClusterServiceForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddClusterServiceForAdminResult::~AddClusterServiceForAdminResult() +{} + +void AddClusterServiceForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/AddClusterServiceRequest.cc b/emr/src/model/AddClusterServiceRequest.cc index ef71a6d82..bf35093f4 100644 --- a/emr/src/model/AddClusterServiceRequest.cc +++ b/emr/src/model/AddClusterServiceRequest.cc @@ -33,7 +33,7 @@ long AddClusterServiceRequest::getResourceOwnerId()const void AddClusterServiceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddClusterServiceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string AddClusterServiceRequest::getRegionId()const void AddClusterServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::vector AddClusterServiceRequest::getService()const @@ -59,7 +59,7 @@ void AddClusterServiceRequest::setService(const std::vector& service) for(int i = 0; i!= service.size(); i++) { auto obj = service.at(i); std::string str ="Service."+ std::to_string(i); - setParameter(str + ".ServiceName", obj.serviceName); + setCoreParameter(str + ".ServiceName", obj.serviceName); } } @@ -71,7 +71,7 @@ std::string AddClusterServiceRequest::getComment()const void AddClusterServiceRequest::setComment(const std::string& comment) { comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("Comment", comment); } std::string AddClusterServiceRequest::getClusterId()const @@ -82,7 +82,7 @@ std::string AddClusterServiceRequest::getClusterId()const void AddClusterServiceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string AddClusterServiceRequest::getAccessKeyId()const @@ -93,6 +93,6 @@ std::string AddClusterServiceRequest::getAccessKeyId()const void AddClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/AddClusterServiceResult.cc b/emr/src/model/AddClusterServiceResult.cc index 3a8651119..75de77765 100644 --- a/emr/src/model/AddClusterServiceResult.cc +++ b/emr/src/model/AddClusterServiceResult.cc @@ -35,10 +35,13 @@ AddClusterServiceResult::~AddClusterServiceResult() void AddClusterServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/AddHpHostRequest.cc b/emr/src/model/AddHpHostRequest.cc new file mode 100644 index 000000000..24488eae3 --- /dev/null +++ b/emr/src/model/AddHpHostRequest.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 + +using AlibabaCloud::Emr::Model::AddHpHostRequest; + +AddHpHostRequest::AddHpHostRequest() : + RpcServiceRequest("emr", "2016-04-08", "AddHpHost") +{} + +AddHpHostRequest::~AddHpHostRequest() +{} + +long AddHpHostRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddHpHostRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector AddHpHostRequest::getHpHost()const +{ + return hpHost_; +} + +void AddHpHostRequest::setHpHost(const std::vector& hpHost) +{ + hpHost_ = hpHost; + int i = 0; + for(int i = 0; i!= hpHost.size(); i++) { + auto obj = hpHost.at(i); + std::string str ="HpHost."+ std::to_string(i); + setCoreParameter(str + ".CpuCore", std::to_string(obj.cpuCore)); + setCoreParameter(str + ".MemSize", std::to_string(obj.memSize)); + setCoreParameter(str + ".RackInfo", obj.rackInfo); + setCoreParameter(str + ".Role", obj.role); + setCoreParameter(str + ".SerialNumber", obj.serialNumber); + setCoreParameter(str + ".HostType", obj.hostType); + setCoreParameter(str + ".SecurityGroupId", obj.securityGroupId); + setCoreParameter(str + ".HpHostDisk", std::to_string(obj.hpHostDisk)); + setCoreParameter(str + ".VswitchId", obj.vswitchId); + setCoreParameter(str + ".ExternalKey", obj.externalKey); + setCoreParameter(str + ".HostName", obj.hostName); + setCoreParameter(str + ".VpcId", obj.vpcId); + setCoreParameter(str + ".InnerIp", obj.innerIp); + setCoreParameter(str + ".ExternalIp", obj.externalIp); + } +} + +std::string AddHpHostRequest::getRegionId()const +{ + return regionId_; +} + +void AddHpHostRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddHpHostRequest::getHpBizId()const +{ + return hpBizId_; +} + +void AddHpHostRequest::setHpBizId(const std::string& hpBizId) +{ + hpBizId_ = hpBizId; + setCoreParameter("HpBizId", hpBizId); +} + +std::string AddHpHostRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddHpHostRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/AddHpHostResult.cc b/emr/src/model/AddHpHostResult.cc new file mode 100644 index 000000000..b944757a5 --- /dev/null +++ b/emr/src/model/AddHpHostResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +AddHpHostResult::AddHpHostResult() : + ServiceResult() +{} + +AddHpHostResult::AddHpHostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddHpHostResult::~AddHpHostResult() +{} + +void AddHpHostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + +} + +std::string AddHpHostResult::getBizId()const +{ + return bizId_; +} + diff --git a/emr/src/model/AddResourceToUsersRequest.cc b/emr/src/model/AddResourceToUsersRequest.cc new file mode 100644 index 000000000..fb85189de --- /dev/null +++ b/emr/src/model/AddResourceToUsersRequest.cc @@ -0,0 +1,238 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::AddResourceToUsersRequest; + +AddResourceToUsersRequest::AddResourceToUsersRequest() : + RpcServiceRequest("emr", "2016-04-08", "AddResourceToUsers") +{} + +AddResourceToUsersRequest::~AddResourceToUsersRequest() +{} + +std::string AddResourceToUsersRequest::getApp_ip()const +{ + return app_ip_; +} + +void AddResourceToUsersRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long AddResourceToUsersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddResourceToUsersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddResourceToUsersRequest::getResourceId()const +{ + return resourceId_; +} + +void AddResourceToUsersRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long AddResourceToUsersRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void AddResourceToUsersRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::vector AddResourceToUsersRequest::getUserIdList()const +{ + return userIdList_; +} + +void AddResourceToUsersRequest::setUserIdList(const std::vector& userIdList) +{ + userIdList_ = userIdList; + for(int i = 0; i!= userIdList.size(); i++) + setCoreParameter("UserIdList."+ std::to_string(i), userIdList.at(i)); +} + +bool AddResourceToUsersRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void AddResourceToUsersRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string AddResourceToUsersRequest::getCallerBid()const +{ + return callerBid_; +} + +void AddResourceToUsersRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string AddResourceToUsersRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void AddResourceToUsersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string AddResourceToUsersRequest::getResourceType()const +{ + return resourceType_; +} + +void AddResourceToUsersRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool AddResourceToUsersRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AddResourceToUsersRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool AddResourceToUsersRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AddResourceToUsersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string AddResourceToUsersRequest::getCallerType()const +{ + return callerType_; +} + +void AddResourceToUsersRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string AddResourceToUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddResourceToUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool AddResourceToUsersRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AddResourceToUsersRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string AddResourceToUsersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AddResourceToUsersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string AddResourceToUsersRequest::getRegionId()const +{ + return regionId_; +} + +void AddResourceToUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddResourceToUsersRequest::getRequestId()const +{ + return requestId_; +} + +void AddResourceToUsersRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::vector AddResourceToUsersRequest::getRoleIdList()const +{ + return roleIdList_; +} + +void AddResourceToUsersRequest::setRoleIdList(const std::vector& roleIdList) +{ + roleIdList_ = roleIdList; + for(int i = 0; i!= roleIdList.size(); i++) + setCoreParameter("RoleIdList."+ std::to_string(i), std::to_string(roleIdList.at(i))); +} + +long AddResourceToUsersRequest::getCallerUid()const +{ + return callerUid_; +} + +void AddResourceToUsersRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/AddResourceToUsersResult.cc b/emr/src/model/AddResourceToUsersResult.cc new file mode 100644 index 000000000..29d96b7a6 --- /dev/null +++ b/emr/src/model/AddResourceToUsersResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +AddResourceToUsersResult::AddResourceToUsersResult() : + ServiceResult() +{} + +AddResourceToUsersResult::AddResourceToUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddResourceToUsersResult::~AddResourceToUsersResult() +{} + +void AddResourceToUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool AddResourceToUsersResult::getPaging()const +{ + return paging_; +} + +bool AddResourceToUsersResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/AddUserResourceRoleRequest.cc b/emr/src/model/AddUserResourceRoleRequest.cc new file mode 100644 index 000000000..58fdee3ba --- /dev/null +++ b/emr/src/model/AddUserResourceRoleRequest.cc @@ -0,0 +1,236 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::AddUserResourceRoleRequest; + +AddUserResourceRoleRequest::AddUserResourceRoleRequest() : + RpcServiceRequest("emr", "2016-04-08", "AddUserResourceRole") +{} + +AddUserResourceRoleRequest::~AddUserResourceRoleRequest() +{} + +std::string AddUserResourceRoleRequest::getApp_ip()const +{ + return app_ip_; +} + +void AddUserResourceRoleRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long AddUserResourceRoleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddUserResourceRoleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddUserResourceRoleRequest::getResourceId()const +{ + return resourceId_; +} + +void AddUserResourceRoleRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long AddUserResourceRoleRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void AddUserResourceRoleRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +long AddUserResourceRoleRequest::getRoleId()const +{ + return roleId_; +} + +void AddUserResourceRoleRequest::setRoleId(long roleId) +{ + roleId_ = roleId; + setCoreParameter("RoleId", std::to_string(roleId)); +} + +bool AddUserResourceRoleRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void AddUserResourceRoleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string AddUserResourceRoleRequest::getCallerBid()const +{ + return callerBid_; +} + +void AddUserResourceRoleRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string AddUserResourceRoleRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void AddUserResourceRoleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string AddUserResourceRoleRequest::getResourceType()const +{ + return resourceType_; +} + +void AddUserResourceRoleRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool AddUserResourceRoleRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AddUserResourceRoleRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool AddUserResourceRoleRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AddUserResourceRoleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string AddUserResourceRoleRequest::getCallerType()const +{ + return callerType_; +} + +void AddUserResourceRoleRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string AddUserResourceRoleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddUserResourceRoleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool AddUserResourceRoleRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AddUserResourceRoleRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string AddUserResourceRoleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AddUserResourceRoleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string AddUserResourceRoleRequest::getRegionId()const +{ + return regionId_; +} + +void AddUserResourceRoleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddUserResourceRoleRequest::getRequestId()const +{ + return requestId_; +} + +void AddUserResourceRoleRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long AddUserResourceRoleRequest::getCallerUid()const +{ + return callerUid_; +} + +void AddUserResourceRoleRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string AddUserResourceRoleRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void AddUserResourceRoleRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + diff --git a/emr/src/model/AddUserResourceRoleResult.cc b/emr/src/model/AddUserResourceRoleResult.cc new file mode 100644 index 000000000..d6e29c318 --- /dev/null +++ b/emr/src/model/AddUserResourceRoleResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +AddUserResourceRoleResult::AddUserResourceRoleResult() : + ServiceResult() +{} + +AddUserResourceRoleResult::AddUserResourceRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddUserResourceRoleResult::~AddUserResourceRoleResult() +{} + +void AddUserResourceRoleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool AddUserResourceRoleResult::getPaging()const +{ + return paging_; +} + +bool AddUserResourceRoleResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/AttachClusterForNoteRequest.cc b/emr/src/model/AttachClusterForNoteRequest.cc index cd34af3c5..64e3c2efb 100644 --- a/emr/src/model/AttachClusterForNoteRequest.cc +++ b/emr/src/model/AttachClusterForNoteRequest.cc @@ -33,7 +33,7 @@ long AttachClusterForNoteRequest::getResourceOwnerId()const void AttachClusterForNoteRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AttachClusterForNoteRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string AttachClusterForNoteRequest::getRegionId()const void AttachClusterForNoteRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AttachClusterForNoteRequest::getId()const @@ -55,7 +55,7 @@ std::string AttachClusterForNoteRequest::getId()const void AttachClusterForNoteRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string AttachClusterForNoteRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string AttachClusterForNoteRequest::getClusterId()const void AttachClusterForNoteRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string AttachClusterForNoteRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string AttachClusterForNoteRequest::getAccessKeyId()const void AttachClusterForNoteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/AttachClusterForNoteResult.cc b/emr/src/model/AttachClusterForNoteResult.cc index 22d3f85f8..ec0c77994 100644 --- a/emr/src/model/AttachClusterForNoteResult.cc +++ b/emr/src/model/AttachClusterForNoteResult.cc @@ -35,10 +35,13 @@ AttachClusterForNoteResult::~AttachClusterForNoteResult() void AttachClusterForNoteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/AttachPubIpRequest.cc b/emr/src/model/AttachPubIpRequest.cc index a551f9f0a..f77f3986e 100644 --- a/emr/src/model/AttachPubIpRequest.cc +++ b/emr/src/model/AttachPubIpRequest.cc @@ -33,7 +33,7 @@ long AttachPubIpRequest::getResourceOwnerId()const void AttachPubIpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AttachPubIpRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string AttachPubIpRequest::getRegionId()const void AttachPubIpRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::vector AttachPubIpRequest::getInstanceIds()const @@ -56,7 +56,7 @@ void AttachPubIpRequest::setInstanceIds(const std::vector& instance { instanceIds_ = instanceIds; for(int i = 0; i!= instanceIds.size(); i++) - setParameter("InstanceIds."+ std::to_string(i), instanceIds.at(i)); + setCoreParameter("InstanceIds."+ std::to_string(i), instanceIds.at(i)); } std::string AttachPubIpRequest::getClusterId()const @@ -67,7 +67,7 @@ std::string AttachPubIpRequest::getClusterId()const void AttachPubIpRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string AttachPubIpRequest::getAccessKeyId()const @@ -78,6 +78,6 @@ std::string AttachPubIpRequest::getAccessKeyId()const void AttachPubIpRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/AttachPubIpResult.cc b/emr/src/model/AttachPubIpResult.cc index aaf90a2f6..0e777eeb7 100644 --- a/emr/src/model/AttachPubIpResult.cc +++ b/emr/src/model/AttachPubIpResult.cc @@ -35,10 +35,13 @@ AttachPubIpResult::~AttachPubIpResult() void AttachPubIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/AuthorizeSecurityGroupRequest.cc b/emr/src/model/AuthorizeSecurityGroupRequest.cc index e706f1422..a7870e102 100644 --- a/emr/src/model/AuthorizeSecurityGroupRequest.cc +++ b/emr/src/model/AuthorizeSecurityGroupRequest.cc @@ -33,7 +33,7 @@ std::string AuthorizeSecurityGroupRequest::getBizType()const void AuthorizeSecurityGroupRequest::setBizType(const std::string& bizType) { bizType_ = bizType; - setParameter("BizType", bizType); + setCoreParameter("BizType", bizType); } long AuthorizeSecurityGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AuthorizeSecurityGroupRequest::getResourceOwnerId()const void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AuthorizeSecurityGroupRequest::getBizContent()const @@ -55,7 +55,7 @@ std::string AuthorizeSecurityGroupRequest::getBizContent()const void AuthorizeSecurityGroupRequest::setBizContent(const std::string& bizContent) { bizContent_ = bizContent; - setParameter("BizContent", bizContent); + setCoreParameter("BizContent", bizContent); } std::string AuthorizeSecurityGroupRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string AuthorizeSecurityGroupRequest::getRegionId()const void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AuthorizeSecurityGroupRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string AuthorizeSecurityGroupRequest::getClusterId()const void AuthorizeSecurityGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const void AuthorizeSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/AuthorizeSecurityGroupResult.cc b/emr/src/model/AuthorizeSecurityGroupResult.cc index 16ea3cbf8..d0ae97aee 100644 --- a/emr/src/model/AuthorizeSecurityGroupResult.cc +++ b/emr/src/model/AuthorizeSecurityGroupResult.cc @@ -35,10 +35,13 @@ AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult() void AuthorizeSecurityGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/CancelETLJobReleaseRequest.cc b/emr/src/model/CancelETLJobReleaseRequest.cc index 5c8333be2..1696576a4 100644 --- a/emr/src/model/CancelETLJobReleaseRequest.cc +++ b/emr/src/model/CancelETLJobReleaseRequest.cc @@ -33,7 +33,7 @@ long CancelETLJobReleaseRequest::getResourceOwnerId()const void CancelETLJobReleaseRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CancelETLJobReleaseRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CancelETLJobReleaseRequest::getRegionId()const void CancelETLJobReleaseRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CancelETLJobReleaseRequest::getEtlJobId()const @@ -55,7 +55,7 @@ std::string CancelETLJobReleaseRequest::getEtlJobId()const void CancelETLJobReleaseRequest::setEtlJobId(const std::string& etlJobId) { etlJobId_ = etlJobId; - setParameter("EtlJobId", etlJobId); + setCoreParameter("EtlJobId", etlJobId); } std::string CancelETLJobReleaseRequest::getReleaseId()const @@ -66,7 +66,7 @@ std::string CancelETLJobReleaseRequest::getReleaseId()const void CancelETLJobReleaseRequest::setReleaseId(const std::string& releaseId) { releaseId_ = releaseId; - setParameter("ReleaseId", releaseId); + setCoreParameter("ReleaseId", releaseId); } std::string CancelETLJobReleaseRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string CancelETLJobReleaseRequest::getAccessKeyId()const void CancelETLJobReleaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CancelETLJobReleaseResult.cc b/emr/src/model/CancelETLJobReleaseResult.cc index b8d3417ed..36c7550df 100644 --- a/emr/src/model/CancelETLJobReleaseResult.cc +++ b/emr/src/model/CancelETLJobReleaseResult.cc @@ -35,10 +35,13 @@ CancelETLJobReleaseResult::~CancelETLJobReleaseResult() void CancelETLJobReleaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/CancelOrderRequest.cc b/emr/src/model/CancelOrderRequest.cc index c8917e568..3b481b5d8 100644 --- a/emr/src/model/CancelOrderRequest.cc +++ b/emr/src/model/CancelOrderRequest.cc @@ -33,7 +33,7 @@ long CancelOrderRequest::getResourceOwnerId()const void CancelOrderRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CancelOrderRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CancelOrderRequest::getRegionId()const void CancelOrderRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CancelOrderRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string CancelOrderRequest::getClusterId()const void CancelOrderRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CancelOrderRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string CancelOrderRequest::getAccessKeyId()const void CancelOrderRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CancelOrderResult.cc b/emr/src/model/CancelOrderResult.cc index bf81ac891..99526a9b5 100644 --- a/emr/src/model/CancelOrderResult.cc +++ b/emr/src/model/CancelOrderResult.cc @@ -35,10 +35,13 @@ CancelOrderResult::~CancelOrderResult() void CancelOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["clusterId"].isNull()) clusterId_ = value["clusterId"].asString(); diff --git a/emr/src/model/CheckDataSourceRequest.cc b/emr/src/model/CheckDataSourceRequest.cc index 3b361c40c..0da1c15dc 100644 --- a/emr/src/model/CheckDataSourceRequest.cc +++ b/emr/src/model/CheckDataSourceRequest.cc @@ -33,7 +33,7 @@ long CheckDataSourceRequest::getResourceOwnerId()const void CheckDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CheckDataSourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CheckDataSourceRequest::getRegionId()const void CheckDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CheckDataSourceRequest::getConf()const @@ -55,7 +55,7 @@ std::string CheckDataSourceRequest::getConf()const void CheckDataSourceRequest::setConf(const std::string& conf) { conf_ = conf; - setParameter("Conf", conf); + setCoreParameter("Conf", conf); } std::string CheckDataSourceRequest::getId()const @@ -66,7 +66,7 @@ std::string CheckDataSourceRequest::getId()const void CheckDataSourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string CheckDataSourceRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string CheckDataSourceRequest::getClusterId()const void CheckDataSourceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CheckDataSourceRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string CheckDataSourceRequest::getAccessKeyId()const void CheckDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CheckDataSourceResult.cc b/emr/src/model/CheckDataSourceResult.cc index f991c45cb..3cda0548c 100644 --- a/emr/src/model/CheckDataSourceResult.cc +++ b/emr/src/model/CheckDataSourceResult.cc @@ -35,10 +35,13 @@ CheckDataSourceResult::~CheckDataSourceResult() void CheckDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CommandId"].isNull()) commandId_ = value["CommandId"].asString(); diff --git a/emr/src/model/CloneDataSourceRequest.cc b/emr/src/model/CloneDataSourceRequest.cc index 9b0a13f34..0c1809fc6 100644 --- a/emr/src/model/CloneDataSourceRequest.cc +++ b/emr/src/model/CloneDataSourceRequest.cc @@ -33,7 +33,7 @@ long CloneDataSourceRequest::getResourceOwnerId()const void CloneDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CloneDataSourceRequest::getRegionId()const @@ -44,7 +44,18 @@ std::string CloneDataSourceRequest::getRegionId()const void CloneDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); +} + +std::string CloneDataSourceRequest::getName()const +{ + return name_; +} + +void CloneDataSourceRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); } std::string CloneDataSourceRequest::getId()const @@ -55,7 +66,7 @@ std::string CloneDataSourceRequest::getId()const void CloneDataSourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string CloneDataSourceRequest::getAccessKeyId()const @@ -66,6 +77,6 @@ std::string CloneDataSourceRequest::getAccessKeyId()const void CloneDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CloneDataSourceResult.cc b/emr/src/model/CloneDataSourceResult.cc index 68e48aa10..7bfb8b50b 100644 --- a/emr/src/model/CloneDataSourceResult.cc +++ b/emr/src/model/CloneDataSourceResult.cc @@ -35,10 +35,13 @@ CloneDataSourceResult::~CloneDataSourceResult() void CloneDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CloneETLJobRequest.cc b/emr/src/model/CloneETLJobRequest.cc index 821368eda..a12d439e8 100644 --- a/emr/src/model/CloneETLJobRequest.cc +++ b/emr/src/model/CloneETLJobRequest.cc @@ -33,7 +33,7 @@ long CloneETLJobRequest::getResourceOwnerId()const void CloneETLJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CloneETLJobRequest::getRegionId()const @@ -44,7 +44,18 @@ std::string CloneETLJobRequest::getRegionId()const void CloneETLJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); +} + +std::string CloneETLJobRequest::getName()const +{ + return name_; +} + +void CloneETLJobRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); } std::string CloneETLJobRequest::getId()const @@ -55,7 +66,7 @@ std::string CloneETLJobRequest::getId()const void CloneETLJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string CloneETLJobRequest::getAccessKeyId()const @@ -66,6 +77,6 @@ std::string CloneETLJobRequest::getAccessKeyId()const void CloneETLJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CloneETLJobResult.cc b/emr/src/model/CloneETLJobResult.cc index ce2975a90..58071333e 100644 --- a/emr/src/model/CloneETLJobResult.cc +++ b/emr/src/model/CloneETLJobResult.cc @@ -35,10 +35,13 @@ CloneETLJobResult::~CloneETLJobResult() void CloneETLJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CloneFlowJobRequest.cc b/emr/src/model/CloneFlowJobRequest.cc index 4ee4189e1..f4679ba0b 100644 --- a/emr/src/model/CloneFlowJobRequest.cc +++ b/emr/src/model/CloneFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string CloneFlowJobRequest::getRegionId()const void CloneFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CloneFlowJobRequest::getId()const @@ -44,7 +44,7 @@ std::string CloneFlowJobRequest::getId()const void CloneFlowJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string CloneFlowJobRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string CloneFlowJobRequest::getProjectId()const void CloneFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/CloneFlowJobResult.cc b/emr/src/model/CloneFlowJobResult.cc index c0c950ade..b20255591 100644 --- a/emr/src/model/CloneFlowJobResult.cc +++ b/emr/src/model/CloneFlowJobResult.cc @@ -35,10 +35,13 @@ CloneFlowJobResult::~CloneFlowJobResult() void CloneFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CloneFlowRequest.cc b/emr/src/model/CloneFlowRequest.cc index b7b32629b..4f115ffa2 100644 --- a/emr/src/model/CloneFlowRequest.cc +++ b/emr/src/model/CloneFlowRequest.cc @@ -33,7 +33,7 @@ std::string CloneFlowRequest::getRegionId()const void CloneFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CloneFlowRequest::getId()const @@ -44,7 +44,7 @@ std::string CloneFlowRequest::getId()const void CloneFlowRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string CloneFlowRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string CloneFlowRequest::getProjectId()const void CloneFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/CloneFlowResult.cc b/emr/src/model/CloneFlowResult.cc index a071041ea..ea245936a 100644 --- a/emr/src/model/CloneFlowResult.cc +++ b/emr/src/model/CloneFlowResult.cc @@ -35,10 +35,13 @@ CloneFlowResult::~CloneFlowResult() void CloneFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CommonApiWhiteListRequest.cc b/emr/src/model/CommonApiWhiteListRequest.cc index d21589691..01b701c48 100644 --- a/emr/src/model/CommonApiWhiteListRequest.cc +++ b/emr/src/model/CommonApiWhiteListRequest.cc @@ -33,7 +33,7 @@ long CommonApiWhiteListRequest::getResourceOwnerId()const void CommonApiWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CommonApiWhiteListRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CommonApiWhiteListRequest::getRegionId()const void CommonApiWhiteListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CommonApiWhiteListRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string CommonApiWhiteListRequest::getAccessKeyId()const void CommonApiWhiteListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CommonApiWhiteListResult.cc b/emr/src/model/CommonApiWhiteListResult.cc index 176e73085..0e2a2b823 100644 --- a/emr/src/model/CommonApiWhiteListResult.cc +++ b/emr/src/model/CommonApiWhiteListResult.cc @@ -35,10 +35,13 @@ CommonApiWhiteListResult::~CommonApiWhiteListResult() void CommonApiWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["WhiteList"].isNull()) whiteList_ = value["WhiteList"].asString(); diff --git a/emr/src/model/ContextQueryLogRequest.cc b/emr/src/model/ContextQueryLogRequest.cc index 7b6841ae4..098608cad 100644 --- a/emr/src/model/ContextQueryLogRequest.cc +++ b/emr/src/model/ContextQueryLogRequest.cc @@ -33,7 +33,7 @@ std::string ContextQueryLogRequest::getPackId()const void ContextQueryLogRequest::setPackId(const std::string& packId) { packId_ = packId; - setParameter("PackId", packId); + setCoreParameter("PackId", packId); } long ContextQueryLogRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ContextQueryLogRequest::getResourceOwnerId()const void ContextQueryLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int ContextQueryLogRequest::getTotalOffset()const @@ -55,7 +55,7 @@ int ContextQueryLogRequest::getTotalOffset()const void ContextQueryLogRequest::setTotalOffset(int totalOffset) { totalOffset_ = totalOffset; - setParameter("TotalOffset", std::to_string(totalOffset)); + setCoreParameter("TotalOffset", std::to_string(totalOffset)); } int ContextQueryLogRequest::getSize()const @@ -66,7 +66,7 @@ int ContextQueryLogRequest::getSize()const void ContextQueryLogRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string ContextQueryLogRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string ContextQueryLogRequest::getRegionId()const void ContextQueryLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ContextQueryLogRequest::getPackMeta()const @@ -88,7 +88,7 @@ std::string ContextQueryLogRequest::getPackMeta()const void ContextQueryLogRequest::setPackMeta(const std::string& packMeta) { packMeta_ = packMeta; - setParameter("PackMeta", packMeta); + setCoreParameter("PackMeta", packMeta); } int ContextQueryLogRequest::getFrom()const @@ -99,7 +99,7 @@ int ContextQueryLogRequest::getFrom()const void ContextQueryLogRequest::setFrom(int from) { from_ = from; - setParameter("From", std::to_string(from)); + setCoreParameter("From", std::to_string(from)); } std::string ContextQueryLogRequest::getClusterId()const @@ -110,7 +110,7 @@ std::string ContextQueryLogRequest::getClusterId()const void ContextQueryLogRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ContextQueryLogRequest::getTo()const @@ -121,7 +121,7 @@ int ContextQueryLogRequest::getTo()const void ContextQueryLogRequest::setTo(int to) { to_ = to; - setParameter("To", std::to_string(to)); + setCoreParameter("To", std::to_string(to)); } bool ContextQueryLogRequest::getReverse()const @@ -132,7 +132,7 @@ bool ContextQueryLogRequest::getReverse()const void ContextQueryLogRequest::setReverse(bool reverse) { reverse_ = reverse; - setParameter("Reverse", std::to_string(reverse)); + setCoreParameter("Reverse", reverse ? "true" : "false"); } std::string ContextQueryLogRequest::getLogStore()const @@ -143,7 +143,7 @@ std::string ContextQueryLogRequest::getLogStore()const void ContextQueryLogRequest::setLogStore(const std::string& logStore) { logStore_ = logStore; - setParameter("LogStore", logStore); + setCoreParameter("LogStore", logStore); } std::string ContextQueryLogRequest::getAccessKeyId()const @@ -154,6 +154,6 @@ std::string ContextQueryLogRequest::getAccessKeyId()const void ContextQueryLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ContextQueryLogResult.cc b/emr/src/model/ContextQueryLogResult.cc index 41b8335ac..01c098144 100644 --- a/emr/src/model/ContextQueryLogResult.cc +++ b/emr/src/model/ContextQueryLogResult.cc @@ -35,10 +35,13 @@ ContextQueryLogResult::~ContextQueryLogResult() void ContextQueryLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogs = value["Logs"]["Item"]; for (auto value : allLogs) diff --git a/emr/src/model/CreateAlertContactRequest.cc b/emr/src/model/CreateAlertContactRequest.cc index 061109f79..fdcef63a4 100644 --- a/emr/src/model/CreateAlertContactRequest.cc +++ b/emr/src/model/CreateAlertContactRequest.cc @@ -33,7 +33,7 @@ std::string CreateAlertContactRequest::getEmailVerificationCode()const void CreateAlertContactRequest::setEmailVerificationCode(const std::string& emailVerificationCode) { emailVerificationCode_ = emailVerificationCode; - setParameter("EmailVerificationCode", emailVerificationCode); + setCoreParameter("EmailVerificationCode", emailVerificationCode); } long CreateAlertContactRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateAlertContactRequest::getResourceOwnerId()const void CreateAlertContactRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateAlertContactRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateAlertContactRequest::getRegionId()const void CreateAlertContactRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateAlertContactRequest::getPhoneNumberVerificationCode()const @@ -66,7 +66,7 @@ std::string CreateAlertContactRequest::getPhoneNumberVerificationCode()const void CreateAlertContactRequest::setPhoneNumberVerificationCode(const std::string& phoneNumberVerificationCode) { phoneNumberVerificationCode_ = phoneNumberVerificationCode; - setParameter("PhoneNumberVerificationCode", phoneNumberVerificationCode); + setCoreParameter("PhoneNumberVerificationCode", phoneNumberVerificationCode); } std::string CreateAlertContactRequest::getName()const @@ -77,7 +77,7 @@ std::string CreateAlertContactRequest::getName()const void CreateAlertContactRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateAlertContactRequest::getPhoneNumber()const @@ -88,7 +88,7 @@ std::string CreateAlertContactRequest::getPhoneNumber()const void CreateAlertContactRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } std::string CreateAlertContactRequest::getEmail()const @@ -99,7 +99,7 @@ std::string CreateAlertContactRequest::getEmail()const void CreateAlertContactRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string CreateAlertContactRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string CreateAlertContactRequest::getAccessKeyId()const void CreateAlertContactRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateAlertContactResult.cc b/emr/src/model/CreateAlertContactResult.cc index 1c11f0ef8..6568f4664 100644 --- a/emr/src/model/CreateAlertContactResult.cc +++ b/emr/src/model/CreateAlertContactResult.cc @@ -35,10 +35,13 @@ CreateAlertContactResult::~CreateAlertContactResult() void CreateAlertContactResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/emr/src/model/CreateAlertDingDingGroupRequest.cc b/emr/src/model/CreateAlertDingDingGroupRequest.cc index 0ceb17985..882d70da0 100644 --- a/emr/src/model/CreateAlertDingDingGroupRequest.cc +++ b/emr/src/model/CreateAlertDingDingGroupRequest.cc @@ -33,7 +33,7 @@ long CreateAlertDingDingGroupRequest::getResourceOwnerId()const void CreateAlertDingDingGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateAlertDingDingGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateAlertDingDingGroupRequest::getRegionId()const void CreateAlertDingDingGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateAlertDingDingGroupRequest::getName()const @@ -55,7 +55,7 @@ std::string CreateAlertDingDingGroupRequest::getName()const void CreateAlertDingDingGroupRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateAlertDingDingGroupRequest::getDescription()const @@ -66,7 +66,7 @@ std::string CreateAlertDingDingGroupRequest::getDescription()const void CreateAlertDingDingGroupRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateAlertDingDingGroupRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string CreateAlertDingDingGroupRequest::getAccessKeyId()const void CreateAlertDingDingGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateAlertDingDingGroupRequest::getWebHookUrl()const @@ -88,6 +88,6 @@ std::string CreateAlertDingDingGroupRequest::getWebHookUrl()const void CreateAlertDingDingGroupRequest::setWebHookUrl(const std::string& webHookUrl) { webHookUrl_ = webHookUrl; - setParameter("WebHookUrl", webHookUrl); + setCoreParameter("WebHookUrl", webHookUrl); } diff --git a/emr/src/model/CreateAlertDingDingGroupResult.cc b/emr/src/model/CreateAlertDingDingGroupResult.cc index a9fc0838a..fcd98b9ab 100644 --- a/emr/src/model/CreateAlertDingDingGroupResult.cc +++ b/emr/src/model/CreateAlertDingDingGroupResult.cc @@ -35,10 +35,13 @@ CreateAlertDingDingGroupResult::~CreateAlertDingDingGroupResult() void CreateAlertDingDingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/emr/src/model/CreateAlertUserGroupRequest.cc b/emr/src/model/CreateAlertUserGroupRequest.cc index e072a9ebf..58fcbfbcf 100644 --- a/emr/src/model/CreateAlertUserGroupRequest.cc +++ b/emr/src/model/CreateAlertUserGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateAlertUserGroupRequest::getUserList()const void CreateAlertUserGroupRequest::setUserList(const std::string& userList) { userList_ = userList; - setParameter("UserList", userList); + setCoreParameter("UserList", userList); } long CreateAlertUserGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateAlertUserGroupRequest::getResourceOwnerId()const void CreateAlertUserGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateAlertUserGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateAlertUserGroupRequest::getRegionId()const void CreateAlertUserGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateAlertUserGroupRequest::getName()const @@ -66,7 +66,7 @@ std::string CreateAlertUserGroupRequest::getName()const void CreateAlertUserGroupRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateAlertUserGroupRequest::getDescription()const @@ -77,7 +77,7 @@ std::string CreateAlertUserGroupRequest::getDescription()const void CreateAlertUserGroupRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateAlertUserGroupRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string CreateAlertUserGroupRequest::getAccessKeyId()const void CreateAlertUserGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateAlertUserGroupResult.cc b/emr/src/model/CreateAlertUserGroupResult.cc index 37be0d505..e03c34930 100644 --- a/emr/src/model/CreateAlertUserGroupResult.cc +++ b/emr/src/model/CreateAlertUserGroupResult.cc @@ -35,10 +35,13 @@ CreateAlertUserGroupResult::~CreateAlertUserGroupResult() void CreateAlertUserGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/emr/src/model/CreateBackupPlanRequest.cc b/emr/src/model/CreateBackupPlanRequest.cc new file mode 100644 index 000000000..b7ba85e04 --- /dev/null +++ b/emr/src/model/CreateBackupPlanRequest.cc @@ -0,0 +1,236 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::CreateBackupPlanRequest; + +CreateBackupPlanRequest::CreateBackupPlanRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateBackupPlan") +{} + +CreateBackupPlanRequest::~CreateBackupPlanRequest() +{} + +std::string CreateBackupPlanRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateBackupPlanRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long CreateBackupPlanRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBackupPlanRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateBackupPlanRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateBackupPlanRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateBackupPlanRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateBackupPlanRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateBackupPlanRequest::getDescription()const +{ + return description_; +} + +void CreateBackupPlanRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateBackupPlanRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateBackupPlanRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string CreateBackupPlanRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateBackupPlanRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string CreateBackupPlanRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateBackupPlanRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool CreateBackupPlanRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateBackupPlanRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateBackupPlanRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateBackupPlanRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string CreateBackupPlanRequest::getCallerType()const +{ + return callerType_; +} + +void CreateBackupPlanRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateBackupPlanRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateBackupPlanRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool CreateBackupPlanRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateBackupPlanRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateBackupPlanRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateBackupPlanRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateBackupPlanRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBackupPlanRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateBackupPlanRequest::getRequestId()const +{ + return requestId_; +} + +void CreateBackupPlanRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string CreateBackupPlanRequest::getName()const +{ + return name_; +} + +void CreateBackupPlanRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateBackupPlanRequest::getRootPath()const +{ + return rootPath_; +} + +void CreateBackupPlanRequest::setRootPath(const std::string& rootPath) +{ + rootPath_ = rootPath; + setCoreParameter("RootPath", rootPath); +} + +long CreateBackupPlanRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateBackupPlanRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/CreateBackupPlanResult.cc b/emr/src/model/CreateBackupPlanResult.cc new file mode 100644 index 000000000..de5e29413 --- /dev/null +++ b/emr/src/model/CreateBackupPlanResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateBackupPlanResult::CreateBackupPlanResult() : + ServiceResult() +{} + +CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupPlanResult::~CreateBackupPlanResult() +{} + +void CreateBackupPlanResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["RootPath"].isNull()) + rootPath_ = value["RootPath"].asString(); + +} + +std::string CreateBackupPlanResult::getRootPath()const +{ + return rootPath_; +} + +std::string CreateBackupPlanResult::getDescription()const +{ + return description_; +} + +std::string CreateBackupPlanResult::getClusterId()const +{ + return clusterId_; +} + +std::string CreateBackupPlanResult::getId()const +{ + return id_; +} + +std::string CreateBackupPlanResult::getName()const +{ + return name_; +} + diff --git a/emr/src/model/CreateBackupRequest.cc b/emr/src/model/CreateBackupRequest.cc new file mode 100644 index 000000000..c8b91c91b --- /dev/null +++ b/emr/src/model/CreateBackupRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::CreateBackupRequest; + +CreateBackupRequest::CreateBackupRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateBackup") +{} + +CreateBackupRequest::~CreateBackupRequest() +{} + +std::string CreateBackupRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateBackupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long CreateBackupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateBackupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateBackupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateBackupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateBackupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateBackupRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void CreateBackupRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + +std::string CreateBackupRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateBackupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string CreateBackupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateBackupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateBackupRequest::getMetadataType()const +{ + return metadataType_; +} + +void CreateBackupRequest::setMetadataType(const std::string& metadataType) +{ + metadataType_ = metadataType; + setCoreParameter("MetadataType", metadataType); +} + +bool CreateBackupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateBackupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateBackupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateBackupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string CreateBackupRequest::getCallerType()const +{ + return callerType_; +} + +void CreateBackupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateBackupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateBackupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool CreateBackupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateBackupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateBackupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateBackupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateBackupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBackupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateBackupRequest::getRequestId()const +{ + return requestId_; +} + +void CreateBackupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long CreateBackupRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateBackupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/CreateBackupResult.cc b/emr/src/model/CreateBackupResult.cc new file mode 100644 index 000000000..96f8f93ed --- /dev/null +++ b/emr/src/model/CreateBackupResult.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateBackupResult::CreateBackupResult() : + ServiceResult() +{} + +CreateBackupResult::CreateBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupResult::~CreateBackupResult() +{} + +void CreateBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + if(!value["DataSourceId"].isNull()) + dataSourceId_ = std::stol(value["DataSourceId"].asString()); + if(!value["TaskType"].isNull()) + taskType_ = value["TaskType"].asString(); + if(!value["TaskStatus"].isNull()) + taskStatus_ = value["TaskStatus"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["TaskDetail"].isNull()) + taskDetail_ = value["TaskDetail"].asString(); + if(!value["TaskResultDetail"].isNull()) + taskResultDetail_ = value["TaskResultDetail"].asString(); + if(!value["TaskProcess"].isNull()) + taskProcess_ = std::stoi(value["TaskProcess"].asString()); + if(!value["TriggerUser"].isNull()) + triggerUser_ = value["TriggerUser"].asString(); + if(!value["TriggerType"].isNull()) + triggerType_ = value["TriggerType"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + gmtModified_ = std::stol(value["GmtModified"].asString()); + if(!value["ClusterBizId"].isNull()) + clusterBizId_ = value["ClusterBizId"].asString(); + if(!value["HostName"].isNull()) + hostName_ = value["HostName"].asString(); + if(!value["EcmTaskId"].isNull()) + ecmTaskId_ = std::stol(value["EcmTaskId"].asString()); + +} + +std::string CreateBackupResult::getTriggerType()const +{ + return triggerType_; +} + +long CreateBackupResult::getEndTime()const +{ + return endTime_; +} + +long CreateBackupResult::getStartTime()const +{ + return startTime_; +} + +long CreateBackupResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string CreateBackupResult::getTaskStatus()const +{ + return taskStatus_; +} + +std::string CreateBackupResult::getTaskDetail()const +{ + return taskDetail_; +} + +std::string CreateBackupResult::getTriggerUser()const +{ + return triggerUser_; +} + +long CreateBackupResult::getGmtCreate()const +{ + return gmtCreate_; +} + +int CreateBackupResult::getTaskProcess()const +{ + return taskProcess_; +} + +std::string CreateBackupResult::getClusterBizId()const +{ + return clusterBizId_; +} + +std::string CreateBackupResult::getTaskType()const +{ + return taskType_; +} + +std::string CreateBackupResult::getBizId()const +{ + return bizId_; +} + +long CreateBackupResult::getDataSourceId()const +{ + return dataSourceId_; +} + +std::string CreateBackupResult::getHostName()const +{ + return hostName_; +} + +long CreateBackupResult::getEcmTaskId()const +{ + return ecmTaskId_; +} + +std::string CreateBackupResult::getTaskResultDetail()const +{ + return taskResultDetail_; +} + diff --git a/emr/src/model/CreateBackupRuleRequest.cc b/emr/src/model/CreateBackupRuleRequest.cc new file mode 100644 index 000000000..88e8f8455 --- /dev/null +++ b/emr/src/model/CreateBackupRuleRequest.cc @@ -0,0 +1,247 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::CreateBackupRuleRequest; + +CreateBackupRuleRequest::CreateBackupRuleRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateBackupRule") +{} + +CreateBackupRuleRequest::~CreateBackupRuleRequest() +{} + +std::string CreateBackupRuleRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateBackupRuleRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long CreateBackupRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBackupRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateBackupRuleRequest::getBackupMethodType()const +{ + return backupMethodType_; +} + +void CreateBackupRuleRequest::setBackupMethodType(const std::string& backupMethodType) +{ + backupMethodType_ = backupMethodType; + setCoreParameter("BackupMethodType", backupMethodType); +} + +long CreateBackupRuleRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateBackupRuleRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateBackupRuleRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateBackupRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateBackupRuleRequest::getDescription()const +{ + return description_; +} + +void CreateBackupRuleRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateBackupRuleRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void CreateBackupRuleRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + +std::string CreateBackupRuleRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateBackupRuleRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string CreateBackupRuleRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateBackupRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateBackupRuleRequest::getMetadataType()const +{ + return metadataType_; +} + +void CreateBackupRuleRequest::setMetadataType(const std::string& metadataType) +{ + metadataType_ = metadataType; + setCoreParameter("MetadataType", metadataType); +} + +bool CreateBackupRuleRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateBackupRuleRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateBackupRuleRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateBackupRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string CreateBackupRuleRequest::getCallerType()const +{ + return callerType_; +} + +void CreateBackupRuleRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateBackupRuleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateBackupRuleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool CreateBackupRuleRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateBackupRuleRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateBackupRuleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateBackupRuleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateBackupRuleRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBackupRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateBackupRuleRequest::getRequestId()const +{ + return requestId_; +} + +void CreateBackupRuleRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string CreateBackupRuleRequest::getName()const +{ + return name_; +} + +void CreateBackupRuleRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long CreateBackupRuleRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateBackupRuleRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/CreateBackupRuleResult.cc b/emr/src/model/CreateBackupRuleResult.cc new file mode 100644 index 000000000..5c5c61640 --- /dev/null +++ b/emr/src/model/CreateBackupRuleResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateBackupRuleResult::CreateBackupRuleResult() : + ServiceResult() +{} + +CreateBackupRuleResult::CreateBackupRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupRuleResult::~CreateBackupRuleResult() +{} + +void CreateBackupRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["MetadataType"].isNull()) + metadataType_ = value["MetadataType"].asString(); + if(!value["BackupMethodType"].isNull()) + backupMethodType_ = value["BackupMethodType"].asString(); + if(!value["BackupPlanId"].isNull()) + backupPlanId_ = value["BackupPlanId"].asString(); + +} + +std::string CreateBackupRuleResult::getDescription()const +{ + return description_; +} + +std::string CreateBackupRuleResult::getMetadataType()const +{ + return metadataType_; +} + +std::string CreateBackupRuleResult::getBackupPlanId()const +{ + return backupPlanId_; +} + +std::string CreateBackupRuleResult::getId()const +{ + return id_; +} + +std::string CreateBackupRuleResult::getBackupMethodType()const +{ + return backupMethodType_; +} + +std::string CreateBackupRuleResult::getName()const +{ + return name_; +} + diff --git a/emr/src/model/CreateBatchUsersRequest.cc b/emr/src/model/CreateBatchUsersRequest.cc new file mode 100644 index 000000000..ff2e568e9 --- /dev/null +++ b/emr/src/model/CreateBatchUsersRequest.cc @@ -0,0 +1,246 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::CreateBatchUsersRequest; + +CreateBatchUsersRequest::CreateBatchUsersRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateBatchUsers") +{} + +CreateBatchUsersRequest::~CreateBatchUsersRequest() +{} + +std::string CreateBatchUsersRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateBatchUsersRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long CreateBatchUsersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBatchUsersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector CreateBatchUsersRequest::getUserBaseParamList()const +{ + return userBaseParamList_; +} + +void CreateBatchUsersRequest::setUserBaseParamList(const std::vector& userBaseParamList) +{ + userBaseParamList_ = userBaseParamList; + int i = 0; + for(int i = 0; i!= userBaseParamList.size(); i++) { + auto obj = userBaseParamList.at(i); + std::string str ="UserBaseParamList."+ std::to_string(i); + setCoreParameter(str + ".AliyunUserId", obj.aliyunUserId); + setCoreParameter(str + ".UserName", obj.userName); + setCoreParameter(str + ".UserType", obj.userType); + setCoreParameter(str + ".IsSuperAdmin", obj.isSuperAdmin); + } +} + +long CreateBatchUsersRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateBatchUsersRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::vector CreateBatchUsersRequest::getRoleId()const +{ + return roleId_; +} + +void CreateBatchUsersRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int i = 0; i!= roleId.size(); i++) + setCoreParameter("RoleId."+ std::to_string(i), std::to_string(roleId.at(i))); +} + +std::vector CreateBatchUsersRequest::getGroupId()const +{ + return groupId_; +} + +void CreateBatchUsersRequest::setGroupId(const std::vector& groupId) +{ + groupId_ = groupId; + for(int i = 0; i!= groupId.size(); i++) + setCoreParameter("GroupId."+ std::to_string(i), std::to_string(groupId.at(i))); +} + +bool CreateBatchUsersRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateBatchUsersRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateBatchUsersRequest::getDescription()const +{ + return description_; +} + +void CreateBatchUsersRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateBatchUsersRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateBatchUsersRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string CreateBatchUsersRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateBatchUsersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool CreateBatchUsersRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateBatchUsersRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateBatchUsersRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateBatchUsersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string CreateBatchUsersRequest::getCallerType()const +{ + return callerType_; +} + +void CreateBatchUsersRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateBatchUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateBatchUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool CreateBatchUsersRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateBatchUsersRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateBatchUsersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateBatchUsersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateBatchUsersRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBatchUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateBatchUsersRequest::getRequestId()const +{ + return requestId_; +} + +void CreateBatchUsersRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long CreateBatchUsersRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateBatchUsersRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/CreateBatchUsersResult.cc b/emr/src/model/CreateBatchUsersResult.cc new file mode 100644 index 000000000..323a4f866 --- /dev/null +++ b/emr/src/model/CreateBatchUsersResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateBatchUsersResult::CreateBatchUsersResult() : + ServiceResult() +{} + +CreateBatchUsersResult::CreateBatchUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBatchUsersResult::~CreateBatchUsersResult() +{} + +void CreateBatchUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool CreateBatchUsersResult::getPaging()const +{ + return paging_; +} + +bool CreateBatchUsersResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/CreateClusterHostGroupRequest.cc b/emr/src/model/CreateClusterHostGroupRequest.cc index ecd96bac4..2819cf253 100644 --- a/emr/src/model/CreateClusterHostGroupRequest.cc +++ b/emr/src/model/CreateClusterHostGroupRequest.cc @@ -33,7 +33,7 @@ long CreateClusterHostGroupRequest::getResourceOwnerId()const void CreateClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateClusterHostGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateClusterHostGroupRequest::getRegionId()const void CreateClusterHostGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateClusterHostGroupRequest::getComment()const @@ -55,7 +55,7 @@ std::string CreateClusterHostGroupRequest::getComment()const void CreateClusterHostGroupRequest::setComment(const std::string& comment) { comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("Comment", comment); } std::string CreateClusterHostGroupRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string CreateClusterHostGroupRequest::getClusterId()const void CreateClusterHostGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateClusterHostGroupRequest::getHostGroupName()const @@ -77,7 +77,7 @@ std::string CreateClusterHostGroupRequest::getHostGroupName()const void CreateClusterHostGroupRequest::setHostGroupName(const std::string& hostGroupName) { hostGroupName_ = hostGroupName; - setParameter("HostGroupName", hostGroupName); + setCoreParameter("HostGroupName", hostGroupName); } std::string CreateClusterHostGroupRequest::getHostGroupType()const @@ -88,7 +88,7 @@ std::string CreateClusterHostGroupRequest::getHostGroupType()const void CreateClusterHostGroupRequest::setHostGroupType(const std::string& hostGroupType) { hostGroupType_ = hostGroupType; - setParameter("HostGroupType", hostGroupType); + setCoreParameter("HostGroupType", hostGroupType); } std::string CreateClusterHostGroupRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string CreateClusterHostGroupRequest::getAccessKeyId()const void CreateClusterHostGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateClusterHostGroupResult.cc b/emr/src/model/CreateClusterHostGroupResult.cc index d20ff2884..6c26b4781 100644 --- a/emr/src/model/CreateClusterHostGroupResult.cc +++ b/emr/src/model/CreateClusterHostGroupResult.cc @@ -35,10 +35,13 @@ CreateClusterHostGroupResult::~CreateClusterHostGroupResult() void CreateClusterHostGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/emr/src/model/CreateClusterScriptRequest.cc b/emr/src/model/CreateClusterScriptRequest.cc index afed0b329..946ea5e64 100644 --- a/emr/src/model/CreateClusterScriptRequest.cc +++ b/emr/src/model/CreateClusterScriptRequest.cc @@ -33,7 +33,7 @@ std::string CreateClusterScriptRequest::getArgs()const void CreateClusterScriptRequest::setArgs(const std::string& args) { args_ = args; - setParameter("Args", args); + setCoreParameter("Args", args); } std::string CreateClusterScriptRequest::getPath()const @@ -44,7 +44,7 @@ std::string CreateClusterScriptRequest::getPath()const void CreateClusterScriptRequest::setPath(const std::string& path) { path_ = path; - setParameter("Path", path); + setCoreParameter("Path", path); } long CreateClusterScriptRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long CreateClusterScriptRequest::getResourceOwnerId()const void CreateClusterScriptRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateClusterScriptRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string CreateClusterScriptRequest::getRegionId()const void CreateClusterScriptRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateClusterScriptRequest::getName()const @@ -77,7 +77,7 @@ std::string CreateClusterScriptRequest::getName()const void CreateClusterScriptRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateClusterScriptRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string CreateClusterScriptRequest::getClusterId()const void CreateClusterScriptRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateClusterScriptRequest::getNodeIdList()const @@ -99,7 +99,7 @@ std::string CreateClusterScriptRequest::getNodeIdList()const void CreateClusterScriptRequest::setNodeIdList(const std::string& nodeIdList) { nodeIdList_ = nodeIdList; - setParameter("NodeIdList", nodeIdList); + setCoreParameter("NodeIdList", nodeIdList); } std::string CreateClusterScriptRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string CreateClusterScriptRequest::getAccessKeyId()const void CreateClusterScriptRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateClusterScriptResult.cc b/emr/src/model/CreateClusterScriptResult.cc index 3e08b0383..5a365a06b 100644 --- a/emr/src/model/CreateClusterScriptResult.cc +++ b/emr/src/model/CreateClusterScriptResult.cc @@ -35,10 +35,13 @@ CreateClusterScriptResult::~CreateClusterScriptResult() void CreateClusterScriptResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateClusterTemplateRequest.cc b/emr/src/model/CreateClusterTemplateRequest.cc index 36c8293ed..d2cf7cf9e 100644 --- a/emr/src/model/CreateClusterTemplateRequest.cc +++ b/emr/src/model/CreateClusterTemplateRequest.cc @@ -33,7 +33,7 @@ long CreateClusterTemplateRequest::getResourceOwnerId()const void CreateClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateClusterTemplateRequest::getLogPath()const @@ -44,7 +44,7 @@ std::string CreateClusterTemplateRequest::getLogPath()const void CreateClusterTemplateRequest::setLogPath(const std::string& logPath) { logPath_ = logPath; - setParameter("LogPath", logPath); + setCoreParameter("LogPath", logPath); } std::string CreateClusterTemplateRequest::getMasterPwd()const @@ -55,7 +55,7 @@ std::string CreateClusterTemplateRequest::getMasterPwd()const void CreateClusterTemplateRequest::setMasterPwd(const std::string& masterPwd) { masterPwd_ = masterPwd; - setParameter("MasterPwd", masterPwd); + setCoreParameter("MasterPwd", masterPwd); } std::string CreateClusterTemplateRequest::getConfigurations()const @@ -66,7 +66,7 @@ std::string CreateClusterTemplateRequest::getConfigurations()const void CreateClusterTemplateRequest::setConfigurations(const std::string& configurations) { configurations_ = configurations; - setParameter("Configurations", configurations); + setCoreParameter("Configurations", configurations); } bool CreateClusterTemplateRequest::getIoOptimized()const @@ -77,7 +77,7 @@ bool CreateClusterTemplateRequest::getIoOptimized()const void CreateClusterTemplateRequest::setIoOptimized(bool ioOptimized) { ioOptimized_ = ioOptimized; - setParameter("IoOptimized", std::to_string(ioOptimized)); + setCoreParameter("IoOptimized", ioOptimized ? "true" : "false"); } std::string CreateClusterTemplateRequest::getSecurityGroupId()const @@ -88,7 +88,7 @@ std::string CreateClusterTemplateRequest::getSecurityGroupId()const void CreateClusterTemplateRequest::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } bool CreateClusterTemplateRequest::getSshEnable()const @@ -99,7 +99,7 @@ bool CreateClusterTemplateRequest::getSshEnable()const void CreateClusterTemplateRequest::setSshEnable(bool sshEnable) { sshEnable_ = sshEnable; - setParameter("SshEnable", std::to_string(sshEnable)); + setCoreParameter("SshEnable", sshEnable ? "true" : "false"); } bool CreateClusterTemplateRequest::getEasEnable()const @@ -110,7 +110,29 @@ bool CreateClusterTemplateRequest::getEasEnable()const void CreateClusterTemplateRequest::setEasEnable(bool easEnable) { easEnable_ = easEnable; - setParameter("EasEnable", std::to_string(easEnable)); + setCoreParameter("EasEnable", easEnable ? "true" : "false"); +} + +std::string CreateClusterTemplateRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void CreateClusterTemplateRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setCoreParameter("KeyPairName", keyPairName); +} + +std::string CreateClusterTemplateRequest::getMetaStoreType()const +{ + return metaStoreType_; +} + +void CreateClusterTemplateRequest::setMetaStoreType(const std::string& metaStoreType) +{ + metaStoreType_ = metaStoreType; + setCoreParameter("MetaStoreType", metaStoreType); } std::string CreateClusterTemplateRequest::getSecurityGroupName()const @@ -121,7 +143,7 @@ std::string CreateClusterTemplateRequest::getSecurityGroupName()const void CreateClusterTemplateRequest::setSecurityGroupName(const std::string& securityGroupName) { securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); + setCoreParameter("SecurityGroupName", securityGroupName); } std::string CreateClusterTemplateRequest::getDepositType()const @@ -132,7 +154,7 @@ std::string CreateClusterTemplateRequest::getDepositType()const void CreateClusterTemplateRequest::setDepositType(const std::string& depositType) { depositType_ = depositType; - setParameter("DepositType", depositType); + setCoreParameter("DepositType", depositType); } std::string CreateClusterTemplateRequest::getAccessKeyId()const @@ -143,7 +165,7 @@ std::string CreateClusterTemplateRequest::getAccessKeyId()const void CreateClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateClusterTemplateRequest::getMachineType()const @@ -154,7 +176,7 @@ std::string CreateClusterTemplateRequest::getMachineType()const void CreateClusterTemplateRequest::setMachineType(const std::string& machineType) { machineType_ = machineType; - setParameter("MachineType", machineType); + setCoreParameter("MachineType", machineType); } std::vector CreateClusterTemplateRequest::getBootstrapAction()const @@ -169,9 +191,9 @@ void CreateClusterTemplateRequest::setBootstrapAction(const std::vector CreateClusterTemplateRequest::getOptionSoftWareList()const @@ -305,7 +338,7 @@ void CreateClusterTemplateRequest::setOptionSoftWareList(const std::vector CreateClusterTemplateRequest::getHostGroup()const @@ -342,24 +375,24 @@ void CreateClusterTemplateRequest::setHostGroup(const std::vector& ho for(int i = 0; i!= hostGroup.size(); i++) { auto obj = hostGroup.at(i); std::string str ="HostGroup."+ std::to_string(i); - setParameter(str + ".Period", std::to_string(obj.period)); - setParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); - setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); - setParameter(str + ".SysDiskType", obj.sysDiskType); - setParameter(str + ".ClusterId", obj.clusterId); - setParameter(str + ".DiskType", obj.diskType); - setParameter(str + ".HostGroupName", obj.hostGroupName); - setParameter(str + ".VSwitchId", obj.vSwitchId); - setParameter(str + ".DiskCount", std::to_string(obj.diskCount)); - setParameter(str + ".AutoRenew", std::to_string(obj.autoRenew)); - setParameter(str + ".HostGroupId", obj.hostGroupId); - setParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); - setParameter(str + ".InstanceType", obj.instanceType); - setParameter(str + ".Comment", obj.comment); - setParameter(str + ".ChargeType", obj.chargeType); - setParameter(str + ".MultiInstanceTypes", obj.multiInstanceTypes); - setParameter(str + ".CreateType", obj.createType); - setParameter(str + ".HostGroupType", obj.hostGroupType); + setCoreParameter(str + ".Period", std::to_string(obj.period)); + setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); + setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); + setCoreParameter(str + ".SysDiskType", obj.sysDiskType); + setCoreParameter(str + ".ClusterId", obj.clusterId); + setCoreParameter(str + ".DiskType", obj.diskType); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + setCoreParameter(str + ".VSwitchId", obj.vSwitchId); + setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount)); + setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false"); + setCoreParameter(str + ".HostGroupId", obj.hostGroupId); + setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); + setCoreParameter(str + ".InstanceType", obj.instanceType); + setCoreParameter(str + ".Comment", obj.comment); + setCoreParameter(str + ".ChargeType", obj.chargeType); + setCoreParameter(str + ".MultiInstanceTypes", obj.multiInstanceTypes); + setCoreParameter(str + ".CreateType", obj.createType); + setCoreParameter(str + ".HostGroupType", obj.hostGroupType); } } @@ -371,7 +404,7 @@ std::string CreateClusterTemplateRequest::getZoneId()const void CreateClusterTemplateRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } bool CreateClusterTemplateRequest::getUseCustomHiveMetaDb()const @@ -382,7 +415,7 @@ bool CreateClusterTemplateRequest::getUseCustomHiveMetaDb()const void CreateClusterTemplateRequest::setUseCustomHiveMetaDb(bool useCustomHiveMetaDb) { useCustomHiveMetaDb_ = useCustomHiveMetaDb; - setParameter("UseCustomHiveMetaDb", std::to_string(useCustomHiveMetaDb)); + setCoreParameter("UseCustomHiveMetaDb", useCustomHiveMetaDb ? "true" : "false"); } std::vector CreateClusterTemplateRequest::getConfig()const @@ -397,12 +430,12 @@ void CreateClusterTemplateRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".FileName", obj.fileName); - setParameter(str + ".Encrypt", obj.encrypt); - setParameter(str + ".Replace", obj.replace); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".ServiceName", obj.serviceName); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".FileName", obj.fileName); + setCoreParameter(str + ".Encrypt", obj.encrypt); + setCoreParameter(str + ".Replace", obj.replace); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".ServiceName", obj.serviceName); } } @@ -414,7 +447,7 @@ bool CreateClusterTemplateRequest::getHighAvailabilityEnable()const void CreateClusterTemplateRequest::setHighAvailabilityEnable(bool highAvailabilityEnable) { highAvailabilityEnable_ = highAvailabilityEnable; - setParameter("HighAvailabilityEnable", std::to_string(highAvailabilityEnable)); + setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false"); } bool CreateClusterTemplateRequest::getInitCustomHiveMetaDb()const @@ -425,6 +458,6 @@ bool CreateClusterTemplateRequest::getInitCustomHiveMetaDb()const void CreateClusterTemplateRequest::setInitCustomHiveMetaDb(bool initCustomHiveMetaDb) { initCustomHiveMetaDb_ = initCustomHiveMetaDb; - setParameter("InitCustomHiveMetaDb", std::to_string(initCustomHiveMetaDb)); + setCoreParameter("InitCustomHiveMetaDb", initCustomHiveMetaDb ? "true" : "false"); } diff --git a/emr/src/model/CreateClusterTemplateResult.cc b/emr/src/model/CreateClusterTemplateResult.cc index 9127b1c18..33f38783e 100644 --- a/emr/src/model/CreateClusterTemplateResult.cc +++ b/emr/src/model/CreateClusterTemplateResult.cc @@ -35,10 +35,13 @@ CreateClusterTemplateResult::~CreateClusterTemplateResult() void CreateClusterTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterTemplateId"].isNull()) clusterTemplateId_ = value["ClusterTemplateId"].asString(); diff --git a/emr/src/model/CreateClusterV2Request.cc b/emr/src/model/CreateClusterV2Request.cc index cd0dcaa1b..924078472 100644 --- a/emr/src/model/CreateClusterV2Request.cc +++ b/emr/src/model/CreateClusterV2Request.cc @@ -33,7 +33,7 @@ bool CreateClusterV2Request::getAutoPayOrder()const void CreateClusterV2Request::setAutoPayOrder(bool autoPayOrder) { autoPayOrder_ = autoPayOrder; - setParameter("AutoPayOrder", std::to_string(autoPayOrder)); + setCoreParameter("AutoPayOrder", autoPayOrder ? "true" : "false"); } long CreateClusterV2Request::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateClusterV2Request::getResourceOwnerId()const void CreateClusterV2Request::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateClusterV2Request::getLogPath()const @@ -55,7 +55,7 @@ std::string CreateClusterV2Request::getLogPath()const void CreateClusterV2Request::setLogPath(const std::string& logPath) { logPath_ = logPath; - setParameter("LogPath", logPath); + setCoreParameter("LogPath", logPath); } std::string CreateClusterV2Request::getMasterPwd()const @@ -66,7 +66,7 @@ std::string CreateClusterV2Request::getMasterPwd()const void CreateClusterV2Request::setMasterPwd(const std::string& masterPwd) { masterPwd_ = masterPwd; - setParameter("MasterPwd", masterPwd); + setCoreParameter("MasterPwd", masterPwd); } std::string CreateClusterV2Request::getConfigurations()const @@ -77,7 +77,7 @@ std::string CreateClusterV2Request::getConfigurations()const void CreateClusterV2Request::setConfigurations(const std::string& configurations) { configurations_ = configurations; - setParameter("Configurations", configurations); + setCoreParameter("Configurations", configurations); } bool CreateClusterV2Request::getIoOptimized()const @@ -88,7 +88,7 @@ bool CreateClusterV2Request::getIoOptimized()const void CreateClusterV2Request::setIoOptimized(bool ioOptimized) { ioOptimized_ = ioOptimized; - setParameter("IoOptimized", std::to_string(ioOptimized)); + setCoreParameter("IoOptimized", ioOptimized ? "true" : "false"); } std::string CreateClusterV2Request::getSecurityGroupId()const @@ -99,7 +99,7 @@ std::string CreateClusterV2Request::getSecurityGroupId()const void CreateClusterV2Request::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } bool CreateClusterV2Request::getSshEnable()const @@ -110,7 +110,7 @@ bool CreateClusterV2Request::getSshEnable()const void CreateClusterV2Request::setSshEnable(bool sshEnable) { sshEnable_ = sshEnable; - setParameter("SshEnable", std::to_string(sshEnable)); + setCoreParameter("SshEnable", sshEnable ? "true" : "false"); } bool CreateClusterV2Request::getEasEnable()const @@ -121,7 +121,7 @@ bool CreateClusterV2Request::getEasEnable()const void CreateClusterV2Request::setEasEnable(bool easEnable) { easEnable_ = easEnable; - setParameter("EasEnable", std::to_string(easEnable)); + setCoreParameter("EasEnable", easEnable ? "true" : "false"); } std::string CreateClusterV2Request::getKeyPairName()const @@ -132,7 +132,18 @@ std::string CreateClusterV2Request::getKeyPairName()const void CreateClusterV2Request::setKeyPairName(const std::string& keyPairName) { keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); + setCoreParameter("KeyPairName", keyPairName); +} + +std::string CreateClusterV2Request::getMetaStoreType()const +{ + return metaStoreType_; +} + +void CreateClusterV2Request::setMetaStoreType(const std::string& metaStoreType) +{ + metaStoreType_ = metaStoreType; + setCoreParameter("MetaStoreType", metaStoreType); } std::string CreateClusterV2Request::getSecurityGroupName()const @@ -143,7 +154,7 @@ std::string CreateClusterV2Request::getSecurityGroupName()const void CreateClusterV2Request::setSecurityGroupName(const std::string& securityGroupName) { securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); + setCoreParameter("SecurityGroupName", securityGroupName); } std::string CreateClusterV2Request::getDepositType()const @@ -154,7 +165,7 @@ std::string CreateClusterV2Request::getDepositType()const void CreateClusterV2Request::setDepositType(const std::string& depositType) { depositType_ = depositType; - setParameter("DepositType", depositType); + setCoreParameter("DepositType", depositType); } std::string CreateClusterV2Request::getAccessKeyId()const @@ -165,7 +176,7 @@ std::string CreateClusterV2Request::getAccessKeyId()const void CreateClusterV2Request::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateClusterV2Request::getMachineType()const @@ -176,7 +187,7 @@ std::string CreateClusterV2Request::getMachineType()const void CreateClusterV2Request::setMachineType(const std::string& machineType) { machineType_ = machineType; - setParameter("MachineType", machineType); + setCoreParameter("MachineType", machineType); } std::vector CreateClusterV2Request::getHostComponentInfo()const @@ -191,9 +202,9 @@ void CreateClusterV2Request::setHostComponentInfo(const std::vector CreateClusterV2Request::getUserInfo()const @@ -260,9 +282,9 @@ void CreateClusterV2Request::setUserInfo(const std::vector& userInfo) for(int i = 0; i!= userInfo.size(); i++) { auto obj = userInfo.at(i); std::string str ="UserInfo."+ std::to_string(i); - setParameter(str + ".Password", obj.password); - setParameter(str + ".UserId", obj.userId); - setParameter(str + ".UserName", obj.userName); + setCoreParameter(str + ".Password", obj.password); + setCoreParameter(str + ".UserId", obj.userId); + setCoreParameter(str + ".UserName", obj.userName); } } @@ -274,7 +296,7 @@ std::string CreateClusterV2Request::getUserDefinedEmrEcsRole()const void CreateClusterV2Request::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole) { userDefinedEmrEcsRole_ = userDefinedEmrEcsRole; - setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole); + setCoreParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole); } std::string CreateClusterV2Request::getAuthorizeContent()const @@ -285,7 +307,7 @@ std::string CreateClusterV2Request::getAuthorizeContent()const void CreateClusterV2Request::setAuthorizeContent(const std::string& authorizeContent) { authorizeContent_ = authorizeContent; - setParameter("AuthorizeContent", authorizeContent); + setCoreParameter("AuthorizeContent", authorizeContent); } bool CreateClusterV2Request::getIsOpenPublicIp()const @@ -296,7 +318,7 @@ bool CreateClusterV2Request::getIsOpenPublicIp()const void CreateClusterV2Request::setIsOpenPublicIp(bool isOpenPublicIp) { isOpenPublicIp_ = isOpenPublicIp; - setParameter("IsOpenPublicIp", std::to_string(isOpenPublicIp)); + setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false"); } int CreateClusterV2Request::getPeriod()const @@ -307,7 +329,7 @@ int CreateClusterV2Request::getPeriod()const void CreateClusterV2Request::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string CreateClusterV2Request::getWhiteListType()const @@ -318,7 +340,7 @@ std::string CreateClusterV2Request::getWhiteListType()const void CreateClusterV2Request::setWhiteListType(const std::string& whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", whiteListType); + setCoreParameter("WhiteListType", whiteListType); } std::string CreateClusterV2Request::getRelatedClusterId()const @@ -329,7 +351,7 @@ std::string CreateClusterV2Request::getRelatedClusterId()const void CreateClusterV2Request::setRelatedClusterId(const std::string& relatedClusterId) { relatedClusterId_ = relatedClusterId; - setParameter("RelatedClusterId", relatedClusterId); + setCoreParameter("RelatedClusterId", relatedClusterId); } std::string CreateClusterV2Request::getInstanceGeneration()const @@ -340,7 +362,7 @@ std::string CreateClusterV2Request::getInstanceGeneration()const void CreateClusterV2Request::setInstanceGeneration(const std::string& instanceGeneration) { instanceGeneration_ = instanceGeneration; - setParameter("InstanceGeneration", instanceGeneration); + setCoreParameter("InstanceGeneration", instanceGeneration); } std::string CreateClusterV2Request::getVSwitchId()const @@ -351,7 +373,7 @@ std::string CreateClusterV2Request::getVSwitchId()const void CreateClusterV2Request::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string CreateClusterV2Request::getClusterType()const @@ -362,7 +384,7 @@ std::string CreateClusterV2Request::getClusterType()const void CreateClusterV2Request::setClusterType(const std::string& clusterType) { clusterType_ = clusterType; - setParameter("ClusterType", clusterType); + setCoreParameter("ClusterType", clusterType); } bool CreateClusterV2Request::getAutoRenew()const @@ -373,7 +395,7 @@ bool CreateClusterV2Request::getAutoRenew()const void CreateClusterV2Request::setAutoRenew(bool autoRenew) { autoRenew_ = autoRenew; - setParameter("AutoRenew", std::to_string(autoRenew)); + setCoreParameter("AutoRenew", autoRenew ? "true" : "false"); } std::vector CreateClusterV2Request::getOptionSoftWareList()const @@ -385,7 +407,7 @@ void CreateClusterV2Request::setOptionSoftWareList(const std::vector CreateClusterV2Request::getHostGroup()const @@ -433,24 +455,24 @@ void CreateClusterV2Request::setHostGroup(const std::vector& hostGrou for(int i = 0; i!= hostGroup.size(); i++) { auto obj = hostGroup.at(i); std::string str ="HostGroup."+ std::to_string(i); - setParameter(str + ".Period", std::to_string(obj.period)); - setParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); - setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); - setParameter(str + ".SysDiskType", obj.sysDiskType); - setParameter(str + ".ClusterId", obj.clusterId); - setParameter(str + ".DiskType", obj.diskType); - setParameter(str + ".HostGroupName", obj.hostGroupName); - setParameter(str + ".VSwitchId", obj.vSwitchId); - setParameter(str + ".DiskCount", std::to_string(obj.diskCount)); - setParameter(str + ".AutoRenew", std::to_string(obj.autoRenew)); - setParameter(str + ".GpuDriver", obj.gpuDriver); - setParameter(str + ".HostGroupId", obj.hostGroupId); - setParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); - setParameter(str + ".InstanceType", obj.instanceType); - setParameter(str + ".Comment", obj.comment); - setParameter(str + ".ChargeType", obj.chargeType); - setParameter(str + ".CreateType", obj.createType); - setParameter(str + ".HostGroupType", obj.hostGroupType); + setCoreParameter(str + ".Period", std::to_string(obj.period)); + setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); + setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); + setCoreParameter(str + ".SysDiskType", obj.sysDiskType); + setCoreParameter(str + ".ClusterId", obj.clusterId); + setCoreParameter(str + ".DiskType", obj.diskType); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + setCoreParameter(str + ".VSwitchId", obj.vSwitchId); + setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount)); + setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false"); + setCoreParameter(str + ".GpuDriver", obj.gpuDriver); + setCoreParameter(str + ".HostGroupId", obj.hostGroupId); + setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); + setCoreParameter(str + ".InstanceType", obj.instanceType); + setCoreParameter(str + ".Comment", obj.comment); + setCoreParameter(str + ".ChargeType", obj.chargeType); + setCoreParameter(str + ".CreateType", obj.createType); + setCoreParameter(str + ".HostGroupType", obj.hostGroupType); } } @@ -462,7 +484,7 @@ std::string CreateClusterV2Request::getZoneId()const void CreateClusterV2Request::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string CreateClusterV2Request::getChargeType()const @@ -473,7 +495,7 @@ std::string CreateClusterV2Request::getChargeType()const void CreateClusterV2Request::setChargeType(const std::string& chargeType) { chargeType_ = chargeType; - setParameter("ChargeType", chargeType); + setCoreParameter("ChargeType", chargeType); } bool CreateClusterV2Request::getUseCustomHiveMetaDB()const @@ -484,7 +506,7 @@ bool CreateClusterV2Request::getUseCustomHiveMetaDB()const void CreateClusterV2Request::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB) { useCustomHiveMetaDB_ = useCustomHiveMetaDB; - setParameter("UseCustomHiveMetaDB", std::to_string(useCustomHiveMetaDB)); + setCoreParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false"); } std::vector CreateClusterV2Request::getConfig()const @@ -499,12 +521,12 @@ void CreateClusterV2Request::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".FileName", obj.fileName); - setParameter(str + ".Encrypt", obj.encrypt); - setParameter(str + ".Replace", obj.replace); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".ServiceName", obj.serviceName); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".FileName", obj.fileName); + setCoreParameter(str + ".Encrypt", obj.encrypt); + setCoreParameter(str + ".Replace", obj.replace); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".ServiceName", obj.serviceName); } } @@ -516,7 +538,7 @@ bool CreateClusterV2Request::getHighAvailabilityEnable()const void CreateClusterV2Request::setHighAvailabilityEnable(bool highAvailabilityEnable) { highAvailabilityEnable_ = highAvailabilityEnable; - setParameter("HighAvailabilityEnable", std::to_string(highAvailabilityEnable)); + setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false"); } bool CreateClusterV2Request::getInitCustomHiveMetaDB()const @@ -527,6 +549,6 @@ bool CreateClusterV2Request::getInitCustomHiveMetaDB()const void CreateClusterV2Request::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB) { initCustomHiveMetaDB_ = initCustomHiveMetaDB; - setParameter("InitCustomHiveMetaDB", std::to_string(initCustomHiveMetaDB)); + setCoreParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false"); } diff --git a/emr/src/model/CreateClusterV2Result.cc b/emr/src/model/CreateClusterV2Result.cc index f374f3eb6..c86de8cde 100644 --- a/emr/src/model/CreateClusterV2Result.cc +++ b/emr/src/model/CreateClusterV2Result.cc @@ -35,10 +35,13 @@ CreateClusterV2Result::~CreateClusterV2Result() void CreateClusterV2Result::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/emr/src/model/CreateClusterWithHostPoolRequest.cc b/emr/src/model/CreateClusterWithHostPoolRequest.cc new file mode 100644 index 000000000..37e46ae94 --- /dev/null +++ b/emr/src/model/CreateClusterWithHostPoolRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::CreateClusterWithHostPoolRequest; + +CreateClusterWithHostPoolRequest::CreateClusterWithHostPoolRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateClusterWithHostPool") +{} + +CreateClusterWithHostPoolRequest::~CreateClusterWithHostPoolRequest() +{} + +long CreateClusterWithHostPoolRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateClusterWithHostPoolRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateClusterWithHostPoolRequest::getClusterName()const +{ + return clusterName_; +} + +void CreateClusterWithHostPoolRequest::setClusterName(const std::string& clusterName) +{ + clusterName_ = clusterName; + setCoreParameter("ClusterName", clusterName); +} + +bool CreateClusterWithHostPoolRequest::getEasEnable()const +{ + return easEnable_; +} + +void CreateClusterWithHostPoolRequest::setEasEnable(bool easEnable) +{ + easEnable_ = easEnable; + setCoreParameter("EasEnable", easEnable ? "true" : "false"); +} + +std::vector CreateClusterWithHostPoolRequest::getHostInfo()const +{ + return hostInfo_; +} + +void CreateClusterWithHostPoolRequest::setHostInfo(const std::vector& hostInfo) +{ + hostInfo_ = hostInfo; + int i = 0; + for(int i = 0; i!= hostInfo.size(); i++) { + auto obj = hostInfo.at(i); + std::string str ="HostInfo."+ std::to_string(i); + setCoreParameter(str + ".HpHostBizId", obj.hpHostBizId); + setCoreParameter(str + ".HostName", obj.hostName); + setCoreParameter(str + ".Role", obj.role); + setCoreParameter(str + ".GroupId", std::to_string(obj.groupId)); + setCoreParameter(str + ".PrivateIp", obj.privateIp); + setCoreParameter(str + ".ServiceComponentInfo", std::to_string(obj.serviceComponentInfo)); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + } +} + +std::string CreateClusterWithHostPoolRequest::getRelatedClusterId()const +{ + return relatedClusterId_; +} + +void CreateClusterWithHostPoolRequest::setRelatedClusterId(const std::string& relatedClusterId) +{ + relatedClusterId_ = relatedClusterId; + setCoreParameter("RelatedClusterId", relatedClusterId); +} + +std::string CreateClusterWithHostPoolRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateClusterWithHostPoolRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateClusterWithHostPoolRequest::getClusterType()const +{ + return clusterType_; +} + +void CreateClusterWithHostPoolRequest::setClusterType(const std::string& clusterType) +{ + clusterType_ = clusterType; + setCoreParameter("ClusterType", clusterType); +} + +std::string CreateClusterWithHostPoolRequest::getRegionId()const +{ + return regionId_; +} + +void CreateClusterWithHostPoolRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector CreateClusterWithHostPoolRequest::getHostGroup()const +{ + return hostGroup_; +} + +void CreateClusterWithHostPoolRequest::setHostGroup(const std::vector& hostGroup) +{ + hostGroup_ = hostGroup; + int i = 0; + for(int i = 0; i!= hostGroup.size(); i++) { + auto obj = hostGroup.at(i); + std::string str ="HostGroup."+ std::to_string(i); + setCoreParameter(str + ".GroupType", obj.groupType); + setCoreParameter(str + ".GroupId", std::to_string(obj.groupId)); + setCoreParameter(str + ".GroupName", obj.groupName); + } +} + +std::string CreateClusterWithHostPoolRequest::getStackName()const +{ + return stackName_; +} + +void CreateClusterWithHostPoolRequest::setStackName(const std::string& stackName) +{ + stackName_ = stackName; + setCoreParameter("StackName", stackName); +} + +std::string CreateClusterWithHostPoolRequest::getStackVersion()const +{ + return stackVersion_; +} + +void CreateClusterWithHostPoolRequest::setStackVersion(const std::string& stackVersion) +{ + stackVersion_ = stackVersion; + setCoreParameter("StackVersion", stackVersion); +} + +std::vector CreateClusterWithHostPoolRequest::getServiceInfo()const +{ + return serviceInfo_; +} + +void CreateClusterWithHostPoolRequest::setServiceInfo(const std::vector& serviceInfo) +{ + serviceInfo_ = serviceInfo; + int i = 0; + for(int i = 0; i!= serviceInfo.size(); i++) { + auto obj = serviceInfo.at(i); + std::string str ="ServiceInfo."+ std::to_string(i); + setCoreParameter(str + ".ServiceEcmVersion", obj.serviceEcmVersion); + setCoreParameter(str + ".ServiceVersion", obj.serviceVersion); + setCoreParameter(str + ".ServiceName", obj.serviceName); + } +} + +std::vector CreateClusterWithHostPoolRequest::getConfig()const +{ + return config_; +} + +void CreateClusterWithHostPoolRequest::setConfig(const std::vector& config) +{ + config_ = config; + int i = 0; + for(int i = 0; i!= config.size(); i++) { + auto obj = config.at(i); + std::string str ="Config."+ std::to_string(i); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".FileName", obj.fileName); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".ServiceName", obj.serviceName); + } +} + diff --git a/emr/src/model/CreateClusterWithHostPoolResult.cc b/emr/src/model/CreateClusterWithHostPoolResult.cc new file mode 100644 index 000000000..2dc09df90 --- /dev/null +++ b/emr/src/model/CreateClusterWithHostPoolResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateClusterWithHostPoolResult::CreateClusterWithHostPoolResult() : + ServiceResult() +{} + +CreateClusterWithHostPoolResult::CreateClusterWithHostPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateClusterWithHostPoolResult::~CreateClusterWithHostPoolResult() +{} + +void CreateClusterWithHostPoolResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["WorkFlowInstanceId"].isNull()) + workFlowInstanceId_ = value["WorkFlowInstanceId"].asString(); + if(!value["OperationId"].isNull()) + operationId_ = value["OperationId"].asString(); + +} + +std::string CreateClusterWithHostPoolResult::getWorkFlowInstanceId()const +{ + return workFlowInstanceId_; +} + +std::string CreateClusterWithHostPoolResult::getClusterId()const +{ + return clusterId_; +} + +std::string CreateClusterWithHostPoolResult::getOperationId()const +{ + return operationId_; +} + diff --git a/emr/src/model/CreateClusterWithTemplateRequest.cc b/emr/src/model/CreateClusterWithTemplateRequest.cc index 4968467d3..28078ca6d 100644 --- a/emr/src/model/CreateClusterWithTemplateRequest.cc +++ b/emr/src/model/CreateClusterWithTemplateRequest.cc @@ -33,7 +33,7 @@ long CreateClusterWithTemplateRequest::getResourceOwnerId()const void CreateClusterWithTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateClusterWithTemplateRequest::getUniqueTag()const @@ -44,7 +44,18 @@ std::string CreateClusterWithTemplateRequest::getUniqueTag()const void CreateClusterWithTemplateRequest::setUniqueTag(const std::string& uniqueTag) { uniqueTag_ = uniqueTag; - setParameter("UniqueTag", uniqueTag); + setCoreParameter("UniqueTag", uniqueTag); +} + +std::string CreateClusterWithTemplateRequest::getClusterName()const +{ + return clusterName_; +} + +void CreateClusterWithTemplateRequest::setClusterName(const std::string& clusterName) +{ + clusterName_ = clusterName; + setCoreParameter("ClusterName", clusterName); } std::string CreateClusterWithTemplateRequest::getTemplateBizId()const @@ -55,7 +66,7 @@ std::string CreateClusterWithTemplateRequest::getTemplateBizId()const void CreateClusterWithTemplateRequest::setTemplateBizId(const std::string& templateBizId) { templateBizId_ = templateBizId; - setParameter("TemplateBizId", templateBizId); + setCoreParameter("TemplateBizId", templateBizId); } std::string CreateClusterWithTemplateRequest::getAccessKeyId()const @@ -66,6 +77,6 @@ std::string CreateClusterWithTemplateRequest::getAccessKeyId()const void CreateClusterWithTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateClusterWithTemplateResult.cc b/emr/src/model/CreateClusterWithTemplateResult.cc index 43195d2c7..d9fddb0a6 100644 --- a/emr/src/model/CreateClusterWithTemplateResult.cc +++ b/emr/src/model/CreateClusterWithTemplateResult.cc @@ -35,10 +35,13 @@ CreateClusterWithTemplateResult::~CreateClusterWithTemplateResult() void CreateClusterWithTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/emr/src/model/CreateDataSourceRequest.cc b/emr/src/model/CreateDataSourceRequest.cc index 5477ff8d2..81b5d3bae 100644 --- a/emr/src/model/CreateDataSourceRequest.cc +++ b/emr/src/model/CreateDataSourceRequest.cc @@ -33,7 +33,7 @@ long CreateDataSourceRequest::getResourceOwnerId()const void CreateDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateDataSourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateDataSourceRequest::getRegionId()const void CreateDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateDataSourceRequest::getNavParentId()const @@ -55,7 +55,7 @@ std::string CreateDataSourceRequest::getNavParentId()const void CreateDataSourceRequest::setNavParentId(const std::string& navParentId) { navParentId_ = navParentId; - setParameter("NavParentId", navParentId); + setCoreParameter("NavParentId", navParentId); } std::string CreateDataSourceRequest::getName()const @@ -66,7 +66,7 @@ std::string CreateDataSourceRequest::getName()const void CreateDataSourceRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateDataSourceRequest::getDescription()const @@ -77,7 +77,7 @@ std::string CreateDataSourceRequest::getDescription()const void CreateDataSourceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateDataSourceRequest::getSourceType()const @@ -88,7 +88,7 @@ std::string CreateDataSourceRequest::getSourceType()const void CreateDataSourceRequest::setSourceType(const std::string& sourceType) { sourceType_ = sourceType; - setParameter("SourceType", sourceType); + setCoreParameter("SourceType", sourceType); } std::string CreateDataSourceRequest::getConf()const @@ -99,7 +99,7 @@ std::string CreateDataSourceRequest::getConf()const void CreateDataSourceRequest::setConf(const std::string& conf) { conf_ = conf; - setParameter("Conf", conf); + setCoreParameter("Conf", conf); } std::string CreateDataSourceRequest::getClusterId()const @@ -110,7 +110,7 @@ std::string CreateDataSourceRequest::getClusterId()const void CreateDataSourceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateDataSourceRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string CreateDataSourceRequest::getAccessKeyId()const void CreateDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateDataSourceResult.cc b/emr/src/model/CreateDataSourceResult.cc index c444d00bd..f7c87f3d8 100644 --- a/emr/src/model/CreateDataSourceResult.cc +++ b/emr/src/model/CreateDataSourceResult.cc @@ -35,10 +35,13 @@ CreateDataSourceResult::~CreateDataSourceResult() void CreateDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateETLJobRequest.cc b/emr/src/model/CreateETLJobRequest.cc index 59fadf855..126ff6e7c 100644 --- a/emr/src/model/CreateETLJobRequest.cc +++ b/emr/src/model/CreateETLJobRequest.cc @@ -33,7 +33,7 @@ long CreateETLJobRequest::getResourceOwnerId()const void CreateETLJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateETLJobRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateETLJobRequest::getRegionId()const void CreateETLJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateETLJobRequest::getNavParentId()const @@ -55,7 +55,7 @@ std::string CreateETLJobRequest::getNavParentId()const void CreateETLJobRequest::setNavParentId(const std::string& navParentId) { navParentId_ = navParentId; - setParameter("NavParentId", navParentId); + setCoreParameter("NavParentId", navParentId); } std::string CreateETLJobRequest::getName()const @@ -66,7 +66,7 @@ std::string CreateETLJobRequest::getName()const void CreateETLJobRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateETLJobRequest::getDescription()const @@ -77,7 +77,18 @@ std::string CreateETLJobRequest::getDescription()const void CreateETLJobRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); +} + +std::string CreateETLJobRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateETLJobRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); } std::string CreateETLJobRequest::getType()const @@ -88,7 +99,7 @@ std::string CreateETLJobRequest::getType()const void CreateETLJobRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateETLJobRequest::getProjectId()const @@ -99,7 +110,7 @@ std::string CreateETLJobRequest::getProjectId()const void CreateETLJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string CreateETLJobRequest::getAccessKeyId()const @@ -110,6 +121,6 @@ std::string CreateETLJobRequest::getAccessKeyId()const void CreateETLJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateETLJobResult.cc b/emr/src/model/CreateETLJobResult.cc index 9f132ea10..26bc16b2d 100644 --- a/emr/src/model/CreateETLJobResult.cc +++ b/emr/src/model/CreateETLJobResult.cc @@ -35,10 +35,13 @@ CreateETLJobResult::~CreateETLJobResult() void CreateETLJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateExecutionPlanRequest.cc b/emr/src/model/CreateExecutionPlanRequest.cc index 9ab37991b..99db2e19b 100644 --- a/emr/src/model/CreateExecutionPlanRequest.cc +++ b/emr/src/model/CreateExecutionPlanRequest.cc @@ -33,7 +33,7 @@ long CreateExecutionPlanRequest::getResourceOwnerId()const void CreateExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int CreateExecutionPlanRequest::getTimeInterval()const @@ -44,7 +44,7 @@ int CreateExecutionPlanRequest::getTimeInterval()const void CreateExecutionPlanRequest::setTimeInterval(int timeInterval) { timeInterval_ = timeInterval; - setParameter("TimeInterval", std::to_string(timeInterval)); + setCoreParameter("TimeInterval", std::to_string(timeInterval)); } std::string CreateExecutionPlanRequest::getLogPath()const @@ -55,7 +55,7 @@ std::string CreateExecutionPlanRequest::getLogPath()const void CreateExecutionPlanRequest::setLogPath(const std::string& logPath) { logPath_ = logPath; - setParameter("LogPath", logPath); + setCoreParameter("LogPath", logPath); } std::string CreateExecutionPlanRequest::getClusterName()const @@ -66,7 +66,7 @@ std::string CreateExecutionPlanRequest::getClusterName()const void CreateExecutionPlanRequest::setClusterName(const std::string& clusterName) { clusterName_ = clusterName; - setParameter("ClusterName", clusterName); + setCoreParameter("ClusterName", clusterName); } std::string CreateExecutionPlanRequest::getConfigurations()const @@ -77,7 +77,7 @@ std::string CreateExecutionPlanRequest::getConfigurations()const void CreateExecutionPlanRequest::setConfigurations(const std::string& configurations) { configurations_ = configurations; - setParameter("Configurations", configurations); + setCoreParameter("Configurations", configurations); } bool CreateExecutionPlanRequest::getIoOptimized()const @@ -88,7 +88,7 @@ bool CreateExecutionPlanRequest::getIoOptimized()const void CreateExecutionPlanRequest::setIoOptimized(bool ioOptimized) { ioOptimized_ = ioOptimized; - setParameter("IoOptimized", std::to_string(ioOptimized)); + setCoreParameter("IoOptimized", ioOptimized ? "true" : "false"); } std::string CreateExecutionPlanRequest::getSecurityGroupId()const @@ -99,7 +99,7 @@ std::string CreateExecutionPlanRequest::getSecurityGroupId()const void CreateExecutionPlanRequest::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } bool CreateExecutionPlanRequest::getEasEnable()const @@ -110,7 +110,7 @@ bool CreateExecutionPlanRequest::getEasEnable()const void CreateExecutionPlanRequest::setEasEnable(bool easEnable) { easEnable_ = easEnable; - setParameter("EasEnable", std::to_string(easEnable)); + setCoreParameter("EasEnable", easEnable ? "true" : "false"); } bool CreateExecutionPlanRequest::getCreateClusterOnDemand()const @@ -121,7 +121,7 @@ bool CreateExecutionPlanRequest::getCreateClusterOnDemand()const void CreateExecutionPlanRequest::setCreateClusterOnDemand(bool createClusterOnDemand) { createClusterOnDemand_ = createClusterOnDemand; - setParameter("CreateClusterOnDemand", std::to_string(createClusterOnDemand)); + setCoreParameter("CreateClusterOnDemand", createClusterOnDemand ? "true" : "false"); } long CreateExecutionPlanRequest::getStartTime()const @@ -132,7 +132,7 @@ long CreateExecutionPlanRequest::getStartTime()const void CreateExecutionPlanRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::vector CreateExecutionPlanRequest::getJobIdList()const @@ -144,7 +144,7 @@ void CreateExecutionPlanRequest::setJobIdList(const std::vector& jo { jobIdList_ = jobIdList; for(int i = 0; i!= jobIdList.size(); i++) - setParameter("JobIdList."+ std::to_string(i), jobIdList.at(i)); + setCoreParameter("JobIdList."+ std::to_string(i), jobIdList.at(i)); } std::string CreateExecutionPlanRequest::getAccessKeyId()const @@ -155,7 +155,7 @@ std::string CreateExecutionPlanRequest::getAccessKeyId()const void CreateExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateExecutionPlanRequest::getDayOfMonth()const @@ -166,7 +166,7 @@ std::string CreateExecutionPlanRequest::getDayOfMonth()const void CreateExecutionPlanRequest::setDayOfMonth(const std::string& dayOfMonth) { dayOfMonth_ = dayOfMonth; - setParameter("DayOfMonth", dayOfMonth); + setCoreParameter("DayOfMonth", dayOfMonth); } std::vector CreateExecutionPlanRequest::getBootstrapAction()const @@ -181,9 +181,9 @@ void CreateExecutionPlanRequest::setBootstrapAction(const std::vector CreateExecutionPlanRequest::getOptionSoftWareList()const @@ -306,7 +306,7 @@ void CreateExecutionPlanRequest::setOptionSoftWareList(const std::vector CreateExecutionPlanRequest::getEcsOrder()const @@ -343,13 +343,13 @@ void CreateExecutionPlanRequest::setEcsOrder(const std::vector& ecsOrd for(int i = 0; i!= ecsOrder.size(); i++) { auto obj = ecsOrder.at(i); std::string str ="EcsOrder."+ std::to_string(i); - setParameter(str + ".NodeType", obj.nodeType); - setParameter(str + ".DiskCount", std::to_string(obj.diskCount)); - setParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); - setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); - setParameter(str + ".Index", std::to_string(obj.index)); - setParameter(str + ".InstanceType", obj.instanceType); - setParameter(str + ".DiskType", obj.diskType); + setCoreParameter(str + ".NodeType", obj.nodeType); + setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount)); + setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); + setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); + setCoreParameter(str + ".Index", std::to_string(obj.index)); + setCoreParameter(str + ".InstanceType", obj.instanceType); + setCoreParameter(str + ".DiskType", obj.diskType); } } @@ -361,7 +361,7 @@ std::string CreateExecutionPlanRequest::getWorkflowDefinition()const void CreateExecutionPlanRequest::setWorkflowDefinition(const std::string& workflowDefinition) { workflowDefinition_ = workflowDefinition; - setParameter("WorkflowDefinition", workflowDefinition); + setCoreParameter("WorkflowDefinition", workflowDefinition); } std::string CreateExecutionPlanRequest::getName()const @@ -372,7 +372,7 @@ std::string CreateExecutionPlanRequest::getName()const void CreateExecutionPlanRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateExecutionPlanRequest::getDayOfWeek()const @@ -383,7 +383,7 @@ std::string CreateExecutionPlanRequest::getDayOfWeek()const void CreateExecutionPlanRequest::setDayOfWeek(const std::string& dayOfWeek) { dayOfWeek_ = dayOfWeek; - setParameter("DayOfWeek", dayOfWeek); + setCoreParameter("DayOfWeek", dayOfWeek); } std::string CreateExecutionPlanRequest::getZoneId()const @@ -394,7 +394,7 @@ std::string CreateExecutionPlanRequest::getZoneId()const void CreateExecutionPlanRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } bool CreateExecutionPlanRequest::getUseCustomHiveMetaDB()const @@ -405,7 +405,7 @@ bool CreateExecutionPlanRequest::getUseCustomHiveMetaDB()const void CreateExecutionPlanRequest::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB) { useCustomHiveMetaDB_ = useCustomHiveMetaDB; - setParameter("UseCustomHiveMetaDB", std::to_string(useCustomHiveMetaDB)); + setCoreParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false"); } std::string CreateExecutionPlanRequest::getStrategy()const @@ -416,7 +416,7 @@ std::string CreateExecutionPlanRequest::getStrategy()const void CreateExecutionPlanRequest::setStrategy(const std::string& strategy) { strategy_ = strategy; - setParameter("Strategy", strategy); + setCoreParameter("Strategy", strategy); } std::vector CreateExecutionPlanRequest::getConfig()const @@ -431,12 +431,12 @@ void CreateExecutionPlanRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".FileName", obj.fileName); - setParameter(str + ".Encrypt", obj.encrypt); - setParameter(str + ".Replace", obj.replace); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".ServiceName", obj.serviceName); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".FileName", obj.fileName); + setCoreParameter(str + ".Encrypt", obj.encrypt); + setCoreParameter(str + ".Replace", obj.replace); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".ServiceName", obj.serviceName); } } @@ -448,7 +448,7 @@ bool CreateExecutionPlanRequest::getHighAvailabilityEnable()const void CreateExecutionPlanRequest::setHighAvailabilityEnable(bool highAvailabilityEnable) { highAvailabilityEnable_ = highAvailabilityEnable; - setParameter("HighAvailabilityEnable", std::to_string(highAvailabilityEnable)); + setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false"); } bool CreateExecutionPlanRequest::getInitCustomHiveMetaDB()const @@ -459,7 +459,7 @@ bool CreateExecutionPlanRequest::getInitCustomHiveMetaDB()const void CreateExecutionPlanRequest::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB) { initCustomHiveMetaDB_ = initCustomHiveMetaDB; - setParameter("InitCustomHiveMetaDB", std::to_string(initCustomHiveMetaDB)); + setCoreParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false"); } bool CreateExecutionPlanRequest::getLogEnable()const @@ -470,6 +470,6 @@ bool CreateExecutionPlanRequest::getLogEnable()const void CreateExecutionPlanRequest::setLogEnable(bool logEnable) { logEnable_ = logEnable; - setParameter("LogEnable", std::to_string(logEnable)); + setCoreParameter("LogEnable", logEnable ? "true" : "false"); } diff --git a/emr/src/model/CreateExecutionPlanResult.cc b/emr/src/model/CreateExecutionPlanResult.cc index 399d2dd93..6636abc02 100644 --- a/emr/src/model/CreateExecutionPlanResult.cc +++ b/emr/src/model/CreateExecutionPlanResult.cc @@ -35,10 +35,13 @@ CreateExecutionPlanResult::~CreateExecutionPlanResult() void CreateExecutionPlanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateFlowCategoryRequest.cc b/emr/src/model/CreateFlowCategoryRequest.cc index 03cd8d288..3421d11e3 100644 --- a/emr/src/model/CreateFlowCategoryRequest.cc +++ b/emr/src/model/CreateFlowCategoryRequest.cc @@ -33,7 +33,7 @@ std::string CreateFlowCategoryRequest::getRegionId()const void CreateFlowCategoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateFlowCategoryRequest::getName()const @@ -44,7 +44,7 @@ std::string CreateFlowCategoryRequest::getName()const void CreateFlowCategoryRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateFlowCategoryRequest::getType()const @@ -55,7 +55,7 @@ std::string CreateFlowCategoryRequest::getType()const void CreateFlowCategoryRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateFlowCategoryRequest::getProjectId()const @@ -66,7 +66,7 @@ std::string CreateFlowCategoryRequest::getProjectId()const void CreateFlowCategoryRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string CreateFlowCategoryRequest::getParentId()const @@ -77,6 +77,6 @@ std::string CreateFlowCategoryRequest::getParentId()const void CreateFlowCategoryRequest::setParentId(const std::string& parentId) { parentId_ = parentId; - setParameter("ParentId", parentId); + setCoreParameter("ParentId", parentId); } diff --git a/emr/src/model/CreateFlowCategoryResult.cc b/emr/src/model/CreateFlowCategoryResult.cc index bda691648..9a8bcd3d7 100644 --- a/emr/src/model/CreateFlowCategoryResult.cc +++ b/emr/src/model/CreateFlowCategoryResult.cc @@ -35,10 +35,13 @@ CreateFlowCategoryResult::~CreateFlowCategoryResult() void CreateFlowCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateFlowForWebRequest.cc b/emr/src/model/CreateFlowForWebRequest.cc index 42e0c545d..4ce92bf89 100644 --- a/emr/src/model/CreateFlowForWebRequest.cc +++ b/emr/src/model/CreateFlowForWebRequest.cc @@ -33,7 +33,7 @@ std::string CreateFlowForWebRequest::getCronExpr()const void CreateFlowForWebRequest::setCronExpr(const std::string& cronExpr) { cronExpr_ = cronExpr; - setParameter("CronExpr", cronExpr); + setCoreParameter("CronExpr", cronExpr); } std::string CreateFlowForWebRequest::getParentFlowList()const @@ -44,7 +44,7 @@ std::string CreateFlowForWebRequest::getParentFlowList()const void CreateFlowForWebRequest::setParentFlowList(const std::string& parentFlowList) { parentFlowList_ = parentFlowList; - setParameter("ParentFlowList", parentFlowList); + setCoreParameter("ParentFlowList", parentFlowList); } std::string CreateFlowForWebRequest::getAlertDingDingGroupBizId()const @@ -55,7 +55,7 @@ std::string CreateFlowForWebRequest::getAlertDingDingGroupBizId()const void CreateFlowForWebRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId) { alertDingDingGroupBizId_ = alertDingDingGroupBizId; - setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); + setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); } long CreateFlowForWebRequest::getStartSchedule()const @@ -66,7 +66,7 @@ long CreateFlowForWebRequest::getStartSchedule()const void CreateFlowForWebRequest::setStartSchedule(long startSchedule) { startSchedule_ = startSchedule; - setParameter("StartSchedule", std::to_string(startSchedule)); + setCoreParameter("StartSchedule", std::to_string(startSchedule)); } std::string CreateFlowForWebRequest::getDescription()const @@ -77,7 +77,7 @@ std::string CreateFlowForWebRequest::getDescription()const void CreateFlowForWebRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateFlowForWebRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string CreateFlowForWebRequest::getClusterId()const void CreateFlowForWebRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateFlowForWebRequest::getAlertUserGroupBizId()const @@ -99,7 +99,7 @@ std::string CreateFlowForWebRequest::getAlertUserGroupBizId()const void CreateFlowForWebRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId) { alertUserGroupBizId_ = alertUserGroupBizId; - setParameter("AlertUserGroupBizId", alertUserGroupBizId); + setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId); } std::string CreateFlowForWebRequest::getGraph()const @@ -110,7 +110,7 @@ std::string CreateFlowForWebRequest::getGraph()const void CreateFlowForWebRequest::setGraph(const std::string& graph) { graph_ = graph; - setParameter("Graph", graph); + setCoreParameter("Graph", graph); } std::string CreateFlowForWebRequest::getHostName()const @@ -121,7 +121,7 @@ std::string CreateFlowForWebRequest::getHostName()const void CreateFlowForWebRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string CreateFlowForWebRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateFlowForWebRequest::getRegionId()const void CreateFlowForWebRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool CreateFlowForWebRequest::getCreateCluster()const @@ -143,7 +143,7 @@ bool CreateFlowForWebRequest::getCreateCluster()const void CreateFlowForWebRequest::setCreateCluster(bool createCluster) { createCluster_ = createCluster; - setParameter("CreateCluster", std::to_string(createCluster)); + setCoreParameter("CreateCluster", createCluster ? "true" : "false"); } std::string CreateFlowForWebRequest::getName()const @@ -154,7 +154,7 @@ std::string CreateFlowForWebRequest::getName()const void CreateFlowForWebRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long CreateFlowForWebRequest::getEndSchedule()const @@ -165,7 +165,7 @@ long CreateFlowForWebRequest::getEndSchedule()const void CreateFlowForWebRequest::setEndSchedule(long endSchedule) { endSchedule_ = endSchedule; - setParameter("EndSchedule", std::to_string(endSchedule)); + setCoreParameter("EndSchedule", std::to_string(endSchedule)); } std::string CreateFlowForWebRequest::getAlertConf()const @@ -176,7 +176,7 @@ std::string CreateFlowForWebRequest::getAlertConf()const void CreateFlowForWebRequest::setAlertConf(const std::string& alertConf) { alertConf_ = alertConf; - setParameter("AlertConf", alertConf); + setCoreParameter("AlertConf", alertConf); } std::string CreateFlowForWebRequest::getProjectId()const @@ -187,7 +187,7 @@ std::string CreateFlowForWebRequest::getProjectId()const void CreateFlowForWebRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string CreateFlowForWebRequest::getParentCategory()const @@ -198,6 +198,6 @@ std::string CreateFlowForWebRequest::getParentCategory()const void CreateFlowForWebRequest::setParentCategory(const std::string& parentCategory) { parentCategory_ = parentCategory; - setParameter("ParentCategory", parentCategory); + setCoreParameter("ParentCategory", parentCategory); } diff --git a/emr/src/model/CreateFlowForWebResult.cc b/emr/src/model/CreateFlowForWebResult.cc index ebff0d4b3..00b9d96bc 100644 --- a/emr/src/model/CreateFlowForWebResult.cc +++ b/emr/src/model/CreateFlowForWebResult.cc @@ -35,10 +35,13 @@ CreateFlowForWebResult::~CreateFlowForWebResult() void CreateFlowForWebResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateFlowJobRequest.cc b/emr/src/model/CreateFlowJobRequest.cc index bcbf637b1..e49f9a0fc 100644 --- a/emr/src/model/CreateFlowJobRequest.cc +++ b/emr/src/model/CreateFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string CreateFlowJobRequest::getRunConf()const void CreateFlowJobRequest::setRunConf(const std::string& runConf) { runConf_ = runConf; - setParameter("RunConf", runConf); + setCoreParameter("RunConf", runConf); } std::string CreateFlowJobRequest::getEnvConf()const @@ -44,7 +44,7 @@ std::string CreateFlowJobRequest::getEnvConf()const void CreateFlowJobRequest::setEnvConf(const std::string& envConf) { envConf_ = envConf; - setParameter("EnvConf", envConf); + setCoreParameter("EnvConf", envConf); } std::string CreateFlowJobRequest::getDescription()const @@ -55,7 +55,7 @@ std::string CreateFlowJobRequest::getDescription()const void CreateFlowJobRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateFlowJobRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string CreateFlowJobRequest::getClusterId()const void CreateFlowJobRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateFlowJobRequest::getType()const @@ -77,7 +77,7 @@ std::string CreateFlowJobRequest::getType()const void CreateFlowJobRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateFlowJobRequest::getParams()const @@ -88,7 +88,7 @@ std::string CreateFlowJobRequest::getParams()const void CreateFlowJobRequest::setParams(const std::string& params) { params_ = params; - setParameter("Params", params); + setCoreParameter("Params", params); } std::string CreateFlowJobRequest::getParamConf()const @@ -99,7 +99,7 @@ std::string CreateFlowJobRequest::getParamConf()const void CreateFlowJobRequest::setParamConf(const std::string& paramConf) { paramConf_ = paramConf; - setParameter("ParamConf", paramConf); + setCoreParameter("ParamConf", paramConf); } std::vector CreateFlowJobRequest::getResourceList()const @@ -114,8 +114,8 @@ void CreateFlowJobRequest::setResourceList(const std::vector& reso for(int i = 0; i!= resourceList.size(); i++) { auto obj = resourceList.at(i); std::string str ="ResourceList."+ std::to_string(i); - setParameter(str + ".Path", obj.path); - setParameter(str + ".Alias", obj.alias); + setCoreParameter(str + ".Path", obj.path); + setCoreParameter(str + ".Alias", obj.alias); } } @@ -127,7 +127,7 @@ std::string CreateFlowJobRequest::getFailAct()const void CreateFlowJobRequest::setFailAct(const std::string& failAct) { failAct_ = failAct; - setParameter("FailAct", failAct); + setCoreParameter("FailAct", failAct); } std::string CreateFlowJobRequest::getMode()const @@ -138,7 +138,7 @@ std::string CreateFlowJobRequest::getMode()const void CreateFlowJobRequest::setMode(const std::string& mode) { mode_ = mode; - setParameter("Mode", mode); + setCoreParameter("Mode", mode); } long CreateFlowJobRequest::getRetryInterval()const @@ -149,7 +149,7 @@ long CreateFlowJobRequest::getRetryInterval()const void CreateFlowJobRequest::setRetryInterval(long retryInterval) { retryInterval_ = retryInterval; - setParameter("RetryInterval", std::to_string(retryInterval)); + setCoreParameter("RetryInterval", std::to_string(retryInterval)); } std::string CreateFlowJobRequest::getMonitorConf()const @@ -160,7 +160,7 @@ std::string CreateFlowJobRequest::getMonitorConf()const void CreateFlowJobRequest::setMonitorConf(const std::string& monitorConf) { monitorConf_ = monitorConf; - setParameter("MonitorConf", monitorConf); + setCoreParameter("MonitorConf", monitorConf); } std::string CreateFlowJobRequest::getRegionId()const @@ -171,7 +171,7 @@ std::string CreateFlowJobRequest::getRegionId()const void CreateFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateFlowJobRequest::getName()const @@ -182,7 +182,7 @@ std::string CreateFlowJobRequest::getName()const void CreateFlowJobRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int CreateFlowJobRequest::getMaxRetry()const @@ -193,7 +193,7 @@ int CreateFlowJobRequest::getMaxRetry()const void CreateFlowJobRequest::setMaxRetry(int maxRetry) { maxRetry_ = maxRetry; - setParameter("MaxRetry", std::to_string(maxRetry)); + setCoreParameter("MaxRetry", std::to_string(maxRetry)); } bool CreateFlowJobRequest::getAdhoc()const @@ -204,7 +204,7 @@ bool CreateFlowJobRequest::getAdhoc()const void CreateFlowJobRequest::setAdhoc(bool adhoc) { adhoc_ = adhoc; - setParameter("Adhoc", std::to_string(adhoc)); + setCoreParameter("Adhoc", adhoc ? "true" : "false"); } std::string CreateFlowJobRequest::getAlertConf()const @@ -215,7 +215,7 @@ std::string CreateFlowJobRequest::getAlertConf()const void CreateFlowJobRequest::setAlertConf(const std::string& alertConf) { alertConf_ = alertConf; - setParameter("AlertConf", alertConf); + setCoreParameter("AlertConf", alertConf); } std::string CreateFlowJobRequest::getProjectId()const @@ -226,7 +226,7 @@ std::string CreateFlowJobRequest::getProjectId()const void CreateFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string CreateFlowJobRequest::getParentCategory()const @@ -237,6 +237,6 @@ std::string CreateFlowJobRequest::getParentCategory()const void CreateFlowJobRequest::setParentCategory(const std::string& parentCategory) { parentCategory_ = parentCategory; - setParameter("ParentCategory", parentCategory); + setCoreParameter("ParentCategory", parentCategory); } diff --git a/emr/src/model/CreateFlowJobResult.cc b/emr/src/model/CreateFlowJobResult.cc index b12a88ebd..ae42ce89f 100644 --- a/emr/src/model/CreateFlowJobResult.cc +++ b/emr/src/model/CreateFlowJobResult.cc @@ -35,10 +35,13 @@ CreateFlowJobResult::~CreateFlowJobResult() void CreateFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateFlowProjectClusterSettingRequest.cc b/emr/src/model/CreateFlowProjectClusterSettingRequest.cc index 3f8ad425c..add7c4634 100644 --- a/emr/src/model/CreateFlowProjectClusterSettingRequest.cc +++ b/emr/src/model/CreateFlowProjectClusterSettingRequest.cc @@ -34,7 +34,7 @@ void CreateFlowProjectClusterSettingRequest::setUserList(const std::vector CreateFlowProjectClusterSettingRequest::getQueueList()const @@ -46,7 +46,7 @@ void CreateFlowProjectClusterSettingRequest::setQueueList(const std::vector CreateFlowProjectClusterSettingRequest::getHostList()const @@ -69,7 +69,7 @@ void CreateFlowProjectClusterSettingRequest::setHostList(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/CreateFlowProjectRequest.cc b/emr/src/model/CreateFlowProjectRequest.cc index 3b70af410..4ff160fb7 100644 --- a/emr/src/model/CreateFlowProjectRequest.cc +++ b/emr/src/model/CreateFlowProjectRequest.cc @@ -33,7 +33,7 @@ std::string CreateFlowProjectRequest::getRegionId()const void CreateFlowProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateFlowProjectRequest::getName()const @@ -44,7 +44,7 @@ std::string CreateFlowProjectRequest::getName()const void CreateFlowProjectRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateFlowProjectRequest::getDescription()const @@ -55,6 +55,6 @@ std::string CreateFlowProjectRequest::getDescription()const void CreateFlowProjectRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } diff --git a/emr/src/model/CreateFlowProjectResult.cc b/emr/src/model/CreateFlowProjectResult.cc index 06ec4d1ab..17cdd3a4c 100644 --- a/emr/src/model/CreateFlowProjectResult.cc +++ b/emr/src/model/CreateFlowProjectResult.cc @@ -35,10 +35,13 @@ CreateFlowProjectResult::~CreateFlowProjectResult() void CreateFlowProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateFlowProjectUserRequest.cc b/emr/src/model/CreateFlowProjectUserRequest.cc index 2ce6396fa..85f03c750 100644 --- a/emr/src/model/CreateFlowProjectUserRequest.cc +++ b/emr/src/model/CreateFlowProjectUserRequest.cc @@ -33,7 +33,7 @@ std::string CreateFlowProjectUserRequest::getRegionId()const void CreateFlowProjectUserRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateFlowProjectUserRequest::getProjectId()const @@ -44,7 +44,7 @@ std::string CreateFlowProjectUserRequest::getProjectId()const void CreateFlowProjectUserRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::vector CreateFlowProjectUserRequest::getUser()const @@ -59,8 +59,8 @@ void CreateFlowProjectUserRequest::setUser(const std::vector& user) for(int i = 0; i!= user.size(); i++) { auto obj = user.at(i); std::string str ="User."+ std::to_string(i); - setParameter(str + ".UserId", obj.userId); - setParameter(str + ".UserName", obj.userName); + setCoreParameter(str + ".UserId", obj.userId); + setCoreParameter(str + ".UserName", obj.userName); } } diff --git a/emr/src/model/CreateFlowProjectUserResult.cc b/emr/src/model/CreateFlowProjectUserResult.cc index 1d55d9108..f4804d8f4 100644 --- a/emr/src/model/CreateFlowProjectUserResult.cc +++ b/emr/src/model/CreateFlowProjectUserResult.cc @@ -35,10 +35,13 @@ CreateFlowProjectUserResult::~CreateFlowProjectUserResult() void CreateFlowProjectUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/CreateFlowRequest.cc b/emr/src/model/CreateFlowRequest.cc index 503a89e02..a1f53cf47 100644 --- a/emr/src/model/CreateFlowRequest.cc +++ b/emr/src/model/CreateFlowRequest.cc @@ -33,7 +33,7 @@ std::string CreateFlowRequest::getCronExpr()const void CreateFlowRequest::setCronExpr(const std::string& cronExpr) { cronExpr_ = cronExpr; - setParameter("CronExpr", cronExpr); + setCoreParameter("CronExpr", cronExpr); } std::string CreateFlowRequest::getParentFlowList()const @@ -44,7 +44,7 @@ std::string CreateFlowRequest::getParentFlowList()const void CreateFlowRequest::setParentFlowList(const std::string& parentFlowList) { parentFlowList_ = parentFlowList; - setParameter("ParentFlowList", parentFlowList); + setCoreParameter("ParentFlowList", parentFlowList); } std::string CreateFlowRequest::getAlertDingDingGroupBizId()const @@ -55,7 +55,7 @@ std::string CreateFlowRequest::getAlertDingDingGroupBizId()const void CreateFlowRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId) { alertDingDingGroupBizId_ = alertDingDingGroupBizId; - setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); + setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); } long CreateFlowRequest::getStartSchedule()const @@ -66,7 +66,7 @@ long CreateFlowRequest::getStartSchedule()const void CreateFlowRequest::setStartSchedule(long startSchedule) { startSchedule_ = startSchedule; - setParameter("StartSchedule", std::to_string(startSchedule)); + setCoreParameter("StartSchedule", std::to_string(startSchedule)); } std::string CreateFlowRequest::getDescription()const @@ -77,7 +77,7 @@ std::string CreateFlowRequest::getDescription()const void CreateFlowRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateFlowRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string CreateFlowRequest::getClusterId()const void CreateFlowRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateFlowRequest::getAlertUserGroupBizId()const @@ -99,7 +99,7 @@ std::string CreateFlowRequest::getAlertUserGroupBizId()const void CreateFlowRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId) { alertUserGroupBizId_ = alertUserGroupBizId; - setParameter("AlertUserGroupBizId", alertUserGroupBizId); + setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId); } std::string CreateFlowRequest::getHostName()const @@ -110,7 +110,7 @@ std::string CreateFlowRequest::getHostName()const void CreateFlowRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string CreateFlowRequest::getApplication()const @@ -121,7 +121,7 @@ std::string CreateFlowRequest::getApplication()const void CreateFlowRequest::setApplication(const std::string& application) { application_ = application; - setParameter("Application", application); + setCoreParameter("Application", application); } std::string CreateFlowRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateFlowRequest::getRegionId()const void CreateFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool CreateFlowRequest::getCreateCluster()const @@ -143,7 +143,7 @@ bool CreateFlowRequest::getCreateCluster()const void CreateFlowRequest::setCreateCluster(bool createCluster) { createCluster_ = createCluster; - setParameter("CreateCluster", std::to_string(createCluster)); + setCoreParameter("CreateCluster", createCluster ? "true" : "false"); } std::string CreateFlowRequest::getName()const @@ -154,7 +154,7 @@ std::string CreateFlowRequest::getName()const void CreateFlowRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long CreateFlowRequest::getEndSchedule()const @@ -165,7 +165,7 @@ long CreateFlowRequest::getEndSchedule()const void CreateFlowRequest::setEndSchedule(long endSchedule) { endSchedule_ = endSchedule; - setParameter("EndSchedule", std::to_string(endSchedule)); + setCoreParameter("EndSchedule", std::to_string(endSchedule)); } std::string CreateFlowRequest::getAlertConf()const @@ -176,7 +176,7 @@ std::string CreateFlowRequest::getAlertConf()const void CreateFlowRequest::setAlertConf(const std::string& alertConf) { alertConf_ = alertConf; - setParameter("AlertConf", alertConf); + setCoreParameter("AlertConf", alertConf); } std::string CreateFlowRequest::getProjectId()const @@ -187,7 +187,7 @@ std::string CreateFlowRequest::getProjectId()const void CreateFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string CreateFlowRequest::getParentCategory()const @@ -198,6 +198,6 @@ std::string CreateFlowRequest::getParentCategory()const void CreateFlowRequest::setParentCategory(const std::string& parentCategory) { parentCategory_ = parentCategory; - setParameter("ParentCategory", parentCategory); + setCoreParameter("ParentCategory", parentCategory); } diff --git a/emr/src/model/CreateFlowResult.cc b/emr/src/model/CreateFlowResult.cc index c9425fd22..0c5909618 100644 --- a/emr/src/model/CreateFlowResult.cc +++ b/emr/src/model/CreateFlowResult.cc @@ -35,10 +35,13 @@ CreateFlowResult::~CreateFlowResult() void CreateFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateHostPoolRequest.cc b/emr/src/model/CreateHostPoolRequest.cc new file mode 100644 index 000000000..616e5a1ef --- /dev/null +++ b/emr/src/model/CreateHostPoolRequest.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Emr::Model::CreateHostPoolRequest; + +CreateHostPoolRequest::CreateHostPoolRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateHostPool") +{} + +CreateHostPoolRequest::~CreateHostPoolRequest() +{} + +long CreateHostPoolRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateHostPoolRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateHostPoolRequest::getRegionId()const +{ + return regionId_; +} + +void CreateHostPoolRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateHostPoolRequest::getName()const +{ + return name_; +} + +void CreateHostPoolRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateHostPoolRequest::getDescription()const +{ + return description_; +} + +void CreateHostPoolRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::vector CreateHostPoolRequest::getKubeClusterInfo()const +{ + return kubeClusterInfo_; +} + +void CreateHostPoolRequest::setKubeClusterInfo(const std::vector& kubeClusterInfo) +{ + kubeClusterInfo_ = kubeClusterInfo; + int i = 0; + for(int i = 0; i!= kubeClusterInfo.size(); i++) { + auto obj = kubeClusterInfo.at(i); + std::string str ="KubeClusterInfo."+ std::to_string(i); + setCoreParameter(str + ".ExternalKey", obj.externalKey); + setCoreParameter(str + ".InternalConfig", obj.internalConfig); + setCoreParameter(str + ".PublicConfig", obj.publicConfig); + setCoreParameter(str + ".SshConfig", obj.sshConfig); + } +} + +std::string CreateHostPoolRequest::getType()const +{ + return type_; +} + +void CreateHostPoolRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string CreateHostPoolRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateHostPoolRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/CreateHostPoolResult.cc b/emr/src/model/CreateHostPoolResult.cc new file mode 100644 index 000000000..1b009e9a4 --- /dev/null +++ b/emr/src/model/CreateHostPoolResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateHostPoolResult::CreateHostPoolResult() : + ServiceResult() +{} + +CreateHostPoolResult::CreateHostPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHostPoolResult::~CreateHostPoolResult() +{} + +void CreateHostPoolResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + +} + +std::string CreateHostPoolResult::getBizId()const +{ + return bizId_; +} + diff --git a/emr/src/model/CreateJobRequest.cc b/emr/src/model/CreateJobRequest.cc index 172abe1c9..4278d105c 100644 --- a/emr/src/model/CreateJobRequest.cc +++ b/emr/src/model/CreateJobRequest.cc @@ -33,7 +33,7 @@ std::string CreateJobRequest::getRunParameter()const void CreateJobRequest::setRunParameter(const std::string& runParameter) { runParameter_ = runParameter; - setParameter("RunParameter", runParameter); + setCoreParameter("RunParameter", runParameter); } int CreateJobRequest::getRetryInterval()const @@ -44,7 +44,7 @@ int CreateJobRequest::getRetryInterval()const void CreateJobRequest::setRetryInterval(int retryInterval) { retryInterval_ = retryInterval; - setParameter("RetryInterval", std::to_string(retryInterval)); + setCoreParameter("RetryInterval", std::to_string(retryInterval)); } long CreateJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long CreateJobRequest::getResourceOwnerId()const void CreateJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateJobRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string CreateJobRequest::getRegionId()const void CreateJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateJobRequest::getName()const @@ -77,7 +77,7 @@ std::string CreateJobRequest::getName()const void CreateJobRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateJobRequest::getType()const @@ -88,7 +88,7 @@ std::string CreateJobRequest::getType()const void CreateJobRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } int CreateJobRequest::getMaxRetry()const @@ -99,7 +99,7 @@ int CreateJobRequest::getMaxRetry()const void CreateJobRequest::setMaxRetry(int maxRetry) { maxRetry_ = maxRetry; - setParameter("MaxRetry", std::to_string(maxRetry)); + setCoreParameter("MaxRetry", std::to_string(maxRetry)); } std::string CreateJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string CreateJobRequest::getAccessKeyId()const void CreateJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateJobRequest::getFailAct()const @@ -121,6 +121,6 @@ std::string CreateJobRequest::getFailAct()const void CreateJobRequest::setFailAct(const std::string& failAct) { failAct_ = failAct; - setParameter("FailAct", failAct); + setCoreParameter("FailAct", failAct); } diff --git a/emr/src/model/CreateJobResult.cc b/emr/src/model/CreateJobResult.cc index 6ec427dd0..7482bb4ab 100644 --- a/emr/src/model/CreateJobResult.cc +++ b/emr/src/model/CreateJobResult.cc @@ -35,10 +35,13 @@ CreateJobResult::~CreateJobResult() void CreateJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateNavNodeRequest.cc b/emr/src/model/CreateNavNodeRequest.cc index 2cd19a4e2..341c93d17 100644 --- a/emr/src/model/CreateNavNodeRequest.cc +++ b/emr/src/model/CreateNavNodeRequest.cc @@ -33,7 +33,7 @@ long CreateNavNodeRequest::getResourceOwnerId()const void CreateNavNodeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateNavNodeRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateNavNodeRequest::getRegionId()const void CreateNavNodeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateNavNodeRequest::getName()const @@ -55,7 +55,7 @@ std::string CreateNavNodeRequest::getName()const void CreateNavNodeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateNavNodeRequest::getType()const @@ -66,7 +66,7 @@ std::string CreateNavNodeRequest::getType()const void CreateNavNodeRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateNavNodeRequest::getProjectId()const @@ -77,7 +77,7 @@ std::string CreateNavNodeRequest::getProjectId()const void CreateNavNodeRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string CreateNavNodeRequest::getCategoryType()const @@ -88,7 +88,7 @@ std::string CreateNavNodeRequest::getCategoryType()const void CreateNavNodeRequest::setCategoryType(const std::string& categoryType) { categoryType_ = categoryType; - setParameter("CategoryType", categoryType); + setCoreParameter("CategoryType", categoryType); } std::string CreateNavNodeRequest::getObjectId()const @@ -99,7 +99,7 @@ std::string CreateNavNodeRequest::getObjectId()const void CreateNavNodeRequest::setObjectId(const std::string& objectId) { objectId_ = objectId; - setParameter("ObjectId", objectId); + setCoreParameter("ObjectId", objectId); } std::string CreateNavNodeRequest::getParentId()const @@ -110,7 +110,7 @@ std::string CreateNavNodeRequest::getParentId()const void CreateNavNodeRequest::setParentId(const std::string& parentId) { parentId_ = parentId; - setParameter("ParentId", parentId); + setCoreParameter("ParentId", parentId); } std::string CreateNavNodeRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string CreateNavNodeRequest::getAccessKeyId()const void CreateNavNodeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateNavNodeResult.cc b/emr/src/model/CreateNavNodeResult.cc index ee1e36822..d63b648e8 100644 --- a/emr/src/model/CreateNavNodeResult.cc +++ b/emr/src/model/CreateNavNodeResult.cc @@ -35,10 +35,13 @@ CreateNavNodeResult::~CreateNavNodeResult() void CreateNavNodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateNoteRequest.cc b/emr/src/model/CreateNoteRequest.cc index 0bdafba78..74643f90e 100644 --- a/emr/src/model/CreateNoteRequest.cc +++ b/emr/src/model/CreateNoteRequest.cc @@ -33,7 +33,7 @@ long CreateNoteRequest::getResourceOwnerId()const void CreateNoteRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateNoteRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateNoteRequest::getRegionId()const void CreateNoteRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateNoteRequest::getName()const @@ -55,7 +55,7 @@ std::string CreateNoteRequest::getName()const void CreateNoteRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateNoteRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string CreateNoteRequest::getClusterId()const void CreateNoteRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateNoteRequest::getType()const @@ -77,7 +77,7 @@ std::string CreateNoteRequest::getType()const void CreateNoteRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateNoteRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string CreateNoteRequest::getAccessKeyId()const void CreateNoteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateNoteResult.cc b/emr/src/model/CreateNoteResult.cc index 05d609b7e..6146d5e0c 100644 --- a/emr/src/model/CreateNoteResult.cc +++ b/emr/src/model/CreateNoteResult.cc @@ -35,10 +35,13 @@ CreateNoteResult::~CreateNoteResult() void CreateNoteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateParagraphRequest.cc b/emr/src/model/CreateParagraphRequest.cc index a6c985dbe..12939ba4f 100644 --- a/emr/src/model/CreateParagraphRequest.cc +++ b/emr/src/model/CreateParagraphRequest.cc @@ -33,7 +33,7 @@ long CreateParagraphRequest::getResourceOwnerId()const void CreateParagraphRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateParagraphRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateParagraphRequest::getRegionId()const void CreateParagraphRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateParagraphRequest::getNoteId()const @@ -55,7 +55,7 @@ std::string CreateParagraphRequest::getNoteId()const void CreateParagraphRequest::setNoteId(const std::string& noteId) { noteId_ = noteId; - setParameter("NoteId", noteId); + setCoreParameter("NoteId", noteId); } std::string CreateParagraphRequest::getText()const @@ -66,7 +66,7 @@ std::string CreateParagraphRequest::getText()const void CreateParagraphRequest::setText(const std::string& text) { text_ = text; - setParameter("Text", text); + setCoreParameter("Text", text); } std::string CreateParagraphRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string CreateParagraphRequest::getAccessKeyId()const void CreateParagraphRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateParagraphResult.cc b/emr/src/model/CreateParagraphResult.cc index ea85cac57..2bba1062b 100644 --- a/emr/src/model/CreateParagraphResult.cc +++ b/emr/src/model/CreateParagraphResult.cc @@ -35,10 +35,13 @@ CreateParagraphResult::~CreateParagraphResult() void CreateParagraphResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/CreateResourcePoolRequest.cc b/emr/src/model/CreateResourcePoolRequest.cc index e18a59e0c..7ea8649d3 100644 --- a/emr/src/model/CreateResourcePoolRequest.cc +++ b/emr/src/model/CreateResourcePoolRequest.cc @@ -33,7 +33,7 @@ std::string CreateResourcePoolRequest::getNote()const void CreateResourcePoolRequest::setNote(const std::string& note) { note_ = note; - setParameter("Note", note); + setCoreParameter("Note", note); } long CreateResourcePoolRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateResourcePoolRequest::getResourceOwnerId()const void CreateResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateResourcePoolRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateResourcePoolRequest::getRegionId()const void CreateResourcePoolRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateResourcePoolRequest::getName()const @@ -66,7 +66,7 @@ std::string CreateResourcePoolRequest::getName()const void CreateResourcePoolRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } bool CreateResourcePoolRequest::getActive()const @@ -77,7 +77,7 @@ bool CreateResourcePoolRequest::getActive()const void CreateResourcePoolRequest::setActive(bool active) { active_ = active; - setParameter("Active", std::to_string(active)); + setCoreParameter("Active", active ? "true" : "false"); } std::string CreateResourcePoolRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string CreateResourcePoolRequest::getClusterId()const void CreateResourcePoolRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string CreateResourcePoolRequest::getYarnSiteConfig()const @@ -99,7 +99,7 @@ std::string CreateResourcePoolRequest::getYarnSiteConfig()const void CreateResourcePoolRequest::setYarnSiteConfig(const std::string& yarnSiteConfig) { yarnSiteConfig_ = yarnSiteConfig; - setParameter("YarnSiteConfig", yarnSiteConfig); + setCoreParameter("YarnSiteConfig", yarnSiteConfig); } std::vector CreateResourcePoolRequest::getConfig()const @@ -114,12 +114,12 @@ void CreateResourcePoolRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".Note", obj.note); - setParameter(str + ".configType", obj.configType); - setParameter(str + ".TargetId", obj.targetId); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".Category", obj.category); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".Note", obj.note); + setCoreParameter(str + ".configType", obj.configType); + setCoreParameter(str + ".TargetId", obj.targetId); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".Category", obj.category); } } @@ -131,7 +131,7 @@ std::string CreateResourcePoolRequest::getAccessKeyId()const void CreateResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateResourcePoolRequest::getPoolType()const @@ -142,6 +142,6 @@ std::string CreateResourcePoolRequest::getPoolType()const void CreateResourcePoolRequest::setPoolType(const std::string& poolType) { poolType_ = poolType; - setParameter("PoolType", poolType); + setCoreParameter("PoolType", poolType); } diff --git a/emr/src/model/CreateResourcePoolResult.cc b/emr/src/model/CreateResourcePoolResult.cc index 679ab11de..8b90f33be 100644 --- a/emr/src/model/CreateResourcePoolResult.cc +++ b/emr/src/model/CreateResourcePoolResult.cc @@ -35,10 +35,13 @@ CreateResourcePoolResult::~CreateResourcePoolResult() void CreateResourcePoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/CreateResourceQueueRequest.cc b/emr/src/model/CreateResourceQueueRequest.cc index 70238892f..9db802c67 100644 --- a/emr/src/model/CreateResourceQueueRequest.cc +++ b/emr/src/model/CreateResourceQueueRequest.cc @@ -33,7 +33,7 @@ long CreateResourceQueueRequest::getResourceOwnerId()const void CreateResourceQueueRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long CreateResourceQueueRequest::getParentQueueId()const @@ -44,7 +44,7 @@ long CreateResourceQueueRequest::getParentQueueId()const void CreateResourceQueueRequest::setParentQueueId(long parentQueueId) { parentQueueId_ = parentQueueId; - setParameter("ParentQueueId", std::to_string(parentQueueId)); + setCoreParameter("ParentQueueId", std::to_string(parentQueueId)); } std::string CreateResourceQueueRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateResourceQueueRequest::getRegionId()const void CreateResourceQueueRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateResourceQueueRequest::getName()const @@ -66,7 +66,7 @@ std::string CreateResourceQueueRequest::getName()const void CreateResourceQueueRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateResourceQueueRequest::getQualifiedName()const @@ -77,7 +77,7 @@ std::string CreateResourceQueueRequest::getQualifiedName()const void CreateResourceQueueRequest::setQualifiedName(const std::string& qualifiedName) { qualifiedName_ = qualifiedName; - setParameter("QualifiedName", qualifiedName); + setCoreParameter("QualifiedName", qualifiedName); } long CreateResourceQueueRequest::getResourcePoolId()const @@ -88,7 +88,7 @@ long CreateResourceQueueRequest::getResourcePoolId()const void CreateResourceQueueRequest::setResourcePoolId(long resourcePoolId) { resourcePoolId_ = resourcePoolId; - setParameter("ResourcePoolId", std::to_string(resourcePoolId)); + setCoreParameter("ResourcePoolId", std::to_string(resourcePoolId)); } std::string CreateResourceQueueRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string CreateResourceQueueRequest::getClusterId()const void CreateResourceQueueRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } bool CreateResourceQueueRequest::getLeaf()const @@ -110,7 +110,7 @@ bool CreateResourceQueueRequest::getLeaf()const void CreateResourceQueueRequest::setLeaf(bool leaf) { leaf_ = leaf; - setParameter("Leaf", std::to_string(leaf)); + setCoreParameter("Leaf", leaf ? "true" : "false"); } std::vector CreateResourceQueueRequest::getConfig()const @@ -125,10 +125,10 @@ void CreateResourceQueueRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".Note", obj.note); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".Category", obj.category); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".Note", obj.note); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".Category", obj.category); } } @@ -140,6 +140,6 @@ std::string CreateResourceQueueRequest::getAccessKeyId()const void CreateResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateResourceQueueResult.cc b/emr/src/model/CreateResourceQueueResult.cc index 34b24cae8..e9a6ec439 100644 --- a/emr/src/model/CreateResourceQueueResult.cc +++ b/emr/src/model/CreateResourceQueueResult.cc @@ -35,10 +35,13 @@ CreateResourceQueueResult::~CreateResourceQueueResult() void CreateResourceQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/CreateScalingRuleRequest.cc b/emr/src/model/CreateScalingRuleRequest.cc index 7cd84b363..241086fd3 100644 --- a/emr/src/model/CreateScalingRuleRequest.cc +++ b/emr/src/model/CreateScalingRuleRequest.cc @@ -33,7 +33,7 @@ std::string CreateScalingRuleRequest::getLaunchTime()const void CreateScalingRuleRequest::setLaunchTime(const std::string& launchTime) { launchTime_ = launchTime; - setParameter("LaunchTime", launchTime); + setCoreParameter("LaunchTime", launchTime); } long CreateScalingRuleRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateScalingRuleRequest::getResourceOwnerId()const void CreateScalingRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateScalingRuleRequest::getRuleCategory()const @@ -55,7 +55,7 @@ std::string CreateScalingRuleRequest::getRuleCategory()const void CreateScalingRuleRequest::setRuleCategory(const std::string& ruleCategory) { ruleCategory_ = ruleCategory; - setParameter("RuleCategory", ruleCategory); + setCoreParameter("RuleCategory", ruleCategory); } int CreateScalingRuleRequest::getAdjustmentValue()const @@ -66,7 +66,7 @@ int CreateScalingRuleRequest::getAdjustmentValue()const void CreateScalingRuleRequest::setAdjustmentValue(int adjustmentValue) { adjustmentValue_ = adjustmentValue; - setParameter("AdjustmentValue", std::to_string(adjustmentValue)); + setCoreParameter("AdjustmentValue", std::to_string(adjustmentValue)); } std::string CreateScalingRuleRequest::getAdjustmentType()const @@ -77,7 +77,7 @@ std::string CreateScalingRuleRequest::getAdjustmentType()const void CreateScalingRuleRequest::setAdjustmentType(const std::string& adjustmentType) { adjustmentType_ = adjustmentType; - setParameter("AdjustmentType", adjustmentType); + setCoreParameter("AdjustmentType", adjustmentType); } std::string CreateScalingRuleRequest::getRuleName()const @@ -88,7 +88,7 @@ std::string CreateScalingRuleRequest::getRuleName()const void CreateScalingRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } std::string CreateScalingRuleRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string CreateScalingRuleRequest::getClusterId()const void CreateScalingRuleRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int CreateScalingRuleRequest::getLaunchExpirationTime()const @@ -110,7 +110,7 @@ int CreateScalingRuleRequest::getLaunchExpirationTime()const void CreateScalingRuleRequest::setLaunchExpirationTime(int launchExpirationTime) { launchExpirationTime_ = launchExpirationTime; - setParameter("LaunchExpirationTime", std::to_string(launchExpirationTime)); + setCoreParameter("LaunchExpirationTime", std::to_string(launchExpirationTime)); } std::string CreateScalingRuleRequest::getRecurrenceValue()const @@ -121,7 +121,7 @@ std::string CreateScalingRuleRequest::getRecurrenceValue()const void CreateScalingRuleRequest::setRecurrenceValue(const std::string& recurrenceValue) { recurrenceValue_ = recurrenceValue; - setParameter("RecurrenceValue", recurrenceValue); + setCoreParameter("RecurrenceValue", recurrenceValue); } std::string CreateScalingRuleRequest::getRecurrenceEndTime()const @@ -132,7 +132,7 @@ std::string CreateScalingRuleRequest::getRecurrenceEndTime()const void CreateScalingRuleRequest::setRecurrenceEndTime(const std::string& recurrenceEndTime) { recurrenceEndTime_ = recurrenceEndTime; - setParameter("RecurrenceEndTime", recurrenceEndTime); + setCoreParameter("RecurrenceEndTime", recurrenceEndTime); } std::vector CreateScalingRuleRequest::getCloudWatchTrigger()const @@ -147,12 +147,12 @@ void CreateScalingRuleRequest::setCloudWatchTrigger(const std::vector CreateScalingRuleRequest::getSchedulerTrigger()const @@ -201,11 +201,11 @@ void CreateScalingRuleRequest::setSchedulerTrigger(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingRuleId"].isNull()) scalingRuleId_ = value["ScalingRuleId"].asString(); diff --git a/emr/src/model/CreateScalingTaskGroupRequest.cc b/emr/src/model/CreateScalingTaskGroupRequest.cc index 134612b62..28bcabb69 100644 --- a/emr/src/model/CreateScalingTaskGroupRequest.cc +++ b/emr/src/model/CreateScalingTaskGroupRequest.cc @@ -33,7 +33,7 @@ long CreateScalingTaskGroupRequest::getResourceOwnerId()const void CreateScalingTaskGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateScalingTaskGroupRequest::getDataDiskCategory()const @@ -44,7 +44,7 @@ std::string CreateScalingTaskGroupRequest::getDataDiskCategory()const void CreateScalingTaskGroupRequest::setDataDiskCategory(const std::string& dataDiskCategory) { dataDiskCategory_ = dataDiskCategory; - setParameter("DataDiskCategory", dataDiskCategory); + setCoreParameter("DataDiskCategory", dataDiskCategory); } std::string CreateScalingTaskGroupRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string CreateScalingTaskGroupRequest::getClusterId()const void CreateScalingTaskGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int CreateScalingTaskGroupRequest::getMinSize()const @@ -66,7 +66,7 @@ int CreateScalingTaskGroupRequest::getMinSize()const void CreateScalingTaskGroupRequest::setMinSize(int minSize) { minSize_ = minSize; - setParameter("MinSize", std::to_string(minSize)); + setCoreParameter("MinSize", std::to_string(minSize)); } std::string CreateScalingTaskGroupRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string CreateScalingTaskGroupRequest::getAccessKeyId()const void CreateScalingTaskGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateScalingTaskGroupRequest::getSpotStrategy()const @@ -88,7 +88,7 @@ std::string CreateScalingTaskGroupRequest::getSpotStrategy()const void CreateScalingTaskGroupRequest::setSpotStrategy(const std::string& spotStrategy) { spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); + setCoreParameter("SpotStrategy", spotStrategy); } int CreateScalingTaskGroupRequest::getDataDiskSize()const @@ -99,7 +99,7 @@ int CreateScalingTaskGroupRequest::getDataDiskSize()const void CreateScalingTaskGroupRequest::setDataDiskSize(int dataDiskSize) { dataDiskSize_ = dataDiskSize; - setParameter("DataDiskSize", std::to_string(dataDiskSize)); + setCoreParameter("DataDiskSize", std::to_string(dataDiskSize)); } std::vector CreateScalingTaskGroupRequest::getSpotPriceLimits()const @@ -114,8 +114,8 @@ void CreateScalingTaskGroupRequest::setSpotPriceLimits(const std::vector CreateScalingTaskGroupRequest::getScalingRule()const @@ -142,18 +142,18 @@ void CreateScalingTaskGroupRequest::setScalingRule(const std::vector CreateScalingTaskGroupRequest::getInstanceTypeList()const @@ -221,6 +221,6 @@ void CreateScalingTaskGroupRequest::setInstanceTypeList(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HostGroupId"].isNull()) hostGroupId_ = value["HostGroupId"].asString(); diff --git a/emr/src/model/CreateUserGroupRequest.cc b/emr/src/model/CreateUserGroupRequest.cc new file mode 100644 index 000000000..4577b53a1 --- /dev/null +++ b/emr/src/model/CreateUserGroupRequest.cc @@ -0,0 +1,237 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::CreateUserGroupRequest; + +CreateUserGroupRequest::CreateUserGroupRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateUserGroup") +{} + +CreateUserGroupRequest::~CreateUserGroupRequest() +{} + +std::string CreateUserGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateUserGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long CreateUserGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateUserGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateUserGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateUserGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateUserGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateUserGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateUserGroupRequest::getDescription()const +{ + return description_; +} + +void CreateUserGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateUserGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateUserGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string CreateUserGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateUserGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateUserGroupRequest::getType()const +{ + return type_; +} + +void CreateUserGroupRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +bool CreateUserGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateUserGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateUserGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateUserGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string CreateUserGroupRequest::getCallerType()const +{ + return callerType_; +} + +void CreateUserGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateUserGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateUserGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool CreateUserGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateUserGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateUserGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateUserGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateUserGroupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateUserGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateUserGroupRequest::getRequestId()const +{ + return requestId_; +} + +void CreateUserGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string CreateUserGroupRequest::getName()const +{ + return name_; +} + +void CreateUserGroupRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::vector CreateUserGroupRequest::getRoleIdList()const +{ + return roleIdList_; +} + +void CreateUserGroupRequest::setRoleIdList(const std::vector& roleIdList) +{ + roleIdList_ = roleIdList; + for(int i = 0; i!= roleIdList.size(); i++) + setCoreParameter("RoleIdList."+ std::to_string(i), std::to_string(roleIdList.at(i))); +} + +long CreateUserGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateUserGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/CreateUserGroupResult.cc b/emr/src/model/CreateUserGroupResult.cc new file mode 100644 index 000000000..cefb6ac69 --- /dev/null +++ b/emr/src/model/CreateUserGroupResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateUserGroupResult::CreateUserGroupResult() : + ServiceResult() +{} + +CreateUserGroupResult::CreateUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserGroupResult::~CreateUserGroupResult() +{} + +void CreateUserGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool CreateUserGroupResult::getPaging()const +{ + return paging_; +} + +bool CreateUserGroupResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/CreateUserPasswordRequest.cc b/emr/src/model/CreateUserPasswordRequest.cc index 52d4500c3..f8b218be4 100644 --- a/emr/src/model/CreateUserPasswordRequest.cc +++ b/emr/src/model/CreateUserPasswordRequest.cc @@ -33,7 +33,7 @@ long CreateUserPasswordRequest::getResourceOwnerId()const void CreateUserPasswordRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateUserPasswordRequest::getPassword()const @@ -44,7 +44,7 @@ std::string CreateUserPasswordRequest::getPassword()const void CreateUserPasswordRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } std::string CreateUserPasswordRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateUserPasswordRequest::getRegionId()const void CreateUserPasswordRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateUserPasswordRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string CreateUserPasswordRequest::getClusterId()const void CreateUserPasswordRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::vector CreateUserPasswordRequest::getUserInfo()const @@ -81,10 +81,10 @@ void CreateUserPasswordRequest::setUserInfo(const std::vector& userInf for(int i = 0; i!= userInfo.size(); i++) { auto obj = userInfo.at(i); std::string str ="UserInfo."+ std::to_string(i); - setParameter(str + ".Type", obj.type); - setParameter(str + ".GroupName", obj.groupName); - setParameter(str + ".UserId", obj.userId); - setParameter(str + ".UserName", obj.userName); + setCoreParameter(str + ".Type", obj.type); + setCoreParameter(str + ".GroupName", obj.groupName); + setCoreParameter(str + ".UserId", obj.userId); + setCoreParameter(str + ".UserName", obj.userName); } } @@ -96,6 +96,6 @@ std::string CreateUserPasswordRequest::getAccessKeyId()const void CreateUserPasswordRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateUserPasswordResult.cc b/emr/src/model/CreateUserPasswordResult.cc index 96e07bd9d..4c27f8d23 100644 --- a/emr/src/model/CreateUserPasswordResult.cc +++ b/emr/src/model/CreateUserPasswordResult.cc @@ -35,10 +35,13 @@ CreateUserPasswordResult::~CreateUserPasswordResult() void CreateUserPasswordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/CreateUserRequest.cc b/emr/src/model/CreateUserRequest.cc new file mode 100644 index 000000000..e242fcd1a --- /dev/null +++ b/emr/src/model/CreateUserRequest.cc @@ -0,0 +1,289 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::CreateUserRequest; + +CreateUserRequest::CreateUserRequest() : + RpcServiceRequest("emr", "2016-04-08", "CreateUser") +{} + +CreateUserRequest::~CreateUserRequest() +{} + +std::string CreateUserRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateUserRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long CreateUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateUserRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateUserRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateUserRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateUserRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateUserRequest::getUserType()const +{ + return userType_; +} + +void CreateUserRequest::setUserType(const std::string& userType) +{ + userType_ = userType; + setCoreParameter("UserType", userType); +} + +std::string CreateUserRequest::getDescription()const +{ + return description_; +} + +void CreateUserRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateUserRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateUserRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string CreateUserRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateUserRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool CreateUserRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateUserRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateUserRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateUserRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string CreateUserRequest::getCallerType()const +{ + return callerType_; +} + +void CreateUserRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::vector CreateUserRequest::getUserAccountParamList()const +{ + return userAccountParamList_; +} + +void CreateUserRequest::setUserAccountParamList(const std::vector& userAccountParamList) +{ + userAccountParamList_ = userAccountParamList; + int i = 0; + for(int i = 0; i!= userAccountParamList.size(); i++) { + auto obj = userAccountParamList.at(i); + std::string str ="UserAccountParamList."+ std::to_string(i); + setCoreParameter(str + ".AccountType", obj.accountType); + setCoreParameter(str + ".AuthType", obj.authType); + setCoreParameter(str + ".AccountPassword", obj.accountPassword); + } +} + +bool CreateUserRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateUserRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::vector CreateUserRequest::getGroupIdList()const +{ + return groupIdList_; +} + +void CreateUserRequest::setGroupIdList(const std::vector& groupIdList) +{ + groupIdList_ = groupIdList; + for(int i = 0; i!= groupIdList.size(); i++) + setCoreParameter("GroupIdList."+ std::to_string(i), std::to_string(groupIdList.at(i))); +} + +std::string CreateUserRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateUserRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateUserRequest::getRegionId()const +{ + return regionId_; +} + +void CreateUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateUserRequest::getRequestId()const +{ + return requestId_; +} + +void CreateUserRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::vector CreateUserRequest::getRoleIdList()const +{ + return roleIdList_; +} + +void CreateUserRequest::setRoleIdList(const std::vector& roleIdList) +{ + roleIdList_ = roleIdList; + for(int i = 0; i!= roleIdList.size(); i++) + setCoreParameter("RoleIdList."+ std::to_string(i), std::to_string(roleIdList.at(i))); +} + +long CreateUserRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateUserRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateUserRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void CreateUserRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + +std::string CreateUserRequest::getUserName()const +{ + return userName_; +} + +void CreateUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + +std::string CreateUserRequest::getStatus()const +{ + return status_; +} + +void CreateUserRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/CreateUserResult.cc b/emr/src/model/CreateUserResult.cc new file mode 100644 index 000000000..f1e7c8aeb --- /dev/null +++ b/emr/src/model/CreateUserResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +CreateUserResult::CreateUserResult() : + ServiceResult() +{} + +CreateUserResult::CreateUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserResult::~CreateUserResult() +{} + +void CreateUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool CreateUserResult::getPaging()const +{ + return paging_; +} + +bool CreateUserResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/CreateUserStatisticsRequest.cc b/emr/src/model/CreateUserStatisticsRequest.cc index b97fd62f3..6d00ff45b 100644 --- a/emr/src/model/CreateUserStatisticsRequest.cc +++ b/emr/src/model/CreateUserStatisticsRequest.cc @@ -33,7 +33,7 @@ long CreateUserStatisticsRequest::getResourceOwnerId()const void CreateUserStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateUserStatisticsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateUserStatisticsRequest::getRegionId()const void CreateUserStatisticsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateUserStatisticsRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string CreateUserStatisticsRequest::getAccessKeyId()const void CreateUserStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateUserStatisticsResult.cc b/emr/src/model/CreateUserStatisticsResult.cc index 6761f3f59..a5bbcda2a 100644 --- a/emr/src/model/CreateUserStatisticsResult.cc +++ b/emr/src/model/CreateUserStatisticsResult.cc @@ -35,10 +35,13 @@ CreateUserStatisticsResult::~CreateUserStatisticsResult() void CreateUserStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/CreateUsersRequest.cc b/emr/src/model/CreateUsersRequest.cc index 47984b8d7..60df857a8 100644 --- a/emr/src/model/CreateUsersRequest.cc +++ b/emr/src/model/CreateUsersRequest.cc @@ -33,7 +33,7 @@ long CreateUsersRequest::getResourceOwnerId()const void CreateUsersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateUsersRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CreateUsersRequest::getRegionId()const void CreateUsersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateUsersRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string CreateUsersRequest::getClusterId()const void CreateUsersRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::vector CreateUsersRequest::getUserInfo()const @@ -70,9 +70,9 @@ void CreateUsersRequest::setUserInfo(const std::vector& userInfo) for(int i = 0; i!= userInfo.size(); i++) { auto obj = userInfo.at(i); std::string str ="UserInfo."+ std::to_string(i); - setParameter(str + ".Type", obj.type); - setParameter(str + ".UserId", obj.userId); - setParameter(str + ".UserName", obj.userName); + setCoreParameter(str + ".Type", obj.type); + setCoreParameter(str + ".UserId", obj.userId); + setCoreParameter(str + ".UserName", obj.userName); } } @@ -84,6 +84,6 @@ std::string CreateUsersRequest::getAccessKeyId()const void CreateUsersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/CreateUsersResult.cc b/emr/src/model/CreateUsersResult.cc index 806e955b6..4d379ad88 100644 --- a/emr/src/model/CreateUsersResult.cc +++ b/emr/src/model/CreateUsersResult.cc @@ -35,10 +35,13 @@ CreateUsersResult::~CreateUsersResult() void CreateUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/CreateVerificationCodeRequest.cc b/emr/src/model/CreateVerificationCodeRequest.cc index c9b7a6312..5c5c3ea09 100644 --- a/emr/src/model/CreateVerificationCodeRequest.cc +++ b/emr/src/model/CreateVerificationCodeRequest.cc @@ -33,7 +33,7 @@ std::string CreateVerificationCodeRequest::getMode()const void CreateVerificationCodeRequest::setMode(const std::string& mode) { mode_ = mode; - setParameter("Mode", mode); + setCoreParameter("Mode", mode); } long CreateVerificationCodeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateVerificationCodeRequest::getResourceOwnerId()const void CreateVerificationCodeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateVerificationCodeRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string CreateVerificationCodeRequest::getRegionId()const void CreateVerificationCodeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateVerificationCodeRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string CreateVerificationCodeRequest::getAccessKeyId()const void CreateVerificationCodeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateVerificationCodeRequest::getTarget()const @@ -77,6 +77,6 @@ std::string CreateVerificationCodeRequest::getTarget()const void CreateVerificationCodeRequest::setTarget(const std::string& target) { target_ = target; - setParameter("Target", target); + setCoreParameter("Target", target); } diff --git a/emr/src/model/CreateVerificationCodeResult.cc b/emr/src/model/CreateVerificationCodeResult.cc index caefc2cf4..008d992e7 100644 --- a/emr/src/model/CreateVerificationCodeResult.cc +++ b/emr/src/model/CreateVerificationCodeResult.cc @@ -35,10 +35,13 @@ CreateVerificationCodeResult::~CreateVerificationCodeResult() void CreateVerificationCodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Status"].isNull()) status_ = std::stol(value["Status"].asString()); diff --git a/emr/src/model/DeleteAlertContactsRequest.cc b/emr/src/model/DeleteAlertContactsRequest.cc index 7cc462e5f..c91ab1388 100644 --- a/emr/src/model/DeleteAlertContactsRequest.cc +++ b/emr/src/model/DeleteAlertContactsRequest.cc @@ -33,7 +33,7 @@ long DeleteAlertContactsRequest::getResourceOwnerId()const void DeleteAlertContactsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteAlertContactsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteAlertContactsRequest::getRegionId()const void DeleteAlertContactsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteAlertContactsRequest::getIds()const @@ -55,7 +55,7 @@ std::string DeleteAlertContactsRequest::getIds()const void DeleteAlertContactsRequest::setIds(const std::string& ids) { ids_ = ids; - setParameter("Ids", ids); + setCoreParameter("Ids", ids); } std::string DeleteAlertContactsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteAlertContactsRequest::getAccessKeyId()const void DeleteAlertContactsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteAlertContactsResult.cc b/emr/src/model/DeleteAlertContactsResult.cc index e38f638be..b8ad2c62e 100644 --- a/emr/src/model/DeleteAlertContactsResult.cc +++ b/emr/src/model/DeleteAlertContactsResult.cc @@ -35,10 +35,13 @@ DeleteAlertContactsResult::~DeleteAlertContactsResult() void DeleteAlertContactsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Done"].isNull()) done_ = value["Done"].asString() == "true"; diff --git a/emr/src/model/DeleteAlertDingDingGroupsRequest.cc b/emr/src/model/DeleteAlertDingDingGroupsRequest.cc index b4a0cc33c..8582a6bfd 100644 --- a/emr/src/model/DeleteAlertDingDingGroupsRequest.cc +++ b/emr/src/model/DeleteAlertDingDingGroupsRequest.cc @@ -33,7 +33,7 @@ long DeleteAlertDingDingGroupsRequest::getResourceOwnerId()const void DeleteAlertDingDingGroupsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteAlertDingDingGroupsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteAlertDingDingGroupsRequest::getRegionId()const void DeleteAlertDingDingGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteAlertDingDingGroupsRequest::getIds()const @@ -55,7 +55,7 @@ std::string DeleteAlertDingDingGroupsRequest::getIds()const void DeleteAlertDingDingGroupsRequest::setIds(const std::string& ids) { ids_ = ids; - setParameter("Ids", ids); + setCoreParameter("Ids", ids); } std::string DeleteAlertDingDingGroupsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteAlertDingDingGroupsRequest::getAccessKeyId()const void DeleteAlertDingDingGroupsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteAlertDingDingGroupsResult.cc b/emr/src/model/DeleteAlertDingDingGroupsResult.cc index fab4402ba..668c399e4 100644 --- a/emr/src/model/DeleteAlertDingDingGroupsResult.cc +++ b/emr/src/model/DeleteAlertDingDingGroupsResult.cc @@ -35,10 +35,13 @@ DeleteAlertDingDingGroupsResult::~DeleteAlertDingDingGroupsResult() void DeleteAlertDingDingGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Done"].isNull()) done_ = value["Done"].asString() == "true"; diff --git a/emr/src/model/DeleteAlertUserGroupsRequest.cc b/emr/src/model/DeleteAlertUserGroupsRequest.cc index b126116fc..d03d7fe6c 100644 --- a/emr/src/model/DeleteAlertUserGroupsRequest.cc +++ b/emr/src/model/DeleteAlertUserGroupsRequest.cc @@ -33,7 +33,7 @@ long DeleteAlertUserGroupsRequest::getResourceOwnerId()const void DeleteAlertUserGroupsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteAlertUserGroupsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteAlertUserGroupsRequest::getRegionId()const void DeleteAlertUserGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteAlertUserGroupsRequest::getIds()const @@ -55,7 +55,7 @@ std::string DeleteAlertUserGroupsRequest::getIds()const void DeleteAlertUserGroupsRequest::setIds(const std::string& ids) { ids_ = ids; - setParameter("Ids", ids); + setCoreParameter("Ids", ids); } std::string DeleteAlertUserGroupsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteAlertUserGroupsRequest::getAccessKeyId()const void DeleteAlertUserGroupsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteAlertUserGroupsResult.cc b/emr/src/model/DeleteAlertUserGroupsResult.cc index 8a0ffbb15..85d5b937e 100644 --- a/emr/src/model/DeleteAlertUserGroupsResult.cc +++ b/emr/src/model/DeleteAlertUserGroupsResult.cc @@ -35,10 +35,13 @@ DeleteAlertUserGroupsResult::~DeleteAlertUserGroupsResult() void DeleteAlertUserGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Done"].isNull()) done_ = value["Done"].asString() == "true"; diff --git a/emr/src/model/DeleteBatchResourceUsersRequest.cc b/emr/src/model/DeleteBatchResourceUsersRequest.cc new file mode 100644 index 000000000..ad8c03a5b --- /dev/null +++ b/emr/src/model/DeleteBatchResourceUsersRequest.cc @@ -0,0 +1,226 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DeleteBatchResourceUsersRequest; + +DeleteBatchResourceUsersRequest::DeleteBatchResourceUsersRequest() : + RpcServiceRequest("emr", "2016-04-08", "DeleteBatchResourceUsers") +{} + +DeleteBatchResourceUsersRequest::~DeleteBatchResourceUsersRequest() +{} + +std::string DeleteBatchResourceUsersRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteBatchResourceUsersRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DeleteBatchResourceUsersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteBatchResourceUsersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteBatchResourceUsersRequest::getResourceId()const +{ + return resourceId_; +} + +void DeleteBatchResourceUsersRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long DeleteBatchResourceUsersRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteBatchResourceUsersRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::vector DeleteBatchResourceUsersRequest::getUserIdList()const +{ + return userIdList_; +} + +void DeleteBatchResourceUsersRequest::setUserIdList(const std::vector& userIdList) +{ + userIdList_ = userIdList; + for(int i = 0; i!= userIdList.size(); i++) + setCoreParameter("UserIdList."+ std::to_string(i), userIdList.at(i)); +} + +bool DeleteBatchResourceUsersRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteBatchResourceUsersRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteBatchResourceUsersRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteBatchResourceUsersRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DeleteBatchResourceUsersRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteBatchResourceUsersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteBatchResourceUsersRequest::getResourceType()const +{ + return resourceType_; +} + +void DeleteBatchResourceUsersRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool DeleteBatchResourceUsersRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteBatchResourceUsersRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteBatchResourceUsersRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteBatchResourceUsersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DeleteBatchResourceUsersRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteBatchResourceUsersRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DeleteBatchResourceUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteBatchResourceUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DeleteBatchResourceUsersRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteBatchResourceUsersRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteBatchResourceUsersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteBatchResourceUsersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteBatchResourceUsersRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteBatchResourceUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteBatchResourceUsersRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteBatchResourceUsersRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DeleteBatchResourceUsersRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteBatchResourceUsersRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/DeleteBatchResourceUsersResult.cc b/emr/src/model/DeleteBatchResourceUsersResult.cc new file mode 100644 index 000000000..1b01da5ef --- /dev/null +++ b/emr/src/model/DeleteBatchResourceUsersResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DeleteBatchResourceUsersResult::DeleteBatchResourceUsersResult() : + ServiceResult() +{} + +DeleteBatchResourceUsersResult::DeleteBatchResourceUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBatchResourceUsersResult::~DeleteBatchResourceUsersResult() +{} + +void DeleteBatchResourceUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DeleteBatchResourceUsersResult::getPaging()const +{ + return paging_; +} + +bool DeleteBatchResourceUsersResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/DeleteClusterHostGroupRequest.cc b/emr/src/model/DeleteClusterHostGroupRequest.cc index 12bfc732e..6c83e4fce 100644 --- a/emr/src/model/DeleteClusterHostGroupRequest.cc +++ b/emr/src/model/DeleteClusterHostGroupRequest.cc @@ -33,7 +33,7 @@ long DeleteClusterHostGroupRequest::getResourceOwnerId()const void DeleteClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteClusterHostGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteClusterHostGroupRequest::getRegionId()const void DeleteClusterHostGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteClusterHostGroupRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string DeleteClusterHostGroupRequest::getHostGroupId()const void DeleteClusterHostGroupRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string DeleteClusterHostGroupRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DeleteClusterHostGroupRequest::getClusterId()const void DeleteClusterHostGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DeleteClusterHostGroupRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DeleteClusterHostGroupRequest::getAccessKeyId()const void DeleteClusterHostGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteClusterHostGroupResult.cc b/emr/src/model/DeleteClusterHostGroupResult.cc index 98d14691f..ab558f47b 100644 --- a/emr/src/model/DeleteClusterHostGroupResult.cc +++ b/emr/src/model/DeleteClusterHostGroupResult.cc @@ -35,10 +35,13 @@ DeleteClusterHostGroupResult::~DeleteClusterHostGroupResult() void DeleteClusterHostGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteClusterScriptRequest.cc b/emr/src/model/DeleteClusterScriptRequest.cc index 2a0cdf1f9..89ecf3f3a 100644 --- a/emr/src/model/DeleteClusterScriptRequest.cc +++ b/emr/src/model/DeleteClusterScriptRequest.cc @@ -33,7 +33,7 @@ long DeleteClusterScriptRequest::getResourceOwnerId()const void DeleteClusterScriptRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteClusterScriptRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteClusterScriptRequest::getRegionId()const void DeleteClusterScriptRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteClusterScriptRequest::getId()const @@ -55,7 +55,7 @@ std::string DeleteClusterScriptRequest::getId()const void DeleteClusterScriptRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteClusterScriptRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteClusterScriptRequest::getAccessKeyId()const void DeleteClusterScriptRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteClusterScriptResult.cc b/emr/src/model/DeleteClusterScriptResult.cc index c3a04c509..0174b616e 100644 --- a/emr/src/model/DeleteClusterScriptResult.cc +++ b/emr/src/model/DeleteClusterScriptResult.cc @@ -35,10 +35,13 @@ DeleteClusterScriptResult::~DeleteClusterScriptResult() void DeleteClusterScriptResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteClusterTemplateRequest.cc b/emr/src/model/DeleteClusterTemplateRequest.cc index c33e4c490..8b545bdf6 100644 --- a/emr/src/model/DeleteClusterTemplateRequest.cc +++ b/emr/src/model/DeleteClusterTemplateRequest.cc @@ -33,7 +33,7 @@ long DeleteClusterTemplateRequest::getResourceOwnerId()const void DeleteClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteClusterTemplateRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteClusterTemplateRequest::getRegionId()const void DeleteClusterTemplateRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteClusterTemplateRequest::getBizId()const @@ -55,7 +55,7 @@ std::string DeleteClusterTemplateRequest::getBizId()const void DeleteClusterTemplateRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } std::string DeleteClusterTemplateRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteClusterTemplateRequest::getAccessKeyId()const void DeleteClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteClusterTemplateResult.cc b/emr/src/model/DeleteClusterTemplateResult.cc index bd5baf98c..5266005d4 100644 --- a/emr/src/model/DeleteClusterTemplateResult.cc +++ b/emr/src/model/DeleteClusterTemplateResult.cc @@ -35,10 +35,13 @@ DeleteClusterTemplateResult::~DeleteClusterTemplateResult() void DeleteClusterTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteDataSourceRequest.cc b/emr/src/model/DeleteDataSourceRequest.cc index 788db752f..9896fddcd 100644 --- a/emr/src/model/DeleteDataSourceRequest.cc +++ b/emr/src/model/DeleteDataSourceRequest.cc @@ -33,7 +33,7 @@ long DeleteDataSourceRequest::getResourceOwnerId()const void DeleteDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteDataSourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteDataSourceRequest::getRegionId()const void DeleteDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteDataSourceRequest::getId()const @@ -55,7 +55,7 @@ std::string DeleteDataSourceRequest::getId()const void DeleteDataSourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteDataSourceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteDataSourceRequest::getAccessKeyId()const void DeleteDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteDataSourceResult.cc b/emr/src/model/DeleteDataSourceResult.cc index a4926cc47..402441c65 100644 --- a/emr/src/model/DeleteDataSourceResult.cc +++ b/emr/src/model/DeleteDataSourceResult.cc @@ -35,10 +35,13 @@ DeleteDataSourceResult::~DeleteDataSourceResult() void DeleteDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteETLJobRequest.cc b/emr/src/model/DeleteETLJobRequest.cc index 9b5716ed9..32ee27d8f 100644 --- a/emr/src/model/DeleteETLJobRequest.cc +++ b/emr/src/model/DeleteETLJobRequest.cc @@ -33,7 +33,7 @@ long DeleteETLJobRequest::getResourceOwnerId()const void DeleteETLJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteETLJobRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteETLJobRequest::getRegionId()const void DeleteETLJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteETLJobRequest::getId()const @@ -55,7 +55,7 @@ std::string DeleteETLJobRequest::getId()const void DeleteETLJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteETLJobRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteETLJobRequest::getAccessKeyId()const void DeleteETLJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteETLJobResult.cc b/emr/src/model/DeleteETLJobResult.cc index d90ad1cde..ac1e4ae1b 100644 --- a/emr/src/model/DeleteETLJobResult.cc +++ b/emr/src/model/DeleteETLJobResult.cc @@ -35,10 +35,13 @@ DeleteETLJobResult::~DeleteETLJobResult() void DeleteETLJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteExecutionPlanRequest.cc b/emr/src/model/DeleteExecutionPlanRequest.cc index 7067bb44e..9b09a6380 100644 --- a/emr/src/model/DeleteExecutionPlanRequest.cc +++ b/emr/src/model/DeleteExecutionPlanRequest.cc @@ -33,7 +33,7 @@ long DeleteExecutionPlanRequest::getResourceOwnerId()const void DeleteExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteExecutionPlanRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteExecutionPlanRequest::getRegionId()const void DeleteExecutionPlanRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteExecutionPlanRequest::getId()const @@ -55,7 +55,7 @@ std::string DeleteExecutionPlanRequest::getId()const void DeleteExecutionPlanRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteExecutionPlanRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteExecutionPlanRequest::getAccessKeyId()const void DeleteExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteExecutionPlanResult.cc b/emr/src/model/DeleteExecutionPlanResult.cc index 4ea8d4295..66a0a278e 100644 --- a/emr/src/model/DeleteExecutionPlanResult.cc +++ b/emr/src/model/DeleteExecutionPlanResult.cc @@ -35,10 +35,13 @@ DeleteExecutionPlanResult::~DeleteExecutionPlanResult() void DeleteExecutionPlanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteFlowCategoryRequest.cc b/emr/src/model/DeleteFlowCategoryRequest.cc index 34868ab96..70f2dbf25 100644 --- a/emr/src/model/DeleteFlowCategoryRequest.cc +++ b/emr/src/model/DeleteFlowCategoryRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFlowCategoryRequest::getRegionId()const void DeleteFlowCategoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowCategoryRequest::getId()const @@ -44,7 +44,7 @@ std::string DeleteFlowCategoryRequest::getId()const void DeleteFlowCategoryRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteFlowCategoryRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DeleteFlowCategoryRequest::getProjectId()const void DeleteFlowCategoryRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DeleteFlowCategoryResult.cc b/emr/src/model/DeleteFlowCategoryResult.cc index b3809f8dd..b9d725895 100644 --- a/emr/src/model/DeleteFlowCategoryResult.cc +++ b/emr/src/model/DeleteFlowCategoryResult.cc @@ -35,10 +35,13 @@ DeleteFlowCategoryResult::~DeleteFlowCategoryResult() void DeleteFlowCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteFlowJobRequest.cc b/emr/src/model/DeleteFlowJobRequest.cc index 549e95bcd..244c97c68 100644 --- a/emr/src/model/DeleteFlowJobRequest.cc +++ b/emr/src/model/DeleteFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFlowJobRequest::getRegionId()const void DeleteFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowJobRequest::getId()const @@ -44,7 +44,7 @@ std::string DeleteFlowJobRequest::getId()const void DeleteFlowJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteFlowJobRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DeleteFlowJobRequest::getProjectId()const void DeleteFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DeleteFlowJobResult.cc b/emr/src/model/DeleteFlowJobResult.cc index f3f296388..9181182c9 100644 --- a/emr/src/model/DeleteFlowJobResult.cc +++ b/emr/src/model/DeleteFlowJobResult.cc @@ -35,10 +35,13 @@ DeleteFlowJobResult::~DeleteFlowJobResult() void DeleteFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteFlowProjectByIdRequest.cc b/emr/src/model/DeleteFlowProjectByIdRequest.cc index c884a4fa3..b4b4ba885 100644 --- a/emr/src/model/DeleteFlowProjectByIdRequest.cc +++ b/emr/src/model/DeleteFlowProjectByIdRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFlowProjectByIdRequest::getRegionId()const void DeleteFlowProjectByIdRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowProjectByIdRequest::getProjectId()const @@ -44,6 +44,6 @@ std::string DeleteFlowProjectByIdRequest::getProjectId()const void DeleteFlowProjectByIdRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DeleteFlowProjectByIdResult.cc b/emr/src/model/DeleteFlowProjectByIdResult.cc index dabcca921..efa49a70d 100644 --- a/emr/src/model/DeleteFlowProjectByIdResult.cc +++ b/emr/src/model/DeleteFlowProjectByIdResult.cc @@ -35,10 +35,13 @@ DeleteFlowProjectByIdResult::~DeleteFlowProjectByIdResult() void DeleteFlowProjectByIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteFlowProjectClusterSettingRequest.cc b/emr/src/model/DeleteFlowProjectClusterSettingRequest.cc index dfd74bd63..7554ead6e 100644 --- a/emr/src/model/DeleteFlowProjectClusterSettingRequest.cc +++ b/emr/src/model/DeleteFlowProjectClusterSettingRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFlowProjectClusterSettingRequest::getRegionId()const void DeleteFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowProjectClusterSettingRequest::getClusterId()const @@ -44,7 +44,7 @@ std::string DeleteFlowProjectClusterSettingRequest::getClusterId()const void DeleteFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DeleteFlowProjectClusterSettingRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DeleteFlowProjectClusterSettingRequest::getProjectId()const void DeleteFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DeleteFlowProjectClusterSettingResult.cc b/emr/src/model/DeleteFlowProjectClusterSettingResult.cc index 92dd4ec86..a22ac2ad8 100644 --- a/emr/src/model/DeleteFlowProjectClusterSettingResult.cc +++ b/emr/src/model/DeleteFlowProjectClusterSettingResult.cc @@ -35,10 +35,13 @@ DeleteFlowProjectClusterSettingResult::~DeleteFlowProjectClusterSettingResult() void DeleteFlowProjectClusterSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteFlowProjectRequest.cc b/emr/src/model/DeleteFlowProjectRequest.cc index 076d11d67..8d9e47e90 100644 --- a/emr/src/model/DeleteFlowProjectRequest.cc +++ b/emr/src/model/DeleteFlowProjectRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFlowProjectRequest::getRegionId()const void DeleteFlowProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowProjectRequest::getProjectId()const @@ -44,6 +44,6 @@ std::string DeleteFlowProjectRequest::getProjectId()const void DeleteFlowProjectRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DeleteFlowProjectResult.cc b/emr/src/model/DeleteFlowProjectResult.cc index a403ef2a2..a9f45208c 100644 --- a/emr/src/model/DeleteFlowProjectResult.cc +++ b/emr/src/model/DeleteFlowProjectResult.cc @@ -35,10 +35,13 @@ DeleteFlowProjectResult::~DeleteFlowProjectResult() void DeleteFlowProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteFlowProjectUserRequest.cc b/emr/src/model/DeleteFlowProjectUserRequest.cc index cdabe9390..a8a626402 100644 --- a/emr/src/model/DeleteFlowProjectUserRequest.cc +++ b/emr/src/model/DeleteFlowProjectUserRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFlowProjectUserRequest::getRegionId()const void DeleteFlowProjectUserRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowProjectUserRequest::getProjectId()const @@ -44,7 +44,7 @@ std::string DeleteFlowProjectUserRequest::getProjectId()const void DeleteFlowProjectUserRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string DeleteFlowProjectUserRequest::getUserName()const @@ -55,6 +55,6 @@ std::string DeleteFlowProjectUserRequest::getUserName()const void DeleteFlowProjectUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/emr/src/model/DeleteFlowProjectUserResult.cc b/emr/src/model/DeleteFlowProjectUserResult.cc index 68fc1f52f..cba91fea5 100644 --- a/emr/src/model/DeleteFlowProjectUserResult.cc +++ b/emr/src/model/DeleteFlowProjectUserResult.cc @@ -35,10 +35,13 @@ DeleteFlowProjectUserResult::~DeleteFlowProjectUserResult() void DeleteFlowProjectUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteFlowRequest.cc b/emr/src/model/DeleteFlowRequest.cc index 6fc7179df..39737fd8f 100644 --- a/emr/src/model/DeleteFlowRequest.cc +++ b/emr/src/model/DeleteFlowRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFlowRequest::getRegionId()const void DeleteFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowRequest::getId()const @@ -44,7 +44,7 @@ std::string DeleteFlowRequest::getId()const void DeleteFlowRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteFlowRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DeleteFlowRequest::getProjectId()const void DeleteFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DeleteFlowResult.cc b/emr/src/model/DeleteFlowResult.cc index 399ea73d5..d886cd3bd 100644 --- a/emr/src/model/DeleteFlowResult.cc +++ b/emr/src/model/DeleteFlowResult.cc @@ -35,10 +35,13 @@ DeleteFlowResult::~DeleteFlowResult() void DeleteFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteHostPoolRequest.cc b/emr/src/model/DeleteHostPoolRequest.cc new file mode 100644 index 000000000..251752534 --- /dev/null +++ b/emr/src/model/DeleteHostPoolRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::DeleteHostPoolRequest; + +DeleteHostPoolRequest::DeleteHostPoolRequest() : + RpcServiceRequest("emr", "2016-04-08", "DeleteHostPool") +{} + +DeleteHostPoolRequest::~DeleteHostPoolRequest() +{} + +long DeleteHostPoolRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteHostPoolRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteHostPoolRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteHostPoolRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteHostPoolRequest::getBizId()const +{ + return bizId_; +} + +void DeleteHostPoolRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + +std::string DeleteHostPoolRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteHostPoolRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/DeleteHostPoolResult.cc b/emr/src/model/DeleteHostPoolResult.cc new file mode 100644 index 000000000..147922232 --- /dev/null +++ b/emr/src/model/DeleteHostPoolResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DeleteHostPoolResult::DeleteHostPoolResult() : + ServiceResult() +{} + +DeleteHostPoolResult::DeleteHostPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHostPoolResult::~DeleteHostPoolResult() +{} + +void DeleteHostPoolResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/DeleteJobRequest.cc b/emr/src/model/DeleteJobRequest.cc index 3abf9f10d..91029650a 100644 --- a/emr/src/model/DeleteJobRequest.cc +++ b/emr/src/model/DeleteJobRequest.cc @@ -33,7 +33,7 @@ long DeleteJobRequest::getResourceOwnerId()const void DeleteJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteJobRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteJobRequest::getRegionId()const void DeleteJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteJobRequest::getId()const @@ -55,7 +55,7 @@ std::string DeleteJobRequest::getId()const void DeleteJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteJobRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteJobRequest::getAccessKeyId()const void DeleteJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteJobResult.cc b/emr/src/model/DeleteJobResult.cc index b390b2923..89e1f994d 100644 --- a/emr/src/model/DeleteJobResult.cc +++ b/emr/src/model/DeleteJobResult.cc @@ -35,10 +35,13 @@ DeleteJobResult::~DeleteJobResult() void DeleteJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteNavNodeRequest.cc b/emr/src/model/DeleteNavNodeRequest.cc index 591a79e88..200e13f17 100644 --- a/emr/src/model/DeleteNavNodeRequest.cc +++ b/emr/src/model/DeleteNavNodeRequest.cc @@ -33,7 +33,7 @@ long DeleteNavNodeRequest::getResourceOwnerId()const void DeleteNavNodeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteNavNodeRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteNavNodeRequest::getRegionId()const void DeleteNavNodeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteNavNodeRequest::getId()const @@ -55,7 +55,7 @@ std::string DeleteNavNodeRequest::getId()const void DeleteNavNodeRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteNavNodeRequest::getProjectId()const @@ -66,7 +66,7 @@ std::string DeleteNavNodeRequest::getProjectId()const void DeleteNavNodeRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string DeleteNavNodeRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DeleteNavNodeRequest::getAccessKeyId()const void DeleteNavNodeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteNavNodeResult.cc b/emr/src/model/DeleteNavNodeResult.cc index 2c03a11ab..32585f3ee 100644 --- a/emr/src/model/DeleteNavNodeResult.cc +++ b/emr/src/model/DeleteNavNodeResult.cc @@ -35,10 +35,13 @@ DeleteNavNodeResult::~DeleteNavNodeResult() void DeleteNavNodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteNoteRequest.cc b/emr/src/model/DeleteNoteRequest.cc index 5e89428c2..855962341 100644 --- a/emr/src/model/DeleteNoteRequest.cc +++ b/emr/src/model/DeleteNoteRequest.cc @@ -33,7 +33,7 @@ long DeleteNoteRequest::getResourceOwnerId()const void DeleteNoteRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteNoteRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteNoteRequest::getRegionId()const void DeleteNoteRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteNoteRequest::getId()const @@ -55,7 +55,7 @@ std::string DeleteNoteRequest::getId()const void DeleteNoteRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteNoteRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteNoteRequest::getAccessKeyId()const void DeleteNoteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteNoteResult.cc b/emr/src/model/DeleteNoteResult.cc index 00f2c33c7..a2ce030ed 100644 --- a/emr/src/model/DeleteNoteResult.cc +++ b/emr/src/model/DeleteNoteResult.cc @@ -35,10 +35,13 @@ DeleteNoteResult::~DeleteNoteResult() void DeleteNoteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteParagraphRequest.cc b/emr/src/model/DeleteParagraphRequest.cc index 41461503e..5ce9c6fd4 100644 --- a/emr/src/model/DeleteParagraphRequest.cc +++ b/emr/src/model/DeleteParagraphRequest.cc @@ -33,7 +33,7 @@ long DeleteParagraphRequest::getResourceOwnerId()const void DeleteParagraphRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteParagraphRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteParagraphRequest::getRegionId()const void DeleteParagraphRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteParagraphRequest::getNoteId()const @@ -55,7 +55,7 @@ std::string DeleteParagraphRequest::getNoteId()const void DeleteParagraphRequest::setNoteId(const std::string& noteId) { noteId_ = noteId; - setParameter("NoteId", noteId); + setCoreParameter("NoteId", noteId); } std::string DeleteParagraphRequest::getId()const @@ -66,7 +66,7 @@ std::string DeleteParagraphRequest::getId()const void DeleteParagraphRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DeleteParagraphRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DeleteParagraphRequest::getAccessKeyId()const void DeleteParagraphRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteParagraphResult.cc b/emr/src/model/DeleteParagraphResult.cc index e328d1f38..45378805f 100644 --- a/emr/src/model/DeleteParagraphResult.cc +++ b/emr/src/model/DeleteParagraphResult.cc @@ -35,10 +35,13 @@ DeleteParagraphResult::~DeleteParagraphResult() void DeleteParagraphResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteResourcePoolRequest.cc b/emr/src/model/DeleteResourcePoolRequest.cc index e9c5b2486..5eecde3e7 100644 --- a/emr/src/model/DeleteResourcePoolRequest.cc +++ b/emr/src/model/DeleteResourcePoolRequest.cc @@ -33,7 +33,7 @@ long DeleteResourcePoolRequest::getResourceOwnerId()const void DeleteResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteResourcePoolRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteResourcePoolRequest::getRegionId()const void DeleteResourcePoolRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteResourcePoolRequest::getResourcePoolId()const @@ -55,7 +55,7 @@ std::string DeleteResourcePoolRequest::getResourcePoolId()const void DeleteResourcePoolRequest::setResourcePoolId(const std::string& resourcePoolId) { resourcePoolId_ = resourcePoolId; - setParameter("ResourcePoolId", resourcePoolId); + setCoreParameter("ResourcePoolId", resourcePoolId); } std::string DeleteResourcePoolRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DeleteResourcePoolRequest::getClusterId()const void DeleteResourcePoolRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DeleteResourcePoolRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DeleteResourcePoolRequest::getAccessKeyId()const void DeleteResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteResourcePoolResult.cc b/emr/src/model/DeleteResourcePoolResult.cc index dc8bef77e..7844cedc0 100644 --- a/emr/src/model/DeleteResourcePoolResult.cc +++ b/emr/src/model/DeleteResourcePoolResult.cc @@ -35,10 +35,13 @@ DeleteResourcePoolResult::~DeleteResourcePoolResult() void DeleteResourcePoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteResourceQueueRequest.cc b/emr/src/model/DeleteResourceQueueRequest.cc index 651e879ad..3e01806ae 100644 --- a/emr/src/model/DeleteResourceQueueRequest.cc +++ b/emr/src/model/DeleteResourceQueueRequest.cc @@ -33,7 +33,7 @@ long DeleteResourceQueueRequest::getResourceOwnerId()const void DeleteResourceQueueRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteResourceQueueRequest::getResourceQueueId()const @@ -44,7 +44,7 @@ std::string DeleteResourceQueueRequest::getResourceQueueId()const void DeleteResourceQueueRequest::setResourceQueueId(const std::string& resourceQueueId) { resourceQueueId_ = resourceQueueId; - setParameter("ResourceQueueId", resourceQueueId); + setCoreParameter("ResourceQueueId", resourceQueueId); } std::string DeleteResourceQueueRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteResourceQueueRequest::getRegionId()const void DeleteResourceQueueRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteResourceQueueRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DeleteResourceQueueRequest::getClusterId()const void DeleteResourceQueueRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DeleteResourceQueueRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DeleteResourceQueueRequest::getAccessKeyId()const void DeleteResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteResourceQueueResult.cc b/emr/src/model/DeleteResourceQueueResult.cc index 8b82b8e24..ab5869aa4 100644 --- a/emr/src/model/DeleteResourceQueueResult.cc +++ b/emr/src/model/DeleteResourceQueueResult.cc @@ -35,10 +35,13 @@ DeleteResourceQueueResult::~DeleteResourceQueueResult() void DeleteResourceQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DeleteResourceUserRequest.cc b/emr/src/model/DeleteResourceUserRequest.cc new file mode 100644 index 000000000..893eef151 --- /dev/null +++ b/emr/src/model/DeleteResourceUserRequest.cc @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DeleteResourceUserRequest; + +DeleteResourceUserRequest::DeleteResourceUserRequest() : + RpcServiceRequest("emr", "2016-04-08", "DeleteResourceUser") +{} + +DeleteResourceUserRequest::~DeleteResourceUserRequest() +{} + +std::string DeleteResourceUserRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteResourceUserRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DeleteResourceUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteResourceUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteResourceUserRequest::getResourceId()const +{ + return resourceId_; +} + +void DeleteResourceUserRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long DeleteResourceUserRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteResourceUserRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteResourceUserRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteResourceUserRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteResourceUserRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteResourceUserRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DeleteResourceUserRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteResourceUserRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteResourceUserRequest::getResourceType()const +{ + return resourceType_; +} + +void DeleteResourceUserRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool DeleteResourceUserRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteResourceUserRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteResourceUserRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteResourceUserRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DeleteResourceUserRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteResourceUserRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DeleteResourceUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteResourceUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DeleteResourceUserRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteResourceUserRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteResourceUserRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteResourceUserRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteResourceUserRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteResourceUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteResourceUserRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteResourceUserRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DeleteResourceUserRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteResourceUserRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteResourceUserRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void DeleteResourceUserRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + diff --git a/emr/src/model/DeleteResourceUserResult.cc b/emr/src/model/DeleteResourceUserResult.cc new file mode 100644 index 000000000..3e9bb3233 --- /dev/null +++ b/emr/src/model/DeleteResourceUserResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DeleteResourceUserResult::DeleteResourceUserResult() : + ServiceResult() +{} + +DeleteResourceUserResult::DeleteResourceUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteResourceUserResult::~DeleteResourceUserResult() +{} + +void DeleteResourceUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DeleteResourceUserResult::getPaging()const +{ + return paging_; +} + +bool DeleteResourceUserResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/DeleteScalingRuleRequest.cc b/emr/src/model/DeleteScalingRuleRequest.cc index d4956d993..20e9fd03f 100644 --- a/emr/src/model/DeleteScalingRuleRequest.cc +++ b/emr/src/model/DeleteScalingRuleRequest.cc @@ -33,7 +33,7 @@ long DeleteScalingRuleRequest::getResourceOwnerId()const void DeleteScalingRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteScalingRuleRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteScalingRuleRequest::getRegionId()const void DeleteScalingRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteScalingRuleRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string DeleteScalingRuleRequest::getHostGroupId()const void DeleteScalingRuleRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string DeleteScalingRuleRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DeleteScalingRuleRequest::getClusterId()const void DeleteScalingRuleRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DeleteScalingRuleRequest::getScalingRuleId()const @@ -77,7 +77,7 @@ std::string DeleteScalingRuleRequest::getScalingRuleId()const void DeleteScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId) { scalingRuleId_ = scalingRuleId; - setParameter("ScalingRuleId", scalingRuleId); + setCoreParameter("ScalingRuleId", scalingRuleId); } std::string DeleteScalingRuleRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteScalingRuleRequest::getAccessKeyId()const void DeleteScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteScalingRuleResult.cc b/emr/src/model/DeleteScalingRuleResult.cc index 80d35dff2..93ae4645b 100644 --- a/emr/src/model/DeleteScalingRuleResult.cc +++ b/emr/src/model/DeleteScalingRuleResult.cc @@ -35,10 +35,13 @@ DeleteScalingRuleResult::~DeleteScalingRuleResult() void DeleteScalingRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteScalingTaskGroupRequest.cc b/emr/src/model/DeleteScalingTaskGroupRequest.cc index 2389450c2..7d2ca164d 100644 --- a/emr/src/model/DeleteScalingTaskGroupRequest.cc +++ b/emr/src/model/DeleteScalingTaskGroupRequest.cc @@ -33,7 +33,7 @@ long DeleteScalingTaskGroupRequest::getResourceOwnerId()const void DeleteScalingTaskGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteScalingTaskGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteScalingTaskGroupRequest::getRegionId()const void DeleteScalingTaskGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteScalingTaskGroupRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string DeleteScalingTaskGroupRequest::getHostGroupId()const void DeleteScalingTaskGroupRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string DeleteScalingTaskGroupRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DeleteScalingTaskGroupRequest::getClusterId()const void DeleteScalingTaskGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DeleteScalingTaskGroupRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DeleteScalingTaskGroupRequest::getAccessKeyId()const void DeleteScalingTaskGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteScalingTaskGroupResult.cc b/emr/src/model/DeleteScalingTaskGroupResult.cc index b5d1555a1..ae4c7146a 100644 --- a/emr/src/model/DeleteScalingTaskGroupResult.cc +++ b/emr/src/model/DeleteScalingTaskGroupResult.cc @@ -35,10 +35,13 @@ DeleteScalingTaskGroupResult::~DeleteScalingTaskGroupResult() void DeleteScalingTaskGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/DeleteUserGroupRequest.cc b/emr/src/model/DeleteUserGroupRequest.cc new file mode 100644 index 000000000..5eaf2d122 --- /dev/null +++ b/emr/src/model/DeleteUserGroupRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DeleteUserGroupRequest; + +DeleteUserGroupRequest::DeleteUserGroupRequest() : + RpcServiceRequest("emr", "2016-04-08", "DeleteUserGroup") +{} + +DeleteUserGroupRequest::~DeleteUserGroupRequest() +{} + +std::string DeleteUserGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteUserGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DeleteUserGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteUserGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteUserGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteUserGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteUserGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteUserGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteUserGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteUserGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DeleteUserGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteUserGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool DeleteUserGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteUserGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteUserGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteUserGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DeleteUserGroupRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteUserGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DeleteUserGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteUserGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DeleteUserGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteUserGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteUserGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteUserGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteUserGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteUserGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteUserGroupRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteUserGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DeleteUserGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteUserGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +long DeleteUserGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteUserGroupRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + diff --git a/emr/src/model/DeleteUserGroupResult.cc b/emr/src/model/DeleteUserGroupResult.cc new file mode 100644 index 000000000..438501742 --- /dev/null +++ b/emr/src/model/DeleteUserGroupResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DeleteUserGroupResult::DeleteUserGroupResult() : + ServiceResult() +{} + +DeleteUserGroupResult::DeleteUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserGroupResult::~DeleteUserGroupResult() +{} + +void DeleteUserGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DeleteUserGroupResult::getPaging()const +{ + return paging_; +} + +bool DeleteUserGroupResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/DeleteUserRequest.cc b/emr/src/model/DeleteUserRequest.cc index b0533fa63..b28e3e2a2 100644 --- a/emr/src/model/DeleteUserRequest.cc +++ b/emr/src/model/DeleteUserRequest.cc @@ -33,7 +33,7 @@ long DeleteUserRequest::getResourceOwnerId()const void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteUserRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteUserRequest::getRegionId()const void DeleteUserRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteUserRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string DeleteUserRequest::getClusterId()const void DeleteUserRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DeleteUserRequest::getType()const @@ -66,7 +66,7 @@ std::string DeleteUserRequest::getType()const void DeleteUserRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string DeleteUserRequest::getUserId()const @@ -77,7 +77,7 @@ std::string DeleteUserRequest::getUserId()const void DeleteUserRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string DeleteUserRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteUserRequest::getAccessKeyId()const void DeleteUserRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DeleteUserResourceRoleRequest.cc b/emr/src/model/DeleteUserResourceRoleRequest.cc new file mode 100644 index 000000000..c4ccabc15 --- /dev/null +++ b/emr/src/model/DeleteUserResourceRoleRequest.cc @@ -0,0 +1,236 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DeleteUserResourceRoleRequest; + +DeleteUserResourceRoleRequest::DeleteUserResourceRoleRequest() : + RpcServiceRequest("emr", "2016-04-08", "DeleteUserResourceRole") +{} + +DeleteUserResourceRoleRequest::~DeleteUserResourceRoleRequest() +{} + +std::string DeleteUserResourceRoleRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteUserResourceRoleRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DeleteUserResourceRoleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteUserResourceRoleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteUserResourceRoleRequest::getResourceId()const +{ + return resourceId_; +} + +void DeleteUserResourceRoleRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long DeleteUserResourceRoleRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteUserResourceRoleRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +long DeleteUserResourceRoleRequest::getRoleId()const +{ + return roleId_; +} + +void DeleteUserResourceRoleRequest::setRoleId(long roleId) +{ + roleId_ = roleId; + setCoreParameter("RoleId", std::to_string(roleId)); +} + +bool DeleteUserResourceRoleRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteUserResourceRoleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteUserResourceRoleRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteUserResourceRoleRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DeleteUserResourceRoleRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteUserResourceRoleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteUserResourceRoleRequest::getResourceType()const +{ + return resourceType_; +} + +void DeleteUserResourceRoleRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool DeleteUserResourceRoleRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteUserResourceRoleRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteUserResourceRoleRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteUserResourceRoleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DeleteUserResourceRoleRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteUserResourceRoleRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DeleteUserResourceRoleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteUserResourceRoleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DeleteUserResourceRoleRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteUserResourceRoleRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteUserResourceRoleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteUserResourceRoleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteUserResourceRoleRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteUserResourceRoleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteUserResourceRoleRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteUserResourceRoleRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DeleteUserResourceRoleRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteUserResourceRoleRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteUserResourceRoleRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void DeleteUserResourceRoleRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + diff --git a/emr/src/model/DeleteUserResourceRoleResult.cc b/emr/src/model/DeleteUserResourceRoleResult.cc new file mode 100644 index 000000000..964c30e32 --- /dev/null +++ b/emr/src/model/DeleteUserResourceRoleResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DeleteUserResourceRoleResult::DeleteUserResourceRoleResult() : + ServiceResult() +{} + +DeleteUserResourceRoleResult::DeleteUserResourceRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserResourceRoleResult::~DeleteUserResourceRoleResult() +{} + +void DeleteUserResourceRoleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DeleteUserResourceRoleResult::getPaging()const +{ + return paging_; +} + +bool DeleteUserResourceRoleResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/DeleteUserResult.cc b/emr/src/model/DeleteUserResult.cc index fffea0351..cc510c9b9 100644 --- a/emr/src/model/DeleteUserResult.cc +++ b/emr/src/model/DeleteUserResult.cc @@ -35,10 +35,13 @@ DeleteUserResult::~DeleteUserResult() void DeleteUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/DescribeAvailableInstanceTypeRequest.cc b/emr/src/model/DescribeAvailableInstanceTypeRequest.cc index c20e55e27..2e67aea3a 100644 --- a/emr/src/model/DescribeAvailableInstanceTypeRequest.cc +++ b/emr/src/model/DescribeAvailableInstanceTypeRequest.cc @@ -33,7 +33,7 @@ long DescribeAvailableInstanceTypeRequest::getResourceOwnerId()const void DescribeAvailableInstanceTypeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeAvailableInstanceTypeRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeAvailableInstanceTypeRequest::getRegionId()const void DescribeAvailableInstanceTypeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeAvailableInstanceTypeRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string DescribeAvailableInstanceTypeRequest::getClusterId()const void DescribeAvailableInstanceTypeRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeAvailableInstanceTypeRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeAvailableInstanceTypeRequest::getAccessKeyId()const void DescribeAvailableInstanceTypeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeAvailableInstanceTypeResult.cc b/emr/src/model/DescribeAvailableInstanceTypeResult.cc index 5c7fabcef..2e90bf17d 100644 --- a/emr/src/model/DescribeAvailableInstanceTypeResult.cc +++ b/emr/src/model/DescribeAvailableInstanceTypeResult.cc @@ -35,10 +35,13 @@ DescribeAvailableInstanceTypeResult::~DescribeAvailableInstanceTypeResult() void DescribeAvailableInstanceTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEmrSupportedInstanceTypeList = value["EmrSupportedInstanceTypeList"]["EmrSupportInstanceType"]; for (auto value : allEmrSupportedInstanceTypeList) diff --git a/emr/src/model/DescribeClusterBasicInfoRequest.cc b/emr/src/model/DescribeClusterBasicInfoRequest.cc index c0471c59d..81e0e119b 100644 --- a/emr/src/model/DescribeClusterBasicInfoRequest.cc +++ b/emr/src/model/DescribeClusterBasicInfoRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterBasicInfoRequest::getResourceOwnerId()const void DescribeClusterBasicInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterBasicInfoRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterBasicInfoRequest::getRegionId()const void DescribeClusterBasicInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterBasicInfoRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string DescribeClusterBasicInfoRequest::getClusterId()const void DescribeClusterBasicInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeClusterBasicInfoRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeClusterBasicInfoRequest::getAccessKeyId()const void DescribeClusterBasicInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterBasicInfoResult.cc b/emr/src/model/DescribeClusterBasicInfoResult.cc index ebe72d64a..c40f0c52b 100644 --- a/emr/src/model/DescribeClusterBasicInfoResult.cc +++ b/emr/src/model/DescribeClusterBasicInfoResult.cc @@ -35,40 +35,53 @@ DescribeClusterBasicInfoResult::~DescribeClusterBasicInfoResult() void DescribeClusterBasicInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto clusterInfoNode = value["ClusterInfo"]; - if(!clusterInfoNode["Id"].isNull()) - clusterInfo_.id = clusterInfoNode["Id"].asString(); - if(!clusterInfoNode["BizId"].isNull()) - clusterInfo_.bizId = clusterInfoNode["BizId"].asString(); + if(!clusterInfoNode["ClusterId"].isNull()) + clusterInfo_.clusterId = clusterInfoNode["ClusterId"].asString(); if(!clusterInfoNode["RegionId"].isNull()) clusterInfo_.regionId = clusterInfoNode["RegionId"].asString(); + if(!clusterInfoNode["MachineType"].isNull()) + clusterInfo_.machineType = clusterInfoNode["MachineType"].asString(); + if(!clusterInfoNode["DepositType"].isNull()) + clusterInfo_.depositType = clusterInfoNode["DepositType"].asString(); if(!clusterInfoNode["ZoneId"].isNull()) clusterInfo_.zoneId = clusterInfoNode["ZoneId"].asString(); if(!clusterInfoNode["Name"].isNull()) clusterInfo_.name = clusterInfoNode["Name"].asString(); + if(!clusterInfoNode["RelateClusterId"].isNull()) + clusterInfo_.relateClusterId = clusterInfoNode["RelateClusterId"].asString(); + if(!clusterInfoNode["GatewayClusterIds"].isNull()) + clusterInfo_.gatewayClusterIds = clusterInfoNode["GatewayClusterIds"].asString(); if(!clusterInfoNode["CreateType"].isNull()) clusterInfo_.createType = clusterInfoNode["CreateType"].asString(); if(!clusterInfoNode["StartTime"].isNull()) clusterInfo_.startTime = std::stol(clusterInfoNode["StartTime"].asString()); + if(!clusterInfoNode["ExpiredTime"].isNull()) + clusterInfo_.expiredTime = std::stol(clusterInfoNode["ExpiredTime"].asString()); if(!clusterInfoNode["StopTime"].isNull()) clusterInfo_.stopTime = std::stol(clusterInfoNode["StopTime"].asString()); if(!clusterInfoNode["LogEnable"].isNull()) clusterInfo_.logEnable = clusterInfoNode["LogEnable"].asString() == "true"; if(!clusterInfoNode["LogPath"].isNull()) clusterInfo_.logPath = clusterInfoNode["LogPath"].asString(); + if(!clusterInfoNode["UserId"].isNull()) + clusterInfo_.userId = clusterInfoNode["UserId"].asString(); if(!clusterInfoNode["Status"].isNull()) clusterInfo_.status = clusterInfoNode["Status"].asString(); if(!clusterInfoNode["HighAvailabilityEnable"].isNull()) clusterInfo_.highAvailabilityEnable = clusterInfoNode["HighAvailabilityEnable"].asString() == "true"; + if(!clusterInfoNode["LocalMetaDb"].isNull()) + clusterInfo_.localMetaDb = clusterInfoNode["LocalMetaDb"].asString() == "true"; if(!clusterInfoNode["ChargeType"].isNull()) clusterInfo_.chargeType = clusterInfoNode["ChargeType"].asString(); - if(!clusterInfoNode["ExpiredTime"].isNull()) - clusterInfo_.expiredTime = std::stol(clusterInfoNode["ExpiredTime"].asString()); if(!clusterInfoNode["Period"].isNull()) clusterInfo_.period = std::stoi(clusterInfoNode["Period"].asString()); if(!clusterInfoNode["RunningTime"].isNull()) @@ -87,6 +100,8 @@ void DescribeClusterBasicInfoResult::parse(const std::string &payload) clusterInfo_.taskNodeInService = std::stoi(clusterInfoNode["TaskNodeInService"].asString()); if(!clusterInfoNode["ShowSoftwareInterface"].isNull()) clusterInfo_.showSoftwareInterface = clusterInfoNode["ShowSoftwareInterface"].asString() == "true"; + if(!clusterInfoNode["CreateResource"].isNull()) + clusterInfo_.createResource = clusterInfoNode["CreateResource"].asString(); if(!clusterInfoNode["VpcId"].isNull()) clusterInfo_.vpcId = clusterInfoNode["VpcId"].asString(); if(!clusterInfoNode["VSwitchId"].isNull()) @@ -99,20 +114,42 @@ void DescribeClusterBasicInfoResult::parse(const std::string &payload) clusterInfo_.ioOptimized = clusterInfoNode["IoOptimized"].asString() == "true"; if(!clusterInfoNode["InstanceGeneration"].isNull()) clusterInfo_.instanceGeneration = clusterInfoNode["InstanceGeneration"].asString(); - if(!clusterInfoNode["BootstrapFailed"].isNull()) - clusterInfo_.bootstrapFailed = clusterInfoNode["BootstrapFailed"].asString() == "true"; - if(!clusterInfoNode["Configurations"].isNull()) - clusterInfo_.configurations = clusterInfoNode["Configurations"].asString(); if(!clusterInfoNode["ImageId"].isNull()) clusterInfo_.imageId = clusterInfoNode["ImageId"].asString(); if(!clusterInfoNode["SecurityGroupId"].isNull()) clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString(); if(!clusterInfoNode["SecurityGroupName"].isNull()) clusterInfo_.securityGroupName = clusterInfoNode["SecurityGroupName"].asString(); + if(!clusterInfoNode["BootstrapFailed"].isNull()) + clusterInfo_.bootstrapFailed = clusterInfoNode["BootstrapFailed"].asString() == "true"; + if(!clusterInfoNode["Configurations"].isNull()) + clusterInfo_.configurations = clusterInfoNode["Configurations"].asString(); if(!clusterInfoNode["EasEnable"].isNull()) clusterInfo_.easEnable = clusterInfoNode["EasEnable"].asString() == "true"; - if(!clusterInfoNode["ClusterType"].isNull()) - clusterInfo_.clusterType = clusterInfoNode["ClusterType"].asString(); + if(!clusterInfoNode["AutoScalingEnable"].isNull()) + clusterInfo_.autoScalingEnable = clusterInfoNode["AutoScalingEnable"].asString() == "true"; + if(!clusterInfoNode["AutoScalingAllowed"].isNull()) + clusterInfo_.autoScalingAllowed = clusterInfoNode["AutoScalingAllowed"].asString() == "true"; + if(!clusterInfoNode["AutoScalingSpotWithLimitAllowed"].isNull()) + clusterInfo_.autoScalingSpotWithLimitAllowed = clusterInfoNode["AutoScalingSpotWithLimitAllowed"].asString() == "true"; + if(!clusterInfoNode["AutoScalingByLoadAllowed"].isNull()) + clusterInfo_.autoScalingByLoadAllowed = clusterInfoNode["AutoScalingByLoadAllowed"].asString() == "true"; + if(!clusterInfoNode["ResizeDiskEnable"].isNull()) + clusterInfo_.resizeDiskEnable = clusterInfoNode["ResizeDiskEnable"].asString() == "true"; + if(!clusterInfoNode["MetaStoreType"].isNull()) + clusterInfo_.metaStoreType = clusterInfoNode["MetaStoreType"].asString(); + auto allGatewayClusterInfoList = value["GatewayClusterInfoList"]["GatewayClusterInfo"]; + for (auto value : allGatewayClusterInfoList) + { + ClusterInfo::GatewayClusterInfo gatewayClusterInfoObject; + if(!value["ClusterId"].isNull()) + gatewayClusterInfoObject.clusterId = value["ClusterId"].asString(); + if(!value["ClusterName"].isNull()) + gatewayClusterInfoObject.clusterName = value["ClusterName"].asString(); + if(!value["Status"].isNull()) + gatewayClusterInfoObject.status = value["Status"].asString(); + clusterInfo_.gatewayClusterInfoList.push_back(gatewayClusterInfoObject); + } auto allBootstrapActionList = value["BootstrapActionList"]["BootstrapAction"]; for (auto value : allBootstrapActionList) { @@ -125,6 +162,25 @@ void DescribeClusterBasicInfoResult::parse(const std::string &payload) bootstrapActionObject.arg = value["Arg"].asString(); clusterInfo_.bootstrapActionList.push_back(bootstrapActionObject); } + auto relateClusterInfoNode = clusterInfoNode["RelateClusterInfo"]; + if(!relateClusterInfoNode["ClusterId"].isNull()) + clusterInfo_.relateClusterInfo.clusterId = relateClusterInfoNode["ClusterId"].asString(); + if(!relateClusterInfoNode["ClusterName"].isNull()) + clusterInfo_.relateClusterInfo.clusterName = relateClusterInfoNode["ClusterName"].asString(); + if(!relateClusterInfoNode["Status"].isNull()) + clusterInfo_.relateClusterInfo.status = relateClusterInfoNode["Status"].asString(); + auto hostPoolInfoNode = clusterInfoNode["HostPoolInfo"]; + if(!hostPoolInfoNode["HpBizId"].isNull()) + clusterInfo_.hostPoolInfo.hpBizId = hostPoolInfoNode["HpBizId"].asString(); + if(!hostPoolInfoNode["HpName"].isNull()) + clusterInfo_.hostPoolInfo.hpName = hostPoolInfoNode["HpName"].asString(); + auto failReasonNode = clusterInfoNode["FailReason"]; + if(!failReasonNode["ErrorCode"].isNull()) + clusterInfo_.failReason.errorCode = failReasonNode["ErrorCode"].asString(); + if(!failReasonNode["ErrorMsg"].isNull()) + clusterInfo_.failReason.errorMsg = failReasonNode["ErrorMsg"].asString(); + if(!failReasonNode["RequestId"].isNull()) + clusterInfo_.failReason.requestId = failReasonNode["RequestId"].asString(); auto softwareInfoNode = clusterInfoNode["SoftwareInfo"]; if(!softwareInfoNode["EmrVer"].isNull()) clusterInfo_.softwareInfo.emrVer = softwareInfoNode["EmrVer"].asString(); @@ -146,13 +202,17 @@ void DescribeClusterBasicInfoResult::parse(const std::string &payload) softwareObject.version = value["Version"].asString(); clusterInfo_.softwareInfo.softwares.push_back(softwareObject); } - auto failReasonNode = clusterInfoNode["FailReason"]; - if(!failReasonNode["ErrorCode"].isNull()) - clusterInfo_.failReason.errorCode = failReasonNode["ErrorCode"].asString(); - if(!failReasonNode["ErrorMsg"].isNull()) - clusterInfo_.failReason.errorMsg = failReasonNode["ErrorMsg"].asString(); - if(!failReasonNode["RequestId"].isNull()) - clusterInfo_.failReason.requestId = failReasonNode["RequestId"].asString(); + auto accessInfoNode = clusterInfoNode["AccessInfo"]; + auto allZKLinks = value["ZKLinks"]["ZKLink"]; + for (auto value : allZKLinks) + { + ClusterInfo::AccessInfo::ZKLink zKLinkObject; + if(!value["Link"].isNull()) + zKLinkObject.link = value["Link"].asString(); + if(!value["Port"].isNull()) + zKLinkObject.port = value["Port"].asString(); + clusterInfo_.accessInfo.zKLinks.push_back(zKLinkObject); + } } diff --git a/emr/src/model/DescribeClusterOpLogRequest.cc b/emr/src/model/DescribeClusterOpLogRequest.cc index 29ae0cb4d..840fe7c88 100644 --- a/emr/src/model/DescribeClusterOpLogRequest.cc +++ b/emr/src/model/DescribeClusterOpLogRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterOpLogRequest::getResourceOwnerId()const void DescribeClusterOpLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterOpLogRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterOpLogRequest::getRegionId()const void DescribeClusterOpLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DescribeClusterOpLogRequest::getEndTime()const @@ -55,7 +55,7 @@ long DescribeClusterOpLogRequest::getEndTime()const void DescribeClusterOpLogRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } std::string DescribeClusterOpLogRequest::getId()const @@ -66,7 +66,7 @@ std::string DescribeClusterOpLogRequest::getId()const void DescribeClusterOpLogRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } long DescribeClusterOpLogRequest::getStartTime()const @@ -77,7 +77,7 @@ long DescribeClusterOpLogRequest::getStartTime()const void DescribeClusterOpLogRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string DescribeClusterOpLogRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DescribeClusterOpLogRequest::getAccessKeyId()const void DescribeClusterOpLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterOpLogResult.cc b/emr/src/model/DescribeClusterOpLogResult.cc index fc756fe8e..8a58e5d82 100644 --- a/emr/src/model/DescribeClusterOpLogResult.cc +++ b/emr/src/model/DescribeClusterOpLogResult.cc @@ -35,10 +35,13 @@ DescribeClusterOpLogResult::~DescribeClusterOpLogResult() void DescribeClusterOpLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allChangeLogList = value["ChangeLogList"]["ChangeLog"]; for (auto value : allChangeLogList) diff --git a/emr/src/model/DescribeClusterOperationHostTaskLogRequest.cc b/emr/src/model/DescribeClusterOperationHostTaskLogRequest.cc index d3b86bc57..7343fcbd2 100644 --- a/emr/src/model/DescribeClusterOperationHostTaskLogRequest.cc +++ b/emr/src/model/DescribeClusterOperationHostTaskLogRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterOperationHostTaskLogRequest::getResourceOwnerId()const void DescribeClusterOperationHostTaskLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterOperationHostTaskLogRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getRegionId()const void DescribeClusterOperationHostTaskLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterOperationHostTaskLogRequest::getOperationId()const @@ -55,7 +55,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getOperationId()const void DescribeClusterOperationHostTaskLogRequest::setOperationId(const std::string& operationId) { operationId_ = operationId; - setParameter("OperationId", operationId); + setCoreParameter("OperationId", operationId); } std::string DescribeClusterOperationHostTaskLogRequest::getHostId()const @@ -66,7 +66,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getHostId()const void DescribeClusterOperationHostTaskLogRequest::setHostId(const std::string& hostId) { hostId_ = hostId; - setParameter("HostId", hostId); + setCoreParameter("HostId", hostId); } std::string DescribeClusterOperationHostTaskLogRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getClusterId()const void DescribeClusterOperationHostTaskLogRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeClusterOperationHostTaskLogRequest::getTaskId()const @@ -88,7 +88,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getTaskId()const void DescribeClusterOperationHostTaskLogRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string DescribeClusterOperationHostTaskLogRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getAccessKeyId()const void DescribeClusterOperationHostTaskLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeClusterOperationHostTaskLogRequest::getStatus()const @@ -110,6 +110,6 @@ std::string DescribeClusterOperationHostTaskLogRequest::getStatus()const void DescribeClusterOperationHostTaskLogRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/emr/src/model/DescribeClusterOperationHostTaskLogResult.cc b/emr/src/model/DescribeClusterOperationHostTaskLogResult.cc index d034c81b8..184fd9d65 100644 --- a/emr/src/model/DescribeClusterOperationHostTaskLogResult.cc +++ b/emr/src/model/DescribeClusterOperationHostTaskLogResult.cc @@ -35,10 +35,13 @@ DescribeClusterOperationHostTaskLogResult::~DescribeClusterOperationHostTaskLogR void DescribeClusterOperationHostTaskLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Stdout"].isNull()) _stdout_ = value["Stdout"].asString(); diff --git a/emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.cc b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.cc new file mode 100644 index 000000000..7983e4920 --- /dev/null +++ b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::DescribeClusterResourcePoolSchedulerTypeForAdminRequest; + +DescribeClusterResourcePoolSchedulerTypeForAdminRequest::DescribeClusterResourcePoolSchedulerTypeForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeClusterResourcePoolSchedulerTypeForAdmin") +{} + +DescribeClusterResourcePoolSchedulerTypeForAdminRequest::~DescribeClusterResourcePoolSchedulerTypeForAdminRequest() +{} + +long DescribeClusterResourcePoolSchedulerTypeForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeClusterResourcePoolSchedulerTypeForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeClusterResourcePoolSchedulerTypeForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeClusterResourcePoolSchedulerTypeForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeClusterResourcePoolSchedulerTypeForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeClusterResourcePoolSchedulerTypeForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string DescribeClusterResourcePoolSchedulerTypeForAdminRequest::getUserId()const +{ + return userId_; +} + +void DescribeClusterResourcePoolSchedulerTypeForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string DescribeClusterResourcePoolSchedulerTypeForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeClusterResourcePoolSchedulerTypeForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.cc b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.cc new file mode 100644 index 000000000..e5b60c193 --- /dev/null +++ b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeForAdminResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeClusterResourcePoolSchedulerTypeForAdminResult::DescribeClusterResourcePoolSchedulerTypeForAdminResult() : + ServiceResult() +{} + +DescribeClusterResourcePoolSchedulerTypeForAdminResult::DescribeClusterResourcePoolSchedulerTypeForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClusterResourcePoolSchedulerTypeForAdminResult::~DescribeClusterResourcePoolSchedulerTypeForAdminResult() +{} + +void DescribeClusterResourcePoolSchedulerTypeForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["CurrentSchedulerType"].isNull()) + currentSchedulerType_ = value["CurrentSchedulerType"].asString(); + if(!value["SupportSchedulerType"].isNull()) + supportSchedulerType_ = value["SupportSchedulerType"].asString(); + if(!value["DefaultSchedulerType"].isNull()) + defaultSchedulerType_ = value["DefaultSchedulerType"].asString(); + +} + +std::string DescribeClusterResourcePoolSchedulerTypeForAdminResult::getCurrentSchedulerType()const +{ + return currentSchedulerType_; +} + +std::string DescribeClusterResourcePoolSchedulerTypeForAdminResult::getSupportSchedulerType()const +{ + return supportSchedulerType_; +} + +std::string DescribeClusterResourcePoolSchedulerTypeForAdminResult::getDefaultSchedulerType()const +{ + return defaultSchedulerType_; +} + diff --git a/emr/src/model/DescribeClusterResourcePoolSchedulerTypeRequest.cc b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeRequest.cc index a82dc0424..25db577a5 100644 --- a/emr/src/model/DescribeClusterResourcePoolSchedulerTypeRequest.cc +++ b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterResourcePoolSchedulerTypeRequest::getResourceOwnerId()const void DescribeClusterResourcePoolSchedulerTypeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterResourcePoolSchedulerTypeRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterResourcePoolSchedulerTypeRequest::getRegionId()const void DescribeClusterResourcePoolSchedulerTypeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterResourcePoolSchedulerTypeRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string DescribeClusterResourcePoolSchedulerTypeRequest::getClusterId()const void DescribeClusterResourcePoolSchedulerTypeRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeClusterResourcePoolSchedulerTypeRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeClusterResourcePoolSchedulerTypeRequest::getAccessKeyId()con void DescribeClusterResourcePoolSchedulerTypeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterResourcePoolSchedulerTypeResult.cc b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeResult.cc index 7aec341d2..754911455 100644 --- a/emr/src/model/DescribeClusterResourcePoolSchedulerTypeResult.cc +++ b/emr/src/model/DescribeClusterResourcePoolSchedulerTypeResult.cc @@ -35,10 +35,13 @@ DescribeClusterResourcePoolSchedulerTypeResult::~DescribeClusterResourcePoolSche void DescribeClusterResourcePoolSchedulerTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CurrentSchedulerType"].isNull()) currentSchedulerType_ = value["CurrentSchedulerType"].asString(); diff --git a/emr/src/model/DescribeClusterScriptRequest.cc b/emr/src/model/DescribeClusterScriptRequest.cc index d4893ef9a..c9a9575bd 100644 --- a/emr/src/model/DescribeClusterScriptRequest.cc +++ b/emr/src/model/DescribeClusterScriptRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterScriptRequest::getResourceOwnerId()const void DescribeClusterScriptRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterScriptRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterScriptRequest::getRegionId()const void DescribeClusterScriptRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterScriptRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeClusterScriptRequest::getId()const void DescribeClusterScriptRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeClusterScriptRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeClusterScriptRequest::getAccessKeyId()const void DescribeClusterScriptRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterScriptResult.cc b/emr/src/model/DescribeClusterScriptResult.cc index 0840f9522..9a20e4d1b 100644 --- a/emr/src/model/DescribeClusterScriptResult.cc +++ b/emr/src/model/DescribeClusterScriptResult.cc @@ -35,10 +35,13 @@ DescribeClusterScriptResult::~DescribeClusterScriptResult() void DescribeClusterScriptResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScriptNodeInstances = value["ScriptNodeInstances"]["ScriptNodeInstance"]; for (auto value : allScriptNodeInstances) diff --git a/emr/src/model/DescribeClusterServiceConfigForAdminRequest.cc b/emr/src/model/DescribeClusterServiceConfigForAdminRequest.cc new file mode 100644 index 000000000..9189cb1f2 --- /dev/null +++ b/emr/src/model/DescribeClusterServiceConfigForAdminRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DescribeClusterServiceConfigForAdminRequest; + +DescribeClusterServiceConfigForAdminRequest::DescribeClusterServiceConfigForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfigForAdmin") +{} + +DescribeClusterServiceConfigForAdminRequest::~DescribeClusterServiceConfigForAdminRequest() +{} + +long DescribeClusterServiceConfigForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeClusterServiceConfigForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getHostInstanceId()const +{ + return hostInstanceId_; +} + +void DescribeClusterServiceConfigForAdminRequest::setHostInstanceId(const std::string& hostInstanceId) +{ + hostInstanceId_ = hostInstanceId; + setCoreParameter("HostInstanceId", hostInstanceId); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getTagValue()const +{ + return tagValue_; +} + +void DescribeClusterServiceConfigForAdminRequest::setTagValue(const std::string& tagValue) +{ + tagValue_ = tagValue; + setCoreParameter("TagValue", tagValue); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeClusterServiceConfigForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeClusterServiceConfigForAdminRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getServiceName()const +{ + return serviceName_; +} + +void DescribeClusterServiceConfigForAdminRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeClusterServiceConfigForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getUserId()const +{ + return userId_; +} + +void DescribeClusterServiceConfigForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeClusterServiceConfigForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeClusterServiceConfigForAdminRequest::getConfigVersion()const +{ + return configVersion_; +} + +void DescribeClusterServiceConfigForAdminRequest::setConfigVersion(const std::string& configVersion) +{ + configVersion_ = configVersion; + setCoreParameter("ConfigVersion", configVersion); +} + diff --git a/emr/src/model/DescribeClusterServiceConfigForAdminResult.cc b/emr/src/model/DescribeClusterServiceConfigForAdminResult.cc new file mode 100644 index 000000000..25099720e --- /dev/null +++ b/emr/src/model/DescribeClusterServiceConfigForAdminResult.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeClusterServiceConfigForAdminResult::DescribeClusterServiceConfigForAdminResult() : + ServiceResult() +{} + +DescribeClusterServiceConfigForAdminResult::DescribeClusterServiceConfigForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClusterServiceConfigForAdminResult::~DescribeClusterServiceConfigForAdminResult() +{} + +void DescribeClusterServiceConfigForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto configNode = value["Config"]; + if(!configNode["ServiceName"].isNull()) + config_.serviceName = configNode["ServiceName"].asString(); + if(!configNode["ConfigVersion"].isNull()) + config_.configVersion = configNode["ConfigVersion"].asString(); + if(!configNode["Applied"].isNull()) + config_.applied = configNode["Applied"].asString(); + if(!configNode["CreateTime"].isNull()) + config_.createTime = configNode["CreateTime"].asString(); + if(!configNode["Author"].isNull()) + config_.author = configNode["Author"].asString(); + if(!configNode["Comment"].isNull()) + config_.comment = configNode["Comment"].asString(); + auto allConfigValueList = value["ConfigValueList"]["ConfigValue"]; + for (auto value : allConfigValueList) + { + Config::ConfigValue configValueObject; + if(!value["ConfigName"].isNull()) + configValueObject.configName = value["ConfigName"].asString(); + if(!value["AllowCustom"].isNull()) + configValueObject.allowCustom = value["AllowCustom"].asString() == "true"; + auto allConfigItemValueList = value["ConfigItemValueList"]["ConfigItemValue"]; + for (auto value : allConfigItemValueList) + { + Config::ConfigValue::ConfigItemValue configItemValueListObject; + if(!value["ItemName"].isNull()) + configItemValueListObject.itemName = value["ItemName"].asString(); + if(!value["Value"].isNull()) + configItemValueListObject.value = value["Value"].asString(); + if(!value["IsCustom"].isNull()) + configItemValueListObject.isCustom = value["IsCustom"].asString() == "true"; + if(!value["Description"].isNull()) + configItemValueListObject.description = value["Description"].asString(); + configValueObject.configItemValueList.push_back(configItemValueListObject); + } + config_.configValueList.push_back(configValueObject); + } + auto allPropertyInfoList = value["PropertyInfoList"]["PropertyInfo"]; + for (auto value : allPropertyInfoList) + { + Config::PropertyInfo propertyInfoObject; + if(!value["Name"].isNull()) + propertyInfoObject.name = value["Name"].asString(); + if(!value["Value"].isNull()) + propertyInfoObject.value = value["Value"].asString(); + if(!value["Description"].isNull()) + propertyInfoObject.description = value["Description"].asString(); + if(!value["FileName"].isNull()) + propertyInfoObject.fileName = value["FileName"].asString(); + if(!value["DisplayName"].isNull()) + propertyInfoObject.displayName = value["DisplayName"].asString(); + if(!value["ServiceName"].isNull()) + propertyInfoObject.serviceName = value["ServiceName"].asString(); + if(!value["Component"].isNull()) + propertyInfoObject.component = value["Component"].asString(); + auto propertyValueAttributesNode = value["PropertyValueAttributes"]; + if(!propertyValueAttributesNode["Type"].isNull()) + propertyInfoObject.propertyValueAttributes.type = propertyValueAttributesNode["Type"].asString(); + if(!propertyValueAttributesNode["Maximum"].isNull()) + propertyInfoObject.propertyValueAttributes.maximum = propertyValueAttributesNode["Maximum"].asString(); + if(!propertyValueAttributesNode["Mimimum"].isNull()) + propertyInfoObject.propertyValueAttributes.mimimum = propertyValueAttributesNode["Mimimum"].asString(); + if(!propertyValueAttributesNode["Unit"].isNull()) + propertyInfoObject.propertyValueAttributes.unit = propertyValueAttributesNode["Unit"].asString(); + if(!propertyValueAttributesNode["ReadOnly"].isNull()) + propertyInfoObject.propertyValueAttributes.readOnly = propertyValueAttributesNode["ReadOnly"].asString() == "true"; + if(!propertyValueAttributesNode["Hidden"].isNull()) + propertyInfoObject.propertyValueAttributes.hidden = propertyValueAttributesNode["Hidden"].asString() == "true"; + if(!propertyValueAttributesNode["IncrememtStep"].isNull()) + propertyInfoObject.propertyValueAttributes.incrememtStep = propertyValueAttributesNode["IncrememtStep"].asString(); + auto allEntries = value["Entries"]["ValueEntryInfo"]; + for (auto value : allEntries) + { + Config::PropertyInfo::PropertyValueAttributes::ValueEntryInfo valueEntryInfoObject; + if(!value["Value"].isNull()) + valueEntryInfoObject.value = value["Value"].asString(); + if(!value["Label"].isNull()) + valueEntryInfoObject.label = value["Label"].asString(); + if(!value["Description"].isNull()) + valueEntryInfoObject.description = value["Description"].asString(); + propertyInfoObject.propertyValueAttributes.entries.push_back(valueEntryInfoObject); + } + auto effectWayNode = value["EffectWay"]; + if(!effectWayNode["EffectType"].isNull()) + propertyInfoObject.effectWay.effectType = effectWayNode["EffectType"].asString(); + if(!effectWayNode["InvokeServiceName"].isNull()) + propertyInfoObject.effectWay.invokeServiceName = effectWayNode["InvokeServiceName"].asString(); + auto allPropertyTypes = value["PropertyTypes"]["propertyType"]; + for (auto value : allPropertyTypes) + propertyInfoObject.propertyTypes.push_back(value.asString()); + config_.propertyInfoList.push_back(propertyInfoObject); + } + +} + +DescribeClusterServiceConfigForAdminResult::Config DescribeClusterServiceConfigForAdminResult::getConfig()const +{ + return config_; +} + diff --git a/emr/src/model/DescribeClusterServiceConfigHistoryRequest.cc b/emr/src/model/DescribeClusterServiceConfigHistoryRequest.cc index ae83b6d62..358f9d4db 100644 --- a/emr/src/model/DescribeClusterServiceConfigHistoryRequest.cc +++ b/emr/src/model/DescribeClusterServiceConfigHistoryRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterServiceConfigHistoryRequest::getResourceOwnerId()const void DescribeClusterServiceConfigHistoryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterServiceConfigHistoryRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getRegionId()const void DescribeClusterServiceConfigHistoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterServiceConfigHistoryRequest::getServiceName()const @@ -55,7 +55,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getServiceName()const void DescribeClusterServiceConfigHistoryRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string DescribeClusterServiceConfigHistoryRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getClusterId()const void DescribeClusterServiceConfigHistoryRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeClusterServiceConfigHistoryRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getAccessKeyId()const void DescribeClusterServiceConfigHistoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeClusterServiceConfigHistoryRequest::getConfigVersion()const @@ -88,6 +88,6 @@ std::string DescribeClusterServiceConfigHistoryRequest::getConfigVersion()const void DescribeClusterServiceConfigHistoryRequest::setConfigVersion(const std::string& configVersion) { configVersion_ = configVersion; - setParameter("ConfigVersion", configVersion); + setCoreParameter("ConfigVersion", configVersion); } diff --git a/emr/src/model/DescribeClusterServiceConfigHistoryResult.cc b/emr/src/model/DescribeClusterServiceConfigHistoryResult.cc index 1bc2b3b0e..dcc6b0724 100644 --- a/emr/src/model/DescribeClusterServiceConfigHistoryResult.cc +++ b/emr/src/model/DescribeClusterServiceConfigHistoryResult.cc @@ -35,10 +35,13 @@ DescribeClusterServiceConfigHistoryResult::~DescribeClusterServiceConfigHistoryR void DescribeClusterServiceConfigHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto configNode = value["Config"]; if(!configNode["ServiceName"].isNull()) diff --git a/emr/src/model/DescribeClusterServiceConfigRequest.cc b/emr/src/model/DescribeClusterServiceConfigRequest.cc index b0fc8f64f..c1b1af764 100644 --- a/emr/src/model/DescribeClusterServiceConfigRequest.cc +++ b/emr/src/model/DescribeClusterServiceConfigRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterServiceConfigRequest::getResourceOwnerId()const void DescribeClusterServiceConfigRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterServiceConfigRequest::getHostInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeClusterServiceConfigRequest::getHostInstanceId()const void DescribeClusterServiceConfigRequest::setHostInstanceId(const std::string& hostInstanceId) { hostInstanceId_ = hostInstanceId; - setParameter("HostInstanceId", hostInstanceId); + setCoreParameter("HostInstanceId", hostInstanceId); } std::string DescribeClusterServiceConfigRequest::getTagValue()const @@ -55,7 +55,7 @@ std::string DescribeClusterServiceConfigRequest::getTagValue()const void DescribeClusterServiceConfigRequest::setTagValue(const std::string& tagValue) { tagValue_ = tagValue; - setParameter("TagValue", tagValue); + setCoreParameter("TagValue", tagValue); } std::string DescribeClusterServiceConfigRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeClusterServiceConfigRequest::getRegionId()const void DescribeClusterServiceConfigRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterServiceConfigRequest::getGroupId()const @@ -77,7 +77,7 @@ std::string DescribeClusterServiceConfigRequest::getGroupId()const void DescribeClusterServiceConfigRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DescribeClusterServiceConfigRequest::getServiceName()const @@ -88,7 +88,7 @@ std::string DescribeClusterServiceConfigRequest::getServiceName()const void DescribeClusterServiceConfigRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string DescribeClusterServiceConfigRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string DescribeClusterServiceConfigRequest::getClusterId()const void DescribeClusterServiceConfigRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeClusterServiceConfigRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeClusterServiceConfigRequest::getAccessKeyId()const void DescribeClusterServiceConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeClusterServiceConfigRequest::getConfigVersion()const @@ -121,6 +121,6 @@ std::string DescribeClusterServiceConfigRequest::getConfigVersion()const void DescribeClusterServiceConfigRequest::setConfigVersion(const std::string& configVersion) { configVersion_ = configVersion; - setParameter("ConfigVersion", configVersion); + setCoreParameter("ConfigVersion", configVersion); } diff --git a/emr/src/model/DescribeClusterServiceConfigResult.cc b/emr/src/model/DescribeClusterServiceConfigResult.cc index 9f5e5916d..10a2fe3f7 100644 --- a/emr/src/model/DescribeClusterServiceConfigResult.cc +++ b/emr/src/model/DescribeClusterServiceConfigResult.cc @@ -35,10 +35,13 @@ DescribeClusterServiceConfigResult::~DescribeClusterServiceConfigResult() void DescribeClusterServiceConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto configNode = value["Config"]; if(!configNode["ServiceName"].isNull()) diff --git a/emr/src/model/DescribeClusterServiceConfigTagForAdminRequest.cc b/emr/src/model/DescribeClusterServiceConfigTagForAdminRequest.cc new file mode 100644 index 000000000..ac7f59b3d --- /dev/null +++ b/emr/src/model/DescribeClusterServiceConfigTagForAdminRequest.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 + +using AlibabaCloud::Emr::Model::DescribeClusterServiceConfigTagForAdminRequest; + +DescribeClusterServiceConfigTagForAdminRequest::DescribeClusterServiceConfigTagForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfigTagForAdmin") +{} + +DescribeClusterServiceConfigTagForAdminRequest::~DescribeClusterServiceConfigTagForAdminRequest() +{} + +long DescribeClusterServiceConfigTagForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeClusterServiceConfigTagForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeClusterServiceConfigTagForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeClusterServiceConfigTagForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeClusterServiceConfigTagForAdminRequest::getConfigTag()const +{ + return configTag_; +} + +void DescribeClusterServiceConfigTagForAdminRequest::setConfigTag(const std::string& configTag) +{ + configTag_ = configTag; + setCoreParameter("ConfigTag", configTag); +} + +std::string DescribeClusterServiceConfigTagForAdminRequest::getServiceName()const +{ + return serviceName_; +} + +void DescribeClusterServiceConfigTagForAdminRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +std::string DescribeClusterServiceConfigTagForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeClusterServiceConfigTagForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string DescribeClusterServiceConfigTagForAdminRequest::getUserId()const +{ + return userId_; +} + +void DescribeClusterServiceConfigTagForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string DescribeClusterServiceConfigTagForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeClusterServiceConfigTagForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/DescribeClusterServiceConfigTagForAdminResult.cc b/emr/src/model/DescribeClusterServiceConfigTagForAdminResult.cc new file mode 100644 index 000000000..12d9b50c4 --- /dev/null +++ b/emr/src/model/DescribeClusterServiceConfigTagForAdminResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeClusterServiceConfigTagForAdminResult::DescribeClusterServiceConfigTagForAdminResult() : + ServiceResult() +{} + +DescribeClusterServiceConfigTagForAdminResult::DescribeClusterServiceConfigTagForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClusterServiceConfigTagForAdminResult::~DescribeClusterServiceConfigTagForAdminResult() +{} + +void DescribeClusterServiceConfigTagForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allConfigTagList = value["ConfigTagList"]["ConfigTag"]; + for (auto value : allConfigTagList) + { + ConfigTag configTagListObject; + if(!value["Tag"].isNull()) + configTagListObject.tag = value["Tag"].asString(); + if(!value["TagDesc"].isNull()) + configTagListObject.tagDesc = value["TagDesc"].asString(); + auto allValueList = value["ValueList"]["Value"]; + for (auto value : allValueList) + { + ConfigTag::Value valueListObject; + if(!value["Value"].isNull()) + valueListObject.value = value["Value"].asString(); + if(!value["ValueDesc"].isNull()) + valueListObject.valueDesc = value["ValueDesc"].asString(); + configTagListObject.valueList.push_back(valueListObject); + } + configTagList_.push_back(configTagListObject); + } + +} + +std::vector DescribeClusterServiceConfigTagForAdminResult::getConfigTagList()const +{ + return configTagList_; +} + diff --git a/emr/src/model/DescribeClusterServiceConfigTagRequest.cc b/emr/src/model/DescribeClusterServiceConfigTagRequest.cc index 22e9e83eb..2a34eb9cc 100644 --- a/emr/src/model/DescribeClusterServiceConfigTagRequest.cc +++ b/emr/src/model/DescribeClusterServiceConfigTagRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterServiceConfigTagRequest::getResourceOwnerId()const void DescribeClusterServiceConfigTagRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterServiceConfigTagRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterServiceConfigTagRequest::getRegionId()const void DescribeClusterServiceConfigTagRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterServiceConfigTagRequest::getConfigTag()const @@ -55,7 +55,7 @@ std::string DescribeClusterServiceConfigTagRequest::getConfigTag()const void DescribeClusterServiceConfigTagRequest::setConfigTag(const std::string& configTag) { configTag_ = configTag; - setParameter("ConfigTag", configTag); + setCoreParameter("ConfigTag", configTag); } std::string DescribeClusterServiceConfigTagRequest::getServiceName()const @@ -66,7 +66,7 @@ std::string DescribeClusterServiceConfigTagRequest::getServiceName()const void DescribeClusterServiceConfigTagRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string DescribeClusterServiceConfigTagRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string DescribeClusterServiceConfigTagRequest::getClusterId()const void DescribeClusterServiceConfigTagRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeClusterServiceConfigTagRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DescribeClusterServiceConfigTagRequest::getAccessKeyId()const void DescribeClusterServiceConfigTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterServiceConfigTagResult.cc b/emr/src/model/DescribeClusterServiceConfigTagResult.cc index db720e529..600f7fc63 100644 --- a/emr/src/model/DescribeClusterServiceConfigTagResult.cc +++ b/emr/src/model/DescribeClusterServiceConfigTagResult.cc @@ -35,10 +35,13 @@ DescribeClusterServiceConfigTagResult::~DescribeClusterServiceConfigTagResult() void DescribeClusterServiceConfigTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigTagList = value["ConfigTagList"]["ConfigTag"]; for (auto value : allConfigTagList) diff --git a/emr/src/model/DescribeClusterServiceRequest.cc b/emr/src/model/DescribeClusterServiceRequest.cc index b35aecf8a..14c318939 100644 --- a/emr/src/model/DescribeClusterServiceRequest.cc +++ b/emr/src/model/DescribeClusterServiceRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterServiceRequest::getResourceOwnerId()const void DescribeClusterServiceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterServiceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterServiceRequest::getRegionId()const void DescribeClusterServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterServiceRequest::getServiceName()const @@ -55,7 +55,7 @@ std::string DescribeClusterServiceRequest::getServiceName()const void DescribeClusterServiceRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string DescribeClusterServiceRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DescribeClusterServiceRequest::getClusterId()const void DescribeClusterServiceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeClusterServiceRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DescribeClusterServiceRequest::getAccessKeyId()const void DescribeClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterServiceResult.cc b/emr/src/model/DescribeClusterServiceResult.cc index 1efe40b0c..6112970e9 100644 --- a/emr/src/model/DescribeClusterServiceResult.cc +++ b/emr/src/model/DescribeClusterServiceResult.cc @@ -35,10 +35,13 @@ DescribeClusterServiceResult::~DescribeClusterServiceResult() void DescribeClusterServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto serviceInfoNode = value["ServiceInfo"]; if(!serviceInfoNode["ServiceName"].isNull()) diff --git a/emr/src/model/DescribeClusterStatisticsRequest.cc b/emr/src/model/DescribeClusterStatisticsRequest.cc index e6cd70c4a..6bc9aec66 100644 --- a/emr/src/model/DescribeClusterStatisticsRequest.cc +++ b/emr/src/model/DescribeClusterStatisticsRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterStatisticsRequest::getResourceOwnerId()const void DescribeClusterStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterStatisticsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterStatisticsRequest::getRegionId()const void DescribeClusterStatisticsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterStatisticsRequest::getStrategy()const @@ -55,7 +55,7 @@ std::string DescribeClusterStatisticsRequest::getStrategy()const void DescribeClusterStatisticsRequest::setStrategy(const std::string& strategy) { strategy_ = strategy; - setParameter("Strategy", strategy); + setCoreParameter("Strategy", strategy); } std::string DescribeClusterStatisticsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeClusterStatisticsRequest::getAccessKeyId()const void DescribeClusterStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterStatisticsResult.cc b/emr/src/model/DescribeClusterStatisticsResult.cc index d0c2e00c1..b25afab72 100644 --- a/emr/src/model/DescribeClusterStatisticsResult.cc +++ b/emr/src/model/DescribeClusterStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeClusterStatisticsResult::~DescribeClusterStatisticsResult() void DescribeClusterStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterStatisticsList = value["ClusterStatisticsList"]["ClusterStatistics"]; for (auto value : allClusterStatisticsList) diff --git a/emr/src/model/DescribeClusterTemplateRequest.cc b/emr/src/model/DescribeClusterTemplateRequest.cc index 9eb77cc55..fe04feb45 100644 --- a/emr/src/model/DescribeClusterTemplateRequest.cc +++ b/emr/src/model/DescribeClusterTemplateRequest.cc @@ -33,7 +33,7 @@ long DescribeClusterTemplateRequest::getResourceOwnerId()const void DescribeClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterTemplateRequest::getBizId()const @@ -44,7 +44,7 @@ std::string DescribeClusterTemplateRequest::getBizId()const void DescribeClusterTemplateRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } std::string DescribeClusterTemplateRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DescribeClusterTemplateRequest::getAccessKeyId()const void DescribeClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterTemplateResult.cc b/emr/src/model/DescribeClusterTemplateResult.cc index 6bacd4bab..6f0a1a250 100644 --- a/emr/src/model/DescribeClusterTemplateResult.cc +++ b/emr/src/model/DescribeClusterTemplateResult.cc @@ -35,10 +35,13 @@ DescribeClusterTemplateResult::~DescribeClusterTemplateResult() void DescribeClusterTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto templateInfoNode = value["TemplateInfo"]; if(!templateInfoNode["Id"].isNull()) @@ -103,6 +106,14 @@ void DescribeClusterTemplateResult::parse(const std::string &payload) templateInfo_.useCustomHiveMetaDb = templateInfoNode["UseCustomHiveMetaDb"].asString() == "true"; if(!templateInfoNode["InitCustomHiveMetaDb"].isNull()) templateInfo_.initCustomHiveMetaDb = templateInfoNode["InitCustomHiveMetaDb"].asString() == "true"; + if(!templateInfoNode["KeyPairName"].isNull()) + templateInfo_.keyPairName = templateInfoNode["KeyPairName"].asString(); + if(!templateInfoNode["MasterPwd"].isNull()) + templateInfo_.masterPwd = templateInfoNode["MasterPwd"].asString(); + if(!templateInfoNode["MetaStoreType"].isNull()) + templateInfo_.metaStoreType = templateInfoNode["MetaStoreType"].asString(); + if(!templateInfoNode["MetaStoreConf"].isNull()) + templateInfo_.metaStoreConf = templateInfoNode["MetaStoreConf"].asString(); auto allBootstrapActionList = value["BootstrapActionList"]["BootstrapAction"]; for (auto value : allBootstrapActionList) { diff --git a/emr/src/model/DescribeClusterV2Request.cc b/emr/src/model/DescribeClusterV2Request.cc index 313eb3411..7278a2fc8 100644 --- a/emr/src/model/DescribeClusterV2Request.cc +++ b/emr/src/model/DescribeClusterV2Request.cc @@ -33,7 +33,7 @@ long DescribeClusterV2Request::getResourceOwnerId()const void DescribeClusterV2Request::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeClusterV2Request::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeClusterV2Request::getRegionId()const void DescribeClusterV2Request::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeClusterV2Request::getId()const @@ -55,7 +55,7 @@ std::string DescribeClusterV2Request::getId()const void DescribeClusterV2Request::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeClusterV2Request::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeClusterV2Request::getAccessKeyId()const void DescribeClusterV2Request::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeClusterV2Result.cc b/emr/src/model/DescribeClusterV2Result.cc index 5b11b3a94..4b3a83df2 100644 --- a/emr/src/model/DescribeClusterV2Result.cc +++ b/emr/src/model/DescribeClusterV2Result.cc @@ -35,10 +35,13 @@ DescribeClusterV2Result::~DescribeClusterV2Result() void DescribeClusterV2Result::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto clusterInfoNode = value["ClusterInfo"]; if(!clusterInfoNode["Id"].isNull()) @@ -47,6 +50,8 @@ void DescribeClusterV2Result::parse(const std::string &payload) clusterInfo_.regionId = clusterInfoNode["RegionId"].asString(); if(!clusterInfoNode["DepositType"].isNull()) clusterInfo_.depositType = clusterInfoNode["DepositType"].asString(); + if(!clusterInfoNode["MachineType"].isNull()) + clusterInfo_.machineType = clusterInfoNode["MachineType"].asString(); if(!clusterInfoNode["ZoneId"].isNull()) clusterInfo_.zoneId = clusterInfoNode["ZoneId"].asString(); if(!clusterInfoNode["Name"].isNull()) @@ -131,6 +136,8 @@ void DescribeClusterV2Result::parse(const std::string &payload) clusterInfo_.autoScalingByLoadAllowed = clusterInfoNode["AutoScalingByLoadAllowed"].asString() == "true"; if(!clusterInfoNode["ResizeDiskEnable"].isNull()) clusterInfo_.resizeDiskEnable = clusterInfoNode["ResizeDiskEnable"].asString() == "true"; + if(!clusterInfoNode["MetaStoreType"].isNull()) + clusterInfo_.metaStoreType = clusterInfoNode["MetaStoreType"].asString(); auto allGatewayClusterInfoList = value["GatewayClusterInfoList"]["GatewayClusterInfo"]; for (auto value : allGatewayClusterInfoList) { @@ -252,6 +259,11 @@ void DescribeClusterV2Result::parse(const std::string &payload) clusterInfo_.relateClusterInfo.clusterName = relateClusterInfoNode["ClusterName"].asString(); if(!relateClusterInfoNode["Status"].isNull()) clusterInfo_.relateClusterInfo.status = relateClusterInfoNode["Status"].asString(); + auto hostPoolInfoNode = clusterInfoNode["HostPoolInfo"]; + if(!hostPoolInfoNode["HpBizId"].isNull()) + clusterInfo_.hostPoolInfo.hpBizId = hostPoolInfoNode["HpBizId"].asString(); + if(!hostPoolInfoNode["HpName"].isNull()) + clusterInfo_.hostPoolInfo.hpName = hostPoolInfoNode["HpName"].asString(); auto failReasonNode = clusterInfoNode["FailReason"]; if(!failReasonNode["ErrorCode"].isNull()) clusterInfo_.failReason.errorCode = failReasonNode["ErrorCode"].asString(); diff --git a/emr/src/model/DescribeDataSourceCommandRequest.cc b/emr/src/model/DescribeDataSourceCommandRequest.cc index a806733fa..70e5ae5a6 100644 --- a/emr/src/model/DescribeDataSourceCommandRequest.cc +++ b/emr/src/model/DescribeDataSourceCommandRequest.cc @@ -33,7 +33,7 @@ long DescribeDataSourceCommandRequest::getResourceOwnerId()const void DescribeDataSourceCommandRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeDataSourceCommandRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeDataSourceCommandRequest::getRegionId()const void DescribeDataSourceCommandRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeDataSourceCommandRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeDataSourceCommandRequest::getId()const void DescribeDataSourceCommandRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeDataSourceCommandRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeDataSourceCommandRequest::getAccessKeyId()const void DescribeDataSourceCommandRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeDataSourceCommandResult.cc b/emr/src/model/DescribeDataSourceCommandResult.cc index 44c13d917..fe027eb70 100644 --- a/emr/src/model/DescribeDataSourceCommandResult.cc +++ b/emr/src/model/DescribeDataSourceCommandResult.cc @@ -35,10 +35,13 @@ DescribeDataSourceCommandResult::~DescribeDataSourceCommandResult() void DescribeDataSourceCommandResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHostList = value["HostList"]["Host"]; for (auto value : allHostList) diff --git a/emr/src/model/DescribeDataSourceRequest.cc b/emr/src/model/DescribeDataSourceRequest.cc index c6a45c24c..d3e87b219 100644 --- a/emr/src/model/DescribeDataSourceRequest.cc +++ b/emr/src/model/DescribeDataSourceRequest.cc @@ -33,7 +33,7 @@ long DescribeDataSourceRequest::getResourceOwnerId()const void DescribeDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeDataSourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeDataSourceRequest::getRegionId()const void DescribeDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeDataSourceRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeDataSourceRequest::getId()const void DescribeDataSourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeDataSourceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeDataSourceRequest::getAccessKeyId()const void DescribeDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeDataSourceResult.cc b/emr/src/model/DescribeDataSourceResult.cc index 27b7ab92b..18feef8e5 100644 --- a/emr/src/model/DescribeDataSourceResult.cc +++ b/emr/src/model/DescribeDataSourceResult.cc @@ -35,10 +35,13 @@ DescribeDataSourceResult::~DescribeDataSourceResult() void DescribeDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/DescribeDataSourceSchemaDatabaseRequest.cc b/emr/src/model/DescribeDataSourceSchemaDatabaseRequest.cc index 600f8e6a3..020460b92 100644 --- a/emr/src/model/DescribeDataSourceSchemaDatabaseRequest.cc +++ b/emr/src/model/DescribeDataSourceSchemaDatabaseRequest.cc @@ -33,7 +33,7 @@ long DescribeDataSourceSchemaDatabaseRequest::getResourceOwnerId()const void DescribeDataSourceSchemaDatabaseRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeDataSourceSchemaDatabaseRequest::getDbName()const @@ -44,7 +44,7 @@ std::string DescribeDataSourceSchemaDatabaseRequest::getDbName()const void DescribeDataSourceSchemaDatabaseRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeDataSourceSchemaDatabaseRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeDataSourceSchemaDatabaseRequest::getRegionId()const void DescribeDataSourceSchemaDatabaseRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeDataSourceSchemaDatabaseRequest::getDataSourceId()const @@ -66,7 +66,7 @@ std::string DescribeDataSourceSchemaDatabaseRequest::getDataSourceId()const void DescribeDataSourceSchemaDatabaseRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string DescribeDataSourceSchemaDatabaseRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DescribeDataSourceSchemaDatabaseRequest::getAccessKeyId()const void DescribeDataSourceSchemaDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeDataSourceSchemaDatabaseResult.cc b/emr/src/model/DescribeDataSourceSchemaDatabaseResult.cc index dbe7a7604..c9cdcc6ab 100644 --- a/emr/src/model/DescribeDataSourceSchemaDatabaseResult.cc +++ b/emr/src/model/DescribeDataSourceSchemaDatabaseResult.cc @@ -35,10 +35,13 @@ DescribeDataSourceSchemaDatabaseResult::~DescribeDataSourceSchemaDatabaseResult( void DescribeDataSourceSchemaDatabaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto schemaNode = value["Schema"]; if(!schemaNode["DbName"].isNull()) diff --git a/emr/src/model/DescribeDataSourceSchemaTableRequest.cc b/emr/src/model/DescribeDataSourceSchemaTableRequest.cc index a71528282..48c6cba25 100644 --- a/emr/src/model/DescribeDataSourceSchemaTableRequest.cc +++ b/emr/src/model/DescribeDataSourceSchemaTableRequest.cc @@ -33,7 +33,7 @@ long DescribeDataSourceSchemaTableRequest::getResourceOwnerId()const void DescribeDataSourceSchemaTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeDataSourceSchemaTableRequest::getDbName()const @@ -44,7 +44,7 @@ std::string DescribeDataSourceSchemaTableRequest::getDbName()const void DescribeDataSourceSchemaTableRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string DescribeDataSourceSchemaTableRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeDataSourceSchemaTableRequest::getRegionId()const void DescribeDataSourceSchemaTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeDataSourceSchemaTableRequest::getDataSourceId()const @@ -66,7 +66,7 @@ std::string DescribeDataSourceSchemaTableRequest::getDataSourceId()const void DescribeDataSourceSchemaTableRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string DescribeDataSourceSchemaTableRequest::getTableName()const @@ -77,7 +77,7 @@ std::string DescribeDataSourceSchemaTableRequest::getTableName()const void DescribeDataSourceSchemaTableRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string DescribeDataSourceSchemaTableRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DescribeDataSourceSchemaTableRequest::getAccessKeyId()const void DescribeDataSourceSchemaTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeDataSourceSchemaTableResult.cc b/emr/src/model/DescribeDataSourceSchemaTableResult.cc index 002f5b42d..4aafe522a 100644 --- a/emr/src/model/DescribeDataSourceSchemaTableResult.cc +++ b/emr/src/model/DescribeDataSourceSchemaTableResult.cc @@ -35,10 +35,13 @@ DescribeDataSourceSchemaTableResult::~DescribeDataSourceSchemaTableResult() void DescribeDataSourceSchemaTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto schemaNode = value["Schema"]; if(!schemaNode["DbType"].isNull()) @@ -55,6 +58,8 @@ void DescribeDataSourceSchemaTableResult::parse(const std::string &payload) Schema::Field fieldObject; if(!value["Type"].isNull()) fieldObject.type = value["Type"].asString(); + if(!value["Length"].isNull()) + fieldObject.length = value["Length"].asString(); if(!value["Name"].isNull()) fieldObject.name = value["Name"].asString(); if(!value["Index"].isNull()) @@ -65,6 +70,8 @@ void DescribeDataSourceSchemaTableResult::parse(const std::string &payload) fieldObject.assignType = value["AssignType"].asString(); if(!value["AssignValue"].isNull()) fieldObject.assignValue = value["AssignValue"].asString(); + if(!value["PartitionKey"].isNull()) + fieldObject.partitionKey = value["PartitionKey"].asString() == "true"; schema_.fields.push_back(fieldObject); } if(!value["DataSourceId"].isNull()) diff --git a/emr/src/model/DescribeETLJobInstanceRequest.cc b/emr/src/model/DescribeETLJobInstanceRequest.cc index 217861acb..16742a33b 100644 --- a/emr/src/model/DescribeETLJobInstanceRequest.cc +++ b/emr/src/model/DescribeETLJobInstanceRequest.cc @@ -33,7 +33,7 @@ long DescribeETLJobInstanceRequest::getResourceOwnerId()const void DescribeETLJobInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeETLJobInstanceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeETLJobInstanceRequest::getRegionId()const void DescribeETLJobInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeETLJobInstanceRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeETLJobInstanceRequest::getId()const void DescribeETLJobInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeETLJobInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeETLJobInstanceRequest::getAccessKeyId()const void DescribeETLJobInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeETLJobInstanceResult.cc b/emr/src/model/DescribeETLJobInstanceResult.cc index 9e4d6476d..2b169837f 100644 --- a/emr/src/model/DescribeETLJobInstanceResult.cc +++ b/emr/src/model/DescribeETLJobInstanceResult.cc @@ -35,10 +35,13 @@ DescribeETLJobInstanceResult::~DescribeETLJobInstanceResult() void DescribeETLJobInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFlowRelationList = value["FlowRelationList"]["FlowRelation"]; for (auto value : allFlowRelationList) @@ -58,25 +61,10 @@ void DescribeETLJobInstanceResult::parse(const std::string &payload) stageInstanceListObject.id = value["Id"].asString(); if(!value["Name"].isNull()) stageInstanceListObject.name = value["Name"].asString(); - if(!value["StartTime"].isNull()) - stageInstanceListObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["EndTime"].isNull()) - stageInstanceListObject.endTime = std::stol(value["EndTime"].asString()); - auto metrics1Node = value["Metrics"]; - if(!metrics1Node["TotalTime"].isNull()) - stageInstanceListObject.metrics1.totalTime = std::stol(metrics1Node["TotalTime"].asString()); - if(!metrics1Node["RecordsIn"].isNull()) - stageInstanceListObject.metrics1.recordsIn = std::stol(metrics1Node["RecordsIn"].asString()); - if(!metrics1Node["RecordsOut"].isNull()) - stageInstanceListObject.metrics1.recordsOut = std::stol(metrics1Node["RecordsOut"].asString()); - if(!metrics1Node["RecordsError"].isNull()) - stageInstanceListObject.metrics1.recordsError = std::stol(metrics1Node["RecordsError"].asString()); - if(!metrics1Node["RecordsRate"].isNull()) - stageInstanceListObject.metrics1.recordsRate = metrics1Node["RecordsRate"].asString(); - if(!metrics1Node["Vcores"].isNull()) - stageInstanceListObject.metrics1.vcores = std::stol(metrics1Node["Vcores"].asString()); - if(!metrics1Node["MemSize"].isNull()) - stageInstanceListObject.metrics1.memSize = std::stol(metrics1Node["MemSize"].asString()); + if(!value["StageStartTime"].isNull()) + stageInstanceListObject.stageStartTime = std::stol(value["StageStartTime"].asString()); + if(!value["StageEndTime"].isNull()) + stageInstanceListObject.stageEndTime = std::stol(value["StageEndTime"].asString()); stageInstanceList_.push_back(stageInstanceListObject); } auto triggerHistoryNode = value["TriggerHistory"]; diff --git a/emr/src/model/DescribeETLJobRequest.cc b/emr/src/model/DescribeETLJobRequest.cc index 5e9f061db..6a9014616 100644 --- a/emr/src/model/DescribeETLJobRequest.cc +++ b/emr/src/model/DescribeETLJobRequest.cc @@ -33,7 +33,7 @@ long DescribeETLJobRequest::getResourceOwnerId()const void DescribeETLJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeETLJobRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeETLJobRequest::getRegionId()const void DescribeETLJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeETLJobRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeETLJobRequest::getId()const void DescribeETLJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeETLJobRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeETLJobRequest::getAccessKeyId()const void DescribeETLJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeETLJobResult.cc b/emr/src/model/DescribeETLJobResult.cc index c33cbcd43..dbb5fb7fe 100644 --- a/emr/src/model/DescribeETLJobResult.cc +++ b/emr/src/model/DescribeETLJobResult.cc @@ -35,10 +35,13 @@ DescribeETLJobResult::~DescribeETLJobResult() void DescribeETLJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTriggerRuleList = value["TriggerRuleList"]["TriggerRule"]; for (auto value : allTriggerRuleList) @@ -115,9 +118,9 @@ void DescribeETLJobResult::parse(const std::string &payload) auto allAlertUserGroupIdList = value["AlertUserGroupIdList"]["AlertUserGroupId"]; for (auto value : allAlertUserGroupIdList) itemObject.alertUserGroupIdList.push_back(value.asString()); - auto allAlertDingDingGroupIdList = value["AlertDingDingGroupIdList"]["AlertDingDingGroupId"]; - for (auto value : allAlertDingDingGroupIdList) - itemObject.alertDingDingGroupIdList.push_back(value.asString()); + auto allAlertDingDingGroupList = value["AlertDingDingGroupList"]["AlertDingDingGroup"]; + for (auto value : allAlertDingDingGroupList) + itemObject.alertDingDingGroupList.push_back(value.asString()); alertConfig_.items.push_back(itemObject); } if(!value["Id"].isNull()) diff --git a/emr/src/model/DescribeETLJobSqlSchemaRequest.cc b/emr/src/model/DescribeETLJobSqlSchemaRequest.cc index 79afa3c27..59ad6c7bd 100644 --- a/emr/src/model/DescribeETLJobSqlSchemaRequest.cc +++ b/emr/src/model/DescribeETLJobSqlSchemaRequest.cc @@ -33,7 +33,7 @@ long DescribeETLJobSqlSchemaRequest::getResourceOwnerId()const void DescribeETLJobSqlSchemaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeETLJobSqlSchemaRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeETLJobSqlSchemaRequest::getRegionId()const void DescribeETLJobSqlSchemaRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeETLJobSqlSchemaRequest::getResolveId()const @@ -55,7 +55,7 @@ std::string DescribeETLJobSqlSchemaRequest::getResolveId()const void DescribeETLJobSqlSchemaRequest::setResolveId(const std::string& resolveId) { resolveId_ = resolveId; - setParameter("ResolveId", resolveId); + setCoreParameter("ResolveId", resolveId); } std::string DescribeETLJobSqlSchemaRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeETLJobSqlSchemaRequest::getAccessKeyId()const void DescribeETLJobSqlSchemaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeETLJobSqlSchemaResult.cc b/emr/src/model/DescribeETLJobSqlSchemaResult.cc index cc6d42b9f..69f6ad0b3 100644 --- a/emr/src/model/DescribeETLJobSqlSchemaResult.cc +++ b/emr/src/model/DescribeETLJobSqlSchemaResult.cc @@ -35,10 +35,13 @@ DescribeETLJobSqlSchemaResult::~DescribeETLJobSqlSchemaResult() void DescribeETLJobSqlSchemaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto schemaNode = value["Schema"]; if(!schemaNode["Name"].isNull()) @@ -49,6 +52,8 @@ void DescribeETLJobSqlSchemaResult::parse(const std::string &payload) Schema::Field fieldObject; if(!value["Type"].isNull()) fieldObject.type = value["Type"].asString(); + if(!value["Length"].isNull()) + fieldObject.length = value["Length"].asString(); if(!value["Name"].isNull()) fieldObject.name = value["Name"].asString(); if(!value["Index"].isNull()) @@ -59,6 +64,8 @@ void DescribeETLJobSqlSchemaResult::parse(const std::string &payload) fieldObject.assignType = value["AssignType"].asString(); if(!value["AssignValue"].isNull()) fieldObject.assignValue = value["AssignValue"].asString(); + if(!value["PartitionKey"].isNull()) + fieldObject.partitionKey = value["PartitionKey"].asString() == "true"; schema_.fields.push_back(fieldObject); } diff --git a/emr/src/model/DescribeETLJobStageOutputSchemaRequest.cc b/emr/src/model/DescribeETLJobStageOutputSchemaRequest.cc index 832f28e91..6e11e5fb3 100644 --- a/emr/src/model/DescribeETLJobStageOutputSchemaRequest.cc +++ b/emr/src/model/DescribeETLJobStageOutputSchemaRequest.cc @@ -33,7 +33,7 @@ std::string DescribeETLJobStageOutputSchemaRequest::getStageName()const void DescribeETLJobStageOutputSchemaRequest::setStageName(const std::string& stageName) { stageName_ = stageName; - setParameter("StageName", stageName); + setCoreParameter("StageName", stageName); } long DescribeETLJobStageOutputSchemaRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeETLJobStageOutputSchemaRequest::getResourceOwnerId()const void DescribeETLJobStageOutputSchemaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeETLJobStageOutputSchemaRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeETLJobStageOutputSchemaRequest::getRegionId()const void DescribeETLJobStageOutputSchemaRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeETLJobStageOutputSchemaRequest::getEtlJobId()const @@ -66,7 +66,7 @@ std::string DescribeETLJobStageOutputSchemaRequest::getEtlJobId()const void DescribeETLJobStageOutputSchemaRequest::setEtlJobId(const std::string& etlJobId) { etlJobId_ = etlJobId; - setParameter("EtlJobId", etlJobId); + setCoreParameter("EtlJobId", etlJobId); } std::string DescribeETLJobStageOutputSchemaRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DescribeETLJobStageOutputSchemaRequest::getAccessKeyId()const void DescribeETLJobStageOutputSchemaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeETLJobStageOutputSchemaResult.cc b/emr/src/model/DescribeETLJobStageOutputSchemaResult.cc index f0d4ed688..972354b90 100644 --- a/emr/src/model/DescribeETLJobStageOutputSchemaResult.cc +++ b/emr/src/model/DescribeETLJobStageOutputSchemaResult.cc @@ -35,10 +35,13 @@ DescribeETLJobStageOutputSchemaResult::~DescribeETLJobStageOutputSchemaResult() void DescribeETLJobStageOutputSchemaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto schemaNode = value["Schema"]; if(!schemaNode["Name"].isNull()) @@ -49,6 +52,8 @@ void DescribeETLJobStageOutputSchemaResult::parse(const std::string &payload) Schema::Field fieldObject; if(!value["Type"].isNull()) fieldObject.type = value["Type"].asString(); + if(!value["Length"].isNull()) + fieldObject.length = value["Length"].asString(); if(!value["Name"].isNull()) fieldObject.name = value["Name"].asString(); if(!value["Index"].isNull()) @@ -59,6 +64,8 @@ void DescribeETLJobStageOutputSchemaResult::parse(const std::string &payload) fieldObject.assignType = value["AssignType"].asString(); if(!value["AssignValue"].isNull()) fieldObject.assignValue = value["AssignValue"].asString(); + if(!value["PartitionKey"].isNull()) + fieldObject.partitionKey = value["PartitionKey"].asString() == "true"; schema_.fields.push_back(fieldObject); } diff --git a/emr/src/model/DescribeEmrMainVersionRequest.cc b/emr/src/model/DescribeEmrMainVersionRequest.cc index f065663f7..f74095fa9 100644 --- a/emr/src/model/DescribeEmrMainVersionRequest.cc +++ b/emr/src/model/DescribeEmrMainVersionRequest.cc @@ -33,7 +33,7 @@ long DescribeEmrMainVersionRequest::getResourceOwnerId()const void DescribeEmrMainVersionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeEmrMainVersionRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeEmrMainVersionRequest::getRegionId()const void DescribeEmrMainVersionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeEmrMainVersionRequest::getEmrVersion()const @@ -55,7 +55,7 @@ std::string DescribeEmrMainVersionRequest::getEmrVersion()const void DescribeEmrMainVersionRequest::setEmrVersion(const std::string& emrVersion) { emrVersion_ = emrVersion; - setParameter("EmrVersion", emrVersion); + setCoreParameter("EmrVersion", emrVersion); } std::string DescribeEmrMainVersionRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeEmrMainVersionRequest::getAccessKeyId()const void DescribeEmrMainVersionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeEmrMainVersionResult.cc b/emr/src/model/DescribeEmrMainVersionResult.cc index 09fbae4b2..b358ba7e6 100644 --- a/emr/src/model/DescribeEmrMainVersionResult.cc +++ b/emr/src/model/DescribeEmrMainVersionResult.cc @@ -35,10 +35,13 @@ DescribeEmrMainVersionResult::~DescribeEmrMainVersionResult() void DescribeEmrMainVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto emrMainVersionNode = value["EmrMainVersion"]; if(!emrMainVersionNode["RegionId"].isNull()) diff --git a/emr/src/model/DescribeExecutionPlanRequest.cc b/emr/src/model/DescribeExecutionPlanRequest.cc index 81bbfad3b..75c423cb0 100644 --- a/emr/src/model/DescribeExecutionPlanRequest.cc +++ b/emr/src/model/DescribeExecutionPlanRequest.cc @@ -33,7 +33,7 @@ long DescribeExecutionPlanRequest::getResourceOwnerId()const void DescribeExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeExecutionPlanRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeExecutionPlanRequest::getRegionId()const void DescribeExecutionPlanRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeExecutionPlanRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeExecutionPlanRequest::getId()const void DescribeExecutionPlanRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeExecutionPlanRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeExecutionPlanRequest::getAccessKeyId()const void DescribeExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeExecutionPlanResult.cc b/emr/src/model/DescribeExecutionPlanResult.cc index bb48e97c3..3fded8daa 100644 --- a/emr/src/model/DescribeExecutionPlanResult.cc +++ b/emr/src/model/DescribeExecutionPlanResult.cc @@ -35,10 +35,13 @@ DescribeExecutionPlanResult::~DescribeExecutionPlanResult() void DescribeExecutionPlanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobInfoList = value["JobInfoList"]["JobInfo"]; for (auto value : allJobInfoList) diff --git a/emr/src/model/DescribeFlowCategoryRequest.cc b/emr/src/model/DescribeFlowCategoryRequest.cc index 12a707cf9..29bd053e2 100644 --- a/emr/src/model/DescribeFlowCategoryRequest.cc +++ b/emr/src/model/DescribeFlowCategoryRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowCategoryRequest::getRegionId()const void DescribeFlowCategoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowCategoryRequest::getId()const @@ -44,7 +44,7 @@ std::string DescribeFlowCategoryRequest::getId()const void DescribeFlowCategoryRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeFlowCategoryRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowCategoryRequest::getProjectId()const void DescribeFlowCategoryRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowCategoryResult.cc b/emr/src/model/DescribeFlowCategoryResult.cc index a1d4266a7..df80ef09a 100644 --- a/emr/src/model/DescribeFlowCategoryResult.cc +++ b/emr/src/model/DescribeFlowCategoryResult.cc @@ -35,10 +35,13 @@ DescribeFlowCategoryResult::~DescribeFlowCategoryResult() void DescribeFlowCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/DescribeFlowCategoryTreeRequest.cc b/emr/src/model/DescribeFlowCategoryTreeRequest.cc index 295b4512d..a3e12ae79 100644 --- a/emr/src/model/DescribeFlowCategoryTreeRequest.cc +++ b/emr/src/model/DescribeFlowCategoryTreeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowCategoryTreeRequest::getRegionId()const void DescribeFlowCategoryTreeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowCategoryTreeRequest::getType()const @@ -44,7 +44,7 @@ std::string DescribeFlowCategoryTreeRequest::getType()const void DescribeFlowCategoryTreeRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string DescribeFlowCategoryTreeRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowCategoryTreeRequest::getProjectId()const void DescribeFlowCategoryTreeRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowCategoryTreeResult.cc b/emr/src/model/DescribeFlowCategoryTreeResult.cc index 59832fadd..cbd38ebbc 100644 --- a/emr/src/model/DescribeFlowCategoryTreeResult.cc +++ b/emr/src/model/DescribeFlowCategoryTreeResult.cc @@ -35,10 +35,13 @@ DescribeFlowCategoryTreeResult::~DescribeFlowCategoryTreeResult() void DescribeFlowCategoryTreeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); diff --git a/emr/src/model/DescribeFlowInstanceRequest.cc b/emr/src/model/DescribeFlowInstanceRequest.cc index 3b92d97d6..a67b232e5 100644 --- a/emr/src/model/DescribeFlowInstanceRequest.cc +++ b/emr/src/model/DescribeFlowInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowInstanceRequest::getRegionId()const void DescribeFlowInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowInstanceRequest::getId()const @@ -44,7 +44,7 @@ std::string DescribeFlowInstanceRequest::getId()const void DescribeFlowInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeFlowInstanceRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowInstanceRequest::getProjectId()const void DescribeFlowInstanceRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowInstanceResult.cc b/emr/src/model/DescribeFlowInstanceResult.cc index 271b21538..a107ddd37 100644 --- a/emr/src/model/DescribeFlowInstanceResult.cc +++ b/emr/src/model/DescribeFlowInstanceResult.cc @@ -35,10 +35,13 @@ DescribeFlowInstanceResult::~DescribeFlowInstanceResult() void DescribeFlowInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDependencyFlowList = value["DependencyFlowList"]["ParentFlow"]; for (auto value : allDependencyFlowList) diff --git a/emr/src/model/DescribeFlowJobRequest.cc b/emr/src/model/DescribeFlowJobRequest.cc index be6a38af0..52524ed7e 100644 --- a/emr/src/model/DescribeFlowJobRequest.cc +++ b/emr/src/model/DescribeFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowJobRequest::getRegionId()const void DescribeFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowJobRequest::getId()const @@ -44,7 +44,7 @@ std::string DescribeFlowJobRequest::getId()const void DescribeFlowJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeFlowJobRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowJobRequest::getProjectId()const void DescribeFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowJobResult.cc b/emr/src/model/DescribeFlowJobResult.cc index ceb7fa7e7..c274fb6a1 100644 --- a/emr/src/model/DescribeFlowJobResult.cc +++ b/emr/src/model/DescribeFlowJobResult.cc @@ -35,10 +35,13 @@ DescribeFlowJobResult::~DescribeFlowJobResult() void DescribeFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResourceList = value["ResourceList"]["Resource"]; for (auto value : allResourceList) diff --git a/emr/src/model/DescribeFlowJobStatisticRequest.cc b/emr/src/model/DescribeFlowJobStatisticRequest.cc index eed142887..45e70bcaf 100644 --- a/emr/src/model/DescribeFlowJobStatisticRequest.cc +++ b/emr/src/model/DescribeFlowJobStatisticRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowJobStatisticRequest::getFromApp()const void DescribeFlowJobStatisticRequest::setFromApp(const std::string& fromApp) { fromApp_ = fromApp; - setParameter("FromApp", fromApp); + setCoreParameter("FromApp", fromApp); } std::string DescribeFlowJobStatisticRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeFlowJobStatisticRequest::getRegionId()const void DescribeFlowJobStatisticRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowJobStatisticRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowJobStatisticRequest::getProjectId()const void DescribeFlowJobStatisticRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowJobStatisticResult.cc b/emr/src/model/DescribeFlowJobStatisticResult.cc index dda82e73a..7076c5e7d 100644 --- a/emr/src/model/DescribeFlowJobStatisticResult.cc +++ b/emr/src/model/DescribeFlowJobStatisticResult.cc @@ -35,10 +35,13 @@ DescribeFlowJobStatisticResult::~DescribeFlowJobStatisticResult() void DescribeFlowJobStatisticResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["StatisticInfo"].isNull()) statisticInfo_ = value["StatisticInfo"].asString(); diff --git a/emr/src/model/DescribeFlowNodeInstanceContainerLogRequest.cc b/emr/src/model/DescribeFlowNodeInstanceContainerLogRequest.cc index ed16aac36..f26fe8f57 100644 --- a/emr/src/model/DescribeFlowNodeInstanceContainerLogRequest.cc +++ b/emr/src/model/DescribeFlowNodeInstanceContainerLogRequest.cc @@ -33,7 +33,7 @@ int DescribeFlowNodeInstanceContainerLogRequest::getOffset()const void DescribeFlowNodeInstanceContainerLogRequest::setOffset(int offset) { offset_ = offset; - setParameter("Offset", std::to_string(offset)); + setCoreParameter("Offset", std::to_string(offset)); } std::string DescribeFlowNodeInstanceContainerLogRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getRegionId()const void DescribeFlowNodeInstanceContainerLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowNodeInstanceContainerLogRequest::getLogName()const @@ -55,7 +55,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getLogName()const void DescribeFlowNodeInstanceContainerLogRequest::setLogName(const std::string& logName) { logName_ = logName; - setParameter("LogName", logName); + setCoreParameter("LogName", logName); } std::string DescribeFlowNodeInstanceContainerLogRequest::getAppId()const @@ -66,7 +66,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getAppId()const void DescribeFlowNodeInstanceContainerLogRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } int DescribeFlowNodeInstanceContainerLogRequest::getLength()const @@ -77,7 +77,7 @@ int DescribeFlowNodeInstanceContainerLogRequest::getLength()const void DescribeFlowNodeInstanceContainerLogRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } std::string DescribeFlowNodeInstanceContainerLogRequest::getContainerId()const @@ -88,7 +88,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getContainerId()const void DescribeFlowNodeInstanceContainerLogRequest::setContainerId(const std::string& containerId) { containerId_ = containerId; - setParameter("ContainerId", containerId); + setCoreParameter("ContainerId", containerId); } std::string DescribeFlowNodeInstanceContainerLogRequest::getNodeInstanceId()const @@ -99,7 +99,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getNodeInstanceId()cons void DescribeFlowNodeInstanceContainerLogRequest::setNodeInstanceId(const std::string& nodeInstanceId) { nodeInstanceId_ = nodeInstanceId; - setParameter("NodeInstanceId", nodeInstanceId); + setCoreParameter("NodeInstanceId", nodeInstanceId); } std::string DescribeFlowNodeInstanceContainerLogRequest::getProjectId()const @@ -110,6 +110,6 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getProjectId()const void DescribeFlowNodeInstanceContainerLogRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowNodeInstanceContainerLogResult.cc b/emr/src/model/DescribeFlowNodeInstanceContainerLogResult.cc index 6d16a717b..68fc3a397 100644 --- a/emr/src/model/DescribeFlowNodeInstanceContainerLogResult.cc +++ b/emr/src/model/DescribeFlowNodeInstanceContainerLogResult.cc @@ -35,10 +35,13 @@ DescribeFlowNodeInstanceContainerLogResult::~DescribeFlowNodeInstanceContainerLo void DescribeFlowNodeInstanceContainerLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogEntrys = value["LogEntrys"]["LogEntry"]; for (auto value : allLogEntrys) diff --git a/emr/src/model/DescribeFlowNodeInstanceLauncherLogRequest.cc b/emr/src/model/DescribeFlowNodeInstanceLauncherLogRequest.cc index 598c2177b..b84dc248e 100644 --- a/emr/src/model/DescribeFlowNodeInstanceLauncherLogRequest.cc +++ b/emr/src/model/DescribeFlowNodeInstanceLauncherLogRequest.cc @@ -33,7 +33,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getOffset()const void DescribeFlowNodeInstanceLauncherLogRequest::setOffset(int offset) { offset_ = offset; - setParameter("Offset", std::to_string(offset)); + setCoreParameter("Offset", std::to_string(offset)); } std::string DescribeFlowNodeInstanceLauncherLogRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeFlowNodeInstanceLauncherLogRequest::getRegionId()const void DescribeFlowNodeInstanceLauncherLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeFlowNodeInstanceLauncherLogRequest::getStart()const @@ -55,7 +55,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getStart()const void DescribeFlowNodeInstanceLauncherLogRequest::setStart(int start) { start_ = start; - setParameter("Start", std::to_string(start)); + setCoreParameter("Start", std::to_string(start)); } int DescribeFlowNodeInstanceLauncherLogRequest::getLength()const @@ -66,7 +66,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getLength()const void DescribeFlowNodeInstanceLauncherLogRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } long DescribeFlowNodeInstanceLauncherLogRequest::getEndTime()const @@ -77,7 +77,7 @@ long DescribeFlowNodeInstanceLauncherLogRequest::getEndTime()const void DescribeFlowNodeInstanceLauncherLogRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } long DescribeFlowNodeInstanceLauncherLogRequest::getStartTime()const @@ -88,7 +88,7 @@ long DescribeFlowNodeInstanceLauncherLogRequest::getStartTime()const void DescribeFlowNodeInstanceLauncherLogRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } int DescribeFlowNodeInstanceLauncherLogRequest::getLines()const @@ -99,7 +99,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getLines()const void DescribeFlowNodeInstanceLauncherLogRequest::setLines(int lines) { lines_ = lines; - setParameter("Lines", std::to_string(lines)); + setCoreParameter("Lines", std::to_string(lines)); } bool DescribeFlowNodeInstanceLauncherLogRequest::getReverse()const @@ -110,7 +110,7 @@ bool DescribeFlowNodeInstanceLauncherLogRequest::getReverse()const void DescribeFlowNodeInstanceLauncherLogRequest::setReverse(bool reverse) { reverse_ = reverse; - setParameter("Reverse", std::to_string(reverse)); + setCoreParameter("Reverse", reverse ? "true" : "false"); } std::string DescribeFlowNodeInstanceLauncherLogRequest::getNodeInstanceId()const @@ -121,7 +121,7 @@ std::string DescribeFlowNodeInstanceLauncherLogRequest::getNodeInstanceId()const void DescribeFlowNodeInstanceLauncherLogRequest::setNodeInstanceId(const std::string& nodeInstanceId) { nodeInstanceId_ = nodeInstanceId; - setParameter("NodeInstanceId", nodeInstanceId); + setCoreParameter("NodeInstanceId", nodeInstanceId); } std::string DescribeFlowNodeInstanceLauncherLogRequest::getProjectId()const @@ -132,6 +132,6 @@ std::string DescribeFlowNodeInstanceLauncherLogRequest::getProjectId()const void DescribeFlowNodeInstanceLauncherLogRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowNodeInstanceLauncherLogResult.cc b/emr/src/model/DescribeFlowNodeInstanceLauncherLogResult.cc index a03f12238..e8fe4cad2 100644 --- a/emr/src/model/DescribeFlowNodeInstanceLauncherLogResult.cc +++ b/emr/src/model/DescribeFlowNodeInstanceLauncherLogResult.cc @@ -35,10 +35,13 @@ DescribeFlowNodeInstanceLauncherLogResult::~DescribeFlowNodeInstanceLauncherLogR void DescribeFlowNodeInstanceLauncherLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogEntrys = value["LogEntrys"]["LogEntry"]; for (auto value : allLogEntrys) diff --git a/emr/src/model/DescribeFlowNodeInstanceRequest.cc b/emr/src/model/DescribeFlowNodeInstanceRequest.cc index e15a4f8d2..ada8c9ad8 100644 --- a/emr/src/model/DescribeFlowNodeInstanceRequest.cc +++ b/emr/src/model/DescribeFlowNodeInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowNodeInstanceRequest::getRegionId()const void DescribeFlowNodeInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowNodeInstanceRequest::getId()const @@ -44,7 +44,7 @@ std::string DescribeFlowNodeInstanceRequest::getId()const void DescribeFlowNodeInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeFlowNodeInstanceRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowNodeInstanceRequest::getProjectId()const void DescribeFlowNodeInstanceRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowNodeInstanceResult.cc b/emr/src/model/DescribeFlowNodeInstanceResult.cc index b224ebcee..44664e148 100644 --- a/emr/src/model/DescribeFlowNodeInstanceResult.cc +++ b/emr/src/model/DescribeFlowNodeInstanceResult.cc @@ -35,10 +35,13 @@ DescribeFlowNodeInstanceResult::~DescribeFlowNodeInstanceResult() void DescribeFlowNodeInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/DescribeFlowProjectClusterSettingRequest.cc b/emr/src/model/DescribeFlowProjectClusterSettingRequest.cc index 2ebf0bdf5..c10a9d5cf 100644 --- a/emr/src/model/DescribeFlowProjectClusterSettingRequest.cc +++ b/emr/src/model/DescribeFlowProjectClusterSettingRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowProjectClusterSettingRequest::getRegionId()const void DescribeFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowProjectClusterSettingRequest::getClusterId()const @@ -44,7 +44,7 @@ std::string DescribeFlowProjectClusterSettingRequest::getClusterId()const void DescribeFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeFlowProjectClusterSettingRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowProjectClusterSettingRequest::getProjectId()const void DescribeFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowProjectClusterSettingResult.cc b/emr/src/model/DescribeFlowProjectClusterSettingResult.cc index ad1a95cee..28280478f 100644 --- a/emr/src/model/DescribeFlowProjectClusterSettingResult.cc +++ b/emr/src/model/DescribeFlowProjectClusterSettingResult.cc @@ -35,10 +35,13 @@ DescribeFlowProjectClusterSettingResult::~DescribeFlowProjectClusterSettingResul void DescribeFlowProjectClusterSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserList = value["UserList"]["User"]; for (const auto &item : allUserList) diff --git a/emr/src/model/DescribeFlowProjectRequest.cc b/emr/src/model/DescribeFlowProjectRequest.cc index a92006249..b186a2db7 100644 --- a/emr/src/model/DescribeFlowProjectRequest.cc +++ b/emr/src/model/DescribeFlowProjectRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowProjectRequest::getRegionId()const void DescribeFlowProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowProjectRequest::getProjectId()const @@ -44,6 +44,6 @@ std::string DescribeFlowProjectRequest::getProjectId()const void DescribeFlowProjectRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowProjectResult.cc b/emr/src/model/DescribeFlowProjectResult.cc index b723b3b05..f37e9c742 100644 --- a/emr/src/model/DescribeFlowProjectResult.cc +++ b/emr/src/model/DescribeFlowProjectResult.cc @@ -35,10 +35,13 @@ DescribeFlowProjectResult::~DescribeFlowProjectResult() void DescribeFlowProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/DescribeFlowRequest.cc b/emr/src/model/DescribeFlowRequest.cc index f2891d03e..874084941 100644 --- a/emr/src/model/DescribeFlowRequest.cc +++ b/emr/src/model/DescribeFlowRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowRequest::getRegionId()const void DescribeFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowRequest::getId()const @@ -44,7 +44,7 @@ std::string DescribeFlowRequest::getId()const void DescribeFlowRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeFlowRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string DescribeFlowRequest::getProjectId()const void DescribeFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/DescribeFlowResult.cc b/emr/src/model/DescribeFlowResult.cc index 311006a7d..d42d14421 100644 --- a/emr/src/model/DescribeFlowResult.cc +++ b/emr/src/model/DescribeFlowResult.cc @@ -35,10 +35,13 @@ DescribeFlowResult::~DescribeFlowResult() void DescribeFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParentFlowList = value["ParentFlowList"]["ParentFlow"]; for (auto value : allParentFlowList) diff --git a/emr/src/model/DescribeFlowVariableCollectionRequest.cc b/emr/src/model/DescribeFlowVariableCollectionRequest.cc index 9464051f7..2157fc1ef 100644 --- a/emr/src/model/DescribeFlowVariableCollectionRequest.cc +++ b/emr/src/model/DescribeFlowVariableCollectionRequest.cc @@ -33,7 +33,7 @@ std::string DescribeFlowVariableCollectionRequest::getRegionId()const void DescribeFlowVariableCollectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeFlowVariableCollectionRequest::getEntityId()const @@ -44,6 +44,6 @@ std::string DescribeFlowVariableCollectionRequest::getEntityId()const void DescribeFlowVariableCollectionRequest::setEntityId(const std::string& entityId) { entityId_ = entityId; - setParameter("EntityId", entityId); + setCoreParameter("EntityId", entityId); } diff --git a/emr/src/model/DescribeFlowVariableCollectionResult.cc b/emr/src/model/DescribeFlowVariableCollectionResult.cc index 78b3f2e94..6bfe018d0 100644 --- a/emr/src/model/DescribeFlowVariableCollectionResult.cc +++ b/emr/src/model/DescribeFlowVariableCollectionResult.cc @@ -35,10 +35,13 @@ DescribeFlowVariableCollectionResult::~DescribeFlowVariableCollectionResult() void DescribeFlowVariableCollectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/emr/src/model/DescribeHostPoolRequest.cc b/emr/src/model/DescribeHostPoolRequest.cc new file mode 100644 index 000000000..68f0630d9 --- /dev/null +++ b/emr/src/model/DescribeHostPoolRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::DescribeHostPoolRequest; + +DescribeHostPoolRequest::DescribeHostPoolRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeHostPool") +{} + +DescribeHostPoolRequest::~DescribeHostPoolRequest() +{} + +long DescribeHostPoolRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHostPoolRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeHostPoolRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeHostPoolRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeHostPoolRequest::getBizId()const +{ + return bizId_; +} + +void DescribeHostPoolRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + +std::string DescribeHostPoolRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeHostPoolRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string DescribeHostPoolRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeHostPoolRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/DescribeHostPoolResult.cc b/emr/src/model/DescribeHostPoolResult.cc new file mode 100644 index 000000000..d7afac040 --- /dev/null +++ b/emr/src/model/DescribeHostPoolResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeHostPoolResult::DescribeHostPoolResult() : + ServiceResult() +{} + +DescribeHostPoolResult::DescribeHostPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHostPoolResult::~DescribeHostPoolResult() +{} + +void DescribeHostPoolResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["HostCount"].isNull()) + hostCount_ = std::stoi(value["HostCount"].asString()); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); + +} + +std::string DescribeHostPoolResult::getStatus()const +{ + return status_; +} + +std::string DescribeHostPoolResult::getType()const +{ + return type_; +} + +long DescribeHostPoolResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string DescribeHostPoolResult::getDescription()const +{ + return description_; +} + +int DescribeHostPoolResult::getHostCount()const +{ + return hostCount_; +} + +std::string DescribeHostPoolResult::getBizId()const +{ + return bizId_; +} + +std::string DescribeHostPoolResult::getName()const +{ + return name_; +} + diff --git a/emr/src/model/DescribeHpHostRequest.cc b/emr/src/model/DescribeHpHostRequest.cc new file mode 100644 index 000000000..6a4e5229e --- /dev/null +++ b/emr/src/model/DescribeHpHostRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::DescribeHpHostRequest; + +DescribeHpHostRequest::DescribeHpHostRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeHpHost") +{} + +DescribeHpHostRequest::~DescribeHpHostRequest() +{} + +std::string DescribeHpHostRequest::getHpHostBizId()const +{ + return hpHostBizId_; +} + +void DescribeHpHostRequest::setHpHostBizId(const std::string& hpHostBizId) +{ + hpHostBizId_ = hpHostBizId; + setCoreParameter("HpHostBizId", hpHostBizId); +} + +long DescribeHpHostRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHpHostRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeHpHostRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeHpHostRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeHpHostRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeHpHostRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/DescribeHpHostResult.cc b/emr/src/model/DescribeHpHostResult.cc new file mode 100644 index 000000000..c913ad993 --- /dev/null +++ b/emr/src/model/DescribeHpHostResult.cc @@ -0,0 +1,157 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeHpHostResult::DescribeHpHostResult() : + ServiceResult() +{} + +DescribeHpHostResult::DescribeHpHostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHpHostResult::~DescribeHpHostResult() +{} + +void DescribeHpHostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDiskList = value["DiskList"]["Disk"]; + for (auto value : allDiskList) + { + Disk diskListObject; + if(!value["DiskDevice"].isNull()) + diskListObject.diskDevice = value["DiskDevice"].asString(); + if(!value["DiskSize"].isNull()) + diskListObject.diskSize = std::stoi(value["DiskSize"].asString()); + if(!value["MountPath"].isNull()) + diskListObject.mountPath = value["MountPath"].asString(); + diskList_.push_back(diskListObject); + } + auto allInstalledComponents = value["InstalledComponents"]["InstalledComponent"]; + for (const auto &item : allInstalledComponents) + installedComponents_.push_back(item.asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + if(!value["HostName"].isNull()) + hostName_ = value["HostName"].asString(); + if(!value["InnerIp"].isNull()) + innerIp_ = value["InnerIp"].asString(); + if(!value["Role"].isNull()) + role_ = value["Role"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CpuCore"].isNull()) + cpuCore_ = std::stoi(value["CpuCore"].asString()); + if(!value["MemSize"].isNull()) + memSize_ = std::stoi(value["MemSize"].asString()); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["VswitchId"].isNull()) + vswitchId_ = value["VswitchId"].asString(); + if(!value["SecurityGroupId"].isNull()) + securityGroupId_ = value["SecurityGroupId"].asString(); + if(!value["ExternalIp"].isNull()) + externalIp_ = value["ExternalIp"].asString(); + if(!value["ExternalKey"].isNull()) + externalKey_ = value["ExternalKey"].asString(); + +} + +std::string DescribeHpHostResult::getStatus()const +{ + return status_; +} + +std::string DescribeHpHostResult::getInnerIp()const +{ + return innerIp_; +} + +std::string DescribeHpHostResult::getSecurityGroupId()const +{ + return securityGroupId_; +} + +std::vector DescribeHpHostResult::getInstalledComponents()const +{ + return installedComponents_; +} + +std::string DescribeHpHostResult::getVswitchId()const +{ + return vswitchId_; +} + +std::string DescribeHpHostResult::getRole()const +{ + return role_; +} + +std::string DescribeHpHostResult::getExternalIp()const +{ + return externalIp_; +} + +std::string DescribeHpHostResult::getVpcId()const +{ + return vpcId_; +} + +int DescribeHpHostResult::getCpuCore()const +{ + return cpuCore_; +} + +int DescribeHpHostResult::getMemSize()const +{ + return memSize_; +} + +std::vector DescribeHpHostResult::getDiskList()const +{ + return diskList_; +} + +std::string DescribeHpHostResult::getExternalKey()const +{ + return externalKey_; +} + +std::string DescribeHpHostResult::getBizId()const +{ + return bizId_; +} + +std::string DescribeHpHostResult::getHostName()const +{ + return hostName_; +} + diff --git a/emr/src/model/DescribeJobRequest.cc b/emr/src/model/DescribeJobRequest.cc index 442849c53..0afe3fdbb 100644 --- a/emr/src/model/DescribeJobRequest.cc +++ b/emr/src/model/DescribeJobRequest.cc @@ -33,7 +33,7 @@ long DescribeJobRequest::getResourceOwnerId()const void DescribeJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeJobRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeJobRequest::getRegionId()const void DescribeJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeJobRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeJobRequest::getId()const void DescribeJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeJobRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeJobRequest::getAccessKeyId()const void DescribeJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeJobResult.cc b/emr/src/model/DescribeJobResult.cc index 838ed90e4..3ab2dfcb9 100644 --- a/emr/src/model/DescribeJobResult.cc +++ b/emr/src/model/DescribeJobResult.cc @@ -35,10 +35,13 @@ DescribeJobResult::~DescribeJobResult() void DescribeJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/DescribeKafkaBrokerRequest.cc b/emr/src/model/DescribeKafkaBrokerRequest.cc new file mode 100644 index 000000000..062d67105 --- /dev/null +++ b/emr/src/model/DescribeKafkaBrokerRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::DescribeKafkaBrokerRequest; + +DescribeKafkaBrokerRequest::DescribeKafkaBrokerRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeKafkaBroker") +{} + +DescribeKafkaBrokerRequest::~DescribeKafkaBrokerRequest() +{} + +long DescribeKafkaBrokerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeKafkaBrokerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeKafkaBrokerRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeKafkaBrokerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeKafkaBrokerRequest::getHostId()const +{ + return hostId_; +} + +void DescribeKafkaBrokerRequest::setHostId(const std::string& hostId) +{ + hostId_ = hostId; + setCoreParameter("HostId", hostId); +} + +std::string DescribeKafkaBrokerRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeKafkaBrokerRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string DescribeKafkaBrokerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeKafkaBrokerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/DescribeKafkaBrokerResult.cc b/emr/src/model/DescribeKafkaBrokerResult.cc new file mode 100644 index 000000000..25790f597 --- /dev/null +++ b/emr/src/model/DescribeKafkaBrokerResult.cc @@ -0,0 +1,165 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeKafkaBrokerResult::DescribeKafkaBrokerResult() : + ServiceResult() +{} + +DescribeKafkaBrokerResult::DescribeKafkaBrokerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeKafkaBrokerResult::~DescribeKafkaBrokerResult() +{} + +void DescribeKafkaBrokerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTopicList = value["TopicList"]["Topic"]; + for (auto value : allTopicList) + { + Topic topicListObject; + if(!value["TopicId"].isNull()) + topicListObject.topicId = value["TopicId"].asString(); + if(!value["TopicName"].isNull()) + topicListObject.topicName = value["TopicName"].asString(); + if(!value["NumPartitions"].isNull()) + topicListObject.numPartitions = std::stoi(value["NumPartitions"].asString()); + if(!value["ReplicationFactor"].isNull()) + topicListObject.replicationFactor = std::stoi(value["ReplicationFactor"].asString()); + if(!value["BrokerNumPartitions"].isNull()) + topicListObject.brokerNumPartitions = std::stoi(value["BrokerNumPartitions"].asString()); + if(!value["LeaderCount"].isNull()) + topicListObject.leaderCount = std::stoi(value["LeaderCount"].asString()); + auto allPartitionList = value["partitionList"]["Partition"]; + for (auto value : allPartitionList) + topicListObject.partitionList.push_back(value.asString()); + topicList_.push_back(topicListObject); + } + if(!value["BrokerId"].isNull()) + brokerId_ = std::stoi(value["BrokerId"].asString()); + if(!value["HostId"].isNull()) + hostId_ = value["HostId"].asString(); + if(!value["HostName"].isNull()) + hostName_ = value["HostName"].asString(); + if(!value["HostIp"].isNull()) + hostIp_ = value["HostIp"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["PartitionCount"].isNull()) + partitionCount_ = std::stoi(value["PartitionCount"].asString()); + if(!value["LeaderCount"].isNull()) + leaderCount_ = std::stoi(value["LeaderCount"].asString()); + if(!value["TopicCount"].isNull()) + topicCount_ = std::stoi(value["TopicCount"].asString()); + if(!value["DiskUnbalanceRate"].isNull()) + diskUnbalanceRate_ = value["DiskUnbalanceRate"].asString(); + if(!value["DiskUsageMean"].isNull()) + diskUsageMean_ = value["DiskUsageMean"].asString(); + if(!value["DiskUsageMax"].isNull()) + diskUsageMax_ = value["DiskUsageMax"].asString(); + if(!value["DiskCapacity"].isNull()) + diskCapacity_ = std::stoi(value["DiskCapacity"].asString()); + if(!value["Traffic"].isNull()) + traffic_ = value["Traffic"].asString(); + +} + +std::string DescribeKafkaBrokerResult::getHostIp()const +{ + return hostIp_; +} + +std::string DescribeKafkaBrokerResult::getStatus()const +{ + return status_; +} + +int DescribeKafkaBrokerResult::getLeaderCount()const +{ + return leaderCount_; +} + +int DescribeKafkaBrokerResult::getBrokerId()const +{ + return brokerId_; +} + +std::string DescribeKafkaBrokerResult::getDiskUsageMean()const +{ + return diskUsageMean_; +} + +std::string DescribeKafkaBrokerResult::getDiskUsageMax()const +{ + return diskUsageMax_; +} + +std::string DescribeKafkaBrokerResult::getTraffic()const +{ + return traffic_; +} + +int DescribeKafkaBrokerResult::getTopicCount()const +{ + return topicCount_; +} + +std::string DescribeKafkaBrokerResult::getHostId()const +{ + return hostId_; +} + +int DescribeKafkaBrokerResult::getDiskCapacity()const +{ + return diskCapacity_; +} + +std::string DescribeKafkaBrokerResult::getDiskUnbalanceRate()const +{ + return diskUnbalanceRate_; +} + +std::vector DescribeKafkaBrokerResult::getTopicList()const +{ + return topicList_; +} + +std::string DescribeKafkaBrokerResult::getHostName()const +{ + return hostName_; +} + +int DescribeKafkaBrokerResult::getPartitionCount()const +{ + return partitionCount_; +} + diff --git a/emr/src/model/DescribeKafkaReassignRequest.cc b/emr/src/model/DescribeKafkaReassignRequest.cc new file mode 100644 index 000000000..23385c9bc --- /dev/null +++ b/emr/src/model/DescribeKafkaReassignRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::DescribeKafkaReassignRequest; + +DescribeKafkaReassignRequest::DescribeKafkaReassignRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeKafkaReassign") +{} + +DescribeKafkaReassignRequest::~DescribeKafkaReassignRequest() +{} + +long DescribeKafkaReassignRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeKafkaReassignRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeKafkaReassignRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeKafkaReassignRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeKafkaReassignRequest::getReassignId()const +{ + return reassignId_; +} + +void DescribeKafkaReassignRequest::setReassignId(const std::string& reassignId) +{ + reassignId_ = reassignId; + setCoreParameter("ReassignId", reassignId); +} + +std::string DescribeKafkaReassignRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeKafkaReassignRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/DescribeKafkaReassignResult.cc b/emr/src/model/DescribeKafkaReassignResult.cc new file mode 100644 index 000000000..28cdee838 --- /dev/null +++ b/emr/src/model/DescribeKafkaReassignResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeKafkaReassignResult::DescribeKafkaReassignResult() : + ServiceResult() +{} + +DescribeKafkaReassignResult::DescribeKafkaReassignResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeKafkaReassignResult::~DescribeKafkaReassignResult() +{} + +void DescribeKafkaReassignResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["AssignProcess"].isNull()) + assignProcess_ = std::stoi(value["AssignProcess"].asString()); + if(!value["StartTime"].isNull()) + startTime_ = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["TopicCount"].isNull()) + topicCount_ = std::stoi(value["TopicCount"].asString()); + if(!value["PartitionCount"].isNull()) + partitionCount_ = std::stoi(value["PartitionCount"].asString()); + if(!value["Throttle"].isNull()) + throttle_ = std::stol(value["Throttle"].asString()); + +} + +std::string DescribeKafkaReassignResult::getStatus()const +{ + return status_; +} + +long DescribeKafkaReassignResult::getEndTime()const +{ + return endTime_; +} + +long DescribeKafkaReassignResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeKafkaReassignResult::getId()const +{ + return id_; +} + +int DescribeKafkaReassignResult::getTopicCount()const +{ + return topicCount_; +} + +int DescribeKafkaReassignResult::getAssignProcess()const +{ + return assignProcess_; +} + +int DescribeKafkaReassignResult::getPartitionCount()const +{ + return partitionCount_; +} + +long DescribeKafkaReassignResult::getThrottle()const +{ + return throttle_; +} + diff --git a/emr/src/model/DescribeNoteRequest.cc b/emr/src/model/DescribeNoteRequest.cc index fa94752db..a62d863e4 100644 --- a/emr/src/model/DescribeNoteRequest.cc +++ b/emr/src/model/DescribeNoteRequest.cc @@ -33,7 +33,7 @@ long DescribeNoteRequest::getResourceOwnerId()const void DescribeNoteRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeNoteRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeNoteRequest::getRegionId()const void DescribeNoteRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeNoteRequest::getId()const @@ -55,7 +55,7 @@ std::string DescribeNoteRequest::getId()const void DescribeNoteRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeNoteRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeNoteRequest::getAccessKeyId()const void DescribeNoteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeNoteResult.cc b/emr/src/model/DescribeNoteResult.cc index d7c7e852e..9e040f2c6 100644 --- a/emr/src/model/DescribeNoteResult.cc +++ b/emr/src/model/DescribeNoteResult.cc @@ -35,10 +35,13 @@ DescribeNoteResult::~DescribeNoteResult() void DescribeNoteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/DescribeParagraphRequest.cc b/emr/src/model/DescribeParagraphRequest.cc index ad0faf01b..d358103f4 100644 --- a/emr/src/model/DescribeParagraphRequest.cc +++ b/emr/src/model/DescribeParagraphRequest.cc @@ -33,7 +33,7 @@ long DescribeParagraphRequest::getResourceOwnerId()const void DescribeParagraphRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeParagraphRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeParagraphRequest::getRegionId()const void DescribeParagraphRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeParagraphRequest::getNoteId()const @@ -55,7 +55,7 @@ std::string DescribeParagraphRequest::getNoteId()const void DescribeParagraphRequest::setNoteId(const std::string& noteId) { noteId_ = noteId; - setParameter("NoteId", noteId); + setCoreParameter("NoteId", noteId); } std::string DescribeParagraphRequest::getId()const @@ -66,7 +66,7 @@ std::string DescribeParagraphRequest::getId()const void DescribeParagraphRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeParagraphRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DescribeParagraphRequest::getAccessKeyId()const void DescribeParagraphRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeParagraphResult.cc b/emr/src/model/DescribeParagraphResult.cc index ce9eec36d..6df3a9e79 100644 --- a/emr/src/model/DescribeParagraphResult.cc +++ b/emr/src/model/DescribeParagraphResult.cc @@ -35,10 +35,13 @@ DescribeParagraphResult::~DescribeParagraphResult() void DescribeParagraphResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Paragraph"].isNull()) paragraph_ = value["Paragraph"].asString(); diff --git a/emr/src/model/DescribeScalingActivityRequest.cc b/emr/src/model/DescribeScalingActivityRequest.cc index f7c357bd8..f6527a9c4 100644 --- a/emr/src/model/DescribeScalingActivityRequest.cc +++ b/emr/src/model/DescribeScalingActivityRequest.cc @@ -33,7 +33,7 @@ long DescribeScalingActivityRequest::getResourceOwnerId()const void DescribeScalingActivityRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeScalingActivityRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeScalingActivityRequest::getRegionId()const void DescribeScalingActivityRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeScalingActivityRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string DescribeScalingActivityRequest::getHostGroupId()const void DescribeScalingActivityRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string DescribeScalingActivityRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DescribeScalingActivityRequest::getClusterId()const void DescribeScalingActivityRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeScalingActivityRequest::getScalingActivityId()const @@ -77,7 +77,7 @@ std::string DescribeScalingActivityRequest::getScalingActivityId()const void DescribeScalingActivityRequest::setScalingActivityId(const std::string& scalingActivityId) { scalingActivityId_ = scalingActivityId; - setParameter("ScalingActivityId", scalingActivityId); + setCoreParameter("ScalingActivityId", scalingActivityId); } std::string DescribeScalingActivityRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DescribeScalingActivityRequest::getAccessKeyId()const void DescribeScalingActivityRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeScalingActivityResult.cc b/emr/src/model/DescribeScalingActivityResult.cc index e106e4c7b..686df6434 100644 --- a/emr/src/model/DescribeScalingActivityResult.cc +++ b/emr/src/model/DescribeScalingActivityResult.cc @@ -35,10 +35,13 @@ DescribeScalingActivityResult::~DescribeScalingActivityResult() void DescribeScalingActivityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BizId"].isNull()) bizId_ = value["BizId"].asString(); diff --git a/emr/src/model/DescribeScalingRuleRequest.cc b/emr/src/model/DescribeScalingRuleRequest.cc index 6d595411d..9d0a486f3 100644 --- a/emr/src/model/DescribeScalingRuleRequest.cc +++ b/emr/src/model/DescribeScalingRuleRequest.cc @@ -33,7 +33,7 @@ long DescribeScalingRuleRequest::getResourceOwnerId()const void DescribeScalingRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeScalingRuleRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeScalingRuleRequest::getRegionId()const void DescribeScalingRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeScalingRuleRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string DescribeScalingRuleRequest::getHostGroupId()const void DescribeScalingRuleRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string DescribeScalingRuleRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DescribeScalingRuleRequest::getClusterId()const void DescribeScalingRuleRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeScalingRuleRequest::getScalingRuleId()const @@ -77,7 +77,7 @@ std::string DescribeScalingRuleRequest::getScalingRuleId()const void DescribeScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId) { scalingRuleId_ = scalingRuleId; - setParameter("ScalingRuleId", scalingRuleId); + setCoreParameter("ScalingRuleId", scalingRuleId); } std::string DescribeScalingRuleRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DescribeScalingRuleRequest::getAccessKeyId()const void DescribeScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeScalingRuleResult.cc b/emr/src/model/DescribeScalingRuleResult.cc index 5990e9d58..b9b72241d 100644 --- a/emr/src/model/DescribeScalingRuleResult.cc +++ b/emr/src/model/DescribeScalingRuleResult.cc @@ -35,10 +35,13 @@ DescribeScalingRuleResult::~DescribeScalingRuleResult() void DescribeScalingRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto schedulerTriggerNode = value["SchedulerTrigger"]; if(!schedulerTriggerNode["LaunchTime"].isNull()) diff --git a/emr/src/model/DescribeScalingTaskGroupRequest.cc b/emr/src/model/DescribeScalingTaskGroupRequest.cc index b65e0b5a5..27f459152 100644 --- a/emr/src/model/DescribeScalingTaskGroupRequest.cc +++ b/emr/src/model/DescribeScalingTaskGroupRequest.cc @@ -33,7 +33,7 @@ long DescribeScalingTaskGroupRequest::getResourceOwnerId()const void DescribeScalingTaskGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeScalingTaskGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeScalingTaskGroupRequest::getRegionId()const void DescribeScalingTaskGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeScalingTaskGroupRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string DescribeScalingTaskGroupRequest::getHostGroupId()const void DescribeScalingTaskGroupRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string DescribeScalingTaskGroupRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string DescribeScalingTaskGroupRequest::getClusterId()const void DescribeScalingTaskGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeScalingTaskGroupRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DescribeScalingTaskGroupRequest::getAccessKeyId()const void DescribeScalingTaskGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeScalingTaskGroupResult.cc b/emr/src/model/DescribeScalingTaskGroupResult.cc index 29c8372c5..77c252980 100644 --- a/emr/src/model/DescribeScalingTaskGroupResult.cc +++ b/emr/src/model/DescribeScalingTaskGroupResult.cc @@ -35,10 +35,13 @@ DescribeScalingTaskGroupResult::~DescribeScalingTaskGroupResult() void DescribeScalingTaskGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto scalingConfigNode = value["ScalingConfig"]; if(!scalingConfigNode["PayType"].isNull()) diff --git a/emr/src/model/DescribeSecurityGroupAttributeRequest.cc b/emr/src/model/DescribeSecurityGroupAttributeRequest.cc index 87f5ea505..3d6885b87 100644 --- a/emr/src/model/DescribeSecurityGroupAttributeRequest.cc +++ b/emr/src/model/DescribeSecurityGroupAttributeRequest.cc @@ -33,7 +33,7 @@ long DescribeSecurityGroupAttributeRequest::getResourceOwnerId()const void DescribeSecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeSecurityGroupAttributeRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeSecurityGroupAttributeRequest::getRegionId()const void DescribeSecurityGroupAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeSecurityGroupAttributeRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string DescribeSecurityGroupAttributeRequest::getClusterId()const void DescribeSecurityGroupAttributeRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string DescribeSecurityGroupAttributeRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeSecurityGroupAttributeRequest::getAccessKeyId()const void DescribeSecurityGroupAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeSecurityGroupAttributeResult.cc b/emr/src/model/DescribeSecurityGroupAttributeResult.cc index 0c59f1b7b..ee13bf619 100644 --- a/emr/src/model/DescribeSecurityGroupAttributeResult.cc +++ b/emr/src/model/DescribeSecurityGroupAttributeResult.cc @@ -35,10 +35,13 @@ DescribeSecurityGroupAttributeResult::~DescribeSecurityGroupAttributeResult() void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAvailableGroupList = value["AvailableGroupList"]["SecurityGroup"]; for (auto value : allAvailableGroupList) diff --git a/emr/src/model/DescribeUserGroupRequest.cc b/emr/src/model/DescribeUserGroupRequest.cc new file mode 100644 index 000000000..6642533db --- /dev/null +++ b/emr/src/model/DescribeUserGroupRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DescribeUserGroupRequest; + +DescribeUserGroupRequest::DescribeUserGroupRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeUserGroup") +{} + +DescribeUserGroupRequest::~DescribeUserGroupRequest() +{} + +std::string DescribeUserGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeUserGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DescribeUserGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeUserGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeUserGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeUserGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeUserGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeUserGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeUserGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DescribeUserGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeUserGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool DescribeUserGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeUserGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeUserGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeUserGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DescribeUserGroupRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeUserGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeUserGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeUserGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DescribeUserGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeUserGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeUserGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeUserGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeUserGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUserGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeUserGroupRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeUserGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DescribeUserGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeUserGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +long DescribeUserGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeUserGroupRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + diff --git a/emr/src/model/DescribeUserGroupResult.cc b/emr/src/model/DescribeUserGroupResult.cc new file mode 100644 index 000000000..6efb95806 --- /dev/null +++ b/emr/src/model/DescribeUserGroupResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeUserGroupResult::DescribeUserGroupResult() : + ServiceResult() +{} + +DescribeUserGroupResult::DescribeUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserGroupResult::~DescribeUserGroupResult() +{} + +void DescribeUserGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRoleDTOList = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList) + { + RoleDTO roleDTOListObject; + if(!value["Id"].isNull()) + roleDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOListObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOListObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOListObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOListObject.description = value["Description"].asString(); + roleDTOList_.push_back(roleDTOListObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = value["GmtCreate"].asString(); + +} + +std::string DescribeUserGroupResult::getType()const +{ + return type_; +} + +std::string DescribeUserGroupResult::getGmtCreate()const +{ + return gmtCreate_; +} + +bool DescribeUserGroupResult::getPaging()const +{ + return paging_; +} + +long DescribeUserGroupResult::getId()const +{ + return id_; +} + +std::vector DescribeUserGroupResult::getRoleDTOList()const +{ + return roleDTOList_; +} + +std::string DescribeUserGroupResult::getName()const +{ + return name_; +} + diff --git a/emr/src/model/DescribeUserRequest.cc b/emr/src/model/DescribeUserRequest.cc new file mode 100644 index 000000000..ce1a1e3aa --- /dev/null +++ b/emr/src/model/DescribeUserRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DescribeUserRequest; + +DescribeUserRequest::DescribeUserRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeUser") +{} + +DescribeUserRequest::~DescribeUserRequest() +{} + +std::string DescribeUserRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeUserRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DescribeUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeUserRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeUserRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeUserRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeUserRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeUserRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeUserRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DescribeUserRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeUserRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool DescribeUserRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeUserRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeUserRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeUserRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DescribeUserRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeUserRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DescribeUserRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeUserRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeUserRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeUserRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeUserRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeUserRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeUserRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DescribeUserRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeUserRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeUserRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void DescribeUserRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + diff --git a/emr/src/model/DescribeUserResult.cc b/emr/src/model/DescribeUserResult.cc new file mode 100644 index 000000000..17f5f79de --- /dev/null +++ b/emr/src/model/DescribeUserResult.cc @@ -0,0 +1,188 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeUserResult::DescribeUserResult() : + ServiceResult() +{} + +DescribeUserResult::DescribeUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserResult::~DescribeUserResult() +{} + +void DescribeUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRoleDTOList = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList) + { + RoleDTO roleDTOListObject; + if(!value["Id"].isNull()) + roleDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOListObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOListObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOListObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOListObject.description = value["Description"].asString(); + roleDTOList_.push_back(roleDTOListObject); + } + auto allGroupDTOList = value["GroupDTOList"]["GroupDTO"]; + for (auto value : allGroupDTOList) + { + GroupDTO groupDTOListObject; + if(!value["Id"].isNull()) + groupDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Type"].isNull()) + groupDTOListObject.type = value["Type"].asString(); + if(!value["Name"].isNull()) + groupDTOListObject.name = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + groupDTOListObject.gmtCreate = value["GmtCreate"].asString(); + auto allRoleDTOList1 = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList1) + { + GroupDTO::RoleDTO2 roleDTOList1Object; + if(!value["Id"].isNull()) + roleDTOList1Object.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOList1Object.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOList1Object.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOList1Object.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOList1Object.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOList1Object.description = value["Description"].asString(); + groupDTOListObject.roleDTOList1.push_back(roleDTOList1Object); + } + groupDTOList_.push_back(groupDTOListObject); + } + auto allAccountDTOList = value["AccountDTOList"]["AccountDTO"]; + for (auto value : allAccountDTOList) + { + AccountDTO accountDTOListObject; + if(!value["AliyunUserId"].isNull()) + accountDTOListObject.aliyunUserId = value["AliyunUserId"].asString(); + if(!value["AccountType"].isNull()) + accountDTOListObject.accountType = value["AccountType"].asString(); + if(!value["AuthType"].isNull()) + accountDTOListObject.authType = value["AuthType"].asString(); + accountDTOList_.push_back(accountDTOListObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["AliyunUserId"].isNull()) + aliyunUserId_ = value["AliyunUserId"].asString(); + if(!value["UserName"].isNull()) + userName_ = value["UserName"].asString(); + if(!value["UserType"].isNull()) + userType_ = value["UserType"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["IsSuperAdmin"].isNull()) + isSuperAdmin_ = value["IsSuperAdmin"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + gmtModified_ = value["GmtModified"].asString(); + +} + +std::string DescribeUserResult::getStatus()const +{ + return status_; +} + +std::string DescribeUserResult::getIsSuperAdmin()const +{ + return isSuperAdmin_; +} + +std::string DescribeUserResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string DescribeUserResult::getUserName()const +{ + return userName_; +} + +std::string DescribeUserResult::getDescription()const +{ + return description_; +} + +std::vector DescribeUserResult::getGroupDTOList()const +{ + return groupDTOList_; +} + +std::vector DescribeUserResult::getAccountDTOList()const +{ + return accountDTOList_; +} + +bool DescribeUserResult::getPaging()const +{ + return paging_; +} + +std::string DescribeUserResult::getGmtModified()const +{ + return gmtModified_; +} + +std::vector DescribeUserResult::getRoleDTOList()const +{ + return roleDTOList_; +} + +std::string DescribeUserResult::getUserType()const +{ + return userType_; +} + +std::string DescribeUserResult::getAliyunUserId()const +{ + return aliyunUserId_; +} + diff --git a/emr/src/model/DescribeUserStatisticsRequest.cc b/emr/src/model/DescribeUserStatisticsRequest.cc index d8542eafe..2e71fea84 100644 --- a/emr/src/model/DescribeUserStatisticsRequest.cc +++ b/emr/src/model/DescribeUserStatisticsRequest.cc @@ -33,7 +33,7 @@ long DescribeUserStatisticsRequest::getResourceOwnerId()const void DescribeUserStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeUserStatisticsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeUserStatisticsRequest::getRegionId()const void DescribeUserStatisticsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeUserStatisticsRequest::getUserId()const @@ -55,7 +55,7 @@ std::string DescribeUserStatisticsRequest::getUserId()const void DescribeUserStatisticsRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string DescribeUserStatisticsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeUserStatisticsRequest::getAccessKeyId()const void DescribeUserStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DescribeUserStatisticsResult.cc b/emr/src/model/DescribeUserStatisticsResult.cc index cb854e4e8..98fca7b0c 100644 --- a/emr/src/model/DescribeUserStatisticsResult.cc +++ b/emr/src/model/DescribeUserStatisticsResult.cc @@ -35,10 +35,13 @@ DescribeUserStatisticsResult::~DescribeUserStatisticsResult() void DescribeUserStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/emr/src/model/DescribeWorkspaceRepoSettingRequest.cc b/emr/src/model/DescribeWorkspaceRepoSettingRequest.cc new file mode 100644 index 000000000..de958fe6d --- /dev/null +++ b/emr/src/model/DescribeWorkspaceRepoSettingRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DescribeWorkspaceRepoSettingRequest; + +DescribeWorkspaceRepoSettingRequest::DescribeWorkspaceRepoSettingRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeWorkspaceRepoSetting") +{} + +DescribeWorkspaceRepoSettingRequest::~DescribeWorkspaceRepoSettingRequest() +{} + +std::string DescribeWorkspaceRepoSettingRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeWorkspaceRepoSettingRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DescribeWorkspaceRepoSettingRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeWorkspaceRepoSettingRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeWorkspaceRepoSettingRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeWorkspaceRepoSettingRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeWorkspaceRepoSettingRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeWorkspaceRepoSettingRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeWorkspaceRepoSettingRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeWorkspaceRepoSettingRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DescribeWorkspaceRepoSettingRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeWorkspaceRepoSettingRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool DescribeWorkspaceRepoSettingRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeWorkspaceRepoSettingRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeWorkspaceRepoSettingRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeWorkspaceRepoSettingRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DescribeWorkspaceRepoSettingRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeWorkspaceRepoSettingRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeWorkspaceRepoSettingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeWorkspaceRepoSettingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DescribeWorkspaceRepoSettingRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeWorkspaceRepoSettingRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeWorkspaceRepoSettingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeWorkspaceRepoSettingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeWorkspaceRepoSettingRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeWorkspaceRepoSettingRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeWorkspaceRepoSettingRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeWorkspaceRepoSettingRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DescribeWorkspaceRepoSettingRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeWorkspaceRepoSettingRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeWorkspaceRepoSettingRequest::getWorkspaceId()const +{ + return workspaceId_; +} + +void DescribeWorkspaceRepoSettingRequest::setWorkspaceId(const std::string& workspaceId) +{ + workspaceId_ = workspaceId; + setCoreParameter("WorkspaceId", workspaceId); +} + diff --git a/emr/src/model/DescribeWorkspaceRepoSettingResult.cc b/emr/src/model/DescribeWorkspaceRepoSettingResult.cc new file mode 100644 index 000000000..651b847e5 --- /dev/null +++ b/emr/src/model/DescribeWorkspaceRepoSettingResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeWorkspaceRepoSettingResult::DescribeWorkspaceRepoSettingResult() : + ServiceResult() +{} + +DescribeWorkspaceRepoSettingResult::DescribeWorkspaceRepoSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWorkspaceRepoSettingResult::~DescribeWorkspaceRepoSettingResult() +{} + +void DescribeWorkspaceRepoSettingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto repoMavenNode = value["RepoMaven"]; + if(!repoMavenNode["GroupId"].isNull()) + repoMaven_.groupId = repoMavenNode["GroupId"].asString(); + if(!repoMavenNode["ArtifactId"].isNull()) + repoMaven_.artifactId = repoMavenNode["ArtifactId"].asString(); + if(!repoMavenNode["Version"].isNull()) + repoMaven_.version = repoMavenNode["Version"].asString(); + auto repoPip Node = value["RepoPip "]; + if(!repoPip Node["PackageName"].isNull()) + repoPip _.packageName = repoPip Node["PackageName"].asString(); + if(!repoPip Node["Version"].isNull()) + repoPip _.version = repoPip Node["Version"].asString(); + +} + +DescribeWorkspaceRepoSettingResult::RepoMaven DescribeWorkspaceRepoSettingResult::getRepoMaven()const +{ + return repoMaven_; +} + +DescribeWorkspaceRepoSettingResult::RepoPip DescribeWorkspaceRepoSettingResult::getRepoPip ()const +{ + return repoPip _; +} + diff --git a/emr/src/model/DescribeWorkspaceResourceSettingRequest.cc b/emr/src/model/DescribeWorkspaceResourceSettingRequest.cc new file mode 100644 index 000000000..c43b4798e --- /dev/null +++ b/emr/src/model/DescribeWorkspaceResourceSettingRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::DescribeWorkspaceResourceSettingRequest; + +DescribeWorkspaceResourceSettingRequest::DescribeWorkspaceResourceSettingRequest() : + RpcServiceRequest("emr", "2016-04-08", "DescribeWorkspaceResourceSetting") +{} + +DescribeWorkspaceResourceSettingRequest::~DescribeWorkspaceResourceSettingRequest() +{} + +std::string DescribeWorkspaceResourceSettingRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeWorkspaceResourceSettingRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DescribeWorkspaceResourceSettingRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeWorkspaceResourceSettingRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeWorkspaceResourceSettingRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeWorkspaceResourceSettingRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeWorkspaceResourceSettingRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeWorkspaceResourceSettingRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeWorkspaceResourceSettingRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeWorkspaceResourceSettingRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string DescribeWorkspaceResourceSettingRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeWorkspaceResourceSettingRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool DescribeWorkspaceResourceSettingRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeWorkspaceResourceSettingRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeWorkspaceResourceSettingRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeWorkspaceResourceSettingRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string DescribeWorkspaceResourceSettingRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeWorkspaceResourceSettingRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeWorkspaceResourceSettingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeWorkspaceResourceSettingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DescribeWorkspaceResourceSettingRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeWorkspaceResourceSettingRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeWorkspaceResourceSettingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeWorkspaceResourceSettingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeWorkspaceResourceSettingRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeWorkspaceResourceSettingRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeWorkspaceResourceSettingRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeWorkspaceResourceSettingRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DescribeWorkspaceResourceSettingRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeWorkspaceResourceSettingRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeWorkspaceResourceSettingRequest::getWorkspaceId()const +{ + return workspaceId_; +} + +void DescribeWorkspaceResourceSettingRequest::setWorkspaceId(const std::string& workspaceId) +{ + workspaceId_ = workspaceId; + setCoreParameter("WorkspaceId", workspaceId); +} + diff --git a/emr/src/model/DescribeWorkspaceResourceSettingResult.cc b/emr/src/model/DescribeWorkspaceResourceSettingResult.cc new file mode 100644 index 000000000..9ebd97ea5 --- /dev/null +++ b/emr/src/model/DescribeWorkspaceResourceSettingResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +DescribeWorkspaceResourceSettingResult::DescribeWorkspaceResourceSettingResult() : + ServiceResult() +{} + +DescribeWorkspaceResourceSettingResult::DescribeWorkspaceResourceSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWorkspaceResourceSettingResult::~DescribeWorkspaceResourceSettingResult() +{} + +void DescribeWorkspaceResourceSettingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto ossNode = value["Oss"]; + if(!ossNode["DefaultOssPath"].isNull()) + oss_.defaultOssPath = ossNode["DefaultOssPath"].asString(); + +} + +DescribeWorkspaceResourceSettingResult::Oss DescribeWorkspaceResourceSettingResult::getOss()const +{ + return oss_; +} + diff --git a/emr/src/model/DetachClusterForNoteRequest.cc b/emr/src/model/DetachClusterForNoteRequest.cc index c9f94d9bb..48f01871b 100644 --- a/emr/src/model/DetachClusterForNoteRequest.cc +++ b/emr/src/model/DetachClusterForNoteRequest.cc @@ -33,7 +33,7 @@ long DetachClusterForNoteRequest::getResourceOwnerId()const void DetachClusterForNoteRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DetachClusterForNoteRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DetachClusterForNoteRequest::getRegionId()const void DetachClusterForNoteRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DetachClusterForNoteRequest::getId()const @@ -55,7 +55,7 @@ std::string DetachClusterForNoteRequest::getId()const void DetachClusterForNoteRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DetachClusterForNoteRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DetachClusterForNoteRequest::getAccessKeyId()const void DetachClusterForNoteRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/DetachClusterForNoteResult.cc b/emr/src/model/DetachClusterForNoteResult.cc index 50238d2e9..a0fd96e42 100644 --- a/emr/src/model/DetachClusterForNoteResult.cc +++ b/emr/src/model/DetachClusterForNoteResult.cc @@ -35,10 +35,13 @@ DetachClusterForNoteResult::~DetachClusterForNoteResult() void DetachClusterForNoteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/GetAuditLogsRequest.cc b/emr/src/model/GetAuditLogsRequest.cc new file mode 100644 index 000000000..c2d2eaab5 --- /dev/null +++ b/emr/src/model/GetAuditLogsRequest.cc @@ -0,0 +1,291 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::GetAuditLogsRequest; + +GetAuditLogsRequest::GetAuditLogsRequest() : + RpcServiceRequest("emr", "2016-04-08", "GetAuditLogs") +{} + +GetAuditLogsRequest::~GetAuditLogsRequest() +{} + +long GetAuditLogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetAuditLogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int GetAuditLogsRequest::getPageCount()const +{ + return pageCount_; +} + +void GetAuditLogsRequest::setPageCount(int pageCount) +{ + pageCount_ = pageCount; + setCoreParameter("PageCount", std::to_string(pageCount)); +} + +std::string GetAuditLogsRequest::getOrderMode()const +{ + return orderMode_; +} + +void GetAuditLogsRequest::setOrderMode(const std::string& orderMode) +{ + orderMode_ = orderMode; + setCoreParameter("OrderMode", orderMode); +} + +long GetAuditLogsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetAuditLogsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetAuditLogsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetAuditLogsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string GetAuditLogsRequest::getEntityId()const +{ + return entityId_; +} + +void GetAuditLogsRequest::setEntityId(const std::string& entityId) +{ + entityId_ = entityId; + setCoreParameter("EntityId", entityId); +} + +std::string GetAuditLogsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetAuditLogsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string GetAuditLogsRequest::getCallerType()const +{ + return callerType_; +} + +void GetAuditLogsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int GetAuditLogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetAuditLogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetAuditLogsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetAuditLogsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string GetAuditLogsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetAuditLogsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string GetAuditLogsRequest::getRegionId()const +{ + return regionId_; +} + +void GetAuditLogsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int GetAuditLogsRequest::getLimit()const +{ + return limit_; +} + +void GetAuditLogsRequest::setLimit(int limit) +{ + limit_ = limit; + setCoreParameter("Limit", std::to_string(limit)); +} + +int GetAuditLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void GetAuditLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int GetAuditLogsRequest::getCurrentSize()const +{ + return currentSize_; +} + +void GetAuditLogsRequest::setCurrentSize(int currentSize) +{ + currentSize_ = currentSize; + setCoreParameter("CurrentSize", std::to_string(currentSize)); +} + +long GetAuditLogsRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetAuditLogsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetAuditLogsRequest::getOrderField()const +{ + return orderField_; +} + +void GetAuditLogsRequest::setOrderField(const std::string& orderField) +{ + orderField_ = orderField; + setCoreParameter("OrderField", orderField); +} + +std::string GetAuditLogsRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetAuditLogsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string GetAuditLogsRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetAuditLogsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +bool GetAuditLogsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetAuditLogsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool GetAuditLogsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetAuditLogsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool GetAuditLogsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetAuditLogsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string GetAuditLogsRequest::getRequestId()const +{ + return requestId_; +} + +void GetAuditLogsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string GetAuditLogsRequest::getOperation()const +{ + return operation_; +} + +void GetAuditLogsRequest::setOperation(const std::string& operation) +{ + operation_ = operation; + setCoreParameter("Operation", operation); +} + diff --git a/emr/src/model/GetAuditLogsResult.cc b/emr/src/model/GetAuditLogsResult.cc new file mode 100644 index 000000000..ddb2c13a1 --- /dev/null +++ b/emr/src/model/GetAuditLogsResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +GetAuditLogsResult::GetAuditLogsResult() : + ServiceResult() +{} + +GetAuditLogsResult::GetAuditLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAuditLogsResult::~GetAuditLogsResult() +{} + +void GetAuditLogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["Ts"].isNull()) + itemsObject.ts = std::stol(value["Ts"].asString()); + if(!value["UserId"].isNull()) + itemsObject.userId = value["UserId"].asString(); + if(!value["EntityId"].isNull()) + itemsObject.entityId = value["EntityId"].asString(); + if(!value["Operation"].isNull()) + itemsObject.operation = value["Operation"].asString(); + if(!value["Content"].isNull()) + itemsObject.content = value["Content"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int GetAuditLogsResult::getTotalCount()const +{ + return totalCount_; +} + +int GetAuditLogsResult::getPageSize()const +{ + return pageSize_; +} + +int GetAuditLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector GetAuditLogsResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/GetBackInfoRequest.cc b/emr/src/model/GetBackInfoRequest.cc new file mode 100644 index 000000000..42b1cafa6 --- /dev/null +++ b/emr/src/model/GetBackInfoRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::GetBackInfoRequest; + +GetBackInfoRequest::GetBackInfoRequest() : + RpcServiceRequest("emr", "2016-04-08", "GetBackInfo") +{} + +GetBackInfoRequest::~GetBackInfoRequest() +{} + diff --git a/emr/src/model/GetBackInfoResult.cc b/emr/src/model/GetBackInfoResult.cc new file mode 100644 index 000000000..147bbbb05 --- /dev/null +++ b/emr/src/model/GetBackInfoResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +GetBackInfoResult::GetBackInfoResult() : + ServiceResult() +{} + +GetBackInfoResult::GetBackInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBackInfoResult::~GetBackInfoResult() +{} + +void GetBackInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto metadataInfoNode = value["MetadataInfo"]; + if(!metadataInfoNode["MetadataType"].isNull()) + metadataInfo_.metadataType = metadataInfoNode["MetadataType"].asString(); + if(!metadataInfoNode["Properties"].isNull()) + metadataInfo_.properties = metadataInfoNode["Properties"].asString(); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + if(!value["BackupPlanId"].isNull()) + backupPlanId_ = value["BackupPlanId"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Md5"].isNull()) + md5_ = value["Md5"].asString(); + if(!value["TarFileName"].isNull()) + tarFileName_ = value["TarFileName"].asString(); + if(!value["StorePath"].isNull()) + storePath_ = value["StorePath"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GetBackInfoResult::getStatus()const +{ + return status_; +} + +GetBackInfoResult::MetadataInfo GetBackInfoResult::getMetadataInfo()const +{ + return metadataInfo_; +} + +std::string GetBackInfoResult::getTarFileName()const +{ + return tarFileName_; +} + +std::string GetBackInfoResult::getClusterId()const +{ + return clusterId_; +} + +bool GetBackInfoResult::getPaging()const +{ + return paging_; +} + +long GetBackInfoResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetBackInfoResult::getBackupPlanId()const +{ + return backupPlanId_; +} + +std::string GetBackInfoResult::getId()const +{ + return id_; +} + +std::string GetBackInfoResult::getMd5()const +{ + return md5_; +} + +std::string GetBackInfoResult::getStorePath()const +{ + return storePath_; +} + diff --git a/emr/src/model/GetBackPlanInfoRequest.cc b/emr/src/model/GetBackPlanInfoRequest.cc new file mode 100644 index 000000000..64f66e6f2 --- /dev/null +++ b/emr/src/model/GetBackPlanInfoRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::GetBackPlanInfoRequest; + +GetBackPlanInfoRequest::GetBackPlanInfoRequest() : + RpcServiceRequest("emr", "2016-04-08", "GetBackPlanInfo") +{} + +GetBackPlanInfoRequest::~GetBackPlanInfoRequest() +{} + +std::string GetBackPlanInfoRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetBackPlanInfoRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long GetBackPlanInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetBackPlanInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long GetBackPlanInfoRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetBackPlanInfoRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetBackPlanInfoRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetBackPlanInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string GetBackPlanInfoRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetBackPlanInfoRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string GetBackPlanInfoRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetBackPlanInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool GetBackPlanInfoRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetBackPlanInfoRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool GetBackPlanInfoRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetBackPlanInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string GetBackPlanInfoRequest::getCallerType()const +{ + return callerType_; +} + +void GetBackPlanInfoRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string GetBackPlanInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetBackPlanInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool GetBackPlanInfoRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetBackPlanInfoRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string GetBackPlanInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetBackPlanInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string GetBackPlanInfoRequest::getRegionId()const +{ + return regionId_; +} + +void GetBackPlanInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetBackPlanInfoRequest::getRequestId()const +{ + return requestId_; +} + +void GetBackPlanInfoRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long GetBackPlanInfoRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetBackPlanInfoRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetBackPlanInfoRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void GetBackPlanInfoRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + diff --git a/emr/src/model/GetBackPlanInfoResult.cc b/emr/src/model/GetBackPlanInfoResult.cc new file mode 100644 index 000000000..28343c4a7 --- /dev/null +++ b/emr/src/model/GetBackPlanInfoResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +GetBackPlanInfoResult::GetBackPlanInfoResult() : + ServiceResult() +{} + +GetBackPlanInfoResult::GetBackPlanInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBackPlanInfoResult::~GetBackPlanInfoResult() +{} + +void GetBackPlanInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["RootPath"].isNull()) + rootPath_ = value["RootPath"].asString(); + +} + +std::string GetBackPlanInfoResult::getRootPath()const +{ + return rootPath_; +} + +std::string GetBackPlanInfoResult::getDescription()const +{ + return description_; +} + +std::string GetBackPlanInfoResult::getClusterId()const +{ + return clusterId_; +} + +std::string GetBackPlanInfoResult::getId()const +{ + return id_; +} + +std::string GetBackPlanInfoResult::getName()const +{ + return name_; +} + diff --git a/emr/src/model/GetBackupInfoRequest.cc b/emr/src/model/GetBackupInfoRequest.cc new file mode 100644 index 000000000..056d4b38c --- /dev/null +++ b/emr/src/model/GetBackupInfoRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::GetBackupInfoRequest; + +GetBackupInfoRequest::GetBackupInfoRequest() : + RpcServiceRequest("emr", "2016-04-08", "GetBackupInfo") +{} + +GetBackupInfoRequest::~GetBackupInfoRequest() +{} + +std::string GetBackupInfoRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetBackupInfoRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long GetBackupInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetBackupInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long GetBackupInfoRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetBackupInfoRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetBackupInfoRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetBackupInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string GetBackupInfoRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetBackupInfoRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string GetBackupInfoRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetBackupInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool GetBackupInfoRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetBackupInfoRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool GetBackupInfoRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetBackupInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string GetBackupInfoRequest::getCallerType()const +{ + return callerType_; +} + +void GetBackupInfoRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string GetBackupInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetBackupInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool GetBackupInfoRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetBackupInfoRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string GetBackupInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetBackupInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string GetBackupInfoRequest::getRegionId()const +{ + return regionId_; +} + +void GetBackupInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetBackupInfoRequest::getRequestId()const +{ + return requestId_; +} + +void GetBackupInfoRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long GetBackupInfoRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetBackupInfoRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetBackupInfoRequest::getBackupId()const +{ + return backupId_; +} + +void GetBackupInfoRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", backupId); +} + diff --git a/emr/src/model/GetBackupInfoResult.cc b/emr/src/model/GetBackupInfoResult.cc new file mode 100644 index 000000000..d82552fb8 --- /dev/null +++ b/emr/src/model/GetBackupInfoResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +GetBackupInfoResult::GetBackupInfoResult() : + ServiceResult() +{} + +GetBackupInfoResult::GetBackupInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBackupInfoResult::~GetBackupInfoResult() +{} + +void GetBackupInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto metadataInfoNode = value["MetadataInfo"]; + if(!metadataInfoNode["MetadataType"].isNull()) + metadataInfo_.metadataType = metadataInfoNode["MetadataType"].asString(); + if(!metadataInfoNode["Properties"].isNull()) + metadataInfo_.properties = metadataInfoNode["Properties"].asString(); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + if(!value["BackupPlanId"].isNull()) + backupPlanId_ = value["BackupPlanId"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Md5"].isNull()) + md5_ = value["Md5"].asString(); + if(!value["TarFileName"].isNull()) + tarFileName_ = value["TarFileName"].asString(); + if(!value["StorePath"].isNull()) + storePath_ = value["StorePath"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GetBackupInfoResult::getStatus()const +{ + return status_; +} + +GetBackupInfoResult::MetadataInfo GetBackupInfoResult::getMetadataInfo()const +{ + return metadataInfo_; +} + +std::string GetBackupInfoResult::getTarFileName()const +{ + return tarFileName_; +} + +std::string GetBackupInfoResult::getClusterId()const +{ + return clusterId_; +} + +long GetBackupInfoResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetBackupInfoResult::getBackupPlanId()const +{ + return backupPlanId_; +} + +std::string GetBackupInfoResult::getId()const +{ + return id_; +} + +std::string GetBackupInfoResult::getMd5()const +{ + return md5_; +} + +std::string GetBackupInfoResult::getStorePath()const +{ + return storePath_; +} + diff --git a/emr/src/model/GetBackupRuleInfoRequest.cc b/emr/src/model/GetBackupRuleInfoRequest.cc new file mode 100644 index 000000000..8d3121a2a --- /dev/null +++ b/emr/src/model/GetBackupRuleInfoRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::GetBackupRuleInfoRequest; + +GetBackupRuleInfoRequest::GetBackupRuleInfoRequest() : + RpcServiceRequest("emr", "2016-04-08", "GetBackupRuleInfo") +{} + +GetBackupRuleInfoRequest::~GetBackupRuleInfoRequest() +{} + +std::string GetBackupRuleInfoRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetBackupRuleInfoRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long GetBackupRuleInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetBackupRuleInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long GetBackupRuleInfoRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetBackupRuleInfoRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetBackupRuleInfoRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetBackupRuleInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string GetBackupRuleInfoRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetBackupRuleInfoRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string GetBackupRuleInfoRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetBackupRuleInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool GetBackupRuleInfoRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetBackupRuleInfoRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool GetBackupRuleInfoRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetBackupRuleInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string GetBackupRuleInfoRequest::getCallerType()const +{ + return callerType_; +} + +void GetBackupRuleInfoRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string GetBackupRuleInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetBackupRuleInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool GetBackupRuleInfoRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetBackupRuleInfoRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string GetBackupRuleInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetBackupRuleInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string GetBackupRuleInfoRequest::getRegionId()const +{ + return regionId_; +} + +void GetBackupRuleInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetBackupRuleInfoRequest::getRequestId()const +{ + return requestId_; +} + +void GetBackupRuleInfoRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long GetBackupRuleInfoRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetBackupRuleInfoRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetBackupRuleInfoRequest::getBackupRuleId()const +{ + return backupRuleId_; +} + +void GetBackupRuleInfoRequest::setBackupRuleId(const std::string& backupRuleId) +{ + backupRuleId_ = backupRuleId; + setCoreParameter("BackupRuleId", backupRuleId); +} + diff --git a/emr/src/model/GetBackupRuleInfoResult.cc b/emr/src/model/GetBackupRuleInfoResult.cc new file mode 100644 index 000000000..fa1039088 --- /dev/null +++ b/emr/src/model/GetBackupRuleInfoResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +GetBackupRuleInfoResult::GetBackupRuleInfoResult() : + ServiceResult() +{} + +GetBackupRuleInfoResult::GetBackupRuleInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBackupRuleInfoResult::~GetBackupRuleInfoResult() +{} + +void GetBackupRuleInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["MetadataType"].isNull()) + metadataType_ = value["MetadataType"].asString(); + if(!value["BackupMethodType"].isNull()) + backupMethodType_ = value["BackupMethodType"].asString(); + if(!value["BackupPlanId"].isNull()) + backupPlanId_ = value["BackupPlanId"].asString(); + +} + +std::string GetBackupRuleInfoResult::getDescription()const +{ + return description_; +} + +std::string GetBackupRuleInfoResult::getMetadataType()const +{ + return metadataType_; +} + +std::string GetBackupRuleInfoResult::getBackupPlanId()const +{ + return backupPlanId_; +} + +std::string GetBackupRuleInfoResult::getId()const +{ + return id_; +} + +std::string GetBackupRuleInfoResult::getBackupMethodType()const +{ + return backupMethodType_; +} + +std::string GetBackupRuleInfoResult::getName()const +{ + return name_; +} + diff --git a/emr/src/model/GetFlowAuditLogsRequest.cc b/emr/src/model/GetFlowAuditLogsRequest.cc new file mode 100644 index 000000000..5061329ad --- /dev/null +++ b/emr/src/model/GetFlowAuditLogsRequest.cc @@ -0,0 +1,335 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::GetFlowAuditLogsRequest; + +GetFlowAuditLogsRequest::GetFlowAuditLogsRequest() : + RpcServiceRequest("emr", "2016-04-08", "GetFlowAuditLogs") +{} + +GetFlowAuditLogsRequest::~GetFlowAuditLogsRequest() +{} + +long GetFlowAuditLogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetFlowAuditLogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int GetFlowAuditLogsRequest::getPageCount()const +{ + return pageCount_; +} + +void GetFlowAuditLogsRequest::setPageCount(int pageCount) +{ + pageCount_ = pageCount; + setCoreParameter("PageCount", std::to_string(pageCount)); +} + +std::string GetFlowAuditLogsRequest::getOrderMode()const +{ + return orderMode_; +} + +void GetFlowAuditLogsRequest::setOrderMode(const std::string& orderMode) +{ + orderMode_ = orderMode; + setCoreParameter("OrderMode", orderMode); +} + +long GetFlowAuditLogsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetFlowAuditLogsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetFlowAuditLogsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetFlowAuditLogsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string GetFlowAuditLogsRequest::getEntityId()const +{ + return entityId_; +} + +void GetFlowAuditLogsRequest::setEntityId(const std::string& entityId) +{ + entityId_ = entityId; + setCoreParameter("EntityId", entityId); +} + +std::string GetFlowAuditLogsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetFlowAuditLogsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string GetFlowAuditLogsRequest::getCallerType()const +{ + return callerType_; +} + +void GetFlowAuditLogsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int GetFlowAuditLogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetFlowAuditLogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetFlowAuditLogsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetFlowAuditLogsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string GetFlowAuditLogsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetFlowAuditLogsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string GetFlowAuditLogsRequest::getRegionId()const +{ + return regionId_; +} + +void GetFlowAuditLogsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int GetFlowAuditLogsRequest::getLimit()const +{ + return limit_; +} + +void GetFlowAuditLogsRequest::setLimit(int limit) +{ + limit_ = limit; + setCoreParameter("Limit", std::to_string(limit)); +} + +int GetFlowAuditLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void GetFlowAuditLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int GetFlowAuditLogsRequest::getCurrentSize()const +{ + return currentSize_; +} + +void GetFlowAuditLogsRequest::setCurrentSize(int currentSize) +{ + currentSize_ = currentSize; + setCoreParameter("CurrentSize", std::to_string(currentSize)); +} + +long GetFlowAuditLogsRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetFlowAuditLogsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetFlowAuditLogsRequest::getOrderField()const +{ + return orderField_; +} + +void GetFlowAuditLogsRequest::setOrderField(const std::string& orderField) +{ + orderField_ = orderField; + setCoreParameter("OrderField", orderField); +} + +std::string GetFlowAuditLogsRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetFlowAuditLogsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string GetFlowAuditLogsRequest::getEntityGroupId()const +{ + return entityGroupId_; +} + +void GetFlowAuditLogsRequest::setEntityGroupId(const std::string& entityGroupId) +{ + entityGroupId_ = entityGroupId; + setCoreParameter("EntityGroupId", entityGroupId); +} + +std::string GetFlowAuditLogsRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetFlowAuditLogsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +bool GetFlowAuditLogsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetFlowAuditLogsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool GetFlowAuditLogsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetFlowAuditLogsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool GetFlowAuditLogsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetFlowAuditLogsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string GetFlowAuditLogsRequest::getEntityType()const +{ + return entityType_; +} + +void GetFlowAuditLogsRequest::setEntityType(const std::string& entityType) +{ + entityType_ = entityType; + setCoreParameter("EntityType", entityType); +} + +std::string GetFlowAuditLogsRequest::getRequestId()const +{ + return requestId_; +} + +void GetFlowAuditLogsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string GetFlowAuditLogsRequest::getOperatorId()const +{ + return operatorId_; +} + +void GetFlowAuditLogsRequest::setOperatorId(const std::string& operatorId) +{ + operatorId_ = operatorId; + setCoreParameter("OperatorId", operatorId); +} + +std::string GetFlowAuditLogsRequest::getOperation()const +{ + return operation_; +} + +void GetFlowAuditLogsRequest::setOperation(const std::string& operation) +{ + operation_ = operation; + setCoreParameter("Operation", operation); +} + +std::string GetFlowAuditLogsRequest::getStatus()const +{ + return status_; +} + +void GetFlowAuditLogsRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/GetFlowAuditLogsResult.cc b/emr/src/model/GetFlowAuditLogsResult.cc new file mode 100644 index 000000000..02b4360bb --- /dev/null +++ b/emr/src/model/GetFlowAuditLogsResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +GetFlowAuditLogsResult::GetFlowAuditLogsResult() : + ServiceResult() +{} + +GetFlowAuditLogsResult::GetFlowAuditLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFlowAuditLogsResult::~GetFlowAuditLogsResult() +{} + +void GetFlowAuditLogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["Ts"].isNull()) + itemsObject.ts = std::stol(value["Ts"].asString()); + if(!value["UserId"].isNull()) + itemsObject.userId = value["UserId"].asString(); + if(!value["OperatorId"].isNull()) + itemsObject.operatorId = value["OperatorId"].asString(); + if(!value["EntityId"].isNull()) + itemsObject.entityId = value["EntityId"].asString(); + if(!value["EntityType"].isNull()) + itemsObject.entityType = value["EntityType"].asString(); + if(!value["EntityGroupId"].isNull()) + itemsObject.entityGroupId = value["EntityGroupId"].asString(); + if(!value["Operation"].isNull()) + itemsObject.operation = value["Operation"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = value["Status"].asString(); + if(!value["Content"].isNull()) + itemsObject.content = value["Content"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int GetFlowAuditLogsResult::getTotalCount()const +{ + return totalCount_; +} + +int GetFlowAuditLogsResult::getPageSize()const +{ + return pageSize_; +} + +int GetFlowAuditLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector GetFlowAuditLogsResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/GetHdfsCapacityStatisticInfoRequest.cc b/emr/src/model/GetHdfsCapacityStatisticInfoRequest.cc index 251ddbcd3..f9c754fdb 100644 --- a/emr/src/model/GetHdfsCapacityStatisticInfoRequest.cc +++ b/emr/src/model/GetHdfsCapacityStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getFromDatetime()const void GetHdfsCapacityStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetHdfsCapacityStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetHdfsCapacityStatisticInfoRequest::getResourceOwnerId()const void GetHdfsCapacityStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetHdfsCapacityStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getRegionId()const void GetHdfsCapacityStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetHdfsCapacityStatisticInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getClusterId()const void GetHdfsCapacityStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetHdfsCapacityStatisticInfoRequest::getToDatetime()const @@ -77,7 +77,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getToDatetime()const void GetHdfsCapacityStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } std::string GetHdfsCapacityStatisticInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string GetHdfsCapacityStatisticInfoRequest::getAccessKeyId()const void GetHdfsCapacityStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetHdfsCapacityStatisticInfoResult.cc b/emr/src/model/GetHdfsCapacityStatisticInfoResult.cc index 004ddd85a..7281b5723 100644 --- a/emr/src/model/GetHdfsCapacityStatisticInfoResult.cc +++ b/emr/src/model/GetHdfsCapacityStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetHdfsCapacityStatisticInfoResult::~GetHdfsCapacityStatisticInfoResult() void GetHdfsCapacityStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHdfsCapacityList = value["HdfsCapacityList"]["ClusterStatHdfsCapacity"]; for (auto value : allHdfsCapacityList) diff --git a/emr/src/model/GetJobInputStatisticInfoRequest.cc b/emr/src/model/GetJobInputStatisticInfoRequest.cc index d54fbe655..d08b956ab 100644 --- a/emr/src/model/GetJobInputStatisticInfoRequest.cc +++ b/emr/src/model/GetJobInputStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetJobInputStatisticInfoRequest::getFromDatetime()const void GetJobInputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetJobInputStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetJobInputStatisticInfoRequest::getResourceOwnerId()const void GetJobInputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetJobInputStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetJobInputStatisticInfoRequest::getRegionId()const void GetJobInputStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetJobInputStatisticInfoRequest::getPageSize()const @@ -66,7 +66,7 @@ int GetJobInputStatisticInfoRequest::getPageSize()const void GetJobInputStatisticInfoRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string GetJobInputStatisticInfoRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string GetJobInputStatisticInfoRequest::getClusterId()const void GetJobInputStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetJobInputStatisticInfoRequest::getToDatetime()const @@ -88,7 +88,7 @@ std::string GetJobInputStatisticInfoRequest::getToDatetime()const void GetJobInputStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } int GetJobInputStatisticInfoRequest::getPageNumber()const @@ -99,7 +99,7 @@ int GetJobInputStatisticInfoRequest::getPageNumber()const void GetJobInputStatisticInfoRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string GetJobInputStatisticInfoRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string GetJobInputStatisticInfoRequest::getAccessKeyId()const void GetJobInputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetJobInputStatisticInfoResult.cc b/emr/src/model/GetJobInputStatisticInfoResult.cc index 889332e86..1779da559 100644 --- a/emr/src/model/GetJobInputStatisticInfoResult.cc +++ b/emr/src/model/GetJobInputStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetJobInputStatisticInfoResult::~GetJobInputStatisticInfoResult() void GetJobInputStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobInputList = value["JobInputList"]["ClusterStatJobInput"]; for (auto value : allJobInputList) diff --git a/emr/src/model/GetJobMigrateResultRequest.cc b/emr/src/model/GetJobMigrateResultRequest.cc index 8b991bf98..f6588dba5 100644 --- a/emr/src/model/GetJobMigrateResultRequest.cc +++ b/emr/src/model/GetJobMigrateResultRequest.cc @@ -33,7 +33,7 @@ long GetJobMigrateResultRequest::getResourceOwnerId()const void GetJobMigrateResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetJobMigrateResultRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string GetJobMigrateResultRequest::getRegionId()const void GetJobMigrateResultRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetJobMigrateResultRequest::getId()const @@ -55,7 +55,7 @@ std::string GetJobMigrateResultRequest::getId()const void GetJobMigrateResultRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string GetJobMigrateResultRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string GetJobMigrateResultRequest::getAccessKeyId()const void GetJobMigrateResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetJobMigrateResultResult.cc b/emr/src/model/GetJobMigrateResultResult.cc index 6b776210b..4c94c122e 100644 --- a/emr/src/model/GetJobMigrateResultResult.cc +++ b/emr/src/model/GetJobMigrateResultResult.cc @@ -35,10 +35,13 @@ GetJobMigrateResultResult::~GetJobMigrateResultResult() void GetJobMigrateResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/emr/src/model/GetJobOutputStatisticInfoRequest.cc b/emr/src/model/GetJobOutputStatisticInfoRequest.cc index d1210b707..c73dabf74 100644 --- a/emr/src/model/GetJobOutputStatisticInfoRequest.cc +++ b/emr/src/model/GetJobOutputStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetJobOutputStatisticInfoRequest::getFromDatetime()const void GetJobOutputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetJobOutputStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetJobOutputStatisticInfoRequest::getResourceOwnerId()const void GetJobOutputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetJobOutputStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetJobOutputStatisticInfoRequest::getRegionId()const void GetJobOutputStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetJobOutputStatisticInfoRequest::getPageSize()const @@ -66,7 +66,7 @@ int GetJobOutputStatisticInfoRequest::getPageSize()const void GetJobOutputStatisticInfoRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string GetJobOutputStatisticInfoRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string GetJobOutputStatisticInfoRequest::getClusterId()const void GetJobOutputStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetJobOutputStatisticInfoRequest::getToDatetime()const @@ -88,7 +88,7 @@ std::string GetJobOutputStatisticInfoRequest::getToDatetime()const void GetJobOutputStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } int GetJobOutputStatisticInfoRequest::getPageNumber()const @@ -99,7 +99,7 @@ int GetJobOutputStatisticInfoRequest::getPageNumber()const void GetJobOutputStatisticInfoRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string GetJobOutputStatisticInfoRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string GetJobOutputStatisticInfoRequest::getAccessKeyId()const void GetJobOutputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetJobOutputStatisticInfoResult.cc b/emr/src/model/GetJobOutputStatisticInfoResult.cc index cff34ca53..28a6601fe 100644 --- a/emr/src/model/GetJobOutputStatisticInfoResult.cc +++ b/emr/src/model/GetJobOutputStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetJobOutputStatisticInfoResult::~GetJobOutputStatisticInfoResult() void GetJobOutputStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobOutputList = value["JobOutputList"]["ClusterStatJobOutput"]; for (auto value : allJobOutputList) diff --git a/emr/src/model/GetJobRunningTimeStatisticInfoRequest.cc b/emr/src/model/GetJobRunningTimeStatisticInfoRequest.cc index 21f07539a..cc7ce207d 100644 --- a/emr/src/model/GetJobRunningTimeStatisticInfoRequest.cc +++ b/emr/src/model/GetJobRunningTimeStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetJobRunningTimeStatisticInfoRequest::getFromDatetime()const void GetJobRunningTimeStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetJobRunningTimeStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetJobRunningTimeStatisticInfoRequest::getResourceOwnerId()const void GetJobRunningTimeStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetJobRunningTimeStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetJobRunningTimeStatisticInfoRequest::getRegionId()const void GetJobRunningTimeStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetJobRunningTimeStatisticInfoRequest::getPageSize()const @@ -66,7 +66,7 @@ int GetJobRunningTimeStatisticInfoRequest::getPageSize()const void GetJobRunningTimeStatisticInfoRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string GetJobRunningTimeStatisticInfoRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string GetJobRunningTimeStatisticInfoRequest::getClusterId()const void GetJobRunningTimeStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetJobRunningTimeStatisticInfoRequest::getToDatetime()const @@ -88,7 +88,7 @@ std::string GetJobRunningTimeStatisticInfoRequest::getToDatetime()const void GetJobRunningTimeStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } int GetJobRunningTimeStatisticInfoRequest::getPageNumber()const @@ -99,7 +99,7 @@ int GetJobRunningTimeStatisticInfoRequest::getPageNumber()const void GetJobRunningTimeStatisticInfoRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string GetJobRunningTimeStatisticInfoRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string GetJobRunningTimeStatisticInfoRequest::getAccessKeyId()const void GetJobRunningTimeStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetJobRunningTimeStatisticInfoResult.cc b/emr/src/model/GetJobRunningTimeStatisticInfoResult.cc index 77f61b822..014553fa0 100644 --- a/emr/src/model/GetJobRunningTimeStatisticInfoResult.cc +++ b/emr/src/model/GetJobRunningTimeStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetJobRunningTimeStatisticInfoResult::~GetJobRunningTimeStatisticInfoResult() void GetJobRunningTimeStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRunningTimeList = value["RunningTimeList"]["ClusterStatJobRunningTime"]; for (auto value : allRunningTimeList) diff --git a/emr/src/model/GetLogDownloadUrlRequest.cc b/emr/src/model/GetLogDownloadUrlRequest.cc index d9b5c14b1..df058f819 100644 --- a/emr/src/model/GetLogDownloadUrlRequest.cc +++ b/emr/src/model/GetLogDownloadUrlRequest.cc @@ -33,7 +33,7 @@ long GetLogDownloadUrlRequest::getResourceOwnerId()const void GetLogDownloadUrlRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetLogDownloadUrlRequest::getHostName()const @@ -44,7 +44,7 @@ std::string GetLogDownloadUrlRequest::getHostName()const void GetLogDownloadUrlRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string GetLogDownloadUrlRequest::getLogstoreName()const @@ -55,7 +55,7 @@ std::string GetLogDownloadUrlRequest::getLogstoreName()const void GetLogDownloadUrlRequest::setLogstoreName(const std::string& logstoreName) { logstoreName_ = logstoreName; - setParameter("LogstoreName", logstoreName); + setCoreParameter("LogstoreName", logstoreName); } std::string GetLogDownloadUrlRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string GetLogDownloadUrlRequest::getRegionId()const void GetLogDownloadUrlRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetLogDownloadUrlRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string GetLogDownloadUrlRequest::getClusterId()const void GetLogDownloadUrlRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetLogDownloadUrlRequest::getLogFileName()const @@ -88,7 +88,7 @@ std::string GetLogDownloadUrlRequest::getLogFileName()const void GetLogDownloadUrlRequest::setLogFileName(const std::string& logFileName) { logFileName_ = logFileName; - setParameter("LogFileName", logFileName); + setCoreParameter("LogFileName", logFileName); } std::string GetLogDownloadUrlRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string GetLogDownloadUrlRequest::getAccessKeyId()const void GetLogDownloadUrlRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetLogDownloadUrlResult.cc b/emr/src/model/GetLogDownloadUrlResult.cc index ac8483b3c..faef761a2 100644 --- a/emr/src/model/GetLogDownloadUrlResult.cc +++ b/emr/src/model/GetLogDownloadUrlResult.cc @@ -35,10 +35,13 @@ GetLogDownloadUrlResult::~GetLogDownloadUrlResult() void GetLogDownloadUrlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DownloadUrlBase64Encoded"].isNull()) downloadUrlBase64Encoded_ = value["DownloadUrlBase64Encoded"].asString(); diff --git a/emr/src/model/GetLogHistogramRequest.cc b/emr/src/model/GetLogHistogramRequest.cc index 633e3c4f5..8ae08b887 100644 --- a/emr/src/model/GetLogHistogramRequest.cc +++ b/emr/src/model/GetLogHistogramRequest.cc @@ -33,7 +33,7 @@ long GetLogHistogramRequest::getResourceOwnerId()const void GetLogHistogramRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetLogHistogramRequest::getHostInnerIp()const @@ -44,7 +44,7 @@ std::string GetLogHistogramRequest::getHostInnerIp()const void GetLogHistogramRequest::setHostInnerIp(const std::string& hostInnerIp) { hostInnerIp_ = hostInnerIp; - setParameter("HostInnerIp", hostInnerIp); + setCoreParameter("HostInnerIp", hostInnerIp); } std::string GetLogHistogramRequest::getHostName()const @@ -55,7 +55,7 @@ std::string GetLogHistogramRequest::getHostName()const void GetLogHistogramRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string GetLogHistogramRequest::getLogstoreName()const @@ -66,7 +66,7 @@ std::string GetLogHistogramRequest::getLogstoreName()const void GetLogHistogramRequest::setLogstoreName(const std::string& logstoreName) { logstoreName_ = logstoreName; - setParameter("LogstoreName", logstoreName); + setCoreParameter("LogstoreName", logstoreName); } int GetLogHistogramRequest::getFromTimestamp()const @@ -77,7 +77,7 @@ int GetLogHistogramRequest::getFromTimestamp()const void GetLogHistogramRequest::setFromTimestamp(int fromTimestamp) { fromTimestamp_ = fromTimestamp; - setParameter("FromTimestamp", std::to_string(fromTimestamp)); + setCoreParameter("FromTimestamp", std::to_string(fromTimestamp)); } std::string GetLogHistogramRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string GetLogHistogramRequest::getRegionId()const void GetLogHistogramRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int GetLogHistogramRequest::getToTimestamp()const @@ -99,7 +99,7 @@ int GetLogHistogramRequest::getToTimestamp()const void GetLogHistogramRequest::setToTimestamp(int toTimestamp) { toTimestamp_ = toTimestamp; - setParameter("ToTimestamp", std::to_string(toTimestamp)); + setCoreParameter("ToTimestamp", std::to_string(toTimestamp)); } std::string GetLogHistogramRequest::getSlsQueryString()const @@ -110,7 +110,7 @@ std::string GetLogHistogramRequest::getSlsQueryString()const void GetLogHistogramRequest::setSlsQueryString(const std::string& slsQueryString) { slsQueryString_ = slsQueryString; - setParameter("SlsQueryString", slsQueryString); + setCoreParameter("SlsQueryString", slsQueryString); } std::string GetLogHistogramRequest::getClusterId()const @@ -121,7 +121,7 @@ std::string GetLogHistogramRequest::getClusterId()const void GetLogHistogramRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetLogHistogramRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string GetLogHistogramRequest::getAccessKeyId()const void GetLogHistogramRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetLogHistogramResult.cc b/emr/src/model/GetLogHistogramResult.cc index 240fc0071..b6e3931fe 100644 --- a/emr/src/model/GetLogHistogramResult.cc +++ b/emr/src/model/GetLogHistogramResult.cc @@ -35,10 +35,13 @@ GetLogHistogramResult::~GetLogHistogramResult() void GetLogHistogramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSlsLogHistogramList = value["SlsLogHistogramList"]["SlsLogHistogram"]; for (auto value : allSlsLogHistogramList) diff --git a/emr/src/model/GetMetadataTypeListRequest.cc b/emr/src/model/GetMetadataTypeListRequest.cc new file mode 100644 index 000000000..d04d54351 --- /dev/null +++ b/emr/src/model/GetMetadataTypeListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::GetMetadataTypeListRequest; + +GetMetadataTypeListRequest::GetMetadataTypeListRequest() : + RpcServiceRequest("emr", "2016-04-08", "GetMetadataTypeList") +{} + +GetMetadataTypeListRequest::~GetMetadataTypeListRequest() +{} + +long GetMetadataTypeListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetMetadataTypeListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetMetadataTypeListRequest::getRegionId()const +{ + return regionId_; +} + +void GetMetadataTypeListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetMetadataTypeListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetMetadataTypeListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/GetMetadataTypeListResult.cc b/emr/src/model/GetMetadataTypeListResult.cc new file mode 100644 index 000000000..c0f196cff --- /dev/null +++ b/emr/src/model/GetMetadataTypeListResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +GetMetadataTypeListResult::GetMetadataTypeListResult() : + ServiceResult() +{} + +GetMetadataTypeListResult::GetMetadataTypeListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMetadataTypeListResult::~GetMetadataTypeListResult() +{} + +void GetMetadataTypeListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["supportedMetadataTypeDTO"]; + for (auto value : allData) + { + SupportedMetadataTypeDTO dataObject; + auto allName = value["Name"]["Name"]; + for (auto value : allName) + dataObject.name.push_back(value.asString()); + auto allServiceName = value["ServiceName"]["ServiceName"]; + for (auto value : allServiceName) + dataObject.serviceName.push_back(value.asString()); + data_.push_back(dataObject); + } + +} + +std::vector GetMetadataTypeListResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/GetOpsCommandDetailRequest.cc b/emr/src/model/GetOpsCommandDetailRequest.cc index b6f3da971..0297a6082 100644 --- a/emr/src/model/GetOpsCommandDetailRequest.cc +++ b/emr/src/model/GetOpsCommandDetailRequest.cc @@ -33,7 +33,7 @@ long GetOpsCommandDetailRequest::getResourceOwnerId()const void GetOpsCommandDetailRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetOpsCommandDetailRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string GetOpsCommandDetailRequest::getRegionId()const void GetOpsCommandDetailRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetOpsCommandDetailRequest::getOpsCommandName()const @@ -55,7 +55,7 @@ std::string GetOpsCommandDetailRequest::getOpsCommandName()const void GetOpsCommandDetailRequest::setOpsCommandName(const std::string& opsCommandName) { opsCommandName_ = opsCommandName; - setParameter("OpsCommandName", opsCommandName); + setCoreParameter("OpsCommandName", opsCommandName); } std::string GetOpsCommandDetailRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string GetOpsCommandDetailRequest::getAccessKeyId()const void GetOpsCommandDetailRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetOpsCommandDetailResult.cc b/emr/src/model/GetOpsCommandDetailResult.cc index f24215f4b..7ef162ac8 100644 --- a/emr/src/model/GetOpsCommandDetailResult.cc +++ b/emr/src/model/GetOpsCommandDetailResult.cc @@ -35,10 +35,13 @@ GetOpsCommandDetailResult::~GetOpsCommandDetailResult() void GetOpsCommandDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/emr/src/model/GetOpsCommandResultOnceRequest.cc b/emr/src/model/GetOpsCommandResultOnceRequest.cc index f85e83274..0589dbf20 100644 --- a/emr/src/model/GetOpsCommandResultOnceRequest.cc +++ b/emr/src/model/GetOpsCommandResultOnceRequest.cc @@ -33,7 +33,7 @@ long GetOpsCommandResultOnceRequest::getResourceOwnerId()const void GetOpsCommandResultOnceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetOpsCommandResultOnceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string GetOpsCommandResultOnceRequest::getRegionId()const void GetOpsCommandResultOnceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetOpsCommandResultOnceRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string GetOpsCommandResultOnceRequest::getClusterId()const void GetOpsCommandResultOnceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } long GetOpsCommandResultOnceRequest::getTaskId()const @@ -66,7 +66,7 @@ long GetOpsCommandResultOnceRequest::getTaskId()const void GetOpsCommandResultOnceRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } std::string GetOpsCommandResultOnceRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string GetOpsCommandResultOnceRequest::getAccessKeyId()const void GetOpsCommandResultOnceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetOpsCommandResultOnceResult.cc b/emr/src/model/GetOpsCommandResultOnceResult.cc index 592dd47a2..597364919 100644 --- a/emr/src/model/GetOpsCommandResultOnceResult.cc +++ b/emr/src/model/GetOpsCommandResultOnceResult.cc @@ -35,10 +35,13 @@ GetOpsCommandResultOnceResult::~GetOpsCommandResultOnceResult() void GetOpsCommandResultOnceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Content"].isNull()) content_ = value["Content"].asString(); diff --git a/emr/src/model/GetOpsCommandResultRequest.cc b/emr/src/model/GetOpsCommandResultRequest.cc index 3ee942e7f..494bdb71b 100644 --- a/emr/src/model/GetOpsCommandResultRequest.cc +++ b/emr/src/model/GetOpsCommandResultRequest.cc @@ -33,7 +33,7 @@ long GetOpsCommandResultRequest::getResourceOwnerId()const void GetOpsCommandResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetOpsCommandResultRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string GetOpsCommandResultRequest::getRegionId()const void GetOpsCommandResultRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long GetOpsCommandResultRequest::getEndCursor()const @@ -55,7 +55,7 @@ long GetOpsCommandResultRequest::getEndCursor()const void GetOpsCommandResultRequest::setEndCursor(long endCursor) { endCursor_ = endCursor; - setParameter("EndCursor", std::to_string(endCursor)); + setCoreParameter("EndCursor", std::to_string(endCursor)); } long GetOpsCommandResultRequest::getStartCursor()const @@ -66,7 +66,7 @@ long GetOpsCommandResultRequest::getStartCursor()const void GetOpsCommandResultRequest::setStartCursor(long startCursor) { startCursor_ = startCursor; - setParameter("StartCursor", std::to_string(startCursor)); + setCoreParameter("StartCursor", std::to_string(startCursor)); } std::string GetOpsCommandResultRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string GetOpsCommandResultRequest::getClusterId()const void GetOpsCommandResultRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } long GetOpsCommandResultRequest::getTaskId()const @@ -88,7 +88,7 @@ long GetOpsCommandResultRequest::getTaskId()const void GetOpsCommandResultRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } std::string GetOpsCommandResultRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string GetOpsCommandResultRequest::getAccessKeyId()const void GetOpsCommandResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetOpsCommandResultResult.cc b/emr/src/model/GetOpsCommandResultResult.cc index 5fe6a8898..05be7c6d1 100644 --- a/emr/src/model/GetOpsCommandResultResult.cc +++ b/emr/src/model/GetOpsCommandResultResult.cc @@ -35,10 +35,13 @@ GetOpsCommandResultResult::~GetOpsCommandResultResult() void GetOpsCommandResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Content"].isNull()) content_ = value["Content"].asString(); diff --git a/emr/src/model/GetQueueInputStatisticInfoRequest.cc b/emr/src/model/GetQueueInputStatisticInfoRequest.cc index 5e112f459..9f3d2021a 100644 --- a/emr/src/model/GetQueueInputStatisticInfoRequest.cc +++ b/emr/src/model/GetQueueInputStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetQueueInputStatisticInfoRequest::getFromDatetime()const void GetQueueInputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetQueueInputStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetQueueInputStatisticInfoRequest::getResourceOwnerId()const void GetQueueInputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetQueueInputStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetQueueInputStatisticInfoRequest::getRegionId()const void GetQueueInputStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetQueueInputStatisticInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string GetQueueInputStatisticInfoRequest::getClusterId()const void GetQueueInputStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetQueueInputStatisticInfoRequest::getToDatetime()const @@ -77,7 +77,7 @@ std::string GetQueueInputStatisticInfoRequest::getToDatetime()const void GetQueueInputStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } std::string GetQueueInputStatisticInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string GetQueueInputStatisticInfoRequest::getAccessKeyId()const void GetQueueInputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetQueueInputStatisticInfoResult.cc b/emr/src/model/GetQueueInputStatisticInfoResult.cc index e021573c0..4071a5678 100644 --- a/emr/src/model/GetQueueInputStatisticInfoResult.cc +++ b/emr/src/model/GetQueueInputStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetQueueInputStatisticInfoResult::~GetQueueInputStatisticInfoResult() void GetQueueInputStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQueueInputList = value["QueueInputList"]["ClusterStatQueueInput"]; for (auto value : allQueueInputList) diff --git a/emr/src/model/GetQueueOutputStatisticInfoRequest.cc b/emr/src/model/GetQueueOutputStatisticInfoRequest.cc index f6e621cdb..20fd36f69 100644 --- a/emr/src/model/GetQueueOutputStatisticInfoRequest.cc +++ b/emr/src/model/GetQueueOutputStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetQueueOutputStatisticInfoRequest::getFromDatetime()const void GetQueueOutputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetQueueOutputStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetQueueOutputStatisticInfoRequest::getResourceOwnerId()const void GetQueueOutputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetQueueOutputStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetQueueOutputStatisticInfoRequest::getRegionId()const void GetQueueOutputStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetQueueOutputStatisticInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string GetQueueOutputStatisticInfoRequest::getClusterId()const void GetQueueOutputStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetQueueOutputStatisticInfoRequest::getToDatetime()const @@ -77,7 +77,7 @@ std::string GetQueueOutputStatisticInfoRequest::getToDatetime()const void GetQueueOutputStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } std::string GetQueueOutputStatisticInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string GetQueueOutputStatisticInfoRequest::getAccessKeyId()const void GetQueueOutputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetQueueOutputStatisticInfoResult.cc b/emr/src/model/GetQueueOutputStatisticInfoResult.cc index 0bd530f3a..4b520acef 100644 --- a/emr/src/model/GetQueueOutputStatisticInfoResult.cc +++ b/emr/src/model/GetQueueOutputStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetQueueOutputStatisticInfoResult::~GetQueueOutputStatisticInfoResult() void GetQueueOutputStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQueueOutputList = value["QueueOutputList"]["ClusterStatQueueOutput"]; for (auto value : allQueueOutputList) diff --git a/emr/src/model/GetQueueSubmissionStatisticInfoRequest.cc b/emr/src/model/GetQueueSubmissionStatisticInfoRequest.cc index 6ef0a0900..dd54d0194 100644 --- a/emr/src/model/GetQueueSubmissionStatisticInfoRequest.cc +++ b/emr/src/model/GetQueueSubmissionStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetQueueSubmissionStatisticInfoRequest::getFromDatetime()const void GetQueueSubmissionStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetQueueSubmissionStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetQueueSubmissionStatisticInfoRequest::getResourceOwnerId()const void GetQueueSubmissionStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetQueueSubmissionStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetQueueSubmissionStatisticInfoRequest::getRegionId()const void GetQueueSubmissionStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetQueueSubmissionStatisticInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string GetQueueSubmissionStatisticInfoRequest::getClusterId()const void GetQueueSubmissionStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetQueueSubmissionStatisticInfoRequest::getToDatetime()const @@ -77,7 +77,7 @@ std::string GetQueueSubmissionStatisticInfoRequest::getToDatetime()const void GetQueueSubmissionStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } std::string GetQueueSubmissionStatisticInfoRequest::getApplicationType()const @@ -88,7 +88,7 @@ std::string GetQueueSubmissionStatisticInfoRequest::getApplicationType()const void GetQueueSubmissionStatisticInfoRequest::setApplicationType(const std::string& applicationType) { applicationType_ = applicationType; - setParameter("ApplicationType", applicationType); + setCoreParameter("ApplicationType", applicationType); } std::string GetQueueSubmissionStatisticInfoRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string GetQueueSubmissionStatisticInfoRequest::getAccessKeyId()const void GetQueueSubmissionStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string GetQueueSubmissionStatisticInfoRequest::getFinalStatus()const @@ -110,6 +110,6 @@ std::string GetQueueSubmissionStatisticInfoRequest::getFinalStatus()const void GetQueueSubmissionStatisticInfoRequest::setFinalStatus(const std::string& finalStatus) { finalStatus_ = finalStatus; - setParameter("FinalStatus", finalStatus); + setCoreParameter("FinalStatus", finalStatus); } diff --git a/emr/src/model/GetQueueSubmissionStatisticInfoResult.cc b/emr/src/model/GetQueueSubmissionStatisticInfoResult.cc index 233dab75b..af5b89159 100644 --- a/emr/src/model/GetQueueSubmissionStatisticInfoResult.cc +++ b/emr/src/model/GetQueueSubmissionStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetQueueSubmissionStatisticInfoResult::~GetQueueSubmissionStatisticInfoResult() void GetQueueSubmissionStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQueueSubmissionList = value["QueueSubmissionList"]["ClusterStatQueueSubmission"]; for (auto value : allQueueSubmissionList) diff --git a/emr/src/model/GetSupportedOpsCommandRequest.cc b/emr/src/model/GetSupportedOpsCommandRequest.cc index 4f75d7942..e0cb36527 100644 --- a/emr/src/model/GetSupportedOpsCommandRequest.cc +++ b/emr/src/model/GetSupportedOpsCommandRequest.cc @@ -33,7 +33,7 @@ long GetSupportedOpsCommandRequest::getResourceOwnerId()const void GetSupportedOpsCommandRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetSupportedOpsCommandRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string GetSupportedOpsCommandRequest::getRegionId()const void GetSupportedOpsCommandRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetSupportedOpsCommandRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetSupportedOpsCommandRequest::getAccessKeyId()const void GetSupportedOpsCommandRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetSupportedOpsCommandResult.cc b/emr/src/model/GetSupportedOpsCommandResult.cc index e71078c67..26c9aef29 100644 --- a/emr/src/model/GetSupportedOpsCommandResult.cc +++ b/emr/src/model/GetSupportedOpsCommandResult.cc @@ -35,10 +35,13 @@ GetSupportedOpsCommandResult::~GetSupportedOpsCommandResult() void GetSupportedOpsCommandResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allList = value["List"]["OpsCommandCategory"]; for (auto value : allList) diff --git a/emr/src/model/GetUserInputStatisticInfoRequest.cc b/emr/src/model/GetUserInputStatisticInfoRequest.cc index 5c17a390e..72140ff41 100644 --- a/emr/src/model/GetUserInputStatisticInfoRequest.cc +++ b/emr/src/model/GetUserInputStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetUserInputStatisticInfoRequest::getFromDatetime()const void GetUserInputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetUserInputStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetUserInputStatisticInfoRequest::getResourceOwnerId()const void GetUserInputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetUserInputStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetUserInputStatisticInfoRequest::getRegionId()const void GetUserInputStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetUserInputStatisticInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string GetUserInputStatisticInfoRequest::getClusterId()const void GetUserInputStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetUserInputStatisticInfoRequest::getToDatetime()const @@ -77,7 +77,7 @@ std::string GetUserInputStatisticInfoRequest::getToDatetime()const void GetUserInputStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } std::string GetUserInputStatisticInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string GetUserInputStatisticInfoRequest::getAccessKeyId()const void GetUserInputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetUserInputStatisticInfoResult.cc b/emr/src/model/GetUserInputStatisticInfoResult.cc index 2d1e98ed4..36ffe4133 100644 --- a/emr/src/model/GetUserInputStatisticInfoResult.cc +++ b/emr/src/model/GetUserInputStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetUserInputStatisticInfoResult::~GetUserInputStatisticInfoResult() void GetUserInputStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserInputList = value["UserInputList"]["ClusterStatUserInput"]; for (auto value : allUserInputList) diff --git a/emr/src/model/GetUserOutputStatisticInfoRequest.cc b/emr/src/model/GetUserOutputStatisticInfoRequest.cc index 41eb20ee5..48357e934 100644 --- a/emr/src/model/GetUserOutputStatisticInfoRequest.cc +++ b/emr/src/model/GetUserOutputStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetUserOutputStatisticInfoRequest::getFromDatetime()const void GetUserOutputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetUserOutputStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetUserOutputStatisticInfoRequest::getResourceOwnerId()const void GetUserOutputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetUserOutputStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetUserOutputStatisticInfoRequest::getRegionId()const void GetUserOutputStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetUserOutputStatisticInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string GetUserOutputStatisticInfoRequest::getClusterId()const void GetUserOutputStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetUserOutputStatisticInfoRequest::getToDatetime()const @@ -77,7 +77,7 @@ std::string GetUserOutputStatisticInfoRequest::getToDatetime()const void GetUserOutputStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } std::string GetUserOutputStatisticInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string GetUserOutputStatisticInfoRequest::getAccessKeyId()const void GetUserOutputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/GetUserOutputStatisticInfoResult.cc b/emr/src/model/GetUserOutputStatisticInfoResult.cc index f9ef8ce5c..880ce79e3 100644 --- a/emr/src/model/GetUserOutputStatisticInfoResult.cc +++ b/emr/src/model/GetUserOutputStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetUserOutputStatisticInfoResult::~GetUserOutputStatisticInfoResult() void GetUserOutputStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserOutputList = value["UserOutputList"]["ClusterStatUserOutput"]; for (auto value : allUserOutputList) diff --git a/emr/src/model/GetUserSubmissionStatisticInfoRequest.cc b/emr/src/model/GetUserSubmissionStatisticInfoRequest.cc index 86371d1d9..8106f5c8b 100644 --- a/emr/src/model/GetUserSubmissionStatisticInfoRequest.cc +++ b/emr/src/model/GetUserSubmissionStatisticInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetUserSubmissionStatisticInfoRequest::getFromDatetime()const void GetUserSubmissionStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime) { fromDatetime_ = fromDatetime; - setParameter("FromDatetime", fromDatetime); + setCoreParameter("FromDatetime", fromDatetime); } long GetUserSubmissionStatisticInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetUserSubmissionStatisticInfoRequest::getResourceOwnerId()const void GetUserSubmissionStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetUserSubmissionStatisticInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string GetUserSubmissionStatisticInfoRequest::getRegionId()const void GetUserSubmissionStatisticInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GetUserSubmissionStatisticInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string GetUserSubmissionStatisticInfoRequest::getClusterId()const void GetUserSubmissionStatisticInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string GetUserSubmissionStatisticInfoRequest::getToDatetime()const @@ -77,7 +77,7 @@ std::string GetUserSubmissionStatisticInfoRequest::getToDatetime()const void GetUserSubmissionStatisticInfoRequest::setToDatetime(const std::string& toDatetime) { toDatetime_ = toDatetime; - setParameter("ToDatetime", toDatetime); + setCoreParameter("ToDatetime", toDatetime); } std::string GetUserSubmissionStatisticInfoRequest::getApplicationType()const @@ -88,7 +88,7 @@ std::string GetUserSubmissionStatisticInfoRequest::getApplicationType()const void GetUserSubmissionStatisticInfoRequest::setApplicationType(const std::string& applicationType) { applicationType_ = applicationType; - setParameter("ApplicationType", applicationType); + setCoreParameter("ApplicationType", applicationType); } std::string GetUserSubmissionStatisticInfoRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string GetUserSubmissionStatisticInfoRequest::getAccessKeyId()const void GetUserSubmissionStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string GetUserSubmissionStatisticInfoRequest::getFinalStatus()const @@ -110,6 +110,6 @@ std::string GetUserSubmissionStatisticInfoRequest::getFinalStatus()const void GetUserSubmissionStatisticInfoRequest::setFinalStatus(const std::string& finalStatus) { finalStatus_ = finalStatus; - setParameter("FinalStatus", finalStatus); + setCoreParameter("FinalStatus", finalStatus); } diff --git a/emr/src/model/GetUserSubmissionStatisticInfoResult.cc b/emr/src/model/GetUserSubmissionStatisticInfoResult.cc index 5258a00fe..8df746e6f 100644 --- a/emr/src/model/GetUserSubmissionStatisticInfoResult.cc +++ b/emr/src/model/GetUserSubmissionStatisticInfoResult.cc @@ -35,10 +35,13 @@ GetUserSubmissionStatisticInfoResult::~GetUserSubmissionStatisticInfoResult() void GetUserSubmissionStatisticInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserSubmissionList = value["UserSubmissionList"]["ClusterStatUserSubmission"]; for (auto value : allUserSubmissionList) diff --git a/emr/src/model/KillETLJobInstanceRequest.cc b/emr/src/model/KillETLJobInstanceRequest.cc index 872e07106..b34acdd39 100644 --- a/emr/src/model/KillETLJobInstanceRequest.cc +++ b/emr/src/model/KillETLJobInstanceRequest.cc @@ -33,7 +33,7 @@ long KillETLJobInstanceRequest::getResourceOwnerId()const void KillETLJobInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string KillETLJobInstanceRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string KillETLJobInstanceRequest::getInstanceId()const void KillETLJobInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string KillETLJobInstanceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string KillETLJobInstanceRequest::getRegionId()const void KillETLJobInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string KillETLJobInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string KillETLJobInstanceRequest::getAccessKeyId()const void KillETLJobInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/KillETLJobInstanceResult.cc b/emr/src/model/KillETLJobInstanceResult.cc index fc42e501f..a7ed1bac1 100644 --- a/emr/src/model/KillETLJobInstanceResult.cc +++ b/emr/src/model/KillETLJobInstanceResult.cc @@ -35,10 +35,13 @@ KillETLJobInstanceResult::~KillETLJobInstanceResult() void KillETLJobInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/KillExecutionJobInstanceRequest.cc b/emr/src/model/KillExecutionJobInstanceRequest.cc index f21add4cf..efacd7aa3 100644 --- a/emr/src/model/KillExecutionJobInstanceRequest.cc +++ b/emr/src/model/KillExecutionJobInstanceRequest.cc @@ -33,7 +33,7 @@ long KillExecutionJobInstanceRequest::getResourceOwnerId()const void KillExecutionJobInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string KillExecutionJobInstanceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string KillExecutionJobInstanceRequest::getRegionId()const void KillExecutionJobInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string KillExecutionJobInstanceRequest::getJobInstanceId()const @@ -55,7 +55,7 @@ std::string KillExecutionJobInstanceRequest::getJobInstanceId()const void KillExecutionJobInstanceRequest::setJobInstanceId(const std::string& jobInstanceId) { jobInstanceId_ = jobInstanceId; - setParameter("JobInstanceId", jobInstanceId); + setCoreParameter("JobInstanceId", jobInstanceId); } std::string KillExecutionJobInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string KillExecutionJobInstanceRequest::getAccessKeyId()const void KillExecutionJobInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/KillExecutionJobInstanceResult.cc b/emr/src/model/KillExecutionJobInstanceResult.cc index 2d4ece7ce..5a0e24593 100644 --- a/emr/src/model/KillExecutionJobInstanceResult.cc +++ b/emr/src/model/KillExecutionJobInstanceResult.cc @@ -35,10 +35,13 @@ KillExecutionJobInstanceResult::~KillExecutionJobInstanceResult() void KillExecutionJobInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/KillExecutionPlanInstanceRequest.cc b/emr/src/model/KillExecutionPlanInstanceRequest.cc index 7b98fc13d..9fa38cc1f 100644 --- a/emr/src/model/KillExecutionPlanInstanceRequest.cc +++ b/emr/src/model/KillExecutionPlanInstanceRequest.cc @@ -33,7 +33,7 @@ long KillExecutionPlanInstanceRequest::getResourceOwnerId()const void KillExecutionPlanInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string KillExecutionPlanInstanceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string KillExecutionPlanInstanceRequest::getRegionId()const void KillExecutionPlanInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string KillExecutionPlanInstanceRequest::getId()const @@ -55,7 +55,7 @@ std::string KillExecutionPlanInstanceRequest::getId()const void KillExecutionPlanInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string KillExecutionPlanInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string KillExecutionPlanInstanceRequest::getAccessKeyId()const void KillExecutionPlanInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/KillExecutionPlanInstanceResult.cc b/emr/src/model/KillExecutionPlanInstanceResult.cc index e5dd4b47b..08d00afc5 100644 --- a/emr/src/model/KillExecutionPlanInstanceResult.cc +++ b/emr/src/model/KillExecutionPlanInstanceResult.cc @@ -35,10 +35,13 @@ KillExecutionPlanInstanceResult::~KillExecutionPlanInstanceResult() void KillExecutionPlanInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/KillFlowJobRequest.cc b/emr/src/model/KillFlowJobRequest.cc index d539bc139..4209dda83 100644 --- a/emr/src/model/KillFlowJobRequest.cc +++ b/emr/src/model/KillFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string KillFlowJobRequest::getRegionId()const void KillFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string KillFlowJobRequest::getJobInstanceId()const @@ -44,7 +44,7 @@ std::string KillFlowJobRequest::getJobInstanceId()const void KillFlowJobRequest::setJobInstanceId(const std::string& jobInstanceId) { jobInstanceId_ = jobInstanceId; - setParameter("JobInstanceId", jobInstanceId); + setCoreParameter("JobInstanceId", jobInstanceId); } std::string KillFlowJobRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string KillFlowJobRequest::getProjectId()const void KillFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/KillFlowJobResult.cc b/emr/src/model/KillFlowJobResult.cc index 251e9aac4..9797a1fd3 100644 --- a/emr/src/model/KillFlowJobResult.cc +++ b/emr/src/model/KillFlowJobResult.cc @@ -35,10 +35,13 @@ KillFlowJobResult::~KillFlowJobResult() void KillFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/KillFlowRequest.cc b/emr/src/model/KillFlowRequest.cc index 9183ee5a7..fbc05cf68 100644 --- a/emr/src/model/KillFlowRequest.cc +++ b/emr/src/model/KillFlowRequest.cc @@ -33,7 +33,7 @@ std::string KillFlowRequest::getFlowInstanceId()const void KillFlowRequest::setFlowInstanceId(const std::string& flowInstanceId) { flowInstanceId_ = flowInstanceId; - setParameter("FlowInstanceId", flowInstanceId); + setCoreParameter("FlowInstanceId", flowInstanceId); } std::string KillFlowRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string KillFlowRequest::getRegionId()const void KillFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string KillFlowRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string KillFlowRequest::getProjectId()const void KillFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/KillFlowResult.cc b/emr/src/model/KillFlowResult.cc index e8c35f285..637ce787f 100644 --- a/emr/src/model/KillFlowResult.cc +++ b/emr/src/model/KillFlowResult.cc @@ -35,10 +35,13 @@ KillFlowResult::~KillFlowResult() void KillFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ListAlertContactsRequest.cc b/emr/src/model/ListAlertContactsRequest.cc index 33f1b0529..26b1a23da 100644 --- a/emr/src/model/ListAlertContactsRequest.cc +++ b/emr/src/model/ListAlertContactsRequest.cc @@ -33,7 +33,7 @@ long ListAlertContactsRequest::getResourceOwnerId()const void ListAlertContactsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListAlertContactsRequest::getFromApp()const @@ -44,7 +44,7 @@ std::string ListAlertContactsRequest::getFromApp()const void ListAlertContactsRequest::setFromApp(const std::string& fromApp) { fromApp_ = fromApp; - setParameter("FromApp", fromApp); + setCoreParameter("FromApp", fromApp); } std::string ListAlertContactsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListAlertContactsRequest::getRegionId()const void ListAlertContactsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListAlertContactsRequest::getIds()const @@ -66,7 +66,7 @@ std::string ListAlertContactsRequest::getIds()const void ListAlertContactsRequest::setIds(const std::string& ids) { ids_ = ids; - setParameter("Ids", ids); + setCoreParameter("Ids", ids); } std::string ListAlertContactsRequest::getUserId()const @@ -77,7 +77,7 @@ std::string ListAlertContactsRequest::getUserId()const void ListAlertContactsRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string ListAlertContactsRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListAlertContactsRequest::getAccessKeyId()const void ListAlertContactsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListAlertContactsResult.cc b/emr/src/model/ListAlertContactsResult.cc index 0aa6062fd..48881a5d3 100644 --- a/emr/src/model/ListAlertContactsResult.cc +++ b/emr/src/model/ListAlertContactsResult.cc @@ -35,10 +35,13 @@ ListAlertContactsResult::~ListAlertContactsResult() void ListAlertContactsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlertContactList = value["AlertContactList"]["AlertContact"]; for (auto value : allAlertContactList) diff --git a/emr/src/model/ListAlertDingDingGroupRequest.cc b/emr/src/model/ListAlertDingDingGroupRequest.cc index 5304277ef..a3f031439 100644 --- a/emr/src/model/ListAlertDingDingGroupRequest.cc +++ b/emr/src/model/ListAlertDingDingGroupRequest.cc @@ -33,7 +33,7 @@ long ListAlertDingDingGroupRequest::getResourceOwnerId()const void ListAlertDingDingGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListAlertDingDingGroupRequest::getFromApp()const @@ -44,7 +44,7 @@ std::string ListAlertDingDingGroupRequest::getFromApp()const void ListAlertDingDingGroupRequest::setFromApp(const std::string& fromApp) { fromApp_ = fromApp; - setParameter("FromApp", fromApp); + setCoreParameter("FromApp", fromApp); } std::string ListAlertDingDingGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListAlertDingDingGroupRequest::getRegionId()const void ListAlertDingDingGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListAlertDingDingGroupRequest::getIds()const @@ -66,7 +66,7 @@ std::string ListAlertDingDingGroupRequest::getIds()const void ListAlertDingDingGroupRequest::setIds(const std::string& ids) { ids_ = ids; - setParameter("Ids", ids); + setCoreParameter("Ids", ids); } std::string ListAlertDingDingGroupRequest::getUserId()const @@ -77,7 +77,7 @@ std::string ListAlertDingDingGroupRequest::getUserId()const void ListAlertDingDingGroupRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string ListAlertDingDingGroupRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListAlertDingDingGroupRequest::getAccessKeyId()const void ListAlertDingDingGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListAlertDingDingGroupResult.cc b/emr/src/model/ListAlertDingDingGroupResult.cc index f85f05cff..92cc9b80b 100644 --- a/emr/src/model/ListAlertDingDingGroupResult.cc +++ b/emr/src/model/ListAlertDingDingGroupResult.cc @@ -35,10 +35,13 @@ ListAlertDingDingGroupResult::~ListAlertDingDingGroupResult() void ListAlertDingDingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlertDingDingGroupList = value["AlertDingDingGroupList"]["alertDingDingGroup"]; for (auto value : allAlertDingDingGroupList) diff --git a/emr/src/model/ListAlertUserGroupRequest.cc b/emr/src/model/ListAlertUserGroupRequest.cc index acab8f9a9..3739268aa 100644 --- a/emr/src/model/ListAlertUserGroupRequest.cc +++ b/emr/src/model/ListAlertUserGroupRequest.cc @@ -33,7 +33,7 @@ long ListAlertUserGroupRequest::getResourceOwnerId()const void ListAlertUserGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListAlertUserGroupRequest::getFromApp()const @@ -44,7 +44,7 @@ std::string ListAlertUserGroupRequest::getFromApp()const void ListAlertUserGroupRequest::setFromApp(const std::string& fromApp) { fromApp_ = fromApp; - setParameter("FromApp", fromApp); + setCoreParameter("FromApp", fromApp); } std::string ListAlertUserGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListAlertUserGroupRequest::getRegionId()const void ListAlertUserGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListAlertUserGroupRequest::getIds()const @@ -66,7 +66,7 @@ std::string ListAlertUserGroupRequest::getIds()const void ListAlertUserGroupRequest::setIds(const std::string& ids) { ids_ = ids; - setParameter("Ids", ids); + setCoreParameter("Ids", ids); } std::string ListAlertUserGroupRequest::getUserId()const @@ -77,7 +77,7 @@ std::string ListAlertUserGroupRequest::getUserId()const void ListAlertUserGroupRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string ListAlertUserGroupRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListAlertUserGroupRequest::getAccessKeyId()const void ListAlertUserGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListAlertUserGroupResult.cc b/emr/src/model/ListAlertUserGroupResult.cc index ece60839a..52f1f258f 100644 --- a/emr/src/model/ListAlertUserGroupResult.cc +++ b/emr/src/model/ListAlertUserGroupResult.cc @@ -35,10 +35,13 @@ ListAlertUserGroupResult::~ListAlertUserGroupResult() void ListAlertUserGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlertUserGroupList = value["AlertUserGroupList"]["Group"]; for (auto value : allAlertUserGroupList) diff --git a/emr/src/model/ListApmApplicationRequest.cc b/emr/src/model/ListApmApplicationRequest.cc new file mode 100644 index 000000000..e63f0690b --- /dev/null +++ b/emr/src/model/ListApmApplicationRequest.cc @@ -0,0 +1,236 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListApmApplicationRequest; + +ListApmApplicationRequest::ListApmApplicationRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListApmApplication") +{} + +ListApmApplicationRequest::~ListApmApplicationRequest() +{} + +long ListApmApplicationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListApmApplicationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListApmApplicationRequest::getDiagnoseResult()const +{ + return diagnoseResult_; +} + +void ListApmApplicationRequest::setDiagnoseResult(const std::string& diagnoseResult) +{ + diagnoseResult_ = diagnoseResult; + setCoreParameter("DiagnoseResult", diagnoseResult); +} + +long ListApmApplicationRequest::getEndTimeFrom()const +{ + return endTimeFrom_; +} + +void ListApmApplicationRequest::setEndTimeFrom(long endTimeFrom) +{ + endTimeFrom_ = endTimeFrom; + setCoreParameter("EndTimeFrom", std::to_string(endTimeFrom)); +} + +std::string ListApmApplicationRequest::getOrderBy()const +{ + return orderBy_; +} + +void ListApmApplicationRequest::setOrderBy(const std::string& orderBy) +{ + orderBy_ = orderBy; + setCoreParameter("OrderBy", orderBy); +} + +std::string ListApmApplicationRequest::getClusterId()const +{ + return clusterId_; +} + +void ListApmApplicationRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ListApmApplicationRequest::getJobType()const +{ + return jobType_; +} + +void ListApmApplicationRequest::setJobType(const std::string& jobType) +{ + jobType_ = jobType; + setCoreParameter("JobType", jobType); +} + +int ListApmApplicationRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListApmApplicationRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListApmApplicationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListApmApplicationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListApmApplicationRequest::getFinalStatus()const +{ + return finalStatus_; +} + +void ListApmApplicationRequest::setFinalStatus(const std::string& finalStatus) +{ + finalStatus_ = finalStatus; + setCoreParameter("FinalStatus", finalStatus); +} + +std::string ListApmApplicationRequest::getRegionId()const +{ + return regionId_; +} + +void ListApmApplicationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +long ListApmApplicationRequest::getStartTimeFrom()const +{ + return startTimeFrom_; +} + +void ListApmApplicationRequest::setStartTimeFrom(long startTimeFrom) +{ + startTimeFrom_ = startTimeFrom; + setCoreParameter("StartTimeFrom", std::to_string(startTimeFrom)); +} + +std::string ListApmApplicationRequest::getAppId()const +{ + return appId_; +} + +void ListApmApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string ListApmApplicationRequest::getName()const +{ + return name_; +} + +void ListApmApplicationRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int ListApmApplicationRequest::getPageSize()const +{ + return pageSize_; +} + +void ListApmApplicationRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListApmApplicationRequest::getState()const +{ + return state_; +} + +void ListApmApplicationRequest::setState(const std::string& state) +{ + state_ = state; + setCoreParameter("State", state); +} + +long ListApmApplicationRequest::getStartTimeTo()const +{ + return startTimeTo_; +} + +void ListApmApplicationRequest::setStartTimeTo(long startTimeTo) +{ + startTimeTo_ = startTimeTo; + setCoreParameter("StartTimeTo", std::to_string(startTimeTo)); +} + +std::string ListApmApplicationRequest::getUser()const +{ + return user_; +} + +void ListApmApplicationRequest::setUser(const std::string& user) +{ + user_ = user; + setCoreParameter("User", user); +} + +long ListApmApplicationRequest::getEndTimeTo()const +{ + return endTimeTo_; +} + +void ListApmApplicationRequest::setEndTimeTo(long endTimeTo) +{ + endTimeTo_ = endTimeTo; + setCoreParameter("EndTimeTo", std::to_string(endTimeTo)); +} + +std::string ListApmApplicationRequest::getQueue()const +{ + return queue_; +} + +void ListApmApplicationRequest::setQueue(const std::string& queue) +{ + queue_ = queue; + setCoreParameter("Queue", queue); +} + diff --git a/emr/src/model/ListApmApplicationResult.cc b/emr/src/model/ListApmApplicationResult.cc new file mode 100644 index 000000000..9d2c3a1c4 --- /dev/null +++ b/emr/src/model/ListApmApplicationResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListApmApplicationResult::ListApmApplicationResult() : + ServiceResult() +{} + +ListApmApplicationResult::ListApmApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApmApplicationResult::~ListApmApplicationResult() +{} + +void ListApmApplicationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allApmAppInfoList = value["ApmAppInfoList"]["ApmAppInfo"]; + for (auto value : allApmAppInfoList) + { + ApmAppInfo apmAppInfoListObject; + if(!value["ApplicationId"].isNull()) + apmAppInfoListObject.applicationId = value["ApplicationId"].asString(); + if(!value["ClusterBizId"].isNull()) + apmAppInfoListObject.clusterBizId = value["ClusterBizId"].asString(); + if(!value["ApplicationType"].isNull()) + apmAppInfoListObject.applicationType = value["ApplicationType"].asString(); + if(!value["Name"].isNull()) + apmAppInfoListObject.name = value["Name"].asString(); + if(!value["State"].isNull()) + apmAppInfoListObject.state = value["State"].asString(); + if(!value["FinalStatus"].isNull()) + apmAppInfoListObject.finalStatus = value["FinalStatus"].asString(); + if(!value["Queue"].isNull()) + apmAppInfoListObject.queue = value["Queue"].asString(); + if(!value["User"].isNull()) + apmAppInfoListObject.user = value["User"].asString(); + if(!value["AllocatedVcore"].isNull()) + apmAppInfoListObject.allocatedVcore = std::stol(value["AllocatedVcore"].asString()); + if(!value["AllocatedMemory"].isNull()) + apmAppInfoListObject.allocatedMemory = std::stol(value["AllocatedMemory"].asString()); + if(!value["Progress"].isNull()) + apmAppInfoListObject.progress = std::stof(value["Progress"].asString()); + if(!value["VcoreSeconds"].isNull()) + apmAppInfoListObject.vcoreSeconds = std::stol(value["VcoreSeconds"].asString()); + if(!value["MemorySeconds"].isNull()) + apmAppInfoListObject.memorySeconds = std::stol(value["MemorySeconds"].asString()); + if(!value["StartTime"].isNull()) + apmAppInfoListObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["SubmitTime"].isNull()) + apmAppInfoListObject.submitTime = std::stol(value["SubmitTime"].asString()); + if(!value["FinishedTime"].isNull()) + apmAppInfoListObject.finishedTime = std::stol(value["FinishedTime"].asString()); + if(!value["Duration"].isNull()) + apmAppInfoListObject.duration = std::stoi(value["Duration"].asString()); + if(!value["Diagnostics"].isNull()) + apmAppInfoListObject.diagnostics = value["Diagnostics"].asString(); + if(!value["ClusterUsagePercent"].isNull()) + apmAppInfoListObject.clusterUsagePercent = std::stof(value["ClusterUsagePercent"].asString()); + if(!value["QueueUsagePercent"].isNull()) + apmAppInfoListObject.queueUsagePercent = std::stof(value["QueueUsagePercent"].asString()); + if(!value["RunningContainers"].isNull()) + apmAppInfoListObject.runningContainers = std::stoi(value["RunningContainers"].asString()); + if(!value["RunningDuration"].isNull()) + apmAppInfoListObject.runningDuration = std::stoi(value["RunningDuration"].asString()); + if(!value["ResourceRequests"].isNull()) + apmAppInfoListObject.resourceRequests = value["ResourceRequests"].asString(); + if(!value["DiagnoseResult"].isNull()) + apmAppInfoListObject.diagnoseResult = value["DiagnoseResult"].asString(); + if(!value["DiagnoseCode"].isNull()) + apmAppInfoListObject.diagnoseCode = value["DiagnoseCode"].asString(); + apmAppInfoList_.push_back(apmAppInfoListObject); + } + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +std::vector ListApmApplicationResult::getApmAppInfoList()const +{ + return apmAppInfoList_; +} + +int ListApmApplicationResult::getPageSize()const +{ + return pageSize_; +} + +int ListApmApplicationResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListApmApplicationResult::getTotal()const +{ + return total_; +} + diff --git a/emr/src/model/ListBackupPlansRequest.cc b/emr/src/model/ListBackupPlansRequest.cc new file mode 100644 index 000000000..530447f4e --- /dev/null +++ b/emr/src/model/ListBackupPlansRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListBackupPlansRequest; + +ListBackupPlansRequest::ListBackupPlansRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListBackupPlans") +{} + +ListBackupPlansRequest::~ListBackupPlansRequest() +{} + +long ListBackupPlansRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListBackupPlansRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ListBackupPlansRequest::getPageCount()const +{ + return pageCount_; +} + +void ListBackupPlansRequest::setPageCount(int pageCount) +{ + pageCount_ = pageCount; + setCoreParameter("PageCount", std::to_string(pageCount)); +} + +std::string ListBackupPlansRequest::getOrderMode()const +{ + return orderMode_; +} + +void ListBackupPlansRequest::setOrderMode(const std::string& orderMode) +{ + orderMode_ = orderMode; + setCoreParameter("OrderMode", orderMode); +} + +long ListBackupPlansRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ListBackupPlansRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ListBackupPlansRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ListBackupPlansRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ListBackupPlansRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ListBackupPlansRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ListBackupPlansRequest::getCallerType()const +{ + return callerType_; +} + +void ListBackupPlansRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int ListBackupPlansRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListBackupPlansRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListBackupPlansRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListBackupPlansRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListBackupPlansRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListBackupPlansRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ListBackupPlansRequest::getRegionId()const +{ + return regionId_; +} + +void ListBackupPlansRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListBackupPlansRequest::getLimit()const +{ + return limit_; +} + +void ListBackupPlansRequest::setLimit(int limit) +{ + limit_ = limit; + setCoreParameter("Limit", std::to_string(limit)); +} + +int ListBackupPlansRequest::getPageSize()const +{ + return pageSize_; +} + +void ListBackupPlansRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListBackupPlansRequest::getId()const +{ + return id_; +} + +void ListBackupPlansRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +int ListBackupPlansRequest::getCurrentSize()const +{ + return currentSize_; +} + +void ListBackupPlansRequest::setCurrentSize(int currentSize) +{ + currentSize_ = currentSize; + setCoreParameter("CurrentSize", std::to_string(currentSize)); +} + +long ListBackupPlansRequest::getCallerUid()const +{ + return callerUid_; +} + +void ListBackupPlansRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ListBackupPlansRequest::getOrderField()const +{ + return orderField_; +} + +void ListBackupPlansRequest::setOrderField(const std::string& orderField) +{ + orderField_ = orderField; + setCoreParameter("OrderField", orderField); +} + +std::string ListBackupPlansRequest::getApp_ip()const +{ + return app_ip_; +} + +void ListBackupPlansRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string ListBackupPlansRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListBackupPlansRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string ListBackupPlansRequest::getClusterId()const +{ + return clusterId_; +} + +void ListBackupPlansRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +bool ListBackupPlansRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ListBackupPlansRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ListBackupPlansRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ListBackupPlansRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ListBackupPlansRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ListBackupPlansRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ListBackupPlansRequest::getRequestId()const +{ + return requestId_; +} + +void ListBackupPlansRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string ListBackupPlansRequest::getBizId()const +{ + return bizId_; +} + +void ListBackupPlansRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + +std::string ListBackupPlansRequest::getStatus()const +{ + return status_; +} + +void ListBackupPlansRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/ListBackupPlansResult.cc b/emr/src/model/ListBackupPlansResult.cc new file mode 100644 index 000000000..e970ba336 --- /dev/null +++ b/emr/src/model/ListBackupPlansResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListBackupPlansResult::ListBackupPlansResult() : + ServiceResult() +{} + +ListBackupPlansResult::ListBackupPlansResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBackupPlansResult::~ListBackupPlansResult() +{} + +void ListBackupPlansResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["ClusterId"].isNull()) + itemsObject.clusterId = value["ClusterId"].asString(); + if(!value["RootPath"].isNull()) + itemsObject.rootPath = value["RootPath"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListBackupPlansResult::getTotalCount()const +{ + return totalCount_; +} + +int ListBackupPlansResult::getPageSize()const +{ + return pageSize_; +} + +int ListBackupPlansResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListBackupPlansResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/ListBackupRulesRequest.cc b/emr/src/model/ListBackupRulesRequest.cc new file mode 100644 index 000000000..819c0fc5f --- /dev/null +++ b/emr/src/model/ListBackupRulesRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListBackupRulesRequest; + +ListBackupRulesRequest::ListBackupRulesRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListBackupRules") +{} + +ListBackupRulesRequest::~ListBackupRulesRequest() +{} + +long ListBackupRulesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListBackupRulesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ListBackupRulesRequest::getPageCount()const +{ + return pageCount_; +} + +void ListBackupRulesRequest::setPageCount(int pageCount) +{ + pageCount_ = pageCount; + setCoreParameter("PageCount", std::to_string(pageCount)); +} + +std::string ListBackupRulesRequest::getOrderMode()const +{ + return orderMode_; +} + +void ListBackupRulesRequest::setOrderMode(const std::string& orderMode) +{ + orderMode_ = orderMode; + setCoreParameter("OrderMode", orderMode); +} + +long ListBackupRulesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ListBackupRulesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ListBackupRulesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ListBackupRulesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ListBackupRulesRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void ListBackupRulesRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + +std::string ListBackupRulesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ListBackupRulesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ListBackupRulesRequest::getCallerType()const +{ + return callerType_; +} + +void ListBackupRulesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int ListBackupRulesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListBackupRulesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListBackupRulesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListBackupRulesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListBackupRulesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListBackupRulesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ListBackupRulesRequest::getRegionId()const +{ + return regionId_; +} + +void ListBackupRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListBackupRulesRequest::getLimit()const +{ + return limit_; +} + +void ListBackupRulesRequest::setLimit(int limit) +{ + limit_ = limit; + setCoreParameter("Limit", std::to_string(limit)); +} + +int ListBackupRulesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListBackupRulesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListBackupRulesRequest::getId()const +{ + return id_; +} + +void ListBackupRulesRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +int ListBackupRulesRequest::getCurrentSize()const +{ + return currentSize_; +} + +void ListBackupRulesRequest::setCurrentSize(int currentSize) +{ + currentSize_ = currentSize; + setCoreParameter("CurrentSize", std::to_string(currentSize)); +} + +long ListBackupRulesRequest::getCallerUid()const +{ + return callerUid_; +} + +void ListBackupRulesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ListBackupRulesRequest::getOrderField()const +{ + return orderField_; +} + +void ListBackupRulesRequest::setOrderField(const std::string& orderField) +{ + orderField_ = orderField; + setCoreParameter("OrderField", orderField); +} + +std::string ListBackupRulesRequest::getApp_ip()const +{ + return app_ip_; +} + +void ListBackupRulesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string ListBackupRulesRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListBackupRulesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +bool ListBackupRulesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ListBackupRulesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ListBackupRulesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ListBackupRulesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ListBackupRulesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ListBackupRulesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ListBackupRulesRequest::getRequestId()const +{ + return requestId_; +} + +void ListBackupRulesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string ListBackupRulesRequest::getBizId()const +{ + return bizId_; +} + +void ListBackupRulesRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + +std::string ListBackupRulesRequest::getStatus()const +{ + return status_; +} + +void ListBackupRulesRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/ListBackupRulesResult.cc b/emr/src/model/ListBackupRulesResult.cc new file mode 100644 index 000000000..4bc21d692 --- /dev/null +++ b/emr/src/model/ListBackupRulesResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListBackupRulesResult::ListBackupRulesResult() : + ServiceResult() +{} + +ListBackupRulesResult::ListBackupRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBackupRulesResult::~ListBackupRulesResult() +{} + +void ListBackupRulesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = value["Id"].asString(); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["MetadataType"].isNull()) + itemsObject.metadataType = value["MetadataType"].asString(); + if(!value["BackupMethodType"].isNull()) + itemsObject.backupMethodType = value["BackupMethodType"].asString(); + if(!value["BackupPlanId"].isNull()) + itemsObject.backupPlanId = value["BackupPlanId"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListBackupRulesResult::getTotalCount()const +{ + return totalCount_; +} + +int ListBackupRulesResult::getPageSize()const +{ + return pageSize_; +} + +int ListBackupRulesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListBackupRulesResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/ListBackupsRequest.cc b/emr/src/model/ListBackupsRequest.cc new file mode 100644 index 000000000..6bb166592 --- /dev/null +++ b/emr/src/model/ListBackupsRequest.cc @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListBackupsRequest; + +ListBackupsRequest::ListBackupsRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListBackups") +{} + +ListBackupsRequest::~ListBackupsRequest() +{} + +long ListBackupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListBackupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ListBackupsRequest::getPageCount()const +{ + return pageCount_; +} + +void ListBackupsRequest::setPageCount(int pageCount) +{ + pageCount_ = pageCount; + setCoreParameter("PageCount", std::to_string(pageCount)); +} + +std::string ListBackupsRequest::getOrderMode()const +{ + return orderMode_; +} + +void ListBackupsRequest::setOrderMode(const std::string& orderMode) +{ + orderMode_ = orderMode; + setCoreParameter("OrderMode", orderMode); +} + +long ListBackupsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ListBackupsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ListBackupsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ListBackupsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ListBackupsRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void ListBackupsRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + +std::string ListBackupsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ListBackupsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ListBackupsRequest::getCallerType()const +{ + return callerType_; +} + +void ListBackupsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int ListBackupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListBackupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListBackupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListBackupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListBackupsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListBackupsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ListBackupsRequest::getRegionId()const +{ + return regionId_; +} + +void ListBackupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListBackupsRequest::getLimit()const +{ + return limit_; +} + +void ListBackupsRequest::setLimit(int limit) +{ + limit_ = limit; + setCoreParameter("Limit", std::to_string(limit)); +} + +int ListBackupsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListBackupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListBackupsRequest::getServiceName()const +{ + return serviceName_; +} + +void ListBackupsRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +long ListBackupsRequest::getId()const +{ + return id_; +} + +void ListBackupsRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +int ListBackupsRequest::getCurrentSize()const +{ + return currentSize_; +} + +void ListBackupsRequest::setCurrentSize(int currentSize) +{ + currentSize_ = currentSize; + setCoreParameter("CurrentSize", std::to_string(currentSize)); +} + +long ListBackupsRequest::getCallerUid()const +{ + return callerUid_; +} + +void ListBackupsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ListBackupsRequest::getOrderField()const +{ + return orderField_; +} + +void ListBackupsRequest::setOrderField(const std::string& orderField) +{ + orderField_ = orderField; + setCoreParameter("OrderField", orderField); +} + +std::string ListBackupsRequest::getApp_ip()const +{ + return app_ip_; +} + +void ListBackupsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::vector ListBackupsRequest::getBackupId()const +{ + return backupId_; +} + +void ListBackupsRequest::setBackupId(const std::vector& backupId) +{ + backupId_ = backupId; + for(int i = 0; i!= backupId.size(); i++) + setCoreParameter("BackupId."+ std::to_string(i), backupId.at(i)); +} + +std::string ListBackupsRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListBackupsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string ListBackupsRequest::getClusterId()const +{ + return clusterId_; +} + +void ListBackupsRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ListBackupsRequest::getMetadataType()const +{ + return metadataType_; +} + +void ListBackupsRequest::setMetadataType(const std::string& metadataType) +{ + metadataType_ = metadataType; + setCoreParameter("MetadataType", metadataType); +} + +bool ListBackupsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ListBackupsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ListBackupsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ListBackupsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ListBackupsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ListBackupsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ListBackupsRequest::getRequestId()const +{ + return requestId_; +} + +void ListBackupsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string ListBackupsRequest::getBizId()const +{ + return bizId_; +} + +void ListBackupsRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + +std::string ListBackupsRequest::getStatus()const +{ + return status_; +} + +void ListBackupsRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/ListBackupsResult.cc b/emr/src/model/ListBackupsResult.cc new file mode 100644 index 000000000..6fc7315d0 --- /dev/null +++ b/emr/src/model/ListBackupsResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListBackupsResult::ListBackupsResult() : + ServiceResult() +{} + +ListBackupsResult::ListBackupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBackupsResult::~ListBackupsResult() +{} + +void ListBackupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = value["Id"].asString(); + if(!value["BackupPlanId"].isNull()) + itemsObject.backupPlanId = value["BackupPlanId"].asString(); + if(!value["ClusterId"].isNull()) + itemsObject.clusterId = value["ClusterId"].asString(); + if(!value["CreateTime"].isNull()) + itemsObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["Md5"].isNull()) + itemsObject.md5 = value["Md5"].asString(); + if(!value["TarFileName"].isNull()) + itemsObject.tarFileName = value["TarFileName"].asString(); + if(!value["StorePath"].isNull()) + itemsObject.storePath = value["StorePath"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = value["Status"].asString(); + auto metadataInfoNode = value["MetadataInfo"]; + if(!metadataInfoNode["MetadataType"].isNull()) + itemsObject.metadataInfo.metadataType = metadataInfoNode["MetadataType"].asString(); + if(!metadataInfoNode["Properties"].isNull()) + itemsObject.metadataInfo.properties = metadataInfoNode["Properties"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListBackupsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListBackupsResult::getPageSize()const +{ + return pageSize_; +} + +int ListBackupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListBackupsResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/ListClusterHostComponentForAdminRequest.cc b/emr/src/model/ListClusterHostComponentForAdminRequest.cc new file mode 100644 index 000000000..829d63517 --- /dev/null +++ b/emr/src/model/ListClusterHostComponentForAdminRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListClusterHostComponentForAdminRequest; + +ListClusterHostComponentForAdminRequest::ListClusterHostComponentForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListClusterHostComponentForAdmin") +{} + +ListClusterHostComponentForAdminRequest::~ListClusterHostComponentForAdminRequest() +{} + +long ListClusterHostComponentForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListClusterHostComponentForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListClusterHostComponentForAdminRequest::getHostInstanceId()const +{ + return hostInstanceId_; +} + +void ListClusterHostComponentForAdminRequest::setHostInstanceId(const std::string& hostInstanceId) +{ + hostInstanceId_ = hostInstanceId; + setCoreParameter("HostInstanceId", hostInstanceId); +} + +std::string ListClusterHostComponentForAdminRequest::getComponentName()const +{ + return componentName_; +} + +void ListClusterHostComponentForAdminRequest::setComponentName(const std::string& componentName) +{ + componentName_ = componentName; + setCoreParameter("ComponentName", componentName); +} + +std::string ListClusterHostComponentForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void ListClusterHostComponentForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ListClusterHostComponentForAdminRequest::getUserId()const +{ + return userId_; +} + +void ListClusterHostComponentForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +int ListClusterHostComponentForAdminRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListClusterHostComponentForAdminRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListClusterHostComponentForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListClusterHostComponentForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListClusterHostComponentForAdminRequest::getComponentStatus()const +{ + return componentStatus_; +} + +void ListClusterHostComponentForAdminRequest::setComponentStatus(const std::string& componentStatus) +{ + componentStatus_ = componentStatus; + setCoreParameter("ComponentStatus", componentStatus); +} + +std::string ListClusterHostComponentForAdminRequest::getHostName()const +{ + return hostName_; +} + +void ListClusterHostComponentForAdminRequest::setHostName(const std::string& hostName) +{ + hostName_ = hostName; + setCoreParameter("HostName", hostName); +} + +std::string ListClusterHostComponentForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void ListClusterHostComponentForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListClusterHostComponentForAdminRequest::getPageSize()const +{ + return pageSize_; +} + +void ListClusterHostComponentForAdminRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListClusterHostComponentForAdminRequest::getServiceName()const +{ + return serviceName_; +} + +void ListClusterHostComponentForAdminRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +std::string ListClusterHostComponentForAdminRequest::getHostRole()const +{ + return hostRole_; +} + +void ListClusterHostComponentForAdminRequest::setHostRole(const std::string& hostRole) +{ + hostRole_ = hostRole; + setCoreParameter("HostRole", hostRole); +} + diff --git a/emr/src/model/ListClusterHostComponentForAdminResult.cc b/emr/src/model/ListClusterHostComponentForAdminResult.cc new file mode 100644 index 000000000..92e6a8fb4 --- /dev/null +++ b/emr/src/model/ListClusterHostComponentForAdminResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListClusterHostComponentForAdminResult::ListClusterHostComponentForAdminResult() : + ServiceResult() +{} + +ListClusterHostComponentForAdminResult::ListClusterHostComponentForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterHostComponentForAdminResult::~ListClusterHostComponentForAdminResult() +{} + +void ListClusterHostComponentForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allComponentList = value["ComponentList"]["Component"]; + for (auto value : allComponentList) + { + Component componentListObject; + if(!value["ServiceName"].isNull()) + componentListObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceDisplayName"].isNull()) + componentListObject.serviceDisplayName = value["ServiceDisplayName"].asString(); + if(!value["ComponentName"].isNull()) + componentListObject.componentName = value["ComponentName"].asString(); + if(!value["ComponentDisplayName"].isNull()) + componentListObject.componentDisplayName = value["ComponentDisplayName"].asString(); + if(!value["Status"].isNull()) + componentListObject.status = value["Status"].asString(); + if(!value["NeedRestart"].isNull()) + componentListObject.needRestart = value["NeedRestart"].asString() == "true"; + if(!value["HostId"].isNull()) + componentListObject.hostId = value["HostId"].asString(); + if(!value["ServerStatus"].isNull()) + componentListObject.serverStatus = value["ServerStatus"].asString(); + if(!value["HostName"].isNull()) + componentListObject.hostName = value["HostName"].asString(); + if(!value["PublicIp"].isNull()) + componentListObject.publicIp = value["PublicIp"].asString(); + if(!value["PrivateIp"].isNull()) + componentListObject.privateIp = value["PrivateIp"].asString(); + if(!value["Role"].isNull()) + componentListObject.role = value["Role"].asString(); + if(!value["InstanceType"].isNull()) + componentListObject.instanceType = value["InstanceType"].asString(); + if(!value["Cpu"].isNull()) + componentListObject.cpu = std::stoi(value["Cpu"].asString()); + if(!value["Memory"].isNull()) + componentListObject.memory = std::stoi(value["Memory"].asString()); + if(!value["HostInstanceId"].isNull()) + componentListObject.hostInstanceId = value["HostInstanceId"].asString(); + if(!value["SerialNumber"].isNull()) + componentListObject.serialNumber = value["SerialNumber"].asString(); + componentList_.push_back(componentListObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +int ListClusterHostComponentForAdminResult::getPageSize()const +{ + return pageSize_; +} + +int ListClusterHostComponentForAdminResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListClusterHostComponentForAdminResult::getTotal()const +{ + return total_; +} + +std::vector ListClusterHostComponentForAdminResult::getComponentList()const +{ + return componentList_; +} + diff --git a/emr/src/model/ListClusterHostComponentRequest.cc b/emr/src/model/ListClusterHostComponentRequest.cc index ee519da48..d965c8502 100644 --- a/emr/src/model/ListClusterHostComponentRequest.cc +++ b/emr/src/model/ListClusterHostComponentRequest.cc @@ -33,7 +33,7 @@ long ListClusterHostComponentRequest::getResourceOwnerId()const void ListClusterHostComponentRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterHostComponentRequest::getHostName()const @@ -44,7 +44,7 @@ std::string ListClusterHostComponentRequest::getHostName()const void ListClusterHostComponentRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string ListClusterHostComponentRequest::getHostInstanceId()const @@ -55,7 +55,7 @@ std::string ListClusterHostComponentRequest::getHostInstanceId()const void ListClusterHostComponentRequest::setHostInstanceId(const std::string& hostInstanceId) { hostInstanceId_ = hostInstanceId; - setParameter("HostInstanceId", hostInstanceId); + setCoreParameter("HostInstanceId", hostInstanceId); } std::string ListClusterHostComponentRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ListClusterHostComponentRequest::getRegionId()const void ListClusterHostComponentRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListClusterHostComponentRequest::getPageSize()const @@ -77,7 +77,7 @@ int ListClusterHostComponentRequest::getPageSize()const void ListClusterHostComponentRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListClusterHostComponentRequest::getComponentName()const @@ -88,7 +88,7 @@ std::string ListClusterHostComponentRequest::getComponentName()const void ListClusterHostComponentRequest::setComponentName(const std::string& componentName) { componentName_ = componentName; - setParameter("ComponentName", componentName); + setCoreParameter("ComponentName", componentName); } std::string ListClusterHostComponentRequest::getServiceName()const @@ -99,7 +99,7 @@ std::string ListClusterHostComponentRequest::getServiceName()const void ListClusterHostComponentRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListClusterHostComponentRequest::getClusterId()const @@ -110,7 +110,7 @@ std::string ListClusterHostComponentRequest::getClusterId()const void ListClusterHostComponentRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListClusterHostComponentRequest::getHostRole()const @@ -121,7 +121,7 @@ std::string ListClusterHostComponentRequest::getHostRole()const void ListClusterHostComponentRequest::setHostRole(const std::string& hostRole) { hostRole_ = hostRole; - setParameter("HostRole", hostRole); + setCoreParameter("HostRole", hostRole); } int ListClusterHostComponentRequest::getPageNumber()const @@ -132,7 +132,7 @@ int ListClusterHostComponentRequest::getPageNumber()const void ListClusterHostComponentRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterHostComponentRequest::getAccessKeyId()const @@ -143,7 +143,7 @@ std::string ListClusterHostComponentRequest::getAccessKeyId()const void ListClusterHostComponentRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListClusterHostComponentRequest::getComponentStatus()const @@ -154,6 +154,6 @@ std::string ListClusterHostComponentRequest::getComponentStatus()const void ListClusterHostComponentRequest::setComponentStatus(const std::string& componentStatus) { componentStatus_ = componentStatus; - setParameter("ComponentStatus", componentStatus); + setCoreParameter("ComponentStatus", componentStatus); } diff --git a/emr/src/model/ListClusterHostComponentResult.cc b/emr/src/model/ListClusterHostComponentResult.cc index a802e5f55..968ba1ecd 100644 --- a/emr/src/model/ListClusterHostComponentResult.cc +++ b/emr/src/model/ListClusterHostComponentResult.cc @@ -35,10 +35,13 @@ ListClusterHostComponentResult::~ListClusterHostComponentResult() void ListClusterHostComponentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allComponentList = value["ComponentList"]["Component"]; for (auto value : allComponentList) diff --git a/emr/src/model/ListClusterHostGroupRequest.cc b/emr/src/model/ListClusterHostGroupRequest.cc index 843a80214..9e130c26c 100644 --- a/emr/src/model/ListClusterHostGroupRequest.cc +++ b/emr/src/model/ListClusterHostGroupRequest.cc @@ -33,7 +33,7 @@ long ListClusterHostGroupRequest::getResourceOwnerId()const void ListClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector ListClusterHostGroupRequest::getStatusList()const @@ -45,7 +45,7 @@ void ListClusterHostGroupRequest::setStatusList(const std::vector& { statusList_ = statusList; for(int i = 0; i!= statusList.size(); i++) - setParameter("StatusList."+ std::to_string(i), statusList.at(i)); + setCoreParameter("StatusList."+ std::to_string(i), statusList.at(i)); } std::string ListClusterHostGroupRequest::getRegionId()const @@ -56,7 +56,7 @@ std::string ListClusterHostGroupRequest::getRegionId()const void ListClusterHostGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterHostGroupRequest::getHostGroupId()const @@ -67,7 +67,7 @@ std::string ListClusterHostGroupRequest::getHostGroupId()const void ListClusterHostGroupRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } int ListClusterHostGroupRequest::getPageSize()const @@ -78,7 +78,7 @@ int ListClusterHostGroupRequest::getPageSize()const void ListClusterHostGroupRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListClusterHostGroupRequest::getClusterId()const @@ -89,7 +89,7 @@ std::string ListClusterHostGroupRequest::getClusterId()const void ListClusterHostGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListClusterHostGroupRequest::getHostGroupName()const @@ -100,7 +100,7 @@ std::string ListClusterHostGroupRequest::getHostGroupName()const void ListClusterHostGroupRequest::setHostGroupName(const std::string& hostGroupName) { hostGroupName_ = hostGroupName; - setParameter("HostGroupName", hostGroupName); + setCoreParameter("HostGroupName", hostGroupName); } std::string ListClusterHostGroupRequest::getHostGroupType()const @@ -111,7 +111,7 @@ std::string ListClusterHostGroupRequest::getHostGroupType()const void ListClusterHostGroupRequest::setHostGroupType(const std::string& hostGroupType) { hostGroupType_ = hostGroupType; - setParameter("HostGroupType", hostGroupType); + setCoreParameter("HostGroupType", hostGroupType); } int ListClusterHostGroupRequest::getPageNumber()const @@ -122,7 +122,7 @@ int ListClusterHostGroupRequest::getPageNumber()const void ListClusterHostGroupRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterHostGroupRequest::getAccessKeyId()const @@ -133,6 +133,6 @@ std::string ListClusterHostGroupRequest::getAccessKeyId()const void ListClusterHostGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterHostGroupResult.cc b/emr/src/model/ListClusterHostGroupResult.cc index 5fd0aee8a..627bca2b1 100644 --- a/emr/src/model/ListClusterHostGroupResult.cc +++ b/emr/src/model/ListClusterHostGroupResult.cc @@ -35,10 +35,13 @@ ListClusterHostGroupResult::~ListClusterHostGroupResult() void ListClusterHostGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHostGroupList = value["HostGroupList"]["HostGroup"]; for (auto value : allHostGroupList) @@ -78,6 +81,8 @@ void ListClusterHostGroupResult::parse(const std::string &payload) hostGroupListObject.lockReason = value["LockReason"].asString(); if(!value["PayType"].isNull()) hostGroupListObject.payType = value["PayType"].asString(); + if(!value["ChargeType"].isNull()) + hostGroupListObject.chargeType = value["ChargeType"].asString(); if(!value["NodeCount"].isNull()) hostGroupListObject.nodeCount = std::stoi(value["NodeCount"].asString()); if(!value["VswitchId"].isNull()) @@ -90,6 +95,10 @@ void ListClusterHostGroupResult::parse(const std::string &payload) hostGroupListObject.gmtCreate = value["gmtCreate"].asString(); if(!value["gmtModified"].isNull()) hostGroupListObject.gmtModified = value["gmtModified"].asString(); + if(!value["HostGroupChangeType"].isNull()) + hostGroupListObject.hostGroupChangeType = value["HostGroupChangeType"].asString(); + if(!value["HostGroupChangeStatus"].isNull()) + hostGroupListObject.hostGroupChangeStatus = value["HostGroupChangeStatus"].asString(); hostGroupList_.push_back(hostGroupListObject); } if(!value["PageNumber"].isNull()) diff --git a/emr/src/model/ListClusterHostRequest.cc b/emr/src/model/ListClusterHostRequest.cc index 493a5602b..2fa116866 100644 --- a/emr/src/model/ListClusterHostRequest.cc +++ b/emr/src/model/ListClusterHostRequest.cc @@ -33,7 +33,7 @@ long ListClusterHostRequest::getResourceOwnerId()const void ListClusterHostRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterHostRequest::getHostInstanceId()const @@ -44,7 +44,7 @@ std::string ListClusterHostRequest::getHostInstanceId()const void ListClusterHostRequest::setHostInstanceId(const std::string& hostInstanceId) { hostInstanceId_ = hostInstanceId; - setParameter("HostInstanceId", hostInstanceId); + setCoreParameter("HostInstanceId", hostInstanceId); } std::vector ListClusterHostRequest::getStatusList()const @@ -56,7 +56,7 @@ void ListClusterHostRequest::setStatusList(const std::vector& statu { statusList_ = statusList; for(int i = 0; i!= statusList.size(); i++) - setParameter("StatusList."+ std::to_string(i), statusList.at(i)); + setCoreParameter("StatusList."+ std::to_string(i), statusList.at(i)); } std::string ListClusterHostRequest::getPrivateIp()const @@ -67,7 +67,7 @@ std::string ListClusterHostRequest::getPrivateIp()const void ListClusterHostRequest::setPrivateIp(const std::string& privateIp) { privateIp_ = privateIp; - setParameter("PrivateIp", privateIp); + setCoreParameter("PrivateIp", privateIp); } std::string ListClusterHostRequest::getComponentName()const @@ -78,7 +78,7 @@ std::string ListClusterHostRequest::getComponentName()const void ListClusterHostRequest::setComponentName(const std::string& componentName) { componentName_ = componentName; - setParameter("ComponentName", componentName); + setCoreParameter("ComponentName", componentName); } std::string ListClusterHostRequest::getPublicIp()const @@ -89,7 +89,7 @@ std::string ListClusterHostRequest::getPublicIp()const void ListClusterHostRequest::setPublicIp(const std::string& publicIp) { publicIp_ = publicIp; - setParameter("PublicIp", publicIp); + setCoreParameter("PublicIp", publicIp); } std::string ListClusterHostRequest::getClusterId()const @@ -100,7 +100,7 @@ std::string ListClusterHostRequest::getClusterId()const void ListClusterHostRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListClusterHostRequest::getPageNumber()const @@ -111,7 +111,7 @@ int ListClusterHostRequest::getPageNumber()const void ListClusterHostRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterHostRequest::getAccessKeyId()const @@ -122,7 +122,7 @@ std::string ListClusterHostRequest::getAccessKeyId()const void ListClusterHostRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListClusterHostRequest::getHostName()const @@ -133,7 +133,7 @@ std::string ListClusterHostRequest::getHostName()const void ListClusterHostRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string ListClusterHostRequest::getGroupType()const @@ -144,7 +144,7 @@ std::string ListClusterHostRequest::getGroupType()const void ListClusterHostRequest::setGroupType(const std::string& groupType) { groupType_ = groupType; - setParameter("GroupType", groupType); + setCoreParameter("GroupType", groupType); } std::string ListClusterHostRequest::getRegionId()const @@ -155,7 +155,7 @@ std::string ListClusterHostRequest::getRegionId()const void ListClusterHostRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterHostRequest::getHostGroupId()const @@ -166,7 +166,7 @@ std::string ListClusterHostRequest::getHostGroupId()const void ListClusterHostRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } int ListClusterHostRequest::getPageSize()const @@ -177,6 +177,6 @@ int ListClusterHostRequest::getPageSize()const void ListClusterHostRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } diff --git a/emr/src/model/ListClusterHostResult.cc b/emr/src/model/ListClusterHostResult.cc index 26f9db41b..f87bd1581 100644 --- a/emr/src/model/ListClusterHostResult.cc +++ b/emr/src/model/ListClusterHostResult.cc @@ -35,10 +35,13 @@ ListClusterHostResult::~ListClusterHostResult() void ListClusterHostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHostList = value["HostList"]["Host"]; for (auto value : allHostList) @@ -52,6 +55,8 @@ void ListClusterHostResult::parse(const std::string &payload) hostListObject.privateIp = value["PrivateIp"].asString(); if(!value["Role"].isNull()) hostListObject.role = value["Role"].asString(); + if(!value["ZoneId"].isNull()) + hostListObject.zoneId = value["ZoneId"].asString(); if(!value["InstanceType"].isNull()) hostListObject.instanceType = value["InstanceType"].asString(); if(!value["Cpu"].isNull()) @@ -88,6 +93,8 @@ void ListClusterHostResult::parse(const std::string &payload) diskListObject.diskId = value["DiskId"].asString(); if(!value["Type"].isNull()) diskListObject.type = value["Type"].asString(); + if(!value["Device"].isNull()) + diskListObject.device = value["Device"].asString(); if(!value["DiskType"].isNull()) diskListObject.diskType = value["DiskType"].asString(); if(!value["DiskSize"].isNull()) diff --git a/emr/src/model/ListClusterInstalledServiceRequest.cc b/emr/src/model/ListClusterInstalledServiceRequest.cc new file mode 100644 index 000000000..fe4d6787b --- /dev/null +++ b/emr/src/model/ListClusterInstalledServiceRequest.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 + +using AlibabaCloud::Emr::Model::ListClusterInstalledServiceRequest; + +ListClusterInstalledServiceRequest::ListClusterInstalledServiceRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListClusterInstalledService") +{} + +ListClusterInstalledServiceRequest::~ListClusterInstalledServiceRequest() +{} + +long ListClusterInstalledServiceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListClusterInstalledServiceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListClusterInstalledServiceRequest::getRegionId()const +{ + return regionId_; +} + +void ListClusterInstalledServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListClusterInstalledServiceRequest::getPageSize()const +{ + return pageSize_; +} + +void ListClusterInstalledServiceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListClusterInstalledServiceRequest::getClusterId()const +{ + return clusterId_; +} + +void ListClusterInstalledServiceRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +int ListClusterInstalledServiceRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListClusterInstalledServiceRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListClusterInstalledServiceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListClusterInstalledServiceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListClusterInstalledServiceResult.cc b/emr/src/model/ListClusterInstalledServiceResult.cc new file mode 100644 index 000000000..572899865 --- /dev/null +++ b/emr/src/model/ListClusterInstalledServiceResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListClusterInstalledServiceResult::ListClusterInstalledServiceResult() : + ServiceResult() +{} + +ListClusterInstalledServiceResult::ListClusterInstalledServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterInstalledServiceResult::~ListClusterInstalledServiceResult() +{} + +void ListClusterInstalledServiceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allClusterInstalledServiceList = value["ClusterInstalledServiceList"]["ClusterInstalledService"]; + for (auto value : allClusterInstalledServiceList) + { + ClusterInstalledService clusterInstalledServiceListObject; + if(!value["ServiceName"].isNull()) + clusterInstalledServiceListObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceDisplayName"].isNull()) + clusterInstalledServiceListObject.serviceDisplayName = value["ServiceDisplayName"].asString(); + if(!value["ServiceVersion"].isNull()) + clusterInstalledServiceListObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["ServiceEcmVersion"].isNull()) + clusterInstalledServiceListObject.serviceEcmVersion = value["ServiceEcmVersion"].asString(); + if(!value["serviceStatus"].isNull()) + clusterInstalledServiceListObject.serviceStatus = value["serviceStatus"].asString(); + if(!value["onlyClient"].isNull()) + clusterInstalledServiceListObject.onlyClient = value["onlyClient"].asString() == "true"; + if(!value["notStartedNum"].isNull()) + clusterInstalledServiceListObject.notStartedNum = std::stoi(value["notStartedNum"].asString()); + if(!value["needRestartNum"].isNull()) + clusterInstalledServiceListObject.needRestartNum = std::stoi(value["needRestartNum"].asString()); + if(!value["abnormalNum"].isNull()) + clusterInstalledServiceListObject.abnormalNum = std::stoi(value["abnormalNum"].asString()); + if(!value["comment"].isNull()) + clusterInstalledServiceListObject.comment = value["comment"].asString(); + auto allServiceActionList = value["ServiceActionList"]["ServiceAction"]; + for (auto value : allServiceActionList) + { + ClusterInstalledService::ServiceAction serviceActionListObject; + if(!value["ServiceName"].isNull()) + serviceActionListObject.serviceName = value["ServiceName"].asString(); + if(!value["ComponentName"].isNull()) + serviceActionListObject.componentName = value["ComponentName"].asString(); + if(!value["ActionName"].isNull()) + serviceActionListObject.actionName = value["ActionName"].asString(); + if(!value["Command"].isNull()) + serviceActionListObject.command = value["Command"].asString(); + if(!value["DisplayName"].isNull()) + serviceActionListObject.displayName = value["DisplayName"].asString(); + clusterInstalledServiceListObject.serviceActionList.push_back(serviceActionListObject); + } + clusterInstalledServiceList_.push_back(clusterInstalledServiceListObject); + } + +} + +std::vector ListClusterInstalledServiceResult::getClusterInstalledServiceList()const +{ + return clusterInstalledServiceList_; +} + diff --git a/emr/src/model/ListClusterOperationHostRequest.cc b/emr/src/model/ListClusterOperationHostRequest.cc index cf85975c0..bdd3a7fb5 100644 --- a/emr/src/model/ListClusterOperationHostRequest.cc +++ b/emr/src/model/ListClusterOperationHostRequest.cc @@ -33,7 +33,7 @@ long ListClusterOperationHostRequest::getResourceOwnerId()const void ListClusterOperationHostRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterOperationHostRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterOperationHostRequest::getRegionId()const void ListClusterOperationHostRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListClusterOperationHostRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListClusterOperationHostRequest::getPageSize()const void ListClusterOperationHostRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListClusterOperationHostRequest::getOperationId()const @@ -66,7 +66,7 @@ std::string ListClusterOperationHostRequest::getOperationId()const void ListClusterOperationHostRequest::setOperationId(const std::string& operationId) { operationId_ = operationId; - setParameter("OperationId", operationId); + setCoreParameter("OperationId", operationId); } std::string ListClusterOperationHostRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListClusterOperationHostRequest::getClusterId()const void ListClusterOperationHostRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListClusterOperationHostRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListClusterOperationHostRequest::getPageNumber()const void ListClusterOperationHostRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterOperationHostRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ListClusterOperationHostRequest::getAccessKeyId()const void ListClusterOperationHostRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListClusterOperationHostRequest::getStatus()const @@ -110,6 +110,6 @@ std::string ListClusterOperationHostRequest::getStatus()const void ListClusterOperationHostRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/emr/src/model/ListClusterOperationHostResult.cc b/emr/src/model/ListClusterOperationHostResult.cc index d04698ba2..106578870 100644 --- a/emr/src/model/ListClusterOperationHostResult.cc +++ b/emr/src/model/ListClusterOperationHostResult.cc @@ -35,10 +35,13 @@ ListClusterOperationHostResult::~ListClusterOperationHostResult() void ListClusterOperationHostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterOperationHostList = value["ClusterOperationHostList"]["ClusterOperationHost"]; for (auto value : allClusterOperationHostList) diff --git a/emr/src/model/ListClusterOperationHostTaskRequest.cc b/emr/src/model/ListClusterOperationHostTaskRequest.cc index 07184d62f..e4e866063 100644 --- a/emr/src/model/ListClusterOperationHostTaskRequest.cc +++ b/emr/src/model/ListClusterOperationHostTaskRequest.cc @@ -33,7 +33,7 @@ long ListClusterOperationHostTaskRequest::getResourceOwnerId()const void ListClusterOperationHostTaskRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterOperationHostTaskRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterOperationHostTaskRequest::getRegionId()const void ListClusterOperationHostTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListClusterOperationHostTaskRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListClusterOperationHostTaskRequest::getPageSize()const void ListClusterOperationHostTaskRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListClusterOperationHostTaskRequest::getOperationId()const @@ -66,7 +66,7 @@ std::string ListClusterOperationHostTaskRequest::getOperationId()const void ListClusterOperationHostTaskRequest::setOperationId(const std::string& operationId) { operationId_ = operationId; - setParameter("OperationId", operationId); + setCoreParameter("OperationId", operationId); } std::string ListClusterOperationHostTaskRequest::getHostId()const @@ -77,7 +77,7 @@ std::string ListClusterOperationHostTaskRequest::getHostId()const void ListClusterOperationHostTaskRequest::setHostId(const std::string& hostId) { hostId_ = hostId; - setParameter("HostId", hostId); + setCoreParameter("HostId", hostId); } std::string ListClusterOperationHostTaskRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string ListClusterOperationHostTaskRequest::getClusterId()const void ListClusterOperationHostTaskRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListClusterOperationHostTaskRequest::getPageNumber()const @@ -99,7 +99,7 @@ int ListClusterOperationHostTaskRequest::getPageNumber()const void ListClusterOperationHostTaskRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterOperationHostTaskRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string ListClusterOperationHostTaskRequest::getAccessKeyId()const void ListClusterOperationHostTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListClusterOperationHostTaskRequest::getStatus()const @@ -121,6 +121,6 @@ std::string ListClusterOperationHostTaskRequest::getStatus()const void ListClusterOperationHostTaskRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/emr/src/model/ListClusterOperationHostTaskResult.cc b/emr/src/model/ListClusterOperationHostTaskResult.cc index 52276d485..4b75daefb 100644 --- a/emr/src/model/ListClusterOperationHostTaskResult.cc +++ b/emr/src/model/ListClusterOperationHostTaskResult.cc @@ -35,10 +35,13 @@ ListClusterOperationHostTaskResult::~ListClusterOperationHostTaskResult() void ListClusterOperationHostTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterOperationHostTaskList = value["ClusterOperationHostTaskList"]["ClusterOperationHostTask"]; for (auto value : allClusterOperationHostTaskList) diff --git a/emr/src/model/ListClusterOperationRequest.cc b/emr/src/model/ListClusterOperationRequest.cc index 870a9cd2c..34acaa408 100644 --- a/emr/src/model/ListClusterOperationRequest.cc +++ b/emr/src/model/ListClusterOperationRequest.cc @@ -33,7 +33,7 @@ long ListClusterOperationRequest::getResourceOwnerId()const void ListClusterOperationRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterOperationRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterOperationRequest::getRegionId()const void ListClusterOperationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListClusterOperationRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListClusterOperationRequest::getPageSize()const void ListClusterOperationRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListClusterOperationRequest::getServiceName()const @@ -66,7 +66,7 @@ std::string ListClusterOperationRequest::getServiceName()const void ListClusterOperationRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListClusterOperationRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListClusterOperationRequest::getClusterId()const void ListClusterOperationRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListClusterOperationRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListClusterOperationRequest::getPageNumber()const void ListClusterOperationRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterOperationRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ListClusterOperationRequest::getAccessKeyId()const void ListClusterOperationRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListClusterOperationRequest::getStatus()const @@ -110,6 +110,6 @@ std::string ListClusterOperationRequest::getStatus()const void ListClusterOperationRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/emr/src/model/ListClusterOperationResult.cc b/emr/src/model/ListClusterOperationResult.cc index bf5413a9e..ed7e592dc 100644 --- a/emr/src/model/ListClusterOperationResult.cc +++ b/emr/src/model/ListClusterOperationResult.cc @@ -35,10 +35,13 @@ ListClusterOperationResult::~ListClusterOperationResult() void ListClusterOperationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterOperationList = value["ClusterOperationList"]["ClusterOperation"]; for (auto value : allClusterOperationList) diff --git a/emr/src/model/ListClusterScriptsRequest.cc b/emr/src/model/ListClusterScriptsRequest.cc index 62a9428bb..2b7ee44ae 100644 --- a/emr/src/model/ListClusterScriptsRequest.cc +++ b/emr/src/model/ListClusterScriptsRequest.cc @@ -33,7 +33,7 @@ long ListClusterScriptsRequest::getResourceOwnerId()const void ListClusterScriptsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterScriptsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterScriptsRequest::getRegionId()const void ListClusterScriptsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterScriptsRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string ListClusterScriptsRequest::getClusterId()const void ListClusterScriptsRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListClusterScriptsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListClusterScriptsRequest::getAccessKeyId()const void ListClusterScriptsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterScriptsResult.cc b/emr/src/model/ListClusterScriptsResult.cc index 5c151d704..2ac514738 100644 --- a/emr/src/model/ListClusterScriptsResult.cc +++ b/emr/src/model/ListClusterScriptsResult.cc @@ -35,10 +35,13 @@ ListClusterScriptsResult::~ListClusterScriptsResult() void ListClusterScriptsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterScripts = value["ClusterScripts"]["ClusterScript"]; for (auto value : allClusterScripts) diff --git a/emr/src/model/ListClusterServiceComponentHealthInfoRequest.cc b/emr/src/model/ListClusterServiceComponentHealthInfoRequest.cc index 6cf460e6b..5516e4d92 100644 --- a/emr/src/model/ListClusterServiceComponentHealthInfoRequest.cc +++ b/emr/src/model/ListClusterServiceComponentHealthInfoRequest.cc @@ -33,7 +33,7 @@ long ListClusterServiceComponentHealthInfoRequest::getResourceOwnerId()const void ListClusterServiceComponentHealthInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterServiceComponentHealthInfoRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterServiceComponentHealthInfoRequest::getRegionId()const void ListClusterServiceComponentHealthInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterServiceComponentHealthInfoRequest::getServiceName()const @@ -55,7 +55,7 @@ std::string ListClusterServiceComponentHealthInfoRequest::getServiceName()const void ListClusterServiceComponentHealthInfoRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListClusterServiceComponentHealthInfoRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string ListClusterServiceComponentHealthInfoRequest::getClusterId()const void ListClusterServiceComponentHealthInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListClusterServiceComponentHealthInfoRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListClusterServiceComponentHealthInfoRequest::getAccessKeyId()const void ListClusterServiceComponentHealthInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterServiceComponentHealthInfoResult.cc b/emr/src/model/ListClusterServiceComponentHealthInfoResult.cc index a58b05f2e..bc7ea871d 100644 --- a/emr/src/model/ListClusterServiceComponentHealthInfoResult.cc +++ b/emr/src/model/ListClusterServiceComponentHealthInfoResult.cc @@ -35,10 +35,13 @@ ListClusterServiceComponentHealthInfoResult::~ListClusterServiceComponentHealthI void ListClusterServiceComponentHealthInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHealthInfoList = value["HealthInfoList"]["HealthInfo"]; for (auto value : allHealthInfoList) diff --git a/emr/src/model/ListClusterServiceConfigHistoryForAdminRequest.cc b/emr/src/model/ListClusterServiceConfigHistoryForAdminRequest.cc new file mode 100644 index 000000000..c7997d239 --- /dev/null +++ b/emr/src/model/ListClusterServiceConfigHistoryForAdminRequest.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::Emr::Model::ListClusterServiceConfigHistoryForAdminRequest; + +ListClusterServiceConfigHistoryForAdminRequest::ListClusterServiceConfigHistoryForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListClusterServiceConfigHistoryForAdmin") +{} + +ListClusterServiceConfigHistoryForAdminRequest::~ListClusterServiceConfigHistoryForAdminRequest() +{} + +long ListClusterServiceConfigHistoryForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListClusterServiceConfigHistoryForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListClusterServiceConfigHistoryForAdminRequest::getPageSize()const +{ + return pageSize_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListClusterServiceConfigHistoryForAdminRequest::getServiceName()const +{ + return serviceName_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +std::string ListClusterServiceConfigHistoryForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ListClusterServiceConfigHistoryForAdminRequest::getUserId()const +{ + return userId_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +int ListClusterServiceConfigHistoryForAdminRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListClusterServiceConfigHistoryForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListClusterServiceConfigHistoryForAdminRequest::getConfigVersion()const +{ + return configVersion_; +} + +void ListClusterServiceConfigHistoryForAdminRequest::setConfigVersion(const std::string& configVersion) +{ + configVersion_ = configVersion; + setCoreParameter("ConfigVersion", configVersion); +} + diff --git a/emr/src/model/ListClusterServiceConfigHistoryForAdminResult.cc b/emr/src/model/ListClusterServiceConfigHistoryForAdminResult.cc new file mode 100644 index 000000000..d44578d49 --- /dev/null +++ b/emr/src/model/ListClusterServiceConfigHistoryForAdminResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListClusterServiceConfigHistoryForAdminResult::ListClusterServiceConfigHistoryForAdminResult() : + ServiceResult() +{} + +ListClusterServiceConfigHistoryForAdminResult::ListClusterServiceConfigHistoryForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterServiceConfigHistoryForAdminResult::~ListClusterServiceConfigHistoryForAdminResult() +{} + +void ListClusterServiceConfigHistoryForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allConfigHistoryList = value["ConfigHistoryList"]["ConfigHistory"]; + for (auto value : allConfigHistoryList) + { + ConfigHistory configHistoryListObject; + if(!value["ServiceName"].isNull()) + configHistoryListObject.serviceName = value["ServiceName"].asString(); + if(!value["ConfigVersion"].isNull()) + configHistoryListObject.configVersion = value["ConfigVersion"].asString(); + if(!value["ConfigFileName"].isNull()) + configHistoryListObject.configFileName = value["ConfigFileName"].asString(); + if(!value["ConfigItemName"].isNull()) + configHistoryListObject.configItemName = value["ConfigItemName"].asString(); + if(!value["NewValue"].isNull()) + configHistoryListObject.newValue = value["NewValue"].asString(); + if(!value["OldValue"].isNull()) + configHistoryListObject.oldValue = value["OldValue"].asString(); + if(!value["Applied"].isNull()) + configHistoryListObject.applied = value["Applied"].asString() == "true"; + if(!value["CreateTime"].isNull()) + configHistoryListObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["Author"].isNull()) + configHistoryListObject.author = value["Author"].asString(); + if(!value["Comment"].isNull()) + configHistoryListObject.comment = value["Comment"].asString(); + configHistoryList_.push_back(configHistoryListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::vector ListClusterServiceConfigHistoryForAdminResult::getConfigHistoryList()const +{ + return configHistoryList_; +} + +int ListClusterServiceConfigHistoryForAdminResult::getTotalCount()const +{ + return totalCount_; +} + +int ListClusterServiceConfigHistoryForAdminResult::getPageSize()const +{ + return pageSize_; +} + +int ListClusterServiceConfigHistoryForAdminResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/emr/src/model/ListClusterServiceConfigHistoryRequest.cc b/emr/src/model/ListClusterServiceConfigHistoryRequest.cc index 26b4e7cf0..dde641b21 100644 --- a/emr/src/model/ListClusterServiceConfigHistoryRequest.cc +++ b/emr/src/model/ListClusterServiceConfigHistoryRequest.cc @@ -33,7 +33,7 @@ long ListClusterServiceConfigHistoryRequest::getResourceOwnerId()const void ListClusterServiceConfigHistoryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterServiceConfigHistoryRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterServiceConfigHistoryRequest::getRegionId()const void ListClusterServiceConfigHistoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListClusterServiceConfigHistoryRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListClusterServiceConfigHistoryRequest::getPageSize()const void ListClusterServiceConfigHistoryRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListClusterServiceConfigHistoryRequest::getServiceName()const @@ -66,7 +66,7 @@ std::string ListClusterServiceConfigHistoryRequest::getServiceName()const void ListClusterServiceConfigHistoryRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListClusterServiceConfigHistoryRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListClusterServiceConfigHistoryRequest::getClusterId()const void ListClusterServiceConfigHistoryRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListClusterServiceConfigHistoryRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListClusterServiceConfigHistoryRequest::getPageNumber()const void ListClusterServiceConfigHistoryRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterServiceConfigHistoryRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ListClusterServiceConfigHistoryRequest::getAccessKeyId()const void ListClusterServiceConfigHistoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListClusterServiceConfigHistoryRequest::getConfigVersion()const @@ -110,6 +110,6 @@ std::string ListClusterServiceConfigHistoryRequest::getConfigVersion()const void ListClusterServiceConfigHistoryRequest::setConfigVersion(const std::string& configVersion) { configVersion_ = configVersion; - setParameter("ConfigVersion", configVersion); + setCoreParameter("ConfigVersion", configVersion); } diff --git a/emr/src/model/ListClusterServiceConfigHistoryResult.cc b/emr/src/model/ListClusterServiceConfigHistoryResult.cc index 09b57eaac..8e9c8f71b 100644 --- a/emr/src/model/ListClusterServiceConfigHistoryResult.cc +++ b/emr/src/model/ListClusterServiceConfigHistoryResult.cc @@ -35,10 +35,13 @@ ListClusterServiceConfigHistoryResult::~ListClusterServiceConfigHistoryResult() void ListClusterServiceConfigHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigHistoryList = value["ConfigHistoryList"]["ConfigHistory"]; for (auto value : allConfigHistoryList) diff --git a/emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.cc b/emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.cc new file mode 100644 index 000000000..5cf1884d7 --- /dev/null +++ b/emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminRequest.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 + +using AlibabaCloud::Emr::Model::ListClusterServiceCustomActionSupportConfigForAdminRequest; + +ListClusterServiceCustomActionSupportConfigForAdminRequest::ListClusterServiceCustomActionSupportConfigForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListClusterServiceCustomActionSupportConfigForAdmin") +{} + +ListClusterServiceCustomActionSupportConfigForAdminRequest::~ListClusterServiceCustomActionSupportConfigForAdminRequest() +{} + +std::string ListClusterServiceCustomActionSupportConfigForAdminRequest::getServiceCustomActionName()const +{ + return serviceCustomActionName_; +} + +void ListClusterServiceCustomActionSupportConfigForAdminRequest::setServiceCustomActionName(const std::string& serviceCustomActionName) +{ + serviceCustomActionName_ = serviceCustomActionName; + setCoreParameter("ServiceCustomActionName", serviceCustomActionName); +} + +long ListClusterServiceCustomActionSupportConfigForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListClusterServiceCustomActionSupportConfigForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListClusterServiceCustomActionSupportConfigForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void ListClusterServiceCustomActionSupportConfigForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListClusterServiceCustomActionSupportConfigForAdminRequest::getServiceName()const +{ + return serviceName_; +} + +void ListClusterServiceCustomActionSupportConfigForAdminRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +std::string ListClusterServiceCustomActionSupportConfigForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void ListClusterServiceCustomActionSupportConfigForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ListClusterServiceCustomActionSupportConfigForAdminRequest::getUserId()const +{ + return userId_; +} + +void ListClusterServiceCustomActionSupportConfigForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string ListClusterServiceCustomActionSupportConfigForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListClusterServiceCustomActionSupportConfigForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminResult.cc b/emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminResult.cc new file mode 100644 index 000000000..fb6e860d6 --- /dev/null +++ b/emr/src/model/ListClusterServiceCustomActionSupportConfigForAdminResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListClusterServiceCustomActionSupportConfigForAdminResult::ListClusterServiceCustomActionSupportConfigForAdminResult() : + ServiceResult() +{} + +ListClusterServiceCustomActionSupportConfigForAdminResult::ListClusterServiceCustomActionSupportConfigForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterServiceCustomActionSupportConfigForAdminResult::~ListClusterServiceCustomActionSupportConfigForAdminResult() +{} + +void ListClusterServiceCustomActionSupportConfigForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSupportedConfigList = value["SupportedConfigList"]["SupportedConfig"]; + for (auto value : allSupportedConfigList) + { + SupportedConfig supportedConfigListObject; + if(!value["ConfigKey"].isNull()) + supportedConfigListObject.configKey = value["ConfigKey"].asString(); + supportedConfigList_.push_back(supportedConfigListObject); + } + +} + +std::vector ListClusterServiceCustomActionSupportConfigForAdminResult::getSupportedConfigList()const +{ + return supportedConfigList_; +} + diff --git a/emr/src/model/ListClusterServiceCustomActionSupportConfigRequest.cc b/emr/src/model/ListClusterServiceCustomActionSupportConfigRequest.cc index 1a3ff0b8a..29f74051c 100644 --- a/emr/src/model/ListClusterServiceCustomActionSupportConfigRequest.cc +++ b/emr/src/model/ListClusterServiceCustomActionSupportConfigRequest.cc @@ -33,7 +33,7 @@ std::string ListClusterServiceCustomActionSupportConfigRequest::getServiceCustom void ListClusterServiceCustomActionSupportConfigRequest::setServiceCustomActionName(const std::string& serviceCustomActionName) { serviceCustomActionName_ = serviceCustomActionName; - setParameter("ServiceCustomActionName", serviceCustomActionName); + setCoreParameter("ServiceCustomActionName", serviceCustomActionName); } long ListClusterServiceCustomActionSupportConfigRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ListClusterServiceCustomActionSupportConfigRequest::getResourceOwnerId()con void ListClusterServiceCustomActionSupportConfigRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterServiceCustomActionSupportConfigRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListClusterServiceCustomActionSupportConfigRequest::getRegionId()con void ListClusterServiceCustomActionSupportConfigRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterServiceCustomActionSupportConfigRequest::getServiceName()const @@ -66,7 +66,7 @@ std::string ListClusterServiceCustomActionSupportConfigRequest::getServiceName() void ListClusterServiceCustomActionSupportConfigRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListClusterServiceCustomActionSupportConfigRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListClusterServiceCustomActionSupportConfigRequest::getClusterId()co void ListClusterServiceCustomActionSupportConfigRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListClusterServiceCustomActionSupportConfigRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListClusterServiceCustomActionSupportConfigRequest::getAccessKeyId() void ListClusterServiceCustomActionSupportConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterServiceCustomActionSupportConfigResult.cc b/emr/src/model/ListClusterServiceCustomActionSupportConfigResult.cc index 6adc0adb1..d5bf840f8 100644 --- a/emr/src/model/ListClusterServiceCustomActionSupportConfigResult.cc +++ b/emr/src/model/ListClusterServiceCustomActionSupportConfigResult.cc @@ -35,10 +35,13 @@ ListClusterServiceCustomActionSupportConfigResult::~ListClusterServiceCustomActi void ListClusterServiceCustomActionSupportConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSupportedConfigList = value["SupportedConfigList"]["SupportedConfig"]; for (auto value : allSupportedConfigList) diff --git a/emr/src/model/ListClusterServiceQuickLinkRequest.cc b/emr/src/model/ListClusterServiceQuickLinkRequest.cc index 1c9c55a99..760a12060 100644 --- a/emr/src/model/ListClusterServiceQuickLinkRequest.cc +++ b/emr/src/model/ListClusterServiceQuickLinkRequest.cc @@ -33,7 +33,7 @@ long ListClusterServiceQuickLinkRequest::getResourceOwnerId()const void ListClusterServiceQuickLinkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterServiceQuickLinkRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterServiceQuickLinkRequest::getRegionId()const void ListClusterServiceQuickLinkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterServiceQuickLinkRequest::getServiceName()const @@ -55,7 +55,7 @@ std::string ListClusterServiceQuickLinkRequest::getServiceName()const void ListClusterServiceQuickLinkRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListClusterServiceQuickLinkRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string ListClusterServiceQuickLinkRequest::getClusterId()const void ListClusterServiceQuickLinkRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListClusterServiceQuickLinkRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListClusterServiceQuickLinkRequest::getAccessKeyId()const void ListClusterServiceQuickLinkRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterServiceQuickLinkResult.cc b/emr/src/model/ListClusterServiceQuickLinkResult.cc index d9c777868..cf8970c34 100644 --- a/emr/src/model/ListClusterServiceQuickLinkResult.cc +++ b/emr/src/model/ListClusterServiceQuickLinkResult.cc @@ -35,10 +35,13 @@ ListClusterServiceQuickLinkResult::~ListClusterServiceQuickLinkResult() void ListClusterServiceQuickLinkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQuickLinkList = value["QuickLinkList"]["QuickLink"]; for (auto value : allQuickLinkList) diff --git a/emr/src/model/ListClusterServiceRequest.cc b/emr/src/model/ListClusterServiceRequest.cc index fc8296379..e099309b1 100644 --- a/emr/src/model/ListClusterServiceRequest.cc +++ b/emr/src/model/ListClusterServiceRequest.cc @@ -33,7 +33,7 @@ long ListClusterServiceRequest::getResourceOwnerId()const void ListClusterServiceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterServiceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterServiceRequest::getRegionId()const void ListClusterServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListClusterServiceRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListClusterServiceRequest::getPageSize()const void ListClusterServiceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListClusterServiceRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string ListClusterServiceRequest::getClusterId()const void ListClusterServiceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListClusterServiceRequest::getPageNumber()const @@ -77,7 +77,7 @@ int ListClusterServiceRequest::getPageNumber()const void ListClusterServiceRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterServiceRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListClusterServiceRequest::getAccessKeyId()const void ListClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterServiceResult.cc b/emr/src/model/ListClusterServiceResult.cc index c362398d9..08348afda 100644 --- a/emr/src/model/ListClusterServiceResult.cc +++ b/emr/src/model/ListClusterServiceResult.cc @@ -35,10 +35,13 @@ ListClusterServiceResult::~ListClusterServiceResult() void ListClusterServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterServiceList = value["ClusterServiceList"]["ClusterService"]; for (auto value : allClusterServiceList) diff --git a/emr/src/model/ListClusterSupportServiceRequest.cc b/emr/src/model/ListClusterSupportServiceRequest.cc new file mode 100644 index 000000000..b22f86080 --- /dev/null +++ b/emr/src/model/ListClusterSupportServiceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::ListClusterSupportServiceRequest; + +ListClusterSupportServiceRequest::ListClusterSupportServiceRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListClusterSupportService") +{} + +ListClusterSupportServiceRequest::~ListClusterSupportServiceRequest() +{} + +long ListClusterSupportServiceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListClusterSupportServiceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListClusterSupportServiceRequest::getRegionId()const +{ + return regionId_; +} + +void ListClusterSupportServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListClusterSupportServiceRequest::getClusterId()const +{ + return clusterId_; +} + +void ListClusterSupportServiceRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ListClusterSupportServiceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListClusterSupportServiceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListClusterSupportServiceResult.cc b/emr/src/model/ListClusterSupportServiceResult.cc new file mode 100644 index 000000000..5990e6336 --- /dev/null +++ b/emr/src/model/ListClusterSupportServiceResult.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 +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListClusterSupportServiceResult::ListClusterSupportServiceResult() : + ServiceResult() +{} + +ListClusterSupportServiceResult::ListClusterSupportServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterSupportServiceResult::~ListClusterSupportServiceResult() +{} + +void ListClusterSupportServiceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSupportServiceList = value["SupportServiceList"]["SupportService"]; + for (auto value : allSupportServiceList) + { + SupportService supportServiceListObject; + if(!value["ServiceName"].isNull()) + supportServiceListObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceDisplayName"].isNull()) + supportServiceListObject.serviceDisplayName = value["ServiceDisplayName"].asString(); + if(!value["ServiceVersion"].isNull()) + supportServiceListObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["ServiceEcmVersion"].isNull()) + supportServiceListObject.serviceEcmVersion = value["ServiceEcmVersion"].asString(); + supportServiceList_.push_back(supportServiceListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + +} + +std::vector ListClusterSupportServiceResult::getSupportServiceList()const +{ + return supportServiceList_; +} + +std::string ListClusterSupportServiceResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListClusterSupportServiceResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/emr/src/model/ListClusterTagForAdminRequest.cc b/emr/src/model/ListClusterTagForAdminRequest.cc new file mode 100644 index 000000000..7abcf2c94 --- /dev/null +++ b/emr/src/model/ListClusterTagForAdminRequest.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 + +using AlibabaCloud::Emr::Model::ListClusterTagForAdminRequest; + +ListClusterTagForAdminRequest::ListClusterTagForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListClusterTagForAdmin") +{} + +ListClusterTagForAdminRequest::~ListClusterTagForAdminRequest() +{} + +long ListClusterTagForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListClusterTagForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ListClusterTagForAdminRequest::getClusterIdList()const +{ + return clusterIdList_; +} + +void ListClusterTagForAdminRequest::setClusterIdList(const std::vector& clusterIdList) +{ + clusterIdList_ = clusterIdList; + for(int i = 0; i!= clusterIdList.size(); i++) + setCoreParameter("ClusterIdList."+ std::to_string(i), clusterIdList.at(i)); +} + +std::string ListClusterTagForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void ListClusterTagForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListClusterTagForAdminRequest::getUserId()const +{ + return userId_; +} + +void ListClusterTagForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string ListClusterTagForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListClusterTagForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListClusterTagForAdminResult.cc b/emr/src/model/ListClusterTagForAdminResult.cc new file mode 100644 index 000000000..6e87a20cf --- /dev/null +++ b/emr/src/model/ListClusterTagForAdminResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListClusterTagForAdminResult::ListClusterTagForAdminResult() : + ServiceResult() +{} + +ListClusterTagForAdminResult::ListClusterTagForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterTagForAdminResult::~ListClusterTagForAdminResult() +{} + +void ListClusterTagForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allClusterTagList = value["ClusterTagList"]["ClusterTag"]; + for (auto value : allClusterTagList) + { + ClusterTag clusterTagListObject; + if(!value["ClusterId"].isNull()) + clusterTagListObject.clusterId = value["ClusterId"].asString(); + auto allTagInfoList = value["TagInfoList"]["TagInfo"]; + for (auto value : allTagInfoList) + { + ClusterTag::TagInfo tagInfoListObject; + if(!value["TagType"].isNull()) + tagInfoListObject.tagType = value["TagType"].asString(); + if(!value["TagValue"].isNull()) + tagInfoListObject.tagValue = value["TagValue"].asString(); + if(!value["TagKey"].isNull()) + tagInfoListObject.tagKey = value["TagKey"].asString(); + clusterTagListObject.tagInfoList.push_back(tagInfoListObject); + } + clusterTagList_.push_back(clusterTagListObject); + } + +} + +std::vector ListClusterTagForAdminResult::getClusterTagList()const +{ + return clusterTagList_; +} + diff --git a/emr/src/model/ListClusterTagRequest.cc b/emr/src/model/ListClusterTagRequest.cc index 09971aa51..0c72e6baa 100644 --- a/emr/src/model/ListClusterTagRequest.cc +++ b/emr/src/model/ListClusterTagRequest.cc @@ -33,7 +33,7 @@ long ListClusterTagRequest::getResourceOwnerId()const void ListClusterTagRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector ListClusterTagRequest::getClusterIdList()const @@ -45,7 +45,7 @@ void ListClusterTagRequest::setClusterIdList(const std::vector& clu { clusterIdList_ = clusterIdList; for(int i = 0; i!= clusterIdList.size(); i++) - setParameter("ClusterIdList."+ std::to_string(i), clusterIdList.at(i)); + setCoreParameter("ClusterIdList."+ std::to_string(i), clusterIdList.at(i)); } std::string ListClusterTagRequest::getRegionId()const @@ -56,7 +56,7 @@ std::string ListClusterTagRequest::getRegionId()const void ListClusterTagRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterTagRequest::getAccessKeyId()const @@ -67,6 +67,6 @@ std::string ListClusterTagRequest::getAccessKeyId()const void ListClusterTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterTagResult.cc b/emr/src/model/ListClusterTagResult.cc index 53f02e024..a6dfa0406 100644 --- a/emr/src/model/ListClusterTagResult.cc +++ b/emr/src/model/ListClusterTagResult.cc @@ -35,10 +35,13 @@ ListClusterTagResult::~ListClusterTagResult() void ListClusterTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterTagList = value["ClusterTagList"]["ClusterTag"]; for (auto value : allClusterTagList) diff --git a/emr/src/model/ListClusterTemplatesRequest.cc b/emr/src/model/ListClusterTemplatesRequest.cc index 106f3432f..b0b924044 100644 --- a/emr/src/model/ListClusterTemplatesRequest.cc +++ b/emr/src/model/ListClusterTemplatesRequest.cc @@ -33,7 +33,7 @@ long ListClusterTemplatesRequest::getResourceOwnerId()const void ListClusterTemplatesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListClusterTemplatesRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListClusterTemplatesRequest::getRegionId()const void ListClusterTemplatesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListClusterTemplatesRequest::getBizId()const @@ -55,7 +55,7 @@ std::string ListClusterTemplatesRequest::getBizId()const void ListClusterTemplatesRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } int ListClusterTemplatesRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListClusterTemplatesRequest::getPageSize()const void ListClusterTemplatesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListClusterTemplatesRequest::getPageNumber()const @@ -77,7 +77,7 @@ int ListClusterTemplatesRequest::getPageNumber()const void ListClusterTemplatesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClusterTemplatesRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListClusterTemplatesRequest::getAccessKeyId()const void ListClusterTemplatesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListClusterTemplatesResult.cc b/emr/src/model/ListClusterTemplatesResult.cc index fd27eba3c..902eb58ef 100644 --- a/emr/src/model/ListClusterTemplatesResult.cc +++ b/emr/src/model/ListClusterTemplatesResult.cc @@ -35,10 +35,13 @@ ListClusterTemplatesResult::~ListClusterTemplatesResult() void ListClusterTemplatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplateInfoList = value["TemplateInfoList"]["TemplateInfo"]; for (auto value : allTemplateInfoList) @@ -104,6 +107,12 @@ void ListClusterTemplatesResult::parse(const std::string &payload) templateInfoListObject.useCustomHiveMetaDb = value["UseCustomHiveMetaDb"].asString() == "true"; if(!value["InitCustomHiveMetaDb"].isNull()) templateInfoListObject.initCustomHiveMetaDb = value["InitCustomHiveMetaDb"].asString() == "true"; + if(!value["KeyPairName"].isNull()) + templateInfoListObject.keyPairName = value["KeyPairName"].asString(); + if(!value["MetaStoreType"].isNull()) + templateInfoListObject.metaStoreType = value["MetaStoreType"].asString(); + if(!value["MetaStoreConf"].isNull()) + templateInfoListObject.metaStoreConf = value["MetaStoreConf"].asString(); auto allBootstrapActionList = value["BootstrapActionList"]["BootstrapAction"]; for (auto value : allBootstrapActionList) { diff --git a/emr/src/model/ListClustersRequest.cc b/emr/src/model/ListClustersRequest.cc index 169ec2442..200aee2ae 100644 --- a/emr/src/model/ListClustersRequest.cc +++ b/emr/src/model/ListClustersRequest.cc @@ -33,7 +33,7 @@ long ListClustersRequest::getResourceOwnerId()const void ListClustersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector ListClustersRequest::getStatusList()const @@ -45,7 +45,7 @@ void ListClustersRequest::setStatusList(const std::vector& statusLi { statusList_ = statusList; for(int i = 0; i!= statusList.size(); i++) - setParameter("StatusList."+ std::to_string(i), statusList.at(i)); + setCoreParameter("StatusList."+ std::to_string(i), statusList.at(i)); } std::string ListClustersRequest::getRegionId()const @@ -56,7 +56,7 @@ std::string ListClustersRequest::getRegionId()const void ListClustersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListClustersRequest::getPageSize()const @@ -67,7 +67,7 @@ int ListClustersRequest::getPageSize()const void ListClustersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::vector ListClustersRequest::getClusterTypeList()const @@ -79,7 +79,7 @@ void ListClustersRequest::setClusterTypeList(const std::vector& clu { clusterTypeList_ = clusterTypeList; for(int i = 0; i!= clusterTypeList.size(); i++) - setParameter("ClusterTypeList."+ std::to_string(i), clusterTypeList.at(i)); + setCoreParameter("ClusterTypeList."+ std::to_string(i), clusterTypeList.at(i)); } bool ListClustersRequest::getIsDesc()const @@ -90,7 +90,7 @@ bool ListClustersRequest::getIsDesc()const void ListClustersRequest::setIsDesc(bool isDesc) { isDesc_ = isDesc; - setParameter("IsDesc", std::to_string(isDesc)); + setCoreParameter("IsDesc", isDesc ? "true" : "false"); } std::string ListClustersRequest::getCreateType()const @@ -101,7 +101,7 @@ std::string ListClustersRequest::getCreateType()const void ListClustersRequest::setCreateType(const std::string& createType) { createType_ = createType; - setParameter("CreateType", createType); + setCoreParameter("CreateType", createType); } std::string ListClustersRequest::getDepositType()const @@ -112,7 +112,7 @@ std::string ListClustersRequest::getDepositType()const void ListClustersRequest::setDepositType(const std::string& depositType) { depositType_ = depositType; - setParameter("DepositType", depositType); + setCoreParameter("DepositType", depositType); } bool ListClustersRequest::getDefaultStatus()const @@ -123,7 +123,7 @@ bool ListClustersRequest::getDefaultStatus()const void ListClustersRequest::setDefaultStatus(bool defaultStatus) { defaultStatus_ = defaultStatus; - setParameter("DefaultStatus", std::to_string(defaultStatus)); + setCoreParameter("DefaultStatus", defaultStatus ? "true" : "false"); } int ListClustersRequest::getPageNumber()const @@ -134,7 +134,7 @@ int ListClustersRequest::getPageNumber()const void ListClustersRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListClustersRequest::getAccessKeyId()const @@ -145,6 +145,17 @@ std::string ListClustersRequest::getAccessKeyId()const void ListClustersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListClustersRequest::getMachineType()const +{ + return machineType_; +} + +void ListClustersRequest::setMachineType(const std::string& machineType) +{ + machineType_ = machineType; + setCoreParameter("MachineType", machineType); } diff --git a/emr/src/model/ListClustersResult.cc b/emr/src/model/ListClustersResult.cc index c854c8b26..965cf3a06 100644 --- a/emr/src/model/ListClustersResult.cc +++ b/emr/src/model/ListClustersResult.cc @@ -35,10 +35,13 @@ ListClustersResult::~ListClustersResult() void ListClustersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusters = value["Clusters"]["ClusterInfo"]; for (auto value : allClusters) @@ -48,6 +51,8 @@ void ListClustersResult::parse(const std::string &payload) clustersObject.id = value["Id"].asString(); if(!value["Name"].isNull()) clustersObject.name = value["Name"].asString(); + if(!value["MachineType"].isNull()) + clustersObject.machineType = value["MachineType"].asString(); if(!value["Type"].isNull()) clustersObject.type = value["Type"].asString(); if(!value["CreateTime"].isNull()) @@ -70,6 +75,8 @@ void ListClustersResult::parse(const std::string &payload) clustersObject.createResource = value["CreateResource"].asString(); if(!value["DepositType"].isNull()) clustersObject.depositType = value["DepositType"].asString(); + if(!value["MetaStoreType"].isNull()) + clustersObject.metaStoreType = value["MetaStoreType"].asString(); auto orderTaskInfoNode = value["OrderTaskInfo"]; if(!orderTaskInfoNode["TargetCount"].isNull()) clustersObject.orderTaskInfo.targetCount = std::stoi(orderTaskInfoNode["TargetCount"].asString()); diff --git a/emr/src/model/ListDataSourceRequest.cc b/emr/src/model/ListDataSourceRequest.cc index 5af592d7e..f238d79f1 100644 --- a/emr/src/model/ListDataSourceRequest.cc +++ b/emr/src/model/ListDataSourceRequest.cc @@ -33,7 +33,7 @@ long ListDataSourceRequest::getResourceOwnerId()const void ListDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListDataSourceRequest::getCreateFrom()const @@ -44,7 +44,7 @@ std::string ListDataSourceRequest::getCreateFrom()const void ListDataSourceRequest::setCreateFrom(const std::string& createFrom) { createFrom_ = createFrom; - setParameter("CreateFrom", createFrom); + setCoreParameter("CreateFrom", createFrom); } std::string ListDataSourceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListDataSourceRequest::getRegionId()const void ListDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListDataSourceRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListDataSourceRequest::getPageSize()const void ListDataSourceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListDataSourceRequest::getName()const @@ -77,7 +77,7 @@ std::string ListDataSourceRequest::getName()const void ListDataSourceRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ListDataSourceRequest::getSourceType()const @@ -88,7 +88,7 @@ std::string ListDataSourceRequest::getSourceType()const void ListDataSourceRequest::setSourceType(const std::string& sourceType) { sourceType_ = sourceType; - setParameter("SourceType", sourceType); + setCoreParameter("SourceType", sourceType); } std::string ListDataSourceRequest::getId()const @@ -99,7 +99,7 @@ std::string ListDataSourceRequest::getId()const void ListDataSourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListDataSourceRequest::getProjectId()const @@ -110,7 +110,7 @@ std::string ListDataSourceRequest::getProjectId()const void ListDataSourceRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListDataSourceRequest::getPageNumber()const @@ -121,7 +121,7 @@ int ListDataSourceRequest::getPageNumber()const void ListDataSourceRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListDataSourceRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string ListDataSourceRequest::getAccessKeyId()const void ListDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListDataSourceResult.cc b/emr/src/model/ListDataSourceResult.cc index 5770184dd..f054a8af7 100644 --- a/emr/src/model/ListDataSourceResult.cc +++ b/emr/src/model/ListDataSourceResult.cc @@ -35,10 +35,13 @@ ListDataSourceResult::~ListDataSourceResult() void ListDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataSourceList = value["DataSourceList"]["DataSource"]; for (auto value : allDataSourceList) diff --git a/emr/src/model/ListDataSourceSchemaDatabaseRequest.cc b/emr/src/model/ListDataSourceSchemaDatabaseRequest.cc index 9aeef69dc..13b50aa93 100644 --- a/emr/src/model/ListDataSourceSchemaDatabaseRequest.cc +++ b/emr/src/model/ListDataSourceSchemaDatabaseRequest.cc @@ -33,7 +33,7 @@ long ListDataSourceSchemaDatabaseRequest::getResourceOwnerId()const void ListDataSourceSchemaDatabaseRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListDataSourceSchemaDatabaseRequest::getDbName()const @@ -44,7 +44,7 @@ std::string ListDataSourceSchemaDatabaseRequest::getDbName()const void ListDataSourceSchemaDatabaseRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string ListDataSourceSchemaDatabaseRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListDataSourceSchemaDatabaseRequest::getRegionId()const void ListDataSourceSchemaDatabaseRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListDataSourceSchemaDatabaseRequest::getDataSourceId()const @@ -66,7 +66,7 @@ std::string ListDataSourceSchemaDatabaseRequest::getDataSourceId()const void ListDataSourceSchemaDatabaseRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string ListDataSourceSchemaDatabaseRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListDataSourceSchemaDatabaseRequest::getAccessKeyId()const void ListDataSourceSchemaDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListDataSourceSchemaDatabaseResult.cc b/emr/src/model/ListDataSourceSchemaDatabaseResult.cc index e1689c1df..60682d068 100644 --- a/emr/src/model/ListDataSourceSchemaDatabaseResult.cc +++ b/emr/src/model/ListDataSourceSchemaDatabaseResult.cc @@ -35,10 +35,13 @@ ListDataSourceSchemaDatabaseResult::~ListDataSourceSchemaDatabaseResult() void ListDataSourceSchemaDatabaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSchemaList = value["SchemaList"]["Schema"]; for (auto value : allSchemaList) diff --git a/emr/src/model/ListDataSourceSchemaTableRequest.cc b/emr/src/model/ListDataSourceSchemaTableRequest.cc index f3b2d0079..9d5a11465 100644 --- a/emr/src/model/ListDataSourceSchemaTableRequest.cc +++ b/emr/src/model/ListDataSourceSchemaTableRequest.cc @@ -33,7 +33,7 @@ long ListDataSourceSchemaTableRequest::getResourceOwnerId()const void ListDataSourceSchemaTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListDataSourceSchemaTableRequest::getDbName()const @@ -44,7 +44,7 @@ std::string ListDataSourceSchemaTableRequest::getDbName()const void ListDataSourceSchemaTableRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string ListDataSourceSchemaTableRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListDataSourceSchemaTableRequest::getRegionId()const void ListDataSourceSchemaTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListDataSourceSchemaTableRequest::getDataSourceId()const @@ -66,7 +66,7 @@ std::string ListDataSourceSchemaTableRequest::getDataSourceId()const void ListDataSourceSchemaTableRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string ListDataSourceSchemaTableRequest::getTableName()const @@ -77,7 +77,7 @@ std::string ListDataSourceSchemaTableRequest::getTableName()const void ListDataSourceSchemaTableRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string ListDataSourceSchemaTableRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListDataSourceSchemaTableRequest::getAccessKeyId()const void ListDataSourceSchemaTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListDataSourceSchemaTableResult.cc b/emr/src/model/ListDataSourceSchemaTableResult.cc index fa8e4fb60..396c38109 100644 --- a/emr/src/model/ListDataSourceSchemaTableResult.cc +++ b/emr/src/model/ListDataSourceSchemaTableResult.cc @@ -35,10 +35,13 @@ ListDataSourceSchemaTableResult::~ListDataSourceSchemaTableResult() void ListDataSourceSchemaTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSchemaList = value["SchemaList"]["Schema"]; for (auto value : allSchemaList) @@ -58,6 +61,8 @@ void ListDataSourceSchemaTableResult::parse(const std::string &payload) Schema::Field fieldsObject; if(!value["Type"].isNull()) fieldsObject.type = value["Type"].asString(); + if(!value["Length"].isNull()) + fieldsObject.length = value["Length"].asString(); if(!value["Name"].isNull()) fieldsObject.name = value["Name"].asString(); if(!value["Index"].isNull()) @@ -68,6 +73,8 @@ void ListDataSourceSchemaTableResult::parse(const std::string &payload) fieldsObject.assignType = value["AssignType"].asString(); if(!value["AssignValue"].isNull()) fieldsObject.assignValue = value["AssignValue"].asString(); + if(!value["PartitionKey"].isNull()) + fieldsObject.partitionKey = value["PartitionKey"].asString() == "true"; schemaListObject.fields.push_back(fieldsObject); } schemaList_.push_back(schemaListObject); diff --git a/emr/src/model/ListDependedServiceRequest.cc b/emr/src/model/ListDependedServiceRequest.cc index cc644c9fe..9afb78444 100644 --- a/emr/src/model/ListDependedServiceRequest.cc +++ b/emr/src/model/ListDependedServiceRequest.cc @@ -33,7 +33,7 @@ long ListDependedServiceRequest::getResourceOwnerId()const void ListDependedServiceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListDependedServiceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListDependedServiceRequest::getRegionId()const void ListDependedServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListDependedServiceRequest::getServiceName()const @@ -55,7 +55,7 @@ std::string ListDependedServiceRequest::getServiceName()const void ListDependedServiceRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListDependedServiceRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string ListDependedServiceRequest::getClusterId()const void ListDependedServiceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListDependedServiceRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListDependedServiceRequest::getAccessKeyId()const void ListDependedServiceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListDependedServiceResult.cc b/emr/src/model/ListDependedServiceResult.cc index 8d5d89bc8..4d99a108c 100644 --- a/emr/src/model/ListDependedServiceResult.cc +++ b/emr/src/model/ListDependedServiceResult.cc @@ -35,10 +35,13 @@ ListDependedServiceResult::~ListDependedServiceResult() void ListDependedServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allServiceList = value["ServiceList"]["Service"]; for (auto value : allServiceList) diff --git a/emr/src/model/ListETLJobInstanceRequest.cc b/emr/src/model/ListETLJobInstanceRequest.cc index 2c19f6bbe..3502e23bb 100644 --- a/emr/src/model/ListETLJobInstanceRequest.cc +++ b/emr/src/model/ListETLJobInstanceRequest.cc @@ -33,7 +33,7 @@ long ListETLJobInstanceRequest::getResourceOwnerId()const void ListETLJobInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListETLJobInstanceRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ListETLJobInstanceRequest::getInstanceId()const void ListETLJobInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListETLJobInstanceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListETLJobInstanceRequest::getRegionId()const void ListETLJobInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListETLJobInstanceRequest::getEtlJobId()const @@ -66,7 +66,7 @@ std::string ListETLJobInstanceRequest::getEtlJobId()const void ListETLJobInstanceRequest::setEtlJobId(const std::string& etlJobId) { etlJobId_ = etlJobId; - setParameter("EtlJobId", etlJobId); + setCoreParameter("EtlJobId", etlJobId); } int ListETLJobInstanceRequest::getPageSize()const @@ -77,7 +77,7 @@ int ListETLJobInstanceRequest::getPageSize()const void ListETLJobInstanceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListETLJobInstanceRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListETLJobInstanceRequest::getPageNumber()const void ListETLJobInstanceRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListETLJobInstanceRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ListETLJobInstanceRequest::getAccessKeyId()const void ListETLJobInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListETLJobInstanceRequest::getStatus()const @@ -110,6 +110,6 @@ std::string ListETLJobInstanceRequest::getStatus()const void ListETLJobInstanceRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/emr/src/model/ListETLJobInstanceResult.cc b/emr/src/model/ListETLJobInstanceResult.cc index ca6c7af98..779b2fb5a 100644 --- a/emr/src/model/ListETLJobInstanceResult.cc +++ b/emr/src/model/ListETLJobInstanceResult.cc @@ -35,10 +35,13 @@ ListETLJobInstanceResult::~ListETLJobInstanceResult() void ListETLJobInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceList = value["InstanceList"]["Instance"]; for (auto value : allInstanceList) @@ -78,25 +81,10 @@ void ListETLJobInstanceResult::parse(const std::string &payload) stageInstanceListObject.id = value["Id"].asString(); if(!value["Name"].isNull()) stageInstanceListObject.name = value["Name"].asString(); - if(!value["StartTime"].isNull()) - stageInstanceListObject.startTime = std::stol(value["StartTime"].asString()); - if(!value["EndTime"].isNull()) - stageInstanceListObject.endTime = std::stol(value["EndTime"].asString()); - auto metrics1Node = value["Metrics"]; - if(!metrics1Node["TotalTime"].isNull()) - stageInstanceListObject.metrics1.totalTime = std::stol(metrics1Node["TotalTime"].asString()); - if(!metrics1Node["RecordsIn"].isNull()) - stageInstanceListObject.metrics1.recordsIn = std::stol(metrics1Node["RecordsIn"].asString()); - if(!metrics1Node["RecordsOut"].isNull()) - stageInstanceListObject.metrics1.recordsOut = std::stol(metrics1Node["RecordsOut"].asString()); - if(!metrics1Node["RecordsError"].isNull()) - stageInstanceListObject.metrics1.recordsError = std::stol(metrics1Node["RecordsError"].asString()); - if(!metrics1Node["RecordsRate"].isNull()) - stageInstanceListObject.metrics1.recordsRate = metrics1Node["RecordsRate"].asString(); - if(!metrics1Node["Vcores"].isNull()) - stageInstanceListObject.metrics1.vcores = std::stol(metrics1Node["Vcores"].asString()); - if(!metrics1Node["MemSize"].isNull()) - stageInstanceListObject.metrics1.memSize = std::stol(metrics1Node["MemSize"].asString()); + if(!value["StageStartTime"].isNull()) + stageInstanceListObject.stageStartTime = std::stol(value["StageStartTime"].asString()); + if(!value["StageEndTime"].isNull()) + stageInstanceListObject.stageEndTime = std::stol(value["StageEndTime"].asString()); instanceListObject.stageInstanceList.push_back(stageInstanceListObject); } auto argumentsNode = value["Arguments"]; diff --git a/emr/src/model/ListETLJobReleaseRequest.cc b/emr/src/model/ListETLJobReleaseRequest.cc new file mode 100644 index 000000000..d098d4e69 --- /dev/null +++ b/emr/src/model/ListETLJobReleaseRequest.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::Emr::Model::ListETLJobReleaseRequest; + +ListETLJobReleaseRequest::ListETLJobReleaseRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListETLJobRelease") +{} + +ListETLJobReleaseRequest::~ListETLJobReleaseRequest() +{} + +long ListETLJobReleaseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListETLJobReleaseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListETLJobReleaseRequest::getRegionId()const +{ + return regionId_; +} + +void ListETLJobReleaseRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListETLJobReleaseRequest::getEtlJobId()const +{ + return etlJobId_; +} + +void ListETLJobReleaseRequest::setEtlJobId(const std::string& etlJobId) +{ + etlJobId_ = etlJobId; + setCoreParameter("EtlJobId", etlJobId); +} + +std::string ListETLJobReleaseRequest::getReleaseId()const +{ + return releaseId_; +} + +void ListETLJobReleaseRequest::setReleaseId(const std::string& releaseId) +{ + releaseId_ = releaseId; + setCoreParameter("ReleaseId", releaseId); +} + +int ListETLJobReleaseRequest::getPageSize()const +{ + return pageSize_; +} + +void ListETLJobReleaseRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int ListETLJobReleaseRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListETLJobReleaseRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListETLJobReleaseRequest::getReleaseVersion()const +{ + return releaseVersion_; +} + +void ListETLJobReleaseRequest::setReleaseVersion(int releaseVersion) +{ + releaseVersion_ = releaseVersion; + setCoreParameter("ReleaseVersion", std::to_string(releaseVersion)); +} + +std::string ListETLJobReleaseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListETLJobReleaseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListETLJobReleaseRequest::getStatus()const +{ + return status_; +} + +void ListETLJobReleaseRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/ListETLJobReleaseResult.cc b/emr/src/model/ListETLJobReleaseResult.cc new file mode 100644 index 000000000..ad6d29438 --- /dev/null +++ b/emr/src/model/ListETLJobReleaseResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListETLJobReleaseResult::ListETLJobReleaseResult() : + ServiceResult() +{} + +ListETLJobReleaseResult::ListETLJobReleaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListETLJobReleaseResult::~ListETLJobReleaseResult() +{} + +void ListETLJobReleaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allReleaseList = value["ReleaseList"]["Release"]; + for (auto value : allReleaseList) + { + Release releaseListObject; + if(!value["EtlJobId"].isNull()) + releaseListObject.etlJobId = value["EtlJobId"].asString(); + if(!value["Id"].isNull()) + releaseListObject.id = value["Id"].asString(); + if(!value["ReleaseVersion"].isNull()) + releaseListObject.releaseVersion = std::stoi(value["ReleaseVersion"].asString()); + if(!value["Status"].isNull()) + releaseListObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + releaseListObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + releaseListObject.gmtModified = std::stol(value["GmtModified"].asString()); + releaseList_.push_back(releaseListObject); + } + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListETLJobReleaseResult::getPageSize()const +{ + return pageSize_; +} + +int ListETLJobReleaseResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListETLJobReleaseResult::getTotal()const +{ + return total_; +} + +std::vector ListETLJobReleaseResult::getReleaseList()const +{ + return releaseList_; +} + diff --git a/emr/src/model/ListETLJobTriggerEntityRequest.cc b/emr/src/model/ListETLJobTriggerEntityRequest.cc index 3ab6a3758..7fc2d12e1 100644 --- a/emr/src/model/ListETLJobTriggerEntityRequest.cc +++ b/emr/src/model/ListETLJobTriggerEntityRequest.cc @@ -33,7 +33,7 @@ long ListETLJobTriggerEntityRequest::getResourceOwnerId()const void ListETLJobTriggerEntityRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListETLJobTriggerEntityRequest::getEntityType()const @@ -44,7 +44,7 @@ std::string ListETLJobTriggerEntityRequest::getEntityType()const void ListETLJobTriggerEntityRequest::setEntityType(const std::string& entityType) { entityType_ = entityType; - setParameter("EntityType", entityType); + setCoreParameter("EntityType", entityType); } std::string ListETLJobTriggerEntityRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListETLJobTriggerEntityRequest::getRegionId()const void ListETLJobTriggerEntityRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListETLJobTriggerEntityRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListETLJobTriggerEntityRequest::getAccessKeyId()const void ListETLJobTriggerEntityRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListETLJobTriggerEntityResult.cc b/emr/src/model/ListETLJobTriggerEntityResult.cc index fc2b97102..cae25fd0f 100644 --- a/emr/src/model/ListETLJobTriggerEntityResult.cc +++ b/emr/src/model/ListETLJobTriggerEntityResult.cc @@ -35,10 +35,13 @@ ListETLJobTriggerEntityResult::~ListETLJobTriggerEntityResult() void ListETLJobTriggerEntityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTriggerEntityList = value["TriggerEntityList"]["TriggerEntity"]; for (auto value : allTriggerEntityList) diff --git a/emr/src/model/ListEmrAvailableConfigRequest.cc b/emr/src/model/ListEmrAvailableConfigRequest.cc index 6dce19cad..3e01e37f4 100644 --- a/emr/src/model/ListEmrAvailableConfigRequest.cc +++ b/emr/src/model/ListEmrAvailableConfigRequest.cc @@ -33,7 +33,7 @@ long ListEmrAvailableConfigRequest::getResourceOwnerId()const void ListEmrAvailableConfigRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListEmrAvailableConfigRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListEmrAvailableConfigRequest::getRegionId()const void ListEmrAvailableConfigRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListEmrAvailableConfigRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListEmrAvailableConfigRequest::getAccessKeyId()const void ListEmrAvailableConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListEmrAvailableConfigResult.cc b/emr/src/model/ListEmrAvailableConfigResult.cc index 3f44ee27b..40aaf369b 100644 --- a/emr/src/model/ListEmrAvailableConfigResult.cc +++ b/emr/src/model/ListEmrAvailableConfigResult.cc @@ -35,10 +35,13 @@ ListEmrAvailableConfigResult::~ListEmrAvailableConfigResult() void ListEmrAvailableConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEmrMainVersionList = value["EmrMainVersionList"]["EmrMainVersion"]; for (auto value : allEmrMainVersionList) @@ -50,6 +53,10 @@ void ListEmrAvailableConfigResult::parse(const std::string &payload) emrMainVersionListObject.mainVersionName = value["MainVersionName"].asString(); if(!value["EcmVersion"].isNull()) emrMainVersionListObject.ecmVersion = value["EcmVersion"].asString() == "true"; + if(!value["StackName"].isNull()) + emrMainVersionListObject.stackName = value["StackName"].asString(); + if(!value["StackVersion"].isNull()) + emrMainVersionListObject.stackVersion = value["StackVersion"].asString(); auto allClusterTypeInfoList = value["ClusterTypeInfoList"]["ClusterTypeInfo"]; for (auto value : allClusterTypeInfoList) { diff --git a/emr/src/model/ListEmrAvailableResourceRequest.cc b/emr/src/model/ListEmrAvailableResourceRequest.cc index 05593047a..0fd5e72c4 100644 --- a/emr/src/model/ListEmrAvailableResourceRequest.cc +++ b/emr/src/model/ListEmrAvailableResourceRequest.cc @@ -33,7 +33,7 @@ long ListEmrAvailableResourceRequest::getResourceOwnerId()const void ListEmrAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListEmrAvailableResourceRequest::getClusterId()const @@ -44,7 +44,7 @@ std::string ListEmrAvailableResourceRequest::getClusterId()const void ListEmrAvailableResourceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListEmrAvailableResourceRequest::getDepositType()const @@ -55,7 +55,7 @@ std::string ListEmrAvailableResourceRequest::getDepositType()const void ListEmrAvailableResourceRequest::setDepositType(const std::string& depositType) { depositType_ = depositType; - setParameter("DepositType", depositType); + setCoreParameter("DepositType", depositType); } std::string ListEmrAvailableResourceRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string ListEmrAvailableResourceRequest::getAccessKeyId()const void ListEmrAvailableResourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListEmrAvailableResourceRequest::getDestinationResource()const @@ -77,7 +77,7 @@ std::string ListEmrAvailableResourceRequest::getDestinationResource()const void ListEmrAvailableResourceRequest::setDestinationResource(const std::string& destinationResource) { destinationResource_ = destinationResource; - setParameter("DestinationResource", destinationResource); + setCoreParameter("DestinationResource", destinationResource); } std::string ListEmrAvailableResourceRequest::getClusterType()const @@ -88,7 +88,7 @@ std::string ListEmrAvailableResourceRequest::getClusterType()const void ListEmrAvailableResourceRequest::setClusterType(const std::string& clusterType) { clusterType_ = clusterType; - setParameter("ClusterType", clusterType); + setCoreParameter("ClusterType", clusterType); } std::string ListEmrAvailableResourceRequest::getSpotStrategy()const @@ -99,7 +99,7 @@ std::string ListEmrAvailableResourceRequest::getSpotStrategy()const void ListEmrAvailableResourceRequest::setSpotStrategy(const std::string& spotStrategy) { spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); + setCoreParameter("SpotStrategy", spotStrategy); } std::string ListEmrAvailableResourceRequest::getSystemDiskType()const @@ -110,7 +110,7 @@ std::string ListEmrAvailableResourceRequest::getSystemDiskType()const void ListEmrAvailableResourceRequest::setSystemDiskType(const std::string& systemDiskType) { systemDiskType_ = systemDiskType; - setParameter("SystemDiskType", systemDiskType); + setCoreParameter("SystemDiskType", systemDiskType); } std::string ListEmrAvailableResourceRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string ListEmrAvailableResourceRequest::getRegionId()const void ListEmrAvailableResourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListEmrAvailableResourceRequest::getNetType()const @@ -132,7 +132,7 @@ std::string ListEmrAvailableResourceRequest::getNetType()const void ListEmrAvailableResourceRequest::setNetType(const std::string& netType) { netType_ = netType; - setParameter("NetType", netType); + setCoreParameter("NetType", netType); } std::string ListEmrAvailableResourceRequest::getZoneId()const @@ -143,7 +143,7 @@ std::string ListEmrAvailableResourceRequest::getZoneId()const void ListEmrAvailableResourceRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string ListEmrAvailableResourceRequest::getInstanceType()const @@ -154,7 +154,7 @@ std::string ListEmrAvailableResourceRequest::getInstanceType()const void ListEmrAvailableResourceRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } std::string ListEmrAvailableResourceRequest::getDataDiskType()const @@ -165,7 +165,7 @@ std::string ListEmrAvailableResourceRequest::getDataDiskType()const void ListEmrAvailableResourceRequest::setDataDiskType(const std::string& dataDiskType) { dataDiskType_ = dataDiskType; - setParameter("DataDiskType", dataDiskType); + setCoreParameter("DataDiskType", dataDiskType); } std::string ListEmrAvailableResourceRequest::getInstanceChargeType()const @@ -176,6 +176,6 @@ std::string ListEmrAvailableResourceRequest::getInstanceChargeType()const void ListEmrAvailableResourceRequest::setInstanceChargeType(const std::string& instanceChargeType) { instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); + setCoreParameter("InstanceChargeType", instanceChargeType); } diff --git a/emr/src/model/ListEmrAvailableResourceResult.cc b/emr/src/model/ListEmrAvailableResourceResult.cc index 32e437c85..2f718d693 100644 --- a/emr/src/model/ListEmrAvailableResourceResult.cc +++ b/emr/src/model/ListEmrAvailableResourceResult.cc @@ -35,10 +35,13 @@ ListEmrAvailableResourceResult::~ListEmrAvailableResourceResult() void ListEmrAvailableResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEmrZoneInfoList = value["EmrZoneInfoList"]["EmrZoneInfo"]; for (auto value : allEmrZoneInfoList) diff --git a/emr/src/model/ListEmrMainVersionRequest.cc b/emr/src/model/ListEmrMainVersionRequest.cc index 22bb1fadd..4dde15316 100644 --- a/emr/src/model/ListEmrMainVersionRequest.cc +++ b/emr/src/model/ListEmrMainVersionRequest.cc @@ -33,7 +33,7 @@ long ListEmrMainVersionRequest::getResourceOwnerId()const void ListEmrMainVersionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListEmrMainVersionRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListEmrMainVersionRequest::getRegionId()const void ListEmrMainVersionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListEmrMainVersionRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListEmrMainVersionRequest::getPageSize()const void ListEmrMainVersionRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListEmrMainVersionRequest::getEmrVersion()const @@ -66,7 +66,7 @@ std::string ListEmrMainVersionRequest::getEmrVersion()const void ListEmrMainVersionRequest::setEmrVersion(const std::string& emrVersion) { emrVersion_ = emrVersion; - setParameter("EmrVersion", emrVersion); + setCoreParameter("EmrVersion", emrVersion); } std::string ListEmrMainVersionRequest::getStackName()const @@ -77,7 +77,7 @@ std::string ListEmrMainVersionRequest::getStackName()const void ListEmrMainVersionRequest::setStackName(const std::string& stackName) { stackName_ = stackName; - setParameter("StackName", stackName); + setCoreParameter("StackName", stackName); } std::string ListEmrMainVersionRequest::getStackVersion()const @@ -88,7 +88,7 @@ std::string ListEmrMainVersionRequest::getStackVersion()const void ListEmrMainVersionRequest::setStackVersion(const std::string& stackVersion) { stackVersion_ = stackVersion; - setParameter("StackVersion", stackVersion); + setCoreParameter("StackVersion", stackVersion); } int ListEmrMainVersionRequest::getPageNumber()const @@ -99,7 +99,7 @@ int ListEmrMainVersionRequest::getPageNumber()const void ListEmrMainVersionRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListEmrMainVersionRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListEmrMainVersionRequest::getAccessKeyId()const void ListEmrMainVersionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListEmrMainVersionResult.cc b/emr/src/model/ListEmrMainVersionResult.cc index 8d19cfbc5..2e4176555 100644 --- a/emr/src/model/ListEmrMainVersionResult.cc +++ b/emr/src/model/ListEmrMainVersionResult.cc @@ -35,10 +35,13 @@ ListEmrMainVersionResult::~ListEmrMainVersionResult() void ListEmrMainVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEmrMainVersionList = value["EmrMainVersionList"]["EmrMainVersion"]; for (auto value : allEmrMainVersionList) diff --git a/emr/src/model/ListExecutePlanMigrateInfoRequest.cc b/emr/src/model/ListExecutePlanMigrateInfoRequest.cc index d84d61bb2..d4a726ec9 100644 --- a/emr/src/model/ListExecutePlanMigrateInfoRequest.cc +++ b/emr/src/model/ListExecutePlanMigrateInfoRequest.cc @@ -33,7 +33,7 @@ long ListExecutePlanMigrateInfoRequest::getResourceOwnerId()const void ListExecutePlanMigrateInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListExecutePlanMigrateInfoRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListExecutePlanMigrateInfoRequest::getRegionId()const void ListExecutePlanMigrateInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListExecutePlanMigrateInfoRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListExecutePlanMigrateInfoRequest::getPageSize()const void ListExecutePlanMigrateInfoRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListExecutePlanMigrateInfoRequest::getUserId()const @@ -66,7 +66,7 @@ std::string ListExecutePlanMigrateInfoRequest::getUserId()const void ListExecutePlanMigrateInfoRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } int ListExecutePlanMigrateInfoRequest::getCurrentSize()const @@ -77,7 +77,7 @@ int ListExecutePlanMigrateInfoRequest::getCurrentSize()const void ListExecutePlanMigrateInfoRequest::setCurrentSize(int currentSize) { currentSize_ = currentSize; - setParameter("CurrentSize", std::to_string(currentSize)); + setCoreParameter("CurrentSize", std::to_string(currentSize)); } std::string ListExecutePlanMigrateInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListExecutePlanMigrateInfoRequest::getAccessKeyId()const void ListExecutePlanMigrateInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListExecutePlanMigrateInfoResult.cc b/emr/src/model/ListExecutePlanMigrateInfoResult.cc index 549d0fca7..ddfaacdb7 100644 --- a/emr/src/model/ListExecutePlanMigrateInfoResult.cc +++ b/emr/src/model/ListExecutePlanMigrateInfoResult.cc @@ -35,10 +35,13 @@ ListExecutePlanMigrateInfoResult::~ListExecutePlanMigrateInfoResult() void ListExecutePlanMigrateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allExecutePlanMigrateInfoList = value["ExecutePlanMigrateInfoList"]["ExecutePlanMigrateInfo"]; for (auto value : allExecutePlanMigrateInfoList) diff --git a/emr/src/model/ListExecutionPlanInstanceTrendRequest.cc b/emr/src/model/ListExecutionPlanInstanceTrendRequest.cc index d5a2f421a..059408aeb 100644 --- a/emr/src/model/ListExecutionPlanInstanceTrendRequest.cc +++ b/emr/src/model/ListExecutionPlanInstanceTrendRequest.cc @@ -33,7 +33,7 @@ long ListExecutionPlanInstanceTrendRequest::getResourceOwnerId()const void ListExecutionPlanInstanceTrendRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListExecutionPlanInstanceTrendRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListExecutionPlanInstanceTrendRequest::getRegionId()const void ListExecutionPlanInstanceTrendRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListExecutionPlanInstanceTrendRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListExecutionPlanInstanceTrendRequest::getAccessKeyId()const void ListExecutionPlanInstanceTrendRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListExecutionPlanInstanceTrendResult.cc b/emr/src/model/ListExecutionPlanInstanceTrendResult.cc index d8088a56a..3724fb94d 100644 --- a/emr/src/model/ListExecutionPlanInstanceTrendResult.cc +++ b/emr/src/model/ListExecutionPlanInstanceTrendResult.cc @@ -35,10 +35,13 @@ ListExecutionPlanInstanceTrendResult::~ListExecutionPlanInstanceTrendResult() void ListExecutionPlanInstanceTrendResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrends = value["Trends"]["Trend"]; for (auto value : allTrends) diff --git a/emr/src/model/ListExecutionPlanInstancesRequest.cc b/emr/src/model/ListExecutionPlanInstancesRequest.cc index 833e0e732..4d4ed066a 100644 --- a/emr/src/model/ListExecutionPlanInstancesRequest.cc +++ b/emr/src/model/ListExecutionPlanInstancesRequest.cc @@ -33,7 +33,7 @@ bool ListExecutionPlanInstancesRequest::getOnlyLastInstance()const void ListExecutionPlanInstancesRequest::setOnlyLastInstance(bool onlyLastInstance) { onlyLastInstance_ = onlyLastInstance; - setParameter("OnlyLastInstance", std::to_string(onlyLastInstance)); + setCoreParameter("OnlyLastInstance", onlyLastInstance ? "true" : "false"); } long ListExecutionPlanInstancesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ListExecutionPlanInstancesRequest::getResourceOwnerId()const void ListExecutionPlanInstancesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector ListExecutionPlanInstancesRequest::getExecutionPlanIdList()const @@ -56,7 +56,7 @@ void ListExecutionPlanInstancesRequest::setExecutionPlanIdList(const std::vector { executionPlanIdList_ = executionPlanIdList; for(int i = 0; i!= executionPlanIdList.size(); i++) - setParameter("ExecutionPlanIdList."+ std::to_string(i), executionPlanIdList.at(i)); + setCoreParameter("ExecutionPlanIdList."+ std::to_string(i), executionPlanIdList.at(i)); } std::vector ListExecutionPlanInstancesRequest::getStatusList()const @@ -68,7 +68,7 @@ void ListExecutionPlanInstancesRequest::setStatusList(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allExecutionPlanInstances = value["ExecutionPlanInstances"]["ExecutionPlanInstance"]; for (auto value : allExecutionPlanInstances) diff --git a/emr/src/model/ListExecutionPlansRequest.cc b/emr/src/model/ListExecutionPlansRequest.cc index 3598ba1cb..a4b4bac88 100644 --- a/emr/src/model/ListExecutionPlansRequest.cc +++ b/emr/src/model/ListExecutionPlansRequest.cc @@ -33,7 +33,7 @@ std::string ListExecutionPlansRequest::getJobId()const void ListExecutionPlansRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ListExecutionPlansRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ListExecutionPlansRequest::getResourceOwnerId()const void ListExecutionPlansRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector ListExecutionPlansRequest::getStatusList()const @@ -56,7 +56,7 @@ void ListExecutionPlansRequest::setStatusList(const std::vector& st { statusList_ = statusList; for(int i = 0; i!= statusList.size(); i++) - setParameter("StatusList."+ std::to_string(i), statusList.at(i)); + setCoreParameter("StatusList."+ std::to_string(i), statusList.at(i)); } std::string ListExecutionPlansRequest::getRegionId()const @@ -67,7 +67,7 @@ std::string ListExecutionPlansRequest::getRegionId()const void ListExecutionPlansRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListExecutionPlansRequest::getPageSize()const @@ -78,7 +78,7 @@ int ListExecutionPlansRequest::getPageSize()const void ListExecutionPlansRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListExecutionPlansRequest::getQueryString()const @@ -89,7 +89,7 @@ std::string ListExecutionPlansRequest::getQueryString()const void ListExecutionPlansRequest::setQueryString(const std::string& queryString) { queryString_ = queryString; - setParameter("QueryString", queryString); + setCoreParameter("QueryString", queryString); } std::string ListExecutionPlansRequest::getClusterId()const @@ -100,7 +100,7 @@ std::string ListExecutionPlansRequest::getClusterId()const void ListExecutionPlansRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } bool ListExecutionPlansRequest::getIsDesc()const @@ -111,7 +111,7 @@ bool ListExecutionPlansRequest::getIsDesc()const void ListExecutionPlansRequest::setIsDesc(bool isDesc) { isDesc_ = isDesc; - setParameter("IsDesc", std::to_string(isDesc)); + setCoreParameter("IsDesc", isDesc ? "true" : "false"); } std::string ListExecutionPlansRequest::getStrategy()const @@ -122,7 +122,7 @@ std::string ListExecutionPlansRequest::getStrategy()const void ListExecutionPlansRequest::setStrategy(const std::string& strategy) { strategy_ = strategy; - setParameter("Strategy", strategy); + setCoreParameter("Strategy", strategy); } int ListExecutionPlansRequest::getPageNumber()const @@ -133,7 +133,7 @@ int ListExecutionPlansRequest::getPageNumber()const void ListExecutionPlansRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListExecutionPlansRequest::getQueryType()const @@ -144,7 +144,7 @@ std::string ListExecutionPlansRequest::getQueryType()const void ListExecutionPlansRequest::setQueryType(const std::string& queryType) { queryType_ = queryType; - setParameter("QueryType", queryType); + setCoreParameter("QueryType", queryType); } std::string ListExecutionPlansRequest::getAccessKeyId()const @@ -155,6 +155,6 @@ std::string ListExecutionPlansRequest::getAccessKeyId()const void ListExecutionPlansRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListExecutionPlansResult.cc b/emr/src/model/ListExecutionPlansResult.cc index 9b6dc0eaf..ae49ca282 100644 --- a/emr/src/model/ListExecutionPlansResult.cc +++ b/emr/src/model/ListExecutionPlansResult.cc @@ -35,10 +35,13 @@ ListExecutionPlansResult::~ListExecutionPlansResult() void ListExecutionPlansResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allExecutionPlans = value["ExecutionPlans"]["ExecutionPlanInfo"]; for (auto value : allExecutionPlans) diff --git a/emr/src/model/ListFailureJobExecutionInstancesRequest.cc b/emr/src/model/ListFailureJobExecutionInstancesRequest.cc index 217a20e71..88759978c 100644 --- a/emr/src/model/ListFailureJobExecutionInstancesRequest.cc +++ b/emr/src/model/ListFailureJobExecutionInstancesRequest.cc @@ -33,7 +33,7 @@ long ListFailureJobExecutionInstancesRequest::getResourceOwnerId()const void ListFailureJobExecutionInstancesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListFailureJobExecutionInstancesRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListFailureJobExecutionInstancesRequest::getRegionId()const void ListFailureJobExecutionInstancesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFailureJobExecutionInstancesRequest::getCount()const @@ -55,7 +55,7 @@ int ListFailureJobExecutionInstancesRequest::getCount()const void ListFailureJobExecutionInstancesRequest::setCount(int count) { count_ = count; - setParameter("Count", std::to_string(count)); + setCoreParameter("Count", std::to_string(count)); } std::string ListFailureJobExecutionInstancesRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListFailureJobExecutionInstancesRequest::getAccessKeyId()const void ListFailureJobExecutionInstancesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListFailureJobExecutionInstancesResult.cc b/emr/src/model/ListFailureJobExecutionInstancesResult.cc index b8181749d..080ac503f 100644 --- a/emr/src/model/ListFailureJobExecutionInstancesResult.cc +++ b/emr/src/model/ListFailureJobExecutionInstancesResult.cc @@ -35,10 +35,13 @@ ListFailureJobExecutionInstancesResult::~ListFailureJobExecutionInstancesResult( void ListFailureJobExecutionInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobInstances = value["JobInstances"]["JobInstance"]; for (auto value : allJobInstances) diff --git a/emr/src/model/ListFlowCategoryRequest.cc b/emr/src/model/ListFlowCategoryRequest.cc index 002424d71..8335ecfee 100644 --- a/emr/src/model/ListFlowCategoryRequest.cc +++ b/emr/src/model/ListFlowCategoryRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowCategoryRequest::getRegionId()const void ListFlowCategoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool ListFlowCategoryRequest::getRoot()const @@ -44,7 +44,7 @@ bool ListFlowCategoryRequest::getRoot()const void ListFlowCategoryRequest::setRoot(bool root) { root_ = root; - setParameter("Root", std::to_string(root)); + setCoreParameter("Root", root ? "true" : "false"); } int ListFlowCategoryRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListFlowCategoryRequest::getPageSize()const void ListFlowCategoryRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowCategoryRequest::getProjectId()const @@ -66,7 +66,7 @@ std::string ListFlowCategoryRequest::getProjectId()const void ListFlowCategoryRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string ListFlowCategoryRequest::getParentId()const @@ -77,7 +77,7 @@ std::string ListFlowCategoryRequest::getParentId()const void ListFlowCategoryRequest::setParentId(const std::string& parentId) { parentId_ = parentId; - setParameter("ParentId", parentId); + setCoreParameter("ParentId", parentId); } int ListFlowCategoryRequest::getPageNumber()const @@ -88,6 +88,6 @@ int ListFlowCategoryRequest::getPageNumber()const void ListFlowCategoryRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowCategoryResult.cc b/emr/src/model/ListFlowCategoryResult.cc index f6f67f54a..9ad5f8609 100644 --- a/emr/src/model/ListFlowCategoryResult.cc +++ b/emr/src/model/ListFlowCategoryResult.cc @@ -35,10 +35,13 @@ ListFlowCategoryResult::~ListFlowCategoryResult() void ListFlowCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCategories = value["Categories"]["Category"]; for (auto value : allCategories) diff --git a/emr/src/model/ListFlowClusterAllHostsRequest.cc b/emr/src/model/ListFlowClusterAllHostsRequest.cc index 608b2742c..7f005a4c4 100644 --- a/emr/src/model/ListFlowClusterAllHostsRequest.cc +++ b/emr/src/model/ListFlowClusterAllHostsRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowClusterAllHostsRequest::getRegionId()const void ListFlowClusterAllHostsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListFlowClusterAllHostsRequest::getClusterId()const @@ -44,7 +44,7 @@ std::string ListFlowClusterAllHostsRequest::getClusterId()const void ListFlowClusterAllHostsRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListFlowClusterAllHostsRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string ListFlowClusterAllHostsRequest::getProjectId()const void ListFlowClusterAllHostsRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/ListFlowClusterAllHostsResult.cc b/emr/src/model/ListFlowClusterAllHostsResult.cc index a27205d74..abfa0fb58 100644 --- a/emr/src/model/ListFlowClusterAllHostsResult.cc +++ b/emr/src/model/ListFlowClusterAllHostsResult.cc @@ -35,10 +35,13 @@ ListFlowClusterAllHostsResult::~ListFlowClusterAllHostsResult() void ListFlowClusterAllHostsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHostList = value["HostList"]["Host"]; for (auto value : allHostList) diff --git a/emr/src/model/ListFlowClusterAllRequest.cc b/emr/src/model/ListFlowClusterAllRequest.cc index f329602c7..761542a80 100644 --- a/emr/src/model/ListFlowClusterAllRequest.cc +++ b/emr/src/model/ListFlowClusterAllRequest.cc @@ -33,6 +33,6 @@ std::string ListFlowClusterAllRequest::getRegionId()const void ListFlowClusterAllRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/emr/src/model/ListFlowClusterAllResult.cc b/emr/src/model/ListFlowClusterAllResult.cc index 7a45c4bd8..0538171d1 100644 --- a/emr/src/model/ListFlowClusterAllResult.cc +++ b/emr/src/model/ListFlowClusterAllResult.cc @@ -35,10 +35,13 @@ ListFlowClusterAllResult::~ListFlowClusterAllResult() void ListFlowClusterAllResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusters = value["Clusters"]["ClusterInfo"]; for (auto value : allClusters) diff --git a/emr/src/model/ListFlowClusterHostRequest.cc b/emr/src/model/ListFlowClusterHostRequest.cc index af2b9dfe5..73aaad5bf 100644 --- a/emr/src/model/ListFlowClusterHostRequest.cc +++ b/emr/src/model/ListFlowClusterHostRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowClusterHostRequest::getRegionId()const void ListFlowClusterHostRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListFlowClusterHostRequest::getClusterId()const @@ -44,7 +44,7 @@ std::string ListFlowClusterHostRequest::getClusterId()const void ListFlowClusterHostRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListFlowClusterHostRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string ListFlowClusterHostRequest::getProjectId()const void ListFlowClusterHostRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/ListFlowClusterHostResult.cc b/emr/src/model/ListFlowClusterHostResult.cc index f5e858858..fb0db637c 100644 --- a/emr/src/model/ListFlowClusterHostResult.cc +++ b/emr/src/model/ListFlowClusterHostResult.cc @@ -35,10 +35,13 @@ ListFlowClusterHostResult::~ListFlowClusterHostResult() void ListFlowClusterHostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHostList = value["HostList"]["Host"]; for (auto value : allHostList) diff --git a/emr/src/model/ListFlowClusterRequest.cc b/emr/src/model/ListFlowClusterRequest.cc index c404a7745..7c300c97e 100644 --- a/emr/src/model/ListFlowClusterRequest.cc +++ b/emr/src/model/ListFlowClusterRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowClusterRequest::getRegionId()const void ListFlowClusterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowClusterRequest::getPageSize()const @@ -44,7 +44,7 @@ int ListFlowClusterRequest::getPageSize()const void ListFlowClusterRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowClusterRequest::getProjectId()const @@ -55,7 +55,7 @@ std::string ListFlowClusterRequest::getProjectId()const void ListFlowClusterRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowClusterRequest::getPageNumber()const @@ -66,6 +66,6 @@ int ListFlowClusterRequest::getPageNumber()const void ListFlowClusterRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowClusterResult.cc b/emr/src/model/ListFlowClusterResult.cc index d1c4867f3..8f01b4391 100644 --- a/emr/src/model/ListFlowClusterResult.cc +++ b/emr/src/model/ListFlowClusterResult.cc @@ -35,10 +35,13 @@ ListFlowClusterResult::~ListFlowClusterResult() void ListFlowClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusters = value["Clusters"]["ClusterInfo"]; for (auto value : allClusters) diff --git a/emr/src/model/ListFlowInstanceRequest.cc b/emr/src/model/ListFlowInstanceRequest.cc index 67abd0b42..1f858cff3 100644 --- a/emr/src/model/ListFlowInstanceRequest.cc +++ b/emr/src/model/ListFlowInstanceRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowInstanceRequest::getOwner()const void ListFlowInstanceRequest::setOwner(const std::string& owner) { owner_ = owner; - setParameter("Owner", owner); + setCoreParameter("Owner", owner); } std::string ListFlowInstanceRequest::getTimeRange()const @@ -44,7 +44,7 @@ std::string ListFlowInstanceRequest::getTimeRange()const void ListFlowInstanceRequest::setTimeRange(const std::string& timeRange) { timeRange_ = timeRange; - setParameter("TimeRange", timeRange); + setCoreParameter("TimeRange", timeRange); } std::vector ListFlowInstanceRequest::getStatusList()const @@ -56,7 +56,7 @@ void ListFlowInstanceRequest::setStatusList(const std::vector& stat { statusList_ = statusList; for(int i = 0; i!= statusList.size(); i++) - setParameter("StatusList."+ std::to_string(i), statusList.at(i)); + setCoreParameter("StatusList."+ std::to_string(i), statusList.at(i)); } std::string ListFlowInstanceRequest::getOrderBy()const @@ -67,7 +67,7 @@ std::string ListFlowInstanceRequest::getOrderBy()const void ListFlowInstanceRequest::setOrderBy(const std::string& orderBy) { orderBy_ = orderBy; - setParameter("OrderBy", orderBy); + setCoreParameter("OrderBy", orderBy); } int ListFlowInstanceRequest::getPageNumber()const @@ -78,7 +78,7 @@ int ListFlowInstanceRequest::getPageNumber()const void ListFlowInstanceRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListFlowInstanceRequest::getInstanceId()const @@ -89,7 +89,7 @@ std::string ListFlowInstanceRequest::getInstanceId()const void ListFlowInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ListFlowInstanceRequest::getRegionId()const @@ -100,7 +100,7 @@ std::string ListFlowInstanceRequest::getRegionId()const void ListFlowInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowInstanceRequest::getPageSize()const @@ -111,7 +111,7 @@ int ListFlowInstanceRequest::getPageSize()const void ListFlowInstanceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowInstanceRequest::getFlowName()const @@ -122,7 +122,7 @@ std::string ListFlowInstanceRequest::getFlowName()const void ListFlowInstanceRequest::setFlowName(const std::string& flowName) { flowName_ = flowName; - setParameter("FlowName", flowName); + setCoreParameter("FlowName", flowName); } std::string ListFlowInstanceRequest::getId()const @@ -133,7 +133,7 @@ std::string ListFlowInstanceRequest::getId()const void ListFlowInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListFlowInstanceRequest::getFlowId()const @@ -144,7 +144,7 @@ std::string ListFlowInstanceRequest::getFlowId()const void ListFlowInstanceRequest::setFlowId(const std::string& flowId) { flowId_ = flowId; - setParameter("FlowId", flowId); + setCoreParameter("FlowId", flowId); } std::string ListFlowInstanceRequest::getProjectId()const @@ -155,7 +155,7 @@ std::string ListFlowInstanceRequest::getProjectId()const void ListFlowInstanceRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string ListFlowInstanceRequest::getOrderType()const @@ -166,6 +166,6 @@ std::string ListFlowInstanceRequest::getOrderType()const void ListFlowInstanceRequest::setOrderType(const std::string& orderType) { orderType_ = orderType; - setParameter("OrderType", orderType); + setCoreParameter("OrderType", orderType); } diff --git a/emr/src/model/ListFlowInstanceResult.cc b/emr/src/model/ListFlowInstanceResult.cc index c8604c109..b9954db5f 100644 --- a/emr/src/model/ListFlowInstanceResult.cc +++ b/emr/src/model/ListFlowInstanceResult.cc @@ -35,10 +35,13 @@ ListFlowInstanceResult::~ListFlowInstanceResult() void ListFlowInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFlowInstances = value["FlowInstances"]["FlowInstance"]; for (auto value : allFlowInstances) diff --git a/emr/src/model/ListFlowJobHistoryRequest.cc b/emr/src/model/ListFlowJobHistoryRequest.cc index e4fcbbbf2..bc2d05d47 100644 --- a/emr/src/model/ListFlowJobHistoryRequest.cc +++ b/emr/src/model/ListFlowJobHistoryRequest.cc @@ -25,6 +25,40 @@ ListFlowJobHistoryRequest::ListFlowJobHistoryRequest() : ListFlowJobHistoryRequest::~ListFlowJobHistoryRequest() {} +std::string ListFlowJobHistoryRequest::getTimeRange()const +{ + return timeRange_; +} + +void ListFlowJobHistoryRequest::setTimeRange(const std::string& timeRange) +{ + timeRange_ = timeRange; + setCoreParameter("TimeRange", timeRange); +} + +std::vector ListFlowJobHistoryRequest::getStatusList()const +{ + return statusList_; +} + +void ListFlowJobHistoryRequest::setStatusList(const std::vector& statusList) +{ + statusList_ = statusList; + for(int i = 0; i!= statusList.size(); i++) + setCoreParameter("StatusList."+ std::to_string(i), statusList.at(i)); +} + +std::string ListFlowJobHistoryRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListFlowJobHistoryRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + std::string ListFlowJobHistoryRequest::getRegionId()const { return regionId_; @@ -33,7 +67,7 @@ std::string ListFlowJobHistoryRequest::getRegionId()const void ListFlowJobHistoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowJobHistoryRequest::getPageSize()const @@ -44,7 +78,7 @@ int ListFlowJobHistoryRequest::getPageSize()const void ListFlowJobHistoryRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowJobHistoryRequest::getId()const @@ -55,7 +89,7 @@ std::string ListFlowJobHistoryRequest::getId()const void ListFlowJobHistoryRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListFlowJobHistoryRequest::getProjectId()const @@ -66,7 +100,18 @@ std::string ListFlowJobHistoryRequest::getProjectId()const void ListFlowJobHistoryRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); +} + +std::string ListFlowJobHistoryRequest::getJobType()const +{ + return jobType_; +} + +void ListFlowJobHistoryRequest::setJobType(const std::string& jobType) +{ + jobType_ = jobType; + setCoreParameter("JobType", jobType); } int ListFlowJobHistoryRequest::getPageNumber()const @@ -77,6 +122,6 @@ int ListFlowJobHistoryRequest::getPageNumber()const void ListFlowJobHistoryRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowJobHistoryResult.cc b/emr/src/model/ListFlowJobHistoryResult.cc index 95d1396a6..eceddde1c 100644 --- a/emr/src/model/ListFlowJobHistoryResult.cc +++ b/emr/src/model/ListFlowJobHistoryResult.cc @@ -35,10 +35,13 @@ ListFlowJobHistoryResult::~ListFlowJobHistoryResult() void ListFlowJobHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNodeInstances = value["NodeInstances"]["NodeInstance"]; for (auto value : allNodeInstances) diff --git a/emr/src/model/ListFlowJobRequest.cc b/emr/src/model/ListFlowJobRequest.cc index 37aee7cfa..3200d7f88 100644 --- a/emr/src/model/ListFlowJobRequest.cc +++ b/emr/src/model/ListFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowJobRequest::getRegionId()const void ListFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListFlowJobRequest::getName()const @@ -44,7 +44,7 @@ std::string ListFlowJobRequest::getName()const void ListFlowJobRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int ListFlowJobRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListFlowJobRequest::getPageSize()const void ListFlowJobRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowJobRequest::getId()const @@ -66,7 +66,7 @@ std::string ListFlowJobRequest::getId()const void ListFlowJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListFlowJobRequest::getType()const @@ -77,7 +77,7 @@ std::string ListFlowJobRequest::getType()const void ListFlowJobRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } bool ListFlowJobRequest::getAdhoc()const @@ -88,7 +88,7 @@ bool ListFlowJobRequest::getAdhoc()const void ListFlowJobRequest::setAdhoc(bool adhoc) { adhoc_ = adhoc; - setParameter("Adhoc", std::to_string(adhoc)); + setCoreParameter("Adhoc", adhoc ? "true" : "false"); } std::string ListFlowJobRequest::getProjectId()const @@ -99,7 +99,7 @@ std::string ListFlowJobRequest::getProjectId()const void ListFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowJobRequest::getPageNumber()const @@ -110,6 +110,6 @@ int ListFlowJobRequest::getPageNumber()const void ListFlowJobRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowJobResult.cc b/emr/src/model/ListFlowJobResult.cc index 37fc9fb74..e04abac9c 100644 --- a/emr/src/model/ListFlowJobResult.cc +++ b/emr/src/model/ListFlowJobResult.cc @@ -35,10 +35,13 @@ ListFlowJobResult::~ListFlowJobResult() void ListFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/emr/src/model/ListFlowNodeInstanceContainerStatusRequest.cc b/emr/src/model/ListFlowNodeInstanceContainerStatusRequest.cc index 641914303..a46911081 100644 --- a/emr/src/model/ListFlowNodeInstanceContainerStatusRequest.cc +++ b/emr/src/model/ListFlowNodeInstanceContainerStatusRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowNodeInstanceContainerStatusRequest::getRegionId()const void ListFlowNodeInstanceContainerStatusRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowNodeInstanceContainerStatusRequest::getPageSize()const @@ -44,7 +44,7 @@ int ListFlowNodeInstanceContainerStatusRequest::getPageSize()const void ListFlowNodeInstanceContainerStatusRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowNodeInstanceContainerStatusRequest::getNodeInstanceId()const @@ -55,7 +55,7 @@ std::string ListFlowNodeInstanceContainerStatusRequest::getNodeInstanceId()const void ListFlowNodeInstanceContainerStatusRequest::setNodeInstanceId(const std::string& nodeInstanceId) { nodeInstanceId_ = nodeInstanceId; - setParameter("NodeInstanceId", nodeInstanceId); + setCoreParameter("NodeInstanceId", nodeInstanceId); } std::string ListFlowNodeInstanceContainerStatusRequest::getProjectId()const @@ -66,7 +66,7 @@ std::string ListFlowNodeInstanceContainerStatusRequest::getProjectId()const void ListFlowNodeInstanceContainerStatusRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowNodeInstanceContainerStatusRequest::getPageNumber()const @@ -77,6 +77,6 @@ int ListFlowNodeInstanceContainerStatusRequest::getPageNumber()const void ListFlowNodeInstanceContainerStatusRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowNodeInstanceContainerStatusResult.cc b/emr/src/model/ListFlowNodeInstanceContainerStatusResult.cc index 9b3c3cced..77b1fa80a 100644 --- a/emr/src/model/ListFlowNodeInstanceContainerStatusResult.cc +++ b/emr/src/model/ListFlowNodeInstanceContainerStatusResult.cc @@ -35,10 +35,13 @@ ListFlowNodeInstanceContainerStatusResult::~ListFlowNodeInstanceContainerStatusR void ListFlowNodeInstanceContainerStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allContainerStatusList = value["ContainerStatusList"]["ContainerStatus"]; for (auto value : allContainerStatusList) diff --git a/emr/src/model/ListFlowNodeInstanceRequest.cc b/emr/src/model/ListFlowNodeInstanceRequest.cc index c88a0cac7..49c303ea7 100644 --- a/emr/src/model/ListFlowNodeInstanceRequest.cc +++ b/emr/src/model/ListFlowNodeInstanceRequest.cc @@ -34,7 +34,7 @@ void ListFlowNodeInstanceRequest::setStatusList(const std::vector& { statusList_ = statusList; for(int i = 0; i!= statusList.size(); i++) - setParameter("StatusList."+ std::to_string(i), statusList.at(i)); + setCoreParameter("StatusList."+ std::to_string(i), statusList.at(i)); } std::string ListFlowNodeInstanceRequest::getRegionId()const @@ -45,7 +45,7 @@ std::string ListFlowNodeInstanceRequest::getRegionId()const void ListFlowNodeInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowNodeInstanceRequest::getPageSize()const @@ -56,7 +56,7 @@ int ListFlowNodeInstanceRequest::getPageSize()const void ListFlowNodeInstanceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowNodeInstanceRequest::getOrderBy()const @@ -67,7 +67,7 @@ std::string ListFlowNodeInstanceRequest::getOrderBy()const void ListFlowNodeInstanceRequest::setOrderBy(const std::string& orderBy) { orderBy_ = orderBy; - setParameter("OrderBy", orderBy); + setCoreParameter("OrderBy", orderBy); } long ListFlowNodeInstanceRequest::getStartTime()const @@ -78,7 +78,7 @@ long ListFlowNodeInstanceRequest::getStartTime()const void ListFlowNodeInstanceRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string ListFlowNodeInstanceRequest::getProjectId()const @@ -89,7 +89,7 @@ std::string ListFlowNodeInstanceRequest::getProjectId()const void ListFlowNodeInstanceRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowNodeInstanceRequest::getPageNumber()const @@ -100,7 +100,7 @@ int ListFlowNodeInstanceRequest::getPageNumber()const void ListFlowNodeInstanceRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListFlowNodeInstanceRequest::getOrderType()const @@ -111,6 +111,6 @@ std::string ListFlowNodeInstanceRequest::getOrderType()const void ListFlowNodeInstanceRequest::setOrderType(const std::string& orderType) { orderType_ = orderType; - setParameter("OrderType", orderType); + setCoreParameter("OrderType", orderType); } diff --git a/emr/src/model/ListFlowNodeInstanceResult.cc b/emr/src/model/ListFlowNodeInstanceResult.cc index 3d0c58455..2555aeed1 100644 --- a/emr/src/model/ListFlowNodeInstanceResult.cc +++ b/emr/src/model/ListFlowNodeInstanceResult.cc @@ -35,10 +35,13 @@ ListFlowNodeInstanceResult::~ListFlowNodeInstanceResult() void ListFlowNodeInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFlowNodeInstances = value["FlowNodeInstances"]["FlowNodeInstance"]; for (auto value : allFlowNodeInstances) diff --git a/emr/src/model/ListFlowNodeSqlResultRequest.cc b/emr/src/model/ListFlowNodeSqlResultRequest.cc index d385286e5..cc864587a 100644 --- a/emr/src/model/ListFlowNodeSqlResultRequest.cc +++ b/emr/src/model/ListFlowNodeSqlResultRequest.cc @@ -33,7 +33,7 @@ int ListFlowNodeSqlResultRequest::getOffset()const void ListFlowNodeSqlResultRequest::setOffset(int offset) { offset_ = offset; - setParameter("Offset", std::to_string(offset)); + setCoreParameter("Offset", std::to_string(offset)); } std::string ListFlowNodeSqlResultRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListFlowNodeSqlResultRequest::getRegionId()const void ListFlowNodeSqlResultRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowNodeSqlResultRequest::getLength()const @@ -55,7 +55,7 @@ int ListFlowNodeSqlResultRequest::getLength()const void ListFlowNodeSqlResultRequest::setLength(int length) { length_ = length; - setParameter("Length", std::to_string(length)); + setCoreParameter("Length", std::to_string(length)); } int ListFlowNodeSqlResultRequest::getSqlIndex()const @@ -66,7 +66,7 @@ int ListFlowNodeSqlResultRequest::getSqlIndex()const void ListFlowNodeSqlResultRequest::setSqlIndex(int sqlIndex) { sqlIndex_ = sqlIndex; - setParameter("SqlIndex", std::to_string(sqlIndex)); + setCoreParameter("SqlIndex", std::to_string(sqlIndex)); } std::string ListFlowNodeSqlResultRequest::getNodeInstanceId()const @@ -77,7 +77,7 @@ std::string ListFlowNodeSqlResultRequest::getNodeInstanceId()const void ListFlowNodeSqlResultRequest::setNodeInstanceId(const std::string& nodeInstanceId) { nodeInstanceId_ = nodeInstanceId; - setParameter("NodeInstanceId", nodeInstanceId); + setCoreParameter("NodeInstanceId", nodeInstanceId); } std::string ListFlowNodeSqlResultRequest::getProjectId()const @@ -88,6 +88,6 @@ std::string ListFlowNodeSqlResultRequest::getProjectId()const void ListFlowNodeSqlResultRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/ListFlowNodeSqlResultResult.cc b/emr/src/model/ListFlowNodeSqlResultResult.cc index d1a4ecf11..0c5dcf808 100644 --- a/emr/src/model/ListFlowNodeSqlResultResult.cc +++ b/emr/src/model/ListFlowNodeSqlResultResult.cc @@ -35,10 +35,13 @@ ListFlowNodeSqlResultResult::~ListFlowNodeSqlResultResult() void ListFlowNodeSqlResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRowList = value["RowList"]["Row"]; for (auto value : allRowList) diff --git a/emr/src/model/ListFlowProjectClusterSettingRequest.cc b/emr/src/model/ListFlowProjectClusterSettingRequest.cc index 922ffdfa7..53a65725a 100644 --- a/emr/src/model/ListFlowProjectClusterSettingRequest.cc +++ b/emr/src/model/ListFlowProjectClusterSettingRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowProjectClusterSettingRequest::getRegionId()const void ListFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowProjectClusterSettingRequest::getPageSize()const @@ -44,7 +44,7 @@ int ListFlowProjectClusterSettingRequest::getPageSize()const void ListFlowProjectClusterSettingRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowProjectClusterSettingRequest::getProjectId()const @@ -55,7 +55,7 @@ std::string ListFlowProjectClusterSettingRequest::getProjectId()const void ListFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowProjectClusterSettingRequest::getPageNumber()const @@ -66,6 +66,6 @@ int ListFlowProjectClusterSettingRequest::getPageNumber()const void ListFlowProjectClusterSettingRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowProjectClusterSettingResult.cc b/emr/src/model/ListFlowProjectClusterSettingResult.cc index c3f3ad7bd..56d6d124c 100644 --- a/emr/src/model/ListFlowProjectClusterSettingResult.cc +++ b/emr/src/model/ListFlowProjectClusterSettingResult.cc @@ -35,10 +35,13 @@ ListFlowProjectClusterSettingResult::~ListFlowProjectClusterSettingResult() void ListFlowProjectClusterSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterSettings = value["ClusterSettings"]["ClusterSetting"]; for (auto value : allClusterSettings) diff --git a/emr/src/model/ListFlowProjectRequest.cc b/emr/src/model/ListFlowProjectRequest.cc index ee4acb60d..1d9db4a64 100644 --- a/emr/src/model/ListFlowProjectRequest.cc +++ b/emr/src/model/ListFlowProjectRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowProjectRequest::getRegionId()const void ListFlowProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListFlowProjectRequest::getName()const @@ -44,7 +44,7 @@ std::string ListFlowProjectRequest::getName()const void ListFlowProjectRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int ListFlowProjectRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListFlowProjectRequest::getPageSize()const void ListFlowProjectRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowProjectRequest::getProjectId()const @@ -66,7 +66,7 @@ std::string ListFlowProjectRequest::getProjectId()const void ListFlowProjectRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowProjectRequest::getPageNumber()const @@ -77,6 +77,6 @@ int ListFlowProjectRequest::getPageNumber()const void ListFlowProjectRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowProjectResult.cc b/emr/src/model/ListFlowProjectResult.cc index 0385705f8..73bc6bb49 100644 --- a/emr/src/model/ListFlowProjectResult.cc +++ b/emr/src/model/ListFlowProjectResult.cc @@ -35,10 +35,13 @@ ListFlowProjectResult::~ListFlowProjectResult() void ListFlowProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allProjects = value["Projects"]["Project"]; for (auto value : allProjects) diff --git a/emr/src/model/ListFlowProjectUserRequest.cc b/emr/src/model/ListFlowProjectUserRequest.cc index c34ae77d2..e16ef8996 100644 --- a/emr/src/model/ListFlowProjectUserRequest.cc +++ b/emr/src/model/ListFlowProjectUserRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowProjectUserRequest::getRegionId()const void ListFlowProjectUserRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListFlowProjectUserRequest::getPageSize()const @@ -44,7 +44,7 @@ int ListFlowProjectUserRequest::getPageSize()const void ListFlowProjectUserRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowProjectUserRequest::getProjectId()const @@ -55,7 +55,7 @@ std::string ListFlowProjectUserRequest::getProjectId()const void ListFlowProjectUserRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowProjectUserRequest::getPageNumber()const @@ -66,6 +66,6 @@ int ListFlowProjectUserRequest::getPageNumber()const void ListFlowProjectUserRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/emr/src/model/ListFlowProjectUserResult.cc b/emr/src/model/ListFlowProjectUserResult.cc index 389b31fda..54e091d61 100644 --- a/emr/src/model/ListFlowProjectUserResult.cc +++ b/emr/src/model/ListFlowProjectUserResult.cc @@ -35,10 +35,13 @@ ListFlowProjectUserResult::~ListFlowProjectUserResult() void ListFlowProjectUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUsers = value["Users"]["User"]; for (auto value : allUsers) diff --git a/emr/src/model/ListFlowRequest.cc b/emr/src/model/ListFlowRequest.cc index 4ddcaf650..07c7c9040 100644 --- a/emr/src/model/ListFlowRequest.cc +++ b/emr/src/model/ListFlowRequest.cc @@ -33,7 +33,7 @@ std::string ListFlowRequest::getJobId()const void ListFlowRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } std::string ListFlowRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListFlowRequest::getRegionId()const void ListFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool ListFlowRequest::getPeriodic()const @@ -55,7 +55,7 @@ bool ListFlowRequest::getPeriodic()const void ListFlowRequest::setPeriodic(bool periodic) { periodic_ = periodic; - setParameter("Periodic", std::to_string(periodic)); + setCoreParameter("Periodic", periodic ? "true" : "false"); } std::string ListFlowRequest::getName()const @@ -66,7 +66,7 @@ std::string ListFlowRequest::getName()const void ListFlowRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int ListFlowRequest::getPageSize()const @@ -77,7 +77,7 @@ int ListFlowRequest::getPageSize()const void ListFlowRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListFlowRequest::getId()const @@ -88,7 +88,7 @@ std::string ListFlowRequest::getId()const void ListFlowRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ListFlowRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string ListFlowRequest::getClusterId()const void ListFlowRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListFlowRequest::getProjectId()const @@ -110,7 +110,7 @@ std::string ListFlowRequest::getProjectId()const void ListFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } int ListFlowRequest::getPageNumber()const @@ -121,7 +121,7 @@ int ListFlowRequest::getPageNumber()const void ListFlowRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListFlowRequest::getStatus()const @@ -132,6 +132,6 @@ std::string ListFlowRequest::getStatus()const void ListFlowRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/emr/src/model/ListFlowResult.cc b/emr/src/model/ListFlowResult.cc index 860a5ec48..e8fa1129b 100644 --- a/emr/src/model/ListFlowResult.cc +++ b/emr/src/model/ListFlowResult.cc @@ -35,10 +35,13 @@ ListFlowResult::~ListFlowResult() void ListFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFlow = value["Flow"]["FlowItem"]; for (auto value : allFlow) diff --git a/emr/src/model/ListHostPoolRequest.cc b/emr/src/model/ListHostPoolRequest.cc new file mode 100644 index 000000000..4b07e84c8 --- /dev/null +++ b/emr/src/model/ListHostPoolRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::ListHostPoolRequest; + +ListHostPoolRequest::ListHostPoolRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListHostPool") +{} + +ListHostPoolRequest::~ListHostPoolRequest() +{} + +long ListHostPoolRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListHostPoolRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListHostPoolRequest::getRegionId()const +{ + return regionId_; +} + +void ListHostPoolRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListHostPoolRequest::getPageSize()const +{ + return pageSize_; +} + +void ListHostPoolRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int ListHostPoolRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListHostPoolRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListHostPoolRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListHostPoolRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListHostPoolResult.cc b/emr/src/model/ListHostPoolResult.cc new file mode 100644 index 000000000..ef1a62238 --- /dev/null +++ b/emr/src/model/ListHostPoolResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListHostPoolResult::ListHostPoolResult() : + ServiceResult() +{} + +ListHostPoolResult::ListHostPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListHostPoolResult::~ListHostPoolResult() +{} + +void ListHostPoolResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allHostPoolList = value["HostPoolList"]["HostPool"]; + for (auto value : allHostPoolList) + { + HostPool hostPoolListObject; + if(!value["Name"].isNull()) + hostPoolListObject.name = value["Name"].asString(); + if(!value["BizId"].isNull()) + hostPoolListObject.bizId = value["BizId"].asString(); + if(!value["Status"].isNull()) + hostPoolListObject.status = value["Status"].asString(); + if(!value["Type"].isNull()) + hostPoolListObject.type = value["Type"].asString(); + if(!value["Description"].isNull()) + hostPoolListObject.description = value["Description"].asString(); + if(!value["HostCount"].isNull()) + hostPoolListObject.hostCount = std::stoi(value["HostCount"].asString()); + if(!value["GmtCreate"].isNull()) + hostPoolListObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + hostPoolList_.push_back(hostPoolListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int ListHostPoolResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListHostPoolResult::getHostPoolList()const +{ + return hostPoolList_; +} + +int ListHostPoolResult::getPageSize()const +{ + return pageSize_; +} + +int ListHostPoolResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/emr/src/model/ListHpHostRequest.cc b/emr/src/model/ListHpHostRequest.cc new file mode 100644 index 000000000..b6ca5f576 --- /dev/null +++ b/emr/src/model/ListHpHostRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListHpHostRequest; + +ListHpHostRequest::ListHpHostRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListHpHost") +{} + +ListHpHostRequest::~ListHpHostRequest() +{} + +long ListHpHostRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListHpHostRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListHpHostRequest::getRole()const +{ + return role_; +} + +void ListHpHostRequest::setRole(const std::string& role) +{ + role_ = role; + setCoreParameter("Role", role); +} + +std::string ListHpHostRequest::getRegionId()const +{ + return regionId_; +} + +void ListHpHostRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListHpHostRequest::getPageSize()const +{ + return pageSize_; +} + +void ListHpHostRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListHpHostRequest::getHpBizId()const +{ + return hpBizId_; +} + +void ListHpHostRequest::setHpBizId(const std::string& hpBizId) +{ + hpBizId_ = hpBizId; + setCoreParameter("HpBizId", hpBizId); +} + +int ListHpHostRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListHpHostRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListHpHostRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListHpHostRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListHpHostRequest::getStatus()const +{ + return status_; +} + +void ListHpHostRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/ListHpHostResult.cc b/emr/src/model/ListHpHostResult.cc new file mode 100644 index 000000000..b2789e1ec --- /dev/null +++ b/emr/src/model/ListHpHostResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListHpHostResult::ListHpHostResult() : + ServiceResult() +{} + +ListHpHostResult::ListHpHostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListHpHostResult::~ListHpHostResult() +{} + +void ListHpHostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allHpHostList = value["HpHostList"]["HpHost"]; + for (auto value : allHpHostList) + { + HpHost hpHostListObject; + if(!value["BizId"].isNull()) + hpHostListObject.bizId = value["BizId"].asString(); + if(!value["HostName"].isNull()) + hpHostListObject.hostName = value["HostName"].asString(); + if(!value["InnerIp"].isNull()) + hpHostListObject.innerIp = value["InnerIp"].asString(); + if(!value["Role"].isNull()) + hpHostListObject.role = value["Role"].asString(); + if(!value["Status"].isNull()) + hpHostListObject.status = value["Status"].asString(); + if(!value["Description"].isNull()) + hpHostListObject.description = value["Description"].asString(); + if(!value["CpuCore"].isNull()) + hpHostListObject.cpuCore = std::stoi(value["CpuCore"].asString()); + if(!value["MemSize"].isNull()) + hpHostListObject.memSize = std::stoi(value["MemSize"].asString()); + if(!value["VpcId"].isNull()) + hpHostListObject.vpcId = value["VpcId"].asString(); + if(!value["VswitchId"].isNull()) + hpHostListObject.vswitchId = value["VswitchId"].asString(); + if(!value["SecurityGroupId"].isNull()) + hpHostListObject.securityGroupId = value["SecurityGroupId"].asString(); + if(!value["ExternalIp"].isNull()) + hpHostListObject.externalIp = value["ExternalIp"].asString(); + if(!value["ExternalKey"].isNull()) + hpHostListObject.externalKey = value["ExternalKey"].asString(); + auto allDiskList = value["DiskList"]["Disk"]; + for (auto value : allDiskList) + { + HpHost::Disk diskListObject; + if(!value["DiskDevice"].isNull()) + diskListObject.diskDevice = value["DiskDevice"].asString(); + if(!value["DiskSize"].isNull()) + diskListObject.diskSize = std::stoi(value["DiskSize"].asString()); + if(!value["MountPath"].isNull()) + diskListObject.mountPath = value["MountPath"].asString(); + hpHostListObject.diskList.push_back(diskListObject); + } + auto allInstalledComponents = value["InstalledComponents"]["InstalledComponent"]; + for (auto value : allInstalledComponents) + hpHostListObject.installedComponents.push_back(value.asString()); + hpHostList_.push_back(hpHostListObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListHpHostResult::getTotalCount()const +{ + return totalCount_; +} + +int ListHpHostResult::getPageSize()const +{ + return pageSize_; +} + +int ListHpHostResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListHpHostResult::getHpHostList()const +{ + return hpHostList_; +} + diff --git a/emr/src/model/ListJobExecutionInstanceTrendRequest.cc b/emr/src/model/ListJobExecutionInstanceTrendRequest.cc index 1a7824ea4..c8bb423cc 100644 --- a/emr/src/model/ListJobExecutionInstanceTrendRequest.cc +++ b/emr/src/model/ListJobExecutionInstanceTrendRequest.cc @@ -33,7 +33,7 @@ long ListJobExecutionInstanceTrendRequest::getResourceOwnerId()const void ListJobExecutionInstanceTrendRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListJobExecutionInstanceTrendRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListJobExecutionInstanceTrendRequest::getRegionId()const void ListJobExecutionInstanceTrendRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListJobExecutionInstanceTrendRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListJobExecutionInstanceTrendRequest::getAccessKeyId()const void ListJobExecutionInstanceTrendRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListJobExecutionInstanceTrendResult.cc b/emr/src/model/ListJobExecutionInstanceTrendResult.cc index a6b13a96f..723c8aea9 100644 --- a/emr/src/model/ListJobExecutionInstanceTrendResult.cc +++ b/emr/src/model/ListJobExecutionInstanceTrendResult.cc @@ -35,10 +35,13 @@ ListJobExecutionInstanceTrendResult::~ListJobExecutionInstanceTrendResult() void ListJobExecutionInstanceTrendResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrends = value["Trends"]["Trend"]; for (auto value : allTrends) diff --git a/emr/src/model/ListJobExecutionInstancesRequest.cc b/emr/src/model/ListJobExecutionInstancesRequest.cc index 8f9a735ed..3cb0890f9 100644 --- a/emr/src/model/ListJobExecutionInstancesRequest.cc +++ b/emr/src/model/ListJobExecutionInstancesRequest.cc @@ -33,7 +33,7 @@ long ListJobExecutionInstancesRequest::getResourceOwnerId()const void ListJobExecutionInstancesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListJobExecutionInstancesRequest::getExecutionPlanInstanceId()const @@ -44,7 +44,7 @@ std::string ListJobExecutionInstancesRequest::getExecutionPlanInstanceId()const void ListJobExecutionInstancesRequest::setExecutionPlanInstanceId(const std::string& executionPlanInstanceId) { executionPlanInstanceId_ = executionPlanInstanceId; - setParameter("ExecutionPlanInstanceId", executionPlanInstanceId); + setCoreParameter("ExecutionPlanInstanceId", executionPlanInstanceId); } std::string ListJobExecutionInstancesRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ListJobExecutionInstancesRequest::getRegionId()const void ListJobExecutionInstancesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListJobExecutionInstancesRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListJobExecutionInstancesRequest::getPageSize()const void ListJobExecutionInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } bool ListJobExecutionInstancesRequest::getIsDesc()const @@ -77,7 +77,7 @@ bool ListJobExecutionInstancesRequest::getIsDesc()const void ListJobExecutionInstancesRequest::setIsDesc(bool isDesc) { isDesc_ = isDesc; - setParameter("IsDesc", std::to_string(isDesc)); + setCoreParameter("IsDesc", isDesc ? "true" : "false"); } int ListJobExecutionInstancesRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListJobExecutionInstancesRequest::getPageNumber()const void ListJobExecutionInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListJobExecutionInstancesRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListJobExecutionInstancesRequest::getAccessKeyId()const void ListJobExecutionInstancesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListJobExecutionInstancesResult.cc b/emr/src/model/ListJobExecutionInstancesResult.cc index c4769646e..f354f18d2 100644 --- a/emr/src/model/ListJobExecutionInstancesResult.cc +++ b/emr/src/model/ListJobExecutionInstancesResult.cc @@ -35,10 +35,13 @@ ListJobExecutionInstancesResult::~ListJobExecutionInstancesResult() void ListJobExecutionInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobInstances = value["JobInstances"]["JobInstance"]; for (auto value : allJobInstances) diff --git a/emr/src/model/ListJobExecutionPlanHierarchyRequest.cc b/emr/src/model/ListJobExecutionPlanHierarchyRequest.cc index b73f35b0f..fa09bac8b 100644 --- a/emr/src/model/ListJobExecutionPlanHierarchyRequest.cc +++ b/emr/src/model/ListJobExecutionPlanHierarchyRequest.cc @@ -33,7 +33,7 @@ long ListJobExecutionPlanHierarchyRequest::getResourceOwnerId()const void ListJobExecutionPlanHierarchyRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long ListJobExecutionPlanHierarchyRequest::getCurrentId()const @@ -44,7 +44,7 @@ long ListJobExecutionPlanHierarchyRequest::getCurrentId()const void ListJobExecutionPlanHierarchyRequest::setCurrentId(long currentId) { currentId_ = currentId; - setParameter("CurrentId", std::to_string(currentId)); + setCoreParameter("CurrentId", std::to_string(currentId)); } int ListJobExecutionPlanHierarchyRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListJobExecutionPlanHierarchyRequest::getPageSize()const void ListJobExecutionPlanHierarchyRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListJobExecutionPlanHierarchyRequest::getPageNumber()const @@ -66,7 +66,7 @@ int ListJobExecutionPlanHierarchyRequest::getPageNumber()const void ListJobExecutionPlanHierarchyRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListJobExecutionPlanHierarchyRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListJobExecutionPlanHierarchyRequest::getAccessKeyId()const void ListJobExecutionPlanHierarchyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListJobExecutionPlanHierarchyResult.cc b/emr/src/model/ListJobExecutionPlanHierarchyResult.cc index 7648ee02b..5cf346f7f 100644 --- a/emr/src/model/ListJobExecutionPlanHierarchyResult.cc +++ b/emr/src/model/ListJobExecutionPlanHierarchyResult.cc @@ -35,10 +35,13 @@ ListJobExecutionPlanHierarchyResult::~ListJobExecutionPlanHierarchyResult() void ListJobExecutionPlanHierarchyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHierarchyInfos = value["HierarchyInfos"]["HierarchyInfo"]; for (auto value : allHierarchyInfos) diff --git a/emr/src/model/ListJobExecutionPlanParamsRequest.cc b/emr/src/model/ListJobExecutionPlanParamsRequest.cc index a62162520..feeb88b26 100644 --- a/emr/src/model/ListJobExecutionPlanParamsRequest.cc +++ b/emr/src/model/ListJobExecutionPlanParamsRequest.cc @@ -33,7 +33,7 @@ long ListJobExecutionPlanParamsRequest::getResourceOwnerId()const void ListJobExecutionPlanParamsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListJobExecutionPlanParamsRequest::getRelateId()const @@ -44,7 +44,7 @@ std::string ListJobExecutionPlanParamsRequest::getRelateId()const void ListJobExecutionPlanParamsRequest::setRelateId(const std::string& relateId) { relateId_ = relateId; - setParameter("RelateId", relateId); + setCoreParameter("RelateId", relateId); } std::string ListJobExecutionPlanParamsRequest::getAccessKeyId()const @@ -55,7 +55,7 @@ std::string ListJobExecutionPlanParamsRequest::getAccessKeyId()const void ListJobExecutionPlanParamsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListJobExecutionPlanParamsRequest::getParamBizType()const @@ -66,6 +66,6 @@ std::string ListJobExecutionPlanParamsRequest::getParamBizType()const void ListJobExecutionPlanParamsRequest::setParamBizType(const std::string& paramBizType) { paramBizType_ = paramBizType; - setParameter("ParamBizType", paramBizType); + setCoreParameter("ParamBizType", paramBizType); } diff --git a/emr/src/model/ListJobExecutionPlanParamsResult.cc b/emr/src/model/ListJobExecutionPlanParamsResult.cc index 9b6a57fed..11e041d2d 100644 --- a/emr/src/model/ListJobExecutionPlanParamsResult.cc +++ b/emr/src/model/ListJobExecutionPlanParamsResult.cc @@ -35,10 +35,13 @@ ListJobExecutionPlanParamsResult::~ListJobExecutionPlanParamsResult() void ListJobExecutionPlanParamsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParamInfoList = value["ParamInfoList"]["ParamInfo"]; for (auto value : allParamInfoList) diff --git a/emr/src/model/ListJobInstanceWorkersRequest.cc b/emr/src/model/ListJobInstanceWorkersRequest.cc index f5de9d98c..9e730152d 100644 --- a/emr/src/model/ListJobInstanceWorkersRequest.cc +++ b/emr/src/model/ListJobInstanceWorkersRequest.cc @@ -33,7 +33,7 @@ long ListJobInstanceWorkersRequest::getResourceOwnerId()const void ListJobInstanceWorkersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListJobInstanceWorkersRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListJobInstanceWorkersRequest::getRegionId()const void ListJobInstanceWorkersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListJobInstanceWorkersRequest::getJobInstanceId()const @@ -55,7 +55,7 @@ std::string ListJobInstanceWorkersRequest::getJobInstanceId()const void ListJobInstanceWorkersRequest::setJobInstanceId(const std::string& jobInstanceId) { jobInstanceId_ = jobInstanceId; - setParameter("JobInstanceId", jobInstanceId); + setCoreParameter("JobInstanceId", jobInstanceId); } std::string ListJobInstanceWorkersRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListJobInstanceWorkersRequest::getAccessKeyId()const void ListJobInstanceWorkersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListJobInstanceWorkersResult.cc b/emr/src/model/ListJobInstanceWorkersResult.cc index 1590d99fd..ae23f237a 100644 --- a/emr/src/model/ListJobInstanceWorkersResult.cc +++ b/emr/src/model/ListJobInstanceWorkersResult.cc @@ -35,10 +35,13 @@ ListJobInstanceWorkersResult::~ListJobInstanceWorkersResult() void ListJobInstanceWorkersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobInstanceWorkers = value["JobInstanceWorkers"]["JobInstanceWorkerInfo"]; for (auto value : allJobInstanceWorkers) diff --git a/emr/src/model/ListJobMigrateInfoRequest.cc b/emr/src/model/ListJobMigrateInfoRequest.cc index fe3c2f135..396994433 100644 --- a/emr/src/model/ListJobMigrateInfoRequest.cc +++ b/emr/src/model/ListJobMigrateInfoRequest.cc @@ -33,7 +33,7 @@ long ListJobMigrateInfoRequest::getResourceOwnerId()const void ListJobMigrateInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListJobMigrateInfoRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListJobMigrateInfoRequest::getRegionId()const void ListJobMigrateInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListJobMigrateInfoRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListJobMigrateInfoRequest::getPageSize()const void ListJobMigrateInfoRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListJobMigrateInfoRequest::getUserId()const @@ -66,7 +66,7 @@ std::string ListJobMigrateInfoRequest::getUserId()const void ListJobMigrateInfoRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } int ListJobMigrateInfoRequest::getCurrentSize()const @@ -77,7 +77,7 @@ int ListJobMigrateInfoRequest::getCurrentSize()const void ListJobMigrateInfoRequest::setCurrentSize(int currentSize) { currentSize_ = currentSize; - setParameter("CurrentSize", std::to_string(currentSize)); + setCoreParameter("CurrentSize", std::to_string(currentSize)); } std::string ListJobMigrateInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListJobMigrateInfoRequest::getAccessKeyId()const void ListJobMigrateInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListJobMigrateInfoResult.cc b/emr/src/model/ListJobMigrateInfoResult.cc index 09e2eab9f..37fd34575 100644 --- a/emr/src/model/ListJobMigrateInfoResult.cc +++ b/emr/src/model/ListJobMigrateInfoResult.cc @@ -35,10 +35,13 @@ ListJobMigrateInfoResult::~ListJobMigrateInfoResult() void ListJobMigrateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobMigrateInfoList = value["JobMigrateInfoList"]["JobMigrateInfo"]; for (auto value : allJobMigrateInfoList) diff --git a/emr/src/model/ListJobsRequest.cc b/emr/src/model/ListJobsRequest.cc index 2aee2360b..c208e6251 100644 --- a/emr/src/model/ListJobsRequest.cc +++ b/emr/src/model/ListJobsRequest.cc @@ -33,7 +33,7 @@ long ListJobsRequest::getResourceOwnerId()const void ListJobsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListJobsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListJobsRequest::getRegionId()const void ListJobsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListJobsRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListJobsRequest::getPageSize()const void ListJobsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListJobsRequest::getQueryString()const @@ -66,7 +66,7 @@ std::string ListJobsRequest::getQueryString()const void ListJobsRequest::setQueryString(const std::string& queryString) { queryString_ = queryString; - setParameter("QueryString", queryString); + setCoreParameter("QueryString", queryString); } bool ListJobsRequest::getIsDesc()const @@ -77,7 +77,7 @@ bool ListJobsRequest::getIsDesc()const void ListJobsRequest::setIsDesc(bool isDesc) { isDesc_ = isDesc; - setParameter("IsDesc", std::to_string(isDesc)); + setCoreParameter("IsDesc", isDesc ? "true" : "false"); } int ListJobsRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListJobsRequest::getPageNumber()const void ListJobsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListJobsRequest::getQueryType()const @@ -99,7 +99,7 @@ std::string ListJobsRequest::getQueryType()const void ListJobsRequest::setQueryType(const std::string& queryType) { queryType_ = queryType; - setParameter("QueryType", queryType); + setCoreParameter("QueryType", queryType); } std::string ListJobsRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListJobsRequest::getAccessKeyId()const void ListJobsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListJobsResult.cc b/emr/src/model/ListJobsResult.cc index f65fe8f77..fc531d4d7 100644 --- a/emr/src/model/ListJobsResult.cc +++ b/emr/src/model/ListJobsResult.cc @@ -35,10 +35,13 @@ ListJobsResult::~ListJobsResult() void ListJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobs = value["Jobs"]["JobInfo"]; for (auto value : allJobs) diff --git a/emr/src/model/ListKafkaBrokerRequest.cc b/emr/src/model/ListKafkaBrokerRequest.cc new file mode 100644 index 000000000..4754aff2b --- /dev/null +++ b/emr/src/model/ListKafkaBrokerRequest.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 + +using AlibabaCloud::Emr::Model::ListKafkaBrokerRequest; + +ListKafkaBrokerRequest::ListKafkaBrokerRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListKafkaBroker") +{} + +ListKafkaBrokerRequest::~ListKafkaBrokerRequest() +{} + +long ListKafkaBrokerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListKafkaBrokerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListKafkaBrokerRequest::getRegionId()const +{ + return regionId_; +} + +void ListKafkaBrokerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListKafkaBrokerRequest::getPageSize()const +{ + return pageSize_; +} + +void ListKafkaBrokerRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListKafkaBrokerRequest::getClusterId()const +{ + return clusterId_; +} + +void ListKafkaBrokerRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +int ListKafkaBrokerRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListKafkaBrokerRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListKafkaBrokerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListKafkaBrokerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListKafkaBrokerResult.cc b/emr/src/model/ListKafkaBrokerResult.cc new file mode 100644 index 000000000..dd1caedbf --- /dev/null +++ b/emr/src/model/ListKafkaBrokerResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListKafkaBrokerResult::ListKafkaBrokerResult() : + ServiceResult() +{} + +ListKafkaBrokerResult::ListKafkaBrokerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListKafkaBrokerResult::~ListKafkaBrokerResult() +{} + +void ListKafkaBrokerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allBrokerList = value["BrokerList"]["Broker"]; + for (auto value : allBrokerList) + { + Broker brokerListObject; + if(!value["BrokerId"].isNull()) + brokerListObject.brokerId = std::stoi(value["BrokerId"].asString()); + if(!value["HostId"].isNull()) + brokerListObject.hostId = value["HostId"].asString(); + if(!value["HostName"].isNull()) + brokerListObject.hostName = value["HostName"].asString(); + if(!value["HostIp"].isNull()) + brokerListObject.hostIp = value["HostIp"].asString(); + if(!value["Status"].isNull()) + brokerListObject.status = value["Status"].asString(); + if(!value["PartitionCount"].isNull()) + brokerListObject.partitionCount = std::stoi(value["PartitionCount"].asString()); + if(!value["LeaderCount"].isNull()) + brokerListObject.leaderCount = std::stoi(value["LeaderCount"].asString()); + if(!value["TopicCount"].isNull()) + brokerListObject.topicCount = std::stoi(value["TopicCount"].asString()); + if(!value["DiskUnbalanceRate"].isNull()) + brokerListObject.diskUnbalanceRate = value["DiskUnbalanceRate"].asString(); + if(!value["DiskUsageMean"].isNull()) + brokerListObject.diskUsageMean = value["DiskUsageMean"].asString(); + if(!value["DiskUsageMax"].isNull()) + brokerListObject.diskUsageMax = value["DiskUsageMax"].asString(); + if(!value["DiskCapacity"].isNull()) + brokerListObject.diskCapacity = std::stoi(value["DiskCapacity"].asString()); + if(!value["TrafficIn"].isNull()) + brokerListObject.trafficIn = value["TrafficIn"].asString(); + if(!value["TrafficOut"].isNull()) + brokerListObject.trafficOut = value["TrafficOut"].asString(); + brokerList_.push_back(brokerListObject); + } + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListKafkaBrokerResult::getPageSize()const +{ + return pageSize_; +} + +int ListKafkaBrokerResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListKafkaBrokerResult::getTotal()const +{ + return total_; +} + +std::vector ListKafkaBrokerResult::getBrokerList()const +{ + return brokerList_; +} + diff --git a/emr/src/model/ListKafkaReassignRequest.cc b/emr/src/model/ListKafkaReassignRequest.cc new file mode 100644 index 000000000..8d8de1fae --- /dev/null +++ b/emr/src/model/ListKafkaReassignRequest.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 + +using AlibabaCloud::Emr::Model::ListKafkaReassignRequest; + +ListKafkaReassignRequest::ListKafkaReassignRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListKafkaReassign") +{} + +ListKafkaReassignRequest::~ListKafkaReassignRequest() +{} + +long ListKafkaReassignRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListKafkaReassignRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListKafkaReassignRequest::getTopicId()const +{ + return topicId_; +} + +void ListKafkaReassignRequest::setTopicId(const std::string& topicId) +{ + topicId_ = topicId; + setCoreParameter("TopicId", topicId); +} + +std::string ListKafkaReassignRequest::getRegionId()const +{ + return regionId_; +} + +void ListKafkaReassignRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListKafkaReassignRequest::getPageSize()const +{ + return pageSize_; +} + +void ListKafkaReassignRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListKafkaReassignRequest::getClusterId()const +{ + return clusterId_; +} + +void ListKafkaReassignRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +int ListKafkaReassignRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListKafkaReassignRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListKafkaReassignRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListKafkaReassignRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListKafkaReassignResult.cc b/emr/src/model/ListKafkaReassignResult.cc new file mode 100644 index 000000000..47c86f2af --- /dev/null +++ b/emr/src/model/ListKafkaReassignResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListKafkaReassignResult::ListKafkaReassignResult() : + ServiceResult() +{} + +ListKafkaReassignResult::ListKafkaReassignResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListKafkaReassignResult::~ListKafkaReassignResult() +{} + +void ListKafkaReassignResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allReassignList = value["ReassignList"]["Reassign"]; + for (auto value : allReassignList) + { + Reassign reassignListObject; + if(!value["Id"].isNull()) + reassignListObject.id = value["Id"].asString(); + if(!value["Status"].isNull()) + reassignListObject.status = value["Status"].asString(); + if(!value["AssignProcess"].isNull()) + reassignListObject.assignProcess = std::stoi(value["AssignProcess"].asString()); + if(!value["StartTime"].isNull()) + reassignListObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + reassignListObject.endTime = std::stol(value["EndTime"].asString()); + if(!value["TopicCount"].isNull()) + reassignListObject.topicCount = std::stoi(value["TopicCount"].asString()); + if(!value["PartitionCount"].isNull()) + reassignListObject.partitionCount = std::stoi(value["PartitionCount"].asString()); + if(!value["Throttle"].isNull()) + reassignListObject.throttle = std::stol(value["Throttle"].asString()); + reassignList_.push_back(reassignListObject); + } + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListKafkaReassignResult::getPageSize()const +{ + return pageSize_; +} + +int ListKafkaReassignResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListKafkaReassignResult::getTotal()const +{ + return total_; +} + +std::vector ListKafkaReassignResult::getReassignList()const +{ + return reassignList_; +} + diff --git a/emr/src/model/ListKafkaReassignTopicRequest.cc b/emr/src/model/ListKafkaReassignTopicRequest.cc new file mode 100644 index 000000000..bc94ace9b --- /dev/null +++ b/emr/src/model/ListKafkaReassignTopicRequest.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 + +using AlibabaCloud::Emr::Model::ListKafkaReassignTopicRequest; + +ListKafkaReassignTopicRequest::ListKafkaReassignTopicRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListKafkaReassignTopic") +{} + +ListKafkaReassignTopicRequest::~ListKafkaReassignTopicRequest() +{} + +long ListKafkaReassignTopicRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListKafkaReassignTopicRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListKafkaReassignTopicRequest::getRegionId()const +{ + return regionId_; +} + +void ListKafkaReassignTopicRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListKafkaReassignTopicRequest::getReassignId()const +{ + return reassignId_; +} + +void ListKafkaReassignTopicRequest::setReassignId(const std::string& reassignId) +{ + reassignId_ = reassignId; + setCoreParameter("ReassignId", reassignId); +} + +int ListKafkaReassignTopicRequest::getPageSize()const +{ + return pageSize_; +} + +void ListKafkaReassignTopicRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int ListKafkaReassignTopicRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListKafkaReassignTopicRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListKafkaReassignTopicRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListKafkaReassignTopicRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListKafkaReassignTopicResult.cc b/emr/src/model/ListKafkaReassignTopicResult.cc new file mode 100644 index 000000000..57acc7f94 --- /dev/null +++ b/emr/src/model/ListKafkaReassignTopicResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListKafkaReassignTopicResult::ListKafkaReassignTopicResult() : + ServiceResult() +{} + +ListKafkaReassignTopicResult::ListKafkaReassignTopicResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListKafkaReassignTopicResult::~ListKafkaReassignTopicResult() +{} + +void ListKafkaReassignTopicResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allReassignTopicList = value["ReassignTopicList"]["ReassignTopic"]; + for (auto value : allReassignTopicList) + { + ReassignTopic reassignTopicListObject; + if(!value["TopicId"].isNull()) + reassignTopicListObject.topicId = value["TopicId"].asString(); + if(!value["TopicName"].isNull()) + reassignTopicListObject.topicName = value["TopicName"].asString(); + if(!value["NumPartition"].isNull()) + reassignTopicListObject.numPartition = std::stoi(value["NumPartition"].asString()); + if(!value["FinishedPartition"].isNull()) + reassignTopicListObject.finishedPartition = std::stoi(value["FinishedPartition"].asString()); + if(!value["Process"].isNull()) + reassignTopicListObject.process = value["Process"].asString(); + if(!value["Status"].isNull()) + reassignTopicListObject.status = value["Status"].asString(); + reassignTopicList_.push_back(reassignTopicListObject); + } + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +std::vector ListKafkaReassignTopicResult::getReassignTopicList()const +{ + return reassignTopicList_; +} + +int ListKafkaReassignTopicResult::getPageSize()const +{ + return pageSize_; +} + +int ListKafkaReassignTopicResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListKafkaReassignTopicResult::getTotal()const +{ + return total_; +} + diff --git a/emr/src/model/ListKafkaTopicStatisticsRequest.cc b/emr/src/model/ListKafkaTopicStatisticsRequest.cc new file mode 100644 index 000000000..6f3709083 --- /dev/null +++ b/emr/src/model/ListKafkaTopicStatisticsRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListKafkaTopicStatisticsRequest; + +ListKafkaTopicStatisticsRequest::ListKafkaTopicStatisticsRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListKafkaTopicStatistics") +{} + +ListKafkaTopicStatisticsRequest::~ListKafkaTopicStatisticsRequest() +{} + +long ListKafkaTopicStatisticsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListKafkaTopicStatisticsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool ListKafkaTopicStatisticsRequest::getActiveOnly()const +{ + return activeOnly_; +} + +void ListKafkaTopicStatisticsRequest::setActiveOnly(bool activeOnly) +{ + activeOnly_ = activeOnly; + setCoreParameter("ActiveOnly", activeOnly ? "true" : "false"); +} + +std::string ListKafkaTopicStatisticsRequest::getRegionId()const +{ + return regionId_; +} + +void ListKafkaTopicStatisticsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListKafkaTopicStatisticsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListKafkaTopicStatisticsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListKafkaTopicStatisticsRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void ListKafkaTopicStatisticsRequest::setDataSourceId(const std::string& dataSourceId) +{ + dataSourceId_ = dataSourceId; + setCoreParameter("DataSourceId", dataSourceId); +} + +std::string ListKafkaTopicStatisticsRequest::getTopicName()const +{ + return topicName_; +} + +void ListKafkaTopicStatisticsRequest::setTopicName(const std::string& topicName) +{ + topicName_ = topicName; + setCoreParameter("TopicName", topicName); +} + +std::string ListKafkaTopicStatisticsRequest::getClusterId()const +{ + return clusterId_; +} + +void ListKafkaTopicStatisticsRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +int ListKafkaTopicStatisticsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListKafkaTopicStatisticsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListKafkaTopicStatisticsRequest::getFuzzyTopicName()const +{ + return fuzzyTopicName_; +} + +void ListKafkaTopicStatisticsRequest::setFuzzyTopicName(const std::string& fuzzyTopicName) +{ + fuzzyTopicName_ = fuzzyTopicName; + setCoreParameter("FuzzyTopicName", fuzzyTopicName); +} + +std::string ListKafkaTopicStatisticsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListKafkaTopicStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListKafkaTopicStatisticsResult.cc b/emr/src/model/ListKafkaTopicStatisticsResult.cc new file mode 100644 index 000000000..f60c9fb3b --- /dev/null +++ b/emr/src/model/ListKafkaTopicStatisticsResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListKafkaTopicStatisticsResult::ListKafkaTopicStatisticsResult() : + ServiceResult() +{} + +ListKafkaTopicStatisticsResult::ListKafkaTopicStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListKafkaTopicStatisticsResult::~ListKafkaTopicStatisticsResult() +{} + +void ListKafkaTopicStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTopicList = value["TopicList"]["Topic"]; + for (auto value : allTopicList) + { + Topic topicListObject; + if(!value["DataSourceId"].isNull()) + topicListObject.dataSourceId = value["DataSourceId"].asString(); + if(!value["TopicId"].isNull()) + topicListObject.topicId = value["TopicId"].asString(); + if(!value["TopicName"].isNull()) + topicListObject.topicName = value["TopicName"].asString(); + if(!value["NumPartitions"].isNull()) + topicListObject.numPartitions = std::stoi(value["NumPartitions"].asString()); + if(!value["OffsetSum"].isNull()) + topicListObject.offsetSum = std::stol(value["OffsetSum"].asString()); + if(!value["OffsetRate"].isNull()) + topicListObject.offsetRate = value["OffsetRate"].asString(); + if(!value["UnderReplicatedPercentage"].isNull()) + topicListObject.underReplicatedPercentage = value["UnderReplicatedPercentage"].asString(); + if(!value["MessageRate"].isNull()) + topicListObject.messageRate = value["MessageRate"].asString(); + if(!value["BytesInPerSecondRate"].isNull()) + topicListObject.bytesInPerSecondRate = value["BytesInPerSecondRate"].asString(); + if(!value["BytesOutPerSecondRate"].isNull()) + topicListObject.bytesOutPerSecondRate = value["BytesOutPerSecondRate"].asString(); + auto clusterNode = value["Cluster"]; + if(!clusterNode["ClusterId"].isNull()) + topicListObject.cluster.clusterId = clusterNode["ClusterId"].asString(); + if(!clusterNode["ClusterName"].isNull()) + topicListObject.cluster.clusterName = clusterNode["ClusterName"].asString(); + if(!clusterNode["ClusterStatus"].isNull()) + topicListObject.cluster.clusterStatus = clusterNode["ClusterStatus"].asString(); + topicList_.push_back(topicListObject); + } + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListKafkaTopicStatisticsResult::getPageSize()const +{ + return pageSize_; +} + +int ListKafkaTopicStatisticsResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListKafkaTopicStatisticsResult::getTotal()const +{ + return total_; +} + +std::vector ListKafkaTopicStatisticsResult::getTopicList()const +{ + return topicList_; +} + diff --git a/emr/src/model/ListNavSubTreeRequest.cc b/emr/src/model/ListNavSubTreeRequest.cc index 49a76e3ae..c57beea64 100644 --- a/emr/src/model/ListNavSubTreeRequest.cc +++ b/emr/src/model/ListNavSubTreeRequest.cc @@ -33,7 +33,18 @@ long ListNavSubTreeRequest::getResourceOwnerId()const void ListNavSubTreeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ListNavSubTreeRequest::getDepth()const +{ + return depth_; +} + +void ListNavSubTreeRequest::setDepth(int depth) +{ + depth_ = depth; + setCoreParameter("Depth", std::to_string(depth)); } std::string ListNavSubTreeRequest::getRegionId()const @@ -44,7 +55,7 @@ std::string ListNavSubTreeRequest::getRegionId()const void ListNavSubTreeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListNavSubTreeRequest::getName()const @@ -55,7 +66,18 @@ std::string ListNavSubTreeRequest::getName()const void ListNavSubTreeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); +} + +int ListNavSubTreeRequest::getPageSize()const +{ + return pageSize_; +} + +void ListNavSubTreeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListNavSubTreeRequest::getType()const @@ -66,7 +88,7 @@ std::string ListNavSubTreeRequest::getType()const void ListNavSubTreeRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string ListNavSubTreeRequest::getProjectId()const @@ -77,7 +99,7 @@ std::string ListNavSubTreeRequest::getProjectId()const void ListNavSubTreeRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string ListNavSubTreeRequest::getParentId()const @@ -88,7 +110,18 @@ std::string ListNavSubTreeRequest::getParentId()const void ListNavSubTreeRequest::setParentId(const std::string& parentId) { parentId_ = parentId; - setParameter("ParentId", parentId); + setCoreParameter("ParentId", parentId); +} + +int ListNavSubTreeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListNavSubTreeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListNavSubTreeRequest::getAccessKeyId()const @@ -99,6 +132,6 @@ std::string ListNavSubTreeRequest::getAccessKeyId()const void ListNavSubTreeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListNavSubTreeResult.cc b/emr/src/model/ListNavSubTreeResult.cc index 97b63b625..8a1f12e8f 100644 --- a/emr/src/model/ListNavSubTreeResult.cc +++ b/emr/src/model/ListNavSubTreeResult.cc @@ -35,10 +35,13 @@ ListNavSubTreeResult::~ListNavSubTreeResult() void ListNavSubTreeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); diff --git a/emr/src/model/ListNotesRequest.cc b/emr/src/model/ListNotesRequest.cc index bee5690b1..c59115b81 100644 --- a/emr/src/model/ListNotesRequest.cc +++ b/emr/src/model/ListNotesRequest.cc @@ -33,7 +33,7 @@ long ListNotesRequest::getResourceOwnerId()const void ListNotesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListNotesRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListNotesRequest::getRegionId()const void ListNotesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListNotesRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListNotesRequest::getAccessKeyId()const void ListNotesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListNotesResult.cc b/emr/src/model/ListNotesResult.cc index 09fc58e87..56c7ced95 100644 --- a/emr/src/model/ListNotesResult.cc +++ b/emr/src/model/ListNotesResult.cc @@ -35,10 +35,13 @@ ListNotesResult::~ListNotesResult() void ListNotesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNotes = value["Notes"]["NoteInfo"]; for (auto value : allNotes) diff --git a/emr/src/model/ListOpsOperationRequest.cc b/emr/src/model/ListOpsOperationRequest.cc index 5006e0a64..f560f4d4d 100644 --- a/emr/src/model/ListOpsOperationRequest.cc +++ b/emr/src/model/ListOpsOperationRequest.cc @@ -33,7 +33,7 @@ long ListOpsOperationRequest::getResourceOwnerId()const void ListOpsOperationRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListOpsOperationRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListOpsOperationRequest::getRegionId()const void ListOpsOperationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListOpsOperationRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string ListOpsOperationRequest::getClusterId()const void ListOpsOperationRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } long ListOpsOperationRequest::getPageNumber()const @@ -66,7 +66,7 @@ long ListOpsOperationRequest::getPageNumber()const void ListOpsOperationRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListOpsOperationRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListOpsOperationRequest::getAccessKeyId()const void ListOpsOperationRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListOpsOperationResult.cc b/emr/src/model/ListOpsOperationResult.cc index 4451c4b9e..8c674c811 100644 --- a/emr/src/model/ListOpsOperationResult.cc +++ b/emr/src/model/ListOpsOperationResult.cc @@ -35,10 +35,13 @@ ListOpsOperationResult::~ListOpsOperationResult() void ListOpsOperationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOpsOperationList = value["OpsOperationList"]["OpsOperationListItem"]; for (auto value : allOpsOperationList) diff --git a/emr/src/model/ListOpsOperationTaskRequest.cc b/emr/src/model/ListOpsOperationTaskRequest.cc index 6a76c70a8..eebaedd46 100644 --- a/emr/src/model/ListOpsOperationTaskRequest.cc +++ b/emr/src/model/ListOpsOperationTaskRequest.cc @@ -33,7 +33,7 @@ long ListOpsOperationTaskRequest::getResourceOwnerId()const void ListOpsOperationTaskRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListOpsOperationTaskRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListOpsOperationTaskRequest::getRegionId()const void ListOpsOperationTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long ListOpsOperationTaskRequest::getOperationId()const @@ -55,7 +55,7 @@ long ListOpsOperationTaskRequest::getOperationId()const void ListOpsOperationTaskRequest::setOperationId(long operationId) { operationId_ = operationId; - setParameter("OperationId", std::to_string(operationId)); + setCoreParameter("OperationId", std::to_string(operationId)); } long ListOpsOperationTaskRequest::getPageNumber()const @@ -66,7 +66,7 @@ long ListOpsOperationTaskRequest::getPageNumber()const void ListOpsOperationTaskRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListOpsOperationTaskRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListOpsOperationTaskRequest::getAccessKeyId()const void ListOpsOperationTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListOpsOperationTaskResult.cc b/emr/src/model/ListOpsOperationTaskResult.cc index d5404de2b..2f02cde82 100644 --- a/emr/src/model/ListOpsOperationTaskResult.cc +++ b/emr/src/model/ListOpsOperationTaskResult.cc @@ -35,10 +35,13 @@ ListOpsOperationTaskResult::~ListOpsOperationTaskResult() void ListOpsOperationTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTaskList = value["TaskList"]["TaskListItem"]; for (auto value : allTaskList) diff --git a/emr/src/model/ListRequiredServiceRequest.cc b/emr/src/model/ListRequiredServiceRequest.cc index fc8ecd93c..6208b978d 100644 --- a/emr/src/model/ListRequiredServiceRequest.cc +++ b/emr/src/model/ListRequiredServiceRequest.cc @@ -33,7 +33,7 @@ long ListRequiredServiceRequest::getResourceOwnerId()const void ListRequiredServiceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListRequiredServiceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListRequiredServiceRequest::getRegionId()const void ListRequiredServiceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListRequiredServiceRequest::getEmrVersion()const @@ -55,7 +55,7 @@ std::string ListRequiredServiceRequest::getEmrVersion()const void ListRequiredServiceRequest::setEmrVersion(const std::string& emrVersion) { emrVersion_ = emrVersion; - setParameter("EmrVersion", emrVersion); + setCoreParameter("EmrVersion", emrVersion); } std::string ListRequiredServiceRequest::getServiceNameList()const @@ -66,7 +66,7 @@ std::string ListRequiredServiceRequest::getServiceNameList()const void ListRequiredServiceRequest::setServiceNameList(const std::string& serviceNameList) { serviceNameList_ = serviceNameList; - setParameter("ServiceNameList", serviceNameList); + setCoreParameter("ServiceNameList", serviceNameList); } std::string ListRequiredServiceRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListRequiredServiceRequest::getAccessKeyId()const void ListRequiredServiceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListRequiredServiceResult.cc b/emr/src/model/ListRequiredServiceResult.cc index 83bbe28cf..160e2a486 100644 --- a/emr/src/model/ListRequiredServiceResult.cc +++ b/emr/src/model/ListRequiredServiceResult.cc @@ -35,10 +35,13 @@ ListRequiredServiceResult::~ListRequiredServiceResult() void ListRequiredServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allServiceList = value["ServiceList"]["Service"]; for (auto value : allServiceList) diff --git a/emr/src/model/ListResourcePoolForAdminRequest.cc b/emr/src/model/ListResourcePoolForAdminRequest.cc new file mode 100644 index 000000000..fe573d348 --- /dev/null +++ b/emr/src/model/ListResourcePoolForAdminRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListResourcePoolForAdminRequest; + +ListResourcePoolForAdminRequest::ListResourcePoolForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListResourcePoolForAdmin") +{} + +ListResourcePoolForAdminRequest::~ListResourcePoolForAdminRequest() +{} + +long ListResourcePoolForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListResourcePoolForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListResourcePoolForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void ListResourcePoolForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListResourcePoolForAdminRequest::getPageSize()const +{ + return pageSize_; +} + +void ListResourcePoolForAdminRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListResourcePoolForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void ListResourcePoolForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ListResourcePoolForAdminRequest::getUserId()const +{ + return userId_; +} + +void ListResourcePoolForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +int ListResourcePoolForAdminRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListResourcePoolForAdminRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListResourcePoolForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListResourcePoolForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ListResourcePoolForAdminRequest::getPoolType()const +{ + return poolType_; +} + +void ListResourcePoolForAdminRequest::setPoolType(const std::string& poolType) +{ + poolType_ = poolType; + setCoreParameter("PoolType", poolType); +} + diff --git a/emr/src/model/ListResourcePoolForAdminResult.cc b/emr/src/model/ListResourcePoolForAdminResult.cc new file mode 100644 index 000000000..feba02484 --- /dev/null +++ b/emr/src/model/ListResourcePoolForAdminResult.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListResourcePoolForAdminResult::ListResourcePoolForAdminResult() : + ServiceResult() +{} + +ListResourcePoolForAdminResult::ListResourcePoolForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourcePoolForAdminResult::~ListResourcePoolForAdminResult() +{} + +void ListResourcePoolForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allPoolInfoList = value["PoolInfoList"]["PoolInfo"]; + for (auto value : allPoolInfoList) + { + PoolInfo poolInfoListObject; + auto allQueueList = value["QueueList"]["Queue"]; + for (auto value : allQueueList) + { + PoolInfo::Queue queueListObject; + auto allEcmResourcePoolConfigList1 = value["EcmResourcePoolConfigList"]["EcmResourcePoolConfig"]; + for (auto value : allEcmResourcePoolConfigList1) + { + PoolInfo::Queue::EcmResourcePoolConfig ecmResourcePoolConfigList1Object; + if(!value["Id"].isNull()) + ecmResourcePoolConfigList1Object.id = std::stol(value["Id"].asString()); + if(!value["ConfigKey"].isNull()) + ecmResourcePoolConfigList1Object.configKey = value["ConfigKey"].asString(); + if(!value["ConfigValue"].isNull()) + ecmResourcePoolConfigList1Object.configValue = value["ConfigValue"].asString(); + if(!value["ConfigType"].isNull()) + ecmResourcePoolConfigList1Object.configType = value["ConfigType"].asString(); + if(!value["Category"].isNull()) + ecmResourcePoolConfigList1Object.category = value["Category"].asString(); + if(!value["Status"].isNull()) + ecmResourcePoolConfigList1Object.status = value["Status"].asString(); + if(!value["Note"].isNull()) + ecmResourcePoolConfigList1Object.note = value["Note"].asString(); + queueListObject.ecmResourcePoolConfigList1.push_back(ecmResourcePoolConfigList1Object); + } + auto ecmResourceQueueNode = value["EcmResourceQueue"]; + if(!ecmResourceQueueNode["Id"].isNull()) + queueListObject.ecmResourceQueue.id = std::stol(ecmResourceQueueNode["Id"].asString()); + if(!ecmResourceQueueNode["Name"].isNull()) + queueListObject.ecmResourceQueue.name = ecmResourceQueueNode["Name"].asString(); + if(!ecmResourceQueueNode["QualifiedName"].isNull()) + queueListObject.ecmResourceQueue.qualifiedName = ecmResourceQueueNode["QualifiedName"].asString(); + if(!ecmResourceQueueNode["QueueType"].isNull()) + queueListObject.ecmResourceQueue.queueType = ecmResourceQueueNode["QueueType"].asString(); + if(!ecmResourceQueueNode["ParentQueueId"].isNull()) + queueListObject.ecmResourceQueue.parentQueueId = std::stol(ecmResourceQueueNode["ParentQueueId"].asString()); + if(!ecmResourceQueueNode["Leaf"].isNull()) + queueListObject.ecmResourceQueue.leaf = ecmResourceQueueNode["Leaf"].asString() == "true"; + if(!ecmResourceQueueNode["Status"].isNull()) + queueListObject.ecmResourceQueue.status = ecmResourceQueueNode["Status"].asString(); + if(!ecmResourceQueueNode["UserId"].isNull()) + queueListObject.ecmResourceQueue.userId = ecmResourceQueueNode["UserId"].asString(); + if(!ecmResourceQueueNode["ResourcePoolId"].isNull()) + queueListObject.ecmResourceQueue.resourcePoolId = std::stol(ecmResourceQueueNode["ResourcePoolId"].asString()); + poolInfoListObject.queueList.push_back(queueListObject); + } + auto allEcmResourcePoolConfigList = value["EcmResourcePoolConfigList"]["EcmResourcePoolConfig"]; + for (auto value : allEcmResourcePoolConfigList) + { + PoolInfo::EcmResourcePoolConfig2 ecmResourcePoolConfigListObject; + if(!value["Id"].isNull()) + ecmResourcePoolConfigListObject.id = std::stol(value["Id"].asString()); + if(!value["ConfigKey"].isNull()) + ecmResourcePoolConfigListObject.configKey = value["ConfigKey"].asString(); + if(!value["ConfigValue"].isNull()) + ecmResourcePoolConfigListObject.configValue = value["ConfigValue"].asString(); + if(!value["ConfigType"].isNull()) + ecmResourcePoolConfigListObject.configType = value["ConfigType"].asString(); + if(!value["Category"].isNull()) + ecmResourcePoolConfigListObject.category = value["Category"].asString(); + if(!value["Status"].isNull()) + ecmResourcePoolConfigListObject.status = value["Status"].asString(); + if(!value["Note"].isNull()) + ecmResourcePoolConfigListObject.note = value["Note"].asString(); + poolInfoListObject.ecmResourcePoolConfigList.push_back(ecmResourcePoolConfigListObject); + } + auto ecmResourcePoolNode = value["EcmResourcePool"]; + if(!ecmResourcePoolNode["Id"].isNull()) + poolInfoListObject.ecmResourcePool.id = std::stol(ecmResourcePoolNode["Id"].asString()); + if(!ecmResourcePoolNode["Name"].isNull()) + poolInfoListObject.ecmResourcePool.name = ecmResourcePoolNode["Name"].asString(); + if(!ecmResourcePoolNode["PoolType"].isNull()) + poolInfoListObject.ecmResourcePool.poolType = ecmResourcePoolNode["PoolType"].asString(); + if(!ecmResourcePoolNode["Active"].isNull()) + poolInfoListObject.ecmResourcePool.active = ecmResourcePoolNode["Active"].asString() == "true"; + if(!ecmResourcePoolNode["Note"].isNull()) + poolInfoListObject.ecmResourcePool.note = ecmResourcePoolNode["Note"].asString(); + if(!ecmResourcePoolNode["UserId"].isNull()) + poolInfoListObject.ecmResourcePool.userId = ecmResourcePoolNode["UserId"].asString(); + if(!ecmResourcePoolNode["YarnSiteConfig"].isNull()) + poolInfoListObject.ecmResourcePool.yarnSiteConfig = ecmResourcePoolNode["YarnSiteConfig"].asString(); + poolInfoList_.push_back(poolInfoListObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +int ListResourcePoolForAdminResult::getPageSize()const +{ + return pageSize_; +} + +int ListResourcePoolForAdminResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListResourcePoolForAdminResult::getTotal()const +{ + return total_; +} + +std::vector ListResourcePoolForAdminResult::getPoolInfoList()const +{ + return poolInfoList_; +} + diff --git a/emr/src/model/ListResourcePoolRequest.cc b/emr/src/model/ListResourcePoolRequest.cc index 06606c37a..e68c5c448 100644 --- a/emr/src/model/ListResourcePoolRequest.cc +++ b/emr/src/model/ListResourcePoolRequest.cc @@ -33,7 +33,7 @@ long ListResourcePoolRequest::getResourceOwnerId()const void ListResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListResourcePoolRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListResourcePoolRequest::getRegionId()const void ListResourcePoolRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ListResourcePoolRequest::getPageSize()const @@ -55,7 +55,7 @@ int ListResourcePoolRequest::getPageSize()const void ListResourcePoolRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListResourcePoolRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string ListResourcePoolRequest::getClusterId()const void ListResourcePoolRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListResourcePoolRequest::getPageNumber()const @@ -77,7 +77,7 @@ int ListResourcePoolRequest::getPageNumber()const void ListResourcePoolRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListResourcePoolRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string ListResourcePoolRequest::getAccessKeyId()const void ListResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListResourcePoolRequest::getPoolType()const @@ -99,6 +99,6 @@ std::string ListResourcePoolRequest::getPoolType()const void ListResourcePoolRequest::setPoolType(const std::string& poolType) { poolType_ = poolType; - setParameter("PoolType", poolType); + setCoreParameter("PoolType", poolType); } diff --git a/emr/src/model/ListResourcePoolResult.cc b/emr/src/model/ListResourcePoolResult.cc index 04a731e78..592874ad9 100644 --- a/emr/src/model/ListResourcePoolResult.cc +++ b/emr/src/model/ListResourcePoolResult.cc @@ -35,10 +35,13 @@ ListResourcePoolResult::~ListResourcePoolResult() void ListResourcePoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPoolInfoList = value["PoolInfoList"]["PoolInfo"]; for (auto value : allPoolInfoList) diff --git a/emr/src/model/ListResourceQueueRequest.cc b/emr/src/model/ListResourceQueueRequest.cc index 27488525a..dd55c9739 100644 --- a/emr/src/model/ListResourceQueueRequest.cc +++ b/emr/src/model/ListResourceQueueRequest.cc @@ -33,7 +33,7 @@ long ListResourceQueueRequest::getResourceOwnerId()const void ListResourceQueueRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListResourceQueueRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListResourceQueueRequest::getRegionId()const void ListResourceQueueRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long ListResourceQueueRequest::getPoolId()const @@ -55,7 +55,7 @@ long ListResourceQueueRequest::getPoolId()const void ListResourceQueueRequest::setPoolId(long poolId) { poolId_ = poolId; - setParameter("PoolId", std::to_string(poolId)); + setCoreParameter("PoolId", std::to_string(poolId)); } int ListResourceQueueRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListResourceQueueRequest::getPageSize()const void ListResourceQueueRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListResourceQueueRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListResourceQueueRequest::getClusterId()const void ListResourceQueueRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListResourceQueueRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListResourceQueueRequest::getPageNumber()const void ListResourceQueueRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListResourceQueueRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string ListResourceQueueRequest::getAccessKeyId()const void ListResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListResourceQueueRequest::getPoolType()const @@ -110,6 +110,6 @@ std::string ListResourceQueueRequest::getPoolType()const void ListResourceQueueRequest::setPoolType(const std::string& poolType) { poolType_ = poolType; - setParameter("PoolType", poolType); + setCoreParameter("PoolType", poolType); } diff --git a/emr/src/model/ListResourceQueueResult.cc b/emr/src/model/ListResourceQueueResult.cc index ba2f57e8d..bbd1b7a50 100644 --- a/emr/src/model/ListResourceQueueResult.cc +++ b/emr/src/model/ListResourceQueueResult.cc @@ -35,10 +35,13 @@ ListResourceQueueResult::~ListResourceQueueResult() void ListResourceQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQueueList = value["QueueList"]["Queue"]; for (auto value : allQueueList) diff --git a/emr/src/model/ListRolesRequest.cc b/emr/src/model/ListRolesRequest.cc new file mode 100644 index 000000000..988309afc --- /dev/null +++ b/emr/src/model/ListRolesRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListRolesRequest; + +ListRolesRequest::ListRolesRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListRoles") +{} + +ListRolesRequest::~ListRolesRequest() +{} + +std::string ListRolesRequest::getApp_ip()const +{ + return app_ip_; +} + +void ListRolesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long ListRolesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListRolesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ListRolesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ListRolesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ListRolesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ListRolesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ListRolesRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListRolesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string ListRolesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ListRolesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ListRolesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListRolesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool ListRolesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ListRolesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ListRolesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ListRolesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string ListRolesRequest::getCallerType()const +{ + return callerType_; +} + +void ListRolesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ListRolesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListRolesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool ListRolesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ListRolesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ListRolesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListRolesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ListRolesRequest::getRegionId()const +{ + return regionId_; +} + +void ListRolesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListRolesRequest::getRequestId()const +{ + return requestId_; +} + +void ListRolesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long ListRolesRequest::getCallerUid()const +{ + return callerUid_; +} + +void ListRolesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/ListRolesResult.cc b/emr/src/model/ListRolesResult.cc new file mode 100644 index 000000000..324be3fee --- /dev/null +++ b/emr/src/model/ListRolesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListRolesResult::ListRolesResult() : + ServiceResult() +{} + +ListRolesResult::ListRolesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRolesResult::~ListRolesResult() +{} + +void ListRolesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["roleDTO"]; + for (auto value : allData) + { + RoleDTO dataObject; + if(!value["Id"].isNull()) + dataObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + dataObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + dataObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + dataObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + dataObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + dataObject.description = value["Description"].asString(); + data_.push_back(dataObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + +} + +bool ListRolesResult::getPaging()const +{ + return paging_; +} + +std::vector ListRolesResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/ListScalingActivityRequest.cc b/emr/src/model/ListScalingActivityRequest.cc index ac4c4d184..0bd0c41cf 100644 --- a/emr/src/model/ListScalingActivityRequest.cc +++ b/emr/src/model/ListScalingActivityRequest.cc @@ -33,7 +33,7 @@ long ListScalingActivityRequest::getResourceOwnerId()const void ListScalingActivityRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListScalingActivityRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListScalingActivityRequest::getRegionId()const void ListScalingActivityRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListScalingActivityRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string ListScalingActivityRequest::getHostGroupId()const void ListScalingActivityRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } int ListScalingActivityRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListScalingActivityRequest::getPageSize()const void ListScalingActivityRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListScalingActivityRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListScalingActivityRequest::getClusterId()const void ListScalingActivityRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListScalingActivityRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListScalingActivityRequest::getPageNumber()const void ListScalingActivityRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListScalingActivityRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListScalingActivityRequest::getAccessKeyId()const void ListScalingActivityRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListScalingActivityResult.cc b/emr/src/model/ListScalingActivityResult.cc index 3530fc30e..556d28a7e 100644 --- a/emr/src/model/ListScalingActivityResult.cc +++ b/emr/src/model/ListScalingActivityResult.cc @@ -35,10 +35,13 @@ ListScalingActivityResult::~ListScalingActivityResult() void ListScalingActivityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScalingActivityList = value["ScalingActivityList"]["ScalingActivity"]; for (auto value : allScalingActivityList) diff --git a/emr/src/model/ListScalingRuleRequest.cc b/emr/src/model/ListScalingRuleRequest.cc index c4bd29040..32459a933 100644 --- a/emr/src/model/ListScalingRuleRequest.cc +++ b/emr/src/model/ListScalingRuleRequest.cc @@ -33,7 +33,7 @@ long ListScalingRuleRequest::getResourceOwnerId()const void ListScalingRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListScalingRuleRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListScalingRuleRequest::getRegionId()const void ListScalingRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListScalingRuleRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string ListScalingRuleRequest::getHostGroupId()const void ListScalingRuleRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } int ListScalingRuleRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListScalingRuleRequest::getPageSize()const void ListScalingRuleRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListScalingRuleRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListScalingRuleRequest::getClusterId()const void ListScalingRuleRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ListScalingRuleRequest::getPageNumber()const @@ -88,7 +88,7 @@ int ListScalingRuleRequest::getPageNumber()const void ListScalingRuleRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListScalingRuleRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListScalingRuleRequest::getAccessKeyId()const void ListScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListScalingRuleResult.cc b/emr/src/model/ListScalingRuleResult.cc index 4376fded0..4fb6dee19 100644 --- a/emr/src/model/ListScalingRuleResult.cc +++ b/emr/src/model/ListScalingRuleResult.cc @@ -35,10 +35,13 @@ ListScalingRuleResult::~ListScalingRuleResult() void ListScalingRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRuleList = value["RuleList"]["Rule"]; for (auto value : allRuleList) diff --git a/emr/src/model/ListScalingTaskGroupRequest.cc b/emr/src/model/ListScalingTaskGroupRequest.cc index 16356f401..c2620dd35 100644 --- a/emr/src/model/ListScalingTaskGroupRequest.cc +++ b/emr/src/model/ListScalingTaskGroupRequest.cc @@ -33,7 +33,7 @@ long ListScalingTaskGroupRequest::getResourceOwnerId()const void ListScalingTaskGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListScalingTaskGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListScalingTaskGroupRequest::getRegionId()const void ListScalingTaskGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListScalingTaskGroupRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string ListScalingTaskGroupRequest::getClusterId()const void ListScalingTaskGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListScalingTaskGroupRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ListScalingTaskGroupRequest::getAccessKeyId()const void ListScalingTaskGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListScalingTaskGroupResult.cc b/emr/src/model/ListScalingTaskGroupResult.cc index 4b7c8bf5a..8950ea55a 100644 --- a/emr/src/model/ListScalingTaskGroupResult.cc +++ b/emr/src/model/ListScalingTaskGroupResult.cc @@ -35,10 +35,13 @@ ListScalingTaskGroupResult::~ListScalingTaskGroupResult() void ListScalingTaskGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGroupList = value["GroupList"]["Group"]; for (auto value : allGroupList) diff --git a/emr/src/model/ListServiceLogRequest.cc b/emr/src/model/ListServiceLogRequest.cc index 018a49b02..9d269c755 100644 --- a/emr/src/model/ListServiceLogRequest.cc +++ b/emr/src/model/ListServiceLogRequest.cc @@ -33,7 +33,7 @@ long ListServiceLogRequest::getResourceOwnerId()const void ListServiceLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListServiceLogRequest::getHostName()const @@ -44,7 +44,7 @@ std::string ListServiceLogRequest::getHostName()const void ListServiceLogRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } int ListServiceLogRequest::getMaxKeys()const @@ -55,7 +55,7 @@ int ListServiceLogRequest::getMaxKeys()const void ListServiceLogRequest::setMaxKeys(int maxKeys) { maxKeys_ = maxKeys; - setParameter("MaxKeys", std::to_string(maxKeys)); + setCoreParameter("MaxKeys", std::to_string(maxKeys)); } std::string ListServiceLogRequest::getLogstoreName()const @@ -66,7 +66,7 @@ std::string ListServiceLogRequest::getLogstoreName()const void ListServiceLogRequest::setLogstoreName(const std::string& logstoreName) { logstoreName_ = logstoreName; - setParameter("LogstoreName", logstoreName); + setCoreParameter("LogstoreName", logstoreName); } std::string ListServiceLogRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string ListServiceLogRequest::getRegionId()const void ListServiceLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListServiceLogRequest::getMarker()const @@ -88,7 +88,7 @@ std::string ListServiceLogRequest::getMarker()const void ListServiceLogRequest::setMarker(const std::string& marker) { marker_ = marker; - setParameter("Marker", marker); + setCoreParameter("Marker", marker); } std::string ListServiceLogRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string ListServiceLogRequest::getClusterId()const void ListServiceLogRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListServiceLogRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListServiceLogRequest::getAccessKeyId()const void ListServiceLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListServiceLogResult.cc b/emr/src/model/ListServiceLogResult.cc index b98d0de7f..9a03bc6d5 100644 --- a/emr/src/model/ListServiceLogResult.cc +++ b/emr/src/model/ListServiceLogResult.cc @@ -35,10 +35,13 @@ ListServiceLogResult::~ListServiceLogResult() void ListServiceLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLogFileList = value["LogFileList"]["LogFile"]; for (auto value : allLogFileList) diff --git a/emr/src/model/ListSlsLogstoreInfoRequest.cc b/emr/src/model/ListSlsLogstoreInfoRequest.cc index 313e0c59f..0c233b05a 100644 --- a/emr/src/model/ListSlsLogstoreInfoRequest.cc +++ b/emr/src/model/ListSlsLogstoreInfoRequest.cc @@ -33,7 +33,7 @@ long ListSlsLogstoreInfoRequest::getResourceOwnerId()const void ListSlsLogstoreInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListSlsLogstoreInfoRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListSlsLogstoreInfoRequest::getRegionId()const void ListSlsLogstoreInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListSlsLogstoreInfoRequest::getComponentName()const @@ -55,7 +55,7 @@ std::string ListSlsLogstoreInfoRequest::getComponentName()const void ListSlsLogstoreInfoRequest::setComponentName(const std::string& componentName) { componentName_ = componentName; - setParameter("ComponentName", componentName); + setCoreParameter("ComponentName", componentName); } std::string ListSlsLogstoreInfoRequest::getServiceName()const @@ -66,7 +66,7 @@ std::string ListSlsLogstoreInfoRequest::getServiceName()const void ListSlsLogstoreInfoRequest::setServiceName(const std::string& serviceName) { serviceName_ = serviceName; - setParameter("ServiceName", serviceName); + setCoreParameter("ServiceName", serviceName); } std::string ListSlsLogstoreInfoRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ListSlsLogstoreInfoRequest::getClusterId()const void ListSlsLogstoreInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListSlsLogstoreInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ListSlsLogstoreInfoRequest::getAccessKeyId()const void ListSlsLogstoreInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListSlsLogstoreInfoResult.cc b/emr/src/model/ListSlsLogstoreInfoResult.cc index 56878ad46..cf28140a4 100644 --- a/emr/src/model/ListSlsLogstoreInfoResult.cc +++ b/emr/src/model/ListSlsLogstoreInfoResult.cc @@ -35,10 +35,13 @@ ListSlsLogstoreInfoResult::~ListSlsLogstoreInfoResult() void ListSlsLogstoreInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSlsLogstoreInfoList = value["SlsLogstoreInfoList"]["SlsLogstoreInfo"]; for (auto value : allSlsLogstoreInfoList) diff --git a/emr/src/model/ListStackRequest.cc b/emr/src/model/ListStackRequest.cc new file mode 100644 index 000000000..0a437cb6a --- /dev/null +++ b/emr/src/model/ListStackRequest.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 + +using AlibabaCloud::Emr::Model::ListStackRequest; + +ListStackRequest::ListStackRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListStack") +{} + +ListStackRequest::~ListStackRequest() +{} + +long ListStackRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListStackRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListStackRequest::getRegionId()const +{ + return regionId_; +} + +void ListStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int ListStackRequest::getPageSize()const +{ + return pageSize_; +} + +void ListStackRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListStackRequest::getStackName()const +{ + return stackName_; +} + +void ListStackRequest::setStackName(const std::string& stackName) +{ + stackName_ = stackName; + setCoreParameter("StackName", stackName); +} + +std::string ListStackRequest::getStackVersion()const +{ + return stackVersion_; +} + +void ListStackRequest::setStackVersion(const std::string& stackVersion) +{ + stackVersion_ = stackVersion; + setCoreParameter("StackVersion", stackVersion); +} + +int ListStackRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListStackRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListStackRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListStackRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListStackResult.cc b/emr/src/model/ListStackResult.cc new file mode 100644 index 000000000..174dc35bd --- /dev/null +++ b/emr/src/model/ListStackResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListStackResult::ListStackResult() : + ServiceResult() +{} + +ListStackResult::ListStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStackResult::~ListStackResult() +{} + +void ListStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allStackList = value["StackList"]["Stack"]; + for (auto value : allStackList) + { + Stack stackListObject; + if(!value["Name"].isNull()) + stackListObject.name = value["Name"].asString(); + if(!value["Version"].isNull()) + stackListObject.version = value["Version"].asString(); + if(!value["Status"].isNull()) + stackListObject.status = value["Status"].asString(); + stackList_.push_back(stackListObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListStackResult::getTotalCount()const +{ + return totalCount_; +} + +int ListStackResult::getPageSize()const +{ + return pageSize_; +} + +int ListStackResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListStackResult::getStackList()const +{ + return stackList_; +} + diff --git a/emr/src/model/ListStackServiceRequest.cc b/emr/src/model/ListStackServiceRequest.cc new file mode 100644 index 000000000..ecc0b8d26 --- /dev/null +++ b/emr/src/model/ListStackServiceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::ListStackServiceRequest; + +ListStackServiceRequest::ListStackServiceRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListStackService") +{} + +ListStackServiceRequest::~ListStackServiceRequest() +{} + +long ListStackServiceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListStackServiceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListStackServiceRequest::getRegionId()const +{ + return regionId_; +} + +void ListStackServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListStackServiceRequest::getStackName()const +{ + return stackName_; +} + +void ListStackServiceRequest::setStackName(const std::string& stackName) +{ + stackName_ = stackName; + setCoreParameter("StackName", stackName); +} + +std::string ListStackServiceRequest::getStackVersion()const +{ + return stackVersion_; +} + +void ListStackServiceRequest::setStackVersion(const std::string& stackVersion) +{ + stackVersion_ = stackVersion; + setCoreParameter("StackVersion", stackVersion); +} + +std::string ListStackServiceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListStackServiceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListStackServiceResult.cc b/emr/src/model/ListStackServiceResult.cc new file mode 100644 index 000000000..d663d18c7 --- /dev/null +++ b/emr/src/model/ListStackServiceResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListStackServiceResult::ListStackServiceResult() : + ServiceResult() +{} + +ListStackServiceResult::ListStackServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStackServiceResult::~ListStackServiceResult() +{} + +void ListStackServiceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allServiceList = value["ServiceList"]["Service"]; + for (auto value : allServiceList) + { + Service serviceListObject; + if(!value["ServiceName"].isNull()) + serviceListObject.serviceName = value["ServiceName"].asString(); + if(!value["DisplayName"].isNull()) + serviceListObject.displayName = value["DisplayName"].asString(); + if(!value["Version"].isNull()) + serviceListObject.version = value["Version"].asString(); + if(!value["EcmVersion"].isNull()) + serviceListObject.ecmVersion = value["EcmVersion"].asString(); + if(!value["Comment"].isNull()) + serviceListObject.comment = value["Comment"].asString(); + auto allComponentList = value["ComponentList"]["Component"]; + for (auto value : allComponentList) + { + Service::Component componentListObject; + if(!value["ComponentName"].isNull()) + componentListObject.componentName = value["ComponentName"].asString(); + if(!value["ComponentDisplayName"].isNull()) + componentListObject.componentDisplayName = value["ComponentDisplayName"].asString(); + serviceListObject.componentList.push_back(componentListObject); + } + serviceList_.push_back(serviceListObject); + } + if(!value["StackName"].isNull()) + stackName_ = value["StackName"].asString(); + if(!value["StackVersion"].isNull()) + stackVersion_ = value["StackVersion"].asString(); + +} + +std::vector ListStackServiceResult::getServiceList()const +{ + return serviceList_; +} + +std::string ListStackServiceResult::getStackName()const +{ + return stackName_; +} + +std::string ListStackServiceResult::getStackVersion()const +{ + return stackVersion_; +} + diff --git a/emr/src/model/ListStreamingSqlQueryRequest.cc b/emr/src/model/ListStreamingSqlQueryRequest.cc new file mode 100644 index 000000000..bfecce74f --- /dev/null +++ b/emr/src/model/ListStreamingSqlQueryRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListStreamingSqlQueryRequest; + +ListStreamingSqlQueryRequest::ListStreamingSqlQueryRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListStreamingSqlQuery") +{} + +ListStreamingSqlQueryRequest::~ListStreamingSqlQueryRequest() +{} + +std::string ListStreamingSqlQueryRequest::getApp_ip()const +{ + return app_ip_; +} + +void ListStreamingSqlQueryRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long ListStreamingSqlQueryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListStreamingSqlQueryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ListStreamingSqlQueryRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ListStreamingSqlQueryRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ListStreamingSqlQueryRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ListStreamingSqlQueryRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ListStreamingSqlQueryRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListStreamingSqlQueryRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string ListStreamingSqlQueryRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ListStreamingSqlQueryRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool ListStreamingSqlQueryRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ListStreamingSqlQueryRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ListStreamingSqlQueryRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ListStreamingSqlQueryRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string ListStreamingSqlQueryRequest::getCallerType()const +{ + return callerType_; +} + +void ListStreamingSqlQueryRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ListStreamingSqlQueryRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListStreamingSqlQueryRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool ListStreamingSqlQueryRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ListStreamingSqlQueryRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ListStreamingSqlQueryRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListStreamingSqlQueryRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ListStreamingSqlQueryRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListStreamingSqlQueryRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ListStreamingSqlQueryRequest::getRegionId()const +{ + return regionId_; +} + +void ListStreamingSqlQueryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListStreamingSqlQueryRequest::getRequestId()const +{ + return requestId_; +} + +void ListStreamingSqlQueryRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long ListStreamingSqlQueryRequest::getCallerUid()const +{ + return callerUid_; +} + +void ListStreamingSqlQueryRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/ListStreamingSqlQueryResult.cc b/emr/src/model/ListStreamingSqlQueryResult.cc new file mode 100644 index 000000000..617a2dcb2 --- /dev/null +++ b/emr/src/model/ListStreamingSqlQueryResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListStreamingSqlQueryResult::ListStreamingSqlQueryResult() : + ServiceResult() +{} + +ListStreamingSqlQueryResult::ListStreamingSqlQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStreamingSqlQueryResult::~ListStreamingSqlQueryResult() +{} + +void ListStreamingSqlQueryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["GmtCreate"].isNull()) + itemsObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + itemsObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["QueryName"].isNull()) + itemsObject.queryName = value["QueryName"].asString(); + if(!value["QueryId"].isNull()) + itemsObject.queryId = value["QueryId"].asString(); + if(!value["RunId"].isNull()) + itemsObject.runId = value["RunId"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = value["Status"].asString(); + if(!value["Error"].isNull()) + itemsObject.error = value["Error"].asString(); + if(!value["InstanceId"].isNull()) + itemsObject.instanceId = value["InstanceId"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListStreamingSqlQueryResult::getTotalCount()const +{ + return totalCount_; +} + +int ListStreamingSqlQueryResult::getPageSize()const +{ + return pageSize_; +} + +int ListStreamingSqlQueryResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListStreamingSqlQueryResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/ListSupportedServiceNameForAdminRequest.cc b/emr/src/model/ListSupportedServiceNameForAdminRequest.cc new file mode 100644 index 000000000..11ad2a013 --- /dev/null +++ b/emr/src/model/ListSupportedServiceNameForAdminRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::ListSupportedServiceNameForAdminRequest; + +ListSupportedServiceNameForAdminRequest::ListSupportedServiceNameForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListSupportedServiceNameForAdmin") +{} + +ListSupportedServiceNameForAdminRequest::~ListSupportedServiceNameForAdminRequest() +{} + +long ListSupportedServiceNameForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListSupportedServiceNameForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListSupportedServiceNameForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void ListSupportedServiceNameForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListSupportedServiceNameForAdminRequest::getUserId()const +{ + return userId_; +} + +void ListSupportedServiceNameForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string ListSupportedServiceNameForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSupportedServiceNameForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ListSupportedServiceNameForAdminResult.cc b/emr/src/model/ListSupportedServiceNameForAdminResult.cc new file mode 100644 index 000000000..11d1500c0 --- /dev/null +++ b/emr/src/model/ListSupportedServiceNameForAdminResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListSupportedServiceNameForAdminResult::ListSupportedServiceNameForAdminResult() : + ServiceResult() +{} + +ListSupportedServiceNameForAdminResult::ListSupportedServiceNameForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSupportedServiceNameForAdminResult::~ListSupportedServiceNameForAdminResult() +{} + +void ListSupportedServiceNameForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSupportedServiceNameList = value["SupportedServiceNameList"]["SupportedServiceName"]; + for (const auto &item : allSupportedServiceNameList) + supportedServiceNameList_.push_back(item.asString()); + +} + +std::vector ListSupportedServiceNameForAdminResult::getSupportedServiceNameList()const +{ + return supportedServiceNameList_; +} + diff --git a/emr/src/model/ListSupportedServiceNameRequest.cc b/emr/src/model/ListSupportedServiceNameRequest.cc index 03a7be907..b5eab81eb 100644 --- a/emr/src/model/ListSupportedServiceNameRequest.cc +++ b/emr/src/model/ListSupportedServiceNameRequest.cc @@ -33,7 +33,7 @@ long ListSupportedServiceNameRequest::getResourceOwnerId()const void ListSupportedServiceNameRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListSupportedServiceNameRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListSupportedServiceNameRequest::getRegionId()const void ListSupportedServiceNameRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListSupportedServiceNameRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListSupportedServiceNameRequest::getAccessKeyId()const void ListSupportedServiceNameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListSupportedServiceNameResult.cc b/emr/src/model/ListSupportedServiceNameResult.cc index 7262ad9bc..f1f746283 100644 --- a/emr/src/model/ListSupportedServiceNameResult.cc +++ b/emr/src/model/ListSupportedServiceNameResult.cc @@ -35,10 +35,13 @@ ListSupportedServiceNameResult::~ListSupportedServiceNameResult() void ListSupportedServiceNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSupportedServiceNameList = value["SupportedServiceNameList"]["SupportedServiceName"]; for (const auto &item : allSupportedServiceNameList) diff --git a/emr/src/model/ListUserGroupsRequest.cc b/emr/src/model/ListUserGroupsRequest.cc new file mode 100644 index 000000000..70f045dad --- /dev/null +++ b/emr/src/model/ListUserGroupsRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListUserGroupsRequest; + +ListUserGroupsRequest::ListUserGroupsRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListUserGroups") +{} + +ListUserGroupsRequest::~ListUserGroupsRequest() +{} + +std::string ListUserGroupsRequest::getApp_ip()const +{ + return app_ip_; +} + +void ListUserGroupsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long ListUserGroupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListUserGroupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ListUserGroupsRequest::getFuzzyName()const +{ + return fuzzyName_; +} + +void ListUserGroupsRequest::setFuzzyName(const std::string& fuzzyName) +{ + fuzzyName_ = fuzzyName; + setCoreParameter("FuzzyName", fuzzyName); +} + +long ListUserGroupsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ListUserGroupsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ListUserGroupsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ListUserGroupsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ListUserGroupsRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListUserGroupsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string ListUserGroupsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ListUserGroupsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool ListUserGroupsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ListUserGroupsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ListUserGroupsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ListUserGroupsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string ListUserGroupsRequest::getCallerType()const +{ + return callerType_; +} + +void ListUserGroupsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ListUserGroupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListUserGroupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool ListUserGroupsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ListUserGroupsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ListUserGroupsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListUserGroupsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ListUserGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void ListUserGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListUserGroupsRequest::getRequestId()const +{ + return requestId_; +} + +void ListUserGroupsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long ListUserGroupsRequest::getCallerUid()const +{ + return callerUid_; +} + +void ListUserGroupsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/ListUserGroupsResult.cc b/emr/src/model/ListUserGroupsResult.cc new file mode 100644 index 000000000..4677fbf9d --- /dev/null +++ b/emr/src/model/ListUserGroupsResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListUserGroupsResult::ListUserGroupsResult() : + ServiceResult() +{} + +ListUserGroupsResult::ListUserGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserGroupsResult::~ListUserGroupsResult() +{} + +void ListUserGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["groupDTO"]; + for (auto value : allData) + { + GroupDTO dataObject; + if(!value["Id"].isNull()) + dataObject.id = std::stol(value["Id"].asString()); + if(!value["Type"].isNull()) + dataObject.type = value["Type"].asString(); + if(!value["Name"].isNull()) + dataObject.name = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + dataObject.gmtCreate = value["GmtCreate"].asString(); + auto allRoleDTOList = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList) + { + GroupDTO::RoleDTO roleDTOListObject; + if(!value["Id"].isNull()) + roleDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOListObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOListObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOListObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOListObject.description = value["Description"].asString(); + dataObject.roleDTOList.push_back(roleDTOListObject); + } + data_.push_back(dataObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + +} + +bool ListUserGroupsResult::getPaging()const +{ + return paging_; +} + +std::vector ListUserGroupsResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/ListUserStatisticsRequest.cc b/emr/src/model/ListUserStatisticsRequest.cc index 73f2e732b..50bb43a9a 100644 --- a/emr/src/model/ListUserStatisticsRequest.cc +++ b/emr/src/model/ListUserStatisticsRequest.cc @@ -33,7 +33,7 @@ long ListUserStatisticsRequest::getResourceOwnerId()const void ListUserStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListUserStatisticsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListUserStatisticsRequest::getRegionId()const void ListUserStatisticsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListUserStatisticsRequest::getOrderMode()const @@ -55,7 +55,7 @@ std::string ListUserStatisticsRequest::getOrderMode()const void ListUserStatisticsRequest::setOrderMode(const std::string& orderMode) { orderMode_ = orderMode; - setParameter("OrderMode", orderMode); + setCoreParameter("OrderMode", orderMode); } int ListUserStatisticsRequest::getPageSize()const @@ -66,7 +66,7 @@ int ListUserStatisticsRequest::getPageSize()const void ListUserStatisticsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListUserStatisticsRequest::getOrderFieldName()const @@ -77,7 +77,7 @@ std::string ListUserStatisticsRequest::getOrderFieldName()const void ListUserStatisticsRequest::setOrderFieldName(const std::string& orderFieldName) { orderFieldName_ = orderFieldName; - setParameter("OrderFieldName", orderFieldName); + setCoreParameter("OrderFieldName", orderFieldName); } int ListUserStatisticsRequest::getCurrentSize()const @@ -88,7 +88,7 @@ int ListUserStatisticsRequest::getCurrentSize()const void ListUserStatisticsRequest::setCurrentSize(int currentSize) { currentSize_ = currentSize; - setParameter("CurrentSize", std::to_string(currentSize)); + setCoreParameter("CurrentSize", std::to_string(currentSize)); } std::string ListUserStatisticsRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListUserStatisticsRequest::getAccessKeyId()const void ListUserStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListUserStatisticsResult.cc b/emr/src/model/ListUserStatisticsResult.cc index fdbf18c50..1c78417e9 100644 --- a/emr/src/model/ListUserStatisticsResult.cc +++ b/emr/src/model/ListUserStatisticsResult.cc @@ -35,10 +35,13 @@ ListUserStatisticsResult::~ListUserStatisticsResult() void ListUserStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserStatisticsList = value["UserStatisticsList"]["UserStatistics"]; for (auto value : allUserStatisticsList) diff --git a/emr/src/model/ListUsersByConditionRequest.cc b/emr/src/model/ListUsersByConditionRequest.cc new file mode 100644 index 000000000..16894f14d --- /dev/null +++ b/emr/src/model/ListUsersByConditionRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ListUsersByConditionRequest; + +ListUsersByConditionRequest::ListUsersByConditionRequest() : + RpcServiceRequest("emr", "2016-04-08", "ListUsersByCondition") +{} + +ListUsersByConditionRequest::~ListUsersByConditionRequest() +{} + +std::string ListUsersByConditionRequest::getApp_ip()const +{ + return app_ip_; +} + +void ListUsersByConditionRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long ListUsersByConditionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListUsersByConditionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ListUsersByConditionRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ListUsersByConditionRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ListUsersByConditionRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ListUsersByConditionRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ListUsersByConditionRequest::getSearchKey()const +{ + return searchKey_; +} + +void ListUsersByConditionRequest::setSearchKey(const std::string& searchKey) +{ + searchKey_ = searchKey; + setCoreParameter("SearchKey", searchKey); +} + +std::string ListUsersByConditionRequest::getCallerBid()const +{ + return callerBid_; +} + +void ListUsersByConditionRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string ListUsersByConditionRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ListUsersByConditionRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool ListUsersByConditionRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ListUsersByConditionRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ListUsersByConditionRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ListUsersByConditionRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string ListUsersByConditionRequest::getCallerType()const +{ + return callerType_; +} + +void ListUsersByConditionRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ListUsersByConditionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListUsersByConditionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool ListUsersByConditionRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ListUsersByConditionRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ListUsersByConditionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListUsersByConditionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ListUsersByConditionRequest::getRegionId()const +{ + return regionId_; +} + +void ListUsersByConditionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListUsersByConditionRequest::getRequestId()const +{ + return requestId_; +} + +void ListUsersByConditionRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long ListUsersByConditionRequest::getCallerUid()const +{ + return callerUid_; +} + +void ListUsersByConditionRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/ListUsersByConditionResult.cc b/emr/src/model/ListUsersByConditionResult.cc new file mode 100644 index 000000000..658f2bda5 --- /dev/null +++ b/emr/src/model/ListUsersByConditionResult.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::Emr; +using namespace AlibabaCloud::Emr::Model; + +ListUsersByConditionResult::ListUsersByConditionResult() : + ServiceResult() +{} + +ListUsersByConditionResult::ListUsersByConditionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersByConditionResult::~ListUsersByConditionResult() +{} + +void ListUsersByConditionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["userDTO"]; + for (auto value : allData) + { + UserDTO dataObject; + if(!value["AliyunUserId"].isNull()) + dataObject.aliyunUserId = value["AliyunUserId"].asString(); + if(!value["UserName"].isNull()) + dataObject.userName = value["UserName"].asString(); + if(!value["UserType"].isNull()) + dataObject.userType = value["UserType"].asString(); + if(!value["Status"].isNull()) + dataObject.status = value["Status"].asString(); + if(!value["IsSuperAdmin"].isNull()) + dataObject.isSuperAdmin = value["IsSuperAdmin"].asString(); + if(!value["Description"].isNull()) + dataObject.description = value["Description"].asString(); + if(!value["GmtCreate"].isNull()) + dataObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + dataObject.gmtModified = value["GmtModified"].asString(); + auto allRoleDTOList = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList) + { + UserDTO::RoleDTO roleDTOListObject; + if(!value["Id"].isNull()) + roleDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOListObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOListObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOListObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOListObject.description = value["Description"].asString(); + dataObject.roleDTOList.push_back(roleDTOListObject); + } + auto allGroupDTOList = value["GroupDTOList"]["GroupDTO"]; + for (auto value : allGroupDTOList) + { + UserDTO::GroupDTO groupDTOListObject; + if(!value["Id"].isNull()) + groupDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Type"].isNull()) + groupDTOListObject.type = value["Type"].asString(); + if(!value["Name"].isNull()) + groupDTOListObject.name = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + groupDTOListObject.gmtCreate = value["GmtCreate"].asString(); + auto allRoleDTOList1 = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList1) + { + UserDTO::GroupDTO::RoleDTO2 roleDTOList1Object; + if(!value["Id"].isNull()) + roleDTOList1Object.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOList1Object.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOList1Object.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOList1Object.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOList1Object.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOList1Object.description = value["Description"].asString(); + groupDTOListObject.roleDTOList1.push_back(roleDTOList1Object); + } + dataObject.groupDTOList.push_back(groupDTOListObject); + } + auto allAccountDTOList = value["AccountDTOList"]["AccountDTO"]; + for (auto value : allAccountDTOList) + { + UserDTO::AccountDTO accountDTOListObject; + if(!value["AliyunUserId"].isNull()) + accountDTOListObject.aliyunUserId = value["AliyunUserId"].asString(); + if(!value["AccountType"].isNull()) + accountDTOListObject.accountType = value["AccountType"].asString(); + if(!value["AuthType"].isNull()) + accountDTOListObject.authType = value["AuthType"].asString(); + dataObject.accountDTOList.push_back(accountDTOListObject); + } + data_.push_back(dataObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + +} + +bool ListUsersByConditionResult::getPaging()const +{ + return paging_; +} + +std::vector ListUsersByConditionResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/ListUsersRequest.cc b/emr/src/model/ListUsersRequest.cc index a283e4abf..181541b59 100644 --- a/emr/src/model/ListUsersRequest.cc +++ b/emr/src/model/ListUsersRequest.cc @@ -33,7 +33,7 @@ long ListUsersRequest::getResourceOwnerId()const void ListUsersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListUsersRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ListUsersRequest::getRegionId()const void ListUsersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListUsersRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string ListUsersRequest::getClusterId()const void ListUsersRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ListUsersRequest::getType()const @@ -66,7 +66,7 @@ std::string ListUsersRequest::getType()const void ListUsersRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string ListUsersRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListUsersRequest::getAccessKeyId()const void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ListUsersResult.cc b/emr/src/model/ListUsersResult.cc index 13ce26aed..5603ad623 100644 --- a/emr/src/model/ListUsersResult.cc +++ b/emr/src/model/ListUsersResult.cc @@ -35,10 +35,13 @@ ListUsersResult::~ListUsersResult() void ListUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserList = value["UserList"]["User"]; for (auto value : allUserList) diff --git a/emr/src/model/MetastoreCreateDataResourceRequest.cc b/emr/src/model/MetastoreCreateDataResourceRequest.cc index 10b0c412b..8df4ec656 100644 --- a/emr/src/model/MetastoreCreateDataResourceRequest.cc +++ b/emr/src/model/MetastoreCreateDataResourceRequest.cc @@ -33,7 +33,7 @@ long MetastoreCreateDataResourceRequest::getResourceOwnerId()const void MetastoreCreateDataResourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool MetastoreCreateDataResourceRequest::getDefault()const @@ -44,7 +44,7 @@ bool MetastoreCreateDataResourceRequest::getDefault()const void MetastoreCreateDataResourceRequest::setDefault(bool default) { default_ = default; - setParameter("Default", std::to_string(default)); + setCoreParameter("Default", default ? "true" : "false"); } std::string MetastoreCreateDataResourceRequest::getAccessType()const @@ -55,7 +55,7 @@ std::string MetastoreCreateDataResourceRequest::getAccessType()const void MetastoreCreateDataResourceRequest::setAccessType(const std::string& accessType) { accessType_ = accessType; - setParameter("AccessType", accessType); + setCoreParameter("AccessType", accessType); } std::string MetastoreCreateDataResourceRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string MetastoreCreateDataResourceRequest::getRegionId()const void MetastoreCreateDataResourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreCreateDataResourceRequest::getName()const @@ -77,7 +77,7 @@ std::string MetastoreCreateDataResourceRequest::getName()const void MetastoreCreateDataResourceRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string MetastoreCreateDataResourceRequest::getDescription()const @@ -88,7 +88,7 @@ std::string MetastoreCreateDataResourceRequest::getDescription()const void MetastoreCreateDataResourceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string MetastoreCreateDataResourceRequest::getMetaType()const @@ -99,7 +99,7 @@ std::string MetastoreCreateDataResourceRequest::getMetaType()const void MetastoreCreateDataResourceRequest::setMetaType(const std::string& metaType) { metaType_ = metaType; - setParameter("MetaType", metaType); + setCoreParameter("MetaType", metaType); } std::string MetastoreCreateDataResourceRequest::getClusterId()const @@ -110,7 +110,7 @@ std::string MetastoreCreateDataResourceRequest::getClusterId()const void MetastoreCreateDataResourceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string MetastoreCreateDataResourceRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string MetastoreCreateDataResourceRequest::getAccessKeyId()const void MetastoreCreateDataResourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreCreateDataResourceResult.cc b/emr/src/model/MetastoreCreateDataResourceResult.cc index 0c0e0137f..62197d5cb 100644 --- a/emr/src/model/MetastoreCreateDataResourceResult.cc +++ b/emr/src/model/MetastoreCreateDataResourceResult.cc @@ -35,10 +35,13 @@ MetastoreCreateDataResourceResult::~MetastoreCreateDataResourceResult() void MetastoreCreateDataResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/MetastoreCreateDatabaseRequest.cc b/emr/src/model/MetastoreCreateDatabaseRequest.cc index 7c766665a..c49d2af88 100644 --- a/emr/src/model/MetastoreCreateDatabaseRequest.cc +++ b/emr/src/model/MetastoreCreateDatabaseRequest.cc @@ -33,7 +33,7 @@ std::string MetastoreCreateDatabaseRequest::getDbSource()const void MetastoreCreateDatabaseRequest::setDbSource(const std::string& dbSource) { dbSource_ = dbSource; - setParameter("DbSource", dbSource); + setCoreParameter("DbSource", dbSource); } long MetastoreCreateDatabaseRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long MetastoreCreateDatabaseRequest::getResourceOwnerId()const void MetastoreCreateDatabaseRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreCreateDatabaseRequest::getDbName()const @@ -55,7 +55,7 @@ std::string MetastoreCreateDatabaseRequest::getDbName()const void MetastoreCreateDatabaseRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreCreateDatabaseRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string MetastoreCreateDatabaseRequest::getRegionId()const void MetastoreCreateDatabaseRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreCreateDatabaseRequest::getDataSourceId()const @@ -77,7 +77,7 @@ std::string MetastoreCreateDatabaseRequest::getDataSourceId()const void MetastoreCreateDatabaseRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string MetastoreCreateDatabaseRequest::getDescription()const @@ -88,7 +88,7 @@ std::string MetastoreCreateDatabaseRequest::getDescription()const void MetastoreCreateDatabaseRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string MetastoreCreateDatabaseRequest::getComment()const @@ -99,7 +99,7 @@ std::string MetastoreCreateDatabaseRequest::getComment()const void MetastoreCreateDatabaseRequest::setComment(const std::string& comment) { comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("Comment", comment); } std::string MetastoreCreateDatabaseRequest::getLocationUri()const @@ -110,7 +110,7 @@ std::string MetastoreCreateDatabaseRequest::getLocationUri()const void MetastoreCreateDatabaseRequest::setLocationUri(const std::string& locationUri) { locationUri_ = locationUri; - setParameter("LocationUri", locationUri); + setCoreParameter("LocationUri", locationUri); } std::string MetastoreCreateDatabaseRequest::getClusterBizId()const @@ -121,7 +121,7 @@ std::string MetastoreCreateDatabaseRequest::getClusterBizId()const void MetastoreCreateDatabaseRequest::setClusterBizId(const std::string& clusterBizId) { clusterBizId_ = clusterBizId; - setParameter("ClusterBizId", clusterBizId); + setCoreParameter("ClusterBizId", clusterBizId); } std::string MetastoreCreateDatabaseRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string MetastoreCreateDatabaseRequest::getAccessKeyId()const void MetastoreCreateDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreCreateDatabaseResult.cc b/emr/src/model/MetastoreCreateDatabaseResult.cc index af36b74de..2ad1aecce 100644 --- a/emr/src/model/MetastoreCreateDatabaseResult.cc +++ b/emr/src/model/MetastoreCreateDatabaseResult.cc @@ -35,10 +35,13 @@ MetastoreCreateDatabaseResult::~MetastoreCreateDatabaseResult() void MetastoreCreateDatabaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/MetastoreCreateKafkaTopicRequest.cc b/emr/src/model/MetastoreCreateKafkaTopicRequest.cc index 2ec733834..0c52cef3c 100644 --- a/emr/src/model/MetastoreCreateKafkaTopicRequest.cc +++ b/emr/src/model/MetastoreCreateKafkaTopicRequest.cc @@ -33,7 +33,7 @@ long MetastoreCreateKafkaTopicRequest::getResourceOwnerId()const void MetastoreCreateKafkaTopicRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreCreateKafkaTopicRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreCreateKafkaTopicRequest::getRegionId()const void MetastoreCreateKafkaTopicRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreCreateKafkaTopicRequest::getDataSourceId()const @@ -55,7 +55,7 @@ std::string MetastoreCreateKafkaTopicRequest::getDataSourceId()const void MetastoreCreateKafkaTopicRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string MetastoreCreateKafkaTopicRequest::getTopicName()const @@ -66,7 +66,7 @@ std::string MetastoreCreateKafkaTopicRequest::getTopicName()const void MetastoreCreateKafkaTopicRequest::setTopicName(const std::string& topicName) { topicName_ = topicName; - setParameter("TopicName", topicName); + setCoreParameter("TopicName", topicName); } std::vector MetastoreCreateKafkaTopicRequest::getAdvancedConfig()const @@ -81,8 +81,8 @@ void MetastoreCreateKafkaTopicRequest::setAdvancedConfig(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); diff --git a/emr/src/model/MetastoreCreateTableRequest.cc b/emr/src/model/MetastoreCreateTableRequest.cc index 82b059c9e..da78b401c 100644 --- a/emr/src/model/MetastoreCreateTableRequest.cc +++ b/emr/src/model/MetastoreCreateTableRequest.cc @@ -33,7 +33,7 @@ long MetastoreCreateTableRequest::getResourceOwnerId()const void MetastoreCreateTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreCreateTableRequest::getFieldDelimiter()const @@ -44,7 +44,7 @@ std::string MetastoreCreateTableRequest::getFieldDelimiter()const void MetastoreCreateTableRequest::setFieldDelimiter(const std::string& fieldDelimiter) { fieldDelimiter_ = fieldDelimiter; - setParameter("FieldDelimiter", fieldDelimiter); + setCoreParameter("FieldDelimiter", fieldDelimiter); } std::vector MetastoreCreateTableRequest::getColumn()const @@ -59,9 +59,9 @@ void MetastoreCreateTableRequest::setColumn(const std::vector& column) for(int i = 0; i!= column.size(); i++) { auto obj = column.at(i); std::string str ="Column."+ std::to_string(i); - setParameter(str + ".Name", obj.name); - setParameter(str + ".Comment", obj.comment); - setParameter(str + ".Type", obj.type); + setCoreParameter(str + ".Name", obj.name); + setCoreParameter(str + ".Comment", obj.comment); + setCoreParameter(str + ".Type", obj.type); } } @@ -73,7 +73,7 @@ std::string MetastoreCreateTableRequest::getCreateWith()const void MetastoreCreateTableRequest::setCreateWith(const std::string& createWith) { createWith_ = createWith; - setParameter("CreateWith", createWith); + setCoreParameter("CreateWith", createWith); } std::string MetastoreCreateTableRequest::getAccessKeyId()const @@ -84,7 +84,7 @@ std::string MetastoreCreateTableRequest::getAccessKeyId()const void MetastoreCreateTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::vector MetastoreCreateTableRequest::getPartition()const @@ -99,9 +99,9 @@ void MetastoreCreateTableRequest::setPartition(const std::vector& par for(int i = 0; i!= partition.size(); i++) { auto obj = partition.at(i); std::string str ="Partition."+ std::to_string(i); - setParameter(str + ".Name", obj.name); - setParameter(str + ".Comment", obj.comment); - setParameter(str + ".Type", obj.type); + setCoreParameter(str + ".Name", obj.name); + setCoreParameter(str + ".Comment", obj.comment); + setCoreParameter(str + ".Type", obj.type); } } @@ -113,7 +113,7 @@ std::string MetastoreCreateTableRequest::getDbName()const void MetastoreCreateTableRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreCreateTableRequest::getRegionId()const @@ -124,7 +124,7 @@ std::string MetastoreCreateTableRequest::getRegionId()const void MetastoreCreateTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreCreateTableRequest::getCreateSql()const @@ -135,7 +135,7 @@ std::string MetastoreCreateTableRequest::getCreateSql()const void MetastoreCreateTableRequest::setCreateSql(const std::string& createSql) { createSql_ = createSql; - setParameter("CreateSql", createSql); + setCoreParameter("CreateSql", createSql); } std::string MetastoreCreateTableRequest::getComment()const @@ -146,7 +146,7 @@ std::string MetastoreCreateTableRequest::getComment()const void MetastoreCreateTableRequest::setComment(const std::string& comment) { comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("Comment", comment); } std::string MetastoreCreateTableRequest::getLocationUri()const @@ -157,7 +157,7 @@ std::string MetastoreCreateTableRequest::getLocationUri()const void MetastoreCreateTableRequest::setLocationUri(const std::string& locationUri) { locationUri_ = locationUri; - setParameter("LocationUri", locationUri); + setCoreParameter("LocationUri", locationUri); } std::string MetastoreCreateTableRequest::getTableName()const @@ -168,7 +168,7 @@ std::string MetastoreCreateTableRequest::getTableName()const void MetastoreCreateTableRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string MetastoreCreateTableRequest::getDatabaseId()const @@ -179,6 +179,6 @@ std::string MetastoreCreateTableRequest::getDatabaseId()const void MetastoreCreateTableRequest::setDatabaseId(const std::string& databaseId) { databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); + setCoreParameter("DatabaseId", databaseId); } diff --git a/emr/src/model/MetastoreCreateTableResult.cc b/emr/src/model/MetastoreCreateTableResult.cc index 89472bb86..901ad9048 100644 --- a/emr/src/model/MetastoreCreateTableResult.cc +++ b/emr/src/model/MetastoreCreateTableResult.cc @@ -35,10 +35,13 @@ MetastoreCreateTableResult::~MetastoreCreateTableResult() void MetastoreCreateTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/MetastoreDataPreviewRequest.cc b/emr/src/model/MetastoreDataPreviewRequest.cc index 338169d56..2c5705445 100644 --- a/emr/src/model/MetastoreDataPreviewRequest.cc +++ b/emr/src/model/MetastoreDataPreviewRequest.cc @@ -33,7 +33,7 @@ long MetastoreDataPreviewRequest::getResourceOwnerId()const void MetastoreDataPreviewRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDataPreviewRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreDataPreviewRequest::getDbName()const void MetastoreDataPreviewRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreDataPreviewRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDataPreviewRequest::getRegionId()const void MetastoreDataPreviewRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDataPreviewRequest::getTableName()const @@ -66,7 +66,7 @@ std::string MetastoreDataPreviewRequest::getTableName()const void MetastoreDataPreviewRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string MetastoreDataPreviewRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string MetastoreDataPreviewRequest::getAccessKeyId()const void MetastoreDataPreviewRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDataPreviewResult.cc b/emr/src/model/MetastoreDataPreviewResult.cc index 757a8a16e..195806f3e 100644 --- a/emr/src/model/MetastoreDataPreviewResult.cc +++ b/emr/src/model/MetastoreDataPreviewResult.cc @@ -35,10 +35,13 @@ MetastoreDataPreviewResult::~MetastoreDataPreviewResult() void MetastoreDataPreviewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Samples"].isNull()) samples_ = value["Samples"].asString(); diff --git a/emr/src/model/MetastoreDeleteDataResourceRequest.cc b/emr/src/model/MetastoreDeleteDataResourceRequest.cc index 43a16259a..81caeb48b 100644 --- a/emr/src/model/MetastoreDeleteDataResourceRequest.cc +++ b/emr/src/model/MetastoreDeleteDataResourceRequest.cc @@ -33,7 +33,7 @@ long MetastoreDeleteDataResourceRequest::getResourceOwnerId()const void MetastoreDeleteDataResourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDeleteDataResourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreDeleteDataResourceRequest::getRegionId()const void MetastoreDeleteDataResourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDeleteDataResourceRequest::getId()const @@ -55,7 +55,7 @@ std::string MetastoreDeleteDataResourceRequest::getId()const void MetastoreDeleteDataResourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string MetastoreDeleteDataResourceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string MetastoreDeleteDataResourceRequest::getAccessKeyId()const void MetastoreDeleteDataResourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDeleteDataResourceResult.cc b/emr/src/model/MetastoreDeleteDataResourceResult.cc index 1eebc8580..ce2e389c4 100644 --- a/emr/src/model/MetastoreDeleteDataResourceResult.cc +++ b/emr/src/model/MetastoreDeleteDataResourceResult.cc @@ -35,10 +35,13 @@ MetastoreDeleteDataResourceResult::~MetastoreDeleteDataResourceResult() void MetastoreDeleteDataResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/MetastoreDeleteKafkaTopicRequest.cc b/emr/src/model/MetastoreDeleteKafkaTopicRequest.cc index ba6942084..afc6d60e6 100644 --- a/emr/src/model/MetastoreDeleteKafkaTopicRequest.cc +++ b/emr/src/model/MetastoreDeleteKafkaTopicRequest.cc @@ -33,7 +33,7 @@ long MetastoreDeleteKafkaTopicRequest::getResourceOwnerId()const void MetastoreDeleteKafkaTopicRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDeleteKafkaTopicRequest::getTopicId()const @@ -44,7 +44,7 @@ std::string MetastoreDeleteKafkaTopicRequest::getTopicId()const void MetastoreDeleteKafkaTopicRequest::setTopicId(const std::string& topicId) { topicId_ = topicId; - setParameter("TopicId", topicId); + setCoreParameter("TopicId", topicId); } std::string MetastoreDeleteKafkaTopicRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDeleteKafkaTopicRequest::getRegionId()const void MetastoreDeleteKafkaTopicRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDeleteKafkaTopicRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string MetastoreDeleteKafkaTopicRequest::getAccessKeyId()const void MetastoreDeleteKafkaTopicRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDeleteKafkaTopicResult.cc b/emr/src/model/MetastoreDeleteKafkaTopicResult.cc index 2784bddbd..6138a77b2 100644 --- a/emr/src/model/MetastoreDeleteKafkaTopicResult.cc +++ b/emr/src/model/MetastoreDeleteKafkaTopicResult.cc @@ -35,10 +35,13 @@ MetastoreDeleteKafkaTopicResult::~MetastoreDeleteKafkaTopicResult() void MetastoreDeleteKafkaTopicResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); diff --git a/emr/src/model/MetastoreDescribeDataSourceRequest.cc b/emr/src/model/MetastoreDescribeDataSourceRequest.cc index 325290e7c..4394ca273 100644 --- a/emr/src/model/MetastoreDescribeDataSourceRequest.cc +++ b/emr/src/model/MetastoreDescribeDataSourceRequest.cc @@ -33,7 +33,7 @@ long MetastoreDescribeDataSourceRequest::getResourceOwnerId()const void MetastoreDescribeDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDescribeDataSourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreDescribeDataSourceRequest::getRegionId()const void MetastoreDescribeDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDescribeDataSourceRequest::getDataSourceId()const @@ -55,7 +55,7 @@ std::string MetastoreDescribeDataSourceRequest::getDataSourceId()const void MetastoreDescribeDataSourceRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string MetastoreDescribeDataSourceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string MetastoreDescribeDataSourceRequest::getAccessKeyId()const void MetastoreDescribeDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDescribeDataSourceResult.cc b/emr/src/model/MetastoreDescribeDataSourceResult.cc index 6c21ad64b..1de92bf2e 100644 --- a/emr/src/model/MetastoreDescribeDataSourceResult.cc +++ b/emr/src/model/MetastoreDescribeDataSourceResult.cc @@ -35,10 +35,13 @@ MetastoreDescribeDataSourceResult::~MetastoreDescribeDataSourceResult() void MetastoreDescribeDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataSourceNode = value["DataSource"]; if(!dataSourceNode["Id"].isNull()) diff --git a/emr/src/model/MetastoreDescribeDatabaseRequest.cc b/emr/src/model/MetastoreDescribeDatabaseRequest.cc index 6164222a6..0395c9ba1 100644 --- a/emr/src/model/MetastoreDescribeDatabaseRequest.cc +++ b/emr/src/model/MetastoreDescribeDatabaseRequest.cc @@ -33,7 +33,7 @@ long MetastoreDescribeDatabaseRequest::getResourceOwnerId()const void MetastoreDescribeDatabaseRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDescribeDatabaseRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreDescribeDatabaseRequest::getDbName()const void MetastoreDescribeDatabaseRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreDescribeDatabaseRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDescribeDatabaseRequest::getRegionId()const void MetastoreDescribeDatabaseRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDescribeDatabaseRequest::getId()const @@ -66,7 +66,7 @@ std::string MetastoreDescribeDatabaseRequest::getId()const void MetastoreDescribeDatabaseRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string MetastoreDescribeDatabaseRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string MetastoreDescribeDatabaseRequest::getAccessKeyId()const void MetastoreDescribeDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDescribeDatabaseResult.cc b/emr/src/model/MetastoreDescribeDatabaseResult.cc index 8f8f5a709..ee5e133c3 100644 --- a/emr/src/model/MetastoreDescribeDatabaseResult.cc +++ b/emr/src/model/MetastoreDescribeDatabaseResult.cc @@ -35,10 +35,13 @@ MetastoreDescribeDatabaseResult::~MetastoreDescribeDatabaseResult() void MetastoreDescribeDatabaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParameters = value["Parameters"]["Parameter"]; for (auto value : allParameters) diff --git a/emr/src/model/MetastoreDescribeKafkaConsumerGroupRequest.cc b/emr/src/model/MetastoreDescribeKafkaConsumerGroupRequest.cc index 31ea37e7a..397c6a59f 100644 --- a/emr/src/model/MetastoreDescribeKafkaConsumerGroupRequest.cc +++ b/emr/src/model/MetastoreDescribeKafkaConsumerGroupRequest.cc @@ -33,7 +33,7 @@ long MetastoreDescribeKafkaConsumerGroupRequest::getResourceOwnerId()const void MetastoreDescribeKafkaConsumerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDescribeKafkaConsumerGroupRequest::getTopicId()const @@ -44,7 +44,7 @@ std::string MetastoreDescribeKafkaConsumerGroupRequest::getTopicId()const void MetastoreDescribeKafkaConsumerGroupRequest::setTopicId(const std::string& topicId) { topicId_ = topicId; - setParameter("TopicId", topicId); + setCoreParameter("TopicId", topicId); } std::string MetastoreDescribeKafkaConsumerGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDescribeKafkaConsumerGroupRequest::getRegionId()const void MetastoreDescribeKafkaConsumerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDescribeKafkaConsumerGroupRequest::getConsumerGroupId()const @@ -66,7 +66,7 @@ std::string MetastoreDescribeKafkaConsumerGroupRequest::getConsumerGroupId()cons void MetastoreDescribeKafkaConsumerGroupRequest::setConsumerGroupId(const std::string& consumerGroupId) { consumerGroupId_ = consumerGroupId; - setParameter("ConsumerGroupId", consumerGroupId); + setCoreParameter("ConsumerGroupId", consumerGroupId); } std::string MetastoreDescribeKafkaConsumerGroupRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string MetastoreDescribeKafkaConsumerGroupRequest::getAccessKeyId()const void MetastoreDescribeKafkaConsumerGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDescribeKafkaConsumerGroupResult.cc b/emr/src/model/MetastoreDescribeKafkaConsumerGroupResult.cc index d9b149a61..c7e6f9520 100644 --- a/emr/src/model/MetastoreDescribeKafkaConsumerGroupResult.cc +++ b/emr/src/model/MetastoreDescribeKafkaConsumerGroupResult.cc @@ -35,10 +35,13 @@ MetastoreDescribeKafkaConsumerGroupResult::~MetastoreDescribeKafkaConsumerGroupR void MetastoreDescribeKafkaConsumerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPartitionList = value["PartitionList"]["Partition"]; for (auto value : allPartitionList) diff --git a/emr/src/model/MetastoreDescribeKafkaTopicRequest.cc b/emr/src/model/MetastoreDescribeKafkaTopicRequest.cc index f56a34791..17c040c9e 100644 --- a/emr/src/model/MetastoreDescribeKafkaTopicRequest.cc +++ b/emr/src/model/MetastoreDescribeKafkaTopicRequest.cc @@ -33,7 +33,7 @@ long MetastoreDescribeKafkaTopicRequest::getResourceOwnerId()const void MetastoreDescribeKafkaTopicRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDescribeKafkaTopicRequest::getTopicId()const @@ -44,7 +44,7 @@ std::string MetastoreDescribeKafkaTopicRequest::getTopicId()const void MetastoreDescribeKafkaTopicRequest::setTopicId(const std::string& topicId) { topicId_ = topicId; - setParameter("TopicId", topicId); + setCoreParameter("TopicId", topicId); } std::string MetastoreDescribeKafkaTopicRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDescribeKafkaTopicRequest::getRegionId()const void MetastoreDescribeKafkaTopicRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDescribeKafkaTopicRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string MetastoreDescribeKafkaTopicRequest::getAccessKeyId()const void MetastoreDescribeKafkaTopicRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDescribeKafkaTopicResult.cc b/emr/src/model/MetastoreDescribeKafkaTopicResult.cc index 4cf807406..2c420a17d 100644 --- a/emr/src/model/MetastoreDescribeKafkaTopicResult.cc +++ b/emr/src/model/MetastoreDescribeKafkaTopicResult.cc @@ -35,10 +35,13 @@ MetastoreDescribeKafkaTopicResult::~MetastoreDescribeKafkaTopicResult() void MetastoreDescribeKafkaTopicResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAdvancedConfigList = value["AdvancedConfigList"]["AdvancedConfig"]; for (auto value : allAdvancedConfigList) @@ -115,9 +118,18 @@ void MetastoreDescribeKafkaTopicResult::parse(const std::string &payload) underReplicatedPercentage_ = value["UnderReplicatedPercentage"].asString(); if(!value["PreferredReplicasPercentage"].isNull()) preferredReplicasPercentage_ = value["PreferredReplicasPercentage"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ReassignId"].isNull()) + reassignId_ = value["ReassignId"].asString(); } +std::string MetastoreDescribeKafkaTopicResult::getStatus()const +{ + return status_; +} + std::vector MetastoreDescribeKafkaTopicResult::getAdvancedConfigList()const { return advancedConfigList_; @@ -128,6 +140,11 @@ int MetastoreDescribeKafkaTopicResult::getReplicationFactor()const return replicationFactor_; } +std::string MetastoreDescribeKafkaTopicResult::getReassignId()const +{ + return reassignId_; +} + std::vector MetastoreDescribeKafkaTopicResult::getSummaryList()const { return summaryList_; diff --git a/emr/src/model/MetastoreDescribeTableRequest.cc b/emr/src/model/MetastoreDescribeTableRequest.cc index 5c29f763b..bedc10199 100644 --- a/emr/src/model/MetastoreDescribeTableRequest.cc +++ b/emr/src/model/MetastoreDescribeTableRequest.cc @@ -33,7 +33,7 @@ long MetastoreDescribeTableRequest::getResourceOwnerId()const void MetastoreDescribeTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDescribeTableRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreDescribeTableRequest::getDbName()const void MetastoreDescribeTableRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreDescribeTableRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDescribeTableRequest::getRegionId()const void MetastoreDescribeTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDescribeTableRequest::getId()const @@ -66,7 +66,7 @@ std::string MetastoreDescribeTableRequest::getId()const void MetastoreDescribeTableRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string MetastoreDescribeTableRequest::getTableName()const @@ -77,7 +77,7 @@ std::string MetastoreDescribeTableRequest::getTableName()const void MetastoreDescribeTableRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string MetastoreDescribeTableRequest::getDatabaseId()const @@ -88,7 +88,7 @@ std::string MetastoreDescribeTableRequest::getDatabaseId()const void MetastoreDescribeTableRequest::setDatabaseId(const std::string& databaseId) { databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); + setCoreParameter("DatabaseId", databaseId); } std::string MetastoreDescribeTableRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string MetastoreDescribeTableRequest::getAccessKeyId()const void MetastoreDescribeTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDescribeTableResult.cc b/emr/src/model/MetastoreDescribeTableResult.cc index 85a580df6..2f23799b8 100644 --- a/emr/src/model/MetastoreDescribeTableResult.cc +++ b/emr/src/model/MetastoreDescribeTableResult.cc @@ -35,10 +35,13 @@ MetastoreDescribeTableResult::~MetastoreDescribeTableResult() void MetastoreDescribeTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allColumns = value["Columns"]["Column"]; for (auto value : allColumns) diff --git a/emr/src/model/MetastoreDescribeTaskRequest.cc b/emr/src/model/MetastoreDescribeTaskRequest.cc index 95f0d6efe..76b446f76 100644 --- a/emr/src/model/MetastoreDescribeTaskRequest.cc +++ b/emr/src/model/MetastoreDescribeTaskRequest.cc @@ -33,7 +33,7 @@ long MetastoreDescribeTaskRequest::getResourceOwnerId()const void MetastoreDescribeTaskRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDescribeTaskRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreDescribeTaskRequest::getRegionId()const void MetastoreDescribeTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDescribeTaskRequest::getTaskId()const @@ -55,7 +55,7 @@ std::string MetastoreDescribeTaskRequest::getTaskId()const void MetastoreDescribeTaskRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string MetastoreDescribeTaskRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string MetastoreDescribeTaskRequest::getAccessKeyId()const void MetastoreDescribeTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDescribeTaskResult.cc b/emr/src/model/MetastoreDescribeTaskResult.cc index 6b9614ee5..0121751eb 100644 --- a/emr/src/model/MetastoreDescribeTaskResult.cc +++ b/emr/src/model/MetastoreDescribeTaskResult.cc @@ -35,10 +35,13 @@ MetastoreDescribeTaskResult::~MetastoreDescribeTaskResult() void MetastoreDescribeTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto taskNode = value["Task"]; if(!taskNode["BizId"].isNull()) diff --git a/emr/src/model/MetastoreDropDatabaseRequest.cc b/emr/src/model/MetastoreDropDatabaseRequest.cc index ed5617b5c..fbc266ab0 100644 --- a/emr/src/model/MetastoreDropDatabaseRequest.cc +++ b/emr/src/model/MetastoreDropDatabaseRequest.cc @@ -33,7 +33,7 @@ long MetastoreDropDatabaseRequest::getResourceOwnerId()const void MetastoreDropDatabaseRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDropDatabaseRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreDropDatabaseRequest::getDbName()const void MetastoreDropDatabaseRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreDropDatabaseRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDropDatabaseRequest::getRegionId()const void MetastoreDropDatabaseRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDropDatabaseRequest::getDatabaseId()const @@ -66,7 +66,7 @@ std::string MetastoreDropDatabaseRequest::getDatabaseId()const void MetastoreDropDatabaseRequest::setDatabaseId(const std::string& databaseId) { databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); + setCoreParameter("DatabaseId", databaseId); } std::string MetastoreDropDatabaseRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string MetastoreDropDatabaseRequest::getAccessKeyId()const void MetastoreDropDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDropDatabaseResult.cc b/emr/src/model/MetastoreDropDatabaseResult.cc index c857eb73f..f83fa0a4d 100644 --- a/emr/src/model/MetastoreDropDatabaseResult.cc +++ b/emr/src/model/MetastoreDropDatabaseResult.cc @@ -35,10 +35,13 @@ MetastoreDropDatabaseResult::~MetastoreDropDatabaseResult() void MetastoreDropDatabaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/MetastoreDropTableRequest.cc b/emr/src/model/MetastoreDropTableRequest.cc index 865e663ab..097cfc9ac 100644 --- a/emr/src/model/MetastoreDropTableRequest.cc +++ b/emr/src/model/MetastoreDropTableRequest.cc @@ -33,7 +33,7 @@ long MetastoreDropTableRequest::getResourceOwnerId()const void MetastoreDropTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreDropTableRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreDropTableRequest::getDbName()const void MetastoreDropTableRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreDropTableRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreDropTableRequest::getRegionId()const void MetastoreDropTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreDropTableRequest::getTableId()const @@ -66,7 +66,7 @@ std::string MetastoreDropTableRequest::getTableId()const void MetastoreDropTableRequest::setTableId(const std::string& tableId) { tableId_ = tableId; - setParameter("TableId", tableId); + setCoreParameter("TableId", tableId); } std::string MetastoreDropTableRequest::getTableName()const @@ -77,7 +77,7 @@ std::string MetastoreDropTableRequest::getTableName()const void MetastoreDropTableRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string MetastoreDropTableRequest::getDatabaseId()const @@ -88,7 +88,7 @@ std::string MetastoreDropTableRequest::getDatabaseId()const void MetastoreDropTableRequest::setDatabaseId(const std::string& databaseId) { databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); + setCoreParameter("DatabaseId", databaseId); } std::string MetastoreDropTableRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string MetastoreDropTableRequest::getAccessKeyId()const void MetastoreDropTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreDropTableResult.cc b/emr/src/model/MetastoreDropTableResult.cc index f572770de..d0a400ece 100644 --- a/emr/src/model/MetastoreDropTableResult.cc +++ b/emr/src/model/MetastoreDropTableResult.cc @@ -35,10 +35,13 @@ MetastoreDropTableResult::~MetastoreDropTableResult() void MetastoreDropTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/MetastoreListDataResourcesRequest.cc b/emr/src/model/MetastoreListDataResourcesRequest.cc index 2dd049a45..06e1bd6be 100644 --- a/emr/src/model/MetastoreListDataResourcesRequest.cc +++ b/emr/src/model/MetastoreListDataResourcesRequest.cc @@ -33,7 +33,7 @@ long MetastoreListDataResourcesRequest::getResourceOwnerId()const void MetastoreListDataResourcesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreListDataResourcesRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreListDataResourcesRequest::getRegionId()const void MetastoreListDataResourcesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreListDataResourcesRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string MetastoreListDataResourcesRequest::getAccessKeyId()const void MetastoreListDataResourcesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListDataResourcesResult.cc b/emr/src/model/MetastoreListDataResourcesResult.cc index 4d91e24df..5794eeb66 100644 --- a/emr/src/model/MetastoreListDataResourcesResult.cc +++ b/emr/src/model/MetastoreListDataResourcesResult.cc @@ -35,10 +35,13 @@ MetastoreListDataResourcesResult::~MetastoreListDataResourcesResult() void MetastoreListDataResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataResources = value["DataResources"]["DataResourceInfo"]; for (auto value : allDataResources) diff --git a/emr/src/model/MetastoreListDataSourceRequest.cc b/emr/src/model/MetastoreListDataSourceRequest.cc index 126c20d6f..1865ad974 100644 --- a/emr/src/model/MetastoreListDataSourceRequest.cc +++ b/emr/src/model/MetastoreListDataSourceRequest.cc @@ -33,7 +33,7 @@ long MetastoreListDataSourceRequest::getResourceOwnerId()const void MetastoreListDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreListDataSourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreListDataSourceRequest::getRegionId()const void MetastoreListDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool MetastoreListDataSourceRequest::getClusterReleased()const @@ -55,7 +55,7 @@ bool MetastoreListDataSourceRequest::getClusterReleased()const void MetastoreListDataSourceRequest::setClusterReleased(bool clusterReleased) { clusterReleased_ = clusterReleased; - setParameter("ClusterReleased", std::to_string(clusterReleased)); + setCoreParameter("ClusterReleased", clusterReleased ? "true" : "false"); } int MetastoreListDataSourceRequest::getPageSize()const @@ -66,7 +66,7 @@ int MetastoreListDataSourceRequest::getPageSize()const void MetastoreListDataSourceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string MetastoreListDataSourceRequest::getSourceType()const @@ -77,7 +77,7 @@ std::string MetastoreListDataSourceRequest::getSourceType()const void MetastoreListDataSourceRequest::setSourceType(const std::string& sourceType) { sourceType_ = sourceType; - setParameter("SourceType", sourceType); + setCoreParameter("SourceType", sourceType); } std::string MetastoreListDataSourceRequest::getDataSourceName()const @@ -88,7 +88,7 @@ std::string MetastoreListDataSourceRequest::getDataSourceName()const void MetastoreListDataSourceRequest::setDataSourceName(const std::string& dataSourceName) { dataSourceName_ = dataSourceName; - setParameter("DataSourceName", dataSourceName); + setCoreParameter("DataSourceName", dataSourceName); } int MetastoreListDataSourceRequest::getPageNumber()const @@ -99,7 +99,7 @@ int MetastoreListDataSourceRequest::getPageNumber()const void MetastoreListDataSourceRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string MetastoreListDataSourceRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string MetastoreListDataSourceRequest::getAccessKeyId()const void MetastoreListDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListDataSourceResult.cc b/emr/src/model/MetastoreListDataSourceResult.cc index a562a1828..f92dcb217 100644 --- a/emr/src/model/MetastoreListDataSourceResult.cc +++ b/emr/src/model/MetastoreListDataSourceResult.cc @@ -35,10 +35,13 @@ MetastoreListDataSourceResult::~MetastoreListDataSourceResult() void MetastoreListDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataSourceList = value["DataSourceList"]["DataSource"]; for (auto value : allDataSourceList) diff --git a/emr/src/model/MetastoreListDatabasesRequest.cc b/emr/src/model/MetastoreListDatabasesRequest.cc index 539fb06b4..f39fb9c5b 100644 --- a/emr/src/model/MetastoreListDatabasesRequest.cc +++ b/emr/src/model/MetastoreListDatabasesRequest.cc @@ -33,7 +33,7 @@ long MetastoreListDatabasesRequest::getResourceOwnerId()const void MetastoreListDatabasesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreListDatabasesRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreListDatabasesRequest::getDbName()const void MetastoreListDatabasesRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreListDatabasesRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreListDatabasesRequest::getRegionId()const void MetastoreListDatabasesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int MetastoreListDatabasesRequest::getPageSize()const @@ -66,7 +66,7 @@ int MetastoreListDatabasesRequest::getPageSize()const void MetastoreListDatabasesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string MetastoreListDatabasesRequest::getFuzzyDatabaseName()const @@ -77,7 +77,7 @@ std::string MetastoreListDatabasesRequest::getFuzzyDatabaseName()const void MetastoreListDatabasesRequest::setFuzzyDatabaseName(const std::string& fuzzyDatabaseName) { fuzzyDatabaseName_ = fuzzyDatabaseName; - setParameter("FuzzyDatabaseName", fuzzyDatabaseName); + setCoreParameter("FuzzyDatabaseName", fuzzyDatabaseName); } int MetastoreListDatabasesRequest::getPageNumber()const @@ -88,7 +88,7 @@ int MetastoreListDatabasesRequest::getPageNumber()const void MetastoreListDatabasesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string MetastoreListDatabasesRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string MetastoreListDatabasesRequest::getAccessKeyId()const void MetastoreListDatabasesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListDatabasesResult.cc b/emr/src/model/MetastoreListDatabasesResult.cc index 71e2359eb..21cff4f12 100644 --- a/emr/src/model/MetastoreListDatabasesResult.cc +++ b/emr/src/model/MetastoreListDatabasesResult.cc @@ -35,10 +35,13 @@ MetastoreListDatabasesResult::~MetastoreListDatabasesResult() void MetastoreListDatabasesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDatabaseList = value["DatabaseList"]["Database"]; for (auto value : allDatabaseList) diff --git a/emr/src/model/MetastoreListKafkaConsumerGroupRequest.cc b/emr/src/model/MetastoreListKafkaConsumerGroupRequest.cc index 45683fe66..5f6a7d3a9 100644 --- a/emr/src/model/MetastoreListKafkaConsumerGroupRequest.cc +++ b/emr/src/model/MetastoreListKafkaConsumerGroupRequest.cc @@ -33,7 +33,7 @@ long MetastoreListKafkaConsumerGroupRequest::getResourceOwnerId()const void MetastoreListKafkaConsumerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreListKafkaConsumerGroupRequest::getTopicId()const @@ -44,7 +44,7 @@ std::string MetastoreListKafkaConsumerGroupRequest::getTopicId()const void MetastoreListKafkaConsumerGroupRequest::setTopicId(const std::string& topicId) { topicId_ = topicId; - setParameter("TopicId", topicId); + setCoreParameter("TopicId", topicId); } std::string MetastoreListKafkaConsumerGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreListKafkaConsumerGroupRequest::getRegionId()const void MetastoreListKafkaConsumerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int MetastoreListKafkaConsumerGroupRequest::getPageSize()const @@ -66,7 +66,7 @@ int MetastoreListKafkaConsumerGroupRequest::getPageSize()const void MetastoreListKafkaConsumerGroupRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int MetastoreListKafkaConsumerGroupRequest::getPageNumber()const @@ -77,7 +77,7 @@ int MetastoreListKafkaConsumerGroupRequest::getPageNumber()const void MetastoreListKafkaConsumerGroupRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string MetastoreListKafkaConsumerGroupRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string MetastoreListKafkaConsumerGroupRequest::getAccessKeyId()const void MetastoreListKafkaConsumerGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListKafkaConsumerGroupResult.cc b/emr/src/model/MetastoreListKafkaConsumerGroupResult.cc index c091a812f..8aca709cc 100644 --- a/emr/src/model/MetastoreListKafkaConsumerGroupResult.cc +++ b/emr/src/model/MetastoreListKafkaConsumerGroupResult.cc @@ -35,10 +35,13 @@ MetastoreListKafkaConsumerGroupResult::~MetastoreListKafkaConsumerGroupResult() void MetastoreListKafkaConsumerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConsumerGroupList = value["ConsumerGroupList"]["consumerGroup"]; for (auto value : allConsumerGroupList) diff --git a/emr/src/model/MetastoreListKafkaTopicRequest.cc b/emr/src/model/MetastoreListKafkaTopicRequest.cc index 273c04772..ae7b6258c 100644 --- a/emr/src/model/MetastoreListKafkaTopicRequest.cc +++ b/emr/src/model/MetastoreListKafkaTopicRequest.cc @@ -33,7 +33,18 @@ long MetastoreListKafkaTopicRequest::getResourceOwnerId()const void MetastoreListKafkaTopicRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool MetastoreListKafkaTopicRequest::getActiveOnly()const +{ + return activeOnly_; +} + +void MetastoreListKafkaTopicRequest::setActiveOnly(bool activeOnly) +{ + activeOnly_ = activeOnly; + setCoreParameter("ActiveOnly", activeOnly ? "true" : "false"); } std::string MetastoreListKafkaTopicRequest::getRegionId()const @@ -44,7 +55,7 @@ std::string MetastoreListKafkaTopicRequest::getRegionId()const void MetastoreListKafkaTopicRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int MetastoreListKafkaTopicRequest::getPageSize()const @@ -55,7 +66,7 @@ int MetastoreListKafkaTopicRequest::getPageSize()const void MetastoreListKafkaTopicRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string MetastoreListKafkaTopicRequest::getDataSourceId()const @@ -66,7 +77,7 @@ std::string MetastoreListKafkaTopicRequest::getDataSourceId()const void MetastoreListKafkaTopicRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string MetastoreListKafkaTopicRequest::getTopicName()const @@ -77,7 +88,7 @@ std::string MetastoreListKafkaTopicRequest::getTopicName()const void MetastoreListKafkaTopicRequest::setTopicName(const std::string& topicName) { topicName_ = topicName; - setParameter("TopicName", topicName); + setCoreParameter("TopicName", topicName); } std::string MetastoreListKafkaTopicRequest::getClusterId()const @@ -88,7 +99,7 @@ std::string MetastoreListKafkaTopicRequest::getClusterId()const void MetastoreListKafkaTopicRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int MetastoreListKafkaTopicRequest::getPageNumber()const @@ -99,7 +110,7 @@ int MetastoreListKafkaTopicRequest::getPageNumber()const void MetastoreListKafkaTopicRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string MetastoreListKafkaTopicRequest::getAccessKeyId()const @@ -110,6 +121,6 @@ std::string MetastoreListKafkaTopicRequest::getAccessKeyId()const void MetastoreListKafkaTopicRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListKafkaTopicResult.cc b/emr/src/model/MetastoreListKafkaTopicResult.cc index 3af731aae..ccd1857ee 100644 --- a/emr/src/model/MetastoreListKafkaTopicResult.cc +++ b/emr/src/model/MetastoreListKafkaTopicResult.cc @@ -35,10 +35,13 @@ MetastoreListKafkaTopicResult::~MetastoreListKafkaTopicResult() void MetastoreListKafkaTopicResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopicList = value["TopicList"]["Topic"]; for (auto value : allTopicList) @@ -58,6 +61,10 @@ void MetastoreListKafkaTopicResult::parse(const std::string &payload) topicListObject.gmtCreate = std::stol(value["GmtCreate"].asString()); if(!value["GmtModified"].isNull()) topicListObject.gmtModified = std::stol(value["GmtModified"].asString()); + if(!value["Status"].isNull()) + topicListObject.status = value["Status"].asString(); + if(!value["ReassignId"].isNull()) + topicListObject.reassignId = value["ReassignId"].asString(); auto allAdvancedConfigList = value["AdvancedConfigList"]["AdvancedConfig"]; for (auto value : allAdvancedConfigList) { diff --git a/emr/src/model/MetastoreListTablePartitionRequest.cc b/emr/src/model/MetastoreListTablePartitionRequest.cc index a925dc9a1..d6944190a 100644 --- a/emr/src/model/MetastoreListTablePartitionRequest.cc +++ b/emr/src/model/MetastoreListTablePartitionRequest.cc @@ -33,7 +33,7 @@ long MetastoreListTablePartitionRequest::getResourceOwnerId()const void MetastoreListTablePartitionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreListTablePartitionRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreListTablePartitionRequest::getRegionId()const void MetastoreListTablePartitionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int MetastoreListTablePartitionRequest::getPageSize()const @@ -55,7 +55,7 @@ int MetastoreListTablePartitionRequest::getPageSize()const void MetastoreListTablePartitionRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string MetastoreListTablePartitionRequest::getTableId()const @@ -66,7 +66,7 @@ std::string MetastoreListTablePartitionRequest::getTableId()const void MetastoreListTablePartitionRequest::setTableId(const std::string& tableId) { tableId_ = tableId; - setParameter("TableId", tableId); + setCoreParameter("TableId", tableId); } std::string MetastoreListTablePartitionRequest::getDatabaseId()const @@ -77,7 +77,7 @@ std::string MetastoreListTablePartitionRequest::getDatabaseId()const void MetastoreListTablePartitionRequest::setDatabaseId(const std::string& databaseId) { databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); + setCoreParameter("DatabaseId", databaseId); } int MetastoreListTablePartitionRequest::getPageNumber()const @@ -88,7 +88,7 @@ int MetastoreListTablePartitionRequest::getPageNumber()const void MetastoreListTablePartitionRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string MetastoreListTablePartitionRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string MetastoreListTablePartitionRequest::getAccessKeyId()const void MetastoreListTablePartitionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListTablePartitionResult.cc b/emr/src/model/MetastoreListTablePartitionResult.cc index e6e987992..af1c3a354 100644 --- a/emr/src/model/MetastoreListTablePartitionResult.cc +++ b/emr/src/model/MetastoreListTablePartitionResult.cc @@ -35,10 +35,13 @@ MetastoreListTablePartitionResult::~MetastoreListTablePartitionResult() void MetastoreListTablePartitionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPartitionList = value["PartitionList"]["Partition"]; for (auto value : allPartitionList) diff --git a/emr/src/model/MetastoreListTablesRequest.cc b/emr/src/model/MetastoreListTablesRequest.cc index 4089a5adc..a8eb04cbc 100644 --- a/emr/src/model/MetastoreListTablesRequest.cc +++ b/emr/src/model/MetastoreListTablesRequest.cc @@ -33,7 +33,7 @@ long MetastoreListTablesRequest::getResourceOwnerId()const void MetastoreListTablesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreListTablesRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreListTablesRequest::getDbName()const void MetastoreListTablesRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreListTablesRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreListTablesRequest::getRegionId()const void MetastoreListTablesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int MetastoreListTablesRequest::getPageSize()const @@ -66,7 +66,7 @@ int MetastoreListTablesRequest::getPageSize()const void MetastoreListTablesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string MetastoreListTablesRequest::getTableId()const @@ -77,7 +77,7 @@ std::string MetastoreListTablesRequest::getTableId()const void MetastoreListTablesRequest::setTableId(const std::string& tableId) { tableId_ = tableId; - setParameter("TableId", tableId); + setCoreParameter("TableId", tableId); } std::string MetastoreListTablesRequest::getDatabaseId()const @@ -88,7 +88,7 @@ std::string MetastoreListTablesRequest::getDatabaseId()const void MetastoreListTablesRequest::setDatabaseId(const std::string& databaseId) { databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); + setCoreParameter("DatabaseId", databaseId); } std::string MetastoreListTablesRequest::getTableName()const @@ -99,7 +99,7 @@ std::string MetastoreListTablesRequest::getTableName()const void MetastoreListTablesRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } int MetastoreListTablesRequest::getPageNumber()const @@ -110,7 +110,7 @@ int MetastoreListTablesRequest::getPageNumber()const void MetastoreListTablesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string MetastoreListTablesRequest::getFuzzyTableName()const @@ -121,7 +121,7 @@ std::string MetastoreListTablesRequest::getFuzzyTableName()const void MetastoreListTablesRequest::setFuzzyTableName(const std::string& fuzzyTableName) { fuzzyTableName_ = fuzzyTableName; - setParameter("FuzzyTableName", fuzzyTableName); + setCoreParameter("FuzzyTableName", fuzzyTableName); } std::string MetastoreListTablesRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string MetastoreListTablesRequest::getAccessKeyId()const void MetastoreListTablesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListTablesResult.cc b/emr/src/model/MetastoreListTablesResult.cc index 0e0a885ea..1be2f949f 100644 --- a/emr/src/model/MetastoreListTablesResult.cc +++ b/emr/src/model/MetastoreListTablesResult.cc @@ -35,10 +35,13 @@ MetastoreListTablesResult::~MetastoreListTablesResult() void MetastoreListTablesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTableList = value["TableList"]["Table"]; for (auto value : allTableList) diff --git a/emr/src/model/MetastoreListTaskRequest.cc b/emr/src/model/MetastoreListTaskRequest.cc index c1968fd61..152428f55 100644 --- a/emr/src/model/MetastoreListTaskRequest.cc +++ b/emr/src/model/MetastoreListTaskRequest.cc @@ -33,7 +33,7 @@ long MetastoreListTaskRequest::getResourceOwnerId()const void MetastoreListTaskRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreListTaskRequest::getTaskStatus()const @@ -44,7 +44,7 @@ std::string MetastoreListTaskRequest::getTaskStatus()const void MetastoreListTaskRequest::setTaskStatus(const std::string& taskStatus) { taskStatus_ = taskStatus; - setParameter("TaskStatus", taskStatus); + setCoreParameter("TaskStatus", taskStatus); } std::string MetastoreListTaskRequest::getTaskSourceType()const @@ -55,7 +55,7 @@ std::string MetastoreListTaskRequest::getTaskSourceType()const void MetastoreListTaskRequest::setTaskSourceType(const std::string& taskSourceType) { taskSourceType_ = taskSourceType; - setParameter("TaskSourceType", taskSourceType); + setCoreParameter("TaskSourceType", taskSourceType); } std::string MetastoreListTaskRequest::getTaskType()const @@ -66,7 +66,7 @@ std::string MetastoreListTaskRequest::getTaskType()const void MetastoreListTaskRequest::setTaskType(const std::string& taskType) { taskType_ = taskType; - setParameter("TaskType", taskType); + setCoreParameter("TaskType", taskType); } std::string MetastoreListTaskRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string MetastoreListTaskRequest::getRegionId()const void MetastoreListTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int MetastoreListTaskRequest::getPageSize()const @@ -88,7 +88,7 @@ int MetastoreListTaskRequest::getPageSize()const void MetastoreListTaskRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string MetastoreListTaskRequest::getDataSourceId()const @@ -99,7 +99,7 @@ std::string MetastoreListTaskRequest::getDataSourceId()const void MetastoreListTaskRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } int MetastoreListTaskRequest::getPageNumber()const @@ -110,7 +110,7 @@ int MetastoreListTaskRequest::getPageNumber()const void MetastoreListTaskRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string MetastoreListTaskRequest::getTaskId()const @@ -121,7 +121,7 @@ std::string MetastoreListTaskRequest::getTaskId()const void MetastoreListTaskRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string MetastoreListTaskRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string MetastoreListTaskRequest::getAccessKeyId()const void MetastoreListTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreListTaskResult.cc b/emr/src/model/MetastoreListTaskResult.cc index 8db5697c6..2a2d8068f 100644 --- a/emr/src/model/MetastoreListTaskResult.cc +++ b/emr/src/model/MetastoreListTaskResult.cc @@ -35,10 +35,13 @@ MetastoreListTaskResult::~MetastoreListTaskResult() void MetastoreListTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTaskList = value["TaskList"]["Task"]; for (auto value : allTaskList) diff --git a/emr/src/model/MetastoreModifyDataResourceRequest.cc b/emr/src/model/MetastoreModifyDataResourceRequest.cc index c411b3ef9..ee696e834 100644 --- a/emr/src/model/MetastoreModifyDataResourceRequest.cc +++ b/emr/src/model/MetastoreModifyDataResourceRequest.cc @@ -33,7 +33,7 @@ long MetastoreModifyDataResourceRequest::getResourceOwnerId()const void MetastoreModifyDataResourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool MetastoreModifyDataResourceRequest::getDefault()const @@ -44,7 +44,7 @@ bool MetastoreModifyDataResourceRequest::getDefault()const void MetastoreModifyDataResourceRequest::setDefault(bool default) { default_ = default; - setParameter("Default", std::to_string(default)); + setCoreParameter("Default", default ? "true" : "false"); } std::string MetastoreModifyDataResourceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreModifyDataResourceRequest::getRegionId()const void MetastoreModifyDataResourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreModifyDataResourceRequest::getName()const @@ -66,7 +66,7 @@ std::string MetastoreModifyDataResourceRequest::getName()const void MetastoreModifyDataResourceRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string MetastoreModifyDataResourceRequest::getDescription()const @@ -77,7 +77,7 @@ std::string MetastoreModifyDataResourceRequest::getDescription()const void MetastoreModifyDataResourceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string MetastoreModifyDataResourceRequest::getId()const @@ -88,7 +88,7 @@ std::string MetastoreModifyDataResourceRequest::getId()const void MetastoreModifyDataResourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string MetastoreModifyDataResourceRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string MetastoreModifyDataResourceRequest::getClusterId()const void MetastoreModifyDataResourceRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string MetastoreModifyDataResourceRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string MetastoreModifyDataResourceRequest::getAccessKeyId()const void MetastoreModifyDataResourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreModifyDataResourceResult.cc b/emr/src/model/MetastoreModifyDataResourceResult.cc index 5b3bfea49..8a9a7b12b 100644 --- a/emr/src/model/MetastoreModifyDataResourceResult.cc +++ b/emr/src/model/MetastoreModifyDataResourceResult.cc @@ -35,10 +35,13 @@ MetastoreModifyDataResourceResult::~MetastoreModifyDataResourceResult() void MetastoreModifyDataResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/MetastoreRetryTaskRequest.cc b/emr/src/model/MetastoreRetryTaskRequest.cc index 0743e7858..3d4db1fc6 100644 --- a/emr/src/model/MetastoreRetryTaskRequest.cc +++ b/emr/src/model/MetastoreRetryTaskRequest.cc @@ -33,7 +33,7 @@ long MetastoreRetryTaskRequest::getResourceOwnerId()const void MetastoreRetryTaskRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreRetryTaskRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreRetryTaskRequest::getRegionId()const void MetastoreRetryTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreRetryTaskRequest::getTaskId()const @@ -55,7 +55,7 @@ std::string MetastoreRetryTaskRequest::getTaskId()const void MetastoreRetryTaskRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string MetastoreRetryTaskRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string MetastoreRetryTaskRequest::getAccessKeyId()const void MetastoreRetryTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreRetryTaskResult.cc b/emr/src/model/MetastoreRetryTaskResult.cc index afe5cbd0b..9b229ea15 100644 --- a/emr/src/model/MetastoreRetryTaskResult.cc +++ b/emr/src/model/MetastoreRetryTaskResult.cc @@ -35,10 +35,13 @@ MetastoreRetryTaskResult::~MetastoreRetryTaskResult() void MetastoreRetryTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/emr/src/model/MetastoreSearchTablesRequest.cc b/emr/src/model/MetastoreSearchTablesRequest.cc index 443786fa1..09673ed6f 100644 --- a/emr/src/model/MetastoreSearchTablesRequest.cc +++ b/emr/src/model/MetastoreSearchTablesRequest.cc @@ -33,7 +33,7 @@ long MetastoreSearchTablesRequest::getResourceOwnerId()const void MetastoreSearchTablesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreSearchTablesRequest::getDbName()const @@ -44,7 +44,7 @@ std::string MetastoreSearchTablesRequest::getDbName()const void MetastoreSearchTablesRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string MetastoreSearchTablesRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreSearchTablesRequest::getRegionId()const void MetastoreSearchTablesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MetastoreSearchTablesRequest::getTableName()const @@ -66,7 +66,7 @@ std::string MetastoreSearchTablesRequest::getTableName()const void MetastoreSearchTablesRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string MetastoreSearchTablesRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string MetastoreSearchTablesRequest::getAccessKeyId()const void MetastoreSearchTablesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MetastoreSearchTablesResult.cc b/emr/src/model/MetastoreSearchTablesResult.cc index dc0b6dad6..641024f99 100644 --- a/emr/src/model/MetastoreSearchTablesResult.cc +++ b/emr/src/model/MetastoreSearchTablesResult.cc @@ -35,10 +35,13 @@ MetastoreSearchTablesResult::~MetastoreSearchTablesResult() void MetastoreSearchTablesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTableNames = value["TableNames"]["TableName"]; for (const auto &item : allTableNames) diff --git a/emr/src/model/MetastoreUpdateKafkaTopicBatchRequest.cc b/emr/src/model/MetastoreUpdateKafkaTopicBatchRequest.cc index a44dee5d5..f578d4ea9 100644 --- a/emr/src/model/MetastoreUpdateKafkaTopicBatchRequest.cc +++ b/emr/src/model/MetastoreUpdateKafkaTopicBatchRequest.cc @@ -33,7 +33,7 @@ long MetastoreUpdateKafkaTopicBatchRequest::getResourceOwnerId()const void MetastoreUpdateKafkaTopicBatchRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector MetastoreUpdateKafkaTopicBatchRequest::getTopicParam()const @@ -48,8 +48,8 @@ void MetastoreUpdateKafkaTopicBatchRequest::setTopicParam(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); diff --git a/emr/src/model/MetastoreUpdateKafkaTopicRequest.cc b/emr/src/model/MetastoreUpdateKafkaTopicRequest.cc index bd6a71d6b..994e42df3 100644 --- a/emr/src/model/MetastoreUpdateKafkaTopicRequest.cc +++ b/emr/src/model/MetastoreUpdateKafkaTopicRequest.cc @@ -33,7 +33,7 @@ long MetastoreUpdateKafkaTopicRequest::getResourceOwnerId()const void MetastoreUpdateKafkaTopicRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreUpdateKafkaTopicRequest::getTopicId()const @@ -44,7 +44,7 @@ std::string MetastoreUpdateKafkaTopicRequest::getTopicId()const void MetastoreUpdateKafkaTopicRequest::setTopicId(const std::string& topicId) { topicId_ = topicId; - setParameter("TopicId", topicId); + setCoreParameter("TopicId", topicId); } std::string MetastoreUpdateKafkaTopicRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MetastoreUpdateKafkaTopicRequest::getRegionId()const void MetastoreUpdateKafkaTopicRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::vector MetastoreUpdateKafkaTopicRequest::getAdvancedConfig()const @@ -70,8 +70,8 @@ void MetastoreUpdateKafkaTopicRequest::setAdvancedConfig(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); diff --git a/emr/src/model/MetastoreUpdateTableRequest.cc b/emr/src/model/MetastoreUpdateTableRequest.cc index 972d78ab1..86e73891d 100644 --- a/emr/src/model/MetastoreUpdateTableRequest.cc +++ b/emr/src/model/MetastoreUpdateTableRequest.cc @@ -33,7 +33,7 @@ long MetastoreUpdateTableRequest::getResourceOwnerId()const void MetastoreUpdateTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MetastoreUpdateTableRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string MetastoreUpdateTableRequest::getRegionId()const void MetastoreUpdateTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::vector MetastoreUpdateTableRequest::getAddColumn()const @@ -59,9 +59,9 @@ void MetastoreUpdateTableRequest::setAddColumn(const std::vector& add for(int i = 0; i!= addColumn.size(); i++) { auto obj = addColumn.at(i); std::string str ="AddColumn."+ std::to_string(i); - setParameter(str + ".Name", obj.name); - setParameter(str + ".Comment", obj.comment); - setParameter(str + ".Type", obj.type); + setCoreParameter(str + ".Name", obj.name); + setCoreParameter(str + ".Comment", obj.comment); + setCoreParameter(str + ".Type", obj.type); } } @@ -77,9 +77,9 @@ void MetastoreUpdateTableRequest::setAddPartition(const std::vector MetastoreUpdateTableRequest::getDeletePartitionName()const @@ -115,7 +115,7 @@ void MetastoreUpdateTableRequest::setDeletePartitionName(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; diff --git a/emr/src/model/MigrateClusterHostGroupHostRequest.cc b/emr/src/model/MigrateClusterHostGroupHostRequest.cc index 0b79f2ee8..bfbccdc63 100644 --- a/emr/src/model/MigrateClusterHostGroupHostRequest.cc +++ b/emr/src/model/MigrateClusterHostGroupHostRequest.cc @@ -34,7 +34,7 @@ void MigrateClusterHostGroupHostRequest::setHostInstanceIdList(const std::vector { hostInstanceIdList_ = hostInstanceIdList; for(int i = 0; i!= hostInstanceIdList.size(); i++) - setParameter("HostInstanceIdList."+ std::to_string(i), hostInstanceIdList.at(i)); + setCoreParameter("HostInstanceIdList."+ std::to_string(i), hostInstanceIdList.at(i)); } long MigrateClusterHostGroupHostRequest::getResourceOwnerId()const @@ -45,7 +45,7 @@ long MigrateClusterHostGroupHostRequest::getResourceOwnerId()const void MigrateClusterHostGroupHostRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MigrateClusterHostGroupHostRequest::getRegionId()const @@ -56,7 +56,7 @@ std::string MigrateClusterHostGroupHostRequest::getRegionId()const void MigrateClusterHostGroupHostRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MigrateClusterHostGroupHostRequest::getHostGroupId()const @@ -67,7 +67,7 @@ std::string MigrateClusterHostGroupHostRequest::getHostGroupId()const void MigrateClusterHostGroupHostRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string MigrateClusterHostGroupHostRequest::getClusterId()const @@ -78,7 +78,7 @@ std::string MigrateClusterHostGroupHostRequest::getClusterId()const void MigrateClusterHostGroupHostRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string MigrateClusterHostGroupHostRequest::getAccessKeyId()const @@ -89,6 +89,6 @@ std::string MigrateClusterHostGroupHostRequest::getAccessKeyId()const void MigrateClusterHostGroupHostRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MigrateClusterHostGroupHostResult.cc b/emr/src/model/MigrateClusterHostGroupHostResult.cc index 8a3147a60..f329fb68d 100644 --- a/emr/src/model/MigrateClusterHostGroupHostResult.cc +++ b/emr/src/model/MigrateClusterHostGroupHostResult.cc @@ -35,10 +35,13 @@ MigrateClusterHostGroupHostResult::~MigrateClusterHostGroupHostResult() void MigrateClusterHostGroupHostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/MigrateJobsRequest.cc b/emr/src/model/MigrateJobsRequest.cc index e522d02d9..5c8c37e70 100644 --- a/emr/src/model/MigrateJobsRequest.cc +++ b/emr/src/model/MigrateJobsRequest.cc @@ -33,7 +33,7 @@ long MigrateJobsRequest::getResourceOwnerId()const void MigrateJobsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MigrateJobsRequest::getProjectName()const @@ -44,7 +44,7 @@ std::string MigrateJobsRequest::getProjectName()const void MigrateJobsRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } std::string MigrateJobsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string MigrateJobsRequest::getRegionId()const void MigrateJobsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string MigrateJobsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string MigrateJobsRequest::getAccessKeyId()const void MigrateJobsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/MigrateJobsResult.cc b/emr/src/model/MigrateJobsResult.cc index 70307517d..d4e57e400 100644 --- a/emr/src/model/MigrateJobsResult.cc +++ b/emr/src/model/MigrateJobsResult.cc @@ -35,10 +35,13 @@ MigrateJobsResult::~MigrateJobsResult() void MigrateJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Result"].isNull()) result_ = value["Result"].asString(); diff --git a/emr/src/model/ModifyAlertContactRequest.cc b/emr/src/model/ModifyAlertContactRequest.cc index 4415ef4c3..92e37a1cd 100644 --- a/emr/src/model/ModifyAlertContactRequest.cc +++ b/emr/src/model/ModifyAlertContactRequest.cc @@ -33,7 +33,7 @@ std::string ModifyAlertContactRequest::getEmailVerificationCode()const void ModifyAlertContactRequest::setEmailVerificationCode(const std::string& emailVerificationCode) { emailVerificationCode_ = emailVerificationCode; - setParameter("EmailVerificationCode", emailVerificationCode); + setCoreParameter("EmailVerificationCode", emailVerificationCode); } long ModifyAlertContactRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyAlertContactRequest::getResourceOwnerId()const void ModifyAlertContactRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyAlertContactRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyAlertContactRequest::getRegionId()const void ModifyAlertContactRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyAlertContactRequest::getPhoneNumberVerificationCode()const @@ -66,7 +66,7 @@ std::string ModifyAlertContactRequest::getPhoneNumberVerificationCode()const void ModifyAlertContactRequest::setPhoneNumberVerificationCode(const std::string& phoneNumberVerificationCode) { phoneNumberVerificationCode_ = phoneNumberVerificationCode; - setParameter("PhoneNumberVerificationCode", phoneNumberVerificationCode); + setCoreParameter("PhoneNumberVerificationCode", phoneNumberVerificationCode); } std::string ModifyAlertContactRequest::getBizId()const @@ -77,7 +77,7 @@ std::string ModifyAlertContactRequest::getBizId()const void ModifyAlertContactRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } std::string ModifyAlertContactRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyAlertContactRequest::getName()const void ModifyAlertContactRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyAlertContactRequest::getPhoneNumber()const @@ -99,7 +99,7 @@ std::string ModifyAlertContactRequest::getPhoneNumber()const void ModifyAlertContactRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } std::string ModifyAlertContactRequest::getEmail()const @@ -110,7 +110,7 @@ std::string ModifyAlertContactRequest::getEmail()const void ModifyAlertContactRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string ModifyAlertContactRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ModifyAlertContactRequest::getAccessKeyId()const void ModifyAlertContactRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyAlertContactResult.cc b/emr/src/model/ModifyAlertContactResult.cc index af687aec6..6d8122c8a 100644 --- a/emr/src/model/ModifyAlertContactResult.cc +++ b/emr/src/model/ModifyAlertContactResult.cc @@ -35,10 +35,13 @@ ModifyAlertContactResult::~ModifyAlertContactResult() void ModifyAlertContactResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Done"].isNull()) done_ = value["Done"].asString() == "true"; diff --git a/emr/src/model/ModifyAlertDingDingGroupRequest.cc b/emr/src/model/ModifyAlertDingDingGroupRequest.cc index 9a7bd4558..8b9e9b48a 100644 --- a/emr/src/model/ModifyAlertDingDingGroupRequest.cc +++ b/emr/src/model/ModifyAlertDingDingGroupRequest.cc @@ -33,7 +33,7 @@ long ModifyAlertDingDingGroupRequest::getResourceOwnerId()const void ModifyAlertDingDingGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyAlertDingDingGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyAlertDingDingGroupRequest::getRegionId()const void ModifyAlertDingDingGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyAlertDingDingGroupRequest::getBizId()const @@ -55,7 +55,7 @@ std::string ModifyAlertDingDingGroupRequest::getBizId()const void ModifyAlertDingDingGroupRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } std::string ModifyAlertDingDingGroupRequest::getName()const @@ -66,7 +66,7 @@ std::string ModifyAlertDingDingGroupRequest::getName()const void ModifyAlertDingDingGroupRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyAlertDingDingGroupRequest::getDescription()const @@ -77,7 +77,7 @@ std::string ModifyAlertDingDingGroupRequest::getDescription()const void ModifyAlertDingDingGroupRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyAlertDingDingGroupRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string ModifyAlertDingDingGroupRequest::getAccessKeyId()const void ModifyAlertDingDingGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyAlertDingDingGroupRequest::getWebHookUrl()const @@ -99,6 +99,6 @@ std::string ModifyAlertDingDingGroupRequest::getWebHookUrl()const void ModifyAlertDingDingGroupRequest::setWebHookUrl(const std::string& webHookUrl) { webHookUrl_ = webHookUrl; - setParameter("WebHookUrl", webHookUrl); + setCoreParameter("WebHookUrl", webHookUrl); } diff --git a/emr/src/model/ModifyAlertDingDingGroupResult.cc b/emr/src/model/ModifyAlertDingDingGroupResult.cc index 9090e46ea..2354c2e43 100644 --- a/emr/src/model/ModifyAlertDingDingGroupResult.cc +++ b/emr/src/model/ModifyAlertDingDingGroupResult.cc @@ -35,10 +35,13 @@ ModifyAlertDingDingGroupResult::~ModifyAlertDingDingGroupResult() void ModifyAlertDingDingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Done"].isNull()) done_ = value["Done"].asString() == "true"; diff --git a/emr/src/model/ModifyAlertUserGroupRequest.cc b/emr/src/model/ModifyAlertUserGroupRequest.cc index 2fec9c5ef..366efb707 100644 --- a/emr/src/model/ModifyAlertUserGroupRequest.cc +++ b/emr/src/model/ModifyAlertUserGroupRequest.cc @@ -33,7 +33,7 @@ std::string ModifyAlertUserGroupRequest::getUserList()const void ModifyAlertUserGroupRequest::setUserList(const std::string& userList) { userList_ = userList; - setParameter("UserList", userList); + setCoreParameter("UserList", userList); } long ModifyAlertUserGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyAlertUserGroupRequest::getResourceOwnerId()const void ModifyAlertUserGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyAlertUserGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyAlertUserGroupRequest::getRegionId()const void ModifyAlertUserGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyAlertUserGroupRequest::getBizId()const @@ -66,7 +66,7 @@ std::string ModifyAlertUserGroupRequest::getBizId()const void ModifyAlertUserGroupRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } std::string ModifyAlertUserGroupRequest::getName()const @@ -77,7 +77,7 @@ std::string ModifyAlertUserGroupRequest::getName()const void ModifyAlertUserGroupRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyAlertUserGroupRequest::getDescription()const @@ -88,7 +88,7 @@ std::string ModifyAlertUserGroupRequest::getDescription()const void ModifyAlertUserGroupRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyAlertUserGroupRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ModifyAlertUserGroupRequest::getAccessKeyId()const void ModifyAlertUserGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyAlertUserGroupResult.cc b/emr/src/model/ModifyAlertUserGroupResult.cc index 83fd023aa..0981c076f 100644 --- a/emr/src/model/ModifyAlertUserGroupResult.cc +++ b/emr/src/model/ModifyAlertUserGroupResult.cc @@ -35,10 +35,13 @@ ModifyAlertUserGroupResult::~ModifyAlertUserGroupResult() void ModifyAlertUserGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Done"].isNull()) done_ = value["Done"].asString() == "true"; diff --git a/emr/src/model/ModifyClusterHostGroupRequest.cc b/emr/src/model/ModifyClusterHostGroupRequest.cc index 9f0bb2734..f6c5176bf 100644 --- a/emr/src/model/ModifyClusterHostGroupRequest.cc +++ b/emr/src/model/ModifyClusterHostGroupRequest.cc @@ -33,7 +33,7 @@ std::string ModifyClusterHostGroupRequest::getVswitchId()const void ModifyClusterHostGroupRequest::setVswitchId(const std::string& vswitchId) { vswitchId_ = vswitchId; - setParameter("VswitchId", vswitchId); + setCoreParameter("VswitchId", vswitchId); } long ModifyClusterHostGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyClusterHostGroupRequest::getResourceOwnerId()const void ModifyClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyClusterHostGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyClusterHostGroupRequest::getRegionId()const void ModifyClusterHostGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyClusterHostGroupRequest::getHostGroupId()const @@ -66,7 +66,7 @@ std::string ModifyClusterHostGroupRequest::getHostGroupId()const void ModifyClusterHostGroupRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string ModifyClusterHostGroupRequest::getSecurityGroupId()const @@ -77,7 +77,7 @@ std::string ModifyClusterHostGroupRequest::getSecurityGroupId()const void ModifyClusterHostGroupRequest::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } std::string ModifyClusterHostGroupRequest::getComment()const @@ -88,7 +88,7 @@ std::string ModifyClusterHostGroupRequest::getComment()const void ModifyClusterHostGroupRequest::setComment(const std::string& comment) { comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("Comment", comment); } std::string ModifyClusterHostGroupRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string ModifyClusterHostGroupRequest::getClusterId()const void ModifyClusterHostGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyClusterHostGroupRequest::getHostGroupName()const @@ -110,7 +110,7 @@ std::string ModifyClusterHostGroupRequest::getHostGroupName()const void ModifyClusterHostGroupRequest::setHostGroupName(const std::string& hostGroupName) { hostGroupName_ = hostGroupName; - setParameter("HostGroupName", hostGroupName); + setCoreParameter("HostGroupName", hostGroupName); } std::string ModifyClusterHostGroupRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ModifyClusterHostGroupRequest::getAccessKeyId()const void ModifyClusterHostGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyClusterHostGroupResult.cc b/emr/src/model/ModifyClusterHostGroupResult.cc index 64a85352a..7b220f0d8 100644 --- a/emr/src/model/ModifyClusterHostGroupResult.cc +++ b/emr/src/model/ModifyClusterHostGroupResult.cc @@ -35,10 +35,13 @@ ModifyClusterHostGroupResult::~ModifyClusterHostGroupResult() void ModifyClusterHostGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyClusterNameRequest.cc b/emr/src/model/ModifyClusterNameRequest.cc index 3fa9cd275..35160d39f 100644 --- a/emr/src/model/ModifyClusterNameRequest.cc +++ b/emr/src/model/ModifyClusterNameRequest.cc @@ -33,7 +33,7 @@ long ModifyClusterNameRequest::getResourceOwnerId()const void ModifyClusterNameRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyClusterNameRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyClusterNameRequest::getRegionId()const void ModifyClusterNameRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyClusterNameRequest::getName()const @@ -55,7 +55,7 @@ std::string ModifyClusterNameRequest::getName()const void ModifyClusterNameRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyClusterNameRequest::getId()const @@ -66,7 +66,7 @@ std::string ModifyClusterNameRequest::getId()const void ModifyClusterNameRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyClusterNameRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifyClusterNameRequest::getAccessKeyId()const void ModifyClusterNameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyClusterNameResult.cc b/emr/src/model/ModifyClusterNameResult.cc index af8f6b7ea..1bb1ec7a2 100644 --- a/emr/src/model/ModifyClusterNameResult.cc +++ b/emr/src/model/ModifyClusterNameResult.cc @@ -35,10 +35,13 @@ ModifyClusterNameResult::~ModifyClusterNameResult() void ModifyClusterNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyClusterServiceConfigForAdminRequest.cc b/emr/src/model/ModifyClusterServiceConfigForAdminRequest.cc new file mode 100644 index 000000000..1f2243d4e --- /dev/null +++ b/emr/src/model/ModifyClusterServiceConfigForAdminRequest.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ModifyClusterServiceConfigForAdminRequest; + +ModifyClusterServiceConfigForAdminRequest::ModifyClusterServiceConfigForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "ModifyClusterServiceConfigForAdmin") +{} + +ModifyClusterServiceConfigForAdminRequest::~ModifyClusterServiceConfigForAdminRequest() +{} + +bool ModifyClusterServiceConfigForAdminRequest::getRefreshHostConfig()const +{ + return refreshHostConfig_; +} + +void ModifyClusterServiceConfigForAdminRequest::setRefreshHostConfig(bool refreshHostConfig) +{ + refreshHostConfig_ = refreshHostConfig; + setCoreParameter("RefreshHostConfig", refreshHostConfig ? "true" : "false"); +} + +long ModifyClusterServiceConfigForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyClusterServiceConfigForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getConfigType()const +{ + return configType_; +} + +void ModifyClusterServiceConfigForAdminRequest::setConfigType(const std::string& configType) +{ + configType_ = configType; + setCoreParameter("ConfigType", configType); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getHostInstanceId()const +{ + return hostInstanceId_; +} + +void ModifyClusterServiceConfigForAdminRequest::setHostInstanceId(const std::string& hostInstanceId) +{ + hostInstanceId_ = hostInstanceId; + setCoreParameter("HostInstanceId", hostInstanceId); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getAuthor()const +{ + return author_; +} + +void ModifyClusterServiceConfigForAdminRequest::setAuthor(const std::string& author) +{ + author_ = author; + setCoreParameter("Author", author); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getGroupId()const +{ + return groupId_; +} + +void ModifyClusterServiceConfigForAdminRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void ModifyClusterServiceConfigForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getUserId()const +{ + return userId_; +} + +void ModifyClusterServiceConfigForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyClusterServiceConfigForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getCustomConfigParams()const +{ + return customConfigParams_; +} + +void ModifyClusterServiceConfigForAdminRequest::setCustomConfigParams(const std::string& customConfigParams) +{ + customConfigParams_ = customConfigParams; + setCoreParameter("CustomConfigParams", customConfigParams); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyClusterServiceConfigForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getServiceName()const +{ + return serviceName_; +} + +void ModifyClusterServiceConfigForAdminRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getComment()const +{ + return comment_; +} + +void ModifyClusterServiceConfigForAdminRequest::setComment(const std::string& comment) +{ + comment_ = comment; + setCoreParameter("Comment", comment); +} + +std::vector ModifyClusterServiceConfigForAdminRequest::getGatewayClusterIdList()const +{ + return gatewayClusterIdList_; +} + +void ModifyClusterServiceConfigForAdminRequest::setGatewayClusterIdList(const std::vector& gatewayClusterIdList) +{ + gatewayClusterIdList_ = gatewayClusterIdList; + for(int i = 0; i!= gatewayClusterIdList.size(); i++) + setCoreParameter("GatewayClusterIdList."+ std::to_string(i), gatewayClusterIdList.at(i)); +} + +std::string ModifyClusterServiceConfigForAdminRequest::getConfigParams()const +{ + return configParams_; +} + +void ModifyClusterServiceConfigForAdminRequest::setConfigParams(const std::string& configParams) +{ + configParams_ = configParams; + setCoreParameter("ConfigParams", configParams); +} + diff --git a/emr/src/model/ModifyClusterServiceConfigForAdminResult.cc b/emr/src/model/ModifyClusterServiceConfigForAdminResult.cc new file mode 100644 index 000000000..ed5e795e1 --- /dev/null +++ b/emr/src/model/ModifyClusterServiceConfigForAdminResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ModifyClusterServiceConfigForAdminResult::ModifyClusterServiceConfigForAdminResult() : + ServiceResult() +{} + +ModifyClusterServiceConfigForAdminResult::ModifyClusterServiceConfigForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyClusterServiceConfigForAdminResult::~ModifyClusterServiceConfigForAdminResult() +{} + +void ModifyClusterServiceConfigForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/ModifyClusterServiceConfigRequest.cc b/emr/src/model/ModifyClusterServiceConfigRequest.cc index 4c8e50bd0..d0333abe8 100644 --- a/emr/src/model/ModifyClusterServiceConfigRequest.cc +++ b/emr/src/model/ModifyClusterServiceConfigRequest.cc @@ -25,6 +25,17 @@ ModifyClusterServiceConfigRequest::ModifyClusterServiceConfigRequest() : ModifyClusterServiceConfigRequest::~ModifyClusterServiceConfigRequest() {} +bool ModifyClusterServiceConfigRequest::getRefreshHostConfig()const +{ + return refreshHostConfig_; +} + +void ModifyClusterServiceConfigRequest::setRefreshHostConfig(bool refreshHostConfig) +{ + refreshHostConfig_ = refreshHostConfig; + setCoreParameter("RefreshHostConfig", refreshHostConfig ? "true" : "false"); +} + long ModifyClusterServiceConfigRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -33,18 +44,7 @@ long ModifyClusterServiceConfigRequest::getResourceOwnerId()const void ModifyClusterServiceConfigRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifyClusterServiceConfigRequest::getCustomConfigParams()const -{ - return customConfigParams_; -} - -void ModifyClusterServiceConfigRequest::setCustomConfigParams(const std::string& customConfigParams) -{ - customConfigParams_ = customConfigParams; - setParameter("CustomConfigParams", customConfigParams); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyClusterServiceConfigRequest::getConfigType()const @@ -55,7 +55,7 @@ std::string ModifyClusterServiceConfigRequest::getConfigType()const void ModifyClusterServiceConfigRequest::setConfigType(const std::string& configType) { configType_ = configType; - setParameter("ConfigType", configType); + setCoreParameter("ConfigType", configType); } std::string ModifyClusterServiceConfigRequest::getHostInstanceId()const @@ -66,18 +66,7 @@ std::string ModifyClusterServiceConfigRequest::getHostInstanceId()const void ModifyClusterServiceConfigRequest::setHostInstanceId(const std::string& hostInstanceId) { hostInstanceId_ = hostInstanceId; - setParameter("HostInstanceId", hostInstanceId); -} - -std::string ModifyClusterServiceConfigRequest::getRegionId()const -{ - return regionId_; -} - -void ModifyClusterServiceConfigRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("HostInstanceId", hostInstanceId); } std::string ModifyClusterServiceConfigRequest::getGroupId()const @@ -88,29 +77,7 @@ std::string ModifyClusterServiceConfigRequest::getGroupId()const void ModifyClusterServiceConfigRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::string ModifyClusterServiceConfigRequest::getServiceName()const -{ - return serviceName_; -} - -void ModifyClusterServiceConfigRequest::setServiceName(const std::string& serviceName) -{ - serviceName_ = serviceName; - setParameter("ServiceName", serviceName); -} - -std::string ModifyClusterServiceConfigRequest::getComment()const -{ - return comment_; -} - -void ModifyClusterServiceConfigRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("GroupId", groupId); } std::string ModifyClusterServiceConfigRequest::getClusterId()const @@ -121,7 +88,7 @@ std::string ModifyClusterServiceConfigRequest::getClusterId()const void ModifyClusterServiceConfigRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyClusterServiceConfigRequest::getAccessKeyId()const @@ -132,7 +99,63 @@ std::string ModifyClusterServiceConfigRequest::getAccessKeyId()const void ModifyClusterServiceConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyClusterServiceConfigRequest::getCustomConfigParams()const +{ + return customConfigParams_; +} + +void ModifyClusterServiceConfigRequest::setCustomConfigParams(const std::string& customConfigParams) +{ + customConfigParams_ = customConfigParams; + setCoreParameter("CustomConfigParams", customConfigParams); +} + +std::string ModifyClusterServiceConfigRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyClusterServiceConfigRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyClusterServiceConfigRequest::getServiceName()const +{ + return serviceName_; +} + +void ModifyClusterServiceConfigRequest::setServiceName(const std::string& serviceName) +{ + serviceName_ = serviceName; + setCoreParameter("ServiceName", serviceName); +} + +std::string ModifyClusterServiceConfigRequest::getComment()const +{ + return comment_; +} + +void ModifyClusterServiceConfigRequest::setComment(const std::string& comment) +{ + comment_ = comment; + setCoreParameter("Comment", comment); +} + +std::vector ModifyClusterServiceConfigRequest::getGatewayClusterIdList()const +{ + return gatewayClusterIdList_; +} + +void ModifyClusterServiceConfigRequest::setGatewayClusterIdList(const std::vector& gatewayClusterIdList) +{ + gatewayClusterIdList_ = gatewayClusterIdList; + for(int i = 0; i!= gatewayClusterIdList.size(); i++) + setCoreParameter("GatewayClusterIdList."+ std::to_string(i), gatewayClusterIdList.at(i)); } std::string ModifyClusterServiceConfigRequest::getConfigParams()const @@ -143,6 +166,6 @@ std::string ModifyClusterServiceConfigRequest::getConfigParams()const void ModifyClusterServiceConfigRequest::setConfigParams(const std::string& configParams) { configParams_ = configParams; - setParameter("ConfigParams", configParams); + setCoreParameter("ConfigParams", configParams); } diff --git a/emr/src/model/ModifyClusterServiceConfigResult.cc b/emr/src/model/ModifyClusterServiceConfigResult.cc index 5abb0caaf..3d8130d2b 100644 --- a/emr/src/model/ModifyClusterServiceConfigResult.cc +++ b/emr/src/model/ModifyClusterServiceConfigResult.cc @@ -35,10 +35,13 @@ ModifyClusterServiceConfigResult::~ModifyClusterServiceConfigResult() void ModifyClusterServiceConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyClusterTemplateRequest.cc b/emr/src/model/ModifyClusterTemplateRequest.cc index 00ba0f704..e3e32bf79 100644 --- a/emr/src/model/ModifyClusterTemplateRequest.cc +++ b/emr/src/model/ModifyClusterTemplateRequest.cc @@ -33,7 +33,7 @@ long ModifyClusterTemplateRequest::getResourceOwnerId()const void ModifyClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyClusterTemplateRequest::getLogPath()const @@ -44,7 +44,7 @@ std::string ModifyClusterTemplateRequest::getLogPath()const void ModifyClusterTemplateRequest::setLogPath(const std::string& logPath) { logPath_ = logPath; - setParameter("LogPath", logPath); + setCoreParameter("LogPath", logPath); } std::string ModifyClusterTemplateRequest::getMasterPwd()const @@ -55,7 +55,7 @@ std::string ModifyClusterTemplateRequest::getMasterPwd()const void ModifyClusterTemplateRequest::setMasterPwd(const std::string& masterPwd) { masterPwd_ = masterPwd; - setParameter("MasterPwd", masterPwd); + setCoreParameter("MasterPwd", masterPwd); } std::string ModifyClusterTemplateRequest::getConfigurations()const @@ -66,7 +66,7 @@ std::string ModifyClusterTemplateRequest::getConfigurations()const void ModifyClusterTemplateRequest::setConfigurations(const std::string& configurations) { configurations_ = configurations; - setParameter("Configurations", configurations); + setCoreParameter("Configurations", configurations); } bool ModifyClusterTemplateRequest::getIoOptimized()const @@ -77,7 +77,7 @@ bool ModifyClusterTemplateRequest::getIoOptimized()const void ModifyClusterTemplateRequest::setIoOptimized(bool ioOptimized) { ioOptimized_ = ioOptimized; - setParameter("IoOptimized", std::to_string(ioOptimized)); + setCoreParameter("IoOptimized", ioOptimized ? "true" : "false"); } std::string ModifyClusterTemplateRequest::getSecurityGroupId()const @@ -88,7 +88,7 @@ std::string ModifyClusterTemplateRequest::getSecurityGroupId()const void ModifyClusterTemplateRequest::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } bool ModifyClusterTemplateRequest::getSshEnable()const @@ -99,7 +99,7 @@ bool ModifyClusterTemplateRequest::getSshEnable()const void ModifyClusterTemplateRequest::setSshEnable(bool sshEnable) { sshEnable_ = sshEnable; - setParameter("SshEnable", std::to_string(sshEnable)); + setCoreParameter("SshEnable", sshEnable ? "true" : "false"); } bool ModifyClusterTemplateRequest::getEasEnable()const @@ -110,7 +110,29 @@ bool ModifyClusterTemplateRequest::getEasEnable()const void ModifyClusterTemplateRequest::setEasEnable(bool easEnable) { easEnable_ = easEnable; - setParameter("EasEnable", std::to_string(easEnable)); + setCoreParameter("EasEnable", easEnable ? "true" : "false"); +} + +std::string ModifyClusterTemplateRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void ModifyClusterTemplateRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setCoreParameter("KeyPairName", keyPairName); +} + +std::string ModifyClusterTemplateRequest::getMetaStoreType()const +{ + return metaStoreType_; +} + +void ModifyClusterTemplateRequest::setMetaStoreType(const std::string& metaStoreType) +{ + metaStoreType_ = metaStoreType; + setCoreParameter("MetaStoreType", metaStoreType); } std::string ModifyClusterTemplateRequest::getSecurityGroupName()const @@ -121,7 +143,7 @@ std::string ModifyClusterTemplateRequest::getSecurityGroupName()const void ModifyClusterTemplateRequest::setSecurityGroupName(const std::string& securityGroupName) { securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); + setCoreParameter("SecurityGroupName", securityGroupName); } std::string ModifyClusterTemplateRequest::getDepositType()const @@ -132,7 +154,7 @@ std::string ModifyClusterTemplateRequest::getDepositType()const void ModifyClusterTemplateRequest::setDepositType(const std::string& depositType) { depositType_ = depositType; - setParameter("DepositType", depositType); + setCoreParameter("DepositType", depositType); } std::string ModifyClusterTemplateRequest::getAccessKeyId()const @@ -143,7 +165,7 @@ std::string ModifyClusterTemplateRequest::getAccessKeyId()const void ModifyClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyClusterTemplateRequest::getMachineType()const @@ -154,7 +176,7 @@ std::string ModifyClusterTemplateRequest::getMachineType()const void ModifyClusterTemplateRequest::setMachineType(const std::string& machineType) { machineType_ = machineType; - setParameter("MachineType", machineType); + setCoreParameter("MachineType", machineType); } std::vector ModifyClusterTemplateRequest::getBootstrapAction()const @@ -169,9 +191,9 @@ void ModifyClusterTemplateRequest::setBootstrapAction(const std::vector ModifyClusterTemplateRequest::getOptionSoftWareList()const @@ -305,7 +338,7 @@ void ModifyClusterTemplateRequest::setOptionSoftWareList(const std::vector ModifyClusterTemplateRequest::getHostGroup()const @@ -353,24 +386,24 @@ void ModifyClusterTemplateRequest::setHostGroup(const std::vector& ho for(int i = 0; i!= hostGroup.size(); i++) { auto obj = hostGroup.at(i); std::string str ="HostGroup."+ std::to_string(i); - setParameter(str + ".Period", std::to_string(obj.period)); - setParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); - setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); - setParameter(str + ".SysDiskType", obj.sysDiskType); - setParameter(str + ".ClusterId", obj.clusterId); - setParameter(str + ".DiskType", obj.diskType); - setParameter(str + ".HostGroupName", obj.hostGroupName); - setParameter(str + ".VSwitchId", obj.vSwitchId); - setParameter(str + ".DiskCount", std::to_string(obj.diskCount)); - setParameter(str + ".AutoRenew", std::to_string(obj.autoRenew)); - setParameter(str + ".HostGroupId", obj.hostGroupId); - setParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); - setParameter(str + ".InstanceType", obj.instanceType); - setParameter(str + ".Comment", obj.comment); - setParameter(str + ".ChargeType", obj.chargeType); - setParameter(str + ".MultiInstanceTypes", obj.multiInstanceTypes); - setParameter(str + ".CreateType", obj.createType); - setParameter(str + ".HostGroupType", obj.hostGroupType); + setCoreParameter(str + ".Period", std::to_string(obj.period)); + setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); + setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); + setCoreParameter(str + ".SysDiskType", obj.sysDiskType); + setCoreParameter(str + ".ClusterId", obj.clusterId); + setCoreParameter(str + ".DiskType", obj.diskType); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + setCoreParameter(str + ".VSwitchId", obj.vSwitchId); + setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount)); + setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false"); + setCoreParameter(str + ".HostGroupId", obj.hostGroupId); + setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); + setCoreParameter(str + ".InstanceType", obj.instanceType); + setCoreParameter(str + ".Comment", obj.comment); + setCoreParameter(str + ".ChargeType", obj.chargeType); + setCoreParameter(str + ".MultiInstanceTypes", obj.multiInstanceTypes); + setCoreParameter(str + ".CreateType", obj.createType); + setCoreParameter(str + ".HostGroupType", obj.hostGroupType); } } @@ -382,7 +415,7 @@ std::string ModifyClusterTemplateRequest::getZoneId()const void ModifyClusterTemplateRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string ModifyClusterTemplateRequest::getChargeType()const @@ -393,7 +426,7 @@ std::string ModifyClusterTemplateRequest::getChargeType()const void ModifyClusterTemplateRequest::setChargeType(const std::string& chargeType) { chargeType_ = chargeType; - setParameter("ChargeType", chargeType); + setCoreParameter("ChargeType", chargeType); } bool ModifyClusterTemplateRequest::getUseCustomHiveMetaDb()const @@ -404,7 +437,7 @@ bool ModifyClusterTemplateRequest::getUseCustomHiveMetaDb()const void ModifyClusterTemplateRequest::setUseCustomHiveMetaDb(bool useCustomHiveMetaDb) { useCustomHiveMetaDb_ = useCustomHiveMetaDb; - setParameter("UseCustomHiveMetaDb", std::to_string(useCustomHiveMetaDb)); + setCoreParameter("UseCustomHiveMetaDb", useCustomHiveMetaDb ? "true" : "false"); } std::vector ModifyClusterTemplateRequest::getConfig()const @@ -419,12 +452,12 @@ void ModifyClusterTemplateRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".FileName", obj.fileName); - setParameter(str + ".Encrypt", obj.encrypt); - setParameter(str + ".Replace", obj.replace); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".ServiceName", obj.serviceName); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".FileName", obj.fileName); + setCoreParameter(str + ".Encrypt", obj.encrypt); + setCoreParameter(str + ".Replace", obj.replace); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".ServiceName", obj.serviceName); } } @@ -436,7 +469,7 @@ bool ModifyClusterTemplateRequest::getHighAvailabilityEnable()const void ModifyClusterTemplateRequest::setHighAvailabilityEnable(bool highAvailabilityEnable) { highAvailabilityEnable_ = highAvailabilityEnable; - setParameter("HighAvailabilityEnable", std::to_string(highAvailabilityEnable)); + setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false"); } bool ModifyClusterTemplateRequest::getInitCustomHiveMetaDb()const @@ -447,6 +480,6 @@ bool ModifyClusterTemplateRequest::getInitCustomHiveMetaDb()const void ModifyClusterTemplateRequest::setInitCustomHiveMetaDb(bool initCustomHiveMetaDb) { initCustomHiveMetaDb_ = initCustomHiveMetaDb; - setParameter("InitCustomHiveMetaDb", std::to_string(initCustomHiveMetaDb)); + setCoreParameter("InitCustomHiveMetaDb", initCustomHiveMetaDb ? "true" : "false"); } diff --git a/emr/src/model/ModifyClusterTemplateResult.cc b/emr/src/model/ModifyClusterTemplateResult.cc index 6a5256c52..030a3d81b 100644 --- a/emr/src/model/ModifyClusterTemplateResult.cc +++ b/emr/src/model/ModifyClusterTemplateResult.cc @@ -35,10 +35,13 @@ ModifyClusterTemplateResult::~ModifyClusterTemplateResult() void ModifyClusterTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterTemplateId"].isNull()) clusterTemplateId_ = value["ClusterTemplateId"].asString(); diff --git a/emr/src/model/ModifyExecutionPlanBasicInfoRequest.cc b/emr/src/model/ModifyExecutionPlanBasicInfoRequest.cc index 487b5725b..8e0704e41 100644 --- a/emr/src/model/ModifyExecutionPlanBasicInfoRequest.cc +++ b/emr/src/model/ModifyExecutionPlanBasicInfoRequest.cc @@ -33,7 +33,7 @@ long ModifyExecutionPlanBasicInfoRequest::getResourceOwnerId()const void ModifyExecutionPlanBasicInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyExecutionPlanBasicInfoRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyExecutionPlanBasicInfoRequest::getRegionId()const void ModifyExecutionPlanBasicInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyExecutionPlanBasicInfoRequest::getName()const @@ -55,7 +55,7 @@ std::string ModifyExecutionPlanBasicInfoRequest::getName()const void ModifyExecutionPlanBasicInfoRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyExecutionPlanBasicInfoRequest::getId()const @@ -66,7 +66,7 @@ std::string ModifyExecutionPlanBasicInfoRequest::getId()const void ModifyExecutionPlanBasicInfoRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyExecutionPlanBasicInfoRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ModifyExecutionPlanBasicInfoRequest::getClusterId()const void ModifyExecutionPlanBasicInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyExecutionPlanBasicInfoRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ModifyExecutionPlanBasicInfoRequest::getAccessKeyId()const void ModifyExecutionPlanBasicInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyExecutionPlanBasicInfoResult.cc b/emr/src/model/ModifyExecutionPlanBasicInfoResult.cc index 4425eca60..1a9b489f5 100644 --- a/emr/src/model/ModifyExecutionPlanBasicInfoResult.cc +++ b/emr/src/model/ModifyExecutionPlanBasicInfoResult.cc @@ -35,10 +35,13 @@ ModifyExecutionPlanBasicInfoResult::~ModifyExecutionPlanBasicInfoResult() void ModifyExecutionPlanBasicInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyExecutionPlanClusterInfoRequest.cc b/emr/src/model/ModifyExecutionPlanClusterInfoRequest.cc index 52e4340b3..f3e1ca273 100644 --- a/emr/src/model/ModifyExecutionPlanClusterInfoRequest.cc +++ b/emr/src/model/ModifyExecutionPlanClusterInfoRequest.cc @@ -33,7 +33,7 @@ long ModifyExecutionPlanClusterInfoRequest::getResourceOwnerId()const void ModifyExecutionPlanClusterInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyExecutionPlanClusterInfoRequest::getLogPath()const @@ -44,7 +44,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getLogPath()const void ModifyExecutionPlanClusterInfoRequest::setLogPath(const std::string& logPath) { logPath_ = logPath; - setParameter("LogPath", logPath); + setCoreParameter("LogPath", logPath); } std::string ModifyExecutionPlanClusterInfoRequest::getClusterName()const @@ -55,7 +55,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getClusterName()const void ModifyExecutionPlanClusterInfoRequest::setClusterName(const std::string& clusterName) { clusterName_ = clusterName; - setParameter("ClusterName", clusterName); + setCoreParameter("ClusterName", clusterName); } std::string ModifyExecutionPlanClusterInfoRequest::getConfigurations()const @@ -66,7 +66,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getConfigurations()const void ModifyExecutionPlanClusterInfoRequest::setConfigurations(const std::string& configurations) { configurations_ = configurations; - setParameter("Configurations", configurations); + setCoreParameter("Configurations", configurations); } bool ModifyExecutionPlanClusterInfoRequest::getIoOptimized()const @@ -77,7 +77,7 @@ bool ModifyExecutionPlanClusterInfoRequest::getIoOptimized()const void ModifyExecutionPlanClusterInfoRequest::setIoOptimized(bool ioOptimized) { ioOptimized_ = ioOptimized; - setParameter("IoOptimized", std::to_string(ioOptimized)); + setCoreParameter("IoOptimized", ioOptimized ? "true" : "false"); } std::string ModifyExecutionPlanClusterInfoRequest::getSecurityGroupId()const @@ -88,7 +88,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getSecurityGroupId()const void ModifyExecutionPlanClusterInfoRequest::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } bool ModifyExecutionPlanClusterInfoRequest::getEasEnable()const @@ -99,7 +99,7 @@ bool ModifyExecutionPlanClusterInfoRequest::getEasEnable()const void ModifyExecutionPlanClusterInfoRequest::setEasEnable(bool easEnable) { easEnable_ = easEnable; - setParameter("EasEnable", std::to_string(easEnable)); + setCoreParameter("EasEnable", easEnable ? "true" : "false"); } bool ModifyExecutionPlanClusterInfoRequest::getCreateClusterOnDemand()const @@ -110,7 +110,7 @@ bool ModifyExecutionPlanClusterInfoRequest::getCreateClusterOnDemand()const void ModifyExecutionPlanClusterInfoRequest::setCreateClusterOnDemand(bool createClusterOnDemand) { createClusterOnDemand_ = createClusterOnDemand; - setParameter("CreateClusterOnDemand", std::to_string(createClusterOnDemand)); + setCoreParameter("CreateClusterOnDemand", createClusterOnDemand ? "true" : "false"); } std::string ModifyExecutionPlanClusterInfoRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getAccessKeyId()const void ModifyExecutionPlanClusterInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::vector ModifyExecutionPlanClusterInfoRequest::getBootstrapAction()const @@ -136,9 +136,9 @@ void ModifyExecutionPlanClusterInfoRequest::setBootstrapAction(const std::vector for(int i = 0; i!= bootstrapAction.size(); i++) { auto obj = bootstrapAction.at(i); std::string str ="BootstrapAction."+ std::to_string(i); - setParameter(str + ".Path", obj.path); - setParameter(str + ".Arg", obj.arg); - setParameter(str + ".Name", obj.name); + setCoreParameter(str + ".Path", obj.path); + setCoreParameter(str + ".Arg", obj.arg); + setCoreParameter(str + ".Name", obj.name); } } @@ -150,7 +150,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getRegionId()const void ModifyExecutionPlanClusterInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool ModifyExecutionPlanClusterInfoRequest::getUseLocalMetaDb()const @@ -161,7 +161,7 @@ bool ModifyExecutionPlanClusterInfoRequest::getUseLocalMetaDb()const void ModifyExecutionPlanClusterInfoRequest::setUseLocalMetaDb(bool useLocalMetaDb) { useLocalMetaDb_ = useLocalMetaDb; - setParameter("UseLocalMetaDb", std::to_string(useLocalMetaDb)); + setCoreParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false"); } std::string ModifyExecutionPlanClusterInfoRequest::getEmrVer()const @@ -172,7 +172,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getEmrVer()const void ModifyExecutionPlanClusterInfoRequest::setEmrVer(const std::string& emrVer) { emrVer_ = emrVer; - setParameter("EmrVer", emrVer); + setCoreParameter("EmrVer", emrVer); } std::string ModifyExecutionPlanClusterInfoRequest::getId()const @@ -183,7 +183,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getId()const void ModifyExecutionPlanClusterInfoRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } bool ModifyExecutionPlanClusterInfoRequest::getIsOpenPublicIp()const @@ -194,7 +194,7 @@ bool ModifyExecutionPlanClusterInfoRequest::getIsOpenPublicIp()const void ModifyExecutionPlanClusterInfoRequest::setIsOpenPublicIp(bool isOpenPublicIp) { isOpenPublicIp_ = isOpenPublicIp; - setParameter("IsOpenPublicIp", std::to_string(isOpenPublicIp)); + setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false"); } std::string ModifyExecutionPlanClusterInfoRequest::getClusterId()const @@ -205,7 +205,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getClusterId()const void ModifyExecutionPlanClusterInfoRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyExecutionPlanClusterInfoRequest::getInstanceGeneration()const @@ -216,7 +216,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getInstanceGeneration()const void ModifyExecutionPlanClusterInfoRequest::setInstanceGeneration(const std::string& instanceGeneration) { instanceGeneration_ = instanceGeneration; - setParameter("InstanceGeneration", instanceGeneration); + setCoreParameter("InstanceGeneration", instanceGeneration); } std::string ModifyExecutionPlanClusterInfoRequest::getClusterType()const @@ -227,7 +227,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getClusterType()const void ModifyExecutionPlanClusterInfoRequest::setClusterType(const std::string& clusterType) { clusterType_ = clusterType; - setParameter("ClusterType", clusterType); + setCoreParameter("ClusterType", clusterType); } std::string ModifyExecutionPlanClusterInfoRequest::getVSwitchId()const @@ -238,7 +238,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getVSwitchId()const void ModifyExecutionPlanClusterInfoRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::vector ModifyExecutionPlanClusterInfoRequest::getOptionSoftWareList()const @@ -250,7 +250,7 @@ void ModifyExecutionPlanClusterInfoRequest::setOptionSoftWareList(const std::vec { optionSoftWareList_ = optionSoftWareList; for(int i = 0; i!= optionSoftWareList.size(); i++) - setParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i)); + setCoreParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i)); } std::string ModifyExecutionPlanClusterInfoRequest::getVpcId()const @@ -261,7 +261,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getVpcId()const void ModifyExecutionPlanClusterInfoRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string ModifyExecutionPlanClusterInfoRequest::getNetType()const @@ -272,7 +272,7 @@ std::string ModifyExecutionPlanClusterInfoRequest::getNetType()const void ModifyExecutionPlanClusterInfoRequest::setNetType(const std::string& netType) { netType_ = netType; - setParameter("NetType", netType); + setCoreParameter("NetType", netType); } std::vector ModifyExecutionPlanClusterInfoRequest::getEcsOrder()const @@ -287,13 +287,13 @@ void ModifyExecutionPlanClusterInfoRequest::setEcsOrder(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyExecutionPlanJobInfoRequest.cc b/emr/src/model/ModifyExecutionPlanJobInfoRequest.cc index 79a23bb41..53a2810a8 100644 --- a/emr/src/model/ModifyExecutionPlanJobInfoRequest.cc +++ b/emr/src/model/ModifyExecutionPlanJobInfoRequest.cc @@ -33,7 +33,7 @@ long ModifyExecutionPlanJobInfoRequest::getResourceOwnerId()const void ModifyExecutionPlanJobInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyExecutionPlanJobInfoRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyExecutionPlanJobInfoRequest::getRegionId()const void ModifyExecutionPlanJobInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyExecutionPlanJobInfoRequest::getId()const @@ -55,7 +55,7 @@ std::string ModifyExecutionPlanJobInfoRequest::getId()const void ModifyExecutionPlanJobInfoRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::vector ModifyExecutionPlanJobInfoRequest::getJobIdList()const @@ -67,7 +67,7 @@ void ModifyExecutionPlanJobInfoRequest::setJobIdList(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyExecutionPlanRequest.cc b/emr/src/model/ModifyExecutionPlanRequest.cc index 95b60ff79..daf138bc8 100644 --- a/emr/src/model/ModifyExecutionPlanRequest.cc +++ b/emr/src/model/ModifyExecutionPlanRequest.cc @@ -33,7 +33,7 @@ long ModifyExecutionPlanRequest::getResourceOwnerId()const void ModifyExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyExecutionPlanRequest::getLogPath()const @@ -44,7 +44,7 @@ std::string ModifyExecutionPlanRequest::getLogPath()const void ModifyExecutionPlanRequest::setLogPath(const std::string& logPath) { logPath_ = logPath; - setParameter("LogPath", logPath); + setCoreParameter("LogPath", logPath); } int ModifyExecutionPlanRequest::getTimeInterval()const @@ -55,7 +55,7 @@ int ModifyExecutionPlanRequest::getTimeInterval()const void ModifyExecutionPlanRequest::setTimeInterval(int timeInterval) { timeInterval_ = timeInterval; - setParameter("TimeInterval", std::to_string(timeInterval)); + setCoreParameter("TimeInterval", std::to_string(timeInterval)); } std::string ModifyExecutionPlanRequest::getClusterName()const @@ -66,7 +66,7 @@ std::string ModifyExecutionPlanRequest::getClusterName()const void ModifyExecutionPlanRequest::setClusterName(const std::string& clusterName) { clusterName_ = clusterName; - setParameter("ClusterName", clusterName); + setCoreParameter("ClusterName", clusterName); } std::string ModifyExecutionPlanRequest::getConfigurations()const @@ -77,7 +77,7 @@ std::string ModifyExecutionPlanRequest::getConfigurations()const void ModifyExecutionPlanRequest::setConfigurations(const std::string& configurations) { configurations_ = configurations; - setParameter("Configurations", configurations); + setCoreParameter("Configurations", configurations); } bool ModifyExecutionPlanRequest::getIoOptimized()const @@ -88,7 +88,7 @@ bool ModifyExecutionPlanRequest::getIoOptimized()const void ModifyExecutionPlanRequest::setIoOptimized(bool ioOptimized) { ioOptimized_ = ioOptimized; - setParameter("IoOptimized", std::to_string(ioOptimized)); + setCoreParameter("IoOptimized", ioOptimized ? "true" : "false"); } std::string ModifyExecutionPlanRequest::getSecurityGroupId()const @@ -99,7 +99,7 @@ std::string ModifyExecutionPlanRequest::getSecurityGroupId()const void ModifyExecutionPlanRequest::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } bool ModifyExecutionPlanRequest::getEasEnable()const @@ -110,7 +110,7 @@ bool ModifyExecutionPlanRequest::getEasEnable()const void ModifyExecutionPlanRequest::setEasEnable(bool easEnable) { easEnable_ = easEnable; - setParameter("EasEnable", std::to_string(easEnable)); + setCoreParameter("EasEnable", easEnable ? "true" : "false"); } bool ModifyExecutionPlanRequest::getCreateClusterOnDemand()const @@ -121,7 +121,7 @@ bool ModifyExecutionPlanRequest::getCreateClusterOnDemand()const void ModifyExecutionPlanRequest::setCreateClusterOnDemand(bool createClusterOnDemand) { createClusterOnDemand_ = createClusterOnDemand; - setParameter("CreateClusterOnDemand", std::to_string(createClusterOnDemand)); + setCoreParameter("CreateClusterOnDemand", createClusterOnDemand ? "true" : "false"); } long ModifyExecutionPlanRequest::getStartTime()const @@ -132,7 +132,7 @@ long ModifyExecutionPlanRequest::getStartTime()const void ModifyExecutionPlanRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::vector ModifyExecutionPlanRequest::getJobIdList()const @@ -144,7 +144,7 @@ void ModifyExecutionPlanRequest::setJobIdList(const std::vector& jo { jobIdList_ = jobIdList; for(int i = 0; i!= jobIdList.size(); i++) - setParameter("JobIdList."+ std::to_string(i), jobIdList.at(i)); + setCoreParameter("JobIdList."+ std::to_string(i), jobIdList.at(i)); } std::string ModifyExecutionPlanRequest::getAccessKeyId()const @@ -155,7 +155,7 @@ std::string ModifyExecutionPlanRequest::getAccessKeyId()const void ModifyExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyExecutionPlanRequest::getDayOfMonth()const @@ -166,7 +166,7 @@ std::string ModifyExecutionPlanRequest::getDayOfMonth()const void ModifyExecutionPlanRequest::setDayOfMonth(const std::string& dayOfMonth) { dayOfMonth_ = dayOfMonth; - setParameter("DayOfMonth", dayOfMonth); + setCoreParameter("DayOfMonth", dayOfMonth); } std::vector ModifyExecutionPlanRequest::getBootstrapAction()const @@ -181,9 +181,9 @@ void ModifyExecutionPlanRequest::setBootstrapAction(const std::vector ModifyExecutionPlanRequest::getOptionSoftWareList()const @@ -328,7 +328,7 @@ void ModifyExecutionPlanRequest::setOptionSoftWareList(const std::vector ModifyExecutionPlanRequest::getEcsOrder()const @@ -376,13 +376,13 @@ void ModifyExecutionPlanRequest::setEcsOrder(const std::vector& ecsOrd for(int i = 0; i!= ecsOrder.size(); i++) { auto obj = ecsOrder.at(i); std::string str ="EcsOrder."+ std::to_string(i); - setParameter(str + ".NodeType", obj.nodeType); - setParameter(str + ".DiskCount", std::to_string(obj.diskCount)); - setParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); - setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); - setParameter(str + ".Index", std::to_string(obj.index)); - setParameter(str + ".InstanceType", obj.instanceType); - setParameter(str + ".DiskType", obj.diskType); + setCoreParameter(str + ".NodeType", obj.nodeType); + setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount)); + setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); + setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); + setCoreParameter(str + ".Index", std::to_string(obj.index)); + setCoreParameter(str + ".InstanceType", obj.instanceType); + setCoreParameter(str + ".DiskType", obj.diskType); } } @@ -394,7 +394,7 @@ std::string ModifyExecutionPlanRequest::getName()const void ModifyExecutionPlanRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyExecutionPlanRequest::getZoneId()const @@ -405,7 +405,7 @@ std::string ModifyExecutionPlanRequest::getZoneId()const void ModifyExecutionPlanRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string ModifyExecutionPlanRequest::getDayOfWeek()const @@ -416,7 +416,7 @@ std::string ModifyExecutionPlanRequest::getDayOfWeek()const void ModifyExecutionPlanRequest::setDayOfWeek(const std::string& dayOfWeek) { dayOfWeek_ = dayOfWeek; - setParameter("DayOfWeek", dayOfWeek); + setCoreParameter("DayOfWeek", dayOfWeek); } bool ModifyExecutionPlanRequest::getUseCustomHiveMetaDB()const @@ -427,7 +427,7 @@ bool ModifyExecutionPlanRequest::getUseCustomHiveMetaDB()const void ModifyExecutionPlanRequest::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB) { useCustomHiveMetaDB_ = useCustomHiveMetaDB; - setParameter("UseCustomHiveMetaDB", std::to_string(useCustomHiveMetaDB)); + setCoreParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false"); } std::string ModifyExecutionPlanRequest::getStrategy()const @@ -438,7 +438,7 @@ std::string ModifyExecutionPlanRequest::getStrategy()const void ModifyExecutionPlanRequest::setStrategy(const std::string& strategy) { strategy_ = strategy; - setParameter("Strategy", strategy); + setCoreParameter("Strategy", strategy); } std::vector ModifyExecutionPlanRequest::getConfig()const @@ -453,12 +453,12 @@ void ModifyExecutionPlanRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".FileName", obj.fileName); - setParameter(str + ".Encrypt", obj.encrypt); - setParameter(str + ".Replace", obj.replace); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".ServiceName", obj.serviceName); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".FileName", obj.fileName); + setCoreParameter(str + ".Encrypt", obj.encrypt); + setCoreParameter(str + ".Replace", obj.replace); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".ServiceName", obj.serviceName); } } @@ -470,7 +470,7 @@ bool ModifyExecutionPlanRequest::getHighAvailabilityEnable()const void ModifyExecutionPlanRequest::setHighAvailabilityEnable(bool highAvailabilityEnable) { highAvailabilityEnable_ = highAvailabilityEnable; - setParameter("HighAvailabilityEnable", std::to_string(highAvailabilityEnable)); + setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false"); } bool ModifyExecutionPlanRequest::getInitCustomHiveMetaDB()const @@ -481,7 +481,7 @@ bool ModifyExecutionPlanRequest::getInitCustomHiveMetaDB()const void ModifyExecutionPlanRequest::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB) { initCustomHiveMetaDB_ = initCustomHiveMetaDB; - setParameter("InitCustomHiveMetaDB", std::to_string(initCustomHiveMetaDB)); + setCoreParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false"); } bool ModifyExecutionPlanRequest::getLogEnable()const @@ -492,6 +492,6 @@ bool ModifyExecutionPlanRequest::getLogEnable()const void ModifyExecutionPlanRequest::setLogEnable(bool logEnable) { logEnable_ = logEnable; - setParameter("LogEnable", std::to_string(logEnable)); + setCoreParameter("LogEnable", logEnable ? "true" : "false"); } diff --git a/emr/src/model/ModifyExecutionPlanResult.cc b/emr/src/model/ModifyExecutionPlanResult.cc index 18545fe73..c9632d01f 100644 --- a/emr/src/model/ModifyExecutionPlanResult.cc +++ b/emr/src/model/ModifyExecutionPlanResult.cc @@ -35,10 +35,13 @@ ModifyExecutionPlanResult::~ModifyExecutionPlanResult() void ModifyExecutionPlanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyExecutionPlanScheduleInfoRequest.cc b/emr/src/model/ModifyExecutionPlanScheduleInfoRequest.cc index d7fc96b7c..511bec1c6 100644 --- a/emr/src/model/ModifyExecutionPlanScheduleInfoRequest.cc +++ b/emr/src/model/ModifyExecutionPlanScheduleInfoRequest.cc @@ -33,7 +33,7 @@ long ModifyExecutionPlanScheduleInfoRequest::getResourceOwnerId()const void ModifyExecutionPlanScheduleInfoRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int ModifyExecutionPlanScheduleInfoRequest::getTimeInterval()const @@ -44,7 +44,7 @@ int ModifyExecutionPlanScheduleInfoRequest::getTimeInterval()const void ModifyExecutionPlanScheduleInfoRequest::setTimeInterval(int timeInterval) { timeInterval_ = timeInterval; - setParameter("TimeInterval", std::to_string(timeInterval)); + setCoreParameter("TimeInterval", std::to_string(timeInterval)); } std::string ModifyExecutionPlanScheduleInfoRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyExecutionPlanScheduleInfoRequest::getRegionId()const void ModifyExecutionPlanScheduleInfoRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyExecutionPlanScheduleInfoRequest::getDayOfWeek()const @@ -66,7 +66,7 @@ std::string ModifyExecutionPlanScheduleInfoRequest::getDayOfWeek()const void ModifyExecutionPlanScheduleInfoRequest::setDayOfWeek(const std::string& dayOfWeek) { dayOfWeek_ = dayOfWeek; - setParameter("DayOfWeek", dayOfWeek); + setCoreParameter("DayOfWeek", dayOfWeek); } std::string ModifyExecutionPlanScheduleInfoRequest::getId()const @@ -77,7 +77,7 @@ std::string ModifyExecutionPlanScheduleInfoRequest::getId()const void ModifyExecutionPlanScheduleInfoRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } long ModifyExecutionPlanScheduleInfoRequest::getStartTime()const @@ -88,7 +88,7 @@ long ModifyExecutionPlanScheduleInfoRequest::getStartTime()const void ModifyExecutionPlanScheduleInfoRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string ModifyExecutionPlanScheduleInfoRequest::getStrategy()const @@ -99,7 +99,7 @@ std::string ModifyExecutionPlanScheduleInfoRequest::getStrategy()const void ModifyExecutionPlanScheduleInfoRequest::setStrategy(const std::string& strategy) { strategy_ = strategy; - setParameter("Strategy", strategy); + setCoreParameter("Strategy", strategy); } std::string ModifyExecutionPlanScheduleInfoRequest::getTimeUnit()const @@ -110,7 +110,7 @@ std::string ModifyExecutionPlanScheduleInfoRequest::getTimeUnit()const void ModifyExecutionPlanScheduleInfoRequest::setTimeUnit(const std::string& timeUnit) { timeUnit_ = timeUnit; - setParameter("TimeUnit", timeUnit); + setCoreParameter("TimeUnit", timeUnit); } std::string ModifyExecutionPlanScheduleInfoRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ModifyExecutionPlanScheduleInfoRequest::getAccessKeyId()const void ModifyExecutionPlanScheduleInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyExecutionPlanScheduleInfoRequest::getDayOfMonth()const @@ -132,6 +132,6 @@ std::string ModifyExecutionPlanScheduleInfoRequest::getDayOfMonth()const void ModifyExecutionPlanScheduleInfoRequest::setDayOfMonth(const std::string& dayOfMonth) { dayOfMonth_ = dayOfMonth; - setParameter("DayOfMonth", dayOfMonth); + setCoreParameter("DayOfMonth", dayOfMonth); } diff --git a/emr/src/model/ModifyExecutionPlanScheduleInfoResult.cc b/emr/src/model/ModifyExecutionPlanScheduleInfoResult.cc index a04aa011c..39cced3d7 100644 --- a/emr/src/model/ModifyExecutionPlanScheduleInfoResult.cc +++ b/emr/src/model/ModifyExecutionPlanScheduleInfoResult.cc @@ -35,10 +35,13 @@ ModifyExecutionPlanScheduleInfoResult::~ModifyExecutionPlanScheduleInfoResult() void ModifyExecutionPlanScheduleInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyFlowCategoryRequest.cc b/emr/src/model/ModifyFlowCategoryRequest.cc index 8a1c34baf..70c3a290f 100644 --- a/emr/src/model/ModifyFlowCategoryRequest.cc +++ b/emr/src/model/ModifyFlowCategoryRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFlowCategoryRequest::getRegionId()const void ModifyFlowCategoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyFlowCategoryRequest::getName()const @@ -44,7 +44,7 @@ std::string ModifyFlowCategoryRequest::getName()const void ModifyFlowCategoryRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyFlowCategoryRequest::getId()const @@ -55,7 +55,7 @@ std::string ModifyFlowCategoryRequest::getId()const void ModifyFlowCategoryRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyFlowCategoryRequest::getProjectId()const @@ -66,7 +66,7 @@ std::string ModifyFlowCategoryRequest::getProjectId()const void ModifyFlowCategoryRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string ModifyFlowCategoryRequest::getParentId()const @@ -77,6 +77,6 @@ std::string ModifyFlowCategoryRequest::getParentId()const void ModifyFlowCategoryRequest::setParentId(const std::string& parentId) { parentId_ = parentId; - setParameter("ParentId", parentId); + setCoreParameter("ParentId", parentId); } diff --git a/emr/src/model/ModifyFlowCategoryResult.cc b/emr/src/model/ModifyFlowCategoryResult.cc index fe2ddb01a..4ab410a27 100644 --- a/emr/src/model/ModifyFlowCategoryResult.cc +++ b/emr/src/model/ModifyFlowCategoryResult.cc @@ -35,10 +35,13 @@ ModifyFlowCategoryResult::~ModifyFlowCategoryResult() void ModifyFlowCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ModifyFlowForWebRequest.cc b/emr/src/model/ModifyFlowForWebRequest.cc index 69f2c439a..c0adf9ab4 100644 --- a/emr/src/model/ModifyFlowForWebRequest.cc +++ b/emr/src/model/ModifyFlowForWebRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFlowForWebRequest::getCronExpr()const void ModifyFlowForWebRequest::setCronExpr(const std::string& cronExpr) { cronExpr_ = cronExpr; - setParameter("CronExpr", cronExpr); + setCoreParameter("CronExpr", cronExpr); } std::string ModifyFlowForWebRequest::getParentFlowList()const @@ -44,7 +44,7 @@ std::string ModifyFlowForWebRequest::getParentFlowList()const void ModifyFlowForWebRequest::setParentFlowList(const std::string& parentFlowList) { parentFlowList_ = parentFlowList; - setParameter("ParentFlowList", parentFlowList); + setCoreParameter("ParentFlowList", parentFlowList); } std::string ModifyFlowForWebRequest::getAlertDingDingGroupBizId()const @@ -55,7 +55,7 @@ std::string ModifyFlowForWebRequest::getAlertDingDingGroupBizId()const void ModifyFlowForWebRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId) { alertDingDingGroupBizId_ = alertDingDingGroupBizId; - setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); + setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); } bool ModifyFlowForWebRequest::getPeriodic()const @@ -66,7 +66,7 @@ bool ModifyFlowForWebRequest::getPeriodic()const void ModifyFlowForWebRequest::setPeriodic(bool periodic) { periodic_ = periodic; - setParameter("Periodic", std::to_string(periodic)); + setCoreParameter("Periodic", periodic ? "true" : "false"); } long ModifyFlowForWebRequest::getStartSchedule()const @@ -77,7 +77,7 @@ long ModifyFlowForWebRequest::getStartSchedule()const void ModifyFlowForWebRequest::setStartSchedule(long startSchedule) { startSchedule_ = startSchedule; - setParameter("StartSchedule", std::to_string(startSchedule)); + setCoreParameter("StartSchedule", std::to_string(startSchedule)); } std::string ModifyFlowForWebRequest::getDescription()const @@ -88,7 +88,7 @@ std::string ModifyFlowForWebRequest::getDescription()const void ModifyFlowForWebRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyFlowForWebRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string ModifyFlowForWebRequest::getClusterId()const void ModifyFlowForWebRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyFlowForWebRequest::getAlertUserGroupBizId()const @@ -110,7 +110,7 @@ std::string ModifyFlowForWebRequest::getAlertUserGroupBizId()const void ModifyFlowForWebRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId) { alertUserGroupBizId_ = alertUserGroupBizId; - setParameter("AlertUserGroupBizId", alertUserGroupBizId); + setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId); } std::string ModifyFlowForWebRequest::getGraph()const @@ -121,7 +121,7 @@ std::string ModifyFlowForWebRequest::getGraph()const void ModifyFlowForWebRequest::setGraph(const std::string& graph) { graph_ = graph; - setParameter("Graph", graph); + setCoreParameter("Graph", graph); } std::string ModifyFlowForWebRequest::getHostName()const @@ -132,7 +132,7 @@ std::string ModifyFlowForWebRequest::getHostName()const void ModifyFlowForWebRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string ModifyFlowForWebRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string ModifyFlowForWebRequest::getRegionId()const void ModifyFlowForWebRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool ModifyFlowForWebRequest::getCreateCluster()const @@ -154,7 +154,7 @@ bool ModifyFlowForWebRequest::getCreateCluster()const void ModifyFlowForWebRequest::setCreateCluster(bool createCluster) { createCluster_ = createCluster; - setParameter("CreateCluster", std::to_string(createCluster)); + setCoreParameter("CreateCluster", createCluster ? "true" : "false"); } std::string ModifyFlowForWebRequest::getName()const @@ -165,7 +165,7 @@ std::string ModifyFlowForWebRequest::getName()const void ModifyFlowForWebRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long ModifyFlowForWebRequest::getEndSchedule()const @@ -176,7 +176,7 @@ long ModifyFlowForWebRequest::getEndSchedule()const void ModifyFlowForWebRequest::setEndSchedule(long endSchedule) { endSchedule_ = endSchedule; - setParameter("EndSchedule", std::to_string(endSchedule)); + setCoreParameter("EndSchedule", std::to_string(endSchedule)); } std::string ModifyFlowForWebRequest::getId()const @@ -187,7 +187,7 @@ std::string ModifyFlowForWebRequest::getId()const void ModifyFlowForWebRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyFlowForWebRequest::getAlertConf()const @@ -198,7 +198,7 @@ std::string ModifyFlowForWebRequest::getAlertConf()const void ModifyFlowForWebRequest::setAlertConf(const std::string& alertConf) { alertConf_ = alertConf; - setParameter("AlertConf", alertConf); + setCoreParameter("AlertConf", alertConf); } std::string ModifyFlowForWebRequest::getProjectId()const @@ -209,7 +209,7 @@ std::string ModifyFlowForWebRequest::getProjectId()const void ModifyFlowForWebRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string ModifyFlowForWebRequest::getStatus()const @@ -220,7 +220,7 @@ std::string ModifyFlowForWebRequest::getStatus()const void ModifyFlowForWebRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } std::string ModifyFlowForWebRequest::getParentCategory()const @@ -231,6 +231,6 @@ std::string ModifyFlowForWebRequest::getParentCategory()const void ModifyFlowForWebRequest::setParentCategory(const std::string& parentCategory) { parentCategory_ = parentCategory; - setParameter("ParentCategory", parentCategory); + setCoreParameter("ParentCategory", parentCategory); } diff --git a/emr/src/model/ModifyFlowForWebResult.cc b/emr/src/model/ModifyFlowForWebResult.cc index f7172496b..0b7ed12f4 100644 --- a/emr/src/model/ModifyFlowForWebResult.cc +++ b/emr/src/model/ModifyFlowForWebResult.cc @@ -35,10 +35,13 @@ ModifyFlowForWebResult::~ModifyFlowForWebResult() void ModifyFlowForWebResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ModifyFlowJobRequest.cc b/emr/src/model/ModifyFlowJobRequest.cc index 8d731da7f..0c9a7615d 100644 --- a/emr/src/model/ModifyFlowJobRequest.cc +++ b/emr/src/model/ModifyFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFlowJobRequest::getRunConf()const void ModifyFlowJobRequest::setRunConf(const std::string& runConf) { runConf_ = runConf; - setParameter("RunConf", runConf); + setCoreParameter("RunConf", runConf); } std::string ModifyFlowJobRequest::getEnvConf()const @@ -44,7 +44,7 @@ std::string ModifyFlowJobRequest::getEnvConf()const void ModifyFlowJobRequest::setEnvConf(const std::string& envConf) { envConf_ = envConf; - setParameter("EnvConf", envConf); + setCoreParameter("EnvConf", envConf); } std::string ModifyFlowJobRequest::getDescription()const @@ -55,7 +55,7 @@ std::string ModifyFlowJobRequest::getDescription()const void ModifyFlowJobRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyFlowJobRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string ModifyFlowJobRequest::getClusterId()const void ModifyFlowJobRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyFlowJobRequest::getParams()const @@ -77,7 +77,7 @@ std::string ModifyFlowJobRequest::getParams()const void ModifyFlowJobRequest::setParams(const std::string& params) { params_ = params; - setParameter("Params", params); + setCoreParameter("Params", params); } std::string ModifyFlowJobRequest::getParamConf()const @@ -88,7 +88,7 @@ std::string ModifyFlowJobRequest::getParamConf()const void ModifyFlowJobRequest::setParamConf(const std::string& paramConf) { paramConf_ = paramConf; - setParameter("ParamConf", paramConf); + setCoreParameter("ParamConf", paramConf); } std::vector ModifyFlowJobRequest::getResourceList()const @@ -103,8 +103,8 @@ void ModifyFlowJobRequest::setResourceList(const std::vector& reso for(int i = 0; i!= resourceList.size(); i++) { auto obj = resourceList.at(i); std::string str ="ResourceList."+ std::to_string(i); - setParameter(str + ".Path", obj.path); - setParameter(str + ".Alias", obj.alias); + setCoreParameter(str + ".Path", obj.path); + setCoreParameter(str + ".Alias", obj.alias); } } @@ -116,7 +116,7 @@ std::string ModifyFlowJobRequest::getFailAct()const void ModifyFlowJobRequest::setFailAct(const std::string& failAct) { failAct_ = failAct; - setParameter("FailAct", failAct); + setCoreParameter("FailAct", failAct); } std::string ModifyFlowJobRequest::getCustomVariables()const @@ -127,7 +127,7 @@ std::string ModifyFlowJobRequest::getCustomVariables()const void ModifyFlowJobRequest::setCustomVariables(const std::string& customVariables) { customVariables_ = customVariables; - setParameter("CustomVariables", customVariables); + setCoreParameter("CustomVariables", customVariables); } std::string ModifyFlowJobRequest::getMode()const @@ -138,7 +138,7 @@ std::string ModifyFlowJobRequest::getMode()const void ModifyFlowJobRequest::setMode(const std::string& mode) { mode_ = mode; - setParameter("Mode", mode); + setCoreParameter("Mode", mode); } long ModifyFlowJobRequest::getRetryInterval()const @@ -149,7 +149,7 @@ long ModifyFlowJobRequest::getRetryInterval()const void ModifyFlowJobRequest::setRetryInterval(long retryInterval) { retryInterval_ = retryInterval; - setParameter("RetryInterval", std::to_string(retryInterval)); + setCoreParameter("RetryInterval", std::to_string(retryInterval)); } std::string ModifyFlowJobRequest::getMonitorConf()const @@ -160,7 +160,7 @@ std::string ModifyFlowJobRequest::getMonitorConf()const void ModifyFlowJobRequest::setMonitorConf(const std::string& monitorConf) { monitorConf_ = monitorConf; - setParameter("MonitorConf", monitorConf); + setCoreParameter("MonitorConf", monitorConf); } std::string ModifyFlowJobRequest::getRegionId()const @@ -171,7 +171,7 @@ std::string ModifyFlowJobRequest::getRegionId()const void ModifyFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyFlowJobRequest::getName()const @@ -182,7 +182,7 @@ std::string ModifyFlowJobRequest::getName()const void ModifyFlowJobRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyFlowJobRequest::getId()const @@ -193,7 +193,7 @@ std::string ModifyFlowJobRequest::getId()const void ModifyFlowJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } int ModifyFlowJobRequest::getMaxRetry()const @@ -204,7 +204,7 @@ int ModifyFlowJobRequest::getMaxRetry()const void ModifyFlowJobRequest::setMaxRetry(int maxRetry) { maxRetry_ = maxRetry; - setParameter("MaxRetry", std::to_string(maxRetry)); + setCoreParameter("MaxRetry", std::to_string(maxRetry)); } std::string ModifyFlowJobRequest::getAlertConf()const @@ -215,7 +215,7 @@ std::string ModifyFlowJobRequest::getAlertConf()const void ModifyFlowJobRequest::setAlertConf(const std::string& alertConf) { alertConf_ = alertConf; - setParameter("AlertConf", alertConf); + setCoreParameter("AlertConf", alertConf); } std::string ModifyFlowJobRequest::getProjectId()const @@ -226,6 +226,6 @@ std::string ModifyFlowJobRequest::getProjectId()const void ModifyFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/ModifyFlowJobResult.cc b/emr/src/model/ModifyFlowJobResult.cc index 31cf2ff97..48bf29079 100644 --- a/emr/src/model/ModifyFlowJobResult.cc +++ b/emr/src/model/ModifyFlowJobResult.cc @@ -35,10 +35,13 @@ ModifyFlowJobResult::~ModifyFlowJobResult() void ModifyFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ModifyFlowProjectClusterSettingRequest.cc b/emr/src/model/ModifyFlowProjectClusterSettingRequest.cc index f68db1ddd..dcf53773f 100644 --- a/emr/src/model/ModifyFlowProjectClusterSettingRequest.cc +++ b/emr/src/model/ModifyFlowProjectClusterSettingRequest.cc @@ -34,7 +34,7 @@ void ModifyFlowProjectClusterSettingRequest::setUserList(const std::vector ModifyFlowProjectClusterSettingRequest::getQueueList()const @@ -46,7 +46,7 @@ void ModifyFlowProjectClusterSettingRequest::setQueueList(const std::vector ModifyFlowProjectClusterSettingRequest::getHostList()const @@ -69,7 +69,7 @@ void ModifyFlowProjectClusterSettingRequest::setHostList(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ModifyFlowProjectRequest.cc b/emr/src/model/ModifyFlowProjectRequest.cc index ee0019356..eb17d6e07 100644 --- a/emr/src/model/ModifyFlowProjectRequest.cc +++ b/emr/src/model/ModifyFlowProjectRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFlowProjectRequest::getRegionId()const void ModifyFlowProjectRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyFlowProjectRequest::getName()const @@ -44,7 +44,7 @@ std::string ModifyFlowProjectRequest::getName()const void ModifyFlowProjectRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyFlowProjectRequest::getDescription()const @@ -55,7 +55,7 @@ std::string ModifyFlowProjectRequest::getDescription()const void ModifyFlowProjectRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyFlowProjectRequest::getProjectId()const @@ -66,6 +66,6 @@ std::string ModifyFlowProjectRequest::getProjectId()const void ModifyFlowProjectRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/ModifyFlowProjectResult.cc b/emr/src/model/ModifyFlowProjectResult.cc index 0ffaa9a04..51a324aa1 100644 --- a/emr/src/model/ModifyFlowProjectResult.cc +++ b/emr/src/model/ModifyFlowProjectResult.cc @@ -35,10 +35,13 @@ ModifyFlowProjectResult::~ModifyFlowProjectResult() void ModifyFlowProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ModifyFlowRequest.cc b/emr/src/model/ModifyFlowRequest.cc index 47d3fae2b..573b4d32f 100644 --- a/emr/src/model/ModifyFlowRequest.cc +++ b/emr/src/model/ModifyFlowRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFlowRequest::getCronExpr()const void ModifyFlowRequest::setCronExpr(const std::string& cronExpr) { cronExpr_ = cronExpr; - setParameter("CronExpr", cronExpr); + setCoreParameter("CronExpr", cronExpr); } std::string ModifyFlowRequest::getParentFlowList()const @@ -44,7 +44,7 @@ std::string ModifyFlowRequest::getParentFlowList()const void ModifyFlowRequest::setParentFlowList(const std::string& parentFlowList) { parentFlowList_ = parentFlowList; - setParameter("ParentFlowList", parentFlowList); + setCoreParameter("ParentFlowList", parentFlowList); } std::string ModifyFlowRequest::getAlertDingDingGroupBizId()const @@ -55,7 +55,7 @@ std::string ModifyFlowRequest::getAlertDingDingGroupBizId()const void ModifyFlowRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId) { alertDingDingGroupBizId_ = alertDingDingGroupBizId; - setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); + setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId); } bool ModifyFlowRequest::getPeriodic()const @@ -66,7 +66,7 @@ bool ModifyFlowRequest::getPeriodic()const void ModifyFlowRequest::setPeriodic(bool periodic) { periodic_ = periodic; - setParameter("Periodic", std::to_string(periodic)); + setCoreParameter("Periodic", periodic ? "true" : "false"); } long ModifyFlowRequest::getStartSchedule()const @@ -77,7 +77,7 @@ long ModifyFlowRequest::getStartSchedule()const void ModifyFlowRequest::setStartSchedule(long startSchedule) { startSchedule_ = startSchedule; - setParameter("StartSchedule", std::to_string(startSchedule)); + setCoreParameter("StartSchedule", std::to_string(startSchedule)); } std::string ModifyFlowRequest::getDescription()const @@ -88,7 +88,7 @@ std::string ModifyFlowRequest::getDescription()const void ModifyFlowRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyFlowRequest::getClusterId()const @@ -99,7 +99,7 @@ std::string ModifyFlowRequest::getClusterId()const void ModifyFlowRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyFlowRequest::getAlertUserGroupBizId()const @@ -110,7 +110,7 @@ std::string ModifyFlowRequest::getAlertUserGroupBizId()const void ModifyFlowRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId) { alertUserGroupBizId_ = alertUserGroupBizId; - setParameter("AlertUserGroupBizId", alertUserGroupBizId); + setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId); } std::string ModifyFlowRequest::getHostName()const @@ -121,7 +121,7 @@ std::string ModifyFlowRequest::getHostName()const void ModifyFlowRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string ModifyFlowRequest::getApplication()const @@ -132,7 +132,7 @@ std::string ModifyFlowRequest::getApplication()const void ModifyFlowRequest::setApplication(const std::string& application) { application_ = application; - setParameter("Application", application); + setCoreParameter("Application", application); } std::string ModifyFlowRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string ModifyFlowRequest::getRegionId()const void ModifyFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool ModifyFlowRequest::getCreateCluster()const @@ -154,7 +154,7 @@ bool ModifyFlowRequest::getCreateCluster()const void ModifyFlowRequest::setCreateCluster(bool createCluster) { createCluster_ = createCluster; - setParameter("CreateCluster", std::to_string(createCluster)); + setCoreParameter("CreateCluster", createCluster ? "true" : "false"); } std::string ModifyFlowRequest::getName()const @@ -165,7 +165,7 @@ std::string ModifyFlowRequest::getName()const void ModifyFlowRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long ModifyFlowRequest::getEndSchedule()const @@ -176,7 +176,7 @@ long ModifyFlowRequest::getEndSchedule()const void ModifyFlowRequest::setEndSchedule(long endSchedule) { endSchedule_ = endSchedule; - setParameter("EndSchedule", std::to_string(endSchedule)); + setCoreParameter("EndSchedule", std::to_string(endSchedule)); } std::string ModifyFlowRequest::getId()const @@ -187,7 +187,7 @@ std::string ModifyFlowRequest::getId()const void ModifyFlowRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyFlowRequest::getAlertConf()const @@ -198,7 +198,7 @@ std::string ModifyFlowRequest::getAlertConf()const void ModifyFlowRequest::setAlertConf(const std::string& alertConf) { alertConf_ = alertConf; - setParameter("AlertConf", alertConf); + setCoreParameter("AlertConf", alertConf); } std::string ModifyFlowRequest::getProjectId()const @@ -209,7 +209,7 @@ std::string ModifyFlowRequest::getProjectId()const void ModifyFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string ModifyFlowRequest::getStatus()const @@ -220,7 +220,7 @@ std::string ModifyFlowRequest::getStatus()const void ModifyFlowRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } std::string ModifyFlowRequest::getParentCategory()const @@ -231,6 +231,6 @@ std::string ModifyFlowRequest::getParentCategory()const void ModifyFlowRequest::setParentCategory(const std::string& parentCategory) { parentCategory_ = parentCategory; - setParameter("ParentCategory", parentCategory); + setCoreParameter("ParentCategory", parentCategory); } diff --git a/emr/src/model/ModifyFlowResult.cc b/emr/src/model/ModifyFlowResult.cc index 184f6d511..67ee3fc83 100644 --- a/emr/src/model/ModifyFlowResult.cc +++ b/emr/src/model/ModifyFlowResult.cc @@ -35,10 +35,13 @@ ModifyFlowResult::~ModifyFlowResult() void ModifyFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ModifyFlowVariableCollectionRequest.cc b/emr/src/model/ModifyFlowVariableCollectionRequest.cc index 6f1c93730..b5eb26630 100644 --- a/emr/src/model/ModifyFlowVariableCollectionRequest.cc +++ b/emr/src/model/ModifyFlowVariableCollectionRequest.cc @@ -33,7 +33,7 @@ std::string ModifyFlowVariableCollectionRequest::getData()const void ModifyFlowVariableCollectionRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string ModifyFlowVariableCollectionRequest::getRegionId()const @@ -44,6 +44,6 @@ std::string ModifyFlowVariableCollectionRequest::getRegionId()const void ModifyFlowVariableCollectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/emr/src/model/ModifyFlowVariableCollectionResult.cc b/emr/src/model/ModifyFlowVariableCollectionResult.cc index 5e8184430..12e17500d 100644 --- a/emr/src/model/ModifyFlowVariableCollectionResult.cc +++ b/emr/src/model/ModifyFlowVariableCollectionResult.cc @@ -35,10 +35,13 @@ ModifyFlowVariableCollectionResult::~ModifyFlowVariableCollectionResult() void ModifyFlowVariableCollectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyHostPoolRequest.cc b/emr/src/model/ModifyHostPoolRequest.cc new file mode 100644 index 000000000..32c601fa7 --- /dev/null +++ b/emr/src/model/ModifyHostPoolRequest.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 + +using AlibabaCloud::Emr::Model::ModifyHostPoolRequest; + +ModifyHostPoolRequest::ModifyHostPoolRequest() : + RpcServiceRequest("emr", "2016-04-08", "ModifyHostPool") +{} + +ModifyHostPoolRequest::~ModifyHostPoolRequest() +{} + +long ModifyHostPoolRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyHostPoolRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyHostPoolRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyHostPoolRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyHostPoolRequest::getName()const +{ + return name_; +} + +void ModifyHostPoolRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string ModifyHostPoolRequest::getBizId()const +{ + return bizId_; +} + +void ModifyHostPoolRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + +std::string ModifyHostPoolRequest::getDescription()const +{ + return description_; +} + +void ModifyHostPoolRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string ModifyHostPoolRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyHostPoolRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ModifyHostPoolResult.cc b/emr/src/model/ModifyHostPoolResult.cc new file mode 100644 index 000000000..f5766d586 --- /dev/null +++ b/emr/src/model/ModifyHostPoolResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ModifyHostPoolResult::ModifyHostPoolResult() : + ServiceResult() +{} + +ModifyHostPoolResult::ModifyHostPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHostPoolResult::~ModifyHostPoolResult() +{} + +void ModifyHostPoolResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + +} + +std::string ModifyHostPoolResult::getBizId()const +{ + return bizId_; +} + diff --git a/emr/src/model/ModifyHpHostRequest.cc b/emr/src/model/ModifyHpHostRequest.cc new file mode 100644 index 000000000..f10a6ec3c --- /dev/null +++ b/emr/src/model/ModifyHpHostRequest.cc @@ -0,0 +1,232 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::ModifyHpHostRequest; + +ModifyHpHostRequest::ModifyHpHostRequest() : + RpcServiceRequest("emr", "2016-04-08", "ModifyHpHost") +{} + +ModifyHpHostRequest::~ModifyHpHostRequest() +{} + +int ModifyHpHostRequest::getCpuCore()const +{ + return cpuCore_; +} + +void ModifyHpHostRequest::setCpuCore(int cpuCore) +{ + cpuCore_ = cpuCore; + setCoreParameter("CpuCore", std::to_string(cpuCore)); +} + +int ModifyHpHostRequest::getMemSize()const +{ + return memSize_; +} + +void ModifyHpHostRequest::setMemSize(int memSize) +{ + memSize_ = memSize; + setCoreParameter("MemSize", std::to_string(memSize)); +} + +long ModifyHpHostRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyHpHostRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyHpHostRequest::getRackInfo()const +{ + return rackInfo_; +} + +void ModifyHpHostRequest::setRackInfo(const std::string& rackInfo) +{ + rackInfo_ = rackInfo; + setCoreParameter("RackInfo", rackInfo); +} + +std::string ModifyHpHostRequest::getRole()const +{ + return role_; +} + +void ModifyHpHostRequest::setRole(const std::string& role) +{ + role_ = role; + setCoreParameter("Role", role); +} + +std::string ModifyHpHostRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ModifyHpHostRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setCoreParameter("SerialNumber", serialNumber); +} + +std::string ModifyHpHostRequest::getHostType()const +{ + return hostType_; +} + +void ModifyHpHostRequest::setHostType(const std::string& hostType) +{ + hostType_ = hostType; + setCoreParameter("HostType", hostType); +} + +std::string ModifyHpHostRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void ModifyHpHostRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setCoreParameter("SecurityGroupId", securityGroupId); +} + +std::vector ModifyHpHostRequest::getHpHostDisk()const +{ + return hpHostDisk_; +} + +void ModifyHpHostRequest::setHpHostDisk(const std::vector& hpHostDisk) +{ + hpHostDisk_ = hpHostDisk; + int i = 0; + for(int i = 0; i!= hpHostDisk.size(); i++) { + auto obj = hpHostDisk.at(i); + std::string str ="HpHostDisk."+ std::to_string(i); + setCoreParameter(str + ".DiskSize", obj.diskSize); + setCoreParameter(str + ".MountPath", obj.mountPath); + setCoreParameter(str + ".DiskDevice", obj.diskDevice); + } +} + +std::string ModifyHpHostRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyHpHostRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyHpHostRequest::getVswitchId()const +{ + return vswitchId_; +} + +void ModifyHpHostRequest::setVswitchId(const std::string& vswitchId) +{ + vswitchId_ = vswitchId; + setCoreParameter("VswitchId", vswitchId); +} + +std::string ModifyHpHostRequest::getHpHostBizId()const +{ + return hpHostBizId_; +} + +void ModifyHpHostRequest::setHpHostBizId(const std::string& hpHostBizId) +{ + hpHostBizId_ = hpHostBizId; + setCoreParameter("HpHostBizId", hpHostBizId); +} + +std::string ModifyHpHostRequest::getExternalKey()const +{ + return externalKey_; +} + +void ModifyHpHostRequest::setExternalKey(const std::string& externalKey) +{ + externalKey_ = externalKey; + setCoreParameter("ExternalKey", externalKey); +} + +std::string ModifyHpHostRequest::getHostName()const +{ + return hostName_; +} + +void ModifyHpHostRequest::setHostName(const std::string& hostName) +{ + hostName_ = hostName; + setCoreParameter("HostName", hostName); +} + +std::string ModifyHpHostRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyHpHostRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyHpHostRequest::getVpcId()const +{ + return vpcId_; +} + +void ModifyHpHostRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string ModifyHpHostRequest::getInnerIp()const +{ + return innerIp_; +} + +void ModifyHpHostRequest::setInnerIp(const std::string& innerIp) +{ + innerIp_ = innerIp; + setCoreParameter("InnerIp", innerIp); +} + +std::string ModifyHpHostRequest::getExternalIp()const +{ + return externalIp_; +} + +void ModifyHpHostRequest::setExternalIp(const std::string& externalIp) +{ + externalIp_ = externalIp; + setCoreParameter("ExternalIp", externalIp); +} + diff --git a/emr/src/model/ModifyHpHostResult.cc b/emr/src/model/ModifyHpHostResult.cc new file mode 100644 index 000000000..f143a4879 --- /dev/null +++ b/emr/src/model/ModifyHpHostResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ModifyHpHostResult::ModifyHpHostResult() : + ServiceResult() +{} + +ModifyHpHostResult::ModifyHpHostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHpHostResult::~ModifyHpHostResult() +{} + +void ModifyHpHostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + +} + +std::string ModifyHpHostResult::getBizId()const +{ + return bizId_; +} + diff --git a/emr/src/model/ModifyJobExecutionPlanFolderRequest.cc b/emr/src/model/ModifyJobExecutionPlanFolderRequest.cc index dcc0366ba..31095948d 100644 --- a/emr/src/model/ModifyJobExecutionPlanFolderRequest.cc +++ b/emr/src/model/ModifyJobExecutionPlanFolderRequest.cc @@ -33,7 +33,7 @@ long ModifyJobExecutionPlanFolderRequest::getResourceOwnerId()const void ModifyJobExecutionPlanFolderRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyJobExecutionPlanFolderRequest::getName()const @@ -44,7 +44,7 @@ std::string ModifyJobExecutionPlanFolderRequest::getName()const void ModifyJobExecutionPlanFolderRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long ModifyJobExecutionPlanFolderRequest::getId()const @@ -55,7 +55,7 @@ long ModifyJobExecutionPlanFolderRequest::getId()const void ModifyJobExecutionPlanFolderRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } long ModifyJobExecutionPlanFolderRequest::getParentId()const @@ -66,7 +66,7 @@ long ModifyJobExecutionPlanFolderRequest::getParentId()const void ModifyJobExecutionPlanFolderRequest::setParentId(long parentId) { parentId_ = parentId; - setParameter("ParentId", std::to_string(parentId)); + setCoreParameter("ParentId", std::to_string(parentId)); } std::string ModifyJobExecutionPlanFolderRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifyJobExecutionPlanFolderRequest::getAccessKeyId()const void ModifyJobExecutionPlanFolderRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyJobExecutionPlanFolderResult.cc b/emr/src/model/ModifyJobExecutionPlanFolderResult.cc index dc2ceaacc..059ae7b80 100644 --- a/emr/src/model/ModifyJobExecutionPlanFolderResult.cc +++ b/emr/src/model/ModifyJobExecutionPlanFolderResult.cc @@ -35,10 +35,13 @@ ModifyJobExecutionPlanFolderResult::~ModifyJobExecutionPlanFolderResult() void ModifyJobExecutionPlanFolderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString(); diff --git a/emr/src/model/ModifyJobExecutionPlanParamRequest.cc b/emr/src/model/ModifyJobExecutionPlanParamRequest.cc index aad11187e..601bd1fb7 100644 --- a/emr/src/model/ModifyJobExecutionPlanParamRequest.cc +++ b/emr/src/model/ModifyJobExecutionPlanParamRequest.cc @@ -33,7 +33,7 @@ long ModifyJobExecutionPlanParamRequest::getResourceOwnerId()const void ModifyJobExecutionPlanParamRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyJobExecutionPlanParamRequest::getParamName()const @@ -44,7 +44,7 @@ std::string ModifyJobExecutionPlanParamRequest::getParamName()const void ModifyJobExecutionPlanParamRequest::setParamName(const std::string& paramName) { paramName_ = paramName; - setParameter("ParamName", paramName); + setCoreParameter("ParamName", paramName); } std::string ModifyJobExecutionPlanParamRequest::getParamValue()const @@ -55,7 +55,7 @@ std::string ModifyJobExecutionPlanParamRequest::getParamValue()const void ModifyJobExecutionPlanParamRequest::setParamValue(const std::string& paramValue) { paramValue_ = paramValue; - setParameter("ParamValue", paramValue); + setCoreParameter("ParamValue", paramValue); } long ModifyJobExecutionPlanParamRequest::getId()const @@ -66,7 +66,7 @@ long ModifyJobExecutionPlanParamRequest::getId()const void ModifyJobExecutionPlanParamRequest::setId(long id) { id_ = id; - setParameter("Id", std::to_string(id)); + setCoreParameter("Id", std::to_string(id)); } std::string ModifyJobExecutionPlanParamRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifyJobExecutionPlanParamRequest::getAccessKeyId()const void ModifyJobExecutionPlanParamRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyJobExecutionPlanParamResult.cc b/emr/src/model/ModifyJobExecutionPlanParamResult.cc index 8a7a6fcb6..930c54c02 100644 --- a/emr/src/model/ModifyJobExecutionPlanParamResult.cc +++ b/emr/src/model/ModifyJobExecutionPlanParamResult.cc @@ -35,10 +35,13 @@ ModifyJobExecutionPlanParamResult::~ModifyJobExecutionPlanParamResult() void ModifyJobExecutionPlanParamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString(); diff --git a/emr/src/model/ModifyJobRequest.cc b/emr/src/model/ModifyJobRequest.cc index e3eefaa72..96f2d5ab3 100644 --- a/emr/src/model/ModifyJobRequest.cc +++ b/emr/src/model/ModifyJobRequest.cc @@ -33,7 +33,7 @@ std::string ModifyJobRequest::getRunParameter()const void ModifyJobRequest::setRunParameter(const std::string& runParameter) { runParameter_ = runParameter; - setParameter("RunParameter", runParameter); + setCoreParameter("RunParameter", runParameter); } int ModifyJobRequest::getRetryInterval()const @@ -44,7 +44,7 @@ int ModifyJobRequest::getRetryInterval()const void ModifyJobRequest::setRetryInterval(int retryInterval) { retryInterval_ = retryInterval; - setParameter("RetryInterval", std::to_string(retryInterval)); + setCoreParameter("RetryInterval", std::to_string(retryInterval)); } long ModifyJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ModifyJobRequest::getResourceOwnerId()const void ModifyJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyJobRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyJobRequest::getRegionId()const void ModifyJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyJobRequest::getName()const @@ -77,7 +77,7 @@ std::string ModifyJobRequest::getName()const void ModifyJobRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyJobRequest::getId()const @@ -88,7 +88,7 @@ std::string ModifyJobRequest::getId()const void ModifyJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyJobRequest::getType()const @@ -99,7 +99,7 @@ std::string ModifyJobRequest::getType()const void ModifyJobRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } int ModifyJobRequest::getMaxRetry()const @@ -110,7 +110,7 @@ int ModifyJobRequest::getMaxRetry()const void ModifyJobRequest::setMaxRetry(int maxRetry) { maxRetry_ = maxRetry; - setParameter("MaxRetry", std::to_string(maxRetry)); + setCoreParameter("MaxRetry", std::to_string(maxRetry)); } std::string ModifyJobRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ModifyJobRequest::getAccessKeyId()const void ModifyJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyJobRequest::getFailAct()const @@ -132,6 +132,6 @@ std::string ModifyJobRequest::getFailAct()const void ModifyJobRequest::setFailAct(const std::string& failAct) { failAct_ = failAct; - setParameter("FailAct", failAct); + setCoreParameter("FailAct", failAct); } diff --git a/emr/src/model/ModifyJobResult.cc b/emr/src/model/ModifyJobResult.cc index b63db3cf7..a98711120 100644 --- a/emr/src/model/ModifyJobResult.cc +++ b/emr/src/model/ModifyJobResult.cc @@ -35,10 +35,13 @@ ModifyJobResult::~ModifyJobResult() void ModifyJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyResourcePoolRequest.cc b/emr/src/model/ModifyResourcePoolRequest.cc index bacd802a3..81118cabe 100644 --- a/emr/src/model/ModifyResourcePoolRequest.cc +++ b/emr/src/model/ModifyResourcePoolRequest.cc @@ -33,7 +33,7 @@ long ModifyResourcePoolRequest::getResourceOwnerId()const void ModifyResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyResourcePoolRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyResourcePoolRequest::getRegionId()const void ModifyResourcePoolRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyResourcePoolRequest::getName()const @@ -55,7 +55,7 @@ std::string ModifyResourcePoolRequest::getName()const void ModifyResourcePoolRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } bool ModifyResourcePoolRequest::getActive()const @@ -66,7 +66,7 @@ bool ModifyResourcePoolRequest::getActive()const void ModifyResourcePoolRequest::setActive(bool active) { active_ = active; - setParameter("Active", std::to_string(active)); + setCoreParameter("Active", active ? "true" : "false"); } std::string ModifyResourcePoolRequest::getId()const @@ -77,7 +77,7 @@ std::string ModifyResourcePoolRequest::getId()const void ModifyResourcePoolRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyResourcePoolRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string ModifyResourcePoolRequest::getClusterId()const void ModifyResourcePoolRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyResourcePoolRequest::getYarnsiteconfig()const @@ -99,7 +99,7 @@ std::string ModifyResourcePoolRequest::getYarnsiteconfig()const void ModifyResourcePoolRequest::setYarnsiteconfig(const std::string& yarnsiteconfig) { yarnsiteconfig_ = yarnsiteconfig; - setParameter("Yarnsiteconfig", yarnsiteconfig); + setCoreParameter("Yarnsiteconfig", yarnsiteconfig); } std::vector ModifyResourcePoolRequest::getConfig()const @@ -114,11 +114,11 @@ void ModifyResourcePoolRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".Note", obj.note); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".Id", obj.id); - setParameter(str + ".Category", obj.category); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".Note", obj.note); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".Id", obj.id); + setCoreParameter(str + ".Category", obj.category); } } @@ -130,6 +130,6 @@ std::string ModifyResourcePoolRequest::getAccessKeyId()const void ModifyResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyResourcePoolResult.cc b/emr/src/model/ModifyResourcePoolResult.cc index f05d60a21..43bce52d0 100644 --- a/emr/src/model/ModifyResourcePoolResult.cc +++ b/emr/src/model/ModifyResourcePoolResult.cc @@ -35,10 +35,13 @@ ModifyResourcePoolResult::~ModifyResourcePoolResult() void ModifyResourcePoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyResourcePoolSchedulerTypeRequest.cc b/emr/src/model/ModifyResourcePoolSchedulerTypeRequest.cc index 540746930..ad1b36a8c 100644 --- a/emr/src/model/ModifyResourcePoolSchedulerTypeRequest.cc +++ b/emr/src/model/ModifyResourcePoolSchedulerTypeRequest.cc @@ -33,7 +33,7 @@ long ModifyResourcePoolSchedulerTypeRequest::getResourceOwnerId()const void ModifyResourcePoolSchedulerTypeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyResourcePoolSchedulerTypeRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyResourcePoolSchedulerTypeRequest::getRegionId()const void ModifyResourcePoolSchedulerTypeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyResourcePoolSchedulerTypeRequest::getSchedulerType()const @@ -55,7 +55,7 @@ std::string ModifyResourcePoolSchedulerTypeRequest::getSchedulerType()const void ModifyResourcePoolSchedulerTypeRequest::setSchedulerType(const std::string& schedulerType) { schedulerType_ = schedulerType; - setParameter("SchedulerType", schedulerType); + setCoreParameter("SchedulerType", schedulerType); } std::string ModifyResourcePoolSchedulerTypeRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string ModifyResourcePoolSchedulerTypeRequest::getClusterId()const void ModifyResourcePoolSchedulerTypeRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyResourcePoolSchedulerTypeRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifyResourcePoolSchedulerTypeRequest::getAccessKeyId()const void ModifyResourcePoolSchedulerTypeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyResourcePoolSchedulerTypeResult.cc b/emr/src/model/ModifyResourcePoolSchedulerTypeResult.cc index db61a2b30..330e0966c 100644 --- a/emr/src/model/ModifyResourcePoolSchedulerTypeResult.cc +++ b/emr/src/model/ModifyResourcePoolSchedulerTypeResult.cc @@ -35,10 +35,13 @@ ModifyResourcePoolSchedulerTypeResult::~ModifyResourcePoolSchedulerTypeResult() void ModifyResourcePoolSchedulerTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyResourceQueueRequest.cc b/emr/src/model/ModifyResourceQueueRequest.cc index 832ffeca3..46d7a0e47 100644 --- a/emr/src/model/ModifyResourceQueueRequest.cc +++ b/emr/src/model/ModifyResourceQueueRequest.cc @@ -33,7 +33,7 @@ long ModifyResourceQueueRequest::getResourceOwnerId()const void ModifyResourceQueueRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long ModifyResourceQueueRequest::getParentQueueId()const @@ -44,7 +44,7 @@ long ModifyResourceQueueRequest::getParentQueueId()const void ModifyResourceQueueRequest::setParentQueueId(long parentQueueId) { parentQueueId_ = parentQueueId; - setParameter("ParentQueueId", std::to_string(parentQueueId)); + setCoreParameter("ParentQueueId", std::to_string(parentQueueId)); } std::string ModifyResourceQueueRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyResourceQueueRequest::getRegionId()const void ModifyResourceQueueRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyResourceQueueRequest::getName()const @@ -66,7 +66,7 @@ std::string ModifyResourceQueueRequest::getName()const void ModifyResourceQueueRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyResourceQueueRequest::getQualifiedName()const @@ -77,7 +77,7 @@ std::string ModifyResourceQueueRequest::getQualifiedName()const void ModifyResourceQueueRequest::setQualifiedName(const std::string& qualifiedName) { qualifiedName_ = qualifiedName; - setParameter("QualifiedName", qualifiedName); + setCoreParameter("QualifiedName", qualifiedName); } long ModifyResourceQueueRequest::getResourcePoolId()const @@ -88,7 +88,7 @@ long ModifyResourceQueueRequest::getResourcePoolId()const void ModifyResourceQueueRequest::setResourcePoolId(long resourcePoolId) { resourcePoolId_ = resourcePoolId; - setParameter("ResourcePoolId", std::to_string(resourcePoolId)); + setCoreParameter("ResourcePoolId", std::to_string(resourcePoolId)); } std::string ModifyResourceQueueRequest::getId()const @@ -99,7 +99,7 @@ std::string ModifyResourceQueueRequest::getId()const void ModifyResourceQueueRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ModifyResourceQueueRequest::getClusterId()const @@ -110,7 +110,7 @@ std::string ModifyResourceQueueRequest::getClusterId()const void ModifyResourceQueueRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } bool ModifyResourceQueueRequest::getLeaf()const @@ -121,7 +121,7 @@ bool ModifyResourceQueueRequest::getLeaf()const void ModifyResourceQueueRequest::setLeaf(bool leaf) { leaf_ = leaf; - setParameter("Leaf", std::to_string(leaf)); + setCoreParameter("Leaf", leaf ? "true" : "false"); } std::vector ModifyResourceQueueRequest::getConfig()const @@ -136,11 +136,11 @@ void ModifyResourceQueueRequest::setConfig(const std::vector& config) for(int i = 0; i!= config.size(); i++) { auto obj = config.at(i); std::string str ="Config."+ std::to_string(i); - setParameter(str + ".ConfigKey", obj.configKey); - setParameter(str + ".Note", obj.note); - setParameter(str + ".ConfigValue", obj.configValue); - setParameter(str + ".Id", std::to_string(obj.id)); - setParameter(str + ".Category", obj.category); + setCoreParameter(str + ".ConfigKey", obj.configKey); + setCoreParameter(str + ".Note", obj.note); + setCoreParameter(str + ".ConfigValue", obj.configValue); + setCoreParameter(str + ".Id", std::to_string(obj.id)); + setCoreParameter(str + ".Category", obj.category); } } @@ -152,6 +152,6 @@ std::string ModifyResourceQueueRequest::getAccessKeyId()const void ModifyResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyResourceQueueResult.cc b/emr/src/model/ModifyResourceQueueResult.cc index de9cf0869..ff123e23a 100644 --- a/emr/src/model/ModifyResourceQueueResult.cc +++ b/emr/src/model/ModifyResourceQueueResult.cc @@ -35,10 +35,13 @@ ModifyResourceQueueResult::~ModifyResourceQueueResult() void ModifyResourceQueueResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ModifyScalingRuleRequest.cc b/emr/src/model/ModifyScalingRuleRequest.cc index bf3340d5c..ca4f00e7a 100644 --- a/emr/src/model/ModifyScalingRuleRequest.cc +++ b/emr/src/model/ModifyScalingRuleRequest.cc @@ -33,7 +33,7 @@ std::string ModifyScalingRuleRequest::getLaunchTime()const void ModifyScalingRuleRequest::setLaunchTime(const std::string& launchTime) { launchTime_ = launchTime; - setParameter("LaunchTime", launchTime); + setCoreParameter("LaunchTime", launchTime); } long ModifyScalingRuleRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyScalingRuleRequest::getResourceOwnerId()const void ModifyScalingRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int ModifyScalingRuleRequest::getAdjustmentValue()const @@ -55,7 +55,7 @@ int ModifyScalingRuleRequest::getAdjustmentValue()const void ModifyScalingRuleRequest::setAdjustmentValue(int adjustmentValue) { adjustmentValue_ = adjustmentValue; - setParameter("AdjustmentValue", std::to_string(adjustmentValue)); + setCoreParameter("AdjustmentValue", std::to_string(adjustmentValue)); } std::string ModifyScalingRuleRequest::getAdjustmentType()const @@ -66,7 +66,7 @@ std::string ModifyScalingRuleRequest::getAdjustmentType()const void ModifyScalingRuleRequest::setAdjustmentType(const std::string& adjustmentType) { adjustmentType_ = adjustmentType; - setParameter("AdjustmentType", adjustmentType); + setCoreParameter("AdjustmentType", adjustmentType); } std::string ModifyScalingRuleRequest::getRuleName()const @@ -77,7 +77,7 @@ std::string ModifyScalingRuleRequest::getRuleName()const void ModifyScalingRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } std::string ModifyScalingRuleRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string ModifyScalingRuleRequest::getClusterId()const void ModifyScalingRuleRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ModifyScalingRuleRequest::getScalingRuleId()const @@ -99,7 +99,7 @@ std::string ModifyScalingRuleRequest::getScalingRuleId()const void ModifyScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId) { scalingRuleId_ = scalingRuleId; - setParameter("ScalingRuleId", scalingRuleId); + setCoreParameter("ScalingRuleId", scalingRuleId); } int ModifyScalingRuleRequest::getLaunchExpirationTime()const @@ -110,7 +110,7 @@ int ModifyScalingRuleRequest::getLaunchExpirationTime()const void ModifyScalingRuleRequest::setLaunchExpirationTime(int launchExpirationTime) { launchExpirationTime_ = launchExpirationTime; - setParameter("LaunchExpirationTime", std::to_string(launchExpirationTime)); + setCoreParameter("LaunchExpirationTime", std::to_string(launchExpirationTime)); } std::string ModifyScalingRuleRequest::getRecurrenceValue()const @@ -121,7 +121,7 @@ std::string ModifyScalingRuleRequest::getRecurrenceValue()const void ModifyScalingRuleRequest::setRecurrenceValue(const std::string& recurrenceValue) { recurrenceValue_ = recurrenceValue; - setParameter("RecurrenceValue", recurrenceValue); + setCoreParameter("RecurrenceValue", recurrenceValue); } std::string ModifyScalingRuleRequest::getRecurrenceEndTime()const @@ -132,7 +132,7 @@ std::string ModifyScalingRuleRequest::getRecurrenceEndTime()const void ModifyScalingRuleRequest::setRecurrenceEndTime(const std::string& recurrenceEndTime) { recurrenceEndTime_ = recurrenceEndTime; - setParameter("RecurrenceEndTime", recurrenceEndTime); + setCoreParameter("RecurrenceEndTime", recurrenceEndTime); } std::vector ModifyScalingRuleRequest::getCloudWatchTrigger()const @@ -147,12 +147,12 @@ void ModifyScalingRuleRequest::setCloudWatchTrigger(const std::vector ModifyScalingRuleRequest::getSchedulerTrigger()const @@ -201,11 +201,11 @@ void ModifyScalingRuleRequest::setSchedulerTrigger(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingRuleId"].isNull()) scalingRuleId_ = value["ScalingRuleId"].asString(); diff --git a/emr/src/model/ModifyScalingTaskGroupRequest.cc b/emr/src/model/ModifyScalingTaskGroupRequest.cc index 3c8237af8..1d00cf6b1 100644 --- a/emr/src/model/ModifyScalingTaskGroupRequest.cc +++ b/emr/src/model/ModifyScalingTaskGroupRequest.cc @@ -33,7 +33,7 @@ long ModifyScalingTaskGroupRequest::getResourceOwnerId()const void ModifyScalingTaskGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyScalingTaskGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyScalingTaskGroupRequest::getRegionId()const void ModifyScalingTaskGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyScalingTaskGroupRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string ModifyScalingTaskGroupRequest::getHostGroupId()const void ModifyScalingTaskGroupRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string ModifyScalingTaskGroupRequest::getActiveRuleCategory()const @@ -66,7 +66,7 @@ std::string ModifyScalingTaskGroupRequest::getActiveRuleCategory()const void ModifyScalingTaskGroupRequest::setActiveRuleCategory(const std::string& activeRuleCategory) { activeRuleCategory_ = activeRuleCategory; - setParameter("ActiveRuleCategory", activeRuleCategory); + setCoreParameter("ActiveRuleCategory", activeRuleCategory); } std::string ModifyScalingTaskGroupRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ModifyScalingTaskGroupRequest::getClusterId()const void ModifyScalingTaskGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } int ModifyScalingTaskGroupRequest::getMinSize()const @@ -88,7 +88,7 @@ int ModifyScalingTaskGroupRequest::getMinSize()const void ModifyScalingTaskGroupRequest::setMinSize(int minSize) { minSize_ = minSize; - setParameter("MinSize", std::to_string(minSize)); + setCoreParameter("MinSize", std::to_string(minSize)); } int ModifyScalingTaskGroupRequest::getMaxSize()const @@ -99,7 +99,7 @@ int ModifyScalingTaskGroupRequest::getMaxSize()const void ModifyScalingTaskGroupRequest::setMaxSize(int maxSize) { maxSize_ = maxSize; - setParameter("MaxSize", std::to_string(maxSize)); + setCoreParameter("MaxSize", std::to_string(maxSize)); } int ModifyScalingTaskGroupRequest::getDefaultCooldown()const @@ -110,7 +110,7 @@ int ModifyScalingTaskGroupRequest::getDefaultCooldown()const void ModifyScalingTaskGroupRequest::setDefaultCooldown(int defaultCooldown) { defaultCooldown_ = defaultCooldown; - setParameter("DefaultCooldown", std::to_string(defaultCooldown)); + setCoreParameter("DefaultCooldown", std::to_string(defaultCooldown)); } std::string ModifyScalingTaskGroupRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ModifyScalingTaskGroupRequest::getAccessKeyId()const void ModifyScalingTaskGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ModifyScalingTaskGroupResult.cc b/emr/src/model/ModifyScalingTaskGroupResult.cc index 988f063da..6bb7e4a2d 100644 --- a/emr/src/model/ModifyScalingTaskGroupResult.cc +++ b/emr/src/model/ModifyScalingTaskGroupResult.cc @@ -35,10 +35,13 @@ ModifyScalingTaskGroupResult::~ModifyScalingTaskGroupResult() void ModifyScalingTaskGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HostGroupId"].isNull()) hostGroupId_ = value["HostGroupId"].asString(); diff --git a/emr/src/model/ModifyUserStatisticsRequest.cc b/emr/src/model/ModifyUserStatisticsRequest.cc index d285dcf33..663849d01 100644 --- a/emr/src/model/ModifyUserStatisticsRequest.cc +++ b/emr/src/model/ModifyUserStatisticsRequest.cc @@ -33,7 +33,7 @@ int ModifyUserStatisticsRequest::getJobMigratedNum()const void ModifyUserStatisticsRequest::setJobMigratedNum(int jobMigratedNum) { jobMigratedNum_ = jobMigratedNum; - setParameter("JobMigratedNum", std::to_string(jobMigratedNum)); + setCoreParameter("JobMigratedNum", std::to_string(jobMigratedNum)); } long ModifyUserStatisticsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyUserStatisticsRequest::getResourceOwnerId()const void ModifyUserStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int ModifyUserStatisticsRequest::getExecutePlanNum()const @@ -55,7 +55,7 @@ int ModifyUserStatisticsRequest::getExecutePlanNum()const void ModifyUserStatisticsRequest::setExecutePlanNum(int executePlanNum) { executePlanNum_ = executePlanNum; - setParameter("ExecutePlanNum", std::to_string(executePlanNum)); + setCoreParameter("ExecutePlanNum", std::to_string(executePlanNum)); } std::string ModifyUserStatisticsRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyUserStatisticsRequest::getRegionId()const void ModifyUserStatisticsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ModifyUserStatisticsRequest::getJobNum()const @@ -77,7 +77,7 @@ int ModifyUserStatisticsRequest::getJobNum()const void ModifyUserStatisticsRequest::setJobNum(int jobNum) { jobNum_ = jobNum; - setParameter("JobNum", std::to_string(jobNum)); + setCoreParameter("JobNum", std::to_string(jobNum)); } int ModifyUserStatisticsRequest::getExecutePlanMigratedNum()const @@ -88,7 +88,7 @@ int ModifyUserStatisticsRequest::getExecutePlanMigratedNum()const void ModifyUserStatisticsRequest::setExecutePlanMigratedNum(int executePlanMigratedNum) { executePlanMigratedNum_ = executePlanMigratedNum; - setParameter("ExecutePlanMigratedNum", std::to_string(executePlanMigratedNum)); + setCoreParameter("ExecutePlanMigratedNum", std::to_string(executePlanMigratedNum)); } int ModifyUserStatisticsRequest::getInteractionJobMigratedNum()const @@ -99,7 +99,7 @@ int ModifyUserStatisticsRequest::getInteractionJobMigratedNum()const void ModifyUserStatisticsRequest::setInteractionJobMigratedNum(int interactionJobMigratedNum) { interactionJobMigratedNum_ = interactionJobMigratedNum; - setParameter("InteractionJobMigratedNum", std::to_string(interactionJobMigratedNum)); + setCoreParameter("InteractionJobMigratedNum", std::to_string(interactionJobMigratedNum)); } std::string ModifyUserStatisticsRequest::getUserId()const @@ -110,7 +110,7 @@ std::string ModifyUserStatisticsRequest::getUserId()const void ModifyUserStatisticsRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string ModifyUserStatisticsRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ModifyUserStatisticsRequest::getAccessKeyId()const void ModifyUserStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int ModifyUserStatisticsRequest::getInteractionJobNum()const @@ -132,6 +132,6 @@ int ModifyUserStatisticsRequest::getInteractionJobNum()const void ModifyUserStatisticsRequest::setInteractionJobNum(int interactionJobNum) { interactionJobNum_ = interactionJobNum; - setParameter("InteractionJobNum", std::to_string(interactionJobNum)); + setCoreParameter("InteractionJobNum", std::to_string(interactionJobNum)); } diff --git a/emr/src/model/ModifyUserStatisticsResult.cc b/emr/src/model/ModifyUserStatisticsResult.cc index d8cc21c3b..613549c05 100644 --- a/emr/src/model/ModifyUserStatisticsResult.cc +++ b/emr/src/model/ModifyUserStatisticsResult.cc @@ -35,10 +35,13 @@ ModifyUserStatisticsResult::~ModifyUserStatisticsResult() void ModifyUserStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/OfflineKafkaBrokerRequest.cc b/emr/src/model/OfflineKafkaBrokerRequest.cc new file mode 100644 index 000000000..b64344bba --- /dev/null +++ b/emr/src/model/OfflineKafkaBrokerRequest.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 + +using AlibabaCloud::Emr::Model::OfflineKafkaBrokerRequest; + +OfflineKafkaBrokerRequest::OfflineKafkaBrokerRequest() : + RpcServiceRequest("emr", "2016-04-08", "OfflineKafkaBroker") +{} + +OfflineKafkaBrokerRequest::~OfflineKafkaBrokerRequest() +{} + +long OfflineKafkaBrokerRequest::getThrottle()const +{ + return throttle_; +} + +void OfflineKafkaBrokerRequest::setThrottle(long throttle) +{ + throttle_ = throttle; + setCoreParameter("Throttle", std::to_string(throttle)); +} + +long OfflineKafkaBrokerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void OfflineKafkaBrokerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string OfflineKafkaBrokerRequest::getRegionId()const +{ + return regionId_; +} + +void OfflineKafkaBrokerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string OfflineKafkaBrokerRequest::getHostId()const +{ + return hostId_; +} + +void OfflineKafkaBrokerRequest::setHostId(const std::string& hostId) +{ + hostId_ = hostId; + setCoreParameter("HostId", hostId); +} + +std::string OfflineKafkaBrokerRequest::getClusterId()const +{ + return clusterId_; +} + +void OfflineKafkaBrokerRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string OfflineKafkaBrokerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void OfflineKafkaBrokerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/OfflineKafkaBrokerResult.cc b/emr/src/model/OfflineKafkaBrokerResult.cc new file mode 100644 index 000000000..477549f1a --- /dev/null +++ b/emr/src/model/OfflineKafkaBrokerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +OfflineKafkaBrokerResult::OfflineKafkaBrokerResult() : + ServiceResult() +{} + +OfflineKafkaBrokerResult::OfflineKafkaBrokerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OfflineKafkaBrokerResult::~OfflineKafkaBrokerResult() +{} + +void OfflineKafkaBrokerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/OperateExistsNodeClusterRequest.cc b/emr/src/model/OperateExistsNodeClusterRequest.cc index a2c3a7092..a29f03862 100644 --- a/emr/src/model/OperateExistsNodeClusterRequest.cc +++ b/emr/src/model/OperateExistsNodeClusterRequest.cc @@ -33,7 +33,7 @@ long OperateExistsNodeClusterRequest::getResourceOwnerId()const void OperateExistsNodeClusterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string OperateExistsNodeClusterRequest::getLogPath()const @@ -44,7 +44,7 @@ std::string OperateExistsNodeClusterRequest::getLogPath()const void OperateExistsNodeClusterRequest::setLogPath(const std::string& logPath) { logPath_ = logPath; - setParameter("LogPath", logPath); + setCoreParameter("LogPath", logPath); } std::vector OperateExistsNodeClusterRequest::getMasterInstanceIdList()const @@ -56,7 +56,7 @@ void OperateExistsNodeClusterRequest::setMasterInstanceIdList(const std::vector< { masterInstanceIdList_ = masterInstanceIdList; for(int i = 0; i!= masterInstanceIdList.size(); i++) - setParameter("MasterInstanceIdList."+ std::to_string(i), masterInstanceIdList.at(i)); + setCoreParameter("MasterInstanceIdList."+ std::to_string(i), masterInstanceIdList.at(i)); } bool OperateExistsNodeClusterRequest::getIoOptimized()const @@ -67,7 +67,7 @@ bool OperateExistsNodeClusterRequest::getIoOptimized()const void OperateExistsNodeClusterRequest::setIoOptimized(bool ioOptimized) { ioOptimized_ = ioOptimized; - setParameter("IoOptimized", std::to_string(ioOptimized)); + setCoreParameter("IoOptimized", ioOptimized ? "true" : "false"); } std::string OperateExistsNodeClusterRequest::getSecurityGroupId()const @@ -78,7 +78,7 @@ std::string OperateExistsNodeClusterRequest::getSecurityGroupId()const void OperateExistsNodeClusterRequest::setSecurityGroupId(const std::string& securityGroupId) { securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); + setCoreParameter("SecurityGroupId", securityGroupId); } bool OperateExistsNodeClusterRequest::getEasEnable()const @@ -89,7 +89,7 @@ bool OperateExistsNodeClusterRequest::getEasEnable()const void OperateExistsNodeClusterRequest::setEasEnable(bool easEnable) { easEnable_ = easEnable; - setParameter("EasEnable", std::to_string(easEnable)); + setCoreParameter("EasEnable", easEnable ? "true" : "false"); } bool OperateExistsNodeClusterRequest::getIsResize()const @@ -100,7 +100,7 @@ bool OperateExistsNodeClusterRequest::getIsResize()const void OperateExistsNodeClusterRequest::setIsResize(bool isResize) { isResize_ = isResize; - setParameter("IsResize", std::to_string(isResize)); + setCoreParameter("IsResize", isResize ? "true" : "false"); } std::string OperateExistsNodeClusterRequest::getDepositType()const @@ -111,7 +111,7 @@ std::string OperateExistsNodeClusterRequest::getDepositType()const void OperateExistsNodeClusterRequest::setDepositType(const std::string& depositType) { depositType_ = depositType; - setParameter("DepositType", depositType); + setCoreParameter("DepositType", depositType); } std::string OperateExistsNodeClusterRequest::getAccessKeyId()const @@ -122,7 +122,7 @@ std::string OperateExistsNodeClusterRequest::getAccessKeyId()const void OperateExistsNodeClusterRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string OperateExistsNodeClusterRequest::getMachineType()const @@ -133,7 +133,7 @@ std::string OperateExistsNodeClusterRequest::getMachineType()const void OperateExistsNodeClusterRequest::setMachineType(const std::string& machineType) { machineType_ = machineType; - setParameter("MachineType", machineType); + setCoreParameter("MachineType", machineType); } std::string OperateExistsNodeClusterRequest::getRegionId()const @@ -144,7 +144,7 @@ std::string OperateExistsNodeClusterRequest::getRegionId()const void OperateExistsNodeClusterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool OperateExistsNodeClusterRequest::getUseLocalMetaDb()const @@ -155,7 +155,7 @@ bool OperateExistsNodeClusterRequest::getUseLocalMetaDb()const void OperateExistsNodeClusterRequest::setUseLocalMetaDb(bool useLocalMetaDb) { useLocalMetaDb_ = useLocalMetaDb; - setParameter("UseLocalMetaDb", std::to_string(useLocalMetaDb)); + setCoreParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false"); } std::string OperateExistsNodeClusterRequest::getEmrVer()const @@ -166,7 +166,7 @@ std::string OperateExistsNodeClusterRequest::getEmrVer()const void OperateExistsNodeClusterRequest::setEmrVer(const std::string& emrVer) { emrVer_ = emrVer; - setParameter("EmrVer", emrVer); + setCoreParameter("EmrVer", emrVer); } int OperateExistsNodeClusterRequest::getPeriod()const @@ -177,7 +177,7 @@ int OperateExistsNodeClusterRequest::getPeriod()const void OperateExistsNodeClusterRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string OperateExistsNodeClusterRequest::getClusterId()const @@ -188,7 +188,7 @@ std::string OperateExistsNodeClusterRequest::getClusterId()const void OperateExistsNodeClusterRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string OperateExistsNodeClusterRequest::getVSwitchId()const @@ -199,7 +199,7 @@ std::string OperateExistsNodeClusterRequest::getVSwitchId()const void OperateExistsNodeClusterRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string OperateExistsNodeClusterRequest::getClusterType()const @@ -210,7 +210,7 @@ std::string OperateExistsNodeClusterRequest::getClusterType()const void OperateExistsNodeClusterRequest::setClusterType(const std::string& clusterType) { clusterType_ = clusterType; - setParameter("ClusterType", clusterType); + setCoreParameter("ClusterType", clusterType); } std::vector OperateExistsNodeClusterRequest::getOptionSoftWareList()const @@ -222,7 +222,7 @@ void OperateExistsNodeClusterRequest::setOptionSoftWareList(const std::vector OperateExistsNodeClusterRequest::getInstanceIdList()const @@ -234,7 +234,7 @@ void OperateExistsNodeClusterRequest::setInstanceIdList(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/emr/src/model/PageListResourceUsersRequest.cc b/emr/src/model/PageListResourceUsersRequest.cc new file mode 100644 index 000000000..f42937c53 --- /dev/null +++ b/emr/src/model/PageListResourceUsersRequest.cc @@ -0,0 +1,247 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::PageListResourceUsersRequest; + +PageListResourceUsersRequest::PageListResourceUsersRequest() : + RpcServiceRequest("emr", "2016-04-08", "PageListResourceUsers") +{} + +PageListResourceUsersRequest::~PageListResourceUsersRequest() +{} + +std::string PageListResourceUsersRequest::getApp_ip()const +{ + return app_ip_; +} + +void PageListResourceUsersRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long PageListResourceUsersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PageListResourceUsersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PageListResourceUsersRequest::getResourceId()const +{ + return resourceId_; +} + +void PageListResourceUsersRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long PageListResourceUsersRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void PageListResourceUsersRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool PageListResourceUsersRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void PageListResourceUsersRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string PageListResourceUsersRequest::getSearchKey()const +{ + return searchKey_; +} + +void PageListResourceUsersRequest::setSearchKey(const std::string& searchKey) +{ + searchKey_ = searchKey; + setCoreParameter("SearchKey", searchKey); +} + +std::string PageListResourceUsersRequest::getCallerBid()const +{ + return callerBid_; +} + +void PageListResourceUsersRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string PageListResourceUsersRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void PageListResourceUsersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string PageListResourceUsersRequest::getResourceType()const +{ + return resourceType_; +} + +void PageListResourceUsersRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool PageListResourceUsersRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void PageListResourceUsersRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool PageListResourceUsersRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void PageListResourceUsersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string PageListResourceUsersRequest::getCallerType()const +{ + return callerType_; +} + +void PageListResourceUsersRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int PageListResourceUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void PageListResourceUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string PageListResourceUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PageListResourceUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool PageListResourceUsersRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void PageListResourceUsersRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string PageListResourceUsersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void PageListResourceUsersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string PageListResourceUsersRequest::getRegionId()const +{ + return regionId_; +} + +void PageListResourceUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string PageListResourceUsersRequest::getRequestId()const +{ + return requestId_; +} + +void PageListResourceUsersRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +int PageListResourceUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void PageListResourceUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long PageListResourceUsersRequest::getCallerUid()const +{ + return callerUid_; +} + +void PageListResourceUsersRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/PageListResourceUsersResult.cc b/emr/src/model/PageListResourceUsersResult.cc new file mode 100644 index 000000000..43eeb6825 --- /dev/null +++ b/emr/src/model/PageListResourceUsersResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +PageListResourceUsersResult::PageListResourceUsersResult() : + ServiceResult() +{} + +PageListResourceUsersResult::PageListResourceUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageListResourceUsersResult::~PageListResourceUsersResult() +{} + +void PageListResourceUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["AliyunUserId"].isNull()) + itemsObject.aliyunUserId = value["AliyunUserId"].asString(); + if(!value["UserName"].isNull()) + itemsObject.userName = value["UserName"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + itemsObject.gmtCreate = std::stol(value["GmtCreate"].asString()); + if(!value["KnoxSyncStatus"].isNull()) + itemsObject.knoxSyncStatus = value["KnoxSyncStatus"].asString(); + if(!value["LinuxSyncStatus"].isNull()) + itemsObject.linuxSyncStatus = value["LinuxSyncStatus"].asString(); + if(!value["KerberosStutus"].isNull()) + itemsObject.kerberosStutus = value["KerberosStutus"].asString(); + if(!value["SourceType"].isNull()) + itemsObject.sourceType = value["SourceType"].asString(); + auto allRoleDTOList = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList) + { + Item::RoleDTO roleDTOListObject; + if(!value["Id"].isNull()) + roleDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOListObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOListObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOListObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOListObject.description = value["Description"].asString(); + itemsObject.roleDTOList.push_back(roleDTOListObject); + } + items_.push_back(itemsObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int PageListResourceUsersResult::getTotalCount()const +{ + return totalCount_; +} + +int PageListResourceUsersResult::getPageSize()const +{ + return pageSize_; +} + +int PageListResourceUsersResult::getPageNumber()const +{ + return pageNumber_; +} + +bool PageListResourceUsersResult::getPaging()const +{ + return paging_; +} + +std::vector PageListResourceUsersResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/PageListUserGroupsRequest.cc b/emr/src/model/PageListUserGroupsRequest.cc new file mode 100644 index 000000000..78f94d066 --- /dev/null +++ b/emr/src/model/PageListUserGroupsRequest.cc @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::PageListUserGroupsRequest; + +PageListUserGroupsRequest::PageListUserGroupsRequest() : + RpcServiceRequest("emr", "2016-04-08", "PageListUserGroups") +{} + +PageListUserGroupsRequest::~PageListUserGroupsRequest() +{} + +std::string PageListUserGroupsRequest::getApp_ip()const +{ + return app_ip_; +} + +void PageListUserGroupsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long PageListUserGroupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PageListUserGroupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PageListUserGroupsRequest::getFuzzyName()const +{ + return fuzzyName_; +} + +void PageListUserGroupsRequest::setFuzzyName(const std::string& fuzzyName) +{ + fuzzyName_ = fuzzyName; + setCoreParameter("FuzzyName", fuzzyName); +} + +long PageListUserGroupsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void PageListUserGroupsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool PageListUserGroupsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void PageListUserGroupsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string PageListUserGroupsRequest::getCallerBid()const +{ + return callerBid_; +} + +void PageListUserGroupsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string PageListUserGroupsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void PageListUserGroupsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool PageListUserGroupsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void PageListUserGroupsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool PageListUserGroupsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void PageListUserGroupsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string PageListUserGroupsRequest::getCallerType()const +{ + return callerType_; +} + +void PageListUserGroupsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int PageListUserGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void PageListUserGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string PageListUserGroupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PageListUserGroupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool PageListUserGroupsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void PageListUserGroupsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string PageListUserGroupsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void PageListUserGroupsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string PageListUserGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void PageListUserGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string PageListUserGroupsRequest::getRequestId()const +{ + return requestId_; +} + +void PageListUserGroupsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +int PageListUserGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void PageListUserGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long PageListUserGroupsRequest::getCallerUid()const +{ + return callerUid_; +} + +void PageListUserGroupsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/PageListUserGroupsResult.cc b/emr/src/model/PageListUserGroupsResult.cc new file mode 100644 index 000000000..ec8e37f51 --- /dev/null +++ b/emr/src/model/PageListUserGroupsResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +PageListUserGroupsResult::PageListUserGroupsResult() : + ServiceResult() +{} + +PageListUserGroupsResult::PageListUserGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageListUserGroupsResult::~PageListUserGroupsResult() +{} + +void PageListUserGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stol(value["Id"].asString()); + if(!value["Type"].isNull()) + itemsObject.type = value["Type"].asString(); + if(!value["Name"].isNull()) + itemsObject.name = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + itemsObject.gmtCreate = value["GmtCreate"].asString(); + auto allRoleDTOList = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList) + { + Item::RoleDTO roleDTOListObject; + if(!value["Id"].isNull()) + roleDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOListObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOListObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOListObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOListObject.description = value["Description"].asString(); + itemsObject.roleDTOList.push_back(roleDTOListObject); + } + items_.push_back(itemsObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int PageListUserGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +int PageListUserGroupsResult::getPageSize()const +{ + return pageSize_; +} + +int PageListUserGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +bool PageListUserGroupsResult::getPaging()const +{ + return paging_; +} + +std::vector PageListUserGroupsResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/PageListUsersRequest.cc b/emr/src/model/PageListUsersRequest.cc new file mode 100644 index 000000000..0fc8fceea --- /dev/null +++ b/emr/src/model/PageListUsersRequest.cc @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::PageListUsersRequest; + +PageListUsersRequest::PageListUsersRequest() : + RpcServiceRequest("emr", "2016-04-08", "PageListUsers") +{} + +PageListUsersRequest::~PageListUsersRequest() +{} + +std::string PageListUsersRequest::getApp_ip()const +{ + return app_ip_; +} + +void PageListUsersRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long PageListUsersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PageListUsersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PageListUsersRequest::getFuzzyName()const +{ + return fuzzyName_; +} + +void PageListUsersRequest::setFuzzyName(const std::string& fuzzyName) +{ + fuzzyName_ = fuzzyName; + setCoreParameter("FuzzyName", fuzzyName); +} + +long PageListUsersRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void PageListUsersRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool PageListUsersRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void PageListUsersRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string PageListUsersRequest::getCallerBid()const +{ + return callerBid_; +} + +void PageListUsersRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string PageListUsersRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void PageListUsersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool PageListUsersRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void PageListUsersRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool PageListUsersRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void PageListUsersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string PageListUsersRequest::getCallerType()const +{ + return callerType_; +} + +void PageListUsersRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +int PageListUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void PageListUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string PageListUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PageListUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool PageListUsersRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void PageListUsersRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string PageListUsersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void PageListUsersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string PageListUsersRequest::getRegionId()const +{ + return regionId_; +} + +void PageListUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string PageListUsersRequest::getRequestId()const +{ + return requestId_; +} + +void PageListUsersRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +int PageListUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void PageListUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long PageListUsersRequest::getCallerUid()const +{ + return callerUid_; +} + +void PageListUsersRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/PageListUsersResult.cc b/emr/src/model/PageListUsersResult.cc new file mode 100644 index 000000000..4b213e9e5 --- /dev/null +++ b/emr/src/model/PageListUsersResult.cc @@ -0,0 +1,165 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +PageListUsersResult::PageListUsersResult() : + ServiceResult() +{} + +PageListUsersResult::PageListUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageListUsersResult::~PageListUsersResult() +{} + +void PageListUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["AliyunUserId"].isNull()) + itemsObject.aliyunUserId = value["AliyunUserId"].asString(); + if(!value["UserName"].isNull()) + itemsObject.userName = value["UserName"].asString(); + if(!value["UserType"].isNull()) + itemsObject.userType = value["UserType"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = value["Status"].asString(); + if(!value["IsSuperAdmin"].isNull()) + itemsObject.isSuperAdmin = value["IsSuperAdmin"].asString(); + if(!value["Description"].isNull()) + itemsObject.description = value["Description"].asString(); + if(!value["GmtCreate"].isNull()) + itemsObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + itemsObject.gmtModified = value["GmtModified"].asString(); + auto allRoleDTOList = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList) + { + Item::RoleDTO roleDTOListObject; + if(!value["Id"].isNull()) + roleDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOListObject.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOListObject.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOListObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOListObject.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOListObject.description = value["Description"].asString(); + itemsObject.roleDTOList.push_back(roleDTOListObject); + } + auto allGroupDTOList = value["GroupDTOList"]["GroupDTO"]; + for (auto value : allGroupDTOList) + { + Item::GroupDTO groupDTOListObject; + if(!value["Id"].isNull()) + groupDTOListObject.id = std::stol(value["Id"].asString()); + if(!value["Type"].isNull()) + groupDTOListObject.type = value["Type"].asString(); + if(!value["Name"].isNull()) + groupDTOListObject.name = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + groupDTOListObject.gmtCreate = value["GmtCreate"].asString(); + auto allRoleDTOList1 = value["RoleDTOList"]["RoleDTO"]; + for (auto value : allRoleDTOList1) + { + Item::GroupDTO::RoleDTO2 roleDTOList1Object; + if(!value["Id"].isNull()) + roleDTOList1Object.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + roleDTOList1Object.name = value["Name"].asString(); + if(!value["ResourceType"].isNull()) + roleDTOList1Object.resourceType = value["ResourceType"].asString(); + if(!value["GmtCreate"].isNull()) + roleDTOList1Object.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + roleDTOList1Object.gmtModified = value["GmtModified"].asString(); + if(!value["Description"].isNull()) + roleDTOList1Object.description = value["Description"].asString(); + groupDTOListObject.roleDTOList1.push_back(roleDTOList1Object); + } + itemsObject.groupDTOList.push_back(groupDTOListObject); + } + auto allAccountDTOList = value["AccountDTOList"]["AccountDTO"]; + for (auto value : allAccountDTOList) + { + Item::AccountDTO accountDTOListObject; + if(!value["AliyunUserId"].isNull()) + accountDTOListObject.aliyunUserId = value["AliyunUserId"].asString(); + if(!value["AccountType"].isNull()) + accountDTOListObject.accountType = value["AccountType"].asString(); + if(!value["AuthType"].isNull()) + accountDTOListObject.authType = value["AuthType"].asString(); + itemsObject.accountDTOList.push_back(accountDTOListObject); + } + items_.push_back(itemsObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int PageListUsersResult::getTotalCount()const +{ + return totalCount_; +} + +int PageListUsersResult::getPageSize()const +{ + return pageSize_; +} + +int PageListUsersResult::getPageNumber()const +{ + return pageNumber_; +} + +bool PageListUsersResult::getPaging()const +{ + return paging_; +} + +std::vector PageListUsersResult::getItems()const +{ + return items_; +} + diff --git a/emr/src/model/PlanComponentTopoRequest.cc b/emr/src/model/PlanComponentTopoRequest.cc new file mode 100644 index 000000000..7d89cfe67 --- /dev/null +++ b/emr/src/model/PlanComponentTopoRequest.cc @@ -0,0 +1,157 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::PlanComponentTopoRequest; + +PlanComponentTopoRequest::PlanComponentTopoRequest() : + RpcServiceRequest("emr", "2016-04-08", "PlanComponentTopo") +{} + +PlanComponentTopoRequest::~PlanComponentTopoRequest() +{} + +std::string PlanComponentTopoRequest::getClusterType()const +{ + return clusterType_; +} + +void PlanComponentTopoRequest::setClusterType(const std::string& clusterType) +{ + clusterType_ = clusterType; + setCoreParameter("ClusterType", clusterType); +} + +long PlanComponentTopoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PlanComponentTopoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PlanComponentTopoRequest::getRegionId()const +{ + return regionId_; +} + +void PlanComponentTopoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector PlanComponentTopoRequest::getHostGroup()const +{ + return hostGroup_; +} + +void PlanComponentTopoRequest::setHostGroup(const std::vector& hostGroup) +{ + hostGroup_ = hostGroup; + int i = 0; + for(int i = 0; i!= hostGroup.size(); i++) { + auto obj = hostGroup.at(i); + std::string str ="HostGroup."+ std::to_string(i); + setCoreParameter(str + ".GroupType", obj.groupType); + setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); + setCoreParameter(str + ".GroupName", obj.groupName); + } +} + +std::vector PlanComponentTopoRequest::getHostInfo()const +{ + return hostInfo_; +} + +void PlanComponentTopoRequest::setHostInfo(const std::vector& hostInfo) +{ + hostInfo_ = hostInfo; + int i = 0; + for(int i = 0; i!= hostInfo.size(); i++) { + auto obj = hostInfo.at(i); + std::string str ="HostInfo."+ std::to_string(i); + setCoreParameter(str + ".HpHostBizId", obj.hpHostBizId); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + } +} + +std::string PlanComponentTopoRequest::getStackName()const +{ + return stackName_; +} + +void PlanComponentTopoRequest::setStackName(const std::string& stackName) +{ + stackName_ = stackName; + setCoreParameter("StackName", stackName); +} + +std::string PlanComponentTopoRequest::getClusterId()const +{ + return clusterId_; +} + +void PlanComponentTopoRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string PlanComponentTopoRequest::getStackVersion()const +{ + return stackVersion_; +} + +void PlanComponentTopoRequest::setStackVersion(const std::string& stackVersion) +{ + stackVersion_ = stackVersion; + setCoreParameter("StackVersion", stackVersion); +} + +std::vector PlanComponentTopoRequest::getServiceInfo()const +{ + return serviceInfo_; +} + +void PlanComponentTopoRequest::setServiceInfo(const std::vector& serviceInfo) +{ + serviceInfo_ = serviceInfo; + int i = 0; + for(int i = 0; i!= serviceInfo.size(); i++) { + auto obj = serviceInfo.at(i); + std::string str ="ServiceInfo."+ std::to_string(i); + setCoreParameter(str + ".ServiceEcmVersion", obj.serviceEcmVersion); + setCoreParameter(str + ".ServiceVersion", obj.serviceVersion); + setCoreParameter(str + ".ServiceName", obj.serviceName); + } +} + +std::string PlanComponentTopoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PlanComponentTopoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/PlanComponentTopoResult.cc b/emr/src/model/PlanComponentTopoResult.cc new file mode 100644 index 000000000..42a0ddd68 --- /dev/null +++ b/emr/src/model/PlanComponentTopoResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +PlanComponentTopoResult::PlanComponentTopoResult() : + ServiceResult() +{} + +PlanComponentTopoResult::PlanComponentTopoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PlanComponentTopoResult::~PlanComponentTopoResult() +{} + +void PlanComponentTopoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allHostComponentList = value["HostComponentList"]["HostComponent"]; + for (auto value : allHostComponentList) + { + HostComponent hostComponentListObject; + if(!value["ComponentName"].isNull()) + hostComponentListObject.componentName = value["ComponentName"].asString(); + if(!value["ServiceName"].isNull()) + hostComponentListObject.serviceName = value["ServiceName"].asString(); + if(!value["ServiceVersion"].isNull()) + hostComponentListObject.serviceVersion = value["ServiceVersion"].asString(); + if(!value["ServiceEcmVersion"].isNull()) + hostComponentListObject.serviceEcmVersion = value["ServiceEcmVersion"].asString(); + if(!value["ReadOnly"].isNull()) + hostComponentListObject.readOnly = value["ReadOnly"].asString() == "true"; + if(!value["Display"].isNull()) + hostComponentListObject.display = value["Display"].asString() == "true"; + auto allHostNameList = value["HostNameList"]["HostName"]; + for (auto value : allHostNameList) + hostComponentListObject.hostNameList.push_back(value.asString()); + hostComponentList_.push_back(hostComponentListObject); + } + +} + +std::vector PlanComponentTopoResult::getHostComponentList()const +{ + return hostComponentList_; +} + diff --git a/emr/src/model/PlanHostNameRequest.cc b/emr/src/model/PlanHostNameRequest.cc new file mode 100644 index 000000000..0ec515b83 --- /dev/null +++ b/emr/src/model/PlanHostNameRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Emr::Model::PlanHostNameRequest; + +PlanHostNameRequest::PlanHostNameRequest() : + RpcServiceRequest("emr", "2016-04-08", "PlanHostName") +{} + +PlanHostNameRequest::~PlanHostNameRequest() +{} + +long PlanHostNameRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PlanHostNameRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PlanHostNameRequest::getRegionId()const +{ + return regionId_; +} + +void PlanHostNameRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector PlanHostNameRequest::getHostGroup()const +{ + return hostGroup_; +} + +void PlanHostNameRequest::setHostGroup(const std::vector& hostGroup) +{ + hostGroup_ = hostGroup; + int i = 0; + for(int i = 0; i!= hostGroup.size(); i++) { + auto obj = hostGroup.at(i); + std::string str ="HostGroup."+ std::to_string(i); + setCoreParameter(str + ".GroupType", obj.groupType); + setCoreParameter(str + ".GroupName", obj.groupName); + } +} + +std::vector PlanHostNameRequest::getHostInfo()const +{ + return hostInfo_; +} + +void PlanHostNameRequest::setHostInfo(const std::vector& hostInfo) +{ + hostInfo_ = hostInfo; + int i = 0; + for(int i = 0; i!= hostInfo.size(); i++) { + auto obj = hostInfo.at(i); + std::string str ="HostInfo."+ std::to_string(i); + setCoreParameter(str + ".HpHostBizId", obj.hpHostBizId); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + } +} + +std::string PlanHostNameRequest::getClusterId()const +{ + return clusterId_; +} + +void PlanHostNameRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string PlanHostNameRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PlanHostNameRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/PlanHostNameResult.cc b/emr/src/model/PlanHostNameResult.cc new file mode 100644 index 000000000..5b147b534 --- /dev/null +++ b/emr/src/model/PlanHostNameResult.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 +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +PlanHostNameResult::PlanHostNameResult() : + ServiceResult() +{} + +PlanHostNameResult::PlanHostNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PlanHostNameResult::~PlanHostNameResult() +{} + +void PlanHostNameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allHostInfoList = value["HostInfoList"]["HostInfo"]; + for (auto value : allHostInfoList) + { + HostInfo hostInfoListObject; + if(!value["HpHostBizId"].isNull()) + hostInfoListObject.hpHostBizId = value["HpHostBizId"].asString(); + if(!value["HostName"].isNull()) + hostInfoListObject.hostName = value["HostName"].asString(); + hostInfoList_.push_back(hostInfoListObject); + } + +} + +std::vector PlanHostNameResult::getHostInfoList()const +{ + return hostInfoList_; +} + diff --git a/emr/src/model/QueryAlarmHistoryRequest.cc b/emr/src/model/QueryAlarmHistoryRequest.cc index 2c89143d9..542a11df7 100644 --- a/emr/src/model/QueryAlarmHistoryRequest.cc +++ b/emr/src/model/QueryAlarmHistoryRequest.cc @@ -33,7 +33,7 @@ std::string QueryAlarmHistoryRequest::getCursor()const void QueryAlarmHistoryRequest::setCursor(const std::string& cursor) { cursor_ = cursor; - setParameter("Cursor", cursor); + setCoreParameter("Cursor", cursor); } long QueryAlarmHistoryRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryAlarmHistoryRequest::getResourceOwnerId()const void QueryAlarmHistoryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int QueryAlarmHistoryRequest::getSize()const @@ -55,7 +55,7 @@ int QueryAlarmHistoryRequest::getSize()const void QueryAlarmHistoryRequest::setSize(int size) { size_ = size; - setParameter("Size", std::to_string(size)); + setCoreParameter("Size", std::to_string(size)); } std::string QueryAlarmHistoryRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string QueryAlarmHistoryRequest::getRegionId()const void QueryAlarmHistoryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string QueryAlarmHistoryRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string QueryAlarmHistoryRequest::getClusterId()const void QueryAlarmHistoryRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } long QueryAlarmHistoryRequest::getStartTimeStamp()const @@ -88,7 +88,7 @@ long QueryAlarmHistoryRequest::getStartTimeStamp()const void QueryAlarmHistoryRequest::setStartTimeStamp(long startTimeStamp) { startTimeStamp_ = startTimeStamp; - setParameter("StartTimeStamp", std::to_string(startTimeStamp)); + setCoreParameter("StartTimeStamp", std::to_string(startTimeStamp)); } std::string QueryAlarmHistoryRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string QueryAlarmHistoryRequest::getAccessKeyId()const void QueryAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long QueryAlarmHistoryRequest::getEndTimeStamp()const @@ -110,6 +110,6 @@ long QueryAlarmHistoryRequest::getEndTimeStamp()const void QueryAlarmHistoryRequest::setEndTimeStamp(long endTimeStamp) { endTimeStamp_ = endTimeStamp; - setParameter("EndTimeStamp", std::to_string(endTimeStamp)); + setCoreParameter("EndTimeStamp", std::to_string(endTimeStamp)); } diff --git a/emr/src/model/QueryAlarmHistoryResult.cc b/emr/src/model/QueryAlarmHistoryResult.cc index 9d83e39eb..e028d9c82 100644 --- a/emr/src/model/QueryAlarmHistoryResult.cc +++ b/emr/src/model/QueryAlarmHistoryResult.cc @@ -35,10 +35,13 @@ QueryAlarmHistoryResult::~QueryAlarmHistoryResult() void QueryAlarmHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlarmHistoryList = value["AlarmHistoryList"]["EmrAlarmHistory"]; for (auto value : allAlarmHistoryList) diff --git a/emr/src/model/QueryAlarmRulesRequest.cc b/emr/src/model/QueryAlarmRulesRequest.cc index 664a41bb6..faec1ab3b 100644 --- a/emr/src/model/QueryAlarmRulesRequest.cc +++ b/emr/src/model/QueryAlarmRulesRequest.cc @@ -33,7 +33,7 @@ long QueryAlarmRulesRequest::getResourceOwnerId()const void QueryAlarmRulesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryAlarmRulesRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string QueryAlarmRulesRequest::getRegionId()const void QueryAlarmRulesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string QueryAlarmRulesRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string QueryAlarmRulesRequest::getClusterId()const void QueryAlarmRulesRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string QueryAlarmRulesRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string QueryAlarmRulesRequest::getAccessKeyId()const void QueryAlarmRulesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/QueryAlarmRulesResult.cc b/emr/src/model/QueryAlarmRulesResult.cc index 0c0650e59..cb915b971 100644 --- a/emr/src/model/QueryAlarmRulesResult.cc +++ b/emr/src/model/QueryAlarmRulesResult.cc @@ -35,10 +35,13 @@ QueryAlarmRulesResult::~QueryAlarmRulesResult() void QueryAlarmRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlarmList = value["AlarmList"]["Alarm"]; for (auto value : allAlarmList) diff --git a/emr/src/model/QueryInfoByTokenRequest.cc b/emr/src/model/QueryInfoByTokenRequest.cc new file mode 100644 index 000000000..fa534eeb4 --- /dev/null +++ b/emr/src/model/QueryInfoByTokenRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::QueryInfoByTokenRequest; + +QueryInfoByTokenRequest::QueryInfoByTokenRequest() : + RpcServiceRequest("emr", "2016-04-08", "QueryInfoByToken") +{} + +QueryInfoByTokenRequest::~QueryInfoByTokenRequest() +{} + diff --git a/emr/src/model/QueryInfoByTokenResult.cc b/emr/src/model/QueryInfoByTokenResult.cc new file mode 100644 index 000000000..b527c4f27 --- /dev/null +++ b/emr/src/model/QueryInfoByTokenResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +QueryInfoByTokenResult::QueryInfoByTokenResult() : + ServiceResult() +{} + +QueryInfoByTokenResult::QueryInfoByTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryInfoByTokenResult::~QueryInfoByTokenResult() +{} + +void QueryInfoByTokenResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TokenUid"].isNull()) + tokenUid_ = value["TokenUid"].asString(); + if(!value["TokenBid"].isNull()) + tokenBid_ = value["TokenBid"].asString(); + +} + +std::string QueryInfoByTokenResult::getTokenUid()const +{ + return tokenUid_; +} + +std::string QueryInfoByTokenResult::getTokenBid()const +{ + return tokenBid_; +} + diff --git a/emr/src/model/QuerySlsMetricDataRequest.cc b/emr/src/model/QuerySlsMetricDataRequest.cc index 67feb1cfe..fb3f8e7e2 100644 --- a/emr/src/model/QuerySlsMetricDataRequest.cc +++ b/emr/src/model/QuerySlsMetricDataRequest.cc @@ -33,7 +33,7 @@ long QuerySlsMetricDataRequest::getResourceOwnerId()const void QuerySlsMetricDataRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long QuerySlsMetricDataRequest::getPeriod()const @@ -44,7 +44,7 @@ long QuerySlsMetricDataRequest::getPeriod()const void QuerySlsMetricDataRequest::setPeriod(long period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string QuerySlsMetricDataRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string QuerySlsMetricDataRequest::getRegionId()const void QuerySlsMetricDataRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string QuerySlsMetricDataRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string QuerySlsMetricDataRequest::getClusterId()const void QuerySlsMetricDataRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } long QuerySlsMetricDataRequest::getStartTimeStamp()const @@ -77,7 +77,7 @@ long QuerySlsMetricDataRequest::getStartTimeStamp()const void QuerySlsMetricDataRequest::setStartTimeStamp(long startTimeStamp) { startTimeStamp_ = startTimeStamp; - setParameter("StartTimeStamp", std::to_string(startTimeStamp)); + setCoreParameter("StartTimeStamp", std::to_string(startTimeStamp)); } std::string QuerySlsMetricDataRequest::getMetricName()const @@ -88,7 +88,7 @@ std::string QuerySlsMetricDataRequest::getMetricName()const void QuerySlsMetricDataRequest::setMetricName(const std::string& metricName) { metricName_ = metricName; - setParameter("MetricName", metricName); + setCoreParameter("MetricName", metricName); } std::string QuerySlsMetricDataRequest::getHostRole()const @@ -99,7 +99,7 @@ std::string QuerySlsMetricDataRequest::getHostRole()const void QuerySlsMetricDataRequest::setHostRole(const std::string& hostRole) { hostRole_ = hostRole; - setParameter("HostRole", hostRole); + setCoreParameter("HostRole", hostRole); } std::string QuerySlsMetricDataRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string QuerySlsMetricDataRequest::getAccessKeyId()const void QuerySlsMetricDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long QuerySlsMetricDataRequest::getEndTimeStamp()const @@ -121,6 +121,6 @@ long QuerySlsMetricDataRequest::getEndTimeStamp()const void QuerySlsMetricDataRequest::setEndTimeStamp(long endTimeStamp) { endTimeStamp_ = endTimeStamp; - setParameter("EndTimeStamp", std::to_string(endTimeStamp)); + setCoreParameter("EndTimeStamp", std::to_string(endTimeStamp)); } diff --git a/emr/src/model/QuerySlsMetricDataResult.cc b/emr/src/model/QuerySlsMetricDataResult.cc index f7ee0842e..69709d295 100644 --- a/emr/src/model/QuerySlsMetricDataResult.cc +++ b/emr/src/model/QuerySlsMetricDataResult.cc @@ -35,10 +35,13 @@ QuerySlsMetricDataResult::~QuerySlsMetricDataResult() void QuerySlsMetricDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDatapoints = value["Datapoints"]["SlsDataPoint"]; for (auto value : allDatapoints) diff --git a/emr/src/model/QueryUserActionsPolicyRequest.cc b/emr/src/model/QueryUserActionsPolicyRequest.cc new file mode 100644 index 000000000..b67a40df6 --- /dev/null +++ b/emr/src/model/QueryUserActionsPolicyRequest.cc @@ -0,0 +1,237 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::QueryUserActionsPolicyRequest; + +QueryUserActionsPolicyRequest::QueryUserActionsPolicyRequest() : + RpcServiceRequest("emr", "2016-04-08", "QueryUserActionsPolicy") +{} + +QueryUserActionsPolicyRequest::~QueryUserActionsPolicyRequest() +{} + +std::string QueryUserActionsPolicyRequest::getApp_ip()const +{ + return app_ip_; +} + +void QueryUserActionsPolicyRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long QueryUserActionsPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryUserActionsPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryUserActionsPolicyRequest::getResourceId()const +{ + return resourceId_; +} + +void QueryUserActionsPolicyRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long QueryUserActionsPolicyRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void QueryUserActionsPolicyRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool QueryUserActionsPolicyRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void QueryUserActionsPolicyRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string QueryUserActionsPolicyRequest::getCallerBid()const +{ + return callerBid_; +} + +void QueryUserActionsPolicyRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string QueryUserActionsPolicyRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void QueryUserActionsPolicyRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string QueryUserActionsPolicyRequest::getResourceType()const +{ + return resourceType_; +} + +void QueryUserActionsPolicyRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool QueryUserActionsPolicyRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void QueryUserActionsPolicyRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool QueryUserActionsPolicyRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void QueryUserActionsPolicyRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string QueryUserActionsPolicyRequest::getCallerType()const +{ + return callerType_; +} + +void QueryUserActionsPolicyRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string QueryUserActionsPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryUserActionsPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool QueryUserActionsPolicyRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void QueryUserActionsPolicyRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string QueryUserActionsPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void QueryUserActionsPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string QueryUserActionsPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void QueryUserActionsPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string QueryUserActionsPolicyRequest::getRequestId()const +{ + return requestId_; +} + +void QueryUserActionsPolicyRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long QueryUserActionsPolicyRequest::getCallerUid()const +{ + return callerUid_; +} + +void QueryUserActionsPolicyRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::vector QueryUserActionsPolicyRequest::getActionNameList()const +{ + return actionNameList_; +} + +void QueryUserActionsPolicyRequest::setActionNameList(const std::vector& actionNameList) +{ + actionNameList_ = actionNameList; + for(int i = 0; i!= actionNameList.size(); i++) + setCoreParameter("ActionNameList."+ std::to_string(i), actionNameList.at(i)); +} + +std::string QueryUserActionsPolicyRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void QueryUserActionsPolicyRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + diff --git a/emr/src/model/QueryUserActionsPolicyResult.cc b/emr/src/model/QueryUserActionsPolicyResult.cc new file mode 100644 index 000000000..593b55387 --- /dev/null +++ b/emr/src/model/QueryUserActionsPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +QueryUserActionsPolicyResult::QueryUserActionsPolicyResult() : + ServiceResult() +{} + +QueryUserActionsPolicyResult::QueryUserActionsPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryUserActionsPolicyResult::~QueryUserActionsPolicyResult() +{} + +void QueryUserActionsPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["policyDTO"]; + for (auto value : allData) + { + PolicyDTO dataObject; + if(!value["Name"].isNull()) + dataObject.name = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + dataObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["Effect"].isNull()) + dataObject.effect = value["Effect"].asString(); + if(!value["Action"].isNull()) + dataObject.action = value["Action"].asString(); + if(!value["Conditions"].isNull()) + dataObject.conditions = value["Conditions"].asString(); + data_.push_back(dataObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + +} + +bool QueryUserActionsPolicyResult::getPaging()const +{ + return paging_; +} + +std::vector QueryUserActionsPolicyResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/QueryUserPoliciesRequest.cc b/emr/src/model/QueryUserPoliciesRequest.cc new file mode 100644 index 000000000..8c0186c8d --- /dev/null +++ b/emr/src/model/QueryUserPoliciesRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::QueryUserPoliciesRequest; + +QueryUserPoliciesRequest::QueryUserPoliciesRequest() : + RpcServiceRequest("emr", "2016-04-08", "QueryUserPolicies") +{} + +QueryUserPoliciesRequest::~QueryUserPoliciesRequest() +{} + +std::string QueryUserPoliciesRequest::getApp_ip()const +{ + return app_ip_; +} + +void QueryUserPoliciesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long QueryUserPoliciesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryUserPoliciesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryUserPoliciesRequest::getResourceId()const +{ + return resourceId_; +} + +void QueryUserPoliciesRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +long QueryUserPoliciesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void QueryUserPoliciesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool QueryUserPoliciesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void QueryUserPoliciesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string QueryUserPoliciesRequest::getCallerBid()const +{ + return callerBid_; +} + +void QueryUserPoliciesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string QueryUserPoliciesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void QueryUserPoliciesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string QueryUserPoliciesRequest::getResourceType()const +{ + return resourceType_; +} + +void QueryUserPoliciesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool QueryUserPoliciesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void QueryUserPoliciesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool QueryUserPoliciesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void QueryUserPoliciesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string QueryUserPoliciesRequest::getCallerType()const +{ + return callerType_; +} + +void QueryUserPoliciesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string QueryUserPoliciesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryUserPoliciesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool QueryUserPoliciesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void QueryUserPoliciesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string QueryUserPoliciesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void QueryUserPoliciesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string QueryUserPoliciesRequest::getRegionId()const +{ + return regionId_; +} + +void QueryUserPoliciesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string QueryUserPoliciesRequest::getRequestId()const +{ + return requestId_; +} + +void QueryUserPoliciesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long QueryUserPoliciesRequest::getCallerUid()const +{ + return callerUid_; +} + +void QueryUserPoliciesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/QueryUserPoliciesResult.cc b/emr/src/model/QueryUserPoliciesResult.cc new file mode 100644 index 000000000..0d19caf90 --- /dev/null +++ b/emr/src/model/QueryUserPoliciesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +QueryUserPoliciesResult::QueryUserPoliciesResult() : + ServiceResult() +{} + +QueryUserPoliciesResult::QueryUserPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryUserPoliciesResult::~QueryUserPoliciesResult() +{} + +void QueryUserPoliciesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["policyDTO"]; + for (auto value : allData) + { + PolicyDTO dataObject; + if(!value["Name"].isNull()) + dataObject.name = value["Name"].asString(); + if(!value["GmtCreate"].isNull()) + dataObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["Effect"].isNull()) + dataObject.effect = value["Effect"].asString(); + if(!value["Action"].isNull()) + dataObject.action = value["Action"].asString(); + if(!value["Conditions"].isNull()) + dataObject.conditions = value["Conditions"].asString(); + data_.push_back(dataObject); + } + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + +} + +bool QueryUserPoliciesResult::getPaging()const +{ + return paging_; +} + +std::vector QueryUserPoliciesResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/ReassignKafkaRequest.cc b/emr/src/model/ReassignKafkaRequest.cc new file mode 100644 index 000000000..0f4ce694c --- /dev/null +++ b/emr/src/model/ReassignKafkaRequest.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 + +using AlibabaCloud::Emr::Model::ReassignKafkaRequest; + +ReassignKafkaRequest::ReassignKafkaRequest() : + RpcServiceRequest("emr", "2016-04-08", "ReassignKafka") +{} + +ReassignKafkaRequest::~ReassignKafkaRequest() +{} + +long ReassignKafkaRequest::getThrottle()const +{ + return throttle_; +} + +void ReassignKafkaRequest::setThrottle(long throttle) +{ + throttle_ = throttle; + setCoreParameter("Throttle", std::to_string(throttle)); +} + +long ReassignKafkaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReassignKafkaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReassignKafkaRequest::getTopicId()const +{ + return topicId_; +} + +void ReassignKafkaRequest::setTopicId(const std::string& topicId) +{ + topicId_ = topicId; + setCoreParameter("TopicId", topicId); +} + +std::vector ReassignKafkaRequest::getBrokerId()const +{ + return brokerId_; +} + +void ReassignKafkaRequest::setBrokerId(const std::vector& brokerId) +{ + brokerId_ = brokerId; + for(int i = 0; i!= brokerId.size(); i++) + setCoreParameter("BrokerId."+ std::to_string(i), std::to_string(brokerId.at(i))); +} + +std::string ReassignKafkaRequest::getRegionId()const +{ + return regionId_; +} + +void ReassignKafkaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ReassignKafkaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReassignKafkaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ReassignKafkaResult.cc b/emr/src/model/ReassignKafkaResult.cc new file mode 100644 index 000000000..ee6117203 --- /dev/null +++ b/emr/src/model/ReassignKafkaResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ReassignKafkaResult::ReassignKafkaResult() : + ServiceResult() +{} + +ReassignKafkaResult::ReassignKafkaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReassignKafkaResult::~ReassignKafkaResult() +{} + +void ReassignKafkaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/RefreshBackupListRequest.cc b/emr/src/model/RefreshBackupListRequest.cc new file mode 100644 index 000000000..56daa14df --- /dev/null +++ b/emr/src/model/RefreshBackupListRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::RefreshBackupListRequest; + +RefreshBackupListRequest::RefreshBackupListRequest() : + RpcServiceRequest("emr", "2016-04-08", "RefreshBackupList") +{} + +RefreshBackupListRequest::~RefreshBackupListRequest() +{} + +std::string RefreshBackupListRequest::getApp_ip()const +{ + return app_ip_; +} + +void RefreshBackupListRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long RefreshBackupListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RefreshBackupListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long RefreshBackupListRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RefreshBackupListRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool RefreshBackupListRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RefreshBackupListRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string RefreshBackupListRequest::getCallerBid()const +{ + return callerBid_; +} + +void RefreshBackupListRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string RefreshBackupListRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RefreshBackupListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool RefreshBackupListRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RefreshBackupListRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool RefreshBackupListRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RefreshBackupListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string RefreshBackupListRequest::getCallerType()const +{ + return callerType_; +} + +void RefreshBackupListRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string RefreshBackupListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RefreshBackupListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool RefreshBackupListRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RefreshBackupListRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RefreshBackupListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RefreshBackupListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RefreshBackupListRequest::getRegionId()const +{ + return regionId_; +} + +void RefreshBackupListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RefreshBackupListRequest::getRequestId()const +{ + return requestId_; +} + +void RefreshBackupListRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long RefreshBackupListRequest::getCallerUid()const +{ + return callerUid_; +} + +void RefreshBackupListRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string RefreshBackupListRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void RefreshBackupListRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + diff --git a/emr/src/model/RefreshBackupListResult.cc b/emr/src/model/RefreshBackupListResult.cc new file mode 100644 index 000000000..22249c144 --- /dev/null +++ b/emr/src/model/RefreshBackupListResult.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +RefreshBackupListResult::RefreshBackupListResult() : + ServiceResult() +{} + +RefreshBackupListResult::RefreshBackupListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RefreshBackupListResult::~RefreshBackupListResult() +{} + +void RefreshBackupListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + if(!value["DataSourceId"].isNull()) + dataSourceId_ = std::stol(value["DataSourceId"].asString()); + if(!value["TaskType"].isNull()) + taskType_ = value["TaskType"].asString(); + if(!value["TaskStatus"].isNull()) + taskStatus_ = value["TaskStatus"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["TaskDetail"].isNull()) + taskDetail_ = value["TaskDetail"].asString(); + if(!value["TaskResultDetail"].isNull()) + taskResultDetail_ = value["TaskResultDetail"].asString(); + if(!value["TaskProcess"].isNull()) + taskProcess_ = std::stoi(value["TaskProcess"].asString()); + if(!value["TriggerUser"].isNull()) + triggerUser_ = value["TriggerUser"].asString(); + if(!value["TriggerType"].isNull()) + triggerType_ = value["TriggerType"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + gmtModified_ = std::stol(value["GmtModified"].asString()); + if(!value["ClusterBizId"].isNull()) + clusterBizId_ = value["ClusterBizId"].asString(); + if(!value["HostName"].isNull()) + hostName_ = value["HostName"].asString(); + if(!value["EcmTaskId"].isNull()) + ecmTaskId_ = std::stol(value["EcmTaskId"].asString()); + +} + +std::string RefreshBackupListResult::getTriggerType()const +{ + return triggerType_; +} + +long RefreshBackupListResult::getEndTime()const +{ + return endTime_; +} + +long RefreshBackupListResult::getStartTime()const +{ + return startTime_; +} + +long RefreshBackupListResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string RefreshBackupListResult::getTaskStatus()const +{ + return taskStatus_; +} + +std::string RefreshBackupListResult::getTaskDetail()const +{ + return taskDetail_; +} + +std::string RefreshBackupListResult::getTriggerUser()const +{ + return triggerUser_; +} + +long RefreshBackupListResult::getGmtCreate()const +{ + return gmtCreate_; +} + +int RefreshBackupListResult::getTaskProcess()const +{ + return taskProcess_; +} + +std::string RefreshBackupListResult::getClusterBizId()const +{ + return clusterBizId_; +} + +std::string RefreshBackupListResult::getTaskType()const +{ + return taskType_; +} + +std::string RefreshBackupListResult::getBizId()const +{ + return bizId_; +} + +long RefreshBackupListResult::getDataSourceId()const +{ + return dataSourceId_; +} + +std::string RefreshBackupListResult::getHostName()const +{ + return hostName_; +} + +long RefreshBackupListResult::getEcmTaskId()const +{ + return ecmTaskId_; +} + +std::string RefreshBackupListResult::getTaskResultDetail()const +{ + return taskResultDetail_; +} + diff --git a/emr/src/model/RefreshClusterResourcePoolForAdminRequest.cc b/emr/src/model/RefreshClusterResourcePoolForAdminRequest.cc new file mode 100644 index 000000000..16954c1cb --- /dev/null +++ b/emr/src/model/RefreshClusterResourcePoolForAdminRequest.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 + +using AlibabaCloud::Emr::Model::RefreshClusterResourcePoolForAdminRequest; + +RefreshClusterResourcePoolForAdminRequest::RefreshClusterResourcePoolForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "RefreshClusterResourcePoolForAdmin") +{} + +RefreshClusterResourcePoolForAdminRequest::~RefreshClusterResourcePoolForAdminRequest() +{} + +long RefreshClusterResourcePoolForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RefreshClusterResourcePoolForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RefreshClusterResourcePoolForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void RefreshClusterResourcePoolForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +long RefreshClusterResourcePoolForAdminRequest::getResourcePoolId()const +{ + return resourcePoolId_; +} + +void RefreshClusterResourcePoolForAdminRequest::setResourcePoolId(long resourcePoolId) +{ + resourcePoolId_ = resourcePoolId; + setCoreParameter("ResourcePoolId", std::to_string(resourcePoolId)); +} + +std::string RefreshClusterResourcePoolForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void RefreshClusterResourcePoolForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string RefreshClusterResourcePoolForAdminRequest::getUserId()const +{ + return userId_; +} + +void RefreshClusterResourcePoolForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string RefreshClusterResourcePoolForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RefreshClusterResourcePoolForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/RefreshClusterResourcePoolForAdminResult.cc b/emr/src/model/RefreshClusterResourcePoolForAdminResult.cc new file mode 100644 index 000000000..2df52a7e9 --- /dev/null +++ b/emr/src/model/RefreshClusterResourcePoolForAdminResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +RefreshClusterResourcePoolForAdminResult::RefreshClusterResourcePoolForAdminResult() : + ServiceResult() +{} + +RefreshClusterResourcePoolForAdminResult::RefreshClusterResourcePoolForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RefreshClusterResourcePoolForAdminResult::~RefreshClusterResourcePoolForAdminResult() +{} + +void RefreshClusterResourcePoolForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["WorkFlowInstanceId"].isNull()) + workFlowInstanceId_ = value["WorkFlowInstanceId"].asString(); + if(!value["OperationId"].isNull()) + operationId_ = value["OperationId"].asString(); + +} + +std::string RefreshClusterResourcePoolForAdminResult::getWorkFlowInstanceId()const +{ + return workFlowInstanceId_; +} + +std::string RefreshClusterResourcePoolForAdminResult::getOperationId()const +{ + return operationId_; +} + diff --git a/emr/src/model/RefreshClusterResourcePoolRequest.cc b/emr/src/model/RefreshClusterResourcePoolRequest.cc index 894600548..99c890b84 100644 --- a/emr/src/model/RefreshClusterResourcePoolRequest.cc +++ b/emr/src/model/RefreshClusterResourcePoolRequest.cc @@ -33,7 +33,7 @@ long RefreshClusterResourcePoolRequest::getResourceOwnerId()const void RefreshClusterResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RefreshClusterResourcePoolRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RefreshClusterResourcePoolRequest::getRegionId()const void RefreshClusterResourcePoolRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long RefreshClusterResourcePoolRequest::getResourcePoolId()const @@ -55,7 +55,7 @@ long RefreshClusterResourcePoolRequest::getResourcePoolId()const void RefreshClusterResourcePoolRequest::setResourcePoolId(long resourcePoolId) { resourcePoolId_ = resourcePoolId; - setParameter("ResourcePoolId", std::to_string(resourcePoolId)); + setCoreParameter("ResourcePoolId", std::to_string(resourcePoolId)); } std::string RefreshClusterResourcePoolRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string RefreshClusterResourcePoolRequest::getClusterId()const void RefreshClusterResourcePoolRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string RefreshClusterResourcePoolRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string RefreshClusterResourcePoolRequest::getAccessKeyId()const void RefreshClusterResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RefreshClusterResourcePoolResult.cc b/emr/src/model/RefreshClusterResourcePoolResult.cc index 4269ab15b..9a7385170 100644 --- a/emr/src/model/RefreshClusterResourcePoolResult.cc +++ b/emr/src/model/RefreshClusterResourcePoolResult.cc @@ -35,10 +35,13 @@ RefreshClusterResourcePoolResult::~RefreshClusterResourcePoolResult() void RefreshClusterResourcePoolResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["WorkFlowInstanceId"].isNull()) workFlowInstanceId_ = value["WorkFlowInstanceId"].asString(); diff --git a/emr/src/model/ReleaseClusterHostGroupRequest.cc b/emr/src/model/ReleaseClusterHostGroupRequest.cc index ff0bc765e..8b0f63752 100644 --- a/emr/src/model/ReleaseClusterHostGroupRequest.cc +++ b/emr/src/model/ReleaseClusterHostGroupRequest.cc @@ -33,7 +33,7 @@ long ReleaseClusterHostGroupRequest::getResourceOwnerId()const void ReleaseClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReleaseClusterHostGroupRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ReleaseClusterHostGroupRequest::getRegionId()const void ReleaseClusterHostGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ReleaseClusterHostGroupRequest::getHostGroupId()const @@ -55,7 +55,7 @@ std::string ReleaseClusterHostGroupRequest::getHostGroupId()const void ReleaseClusterHostGroupRequest::setHostGroupId(const std::string& hostGroupId) { hostGroupId_ = hostGroupId; - setParameter("HostGroupId", hostGroupId); + setCoreParameter("HostGroupId", hostGroupId); } std::string ReleaseClusterHostGroupRequest::getInstanceIdList()const @@ -66,7 +66,7 @@ std::string ReleaseClusterHostGroupRequest::getInstanceIdList()const void ReleaseClusterHostGroupRequest::setInstanceIdList(const std::string& instanceIdList) { instanceIdList_ = instanceIdList; - setParameter("InstanceIdList", instanceIdList); + setCoreParameter("InstanceIdList", instanceIdList); } std::string ReleaseClusterHostGroupRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string ReleaseClusterHostGroupRequest::getClusterId()const void ReleaseClusterHostGroupRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ReleaseClusterHostGroupRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ReleaseClusterHostGroupRequest::getAccessKeyId()const void ReleaseClusterHostGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ReleaseClusterHostGroupResult.cc b/emr/src/model/ReleaseClusterHostGroupResult.cc index b4897a988..9f7f152c8 100644 --- a/emr/src/model/ReleaseClusterHostGroupResult.cc +++ b/emr/src/model/ReleaseClusterHostGroupResult.cc @@ -35,10 +35,13 @@ ReleaseClusterHostGroupResult::~ReleaseClusterHostGroupResult() void ReleaseClusterHostGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ReleaseClusterRequest.cc b/emr/src/model/ReleaseClusterRequest.cc index 2208f8200..36088468b 100644 --- a/emr/src/model/ReleaseClusterRequest.cc +++ b/emr/src/model/ReleaseClusterRequest.cc @@ -33,7 +33,7 @@ long ReleaseClusterRequest::getResourceOwnerId()const void ReleaseClusterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReleaseClusterRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ReleaseClusterRequest::getRegionId()const void ReleaseClusterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool ReleaseClusterRequest::getForceRelease()const @@ -55,7 +55,7 @@ bool ReleaseClusterRequest::getForceRelease()const void ReleaseClusterRequest::setForceRelease(bool forceRelease) { forceRelease_ = forceRelease; - setParameter("ForceRelease", std::to_string(forceRelease)); + setCoreParameter("ForceRelease", forceRelease ? "true" : "false"); } std::string ReleaseClusterRequest::getId()const @@ -66,7 +66,7 @@ std::string ReleaseClusterRequest::getId()const void ReleaseClusterRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ReleaseClusterRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ReleaseClusterRequest::getAccessKeyId()const void ReleaseClusterRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ReleaseClusterResult.cc b/emr/src/model/ReleaseClusterResult.cc index 465832a00..9fb9ec6be 100644 --- a/emr/src/model/ReleaseClusterResult.cc +++ b/emr/src/model/ReleaseClusterResult.cc @@ -35,10 +35,13 @@ ReleaseClusterResult::~ReleaseClusterResult() void ReleaseClusterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ReleaseETLJobRequest.cc b/emr/src/model/ReleaseETLJobRequest.cc index 23efafc50..471ad565b 100644 --- a/emr/src/model/ReleaseETLJobRequest.cc +++ b/emr/src/model/ReleaseETLJobRequest.cc @@ -33,7 +33,7 @@ long ReleaseETLJobRequest::getResourceOwnerId()const void ReleaseETLJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReleaseETLJobRequest::getRegionId()const @@ -44,7 +44,18 @@ std::string ReleaseETLJobRequest::getRegionId()const void ReleaseETLJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); +} + +std::string ReleaseETLJobRequest::getReleaseId()const +{ + return releaseId_; +} + +void ReleaseETLJobRequest::setReleaseId(const std::string& releaseId) +{ + releaseId_ = releaseId; + setCoreParameter("ReleaseId", releaseId); } std::string ReleaseETLJobRequest::getId()const @@ -55,7 +66,7 @@ std::string ReleaseETLJobRequest::getId()const void ReleaseETLJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ReleaseETLJobRequest::getAccessKeyId()const @@ -66,6 +77,6 @@ std::string ReleaseETLJobRequest::getAccessKeyId()const void ReleaseETLJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ReleaseETLJobResult.cc b/emr/src/model/ReleaseETLJobResult.cc index 3932bd725..cc05617cc 100644 --- a/emr/src/model/ReleaseETLJobResult.cc +++ b/emr/src/model/ReleaseETLJobResult.cc @@ -35,10 +35,13 @@ ReleaseETLJobResult::~ReleaseETLJobResult() void ReleaseETLJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ReleaseId"].isNull()) releaseId_ = value["ReleaseId"].asString(); diff --git a/emr/src/model/RemoveBackupPlanRequest.cc b/emr/src/model/RemoveBackupPlanRequest.cc new file mode 100644 index 000000000..11adb09ff --- /dev/null +++ b/emr/src/model/RemoveBackupPlanRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::RemoveBackupPlanRequest; + +RemoveBackupPlanRequest::RemoveBackupPlanRequest() : + RpcServiceRequest("emr", "2016-04-08", "RemoveBackupPlan") +{} + +RemoveBackupPlanRequest::~RemoveBackupPlanRequest() +{} + +std::string RemoveBackupPlanRequest::getApp_ip()const +{ + return app_ip_; +} + +void RemoveBackupPlanRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long RemoveBackupPlanRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveBackupPlanRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long RemoveBackupPlanRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RemoveBackupPlanRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool RemoveBackupPlanRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RemoveBackupPlanRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string RemoveBackupPlanRequest::getCallerBid()const +{ + return callerBid_; +} + +void RemoveBackupPlanRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string RemoveBackupPlanRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RemoveBackupPlanRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool RemoveBackupPlanRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RemoveBackupPlanRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool RemoveBackupPlanRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RemoveBackupPlanRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string RemoveBackupPlanRequest::getCallerType()const +{ + return callerType_; +} + +void RemoveBackupPlanRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string RemoveBackupPlanRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveBackupPlanRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool RemoveBackupPlanRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RemoveBackupPlanRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RemoveBackupPlanRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RemoveBackupPlanRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RemoveBackupPlanRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveBackupPlanRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RemoveBackupPlanRequest::getRequestId()const +{ + return requestId_; +} + +void RemoveBackupPlanRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long RemoveBackupPlanRequest::getCallerUid()const +{ + return callerUid_; +} + +void RemoveBackupPlanRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string RemoveBackupPlanRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void RemoveBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + diff --git a/emr/src/model/RemoveBackupPlanResult.cc b/emr/src/model/RemoveBackupPlanResult.cc new file mode 100644 index 000000000..eb0f3f210 --- /dev/null +++ b/emr/src/model/RemoveBackupPlanResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +RemoveBackupPlanResult::RemoveBackupPlanResult() : + ServiceResult() +{} + +RemoveBackupPlanResult::RemoveBackupPlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveBackupPlanResult::~RemoveBackupPlanResult() +{} + +void RemoveBackupPlanResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool RemoveBackupPlanResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/RemoveBackupRequest.cc b/emr/src/model/RemoveBackupRequest.cc new file mode 100644 index 000000000..16ea30ca8 --- /dev/null +++ b/emr/src/model/RemoveBackupRequest.cc @@ -0,0 +1,215 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::RemoveBackupRequest; + +RemoveBackupRequest::RemoveBackupRequest() : + RpcServiceRequest("emr", "2016-04-08", "RemoveBackup") +{} + +RemoveBackupRequest::~RemoveBackupRequest() +{} + +std::string RemoveBackupRequest::getApp_ip()const +{ + return app_ip_; +} + +void RemoveBackupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long RemoveBackupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveBackupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long RemoveBackupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RemoveBackupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::vector RemoveBackupRequest::getBackupId()const +{ + return backupId_; +} + +void RemoveBackupRequest::setBackupId(const std::vector& backupId) +{ + backupId_ = backupId; + for(int i = 0; i!= backupId.size(); i++) + setCoreParameter("BackupId."+ std::to_string(i), backupId.at(i)); +} + +bool RemoveBackupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RemoveBackupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string RemoveBackupRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void RemoveBackupRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + +std::string RemoveBackupRequest::getCallerBid()const +{ + return callerBid_; +} + +void RemoveBackupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string RemoveBackupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RemoveBackupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool RemoveBackupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RemoveBackupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool RemoveBackupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RemoveBackupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string RemoveBackupRequest::getCallerType()const +{ + return callerType_; +} + +void RemoveBackupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string RemoveBackupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveBackupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool RemoveBackupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RemoveBackupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RemoveBackupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RemoveBackupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RemoveBackupRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveBackupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RemoveBackupRequest::getRequestId()const +{ + return requestId_; +} + +void RemoveBackupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long RemoveBackupRequest::getCallerUid()const +{ + return callerUid_; +} + +void RemoveBackupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/RemoveBackupResult.cc b/emr/src/model/RemoveBackupResult.cc new file mode 100644 index 000000000..35d81a47e --- /dev/null +++ b/emr/src/model/RemoveBackupResult.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +RemoveBackupResult::RemoveBackupResult() : + ServiceResult() +{} + +RemoveBackupResult::RemoveBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveBackupResult::~RemoveBackupResult() +{} + +void RemoveBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + if(!value["DataSourceId"].isNull()) + dataSourceId_ = std::stol(value["DataSourceId"].asString()); + if(!value["TaskType"].isNull()) + taskType_ = value["TaskType"].asString(); + if(!value["TaskStatus"].isNull()) + taskStatus_ = value["TaskStatus"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["TaskDetail"].isNull()) + taskDetail_ = value["TaskDetail"].asString(); + if(!value["TaskResultDetail"].isNull()) + taskResultDetail_ = value["TaskResultDetail"].asString(); + if(!value["TaskProcess"].isNull()) + taskProcess_ = std::stoi(value["TaskProcess"].asString()); + if(!value["TriggerUser"].isNull()) + triggerUser_ = value["TriggerUser"].asString(); + if(!value["TriggerType"].isNull()) + triggerType_ = value["TriggerType"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + gmtModified_ = std::stol(value["GmtModified"].asString()); + if(!value["ClusterBizId"].isNull()) + clusterBizId_ = value["ClusterBizId"].asString(); + if(!value["HostName"].isNull()) + hostName_ = value["HostName"].asString(); + if(!value["EcmTaskId"].isNull()) + ecmTaskId_ = std::stol(value["EcmTaskId"].asString()); + +} + +std::string RemoveBackupResult::getTriggerType()const +{ + return triggerType_; +} + +long RemoveBackupResult::getEndTime()const +{ + return endTime_; +} + +long RemoveBackupResult::getStartTime()const +{ + return startTime_; +} + +long RemoveBackupResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string RemoveBackupResult::getTaskStatus()const +{ + return taskStatus_; +} + +std::string RemoveBackupResult::getTaskDetail()const +{ + return taskDetail_; +} + +std::string RemoveBackupResult::getTriggerUser()const +{ + return triggerUser_; +} + +long RemoveBackupResult::getGmtCreate()const +{ + return gmtCreate_; +} + +int RemoveBackupResult::getTaskProcess()const +{ + return taskProcess_; +} + +std::string RemoveBackupResult::getClusterBizId()const +{ + return clusterBizId_; +} + +std::string RemoveBackupResult::getTaskType()const +{ + return taskType_; +} + +std::string RemoveBackupResult::getBizId()const +{ + return bizId_; +} + +long RemoveBackupResult::getDataSourceId()const +{ + return dataSourceId_; +} + +std::string RemoveBackupResult::getHostName()const +{ + return hostName_; +} + +long RemoveBackupResult::getEcmTaskId()const +{ + return ecmTaskId_; +} + +std::string RemoveBackupResult::getTaskResultDetail()const +{ + return taskResultDetail_; +} + diff --git a/emr/src/model/RemoveBackupRuleRequest.cc b/emr/src/model/RemoveBackupRuleRequest.cc new file mode 100644 index 000000000..599cd0892 --- /dev/null +++ b/emr/src/model/RemoveBackupRuleRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::RemoveBackupRuleRequest; + +RemoveBackupRuleRequest::RemoveBackupRuleRequest() : + RpcServiceRequest("emr", "2016-04-08", "RemoveBackupRule") +{} + +RemoveBackupRuleRequest::~RemoveBackupRuleRequest() +{} + +std::string RemoveBackupRuleRequest::getApp_ip()const +{ + return app_ip_; +} + +void RemoveBackupRuleRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long RemoveBackupRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveBackupRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long RemoveBackupRuleRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RemoveBackupRuleRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool RemoveBackupRuleRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RemoveBackupRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string RemoveBackupRuleRequest::getCallerBid()const +{ + return callerBid_; +} + +void RemoveBackupRuleRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string RemoveBackupRuleRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RemoveBackupRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool RemoveBackupRuleRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RemoveBackupRuleRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool RemoveBackupRuleRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RemoveBackupRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string RemoveBackupRuleRequest::getCallerType()const +{ + return callerType_; +} + +void RemoveBackupRuleRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string RemoveBackupRuleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveBackupRuleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool RemoveBackupRuleRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RemoveBackupRuleRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RemoveBackupRuleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RemoveBackupRuleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RemoveBackupRuleRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveBackupRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RemoveBackupRuleRequest::getRequestId()const +{ + return requestId_; +} + +void RemoveBackupRuleRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long RemoveBackupRuleRequest::getCallerUid()const +{ + return callerUid_; +} + +void RemoveBackupRuleRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string RemoveBackupRuleRequest::getBackupRuleId()const +{ + return backupRuleId_; +} + +void RemoveBackupRuleRequest::setBackupRuleId(const std::string& backupRuleId) +{ + backupRuleId_ = backupRuleId; + setCoreParameter("BackupRuleId", backupRuleId); +} + diff --git a/emr/src/model/RemoveBackupRuleResult.cc b/emr/src/model/RemoveBackupRuleResult.cc new file mode 100644 index 000000000..71ab5fe73 --- /dev/null +++ b/emr/src/model/RemoveBackupRuleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +RemoveBackupRuleResult::RemoveBackupRuleResult() : + ServiceResult() +{} + +RemoveBackupRuleResult::RemoveBackupRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveBackupRuleResult::~RemoveBackupRuleResult() +{} + +void RemoveBackupRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool RemoveBackupRuleResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/RemoveClusterHostsRequest.cc b/emr/src/model/RemoveClusterHostsRequest.cc index 33fcdc86b..f22b2c2a7 100644 --- a/emr/src/model/RemoveClusterHostsRequest.cc +++ b/emr/src/model/RemoveClusterHostsRequest.cc @@ -33,7 +33,7 @@ long RemoveClusterHostsRequest::getResourceOwnerId()const void RemoveClusterHostsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveClusterHostsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RemoveClusterHostsRequest::getRegionId()const void RemoveClusterHostsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveClusterHostsRequest::getClusterId()const @@ -55,7 +55,7 @@ std::string RemoveClusterHostsRequest::getClusterId()const void RemoveClusterHostsRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::vector RemoveClusterHostsRequest::getHostIdList()const @@ -67,7 +67,7 @@ void RemoveClusterHostsRequest::setHostIdList(const std::vector& ho { hostIdList_ = hostIdList; for(int i = 0; i!= hostIdList.size(); i++) - setParameter("HostIdList."+ std::to_string(i), hostIdList.at(i)); + setCoreParameter("HostIdList."+ std::to_string(i), hostIdList.at(i)); } std::string RemoveClusterHostsRequest::getAccessKeyId()const @@ -78,6 +78,6 @@ std::string RemoveClusterHostsRequest::getAccessKeyId()const void RemoveClusterHostsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RemoveClusterHostsResult.cc b/emr/src/model/RemoveClusterHostsResult.cc index 174fda79b..f11a5a28e 100644 --- a/emr/src/model/RemoveClusterHostsResult.cc +++ b/emr/src/model/RemoveClusterHostsResult.cc @@ -35,10 +35,13 @@ RemoveClusterHostsResult::~RemoveClusterHostsResult() void RemoveClusterHostsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/emr/src/model/RemoveHpHostRequest.cc b/emr/src/model/RemoveHpHostRequest.cc new file mode 100644 index 000000000..0ec7f02e9 --- /dev/null +++ b/emr/src/model/RemoveHpHostRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::RemoveHpHostRequest; + +RemoveHpHostRequest::RemoveHpHostRequest() : + RpcServiceRequest("emr", "2016-04-08", "RemoveHpHost") +{} + +RemoveHpHostRequest::~RemoveHpHostRequest() +{} + +std::string RemoveHpHostRequest::getHpHostBizId()const +{ + return hpHostBizId_; +} + +void RemoveHpHostRequest::setHpHostBizId(const std::string& hpHostBizId) +{ + hpHostBizId_ = hpHostBizId; + setCoreParameter("HpHostBizId", hpHostBizId); +} + +long RemoveHpHostRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveHpHostRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveHpHostRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveHpHostRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RemoveHpHostRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveHpHostRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/RemoveHpHostResult.cc b/emr/src/model/RemoveHpHostResult.cc new file mode 100644 index 000000000..ce2bf7593 --- /dev/null +++ b/emr/src/model/RemoveHpHostResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +RemoveHpHostResult::RemoveHpHostResult() : + ServiceResult() +{} + +RemoveHpHostResult::RemoveHpHostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveHpHostResult::~RemoveHpHostResult() +{} + +void RemoveHpHostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/RenderResourcePoolXmlForAdminRequest.cc b/emr/src/model/RenderResourcePoolXmlForAdminRequest.cc new file mode 100644 index 000000000..15d79a253 --- /dev/null +++ b/emr/src/model/RenderResourcePoolXmlForAdminRequest.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 + +using AlibabaCloud::Emr::Model::RenderResourcePoolXmlForAdminRequest; + +RenderResourcePoolXmlForAdminRequest::RenderResourcePoolXmlForAdminRequest() : + RpcServiceRequest("emr", "2016-04-08", "RenderResourcePoolXmlForAdmin") +{} + +RenderResourcePoolXmlForAdminRequest::~RenderResourcePoolXmlForAdminRequest() +{} + +long RenderResourcePoolXmlForAdminRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenderResourcePoolXmlForAdminRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RenderResourcePoolXmlForAdminRequest::getRegionId()const +{ + return regionId_; +} + +void RenderResourcePoolXmlForAdminRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RenderResourcePoolXmlForAdminRequest::getResourcePoolId()const +{ + return resourcePoolId_; +} + +void RenderResourcePoolXmlForAdminRequest::setResourcePoolId(const std::string& resourcePoolId) +{ + resourcePoolId_ = resourcePoolId; + setCoreParameter("ResourcePoolId", resourcePoolId); +} + +std::string RenderResourcePoolXmlForAdminRequest::getClusterId()const +{ + return clusterId_; +} + +void RenderResourcePoolXmlForAdminRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string RenderResourcePoolXmlForAdminRequest::getUserId()const +{ + return userId_; +} + +void RenderResourcePoolXmlForAdminRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string RenderResourcePoolXmlForAdminRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RenderResourcePoolXmlForAdminRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/RenderResourcePoolXmlForAdminResult.cc b/emr/src/model/RenderResourcePoolXmlForAdminResult.cc new file mode 100644 index 000000000..245d40a85 --- /dev/null +++ b/emr/src/model/RenderResourcePoolXmlForAdminResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +RenderResourcePoolXmlForAdminResult::RenderResourcePoolXmlForAdminResult() : + ServiceResult() +{} + +RenderResourcePoolXmlForAdminResult::RenderResourcePoolXmlForAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenderResourcePoolXmlForAdminResult::~RenderResourcePoolXmlForAdminResult() +{} + +void RenderResourcePoolXmlForAdminResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["XmlContent"].isNull()) + xmlContent_ = value["XmlContent"].asString(); + +} + +std::string RenderResourcePoolXmlForAdminResult::getXmlContent()const +{ + return xmlContent_; +} + diff --git a/emr/src/model/RenderResourcePoolXmlRequest.cc b/emr/src/model/RenderResourcePoolXmlRequest.cc index d58ba40ae..c6257a68c 100644 --- a/emr/src/model/RenderResourcePoolXmlRequest.cc +++ b/emr/src/model/RenderResourcePoolXmlRequest.cc @@ -33,7 +33,7 @@ long RenderResourcePoolXmlRequest::getResourceOwnerId()const void RenderResourcePoolXmlRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RenderResourcePoolXmlRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RenderResourcePoolXmlRequest::getRegionId()const void RenderResourcePoolXmlRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RenderResourcePoolXmlRequest::getResourcePoolId()const @@ -55,7 +55,7 @@ std::string RenderResourcePoolXmlRequest::getResourcePoolId()const void RenderResourcePoolXmlRequest::setResourcePoolId(const std::string& resourcePoolId) { resourcePoolId_ = resourcePoolId; - setParameter("ResourcePoolId", resourcePoolId); + setCoreParameter("ResourcePoolId", resourcePoolId); } std::string RenderResourcePoolXmlRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string RenderResourcePoolXmlRequest::getClusterId()const void RenderResourcePoolXmlRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string RenderResourcePoolXmlRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string RenderResourcePoolXmlRequest::getAccessKeyId()const void RenderResourcePoolXmlRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RenderResourcePoolXmlResult.cc b/emr/src/model/RenderResourcePoolXmlResult.cc index c5d62fbdf..356938596 100644 --- a/emr/src/model/RenderResourcePoolXmlResult.cc +++ b/emr/src/model/RenderResourcePoolXmlResult.cc @@ -35,10 +35,13 @@ RenderResourcePoolXmlResult::~RenderResourcePoolXmlResult() void RenderResourcePoolXmlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["XmlContent"].isNull()) xmlContent_ = value["XmlContent"].asString(); diff --git a/emr/src/model/RerunFlowRequest.cc b/emr/src/model/RerunFlowRequest.cc index 69d7cf7a5..af6f9ca80 100644 --- a/emr/src/model/RerunFlowRequest.cc +++ b/emr/src/model/RerunFlowRequest.cc @@ -33,7 +33,7 @@ std::string RerunFlowRequest::getFlowInstanceId()const void RerunFlowRequest::setFlowInstanceId(const std::string& flowInstanceId) { flowInstanceId_ = flowInstanceId; - setParameter("FlowInstanceId", flowInstanceId); + setCoreParameter("FlowInstanceId", flowInstanceId); } std::string RerunFlowRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RerunFlowRequest::getRegionId()const void RerunFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RerunFlowRequest::getProjectId()const @@ -55,7 +55,7 @@ std::string RerunFlowRequest::getProjectId()const void RerunFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } bool RerunFlowRequest::getReRunFail()const @@ -66,6 +66,6 @@ bool RerunFlowRequest::getReRunFail()const void RerunFlowRequest::setReRunFail(bool reRunFail) { reRunFail_ = reRunFail; - setParameter("ReRunFail", std::to_string(reRunFail)); + setCoreParameter("ReRunFail", reRunFail ? "true" : "false"); } diff --git a/emr/src/model/RerunFlowResult.cc b/emr/src/model/RerunFlowResult.cc index 557ad76d9..151d5279b 100644 --- a/emr/src/model/RerunFlowResult.cc +++ b/emr/src/model/RerunFlowResult.cc @@ -35,10 +35,13 @@ RerunFlowResult::~RerunFlowResult() void RerunFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/ResizeClusterV2Request.cc b/emr/src/model/ResizeClusterV2Request.cc index f2b7adcda..747757933 100644 --- a/emr/src/model/ResizeClusterV2Request.cc +++ b/emr/src/model/ResizeClusterV2Request.cc @@ -33,7 +33,7 @@ std::string ResizeClusterV2Request::getVswitchId()const void ResizeClusterV2Request::setVswitchId(const std::string& vswitchId) { vswitchId_ = vswitchId; - setParameter("VswitchId", vswitchId); + setCoreParameter("VswitchId", vswitchId); } bool ResizeClusterV2Request::getIsOpenPublicIp()const @@ -44,7 +44,7 @@ bool ResizeClusterV2Request::getIsOpenPublicIp()const void ResizeClusterV2Request::setIsOpenPublicIp(bool isOpenPublicIp) { isOpenPublicIp_ = isOpenPublicIp; - setParameter("IsOpenPublicIp", std::to_string(isOpenPublicIp)); + setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false"); } bool ResizeClusterV2Request::getAutoPayOrder()const @@ -55,7 +55,7 @@ bool ResizeClusterV2Request::getAutoPayOrder()const void ResizeClusterV2Request::setAutoPayOrder(bool autoPayOrder) { autoPayOrder_ = autoPayOrder; - setParameter("AutoPayOrder", std::to_string(autoPayOrder)); + setCoreParameter("AutoPayOrder", autoPayOrder ? "true" : "false"); } std::vector ResizeClusterV2Request::getHostComponentInfo()const @@ -70,9 +70,9 @@ void ResizeClusterV2Request::setHostComponentInfo(const std::vector ResizeClusterV2Request::getHostGroup()const @@ -99,25 +99,25 @@ void ResizeClusterV2Request::setHostGroup(const std::vector& hostGrou for(int i = 0; i!= hostGroup.size(); i++) { auto obj = hostGroup.at(i); std::string str ="HostGroup."+ std::to_string(i); - setParameter(str + ".Period", std::to_string(obj.period)); - setParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); - setParameter(str + ".HostKeyPairName", obj.hostKeyPairName); - setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); - setParameter(str + ".SysDiskType", obj.sysDiskType); - setParameter(str + ".ClusterId", obj.clusterId); - setParameter(str + ".DiskType", obj.diskType); - setParameter(str + ".HostGroupName", obj.hostGroupName); - setParameter(str + ".VswitchId", std::to_string(obj.vswitchId)); - setParameter(str + ".DiskCount", std::to_string(obj.diskCount)); - setParameter(str + ".AutoRenew", std::to_string(obj.autoRenew)); - setParameter(str + ".HostGroupId", obj.hostGroupId); - setParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); - setParameter(str + ".InstanceType", obj.instanceType); - setParameter(str + ".Comment", obj.comment); - setParameter(str + ".ChargeType", obj.chargeType); - setParameter(str + ".CreateType", obj.createType); - setParameter(str + ".HostPassword", obj.hostPassword); - setParameter(str + ".HostGroupType", obj.hostGroupType); + setCoreParameter(str + ".Period", std::to_string(obj.period)); + setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity)); + setCoreParameter(str + ".HostKeyPairName", obj.hostKeyPairName); + setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity)); + setCoreParameter(str + ".SysDiskType", obj.sysDiskType); + setCoreParameter(str + ".ClusterId", obj.clusterId); + setCoreParameter(str + ".DiskType", obj.diskType); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + setCoreParameter(str + ".VswitchId", std::to_string(obj.vswitchId)); + setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount)); + setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false"); + setCoreParameter(str + ".HostGroupId", obj.hostGroupId); + setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount)); + setCoreParameter(str + ".InstanceType", obj.instanceType); + setCoreParameter(str + ".Comment", obj.comment); + setCoreParameter(str + ".ChargeType", obj.chargeType); + setCoreParameter(str + ".CreateType", obj.createType); + setCoreParameter(str + ".HostPassword", obj.hostPassword); + setCoreParameter(str + ".HostGroupType", obj.hostGroupType); } } @@ -129,7 +129,7 @@ std::string ResizeClusterV2Request::getClusterId()const void ResizeClusterV2Request::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string ResizeClusterV2Request::getAccessKeyId()const @@ -140,6 +140,6 @@ std::string ResizeClusterV2Request::getAccessKeyId()const void ResizeClusterV2Request::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ResizeClusterV2Result.cc b/emr/src/model/ResizeClusterV2Result.cc index f8056e37e..7d6e01076 100644 --- a/emr/src/model/ResizeClusterV2Result.cc +++ b/emr/src/model/ResizeClusterV2Result.cc @@ -35,10 +35,13 @@ ResizeClusterV2Result::~ResizeClusterV2Result() void ResizeClusterV2Result::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); diff --git a/emr/src/model/ResizeClusterWithHostPoolRequest.cc b/emr/src/model/ResizeClusterWithHostPoolRequest.cc new file mode 100644 index 000000000..84fc4009c --- /dev/null +++ b/emr/src/model/ResizeClusterWithHostPoolRequest.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Emr::Model::ResizeClusterWithHostPoolRequest; + +ResizeClusterWithHostPoolRequest::ResizeClusterWithHostPoolRequest() : + RpcServiceRequest("emr", "2016-04-08", "ResizeClusterWithHostPool") +{} + +ResizeClusterWithHostPoolRequest::~ResizeClusterWithHostPoolRequest() +{} + +long ResizeClusterWithHostPoolRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResizeClusterWithHostPoolRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResizeClusterWithHostPoolRequest::getRegionId()const +{ + return regionId_; +} + +void ResizeClusterWithHostPoolRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector ResizeClusterWithHostPoolRequest::getHostGroup()const +{ + return hostGroup_; +} + +void ResizeClusterWithHostPoolRequest::setHostGroup(const std::vector& hostGroup) +{ + hostGroup_ = hostGroup; + int i = 0; + for(int i = 0; i!= hostGroup.size(); i++) { + auto obj = hostGroup.at(i); + std::string str ="HostGroup."+ std::to_string(i); + setCoreParameter(str + ".GroupType", obj.groupType); + setCoreParameter(str + ".GroupId", obj.groupId); + setCoreParameter(str + ".GroupName", obj.groupName); + } +} + +std::vector ResizeClusterWithHostPoolRequest::getHostInfo()const +{ + return hostInfo_; +} + +void ResizeClusterWithHostPoolRequest::setHostInfo(const std::vector& hostInfo) +{ + hostInfo_ = hostInfo; + int i = 0; + for(int i = 0; i!= hostInfo.size(); i++) { + auto obj = hostInfo.at(i); + std::string str ="HostInfo."+ std::to_string(i); + setCoreParameter(str + ".HpHostBizId", obj.hpHostBizId); + setCoreParameter(str + ".HostName", obj.hostName); + setCoreParameter(str + ".Role", obj.role); + setCoreParameter(str + ".GroupId", obj.groupId); + setCoreParameter(str + ".PrivateIp", obj.privateIp); + setCoreParameter(str + ".ServiceComponentInfo", std::to_string(obj.serviceComponentInfo)); + setCoreParameter(str + ".HostGroupName", obj.hostGroupName); + setCoreParameter(str + ".HostGroupType", obj.hostGroupType); + } +} + +std::string ResizeClusterWithHostPoolRequest::getClusterId()const +{ + return clusterId_; +} + +void ResizeClusterWithHostPoolRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string ResizeClusterWithHostPoolRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ResizeClusterWithHostPoolRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/ResizeClusterWithHostPoolResult.cc b/emr/src/model/ResizeClusterWithHostPoolResult.cc new file mode 100644 index 000000000..e5d2eee33 --- /dev/null +++ b/emr/src/model/ResizeClusterWithHostPoolResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +ResizeClusterWithHostPoolResult::ResizeClusterWithHostPoolResult() : + ServiceResult() +{} + +ResizeClusterWithHostPoolResult::ResizeClusterWithHostPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResizeClusterWithHostPoolResult::~ResizeClusterWithHostPoolResult() +{} + +void ResizeClusterWithHostPoolResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["WorkFlowInstanceId"].isNull()) + workFlowInstanceId_ = value["WorkFlowInstanceId"].asString(); + if(!value["OperationId"].isNull()) + operationId_ = value["OperationId"].asString(); + +} + +std::string ResizeClusterWithHostPoolResult::getWorkFlowInstanceId()const +{ + return workFlowInstanceId_; +} + +std::string ResizeClusterWithHostPoolResult::getClusterId()const +{ + return clusterId_; +} + +std::string ResizeClusterWithHostPoolResult::getOperationId()const +{ + return operationId_; +} + diff --git a/emr/src/model/ResolveETLJobSqlSchemaRequest.cc b/emr/src/model/ResolveETLJobSqlSchemaRequest.cc index 74da9ad29..f7cfc99b6 100644 --- a/emr/src/model/ResolveETLJobSqlSchemaRequest.cc +++ b/emr/src/model/ResolveETLJobSqlSchemaRequest.cc @@ -33,7 +33,7 @@ std::string ResolveETLJobSqlSchemaRequest::getStageName()const void ResolveETLJobSqlSchemaRequest::setStageName(const std::string& stageName) { stageName_ = stageName; - setParameter("StageName", stageName); + setCoreParameter("StageName", stageName); } long ResolveETLJobSqlSchemaRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ResolveETLJobSqlSchemaRequest::getResourceOwnerId()const void ResolveETLJobSqlSchemaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ResolveETLJobSqlSchemaRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ResolveETLJobSqlSchemaRequest::getRegionId()const void ResolveETLJobSqlSchemaRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ResolveETLJobSqlSchemaRequest::getEtlJobId()const @@ -66,7 +66,7 @@ std::string ResolveETLJobSqlSchemaRequest::getEtlJobId()const void ResolveETLJobSqlSchemaRequest::setEtlJobId(const std::string& etlJobId) { etlJobId_ = etlJobId; - setParameter("EtlJobId", etlJobId); + setCoreParameter("EtlJobId", etlJobId); } std::string ResolveETLJobSqlSchemaRequest::getDataSourceId()const @@ -77,7 +77,7 @@ std::string ResolveETLJobSqlSchemaRequest::getDataSourceId()const void ResolveETLJobSqlSchemaRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string ResolveETLJobSqlSchemaRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string ResolveETLJobSqlSchemaRequest::getAccessKeyId()const void ResolveETLJobSqlSchemaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ResolveETLJobSqlSchemaRequest::getSql()const @@ -99,6 +99,6 @@ std::string ResolveETLJobSqlSchemaRequest::getSql()const void ResolveETLJobSqlSchemaRequest::setSql(const std::string& sql) { sql_ = sql; - setParameter("Sql", sql); + setCoreParameter("Sql", sql); } diff --git a/emr/src/model/ResolveETLJobSqlSchemaResult.cc b/emr/src/model/ResolveETLJobSqlSchemaResult.cc index b242f24e8..50838ffb8 100644 --- a/emr/src/model/ResolveETLJobSqlSchemaResult.cc +++ b/emr/src/model/ResolveETLJobSqlSchemaResult.cc @@ -35,10 +35,13 @@ ResolveETLJobSqlSchemaResult::~ResolveETLJobSqlSchemaResult() void ResolveETLJobSqlSchemaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ResolveId"].isNull()) resolveId_ = value["ResolveId"].asString(); diff --git a/emr/src/model/RestoreBackupRequest.cc b/emr/src/model/RestoreBackupRequest.cc new file mode 100644 index 000000000..5a0afda9e --- /dev/null +++ b/emr/src/model/RestoreBackupRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::RestoreBackupRequest; + +RestoreBackupRequest::RestoreBackupRequest() : + RpcServiceRequest("emr", "2016-04-08", "RestoreBackup") +{} + +RestoreBackupRequest::~RestoreBackupRequest() +{} + +std::string RestoreBackupRequest::getApp_ip()const +{ + return app_ip_; +} + +void RestoreBackupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long RestoreBackupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RestoreBackupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long RestoreBackupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RestoreBackupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool RestoreBackupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RestoreBackupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string RestoreBackupRequest::getCallerBid()const +{ + return callerBid_; +} + +void RestoreBackupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string RestoreBackupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RestoreBackupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool RestoreBackupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RestoreBackupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool RestoreBackupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RestoreBackupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string RestoreBackupRequest::getCallerType()const +{ + return callerType_; +} + +void RestoreBackupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string RestoreBackupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestoreBackupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool RestoreBackupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RestoreBackupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RestoreBackupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RestoreBackupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RestoreBackupRequest::getRegionId()const +{ + return regionId_; +} + +void RestoreBackupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RestoreBackupRequest::getRequestId()const +{ + return requestId_; +} + +void RestoreBackupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long RestoreBackupRequest::getCallerUid()const +{ + return callerUid_; +} + +void RestoreBackupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string RestoreBackupRequest::getBackupPlanId()const +{ + return backupPlanId_; +} + +void RestoreBackupRequest::setBackupPlanId(const std::string& backupPlanId) +{ + backupPlanId_ = backupPlanId; + setCoreParameter("BackupPlanId", backupPlanId); +} + +std::string RestoreBackupRequest::getBackupId()const +{ + return backupId_; +} + +void RestoreBackupRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", backupId); +} + diff --git a/emr/src/model/RestoreBackupResult.cc b/emr/src/model/RestoreBackupResult.cc new file mode 100644 index 000000000..61456ae65 --- /dev/null +++ b/emr/src/model/RestoreBackupResult.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr; +using namespace AlibabaCloud::Emr::Model; + +RestoreBackupResult::RestoreBackupResult() : + ServiceResult() +{} + +RestoreBackupResult::RestoreBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestoreBackupResult::~RestoreBackupResult() +{} + +void RestoreBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + if(!value["DataSourceId"].isNull()) + dataSourceId_ = std::stol(value["DataSourceId"].asString()); + if(!value["TaskType"].isNull()) + taskType_ = value["TaskType"].asString(); + if(!value["TaskStatus"].isNull()) + taskStatus_ = value["TaskStatus"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["TaskDetail"].isNull()) + taskDetail_ = value["TaskDetail"].asString(); + if(!value["TaskResultDetail"].isNull()) + taskResultDetail_ = value["TaskResultDetail"].asString(); + if(!value["TaskProcess"].isNull()) + taskProcess_ = std::stoi(value["TaskProcess"].asString()); + if(!value["TriggerUser"].isNull()) + triggerUser_ = value["TriggerUser"].asString(); + if(!value["TriggerType"].isNull()) + triggerType_ = value["TriggerType"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); + if(!value["GmtModified"].isNull()) + gmtModified_ = std::stol(value["GmtModified"].asString()); + if(!value["ClusterBizId"].isNull()) + clusterBizId_ = value["ClusterBizId"].asString(); + if(!value["HostName"].isNull()) + hostName_ = value["HostName"].asString(); + if(!value["EcmTaskId"].isNull()) + ecmTaskId_ = std::stol(value["EcmTaskId"].asString()); + +} + +std::string RestoreBackupResult::getTriggerType()const +{ + return triggerType_; +} + +long RestoreBackupResult::getEndTime()const +{ + return endTime_; +} + +long RestoreBackupResult::getStartTime()const +{ + return startTime_; +} + +long RestoreBackupResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string RestoreBackupResult::getTaskStatus()const +{ + return taskStatus_; +} + +std::string RestoreBackupResult::getTaskDetail()const +{ + return taskDetail_; +} + +std::string RestoreBackupResult::getTriggerUser()const +{ + return triggerUser_; +} + +long RestoreBackupResult::getGmtCreate()const +{ + return gmtCreate_; +} + +int RestoreBackupResult::getTaskProcess()const +{ + return taskProcess_; +} + +std::string RestoreBackupResult::getClusterBizId()const +{ + return clusterBizId_; +} + +std::string RestoreBackupResult::getTaskType()const +{ + return taskType_; +} + +std::string RestoreBackupResult::getBizId()const +{ + return bizId_; +} + +long RestoreBackupResult::getDataSourceId()const +{ + return dataSourceId_; +} + +std::string RestoreBackupResult::getHostName()const +{ + return hostName_; +} + +long RestoreBackupResult::getEcmTaskId()const +{ + return ecmTaskId_; +} + +std::string RestoreBackupResult::getTaskResultDetail()const +{ + return taskResultDetail_; +} + diff --git a/emr/src/model/ResumeExecutionPlanInstanceRequest.cc b/emr/src/model/ResumeExecutionPlanInstanceRequest.cc index 6a757f766..b70bd0689 100644 --- a/emr/src/model/ResumeExecutionPlanInstanceRequest.cc +++ b/emr/src/model/ResumeExecutionPlanInstanceRequest.cc @@ -33,7 +33,7 @@ long ResumeExecutionPlanInstanceRequest::getResourceOwnerId()const void ResumeExecutionPlanInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ResumeExecutionPlanInstanceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ResumeExecutionPlanInstanceRequest::getRegionId()const void ResumeExecutionPlanInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ResumeExecutionPlanInstanceRequest::getId()const @@ -55,7 +55,7 @@ std::string ResumeExecutionPlanInstanceRequest::getId()const void ResumeExecutionPlanInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ResumeExecutionPlanInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ResumeExecutionPlanInstanceRequest::getAccessKeyId()const void ResumeExecutionPlanInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ResumeExecutionPlanInstanceResult.cc b/emr/src/model/ResumeExecutionPlanInstanceResult.cc index 5748ef056..b3ceecb39 100644 --- a/emr/src/model/ResumeExecutionPlanInstanceResult.cc +++ b/emr/src/model/ResumeExecutionPlanInstanceResult.cc @@ -35,10 +35,13 @@ ResumeExecutionPlanInstanceResult::~ResumeExecutionPlanInstanceResult() void ResumeExecutionPlanInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ResumeExecutionPlanSchedulerRequest.cc b/emr/src/model/ResumeExecutionPlanSchedulerRequest.cc index d0b2f4024..baefdbd21 100644 --- a/emr/src/model/ResumeExecutionPlanSchedulerRequest.cc +++ b/emr/src/model/ResumeExecutionPlanSchedulerRequest.cc @@ -33,7 +33,7 @@ long ResumeExecutionPlanSchedulerRequest::getResourceOwnerId()const void ResumeExecutionPlanSchedulerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ResumeExecutionPlanSchedulerRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ResumeExecutionPlanSchedulerRequest::getRegionId()const void ResumeExecutionPlanSchedulerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ResumeExecutionPlanSchedulerRequest::getId()const @@ -55,7 +55,7 @@ std::string ResumeExecutionPlanSchedulerRequest::getId()const void ResumeExecutionPlanSchedulerRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string ResumeExecutionPlanSchedulerRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ResumeExecutionPlanSchedulerRequest::getAccessKeyId()const void ResumeExecutionPlanSchedulerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/ResumeExecutionPlanSchedulerResult.cc b/emr/src/model/ResumeExecutionPlanSchedulerResult.cc index fe7dd65da..962a8e2db 100644 --- a/emr/src/model/ResumeExecutionPlanSchedulerResult.cc +++ b/emr/src/model/ResumeExecutionPlanSchedulerResult.cc @@ -35,10 +35,13 @@ ResumeExecutionPlanSchedulerResult::~ResumeExecutionPlanSchedulerResult() void ResumeExecutionPlanSchedulerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/ResumeFlowRequest.cc b/emr/src/model/ResumeFlowRequest.cc index 9b82c5d29..5ca89fd73 100644 --- a/emr/src/model/ResumeFlowRequest.cc +++ b/emr/src/model/ResumeFlowRequest.cc @@ -33,7 +33,7 @@ std::string ResumeFlowRequest::getFlowInstanceId()const void ResumeFlowRequest::setFlowInstanceId(const std::string& flowInstanceId) { flowInstanceId_ = flowInstanceId; - setParameter("FlowInstanceId", flowInstanceId); + setCoreParameter("FlowInstanceId", flowInstanceId); } std::string ResumeFlowRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ResumeFlowRequest::getRegionId()const void ResumeFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ResumeFlowRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string ResumeFlowRequest::getProjectId()const void ResumeFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/ResumeFlowResult.cc b/emr/src/model/ResumeFlowResult.cc index 0046605ab..00f7a3794 100644 --- a/emr/src/model/ResumeFlowResult.cc +++ b/emr/src/model/ResumeFlowResult.cc @@ -35,10 +35,13 @@ ResumeFlowResult::~ResumeFlowResult() void ResumeFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/RetryExecutionPlanInstanceRequest.cc b/emr/src/model/RetryExecutionPlanInstanceRequest.cc index c9b9eae93..cb437761a 100644 --- a/emr/src/model/RetryExecutionPlanInstanceRequest.cc +++ b/emr/src/model/RetryExecutionPlanInstanceRequest.cc @@ -33,7 +33,7 @@ long RetryExecutionPlanInstanceRequest::getResourceOwnerId()const void RetryExecutionPlanInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RetryExecutionPlanInstanceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RetryExecutionPlanInstanceRequest::getRegionId()const void RetryExecutionPlanInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RetryExecutionPlanInstanceRequest::getArguments()const @@ -55,7 +55,7 @@ std::string RetryExecutionPlanInstanceRequest::getArguments()const void RetryExecutionPlanInstanceRequest::setArguments(const std::string& arguments) { arguments_ = arguments; - setParameter("Arguments", arguments); + setCoreParameter("Arguments", arguments); } std::string RetryExecutionPlanInstanceRequest::getId()const @@ -66,7 +66,7 @@ std::string RetryExecutionPlanInstanceRequest::getId()const void RetryExecutionPlanInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } bool RetryExecutionPlanInstanceRequest::getRerunFail()const @@ -77,7 +77,7 @@ bool RetryExecutionPlanInstanceRequest::getRerunFail()const void RetryExecutionPlanInstanceRequest::setRerunFail(bool rerunFail) { rerunFail_ = rerunFail; - setParameter("RerunFail", std::to_string(rerunFail)); + setCoreParameter("RerunFail", rerunFail ? "true" : "false"); } std::string RetryExecutionPlanInstanceRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string RetryExecutionPlanInstanceRequest::getAccessKeyId()const void RetryExecutionPlanInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RetryExecutionPlanInstanceResult.cc b/emr/src/model/RetryExecutionPlanInstanceResult.cc index 2624a852c..7fba09ebe 100644 --- a/emr/src/model/RetryExecutionPlanInstanceResult.cc +++ b/emr/src/model/RetryExecutionPlanInstanceResult.cc @@ -35,10 +35,13 @@ RetryExecutionPlanInstanceResult::~RetryExecutionPlanInstanceResult() void RetryExecutionPlanInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/RetryExecutionPlanRequest.cc b/emr/src/model/RetryExecutionPlanRequest.cc index 337c9301c..333b23175 100644 --- a/emr/src/model/RetryExecutionPlanRequest.cc +++ b/emr/src/model/RetryExecutionPlanRequest.cc @@ -33,7 +33,7 @@ long RetryExecutionPlanRequest::getResourceOwnerId()const void RetryExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RetryExecutionPlanRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RetryExecutionPlanRequest::getRegionId()const void RetryExecutionPlanRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RetryExecutionPlanRequest::getExecutionPlanWorkNodeIds()const @@ -55,7 +55,7 @@ std::string RetryExecutionPlanRequest::getExecutionPlanWorkNodeIds()const void RetryExecutionPlanRequest::setExecutionPlanWorkNodeIds(const std::string& executionPlanWorkNodeIds) { executionPlanWorkNodeIds_ = executionPlanWorkNodeIds; - setParameter("ExecutionPlanWorkNodeIds", executionPlanWorkNodeIds); + setCoreParameter("ExecutionPlanWorkNodeIds", executionPlanWorkNodeIds); } std::string RetryExecutionPlanRequest::getId()const @@ -66,7 +66,7 @@ std::string RetryExecutionPlanRequest::getId()const void RetryExecutionPlanRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string RetryExecutionPlanRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string RetryExecutionPlanRequest::getAccessKeyId()const void RetryExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RetryExecutionPlanResult.cc b/emr/src/model/RetryExecutionPlanResult.cc index 0578edad0..9d7557351 100644 --- a/emr/src/model/RetryExecutionPlanResult.cc +++ b/emr/src/model/RetryExecutionPlanResult.cc @@ -35,10 +35,13 @@ RetryExecutionPlanResult::~RetryExecutionPlanResult() void RetryExecutionPlanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ExecutionPlanInstanceId"].isNull()) executionPlanInstanceId_ = value["ExecutionPlanInstanceId"].asString(); diff --git a/emr/src/model/RetrySyncUserAccountRequest.cc b/emr/src/model/RetrySyncUserAccountRequest.cc new file mode 100644 index 000000000..d542b5b7f --- /dev/null +++ b/emr/src/model/RetrySyncUserAccountRequest.cc @@ -0,0 +1,237 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::RetrySyncUserAccountRequest; + +RetrySyncUserAccountRequest::RetrySyncUserAccountRequest() : + RpcServiceRequest("emr", "2016-04-08", "RetrySyncUserAccount") +{} + +RetrySyncUserAccountRequest::~RetrySyncUserAccountRequest() +{} + +std::string RetrySyncUserAccountRequest::getApp_ip()const +{ + return app_ip_; +} + +void RetrySyncUserAccountRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long RetrySyncUserAccountRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RetrySyncUserAccountRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RetrySyncUserAccountRequest::getResourceId()const +{ + return resourceId_; +} + +void RetrySyncUserAccountRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +std::vector RetrySyncUserAccountRequest::getAliyunUserIdList()const +{ + return aliyunUserIdList_; +} + +void RetrySyncUserAccountRequest::setAliyunUserIdList(const std::vector& aliyunUserIdList) +{ + aliyunUserIdList_ = aliyunUserIdList; + for(int i = 0; i!= aliyunUserIdList.size(); i++) + setCoreParameter("AliyunUserIdList."+ std::to_string(i), aliyunUserIdList.at(i)); +} + +long RetrySyncUserAccountRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RetrySyncUserAccountRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string RetrySyncUserAccountRequest::getAccountType()const +{ + return accountType_; +} + +void RetrySyncUserAccountRequest::setAccountType(const std::string& accountType) +{ + accountType_ = accountType; + setCoreParameter("AccountType", accountType); +} + +bool RetrySyncUserAccountRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RetrySyncUserAccountRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string RetrySyncUserAccountRequest::getCallerBid()const +{ + return callerBid_; +} + +void RetrySyncUserAccountRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string RetrySyncUserAccountRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RetrySyncUserAccountRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string RetrySyncUserAccountRequest::getResourceType()const +{ + return resourceType_; +} + +void RetrySyncUserAccountRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool RetrySyncUserAccountRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RetrySyncUserAccountRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool RetrySyncUserAccountRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RetrySyncUserAccountRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string RetrySyncUserAccountRequest::getCallerType()const +{ + return callerType_; +} + +void RetrySyncUserAccountRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string RetrySyncUserAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RetrySyncUserAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool RetrySyncUserAccountRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RetrySyncUserAccountRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RetrySyncUserAccountRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RetrySyncUserAccountRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RetrySyncUserAccountRequest::getRegionId()const +{ + return regionId_; +} + +void RetrySyncUserAccountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RetrySyncUserAccountRequest::getRequestId()const +{ + return requestId_; +} + +void RetrySyncUserAccountRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long RetrySyncUserAccountRequest::getCallerUid()const +{ + return callerUid_; +} + +void RetrySyncUserAccountRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/RetrySyncUserAccountResult.cc b/emr/src/model/RetrySyncUserAccountResult.cc new file mode 100644 index 000000000..cf34cbf35 --- /dev/null +++ b/emr/src/model/RetrySyncUserAccountResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +RetrySyncUserAccountResult::RetrySyncUserAccountResult() : + ServiceResult() +{} + +RetrySyncUserAccountResult::RetrySyncUserAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetrySyncUserAccountResult::~RetrySyncUserAccountResult() +{} + +void RetrySyncUserAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool RetrySyncUserAccountResult::getPaging()const +{ + return paging_; +} + +bool RetrySyncUserAccountResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/RunClusterServiceActionRequest.cc b/emr/src/model/RunClusterServiceActionRequest.cc index 5eda830da..c43a29020 100644 --- a/emr/src/model/RunClusterServiceActionRequest.cc +++ b/emr/src/model/RunClusterServiceActionRequest.cc @@ -33,7 +33,7 @@ std::string RunClusterServiceActionRequest::getExecuteStrategy()const void RunClusterServiceActionRequest::setExecuteStrategy(const std::string& executeStrategy) { executeStrategy_ = executeStrategy; - setParameter("ExecuteStrategy", executeStrategy); + setCoreParameter("ExecuteStrategy", executeStrategy); } std::vector RunClusterServiceActionRequest::getHostGroupIdList()const @@ -45,7 +45,7 @@ void RunClusterServiceActionRequest::setHostGroupIdList(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/RunETLJobRequest.cc b/emr/src/model/RunETLJobRequest.cc index e8e7ed7a1..f6a472eaf 100644 --- a/emr/src/model/RunETLJobRequest.cc +++ b/emr/src/model/RunETLJobRequest.cc @@ -33,7 +33,7 @@ long RunETLJobRequest::getResourceOwnerId()const void RunETLJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector RunETLJobRequest::getInstanceRunParam()const @@ -48,8 +48,8 @@ void RunETLJobRequest::setInstanceRunParam(const std::vector& for(int i = 0; i!= instanceRunParam.size(); i++) { auto obj = instanceRunParam.at(i); std::string str ="InstanceRunParam."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -61,7 +61,7 @@ std::string RunETLJobRequest::getRegionId()const void RunETLJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool RunETLJobRequest::getIsDebug()const @@ -72,7 +72,7 @@ bool RunETLJobRequest::getIsDebug()const void RunETLJobRequest::setIsDebug(bool isDebug) { isDebug_ = isDebug; - setParameter("IsDebug", std::to_string(isDebug)); + setCoreParameter("IsDebug", isDebug ? "true" : "false"); } std::string RunETLJobRequest::getId()const @@ -83,7 +83,7 @@ std::string RunETLJobRequest::getId()const void RunETLJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string RunETLJobRequest::getAccessKeyId()const @@ -94,6 +94,6 @@ std::string RunETLJobRequest::getAccessKeyId()const void RunETLJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RunETLJobResult.cc b/emr/src/model/RunETLJobResult.cc index 3c4f3a06d..56a017368 100644 --- a/emr/src/model/RunETLJobResult.cc +++ b/emr/src/model/RunETLJobResult.cc @@ -35,10 +35,13 @@ RunETLJobResult::~RunETLJobResult() void RunETLJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/emr/src/model/RunExecutionPlanRequest.cc b/emr/src/model/RunExecutionPlanRequest.cc index e56e2efe1..fa325a6f0 100644 --- a/emr/src/model/RunExecutionPlanRequest.cc +++ b/emr/src/model/RunExecutionPlanRequest.cc @@ -33,7 +33,7 @@ long RunExecutionPlanRequest::getResourceOwnerId()const void RunExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RunExecutionPlanRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RunExecutionPlanRequest::getRegionId()const void RunExecutionPlanRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RunExecutionPlanRequest::getArguments()const @@ -55,7 +55,7 @@ std::string RunExecutionPlanRequest::getArguments()const void RunExecutionPlanRequest::setArguments(const std::string& arguments) { arguments_ = arguments; - setParameter("Arguments", arguments); + setCoreParameter("Arguments", arguments); } std::string RunExecutionPlanRequest::getId()const @@ -66,7 +66,7 @@ std::string RunExecutionPlanRequest::getId()const void RunExecutionPlanRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string RunExecutionPlanRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string RunExecutionPlanRequest::getAccessKeyId()const void RunExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RunExecutionPlanResult.cc b/emr/src/model/RunExecutionPlanResult.cc index ff83294af..7a9263d14 100644 --- a/emr/src/model/RunExecutionPlanResult.cc +++ b/emr/src/model/RunExecutionPlanResult.cc @@ -35,10 +35,13 @@ RunExecutionPlanResult::~RunExecutionPlanResult() void RunExecutionPlanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ExecutionPlanInstanceId"].isNull()) executionPlanInstanceId_ = value["ExecutionPlanInstanceId"].asString(); diff --git a/emr/src/model/RunNoteParagraphsRequest.cc b/emr/src/model/RunNoteParagraphsRequest.cc index 0f02ed323..a2c958af4 100644 --- a/emr/src/model/RunNoteParagraphsRequest.cc +++ b/emr/src/model/RunNoteParagraphsRequest.cc @@ -33,7 +33,7 @@ long RunNoteParagraphsRequest::getResourceOwnerId()const void RunNoteParagraphsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RunNoteParagraphsRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RunNoteParagraphsRequest::getRegionId()const void RunNoteParagraphsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RunNoteParagraphsRequest::getNoteId()const @@ -55,7 +55,7 @@ std::string RunNoteParagraphsRequest::getNoteId()const void RunNoteParagraphsRequest::setNoteId(const std::string& noteId) { noteId_ = noteId; - setParameter("NoteId", noteId); + setCoreParameter("NoteId", noteId); } std::string RunNoteParagraphsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string RunNoteParagraphsRequest::getAccessKeyId()const void RunNoteParagraphsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RunNoteParagraphsResult.cc b/emr/src/model/RunNoteParagraphsResult.cc index 011825910..8e3fc21f6 100644 --- a/emr/src/model/RunNoteParagraphsResult.cc +++ b/emr/src/model/RunNoteParagraphsResult.cc @@ -35,10 +35,13 @@ RunNoteParagraphsResult::~RunNoteParagraphsResult() void RunNoteParagraphsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/RunOpsCommandRequest.cc b/emr/src/model/RunOpsCommandRequest.cc index 4dd835e4f..205ec3e09 100644 --- a/emr/src/model/RunOpsCommandRequest.cc +++ b/emr/src/model/RunOpsCommandRequest.cc @@ -33,7 +33,7 @@ long RunOpsCommandRequest::getResourceOwnerId()const void RunOpsCommandRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RunOpsCommandRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RunOpsCommandRequest::getRegionId()const void RunOpsCommandRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RunOpsCommandRequest::getOpsCommandName()const @@ -55,7 +55,7 @@ std::string RunOpsCommandRequest::getOpsCommandName()const void RunOpsCommandRequest::setOpsCommandName(const std::string& opsCommandName) { opsCommandName_ = opsCommandName; - setParameter("OpsCommandName", opsCommandName); + setCoreParameter("OpsCommandName", opsCommandName); } std::string RunOpsCommandRequest::getComment()const @@ -66,7 +66,7 @@ std::string RunOpsCommandRequest::getComment()const void RunOpsCommandRequest::setComment(const std::string& comment) { comment_ = comment; - setParameter("Comment", comment); + setCoreParameter("Comment", comment); } std::string RunOpsCommandRequest::getCustomParams()const @@ -77,7 +77,7 @@ std::string RunOpsCommandRequest::getCustomParams()const void RunOpsCommandRequest::setCustomParams(const std::string& customParams) { customParams_ = customParams; - setParameter("CustomParams", customParams); + setCoreParameter("CustomParams", customParams); } std::string RunOpsCommandRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string RunOpsCommandRequest::getClusterId()const void RunOpsCommandRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::vector RunOpsCommandRequest::getHostIdList()const @@ -100,7 +100,7 @@ void RunOpsCommandRequest::setHostIdList(const std::vector& hostIdL { hostIdList_ = hostIdList; for(int i = 0; i!= hostIdList.size(); i++) - setParameter("HostIdList."+ std::to_string(i), hostIdList.at(i)); + setCoreParameter("HostIdList."+ std::to_string(i), hostIdList.at(i)); } std::string RunOpsCommandRequest::getDimension()const @@ -111,7 +111,7 @@ std::string RunOpsCommandRequest::getDimension()const void RunOpsCommandRequest::setDimension(const std::string& dimension) { dimension_ = dimension; - setParameter("Dimension", dimension); + setCoreParameter("Dimension", dimension); } std::string RunOpsCommandRequest::getAccessKeyId()const @@ -122,6 +122,6 @@ std::string RunOpsCommandRequest::getAccessKeyId()const void RunOpsCommandRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RunOpsCommandResult.cc b/emr/src/model/RunOpsCommandResult.cc index b216beaf0..1a0e62cf1 100644 --- a/emr/src/model/RunOpsCommandResult.cc +++ b/emr/src/model/RunOpsCommandResult.cc @@ -35,10 +35,13 @@ RunOpsCommandResult::~RunOpsCommandResult() void RunOpsCommandResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OperationId"].isNull()) operationId_ = std::stol(value["OperationId"].asString()); diff --git a/emr/src/model/RunParagraphRequest.cc b/emr/src/model/RunParagraphRequest.cc index 3589d84f5..55a0bfe38 100644 --- a/emr/src/model/RunParagraphRequest.cc +++ b/emr/src/model/RunParagraphRequest.cc @@ -33,7 +33,7 @@ long RunParagraphRequest::getResourceOwnerId()const void RunParagraphRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RunParagraphRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RunParagraphRequest::getRegionId()const void RunParagraphRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RunParagraphRequest::getNoteId()const @@ -55,7 +55,7 @@ std::string RunParagraphRequest::getNoteId()const void RunParagraphRequest::setNoteId(const std::string& noteId) { noteId_ = noteId; - setParameter("NoteId", noteId); + setCoreParameter("NoteId", noteId); } std::string RunParagraphRequest::getId()const @@ -66,7 +66,7 @@ std::string RunParagraphRequest::getId()const void RunParagraphRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string RunParagraphRequest::getText()const @@ -77,7 +77,7 @@ std::string RunParagraphRequest::getText()const void RunParagraphRequest::setText(const std::string& text) { text_ = text; - setParameter("Text", text); + setCoreParameter("Text", text); } std::string RunParagraphRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string RunParagraphRequest::getAccessKeyId()const void RunParagraphRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/RunParagraphResult.cc b/emr/src/model/RunParagraphResult.cc index 782489319..01f99a2ea 100644 --- a/emr/src/model/RunParagraphResult.cc +++ b/emr/src/model/RunParagraphResult.cc @@ -35,10 +35,13 @@ RunParagraphResult::~RunParagraphResult() void RunParagraphResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/SaveBatchUserAccountInfoRequest.cc b/emr/src/model/SaveBatchUserAccountInfoRequest.cc new file mode 100644 index 000000000..88943daac --- /dev/null +++ b/emr/src/model/SaveBatchUserAccountInfoRequest.cc @@ -0,0 +1,270 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::SaveBatchUserAccountInfoRequest; + +SaveBatchUserAccountInfoRequest::SaveBatchUserAccountInfoRequest() : + RpcServiceRequest("emr", "2016-04-08", "SaveBatchUserAccountInfo") +{} + +SaveBatchUserAccountInfoRequest::~SaveBatchUserAccountInfoRequest() +{} + +std::string SaveBatchUserAccountInfoRequest::getApp_ip()const +{ + return app_ip_; +} + +void SaveBatchUserAccountInfoRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long SaveBatchUserAccountInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SaveBatchUserAccountInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SaveBatchUserAccountInfoRequest::getResourceId()const +{ + return resourceId_; +} + +void SaveBatchUserAccountInfoRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +std::vector SaveBatchUserAccountInfoRequest::getAliyunUserIdList()const +{ + return aliyunUserIdList_; +} + +void SaveBatchUserAccountInfoRequest::setAliyunUserIdList(const std::vector& aliyunUserIdList) +{ + aliyunUserIdList_ = aliyunUserIdList; + for(int i = 0; i!= aliyunUserIdList.size(); i++) + setCoreParameter("AliyunUserIdList."+ std::to_string(i), aliyunUserIdList.at(i)); +} + +long SaveBatchUserAccountInfoRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void SaveBatchUserAccountInfoRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string SaveBatchUserAccountInfoRequest::getAccountType()const +{ + return accountType_; +} + +void SaveBatchUserAccountInfoRequest::setAccountType(const std::string& accountType) +{ + accountType_ = accountType; + setCoreParameter("AccountType", accountType); +} + +bool SaveBatchUserAccountInfoRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void SaveBatchUserAccountInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string SaveBatchUserAccountInfoRequest::getCallerBid()const +{ + return callerBid_; +} + +void SaveBatchUserAccountInfoRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string SaveBatchUserAccountInfoRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void SaveBatchUserAccountInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string SaveBatchUserAccountInfoRequest::getGroupName()const +{ + return groupName_; +} + +void SaveBatchUserAccountInfoRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setCoreParameter("GroupName", groupName); +} + +std::string SaveBatchUserAccountInfoRequest::getResourceType()const +{ + return resourceType_; +} + +void SaveBatchUserAccountInfoRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool SaveBatchUserAccountInfoRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void SaveBatchUserAccountInfoRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool SaveBatchUserAccountInfoRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void SaveBatchUserAccountInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string SaveBatchUserAccountInfoRequest::getCallerType()const +{ + return callerType_; +} + +void SaveBatchUserAccountInfoRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string SaveBatchUserAccountInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SaveBatchUserAccountInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SaveBatchUserAccountInfoRequest::getAuthType()const +{ + return authType_; +} + +void SaveBatchUserAccountInfoRequest::setAuthType(const std::string& authType) +{ + authType_ = authType; + setCoreParameter("AuthType", authType); +} + +bool SaveBatchUserAccountInfoRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void SaveBatchUserAccountInfoRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string SaveBatchUserAccountInfoRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void SaveBatchUserAccountInfoRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setCoreParameter("AccountPassword", accountPassword); +} + +std::string SaveBatchUserAccountInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SaveBatchUserAccountInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string SaveBatchUserAccountInfoRequest::getRegionId()const +{ + return regionId_; +} + +void SaveBatchUserAccountInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SaveBatchUserAccountInfoRequest::getRequestId()const +{ + return requestId_; +} + +void SaveBatchUserAccountInfoRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long SaveBatchUserAccountInfoRequest::getCallerUid()const +{ + return callerUid_; +} + +void SaveBatchUserAccountInfoRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/SaveBatchUserAccountInfoResult.cc b/emr/src/model/SaveBatchUserAccountInfoResult.cc new file mode 100644 index 000000000..65bb4ceeb --- /dev/null +++ b/emr/src/model/SaveBatchUserAccountInfoResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +SaveBatchUserAccountInfoResult::SaveBatchUserAccountInfoResult() : + ServiceResult() +{} + +SaveBatchUserAccountInfoResult::SaveBatchUserAccountInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveBatchUserAccountInfoResult::~SaveBatchUserAccountInfoResult() +{} + +void SaveBatchUserAccountInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool SaveBatchUserAccountInfoResult::getPaging()const +{ + return paging_; +} + +bool SaveBatchUserAccountInfoResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/SaveParagraphRequest.cc b/emr/src/model/SaveParagraphRequest.cc index 48f1ab4af..fc1fb4825 100644 --- a/emr/src/model/SaveParagraphRequest.cc +++ b/emr/src/model/SaveParagraphRequest.cc @@ -33,7 +33,7 @@ long SaveParagraphRequest::getResourceOwnerId()const void SaveParagraphRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SaveParagraphRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string SaveParagraphRequest::getRegionId()const void SaveParagraphRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SaveParagraphRequest::getNoteId()const @@ -55,7 +55,7 @@ std::string SaveParagraphRequest::getNoteId()const void SaveParagraphRequest::setNoteId(const std::string& noteId) { noteId_ = noteId; - setParameter("NoteId", noteId); + setCoreParameter("NoteId", noteId); } std::string SaveParagraphRequest::getId()const @@ -66,7 +66,7 @@ std::string SaveParagraphRequest::getId()const void SaveParagraphRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string SaveParagraphRequest::getText()const @@ -77,7 +77,7 @@ std::string SaveParagraphRequest::getText()const void SaveParagraphRequest::setText(const std::string& text) { text_ = text; - setParameter("Text", text); + setCoreParameter("Text", text); } std::string SaveParagraphRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string SaveParagraphRequest::getAccessKeyId()const void SaveParagraphRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/SaveParagraphResult.cc b/emr/src/model/SaveParagraphResult.cc index ba777c2cd..34f709772 100644 --- a/emr/src/model/SaveParagraphResult.cc +++ b/emr/src/model/SaveParagraphResult.cc @@ -35,10 +35,13 @@ SaveParagraphResult::~SaveParagraphResult() void SaveParagraphResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/SaveUserAccountInfoRequest.cc b/emr/src/model/SaveUserAccountInfoRequest.cc new file mode 100644 index 000000000..d3c80904e --- /dev/null +++ b/emr/src/model/SaveUserAccountInfoRequest.cc @@ -0,0 +1,247 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::SaveUserAccountInfoRequest; + +SaveUserAccountInfoRequest::SaveUserAccountInfoRequest() : + RpcServiceRequest("emr", "2016-04-08", "SaveUserAccountInfo") +{} + +SaveUserAccountInfoRequest::~SaveUserAccountInfoRequest() +{} + +std::string SaveUserAccountInfoRequest::getApp_ip()const +{ + return app_ip_; +} + +void SaveUserAccountInfoRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long SaveUserAccountInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SaveUserAccountInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long SaveUserAccountInfoRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void SaveUserAccountInfoRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string SaveUserAccountInfoRequest::getAccountType()const +{ + return accountType_; +} + +void SaveUserAccountInfoRequest::setAccountType(const std::string& accountType) +{ + accountType_ = accountType; + setCoreParameter("AccountType", accountType); +} + +bool SaveUserAccountInfoRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void SaveUserAccountInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string SaveUserAccountInfoRequest::getCallerBid()const +{ + return callerBid_; +} + +void SaveUserAccountInfoRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string SaveUserAccountInfoRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void SaveUserAccountInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string SaveUserAccountInfoRequest::getGroupName()const +{ + return groupName_; +} + +void SaveUserAccountInfoRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setCoreParameter("GroupName", groupName); +} + +bool SaveUserAccountInfoRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void SaveUserAccountInfoRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool SaveUserAccountInfoRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void SaveUserAccountInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string SaveUserAccountInfoRequest::getCallerType()const +{ + return callerType_; +} + +void SaveUserAccountInfoRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string SaveUserAccountInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SaveUserAccountInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SaveUserAccountInfoRequest::getAuthType()const +{ + return authType_; +} + +void SaveUserAccountInfoRequest::setAuthType(const std::string& authType) +{ + authType_ = authType; + setCoreParameter("AuthType", authType); +} + +bool SaveUserAccountInfoRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void SaveUserAccountInfoRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string SaveUserAccountInfoRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void SaveUserAccountInfoRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setCoreParameter("AccountPassword", accountPassword); +} + +std::string SaveUserAccountInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SaveUserAccountInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string SaveUserAccountInfoRequest::getRegionId()const +{ + return regionId_; +} + +void SaveUserAccountInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SaveUserAccountInfoRequest::getRequestId()const +{ + return requestId_; +} + +void SaveUserAccountInfoRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long SaveUserAccountInfoRequest::getCallerUid()const +{ + return callerUid_; +} + +void SaveUserAccountInfoRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string SaveUserAccountInfoRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void SaveUserAccountInfoRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + diff --git a/emr/src/model/SaveUserAccountInfoResult.cc b/emr/src/model/SaveUserAccountInfoResult.cc new file mode 100644 index 000000000..f4fc3c511 --- /dev/null +++ b/emr/src/model/SaveUserAccountInfoResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +SaveUserAccountInfoResult::SaveUserAccountInfoResult() : + ServiceResult() +{} + +SaveUserAccountInfoResult::SaveUserAccountInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveUserAccountInfoResult::~SaveUserAccountInfoResult() +{} + +void SaveUserAccountInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool SaveUserAccountInfoResult::getPaging()const +{ + return paging_; +} + +bool SaveUserAccountInfoResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/SearchLogRequest.cc b/emr/src/model/SearchLogRequest.cc index e945070f7..4e73d0891 100644 --- a/emr/src/model/SearchLogRequest.cc +++ b/emr/src/model/SearchLogRequest.cc @@ -33,7 +33,7 @@ long SearchLogRequest::getResourceOwnerId()const void SearchLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SearchLogRequest::getLogstoreName()const @@ -44,7 +44,7 @@ std::string SearchLogRequest::getLogstoreName()const void SearchLogRequest::setLogstoreName(const std::string& logstoreName) { logstoreName_ = logstoreName; - setParameter("LogstoreName", logstoreName); + setCoreParameter("LogstoreName", logstoreName); } int SearchLogRequest::getFromTimestamp()const @@ -55,7 +55,7 @@ int SearchLogRequest::getFromTimestamp()const void SearchLogRequest::setFromTimestamp(int fromTimestamp) { fromTimestamp_ = fromTimestamp; - setParameter("FromTimestamp", std::to_string(fromTimestamp)); + setCoreParameter("FromTimestamp", std::to_string(fromTimestamp)); } int SearchLogRequest::getOffset()const @@ -66,7 +66,7 @@ int SearchLogRequest::getOffset()const void SearchLogRequest::setOffset(int offset) { offset_ = offset; - setParameter("Offset", std::to_string(offset)); + setCoreParameter("Offset", std::to_string(offset)); } int SearchLogRequest::getLine()const @@ -77,7 +77,7 @@ int SearchLogRequest::getLine()const void SearchLogRequest::setLine(int line) { line_ = line; - setParameter("Line", std::to_string(line)); + setCoreParameter("Line", std::to_string(line)); } std::string SearchLogRequest::getClusterId()const @@ -88,7 +88,7 @@ std::string SearchLogRequest::getClusterId()const void SearchLogRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } bool SearchLogRequest::getReverse()const @@ -99,7 +99,7 @@ bool SearchLogRequest::getReverse()const void SearchLogRequest::setReverse(bool reverse) { reverse_ = reverse; - setParameter("Reverse", std::to_string(reverse)); + setCoreParameter("Reverse", reverse ? "true" : "false"); } std::string SearchLogRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SearchLogRequest::getAccessKeyId()const void SearchLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SearchLogRequest::getHostInnerIp()const @@ -121,7 +121,7 @@ std::string SearchLogRequest::getHostInnerIp()const void SearchLogRequest::setHostInnerIp(const std::string& hostInnerIp) { hostInnerIp_ = hostInnerIp; - setParameter("HostInnerIp", hostInnerIp); + setCoreParameter("HostInnerIp", hostInnerIp); } std::string SearchLogRequest::getHostName()const @@ -132,7 +132,7 @@ std::string SearchLogRequest::getHostName()const void SearchLogRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string SearchLogRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string SearchLogRequest::getRegionId()const void SearchLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int SearchLogRequest::getToTimestamp()const @@ -154,7 +154,7 @@ int SearchLogRequest::getToTimestamp()const void SearchLogRequest::setToTimestamp(int toTimestamp) { toTimestamp_ = toTimestamp; - setParameter("ToTimestamp", std::to_string(toTimestamp)); + setCoreParameter("ToTimestamp", std::to_string(toTimestamp)); } std::string SearchLogRequest::getSlsQueryString()const @@ -165,6 +165,6 @@ std::string SearchLogRequest::getSlsQueryString()const void SearchLogRequest::setSlsQueryString(const std::string& slsQueryString) { slsQueryString_ = slsQueryString; - setParameter("SlsQueryString", slsQueryString); + setCoreParameter("SlsQueryString", slsQueryString); } diff --git a/emr/src/model/SearchLogResult.cc b/emr/src/model/SearchLogResult.cc index d009ddbc1..7cee1b50b 100644 --- a/emr/src/model/SearchLogResult.cc +++ b/emr/src/model/SearchLogResult.cc @@ -35,10 +35,13 @@ SearchLogResult::~SearchLogResult() void SearchLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSlsLogItemList = value["SlsLogItemList"]["SlsLogItem"]; for (auto value : allSlsLogItemList) diff --git a/emr/src/model/StartFlowRequest.cc b/emr/src/model/StartFlowRequest.cc index 2a6e77607..498cf937d 100644 --- a/emr/src/model/StartFlowRequest.cc +++ b/emr/src/model/StartFlowRequest.cc @@ -33,7 +33,7 @@ std::string StartFlowRequest::getFlowInstanceId()const void StartFlowRequest::setFlowInstanceId(const std::string& flowInstanceId) { flowInstanceId_ = flowInstanceId; - setParameter("FlowInstanceId", flowInstanceId); + setCoreParameter("FlowInstanceId", flowInstanceId); } std::string StartFlowRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string StartFlowRequest::getRegionId()const void StartFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string StartFlowRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string StartFlowRequest::getProjectId()const void StartFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/StartFlowResult.cc b/emr/src/model/StartFlowResult.cc index 436c232f4..4c6d3d00e 100644 --- a/emr/src/model/StartFlowResult.cc +++ b/emr/src/model/StartFlowResult.cc @@ -35,10 +35,13 @@ StartFlowResult::~StartFlowResult() void StartFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/StartKafkaBrokerDiskBalancerRequest.cc b/emr/src/model/StartKafkaBrokerDiskBalancerRequest.cc new file mode 100644 index 000000000..9dbf5dcd6 --- /dev/null +++ b/emr/src/model/StartKafkaBrokerDiskBalancerRequest.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 + +using AlibabaCloud::Emr::Model::StartKafkaBrokerDiskBalancerRequest; + +StartKafkaBrokerDiskBalancerRequest::StartKafkaBrokerDiskBalancerRequest() : + RpcServiceRequest("emr", "2016-04-08", "StartKafkaBrokerDiskBalancer") +{} + +StartKafkaBrokerDiskBalancerRequest::~StartKafkaBrokerDiskBalancerRequest() +{} + +long StartKafkaBrokerDiskBalancerRequest::getThrottle()const +{ + return throttle_; +} + +void StartKafkaBrokerDiskBalancerRequest::setThrottle(long throttle) +{ + throttle_ = throttle; + setCoreParameter("Throttle", std::to_string(throttle)); +} + +long StartKafkaBrokerDiskBalancerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartKafkaBrokerDiskBalancerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int StartKafkaBrokerDiskBalancerRequest::getBrokerId()const +{ + return brokerId_; +} + +void StartKafkaBrokerDiskBalancerRequest::setBrokerId(int brokerId) +{ + brokerId_ = brokerId; + setCoreParameter("BrokerId", std::to_string(brokerId)); +} + +std::string StartKafkaBrokerDiskBalancerRequest::getRegionId()const +{ + return regionId_; +} + +void StartKafkaBrokerDiskBalancerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string StartKafkaBrokerDiskBalancerRequest::getClusterId()const +{ + return clusterId_; +} + +void StartKafkaBrokerDiskBalancerRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setCoreParameter("ClusterId", clusterId); +} + +std::string StartKafkaBrokerDiskBalancerRequest::getBalanceThreshold()const +{ + return balanceThreshold_; +} + +void StartKafkaBrokerDiskBalancerRequest::setBalanceThreshold(const std::string& balanceThreshold) +{ + balanceThreshold_ = balanceThreshold; + setCoreParameter("BalanceThreshold", balanceThreshold); +} + +std::string StartKafkaBrokerDiskBalancerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartKafkaBrokerDiskBalancerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/StartKafkaBrokerDiskBalancerResult.cc b/emr/src/model/StartKafkaBrokerDiskBalancerResult.cc new file mode 100644 index 000000000..a211dffb0 --- /dev/null +++ b/emr/src/model/StartKafkaBrokerDiskBalancerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +StartKafkaBrokerDiskBalancerResult::StartKafkaBrokerDiskBalancerResult() : + ServiceResult() +{} + +StartKafkaBrokerDiskBalancerResult::StartKafkaBrokerDiskBalancerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartKafkaBrokerDiskBalancerResult::~StartKafkaBrokerDiskBalancerResult() +{} + +void StartKafkaBrokerDiskBalancerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/StartKafkaPreferredReplicaElectionRequest.cc b/emr/src/model/StartKafkaPreferredReplicaElectionRequest.cc new file mode 100644 index 000000000..060c3b3db --- /dev/null +++ b/emr/src/model/StartKafkaPreferredReplicaElectionRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::StartKafkaPreferredReplicaElectionRequest; + +StartKafkaPreferredReplicaElectionRequest::StartKafkaPreferredReplicaElectionRequest() : + RpcServiceRequest("emr", "2016-04-08", "StartKafkaPreferredReplicaElection") +{} + +StartKafkaPreferredReplicaElectionRequest::~StartKafkaPreferredReplicaElectionRequest() +{} + +long StartKafkaPreferredReplicaElectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartKafkaPreferredReplicaElectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StartKafkaPreferredReplicaElectionRequest::getTopicId()const +{ + return topicId_; +} + +void StartKafkaPreferredReplicaElectionRequest::setTopicId(const std::string& topicId) +{ + topicId_ = topicId; + setCoreParameter("TopicId", topicId); +} + +std::string StartKafkaPreferredReplicaElectionRequest::getRegionId()const +{ + return regionId_; +} + +void StartKafkaPreferredReplicaElectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string StartKafkaPreferredReplicaElectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartKafkaPreferredReplicaElectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/StartKafkaPreferredReplicaElectionResult.cc b/emr/src/model/StartKafkaPreferredReplicaElectionResult.cc new file mode 100644 index 000000000..6548a7e02 --- /dev/null +++ b/emr/src/model/StartKafkaPreferredReplicaElectionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +StartKafkaPreferredReplicaElectionResult::StartKafkaPreferredReplicaElectionResult() : + ServiceResult() +{} + +StartKafkaPreferredReplicaElectionResult::StartKafkaPreferredReplicaElectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartKafkaPreferredReplicaElectionResult::~StartKafkaPreferredReplicaElectionResult() +{} + +void StartKafkaPreferredReplicaElectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/StopParagraphRequest.cc b/emr/src/model/StopParagraphRequest.cc index 9cff99860..b41106fa4 100644 --- a/emr/src/model/StopParagraphRequest.cc +++ b/emr/src/model/StopParagraphRequest.cc @@ -33,7 +33,7 @@ long StopParagraphRequest::getResourceOwnerId()const void StopParagraphRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string StopParagraphRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string StopParagraphRequest::getRegionId()const void StopParagraphRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string StopParagraphRequest::getNoteId()const @@ -55,7 +55,7 @@ std::string StopParagraphRequest::getNoteId()const void StopParagraphRequest::setNoteId(const std::string& noteId) { noteId_ = noteId; - setParameter("NoteId", noteId); + setCoreParameter("NoteId", noteId); } std::string StopParagraphRequest::getId()const @@ -66,7 +66,7 @@ std::string StopParagraphRequest::getId()const void StopParagraphRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string StopParagraphRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string StopParagraphRequest::getAccessKeyId()const void StopParagraphRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/StopParagraphResult.cc b/emr/src/model/StopParagraphResult.cc index 15c872365..29c319ec2 100644 --- a/emr/src/model/StopParagraphResult.cc +++ b/emr/src/model/StopParagraphResult.cc @@ -35,10 +35,13 @@ StopParagraphResult::~StopParagraphResult() void StopParagraphResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/SubmitFlowJobRequest.cc b/emr/src/model/SubmitFlowJobRequest.cc index 195de0667..65398040c 100644 --- a/emr/src/model/SubmitFlowJobRequest.cc +++ b/emr/src/model/SubmitFlowJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitFlowJobRequest::getJobId()const void SubmitFlowJobRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } std::string SubmitFlowJobRequest::getHostName()const @@ -44,7 +44,7 @@ std::string SubmitFlowJobRequest::getHostName()const void SubmitFlowJobRequest::setHostName(const std::string& hostName) { hostName_ = hostName; - setParameter("HostName", hostName); + setCoreParameter("HostName", hostName); } std::string SubmitFlowJobRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string SubmitFlowJobRequest::getRegionId()const void SubmitFlowJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SubmitFlowJobRequest::getConf()const @@ -66,7 +66,7 @@ std::string SubmitFlowJobRequest::getConf()const void SubmitFlowJobRequest::setConf(const std::string& conf) { conf_ = conf; - setParameter("Conf", conf); + setCoreParameter("Conf", conf); } std::string SubmitFlowJobRequest::getClusterId()const @@ -77,7 +77,7 @@ std::string SubmitFlowJobRequest::getClusterId()const void SubmitFlowJobRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string SubmitFlowJobRequest::getProjectId()const @@ -88,6 +88,6 @@ std::string SubmitFlowJobRequest::getProjectId()const void SubmitFlowJobRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/SubmitFlowJobResult.cc b/emr/src/model/SubmitFlowJobResult.cc index 17f15ab3c..2116d00b8 100644 --- a/emr/src/model/SubmitFlowJobResult.cc +++ b/emr/src/model/SubmitFlowJobResult.cc @@ -35,10 +35,13 @@ SubmitFlowJobResult::~SubmitFlowJobResult() void SubmitFlowJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/emr/src/model/SubmitFlowRequest.cc b/emr/src/model/SubmitFlowRequest.cc index e7526fc60..9634cb9ec 100644 --- a/emr/src/model/SubmitFlowRequest.cc +++ b/emr/src/model/SubmitFlowRequest.cc @@ -33,7 +33,7 @@ std::string SubmitFlowRequest::getRegionId()const void SubmitFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SubmitFlowRequest::getConf()const @@ -44,7 +44,7 @@ std::string SubmitFlowRequest::getConf()const void SubmitFlowRequest::setConf(const std::string& conf) { conf_ = conf; - setParameter("Conf", conf); + setCoreParameter("Conf", conf); } std::string SubmitFlowRequest::getProjectId()const @@ -55,7 +55,7 @@ std::string SubmitFlowRequest::getProjectId()const void SubmitFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string SubmitFlowRequest::getFlowId()const @@ -66,6 +66,6 @@ std::string SubmitFlowRequest::getFlowId()const void SubmitFlowRequest::setFlowId(const std::string& flowId) { flowId_ = flowId; - setParameter("FlowId", flowId); + setCoreParameter("FlowId", flowId); } diff --git a/emr/src/model/SubmitFlowResult.cc b/emr/src/model/SubmitFlowResult.cc index 1f83a5ac1..060e5ca9c 100644 --- a/emr/src/model/SubmitFlowResult.cc +++ b/emr/src/model/SubmitFlowResult.cc @@ -35,16 +35,33 @@ SubmitFlowResult::~SubmitFlowResult() void SubmitFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); if(!value["Id"].isNull()) id_ = value["Id"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } +std::string SubmitFlowResult::getInstanceId()const +{ + return instanceId_; +} + +std::string SubmitFlowResult::getData()const +{ + return data_; +} + std::string SubmitFlowResult::getId()const { return id_; diff --git a/emr/src/model/SuspendExecutionPlanInstanceRequest.cc b/emr/src/model/SuspendExecutionPlanInstanceRequest.cc index 81b09799f..e798d388c 100644 --- a/emr/src/model/SuspendExecutionPlanInstanceRequest.cc +++ b/emr/src/model/SuspendExecutionPlanInstanceRequest.cc @@ -33,7 +33,7 @@ long SuspendExecutionPlanInstanceRequest::getResourceOwnerId()const void SuspendExecutionPlanInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SuspendExecutionPlanInstanceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string SuspendExecutionPlanInstanceRequest::getRegionId()const void SuspendExecutionPlanInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SuspendExecutionPlanInstanceRequest::getId()const @@ -55,7 +55,7 @@ std::string SuspendExecutionPlanInstanceRequest::getId()const void SuspendExecutionPlanInstanceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string SuspendExecutionPlanInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string SuspendExecutionPlanInstanceRequest::getAccessKeyId()const void SuspendExecutionPlanInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/SuspendExecutionPlanInstanceResult.cc b/emr/src/model/SuspendExecutionPlanInstanceResult.cc index 83f772df7..e55f788c7 100644 --- a/emr/src/model/SuspendExecutionPlanInstanceResult.cc +++ b/emr/src/model/SuspendExecutionPlanInstanceResult.cc @@ -35,10 +35,13 @@ SuspendExecutionPlanInstanceResult::~SuspendExecutionPlanInstanceResult() void SuspendExecutionPlanInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/SuspendExecutionPlanSchedulerRequest.cc b/emr/src/model/SuspendExecutionPlanSchedulerRequest.cc index 2cfc5fe56..7c311d026 100644 --- a/emr/src/model/SuspendExecutionPlanSchedulerRequest.cc +++ b/emr/src/model/SuspendExecutionPlanSchedulerRequest.cc @@ -33,7 +33,7 @@ long SuspendExecutionPlanSchedulerRequest::getResourceOwnerId()const void SuspendExecutionPlanSchedulerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SuspendExecutionPlanSchedulerRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string SuspendExecutionPlanSchedulerRequest::getRegionId()const void SuspendExecutionPlanSchedulerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SuspendExecutionPlanSchedulerRequest::getId()const @@ -55,7 +55,7 @@ std::string SuspendExecutionPlanSchedulerRequest::getId()const void SuspendExecutionPlanSchedulerRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string SuspendExecutionPlanSchedulerRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string SuspendExecutionPlanSchedulerRequest::getAccessKeyId()const void SuspendExecutionPlanSchedulerRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/SuspendExecutionPlanSchedulerResult.cc b/emr/src/model/SuspendExecutionPlanSchedulerResult.cc index a2413c149..ba9ed25aa 100644 --- a/emr/src/model/SuspendExecutionPlanSchedulerResult.cc +++ b/emr/src/model/SuspendExecutionPlanSchedulerResult.cc @@ -35,10 +35,13 @@ SuspendExecutionPlanSchedulerResult::~SuspendExecutionPlanSchedulerResult() void SuspendExecutionPlanSchedulerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/SuspendFlowRequest.cc b/emr/src/model/SuspendFlowRequest.cc index b5dbded5a..5540c2415 100644 --- a/emr/src/model/SuspendFlowRequest.cc +++ b/emr/src/model/SuspendFlowRequest.cc @@ -33,7 +33,7 @@ std::string SuspendFlowRequest::getFlowInstanceId()const void SuspendFlowRequest::setFlowInstanceId(const std::string& flowInstanceId) { flowInstanceId_ = flowInstanceId; - setParameter("FlowInstanceId", flowInstanceId); + setCoreParameter("FlowInstanceId", flowInstanceId); } std::string SuspendFlowRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string SuspendFlowRequest::getRegionId()const void SuspendFlowRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SuspendFlowRequest::getProjectId()const @@ -55,6 +55,6 @@ std::string SuspendFlowRequest::getProjectId()const void SuspendFlowRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } diff --git a/emr/src/model/SuspendFlowResult.cc b/emr/src/model/SuspendFlowResult.cc index 4cbf8b6ce..3183d30e4 100644 --- a/emr/src/model/SuspendFlowResult.cc +++ b/emr/src/model/SuspendFlowResult.cc @@ -35,10 +35,13 @@ SuspendFlowResult::~SuspendFlowResult() void SuspendFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; diff --git a/emr/src/model/SyncDataSourceSchemaDatabaseRequest.cc b/emr/src/model/SyncDataSourceSchemaDatabaseRequest.cc index a0b1985e9..260017e93 100644 --- a/emr/src/model/SyncDataSourceSchemaDatabaseRequest.cc +++ b/emr/src/model/SyncDataSourceSchemaDatabaseRequest.cc @@ -33,7 +33,7 @@ long SyncDataSourceSchemaDatabaseRequest::getResourceOwnerId()const void SyncDataSourceSchemaDatabaseRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SyncDataSourceSchemaDatabaseRequest::getDbName()const @@ -44,7 +44,7 @@ std::string SyncDataSourceSchemaDatabaseRequest::getDbName()const void SyncDataSourceSchemaDatabaseRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string SyncDataSourceSchemaDatabaseRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string SyncDataSourceSchemaDatabaseRequest::getRegionId()const void SyncDataSourceSchemaDatabaseRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SyncDataSourceSchemaDatabaseRequest::getEtlJobId()const @@ -66,7 +66,7 @@ std::string SyncDataSourceSchemaDatabaseRequest::getEtlJobId()const void SyncDataSourceSchemaDatabaseRequest::setEtlJobId(const std::string& etlJobId) { etlJobId_ = etlJobId; - setParameter("EtlJobId", etlJobId); + setCoreParameter("EtlJobId", etlJobId); } std::string SyncDataSourceSchemaDatabaseRequest::getDataSourceId()const @@ -77,7 +77,7 @@ std::string SyncDataSourceSchemaDatabaseRequest::getDataSourceId()const void SyncDataSourceSchemaDatabaseRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string SyncDataSourceSchemaDatabaseRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string SyncDataSourceSchemaDatabaseRequest::getAccessKeyId()const void SyncDataSourceSchemaDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/SyncDataSourceSchemaDatabaseResult.cc b/emr/src/model/SyncDataSourceSchemaDatabaseResult.cc index 73f8c685a..155c9f7f6 100644 --- a/emr/src/model/SyncDataSourceSchemaDatabaseResult.cc +++ b/emr/src/model/SyncDataSourceSchemaDatabaseResult.cc @@ -35,10 +35,13 @@ SyncDataSourceSchemaDatabaseResult::~SyncDataSourceSchemaDatabaseResult() void SyncDataSourceSchemaDatabaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CommandId"].isNull()) commandId_ = value["CommandId"].asString(); diff --git a/emr/src/model/SyncDataSourceSchemaTableRequest.cc b/emr/src/model/SyncDataSourceSchemaTableRequest.cc index f764abd1d..a9dc45ac7 100644 --- a/emr/src/model/SyncDataSourceSchemaTableRequest.cc +++ b/emr/src/model/SyncDataSourceSchemaTableRequest.cc @@ -33,7 +33,7 @@ long SyncDataSourceSchemaTableRequest::getResourceOwnerId()const void SyncDataSourceSchemaTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SyncDataSourceSchemaTableRequest::getDbName()const @@ -44,7 +44,7 @@ std::string SyncDataSourceSchemaTableRequest::getDbName()const void SyncDataSourceSchemaTableRequest::setDbName(const std::string& dbName) { dbName_ = dbName; - setParameter("DbName", dbName); + setCoreParameter("DbName", dbName); } std::string SyncDataSourceSchemaTableRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string SyncDataSourceSchemaTableRequest::getRegionId()const void SyncDataSourceSchemaTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SyncDataSourceSchemaTableRequest::getEtlJobId()const @@ -66,7 +66,7 @@ std::string SyncDataSourceSchemaTableRequest::getEtlJobId()const void SyncDataSourceSchemaTableRequest::setEtlJobId(const std::string& etlJobId) { etlJobId_ = etlJobId; - setParameter("EtlJobId", etlJobId); + setCoreParameter("EtlJobId", etlJobId); } std::string SyncDataSourceSchemaTableRequest::getDataSourceId()const @@ -77,7 +77,7 @@ std::string SyncDataSourceSchemaTableRequest::getDataSourceId()const void SyncDataSourceSchemaTableRequest::setDataSourceId(const std::string& dataSourceId) { dataSourceId_ = dataSourceId; - setParameter("DataSourceId", dataSourceId); + setCoreParameter("DataSourceId", dataSourceId); } std::string SyncDataSourceSchemaTableRequest::getTableName()const @@ -88,7 +88,7 @@ std::string SyncDataSourceSchemaTableRequest::getTableName()const void SyncDataSourceSchemaTableRequest::setTableName(const std::string& tableName) { tableName_ = tableName; - setParameter("TableName", tableName); + setCoreParameter("TableName", tableName); } std::string SyncDataSourceSchemaTableRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string SyncDataSourceSchemaTableRequest::getAccessKeyId()const void SyncDataSourceSchemaTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/SyncDataSourceSchemaTableResult.cc b/emr/src/model/SyncDataSourceSchemaTableResult.cc index a80228191..f6399488d 100644 --- a/emr/src/model/SyncDataSourceSchemaTableResult.cc +++ b/emr/src/model/SyncDataSourceSchemaTableResult.cc @@ -35,10 +35,13 @@ SyncDataSourceSchemaTableResult::~SyncDataSourceSchemaTableResult() void SyncDataSourceSchemaTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CommandId"].isNull()) commandId_ = value["CommandId"].asString(); diff --git a/emr/src/model/TerminateClusterOperationRequest.cc b/emr/src/model/TerminateClusterOperationRequest.cc index fc571e79f..d45f84d23 100644 --- a/emr/src/model/TerminateClusterOperationRequest.cc +++ b/emr/src/model/TerminateClusterOperationRequest.cc @@ -33,7 +33,7 @@ long TerminateClusterOperationRequest::getResourceOwnerId()const void TerminateClusterOperationRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string TerminateClusterOperationRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string TerminateClusterOperationRequest::getRegionId()const void TerminateClusterOperationRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string TerminateClusterOperationRequest::getOperationId()const @@ -55,7 +55,7 @@ std::string TerminateClusterOperationRequest::getOperationId()const void TerminateClusterOperationRequest::setOperationId(const std::string& operationId) { operationId_ = operationId; - setParameter("OperationId", operationId); + setCoreParameter("OperationId", operationId); } std::string TerminateClusterOperationRequest::getClusterId()const @@ -66,7 +66,7 @@ std::string TerminateClusterOperationRequest::getClusterId()const void TerminateClusterOperationRequest::setClusterId(const std::string& clusterId) { clusterId_ = clusterId; - setParameter("ClusterId", clusterId); + setCoreParameter("ClusterId", clusterId); } std::string TerminateClusterOperationRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string TerminateClusterOperationRequest::getAccessKeyId()const void TerminateClusterOperationRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/TerminateClusterOperationResult.cc b/emr/src/model/TerminateClusterOperationResult.cc index 1339d4d33..637c7ec32 100644 --- a/emr/src/model/TerminateClusterOperationResult.cc +++ b/emr/src/model/TerminateClusterOperationResult.cc @@ -35,10 +35,13 @@ TerminateClusterOperationResult::~TerminateClusterOperationResult() void TerminateClusterOperationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/UpdateDataSourceRequest.cc b/emr/src/model/UpdateDataSourceRequest.cc index 20fa81ecc..093d0a500 100644 --- a/emr/src/model/UpdateDataSourceRequest.cc +++ b/emr/src/model/UpdateDataSourceRequest.cc @@ -33,7 +33,7 @@ long UpdateDataSourceRequest::getResourceOwnerId()const void UpdateDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateDataSourceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateDataSourceRequest::getRegionId()const void UpdateDataSourceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UpdateDataSourceRequest::getName()const @@ -55,7 +55,7 @@ std::string UpdateDataSourceRequest::getName()const void UpdateDataSourceRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateDataSourceRequest::getDescription()const @@ -66,7 +66,7 @@ std::string UpdateDataSourceRequest::getDescription()const void UpdateDataSourceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string UpdateDataSourceRequest::getConf()const @@ -77,7 +77,7 @@ std::string UpdateDataSourceRequest::getConf()const void UpdateDataSourceRequest::setConf(const std::string& conf) { conf_ = conf; - setParameter("Conf", conf); + setCoreParameter("Conf", conf); } std::string UpdateDataSourceRequest::getId()const @@ -88,7 +88,7 @@ std::string UpdateDataSourceRequest::getId()const void UpdateDataSourceRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string UpdateDataSourceRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UpdateDataSourceRequest::getAccessKeyId()const void UpdateDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/UpdateDataSourceResult.cc b/emr/src/model/UpdateDataSourceResult.cc index 120890123..dd4a398d3 100644 --- a/emr/src/model/UpdateDataSourceResult.cc +++ b/emr/src/model/UpdateDataSourceResult.cc @@ -35,10 +35,13 @@ UpdateDataSourceResult::~UpdateDataSourceResult() void UpdateDataSourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/UpdateETLJobRequest.cc b/emr/src/model/UpdateETLJobRequest.cc index 893403402..960b5c99a 100644 --- a/emr/src/model/UpdateETLJobRequest.cc +++ b/emr/src/model/UpdateETLJobRequest.cc @@ -33,25 +33,7 @@ long UpdateETLJobRequest::getResourceOwnerId()const void UpdateETLJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::vector UpdateETLJobRequest::getStageConnection()const -{ - return stageConnection_; -} - -void UpdateETLJobRequest::setStageConnection(const std::vector& stageConnection) -{ - stageConnection_ = stageConnection; - int i = 0; - for(int i = 0; i!= stageConnection.size(); i++) { - auto obj = stageConnection.at(i); - std::string str ="StageConnection."+ std::to_string(i); - setParameter(str + ".Port", obj.port); - setParameter(str + ".From", obj.from); - setParameter(str + ".To", obj.to); - } + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateETLJobRequest::getClusterConfig()const @@ -62,7 +44,7 @@ std::string UpdateETLJobRequest::getClusterConfig()const void UpdateETLJobRequest::setClusterConfig(const std::string& clusterConfig) { clusterConfig_ = clusterConfig; - setParameter("ClusterConfig", clusterConfig); + setCoreParameter("ClusterConfig", clusterConfig); } std::vector UpdateETLJobRequest::getTriggerRule()const @@ -77,10 +59,72 @@ void UpdateETLJobRequest::setTriggerRule(const std::vector& trigger for(int i = 0; i!= triggerRule.size(); i++) { auto obj = triggerRule.at(i); std::string str ="TriggerRule."+ std::to_string(i); - setParameter(str + ".CronExpr", obj.cronExpr); - setParameter(str + ".EndTime", std::to_string(obj.endTime)); - setParameter(str + ".StartTime", std::to_string(obj.startTime)); - setParameter(str + ".Enabled", std::to_string(obj.enabled)); + setCoreParameter(str + ".CronExpr", obj.cronExpr); + setCoreParameter(str + ".EndTime", std::to_string(obj.endTime)); + setCoreParameter(str + ".StartTime", std::to_string(obj.startTime)); + setCoreParameter(str + ".Enabled", obj.enabled ? "true" : "false"); + } +} + +std::string UpdateETLJobRequest::getAlertConfig()const +{ + return alertConfig_; +} + +void UpdateETLJobRequest::setAlertConfig(const std::string& alertConfig) +{ + alertConfig_ = alertConfig; + setCoreParameter("AlertConfig", alertConfig); +} + +std::string UpdateETLJobRequest::getDescription()const +{ + return description_; +} + +void UpdateETLJobRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +bool UpdateETLJobRequest::getCheck()const +{ + return check_; +} + +void UpdateETLJobRequest::setCheck(bool check) +{ + check_ = check; + setCoreParameter("Check", check ? "true" : "false"); +} + +std::string UpdateETLJobRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateETLJobRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::vector UpdateETLJobRequest::getStageConnection()const +{ + return stageConnection_; +} + +void UpdateETLJobRequest::setStageConnection(const std::vector& stageConnection) +{ + stageConnection_ = stageConnection; + int i = 0; + for(int i = 0; i!= stageConnection.size(); i++) { + auto obj = stageConnection.at(i); + std::string str ="StageConnection."+ std::to_string(i); + setCoreParameter(str + ".Port", obj.port); + setCoreParameter(str + ".From", obj.from); + setCoreParameter(str + ".To", obj.to); } } @@ -96,10 +140,10 @@ void UpdateETLJobRequest::setStage(const std::vector& stage) for(int i = 0; i!= stage.size(); i++) { auto obj = stage.at(i); std::string str ="Stage."+ std::to_string(i); - setParameter(str + ".StageName", obj.stageName); - setParameter(str + ".StageConf", obj.stageConf); - setParameter(str + ".StageType", obj.stageType); - setParameter(str + ".StagePlugin", obj.stagePlugin); + setCoreParameter(str + ".StageName", obj.stageName); + setCoreParameter(str + ".StageConf", obj.stageConf); + setCoreParameter(str + ".StageType", obj.stageType); + setCoreParameter(str + ".StagePlugin", obj.stagePlugin); } } @@ -111,18 +155,7 @@ std::string UpdateETLJobRequest::getRegionId()const void UpdateETLJobRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string UpdateETLJobRequest::getAlertConfig()const -{ - return alertConfig_; -} - -void UpdateETLJobRequest::setAlertConfig(const std::string& alertConfig) -{ - alertConfig_ = alertConfig; - setParameter("AlertConfig", alertConfig); + setCoreParameter("RegionId", regionId); } std::string UpdateETLJobRequest::getName()const @@ -133,18 +166,7 @@ std::string UpdateETLJobRequest::getName()const void UpdateETLJobRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); -} - -std::string UpdateETLJobRequest::getDescription()const -{ - return description_; -} - -void UpdateETLJobRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); + setCoreParameter("Name", name); } std::string UpdateETLJobRequest::getId()const @@ -155,28 +177,6 @@ std::string UpdateETLJobRequest::getId()const void UpdateETLJobRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); -} - -bool UpdateETLJobRequest::getCheck()const -{ - return check_; -} - -void UpdateETLJobRequest::setCheck(bool check) -{ - check_ = check; - setParameter("Check", std::to_string(check)); -} - -std::string UpdateETLJobRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateETLJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("Id", id); } diff --git a/emr/src/model/UpdateETLJobResult.cc b/emr/src/model/UpdateETLJobResult.cc index c3da21593..b546a9ba1 100644 --- a/emr/src/model/UpdateETLJobResult.cc +++ b/emr/src/model/UpdateETLJobResult.cc @@ -35,10 +35,13 @@ UpdateETLJobResult::~UpdateETLJobResult() void UpdateETLJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/UpdateETLJobStageRequest.cc b/emr/src/model/UpdateETLJobStageRequest.cc index df59c8696..4aaf67cbe 100644 --- a/emr/src/model/UpdateETLJobStageRequest.cc +++ b/emr/src/model/UpdateETLJobStageRequest.cc @@ -33,7 +33,7 @@ std::string UpdateETLJobStageRequest::getStageName()const void UpdateETLJobStageRequest::setStageName(const std::string& stageName) { stageName_ = stageName; - setParameter("StageName", stageName); + setCoreParameter("StageName", stageName); } std::string UpdateETLJobStageRequest::getStageConf()const @@ -44,7 +44,7 @@ std::string UpdateETLJobStageRequest::getStageConf()const void UpdateETLJobStageRequest::setStageConf(const std::string& stageConf) { stageConf_ = stageConf; - setParameter("StageConf", stageConf); + setCoreParameter("StageConf", stageConf); } long UpdateETLJobStageRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long UpdateETLJobStageRequest::getResourceOwnerId()const void UpdateETLJobStageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateETLJobStageRequest::getStageType()const @@ -66,7 +66,7 @@ std::string UpdateETLJobStageRequest::getStageType()const void UpdateETLJobStageRequest::setStageType(const std::string& stageType) { stageType_ = stageType; - setParameter("StageType", stageType); + setCoreParameter("StageType", stageType); } std::string UpdateETLJobStageRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string UpdateETLJobStageRequest::getRegionId()const void UpdateETLJobStageRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UpdateETLJobStageRequest::getEtlJobId()const @@ -88,7 +88,7 @@ std::string UpdateETLJobStageRequest::getEtlJobId()const void UpdateETLJobStageRequest::setEtlJobId(const std::string& etlJobId) { etlJobId_ = etlJobId; - setParameter("EtlJobId", etlJobId); + setCoreParameter("EtlJobId", etlJobId); } std::string UpdateETLJobStageRequest::getStagePlugin()const @@ -99,7 +99,7 @@ std::string UpdateETLJobStageRequest::getStagePlugin()const void UpdateETLJobStageRequest::setStagePlugin(const std::string& stagePlugin) { stagePlugin_ = stagePlugin; - setParameter("StagePlugin", stagePlugin); + setCoreParameter("StagePlugin", stagePlugin); } std::string UpdateETLJobStageRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string UpdateETLJobStageRequest::getAccessKeyId()const void UpdateETLJobStageRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/UpdateETLJobStageResult.cc b/emr/src/model/UpdateETLJobStageResult.cc index a376d1c78..ff9868f77 100644 --- a/emr/src/model/UpdateETLJobStageResult.cc +++ b/emr/src/model/UpdateETLJobStageResult.cc @@ -35,10 +35,13 @@ UpdateETLJobStageResult::~UpdateETLJobStageResult() void UpdateETLJobStageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/UpdateKafkaReassignParamRequest.cc b/emr/src/model/UpdateKafkaReassignParamRequest.cc new file mode 100644 index 000000000..1fd485649 --- /dev/null +++ b/emr/src/model/UpdateKafkaReassignParamRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Emr::Model::UpdateKafkaReassignParamRequest; + +UpdateKafkaReassignParamRequest::UpdateKafkaReassignParamRequest() : + RpcServiceRequest("emr", "2016-04-08", "UpdateKafkaReassignParam") +{} + +UpdateKafkaReassignParamRequest::~UpdateKafkaReassignParamRequest() +{} + +long UpdateKafkaReassignParamRequest::getThrottle()const +{ + return throttle_; +} + +void UpdateKafkaReassignParamRequest::setThrottle(long throttle) +{ + throttle_ = throttle; + setCoreParameter("Throttle", std::to_string(throttle)); +} + +long UpdateKafkaReassignParamRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateKafkaReassignParamRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateKafkaReassignParamRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateKafkaReassignParamRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpdateKafkaReassignParamRequest::getReassignId()const +{ + return reassignId_; +} + +void UpdateKafkaReassignParamRequest::setReassignId(const std::string& reassignId) +{ + reassignId_ = reassignId; + setCoreParameter("ReassignId", reassignId); +} + +std::string UpdateKafkaReassignParamRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateKafkaReassignParamRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/emr/src/model/UpdateKafkaReassignParamResult.cc b/emr/src/model/UpdateKafkaReassignParamResult.cc new file mode 100644 index 000000000..23a2349bf --- /dev/null +++ b/emr/src/model/UpdateKafkaReassignParamResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +UpdateKafkaReassignParamResult::UpdateKafkaReassignParamResult() : + ServiceResult() +{} + +UpdateKafkaReassignParamResult::UpdateKafkaReassignParamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateKafkaReassignParamResult::~UpdateKafkaReassignParamResult() +{} + +void UpdateKafkaReassignParamResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/UpdateNavNodeRequest.cc b/emr/src/model/UpdateNavNodeRequest.cc index e9068ccf4..ada428029 100644 --- a/emr/src/model/UpdateNavNodeRequest.cc +++ b/emr/src/model/UpdateNavNodeRequest.cc @@ -33,7 +33,7 @@ long UpdateNavNodeRequest::getResourceOwnerId()const void UpdateNavNodeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateNavNodeRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateNavNodeRequest::getRegionId()const void UpdateNavNodeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UpdateNavNodeRequest::getName()const @@ -55,7 +55,7 @@ std::string UpdateNavNodeRequest::getName()const void UpdateNavNodeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateNavNodeRequest::getId()const @@ -66,7 +66,7 @@ std::string UpdateNavNodeRequest::getId()const void UpdateNavNodeRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string UpdateNavNodeRequest::getProjectId()const @@ -77,7 +77,7 @@ std::string UpdateNavNodeRequest::getProjectId()const void UpdateNavNodeRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string UpdateNavNodeRequest::getParentId()const @@ -88,7 +88,7 @@ std::string UpdateNavNodeRequest::getParentId()const void UpdateNavNodeRequest::setParentId(const std::string& parentId) { parentId_ = parentId; - setParameter("ParentId", parentId); + setCoreParameter("ParentId", parentId); } std::string UpdateNavNodeRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UpdateNavNodeRequest::getAccessKeyId()const void UpdateNavNodeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/UpdateNavNodeResult.cc b/emr/src/model/UpdateNavNodeResult.cc index 6d50c29e4..17e2062f8 100644 --- a/emr/src/model/UpdateNavNodeResult.cc +++ b/emr/src/model/UpdateNavNodeResult.cc @@ -35,10 +35,13 @@ UpdateNavNodeResult::~UpdateNavNodeResult() void UpdateNavNodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/UpdateProjectSettingRequest.cc b/emr/src/model/UpdateProjectSettingRequest.cc index 8e02b4e0e..b81fd750c 100644 --- a/emr/src/model/UpdateProjectSettingRequest.cc +++ b/emr/src/model/UpdateProjectSettingRequest.cc @@ -33,7 +33,7 @@ long UpdateProjectSettingRequest::getResourceOwnerId()const void UpdateProjectSettingRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateProjectSettingRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UpdateProjectSettingRequest::getRegionId()const void UpdateProjectSettingRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UpdateProjectSettingRequest::getDefaultOssPath()const @@ -55,7 +55,7 @@ std::string UpdateProjectSettingRequest::getDefaultOssPath()const void UpdateProjectSettingRequest::setDefaultOssPath(const std::string& defaultOssPath) { defaultOssPath_ = defaultOssPath; - setParameter("DefaultOssPath", defaultOssPath); + setCoreParameter("DefaultOssPath", defaultOssPath); } std::string UpdateProjectSettingRequest::getProjectId()const @@ -66,7 +66,7 @@ std::string UpdateProjectSettingRequest::getProjectId()const void UpdateProjectSettingRequest::setProjectId(const std::string& projectId) { projectId_ = projectId; - setParameter("ProjectId", projectId); + setCoreParameter("ProjectId", projectId); } std::string UpdateProjectSettingRequest::getOssConfig()const @@ -77,7 +77,7 @@ std::string UpdateProjectSettingRequest::getOssConfig()const void UpdateProjectSettingRequest::setOssConfig(const std::string& ossConfig) { ossConfig_ = ossConfig; - setParameter("OssConfig", ossConfig); + setCoreParameter("OssConfig", ossConfig); } std::string UpdateProjectSettingRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string UpdateProjectSettingRequest::getAccessKeyId()const void UpdateProjectSettingRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/emr/src/model/UpdateProjectSettingResult.cc b/emr/src/model/UpdateProjectSettingResult.cc index 3a0538726..0c762d728 100644 --- a/emr/src/model/UpdateProjectSettingResult.cc +++ b/emr/src/model/UpdateProjectSettingResult.cc @@ -35,10 +35,13 @@ UpdateProjectSettingResult::~UpdateProjectSettingResult() void UpdateProjectSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/emr/src/model/UpdateUserGroupRequest.cc b/emr/src/model/UpdateUserGroupRequest.cc new file mode 100644 index 000000000..2ff0e5b5d --- /dev/null +++ b/emr/src/model/UpdateUserGroupRequest.cc @@ -0,0 +1,248 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::UpdateUserGroupRequest; + +UpdateUserGroupRequest::UpdateUserGroupRequest() : + RpcServiceRequest("emr", "2016-04-08", "UpdateUserGroup") +{} + +UpdateUserGroupRequest::~UpdateUserGroupRequest() +{} + +std::string UpdateUserGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateUserGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long UpdateUserGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateUserGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long UpdateUserGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UpdateUserGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::vector UpdateUserGroupRequest::getRoleId()const +{ + return roleId_; +} + +void UpdateUserGroupRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int i = 0; i!= roleId.size(); i++) + setCoreParameter("RoleId."+ std::to_string(i), std::to_string(roleId.at(i))); +} + +bool UpdateUserGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UpdateUserGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UpdateUserGroupRequest::getDescription()const +{ + return description_; +} + +void UpdateUserGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string UpdateUserGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateUserGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string UpdateUserGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UpdateUserGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string UpdateUserGroupRequest::getType()const +{ + return type_; +} + +void UpdateUserGroupRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +bool UpdateUserGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateUserGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UpdateUserGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateUserGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string UpdateUserGroupRequest::getCallerType()const +{ + return callerType_; +} + +void UpdateUserGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UpdateUserGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateUserGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool UpdateUserGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateUserGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UpdateUserGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateUserGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpdateUserGroupRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateUserGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpdateUserGroupRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateUserGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string UpdateUserGroupRequest::getName()const +{ + return name_; +} + +void UpdateUserGroupRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long UpdateUserGroupRequest::getId()const +{ + return id_; +} + +void UpdateUserGroupRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +long UpdateUserGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void UpdateUserGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/emr/src/model/UpdateUserGroupResult.cc b/emr/src/model/UpdateUserGroupResult.cc new file mode 100644 index 000000000..54549ed73 --- /dev/null +++ b/emr/src/model/UpdateUserGroupResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +UpdateUserGroupResult::UpdateUserGroupResult() : + ServiceResult() +{} + +UpdateUserGroupResult::UpdateUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserGroupResult::~UpdateUserGroupResult() +{} + +void UpdateUserGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool UpdateUserGroupResult::getPaging()const +{ + return paging_; +} + +bool UpdateUserGroupResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/UpdateUserRequest.cc b/emr/src/model/UpdateUserRequest.cc new file mode 100644 index 000000000..e924b353e --- /dev/null +++ b/emr/src/model/UpdateUserRequest.cc @@ -0,0 +1,289 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() : + RpcServiceRequest("emr", "2016-04-08", "UpdateUser") +{} + +UpdateUserRequest::~UpdateUserRequest() +{} + +std::string UpdateUserRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateUserRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long UpdateUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long UpdateUserRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UpdateUserRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UpdateUserRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UpdateUserRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UpdateUserRequest::getUserType()const +{ + return userType_; +} + +void UpdateUserRequest::setUserType(const std::string& userType) +{ + userType_ = userType; + setCoreParameter("UserType", userType); +} + +std::string UpdateUserRequest::getDescription()const +{ + return description_; +} + +void UpdateUserRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string UpdateUserRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateUserRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string UpdateUserRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UpdateUserRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool UpdateUserRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateUserRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UpdateUserRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateUserRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string UpdateUserRequest::getCallerType()const +{ + return callerType_; +} + +void UpdateUserRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UpdateUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::vector UpdateUserRequest::getUserAccountParamList()const +{ + return userAccountParamList_; +} + +void UpdateUserRequest::setUserAccountParamList(const std::vector& userAccountParamList) +{ + userAccountParamList_ = userAccountParamList; + int i = 0; + for(int i = 0; i!= userAccountParamList.size(); i++) { + auto obj = userAccountParamList.at(i); + std::string str ="UserAccountParamList."+ std::to_string(i); + setCoreParameter(str + ".AccountType", obj.accountType); + setCoreParameter(str + ".AuthType", obj.authType); + setCoreParameter(str + ".AccountPassword", obj.accountPassword); + } +} + +bool UpdateUserRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateUserRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::vector UpdateUserRequest::getGroupIdList()const +{ + return groupIdList_; +} + +void UpdateUserRequest::setGroupIdList(const std::vector& groupIdList) +{ + groupIdList_ = groupIdList; + for(int i = 0; i!= groupIdList.size(); i++) + setCoreParameter("GroupIdList."+ std::to_string(i), std::to_string(groupIdList.at(i))); +} + +std::string UpdateUserRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateUserRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpdateUserRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpdateUserRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateUserRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::vector UpdateUserRequest::getRoleIdList()const +{ + return roleIdList_; +} + +void UpdateUserRequest::setRoleIdList(const std::vector& roleIdList) +{ + roleIdList_ = roleIdList; + for(int i = 0; i!= roleIdList.size(); i++) + setCoreParameter("RoleIdList."+ std::to_string(i), std::to_string(roleIdList.at(i))); +} + +long UpdateUserRequest::getCallerUid()const +{ + return callerUid_; +} + +void UpdateUserRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UpdateUserRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void UpdateUserRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + +std::string UpdateUserRequest::getUserName()const +{ + return userName_; +} + +void UpdateUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + +std::string UpdateUserRequest::getStatus()const +{ + return status_; +} + +void UpdateUserRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/emr/src/model/UpdateUserResult.cc b/emr/src/model/UpdateUserResult.cc new file mode 100644 index 000000000..2a8d27035 --- /dev/null +++ b/emr/src/model/UpdateUserResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +UpdateUserResult::UpdateUserResult() : + ServiceResult() +{} + +UpdateUserResult::UpdateUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserResult::~UpdateUserResult() +{} + +void UpdateUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool UpdateUserResult::getPaging()const +{ + return paging_; +} + +bool UpdateUserResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/UpdateUserStatusRequest.cc b/emr/src/model/UpdateUserStatusRequest.cc new file mode 100644 index 000000000..9fc8971e6 --- /dev/null +++ b/emr/src/model/UpdateUserStatusRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::UpdateUserStatusRequest; + +UpdateUserStatusRequest::UpdateUserStatusRequest() : + RpcServiceRequest("emr", "2016-04-08", "UpdateUserStatus") +{} + +UpdateUserStatusRequest::~UpdateUserStatusRequest() +{} + +std::string UpdateUserStatusRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateUserStatusRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long UpdateUserStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateUserStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long UpdateUserStatusRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UpdateUserStatusRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UpdateUserStatusRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UpdateUserStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UpdateUserStatusRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateUserStatusRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string UpdateUserStatusRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UpdateUserStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool UpdateUserStatusRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateUserStatusRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UpdateUserStatusRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateUserStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string UpdateUserStatusRequest::getCallerType()const +{ + return callerType_; +} + +void UpdateUserStatusRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UpdateUserStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateUserStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool UpdateUserStatusRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateUserStatusRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UpdateUserStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateUserStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpdateUserStatusRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateUserStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpdateUserStatusRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateUserStatusRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long UpdateUserStatusRequest::getCallerUid()const +{ + return callerUid_; +} + +void UpdateUserStatusRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UpdateUserStatusRequest::getAliyunUserId()const +{ + return aliyunUserId_; +} + +void UpdateUserStatusRequest::setAliyunUserId(const std::string& aliyunUserId) +{ + aliyunUserId_ = aliyunUserId; + setCoreParameter("AliyunUserId", aliyunUserId); +} + +std::string UpdateUserStatusRequest::getUpdateStatus()const +{ + return updateStatus_; +} + +void UpdateUserStatusRequest::setUpdateStatus(const std::string& updateStatus) +{ + updateStatus_ = updateStatus; + setCoreParameter("UpdateStatus", updateStatus); +} + diff --git a/emr/src/model/UpdateUserStatusResult.cc b/emr/src/model/UpdateUserStatusResult.cc new file mode 100644 index 000000000..b43dbd62e --- /dev/null +++ b/emr/src/model/UpdateUserStatusResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +UpdateUserStatusResult::UpdateUserStatusResult() : + ServiceResult() +{} + +UpdateUserStatusResult::UpdateUserStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserStatusResult::~UpdateUserStatusResult() +{} + +void UpdateUserStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Paging"].isNull()) + paging_ = value["Paging"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool UpdateUserStatusResult::getPaging()const +{ + return paging_; +} + +bool UpdateUserStatusResult::getData()const +{ + return data_; +} + diff --git a/emr/src/model/UpdateWorkspaceRepoSettingRequest.cc b/emr/src/model/UpdateWorkspaceRepoSettingRequest.cc new file mode 100644 index 000000000..83ec59746 --- /dev/null +++ b/emr/src/model/UpdateWorkspaceRepoSettingRequest.cc @@ -0,0 +1,238 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::UpdateWorkspaceRepoSettingRequest; + +UpdateWorkspaceRepoSettingRequest::UpdateWorkspaceRepoSettingRequest() : + RpcServiceRequest("emr", "2016-04-08", "UpdateWorkspaceRepoSetting") +{} + +UpdateWorkspaceRepoSettingRequest::~UpdateWorkspaceRepoSettingRequest() +{} + +std::string UpdateWorkspaceRepoSettingRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateWorkspaceRepoSettingRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long UpdateWorkspaceRepoSettingRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateWorkspaceRepoSettingRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long UpdateWorkspaceRepoSettingRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UpdateWorkspaceRepoSettingRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UpdateWorkspaceRepoSettingRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UpdateWorkspaceRepoSettingRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UpdateWorkspaceRepoSettingRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateWorkspaceRepoSettingRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string UpdateWorkspaceRepoSettingRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UpdateWorkspaceRepoSettingRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool UpdateWorkspaceRepoSettingRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateWorkspaceRepoSettingRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UpdateWorkspaceRepoSettingRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateWorkspaceRepoSettingRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string UpdateWorkspaceRepoSettingRequest::getCallerType()const +{ + return callerType_; +} + +void UpdateWorkspaceRepoSettingRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UpdateWorkspaceRepoSettingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateWorkspaceRepoSettingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool UpdateWorkspaceRepoSettingRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateWorkspaceRepoSettingRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UpdateWorkspaceRepoSettingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateWorkspaceRepoSettingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpdateWorkspaceRepoSettingRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateWorkspaceRepoSettingRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpdateWorkspaceRepoSettingRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateWorkspaceRepoSettingRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::vector UpdateWorkspaceRepoSettingRequest::getRepoMaven()const +{ + return repoMaven_; +} + +void UpdateWorkspaceRepoSettingRequest::setRepoMaven(const std::vector& repoMaven) +{ + repoMaven_ = repoMaven; + int i = 0; + for(int i = 0; i!= repoMaven.size(); i++) { + auto obj = repoMaven.at(i); + std::string str ="RepoMaven."+ std::to_string(i); + setCoreParameter(str + ".GroupId", obj.groupId); + setCoreParameter(str + ".ArtifactId", obj.artifactId); + setCoreParameter(str + ".Version", obj.version); + } +} + +std::vector UpdateWorkspaceRepoSettingRequest::getRepoPip()const +{ + return repoPip_; +} + +void UpdateWorkspaceRepoSettingRequest::setRepoPip(const std::vector& repoPip) +{ + repoPip_ = repoPip; + int i = 0; + for(int i = 0; i!= repoPip.size(); i++) { + auto obj = repoPip.at(i); + std::string str ="RepoPip."+ std::to_string(i); + setCoreParameter(str + ".PackageName", obj.packageName); + setCoreParameter(str + ".Version", obj.version); + } +} + +long UpdateWorkspaceRepoSettingRequest::getCallerUid()const +{ + return callerUid_; +} + +void UpdateWorkspaceRepoSettingRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UpdateWorkspaceRepoSettingRequest::getWorkspaceId()const +{ + return workspaceId_; +} + +void UpdateWorkspaceRepoSettingRequest::setWorkspaceId(const std::string& workspaceId) +{ + workspaceId_ = workspaceId; + setCoreParameter("WorkspaceId", workspaceId); +} + diff --git a/emr/src/model/UpdateWorkspaceRepoSettingResult.cc b/emr/src/model/UpdateWorkspaceRepoSettingResult.cc new file mode 100644 index 000000000..f43b8a3e2 --- /dev/null +++ b/emr/src/model/UpdateWorkspaceRepoSettingResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +UpdateWorkspaceRepoSettingResult::UpdateWorkspaceRepoSettingResult() : + ServiceResult() +{} + +UpdateWorkspaceRepoSettingResult::UpdateWorkspaceRepoSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateWorkspaceRepoSettingResult::~UpdateWorkspaceRepoSettingResult() +{} + +void UpdateWorkspaceRepoSettingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/emr/src/model/UpdateWorkspaceResourceSettingRequest.cc b/emr/src/model/UpdateWorkspaceResourceSettingRequest.cc new file mode 100644 index 000000000..46db9ab21 --- /dev/null +++ b/emr/src/model/UpdateWorkspaceResourceSettingRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Emr::Model::UpdateWorkspaceResourceSettingRequest; + +UpdateWorkspaceResourceSettingRequest::UpdateWorkspaceResourceSettingRequest() : + RpcServiceRequest("emr", "2016-04-08", "UpdateWorkspaceResourceSetting") +{} + +UpdateWorkspaceResourceSettingRequest::~UpdateWorkspaceResourceSettingRequest() +{} + +std::string UpdateWorkspaceResourceSettingRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateWorkspaceResourceSettingRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long UpdateWorkspaceResourceSettingRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateWorkspaceResourceSettingRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long UpdateWorkspaceResourceSettingRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UpdateWorkspaceResourceSettingRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UpdateWorkspaceResourceSettingRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UpdateWorkspaceResourceSettingRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UpdateWorkspaceResourceSettingRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateWorkspaceResourceSettingRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +std::string UpdateWorkspaceResourceSettingRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UpdateWorkspaceResourceSettingRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +bool UpdateWorkspaceResourceSettingRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateWorkspaceResourceSettingRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UpdateWorkspaceResourceSettingRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateWorkspaceResourceSettingRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +std::string UpdateWorkspaceResourceSettingRequest::getCallerType()const +{ + return callerType_; +} + +void UpdateWorkspaceResourceSettingRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UpdateWorkspaceResourceSettingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateWorkspaceResourceSettingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool UpdateWorkspaceResourceSettingRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateWorkspaceResourceSettingRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UpdateWorkspaceResourceSettingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateWorkspaceResourceSettingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpdateWorkspaceResourceSettingRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateWorkspaceResourceSettingRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpdateWorkspaceResourceSettingRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateWorkspaceResourceSettingRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long UpdateWorkspaceResourceSettingRequest::getCallerUid()const +{ + return callerUid_; +} + +void UpdateWorkspaceResourceSettingRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UpdateWorkspaceResourceSettingRequest::getWorkspaceId()const +{ + return workspaceId_; +} + +void UpdateWorkspaceResourceSettingRequest::setWorkspaceId(const std::string& workspaceId) +{ + workspaceId_ = workspaceId; + setCoreParameter("WorkspaceId", workspaceId); +} + +std::string UpdateWorkspaceResourceSettingRequest::getOssSetting()const +{ + return ossSetting_; +} + +void UpdateWorkspaceResourceSettingRequest::setOssSetting(const std::string& ossSetting) +{ + ossSetting_ = ossSetting; + setCoreParameter("OssSetting", ossSetting); +} + diff --git a/emr/src/model/UpdateWorkspaceResourceSettingResult.cc b/emr/src/model/UpdateWorkspaceResourceSettingResult.cc new file mode 100644 index 000000000..f49709002 --- /dev/null +++ b/emr/src/model/UpdateWorkspaceResourceSettingResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Emr; +using namespace AlibabaCloud::Emr::Model; + +UpdateWorkspaceResourceSettingResult::UpdateWorkspaceResourceSettingResult() : + ServiceResult() +{} + +UpdateWorkspaceResourceSettingResult::UpdateWorkspaceResourceSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateWorkspaceResourceSettingResult::~UpdateWorkspaceResourceSettingResult() +{} + +void UpdateWorkspaceResourceSettingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ess/CMakeLists.txt b/ess/CMakeLists.txt index a4afb1cf9..9ad53cab3 100755 --- a/ess/CMakeLists.txt +++ b/ess/CMakeLists.txt @@ -99,18 +99,18 @@ set(ess_public_header_model include/alibabacloud/ess/model/DeactivateScalingConfigurationResult.h include/alibabacloud/ess/model/CreateNotificationConfigurationRequest.h include/alibabacloud/ess/model/CreateNotificationConfigurationResult.h - include/alibabacloud/ess/model/ModifyScheduledTaskRequest.h - include/alibabacloud/ess/model/ModifyScheduledTaskResult.h include/alibabacloud/ess/model/RecordLifecycleActionHeartbeatRequest.h include/alibabacloud/ess/model/RecordLifecycleActionHeartbeatResult.h + include/alibabacloud/ess/model/ModifyScheduledTaskRequest.h + include/alibabacloud/ess/model/ModifyScheduledTaskResult.h include/alibabacloud/ess/model/DeleteScalingGroupRequest.h include/alibabacloud/ess/model/DeleteScalingGroupResult.h include/alibabacloud/ess/model/CreateScalingConfigurationRequest.h include/alibabacloud/ess/model/CreateScalingConfigurationResult.h - include/alibabacloud/ess/model/DescribeRegionsRequest.h - include/alibabacloud/ess/model/DescribeRegionsResult.h include/alibabacloud/ess/model/DetachDBInstancesRequest.h include/alibabacloud/ess/model/DetachDBInstancesResult.h + include/alibabacloud/ess/model/DescribeRegionsRequest.h + include/alibabacloud/ess/model/DescribeRegionsResult.h include/alibabacloud/ess/model/SetInstancesProtectionRequest.h include/alibabacloud/ess/model/SetInstancesProtectionResult.h include/alibabacloud/ess/model/AttachLoadBalancersRequest.h @@ -123,20 +123,20 @@ set(ess_public_header_model include/alibabacloud/ess/model/ModifyScalingConfigurationResult.h include/alibabacloud/ess/model/DescribeLimitationRequest.h include/alibabacloud/ess/model/DescribeLimitationResult.h - include/alibabacloud/ess/model/DescribeAlertConfigRequest.h - include/alibabacloud/ess/model/DescribeAlertConfigResult.h include/alibabacloud/ess/model/CreateScalingGroupRequest.h include/alibabacloud/ess/model/CreateScalingGroupResult.h + include/alibabacloud/ess/model/DescribeAlertConfigRequest.h + include/alibabacloud/ess/model/DescribeAlertConfigResult.h include/alibabacloud/ess/model/DeleteScalingConfigurationRequest.h include/alibabacloud/ess/model/DeleteScalingConfigurationResult.h include/alibabacloud/ess/model/DisableScalingGroupRequest.h include/alibabacloud/ess/model/DisableScalingGroupResult.h include/alibabacloud/ess/model/ModifyScalingRuleRequest.h include/alibabacloud/ess/model/ModifyScalingRuleResult.h - include/alibabacloud/ess/model/DeleteScalingRuleRequest.h - include/alibabacloud/ess/model/DeleteScalingRuleResult.h include/alibabacloud/ess/model/AttachDBInstancesRequest.h include/alibabacloud/ess/model/AttachDBInstancesResult.h + include/alibabacloud/ess/model/DeleteScalingRuleRequest.h + include/alibabacloud/ess/model/DeleteScalingRuleResult.h include/alibabacloud/ess/model/CreateLifecycleHookRequest.h include/alibabacloud/ess/model/CreateLifecycleHookResult.h include/alibabacloud/ess/model/EnableAlarmRequest.h @@ -224,18 +224,18 @@ set(ess_src src/model/DeactivateScalingConfigurationResult.cc src/model/CreateNotificationConfigurationRequest.cc src/model/CreateNotificationConfigurationResult.cc - src/model/ModifyScheduledTaskRequest.cc - src/model/ModifyScheduledTaskResult.cc src/model/RecordLifecycleActionHeartbeatRequest.cc src/model/RecordLifecycleActionHeartbeatResult.cc + src/model/ModifyScheduledTaskRequest.cc + src/model/ModifyScheduledTaskResult.cc src/model/DeleteScalingGroupRequest.cc src/model/DeleteScalingGroupResult.cc src/model/CreateScalingConfigurationRequest.cc src/model/CreateScalingConfigurationResult.cc - src/model/DescribeRegionsRequest.cc - src/model/DescribeRegionsResult.cc src/model/DetachDBInstancesRequest.cc src/model/DetachDBInstancesResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc src/model/SetInstancesProtectionRequest.cc src/model/SetInstancesProtectionResult.cc src/model/AttachLoadBalancersRequest.cc @@ -248,20 +248,20 @@ set(ess_src src/model/ModifyScalingConfigurationResult.cc src/model/DescribeLimitationRequest.cc src/model/DescribeLimitationResult.cc - src/model/DescribeAlertConfigRequest.cc - src/model/DescribeAlertConfigResult.cc src/model/CreateScalingGroupRequest.cc src/model/CreateScalingGroupResult.cc + src/model/DescribeAlertConfigRequest.cc + src/model/DescribeAlertConfigResult.cc src/model/DeleteScalingConfigurationRequest.cc src/model/DeleteScalingConfigurationResult.cc src/model/DisableScalingGroupRequest.cc src/model/DisableScalingGroupResult.cc src/model/ModifyScalingRuleRequest.cc src/model/ModifyScalingRuleResult.cc - src/model/DeleteScalingRuleRequest.cc - src/model/DeleteScalingRuleResult.cc src/model/AttachDBInstancesRequest.cc src/model/AttachDBInstancesResult.cc + src/model/DeleteScalingRuleRequest.cc + src/model/DeleteScalingRuleResult.cc src/model/CreateLifecycleHookRequest.cc src/model/CreateLifecycleHookResult.cc src/model/EnableAlarmRequest.cc diff --git a/ess/include/alibabacloud/ess/EssClient.h b/ess/include/alibabacloud/ess/EssClient.h index d1d043f58..b92e8a817 100755 --- a/ess/include/alibabacloud/ess/EssClient.h +++ b/ess/include/alibabacloud/ess/EssClient.h @@ -100,18 +100,18 @@ #include "model/DeactivateScalingConfigurationResult.h" #include "model/CreateNotificationConfigurationRequest.h" #include "model/CreateNotificationConfigurationResult.h" -#include "model/ModifyScheduledTaskRequest.h" -#include "model/ModifyScheduledTaskResult.h" #include "model/RecordLifecycleActionHeartbeatRequest.h" #include "model/RecordLifecycleActionHeartbeatResult.h" +#include "model/ModifyScheduledTaskRequest.h" +#include "model/ModifyScheduledTaskResult.h" #include "model/DeleteScalingGroupRequest.h" #include "model/DeleteScalingGroupResult.h" #include "model/CreateScalingConfigurationRequest.h" #include "model/CreateScalingConfigurationResult.h" -#include "model/DescribeRegionsRequest.h" -#include "model/DescribeRegionsResult.h" #include "model/DetachDBInstancesRequest.h" #include "model/DetachDBInstancesResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" #include "model/SetInstancesProtectionRequest.h" #include "model/SetInstancesProtectionResult.h" #include "model/AttachLoadBalancersRequest.h" @@ -124,20 +124,20 @@ #include "model/ModifyScalingConfigurationResult.h" #include "model/DescribeLimitationRequest.h" #include "model/DescribeLimitationResult.h" -#include "model/DescribeAlertConfigRequest.h" -#include "model/DescribeAlertConfigResult.h" #include "model/CreateScalingGroupRequest.h" #include "model/CreateScalingGroupResult.h" +#include "model/DescribeAlertConfigRequest.h" +#include "model/DescribeAlertConfigResult.h" #include "model/DeleteScalingConfigurationRequest.h" #include "model/DeleteScalingConfigurationResult.h" #include "model/DisableScalingGroupRequest.h" #include "model/DisableScalingGroupResult.h" #include "model/ModifyScalingRuleRequest.h" #include "model/ModifyScalingRuleResult.h" -#include "model/DeleteScalingRuleRequest.h" -#include "model/DeleteScalingRuleResult.h" #include "model/AttachDBInstancesRequest.h" #include "model/AttachDBInstancesResult.h" +#include "model/DeleteScalingRuleRequest.h" +#include "model/DeleteScalingRuleResult.h" #include "model/CreateLifecycleHookRequest.h" #include "model/CreateLifecycleHookResult.h" #include "model/EnableAlarmRequest.h" @@ -270,24 +270,24 @@ namespace AlibabaCloud typedef Outcome CreateNotificationConfigurationOutcome; typedef std::future CreateNotificationConfigurationOutcomeCallable; typedef std::function&)> CreateNotificationConfigurationAsyncHandler; - typedef Outcome ModifyScheduledTaskOutcome; - typedef std::future ModifyScheduledTaskOutcomeCallable; - typedef std::function&)> ModifyScheduledTaskAsyncHandler; typedef Outcome RecordLifecycleActionHeartbeatOutcome; typedef std::future RecordLifecycleActionHeartbeatOutcomeCallable; typedef std::function&)> RecordLifecycleActionHeartbeatAsyncHandler; + typedef Outcome ModifyScheduledTaskOutcome; + typedef std::future ModifyScheduledTaskOutcomeCallable; + typedef std::function&)> ModifyScheduledTaskAsyncHandler; typedef Outcome DeleteScalingGroupOutcome; typedef std::future DeleteScalingGroupOutcomeCallable; typedef std::function&)> DeleteScalingGroupAsyncHandler; typedef Outcome CreateScalingConfigurationOutcome; typedef std::future CreateScalingConfigurationOutcomeCallable; typedef std::function&)> CreateScalingConfigurationAsyncHandler; - typedef Outcome DescribeRegionsOutcome; - typedef std::future DescribeRegionsOutcomeCallable; - typedef std::function&)> DescribeRegionsAsyncHandler; typedef Outcome DetachDBInstancesOutcome; typedef std::future DetachDBInstancesOutcomeCallable; typedef std::function&)> DetachDBInstancesAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; typedef Outcome SetInstancesProtectionOutcome; typedef std::future SetInstancesProtectionOutcomeCallable; typedef std::function&)> SetInstancesProtectionAsyncHandler; @@ -306,12 +306,12 @@ namespace AlibabaCloud typedef Outcome DescribeLimitationOutcome; typedef std::future DescribeLimitationOutcomeCallable; typedef std::function&)> DescribeLimitationAsyncHandler; - typedef Outcome DescribeAlertConfigOutcome; - typedef std::future DescribeAlertConfigOutcomeCallable; - typedef std::function&)> DescribeAlertConfigAsyncHandler; typedef Outcome CreateScalingGroupOutcome; typedef std::future CreateScalingGroupOutcomeCallable; typedef std::function&)> CreateScalingGroupAsyncHandler; + typedef Outcome DescribeAlertConfigOutcome; + typedef std::future DescribeAlertConfigOutcomeCallable; + typedef std::function&)> DescribeAlertConfigAsyncHandler; typedef Outcome DeleteScalingConfigurationOutcome; typedef std::future DeleteScalingConfigurationOutcomeCallable; typedef std::function&)> DeleteScalingConfigurationAsyncHandler; @@ -321,12 +321,12 @@ namespace AlibabaCloud typedef Outcome ModifyScalingRuleOutcome; typedef std::future ModifyScalingRuleOutcomeCallable; typedef std::function&)> ModifyScalingRuleAsyncHandler; - typedef Outcome DeleteScalingRuleOutcome; - typedef std::future DeleteScalingRuleOutcomeCallable; - typedef std::function&)> DeleteScalingRuleAsyncHandler; typedef Outcome AttachDBInstancesOutcome; typedef std::future AttachDBInstancesOutcomeCallable; typedef std::function&)> AttachDBInstancesAsyncHandler; + typedef Outcome DeleteScalingRuleOutcome; + typedef std::future DeleteScalingRuleOutcomeCallable; + typedef std::function&)> DeleteScalingRuleAsyncHandler; typedef Outcome CreateLifecycleHookOutcome; typedef std::future CreateLifecycleHookOutcomeCallable; typedef std::function&)> CreateLifecycleHookAsyncHandler; @@ -458,24 +458,24 @@ namespace AlibabaCloud CreateNotificationConfigurationOutcome createNotificationConfiguration(const Model::CreateNotificationConfigurationRequest &request)const; void createNotificationConfigurationAsync(const Model::CreateNotificationConfigurationRequest& request, const CreateNotificationConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNotificationConfigurationOutcomeCallable createNotificationConfigurationCallable(const Model::CreateNotificationConfigurationRequest& request) const; - ModifyScheduledTaskOutcome modifyScheduledTask(const Model::ModifyScheduledTaskRequest &request)const; - void modifyScheduledTaskAsync(const Model::ModifyScheduledTaskRequest& request, const ModifyScheduledTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyScheduledTaskOutcomeCallable modifyScheduledTaskCallable(const Model::ModifyScheduledTaskRequest& request) const; RecordLifecycleActionHeartbeatOutcome recordLifecycleActionHeartbeat(const Model::RecordLifecycleActionHeartbeatRequest &request)const; void recordLifecycleActionHeartbeatAsync(const Model::RecordLifecycleActionHeartbeatRequest& request, const RecordLifecycleActionHeartbeatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RecordLifecycleActionHeartbeatOutcomeCallable recordLifecycleActionHeartbeatCallable(const Model::RecordLifecycleActionHeartbeatRequest& request) const; + ModifyScheduledTaskOutcome modifyScheduledTask(const Model::ModifyScheduledTaskRequest &request)const; + void modifyScheduledTaskAsync(const Model::ModifyScheduledTaskRequest& request, const ModifyScheduledTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyScheduledTaskOutcomeCallable modifyScheduledTaskCallable(const Model::ModifyScheduledTaskRequest& request) const; DeleteScalingGroupOutcome deleteScalingGroup(const Model::DeleteScalingGroupRequest &request)const; void deleteScalingGroupAsync(const Model::DeleteScalingGroupRequest& request, const DeleteScalingGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteScalingGroupOutcomeCallable deleteScalingGroupCallable(const Model::DeleteScalingGroupRequest& request) const; CreateScalingConfigurationOutcome createScalingConfiguration(const Model::CreateScalingConfigurationRequest &request)const; void createScalingConfigurationAsync(const Model::CreateScalingConfigurationRequest& request, const CreateScalingConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateScalingConfigurationOutcomeCallable createScalingConfigurationCallable(const Model::CreateScalingConfigurationRequest& request) const; - DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; - void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; DetachDBInstancesOutcome detachDBInstances(const Model::DetachDBInstancesRequest &request)const; void detachDBInstancesAsync(const Model::DetachDBInstancesRequest& request, const DetachDBInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachDBInstancesOutcomeCallable detachDBInstancesCallable(const Model::DetachDBInstancesRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; SetInstancesProtectionOutcome setInstancesProtection(const Model::SetInstancesProtectionRequest &request)const; void setInstancesProtectionAsync(const Model::SetInstancesProtectionRequest& request, const SetInstancesProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetInstancesProtectionOutcomeCallable setInstancesProtectionCallable(const Model::SetInstancesProtectionRequest& request) const; @@ -494,12 +494,12 @@ namespace AlibabaCloud DescribeLimitationOutcome describeLimitation(const Model::DescribeLimitationRequest &request)const; void describeLimitationAsync(const Model::DescribeLimitationRequest& request, const DescribeLimitationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLimitationOutcomeCallable describeLimitationCallable(const Model::DescribeLimitationRequest& request) const; - DescribeAlertConfigOutcome describeAlertConfig(const Model::DescribeAlertConfigRequest &request)const; - void describeAlertConfigAsync(const Model::DescribeAlertConfigRequest& request, const DescribeAlertConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAlertConfigOutcomeCallable describeAlertConfigCallable(const Model::DescribeAlertConfigRequest& request) const; CreateScalingGroupOutcome createScalingGroup(const Model::CreateScalingGroupRequest &request)const; void createScalingGroupAsync(const Model::CreateScalingGroupRequest& request, const CreateScalingGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateScalingGroupOutcomeCallable createScalingGroupCallable(const Model::CreateScalingGroupRequest& request) const; + DescribeAlertConfigOutcome describeAlertConfig(const Model::DescribeAlertConfigRequest &request)const; + void describeAlertConfigAsync(const Model::DescribeAlertConfigRequest& request, const DescribeAlertConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlertConfigOutcomeCallable describeAlertConfigCallable(const Model::DescribeAlertConfigRequest& request) const; DeleteScalingConfigurationOutcome deleteScalingConfiguration(const Model::DeleteScalingConfigurationRequest &request)const; void deleteScalingConfigurationAsync(const Model::DeleteScalingConfigurationRequest& request, const DeleteScalingConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteScalingConfigurationOutcomeCallable deleteScalingConfigurationCallable(const Model::DeleteScalingConfigurationRequest& request) const; @@ -509,12 +509,12 @@ namespace AlibabaCloud ModifyScalingRuleOutcome modifyScalingRule(const Model::ModifyScalingRuleRequest &request)const; void modifyScalingRuleAsync(const Model::ModifyScalingRuleRequest& request, const ModifyScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyScalingRuleOutcomeCallable modifyScalingRuleCallable(const Model::ModifyScalingRuleRequest& request) const; - DeleteScalingRuleOutcome deleteScalingRule(const Model::DeleteScalingRuleRequest &request)const; - void deleteScalingRuleAsync(const Model::DeleteScalingRuleRequest& request, const DeleteScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteScalingRuleOutcomeCallable deleteScalingRuleCallable(const Model::DeleteScalingRuleRequest& request) const; AttachDBInstancesOutcome attachDBInstances(const Model::AttachDBInstancesRequest &request)const; void attachDBInstancesAsync(const Model::AttachDBInstancesRequest& request, const AttachDBInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachDBInstancesOutcomeCallable attachDBInstancesCallable(const Model::AttachDBInstancesRequest& request) const; + DeleteScalingRuleOutcome deleteScalingRule(const Model::DeleteScalingRuleRequest &request)const; + void deleteScalingRuleAsync(const Model::DeleteScalingRuleRequest& request, const DeleteScalingRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteScalingRuleOutcomeCallable deleteScalingRuleCallable(const Model::DeleteScalingRuleRequest& request) const; CreateLifecycleHookOutcome createLifecycleHook(const Model::CreateLifecycleHookRequest &request)const; void createLifecycleHookAsync(const Model::CreateLifecycleHookRequest& request, const CreateLifecycleHookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLifecycleHookOutcomeCallable createLifecycleHookCallable(const Model::CreateLifecycleHookRequest& request) const; diff --git a/ess/include/alibabacloud/ess/model/CreateScalingConfigurationRequest.h b/ess/include/alibabacloud/ess/model/CreateScalingConfigurationRequest.h index bcb1724ce..9b60b3107 100755 --- a/ess/include/alibabacloud/ess/model/CreateScalingConfigurationRequest.h +++ b/ess/include/alibabacloud/ess/model/CreateScalingConfigurationRequest.h @@ -56,6 +56,10 @@ namespace AlibabaCloud void setImageId(const std::string& imageId); int getMemory()const; void setMemory(int memory); + std::string getHpcClusterId()const; + void setHpcClusterId(const std::string& hpcClusterId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getScalingGroupId()const; void setScalingGroupId(const std::string& scalingGroupId); std::vector getInstanceTypes()const; @@ -88,6 +92,8 @@ namespace AlibabaCloud void setPasswordInherit(bool passwordInherit); std::string getImageName()const; void setImageName(const std::string& imageName); + std::string getInstanceDescription()const; + void setInstanceDescription(const std::string& instanceDescription); std::string getInstanceType()const; void setInstanceType(const std::string& instanceType); std::string getDeploymentSetId()const; @@ -104,6 +110,8 @@ namespace AlibabaCloud void setRamRoleName(const std::string& ramRoleName); long getOwnerId()const; void setOwnerId(long ownerId); + std::vector getSecurityGroupIds()const; + void setSecurityGroupIds(const std::vector& securityGroupIds); std::vector getDataDisk()const; void setDataDisk(const std::vector& dataDisk); std::string getScalingConfigurationName()const; @@ -128,6 +136,8 @@ namespace AlibabaCloud private: std::string imageId_; int memory_; + std::string hpcClusterId_; + std::string clientToken_; std::string scalingGroupId_; std::vector instanceTypes_; std::string ioOptimized_; @@ -144,6 +154,7 @@ namespace AlibabaCloud std::string password_; bool passwordInherit_; std::string imageName_; + std::string instanceDescription_; std::string instanceType_; std::string deploymentSetId_; std::string resourceOwnerAccount_; @@ -152,6 +163,7 @@ namespace AlibabaCloud std::string systemDiskDiskName_; std::string ramRoleName_; long ownerId_; + std::vector securityGroupIds_; std::vector dataDisk_; std::string scalingConfigurationName_; std::string tags_; diff --git a/ess/include/alibabacloud/ess/model/CreateScalingGroupRequest.h b/ess/include/alibabacloud/ess/model/CreateScalingGroupRequest.h index fcd63a119..6e9023d43 100755 --- a/ess/include/alibabacloud/ess/model/CreateScalingGroupRequest.h +++ b/ess/include/alibabacloud/ess/model/CreateScalingGroupRequest.h @@ -49,26 +49,44 @@ namespace AlibabaCloud CreateScalingGroupRequest(); ~CreateScalingGroupRequest(); + std::string getLoadBalancerIds()const; + void setLoadBalancerIds(const std::string& loadBalancerIds); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::vector getVSwitchIds()const; + void setVSwitchIds(const std::vector& vSwitchIds); + int getOnDemandBaseCapacity()const; + void setOnDemandBaseCapacity(int onDemandBaseCapacity); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getOnDemandPercentageAboveBaseCapacity()const; + void setOnDemandPercentageAboveBaseCapacity(int onDemandPercentageAboveBaseCapacity); + bool getSpotInstanceRemedy()const; + void setSpotInstanceRemedy(bool spotInstanceRemedy); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getDefaultCooldown()const; + void setDefaultCooldown(int defaultCooldown); + std::string getRemovalPolicy1()const; + void setRemovalPolicy1(const std::string& removalPolicy1); + std::string getRemovalPolicy2()const; + void setRemovalPolicy2(const std::string& removalPolicy2); std::string getMultiAZPolicy()const; void setMultiAZPolicy(const std::string& multiAZPolicy); std::string getDBInstanceIds()const; void setDBInstanceIds(const std::string& dBInstanceIds); std::string getLaunchTemplateId()const; void setLaunchTemplateId(const std::string& launchTemplateId); - std::string getLoadBalancerIds()const; - void setLoadBalancerIds(const std::string& loadBalancerIds); std::string getHealthCheckType()const; void setHealthCheckType(const std::string& healthCheckType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getScalingGroupName()const; void setScalingGroupName(const std::string& scalingGroupName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::vector getVSwitchIds()const; - void setVSwitchIds(const std::vector& vSwitchIds); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + int getSpotInstancePools()const; + void setSpotInstancePools(int spotInstancePools); int getMinSize()const; void setMinSize(int minSize); long getOwnerId()const; @@ -77,49 +95,43 @@ namespace AlibabaCloud void setLaunchTemplateVersion(const std::string& launchTemplateVersion); std::string getScalingPolicy()const; void setScalingPolicy(const std::string& scalingPolicy); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); int getMaxSize()const; void setMaxSize(int maxSize); std::vector getLifecycleHook()const; void setLifecycleHook(const std::vector& lifecycleHook); - int getDefaultCooldown()const; - void setDefaultCooldown(int defaultCooldown); - std::string getRemovalPolicy1()const; - void setRemovalPolicy1(const std::string& removalPolicy1); std::vector getVServerGroup()const; void setVServerGroup(const std::vector& vServerGroup); - std::string getRemovalPolicy2()const; - void setRemovalPolicy2(const std::string& removalPolicy2); private: + std::string loadBalancerIds_; + std::string clientToken_; + std::vector vSwitchIds_; + int onDemandBaseCapacity_; + std::string accessKeyId_; + int onDemandPercentageAboveBaseCapacity_; + bool spotInstanceRemedy_; + std::string regionId_; + int defaultCooldown_; + std::string removalPolicy1_; + std::string removalPolicy2_; std::string multiAZPolicy_; std::string dBInstanceIds_; std::string launchTemplateId_; - std::string loadBalancerIds_; std::string healthCheckType_; std::string resourceOwnerAccount_; std::string scalingGroupName_; - std::string clientToken_; - std::vector vSwitchIds_; std::string ownerAccount_; + int spotInstancePools_; int minSize_; long ownerId_; std::string launchTemplateVersion_; std::string scalingPolicy_; - std::string accessKeyId_; std::string vSwitchId_; - std::string regionId_; int maxSize_; std::vector lifecycleHook_; - int defaultCooldown_; - std::string removalPolicy1_; std::vector vServerGroup_; - std::string removalPolicy2_; }; } diff --git a/ess/include/alibabacloud/ess/model/CreateScalingRuleRequest.h b/ess/include/alibabacloud/ess/model/CreateScalingRuleRequest.h index 0919b0769..bd9f0f28d 100755 --- a/ess/include/alibabacloud/ess/model/CreateScalingRuleRequest.h +++ b/ess/include/alibabacloud/ess/model/CreateScalingRuleRequest.h @@ -53,26 +53,36 @@ namespace AlibabaCloud void setEstimatedInstanceWarmup(int estimatedInstanceWarmup); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + int getPredictiveTaskBufferTime()const; + void setPredictiveTaskBufferTime(int predictiveTaskBufferTime); std::string getAdjustmentType()const; void setAdjustmentType(const std::string& adjustmentType); bool getDisableScaleIn()const; void setDisableScaleIn(bool disableScaleIn); long getOwnerId()const; void setOwnerId(long ownerId); + int getInitialMaxSize()const; + void setInitialMaxSize(int initialMaxSize); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + int getPredictiveValueBuffer()const; + void setPredictiveValueBuffer(int predictiveValueBuffer); std::string getScalingRuleName()const; void setScalingRuleName(const std::string& scalingRuleName); int getCooldown()const; void setCooldown(int cooldown); int getMinAdjustmentMagnitude()const; void setMinAdjustmentMagnitude(int minAdjustmentMagnitude); + std::string getPredictiveValueBehavior()const; + void setPredictiveValueBehavior(const std::string& predictiveValueBehavior); float getTargetValue()const; void setTargetValue(float targetValue); std::string getScalingRuleType()const; void setScalingRuleType(const std::string& scalingRuleType); std::string getMetricName()const; void setMetricName(const std::string& metricName); + std::string getPredictiveScalingMode()const; + void setPredictiveScalingMode(const std::string& predictiveScalingMode); private: std::string resourceOwnerAccount_; @@ -81,16 +91,21 @@ namespace AlibabaCloud std::string scalingGroupId_; int estimatedInstanceWarmup_; std::string ownerAccount_; + int predictiveTaskBufferTime_; std::string adjustmentType_; bool disableScaleIn_; long ownerId_; + int initialMaxSize_; std::string accessKeyId_; + int predictiveValueBuffer_; std::string scalingRuleName_; int cooldown_; int minAdjustmentMagnitude_; + std::string predictiveValueBehavior_; float targetValue_; std::string scalingRuleType_; std::string metricName_; + std::string predictiveScalingMode_; }; } diff --git a/ess/include/alibabacloud/ess/model/DescribeRegionsRequest.h b/ess/include/alibabacloud/ess/model/DescribeRegionsRequest.h index ed7e4acf3..270e59a9c 100755 --- a/ess/include/alibabacloud/ess/model/DescribeRegionsRequest.h +++ b/ess/include/alibabacloud/ess/model/DescribeRegionsRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getAcceptLanguage()const; + void setAcceptLanguage(const std::string& acceptLanguage); long getOwnerId()const; void setOwnerId(long ownerId); std::string getAccessKeyId()const; @@ -47,6 +49,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string resourceOwnerAccount_; + std::string acceptLanguage_; long ownerId_; std::string accessKeyId_; diff --git a/ess/include/alibabacloud/ess/model/DescribeRegionsResult.h b/ess/include/alibabacloud/ess/model/DescribeRegionsResult.h index 4dc02bf76..edcecb6e1 100755 --- a/ess/include/alibabacloud/ess/model/DescribeRegionsResult.h +++ b/ess/include/alibabacloud/ess/model/DescribeRegionsResult.h @@ -37,6 +37,8 @@ namespace AlibabaCloud bool vpcUnavailable; bool classicUnavailable; std::string regionId; + std::string regionEndpoint; + std::string localName; }; diff --git a/ess/include/alibabacloud/ess/model/DescribeScalingConfigurationsResult.h b/ess/include/alibabacloud/ess/model/DescribeScalingConfigurationsResult.h index 17d7f446f..beebd7482 100755 --- a/ess/include/alibabacloud/ess/model/DescribeScalingConfigurationsResult.h +++ b/ess/include/alibabacloud/ess/model/DescribeScalingConfigurationsResult.h @@ -79,7 +79,9 @@ namespace AlibabaCloud int loadBalancerWeight; std::string ioOptimized; std::string scalingGroupId; + std::string hpcClusterId; std::string securityGroupId; + std::vector securityGroupIds; std::string internetChargeType; std::string systemDiskCategory; std::string instanceName; @@ -89,6 +91,7 @@ namespace AlibabaCloud int internetMaxBandwidthIn; std::string creationTime; std::string instanceGeneration; + std::string instanceDescription; std::string scalingConfigurationId; std::string securityEnhancementStrategy; }; diff --git a/ess/include/alibabacloud/ess/model/DescribeScalingGroupsResult.h b/ess/include/alibabacloud/ess/model/DescribeScalingGroupsResult.h index 6e0571901..b86b42097 100755 --- a/ess/include/alibabacloud/ess/model/DescribeScalingGroupsResult.h +++ b/ess/include/alibabacloud/ess/model/DescribeScalingGroupsResult.h @@ -45,9 +45,12 @@ namespace AlibabaCloud std::string loadBalancerId; std::vector vServerGroupAttributes; }; + bool spotInstanceRemedy; std::string activeScalingConfigurationId; + int onDemandPercentageAboveBaseCapacity; std::string lifecycleState; std::string modificationTime; + int onDemandBaseCapacity; std::vector removalPolicies; int pendingWaitCapacity; int totalCapacity; @@ -61,6 +64,7 @@ namespace AlibabaCloud std::string scalingGroupId; std::string vSwitchId; std::vector loadBalancerIds; + int spotInstancePools; std::string launchTemplateId; int maxSize; std::string scalingGroupName; diff --git a/ess/include/alibabacloud/ess/model/DescribeScalingRulesResult.h b/ess/include/alibabacloud/ess/model/DescribeScalingRulesResult.h index d41dee0c0..60195bdf7 100755 --- a/ess/include/alibabacloud/ess/model/DescribeScalingRulesResult.h +++ b/ess/include/alibabacloud/ess/model/DescribeScalingRulesResult.h @@ -36,8 +36,19 @@ namespace AlibabaCloud { struct Alarm { + struct Dimension + { + std::string dimensionValue; + std::string dimensionKey; + }; + std::string metricName; + std::string comparisonOperator; + std::vector dimensions; + int evaluationCount; std::string alarmTaskName; std::string alarmTaskId; + std::string statistics; + float threshold; }; struct StepAdjustment { @@ -49,6 +60,7 @@ namespace AlibabaCloud std::vector stepAdjustments; std::string scalingGroupId; int cooldown; + std::string predictiveValueBehavior; std::vector alarms; std::string scalingRuleId; int minAdjustmentMagnitude; @@ -60,8 +72,12 @@ namespace AlibabaCloud std::string metricName; std::string scalingRuleName; int adjustmentValue; + int initialMaxSize; std::string scalingRuleType; int estimatedInstanceWarmup; + std::string predictiveScalingMode; + int predictiveValueBuffer; + int predictiveTaskBufferTime; }; diff --git a/ess/include/alibabacloud/ess/model/DescribeScheduledTasksResult.h b/ess/include/alibabacloud/ess/model/DescribeScheduledTasksResult.h index 2d3935dc0..3e67c227f 100755 --- a/ess/include/alibabacloud/ess/model/DescribeScheduledTasksResult.h +++ b/ess/include/alibabacloud/ess/model/DescribeScheduledTasksResult.h @@ -38,8 +38,10 @@ namespace AlibabaCloud std::string launchTime; std::string scheduledTaskId; std::string recurrenceType; + int minValue; std::string scheduledTaskName; std::string scheduledAction; + int maxValue; std::string recurrenceEndTime; std::string recurrenceValue; int launchExpirationTime; diff --git a/ess/include/alibabacloud/ess/model/ModifyScalingConfigurationRequest.h b/ess/include/alibabacloud/ess/model/ModifyScalingConfigurationRequest.h index 0fa2b715a..471071322 100755 --- a/ess/include/alibabacloud/ess/model/ModifyScalingConfigurationRequest.h +++ b/ess/include/alibabacloud/ess/model/ModifyScalingConfigurationRequest.h @@ -56,6 +56,8 @@ namespace AlibabaCloud void setImageId(const std::string& imageId); int getMemory()const; void setMemory(int memory); + std::string getHpcClusterId()const; + void setHpcClusterId(const std::string& hpcClusterId); std::string getIoOptimized()const; void setIoOptimized(const std::string& ioOptimized); std::vector getInstanceTypes()const; @@ -82,6 +84,8 @@ namespace AlibabaCloud void setPasswordInherit(bool passwordInherit); std::string getImageName()const; void setImageName(const std::string& imageName); + std::string getInstanceDescription()const; + void setInstanceDescription(const std::string& instanceDescription); bool getOverride()const; void setOverride(bool override); std::string getDeploymentSetId()const; @@ -98,6 +102,8 @@ namespace AlibabaCloud void setRamRoleName(const std::string& ramRoleName); long getOwnerId()const; void setOwnerId(long ownerId); + std::vector getSecurityGroupIds()const; + void setSecurityGroupIds(const std::vector& securityGroupIds); std::vector getDataDisk()const; void setDataDisk(const std::vector& dataDisk); std::string getScalingConfigurationName()const; @@ -122,6 +128,7 @@ namespace AlibabaCloud private: std::string imageId_; int memory_; + std::string hpcClusterId_; std::string ioOptimized_; std::vector instanceTypes_; int internetMaxBandwidthOut_; @@ -135,6 +142,7 @@ namespace AlibabaCloud std::string hostName_; bool passwordInherit_; std::string imageName_; + std::string instanceDescription_; bool override_; std::string deploymentSetId_; std::string resourceOwnerAccount_; @@ -143,6 +151,7 @@ namespace AlibabaCloud std::string systemDiskDiskName_; std::string ramRoleName_; long ownerId_; + std::vector securityGroupIds_; std::vector dataDisk_; std::string scalingConfigurationName_; std::string tags_; diff --git a/ess/include/alibabacloud/ess/model/ModifyScalingGroupRequest.h b/ess/include/alibabacloud/ess/model/ModifyScalingGroupRequest.h index 6ff79b696..04c4645ff 100755 --- a/ess/include/alibabacloud/ess/model/ModifyScalingGroupRequest.h +++ b/ess/include/alibabacloud/ess/model/ModifyScalingGroupRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setVSwitchIds(const std::vector& vSwitchIds); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + int getSpotInstancePools()const; + void setSpotInstancePools(int spotInstancePools); std::string getActiveScalingConfigurationId()const; void setActiveScalingConfigurationId(const std::string& activeScalingConfigurationId); int getMinSize()const; @@ -59,8 +61,14 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getLaunchTemplateVersion()const; void setLaunchTemplateVersion(const std::string& launchTemplateVersion); + int getOnDemandBaseCapacity()const; + void setOnDemandBaseCapacity(int onDemandBaseCapacity); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + int getOnDemandPercentageAboveBaseCapacity()const; + void setOnDemandPercentageAboveBaseCapacity(int onDemandPercentageAboveBaseCapacity); + bool getSpotInstanceRemedy()const; + void setSpotInstanceRemedy(bool spotInstanceRemedy); int getMaxSize()const; void setMaxSize(int maxSize); int getDefaultCooldown()const; @@ -79,11 +87,15 @@ namespace AlibabaCloud std::string scalingGroupId_; std::vector vSwitchIds_; std::string ownerAccount_; + int spotInstancePools_; std::string activeScalingConfigurationId_; int minSize_; long ownerId_; std::string launchTemplateVersion_; + int onDemandBaseCapacity_; std::string accessKeyId_; + int onDemandPercentageAboveBaseCapacity_; + bool spotInstanceRemedy_; int maxSize_; int defaultCooldown_; std::string removalPolicy1_; diff --git a/ess/include/alibabacloud/ess/model/ModifyScalingRuleRequest.h b/ess/include/alibabacloud/ess/model/ModifyScalingRuleRequest.h index 4d4f1b8fc..e7a7d2ea8 100755 --- a/ess/include/alibabacloud/ess/model/ModifyScalingRuleRequest.h +++ b/ess/include/alibabacloud/ess/model/ModifyScalingRuleRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setEstimatedInstanceWarmup(int estimatedInstanceWarmup); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + int getPredictiveTaskBufferTime()const; + void setPredictiveTaskBufferTime(int predictiveTaskBufferTime); std::string getAdjustmentType()const; void setAdjustmentType(const std::string& adjustmentType); bool getDisableScaleIn()const; @@ -61,18 +63,26 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getScalingRuleId()const; void setScalingRuleId(const std::string& scalingRuleId); + int getInitialMaxSize()const; + void setInitialMaxSize(int initialMaxSize); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + int getPredictiveValueBuffer()const; + void setPredictiveValueBuffer(int predictiveValueBuffer); std::string getScalingRuleName()const; void setScalingRuleName(const std::string& scalingRuleName); int getCooldown()const; void setCooldown(int cooldown); int getMinAdjustmentMagnitude()const; void setMinAdjustmentMagnitude(int minAdjustmentMagnitude); + std::string getPredictiveValueBehavior()const; + void setPredictiveValueBehavior(const std::string& predictiveValueBehavior); float getTargetValue()const; void setTargetValue(float targetValue); std::string getMetricName()const; void setMetricName(const std::string& metricName); + std::string getPredictiveScalingMode()const; + void setPredictiveScalingMode(const std::string& predictiveScalingMode); private: long resourceOwnerId_; @@ -81,16 +91,21 @@ namespace AlibabaCloud std::vector stepAdjustment_; int estimatedInstanceWarmup_; std::string ownerAccount_; + int predictiveTaskBufferTime_; std::string adjustmentType_; bool disableScaleIn_; long ownerId_; std::string scalingRuleId_; + int initialMaxSize_; std::string accessKeyId_; + int predictiveValueBuffer_; std::string scalingRuleName_; int cooldown_; int minAdjustmentMagnitude_; + std::string predictiveValueBehavior_; float targetValue_; std::string metricName_; + std::string predictiveScalingMode_; }; } diff --git a/ess/include/alibabacloud/ess/model/ModifyScheduledTaskRequest.h b/ess/include/alibabacloud/ess/model/ModifyScheduledTaskRequest.h index 07281e7f4..de7dee62d 100755 --- a/ess/include/alibabacloud/ess/model/ModifyScheduledTaskRequest.h +++ b/ess/include/alibabacloud/ess/model/ModifyScheduledTaskRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getScheduledAction()const; void setScheduledAction(const std::string& scheduledAction); + int getMaxValue()const; + void setMaxValue(int maxValue); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -57,6 +59,8 @@ namespace AlibabaCloud void setRecurrenceEndTime(const std::string& recurrenceEndTime); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + int getMinValue()const; + void setMinValue(int minValue); std::string getScheduledTaskName()const; void setScheduledTaskName(const std::string& scheduledTaskName); bool getTaskEnabled()const; @@ -70,6 +74,7 @@ namespace AlibabaCloud std::string launchTime_; long resourceOwnerId_; std::string scheduledAction_; + int maxValue_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string description_; @@ -78,6 +83,7 @@ namespace AlibabaCloud int launchExpirationTime_; std::string recurrenceEndTime_; std::string accessKeyId_; + int minValue_; std::string scheduledTaskName_; bool taskEnabled_; std::string scheduledTaskId_; diff --git a/ess/src/EssClient.cc b/ess/src/EssClient.cc index 809d81272..446cc358a 100755 --- a/ess/src/EssClient.cc +++ b/ess/src/EssClient.cc @@ -1455,42 +1455,6 @@ EssClient::CreateNotificationConfigurationOutcomeCallable EssClient::createNotif return task->get_future(); } -EssClient::ModifyScheduledTaskOutcome EssClient::modifyScheduledTask(const ModifyScheduledTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyScheduledTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyScheduledTaskOutcome(ModifyScheduledTaskResult(outcome.result())); - else - return ModifyScheduledTaskOutcome(outcome.error()); -} - -void EssClient::modifyScheduledTaskAsync(const ModifyScheduledTaskRequest& request, const ModifyScheduledTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyScheduledTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EssClient::ModifyScheduledTaskOutcomeCallable EssClient::modifyScheduledTaskCallable(const ModifyScheduledTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyScheduledTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EssClient::RecordLifecycleActionHeartbeatOutcome EssClient::recordLifecycleActionHeartbeat(const RecordLifecycleActionHeartbeatRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1491,42 @@ EssClient::RecordLifecycleActionHeartbeatOutcomeCallable EssClient::recordLifecy return task->get_future(); } +EssClient::ModifyScheduledTaskOutcome EssClient::modifyScheduledTask(const ModifyScheduledTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyScheduledTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyScheduledTaskOutcome(ModifyScheduledTaskResult(outcome.result())); + else + return ModifyScheduledTaskOutcome(outcome.error()); +} + +void EssClient::modifyScheduledTaskAsync(const ModifyScheduledTaskRequest& request, const ModifyScheduledTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyScheduledTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EssClient::ModifyScheduledTaskOutcomeCallable EssClient::modifyScheduledTaskCallable(const ModifyScheduledTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyScheduledTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EssClient::DeleteScalingGroupOutcome EssClient::deleteScalingGroup(const DeleteScalingGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,42 +1599,6 @@ EssClient::CreateScalingConfigurationOutcomeCallable EssClient::createScalingCon return task->get_future(); } -EssClient::DescribeRegionsOutcome EssClient::describeRegions(const DescribeRegionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRegionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); - else - return DescribeRegionsOutcome(outcome.error()); -} - -void EssClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRegions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EssClient::DescribeRegionsOutcomeCallable EssClient::describeRegionsCallable(const DescribeRegionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRegions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EssClient::DetachDBInstancesOutcome EssClient::detachDBInstances(const DetachDBInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +1635,42 @@ EssClient::DetachDBInstancesOutcomeCallable EssClient::detachDBInstancesCallable return task->get_future(); } +EssClient::DescribeRegionsOutcome EssClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void EssClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EssClient::DescribeRegionsOutcomeCallable EssClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EssClient::SetInstancesProtectionOutcome EssClient::setInstancesProtection(const SetInstancesProtectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,42 +1887,6 @@ EssClient::DescribeLimitationOutcomeCallable EssClient::describeLimitationCallab return task->get_future(); } -EssClient::DescribeAlertConfigOutcome EssClient::describeAlertConfig(const DescribeAlertConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAlertConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAlertConfigOutcome(DescribeAlertConfigResult(outcome.result())); - else - return DescribeAlertConfigOutcome(outcome.error()); -} - -void EssClient::describeAlertConfigAsync(const DescribeAlertConfigRequest& request, const DescribeAlertConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAlertConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EssClient::DescribeAlertConfigOutcomeCallable EssClient::describeAlertConfigCallable(const DescribeAlertConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAlertConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EssClient::CreateScalingGroupOutcome EssClient::createScalingGroup(const CreateScalingGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,6 +1923,42 @@ EssClient::CreateScalingGroupOutcomeCallable EssClient::createScalingGroupCallab return task->get_future(); } +EssClient::DescribeAlertConfigOutcome EssClient::describeAlertConfig(const DescribeAlertConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlertConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlertConfigOutcome(DescribeAlertConfigResult(outcome.result())); + else + return DescribeAlertConfigOutcome(outcome.error()); +} + +void EssClient::describeAlertConfigAsync(const DescribeAlertConfigRequest& request, const DescribeAlertConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlertConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EssClient::DescribeAlertConfigOutcomeCallable EssClient::describeAlertConfigCallable(const DescribeAlertConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlertConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EssClient::DeleteScalingConfigurationOutcome EssClient::deleteScalingConfiguration(const DeleteScalingConfigurationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,42 +2067,6 @@ EssClient::ModifyScalingRuleOutcomeCallable EssClient::modifyScalingRuleCallable return task->get_future(); } -EssClient::DeleteScalingRuleOutcome EssClient::deleteScalingRule(const DeleteScalingRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteScalingRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteScalingRuleOutcome(DeleteScalingRuleResult(outcome.result())); - else - return DeleteScalingRuleOutcome(outcome.error()); -} - -void EssClient::deleteScalingRuleAsync(const DeleteScalingRuleRequest& request, const DeleteScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteScalingRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EssClient::DeleteScalingRuleOutcomeCallable EssClient::deleteScalingRuleCallable(const DeleteScalingRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteScalingRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EssClient::AttachDBInstancesOutcome EssClient::attachDBInstances(const AttachDBInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +2103,42 @@ EssClient::AttachDBInstancesOutcomeCallable EssClient::attachDBInstancesCallable return task->get_future(); } +EssClient::DeleteScalingRuleOutcome EssClient::deleteScalingRule(const DeleteScalingRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteScalingRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteScalingRuleOutcome(DeleteScalingRuleResult(outcome.result())); + else + return DeleteScalingRuleOutcome(outcome.error()); +} + +void EssClient::deleteScalingRuleAsync(const DeleteScalingRuleRequest& request, const DeleteScalingRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteScalingRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EssClient::DeleteScalingRuleOutcomeCallable EssClient::deleteScalingRuleCallable(const DeleteScalingRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteScalingRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EssClient::CreateLifecycleHookOutcome EssClient::createLifecycleHook(const CreateLifecycleHookRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ess/src/model/AttachDBInstancesResult.cc b/ess/src/model/AttachDBInstancesResult.cc index 8dc1f1b07..70a5d6f11 100755 --- a/ess/src/model/AttachDBInstancesResult.cc +++ b/ess/src/model/AttachDBInstancesResult.cc @@ -35,10 +35,13 @@ AttachDBInstancesResult::~AttachDBInstancesResult() void AttachDBInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/AttachInstancesResult.cc b/ess/src/model/AttachInstancesResult.cc index 5eb0f0be7..064383de7 100755 --- a/ess/src/model/AttachInstancesResult.cc +++ b/ess/src/model/AttachInstancesResult.cc @@ -35,10 +35,13 @@ AttachInstancesResult::~AttachInstancesResult() void AttachInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingActivityId"].isNull()) scalingActivityId_ = value["ScalingActivityId"].asString(); diff --git a/ess/src/model/AttachLoadBalancersResult.cc b/ess/src/model/AttachLoadBalancersResult.cc index a156f1fc7..828a41447 100755 --- a/ess/src/model/AttachLoadBalancersResult.cc +++ b/ess/src/model/AttachLoadBalancersResult.cc @@ -35,10 +35,13 @@ AttachLoadBalancersResult::~AttachLoadBalancersResult() void AttachLoadBalancersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/AttachVServerGroupsResult.cc b/ess/src/model/AttachVServerGroupsResult.cc index 1f4e240ca..c365f10e4 100755 --- a/ess/src/model/AttachVServerGroupsResult.cc +++ b/ess/src/model/AttachVServerGroupsResult.cc @@ -35,10 +35,13 @@ AttachVServerGroupsResult::~AttachVServerGroupsResult() void AttachVServerGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/CompleteLifecycleActionResult.cc b/ess/src/model/CompleteLifecycleActionResult.cc index 940e6a2bb..6732ef68d 100755 --- a/ess/src/model/CompleteLifecycleActionResult.cc +++ b/ess/src/model/CompleteLifecycleActionResult.cc @@ -35,10 +35,13 @@ CompleteLifecycleActionResult::~CompleteLifecycleActionResult() void CompleteLifecycleActionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/CreateAlarmResult.cc b/ess/src/model/CreateAlarmResult.cc index d33c1a937..817608c4f 100755 --- a/ess/src/model/CreateAlarmResult.cc +++ b/ess/src/model/CreateAlarmResult.cc @@ -35,10 +35,13 @@ CreateAlarmResult::~CreateAlarmResult() void CreateAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AlarmTaskId"].isNull()) alarmTaskId_ = value["AlarmTaskId"].asString(); diff --git a/ess/src/model/CreateLifecycleHookResult.cc b/ess/src/model/CreateLifecycleHookResult.cc index c443629a3..6d046767d 100755 --- a/ess/src/model/CreateLifecycleHookResult.cc +++ b/ess/src/model/CreateLifecycleHookResult.cc @@ -35,10 +35,13 @@ CreateLifecycleHookResult::~CreateLifecycleHookResult() void CreateLifecycleHookResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["LifecycleHookId"].isNull()) lifecycleHookId_ = value["LifecycleHookId"].asString(); diff --git a/ess/src/model/CreateNotificationConfigurationResult.cc b/ess/src/model/CreateNotificationConfigurationResult.cc index c2bdd8f2d..711b267aa 100755 --- a/ess/src/model/CreateNotificationConfigurationResult.cc +++ b/ess/src/model/CreateNotificationConfigurationResult.cc @@ -35,10 +35,13 @@ CreateNotificationConfigurationResult::~CreateNotificationConfigurationResult() void CreateNotificationConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/CreateScalingConfigurationRequest.cc b/ess/src/model/CreateScalingConfigurationRequest.cc index a01997dc3..c7b38b274 100755 --- a/ess/src/model/CreateScalingConfigurationRequest.cc +++ b/ess/src/model/CreateScalingConfigurationRequest.cc @@ -47,6 +47,28 @@ void CreateScalingConfigurationRequest::setMemory(int memory) setCoreParameter("Memory", std::to_string(memory)); } +std::string CreateScalingConfigurationRequest::getHpcClusterId()const +{ + return hpcClusterId_; +} + +void CreateScalingConfigurationRequest::setHpcClusterId(const std::string& hpcClusterId) +{ + hpcClusterId_ = hpcClusterId; + setCoreParameter("HpcClusterId", hpcClusterId); +} + +std::string CreateScalingConfigurationRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateScalingConfigurationRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + std::string CreateScalingConfigurationRequest::getScalingGroupId()const { return scalingGroupId_; @@ -230,6 +252,17 @@ void CreateScalingConfigurationRequest::setImageName(const std::string& imageNam setCoreParameter("ImageName", imageName); } +std::string CreateScalingConfigurationRequest::getInstanceDescription()const +{ + return instanceDescription_; +} + +void CreateScalingConfigurationRequest::setInstanceDescription(const std::string& instanceDescription) +{ + instanceDescription_ = instanceDescription; + setCoreParameter("InstanceDescription", instanceDescription); +} + std::string CreateScalingConfigurationRequest::getInstanceType()const { return instanceType_; @@ -318,6 +351,18 @@ void CreateScalingConfigurationRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +std::vector CreateScalingConfigurationRequest::getSecurityGroupIds()const +{ + return securityGroupIds_; +} + +void CreateScalingConfigurationRequest::setSecurityGroupIds(const std::vector& securityGroupIds) +{ + securityGroupIds_ = securityGroupIds; + for(int i = 0; i!= securityGroupIds.size(); i++) + setCoreParameter("SecurityGroupIds."+ std::to_string(i), securityGroupIds.at(i)); +} + std::vector CreateScalingConfigurationRequest::getDataDisk()const { return dataDisk_; diff --git a/ess/src/model/CreateScalingConfigurationResult.cc b/ess/src/model/CreateScalingConfigurationResult.cc index f1454ef1b..c7d54af92 100755 --- a/ess/src/model/CreateScalingConfigurationResult.cc +++ b/ess/src/model/CreateScalingConfigurationResult.cc @@ -35,10 +35,13 @@ CreateScalingConfigurationResult::~CreateScalingConfigurationResult() void CreateScalingConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingConfigurationId"].isNull()) scalingConfigurationId_ = value["ScalingConfigurationId"].asString(); diff --git a/ess/src/model/CreateScalingGroupRequest.cc b/ess/src/model/CreateScalingGroupRequest.cc index f5e7f30bb..59b4fb431 100755 --- a/ess/src/model/CreateScalingGroupRequest.cc +++ b/ess/src/model/CreateScalingGroupRequest.cc @@ -25,6 +25,128 @@ CreateScalingGroupRequest::CreateScalingGroupRequest() : CreateScalingGroupRequest::~CreateScalingGroupRequest() {} +std::string CreateScalingGroupRequest::getLoadBalancerIds()const +{ + return loadBalancerIds_; +} + +void CreateScalingGroupRequest::setLoadBalancerIds(const std::string& loadBalancerIds) +{ + loadBalancerIds_ = loadBalancerIds; + setCoreParameter("LoadBalancerIds", loadBalancerIds); +} + +std::string CreateScalingGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateScalingGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::vector CreateScalingGroupRequest::getVSwitchIds()const +{ + return vSwitchIds_; +} + +void CreateScalingGroupRequest::setVSwitchIds(const std::vector& vSwitchIds) +{ + vSwitchIds_ = vSwitchIds; + for(int i = 0; i!= vSwitchIds.size(); i++) + setCoreParameter("VSwitchIds."+ std::to_string(i), vSwitchIds.at(i)); +} + +int CreateScalingGroupRequest::getOnDemandBaseCapacity()const +{ + return onDemandBaseCapacity_; +} + +void CreateScalingGroupRequest::setOnDemandBaseCapacity(int onDemandBaseCapacity) +{ + onDemandBaseCapacity_ = onDemandBaseCapacity; + setCoreParameter("OnDemandBaseCapacity", std::to_string(onDemandBaseCapacity)); +} + +std::string CreateScalingGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateScalingGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +int CreateScalingGroupRequest::getOnDemandPercentageAboveBaseCapacity()const +{ + return onDemandPercentageAboveBaseCapacity_; +} + +void CreateScalingGroupRequest::setOnDemandPercentageAboveBaseCapacity(int onDemandPercentageAboveBaseCapacity) +{ + onDemandPercentageAboveBaseCapacity_ = onDemandPercentageAboveBaseCapacity; + setCoreParameter("OnDemandPercentageAboveBaseCapacity", std::to_string(onDemandPercentageAboveBaseCapacity)); +} + +bool CreateScalingGroupRequest::getSpotInstanceRemedy()const +{ + return spotInstanceRemedy_; +} + +void CreateScalingGroupRequest::setSpotInstanceRemedy(bool spotInstanceRemedy) +{ + spotInstanceRemedy_ = spotInstanceRemedy; + setCoreParameter("SpotInstanceRemedy", spotInstanceRemedy ? "true" : "false"); +} + +std::string CreateScalingGroupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateScalingGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int CreateScalingGroupRequest::getDefaultCooldown()const +{ + return defaultCooldown_; +} + +void CreateScalingGroupRequest::setDefaultCooldown(int defaultCooldown) +{ + defaultCooldown_ = defaultCooldown; + setCoreParameter("DefaultCooldown", std::to_string(defaultCooldown)); +} + +std::string CreateScalingGroupRequest::getRemovalPolicy1()const +{ + return removalPolicy1_; +} + +void CreateScalingGroupRequest::setRemovalPolicy1(const std::string& removalPolicy1) +{ + removalPolicy1_ = removalPolicy1; + setCoreParameter("RemovalPolicy1", removalPolicy1); +} + +std::string CreateScalingGroupRequest::getRemovalPolicy2()const +{ + return removalPolicy2_; +} + +void CreateScalingGroupRequest::setRemovalPolicy2(const std::string& removalPolicy2) +{ + removalPolicy2_ = removalPolicy2; + setCoreParameter("RemovalPolicy2", removalPolicy2); +} + std::string CreateScalingGroupRequest::getMultiAZPolicy()const { return multiAZPolicy_; @@ -58,17 +180,6 @@ void CreateScalingGroupRequest::setLaunchTemplateId(const std::string& launchTem setCoreParameter("LaunchTemplateId", launchTemplateId); } -std::string CreateScalingGroupRequest::getLoadBalancerIds()const -{ - return loadBalancerIds_; -} - -void CreateScalingGroupRequest::setLoadBalancerIds(const std::string& loadBalancerIds) -{ - loadBalancerIds_ = loadBalancerIds; - setCoreParameter("LoadBalancerIds", loadBalancerIds); -} - std::string CreateScalingGroupRequest::getHealthCheckType()const { return healthCheckType_; @@ -102,29 +213,6 @@ void CreateScalingGroupRequest::setScalingGroupName(const std::string& scalingGr setCoreParameter("ScalingGroupName", scalingGroupName); } -std::string CreateScalingGroupRequest::getClientToken()const -{ - return clientToken_; -} - -void CreateScalingGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setCoreParameter("ClientToken", clientToken); -} - -std::vector CreateScalingGroupRequest::getVSwitchIds()const -{ - return vSwitchIds_; -} - -void CreateScalingGroupRequest::setVSwitchIds(const std::vector& vSwitchIds) -{ - vSwitchIds_ = vSwitchIds; - for(int i = 0; i!= vSwitchIds.size(); i++) - setCoreParameter("VSwitchIds."+ std::to_string(i), vSwitchIds.at(i)); -} - std::string CreateScalingGroupRequest::getOwnerAccount()const { return ownerAccount_; @@ -136,6 +224,17 @@ void CreateScalingGroupRequest::setOwnerAccount(const std::string& ownerAccount) setCoreParameter("OwnerAccount", ownerAccount); } +int CreateScalingGroupRequest::getSpotInstancePools()const +{ + return spotInstancePools_; +} + +void CreateScalingGroupRequest::setSpotInstancePools(int spotInstancePools) +{ + spotInstancePools_ = spotInstancePools; + setCoreParameter("SpotInstancePools", std::to_string(spotInstancePools)); +} + int CreateScalingGroupRequest::getMinSize()const { return minSize_; @@ -180,17 +279,6 @@ void CreateScalingGroupRequest::setScalingPolicy(const std::string& scalingPolic setCoreParameter("ScalingPolicy", scalingPolicy); } -std::string CreateScalingGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateScalingGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - std::string CreateScalingGroupRequest::getVSwitchId()const { return vSwitchId_; @@ -202,17 +290,6 @@ void CreateScalingGroupRequest::setVSwitchId(const std::string& vSwitchId) setCoreParameter("VSwitchId", vSwitchId); } -std::string CreateScalingGroupRequest::getRegionId()const -{ - return regionId_; -} - -void CreateScalingGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - int CreateScalingGroupRequest::getMaxSize()const { return maxSize_; @@ -245,28 +322,6 @@ void CreateScalingGroupRequest::setLifecycleHook(const std::vector CreateScalingGroupRequest::getVServerGroup()const { return vServerGroup_; @@ -284,14 +339,3 @@ void CreateScalingGroupRequest::setVServerGroup(const std::vector& } } -std::string CreateScalingGroupRequest::getRemovalPolicy2()const -{ - return removalPolicy2_; -} - -void CreateScalingGroupRequest::setRemovalPolicy2(const std::string& removalPolicy2) -{ - removalPolicy2_ = removalPolicy2; - setCoreParameter("RemovalPolicy2", removalPolicy2); -} - diff --git a/ess/src/model/CreateScalingGroupResult.cc b/ess/src/model/CreateScalingGroupResult.cc index 9c9614b72..60fbce457 100755 --- a/ess/src/model/CreateScalingGroupResult.cc +++ b/ess/src/model/CreateScalingGroupResult.cc @@ -35,10 +35,13 @@ CreateScalingGroupResult::~CreateScalingGroupResult() void CreateScalingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingGroupId"].isNull()) scalingGroupId_ = value["ScalingGroupId"].asString(); diff --git a/ess/src/model/CreateScalingRuleRequest.cc b/ess/src/model/CreateScalingRuleRequest.cc index c5e4b467f..0aa9a4fc5 100755 --- a/ess/src/model/CreateScalingRuleRequest.cc +++ b/ess/src/model/CreateScalingRuleRequest.cc @@ -98,6 +98,17 @@ void CreateScalingRuleRequest::setOwnerAccount(const std::string& ownerAccount) setCoreParameter("OwnerAccount", ownerAccount); } +int CreateScalingRuleRequest::getPredictiveTaskBufferTime()const +{ + return predictiveTaskBufferTime_; +} + +void CreateScalingRuleRequest::setPredictiveTaskBufferTime(int predictiveTaskBufferTime) +{ + predictiveTaskBufferTime_ = predictiveTaskBufferTime; + setCoreParameter("PredictiveTaskBufferTime", std::to_string(predictiveTaskBufferTime)); +} + std::string CreateScalingRuleRequest::getAdjustmentType()const { return adjustmentType_; @@ -131,6 +142,17 @@ void CreateScalingRuleRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +int CreateScalingRuleRequest::getInitialMaxSize()const +{ + return initialMaxSize_; +} + +void CreateScalingRuleRequest::setInitialMaxSize(int initialMaxSize) +{ + initialMaxSize_ = initialMaxSize; + setCoreParameter("InitialMaxSize", std::to_string(initialMaxSize)); +} + std::string CreateScalingRuleRequest::getAccessKeyId()const { return accessKeyId_; @@ -142,6 +164,17 @@ void CreateScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId) setCoreParameter("AccessKeyId", accessKeyId); } +int CreateScalingRuleRequest::getPredictiveValueBuffer()const +{ + return predictiveValueBuffer_; +} + +void CreateScalingRuleRequest::setPredictiveValueBuffer(int predictiveValueBuffer) +{ + predictiveValueBuffer_ = predictiveValueBuffer; + setCoreParameter("PredictiveValueBuffer", std::to_string(predictiveValueBuffer)); +} + std::string CreateScalingRuleRequest::getScalingRuleName()const { return scalingRuleName_; @@ -175,6 +208,17 @@ void CreateScalingRuleRequest::setMinAdjustmentMagnitude(int minAdjustmentMagnit setCoreParameter("MinAdjustmentMagnitude", std::to_string(minAdjustmentMagnitude)); } +std::string CreateScalingRuleRequest::getPredictiveValueBehavior()const +{ + return predictiveValueBehavior_; +} + +void CreateScalingRuleRequest::setPredictiveValueBehavior(const std::string& predictiveValueBehavior) +{ + predictiveValueBehavior_ = predictiveValueBehavior; + setCoreParameter("PredictiveValueBehavior", predictiveValueBehavior); +} + float CreateScalingRuleRequest::getTargetValue()const { return targetValue_; @@ -208,3 +252,14 @@ void CreateScalingRuleRequest::setMetricName(const std::string& metricName) setCoreParameter("MetricName", metricName); } +std::string CreateScalingRuleRequest::getPredictiveScalingMode()const +{ + return predictiveScalingMode_; +} + +void CreateScalingRuleRequest::setPredictiveScalingMode(const std::string& predictiveScalingMode) +{ + predictiveScalingMode_ = predictiveScalingMode; + setCoreParameter("PredictiveScalingMode", predictiveScalingMode); +} + diff --git a/ess/src/model/CreateScalingRuleResult.cc b/ess/src/model/CreateScalingRuleResult.cc index 6b9d3044e..4a48112af 100755 --- a/ess/src/model/CreateScalingRuleResult.cc +++ b/ess/src/model/CreateScalingRuleResult.cc @@ -35,10 +35,13 @@ CreateScalingRuleResult::~CreateScalingRuleResult() void CreateScalingRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingRuleId"].isNull()) scalingRuleId_ = value["ScalingRuleId"].asString(); diff --git a/ess/src/model/CreateScheduledTaskResult.cc b/ess/src/model/CreateScheduledTaskResult.cc index 42e7359aa..1ba86d3ba 100755 --- a/ess/src/model/CreateScheduledTaskResult.cc +++ b/ess/src/model/CreateScheduledTaskResult.cc @@ -35,10 +35,13 @@ CreateScheduledTaskResult::~CreateScheduledTaskResult() void CreateScheduledTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScheduledTaskId"].isNull()) scheduledTaskId_ = value["ScheduledTaskId"].asString(); diff --git a/ess/src/model/DeactivateScalingConfigurationResult.cc b/ess/src/model/DeactivateScalingConfigurationResult.cc index 24f37fa2f..f165a3411 100755 --- a/ess/src/model/DeactivateScalingConfigurationResult.cc +++ b/ess/src/model/DeactivateScalingConfigurationResult.cc @@ -35,10 +35,13 @@ DeactivateScalingConfigurationResult::~DeactivateScalingConfigurationResult() void DeactivateScalingConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DeleteAlarmResult.cc b/ess/src/model/DeleteAlarmResult.cc index c86d8b8c4..1a1fb13a1 100755 --- a/ess/src/model/DeleteAlarmResult.cc +++ b/ess/src/model/DeleteAlarmResult.cc @@ -35,10 +35,13 @@ DeleteAlarmResult::~DeleteAlarmResult() void DeleteAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AlarmTaskId"].isNull()) alarmTaskId_ = value["AlarmTaskId"].asString(); diff --git a/ess/src/model/DeleteLifecycleHookResult.cc b/ess/src/model/DeleteLifecycleHookResult.cc index bd84a46c5..b37081fee 100755 --- a/ess/src/model/DeleteLifecycleHookResult.cc +++ b/ess/src/model/DeleteLifecycleHookResult.cc @@ -35,10 +35,13 @@ DeleteLifecycleHookResult::~DeleteLifecycleHookResult() void DeleteLifecycleHookResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DeleteNotificationConfigurationResult.cc b/ess/src/model/DeleteNotificationConfigurationResult.cc index 9426129f8..7d9626ac2 100755 --- a/ess/src/model/DeleteNotificationConfigurationResult.cc +++ b/ess/src/model/DeleteNotificationConfigurationResult.cc @@ -35,10 +35,13 @@ DeleteNotificationConfigurationResult::~DeleteNotificationConfigurationResult() void DeleteNotificationConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DeleteScalingConfigurationResult.cc b/ess/src/model/DeleteScalingConfigurationResult.cc index d288ffa35..8e30abd36 100755 --- a/ess/src/model/DeleteScalingConfigurationResult.cc +++ b/ess/src/model/DeleteScalingConfigurationResult.cc @@ -35,10 +35,13 @@ DeleteScalingConfigurationResult::~DeleteScalingConfigurationResult() void DeleteScalingConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DeleteScalingGroupResult.cc b/ess/src/model/DeleteScalingGroupResult.cc index 3673e6218..37e185db1 100755 --- a/ess/src/model/DeleteScalingGroupResult.cc +++ b/ess/src/model/DeleteScalingGroupResult.cc @@ -35,10 +35,13 @@ DeleteScalingGroupResult::~DeleteScalingGroupResult() void DeleteScalingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DeleteScalingRuleResult.cc b/ess/src/model/DeleteScalingRuleResult.cc index c941c7d46..d037ced73 100755 --- a/ess/src/model/DeleteScalingRuleResult.cc +++ b/ess/src/model/DeleteScalingRuleResult.cc @@ -35,10 +35,13 @@ DeleteScalingRuleResult::~DeleteScalingRuleResult() void DeleteScalingRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DeleteScheduledTaskResult.cc b/ess/src/model/DeleteScheduledTaskResult.cc index e83ccf405..8dca9adec 100755 --- a/ess/src/model/DeleteScheduledTaskResult.cc +++ b/ess/src/model/DeleteScheduledTaskResult.cc @@ -35,10 +35,13 @@ DeleteScheduledTaskResult::~DeleteScheduledTaskResult() void DeleteScheduledTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DescribeAlarmsResult.cc b/ess/src/model/DescribeAlarmsResult.cc index 5d224f339..fc618a5e8 100755 --- a/ess/src/model/DescribeAlarmsResult.cc +++ b/ess/src/model/DescribeAlarmsResult.cc @@ -35,10 +35,13 @@ DescribeAlarmsResult::~DescribeAlarmsResult() void DescribeAlarmsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAlarmList = value["AlarmList"]["Alarm"]; for (auto value : allAlarmList) diff --git a/ess/src/model/DescribeAlertConfigResult.cc b/ess/src/model/DescribeAlertConfigResult.cc index 085b2d8f5..daf50db70 100755 --- a/ess/src/model/DescribeAlertConfigResult.cc +++ b/ess/src/model/DescribeAlertConfigResult.cc @@ -35,10 +35,13 @@ DescribeAlertConfigResult::~DescribeAlertConfigResult() void DescribeAlertConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SuccessConfig"].isNull()) successConfig_ = std::stoi(value["SuccessConfig"].asString()); diff --git a/ess/src/model/DescribeCapacityHistoryResult.cc b/ess/src/model/DescribeCapacityHistoryResult.cc index b182d5d40..8ca62bf1d 100755 --- a/ess/src/model/DescribeCapacityHistoryResult.cc +++ b/ess/src/model/DescribeCapacityHistoryResult.cc @@ -35,10 +35,13 @@ DescribeCapacityHistoryResult::~DescribeCapacityHistoryResult() void DescribeCapacityHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCapacityHistoryItems = value["CapacityHistoryItems"]["CapacityHistoryModel"]; for (auto value : allCapacityHistoryItems) diff --git a/ess/src/model/DescribeLifecycleHooksResult.cc b/ess/src/model/DescribeLifecycleHooksResult.cc index 60a11cda1..d662e6551 100755 --- a/ess/src/model/DescribeLifecycleHooksResult.cc +++ b/ess/src/model/DescribeLifecycleHooksResult.cc @@ -35,10 +35,13 @@ DescribeLifecycleHooksResult::~DescribeLifecycleHooksResult() void DescribeLifecycleHooksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLifecycleHooks = value["LifecycleHooks"]["LifecycleHook"]; for (auto value : allLifecycleHooks) diff --git a/ess/src/model/DescribeLimitationResult.cc b/ess/src/model/DescribeLimitationResult.cc index 49fcb0d4c..e9a6ba202 100755 --- a/ess/src/model/DescribeLimitationResult.cc +++ b/ess/src/model/DescribeLimitationResult.cc @@ -35,10 +35,13 @@ DescribeLimitationResult::~DescribeLimitationResult() void DescribeLimitationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MaxNumberOfScalingGroups"].isNull()) maxNumberOfScalingGroups_ = std::stoi(value["MaxNumberOfScalingGroups"].asString()); diff --git a/ess/src/model/DescribeNotificationConfigurationsResult.cc b/ess/src/model/DescribeNotificationConfigurationsResult.cc index 23d3c5ed9..20c96830f 100755 --- a/ess/src/model/DescribeNotificationConfigurationsResult.cc +++ b/ess/src/model/DescribeNotificationConfigurationsResult.cc @@ -35,10 +35,13 @@ DescribeNotificationConfigurationsResult::~DescribeNotificationConfigurationsRes void DescribeNotificationConfigurationsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNotificationConfigurationModels = value["NotificationConfigurationModels"]["NotificationConfigurationModel"]; for (auto value : allNotificationConfigurationModels) diff --git a/ess/src/model/DescribeNotificationTypesResult.cc b/ess/src/model/DescribeNotificationTypesResult.cc index 988528ae6..bda7311c1 100755 --- a/ess/src/model/DescribeNotificationTypesResult.cc +++ b/ess/src/model/DescribeNotificationTypesResult.cc @@ -35,10 +35,13 @@ DescribeNotificationTypesResult::~DescribeNotificationTypesResult() void DescribeNotificationTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNotificationTypes = value["NotificationTypes"]["NotificationType"]; for (const auto &item : allNotificationTypes) diff --git a/ess/src/model/DescribeRegionsRequest.cc b/ess/src/model/DescribeRegionsRequest.cc index 97684c594..e7a1c79ff 100755 --- a/ess/src/model/DescribeRegionsRequest.cc +++ b/ess/src/model/DescribeRegionsRequest.cc @@ -47,6 +47,17 @@ void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resource setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } +std::string DescribeRegionsRequest::getAcceptLanguage()const +{ + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) +{ + acceptLanguage_ = acceptLanguage; + setCoreParameter("AcceptLanguage", acceptLanguage); +} + long DescribeRegionsRequest::getOwnerId()const { return ownerId_; diff --git a/ess/src/model/DescribeRegionsResult.cc b/ess/src/model/DescribeRegionsResult.cc index fb20f3332..96008d021 100755 --- a/ess/src/model/DescribeRegionsResult.cc +++ b/ess/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) @@ -50,6 +53,10 @@ void DescribeRegionsResult::parse(const std::string &payload) regionsObject.classicUnavailable = value["ClassicUnavailable"].asString() == "true"; if(!value["VpcUnavailable"].isNull()) regionsObject.vpcUnavailable = value["VpcUnavailable"].asString() == "true"; + if(!value["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = value["RegionEndpoint"].asString(); + if(!value["LocalName"].isNull()) + regionsObject.localName = value["LocalName"].asString(); regions_.push_back(regionsObject); } diff --git a/ess/src/model/DescribeScalingActivitiesResult.cc b/ess/src/model/DescribeScalingActivitiesResult.cc index 169dd7534..fedfdf6d7 100755 --- a/ess/src/model/DescribeScalingActivitiesResult.cc +++ b/ess/src/model/DescribeScalingActivitiesResult.cc @@ -35,10 +35,13 @@ DescribeScalingActivitiesResult::~DescribeScalingActivitiesResult() void DescribeScalingActivitiesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScalingActivities = value["ScalingActivities"]["ScalingActivity"]; for (auto value : allScalingActivities) diff --git a/ess/src/model/DescribeScalingActivityDetailResult.cc b/ess/src/model/DescribeScalingActivityDetailResult.cc index 5c9958bf1..0c9ccbcbf 100755 --- a/ess/src/model/DescribeScalingActivityDetailResult.cc +++ b/ess/src/model/DescribeScalingActivityDetailResult.cc @@ -35,10 +35,13 @@ DescribeScalingActivityDetailResult::~DescribeScalingActivityDetailResult() void DescribeScalingActivityDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingActivityId"].isNull()) scalingActivityId_ = value["ScalingActivityId"].asString(); diff --git a/ess/src/model/DescribeScalingConfigurationsResult.cc b/ess/src/model/DescribeScalingConfigurationsResult.cc index a23d0e3e6..a37efb80e 100755 --- a/ess/src/model/DescribeScalingConfigurationsResult.cc +++ b/ess/src/model/DescribeScalingConfigurationsResult.cc @@ -35,10 +35,13 @@ DescribeScalingConfigurationsResult::~DescribeScalingConfigurationsResult() void DescribeScalingConfigurationsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScalingConfigurations = value["ScalingConfigurations"]["ScalingConfiguration"]; for (auto value : allScalingConfigurations) @@ -106,6 +109,10 @@ void DescribeScalingConfigurationsResult::parse(const std::string &payload) scalingConfigurationsObject.passwordInherit = value["PasswordInherit"].asString() == "true"; if(!value["ResourceGroupId"].isNull()) scalingConfigurationsObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["HpcClusterId"].isNull()) + scalingConfigurationsObject.hpcClusterId = value["HpcClusterId"].asString(); + if(!value["InstanceDescription"].isNull()) + scalingConfigurationsObject.instanceDescription = value["InstanceDescription"].asString(); auto allDataDisks = value["DataDisks"]["DataDisk"]; for (auto value : allDataDisks) { @@ -153,6 +160,9 @@ void DescribeScalingConfigurationsResult::parse(const std::string &payload) auto allInstanceTypes = value["InstanceTypes"]["InstanceType"]; for (auto value : allInstanceTypes) scalingConfigurationsObject.instanceTypes.push_back(value.asString()); + auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; + for (auto value : allSecurityGroupIds) + scalingConfigurationsObject.securityGroupIds.push_back(value.asString()); scalingConfigurations_.push_back(scalingConfigurationsObject); } if(!value["TotalCount"].isNull()) diff --git a/ess/src/model/DescribeScalingGroupsResult.cc b/ess/src/model/DescribeScalingGroupsResult.cc index c60953877..d0bfe4a3d 100755 --- a/ess/src/model/DescribeScalingGroupsResult.cc +++ b/ess/src/model/DescribeScalingGroupsResult.cc @@ -35,10 +35,13 @@ DescribeScalingGroupsResult::~DescribeScalingGroupsResult() void DescribeScalingGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScalingGroups = value["ScalingGroups"]["ScalingGroup"]; for (auto value : allScalingGroups) @@ -96,6 +99,14 @@ void DescribeScalingGroupsResult::parse(const std::string &payload) scalingGroupsObject.scalingPolicy = value["ScalingPolicy"].asString(); if(!value["StoppedCapacity"].isNull()) scalingGroupsObject.stoppedCapacity = std::stoi(value["StoppedCapacity"].asString()); + if(!value["OnDemandBaseCapacity"].isNull()) + scalingGroupsObject.onDemandBaseCapacity = std::stoi(value["OnDemandBaseCapacity"].asString()); + if(!value["OnDemandPercentageAboveBaseCapacity"].isNull()) + scalingGroupsObject.onDemandPercentageAboveBaseCapacity = std::stoi(value["OnDemandPercentageAboveBaseCapacity"].asString()); + if(!value["SpotInstanceRemedy"].isNull()) + scalingGroupsObject.spotInstanceRemedy = value["SpotInstanceRemedy"].asString() == "true"; + if(!value["SpotInstancePools"].isNull()) + scalingGroupsObject.spotInstancePools = std::stoi(value["SpotInstancePools"].asString()); auto allVServerGroups = value["VServerGroups"]["VServerGroup"]; for (auto value : allVServerGroups) { diff --git a/ess/src/model/DescribeScalingInstancesResult.cc b/ess/src/model/DescribeScalingInstancesResult.cc index 73338f158..80e592120 100755 --- a/ess/src/model/DescribeScalingInstancesResult.cc +++ b/ess/src/model/DescribeScalingInstancesResult.cc @@ -35,10 +35,13 @@ DescribeScalingInstancesResult::~DescribeScalingInstancesResult() void DescribeScalingInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScalingInstances = value["ScalingInstances"]["ScalingInstance"]; for (auto value : allScalingInstances) diff --git a/ess/src/model/DescribeScalingRulesResult.cc b/ess/src/model/DescribeScalingRulesResult.cc index 6aedb3562..936027a6b 100755 --- a/ess/src/model/DescribeScalingRulesResult.cc +++ b/ess/src/model/DescribeScalingRulesResult.cc @@ -35,10 +35,13 @@ DescribeScalingRulesResult::~DescribeScalingRulesResult() void DescribeScalingRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScalingRules = value["ScalingRules"]["ScalingRule"]; for (auto value : allScalingRules) @@ -74,6 +77,16 @@ void DescribeScalingRulesResult::parse(const std::string &payload) scalingRulesObject.targetValue = std::stof(value["TargetValue"].asString()); if(!value["DisableScaleIn"].isNull()) scalingRulesObject.disableScaleIn = value["DisableScaleIn"].asString() == "true"; + if(!value["PredictiveScalingMode"].isNull()) + scalingRulesObject.predictiveScalingMode = value["PredictiveScalingMode"].asString(); + if(!value["PredictiveValueBehavior"].isNull()) + scalingRulesObject.predictiveValueBehavior = value["PredictiveValueBehavior"].asString(); + if(!value["PredictiveValueBuffer"].isNull()) + scalingRulesObject.predictiveValueBuffer = std::stoi(value["PredictiveValueBuffer"].asString()); + if(!value["PredictiveTaskBufferTime"].isNull()) + scalingRulesObject.predictiveTaskBufferTime = std::stoi(value["PredictiveTaskBufferTime"].asString()); + if(!value["InitialMaxSize"].isNull()) + scalingRulesObject.initialMaxSize = std::stoi(value["InitialMaxSize"].asString()); auto allAlarms = value["Alarms"]["Alarm"]; for (auto value : allAlarms) { @@ -82,6 +95,26 @@ void DescribeScalingRulesResult::parse(const std::string &payload) alarmsObject.alarmTaskName = value["AlarmTaskName"].asString(); if(!value["AlarmTaskId"].isNull()) alarmsObject.alarmTaskId = value["AlarmTaskId"].asString(); + if(!value["ComparisonOperator"].isNull()) + alarmsObject.comparisonOperator = value["ComparisonOperator"].asString(); + if(!value["Statistics"].isNull()) + alarmsObject.statistics = value["Statistics"].asString(); + if(!value["MetricName"].isNull()) + alarmsObject.metricName = value["MetricName"].asString(); + if(!value["Threshold"].isNull()) + alarmsObject.threshold = std::stof(value["Threshold"].asString()); + if(!value["EvaluationCount"].isNull()) + alarmsObject.evaluationCount = std::stoi(value["EvaluationCount"].asString()); + auto allDimensions = value["Dimensions"]["Dimension"]; + for (auto value : allDimensions) + { + ScalingRule::Alarm::Dimension dimensionsObject; + if(!value["DimensionKey"].isNull()) + dimensionsObject.dimensionKey = value["DimensionKey"].asString(); + if(!value["DimensionValue"].isNull()) + dimensionsObject.dimensionValue = value["DimensionValue"].asString(); + alarmsObject.dimensions.push_back(dimensionsObject); + } scalingRulesObject.alarms.push_back(alarmsObject); } auto allStepAdjustments = value["StepAdjustments"]["StepAdjustment"]; diff --git a/ess/src/model/DescribeScheduledTasksResult.cc b/ess/src/model/DescribeScheduledTasksResult.cc index cfea4ddb4..abe5d7d2f 100755 --- a/ess/src/model/DescribeScheduledTasksResult.cc +++ b/ess/src/model/DescribeScheduledTasksResult.cc @@ -35,10 +35,13 @@ DescribeScheduledTasksResult::~DescribeScheduledTasksResult() void DescribeScheduledTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScheduledTasks = value["ScheduledTasks"]["ScheduledTask"]; for (auto value : allScheduledTasks) @@ -64,6 +67,10 @@ void DescribeScheduledTasksResult::parse(const std::string &payload) scheduledTasksObject.launchExpirationTime = std::stoi(value["LaunchExpirationTime"].asString()); if(!value["TaskEnabled"].isNull()) scheduledTasksObject.taskEnabled = value["TaskEnabled"].asString() == "true"; + if(!value["MaxValue"].isNull()) + scheduledTasksObject.maxValue = std::stoi(value["MaxValue"].asString()); + if(!value["MinValue"].isNull()) + scheduledTasksObject.minValue = std::stoi(value["MinValue"].asString()); scheduledTasks_.push_back(scheduledTasksObject); } if(!value["TotalCount"].isNull()) diff --git a/ess/src/model/DetachDBInstancesResult.cc b/ess/src/model/DetachDBInstancesResult.cc index 0f7e0bbac..515a4a4b8 100755 --- a/ess/src/model/DetachDBInstancesResult.cc +++ b/ess/src/model/DetachDBInstancesResult.cc @@ -35,10 +35,13 @@ DetachDBInstancesResult::~DetachDBInstancesResult() void DetachDBInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DetachInstancesResult.cc b/ess/src/model/DetachInstancesResult.cc index 561e86f9e..ffc945364 100755 --- a/ess/src/model/DetachInstancesResult.cc +++ b/ess/src/model/DetachInstancesResult.cc @@ -35,10 +35,13 @@ DetachInstancesResult::~DetachInstancesResult() void DetachInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingActivityId"].isNull()) scalingActivityId_ = value["ScalingActivityId"].asString(); diff --git a/ess/src/model/DetachLoadBalancersResult.cc b/ess/src/model/DetachLoadBalancersResult.cc index b1e2d2275..9f836aba4 100755 --- a/ess/src/model/DetachLoadBalancersResult.cc +++ b/ess/src/model/DetachLoadBalancersResult.cc @@ -35,10 +35,13 @@ DetachLoadBalancersResult::~DetachLoadBalancersResult() void DetachLoadBalancersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DetachVServerGroupsResult.cc b/ess/src/model/DetachVServerGroupsResult.cc index aeada2b3b..d74c28b64 100755 --- a/ess/src/model/DetachVServerGroupsResult.cc +++ b/ess/src/model/DetachVServerGroupsResult.cc @@ -35,10 +35,13 @@ DetachVServerGroupsResult::~DetachVServerGroupsResult() void DetachVServerGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DisableAlarmResult.cc b/ess/src/model/DisableAlarmResult.cc index bbf980358..70900264d 100755 --- a/ess/src/model/DisableAlarmResult.cc +++ b/ess/src/model/DisableAlarmResult.cc @@ -35,10 +35,13 @@ DisableAlarmResult::~DisableAlarmResult() void DisableAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/DisableScalingGroupResult.cc b/ess/src/model/DisableScalingGroupResult.cc index e8fd8d802..84faf0d12 100755 --- a/ess/src/model/DisableScalingGroupResult.cc +++ b/ess/src/model/DisableScalingGroupResult.cc @@ -35,10 +35,13 @@ DisableScalingGroupResult::~DisableScalingGroupResult() void DisableScalingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/EnableAlarmResult.cc b/ess/src/model/EnableAlarmResult.cc index 1714d54ab..06d1cbd60 100755 --- a/ess/src/model/EnableAlarmResult.cc +++ b/ess/src/model/EnableAlarmResult.cc @@ -35,10 +35,13 @@ EnableAlarmResult::~EnableAlarmResult() void EnableAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/EnableScalingGroupResult.cc b/ess/src/model/EnableScalingGroupResult.cc index f72fdb2dc..9d712ef17 100755 --- a/ess/src/model/EnableScalingGroupResult.cc +++ b/ess/src/model/EnableScalingGroupResult.cc @@ -35,10 +35,13 @@ EnableScalingGroupResult::~EnableScalingGroupResult() void EnableScalingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/EnterStandbyResult.cc b/ess/src/model/EnterStandbyResult.cc index d3110af09..3cb5ebdc5 100755 --- a/ess/src/model/EnterStandbyResult.cc +++ b/ess/src/model/EnterStandbyResult.cc @@ -35,10 +35,13 @@ EnterStandbyResult::~EnterStandbyResult() void EnterStandbyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ExecuteScalingRuleResult.cc b/ess/src/model/ExecuteScalingRuleResult.cc index dffd06d52..e83c7fd31 100755 --- a/ess/src/model/ExecuteScalingRuleResult.cc +++ b/ess/src/model/ExecuteScalingRuleResult.cc @@ -35,10 +35,13 @@ ExecuteScalingRuleResult::~ExecuteScalingRuleResult() void ExecuteScalingRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingActivityId"].isNull()) scalingActivityId_ = value["ScalingActivityId"].asString(); diff --git a/ess/src/model/ExitStandbyResult.cc b/ess/src/model/ExitStandbyResult.cc index 126c604e9..d1a2d9ea9 100755 --- a/ess/src/model/ExitStandbyResult.cc +++ b/ess/src/model/ExitStandbyResult.cc @@ -35,10 +35,13 @@ ExitStandbyResult::~ExitStandbyResult() void ExitStandbyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ModifyAlarmResult.cc b/ess/src/model/ModifyAlarmResult.cc index 5bf239283..8dff064f5 100755 --- a/ess/src/model/ModifyAlarmResult.cc +++ b/ess/src/model/ModifyAlarmResult.cc @@ -35,10 +35,13 @@ ModifyAlarmResult::~ModifyAlarmResult() void ModifyAlarmResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AlarmTaskId"].isNull()) alarmTaskId_ = value["AlarmTaskId"].asString(); diff --git a/ess/src/model/ModifyAlertConfigResult.cc b/ess/src/model/ModifyAlertConfigResult.cc index 468f7886b..bb6ce342c 100755 --- a/ess/src/model/ModifyAlertConfigResult.cc +++ b/ess/src/model/ModifyAlertConfigResult.cc @@ -35,10 +35,13 @@ ModifyAlertConfigResult::~ModifyAlertConfigResult() void ModifyAlertConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ModifyLifecycleHookResult.cc b/ess/src/model/ModifyLifecycleHookResult.cc index 3256e69bf..f71e569da 100755 --- a/ess/src/model/ModifyLifecycleHookResult.cc +++ b/ess/src/model/ModifyLifecycleHookResult.cc @@ -35,10 +35,13 @@ ModifyLifecycleHookResult::~ModifyLifecycleHookResult() void ModifyLifecycleHookResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ModifyNotificationConfigurationResult.cc b/ess/src/model/ModifyNotificationConfigurationResult.cc index 07883ea27..1153705b4 100755 --- a/ess/src/model/ModifyNotificationConfigurationResult.cc +++ b/ess/src/model/ModifyNotificationConfigurationResult.cc @@ -35,10 +35,13 @@ ModifyNotificationConfigurationResult::~ModifyNotificationConfigurationResult() void ModifyNotificationConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ModifyScalingConfigurationRequest.cc b/ess/src/model/ModifyScalingConfigurationRequest.cc index 8398ffc5a..dc852ca70 100755 --- a/ess/src/model/ModifyScalingConfigurationRequest.cc +++ b/ess/src/model/ModifyScalingConfigurationRequest.cc @@ -47,6 +47,17 @@ void ModifyScalingConfigurationRequest::setMemory(int memory) setCoreParameter("Memory", std::to_string(memory)); } +std::string ModifyScalingConfigurationRequest::getHpcClusterId()const +{ + return hpcClusterId_; +} + +void ModifyScalingConfigurationRequest::setHpcClusterId(const std::string& hpcClusterId) +{ + hpcClusterId_ = hpcClusterId; + setCoreParameter("HpcClusterId", hpcClusterId); +} + std::string ModifyScalingConfigurationRequest::getIoOptimized()const { return ioOptimized_; @@ -197,6 +208,17 @@ void ModifyScalingConfigurationRequest::setImageName(const std::string& imageNam setCoreParameter("ImageName", imageName); } +std::string ModifyScalingConfigurationRequest::getInstanceDescription()const +{ + return instanceDescription_; +} + +void ModifyScalingConfigurationRequest::setInstanceDescription(const std::string& instanceDescription) +{ + instanceDescription_ = instanceDescription; + setCoreParameter("InstanceDescription", instanceDescription); +} + bool ModifyScalingConfigurationRequest::getOverride()const { return override_; @@ -285,6 +307,18 @@ void ModifyScalingConfigurationRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +std::vector ModifyScalingConfigurationRequest::getSecurityGroupIds()const +{ + return securityGroupIds_; +} + +void ModifyScalingConfigurationRequest::setSecurityGroupIds(const std::vector& securityGroupIds) +{ + securityGroupIds_ = securityGroupIds; + for(int i = 0; i!= securityGroupIds.size(); i++) + setCoreParameter("SecurityGroupIds."+ std::to_string(i), securityGroupIds.at(i)); +} + std::vector ModifyScalingConfigurationRequest::getDataDisk()const { return dataDisk_; diff --git a/ess/src/model/ModifyScalingConfigurationResult.cc b/ess/src/model/ModifyScalingConfigurationResult.cc index 231a60fb0..90f8bdba9 100755 --- a/ess/src/model/ModifyScalingConfigurationResult.cc +++ b/ess/src/model/ModifyScalingConfigurationResult.cc @@ -35,10 +35,13 @@ ModifyScalingConfigurationResult::~ModifyScalingConfigurationResult() void ModifyScalingConfigurationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ModifyScalingGroupRequest.cc b/ess/src/model/ModifyScalingGroupRequest.cc index 39d11106b..53690f82d 100755 --- a/ess/src/model/ModifyScalingGroupRequest.cc +++ b/ess/src/model/ModifyScalingGroupRequest.cc @@ -114,6 +114,17 @@ void ModifyScalingGroupRequest::setOwnerAccount(const std::string& ownerAccount) setCoreParameter("OwnerAccount", ownerAccount); } +int ModifyScalingGroupRequest::getSpotInstancePools()const +{ + return spotInstancePools_; +} + +void ModifyScalingGroupRequest::setSpotInstancePools(int spotInstancePools) +{ + spotInstancePools_ = spotInstancePools; + setCoreParameter("SpotInstancePools", std::to_string(spotInstancePools)); +} + std::string ModifyScalingGroupRequest::getActiveScalingConfigurationId()const { return activeScalingConfigurationId_; @@ -158,6 +169,17 @@ void ModifyScalingGroupRequest::setLaunchTemplateVersion(const std::string& laun setCoreParameter("LaunchTemplateVersion", launchTemplateVersion); } +int ModifyScalingGroupRequest::getOnDemandBaseCapacity()const +{ + return onDemandBaseCapacity_; +} + +void ModifyScalingGroupRequest::setOnDemandBaseCapacity(int onDemandBaseCapacity) +{ + onDemandBaseCapacity_ = onDemandBaseCapacity; + setCoreParameter("OnDemandBaseCapacity", std::to_string(onDemandBaseCapacity)); +} + std::string ModifyScalingGroupRequest::getAccessKeyId()const { return accessKeyId_; @@ -169,6 +191,28 @@ void ModifyScalingGroupRequest::setAccessKeyId(const std::string& accessKeyId) setCoreParameter("AccessKeyId", accessKeyId); } +int ModifyScalingGroupRequest::getOnDemandPercentageAboveBaseCapacity()const +{ + return onDemandPercentageAboveBaseCapacity_; +} + +void ModifyScalingGroupRequest::setOnDemandPercentageAboveBaseCapacity(int onDemandPercentageAboveBaseCapacity) +{ + onDemandPercentageAboveBaseCapacity_ = onDemandPercentageAboveBaseCapacity; + setCoreParameter("OnDemandPercentageAboveBaseCapacity", std::to_string(onDemandPercentageAboveBaseCapacity)); +} + +bool ModifyScalingGroupRequest::getSpotInstanceRemedy()const +{ + return spotInstanceRemedy_; +} + +void ModifyScalingGroupRequest::setSpotInstanceRemedy(bool spotInstanceRemedy) +{ + spotInstanceRemedy_ = spotInstanceRemedy; + setCoreParameter("SpotInstanceRemedy", spotInstanceRemedy ? "true" : "false"); +} + int ModifyScalingGroupRequest::getMaxSize()const { return maxSize_; diff --git a/ess/src/model/ModifyScalingGroupResult.cc b/ess/src/model/ModifyScalingGroupResult.cc index fb992fae4..11f62ffc7 100755 --- a/ess/src/model/ModifyScalingGroupResult.cc +++ b/ess/src/model/ModifyScalingGroupResult.cc @@ -35,10 +35,13 @@ ModifyScalingGroupResult::~ModifyScalingGroupResult() void ModifyScalingGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ModifyScalingRuleRequest.cc b/ess/src/model/ModifyScalingRuleRequest.cc index 7ab8a5e9e..45ce11309 100755 --- a/ess/src/model/ModifyScalingRuleRequest.cc +++ b/ess/src/model/ModifyScalingRuleRequest.cc @@ -98,6 +98,17 @@ void ModifyScalingRuleRequest::setOwnerAccount(const std::string& ownerAccount) setCoreParameter("OwnerAccount", ownerAccount); } +int ModifyScalingRuleRequest::getPredictiveTaskBufferTime()const +{ + return predictiveTaskBufferTime_; +} + +void ModifyScalingRuleRequest::setPredictiveTaskBufferTime(int predictiveTaskBufferTime) +{ + predictiveTaskBufferTime_ = predictiveTaskBufferTime; + setCoreParameter("PredictiveTaskBufferTime", std::to_string(predictiveTaskBufferTime)); +} + std::string ModifyScalingRuleRequest::getAdjustmentType()const { return adjustmentType_; @@ -142,6 +153,17 @@ void ModifyScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId setCoreParameter("ScalingRuleId", scalingRuleId); } +int ModifyScalingRuleRequest::getInitialMaxSize()const +{ + return initialMaxSize_; +} + +void ModifyScalingRuleRequest::setInitialMaxSize(int initialMaxSize) +{ + initialMaxSize_ = initialMaxSize; + setCoreParameter("InitialMaxSize", std::to_string(initialMaxSize)); +} + std::string ModifyScalingRuleRequest::getAccessKeyId()const { return accessKeyId_; @@ -153,6 +175,17 @@ void ModifyScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId) setCoreParameter("AccessKeyId", accessKeyId); } +int ModifyScalingRuleRequest::getPredictiveValueBuffer()const +{ + return predictiveValueBuffer_; +} + +void ModifyScalingRuleRequest::setPredictiveValueBuffer(int predictiveValueBuffer) +{ + predictiveValueBuffer_ = predictiveValueBuffer; + setCoreParameter("PredictiveValueBuffer", std::to_string(predictiveValueBuffer)); +} + std::string ModifyScalingRuleRequest::getScalingRuleName()const { return scalingRuleName_; @@ -186,6 +219,17 @@ void ModifyScalingRuleRequest::setMinAdjustmentMagnitude(int minAdjustmentMagnit setCoreParameter("MinAdjustmentMagnitude", std::to_string(minAdjustmentMagnitude)); } +std::string ModifyScalingRuleRequest::getPredictiveValueBehavior()const +{ + return predictiveValueBehavior_; +} + +void ModifyScalingRuleRequest::setPredictiveValueBehavior(const std::string& predictiveValueBehavior) +{ + predictiveValueBehavior_ = predictiveValueBehavior; + setCoreParameter("PredictiveValueBehavior", predictiveValueBehavior); +} + float ModifyScalingRuleRequest::getTargetValue()const { return targetValue_; @@ -208,3 +252,14 @@ void ModifyScalingRuleRequest::setMetricName(const std::string& metricName) setCoreParameter("MetricName", metricName); } +std::string ModifyScalingRuleRequest::getPredictiveScalingMode()const +{ + return predictiveScalingMode_; +} + +void ModifyScalingRuleRequest::setPredictiveScalingMode(const std::string& predictiveScalingMode) +{ + predictiveScalingMode_ = predictiveScalingMode; + setCoreParameter("PredictiveScalingMode", predictiveScalingMode); +} + diff --git a/ess/src/model/ModifyScalingRuleResult.cc b/ess/src/model/ModifyScalingRuleResult.cc index bd8a18d9e..9cd50510f 100755 --- a/ess/src/model/ModifyScalingRuleResult.cc +++ b/ess/src/model/ModifyScalingRuleResult.cc @@ -35,10 +35,13 @@ ModifyScalingRuleResult::~ModifyScalingRuleResult() void ModifyScalingRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/ModifyScheduledTaskRequest.cc b/ess/src/model/ModifyScheduledTaskRequest.cc index 76de6212f..4c7b4215a 100755 --- a/ess/src/model/ModifyScheduledTaskRequest.cc +++ b/ess/src/model/ModifyScheduledTaskRequest.cc @@ -58,6 +58,17 @@ void ModifyScheduledTaskRequest::setScheduledAction(const std::string& scheduled setCoreParameter("ScheduledAction", scheduledAction); } +int ModifyScheduledTaskRequest::getMaxValue()const +{ + return maxValue_; +} + +void ModifyScheduledTaskRequest::setMaxValue(int maxValue) +{ + maxValue_ = maxValue; + setCoreParameter("MaxValue", std::to_string(maxValue)); +} + std::string ModifyScheduledTaskRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -146,6 +157,17 @@ void ModifyScheduledTaskRequest::setAccessKeyId(const std::string& accessKeyId) setCoreParameter("AccessKeyId", accessKeyId); } +int ModifyScheduledTaskRequest::getMinValue()const +{ + return minValue_; +} + +void ModifyScheduledTaskRequest::setMinValue(int minValue) +{ + minValue_ = minValue; + setCoreParameter("MinValue", std::to_string(minValue)); +} + std::string ModifyScheduledTaskRequest::getScheduledTaskName()const { return scheduledTaskName_; diff --git a/ess/src/model/ModifyScheduledTaskResult.cc b/ess/src/model/ModifyScheduledTaskResult.cc index 29d4f6c55..abe2205c3 100755 --- a/ess/src/model/ModifyScheduledTaskResult.cc +++ b/ess/src/model/ModifyScheduledTaskResult.cc @@ -35,10 +35,13 @@ ModifyScheduledTaskResult::~ModifyScheduledTaskResult() void ModifyScheduledTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/RebalanceInstancesResult.cc b/ess/src/model/RebalanceInstancesResult.cc index 31101b5e7..202a59725 100755 --- a/ess/src/model/RebalanceInstancesResult.cc +++ b/ess/src/model/RebalanceInstancesResult.cc @@ -35,10 +35,13 @@ RebalanceInstancesResult::~RebalanceInstancesResult() void RebalanceInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingActivityId"].isNull()) scalingActivityId_ = value["ScalingActivityId"].asString(); diff --git a/ess/src/model/RecordLifecycleActionHeartbeatResult.cc b/ess/src/model/RecordLifecycleActionHeartbeatResult.cc index ab9f42fe4..810576b4e 100755 --- a/ess/src/model/RecordLifecycleActionHeartbeatResult.cc +++ b/ess/src/model/RecordLifecycleActionHeartbeatResult.cc @@ -35,10 +35,13 @@ RecordLifecycleActionHeartbeatResult::~RecordLifecycleActionHeartbeatResult() void RecordLifecycleActionHeartbeatResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/RemoveInstancesResult.cc b/ess/src/model/RemoveInstancesResult.cc index b3a2f3074..bf9639fea 100755 --- a/ess/src/model/RemoveInstancesResult.cc +++ b/ess/src/model/RemoveInstancesResult.cc @@ -35,10 +35,13 @@ RemoveInstancesResult::~RemoveInstancesResult() void RemoveInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScalingActivityId"].isNull()) scalingActivityId_ = value["ScalingActivityId"].asString(); diff --git a/ess/src/model/SetInstancesProtectionResult.cc b/ess/src/model/SetInstancesProtectionResult.cc index e3a90689f..c5bd985a4 100755 --- a/ess/src/model/SetInstancesProtectionResult.cc +++ b/ess/src/model/SetInstancesProtectionResult.cc @@ -35,10 +35,13 @@ SetInstancesProtectionResult::~SetInstancesProtectionResult() void SetInstancesProtectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/VerifyAuthenticationResult.cc b/ess/src/model/VerifyAuthenticationResult.cc index 542eefaea..d08dfcaa0 100755 --- a/ess/src/model/VerifyAuthenticationResult.cc +++ b/ess/src/model/VerifyAuthenticationResult.cc @@ -35,10 +35,13 @@ VerifyAuthenticationResult::~VerifyAuthenticationResult() void VerifyAuthenticationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ess/src/model/VerifyUserResult.cc b/ess/src/model/VerifyUserResult.cc index ddd231e36..fff1e3450 100755 --- a/ess/src/model/VerifyUserResult.cc +++ b/ess/src/model/VerifyUserResult.cc @@ -35,10 +35,13 @@ VerifyUserResult::~VerifyUserResult() void VerifyUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/CMakeLists.txt b/gpdb/CMakeLists.txt index 213450316..4a21f0714 100644 --- a/gpdb/CMakeLists.txt +++ b/gpdb/CMakeLists.txt @@ -41,10 +41,10 @@ set(gpdb_public_header_model include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h include/alibabacloud/gpdb/model/ModifyAccountDescriptionRequest.h include/alibabacloud/gpdb/model/ModifyAccountDescriptionResult.h - include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h - include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h + include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h + include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyRequest.h include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyResult.h include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h @@ -55,14 +55,14 @@ set(gpdb_public_header_model include/alibabacloud/gpdb/model/DescribeRegionsResult.h include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringRequest.h include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringResult.h - include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h - include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h - include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h - include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h + include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h + include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h include/alibabacloud/gpdb/model/RestartDBInstanceRequest.h include/alibabacloud/gpdb/model/RestartDBInstanceResult.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoResult.h include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h @@ -81,6 +81,8 @@ set(gpdb_public_header_model include/alibabacloud/gpdb/model/ModifySecurityIpsResult.h include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionRequest.h include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionResult.h + include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h + include/alibabacloud/gpdb/model/UpgradeDBInstanceResult.h include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h @@ -114,10 +116,10 @@ set(gpdb_src src/model/DescribeDBInstanceAttributeResult.cc src/model/ModifyAccountDescriptionRequest.cc src/model/ModifyAccountDescriptionResult.cc - src/model/DescribeResourceUsageRequest.cc - src/model/DescribeResourceUsageResult.cc src/model/DescribeSQLCollectorPolicyRequest.cc src/model/DescribeSQLCollectorPolicyResult.cc + src/model/DescribeResourceUsageRequest.cc + src/model/DescribeResourceUsageResult.cc src/model/ModifySQLCollectorPolicyRequest.cc src/model/ModifySQLCollectorPolicyResult.cc src/model/CreateDBInstanceRequest.cc @@ -128,14 +130,14 @@ set(gpdb_src src/model/DescribeRegionsResult.cc src/model/ModifyDBInstanceConnectionStringRequest.cc src/model/ModifyDBInstanceConnectionStringResult.cc - src/model/DeleteDBInstanceRequest.cc - src/model/DeleteDBInstanceResult.cc src/model/DescribeSlowLogRecordsRequest.cc src/model/DescribeSlowLogRecordsResult.cc - src/model/ModifyDBInstanceConnectionModeRequest.cc - src/model/ModifyDBInstanceConnectionModeResult.cc + src/model/DeleteDBInstanceRequest.cc + src/model/DeleteDBInstanceResult.cc src/model/RestartDBInstanceRequest.cc src/model/RestartDBInstanceResult.cc + src/model/ModifyDBInstanceConnectionModeRequest.cc + src/model/ModifyDBInstanceConnectionModeResult.cc src/model/DescribeDBInstanceNetInfoRequest.cc src/model/DescribeDBInstanceNetInfoResult.cc src/model/AddBuDBInstanceRelationRequest.cc @@ -154,6 +156,8 @@ set(gpdb_src src/model/ModifySecurityIpsResult.cc src/model/ReleaseInstancePublicConnectionRequest.cc src/model/ReleaseInstancePublicConnectionResult.cc + src/model/UpgradeDBInstanceRequest.cc + src/model/UpgradeDBInstanceResult.cc src/model/DescribeSQLLogFilesRequest.cc src/model/DescribeSQLLogFilesResult.cc src/model/ModifyDBInstanceNetworkTypeRequest.cc diff --git a/gpdb/include/alibabacloud/gpdb/GpdbClient.h b/gpdb/include/alibabacloud/gpdb/GpdbClient.h index 5adcf8aa6..dbf92c55a 100644 --- a/gpdb/include/alibabacloud/gpdb/GpdbClient.h +++ b/gpdb/include/alibabacloud/gpdb/GpdbClient.h @@ -42,10 +42,10 @@ #include "model/DescribeDBInstanceAttributeResult.h" #include "model/ModifyAccountDescriptionRequest.h" #include "model/ModifyAccountDescriptionResult.h" -#include "model/DescribeResourceUsageRequest.h" -#include "model/DescribeResourceUsageResult.h" #include "model/DescribeSQLCollectorPolicyRequest.h" #include "model/DescribeSQLCollectorPolicyResult.h" +#include "model/DescribeResourceUsageRequest.h" +#include "model/DescribeResourceUsageResult.h" #include "model/ModifySQLCollectorPolicyRequest.h" #include "model/ModifySQLCollectorPolicyResult.h" #include "model/CreateDBInstanceRequest.h" @@ -56,14 +56,14 @@ #include "model/DescribeRegionsResult.h" #include "model/ModifyDBInstanceConnectionStringRequest.h" #include "model/ModifyDBInstanceConnectionStringResult.h" -#include "model/DeleteDBInstanceRequest.h" -#include "model/DeleteDBInstanceResult.h" #include "model/DescribeSlowLogRecordsRequest.h" #include "model/DescribeSlowLogRecordsResult.h" -#include "model/ModifyDBInstanceConnectionModeRequest.h" -#include "model/ModifyDBInstanceConnectionModeResult.h" +#include "model/DeleteDBInstanceRequest.h" +#include "model/DeleteDBInstanceResult.h" #include "model/RestartDBInstanceRequest.h" #include "model/RestartDBInstanceResult.h" +#include "model/ModifyDBInstanceConnectionModeRequest.h" +#include "model/ModifyDBInstanceConnectionModeResult.h" #include "model/DescribeDBInstanceNetInfoRequest.h" #include "model/DescribeDBInstanceNetInfoResult.h" #include "model/AddBuDBInstanceRelationRequest.h" @@ -82,6 +82,8 @@ #include "model/ModifySecurityIpsResult.h" #include "model/ReleaseInstancePublicConnectionRequest.h" #include "model/ReleaseInstancePublicConnectionResult.h" +#include "model/UpgradeDBInstanceRequest.h" +#include "model/UpgradeDBInstanceResult.h" #include "model/DescribeSQLLogFilesRequest.h" #include "model/DescribeSQLLogFilesResult.h" #include "model/ModifyDBInstanceNetworkTypeRequest.h" @@ -131,12 +133,12 @@ namespace AlibabaCloud typedef Outcome ModifyAccountDescriptionOutcome; typedef std::future ModifyAccountDescriptionOutcomeCallable; typedef std::function&)> ModifyAccountDescriptionAsyncHandler; - typedef Outcome DescribeResourceUsageOutcome; - typedef std::future DescribeResourceUsageOutcomeCallable; - typedef std::function&)> DescribeResourceUsageAsyncHandler; typedef Outcome DescribeSQLCollectorPolicyOutcome; typedef std::future DescribeSQLCollectorPolicyOutcomeCallable; typedef std::function&)> DescribeSQLCollectorPolicyAsyncHandler; + typedef Outcome DescribeResourceUsageOutcome; + typedef std::future DescribeResourceUsageOutcomeCallable; + typedef std::function&)> DescribeResourceUsageAsyncHandler; typedef Outcome ModifySQLCollectorPolicyOutcome; typedef std::future ModifySQLCollectorPolicyOutcomeCallable; typedef std::function&)> ModifySQLCollectorPolicyAsyncHandler; @@ -152,18 +154,18 @@ namespace AlibabaCloud typedef Outcome ModifyDBInstanceConnectionStringOutcome; typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; - typedef Outcome DeleteDBInstanceOutcome; - typedef std::future DeleteDBInstanceOutcomeCallable; - typedef std::function&)> DeleteDBInstanceAsyncHandler; typedef Outcome DescribeSlowLogRecordsOutcome; typedef std::future DescribeSlowLogRecordsOutcomeCallable; typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; - typedef Outcome ModifyDBInstanceConnectionModeOutcome; - typedef std::future ModifyDBInstanceConnectionModeOutcomeCallable; - typedef std::function&)> ModifyDBInstanceConnectionModeAsyncHandler; + typedef Outcome DeleteDBInstanceOutcome; + typedef std::future DeleteDBInstanceOutcomeCallable; + typedef std::function&)> DeleteDBInstanceAsyncHandler; typedef Outcome RestartDBInstanceOutcome; typedef std::future RestartDBInstanceOutcomeCallable; typedef std::function&)> RestartDBInstanceAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionModeOutcome; + typedef std::future ModifyDBInstanceConnectionModeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionModeAsyncHandler; typedef Outcome DescribeDBInstanceNetInfoOutcome; typedef std::future DescribeDBInstanceNetInfoOutcomeCallable; typedef std::function&)> DescribeDBInstanceNetInfoAsyncHandler; @@ -191,6 +193,9 @@ namespace AlibabaCloud typedef Outcome ReleaseInstancePublicConnectionOutcome; typedef std::future ReleaseInstancePublicConnectionOutcomeCallable; typedef std::function&)> ReleaseInstancePublicConnectionAsyncHandler; + typedef Outcome UpgradeDBInstanceOutcome; + typedef std::future UpgradeDBInstanceOutcomeCallable; + typedef std::function&)> UpgradeDBInstanceAsyncHandler; typedef Outcome DescribeSQLLogFilesOutcome; typedef std::future DescribeSQLLogFilesOutcomeCallable; typedef std::function&)> DescribeSQLLogFilesAsyncHandler; @@ -241,12 +246,12 @@ namespace AlibabaCloud ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; - DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const; - void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeResourceUsageOutcomeCallable describeResourceUsageCallable(const Model::DescribeResourceUsageRequest& request) const; DescribeSQLCollectorPolicyOutcome describeSQLCollectorPolicy(const Model::DescribeSQLCollectorPolicyRequest &request)const; void describeSQLCollectorPolicyAsync(const Model::DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLCollectorPolicyOutcomeCallable describeSQLCollectorPolicyCallable(const Model::DescribeSQLCollectorPolicyRequest& request) const; + DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const; + void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourceUsageOutcomeCallable describeResourceUsageCallable(const Model::DescribeResourceUsageRequest& request) const; ModifySQLCollectorPolicyOutcome modifySQLCollectorPolicy(const Model::ModifySQLCollectorPolicyRequest &request)const; void modifySQLCollectorPolicyAsync(const Model::ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySQLCollectorPolicyOutcomeCallable modifySQLCollectorPolicyCallable(const Model::ModifySQLCollectorPolicyRequest& request) const; @@ -262,18 +267,18 @@ namespace AlibabaCloud ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; - DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; - void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const; DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const; - ModifyDBInstanceConnectionModeOutcome modifyDBInstanceConnectionMode(const Model::ModifyDBInstanceConnectionModeRequest &request)const; - void modifyDBInstanceConnectionModeAsync(const Model::ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDBInstanceConnectionModeOutcomeCallable modifyDBInstanceConnectionModeCallable(const Model::ModifyDBInstanceConnectionModeRequest& request) const; + DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; + void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const; RestartDBInstanceOutcome restartDBInstance(const Model::RestartDBInstanceRequest &request)const; void restartDBInstanceAsync(const Model::RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartDBInstanceOutcomeCallable restartDBInstanceCallable(const Model::RestartDBInstanceRequest& request) const; + ModifyDBInstanceConnectionModeOutcome modifyDBInstanceConnectionMode(const Model::ModifyDBInstanceConnectionModeRequest &request)const; + void modifyDBInstanceConnectionModeAsync(const Model::ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionModeOutcomeCallable modifyDBInstanceConnectionModeCallable(const Model::ModifyDBInstanceConnectionModeRequest& request) const; DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const; void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceNetInfoOutcomeCallable describeDBInstanceNetInfoCallable(const Model::DescribeDBInstanceNetInfoRequest& request) const; @@ -301,6 +306,9 @@ namespace AlibabaCloud ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const; void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const; + UpgradeDBInstanceOutcome upgradeDBInstance(const Model::UpgradeDBInstanceRequest &request)const; + void upgradeDBInstanceAsync(const Model::UpgradeDBInstanceRequest& request, const UpgradeDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBInstanceOutcomeCallable upgradeDBInstanceCallable(const Model::UpgradeDBInstanceRequest& request) const; DescribeSQLLogFilesOutcome describeSQLLogFiles(const Model::DescribeSQLLogFilesRequest &request)const; void describeSQLLogFilesAsync(const Model::DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLLogFilesOutcomeCallable describeSQLLogFilesCallable(const Model::DescribeSQLLogFilesRequest& request) const; diff --git a/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h new file mode 100644 index 000000000..e9e33d6a5 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.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_GPDB_MODEL_UPGRADEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_UPGRADEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT UpgradeDBInstanceRequest : public RpcServiceRequest + { + + public: + UpgradeDBInstanceRequest(); + ~UpgradeDBInstanceRequest(); + + std::string getDBInstanceGroupCount()const; + void setDBInstanceGroupCount(const std::string& dBInstanceGroupCount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + + private: + std::string dBInstanceGroupCount_; + std::string regionId_; + std::string dBInstanceId_; + long ownerId_; + std::string payType_; + std::string accessKeyId_; + std::string dBInstanceClass_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_UPGRADEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceResult.h new file mode 100644 index 000000000..03c99d722 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_UPGRADEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_UPGRADEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT UpgradeDBInstanceResult : public ServiceResult + { + public: + + + UpgradeDBInstanceResult(); + explicit UpgradeDBInstanceResult(const std::string &payload); + ~UpgradeDBInstanceResult(); + std::string getDBInstanceId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_UPGRADEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/src/GpdbClient.cc b/gpdb/src/GpdbClient.cc index bf6d21d8a..b09e812b2 100644 --- a/gpdb/src/GpdbClient.cc +++ b/gpdb/src/GpdbClient.cc @@ -411,42 +411,6 @@ GpdbClient::ModifyAccountDescriptionOutcomeCallable GpdbClient::modifyAccountDes return task->get_future(); } -GpdbClient::DescribeResourceUsageOutcome GpdbClient::describeResourceUsage(const DescribeResourceUsageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeResourceUsageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeResourceUsageOutcome(DescribeResourceUsageResult(outcome.result())); - else - return DescribeResourceUsageOutcome(outcome.error()); -} - -void GpdbClient::describeResourceUsageAsync(const DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeResourceUsage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeResourceUsageOutcomeCallable GpdbClient::describeResourceUsageCallable(const DescribeResourceUsageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeResourceUsage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GpdbClient::DescribeSQLCollectorPolicyOutcome GpdbClient::describeSQLCollectorPolicy(const DescribeSQLCollectorPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +447,42 @@ GpdbClient::DescribeSQLCollectorPolicyOutcomeCallable GpdbClient::describeSQLCol return task->get_future(); } +GpdbClient::DescribeResourceUsageOutcome GpdbClient::describeResourceUsage(const DescribeResourceUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourceUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourceUsageOutcome(DescribeResourceUsageResult(outcome.result())); + else + return DescribeResourceUsageOutcome(outcome.error()); +} + +void GpdbClient::describeResourceUsageAsync(const DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourceUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeResourceUsageOutcomeCallable GpdbClient::describeResourceUsageCallable(const DescribeResourceUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourceUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::ModifySQLCollectorPolicyOutcome GpdbClient::modifySQLCollectorPolicy(const ModifySQLCollectorPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,42 +663,6 @@ GpdbClient::ModifyDBInstanceConnectionStringOutcomeCallable GpdbClient::modifyDB return task->get_future(); } -GpdbClient::DeleteDBInstanceOutcome GpdbClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDBInstanceOutcome(DeleteDBInstanceResult(outcome.result())); - else - return DeleteDBInstanceOutcome(outcome.error()); -} - -void GpdbClient::deleteDBInstanceAsync(const DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DeleteDBInstanceOutcomeCallable GpdbClient::deleteDBInstanceCallable(const DeleteDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GpdbClient::DescribeSlowLogRecordsOutcome GpdbClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,36 +699,36 @@ GpdbClient::DescribeSlowLogRecordsOutcomeCallable GpdbClient::describeSlowLogRec return task->get_future(); } -GpdbClient::ModifyDBInstanceConnectionModeOutcome GpdbClient::modifyDBInstanceConnectionMode(const ModifyDBInstanceConnectionModeRequest &request) const +GpdbClient::DeleteDBInstanceOutcome GpdbClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceConnectionModeOutcome(endpointOutcome.error()); + return DeleteDBInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyDBInstanceConnectionModeOutcome(ModifyDBInstanceConnectionModeResult(outcome.result())); + return DeleteDBInstanceOutcome(DeleteDBInstanceResult(outcome.result())); else - return ModifyDBInstanceConnectionModeOutcome(outcome.error()); + return DeleteDBInstanceOutcome(outcome.error()); } -void GpdbClient::modifyDBInstanceConnectionModeAsync(const ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::deleteDBInstanceAsync(const DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyDBInstanceConnectionMode(request), context); + handler(this, request, deleteDBInstance(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::ModifyDBInstanceConnectionModeOutcomeCallable GpdbClient::modifyDBInstanceConnectionModeCallable(const ModifyDBInstanceConnectionModeRequest &request) const +GpdbClient::DeleteDBInstanceOutcomeCallable GpdbClient::deleteDBInstanceCallable(const DeleteDBInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyDBInstanceConnectionMode(request); + return this->deleteDBInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -807,6 +771,42 @@ GpdbClient::RestartDBInstanceOutcomeCallable GpdbClient::restartDBInstanceCallab return task->get_future(); } +GpdbClient::ModifyDBInstanceConnectionModeOutcome GpdbClient::modifyDBInstanceConnectionMode(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(ModifyDBInstanceConnectionModeResult(outcome.result())); + else + return ModifyDBInstanceConnectionModeOutcome(outcome.error()); +} + +void GpdbClient::modifyDBInstanceConnectionModeAsync(const ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyDBInstanceConnectionModeOutcomeCallable GpdbClient::modifyDBInstanceConnectionModeCallable(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DescribeDBInstanceNetInfoOutcome GpdbClient::describeDBInstanceNetInfo(const DescribeDBInstanceNetInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1131,42 @@ GpdbClient::ReleaseInstancePublicConnectionOutcomeCallable GpdbClient::releaseIn return task->get_future(); } +GpdbClient::UpgradeDBInstanceOutcome GpdbClient::upgradeDBInstance(const UpgradeDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBInstanceOutcome(UpgradeDBInstanceResult(outcome.result())); + else + return UpgradeDBInstanceOutcome(outcome.error()); +} + +void GpdbClient::upgradeDBInstanceAsync(const UpgradeDBInstanceRequest& request, const UpgradeDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::UpgradeDBInstanceOutcomeCallable GpdbClient::upgradeDBInstanceCallable(const UpgradeDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DescribeSQLLogFilesOutcome GpdbClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/gpdb/src/model/AddBuDBInstanceRelationRequest.cc b/gpdb/src/model/AddBuDBInstanceRelationRequest.cc index 5ac08dede..5ba183202 100644 --- a/gpdb/src/model/AddBuDBInstanceRelationRequest.cc +++ b/gpdb/src/model/AddBuDBInstanceRelationRequest.cc @@ -33,7 +33,7 @@ std::string AddBuDBInstanceRelationRequest::getBusinessUnit()const void AddBuDBInstanceRelationRequest::setBusinessUnit(const std::string& businessUnit) { businessUnit_ = businessUnit; - setParameter("BusinessUnit", businessUnit); + setCoreParameter("BusinessUnit", businessUnit); } std::string AddBuDBInstanceRelationRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string AddBuDBInstanceRelationRequest::getDBInstanceId()const void AddBuDBInstanceRelationRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } long AddBuDBInstanceRelationRequest::getOwnerId()const @@ -55,7 +55,7 @@ long AddBuDBInstanceRelationRequest::getOwnerId()const void AddBuDBInstanceRelationRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddBuDBInstanceRelationRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string AddBuDBInstanceRelationRequest::getAccessKeyId()const void AddBuDBInstanceRelationRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/AddBuDBInstanceRelationResult.cc b/gpdb/src/model/AddBuDBInstanceRelationResult.cc index 9de710828..aab304937 100644 --- a/gpdb/src/model/AddBuDBInstanceRelationResult.cc +++ b/gpdb/src/model/AddBuDBInstanceRelationResult.cc @@ -35,10 +35,13 @@ AddBuDBInstanceRelationResult::~AddBuDBInstanceRelationResult() void AddBuDBInstanceRelationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BusinessUnit"].isNull()) businessUnit_ = value["BusinessUnit"].asString(); diff --git a/gpdb/src/model/AllocateInstancePublicConnectionRequest.cc b/gpdb/src/model/AllocateInstancePublicConnectionRequest.cc index 3ec3d0f2a..b5b873f7a 100644 --- a/gpdb/src/model/AllocateInstancePublicConnectionRequest.cc +++ b/gpdb/src/model/AllocateInstancePublicConnectionRequest.cc @@ -33,7 +33,7 @@ long AllocateInstancePublicConnectionRequest::getResourceOwnerId()const void AllocateInstancePublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AllocateInstancePublicConnectionRequest::getConnectionStringPrefix()const @@ -44,7 +44,7 @@ std::string AllocateInstancePublicConnectionRequest::getConnectionStringPrefix() void AllocateInstancePublicConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) { connectionStringPrefix_ = connectionStringPrefix; - setParameter("ConnectionStringPrefix", connectionStringPrefix); + setCoreParameter("ConnectionStringPrefix", connectionStringPrefix); } std::string AllocateInstancePublicConnectionRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string AllocateInstancePublicConnectionRequest::getResourceOwnerAccount()co void AllocateInstancePublicConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AllocateInstancePublicConnectionRequest::getPort()const @@ -66,7 +66,7 @@ std::string AllocateInstancePublicConnectionRequest::getPort()const void AllocateInstancePublicConnectionRequest::setPort(const std::string& port) { port_ = port; - setParameter("Port", port); + setCoreParameter("Port", port); } std::string AllocateInstancePublicConnectionRequest::getDBInstanceId()const @@ -77,7 +77,7 @@ std::string AllocateInstancePublicConnectionRequest::getDBInstanceId()const void AllocateInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } long AllocateInstancePublicConnectionRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AllocateInstancePublicConnectionRequest::getOwnerId()const void AllocateInstancePublicConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AllocateInstancePublicConnectionRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string AllocateInstancePublicConnectionRequest::getAccessKeyId()const void AllocateInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/AllocateInstancePublicConnectionResult.cc b/gpdb/src/model/AllocateInstancePublicConnectionResult.cc index 70901d793..568692cbc 100644 --- a/gpdb/src/model/AllocateInstancePublicConnectionResult.cc +++ b/gpdb/src/model/AllocateInstancePublicConnectionResult.cc @@ -35,10 +35,13 @@ AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult( void AllocateInstancePublicConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/CreateAccountRequest.cc b/gpdb/src/model/CreateAccountRequest.cc index 95933c99d..0b57d9420 100644 --- a/gpdb/src/model/CreateAccountRequest.cc +++ b/gpdb/src/model/CreateAccountRequest.cc @@ -33,7 +33,7 @@ std::string CreateAccountRequest::getAccountPassword()const void CreateAccountRequest::setAccountPassword(const std::string& accountPassword) { accountPassword_ = accountPassword; - setParameter("AccountPassword", accountPassword); + setCoreParameter("AccountPassword", accountPassword); } std::string CreateAccountRequest::getAccountName()const @@ -44,7 +44,7 @@ std::string CreateAccountRequest::getAccountName()const void CreateAccountRequest::setAccountName(const std::string& accountName) { accountName_ = accountName; - setParameter("AccountName", accountName); + setCoreParameter("AccountName", accountName); } std::string CreateAccountRequest::getDatabaseName()const @@ -55,7 +55,7 @@ std::string CreateAccountRequest::getDatabaseName()const void CreateAccountRequest::setDatabaseName(const std::string& databaseName) { databaseName_ = databaseName; - setParameter("DatabaseName", databaseName); + setCoreParameter("DatabaseName", databaseName); } std::string CreateAccountRequest::getDBInstanceId()const @@ -66,7 +66,7 @@ std::string CreateAccountRequest::getDBInstanceId()const void CreateAccountRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } long CreateAccountRequest::getOwnerId()const @@ -77,7 +77,7 @@ long CreateAccountRequest::getOwnerId()const void CreateAccountRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateAccountRequest::getAccountDescription()const @@ -88,7 +88,7 @@ std::string CreateAccountRequest::getAccountDescription()const void CreateAccountRequest::setAccountDescription(const std::string& accountDescription) { accountDescription_ = accountDescription; - setParameter("AccountDescription", accountDescription); + setCoreParameter("AccountDescription", accountDescription); } std::string CreateAccountRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string CreateAccountRequest::getAccessKeyId()const void CreateAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/CreateAccountResult.cc b/gpdb/src/model/CreateAccountResult.cc index c1d1a563f..368a44d77 100644 --- a/gpdb/src/model/CreateAccountResult.cc +++ b/gpdb/src/model/CreateAccountResult.cc @@ -35,10 +35,13 @@ CreateAccountResult::~CreateAccountResult() void CreateAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/CreateDBInstanceRequest.cc b/gpdb/src/model/CreateDBInstanceRequest.cc index 607ba41a2..d2243311b 100644 --- a/gpdb/src/model/CreateDBInstanceRequest.cc +++ b/gpdb/src/model/CreateDBInstanceRequest.cc @@ -33,7 +33,7 @@ std::string CreateDBInstanceRequest::getDBInstanceGroupCount()const void CreateDBInstanceRequest::setDBInstanceGroupCount(const std::string& dBInstanceGroupCount) { dBInstanceGroupCount_ = dBInstanceGroupCount; - setParameter("DBInstanceGroupCount", dBInstanceGroupCount); + setCoreParameter("DBInstanceGroupCount", dBInstanceGroupCount); } std::string CreateDBInstanceRequest::getPeriod()const @@ -44,7 +44,7 @@ std::string CreateDBInstanceRequest::getPeriod()const void CreateDBInstanceRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } std::string CreateDBInstanceRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string CreateDBInstanceRequest::getClientToken()const void CreateDBInstanceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateDBInstanceRequest::getEngineVersion()const @@ -66,7 +66,7 @@ std::string CreateDBInstanceRequest::getEngineVersion()const void CreateDBInstanceRequest::setEngineVersion(const std::string& engineVersion) { engineVersion_ = engineVersion; - setParameter("EngineVersion", engineVersion); + setCoreParameter("EngineVersion", engineVersion); } long CreateDBInstanceRequest::getOwnerId()const @@ -77,7 +77,7 @@ long CreateDBInstanceRequest::getOwnerId()const void CreateDBInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateDBInstanceRequest::getUsedTime()const @@ -88,7 +88,7 @@ std::string CreateDBInstanceRequest::getUsedTime()const void CreateDBInstanceRequest::setUsedTime(const std::string& usedTime) { usedTime_ = usedTime; - setParameter("UsedTime", usedTime); + setCoreParameter("UsedTime", usedTime); } std::string CreateDBInstanceRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string CreateDBInstanceRequest::getAccessKeyId()const void CreateDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateDBInstanceRequest::getDBInstanceClass()const @@ -110,7 +110,7 @@ std::string CreateDBInstanceRequest::getDBInstanceClass()const void CreateDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) { dBInstanceClass_ = dBInstanceClass; - setParameter("DBInstanceClass", dBInstanceClass); + setCoreParameter("DBInstanceClass", dBInstanceClass); } std::string CreateDBInstanceRequest::getSecurityIPList()const @@ -121,7 +121,7 @@ std::string CreateDBInstanceRequest::getSecurityIPList()const void CreateDBInstanceRequest::setSecurityIPList(const std::string& securityIPList) { securityIPList_ = securityIPList; - setParameter("SecurityIPList", securityIPList); + setCoreParameter("SecurityIPList", securityIPList); } std::string CreateDBInstanceRequest::getVSwitchId()const @@ -132,7 +132,7 @@ std::string CreateDBInstanceRequest::getVSwitchId()const void CreateDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string CreateDBInstanceRequest::getPrivateIpAddress()const @@ -143,7 +143,7 @@ std::string CreateDBInstanceRequest::getPrivateIpAddress()const void CreateDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) { privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); + setCoreParameter("PrivateIpAddress", privateIpAddress); } std::string CreateDBInstanceRequest::getRegionId()const @@ -154,7 +154,7 @@ std::string CreateDBInstanceRequest::getRegionId()const void CreateDBInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateDBInstanceRequest::getEngine()const @@ -165,7 +165,7 @@ std::string CreateDBInstanceRequest::getEngine()const void CreateDBInstanceRequest::setEngine(const std::string& engine) { engine_ = engine; - setParameter("Engine", engine); + setCoreParameter("Engine", engine); } std::string CreateDBInstanceRequest::getVPCId()const @@ -176,7 +176,7 @@ std::string CreateDBInstanceRequest::getVPCId()const void CreateDBInstanceRequest::setVPCId(const std::string& vPCId) { vPCId_ = vPCId; - setParameter("VPCId", vPCId); + setCoreParameter("VPCId", vPCId); } std::string CreateDBInstanceRequest::getZoneId()const @@ -187,7 +187,7 @@ std::string CreateDBInstanceRequest::getZoneId()const void CreateDBInstanceRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string CreateDBInstanceRequest::getDBInstanceDescription()const @@ -198,7 +198,7 @@ std::string CreateDBInstanceRequest::getDBInstanceDescription()const void CreateDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) { dBInstanceDescription_ = dBInstanceDescription; - setParameter("DBInstanceDescription", dBInstanceDescription); + setCoreParameter("DBInstanceDescription", dBInstanceDescription); } std::string CreateDBInstanceRequest::getPayType()const @@ -209,7 +209,7 @@ std::string CreateDBInstanceRequest::getPayType()const void CreateDBInstanceRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); } std::string CreateDBInstanceRequest::getInstanceNetworkType()const @@ -220,6 +220,6 @@ std::string CreateDBInstanceRequest::getInstanceNetworkType()const void CreateDBInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) { instanceNetworkType_ = instanceNetworkType; - setParameter("InstanceNetworkType", instanceNetworkType); + setCoreParameter("InstanceNetworkType", instanceNetworkType); } diff --git a/gpdb/src/model/CreateDBInstanceResult.cc b/gpdb/src/model/CreateDBInstanceResult.cc index 309bbcf75..b4fd6fdf2 100644 --- a/gpdb/src/model/CreateDBInstanceResult.cc +++ b/gpdb/src/model/CreateDBInstanceResult.cc @@ -35,10 +35,13 @@ CreateDBInstanceResult::~CreateDBInstanceResult() void CreateDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); diff --git a/gpdb/src/model/DeleteDBInstanceRequest.cc b/gpdb/src/model/DeleteDBInstanceRequest.cc index 6fa883ab5..9e4cb3340 100644 --- a/gpdb/src/model/DeleteDBInstanceRequest.cc +++ b/gpdb/src/model/DeleteDBInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDBInstanceRequest::getClientToken()const void DeleteDBInstanceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteDBInstanceRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string DeleteDBInstanceRequest::getDBInstanceId()const void DeleteDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } long DeleteDBInstanceRequest::getOwnerId()const @@ -55,7 +55,7 @@ long DeleteDBInstanceRequest::getOwnerId()const void DeleteDBInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteDBInstanceRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DeleteDBInstanceRequest::getAccessKeyId()const void DeleteDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DeleteDBInstanceResult.cc b/gpdb/src/model/DeleteDBInstanceResult.cc index aae9011ff..63d5107c2 100644 --- a/gpdb/src/model/DeleteDBInstanceResult.cc +++ b/gpdb/src/model/DeleteDBInstanceResult.cc @@ -35,10 +35,13 @@ DeleteDBInstanceResult::~DeleteDBInstanceResult() void DeleteDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/DeleteDatabaseRequest.cc b/gpdb/src/model/DeleteDatabaseRequest.cc index f4d8c0bee..b1b2af846 100644 --- a/gpdb/src/model/DeleteDatabaseRequest.cc +++ b/gpdb/src/model/DeleteDatabaseRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDatabaseRequest::getDBName()const void DeleteDatabaseRequest::setDBName(const std::string& dBName) { dBName_ = dBName; - setParameter("DBName", dBName); + setCoreParameter("DBName", dBName); } std::string DeleteDatabaseRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string DeleteDatabaseRequest::getDBInstanceId()const void DeleteDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DeleteDatabaseRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeleteDatabaseRequest::getAccessKeyId()const void DeleteDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DeleteDatabaseResult.cc b/gpdb/src/model/DeleteDatabaseResult.cc index 670ec8563..1e82ee8d3 100644 --- a/gpdb/src/model/DeleteDatabaseResult.cc +++ b/gpdb/src/model/DeleteDatabaseResult.cc @@ -35,10 +35,13 @@ DeleteDatabaseResult::~DeleteDatabaseResult() void DeleteDatabaseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/DescribeAccountsRequest.cc b/gpdb/src/model/DescribeAccountsRequest.cc index a32687b2f..a5de6d8b0 100644 --- a/gpdb/src/model/DescribeAccountsRequest.cc +++ b/gpdb/src/model/DescribeAccountsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccountsRequest::getAccountName()const void DescribeAccountsRequest::setAccountName(const std::string& accountName) { accountName_ = accountName; - setParameter("AccountName", accountName); + setCoreParameter("AccountName", accountName); } std::string DescribeAccountsRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeAccountsRequest::getDBInstanceId()const void DescribeAccountsRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeAccountsRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DescribeAccountsRequest::getAccessKeyId()const void DescribeAccountsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeAccountsResult.cc b/gpdb/src/model/DescribeAccountsResult.cc index 92f08f070..30708ce16 100644 --- a/gpdb/src/model/DescribeAccountsResult.cc +++ b/gpdb/src/model/DescribeAccountsResult.cc @@ -35,10 +35,13 @@ DescribeAccountsResult::~DescribeAccountsResult() void DescribeAccountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAccounts = value["Accounts"]["DBInstanceAccount"]; for (auto value : allAccounts) diff --git a/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc b/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc index 76fffbf7b..e645647a5 100644 --- a/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc +++ b/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDBInstanceAttributeRequest::getDBInstanceId()const void DescribeDBInstanceAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } long DescribeDBInstanceAttributeRequest::getOwnerId()const @@ -44,7 +44,7 @@ long DescribeDBInstanceAttributeRequest::getOwnerId()const void DescribeDBInstanceAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDBInstanceAttributeRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DescribeDBInstanceAttributeRequest::getAccessKeyId()const void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeDBInstanceAttributeResult.cc b/gpdb/src/model/DescribeDBInstanceAttributeResult.cc index e40e16c8b..2fad4e8e3 100644 --- a/gpdb/src/model/DescribeDBInstanceAttributeResult.cc +++ b/gpdb/src/model/DescribeDBInstanceAttributeResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult() void DescribeDBInstanceAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceAttribute"]; for (auto value : allItems) diff --git a/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc b/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc index 29c999793..13c496035 100644 --- a/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc +++ b/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDBInstanceIPArrayListRequest::getDBInstanceId()const void DescribeDBInstanceIPArrayListRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeDBInstanceIPArrayListRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeDBInstanceIPArrayListRequest::getAccessKeyId()const void DescribeDBInstanceIPArrayListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc b/gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc index dfb5c88a2..16ef69e87 100644 --- a/gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc +++ b/gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceIPArrayListResult::~DescribeDBInstanceIPArrayListResult() void DescribeDBInstanceIPArrayListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceIPArray"]; for (auto value : allItems) diff --git a/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc b/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc index 5421990cd..2bc298855 100644 --- a/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc +++ b/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDBInstanceNetInfoRequest::getDBInstanceId()const void DescribeDBInstanceNetInfoRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeDBInstanceNetInfoRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeDBInstanceNetInfoRequest::getAccessKeyId()const void DescribeDBInstanceNetInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeDBInstanceNetInfoResult.cc b/gpdb/src/model/DescribeDBInstanceNetInfoResult.cc index 4bfbbac37..bb8f584eb 100644 --- a/gpdb/src/model/DescribeDBInstanceNetInfoResult.cc +++ b/gpdb/src/model/DescribeDBInstanceNetInfoResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceNetInfoResult::~DescribeDBInstanceNetInfoResult() void DescribeDBInstanceNetInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDBInstanceNetInfos = value["DBInstanceNetInfos"]["DBInstanceNetInfo"]; for (auto value : allDBInstanceNetInfos) diff --git a/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc b/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc index dc9acd252..e439fd945 100644 --- a/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc +++ b/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDBInstancePerformanceRequest::getEndTime()const void DescribeDBInstancePerformanceRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeDBInstancePerformanceRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeDBInstancePerformanceRequest::getDBInstanceId()const void DescribeDBInstancePerformanceRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeDBInstancePerformanceRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeDBInstancePerformanceRequest::getStartTime()const void DescribeDBInstancePerformanceRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeDBInstancePerformanceRequest::getKey()const @@ -66,7 +66,7 @@ std::string DescribeDBInstancePerformanceRequest::getKey()const void DescribeDBInstancePerformanceRequest::setKey(const std::string& key) { key_ = key; - setParameter("Key", key); + setCoreParameter("Key", key); } std::string DescribeDBInstancePerformanceRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DescribeDBInstancePerformanceRequest::getAccessKeyId()const void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeDBInstancePerformanceResult.cc b/gpdb/src/model/DescribeDBInstancePerformanceResult.cc index 2367a3e4e..7f6f55a3e 100644 --- a/gpdb/src/model/DescribeDBInstancePerformanceResult.cc +++ b/gpdb/src/model/DescribeDBInstancePerformanceResult.cc @@ -35,10 +35,13 @@ DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult() void DescribeDBInstancePerformanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPerformanceKeys = value["PerformanceKeys"]["PerformanceKey"]; for (const auto &item : allPerformanceKeys) diff --git a/gpdb/src/model/DescribeDBInstancesRequest.cc b/gpdb/src/model/DescribeDBInstancesRequest.cc index 14ac99fe0..3215a465c 100644 --- a/gpdb/src/model/DescribeDBInstancesRequest.cc +++ b/gpdb/src/model/DescribeDBInstancesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDBInstancesRequest::getDBInstanceIds()const void DescribeDBInstancesRequest::setDBInstanceIds(const std::string& dBInstanceIds) { dBInstanceIds_ = dBInstanceIds; - setParameter("DBInstanceIds", dBInstanceIds); + setCoreParameter("DBInstanceIds", dBInstanceIds); } std::string DescribeDBInstancesRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DescribeDBInstancesRequest::getRegionId()const void DescribeDBInstancesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeDBInstancesRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeDBInstancesRequest::getPageSize()const void DescribeDBInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeDBInstancesRequest::getDBInstanceDescription()const @@ -66,7 +66,7 @@ std::string DescribeDBInstancesRequest::getDBInstanceDescription()const void DescribeDBInstancesRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) { dBInstanceDescription_ = dBInstanceDescription; - setParameter("DBInstanceDescription", dBInstanceDescription); + setCoreParameter("DBInstanceDescription", dBInstanceDescription); } std::vector DescribeDBInstancesRequest::getTag()const @@ -81,8 +81,8 @@ void DescribeDBInstancesRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -94,7 +94,7 @@ long DescribeDBInstancesRequest::getOwnerId()const void DescribeDBInstancesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDBInstancesRequest::getInstanceNetworkType()const @@ -105,7 +105,7 @@ std::string DescribeDBInstancesRequest::getInstanceNetworkType()const void DescribeDBInstancesRequest::setInstanceNetworkType(const std::string& instanceNetworkType) { instanceNetworkType_ = instanceNetworkType; - setParameter("InstanceNetworkType", instanceNetworkType); + setCoreParameter("InstanceNetworkType", instanceNetworkType); } int DescribeDBInstancesRequest::getPageNumber()const @@ -116,7 +116,7 @@ int DescribeDBInstancesRequest::getPageNumber()const void DescribeDBInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDBInstancesRequest::getAccessKeyId()const @@ -127,6 +127,6 @@ std::string DescribeDBInstancesRequest::getAccessKeyId()const void DescribeDBInstancesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeDBInstancesResult.cc b/gpdb/src/model/DescribeDBInstancesResult.cc index 5d4e6644b..d6f10471d 100644 --- a/gpdb/src/model/DescribeDBInstancesResult.cc +++ b/gpdb/src/model/DescribeDBInstancesResult.cc @@ -35,10 +35,13 @@ DescribeDBInstancesResult::~DescribeDBInstancesResult() void DescribeDBInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstance"]; for (auto value : allItems) diff --git a/gpdb/src/model/DescribeRdsVSwitchsRequest.cc b/gpdb/src/model/DescribeRdsVSwitchsRequest.cc index 28b71d50d..bef5f569f 100644 --- a/gpdb/src/model/DescribeRdsVSwitchsRequest.cc +++ b/gpdb/src/model/DescribeRdsVSwitchsRequest.cc @@ -33,7 +33,7 @@ long DescribeRdsVSwitchsRequest::getResourceOwnerId()const void DescribeRdsVSwitchsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRdsVSwitchsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeRdsVSwitchsRequest::getSecurityToken()const void DescribeRdsVSwitchsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeRdsVSwitchsRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRdsVSwitchsRequest::getResourceOwnerAccount()const void DescribeRdsVSwitchsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRdsVSwitchsRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeRdsVSwitchsRequest::getRegionId()const void DescribeRdsVSwitchsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeRdsVSwitchsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeRdsVSwitchsRequest::getOwnerAccount()const void DescribeRdsVSwitchsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeRdsVSwitchsRequest::getVpcId()const @@ -88,7 +88,7 @@ std::string DescribeRdsVSwitchsRequest::getVpcId()const void DescribeRdsVSwitchsRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeRdsVSwitchsRequest::getZoneId()const @@ -99,7 +99,7 @@ std::string DescribeRdsVSwitchsRequest::getZoneId()const void DescribeRdsVSwitchsRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } long DescribeRdsVSwitchsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeRdsVSwitchsRequest::getOwnerId()const void DescribeRdsVSwitchsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRdsVSwitchsRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string DescribeRdsVSwitchsRequest::getAccessKeyId()const void DescribeRdsVSwitchsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeRdsVSwitchsResult.cc b/gpdb/src/model/DescribeRdsVSwitchsResult.cc index 0fb88f51f..cb2632cc0 100644 --- a/gpdb/src/model/DescribeRdsVSwitchsResult.cc +++ b/gpdb/src/model/DescribeRdsVSwitchsResult.cc @@ -35,10 +35,13 @@ DescribeRdsVSwitchsResult::~DescribeRdsVSwitchsResult() void DescribeRdsVSwitchsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vSwitchesNode = value["VSwitches"]; auto allVSwitch = value["VSwitch"]["VSwitchItem"]; diff --git a/gpdb/src/model/DescribeRdsVpcsRequest.cc b/gpdb/src/model/DescribeRdsVpcsRequest.cc index 026ddd010..c39797e32 100644 --- a/gpdb/src/model/DescribeRdsVpcsRequest.cc +++ b/gpdb/src/model/DescribeRdsVpcsRequest.cc @@ -33,7 +33,7 @@ long DescribeRdsVpcsRequest::getResourceOwnerId()const void DescribeRdsVpcsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRdsVpcsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeRdsVpcsRequest::getSecurityToken()const void DescribeRdsVpcsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeRdsVpcsRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRdsVpcsRequest::getResourceOwnerAccount()const void DescribeRdsVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRdsVpcsRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeRdsVpcsRequest::getRegionId()const void DescribeRdsVpcsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeRdsVpcsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeRdsVpcsRequest::getOwnerAccount()const void DescribeRdsVpcsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeRdsVpcsRequest::getZoneId()const @@ -88,7 +88,7 @@ std::string DescribeRdsVpcsRequest::getZoneId()const void DescribeRdsVpcsRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } long DescribeRdsVpcsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeRdsVpcsRequest::getOwnerId()const void DescribeRdsVpcsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRdsVpcsRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string DescribeRdsVpcsRequest::getAccessKeyId()const void DescribeRdsVpcsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeRdsVpcsResult.cc b/gpdb/src/model/DescribeRdsVpcsResult.cc index 62baf1450..30bb53599 100644 --- a/gpdb/src/model/DescribeRdsVpcsResult.cc +++ b/gpdb/src/model/DescribeRdsVpcsResult.cc @@ -35,10 +35,13 @@ DescribeRdsVpcsResult::~DescribeRdsVpcsResult() void DescribeRdsVpcsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vpcsNode = value["Vpcs"]; auto allVpc = value["Vpc"]["VpcItem"]; diff --git a/gpdb/src/model/DescribeRegionsRequest.cc b/gpdb/src/model/DescribeRegionsRequest.cc index cf52276a5..bb7fdff4f 100644 --- a/gpdb/src/model/DescribeRegionsRequest.cc +++ b/gpdb/src/model/DescribeRegionsRequest.cc @@ -33,6 +33,6 @@ std::string DescribeRegionsRequest::getAccessKeyId()const void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeRegionsResult.cc b/gpdb/src/model/DescribeRegionsResult.cc index c828f8777..05a6c0c59 100644 --- a/gpdb/src/model/DescribeRegionsResult.cc +++ b/gpdb/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/gpdb/src/model/DescribeResourceUsageRequest.cc b/gpdb/src/model/DescribeResourceUsageRequest.cc index e59937438..f9cf507b5 100644 --- a/gpdb/src/model/DescribeResourceUsageRequest.cc +++ b/gpdb/src/model/DescribeResourceUsageRequest.cc @@ -33,7 +33,7 @@ std::string DescribeResourceUsageRequest::getDBInstanceId()const void DescribeResourceUsageRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeResourceUsageRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeResourceUsageRequest::getAccessKeyId()const void DescribeResourceUsageRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeResourceUsageResult.cc b/gpdb/src/model/DescribeResourceUsageResult.cc index 147396a22..1f2bafdbc 100644 --- a/gpdb/src/model/DescribeResourceUsageResult.cc +++ b/gpdb/src/model/DescribeResourceUsageResult.cc @@ -35,10 +35,13 @@ DescribeResourceUsageResult::~DescribeResourceUsageResult() void DescribeResourceUsageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); diff --git a/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc b/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc index e166ef554..5bfd2639d 100644 --- a/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc +++ b/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSQLCollectorPolicyRequest::getDBInstanceId()const void DescribeSQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId()const void DescribeSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc b/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc index 97766ef6b..d5b282fd3 100644 --- a/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc +++ b/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc @@ -35,10 +35,13 @@ DescribeSQLCollectorPolicyResult::~DescribeSQLCollectorPolicyResult() void DescribeSQLCollectorPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SQLCollectorStatus"].isNull()) sQLCollectorStatus_ = value["SQLCollectorStatus"].asString(); diff --git a/gpdb/src/model/DescribeSQLLogFilesRequest.cc b/gpdb/src/model/DescribeSQLLogFilesRequest.cc index 30dc4ca48..00539b246 100644 --- a/gpdb/src/model/DescribeSQLLogFilesRequest.cc +++ b/gpdb/src/model/DescribeSQLLogFilesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSQLLogFilesRequest::getFileName()const void DescribeSQLLogFilesRequest::setFileName(const std::string& fileName) { fileName_ = fileName; - setParameter("FileName", fileName); + setCoreParameter("FileName", fileName); } int DescribeSQLLogFilesRequest::getPageSize()const @@ -44,7 +44,7 @@ int DescribeSQLLogFilesRequest::getPageSize()const void DescribeSQLLogFilesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeSQLLogFilesRequest::getDBInstanceId()const @@ -55,7 +55,7 @@ std::string DescribeSQLLogFilesRequest::getDBInstanceId()const void DescribeSQLLogFilesRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } int DescribeSQLLogFilesRequest::getPageNumber()const @@ -66,7 +66,7 @@ int DescribeSQLLogFilesRequest::getPageNumber()const void DescribeSQLLogFilesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeSQLLogFilesRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string DescribeSQLLogFilesRequest::getAccessKeyId()const void DescribeSQLLogFilesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeSQLLogFilesResult.cc b/gpdb/src/model/DescribeSQLLogFilesResult.cc index 70298a398..e480f2b3f 100644 --- a/gpdb/src/model/DescribeSQLLogFilesResult.cc +++ b/gpdb/src/model/DescribeSQLLogFilesResult.cc @@ -35,10 +35,13 @@ DescribeSQLLogFilesResult::~DescribeSQLLogFilesResult() void DescribeSQLLogFilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogFile"]; for (auto value : allItems) diff --git a/gpdb/src/model/DescribeSQLLogRecordsRequest.cc b/gpdb/src/model/DescribeSQLLogRecordsRequest.cc index ed6a433c8..cd447678f 100644 --- a/gpdb/src/model/DescribeSQLLogRecordsRequest.cc +++ b/gpdb/src/model/DescribeSQLLogRecordsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSQLLogRecordsRequest::getDatabase()const void DescribeSQLLogRecordsRequest::setDatabase(const std::string& database) { database_ = database; - setParameter("Database", database); + setCoreParameter("Database", database); } std::string DescribeSQLLogRecordsRequest::getForm()const @@ -44,7 +44,7 @@ std::string DescribeSQLLogRecordsRequest::getForm()const void DescribeSQLLogRecordsRequest::setForm(const std::string& form) { form_ = form; - setParameter("Form", form); + setCoreParameter("Form", form); } int DescribeSQLLogRecordsRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeSQLLogRecordsRequest::getPageSize()const void DescribeSQLLogRecordsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeSQLLogRecordsRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeSQLLogRecordsRequest::getEndTime()const void DescribeSQLLogRecordsRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeSQLLogRecordsRequest::getDBInstanceId()const @@ -77,7 +77,7 @@ std::string DescribeSQLLogRecordsRequest::getDBInstanceId()const void DescribeSQLLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeSQLLogRecordsRequest::getStartTime()const @@ -88,7 +88,7 @@ std::string DescribeSQLLogRecordsRequest::getStartTime()const void DescribeSQLLogRecordsRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeSQLLogRecordsRequest::getUser()const @@ -99,7 +99,7 @@ std::string DescribeSQLLogRecordsRequest::getUser()const void DescribeSQLLogRecordsRequest::setUser(const std::string& user) { user_ = user; - setParameter("User", user); + setCoreParameter("User", user); } std::string DescribeSQLLogRecordsRequest::getQueryKeywords()const @@ -110,7 +110,7 @@ std::string DescribeSQLLogRecordsRequest::getQueryKeywords()const void DescribeSQLLogRecordsRequest::setQueryKeywords(const std::string& queryKeywords) { queryKeywords_ = queryKeywords; - setParameter("QueryKeywords", queryKeywords); + setCoreParameter("QueryKeywords", queryKeywords); } int DescribeSQLLogRecordsRequest::getPageNumber()const @@ -121,7 +121,7 @@ int DescribeSQLLogRecordsRequest::getPageNumber()const void DescribeSQLLogRecordsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeSQLLogRecordsRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string DescribeSQLLogRecordsRequest::getAccessKeyId()const void DescribeSQLLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeSQLLogRecordsResult.cc b/gpdb/src/model/DescribeSQLLogRecordsResult.cc index c74c278e7..eb92f8da1 100644 --- a/gpdb/src/model/DescribeSQLLogRecordsResult.cc +++ b/gpdb/src/model/DescribeSQLLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult() void DescribeSQLLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["SQLRecord"]; for (auto value : allItems) diff --git a/gpdb/src/model/DescribeSlowLogRecordsRequest.cc b/gpdb/src/model/DescribeSlowLogRecordsRequest.cc index d9afa6b1c..d63d67902 100644 --- a/gpdb/src/model/DescribeSlowLogRecordsRequest.cc +++ b/gpdb/src/model/DescribeSlowLogRecordsRequest.cc @@ -33,7 +33,7 @@ long DescribeSlowLogRecordsRequest::getSQLId()const void DescribeSlowLogRecordsRequest::setSQLId(long sQLId) { sQLId_ = sQLId; - setParameter("SQLId", std::to_string(sQLId)); + setCoreParameter("SQLId", std::to_string(sQLId)); } std::string DescribeSlowLogRecordsRequest::getDBName()const @@ -44,7 +44,7 @@ std::string DescribeSlowLogRecordsRequest::getDBName()const void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName) { dBName_ = dBName; - setParameter("DBName", dBName); + setCoreParameter("DBName", dBName); } int DescribeSlowLogRecordsRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeSlowLogRecordsRequest::getPageSize()const void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeSlowLogRecordsRequest::getEndTime()const @@ -66,7 +66,7 @@ std::string DescribeSlowLogRecordsRequest::getEndTime()const void DescribeSlowLogRecordsRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeSlowLogRecordsRequest::getDBInstanceId()const @@ -77,7 +77,7 @@ std::string DescribeSlowLogRecordsRequest::getDBInstanceId()const void DescribeSlowLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string DescribeSlowLogRecordsRequest::getStartTime()const @@ -88,7 +88,7 @@ std::string DescribeSlowLogRecordsRequest::getStartTime()const void DescribeSlowLogRecordsRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } int DescribeSlowLogRecordsRequest::getPageNumber()const @@ -99,7 +99,7 @@ int DescribeSlowLogRecordsRequest::getPageNumber()const void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/DescribeSlowLogRecordsResult.cc b/gpdb/src/model/DescribeSlowLogRecordsResult.cc index 1976e610e..c3a5869f7 100644 --- a/gpdb/src/model/DescribeSlowLogRecordsResult.cc +++ b/gpdb/src/model/DescribeSlowLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() void DescribeSlowLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["SQLSlowRecord"]; for (auto value : allItems) diff --git a/gpdb/src/model/ListTagResourcesRequest.cc b/gpdb/src/model/ListTagResourcesRequest.cc index 665a05f0d..7734590b8 100644 --- a/gpdb/src/model/ListTagResourcesRequest.cc +++ b/gpdb/src/model/ListTagResourcesRequest.cc @@ -33,7 +33,7 @@ long ListTagResourcesRequest::getResourceOwnerId()const void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector ListTagResourcesRequest::getResourceId()const @@ -45,7 +45,7 @@ void ListTagResourcesRequest::setResourceId(const std::vector& reso { resourceId_ = resourceId; for(int i = 0; i!= resourceId.size(); i++) - setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); } std::string ListTagResourcesRequest::getResourceOwnerAccount()const @@ -56,7 +56,7 @@ std::string ListTagResourcesRequest::getResourceOwnerAccount()const void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListTagResourcesRequest::getRegionId()const @@ -67,7 +67,7 @@ std::string ListTagResourcesRequest::getRegionId()const void ListTagResourcesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ListTagResourcesRequest::getNextToken()const @@ -78,7 +78,7 @@ std::string ListTagResourcesRequest::getNextToken()const void ListTagResourcesRequest::setNextToken(const std::string& nextToken) { nextToken_ = nextToken; - setParameter("NextToken", nextToken); + setCoreParameter("NextToken", nextToken); } std::string ListTagResourcesRequest::getOwnerAccount()const @@ -89,7 +89,7 @@ std::string ListTagResourcesRequest::getOwnerAccount()const void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::vector ListTagResourcesRequest::getTag()const @@ -104,8 +104,8 @@ void ListTagResourcesRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -117,7 +117,7 @@ long ListTagResourcesRequest::getOwnerId()const void ListTagResourcesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ListTagResourcesRequest::getResourceType()const @@ -128,7 +128,7 @@ std::string ListTagResourcesRequest::getResourceType()const void ListTagResourcesRequest::setResourceType(const std::string& resourceType) { resourceType_ = resourceType; - setParameter("ResourceType", resourceType); + setCoreParameter("ResourceType", resourceType); } std::string ListTagResourcesRequest::getAccessKeyId()const @@ -139,6 +139,6 @@ std::string ListTagResourcesRequest::getAccessKeyId()const void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ListTagResourcesResult.cc b/gpdb/src/model/ListTagResourcesResult.cc index 6324ac377..65b245df5 100644 --- a/gpdb/src/model/ListTagResourcesResult.cc +++ b/gpdb/src/model/ListTagResourcesResult.cc @@ -35,10 +35,13 @@ ListTagResourcesResult::~ListTagResourcesResult() void ListTagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagResources = value["TagResources"]["TagResource"]; for (auto value : allTagResources) diff --git a/gpdb/src/model/ModifyAccountDescriptionRequest.cc b/gpdb/src/model/ModifyAccountDescriptionRequest.cc index 29c1aa789..946252602 100644 --- a/gpdb/src/model/ModifyAccountDescriptionRequest.cc +++ b/gpdb/src/model/ModifyAccountDescriptionRequest.cc @@ -33,7 +33,7 @@ std::string ModifyAccountDescriptionRequest::getAccountName()const void ModifyAccountDescriptionRequest::setAccountName(const std::string& accountName) { accountName_ = accountName; - setParameter("AccountName", accountName); + setCoreParameter("AccountName", accountName); } std::string ModifyAccountDescriptionRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string ModifyAccountDescriptionRequest::getDBInstanceId()const void ModifyAccountDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifyAccountDescriptionRequest::getAccountDescription()const @@ -55,7 +55,7 @@ std::string ModifyAccountDescriptionRequest::getAccountDescription()const void ModifyAccountDescriptionRequest::setAccountDescription(const std::string& accountDescription) { accountDescription_ = accountDescription; - setParameter("AccountDescription", accountDescription); + setCoreParameter("AccountDescription", accountDescription); } std::string ModifyAccountDescriptionRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ModifyAccountDescriptionRequest::getAccessKeyId()const void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifyAccountDescriptionResult.cc b/gpdb/src/model/ModifyAccountDescriptionResult.cc index 25e739eba..681d81ece 100644 --- a/gpdb/src/model/ModifyAccountDescriptionResult.cc +++ b/gpdb/src/model/ModifyAccountDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() void ModifyAccountDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc b/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc index b67e8e3da..c86219462 100644 --- a/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc +++ b/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDBInstanceConnectionModeRequest::getConnectionMode()const void ModifyDBInstanceConnectionModeRequest::setConnectionMode(const std::string& connectionMode) { connectionMode_ = connectionMode; - setParameter("ConnectionMode", connectionMode); + setCoreParameter("ConnectionMode", connectionMode); } std::string ModifyDBInstanceConnectionModeRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string ModifyDBInstanceConnectionModeRequest::getDBInstanceId()const void ModifyDBInstanceConnectionModeRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifyDBInstanceConnectionModeRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ModifyDBInstanceConnectionModeRequest::getAccessKeyId()const void ModifyDBInstanceConnectionModeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc b/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc index 734d11aa8..bfeffad4b 100644 --- a/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc +++ b/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceConnectionModeResult::~ModifyDBInstanceConnectionModeResult() void ModifyDBInstanceConnectionModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc b/gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc index b3a9c3cc2..60259ea7d 100644 --- a/gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc +++ b/gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDBInstanceConnectionStringRequest::getConnectionStringPrefix() void ModifyDBInstanceConnectionStringRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) { connectionStringPrefix_ = connectionStringPrefix; - setParameter("ConnectionStringPrefix", connectionStringPrefix); + setCoreParameter("ConnectionStringPrefix", connectionStringPrefix); } std::string ModifyDBInstanceConnectionStringRequest::getPort()const @@ -44,7 +44,7 @@ std::string ModifyDBInstanceConnectionStringRequest::getPort()const void ModifyDBInstanceConnectionStringRequest::setPort(const std::string& port) { port_ = port; - setParameter("Port", port); + setCoreParameter("Port", port); } std::string ModifyDBInstanceConnectionStringRequest::getDBInstanceId()const @@ -55,7 +55,7 @@ std::string ModifyDBInstanceConnectionStringRequest::getDBInstanceId()const void ModifyDBInstanceConnectionStringRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifyDBInstanceConnectionStringRequest::getCurrentConnectionString()const @@ -66,7 +66,7 @@ std::string ModifyDBInstanceConnectionStringRequest::getCurrentConnectionString( void ModifyDBInstanceConnectionStringRequest::setCurrentConnectionString(const std::string& currentConnectionString) { currentConnectionString_ = currentConnectionString; - setParameter("CurrentConnectionString", currentConnectionString); + setCoreParameter("CurrentConnectionString", currentConnectionString); } std::string ModifyDBInstanceConnectionStringRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifyDBInstanceConnectionStringRequest::getAccessKeyId()const void ModifyDBInstanceConnectionStringRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc b/gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc index 033af65f3..c05ad9d5b 100644 --- a/gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc +++ b/gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult( void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc b/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc index 6c9db6406..a4f2ce0d9 100644 --- a/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc +++ b/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDBInstanceDescriptionRequest::getDBInstanceId()const void ModifyDBInstanceDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifyDBInstanceDescriptionRequest::getDBInstanceDescription()const @@ -44,7 +44,7 @@ std::string ModifyDBInstanceDescriptionRequest::getDBInstanceDescription()const void ModifyDBInstanceDescriptionRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) { dBInstanceDescription_ = dBInstanceDescription; - setParameter("DBInstanceDescription", dBInstanceDescription); + setCoreParameter("DBInstanceDescription", dBInstanceDescription); } std::string ModifyDBInstanceDescriptionRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ModifyDBInstanceDescriptionRequest::getAccessKeyId()const void ModifyDBInstanceDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifyDBInstanceDescriptionResult.cc b/gpdb/src/model/ModifyDBInstanceDescriptionResult.cc index fb32a8a9f..913b9db60 100644 --- a/gpdb/src/model/ModifyDBInstanceDescriptionResult.cc +++ b/gpdb/src/model/ModifyDBInstanceDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceDescriptionResult::~ModifyDBInstanceDescriptionResult() void ModifyDBInstanceDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc b/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc index 2a59ad071..6fae21c9d 100644 --- a/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc +++ b/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDBInstanceMaintainTimeRequest::getEndTime()const void ModifyDBInstanceMaintainTimeRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string ModifyDBInstanceMaintainTimeRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string ModifyDBInstanceMaintainTimeRequest::getDBInstanceId()const void ModifyDBInstanceMaintainTimeRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifyDBInstanceMaintainTimeRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string ModifyDBInstanceMaintainTimeRequest::getStartTime()const void ModifyDBInstanceMaintainTimeRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string ModifyDBInstanceMaintainTimeRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ModifyDBInstanceMaintainTimeRequest::getAccessKeyId()const void ModifyDBInstanceMaintainTimeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc b/gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc index 3fe95c3ba..f37aec594 100644 --- a/gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc +++ b/gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceMaintainTimeResult::~ModifyDBInstanceMaintainTimeResult() void ModifyDBInstanceMaintainTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc b/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc index 89de8877d..e4c055991 100644 --- a/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc +++ b/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyDBInstanceNetworkTypeRequest::getVSwitchId()const void ModifyDBInstanceNetworkTypeRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string ModifyDBInstanceNetworkTypeRequest::getPrivateIpAddress()const @@ -44,7 +44,7 @@ std::string ModifyDBInstanceNetworkTypeRequest::getPrivateIpAddress()const void ModifyDBInstanceNetworkTypeRequest::setPrivateIpAddress(const std::string& privateIpAddress) { privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); + setCoreParameter("PrivateIpAddress", privateIpAddress); } std::string ModifyDBInstanceNetworkTypeRequest::getVPCId()const @@ -55,7 +55,7 @@ std::string ModifyDBInstanceNetworkTypeRequest::getVPCId()const void ModifyDBInstanceNetworkTypeRequest::setVPCId(const std::string& vPCId) { vPCId_ = vPCId; - setParameter("VPCId", vPCId); + setCoreParameter("VPCId", vPCId); } std::string ModifyDBInstanceNetworkTypeRequest::getDBInstanceId()const @@ -66,7 +66,7 @@ std::string ModifyDBInstanceNetworkTypeRequest::getDBInstanceId()const void ModifyDBInstanceNetworkTypeRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifyDBInstanceNetworkTypeRequest::getInstanceNetworkType()const @@ -77,7 +77,7 @@ std::string ModifyDBInstanceNetworkTypeRequest::getInstanceNetworkType()const void ModifyDBInstanceNetworkTypeRequest::setInstanceNetworkType(const std::string& instanceNetworkType) { instanceNetworkType_ = instanceNetworkType; - setParameter("InstanceNetworkType", instanceNetworkType); + setCoreParameter("InstanceNetworkType", instanceNetworkType); } std::string ModifyDBInstanceNetworkTypeRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ModifyDBInstanceNetworkTypeRequest::getAccessKeyId()const void ModifyDBInstanceNetworkTypeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc b/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc index 82d4729aa..f8d9ffe4f 100644 --- a/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc +++ b/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult() void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ModifySQLCollectorPolicyRequest.cc b/gpdb/src/model/ModifySQLCollectorPolicyRequest.cc index 49b731c82..7b46f0c6a 100644 --- a/gpdb/src/model/ModifySQLCollectorPolicyRequest.cc +++ b/gpdb/src/model/ModifySQLCollectorPolicyRequest.cc @@ -33,7 +33,7 @@ std::string ModifySQLCollectorPolicyRequest::getSQLCollectorStatus()const void ModifySQLCollectorPolicyRequest::setSQLCollectorStatus(const std::string& sQLCollectorStatus) { sQLCollectorStatus_ = sQLCollectorStatus; - setParameter("SQLCollectorStatus", sQLCollectorStatus); + setCoreParameter("SQLCollectorStatus", sQLCollectorStatus); } std::string ModifySQLCollectorPolicyRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string ModifySQLCollectorPolicyRequest::getDBInstanceId()const void ModifySQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifySQLCollectorPolicyRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ModifySQLCollectorPolicyRequest::getAccessKeyId()const void ModifySQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifySQLCollectorPolicyResult.cc b/gpdb/src/model/ModifySQLCollectorPolicyResult.cc index b572f36ad..d65a5d1e3 100644 --- a/gpdb/src/model/ModifySQLCollectorPolicyResult.cc +++ b/gpdb/src/model/ModifySQLCollectorPolicyResult.cc @@ -35,10 +35,13 @@ ModifySQLCollectorPolicyResult::~ModifySQLCollectorPolicyResult() void ModifySQLCollectorPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ModifySecurityIpsRequest.cc b/gpdb/src/model/ModifySecurityIpsRequest.cc index 0cc931bdb..52ec234ae 100644 --- a/gpdb/src/model/ModifySecurityIpsRequest.cc +++ b/gpdb/src/model/ModifySecurityIpsRequest.cc @@ -33,7 +33,7 @@ std::string ModifySecurityIpsRequest::getSecurityIPList()const void ModifySecurityIpsRequest::setSecurityIPList(const std::string& securityIPList) { securityIPList_ = securityIPList; - setParameter("SecurityIPList", securityIPList); + setCoreParameter("SecurityIPList", securityIPList); } std::string ModifySecurityIpsRequest::getDBInstanceIPArrayName()const @@ -44,7 +44,7 @@ std::string ModifySecurityIpsRequest::getDBInstanceIPArrayName()const void ModifySecurityIpsRequest::setDBInstanceIPArrayName(const std::string& dBInstanceIPArrayName) { dBInstanceIPArrayName_ = dBInstanceIPArrayName; - setParameter("DBInstanceIPArrayName", dBInstanceIPArrayName); + setCoreParameter("DBInstanceIPArrayName", dBInstanceIPArrayName); } std::string ModifySecurityIpsRequest::getDBInstanceIPArrayAttribute()const @@ -55,7 +55,7 @@ std::string ModifySecurityIpsRequest::getDBInstanceIPArrayAttribute()const void ModifySecurityIpsRequest::setDBInstanceIPArrayAttribute(const std::string& dBInstanceIPArrayAttribute) { dBInstanceIPArrayAttribute_ = dBInstanceIPArrayAttribute; - setParameter("DBInstanceIPArrayAttribute", dBInstanceIPArrayAttribute); + setCoreParameter("DBInstanceIPArrayAttribute", dBInstanceIPArrayAttribute); } std::string ModifySecurityIpsRequest::getDBInstanceId()const @@ -66,7 +66,7 @@ std::string ModifySecurityIpsRequest::getDBInstanceId()const void ModifySecurityIpsRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ModifySecurityIpsRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ModifySecurityIpsRequest::getAccessKeyId()const void ModifySecurityIpsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ModifySecurityIpsResult.cc b/gpdb/src/model/ModifySecurityIpsResult.cc index a2685e20d..99cb6cc1a 100644 --- a/gpdb/src/model/ModifySecurityIpsResult.cc +++ b/gpdb/src/model/ModifySecurityIpsResult.cc @@ -35,10 +35,13 @@ ModifySecurityIpsResult::~ModifySecurityIpsResult() void ModifySecurityIpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc b/gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc index 068073a15..6df7434aa 100644 --- a/gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc +++ b/gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc @@ -33,7 +33,7 @@ std::string ReleaseInstancePublicConnectionRequest::getDBInstanceId()const void ReleaseInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ReleaseInstancePublicConnectionRequest::getCurrentConnectionString()const @@ -44,7 +44,7 @@ std::string ReleaseInstancePublicConnectionRequest::getCurrentConnectionString() void ReleaseInstancePublicConnectionRequest::setCurrentConnectionString(const std::string& currentConnectionString) { currentConnectionString_ = currentConnectionString; - setParameter("CurrentConnectionString", currentConnectionString); + setCoreParameter("CurrentConnectionString", currentConnectionString); } std::string ReleaseInstancePublicConnectionRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ReleaseInstancePublicConnectionRequest::getAccessKeyId()const void ReleaseInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ReleaseInstancePublicConnectionResult.cc b/gpdb/src/model/ReleaseInstancePublicConnectionResult.cc index 12d2815b7..97f0b4f61 100644 --- a/gpdb/src/model/ReleaseInstancePublicConnectionResult.cc +++ b/gpdb/src/model/ReleaseInstancePublicConnectionResult.cc @@ -35,10 +35,13 @@ ReleaseInstancePublicConnectionResult::~ReleaseInstancePublicConnectionResult() void ReleaseInstancePublicConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/ResetAccountPasswordRequest.cc b/gpdb/src/model/ResetAccountPasswordRequest.cc index 55f1b5c4e..c00a5c2b8 100644 --- a/gpdb/src/model/ResetAccountPasswordRequest.cc +++ b/gpdb/src/model/ResetAccountPasswordRequest.cc @@ -33,7 +33,7 @@ std::string ResetAccountPasswordRequest::getAccountPassword()const void ResetAccountPasswordRequest::setAccountPassword(const std::string& accountPassword) { accountPassword_ = accountPassword; - setParameter("AccountPassword", accountPassword); + setCoreParameter("AccountPassword", accountPassword); } std::string ResetAccountPasswordRequest::getAccountName()const @@ -44,7 +44,7 @@ std::string ResetAccountPasswordRequest::getAccountName()const void ResetAccountPasswordRequest::setAccountName(const std::string& accountName) { accountName_ = accountName; - setParameter("AccountName", accountName); + setCoreParameter("AccountName", accountName); } std::string ResetAccountPasswordRequest::getDBInstanceId()const @@ -55,7 +55,7 @@ std::string ResetAccountPasswordRequest::getDBInstanceId()const void ResetAccountPasswordRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string ResetAccountPasswordRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string ResetAccountPasswordRequest::getAccessKeyId()const void ResetAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/ResetAccountPasswordResult.cc b/gpdb/src/model/ResetAccountPasswordResult.cc index c45f58fdb..3c28b4485 100644 --- a/gpdb/src/model/ResetAccountPasswordResult.cc +++ b/gpdb/src/model/ResetAccountPasswordResult.cc @@ -35,10 +35,13 @@ ResetAccountPasswordResult::~ResetAccountPasswordResult() void ResetAccountPasswordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/RestartDBInstanceRequest.cc b/gpdb/src/model/RestartDBInstanceRequest.cc index 8264679fe..172f3854e 100644 --- a/gpdb/src/model/RestartDBInstanceRequest.cc +++ b/gpdb/src/model/RestartDBInstanceRequest.cc @@ -33,7 +33,7 @@ std::string RestartDBInstanceRequest::getClientToken()const void RestartDBInstanceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string RestartDBInstanceRequest::getDBInstanceId()const @@ -44,7 +44,7 @@ std::string RestartDBInstanceRequest::getDBInstanceId()const void RestartDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string RestartDBInstanceRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string RestartDBInstanceRequest::getAccessKeyId()const void RestartDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/RestartDBInstanceResult.cc b/gpdb/src/model/RestartDBInstanceResult.cc index efc634b05..3e76d2ef0 100644 --- a/gpdb/src/model/RestartDBInstanceResult.cc +++ b/gpdb/src/model/RestartDBInstanceResult.cc @@ -35,10 +35,13 @@ RestartDBInstanceResult::~RestartDBInstanceResult() void RestartDBInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc b/gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc index 0e71f705d..8b6accc54 100644 --- a/gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc +++ b/gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc @@ -33,7 +33,7 @@ std::string SwitchDBInstanceNetTypeRequest::getConnectionStringPrefix()const void SwitchDBInstanceNetTypeRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) { connectionStringPrefix_ = connectionStringPrefix; - setParameter("ConnectionStringPrefix", connectionStringPrefix); + setCoreParameter("ConnectionStringPrefix", connectionStringPrefix); } std::string SwitchDBInstanceNetTypeRequest::getPort()const @@ -44,7 +44,7 @@ std::string SwitchDBInstanceNetTypeRequest::getPort()const void SwitchDBInstanceNetTypeRequest::setPort(const std::string& port) { port_ = port; - setParameter("Port", port); + setCoreParameter("Port", port); } std::string SwitchDBInstanceNetTypeRequest::getDBInstanceId()const @@ -55,7 +55,7 @@ std::string SwitchDBInstanceNetTypeRequest::getDBInstanceId()const void SwitchDBInstanceNetTypeRequest::setDBInstanceId(const std::string& dBInstanceId) { dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); + setCoreParameter("DBInstanceId", dBInstanceId); } std::string SwitchDBInstanceNetTypeRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string SwitchDBInstanceNetTypeRequest::getAccessKeyId()const void SwitchDBInstanceNetTypeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/SwitchDBInstanceNetTypeResult.cc b/gpdb/src/model/SwitchDBInstanceNetTypeResult.cc index 4137cbc76..92fbbacfb 100644 --- a/gpdb/src/model/SwitchDBInstanceNetTypeResult.cc +++ b/gpdb/src/model/SwitchDBInstanceNetTypeResult.cc @@ -35,10 +35,13 @@ SwitchDBInstanceNetTypeResult::~SwitchDBInstanceNetTypeResult() void SwitchDBInstanceNetTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/TagResourcesRequest.cc b/gpdb/src/model/TagResourcesRequest.cc index 6d936c7b2..e55b1396d 100644 --- a/gpdb/src/model/TagResourcesRequest.cc +++ b/gpdb/src/model/TagResourcesRequest.cc @@ -33,7 +33,7 @@ long TagResourcesRequest::getResourceOwnerId()const void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector TagResourcesRequest::getResourceId()const @@ -45,7 +45,7 @@ void TagResourcesRequest::setResourceId(const std::vector& resource { resourceId_ = resourceId; for(int i = 0; i!= resourceId.size(); i++) - setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); } std::string TagResourcesRequest::getResourceOwnerAccount()const @@ -56,7 +56,7 @@ std::string TagResourcesRequest::getResourceOwnerAccount()const void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string TagResourcesRequest::getRegionId()const @@ -67,7 +67,7 @@ std::string TagResourcesRequest::getRegionId()const void TagResourcesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string TagResourcesRequest::getOwnerAccount()const @@ -78,7 +78,7 @@ std::string TagResourcesRequest::getOwnerAccount()const void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::vector TagResourcesRequest::getTag()const @@ -93,8 +93,8 @@ void TagResourcesRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -106,7 +106,7 @@ long TagResourcesRequest::getOwnerId()const void TagResourcesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string TagResourcesRequest::getResourceType()const @@ -117,7 +117,7 @@ std::string TagResourcesRequest::getResourceType()const void TagResourcesRequest::setResourceType(const std::string& resourceType) { resourceType_ = resourceType; - setParameter("ResourceType", resourceType); + setCoreParameter("ResourceType", resourceType); } std::string TagResourcesRequest::getAccessKeyId()const @@ -128,6 +128,6 @@ std::string TagResourcesRequest::getAccessKeyId()const void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/TagResourcesResult.cc b/gpdb/src/model/TagResourcesResult.cc index 669205c07..644b3c2e5 100644 --- a/gpdb/src/model/TagResourcesResult.cc +++ b/gpdb/src/model/TagResourcesResult.cc @@ -35,10 +35,13 @@ TagResourcesResult::~TagResourcesResult() void TagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/UntagResourcesRequest.cc b/gpdb/src/model/UntagResourcesRequest.cc index 42bf7e0c4..71a477a3e 100644 --- a/gpdb/src/model/UntagResourcesRequest.cc +++ b/gpdb/src/model/UntagResourcesRequest.cc @@ -33,7 +33,7 @@ bool UntagResourcesRequest::getAll()const void UntagResourcesRequest::setAll(bool all) { all_ = all; - setParameter("All", std::to_string(all)); + setCoreParameter("All", all ? "true" : "false"); } long UntagResourcesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UntagResourcesRequest::getResourceOwnerId()const void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector UntagResourcesRequest::getResourceId()const @@ -56,7 +56,7 @@ void UntagResourcesRequest::setResourceId(const std::vector& resour { resourceId_ = resourceId; for(int i = 0; i!= resourceId.size(); i++) - setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); } std::string UntagResourcesRequest::getResourceOwnerAccount()const @@ -67,7 +67,7 @@ std::string UntagResourcesRequest::getResourceOwnerAccount()const void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UntagResourcesRequest::getRegionId()const @@ -78,7 +78,7 @@ std::string UntagResourcesRequest::getRegionId()const void UntagResourcesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UntagResourcesRequest::getOwnerAccount()const @@ -89,7 +89,7 @@ std::string UntagResourcesRequest::getOwnerAccount()const void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UntagResourcesRequest::getOwnerId()const @@ -100,7 +100,7 @@ long UntagResourcesRequest::getOwnerId()const void UntagResourcesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::vector UntagResourcesRequest::getTagKey()const @@ -112,7 +112,7 @@ void UntagResourcesRequest::setTagKey(const std::vector& tagKey) { tagKey_ = tagKey; for(int i = 0; i!= tagKey.size(); i++) - setParameter("TagKey."+ std::to_string(i), tagKey.at(i)); + setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i)); } std::string UntagResourcesRequest::getResourceType()const @@ -123,7 +123,7 @@ std::string UntagResourcesRequest::getResourceType()const void UntagResourcesRequest::setResourceType(const std::string& resourceType) { resourceType_ = resourceType; - setParameter("ResourceType", resourceType); + setCoreParameter("ResourceType", resourceType); } std::string UntagResourcesRequest::getAccessKeyId()const @@ -134,6 +134,6 @@ std::string UntagResourcesRequest::getAccessKeyId()const void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/gpdb/src/model/UntagResourcesResult.cc b/gpdb/src/model/UntagResourcesResult.cc index 0d6112596..4c85e34eb 100644 --- a/gpdb/src/model/UntagResourcesResult.cc +++ b/gpdb/src/model/UntagResourcesResult.cc @@ -35,10 +35,13 @@ UntagResourcesResult::~UntagResourcesResult() void UntagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/gpdb/src/model/UpgradeDBInstanceRequest.cc b/gpdb/src/model/UpgradeDBInstanceRequest.cc new file mode 100644 index 000000000..ba5f1b6e0 --- /dev/null +++ b/gpdb/src/model/UpgradeDBInstanceRequest.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 + +using AlibabaCloud::Gpdb::Model::UpgradeDBInstanceRequest; + +UpgradeDBInstanceRequest::UpgradeDBInstanceRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "UpgradeDBInstance") +{} + +UpgradeDBInstanceRequest::~UpgradeDBInstanceRequest() +{} + +std::string UpgradeDBInstanceRequest::getDBInstanceGroupCount()const +{ + return dBInstanceGroupCount_; +} + +void UpgradeDBInstanceRequest::setDBInstanceGroupCount(const std::string& dBInstanceGroupCount) +{ + dBInstanceGroupCount_ = dBInstanceGroupCount; + setCoreParameter("DBInstanceGroupCount", dBInstanceGroupCount); +} + +std::string UpgradeDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void UpgradeDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpgradeDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void UpgradeDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long UpgradeDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpgradeDBInstanceRequest::getPayType()const +{ + return payType_; +} + +void UpgradeDBInstanceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setCoreParameter("PayType", payType); +} + +std::string UpgradeDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpgradeDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string UpgradeDBInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void UpgradeDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setCoreParameter("DBInstanceClass", dBInstanceClass); +} + diff --git a/gpdb/src/model/UpgradeDBInstanceResult.cc b/gpdb/src/model/UpgradeDBInstanceResult.cc new file mode 100644 index 000000000..15293599a --- /dev/null +++ b/gpdb/src/model/UpgradeDBInstanceResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +UpgradeDBInstanceResult::UpgradeDBInstanceResult() : + ServiceResult() +{} + +UpgradeDBInstanceResult::UpgradeDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBInstanceResult::~UpgradeDBInstanceResult() +{} + +void UpgradeDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string UpgradeDBInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string UpgradeDBInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/green/CMakeLists.txt b/green/CMakeLists.txt index 176cc5d89..85c241101 100755 --- a/green/CMakeLists.txt +++ b/green/CMakeLists.txt @@ -31,38 +31,40 @@ set(green_public_header_model include/alibabacloud/green/model/DescribeWebsiteScanResultResult.h include/alibabacloud/green/model/UpdateAppPackageRequest.h include/alibabacloud/green/model/UpdateAppPackageResult.h - include/alibabacloud/green/model/DeleteVideoDnaGroupRequest.h - include/alibabacloud/green/model/DeleteVideoDnaGroupResult.h include/alibabacloud/green/model/UpdateOssCallbackSettingRequest.h include/alibabacloud/green/model/UpdateOssCallbackSettingResult.h + include/alibabacloud/green/model/DeleteVideoDnaGroupRequest.h + include/alibabacloud/green/model/DeleteVideoDnaGroupResult.h include/alibabacloud/green/model/DescribeWebsiteInstanceKeyUrlRequest.h include/alibabacloud/green/model/DescribeWebsiteInstanceKeyUrlResult.h - include/alibabacloud/green/model/DeleteVideoDnaRequest.h - include/alibabacloud/green/model/DeleteVideoDnaResult.h include/alibabacloud/green/model/RefundCdiBaseBagRequest.h include/alibabacloud/green/model/RefundCdiBaseBagResult.h + include/alibabacloud/green/model/DeleteVideoDnaRequest.h + include/alibabacloud/green/model/DeleteVideoDnaResult.h include/alibabacloud/green/model/UpdateBizTypeSettingRequest.h include/alibabacloud/green/model/UpdateBizTypeSettingResult.h include/alibabacloud/green/model/FileAsyncScanRequest.h include/alibabacloud/green/model/FileAsyncScanResult.h + include/alibabacloud/green/model/DetectFaceRequest.h + include/alibabacloud/green/model/DetectFaceResult.h include/alibabacloud/green/model/DescribeOssResultItemsRequest.h include/alibabacloud/green/model/DescribeOssResultItemsResult.h - include/alibabacloud/green/model/UpdateWebsiteInstanceStatusRequest.h - include/alibabacloud/green/model/UpdateWebsiteInstanceStatusResult.h include/alibabacloud/green/model/DescribeBizTypesRequest.h include/alibabacloud/green/model/DescribeBizTypesResult.h + include/alibabacloud/green/model/UpdateWebsiteInstanceStatusRequest.h + include/alibabacloud/green/model/UpdateWebsiteInstanceStatusResult.h include/alibabacloud/green/model/RefundCdiBagRequest.h include/alibabacloud/green/model/RefundCdiBagResult.h include/alibabacloud/green/model/DeleteImageFromLibRequest.h include/alibabacloud/green/model/DeleteImageFromLibResult.h include/alibabacloud/green/model/CreateCdiBaseBagRequest.h include/alibabacloud/green/model/CreateCdiBaseBagResult.h + include/alibabacloud/green/model/DeleteKeywordLibRequest.h + include/alibabacloud/green/model/DeleteKeywordLibResult.h include/alibabacloud/green/model/VerifyPhoneRequest.h include/alibabacloud/green/model/VerifyPhoneResult.h include/alibabacloud/green/model/ImageDetectionRequest.h include/alibabacloud/green/model/ImageDetectionResult.h - include/alibabacloud/green/model/DeleteKeywordLibRequest.h - include/alibabacloud/green/model/DeleteKeywordLibResult.h include/alibabacloud/green/model/ImportKeywordsRequest.h include/alibabacloud/green/model/ImportKeywordsResult.h include/alibabacloud/green/model/VoiceCancelScanRequest.h @@ -81,12 +83,14 @@ set(green_public_header_model include/alibabacloud/green/model/DescribeWebsiteStatResult.h include/alibabacloud/green/model/UpdateNotificationSettingRequest.h include/alibabacloud/green/model/UpdateNotificationSettingResult.h + include/alibabacloud/green/model/DescribeUserBizTypesRequest.h + include/alibabacloud/green/model/DescribeUserBizTypesResult.h include/alibabacloud/green/model/DescribeAuditContentItemRequest.h include/alibabacloud/green/model/DescribeAuditContentItemResult.h - include/alibabacloud/green/model/SearchPersonRequest.h - include/alibabacloud/green/model/SearchPersonResult.h include/alibabacloud/green/model/MarkOssResultRequest.h include/alibabacloud/green/model/MarkOssResultResult.h + include/alibabacloud/green/model/SearchPersonRequest.h + include/alibabacloud/green/model/SearchPersonResult.h include/alibabacloud/green/model/DescribeAppInfoRequest.h include/alibabacloud/green/model/DescribeAppInfoResult.h include/alibabacloud/green/model/AddSimilarityImageRequest.h @@ -157,20 +161,20 @@ set(green_public_header_model include/alibabacloud/green/model/DescribeImageLibResult.h include/alibabacloud/green/model/UpgradeCdiBaseBagRequest.h include/alibabacloud/green/model/UpgradeCdiBaseBagResult.h - include/alibabacloud/green/model/DescribeUserStatusRequest.h - include/alibabacloud/green/model/DescribeUserStatusResult.h include/alibabacloud/green/model/GetAddVideoDnaResultsRequest.h include/alibabacloud/green/model/GetAddVideoDnaResultsResult.h + include/alibabacloud/green/model/DescribeUserStatusRequest.h + include/alibabacloud/green/model/DescribeUserStatusResult.h include/alibabacloud/green/model/DescribeKeywordRequest.h include/alibabacloud/green/model/DescribeKeywordResult.h - include/alibabacloud/green/model/AddFacesRequest.h - include/alibabacloud/green/model/AddFacesResult.h include/alibabacloud/green/model/DescribeAuditSettingRequest.h include/alibabacloud/green/model/DescribeAuditSettingResult.h - include/alibabacloud/green/model/CreateKeywordLibRequest.h - include/alibabacloud/green/model/CreateKeywordLibResult.h + include/alibabacloud/green/model/AddFacesRequest.h + include/alibabacloud/green/model/AddFacesResult.h include/alibabacloud/green/model/UpdateOssIncrementCheckSettingRequest.h include/alibabacloud/green/model/UpdateOssIncrementCheckSettingResult.h + include/alibabacloud/green/model/CreateKeywordLibRequest.h + include/alibabacloud/green/model/CreateKeywordLibResult.h include/alibabacloud/green/model/UploadCredentialsRequest.h include/alibabacloud/green/model/UploadCredentialsResult.h include/alibabacloud/green/model/CreateBizTypeRequest.h @@ -235,10 +239,10 @@ set(green_public_header_model include/alibabacloud/green/model/MarkAuditContentItemResult.h include/alibabacloud/green/model/AddVideoDnaRequest.h include/alibabacloud/green/model/AddVideoDnaResult.h - include/alibabacloud/green/model/VideoSyncScanRequest.h - include/alibabacloud/green/model/VideoSyncScanResult.h include/alibabacloud/green/model/DeleteNotificationContactsRequest.h include/alibabacloud/green/model/DeleteNotificationContactsResult.h + include/alibabacloud/green/model/VideoSyncScanRequest.h + include/alibabacloud/green/model/VideoSyncScanResult.h include/alibabacloud/green/model/VideoAsyncScanResultsRequest.h include/alibabacloud/green/model/VideoAsyncScanResultsResult.h include/alibabacloud/green/model/DescribeOssStockStatusRequest.h @@ -259,32 +263,32 @@ set(green_public_header_model include/alibabacloud/green/model/DescribeWebsiteScanResultDetailResult.h include/alibabacloud/green/model/AddSimilarityLibraryRequest.h include/alibabacloud/green/model/AddSimilarityLibraryResult.h - include/alibabacloud/green/model/AddVideoDnaGroupRequest.h - include/alibabacloud/green/model/AddVideoDnaGroupResult.h include/alibabacloud/green/model/CreateCdiBagRequest.h include/alibabacloud/green/model/CreateCdiBagResult.h - include/alibabacloud/green/model/UpdateKeywordLibRequest.h - include/alibabacloud/green/model/UpdateKeywordLibResult.h + include/alibabacloud/green/model/AddVideoDnaGroupRequest.h + include/alibabacloud/green/model/AddVideoDnaGroupResult.h include/alibabacloud/green/model/ImageAsyncScanRequest.h include/alibabacloud/green/model/ImageAsyncScanResult.h + include/alibabacloud/green/model/UpdateKeywordLibRequest.h + include/alibabacloud/green/model/UpdateKeywordLibResult.h include/alibabacloud/green/model/ImageAsyncScanResultsRequest.h include/alibabacloud/green/model/ImageAsyncScanResultsResult.h include/alibabacloud/green/model/VoiceAsyncScanResultsRequest.h include/alibabacloud/green/model/VoiceAsyncScanResultsResult.h include/alibabacloud/green/model/ImageResultsRequest.h include/alibabacloud/green/model/ImageResultsResult.h - include/alibabacloud/green/model/VerifyWebsiteInstanceRequest.h - include/alibabacloud/green/model/VerifyWebsiteInstanceResult.h include/alibabacloud/green/model/UpdateWebsiteInstanceKeyUrlRequest.h include/alibabacloud/green/model/UpdateWebsiteInstanceKeyUrlResult.h + include/alibabacloud/green/model/VerifyWebsiteInstanceRequest.h + include/alibabacloud/green/model/VerifyWebsiteInstanceResult.h include/alibabacloud/green/model/SendVerifyCodeToPhoneRequest.h include/alibabacloud/green/model/SendVerifyCodeToPhoneResult.h include/alibabacloud/green/model/DescribeOssIncrementOverviewRequest.h include/alibabacloud/green/model/DescribeOssIncrementOverviewResult.h - include/alibabacloud/green/model/DescribeNotificationSettingRequest.h - include/alibabacloud/green/model/DescribeNotificationSettingResult.h include/alibabacloud/green/model/DescribeAuditContentRequest.h - include/alibabacloud/green/model/DescribeAuditContentResult.h ) + include/alibabacloud/green/model/DescribeAuditContentResult.h + include/alibabacloud/green/model/DescribeNotificationSettingRequest.h + include/alibabacloud/green/model/DescribeNotificationSettingResult.h ) set(green_src src/GreenClient.cc @@ -298,38 +302,40 @@ set(green_src src/model/DescribeWebsiteScanResultResult.cc src/model/UpdateAppPackageRequest.cc src/model/UpdateAppPackageResult.cc - src/model/DeleteVideoDnaGroupRequest.cc - src/model/DeleteVideoDnaGroupResult.cc src/model/UpdateOssCallbackSettingRequest.cc src/model/UpdateOssCallbackSettingResult.cc + src/model/DeleteVideoDnaGroupRequest.cc + src/model/DeleteVideoDnaGroupResult.cc src/model/DescribeWebsiteInstanceKeyUrlRequest.cc src/model/DescribeWebsiteInstanceKeyUrlResult.cc - src/model/DeleteVideoDnaRequest.cc - src/model/DeleteVideoDnaResult.cc src/model/RefundCdiBaseBagRequest.cc src/model/RefundCdiBaseBagResult.cc + src/model/DeleteVideoDnaRequest.cc + src/model/DeleteVideoDnaResult.cc src/model/UpdateBizTypeSettingRequest.cc src/model/UpdateBizTypeSettingResult.cc src/model/FileAsyncScanRequest.cc src/model/FileAsyncScanResult.cc + src/model/DetectFaceRequest.cc + src/model/DetectFaceResult.cc src/model/DescribeOssResultItemsRequest.cc src/model/DescribeOssResultItemsResult.cc - src/model/UpdateWebsiteInstanceStatusRequest.cc - src/model/UpdateWebsiteInstanceStatusResult.cc src/model/DescribeBizTypesRequest.cc src/model/DescribeBizTypesResult.cc + src/model/UpdateWebsiteInstanceStatusRequest.cc + src/model/UpdateWebsiteInstanceStatusResult.cc src/model/RefundCdiBagRequest.cc src/model/RefundCdiBagResult.cc src/model/DeleteImageFromLibRequest.cc src/model/DeleteImageFromLibResult.cc src/model/CreateCdiBaseBagRequest.cc src/model/CreateCdiBaseBagResult.cc + src/model/DeleteKeywordLibRequest.cc + src/model/DeleteKeywordLibResult.cc src/model/VerifyPhoneRequest.cc src/model/VerifyPhoneResult.cc src/model/ImageDetectionRequest.cc src/model/ImageDetectionResult.cc - src/model/DeleteKeywordLibRequest.cc - src/model/DeleteKeywordLibResult.cc src/model/ImportKeywordsRequest.cc src/model/ImportKeywordsResult.cc src/model/VoiceCancelScanRequest.cc @@ -348,12 +354,14 @@ set(green_src src/model/DescribeWebsiteStatResult.cc src/model/UpdateNotificationSettingRequest.cc src/model/UpdateNotificationSettingResult.cc + src/model/DescribeUserBizTypesRequest.cc + src/model/DescribeUserBizTypesResult.cc src/model/DescribeAuditContentItemRequest.cc src/model/DescribeAuditContentItemResult.cc - src/model/SearchPersonRequest.cc - src/model/SearchPersonResult.cc src/model/MarkOssResultRequest.cc src/model/MarkOssResultResult.cc + src/model/SearchPersonRequest.cc + src/model/SearchPersonResult.cc src/model/DescribeAppInfoRequest.cc src/model/DescribeAppInfoResult.cc src/model/AddSimilarityImageRequest.cc @@ -424,20 +432,20 @@ set(green_src src/model/DescribeImageLibResult.cc src/model/UpgradeCdiBaseBagRequest.cc src/model/UpgradeCdiBaseBagResult.cc - src/model/DescribeUserStatusRequest.cc - src/model/DescribeUserStatusResult.cc src/model/GetAddVideoDnaResultsRequest.cc src/model/GetAddVideoDnaResultsResult.cc + src/model/DescribeUserStatusRequest.cc + src/model/DescribeUserStatusResult.cc src/model/DescribeKeywordRequest.cc src/model/DescribeKeywordResult.cc - src/model/AddFacesRequest.cc - src/model/AddFacesResult.cc src/model/DescribeAuditSettingRequest.cc src/model/DescribeAuditSettingResult.cc - src/model/CreateKeywordLibRequest.cc - src/model/CreateKeywordLibResult.cc + src/model/AddFacesRequest.cc + src/model/AddFacesResult.cc src/model/UpdateOssIncrementCheckSettingRequest.cc src/model/UpdateOssIncrementCheckSettingResult.cc + src/model/CreateKeywordLibRequest.cc + src/model/CreateKeywordLibResult.cc src/model/UploadCredentialsRequest.cc src/model/UploadCredentialsResult.cc src/model/CreateBizTypeRequest.cc @@ -502,10 +510,10 @@ set(green_src src/model/MarkAuditContentItemResult.cc src/model/AddVideoDnaRequest.cc src/model/AddVideoDnaResult.cc - src/model/VideoSyncScanRequest.cc - src/model/VideoSyncScanResult.cc src/model/DeleteNotificationContactsRequest.cc src/model/DeleteNotificationContactsResult.cc + src/model/VideoSyncScanRequest.cc + src/model/VideoSyncScanResult.cc src/model/VideoAsyncScanResultsRequest.cc src/model/VideoAsyncScanResultsResult.cc src/model/DescribeOssStockStatusRequest.cc @@ -526,32 +534,32 @@ set(green_src src/model/DescribeWebsiteScanResultDetailResult.cc src/model/AddSimilarityLibraryRequest.cc src/model/AddSimilarityLibraryResult.cc - src/model/AddVideoDnaGroupRequest.cc - src/model/AddVideoDnaGroupResult.cc src/model/CreateCdiBagRequest.cc src/model/CreateCdiBagResult.cc - src/model/UpdateKeywordLibRequest.cc - src/model/UpdateKeywordLibResult.cc + src/model/AddVideoDnaGroupRequest.cc + src/model/AddVideoDnaGroupResult.cc src/model/ImageAsyncScanRequest.cc src/model/ImageAsyncScanResult.cc + src/model/UpdateKeywordLibRequest.cc + src/model/UpdateKeywordLibResult.cc src/model/ImageAsyncScanResultsRequest.cc src/model/ImageAsyncScanResultsResult.cc src/model/VoiceAsyncScanResultsRequest.cc src/model/VoiceAsyncScanResultsResult.cc src/model/ImageResultsRequest.cc src/model/ImageResultsResult.cc - src/model/VerifyWebsiteInstanceRequest.cc - src/model/VerifyWebsiteInstanceResult.cc src/model/UpdateWebsiteInstanceKeyUrlRequest.cc src/model/UpdateWebsiteInstanceKeyUrlResult.cc + src/model/VerifyWebsiteInstanceRequest.cc + src/model/VerifyWebsiteInstanceResult.cc src/model/SendVerifyCodeToPhoneRequest.cc src/model/SendVerifyCodeToPhoneResult.cc src/model/DescribeOssIncrementOverviewRequest.cc src/model/DescribeOssIncrementOverviewResult.cc - src/model/DescribeNotificationSettingRequest.cc - src/model/DescribeNotificationSettingResult.cc src/model/DescribeAuditContentRequest.cc - src/model/DescribeAuditContentResult.cc ) + src/model/DescribeAuditContentResult.cc + src/model/DescribeNotificationSettingRequest.cc + src/model/DescribeNotificationSettingResult.cc ) add_library(green ${LIB_TYPE} ${green_public_header} diff --git a/green/include/alibabacloud/green/GreenClient.h b/green/include/alibabacloud/green/GreenClient.h index ef37ddb82..0188c2d79 100755 --- a/green/include/alibabacloud/green/GreenClient.h +++ b/green/include/alibabacloud/green/GreenClient.h @@ -32,38 +32,40 @@ #include "model/DescribeWebsiteScanResultResult.h" #include "model/UpdateAppPackageRequest.h" #include "model/UpdateAppPackageResult.h" -#include "model/DeleteVideoDnaGroupRequest.h" -#include "model/DeleteVideoDnaGroupResult.h" #include "model/UpdateOssCallbackSettingRequest.h" #include "model/UpdateOssCallbackSettingResult.h" +#include "model/DeleteVideoDnaGroupRequest.h" +#include "model/DeleteVideoDnaGroupResult.h" #include "model/DescribeWebsiteInstanceKeyUrlRequest.h" #include "model/DescribeWebsiteInstanceKeyUrlResult.h" -#include "model/DeleteVideoDnaRequest.h" -#include "model/DeleteVideoDnaResult.h" #include "model/RefundCdiBaseBagRequest.h" #include "model/RefundCdiBaseBagResult.h" +#include "model/DeleteVideoDnaRequest.h" +#include "model/DeleteVideoDnaResult.h" #include "model/UpdateBizTypeSettingRequest.h" #include "model/UpdateBizTypeSettingResult.h" #include "model/FileAsyncScanRequest.h" #include "model/FileAsyncScanResult.h" +#include "model/DetectFaceRequest.h" +#include "model/DetectFaceResult.h" #include "model/DescribeOssResultItemsRequest.h" #include "model/DescribeOssResultItemsResult.h" -#include "model/UpdateWebsiteInstanceStatusRequest.h" -#include "model/UpdateWebsiteInstanceStatusResult.h" #include "model/DescribeBizTypesRequest.h" #include "model/DescribeBizTypesResult.h" +#include "model/UpdateWebsiteInstanceStatusRequest.h" +#include "model/UpdateWebsiteInstanceStatusResult.h" #include "model/RefundCdiBagRequest.h" #include "model/RefundCdiBagResult.h" #include "model/DeleteImageFromLibRequest.h" #include "model/DeleteImageFromLibResult.h" #include "model/CreateCdiBaseBagRequest.h" #include "model/CreateCdiBaseBagResult.h" +#include "model/DeleteKeywordLibRequest.h" +#include "model/DeleteKeywordLibResult.h" #include "model/VerifyPhoneRequest.h" #include "model/VerifyPhoneResult.h" #include "model/ImageDetectionRequest.h" #include "model/ImageDetectionResult.h" -#include "model/DeleteKeywordLibRequest.h" -#include "model/DeleteKeywordLibResult.h" #include "model/ImportKeywordsRequest.h" #include "model/ImportKeywordsResult.h" #include "model/VoiceCancelScanRequest.h" @@ -82,12 +84,14 @@ #include "model/DescribeWebsiteStatResult.h" #include "model/UpdateNotificationSettingRequest.h" #include "model/UpdateNotificationSettingResult.h" +#include "model/DescribeUserBizTypesRequest.h" +#include "model/DescribeUserBizTypesResult.h" #include "model/DescribeAuditContentItemRequest.h" #include "model/DescribeAuditContentItemResult.h" -#include "model/SearchPersonRequest.h" -#include "model/SearchPersonResult.h" #include "model/MarkOssResultRequest.h" #include "model/MarkOssResultResult.h" +#include "model/SearchPersonRequest.h" +#include "model/SearchPersonResult.h" #include "model/DescribeAppInfoRequest.h" #include "model/DescribeAppInfoResult.h" #include "model/AddSimilarityImageRequest.h" @@ -158,20 +162,20 @@ #include "model/DescribeImageLibResult.h" #include "model/UpgradeCdiBaseBagRequest.h" #include "model/UpgradeCdiBaseBagResult.h" -#include "model/DescribeUserStatusRequest.h" -#include "model/DescribeUserStatusResult.h" #include "model/GetAddVideoDnaResultsRequest.h" #include "model/GetAddVideoDnaResultsResult.h" +#include "model/DescribeUserStatusRequest.h" +#include "model/DescribeUserStatusResult.h" #include "model/DescribeKeywordRequest.h" #include "model/DescribeKeywordResult.h" -#include "model/AddFacesRequest.h" -#include "model/AddFacesResult.h" #include "model/DescribeAuditSettingRequest.h" #include "model/DescribeAuditSettingResult.h" -#include "model/CreateKeywordLibRequest.h" -#include "model/CreateKeywordLibResult.h" +#include "model/AddFacesRequest.h" +#include "model/AddFacesResult.h" #include "model/UpdateOssIncrementCheckSettingRequest.h" #include "model/UpdateOssIncrementCheckSettingResult.h" +#include "model/CreateKeywordLibRequest.h" +#include "model/CreateKeywordLibResult.h" #include "model/UploadCredentialsRequest.h" #include "model/UploadCredentialsResult.h" #include "model/CreateBizTypeRequest.h" @@ -236,10 +240,10 @@ #include "model/MarkAuditContentItemResult.h" #include "model/AddVideoDnaRequest.h" #include "model/AddVideoDnaResult.h" -#include "model/VideoSyncScanRequest.h" -#include "model/VideoSyncScanResult.h" #include "model/DeleteNotificationContactsRequest.h" #include "model/DeleteNotificationContactsResult.h" +#include "model/VideoSyncScanRequest.h" +#include "model/VideoSyncScanResult.h" #include "model/VideoAsyncScanResultsRequest.h" #include "model/VideoAsyncScanResultsResult.h" #include "model/DescribeOssStockStatusRequest.h" @@ -260,32 +264,32 @@ #include "model/DescribeWebsiteScanResultDetailResult.h" #include "model/AddSimilarityLibraryRequest.h" #include "model/AddSimilarityLibraryResult.h" -#include "model/AddVideoDnaGroupRequest.h" -#include "model/AddVideoDnaGroupResult.h" #include "model/CreateCdiBagRequest.h" #include "model/CreateCdiBagResult.h" -#include "model/UpdateKeywordLibRequest.h" -#include "model/UpdateKeywordLibResult.h" +#include "model/AddVideoDnaGroupRequest.h" +#include "model/AddVideoDnaGroupResult.h" #include "model/ImageAsyncScanRequest.h" #include "model/ImageAsyncScanResult.h" +#include "model/UpdateKeywordLibRequest.h" +#include "model/UpdateKeywordLibResult.h" #include "model/ImageAsyncScanResultsRequest.h" #include "model/ImageAsyncScanResultsResult.h" #include "model/VoiceAsyncScanResultsRequest.h" #include "model/VoiceAsyncScanResultsResult.h" #include "model/ImageResultsRequest.h" #include "model/ImageResultsResult.h" -#include "model/VerifyWebsiteInstanceRequest.h" -#include "model/VerifyWebsiteInstanceResult.h" #include "model/UpdateWebsiteInstanceKeyUrlRequest.h" #include "model/UpdateWebsiteInstanceKeyUrlResult.h" +#include "model/VerifyWebsiteInstanceRequest.h" +#include "model/VerifyWebsiteInstanceResult.h" #include "model/SendVerifyCodeToPhoneRequest.h" #include "model/SendVerifyCodeToPhoneResult.h" #include "model/DescribeOssIncrementOverviewRequest.h" #include "model/DescribeOssIncrementOverviewResult.h" -#include "model/DescribeNotificationSettingRequest.h" -#include "model/DescribeNotificationSettingResult.h" #include "model/DescribeAuditContentRequest.h" #include "model/DescribeAuditContentResult.h" +#include "model/DescribeNotificationSettingRequest.h" +#include "model/DescribeNotificationSettingResult.h" namespace AlibabaCloud @@ -310,36 +314,39 @@ namespace AlibabaCloud typedef Outcome UpdateAppPackageOutcome; typedef std::future UpdateAppPackageOutcomeCallable; typedef std::function&)> UpdateAppPackageAsyncHandler; - typedef Outcome DeleteVideoDnaGroupOutcome; - typedef std::future DeleteVideoDnaGroupOutcomeCallable; - typedef std::function&)> DeleteVideoDnaGroupAsyncHandler; typedef Outcome UpdateOssCallbackSettingOutcome; typedef std::future UpdateOssCallbackSettingOutcomeCallable; typedef std::function&)> UpdateOssCallbackSettingAsyncHandler; + typedef Outcome DeleteVideoDnaGroupOutcome; + typedef std::future DeleteVideoDnaGroupOutcomeCallable; + typedef std::function&)> DeleteVideoDnaGroupAsyncHandler; typedef Outcome DescribeWebsiteInstanceKeyUrlOutcome; typedef std::future DescribeWebsiteInstanceKeyUrlOutcomeCallable; typedef std::function&)> DescribeWebsiteInstanceKeyUrlAsyncHandler; - typedef Outcome DeleteVideoDnaOutcome; - typedef std::future DeleteVideoDnaOutcomeCallable; - typedef std::function&)> DeleteVideoDnaAsyncHandler; typedef Outcome RefundCdiBaseBagOutcome; typedef std::future RefundCdiBaseBagOutcomeCallable; typedef std::function&)> RefundCdiBaseBagAsyncHandler; + typedef Outcome DeleteVideoDnaOutcome; + typedef std::future DeleteVideoDnaOutcomeCallable; + typedef std::function&)> DeleteVideoDnaAsyncHandler; typedef Outcome UpdateBizTypeSettingOutcome; typedef std::future UpdateBizTypeSettingOutcomeCallable; typedef std::function&)> UpdateBizTypeSettingAsyncHandler; typedef Outcome FileAsyncScanOutcome; typedef std::future FileAsyncScanOutcomeCallable; typedef std::function&)> FileAsyncScanAsyncHandler; + typedef Outcome DetectFaceOutcome; + typedef std::future DetectFaceOutcomeCallable; + typedef std::function&)> DetectFaceAsyncHandler; typedef Outcome DescribeOssResultItemsOutcome; typedef std::future DescribeOssResultItemsOutcomeCallable; typedef std::function&)> DescribeOssResultItemsAsyncHandler; - typedef Outcome UpdateWebsiteInstanceStatusOutcome; - typedef std::future UpdateWebsiteInstanceStatusOutcomeCallable; - typedef std::function&)> UpdateWebsiteInstanceStatusAsyncHandler; typedef Outcome DescribeBizTypesOutcome; typedef std::future DescribeBizTypesOutcomeCallable; typedef std::function&)> DescribeBizTypesAsyncHandler; + typedef Outcome UpdateWebsiteInstanceStatusOutcome; + typedef std::future UpdateWebsiteInstanceStatusOutcomeCallable; + typedef std::function&)> UpdateWebsiteInstanceStatusAsyncHandler; typedef Outcome RefundCdiBagOutcome; typedef std::future RefundCdiBagOutcomeCallable; typedef std::function&)> RefundCdiBagAsyncHandler; @@ -349,15 +356,15 @@ namespace AlibabaCloud typedef Outcome CreateCdiBaseBagOutcome; typedef std::future CreateCdiBaseBagOutcomeCallable; typedef std::function&)> CreateCdiBaseBagAsyncHandler; + typedef Outcome DeleteKeywordLibOutcome; + typedef std::future DeleteKeywordLibOutcomeCallable; + typedef std::function&)> DeleteKeywordLibAsyncHandler; typedef Outcome VerifyPhoneOutcome; typedef std::future VerifyPhoneOutcomeCallable; typedef std::function&)> VerifyPhoneAsyncHandler; typedef Outcome ImageDetectionOutcome; typedef std::future ImageDetectionOutcomeCallable; typedef std::function&)> ImageDetectionAsyncHandler; - typedef Outcome DeleteKeywordLibOutcome; - typedef std::future DeleteKeywordLibOutcomeCallable; - typedef std::function&)> DeleteKeywordLibAsyncHandler; typedef Outcome ImportKeywordsOutcome; typedef std::future ImportKeywordsOutcomeCallable; typedef std::function&)> ImportKeywordsAsyncHandler; @@ -385,15 +392,18 @@ namespace AlibabaCloud typedef Outcome UpdateNotificationSettingOutcome; typedef std::future UpdateNotificationSettingOutcomeCallable; typedef std::function&)> UpdateNotificationSettingAsyncHandler; + typedef Outcome DescribeUserBizTypesOutcome; + typedef std::future DescribeUserBizTypesOutcomeCallable; + typedef std::function&)> DescribeUserBizTypesAsyncHandler; typedef Outcome DescribeAuditContentItemOutcome; typedef std::future DescribeAuditContentItemOutcomeCallable; typedef std::function&)> DescribeAuditContentItemAsyncHandler; - typedef Outcome SearchPersonOutcome; - typedef std::future SearchPersonOutcomeCallable; - typedef std::function&)> SearchPersonAsyncHandler; typedef Outcome MarkOssResultOutcome; typedef std::future MarkOssResultOutcomeCallable; typedef std::function&)> MarkOssResultAsyncHandler; + typedef Outcome SearchPersonOutcome; + typedef std::future SearchPersonOutcomeCallable; + typedef std::function&)> SearchPersonAsyncHandler; typedef Outcome DescribeAppInfoOutcome; typedef std::future DescribeAppInfoOutcomeCallable; typedef std::function&)> DescribeAppInfoAsyncHandler; @@ -499,27 +509,27 @@ namespace AlibabaCloud typedef Outcome UpgradeCdiBaseBagOutcome; typedef std::future UpgradeCdiBaseBagOutcomeCallable; typedef std::function&)> UpgradeCdiBaseBagAsyncHandler; - typedef Outcome DescribeUserStatusOutcome; - typedef std::future DescribeUserStatusOutcomeCallable; - typedef std::function&)> DescribeUserStatusAsyncHandler; typedef Outcome GetAddVideoDnaResultsOutcome; typedef std::future GetAddVideoDnaResultsOutcomeCallable; typedef std::function&)> GetAddVideoDnaResultsAsyncHandler; + typedef Outcome DescribeUserStatusOutcome; + typedef std::future DescribeUserStatusOutcomeCallable; + typedef std::function&)> DescribeUserStatusAsyncHandler; typedef Outcome DescribeKeywordOutcome; typedef std::future DescribeKeywordOutcomeCallable; typedef std::function&)> DescribeKeywordAsyncHandler; - typedef Outcome AddFacesOutcome; - typedef std::future AddFacesOutcomeCallable; - typedef std::function&)> AddFacesAsyncHandler; typedef Outcome DescribeAuditSettingOutcome; typedef std::future DescribeAuditSettingOutcomeCallable; typedef std::function&)> DescribeAuditSettingAsyncHandler; - typedef Outcome CreateKeywordLibOutcome; - typedef std::future CreateKeywordLibOutcomeCallable; - typedef std::function&)> CreateKeywordLibAsyncHandler; + typedef Outcome AddFacesOutcome; + typedef std::future AddFacesOutcomeCallable; + typedef std::function&)> AddFacesAsyncHandler; typedef Outcome UpdateOssIncrementCheckSettingOutcome; typedef std::future UpdateOssIncrementCheckSettingOutcomeCallable; typedef std::function&)> UpdateOssIncrementCheckSettingAsyncHandler; + typedef Outcome CreateKeywordLibOutcome; + typedef std::future CreateKeywordLibOutcomeCallable; + typedef std::function&)> CreateKeywordLibAsyncHandler; typedef Outcome UploadCredentialsOutcome; typedef std::future UploadCredentialsOutcomeCallable; typedef std::function&)> UploadCredentialsAsyncHandler; @@ -616,12 +626,12 @@ namespace AlibabaCloud typedef Outcome AddVideoDnaOutcome; typedef std::future AddVideoDnaOutcomeCallable; typedef std::function&)> AddVideoDnaAsyncHandler; - typedef Outcome VideoSyncScanOutcome; - typedef std::future VideoSyncScanOutcomeCallable; - typedef std::function&)> VideoSyncScanAsyncHandler; typedef Outcome DeleteNotificationContactsOutcome; typedef std::future DeleteNotificationContactsOutcomeCallable; typedef std::function&)> DeleteNotificationContactsAsyncHandler; + typedef Outcome VideoSyncScanOutcome; + typedef std::future VideoSyncScanOutcomeCallable; + typedef std::function&)> VideoSyncScanAsyncHandler; typedef Outcome VideoAsyncScanResultsOutcome; typedef std::future VideoAsyncScanResultsOutcomeCallable; typedef std::function&)> VideoAsyncScanResultsAsyncHandler; @@ -652,18 +662,18 @@ namespace AlibabaCloud typedef Outcome AddSimilarityLibraryOutcome; typedef std::future AddSimilarityLibraryOutcomeCallable; typedef std::function&)> AddSimilarityLibraryAsyncHandler; - typedef Outcome AddVideoDnaGroupOutcome; - typedef std::future AddVideoDnaGroupOutcomeCallable; - typedef std::function&)> AddVideoDnaGroupAsyncHandler; typedef Outcome CreateCdiBagOutcome; typedef std::future CreateCdiBagOutcomeCallable; typedef std::function&)> CreateCdiBagAsyncHandler; - typedef Outcome UpdateKeywordLibOutcome; - typedef std::future UpdateKeywordLibOutcomeCallable; - typedef std::function&)> UpdateKeywordLibAsyncHandler; + typedef Outcome AddVideoDnaGroupOutcome; + typedef std::future AddVideoDnaGroupOutcomeCallable; + typedef std::function&)> AddVideoDnaGroupAsyncHandler; typedef Outcome ImageAsyncScanOutcome; typedef std::future ImageAsyncScanOutcomeCallable; typedef std::function&)> ImageAsyncScanAsyncHandler; + typedef Outcome UpdateKeywordLibOutcome; + typedef std::future UpdateKeywordLibOutcomeCallable; + typedef std::function&)> UpdateKeywordLibAsyncHandler; typedef Outcome ImageAsyncScanResultsOutcome; typedef std::future ImageAsyncScanResultsOutcomeCallable; typedef std::function&)> ImageAsyncScanResultsAsyncHandler; @@ -673,24 +683,24 @@ namespace AlibabaCloud typedef Outcome ImageResultsOutcome; typedef std::future ImageResultsOutcomeCallable; typedef std::function&)> ImageResultsAsyncHandler; - typedef Outcome VerifyWebsiteInstanceOutcome; - typedef std::future VerifyWebsiteInstanceOutcomeCallable; - typedef std::function&)> VerifyWebsiteInstanceAsyncHandler; typedef Outcome UpdateWebsiteInstanceKeyUrlOutcome; typedef std::future UpdateWebsiteInstanceKeyUrlOutcomeCallable; typedef std::function&)> UpdateWebsiteInstanceKeyUrlAsyncHandler; + typedef Outcome VerifyWebsiteInstanceOutcome; + typedef std::future VerifyWebsiteInstanceOutcomeCallable; + typedef std::function&)> VerifyWebsiteInstanceAsyncHandler; typedef Outcome SendVerifyCodeToPhoneOutcome; typedef std::future SendVerifyCodeToPhoneOutcomeCallable; typedef std::function&)> SendVerifyCodeToPhoneAsyncHandler; typedef Outcome DescribeOssIncrementOverviewOutcome; typedef std::future DescribeOssIncrementOverviewOutcomeCallable; typedef std::function&)> DescribeOssIncrementOverviewAsyncHandler; - typedef Outcome DescribeNotificationSettingOutcome; - typedef std::future DescribeNotificationSettingOutcomeCallable; - typedef std::function&)> DescribeNotificationSettingAsyncHandler; typedef Outcome DescribeAuditContentOutcome; typedef std::future DescribeAuditContentOutcomeCallable; typedef std::function&)> DescribeAuditContentAsyncHandler; + typedef Outcome DescribeNotificationSettingOutcome; + typedef std::future DescribeNotificationSettingOutcomeCallable; + typedef std::function&)> DescribeNotificationSettingAsyncHandler; GreenClient(const Credentials &credentials, const ClientConfiguration &configuration); GreenClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -711,36 +721,39 @@ namespace AlibabaCloud UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const; void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const; - DeleteVideoDnaGroupOutcome deleteVideoDnaGroup(const Model::DeleteVideoDnaGroupRequest &request)const; - void deleteVideoDnaGroupAsync(const Model::DeleteVideoDnaGroupRequest& request, const DeleteVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteVideoDnaGroupOutcomeCallable deleteVideoDnaGroupCallable(const Model::DeleteVideoDnaGroupRequest& request) const; UpdateOssCallbackSettingOutcome updateOssCallbackSetting(const Model::UpdateOssCallbackSettingRequest &request)const; void updateOssCallbackSettingAsync(const Model::UpdateOssCallbackSettingRequest& request, const UpdateOssCallbackSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateOssCallbackSettingOutcomeCallable updateOssCallbackSettingCallable(const Model::UpdateOssCallbackSettingRequest& request) const; + DeleteVideoDnaGroupOutcome deleteVideoDnaGroup(const Model::DeleteVideoDnaGroupRequest &request)const; + void deleteVideoDnaGroupAsync(const Model::DeleteVideoDnaGroupRequest& request, const DeleteVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoDnaGroupOutcomeCallable deleteVideoDnaGroupCallable(const Model::DeleteVideoDnaGroupRequest& request) const; DescribeWebsiteInstanceKeyUrlOutcome describeWebsiteInstanceKeyUrl(const Model::DescribeWebsiteInstanceKeyUrlRequest &request)const; void describeWebsiteInstanceKeyUrlAsync(const Model::DescribeWebsiteInstanceKeyUrlRequest& request, const DescribeWebsiteInstanceKeyUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWebsiteInstanceKeyUrlOutcomeCallable describeWebsiteInstanceKeyUrlCallable(const Model::DescribeWebsiteInstanceKeyUrlRequest& request) const; - DeleteVideoDnaOutcome deleteVideoDna(const Model::DeleteVideoDnaRequest &request)const; - void deleteVideoDnaAsync(const Model::DeleteVideoDnaRequest& request, const DeleteVideoDnaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteVideoDnaOutcomeCallable deleteVideoDnaCallable(const Model::DeleteVideoDnaRequest& request) const; RefundCdiBaseBagOutcome refundCdiBaseBag(const Model::RefundCdiBaseBagRequest &request)const; void refundCdiBaseBagAsync(const Model::RefundCdiBaseBagRequest& request, const RefundCdiBaseBagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefundCdiBaseBagOutcomeCallable refundCdiBaseBagCallable(const Model::RefundCdiBaseBagRequest& request) const; + DeleteVideoDnaOutcome deleteVideoDna(const Model::DeleteVideoDnaRequest &request)const; + void deleteVideoDnaAsync(const Model::DeleteVideoDnaRequest& request, const DeleteVideoDnaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoDnaOutcomeCallable deleteVideoDnaCallable(const Model::DeleteVideoDnaRequest& request) const; UpdateBizTypeSettingOutcome updateBizTypeSetting(const Model::UpdateBizTypeSettingRequest &request)const; void updateBizTypeSettingAsync(const Model::UpdateBizTypeSettingRequest& request, const UpdateBizTypeSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateBizTypeSettingOutcomeCallable updateBizTypeSettingCallable(const Model::UpdateBizTypeSettingRequest& request) const; FileAsyncScanOutcome fileAsyncScan(const Model::FileAsyncScanRequest &request)const; void fileAsyncScanAsync(const Model::FileAsyncScanRequest& request, const FileAsyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FileAsyncScanOutcomeCallable fileAsyncScanCallable(const Model::FileAsyncScanRequest& request) const; + DetectFaceOutcome detectFace(const Model::DetectFaceRequest &request)const; + void detectFaceAsync(const Model::DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectFaceOutcomeCallable detectFaceCallable(const Model::DetectFaceRequest& request) const; DescribeOssResultItemsOutcome describeOssResultItems(const Model::DescribeOssResultItemsRequest &request)const; void describeOssResultItemsAsync(const Model::DescribeOssResultItemsRequest& request, const DescribeOssResultItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssResultItemsOutcomeCallable describeOssResultItemsCallable(const Model::DescribeOssResultItemsRequest& request) const; - UpdateWebsiteInstanceStatusOutcome updateWebsiteInstanceStatus(const Model::UpdateWebsiteInstanceStatusRequest &request)const; - void updateWebsiteInstanceStatusAsync(const Model::UpdateWebsiteInstanceStatusRequest& request, const UpdateWebsiteInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateWebsiteInstanceStatusOutcomeCallable updateWebsiteInstanceStatusCallable(const Model::UpdateWebsiteInstanceStatusRequest& request) const; DescribeBizTypesOutcome describeBizTypes(const Model::DescribeBizTypesRequest &request)const; void describeBizTypesAsync(const Model::DescribeBizTypesRequest& request, const DescribeBizTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBizTypesOutcomeCallable describeBizTypesCallable(const Model::DescribeBizTypesRequest& request) const; + UpdateWebsiteInstanceStatusOutcome updateWebsiteInstanceStatus(const Model::UpdateWebsiteInstanceStatusRequest &request)const; + void updateWebsiteInstanceStatusAsync(const Model::UpdateWebsiteInstanceStatusRequest& request, const UpdateWebsiteInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateWebsiteInstanceStatusOutcomeCallable updateWebsiteInstanceStatusCallable(const Model::UpdateWebsiteInstanceStatusRequest& request) const; RefundCdiBagOutcome refundCdiBag(const Model::RefundCdiBagRequest &request)const; void refundCdiBagAsync(const Model::RefundCdiBagRequest& request, const RefundCdiBagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefundCdiBagOutcomeCallable refundCdiBagCallable(const Model::RefundCdiBagRequest& request) const; @@ -750,15 +763,15 @@ namespace AlibabaCloud CreateCdiBaseBagOutcome createCdiBaseBag(const Model::CreateCdiBaseBagRequest &request)const; void createCdiBaseBagAsync(const Model::CreateCdiBaseBagRequest& request, const CreateCdiBaseBagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCdiBaseBagOutcomeCallable createCdiBaseBagCallable(const Model::CreateCdiBaseBagRequest& request) const; + DeleteKeywordLibOutcome deleteKeywordLib(const Model::DeleteKeywordLibRequest &request)const; + void deleteKeywordLibAsync(const Model::DeleteKeywordLibRequest& request, const DeleteKeywordLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteKeywordLibOutcomeCallable deleteKeywordLibCallable(const Model::DeleteKeywordLibRequest& request) const; VerifyPhoneOutcome verifyPhone(const Model::VerifyPhoneRequest &request)const; void verifyPhoneAsync(const Model::VerifyPhoneRequest& request, const VerifyPhoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VerifyPhoneOutcomeCallable verifyPhoneCallable(const Model::VerifyPhoneRequest& request) const; ImageDetectionOutcome imageDetection(const Model::ImageDetectionRequest &request)const; void imageDetectionAsync(const Model::ImageDetectionRequest& request, const ImageDetectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImageDetectionOutcomeCallable imageDetectionCallable(const Model::ImageDetectionRequest& request) const; - DeleteKeywordLibOutcome deleteKeywordLib(const Model::DeleteKeywordLibRequest &request)const; - void deleteKeywordLibAsync(const Model::DeleteKeywordLibRequest& request, const DeleteKeywordLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteKeywordLibOutcomeCallable deleteKeywordLibCallable(const Model::DeleteKeywordLibRequest& request) const; ImportKeywordsOutcome importKeywords(const Model::ImportKeywordsRequest &request)const; void importKeywordsAsync(const Model::ImportKeywordsRequest& request, const ImportKeywordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportKeywordsOutcomeCallable importKeywordsCallable(const Model::ImportKeywordsRequest& request) const; @@ -786,15 +799,18 @@ namespace AlibabaCloud UpdateNotificationSettingOutcome updateNotificationSetting(const Model::UpdateNotificationSettingRequest &request)const; void updateNotificationSettingAsync(const Model::UpdateNotificationSettingRequest& request, const UpdateNotificationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateNotificationSettingOutcomeCallable updateNotificationSettingCallable(const Model::UpdateNotificationSettingRequest& request) const; + DescribeUserBizTypesOutcome describeUserBizTypes(const Model::DescribeUserBizTypesRequest &request)const; + void describeUserBizTypesAsync(const Model::DescribeUserBizTypesRequest& request, const DescribeUserBizTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserBizTypesOutcomeCallable describeUserBizTypesCallable(const Model::DescribeUserBizTypesRequest& request) const; DescribeAuditContentItemOutcome describeAuditContentItem(const Model::DescribeAuditContentItemRequest &request)const; void describeAuditContentItemAsync(const Model::DescribeAuditContentItemRequest& request, const DescribeAuditContentItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditContentItemOutcomeCallable describeAuditContentItemCallable(const Model::DescribeAuditContentItemRequest& request) const; - SearchPersonOutcome searchPerson(const Model::SearchPersonRequest &request)const; - void searchPersonAsync(const Model::SearchPersonRequest& request, const SearchPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchPersonOutcomeCallable searchPersonCallable(const Model::SearchPersonRequest& request) const; MarkOssResultOutcome markOssResult(const Model::MarkOssResultRequest &request)const; void markOssResultAsync(const Model::MarkOssResultRequest& request, const MarkOssResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MarkOssResultOutcomeCallable markOssResultCallable(const Model::MarkOssResultRequest& request) const; + SearchPersonOutcome searchPerson(const Model::SearchPersonRequest &request)const; + void searchPersonAsync(const Model::SearchPersonRequest& request, const SearchPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchPersonOutcomeCallable searchPersonCallable(const Model::SearchPersonRequest& request) const; DescribeAppInfoOutcome describeAppInfo(const Model::DescribeAppInfoRequest &request)const; void describeAppInfoAsync(const Model::DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAppInfoOutcomeCallable describeAppInfoCallable(const Model::DescribeAppInfoRequest& request) const; @@ -900,27 +916,27 @@ namespace AlibabaCloud UpgradeCdiBaseBagOutcome upgradeCdiBaseBag(const Model::UpgradeCdiBaseBagRequest &request)const; void upgradeCdiBaseBagAsync(const Model::UpgradeCdiBaseBagRequest& request, const UpgradeCdiBaseBagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeCdiBaseBagOutcomeCallable upgradeCdiBaseBagCallable(const Model::UpgradeCdiBaseBagRequest& request) const; - DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const; - void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserStatusOutcomeCallable describeUserStatusCallable(const Model::DescribeUserStatusRequest& request) const; GetAddVideoDnaResultsOutcome getAddVideoDnaResults(const Model::GetAddVideoDnaResultsRequest &request)const; void getAddVideoDnaResultsAsync(const Model::GetAddVideoDnaResultsRequest& request, const GetAddVideoDnaResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAddVideoDnaResultsOutcomeCallable getAddVideoDnaResultsCallable(const Model::GetAddVideoDnaResultsRequest& request) const; + DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const; + void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserStatusOutcomeCallable describeUserStatusCallable(const Model::DescribeUserStatusRequest& request) const; DescribeKeywordOutcome describeKeyword(const Model::DescribeKeywordRequest &request)const; void describeKeywordAsync(const Model::DescribeKeywordRequest& request, const DescribeKeywordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeKeywordOutcomeCallable describeKeywordCallable(const Model::DescribeKeywordRequest& request) const; - AddFacesOutcome addFaces(const Model::AddFacesRequest &request)const; - void addFacesAsync(const Model::AddFacesRequest& request, const AddFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddFacesOutcomeCallable addFacesCallable(const Model::AddFacesRequest& request) const; DescribeAuditSettingOutcome describeAuditSetting(const Model::DescribeAuditSettingRequest &request)const; void describeAuditSettingAsync(const Model::DescribeAuditSettingRequest& request, const DescribeAuditSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditSettingOutcomeCallable describeAuditSettingCallable(const Model::DescribeAuditSettingRequest& request) const; - CreateKeywordLibOutcome createKeywordLib(const Model::CreateKeywordLibRequest &request)const; - void createKeywordLibAsync(const Model::CreateKeywordLibRequest& request, const CreateKeywordLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateKeywordLibOutcomeCallable createKeywordLibCallable(const Model::CreateKeywordLibRequest& request) const; + AddFacesOutcome addFaces(const Model::AddFacesRequest &request)const; + void addFacesAsync(const Model::AddFacesRequest& request, const AddFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddFacesOutcomeCallable addFacesCallable(const Model::AddFacesRequest& request) const; UpdateOssIncrementCheckSettingOutcome updateOssIncrementCheckSetting(const Model::UpdateOssIncrementCheckSettingRequest &request)const; void updateOssIncrementCheckSettingAsync(const Model::UpdateOssIncrementCheckSettingRequest& request, const UpdateOssIncrementCheckSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateOssIncrementCheckSettingOutcomeCallable updateOssIncrementCheckSettingCallable(const Model::UpdateOssIncrementCheckSettingRequest& request) const; + CreateKeywordLibOutcome createKeywordLib(const Model::CreateKeywordLibRequest &request)const; + void createKeywordLibAsync(const Model::CreateKeywordLibRequest& request, const CreateKeywordLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateKeywordLibOutcomeCallable createKeywordLibCallable(const Model::CreateKeywordLibRequest& request) const; UploadCredentialsOutcome uploadCredentials(const Model::UploadCredentialsRequest &request)const; void uploadCredentialsAsync(const Model::UploadCredentialsRequest& request, const UploadCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UploadCredentialsOutcomeCallable uploadCredentialsCallable(const Model::UploadCredentialsRequest& request) const; @@ -1017,12 +1033,12 @@ namespace AlibabaCloud AddVideoDnaOutcome addVideoDna(const Model::AddVideoDnaRequest &request)const; void addVideoDnaAsync(const Model::AddVideoDnaRequest& request, const AddVideoDnaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddVideoDnaOutcomeCallable addVideoDnaCallable(const Model::AddVideoDnaRequest& request) const; - VideoSyncScanOutcome videoSyncScan(const Model::VideoSyncScanRequest &request)const; - void videoSyncScanAsync(const Model::VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - VideoSyncScanOutcomeCallable videoSyncScanCallable(const Model::VideoSyncScanRequest& request) const; DeleteNotificationContactsOutcome deleteNotificationContacts(const Model::DeleteNotificationContactsRequest &request)const; void deleteNotificationContactsAsync(const Model::DeleteNotificationContactsRequest& request, const DeleteNotificationContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNotificationContactsOutcomeCallable deleteNotificationContactsCallable(const Model::DeleteNotificationContactsRequest& request) const; + VideoSyncScanOutcome videoSyncScan(const Model::VideoSyncScanRequest &request)const; + void videoSyncScanAsync(const Model::VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VideoSyncScanOutcomeCallable videoSyncScanCallable(const Model::VideoSyncScanRequest& request) const; VideoAsyncScanResultsOutcome videoAsyncScanResults(const Model::VideoAsyncScanResultsRequest &request)const; void videoAsyncScanResultsAsync(const Model::VideoAsyncScanResultsRequest& request, const VideoAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VideoAsyncScanResultsOutcomeCallable videoAsyncScanResultsCallable(const Model::VideoAsyncScanResultsRequest& request) const; @@ -1053,18 +1069,18 @@ namespace AlibabaCloud AddSimilarityLibraryOutcome addSimilarityLibrary(const Model::AddSimilarityLibraryRequest &request)const; void addSimilarityLibraryAsync(const Model::AddSimilarityLibraryRequest& request, const AddSimilarityLibraryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddSimilarityLibraryOutcomeCallable addSimilarityLibraryCallable(const Model::AddSimilarityLibraryRequest& request) const; - AddVideoDnaGroupOutcome addVideoDnaGroup(const Model::AddVideoDnaGroupRequest &request)const; - void addVideoDnaGroupAsync(const Model::AddVideoDnaGroupRequest& request, const AddVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddVideoDnaGroupOutcomeCallable addVideoDnaGroupCallable(const Model::AddVideoDnaGroupRequest& request) const; CreateCdiBagOutcome createCdiBag(const Model::CreateCdiBagRequest &request)const; void createCdiBagAsync(const Model::CreateCdiBagRequest& request, const CreateCdiBagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCdiBagOutcomeCallable createCdiBagCallable(const Model::CreateCdiBagRequest& request) const; - UpdateKeywordLibOutcome updateKeywordLib(const Model::UpdateKeywordLibRequest &request)const; - void updateKeywordLibAsync(const Model::UpdateKeywordLibRequest& request, const UpdateKeywordLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateKeywordLibOutcomeCallable updateKeywordLibCallable(const Model::UpdateKeywordLibRequest& request) const; + AddVideoDnaGroupOutcome addVideoDnaGroup(const Model::AddVideoDnaGroupRequest &request)const; + void addVideoDnaGroupAsync(const Model::AddVideoDnaGroupRequest& request, const AddVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddVideoDnaGroupOutcomeCallable addVideoDnaGroupCallable(const Model::AddVideoDnaGroupRequest& request) const; ImageAsyncScanOutcome imageAsyncScan(const Model::ImageAsyncScanRequest &request)const; void imageAsyncScanAsync(const Model::ImageAsyncScanRequest& request, const ImageAsyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImageAsyncScanOutcomeCallable imageAsyncScanCallable(const Model::ImageAsyncScanRequest& request) const; + UpdateKeywordLibOutcome updateKeywordLib(const Model::UpdateKeywordLibRequest &request)const; + void updateKeywordLibAsync(const Model::UpdateKeywordLibRequest& request, const UpdateKeywordLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateKeywordLibOutcomeCallable updateKeywordLibCallable(const Model::UpdateKeywordLibRequest& request) const; ImageAsyncScanResultsOutcome imageAsyncScanResults(const Model::ImageAsyncScanResultsRequest &request)const; void imageAsyncScanResultsAsync(const Model::ImageAsyncScanResultsRequest& request, const ImageAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImageAsyncScanResultsOutcomeCallable imageAsyncScanResultsCallable(const Model::ImageAsyncScanResultsRequest& request) const; @@ -1074,24 +1090,24 @@ namespace AlibabaCloud ImageResultsOutcome imageResults(const Model::ImageResultsRequest &request)const; void imageResultsAsync(const Model::ImageResultsRequest& request, const ImageResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImageResultsOutcomeCallable imageResultsCallable(const Model::ImageResultsRequest& request) const; - VerifyWebsiteInstanceOutcome verifyWebsiteInstance(const Model::VerifyWebsiteInstanceRequest &request)const; - void verifyWebsiteInstanceAsync(const Model::VerifyWebsiteInstanceRequest& request, const VerifyWebsiteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - VerifyWebsiteInstanceOutcomeCallable verifyWebsiteInstanceCallable(const Model::VerifyWebsiteInstanceRequest& request) const; UpdateWebsiteInstanceKeyUrlOutcome updateWebsiteInstanceKeyUrl(const Model::UpdateWebsiteInstanceKeyUrlRequest &request)const; void updateWebsiteInstanceKeyUrlAsync(const Model::UpdateWebsiteInstanceKeyUrlRequest& request, const UpdateWebsiteInstanceKeyUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateWebsiteInstanceKeyUrlOutcomeCallable updateWebsiteInstanceKeyUrlCallable(const Model::UpdateWebsiteInstanceKeyUrlRequest& request) const; + VerifyWebsiteInstanceOutcome verifyWebsiteInstance(const Model::VerifyWebsiteInstanceRequest &request)const; + void verifyWebsiteInstanceAsync(const Model::VerifyWebsiteInstanceRequest& request, const VerifyWebsiteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VerifyWebsiteInstanceOutcomeCallable verifyWebsiteInstanceCallable(const Model::VerifyWebsiteInstanceRequest& request) const; SendVerifyCodeToPhoneOutcome sendVerifyCodeToPhone(const Model::SendVerifyCodeToPhoneRequest &request)const; void sendVerifyCodeToPhoneAsync(const Model::SendVerifyCodeToPhoneRequest& request, const SendVerifyCodeToPhoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendVerifyCodeToPhoneOutcomeCallable sendVerifyCodeToPhoneCallable(const Model::SendVerifyCodeToPhoneRequest& request) const; DescribeOssIncrementOverviewOutcome describeOssIncrementOverview(const Model::DescribeOssIncrementOverviewRequest &request)const; void describeOssIncrementOverviewAsync(const Model::DescribeOssIncrementOverviewRequest& request, const DescribeOssIncrementOverviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssIncrementOverviewOutcomeCallable describeOssIncrementOverviewCallable(const Model::DescribeOssIncrementOverviewRequest& request) const; - DescribeNotificationSettingOutcome describeNotificationSetting(const Model::DescribeNotificationSettingRequest &request)const; - void describeNotificationSettingAsync(const Model::DescribeNotificationSettingRequest& request, const DescribeNotificationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNotificationSettingOutcomeCallable describeNotificationSettingCallable(const Model::DescribeNotificationSettingRequest& request) const; DescribeAuditContentOutcome describeAuditContent(const Model::DescribeAuditContentRequest &request)const; void describeAuditContentAsync(const Model::DescribeAuditContentRequest& request, const DescribeAuditContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditContentOutcomeCallable describeAuditContentCallable(const Model::DescribeAuditContentRequest& request) const; + DescribeNotificationSettingOutcome describeNotificationSetting(const Model::DescribeNotificationSettingRequest &request)const; + void describeNotificationSettingAsync(const Model::DescribeNotificationSettingRequest& request, const DescribeNotificationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNotificationSettingOutcomeCallable describeNotificationSettingCallable(const Model::DescribeNotificationSettingRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/green/include/alibabacloud/green/GreenExport.h b/green/include/alibabacloud/green/GreenExport.h index 1a470dcac..dc5cd529d 100755 --- a/green/include/alibabacloud/green/GreenExport.h +++ b/green/include/alibabacloud/green/GreenExport.h @@ -1,32 +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_GREEN_GREENEXPORT_H_ -#define ALIBABACLOUD_GREEN_GREENEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_GREEN_LIBRARY) -# define ALIBABACLOUD_GREEN_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_GREEN_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_GREEN_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_GREENEXPORT_H_ +#define ALIBABACLOUD_GREEN_GREENEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_GREEN_LIBRARY) +# define ALIBABACLOUD_GREEN_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_GREEN_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_GREEN_EXPORT +#endif + #endif // !ALIBABACLOUD_GREEN_GREENEXPORT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/DescribeUserBizTypesRequest.h b/green/include/alibabacloud/green/model/DescribeUserBizTypesRequest.h new file mode 100644 index 000000000..0903200f1 --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeUserBizTypesRequest.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_GREEN_MODEL_DESCRIBEUSERBIZTYPESREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEUSERBIZTYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeUserBizTypesRequest : public RpcServiceRequest + { + + public: + DescribeUserBizTypesRequest(); + ~DescribeUserBizTypesRequest(); + + bool getCustomized()const; + void setCustomized(bool customized); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + bool customized_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEUSERBIZTYPESREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/DescribeUserBizTypesResult.h b/green/include/alibabacloud/green/model/DescribeUserBizTypesResult.h new file mode 100644 index 000000000..6b0d104de --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeUserBizTypesResult.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_GREEN_MODEL_DESCRIBEUSERBIZTYPESRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEUSERBIZTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeUserBizTypesResult : public ServiceResult + { + public: + struct Item + { + std::string sourceBizType; + bool gray; + std::string bizType; + std::string source; + }; + + + DescribeUserBizTypesResult(); + explicit DescribeUserBizTypesResult(const std::string &payload); + ~DescribeUserBizTypesResult(); + std::vector getBizTypeList()const; + std::vector getBizTypeListImport()const; + + protected: + void parse(const std::string &payload); + private: + std::vector bizTypeList_; + std::vector bizTypeListImport_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEUSERBIZTYPESRESULT_H_ \ No newline at end of file diff --git a/green/src/GreenClient.cc b/green/src/GreenClient.cc index c5204f94d..b8a5a780f 100755 --- a/green/src/GreenClient.cc +++ b/green/src/GreenClient.cc @@ -231,42 +231,6 @@ GreenClient::UpdateAppPackageOutcomeCallable GreenClient::updateAppPackageCallab return task->get_future(); } -GreenClient::DeleteVideoDnaGroupOutcome GreenClient::deleteVideoDnaGroup(const DeleteVideoDnaGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVideoDnaGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVideoDnaGroupOutcome(DeleteVideoDnaGroupResult(outcome.result())); - else - return DeleteVideoDnaGroupOutcome(outcome.error()); -} - -void GreenClient::deleteVideoDnaGroupAsync(const DeleteVideoDnaGroupRequest& request, const DeleteVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVideoDnaGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::DeleteVideoDnaGroupOutcomeCallable GreenClient::deleteVideoDnaGroupCallable(const DeleteVideoDnaGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVideoDnaGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::UpdateOssCallbackSettingOutcome GreenClient::updateOssCallbackSetting(const UpdateOssCallbackSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +267,42 @@ GreenClient::UpdateOssCallbackSettingOutcomeCallable GreenClient::updateOssCallb return task->get_future(); } +GreenClient::DeleteVideoDnaGroupOutcome GreenClient::deleteVideoDnaGroup(const DeleteVideoDnaGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoDnaGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoDnaGroupOutcome(DeleteVideoDnaGroupResult(outcome.result())); + else + return DeleteVideoDnaGroupOutcome(outcome.error()); +} + +void GreenClient::deleteVideoDnaGroupAsync(const DeleteVideoDnaGroupRequest& request, const DeleteVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideoDnaGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DeleteVideoDnaGroupOutcomeCallable GreenClient::deleteVideoDnaGroupCallable(const DeleteVideoDnaGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideoDnaGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeWebsiteInstanceKeyUrlOutcome GreenClient::describeWebsiteInstanceKeyUrl(const DescribeWebsiteInstanceKeyUrlRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,42 +339,6 @@ GreenClient::DescribeWebsiteInstanceKeyUrlOutcomeCallable GreenClient::describeW return task->get_future(); } -GreenClient::DeleteVideoDnaOutcome GreenClient::deleteVideoDna(const DeleteVideoDnaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVideoDnaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVideoDnaOutcome(DeleteVideoDnaResult(outcome.result())); - else - return DeleteVideoDnaOutcome(outcome.error()); -} - -void GreenClient::deleteVideoDnaAsync(const DeleteVideoDnaRequest& request, const DeleteVideoDnaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVideoDna(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::DeleteVideoDnaOutcomeCallable GreenClient::deleteVideoDnaCallable(const DeleteVideoDnaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVideoDna(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::RefundCdiBaseBagOutcome GreenClient::refundCdiBaseBag(const RefundCdiBaseBagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +375,42 @@ GreenClient::RefundCdiBaseBagOutcomeCallable GreenClient::refundCdiBaseBagCallab return task->get_future(); } +GreenClient::DeleteVideoDnaOutcome GreenClient::deleteVideoDna(const DeleteVideoDnaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoDnaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoDnaOutcome(DeleteVideoDnaResult(outcome.result())); + else + return DeleteVideoDnaOutcome(outcome.error()); +} + +void GreenClient::deleteVideoDnaAsync(const DeleteVideoDnaRequest& request, const DeleteVideoDnaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideoDna(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DeleteVideoDnaOutcomeCallable GreenClient::deleteVideoDnaCallable(const DeleteVideoDnaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideoDna(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::UpdateBizTypeSettingOutcome GreenClient::updateBizTypeSetting(const UpdateBizTypeSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +483,42 @@ GreenClient::FileAsyncScanOutcomeCallable GreenClient::fileAsyncScanCallable(con return task->get_future(); } +GreenClient::DetectFaceOutcome GreenClient::detectFace(const DetectFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectFaceOutcome(DetectFaceResult(outcome.result())); + else + return DetectFaceOutcome(outcome.error()); +} + +void GreenClient::detectFaceAsync(const DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DetectFaceOutcomeCallable GreenClient::detectFaceCallable(const DetectFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeOssResultItemsOutcome GreenClient::describeOssResultItems(const DescribeOssResultItemsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,42 +555,6 @@ GreenClient::DescribeOssResultItemsOutcomeCallable GreenClient::describeOssResul return task->get_future(); } -GreenClient::UpdateWebsiteInstanceStatusOutcome GreenClient::updateWebsiteInstanceStatus(const UpdateWebsiteInstanceStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateWebsiteInstanceStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateWebsiteInstanceStatusOutcome(UpdateWebsiteInstanceStatusResult(outcome.result())); - else - return UpdateWebsiteInstanceStatusOutcome(outcome.error()); -} - -void GreenClient::updateWebsiteInstanceStatusAsync(const UpdateWebsiteInstanceStatusRequest& request, const UpdateWebsiteInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateWebsiteInstanceStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::UpdateWebsiteInstanceStatusOutcomeCallable GreenClient::updateWebsiteInstanceStatusCallable(const UpdateWebsiteInstanceStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateWebsiteInstanceStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::DescribeBizTypesOutcome GreenClient::describeBizTypes(const DescribeBizTypesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +591,42 @@ GreenClient::DescribeBizTypesOutcomeCallable GreenClient::describeBizTypesCallab return task->get_future(); } +GreenClient::UpdateWebsiteInstanceStatusOutcome GreenClient::updateWebsiteInstanceStatus(const UpdateWebsiteInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateWebsiteInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateWebsiteInstanceStatusOutcome(UpdateWebsiteInstanceStatusResult(outcome.result())); + else + return UpdateWebsiteInstanceStatusOutcome(outcome.error()); +} + +void GreenClient::updateWebsiteInstanceStatusAsync(const UpdateWebsiteInstanceStatusRequest& request, const UpdateWebsiteInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateWebsiteInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::UpdateWebsiteInstanceStatusOutcomeCallable GreenClient::updateWebsiteInstanceStatusCallable(const UpdateWebsiteInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateWebsiteInstanceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::RefundCdiBagOutcome GreenClient::refundCdiBag(const RefundCdiBagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +735,42 @@ GreenClient::CreateCdiBaseBagOutcomeCallable GreenClient::createCdiBaseBagCallab return task->get_future(); } +GreenClient::DeleteKeywordLibOutcome GreenClient::deleteKeywordLib(const DeleteKeywordLibRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteKeywordLibOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteKeywordLibOutcome(DeleteKeywordLibResult(outcome.result())); + else + return DeleteKeywordLibOutcome(outcome.error()); +} + +void GreenClient::deleteKeywordLibAsync(const DeleteKeywordLibRequest& request, const DeleteKeywordLibAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteKeywordLib(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DeleteKeywordLibOutcomeCallable GreenClient::deleteKeywordLibCallable(const DeleteKeywordLibRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteKeywordLib(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::VerifyPhoneOutcome GreenClient::verifyPhone(const VerifyPhoneRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,42 +843,6 @@ GreenClient::ImageDetectionOutcomeCallable GreenClient::imageDetectionCallable(c return task->get_future(); } -GreenClient::DeleteKeywordLibOutcome GreenClient::deleteKeywordLib(const DeleteKeywordLibRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteKeywordLibOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteKeywordLibOutcome(DeleteKeywordLibResult(outcome.result())); - else - return DeleteKeywordLibOutcome(outcome.error()); -} - -void GreenClient::deleteKeywordLibAsync(const DeleteKeywordLibRequest& request, const DeleteKeywordLibAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteKeywordLib(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::DeleteKeywordLibOutcomeCallable GreenClient::deleteKeywordLibCallable(const DeleteKeywordLibRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteKeywordLib(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::ImportKeywordsOutcome GreenClient::importKeywords(const ImportKeywordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1167,42 @@ GreenClient::UpdateNotificationSettingOutcomeCallable GreenClient::updateNotific return task->get_future(); } +GreenClient::DescribeUserBizTypesOutcome GreenClient::describeUserBizTypes(const DescribeUserBizTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserBizTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserBizTypesOutcome(DescribeUserBizTypesResult(outcome.result())); + else + return DescribeUserBizTypesOutcome(outcome.error()); +} + +void GreenClient::describeUserBizTypesAsync(const DescribeUserBizTypesRequest& request, const DescribeUserBizTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserBizTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DescribeUserBizTypesOutcomeCallable GreenClient::describeUserBizTypesCallable(const DescribeUserBizTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserBizTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeAuditContentItemOutcome GreenClient::describeAuditContentItem(const DescribeAuditContentItemRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,42 +1239,6 @@ GreenClient::DescribeAuditContentItemOutcomeCallable GreenClient::describeAuditC return task->get_future(); } -GreenClient::SearchPersonOutcome GreenClient::searchPerson(const SearchPersonRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchPersonOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchPersonOutcome(SearchPersonResult(outcome.result())); - else - return SearchPersonOutcome(outcome.error()); -} - -void GreenClient::searchPersonAsync(const SearchPersonRequest& request, const SearchPersonAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchPerson(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::SearchPersonOutcomeCallable GreenClient::searchPersonCallable(const SearchPersonRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchPerson(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::MarkOssResultOutcome GreenClient::markOssResult(const MarkOssResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1275,42 @@ GreenClient::MarkOssResultOutcomeCallable GreenClient::markOssResultCallable(con return task->get_future(); } +GreenClient::SearchPersonOutcome GreenClient::searchPerson(const SearchPersonRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchPersonOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchPersonOutcome(SearchPersonResult(outcome.result())); + else + return SearchPersonOutcome(outcome.error()); +} + +void GreenClient::searchPersonAsync(const SearchPersonRequest& request, const SearchPersonAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchPerson(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::SearchPersonOutcomeCallable GreenClient::searchPersonCallable(const SearchPersonRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchPerson(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeAppInfoOutcome GreenClient::describeAppInfo(const DescribeAppInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,42 +2571,6 @@ GreenClient::UpgradeCdiBaseBagOutcomeCallable GreenClient::upgradeCdiBaseBagCall return task->get_future(); } -GreenClient::DescribeUserStatusOutcome GreenClient::describeUserStatus(const DescribeUserStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result())); - else - return DescribeUserStatusOutcome(outcome.error()); -} - -void GreenClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::DescribeUserStatusOutcomeCallable GreenClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::GetAddVideoDnaResultsOutcome GreenClient::getAddVideoDnaResults(const GetAddVideoDnaResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,6 +2607,42 @@ GreenClient::GetAddVideoDnaResultsOutcomeCallable GreenClient::getAddVideoDnaRes return task->get_future(); } +GreenClient::DescribeUserStatusOutcome GreenClient::describeUserStatus(const DescribeUserStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result())); + else + return DescribeUserStatusOutcome(outcome.error()); +} + +void GreenClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DescribeUserStatusOutcomeCallable GreenClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeKeywordOutcome GreenClient::describeKeyword(const DescribeKeywordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,42 +2679,6 @@ GreenClient::DescribeKeywordOutcomeCallable GreenClient::describeKeywordCallable return task->get_future(); } -GreenClient::AddFacesOutcome GreenClient::addFaces(const AddFacesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddFacesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddFacesOutcome(AddFacesResult(outcome.result())); - else - return AddFacesOutcome(outcome.error()); -} - -void GreenClient::addFacesAsync(const AddFacesRequest& request, const AddFacesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addFaces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::AddFacesOutcomeCallable GreenClient::addFacesCallable(const AddFacesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addFaces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::DescribeAuditSettingOutcome GreenClient::describeAuditSetting(const DescribeAuditSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,36 +2715,36 @@ GreenClient::DescribeAuditSettingOutcomeCallable GreenClient::describeAuditSetti return task->get_future(); } -GreenClient::CreateKeywordLibOutcome GreenClient::createKeywordLib(const CreateKeywordLibRequest &request) const +GreenClient::AddFacesOutcome GreenClient::addFaces(const AddFacesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateKeywordLibOutcome(endpointOutcome.error()); + return AddFacesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateKeywordLibOutcome(CreateKeywordLibResult(outcome.result())); + return AddFacesOutcome(AddFacesResult(outcome.result())); else - return CreateKeywordLibOutcome(outcome.error()); + return AddFacesOutcome(outcome.error()); } -void GreenClient::createKeywordLibAsync(const CreateKeywordLibRequest& request, const CreateKeywordLibAsyncHandler& handler, const std::shared_ptr& context) const +void GreenClient::addFacesAsync(const AddFacesRequest& request, const AddFacesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createKeywordLib(request), context); + handler(this, request, addFaces(request), context); }; asyncExecute(new Runnable(fn)); } -GreenClient::CreateKeywordLibOutcomeCallable GreenClient::createKeywordLibCallable(const CreateKeywordLibRequest &request) const +GreenClient::AddFacesOutcomeCallable GreenClient::addFacesCallable(const AddFacesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createKeywordLib(request); + return this->addFaces(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2751,6 +2787,42 @@ GreenClient::UpdateOssIncrementCheckSettingOutcomeCallable GreenClient::updateOs return task->get_future(); } +GreenClient::CreateKeywordLibOutcome GreenClient::createKeywordLib(const CreateKeywordLibRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateKeywordLibOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateKeywordLibOutcome(CreateKeywordLibResult(outcome.result())); + else + return CreateKeywordLibOutcome(outcome.error()); +} + +void GreenClient::createKeywordLibAsync(const CreateKeywordLibRequest& request, const CreateKeywordLibAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createKeywordLib(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::CreateKeywordLibOutcomeCallable GreenClient::createKeywordLibCallable(const CreateKeywordLibRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createKeywordLib(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::UploadCredentialsOutcome GreenClient::uploadCredentials(const UploadCredentialsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,42 +3975,6 @@ GreenClient::AddVideoDnaOutcomeCallable GreenClient::addVideoDnaCallable(const A return task->get_future(); } -GreenClient::VideoSyncScanOutcome GreenClient::videoSyncScan(const VideoSyncScanRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return VideoSyncScanOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return VideoSyncScanOutcome(VideoSyncScanResult(outcome.result())); - else - return VideoSyncScanOutcome(outcome.error()); -} - -void GreenClient::videoSyncScanAsync(const VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, videoSyncScan(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::VideoSyncScanOutcomeCallable GreenClient::videoSyncScanCallable(const VideoSyncScanRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->videoSyncScan(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::DeleteNotificationContactsOutcome GreenClient::deleteNotificationContacts(const DeleteNotificationContactsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3975,6 +4011,42 @@ GreenClient::DeleteNotificationContactsOutcomeCallable GreenClient::deleteNotifi return task->get_future(); } +GreenClient::VideoSyncScanOutcome GreenClient::videoSyncScan(const VideoSyncScanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VideoSyncScanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VideoSyncScanOutcome(VideoSyncScanResult(outcome.result())); + else + return VideoSyncScanOutcome(outcome.error()); +} + +void GreenClient::videoSyncScanAsync(const VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, videoSyncScan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::VideoSyncScanOutcomeCallable GreenClient::videoSyncScanCallable(const VideoSyncScanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->videoSyncScan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::VideoAsyncScanResultsOutcome GreenClient::videoAsyncScanResults(const VideoAsyncScanResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4335,42 +4407,6 @@ GreenClient::AddSimilarityLibraryOutcomeCallable GreenClient::addSimilarityLibra return task->get_future(); } -GreenClient::AddVideoDnaGroupOutcome GreenClient::addVideoDnaGroup(const AddVideoDnaGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddVideoDnaGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddVideoDnaGroupOutcome(AddVideoDnaGroupResult(outcome.result())); - else - return AddVideoDnaGroupOutcome(outcome.error()); -} - -void GreenClient::addVideoDnaGroupAsync(const AddVideoDnaGroupRequest& request, const AddVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addVideoDnaGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::AddVideoDnaGroupOutcomeCallable GreenClient::addVideoDnaGroupCallable(const AddVideoDnaGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addVideoDnaGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::CreateCdiBagOutcome GreenClient::createCdiBag(const CreateCdiBagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,36 +4443,36 @@ GreenClient::CreateCdiBagOutcomeCallable GreenClient::createCdiBagCallable(const return task->get_future(); } -GreenClient::UpdateKeywordLibOutcome GreenClient::updateKeywordLib(const UpdateKeywordLibRequest &request) const +GreenClient::AddVideoDnaGroupOutcome GreenClient::addVideoDnaGroup(const AddVideoDnaGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateKeywordLibOutcome(endpointOutcome.error()); + return AddVideoDnaGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateKeywordLibOutcome(UpdateKeywordLibResult(outcome.result())); + return AddVideoDnaGroupOutcome(AddVideoDnaGroupResult(outcome.result())); else - return UpdateKeywordLibOutcome(outcome.error()); + return AddVideoDnaGroupOutcome(outcome.error()); } -void GreenClient::updateKeywordLibAsync(const UpdateKeywordLibRequest& request, const UpdateKeywordLibAsyncHandler& handler, const std::shared_ptr& context) const +void GreenClient::addVideoDnaGroupAsync(const AddVideoDnaGroupRequest& request, const AddVideoDnaGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateKeywordLib(request), context); + handler(this, request, addVideoDnaGroup(request), context); }; asyncExecute(new Runnable(fn)); } -GreenClient::UpdateKeywordLibOutcomeCallable GreenClient::updateKeywordLibCallable(const UpdateKeywordLibRequest &request) const +GreenClient::AddVideoDnaGroupOutcomeCallable GreenClient::addVideoDnaGroupCallable(const AddVideoDnaGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateKeywordLib(request); + return this->addVideoDnaGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4479,6 +4515,42 @@ GreenClient::ImageAsyncScanOutcomeCallable GreenClient::imageAsyncScanCallable(c return task->get_future(); } +GreenClient::UpdateKeywordLibOutcome GreenClient::updateKeywordLib(const UpdateKeywordLibRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateKeywordLibOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateKeywordLibOutcome(UpdateKeywordLibResult(outcome.result())); + else + return UpdateKeywordLibOutcome(outcome.error()); +} + +void GreenClient::updateKeywordLibAsync(const UpdateKeywordLibRequest& request, const UpdateKeywordLibAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateKeywordLib(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::UpdateKeywordLibOutcomeCallable GreenClient::updateKeywordLibCallable(const UpdateKeywordLibRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateKeywordLib(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::ImageAsyncScanResultsOutcome GreenClient::imageAsyncScanResults(const ImageAsyncScanResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4587,42 +4659,6 @@ GreenClient::ImageResultsOutcomeCallable GreenClient::imageResultsCallable(const return task->get_future(); } -GreenClient::VerifyWebsiteInstanceOutcome GreenClient::verifyWebsiteInstance(const VerifyWebsiteInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return VerifyWebsiteInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return VerifyWebsiteInstanceOutcome(VerifyWebsiteInstanceResult(outcome.result())); - else - return VerifyWebsiteInstanceOutcome(outcome.error()); -} - -void GreenClient::verifyWebsiteInstanceAsync(const VerifyWebsiteInstanceRequest& request, const VerifyWebsiteInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, verifyWebsiteInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::VerifyWebsiteInstanceOutcomeCallable GreenClient::verifyWebsiteInstanceCallable(const VerifyWebsiteInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->verifyWebsiteInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::UpdateWebsiteInstanceKeyUrlOutcome GreenClient::updateWebsiteInstanceKeyUrl(const UpdateWebsiteInstanceKeyUrlRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4659,6 +4695,42 @@ GreenClient::UpdateWebsiteInstanceKeyUrlOutcomeCallable GreenClient::updateWebsi return task->get_future(); } +GreenClient::VerifyWebsiteInstanceOutcome GreenClient::verifyWebsiteInstance(const VerifyWebsiteInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VerifyWebsiteInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VerifyWebsiteInstanceOutcome(VerifyWebsiteInstanceResult(outcome.result())); + else + return VerifyWebsiteInstanceOutcome(outcome.error()); +} + +void GreenClient::verifyWebsiteInstanceAsync(const VerifyWebsiteInstanceRequest& request, const VerifyWebsiteInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, verifyWebsiteInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::VerifyWebsiteInstanceOutcomeCallable GreenClient::verifyWebsiteInstanceCallable(const VerifyWebsiteInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->verifyWebsiteInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::SendVerifyCodeToPhoneOutcome GreenClient::sendVerifyCodeToPhone(const SendVerifyCodeToPhoneRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4731,42 +4803,6 @@ GreenClient::DescribeOssIncrementOverviewOutcomeCallable GreenClient::describeOs return task->get_future(); } -GreenClient::DescribeNotificationSettingOutcome GreenClient::describeNotificationSetting(const DescribeNotificationSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNotificationSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNotificationSettingOutcome(DescribeNotificationSettingResult(outcome.result())); - else - return DescribeNotificationSettingOutcome(outcome.error()); -} - -void GreenClient::describeNotificationSettingAsync(const DescribeNotificationSettingRequest& request, const DescribeNotificationSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNotificationSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::DescribeNotificationSettingOutcomeCallable GreenClient::describeNotificationSettingCallable(const DescribeNotificationSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNotificationSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::DescribeAuditContentOutcome GreenClient::describeAuditContent(const DescribeAuditContentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4803,3 +4839,39 @@ GreenClient::DescribeAuditContentOutcomeCallable GreenClient::describeAuditConte return task->get_future(); } +GreenClient::DescribeNotificationSettingOutcome GreenClient::describeNotificationSetting(const DescribeNotificationSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNotificationSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNotificationSettingOutcome(DescribeNotificationSettingResult(outcome.result())); + else + return DescribeNotificationSettingOutcome(outcome.error()); +} + +void GreenClient::describeNotificationSettingAsync(const DescribeNotificationSettingRequest& request, const DescribeNotificationSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNotificationSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DescribeNotificationSettingOutcomeCallable GreenClient::describeNotificationSettingCallable(const DescribeNotificationSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNotificationSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/green/src/model/CreatCustomOcrTemplateResult.cc b/green/src/model/CreatCustomOcrTemplateResult.cc index 26f6d7892..caf6fa280 100644 --- a/green/src/model/CreatCustomOcrTemplateResult.cc +++ b/green/src/model/CreatCustomOcrTemplateResult.cc @@ -35,10 +35,13 @@ CreatCustomOcrTemplateResult::~CreatCustomOcrTemplateResult() void CreatCustomOcrTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/CreateBizTypeResult.cc b/green/src/model/CreateBizTypeResult.cc index 8450f61b1..201986742 100644 --- a/green/src/model/CreateBizTypeResult.cc +++ b/green/src/model/CreateBizTypeResult.cc @@ -35,10 +35,13 @@ CreateBizTypeResult::~CreateBizTypeResult() void CreateBizTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/CreateCdiBagResult.cc b/green/src/model/CreateCdiBagResult.cc index 87e9ee7b9..81a24f8a1 100644 --- a/green/src/model/CreateCdiBagResult.cc +++ b/green/src/model/CreateCdiBagResult.cc @@ -35,10 +35,13 @@ CreateCdiBagResult::~CreateCdiBagResult() void CreateCdiBagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceIds = value["InstanceIds"]["String"]; for (const auto &item : allInstanceIds) diff --git a/green/src/model/CreateCdiBaseBagResult.cc b/green/src/model/CreateCdiBaseBagResult.cc index e37da8904..336a1eb61 100644 --- a/green/src/model/CreateCdiBaseBagResult.cc +++ b/green/src/model/CreateCdiBaseBagResult.cc @@ -35,10 +35,13 @@ CreateCdiBaseBagResult::~CreateCdiBaseBagResult() void CreateCdiBaseBagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/green/src/model/CreateImageLibResult.cc b/green/src/model/CreateImageLibResult.cc index 00dc75b6a..da60683a4 100644 --- a/green/src/model/CreateImageLibResult.cc +++ b/green/src/model/CreateImageLibResult.cc @@ -35,10 +35,13 @@ CreateImageLibResult::~CreateImageLibResult() void CreateImageLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/CreateKeywordLibResult.cc b/green/src/model/CreateKeywordLibResult.cc index 58e5cc24b..d944f0170 100644 --- a/green/src/model/CreateKeywordLibResult.cc +++ b/green/src/model/CreateKeywordLibResult.cc @@ -35,10 +35,13 @@ CreateKeywordLibResult::~CreateKeywordLibResult() void CreateKeywordLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = value["Id"].asString(); diff --git a/green/src/model/CreateKeywordResult.cc b/green/src/model/CreateKeywordResult.cc index 349fb6811..8f262e6b1 100644 --- a/green/src/model/CreateKeywordResult.cc +++ b/green/src/model/CreateKeywordResult.cc @@ -35,10 +35,13 @@ CreateKeywordResult::~CreateKeywordResult() void CreateKeywordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInvalidKeywordList = value["InvalidKeywordList"]["StringItem"]; for (const auto &item : allInvalidKeywordList) diff --git a/green/src/model/CreateWebSiteInstanceResult.cc b/green/src/model/CreateWebSiteInstanceResult.cc index 06f4c7b44..e06c6b7bd 100644 --- a/green/src/model/CreateWebSiteInstanceResult.cc +++ b/green/src/model/CreateWebSiteInstanceResult.cc @@ -35,10 +35,13 @@ CreateWebSiteInstanceResult::~CreateWebSiteInstanceResult() void CreateWebSiteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceIds = value["InstanceIds"]["String"]; for (const auto &item : allInstanceIds) diff --git a/green/src/model/CreateWebsiteIndexPageBaselineResult.cc b/green/src/model/CreateWebsiteIndexPageBaselineResult.cc index 56f574ec5..5a221f1fc 100644 --- a/green/src/model/CreateWebsiteIndexPageBaselineResult.cc +++ b/green/src/model/CreateWebsiteIndexPageBaselineResult.cc @@ -35,10 +35,13 @@ CreateWebsiteIndexPageBaselineResult::~CreateWebsiteIndexPageBaselineResult() void CreateWebsiteIndexPageBaselineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/DeleteCustomOcrTemplateResult.cc b/green/src/model/DeleteCustomOcrTemplateResult.cc index 59ff6012b..487f9d5f5 100644 --- a/green/src/model/DeleteCustomOcrTemplateResult.cc +++ b/green/src/model/DeleteCustomOcrTemplateResult.cc @@ -35,10 +35,13 @@ DeleteCustomOcrTemplateResult::~DeleteCustomOcrTemplateResult() void DeleteCustomOcrTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/DeleteImageFromLibResult.cc b/green/src/model/DeleteImageFromLibResult.cc index 19271141f..2531d1970 100644 --- a/green/src/model/DeleteImageFromLibResult.cc +++ b/green/src/model/DeleteImageFromLibResult.cc @@ -35,10 +35,13 @@ DeleteImageFromLibResult::~DeleteImageFromLibResult() void DeleteImageFromLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/DeleteImageLibResult.cc b/green/src/model/DeleteImageLibResult.cc index 7c381ab7a..c8d3d3d68 100644 --- a/green/src/model/DeleteImageLibResult.cc +++ b/green/src/model/DeleteImageLibResult.cc @@ -35,10 +35,13 @@ DeleteImageLibResult::~DeleteImageLibResult() void DeleteImageLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/DeleteKeywordLibResult.cc b/green/src/model/DeleteKeywordLibResult.cc index 829f54e68..c51b56da8 100644 --- a/green/src/model/DeleteKeywordLibResult.cc +++ b/green/src/model/DeleteKeywordLibResult.cc @@ -35,10 +35,13 @@ DeleteKeywordLibResult::~DeleteKeywordLibResult() void DeleteKeywordLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/DeleteKeywordResult.cc b/green/src/model/DeleteKeywordResult.cc index fb1cdc388..bbf1f3790 100644 --- a/green/src/model/DeleteKeywordResult.cc +++ b/green/src/model/DeleteKeywordResult.cc @@ -35,10 +35,13 @@ DeleteKeywordResult::~DeleteKeywordResult() void DeleteKeywordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/DeleteNotificationContactsResult.cc b/green/src/model/DeleteNotificationContactsResult.cc index fad87df0f..f97718195 100644 --- a/green/src/model/DeleteNotificationContactsResult.cc +++ b/green/src/model/DeleteNotificationContactsResult.cc @@ -35,10 +35,13 @@ DeleteNotificationContactsResult::~DeleteNotificationContactsResult() void DeleteNotificationContactsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/DescribeAppInfoResult.cc b/green/src/model/DescribeAppInfoResult.cc index b5a361853..14689365f 100644 --- a/green/src/model/DescribeAppInfoResult.cc +++ b/green/src/model/DescribeAppInfoResult.cc @@ -35,10 +35,13 @@ DescribeAppInfoResult::~DescribeAppInfoResult() void DescribeAppInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppInfoList = value["AppInfoList"]["AppInfo"]; for (auto value : allAppInfoList) diff --git a/green/src/model/DescribeAuditContentItemResult.cc b/green/src/model/DescribeAuditContentItemResult.cc index 18d8e465b..5def3818d 100644 --- a/green/src/model/DescribeAuditContentItemResult.cc +++ b/green/src/model/DescribeAuditContentItemResult.cc @@ -35,10 +35,13 @@ DescribeAuditContentItemResult::~DescribeAuditContentItemResult() void DescribeAuditContentItemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAuditContentItemList = value["AuditContentItemList"]["AuditContentItem"]; for (auto value : allAuditContentItemList) diff --git a/green/src/model/DescribeAuditContentResult.cc b/green/src/model/DescribeAuditContentResult.cc index a6af26956..353676638 100644 --- a/green/src/model/DescribeAuditContentResult.cc +++ b/green/src/model/DescribeAuditContentResult.cc @@ -35,10 +35,13 @@ DescribeAuditContentResult::~DescribeAuditContentResult() void DescribeAuditContentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAuditContentList = value["AuditContentList"]["AuditContent"]; for (auto value : allAuditContentList) diff --git a/green/src/model/DescribeAuditSettingResult.cc b/green/src/model/DescribeAuditSettingResult.cc index aa4e8f6ba..f3a103913 100644 --- a/green/src/model/DescribeAuditSettingResult.cc +++ b/green/src/model/DescribeAuditSettingResult.cc @@ -35,10 +35,13 @@ DescribeAuditSettingResult::~DescribeAuditSettingResult() void DescribeAuditSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto auditRangeNode = value["AuditRange"]; if(!auditRangeNode["block"].isNull()) diff --git a/green/src/model/DescribeBizTypeSettingResult.cc b/green/src/model/DescribeBizTypeSettingResult.cc index d1832e5cf..2a5adb6c5 100644 --- a/green/src/model/DescribeBizTypeSettingResult.cc +++ b/green/src/model/DescribeBizTypeSettingResult.cc @@ -35,10 +35,13 @@ DescribeBizTypeSettingResult::~DescribeBizTypeSettingResult() void DescribeBizTypeSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto terrorismNode = value["Terrorism"]; auto allCategories = terrorismNode["Categories"]["category"]; diff --git a/green/src/model/DescribeBizTypesResult.cc b/green/src/model/DescribeBizTypesResult.cc index 59bd50721..a45a65ab8 100644 --- a/green/src/model/DescribeBizTypesResult.cc +++ b/green/src/model/DescribeBizTypesResult.cc @@ -35,10 +35,13 @@ DescribeBizTypesResult::~DescribeBizTypesResult() void DescribeBizTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBizTypeList = value["BizTypeList"]["item"]; for (const auto &item : allBizTypeList) diff --git a/green/src/model/DescribeCustomOcrTemplateResult.cc b/green/src/model/DescribeCustomOcrTemplateResult.cc index c6c796ecb..903e19076 100644 --- a/green/src/model/DescribeCustomOcrTemplateResult.cc +++ b/green/src/model/DescribeCustomOcrTemplateResult.cc @@ -35,10 +35,13 @@ DescribeCustomOcrTemplateResult::~DescribeCustomOcrTemplateResult() void DescribeCustomOcrTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOcrTemplateList = value["OcrTemplateList"]["OcrTemplate"]; for (auto value : allOcrTemplateList) diff --git a/green/src/model/DescribeImageFromLibResult.cc b/green/src/model/DescribeImageFromLibResult.cc index cde819b3c..0ddce9ed3 100644 --- a/green/src/model/DescribeImageFromLibResult.cc +++ b/green/src/model/DescribeImageFromLibResult.cc @@ -35,10 +35,13 @@ DescribeImageFromLibResult::~DescribeImageFromLibResult() void DescribeImageFromLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allImageFromLibList = value["ImageFromLibList"]["ImageFromLib"]; for (auto value : allImageFromLibList) diff --git a/green/src/model/DescribeImageLibResult.cc b/green/src/model/DescribeImageLibResult.cc index e08d5a2eb..dca86e3b8 100644 --- a/green/src/model/DescribeImageLibResult.cc +++ b/green/src/model/DescribeImageLibResult.cc @@ -35,10 +35,13 @@ DescribeImageLibResult::~DescribeImageLibResult() void DescribeImageLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allImageLibList = value["ImageLibList"]["ImageLib"]; for (auto value : allImageLibList) diff --git a/green/src/model/DescribeImageUploadInfoResult.cc b/green/src/model/DescribeImageUploadInfoResult.cc index 684ff539c..173bdb532 100644 --- a/green/src/model/DescribeImageUploadInfoResult.cc +++ b/green/src/model/DescribeImageUploadInfoResult.cc @@ -35,10 +35,13 @@ DescribeImageUploadInfoResult::~DescribeImageUploadInfoResult() void DescribeImageUploadInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Accessid"].isNull()) accessid_ = value["Accessid"].asString(); diff --git a/green/src/model/DescribeKeywordLibResult.cc b/green/src/model/DescribeKeywordLibResult.cc index 5d2184d78..3538d1e18 100644 --- a/green/src/model/DescribeKeywordLibResult.cc +++ b/green/src/model/DescribeKeywordLibResult.cc @@ -35,10 +35,13 @@ DescribeKeywordLibResult::~DescribeKeywordLibResult() void DescribeKeywordLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allKeywordLibList = value["KeywordLibList"]["KeywordLib"]; for (auto value : allKeywordLibList) diff --git a/green/src/model/DescribeKeywordResult.cc b/green/src/model/DescribeKeywordResult.cc index b90ef00a4..d8a70c25f 100644 --- a/green/src/model/DescribeKeywordResult.cc +++ b/green/src/model/DescribeKeywordResult.cc @@ -35,10 +35,13 @@ DescribeKeywordResult::~DescribeKeywordResult() void DescribeKeywordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allKeywordList = value["KeywordList"]["Keyword"]; for (auto value : allKeywordList) diff --git a/green/src/model/DescribeNotificationSettingResult.cc b/green/src/model/DescribeNotificationSettingResult.cc index 1b27273c1..4c061cdd4 100644 --- a/green/src/model/DescribeNotificationSettingResult.cc +++ b/green/src/model/DescribeNotificationSettingResult.cc @@ -35,10 +35,13 @@ DescribeNotificationSettingResult::~DescribeNotificationSettingResult() void DescribeNotificationSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealtimeMessageList = value["RealtimeMessageList"]["StringItem"]; for (const auto &item : allRealtimeMessageList) diff --git a/green/src/model/DescribeOpenApiUsageResult.cc b/green/src/model/DescribeOpenApiUsageResult.cc index 8954af5f3..1cacefdec 100644 --- a/green/src/model/DescribeOpenApiUsageResult.cc +++ b/green/src/model/DescribeOpenApiUsageResult.cc @@ -35,10 +35,13 @@ DescribeOpenApiUsageResult::~DescribeOpenApiUsageResult() void DescribeOpenApiUsageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOpenApiUsageList = value["OpenApiUsageList"]["OpenApiUsage"]; for (auto value : allOpenApiUsageList) diff --git a/green/src/model/DescribeOssCallbackSettingResult.cc b/green/src/model/DescribeOssCallbackSettingResult.cc index 0f4bf8bf1..106fbdb0d 100644 --- a/green/src/model/DescribeOssCallbackSettingResult.cc +++ b/green/src/model/DescribeOssCallbackSettingResult.cc @@ -35,10 +35,13 @@ DescribeOssCallbackSettingResult::~DescribeOssCallbackSettingResult() void DescribeOssCallbackSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScanCallbackSuggestions = value["ScanCallbackSuggestions"]["ScanCallbackSuggestion"]; for (const auto &item : allScanCallbackSuggestions) diff --git a/green/src/model/DescribeOssIncrementCheckSettingResult.cc b/green/src/model/DescribeOssIncrementCheckSettingResult.cc index 61be7322d..8720b29f5 100644 --- a/green/src/model/DescribeOssIncrementCheckSettingResult.cc +++ b/green/src/model/DescribeOssIncrementCheckSettingResult.cc @@ -35,10 +35,13 @@ DescribeOssIncrementCheckSettingResult::~DescribeOssIncrementCheckSettingResult( void DescribeOssIncrementCheckSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBucketConfigList = value["BucketConfigList"]["BucketConfig"]; for (auto value : allBucketConfigList) diff --git a/green/src/model/DescribeOssIncrementOverviewResult.cc b/green/src/model/DescribeOssIncrementOverviewResult.cc index b433ac559..fddfe0913 100644 --- a/green/src/model/DescribeOssIncrementOverviewResult.cc +++ b/green/src/model/DescribeOssIncrementOverviewResult.cc @@ -35,10 +35,13 @@ DescribeOssIncrementOverviewResult::~DescribeOssIncrementOverviewResult() void DescribeOssIncrementOverviewResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ImageCount"].isNull()) imageCount_ = std::stoi(value["ImageCount"].asString()); diff --git a/green/src/model/DescribeOssIncrementStatsResult.cc b/green/src/model/DescribeOssIncrementStatsResult.cc index f8fbfdfa9..547d8f47b 100644 --- a/green/src/model/DescribeOssIncrementStatsResult.cc +++ b/green/src/model/DescribeOssIncrementStatsResult.cc @@ -35,10 +35,13 @@ DescribeOssIncrementStatsResult::~DescribeOssIncrementStatsResult() void DescribeOssIncrementStatsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStatList = value["StatList"]["Stat"]; for (auto value : allStatList) diff --git a/green/src/model/DescribeOssResultItemsResult.cc b/green/src/model/DescribeOssResultItemsResult.cc index bbe211533..c7f41daf5 100644 --- a/green/src/model/DescribeOssResultItemsResult.cc +++ b/green/src/model/DescribeOssResultItemsResult.cc @@ -35,10 +35,13 @@ DescribeOssResultItemsResult::~DescribeOssResultItemsResult() void DescribeOssResultItemsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allScanResultList = value["ScanResultList"]["ScanResult"]; for (auto value : allScanResultList) diff --git a/green/src/model/DescribeOssStockStatusResult.cc b/green/src/model/DescribeOssStockStatusResult.cc index 8381c7552..d5728e9e4 100644 --- a/green/src/model/DescribeOssStockStatusResult.cc +++ b/green/src/model/DescribeOssStockStatusResult.cc @@ -35,10 +35,13 @@ DescribeOssStockStatusResult::~DescribeOssStockStatusResult() void DescribeOssStockStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBucketList = value["BucketList"]["bucket"]; for (auto value : allBucketList) diff --git a/green/src/model/DescribeSdkUrlResult.cc b/green/src/model/DescribeSdkUrlResult.cc index f8025711f..0d20f5e20 100644 --- a/green/src/model/DescribeSdkUrlResult.cc +++ b/green/src/model/DescribeSdkUrlResult.cc @@ -35,10 +35,13 @@ DescribeSdkUrlResult::~DescribeSdkUrlResult() void DescribeSdkUrlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SdkUrl"].isNull()) sdkUrl_ = value["SdkUrl"].asString(); diff --git a/green/src/model/DescribeUpdatePackageResultResult.cc b/green/src/model/DescribeUpdatePackageResultResult.cc index 0bb927134..bc3ddc7f2 100644 --- a/green/src/model/DescribeUpdatePackageResultResult.cc +++ b/green/src/model/DescribeUpdatePackageResultResult.cc @@ -35,10 +35,13 @@ DescribeUpdatePackageResultResult::~DescribeUpdatePackageResultResult() void DescribeUpdatePackageResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto appInfoNode = value["AppInfo"]; if(!appInfoNode["Id"].isNull()) diff --git a/green/src/model/DescribeUploadInfoResult.cc b/green/src/model/DescribeUploadInfoResult.cc index b6e085106..20d7a0a05 100644 --- a/green/src/model/DescribeUploadInfoResult.cc +++ b/green/src/model/DescribeUploadInfoResult.cc @@ -35,10 +35,13 @@ DescribeUploadInfoResult::~DescribeUploadInfoResult() void DescribeUploadInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Accessid"].isNull()) accessid_ = value["Accessid"].asString(); diff --git a/green/src/model/DescribeUserBizTypesRequest.cc b/green/src/model/DescribeUserBizTypesRequest.cc new file mode 100644 index 000000000..328f8d860 --- /dev/null +++ b/green/src/model/DescribeUserBizTypesRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Green::Model::DescribeUserBizTypesRequest; + +DescribeUserBizTypesRequest::DescribeUserBizTypesRequest() : + RpcServiceRequest("green", "2017-08-23", "DescribeUserBizTypes") +{} + +DescribeUserBizTypesRequest::~DescribeUserBizTypesRequest() +{} + +bool DescribeUserBizTypesRequest::getCustomized()const +{ + return customized_; +} + +void DescribeUserBizTypesRequest::setCustomized(bool customized) +{ + customized_ = customized; + setCoreParameter("Customized", customized ? "true" : "false"); +} + +std::string DescribeUserBizTypesRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeUserBizTypesRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/green/src/model/DescribeUserBizTypesResult.cc b/green/src/model/DescribeUserBizTypesResult.cc new file mode 100644 index 000000000..1b290c81f --- /dev/null +++ b/green/src/model/DescribeUserBizTypesResult.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::Green; +using namespace AlibabaCloud::Green::Model; + +DescribeUserBizTypesResult::DescribeUserBizTypesResult() : + ServiceResult() +{} + +DescribeUserBizTypesResult::DescribeUserBizTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserBizTypesResult::~DescribeUserBizTypesResult() +{} + +void DescribeUserBizTypesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allBizTypeList = value["BizTypeList"]["item"]; + for (auto value : allBizTypeList) + { + Item bizTypeListObject; + if(!value["BizType"].isNull()) + bizTypeListObject.bizType = value["BizType"].asString(); + if(!value["SourceBizType"].isNull()) + bizTypeListObject.sourceBizType = value["SourceBizType"].asString(); + if(!value["Gray"].isNull()) + bizTypeListObject.gray = value["Gray"].asString() == "true"; + if(!value["Source"].isNull()) + bizTypeListObject.source = value["Source"].asString(); + bizTypeList_.push_back(bizTypeListObject); + } + auto allBizTypeListImport = value["BizTypeListImport"]["item"]; + for (auto value : allBizTypeListImport) + { + Item bizTypeListImportObject; + if(!value["BizType"].isNull()) + bizTypeListImportObject.bizType = value["BizType"].asString(); + if(!value["SourceBizType"].isNull()) + bizTypeListImportObject.sourceBizType = value["SourceBizType"].asString(); + if(!value["Gray"].isNull()) + bizTypeListImportObject.gray = value["Gray"].asString() == "true"; + if(!value["Source"].isNull()) + bizTypeListImportObject.source = value["Source"].asString(); + bizTypeListImport_.push_back(bizTypeListImportObject); + } + +} + +std::vector DescribeUserBizTypesResult::getBizTypeList()const +{ + return bizTypeList_; +} + +std::vector DescribeUserBizTypesResult::getBizTypeListImport()const +{ + return bizTypeListImport_; +} + diff --git a/green/src/model/DescribeUserStatusResult.cc b/green/src/model/DescribeUserStatusResult.cc index 4d060b30a..1311d379c 100644 --- a/green/src/model/DescribeUserStatusResult.cc +++ b/green/src/model/DescribeUserStatusResult.cc @@ -35,10 +35,13 @@ DescribeUserStatusResult::~DescribeUserStatusResult() void DescribeUserStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Buyed"].isNull()) buyed_ = value["Buyed"].asString() == "true"; diff --git a/green/src/model/DescribeViewContentResult.cc b/green/src/model/DescribeViewContentResult.cc index 8ec948719..c59544282 100644 --- a/green/src/model/DescribeViewContentResult.cc +++ b/green/src/model/DescribeViewContentResult.cc @@ -35,10 +35,13 @@ DescribeViewContentResult::~DescribeViewContentResult() void DescribeViewContentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allViewContentList = value["ViewContentList"]["ViewContent"]; for (auto value : allViewContentList) diff --git a/green/src/model/DescribeWebsiteIndexPageBaselineResult.cc b/green/src/model/DescribeWebsiteIndexPageBaselineResult.cc index 887039548..4ebcf63db 100644 --- a/green/src/model/DescribeWebsiteIndexPageBaselineResult.cc +++ b/green/src/model/DescribeWebsiteIndexPageBaselineResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteIndexPageBaselineResult::~DescribeWebsiteIndexPageBaselineResult( void DescribeWebsiteIndexPageBaselineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); diff --git a/green/src/model/DescribeWebsiteInstanceIdResult.cc b/green/src/model/DescribeWebsiteInstanceIdResult.cc index f0c353c79..8a9375778 100644 --- a/green/src/model/DescribeWebsiteInstanceIdResult.cc +++ b/green/src/model/DescribeWebsiteInstanceIdResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteInstanceIdResult::~DescribeWebsiteInstanceIdResult() void DescribeWebsiteInstanceIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWebsiteInstanceIdList = value["WebsiteInstanceIdList"]["WebsiteInstanceId"]; for (const auto &item : allWebsiteInstanceIdList) diff --git a/green/src/model/DescribeWebsiteInstanceKeyUrlResult.cc b/green/src/model/DescribeWebsiteInstanceKeyUrlResult.cc index d6ed5a73e..52cf4e5c2 100644 --- a/green/src/model/DescribeWebsiteInstanceKeyUrlResult.cc +++ b/green/src/model/DescribeWebsiteInstanceKeyUrlResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteInstanceKeyUrlResult::~DescribeWebsiteInstanceKeyUrlResult() void DescribeWebsiteInstanceKeyUrlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWebsiteInstanceKeyUrlList = value["WebsiteInstanceKeyUrlList"]["WebsiteInstanceKeyUrl"]; for (const auto &item : allWebsiteInstanceKeyUrlList) diff --git a/green/src/model/DescribeWebsiteInstanceResult.cc b/green/src/model/DescribeWebsiteInstanceResult.cc index f0d6cb3d1..2ffd00a08 100644 --- a/green/src/model/DescribeWebsiteInstanceResult.cc +++ b/green/src/model/DescribeWebsiteInstanceResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteInstanceResult::~DescribeWebsiteInstanceResult() void DescribeWebsiteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWebsiteInstanceList = value["WebsiteInstanceList"]["WebsiteInstance"]; for (auto value : allWebsiteInstanceList) diff --git a/green/src/model/DescribeWebsiteScanResultDetailResult.cc b/green/src/model/DescribeWebsiteScanResultDetailResult.cc index 6be404f4b..186dd4f29 100644 --- a/green/src/model/DescribeWebsiteScanResultDetailResult.cc +++ b/green/src/model/DescribeWebsiteScanResultDetailResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteScanResultDetailResult::~DescribeWebsiteScanResultDetailResult() void DescribeWebsiteScanResultDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allImageScanResults = value["ImageScanResults"]["ImageScanResult"]; for (auto value : allImageScanResults) diff --git a/green/src/model/DescribeWebsiteScanResultResult.cc b/green/src/model/DescribeWebsiteScanResultResult.cc index 05fba277e..988d660ab 100644 --- a/green/src/model/DescribeWebsiteScanResultResult.cc +++ b/green/src/model/DescribeWebsiteScanResultResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteScanResultResult::~DescribeWebsiteScanResultResult() void DescribeWebsiteScanResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWebsiteScanResultList = value["WebsiteScanResultList"]["WebsiteScanResult"]; for (auto value : allWebsiteScanResultList) diff --git a/green/src/model/DescribeWebsiteStatResult.cc b/green/src/model/DescribeWebsiteStatResult.cc index 25ca77f52..3dedf88bf 100644 --- a/green/src/model/DescribeWebsiteStatResult.cc +++ b/green/src/model/DescribeWebsiteStatResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteStatResult::~DescribeWebsiteStatResult() void DescribeWebsiteStatResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWebsiteStatList = value["WebsiteStatList"]["WebsiteStat"]; for (auto value : allWebsiteStatList) diff --git a/green/src/model/DescribeWebsiteVerifyInfoResult.cc b/green/src/model/DescribeWebsiteVerifyInfoResult.cc index 5e8cd81b1..cf969fe7b 100644 --- a/green/src/model/DescribeWebsiteVerifyInfoResult.cc +++ b/green/src/model/DescribeWebsiteVerifyInfoResult.cc @@ -35,10 +35,13 @@ DescribeWebsiteVerifyInfoResult::~DescribeWebsiteVerifyInfoResult() void DescribeWebsiteVerifyInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Cname"].isNull()) cname_ = value["Cname"].asString(); diff --git a/green/src/model/ExportKeywordsResult.cc b/green/src/model/ExportKeywordsResult.cc index 72f67894b..1588ce533 100644 --- a/green/src/model/ExportKeywordsResult.cc +++ b/green/src/model/ExportKeywordsResult.cc @@ -35,10 +35,13 @@ ExportKeywordsResult::~ExportKeywordsResult() void ExportKeywordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DownloadUrl"].isNull()) downloadUrl_ = value["DownloadUrl"].asString(); diff --git a/green/src/model/ExportOssResultResult.cc b/green/src/model/ExportOssResultResult.cc index 39a3a9f90..5ffd266fe 100644 --- a/green/src/model/ExportOssResultResult.cc +++ b/green/src/model/ExportOssResultResult.cc @@ -35,10 +35,13 @@ ExportOssResultResult::~ExportOssResultResult() void ExportOssResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["FileUrl"].isNull()) fileUrl_ = value["FileUrl"].asString(); diff --git a/green/src/model/ImportKeywordsResult.cc b/green/src/model/ImportKeywordsResult.cc index 53bd17f36..4523efdf1 100644 --- a/green/src/model/ImportKeywordsResult.cc +++ b/green/src/model/ImportKeywordsResult.cc @@ -35,10 +35,13 @@ ImportKeywordsResult::~ImportKeywordsResult() void ImportKeywordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInvalidKeywordList = value["InvalidKeywordList"]["StringItem"]; for (const auto &item : allInvalidKeywordList) diff --git a/green/src/model/MarkAuditContentItemResult.cc b/green/src/model/MarkAuditContentItemResult.cc index deb88c495..b6b7d90f6 100644 --- a/green/src/model/MarkAuditContentItemResult.cc +++ b/green/src/model/MarkAuditContentItemResult.cc @@ -35,10 +35,13 @@ MarkAuditContentItemResult::~MarkAuditContentItemResult() void MarkAuditContentItemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/MarkAuditContentResult.cc b/green/src/model/MarkAuditContentResult.cc index 111d0ee00..7eda9cd23 100644 --- a/green/src/model/MarkAuditContentResult.cc +++ b/green/src/model/MarkAuditContentResult.cc @@ -35,10 +35,13 @@ MarkAuditContentResult::~MarkAuditContentResult() void MarkAuditContentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/MarkOssResultResult.cc b/green/src/model/MarkOssResultResult.cc index 3033b3039..c7bbbbc67 100644 --- a/green/src/model/MarkOssResultResult.cc +++ b/green/src/model/MarkOssResultResult.cc @@ -35,10 +35,13 @@ MarkOssResultResult::~MarkOssResultResult() void MarkOssResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/MarkWebsiteScanResultResult.cc b/green/src/model/MarkWebsiteScanResultResult.cc index e025fe32e..712899c76 100644 --- a/green/src/model/MarkWebsiteScanResultResult.cc +++ b/green/src/model/MarkWebsiteScanResultResult.cc @@ -35,10 +35,13 @@ MarkWebsiteScanResultResult::~MarkWebsiteScanResultResult() void MarkWebsiteScanResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/RefundCdiBagResult.cc b/green/src/model/RefundCdiBagResult.cc index c2ad6d2bf..1233c22cd 100644 --- a/green/src/model/RefundCdiBagResult.cc +++ b/green/src/model/RefundCdiBagResult.cc @@ -35,10 +35,13 @@ RefundCdiBagResult::~RefundCdiBagResult() void RefundCdiBagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/RefundCdiBaseBagResult.cc b/green/src/model/RefundCdiBaseBagResult.cc index 33e5be482..0098d4c02 100644 --- a/green/src/model/RefundCdiBaseBagResult.cc +++ b/green/src/model/RefundCdiBaseBagResult.cc @@ -35,10 +35,13 @@ RefundCdiBaseBagResult::~RefundCdiBaseBagResult() void RefundCdiBaseBagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/RefundWebSiteInstanceResult.cc b/green/src/model/RefundWebSiteInstanceResult.cc index e077096f2..6e1b9b8df 100644 --- a/green/src/model/RefundWebSiteInstanceResult.cc +++ b/green/src/model/RefundWebSiteInstanceResult.cc @@ -35,10 +35,13 @@ RefundWebSiteInstanceResult::~RefundWebSiteInstanceResult() void RefundWebSiteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/RenewWebSiteInstanceResult.cc b/green/src/model/RenewWebSiteInstanceResult.cc index 75f032a17..c54578a16 100644 --- a/green/src/model/RenewWebSiteInstanceResult.cc +++ b/green/src/model/RenewWebSiteInstanceResult.cc @@ -35,10 +35,13 @@ RenewWebSiteInstanceResult::~RenewWebSiteInstanceResult() void RenewWebSiteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceIds = value["InstanceIds"]["String"]; for (const auto &item : allInstanceIds) diff --git a/green/src/model/SendVerifyCodeToEmailResult.cc b/green/src/model/SendVerifyCodeToEmailResult.cc index 3cad587ba..6c206f834 100644 --- a/green/src/model/SendVerifyCodeToEmailResult.cc +++ b/green/src/model/SendVerifyCodeToEmailResult.cc @@ -35,10 +35,13 @@ SendVerifyCodeToEmailResult::~SendVerifyCodeToEmailResult() void SendVerifyCodeToEmailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/SendVerifyCodeToPhoneResult.cc b/green/src/model/SendVerifyCodeToPhoneResult.cc index f1d42643b..3470fafd6 100644 --- a/green/src/model/SendVerifyCodeToPhoneResult.cc +++ b/green/src/model/SendVerifyCodeToPhoneResult.cc @@ -35,10 +35,13 @@ SendVerifyCodeToPhoneResult::~SendVerifyCodeToPhoneResult() void SendVerifyCodeToPhoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/SendWebsiteFeedbackResult.cc b/green/src/model/SendWebsiteFeedbackResult.cc index 4b74a2c5b..699f298c0 100644 --- a/green/src/model/SendWebsiteFeedbackResult.cc +++ b/green/src/model/SendWebsiteFeedbackResult.cc @@ -35,10 +35,13 @@ SendWebsiteFeedbackResult::~SendWebsiteFeedbackResult() void SendWebsiteFeedbackResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateAppPackageResult.cc b/green/src/model/UpdateAppPackageResult.cc index 4505d787d..39c2c6a4d 100644 --- a/green/src/model/UpdateAppPackageResult.cc +++ b/green/src/model/UpdateAppPackageResult.cc @@ -35,10 +35,13 @@ UpdateAppPackageResult::~UpdateAppPackageResult() void UpdateAppPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); diff --git a/green/src/model/UpdateAuditSettingResult.cc b/green/src/model/UpdateAuditSettingResult.cc index ffc094082..2f3cb97a5 100644 --- a/green/src/model/UpdateAuditSettingResult.cc +++ b/green/src/model/UpdateAuditSettingResult.cc @@ -35,10 +35,13 @@ UpdateAuditSettingResult::~UpdateAuditSettingResult() void UpdateAuditSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateBizTypeSettingResult.cc b/green/src/model/UpdateBizTypeSettingResult.cc index b0c342892..e65567846 100644 --- a/green/src/model/UpdateBizTypeSettingResult.cc +++ b/green/src/model/UpdateBizTypeSettingResult.cc @@ -35,10 +35,13 @@ UpdateBizTypeSettingResult::~UpdateBizTypeSettingResult() void UpdateBizTypeSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateCustomOcrTemplateResult.cc b/green/src/model/UpdateCustomOcrTemplateResult.cc index cfda71d86..a292e35f9 100644 --- a/green/src/model/UpdateCustomOcrTemplateResult.cc +++ b/green/src/model/UpdateCustomOcrTemplateResult.cc @@ -35,10 +35,13 @@ UpdateCustomOcrTemplateResult::~UpdateCustomOcrTemplateResult() void UpdateCustomOcrTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateImageLibResult.cc b/green/src/model/UpdateImageLibResult.cc index 5ad341069..b151dfef0 100644 --- a/green/src/model/UpdateImageLibResult.cc +++ b/green/src/model/UpdateImageLibResult.cc @@ -35,10 +35,13 @@ UpdateImageLibResult::~UpdateImageLibResult() void UpdateImageLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateKeywordLibResult.cc b/green/src/model/UpdateKeywordLibResult.cc index 1ac2b96bd..768d3dfd3 100644 --- a/green/src/model/UpdateKeywordLibResult.cc +++ b/green/src/model/UpdateKeywordLibResult.cc @@ -35,10 +35,13 @@ UpdateKeywordLibResult::~UpdateKeywordLibResult() void UpdateKeywordLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateNotificationSettingResult.cc b/green/src/model/UpdateNotificationSettingResult.cc index 00e930392..9dcb33647 100644 --- a/green/src/model/UpdateNotificationSettingResult.cc +++ b/green/src/model/UpdateNotificationSettingResult.cc @@ -35,10 +35,13 @@ UpdateNotificationSettingResult::~UpdateNotificationSettingResult() void UpdateNotificationSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateOssCallbackSettingResult.cc b/green/src/model/UpdateOssCallbackSettingResult.cc index 7b7bcc07b..09ea2942d 100644 --- a/green/src/model/UpdateOssCallbackSettingResult.cc +++ b/green/src/model/UpdateOssCallbackSettingResult.cc @@ -35,10 +35,13 @@ UpdateOssCallbackSettingResult::~UpdateOssCallbackSettingResult() void UpdateOssCallbackSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateOssIncrementCheckSettingResult.cc b/green/src/model/UpdateOssIncrementCheckSettingResult.cc index bed193a9d..9ee78980b 100644 --- a/green/src/model/UpdateOssIncrementCheckSettingResult.cc +++ b/green/src/model/UpdateOssIncrementCheckSettingResult.cc @@ -35,10 +35,13 @@ UpdateOssIncrementCheckSettingResult::~UpdateOssIncrementCheckSettingResult() void UpdateOssIncrementCheckSettingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateOssStockStatusResult.cc b/green/src/model/UpdateOssStockStatusResult.cc index a64af9688..965371c4c 100644 --- a/green/src/model/UpdateOssStockStatusResult.cc +++ b/green/src/model/UpdateOssStockStatusResult.cc @@ -35,10 +35,13 @@ UpdateOssStockStatusResult::~UpdateOssStockStatusResult() void UpdateOssStockStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateWebsiteInstanceKeyUrlResult.cc b/green/src/model/UpdateWebsiteInstanceKeyUrlResult.cc index 9f7f25835..2d7a48d62 100644 --- a/green/src/model/UpdateWebsiteInstanceKeyUrlResult.cc +++ b/green/src/model/UpdateWebsiteInstanceKeyUrlResult.cc @@ -35,10 +35,13 @@ UpdateWebsiteInstanceKeyUrlResult::~UpdateWebsiteInstanceKeyUrlResult() void UpdateWebsiteInstanceKeyUrlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateWebsiteInstanceResult.cc b/green/src/model/UpdateWebsiteInstanceResult.cc index 7a333e09a..09b9ffa8a 100644 --- a/green/src/model/UpdateWebsiteInstanceResult.cc +++ b/green/src/model/UpdateWebsiteInstanceResult.cc @@ -35,10 +35,13 @@ UpdateWebsiteInstanceResult::~UpdateWebsiteInstanceResult() void UpdateWebsiteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpdateWebsiteInstanceStatusResult.cc b/green/src/model/UpdateWebsiteInstanceStatusResult.cc index 1a028855e..3818c726f 100644 --- a/green/src/model/UpdateWebsiteInstanceStatusResult.cc +++ b/green/src/model/UpdateWebsiteInstanceStatusResult.cc @@ -35,10 +35,13 @@ UpdateWebsiteInstanceStatusResult::~UpdateWebsiteInstanceStatusResult() void UpdateWebsiteInstanceStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/UpgradeCdiBaseBagResult.cc b/green/src/model/UpgradeCdiBaseBagResult.cc index 88dfbe21f..9fcbb3c27 100644 --- a/green/src/model/UpgradeCdiBaseBagResult.cc +++ b/green/src/model/UpgradeCdiBaseBagResult.cc @@ -35,10 +35,13 @@ UpgradeCdiBaseBagResult::~UpgradeCdiBaseBagResult() void UpgradeCdiBaseBagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/green/src/model/UploadImageToLibResult.cc b/green/src/model/UploadImageToLibResult.cc index 9eb112c20..fc3d1801a 100644 --- a/green/src/model/UploadImageToLibResult.cc +++ b/green/src/model/UploadImageToLibResult.cc @@ -35,10 +35,13 @@ UploadImageToLibResult::~UploadImageToLibResult() void UploadImageToLibResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/VerifyCustomOcrTemplateResult.cc b/green/src/model/VerifyCustomOcrTemplateResult.cc index 7af010f19..0c439f0bf 100644 --- a/green/src/model/VerifyCustomOcrTemplateResult.cc +++ b/green/src/model/VerifyCustomOcrTemplateResult.cc @@ -35,10 +35,13 @@ VerifyCustomOcrTemplateResult::~VerifyCustomOcrTemplateResult() void VerifyCustomOcrTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecognizeInfo"].isNull()) recognizeInfo_ = value["RecognizeInfo"].asString(); diff --git a/green/src/model/VerifyEmailResult.cc b/green/src/model/VerifyEmailResult.cc index d1c27cd4a..a77b0357c 100644 --- a/green/src/model/VerifyEmailResult.cc +++ b/green/src/model/VerifyEmailResult.cc @@ -35,10 +35,13 @@ VerifyEmailResult::~VerifyEmailResult() void VerifyEmailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/VerifyPhoneResult.cc b/green/src/model/VerifyPhoneResult.cc index 1ccf3ed4b..51881d678 100644 --- a/green/src/model/VerifyPhoneResult.cc +++ b/green/src/model/VerifyPhoneResult.cc @@ -35,10 +35,13 @@ VerifyPhoneResult::~VerifyPhoneResult() void VerifyPhoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/green/src/model/VerifyWebsiteInstanceResult.cc b/green/src/model/VerifyWebsiteInstanceResult.cc index ebdd42de3..c79594cd2 100644 --- a/green/src/model/VerifyWebsiteInstanceResult.cc +++ b/green/src/model/VerifyWebsiteInstanceResult.cc @@ -35,10 +35,13 @@ VerifyWebsiteInstanceResult::~VerifyWebsiteInstanceResult() void VerifyWebsiteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/hsm/src/model/ConfigNetworkRequest.cc b/hsm/src/model/ConfigNetworkRequest.cc index d9d744f71..79e21e1c1 100644 --- a/hsm/src/model/ConfigNetworkRequest.cc +++ b/hsm/src/model/ConfigNetworkRequest.cc @@ -33,7 +33,7 @@ std::string ConfigNetworkRequest::getVSwitchId()const void ConfigNetworkRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } long ConfigNetworkRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ConfigNetworkRequest::getResourceOwnerId()const void ConfigNetworkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ConfigNetworkRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string ConfigNetworkRequest::getInstanceId()const void ConfigNetworkRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ConfigNetworkRequest::getSourceIp()const @@ -66,7 +66,7 @@ std::string ConfigNetworkRequest::getSourceIp()const void ConfigNetworkRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string ConfigNetworkRequest::getVpcId()const @@ -77,7 +77,7 @@ std::string ConfigNetworkRequest::getVpcId()const void ConfigNetworkRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string ConfigNetworkRequest::getIp()const @@ -88,6 +88,6 @@ std::string ConfigNetworkRequest::getIp()const void ConfigNetworkRequest::setIp(const std::string& ip) { ip_ = ip; - setParameter("Ip", ip); + setCoreParameter("Ip", ip); } diff --git a/hsm/src/model/ConfigNetworkResult.cc b/hsm/src/model/ConfigNetworkResult.cc index 11f4eacb8..2142c4a59 100644 --- a/hsm/src/model/ConfigNetworkResult.cc +++ b/hsm/src/model/ConfigNetworkResult.cc @@ -35,10 +35,13 @@ ConfigNetworkResult::~ConfigNetworkResult() void ConfigNetworkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/hsm/src/model/ConfigWhiteListRequest.cc b/hsm/src/model/ConfigWhiteListRequest.cc index 6bdc9fa8f..e0fb76df9 100644 --- a/hsm/src/model/ConfigWhiteListRequest.cc +++ b/hsm/src/model/ConfigWhiteListRequest.cc @@ -33,7 +33,7 @@ long ConfigWhiteListRequest::getResourceOwnerId()const void ConfigWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ConfigWhiteListRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ConfigWhiteListRequest::getInstanceId()const void ConfigWhiteListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ConfigWhiteListRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string ConfigWhiteListRequest::getSourceIp()const void ConfigWhiteListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string ConfigWhiteListRequest::getWhiteList()const @@ -66,6 +66,6 @@ std::string ConfigWhiteListRequest::getWhiteList()const void ConfigWhiteListRequest::setWhiteList(const std::string& whiteList) { whiteList_ = whiteList; - setParameter("WhiteList", whiteList); + setCoreParameter("WhiteList", whiteList); } diff --git a/hsm/src/model/ConfigWhiteListResult.cc b/hsm/src/model/ConfigWhiteListResult.cc index 68eac0cb9..24136ff01 100644 --- a/hsm/src/model/ConfigWhiteListResult.cc +++ b/hsm/src/model/ConfigWhiteListResult.cc @@ -35,10 +35,13 @@ ConfigWhiteListResult::~ConfigWhiteListResult() void ConfigWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/hsm/src/model/CreateInstanceRequest.cc b/hsm/src/model/CreateInstanceRequest.cc index 6fecc574f..c30b46a9a 100644 --- a/hsm/src/model/CreateInstanceRequest.cc +++ b/hsm/src/model/CreateInstanceRequest.cc @@ -33,7 +33,7 @@ int CreateInstanceRequest::getPeriod()const void CreateInstanceRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string CreateInstanceRequest::getPeriodUnit()const @@ -44,7 +44,7 @@ std::string CreateInstanceRequest::getPeriodUnit()const void CreateInstanceRequest::setPeriodUnit(const std::string& periodUnit) { periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); + setCoreParameter("PeriodUnit", periodUnit); } std::string CreateInstanceRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ std::string CreateInstanceRequest::getResourceOwnerId()const void CreateInstanceRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } int CreateInstanceRequest::getQuantity()const @@ -66,7 +66,7 @@ int CreateInstanceRequest::getQuantity()const void CreateInstanceRequest::setQuantity(int quantity) { quantity_ = quantity; - setParameter("Quantity", std::to_string(quantity)); + setCoreParameter("Quantity", std::to_string(quantity)); } std::string CreateInstanceRequest::getHsmDeviceType()const @@ -77,7 +77,7 @@ std::string CreateInstanceRequest::getHsmDeviceType()const void CreateInstanceRequest::setHsmDeviceType(const std::string& hsmDeviceType) { hsmDeviceType_ = hsmDeviceType; - setParameter("HsmDeviceType", hsmDeviceType); + setCoreParameter("HsmDeviceType", hsmDeviceType); } std::string CreateInstanceRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string CreateInstanceRequest::getClientToken()const void CreateInstanceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateInstanceRequest::getZoneId()const @@ -99,7 +99,7 @@ std::string CreateInstanceRequest::getZoneId()const void CreateInstanceRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string CreateInstanceRequest::getHsmOem()const @@ -110,6 +110,6 @@ std::string CreateInstanceRequest::getHsmOem()const void CreateInstanceRequest::setHsmOem(const std::string& hsmOem) { hsmOem_ = hsmOem; - setParameter("HsmOem", hsmOem); + setCoreParameter("HsmOem", hsmOem); } diff --git a/hsm/src/model/CreateInstanceResult.cc b/hsm/src/model/CreateInstanceResult.cc index a2ffa0c90..6d2c8e4cc 100644 --- a/hsm/src/model/CreateInstanceResult.cc +++ b/hsm/src/model/CreateInstanceResult.cc @@ -35,10 +35,13 @@ CreateInstanceResult::~CreateInstanceResult() void CreateInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (const auto &item : allInstanceIds) diff --git a/hsm/src/model/DescribeInstancesRequest.cc b/hsm/src/model/DescribeInstancesRequest.cc index 8a24e490c..c4627da1e 100644 --- a/hsm/src/model/DescribeInstancesRequest.cc +++ b/hsm/src/model/DescribeInstancesRequest.cc @@ -33,7 +33,7 @@ long DescribeInstancesRequest::getResourceOwnerId()const void DescribeInstancesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeInstancesRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string DescribeInstancesRequest::getInstanceId()const void DescribeInstancesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeInstancesRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string DescribeInstancesRequest::getSourceIp()const void DescribeInstancesRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeInstancesRequest::getPageSize()const @@ -66,7 +66,7 @@ int DescribeInstancesRequest::getPageSize()const void DescribeInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeInstancesRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeInstancesRequest::getCurrentPage()const void DescribeInstancesRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } int DescribeInstancesRequest::getHsmStatus()const @@ -88,6 +88,6 @@ int DescribeInstancesRequest::getHsmStatus()const void DescribeInstancesRequest::setHsmStatus(int hsmStatus) { hsmStatus_ = hsmStatus; - setParameter("HsmStatus", std::to_string(hsmStatus)); + setCoreParameter("HsmStatus", std::to_string(hsmStatus)); } diff --git a/hsm/src/model/DescribeInstancesResult.cc b/hsm/src/model/DescribeInstancesResult.cc index 30e9688c4..4ea0bfefd 100644 --- a/hsm/src/model/DescribeInstancesResult.cc +++ b/hsm/src/model/DescribeInstancesResult.cc @@ -35,10 +35,13 @@ DescribeInstancesResult::~DescribeInstancesResult() void DescribeInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstances = value["Instances"]["Instance"]; for (auto value : allInstances) diff --git a/hsm/src/model/DescribeRegionsRequest.cc b/hsm/src/model/DescribeRegionsRequest.cc index 7899e5a12..851a0f3ee 100644 --- a/hsm/src/model/DescribeRegionsRequest.cc +++ b/hsm/src/model/DescribeRegionsRequest.cc @@ -33,7 +33,7 @@ long DescribeRegionsRequest::getResourceOwnerId()const void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRegionsRequest::getSourceIp()const @@ -44,6 +44,6 @@ std::string DescribeRegionsRequest::getSourceIp()const void DescribeRegionsRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } diff --git a/hsm/src/model/DescribeRegionsResult.cc b/hsm/src/model/DescribeRegionsResult.cc index edb3fadff..5d4ea349c 100644 --- a/hsm/src/model/DescribeRegionsResult.cc +++ b/hsm/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/hsm/src/model/ModifyInstanceRequest.cc b/hsm/src/model/ModifyInstanceRequest.cc index b20427915..b6eee8ce3 100644 --- a/hsm/src/model/ModifyInstanceRequest.cc +++ b/hsm/src/model/ModifyInstanceRequest.cc @@ -33,7 +33,7 @@ long ModifyInstanceRequest::getResourceOwnerId()const void ModifyInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyInstanceRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string ModifyInstanceRequest::getInstanceId()const void ModifyInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string ModifyInstanceRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string ModifyInstanceRequest::getSourceIp()const void ModifyInstanceRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string ModifyInstanceRequest::getRemark()const @@ -66,6 +66,6 @@ std::string ModifyInstanceRequest::getRemark()const void ModifyInstanceRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } diff --git a/hsm/src/model/ModifyInstanceResult.cc b/hsm/src/model/ModifyInstanceResult.cc index fe4e6ed9f..07d3d4052 100644 --- a/hsm/src/model/ModifyInstanceResult.cc +++ b/hsm/src/model/ModifyInstanceResult.cc @@ -35,10 +35,13 @@ ModifyInstanceResult::~ModifyInstanceResult() void ModifyInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/hsm/src/model/ReleaseInstanceRequest.cc b/hsm/src/model/ReleaseInstanceRequest.cc index 0b7871409..05d737272 100644 --- a/hsm/src/model/ReleaseInstanceRequest.cc +++ b/hsm/src/model/ReleaseInstanceRequest.cc @@ -33,7 +33,7 @@ std::string ReleaseInstanceRequest::getResourceOwnerId()const void ReleaseInstanceRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string ReleaseInstanceRequest::getInstanceId()const @@ -44,6 +44,6 @@ std::string ReleaseInstanceRequest::getInstanceId()const void ReleaseInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } diff --git a/hsm/src/model/ReleaseInstanceResult.cc b/hsm/src/model/ReleaseInstanceResult.cc index 2b44ddbfb..8577cd810 100644 --- a/hsm/src/model/ReleaseInstanceResult.cc +++ b/hsm/src/model/ReleaseInstanceResult.cc @@ -35,10 +35,13 @@ ReleaseInstanceResult::~ReleaseInstanceResult() void ReleaseInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/hsm/src/model/RenewInstanceRequest.cc b/hsm/src/model/RenewInstanceRequest.cc index 86190bc27..42dde8531 100644 --- a/hsm/src/model/RenewInstanceRequest.cc +++ b/hsm/src/model/RenewInstanceRequest.cc @@ -33,7 +33,7 @@ int RenewInstanceRequest::getPeriod()const void RenewInstanceRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string RenewInstanceRequest::getPeriodUnit()const @@ -44,7 +44,7 @@ std::string RenewInstanceRequest::getPeriodUnit()const void RenewInstanceRequest::setPeriodUnit(const std::string& periodUnit) { periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); + setCoreParameter("PeriodUnit", periodUnit); } std::string RenewInstanceRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ std::string RenewInstanceRequest::getResourceOwnerId()const void RenewInstanceRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string RenewInstanceRequest::getInstanceId()const @@ -66,7 +66,7 @@ std::string RenewInstanceRequest::getInstanceId()const void RenewInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string RenewInstanceRequest::getClientToken()const @@ -77,6 +77,6 @@ std::string RenewInstanceRequest::getClientToken()const void RenewInstanceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } diff --git a/hsm/src/model/RenewInstanceResult.cc b/hsm/src/model/RenewInstanceResult.cc index ec766245f..1e92d1351 100644 --- a/hsm/src/model/RenewInstanceResult.cc +++ b/hsm/src/model/RenewInstanceResult.cc @@ -35,10 +35,13 @@ RenewInstanceResult::~RenewInstanceResult() void RenewInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/httpdns/src/model/AddDomainRequest.cc b/httpdns/src/model/AddDomainRequest.cc index c01c61c4c..cbf01d4d1 100644 --- a/httpdns/src/model/AddDomainRequest.cc +++ b/httpdns/src/model/AddDomainRequest.cc @@ -33,7 +33,7 @@ std::string AddDomainRequest::getAccountId()const void AddDomainRequest::setAccountId(const std::string& accountId) { accountId_ = accountId; - setParameter("AccountId", accountId); + setCoreParameter("AccountId", accountId); } std::string AddDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string AddDomainRequest::getDomainName()const void AddDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string AddDomainRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string AddDomainRequest::getAccessKeyId()const void AddDomainRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/httpdns/src/model/AddDomainResult.cc b/httpdns/src/model/AddDomainResult.cc index a78704c59..259b4b88b 100644 --- a/httpdns/src/model/AddDomainResult.cc +++ b/httpdns/src/model/AddDomainResult.cc @@ -35,10 +35,13 @@ AddDomainResult::~AddDomainResult() void AddDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); diff --git a/httpdns/src/model/DeleteDomainRequest.cc b/httpdns/src/model/DeleteDomainRequest.cc index 2c248cf5e..9998fae08 100644 --- a/httpdns/src/model/DeleteDomainRequest.cc +++ b/httpdns/src/model/DeleteDomainRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDomainRequest::getAccountId()const void DeleteDomainRequest::setAccountId(const std::string& accountId) { accountId_ = accountId; - setParameter("AccountId", accountId); + setCoreParameter("AccountId", accountId); } std::string DeleteDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DeleteDomainRequest::getDomainName()const void DeleteDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DeleteDomainRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string DeleteDomainRequest::getAccessKeyId()const void DeleteDomainRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/httpdns/src/model/DeleteDomainResult.cc b/httpdns/src/model/DeleteDomainResult.cc index c3cd15b74..00446c9e7 100644 --- a/httpdns/src/model/DeleteDomainResult.cc +++ b/httpdns/src/model/DeleteDomainResult.cc @@ -35,10 +35,13 @@ DeleteDomainResult::~DeleteDomainResult() void DeleteDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); diff --git a/httpdns/src/model/DescribeDomainsRequest.cc b/httpdns/src/model/DescribeDomainsRequest.cc index 78d9e9eac..2887e1003 100644 --- a/httpdns/src/model/DescribeDomainsRequest.cc +++ b/httpdns/src/model/DescribeDomainsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainsRequest::getAccountId()const void DescribeDomainsRequest::setAccountId(const std::string& accountId) { accountId_ = accountId; - setParameter("AccountId", accountId); + setCoreParameter("AccountId", accountId); } long DescribeDomainsRequest::getPageSize()const @@ -44,7 +44,7 @@ long DescribeDomainsRequest::getPageSize()const void DescribeDomainsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeDomainsRequest::getPageNumber()const @@ -55,7 +55,7 @@ long DescribeDomainsRequest::getPageNumber()const void DescribeDomainsRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeDomainsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string DescribeDomainsRequest::getAccessKeyId()const void DescribeDomainsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/httpdns/src/model/DescribeDomainsResult.cc b/httpdns/src/model/DescribeDomainsResult.cc index c51847a6b..526dc4c76 100644 --- a/httpdns/src/model/DescribeDomainsResult.cc +++ b/httpdns/src/model/DescribeDomainsResult.cc @@ -35,10 +35,13 @@ DescribeDomainsResult::~DescribeDomainsResult() void DescribeDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["Domain"]; for (auto value : allDomains) diff --git a/httpdns/src/model/GetAccountInfoRequest.cc b/httpdns/src/model/GetAccountInfoRequest.cc index 5ef46c71c..f6712a1e0 100644 --- a/httpdns/src/model/GetAccountInfoRequest.cc +++ b/httpdns/src/model/GetAccountInfoRequest.cc @@ -33,6 +33,6 @@ std::string GetAccountInfoRequest::getAccessKeyId()const void GetAccountInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/httpdns/src/model/GetAccountInfoResult.cc b/httpdns/src/model/GetAccountInfoResult.cc index 8916a0e6b..807bc6e09 100644 --- a/httpdns/src/model/GetAccountInfoResult.cc +++ b/httpdns/src/model/GetAccountInfoResult.cc @@ -35,10 +35,13 @@ GetAccountInfoResult::~GetAccountInfoResult() void GetAccountInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto accountInfoNode = value["AccountInfo"]; if(!accountInfoNode["AccountId"].isNull()) diff --git a/httpdns/src/model/GetResolveCountSummaryRequest.cc b/httpdns/src/model/GetResolveCountSummaryRequest.cc index 181831ed9..c636b9e45 100644 --- a/httpdns/src/model/GetResolveCountSummaryRequest.cc +++ b/httpdns/src/model/GetResolveCountSummaryRequest.cc @@ -33,7 +33,7 @@ std::string GetResolveCountSummaryRequest::getGranularity()const void GetResolveCountSummaryRequest::setGranularity(const std::string& granularity) { granularity_ = granularity; - setParameter("Granularity", granularity); + setCoreParameter("Granularity", granularity); } int GetResolveCountSummaryRequest::getTimeSpan()const @@ -44,7 +44,7 @@ int GetResolveCountSummaryRequest::getTimeSpan()const void GetResolveCountSummaryRequest::setTimeSpan(int timeSpan) { timeSpan_ = timeSpan; - setParameter("TimeSpan", std::to_string(timeSpan)); + setCoreParameter("TimeSpan", std::to_string(timeSpan)); } std::string GetResolveCountSummaryRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string GetResolveCountSummaryRequest::getAccessKeyId()const void GetResolveCountSummaryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/httpdns/src/model/GetResolveCountSummaryResult.cc b/httpdns/src/model/GetResolveCountSummaryResult.cc index 69f68b5c0..d0064d171 100644 --- a/httpdns/src/model/GetResolveCountSummaryResult.cc +++ b/httpdns/src/model/GetResolveCountSummaryResult.cc @@ -35,10 +35,13 @@ GetResolveCountSummaryResult::~GetResolveCountSummaryResult() void GetResolveCountSummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resolveSummaryNode = value["ResolveSummary"]; if(!resolveSummaryNode["Http"].isNull()) diff --git a/httpdns/src/model/GetResolveStatisticsRequest.cc b/httpdns/src/model/GetResolveStatisticsRequest.cc index 5b9ed35dd..726c7c6fe 100644 --- a/httpdns/src/model/GetResolveStatisticsRequest.cc +++ b/httpdns/src/model/GetResolveStatisticsRequest.cc @@ -33,7 +33,7 @@ std::string GetResolveStatisticsRequest::getGranularity()const void GetResolveStatisticsRequest::setGranularity(const std::string& granularity) { granularity_ = granularity; - setParameter("Granularity", granularity); + setCoreParameter("Granularity", granularity); } std::string GetResolveStatisticsRequest::getProtocolName()const @@ -44,7 +44,7 @@ std::string GetResolveStatisticsRequest::getProtocolName()const void GetResolveStatisticsRequest::setProtocolName(const std::string& protocolName) { protocolName_ = protocolName; - setParameter("ProtocolName", protocolName); + setCoreParameter("ProtocolName", protocolName); } std::string GetResolveStatisticsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string GetResolveStatisticsRequest::getDomainName()const void GetResolveStatisticsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } int GetResolveStatisticsRequest::getTimeSpan()const @@ -66,7 +66,7 @@ int GetResolveStatisticsRequest::getTimeSpan()const void GetResolveStatisticsRequest::setTimeSpan(int timeSpan) { timeSpan_ = timeSpan; - setParameter("TimeSpan", std::to_string(timeSpan)); + setCoreParameter("TimeSpan", std::to_string(timeSpan)); } std::string GetResolveStatisticsRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string GetResolveStatisticsRequest::getAccessKeyId()const void GetResolveStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/httpdns/src/model/GetResolveStatisticsResult.cc b/httpdns/src/model/GetResolveStatisticsResult.cc index 7757f1e9c..5372fb77b 100644 --- a/httpdns/src/model/GetResolveStatisticsResult.cc +++ b/httpdns/src/model/GetResolveStatisticsResult.cc @@ -35,10 +35,13 @@ GetResolveStatisticsResult::~GetResolveStatisticsResult() void GetResolveStatisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataPoints = value["DataPoints"]["DataPoint"]; for (auto value : allDataPoints) diff --git a/httpdns/src/model/ListDomainsRequest.cc b/httpdns/src/model/ListDomainsRequest.cc index 2f9786b2f..f7e66fe4f 100644 --- a/httpdns/src/model/ListDomainsRequest.cc +++ b/httpdns/src/model/ListDomainsRequest.cc @@ -33,7 +33,7 @@ int ListDomainsRequest::getPageSize()const void ListDomainsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListDomainsRequest::getPageNumber()const @@ -44,7 +44,7 @@ int ListDomainsRequest::getPageNumber()const void ListDomainsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListDomainsRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string ListDomainsRequest::getAccessKeyId()const void ListDomainsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/httpdns/src/model/ListDomainsResult.cc b/httpdns/src/model/ListDomainsResult.cc index 02441efa3..172b3b2b9 100644 --- a/httpdns/src/model/ListDomainsResult.cc +++ b/httpdns/src/model/ListDomainsResult.cc @@ -35,10 +35,13 @@ ListDomainsResult::~ListDomainsResult() void ListDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainInfos = value["DomainInfos"]["DomainInfo"]; for (auto value : allDomainInfos) diff --git a/imagesearch/src/model/AddItemRequest.cc b/imagesearch/src/model/AddItemRequest.cc index 5256100f7..02041695c 100644 --- a/imagesearch/src/model/AddItemRequest.cc +++ b/imagesearch/src/model/AddItemRequest.cc @@ -33,6 +33,6 @@ std::string AddItemRequest::getInstanceName()const void AddItemRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } diff --git a/imagesearch/src/model/AddItemResult.cc b/imagesearch/src/model/AddItemResult.cc index e9d5ad42c..0290cf83b 100644 --- a/imagesearch/src/model/AddItemResult.cc +++ b/imagesearch/src/model/AddItemResult.cc @@ -35,10 +35,13 @@ AddItemResult::~AddItemResult() void AddItemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/imagesearch/src/model/DeleteItemRequest.cc b/imagesearch/src/model/DeleteItemRequest.cc index 50d63aeb3..5aa99c850 100644 --- a/imagesearch/src/model/DeleteItemRequest.cc +++ b/imagesearch/src/model/DeleteItemRequest.cc @@ -33,6 +33,6 @@ std::string DeleteItemRequest::getInstanceName()const void DeleteItemRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } diff --git a/imagesearch/src/model/DeleteItemResult.cc b/imagesearch/src/model/DeleteItemResult.cc index 09544a918..dbdc52611 100644 --- a/imagesearch/src/model/DeleteItemResult.cc +++ b/imagesearch/src/model/DeleteItemResult.cc @@ -35,10 +35,13 @@ DeleteItemResult::~DeleteItemResult() void DeleteItemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/imagesearch/src/model/SearchItemRequest.cc b/imagesearch/src/model/SearchItemRequest.cc index 4d9b05070..d30c28da8 100644 --- a/imagesearch/src/model/SearchItemRequest.cc +++ b/imagesearch/src/model/SearchItemRequest.cc @@ -33,6 +33,6 @@ std::string SearchItemRequest::getInstanceName()const void SearchItemRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } diff --git a/imagesearch/src/model/SearchItemResult.cc b/imagesearch/src/model/SearchItemResult.cc index 04244f258..aa127eb10 100644 --- a/imagesearch/src/model/SearchItemResult.cc +++ b/imagesearch/src/model/SearchItemResult.cc @@ -35,10 +35,13 @@ SearchItemResult::~SearchItemResult() void SearchItemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAuctions = value["Auctions"]["Auction"]; for (auto value : allAuctions) diff --git a/imm/CMakeLists.txt b/imm/CMakeLists.txt index 8643bee6e..ece46d802 100644 --- a/imm/CMakeLists.txt +++ b/imm/CMakeLists.txt @@ -1,82 +1,474 @@ -# -# Copyright 2009-2017 Alibaba Cloud All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(imm_public_header include/alibabacloud/imm/ImmClient.h - include/alibabacloud/imm/ImmExport.h ) - -set(imm_public_header_model ) - + include/alibabacloud/imm/ImmExport.h ) + +set(imm_public_header_model + include/alibabacloud/imm/model/DetectImageFacesRequest.h + include/alibabacloud/imm/model/DetectImageFacesResult.h + include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h + include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h + include/alibabacloud/imm/model/DeleteImageRequest.h + include/alibabacloud/imm/model/DeleteImageResult.h + include/alibabacloud/imm/model/IndexTagRequest.h + include/alibabacloud/imm/model/IndexTagResult.h + include/alibabacloud/imm/model/CreateTagJobRequest.h + include/alibabacloud/imm/model/CreateTagJobResult.h + include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h + include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h + include/alibabacloud/imm/model/CompareFaceRequest.h + include/alibabacloud/imm/model/CompareFaceResult.h + include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h + include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h + include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h + include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h + include/alibabacloud/imm/model/ListSetsRequest.h + include/alibabacloud/imm/model/ListSetsResult.h + include/alibabacloud/imm/model/PutProjectRequest.h + include/alibabacloud/imm/model/PutProjectResult.h + include/alibabacloud/imm/model/FindImagesRequest.h + include/alibabacloud/imm/model/FindImagesResult.h + include/alibabacloud/imm/model/DetectImageLogosRequest.h + include/alibabacloud/imm/model/DetectImageLogosResult.h + include/alibabacloud/imm/model/GetProjectRequest.h + include/alibabacloud/imm/model/GetProjectResult.h + include/alibabacloud/imm/model/DeleteTagSetRequest.h + include/alibabacloud/imm/model/DeleteTagSetResult.h + include/alibabacloud/imm/model/DeleteProjectRequest.h + include/alibabacloud/imm/model/DeleteProjectResult.h + include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h + include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h + include/alibabacloud/imm/model/SearchFaceRequest.h + include/alibabacloud/imm/model/SearchFaceResult.h + include/alibabacloud/imm/model/DetectImageCelebrityRequest.h + include/alibabacloud/imm/model/DetectImageCelebrityResult.h + include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h + include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h + include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h + include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h + include/alibabacloud/imm/model/GetTagSetRequest.h + include/alibabacloud/imm/model/GetTagSetResult.h + include/alibabacloud/imm/model/ListTagPhotosRequest.h + include/alibabacloud/imm/model/ListTagPhotosResult.h + include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h + include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h + include/alibabacloud/imm/model/IndexVideoRequest.h + include/alibabacloud/imm/model/IndexVideoResult.h + include/alibabacloud/imm/model/ListVideoAudiosRequest.h + include/alibabacloud/imm/model/ListVideoAudiosResult.h + include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h + include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h + include/alibabacloud/imm/model/ListTagNamesRequest.h + include/alibabacloud/imm/model/ListTagNamesResult.h + include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h + include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h + include/alibabacloud/imm/model/GetFaceSearchGroupResult.h + include/alibabacloud/imm/model/CompareImageFacesRequest.h + include/alibabacloud/imm/model/CompareImageFacesResult.h + include/alibabacloud/imm/model/DeleteTagJobRequest.h + include/alibabacloud/imm/model/DeleteTagJobResult.h + include/alibabacloud/imm/model/PhotoProcessRequest.h + include/alibabacloud/imm/model/PhotoProcessResult.h + include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h + include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h + include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h + include/alibabacloud/imm/model/CreateTagSetRequest.h + include/alibabacloud/imm/model/CreateTagSetResult.h + include/alibabacloud/imm/model/RegistFaceRequest.h + include/alibabacloud/imm/model/RegistFaceResult.h + include/alibabacloud/imm/model/GetFaceSearchUserRequest.h + include/alibabacloud/imm/model/GetFaceSearchUserResult.h + include/alibabacloud/imm/model/CreateFaceSetRequest.h + include/alibabacloud/imm/model/CreateFaceSetResult.h + include/alibabacloud/imm/model/ListProjectAPIsRequest.h + include/alibabacloud/imm/model/ListProjectAPIsResult.h + include/alibabacloud/imm/model/DetectImageTextsRequest.h + include/alibabacloud/imm/model/DetectImageTextsResult.h + include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h + include/alibabacloud/imm/model/CreateGroupFacesJobResult.h + include/alibabacloud/imm/model/DeleteVideoRequest.h + include/alibabacloud/imm/model/DeleteVideoResult.h + include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h + include/alibabacloud/imm/model/ListFaceGroupsRequest.h + include/alibabacloud/imm/model/ListFaceGroupsResult.h + include/alibabacloud/imm/model/DetectImageTagsRequest.h + include/alibabacloud/imm/model/DetectImageTagsResult.h + include/alibabacloud/imm/model/ListProjectsRequest.h + include/alibabacloud/imm/model/ListProjectsResult.h + include/alibabacloud/imm/model/DeleteSetRequest.h + include/alibabacloud/imm/model/DeleteSetResult.h + include/alibabacloud/imm/model/GetFaceSearchImageRequest.h + include/alibabacloud/imm/model/GetFaceSearchImageResult.h + include/alibabacloud/imm/model/DetectTagRequest.h + include/alibabacloud/imm/model/DetectTagResult.h + include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h + include/alibabacloud/imm/model/CreateCADConversionTaskResult.h + include/alibabacloud/imm/model/DeleteFaceJobRequest.h + include/alibabacloud/imm/model/DeleteFaceJobResult.h + include/alibabacloud/imm/model/GetTagJobRequest.h + include/alibabacloud/imm/model/GetTagJobResult.h + include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h + include/alibabacloud/imm/model/CreateDocIndexTaskResult.h + include/alibabacloud/imm/model/GetVideoTaskRequest.h + include/alibabacloud/imm/model/GetVideoTaskResult.h + include/alibabacloud/imm/model/GetSetRequest.h + include/alibabacloud/imm/model/GetSetResult.h + include/alibabacloud/imm/model/SearchDocIndexRequest.h + include/alibabacloud/imm/model/SearchDocIndexResult.h + include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h + include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h + include/alibabacloud/imm/model/ListVideosRequest.h + include/alibabacloud/imm/model/ListVideosResult.h + include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h + include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h + include/alibabacloud/imm/model/DeleteTagByNameRequest.h + include/alibabacloud/imm/model/DeleteTagByNameResult.h + include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h + include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h + include/alibabacloud/imm/model/ListSetTagsRequest.h + include/alibabacloud/imm/model/ListSetTagsResult.h + include/alibabacloud/imm/model/DeleteVideoTaskRequest.h + include/alibabacloud/imm/model/DeleteVideoTaskResult.h + include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h + include/alibabacloud/imm/model/FindImagesByTagNamesResult.h + include/alibabacloud/imm/model/GetImageRequest.h + include/alibabacloud/imm/model/GetImageResult.h + include/alibabacloud/imm/model/GetMediaMetaRequest.h + include/alibabacloud/imm/model/GetMediaMetaResult.h + include/alibabacloud/imm/model/CreateSetRequest.h + include/alibabacloud/imm/model/CreateSetResult.h + include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h + include/alibabacloud/imm/model/ConvertOfficeFormatResult.h + include/alibabacloud/imm/model/UpdateFaceGroupRequest.h + include/alibabacloud/imm/model/UpdateFaceGroupResult.h + include/alibabacloud/imm/model/DetectImageBodiesRequest.h + include/alibabacloud/imm/model/DetectImageBodiesResult.h + include/alibabacloud/imm/model/DeleteDocIndexRequest.h + include/alibabacloud/imm/model/DeleteDocIndexResult.h + include/alibabacloud/imm/model/GetImageJobRequest.h + include/alibabacloud/imm/model/GetImageJobResult.h + include/alibabacloud/imm/model/GetDocIndexTaskRequest.h + include/alibabacloud/imm/model/GetDocIndexTaskResult.h + include/alibabacloud/imm/model/DeleteTagByUrlRequest.h + include/alibabacloud/imm/model/DeleteTagByUrlResult.h + include/alibabacloud/imm/model/ListTagSetsRequest.h + include/alibabacloud/imm/model/ListTagSetsResult.h + include/alibabacloud/imm/model/DetectQRCodesRequest.h + include/alibabacloud/imm/model/DetectQRCodesResult.h + include/alibabacloud/imm/model/GetVideoRequest.h + include/alibabacloud/imm/model/GetVideoResult.h + include/alibabacloud/imm/model/ListImagesRequest.h + include/alibabacloud/imm/model/ListImagesResult.h + include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h + include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h + include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h + include/alibabacloud/imm/model/ListVideoFramesRequest.h + include/alibabacloud/imm/model/ListVideoFramesResult.h + include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h + include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h + include/alibabacloud/imm/model/DetectClothesRequest.h + include/alibabacloud/imm/model/DetectClothesResult.h + include/alibabacloud/imm/model/ListTagJobsRequest.h + include/alibabacloud/imm/model/ListTagJobsResult.h + include/alibabacloud/imm/model/DetectLogoRequest.h + include/alibabacloud/imm/model/DetectLogoResult.h + include/alibabacloud/imm/model/DescribeRegionsRequest.h + include/alibabacloud/imm/model/DescribeRegionsResult.h + include/alibabacloud/imm/model/FindSimilarFacesRequest.h + include/alibabacloud/imm/model/FindSimilarFacesResult.h + include/alibabacloud/imm/model/DeleteImageJobRequest.h + include/alibabacloud/imm/model/DeleteImageJobResult.h + include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h + include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h + include/alibabacloud/imm/model/GetDocIndexRequest.h + include/alibabacloud/imm/model/GetDocIndexResult.h + include/alibabacloud/imm/model/IndexImageRequest.h + include/alibabacloud/imm/model/IndexImageResult.h + include/alibabacloud/imm/model/ListImageJobsRequest.h + include/alibabacloud/imm/model/ListImageJobsResult.h + include/alibabacloud/imm/model/UpdateImageRequest.h + include/alibabacloud/imm/model/UpdateImageResult.h + include/alibabacloud/imm/model/ListVideoTasksRequest.h + include/alibabacloud/imm/model/ListVideoTasksResult.h + include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h + include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h + include/alibabacloud/imm/model/UpdateProjectRequest.h + include/alibabacloud/imm/model/UpdateProjectResult.h + include/alibabacloud/imm/model/UpdateSetRequest.h + include/alibabacloud/imm/model/UpdateSetResult.h ) + set(imm_src - src/ImmClient.cc ) - -add_library(imm ${LIB_TYPE} - ${imm_public_header} - ${imm_public_header_model} - ${imm_src}) - -set_target_properties(imm - 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}imm - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(imm - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_IMM_LIBRARY) -endif() - -target_include_directories(imm - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(imm - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(imm - jsoncpp) - target_include_directories(imm - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(imm - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(imm - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(imm - PRIVATE /usr/include/jsoncpp) - target_link_libraries(imm - jsoncpp) -endif() - -install(FILES ${imm_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imm) -install(FILES ${imm_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imm/model) -install(TARGETS imm - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/ImmClient.cc + src/model/DetectImageFacesRequest.cc + src/model/DetectImageFacesResult.cc + src/model/ListPornBatchDetectJobsRequest.cc + src/model/ListPornBatchDetectJobsResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc + src/model/IndexTagRequest.cc + src/model/IndexTagResult.cc + src/model/CreateTagJobRequest.cc + src/model/CreateTagJobResult.cc + src/model/CreateVideoAnalyseTaskRequest.cc + src/model/CreateVideoAnalyseTaskResult.cc + src/model/CompareFaceRequest.cc + src/model/CompareFaceResult.cc + src/model/ListFaceSearchGroupUsersRequest.cc + src/model/ListFaceSearchGroupUsersResult.cc + src/model/ListFaceSearchGroupImagesRequest.cc + src/model/ListFaceSearchGroupImagesResult.cc + src/model/ListSetsRequest.cc + src/model/ListSetsResult.cc + src/model/PutProjectRequest.cc + src/model/PutProjectResult.cc + src/model/FindImagesRequest.cc + src/model/FindImagesResult.cc + src/model/DetectImageLogosRequest.cc + src/model/DetectImageLogosResult.cc + src/model/GetProjectRequest.cc + src/model/GetProjectResult.cc + src/model/DeleteTagSetRequest.cc + src/model/DeleteTagSetResult.cc + src/model/DeleteProjectRequest.cc + src/model/DeleteProjectResult.cc + src/model/UpdateDocIndexMetaRequest.cc + src/model/UpdateDocIndexMetaResult.cc + src/model/SearchFaceRequest.cc + src/model/SearchFaceResult.cc + src/model/DetectImageCelebrityRequest.cc + src/model/DetectImageCelebrityResult.cc + src/model/ListFaceSearchGroupsRequest.cc + src/model/ListFaceSearchGroupsResult.cc + src/model/DeletePornBatchDetectJobRequest.cc + src/model/DeletePornBatchDetectJobResult.cc + src/model/GetTagSetRequest.cc + src/model/GetTagSetResult.cc + src/model/ListTagPhotosRequest.cc + src/model/ListTagPhotosResult.cc + src/model/DeleteFaceSearchImageByIdRequest.cc + src/model/DeleteFaceSearchImageByIdResult.cc + src/model/IndexVideoRequest.cc + src/model/IndexVideoResult.cc + src/model/ListVideoAudiosRequest.cc + src/model/ListVideoAudiosResult.cc + src/model/CreateMergeFaceGroupsJobRequest.cc + src/model/CreateMergeFaceGroupsJobResult.cc + src/model/ListTagNamesRequest.cc + src/model/ListTagNamesResult.cc + src/model/CreateOfficeConversionTaskRequest.cc + src/model/CreateOfficeConversionTaskResult.cc + src/model/GetFaceSearchGroupRequest.cc + src/model/GetFaceSearchGroupResult.cc + src/model/CompareImageFacesRequest.cc + src/model/CompareImageFacesResult.cc + src/model/DeleteTagJobRequest.cc + src/model/DeleteTagJobResult.cc + src/model/PhotoProcessRequest.cc + src/model/PhotoProcessResult.cc + src/model/DeleteFaceSearchUserRequest.cc + src/model/DeleteFaceSearchUserResult.cc + src/model/GetOfficeConversionTaskRequest.cc + src/model/GetOfficeConversionTaskResult.cc + src/model/CreateTagSetRequest.cc + src/model/CreateTagSetResult.cc + src/model/RegistFaceRequest.cc + src/model/RegistFaceResult.cc + src/model/GetFaceSearchUserRequest.cc + src/model/GetFaceSearchUserResult.cc + src/model/CreateFaceSetRequest.cc + src/model/CreateFaceSetResult.cc + src/model/ListProjectAPIsRequest.cc + src/model/ListProjectAPIsResult.cc + src/model/DetectImageTextsRequest.cc + src/model/DetectImageTextsResult.cc + src/model/CreateGroupFacesJobRequest.cc + src/model/CreateGroupFacesJobResult.cc + src/model/DeleteVideoRequest.cc + src/model/DeleteVideoResult.cc + src/model/ListOfficeConversionTaskRequest.cc + src/model/ListOfficeConversionTaskResult.cc + src/model/ListFaceGroupsRequest.cc + src/model/ListFaceGroupsResult.cc + src/model/DetectImageTagsRequest.cc + src/model/DetectImageTagsResult.cc + src/model/ListProjectsRequest.cc + src/model/ListProjectsResult.cc + src/model/DeleteSetRequest.cc + src/model/DeleteSetResult.cc + src/model/GetFaceSearchImageRequest.cc + src/model/GetFaceSearchImageResult.cc + src/model/DetectTagRequest.cc + src/model/DetectTagResult.cc + src/model/CreateCADConversionTaskRequest.cc + src/model/CreateCADConversionTaskResult.cc + src/model/DeleteFaceJobRequest.cc + src/model/DeleteFaceJobResult.cc + src/model/GetTagJobRequest.cc + src/model/GetTagJobResult.cc + src/model/CreateDocIndexTaskRequest.cc + src/model/CreateDocIndexTaskResult.cc + src/model/GetVideoTaskRequest.cc + src/model/GetVideoTaskResult.cc + src/model/GetSetRequest.cc + src/model/GetSetResult.cc + src/model/SearchDocIndexRequest.cc + src/model/SearchDocIndexResult.cc + src/model/ListPhotoProcessTasksRequest.cc + src/model/ListPhotoProcessTasksResult.cc + src/model/ListVideosRequest.cc + src/model/ListVideosResult.cc + src/model/CreatePornBatchDetectJobRequest.cc + src/model/CreatePornBatchDetectJobResult.cc + src/model/DeleteTagByNameRequest.cc + src/model/DeleteTagByNameResult.cc + src/model/DeletePhotoProcessTaskRequest.cc + src/model/DeletePhotoProcessTaskResult.cc + src/model/ListSetTagsRequest.cc + src/model/ListSetTagsResult.cc + src/model/DeleteVideoTaskRequest.cc + src/model/DeleteVideoTaskResult.cc + src/model/FindImagesByTagNamesRequest.cc + src/model/FindImagesByTagNamesResult.cc + src/model/GetImageRequest.cc + src/model/GetImageResult.cc + src/model/GetMediaMetaRequest.cc + src/model/GetMediaMetaResult.cc + src/model/CreateSetRequest.cc + src/model/CreateSetResult.cc + src/model/ConvertOfficeFormatRequest.cc + src/model/ConvertOfficeFormatResult.cc + src/model/UpdateFaceGroupRequest.cc + src/model/UpdateFaceGroupResult.cc + src/model/DetectImageBodiesRequest.cc + src/model/DetectImageBodiesResult.cc + src/model/DeleteDocIndexRequest.cc + src/model/DeleteDocIndexResult.cc + src/model/GetImageJobRequest.cc + src/model/GetImageJobResult.cc + src/model/GetDocIndexTaskRequest.cc + src/model/GetDocIndexTaskResult.cc + src/model/DeleteTagByUrlRequest.cc + src/model/DeleteTagByUrlResult.cc + src/model/ListTagSetsRequest.cc + src/model/ListTagSetsResult.cc + src/model/DetectQRCodesRequest.cc + src/model/DetectQRCodesResult.cc + src/model/GetVideoRequest.cc + src/model/GetVideoResult.cc + src/model/ListImagesRequest.cc + src/model/ListImagesResult.cc + src/model/DeleteOfficeConversionTaskRequest.cc + src/model/DeleteOfficeConversionTaskResult.cc + src/model/GetPhotoProcessTaskRequest.cc + src/model/GetPhotoProcessTaskResult.cc + src/model/ListVideoFramesRequest.cc + src/model/ListVideoFramesResult.cc + src/model/GetPornBatchDetectJobRequest.cc + src/model/GetPornBatchDetectJobResult.cc + src/model/DetectClothesRequest.cc + src/model/DetectClothesResult.cc + src/model/ListTagJobsRequest.cc + src/model/ListTagJobsResult.cc + src/model/DetectLogoRequest.cc + src/model/DetectLogoResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/FindSimilarFacesRequest.cc + src/model/FindSimilarFacesResult.cc + src/model/DeleteImageJobRequest.cc + src/model/DeleteImageJobResult.cc + src/model/DeleteFaceSearchGroupRequest.cc + src/model/DeleteFaceSearchGroupResult.cc + src/model/GetDocIndexRequest.cc + src/model/GetDocIndexResult.cc + src/model/IndexImageRequest.cc + src/model/IndexImageResult.cc + src/model/ListImageJobsRequest.cc + src/model/ListImageJobsResult.cc + src/model/UpdateImageRequest.cc + src/model/UpdateImageResult.cc + src/model/ListVideoTasksRequest.cc + src/model/ListVideoTasksResult.cc + src/model/CreateVideoCompressTaskRequest.cc + src/model/CreateVideoCompressTaskResult.cc + src/model/UpdateProjectRequest.cc + src/model/UpdateProjectResult.cc + src/model/UpdateSetRequest.cc + src/model/UpdateSetResult.cc ) + +add_library(imm ${LIB_TYPE} + ${imm_public_header} + ${imm_public_header_model} + ${imm_src}) + +set_target_properties(imm + 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}imm + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(imm + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_IMM_LIBRARY) +endif() + +target_include_directories(imm + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(imm + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(imm + jsoncpp) + target_include_directories(imm + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(imm + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(imm + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(imm + PRIVATE /usr/include/jsoncpp) + target_link_libraries(imm + jsoncpp) +endif() + +install(FILES ${imm_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imm) +install(FILES ${imm_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imm/model) +install(TARGETS imm + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/ImmClient.h b/imm/include/alibabacloud/imm/ImmClient.h index 9cfbbaa64..58ec8560d 100644 --- a/imm/include/alibabacloud/imm/ImmClient.h +++ b/imm/include/alibabacloud/imm/ImmClient.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_IMMCLIENT_H_ -#define ALIBABACLOUD_IMM_IMMCLIENT_H_ - -#include -#include -#include -#include -#include "ImmExport.h" -#include "model/ListPornBatchDetectJobsRequest.h" -#include "model/ListPornBatchDetectJobsResult.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_IMMCLIENT_H_ +#define ALIBABACLOUD_IMM_IMMCLIENT_H_ + +#include +#include +#include +#include +#include "ImmExport.h" #include "model/DetectImageFacesRequest.h" #include "model/DetectImageFacesResult.h" +#include "model/ListPornBatchDetectJobsRequest.h" +#include "model/ListPornBatchDetectJobsResult.h" #include "model/DeleteImageRequest.h" #include "model/DeleteImageResult.h" -#include "model/CreateTagJobRequest.h" -#include "model/CreateTagJobResult.h" #include "model/IndexTagRequest.h" #include "model/IndexTagResult.h" +#include "model/CreateTagJobRequest.h" +#include "model/CreateTagJobResult.h" #include "model/CreateVideoAnalyseTaskRequest.h" #include "model/CreateVideoAnalyseTaskResult.h" #include "model/CompareFaceRequest.h" @@ -40,10 +40,10 @@ #include "model/ListFaceSearchGroupUsersResult.h" #include "model/ListFaceSearchGroupImagesRequest.h" #include "model/ListFaceSearchGroupImagesResult.h" -#include "model/PutProjectRequest.h" -#include "model/PutProjectResult.h" #include "model/ListSetsRequest.h" #include "model/ListSetsResult.h" +#include "model/PutProjectRequest.h" +#include "model/PutProjectResult.h" #include "model/FindImagesRequest.h" #include "model/FindImagesResult.h" #include "model/DetectImageLogosRequest.h" @@ -60,22 +60,22 @@ #include "model/SearchFaceResult.h" #include "model/DetectImageCelebrityRequest.h" #include "model/DetectImageCelebrityResult.h" +#include "model/ListFaceSearchGroupsRequest.h" +#include "model/ListFaceSearchGroupsResult.h" #include "model/DeletePornBatchDetectJobRequest.h" #include "model/DeletePornBatchDetectJobResult.h" #include "model/GetTagSetRequest.h" #include "model/GetTagSetResult.h" -#include "model/ListFaceSearchGroupsRequest.h" -#include "model/ListFaceSearchGroupsResult.h" #include "model/ListTagPhotosRequest.h" #include "model/ListTagPhotosResult.h" #include "model/DeleteFaceSearchImageByIdRequest.h" #include "model/DeleteFaceSearchImageByIdResult.h" #include "model/IndexVideoRequest.h" #include "model/IndexVideoResult.h" -#include "model/CreateMergeFaceGroupsJobRequest.h" -#include "model/CreateMergeFaceGroupsJobResult.h" #include "model/ListVideoAudiosRequest.h" #include "model/ListVideoAudiosResult.h" +#include "model/CreateMergeFaceGroupsJobRequest.h" +#include "model/CreateMergeFaceGroupsJobResult.h" #include "model/ListTagNamesRequest.h" #include "model/ListTagNamesResult.h" #include "model/CreateOfficeConversionTaskRequest.h" @@ -90,12 +90,12 @@ #include "model/PhotoProcessResult.h" #include "model/DeleteFaceSearchUserRequest.h" #include "model/DeleteFaceSearchUserResult.h" -#include "model/RegistFaceRequest.h" -#include "model/RegistFaceResult.h" #include "model/GetOfficeConversionTaskRequest.h" #include "model/GetOfficeConversionTaskResult.h" #include "model/CreateTagSetRequest.h" #include "model/CreateTagSetResult.h" +#include "model/RegistFaceRequest.h" +#include "model/RegistFaceResult.h" #include "model/GetFaceSearchUserRequest.h" #include "model/GetFaceSearchUserResult.h" #include "model/CreateFaceSetRequest.h" @@ -106,10 +106,10 @@ #include "model/DetectImageTextsResult.h" #include "model/CreateGroupFacesJobRequest.h" #include "model/CreateGroupFacesJobResult.h" -#include "model/ListOfficeConversionTaskRequest.h" -#include "model/ListOfficeConversionTaskResult.h" #include "model/DeleteVideoRequest.h" #include "model/DeleteVideoResult.h" +#include "model/ListOfficeConversionTaskRequest.h" +#include "model/ListOfficeConversionTaskResult.h" #include "model/ListFaceGroupsRequest.h" #include "model/ListFaceGroupsResult.h" #include "model/DetectImageTagsRequest.h" @@ -188,12 +188,12 @@ #include "model/ListVideoFramesResult.h" #include "model/GetPornBatchDetectJobRequest.h" #include "model/GetPornBatchDetectJobResult.h" -#include "model/DetectLogoRequest.h" -#include "model/DetectLogoResult.h" #include "model/DetectClothesRequest.h" #include "model/DetectClothesResult.h" #include "model/ListTagJobsRequest.h" #include "model/ListTagJobsResult.h" +#include "model/DetectLogoRequest.h" +#include "model/DetectLogoResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" #include "model/FindSimilarFacesRequest.h" @@ -218,613 +218,613 @@ #include "model/UpdateProjectResult.h" #include "model/UpdateSetRequest.h" #include "model/UpdateSetResult.h" - - -namespace AlibabaCloud -{ - namespace Imm - { - class ALIBABACLOUD_IMM_EXPORT ImmClient : public RpcServiceClient - { - public: - typedef Outcome ListPornBatchDetectJobsOutcome; - typedef std::future ListPornBatchDetectJobsOutcomeCallable; - typedef std::function&)> ListPornBatchDetectJobsAsyncHandler; - typedef Outcome DetectImageFacesOutcome; - typedef std::future DetectImageFacesOutcomeCallable; + + +namespace AlibabaCloud +{ + namespace Imm + { + class ALIBABACLOUD_IMM_EXPORT ImmClient : public RpcServiceClient + { + public: + typedef Outcome DetectImageFacesOutcome; + typedef std::future DetectImageFacesOutcomeCallable; typedef std::function&)> DetectImageFacesAsyncHandler; - typedef Outcome DeleteImageOutcome; - typedef std::future DeleteImageOutcomeCallable; + typedef Outcome ListPornBatchDetectJobsOutcome; + typedef std::future ListPornBatchDetectJobsOutcomeCallable; + typedef std::function&)> ListPornBatchDetectJobsAsyncHandler; + typedef Outcome DeleteImageOutcome; + typedef std::future DeleteImageOutcomeCallable; typedef std::function&)> DeleteImageAsyncHandler; - typedef Outcome CreateTagJobOutcome; - typedef std::future CreateTagJobOutcomeCallable; - typedef std::function&)> CreateTagJobAsyncHandler; - typedef Outcome IndexTagOutcome; - typedef std::future IndexTagOutcomeCallable; + typedef Outcome IndexTagOutcome; + typedef std::future IndexTagOutcomeCallable; typedef std::function&)> IndexTagAsyncHandler; - typedef Outcome CreateVideoAnalyseTaskOutcome; - typedef std::future CreateVideoAnalyseTaskOutcomeCallable; + typedef Outcome CreateTagJobOutcome; + typedef std::future CreateTagJobOutcomeCallable; + typedef std::function&)> CreateTagJobAsyncHandler; + typedef Outcome CreateVideoAnalyseTaskOutcome; + typedef std::future CreateVideoAnalyseTaskOutcomeCallable; typedef std::function&)> CreateVideoAnalyseTaskAsyncHandler; - typedef Outcome CompareFaceOutcome; - typedef std::future CompareFaceOutcomeCallable; + typedef Outcome CompareFaceOutcome; + typedef std::future CompareFaceOutcomeCallable; typedef std::function&)> CompareFaceAsyncHandler; - typedef Outcome ListFaceSearchGroupUsersOutcome; - typedef std::future ListFaceSearchGroupUsersOutcomeCallable; + typedef Outcome ListFaceSearchGroupUsersOutcome; + typedef std::future ListFaceSearchGroupUsersOutcomeCallable; typedef std::function&)> ListFaceSearchGroupUsersAsyncHandler; - typedef Outcome ListFaceSearchGroupImagesOutcome; - typedef std::future ListFaceSearchGroupImagesOutcomeCallable; + typedef Outcome ListFaceSearchGroupImagesOutcome; + typedef std::future ListFaceSearchGroupImagesOutcomeCallable; typedef std::function&)> ListFaceSearchGroupImagesAsyncHandler; - typedef Outcome PutProjectOutcome; - typedef std::future PutProjectOutcomeCallable; - typedef std::function&)> PutProjectAsyncHandler; - typedef Outcome ListSetsOutcome; - typedef std::future ListSetsOutcomeCallable; + typedef Outcome ListSetsOutcome; + typedef std::future ListSetsOutcomeCallable; typedef std::function&)> ListSetsAsyncHandler; - typedef Outcome FindImagesOutcome; - typedef std::future FindImagesOutcomeCallable; + typedef Outcome PutProjectOutcome; + typedef std::future PutProjectOutcomeCallable; + typedef std::function&)> PutProjectAsyncHandler; + typedef Outcome FindImagesOutcome; + typedef std::future FindImagesOutcomeCallable; typedef std::function&)> FindImagesAsyncHandler; - typedef Outcome DetectImageLogosOutcome; - typedef std::future DetectImageLogosOutcomeCallable; + typedef Outcome DetectImageLogosOutcome; + typedef std::future DetectImageLogosOutcomeCallable; typedef std::function&)> DetectImageLogosAsyncHandler; - typedef Outcome GetProjectOutcome; - typedef std::future GetProjectOutcomeCallable; + typedef Outcome GetProjectOutcome; + typedef std::future GetProjectOutcomeCallable; typedef std::function&)> GetProjectAsyncHandler; - typedef Outcome DeleteTagSetOutcome; - typedef std::future DeleteTagSetOutcomeCallable; + typedef Outcome DeleteTagSetOutcome; + typedef std::future DeleteTagSetOutcomeCallable; typedef std::function&)> DeleteTagSetAsyncHandler; - typedef Outcome DeleteProjectOutcome; - typedef std::future DeleteProjectOutcomeCallable; + typedef Outcome DeleteProjectOutcome; + typedef std::future DeleteProjectOutcomeCallable; typedef std::function&)> DeleteProjectAsyncHandler; - typedef Outcome UpdateDocIndexMetaOutcome; - typedef std::future UpdateDocIndexMetaOutcomeCallable; + typedef Outcome UpdateDocIndexMetaOutcome; + typedef std::future UpdateDocIndexMetaOutcomeCallable; typedef std::function&)> UpdateDocIndexMetaAsyncHandler; - typedef Outcome SearchFaceOutcome; - typedef std::future SearchFaceOutcomeCallable; + typedef Outcome SearchFaceOutcome; + typedef std::future SearchFaceOutcomeCallable; typedef std::function&)> SearchFaceAsyncHandler; - typedef Outcome DetectImageCelebrityOutcome; - typedef std::future DetectImageCelebrityOutcomeCallable; + typedef Outcome DetectImageCelebrityOutcome; + typedef std::future DetectImageCelebrityOutcomeCallable; typedef std::function&)> DetectImageCelebrityAsyncHandler; - typedef Outcome DeletePornBatchDetectJobOutcome; - typedef std::future DeletePornBatchDetectJobOutcomeCallable; - typedef std::function&)> DeletePornBatchDetectJobAsyncHandler; - typedef Outcome GetTagSetOutcome; - typedef std::future GetTagSetOutcomeCallable; - typedef std::function&)> GetTagSetAsyncHandler; - typedef Outcome ListFaceSearchGroupsOutcome; - typedef std::future ListFaceSearchGroupsOutcomeCallable; + typedef Outcome ListFaceSearchGroupsOutcome; + typedef std::future ListFaceSearchGroupsOutcomeCallable; typedef std::function&)> ListFaceSearchGroupsAsyncHandler; - typedef Outcome ListTagPhotosOutcome; - typedef std::future ListTagPhotosOutcomeCallable; + typedef Outcome DeletePornBatchDetectJobOutcome; + typedef std::future DeletePornBatchDetectJobOutcomeCallable; + typedef std::function&)> DeletePornBatchDetectJobAsyncHandler; + typedef Outcome GetTagSetOutcome; + typedef std::future GetTagSetOutcomeCallable; + typedef std::function&)> GetTagSetAsyncHandler; + typedef Outcome ListTagPhotosOutcome; + typedef std::future ListTagPhotosOutcomeCallable; typedef std::function&)> ListTagPhotosAsyncHandler; - typedef Outcome DeleteFaceSearchImageByIdOutcome; - typedef std::future DeleteFaceSearchImageByIdOutcomeCallable; + typedef Outcome DeleteFaceSearchImageByIdOutcome; + typedef std::future DeleteFaceSearchImageByIdOutcomeCallable; typedef std::function&)> DeleteFaceSearchImageByIdAsyncHandler; - typedef Outcome IndexVideoOutcome; - typedef std::future IndexVideoOutcomeCallable; + typedef Outcome IndexVideoOutcome; + typedef std::future IndexVideoOutcomeCallable; typedef std::function&)> IndexVideoAsyncHandler; - typedef Outcome CreateMergeFaceGroupsJobOutcome; - typedef std::future CreateMergeFaceGroupsJobOutcomeCallable; - typedef std::function&)> CreateMergeFaceGroupsJobAsyncHandler; - typedef Outcome ListVideoAudiosOutcome; - typedef std::future ListVideoAudiosOutcomeCallable; + typedef Outcome ListVideoAudiosOutcome; + typedef std::future ListVideoAudiosOutcomeCallable; typedef std::function&)> ListVideoAudiosAsyncHandler; - typedef Outcome ListTagNamesOutcome; - typedef std::future ListTagNamesOutcomeCallable; + typedef Outcome CreateMergeFaceGroupsJobOutcome; + typedef std::future CreateMergeFaceGroupsJobOutcomeCallable; + typedef std::function&)> CreateMergeFaceGroupsJobAsyncHandler; + typedef Outcome ListTagNamesOutcome; + typedef std::future ListTagNamesOutcomeCallable; typedef std::function&)> ListTagNamesAsyncHandler; - typedef Outcome CreateOfficeConversionTaskOutcome; - typedef std::future CreateOfficeConversionTaskOutcomeCallable; + typedef Outcome CreateOfficeConversionTaskOutcome; + typedef std::future CreateOfficeConversionTaskOutcomeCallable; typedef std::function&)> CreateOfficeConversionTaskAsyncHandler; - typedef Outcome GetFaceSearchGroupOutcome; - typedef std::future GetFaceSearchGroupOutcomeCallable; + typedef Outcome GetFaceSearchGroupOutcome; + typedef std::future GetFaceSearchGroupOutcomeCallable; typedef std::function&)> GetFaceSearchGroupAsyncHandler; - typedef Outcome CompareImageFacesOutcome; - typedef std::future CompareImageFacesOutcomeCallable; + typedef Outcome CompareImageFacesOutcome; + typedef std::future CompareImageFacesOutcomeCallable; typedef std::function&)> CompareImageFacesAsyncHandler; - typedef Outcome DeleteTagJobOutcome; - typedef std::future DeleteTagJobOutcomeCallable; + typedef Outcome DeleteTagJobOutcome; + typedef std::future DeleteTagJobOutcomeCallable; typedef std::function&)> DeleteTagJobAsyncHandler; - typedef Outcome PhotoProcessOutcome; - typedef std::future PhotoProcessOutcomeCallable; + typedef Outcome PhotoProcessOutcome; + typedef std::future PhotoProcessOutcomeCallable; typedef std::function&)> PhotoProcessAsyncHandler; - typedef Outcome DeleteFaceSearchUserOutcome; - typedef std::future DeleteFaceSearchUserOutcomeCallable; + typedef Outcome DeleteFaceSearchUserOutcome; + typedef std::future DeleteFaceSearchUserOutcomeCallable; typedef std::function&)> DeleteFaceSearchUserAsyncHandler; - typedef Outcome RegistFaceOutcome; - typedef std::future RegistFaceOutcomeCallable; - typedef std::function&)> RegistFaceAsyncHandler; - typedef Outcome GetOfficeConversionTaskOutcome; - typedef std::future GetOfficeConversionTaskOutcomeCallable; + typedef Outcome GetOfficeConversionTaskOutcome; + typedef std::future GetOfficeConversionTaskOutcomeCallable; typedef std::function&)> GetOfficeConversionTaskAsyncHandler; - typedef Outcome CreateTagSetOutcome; - typedef std::future CreateTagSetOutcomeCallable; + typedef Outcome CreateTagSetOutcome; + typedef std::future CreateTagSetOutcomeCallable; typedef std::function&)> CreateTagSetAsyncHandler; - typedef Outcome GetFaceSearchUserOutcome; - typedef std::future GetFaceSearchUserOutcomeCallable; + typedef Outcome RegistFaceOutcome; + typedef std::future RegistFaceOutcomeCallable; + typedef std::function&)> RegistFaceAsyncHandler; + typedef Outcome GetFaceSearchUserOutcome; + typedef std::future GetFaceSearchUserOutcomeCallable; typedef std::function&)> GetFaceSearchUserAsyncHandler; - typedef Outcome CreateFaceSetOutcome; - typedef std::future CreateFaceSetOutcomeCallable; + typedef Outcome CreateFaceSetOutcome; + typedef std::future CreateFaceSetOutcomeCallable; typedef std::function&)> CreateFaceSetAsyncHandler; - typedef Outcome ListProjectAPIsOutcome; - typedef std::future ListProjectAPIsOutcomeCallable; + typedef Outcome ListProjectAPIsOutcome; + typedef std::future ListProjectAPIsOutcomeCallable; typedef std::function&)> ListProjectAPIsAsyncHandler; - typedef Outcome DetectImageTextsOutcome; - typedef std::future DetectImageTextsOutcomeCallable; + typedef Outcome DetectImageTextsOutcome; + typedef std::future DetectImageTextsOutcomeCallable; typedef std::function&)> DetectImageTextsAsyncHandler; - typedef Outcome CreateGroupFacesJobOutcome; - typedef std::future CreateGroupFacesJobOutcomeCallable; + typedef Outcome CreateGroupFacesJobOutcome; + typedef std::future CreateGroupFacesJobOutcomeCallable; typedef std::function&)> CreateGroupFacesJobAsyncHandler; - typedef Outcome ListOfficeConversionTaskOutcome; - typedef std::future ListOfficeConversionTaskOutcomeCallable; - typedef std::function&)> ListOfficeConversionTaskAsyncHandler; - typedef Outcome DeleteVideoOutcome; - typedef std::future DeleteVideoOutcomeCallable; + typedef Outcome DeleteVideoOutcome; + typedef std::future DeleteVideoOutcomeCallable; typedef std::function&)> DeleteVideoAsyncHandler; - typedef Outcome ListFaceGroupsOutcome; - typedef std::future ListFaceGroupsOutcomeCallable; + typedef Outcome ListOfficeConversionTaskOutcome; + typedef std::future ListOfficeConversionTaskOutcomeCallable; + typedef std::function&)> ListOfficeConversionTaskAsyncHandler; + typedef Outcome ListFaceGroupsOutcome; + typedef std::future ListFaceGroupsOutcomeCallable; typedef std::function&)> ListFaceGroupsAsyncHandler; - typedef Outcome DetectImageTagsOutcome; - typedef std::future DetectImageTagsOutcomeCallable; + typedef Outcome DetectImageTagsOutcome; + typedef std::future DetectImageTagsOutcomeCallable; typedef std::function&)> DetectImageTagsAsyncHandler; - typedef Outcome ListProjectsOutcome; - typedef std::future ListProjectsOutcomeCallable; + typedef Outcome ListProjectsOutcome; + typedef std::future ListProjectsOutcomeCallable; typedef std::function&)> ListProjectsAsyncHandler; - typedef Outcome DeleteSetOutcome; - typedef std::future DeleteSetOutcomeCallable; + typedef Outcome DeleteSetOutcome; + typedef std::future DeleteSetOutcomeCallable; typedef std::function&)> DeleteSetAsyncHandler; - typedef Outcome GetFaceSearchImageOutcome; - typedef std::future GetFaceSearchImageOutcomeCallable; + typedef Outcome GetFaceSearchImageOutcome; + typedef std::future GetFaceSearchImageOutcomeCallable; typedef std::function&)> GetFaceSearchImageAsyncHandler; - typedef Outcome DetectTagOutcome; - typedef std::future DetectTagOutcomeCallable; + typedef Outcome DetectTagOutcome; + typedef std::future DetectTagOutcomeCallable; typedef std::function&)> DetectTagAsyncHandler; - typedef Outcome CreateCADConversionTaskOutcome; - typedef std::future CreateCADConversionTaskOutcomeCallable; + typedef Outcome CreateCADConversionTaskOutcome; + typedef std::future CreateCADConversionTaskOutcomeCallable; typedef std::function&)> CreateCADConversionTaskAsyncHandler; - typedef Outcome DeleteFaceJobOutcome; - typedef std::future DeleteFaceJobOutcomeCallable; + typedef Outcome DeleteFaceJobOutcome; + typedef std::future DeleteFaceJobOutcomeCallable; typedef std::function&)> DeleteFaceJobAsyncHandler; - typedef Outcome GetTagJobOutcome; - typedef std::future GetTagJobOutcomeCallable; + typedef Outcome GetTagJobOutcome; + typedef std::future GetTagJobOutcomeCallable; typedef std::function&)> GetTagJobAsyncHandler; - typedef Outcome CreateDocIndexTaskOutcome; - typedef std::future CreateDocIndexTaskOutcomeCallable; + typedef Outcome CreateDocIndexTaskOutcome; + typedef std::future CreateDocIndexTaskOutcomeCallable; typedef std::function&)> CreateDocIndexTaskAsyncHandler; - typedef Outcome GetVideoTaskOutcome; - typedef std::future GetVideoTaskOutcomeCallable; + typedef Outcome GetVideoTaskOutcome; + typedef std::future GetVideoTaskOutcomeCallable; typedef std::function&)> GetVideoTaskAsyncHandler; - typedef Outcome GetSetOutcome; - typedef std::future GetSetOutcomeCallable; + typedef Outcome GetSetOutcome; + typedef std::future GetSetOutcomeCallable; typedef std::function&)> GetSetAsyncHandler; - typedef Outcome SearchDocIndexOutcome; - typedef std::future SearchDocIndexOutcomeCallable; + typedef Outcome SearchDocIndexOutcome; + typedef std::future SearchDocIndexOutcomeCallable; typedef std::function&)> SearchDocIndexAsyncHandler; - typedef Outcome ListPhotoProcessTasksOutcome; - typedef std::future ListPhotoProcessTasksOutcomeCallable; + typedef Outcome ListPhotoProcessTasksOutcome; + typedef std::future ListPhotoProcessTasksOutcomeCallable; typedef std::function&)> ListPhotoProcessTasksAsyncHandler; - typedef Outcome ListVideosOutcome; - typedef std::future ListVideosOutcomeCallable; + typedef Outcome ListVideosOutcome; + typedef std::future ListVideosOutcomeCallable; typedef std::function&)> ListVideosAsyncHandler; - typedef Outcome CreatePornBatchDetectJobOutcome; - typedef std::future CreatePornBatchDetectJobOutcomeCallable; + typedef Outcome CreatePornBatchDetectJobOutcome; + typedef std::future CreatePornBatchDetectJobOutcomeCallable; typedef std::function&)> CreatePornBatchDetectJobAsyncHandler; - typedef Outcome DeleteTagByNameOutcome; - typedef std::future DeleteTagByNameOutcomeCallable; + typedef Outcome DeleteTagByNameOutcome; + typedef std::future DeleteTagByNameOutcomeCallable; typedef std::function&)> DeleteTagByNameAsyncHandler; - typedef Outcome DeletePhotoProcessTaskOutcome; - typedef std::future DeletePhotoProcessTaskOutcomeCallable; + typedef Outcome DeletePhotoProcessTaskOutcome; + typedef std::future DeletePhotoProcessTaskOutcomeCallable; typedef std::function&)> DeletePhotoProcessTaskAsyncHandler; - typedef Outcome ListSetTagsOutcome; - typedef std::future ListSetTagsOutcomeCallable; + typedef Outcome ListSetTagsOutcome; + typedef std::future ListSetTagsOutcomeCallable; typedef std::function&)> ListSetTagsAsyncHandler; - typedef Outcome DeleteVideoTaskOutcome; - typedef std::future DeleteVideoTaskOutcomeCallable; + typedef Outcome DeleteVideoTaskOutcome; + typedef std::future DeleteVideoTaskOutcomeCallable; typedef std::function&)> DeleteVideoTaskAsyncHandler; - typedef Outcome FindImagesByTagNamesOutcome; - typedef std::future FindImagesByTagNamesOutcomeCallable; + typedef Outcome FindImagesByTagNamesOutcome; + typedef std::future FindImagesByTagNamesOutcomeCallable; typedef std::function&)> FindImagesByTagNamesAsyncHandler; - typedef Outcome GetImageOutcome; - typedef std::future GetImageOutcomeCallable; + typedef Outcome GetImageOutcome; + typedef std::future GetImageOutcomeCallable; typedef std::function&)> GetImageAsyncHandler; - typedef Outcome GetMediaMetaOutcome; - typedef std::future GetMediaMetaOutcomeCallable; + typedef Outcome GetMediaMetaOutcome; + typedef std::future GetMediaMetaOutcomeCallable; typedef std::function&)> GetMediaMetaAsyncHandler; - typedef Outcome CreateSetOutcome; - typedef std::future CreateSetOutcomeCallable; + typedef Outcome CreateSetOutcome; + typedef std::future CreateSetOutcomeCallable; typedef std::function&)> CreateSetAsyncHandler; - typedef Outcome ConvertOfficeFormatOutcome; - typedef std::future ConvertOfficeFormatOutcomeCallable; + typedef Outcome ConvertOfficeFormatOutcome; + typedef std::future ConvertOfficeFormatOutcomeCallable; typedef std::function&)> ConvertOfficeFormatAsyncHandler; - typedef Outcome UpdateFaceGroupOutcome; - typedef std::future UpdateFaceGroupOutcomeCallable; + typedef Outcome UpdateFaceGroupOutcome; + typedef std::future UpdateFaceGroupOutcomeCallable; typedef std::function&)> UpdateFaceGroupAsyncHandler; - typedef Outcome DetectImageBodiesOutcome; - typedef std::future DetectImageBodiesOutcomeCallable; + typedef Outcome DetectImageBodiesOutcome; + typedef std::future DetectImageBodiesOutcomeCallable; typedef std::function&)> DetectImageBodiesAsyncHandler; - typedef Outcome DeleteDocIndexOutcome; - typedef std::future DeleteDocIndexOutcomeCallable; + typedef Outcome DeleteDocIndexOutcome; + typedef std::future DeleteDocIndexOutcomeCallable; typedef std::function&)> DeleteDocIndexAsyncHandler; - typedef Outcome GetImageJobOutcome; - typedef std::future GetImageJobOutcomeCallable; + typedef Outcome GetImageJobOutcome; + typedef std::future GetImageJobOutcomeCallable; typedef std::function&)> GetImageJobAsyncHandler; - typedef Outcome GetDocIndexTaskOutcome; - typedef std::future GetDocIndexTaskOutcomeCallable; + typedef Outcome GetDocIndexTaskOutcome; + typedef std::future GetDocIndexTaskOutcomeCallable; typedef std::function&)> GetDocIndexTaskAsyncHandler; - typedef Outcome DeleteTagByUrlOutcome; - typedef std::future DeleteTagByUrlOutcomeCallable; + typedef Outcome DeleteTagByUrlOutcome; + typedef std::future DeleteTagByUrlOutcomeCallable; typedef std::function&)> DeleteTagByUrlAsyncHandler; - typedef Outcome ListTagSetsOutcome; - typedef std::future ListTagSetsOutcomeCallable; + typedef Outcome ListTagSetsOutcome; + typedef std::future ListTagSetsOutcomeCallable; typedef std::function&)> ListTagSetsAsyncHandler; - typedef Outcome DetectQRCodesOutcome; - typedef std::future DetectQRCodesOutcomeCallable; + typedef Outcome DetectQRCodesOutcome; + typedef std::future DetectQRCodesOutcomeCallable; typedef std::function&)> DetectQRCodesAsyncHandler; - typedef Outcome GetVideoOutcome; - typedef std::future GetVideoOutcomeCallable; + typedef Outcome GetVideoOutcome; + typedef std::future GetVideoOutcomeCallable; typedef std::function&)> GetVideoAsyncHandler; - typedef Outcome ListImagesOutcome; - typedef std::future ListImagesOutcomeCallable; + typedef Outcome ListImagesOutcome; + typedef std::future ListImagesOutcomeCallable; typedef std::function&)> ListImagesAsyncHandler; - typedef Outcome DeleteOfficeConversionTaskOutcome; - typedef std::future DeleteOfficeConversionTaskOutcomeCallable; + typedef Outcome DeleteOfficeConversionTaskOutcome; + typedef std::future DeleteOfficeConversionTaskOutcomeCallable; typedef std::function&)> DeleteOfficeConversionTaskAsyncHandler; - typedef Outcome GetPhotoProcessTaskOutcome; - typedef std::future GetPhotoProcessTaskOutcomeCallable; + typedef Outcome GetPhotoProcessTaskOutcome; + typedef std::future GetPhotoProcessTaskOutcomeCallable; typedef std::function&)> GetPhotoProcessTaskAsyncHandler; - typedef Outcome ListVideoFramesOutcome; - typedef std::future ListVideoFramesOutcomeCallable; + typedef Outcome ListVideoFramesOutcome; + typedef std::future ListVideoFramesOutcomeCallable; typedef std::function&)> ListVideoFramesAsyncHandler; - typedef Outcome GetPornBatchDetectJobOutcome; - typedef std::future GetPornBatchDetectJobOutcomeCallable; + typedef Outcome GetPornBatchDetectJobOutcome; + typedef std::future GetPornBatchDetectJobOutcomeCallable; typedef std::function&)> GetPornBatchDetectJobAsyncHandler; - typedef Outcome DetectLogoOutcome; - typedef std::future DetectLogoOutcomeCallable; - typedef std::function&)> DetectLogoAsyncHandler; - typedef Outcome DetectClothesOutcome; - typedef std::future DetectClothesOutcomeCallable; + typedef Outcome DetectClothesOutcome; + typedef std::future DetectClothesOutcomeCallable; typedef std::function&)> DetectClothesAsyncHandler; - typedef Outcome ListTagJobsOutcome; - typedef std::future ListTagJobsOutcomeCallable; + typedef Outcome ListTagJobsOutcome; + typedef std::future ListTagJobsOutcomeCallable; typedef std::function&)> ListTagJobsAsyncHandler; - typedef Outcome DescribeRegionsOutcome; - typedef std::future DescribeRegionsOutcomeCallable; + typedef Outcome DetectLogoOutcome; + typedef std::future DetectLogoOutcomeCallable; + typedef std::function&)> DetectLogoAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; - typedef Outcome FindSimilarFacesOutcome; - typedef std::future FindSimilarFacesOutcomeCallable; + typedef Outcome FindSimilarFacesOutcome; + typedef std::future FindSimilarFacesOutcomeCallable; typedef std::function&)> FindSimilarFacesAsyncHandler; - typedef Outcome DeleteImageJobOutcome; - typedef std::future DeleteImageJobOutcomeCallable; + typedef Outcome DeleteImageJobOutcome; + typedef std::future DeleteImageJobOutcomeCallable; typedef std::function&)> DeleteImageJobAsyncHandler; - typedef Outcome DeleteFaceSearchGroupOutcome; - typedef std::future DeleteFaceSearchGroupOutcomeCallable; + typedef Outcome DeleteFaceSearchGroupOutcome; + typedef std::future DeleteFaceSearchGroupOutcomeCallable; typedef std::function&)> DeleteFaceSearchGroupAsyncHandler; - typedef Outcome GetDocIndexOutcome; - typedef std::future GetDocIndexOutcomeCallable; + typedef Outcome GetDocIndexOutcome; + typedef std::future GetDocIndexOutcomeCallable; typedef std::function&)> GetDocIndexAsyncHandler; - typedef Outcome IndexImageOutcome; - typedef std::future IndexImageOutcomeCallable; + typedef Outcome IndexImageOutcome; + typedef std::future IndexImageOutcomeCallable; typedef std::function&)> IndexImageAsyncHandler; - typedef Outcome ListImageJobsOutcome; - typedef std::future ListImageJobsOutcomeCallable; + typedef Outcome ListImageJobsOutcome; + typedef std::future ListImageJobsOutcomeCallable; typedef std::function&)> ListImageJobsAsyncHandler; - typedef Outcome UpdateImageOutcome; - typedef std::future UpdateImageOutcomeCallable; + typedef Outcome UpdateImageOutcome; + typedef std::future UpdateImageOutcomeCallable; typedef std::function&)> UpdateImageAsyncHandler; - typedef Outcome ListVideoTasksOutcome; - typedef std::future ListVideoTasksOutcomeCallable; + typedef Outcome ListVideoTasksOutcome; + typedef std::future ListVideoTasksOutcomeCallable; typedef std::function&)> ListVideoTasksAsyncHandler; - typedef Outcome CreateVideoCompressTaskOutcome; - typedef std::future CreateVideoCompressTaskOutcomeCallable; + typedef Outcome CreateVideoCompressTaskOutcome; + typedef std::future CreateVideoCompressTaskOutcomeCallable; typedef std::function&)> CreateVideoCompressTaskAsyncHandler; - typedef Outcome UpdateProjectOutcome; - typedef std::future UpdateProjectOutcomeCallable; + typedef Outcome UpdateProjectOutcome; + typedef std::future UpdateProjectOutcomeCallable; typedef std::function&)> UpdateProjectAsyncHandler; - typedef Outcome UpdateSetOutcome; - typedef std::future UpdateSetOutcomeCallable; + typedef Outcome UpdateSetOutcome; + typedef std::future UpdateSetOutcomeCallable; typedef std::function&)> UpdateSetAsyncHandler; - - ImmClient(const Credentials &credentials, const ClientConfiguration &configuration); - ImmClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - ImmClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~ImmClient(); - ListPornBatchDetectJobsOutcome listPornBatchDetectJobs(const Model::ListPornBatchDetectJobsRequest &request)const; - void listPornBatchDetectJobsAsync(const Model::ListPornBatchDetectJobsRequest& request, const ListPornBatchDetectJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPornBatchDetectJobsOutcomeCallable listPornBatchDetectJobsCallable(const Model::ListPornBatchDetectJobsRequest& request) const; - DetectImageFacesOutcome detectImageFaces(const Model::DetectImageFacesRequest &request)const; - void detectImageFacesAsync(const Model::DetectImageFacesRequest& request, const DetectImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + + ImmClient(const Credentials &credentials, const ClientConfiguration &configuration); + ImmClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ImmClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ImmClient(); + DetectImageFacesOutcome detectImageFaces(const Model::DetectImageFacesRequest &request)const; + void detectImageFacesAsync(const Model::DetectImageFacesRequest& request, const DetectImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageFacesOutcomeCallable detectImageFacesCallable(const Model::DetectImageFacesRequest& request) const; - DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const; - void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPornBatchDetectJobsOutcome listPornBatchDetectJobs(const Model::ListPornBatchDetectJobsRequest &request)const; + void listPornBatchDetectJobsAsync(const Model::ListPornBatchDetectJobsRequest& request, const ListPornBatchDetectJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPornBatchDetectJobsOutcomeCallable listPornBatchDetectJobsCallable(const Model::ListPornBatchDetectJobsRequest& request) const; + DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const; + void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const; - CreateTagJobOutcome createTagJob(const Model::CreateTagJobRequest &request)const; - void createTagJobAsync(const Model::CreateTagJobRequest& request, const CreateTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateTagJobOutcomeCallable createTagJobCallable(const Model::CreateTagJobRequest& request) const; - IndexTagOutcome indexTag(const Model::IndexTagRequest &request)const; - void indexTagAsync(const Model::IndexTagRequest& request, const IndexTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexTagOutcome indexTag(const Model::IndexTagRequest &request)const; + void indexTagAsync(const Model::IndexTagRequest& request, const IndexTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; IndexTagOutcomeCallable indexTagCallable(const Model::IndexTagRequest& request) const; - CreateVideoAnalyseTaskOutcome createVideoAnalyseTask(const Model::CreateVideoAnalyseTaskRequest &request)const; - void createVideoAnalyseTaskAsync(const Model::CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagJobOutcome createTagJob(const Model::CreateTagJobRequest &request)const; + void createTagJobAsync(const Model::CreateTagJobRequest& request, const CreateTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagJobOutcomeCallable createTagJobCallable(const Model::CreateTagJobRequest& request) const; + CreateVideoAnalyseTaskOutcome createVideoAnalyseTask(const Model::CreateVideoAnalyseTaskRequest &request)const; + void createVideoAnalyseTaskAsync(const Model::CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVideoAnalyseTaskOutcomeCallable createVideoAnalyseTaskCallable(const Model::CreateVideoAnalyseTaskRequest& request) const; - CompareFaceOutcome compareFace(const Model::CompareFaceRequest &request)const; - void compareFaceAsync(const Model::CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompareFaceOutcome compareFace(const Model::CompareFaceRequest &request)const; + void compareFaceAsync(const Model::CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CompareFaceOutcomeCallable compareFaceCallable(const Model::CompareFaceRequest& request) const; - ListFaceSearchGroupUsersOutcome listFaceSearchGroupUsers(const Model::ListFaceSearchGroupUsersRequest &request)const; - void listFaceSearchGroupUsersAsync(const Model::ListFaceSearchGroupUsersRequest& request, const ListFaceSearchGroupUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFaceSearchGroupUsersOutcome listFaceSearchGroupUsers(const Model::ListFaceSearchGroupUsersRequest &request)const; + void listFaceSearchGroupUsersAsync(const Model::ListFaceSearchGroupUsersRequest& request, const ListFaceSearchGroupUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFaceSearchGroupUsersOutcomeCallable listFaceSearchGroupUsersCallable(const Model::ListFaceSearchGroupUsersRequest& request) const; - ListFaceSearchGroupImagesOutcome listFaceSearchGroupImages(const Model::ListFaceSearchGroupImagesRequest &request)const; - void listFaceSearchGroupImagesAsync(const Model::ListFaceSearchGroupImagesRequest& request, const ListFaceSearchGroupImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFaceSearchGroupImagesOutcome listFaceSearchGroupImages(const Model::ListFaceSearchGroupImagesRequest &request)const; + void listFaceSearchGroupImagesAsync(const Model::ListFaceSearchGroupImagesRequest& request, const ListFaceSearchGroupImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFaceSearchGroupImagesOutcomeCallable listFaceSearchGroupImagesCallable(const Model::ListFaceSearchGroupImagesRequest& request) const; - PutProjectOutcome putProject(const Model::PutProjectRequest &request)const; - void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const; - ListSetsOutcome listSets(const Model::ListSetsRequest &request)const; - void listSetsAsync(const Model::ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSetsOutcome listSets(const Model::ListSetsRequest &request)const; + void listSetsAsync(const Model::ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSetsOutcomeCallable listSetsCallable(const Model::ListSetsRequest& request) const; - FindImagesOutcome findImages(const Model::FindImagesRequest &request)const; - void findImagesAsync(const Model::FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutProjectOutcome putProject(const Model::PutProjectRequest &request)const; + void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const; + FindImagesOutcome findImages(const Model::FindImagesRequest &request)const; + void findImagesAsync(const Model::FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FindImagesOutcomeCallable findImagesCallable(const Model::FindImagesRequest& request) const; - DetectImageLogosOutcome detectImageLogos(const Model::DetectImageLogosRequest &request)const; - void detectImageLogosAsync(const Model::DetectImageLogosRequest& request, const DetectImageLogosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageLogosOutcome detectImageLogos(const Model::DetectImageLogosRequest &request)const; + void detectImageLogosAsync(const Model::DetectImageLogosRequest& request, const DetectImageLogosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageLogosOutcomeCallable detectImageLogosCallable(const Model::DetectImageLogosRequest& request) const; - GetProjectOutcome getProject(const Model::GetProjectRequest &request)const; - void getProjectAsync(const Model::GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectOutcome getProject(const Model::GetProjectRequest &request)const; + void getProjectAsync(const Model::GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetProjectOutcomeCallable getProjectCallable(const Model::GetProjectRequest& request) const; - DeleteTagSetOutcome deleteTagSet(const Model::DeleteTagSetRequest &request)const; - void deleteTagSetAsync(const Model::DeleteTagSetRequest& request, const DeleteTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagSetOutcome deleteTagSet(const Model::DeleteTagSetRequest &request)const; + void deleteTagSetAsync(const Model::DeleteTagSetRequest& request, const DeleteTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTagSetOutcomeCallable deleteTagSetCallable(const Model::DeleteTagSetRequest& request) const; - DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; - void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; + void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; - UpdateDocIndexMetaOutcome updateDocIndexMeta(const Model::UpdateDocIndexMetaRequest &request)const; - void updateDocIndexMetaAsync(const Model::UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDocIndexMetaOutcome updateDocIndexMeta(const Model::UpdateDocIndexMetaRequest &request)const; + void updateDocIndexMetaAsync(const Model::UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDocIndexMetaOutcomeCallable updateDocIndexMetaCallable(const Model::UpdateDocIndexMetaRequest& request) const; - SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const; - void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const; + void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const; - DetectImageCelebrityOutcome detectImageCelebrity(const Model::DetectImageCelebrityRequest &request)const; - void detectImageCelebrityAsync(const Model::DetectImageCelebrityRequest& request, const DetectImageCelebrityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageCelebrityOutcome detectImageCelebrity(const Model::DetectImageCelebrityRequest &request)const; + void detectImageCelebrityAsync(const Model::DetectImageCelebrityRequest& request, const DetectImageCelebrityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageCelebrityOutcomeCallable detectImageCelebrityCallable(const Model::DetectImageCelebrityRequest& request) const; - DeletePornBatchDetectJobOutcome deletePornBatchDetectJob(const Model::DeletePornBatchDetectJobRequest &request)const; - void deletePornBatchDetectJobAsync(const Model::DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePornBatchDetectJobOutcomeCallable deletePornBatchDetectJobCallable(const Model::DeletePornBatchDetectJobRequest& request) const; - GetTagSetOutcome getTagSet(const Model::GetTagSetRequest &request)const; - void getTagSetAsync(const Model::GetTagSetRequest& request, const GetTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetTagSetOutcomeCallable getTagSetCallable(const Model::GetTagSetRequest& request) const; - ListFaceSearchGroupsOutcome listFaceSearchGroups(const Model::ListFaceSearchGroupsRequest &request)const; - void listFaceSearchGroupsAsync(const Model::ListFaceSearchGroupsRequest& request, const ListFaceSearchGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFaceSearchGroupsOutcome listFaceSearchGroups(const Model::ListFaceSearchGroupsRequest &request)const; + void listFaceSearchGroupsAsync(const Model::ListFaceSearchGroupsRequest& request, const ListFaceSearchGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFaceSearchGroupsOutcomeCallable listFaceSearchGroupsCallable(const Model::ListFaceSearchGroupsRequest& request) const; - ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const; - void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePornBatchDetectJobOutcome deletePornBatchDetectJob(const Model::DeletePornBatchDetectJobRequest &request)const; + void deletePornBatchDetectJobAsync(const Model::DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePornBatchDetectJobOutcomeCallable deletePornBatchDetectJobCallable(const Model::DeletePornBatchDetectJobRequest& request) const; + GetTagSetOutcome getTagSet(const Model::GetTagSetRequest &request)const; + void getTagSetAsync(const Model::GetTagSetRequest& request, const GetTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTagSetOutcomeCallable getTagSetCallable(const Model::GetTagSetRequest& request) const; + ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const; + void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const; - DeleteFaceSearchImageByIdOutcome deleteFaceSearchImageById(const Model::DeleteFaceSearchImageByIdRequest &request)const; - void deleteFaceSearchImageByIdAsync(const Model::DeleteFaceSearchImageByIdRequest& request, const DeleteFaceSearchImageByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceSearchImageByIdOutcome deleteFaceSearchImageById(const Model::DeleteFaceSearchImageByIdRequest &request)const; + void deleteFaceSearchImageByIdAsync(const Model::DeleteFaceSearchImageByIdRequest& request, const DeleteFaceSearchImageByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFaceSearchImageByIdOutcomeCallable deleteFaceSearchImageByIdCallable(const Model::DeleteFaceSearchImageByIdRequest& request) const; - IndexVideoOutcome indexVideo(const Model::IndexVideoRequest &request)const; - void indexVideoAsync(const Model::IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexVideoOutcome indexVideo(const Model::IndexVideoRequest &request)const; + void indexVideoAsync(const Model::IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; IndexVideoOutcomeCallable indexVideoCallable(const Model::IndexVideoRequest& request) const; - CreateMergeFaceGroupsJobOutcome createMergeFaceGroupsJob(const Model::CreateMergeFaceGroupsJobRequest &request)const; - void createMergeFaceGroupsJobAsync(const Model::CreateMergeFaceGroupsJobRequest& request, const CreateMergeFaceGroupsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMergeFaceGroupsJobOutcomeCallable createMergeFaceGroupsJobCallable(const Model::CreateMergeFaceGroupsJobRequest& request) const; - ListVideoAudiosOutcome listVideoAudios(const Model::ListVideoAudiosRequest &request)const; - void listVideoAudiosAsync(const Model::ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoAudiosOutcome listVideoAudios(const Model::ListVideoAudiosRequest &request)const; + void listVideoAudiosAsync(const Model::ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVideoAudiosOutcomeCallable listVideoAudiosCallable(const Model::ListVideoAudiosRequest& request) const; - ListTagNamesOutcome listTagNames(const Model::ListTagNamesRequest &request)const; - void listTagNamesAsync(const Model::ListTagNamesRequest& request, const ListTagNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMergeFaceGroupsJobOutcome createMergeFaceGroupsJob(const Model::CreateMergeFaceGroupsJobRequest &request)const; + void createMergeFaceGroupsJobAsync(const Model::CreateMergeFaceGroupsJobRequest& request, const CreateMergeFaceGroupsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMergeFaceGroupsJobOutcomeCallable createMergeFaceGroupsJobCallable(const Model::CreateMergeFaceGroupsJobRequest& request) const; + ListTagNamesOutcome listTagNames(const Model::ListTagNamesRequest &request)const; + void listTagNamesAsync(const Model::ListTagNamesRequest& request, const ListTagNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagNamesOutcomeCallable listTagNamesCallable(const Model::ListTagNamesRequest& request) const; - CreateOfficeConversionTaskOutcome createOfficeConversionTask(const Model::CreateOfficeConversionTaskRequest &request)const; - void createOfficeConversionTaskAsync(const Model::CreateOfficeConversionTaskRequest& request, const CreateOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOfficeConversionTaskOutcome createOfficeConversionTask(const Model::CreateOfficeConversionTaskRequest &request)const; + void createOfficeConversionTaskAsync(const Model::CreateOfficeConversionTaskRequest& request, const CreateOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOfficeConversionTaskOutcomeCallable createOfficeConversionTaskCallable(const Model::CreateOfficeConversionTaskRequest& request) const; - GetFaceSearchGroupOutcome getFaceSearchGroup(const Model::GetFaceSearchGroupRequest &request)const; - void getFaceSearchGroupAsync(const Model::GetFaceSearchGroupRequest& request, const GetFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFaceSearchGroupOutcome getFaceSearchGroup(const Model::GetFaceSearchGroupRequest &request)const; + void getFaceSearchGroupAsync(const Model::GetFaceSearchGroupRequest& request, const GetFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetFaceSearchGroupOutcomeCallable getFaceSearchGroupCallable(const Model::GetFaceSearchGroupRequest& request) const; - CompareImageFacesOutcome compareImageFaces(const Model::CompareImageFacesRequest &request)const; - void compareImageFacesAsync(const Model::CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompareImageFacesOutcome compareImageFaces(const Model::CompareImageFacesRequest &request)const; + void compareImageFacesAsync(const Model::CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CompareImageFacesOutcomeCallable compareImageFacesCallable(const Model::CompareImageFacesRequest& request) const; - DeleteTagJobOutcome deleteTagJob(const Model::DeleteTagJobRequest &request)const; - void deleteTagJobAsync(const Model::DeleteTagJobRequest& request, const DeleteTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagJobOutcome deleteTagJob(const Model::DeleteTagJobRequest &request)const; + void deleteTagJobAsync(const Model::DeleteTagJobRequest& request, const DeleteTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTagJobOutcomeCallable deleteTagJobCallable(const Model::DeleteTagJobRequest& request) const; - PhotoProcessOutcome photoProcess(const Model::PhotoProcessRequest &request)const; - void photoProcessAsync(const Model::PhotoProcessRequest& request, const PhotoProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhotoProcessOutcome photoProcess(const Model::PhotoProcessRequest &request)const; + void photoProcessAsync(const Model::PhotoProcessRequest& request, const PhotoProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PhotoProcessOutcomeCallable photoProcessCallable(const Model::PhotoProcessRequest& request) const; - DeleteFaceSearchUserOutcome deleteFaceSearchUser(const Model::DeleteFaceSearchUserRequest &request)const; - void deleteFaceSearchUserAsync(const Model::DeleteFaceSearchUserRequest& request, const DeleteFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceSearchUserOutcome deleteFaceSearchUser(const Model::DeleteFaceSearchUserRequest &request)const; + void deleteFaceSearchUserAsync(const Model::DeleteFaceSearchUserRequest& request, const DeleteFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFaceSearchUserOutcomeCallable deleteFaceSearchUserCallable(const Model::DeleteFaceSearchUserRequest& request) const; - RegistFaceOutcome registFace(const Model::RegistFaceRequest &request)const; - void registFaceAsync(const Model::RegistFaceRequest& request, const RegistFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RegistFaceOutcomeCallable registFaceCallable(const Model::RegistFaceRequest& request) const; - GetOfficeConversionTaskOutcome getOfficeConversionTask(const Model::GetOfficeConversionTaskRequest &request)const; - void getOfficeConversionTaskAsync(const Model::GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOfficeConversionTaskOutcome getOfficeConversionTask(const Model::GetOfficeConversionTaskRequest &request)const; + void getOfficeConversionTaskAsync(const Model::GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetOfficeConversionTaskOutcomeCallable getOfficeConversionTaskCallable(const Model::GetOfficeConversionTaskRequest& request) const; - CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const; - void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const; + void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTagSetOutcomeCallable createTagSetCallable(const Model::CreateTagSetRequest& request) const; - GetFaceSearchUserOutcome getFaceSearchUser(const Model::GetFaceSearchUserRequest &request)const; - void getFaceSearchUserAsync(const Model::GetFaceSearchUserRequest& request, const GetFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegistFaceOutcome registFace(const Model::RegistFaceRequest &request)const; + void registFaceAsync(const Model::RegistFaceRequest& request, const RegistFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegistFaceOutcomeCallable registFaceCallable(const Model::RegistFaceRequest& request) const; + GetFaceSearchUserOutcome getFaceSearchUser(const Model::GetFaceSearchUserRequest &request)const; + void getFaceSearchUserAsync(const Model::GetFaceSearchUserRequest& request, const GetFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetFaceSearchUserOutcomeCallable getFaceSearchUserCallable(const Model::GetFaceSearchUserRequest& request) const; - CreateFaceSetOutcome createFaceSet(const Model::CreateFaceSetRequest &request)const; - void createFaceSetAsync(const Model::CreateFaceSetRequest& request, const CreateFaceSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFaceSetOutcome createFaceSet(const Model::CreateFaceSetRequest &request)const; + void createFaceSetAsync(const Model::CreateFaceSetRequest& request, const CreateFaceSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFaceSetOutcomeCallable createFaceSetCallable(const Model::CreateFaceSetRequest& request) const; - ListProjectAPIsOutcome listProjectAPIs(const Model::ListProjectAPIsRequest &request)const; - void listProjectAPIsAsync(const Model::ListProjectAPIsRequest& request, const ListProjectAPIsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectAPIsOutcome listProjectAPIs(const Model::ListProjectAPIsRequest &request)const; + void listProjectAPIsAsync(const Model::ListProjectAPIsRequest& request, const ListProjectAPIsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListProjectAPIsOutcomeCallable listProjectAPIsCallable(const Model::ListProjectAPIsRequest& request) const; - DetectImageTextsOutcome detectImageTexts(const Model::DetectImageTextsRequest &request)const; - void detectImageTextsAsync(const Model::DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageTextsOutcome detectImageTexts(const Model::DetectImageTextsRequest &request)const; + void detectImageTextsAsync(const Model::DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageTextsOutcomeCallable detectImageTextsCallable(const Model::DetectImageTextsRequest& request) const; - CreateGroupFacesJobOutcome createGroupFacesJob(const Model::CreateGroupFacesJobRequest &request)const; - void createGroupFacesJobAsync(const Model::CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGroupFacesJobOutcome createGroupFacesJob(const Model::CreateGroupFacesJobRequest &request)const; + void createGroupFacesJobAsync(const Model::CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateGroupFacesJobOutcomeCallable createGroupFacesJobCallable(const Model::CreateGroupFacesJobRequest& request) const; - ListOfficeConversionTaskOutcome listOfficeConversionTask(const Model::ListOfficeConversionTaskRequest &request)const; - void listOfficeConversionTaskAsync(const Model::ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListOfficeConversionTaskOutcomeCallable listOfficeConversionTaskCallable(const Model::ListOfficeConversionTaskRequest& request) const; - DeleteVideoOutcome deleteVideo(const Model::DeleteVideoRequest &request)const; - void deleteVideoAsync(const Model::DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoOutcome deleteVideo(const Model::DeleteVideoRequest &request)const; + void deleteVideoAsync(const Model::DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVideoOutcomeCallable deleteVideoCallable(const Model::DeleteVideoRequest& request) const; - ListFaceGroupsOutcome listFaceGroups(const Model::ListFaceGroupsRequest &request)const; - void listFaceGroupsAsync(const Model::ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOfficeConversionTaskOutcome listOfficeConversionTask(const Model::ListOfficeConversionTaskRequest &request)const; + void listOfficeConversionTaskAsync(const Model::ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOfficeConversionTaskOutcomeCallable listOfficeConversionTaskCallable(const Model::ListOfficeConversionTaskRequest& request) const; + ListFaceGroupsOutcome listFaceGroups(const Model::ListFaceGroupsRequest &request)const; + void listFaceGroupsAsync(const Model::ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFaceGroupsOutcomeCallable listFaceGroupsCallable(const Model::ListFaceGroupsRequest& request) const; - DetectImageTagsOutcome detectImageTags(const Model::DetectImageTagsRequest &request)const; - void detectImageTagsAsync(const Model::DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageTagsOutcome detectImageTags(const Model::DetectImageTagsRequest &request)const; + void detectImageTagsAsync(const Model::DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageTagsOutcomeCallable detectImageTagsCallable(const Model::DetectImageTagsRequest& request) const; - ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const; - void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const; + void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const; - DeleteSetOutcome deleteSet(const Model::DeleteSetRequest &request)const; - void deleteSetAsync(const Model::DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSetOutcome deleteSet(const Model::DeleteSetRequest &request)const; + void deleteSetAsync(const Model::DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSetOutcomeCallable deleteSetCallable(const Model::DeleteSetRequest& request) const; - GetFaceSearchImageOutcome getFaceSearchImage(const Model::GetFaceSearchImageRequest &request)const; - void getFaceSearchImageAsync(const Model::GetFaceSearchImageRequest& request, const GetFaceSearchImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFaceSearchImageOutcome getFaceSearchImage(const Model::GetFaceSearchImageRequest &request)const; + void getFaceSearchImageAsync(const Model::GetFaceSearchImageRequest& request, const GetFaceSearchImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetFaceSearchImageOutcomeCallable getFaceSearchImageCallable(const Model::GetFaceSearchImageRequest& request) const; - DetectTagOutcome detectTag(const Model::DetectTagRequest &request)const; - void detectTagAsync(const Model::DetectTagRequest& request, const DetectTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectTagOutcome detectTag(const Model::DetectTagRequest &request)const; + void detectTagAsync(const Model::DetectTagRequest& request, const DetectTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectTagOutcomeCallable detectTagCallable(const Model::DetectTagRequest& request) const; - CreateCADConversionTaskOutcome createCADConversionTask(const Model::CreateCADConversionTaskRequest &request)const; - void createCADConversionTaskAsync(const Model::CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCADConversionTaskOutcome createCADConversionTask(const Model::CreateCADConversionTaskRequest &request)const; + void createCADConversionTaskAsync(const Model::CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCADConversionTaskOutcomeCallable createCADConversionTaskCallable(const Model::CreateCADConversionTaskRequest& request) const; - DeleteFaceJobOutcome deleteFaceJob(const Model::DeleteFaceJobRequest &request)const; - void deleteFaceJobAsync(const Model::DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceJobOutcome deleteFaceJob(const Model::DeleteFaceJobRequest &request)const; + void deleteFaceJobAsync(const Model::DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFaceJobOutcomeCallable deleteFaceJobCallable(const Model::DeleteFaceJobRequest& request) const; - GetTagJobOutcome getTagJob(const Model::GetTagJobRequest &request)const; - void getTagJobAsync(const Model::GetTagJobRequest& request, const GetTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTagJobOutcome getTagJob(const Model::GetTagJobRequest &request)const; + void getTagJobAsync(const Model::GetTagJobRequest& request, const GetTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetTagJobOutcomeCallable getTagJobCallable(const Model::GetTagJobRequest& request) const; - CreateDocIndexTaskOutcome createDocIndexTask(const Model::CreateDocIndexTaskRequest &request)const; - void createDocIndexTaskAsync(const Model::CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDocIndexTaskOutcome createDocIndexTask(const Model::CreateDocIndexTaskRequest &request)const; + void createDocIndexTaskAsync(const Model::CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDocIndexTaskOutcomeCallable createDocIndexTaskCallable(const Model::CreateDocIndexTaskRequest& request) const; - GetVideoTaskOutcome getVideoTask(const Model::GetVideoTaskRequest &request)const; - void getVideoTaskAsync(const Model::GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVideoTaskOutcome getVideoTask(const Model::GetVideoTaskRequest &request)const; + void getVideoTaskAsync(const Model::GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetVideoTaskOutcomeCallable getVideoTaskCallable(const Model::GetVideoTaskRequest& request) const; - GetSetOutcome getSet(const Model::GetSetRequest &request)const; - void getSetAsync(const Model::GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSetOutcome getSet(const Model::GetSetRequest &request)const; + void getSetAsync(const Model::GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSetOutcomeCallable getSetCallable(const Model::GetSetRequest& request) const; - SearchDocIndexOutcome searchDocIndex(const Model::SearchDocIndexRequest &request)const; - void searchDocIndexAsync(const Model::SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchDocIndexOutcome searchDocIndex(const Model::SearchDocIndexRequest &request)const; + void searchDocIndexAsync(const Model::SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchDocIndexOutcomeCallable searchDocIndexCallable(const Model::SearchDocIndexRequest& request) const; - ListPhotoProcessTasksOutcome listPhotoProcessTasks(const Model::ListPhotoProcessTasksRequest &request)const; - void listPhotoProcessTasksAsync(const Model::ListPhotoProcessTasksRequest& request, const ListPhotoProcessTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhotoProcessTasksOutcome listPhotoProcessTasks(const Model::ListPhotoProcessTasksRequest &request)const; + void listPhotoProcessTasksAsync(const Model::ListPhotoProcessTasksRequest& request, const ListPhotoProcessTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPhotoProcessTasksOutcomeCallable listPhotoProcessTasksCallable(const Model::ListPhotoProcessTasksRequest& request) const; - ListVideosOutcome listVideos(const Model::ListVideosRequest &request)const; - void listVideosAsync(const Model::ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideosOutcome listVideos(const Model::ListVideosRequest &request)const; + void listVideosAsync(const Model::ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVideosOutcomeCallable listVideosCallable(const Model::ListVideosRequest& request) const; - CreatePornBatchDetectJobOutcome createPornBatchDetectJob(const Model::CreatePornBatchDetectJobRequest &request)const; - void createPornBatchDetectJobAsync(const Model::CreatePornBatchDetectJobRequest& request, const CreatePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePornBatchDetectJobOutcome createPornBatchDetectJob(const Model::CreatePornBatchDetectJobRequest &request)const; + void createPornBatchDetectJobAsync(const Model::CreatePornBatchDetectJobRequest& request, const CreatePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePornBatchDetectJobOutcomeCallable createPornBatchDetectJobCallable(const Model::CreatePornBatchDetectJobRequest& request) const; - DeleteTagByNameOutcome deleteTagByName(const Model::DeleteTagByNameRequest &request)const; - void deleteTagByNameAsync(const Model::DeleteTagByNameRequest& request, const DeleteTagByNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagByNameOutcome deleteTagByName(const Model::DeleteTagByNameRequest &request)const; + void deleteTagByNameAsync(const Model::DeleteTagByNameRequest& request, const DeleteTagByNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTagByNameOutcomeCallable deleteTagByNameCallable(const Model::DeleteTagByNameRequest& request) const; - DeletePhotoProcessTaskOutcome deletePhotoProcessTask(const Model::DeletePhotoProcessTaskRequest &request)const; - void deletePhotoProcessTaskAsync(const Model::DeletePhotoProcessTaskRequest& request, const DeletePhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePhotoProcessTaskOutcome deletePhotoProcessTask(const Model::DeletePhotoProcessTaskRequest &request)const; + void deletePhotoProcessTaskAsync(const Model::DeletePhotoProcessTaskRequest& request, const DeletePhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePhotoProcessTaskOutcomeCallable deletePhotoProcessTaskCallable(const Model::DeletePhotoProcessTaskRequest& request) const; - ListSetTagsOutcome listSetTags(const Model::ListSetTagsRequest &request)const; - void listSetTagsAsync(const Model::ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSetTagsOutcome listSetTags(const Model::ListSetTagsRequest &request)const; + void listSetTagsAsync(const Model::ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSetTagsOutcomeCallable listSetTagsCallable(const Model::ListSetTagsRequest& request) const; - DeleteVideoTaskOutcome deleteVideoTask(const Model::DeleteVideoTaskRequest &request)const; - void deleteVideoTaskAsync(const Model::DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoTaskOutcome deleteVideoTask(const Model::DeleteVideoTaskRequest &request)const; + void deleteVideoTaskAsync(const Model::DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVideoTaskOutcomeCallable deleteVideoTaskCallable(const Model::DeleteVideoTaskRequest& request) const; - FindImagesByTagNamesOutcome findImagesByTagNames(const Model::FindImagesByTagNamesRequest &request)const; - void findImagesByTagNamesAsync(const Model::FindImagesByTagNamesRequest& request, const FindImagesByTagNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindImagesByTagNamesOutcome findImagesByTagNames(const Model::FindImagesByTagNamesRequest &request)const; + void findImagesByTagNamesAsync(const Model::FindImagesByTagNamesRequest& request, const FindImagesByTagNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FindImagesByTagNamesOutcomeCallable findImagesByTagNamesCallable(const Model::FindImagesByTagNamesRequest& 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; + 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; - GetMediaMetaOutcome getMediaMeta(const Model::GetMediaMetaRequest &request)const; - void getMediaMetaAsync(const Model::GetMediaMetaRequest& request, const GetMediaMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMediaMetaOutcome getMediaMeta(const Model::GetMediaMetaRequest &request)const; + void getMediaMetaAsync(const Model::GetMediaMetaRequest& request, const GetMediaMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMediaMetaOutcomeCallable getMediaMetaCallable(const Model::GetMediaMetaRequest& request) const; - CreateSetOutcome createSet(const Model::CreateSetRequest &request)const; - void createSetAsync(const Model::CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSetOutcome createSet(const Model::CreateSetRequest &request)const; + void createSetAsync(const Model::CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSetOutcomeCallable createSetCallable(const Model::CreateSetRequest& request) const; - ConvertOfficeFormatOutcome convertOfficeFormat(const Model::ConvertOfficeFormatRequest &request)const; - void convertOfficeFormatAsync(const Model::ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertOfficeFormatOutcome convertOfficeFormat(const Model::ConvertOfficeFormatRequest &request)const; + void convertOfficeFormatAsync(const Model::ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConvertOfficeFormatOutcomeCallable convertOfficeFormatCallable(const Model::ConvertOfficeFormatRequest& request) const; - UpdateFaceGroupOutcome updateFaceGroup(const Model::UpdateFaceGroupRequest &request)const; - void updateFaceGroupAsync(const Model::UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFaceGroupOutcome updateFaceGroup(const Model::UpdateFaceGroupRequest &request)const; + void updateFaceGroupAsync(const Model::UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateFaceGroupOutcomeCallable updateFaceGroupCallable(const Model::UpdateFaceGroupRequest& request) const; - DetectImageBodiesOutcome detectImageBodies(const Model::DetectImageBodiesRequest &request)const; - void detectImageBodiesAsync(const Model::DetectImageBodiesRequest& request, const DetectImageBodiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageBodiesOutcome detectImageBodies(const Model::DetectImageBodiesRequest &request)const; + void detectImageBodiesAsync(const Model::DetectImageBodiesRequest& request, const DetectImageBodiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageBodiesOutcomeCallable detectImageBodiesCallable(const Model::DetectImageBodiesRequest& request) const; - DeleteDocIndexOutcome deleteDocIndex(const Model::DeleteDocIndexRequest &request)const; - void deleteDocIndexAsync(const Model::DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDocIndexOutcome deleteDocIndex(const Model::DeleteDocIndexRequest &request)const; + void deleteDocIndexAsync(const Model::DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDocIndexOutcomeCallable deleteDocIndexCallable(const Model::DeleteDocIndexRequest& request) const; - GetImageJobOutcome getImageJob(const Model::GetImageJobRequest &request)const; - void getImageJobAsync(const Model::GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageJobOutcome getImageJob(const Model::GetImageJobRequest &request)const; + void getImageJobAsync(const Model::GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetImageJobOutcomeCallable getImageJobCallable(const Model::GetImageJobRequest& request) const; - GetDocIndexTaskOutcome getDocIndexTask(const Model::GetDocIndexTaskRequest &request)const; - void getDocIndexTaskAsync(const Model::GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDocIndexTaskOutcome getDocIndexTask(const Model::GetDocIndexTaskRequest &request)const; + void getDocIndexTaskAsync(const Model::GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDocIndexTaskOutcomeCallable getDocIndexTaskCallable(const Model::GetDocIndexTaskRequest& request) const; - DeleteTagByUrlOutcome deleteTagByUrl(const Model::DeleteTagByUrlRequest &request)const; - void deleteTagByUrlAsync(const Model::DeleteTagByUrlRequest& request, const DeleteTagByUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagByUrlOutcome deleteTagByUrl(const Model::DeleteTagByUrlRequest &request)const; + void deleteTagByUrlAsync(const Model::DeleteTagByUrlRequest& request, const DeleteTagByUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTagByUrlOutcomeCallable deleteTagByUrlCallable(const Model::DeleteTagByUrlRequest& request) const; - ListTagSetsOutcome listTagSets(const Model::ListTagSetsRequest &request)const; - void listTagSetsAsync(const Model::ListTagSetsRequest& request, const ListTagSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagSetsOutcome listTagSets(const Model::ListTagSetsRequest &request)const; + void listTagSetsAsync(const Model::ListTagSetsRequest& request, const ListTagSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagSetsOutcomeCallable listTagSetsCallable(const Model::ListTagSetsRequest& request) const; - DetectQRCodesOutcome detectQRCodes(const Model::DetectQRCodesRequest &request)const; - void detectQRCodesAsync(const Model::DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectQRCodesOutcome detectQRCodes(const Model::DetectQRCodesRequest &request)const; + void detectQRCodesAsync(const Model::DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectQRCodesOutcomeCallable detectQRCodesCallable(const Model::DetectQRCodesRequest& request) const; - GetVideoOutcome getVideo(const Model::GetVideoRequest &request)const; - void getVideoAsync(const Model::GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVideoOutcome getVideo(const Model::GetVideoRequest &request)const; + void getVideoAsync(const Model::GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetVideoOutcomeCallable getVideoCallable(const Model::GetVideoRequest& request) const; - ListImagesOutcome listImages(const Model::ListImagesRequest &request)const; - void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImagesOutcome listImages(const Model::ListImagesRequest &request)const; + void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const; - DeleteOfficeConversionTaskOutcome deleteOfficeConversionTask(const Model::DeleteOfficeConversionTaskRequest &request)const; - void deleteOfficeConversionTaskAsync(const Model::DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOfficeConversionTaskOutcome deleteOfficeConversionTask(const Model::DeleteOfficeConversionTaskRequest &request)const; + void deleteOfficeConversionTaskAsync(const Model::DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteOfficeConversionTaskOutcomeCallable deleteOfficeConversionTaskCallable(const Model::DeleteOfficeConversionTaskRequest& request) const; - GetPhotoProcessTaskOutcome getPhotoProcessTask(const Model::GetPhotoProcessTaskRequest &request)const; - void getPhotoProcessTaskAsync(const Model::GetPhotoProcessTaskRequest& request, const GetPhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhotoProcessTaskOutcome getPhotoProcessTask(const Model::GetPhotoProcessTaskRequest &request)const; + void getPhotoProcessTaskAsync(const Model::GetPhotoProcessTaskRequest& request, const GetPhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPhotoProcessTaskOutcomeCallable getPhotoProcessTaskCallable(const Model::GetPhotoProcessTaskRequest& request) const; - ListVideoFramesOutcome listVideoFrames(const Model::ListVideoFramesRequest &request)const; - void listVideoFramesAsync(const Model::ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoFramesOutcome listVideoFrames(const Model::ListVideoFramesRequest &request)const; + void listVideoFramesAsync(const Model::ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVideoFramesOutcomeCallable listVideoFramesCallable(const Model::ListVideoFramesRequest& request) const; - GetPornBatchDetectJobOutcome getPornBatchDetectJob(const Model::GetPornBatchDetectJobRequest &request)const; - void getPornBatchDetectJobAsync(const Model::GetPornBatchDetectJobRequest& request, const GetPornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPornBatchDetectJobOutcome getPornBatchDetectJob(const Model::GetPornBatchDetectJobRequest &request)const; + void getPornBatchDetectJobAsync(const Model::GetPornBatchDetectJobRequest& request, const GetPornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPornBatchDetectJobOutcomeCallable getPornBatchDetectJobCallable(const Model::GetPornBatchDetectJobRequest& request) const; - DetectLogoOutcome detectLogo(const Model::DetectLogoRequest &request)const; - void detectLogoAsync(const Model::DetectLogoRequest& request, const DetectLogoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectLogoOutcomeCallable detectLogoCallable(const Model::DetectLogoRequest& request) const; - DetectClothesOutcome detectClothes(const Model::DetectClothesRequest &request)const; - void detectClothesAsync(const Model::DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectClothesOutcome detectClothes(const Model::DetectClothesRequest &request)const; + void detectClothesAsync(const Model::DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectClothesOutcomeCallable detectClothesCallable(const Model::DetectClothesRequest& request) const; - ListTagJobsOutcome listTagJobs(const Model::ListTagJobsRequest &request)const; - void listTagJobsAsync(const Model::ListTagJobsRequest& request, const ListTagJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagJobsOutcome listTagJobs(const Model::ListTagJobsRequest &request)const; + void listTagJobsAsync(const Model::ListTagJobsRequest& request, const ListTagJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagJobsOutcomeCallable listTagJobsCallable(const Model::ListTagJobsRequest& request) const; - DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; - void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectLogoOutcome detectLogo(const Model::DetectLogoRequest &request)const; + void detectLogoAsync(const Model::DetectLogoRequest& request, const DetectLogoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectLogoOutcomeCallable detectLogoCallable(const Model::DetectLogoRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; - FindSimilarFacesOutcome findSimilarFaces(const Model::FindSimilarFacesRequest &request)const; - void findSimilarFacesAsync(const Model::FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindSimilarFacesOutcome findSimilarFaces(const Model::FindSimilarFacesRequest &request)const; + void findSimilarFacesAsync(const Model::FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FindSimilarFacesOutcomeCallable findSimilarFacesCallable(const Model::FindSimilarFacesRequest& request) const; - DeleteImageJobOutcome deleteImageJob(const Model::DeleteImageJobRequest &request)const; - void deleteImageJobAsync(const Model::DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImageJobOutcome deleteImageJob(const Model::DeleteImageJobRequest &request)const; + void deleteImageJobAsync(const Model::DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteImageJobOutcomeCallable deleteImageJobCallable(const Model::DeleteImageJobRequest& request) const; - DeleteFaceSearchGroupOutcome deleteFaceSearchGroup(const Model::DeleteFaceSearchGroupRequest &request)const; - void deleteFaceSearchGroupAsync(const Model::DeleteFaceSearchGroupRequest& request, const DeleteFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceSearchGroupOutcome deleteFaceSearchGroup(const Model::DeleteFaceSearchGroupRequest &request)const; + void deleteFaceSearchGroupAsync(const Model::DeleteFaceSearchGroupRequest& request, const DeleteFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFaceSearchGroupOutcomeCallable deleteFaceSearchGroupCallable(const Model::DeleteFaceSearchGroupRequest& request) const; - GetDocIndexOutcome getDocIndex(const Model::GetDocIndexRequest &request)const; - void getDocIndexAsync(const Model::GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDocIndexOutcome getDocIndex(const Model::GetDocIndexRequest &request)const; + void getDocIndexAsync(const Model::GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDocIndexOutcomeCallable getDocIndexCallable(const Model::GetDocIndexRequest& request) const; - IndexImageOutcome indexImage(const Model::IndexImageRequest &request)const; - void indexImageAsync(const Model::IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexImageOutcome indexImage(const Model::IndexImageRequest &request)const; + void indexImageAsync(const Model::IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; IndexImageOutcomeCallable indexImageCallable(const Model::IndexImageRequest& request) const; - ListImageJobsOutcome listImageJobs(const Model::ListImageJobsRequest &request)const; - void listImageJobsAsync(const Model::ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImageJobsOutcome listImageJobs(const Model::ListImageJobsRequest &request)const; + void listImageJobsAsync(const Model::ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListImageJobsOutcomeCallable listImageJobsCallable(const Model::ListImageJobsRequest& 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; + 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; - ListVideoTasksOutcome listVideoTasks(const Model::ListVideoTasksRequest &request)const; - void listVideoTasksAsync(const Model::ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoTasksOutcome listVideoTasks(const Model::ListVideoTasksRequest &request)const; + void listVideoTasksAsync(const Model::ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVideoTasksOutcomeCallable listVideoTasksCallable(const Model::ListVideoTasksRequest& request) const; - CreateVideoCompressTaskOutcome createVideoCompressTask(const Model::CreateVideoCompressTaskRequest &request)const; - void createVideoCompressTaskAsync(const Model::CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVideoCompressTaskOutcome createVideoCompressTask(const Model::CreateVideoCompressTaskRequest &request)const; + void createVideoCompressTaskAsync(const Model::CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVideoCompressTaskOutcomeCallable createVideoCompressTaskCallable(const Model::CreateVideoCompressTaskRequest& request) const; - UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; - void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; + void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const; - UpdateSetOutcome updateSet(const Model::UpdateSetRequest &request)const; - void updateSetAsync(const Model::UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSetOutcome updateSet(const Model::UpdateSetRequest &request)const; + void updateSetAsync(const Model::UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSetOutcomeCallable updateSetCallable(const Model::UpdateSetRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_IMM_IMMCLIENT_H_ + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_IMM_IMMCLIENT_H_ diff --git a/imm/include/alibabacloud/imm/ImmExport.h b/imm/include/alibabacloud/imm/ImmExport.h index c6bd5e9e9..5dcb8a34b 100644 --- a/imm/include/alibabacloud/imm/ImmExport.h +++ b/imm/include/alibabacloud/imm/ImmExport.h @@ -1,32 +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_IMM_IMMEXPORT_H_ -#define ALIBABACLOUD_IMM_IMMEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_IMM_LIBRARY) -# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_IMM_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_IMMEXPORT_H_ +#define ALIBABACLOUD_IMM_IMMEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_IMM_LIBRARY) +# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_IMM_EXPORT +#endif + #endif // !ALIBABACLOUD_IMM_IMMEXPORT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareFaceRequest.h b/imm/include/alibabacloud/imm/model/CompareFaceRequest.h index df760a961..99c58e484 100644 --- a/imm/include/alibabacloud/imm/model/CompareFaceRequest.h +++ b/imm/include/alibabacloud/imm/model/CompareFaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CompareFaceRequest : public RpcServiceRequest - { - - public: - CompareFaceRequest(); - ~CompareFaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareFaceRequest : public RpcServiceRequest + { + + public: + CompareFaceRequest(); + ~CompareFaceRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getSrcUriB()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string srcUriB_; std::string srcUriA_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareFaceResult.h b/imm/include/alibabacloud/imm/model/CompareFaceResult.h index 7d1ee3148..872af5473 100644 --- a/imm/include/alibabacloud/imm/model/CompareFaceResult.h +++ b/imm/include/alibabacloud/imm/model/CompareFaceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CompareFaceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareFaceResult : public ServiceResult + { + public: struct CompareResultItem { struct FaceA @@ -48,20 +48,20 @@ namespace AlibabaCloud FaceA faceA; FaceB faceB; }; - - - CompareFaceResult(); - explicit CompareFaceResult(const std::string &payload); - ~CompareFaceResult(); + + + CompareFaceResult(); + explicit CompareFaceResult(const std::string &payload); + ~CompareFaceResult(); std::vector getCompareResult()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector compareResult_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h b/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h index 54f1e0c25..c7ec75067 100644 --- a/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h +++ b/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CompareImageFacesRequest : public RpcServiceRequest - { - - public: - CompareImageFacesRequest(); - ~CompareImageFacesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareImageFacesRequest : public RpcServiceRequest + { + + public: + CompareImageFacesRequest(); + ~CompareImageFacesRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getImageUriB()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setFaceIdB(const std::string& faceIdB); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string imageUriB_; std::string imageUriA_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string faceIdA_; std::string faceIdB_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h b/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h index bc74e6dde..e22f72f91 100644 --- a/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h +++ b/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CompareImageFacesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareImageFacesResult : public ServiceResult + { + public: struct FaceA { struct FaceAttributes @@ -64,26 +64,26 @@ namespace AlibabaCloud std::string faceId; FaceAttributes1 faceAttributes1; }; - - - CompareImageFacesResult(); - explicit CompareImageFacesResult(const std::string &payload); - ~CompareImageFacesResult(); + + + CompareImageFacesResult(); + explicit CompareImageFacesResult(const std::string &payload); + ~CompareImageFacesResult(); float getSimilarity()const; FaceA getFaceA()const; std::string getSetId()const; FaceB getFaceB()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: float similarity_; FaceA faceA_; std::string setId_; FaceB faceB_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h index dc48e985c..f5a0ab269 100644 --- a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h +++ b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatRequest : public RpcServiceRequest - { - - public: - ConvertOfficeFormatRequest(); - ~ConvertOfficeFormatRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatRequest : public RpcServiceRequest + { + + public: + ConvertOfficeFormatRequest(); + ~ConvertOfficeFormatRequest(); + std::string getSrcType()const; void setSrcType(const std::string& srcType); std::string getModelId()const; @@ -79,8 +79,8 @@ namespace AlibabaCloud void setTgtFilePages(const std::string& tgtFilePages); std::string getTgtUri()const; void setTgtUri(const std::string& tgtUri); - - private: + + private: std::string srcType_; std::string modelId_; std::string project_; @@ -103,9 +103,9 @@ namespace AlibabaCloud std::string srcUri_; std::string tgtFilePages_; std::string tgtUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h index 095998d0a..aac5d2587 100644 --- a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h +++ b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h @@ -1,51 +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_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatResult : public ServiceResult - { - public: - - - ConvertOfficeFormatResult(); - explicit ConvertOfficeFormatResult(const std::string &payload); - ~ConvertOfficeFormatResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatResult : public ServiceResult + { + public: + + + ConvertOfficeFormatResult(); + explicit ConvertOfficeFormatResult(const std::string &payload); + ~ConvertOfficeFormatResult(); int getPageCount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int pageCount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h index 07c6f1d11..8b210f81d 100644 --- a/imm/include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskRequest : public RpcServiceRequest - { - - public: - CreateCADConversionTaskRequest(); - ~CreateCADConversionTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskRequest : public RpcServiceRequest + { + + public: + CreateCADConversionTaskRequest(); + ~CreateCADConversionTaskRequest(); + std::string getSrcType()const; void setSrcType(const std::string& srcType); int getBaseCol()const; @@ -69,8 +69,8 @@ namespace AlibabaCloud void setThumbnails(bool thumbnails); std::string getTgtUri()const; void setTgtUri(const std::string& tgtUri); - - private: + + private: std::string srcType_; int baseCol_; std::string notifyTopicName_; @@ -88,9 +88,9 @@ namespace AlibabaCloud std::string srcUri_; bool thumbnails_; std::string tgtUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateCADConversionTaskResult.h b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskResult.h index dcaa3f95a..2ee281162 100644 --- a/imm/include/alibabacloud/imm/model/CreateCADConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskResult.h @@ -1,59 +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_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskResult : public ServiceResult - { - public: - - - CreateCADConversionTaskResult(); - explicit CreateCADConversionTaskResult(const std::string &payload); - ~CreateCADConversionTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskResult : public ServiceResult + { + public: + + + CreateCADConversionTaskResult(); + explicit CreateCADConversionTaskResult(const std::string &payload); + ~CreateCADConversionTaskResult(); std::string getStatus()const; std::string getTaskId()const; int getPercent()const; std::string getTgtLoc()const; std::string getCreateTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string taskId_; int percent_; std::string tgtLoc_; std::string createTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h index 10bbf6656..eb400ce23 100644 --- a/imm/include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskRequest : public RpcServiceRequest - { - - public: - CreateDocIndexTaskRequest(); - ~CreateDocIndexTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskRequest : public RpcServiceRequest + { + + public: + CreateDocIndexTaskRequest(); + ~CreateDocIndexTaskRequest(); + std::string getCustomKey1()const; void setCustomKey1(const std::string& customKey1); std::string getSet()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setSrcUri(const std::string& srcUri); std::string getUniqueId()const; void setUniqueId(const std::string& uniqueId); - - private: + + private: std::string customKey1_; std::string set_; std::string customKey5_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string name_; std::string srcUri_; std::string uniqueId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateDocIndexTaskResult.h b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskResult.h index ed7748a62..50350130d 100644 --- a/imm/include/alibabacloud/imm/model/CreateDocIndexTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskResult.h @@ -1,55 +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_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskResult : public ServiceResult - { - public: - - - CreateDocIndexTaskResult(); - explicit CreateDocIndexTaskResult(const std::string &payload); - ~CreateDocIndexTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskResult : public ServiceResult + { + public: + + + CreateDocIndexTaskResult(); + explicit CreateDocIndexTaskResult(const std::string &payload); + ~CreateDocIndexTaskResult(); std::string getStatus()const; std::string getTaskId()const; std::string getCreateTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string taskId_; std::string createTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateFaceSetRequest.h b/imm/include/alibabacloud/imm/model/CreateFaceSetRequest.h index 9f3379f9a..6ab1d8b0d 100644 --- a/imm/include/alibabacloud/imm/model/CreateFaceSetRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateFaceSetRequest.h @@ -1,54 +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_IMM_MODEL_CREATEFACESETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEFACESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateFaceSetRequest : public RpcServiceRequest - { - - public: - CreateFaceSetRequest(); - ~CreateFaceSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFACESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFACESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateFaceSetRequest : public RpcServiceRequest + { + + public: + CreateFaceSetRequest(); + ~CreateFaceSetRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEFACESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateFaceSetResult.h b/imm/include/alibabacloud/imm/model/CreateFaceSetResult.h index 0d346c87f..e781a2ae1 100644 --- a/imm/include/alibabacloud/imm/model/CreateFaceSetResult.h +++ b/imm/include/alibabacloud/imm/model/CreateFaceSetResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateFaceSetResult : public ServiceResult - { - public: - - - CreateFaceSetResult(); - explicit CreateFaceSetResult(const std::string &payload); - ~CreateFaceSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateFaceSetResult : public ServiceResult + { + public: + + + CreateFaceSetResult(); + explicit CreateFaceSetResult(const std::string &payload); + ~CreateFaceSetResult(); std::string getStatus()const; long getPhotos()const; std::string getModifyTime()const; std::string getCreateTime()const; std::string getSetId()const; long getFaces()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; long photos_; std::string modifyTime_; std::string createTime_; std::string setId_; long faces_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h index 12ec43182..214ea6983 100644 --- a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobRequest : public RpcServiceRequest - { - - public: - CreateGroupFacesJobRequest(); - ~CreateGroupFacesJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobRequest : public RpcServiceRequest + { + + public: + CreateGroupFacesJobRequest(); + ~CreateGroupFacesJobRequest(); + std::string getNotifyTopicName()const; void setNotifyTopicName(const std::string& notifyTopicName); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string notifyTopicName_; std::string regionId_; std::string notifyEndpoint_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h index e8b4a32dc..5afeac895 100644 --- a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h +++ b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h @@ -1,55 +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_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobResult : public ServiceResult - { - public: - - - CreateGroupFacesJobResult(); - explicit CreateGroupFacesJobResult(const std::string &payload); - ~CreateGroupFacesJobResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobResult : public ServiceResult + { + public: + + + CreateGroupFacesJobResult(); + explicit CreateGroupFacesJobResult(const std::string &payload); + ~CreateGroupFacesJobResult(); std::string getJobType()const; std::string getSetId()const; std::string getJobId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string jobType_; std::string setId_; std::string jobId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h index 8330d8f10..729cd107f 100644 --- a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateMergeFaceGroupsJobRequest : public RpcServiceRequest - { - - public: - CreateMergeFaceGroupsJobRequest(); - ~CreateMergeFaceGroupsJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateMergeFaceGroupsJobRequest : public RpcServiceRequest + { + + public: + CreateMergeFaceGroupsJobRequest(); + ~CreateMergeFaceGroupsJobRequest(); + std::string getGroupIdFrom()const; void setGroupIdFrom(const std::string& groupIdFrom); std::string getGroupIdTo()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string groupIdFrom_; std::string groupIdTo_; std::string notifyTopicName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h index 3bf69a65c..1a8a57a2b 100644 --- a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h +++ b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h @@ -1,59 +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_IMM_MODEL_CREATEMERGEFACEGROUPSJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateMergeFaceGroupsJobResult : public ServiceResult - { - public: - - - CreateMergeFaceGroupsJobResult(); - explicit CreateMergeFaceGroupsJobResult(const std::string &payload); - ~CreateMergeFaceGroupsJobResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateMergeFaceGroupsJobResult : public ServiceResult + { + public: + + + CreateMergeFaceGroupsJobResult(); + explicit CreateMergeFaceGroupsJobResult(const std::string &payload); + ~CreateMergeFaceGroupsJobResult(); std::string getGroupIdFrom()const; std::string getJobType()const; std::string getSetId()const; std::string getGroupIdTo()const; std::string getJobId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupIdFrom_; std::string jobType_; std::string setId_; std::string groupIdTo_; std::string jobId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h index ff098d105..ee3bce161 100644 --- a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateOfficeConversionTaskRequest : public RpcServiceRequest - { - - public: - CreateOfficeConversionTaskRequest(); - ~CreateOfficeConversionTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + CreateOfficeConversionTaskRequest(); + ~CreateOfficeConversionTaskRequest(); + std::string getSrcType()const; void setSrcType(const std::string& srcType); std::string getProject()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setTgtFilePages(const std::string& tgtFilePages); std::string getTgtUri()const; void setTgtUri(const std::string& tgtUri); - - private: + + private: std::string srcType_; std::string project_; std::string idempotentToken_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string srcUri_; std::string tgtFilePages_; std::string tgtUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h index 08ed5e2bb..147a20397 100644 --- a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h @@ -1,59 +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_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateOfficeConversionTaskResult : public ServiceResult - { - public: - - - CreateOfficeConversionTaskResult(); - explicit CreateOfficeConversionTaskResult(const std::string &payload); - ~CreateOfficeConversionTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateOfficeConversionTaskResult : public ServiceResult + { + public: + + + CreateOfficeConversionTaskResult(); + explicit CreateOfficeConversionTaskResult(const std::string &payload); + ~CreateOfficeConversionTaskResult(); std::string getStatus()const; std::string getTaskId()const; int getPercent()const; std::string getTgtLoc()const; std::string getCreateTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string taskId_; int percent_; std::string tgtLoc_; std::string createTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h index af4ab318e..19d3dd6f7 100644 --- a/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h +++ b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreatePornBatchDetectJobRequest : public RpcServiceRequest - { - - public: - CreatePornBatchDetectJobRequest(); - ~CreatePornBatchDetectJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreatePornBatchDetectJobRequest : public RpcServiceRequest + { + + public: + CreatePornBatchDetectJobRequest(); + ~CreatePornBatchDetectJobRequest(); + std::string getNotifyTopicName()const; void setNotifyTopicName(const std::string& notifyTopicName); std::string getRegionId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getTgtUri()const; void setTgtUri(const std::string& tgtUri); - - private: + + private: std::string notifyTopicName_; std::string regionId_; std::string notifyEndpoint_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string srcUri_; std::string accessKeyId_; std::string tgtUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h index 9f76d852b..53509428c 100644 --- a/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h +++ b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h @@ -1,59 +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_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreatePornBatchDetectJobResult : public ServiceResult - { - public: - - - CreatePornBatchDetectJobResult(); - explicit CreatePornBatchDetectJobResult(const std::string &payload); - ~CreatePornBatchDetectJobResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreatePornBatchDetectJobResult : public ServiceResult + { + public: + + + CreatePornBatchDetectJobResult(); + explicit CreatePornBatchDetectJobResult(const std::string &payload); + ~CreatePornBatchDetectJobResult(); std::string getStatus()const; int getPercent()const; std::string getTgtLoc()const; std::string getCreateTime()const; std::string getJobId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; int percent_; std::string tgtLoc_; std::string createTime_; std::string jobId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateSetRequest.h b/imm/include/alibabacloud/imm/model/CreateSetRequest.h index 03f44ce4b..387318768 100644 --- a/imm/include/alibabacloud/imm/model/CreateSetRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateSetRequest : public RpcServiceRequest - { - - public: - CreateSetRequest(); - ~CreateSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateSetRequest : public RpcServiceRequest + { + + public: + CreateSetRequest(); + ~CreateSetRequest(); + std::string getSetName()const; void setSetName(const std::string& setName); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string setName_; std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateSetResult.h b/imm/include/alibabacloud/imm/model/CreateSetResult.h index 1ab4fa4d9..f3053d66a 100644 --- a/imm/include/alibabacloud/imm/model/CreateSetResult.h +++ b/imm/include/alibabacloud/imm/model/CreateSetResult.h @@ -1,42 +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_IMM_MODEL_CREATESETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateSetResult : public ServiceResult - { - public: - - - CreateSetResult(); - explicit CreateSetResult(const std::string &payload); - ~CreateSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateSetResult : public ServiceResult + { + public: + + + CreateSetResult(); + explicit CreateSetResult(const std::string &payload); + ~CreateSetResult(); std::string getModifyTime()const; int getImageCount()const; int getVideoCount()const; @@ -45,10 +45,10 @@ namespace AlibabaCloud std::string getSetId()const; int getFaceCount()const; int getVideoLength()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; int imageCount_; int videoCount_; @@ -57,9 +57,9 @@ namespace AlibabaCloud std::string setId_; int faceCount_; int videoLength_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagJobRequest.h b/imm/include/alibabacloud/imm/model/CreateTagJobRequest.h index cffac98d8..e014ed6ba 100644 --- a/imm/include/alibabacloud/imm/model/CreateTagJobRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateTagJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateTagJobRequest : public RpcServiceRequest - { - - public: - CreateTagJobRequest(); - ~CreateTagJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagJobRequest : public RpcServiceRequest + { + + public: + CreateTagJobRequest(); + ~CreateTagJobRequest(); + std::string getNotifyTopicName()const; void setNotifyTopicName(const std::string& notifyTopicName); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSrcUri(const std::string& srcUri); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string notifyTopicName_; std::string regionId_; std::string notifyEndpoint_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string externalID_; std::string srcUri_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagJobResult.h b/imm/include/alibabacloud/imm/model/CreateTagJobResult.h index dd7aa654d..fea8728bb 100644 --- a/imm/include/alibabacloud/imm/model/CreateTagJobResult.h +++ b/imm/include/alibabacloud/imm/model/CreateTagJobResult.h @@ -1,42 +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_IMM_MODEL_CREATETAGJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATETAGJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateTagJobResult : public ServiceResult - { - public: - - - CreateTagJobResult(); - explicit CreateTagJobResult(const std::string &payload); - ~CreateTagJobResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagJobResult : public ServiceResult + { + public: + + + CreateTagJobResult(); + explicit CreateTagJobResult(const std::string &payload); + ~CreateTagJobResult(); std::string getStatus()const; std::string getFinishTime()const; int getPercent()const; @@ -44,10 +44,10 @@ namespace AlibabaCloud std::string getSetId()const; std::string getJobId()const; std::string getSrcUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string finishTime_; int percent_; @@ -55,9 +55,9 @@ namespace AlibabaCloud std::string setId_; std::string jobId_; std::string srcUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagSetRequest.h b/imm/include/alibabacloud/imm/model/CreateTagSetRequest.h index 61b14a5d7..a89f03784 100644 --- a/imm/include/alibabacloud/imm/model/CreateTagSetRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateTagSetRequest.h @@ -1,54 +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_IMM_MODEL_CREATETAGSETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateTagSetRequest : public RpcServiceRequest - { - - public: - CreateTagSetRequest(); - ~CreateTagSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagSetRequest : public RpcServiceRequest + { + + public: + CreateTagSetRequest(); + ~CreateTagSetRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagSetResult.h b/imm/include/alibabacloud/imm/model/CreateTagSetResult.h index d5f646c0f..250bcb20c 100644 --- a/imm/include/alibabacloud/imm/model/CreateTagSetResult.h +++ b/imm/include/alibabacloud/imm/model/CreateTagSetResult.h @@ -1,59 +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_IMM_MODEL_CREATETAGSETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateTagSetResult : public ServiceResult - { - public: - - - CreateTagSetResult(); - explicit CreateTagSetResult(const std::string &payload); - ~CreateTagSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagSetResult : public ServiceResult + { + public: + + + CreateTagSetResult(); + explicit CreateTagSetResult(const std::string &payload); + ~CreateTagSetResult(); std::string getStatus()const; long getPhotos()const; std::string getModifyTime()const; std::string getCreateTime()const; std::string getSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; long photos_; std::string modifyTime_; std::string createTime_; std::string setId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h index a3029a9e8..fa0e5c24b 100644 --- a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskRequest : public RpcServiceRequest - { - - public: - CreateVideoAnalyseTaskRequest(); - ~CreateVideoAnalyseTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskRequest : public RpcServiceRequest + { + + public: + CreateVideoAnalyseTaskRequest(); + ~CreateVideoAnalyseTaskRequest(); + std::string getNotifyTopicName()const; void setNotifyTopicName(const std::string& notifyTopicName); std::string getGrabType()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setInterval(const std::string& interval); std::string getTgtUri()const; void setTgtUri(const std::string& tgtUri); - - private: + + private: std::string notifyTopicName_; std::string grabType_; std::string project_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string notifyEndpoint_; std::string interval_; std::string tgtUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h index a834f6a18..4c935934d 100644 --- a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskResult : public ServiceResult - { - public: - - - CreateVideoAnalyseTaskResult(); - explicit CreateVideoAnalyseTaskResult(const std::string &payload); - ~CreateVideoAnalyseTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskResult : public ServiceResult + { + public: + + + CreateVideoAnalyseTaskResult(); + explicit CreateVideoAnalyseTaskResult(const std::string &payload); + ~CreateVideoAnalyseTaskResult(); std::string getTaskId()const; std::string getTaskType()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string taskType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h index df818cdf4..44a455e5e 100644 --- a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateVideoCompressTaskRequest : public RpcServiceRequest - { - - public: - CreateVideoCompressTaskRequest(); - ~CreateVideoCompressTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateVideoCompressTaskRequest : public RpcServiceRequest + { + + public: + CreateVideoCompressTaskRequest(); + ~CreateVideoCompressTaskRequest(); + std::string getVideoUri()const; void setVideoUri(const std::string& videoUri); std::string getNotifyTopicName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string videoUri_; std::string notifyTopicName_; std::string targetList_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string notifyEndpoint_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h index bbbf0318d..19a63d16d 100644 --- a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateVideoCompressTaskResult : public ServiceResult - { - public: - - - CreateVideoCompressTaskResult(); - explicit CreateVideoCompressTaskResult(const std::string &payload); - ~CreateVideoCompressTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateVideoCompressTaskResult : public ServiceResult + { + public: + + + CreateVideoCompressTaskResult(); + explicit CreateVideoCompressTaskResult(const std::string &payload); + ~CreateVideoCompressTaskResult(); std::string getTaskId()const; std::string getTaskType()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string taskType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteDocIndexRequest.h b/imm/include/alibabacloud/imm/model/DeleteDocIndexRequest.h index 175a1e93d..9e9bef017 100644 --- a/imm/include/alibabacloud/imm/model/DeleteDocIndexRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteDocIndexRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexRequest : public RpcServiceRequest - { - - public: - DeleteDocIndexRequest(); - ~DeleteDocIndexRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexRequest : public RpcServiceRequest + { + + public: + DeleteDocIndexRequest(); + ~DeleteDocIndexRequest(); + std::string getSet()const; void setSet(const std::string& set); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setUniqueId(const std::string& uniqueId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string set_; std::string regionId_; std::string project_; std::string uniqueId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteDocIndexResult.h b/imm/include/alibabacloud/imm/model/DeleteDocIndexResult.h index 8e0ec99fa..067b2ba43 100644 --- a/imm/include/alibabacloud/imm/model/DeleteDocIndexResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteDocIndexResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexResult : public ServiceResult - { - public: - - - DeleteDocIndexResult(); - explicit DeleteDocIndexResult(const std::string &payload); - ~DeleteDocIndexResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexResult : public ServiceResult + { + public: + + + DeleteDocIndexResult(); + explicit DeleteDocIndexResult(const std::string &payload); + ~DeleteDocIndexResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceJobRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceJobRequest.h index 8d6e5b6ec..7b3c8a2cf 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceJobRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceJobRequest : public RpcServiceRequest - { - - public: - DeleteFaceJobRequest(); - ~DeleteFaceJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceJobRequest : public RpcServiceRequest + { + + public: + DeleteFaceJobRequest(); + ~DeleteFaceJobRequest(); + std::string getJobId()const; void setJobId(const std::string& jobId); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setClearIndexData(const std::string& clearIndexData); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string jobId_; std::string regionId_; std::string project_; std::string clearIndexData_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceJobResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceJobResult.h index 5c92efc73..02081186d 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceJobResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceJobResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceJobResult : public ServiceResult - { - public: - - - DeleteFaceJobResult(); - explicit DeleteFaceJobResult(const std::string &payload); - ~DeleteFaceJobResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceJobResult : public ServiceResult + { + public: + + + DeleteFaceJobResult(); + explicit DeleteFaceJobResult(const std::string &payload); + ~DeleteFaceJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h index 058cf1877..df3dab375 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchGroupRequest : public RpcServiceRequest - { - - public: - DeleteFaceSearchGroupRequest(); - ~DeleteFaceSearchGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchGroupRequest : public RpcServiceRequest + { + + public: + DeleteFaceSearchGroupRequest(); + ~DeleteFaceSearchGroupRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setGroupName(const std::string& groupName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string groupName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h index ebffeada0..66277ffcb 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchGroupResult : public ServiceResult - { - public: - - - DeleteFaceSearchGroupResult(); - explicit DeleteFaceSearchGroupResult(const std::string &payload); - ~DeleteFaceSearchGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchGroupResult : public ServiceResult + { + public: + + + DeleteFaceSearchGroupResult(); + explicit DeleteFaceSearchGroupResult(const std::string &payload); + ~DeleteFaceSearchGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h index a08f0f37a..738de6cbf 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchImageByIdRequest : public RpcServiceRequest - { - - public: - DeleteFaceSearchImageByIdRequest(); - ~DeleteFaceSearchImageByIdRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchImageByIdRequest : public RpcServiceRequest + { + + public: + DeleteFaceSearchImageByIdRequest(); + ~DeleteFaceSearchImageByIdRequest(); + std::string getImageId()const; void setImageId(const std::string& imageId); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setUser(const std::string& user); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageId_; std::string regionId_; std::string project_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string groupName_; std::string user_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h index cb7d8d3b6..941195218 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchImageByIdResult : public ServiceResult - { - public: - - - DeleteFaceSearchImageByIdResult(); - explicit DeleteFaceSearchImageByIdResult(const std::string &payload); - ~DeleteFaceSearchImageByIdResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchImageByIdResult : public ServiceResult + { + public: + + + DeleteFaceSearchImageByIdResult(); + explicit DeleteFaceSearchImageByIdResult(const std::string &payload); + ~DeleteFaceSearchImageByIdResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h index bf55effa6..33a8ea61a 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchUserRequest : public RpcServiceRequest - { - - public: - DeleteFaceSearchUserRequest(); - ~DeleteFaceSearchUserRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchUserRequest : public RpcServiceRequest + { + + public: + DeleteFaceSearchUserRequest(); + ~DeleteFaceSearchUserRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setUser(const std::string& user); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string groupName_; std::string user_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h index 33ac8983d..aac4cd93b 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchUserResult : public ServiceResult - { - public: - - - DeleteFaceSearchUserResult(); - explicit DeleteFaceSearchUserResult(const std::string &payload); - ~DeleteFaceSearchUserResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchUserResult : public ServiceResult + { + public: + + + DeleteFaceSearchUserResult(); + explicit DeleteFaceSearchUserResult(const std::string &payload); + ~DeleteFaceSearchUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h b/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h index 54d4cacfd..7df1d5a2f 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteImageJobRequest : public RpcServiceRequest - { - - public: - DeleteImageJobRequest(); - ~DeleteImageJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageJobRequest : public RpcServiceRequest + { + + public: + DeleteImageJobRequest(); + ~DeleteImageJobRequest(); + std::string getJobId()const; void setJobId(const std::string& jobId); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setJobType(const std::string& jobType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string jobId_; std::string regionId_; std::string project_; std::string jobType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h b/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h index 908ac8f7d..a00564224 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteImageJobResult : public ServiceResult - { - public: - - - DeleteImageJobResult(); - explicit DeleteImageJobResult(const std::string &payload); - ~DeleteImageJobResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageJobResult : public ServiceResult + { + public: + + + DeleteImageJobResult(); + explicit DeleteImageJobResult(const std::string &payload); + ~DeleteImageJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageRequest.h b/imm/include/alibabacloud/imm/model/DeleteImageRequest.h index d52aa3208..070bbe438 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteImageRequest : public RpcServiceRequest - { - - public: - DeleteImageRequest(); - ~DeleteImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageRequest : public RpcServiceRequest + { + + public: + DeleteImageRequest(); + ~DeleteImageRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageResult.h b/imm/include/alibabacloud/imm/model/DeleteImageResult.h index 2ed6c7db7..9052196c2 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteImageResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteImageResult : public ServiceResult - { - public: - - - DeleteImageResult(); - explicit DeleteImageResult(const std::string &payload); - ~DeleteImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageResult : public ServiceResult + { + public: + + + DeleteImageResult(); + explicit DeleteImageResult(const std::string &payload); + ~DeleteImageResult(); std::string getSetId()const; std::string getImageUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string setId_; std::string imageUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h index b6a3aaac8..02c7dcc5b 100644 --- a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskRequest : public RpcServiceRequest - { - - public: - DeleteOfficeConversionTaskRequest(); - ~DeleteOfficeConversionTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + DeleteOfficeConversionTaskRequest(); + ~DeleteOfficeConversionTaskRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h index d7147b6ae..f3aba9cde 100644 --- a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskResult : public ServiceResult - { - public: - - - DeleteOfficeConversionTaskResult(); - explicit DeleteOfficeConversionTaskResult(const std::string &payload); - ~DeleteOfficeConversionTaskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskResult : public ServiceResult + { + public: + + + DeleteOfficeConversionTaskResult(); + explicit DeleteOfficeConversionTaskResult(const std::string &payload); + ~DeleteOfficeConversionTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h index d6ec795e5..348f30b8a 100644 --- a/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeletePhotoProcessTaskRequest : public RpcServiceRequest - { - - public: - DeletePhotoProcessTaskRequest(); - ~DeletePhotoProcessTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePhotoProcessTaskRequest : public RpcServiceRequest + { + + public: + DeletePhotoProcessTaskRequest(); + ~DeletePhotoProcessTaskRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h index 6727e3809..65e30f86b 100644 --- a/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h +++ b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeletePhotoProcessTaskResult : public ServiceResult - { - public: - - - DeletePhotoProcessTaskResult(); - explicit DeletePhotoProcessTaskResult(const std::string &payload); - ~DeletePhotoProcessTaskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePhotoProcessTaskResult : public ServiceResult + { + public: + + + DeletePhotoProcessTaskResult(); + explicit DeletePhotoProcessTaskResult(const std::string &payload); + ~DeletePhotoProcessTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h index 90ca6b362..c51718c08 100644 --- a/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h +++ b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeletePornBatchDetectJobRequest : public RpcServiceRequest - { - - public: - DeletePornBatchDetectJobRequest(); - ~DeletePornBatchDetectJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePornBatchDetectJobRequest : public RpcServiceRequest + { + + public: + DeletePornBatchDetectJobRequest(); + ~DeletePornBatchDetectJobRequest(); + std::string getJobId()const; void setJobId(const std::string& jobId); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string jobId_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h index 7c1fa71c5..4359ce5f5 100644 --- a/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h +++ b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeletePornBatchDetectJobResult : public ServiceResult - { - public: - - - DeletePornBatchDetectJobResult(); - explicit DeletePornBatchDetectJobResult(const std::string &payload); - ~DeletePornBatchDetectJobResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePornBatchDetectJobResult : public ServiceResult + { + public: + + + DeletePornBatchDetectJobResult(); + explicit DeletePornBatchDetectJobResult(const std::string &payload); + ~DeletePornBatchDetectJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h b/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h index 3be6056b0..efbc16621 100644 --- a/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h @@ -1,54 +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_IMM_MODEL_DELETEPROJECTREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEPROJECTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteProjectRequest : public RpcServiceRequest - { - - public: - DeleteProjectRequest(); - ~DeleteProjectRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteProjectRequest : public RpcServiceRequest + { + + public: + DeleteProjectRequest(); + ~DeleteProjectRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteProjectResult.h b/imm/include/alibabacloud/imm/model/DeleteProjectResult.h index fd41c31ae..05f009852 100644 --- a/imm/include/alibabacloud/imm/model/DeleteProjectResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteProjectResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteProjectResult : public ServiceResult - { - public: - - - DeleteProjectResult(); - explicit DeleteProjectResult(const std::string &payload); - ~DeleteProjectResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteProjectResult : public ServiceResult + { + public: + + + DeleteProjectResult(); + explicit DeleteProjectResult(const std::string &payload); + ~DeleteProjectResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteSetRequest.h b/imm/include/alibabacloud/imm/model/DeleteSetRequest.h index 58c8b03e0..7263e8574 100644 --- a/imm/include/alibabacloud/imm/model/DeleteSetRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteSetRequest : public RpcServiceRequest - { - - public: - DeleteSetRequest(); - ~DeleteSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteSetRequest : public RpcServiceRequest + { + + public: + DeleteSetRequest(); + ~DeleteSetRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteSetResult.h b/imm/include/alibabacloud/imm/model/DeleteSetResult.h index 28a7a8046..9273b1661 100644 --- a/imm/include/alibabacloud/imm/model/DeleteSetResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteSetResult.h @@ -1,51 +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_IMM_MODEL_DELETESETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteSetResult : public ServiceResult - { - public: - - - DeleteSetResult(); - explicit DeleteSetResult(const std::string &payload); - ~DeleteSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteSetResult : public ServiceResult + { + public: + + + DeleteSetResult(); + explicit DeleteSetResult(const std::string &payload); + ~DeleteSetResult(); std::string getSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string setId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByNameRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagByNameRequest.h index 5743d5ca9..ef541f85c 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagByNameRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagByNameRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagByNameRequest : public RpcServiceRequest - { - - public: - DeleteTagByNameRequest(); - ~DeleteTagByNameRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByNameRequest : public RpcServiceRequest + { + + public: + DeleteTagByNameRequest(); + ~DeleteTagByNameRequest(); + std::string getTagName()const; void setTagName(const std::string& tagName); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSrcUri(const std::string& srcUri); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string tagName_; std::string regionId_; std::string project_; std::string setId_; std::string srcUri_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByNameResult.h b/imm/include/alibabacloud/imm/model/DeleteTagByNameResult.h index f6ac0bff5..55d335c50 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagByNameResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagByNameResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagByNameResult : public ServiceResult - { - public: - - - DeleteTagByNameResult(); - explicit DeleteTagByNameResult(const std::string &payload); - ~DeleteTagByNameResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByNameResult : public ServiceResult + { + public: + + + DeleteTagByNameResult(); + explicit DeleteTagByNameResult(const std::string &payload); + ~DeleteTagByNameResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByUrlRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagByUrlRequest.h index cd5963c05..eebf919db 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagByUrlRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagByUrlRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagByUrlRequest : public RpcServiceRequest - { - - public: - DeleteTagByUrlRequest(); - ~DeleteTagByUrlRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByUrlRequest : public RpcServiceRequest + { + + public: + DeleteTagByUrlRequest(); + ~DeleteTagByUrlRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSrcUri(const std::string& srcUri); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string setId_; std::string srcUri_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByUrlResult.h b/imm/include/alibabacloud/imm/model/DeleteTagByUrlResult.h index c16bc7883..6c931cf5c 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagByUrlResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagByUrlResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagByUrlResult : public ServiceResult - { - public: - - - DeleteTagByUrlResult(); - explicit DeleteTagByUrlResult(const std::string &payload); - ~DeleteTagByUrlResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByUrlResult : public ServiceResult + { + public: + + + DeleteTagByUrlResult(); + explicit DeleteTagByUrlResult(const std::string &payload); + ~DeleteTagByUrlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagJobRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagJobRequest.h index 2fd16eb70..8c6832a4e 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagJobRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagJobRequest : public RpcServiceRequest - { - - public: - DeleteTagJobRequest(); - ~DeleteTagJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagJobRequest : public RpcServiceRequest + { + + public: + DeleteTagJobRequest(); + ~DeleteTagJobRequest(); + std::string getJobId()const; void setJobId(const std::string& jobId); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setClearIndexData(const std::string& clearIndexData); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string jobId_; std::string regionId_; std::string project_; std::string clearIndexData_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagJobResult.h b/imm/include/alibabacloud/imm/model/DeleteTagJobResult.h index 0a77d6bba..d99e871e1 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagJobResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagJobResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagJobResult : public ServiceResult - { - public: - - - DeleteTagJobResult(); - explicit DeleteTagJobResult(const std::string &payload); - ~DeleteTagJobResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagJobResult : public ServiceResult + { + public: + + + DeleteTagJobResult(); + explicit DeleteTagJobResult(const std::string &payload); + ~DeleteTagJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagSetRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagSetRequest.h index 65baff515..8c09d8a4d 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagSetRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagSetRequest : public RpcServiceRequest - { - - public: - DeleteTagSetRequest(); - ~DeleteTagSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagSetRequest : public RpcServiceRequest + { + + public: + DeleteTagSetRequest(); + ~DeleteTagSetRequest(); + std::string getLazyMode()const; void setLazyMode(const std::string& lazyMode); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setCheckEmpty(const std::string& checkEmpty); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string lazyMode_; std::string regionId_; std::string project_; std::string setId_; std::string checkEmpty_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagSetResult.h b/imm/include/alibabacloud/imm/model/DeleteTagSetResult.h index 38cb0c2d6..c69e2637b 100644 --- a/imm/include/alibabacloud/imm/model/DeleteTagSetResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteTagSetResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteTagSetResult : public ServiceResult - { - public: - - - DeleteTagSetResult(); - explicit DeleteTagSetResult(const std::string &payload); - ~DeleteTagSetResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagSetResult : public ServiceResult + { + public: + + + DeleteTagSetResult(); + explicit DeleteTagSetResult(const std::string &payload); + ~DeleteTagSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h b/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h index 0636f1dc5..84ed17e77 100644 --- a/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteVideoRequest : public RpcServiceRequest - { - - public: - DeleteVideoRequest(); - ~DeleteVideoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoRequest : public RpcServiceRequest + { + + public: + DeleteVideoRequest(); + ~DeleteVideoRequest(); + std::string getVideoUri()const; void setVideoUri(const std::string& videoUri); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setResources(bool resources); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string videoUri_; std::string regionId_; std::string project_; std::string setId_; bool resources_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoResult.h b/imm/include/alibabacloud/imm/model/DeleteVideoResult.h index b8a11c8e0..f1df303de 100644 --- a/imm/include/alibabacloud/imm/model/DeleteVideoResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteVideoResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteVideoResult : public ServiceResult - { - public: - - - DeleteVideoResult(); - explicit DeleteVideoResult(const std::string &payload); - ~DeleteVideoResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoResult : public ServiceResult + { + public: + + + DeleteVideoResult(); + explicit DeleteVideoResult(const std::string &payload); + ~DeleteVideoResult(); std::string getVideoUri()const; std::string getSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string videoUri_; std::string setId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h index bfd8d50b3..aca3d2d80 100644 --- a/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskRequest : public RpcServiceRequest - { - - public: - DeleteVideoTaskRequest(); - ~DeleteVideoTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskRequest : public RpcServiceRequest + { + + public: + DeleteVideoTaskRequest(); + ~DeleteVideoTaskRequest(); + std::string getTaskType()const; void setTaskType(const std::string& taskType); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string taskType_; std::string regionId_; std::string project_; std::string taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h b/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h index f04f18c56..535bc5d91 100644 --- a/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskResult : public ServiceResult - { - public: - - - DeleteVideoTaskResult(); - explicit DeleteVideoTaskResult(const std::string &payload); - ~DeleteVideoTaskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskResult : public ServiceResult + { + public: + + + DeleteVideoTaskResult(); + explicit DeleteVideoTaskResult(const std::string &payload); + ~DeleteVideoTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h b/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h index 043def3e6..f7b04ca93 100644 --- a/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h +++ b/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h @@ -1,51 +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_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h b/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h index 666a07f00..fe82d30d9 100644 --- a/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h +++ b/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DescribeRegionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DescribeRegionsResult : public ServiceResult + { + public: struct Regions { struct RegionItem @@ -41,20 +41,20 @@ namespace AlibabaCloud }; std::vector region; }; - - - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); Regions getRegions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: Regions regions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectClothesRequest.h b/imm/include/alibabacloud/imm/model/DetectClothesRequest.h index de4b214f2..1da6d5387 100644 --- a/imm/include/alibabacloud/imm/model/DetectClothesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectClothesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectClothesRequest : public RpcServiceRequest - { - - public: - DetectClothesRequest(); - ~DetectClothesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectClothesRequest : public RpcServiceRequest + { + + public: + DetectClothesRequest(); + ~DetectClothesRequest(); + std::string getSrcUris()const; void setSrcUris(const std::string& srcUris); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string srcUris_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectClothesResult.h b/imm/include/alibabacloud/imm/model/DetectClothesResult.h index 8e471ce9b..34bd661aa 100644 --- a/imm/include/alibabacloud/imm/model/DetectClothesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectClothesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectClothesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectClothesResult : public ServiceResult + { + public: struct SuccessDetailsItem { struct ClothesBoxDetailItem @@ -52,24 +52,24 @@ namespace AlibabaCloud std::string reason; std::string srcUri; }; - - - DetectClothesResult(); - explicit DetectClothesResult(const std::string &payload); - ~DetectClothesResult(); + + + DetectClothesResult(); + explicit DetectClothesResult(const std::string &payload); + ~DetectClothesResult(); std::vector getSuccessDetails()const; std::vector getSrcUris()const; std::vector getFailDetails()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector successDetails_; std::vector srcUris_; std::vector failDetails_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h index d1fcdac24..66fd82274 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageBodiesRequest : public RpcServiceRequest - { - - public: - DetectImageBodiesRequest(); - ~DetectImageBodiesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageBodiesRequest : public RpcServiceRequest + { + + public: + DetectImageBodiesRequest(); + ~DetectImageBodiesRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h b/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h index 46dd4bf6c..a8b1e99ff 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageBodiesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageBodiesResult : public ServiceResult + { + public: struct BodiesItem { struct BodyBoundary @@ -44,22 +44,22 @@ namespace AlibabaCloud float bodyConfidence; BodyBoundary bodyBoundary; }; - - - DetectImageBodiesResult(); - explicit DetectImageBodiesResult(const std::string &payload); - ~DetectImageBodiesResult(); + + + DetectImageBodiesResult(); + explicit DetectImageBodiesResult(const std::string &payload); + ~DetectImageBodiesResult(); std::vector getBodies()const; std::string getImageUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector bodies_; std::string imageUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEBODIESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageCelebrityRequest.h b/imm/include/alibabacloud/imm/model/DetectImageCelebrityRequest.h index 8044986b2..b575da1aa 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageCelebrityRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageCelebrityRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageCelebrityRequest : public RpcServiceRequest - { - - public: - DetectImageCelebrityRequest(); - ~DetectImageCelebrityRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageCelebrityRequest : public RpcServiceRequest + { + + public: + DetectImageCelebrityRequest(); + ~DetectImageCelebrityRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getLibrary()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setRealUid(const std::string& realUid); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string library_; std::string regionId_; std::string project_; std::string realUid_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageCelebrityResult.h b/imm/include/alibabacloud/imm/model/DetectImageCelebrityResult.h index 44c774ce2..8f25d7e6f 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageCelebrityResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageCelebrityResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageCelebrityResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageCelebrityResult : public ServiceResult + { + public: struct CelebrityItem { struct CelebrityBoundary @@ -47,22 +47,22 @@ namespace AlibabaCloud std::string celebrityLibraryName; float celebrityConfidence; }; - - - DetectImageCelebrityResult(); - explicit DetectImageCelebrityResult(const std::string &payload); - ~DetectImageCelebrityResult(); + + + DetectImageCelebrityResult(); + explicit DetectImageCelebrityResult(const std::string &payload); + ~DetectImageCelebrityResult(); std::vector getCelebrity()const; std::string getImageUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector celebrity_; std::string imageUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h index 2a5e9f850..454e0ce71 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageFacesRequest : public RpcServiceRequest - { - - public: - DetectImageFacesRequest(); - ~DetectImageFacesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageFacesRequest : public RpcServiceRequest + { + + public: + DetectImageFacesRequest(); + ~DetectImageFacesRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setRealUid(const std::string& realUid); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; std::string project_; std::string realUid_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h index 14a9494eb..480da655e 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageFacesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageFacesResult : public ServiceResult + { + public: struct FacesItem { struct FaceAttributes @@ -84,22 +84,22 @@ namespace AlibabaCloud int age; float ageConfidence; }; - - - DetectImageFacesResult(); - explicit DetectImageFacesResult(const std::string &payload); - ~DetectImageFacesResult(); + + + DetectImageFacesResult(); + explicit DetectImageFacesResult(const std::string &payload); + ~DetectImageFacesResult(); std::string getImageUri()const; std::vector getFaces()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string imageUri_; std::vector faces_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageLogosRequest.h b/imm/include/alibabacloud/imm/model/DetectImageLogosRequest.h index 226173041..054752a6f 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageLogosRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageLogosRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageLogosRequest : public RpcServiceRequest - { - - public: - DetectImageLogosRequest(); - ~DetectImageLogosRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageLogosRequest : public RpcServiceRequest + { + + public: + DetectImageLogosRequest(); + ~DetectImageLogosRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageLogosResult.h b/imm/include/alibabacloud/imm/model/DetectImageLogosResult.h index 2cc37e4ba..9d6a6133e 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageLogosResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageLogosResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageLogosResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageLogosResult : public ServiceResult + { + public: struct LogosItem { struct LogoBoundary @@ -45,22 +45,22 @@ namespace AlibabaCloud std::string logoName; float logoConfidence; }; - - - DetectImageLogosResult(); - explicit DetectImageLogosResult(const std::string &payload); - ~DetectImageLogosResult(); + + + DetectImageLogosResult(); + explicit DetectImageLogosResult(const std::string &payload); + ~DetectImageLogosResult(); std::vector getLogos()const; std::string getImageUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector logos_; std::string imageUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h index 409ec4595..7d73ce486 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageTagsRequest : public RpcServiceRequest - { - - public: - DetectImageTagsRequest(); - ~DetectImageTagsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTagsRequest : public RpcServiceRequest + { + + public: + DetectImageTagsRequest(); + ~DetectImageTagsRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setRealUid(const std::string& realUid); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; std::string project_; std::string realUid_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h b/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h index 4120dc475..395b0525a 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageTagsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTagsResult : public ServiceResult + { + public: struct TagsItem { std::string tagName; @@ -41,22 +41,22 @@ namespace AlibabaCloud std::string parentTagEnName; std::string parentTagName; }; - - - DetectImageTagsResult(); - explicit DetectImageTagsResult(const std::string &payload); - ~DetectImageTagsResult(); + + + DetectImageTagsResult(); + explicit DetectImageTagsResult(const std::string &payload); + ~DetectImageTagsResult(); std::string getImageUri()const; std::vector getTags()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string imageUri_; std::vector tags_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTextsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageTextsRequest.h index e7bb4aa28..c0e373e6f 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageTextsRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageTextsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageTextsRequest : public RpcServiceRequest - { - - public: - DetectImageTextsRequest(); - ~DetectImageTextsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTextsRequest : public RpcServiceRequest + { + + public: + DetectImageTextsRequest(); + ~DetectImageTextsRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTextsResult.h b/imm/include/alibabacloud/imm/model/DetectImageTextsResult.h index 42cbfce4d..db13cb7d5 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageTextsResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageTextsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectImageTextsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTextsResult : public ServiceResult + { + public: struct OCRItem { struct OCRBoundary @@ -45,22 +45,22 @@ namespace AlibabaCloud float oCRConfidence; std::string oCRContents; }; - - - DetectImageTextsResult(); - explicit DetectImageTextsResult(const std::string &payload); - ~DetectImageTextsResult(); + + + DetectImageTextsResult(); + explicit DetectImageTextsResult(const std::string &payload); + ~DetectImageTextsResult(); std::string getImageUri()const; std::vector getOCR()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string imageUri_; std::vector oCR_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectLogoRequest.h b/imm/include/alibabacloud/imm/model/DetectLogoRequest.h index 5673ff500..e63141097 100644 --- a/imm/include/alibabacloud/imm/model/DetectLogoRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectLogoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectLogoRequest : public RpcServiceRequest - { - - public: - DetectLogoRequest(); - ~DetectLogoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectLogoRequest : public RpcServiceRequest + { + + public: + DetectLogoRequest(); + ~DetectLogoRequest(); + std::string getSrcUris()const; void setSrcUris(const std::string& srcUris); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string srcUris_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectLogoResult.h b/imm/include/alibabacloud/imm/model/DetectLogoResult.h index 255ddc72c..c3758b91c 100644 --- a/imm/include/alibabacloud/imm/model/DetectLogoResult.h +++ b/imm/include/alibabacloud/imm/model/DetectLogoResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectLogoResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectLogoResult : public ServiceResult + { + public: struct SuccessDetailsItem { struct LogoBoxDetailItem @@ -52,24 +52,24 @@ namespace AlibabaCloud std::string reason; std::string srcUri; }; - - - DetectLogoResult(); - explicit DetectLogoResult(const std::string &payload); - ~DetectLogoResult(); + + + DetectLogoResult(); + explicit DetectLogoResult(const std::string &payload); + ~DetectLogoResult(); std::vector getSuccessDetails()const; std::vector getSrcUris()const; std::vector getFailDetails()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector successDetails_; std::vector srcUris_; std::vector failDetails_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h b/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h index f5a690443..c19483fd0 100644 --- a/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectQRCodesRequest : public RpcServiceRequest - { - - public: - DetectQRCodesRequest(); - ~DetectQRCodesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectQRCodesRequest : public RpcServiceRequest + { + + public: + DetectQRCodesRequest(); + ~DetectQRCodesRequest(); + std::string getSrcUris()const; void setSrcUris(const std::string& srcUris); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string srcUris_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h b/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h index 737f3e56e..77f0d6a29 100644 --- a/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectQRCodesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectQRCodesResult : public ServiceResult + { + public: struct SuccessDetailsItem { struct QRCodesItem @@ -55,22 +55,22 @@ namespace AlibabaCloud std::string errorMessage; std::string srcUri; }; - - - DetectQRCodesResult(); - explicit DetectQRCodesResult(const std::string &payload); - ~DetectQRCodesResult(); + + + DetectQRCodesResult(); + explicit DetectQRCodesResult(const std::string &payload); + ~DetectQRCodesResult(); std::vector getSuccessDetails()const; std::vector getFailDetails()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector successDetails_; std::vector failDetails_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectTagRequest.h b/imm/include/alibabacloud/imm/model/DetectTagRequest.h index d2423507e..d27bed59c 100644 --- a/imm/include/alibabacloud/imm/model/DetectTagRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectTagRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectTagRequest : public RpcServiceRequest - { - - public: - DetectTagRequest(); - ~DetectTagRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectTagRequest : public RpcServiceRequest + { + + public: + DetectTagRequest(); + ~DetectTagRequest(); + std::string getSrcUris()const; void setSrcUris(const std::string& srcUris); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string srcUris_; std::string regionId_; std::string modelId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectTagResult.h b/imm/include/alibabacloud/imm/model/DetectTagResult.h index 0196d3a46..67928d645 100644 --- a/imm/include/alibabacloud/imm/model/DetectTagResult.h +++ b/imm/include/alibabacloud/imm/model/DetectTagResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT DetectTagResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectTagResult : public ServiceResult + { + public: struct SuccessDetailsItem { struct TagsItem @@ -51,24 +51,24 @@ namespace AlibabaCloud std::string reason; std::string srcUri; }; - - - DetectTagResult(); - explicit DetectTagResult(const std::string &payload); - ~DetectTagResult(); + + + DetectTagResult(); + explicit DetectTagResult(const std::string &payload); + ~DetectTagResult(); std::vector getSuccessDetails()const; std::string getSuccessNum()const; std::vector getFailDetails()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector successDetails_; std::string successNum_; std::vector failDetails_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h index cae277566..a6f700f39 100644 --- a/imm/include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h +++ b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT FindImagesByTagNamesRequest : public RpcServiceRequest - { - - public: - FindImagesByTagNamesRequest(); - ~FindImagesByTagNamesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesByTagNamesRequest : public RpcServiceRequest + { + + public: + FindImagesByTagNamesRequest(); + ~FindImagesByTagNamesRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMarker()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setTagNames(const std::string& tagNames); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string marker_; int limit_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string setId_; std::string tagNames_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesByTagNamesResult.h b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesResult.h index d3d7e990e..6b3e67333 100644 --- a/imm/include/alibabacloud/imm/model/FindImagesByTagNamesResult.h +++ b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT FindImagesByTagNamesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesByTagNamesResult : public ServiceResult + { + public: struct Frames { struct FacesItem @@ -156,24 +156,24 @@ namespace AlibabaCloud int fileSize; std::string location; }; - - - FindImagesByTagNamesResult(); - explicit FindImagesByTagNamesResult(const std::string &payload); - ~FindImagesByTagNamesResult(); + + + FindImagesByTagNamesResult(); + explicit FindImagesByTagNamesResult(const std::string &payload); + ~FindImagesByTagNamesResult(); std::vector getImages()const; std::string getSetId()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector images_; std::string setId_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesRequest.h b/imm/include/alibabacloud/imm/model/FindImagesRequest.h index 8f81c3a52..065046d3f 100644 --- a/imm/include/alibabacloud/imm/model/FindImagesRequest.h +++ b/imm/include/alibabacloud/imm/model/FindImagesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT FindImagesRequest : public RpcServiceRequest - { - - public: - FindImagesRequest(); - ~FindImagesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesRequest : public RpcServiceRequest + { + + public: + FindImagesRequest(); + ~FindImagesRequest(); + std::string getGender()const; void setGender(const std::string& gender); std::string getProject()const; @@ -87,8 +87,8 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getModifyTimeRange()const; void setModifyTimeRange(const std::string& modifyTimeRange); - - private: + + private: std::string gender_; std::string project_; std::string externalId_; @@ -115,9 +115,9 @@ namespace AlibabaCloud std::string createTimeRange_; std::string setId_; std::string modifyTimeRange_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesResult.h b/imm/include/alibabacloud/imm/model/FindImagesResult.h index d68d10b79..a1f9ac85c 100644 --- a/imm/include/alibabacloud/imm/model/FindImagesResult.h +++ b/imm/include/alibabacloud/imm/model/FindImagesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT FindImagesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesResult : public ServiceResult + { + public: struct ImagesItem { struct FacesItem @@ -156,24 +156,24 @@ namespace AlibabaCloud int fileSize; std::string location; }; - - - FindImagesResult(); - explicit FindImagesResult(const std::string &payload); - ~FindImagesResult(); + + + FindImagesResult(); + explicit FindImagesResult(const std::string &payload); + ~FindImagesResult(); std::vector getImages()const; std::string getSetId()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector images_; std::string setId_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h b/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h index ef24420a1..9a974b0e4 100644 --- a/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h +++ b/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h @@ -1,46 +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_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesRequest : public RpcServiceRequest - { - - public: - FindSimilarFacesRequest(); - ~FindSimilarFacesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesRequest : public RpcServiceRequest + { + + public: + FindSimilarFacesRequest(); + ~FindSimilarFacesRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; void setRegionId(const std::string& regionId); float getMinSimilarity()const; void setMinSimilarity(float minSimilarity); + std::string getResponseFormat()const; + void setResponseFormat(const std::string& responseFormat); int getLimit()const; void setLimit(int limit); std::string getProject()const; @@ -51,19 +53,20 @@ namespace AlibabaCloud void setFaceId(const std::string& faceId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; float minSimilarity_; + std::string responseFormat_; int limit_; std::string project_; std::string setId_; std::string faceId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h b/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h index 13a8afb09..3d255c09d 100644 --- a/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h +++ b/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h @@ -1,69 +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_IMM_MODEL_FINDSIMILARFACESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesResult : public ServiceResult + { + public: struct FacesItem { struct FaceAttributes { - struct FaceBoundary + struct FaceBoundary2 { int left; int top; int height; int width; }; - FaceBoundary faceBoundary; + FaceBoundary2 faceBoundary2; + }; + struct SimilarFacesItem + { + struct FaceAttributes1 + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + FaceBoundary faceBoundary; + }; + std::string faceId; + float similarity; + FaceAttributes1 faceAttributes1; + std::string imageUri; }; std::string faceId; FaceAttributes faceAttributes; + std::vector similarFaces; float similarity; std::string imageUri; }; - - - FindSimilarFacesResult(); - explicit FindSimilarFacesResult(const std::string &payload); - ~FindSimilarFacesResult(); + + + FindSimilarFacesResult(); + explicit FindSimilarFacesResult(const std::string &payload); + ~FindSimilarFacesResult(); std::vector getFaces()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector faces_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexRequest.h b/imm/include/alibabacloud/imm/model/GetDocIndexRequest.h index 3c6f2b6b5..7a290974e 100644 --- a/imm/include/alibabacloud/imm/model/GetDocIndexRequest.h +++ b/imm/include/alibabacloud/imm/model/GetDocIndexRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetDocIndexRequest : public RpcServiceRequest - { - - public: - GetDocIndexRequest(); - ~GetDocIndexRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexRequest : public RpcServiceRequest + { + + public: + GetDocIndexRequest(); + ~GetDocIndexRequest(); + std::string getSet()const; void setSet(const std::string& set); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setUniqueId(const std::string& uniqueId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string set_; std::string regionId_; std::string project_; std::string uniqueId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexResult.h b/imm/include/alibabacloud/imm/model/GetDocIndexResult.h index 0c13160bb..260beeeb0 100644 --- a/imm/include/alibabacloud/imm/model/GetDocIndexResult.h +++ b/imm/include/alibabacloud/imm/model/GetDocIndexResult.h @@ -1,42 +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_IMM_MODEL_GETDOCINDEXRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetDocIndexResult : public ServiceResult - { - public: - - - GetDocIndexResult(); - explicit GetDocIndexResult(const std::string &payload); - ~GetDocIndexResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexResult : public ServiceResult + { + public: + + + GetDocIndexResult(); + explicit GetDocIndexResult(const std::string &payload); + ~GetDocIndexResult(); std::string getCustomKey4()const; std::string getUniqueId()const; std::string getCustomKey5()const; @@ -52,10 +52,10 @@ namespace AlibabaCloud std::string getName()const; std::string getLastModified()const; std::string getSrcUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string customKey4_; std::string uniqueId_; std::string customKey5_; @@ -71,9 +71,9 @@ namespace AlibabaCloud std::string name_; std::string lastModified_; std::string srcUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexTaskRequest.h b/imm/include/alibabacloud/imm/model/GetDocIndexTaskRequest.h index c86fd3c53..cb9b6a2d9 100644 --- a/imm/include/alibabacloud/imm/model/GetDocIndexTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/GetDocIndexTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskRequest : public RpcServiceRequest - { - - public: - GetDocIndexTaskRequest(); - ~GetDocIndexTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskRequest : public RpcServiceRequest + { + + public: + GetDocIndexTaskRequest(); + ~GetDocIndexTaskRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexTaskResult.h b/imm/include/alibabacloud/imm/model/GetDocIndexTaskResult.h index 5268fa754..5afdd0a2a 100644 --- a/imm/include/alibabacloud/imm/model/GetDocIndexTaskResult.h +++ b/imm/include/alibabacloud/imm/model/GetDocIndexTaskResult.h @@ -1,63 +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_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskResult : public ServiceResult + { + public: struct FailDetail { std::string code; }; - - - GetDocIndexTaskResult(); - explicit GetDocIndexTaskResult(const std::string &payload); - ~GetDocIndexTaskResult(); + + + GetDocIndexTaskResult(); + explicit GetDocIndexTaskResult(const std::string &payload); + ~GetDocIndexTaskResult(); std::string getStatus()const; FailDetail getFailDetail()const; std::string getTaskId()const; std::string getFinishTime()const; std::string getCreateTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; FailDetail failDetail_; std::string taskId_; std::string finishTime_; std::string createTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h index d14e4442a..e0fa55b93 100644 --- a/imm/include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetFaceSearchGroupRequest : public RpcServiceRequest - { - - public: - GetFaceSearchGroupRequest(); - ~GetFaceSearchGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchGroupRequest : public RpcServiceRequest + { + + public: + GetFaceSearchGroupRequest(); + ~GetFaceSearchGroupRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setGroupName(const std::string& groupName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string groupName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchGroupResult.h b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupResult.h index 50c751150..a4cb07929 100644 --- a/imm/include/alibabacloud/imm/model/GetFaceSearchGroupResult.h +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetFaceSearchGroupResult : public ServiceResult - { - public: - - - GetFaceSearchGroupResult(); - explicit GetFaceSearchGroupResult(const std::string &payload); - ~GetFaceSearchGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchGroupResult : public ServiceResult + { + public: + + + GetFaceSearchGroupResult(); + explicit GetFaceSearchGroupResult(const std::string &payload); + ~GetFaceSearchGroupResult(); std::string getGroupName()const; std::string getStatus()const; std::string getModifyTime()const; std::string getCreateTime()const; int getCount()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string status_; std::string modifyTime_; std::string createTime_; int count_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchImageRequest.h b/imm/include/alibabacloud/imm/model/GetFaceSearchImageRequest.h index 7dde4ed89..d2a116c8a 100644 --- a/imm/include/alibabacloud/imm/model/GetFaceSearchImageRequest.h +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetFaceSearchImageRequest : public RpcServiceRequest - { - - public: - GetFaceSearchImageRequest(); - ~GetFaceSearchImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchImageRequest : public RpcServiceRequest + { + + public: + GetFaceSearchImageRequest(); + ~GetFaceSearchImageRequest(); + std::string getImageId()const; void setImageId(const std::string& imageId); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setUser(const std::string& user); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageId_; std::string regionId_; std::string project_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string groupName_; std::string user_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchImageResult.h b/imm/include/alibabacloud/imm/model/GetFaceSearchImageResult.h index f45971aa8..db8c62530 100644 --- a/imm/include/alibabacloud/imm/model/GetFaceSearchImageResult.h +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchImageResult.h @@ -1,42 +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_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetFaceSearchImageResult : public ServiceResult - { - public: - - - GetFaceSearchImageResult(); - explicit GetFaceSearchImageResult(const std::string &payload); - ~GetFaceSearchImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchImageResult : public ServiceResult + { + public: + + + GetFaceSearchImageResult(); + explicit GetFaceSearchImageResult(const std::string &payload); + ~GetFaceSearchImageResult(); std::string getGroupName()const; std::string getFaceId()const; std::string getUser()const; @@ -53,10 +53,10 @@ namespace AlibabaCloud std::vector getAxis()const; int getAge()const; std::string getImageMd5()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string faceId_; std::string user_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::vector axis_; int age_; std::string imageMd5_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchUserRequest.h b/imm/include/alibabacloud/imm/model/GetFaceSearchUserRequest.h index 1ede602ef..f2285fc9f 100644 --- a/imm/include/alibabacloud/imm/model/GetFaceSearchUserRequest.h +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchUserRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetFaceSearchUserRequest : public RpcServiceRequest - { - - public: - GetFaceSearchUserRequest(); - ~GetFaceSearchUserRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchUserRequest : public RpcServiceRequest + { + + public: + GetFaceSearchUserRequest(); + ~GetFaceSearchUserRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setUser(const std::string& user); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string groupName_; std::string user_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchUserResult.h b/imm/include/alibabacloud/imm/model/GetFaceSearchUserResult.h index c5e52425f..bd56e442c 100644 --- a/imm/include/alibabacloud/imm/model/GetFaceSearchUserResult.h +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchUserResult.h @@ -1,42 +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_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetFaceSearchUserResult : public ServiceResult - { - public: - - - GetFaceSearchUserResult(); - explicit GetFaceSearchUserResult(const std::string &payload); - ~GetFaceSearchUserResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchUserResult : public ServiceResult + { + public: + + + GetFaceSearchUserResult(); + explicit GetFaceSearchUserResult(const std::string &payload); + ~GetFaceSearchUserResult(); std::string getGroupName()const; std::string getStatus()const; std::string getModifyTime()const; @@ -44,10 +44,10 @@ namespace AlibabaCloud std::string getCreateTime()const; int getCount()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string status_; std::string modifyTime_; @@ -55,9 +55,9 @@ namespace AlibabaCloud std::string createTime_; int count_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageJobRequest.h b/imm/include/alibabacloud/imm/model/GetImageJobRequest.h index 76f753d80..258426cbb 100644 --- a/imm/include/alibabacloud/imm/model/GetImageJobRequest.h +++ b/imm/include/alibabacloud/imm/model/GetImageJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetImageJobRequest : public RpcServiceRequest - { - - public: - GetImageJobRequest(); - ~GetImageJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageJobRequest : public RpcServiceRequest + { + + public: + GetImageJobRequest(); + ~GetImageJobRequest(); + std::string getJobId()const; void setJobId(const std::string& jobId); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setJobType(const std::string& jobType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string jobId_; std::string regionId_; std::string project_; std::string jobType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageJobResult.h b/imm/include/alibabacloud/imm/model/GetImageJobResult.h index f541fea67..8b2daefce 100644 --- a/imm/include/alibabacloud/imm/model/GetImageJobResult.h +++ b/imm/include/alibabacloud/imm/model/GetImageJobResult.h @@ -1,42 +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_IMM_MODEL_GETIMAGEJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetImageJobResult : public ServiceResult - { - public: - - - GetImageJobResult(); - explicit GetImageJobResult(const std::string &payload); - ~GetImageJobResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageJobResult : public ServiceResult + { + public: + + + GetImageJobResult(); + explicit GetImageJobResult(const std::string &payload); + ~GetImageJobResult(); std::string getStatus()const; std::string getNotifyEndpoint()const; int getProgress()const; @@ -48,10 +48,10 @@ namespace AlibabaCloud std::string getErrorMessage()const; std::string getJobId()const; std::string getResult()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string notifyEndpoint_; int progress_; @@ -63,9 +63,9 @@ namespace AlibabaCloud std::string errorMessage_; std::string jobId_; std::string result_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageRequest.h b/imm/include/alibabacloud/imm/model/GetImageRequest.h index 6629bf38a..77af069db 100644 --- a/imm/include/alibabacloud/imm/model/GetImageRequest.h +++ b/imm/include/alibabacloud/imm/model/GetImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetImageRequest : public RpcServiceRequest - { - - public: - GetImageRequest(); - ~GetImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageRequest : public RpcServiceRequest + { + + public: + GetImageRequest(); + ~GetImageRequest(); + std::string getImageUri()const; void setImageUri(const std::string& imageUri); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string imageUri_; std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageResult.h b/imm/include/alibabacloud/imm/model/GetImageResult.h index 1f934f029..b208fc2d7 100644 --- a/imm/include/alibabacloud/imm/model/GetImageResult.h +++ b/imm/include/alibabacloud/imm/model/GetImageResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetImageResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageResult : public ServiceResult + { + public: struct FacesItem { struct FaceAttributes @@ -117,11 +117,11 @@ namespace AlibabaCloud std::string celebrityLibraryName; float celebrityConfidence; }; - - - GetImageResult(); - explicit GetImageResult(const std::string &payload); - ~GetImageResult(); + + + GetImageResult(); + explicit GetImageResult(const std::string &payload); + ~GetImageResult(); std::string getModifyTime()const; std::string getSourceType()const; std::string getSourceUri()const; @@ -158,10 +158,10 @@ namespace AlibabaCloud std::vector getOCR()const; int getFileSize()const; std::string getLocation()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; std::string sourceType_; std::string sourceUri_; @@ -198,9 +198,9 @@ namespace AlibabaCloud std::vector oCR_; int fileSize_; std::string location_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h b/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h index faddf97ce..d8653f4d7 100644 --- a/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetMediaMetaRequest : public RpcServiceRequest - { - - public: - GetMediaMetaRequest(); - ~GetMediaMetaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetMediaMetaRequest : public RpcServiceRequest + { + + public: + GetMediaMetaRequest(); + ~GetMediaMetaRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMediaUri()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string mediaUri_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETMEDIAMETAREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h index 20b3a294e..19e645e18 100644 --- a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h +++ b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETMEDIAMETARESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETMEDIAMETARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetMediaMetaResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETMEDIAMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETMEDIAMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetMediaMetaResult : public ServiceResult + { + public: struct MediaMeta { struct MediaFormat @@ -105,22 +105,22 @@ namespace AlibabaCloud MediaFormat mediaFormat; MediaStreams mediaStreams; }; - - - GetMediaMetaResult(); - explicit GetMediaMetaResult(const std::string &payload); - ~GetMediaMetaResult(); + + + GetMediaMetaResult(); + explicit GetMediaMetaResult(const std::string &payload); + ~GetMediaMetaResult(); std::string getMediaUri()const; MediaMeta getMediaMeta()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string mediaUri_; MediaMeta mediaMeta_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETMEDIAMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h index 51ca1d4df..9558cc2b2 100644 --- a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskRequest : public RpcServiceRequest - { - - public: - GetOfficeConversionTaskRequest(); - ~GetOfficeConversionTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + GetOfficeConversionTaskRequest(); + ~GetOfficeConversionTaskRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h index c4706af81..36f913c1c 100644 --- a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h @@ -1,46 +1,46 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskResult : public ServiceResult + { + public: struct FailDetail { std::string code; }; - - - GetOfficeConversionTaskResult(); - explicit GetOfficeConversionTaskResult(const std::string &payload); - ~GetOfficeConversionTaskResult(); + + + GetOfficeConversionTaskResult(); + explicit GetOfficeConversionTaskResult(const std::string &payload); + ~GetOfficeConversionTaskResult(); std::string getStatus()const; FailDetail getFailDetail()const; std::string getTgtType()const; @@ -55,10 +55,10 @@ namespace AlibabaCloud std::string getFinishTime()const; std::string getNotifyTopicName()const; std::string getSrcUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; FailDetail failDetail_; std::string tgtType_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string finishTime_; std::string notifyTopicName_; std::string srcUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h index 537a18fff..bc195d182 100644 --- a/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetPhotoProcessTaskRequest : public RpcServiceRequest - { - - public: - GetPhotoProcessTaskRequest(); - ~GetPhotoProcessTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPhotoProcessTaskRequest : public RpcServiceRequest + { + + public: + GetPhotoProcessTaskRequest(); + ~GetPhotoProcessTaskRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h index 6b191e620..b62c69f39 100644 --- a/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h +++ b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h @@ -1,42 +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_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetPhotoProcessTaskResult : public ServiceResult - { - public: - - - GetPhotoProcessTaskResult(); - explicit GetPhotoProcessTaskResult(const std::string &payload); - ~GetPhotoProcessTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPhotoProcessTaskResult : public ServiceResult + { + public: + + + GetPhotoProcessTaskResult(); + explicit GetPhotoProcessTaskResult(const std::string &payload); + ~GetPhotoProcessTaskResult(); std::string getStatus()const; std::string getNotifyEndpoint()const; std::string getTaskId()const; @@ -48,10 +48,10 @@ namespace AlibabaCloud std::string getStyle()const; std::string getNotifyTopicName()const; std::string getSrcUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string notifyEndpoint_; std::string taskId_; @@ -63,9 +63,9 @@ namespace AlibabaCloud std::string style_; std::string notifyTopicName_; std::string srcUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h index 98448d79e..d79e5bed9 100644 --- a/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h +++ b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetPornBatchDetectJobRequest : public RpcServiceRequest - { - - public: - GetPornBatchDetectJobRequest(); - ~GetPornBatchDetectJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPornBatchDetectJobRequest : public RpcServiceRequest + { + + public: + GetPornBatchDetectJobRequest(); + ~GetPornBatchDetectJobRequest(); + std::string getJobId()const; void setJobId(const std::string& jobId); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string jobId_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h index cdadb49f5..2d04d788f 100644 --- a/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h +++ b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h @@ -1,42 +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_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetPornBatchDetectJobResult : public ServiceResult - { - public: - - - GetPornBatchDetectJobResult(); - explicit GetPornBatchDetectJobResult(const std::string &payload); - ~GetPornBatchDetectJobResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPornBatchDetectJobResult : public ServiceResult + { + public: + + + GetPornBatchDetectJobResult(); + explicit GetPornBatchDetectJobResult(const std::string &payload); + ~GetPornBatchDetectJobResult(); std::string getStatus()const; std::string getNotifyEndpoint()const; std::string getTgtUri()const; @@ -47,10 +47,10 @@ namespace AlibabaCloud std::string getNotifyTopicName()const; std::string getJobId()const; std::string getSrcUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string notifyEndpoint_; std::string tgtUri_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string notifyTopicName_; std::string jobId_; std::string srcUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetProjectRequest.h b/imm/include/alibabacloud/imm/model/GetProjectRequest.h index 4abdbd4ec..da79c5ef4 100644 --- a/imm/include/alibabacloud/imm/model/GetProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/GetProjectRequest.h @@ -1,54 +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_IMM_MODEL_GETPROJECTREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETPROJECTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetProjectRequest : public RpcServiceRequest - { - - public: - GetProjectRequest(); - ~GetProjectRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetProjectRequest : public RpcServiceRequest + { + + public: + GetProjectRequest(); + ~GetProjectRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetProjectResult.h b/imm/include/alibabacloud/imm/model/GetProjectResult.h index 9b92b9c72..6dc4e7145 100644 --- a/imm/include/alibabacloud/imm/model/GetProjectResult.h +++ b/imm/include/alibabacloud/imm/model/GetProjectResult.h @@ -1,42 +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_IMM_MODEL_GETPROJECTRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETPROJECTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetProjectResult : public ServiceResult - { - public: - - - GetProjectResult(); - explicit GetProjectResult(const std::string &payload); - ~GetProjectResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetProjectResult : public ServiceResult + { + public: + + + GetProjectResult(); + explicit GetProjectResult(const std::string &payload); + ~GetProjectResult(); std::string getProject()const; std::string getModifyTime()const; std::string getType()const; @@ -45,10 +45,10 @@ namespace AlibabaCloud std::string getEndpoint()const; std::string getCreateTime()const; std::string getBillingType()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string project_; std::string modifyTime_; std::string type_; @@ -57,9 +57,9 @@ namespace AlibabaCloud std::string endpoint_; std::string createTime_; std::string billingType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetSetRequest.h b/imm/include/alibabacloud/imm/model/GetSetRequest.h index ce161e01b..a9e15f249 100644 --- a/imm/include/alibabacloud/imm/model/GetSetRequest.h +++ b/imm/include/alibabacloud/imm/model/GetSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetSetRequest : public RpcServiceRequest - { - - public: - GetSetRequest(); - ~GetSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetSetRequest : public RpcServiceRequest + { + + public: + GetSetRequest(); + ~GetSetRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetSetResult.h b/imm/include/alibabacloud/imm/model/GetSetResult.h index cbb92bb6a..f01afc342 100644 --- a/imm/include/alibabacloud/imm/model/GetSetResult.h +++ b/imm/include/alibabacloud/imm/model/GetSetResult.h @@ -1,42 +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_IMM_MODEL_GETSETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetSetResult : public ServiceResult - { - public: - - - GetSetResult(); - explicit GetSetResult(const std::string &payload); - ~GetSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetSetResult : public ServiceResult + { + public: + + + GetSetResult(); + explicit GetSetResult(const std::string &payload); + ~GetSetResult(); std::string getModifyTime()const; int getImageCount()const; int getVideoCount()const; @@ -45,10 +45,10 @@ namespace AlibabaCloud std::string getSetId()const; int getFaceCount()const; int getVideoLength()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; int imageCount_; int videoCount_; @@ -57,9 +57,9 @@ namespace AlibabaCloud std::string setId_; int faceCount_; int videoLength_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagJobRequest.h b/imm/include/alibabacloud/imm/model/GetTagJobRequest.h index 177715e43..cc24f8f4f 100644 --- a/imm/include/alibabacloud/imm/model/GetTagJobRequest.h +++ b/imm/include/alibabacloud/imm/model/GetTagJobRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetTagJobRequest : public RpcServiceRequest - { - - public: - GetTagJobRequest(); - ~GetTagJobRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagJobRequest : public RpcServiceRequest + { + + public: + GetTagJobRequest(); + ~GetTagJobRequest(); + std::string getJobId()const; void setJobId(const std::string& jobId); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string jobId_; std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagJobResult.h b/imm/include/alibabacloud/imm/model/GetTagJobResult.h index ed4b4e1df..56b5ddde4 100644 --- a/imm/include/alibabacloud/imm/model/GetTagJobResult.h +++ b/imm/include/alibabacloud/imm/model/GetTagJobResult.h @@ -1,42 +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_IMM_MODEL_GETTAGJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETTAGJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetTagJobResult : public ServiceResult - { - public: - - - GetTagJobResult(); - explicit GetTagJobResult(const std::string &payload); - ~GetTagJobResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagJobResult : public ServiceResult + { + public: + + + GetTagJobResult(); + explicit GetTagJobResult(const std::string &payload); + ~GetTagJobResult(); std::string getStatus()const; std::string getFinishTime()const; int getPercent()const; @@ -44,10 +44,10 @@ namespace AlibabaCloud std::string getSetId()const; std::string getJobId()const; std::string getSrcUri()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string finishTime_; int percent_; @@ -55,9 +55,9 @@ namespace AlibabaCloud std::string setId_; std::string jobId_; std::string srcUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETTAGJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagSetRequest.h b/imm/include/alibabacloud/imm/model/GetTagSetRequest.h index 003c743a8..4eab9b640 100644 --- a/imm/include/alibabacloud/imm/model/GetTagSetRequest.h +++ b/imm/include/alibabacloud/imm/model/GetTagSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetTagSetRequest : public RpcServiceRequest - { - - public: - GetTagSetRequest(); - ~GetTagSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagSetRequest : public RpcServiceRequest + { + + public: + GetTagSetRequest(); + ~GetTagSetRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagSetResult.h b/imm/include/alibabacloud/imm/model/GetTagSetResult.h index bc6f710b5..610f368a3 100644 --- a/imm/include/alibabacloud/imm/model/GetTagSetResult.h +++ b/imm/include/alibabacloud/imm/model/GetTagSetResult.h @@ -1,59 +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_IMM_MODEL_GETTAGSETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETTAGSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetTagSetResult : public ServiceResult - { - public: - - - GetTagSetResult(); - explicit GetTagSetResult(const std::string &payload); - ~GetTagSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagSetResult : public ServiceResult + { + public: + + + GetTagSetResult(); + explicit GetTagSetResult(const std::string &payload); + ~GetTagSetResult(); std::string getStatus()const; long getPhotos()const; std::string getModifyTime()const; std::string getCreateTime()const; std::string getSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; long photos_; std::string modifyTime_; std::string createTime_; std::string setId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETTAGSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoRequest.h b/imm/include/alibabacloud/imm/model/GetVideoRequest.h index d5756745e..8fdc32844 100644 --- a/imm/include/alibabacloud/imm/model/GetVideoRequest.h +++ b/imm/include/alibabacloud/imm/model/GetVideoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetVideoRequest : public RpcServiceRequest - { - - public: - GetVideoRequest(); - ~GetVideoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoRequest : public RpcServiceRequest + { + + public: + GetVideoRequest(); + ~GetVideoRequest(); + std::string getVideoUri()const; void setVideoUri(const std::string& videoUri); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string videoUri_; std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoResult.h b/imm/include/alibabacloud/imm/model/GetVideoResult.h index 11aecc529..737e3111e 100644 --- a/imm/include/alibabacloud/imm/model/GetVideoResult.h +++ b/imm/include/alibabacloud/imm/model/GetVideoResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetVideoResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoResult : public ServiceResult + { + public: struct CelebrityItem { std::string celebrityName; @@ -52,11 +52,11 @@ namespace AlibabaCloud int age; float ageConfidence; }; - - - GetVideoResult(); - explicit GetVideoResult(const std::string &payload); - ~GetVideoResult(); + + + GetVideoResult(); + explicit GetVideoResult(const std::string &payload); + ~GetVideoResult(); std::string getModifyTime()const; std::string getProcessStatus()const; int getVideoWidth()const; @@ -87,10 +87,10 @@ namespace AlibabaCloud std::string getCelebrityStatus()const; std::string getVideoTagsStatus()const; int getFileSize()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; std::string processStatus_; int videoWidth_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string celebrityStatus_; std::string videoTagsStatus_; int fileSize_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h index 5a3e215fc..b610028ce 100644 --- a/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetVideoTaskRequest : public RpcServiceRequest - { - - public: - GetVideoTaskRequest(); - ~GetVideoTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoTaskRequest : public RpcServiceRequest + { + + public: + GetVideoTaskRequest(); + ~GetVideoTaskRequest(); + std::string getTaskType()const; void setTaskType(const std::string& taskType); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string taskType_; std::string regionId_; std::string project_; std::string taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h b/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h index 5ffdb5381..0b26ea4ca 100644 --- a/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h +++ b/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h @@ -1,42 +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_IMM_MODEL_GETVIDEOTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetVideoTaskResult : public ServiceResult - { - public: - - - GetVideoTaskResult(); - explicit GetVideoTaskResult(const std::string &payload); - ~GetVideoTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoTaskResult : public ServiceResult + { + public: + + + GetVideoTaskResult(); + explicit GetVideoTaskResult(const std::string &payload); + ~GetVideoTaskResult(); std::string getStatus()const; std::string getNotifyEndpoint()const; int getProgress()const; @@ -48,10 +48,10 @@ namespace AlibabaCloud std::string getNotifyTopicName()const; std::string getErrorMessage()const; std::string getResult()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string notifyEndpoint_; int progress_; @@ -63,9 +63,9 @@ namespace AlibabaCloud std::string notifyTopicName_; std::string errorMessage_; std::string result_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexImageRequest.h b/imm/include/alibabacloud/imm/model/IndexImageRequest.h index b18ca94eb..5e31bac4b 100644 --- a/imm/include/alibabacloud/imm/model/IndexImageRequest.h +++ b/imm/include/alibabacloud/imm/model/IndexImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT IndexImageRequest : public RpcServiceRequest - { - - public: - IndexImageRequest(); - ~IndexImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexImageRequest : public RpcServiceRequest + { + + public: + IndexImageRequest(); + ~IndexImageRequest(); + std::string getRemarksB()const; void setRemarksB(const std::string& remarksB); std::string getProject()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setSourceType(const std::string& sourceType); std::string getRealUid()const; void setRealUid(const std::string& realUid); - - private: + + private: std::string remarksB_; std::string project_; std::string remarksA_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string setId_; std::string sourceType_; std::string realUid_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexImageResult.h b/imm/include/alibabacloud/imm/model/IndexImageResult.h index 658a53c60..71893be79 100644 --- a/imm/include/alibabacloud/imm/model/IndexImageResult.h +++ b/imm/include/alibabacloud/imm/model/IndexImageResult.h @@ -1,42 +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_IMM_MODEL_INDEXIMAGERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT IndexImageResult : public ServiceResult - { - public: - - - IndexImageResult(); - explicit IndexImageResult(const std::string &payload); - ~IndexImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexImageResult : public ServiceResult + { + public: + + + IndexImageResult(); + explicit IndexImageResult(const std::string &payload); + ~IndexImageResult(); std::string getModifyTime()const; std::string getRemarksC()const; std::string getRemarksD()const; @@ -46,10 +46,10 @@ namespace AlibabaCloud std::string getImageUri()const; std::string getRemarksA()const; std::string getRemarksB()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; std::string remarksC_; std::string remarksD_; @@ -59,9 +59,9 @@ namespace AlibabaCloud std::string imageUri_; std::string remarksA_; std::string remarksB_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexTagRequest.h b/imm/include/alibabacloud/imm/model/IndexTagRequest.h index 06a5b33a0..efd8398b4 100644 --- a/imm/include/alibabacloud/imm/model/IndexTagRequest.h +++ b/imm/include/alibabacloud/imm/model/IndexTagRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT IndexTagRequest : public RpcServiceRequest - { - - public: - IndexTagRequest(); - ~IndexTagRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexTagRequest : public RpcServiceRequest + { + + public: + IndexTagRequest(); + ~IndexTagRequest(); + std::string getSrcUris()const; void setSrcUris(const std::string& srcUris); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setForce(const std::string& force); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string srcUris_; std::string regionId_; std::string modelId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string setId_; std::string force_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexTagResult.h b/imm/include/alibabacloud/imm/model/IndexTagResult.h index c4e6da13b..5a96d6ea5 100644 --- a/imm/include/alibabacloud/imm/model/IndexTagResult.h +++ b/imm/include/alibabacloud/imm/model/IndexTagResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT IndexTagResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexTagResult : public ServiceResult + { + public: struct FailDetailsItem { std::string reason; @@ -51,26 +51,26 @@ namespace AlibabaCloud std::vector tags; std::string srcUri; }; - - - IndexTagResult(); - explicit IndexTagResult(const std::string &payload); - ~IndexTagResult(); + + + IndexTagResult(); + explicit IndexTagResult(const std::string &payload); + ~IndexTagResult(); std::vector getSuccessDetails()const; std::string getSuccessIndexNum()const; std::vector getFailDetails()const; std::string getSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector successDetails_; std::string successIndexNum_; std::vector failDetails_; std::string setId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexVideoRequest.h b/imm/include/alibabacloud/imm/model/IndexVideoRequest.h index 565901afa..4b3259f06 100644 --- a/imm/include/alibabacloud/imm/model/IndexVideoRequest.h +++ b/imm/include/alibabacloud/imm/model/IndexVideoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT IndexVideoRequest : public RpcServiceRequest - { - - public: - IndexVideoRequest(); - ~IndexVideoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexVideoRequest : public RpcServiceRequest + { + + public: + IndexVideoRequest(); + ~IndexVideoRequest(); + std::string getGrabType()const; void setGrabType(const std::string& grabType); std::string getRemarksB()const; @@ -67,8 +67,8 @@ namespace AlibabaCloud void setInterval(const std::string& interval); std::string getTgtUri()const; void setTgtUri(const std::string& tgtUri); - - private: + + private: std::string grabType_; std::string remarksB_; std::string project_; @@ -85,9 +85,9 @@ namespace AlibabaCloud std::string setId_; std::string interval_; std::string tgtUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexVideoResult.h b/imm/include/alibabacloud/imm/model/IndexVideoResult.h index 30f967990..2cbaaf6c5 100644 --- a/imm/include/alibabacloud/imm/model/IndexVideoResult.h +++ b/imm/include/alibabacloud/imm/model/IndexVideoResult.h @@ -1,42 +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_IMM_MODEL_INDEXVIDEORESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT IndexVideoResult : public ServiceResult - { - public: - - - IndexVideoResult(); - explicit IndexVideoResult(const std::string &payload); - ~IndexVideoResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexVideoResult : public ServiceResult + { + public: + + + IndexVideoResult(); + explicit IndexVideoResult(const std::string &payload); + ~IndexVideoResult(); std::string getModifyTime()const; std::string getEndTime()const; bool getSaveType()const; @@ -52,10 +52,10 @@ namespace AlibabaCloud std::string getRemarksD()const; std::string getSetId()const; float getInterval()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; std::string endTime_; bool saveType_; @@ -71,9 +71,9 @@ namespace AlibabaCloud std::string remarksD_; std::string setId_; float interval_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h b/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h index 8d2b4bc19..6b576fff1 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceGroupsRequest : public RpcServiceRequest - { - - public: - ListFaceGroupsRequest(); - ~ListFaceGroupsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceGroupsRequest : public RpcServiceRequest + { + + public: + ListFaceGroupsRequest(); + ~ListFaceGroupsRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMarker()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getOrder()const; void setOrder(const std::string& order); - - private: + + private: std::string regionId_; std::string marker_; int limit_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string orderBy_; std::string accessKeyId_; std::string order_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h b/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h index c2eac4ac8..2d47202c4 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h +++ b/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceGroupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceGroupsResult : public ServiceResult + { + public: struct FaceGroupsItem { struct GroupCoverFace @@ -54,22 +54,22 @@ namespace AlibabaCloud int faceCount; std::string groupId; }; - - - ListFaceGroupsResult(); - explicit ListFaceGroupsResult(const std::string &payload); - ~ListFaceGroupsResult(); + + + ListFaceGroupsResult(); + explicit ListFaceGroupsResult(const std::string &payload); + ~ListFaceGroupsResult(); std::string getNextMarker()const; std::vector getFaceGroups()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string nextMarker_; std::vector faceGroups_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h index 07460f7f3..7ca0c1c1c 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupImagesRequest : public RpcServiceRequest - { - - public: - ListFaceSearchGroupImagesRequest(); - ~ListFaceSearchGroupImagesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupImagesRequest : public RpcServiceRequest + { + + public: + ListFaceSearchGroupImagesRequest(); + ~ListFaceSearchGroupImagesRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setUser(const std::string& user); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string groupName_; std::string user_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h index 80c29f31d..c531a8852 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupImagesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupImagesResult : public ServiceResult + { + public: struct ImagesItem { std::string faceId; @@ -49,26 +49,26 @@ namespace AlibabaCloud int age; std::vector axis; }; - - - ListFaceSearchGroupImagesResult(); - explicit ListFaceSearchGroupImagesResult(const std::string &payload); - ~ListFaceSearchGroupImagesResult(); + + + ListFaceSearchGroupImagesResult(); + explicit ListFaceSearchGroupImagesResult(const std::string &payload); + ~ListFaceSearchGroupImagesResult(); std::string getGroupName()const; std::vector getImages()const; std::string getNextMarker()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::vector images_; std::string nextMarker_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h index 539176865..e53026c49 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupUsersRequest : public RpcServiceRequest - { - - public: - ListFaceSearchGroupUsersRequest(); - ~ListFaceSearchGroupUsersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupUsersRequest : public RpcServiceRequest + { + + public: + ListFaceSearchGroupUsersRequest(); + ~ListFaceSearchGroupUsersRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setGroupName(const std::string& groupName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string groupName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h index 427fcae4d..9ff2982ec 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupUsersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupUsersResult : public ServiceResult + { + public: struct UsersItem { std::string status; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string createTime; std::string count; }; - - - ListFaceSearchGroupUsersResult(); - explicit ListFaceSearchGroupUsersResult(const std::string &payload); - ~ListFaceSearchGroupUsersResult(); + + + ListFaceSearchGroupUsersResult(); + explicit ListFaceSearchGroupUsersResult(const std::string &payload); + ~ListFaceSearchGroupUsersResult(); std::string getGroupName()const; std::vector getUsers()const; std::string getNextMarker()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::vector users_; std::string nextMarker_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h index 23b746e98..dcc47631a 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsRequest : public RpcServiceRequest - { - - public: - ListFaceSearchGroupsRequest(); - ~ListFaceSearchGroupsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsRequest : public RpcServiceRequest + { + + public: + ListFaceSearchGroupsRequest(); + ~ListFaceSearchGroupsRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h index ec75405cc..6c70511a0 100644 --- a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsResult : public ServiceResult + { + public: struct GroupsItem { std::string groupName; @@ -41,22 +41,22 @@ namespace AlibabaCloud std::string count; std::string groupId; }; - - - ListFaceSearchGroupsResult(); - explicit ListFaceSearchGroupsResult(const std::string &payload); - ~ListFaceSearchGroupsResult(); + + + ListFaceSearchGroupsResult(); + explicit ListFaceSearchGroupsResult(const std::string &payload); + ~ListFaceSearchGroupsResult(); std::vector getGroups()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector groups_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImageJobsRequest.h b/imm/include/alibabacloud/imm/model/ListImageJobsRequest.h index b1dfba868..5462a0b4f 100644 --- a/imm/include/alibabacloud/imm/model/ListImageJobsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListImageJobsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListImageJobsRequest : public RpcServiceRequest - { - - public: - ListImageJobsRequest(); - ~ListImageJobsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImageJobsRequest : public RpcServiceRequest + { + + public: + ListImageJobsRequest(); + ~ListImageJobsRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setJobType(const std::string& jobType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string jobType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImageJobsResult.h b/imm/include/alibabacloud/imm/model/ListImageJobsResult.h index 40975e8b2..79c938eff 100644 --- a/imm/include/alibabacloud/imm/model/ListImageJobsResult.h +++ b/imm/include/alibabacloud/imm/model/ListImageJobsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListImageJobsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImageJobsResult : public ServiceResult + { + public: struct JobsItem { std::string status; @@ -46,22 +46,22 @@ namespace AlibabaCloud std::string jobId; std::string result; }; - - - ListImageJobsResult(); - explicit ListImageJobsResult(const std::string &payload); - ~ListImageJobsResult(); + + + ListImageJobsResult(); + explicit ListImageJobsResult(const std::string &payload); + ~ListImageJobsResult(); std::vector getJobs()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector jobs_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImagesRequest.h b/imm/include/alibabacloud/imm/model/ListImagesRequest.h index 6d95f3f10..0cbbaf10d 100644 --- a/imm/include/alibabacloud/imm/model/ListImagesRequest.h +++ b/imm/include/alibabacloud/imm/model/ListImagesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListImagesRequest : public RpcServiceRequest - { - - public: - ListImagesRequest(); - ~ListImagesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImagesRequest : public RpcServiceRequest + { + + public: + ListImagesRequest(); + ~ListImagesRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMarker()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setCreateTimeStart(const std::string& createTimeStart); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string marker_; int limit_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string setId_; std::string createTimeStart_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImagesResult.h b/imm/include/alibabacloud/imm/model/ListImagesResult.h index 115e83b0f..535a6f64d 100644 --- a/imm/include/alibabacloud/imm/model/ListImagesResult.h +++ b/imm/include/alibabacloud/imm/model/ListImagesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListImagesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImagesResult : public ServiceResult + { + public: struct ImagesItem { struct FacesItem @@ -156,24 +156,24 @@ namespace AlibabaCloud int fileSize; std::string location; }; - - - ListImagesResult(); - explicit ListImagesResult(const std::string &payload); - ~ListImagesResult(); + + + ListImagesResult(); + explicit ListImagesResult(const std::string &payload); + ~ListImagesResult(); std::vector getImages()const; std::string getSetId()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector images_; std::string setId_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h index 23923e0ab..f8f409cc0 100644 --- a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskRequest : public RpcServiceRequest - { - - public: - ListOfficeConversionTaskRequest(); - ~ListOfficeConversionTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + ListOfficeConversionTaskRequest(); + ~ListOfficeConversionTaskRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h index 56016c417..e63a0872f 100644 --- a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskResult : public ServiceResult + { + public: struct TasksItem { std::string status; @@ -48,22 +48,22 @@ namespace AlibabaCloud std::string notifyTopicName; std::string srcUri; }; - - - ListOfficeConversionTaskResult(); - explicit ListOfficeConversionTaskResult(const std::string &payload); - ~ListOfficeConversionTaskResult(); + + + ListOfficeConversionTaskResult(); + explicit ListOfficeConversionTaskResult(const std::string &payload); + ~ListOfficeConversionTaskResult(); std::vector getTasks()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector tasks_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h index 0cd17dab1..cc303e1cf 100644 --- a/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h +++ b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListPhotoProcessTasksRequest : public RpcServiceRequest - { - - public: - ListPhotoProcessTasksRequest(); - ~ListPhotoProcessTasksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPhotoProcessTasksRequest : public RpcServiceRequest + { + + public: + ListPhotoProcessTasksRequest(); + ~ListPhotoProcessTasksRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h index b1a2afd1d..50e0498bb 100644 --- a/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h +++ b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListPhotoProcessTasksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPhotoProcessTasksResult : public ServiceResult + { + public: struct TasksItem { std::string status; @@ -46,22 +46,22 @@ namespace AlibabaCloud std::string notifyTopicName; std::string srcUri; }; - - - ListPhotoProcessTasksResult(); - explicit ListPhotoProcessTasksResult(const std::string &payload); - ~ListPhotoProcessTasksResult(); + + + ListPhotoProcessTasksResult(); + explicit ListPhotoProcessTasksResult(const std::string &payload); + ~ListPhotoProcessTasksResult(); std::vector getTasks()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector tasks_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h index 6d7a3d2db..5b45d7e63 100644 --- a/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListPornBatchDetectJobsRequest : public RpcServiceRequest - { - - public: - ListPornBatchDetectJobsRequest(); - ~ListPornBatchDetectJobsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPornBatchDetectJobsRequest : public RpcServiceRequest + { + + public: + ListPornBatchDetectJobsRequest(); + ~ListPornBatchDetectJobsRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h index 8c54c4c77..68bed0c05 100644 --- a/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h +++ b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListPornBatchDetectJobsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPornBatchDetectJobsResult : public ServiceResult + { + public: struct JobsItem { std::string status; @@ -45,22 +45,22 @@ namespace AlibabaCloud std::string jobId; std::string srcUri; }; - - - ListPornBatchDetectJobsResult(); - explicit ListPornBatchDetectJobsResult(const std::string &payload); - ~ListPornBatchDetectJobsResult(); + + + ListPornBatchDetectJobsResult(); + explicit ListPornBatchDetectJobsResult(const std::string &payload); + ~ListPornBatchDetectJobsResult(); std::vector getJobs()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector jobs_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectAPIsRequest.h b/imm/include/alibabacloud/imm/model/ListProjectAPIsRequest.h index caa405551..5aaa64482 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectAPIsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListProjectAPIsRequest.h @@ -1,54 +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_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsRequest : public RpcServiceRequest - { - - public: - ListProjectAPIsRequest(); - ~ListProjectAPIsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsRequest : public RpcServiceRequest + { + + public: + ListProjectAPIsRequest(); + ~ListProjectAPIsRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectAPIsResult.h b/imm/include/alibabacloud/imm/model/ListProjectAPIsResult.h index 2f7a03a1e..b2408710f 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectAPIsResult.h +++ b/imm/include/alibabacloud/imm/model/ListProjectAPIsResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsResult : public ServiceResult - { - public: - - - ListProjectAPIsResult(); - explicit ListProjectAPIsResult(const std::string &payload); - ~ListProjectAPIsResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsResult : public ServiceResult + { + public: + + + ListProjectAPIsResult(); + explicit ListProjectAPIsResult(const std::string &payload); + ~ListProjectAPIsResult(); std::string getProject()const; std::vector getAPIs()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string project_; std::vector aPIs_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectsRequest.h b/imm/include/alibabacloud/imm/model/ListProjectsRequest.h index 895fda16d..d9abc5a2e 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListProjectsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListProjectsRequest : public RpcServiceRequest - { - - public: - ListProjectsRequest(); - ~ListProjectsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListProjectsRequest : public RpcServiceRequest + { + + public: + ListProjectsRequest(); + ~ListProjectsRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setMarker(const std::string& marker); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectsResult.h b/imm/include/alibabacloud/imm/model/ListProjectsResult.h index b617d6aef..c0fe76634 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectsResult.h +++ b/imm/include/alibabacloud/imm/model/ListProjectsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListProjectsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListProjectsResult : public ServiceResult + { + public: struct ProjectsItem { std::string project; @@ -43,22 +43,22 @@ namespace AlibabaCloud std::string createTime; std::string billingType; }; - - - ListProjectsResult(); - explicit ListProjectsResult(const std::string &payload); - ~ListProjectsResult(); + + + ListProjectsResult(); + explicit ListProjectsResult(const std::string &payload); + ~ListProjectsResult(); std::vector getProjects()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector projects_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h b/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h index 420528bc4..cdaf8b857 100644 --- a/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListSetTagsRequest : public RpcServiceRequest - { - - public: - ListSetTagsRequest(); - ~ListSetTagsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetTagsRequest : public RpcServiceRequest + { + + public: + ListSetTagsRequest(); + ~ListSetTagsRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getProject()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsResult.h b/imm/include/alibabacloud/imm/model/ListSetTagsResult.h index 08cefe906..7c3909aa2 100644 --- a/imm/include/alibabacloud/imm/model/ListSetTagsResult.h +++ b/imm/include/alibabacloud/imm/model/ListSetTagsResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListSetTagsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetTagsResult : public ServiceResult + { + public: struct TagsItem { int tagCount; std::string tagName; }; - - - ListSetTagsResult(); - explicit ListSetTagsResult(const std::string &payload); - ~ListSetTagsResult(); + + + ListSetTagsResult(); + explicit ListSetTagsResult(const std::string &payload); + ~ListSetTagsResult(); std::string getSetId()const; std::vector getTags()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string setId_; std::vector tags_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetsRequest.h b/imm/include/alibabacloud/imm/model/ListSetsRequest.h index 0ffb8f660..0ecbe2ab1 100644 --- a/imm/include/alibabacloud/imm/model/ListSetsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListSetsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListSetsRequest : public RpcServiceRequest - { - - public: - ListSetsRequest(); - ~ListSetsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetsRequest : public RpcServiceRequest + { + + public: + ListSetsRequest(); + ~ListSetsRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMarker()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetsResult.h b/imm/include/alibabacloud/imm/model/ListSetsResult.h index 978c71c27..e5a539468 100644 --- a/imm/include/alibabacloud/imm/model/ListSetsResult.h +++ b/imm/include/alibabacloud/imm/model/ListSetsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListSetsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetsResult : public ServiceResult + { + public: struct SetsItem { std::string modifyTime; @@ -43,22 +43,22 @@ namespace AlibabaCloud int faceCount; int videoLength; }; - - - ListSetsResult(); - explicit ListSetsResult(const std::string &payload); - ~ListSetsResult(); + + + ListSetsResult(); + explicit ListSetsResult(const std::string &payload); + ~ListSetsResult(); std::vector getSets()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector sets_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagJobsRequest.h b/imm/include/alibabacloud/imm/model/ListTagJobsRequest.h index 75ce15e04..ad644e989 100644 --- a/imm/include/alibabacloud/imm/model/ListTagJobsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListTagJobsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagJobsRequest : public RpcServiceRequest - { - - public: - ListTagJobsRequest(); - ~ListTagJobsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagJobsRequest : public RpcServiceRequest + { + + public: + ListTagJobsRequest(); + ~ListTagJobsRequest(); + std::string getCondition()const; void setCondition(const std::string& condition); int getMaxKeys()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string condition_; int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagJobsResult.h b/imm/include/alibabacloud/imm/model/ListTagJobsResult.h index 3c9352529..59c8b0f97 100644 --- a/imm/include/alibabacloud/imm/model/ListTagJobsResult.h +++ b/imm/include/alibabacloud/imm/model/ListTagJobsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagJobsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagJobsResult : public ServiceResult + { + public: struct JobsItem { std::string status; @@ -42,22 +42,22 @@ namespace AlibabaCloud std::string jobId; std::string srcUri; }; - - - ListTagJobsResult(); - explicit ListTagJobsResult(const std::string &payload); - ~ListTagJobsResult(); + + + ListTagJobsResult(); + explicit ListTagJobsResult(const std::string &payload); + ~ListTagJobsResult(); std::vector getJobs()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector jobs_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagNamesRequest.h b/imm/include/alibabacloud/imm/model/ListTagNamesRequest.h index 2fc03bcd3..cc9df2b02 100644 --- a/imm/include/alibabacloud/imm/model/ListTagNamesRequest.h +++ b/imm/include/alibabacloud/imm/model/ListTagNamesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagNamesRequest : public RpcServiceRequest - { - - public: - ListTagNamesRequest(); - ~ListTagNamesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagNamesRequest : public RpcServiceRequest + { + + public: + ListTagNamesRequest(); + ~ListTagNamesRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMarker()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string marker_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagNamesResult.h b/imm/include/alibabacloud/imm/model/ListTagNamesResult.h index 28562bdb2..60b3a8764 100644 --- a/imm/include/alibabacloud/imm/model/ListTagNamesResult.h +++ b/imm/include/alibabacloud/imm/model/ListTagNamesResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagNamesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagNamesResult : public ServiceResult + { + public: struct TagsItem { std::string tagName; int num; }; - - - ListTagNamesResult(); - explicit ListTagNamesResult(const std::string &payload); - ~ListTagNamesResult(); + + + ListTagNamesResult(); + explicit ListTagNamesResult(const std::string &payload); + ~ListTagNamesResult(); std::string getNextMarker()const; std::vector getTags()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string nextMarker_; std::vector tags_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagPhotosRequest.h b/imm/include/alibabacloud/imm/model/ListTagPhotosRequest.h index 07064e12e..8e80cb2c9 100644 --- a/imm/include/alibabacloud/imm/model/ListTagPhotosRequest.h +++ b/imm/include/alibabacloud/imm/model/ListTagPhotosRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagPhotosRequest : public RpcServiceRequest - { - - public: - ListTagPhotosRequest(); - ~ListTagPhotosRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagPhotosRequest : public RpcServiceRequest + { + + public: + ListTagPhotosRequest(); + ~ListTagPhotosRequest(); + std::string getTagName()const; void setTagName(const std::string& tagName); std::string getMaxKeys()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string tagName_; std::string maxKeys_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagPhotosResult.h b/imm/include/alibabacloud/imm/model/ListTagPhotosResult.h index 624473a4b..1763d2ccb 100644 --- a/imm/include/alibabacloud/imm/model/ListTagPhotosResult.h +++ b/imm/include/alibabacloud/imm/model/ListTagPhotosResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagPhotosResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagPhotosResult : public ServiceResult + { + public: struct PhotosItem { float tagScore; std::string srcUri; }; - - - ListTagPhotosResult(); - explicit ListTagPhotosResult(const std::string &payload); - ~ListTagPhotosResult(); + + + ListTagPhotosResult(); + explicit ListTagPhotosResult(const std::string &payload); + ~ListTagPhotosResult(); std::vector getPhotos()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector photos_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagSetsRequest.h b/imm/include/alibabacloud/imm/model/ListTagSetsRequest.h index d158a65cb..052119d68 100644 --- a/imm/include/alibabacloud/imm/model/ListTagSetsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListTagSetsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagSetsRequest : public RpcServiceRequest - { - - public: - ListTagSetsRequest(); - ~ListTagSetsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagSetsRequest : public RpcServiceRequest + { + + public: + ListTagSetsRequest(); + ~ListTagSetsRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagSetsResult.h b/imm/include/alibabacloud/imm/model/ListTagSetsResult.h index 81c7112d8..57677d578 100644 --- a/imm/include/alibabacloud/imm/model/ListTagSetsResult.h +++ b/imm/include/alibabacloud/imm/model/ListTagSetsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListTagSetsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagSetsResult : public ServiceResult + { + public: struct SetsItem { std::string status; @@ -40,22 +40,22 @@ namespace AlibabaCloud std::string createTime; std::string setId; }; - - - ListTagSetsResult(); - explicit ListTagSetsResult(const std::string &payload); - ~ListTagSetsResult(); + + + ListTagSetsResult(); + explicit ListTagSetsResult(const std::string &payload); + ~ListTagSetsResult(); std::vector getSets()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector sets_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h b/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h index 1e7675dc7..bc080c7b6 100644 --- a/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h +++ b/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosRequest : public RpcServiceRequest - { - - public: - ListVideoAudiosRequest(); - ~ListVideoAudiosRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosRequest : public RpcServiceRequest + { + + public: + ListVideoAudiosRequest(); + ~ListVideoAudiosRequest(); + std::string getVideoUri()const; void setVideoUri(const std::string& videoUri); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string videoUri_; std::string regionId_; std::string marker_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h b/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h index 89cac5514..773a08ca1 100644 --- a/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h +++ b/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosResult : public ServiceResult + { + public: struct AudiosItem { struct AudioTextsItem @@ -70,26 +70,26 @@ namespace AlibabaCloud int fileSize; std::string audioTextsFailReason; }; - - - ListVideoAudiosResult(); - explicit ListVideoAudiosResult(const std::string &payload); - ~ListVideoAudiosResult(); + + + ListVideoAudiosResult(); + explicit ListVideoAudiosResult(const std::string &payload); + ~ListVideoAudiosResult(); std::vector getAudios()const; std::string getVideoUri()const; std::string getSetId()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector audios_; std::string videoUri_; std::string setId_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h b/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h index 5b30a79ca..5e9637180 100644 --- a/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h +++ b/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideoFramesRequest : public RpcServiceRequest - { - - public: - ListVideoFramesRequest(); - ~ListVideoFramesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoFramesRequest : public RpcServiceRequest + { + + public: + ListVideoFramesRequest(); + ~ListVideoFramesRequest(); + std::string getVideoUri()const; void setVideoUri(const std::string& videoUri); std::string getRegionId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string videoUri_; std::string regionId_; std::string marker_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h b/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h index d2a03ff4a..de7d1ac09 100644 --- a/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h +++ b/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideoFramesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoFramesResult : public ServiceResult + { + public: struct FramesItem { struct FacesItem @@ -156,26 +156,26 @@ namespace AlibabaCloud int fileSize; std::string location; }; - - - ListVideoFramesResult(); - explicit ListVideoFramesResult(const std::string &payload); - ~ListVideoFramesResult(); + + + ListVideoFramesResult(); + explicit ListVideoFramesResult(const std::string &payload); + ~ListVideoFramesResult(); std::vector getFrames()const; std::string getVideoUri()const; std::string getSetId()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector frames_; std::string videoUri_; std::string setId_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h b/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h index a2c468c08..c9bfebb55 100644 --- a/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h +++ b/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideoTasksRequest : public RpcServiceRequest - { - - public: - ListVideoTasksRequest(); - ~ListVideoTasksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoTasksRequest : public RpcServiceRequest + { + + public: + ListVideoTasksRequest(); + ~ListVideoTasksRequest(); + int getMaxKeys()const; void setMaxKeys(int maxKeys); std::string getTaskType()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setProject(const std::string& project); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int maxKeys_; std::string taskType_; std::string regionId_; std::string marker_; std::string project_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h b/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h index a4b203387..2e0924c36 100644 --- a/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h +++ b/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideoTasksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoTasksResult : public ServiceResult + { + public: struct TasksItem { std::string status; @@ -46,22 +46,22 @@ namespace AlibabaCloud std::string errorMessage; std::string result; }; - - - ListVideoTasksResult(); - explicit ListVideoTasksResult(const std::string &payload); - ~ListVideoTasksResult(); + + + ListVideoTasksResult(); + explicit ListVideoTasksResult(const std::string &payload); + ~ListVideoTasksResult(); std::vector getTasks()const; std::string getNextMarker()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector tasks_; std::string nextMarker_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideosRequest.h b/imm/include/alibabacloud/imm/model/ListVideosRequest.h index c04a19b7e..c60402af6 100644 --- a/imm/include/alibabacloud/imm/model/ListVideosRequest.h +++ b/imm/include/alibabacloud/imm/model/ListVideosRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideosRequest : public RpcServiceRequest - { - - public: - ListVideosRequest(); - ~ListVideosRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideosRequest : public RpcServiceRequest + { + + public: + ListVideosRequest(); + ~ListVideosRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getMarker()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setCreateTimeStart(const std::string& createTimeStart); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; std::string marker_; std::string project_; std::string setId_; std::string createTimeStart_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideosResult.h b/imm/include/alibabacloud/imm/model/ListVideosResult.h index 6a45493a1..6c3590d63 100644 --- a/imm/include/alibabacloud/imm/model/ListVideosResult.h +++ b/imm/include/alibabacloud/imm/model/ListVideosResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListVideosResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideosResult : public ServiceResult + { + public: struct VideosItem { struct VideoTagsItem @@ -84,24 +84,24 @@ namespace AlibabaCloud std::string videoTagsStatus; int fileSize; }; - - - ListVideosResult(); - explicit ListVideosResult(const std::string &payload); - ~ListVideosResult(); + + + ListVideosResult(); + explicit ListVideosResult(const std::string &payload); + ~ListVideosResult(); std::string getSetId()const; std::string getNextMarker()const; std::vector getVideos()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string setId_; std::string nextMarker_; std::vector videos_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PhotoProcessRequest.h b/imm/include/alibabacloud/imm/model/PhotoProcessRequest.h index 8ede491f1..77b920dd9 100644 --- a/imm/include/alibabacloud/imm/model/PhotoProcessRequest.h +++ b/imm/include/alibabacloud/imm/model/PhotoProcessRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT PhotoProcessRequest : public RpcServiceRequest - { - - public: - PhotoProcessRequest(); - ~PhotoProcessRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PhotoProcessRequest : public RpcServiceRequest + { + + public: + PhotoProcessRequest(); + ~PhotoProcessRequest(); + std::string getNotifyTopicName()const; void setNotifyTopicName(const std::string& notifyTopicName); std::string getRegionId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getTgtUri()const; void setTgtUri(const std::string& tgtUri); - - private: + + private: std::string notifyTopicName_; std::string regionId_; std::string notifyEndpoint_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string style_; std::string accessKeyId_; std::string tgtUri_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PhotoProcessResult.h b/imm/include/alibabacloud/imm/model/PhotoProcessResult.h index f09384040..b85cba7b7 100644 --- a/imm/include/alibabacloud/imm/model/PhotoProcessResult.h +++ b/imm/include/alibabacloud/imm/model/PhotoProcessResult.h @@ -1,59 +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_IMM_MODEL_PHOTOPROCESSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT PhotoProcessResult : public ServiceResult - { - public: - - - PhotoProcessResult(); - explicit PhotoProcessResult(const std::string &payload); - ~PhotoProcessResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PhotoProcessResult : public ServiceResult + { + public: + + + PhotoProcessResult(); + explicit PhotoProcessResult(const std::string &payload); + ~PhotoProcessResult(); std::string getStatus()const; std::string getTaskId()const; int getPercent()const; std::string getTgtLoc()const; std::string getCreateTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string taskId_; int percent_; std::string tgtLoc_; std::string createTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PutProjectRequest.h b/imm/include/alibabacloud/imm/model/PutProjectRequest.h index 916ef21e4..b458c0fa4 100644 --- a/imm/include/alibabacloud/imm/model/PutProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/PutProjectRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT PutProjectRequest : public RpcServiceRequest - { - - public: - PutProjectRequest(); - ~PutProjectRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PutProjectRequest : public RpcServiceRequest + { + + public: + PutProjectRequest(); + ~PutProjectRequest(); + int getCU()const; void setCU(int cU); std::string getRegionId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setType(const std::string& type); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: int cU_; std::string regionId_; std::string serviceRole_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string billingType_; std::string type_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PutProjectResult.h b/imm/include/alibabacloud/imm/model/PutProjectResult.h index 6f3a1be63..e8ab795ff 100644 --- a/imm/include/alibabacloud/imm/model/PutProjectResult.h +++ b/imm/include/alibabacloud/imm/model/PutProjectResult.h @@ -1,42 +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_IMM_MODEL_PUTPROJECTRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT PutProjectResult : public ServiceResult - { - public: - - - PutProjectResult(); - explicit PutProjectResult(const std::string &payload); - ~PutProjectResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PutProjectResult : public ServiceResult + { + public: + + + PutProjectResult(); + explicit PutProjectResult(const std::string &payload); + ~PutProjectResult(); std::string getProject()const; std::string getModifyTime()const; int getCU()const; @@ -45,10 +45,10 @@ namespace AlibabaCloud std::string getEndpoint()const; std::string getCreateTime()const; std::string getBillingType()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string project_; std::string modifyTime_; int cU_; @@ -57,9 +57,9 @@ namespace AlibabaCloud std::string endpoint_; std::string createTime_; std::string billingType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/RegistFaceRequest.h b/imm/include/alibabacloud/imm/model/RegistFaceRequest.h index a86b6ffdf..bb9e51445 100644 --- a/imm/include/alibabacloud/imm/model/RegistFaceRequest.h +++ b/imm/include/alibabacloud/imm/model/RegistFaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT RegistFaceRequest : public RpcServiceRequest - { - - public: - RegistFaceRequest(); - ~RegistFaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT RegistFaceRequest : public RpcServiceRequest + { + + public: + RegistFaceRequest(); + ~RegistFaceRequest(); + bool getChooseBiggestFace()const; void setChooseBiggestFace(bool chooseBiggestFace); std::string getRegionId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setUser(const std::string& user); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: bool chooseBiggestFace_; std::string regionId_; bool isQualityLimit_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string groupName_; std::string user_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/RegistFaceResult.h b/imm/include/alibabacloud/imm/model/RegistFaceResult.h index d033a496d..3630d5c1b 100644 --- a/imm/include/alibabacloud/imm/model/RegistFaceResult.h +++ b/imm/include/alibabacloud/imm/model/RegistFaceResult.h @@ -1,42 +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_IMM_MODEL_REGISTFACERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_REGISTFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT RegistFaceResult : public ServiceResult - { - public: - - - RegistFaceResult(); - explicit RegistFaceResult(const std::string &payload); - ~RegistFaceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_REGISTFACERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_REGISTFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT RegistFaceResult : public ServiceResult + { + public: + + + RegistFaceResult(); + explicit RegistFaceResult(const std::string &payload); + ~RegistFaceResult(); std::string getGroupName()const; std::string getFaceId()const; std::string getUser()const; @@ -53,10 +53,10 @@ namespace AlibabaCloud std::vector getAxis()const; std::string getImageMd5()const; int getAge()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; std::string faceId_; std::string user_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::vector axis_; std::string imageMd5_; int age_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_REGISTFACERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchDocIndexRequest.h b/imm/include/alibabacloud/imm/model/SearchDocIndexRequest.h index 240179d75..85c5ae9e8 100644 --- a/imm/include/alibabacloud/imm/model/SearchDocIndexRequest.h +++ b/imm/include/alibabacloud/imm/model/SearchDocIndexRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT SearchDocIndexRequest : public RpcServiceRequest - { - - public: - SearchDocIndexRequest(); - ~SearchDocIndexRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchDocIndexRequest : public RpcServiceRequest + { + + public: + SearchDocIndexRequest(); + ~SearchDocIndexRequest(); + int getModifiedTimeEnd()const; void setModifiedTimeEnd(int modifiedTimeEnd); std::string getCustomKey1()const; @@ -77,8 +77,8 @@ namespace AlibabaCloud void setName(const std::string& name); int getLimit()const; void setLimit(int limit); - - private: + + private: int modifiedTimeEnd_; std::string customKey1_; std::string set_; @@ -100,9 +100,9 @@ namespace AlibabaCloud std::string regionId_; std::string name_; int limit_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchDocIndexResult.h b/imm/include/alibabacloud/imm/model/SearchDocIndexResult.h index bf19b47c8..99cd931d3 100644 --- a/imm/include/alibabacloud/imm/model/SearchDocIndexResult.h +++ b/imm/include/alibabacloud/imm/model/SearchDocIndexResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT SearchDocIndexResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchDocIndexResult : public ServiceResult + { + public: struct DocInfosItem { std::string customKey4; @@ -48,20 +48,20 @@ namespace AlibabaCloud std::string lastModified; std::string srcUri; }; - - - SearchDocIndexResult(); - explicit SearchDocIndexResult(const std::string &payload); - ~SearchDocIndexResult(); + + + SearchDocIndexResult(); + explicit SearchDocIndexResult(const std::string &payload); + ~SearchDocIndexResult(); std::vector getDocInfos()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector docInfos_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchFaceRequest.h b/imm/include/alibabacloud/imm/model/SearchFaceRequest.h index fc694d737..d0c9184fa 100644 --- a/imm/include/alibabacloud/imm/model/SearchFaceRequest.h +++ b/imm/include/alibabacloud/imm/model/SearchFaceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT SearchFaceRequest : public RpcServiceRequest - { - - public: - SearchFaceRequest(); - ~SearchFaceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchFaceRequest : public RpcServiceRequest + { + + public: + SearchFaceRequest(); + ~SearchFaceRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); int getResultNum()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setGroupName(const std::string& groupName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string regionId_; int resultNum_; std::string project_; @@ -61,9 +61,9 @@ namespace AlibabaCloud bool isThreshold_; std::string groupName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchFaceResult.h b/imm/include/alibabacloud/imm/model/SearchFaceResult.h index 8044629fa..a29629eba 100644 --- a/imm/include/alibabacloud/imm/model/SearchFaceResult.h +++ b/imm/include/alibabacloud/imm/model/SearchFaceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT SearchFaceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchFaceResult : public ServiceResult + { + public: struct ResultFacesItem { float score; @@ -43,11 +43,11 @@ namespace AlibabaCloud std::vector axis1; std::string groupId; }; - - - SearchFaceResult(); - explicit SearchFaceResult(const std::string &payload); - ~SearchFaceResult(); + + + SearchFaceResult(); + explicit SearchFaceResult(const std::string &payload); + ~SearchFaceResult(); std::string getGroupName()const; float getScore()const; std::vector getResultFaces()const; @@ -55,10 +55,10 @@ namespace AlibabaCloud int getHat()const; std::string getImageUri()const; std::vector getAxis()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string groupName_; float score_; std::vector resultFaces_; @@ -66,9 +66,9 @@ namespace AlibabaCloud int hat_; std::string imageUri_; std::vector axis_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h index 1391423f9..77bd47b20 100644 --- a/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaRequest : public RpcServiceRequest - { - - public: - UpdateDocIndexMetaRequest(); - ~UpdateDocIndexMetaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaRequest : public RpcServiceRequest + { + + public: + UpdateDocIndexMetaRequest(); + ~UpdateDocIndexMetaRequest(); + std::string getCustomKey1()const; void setCustomKey1(const std::string& customKey1); std::string getSet()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getUniqueId()const; void setUniqueId(const std::string& uniqueId); - - private: + + private: std::string customKey1_; std::string set_; std::string customKey5_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string regionId_; std::string name_; std::string uniqueId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h index 13f881a8f..ac37d53b7 100644 --- a/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaResult : public ServiceResult - { - public: - - - UpdateDocIndexMetaResult(); - explicit UpdateDocIndexMetaResult(const std::string &payload); - ~UpdateDocIndexMetaResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaResult : public ServiceResult + { + public: + + + UpdateDocIndexMetaResult(); + explicit UpdateDocIndexMetaResult(const std::string &payload); + ~UpdateDocIndexMetaResult(); std::string getIndexModifiedTime()const; std::string getIndexCreatedTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string indexModifiedTime_; std::string indexCreatedTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h b/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h index c778a03b7..163bb1ea2 100644 --- a/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateFaceGroupRequest : public RpcServiceRequest - { - - public: - UpdateFaceGroupRequest(); - ~UpdateFaceGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateFaceGroupRequest : public RpcServiceRequest + { + + public: + UpdateFaceGroupRequest(); + ~UpdateFaceGroupRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getGroupId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getGroupCoverFaceId()const; void setGroupCoverFaceId(const std::string& groupCoverFaceId); - - private: + + private: std::string regionId_; std::string groupId_; std::string project_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string groupName_; std::string accessKeyId_; std::string groupCoverFaceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h b/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h index 97058ac82..0af957832 100644 --- a/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateFaceGroupResult : public ServiceResult - { - public: - - - UpdateFaceGroupResult(); - explicit UpdateFaceGroupResult(const std::string &payload); - ~UpdateFaceGroupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateFaceGroupResult : public ServiceResult + { + public: + + + UpdateFaceGroupResult(); + explicit UpdateFaceGroupResult(const std::string &payload); + ~UpdateFaceGroupResult(); std::string getSetId()const; std::string getGroupId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string setId_; std::string groupId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateImageRequest.h b/imm/include/alibabacloud/imm/model/UpdateImageRequest.h index 6204193f5..108b5c31c 100644 --- a/imm/include/alibabacloud/imm/model/UpdateImageRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateImageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateImageRequest : public RpcServiceRequest - { - - public: - UpdateImageRequest(); - ~UpdateImageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateImageRequest : public RpcServiceRequest + { + + public: + UpdateImageRequest(); + ~UpdateImageRequest(); + std::string getRemarksB()const; void setRemarksB(const std::string& remarksB); std::string getProject()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getSourceType()const; void setSourceType(const std::string& sourceType); - - private: + + private: std::string remarksB_; std::string project_; std::string remarksA_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string remarksC_; std::string setId_; std::string sourceType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateImageResult.h b/imm/include/alibabacloud/imm/model/UpdateImageResult.h index aae708840..6ba23ed11 100644 --- a/imm/include/alibabacloud/imm/model/UpdateImageResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateImageResult.h @@ -1,42 +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_IMM_MODEL_UPDATEIMAGERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateImageResult : public ServiceResult - { - public: - - - UpdateImageResult(); - explicit UpdateImageResult(const std::string &payload); - ~UpdateImageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateImageResult : public ServiceResult + { + public: + + + UpdateImageResult(); + explicit UpdateImageResult(const std::string &payload); + ~UpdateImageResult(); std::string getModifyTime()const; std::string getRemarksC()const; std::string getRemarksD()const; @@ -46,10 +46,10 @@ namespace AlibabaCloud std::string getImageUri()const; std::string getRemarksA()const; std::string getRemarksB()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; std::string remarksC_; std::string remarksD_; @@ -59,9 +59,9 @@ namespace AlibabaCloud std::string imageUri_; std::string remarksA_; std::string remarksB_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h b/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h index 849b30a87..e847cb003 100644 --- a/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateProjectRequest : public RpcServiceRequest - { - - public: - UpdateProjectRequest(); - ~UpdateProjectRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateProjectRequest : public RpcServiceRequest + { + + public: + UpdateProjectRequest(); + ~UpdateProjectRequest(); + std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getNewServiceRole()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); int getNewCU()const; void setNewCU(int newCU); - - private: + + private: std::string regionId_; std::string newServiceRole_; std::string project_; std::string accessKeyId_; int newCU_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateProjectResult.h b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h index 0148f168c..d79f007b8 100644 --- a/imm/include/alibabacloud/imm/model/UpdateProjectResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateProjectResult : public ServiceResult - { - public: - - - UpdateProjectResult(); - explicit UpdateProjectResult(const std::string &payload); - ~UpdateProjectResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateProjectResult : public ServiceResult + { + public: + + + UpdateProjectResult(); + explicit UpdateProjectResult(const std::string &payload); + ~UpdateProjectResult(); std::string getProject()const; std::string getModifyTime()const; int getCU()const; std::string getType()const; std::string getServiceRole()const; std::string getCreateTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string project_; std::string modifyTime_; int cU_; std::string type_; std::string serviceRole_; std::string createTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateSetRequest.h b/imm/include/alibabacloud/imm/model/UpdateSetRequest.h index a0cd564bf..822e804d7 100644 --- a/imm/include/alibabacloud/imm/model/UpdateSetRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateSetRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateSetRequest : public RpcServiceRequest - { - - public: - UpdateSetRequest(); - ~UpdateSetRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateSetRequest : public RpcServiceRequest + { + + public: + UpdateSetRequest(); + ~UpdateSetRequest(); + std::string getSetName()const; void setSetName(const std::string& setName); std::string getRegionId()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setSetId(const std::string& setId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string setName_; std::string regionId_; std::string project_; std::string setId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateSetResult.h b/imm/include/alibabacloud/imm/model/UpdateSetResult.h index e6d74360b..ca4cd5646 100644 --- a/imm/include/alibabacloud/imm/model/UpdateSetResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateSetResult.h @@ -1,57 +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_IMM_MODEL_UPDATESETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT UpdateSetResult : public ServiceResult - { - public: - - - UpdateSetResult(); - explicit UpdateSetResult(const std::string &payload); - ~UpdateSetResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateSetResult : public ServiceResult + { + public: + + + UpdateSetResult(); + explicit UpdateSetResult(const std::string &payload); + ~UpdateSetResult(); std::string getModifyTime()const; std::string getCreateTime()const; std::string getSetName()const; std::string getSetId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string modifyTime_; std::string createTime_; std::string setName_; std::string setId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ \ No newline at end of file diff --git a/imm/src/ImmClient.cc b/imm/src/ImmClient.cc index 74e27dd32..dd3898f6d 100644 --- a/imm/src/ImmClient.cc +++ b/imm/src/ImmClient.cc @@ -1,3581 +1,3581 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm; -using namespace AlibabaCloud::Imm::Model; - -namespace -{ - const std::string SERVICE_NAME = "imm"; -} - -ImmClient::ImmClient(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, "imm"); -} - -ImmClient::ImmClient(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, "imm"); -} - -ImmClient::ImmClient(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, "imm"); -} - -ImmClient::~ImmClient() -{} - -ImmClient::ListPornBatchDetectJobsOutcome ImmClient::listPornBatchDetectJobs(const ListPornBatchDetectJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPornBatchDetectJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPornBatchDetectJobsOutcome(ListPornBatchDetectJobsResult(outcome.result())); - else - return ListPornBatchDetectJobsOutcome(outcome.error()); -} - -void ImmClient::listPornBatchDetectJobsAsync(const ListPornBatchDetectJobsRequest& request, const ListPornBatchDetectJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPornBatchDetectJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListPornBatchDetectJobsOutcomeCallable ImmClient::listPornBatchDetectJobsCallable(const ListPornBatchDetectJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPornBatchDetectJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectImageFacesOutcome ImmClient::detectImageFaces(const DetectImageFacesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectImageFacesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectImageFacesOutcome(DetectImageFacesResult(outcome.result())); - else - return DetectImageFacesOutcome(outcome.error()); -} - -void ImmClient::detectImageFacesAsync(const DetectImageFacesRequest& request, const DetectImageFacesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectImageFaces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectImageFacesOutcomeCallable ImmClient::detectImageFacesCallable(const DetectImageFacesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectImageFaces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteImageOutcome ImmClient::deleteImage(const DeleteImageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteImageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteImageOutcome(DeleteImageResult(outcome.result())); - else - return DeleteImageOutcome(outcome.error()); -} - -void ImmClient::deleteImageAsync(const DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteImage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteImageOutcomeCallable ImmClient::deleteImageCallable(const DeleteImageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteImage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateTagJobOutcome ImmClient::createTagJob(const CreateTagJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateTagJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateTagJobOutcome(CreateTagJobResult(outcome.result())); - else - return CreateTagJobOutcome(outcome.error()); -} - -void ImmClient::createTagJobAsync(const CreateTagJobRequest& request, const CreateTagJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createTagJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateTagJobOutcomeCallable ImmClient::createTagJobCallable(const CreateTagJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createTagJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::IndexTagOutcome ImmClient::indexTag(const IndexTagRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return IndexTagOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return IndexTagOutcome(IndexTagResult(outcome.result())); - else - return IndexTagOutcome(outcome.error()); -} - -void ImmClient::indexTagAsync(const IndexTagRequest& request, const IndexTagAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, indexTag(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::IndexTagOutcomeCallable ImmClient::indexTagCallable(const IndexTagRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->indexTag(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateVideoAnalyseTaskOutcome ImmClient::createVideoAnalyseTask(const CreateVideoAnalyseTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateVideoAnalyseTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateVideoAnalyseTaskOutcome(CreateVideoAnalyseTaskResult(outcome.result())); - else - return CreateVideoAnalyseTaskOutcome(outcome.error()); -} - -void ImmClient::createVideoAnalyseTaskAsync(const CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createVideoAnalyseTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateVideoAnalyseTaskOutcomeCallable ImmClient::createVideoAnalyseTaskCallable(const CreateVideoAnalyseTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createVideoAnalyseTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CompareFaceOutcome ImmClient::compareFace(const CompareFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CompareFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CompareFaceOutcome(CompareFaceResult(outcome.result())); - else - return CompareFaceOutcome(outcome.error()); -} - -void ImmClient::compareFaceAsync(const CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, compareFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CompareFaceOutcomeCallable ImmClient::compareFaceCallable(const CompareFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->compareFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListFaceSearchGroupUsersOutcome ImmClient::listFaceSearchGroupUsers(const ListFaceSearchGroupUsersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFaceSearchGroupUsersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFaceSearchGroupUsersOutcome(ListFaceSearchGroupUsersResult(outcome.result())); - else - return ListFaceSearchGroupUsersOutcome(outcome.error()); -} - -void ImmClient::listFaceSearchGroupUsersAsync(const ListFaceSearchGroupUsersRequest& request, const ListFaceSearchGroupUsersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFaceSearchGroupUsers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListFaceSearchGroupUsersOutcomeCallable ImmClient::listFaceSearchGroupUsersCallable(const ListFaceSearchGroupUsersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFaceSearchGroupUsers(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListFaceSearchGroupImagesOutcome ImmClient::listFaceSearchGroupImages(const ListFaceSearchGroupImagesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFaceSearchGroupImagesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFaceSearchGroupImagesOutcome(ListFaceSearchGroupImagesResult(outcome.result())); - else - return ListFaceSearchGroupImagesOutcome(outcome.error()); -} - -void ImmClient::listFaceSearchGroupImagesAsync(const ListFaceSearchGroupImagesRequest& request, const ListFaceSearchGroupImagesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFaceSearchGroupImages(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListFaceSearchGroupImagesOutcomeCallable ImmClient::listFaceSearchGroupImagesCallable(const ListFaceSearchGroupImagesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFaceSearchGroupImages(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::PutProjectOutcome ImmClient::putProject(const PutProjectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PutProjectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PutProjectOutcome(PutProjectResult(outcome.result())); - else - return PutProjectOutcome(outcome.error()); -} - -void ImmClient::putProjectAsync(const PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, putProject(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::PutProjectOutcomeCallable ImmClient::putProjectCallable(const PutProjectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->putProject(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListSetsOutcome ImmClient::listSets(const ListSetsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSetsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSetsOutcome(ListSetsResult(outcome.result())); - else - return ListSetsOutcome(outcome.error()); -} - -void ImmClient::listSetsAsync(const ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSets(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListSetsOutcomeCallable ImmClient::listSetsCallable(const ListSetsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSets(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::FindImagesOutcome ImmClient::findImages(const FindImagesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FindImagesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FindImagesOutcome(FindImagesResult(outcome.result())); - else - return FindImagesOutcome(outcome.error()); -} - -void ImmClient::findImagesAsync(const FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, findImages(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::FindImagesOutcomeCallable ImmClient::findImagesCallable(const FindImagesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->findImages(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectImageLogosOutcome ImmClient::detectImageLogos(const DetectImageLogosRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectImageLogosOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectImageLogosOutcome(DetectImageLogosResult(outcome.result())); - else - return DetectImageLogosOutcome(outcome.error()); -} - -void ImmClient::detectImageLogosAsync(const DetectImageLogosRequest& request, const DetectImageLogosAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectImageLogos(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectImageLogosOutcomeCallable ImmClient::detectImageLogosCallable(const DetectImageLogosRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectImageLogos(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetProjectOutcome ImmClient::getProject(const GetProjectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetProjectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetProjectOutcome(GetProjectResult(outcome.result())); - else - return GetProjectOutcome(outcome.error()); -} - -void ImmClient::getProjectAsync(const GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getProject(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetProjectOutcomeCallable ImmClient::getProjectCallable(const GetProjectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getProject(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteTagSetOutcome ImmClient::deleteTagSet(const DeleteTagSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteTagSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteTagSetOutcome(DeleteTagSetResult(outcome.result())); - else - return DeleteTagSetOutcome(outcome.error()); -} - -void ImmClient::deleteTagSetAsync(const DeleteTagSetRequest& request, const DeleteTagSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteTagSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteTagSetOutcomeCallable ImmClient::deleteTagSetCallable(const DeleteTagSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteTagSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteProjectOutcome ImmClient::deleteProject(const DeleteProjectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteProjectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteProjectOutcome(DeleteProjectResult(outcome.result())); - else - return DeleteProjectOutcome(outcome.error()); -} - -void ImmClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteProject(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteProjectOutcomeCallable ImmClient::deleteProjectCallable(const DeleteProjectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteProject(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::UpdateDocIndexMetaOutcome ImmClient::updateDocIndexMeta(const UpdateDocIndexMetaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateDocIndexMetaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateDocIndexMetaOutcome(UpdateDocIndexMetaResult(outcome.result())); - else - return UpdateDocIndexMetaOutcome(outcome.error()); -} - -void ImmClient::updateDocIndexMetaAsync(const UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateDocIndexMeta(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::UpdateDocIndexMetaOutcomeCallable ImmClient::updateDocIndexMetaCallable(const UpdateDocIndexMetaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateDocIndexMeta(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::SearchFaceOutcome ImmClient::searchFace(const SearchFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchFaceOutcome(SearchFaceResult(outcome.result())); - else - return SearchFaceOutcome(outcome.error()); -} - -void ImmClient::searchFaceAsync(const SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::SearchFaceOutcomeCallable ImmClient::searchFaceCallable(const SearchFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectImageCelebrityOutcome ImmClient::detectImageCelebrity(const DetectImageCelebrityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectImageCelebrityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectImageCelebrityOutcome(DetectImageCelebrityResult(outcome.result())); - else - return DetectImageCelebrityOutcome(outcome.error()); -} - -void ImmClient::detectImageCelebrityAsync(const DetectImageCelebrityRequest& request, const DetectImageCelebrityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectImageCelebrity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectImageCelebrityOutcomeCallable ImmClient::detectImageCelebrityCallable(const DetectImageCelebrityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectImageCelebrity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeletePornBatchDetectJobOutcome ImmClient::deletePornBatchDetectJob(const DeletePornBatchDetectJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeletePornBatchDetectJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeletePornBatchDetectJobOutcome(DeletePornBatchDetectJobResult(outcome.result())); - else - return DeletePornBatchDetectJobOutcome(outcome.error()); -} - -void ImmClient::deletePornBatchDetectJobAsync(const DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deletePornBatchDetectJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeletePornBatchDetectJobOutcomeCallable ImmClient::deletePornBatchDetectJobCallable(const DeletePornBatchDetectJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deletePornBatchDetectJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetTagSetOutcome ImmClient::getTagSet(const GetTagSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTagSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTagSetOutcome(GetTagSetResult(outcome.result())); - else - return GetTagSetOutcome(outcome.error()); -} - -void ImmClient::getTagSetAsync(const GetTagSetRequest& request, const GetTagSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTagSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetTagSetOutcomeCallable ImmClient::getTagSetCallable(const GetTagSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTagSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListFaceSearchGroupsOutcome ImmClient::listFaceSearchGroups(const ListFaceSearchGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFaceSearchGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFaceSearchGroupsOutcome(ListFaceSearchGroupsResult(outcome.result())); - else - return ListFaceSearchGroupsOutcome(outcome.error()); -} - -void ImmClient::listFaceSearchGroupsAsync(const ListFaceSearchGroupsRequest& request, const ListFaceSearchGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFaceSearchGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListFaceSearchGroupsOutcomeCallable ImmClient::listFaceSearchGroupsCallable(const ListFaceSearchGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFaceSearchGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListTagPhotosOutcome ImmClient::listTagPhotos(const ListTagPhotosRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTagPhotosOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTagPhotosOutcome(ListTagPhotosResult(outcome.result())); - else - return ListTagPhotosOutcome(outcome.error()); -} - -void ImmClient::listTagPhotosAsync(const ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTagPhotos(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListTagPhotosOutcomeCallable ImmClient::listTagPhotosCallable(const ListTagPhotosRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTagPhotos(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteFaceSearchImageByIdOutcome ImmClient::deleteFaceSearchImageById(const DeleteFaceSearchImageByIdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFaceSearchImageByIdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFaceSearchImageByIdOutcome(DeleteFaceSearchImageByIdResult(outcome.result())); - else - return DeleteFaceSearchImageByIdOutcome(outcome.error()); -} - -void ImmClient::deleteFaceSearchImageByIdAsync(const DeleteFaceSearchImageByIdRequest& request, const DeleteFaceSearchImageByIdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFaceSearchImageById(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteFaceSearchImageByIdOutcomeCallable ImmClient::deleteFaceSearchImageByIdCallable(const DeleteFaceSearchImageByIdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFaceSearchImageById(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::IndexVideoOutcome ImmClient::indexVideo(const IndexVideoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return IndexVideoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return IndexVideoOutcome(IndexVideoResult(outcome.result())); - else - return IndexVideoOutcome(outcome.error()); -} - -void ImmClient::indexVideoAsync(const IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, indexVideo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::IndexVideoOutcomeCallable ImmClient::indexVideoCallable(const IndexVideoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->indexVideo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateMergeFaceGroupsJobOutcome ImmClient::createMergeFaceGroupsJob(const CreateMergeFaceGroupsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateMergeFaceGroupsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateMergeFaceGroupsJobOutcome(CreateMergeFaceGroupsJobResult(outcome.result())); - else - return CreateMergeFaceGroupsJobOutcome(outcome.error()); -} - -void ImmClient::createMergeFaceGroupsJobAsync(const CreateMergeFaceGroupsJobRequest& request, const CreateMergeFaceGroupsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createMergeFaceGroupsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateMergeFaceGroupsJobOutcomeCallable ImmClient::createMergeFaceGroupsJobCallable(const CreateMergeFaceGroupsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createMergeFaceGroupsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListVideoAudiosOutcome ImmClient::listVideoAudios(const ListVideoAudiosRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListVideoAudiosOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListVideoAudiosOutcome(ListVideoAudiosResult(outcome.result())); - else - return ListVideoAudiosOutcome(outcome.error()); -} - -void ImmClient::listVideoAudiosAsync(const ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listVideoAudios(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListVideoAudiosOutcomeCallable ImmClient::listVideoAudiosCallable(const ListVideoAudiosRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listVideoAudios(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListTagNamesOutcome ImmClient::listTagNames(const ListTagNamesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTagNamesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTagNamesOutcome(ListTagNamesResult(outcome.result())); - else - return ListTagNamesOutcome(outcome.error()); -} - -void ImmClient::listTagNamesAsync(const ListTagNamesRequest& request, const ListTagNamesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTagNames(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListTagNamesOutcomeCallable ImmClient::listTagNamesCallable(const ListTagNamesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTagNames(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateOfficeConversionTaskOutcome ImmClient::createOfficeConversionTask(const CreateOfficeConversionTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateOfficeConversionTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateOfficeConversionTaskOutcome(CreateOfficeConversionTaskResult(outcome.result())); - else - return CreateOfficeConversionTaskOutcome(outcome.error()); -} - -void ImmClient::createOfficeConversionTaskAsync(const CreateOfficeConversionTaskRequest& request, const CreateOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createOfficeConversionTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateOfficeConversionTaskOutcomeCallable ImmClient::createOfficeConversionTaskCallable(const CreateOfficeConversionTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createOfficeConversionTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetFaceSearchGroupOutcome ImmClient::getFaceSearchGroup(const GetFaceSearchGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetFaceSearchGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetFaceSearchGroupOutcome(GetFaceSearchGroupResult(outcome.result())); - else - return GetFaceSearchGroupOutcome(outcome.error()); -} - -void ImmClient::getFaceSearchGroupAsync(const GetFaceSearchGroupRequest& request, const GetFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getFaceSearchGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetFaceSearchGroupOutcomeCallable ImmClient::getFaceSearchGroupCallable(const GetFaceSearchGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getFaceSearchGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CompareImageFacesOutcome ImmClient::compareImageFaces(const CompareImageFacesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CompareImageFacesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CompareImageFacesOutcome(CompareImageFacesResult(outcome.result())); - else - return CompareImageFacesOutcome(outcome.error()); -} - -void ImmClient::compareImageFacesAsync(const CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, compareImageFaces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CompareImageFacesOutcomeCallable ImmClient::compareImageFacesCallable(const CompareImageFacesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->compareImageFaces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteTagJobOutcome ImmClient::deleteTagJob(const DeleteTagJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteTagJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteTagJobOutcome(DeleteTagJobResult(outcome.result())); - else - return DeleteTagJobOutcome(outcome.error()); -} - -void ImmClient::deleteTagJobAsync(const DeleteTagJobRequest& request, const DeleteTagJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteTagJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteTagJobOutcomeCallable ImmClient::deleteTagJobCallable(const DeleteTagJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteTagJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::PhotoProcessOutcome ImmClient::photoProcess(const PhotoProcessRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PhotoProcessOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PhotoProcessOutcome(PhotoProcessResult(outcome.result())); - else - return PhotoProcessOutcome(outcome.error()); -} - -void ImmClient::photoProcessAsync(const PhotoProcessRequest& request, const PhotoProcessAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, photoProcess(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::PhotoProcessOutcomeCallable ImmClient::photoProcessCallable(const PhotoProcessRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->photoProcess(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteFaceSearchUserOutcome ImmClient::deleteFaceSearchUser(const DeleteFaceSearchUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFaceSearchUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFaceSearchUserOutcome(DeleteFaceSearchUserResult(outcome.result())); - else - return DeleteFaceSearchUserOutcome(outcome.error()); -} - -void ImmClient::deleteFaceSearchUserAsync(const DeleteFaceSearchUserRequest& request, const DeleteFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFaceSearchUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteFaceSearchUserOutcomeCallable ImmClient::deleteFaceSearchUserCallable(const DeleteFaceSearchUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFaceSearchUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::RegistFaceOutcome ImmClient::registFace(const RegistFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RegistFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RegistFaceOutcome(RegistFaceResult(outcome.result())); - else - return RegistFaceOutcome(outcome.error()); -} - -void ImmClient::registFaceAsync(const RegistFaceRequest& request, const RegistFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, registFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::RegistFaceOutcomeCallable ImmClient::registFaceCallable(const RegistFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->registFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetOfficeConversionTaskOutcome ImmClient::getOfficeConversionTask(const GetOfficeConversionTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOfficeConversionTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOfficeConversionTaskOutcome(GetOfficeConversionTaskResult(outcome.result())); - else - return GetOfficeConversionTaskOutcome(outcome.error()); -} - -void ImmClient::getOfficeConversionTaskAsync(const GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOfficeConversionTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetOfficeConversionTaskOutcomeCallable ImmClient::getOfficeConversionTaskCallable(const GetOfficeConversionTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOfficeConversionTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateTagSetOutcome ImmClient::createTagSet(const CreateTagSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateTagSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateTagSetOutcome(CreateTagSetResult(outcome.result())); - else - return CreateTagSetOutcome(outcome.error()); -} - -void ImmClient::createTagSetAsync(const CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createTagSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const CreateTagSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createTagSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetFaceSearchUserOutcome ImmClient::getFaceSearchUser(const GetFaceSearchUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetFaceSearchUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetFaceSearchUserOutcome(GetFaceSearchUserResult(outcome.result())); - else - return GetFaceSearchUserOutcome(outcome.error()); -} - -void ImmClient::getFaceSearchUserAsync(const GetFaceSearchUserRequest& request, const GetFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getFaceSearchUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetFaceSearchUserOutcomeCallable ImmClient::getFaceSearchUserCallable(const GetFaceSearchUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getFaceSearchUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateFaceSetOutcome ImmClient::createFaceSet(const CreateFaceSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateFaceSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateFaceSetOutcome(CreateFaceSetResult(outcome.result())); - else - return CreateFaceSetOutcome(outcome.error()); -} - -void ImmClient::createFaceSetAsync(const CreateFaceSetRequest& request, const CreateFaceSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createFaceSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateFaceSetOutcomeCallable ImmClient::createFaceSetCallable(const CreateFaceSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createFaceSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListProjectAPIsOutcome ImmClient::listProjectAPIs(const ListProjectAPIsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListProjectAPIsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListProjectAPIsOutcome(ListProjectAPIsResult(outcome.result())); - else - return ListProjectAPIsOutcome(outcome.error()); -} - -void ImmClient::listProjectAPIsAsync(const ListProjectAPIsRequest& request, const ListProjectAPIsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listProjectAPIs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListProjectAPIsOutcomeCallable ImmClient::listProjectAPIsCallable(const ListProjectAPIsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listProjectAPIs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectImageTextsOutcome ImmClient::detectImageTexts(const DetectImageTextsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectImageTextsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectImageTextsOutcome(DetectImageTextsResult(outcome.result())); - else - return DetectImageTextsOutcome(outcome.error()); -} - -void ImmClient::detectImageTextsAsync(const DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectImageTexts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectImageTextsOutcomeCallable ImmClient::detectImageTextsCallable(const DetectImageTextsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectImageTexts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateGroupFacesJobOutcome ImmClient::createGroupFacesJob(const CreateGroupFacesJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateGroupFacesJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateGroupFacesJobOutcome(CreateGroupFacesJobResult(outcome.result())); - else - return CreateGroupFacesJobOutcome(outcome.error()); -} - -void ImmClient::createGroupFacesJobAsync(const CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createGroupFacesJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateGroupFacesJobOutcomeCallable ImmClient::createGroupFacesJobCallable(const CreateGroupFacesJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createGroupFacesJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListOfficeConversionTaskOutcome ImmClient::listOfficeConversionTask(const ListOfficeConversionTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListOfficeConversionTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListOfficeConversionTaskOutcome(ListOfficeConversionTaskResult(outcome.result())); - else - return ListOfficeConversionTaskOutcome(outcome.error()); -} - -void ImmClient::listOfficeConversionTaskAsync(const ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listOfficeConversionTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListOfficeConversionTaskOutcomeCallable ImmClient::listOfficeConversionTaskCallable(const ListOfficeConversionTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listOfficeConversionTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteVideoOutcome ImmClient::deleteVideo(const DeleteVideoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVideoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVideoOutcome(DeleteVideoResult(outcome.result())); - else - return DeleteVideoOutcome(outcome.error()); -} - -void ImmClient::deleteVideoAsync(const DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVideo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteVideoOutcomeCallable ImmClient::deleteVideoCallable(const DeleteVideoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVideo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListFaceGroupsOutcome ImmClient::listFaceGroups(const ListFaceGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFaceGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFaceGroupsOutcome(ListFaceGroupsResult(outcome.result())); - else - return ListFaceGroupsOutcome(outcome.error()); -} - -void ImmClient::listFaceGroupsAsync(const ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFaceGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListFaceGroupsOutcomeCallable ImmClient::listFaceGroupsCallable(const ListFaceGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFaceGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectImageTagsOutcome ImmClient::detectImageTags(const DetectImageTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectImageTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectImageTagsOutcome(DetectImageTagsResult(outcome.result())); - else - return DetectImageTagsOutcome(outcome.error()); -} - -void ImmClient::detectImageTagsAsync(const DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectImageTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectImageTagsOutcomeCallable ImmClient::detectImageTagsCallable(const DetectImageTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectImageTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListProjectsOutcome ImmClient::listProjects(const ListProjectsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListProjectsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListProjectsOutcome(ListProjectsResult(outcome.result())); - else - return ListProjectsOutcome(outcome.error()); -} - -void ImmClient::listProjectsAsync(const ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listProjects(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListProjectsOutcomeCallable ImmClient::listProjectsCallable(const ListProjectsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listProjects(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteSetOutcome ImmClient::deleteSet(const DeleteSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSetOutcome(DeleteSetResult(outcome.result())); - else - return DeleteSetOutcome(outcome.error()); -} - -void ImmClient::deleteSetAsync(const DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteSetOutcomeCallable ImmClient::deleteSetCallable(const DeleteSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetFaceSearchImageOutcome ImmClient::getFaceSearchImage(const GetFaceSearchImageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetFaceSearchImageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetFaceSearchImageOutcome(GetFaceSearchImageResult(outcome.result())); - else - return GetFaceSearchImageOutcome(outcome.error()); -} - -void ImmClient::getFaceSearchImageAsync(const GetFaceSearchImageRequest& request, const GetFaceSearchImageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getFaceSearchImage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetFaceSearchImageOutcomeCallable ImmClient::getFaceSearchImageCallable(const GetFaceSearchImageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getFaceSearchImage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectTagOutcome ImmClient::detectTag(const DetectTagRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectTagOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectTagOutcome(DetectTagResult(outcome.result())); - else - return DetectTagOutcome(outcome.error()); -} - -void ImmClient::detectTagAsync(const DetectTagRequest& request, const DetectTagAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectTag(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectTagOutcomeCallable ImmClient::detectTagCallable(const DetectTagRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectTag(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateCADConversionTaskOutcome ImmClient::createCADConversionTask(const CreateCADConversionTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateCADConversionTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateCADConversionTaskOutcome(CreateCADConversionTaskResult(outcome.result())); - else - return CreateCADConversionTaskOutcome(outcome.error()); -} - -void ImmClient::createCADConversionTaskAsync(const CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createCADConversionTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateCADConversionTaskOutcomeCallable ImmClient::createCADConversionTaskCallable(const CreateCADConversionTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createCADConversionTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteFaceJobOutcome ImmClient::deleteFaceJob(const DeleteFaceJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFaceJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFaceJobOutcome(DeleteFaceJobResult(outcome.result())); - else - return DeleteFaceJobOutcome(outcome.error()); -} - -void ImmClient::deleteFaceJobAsync(const DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFaceJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteFaceJobOutcomeCallable ImmClient::deleteFaceJobCallable(const DeleteFaceJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFaceJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetTagJobOutcome ImmClient::getTagJob(const GetTagJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetTagJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetTagJobOutcome(GetTagJobResult(outcome.result())); - else - return GetTagJobOutcome(outcome.error()); -} - -void ImmClient::getTagJobAsync(const GetTagJobRequest& request, const GetTagJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getTagJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetTagJobOutcomeCallable ImmClient::getTagJobCallable(const GetTagJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getTagJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateDocIndexTaskOutcome ImmClient::createDocIndexTask(const CreateDocIndexTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDocIndexTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDocIndexTaskOutcome(CreateDocIndexTaskResult(outcome.result())); - else - return CreateDocIndexTaskOutcome(outcome.error()); -} - -void ImmClient::createDocIndexTaskAsync(const CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDocIndexTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateDocIndexTaskOutcomeCallable ImmClient::createDocIndexTaskCallable(const CreateDocIndexTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDocIndexTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetVideoTaskOutcome ImmClient::getVideoTask(const GetVideoTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetVideoTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetVideoTaskOutcome(GetVideoTaskResult(outcome.result())); - else - return GetVideoTaskOutcome(outcome.error()); -} - -void ImmClient::getVideoTaskAsync(const GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getVideoTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetVideoTaskOutcomeCallable ImmClient::getVideoTaskCallable(const GetVideoTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getVideoTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetSetOutcome ImmClient::getSet(const GetSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSetOutcome(GetSetResult(outcome.result())); - else - return GetSetOutcome(outcome.error()); -} - -void ImmClient::getSetAsync(const GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetSetOutcomeCallable ImmClient::getSetCallable(const GetSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::SearchDocIndexOutcome ImmClient::searchDocIndex(const SearchDocIndexRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchDocIndexOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchDocIndexOutcome(SearchDocIndexResult(outcome.result())); - else - return SearchDocIndexOutcome(outcome.error()); -} - -void ImmClient::searchDocIndexAsync(const SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchDocIndex(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::SearchDocIndexOutcomeCallable ImmClient::searchDocIndexCallable(const SearchDocIndexRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchDocIndex(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListPhotoProcessTasksOutcome ImmClient::listPhotoProcessTasks(const ListPhotoProcessTasksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPhotoProcessTasksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPhotoProcessTasksOutcome(ListPhotoProcessTasksResult(outcome.result())); - else - return ListPhotoProcessTasksOutcome(outcome.error()); -} - -void ImmClient::listPhotoProcessTasksAsync(const ListPhotoProcessTasksRequest& request, const ListPhotoProcessTasksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPhotoProcessTasks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListPhotoProcessTasksOutcomeCallable ImmClient::listPhotoProcessTasksCallable(const ListPhotoProcessTasksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPhotoProcessTasks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListVideosOutcome ImmClient::listVideos(const ListVideosRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListVideosOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListVideosOutcome(ListVideosResult(outcome.result())); - else - return ListVideosOutcome(outcome.error()); -} - -void ImmClient::listVideosAsync(const ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listVideos(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListVideosOutcomeCallable ImmClient::listVideosCallable(const ListVideosRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listVideos(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreatePornBatchDetectJobOutcome ImmClient::createPornBatchDetectJob(const CreatePornBatchDetectJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreatePornBatchDetectJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreatePornBatchDetectJobOutcome(CreatePornBatchDetectJobResult(outcome.result())); - else - return CreatePornBatchDetectJobOutcome(outcome.error()); -} - -void ImmClient::createPornBatchDetectJobAsync(const CreatePornBatchDetectJobRequest& request, const CreatePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createPornBatchDetectJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreatePornBatchDetectJobOutcomeCallable ImmClient::createPornBatchDetectJobCallable(const CreatePornBatchDetectJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createPornBatchDetectJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteTagByNameOutcome ImmClient::deleteTagByName(const DeleteTagByNameRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteTagByNameOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteTagByNameOutcome(DeleteTagByNameResult(outcome.result())); - else - return DeleteTagByNameOutcome(outcome.error()); -} - -void ImmClient::deleteTagByNameAsync(const DeleteTagByNameRequest& request, const DeleteTagByNameAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteTagByName(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteTagByNameOutcomeCallable ImmClient::deleteTagByNameCallable(const DeleteTagByNameRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteTagByName(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeletePhotoProcessTaskOutcome ImmClient::deletePhotoProcessTask(const DeletePhotoProcessTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeletePhotoProcessTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeletePhotoProcessTaskOutcome(DeletePhotoProcessTaskResult(outcome.result())); - else - return DeletePhotoProcessTaskOutcome(outcome.error()); -} - -void ImmClient::deletePhotoProcessTaskAsync(const DeletePhotoProcessTaskRequest& request, const DeletePhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deletePhotoProcessTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeletePhotoProcessTaskOutcomeCallable ImmClient::deletePhotoProcessTaskCallable(const DeletePhotoProcessTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deletePhotoProcessTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListSetTagsOutcome ImmClient::listSetTags(const ListSetTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListSetTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListSetTagsOutcome(ListSetTagsResult(outcome.result())); - else - return ListSetTagsOutcome(outcome.error()); -} - -void ImmClient::listSetTagsAsync(const ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listSetTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListSetTagsOutcomeCallable ImmClient::listSetTagsCallable(const ListSetTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listSetTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteVideoTaskOutcome ImmClient::deleteVideoTask(const DeleteVideoTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVideoTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVideoTaskOutcome(DeleteVideoTaskResult(outcome.result())); - else - return DeleteVideoTaskOutcome(outcome.error()); -} - -void ImmClient::deleteVideoTaskAsync(const DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVideoTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteVideoTaskOutcomeCallable ImmClient::deleteVideoTaskCallable(const DeleteVideoTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVideoTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::FindImagesByTagNamesOutcome ImmClient::findImagesByTagNames(const FindImagesByTagNamesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FindImagesByTagNamesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FindImagesByTagNamesOutcome(FindImagesByTagNamesResult(outcome.result())); - else - return FindImagesByTagNamesOutcome(outcome.error()); -} - -void ImmClient::findImagesByTagNamesAsync(const FindImagesByTagNamesRequest& request, const FindImagesByTagNamesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, findImagesByTagNames(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::FindImagesByTagNamesOutcomeCallable ImmClient::findImagesByTagNamesCallable(const FindImagesByTagNamesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->findImagesByTagNames(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetImageOutcome ImmClient::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 ImmClient::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)); -} - -ImmClient::GetImageOutcomeCallable ImmClient::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(); -} - -ImmClient::GetMediaMetaOutcome ImmClient::getMediaMeta(const GetMediaMetaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetMediaMetaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetMediaMetaOutcome(GetMediaMetaResult(outcome.result())); - else - return GetMediaMetaOutcome(outcome.error()); -} - -void ImmClient::getMediaMetaAsync(const GetMediaMetaRequest& request, const GetMediaMetaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getMediaMeta(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetMediaMetaOutcomeCallable ImmClient::getMediaMetaCallable(const GetMediaMetaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getMediaMeta(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateSetOutcome ImmClient::createSet(const CreateSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSetOutcome(CreateSetResult(outcome.result())); - else - return CreateSetOutcome(outcome.error()); -} - -void ImmClient::createSetAsync(const CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateSetOutcomeCallable ImmClient::createSetCallable(const CreateSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ConvertOfficeFormatOutcome ImmClient::convertOfficeFormat(const ConvertOfficeFormatRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConvertOfficeFormatOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConvertOfficeFormatOutcome(ConvertOfficeFormatResult(outcome.result())); - else - return ConvertOfficeFormatOutcome(outcome.error()); -} - -void ImmClient::convertOfficeFormatAsync(const ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, convertOfficeFormat(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ConvertOfficeFormatOutcomeCallable ImmClient::convertOfficeFormatCallable(const ConvertOfficeFormatRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->convertOfficeFormat(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::UpdateFaceGroupOutcome ImmClient::updateFaceGroup(const UpdateFaceGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateFaceGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateFaceGroupOutcome(UpdateFaceGroupResult(outcome.result())); - else - return UpdateFaceGroupOutcome(outcome.error()); -} - -void ImmClient::updateFaceGroupAsync(const UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateFaceGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::UpdateFaceGroupOutcomeCallable ImmClient::updateFaceGroupCallable(const UpdateFaceGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateFaceGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectImageBodiesOutcome ImmClient::detectImageBodies(const DetectImageBodiesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectImageBodiesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectImageBodiesOutcome(DetectImageBodiesResult(outcome.result())); - else - return DetectImageBodiesOutcome(outcome.error()); -} - -void ImmClient::detectImageBodiesAsync(const DetectImageBodiesRequest& request, const DetectImageBodiesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectImageBodies(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectImageBodiesOutcomeCallable ImmClient::detectImageBodiesCallable(const DetectImageBodiesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectImageBodies(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteDocIndexOutcome ImmClient::deleteDocIndex(const DeleteDocIndexRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDocIndexOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDocIndexOutcome(DeleteDocIndexResult(outcome.result())); - else - return DeleteDocIndexOutcome(outcome.error()); -} - -void ImmClient::deleteDocIndexAsync(const DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDocIndex(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteDocIndexOutcomeCallable ImmClient::deleteDocIndexCallable(const DeleteDocIndexRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDocIndex(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetImageJobOutcome ImmClient::getImageJob(const GetImageJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetImageJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetImageJobOutcome(GetImageJobResult(outcome.result())); - else - return GetImageJobOutcome(outcome.error()); -} - -void ImmClient::getImageJobAsync(const GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getImageJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetImageJobOutcomeCallable ImmClient::getImageJobCallable(const GetImageJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getImageJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetDocIndexTaskOutcome ImmClient::getDocIndexTask(const GetDocIndexTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetDocIndexTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetDocIndexTaskOutcome(GetDocIndexTaskResult(outcome.result())); - else - return GetDocIndexTaskOutcome(outcome.error()); -} - -void ImmClient::getDocIndexTaskAsync(const GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getDocIndexTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetDocIndexTaskOutcomeCallable ImmClient::getDocIndexTaskCallable(const GetDocIndexTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getDocIndexTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteTagByUrlOutcome ImmClient::deleteTagByUrl(const DeleteTagByUrlRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteTagByUrlOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteTagByUrlOutcome(DeleteTagByUrlResult(outcome.result())); - else - return DeleteTagByUrlOutcome(outcome.error()); -} - -void ImmClient::deleteTagByUrlAsync(const DeleteTagByUrlRequest& request, const DeleteTagByUrlAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteTagByUrl(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteTagByUrlOutcomeCallable ImmClient::deleteTagByUrlCallable(const DeleteTagByUrlRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteTagByUrl(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListTagSetsOutcome ImmClient::listTagSets(const ListTagSetsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTagSetsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTagSetsOutcome(ListTagSetsResult(outcome.result())); - else - return ListTagSetsOutcome(outcome.error()); -} - -void ImmClient::listTagSetsAsync(const ListTagSetsRequest& request, const ListTagSetsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTagSets(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListTagSetsOutcomeCallable ImmClient::listTagSetsCallable(const ListTagSetsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTagSets(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectQRCodesOutcome ImmClient::detectQRCodes(const DetectQRCodesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectQRCodesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectQRCodesOutcome(DetectQRCodesResult(outcome.result())); - else - return DetectQRCodesOutcome(outcome.error()); -} - -void ImmClient::detectQRCodesAsync(const DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectQRCodes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectQRCodesOutcomeCallable ImmClient::detectQRCodesCallable(const DetectQRCodesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectQRCodes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetVideoOutcome ImmClient::getVideo(const GetVideoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetVideoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetVideoOutcome(GetVideoResult(outcome.result())); - else - return GetVideoOutcome(outcome.error()); -} - -void ImmClient::getVideoAsync(const GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getVideo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetVideoOutcomeCallable ImmClient::getVideoCallable(const GetVideoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getVideo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListImagesOutcome ImmClient::listImages(const ListImagesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListImagesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListImagesOutcome(ListImagesResult(outcome.result())); - else - return ListImagesOutcome(outcome.error()); -} - -void ImmClient::listImagesAsync(const ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listImages(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListImagesOutcomeCallable ImmClient::listImagesCallable(const ListImagesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listImages(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteOfficeConversionTaskOutcome ImmClient::deleteOfficeConversionTask(const DeleteOfficeConversionTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteOfficeConversionTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteOfficeConversionTaskOutcome(DeleteOfficeConversionTaskResult(outcome.result())); - else - return DeleteOfficeConversionTaskOutcome(outcome.error()); -} - -void ImmClient::deleteOfficeConversionTaskAsync(const DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteOfficeConversionTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteOfficeConversionTaskOutcomeCallable ImmClient::deleteOfficeConversionTaskCallable(const DeleteOfficeConversionTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteOfficeConversionTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetPhotoProcessTaskOutcome ImmClient::getPhotoProcessTask(const GetPhotoProcessTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPhotoProcessTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPhotoProcessTaskOutcome(GetPhotoProcessTaskResult(outcome.result())); - else - return GetPhotoProcessTaskOutcome(outcome.error()); -} - -void ImmClient::getPhotoProcessTaskAsync(const GetPhotoProcessTaskRequest& request, const GetPhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPhotoProcessTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetPhotoProcessTaskOutcomeCallable ImmClient::getPhotoProcessTaskCallable(const GetPhotoProcessTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPhotoProcessTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListVideoFramesOutcome ImmClient::listVideoFrames(const ListVideoFramesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListVideoFramesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListVideoFramesOutcome(ListVideoFramesResult(outcome.result())); - else - return ListVideoFramesOutcome(outcome.error()); -} - -void ImmClient::listVideoFramesAsync(const ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listVideoFrames(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListVideoFramesOutcomeCallable ImmClient::listVideoFramesCallable(const ListVideoFramesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listVideoFrames(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetPornBatchDetectJobOutcome ImmClient::getPornBatchDetectJob(const GetPornBatchDetectJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPornBatchDetectJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPornBatchDetectJobOutcome(GetPornBatchDetectJobResult(outcome.result())); - else - return GetPornBatchDetectJobOutcome(outcome.error()); -} - -void ImmClient::getPornBatchDetectJobAsync(const GetPornBatchDetectJobRequest& request, const GetPornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPornBatchDetectJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetPornBatchDetectJobOutcomeCallable ImmClient::getPornBatchDetectJobCallable(const GetPornBatchDetectJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPornBatchDetectJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectLogoOutcome ImmClient::detectLogo(const DetectLogoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectLogoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectLogoOutcome(DetectLogoResult(outcome.result())); - else - return DetectLogoOutcome(outcome.error()); -} - -void ImmClient::detectLogoAsync(const DetectLogoRequest& request, const DetectLogoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectLogo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectLogoOutcomeCallable ImmClient::detectLogoCallable(const DetectLogoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectLogo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DetectClothesOutcome ImmClient::detectClothes(const DetectClothesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectClothesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectClothesOutcome(DetectClothesResult(outcome.result())); - else - return DetectClothesOutcome(outcome.error()); -} - -void ImmClient::detectClothesAsync(const DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectClothes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DetectClothesOutcomeCallable ImmClient::detectClothesCallable(const DetectClothesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectClothes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListTagJobsOutcome ImmClient::listTagJobs(const ListTagJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTagJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTagJobsOutcome(ListTagJobsResult(outcome.result())); - else - return ListTagJobsOutcome(outcome.error()); -} - -void ImmClient::listTagJobsAsync(const ListTagJobsRequest& request, const ListTagJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTagJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListTagJobsOutcomeCallable ImmClient::listTagJobsCallable(const ListTagJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTagJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DescribeRegionsOutcome ImmClient::describeRegions(const DescribeRegionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRegionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); - else - return DescribeRegionsOutcome(outcome.error()); -} - -void ImmClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRegions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DescribeRegionsOutcomeCallable ImmClient::describeRegionsCallable(const DescribeRegionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRegions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::FindSimilarFacesOutcome ImmClient::findSimilarFaces(const FindSimilarFacesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FindSimilarFacesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FindSimilarFacesOutcome(FindSimilarFacesResult(outcome.result())); - else - return FindSimilarFacesOutcome(outcome.error()); -} - -void ImmClient::findSimilarFacesAsync(const FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, findSimilarFaces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::FindSimilarFacesOutcomeCallable ImmClient::findSimilarFacesCallable(const FindSimilarFacesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->findSimilarFaces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteImageJobOutcome ImmClient::deleteImageJob(const DeleteImageJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteImageJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteImageJobOutcome(DeleteImageJobResult(outcome.result())); - else - return DeleteImageJobOutcome(outcome.error()); -} - -void ImmClient::deleteImageJobAsync(const DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteImageJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteImageJobOutcomeCallable ImmClient::deleteImageJobCallable(const DeleteImageJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteImageJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::DeleteFaceSearchGroupOutcome ImmClient::deleteFaceSearchGroup(const DeleteFaceSearchGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFaceSearchGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFaceSearchGroupOutcome(DeleteFaceSearchGroupResult(outcome.result())); - else - return DeleteFaceSearchGroupOutcome(outcome.error()); -} - -void ImmClient::deleteFaceSearchGroupAsync(const DeleteFaceSearchGroupRequest& request, const DeleteFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFaceSearchGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteFaceSearchGroupOutcomeCallable ImmClient::deleteFaceSearchGroupCallable(const DeleteFaceSearchGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFaceSearchGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetDocIndexOutcome ImmClient::getDocIndex(const GetDocIndexRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetDocIndexOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetDocIndexOutcome(GetDocIndexResult(outcome.result())); - else - return GetDocIndexOutcome(outcome.error()); -} - -void ImmClient::getDocIndexAsync(const GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getDocIndex(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetDocIndexOutcomeCallable ImmClient::getDocIndexCallable(const GetDocIndexRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getDocIndex(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::IndexImageOutcome ImmClient::indexImage(const IndexImageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return IndexImageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return IndexImageOutcome(IndexImageResult(outcome.result())); - else - return IndexImageOutcome(outcome.error()); -} - -void ImmClient::indexImageAsync(const IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, indexImage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::IndexImageOutcomeCallable ImmClient::indexImageCallable(const IndexImageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->indexImage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::ListImageJobsOutcome ImmClient::listImageJobs(const ListImageJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListImageJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListImageJobsOutcome(ListImageJobsResult(outcome.result())); - else - return ListImageJobsOutcome(outcome.error()); -} - -void ImmClient::listImageJobsAsync(const ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listImageJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListImageJobsOutcomeCallable ImmClient::listImageJobsCallable(const ListImageJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listImageJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::UpdateImageOutcome ImmClient::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 ImmClient::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)); -} - -ImmClient::UpdateImageOutcomeCallable ImmClient::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(); -} - -ImmClient::ListVideoTasksOutcome ImmClient::listVideoTasks(const ListVideoTasksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListVideoTasksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListVideoTasksOutcome(ListVideoTasksResult(outcome.result())); - else - return ListVideoTasksOutcome(outcome.error()); -} - -void ImmClient::listVideoTasksAsync(const ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listVideoTasks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListVideoTasksOutcomeCallable ImmClient::listVideoTasksCallable(const ListVideoTasksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listVideoTasks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::CreateVideoCompressTaskOutcome ImmClient::createVideoCompressTask(const CreateVideoCompressTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateVideoCompressTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateVideoCompressTaskOutcome(CreateVideoCompressTaskResult(outcome.result())); - else - return CreateVideoCompressTaskOutcome(outcome.error()); -} - -void ImmClient::createVideoCompressTaskAsync(const CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createVideoCompressTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::CreateVideoCompressTaskOutcomeCallable ImmClient::createVideoCompressTaskCallable(const CreateVideoCompressTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createVideoCompressTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::UpdateProjectOutcome ImmClient::updateProject(const UpdateProjectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateProjectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateProjectOutcome(UpdateProjectResult(outcome.result())); - else - return UpdateProjectOutcome(outcome.error()); -} - -void ImmClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateProject(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::UpdateProjectOutcomeCallable ImmClient::updateProjectCallable(const UpdateProjectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateProject(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::UpdateSetOutcome ImmClient::updateSet(const UpdateSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateSetOutcome(UpdateSetResult(outcome.result())); - else - return UpdateSetOutcome(outcome.error()); -} - -void ImmClient::updateSetAsync(const UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::UpdateSetOutcomeCallable ImmClient::updateSetCallable(const UpdateSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +namespace +{ + const std::string SERVICE_NAME = "imm"; +} + +ImmClient::ImmClient(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, "imm"); +} + +ImmClient::ImmClient(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, "imm"); +} + +ImmClient::ImmClient(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, "imm"); +} + +ImmClient::~ImmClient() +{} + +ImmClient::DetectImageFacesOutcome ImmClient::detectImageFaces(const DetectImageFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageFacesOutcome(DetectImageFacesResult(outcome.result())); + else + return DetectImageFacesOutcome(outcome.error()); +} + +void ImmClient::detectImageFacesAsync(const DetectImageFacesRequest& request, const DetectImageFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageFacesOutcomeCallable ImmClient::detectImageFacesCallable(const DetectImageFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListPornBatchDetectJobsOutcome ImmClient::listPornBatchDetectJobs(const ListPornBatchDetectJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPornBatchDetectJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPornBatchDetectJobsOutcome(ListPornBatchDetectJobsResult(outcome.result())); + else + return ListPornBatchDetectJobsOutcome(outcome.error()); +} + +void ImmClient::listPornBatchDetectJobsAsync(const ListPornBatchDetectJobsRequest& request, const ListPornBatchDetectJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPornBatchDetectJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListPornBatchDetectJobsOutcomeCallable ImmClient::listPornBatchDetectJobsCallable(const ListPornBatchDetectJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPornBatchDetectJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteImageOutcome ImmClient::deleteImage(const DeleteImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageOutcome(DeleteImageResult(outcome.result())); + else + return DeleteImageOutcome(outcome.error()); +} + +void ImmClient::deleteImageAsync(const DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteImageOutcomeCallable ImmClient::deleteImageCallable(const DeleteImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::IndexTagOutcome ImmClient::indexTag(const IndexTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexTagOutcome(IndexTagResult(outcome.result())); + else + return IndexTagOutcome(outcome.error()); +} + +void ImmClient::indexTagAsync(const IndexTagRequest& request, const IndexTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexTagOutcomeCallable ImmClient::indexTagCallable(const IndexTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateTagJobOutcome ImmClient::createTagJob(const CreateTagJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagJobOutcome(CreateTagJobResult(outcome.result())); + else + return CreateTagJobOutcome(outcome.error()); +} + +void ImmClient::createTagJobAsync(const CreateTagJobRequest& request, const CreateTagJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTagJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateTagJobOutcomeCallable ImmClient::createTagJobCallable(const CreateTagJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTagJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateVideoAnalyseTaskOutcome ImmClient::createVideoAnalyseTask(const CreateVideoAnalyseTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVideoAnalyseTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVideoAnalyseTaskOutcome(CreateVideoAnalyseTaskResult(outcome.result())); + else + return CreateVideoAnalyseTaskOutcome(outcome.error()); +} + +void ImmClient::createVideoAnalyseTaskAsync(const CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVideoAnalyseTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateVideoAnalyseTaskOutcomeCallable ImmClient::createVideoAnalyseTaskCallable(const CreateVideoAnalyseTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVideoAnalyseTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CompareFaceOutcome ImmClient::compareFace(const CompareFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompareFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompareFaceOutcome(CompareFaceResult(outcome.result())); + else + return CompareFaceOutcome(outcome.error()); +} + +void ImmClient::compareFaceAsync(const CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, compareFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CompareFaceOutcomeCallable ImmClient::compareFaceCallable(const CompareFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->compareFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListFaceSearchGroupUsersOutcome ImmClient::listFaceSearchGroupUsers(const ListFaceSearchGroupUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceSearchGroupUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceSearchGroupUsersOutcome(ListFaceSearchGroupUsersResult(outcome.result())); + else + return ListFaceSearchGroupUsersOutcome(outcome.error()); +} + +void ImmClient::listFaceSearchGroupUsersAsync(const ListFaceSearchGroupUsersRequest& request, const ListFaceSearchGroupUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceSearchGroupUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceSearchGroupUsersOutcomeCallable ImmClient::listFaceSearchGroupUsersCallable(const ListFaceSearchGroupUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceSearchGroupUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListFaceSearchGroupImagesOutcome ImmClient::listFaceSearchGroupImages(const ListFaceSearchGroupImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceSearchGroupImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceSearchGroupImagesOutcome(ListFaceSearchGroupImagesResult(outcome.result())); + else + return ListFaceSearchGroupImagesOutcome(outcome.error()); +} + +void ImmClient::listFaceSearchGroupImagesAsync(const ListFaceSearchGroupImagesRequest& request, const ListFaceSearchGroupImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceSearchGroupImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceSearchGroupImagesOutcomeCallable ImmClient::listFaceSearchGroupImagesCallable(const ListFaceSearchGroupImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceSearchGroupImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListSetsOutcome ImmClient::listSets(const ListSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSetsOutcome(ListSetsResult(outcome.result())); + else + return ListSetsOutcome(outcome.error()); +} + +void ImmClient::listSetsAsync(const ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListSetsOutcomeCallable ImmClient::listSetsCallable(const ListSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::PutProjectOutcome ImmClient::putProject(const PutProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutProjectOutcome(PutProjectResult(outcome.result())); + else + return PutProjectOutcome(outcome.error()); +} + +void ImmClient::putProjectAsync(const PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::PutProjectOutcomeCallable ImmClient::putProjectCallable(const PutProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindImagesOutcome ImmClient::findImages(const FindImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindImagesOutcome(FindImagesResult(outcome.result())); + else + return FindImagesOutcome(outcome.error()); +} + +void ImmClient::findImagesAsync(const FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindImagesOutcomeCallable ImmClient::findImagesCallable(const FindImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageLogosOutcome ImmClient::detectImageLogos(const DetectImageLogosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageLogosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageLogosOutcome(DetectImageLogosResult(outcome.result())); + else + return DetectImageLogosOutcome(outcome.error()); +} + +void ImmClient::detectImageLogosAsync(const DetectImageLogosRequest& request, const DetectImageLogosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageLogos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageLogosOutcomeCallable ImmClient::detectImageLogosCallable(const DetectImageLogosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageLogos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetProjectOutcome ImmClient::getProject(const GetProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectOutcome(GetProjectResult(outcome.result())); + else + return GetProjectOutcome(outcome.error()); +} + +void ImmClient::getProjectAsync(const GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetProjectOutcomeCallable ImmClient::getProjectCallable(const GetProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagSetOutcome ImmClient::deleteTagSet(const DeleteTagSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagSetOutcome(DeleteTagSetResult(outcome.result())); + else + return DeleteTagSetOutcome(outcome.error()); +} + +void ImmClient::deleteTagSetAsync(const DeleteTagSetRequest& request, const DeleteTagSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagSetOutcomeCallable ImmClient::deleteTagSetCallable(const DeleteTagSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteProjectOutcome ImmClient::deleteProject(const DeleteProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectOutcome(DeleteProjectResult(outcome.result())); + else + return DeleteProjectOutcome(outcome.error()); +} + +void ImmClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteProjectOutcomeCallable ImmClient::deleteProjectCallable(const DeleteProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateDocIndexMetaOutcome ImmClient::updateDocIndexMeta(const UpdateDocIndexMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDocIndexMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDocIndexMetaOutcome(UpdateDocIndexMetaResult(outcome.result())); + else + return UpdateDocIndexMetaOutcome(outcome.error()); +} + +void ImmClient::updateDocIndexMetaAsync(const UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDocIndexMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateDocIndexMetaOutcomeCallable ImmClient::updateDocIndexMetaCallable(const UpdateDocIndexMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDocIndexMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::SearchFaceOutcome ImmClient::searchFace(const SearchFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchFaceOutcome(SearchFaceResult(outcome.result())); + else + return SearchFaceOutcome(outcome.error()); +} + +void ImmClient::searchFaceAsync(const SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::SearchFaceOutcomeCallable ImmClient::searchFaceCallable(const SearchFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageCelebrityOutcome ImmClient::detectImageCelebrity(const DetectImageCelebrityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageCelebrityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageCelebrityOutcome(DetectImageCelebrityResult(outcome.result())); + else + return DetectImageCelebrityOutcome(outcome.error()); +} + +void ImmClient::detectImageCelebrityAsync(const DetectImageCelebrityRequest& request, const DetectImageCelebrityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageCelebrity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageCelebrityOutcomeCallable ImmClient::detectImageCelebrityCallable(const DetectImageCelebrityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageCelebrity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListFaceSearchGroupsOutcome ImmClient::listFaceSearchGroups(const ListFaceSearchGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceSearchGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceSearchGroupsOutcome(ListFaceSearchGroupsResult(outcome.result())); + else + return ListFaceSearchGroupsOutcome(outcome.error()); +} + +void ImmClient::listFaceSearchGroupsAsync(const ListFaceSearchGroupsRequest& request, const ListFaceSearchGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceSearchGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceSearchGroupsOutcomeCallable ImmClient::listFaceSearchGroupsCallable(const ListFaceSearchGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceSearchGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeletePornBatchDetectJobOutcome ImmClient::deletePornBatchDetectJob(const DeletePornBatchDetectJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePornBatchDetectJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePornBatchDetectJobOutcome(DeletePornBatchDetectJobResult(outcome.result())); + else + return DeletePornBatchDetectJobOutcome(outcome.error()); +} + +void ImmClient::deletePornBatchDetectJobAsync(const DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePornBatchDetectJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeletePornBatchDetectJobOutcomeCallable ImmClient::deletePornBatchDetectJobCallable(const DeletePornBatchDetectJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePornBatchDetectJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetTagSetOutcome ImmClient::getTagSet(const GetTagSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTagSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTagSetOutcome(GetTagSetResult(outcome.result())); + else + return GetTagSetOutcome(outcome.error()); +} + +void ImmClient::getTagSetAsync(const GetTagSetRequest& request, const GetTagSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTagSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetTagSetOutcomeCallable ImmClient::getTagSetCallable(const GetTagSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTagSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagPhotosOutcome ImmClient::listTagPhotos(const ListTagPhotosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagPhotosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagPhotosOutcome(ListTagPhotosResult(outcome.result())); + else + return ListTagPhotosOutcome(outcome.error()); +} + +void ImmClient::listTagPhotosAsync(const ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagPhotos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagPhotosOutcomeCallable ImmClient::listTagPhotosCallable(const ListTagPhotosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagPhotos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceSearchImageByIdOutcome ImmClient::deleteFaceSearchImageById(const DeleteFaceSearchImageByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceSearchImageByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceSearchImageByIdOutcome(DeleteFaceSearchImageByIdResult(outcome.result())); + else + return DeleteFaceSearchImageByIdOutcome(outcome.error()); +} + +void ImmClient::deleteFaceSearchImageByIdAsync(const DeleteFaceSearchImageByIdRequest& request, const DeleteFaceSearchImageByIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceSearchImageById(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceSearchImageByIdOutcomeCallable ImmClient::deleteFaceSearchImageByIdCallable(const DeleteFaceSearchImageByIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceSearchImageById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::IndexVideoOutcome ImmClient::indexVideo(const IndexVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexVideoOutcome(IndexVideoResult(outcome.result())); + else + return IndexVideoOutcome(outcome.error()); +} + +void ImmClient::indexVideoAsync(const IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexVideoOutcomeCallable ImmClient::indexVideoCallable(const IndexVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideoAudiosOutcome ImmClient::listVideoAudios(const ListVideoAudiosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoAudiosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoAudiosOutcome(ListVideoAudiosResult(outcome.result())); + else + return ListVideoAudiosOutcome(outcome.error()); +} + +void ImmClient::listVideoAudiosAsync(const ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoAudios(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoAudiosOutcomeCallable ImmClient::listVideoAudiosCallable(const ListVideoAudiosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoAudios(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateMergeFaceGroupsJobOutcome ImmClient::createMergeFaceGroupsJob(const CreateMergeFaceGroupsJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMergeFaceGroupsJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMergeFaceGroupsJobOutcome(CreateMergeFaceGroupsJobResult(outcome.result())); + else + return CreateMergeFaceGroupsJobOutcome(outcome.error()); +} + +void ImmClient::createMergeFaceGroupsJobAsync(const CreateMergeFaceGroupsJobRequest& request, const CreateMergeFaceGroupsJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMergeFaceGroupsJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateMergeFaceGroupsJobOutcomeCallable ImmClient::createMergeFaceGroupsJobCallable(const CreateMergeFaceGroupsJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMergeFaceGroupsJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagNamesOutcome ImmClient::listTagNames(const ListTagNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagNamesOutcome(ListTagNamesResult(outcome.result())); + else + return ListTagNamesOutcome(outcome.error()); +} + +void ImmClient::listTagNamesAsync(const ListTagNamesRequest& request, const ListTagNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagNamesOutcomeCallable ImmClient::listTagNamesCallable(const ListTagNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateOfficeConversionTaskOutcome ImmClient::createOfficeConversionTask(const CreateOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOfficeConversionTaskOutcome(CreateOfficeConversionTaskResult(outcome.result())); + else + return CreateOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::createOfficeConversionTaskAsync(const CreateOfficeConversionTaskRequest& request, const CreateOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateOfficeConversionTaskOutcomeCallable ImmClient::createOfficeConversionTaskCallable(const CreateOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetFaceSearchGroupOutcome ImmClient::getFaceSearchGroup(const GetFaceSearchGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFaceSearchGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFaceSearchGroupOutcome(GetFaceSearchGroupResult(outcome.result())); + else + return GetFaceSearchGroupOutcome(outcome.error()); +} + +void ImmClient::getFaceSearchGroupAsync(const GetFaceSearchGroupRequest& request, const GetFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFaceSearchGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetFaceSearchGroupOutcomeCallable ImmClient::getFaceSearchGroupCallable(const GetFaceSearchGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFaceSearchGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CompareImageFacesOutcome ImmClient::compareImageFaces(const CompareImageFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompareImageFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompareImageFacesOutcome(CompareImageFacesResult(outcome.result())); + else + return CompareImageFacesOutcome(outcome.error()); +} + +void ImmClient::compareImageFacesAsync(const CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, compareImageFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CompareImageFacesOutcomeCallable ImmClient::compareImageFacesCallable(const CompareImageFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->compareImageFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagJobOutcome ImmClient::deleteTagJob(const DeleteTagJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagJobOutcome(DeleteTagJobResult(outcome.result())); + else + return DeleteTagJobOutcome(outcome.error()); +} + +void ImmClient::deleteTagJobAsync(const DeleteTagJobRequest& request, const DeleteTagJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagJobOutcomeCallable ImmClient::deleteTagJobCallable(const DeleteTagJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::PhotoProcessOutcome ImmClient::photoProcess(const PhotoProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhotoProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhotoProcessOutcome(PhotoProcessResult(outcome.result())); + else + return PhotoProcessOutcome(outcome.error()); +} + +void ImmClient::photoProcessAsync(const PhotoProcessRequest& request, const PhotoProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, photoProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::PhotoProcessOutcomeCallable ImmClient::photoProcessCallable(const PhotoProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->photoProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceSearchUserOutcome ImmClient::deleteFaceSearchUser(const DeleteFaceSearchUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceSearchUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceSearchUserOutcome(DeleteFaceSearchUserResult(outcome.result())); + else + return DeleteFaceSearchUserOutcome(outcome.error()); +} + +void ImmClient::deleteFaceSearchUserAsync(const DeleteFaceSearchUserRequest& request, const DeleteFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceSearchUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceSearchUserOutcomeCallable ImmClient::deleteFaceSearchUserCallable(const DeleteFaceSearchUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceSearchUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetOfficeConversionTaskOutcome ImmClient::getOfficeConversionTask(const GetOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOfficeConversionTaskOutcome(GetOfficeConversionTaskResult(outcome.result())); + else + return GetOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::getOfficeConversionTaskAsync(const GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetOfficeConversionTaskOutcomeCallable ImmClient::getOfficeConversionTaskCallable(const GetOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateTagSetOutcome ImmClient::createTagSet(const CreateTagSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagSetOutcome(CreateTagSetResult(outcome.result())); + else + return CreateTagSetOutcome(outcome.error()); +} + +void ImmClient::createTagSetAsync(const CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTagSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const CreateTagSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTagSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::RegistFaceOutcome ImmClient::registFace(const RegistFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RegistFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RegistFaceOutcome(RegistFaceResult(outcome.result())); + else + return RegistFaceOutcome(outcome.error()); +} + +void ImmClient::registFaceAsync(const RegistFaceRequest& request, const RegistFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, registFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::RegistFaceOutcomeCallable ImmClient::registFaceCallable(const RegistFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->registFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetFaceSearchUserOutcome ImmClient::getFaceSearchUser(const GetFaceSearchUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFaceSearchUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFaceSearchUserOutcome(GetFaceSearchUserResult(outcome.result())); + else + return GetFaceSearchUserOutcome(outcome.error()); +} + +void ImmClient::getFaceSearchUserAsync(const GetFaceSearchUserRequest& request, const GetFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFaceSearchUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetFaceSearchUserOutcomeCallable ImmClient::getFaceSearchUserCallable(const GetFaceSearchUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFaceSearchUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateFaceSetOutcome ImmClient::createFaceSet(const CreateFaceSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFaceSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFaceSetOutcome(CreateFaceSetResult(outcome.result())); + else + return CreateFaceSetOutcome(outcome.error()); +} + +void ImmClient::createFaceSetAsync(const CreateFaceSetRequest& request, const CreateFaceSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFaceSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateFaceSetOutcomeCallable ImmClient::createFaceSetCallable(const CreateFaceSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFaceSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListProjectAPIsOutcome ImmClient::listProjectAPIs(const ListProjectAPIsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectAPIsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectAPIsOutcome(ListProjectAPIsResult(outcome.result())); + else + return ListProjectAPIsOutcome(outcome.error()); +} + +void ImmClient::listProjectAPIsAsync(const ListProjectAPIsRequest& request, const ListProjectAPIsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectAPIs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListProjectAPIsOutcomeCallable ImmClient::listProjectAPIsCallable(const ListProjectAPIsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectAPIs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageTextsOutcome ImmClient::detectImageTexts(const DetectImageTextsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageTextsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageTextsOutcome(DetectImageTextsResult(outcome.result())); + else + return DetectImageTextsOutcome(outcome.error()); +} + +void ImmClient::detectImageTextsAsync(const DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageTexts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageTextsOutcomeCallable ImmClient::detectImageTextsCallable(const DetectImageTextsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageTexts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateGroupFacesJobOutcome ImmClient::createGroupFacesJob(const CreateGroupFacesJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGroupFacesJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGroupFacesJobOutcome(CreateGroupFacesJobResult(outcome.result())); + else + return CreateGroupFacesJobOutcome(outcome.error()); +} + +void ImmClient::createGroupFacesJobAsync(const CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGroupFacesJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateGroupFacesJobOutcomeCallable ImmClient::createGroupFacesJobCallable(const CreateGroupFacesJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGroupFacesJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteVideoOutcome ImmClient::deleteVideo(const DeleteVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoOutcome(DeleteVideoResult(outcome.result())); + else + return DeleteVideoOutcome(outcome.error()); +} + +void ImmClient::deleteVideoAsync(const DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteVideoOutcomeCallable ImmClient::deleteVideoCallable(const DeleteVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListOfficeConversionTaskOutcome ImmClient::listOfficeConversionTask(const ListOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOfficeConversionTaskOutcome(ListOfficeConversionTaskResult(outcome.result())); + else + return ListOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::listOfficeConversionTaskAsync(const ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListOfficeConversionTaskOutcomeCallable ImmClient::listOfficeConversionTaskCallable(const ListOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListFaceGroupsOutcome ImmClient::listFaceGroups(const ListFaceGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceGroupsOutcome(ListFaceGroupsResult(outcome.result())); + else + return ListFaceGroupsOutcome(outcome.error()); +} + +void ImmClient::listFaceGroupsAsync(const ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceGroupsOutcomeCallable ImmClient::listFaceGroupsCallable(const ListFaceGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageTagsOutcome ImmClient::detectImageTags(const DetectImageTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageTagsOutcome(DetectImageTagsResult(outcome.result())); + else + return DetectImageTagsOutcome(outcome.error()); +} + +void ImmClient::detectImageTagsAsync(const DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageTagsOutcomeCallable ImmClient::detectImageTagsCallable(const DetectImageTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListProjectsOutcome ImmClient::listProjects(const ListProjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectsOutcome(ListProjectsResult(outcome.result())); + else + return ListProjectsOutcome(outcome.error()); +} + +void ImmClient::listProjectsAsync(const ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListProjectsOutcomeCallable ImmClient::listProjectsCallable(const ListProjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteSetOutcome ImmClient::deleteSet(const DeleteSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSetOutcome(DeleteSetResult(outcome.result())); + else + return DeleteSetOutcome(outcome.error()); +} + +void ImmClient::deleteSetAsync(const DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteSetOutcomeCallable ImmClient::deleteSetCallable(const DeleteSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetFaceSearchImageOutcome ImmClient::getFaceSearchImage(const GetFaceSearchImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFaceSearchImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFaceSearchImageOutcome(GetFaceSearchImageResult(outcome.result())); + else + return GetFaceSearchImageOutcome(outcome.error()); +} + +void ImmClient::getFaceSearchImageAsync(const GetFaceSearchImageRequest& request, const GetFaceSearchImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFaceSearchImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetFaceSearchImageOutcomeCallable ImmClient::getFaceSearchImageCallable(const GetFaceSearchImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFaceSearchImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectTagOutcome ImmClient::detectTag(const DetectTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectTagOutcome(DetectTagResult(outcome.result())); + else + return DetectTagOutcome(outcome.error()); +} + +void ImmClient::detectTagAsync(const DetectTagRequest& request, const DetectTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectTagOutcomeCallable ImmClient::detectTagCallable(const DetectTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateCADConversionTaskOutcome ImmClient::createCADConversionTask(const CreateCADConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCADConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCADConversionTaskOutcome(CreateCADConversionTaskResult(outcome.result())); + else + return CreateCADConversionTaskOutcome(outcome.error()); +} + +void ImmClient::createCADConversionTaskAsync(const CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCADConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateCADConversionTaskOutcomeCallable ImmClient::createCADConversionTaskCallable(const CreateCADConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCADConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceJobOutcome ImmClient::deleteFaceJob(const DeleteFaceJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceJobOutcome(DeleteFaceJobResult(outcome.result())); + else + return DeleteFaceJobOutcome(outcome.error()); +} + +void ImmClient::deleteFaceJobAsync(const DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceJobOutcomeCallable ImmClient::deleteFaceJobCallable(const DeleteFaceJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetTagJobOutcome ImmClient::getTagJob(const GetTagJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTagJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTagJobOutcome(GetTagJobResult(outcome.result())); + else + return GetTagJobOutcome(outcome.error()); +} + +void ImmClient::getTagJobAsync(const GetTagJobRequest& request, const GetTagJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTagJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetTagJobOutcomeCallable ImmClient::getTagJobCallable(const GetTagJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTagJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateDocIndexTaskOutcome ImmClient::createDocIndexTask(const CreateDocIndexTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDocIndexTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDocIndexTaskOutcome(CreateDocIndexTaskResult(outcome.result())); + else + return CreateDocIndexTaskOutcome(outcome.error()); +} + +void ImmClient::createDocIndexTaskAsync(const CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDocIndexTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateDocIndexTaskOutcomeCallable ImmClient::createDocIndexTaskCallable(const CreateDocIndexTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDocIndexTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetVideoTaskOutcome ImmClient::getVideoTask(const GetVideoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVideoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVideoTaskOutcome(GetVideoTaskResult(outcome.result())); + else + return GetVideoTaskOutcome(outcome.error()); +} + +void ImmClient::getVideoTaskAsync(const GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVideoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetVideoTaskOutcomeCallable ImmClient::getVideoTaskCallable(const GetVideoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVideoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetSetOutcome ImmClient::getSet(const GetSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSetOutcome(GetSetResult(outcome.result())); + else + return GetSetOutcome(outcome.error()); +} + +void ImmClient::getSetAsync(const GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetSetOutcomeCallable ImmClient::getSetCallable(const GetSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::SearchDocIndexOutcome ImmClient::searchDocIndex(const SearchDocIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchDocIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchDocIndexOutcome(SearchDocIndexResult(outcome.result())); + else + return SearchDocIndexOutcome(outcome.error()); +} + +void ImmClient::searchDocIndexAsync(const SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchDocIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::SearchDocIndexOutcomeCallable ImmClient::searchDocIndexCallable(const SearchDocIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchDocIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListPhotoProcessTasksOutcome ImmClient::listPhotoProcessTasks(const ListPhotoProcessTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPhotoProcessTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPhotoProcessTasksOutcome(ListPhotoProcessTasksResult(outcome.result())); + else + return ListPhotoProcessTasksOutcome(outcome.error()); +} + +void ImmClient::listPhotoProcessTasksAsync(const ListPhotoProcessTasksRequest& request, const ListPhotoProcessTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPhotoProcessTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListPhotoProcessTasksOutcomeCallable ImmClient::listPhotoProcessTasksCallable(const ListPhotoProcessTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPhotoProcessTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideosOutcome ImmClient::listVideos(const ListVideosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideosOutcome(ListVideosResult(outcome.result())); + else + return ListVideosOutcome(outcome.error()); +} + +void ImmClient::listVideosAsync(const ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideosOutcomeCallable ImmClient::listVideosCallable(const ListVideosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreatePornBatchDetectJobOutcome ImmClient::createPornBatchDetectJob(const CreatePornBatchDetectJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePornBatchDetectJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePornBatchDetectJobOutcome(CreatePornBatchDetectJobResult(outcome.result())); + else + return CreatePornBatchDetectJobOutcome(outcome.error()); +} + +void ImmClient::createPornBatchDetectJobAsync(const CreatePornBatchDetectJobRequest& request, const CreatePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPornBatchDetectJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreatePornBatchDetectJobOutcomeCallable ImmClient::createPornBatchDetectJobCallable(const CreatePornBatchDetectJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPornBatchDetectJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagByNameOutcome ImmClient::deleteTagByName(const DeleteTagByNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagByNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagByNameOutcome(DeleteTagByNameResult(outcome.result())); + else + return DeleteTagByNameOutcome(outcome.error()); +} + +void ImmClient::deleteTagByNameAsync(const DeleteTagByNameRequest& request, const DeleteTagByNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagByName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagByNameOutcomeCallable ImmClient::deleteTagByNameCallable(const DeleteTagByNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagByName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeletePhotoProcessTaskOutcome ImmClient::deletePhotoProcessTask(const DeletePhotoProcessTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePhotoProcessTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePhotoProcessTaskOutcome(DeletePhotoProcessTaskResult(outcome.result())); + else + return DeletePhotoProcessTaskOutcome(outcome.error()); +} + +void ImmClient::deletePhotoProcessTaskAsync(const DeletePhotoProcessTaskRequest& request, const DeletePhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePhotoProcessTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeletePhotoProcessTaskOutcomeCallable ImmClient::deletePhotoProcessTaskCallable(const DeletePhotoProcessTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePhotoProcessTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListSetTagsOutcome ImmClient::listSetTags(const ListSetTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSetTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSetTagsOutcome(ListSetTagsResult(outcome.result())); + else + return ListSetTagsOutcome(outcome.error()); +} + +void ImmClient::listSetTagsAsync(const ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSetTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListSetTagsOutcomeCallable ImmClient::listSetTagsCallable(const ListSetTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSetTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteVideoTaskOutcome ImmClient::deleteVideoTask(const DeleteVideoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoTaskOutcome(DeleteVideoTaskResult(outcome.result())); + else + return DeleteVideoTaskOutcome(outcome.error()); +} + +void ImmClient::deleteVideoTaskAsync(const DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteVideoTaskOutcomeCallable ImmClient::deleteVideoTaskCallable(const DeleteVideoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindImagesByTagNamesOutcome ImmClient::findImagesByTagNames(const FindImagesByTagNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindImagesByTagNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindImagesByTagNamesOutcome(FindImagesByTagNamesResult(outcome.result())); + else + return FindImagesByTagNamesOutcome(outcome.error()); +} + +void ImmClient::findImagesByTagNamesAsync(const FindImagesByTagNamesRequest& request, const FindImagesByTagNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findImagesByTagNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindImagesByTagNamesOutcomeCallable ImmClient::findImagesByTagNamesCallable(const FindImagesByTagNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findImagesByTagNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetImageOutcome ImmClient::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 ImmClient::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)); +} + +ImmClient::GetImageOutcomeCallable ImmClient::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(); +} + +ImmClient::GetMediaMetaOutcome ImmClient::getMediaMeta(const GetMediaMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMediaMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMediaMetaOutcome(GetMediaMetaResult(outcome.result())); + else + return GetMediaMetaOutcome(outcome.error()); +} + +void ImmClient::getMediaMetaAsync(const GetMediaMetaRequest& request, const GetMediaMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMediaMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetMediaMetaOutcomeCallable ImmClient::getMediaMetaCallable(const GetMediaMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMediaMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateSetOutcome ImmClient::createSet(const CreateSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSetOutcome(CreateSetResult(outcome.result())); + else + return CreateSetOutcome(outcome.error()); +} + +void ImmClient::createSetAsync(const CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateSetOutcomeCallable ImmClient::createSetCallable(const CreateSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ConvertOfficeFormatOutcome ImmClient::convertOfficeFormat(const ConvertOfficeFormatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConvertOfficeFormatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConvertOfficeFormatOutcome(ConvertOfficeFormatResult(outcome.result())); + else + return ConvertOfficeFormatOutcome(outcome.error()); +} + +void ImmClient::convertOfficeFormatAsync(const ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, convertOfficeFormat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ConvertOfficeFormatOutcomeCallable ImmClient::convertOfficeFormatCallable(const ConvertOfficeFormatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->convertOfficeFormat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateFaceGroupOutcome ImmClient::updateFaceGroup(const UpdateFaceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFaceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFaceGroupOutcome(UpdateFaceGroupResult(outcome.result())); + else + return UpdateFaceGroupOutcome(outcome.error()); +} + +void ImmClient::updateFaceGroupAsync(const UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFaceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateFaceGroupOutcomeCallable ImmClient::updateFaceGroupCallable(const UpdateFaceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFaceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageBodiesOutcome ImmClient::detectImageBodies(const DetectImageBodiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageBodiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageBodiesOutcome(DetectImageBodiesResult(outcome.result())); + else + return DetectImageBodiesOutcome(outcome.error()); +} + +void ImmClient::detectImageBodiesAsync(const DetectImageBodiesRequest& request, const DetectImageBodiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageBodies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageBodiesOutcomeCallable ImmClient::detectImageBodiesCallable(const DetectImageBodiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageBodies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteDocIndexOutcome ImmClient::deleteDocIndex(const DeleteDocIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDocIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDocIndexOutcome(DeleteDocIndexResult(outcome.result())); + else + return DeleteDocIndexOutcome(outcome.error()); +} + +void ImmClient::deleteDocIndexAsync(const DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDocIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteDocIndexOutcomeCallable ImmClient::deleteDocIndexCallable(const DeleteDocIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDocIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetImageJobOutcome ImmClient::getImageJob(const GetImageJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageJobOutcome(GetImageJobResult(outcome.result())); + else + return GetImageJobOutcome(outcome.error()); +} + +void ImmClient::getImageJobAsync(const GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImageJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetImageJobOutcomeCallable ImmClient::getImageJobCallable(const GetImageJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImageJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetDocIndexTaskOutcome ImmClient::getDocIndexTask(const GetDocIndexTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDocIndexTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDocIndexTaskOutcome(GetDocIndexTaskResult(outcome.result())); + else + return GetDocIndexTaskOutcome(outcome.error()); +} + +void ImmClient::getDocIndexTaskAsync(const GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDocIndexTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetDocIndexTaskOutcomeCallable ImmClient::getDocIndexTaskCallable(const GetDocIndexTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDocIndexTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagByUrlOutcome ImmClient::deleteTagByUrl(const DeleteTagByUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagByUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagByUrlOutcome(DeleteTagByUrlResult(outcome.result())); + else + return DeleteTagByUrlOutcome(outcome.error()); +} + +void ImmClient::deleteTagByUrlAsync(const DeleteTagByUrlRequest& request, const DeleteTagByUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagByUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagByUrlOutcomeCallable ImmClient::deleteTagByUrlCallable(const DeleteTagByUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagByUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagSetsOutcome ImmClient::listTagSets(const ListTagSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagSetsOutcome(ListTagSetsResult(outcome.result())); + else + return ListTagSetsOutcome(outcome.error()); +} + +void ImmClient::listTagSetsAsync(const ListTagSetsRequest& request, const ListTagSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagSetsOutcomeCallable ImmClient::listTagSetsCallable(const ListTagSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectQRCodesOutcome ImmClient::detectQRCodes(const DetectQRCodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectQRCodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectQRCodesOutcome(DetectQRCodesResult(outcome.result())); + else + return DetectQRCodesOutcome(outcome.error()); +} + +void ImmClient::detectQRCodesAsync(const DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectQRCodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectQRCodesOutcomeCallable ImmClient::detectQRCodesCallable(const DetectQRCodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectQRCodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetVideoOutcome ImmClient::getVideo(const GetVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVideoOutcome(GetVideoResult(outcome.result())); + else + return GetVideoOutcome(outcome.error()); +} + +void ImmClient::getVideoAsync(const GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetVideoOutcomeCallable ImmClient::getVideoCallable(const GetVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListImagesOutcome ImmClient::listImages(const ListImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImagesOutcome(ListImagesResult(outcome.result())); + else + return ListImagesOutcome(outcome.error()); +} + +void ImmClient::listImagesAsync(const ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListImagesOutcomeCallable ImmClient::listImagesCallable(const ListImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteOfficeConversionTaskOutcome ImmClient::deleteOfficeConversionTask(const DeleteOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOfficeConversionTaskOutcome(DeleteOfficeConversionTaskResult(outcome.result())); + else + return DeleteOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::deleteOfficeConversionTaskAsync(const DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteOfficeConversionTaskOutcomeCallable ImmClient::deleteOfficeConversionTaskCallable(const DeleteOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetPhotoProcessTaskOutcome ImmClient::getPhotoProcessTask(const GetPhotoProcessTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPhotoProcessTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPhotoProcessTaskOutcome(GetPhotoProcessTaskResult(outcome.result())); + else + return GetPhotoProcessTaskOutcome(outcome.error()); +} + +void ImmClient::getPhotoProcessTaskAsync(const GetPhotoProcessTaskRequest& request, const GetPhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPhotoProcessTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetPhotoProcessTaskOutcomeCallable ImmClient::getPhotoProcessTaskCallable(const GetPhotoProcessTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPhotoProcessTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideoFramesOutcome ImmClient::listVideoFrames(const ListVideoFramesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoFramesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoFramesOutcome(ListVideoFramesResult(outcome.result())); + else + return ListVideoFramesOutcome(outcome.error()); +} + +void ImmClient::listVideoFramesAsync(const ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoFrames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoFramesOutcomeCallable ImmClient::listVideoFramesCallable(const ListVideoFramesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoFrames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetPornBatchDetectJobOutcome ImmClient::getPornBatchDetectJob(const GetPornBatchDetectJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPornBatchDetectJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPornBatchDetectJobOutcome(GetPornBatchDetectJobResult(outcome.result())); + else + return GetPornBatchDetectJobOutcome(outcome.error()); +} + +void ImmClient::getPornBatchDetectJobAsync(const GetPornBatchDetectJobRequest& request, const GetPornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPornBatchDetectJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetPornBatchDetectJobOutcomeCallable ImmClient::getPornBatchDetectJobCallable(const GetPornBatchDetectJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPornBatchDetectJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectClothesOutcome ImmClient::detectClothes(const DetectClothesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectClothesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectClothesOutcome(DetectClothesResult(outcome.result())); + else + return DetectClothesOutcome(outcome.error()); +} + +void ImmClient::detectClothesAsync(const DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectClothes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectClothesOutcomeCallable ImmClient::detectClothesCallable(const DetectClothesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectClothes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagJobsOutcome ImmClient::listTagJobs(const ListTagJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagJobsOutcome(ListTagJobsResult(outcome.result())); + else + return ListTagJobsOutcome(outcome.error()); +} + +void ImmClient::listTagJobsAsync(const ListTagJobsRequest& request, const ListTagJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagJobsOutcomeCallable ImmClient::listTagJobsCallable(const ListTagJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectLogoOutcome ImmClient::detectLogo(const DetectLogoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectLogoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectLogoOutcome(DetectLogoResult(outcome.result())); + else + return DetectLogoOutcome(outcome.error()); +} + +void ImmClient::detectLogoAsync(const DetectLogoRequest& request, const DetectLogoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectLogo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectLogoOutcomeCallable ImmClient::detectLogoCallable(const DetectLogoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectLogo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DescribeRegionsOutcome ImmClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void ImmClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DescribeRegionsOutcomeCallable ImmClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindSimilarFacesOutcome ImmClient::findSimilarFaces(const FindSimilarFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindSimilarFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindSimilarFacesOutcome(FindSimilarFacesResult(outcome.result())); + else + return FindSimilarFacesOutcome(outcome.error()); +} + +void ImmClient::findSimilarFacesAsync(const FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findSimilarFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindSimilarFacesOutcomeCallable ImmClient::findSimilarFacesCallable(const FindSimilarFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findSimilarFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteImageJobOutcome ImmClient::deleteImageJob(const DeleteImageJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageJobOutcome(DeleteImageJobResult(outcome.result())); + else + return DeleteImageJobOutcome(outcome.error()); +} + +void ImmClient::deleteImageJobAsync(const DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImageJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteImageJobOutcomeCallable ImmClient::deleteImageJobCallable(const DeleteImageJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImageJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceSearchGroupOutcome ImmClient::deleteFaceSearchGroup(const DeleteFaceSearchGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceSearchGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceSearchGroupOutcome(DeleteFaceSearchGroupResult(outcome.result())); + else + return DeleteFaceSearchGroupOutcome(outcome.error()); +} + +void ImmClient::deleteFaceSearchGroupAsync(const DeleteFaceSearchGroupRequest& request, const DeleteFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceSearchGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceSearchGroupOutcomeCallable ImmClient::deleteFaceSearchGroupCallable(const DeleteFaceSearchGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceSearchGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetDocIndexOutcome ImmClient::getDocIndex(const GetDocIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDocIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDocIndexOutcome(GetDocIndexResult(outcome.result())); + else + return GetDocIndexOutcome(outcome.error()); +} + +void ImmClient::getDocIndexAsync(const GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDocIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetDocIndexOutcomeCallable ImmClient::getDocIndexCallable(const GetDocIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDocIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::IndexImageOutcome ImmClient::indexImage(const IndexImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexImageOutcome(IndexImageResult(outcome.result())); + else + return IndexImageOutcome(outcome.error()); +} + +void ImmClient::indexImageAsync(const IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexImageOutcomeCallable ImmClient::indexImageCallable(const IndexImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListImageJobsOutcome ImmClient::listImageJobs(const ListImageJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImageJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImageJobsOutcome(ListImageJobsResult(outcome.result())); + else + return ListImageJobsOutcome(outcome.error()); +} + +void ImmClient::listImageJobsAsync(const ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImageJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListImageJobsOutcomeCallable ImmClient::listImageJobsCallable(const ListImageJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImageJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateImageOutcome ImmClient::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 ImmClient::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)); +} + +ImmClient::UpdateImageOutcomeCallable ImmClient::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(); +} + +ImmClient::ListVideoTasksOutcome ImmClient::listVideoTasks(const ListVideoTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoTasksOutcome(ListVideoTasksResult(outcome.result())); + else + return ListVideoTasksOutcome(outcome.error()); +} + +void ImmClient::listVideoTasksAsync(const ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoTasksOutcomeCallable ImmClient::listVideoTasksCallable(const ListVideoTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateVideoCompressTaskOutcome ImmClient::createVideoCompressTask(const CreateVideoCompressTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVideoCompressTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVideoCompressTaskOutcome(CreateVideoCompressTaskResult(outcome.result())); + else + return CreateVideoCompressTaskOutcome(outcome.error()); +} + +void ImmClient::createVideoCompressTaskAsync(const CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVideoCompressTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateVideoCompressTaskOutcomeCallable ImmClient::createVideoCompressTaskCallable(const CreateVideoCompressTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVideoCompressTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateProjectOutcome ImmClient::updateProject(const UpdateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectOutcome(UpdateProjectResult(outcome.result())); + else + return UpdateProjectOutcome(outcome.error()); +} + +void ImmClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateProjectOutcomeCallable ImmClient::updateProjectCallable(const UpdateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateSetOutcome ImmClient::updateSet(const UpdateSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSetOutcome(UpdateSetResult(outcome.result())); + else + return UpdateSetOutcome(outcome.error()); +} + +void ImmClient::updateSetAsync(const UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateSetOutcomeCallable ImmClient::updateSetCallable(const UpdateSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/imm/src/model/CompareFaceRequest.cc b/imm/src/model/CompareFaceRequest.cc index 6b9a5d747..fb206f730 100644 --- a/imm/src/model/CompareFaceRequest.cc +++ b/imm/src/model/CompareFaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CompareFaceRequest; - -CompareFaceRequest::CompareFaceRequest() : - RpcServiceRequest("imm", "2017-09-06", "CompareFace") -{} - -CompareFaceRequest::~CompareFaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CompareFaceRequest; + +CompareFaceRequest::CompareFaceRequest() : + RpcServiceRequest("imm", "2017-09-06", "CompareFace") +{} + +CompareFaceRequest::~CompareFaceRequest() +{} + std::string CompareFaceRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/CompareFaceResult.cc b/imm/src/model/CompareFaceResult.cc index d600762db..5ea49b4d8 100644 --- a/imm/src/model/CompareFaceResult.cc +++ b/imm/src/model/CompareFaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CompareFaceResult::CompareFaceResult() : - ServiceResult() -{} - -CompareFaceResult::CompareFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CompareFaceResult::~CompareFaceResult() -{} - -void CompareFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CompareFaceResult::CompareFaceResult() : + ServiceResult() +{} + +CompareFaceResult::CompareFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CompareFaceResult::~CompareFaceResult() +{} + +void CompareFaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCompareResult = value["CompareResult"]["CompareResultItem"]; for (auto value : allCompareResult) { @@ -60,9 +63,9 @@ void CompareFaceResult::parse(const std::string &payload) compareResultObject.faceB.axis1.push_back(value.asString()); compareResult_.push_back(compareResultObject); } - -} - + +} + std::vector CompareFaceResult::getCompareResult()const { return compareResult_; diff --git a/imm/src/model/CompareImageFacesRequest.cc b/imm/src/model/CompareImageFacesRequest.cc index c383b6337..0c23287c0 100644 --- a/imm/src/model/CompareImageFacesRequest.cc +++ b/imm/src/model/CompareImageFacesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CompareImageFacesRequest; - -CompareImageFacesRequest::CompareImageFacesRequest() : - RpcServiceRequest("imm", "2017-09-06", "CompareImageFaces") -{} - -CompareImageFacesRequest::~CompareImageFacesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CompareImageFacesRequest; + +CompareImageFacesRequest::CompareImageFacesRequest() : + RpcServiceRequest("imm", "2017-09-06", "CompareImageFaces") +{} + +CompareImageFacesRequest::~CompareImageFacesRequest() +{} + std::string CompareImageFacesRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/CompareImageFacesResult.cc b/imm/src/model/CompareImageFacesResult.cc index 1432b355f..5d17d3a2d 100644 --- a/imm/src/model/CompareImageFacesResult.cc +++ b/imm/src/model/CompareImageFacesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CompareImageFacesResult::CompareImageFacesResult() : - ServiceResult() -{} - -CompareImageFacesResult::CompareImageFacesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CompareImageFacesResult::~CompareImageFacesResult() -{} - -void CompareImageFacesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CompareImageFacesResult::CompareImageFacesResult() : + ServiceResult() +{} + +CompareImageFacesResult::CompareImageFacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CompareImageFacesResult::~CompareImageFacesResult() +{} + +void CompareImageFacesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto faceANode = value["FaceA"]; if(!faceANode["FaceId"].isNull()) faceA_.faceId = faceANode["FaceId"].asString(); @@ -70,9 +73,9 @@ void CompareImageFacesResult::parse(const std::string &payload) setId_ = value["SetId"].asString(); if(!value["Similarity"].isNull()) similarity_ = std::stof(value["Similarity"].asString()); - -} - + +} + float CompareImageFacesResult::getSimilarity()const { return similarity_; diff --git a/imm/src/model/ConvertOfficeFormatRequest.cc b/imm/src/model/ConvertOfficeFormatRequest.cc index 904780ad4..6f433ea5a 100644 --- a/imm/src/model/ConvertOfficeFormatRequest.cc +++ b/imm/src/model/ConvertOfficeFormatRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ConvertOfficeFormatRequest; - -ConvertOfficeFormatRequest::ConvertOfficeFormatRequest() : - RpcServiceRequest("imm", "2017-09-06", "ConvertOfficeFormat") -{} - -ConvertOfficeFormatRequest::~ConvertOfficeFormatRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ConvertOfficeFormatRequest; + +ConvertOfficeFormatRequest::ConvertOfficeFormatRequest() : + RpcServiceRequest("imm", "2017-09-06", "ConvertOfficeFormat") +{} + +ConvertOfficeFormatRequest::~ConvertOfficeFormatRequest() +{} + std::string ConvertOfficeFormatRequest::getSrcType()const { return srcType_; diff --git a/imm/src/model/ConvertOfficeFormatResult.cc b/imm/src/model/ConvertOfficeFormatResult.cc index 050a8c6b3..6047639ca 100644 --- a/imm/src/model/ConvertOfficeFormatResult.cc +++ b/imm/src/model/ConvertOfficeFormatResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ConvertOfficeFormatResult::ConvertOfficeFormatResult() : - ServiceResult() -{} - -ConvertOfficeFormatResult::ConvertOfficeFormatResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConvertOfficeFormatResult::~ConvertOfficeFormatResult() -{} - -void ConvertOfficeFormatResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ConvertOfficeFormatResult::ConvertOfficeFormatResult() : + ServiceResult() +{} + +ConvertOfficeFormatResult::ConvertOfficeFormatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConvertOfficeFormatResult::~ConvertOfficeFormatResult() +{} + +void ConvertOfficeFormatResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["PageCount"].isNull()) pageCount_ = std::stoi(value["PageCount"].asString()); - -} - + +} + int ConvertOfficeFormatResult::getPageCount()const { return pageCount_; diff --git a/imm/src/model/CreateCADConversionTaskRequest.cc b/imm/src/model/CreateCADConversionTaskRequest.cc index e970ee0c4..28aa39b44 100644 --- a/imm/src/model/CreateCADConversionTaskRequest.cc +++ b/imm/src/model/CreateCADConversionTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateCADConversionTaskRequest; - -CreateCADConversionTaskRequest::CreateCADConversionTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateCADConversionTask") -{} - -CreateCADConversionTaskRequest::~CreateCADConversionTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateCADConversionTaskRequest; + +CreateCADConversionTaskRequest::CreateCADConversionTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateCADConversionTask") +{} + +CreateCADConversionTaskRequest::~CreateCADConversionTaskRequest() +{} + std::string CreateCADConversionTaskRequest::getSrcType()const { return srcType_; diff --git a/imm/src/model/CreateCADConversionTaskResult.cc b/imm/src/model/CreateCADConversionTaskResult.cc index 102fa22af..7fd5492e8 100644 --- a/imm/src/model/CreateCADConversionTaskResult.cc +++ b/imm/src/model/CreateCADConversionTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateCADConversionTaskResult::CreateCADConversionTaskResult() : - ServiceResult() -{} - -CreateCADConversionTaskResult::CreateCADConversionTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCADConversionTaskResult::~CreateCADConversionTaskResult() -{} - -void CreateCADConversionTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateCADConversionTaskResult::CreateCADConversionTaskResult() : + ServiceResult() +{} + +CreateCADConversionTaskResult::CreateCADConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCADConversionTaskResult::~CreateCADConversionTaskResult() +{} + +void CreateCADConversionTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["TgtLoc"].isNull()) @@ -50,9 +53,9 @@ void CreateCADConversionTaskResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["Percent"].isNull()) percent_ = std::stoi(value["Percent"].asString()); - -} - + +} + std::string CreateCADConversionTaskResult::getStatus()const { return status_; diff --git a/imm/src/model/CreateDocIndexTaskRequest.cc b/imm/src/model/CreateDocIndexTaskRequest.cc index b6a2723d8..15728f63e 100644 --- a/imm/src/model/CreateDocIndexTaskRequest.cc +++ b/imm/src/model/CreateDocIndexTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateDocIndexTaskRequest; - -CreateDocIndexTaskRequest::CreateDocIndexTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateDocIndexTask") -{} - -CreateDocIndexTaskRequest::~CreateDocIndexTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateDocIndexTaskRequest; + +CreateDocIndexTaskRequest::CreateDocIndexTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateDocIndexTask") +{} + +CreateDocIndexTaskRequest::~CreateDocIndexTaskRequest() +{} + std::string CreateDocIndexTaskRequest::getCustomKey1()const { return customKey1_; diff --git a/imm/src/model/CreateDocIndexTaskResult.cc b/imm/src/model/CreateDocIndexTaskResult.cc index 3a50eb868..d5a4864ac 100644 --- a/imm/src/model/CreateDocIndexTaskResult.cc +++ b/imm/src/model/CreateDocIndexTaskResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateDocIndexTaskResult::CreateDocIndexTaskResult() : - ServiceResult() -{} - -CreateDocIndexTaskResult::CreateDocIndexTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDocIndexTaskResult::~CreateDocIndexTaskResult() -{} - -void CreateDocIndexTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateDocIndexTaskResult::CreateDocIndexTaskResult() : + ServiceResult() +{} + +CreateDocIndexTaskResult::CreateDocIndexTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDocIndexTaskResult::~CreateDocIndexTaskResult() +{} + +void CreateDocIndexTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); - -} - + +} + std::string CreateDocIndexTaskResult::getStatus()const { return status_; diff --git a/imm/src/model/CreateFaceSetRequest.cc b/imm/src/model/CreateFaceSetRequest.cc index 24b5edb10..8debaefd2 100644 --- a/imm/src/model/CreateFaceSetRequest.cc +++ b/imm/src/model/CreateFaceSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateFaceSetRequest; - -CreateFaceSetRequest::CreateFaceSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateFaceSet") -{} - -CreateFaceSetRequest::~CreateFaceSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateFaceSetRequest; + +CreateFaceSetRequest::CreateFaceSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateFaceSet") +{} + +CreateFaceSetRequest::~CreateFaceSetRequest() +{} + std::string CreateFaceSetRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/CreateFaceSetResult.cc b/imm/src/model/CreateFaceSetResult.cc index 7aedd24f8..a4591aef3 100644 --- a/imm/src/model/CreateFaceSetResult.cc +++ b/imm/src/model/CreateFaceSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateFaceSetResult::CreateFaceSetResult() : - ServiceResult() -{} - -CreateFaceSetResult::CreateFaceSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateFaceSetResult::~CreateFaceSetResult() -{} - -void CreateFaceSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateFaceSetResult::CreateFaceSetResult() : + ServiceResult() +{} + +CreateFaceSetResult::CreateFaceSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFaceSetResult::~CreateFaceSetResult() +{} + +void CreateFaceSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["Status"].isNull()) @@ -52,9 +55,9 @@ void CreateFaceSetResult::parse(const std::string &payload) modifyTime_ = value["ModifyTime"].asString(); if(!value["Faces"].isNull()) faces_ = std::stol(value["Faces"].asString()); - -} - + +} + std::string CreateFaceSetResult::getStatus()const { return status_; diff --git a/imm/src/model/CreateGroupFacesJobRequest.cc b/imm/src/model/CreateGroupFacesJobRequest.cc index f828326b5..3d460752a 100644 --- a/imm/src/model/CreateGroupFacesJobRequest.cc +++ b/imm/src/model/CreateGroupFacesJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateGroupFacesJobRequest; - -CreateGroupFacesJobRequest::CreateGroupFacesJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateGroupFacesJob") -{} - -CreateGroupFacesJobRequest::~CreateGroupFacesJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateGroupFacesJobRequest; + +CreateGroupFacesJobRequest::CreateGroupFacesJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateGroupFacesJob") +{} + +CreateGroupFacesJobRequest::~CreateGroupFacesJobRequest() +{} + std::string CreateGroupFacesJobRequest::getNotifyTopicName()const { return notifyTopicName_; diff --git a/imm/src/model/CreateGroupFacesJobResult.cc b/imm/src/model/CreateGroupFacesJobResult.cc index 11137a870..e73d99b26 100644 --- a/imm/src/model/CreateGroupFacesJobResult.cc +++ b/imm/src/model/CreateGroupFacesJobResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateGroupFacesJobResult::CreateGroupFacesJobResult() : - ServiceResult() -{} - -CreateGroupFacesJobResult::CreateGroupFacesJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateGroupFacesJobResult::~CreateGroupFacesJobResult() -{} - -void CreateGroupFacesJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateGroupFacesJobResult::CreateGroupFacesJobResult() : + ServiceResult() +{} + +CreateGroupFacesJobResult::CreateGroupFacesJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGroupFacesJobResult::~CreateGroupFacesJobResult() +{} + +void CreateGroupFacesJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["JobType"].isNull()) jobType_ = value["JobType"].asString(); - -} - + +} + std::string CreateGroupFacesJobResult::getJobType()const { return jobType_; diff --git a/imm/src/model/CreateMergeFaceGroupsJobRequest.cc b/imm/src/model/CreateMergeFaceGroupsJobRequest.cc index f35ccdd29..3b1540313 100644 --- a/imm/src/model/CreateMergeFaceGroupsJobRequest.cc +++ b/imm/src/model/CreateMergeFaceGroupsJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateMergeFaceGroupsJobRequest; - -CreateMergeFaceGroupsJobRequest::CreateMergeFaceGroupsJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateMergeFaceGroupsJob") -{} - -CreateMergeFaceGroupsJobRequest::~CreateMergeFaceGroupsJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateMergeFaceGroupsJobRequest; + +CreateMergeFaceGroupsJobRequest::CreateMergeFaceGroupsJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateMergeFaceGroupsJob") +{} + +CreateMergeFaceGroupsJobRequest::~CreateMergeFaceGroupsJobRequest() +{} + std::string CreateMergeFaceGroupsJobRequest::getGroupIdFrom()const { return groupIdFrom_; diff --git a/imm/src/model/CreateMergeFaceGroupsJobResult.cc b/imm/src/model/CreateMergeFaceGroupsJobResult.cc index 8dfa1a4f0..37537e7cf 100644 --- a/imm/src/model/CreateMergeFaceGroupsJobResult.cc +++ b/imm/src/model/CreateMergeFaceGroupsJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateMergeFaceGroupsJobResult::CreateMergeFaceGroupsJobResult() : - ServiceResult() -{} - -CreateMergeFaceGroupsJobResult::CreateMergeFaceGroupsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMergeFaceGroupsJobResult::~CreateMergeFaceGroupsJobResult() -{} - -void CreateMergeFaceGroupsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateMergeFaceGroupsJobResult::CreateMergeFaceGroupsJobResult() : + ServiceResult() +{} + +CreateMergeFaceGroupsJobResult::CreateMergeFaceGroupsJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMergeFaceGroupsJobResult::~CreateMergeFaceGroupsJobResult() +{} + +void CreateMergeFaceGroupsJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); if(!value["SetId"].isNull()) @@ -50,9 +53,9 @@ void CreateMergeFaceGroupsJobResult::parse(const std::string &payload) groupIdTo_ = value["GroupIdTo"].asString(); if(!value["GroupIdFrom"].isNull()) groupIdFrom_ = value["GroupIdFrom"].asString(); - -} - + +} + std::string CreateMergeFaceGroupsJobResult::getGroupIdFrom()const { return groupIdFrom_; diff --git a/imm/src/model/CreateOfficeConversionTaskRequest.cc b/imm/src/model/CreateOfficeConversionTaskRequest.cc index 145d21178..f10ec61e0 100644 --- a/imm/src/model/CreateOfficeConversionTaskRequest.cc +++ b/imm/src/model/CreateOfficeConversionTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateOfficeConversionTaskRequest; - -CreateOfficeConversionTaskRequest::CreateOfficeConversionTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateOfficeConversionTask") -{} - -CreateOfficeConversionTaskRequest::~CreateOfficeConversionTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateOfficeConversionTaskRequest; + +CreateOfficeConversionTaskRequest::CreateOfficeConversionTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateOfficeConversionTask") +{} + +CreateOfficeConversionTaskRequest::~CreateOfficeConversionTaskRequest() +{} + std::string CreateOfficeConversionTaskRequest::getSrcType()const { return srcType_; diff --git a/imm/src/model/CreateOfficeConversionTaskResult.cc b/imm/src/model/CreateOfficeConversionTaskResult.cc index c9a641b93..c743cea84 100644 --- a/imm/src/model/CreateOfficeConversionTaskResult.cc +++ b/imm/src/model/CreateOfficeConversionTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateOfficeConversionTaskResult::CreateOfficeConversionTaskResult() : - ServiceResult() -{} - -CreateOfficeConversionTaskResult::CreateOfficeConversionTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateOfficeConversionTaskResult::~CreateOfficeConversionTaskResult() -{} - -void CreateOfficeConversionTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateOfficeConversionTaskResult::CreateOfficeConversionTaskResult() : + ServiceResult() +{} + +CreateOfficeConversionTaskResult::CreateOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOfficeConversionTaskResult::~CreateOfficeConversionTaskResult() +{} + +void CreateOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["TgtLoc"].isNull()) @@ -50,9 +53,9 @@ void CreateOfficeConversionTaskResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["Percent"].isNull()) percent_ = std::stoi(value["Percent"].asString()); - -} - + +} + std::string CreateOfficeConversionTaskResult::getStatus()const { return status_; diff --git a/imm/src/model/CreatePornBatchDetectJobRequest.cc b/imm/src/model/CreatePornBatchDetectJobRequest.cc index 40e68cfd6..ff563ba1e 100644 --- a/imm/src/model/CreatePornBatchDetectJobRequest.cc +++ b/imm/src/model/CreatePornBatchDetectJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreatePornBatchDetectJobRequest; - -CreatePornBatchDetectJobRequest::CreatePornBatchDetectJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreatePornBatchDetectJob") -{} - -CreatePornBatchDetectJobRequest::~CreatePornBatchDetectJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreatePornBatchDetectJobRequest; + +CreatePornBatchDetectJobRequest::CreatePornBatchDetectJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreatePornBatchDetectJob") +{} + +CreatePornBatchDetectJobRequest::~CreatePornBatchDetectJobRequest() +{} + std::string CreatePornBatchDetectJobRequest::getNotifyTopicName()const { return notifyTopicName_; diff --git a/imm/src/model/CreatePornBatchDetectJobResult.cc b/imm/src/model/CreatePornBatchDetectJobResult.cc index 17e939f8f..75de1d755 100644 --- a/imm/src/model/CreatePornBatchDetectJobResult.cc +++ b/imm/src/model/CreatePornBatchDetectJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreatePornBatchDetectJobResult::CreatePornBatchDetectJobResult() : - ServiceResult() -{} - -CreatePornBatchDetectJobResult::CreatePornBatchDetectJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreatePornBatchDetectJobResult::~CreatePornBatchDetectJobResult() -{} - -void CreatePornBatchDetectJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreatePornBatchDetectJobResult::CreatePornBatchDetectJobResult() : + ServiceResult() +{} + +CreatePornBatchDetectJobResult::CreatePornBatchDetectJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePornBatchDetectJobResult::~CreatePornBatchDetectJobResult() +{} + +void CreatePornBatchDetectJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); if(!value["TgtLoc"].isNull()) @@ -50,9 +53,9 @@ void CreatePornBatchDetectJobResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["Percent"].isNull()) percent_ = std::stoi(value["Percent"].asString()); - -} - + +} + std::string CreatePornBatchDetectJobResult::getStatus()const { return status_; diff --git a/imm/src/model/CreateSetRequest.cc b/imm/src/model/CreateSetRequest.cc index 3938f21e0..322701d4b 100644 --- a/imm/src/model/CreateSetRequest.cc +++ b/imm/src/model/CreateSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateSetRequest; - -CreateSetRequest::CreateSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateSet") -{} - -CreateSetRequest::~CreateSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateSetRequest; + +CreateSetRequest::CreateSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateSet") +{} + +CreateSetRequest::~CreateSetRequest() +{} + std::string CreateSetRequest::getSetName()const { return setName_; diff --git a/imm/src/model/CreateSetResult.cc b/imm/src/model/CreateSetResult.cc index 9f388be5f..7176b7f04 100644 --- a/imm/src/model/CreateSetResult.cc +++ b/imm/src/model/CreateSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateSetResult::CreateSetResult() : - ServiceResult() -{} - -CreateSetResult::CreateSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSetResult::~CreateSetResult() -{} - -void CreateSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateSetResult::CreateSetResult() : + ServiceResult() +{} + +CreateSetResult::CreateSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSetResult::~CreateSetResult() +{} + +void CreateSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["SetName"].isNull()) @@ -56,9 +59,9 @@ void CreateSetResult::parse(const std::string &payload) videoCount_ = std::stoi(value["VideoCount"].asString()); if(!value["VideoLength"].isNull()) videoLength_ = std::stoi(value["VideoLength"].asString()); - -} - + +} + std::string CreateSetResult::getModifyTime()const { return modifyTime_; diff --git a/imm/src/model/CreateTagJobRequest.cc b/imm/src/model/CreateTagJobRequest.cc index 32e1ebe54..b0b0125c9 100644 --- a/imm/src/model/CreateTagJobRequest.cc +++ b/imm/src/model/CreateTagJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateTagJobRequest; - -CreateTagJobRequest::CreateTagJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateTagJob") -{} - -CreateTagJobRequest::~CreateTagJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateTagJobRequest; + +CreateTagJobRequest::CreateTagJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateTagJob") +{} + +CreateTagJobRequest::~CreateTagJobRequest() +{} + std::string CreateTagJobRequest::getNotifyTopicName()const { return notifyTopicName_; diff --git a/imm/src/model/CreateTagJobResult.cc b/imm/src/model/CreateTagJobResult.cc index 70e2b2510..e92329837 100644 --- a/imm/src/model/CreateTagJobResult.cc +++ b/imm/src/model/CreateTagJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateTagJobResult::CreateTagJobResult() : - ServiceResult() -{} - -CreateTagJobResult::CreateTagJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateTagJobResult::~CreateTagJobResult() -{} - -void CreateTagJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateTagJobResult::CreateTagJobResult() : + ServiceResult() +{} + +CreateTagJobResult::CreateTagJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTagJobResult::~CreateTagJobResult() +{} + +void CreateTagJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); if(!value["SetId"].isNull()) @@ -54,9 +57,9 @@ void CreateTagJobResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["FinishTime"].isNull()) finishTime_ = value["FinishTime"].asString(); - -} - + +} + std::string CreateTagJobResult::getStatus()const { return status_; diff --git a/imm/src/model/CreateTagSetRequest.cc b/imm/src/model/CreateTagSetRequest.cc index 4903a8d4f..08065dfbc 100644 --- a/imm/src/model/CreateTagSetRequest.cc +++ b/imm/src/model/CreateTagSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateTagSetRequest; - -CreateTagSetRequest::CreateTagSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateTagSet") -{} - -CreateTagSetRequest::~CreateTagSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateTagSetRequest; + +CreateTagSetRequest::CreateTagSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateTagSet") +{} + +CreateTagSetRequest::~CreateTagSetRequest() +{} + std::string CreateTagSetRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/CreateTagSetResult.cc b/imm/src/model/CreateTagSetResult.cc index 2a5ecf6ba..ee2a67615 100644 --- a/imm/src/model/CreateTagSetResult.cc +++ b/imm/src/model/CreateTagSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateTagSetResult::CreateTagSetResult() : - ServiceResult() -{} - -CreateTagSetResult::CreateTagSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateTagSetResult::~CreateTagSetResult() -{} - -void CreateTagSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateTagSetResult::CreateTagSetResult() : + ServiceResult() +{} + +CreateTagSetResult::CreateTagSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTagSetResult::~CreateTagSetResult() +{} + +void CreateTagSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["Status"].isNull()) @@ -50,9 +53,9 @@ void CreateTagSetResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["ModifyTime"].isNull()) modifyTime_ = value["ModifyTime"].asString(); - -} - + +} + std::string CreateTagSetResult::getStatus()const { return status_; diff --git a/imm/src/model/CreateVideoAnalyseTaskRequest.cc b/imm/src/model/CreateVideoAnalyseTaskRequest.cc index fb4b6d6c8..0de23d40d 100644 --- a/imm/src/model/CreateVideoAnalyseTaskRequest.cc +++ b/imm/src/model/CreateVideoAnalyseTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateVideoAnalyseTaskRequest; - -CreateVideoAnalyseTaskRequest::CreateVideoAnalyseTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateVideoAnalyseTask") -{} - -CreateVideoAnalyseTaskRequest::~CreateVideoAnalyseTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateVideoAnalyseTaskRequest; + +CreateVideoAnalyseTaskRequest::CreateVideoAnalyseTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateVideoAnalyseTask") +{} + +CreateVideoAnalyseTaskRequest::~CreateVideoAnalyseTaskRequest() +{} + std::string CreateVideoAnalyseTaskRequest::getNotifyTopicName()const { return notifyTopicName_; diff --git a/imm/src/model/CreateVideoAnalyseTaskResult.cc b/imm/src/model/CreateVideoAnalyseTaskResult.cc index 3498869b0..0607f36c9 100644 --- a/imm/src/model/CreateVideoAnalyseTaskResult.cc +++ b/imm/src/model/CreateVideoAnalyseTaskResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateVideoAnalyseTaskResult::CreateVideoAnalyseTaskResult() : - ServiceResult() -{} - -CreateVideoAnalyseTaskResult::CreateVideoAnalyseTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVideoAnalyseTaskResult::~CreateVideoAnalyseTaskResult() -{} - -void CreateVideoAnalyseTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateVideoAnalyseTaskResult::CreateVideoAnalyseTaskResult() : + ServiceResult() +{} + +CreateVideoAnalyseTaskResult::CreateVideoAnalyseTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVideoAnalyseTaskResult::~CreateVideoAnalyseTaskResult() +{} + +void CreateVideoAnalyseTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["TaskType"].isNull()) taskType_ = value["TaskType"].asString(); - -} - + +} + std::string CreateVideoAnalyseTaskResult::getTaskId()const { return taskId_; diff --git a/imm/src/model/CreateVideoCompressTaskRequest.cc b/imm/src/model/CreateVideoCompressTaskRequest.cc index fd77317c6..2d061c90d 100644 --- a/imm/src/model/CreateVideoCompressTaskRequest.cc +++ b/imm/src/model/CreateVideoCompressTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::CreateVideoCompressTaskRequest; - -CreateVideoCompressTaskRequest::CreateVideoCompressTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "CreateVideoCompressTask") -{} - -CreateVideoCompressTaskRequest::~CreateVideoCompressTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::CreateVideoCompressTaskRequest; + +CreateVideoCompressTaskRequest::CreateVideoCompressTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "CreateVideoCompressTask") +{} + +CreateVideoCompressTaskRequest::~CreateVideoCompressTaskRequest() +{} + std::string CreateVideoCompressTaskRequest::getVideoUri()const { return videoUri_; diff --git a/imm/src/model/CreateVideoCompressTaskResult.cc b/imm/src/model/CreateVideoCompressTaskResult.cc index 8fb4202b4..26272f4cc 100644 --- a/imm/src/model/CreateVideoCompressTaskResult.cc +++ b/imm/src/model/CreateVideoCompressTaskResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -CreateVideoCompressTaskResult::CreateVideoCompressTaskResult() : - ServiceResult() -{} - -CreateVideoCompressTaskResult::CreateVideoCompressTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVideoCompressTaskResult::~CreateVideoCompressTaskResult() -{} - -void CreateVideoCompressTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateVideoCompressTaskResult::CreateVideoCompressTaskResult() : + ServiceResult() +{} + +CreateVideoCompressTaskResult::CreateVideoCompressTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVideoCompressTaskResult::~CreateVideoCompressTaskResult() +{} + +void CreateVideoCompressTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["TaskType"].isNull()) taskType_ = value["TaskType"].asString(); - -} - + +} + std::string CreateVideoCompressTaskResult::getTaskId()const { return taskId_; diff --git a/imm/src/model/DeleteDocIndexRequest.cc b/imm/src/model/DeleteDocIndexRequest.cc index 9a186175e..35c1398af 100644 --- a/imm/src/model/DeleteDocIndexRequest.cc +++ b/imm/src/model/DeleteDocIndexRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteDocIndexRequest; - -DeleteDocIndexRequest::DeleteDocIndexRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteDocIndex") -{} - -DeleteDocIndexRequest::~DeleteDocIndexRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteDocIndexRequest; + +DeleteDocIndexRequest::DeleteDocIndexRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteDocIndex") +{} + +DeleteDocIndexRequest::~DeleteDocIndexRequest() +{} + std::string DeleteDocIndexRequest::getSet()const { return set_; diff --git a/imm/src/model/DeleteDocIndexResult.cc b/imm/src/model/DeleteDocIndexResult.cc index f71e00608..794e4bc02 100644 --- a/imm/src/model/DeleteDocIndexResult.cc +++ b/imm/src/model/DeleteDocIndexResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteDocIndexResult::DeleteDocIndexResult() : - ServiceResult() -{} - -DeleteDocIndexResult::DeleteDocIndexResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDocIndexResult::~DeleteDocIndexResult() -{} - -void DeleteDocIndexResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteDocIndexResult::DeleteDocIndexResult() : + ServiceResult() +{} + +DeleteDocIndexResult::DeleteDocIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDocIndexResult::~DeleteDocIndexResult() +{} + +void DeleteDocIndexResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteFaceJobRequest.cc b/imm/src/model/DeleteFaceJobRequest.cc index ac8f98ef9..315083dc5 100644 --- a/imm/src/model/DeleteFaceJobRequest.cc +++ b/imm/src/model/DeleteFaceJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceJobRequest; - -DeleteFaceJobRequest::DeleteFaceJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteFaceJob") -{} - -DeleteFaceJobRequest::~DeleteFaceJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceJobRequest; + +DeleteFaceJobRequest::DeleteFaceJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteFaceJob") +{} + +DeleteFaceJobRequest::~DeleteFaceJobRequest() +{} + std::string DeleteFaceJobRequest::getJobId()const { return jobId_; diff --git a/imm/src/model/DeleteFaceJobResult.cc b/imm/src/model/DeleteFaceJobResult.cc index 84aff752b..4661cc98a 100644 --- a/imm/src/model/DeleteFaceJobResult.cc +++ b/imm/src/model/DeleteFaceJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteFaceJobResult::DeleteFaceJobResult() : - ServiceResult() -{} - -DeleteFaceJobResult::DeleteFaceJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFaceJobResult::~DeleteFaceJobResult() -{} - -void DeleteFaceJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteFaceJobResult::DeleteFaceJobResult() : + ServiceResult() +{} + +DeleteFaceJobResult::DeleteFaceJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFaceJobResult::~DeleteFaceJobResult() +{} + +void DeleteFaceJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteFaceSearchGroupRequest.cc b/imm/src/model/DeleteFaceSearchGroupRequest.cc index b340023ea..87e6d10ac 100644 --- a/imm/src/model/DeleteFaceSearchGroupRequest.cc +++ b/imm/src/model/DeleteFaceSearchGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceSearchGroupRequest; - -DeleteFaceSearchGroupRequest::DeleteFaceSearchGroupRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchGroup") -{} - -DeleteFaceSearchGroupRequest::~DeleteFaceSearchGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceSearchGroupRequest; + +DeleteFaceSearchGroupRequest::DeleteFaceSearchGroupRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchGroup") +{} + +DeleteFaceSearchGroupRequest::~DeleteFaceSearchGroupRequest() +{} + std::string DeleteFaceSearchGroupRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DeleteFaceSearchGroupResult.cc b/imm/src/model/DeleteFaceSearchGroupResult.cc index 73903c9b1..2a50d9459 100644 --- a/imm/src/model/DeleteFaceSearchGroupResult.cc +++ b/imm/src/model/DeleteFaceSearchGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteFaceSearchGroupResult::DeleteFaceSearchGroupResult() : - ServiceResult() -{} - -DeleteFaceSearchGroupResult::DeleteFaceSearchGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFaceSearchGroupResult::~DeleteFaceSearchGroupResult() -{} - -void DeleteFaceSearchGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteFaceSearchGroupResult::DeleteFaceSearchGroupResult() : + ServiceResult() +{} + +DeleteFaceSearchGroupResult::DeleteFaceSearchGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFaceSearchGroupResult::~DeleteFaceSearchGroupResult() +{} + +void DeleteFaceSearchGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteFaceSearchImageByIdRequest.cc b/imm/src/model/DeleteFaceSearchImageByIdRequest.cc index 2541e3d95..78d3dd14f 100644 --- a/imm/src/model/DeleteFaceSearchImageByIdRequest.cc +++ b/imm/src/model/DeleteFaceSearchImageByIdRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceSearchImageByIdRequest; - -DeleteFaceSearchImageByIdRequest::DeleteFaceSearchImageByIdRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchImageById") -{} - -DeleteFaceSearchImageByIdRequest::~DeleteFaceSearchImageByIdRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceSearchImageByIdRequest; + +DeleteFaceSearchImageByIdRequest::DeleteFaceSearchImageByIdRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchImageById") +{} + +DeleteFaceSearchImageByIdRequest::~DeleteFaceSearchImageByIdRequest() +{} + std::string DeleteFaceSearchImageByIdRequest::getImageId()const { return imageId_; diff --git a/imm/src/model/DeleteFaceSearchImageByIdResult.cc b/imm/src/model/DeleteFaceSearchImageByIdResult.cc index 3c0fcc852..c97861f14 100644 --- a/imm/src/model/DeleteFaceSearchImageByIdResult.cc +++ b/imm/src/model/DeleteFaceSearchImageByIdResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteFaceSearchImageByIdResult::DeleteFaceSearchImageByIdResult() : - ServiceResult() -{} - -DeleteFaceSearchImageByIdResult::DeleteFaceSearchImageByIdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFaceSearchImageByIdResult::~DeleteFaceSearchImageByIdResult() -{} - -void DeleteFaceSearchImageByIdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteFaceSearchImageByIdResult::DeleteFaceSearchImageByIdResult() : + ServiceResult() +{} + +DeleteFaceSearchImageByIdResult::DeleteFaceSearchImageByIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFaceSearchImageByIdResult::~DeleteFaceSearchImageByIdResult() +{} + +void DeleteFaceSearchImageByIdResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteFaceSearchUserRequest.cc b/imm/src/model/DeleteFaceSearchUserRequest.cc index a19735f7a..7a968f42f 100644 --- a/imm/src/model/DeleteFaceSearchUserRequest.cc +++ b/imm/src/model/DeleteFaceSearchUserRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceSearchUserRequest; - -DeleteFaceSearchUserRequest::DeleteFaceSearchUserRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchUser") -{} - -DeleteFaceSearchUserRequest::~DeleteFaceSearchUserRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteFaceSearchUserRequest; + +DeleteFaceSearchUserRequest::DeleteFaceSearchUserRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchUser") +{} + +DeleteFaceSearchUserRequest::~DeleteFaceSearchUserRequest() +{} + std::string DeleteFaceSearchUserRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DeleteFaceSearchUserResult.cc b/imm/src/model/DeleteFaceSearchUserResult.cc index 14ff4793d..2d68b88f7 100644 --- a/imm/src/model/DeleteFaceSearchUserResult.cc +++ b/imm/src/model/DeleteFaceSearchUserResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteFaceSearchUserResult::DeleteFaceSearchUserResult() : - ServiceResult() -{} - -DeleteFaceSearchUserResult::DeleteFaceSearchUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFaceSearchUserResult::~DeleteFaceSearchUserResult() -{} - -void DeleteFaceSearchUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteFaceSearchUserResult::DeleteFaceSearchUserResult() : + ServiceResult() +{} + +DeleteFaceSearchUserResult::DeleteFaceSearchUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFaceSearchUserResult::~DeleteFaceSearchUserResult() +{} + +void DeleteFaceSearchUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteImageJobRequest.cc b/imm/src/model/DeleteImageJobRequest.cc index ff7008403..75b8de444 100644 --- a/imm/src/model/DeleteImageJobRequest.cc +++ b/imm/src/model/DeleteImageJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteImageJobRequest; - -DeleteImageJobRequest::DeleteImageJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteImageJob") -{} - -DeleteImageJobRequest::~DeleteImageJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteImageJobRequest; + +DeleteImageJobRequest::DeleteImageJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteImageJob") +{} + +DeleteImageJobRequest::~DeleteImageJobRequest() +{} + std::string DeleteImageJobRequest::getJobId()const { return jobId_; diff --git a/imm/src/model/DeleteImageJobResult.cc b/imm/src/model/DeleteImageJobResult.cc index c252378e3..254e29bf9 100644 --- a/imm/src/model/DeleteImageJobResult.cc +++ b/imm/src/model/DeleteImageJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteImageJobResult::DeleteImageJobResult() : - ServiceResult() -{} - -DeleteImageJobResult::DeleteImageJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteImageJobResult::~DeleteImageJobResult() -{} - -void DeleteImageJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteImageJobResult::DeleteImageJobResult() : + ServiceResult() +{} + +DeleteImageJobResult::DeleteImageJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImageJobResult::~DeleteImageJobResult() +{} + +void DeleteImageJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteImageRequest.cc b/imm/src/model/DeleteImageRequest.cc index 1c940aca4..409c2239a 100644 --- a/imm/src/model/DeleteImageRequest.cc +++ b/imm/src/model/DeleteImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteImageRequest; - -DeleteImageRequest::DeleteImageRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteImage") -{} - -DeleteImageRequest::~DeleteImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteImageRequest; + +DeleteImageRequest::DeleteImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteImage") +{} + +DeleteImageRequest::~DeleteImageRequest() +{} + std::string DeleteImageRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DeleteImageResult.cc b/imm/src/model/DeleteImageResult.cc index ebf7fcbbe..c6f3769dd 100644 --- a/imm/src/model/DeleteImageResult.cc +++ b/imm/src/model/DeleteImageResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteImageResult::DeleteImageResult() : - ServiceResult() -{} - -DeleteImageResult::DeleteImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteImageResult::~DeleteImageResult() -{} - -void DeleteImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteImageResult::DeleteImageResult() : + ServiceResult() +{} + +DeleteImageResult::DeleteImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImageResult::~DeleteImageResult() +{} + +void DeleteImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["ImageUri"].isNull()) imageUri_ = value["ImageUri"].asString(); - -} - + +} + std::string DeleteImageResult::getSetId()const { return setId_; diff --git a/imm/src/model/DeleteOfficeConversionTaskRequest.cc b/imm/src/model/DeleteOfficeConversionTaskRequest.cc index f1fc695de..15804037f 100644 --- a/imm/src/model/DeleteOfficeConversionTaskRequest.cc +++ b/imm/src/model/DeleteOfficeConversionTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteOfficeConversionTaskRequest; - -DeleteOfficeConversionTaskRequest::DeleteOfficeConversionTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteOfficeConversionTask") -{} - -DeleteOfficeConversionTaskRequest::~DeleteOfficeConversionTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteOfficeConversionTaskRequest; + +DeleteOfficeConversionTaskRequest::DeleteOfficeConversionTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteOfficeConversionTask") +{} + +DeleteOfficeConversionTaskRequest::~DeleteOfficeConversionTaskRequest() +{} + std::string DeleteOfficeConversionTaskRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DeleteOfficeConversionTaskResult.cc b/imm/src/model/DeleteOfficeConversionTaskResult.cc index 4726f935e..0638939b3 100644 --- a/imm/src/model/DeleteOfficeConversionTaskResult.cc +++ b/imm/src/model/DeleteOfficeConversionTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult() : - ServiceResult() -{} - -DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteOfficeConversionTaskResult::~DeleteOfficeConversionTaskResult() -{} - -void DeleteOfficeConversionTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult() : + ServiceResult() +{} + +DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteOfficeConversionTaskResult::~DeleteOfficeConversionTaskResult() +{} + +void DeleteOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeletePhotoProcessTaskRequest.cc b/imm/src/model/DeletePhotoProcessTaskRequest.cc index 9b3003513..8d3ace340 100644 --- a/imm/src/model/DeletePhotoProcessTaskRequest.cc +++ b/imm/src/model/DeletePhotoProcessTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeletePhotoProcessTaskRequest; - -DeletePhotoProcessTaskRequest::DeletePhotoProcessTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeletePhotoProcessTask") -{} - -DeletePhotoProcessTaskRequest::~DeletePhotoProcessTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeletePhotoProcessTaskRequest; + +DeletePhotoProcessTaskRequest::DeletePhotoProcessTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeletePhotoProcessTask") +{} + +DeletePhotoProcessTaskRequest::~DeletePhotoProcessTaskRequest() +{} + std::string DeletePhotoProcessTaskRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DeletePhotoProcessTaskResult.cc b/imm/src/model/DeletePhotoProcessTaskResult.cc index 65911659f..3396dc447 100644 --- a/imm/src/model/DeletePhotoProcessTaskResult.cc +++ b/imm/src/model/DeletePhotoProcessTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeletePhotoProcessTaskResult::DeletePhotoProcessTaskResult() : - ServiceResult() -{} - -DeletePhotoProcessTaskResult::DeletePhotoProcessTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeletePhotoProcessTaskResult::~DeletePhotoProcessTaskResult() -{} - -void DeletePhotoProcessTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeletePhotoProcessTaskResult::DeletePhotoProcessTaskResult() : + ServiceResult() +{} + +DeletePhotoProcessTaskResult::DeletePhotoProcessTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePhotoProcessTaskResult::~DeletePhotoProcessTaskResult() +{} + +void DeletePhotoProcessTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeletePornBatchDetectJobRequest.cc b/imm/src/model/DeletePornBatchDetectJobRequest.cc index db5778ac3..bb8900f7f 100644 --- a/imm/src/model/DeletePornBatchDetectJobRequest.cc +++ b/imm/src/model/DeletePornBatchDetectJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeletePornBatchDetectJobRequest; - -DeletePornBatchDetectJobRequest::DeletePornBatchDetectJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeletePornBatchDetectJob") -{} - -DeletePornBatchDetectJobRequest::~DeletePornBatchDetectJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeletePornBatchDetectJobRequest; + +DeletePornBatchDetectJobRequest::DeletePornBatchDetectJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeletePornBatchDetectJob") +{} + +DeletePornBatchDetectJobRequest::~DeletePornBatchDetectJobRequest() +{} + std::string DeletePornBatchDetectJobRequest::getJobId()const { return jobId_; diff --git a/imm/src/model/DeletePornBatchDetectJobResult.cc b/imm/src/model/DeletePornBatchDetectJobResult.cc index 24e289eb2..b11b418f4 100644 --- a/imm/src/model/DeletePornBatchDetectJobResult.cc +++ b/imm/src/model/DeletePornBatchDetectJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeletePornBatchDetectJobResult::DeletePornBatchDetectJobResult() : - ServiceResult() -{} - -DeletePornBatchDetectJobResult::DeletePornBatchDetectJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeletePornBatchDetectJobResult::~DeletePornBatchDetectJobResult() -{} - -void DeletePornBatchDetectJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeletePornBatchDetectJobResult::DeletePornBatchDetectJobResult() : + ServiceResult() +{} + +DeletePornBatchDetectJobResult::DeletePornBatchDetectJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePornBatchDetectJobResult::~DeletePornBatchDetectJobResult() +{} + +void DeletePornBatchDetectJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteProjectRequest.cc b/imm/src/model/DeleteProjectRequest.cc index 6c51d2c69..a2405b04b 100644 --- a/imm/src/model/DeleteProjectRequest.cc +++ b/imm/src/model/DeleteProjectRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteProjectRequest; - -DeleteProjectRequest::DeleteProjectRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteProject") -{} - -DeleteProjectRequest::~DeleteProjectRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteProjectRequest; + +DeleteProjectRequest::DeleteProjectRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteProject") +{} + +DeleteProjectRequest::~DeleteProjectRequest() +{} + std::string DeleteProjectRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DeleteProjectResult.cc b/imm/src/model/DeleteProjectResult.cc index 0d95a8c4d..4053c11de 100644 --- a/imm/src/model/DeleteProjectResult.cc +++ b/imm/src/model/DeleteProjectResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteProjectResult::DeleteProjectResult() : - ServiceResult() -{} - -DeleteProjectResult::DeleteProjectResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteProjectResult::~DeleteProjectResult() -{} - -void DeleteProjectResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteProjectResult::DeleteProjectResult() : + ServiceResult() +{} + +DeleteProjectResult::DeleteProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectResult::~DeleteProjectResult() +{} + +void DeleteProjectResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteSetRequest.cc b/imm/src/model/DeleteSetRequest.cc index b5f9a2359..cad250c02 100644 --- a/imm/src/model/DeleteSetRequest.cc +++ b/imm/src/model/DeleteSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteSetRequest; - -DeleteSetRequest::DeleteSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteSet") -{} - -DeleteSetRequest::~DeleteSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteSetRequest; + +DeleteSetRequest::DeleteSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteSet") +{} + +DeleteSetRequest::~DeleteSetRequest() +{} + std::string DeleteSetRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DeleteSetResult.cc b/imm/src/model/DeleteSetResult.cc index 6f0f37570..dd668f152 100644 --- a/imm/src/model/DeleteSetResult.cc +++ b/imm/src/model/DeleteSetResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteSetResult::DeleteSetResult() : - ServiceResult() -{} - -DeleteSetResult::DeleteSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSetResult::~DeleteSetResult() -{} - -void DeleteSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteSetResult::DeleteSetResult() : + ServiceResult() +{} + +DeleteSetResult::DeleteSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSetResult::~DeleteSetResult() +{} + +void DeleteSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); - -} - + +} + std::string DeleteSetResult::getSetId()const { return setId_; diff --git a/imm/src/model/DeleteTagByNameRequest.cc b/imm/src/model/DeleteTagByNameRequest.cc index a936c0a8e..ba62b4ca2 100644 --- a/imm/src/model/DeleteTagByNameRequest.cc +++ b/imm/src/model/DeleteTagByNameRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagByNameRequest; - -DeleteTagByNameRequest::DeleteTagByNameRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteTagByName") -{} - -DeleteTagByNameRequest::~DeleteTagByNameRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagByNameRequest; + +DeleteTagByNameRequest::DeleteTagByNameRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteTagByName") +{} + +DeleteTagByNameRequest::~DeleteTagByNameRequest() +{} + std::string DeleteTagByNameRequest::getTagName()const { return tagName_; diff --git a/imm/src/model/DeleteTagByNameResult.cc b/imm/src/model/DeleteTagByNameResult.cc index 786c11579..c71f6b377 100644 --- a/imm/src/model/DeleteTagByNameResult.cc +++ b/imm/src/model/DeleteTagByNameResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteTagByNameResult::DeleteTagByNameResult() : - ServiceResult() -{} - -DeleteTagByNameResult::DeleteTagByNameResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteTagByNameResult::~DeleteTagByNameResult() -{} - -void DeleteTagByNameResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteTagByNameResult::DeleteTagByNameResult() : + ServiceResult() +{} + +DeleteTagByNameResult::DeleteTagByNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagByNameResult::~DeleteTagByNameResult() +{} + +void DeleteTagByNameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteTagByUrlRequest.cc b/imm/src/model/DeleteTagByUrlRequest.cc index 5cf2c4fda..72442b9f3 100644 --- a/imm/src/model/DeleteTagByUrlRequest.cc +++ b/imm/src/model/DeleteTagByUrlRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagByUrlRequest; - -DeleteTagByUrlRequest::DeleteTagByUrlRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteTagByUrl") -{} - -DeleteTagByUrlRequest::~DeleteTagByUrlRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagByUrlRequest; + +DeleteTagByUrlRequest::DeleteTagByUrlRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteTagByUrl") +{} + +DeleteTagByUrlRequest::~DeleteTagByUrlRequest() +{} + std::string DeleteTagByUrlRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DeleteTagByUrlResult.cc b/imm/src/model/DeleteTagByUrlResult.cc index 1eb678826..0951fe1b0 100644 --- a/imm/src/model/DeleteTagByUrlResult.cc +++ b/imm/src/model/DeleteTagByUrlResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteTagByUrlResult::DeleteTagByUrlResult() : - ServiceResult() -{} - -DeleteTagByUrlResult::DeleteTagByUrlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteTagByUrlResult::~DeleteTagByUrlResult() -{} - -void DeleteTagByUrlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteTagByUrlResult::DeleteTagByUrlResult() : + ServiceResult() +{} + +DeleteTagByUrlResult::DeleteTagByUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagByUrlResult::~DeleteTagByUrlResult() +{} + +void DeleteTagByUrlResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteTagJobRequest.cc b/imm/src/model/DeleteTagJobRequest.cc index c9e44d3b2..93ecb264a 100644 --- a/imm/src/model/DeleteTagJobRequest.cc +++ b/imm/src/model/DeleteTagJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagJobRequest; - -DeleteTagJobRequest::DeleteTagJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteTagJob") -{} - -DeleteTagJobRequest::~DeleteTagJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagJobRequest; + +DeleteTagJobRequest::DeleteTagJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteTagJob") +{} + +DeleteTagJobRequest::~DeleteTagJobRequest() +{} + std::string DeleteTagJobRequest::getJobId()const { return jobId_; diff --git a/imm/src/model/DeleteTagJobResult.cc b/imm/src/model/DeleteTagJobResult.cc index cf3c9fc38..b61249696 100644 --- a/imm/src/model/DeleteTagJobResult.cc +++ b/imm/src/model/DeleteTagJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteTagJobResult::DeleteTagJobResult() : - ServiceResult() -{} - -DeleteTagJobResult::DeleteTagJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteTagJobResult::~DeleteTagJobResult() -{} - -void DeleteTagJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteTagJobResult::DeleteTagJobResult() : + ServiceResult() +{} + +DeleteTagJobResult::DeleteTagJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagJobResult::~DeleteTagJobResult() +{} + +void DeleteTagJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteTagSetRequest.cc b/imm/src/model/DeleteTagSetRequest.cc index 86bed794c..7a9837b34 100644 --- a/imm/src/model/DeleteTagSetRequest.cc +++ b/imm/src/model/DeleteTagSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagSetRequest; - -DeleteTagSetRequest::DeleteTagSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteTagSet") -{} - -DeleteTagSetRequest::~DeleteTagSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteTagSetRequest; + +DeleteTagSetRequest::DeleteTagSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteTagSet") +{} + +DeleteTagSetRequest::~DeleteTagSetRequest() +{} + std::string DeleteTagSetRequest::getLazyMode()const { return lazyMode_; diff --git a/imm/src/model/DeleteTagSetResult.cc b/imm/src/model/DeleteTagSetResult.cc index 59e8c3809..14bf7aeb5 100644 --- a/imm/src/model/DeleteTagSetResult.cc +++ b/imm/src/model/DeleteTagSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteTagSetResult::DeleteTagSetResult() : - ServiceResult() -{} - -DeleteTagSetResult::DeleteTagSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteTagSetResult::~DeleteTagSetResult() -{} - -void DeleteTagSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteTagSetResult::DeleteTagSetResult() : + ServiceResult() +{} + +DeleteTagSetResult::DeleteTagSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagSetResult::~DeleteTagSetResult() +{} + +void DeleteTagSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteVideoRequest.cc b/imm/src/model/DeleteVideoRequest.cc index 1d5674515..3ab53dd62 100644 --- a/imm/src/model/DeleteVideoRequest.cc +++ b/imm/src/model/DeleteVideoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteVideoRequest; - -DeleteVideoRequest::DeleteVideoRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteVideo") -{} - -DeleteVideoRequest::~DeleteVideoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteVideoRequest; + +DeleteVideoRequest::DeleteVideoRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteVideo") +{} + +DeleteVideoRequest::~DeleteVideoRequest() +{} + std::string DeleteVideoRequest::getVideoUri()const { return videoUri_; diff --git a/imm/src/model/DeleteVideoResult.cc b/imm/src/model/DeleteVideoResult.cc index 876c6f607..b5623d791 100644 --- a/imm/src/model/DeleteVideoResult.cc +++ b/imm/src/model/DeleteVideoResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteVideoResult::DeleteVideoResult() : - ServiceResult() -{} - -DeleteVideoResult::DeleteVideoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteVideoResult::~DeleteVideoResult() -{} - -void DeleteVideoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteVideoResult::DeleteVideoResult() : + ServiceResult() +{} + +DeleteVideoResult::DeleteVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVideoResult::~DeleteVideoResult() +{} + +void DeleteVideoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["VideoUri"].isNull()) videoUri_ = value["VideoUri"].asString(); - -} - + +} + std::string DeleteVideoResult::getVideoUri()const { return videoUri_; diff --git a/imm/src/model/DeleteVideoTaskRequest.cc b/imm/src/model/DeleteVideoTaskRequest.cc index 21e4e4e98..b3f0567aa 100644 --- a/imm/src/model/DeleteVideoTaskRequest.cc +++ b/imm/src/model/DeleteVideoTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DeleteVideoTaskRequest; - -DeleteVideoTaskRequest::DeleteVideoTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "DeleteVideoTask") -{} - -DeleteVideoTaskRequest::~DeleteVideoTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DeleteVideoTaskRequest; + +DeleteVideoTaskRequest::DeleteVideoTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "DeleteVideoTask") +{} + +DeleteVideoTaskRequest::~DeleteVideoTaskRequest() +{} + std::string DeleteVideoTaskRequest::getTaskType()const { return taskType_; diff --git a/imm/src/model/DeleteVideoTaskResult.cc b/imm/src/model/DeleteVideoTaskResult.cc index 6832fcb9f..34d369d2d 100644 --- a/imm/src/model/DeleteVideoTaskResult.cc +++ b/imm/src/model/DeleteVideoTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DeleteVideoTaskResult::DeleteVideoTaskResult() : - ServiceResult() -{} - -DeleteVideoTaskResult::DeleteVideoTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteVideoTaskResult::~DeleteVideoTaskResult() -{} - -void DeleteVideoTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteVideoTaskResult::DeleteVideoTaskResult() : + ServiceResult() +{} + +DeleteVideoTaskResult::DeleteVideoTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVideoTaskResult::~DeleteVideoTaskResult() +{} + +void DeleteVideoTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DescribeRegionsRequest.cc b/imm/src/model/DescribeRegionsRequest.cc index 89f0ca00c..ae0ba195e 100644 --- a/imm/src/model/DescribeRegionsRequest.cc +++ b/imm/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("imm", "2017-09-06", "DescribeRegions") -{} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("imm", "2017-09-06", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + std::string DescribeRegionsRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/DescribeRegionsResult.cc b/imm/src/model/DescribeRegionsResult.cc index e6375fe6b..df214f4d5 100644 --- a/imm/src/model/DescribeRegionsResult.cc +++ b/imm/src/model/DescribeRegionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto regionsNode = value["Regions"]; auto allRegion = value["Region"]["RegionItem"]; for (auto value : allRegion) @@ -52,9 +55,9 @@ void DescribeRegionsResult::parse(const std::string &payload) regionItemObject.projectTypes.push_back(value.asString()); regions_.region.push_back(regionItemObject); } - -} - + +} + DescribeRegionsResult::Regions DescribeRegionsResult::getRegions()const { return regions_; diff --git a/imm/src/model/DetectClothesRequest.cc b/imm/src/model/DetectClothesRequest.cc index b56ffb141..84ca79785 100644 --- a/imm/src/model/DetectClothesRequest.cc +++ b/imm/src/model/DetectClothesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectClothesRequest; - -DetectClothesRequest::DetectClothesRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectClothes") -{} - -DetectClothesRequest::~DetectClothesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectClothesRequest; + +DetectClothesRequest::DetectClothesRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectClothes") +{} + +DetectClothesRequest::~DetectClothesRequest() +{} + std::string DetectClothesRequest::getSrcUris()const { return srcUris_; diff --git a/imm/src/model/DetectClothesResult.cc b/imm/src/model/DetectClothesResult.cc index 160014044..c8c4d6dd9 100644 --- a/imm/src/model/DetectClothesResult.cc +++ b/imm/src/model/DetectClothesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectClothesResult::DetectClothesResult() : - ServiceResult() -{} - -DetectClothesResult::DetectClothesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectClothesResult::~DetectClothesResult() -{} - -void DetectClothesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectClothesResult::DetectClothesResult() : + ServiceResult() +{} + +DetectClothesResult::DetectClothesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectClothesResult::~DetectClothesResult() +{} + +void DetectClothesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"]; for (auto value : allSuccessDetails) { @@ -82,9 +85,9 @@ void DetectClothesResult::parse(const std::string &payload) auto allSrcUris = value["SrcUris"]["SrcUris"]; for (const auto &item : allSrcUris) srcUris_.push_back(item.asString()); - -} - + +} + std::vector DetectClothesResult::getSuccessDetails()const { return successDetails_; diff --git a/imm/src/model/DetectImageBodiesRequest.cc b/imm/src/model/DetectImageBodiesRequest.cc index fb21e64f7..25d2ffda3 100644 --- a/imm/src/model/DetectImageBodiesRequest.cc +++ b/imm/src/model/DetectImageBodiesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectImageBodiesRequest; - -DetectImageBodiesRequest::DetectImageBodiesRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectImageBodies") -{} - -DetectImageBodiesRequest::~DetectImageBodiesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectImageBodiesRequest; + +DetectImageBodiesRequest::DetectImageBodiesRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectImageBodies") +{} + +DetectImageBodiesRequest::~DetectImageBodiesRequest() +{} + std::string DetectImageBodiesRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageBodiesResult.cc b/imm/src/model/DetectImageBodiesResult.cc index 8a1b15e5a..d2bc411de 100644 --- a/imm/src/model/DetectImageBodiesResult.cc +++ b/imm/src/model/DetectImageBodiesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectImageBodiesResult::DetectImageBodiesResult() : - ServiceResult() -{} - -DetectImageBodiesResult::DetectImageBodiesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectImageBodiesResult::~DetectImageBodiesResult() -{} - -void DetectImageBodiesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageBodiesResult::DetectImageBodiesResult() : + ServiceResult() +{} + +DetectImageBodiesResult::DetectImageBodiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageBodiesResult::~DetectImageBodiesResult() +{} + +void DetectImageBodiesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allBodies = value["Bodies"]["BodiesItem"]; for (auto value : allBodies) { @@ -59,9 +62,9 @@ void DetectImageBodiesResult::parse(const std::string &payload) } if(!value["ImageUri"].isNull()) imageUri_ = value["ImageUri"].asString(); - -} - + +} + std::vector DetectImageBodiesResult::getBodies()const { return bodies_; diff --git a/imm/src/model/DetectImageCelebrityRequest.cc b/imm/src/model/DetectImageCelebrityRequest.cc index fbf99497b..34f853471 100644 --- a/imm/src/model/DetectImageCelebrityRequest.cc +++ b/imm/src/model/DetectImageCelebrityRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectImageCelebrityRequest; - -DetectImageCelebrityRequest::DetectImageCelebrityRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectImageCelebrity") -{} - -DetectImageCelebrityRequest::~DetectImageCelebrityRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectImageCelebrityRequest; + +DetectImageCelebrityRequest::DetectImageCelebrityRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectImageCelebrity") +{} + +DetectImageCelebrityRequest::~DetectImageCelebrityRequest() +{} + std::string DetectImageCelebrityRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageCelebrityResult.cc b/imm/src/model/DetectImageCelebrityResult.cc index 9481b0633..01235dac7 100644 --- a/imm/src/model/DetectImageCelebrityResult.cc +++ b/imm/src/model/DetectImageCelebrityResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectImageCelebrityResult::DetectImageCelebrityResult() : - ServiceResult() -{} - -DetectImageCelebrityResult::DetectImageCelebrityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectImageCelebrityResult::~DetectImageCelebrityResult() -{} - -void DetectImageCelebrityResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageCelebrityResult::DetectImageCelebrityResult() : + ServiceResult() +{} + +DetectImageCelebrityResult::DetectImageCelebrityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageCelebrityResult::~DetectImageCelebrityResult() +{} + +void DetectImageCelebrityResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCelebrity = value["Celebrity"]["CelebrityItem"]; for (auto value : allCelebrity) { @@ -65,9 +68,9 @@ void DetectImageCelebrityResult::parse(const std::string &payload) } if(!value["ImageUri"].isNull()) imageUri_ = value["ImageUri"].asString(); - -} - + +} + std::vector DetectImageCelebrityResult::getCelebrity()const { return celebrity_; diff --git a/imm/src/model/DetectImageFacesRequest.cc b/imm/src/model/DetectImageFacesRequest.cc index 43c2a419b..c1508b2cb 100644 --- a/imm/src/model/DetectImageFacesRequest.cc +++ b/imm/src/model/DetectImageFacesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectImageFacesRequest; - -DetectImageFacesRequest::DetectImageFacesRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectImageFaces") -{} - -DetectImageFacesRequest::~DetectImageFacesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectImageFacesRequest; + +DetectImageFacesRequest::DetectImageFacesRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectImageFaces") +{} + +DetectImageFacesRequest::~DetectImageFacesRequest() +{} + std::string DetectImageFacesRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageFacesResult.cc b/imm/src/model/DetectImageFacesResult.cc index 08779f35a..d4bd1f5e6 100644 --- a/imm/src/model/DetectImageFacesResult.cc +++ b/imm/src/model/DetectImageFacesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectImageFacesResult::DetectImageFacesResult() : - ServiceResult() -{} - -DetectImageFacesResult::DetectImageFacesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectImageFacesResult::~DetectImageFacesResult() -{} - -void DetectImageFacesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageFacesResult::DetectImageFacesResult() : + ServiceResult() +{} + +DetectImageFacesResult::DetectImageFacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageFacesResult::~DetectImageFacesResult() +{} + +void DetectImageFacesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFaces = value["Faces"]["FacesItem"]; for (auto value : allFaces) { @@ -118,9 +121,9 @@ void DetectImageFacesResult::parse(const std::string &payload) } if(!value["ImageUri"].isNull()) imageUri_ = value["ImageUri"].asString(); - -} - + +} + std::string DetectImageFacesResult::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageLogosRequest.cc b/imm/src/model/DetectImageLogosRequest.cc index 57f98fca7..5c194aea0 100644 --- a/imm/src/model/DetectImageLogosRequest.cc +++ b/imm/src/model/DetectImageLogosRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectImageLogosRequest; - -DetectImageLogosRequest::DetectImageLogosRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectImageLogos") -{} - -DetectImageLogosRequest::~DetectImageLogosRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectImageLogosRequest; + +DetectImageLogosRequest::DetectImageLogosRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectImageLogos") +{} + +DetectImageLogosRequest::~DetectImageLogosRequest() +{} + std::string DetectImageLogosRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageLogosResult.cc b/imm/src/model/DetectImageLogosResult.cc index 166a3bace..e2a44d809 100644 --- a/imm/src/model/DetectImageLogosResult.cc +++ b/imm/src/model/DetectImageLogosResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectImageLogosResult::DetectImageLogosResult() : - ServiceResult() -{} - -DetectImageLogosResult::DetectImageLogosResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectImageLogosResult::~DetectImageLogosResult() -{} - -void DetectImageLogosResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageLogosResult::DetectImageLogosResult() : + ServiceResult() +{} + +DetectImageLogosResult::DetectImageLogosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageLogosResult::~DetectImageLogosResult() +{} + +void DetectImageLogosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLogos = value["Logos"]["LogosItem"]; for (auto value : allLogos) { @@ -61,9 +64,9 @@ void DetectImageLogosResult::parse(const std::string &payload) } if(!value["ImageUri"].isNull()) imageUri_ = value["ImageUri"].asString(); - -} - + +} + std::vector DetectImageLogosResult::getLogos()const { return logos_; diff --git a/imm/src/model/DetectImageTagsRequest.cc b/imm/src/model/DetectImageTagsRequest.cc index 8afba2aac..c527dd635 100644 --- a/imm/src/model/DetectImageTagsRequest.cc +++ b/imm/src/model/DetectImageTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectImageTagsRequest; - -DetectImageTagsRequest::DetectImageTagsRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectImageTags") -{} - -DetectImageTagsRequest::~DetectImageTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectImageTagsRequest; + +DetectImageTagsRequest::DetectImageTagsRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectImageTags") +{} + +DetectImageTagsRequest::~DetectImageTagsRequest() +{} + std::string DetectImageTagsRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageTagsResult.cc b/imm/src/model/DetectImageTagsResult.cc index bc3c96a23..68b02b3f6 100644 --- a/imm/src/model/DetectImageTagsResult.cc +++ b/imm/src/model/DetectImageTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectImageTagsResult::DetectImageTagsResult() : - ServiceResult() -{} - -DetectImageTagsResult::DetectImageTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectImageTagsResult::~DetectImageTagsResult() -{} - -void DetectImageTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageTagsResult::DetectImageTagsResult() : + ServiceResult() +{} + +DetectImageTagsResult::DetectImageTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageTagsResult::~DetectImageTagsResult() +{} + +void DetectImageTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["TagsItem"]; for (auto value : allTags) { @@ -60,9 +63,9 @@ void DetectImageTagsResult::parse(const std::string &payload) } if(!value["ImageUri"].isNull()) imageUri_ = value["ImageUri"].asString(); - -} - + +} + std::string DetectImageTagsResult::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageTextsRequest.cc b/imm/src/model/DetectImageTextsRequest.cc index fdd1c20c9..c3e964541 100644 --- a/imm/src/model/DetectImageTextsRequest.cc +++ b/imm/src/model/DetectImageTextsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectImageTextsRequest; - -DetectImageTextsRequest::DetectImageTextsRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectImageTexts") -{} - -DetectImageTextsRequest::~DetectImageTextsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectImageTextsRequest; + +DetectImageTextsRequest::DetectImageTextsRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectImageTexts") +{} + +DetectImageTextsRequest::~DetectImageTextsRequest() +{} + std::string DetectImageTextsRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectImageTextsResult.cc b/imm/src/model/DetectImageTextsResult.cc index d230b026b..bf9a7645e 100644 --- a/imm/src/model/DetectImageTextsResult.cc +++ b/imm/src/model/DetectImageTextsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectImageTextsResult::DetectImageTextsResult() : - ServiceResult() -{} - -DetectImageTextsResult::DetectImageTextsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectImageTextsResult::~DetectImageTextsResult() -{} - -void DetectImageTextsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageTextsResult::DetectImageTextsResult() : + ServiceResult() +{} + +DetectImageTextsResult::DetectImageTextsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageTextsResult::~DetectImageTextsResult() +{} + +void DetectImageTextsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allOCR = value["OCR"]["OCRItem"]; for (auto value : allOCR) { @@ -61,9 +64,9 @@ void DetectImageTextsResult::parse(const std::string &payload) } if(!value["ImageUri"].isNull()) imageUri_ = value["ImageUri"].asString(); - -} - + +} + std::string DetectImageTextsResult::getImageUri()const { return imageUri_; diff --git a/imm/src/model/DetectLogoRequest.cc b/imm/src/model/DetectLogoRequest.cc index dfe44be94..c304f5219 100644 --- a/imm/src/model/DetectLogoRequest.cc +++ b/imm/src/model/DetectLogoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectLogoRequest; - -DetectLogoRequest::DetectLogoRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectLogo") -{} - -DetectLogoRequest::~DetectLogoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectLogoRequest; + +DetectLogoRequest::DetectLogoRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectLogo") +{} + +DetectLogoRequest::~DetectLogoRequest() +{} + std::string DetectLogoRequest::getSrcUris()const { return srcUris_; diff --git a/imm/src/model/DetectLogoResult.cc b/imm/src/model/DetectLogoResult.cc index b0834f059..8fed6b4db 100644 --- a/imm/src/model/DetectLogoResult.cc +++ b/imm/src/model/DetectLogoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectLogoResult::DetectLogoResult() : - ServiceResult() -{} - -DetectLogoResult::DetectLogoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectLogoResult::~DetectLogoResult() -{} - -void DetectLogoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectLogoResult::DetectLogoResult() : + ServiceResult() +{} + +DetectLogoResult::DetectLogoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectLogoResult::~DetectLogoResult() +{} + +void DetectLogoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"]; for (auto value : allSuccessDetails) { @@ -82,9 +85,9 @@ void DetectLogoResult::parse(const std::string &payload) auto allSrcUris = value["SrcUris"]["SrcUris"]; for (const auto &item : allSrcUris) srcUris_.push_back(item.asString()); - -} - + +} + std::vector DetectLogoResult::getSuccessDetails()const { return successDetails_; diff --git a/imm/src/model/DetectQRCodesRequest.cc b/imm/src/model/DetectQRCodesRequest.cc index 4003d2597..73d1449ca 100644 --- a/imm/src/model/DetectQRCodesRequest.cc +++ b/imm/src/model/DetectQRCodesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectQRCodesRequest; - -DetectQRCodesRequest::DetectQRCodesRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectQRCodes") -{} - -DetectQRCodesRequest::~DetectQRCodesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectQRCodesRequest; + +DetectQRCodesRequest::DetectQRCodesRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectQRCodes") +{} + +DetectQRCodesRequest::~DetectQRCodesRequest() +{} + std::string DetectQRCodesRequest::getSrcUris()const { return srcUris_; diff --git a/imm/src/model/DetectQRCodesResult.cc b/imm/src/model/DetectQRCodesResult.cc index ff1481ca9..894bb7103 100644 --- a/imm/src/model/DetectQRCodesResult.cc +++ b/imm/src/model/DetectQRCodesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectQRCodesResult::DetectQRCodesResult() : - ServiceResult() -{} - -DetectQRCodesResult::DetectQRCodesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectQRCodesResult::~DetectQRCodesResult() -{} - -void DetectQRCodesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectQRCodesResult::DetectQRCodesResult() : + ServiceResult() +{} + +DetectQRCodesResult::DetectQRCodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectQRCodesResult::~DetectQRCodesResult() +{} + +void DetectQRCodesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"]; for (auto value : allSuccessDetails) { @@ -77,9 +80,9 @@ void DetectQRCodesResult::parse(const std::string &payload) failDetailsObject.errorMessage = value["ErrorMessage"].asString(); failDetails_.push_back(failDetailsObject); } - -} - + +} + std::vector DetectQRCodesResult::getSuccessDetails()const { return successDetails_; diff --git a/imm/src/model/DetectTagRequest.cc b/imm/src/model/DetectTagRequest.cc index c4b31b5f6..62f26ff17 100644 --- a/imm/src/model/DetectTagRequest.cc +++ b/imm/src/model/DetectTagRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::DetectTagRequest; - -DetectTagRequest::DetectTagRequest() : - RpcServiceRequest("imm", "2017-09-06", "DetectTag") -{} - -DetectTagRequest::~DetectTagRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::DetectTagRequest; + +DetectTagRequest::DetectTagRequest() : + RpcServiceRequest("imm", "2017-09-06", "DetectTag") +{} + +DetectTagRequest::~DetectTagRequest() +{} + std::string DetectTagRequest::getSrcUris()const { return srcUris_; diff --git a/imm/src/model/DetectTagResult.cc b/imm/src/model/DetectTagResult.cc index 23a1e80d8..b77e9969f 100644 --- a/imm/src/model/DetectTagResult.cc +++ b/imm/src/model/DetectTagResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -DetectTagResult::DetectTagResult() : - ServiceResult() -{} - -DetectTagResult::DetectTagResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectTagResult::~DetectTagResult() -{} - -void DetectTagResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectTagResult::DetectTagResult() : + ServiceResult() +{} + +DetectTagResult::DetectTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectTagResult::~DetectTagResult() +{} + +void DetectTagResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"]; for (auto value : allSuccessDetails) { @@ -78,9 +81,9 @@ void DetectTagResult::parse(const std::string &payload) } if(!value["SuccessNum"].isNull()) successNum_ = value["SuccessNum"].asString(); - -} - + +} + std::vector DetectTagResult::getSuccessDetails()const { return successDetails_; diff --git a/imm/src/model/FindImagesByTagNamesRequest.cc b/imm/src/model/FindImagesByTagNamesRequest.cc index b91162e63..8396a042c 100644 --- a/imm/src/model/FindImagesByTagNamesRequest.cc +++ b/imm/src/model/FindImagesByTagNamesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::FindImagesByTagNamesRequest; - -FindImagesByTagNamesRequest::FindImagesByTagNamesRequest() : - RpcServiceRequest("imm", "2017-09-06", "FindImagesByTagNames") -{} - -FindImagesByTagNamesRequest::~FindImagesByTagNamesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::FindImagesByTagNamesRequest; + +FindImagesByTagNamesRequest::FindImagesByTagNamesRequest() : + RpcServiceRequest("imm", "2017-09-06", "FindImagesByTagNames") +{} + +FindImagesByTagNamesRequest::~FindImagesByTagNamesRequest() +{} + std::string FindImagesByTagNamesRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/FindImagesByTagNamesResult.cc b/imm/src/model/FindImagesByTagNamesResult.cc index 440de73a9..b45b90061 100644 --- a/imm/src/model/FindImagesByTagNamesResult.cc +++ b/imm/src/model/FindImagesByTagNamesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -FindImagesByTagNamesResult::FindImagesByTagNamesResult() : - ServiceResult() -{} - -FindImagesByTagNamesResult::FindImagesByTagNamesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FindImagesByTagNamesResult::~FindImagesByTagNamesResult() -{} - -void FindImagesByTagNamesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +FindImagesByTagNamesResult::FindImagesByTagNamesResult() : + ServiceResult() +{} + +FindImagesByTagNamesResult::FindImagesByTagNamesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindImagesByTagNamesResult::~FindImagesByTagNamesResult() +{} + +void FindImagesByTagNamesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allImages = value["Images"]["Frames"]; for (auto value : allImages) { @@ -242,9 +245,9 @@ void FindImagesByTagNamesResult::parse(const std::string &payload) setId_ = value["SetId"].asString(); if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector FindImagesByTagNamesResult::getImages()const { return images_; diff --git a/imm/src/model/FindImagesRequest.cc b/imm/src/model/FindImagesRequest.cc index 816020911..e65b1e8f9 100644 --- a/imm/src/model/FindImagesRequest.cc +++ b/imm/src/model/FindImagesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::FindImagesRequest; - -FindImagesRequest::FindImagesRequest() : - RpcServiceRequest("imm", "2017-09-06", "FindImages") -{} - -FindImagesRequest::~FindImagesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::FindImagesRequest; + +FindImagesRequest::FindImagesRequest() : + RpcServiceRequest("imm", "2017-09-06", "FindImages") +{} + +FindImagesRequest::~FindImagesRequest() +{} + std::string FindImagesRequest::getGender()const { return gender_; diff --git a/imm/src/model/FindImagesResult.cc b/imm/src/model/FindImagesResult.cc index 47d0e9e21..2f0891121 100644 --- a/imm/src/model/FindImagesResult.cc +++ b/imm/src/model/FindImagesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -FindImagesResult::FindImagesResult() : - ServiceResult() -{} - -FindImagesResult::FindImagesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FindImagesResult::~FindImagesResult() -{} - -void FindImagesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +FindImagesResult::FindImagesResult() : + ServiceResult() +{} + +FindImagesResult::FindImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindImagesResult::~FindImagesResult() +{} + +void FindImagesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allImages = value["Images"]["ImagesItem"]; for (auto value : allImages) { @@ -242,9 +245,9 @@ void FindImagesResult::parse(const std::string &payload) setId_ = value["SetId"].asString(); if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector FindImagesResult::getImages()const { return images_; diff --git a/imm/src/model/FindSimilarFacesRequest.cc b/imm/src/model/FindSimilarFacesRequest.cc index fbee6756e..e05c05d36 100644 --- a/imm/src/model/FindSimilarFacesRequest.cc +++ b/imm/src/model/FindSimilarFacesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::FindSimilarFacesRequest; - -FindSimilarFacesRequest::FindSimilarFacesRequest() : - RpcServiceRequest("imm", "2017-09-06", "FindSimilarFaces") -{} - -FindSimilarFacesRequest::~FindSimilarFacesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::FindSimilarFacesRequest; + +FindSimilarFacesRequest::FindSimilarFacesRequest() : + RpcServiceRequest("imm", "2017-09-06", "FindSimilarFaces") +{} + +FindSimilarFacesRequest::~FindSimilarFacesRequest() +{} + std::string FindSimilarFacesRequest::getImageUri()const { return imageUri_; @@ -58,6 +58,17 @@ void FindSimilarFacesRequest::setMinSimilarity(float minSimilarity) setCoreParameter("MinSimilarity", std::to_string(minSimilarity)); } +std::string FindSimilarFacesRequest::getResponseFormat()const +{ + return responseFormat_; +} + +void FindSimilarFacesRequest::setResponseFormat(const std::string& responseFormat) +{ + responseFormat_ = responseFormat; + setCoreParameter("ResponseFormat", responseFormat); +} + int FindSimilarFacesRequest::getLimit()const { return limit_; diff --git a/imm/src/model/FindSimilarFacesResult.cc b/imm/src/model/FindSimilarFacesResult.cc index bbb1c3334..900410743 100644 --- a/imm/src/model/FindSimilarFacesResult.cc +++ b/imm/src/model/FindSimilarFacesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -FindSimilarFacesResult::FindSimilarFacesResult() : - ServiceResult() -{} - -FindSimilarFacesResult::FindSimilarFacesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FindSimilarFacesResult::~FindSimilarFacesResult() -{} - -void FindSimilarFacesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +FindSimilarFacesResult::FindSimilarFacesResult() : + ServiceResult() +{} + +FindSimilarFacesResult::FindSimilarFacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindSimilarFacesResult::~FindSimilarFacesResult() +{} + +void FindSimilarFacesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFaces = value["Faces"]["FacesItem"]; for (auto value : allFaces) { @@ -50,21 +53,43 @@ void FindSimilarFacesResult::parse(const std::string &payload) facesObject.imageUri = value["ImageUri"].asString(); if(!value["Similarity"].isNull()) facesObject.similarity = std::stof(value["Similarity"].asString()); + auto allSimilarFaces = value["SimilarFaces"]["SimilarFacesItem"]; + for (auto value : allSimilarFaces) + { + FacesItem::SimilarFacesItem similarFacesObject; + if(!value["FaceId"].isNull()) + similarFacesObject.faceId = value["FaceId"].asString(); + if(!value["ImageUri"].isNull()) + similarFacesObject.imageUri = value["ImageUri"].asString(); + if(!value["Similarity"].isNull()) + similarFacesObject.similarity = std::stof(value["Similarity"].asString()); + auto faceAttributes1Node = value["FaceAttributes"]; + auto faceBoundaryNode = faceAttributes1Node["FaceBoundary"]; + if(!faceBoundaryNode["Left"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + if(!faceBoundaryNode["Top"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + facesObject.similarFaces.push_back(similarFacesObject); + } auto faceAttributesNode = value["FaceAttributes"]; - auto faceBoundaryNode = faceAttributesNode["FaceBoundary"]; - if(!faceBoundaryNode["Left"].isNull()) - facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); - if(!faceBoundaryNode["Top"].isNull()) - facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); - if(!faceBoundaryNode["Width"].isNull()) - facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); - if(!faceBoundaryNode["Height"].isNull()) - facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + auto faceBoundary2Node = faceAttributesNode["FaceBoundary"]; + if(!faceBoundary2Node["Left"].isNull()) + facesObject.faceAttributes.faceBoundary2.left = std::stoi(faceBoundary2Node["Left"].asString()); + if(!faceBoundary2Node["Top"].isNull()) + facesObject.faceAttributes.faceBoundary2.top = std::stoi(faceBoundary2Node["Top"].asString()); + if(!faceBoundary2Node["Width"].isNull()) + facesObject.faceAttributes.faceBoundary2.width = std::stoi(faceBoundary2Node["Width"].asString()); + if(!faceBoundary2Node["Height"].isNull()) + facesObject.faceAttributes.faceBoundary2.height = std::stoi(faceBoundary2Node["Height"].asString()); faces_.push_back(facesObject); } - -} - + +} + std::vector FindSimilarFacesResult::getFaces()const { return faces_; diff --git a/imm/src/model/GetDocIndexRequest.cc b/imm/src/model/GetDocIndexRequest.cc index 7a0d0ee18..27f431373 100644 --- a/imm/src/model/GetDocIndexRequest.cc +++ b/imm/src/model/GetDocIndexRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetDocIndexRequest; - -GetDocIndexRequest::GetDocIndexRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetDocIndex") -{} - -GetDocIndexRequest::~GetDocIndexRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetDocIndexRequest; + +GetDocIndexRequest::GetDocIndexRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetDocIndex") +{} + +GetDocIndexRequest::~GetDocIndexRequest() +{} + std::string GetDocIndexRequest::getSet()const { return set_; diff --git a/imm/src/model/GetDocIndexResult.cc b/imm/src/model/GetDocIndexResult.cc index 4a58e70a8..98980e4b4 100644 --- a/imm/src/model/GetDocIndexResult.cc +++ b/imm/src/model/GetDocIndexResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetDocIndexResult::GetDocIndexResult() : - ServiceResult() -{} - -GetDocIndexResult::GetDocIndexResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDocIndexResult::~GetDocIndexResult() -{} - -void GetDocIndexResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetDocIndexResult::GetDocIndexResult() : + ServiceResult() +{} + +GetDocIndexResult::GetDocIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDocIndexResult::~GetDocIndexResult() +{} + +void GetDocIndexResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["IndexCreatedTime"].isNull()) indexCreatedTime_ = value["IndexCreatedTime"].asString(); if(!value["IndexModifiedTime"].isNull()) @@ -70,9 +73,9 @@ void GetDocIndexResult::parse(const std::string &payload) customKey5_ = value["CustomKey5"].asString(); if(!value["CustomKey6"].isNull()) customKey6_ = value["CustomKey6"].asString(); - -} - + +} + std::string GetDocIndexResult::getCustomKey4()const { return customKey4_; diff --git a/imm/src/model/GetDocIndexTaskRequest.cc b/imm/src/model/GetDocIndexTaskRequest.cc index e251bfde3..5f659ccee 100644 --- a/imm/src/model/GetDocIndexTaskRequest.cc +++ b/imm/src/model/GetDocIndexTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetDocIndexTaskRequest; - -GetDocIndexTaskRequest::GetDocIndexTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetDocIndexTask") -{} - -GetDocIndexTaskRequest::~GetDocIndexTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetDocIndexTaskRequest; + +GetDocIndexTaskRequest::GetDocIndexTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetDocIndexTask") +{} + +GetDocIndexTaskRequest::~GetDocIndexTaskRequest() +{} + std::string GetDocIndexTaskRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetDocIndexTaskResult.cc b/imm/src/model/GetDocIndexTaskResult.cc index 4a81d2c22..1863245a4 100644 --- a/imm/src/model/GetDocIndexTaskResult.cc +++ b/imm/src/model/GetDocIndexTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetDocIndexTaskResult::GetDocIndexTaskResult() : - ServiceResult() -{} - -GetDocIndexTaskResult::GetDocIndexTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDocIndexTaskResult::~GetDocIndexTaskResult() -{} - -void GetDocIndexTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetDocIndexTaskResult::GetDocIndexTaskResult() : + ServiceResult() +{} + +GetDocIndexTaskResult::GetDocIndexTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDocIndexTaskResult::~GetDocIndexTaskResult() +{} + +void GetDocIndexTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto failDetailNode = value["FailDetail"]; if(!failDetailNode["Code"].isNull()) failDetail_.code = failDetailNode["Code"].asString(); @@ -51,9 +54,9 @@ void GetDocIndexTaskResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["FinishTime"].isNull()) finishTime_ = value["FinishTime"].asString(); - -} - + +} + std::string GetDocIndexTaskResult::getStatus()const { return status_; diff --git a/imm/src/model/GetFaceSearchGroupRequest.cc b/imm/src/model/GetFaceSearchGroupRequest.cc index 926d350f5..9751e7f3a 100644 --- a/imm/src/model/GetFaceSearchGroupRequest.cc +++ b/imm/src/model/GetFaceSearchGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetFaceSearchGroupRequest; - -GetFaceSearchGroupRequest::GetFaceSearchGroupRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchGroup") -{} - -GetFaceSearchGroupRequest::~GetFaceSearchGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetFaceSearchGroupRequest; + +GetFaceSearchGroupRequest::GetFaceSearchGroupRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchGroup") +{} + +GetFaceSearchGroupRequest::~GetFaceSearchGroupRequest() +{} + std::string GetFaceSearchGroupRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetFaceSearchGroupResult.cc b/imm/src/model/GetFaceSearchGroupResult.cc index 368768187..c651ac9b2 100644 --- a/imm/src/model/GetFaceSearchGroupResult.cc +++ b/imm/src/model/GetFaceSearchGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetFaceSearchGroupResult::GetFaceSearchGroupResult() : - ServiceResult() -{} - -GetFaceSearchGroupResult::GetFaceSearchGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetFaceSearchGroupResult::~GetFaceSearchGroupResult() -{} - -void GetFaceSearchGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetFaceSearchGroupResult::GetFaceSearchGroupResult() : + ServiceResult() +{} + +GetFaceSearchGroupResult::GetFaceSearchGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFaceSearchGroupResult::~GetFaceSearchGroupResult() +{} + +void GetFaceSearchGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["GroupName"].isNull()) groupName_ = value["GroupName"].asString(); if(!value["Count"].isNull()) @@ -52,9 +55,9 @@ void GetFaceSearchGroupResult::parse(const std::string &payload) modifyTime_ = value["ModifyTime"].asString(); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); - -} - + +} + std::string GetFaceSearchGroupResult::getGroupName()const { return groupName_; diff --git a/imm/src/model/GetFaceSearchImageRequest.cc b/imm/src/model/GetFaceSearchImageRequest.cc index 585700129..13fe37959 100644 --- a/imm/src/model/GetFaceSearchImageRequest.cc +++ b/imm/src/model/GetFaceSearchImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetFaceSearchImageRequest; - -GetFaceSearchImageRequest::GetFaceSearchImageRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchImage") -{} - -GetFaceSearchImageRequest::~GetFaceSearchImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetFaceSearchImageRequest; + +GetFaceSearchImageRequest::GetFaceSearchImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchImage") +{} + +GetFaceSearchImageRequest::~GetFaceSearchImageRequest() +{} + std::string GetFaceSearchImageRequest::getImageId()const { return imageId_; diff --git a/imm/src/model/GetFaceSearchImageResult.cc b/imm/src/model/GetFaceSearchImageResult.cc index 3937c5b77..101e2c397 100644 --- a/imm/src/model/GetFaceSearchImageResult.cc +++ b/imm/src/model/GetFaceSearchImageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetFaceSearchImageResult::GetFaceSearchImageResult() : - ServiceResult() -{} - -GetFaceSearchImageResult::GetFaceSearchImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetFaceSearchImageResult::~GetFaceSearchImageResult() -{} - -void GetFaceSearchImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetFaceSearchImageResult::GetFaceSearchImageResult() : + ServiceResult() +{} + +GetFaceSearchImageResult::GetFaceSearchImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFaceSearchImageResult::~GetFaceSearchImageResult() +{} + +void GetFaceSearchImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAxis = value["Axis"]["Axis"]; for (const auto &item : allAxis) axis_.push_back(item.asString()); @@ -73,9 +76,9 @@ void GetFaceSearchImageResult::parse(const std::string &payload) imageId_ = value["ImageId"].asString(); if(!value["User"].isNull()) user_ = value["User"].asString(); - -} - + +} + std::string GetFaceSearchImageResult::getGroupName()const { return groupName_; diff --git a/imm/src/model/GetFaceSearchUserRequest.cc b/imm/src/model/GetFaceSearchUserRequest.cc index 0252b83b1..eb0e36764 100644 --- a/imm/src/model/GetFaceSearchUserRequest.cc +++ b/imm/src/model/GetFaceSearchUserRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetFaceSearchUserRequest; - -GetFaceSearchUserRequest::GetFaceSearchUserRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchUser") -{} - -GetFaceSearchUserRequest::~GetFaceSearchUserRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetFaceSearchUserRequest; + +GetFaceSearchUserRequest::GetFaceSearchUserRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchUser") +{} + +GetFaceSearchUserRequest::~GetFaceSearchUserRequest() +{} + std::string GetFaceSearchUserRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetFaceSearchUserResult.cc b/imm/src/model/GetFaceSearchUserResult.cc index 3e7de2b58..d3f347e1e 100644 --- a/imm/src/model/GetFaceSearchUserResult.cc +++ b/imm/src/model/GetFaceSearchUserResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetFaceSearchUserResult::GetFaceSearchUserResult() : - ServiceResult() -{} - -GetFaceSearchUserResult::GetFaceSearchUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetFaceSearchUserResult::~GetFaceSearchUserResult() -{} - -void GetFaceSearchUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetFaceSearchUserResult::GetFaceSearchUserResult() : + ServiceResult() +{} + +GetFaceSearchUserResult::GetFaceSearchUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFaceSearchUserResult::~GetFaceSearchUserResult() +{} + +void GetFaceSearchUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["GroupName"].isNull()) groupName_ = value["GroupName"].asString(); if(!value["Count"].isNull()) @@ -54,9 +57,9 @@ void GetFaceSearchUserResult::parse(const std::string &payload) groupId_ = value["GroupId"].asString(); if(!value["User"].isNull()) user_ = value["User"].asString(); - -} - + +} + std::string GetFaceSearchUserResult::getGroupName()const { return groupName_; diff --git a/imm/src/model/GetImageJobRequest.cc b/imm/src/model/GetImageJobRequest.cc index 398fa235e..783699271 100644 --- a/imm/src/model/GetImageJobRequest.cc +++ b/imm/src/model/GetImageJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetImageJobRequest; - -GetImageJobRequest::GetImageJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetImageJob") -{} - -GetImageJobRequest::~GetImageJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetImageJobRequest; + +GetImageJobRequest::GetImageJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetImageJob") +{} + +GetImageJobRequest::~GetImageJobRequest() +{} + std::string GetImageJobRequest::getJobId()const { return jobId_; diff --git a/imm/src/model/GetImageJobResult.cc b/imm/src/model/GetImageJobResult.cc index bc7052a35..56c1a8f5b 100644 --- a/imm/src/model/GetImageJobResult.cc +++ b/imm/src/model/GetImageJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetImageJobResult::GetImageJobResult() : - ServiceResult() -{} - -GetImageJobResult::GetImageJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetImageJobResult::~GetImageJobResult() -{} - -void GetImageJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetImageJobResult::GetImageJobResult() : + ServiceResult() +{} + +GetImageJobResult::GetImageJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageJobResult::~GetImageJobResult() +{} + +void GetImageJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); if(!value["JobType"].isNull()) @@ -62,9 +65,9 @@ void GetImageJobResult::parse(const std::string &payload) notifyTopicName_ = value["NotifyTopicName"].asString(); if(!value["Progress"].isNull()) progress_ = std::stoi(value["Progress"].asString()); - -} - + +} + std::string GetImageJobResult::getStatus()const { return status_; diff --git a/imm/src/model/GetImageRequest.cc b/imm/src/model/GetImageRequest.cc index c3531219d..32b1c9d25 100644 --- a/imm/src/model/GetImageRequest.cc +++ b/imm/src/model/GetImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetImageRequest; - -GetImageRequest::GetImageRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetImage") -{} - -GetImageRequest::~GetImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetImageRequest; + +GetImageRequest::GetImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetImage") +{} + +GetImageRequest::~GetImageRequest() +{} + std::string GetImageRequest::getImageUri()const { return imageUri_; diff --git a/imm/src/model/GetImageResult.cc b/imm/src/model/GetImageResult.cc index c10968b42..f7b82b6cb 100644 --- a/imm/src/model/GetImageResult.cc +++ b/imm/src/model/GetImageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::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()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetImageResult::GetImageResult() : + ServiceResult() +{} + +GetImageResult::GetImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageResult::~GetImageResult() +{} + +void GetImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFaces = value["Faces"]["FacesItem"]; for (auto value : allFaces) { @@ -232,9 +235,9 @@ void GetImageResult::parse(const std::string &payload) remarksD_ = value["RemarksD"].asString(); if(!value["ExternalId"].isNull()) externalId_ = value["ExternalId"].asString(); - -} - + +} + std::string GetImageResult::getModifyTime()const { return modifyTime_; diff --git a/imm/src/model/GetMediaMetaRequest.cc b/imm/src/model/GetMediaMetaRequest.cc index a0cf75757..52b8ed77c 100644 --- a/imm/src/model/GetMediaMetaRequest.cc +++ b/imm/src/model/GetMediaMetaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetMediaMetaRequest; - -GetMediaMetaRequest::GetMediaMetaRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetMediaMeta") -{} - -GetMediaMetaRequest::~GetMediaMetaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetMediaMetaRequest; + +GetMediaMetaRequest::GetMediaMetaRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetMediaMeta") +{} + +GetMediaMetaRequest::~GetMediaMetaRequest() +{} + std::string GetMediaMetaRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetMediaMetaResult.cc b/imm/src/model/GetMediaMetaResult.cc index 2fe047a05..75f9621eb 100644 --- a/imm/src/model/GetMediaMetaResult.cc +++ b/imm/src/model/GetMediaMetaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetMediaMetaResult::GetMediaMetaResult() : - ServiceResult() -{} - -GetMediaMetaResult::GetMediaMetaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetMediaMetaResult::~GetMediaMetaResult() -{} - -void GetMediaMetaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetMediaMetaResult::GetMediaMetaResult() : + ServiceResult() +{} + +GetMediaMetaResult::GetMediaMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMediaMetaResult::~GetMediaMetaResult() +{} + +void GetMediaMetaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto mediaMetaNode = value["MediaMeta"]; auto mediaFormatNode = mediaMetaNode["MediaFormat"]; if(!mediaFormatNode["NumberStreams"].isNull()) @@ -163,9 +166,9 @@ void GetMediaMetaResult::parse(const std::string &payload) } if(!value["MediaUri"].isNull()) mediaUri_ = value["MediaUri"].asString(); - -} - + +} + std::string GetMediaMetaResult::getMediaUri()const { return mediaUri_; diff --git a/imm/src/model/GetOfficeConversionTaskRequest.cc b/imm/src/model/GetOfficeConversionTaskRequest.cc index 43863f90e..3612671bf 100644 --- a/imm/src/model/GetOfficeConversionTaskRequest.cc +++ b/imm/src/model/GetOfficeConversionTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetOfficeConversionTaskRequest; - -GetOfficeConversionTaskRequest::GetOfficeConversionTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetOfficeConversionTask") -{} - -GetOfficeConversionTaskRequest::~GetOfficeConversionTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetOfficeConversionTaskRequest; + +GetOfficeConversionTaskRequest::GetOfficeConversionTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetOfficeConversionTask") +{} + +GetOfficeConversionTaskRequest::~GetOfficeConversionTaskRequest() +{} + std::string GetOfficeConversionTaskRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetOfficeConversionTaskResult.cc b/imm/src/model/GetOfficeConversionTaskResult.cc index ddca2330e..6bbea4b56 100644 --- a/imm/src/model/GetOfficeConversionTaskResult.cc +++ b/imm/src/model/GetOfficeConversionTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetOfficeConversionTaskResult::GetOfficeConversionTaskResult() : - ServiceResult() -{} - -GetOfficeConversionTaskResult::GetOfficeConversionTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetOfficeConversionTaskResult::~GetOfficeConversionTaskResult() -{} - -void GetOfficeConversionTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetOfficeConversionTaskResult::GetOfficeConversionTaskResult() : + ServiceResult() +{} + +GetOfficeConversionTaskResult::GetOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOfficeConversionTaskResult::~GetOfficeConversionTaskResult() +{} + +void GetOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto failDetailNode = value["FailDetail"]; if(!failDetailNode["Code"].isNull()) failDetail_.code = failDetailNode["Code"].asString(); @@ -69,9 +72,9 @@ void GetOfficeConversionTaskResult::parse(const std::string &payload) finishTime_ = value["FinishTime"].asString(); if(!value["SrcUri"].isNull()) srcUri_ = value["SrcUri"].asString(); - -} - + +} + std::string GetOfficeConversionTaskResult::getStatus()const { return status_; diff --git a/imm/src/model/GetPhotoProcessTaskRequest.cc b/imm/src/model/GetPhotoProcessTaskRequest.cc index e903c317f..56a99e6e6 100644 --- a/imm/src/model/GetPhotoProcessTaskRequest.cc +++ b/imm/src/model/GetPhotoProcessTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetPhotoProcessTaskRequest; - -GetPhotoProcessTaskRequest::GetPhotoProcessTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetPhotoProcessTask") -{} - -GetPhotoProcessTaskRequest::~GetPhotoProcessTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetPhotoProcessTaskRequest; + +GetPhotoProcessTaskRequest::GetPhotoProcessTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetPhotoProcessTask") +{} + +GetPhotoProcessTaskRequest::~GetPhotoProcessTaskRequest() +{} + std::string GetPhotoProcessTaskRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetPhotoProcessTaskResult.cc b/imm/src/model/GetPhotoProcessTaskResult.cc index 5de867e01..486eb07cf 100644 --- a/imm/src/model/GetPhotoProcessTaskResult.cc +++ b/imm/src/model/GetPhotoProcessTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetPhotoProcessTaskResult::GetPhotoProcessTaskResult() : - ServiceResult() -{} - -GetPhotoProcessTaskResult::GetPhotoProcessTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetPhotoProcessTaskResult::~GetPhotoProcessTaskResult() -{} - -void GetPhotoProcessTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetPhotoProcessTaskResult::GetPhotoProcessTaskResult() : + ServiceResult() +{} + +GetPhotoProcessTaskResult::GetPhotoProcessTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPhotoProcessTaskResult::~GetPhotoProcessTaskResult() +{} + +void GetPhotoProcessTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["Status"].isNull()) @@ -62,9 +65,9 @@ void GetPhotoProcessTaskResult::parse(const std::string &payload) finishTime_ = value["FinishTime"].asString(); if(!value["Percent"].isNull()) percent_ = std::stoi(value["Percent"].asString()); - -} - + +} + std::string GetPhotoProcessTaskResult::getStatus()const { return status_; diff --git a/imm/src/model/GetPornBatchDetectJobRequest.cc b/imm/src/model/GetPornBatchDetectJobRequest.cc index f5c392a89..0f148a6dc 100644 --- a/imm/src/model/GetPornBatchDetectJobRequest.cc +++ b/imm/src/model/GetPornBatchDetectJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetPornBatchDetectJobRequest; - -GetPornBatchDetectJobRequest::GetPornBatchDetectJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetPornBatchDetectJob") -{} - -GetPornBatchDetectJobRequest::~GetPornBatchDetectJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetPornBatchDetectJobRequest; + +GetPornBatchDetectJobRequest::GetPornBatchDetectJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetPornBatchDetectJob") +{} + +GetPornBatchDetectJobRequest::~GetPornBatchDetectJobRequest() +{} + std::string GetPornBatchDetectJobRequest::getJobId()const { return jobId_; diff --git a/imm/src/model/GetPornBatchDetectJobResult.cc b/imm/src/model/GetPornBatchDetectJobResult.cc index 8630e777c..b876dede5 100644 --- a/imm/src/model/GetPornBatchDetectJobResult.cc +++ b/imm/src/model/GetPornBatchDetectJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetPornBatchDetectJobResult::GetPornBatchDetectJobResult() : - ServiceResult() -{} - -GetPornBatchDetectJobResult::GetPornBatchDetectJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetPornBatchDetectJobResult::~GetPornBatchDetectJobResult() -{} - -void GetPornBatchDetectJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetPornBatchDetectJobResult::GetPornBatchDetectJobResult() : + ServiceResult() +{} + +GetPornBatchDetectJobResult::GetPornBatchDetectJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPornBatchDetectJobResult::~GetPornBatchDetectJobResult() +{} + +void GetPornBatchDetectJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); if(!value["SrcUri"].isNull()) @@ -60,9 +63,9 @@ void GetPornBatchDetectJobResult::parse(const std::string &payload) finishTime_ = value["FinishTime"].asString(); if(!value["Percent"].isNull()) percent_ = std::stoi(value["Percent"].asString()); - -} - + +} + std::string GetPornBatchDetectJobResult::getStatus()const { return status_; diff --git a/imm/src/model/GetProjectRequest.cc b/imm/src/model/GetProjectRequest.cc index 02a53214d..1628b8959 100644 --- a/imm/src/model/GetProjectRequest.cc +++ b/imm/src/model/GetProjectRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetProjectRequest; - -GetProjectRequest::GetProjectRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetProject") -{} - -GetProjectRequest::~GetProjectRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetProjectRequest; + +GetProjectRequest::GetProjectRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetProject") +{} + +GetProjectRequest::~GetProjectRequest() +{} + std::string GetProjectRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetProjectResult.cc b/imm/src/model/GetProjectResult.cc index 8948c4a07..ef99ceacf 100644 --- a/imm/src/model/GetProjectResult.cc +++ b/imm/src/model/GetProjectResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetProjectResult::GetProjectResult() : - ServiceResult() -{} - -GetProjectResult::GetProjectResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetProjectResult::~GetProjectResult() -{} - -void GetProjectResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetProjectResult::GetProjectResult() : + ServiceResult() +{} + +GetProjectResult::GetProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectResult::~GetProjectResult() +{} + +void GetProjectResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Project"].isNull()) project_ = value["Project"].asString(); if(!value["ServiceRole"].isNull()) @@ -56,9 +59,9 @@ void GetProjectResult::parse(const std::string &payload) cU_ = std::stoi(value["CU"].asString()); if(!value["BillingType"].isNull()) billingType_ = value["BillingType"].asString(); - -} - + +} + std::string GetProjectResult::getProject()const { return project_; diff --git a/imm/src/model/GetSetRequest.cc b/imm/src/model/GetSetRequest.cc index 748c84126..02f98bf8b 100644 --- a/imm/src/model/GetSetRequest.cc +++ b/imm/src/model/GetSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetSetRequest; - -GetSetRequest::GetSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetSet") -{} - -GetSetRequest::~GetSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetSetRequest; + +GetSetRequest::GetSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetSet") +{} + +GetSetRequest::~GetSetRequest() +{} + std::string GetSetRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetSetResult.cc b/imm/src/model/GetSetResult.cc index 4ad586182..70f12fa96 100644 --- a/imm/src/model/GetSetResult.cc +++ b/imm/src/model/GetSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetSetResult::GetSetResult() : - ServiceResult() -{} - -GetSetResult::GetSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSetResult::~GetSetResult() -{} - -void GetSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetSetResult::GetSetResult() : + ServiceResult() +{} + +GetSetResult::GetSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSetResult::~GetSetResult() +{} + +void GetSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["SetName"].isNull()) @@ -56,9 +59,9 @@ void GetSetResult::parse(const std::string &payload) videoCount_ = std::stoi(value["VideoCount"].asString()); if(!value["VideoLength"].isNull()) videoLength_ = std::stoi(value["VideoLength"].asString()); - -} - + +} + std::string GetSetResult::getModifyTime()const { return modifyTime_; diff --git a/imm/src/model/GetTagJobRequest.cc b/imm/src/model/GetTagJobRequest.cc index fc663ebfe..136a4ce6f 100644 --- a/imm/src/model/GetTagJobRequest.cc +++ b/imm/src/model/GetTagJobRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetTagJobRequest; - -GetTagJobRequest::GetTagJobRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetTagJob") -{} - -GetTagJobRequest::~GetTagJobRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetTagJobRequest; + +GetTagJobRequest::GetTagJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetTagJob") +{} + +GetTagJobRequest::~GetTagJobRequest() +{} + std::string GetTagJobRequest::getJobId()const { return jobId_; diff --git a/imm/src/model/GetTagJobResult.cc b/imm/src/model/GetTagJobResult.cc index 6fafc78a3..0bd4a098e 100644 --- a/imm/src/model/GetTagJobResult.cc +++ b/imm/src/model/GetTagJobResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetTagJobResult::GetTagJobResult() : - ServiceResult() -{} - -GetTagJobResult::GetTagJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetTagJobResult::~GetTagJobResult() -{} - -void GetTagJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetTagJobResult::GetTagJobResult() : + ServiceResult() +{} + +GetTagJobResult::GetTagJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTagJobResult::~GetTagJobResult() +{} + +void GetTagJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); if(!value["SetId"].isNull()) @@ -54,9 +57,9 @@ void GetTagJobResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["FinishTime"].isNull()) finishTime_ = value["FinishTime"].asString(); - -} - + +} + std::string GetTagJobResult::getStatus()const { return status_; diff --git a/imm/src/model/GetTagSetRequest.cc b/imm/src/model/GetTagSetRequest.cc index 8860adb06..abb3a6b26 100644 --- a/imm/src/model/GetTagSetRequest.cc +++ b/imm/src/model/GetTagSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetTagSetRequest; - -GetTagSetRequest::GetTagSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetTagSet") -{} - -GetTagSetRequest::~GetTagSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetTagSetRequest; + +GetTagSetRequest::GetTagSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetTagSet") +{} + +GetTagSetRequest::~GetTagSetRequest() +{} + std::string GetTagSetRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/GetTagSetResult.cc b/imm/src/model/GetTagSetResult.cc index d109344c2..3f3c69449 100644 --- a/imm/src/model/GetTagSetResult.cc +++ b/imm/src/model/GetTagSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetTagSetResult::GetTagSetResult() : - ServiceResult() -{} - -GetTagSetResult::GetTagSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetTagSetResult::~GetTagSetResult() -{} - -void GetTagSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetTagSetResult::GetTagSetResult() : + ServiceResult() +{} + +GetTagSetResult::GetTagSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTagSetResult::~GetTagSetResult() +{} + +void GetTagSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["Status"].isNull()) @@ -50,9 +53,9 @@ void GetTagSetResult::parse(const std::string &payload) modifyTime_ = value["ModifyTime"].asString(); if(!value["Photos"].isNull()) photos_ = std::stol(value["Photos"].asString()); - -} - + +} + std::string GetTagSetResult::getStatus()const { return status_; diff --git a/imm/src/model/GetVideoRequest.cc b/imm/src/model/GetVideoRequest.cc index 7b167817f..036109eb1 100644 --- a/imm/src/model/GetVideoRequest.cc +++ b/imm/src/model/GetVideoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetVideoRequest; - -GetVideoRequest::GetVideoRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetVideo") -{} - -GetVideoRequest::~GetVideoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetVideoRequest; + +GetVideoRequest::GetVideoRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetVideo") +{} + +GetVideoRequest::~GetVideoRequest() +{} + std::string GetVideoRequest::getVideoUri()const { return videoUri_; diff --git a/imm/src/model/GetVideoResult.cc b/imm/src/model/GetVideoResult.cc index cfbb871bc..6e316bdbe 100644 --- a/imm/src/model/GetVideoResult.cc +++ b/imm/src/model/GetVideoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetVideoResult::GetVideoResult() : - ServiceResult() -{} - -GetVideoResult::GetVideoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetVideoResult::~GetVideoResult() -{} - -void GetVideoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetVideoResult::GetVideoResult() : + ServiceResult() +{} + +GetVideoResult::GetVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVideoResult::~GetVideoResult() +{} + +void GetVideoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCelebrity = value["Celebrity"]["CelebrityItem"]; for (auto value : allCelebrity) { @@ -134,9 +137,9 @@ void GetVideoResult::parse(const std::string &payload) remarksD_ = value["RemarksD"].asString(); if(!value["ExternalId"].isNull()) externalId_ = value["ExternalId"].asString(); - -} - + +} + std::string GetVideoResult::getModifyTime()const { return modifyTime_; diff --git a/imm/src/model/GetVideoTaskRequest.cc b/imm/src/model/GetVideoTaskRequest.cc index ada508f93..9be068dd0 100644 --- a/imm/src/model/GetVideoTaskRequest.cc +++ b/imm/src/model/GetVideoTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::GetVideoTaskRequest; - -GetVideoTaskRequest::GetVideoTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "GetVideoTask") -{} - -GetVideoTaskRequest::~GetVideoTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::GetVideoTaskRequest; + +GetVideoTaskRequest::GetVideoTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetVideoTask") +{} + +GetVideoTaskRequest::~GetVideoTaskRequest() +{} + std::string GetVideoTaskRequest::getTaskType()const { return taskType_; diff --git a/imm/src/model/GetVideoTaskResult.cc b/imm/src/model/GetVideoTaskResult.cc index 5a1d871e2..8308b1278 100644 --- a/imm/src/model/GetVideoTaskResult.cc +++ b/imm/src/model/GetVideoTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetVideoTaskResult::GetVideoTaskResult() : - ServiceResult() -{} - -GetVideoTaskResult::GetVideoTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetVideoTaskResult::~GetVideoTaskResult() -{} - -void GetVideoTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetVideoTaskResult::GetVideoTaskResult() : + ServiceResult() +{} + +GetVideoTaskResult::GetVideoTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVideoTaskResult::~GetVideoTaskResult() +{} + +void GetVideoTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["TaskType"].isNull()) @@ -62,9 +65,9 @@ void GetVideoTaskResult::parse(const std::string &payload) notifyTopicName_ = value["NotifyTopicName"].asString(); if(!value["Progress"].isNull()) progress_ = std::stoi(value["Progress"].asString()); - -} - + +} + std::string GetVideoTaskResult::getStatus()const { return status_; diff --git a/imm/src/model/IndexImageRequest.cc b/imm/src/model/IndexImageRequest.cc index ae09c5799..f9356dfa9 100644 --- a/imm/src/model/IndexImageRequest.cc +++ b/imm/src/model/IndexImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::IndexImageRequest; - -IndexImageRequest::IndexImageRequest() : - RpcServiceRequest("imm", "2017-09-06", "IndexImage") -{} - -IndexImageRequest::~IndexImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::IndexImageRequest; + +IndexImageRequest::IndexImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "IndexImage") +{} + +IndexImageRequest::~IndexImageRequest() +{} + std::string IndexImageRequest::getRemarksB()const { return remarksB_; diff --git a/imm/src/model/IndexImageResult.cc b/imm/src/model/IndexImageResult.cc index 978af3888..4374b481c 100644 --- a/imm/src/model/IndexImageResult.cc +++ b/imm/src/model/IndexImageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -IndexImageResult::IndexImageResult() : - ServiceResult() -{} - -IndexImageResult::IndexImageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -IndexImageResult::~IndexImageResult() -{} - -void IndexImageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexImageResult::IndexImageResult() : + ServiceResult() +{} + +IndexImageResult::IndexImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexImageResult::~IndexImageResult() +{} + +void IndexImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["ImageUri"].isNull()) @@ -58,9 +61,9 @@ void IndexImageResult::parse(const std::string &payload) remarksD_ = value["RemarksD"].asString(); if(!value["ExternalId"].isNull()) externalId_ = value["ExternalId"].asString(); - -} - + +} + std::string IndexImageResult::getModifyTime()const { return modifyTime_; diff --git a/imm/src/model/IndexTagRequest.cc b/imm/src/model/IndexTagRequest.cc index 3232f78d6..3fba029fe 100644 --- a/imm/src/model/IndexTagRequest.cc +++ b/imm/src/model/IndexTagRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::IndexTagRequest; - -IndexTagRequest::IndexTagRequest() : - RpcServiceRequest("imm", "2017-09-06", "IndexTag") -{} - -IndexTagRequest::~IndexTagRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::IndexTagRequest; + +IndexTagRequest::IndexTagRequest() : + RpcServiceRequest("imm", "2017-09-06", "IndexTag") +{} + +IndexTagRequest::~IndexTagRequest() +{} + std::string IndexTagRequest::getSrcUris()const { return srcUris_; diff --git a/imm/src/model/IndexTagResult.cc b/imm/src/model/IndexTagResult.cc index 337516ffa..280ba15c3 100644 --- a/imm/src/model/IndexTagResult.cc +++ b/imm/src/model/IndexTagResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -IndexTagResult::IndexTagResult() : - ServiceResult() -{} - -IndexTagResult::IndexTagResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -IndexTagResult::~IndexTagResult() -{} - -void IndexTagResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexTagResult::IndexTagResult() : + ServiceResult() +{} + +IndexTagResult::IndexTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexTagResult::~IndexTagResult() +{} + +void IndexTagResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFailDetails = value["FailDetails"]["FailDetailsItem"]; for (auto value : allFailDetails) { @@ -80,9 +83,9 @@ void IndexTagResult::parse(const std::string &payload) setId_ = value["SetId"].asString(); if(!value["SuccessIndexNum"].isNull()) successIndexNum_ = value["SuccessIndexNum"].asString(); - -} - + +} + std::vector IndexTagResult::getSuccessDetails()const { return successDetails_; diff --git a/imm/src/model/IndexVideoRequest.cc b/imm/src/model/IndexVideoRequest.cc index f498300a4..65959f53e 100644 --- a/imm/src/model/IndexVideoRequest.cc +++ b/imm/src/model/IndexVideoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::IndexVideoRequest; - -IndexVideoRequest::IndexVideoRequest() : - RpcServiceRequest("imm", "2017-09-06", "IndexVideo") -{} - -IndexVideoRequest::~IndexVideoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::IndexVideoRequest; + +IndexVideoRequest::IndexVideoRequest() : + RpcServiceRequest("imm", "2017-09-06", "IndexVideo") +{} + +IndexVideoRequest::~IndexVideoRequest() +{} + std::string IndexVideoRequest::getGrabType()const { return grabType_; diff --git a/imm/src/model/IndexVideoResult.cc b/imm/src/model/IndexVideoResult.cc index a1b1d9905..a2806cbf9 100644 --- a/imm/src/model/IndexVideoResult.cc +++ b/imm/src/model/IndexVideoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -IndexVideoResult::IndexVideoResult() : - ServiceResult() -{} - -IndexVideoResult::IndexVideoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -IndexVideoResult::~IndexVideoResult() -{} - -void IndexVideoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexVideoResult::IndexVideoResult() : + ServiceResult() +{} + +IndexVideoResult::IndexVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexVideoResult::~IndexVideoResult() +{} + +void IndexVideoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["VideoUri"].isNull()) @@ -70,9 +73,9 @@ void IndexVideoResult::parse(const std::string &payload) remarksD_ = value["RemarksD"].asString(); if(!value["ExternalId"].isNull()) externalId_ = value["ExternalId"].asString(); - -} - + +} + std::string IndexVideoResult::getModifyTime()const { return modifyTime_; diff --git a/imm/src/model/ListFaceGroupsRequest.cc b/imm/src/model/ListFaceGroupsRequest.cc index 54e93c09e..17a35369a 100644 --- a/imm/src/model/ListFaceGroupsRequest.cc +++ b/imm/src/model/ListFaceGroupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListFaceGroupsRequest; - -ListFaceGroupsRequest::ListFaceGroupsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListFaceGroups") -{} - -ListFaceGroupsRequest::~ListFaceGroupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListFaceGroupsRequest; + +ListFaceGroupsRequest::ListFaceGroupsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListFaceGroups") +{} + +ListFaceGroupsRequest::~ListFaceGroupsRequest() +{} + std::string ListFaceGroupsRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/ListFaceGroupsResult.cc b/imm/src/model/ListFaceGroupsResult.cc index 341eac0a8..fef5c7401 100644 --- a/imm/src/model/ListFaceGroupsResult.cc +++ b/imm/src/model/ListFaceGroupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListFaceGroupsResult::ListFaceGroupsResult() : - ServiceResult() -{} - -ListFaceGroupsResult::ListFaceGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListFaceGroupsResult::~ListFaceGroupsResult() -{} - -void ListFaceGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceGroupsResult::ListFaceGroupsResult() : + ServiceResult() +{} + +ListFaceGroupsResult::ListFaceGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceGroupsResult::~ListFaceGroupsResult() +{} + +void ListFaceGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFaceGroups = value["FaceGroups"]["FaceGroupsItem"]; for (auto value : allFaceGroups) { @@ -72,9 +75,9 @@ void ListFaceGroupsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::string ListFaceGroupsResult::getNextMarker()const { return nextMarker_; diff --git a/imm/src/model/ListFaceSearchGroupImagesRequest.cc b/imm/src/model/ListFaceSearchGroupImagesRequest.cc index d1dd54505..b73449230 100644 --- a/imm/src/model/ListFaceSearchGroupImagesRequest.cc +++ b/imm/src/model/ListFaceSearchGroupImagesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListFaceSearchGroupImagesRequest; - -ListFaceSearchGroupImagesRequest::ListFaceSearchGroupImagesRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupImages") -{} - -ListFaceSearchGroupImagesRequest::~ListFaceSearchGroupImagesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListFaceSearchGroupImagesRequest; + +ListFaceSearchGroupImagesRequest::ListFaceSearchGroupImagesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupImages") +{} + +ListFaceSearchGroupImagesRequest::~ListFaceSearchGroupImagesRequest() +{} + int ListFaceSearchGroupImagesRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListFaceSearchGroupImagesResult.cc b/imm/src/model/ListFaceSearchGroupImagesResult.cc index 652c9647d..22c84c318 100644 --- a/imm/src/model/ListFaceSearchGroupImagesResult.cc +++ b/imm/src/model/ListFaceSearchGroupImagesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult() : - ServiceResult() -{} - -ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListFaceSearchGroupImagesResult::~ListFaceSearchGroupImagesResult() -{} - -void ListFaceSearchGroupImagesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult() : + ServiceResult() +{} + +ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceSearchGroupImagesResult::~ListFaceSearchGroupImagesResult() +{} + +void ListFaceSearchGroupImagesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allImages = value["Images"]["ImagesItem"]; for (auto value : allImages) { @@ -81,9 +84,9 @@ void ListFaceSearchGroupImagesResult::parse(const std::string &payload) groupName_ = value["GroupName"].asString(); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); - -} - + +} + std::string ListFaceSearchGroupImagesResult::getGroupName()const { return groupName_; diff --git a/imm/src/model/ListFaceSearchGroupUsersRequest.cc b/imm/src/model/ListFaceSearchGroupUsersRequest.cc index 26c76f0c9..9d76ea9b2 100644 --- a/imm/src/model/ListFaceSearchGroupUsersRequest.cc +++ b/imm/src/model/ListFaceSearchGroupUsersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListFaceSearchGroupUsersRequest; - -ListFaceSearchGroupUsersRequest::ListFaceSearchGroupUsersRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupUsers") -{} - -ListFaceSearchGroupUsersRequest::~ListFaceSearchGroupUsersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListFaceSearchGroupUsersRequest; + +ListFaceSearchGroupUsersRequest::ListFaceSearchGroupUsersRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupUsers") +{} + +ListFaceSearchGroupUsersRequest::~ListFaceSearchGroupUsersRequest() +{} + int ListFaceSearchGroupUsersRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListFaceSearchGroupUsersResult.cc b/imm/src/model/ListFaceSearchGroupUsersResult.cc index 15ab308e1..513782a28 100644 --- a/imm/src/model/ListFaceSearchGroupUsersResult.cc +++ b/imm/src/model/ListFaceSearchGroupUsersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult() : - ServiceResult() -{} - -ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListFaceSearchGroupUsersResult::~ListFaceSearchGroupUsersResult() -{} - -void ListFaceSearchGroupUsersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult() : + ServiceResult() +{} + +ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceSearchGroupUsersResult::~ListFaceSearchGroupUsersResult() +{} + +void ListFaceSearchGroupUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allUsers = value["Users"]["UsersItem"]; for (auto value : allUsers) { @@ -62,9 +65,9 @@ void ListFaceSearchGroupUsersResult::parse(const std::string &payload) groupName_ = value["GroupName"].asString(); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); - -} - + +} + std::string ListFaceSearchGroupUsersResult::getGroupName()const { return groupName_; diff --git a/imm/src/model/ListFaceSearchGroupsRequest.cc b/imm/src/model/ListFaceSearchGroupsRequest.cc index 81f005e37..5c18df445 100644 --- a/imm/src/model/ListFaceSearchGroupsRequest.cc +++ b/imm/src/model/ListFaceSearchGroupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListFaceSearchGroupsRequest; - -ListFaceSearchGroupsRequest::ListFaceSearchGroupsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroups") -{} - -ListFaceSearchGroupsRequest::~ListFaceSearchGroupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListFaceSearchGroupsRequest; + +ListFaceSearchGroupsRequest::ListFaceSearchGroupsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroups") +{} + +ListFaceSearchGroupsRequest::~ListFaceSearchGroupsRequest() +{} + int ListFaceSearchGroupsRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListFaceSearchGroupsResult.cc b/imm/src/model/ListFaceSearchGroupsResult.cc index 6357887ce..8f905ae64 100644 --- a/imm/src/model/ListFaceSearchGroupsResult.cc +++ b/imm/src/model/ListFaceSearchGroupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListFaceSearchGroupsResult::ListFaceSearchGroupsResult() : - ServiceResult() -{} - -ListFaceSearchGroupsResult::ListFaceSearchGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListFaceSearchGroupsResult::~ListFaceSearchGroupsResult() -{} - -void ListFaceSearchGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceSearchGroupsResult::ListFaceSearchGroupsResult() : + ServiceResult() +{} + +ListFaceSearchGroupsResult::ListFaceSearchGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceSearchGroupsResult::~ListFaceSearchGroupsResult() +{} + +void ListFaceSearchGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allGroups = value["Groups"]["GroupsItem"]; for (auto value : allGroups) { @@ -60,9 +63,9 @@ void ListFaceSearchGroupsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListFaceSearchGroupsResult::getGroups()const { return groups_; diff --git a/imm/src/model/ListImageJobsRequest.cc b/imm/src/model/ListImageJobsRequest.cc index 09deef92c..77cc90293 100644 --- a/imm/src/model/ListImageJobsRequest.cc +++ b/imm/src/model/ListImageJobsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListImageJobsRequest; - -ListImageJobsRequest::ListImageJobsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListImageJobs") -{} - -ListImageJobsRequest::~ListImageJobsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListImageJobsRequest; + +ListImageJobsRequest::ListImageJobsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListImageJobs") +{} + +ListImageJobsRequest::~ListImageJobsRequest() +{} + int ListImageJobsRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListImageJobsResult.cc b/imm/src/model/ListImageJobsResult.cc index ea0a7f1ca..efc9865eb 100644 --- a/imm/src/model/ListImageJobsResult.cc +++ b/imm/src/model/ListImageJobsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListImageJobsResult::ListImageJobsResult() : - ServiceResult() -{} - -ListImageJobsResult::ListImageJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListImageJobsResult::~ListImageJobsResult() -{} - -void ListImageJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListImageJobsResult::ListImageJobsResult() : + ServiceResult() +{} + +ListImageJobsResult::ListImageJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImageJobsResult::~ListImageJobsResult() +{} + +void ListImageJobsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allJobs = value["Jobs"]["JobsItem"]; for (auto value : allJobs) { @@ -70,9 +73,9 @@ void ListImageJobsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListImageJobsResult::getJobs()const { return jobs_; diff --git a/imm/src/model/ListImagesRequest.cc b/imm/src/model/ListImagesRequest.cc index 9f2d11e89..98e94f920 100644 --- a/imm/src/model/ListImagesRequest.cc +++ b/imm/src/model/ListImagesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListImagesRequest; - -ListImagesRequest::ListImagesRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListImages") -{} - -ListImagesRequest::~ListImagesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListImagesRequest; + +ListImagesRequest::ListImagesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListImages") +{} + +ListImagesRequest::~ListImagesRequest() +{} + std::string ListImagesRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/ListImagesResult.cc b/imm/src/model/ListImagesResult.cc index cae3d443e..1ac84cc18 100644 --- a/imm/src/model/ListImagesResult.cc +++ b/imm/src/model/ListImagesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListImagesResult::ListImagesResult() : - ServiceResult() -{} - -ListImagesResult::ListImagesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListImagesResult::~ListImagesResult() -{} - -void ListImagesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListImagesResult::ListImagesResult() : + ServiceResult() +{} + +ListImagesResult::ListImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImagesResult::~ListImagesResult() +{} + +void ListImagesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allImages = value["Images"]["ImagesItem"]; for (auto value : allImages) { @@ -242,9 +245,9 @@ void ListImagesResult::parse(const std::string &payload) setId_ = value["SetId"].asString(); if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListImagesResult::getImages()const { return images_; diff --git a/imm/src/model/ListOfficeConversionTaskRequest.cc b/imm/src/model/ListOfficeConversionTaskRequest.cc index 671da4096..f41371596 100644 --- a/imm/src/model/ListOfficeConversionTaskRequest.cc +++ b/imm/src/model/ListOfficeConversionTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListOfficeConversionTaskRequest; - -ListOfficeConversionTaskRequest::ListOfficeConversionTaskRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListOfficeConversionTask") -{} - -ListOfficeConversionTaskRequest::~ListOfficeConversionTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListOfficeConversionTaskRequest; + +ListOfficeConversionTaskRequest::ListOfficeConversionTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListOfficeConversionTask") +{} + +ListOfficeConversionTaskRequest::~ListOfficeConversionTaskRequest() +{} + int ListOfficeConversionTaskRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListOfficeConversionTaskResult.cc b/imm/src/model/ListOfficeConversionTaskResult.cc index ec7f186ab..a9f016783 100644 --- a/imm/src/model/ListOfficeConversionTaskResult.cc +++ b/imm/src/model/ListOfficeConversionTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListOfficeConversionTaskResult::ListOfficeConversionTaskResult() : - ServiceResult() -{} - -ListOfficeConversionTaskResult::ListOfficeConversionTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListOfficeConversionTaskResult::~ListOfficeConversionTaskResult() -{} - -void ListOfficeConversionTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListOfficeConversionTaskResult::ListOfficeConversionTaskResult() : + ServiceResult() +{} + +ListOfficeConversionTaskResult::ListOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOfficeConversionTaskResult::~ListOfficeConversionTaskResult() +{} + +void ListOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["TasksItem"]; for (auto value : allTasks) { @@ -74,9 +77,9 @@ void ListOfficeConversionTaskResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListOfficeConversionTaskResult::getTasks()const { return tasks_; diff --git a/imm/src/model/ListPhotoProcessTasksRequest.cc b/imm/src/model/ListPhotoProcessTasksRequest.cc index 37012ad50..e0db78eb3 100644 --- a/imm/src/model/ListPhotoProcessTasksRequest.cc +++ b/imm/src/model/ListPhotoProcessTasksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListPhotoProcessTasksRequest; - -ListPhotoProcessTasksRequest::ListPhotoProcessTasksRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListPhotoProcessTasks") -{} - -ListPhotoProcessTasksRequest::~ListPhotoProcessTasksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListPhotoProcessTasksRequest; + +ListPhotoProcessTasksRequest::ListPhotoProcessTasksRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListPhotoProcessTasks") +{} + +ListPhotoProcessTasksRequest::~ListPhotoProcessTasksRequest() +{} + int ListPhotoProcessTasksRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListPhotoProcessTasksResult.cc b/imm/src/model/ListPhotoProcessTasksResult.cc index 2b795015d..dd393cffe 100644 --- a/imm/src/model/ListPhotoProcessTasksResult.cc +++ b/imm/src/model/ListPhotoProcessTasksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListPhotoProcessTasksResult::ListPhotoProcessTasksResult() : - ServiceResult() -{} - -ListPhotoProcessTasksResult::ListPhotoProcessTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListPhotoProcessTasksResult::~ListPhotoProcessTasksResult() -{} - -void ListPhotoProcessTasksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListPhotoProcessTasksResult::ListPhotoProcessTasksResult() : + ServiceResult() +{} + +ListPhotoProcessTasksResult::ListPhotoProcessTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPhotoProcessTasksResult::~ListPhotoProcessTasksResult() +{} + +void ListPhotoProcessTasksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["TasksItem"]; for (auto value : allTasks) { @@ -70,9 +73,9 @@ void ListPhotoProcessTasksResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListPhotoProcessTasksResult::getTasks()const { return tasks_; diff --git a/imm/src/model/ListPornBatchDetectJobsRequest.cc b/imm/src/model/ListPornBatchDetectJobsRequest.cc index ec445cc9a..300009cf1 100644 --- a/imm/src/model/ListPornBatchDetectJobsRequest.cc +++ b/imm/src/model/ListPornBatchDetectJobsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListPornBatchDetectJobsRequest; - -ListPornBatchDetectJobsRequest::ListPornBatchDetectJobsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListPornBatchDetectJobs") -{} - -ListPornBatchDetectJobsRequest::~ListPornBatchDetectJobsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListPornBatchDetectJobsRequest; + +ListPornBatchDetectJobsRequest::ListPornBatchDetectJobsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListPornBatchDetectJobs") +{} + +ListPornBatchDetectJobsRequest::~ListPornBatchDetectJobsRequest() +{} + int ListPornBatchDetectJobsRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListPornBatchDetectJobsResult.cc b/imm/src/model/ListPornBatchDetectJobsResult.cc index ef7677e21..e1f39766a 100644 --- a/imm/src/model/ListPornBatchDetectJobsResult.cc +++ b/imm/src/model/ListPornBatchDetectJobsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult() : - ServiceResult() -{} - -ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListPornBatchDetectJobsResult::~ListPornBatchDetectJobsResult() -{} - -void ListPornBatchDetectJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult() : + ServiceResult() +{} + +ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPornBatchDetectJobsResult::~ListPornBatchDetectJobsResult() +{} + +void ListPornBatchDetectJobsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allJobs = value["Jobs"]["JobsItem"]; for (auto value : allJobs) { @@ -68,9 +71,9 @@ void ListPornBatchDetectJobsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListPornBatchDetectJobsResult::getJobs()const { return jobs_; diff --git a/imm/src/model/ListProjectAPIsRequest.cc b/imm/src/model/ListProjectAPIsRequest.cc index 65d5c94f2..ba5a347ad 100644 --- a/imm/src/model/ListProjectAPIsRequest.cc +++ b/imm/src/model/ListProjectAPIsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListProjectAPIsRequest; - -ListProjectAPIsRequest::ListProjectAPIsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListProjectAPIs") -{} - -ListProjectAPIsRequest::~ListProjectAPIsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListProjectAPIsRequest; + +ListProjectAPIsRequest::ListProjectAPIsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListProjectAPIs") +{} + +ListProjectAPIsRequest::~ListProjectAPIsRequest() +{} + std::string ListProjectAPIsRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/ListProjectAPIsResult.cc b/imm/src/model/ListProjectAPIsResult.cc index 562181436..d230d29ac 100644 --- a/imm/src/model/ListProjectAPIsResult.cc +++ b/imm/src/model/ListProjectAPIsResult.cc @@ -1,53 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListProjectAPIsResult::ListProjectAPIsResult() : - ServiceResult() -{} - -ListProjectAPIsResult::ListProjectAPIsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListProjectAPIsResult::~ListProjectAPIsResult() -{} - -void ListProjectAPIsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListProjectAPIsResult::ListProjectAPIsResult() : + ServiceResult() +{} + +ListProjectAPIsResult::ListProjectAPIsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectAPIsResult::~ListProjectAPIsResult() +{} + +void ListProjectAPIsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAPIs = value["APIs"]["APIs"]; for (const auto &item : allAPIs) aPIs_.push_back(item.asString()); if(!value["Project"].isNull()) project_ = value["Project"].asString(); - -} - + +} + std::string ListProjectAPIsResult::getProject()const { return project_; diff --git a/imm/src/model/ListProjectsRequest.cc b/imm/src/model/ListProjectsRequest.cc index 9f1c3b14a..05fb6b5de 100644 --- a/imm/src/model/ListProjectsRequest.cc +++ b/imm/src/model/ListProjectsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListProjectsRequest; - -ListProjectsRequest::ListProjectsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListProjects") -{} - -ListProjectsRequest::~ListProjectsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListProjectsRequest; + +ListProjectsRequest::ListProjectsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListProjects") +{} + +ListProjectsRequest::~ListProjectsRequest() +{} + int ListProjectsRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListProjectsResult.cc b/imm/src/model/ListProjectsResult.cc index 73e6325b4..54362dce7 100644 --- a/imm/src/model/ListProjectsResult.cc +++ b/imm/src/model/ListProjectsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListProjectsResult::ListProjectsResult() : - ServiceResult() -{} - -ListProjectsResult::ListProjectsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListProjectsResult::~ListProjectsResult() -{} - -void ListProjectsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListProjectsResult::ListProjectsResult() : + ServiceResult() +{} + +ListProjectsResult::ListProjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectsResult::~ListProjectsResult() +{} + +void ListProjectsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allProjects = value["Projects"]["ProjectsItem"]; for (auto value : allProjects) { @@ -64,9 +67,9 @@ void ListProjectsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListProjectsResult::getProjects()const { return projects_; diff --git a/imm/src/model/ListSetTagsRequest.cc b/imm/src/model/ListSetTagsRequest.cc index df6815cc7..15a658660 100644 --- a/imm/src/model/ListSetTagsRequest.cc +++ b/imm/src/model/ListSetTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListSetTagsRequest; - -ListSetTagsRequest::ListSetTagsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListSetTags") -{} - -ListSetTagsRequest::~ListSetTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListSetTagsRequest; + +ListSetTagsRequest::ListSetTagsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListSetTags") +{} + +ListSetTagsRequest::~ListSetTagsRequest() +{} + std::string ListSetTagsRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/ListSetTagsResult.cc b/imm/src/model/ListSetTagsResult.cc index e2afa953d..5c849752e 100644 --- a/imm/src/model/ListSetTagsResult.cc +++ b/imm/src/model/ListSetTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListSetTagsResult::ListSetTagsResult() : - ServiceResult() -{} - -ListSetTagsResult::ListSetTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSetTagsResult::~ListSetTagsResult() -{} - -void ListSetTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListSetTagsResult::ListSetTagsResult() : + ServiceResult() +{} + +ListSetTagsResult::ListSetTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSetTagsResult::~ListSetTagsResult() +{} + +void ListSetTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["TagsItem"]; for (auto value : allTags) { @@ -52,9 +55,9 @@ void ListSetTagsResult::parse(const std::string &payload) } if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); - -} - + +} + std::string ListSetTagsResult::getSetId()const { return setId_; diff --git a/imm/src/model/ListSetsRequest.cc b/imm/src/model/ListSetsRequest.cc index 5fdc9078b..e2faffbaa 100644 --- a/imm/src/model/ListSetsRequest.cc +++ b/imm/src/model/ListSetsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListSetsRequest; - -ListSetsRequest::ListSetsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListSets") -{} - -ListSetsRequest::~ListSetsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListSetsRequest; + +ListSetsRequest::ListSetsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListSets") +{} + +ListSetsRequest::~ListSetsRequest() +{} + std::string ListSetsRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/ListSetsResult.cc b/imm/src/model/ListSetsResult.cc index facdc0ed4..ff619f4f1 100644 --- a/imm/src/model/ListSetsResult.cc +++ b/imm/src/model/ListSetsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListSetsResult::ListSetsResult() : - ServiceResult() -{} - -ListSetsResult::ListSetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSetsResult::~ListSetsResult() -{} - -void ListSetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListSetsResult::ListSetsResult() : + ServiceResult() +{} + +ListSetsResult::ListSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSetsResult::~ListSetsResult() +{} + +void ListSetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSets = value["Sets"]["SetsItem"]; for (auto value : allSets) { @@ -64,9 +67,9 @@ void ListSetsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListSetsResult::getSets()const { return sets_; diff --git a/imm/src/model/ListTagJobsRequest.cc b/imm/src/model/ListTagJobsRequest.cc index e83878cbf..af171c8fe 100644 --- a/imm/src/model/ListTagJobsRequest.cc +++ b/imm/src/model/ListTagJobsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListTagJobsRequest; - -ListTagJobsRequest::ListTagJobsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListTagJobs") -{} - -ListTagJobsRequest::~ListTagJobsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListTagJobsRequest; + +ListTagJobsRequest::ListTagJobsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagJobs") +{} + +ListTagJobsRequest::~ListTagJobsRequest() +{} + std::string ListTagJobsRequest::getCondition()const { return condition_; diff --git a/imm/src/model/ListTagJobsResult.cc b/imm/src/model/ListTagJobsResult.cc index 265f035d0..f105b356a 100644 --- a/imm/src/model/ListTagJobsResult.cc +++ b/imm/src/model/ListTagJobsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListTagJobsResult::ListTagJobsResult() : - ServiceResult() -{} - -ListTagJobsResult::ListTagJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagJobsResult::~ListTagJobsResult() -{} - -void ListTagJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagJobsResult::ListTagJobsResult() : + ServiceResult() +{} + +ListTagJobsResult::ListTagJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagJobsResult::~ListTagJobsResult() +{} + +void ListTagJobsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allJobs = value["Jobs"]["JobsItem"]; for (auto value : allJobs) { @@ -62,9 +65,9 @@ void ListTagJobsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListTagJobsResult::getJobs()const { return jobs_; diff --git a/imm/src/model/ListTagNamesRequest.cc b/imm/src/model/ListTagNamesRequest.cc index 2477e8189..19542d2ce 100644 --- a/imm/src/model/ListTagNamesRequest.cc +++ b/imm/src/model/ListTagNamesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListTagNamesRequest; - -ListTagNamesRequest::ListTagNamesRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListTagNames") -{} - -ListTagNamesRequest::~ListTagNamesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListTagNamesRequest; + +ListTagNamesRequest::ListTagNamesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagNames") +{} + +ListTagNamesRequest::~ListTagNamesRequest() +{} + std::string ListTagNamesRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/ListTagNamesResult.cc b/imm/src/model/ListTagNamesResult.cc index 4c186f5e9..7d491a41c 100644 --- a/imm/src/model/ListTagNamesResult.cc +++ b/imm/src/model/ListTagNamesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListTagNamesResult::ListTagNamesResult() : - ServiceResult() -{} - -ListTagNamesResult::ListTagNamesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagNamesResult::~ListTagNamesResult() -{} - -void ListTagNamesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagNamesResult::ListTagNamesResult() : + ServiceResult() +{} + +ListTagNamesResult::ListTagNamesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagNamesResult::~ListTagNamesResult() +{} + +void ListTagNamesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["TagsItem"]; for (auto value : allTags) { @@ -52,9 +55,9 @@ void ListTagNamesResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::string ListTagNamesResult::getNextMarker()const { return nextMarker_; diff --git a/imm/src/model/ListTagPhotosRequest.cc b/imm/src/model/ListTagPhotosRequest.cc index c086a5ec8..fb42b67a9 100644 --- a/imm/src/model/ListTagPhotosRequest.cc +++ b/imm/src/model/ListTagPhotosRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListTagPhotosRequest; - -ListTagPhotosRequest::ListTagPhotosRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListTagPhotos") -{} - -ListTagPhotosRequest::~ListTagPhotosRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListTagPhotosRequest; + +ListTagPhotosRequest::ListTagPhotosRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagPhotos") +{} + +ListTagPhotosRequest::~ListTagPhotosRequest() +{} + std::string ListTagPhotosRequest::getTagName()const { return tagName_; diff --git a/imm/src/model/ListTagPhotosResult.cc b/imm/src/model/ListTagPhotosResult.cc index efc038557..5552ed99d 100644 --- a/imm/src/model/ListTagPhotosResult.cc +++ b/imm/src/model/ListTagPhotosResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListTagPhotosResult::ListTagPhotosResult() : - ServiceResult() -{} - -ListTagPhotosResult::ListTagPhotosResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagPhotosResult::~ListTagPhotosResult() -{} - -void ListTagPhotosResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagPhotosResult::ListTagPhotosResult() : + ServiceResult() +{} + +ListTagPhotosResult::ListTagPhotosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagPhotosResult::~ListTagPhotosResult() +{} + +void ListTagPhotosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allPhotos = value["Photos"]["PhotosItem"]; for (auto value : allPhotos) { @@ -52,9 +55,9 @@ void ListTagPhotosResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListTagPhotosResult::getPhotos()const { return photos_; diff --git a/imm/src/model/ListTagSetsRequest.cc b/imm/src/model/ListTagSetsRequest.cc index e335e282a..b8a987d86 100644 --- a/imm/src/model/ListTagSetsRequest.cc +++ b/imm/src/model/ListTagSetsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListTagSetsRequest; - -ListTagSetsRequest::ListTagSetsRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListTagSets") -{} - -ListTagSetsRequest::~ListTagSetsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListTagSetsRequest; + +ListTagSetsRequest::ListTagSetsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagSets") +{} + +ListTagSetsRequest::~ListTagSetsRequest() +{} + int ListTagSetsRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListTagSetsResult.cc b/imm/src/model/ListTagSetsResult.cc index 2b2dbb3d5..3483f472c 100644 --- a/imm/src/model/ListTagSetsResult.cc +++ b/imm/src/model/ListTagSetsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListTagSetsResult::ListTagSetsResult() : - ServiceResult() -{} - -ListTagSetsResult::ListTagSetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagSetsResult::~ListTagSetsResult() -{} - -void ListTagSetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagSetsResult::ListTagSetsResult() : + ServiceResult() +{} + +ListTagSetsResult::ListTagSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagSetsResult::~ListTagSetsResult() +{} + +void ListTagSetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSets = value["Sets"]["SetsItem"]; for (auto value : allSets) { @@ -58,9 +61,9 @@ void ListTagSetsResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListTagSetsResult::getSets()const { return sets_; diff --git a/imm/src/model/ListVideoAudiosRequest.cc b/imm/src/model/ListVideoAudiosRequest.cc index d3d3a9085..bc42ca550 100644 --- a/imm/src/model/ListVideoAudiosRequest.cc +++ b/imm/src/model/ListVideoAudiosRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListVideoAudiosRequest; - -ListVideoAudiosRequest::ListVideoAudiosRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListVideoAudios") -{} - -ListVideoAudiosRequest::~ListVideoAudiosRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListVideoAudiosRequest; + +ListVideoAudiosRequest::ListVideoAudiosRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideoAudios") +{} + +ListVideoAudiosRequest::~ListVideoAudiosRequest() +{} + std::string ListVideoAudiosRequest::getVideoUri()const { return videoUri_; diff --git a/imm/src/model/ListVideoAudiosResult.cc b/imm/src/model/ListVideoAudiosResult.cc index 0bae58f3b..7a0584cfb 100644 --- a/imm/src/model/ListVideoAudiosResult.cc +++ b/imm/src/model/ListVideoAudiosResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListVideoAudiosResult::ListVideoAudiosResult() : - ServiceResult() -{} - -ListVideoAudiosResult::ListVideoAudiosResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListVideoAudiosResult::~ListVideoAudiosResult() -{} - -void ListVideoAudiosResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoAudiosResult::ListVideoAudiosResult() : + ServiceResult() +{} + +ListVideoAudiosResult::ListVideoAudiosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoAudiosResult::~ListVideoAudiosResult() +{} + +void ListVideoAudiosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAudios = value["Audios"]["AudiosItem"]; for (auto value : allAudios) { @@ -120,9 +123,9 @@ void ListVideoAudiosResult::parse(const std::string &payload) videoUri_ = value["VideoUri"].asString(); if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListVideoAudiosResult::getAudios()const { return audios_; diff --git a/imm/src/model/ListVideoFramesRequest.cc b/imm/src/model/ListVideoFramesRequest.cc index 50c3bbf96..020c8943c 100644 --- a/imm/src/model/ListVideoFramesRequest.cc +++ b/imm/src/model/ListVideoFramesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListVideoFramesRequest; - -ListVideoFramesRequest::ListVideoFramesRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListVideoFrames") -{} - -ListVideoFramesRequest::~ListVideoFramesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListVideoFramesRequest; + +ListVideoFramesRequest::ListVideoFramesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideoFrames") +{} + +ListVideoFramesRequest::~ListVideoFramesRequest() +{} + std::string ListVideoFramesRequest::getVideoUri()const { return videoUri_; diff --git a/imm/src/model/ListVideoFramesResult.cc b/imm/src/model/ListVideoFramesResult.cc index ff4190410..76a79dcad 100644 --- a/imm/src/model/ListVideoFramesResult.cc +++ b/imm/src/model/ListVideoFramesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListVideoFramesResult::ListVideoFramesResult() : - ServiceResult() -{} - -ListVideoFramesResult::ListVideoFramesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListVideoFramesResult::~ListVideoFramesResult() -{} - -void ListVideoFramesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoFramesResult::ListVideoFramesResult() : + ServiceResult() +{} + +ListVideoFramesResult::ListVideoFramesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoFramesResult::~ListVideoFramesResult() +{} + +void ListVideoFramesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allFrames = value["Frames"]["FramesItem"]; for (auto value : allFrames) { @@ -244,9 +247,9 @@ void ListVideoFramesResult::parse(const std::string &payload) videoUri_ = value["VideoUri"].asString(); if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListVideoFramesResult::getFrames()const { return frames_; diff --git a/imm/src/model/ListVideoTasksRequest.cc b/imm/src/model/ListVideoTasksRequest.cc index 259e9af33..383827864 100644 --- a/imm/src/model/ListVideoTasksRequest.cc +++ b/imm/src/model/ListVideoTasksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListVideoTasksRequest; - -ListVideoTasksRequest::ListVideoTasksRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListVideoTasks") -{} - -ListVideoTasksRequest::~ListVideoTasksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListVideoTasksRequest; + +ListVideoTasksRequest::ListVideoTasksRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideoTasks") +{} + +ListVideoTasksRequest::~ListVideoTasksRequest() +{} + int ListVideoTasksRequest::getMaxKeys()const { return maxKeys_; diff --git a/imm/src/model/ListVideoTasksResult.cc b/imm/src/model/ListVideoTasksResult.cc index 30b766fda..3d371c9e9 100644 --- a/imm/src/model/ListVideoTasksResult.cc +++ b/imm/src/model/ListVideoTasksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListVideoTasksResult::ListVideoTasksResult() : - ServiceResult() -{} - -ListVideoTasksResult::ListVideoTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListVideoTasksResult::~ListVideoTasksResult() -{} - -void ListVideoTasksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoTasksResult::ListVideoTasksResult() : + ServiceResult() +{} + +ListVideoTasksResult::ListVideoTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoTasksResult::~ListVideoTasksResult() +{} + +void ListVideoTasksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["TasksItem"]; for (auto value : allTasks) { @@ -70,9 +73,9 @@ void ListVideoTasksResult::parse(const std::string &payload) } if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::vector ListVideoTasksResult::getTasks()const { return tasks_; diff --git a/imm/src/model/ListVideosRequest.cc b/imm/src/model/ListVideosRequest.cc index e71bbcabc..97eebdd44 100644 --- a/imm/src/model/ListVideosRequest.cc +++ b/imm/src/model/ListVideosRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::ListVideosRequest; - -ListVideosRequest::ListVideosRequest() : - RpcServiceRequest("imm", "2017-09-06", "ListVideos") -{} - -ListVideosRequest::~ListVideosRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::ListVideosRequest; + +ListVideosRequest::ListVideosRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideos") +{} + +ListVideosRequest::~ListVideosRequest() +{} + std::string ListVideosRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/ListVideosResult.cc b/imm/src/model/ListVideosResult.cc index f59c70343..a004527bd 100644 --- a/imm/src/model/ListVideosResult.cc +++ b/imm/src/model/ListVideosResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ListVideosResult::ListVideosResult() : - ServiceResult() -{} - -ListVideosResult::ListVideosResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListVideosResult::~ListVideosResult() -{} - -void ListVideosResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideosResult::ListVideosResult() : + ServiceResult() +{} + +ListVideosResult::ListVideosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideosResult::~ListVideosResult() +{} + +void ListVideosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allVideos = value["Videos"]["VideosItem"]; for (auto value : allVideos) { @@ -142,9 +145,9 @@ void ListVideosResult::parse(const std::string &payload) setId_ = value["SetId"].asString(); if(!value["NextMarker"].isNull()) nextMarker_ = value["NextMarker"].asString(); - -} - + +} + std::string ListVideosResult::getSetId()const { return setId_; diff --git a/imm/src/model/PhotoProcessRequest.cc b/imm/src/model/PhotoProcessRequest.cc index 786b54239..78c3f581c 100644 --- a/imm/src/model/PhotoProcessRequest.cc +++ b/imm/src/model/PhotoProcessRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::PhotoProcessRequest; - -PhotoProcessRequest::PhotoProcessRequest() : - RpcServiceRequest("imm", "2017-09-06", "PhotoProcess") -{} - -PhotoProcessRequest::~PhotoProcessRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::PhotoProcessRequest; + +PhotoProcessRequest::PhotoProcessRequest() : + RpcServiceRequest("imm", "2017-09-06", "PhotoProcess") +{} + +PhotoProcessRequest::~PhotoProcessRequest() +{} + std::string PhotoProcessRequest::getNotifyTopicName()const { return notifyTopicName_; diff --git a/imm/src/model/PhotoProcessResult.cc b/imm/src/model/PhotoProcessResult.cc index 897231f4d..0bdc7259f 100644 --- a/imm/src/model/PhotoProcessResult.cc +++ b/imm/src/model/PhotoProcessResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -PhotoProcessResult::PhotoProcessResult() : - ServiceResult() -{} - -PhotoProcessResult::PhotoProcessResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PhotoProcessResult::~PhotoProcessResult() -{} - -void PhotoProcessResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +PhotoProcessResult::PhotoProcessResult() : + ServiceResult() +{} + +PhotoProcessResult::PhotoProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhotoProcessResult::~PhotoProcessResult() +{} + +void PhotoProcessResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["TgtLoc"].isNull()) @@ -50,9 +53,9 @@ void PhotoProcessResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["Percent"].isNull()) percent_ = std::stoi(value["Percent"].asString()); - -} - + +} + std::string PhotoProcessResult::getStatus()const { return status_; diff --git a/imm/src/model/PutProjectRequest.cc b/imm/src/model/PutProjectRequest.cc index 904a8b26b..c212da192 100644 --- a/imm/src/model/PutProjectRequest.cc +++ b/imm/src/model/PutProjectRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::PutProjectRequest; - -PutProjectRequest::PutProjectRequest() : - RpcServiceRequest("imm", "2017-09-06", "PutProject") -{} - -PutProjectRequest::~PutProjectRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::PutProjectRequest; + +PutProjectRequest::PutProjectRequest() : + RpcServiceRequest("imm", "2017-09-06", "PutProject") +{} + +PutProjectRequest::~PutProjectRequest() +{} + int PutProjectRequest::getCU()const { return cU_; diff --git a/imm/src/model/PutProjectResult.cc b/imm/src/model/PutProjectResult.cc index a1e8268d7..3c0105d02 100644 --- a/imm/src/model/PutProjectResult.cc +++ b/imm/src/model/PutProjectResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -PutProjectResult::PutProjectResult() : - ServiceResult() -{} - -PutProjectResult::PutProjectResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PutProjectResult::~PutProjectResult() -{} - -void PutProjectResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +PutProjectResult::PutProjectResult() : + ServiceResult() +{} + +PutProjectResult::PutProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutProjectResult::~PutProjectResult() +{} + +void PutProjectResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Project"].isNull()) project_ = value["Project"].asString(); if(!value["CreateTime"].isNull()) @@ -56,9 +59,9 @@ void PutProjectResult::parse(const std::string &payload) endpoint_ = value["Endpoint"].asString(); if(!value["BillingType"].isNull()) billingType_ = value["BillingType"].asString(); - -} - + +} + std::string PutProjectResult::getProject()const { return project_; diff --git a/imm/src/model/RegistFaceRequest.cc b/imm/src/model/RegistFaceRequest.cc index 798019779..ce2db625c 100644 --- a/imm/src/model/RegistFaceRequest.cc +++ b/imm/src/model/RegistFaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::RegistFaceRequest; - -RegistFaceRequest::RegistFaceRequest() : - RpcServiceRequest("imm", "2017-09-06", "RegistFace") -{} - -RegistFaceRequest::~RegistFaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::RegistFaceRequest; + +RegistFaceRequest::RegistFaceRequest() : + RpcServiceRequest("imm", "2017-09-06", "RegistFace") +{} + +RegistFaceRequest::~RegistFaceRequest() +{} + bool RegistFaceRequest::getChooseBiggestFace()const { return chooseBiggestFace_; diff --git a/imm/src/model/RegistFaceResult.cc b/imm/src/model/RegistFaceResult.cc index abb339ff8..6ad748cf8 100644 --- a/imm/src/model/RegistFaceResult.cc +++ b/imm/src/model/RegistFaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -RegistFaceResult::RegistFaceResult() : - ServiceResult() -{} - -RegistFaceResult::RegistFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RegistFaceResult::~RegistFaceResult() -{} - -void RegistFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +RegistFaceResult::RegistFaceResult() : + ServiceResult() +{} + +RegistFaceResult::RegistFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RegistFaceResult::~RegistFaceResult() +{} + +void RegistFaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAxis = value["Axis"]["Axis"]; for (const auto &item : allAxis) axis_.push_back(item.asString()); @@ -73,9 +76,9 @@ void RegistFaceResult::parse(const std::string &payload) age_ = std::stoi(value["Age"].asString()); if(!value["Gender"].isNull()) gender_ = value["Gender"].asString(); - -} - + +} + std::string RegistFaceResult::getGroupName()const { return groupName_; diff --git a/imm/src/model/SearchDocIndexRequest.cc b/imm/src/model/SearchDocIndexRequest.cc index 9e1cdd580..b48800bd6 100644 --- a/imm/src/model/SearchDocIndexRequest.cc +++ b/imm/src/model/SearchDocIndexRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::SearchDocIndexRequest; - -SearchDocIndexRequest::SearchDocIndexRequest() : - RpcServiceRequest("imm", "2017-09-06", "SearchDocIndex") -{} - -SearchDocIndexRequest::~SearchDocIndexRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::SearchDocIndexRequest; + +SearchDocIndexRequest::SearchDocIndexRequest() : + RpcServiceRequest("imm", "2017-09-06", "SearchDocIndex") +{} + +SearchDocIndexRequest::~SearchDocIndexRequest() +{} + int SearchDocIndexRequest::getModifiedTimeEnd()const { return modifiedTimeEnd_; diff --git a/imm/src/model/SearchDocIndexResult.cc b/imm/src/model/SearchDocIndexResult.cc index 696d3dd63..2d6590766 100644 --- a/imm/src/model/SearchDocIndexResult.cc +++ b/imm/src/model/SearchDocIndexResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -SearchDocIndexResult::SearchDocIndexResult() : - ServiceResult() -{} - -SearchDocIndexResult::SearchDocIndexResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchDocIndexResult::~SearchDocIndexResult() -{} - -void SearchDocIndexResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +SearchDocIndexResult::SearchDocIndexResult() : + ServiceResult() +{} + +SearchDocIndexResult::SearchDocIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchDocIndexResult::~SearchDocIndexResult() +{} + +void SearchDocIndexResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDocInfos = value["DocInfos"]["DocInfosItem"]; for (auto value : allDocInfos) { @@ -72,9 +75,9 @@ void SearchDocIndexResult::parse(const std::string &payload) docInfosObject.customKey6 = value["CustomKey6"].asString(); docInfos_.push_back(docInfosObject); } - -} - + +} + std::vector SearchDocIndexResult::getDocInfos()const { return docInfos_; diff --git a/imm/src/model/SearchFaceRequest.cc b/imm/src/model/SearchFaceRequest.cc index 8f06e9bc0..36d75b33f 100644 --- a/imm/src/model/SearchFaceRequest.cc +++ b/imm/src/model/SearchFaceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::SearchFaceRequest; - -SearchFaceRequest::SearchFaceRequest() : - RpcServiceRequest("imm", "2017-09-06", "SearchFace") -{} - -SearchFaceRequest::~SearchFaceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::SearchFaceRequest; + +SearchFaceRequest::SearchFaceRequest() : + RpcServiceRequest("imm", "2017-09-06", "SearchFace") +{} + +SearchFaceRequest::~SearchFaceRequest() +{} + std::string SearchFaceRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/SearchFaceResult.cc b/imm/src/model/SearchFaceResult.cc index 9db14a137..871ed1ba0 100644 --- a/imm/src/model/SearchFaceResult.cc +++ b/imm/src/model/SearchFaceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -SearchFaceResult::SearchFaceResult() : - ServiceResult() -{} - -SearchFaceResult::SearchFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchFaceResult::~SearchFaceResult() -{} - -void SearchFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +SearchFaceResult::SearchFaceResult() : + ServiceResult() +{} + +SearchFaceResult::SearchFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchFaceResult::~SearchFaceResult() +{} + +void SearchFaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allResultFaces = value["ResultFaces"]["ResultFacesItem"]; for (auto value : allResultFaces) { @@ -76,9 +79,9 @@ void SearchFaceResult::parse(const std::string &payload) hat_ = std::stoi(value["Hat"].asString()); if(!value["Score"].isNull()) score_ = std::stof(value["Score"].asString()); - -} - + +} + std::string SearchFaceResult::getGroupName()const { return groupName_; diff --git a/imm/src/model/UpdateDocIndexMetaRequest.cc b/imm/src/model/UpdateDocIndexMetaRequest.cc index 8ba1e7a68..2a03dc6d6 100644 --- a/imm/src/model/UpdateDocIndexMetaRequest.cc +++ b/imm/src/model/UpdateDocIndexMetaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::UpdateDocIndexMetaRequest; - -UpdateDocIndexMetaRequest::UpdateDocIndexMetaRequest() : - RpcServiceRequest("imm", "2017-09-06", "UpdateDocIndexMeta") -{} - -UpdateDocIndexMetaRequest::~UpdateDocIndexMetaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::UpdateDocIndexMetaRequest; + +UpdateDocIndexMetaRequest::UpdateDocIndexMetaRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateDocIndexMeta") +{} + +UpdateDocIndexMetaRequest::~UpdateDocIndexMetaRequest() +{} + std::string UpdateDocIndexMetaRequest::getCustomKey1()const { return customKey1_; diff --git a/imm/src/model/UpdateDocIndexMetaResult.cc b/imm/src/model/UpdateDocIndexMetaResult.cc index 3544d413b..12652e0f1 100644 --- a/imm/src/model/UpdateDocIndexMetaResult.cc +++ b/imm/src/model/UpdateDocIndexMetaResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -UpdateDocIndexMetaResult::UpdateDocIndexMetaResult() : - ServiceResult() -{} - -UpdateDocIndexMetaResult::UpdateDocIndexMetaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateDocIndexMetaResult::~UpdateDocIndexMetaResult() -{} - -void UpdateDocIndexMetaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateDocIndexMetaResult::UpdateDocIndexMetaResult() : + ServiceResult() +{} + +UpdateDocIndexMetaResult::UpdateDocIndexMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDocIndexMetaResult::~UpdateDocIndexMetaResult() +{} + +void UpdateDocIndexMetaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["IndexCreatedTime"].isNull()) indexCreatedTime_ = value["IndexCreatedTime"].asString(); if(!value["IndexModifiedTime"].isNull()) indexModifiedTime_ = value["IndexModifiedTime"].asString(); - -} - + +} + std::string UpdateDocIndexMetaResult::getIndexModifiedTime()const { return indexModifiedTime_; diff --git a/imm/src/model/UpdateFaceGroupRequest.cc b/imm/src/model/UpdateFaceGroupRequest.cc index 50dbf2698..010f9141a 100644 --- a/imm/src/model/UpdateFaceGroupRequest.cc +++ b/imm/src/model/UpdateFaceGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::UpdateFaceGroupRequest; - -UpdateFaceGroupRequest::UpdateFaceGroupRequest() : - RpcServiceRequest("imm", "2017-09-06", "UpdateFaceGroup") -{} - -UpdateFaceGroupRequest::~UpdateFaceGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::UpdateFaceGroupRequest; + +UpdateFaceGroupRequest::UpdateFaceGroupRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateFaceGroup") +{} + +UpdateFaceGroupRequest::~UpdateFaceGroupRequest() +{} + std::string UpdateFaceGroupRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/UpdateFaceGroupResult.cc b/imm/src/model/UpdateFaceGroupResult.cc index 73585d042..f1f7d276b 100644 --- a/imm/src/model/UpdateFaceGroupResult.cc +++ b/imm/src/model/UpdateFaceGroupResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -UpdateFaceGroupResult::UpdateFaceGroupResult() : - ServiceResult() -{} - -UpdateFaceGroupResult::UpdateFaceGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateFaceGroupResult::~UpdateFaceGroupResult() -{} - -void UpdateFaceGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateFaceGroupResult::UpdateFaceGroupResult() : + ServiceResult() +{} + +UpdateFaceGroupResult::UpdateFaceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFaceGroupResult::~UpdateFaceGroupResult() +{} + +void UpdateFaceGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); - -} - + +} + std::string UpdateFaceGroupResult::getSetId()const { return setId_; diff --git a/imm/src/model/UpdateImageRequest.cc b/imm/src/model/UpdateImageRequest.cc index c02183d86..d5df3ae31 100644 --- a/imm/src/model/UpdateImageRequest.cc +++ b/imm/src/model/UpdateImageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::UpdateImageRequest; - -UpdateImageRequest::UpdateImageRequest() : - RpcServiceRequest("imm", "2017-09-06", "UpdateImage") -{} - -UpdateImageRequest::~UpdateImageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::UpdateImageRequest; + +UpdateImageRequest::UpdateImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateImage") +{} + +UpdateImageRequest::~UpdateImageRequest() +{} + std::string UpdateImageRequest::getRemarksB()const { return remarksB_; diff --git a/imm/src/model/UpdateImageResult.cc b/imm/src/model/UpdateImageResult.cc index cd7069ba4..44bacd317 100644 --- a/imm/src/model/UpdateImageResult.cc +++ b/imm/src/model/UpdateImageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::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()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateImageResult::UpdateImageResult() : + ServiceResult() +{} + +UpdateImageResult::UpdateImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateImageResult::~UpdateImageResult() +{} + +void UpdateImageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["ImageUri"].isNull()) @@ -58,9 +61,9 @@ void UpdateImageResult::parse(const std::string &payload) remarksD_ = value["RemarksD"].asString(); if(!value["ExternalId"].isNull()) externalId_ = value["ExternalId"].asString(); - -} - + +} + std::string UpdateImageResult::getModifyTime()const { return modifyTime_; diff --git a/imm/src/model/UpdateProjectRequest.cc b/imm/src/model/UpdateProjectRequest.cc index a094548c1..adc94af18 100644 --- a/imm/src/model/UpdateProjectRequest.cc +++ b/imm/src/model/UpdateProjectRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::UpdateProjectRequest; - -UpdateProjectRequest::UpdateProjectRequest() : - RpcServiceRequest("imm", "2017-09-06", "UpdateProject") -{} - -UpdateProjectRequest::~UpdateProjectRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::UpdateProjectRequest; + +UpdateProjectRequest::UpdateProjectRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateProject") +{} + +UpdateProjectRequest::~UpdateProjectRequest() +{} + std::string UpdateProjectRequest::getRegionId()const { return regionId_; diff --git a/imm/src/model/UpdateProjectResult.cc b/imm/src/model/UpdateProjectResult.cc index 2908d3b70..60e7f5e3d 100644 --- a/imm/src/model/UpdateProjectResult.cc +++ b/imm/src/model/UpdateProjectResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -UpdateProjectResult::UpdateProjectResult() : - ServiceResult() -{} - -UpdateProjectResult::UpdateProjectResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateProjectResult::~UpdateProjectResult() -{} - -void UpdateProjectResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateProjectResult::UpdateProjectResult() : + ServiceResult() +{} + +UpdateProjectResult::UpdateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectResult::~UpdateProjectResult() +{} + +void UpdateProjectResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Project"].isNull()) project_ = value["Project"].asString(); if(!value["CreateTime"].isNull()) @@ -52,9 +55,9 @@ void UpdateProjectResult::parse(const std::string &payload) cU_ = std::stoi(value["CU"].asString()); if(!value["Type"].isNull()) type_ = value["Type"].asString(); - -} - + +} + std::string UpdateProjectResult::getProject()const { return project_; diff --git a/imm/src/model/UpdateSetRequest.cc b/imm/src/model/UpdateSetRequest.cc index 8888522c5..07d50514c 100644 --- a/imm/src/model/UpdateSetRequest.cc +++ b/imm/src/model/UpdateSetRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Imm::Model::UpdateSetRequest; - -UpdateSetRequest::UpdateSetRequest() : - RpcServiceRequest("imm", "2017-09-06", "UpdateSet") -{} - -UpdateSetRequest::~UpdateSetRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm::Model::UpdateSetRequest; + +UpdateSetRequest::UpdateSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateSet") +{} + +UpdateSetRequest::~UpdateSetRequest() +{} + std::string UpdateSetRequest::getSetName()const { return setName_; diff --git a/imm/src/model/UpdateSetResult.cc b/imm/src/model/UpdateSetResult.cc index ed51bb54f..dc226e7be 100644 --- a/imm/src/model/UpdateSetResult.cc +++ b/imm/src/model/UpdateSetResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -UpdateSetResult::UpdateSetResult() : - ServiceResult() -{} - -UpdateSetResult::UpdateSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateSetResult::~UpdateSetResult() -{} - -void UpdateSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateSetResult::UpdateSetResult() : + ServiceResult() +{} + +UpdateSetResult::UpdateSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSetResult::~UpdateSetResult() +{} + +void UpdateSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SetId"].isNull()) setId_ = value["SetId"].asString(); if(!value["SetName"].isNull()) @@ -48,9 +51,9 @@ void UpdateSetResult::parse(const std::string &payload) createTime_ = value["CreateTime"].asString(); if(!value["ModifyTime"].isNull()) modifyTime_ = value["ModifyTime"].asString(); - -} - + +} + std::string UpdateSetResult::getModifyTime()const { return modifyTime_; diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index 419b31c53..b9a470d0c 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -25,32 +25,48 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryAppDeviceListResult.h include/alibabacloud/iot/model/DeleteTopicRouteTableRequest.h include/alibabacloud/iot/model/DeleteTopicRouteTableResult.h + include/alibabacloud/iot/model/InvokeDataAPIServiceRequest.h + include/alibabacloud/iot/model/InvokeDataAPIServiceResult.h include/alibabacloud/iot/model/QueryDeviceGroupListRequest.h include/alibabacloud/iot/model/QueryDeviceGroupListResult.h + include/alibabacloud/iot/model/QueryDeviceFileListRequest.h + include/alibabacloud/iot/model/QueryDeviceFileListResult.h include/alibabacloud/iot/model/SetDeviceGroupTagsRequest.h include/alibabacloud/iot/model/SetDeviceGroupTagsResult.h include/alibabacloud/iot/model/QueryDeviceEventDataRequest.h include/alibabacloud/iot/model/QueryDeviceEventDataResult.h + include/alibabacloud/iot/model/BatchQueryDeviceDetailRequest.h + include/alibabacloud/iot/model/BatchQueryDeviceDetailResult.h include/alibabacloud/iot/model/QueryDeviceByTagsRequest.h include/alibabacloud/iot/model/QueryDeviceByTagsResult.h include/alibabacloud/iot/model/GetDeviceStatusRequest.h include/alibabacloud/iot/model/GetDeviceStatusResult.h include/alibabacloud/iot/model/DeleteDeviceRequest.h include/alibabacloud/iot/model/DeleteDeviceResult.h + include/alibabacloud/iot/model/UpdateProductTagsRequest.h + include/alibabacloud/iot/model/UpdateProductTagsResult.h include/alibabacloud/iot/model/CreateDeviceGroupRequest.h include/alibabacloud/iot/model/CreateDeviceGroupResult.h include/alibabacloud/iot/model/EnableThingRequest.h include/alibabacloud/iot/model/EnableThingResult.h include/alibabacloud/iot/model/RRpcRequest.h include/alibabacloud/iot/model/RRpcResult.h + include/alibabacloud/iot/model/ListProductByTagsRequest.h + include/alibabacloud/iot/model/ListProductByTagsResult.h + include/alibabacloud/iot/model/CreateProductTagsRequest.h + include/alibabacloud/iot/model/CreateProductTagsResult.h include/alibabacloud/iot/model/DeleteRuleRequest.h include/alibabacloud/iot/model/DeleteRuleResult.h include/alibabacloud/iot/model/QueryProductTopicRequest.h include/alibabacloud/iot/model/QueryProductTopicResult.h + include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h + include/alibabacloud/iot/model/QueryDeviceDesiredPropertyResult.h include/alibabacloud/iot/model/GetThingTopoRequest.h include/alibabacloud/iot/model/GetThingTopoResult.h include/alibabacloud/iot/model/QueryPageByApplyIdRequest.h include/alibabacloud/iot/model/QueryPageByApplyIdResult.h + include/alibabacloud/iot/model/GetNodesAddingTaskRequest.h + include/alibabacloud/iot/model/GetNodesAddingTaskResult.h include/alibabacloud/iot/model/CreateTopicRouteTableRequest.h include/alibabacloud/iot/model/CreateTopicRouteTableResult.h include/alibabacloud/iot/model/CreateProductRequest.h @@ -63,14 +79,24 @@ set(iot_public_header_model include/alibabacloud/iot/model/UpdateDeviceGroupResult.h include/alibabacloud/iot/model/DeleteDeviceGroupRequest.h include/alibabacloud/iot/model/DeleteDeviceGroupResult.h + include/alibabacloud/iot/model/BatchUpdateDeviceNicknameRequest.h + include/alibabacloud/iot/model/BatchUpdateDeviceNicknameResult.h include/alibabacloud/iot/model/QueryDevicePropRequest.h include/alibabacloud/iot/model/QueryDevicePropResult.h + include/alibabacloud/iot/model/CreateLoRaNodesTaskRequest.h + include/alibabacloud/iot/model/CreateLoRaNodesTaskResult.h include/alibabacloud/iot/model/DeleteDevicePropRequest.h include/alibabacloud/iot/model/DeleteDevicePropResult.h + include/alibabacloud/iot/model/QueryDeviceFileRequest.h + include/alibabacloud/iot/model/QueryDeviceFileResult.h + include/alibabacloud/iot/model/GetLoraNodesTaskRequest.h + include/alibabacloud/iot/model/GetLoraNodesTaskResult.h include/alibabacloud/iot/model/StopRuleRequest.h include/alibabacloud/iot/model/StopRuleResult.h include/alibabacloud/iot/model/QueryDeviceGroupByDeviceRequest.h include/alibabacloud/iot/model/QueryDeviceGroupByDeviceResult.h + include/alibabacloud/iot/model/GetDataAPIServiceDetailRequest.h + include/alibabacloud/iot/model/GetDataAPIServiceDetailResult.h include/alibabacloud/iot/model/QueryDeviceDetailRequest.h include/alibabacloud/iot/model/QueryDeviceDetailResult.h include/alibabacloud/iot/model/NotifyAddThingTopoRequest.h @@ -79,8 +105,12 @@ set(iot_public_header_model include/alibabacloud/iot/model/InvokeThingServiceResult.h include/alibabacloud/iot/model/ListRuleActionsRequest.h include/alibabacloud/iot/model/ListRuleActionsResult.h + include/alibabacloud/iot/model/DeleteDeviceFileRequest.h + include/alibabacloud/iot/model/DeleteDeviceFileResult.h include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h + include/alibabacloud/iot/model/QueryDeviceGroupByTagsRequest.h + include/alibabacloud/iot/model/QueryDeviceGroupByTagsResult.h include/alibabacloud/iot/model/UpdateProductTopicRequest.h include/alibabacloud/iot/model/UpdateProductTopicResult.h include/alibabacloud/iot/model/UpdateRuleActionRequest.h @@ -97,20 +127,28 @@ set(iot_public_header_model include/alibabacloud/iot/model/SetDevicePropertyResult.h include/alibabacloud/iot/model/RegisterDeviceRequest.h include/alibabacloud/iot/model/RegisterDeviceResult.h + include/alibabacloud/iot/model/QuerySuperDeviceGroupRequest.h + include/alibabacloud/iot/model/QuerySuperDeviceGroupResult.h include/alibabacloud/iot/model/QueryDeviceRequest.h include/alibabacloud/iot/model/QueryDeviceResult.h + include/alibabacloud/iot/model/QueryDevicePropertiesDataRequest.h + include/alibabacloud/iot/model/QueryDevicePropertiesDataResult.h include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsRequest.h include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsResult.h include/alibabacloud/iot/model/InvokeThingsServiceRequest.h include/alibabacloud/iot/model/InvokeThingsServiceResult.h + include/alibabacloud/iot/model/SetDeviceDesiredPropertyRequest.h + include/alibabacloud/iot/model/SetDeviceDesiredPropertyResult.h include/alibabacloud/iot/model/QueryDeviceGroupTagListRequest.h include/alibabacloud/iot/model/QueryDeviceGroupTagListResult.h - include/alibabacloud/iot/model/ListRuleRequest.h - include/alibabacloud/iot/model/ListRuleResult.h include/alibabacloud/iot/model/QueryTopicRouteTableRequest.h include/alibabacloud/iot/model/QueryTopicRouteTableResult.h + include/alibabacloud/iot/model/ListRuleRequest.h + include/alibabacloud/iot/model/ListRuleResult.h include/alibabacloud/iot/model/CreateRuleRequest.h include/alibabacloud/iot/model/CreateRuleResult.h + include/alibabacloud/iot/model/QueryDeviceListByDeviceGroupRequest.h + include/alibabacloud/iot/model/QueryDeviceListByDeviceGroupResult.h include/alibabacloud/iot/model/StartRuleRequest.h include/alibabacloud/iot/model/StartRuleResult.h include/alibabacloud/iot/model/QueryProductListRequest.h @@ -119,36 +157,40 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryDevicePropertyStatusResult.h include/alibabacloud/iot/model/QueryDeviceStatisticsRequest.h include/alibabacloud/iot/model/QueryDeviceStatisticsResult.h - include/alibabacloud/iot/model/PubRequest.h - include/alibabacloud/iot/model/PubResult.h + include/alibabacloud/iot/model/DeleteProductTopicRequest.h + include/alibabacloud/iot/model/DeleteProductTopicResult.h include/alibabacloud/iot/model/DeleteProductRequest.h include/alibabacloud/iot/model/DeleteProductResult.h include/alibabacloud/iot/model/SaveDevicePropRequest.h include/alibabacloud/iot/model/SaveDevicePropResult.h - include/alibabacloud/iot/model/DeleteProductTopicRequest.h - include/alibabacloud/iot/model/DeleteProductTopicResult.h + include/alibabacloud/iot/model/PubRequest.h + include/alibabacloud/iot/model/PubResult.h include/alibabacloud/iot/model/QueryDeviceServiceDataRequest.h include/alibabacloud/iot/model/QueryDeviceServiceDataResult.h include/alibabacloud/iot/model/BatchRegisterDeviceWithApplyIdRequest.h include/alibabacloud/iot/model/BatchRegisterDeviceWithApplyIdResult.h include/alibabacloud/iot/model/DisableThingRequest.h include/alibabacloud/iot/model/DisableThingResult.h - include/alibabacloud/iot/model/CreateProductTopicRequest.h - include/alibabacloud/iot/model/CreateProductTopicResult.h include/alibabacloud/iot/model/RemoveThingTopoRequest.h include/alibabacloud/iot/model/RemoveThingTopoResult.h + include/alibabacloud/iot/model/CreateProductTopicRequest.h + include/alibabacloud/iot/model/CreateProductTopicResult.h include/alibabacloud/iot/model/QueryTopicReverseRouteTableRequest.h include/alibabacloud/iot/model/QueryTopicReverseRouteTableResult.h include/alibabacloud/iot/model/BatchGetDeviceStateRequest.h include/alibabacloud/iot/model/BatchGetDeviceStateResult.h include/alibabacloud/iot/model/GetRuleActionRequest.h include/alibabacloud/iot/model/GetRuleActionResult.h - include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h - include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsResult.h + include/alibabacloud/iot/model/DeleteProductTagsRequest.h + include/alibabacloud/iot/model/DeleteProductTagsResult.h include/alibabacloud/iot/model/GetRuleRequest.h include/alibabacloud/iot/model/GetRuleResult.h + include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h + include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsResult.h include/alibabacloud/iot/model/GetDeviceShadowRequest.h include/alibabacloud/iot/model/GetDeviceShadowResult.h + include/alibabacloud/iot/model/QueryLoRaJoinPermissionsRequest.h + include/alibabacloud/iot/model/QueryLoRaJoinPermissionsResult.h include/alibabacloud/iot/model/SetDevicesPropertyRequest.h include/alibabacloud/iot/model/SetDevicesPropertyResult.h include/alibabacloud/iot/model/GetGatewayBySubDeviceRequest.h @@ -161,8 +203,12 @@ set(iot_public_header_model include/alibabacloud/iot/model/BatchRegisterDeviceResult.h include/alibabacloud/iot/model/DeleteRuleActionRequest.h include/alibabacloud/iot/model/DeleteRuleActionResult.h + include/alibabacloud/iot/model/ListProductTagsRequest.h + include/alibabacloud/iot/model/ListProductTagsResult.h include/alibabacloud/iot/model/PubBroadcastRequest.h - include/alibabacloud/iot/model/PubBroadcastResult.h ) + include/alibabacloud/iot/model/PubBroadcastResult.h + include/alibabacloud/iot/model/CreateDataAPIServiceRequest.h + include/alibabacloud/iot/model/CreateDataAPIServiceResult.h ) set(iot_src src/IotClient.cc @@ -170,32 +216,48 @@ set(iot_src src/model/QueryAppDeviceListResult.cc src/model/DeleteTopicRouteTableRequest.cc src/model/DeleteTopicRouteTableResult.cc + src/model/InvokeDataAPIServiceRequest.cc + src/model/InvokeDataAPIServiceResult.cc src/model/QueryDeviceGroupListRequest.cc src/model/QueryDeviceGroupListResult.cc + src/model/QueryDeviceFileListRequest.cc + src/model/QueryDeviceFileListResult.cc src/model/SetDeviceGroupTagsRequest.cc src/model/SetDeviceGroupTagsResult.cc src/model/QueryDeviceEventDataRequest.cc src/model/QueryDeviceEventDataResult.cc + src/model/BatchQueryDeviceDetailRequest.cc + src/model/BatchQueryDeviceDetailResult.cc src/model/QueryDeviceByTagsRequest.cc src/model/QueryDeviceByTagsResult.cc src/model/GetDeviceStatusRequest.cc src/model/GetDeviceStatusResult.cc src/model/DeleteDeviceRequest.cc src/model/DeleteDeviceResult.cc + src/model/UpdateProductTagsRequest.cc + src/model/UpdateProductTagsResult.cc src/model/CreateDeviceGroupRequest.cc src/model/CreateDeviceGroupResult.cc src/model/EnableThingRequest.cc src/model/EnableThingResult.cc src/model/RRpcRequest.cc src/model/RRpcResult.cc + src/model/ListProductByTagsRequest.cc + src/model/ListProductByTagsResult.cc + src/model/CreateProductTagsRequest.cc + src/model/CreateProductTagsResult.cc src/model/DeleteRuleRequest.cc src/model/DeleteRuleResult.cc src/model/QueryProductTopicRequest.cc src/model/QueryProductTopicResult.cc + src/model/QueryDeviceDesiredPropertyRequest.cc + src/model/QueryDeviceDesiredPropertyResult.cc src/model/GetThingTopoRequest.cc src/model/GetThingTopoResult.cc src/model/QueryPageByApplyIdRequest.cc src/model/QueryPageByApplyIdResult.cc + src/model/GetNodesAddingTaskRequest.cc + src/model/GetNodesAddingTaskResult.cc src/model/CreateTopicRouteTableRequest.cc src/model/CreateTopicRouteTableResult.cc src/model/CreateProductRequest.cc @@ -208,14 +270,24 @@ set(iot_src src/model/UpdateDeviceGroupResult.cc src/model/DeleteDeviceGroupRequest.cc src/model/DeleteDeviceGroupResult.cc + src/model/BatchUpdateDeviceNicknameRequest.cc + src/model/BatchUpdateDeviceNicknameResult.cc src/model/QueryDevicePropRequest.cc src/model/QueryDevicePropResult.cc + src/model/CreateLoRaNodesTaskRequest.cc + src/model/CreateLoRaNodesTaskResult.cc src/model/DeleteDevicePropRequest.cc src/model/DeleteDevicePropResult.cc + src/model/QueryDeviceFileRequest.cc + src/model/QueryDeviceFileResult.cc + src/model/GetLoraNodesTaskRequest.cc + src/model/GetLoraNodesTaskResult.cc src/model/StopRuleRequest.cc src/model/StopRuleResult.cc src/model/QueryDeviceGroupByDeviceRequest.cc src/model/QueryDeviceGroupByDeviceResult.cc + src/model/GetDataAPIServiceDetailRequest.cc + src/model/GetDataAPIServiceDetailResult.cc src/model/QueryDeviceDetailRequest.cc src/model/QueryDeviceDetailResult.cc src/model/NotifyAddThingTopoRequest.cc @@ -224,8 +296,12 @@ set(iot_src src/model/InvokeThingServiceResult.cc src/model/ListRuleActionsRequest.cc src/model/ListRuleActionsResult.cc + src/model/DeleteDeviceFileRequest.cc + src/model/DeleteDeviceFileResult.cc src/model/BatchCheckDeviceNamesRequest.cc src/model/BatchCheckDeviceNamesResult.cc + src/model/QueryDeviceGroupByTagsRequest.cc + src/model/QueryDeviceGroupByTagsResult.cc src/model/UpdateProductTopicRequest.cc src/model/UpdateProductTopicResult.cc src/model/UpdateRuleActionRequest.cc @@ -242,20 +318,28 @@ set(iot_src src/model/SetDevicePropertyResult.cc src/model/RegisterDeviceRequest.cc src/model/RegisterDeviceResult.cc + src/model/QuerySuperDeviceGroupRequest.cc + src/model/QuerySuperDeviceGroupResult.cc src/model/QueryDeviceRequest.cc src/model/QueryDeviceResult.cc + src/model/QueryDevicePropertiesDataRequest.cc + src/model/QueryDevicePropertiesDataResult.cc src/model/BatchDeleteDeviceGroupRelationsRequest.cc src/model/BatchDeleteDeviceGroupRelationsResult.cc src/model/InvokeThingsServiceRequest.cc src/model/InvokeThingsServiceResult.cc + src/model/SetDeviceDesiredPropertyRequest.cc + src/model/SetDeviceDesiredPropertyResult.cc src/model/QueryDeviceGroupTagListRequest.cc src/model/QueryDeviceGroupTagListResult.cc - src/model/ListRuleRequest.cc - src/model/ListRuleResult.cc src/model/QueryTopicRouteTableRequest.cc src/model/QueryTopicRouteTableResult.cc + src/model/ListRuleRequest.cc + src/model/ListRuleResult.cc src/model/CreateRuleRequest.cc src/model/CreateRuleResult.cc + src/model/QueryDeviceListByDeviceGroupRequest.cc + src/model/QueryDeviceListByDeviceGroupResult.cc src/model/StartRuleRequest.cc src/model/StartRuleResult.cc src/model/QueryProductListRequest.cc @@ -264,36 +348,40 @@ set(iot_src src/model/QueryDevicePropertyStatusResult.cc src/model/QueryDeviceStatisticsRequest.cc src/model/QueryDeviceStatisticsResult.cc - src/model/PubRequest.cc - src/model/PubResult.cc + src/model/DeleteProductTopicRequest.cc + src/model/DeleteProductTopicResult.cc src/model/DeleteProductRequest.cc src/model/DeleteProductResult.cc src/model/SaveDevicePropRequest.cc src/model/SaveDevicePropResult.cc - src/model/DeleteProductTopicRequest.cc - src/model/DeleteProductTopicResult.cc + src/model/PubRequest.cc + src/model/PubResult.cc src/model/QueryDeviceServiceDataRequest.cc src/model/QueryDeviceServiceDataResult.cc src/model/BatchRegisterDeviceWithApplyIdRequest.cc src/model/BatchRegisterDeviceWithApplyIdResult.cc src/model/DisableThingRequest.cc src/model/DisableThingResult.cc - src/model/CreateProductTopicRequest.cc - src/model/CreateProductTopicResult.cc src/model/RemoveThingTopoRequest.cc src/model/RemoveThingTopoResult.cc + src/model/CreateProductTopicRequest.cc + src/model/CreateProductTopicResult.cc src/model/QueryTopicReverseRouteTableRequest.cc src/model/QueryTopicReverseRouteTableResult.cc src/model/BatchGetDeviceStateRequest.cc src/model/BatchGetDeviceStateResult.cc src/model/GetRuleActionRequest.cc src/model/GetRuleActionResult.cc - src/model/BatchAddDeviceGroupRelationsRequest.cc - src/model/BatchAddDeviceGroupRelationsResult.cc + src/model/DeleteProductTagsRequest.cc + src/model/DeleteProductTagsResult.cc src/model/GetRuleRequest.cc src/model/GetRuleResult.cc + src/model/BatchAddDeviceGroupRelationsRequest.cc + src/model/BatchAddDeviceGroupRelationsResult.cc src/model/GetDeviceShadowRequest.cc src/model/GetDeviceShadowResult.cc + src/model/QueryLoRaJoinPermissionsRequest.cc + src/model/QueryLoRaJoinPermissionsResult.cc src/model/SetDevicesPropertyRequest.cc src/model/SetDevicesPropertyResult.cc src/model/GetGatewayBySubDeviceRequest.cc @@ -306,8 +394,12 @@ set(iot_src src/model/BatchRegisterDeviceResult.cc src/model/DeleteRuleActionRequest.cc src/model/DeleteRuleActionResult.cc + src/model/ListProductTagsRequest.cc + src/model/ListProductTagsResult.cc src/model/PubBroadcastRequest.cc - src/model/PubBroadcastResult.cc ) + src/model/PubBroadcastResult.cc + src/model/CreateDataAPIServiceRequest.cc + src/model/CreateDataAPIServiceResult.cc ) add_library(iot ${LIB_TYPE} ${iot_public_header} diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index 646c32acc..0b6bc852d 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -26,32 +26,48 @@ #include "model/QueryAppDeviceListResult.h" #include "model/DeleteTopicRouteTableRequest.h" #include "model/DeleteTopicRouteTableResult.h" +#include "model/InvokeDataAPIServiceRequest.h" +#include "model/InvokeDataAPIServiceResult.h" #include "model/QueryDeviceGroupListRequest.h" #include "model/QueryDeviceGroupListResult.h" +#include "model/QueryDeviceFileListRequest.h" +#include "model/QueryDeviceFileListResult.h" #include "model/SetDeviceGroupTagsRequest.h" #include "model/SetDeviceGroupTagsResult.h" #include "model/QueryDeviceEventDataRequest.h" #include "model/QueryDeviceEventDataResult.h" +#include "model/BatchQueryDeviceDetailRequest.h" +#include "model/BatchQueryDeviceDetailResult.h" #include "model/QueryDeviceByTagsRequest.h" #include "model/QueryDeviceByTagsResult.h" #include "model/GetDeviceStatusRequest.h" #include "model/GetDeviceStatusResult.h" #include "model/DeleteDeviceRequest.h" #include "model/DeleteDeviceResult.h" +#include "model/UpdateProductTagsRequest.h" +#include "model/UpdateProductTagsResult.h" #include "model/CreateDeviceGroupRequest.h" #include "model/CreateDeviceGroupResult.h" #include "model/EnableThingRequest.h" #include "model/EnableThingResult.h" #include "model/RRpcRequest.h" #include "model/RRpcResult.h" +#include "model/ListProductByTagsRequest.h" +#include "model/ListProductByTagsResult.h" +#include "model/CreateProductTagsRequest.h" +#include "model/CreateProductTagsResult.h" #include "model/DeleteRuleRequest.h" #include "model/DeleteRuleResult.h" #include "model/QueryProductTopicRequest.h" #include "model/QueryProductTopicResult.h" +#include "model/QueryDeviceDesiredPropertyRequest.h" +#include "model/QueryDeviceDesiredPropertyResult.h" #include "model/GetThingTopoRequest.h" #include "model/GetThingTopoResult.h" #include "model/QueryPageByApplyIdRequest.h" #include "model/QueryPageByApplyIdResult.h" +#include "model/GetNodesAddingTaskRequest.h" +#include "model/GetNodesAddingTaskResult.h" #include "model/CreateTopicRouteTableRequest.h" #include "model/CreateTopicRouteTableResult.h" #include "model/CreateProductRequest.h" @@ -64,14 +80,24 @@ #include "model/UpdateDeviceGroupResult.h" #include "model/DeleteDeviceGroupRequest.h" #include "model/DeleteDeviceGroupResult.h" +#include "model/BatchUpdateDeviceNicknameRequest.h" +#include "model/BatchUpdateDeviceNicknameResult.h" #include "model/QueryDevicePropRequest.h" #include "model/QueryDevicePropResult.h" +#include "model/CreateLoRaNodesTaskRequest.h" +#include "model/CreateLoRaNodesTaskResult.h" #include "model/DeleteDevicePropRequest.h" #include "model/DeleteDevicePropResult.h" +#include "model/QueryDeviceFileRequest.h" +#include "model/QueryDeviceFileResult.h" +#include "model/GetLoraNodesTaskRequest.h" +#include "model/GetLoraNodesTaskResult.h" #include "model/StopRuleRequest.h" #include "model/StopRuleResult.h" #include "model/QueryDeviceGroupByDeviceRequest.h" #include "model/QueryDeviceGroupByDeviceResult.h" +#include "model/GetDataAPIServiceDetailRequest.h" +#include "model/GetDataAPIServiceDetailResult.h" #include "model/QueryDeviceDetailRequest.h" #include "model/QueryDeviceDetailResult.h" #include "model/NotifyAddThingTopoRequest.h" @@ -80,8 +106,12 @@ #include "model/InvokeThingServiceResult.h" #include "model/ListRuleActionsRequest.h" #include "model/ListRuleActionsResult.h" +#include "model/DeleteDeviceFileRequest.h" +#include "model/DeleteDeviceFileResult.h" #include "model/BatchCheckDeviceNamesRequest.h" #include "model/BatchCheckDeviceNamesResult.h" +#include "model/QueryDeviceGroupByTagsRequest.h" +#include "model/QueryDeviceGroupByTagsResult.h" #include "model/UpdateProductTopicRequest.h" #include "model/UpdateProductTopicResult.h" #include "model/UpdateRuleActionRequest.h" @@ -98,20 +128,28 @@ #include "model/SetDevicePropertyResult.h" #include "model/RegisterDeviceRequest.h" #include "model/RegisterDeviceResult.h" +#include "model/QuerySuperDeviceGroupRequest.h" +#include "model/QuerySuperDeviceGroupResult.h" #include "model/QueryDeviceRequest.h" #include "model/QueryDeviceResult.h" +#include "model/QueryDevicePropertiesDataRequest.h" +#include "model/QueryDevicePropertiesDataResult.h" #include "model/BatchDeleteDeviceGroupRelationsRequest.h" #include "model/BatchDeleteDeviceGroupRelationsResult.h" #include "model/InvokeThingsServiceRequest.h" #include "model/InvokeThingsServiceResult.h" +#include "model/SetDeviceDesiredPropertyRequest.h" +#include "model/SetDeviceDesiredPropertyResult.h" #include "model/QueryDeviceGroupTagListRequest.h" #include "model/QueryDeviceGroupTagListResult.h" -#include "model/ListRuleRequest.h" -#include "model/ListRuleResult.h" #include "model/QueryTopicRouteTableRequest.h" #include "model/QueryTopicRouteTableResult.h" +#include "model/ListRuleRequest.h" +#include "model/ListRuleResult.h" #include "model/CreateRuleRequest.h" #include "model/CreateRuleResult.h" +#include "model/QueryDeviceListByDeviceGroupRequest.h" +#include "model/QueryDeviceListByDeviceGroupResult.h" #include "model/StartRuleRequest.h" #include "model/StartRuleResult.h" #include "model/QueryProductListRequest.h" @@ -120,36 +158,40 @@ #include "model/QueryDevicePropertyStatusResult.h" #include "model/QueryDeviceStatisticsRequest.h" #include "model/QueryDeviceStatisticsResult.h" -#include "model/PubRequest.h" -#include "model/PubResult.h" +#include "model/DeleteProductTopicRequest.h" +#include "model/DeleteProductTopicResult.h" #include "model/DeleteProductRequest.h" #include "model/DeleteProductResult.h" #include "model/SaveDevicePropRequest.h" #include "model/SaveDevicePropResult.h" -#include "model/DeleteProductTopicRequest.h" -#include "model/DeleteProductTopicResult.h" +#include "model/PubRequest.h" +#include "model/PubResult.h" #include "model/QueryDeviceServiceDataRequest.h" #include "model/QueryDeviceServiceDataResult.h" #include "model/BatchRegisterDeviceWithApplyIdRequest.h" #include "model/BatchRegisterDeviceWithApplyIdResult.h" #include "model/DisableThingRequest.h" #include "model/DisableThingResult.h" -#include "model/CreateProductTopicRequest.h" -#include "model/CreateProductTopicResult.h" #include "model/RemoveThingTopoRequest.h" #include "model/RemoveThingTopoResult.h" +#include "model/CreateProductTopicRequest.h" +#include "model/CreateProductTopicResult.h" #include "model/QueryTopicReverseRouteTableRequest.h" #include "model/QueryTopicReverseRouteTableResult.h" #include "model/BatchGetDeviceStateRequest.h" #include "model/BatchGetDeviceStateResult.h" #include "model/GetRuleActionRequest.h" #include "model/GetRuleActionResult.h" -#include "model/BatchAddDeviceGroupRelationsRequest.h" -#include "model/BatchAddDeviceGroupRelationsResult.h" +#include "model/DeleteProductTagsRequest.h" +#include "model/DeleteProductTagsResult.h" #include "model/GetRuleRequest.h" #include "model/GetRuleResult.h" +#include "model/BatchAddDeviceGroupRelationsRequest.h" +#include "model/BatchAddDeviceGroupRelationsResult.h" #include "model/GetDeviceShadowRequest.h" #include "model/GetDeviceShadowResult.h" +#include "model/QueryLoRaJoinPermissionsRequest.h" +#include "model/QueryLoRaJoinPermissionsResult.h" #include "model/SetDevicesPropertyRequest.h" #include "model/SetDevicesPropertyResult.h" #include "model/GetGatewayBySubDeviceRequest.h" @@ -162,8 +204,12 @@ #include "model/BatchRegisterDeviceResult.h" #include "model/DeleteRuleActionRequest.h" #include "model/DeleteRuleActionResult.h" +#include "model/ListProductTagsRequest.h" +#include "model/ListProductTagsResult.h" #include "model/PubBroadcastRequest.h" #include "model/PubBroadcastResult.h" +#include "model/CreateDataAPIServiceRequest.h" +#include "model/CreateDataAPIServiceResult.h" namespace AlibabaCloud @@ -179,15 +225,24 @@ namespace AlibabaCloud typedef Outcome DeleteTopicRouteTableOutcome; typedef std::future DeleteTopicRouteTableOutcomeCallable; typedef std::function&)> DeleteTopicRouteTableAsyncHandler; + typedef Outcome InvokeDataAPIServiceOutcome; + typedef std::future InvokeDataAPIServiceOutcomeCallable; + typedef std::function&)> InvokeDataAPIServiceAsyncHandler; typedef Outcome QueryDeviceGroupListOutcome; typedef std::future QueryDeviceGroupListOutcomeCallable; typedef std::function&)> QueryDeviceGroupListAsyncHandler; + typedef Outcome QueryDeviceFileListOutcome; + typedef std::future QueryDeviceFileListOutcomeCallable; + typedef std::function&)> QueryDeviceFileListAsyncHandler; typedef Outcome SetDeviceGroupTagsOutcome; typedef std::future SetDeviceGroupTagsOutcomeCallable; typedef std::function&)> SetDeviceGroupTagsAsyncHandler; typedef Outcome QueryDeviceEventDataOutcome; typedef std::future QueryDeviceEventDataOutcomeCallable; typedef std::function&)> QueryDeviceEventDataAsyncHandler; + typedef Outcome BatchQueryDeviceDetailOutcome; + typedef std::future BatchQueryDeviceDetailOutcomeCallable; + typedef std::function&)> BatchQueryDeviceDetailAsyncHandler; typedef Outcome QueryDeviceByTagsOutcome; typedef std::future QueryDeviceByTagsOutcomeCallable; typedef std::function&)> QueryDeviceByTagsAsyncHandler; @@ -197,6 +252,9 @@ namespace AlibabaCloud typedef Outcome DeleteDeviceOutcome; typedef std::future DeleteDeviceOutcomeCallable; typedef std::function&)> DeleteDeviceAsyncHandler; + typedef Outcome UpdateProductTagsOutcome; + typedef std::future UpdateProductTagsOutcomeCallable; + typedef std::function&)> UpdateProductTagsAsyncHandler; typedef Outcome CreateDeviceGroupOutcome; typedef std::future CreateDeviceGroupOutcomeCallable; typedef std::function&)> CreateDeviceGroupAsyncHandler; @@ -206,18 +264,30 @@ namespace AlibabaCloud typedef Outcome RRpcOutcome; typedef std::future RRpcOutcomeCallable; typedef std::function&)> RRpcAsyncHandler; + typedef Outcome ListProductByTagsOutcome; + typedef std::future ListProductByTagsOutcomeCallable; + typedef std::function&)> ListProductByTagsAsyncHandler; + typedef Outcome CreateProductTagsOutcome; + typedef std::future CreateProductTagsOutcomeCallable; + typedef std::function&)> CreateProductTagsAsyncHandler; typedef Outcome DeleteRuleOutcome; typedef std::future DeleteRuleOutcomeCallable; typedef std::function&)> DeleteRuleAsyncHandler; typedef Outcome QueryProductTopicOutcome; typedef std::future QueryProductTopicOutcomeCallable; typedef std::function&)> QueryProductTopicAsyncHandler; + typedef Outcome QueryDeviceDesiredPropertyOutcome; + typedef std::future QueryDeviceDesiredPropertyOutcomeCallable; + typedef std::function&)> QueryDeviceDesiredPropertyAsyncHandler; typedef Outcome GetThingTopoOutcome; typedef std::future GetThingTopoOutcomeCallable; typedef std::function&)> GetThingTopoAsyncHandler; typedef Outcome QueryPageByApplyIdOutcome; typedef std::future QueryPageByApplyIdOutcomeCallable; typedef std::function&)> QueryPageByApplyIdAsyncHandler; + typedef Outcome GetNodesAddingTaskOutcome; + typedef std::future GetNodesAddingTaskOutcomeCallable; + typedef std::function&)> GetNodesAddingTaskAsyncHandler; typedef Outcome CreateTopicRouteTableOutcome; typedef std::future CreateTopicRouteTableOutcomeCallable; typedef std::function&)> CreateTopicRouteTableAsyncHandler; @@ -236,18 +306,33 @@ namespace AlibabaCloud typedef Outcome DeleteDeviceGroupOutcome; typedef std::future DeleteDeviceGroupOutcomeCallable; typedef std::function&)> DeleteDeviceGroupAsyncHandler; + typedef Outcome BatchUpdateDeviceNicknameOutcome; + typedef std::future BatchUpdateDeviceNicknameOutcomeCallable; + typedef std::function&)> BatchUpdateDeviceNicknameAsyncHandler; typedef Outcome QueryDevicePropOutcome; typedef std::future QueryDevicePropOutcomeCallable; typedef std::function&)> QueryDevicePropAsyncHandler; + typedef Outcome CreateLoRaNodesTaskOutcome; + typedef std::future CreateLoRaNodesTaskOutcomeCallable; + typedef std::function&)> CreateLoRaNodesTaskAsyncHandler; typedef Outcome DeleteDevicePropOutcome; typedef std::future DeleteDevicePropOutcomeCallable; typedef std::function&)> DeleteDevicePropAsyncHandler; + typedef Outcome QueryDeviceFileOutcome; + typedef std::future QueryDeviceFileOutcomeCallable; + typedef std::function&)> QueryDeviceFileAsyncHandler; + typedef Outcome GetLoraNodesTaskOutcome; + typedef std::future GetLoraNodesTaskOutcomeCallable; + typedef std::function&)> GetLoraNodesTaskAsyncHandler; typedef Outcome StopRuleOutcome; typedef std::future StopRuleOutcomeCallable; typedef std::function&)> StopRuleAsyncHandler; typedef Outcome QueryDeviceGroupByDeviceOutcome; typedef std::future QueryDeviceGroupByDeviceOutcomeCallable; typedef std::function&)> QueryDeviceGroupByDeviceAsyncHandler; + typedef Outcome GetDataAPIServiceDetailOutcome; + typedef std::future GetDataAPIServiceDetailOutcomeCallable; + typedef std::function&)> GetDataAPIServiceDetailAsyncHandler; typedef Outcome QueryDeviceDetailOutcome; typedef std::future QueryDeviceDetailOutcomeCallable; typedef std::function&)> QueryDeviceDetailAsyncHandler; @@ -260,9 +345,15 @@ namespace AlibabaCloud typedef Outcome ListRuleActionsOutcome; typedef std::future ListRuleActionsOutcomeCallable; typedef std::function&)> ListRuleActionsAsyncHandler; + typedef Outcome DeleteDeviceFileOutcome; + typedef std::future DeleteDeviceFileOutcomeCallable; + typedef std::function&)> DeleteDeviceFileAsyncHandler; typedef Outcome BatchCheckDeviceNamesOutcome; typedef std::future BatchCheckDeviceNamesOutcomeCallable; typedef std::function&)> BatchCheckDeviceNamesAsyncHandler; + typedef Outcome QueryDeviceGroupByTagsOutcome; + typedef std::future QueryDeviceGroupByTagsOutcomeCallable; + typedef std::function&)> QueryDeviceGroupByTagsAsyncHandler; typedef Outcome UpdateProductTopicOutcome; typedef std::future UpdateProductTopicOutcomeCallable; typedef std::function&)> UpdateProductTopicAsyncHandler; @@ -287,27 +378,39 @@ namespace AlibabaCloud typedef Outcome RegisterDeviceOutcome; typedef std::future RegisterDeviceOutcomeCallable; typedef std::function&)> RegisterDeviceAsyncHandler; + typedef Outcome QuerySuperDeviceGroupOutcome; + typedef std::future QuerySuperDeviceGroupOutcomeCallable; + typedef std::function&)> QuerySuperDeviceGroupAsyncHandler; typedef Outcome QueryDeviceOutcome; typedef std::future QueryDeviceOutcomeCallable; typedef std::function&)> QueryDeviceAsyncHandler; + typedef Outcome QueryDevicePropertiesDataOutcome; + typedef std::future QueryDevicePropertiesDataOutcomeCallable; + typedef std::function&)> QueryDevicePropertiesDataAsyncHandler; typedef Outcome BatchDeleteDeviceGroupRelationsOutcome; typedef std::future BatchDeleteDeviceGroupRelationsOutcomeCallable; typedef std::function&)> BatchDeleteDeviceGroupRelationsAsyncHandler; typedef Outcome InvokeThingsServiceOutcome; typedef std::future InvokeThingsServiceOutcomeCallable; typedef std::function&)> InvokeThingsServiceAsyncHandler; + typedef Outcome SetDeviceDesiredPropertyOutcome; + typedef std::future SetDeviceDesiredPropertyOutcomeCallable; + typedef std::function&)> SetDeviceDesiredPropertyAsyncHandler; typedef Outcome QueryDeviceGroupTagListOutcome; typedef std::future QueryDeviceGroupTagListOutcomeCallable; typedef std::function&)> QueryDeviceGroupTagListAsyncHandler; - typedef Outcome ListRuleOutcome; - typedef std::future ListRuleOutcomeCallable; - typedef std::function&)> ListRuleAsyncHandler; typedef Outcome QueryTopicRouteTableOutcome; typedef std::future QueryTopicRouteTableOutcomeCallable; typedef std::function&)> QueryTopicRouteTableAsyncHandler; + typedef Outcome ListRuleOutcome; + typedef std::future ListRuleOutcomeCallable; + typedef std::function&)> ListRuleAsyncHandler; typedef Outcome CreateRuleOutcome; typedef std::future CreateRuleOutcomeCallable; typedef std::function&)> CreateRuleAsyncHandler; + typedef Outcome QueryDeviceListByDeviceGroupOutcome; + typedef std::future QueryDeviceListByDeviceGroupOutcomeCallable; + typedef std::function&)> QueryDeviceListByDeviceGroupAsyncHandler; typedef Outcome StartRuleOutcome; typedef std::future StartRuleOutcomeCallable; typedef std::function&)> StartRuleAsyncHandler; @@ -320,18 +423,18 @@ namespace AlibabaCloud typedef Outcome QueryDeviceStatisticsOutcome; typedef std::future QueryDeviceStatisticsOutcomeCallable; typedef std::function&)> QueryDeviceStatisticsAsyncHandler; - typedef Outcome PubOutcome; - typedef std::future PubOutcomeCallable; - typedef std::function&)> PubAsyncHandler; + typedef Outcome DeleteProductTopicOutcome; + typedef std::future DeleteProductTopicOutcomeCallable; + typedef std::function&)> DeleteProductTopicAsyncHandler; typedef Outcome DeleteProductOutcome; typedef std::future DeleteProductOutcomeCallable; typedef std::function&)> DeleteProductAsyncHandler; typedef Outcome SaveDevicePropOutcome; typedef std::future SaveDevicePropOutcomeCallable; typedef std::function&)> SaveDevicePropAsyncHandler; - typedef Outcome DeleteProductTopicOutcome; - typedef std::future DeleteProductTopicOutcomeCallable; - typedef std::function&)> DeleteProductTopicAsyncHandler; + typedef Outcome PubOutcome; + typedef std::future PubOutcomeCallable; + typedef std::function&)> PubAsyncHandler; typedef Outcome QueryDeviceServiceDataOutcome; typedef std::future QueryDeviceServiceDataOutcomeCallable; typedef std::function&)> QueryDeviceServiceDataAsyncHandler; @@ -341,12 +444,12 @@ namespace AlibabaCloud typedef Outcome DisableThingOutcome; typedef std::future DisableThingOutcomeCallable; typedef std::function&)> DisableThingAsyncHandler; - typedef Outcome CreateProductTopicOutcome; - typedef std::future CreateProductTopicOutcomeCallable; - typedef std::function&)> CreateProductTopicAsyncHandler; typedef Outcome RemoveThingTopoOutcome; typedef std::future RemoveThingTopoOutcomeCallable; typedef std::function&)> RemoveThingTopoAsyncHandler; + typedef Outcome CreateProductTopicOutcome; + typedef std::future CreateProductTopicOutcomeCallable; + typedef std::function&)> CreateProductTopicAsyncHandler; typedef Outcome QueryTopicReverseRouteTableOutcome; typedef std::future QueryTopicReverseRouteTableOutcomeCallable; typedef std::function&)> QueryTopicReverseRouteTableAsyncHandler; @@ -356,15 +459,21 @@ namespace AlibabaCloud typedef Outcome GetRuleActionOutcome; typedef std::future GetRuleActionOutcomeCallable; typedef std::function&)> GetRuleActionAsyncHandler; - typedef Outcome BatchAddDeviceGroupRelationsOutcome; - typedef std::future BatchAddDeviceGroupRelationsOutcomeCallable; - typedef std::function&)> BatchAddDeviceGroupRelationsAsyncHandler; + typedef Outcome DeleteProductTagsOutcome; + typedef std::future DeleteProductTagsOutcomeCallable; + typedef std::function&)> DeleteProductTagsAsyncHandler; typedef Outcome GetRuleOutcome; typedef std::future GetRuleOutcomeCallable; typedef std::function&)> GetRuleAsyncHandler; + typedef Outcome BatchAddDeviceGroupRelationsOutcome; + typedef std::future BatchAddDeviceGroupRelationsOutcomeCallable; + typedef std::function&)> BatchAddDeviceGroupRelationsAsyncHandler; typedef Outcome GetDeviceShadowOutcome; typedef std::future GetDeviceShadowOutcomeCallable; typedef std::function&)> GetDeviceShadowAsyncHandler; + typedef Outcome QueryLoRaJoinPermissionsOutcome; + typedef std::future QueryLoRaJoinPermissionsOutcomeCallable; + typedef std::function&)> QueryLoRaJoinPermissionsAsyncHandler; typedef Outcome SetDevicesPropertyOutcome; typedef std::future SetDevicesPropertyOutcomeCallable; typedef std::function&)> SetDevicesPropertyAsyncHandler; @@ -383,9 +492,15 @@ namespace AlibabaCloud typedef Outcome DeleteRuleActionOutcome; typedef std::future DeleteRuleActionOutcomeCallable; typedef std::function&)> DeleteRuleActionAsyncHandler; + typedef Outcome ListProductTagsOutcome; + typedef std::future ListProductTagsOutcomeCallable; + typedef std::function&)> ListProductTagsAsyncHandler; typedef Outcome PubBroadcastOutcome; typedef std::future PubBroadcastOutcomeCallable; typedef std::function&)> PubBroadcastAsyncHandler; + typedef Outcome CreateDataAPIServiceOutcome; + typedef std::future CreateDataAPIServiceOutcomeCallable; + typedef std::function&)> CreateDataAPIServiceAsyncHandler; IotClient(const Credentials &credentials, const ClientConfiguration &configuration); IotClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -397,15 +512,24 @@ namespace AlibabaCloud DeleteTopicRouteTableOutcome deleteTopicRouteTable(const Model::DeleteTopicRouteTableRequest &request)const; void deleteTopicRouteTableAsync(const Model::DeleteTopicRouteTableRequest& request, const DeleteTopicRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTopicRouteTableOutcomeCallable deleteTopicRouteTableCallable(const Model::DeleteTopicRouteTableRequest& request) const; + InvokeDataAPIServiceOutcome invokeDataAPIService(const Model::InvokeDataAPIServiceRequest &request)const; + void invokeDataAPIServiceAsync(const Model::InvokeDataAPIServiceRequest& request, const InvokeDataAPIServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InvokeDataAPIServiceOutcomeCallable invokeDataAPIServiceCallable(const Model::InvokeDataAPIServiceRequest& request) const; QueryDeviceGroupListOutcome queryDeviceGroupList(const Model::QueryDeviceGroupListRequest &request)const; void queryDeviceGroupListAsync(const Model::QueryDeviceGroupListRequest& request, const QueryDeviceGroupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceGroupListOutcomeCallable queryDeviceGroupListCallable(const Model::QueryDeviceGroupListRequest& request) const; + QueryDeviceFileListOutcome queryDeviceFileList(const Model::QueryDeviceFileListRequest &request)const; + void queryDeviceFileListAsync(const Model::QueryDeviceFileListRequest& request, const QueryDeviceFileListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceFileListOutcomeCallable queryDeviceFileListCallable(const Model::QueryDeviceFileListRequest& request) const; SetDeviceGroupTagsOutcome setDeviceGroupTags(const Model::SetDeviceGroupTagsRequest &request)const; void setDeviceGroupTagsAsync(const Model::SetDeviceGroupTagsRequest& request, const SetDeviceGroupTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDeviceGroupTagsOutcomeCallable setDeviceGroupTagsCallable(const Model::SetDeviceGroupTagsRequest& request) const; QueryDeviceEventDataOutcome queryDeviceEventData(const Model::QueryDeviceEventDataRequest &request)const; void queryDeviceEventDataAsync(const Model::QueryDeviceEventDataRequest& request, const QueryDeviceEventDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceEventDataOutcomeCallable queryDeviceEventDataCallable(const Model::QueryDeviceEventDataRequest& request) const; + BatchQueryDeviceDetailOutcome batchQueryDeviceDetail(const Model::BatchQueryDeviceDetailRequest &request)const; + void batchQueryDeviceDetailAsync(const Model::BatchQueryDeviceDetailRequest& request, const BatchQueryDeviceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchQueryDeviceDetailOutcomeCallable batchQueryDeviceDetailCallable(const Model::BatchQueryDeviceDetailRequest& request) const; QueryDeviceByTagsOutcome queryDeviceByTags(const Model::QueryDeviceByTagsRequest &request)const; void queryDeviceByTagsAsync(const Model::QueryDeviceByTagsRequest& request, const QueryDeviceByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceByTagsOutcomeCallable queryDeviceByTagsCallable(const Model::QueryDeviceByTagsRequest& request) const; @@ -415,6 +539,9 @@ namespace AlibabaCloud DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const; void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const; + UpdateProductTagsOutcome updateProductTags(const Model::UpdateProductTagsRequest &request)const; + void updateProductTagsAsync(const Model::UpdateProductTagsRequest& request, const UpdateProductTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProductTagsOutcomeCallable updateProductTagsCallable(const Model::UpdateProductTagsRequest& request) const; CreateDeviceGroupOutcome createDeviceGroup(const Model::CreateDeviceGroupRequest &request)const; void createDeviceGroupAsync(const Model::CreateDeviceGroupRequest& request, const CreateDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDeviceGroupOutcomeCallable createDeviceGroupCallable(const Model::CreateDeviceGroupRequest& request) const; @@ -424,18 +551,30 @@ namespace AlibabaCloud RRpcOutcome rRpc(const Model::RRpcRequest &request)const; void rRpcAsync(const Model::RRpcRequest& request, const RRpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RRpcOutcomeCallable rRpcCallable(const Model::RRpcRequest& request) const; + ListProductByTagsOutcome listProductByTags(const Model::ListProductByTagsRequest &request)const; + void listProductByTagsAsync(const Model::ListProductByTagsRequest& request, const ListProductByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProductByTagsOutcomeCallable listProductByTagsCallable(const Model::ListProductByTagsRequest& request) const; + CreateProductTagsOutcome createProductTags(const Model::CreateProductTagsRequest &request)const; + void createProductTagsAsync(const Model::CreateProductTagsRequest& request, const CreateProductTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProductTagsOutcomeCallable createProductTagsCallable(const Model::CreateProductTagsRequest& request) const; DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; QueryProductTopicOutcome queryProductTopic(const Model::QueryProductTopicRequest &request)const; void queryProductTopicAsync(const Model::QueryProductTopicRequest& request, const QueryProductTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryProductTopicOutcomeCallable queryProductTopicCallable(const Model::QueryProductTopicRequest& request) const; + QueryDeviceDesiredPropertyOutcome queryDeviceDesiredProperty(const Model::QueryDeviceDesiredPropertyRequest &request)const; + void queryDeviceDesiredPropertyAsync(const Model::QueryDeviceDesiredPropertyRequest& request, const QueryDeviceDesiredPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceDesiredPropertyOutcomeCallable queryDeviceDesiredPropertyCallable(const Model::QueryDeviceDesiredPropertyRequest& request) const; GetThingTopoOutcome getThingTopo(const Model::GetThingTopoRequest &request)const; void getThingTopoAsync(const Model::GetThingTopoRequest& request, const GetThingTopoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetThingTopoOutcomeCallable getThingTopoCallable(const Model::GetThingTopoRequest& request) const; QueryPageByApplyIdOutcome queryPageByApplyId(const Model::QueryPageByApplyIdRequest &request)const; void queryPageByApplyIdAsync(const Model::QueryPageByApplyIdRequest& request, const QueryPageByApplyIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryPageByApplyIdOutcomeCallable queryPageByApplyIdCallable(const Model::QueryPageByApplyIdRequest& request) const; + GetNodesAddingTaskOutcome getNodesAddingTask(const Model::GetNodesAddingTaskRequest &request)const; + void getNodesAddingTaskAsync(const Model::GetNodesAddingTaskRequest& request, const GetNodesAddingTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNodesAddingTaskOutcomeCallable getNodesAddingTaskCallable(const Model::GetNodesAddingTaskRequest& request) const; CreateTopicRouteTableOutcome createTopicRouteTable(const Model::CreateTopicRouteTableRequest &request)const; void createTopicRouteTableAsync(const Model::CreateTopicRouteTableRequest& request, const CreateTopicRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTopicRouteTableOutcomeCallable createTopicRouteTableCallable(const Model::CreateTopicRouteTableRequest& request) const; @@ -454,18 +593,33 @@ namespace AlibabaCloud DeleteDeviceGroupOutcome deleteDeviceGroup(const Model::DeleteDeviceGroupRequest &request)const; void deleteDeviceGroupAsync(const Model::DeleteDeviceGroupRequest& request, const DeleteDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDeviceGroupOutcomeCallable deleteDeviceGroupCallable(const Model::DeleteDeviceGroupRequest& request) const; + BatchUpdateDeviceNicknameOutcome batchUpdateDeviceNickname(const Model::BatchUpdateDeviceNicknameRequest &request)const; + void batchUpdateDeviceNicknameAsync(const Model::BatchUpdateDeviceNicknameRequest& request, const BatchUpdateDeviceNicknameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchUpdateDeviceNicknameOutcomeCallable batchUpdateDeviceNicknameCallable(const Model::BatchUpdateDeviceNicknameRequest& request) const; QueryDevicePropOutcome queryDeviceProp(const Model::QueryDevicePropRequest &request)const; void queryDevicePropAsync(const Model::QueryDevicePropRequest& request, const QueryDevicePropAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDevicePropOutcomeCallable queryDevicePropCallable(const Model::QueryDevicePropRequest& request) const; + CreateLoRaNodesTaskOutcome createLoRaNodesTask(const Model::CreateLoRaNodesTaskRequest &request)const; + void createLoRaNodesTaskAsync(const Model::CreateLoRaNodesTaskRequest& request, const CreateLoRaNodesTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoRaNodesTaskOutcomeCallable createLoRaNodesTaskCallable(const Model::CreateLoRaNodesTaskRequest& request) const; DeleteDevicePropOutcome deleteDeviceProp(const Model::DeleteDevicePropRequest &request)const; void deleteDevicePropAsync(const Model::DeleteDevicePropRequest& request, const DeleteDevicePropAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDevicePropOutcomeCallable deleteDevicePropCallable(const Model::DeleteDevicePropRequest& request) const; + QueryDeviceFileOutcome queryDeviceFile(const Model::QueryDeviceFileRequest &request)const; + void queryDeviceFileAsync(const Model::QueryDeviceFileRequest& request, const QueryDeviceFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceFileOutcomeCallable queryDeviceFileCallable(const Model::QueryDeviceFileRequest& request) const; + GetLoraNodesTaskOutcome getLoraNodesTask(const Model::GetLoraNodesTaskRequest &request)const; + void getLoraNodesTaskAsync(const Model::GetLoraNodesTaskRequest& request, const GetLoraNodesTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLoraNodesTaskOutcomeCallable getLoraNodesTaskCallable(const Model::GetLoraNodesTaskRequest& request) const; StopRuleOutcome stopRule(const Model::StopRuleRequest &request)const; void stopRuleAsync(const Model::StopRuleRequest& request, const StopRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopRuleOutcomeCallable stopRuleCallable(const Model::StopRuleRequest& request) const; QueryDeviceGroupByDeviceOutcome queryDeviceGroupByDevice(const Model::QueryDeviceGroupByDeviceRequest &request)const; void queryDeviceGroupByDeviceAsync(const Model::QueryDeviceGroupByDeviceRequest& request, const QueryDeviceGroupByDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceGroupByDeviceOutcomeCallable queryDeviceGroupByDeviceCallable(const Model::QueryDeviceGroupByDeviceRequest& request) const; + GetDataAPIServiceDetailOutcome getDataAPIServiceDetail(const Model::GetDataAPIServiceDetailRequest &request)const; + void getDataAPIServiceDetailAsync(const Model::GetDataAPIServiceDetailRequest& request, const GetDataAPIServiceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDataAPIServiceDetailOutcomeCallable getDataAPIServiceDetailCallable(const Model::GetDataAPIServiceDetailRequest& request) const; QueryDeviceDetailOutcome queryDeviceDetail(const Model::QueryDeviceDetailRequest &request)const; void queryDeviceDetailAsync(const Model::QueryDeviceDetailRequest& request, const QueryDeviceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceDetailOutcomeCallable queryDeviceDetailCallable(const Model::QueryDeviceDetailRequest& request) const; @@ -478,9 +632,15 @@ namespace AlibabaCloud ListRuleActionsOutcome listRuleActions(const Model::ListRuleActionsRequest &request)const; void listRuleActionsAsync(const Model::ListRuleActionsRequest& request, const ListRuleActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRuleActionsOutcomeCallable listRuleActionsCallable(const Model::ListRuleActionsRequest& request) const; + DeleteDeviceFileOutcome deleteDeviceFile(const Model::DeleteDeviceFileRequest &request)const; + void deleteDeviceFileAsync(const Model::DeleteDeviceFileRequest& request, const DeleteDeviceFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeviceFileOutcomeCallable deleteDeviceFileCallable(const Model::DeleteDeviceFileRequest& request) const; BatchCheckDeviceNamesOutcome batchCheckDeviceNames(const Model::BatchCheckDeviceNamesRequest &request)const; void batchCheckDeviceNamesAsync(const Model::BatchCheckDeviceNamesRequest& request, const BatchCheckDeviceNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchCheckDeviceNamesOutcomeCallable batchCheckDeviceNamesCallable(const Model::BatchCheckDeviceNamesRequest& request) const; + QueryDeviceGroupByTagsOutcome queryDeviceGroupByTags(const Model::QueryDeviceGroupByTagsRequest &request)const; + void queryDeviceGroupByTagsAsync(const Model::QueryDeviceGroupByTagsRequest& request, const QueryDeviceGroupByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceGroupByTagsOutcomeCallable queryDeviceGroupByTagsCallable(const Model::QueryDeviceGroupByTagsRequest& request) const; UpdateProductTopicOutcome updateProductTopic(const Model::UpdateProductTopicRequest &request)const; void updateProductTopicAsync(const Model::UpdateProductTopicRequest& request, const UpdateProductTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateProductTopicOutcomeCallable updateProductTopicCallable(const Model::UpdateProductTopicRequest& request) const; @@ -505,27 +665,39 @@ namespace AlibabaCloud RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const; void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const; + QuerySuperDeviceGroupOutcome querySuperDeviceGroup(const Model::QuerySuperDeviceGroupRequest &request)const; + void querySuperDeviceGroupAsync(const Model::QuerySuperDeviceGroupRequest& request, const QuerySuperDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySuperDeviceGroupOutcomeCallable querySuperDeviceGroupCallable(const Model::QuerySuperDeviceGroupRequest& request) const; QueryDeviceOutcome queryDevice(const Model::QueryDeviceRequest &request)const; void queryDeviceAsync(const Model::QueryDeviceRequest& request, const QueryDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceOutcomeCallable queryDeviceCallable(const Model::QueryDeviceRequest& request) const; + QueryDevicePropertiesDataOutcome queryDevicePropertiesData(const Model::QueryDevicePropertiesDataRequest &request)const; + void queryDevicePropertiesDataAsync(const Model::QueryDevicePropertiesDataRequest& request, const QueryDevicePropertiesDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDevicePropertiesDataOutcomeCallable queryDevicePropertiesDataCallable(const Model::QueryDevicePropertiesDataRequest& request) const; BatchDeleteDeviceGroupRelationsOutcome batchDeleteDeviceGroupRelations(const Model::BatchDeleteDeviceGroupRelationsRequest &request)const; void batchDeleteDeviceGroupRelationsAsync(const Model::BatchDeleteDeviceGroupRelationsRequest& request, const BatchDeleteDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchDeleteDeviceGroupRelationsOutcomeCallable batchDeleteDeviceGroupRelationsCallable(const Model::BatchDeleteDeviceGroupRelationsRequest& request) const; InvokeThingsServiceOutcome invokeThingsService(const Model::InvokeThingsServiceRequest &request)const; void invokeThingsServiceAsync(const Model::InvokeThingsServiceRequest& request, const InvokeThingsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InvokeThingsServiceOutcomeCallable invokeThingsServiceCallable(const Model::InvokeThingsServiceRequest& request) const; + SetDeviceDesiredPropertyOutcome setDeviceDesiredProperty(const Model::SetDeviceDesiredPropertyRequest &request)const; + void setDeviceDesiredPropertyAsync(const Model::SetDeviceDesiredPropertyRequest& request, const SetDeviceDesiredPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDeviceDesiredPropertyOutcomeCallable setDeviceDesiredPropertyCallable(const Model::SetDeviceDesiredPropertyRequest& request) const; QueryDeviceGroupTagListOutcome queryDeviceGroupTagList(const Model::QueryDeviceGroupTagListRequest &request)const; void queryDeviceGroupTagListAsync(const Model::QueryDeviceGroupTagListRequest& request, const QueryDeviceGroupTagListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceGroupTagListOutcomeCallable queryDeviceGroupTagListCallable(const Model::QueryDeviceGroupTagListRequest& request) const; - ListRuleOutcome listRule(const Model::ListRuleRequest &request)const; - void listRuleAsync(const Model::ListRuleRequest& request, const ListRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRuleOutcomeCallable listRuleCallable(const Model::ListRuleRequest& request) const; QueryTopicRouteTableOutcome queryTopicRouteTable(const Model::QueryTopicRouteTableRequest &request)const; void queryTopicRouteTableAsync(const Model::QueryTopicRouteTableRequest& request, const QueryTopicRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTopicRouteTableOutcomeCallable queryTopicRouteTableCallable(const Model::QueryTopicRouteTableRequest& request) const; + ListRuleOutcome listRule(const Model::ListRuleRequest &request)const; + void listRuleAsync(const Model::ListRuleRequest& request, const ListRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRuleOutcomeCallable listRuleCallable(const Model::ListRuleRequest& request) const; CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; + QueryDeviceListByDeviceGroupOutcome queryDeviceListByDeviceGroup(const Model::QueryDeviceListByDeviceGroupRequest &request)const; + void queryDeviceListByDeviceGroupAsync(const Model::QueryDeviceListByDeviceGroupRequest& request, const QueryDeviceListByDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceListByDeviceGroupOutcomeCallable queryDeviceListByDeviceGroupCallable(const Model::QueryDeviceListByDeviceGroupRequest& request) const; StartRuleOutcome startRule(const Model::StartRuleRequest &request)const; void startRuleAsync(const Model::StartRuleRequest& request, const StartRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartRuleOutcomeCallable startRuleCallable(const Model::StartRuleRequest& request) const; @@ -538,18 +710,18 @@ namespace AlibabaCloud QueryDeviceStatisticsOutcome queryDeviceStatistics(const Model::QueryDeviceStatisticsRequest &request)const; void queryDeviceStatisticsAsync(const Model::QueryDeviceStatisticsRequest& request, const QueryDeviceStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceStatisticsOutcomeCallable queryDeviceStatisticsCallable(const Model::QueryDeviceStatisticsRequest& request) const; - PubOutcome pub(const Model::PubRequest &request)const; - void pubAsync(const Model::PubRequest& request, const PubAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PubOutcomeCallable pubCallable(const Model::PubRequest& request) const; + DeleteProductTopicOutcome deleteProductTopic(const Model::DeleteProductTopicRequest &request)const; + void deleteProductTopicAsync(const Model::DeleteProductTopicRequest& request, const DeleteProductTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProductTopicOutcomeCallable deleteProductTopicCallable(const Model::DeleteProductTopicRequest& request) const; DeleteProductOutcome deleteProduct(const Model::DeleteProductRequest &request)const; void deleteProductAsync(const Model::DeleteProductRequest& request, const DeleteProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteProductOutcomeCallable deleteProductCallable(const Model::DeleteProductRequest& request) const; SaveDevicePropOutcome saveDeviceProp(const Model::SaveDevicePropRequest &request)const; void saveDevicePropAsync(const Model::SaveDevicePropRequest& request, const SaveDevicePropAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveDevicePropOutcomeCallable saveDevicePropCallable(const Model::SaveDevicePropRequest& request) const; - DeleteProductTopicOutcome deleteProductTopic(const Model::DeleteProductTopicRequest &request)const; - void deleteProductTopicAsync(const Model::DeleteProductTopicRequest& request, const DeleteProductTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteProductTopicOutcomeCallable deleteProductTopicCallable(const Model::DeleteProductTopicRequest& request) const; + PubOutcome pub(const Model::PubRequest &request)const; + void pubAsync(const Model::PubRequest& request, const PubAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PubOutcomeCallable pubCallable(const Model::PubRequest& request) const; QueryDeviceServiceDataOutcome queryDeviceServiceData(const Model::QueryDeviceServiceDataRequest &request)const; void queryDeviceServiceDataAsync(const Model::QueryDeviceServiceDataRequest& request, const QueryDeviceServiceDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceServiceDataOutcomeCallable queryDeviceServiceDataCallable(const Model::QueryDeviceServiceDataRequest& request) const; @@ -559,12 +731,12 @@ namespace AlibabaCloud DisableThingOutcome disableThing(const Model::DisableThingRequest &request)const; void disableThingAsync(const Model::DisableThingRequest& request, const DisableThingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableThingOutcomeCallable disableThingCallable(const Model::DisableThingRequest& request) const; - CreateProductTopicOutcome createProductTopic(const Model::CreateProductTopicRequest &request)const; - void createProductTopicAsync(const Model::CreateProductTopicRequest& request, const CreateProductTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateProductTopicOutcomeCallable createProductTopicCallable(const Model::CreateProductTopicRequest& request) const; RemoveThingTopoOutcome removeThingTopo(const Model::RemoveThingTopoRequest &request)const; void removeThingTopoAsync(const Model::RemoveThingTopoRequest& request, const RemoveThingTopoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveThingTopoOutcomeCallable removeThingTopoCallable(const Model::RemoveThingTopoRequest& request) const; + CreateProductTopicOutcome createProductTopic(const Model::CreateProductTopicRequest &request)const; + void createProductTopicAsync(const Model::CreateProductTopicRequest& request, const CreateProductTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProductTopicOutcomeCallable createProductTopicCallable(const Model::CreateProductTopicRequest& request) const; QueryTopicReverseRouteTableOutcome queryTopicReverseRouteTable(const Model::QueryTopicReverseRouteTableRequest &request)const; void queryTopicReverseRouteTableAsync(const Model::QueryTopicReverseRouteTableRequest& request, const QueryTopicReverseRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTopicReverseRouteTableOutcomeCallable queryTopicReverseRouteTableCallable(const Model::QueryTopicReverseRouteTableRequest& request) const; @@ -574,15 +746,21 @@ namespace AlibabaCloud GetRuleActionOutcome getRuleAction(const Model::GetRuleActionRequest &request)const; void getRuleActionAsync(const Model::GetRuleActionRequest& request, const GetRuleActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRuleActionOutcomeCallable getRuleActionCallable(const Model::GetRuleActionRequest& request) const; - BatchAddDeviceGroupRelationsOutcome batchAddDeviceGroupRelations(const Model::BatchAddDeviceGroupRelationsRequest &request)const; - void batchAddDeviceGroupRelationsAsync(const Model::BatchAddDeviceGroupRelationsRequest& request, const BatchAddDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BatchAddDeviceGroupRelationsOutcomeCallable batchAddDeviceGroupRelationsCallable(const Model::BatchAddDeviceGroupRelationsRequest& request) const; + DeleteProductTagsOutcome deleteProductTags(const Model::DeleteProductTagsRequest &request)const; + void deleteProductTagsAsync(const Model::DeleteProductTagsRequest& request, const DeleteProductTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProductTagsOutcomeCallable deleteProductTagsCallable(const Model::DeleteProductTagsRequest& request) const; GetRuleOutcome getRule(const Model::GetRuleRequest &request)const; void getRuleAsync(const Model::GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const; + BatchAddDeviceGroupRelationsOutcome batchAddDeviceGroupRelations(const Model::BatchAddDeviceGroupRelationsRequest &request)const; + void batchAddDeviceGroupRelationsAsync(const Model::BatchAddDeviceGroupRelationsRequest& request, const BatchAddDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchAddDeviceGroupRelationsOutcomeCallable batchAddDeviceGroupRelationsCallable(const Model::BatchAddDeviceGroupRelationsRequest& request) const; GetDeviceShadowOutcome getDeviceShadow(const Model::GetDeviceShadowRequest &request)const; void getDeviceShadowAsync(const Model::GetDeviceShadowRequest& request, const GetDeviceShadowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDeviceShadowOutcomeCallable getDeviceShadowCallable(const Model::GetDeviceShadowRequest& request) const; + QueryLoRaJoinPermissionsOutcome queryLoRaJoinPermissions(const Model::QueryLoRaJoinPermissionsRequest &request)const; + void queryLoRaJoinPermissionsAsync(const Model::QueryLoRaJoinPermissionsRequest& request, const QueryLoRaJoinPermissionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryLoRaJoinPermissionsOutcomeCallable queryLoRaJoinPermissionsCallable(const Model::QueryLoRaJoinPermissionsRequest& request) const; SetDevicesPropertyOutcome setDevicesProperty(const Model::SetDevicesPropertyRequest &request)const; void setDevicesPropertyAsync(const Model::SetDevicesPropertyRequest& request, const SetDevicesPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDevicesPropertyOutcomeCallable setDevicesPropertyCallable(const Model::SetDevicesPropertyRequest& request) const; @@ -601,9 +779,15 @@ namespace AlibabaCloud DeleteRuleActionOutcome deleteRuleAction(const Model::DeleteRuleActionRequest &request)const; void deleteRuleActionAsync(const Model::DeleteRuleActionRequest& request, const DeleteRuleActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRuleActionOutcomeCallable deleteRuleActionCallable(const Model::DeleteRuleActionRequest& request) const; + ListProductTagsOutcome listProductTags(const Model::ListProductTagsRequest &request)const; + void listProductTagsAsync(const Model::ListProductTagsRequest& request, const ListProductTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProductTagsOutcomeCallable listProductTagsCallable(const Model::ListProductTagsRequest& request) const; PubBroadcastOutcome pubBroadcast(const Model::PubBroadcastRequest &request)const; void pubBroadcastAsync(const Model::PubBroadcastRequest& request, const PubBroadcastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PubBroadcastOutcomeCallable pubBroadcastCallable(const Model::PubBroadcastRequest& request) const; + CreateDataAPIServiceOutcome createDataAPIService(const Model::CreateDataAPIServiceRequest &request)const; + void createDataAPIServiceAsync(const Model::CreateDataAPIServiceRequest& request, const CreateDataAPIServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDataAPIServiceOutcomeCallable createDataAPIServiceCallable(const Model::CreateDataAPIServiceRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index 395f8fb1b..4eae076a7 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -31,21 +31,21 @@ IotClient::IotClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::IotClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::IotClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::~IotClient() @@ -123,6 +123,42 @@ IotClient::DeleteTopicRouteTableOutcomeCallable IotClient::deleteTopicRouteTable return task->get_future(); } +IotClient::InvokeDataAPIServiceOutcome IotClient::invokeDataAPIService(const InvokeDataAPIServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InvokeDataAPIServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InvokeDataAPIServiceOutcome(InvokeDataAPIServiceResult(outcome.result())); + else + return InvokeDataAPIServiceOutcome(outcome.error()); +} + +void IotClient::invokeDataAPIServiceAsync(const InvokeDataAPIServiceRequest& request, const InvokeDataAPIServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, invokeDataAPIService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::InvokeDataAPIServiceOutcomeCallable IotClient::invokeDataAPIServiceCallable(const InvokeDataAPIServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->invokeDataAPIService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDeviceGroupListOutcome IotClient::queryDeviceGroupList(const QueryDeviceGroupListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +195,42 @@ IotClient::QueryDeviceGroupListOutcomeCallable IotClient::queryDeviceGroupListCa return task->get_future(); } +IotClient::QueryDeviceFileListOutcome IotClient::queryDeviceFileList(const QueryDeviceFileListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceFileListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceFileListOutcome(QueryDeviceFileListResult(outcome.result())); + else + return QueryDeviceFileListOutcome(outcome.error()); +} + +void IotClient::queryDeviceFileListAsync(const QueryDeviceFileListRequest& request, const QueryDeviceFileListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceFileList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceFileListOutcomeCallable IotClient::queryDeviceFileListCallable(const QueryDeviceFileListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceFileList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::SetDeviceGroupTagsOutcome IotClient::setDeviceGroupTags(const SetDeviceGroupTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +303,42 @@ IotClient::QueryDeviceEventDataOutcomeCallable IotClient::queryDeviceEventDataCa return task->get_future(); } +IotClient::BatchQueryDeviceDetailOutcome IotClient::batchQueryDeviceDetail(const BatchQueryDeviceDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchQueryDeviceDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchQueryDeviceDetailOutcome(BatchQueryDeviceDetailResult(outcome.result())); + else + return BatchQueryDeviceDetailOutcome(outcome.error()); +} + +void IotClient::batchQueryDeviceDetailAsync(const BatchQueryDeviceDetailRequest& request, const BatchQueryDeviceDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchQueryDeviceDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchQueryDeviceDetailOutcomeCallable IotClient::batchQueryDeviceDetailCallable(const BatchQueryDeviceDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchQueryDeviceDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDeviceByTagsOutcome IotClient::queryDeviceByTags(const QueryDeviceByTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +447,42 @@ IotClient::DeleteDeviceOutcomeCallable IotClient::deleteDeviceCallable(const Del return task->get_future(); } +IotClient::UpdateProductTagsOutcome IotClient::updateProductTags(const UpdateProductTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProductTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProductTagsOutcome(UpdateProductTagsResult(outcome.result())); + else + return UpdateProductTagsOutcome(outcome.error()); +} + +void IotClient::updateProductTagsAsync(const UpdateProductTagsRequest& request, const UpdateProductTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProductTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateProductTagsOutcomeCallable IotClient::updateProductTagsCallable(const UpdateProductTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProductTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateDeviceGroupOutcome IotClient::createDeviceGroup(const CreateDeviceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +591,78 @@ IotClient::RRpcOutcomeCallable IotClient::rRpcCallable(const RRpcRequest &reques return task->get_future(); } +IotClient::ListProductByTagsOutcome IotClient::listProductByTags(const ListProductByTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProductByTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProductByTagsOutcome(ListProductByTagsResult(outcome.result())); + else + return ListProductByTagsOutcome(outcome.error()); +} + +void IotClient::listProductByTagsAsync(const ListProductByTagsRequest& request, const ListProductByTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProductByTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListProductByTagsOutcomeCallable IotClient::listProductByTagsCallable(const ListProductByTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProductByTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::CreateProductTagsOutcome IotClient::createProductTags(const CreateProductTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProductTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProductTagsOutcome(CreateProductTagsResult(outcome.result())); + else + return CreateProductTagsOutcome(outcome.error()); +} + +void IotClient::createProductTagsAsync(const CreateProductTagsRequest& request, const CreateProductTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProductTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateProductTagsOutcomeCallable IotClient::createProductTagsCallable(const CreateProductTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProductTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteRuleOutcome IotClient::deleteRule(const DeleteRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +735,42 @@ IotClient::QueryProductTopicOutcomeCallable IotClient::queryProductTopicCallable return task->get_future(); } +IotClient::QueryDeviceDesiredPropertyOutcome IotClient::queryDeviceDesiredProperty(const QueryDeviceDesiredPropertyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceDesiredPropertyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceDesiredPropertyOutcome(QueryDeviceDesiredPropertyResult(outcome.result())); + else + return QueryDeviceDesiredPropertyOutcome(outcome.error()); +} + +void IotClient::queryDeviceDesiredPropertyAsync(const QueryDeviceDesiredPropertyRequest& request, const QueryDeviceDesiredPropertyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceDesiredProperty(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceDesiredPropertyOutcomeCallable IotClient::queryDeviceDesiredPropertyCallable(const QueryDeviceDesiredPropertyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceDesiredProperty(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetThingTopoOutcome IotClient::getThingTopo(const GetThingTopoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +843,42 @@ IotClient::QueryPageByApplyIdOutcomeCallable IotClient::queryPageByApplyIdCallab return task->get_future(); } +IotClient::GetNodesAddingTaskOutcome IotClient::getNodesAddingTask(const GetNodesAddingTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNodesAddingTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNodesAddingTaskOutcome(GetNodesAddingTaskResult(outcome.result())); + else + return GetNodesAddingTaskOutcome(outcome.error()); +} + +void IotClient::getNodesAddingTaskAsync(const GetNodesAddingTaskRequest& request, const GetNodesAddingTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNodesAddingTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetNodesAddingTaskOutcomeCallable IotClient::getNodesAddingTaskCallable(const GetNodesAddingTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNodesAddingTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateTopicRouteTableOutcome IotClient::createTopicRouteTable(const CreateTopicRouteTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +1095,42 @@ IotClient::DeleteDeviceGroupOutcomeCallable IotClient::deleteDeviceGroupCallable return task->get_future(); } +IotClient::BatchUpdateDeviceNicknameOutcome IotClient::batchUpdateDeviceNickname(const BatchUpdateDeviceNicknameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchUpdateDeviceNicknameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchUpdateDeviceNicknameOutcome(BatchUpdateDeviceNicknameResult(outcome.result())); + else + return BatchUpdateDeviceNicknameOutcome(outcome.error()); +} + +void IotClient::batchUpdateDeviceNicknameAsync(const BatchUpdateDeviceNicknameRequest& request, const BatchUpdateDeviceNicknameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchUpdateDeviceNickname(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchUpdateDeviceNicknameOutcomeCallable IotClient::batchUpdateDeviceNicknameCallable(const BatchUpdateDeviceNicknameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchUpdateDeviceNickname(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDevicePropOutcome IotClient::queryDeviceProp(const QueryDevicePropRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1167,42 @@ IotClient::QueryDevicePropOutcomeCallable IotClient::queryDevicePropCallable(con return task->get_future(); } +IotClient::CreateLoRaNodesTaskOutcome IotClient::createLoRaNodesTask(const CreateLoRaNodesTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoRaNodesTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoRaNodesTaskOutcome(CreateLoRaNodesTaskResult(outcome.result())); + else + return CreateLoRaNodesTaskOutcome(outcome.error()); +} + +void IotClient::createLoRaNodesTaskAsync(const CreateLoRaNodesTaskRequest& request, const CreateLoRaNodesTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoRaNodesTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateLoRaNodesTaskOutcomeCallable IotClient::createLoRaNodesTaskCallable(const CreateLoRaNodesTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoRaNodesTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteDevicePropOutcome IotClient::deleteDeviceProp(const DeleteDevicePropRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +1239,78 @@ IotClient::DeleteDevicePropOutcomeCallable IotClient::deleteDevicePropCallable(c return task->get_future(); } +IotClient::QueryDeviceFileOutcome IotClient::queryDeviceFile(const QueryDeviceFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceFileOutcome(QueryDeviceFileResult(outcome.result())); + else + return QueryDeviceFileOutcome(outcome.error()); +} + +void IotClient::queryDeviceFileAsync(const QueryDeviceFileRequest& request, const QueryDeviceFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceFileOutcomeCallable IotClient::queryDeviceFileCallable(const QueryDeviceFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::GetLoraNodesTaskOutcome IotClient::getLoraNodesTask(const GetLoraNodesTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLoraNodesTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLoraNodesTaskOutcome(GetLoraNodesTaskResult(outcome.result())); + else + return GetLoraNodesTaskOutcome(outcome.error()); +} + +void IotClient::getLoraNodesTaskAsync(const GetLoraNodesTaskRequest& request, const GetLoraNodesTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLoraNodesTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetLoraNodesTaskOutcomeCallable IotClient::getLoraNodesTaskCallable(const GetLoraNodesTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLoraNodesTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::StopRuleOutcome IotClient::stopRule(const StopRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1383,42 @@ IotClient::QueryDeviceGroupByDeviceOutcomeCallable IotClient::queryDeviceGroupBy return task->get_future(); } +IotClient::GetDataAPIServiceDetailOutcome IotClient::getDataAPIServiceDetail(const GetDataAPIServiceDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDataAPIServiceDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDataAPIServiceDetailOutcome(GetDataAPIServiceDetailResult(outcome.result())); + else + return GetDataAPIServiceDetailOutcome(outcome.error()); +} + +void IotClient::getDataAPIServiceDetailAsync(const GetDataAPIServiceDetailRequest& request, const GetDataAPIServiceDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataAPIServiceDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetDataAPIServiceDetailOutcomeCallable IotClient::getDataAPIServiceDetailCallable(const GetDataAPIServiceDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataAPIServiceDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDeviceDetailOutcome IotClient::queryDeviceDetail(const QueryDeviceDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1563,42 @@ IotClient::ListRuleActionsOutcomeCallable IotClient::listRuleActionsCallable(con return task->get_future(); } +IotClient::DeleteDeviceFileOutcome IotClient::deleteDeviceFile(const DeleteDeviceFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDeviceFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDeviceFileOutcome(DeleteDeviceFileResult(outcome.result())); + else + return DeleteDeviceFileOutcome(outcome.error()); +} + +void IotClient::deleteDeviceFileAsync(const DeleteDeviceFileRequest& request, const DeleteDeviceFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDeviceFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteDeviceFileOutcomeCallable IotClient::deleteDeviceFileCallable(const DeleteDeviceFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDeviceFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::BatchCheckDeviceNamesOutcome IotClient::batchCheckDeviceNames(const BatchCheckDeviceNamesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1635,42 @@ IotClient::BatchCheckDeviceNamesOutcomeCallable IotClient::batchCheckDeviceNames return task->get_future(); } +IotClient::QueryDeviceGroupByTagsOutcome IotClient::queryDeviceGroupByTags(const QueryDeviceGroupByTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceGroupByTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceGroupByTagsOutcome(QueryDeviceGroupByTagsResult(outcome.result())); + else + return QueryDeviceGroupByTagsOutcome(outcome.error()); +} + +void IotClient::queryDeviceGroupByTagsAsync(const QueryDeviceGroupByTagsRequest& request, const QueryDeviceGroupByTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceGroupByTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceGroupByTagsOutcomeCallable IotClient::queryDeviceGroupByTagsCallable(const QueryDeviceGroupByTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceGroupByTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UpdateProductTopicOutcome IotClient::updateProductTopic(const UpdateProductTopicRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1959,42 @@ IotClient::RegisterDeviceOutcomeCallable IotClient::registerDeviceCallable(const return task->get_future(); } +IotClient::QuerySuperDeviceGroupOutcome IotClient::querySuperDeviceGroup(const QuerySuperDeviceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySuperDeviceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySuperDeviceGroupOutcome(QuerySuperDeviceGroupResult(outcome.result())); + else + return QuerySuperDeviceGroupOutcome(outcome.error()); +} + +void IotClient::querySuperDeviceGroupAsync(const QuerySuperDeviceGroupRequest& request, const QuerySuperDeviceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySuperDeviceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySuperDeviceGroupOutcomeCallable IotClient::querySuperDeviceGroupCallable(const QuerySuperDeviceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySuperDeviceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDeviceOutcome IotClient::queryDevice(const QueryDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +2031,42 @@ IotClient::QueryDeviceOutcomeCallable IotClient::queryDeviceCallable(const Query return task->get_future(); } +IotClient::QueryDevicePropertiesDataOutcome IotClient::queryDevicePropertiesData(const QueryDevicePropertiesDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDevicePropertiesDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDevicePropertiesDataOutcome(QueryDevicePropertiesDataResult(outcome.result())); + else + return QueryDevicePropertiesDataOutcome(outcome.error()); +} + +void IotClient::queryDevicePropertiesDataAsync(const QueryDevicePropertiesDataRequest& request, const QueryDevicePropertiesDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDevicePropertiesData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDevicePropertiesDataOutcomeCallable IotClient::queryDevicePropertiesDataCallable(const QueryDevicePropertiesDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDevicePropertiesData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::BatchDeleteDeviceGroupRelationsOutcome IotClient::batchDeleteDeviceGroupRelations(const BatchDeleteDeviceGroupRelationsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +2139,42 @@ IotClient::InvokeThingsServiceOutcomeCallable IotClient::invokeThingsServiceCall return task->get_future(); } +IotClient::SetDeviceDesiredPropertyOutcome IotClient::setDeviceDesiredProperty(const SetDeviceDesiredPropertyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDeviceDesiredPropertyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDeviceDesiredPropertyOutcome(SetDeviceDesiredPropertyResult(outcome.result())); + else + return SetDeviceDesiredPropertyOutcome(outcome.error()); +} + +void IotClient::setDeviceDesiredPropertyAsync(const SetDeviceDesiredPropertyRequest& request, const SetDeviceDesiredPropertyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDeviceDesiredProperty(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::SetDeviceDesiredPropertyOutcomeCallable IotClient::setDeviceDesiredPropertyCallable(const SetDeviceDesiredPropertyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDeviceDesiredProperty(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDeviceGroupTagListOutcome IotClient::queryDeviceGroupTagList(const QueryDeviceGroupTagListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,42 +2211,6 @@ IotClient::QueryDeviceGroupTagListOutcomeCallable IotClient::queryDeviceGroupTag return task->get_future(); } -IotClient::ListRuleOutcome IotClient::listRule(const ListRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListRuleOutcome(ListRuleResult(outcome.result())); - else - return ListRuleOutcome(outcome.error()); -} - -void IotClient::listRuleAsync(const ListRuleRequest& request, const ListRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IotClient::ListRuleOutcomeCallable IotClient::listRuleCallable(const ListRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IotClient::QueryTopicRouteTableOutcome IotClient::queryTopicRouteTable(const QueryTopicRouteTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +2247,42 @@ IotClient::QueryTopicRouteTableOutcomeCallable IotClient::queryTopicRouteTableCa return task->get_future(); } +IotClient::ListRuleOutcome IotClient::listRule(const ListRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRuleOutcome(ListRuleResult(outcome.result())); + else + return ListRuleOutcome(outcome.error()); +} + +void IotClient::listRuleAsync(const ListRuleRequest& request, const ListRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListRuleOutcomeCallable IotClient::listRuleCallable(const ListRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateRuleOutcome IotClient::createRule(const CreateRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +2319,42 @@ IotClient::CreateRuleOutcomeCallable IotClient::createRuleCallable(const CreateR return task->get_future(); } +IotClient::QueryDeviceListByDeviceGroupOutcome IotClient::queryDeviceListByDeviceGroup(const QueryDeviceListByDeviceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceListByDeviceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceListByDeviceGroupOutcome(QueryDeviceListByDeviceGroupResult(outcome.result())); + else + return QueryDeviceListByDeviceGroupOutcome(outcome.error()); +} + +void IotClient::queryDeviceListByDeviceGroupAsync(const QueryDeviceListByDeviceGroupRequest& request, const QueryDeviceListByDeviceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceListByDeviceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceListByDeviceGroupOutcomeCallable IotClient::queryDeviceListByDeviceGroupCallable(const QueryDeviceListByDeviceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceListByDeviceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::StartRuleOutcome IotClient::startRule(const StartRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1815,36 +2499,36 @@ IotClient::QueryDeviceStatisticsOutcomeCallable IotClient::queryDeviceStatistics return task->get_future(); } -IotClient::PubOutcome IotClient::pub(const PubRequest &request) const +IotClient::DeleteProductTopicOutcome IotClient::deleteProductTopic(const DeleteProductTopicRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PubOutcome(endpointOutcome.error()); + return DeleteProductTopicOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PubOutcome(PubResult(outcome.result())); + return DeleteProductTopicOutcome(DeleteProductTopicResult(outcome.result())); else - return PubOutcome(outcome.error()); + return DeleteProductTopicOutcome(outcome.error()); } -void IotClient::pubAsync(const PubRequest& request, const PubAsyncHandler& handler, const std::shared_ptr& context) const +void IotClient::deleteProductTopicAsync(const DeleteProductTopicRequest& request, const DeleteProductTopicAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, pub(request), context); + handler(this, request, deleteProductTopic(request), context); }; asyncExecute(new Runnable(fn)); } -IotClient::PubOutcomeCallable IotClient::pubCallable(const PubRequest &request) const +IotClient::DeleteProductTopicOutcomeCallable IotClient::deleteProductTopicCallable(const DeleteProductTopicRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->pub(request); + return this->deleteProductTopic(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1923,36 +2607,36 @@ IotClient::SaveDevicePropOutcomeCallable IotClient::saveDevicePropCallable(const return task->get_future(); } -IotClient::DeleteProductTopicOutcome IotClient::deleteProductTopic(const DeleteProductTopicRequest &request) const +IotClient::PubOutcome IotClient::pub(const PubRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteProductTopicOutcome(endpointOutcome.error()); + return PubOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteProductTopicOutcome(DeleteProductTopicResult(outcome.result())); + return PubOutcome(PubResult(outcome.result())); else - return DeleteProductTopicOutcome(outcome.error()); + return PubOutcome(outcome.error()); } -void IotClient::deleteProductTopicAsync(const DeleteProductTopicRequest& request, const DeleteProductTopicAsyncHandler& handler, const std::shared_ptr& context) const +void IotClient::pubAsync(const PubRequest& request, const PubAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteProductTopic(request), context); + handler(this, request, pub(request), context); }; asyncExecute(new Runnable(fn)); } -IotClient::DeleteProductTopicOutcomeCallable IotClient::deleteProductTopicCallable(const DeleteProductTopicRequest &request) const +IotClient::PubOutcomeCallable IotClient::pubCallable(const PubRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteProductTopic(request); + return this->pub(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2067,42 +2751,6 @@ IotClient::DisableThingOutcomeCallable IotClient::disableThingCallable(const Dis return task->get_future(); } -IotClient::CreateProductTopicOutcome IotClient::createProductTopic(const CreateProductTopicRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateProductTopicOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateProductTopicOutcome(CreateProductTopicResult(outcome.result())); - else - return CreateProductTopicOutcome(outcome.error()); -} - -void IotClient::createProductTopicAsync(const CreateProductTopicRequest& request, const CreateProductTopicAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createProductTopic(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IotClient::CreateProductTopicOutcomeCallable IotClient::createProductTopicCallable(const CreateProductTopicRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createProductTopic(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IotClient::RemoveThingTopoOutcome IotClient::removeThingTopo(const RemoveThingTopoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +2787,42 @@ IotClient::RemoveThingTopoOutcomeCallable IotClient::removeThingTopoCallable(con return task->get_future(); } +IotClient::CreateProductTopicOutcome IotClient::createProductTopic(const CreateProductTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProductTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProductTopicOutcome(CreateProductTopicResult(outcome.result())); + else + return CreateProductTopicOutcome(outcome.error()); +} + +void IotClient::createProductTopicAsync(const CreateProductTopicRequest& request, const CreateProductTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProductTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateProductTopicOutcomeCallable IotClient::createProductTopicCallable(const CreateProductTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProductTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryTopicReverseRouteTableOutcome IotClient::queryTopicReverseRouteTable(const QueryTopicReverseRouteTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,36 +2931,36 @@ IotClient::GetRuleActionOutcomeCallable IotClient::getRuleActionCallable(const G return task->get_future(); } -IotClient::BatchAddDeviceGroupRelationsOutcome IotClient::batchAddDeviceGroupRelations(const BatchAddDeviceGroupRelationsRequest &request) const +IotClient::DeleteProductTagsOutcome IotClient::deleteProductTags(const DeleteProductTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BatchAddDeviceGroupRelationsOutcome(endpointOutcome.error()); + return DeleteProductTagsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BatchAddDeviceGroupRelationsOutcome(BatchAddDeviceGroupRelationsResult(outcome.result())); + return DeleteProductTagsOutcome(DeleteProductTagsResult(outcome.result())); else - return BatchAddDeviceGroupRelationsOutcome(outcome.error()); + return DeleteProductTagsOutcome(outcome.error()); } -void IotClient::batchAddDeviceGroupRelationsAsync(const BatchAddDeviceGroupRelationsRequest& request, const BatchAddDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr& context) const +void IotClient::deleteProductTagsAsync(const DeleteProductTagsRequest& request, const DeleteProductTagsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, batchAddDeviceGroupRelations(request), context); + handler(this, request, deleteProductTags(request), context); }; asyncExecute(new Runnable(fn)); } -IotClient::BatchAddDeviceGroupRelationsOutcomeCallable IotClient::batchAddDeviceGroupRelationsCallable(const BatchAddDeviceGroupRelationsRequest &request) const +IotClient::DeleteProductTagsOutcomeCallable IotClient::deleteProductTagsCallable(const DeleteProductTagsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->batchAddDeviceGroupRelations(request); + return this->deleteProductTags(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2319,6 +3003,42 @@ IotClient::GetRuleOutcomeCallable IotClient::getRuleCallable(const GetRuleReques return task->get_future(); } +IotClient::BatchAddDeviceGroupRelationsOutcome IotClient::batchAddDeviceGroupRelations(const BatchAddDeviceGroupRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchAddDeviceGroupRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchAddDeviceGroupRelationsOutcome(BatchAddDeviceGroupRelationsResult(outcome.result())); + else + return BatchAddDeviceGroupRelationsOutcome(outcome.error()); +} + +void IotClient::batchAddDeviceGroupRelationsAsync(const BatchAddDeviceGroupRelationsRequest& request, const BatchAddDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchAddDeviceGroupRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchAddDeviceGroupRelationsOutcomeCallable IotClient::batchAddDeviceGroupRelationsCallable(const BatchAddDeviceGroupRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchAddDeviceGroupRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetDeviceShadowOutcome IotClient::getDeviceShadow(const GetDeviceShadowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,6 +3075,42 @@ IotClient::GetDeviceShadowOutcomeCallable IotClient::getDeviceShadowCallable(con return task->get_future(); } +IotClient::QueryLoRaJoinPermissionsOutcome IotClient::queryLoRaJoinPermissions(const QueryLoRaJoinPermissionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryLoRaJoinPermissionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryLoRaJoinPermissionsOutcome(QueryLoRaJoinPermissionsResult(outcome.result())); + else + return QueryLoRaJoinPermissionsOutcome(outcome.error()); +} + +void IotClient::queryLoRaJoinPermissionsAsync(const QueryLoRaJoinPermissionsRequest& request, const QueryLoRaJoinPermissionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryLoRaJoinPermissions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryLoRaJoinPermissionsOutcomeCallable IotClient::queryLoRaJoinPermissionsCallable(const QueryLoRaJoinPermissionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryLoRaJoinPermissions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::SetDevicesPropertyOutcome IotClient::setDevicesProperty(const SetDevicesPropertyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,6 +3327,42 @@ IotClient::DeleteRuleActionOutcomeCallable IotClient::deleteRuleActionCallable(c return task->get_future(); } +IotClient::ListProductTagsOutcome IotClient::listProductTags(const ListProductTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProductTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProductTagsOutcome(ListProductTagsResult(outcome.result())); + else + return ListProductTagsOutcome(outcome.error()); +} + +void IotClient::listProductTagsAsync(const ListProductTagsRequest& request, const ListProductTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProductTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListProductTagsOutcomeCallable IotClient::listProductTagsCallable(const ListProductTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProductTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::PubBroadcastOutcome IotClient::pubBroadcast(const PubBroadcastRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,3 +3399,39 @@ IotClient::PubBroadcastOutcomeCallable IotClient::pubBroadcastCallable(const Pub return task->get_future(); } +IotClient::CreateDataAPIServiceOutcome IotClient::createDataAPIService(const CreateDataAPIServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDataAPIServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDataAPIServiceOutcome(CreateDataAPIServiceResult(outcome.result())); + else + return CreateDataAPIServiceOutcome(outcome.error()); +} + +void IotClient::createDataAPIServiceAsync(const CreateDataAPIServiceRequest& request, const CreateDataAPIServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataAPIService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateDataAPIServiceOutcomeCallable IotClient::createDataAPIServiceCallable(const CreateDataAPIServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataAPIService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ivision/CMakeLists.txt b/ivision/CMakeLists.txt index 70de2d63e..e4cd8599b 100644 --- a/ivision/CMakeLists.txt +++ b/ivision/CMakeLists.txt @@ -25,64 +25,78 @@ set(ivision_public_header_model include/alibabacloud/ivision/model/TrainProjectResult.h include/alibabacloud/ivision/model/CreateTagRequest.h include/alibabacloud/ivision/model/CreateTagResult.h - include/alibabacloud/ivision/model/DescribeTrainResultRequest.h - include/alibabacloud/ivision/model/DescribeTrainResultResult.h include/alibabacloud/ivision/model/StartStreamPredictRequest.h include/alibabacloud/ivision/model/StartStreamPredictResult.h + include/alibabacloud/ivision/model/DescribeTrainResultRequest.h + include/alibabacloud/ivision/model/DescribeTrainResultResult.h include/alibabacloud/ivision/model/CreateProjectRequest.h include/alibabacloud/ivision/model/CreateProjectResult.h include/alibabacloud/ivision/model/DescribeIterationsRequest.h include/alibabacloud/ivision/model/DescribeIterationsResult.h include/alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h include/alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h - include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h - include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h include/alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h include/alibabacloud/ivision/model/ModifyTagAttributeRequest.h include/alibabacloud/ivision/model/ModifyTagAttributeResult.h - include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h - include/alibabacloud/ivision/model/CreateTrainDataTagResult.h + include/alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h + include/alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h + include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h + include/alibabacloud/ivision/model/DeleteFaceGroupResult.h include/alibabacloud/ivision/model/StopStreamPredictRequest.h include/alibabacloud/ivision/model/StopStreamPredictResult.h + include/alibabacloud/ivision/model/CreateTrainDataTagRequest.h + include/alibabacloud/ivision/model/CreateTrainDataTagResult.h include/alibabacloud/ivision/model/DeleteTagRequest.h include/alibabacloud/ivision/model/DeleteTagResult.h - include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h - include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h include/alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h include/alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h + include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h + include/alibabacloud/ivision/model/DescribeStreamPredictsResult.h include/alibabacloud/ivision/model/DescribeTagsRequest.h include/alibabacloud/ivision/model/DescribeTagsResult.h include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h - include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h - include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h include/alibabacloud/ivision/model/DeleteIterationRequest.h include/alibabacloud/ivision/model/DeleteIterationResult.h + include/alibabacloud/ivision/model/CreateTrainDatasTagRequest.h + include/alibabacloud/ivision/model/CreateTrainDatasTagResult.h include/alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h include/alibabacloud/ivision/model/DeleteTrainDatasTagResult.h + include/alibabacloud/ivision/model/ImagePredictRequest.h + include/alibabacloud/ivision/model/ImagePredictResult.h include/alibabacloud/ivision/model/CreateStreamPredictRequest.h include/alibabacloud/ivision/model/CreateStreamPredictResult.h include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h include/alibabacloud/ivision/model/DeleteStreamPredictResult.h + include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h + include/alibabacloud/ivision/model/DescribeFaceGroupsResult.h include/alibabacloud/ivision/model/ModifyProjectAttributeRequest.h include/alibabacloud/ivision/model/ModifyProjectAttributeResult.h - include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h - include/alibabacloud/ivision/model/DeleteTrainDatasResult.h include/alibabacloud/ivision/model/DescribeProjectsRequest.h include/alibabacloud/ivision/model/DescribeProjectsResult.h + include/alibabacloud/ivision/model/CreateFaceGroupRequest.h + include/alibabacloud/ivision/model/CreateFaceGroupResult.h + include/alibabacloud/ivision/model/DeleteTrainDatasRequest.h + include/alibabacloud/ivision/model/DeleteTrainDatasResult.h include/alibabacloud/ivision/model/DeleteProjectRequest.h include/alibabacloud/ivision/model/DeleteProjectResult.h include/alibabacloud/ivision/model/DescribePredictDatasRequest.h include/alibabacloud/ivision/model/DescribePredictDatasResult.h + include/alibabacloud/ivision/model/SearchFaceRequest.h + include/alibabacloud/ivision/model/SearchFaceResult.h include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h include/alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h + include/alibabacloud/ivision/model/UnregisterFaceRequest.h + include/alibabacloud/ivision/model/UnregisterFaceResult.h include/alibabacloud/ivision/model/DeletePredictDatasRequest.h include/alibabacloud/ivision/model/DeletePredictDatasResult.h include/alibabacloud/ivision/model/DescribeTrainDatasRequest.h include/alibabacloud/ivision/model/DescribeTrainDatasResult.h + include/alibabacloud/ivision/model/RegisterFaceRequest.h + include/alibabacloud/ivision/model/RegisterFaceResult.h include/alibabacloud/ivision/model/CreateUploadTokenRequest.h include/alibabacloud/ivision/model/CreateUploadTokenResult.h include/alibabacloud/ivision/model/PredictImageRequest.h @@ -94,64 +108,78 @@ set(ivision_src src/model/TrainProjectResult.cc src/model/CreateTagRequest.cc src/model/CreateTagResult.cc - src/model/DescribeTrainResultRequest.cc - src/model/DescribeTrainResultResult.cc src/model/StartStreamPredictRequest.cc src/model/StartStreamPredictResult.cc + src/model/DescribeTrainResultRequest.cc + src/model/DescribeTrainResultResult.cc src/model/CreateProjectRequest.cc src/model/CreateProjectResult.cc src/model/DescribeIterationsRequest.cc src/model/DescribeIterationsResult.cc src/model/DescribeTrainDatasByIdsRequest.cc src/model/DescribeTrainDatasByIdsResult.cc - src/model/CreateTrainDataRegionTagRequest.cc - src/model/CreateTrainDataRegionTagResult.cc src/model/CreateTrainDatasFromPredictionRequest.cc src/model/CreateTrainDatasFromPredictionResult.cc src/model/ModifyTagAttributeRequest.cc src/model/ModifyTagAttributeResult.cc - src/model/CreateTrainDataTagRequest.cc - src/model/CreateTrainDataTagResult.cc + src/model/CreateTrainDataRegionTagRequest.cc + src/model/CreateTrainDataRegionTagResult.cc + src/model/DeleteFaceGroupRequest.cc + src/model/DeleteFaceGroupResult.cc src/model/StopStreamPredictRequest.cc src/model/StopStreamPredictResult.cc + src/model/CreateTrainDataTagRequest.cc + src/model/CreateTrainDataTagResult.cc src/model/DeleteTagRequest.cc src/model/DeleteTagResult.cc - src/model/DescribeStreamPredictsRequest.cc - src/model/DescribeStreamPredictsResult.cc src/model/ModifyTrainDataTagAttributeRequest.cc src/model/ModifyTrainDataTagAttributeResult.cc src/model/ModifyTrainDataRegionTagAttributeRequest.cc src/model/ModifyTrainDataRegionTagAttributeResult.cc + src/model/DescribeStreamPredictsRequest.cc + src/model/DescribeStreamPredictsResult.cc src/model/DescribeTagsRequest.cc src/model/DescribeTagsResult.cc src/model/DescribeStreamPredictResultRequest.cc src/model/DescribeStreamPredictResultResult.cc - src/model/CreateTrainDatasTagRequest.cc - src/model/CreateTrainDatasTagResult.cc src/model/DeleteIterationRequest.cc src/model/DeleteIterationResult.cc + src/model/CreateTrainDatasTagRequest.cc + src/model/CreateTrainDatasTagResult.cc src/model/DeleteTrainDatasTagRequest.cc src/model/DeleteTrainDatasTagResult.cc + src/model/ImagePredictRequest.cc + src/model/ImagePredictResult.cc src/model/CreateStreamPredictRequest.cc src/model/CreateStreamPredictResult.cc src/model/DeleteStreamPredictRequest.cc src/model/DeleteStreamPredictResult.cc + src/model/DescribeFaceGroupsRequest.cc + src/model/DescribeFaceGroupsResult.cc src/model/ModifyProjectAttributeRequest.cc src/model/ModifyProjectAttributeResult.cc - src/model/DeleteTrainDatasRequest.cc - src/model/DeleteTrainDatasResult.cc src/model/DescribeProjectsRequest.cc src/model/DescribeProjectsResult.cc + src/model/CreateFaceGroupRequest.cc + src/model/CreateFaceGroupResult.cc + src/model/DeleteTrainDatasRequest.cc + src/model/DeleteTrainDatasResult.cc src/model/DeleteProjectRequest.cc src/model/DeleteProjectResult.cc src/model/DescribePredictDatasRequest.cc src/model/DescribePredictDatasResult.cc + src/model/SearchFaceRequest.cc + src/model/SearchFaceResult.cc src/model/CreateTrainDatasFromUrlsRequest.cc src/model/CreateTrainDatasFromUrlsResult.cc + src/model/UnregisterFaceRequest.cc + src/model/UnregisterFaceResult.cc src/model/DeletePredictDatasRequest.cc src/model/DeletePredictDatasResult.cc src/model/DescribeTrainDatasRequest.cc src/model/DescribeTrainDatasResult.cc + src/model/RegisterFaceRequest.cc + src/model/RegisterFaceResult.cc src/model/CreateUploadTokenRequest.cc src/model/CreateUploadTokenResult.cc src/model/PredictImageRequest.cc diff --git a/ivision/include/alibabacloud/ivision/IvisionClient.h b/ivision/include/alibabacloud/ivision/IvisionClient.h index d88e5f0fb..c564df5d2 100644 --- a/ivision/include/alibabacloud/ivision/IvisionClient.h +++ b/ivision/include/alibabacloud/ivision/IvisionClient.h @@ -26,64 +26,78 @@ #include "model/TrainProjectResult.h" #include "model/CreateTagRequest.h" #include "model/CreateTagResult.h" -#include "model/DescribeTrainResultRequest.h" -#include "model/DescribeTrainResultResult.h" #include "model/StartStreamPredictRequest.h" #include "model/StartStreamPredictResult.h" +#include "model/DescribeTrainResultRequest.h" +#include "model/DescribeTrainResultResult.h" #include "model/CreateProjectRequest.h" #include "model/CreateProjectResult.h" #include "model/DescribeIterationsRequest.h" #include "model/DescribeIterationsResult.h" #include "model/DescribeTrainDatasByIdsRequest.h" #include "model/DescribeTrainDatasByIdsResult.h" -#include "model/CreateTrainDataRegionTagRequest.h" -#include "model/CreateTrainDataRegionTagResult.h" #include "model/CreateTrainDatasFromPredictionRequest.h" #include "model/CreateTrainDatasFromPredictionResult.h" #include "model/ModifyTagAttributeRequest.h" #include "model/ModifyTagAttributeResult.h" -#include "model/CreateTrainDataTagRequest.h" -#include "model/CreateTrainDataTagResult.h" +#include "model/CreateTrainDataRegionTagRequest.h" +#include "model/CreateTrainDataRegionTagResult.h" +#include "model/DeleteFaceGroupRequest.h" +#include "model/DeleteFaceGroupResult.h" #include "model/StopStreamPredictRequest.h" #include "model/StopStreamPredictResult.h" +#include "model/CreateTrainDataTagRequest.h" +#include "model/CreateTrainDataTagResult.h" #include "model/DeleteTagRequest.h" #include "model/DeleteTagResult.h" -#include "model/DescribeStreamPredictsRequest.h" -#include "model/DescribeStreamPredictsResult.h" #include "model/ModifyTrainDataTagAttributeRequest.h" #include "model/ModifyTrainDataTagAttributeResult.h" #include "model/ModifyTrainDataRegionTagAttributeRequest.h" #include "model/ModifyTrainDataRegionTagAttributeResult.h" +#include "model/DescribeStreamPredictsRequest.h" +#include "model/DescribeStreamPredictsResult.h" #include "model/DescribeTagsRequest.h" #include "model/DescribeTagsResult.h" #include "model/DescribeStreamPredictResultRequest.h" #include "model/DescribeStreamPredictResultResult.h" -#include "model/CreateTrainDatasTagRequest.h" -#include "model/CreateTrainDatasTagResult.h" #include "model/DeleteIterationRequest.h" #include "model/DeleteIterationResult.h" +#include "model/CreateTrainDatasTagRequest.h" +#include "model/CreateTrainDatasTagResult.h" #include "model/DeleteTrainDatasTagRequest.h" #include "model/DeleteTrainDatasTagResult.h" +#include "model/ImagePredictRequest.h" +#include "model/ImagePredictResult.h" #include "model/CreateStreamPredictRequest.h" #include "model/CreateStreamPredictResult.h" #include "model/DeleteStreamPredictRequest.h" #include "model/DeleteStreamPredictResult.h" +#include "model/DescribeFaceGroupsRequest.h" +#include "model/DescribeFaceGroupsResult.h" #include "model/ModifyProjectAttributeRequest.h" #include "model/ModifyProjectAttributeResult.h" -#include "model/DeleteTrainDatasRequest.h" -#include "model/DeleteTrainDatasResult.h" #include "model/DescribeProjectsRequest.h" #include "model/DescribeProjectsResult.h" +#include "model/CreateFaceGroupRequest.h" +#include "model/CreateFaceGroupResult.h" +#include "model/DeleteTrainDatasRequest.h" +#include "model/DeleteTrainDatasResult.h" #include "model/DeleteProjectRequest.h" #include "model/DeleteProjectResult.h" #include "model/DescribePredictDatasRequest.h" #include "model/DescribePredictDatasResult.h" +#include "model/SearchFaceRequest.h" +#include "model/SearchFaceResult.h" #include "model/CreateTrainDatasFromUrlsRequest.h" #include "model/CreateTrainDatasFromUrlsResult.h" +#include "model/UnregisterFaceRequest.h" +#include "model/UnregisterFaceResult.h" #include "model/DeletePredictDatasRequest.h" #include "model/DeletePredictDatasResult.h" #include "model/DescribeTrainDatasRequest.h" #include "model/DescribeTrainDatasResult.h" +#include "model/RegisterFaceRequest.h" +#include "model/RegisterFaceResult.h" #include "model/CreateUploadTokenRequest.h" #include "model/CreateUploadTokenResult.h" #include "model/PredictImageRequest.h" @@ -103,12 +117,12 @@ namespace AlibabaCloud typedef Outcome CreateTagOutcome; typedef std::future CreateTagOutcomeCallable; typedef std::function&)> CreateTagAsyncHandler; - typedef Outcome DescribeTrainResultOutcome; - typedef std::future DescribeTrainResultOutcomeCallable; - typedef std::function&)> DescribeTrainResultAsyncHandler; typedef Outcome StartStreamPredictOutcome; typedef std::future StartStreamPredictOutcomeCallable; typedef std::function&)> StartStreamPredictAsyncHandler; + typedef Outcome DescribeTrainResultOutcome; + typedef std::future DescribeTrainResultOutcomeCallable; + typedef std::function&)> DescribeTrainResultAsyncHandler; typedef Outcome CreateProjectOutcome; typedef std::future CreateProjectOutcomeCallable; typedef std::function&)> CreateProjectAsyncHandler; @@ -118,78 +132,99 @@ namespace AlibabaCloud typedef Outcome DescribeTrainDatasByIdsOutcome; typedef std::future DescribeTrainDatasByIdsOutcomeCallable; typedef std::function&)> DescribeTrainDatasByIdsAsyncHandler; - typedef Outcome CreateTrainDataRegionTagOutcome; - typedef std::future CreateTrainDataRegionTagOutcomeCallable; - typedef std::function&)> CreateTrainDataRegionTagAsyncHandler; typedef Outcome CreateTrainDatasFromPredictionOutcome; typedef std::future CreateTrainDatasFromPredictionOutcomeCallable; typedef std::function&)> CreateTrainDatasFromPredictionAsyncHandler; typedef Outcome ModifyTagAttributeOutcome; typedef std::future ModifyTagAttributeOutcomeCallable; typedef std::function&)> ModifyTagAttributeAsyncHandler; - typedef Outcome CreateTrainDataTagOutcome; - typedef std::future CreateTrainDataTagOutcomeCallable; - typedef std::function&)> CreateTrainDataTagAsyncHandler; + typedef Outcome CreateTrainDataRegionTagOutcome; + typedef std::future CreateTrainDataRegionTagOutcomeCallable; + typedef std::function&)> CreateTrainDataRegionTagAsyncHandler; + typedef Outcome DeleteFaceGroupOutcome; + typedef std::future DeleteFaceGroupOutcomeCallable; + typedef std::function&)> DeleteFaceGroupAsyncHandler; typedef Outcome StopStreamPredictOutcome; typedef std::future StopStreamPredictOutcomeCallable; typedef std::function&)> StopStreamPredictAsyncHandler; + typedef Outcome CreateTrainDataTagOutcome; + typedef std::future CreateTrainDataTagOutcomeCallable; + typedef std::function&)> CreateTrainDataTagAsyncHandler; typedef Outcome DeleteTagOutcome; typedef std::future DeleteTagOutcomeCallable; typedef std::function&)> DeleteTagAsyncHandler; - typedef Outcome DescribeStreamPredictsOutcome; - typedef std::future DescribeStreamPredictsOutcomeCallable; - typedef std::function&)> DescribeStreamPredictsAsyncHandler; typedef Outcome ModifyTrainDataTagAttributeOutcome; typedef std::future ModifyTrainDataTagAttributeOutcomeCallable; typedef std::function&)> ModifyTrainDataTagAttributeAsyncHandler; typedef Outcome ModifyTrainDataRegionTagAttributeOutcome; typedef std::future ModifyTrainDataRegionTagAttributeOutcomeCallable; typedef std::function&)> ModifyTrainDataRegionTagAttributeAsyncHandler; + typedef Outcome DescribeStreamPredictsOutcome; + typedef std::future DescribeStreamPredictsOutcomeCallable; + typedef std::function&)> DescribeStreamPredictsAsyncHandler; typedef Outcome DescribeTagsOutcome; typedef std::future DescribeTagsOutcomeCallable; typedef std::function&)> DescribeTagsAsyncHandler; typedef Outcome DescribeStreamPredictResultOutcome; typedef std::future DescribeStreamPredictResultOutcomeCallable; typedef std::function&)> DescribeStreamPredictResultAsyncHandler; - typedef Outcome CreateTrainDatasTagOutcome; - typedef std::future CreateTrainDatasTagOutcomeCallable; - typedef std::function&)> CreateTrainDatasTagAsyncHandler; typedef Outcome DeleteIterationOutcome; typedef std::future DeleteIterationOutcomeCallable; typedef std::function&)> DeleteIterationAsyncHandler; + typedef Outcome CreateTrainDatasTagOutcome; + typedef std::future CreateTrainDatasTagOutcomeCallable; + typedef std::function&)> CreateTrainDatasTagAsyncHandler; typedef Outcome DeleteTrainDatasTagOutcome; typedef std::future DeleteTrainDatasTagOutcomeCallable; typedef std::function&)> DeleteTrainDatasTagAsyncHandler; + typedef Outcome ImagePredictOutcome; + typedef std::future ImagePredictOutcomeCallable; + typedef std::function&)> ImagePredictAsyncHandler; typedef Outcome CreateStreamPredictOutcome; typedef std::future CreateStreamPredictOutcomeCallable; typedef std::function&)> CreateStreamPredictAsyncHandler; typedef Outcome DeleteStreamPredictOutcome; typedef std::future DeleteStreamPredictOutcomeCallable; typedef std::function&)> DeleteStreamPredictAsyncHandler; + typedef Outcome DescribeFaceGroupsOutcome; + typedef std::future DescribeFaceGroupsOutcomeCallable; + typedef std::function&)> DescribeFaceGroupsAsyncHandler; typedef Outcome ModifyProjectAttributeOutcome; typedef std::future ModifyProjectAttributeOutcomeCallable; typedef std::function&)> ModifyProjectAttributeAsyncHandler; - typedef Outcome DeleteTrainDatasOutcome; - typedef std::future DeleteTrainDatasOutcomeCallable; - typedef std::function&)> DeleteTrainDatasAsyncHandler; typedef Outcome DescribeProjectsOutcome; typedef std::future DescribeProjectsOutcomeCallable; typedef std::function&)> DescribeProjectsAsyncHandler; + typedef Outcome CreateFaceGroupOutcome; + typedef std::future CreateFaceGroupOutcomeCallable; + typedef std::function&)> CreateFaceGroupAsyncHandler; + typedef Outcome DeleteTrainDatasOutcome; + typedef std::future DeleteTrainDatasOutcomeCallable; + typedef std::function&)> DeleteTrainDatasAsyncHandler; typedef Outcome DeleteProjectOutcome; typedef std::future DeleteProjectOutcomeCallable; typedef std::function&)> DeleteProjectAsyncHandler; typedef Outcome DescribePredictDatasOutcome; typedef std::future DescribePredictDatasOutcomeCallable; typedef std::function&)> DescribePredictDatasAsyncHandler; + typedef Outcome SearchFaceOutcome; + typedef std::future SearchFaceOutcomeCallable; + typedef std::function&)> SearchFaceAsyncHandler; typedef Outcome CreateTrainDatasFromUrlsOutcome; typedef std::future CreateTrainDatasFromUrlsOutcomeCallable; typedef std::function&)> CreateTrainDatasFromUrlsAsyncHandler; + typedef Outcome UnregisterFaceOutcome; + typedef std::future UnregisterFaceOutcomeCallable; + typedef std::function&)> UnregisterFaceAsyncHandler; typedef Outcome DeletePredictDatasOutcome; typedef std::future DeletePredictDatasOutcomeCallable; typedef std::function&)> DeletePredictDatasAsyncHandler; typedef Outcome DescribeTrainDatasOutcome; typedef std::future DescribeTrainDatasOutcomeCallable; typedef std::function&)> DescribeTrainDatasAsyncHandler; + typedef Outcome RegisterFaceOutcome; + typedef std::future RegisterFaceOutcomeCallable; + typedef std::function&)> RegisterFaceAsyncHandler; typedef Outcome CreateUploadTokenOutcome; typedef std::future CreateUploadTokenOutcomeCallable; typedef std::function&)> CreateUploadTokenAsyncHandler; @@ -207,12 +242,12 @@ namespace AlibabaCloud CreateTagOutcome createTag(const Model::CreateTagRequest &request)const; void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const; - DescribeTrainResultOutcome describeTrainResult(const Model::DescribeTrainResultRequest &request)const; - void describeTrainResultAsync(const Model::DescribeTrainResultRequest& request, const DescribeTrainResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTrainResultOutcomeCallable describeTrainResultCallable(const Model::DescribeTrainResultRequest& request) const; StartStreamPredictOutcome startStreamPredict(const Model::StartStreamPredictRequest &request)const; void startStreamPredictAsync(const Model::StartStreamPredictRequest& request, const StartStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartStreamPredictOutcomeCallable startStreamPredictCallable(const Model::StartStreamPredictRequest& request) const; + DescribeTrainResultOutcome describeTrainResult(const Model::DescribeTrainResultRequest &request)const; + void describeTrainResultAsync(const Model::DescribeTrainResultRequest& request, const DescribeTrainResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTrainResultOutcomeCallable describeTrainResultCallable(const Model::DescribeTrainResultRequest& request) const; CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const; void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const; @@ -222,78 +257,99 @@ namespace AlibabaCloud DescribeTrainDatasByIdsOutcome describeTrainDatasByIds(const Model::DescribeTrainDatasByIdsRequest &request)const; void describeTrainDatasByIdsAsync(const Model::DescribeTrainDatasByIdsRequest& request, const DescribeTrainDatasByIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTrainDatasByIdsOutcomeCallable describeTrainDatasByIdsCallable(const Model::DescribeTrainDatasByIdsRequest& request) const; - CreateTrainDataRegionTagOutcome createTrainDataRegionTag(const Model::CreateTrainDataRegionTagRequest &request)const; - void createTrainDataRegionTagAsync(const Model::CreateTrainDataRegionTagRequest& request, const CreateTrainDataRegionTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateTrainDataRegionTagOutcomeCallable createTrainDataRegionTagCallable(const Model::CreateTrainDataRegionTagRequest& request) const; CreateTrainDatasFromPredictionOutcome createTrainDatasFromPrediction(const Model::CreateTrainDatasFromPredictionRequest &request)const; void createTrainDatasFromPredictionAsync(const Model::CreateTrainDatasFromPredictionRequest& request, const CreateTrainDatasFromPredictionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTrainDatasFromPredictionOutcomeCallable createTrainDatasFromPredictionCallable(const Model::CreateTrainDatasFromPredictionRequest& request) const; ModifyTagAttributeOutcome modifyTagAttribute(const Model::ModifyTagAttributeRequest &request)const; void modifyTagAttributeAsync(const Model::ModifyTagAttributeRequest& request, const ModifyTagAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyTagAttributeOutcomeCallable modifyTagAttributeCallable(const Model::ModifyTagAttributeRequest& request) const; - CreateTrainDataTagOutcome createTrainDataTag(const Model::CreateTrainDataTagRequest &request)const; - void createTrainDataTagAsync(const Model::CreateTrainDataTagRequest& request, const CreateTrainDataTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateTrainDataTagOutcomeCallable createTrainDataTagCallable(const Model::CreateTrainDataTagRequest& request) const; + CreateTrainDataRegionTagOutcome createTrainDataRegionTag(const Model::CreateTrainDataRegionTagRequest &request)const; + void createTrainDataRegionTagAsync(const Model::CreateTrainDataRegionTagRequest& request, const CreateTrainDataRegionTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDataRegionTagOutcomeCallable createTrainDataRegionTagCallable(const Model::CreateTrainDataRegionTagRequest& request) const; + DeleteFaceGroupOutcome deleteFaceGroup(const Model::DeleteFaceGroupRequest &request)const; + void deleteFaceGroupAsync(const Model::DeleteFaceGroupRequest& request, const DeleteFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceGroupOutcomeCallable deleteFaceGroupCallable(const Model::DeleteFaceGroupRequest& request) const; StopStreamPredictOutcome stopStreamPredict(const Model::StopStreamPredictRequest &request)const; void stopStreamPredictAsync(const Model::StopStreamPredictRequest& request, const StopStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopStreamPredictOutcomeCallable stopStreamPredictCallable(const Model::StopStreamPredictRequest& request) const; + CreateTrainDataTagOutcome createTrainDataTag(const Model::CreateTrainDataTagRequest &request)const; + void createTrainDataTagAsync(const Model::CreateTrainDataTagRequest& request, const CreateTrainDataTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDataTagOutcomeCallable createTrainDataTagCallable(const Model::CreateTrainDataTagRequest& request) const; DeleteTagOutcome deleteTag(const Model::DeleteTagRequest &request)const; void deleteTagAsync(const Model::DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTagOutcomeCallable deleteTagCallable(const Model::DeleteTagRequest& request) const; - DescribeStreamPredictsOutcome describeStreamPredicts(const Model::DescribeStreamPredictsRequest &request)const; - void describeStreamPredictsAsync(const Model::DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const; ModifyTrainDataTagAttributeOutcome modifyTrainDataTagAttribute(const Model::ModifyTrainDataTagAttributeRequest &request)const; void modifyTrainDataTagAttributeAsync(const Model::ModifyTrainDataTagAttributeRequest& request, const ModifyTrainDataTagAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyTrainDataTagAttributeOutcomeCallable modifyTrainDataTagAttributeCallable(const Model::ModifyTrainDataTagAttributeRequest& request) const; ModifyTrainDataRegionTagAttributeOutcome modifyTrainDataRegionTagAttribute(const Model::ModifyTrainDataRegionTagAttributeRequest &request)const; void modifyTrainDataRegionTagAttributeAsync(const Model::ModifyTrainDataRegionTagAttributeRequest& request, const ModifyTrainDataRegionTagAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyTrainDataRegionTagAttributeOutcomeCallable modifyTrainDataRegionTagAttributeCallable(const Model::ModifyTrainDataRegionTagAttributeRequest& request) const; + DescribeStreamPredictsOutcome describeStreamPredicts(const Model::DescribeStreamPredictsRequest &request)const; + void describeStreamPredictsAsync(const Model::DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const; DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; DescribeStreamPredictResultOutcome describeStreamPredictResult(const Model::DescribeStreamPredictResultRequest &request)const; void describeStreamPredictResultAsync(const Model::DescribeStreamPredictResultRequest& request, const DescribeStreamPredictResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStreamPredictResultOutcomeCallable describeStreamPredictResultCallable(const Model::DescribeStreamPredictResultRequest& request) const; - CreateTrainDatasTagOutcome createTrainDatasTag(const Model::CreateTrainDatasTagRequest &request)const; - void createTrainDatasTagAsync(const Model::CreateTrainDatasTagRequest& request, const CreateTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateTrainDatasTagOutcomeCallable createTrainDatasTagCallable(const Model::CreateTrainDatasTagRequest& request) const; DeleteIterationOutcome deleteIteration(const Model::DeleteIterationRequest &request)const; void deleteIterationAsync(const Model::DeleteIterationRequest& request, const DeleteIterationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteIterationOutcomeCallable deleteIterationCallable(const Model::DeleteIterationRequest& request) const; + CreateTrainDatasTagOutcome createTrainDatasTag(const Model::CreateTrainDatasTagRequest &request)const; + void createTrainDatasTagAsync(const Model::CreateTrainDatasTagRequest& request, const CreateTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainDatasTagOutcomeCallable createTrainDatasTagCallable(const Model::CreateTrainDatasTagRequest& request) const; DeleteTrainDatasTagOutcome deleteTrainDatasTag(const Model::DeleteTrainDatasTagRequest &request)const; void deleteTrainDatasTagAsync(const Model::DeleteTrainDatasTagRequest& request, const DeleteTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTrainDatasTagOutcomeCallable deleteTrainDatasTagCallable(const Model::DeleteTrainDatasTagRequest& request) const; + ImagePredictOutcome imagePredict(const Model::ImagePredictRequest &request)const; + void imagePredictAsync(const Model::ImagePredictRequest& request, const ImagePredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImagePredictOutcomeCallable imagePredictCallable(const Model::ImagePredictRequest& request) const; CreateStreamPredictOutcome createStreamPredict(const Model::CreateStreamPredictRequest &request)const; void createStreamPredictAsync(const Model::CreateStreamPredictRequest& request, const CreateStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateStreamPredictOutcomeCallable createStreamPredictCallable(const Model::CreateStreamPredictRequest& request) const; DeleteStreamPredictOutcome deleteStreamPredict(const Model::DeleteStreamPredictRequest &request)const; void deleteStreamPredictAsync(const Model::DeleteStreamPredictRequest& request, const DeleteStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteStreamPredictOutcomeCallable deleteStreamPredictCallable(const Model::DeleteStreamPredictRequest& request) const; + DescribeFaceGroupsOutcome describeFaceGroups(const Model::DescribeFaceGroupsRequest &request)const; + void describeFaceGroupsAsync(const Model::DescribeFaceGroupsRequest& request, const DescribeFaceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFaceGroupsOutcomeCallable describeFaceGroupsCallable(const Model::DescribeFaceGroupsRequest& request) const; ModifyProjectAttributeOutcome modifyProjectAttribute(const Model::ModifyProjectAttributeRequest &request)const; void modifyProjectAttributeAsync(const Model::ModifyProjectAttributeRequest& request, const ModifyProjectAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyProjectAttributeOutcomeCallable modifyProjectAttributeCallable(const Model::ModifyProjectAttributeRequest& request) const; - DeleteTrainDatasOutcome deleteTrainDatas(const Model::DeleteTrainDatasRequest &request)const; - void deleteTrainDatasAsync(const Model::DeleteTrainDatasRequest& request, const DeleteTrainDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteTrainDatasOutcomeCallable deleteTrainDatasCallable(const Model::DeleteTrainDatasRequest& request) const; DescribeProjectsOutcome describeProjects(const Model::DescribeProjectsRequest &request)const; void describeProjectsAsync(const Model::DescribeProjectsRequest& request, const DescribeProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeProjectsOutcomeCallable describeProjectsCallable(const Model::DescribeProjectsRequest& request) const; + CreateFaceGroupOutcome createFaceGroup(const Model::CreateFaceGroupRequest &request)const; + void createFaceGroupAsync(const Model::CreateFaceGroupRequest& request, const CreateFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFaceGroupOutcomeCallable createFaceGroupCallable(const Model::CreateFaceGroupRequest& request) const; + DeleteTrainDatasOutcome deleteTrainDatas(const Model::DeleteTrainDatasRequest &request)const; + void deleteTrainDatasAsync(const Model::DeleteTrainDatasRequest& request, const DeleteTrainDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrainDatasOutcomeCallable deleteTrainDatasCallable(const Model::DeleteTrainDatasRequest& request) const; DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; DescribePredictDatasOutcome describePredictDatas(const Model::DescribePredictDatasRequest &request)const; void describePredictDatasAsync(const Model::DescribePredictDatasRequest& request, const DescribePredictDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePredictDatasOutcomeCallable describePredictDatasCallable(const Model::DescribePredictDatasRequest& request) const; + SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const; + void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const; CreateTrainDatasFromUrlsOutcome createTrainDatasFromUrls(const Model::CreateTrainDatasFromUrlsRequest &request)const; void createTrainDatasFromUrlsAsync(const Model::CreateTrainDatasFromUrlsRequest& request, const CreateTrainDatasFromUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTrainDatasFromUrlsOutcomeCallable createTrainDatasFromUrlsCallable(const Model::CreateTrainDatasFromUrlsRequest& request) const; + UnregisterFaceOutcome unregisterFace(const Model::UnregisterFaceRequest &request)const; + void unregisterFaceAsync(const Model::UnregisterFaceRequest& request, const UnregisterFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnregisterFaceOutcomeCallable unregisterFaceCallable(const Model::UnregisterFaceRequest& request) const; DeletePredictDatasOutcome deletePredictDatas(const Model::DeletePredictDatasRequest &request)const; void deletePredictDatasAsync(const Model::DeletePredictDatasRequest& request, const DeletePredictDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePredictDatasOutcomeCallable deletePredictDatasCallable(const Model::DeletePredictDatasRequest& request) const; DescribeTrainDatasOutcome describeTrainDatas(const Model::DescribeTrainDatasRequest &request)const; void describeTrainDatasAsync(const Model::DescribeTrainDatasRequest& request, const DescribeTrainDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTrainDatasOutcomeCallable describeTrainDatasCallable(const Model::DescribeTrainDatasRequest& request) const; + RegisterFaceOutcome registerFace(const Model::RegisterFaceRequest &request)const; + void registerFaceAsync(const Model::RegisterFaceRequest& request, const RegisterFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegisterFaceOutcomeCallable registerFaceCallable(const Model::RegisterFaceRequest& request) const; CreateUploadTokenOutcome createUploadToken(const Model::CreateUploadTokenRequest &request)const; void createUploadTokenAsync(const Model::CreateUploadTokenRequest& request, const CreateUploadTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUploadTokenOutcomeCallable createUploadTokenCallable(const Model::CreateUploadTokenRequest& request) const; diff --git a/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h new file mode 100644 index 000000000..fcdd0d5f0 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_CREATEFACEGROUPREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATEFACEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateFaceGroupRequest : public RpcServiceRequest + { + + public: + CreateFaceGroupRequest(); + ~CreateFaceGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEFACEGROUPREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateFaceGroupResult.h b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupResult.h new file mode 100644 index 000000000..39a2a4c40 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupResult.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_IVISION_MODEL_CREATEFACEGROUPRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_CREATEFACEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT CreateFaceGroupResult : public ServiceResult + { + public: + + + CreateFaceGroupResult(); + explicit CreateFaceGroupResult(const std::string &payload); + ~CreateFaceGroupResult(); + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_CREATEFACEGROUPRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h b/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h index 62fc04451..d2b3a38f6 100644 --- a/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h +++ b/ivision/include/alibabacloud/ivision/model/CreateProjectRequest.h @@ -69,6 +69,8 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); + std::string getModelId()const; + void setModelId(const std::string& modelId); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); long getOwnerId()const; @@ -106,6 +108,7 @@ namespace AlibabaCloud std::string showLog_; std::string app_ip_; std::string popProduct_; + std::string modelId_; std::string callerBid_; long ownerId_; std::string version_; diff --git a/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h index 8753b1aaf..3a20deafe 100644 --- a/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h @@ -77,10 +77,14 @@ namespace AlibabaCloud void setPopProduct(const std::string& popProduct); std::string getStreamType()const; void setStreamType(const std::string& streamType); + std::string getFaceGroupId()const; + void setFaceGroupId(const std::string& faceGroupId); std::string getStreamId()const; void setStreamId(const std::string& streamId); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); + std::string getDetectIntervals()const; + void setDetectIntervals(const std::string& detectIntervals); long getOwnerId()const; void setOwnerId(long ownerId); std::string getVersion()const; @@ -91,6 +95,8 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); std::string getProbabilityThresholds()const; void setProbabilityThresholds(const std::string& probabilityThresholds); std::string getModelIds()const; @@ -120,13 +126,16 @@ namespace AlibabaCloud std::string app_ip_; std::string popProduct_; std::string streamType_; + std::string faceGroupId_; std::string streamId_; std::string callerBid_; + std::string detectIntervals_; long ownerId_; std::string version_; bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; + std::string serviceCode_; std::string probabilityThresholds_; std::string modelIds_; std::string requestId_; diff --git a/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h new file mode 100644 index 000000000..f5b541975 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DELETEFACEGROUPREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEFACEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteFaceGroupRequest : public RpcServiceRequest + { + + public: + DeleteFaceGroupRequest(); + ~DeleteFaceGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string groupId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEFACEGROUPREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupResult.h b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupResult.h new file mode 100644 index 000000000..92fe51f3c --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupResult.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_IVISION_MODEL_DELETEFACEGROUPRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DELETEFACEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DeleteFaceGroupResult : public ServiceResult + { + public: + + + DeleteFaceGroupResult(); + explicit DeleteFaceGroupResult(const std::string &payload); + ~DeleteFaceGroupResult(); + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DELETEFACEGROUPRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h new file mode 100644 index 000000000..ff1f001f4 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEFACEGROUPSREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEFACEGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeFaceGroupsRequest : public RpcServiceRequest + { + + public: + DescribeFaceGroupsRequest(); + ~DescribeFaceGroupsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string nextPageToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + long currentPage_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEFACEGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsResult.h b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsResult.h new file mode 100644 index 000000000..ec9fef681 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_DESCRIBEFACEGROUPSRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_DESCRIBEFACEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT DescribeFaceGroupsResult : public ServiceResult + { + public: + struct Group + { + std::string creationTime; + std::string groupId; + std::string name; + }; + + + DescribeFaceGroupsResult(); + explicit DescribeFaceGroupsResult(const std::string &payload); + ~DescribeFaceGroupsResult(); + long getTotalNum()const; + long getPageSize()const; + long getCurrentPage()const; + std::vector getGroups()const; + std::string getNextPageToken()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + long pageSize_; + long currentPage_; + std::vector groups_; + std::string nextPageToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_DESCRIBEFACEGROUPSRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h b/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h index e75ee4ed0..420edd0e6 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribePredictDatasRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDataIds()const; + void setDataIds(const std::string& dataIds); std::string getProxy_original_source_ip()const; void setProxy_original_source_ip(const std::string& proxy_original_source_ip); std::string getOwnerIdLoginEmail()const; @@ -105,6 +107,7 @@ namespace AlibabaCloud std::string nextPageToken_; long callerParentId_; bool proxy_original_security_transport_; + std::string dataIds_; std::string proxy_original_source_ip_; std::string ownerIdLoginEmail_; std::string callerType_; diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h index 48b7409b4..8250aeaf2 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h @@ -95,6 +95,8 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); std::string getRequestId()const; void setRequestId(const std::string& requestId); @@ -129,6 +131,7 @@ namespace AlibabaCloud bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; + std::string serviceCode_; std::string requestId_; }; diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h index 005566552..8d721b5f3 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultResult.h @@ -34,41 +34,12 @@ namespace AlibabaCloud public: struct StreamPredictData { - struct ResultStatisticsItem - { - std::string tagName; - std::string tagId; - long count; - }; - struct PredictionResult - { - struct Region - { - std::string left; - std::string top; - std::string height; - std::string width; - }; - struct Properties - { - std::string withGlovesProbability; - std::string withGloves; - }; - std::string regionType; - std::string tagName; - std::string tagId; - std::string probability; - Region region; - std::string overlap; - Properties properties; - }; std::string status; - std::vector predictionResults; + std::string predictResult; std::string dataUrl; - std::string streamTimestamp; std::string predictTime; std::string predictId; - std::vector resultStatistics; + long timestamp; std::string modelId; }; diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h index 30dfb4b3c..e249e9776 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h @@ -87,6 +87,8 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); std::string getRequestId()const; void setRequestId(const std::string& requestId); @@ -117,6 +119,7 @@ namespace AlibabaCloud bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; + std::string serviceCode_; std::string requestId_; }; diff --git a/ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h b/ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h new file mode 100644 index 000000000..b23952092 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_IMAGEPREDICTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_IMAGEPREDICTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ImagePredictRequest : public RpcServiceRequest + { + + public: + ImagePredictRequest(); + ~ImagePredictRequest(); + + std::string getDataUrl()const; + void setDataUrl(const std::string& dataUrl); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + std::string dataUrl_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string modelId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_IMAGEPREDICTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/ImagePredictResult.h b/ivision/include/alibabacloud/ivision/model/ImagePredictResult.h new file mode 100644 index 000000000..3e510cf5f --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/ImagePredictResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_IMAGEPREDICTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_IMAGEPREDICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT ImagePredictResult : public ServiceResult + { + public: + struct ImagePredict + { + std::string status; + std::string message; + std::string predictResult; + std::string dataUrl; + std::string predictTime; + std::string predictId; + std::string code; + std::string modelId; + }; + + + ImagePredictResult(); + explicit ImagePredictResult(const std::string &payload); + ~ImagePredictResult(); + ImagePredict getImagePredict()const; + + protected: + void parse(const std::string &payload); + private: + ImagePredict imagePredict_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_IMAGEPREDICTRESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h b/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h new file mode 100644 index 000000000..b1c76ae6b --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_REGISTERFACEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_REGISTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT RegisterFaceRequest : public RpcServiceRequest + { + + public: + RegisterFaceRequest(); + ~RegisterFaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDataType()const; + void setDataType(const std::string& dataType); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string content_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string dataType_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string groupId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_REGISTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/RegisterFaceResult.h b/ivision/include/alibabacloud/ivision/model/RegisterFaceResult.h new file mode 100644 index 000000000..c4ca5733c --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/RegisterFaceResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_REGISTERFACERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_REGISTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT RegisterFaceResult : public ServiceResult + { + public: + struct Face + { + struct Rect + { + int left; + int top; + int height; + int width; + }; + Rect rect; + std::string faceToken; + }; + + + RegisterFaceResult(); + explicit RegisterFaceResult(const std::string &payload); + ~RegisterFaceResult(); + std::vector getFaces()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector faces_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_REGISTERFACERESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h b/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h new file mode 100644 index 000000000..3f2004a45 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_SEARCHFACEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_SEARCHFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT SearchFaceRequest : public RpcServiceRequest + { + + public: + SearchFaceRequest(); + ~SearchFaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getContent()const; + void setContent(const std::string& content); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDataType()const; + void setDataType(const std::string& dataType); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + float getProbabilityThreshold()const; + void setProbabilityThreshold(float probabilityThreshold); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getCount()const; + void setCount(int count); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string content_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string dataType_; + std::string requestContent_; + std::string callerBidEmail_; + float probabilityThreshold_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string groupId_; + int count_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_SEARCHFACEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/SearchFaceResult.h b/ivision/include/alibabacloud/ivision/model/SearchFaceResult.h new file mode 100644 index 000000000..1cf43adad --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/SearchFaceResult.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_IVISION_MODEL_SEARCHFACERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_SEARCHFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT SearchFaceResult : public ServiceResult + { + public: + struct Rect + { + int left; + int top; + int height; + int width; + }; + struct FaceResult + { + std::string faceToken; + float probability; + }; + + + SearchFaceResult(); + explicit SearchFaceResult(const std::string &payload); + ~SearchFaceResult(); + Rect getRect()const; + std::vector getFaceResults()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + Rect rect_; + std::vector faceResults_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_SEARCHFACERESULT_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h b/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h new file mode 100644 index 000000000..a1af274bc --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_UNREGISTERFACEREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_UNREGISTERFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT UnregisterFaceRequest : public RpcServiceRequest + { + + public: + UnregisterFaceRequest(); + ~UnregisterFaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getFaceToken()const; + void setFaceToken(const std::string& faceToken); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string showLog_; + std::string app_ip_; + std::string popProduct_; + std::string groupId_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string faceToken_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_UNREGISTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/UnregisterFaceResult.h b/ivision/include/alibabacloud/ivision/model/UnregisterFaceResult.h new file mode 100644 index 000000000..0583b60ee --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/UnregisterFaceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_UNREGISTERFACERESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_UNREGISTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT UnregisterFaceResult : public ServiceResult + { + public: + + + UnregisterFaceResult(); + explicit UnregisterFaceResult(const std::string &payload); + ~UnregisterFaceResult(); + std::string getFaceToken()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string faceToken_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_UNREGISTERFACERESULT_H_ \ No newline at end of file diff --git a/ivision/src/IvisionClient.cc b/ivision/src/IvisionClient.cc index 0333a4483..bab5a3396 100644 --- a/ivision/src/IvisionClient.cc +++ b/ivision/src/IvisionClient.cc @@ -123,42 +123,6 @@ IvisionClient::CreateTagOutcomeCallable IvisionClient::createTagCallable(const C return task->get_future(); } -IvisionClient::DescribeTrainResultOutcome IvisionClient::describeTrainResult(const DescribeTrainResultRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTrainResultOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTrainResultOutcome(DescribeTrainResultResult(outcome.result())); - else - return DescribeTrainResultOutcome(outcome.error()); -} - -void IvisionClient::describeTrainResultAsync(const DescribeTrainResultRequest& request, const DescribeTrainResultAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTrainResult(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DescribeTrainResultOutcomeCallable IvisionClient::describeTrainResultCallable(const DescribeTrainResultRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTrainResult(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::StartStreamPredictOutcome IvisionClient::startStreamPredict(const StartStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +159,42 @@ IvisionClient::StartStreamPredictOutcomeCallable IvisionClient::startStreamPredi return task->get_future(); } +IvisionClient::DescribeTrainResultOutcome IvisionClient::describeTrainResult(const DescribeTrainResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTrainResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTrainResultOutcome(DescribeTrainResultResult(outcome.result())); + else + return DescribeTrainResultOutcome(outcome.error()); +} + +void IvisionClient::describeTrainResultAsync(const DescribeTrainResultRequest& request, const DescribeTrainResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTrainResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeTrainResultOutcomeCallable IvisionClient::describeTrainResultCallable(const DescribeTrainResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTrainResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::CreateProjectOutcome IvisionClient::createProject(const CreateProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,42 +303,6 @@ IvisionClient::DescribeTrainDatasByIdsOutcomeCallable IvisionClient::describeTra return task->get_future(); } -IvisionClient::CreateTrainDataRegionTagOutcome IvisionClient::createTrainDataRegionTag(const CreateTrainDataRegionTagRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateTrainDataRegionTagOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateTrainDataRegionTagOutcome(CreateTrainDataRegionTagResult(outcome.result())); - else - return CreateTrainDataRegionTagOutcome(outcome.error()); -} - -void IvisionClient::createTrainDataRegionTagAsync(const CreateTrainDataRegionTagRequest& request, const CreateTrainDataRegionTagAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createTrainDataRegionTag(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::CreateTrainDataRegionTagOutcomeCallable IvisionClient::createTrainDataRegionTagCallable(const CreateTrainDataRegionTagRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createTrainDataRegionTag(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::CreateTrainDatasFromPredictionOutcome IvisionClient::createTrainDatasFromPrediction(const CreateTrainDatasFromPredictionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,36 +375,72 @@ IvisionClient::ModifyTagAttributeOutcomeCallable IvisionClient::modifyTagAttribu return task->get_future(); } -IvisionClient::CreateTrainDataTagOutcome IvisionClient::createTrainDataTag(const CreateTrainDataTagRequest &request) const +IvisionClient::CreateTrainDataRegionTagOutcome IvisionClient::createTrainDataRegionTag(const CreateTrainDataRegionTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateTrainDataTagOutcome(endpointOutcome.error()); + return CreateTrainDataRegionTagOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateTrainDataTagOutcome(CreateTrainDataTagResult(outcome.result())); + return CreateTrainDataRegionTagOutcome(CreateTrainDataRegionTagResult(outcome.result())); else - return CreateTrainDataTagOutcome(outcome.error()); + return CreateTrainDataRegionTagOutcome(outcome.error()); } -void IvisionClient::createTrainDataTagAsync(const CreateTrainDataTagRequest& request, const CreateTrainDataTagAsyncHandler& handler, const std::shared_ptr& context) const +void IvisionClient::createTrainDataRegionTagAsync(const CreateTrainDataRegionTagRequest& request, const CreateTrainDataRegionTagAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createTrainDataTag(request), context); + handler(this, request, createTrainDataRegionTag(request), context); }; asyncExecute(new Runnable(fn)); } -IvisionClient::CreateTrainDataTagOutcomeCallable IvisionClient::createTrainDataTagCallable(const CreateTrainDataTagRequest &request) const +IvisionClient::CreateTrainDataRegionTagOutcomeCallable IvisionClient::createTrainDataRegionTagCallable(const CreateTrainDataRegionTagRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createTrainDataTag(request); + return this->createTrainDataRegionTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteFaceGroupOutcome IvisionClient::deleteFaceGroup(const DeleteFaceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceGroupOutcome(DeleteFaceGroupResult(outcome.result())); + else + return DeleteFaceGroupOutcome(outcome.error()); +} + +void IvisionClient::deleteFaceGroupAsync(const DeleteFaceGroupRequest& request, const DeleteFaceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteFaceGroupOutcomeCallable IvisionClient::deleteFaceGroupCallable(const DeleteFaceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -483,6 +483,42 @@ IvisionClient::StopStreamPredictOutcomeCallable IvisionClient::stopStreamPredict return task->get_future(); } +IvisionClient::CreateTrainDataTagOutcome IvisionClient::createTrainDataTag(const CreateTrainDataTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainDataTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainDataTagOutcome(CreateTrainDataTagResult(outcome.result())); + else + return CreateTrainDataTagOutcome(outcome.error()); +} + +void IvisionClient::createTrainDataTagAsync(const CreateTrainDataTagRequest& request, const CreateTrainDataTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainDataTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTrainDataTagOutcomeCallable IvisionClient::createTrainDataTagCallable(const CreateTrainDataTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainDataTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::DeleteTagOutcome IvisionClient::deleteTag(const DeleteTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,42 +555,6 @@ IvisionClient::DeleteTagOutcomeCallable IvisionClient::deleteTagCallable(const D return task->get_future(); } -IvisionClient::DescribeStreamPredictsOutcome IvisionClient::describeStreamPredicts(const DescribeStreamPredictsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeStreamPredictsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeStreamPredictsOutcome(DescribeStreamPredictsResult(outcome.result())); - else - return DescribeStreamPredictsOutcome(outcome.error()); -} - -void IvisionClient::describeStreamPredictsAsync(const DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeStreamPredicts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DescribeStreamPredictsOutcomeCallable IvisionClient::describeStreamPredictsCallable(const DescribeStreamPredictsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeStreamPredicts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::ModifyTrainDataTagAttributeOutcome IvisionClient::modifyTrainDataTagAttribute(const ModifyTrainDataTagAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +627,42 @@ IvisionClient::ModifyTrainDataRegionTagAttributeOutcomeCallable IvisionClient::m return task->get_future(); } +IvisionClient::DescribeStreamPredictsOutcome IvisionClient::describeStreamPredicts(const DescribeStreamPredictsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStreamPredictsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStreamPredictsOutcome(DescribeStreamPredictsResult(outcome.result())); + else + return DescribeStreamPredictsOutcome(outcome.error()); +} + +void IvisionClient::describeStreamPredictsAsync(const DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStreamPredicts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeStreamPredictsOutcomeCallable IvisionClient::describeStreamPredictsCallable(const DescribeStreamPredictsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStreamPredicts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::DescribeTagsOutcome IvisionClient::describeTags(const DescribeTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,42 +735,6 @@ IvisionClient::DescribeStreamPredictResultOutcomeCallable IvisionClient::describ return task->get_future(); } -IvisionClient::CreateTrainDatasTagOutcome IvisionClient::createTrainDatasTag(const CreateTrainDatasTagRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateTrainDatasTagOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateTrainDatasTagOutcome(CreateTrainDatasTagResult(outcome.result())); - else - return CreateTrainDatasTagOutcome(outcome.error()); -} - -void IvisionClient::createTrainDatasTagAsync(const CreateTrainDatasTagRequest& request, const CreateTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createTrainDatasTag(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::CreateTrainDatasTagOutcomeCallable IvisionClient::createTrainDatasTagCallable(const CreateTrainDatasTagRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createTrainDatasTag(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::DeleteIterationOutcome IvisionClient::deleteIteration(const DeleteIterationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +771,42 @@ IvisionClient::DeleteIterationOutcomeCallable IvisionClient::deleteIterationCall return task->get_future(); } +IvisionClient::CreateTrainDatasTagOutcome IvisionClient::createTrainDatasTag(const CreateTrainDatasTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainDatasTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainDatasTagOutcome(CreateTrainDatasTagResult(outcome.result())); + else + return CreateTrainDatasTagOutcome(outcome.error()); +} + +void IvisionClient::createTrainDatasTagAsync(const CreateTrainDatasTagRequest& request, const CreateTrainDatasTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainDatasTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateTrainDatasTagOutcomeCallable IvisionClient::createTrainDatasTagCallable(const CreateTrainDatasTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainDatasTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::DeleteTrainDatasTagOutcome IvisionClient::deleteTrainDatasTag(const DeleteTrainDatasTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +843,42 @@ IvisionClient::DeleteTrainDatasTagOutcomeCallable IvisionClient::deleteTrainData return task->get_future(); } +IvisionClient::ImagePredictOutcome IvisionClient::imagePredict(const ImagePredictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImagePredictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImagePredictOutcome(ImagePredictResult(outcome.result())); + else + return ImagePredictOutcome(outcome.error()); +} + +void IvisionClient::imagePredictAsync(const ImagePredictRequest& request, const ImagePredictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, imagePredict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::ImagePredictOutcomeCallable IvisionClient::imagePredictCallable(const ImagePredictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->imagePredict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::CreateStreamPredictOutcome IvisionClient::createStreamPredict(const CreateStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +951,42 @@ IvisionClient::DeleteStreamPredictOutcomeCallable IvisionClient::deleteStreamPre return task->get_future(); } +IvisionClient::DescribeFaceGroupsOutcome IvisionClient::describeFaceGroups(const DescribeFaceGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFaceGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFaceGroupsOutcome(DescribeFaceGroupsResult(outcome.result())); + else + return DescribeFaceGroupsOutcome(outcome.error()); +} + +void IvisionClient::describeFaceGroupsAsync(const DescribeFaceGroupsRequest& request, const DescribeFaceGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFaceGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DescribeFaceGroupsOutcomeCallable IvisionClient::describeFaceGroupsCallable(const DescribeFaceGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFaceGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::ModifyProjectAttributeOutcome IvisionClient::modifyProjectAttribute(const ModifyProjectAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,42 +1023,6 @@ IvisionClient::ModifyProjectAttributeOutcomeCallable IvisionClient::modifyProjec return task->get_future(); } -IvisionClient::DeleteTrainDatasOutcome IvisionClient::deleteTrainDatas(const DeleteTrainDatasRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteTrainDatasOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteTrainDatasOutcome(DeleteTrainDatasResult(outcome.result())); - else - return DeleteTrainDatasOutcome(outcome.error()); -} - -void IvisionClient::deleteTrainDatasAsync(const DeleteTrainDatasRequest& request, const DeleteTrainDatasAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteTrainDatas(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IvisionClient::DeleteTrainDatasOutcomeCallable IvisionClient::deleteTrainDatasCallable(const DeleteTrainDatasRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteTrainDatas(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IvisionClient::DescribeProjectsOutcome IvisionClient::describeProjects(const DescribeProjectsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1059,78 @@ IvisionClient::DescribeProjectsOutcomeCallable IvisionClient::describeProjectsCa return task->get_future(); } +IvisionClient::CreateFaceGroupOutcome IvisionClient::createFaceGroup(const CreateFaceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFaceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFaceGroupOutcome(CreateFaceGroupResult(outcome.result())); + else + return CreateFaceGroupOutcome(outcome.error()); +} + +void IvisionClient::createFaceGroupAsync(const CreateFaceGroupRequest& request, const CreateFaceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFaceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::CreateFaceGroupOutcomeCallable IvisionClient::createFaceGroupCallable(const CreateFaceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFaceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IvisionClient::DeleteTrainDatasOutcome IvisionClient::deleteTrainDatas(const DeleteTrainDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrainDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrainDatasOutcome(DeleteTrainDatasResult(outcome.result())); + else + return DeleteTrainDatasOutcome(outcome.error()); +} + +void IvisionClient::deleteTrainDatasAsync(const DeleteTrainDatasRequest& request, const DeleteTrainDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrainDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::DeleteTrainDatasOutcomeCallable IvisionClient::deleteTrainDatasCallable(const DeleteTrainDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrainDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::DeleteProjectOutcome IvisionClient::deleteProject(const DeleteProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1203,42 @@ IvisionClient::DescribePredictDatasOutcomeCallable IvisionClient::describePredic return task->get_future(); } +IvisionClient::SearchFaceOutcome IvisionClient::searchFace(const SearchFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchFaceOutcome(SearchFaceResult(outcome.result())); + else + return SearchFaceOutcome(outcome.error()); +} + +void IvisionClient::searchFaceAsync(const SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::SearchFaceOutcomeCallable IvisionClient::searchFaceCallable(const SearchFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::CreateTrainDatasFromUrlsOutcome IvisionClient::createTrainDatasFromUrls(const CreateTrainDatasFromUrlsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1275,42 @@ IvisionClient::CreateTrainDatasFromUrlsOutcomeCallable IvisionClient::createTrai return task->get_future(); } +IvisionClient::UnregisterFaceOutcome IvisionClient::unregisterFace(const UnregisterFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnregisterFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnregisterFaceOutcome(UnregisterFaceResult(outcome.result())); + else + return UnregisterFaceOutcome(outcome.error()); +} + +void IvisionClient::unregisterFaceAsync(const UnregisterFaceRequest& request, const UnregisterFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unregisterFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::UnregisterFaceOutcomeCallable IvisionClient::unregisterFaceCallable(const UnregisterFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unregisterFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::DeletePredictDatasOutcome IvisionClient::deletePredictDatas(const DeletePredictDatasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1383,42 @@ IvisionClient::DescribeTrainDatasOutcomeCallable IvisionClient::describeTrainDat return task->get_future(); } +IvisionClient::RegisterFaceOutcome IvisionClient::registerFace(const RegisterFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RegisterFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RegisterFaceOutcome(RegisterFaceResult(outcome.result())); + else + return RegisterFaceOutcome(outcome.error()); +} + +void IvisionClient::registerFaceAsync(const RegisterFaceRequest& request, const RegisterFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, registerFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::RegisterFaceOutcomeCallable IvisionClient::registerFaceCallable(const RegisterFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->registerFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IvisionClient::CreateUploadTokenOutcome IvisionClient::createUploadToken(const CreateUploadTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ivision/src/model/CreateFaceGroupRequest.cc b/ivision/src/model/CreateFaceGroupRequest.cc new file mode 100644 index 000000000..0bf3e9aa9 --- /dev/null +++ b/ivision/src/model/CreateFaceGroupRequest.cc @@ -0,0 +1,302 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ivision::Model::CreateFaceGroupRequest; + +CreateFaceGroupRequest::CreateFaceGroupRequest() : + RpcServiceRequest("ivision", "2019-03-08", "CreateFaceGroup") +{} + +CreateFaceGroupRequest::~CreateFaceGroupRequest() +{} + +long CreateFaceGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateFaceGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateFaceGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateFaceGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateFaceGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateFaceGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateFaceGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateFaceGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateFaceGroupRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateFaceGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateFaceGroupRequest::getCallerType()const +{ + return callerType_; +} + +void CreateFaceGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateFaceGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateFaceGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateFaceGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateFaceGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateFaceGroupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateFaceGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateFaceGroupRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateFaceGroupRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string CreateFaceGroupRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateFaceGroupRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateFaceGroupRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateFaceGroupRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long CreateFaceGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateFaceGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateFaceGroupRequest::getShowLog()const +{ + return showLog_; +} + +void CreateFaceGroupRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string CreateFaceGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateFaceGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string CreateFaceGroupRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateFaceGroupRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string CreateFaceGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateFaceGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long CreateFaceGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateFaceGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateFaceGroupRequest::getVersion()const +{ + return version_; +} + +void CreateFaceGroupRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool CreateFaceGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateFaceGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateFaceGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateFaceGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateFaceGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateFaceGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateFaceGroupRequest::getServiceCode()const +{ + return serviceCode_; +} + +void CreateFaceGroupRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string CreateFaceGroupRequest::getRequestId()const +{ + return requestId_; +} + +void CreateFaceGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string CreateFaceGroupRequest::getName()const +{ + return name_; +} + +void CreateFaceGroupRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/ivision/src/model/CreateFaceGroupResult.cc b/ivision/src/model/CreateFaceGroupResult.cc new file mode 100644 index 000000000..b0fdf9fcd --- /dev/null +++ b/ivision/src/model/CreateFaceGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +CreateFaceGroupResult::CreateFaceGroupResult() : + ServiceResult() +{} + +CreateFaceGroupResult::CreateFaceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFaceGroupResult::~CreateFaceGroupResult() +{} + +void CreateFaceGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string CreateFaceGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/ivision/src/model/CreateProjectRequest.cc b/ivision/src/model/CreateProjectRequest.cc index 21a19c36b..79e992e91 100644 --- a/ivision/src/model/CreateProjectRequest.cc +++ b/ivision/src/model/CreateProjectRequest.cc @@ -212,6 +212,17 @@ void CreateProjectRequest::setPopProduct(const std::string& popProduct) setCoreParameter("PopProduct", popProduct); } +std::string CreateProjectRequest::getModelId()const +{ + return modelId_; +} + +void CreateProjectRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setCoreParameter("ModelId", modelId); +} + std::string CreateProjectRequest::getCallerBid()const { return callerBid_; diff --git a/ivision/src/model/CreateProjectResult.cc b/ivision/src/model/CreateProjectResult.cc index e06ac39d1..f2989c61c 100644 --- a/ivision/src/model/CreateProjectResult.cc +++ b/ivision/src/model/CreateProjectResult.cc @@ -35,10 +35,13 @@ CreateProjectResult::~CreateProjectResult() void CreateProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto projectNode = value["Project"]; if(!projectNode["ProjectId"].isNull()) diff --git a/ivision/src/model/CreateStreamPredictRequest.cc b/ivision/src/model/CreateStreamPredictRequest.cc index 84f3eb90c..8a70d574e 100644 --- a/ivision/src/model/CreateStreamPredictRequest.cc +++ b/ivision/src/model/CreateStreamPredictRequest.cc @@ -256,6 +256,17 @@ void CreateStreamPredictRequest::setStreamType(const std::string& streamType) setCoreParameter("StreamType", streamType); } +std::string CreateStreamPredictRequest::getFaceGroupId()const +{ + return faceGroupId_; +} + +void CreateStreamPredictRequest::setFaceGroupId(const std::string& faceGroupId) +{ + faceGroupId_ = faceGroupId; + setCoreParameter("FaceGroupId", faceGroupId); +} + std::string CreateStreamPredictRequest::getStreamId()const { return streamId_; @@ -278,6 +289,17 @@ void CreateStreamPredictRequest::setCallerBid(const std::string& callerBid) setCoreParameter("CallerBid", callerBid); } +std::string CreateStreamPredictRequest::getDetectIntervals()const +{ + return detectIntervals_; +} + +void CreateStreamPredictRequest::setDetectIntervals(const std::string& detectIntervals) +{ + detectIntervals_ = detectIntervals; + setCoreParameter("DetectIntervals", detectIntervals); +} + long CreateStreamPredictRequest::getOwnerId()const { return ownerId_; @@ -333,6 +355,17 @@ void CreateStreamPredictRequest::setSecurity_transport(bool security_transport) setCoreParameter("Security_transport", security_transport ? "true" : "false"); } +std::string CreateStreamPredictRequest::getServiceCode()const +{ + return serviceCode_; +} + +void CreateStreamPredictRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + std::string CreateStreamPredictRequest::getProbabilityThresholds()const { return probabilityThresholds_; diff --git a/ivision/src/model/CreateStreamPredictResult.cc b/ivision/src/model/CreateStreamPredictResult.cc index 0ce405404..54f68fbd4 100644 --- a/ivision/src/model/CreateStreamPredictResult.cc +++ b/ivision/src/model/CreateStreamPredictResult.cc @@ -35,10 +35,13 @@ CreateStreamPredictResult::~CreateStreamPredictResult() void CreateStreamPredictResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PredictId"].isNull()) predictId_ = value["PredictId"].asString(); diff --git a/ivision/src/model/CreateTagResult.cc b/ivision/src/model/CreateTagResult.cc index f7141a31b..b9c7ce9cf 100644 --- a/ivision/src/model/CreateTagResult.cc +++ b/ivision/src/model/CreateTagResult.cc @@ -35,10 +35,13 @@ CreateTagResult::~CreateTagResult() void CreateTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto tagNode = value["Tag"]; if(!tagNode["ProjectId"].isNull()) diff --git a/ivision/src/model/CreateTrainDataRegionTagResult.cc b/ivision/src/model/CreateTrainDataRegionTagResult.cc index 9b87b474e..27c0de7fb 100644 --- a/ivision/src/model/CreateTrainDataRegionTagResult.cc +++ b/ivision/src/model/CreateTrainDataRegionTagResult.cc @@ -35,10 +35,13 @@ CreateTrainDataRegionTagResult::~CreateTrainDataRegionTagResult() void CreateTrainDataRegionTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto trainDataNode = value["TrainData"]; if(!trainDataNode["ProjectId"].isNull()) diff --git a/ivision/src/model/CreateTrainDataTagResult.cc b/ivision/src/model/CreateTrainDataTagResult.cc index beb32f005..9244e97ea 100644 --- a/ivision/src/model/CreateTrainDataTagResult.cc +++ b/ivision/src/model/CreateTrainDataTagResult.cc @@ -35,10 +35,13 @@ CreateTrainDataTagResult::~CreateTrainDataTagResult() void CreateTrainDataTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto trainDataNode = value["TrainData"]; if(!trainDataNode["ProjectId"].isNull()) diff --git a/ivision/src/model/CreateTrainDatasFromPredictionResult.cc b/ivision/src/model/CreateTrainDatasFromPredictionResult.cc index ed3664b63..291520069 100644 --- a/ivision/src/model/CreateTrainDatasFromPredictionResult.cc +++ b/ivision/src/model/CreateTrainDatasFromPredictionResult.cc @@ -35,10 +35,13 @@ CreateTrainDatasFromPredictionResult::~CreateTrainDatasFromPredictionResult() void CreateTrainDatasFromPredictionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrainDatas = value["TrainDatas"]["TrainData"]; for (auto value : allTrainDatas) diff --git a/ivision/src/model/CreateTrainDatasFromUrlsResult.cc b/ivision/src/model/CreateTrainDatasFromUrlsResult.cc index 5c4bd4fa4..d29d5682b 100644 --- a/ivision/src/model/CreateTrainDatasFromUrlsResult.cc +++ b/ivision/src/model/CreateTrainDatasFromUrlsResult.cc @@ -35,10 +35,13 @@ CreateTrainDatasFromUrlsResult::~CreateTrainDatasFromUrlsResult() void CreateTrainDatasFromUrlsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrainDatas = value["TrainDatas"]["TrainData"]; for (auto value : allTrainDatas) diff --git a/ivision/src/model/CreateTrainDatasTagResult.cc b/ivision/src/model/CreateTrainDatasTagResult.cc index 634f7c091..0391a98ab 100644 --- a/ivision/src/model/CreateTrainDatasTagResult.cc +++ b/ivision/src/model/CreateTrainDatasTagResult.cc @@ -35,10 +35,13 @@ CreateTrainDatasTagResult::~CreateTrainDatasTagResult() void CreateTrainDatasTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto trainDataNode = value["TrainData"]; if(!trainDataNode["ProjectId"].isNull()) diff --git a/ivision/src/model/CreateUploadTokenResult.cc b/ivision/src/model/CreateUploadTokenResult.cc index 073d48fe9..3b4f44151 100644 --- a/ivision/src/model/CreateUploadTokenResult.cc +++ b/ivision/src/model/CreateUploadTokenResult.cc @@ -35,10 +35,13 @@ CreateUploadTokenResult::~CreateUploadTokenResult() void CreateUploadTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto uploadTokenNode = value["UploadToken"]; if(!uploadTokenNode["AccessKeyId"].isNull()) diff --git a/ivision/src/model/DeleteFaceGroupRequest.cc b/ivision/src/model/DeleteFaceGroupRequest.cc new file mode 100644 index 000000000..bc9d609bb --- /dev/null +++ b/ivision/src/model/DeleteFaceGroupRequest.cc @@ -0,0 +1,302 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ivision::Model::DeleteFaceGroupRequest; + +DeleteFaceGroupRequest::DeleteFaceGroupRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DeleteFaceGroup") +{} + +DeleteFaceGroupRequest::~DeleteFaceGroupRequest() +{} + +long DeleteFaceGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteFaceGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteFaceGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteFaceGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteFaceGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteFaceGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteFaceGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteFaceGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteFaceGroupRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteFaceGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteFaceGroupRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteFaceGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DeleteFaceGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteFaceGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteFaceGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteFaceGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteFaceGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteFaceGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteFaceGroupRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteFaceGroupRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DeleteFaceGroupRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteFaceGroupRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteFaceGroupRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteFaceGroupRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteFaceGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteFaceGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteFaceGroupRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteFaceGroupRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string DeleteFaceGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteFaceGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DeleteFaceGroupRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteFaceGroupRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DeleteFaceGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteFaceGroupRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DeleteFaceGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteFaceGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DeleteFaceGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteFaceGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteFaceGroupRequest::getVersion()const +{ + return version_; +} + +void DeleteFaceGroupRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DeleteFaceGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteFaceGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteFaceGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteFaceGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteFaceGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteFaceGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteFaceGroupRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DeleteFaceGroupRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DeleteFaceGroupRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteFaceGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DeleteFaceGroupResult.cc b/ivision/src/model/DeleteFaceGroupResult.cc new file mode 100644 index 000000000..5e5423b5f --- /dev/null +++ b/ivision/src/model/DeleteFaceGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +DeleteFaceGroupResult::DeleteFaceGroupResult() : + ServiceResult() +{} + +DeleteFaceGroupResult::DeleteFaceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFaceGroupResult::~DeleteFaceGroupResult() +{} + +void DeleteFaceGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string DeleteFaceGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/ivision/src/model/DeleteIterationResult.cc b/ivision/src/model/DeleteIterationResult.cc index 470035d46..45bfb945c 100644 --- a/ivision/src/model/DeleteIterationResult.cc +++ b/ivision/src/model/DeleteIterationResult.cc @@ -35,10 +35,13 @@ DeleteIterationResult::~DeleteIterationResult() void DeleteIterationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["IterationId"].isNull()) iterationId_ = value["IterationId"].asString(); diff --git a/ivision/src/model/DeletePredictDatasResult.cc b/ivision/src/model/DeletePredictDatasResult.cc index d89c19ce1..3f86cca01 100644 --- a/ivision/src/model/DeletePredictDatasResult.cc +++ b/ivision/src/model/DeletePredictDatasResult.cc @@ -35,10 +35,13 @@ DeletePredictDatasResult::~DeletePredictDatasResult() void DeletePredictDatasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ivision/src/model/DeleteProjectResult.cc b/ivision/src/model/DeleteProjectResult.cc index a06f46b3a..8a20c4737 100644 --- a/ivision/src/model/DeleteProjectResult.cc +++ b/ivision/src/model/DeleteProjectResult.cc @@ -35,10 +35,13 @@ DeleteProjectResult::~DeleteProjectResult() void DeleteProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ProjectId"].isNull()) projectId_ = value["ProjectId"].asString(); diff --git a/ivision/src/model/DeleteStreamPredictResult.cc b/ivision/src/model/DeleteStreamPredictResult.cc index 4be7ad565..f0db5d683 100644 --- a/ivision/src/model/DeleteStreamPredictResult.cc +++ b/ivision/src/model/DeleteStreamPredictResult.cc @@ -35,10 +35,13 @@ DeleteStreamPredictResult::~DeleteStreamPredictResult() void DeleteStreamPredictResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PredictId"].isNull()) predictId_ = value["PredictId"].asString(); diff --git a/ivision/src/model/DeleteTagResult.cc b/ivision/src/model/DeleteTagResult.cc index 476c64a7b..242cb677d 100644 --- a/ivision/src/model/DeleteTagResult.cc +++ b/ivision/src/model/DeleteTagResult.cc @@ -35,10 +35,13 @@ DeleteTagResult::~DeleteTagResult() void DeleteTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TagId"].isNull()) tagId_ = value["TagId"].asString(); diff --git a/ivision/src/model/DeleteTrainDatasResult.cc b/ivision/src/model/DeleteTrainDatasResult.cc index 566c59f6a..b5ba5b791 100644 --- a/ivision/src/model/DeleteTrainDatasResult.cc +++ b/ivision/src/model/DeleteTrainDatasResult.cc @@ -35,10 +35,13 @@ DeleteTrainDatasResult::~DeleteTrainDatasResult() void DeleteTrainDatasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ivision/src/model/DeleteTrainDatasTagResult.cc b/ivision/src/model/DeleteTrainDatasTagResult.cc index 434cfeac5..d780e06ea 100644 --- a/ivision/src/model/DeleteTrainDatasTagResult.cc +++ b/ivision/src/model/DeleteTrainDatasTagResult.cc @@ -35,10 +35,13 @@ DeleteTrainDatasTagResult::~DeleteTrainDatasTagResult() void DeleteTrainDatasTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ivision/src/model/DescribeFaceGroupsRequest.cc b/ivision/src/model/DescribeFaceGroupsRequest.cc new file mode 100644 index 000000000..bbb566f7f --- /dev/null +++ b/ivision/src/model/DescribeFaceGroupsRequest.cc @@ -0,0 +1,324 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ivision::Model::DescribeFaceGroupsRequest; + +DescribeFaceGroupsRequest::DescribeFaceGroupsRequest() : + RpcServiceRequest("ivision", "2019-03-08", "DescribeFaceGroups") +{} + +DescribeFaceGroupsRequest::~DescribeFaceGroupsRequest() +{} + +long DescribeFaceGroupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeFaceGroupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeFaceGroupsRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeFaceGroupsRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +long DescribeFaceGroupsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeFaceGroupsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeFaceGroupsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeFaceGroupsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeFaceGroupsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeFaceGroupsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeFaceGroupsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeFaceGroupsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeFaceGroupsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeFaceGroupsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeFaceGroupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeFaceGroupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeFaceGroupsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeFaceGroupsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeFaceGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeFaceGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeFaceGroupsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeFaceGroupsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +long DescribeFaceGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeFaceGroupsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeFaceGroupsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeFaceGroupsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeFaceGroupsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeFaceGroupsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeFaceGroupsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeFaceGroupsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeFaceGroupsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeFaceGroupsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string DescribeFaceGroupsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeFaceGroupsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeFaceGroupsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeFaceGroupsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +long DescribeFaceGroupsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeFaceGroupsRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeFaceGroupsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeFaceGroupsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeFaceGroupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeFaceGroupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeFaceGroupsRequest::getVersion()const +{ + return version_; +} + +void DescribeFaceGroupsRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeFaceGroupsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeFaceGroupsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeFaceGroupsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeFaceGroupsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeFaceGroupsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeFaceGroupsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeFaceGroupsRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeFaceGroupsRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeFaceGroupsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeFaceGroupsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/DescribeFaceGroupsResult.cc b/ivision/src/model/DescribeFaceGroupsResult.cc new file mode 100644 index 000000000..36fd302b0 --- /dev/null +++ b/ivision/src/model/DescribeFaceGroupsResult.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::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +DescribeFaceGroupsResult::DescribeFaceGroupsResult() : + ServiceResult() +{} + +DescribeFaceGroupsResult::DescribeFaceGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFaceGroupsResult::~DescribeFaceGroupsResult() +{} + +void DescribeFaceGroupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allGroups = value["Groups"]["Group"]; + for (auto value : allGroups) + { + Group groupsObject; + if(!value["GroupId"].isNull()) + groupsObject.groupId = value["GroupId"].asString(); + if(!value["Name"].isNull()) + groupsObject.name = value["Name"].asString(); + if(!value["CreationTime"].isNull()) + groupsObject.creationTime = value["CreationTime"].asString(); + groups_.push_back(groupsObject); + } + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stol(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + +} + +long DescribeFaceGroupsResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeFaceGroupsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeFaceGroupsResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeFaceGroupsResult::getGroups()const +{ + return groups_; +} + +std::string DescribeFaceGroupsResult::getNextPageToken()const +{ + return nextPageToken_; +} + diff --git a/ivision/src/model/DescribeIterationsResult.cc b/ivision/src/model/DescribeIterationsResult.cc index df087e063..3a1c82cf6 100644 --- a/ivision/src/model/DescribeIterationsResult.cc +++ b/ivision/src/model/DescribeIterationsResult.cc @@ -35,10 +35,13 @@ DescribeIterationsResult::~DescribeIterationsResult() void DescribeIterationsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIterations = value["Iterations"]["Iteration"]; for (auto value : allIterations) diff --git a/ivision/src/model/DescribePredictDatasRequest.cc b/ivision/src/model/DescribePredictDatasRequest.cc index 7ba09397e..948add99d 100644 --- a/ivision/src/model/DescribePredictDatasRequest.cc +++ b/ivision/src/model/DescribePredictDatasRequest.cc @@ -69,6 +69,17 @@ void DescribePredictDatasRequest::setProxy_original_security_transport(bool prox setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } +std::string DescribePredictDatasRequest::getDataIds()const +{ + return dataIds_; +} + +void DescribePredictDatasRequest::setDataIds(const std::string& dataIds) +{ + dataIds_ = dataIds; + setCoreParameter("DataIds", dataIds); +} + std::string DescribePredictDatasRequest::getProxy_original_source_ip()const { return proxy_original_source_ip_; diff --git a/ivision/src/model/DescribePredictDatasResult.cc b/ivision/src/model/DescribePredictDatasResult.cc index 6a752514c..4771686bb 100644 --- a/ivision/src/model/DescribePredictDatasResult.cc +++ b/ivision/src/model/DescribePredictDatasResult.cc @@ -35,10 +35,13 @@ DescribePredictDatasResult::~DescribePredictDatasResult() void DescribePredictDatasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPredictDatas = value["PredictDatas"]["PredictData"]; for (auto value : allPredictDatas) diff --git a/ivision/src/model/DescribeProjectsResult.cc b/ivision/src/model/DescribeProjectsResult.cc index b8a35ff4e..d7a2c800a 100644 --- a/ivision/src/model/DescribeProjectsResult.cc +++ b/ivision/src/model/DescribeProjectsResult.cc @@ -35,10 +35,13 @@ DescribeProjectsResult::~DescribeProjectsResult() void DescribeProjectsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allProjects = value["Projects"]["Project"]; for (auto value : allProjects) diff --git a/ivision/src/model/DescribeStreamPredictResultRequest.cc b/ivision/src/model/DescribeStreamPredictResultRequest.cc index 58e1fc3de..be1e91bed 100644 --- a/ivision/src/model/DescribeStreamPredictResultRequest.cc +++ b/ivision/src/model/DescribeStreamPredictResultRequest.cc @@ -355,6 +355,17 @@ void DescribeStreamPredictResultRequest::setSecurity_transport(bool security_tra setCoreParameter("Security_transport", security_transport ? "true" : "false"); } +std::string DescribeStreamPredictResultRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeStreamPredictResultRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + std::string DescribeStreamPredictResultRequest::getRequestId()const { return requestId_; diff --git a/ivision/src/model/DescribeStreamPredictResultResult.cc b/ivision/src/model/DescribeStreamPredictResultResult.cc index db2a6032f..ff380b925 100644 --- a/ivision/src/model/DescribeStreamPredictResultResult.cc +++ b/ivision/src/model/DescribeStreamPredictResultResult.cc @@ -35,10 +35,13 @@ DescribeStreamPredictResultResult::~DescribeStreamPredictResultResult() void DescribeStreamPredictResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStreamPredictDatas = value["StreamPredictDatas"]["StreamPredictData"]; for (auto value : allStreamPredictDatas) @@ -50,54 +53,14 @@ void DescribeStreamPredictResultResult::parse(const std::string &payload) streamPredictDatasObject.modelId = value["ModelId"].asString(); if(!value["DataUrl"].isNull()) streamPredictDatasObject.dataUrl = value["DataUrl"].asString(); - if(!value["StreamTimestamp"].isNull()) - streamPredictDatasObject.streamTimestamp = value["StreamTimestamp"].asString(); + if(!value["Timestamp"].isNull()) + streamPredictDatasObject.timestamp = std::stol(value["Timestamp"].asString()); if(!value["PredictTime"].isNull()) streamPredictDatasObject.predictTime = value["PredictTime"].asString(); if(!value["Status"].isNull()) streamPredictDatasObject.status = value["Status"].asString(); - auto allResultStatistics = value["ResultStatistics"]["ResultStatisticsItem"]; - for (auto value : allResultStatistics) - { - StreamPredictData::ResultStatisticsItem resultStatisticsObject; - if(!value["TagId"].isNull()) - resultStatisticsObject.tagId = value["TagId"].asString(); - if(!value["TagName"].isNull()) - resultStatisticsObject.tagName = value["TagName"].asString(); - if(!value["Count"].isNull()) - resultStatisticsObject.count = std::stol(value["Count"].asString()); - streamPredictDatasObject.resultStatistics.push_back(resultStatisticsObject); - } - auto allPredictionResults = value["PredictionResults"]["PredictionResult"]; - for (auto value : allPredictionResults) - { - StreamPredictData::PredictionResult predictionResultsObject; - if(!value["TagId"].isNull()) - predictionResultsObject.tagId = value["TagId"].asString(); - if(!value["TagName"].isNull()) - predictionResultsObject.tagName = value["TagName"].asString(); - if(!value["Probability"].isNull()) - predictionResultsObject.probability = value["Probability"].asString(); - if(!value["Overlap"].isNull()) - predictionResultsObject.overlap = value["Overlap"].asString(); - if(!value["RegionType"].isNull()) - predictionResultsObject.regionType = value["RegionType"].asString(); - auto regionNode = value["Region"]; - if(!regionNode["Left"].isNull()) - predictionResultsObject.region.left = regionNode["Left"].asString(); - if(!regionNode["Top"].isNull()) - predictionResultsObject.region.top = regionNode["Top"].asString(); - if(!regionNode["Width"].isNull()) - predictionResultsObject.region.width = regionNode["Width"].asString(); - if(!regionNode["Height"].isNull()) - predictionResultsObject.region.height = regionNode["Height"].asString(); - auto propertiesNode = value["Properties"]; - if(!propertiesNode["WithGloves"].isNull()) - predictionResultsObject.properties.withGloves = propertiesNode["WithGloves"].asString(); - if(!propertiesNode["WithGlovesProbability"].isNull()) - predictionResultsObject.properties.withGlovesProbability = propertiesNode["WithGlovesProbability"].asString(); - streamPredictDatasObject.predictionResults.push_back(predictionResultsObject); - } + if(!value["PredictResult"].isNull()) + streamPredictDatasObject.predictResult = value["PredictResult"].asString(); streamPredictDatas_.push_back(streamPredictDatasObject); } if(!value["TotalNum"].isNull()) diff --git a/ivision/src/model/DescribeStreamPredictsRequest.cc b/ivision/src/model/DescribeStreamPredictsRequest.cc index 71049ce6d..fe2310dc3 100644 --- a/ivision/src/model/DescribeStreamPredictsRequest.cc +++ b/ivision/src/model/DescribeStreamPredictsRequest.cc @@ -311,6 +311,17 @@ void DescribeStreamPredictsRequest::setSecurity_transport(bool security_transpor setCoreParameter("Security_transport", security_transport ? "true" : "false"); } +std::string DescribeStreamPredictsRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeStreamPredictsRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + std::string DescribeStreamPredictsRequest::getRequestId()const { return requestId_; diff --git a/ivision/src/model/DescribeStreamPredictsResult.cc b/ivision/src/model/DescribeStreamPredictsResult.cc index 3235a1507..e3e55c2f1 100644 --- a/ivision/src/model/DescribeStreamPredictsResult.cc +++ b/ivision/src/model/DescribeStreamPredictsResult.cc @@ -35,10 +35,13 @@ DescribeStreamPredictsResult::~DescribeStreamPredictsResult() void DescribeStreamPredictsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStreamPredicts = value["StreamPredicts"]["StreamPredict"]; for (auto value : allStreamPredicts) diff --git a/ivision/src/model/DescribeTagsResult.cc b/ivision/src/model/DescribeTagsResult.cc index c3b96ba19..9df2d36e7 100644 --- a/ivision/src/model/DescribeTagsResult.cc +++ b/ivision/src/model/DescribeTagsResult.cc @@ -35,10 +35,13 @@ DescribeTagsResult::~DescribeTagsResult() void DescribeTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) diff --git a/ivision/src/model/DescribeTrainDatasByIdsResult.cc b/ivision/src/model/DescribeTrainDatasByIdsResult.cc index b18d40f6f..391ad4a84 100644 --- a/ivision/src/model/DescribeTrainDatasByIdsResult.cc +++ b/ivision/src/model/DescribeTrainDatasByIdsResult.cc @@ -35,10 +35,13 @@ DescribeTrainDatasByIdsResult::~DescribeTrainDatasByIdsResult() void DescribeTrainDatasByIdsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrainDatas = value["TrainDatas"]["TrainData"]; for (auto value : allTrainDatas) diff --git a/ivision/src/model/DescribeTrainDatasResult.cc b/ivision/src/model/DescribeTrainDatasResult.cc index 4fc569cff..e99b10432 100644 --- a/ivision/src/model/DescribeTrainDatasResult.cc +++ b/ivision/src/model/DescribeTrainDatasResult.cc @@ -35,10 +35,13 @@ DescribeTrainDatasResult::~DescribeTrainDatasResult() void DescribeTrainDatasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrainDatas = value["TrainDatas"]["TrainData"]; for (auto value : allTrainDatas) diff --git a/ivision/src/model/DescribeTrainResultResult.cc b/ivision/src/model/DescribeTrainResultResult.cc index 835b416ca..bf9f40424 100644 --- a/ivision/src/model/DescribeTrainResultResult.cc +++ b/ivision/src/model/DescribeTrainResultResult.cc @@ -35,10 +35,13 @@ DescribeTrainResultResult::~DescribeTrainResultResult() void DescribeTrainResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto trainResultNode = value["TrainResult"]; if(!trainResultNode["ProjectId"].isNull()) diff --git a/ivision/src/model/ImagePredictRequest.cc b/ivision/src/model/ImagePredictRequest.cc new file mode 100644 index 000000000..63b2a9a47 --- /dev/null +++ b/ivision/src/model/ImagePredictRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ivision::Model::ImagePredictRequest; + +ImagePredictRequest::ImagePredictRequest() : + RpcServiceRequest("ivision", "2019-03-08", "ImagePredict") +{} + +ImagePredictRequest::~ImagePredictRequest() +{} + +std::string ImagePredictRequest::getDataUrl()const +{ + return dataUrl_; +} + +void ImagePredictRequest::setDataUrl(const std::string& dataUrl) +{ + dataUrl_ = dataUrl; + setCoreParameter("DataUrl", dataUrl); +} + +long ImagePredictRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ImagePredictRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ImagePredictRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ImagePredictRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ImagePredictRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ImagePredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ImagePredictRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ImagePredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ImagePredictRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ImagePredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ImagePredictRequest::getCallerType()const +{ + return callerType_; +} + +void ImagePredictRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ImagePredictRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ImagePredictRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ImagePredictRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ImagePredictRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ImagePredictRequest::getRegionId()const +{ + return regionId_; +} + +void ImagePredictRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ImagePredictRequest::getRequestContent()const +{ + return requestContent_; +} + +void ImagePredictRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string ImagePredictRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ImagePredictRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string ImagePredictRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ImagePredictRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long ImagePredictRequest::getCallerUid()const +{ + return callerUid_; +} + +void ImagePredictRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ImagePredictRequest::getShowLog()const +{ + return showLog_; +} + +void ImagePredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string ImagePredictRequest::getApp_ip()const +{ + return app_ip_; +} + +void ImagePredictRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string ImagePredictRequest::getPopProduct()const +{ + return popProduct_; +} + +void ImagePredictRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string ImagePredictRequest::getModelId()const +{ + return modelId_; +} + +void ImagePredictRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setCoreParameter("ModelId", modelId); +} + +std::string ImagePredictRequest::getCallerBid()const +{ + return callerBid_; +} + +void ImagePredictRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long ImagePredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void ImagePredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ImagePredictRequest::getVersion()const +{ + return version_; +} + +void ImagePredictRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool ImagePredictRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ImagePredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ImagePredictRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ImagePredictRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ImagePredictRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ImagePredictRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ImagePredictRequest::getServiceCode()const +{ + return serviceCode_; +} + +void ImagePredictRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string ImagePredictRequest::getRequestId()const +{ + return requestId_; +} + +void ImagePredictRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/ImagePredictResult.cc b/ivision/src/model/ImagePredictResult.cc new file mode 100644 index 000000000..deb402be7 --- /dev/null +++ b/ivision/src/model/ImagePredictResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +ImagePredictResult::ImagePredictResult() : + ServiceResult() +{} + +ImagePredictResult::ImagePredictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImagePredictResult::~ImagePredictResult() +{} + +void ImagePredictResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto imagePredictNode = value["ImagePredict"]; + if(!imagePredictNode["PredictId"].isNull()) + imagePredict_.predictId = imagePredictNode["PredictId"].asString(); + if(!imagePredictNode["ModelId"].isNull()) + imagePredict_.modelId = imagePredictNode["ModelId"].asString(); + if(!imagePredictNode["DataUrl"].isNull()) + imagePredict_.dataUrl = imagePredictNode["DataUrl"].asString(); + if(!imagePredictNode["PredictTime"].isNull()) + imagePredict_.predictTime = imagePredictNode["PredictTime"].asString(); + if(!imagePredictNode["Status"].isNull()) + imagePredict_.status = imagePredictNode["Status"].asString(); + if(!imagePredictNode["Code"].isNull()) + imagePredict_.code = imagePredictNode["Code"].asString(); + if(!imagePredictNode["Message"].isNull()) + imagePredict_.message = imagePredictNode["Message"].asString(); + if(!imagePredictNode["PredictResult"].isNull()) + imagePredict_.predictResult = imagePredictNode["PredictResult"].asString(); + +} + +ImagePredictResult::ImagePredict ImagePredictResult::getImagePredict()const +{ + return imagePredict_; +} + diff --git a/ivision/src/model/ModifyProjectAttributeResult.cc b/ivision/src/model/ModifyProjectAttributeResult.cc index edb0e55b2..ff9f7bed7 100644 --- a/ivision/src/model/ModifyProjectAttributeResult.cc +++ b/ivision/src/model/ModifyProjectAttributeResult.cc @@ -35,10 +35,13 @@ ModifyProjectAttributeResult::~ModifyProjectAttributeResult() void ModifyProjectAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto projectNode = value["Project"]; if(!projectNode["ProjectId"].isNull()) diff --git a/ivision/src/model/ModifyTagAttributeResult.cc b/ivision/src/model/ModifyTagAttributeResult.cc index 1b24f98e7..32f31a6e9 100644 --- a/ivision/src/model/ModifyTagAttributeResult.cc +++ b/ivision/src/model/ModifyTagAttributeResult.cc @@ -35,10 +35,13 @@ ModifyTagAttributeResult::~ModifyTagAttributeResult() void ModifyTagAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto tagNode = value["Tag"]; if(!tagNode["ProjectId"].isNull()) diff --git a/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc b/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc index 3e6c624c6..6fae5245c 100644 --- a/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc +++ b/ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc @@ -35,10 +35,13 @@ ModifyTrainDataRegionTagAttributeResult::~ModifyTrainDataRegionTagAttributeResul void ModifyTrainDataRegionTagAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto trainDataNode = value["TrainData"]; if(!trainDataNode["ProjectId"].isNull()) diff --git a/ivision/src/model/ModifyTrainDataTagAttributeResult.cc b/ivision/src/model/ModifyTrainDataTagAttributeResult.cc index eebf1d8b6..da869dfe7 100644 --- a/ivision/src/model/ModifyTrainDataTagAttributeResult.cc +++ b/ivision/src/model/ModifyTrainDataTagAttributeResult.cc @@ -35,10 +35,13 @@ ModifyTrainDataTagAttributeResult::~ModifyTrainDataTagAttributeResult() void ModifyTrainDataTagAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto trainDataNode = value["TrainData"]; if(!trainDataNode["ProjectId"].isNull()) diff --git a/ivision/src/model/PredictImageResult.cc b/ivision/src/model/PredictImageResult.cc index 13f82b310..d594e49e9 100644 --- a/ivision/src/model/PredictImageResult.cc +++ b/ivision/src/model/PredictImageResult.cc @@ -35,10 +35,13 @@ PredictImageResult::~PredictImageResult() void PredictImageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPredictDatas = value["PredictDatas"]["PredictData"]; for (auto value : allPredictDatas) diff --git a/ivision/src/model/RegisterFaceRequest.cc b/ivision/src/model/RegisterFaceRequest.cc new file mode 100644 index 000000000..a02270e83 --- /dev/null +++ b/ivision/src/model/RegisterFaceRequest.cc @@ -0,0 +1,324 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ivision::Model::RegisterFaceRequest; + +RegisterFaceRequest::RegisterFaceRequest() : + RpcServiceRequest("ivision", "2019-03-08", "RegisterFace") +{} + +RegisterFaceRequest::~RegisterFaceRequest() +{} + +long RegisterFaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RegisterFaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long RegisterFaceRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RegisterFaceRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool RegisterFaceRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RegisterFaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string RegisterFaceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RegisterFaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string RegisterFaceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void RegisterFaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string RegisterFaceRequest::getCallerType()const +{ + return callerType_; +} + +void RegisterFaceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string RegisterFaceRequest::getContent()const +{ + return content_; +} + +void RegisterFaceRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string RegisterFaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RegisterFaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string RegisterFaceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RegisterFaceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RegisterFaceRequest::getRegionId()const +{ + return regionId_; +} + +void RegisterFaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RegisterFaceRequest::getDataType()const +{ + return dataType_; +} + +void RegisterFaceRequest::setDataType(const std::string& dataType) +{ + dataType_ = dataType; + setCoreParameter("DataType", dataType); +} + +std::string RegisterFaceRequest::getRequestContent()const +{ + return requestContent_; +} + +void RegisterFaceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string RegisterFaceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void RegisterFaceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string RegisterFaceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void RegisterFaceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long RegisterFaceRequest::getCallerUid()const +{ + return callerUid_; +} + +void RegisterFaceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string RegisterFaceRequest::getShowLog()const +{ + return showLog_; +} + +void RegisterFaceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string RegisterFaceRequest::getApp_ip()const +{ + return app_ip_; +} + +void RegisterFaceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string RegisterFaceRequest::getPopProduct()const +{ + return popProduct_; +} + +void RegisterFaceRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string RegisterFaceRequest::getGroupId()const +{ + return groupId_; +} + +void RegisterFaceRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string RegisterFaceRequest::getCallerBid()const +{ + return callerBid_; +} + +void RegisterFaceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long RegisterFaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RegisterFaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RegisterFaceRequest::getVersion()const +{ + return version_; +} + +void RegisterFaceRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool RegisterFaceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RegisterFaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool RegisterFaceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RegisterFaceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool RegisterFaceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RegisterFaceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RegisterFaceRequest::getServiceCode()const +{ + return serviceCode_; +} + +void RegisterFaceRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string RegisterFaceRequest::getRequestId()const +{ + return requestId_; +} + +void RegisterFaceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/RegisterFaceResult.cc b/ivision/src/model/RegisterFaceResult.cc new file mode 100644 index 000000000..0f54dd263 --- /dev/null +++ b/ivision/src/model/RegisterFaceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +RegisterFaceResult::RegisterFaceResult() : + ServiceResult() +{} + +RegisterFaceResult::RegisterFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RegisterFaceResult::~RegisterFaceResult() +{} + +void RegisterFaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allFaces = value["Faces"]["Face"]; + for (auto value : allFaces) + { + Face facesObject; + if(!value["FaceToken"].isNull()) + facesObject.faceToken = value["FaceToken"].asString(); + auto rectNode = value["Rect"]; + if(!rectNode["Left"].isNull()) + facesObject.rect.left = std::stoi(rectNode["Left"].asString()); + if(!rectNode["Top"].isNull()) + facesObject.rect.top = std::stoi(rectNode["Top"].asString()); + if(!rectNode["Width"].isNull()) + facesObject.rect.width = std::stoi(rectNode["Width"].asString()); + if(!rectNode["Height"].isNull()) + facesObject.rect.height = std::stoi(rectNode["Height"].asString()); + faces_.push_back(facesObject); + } + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::vector RegisterFaceResult::getFaces()const +{ + return faces_; +} + +std::string RegisterFaceResult::getGroupId()const +{ + return groupId_; +} + diff --git a/ivision/src/model/SearchFaceRequest.cc b/ivision/src/model/SearchFaceRequest.cc new file mode 100644 index 000000000..3a34a46fa --- /dev/null +++ b/ivision/src/model/SearchFaceRequest.cc @@ -0,0 +1,346 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ivision::Model::SearchFaceRequest; + +SearchFaceRequest::SearchFaceRequest() : + RpcServiceRequest("ivision", "2019-03-08", "SearchFace") +{} + +SearchFaceRequest::~SearchFaceRequest() +{} + +long SearchFaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SearchFaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long SearchFaceRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void SearchFaceRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool SearchFaceRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void SearchFaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string SearchFaceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void SearchFaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string SearchFaceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void SearchFaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string SearchFaceRequest::getCallerType()const +{ + return callerType_; +} + +void SearchFaceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string SearchFaceRequest::getContent()const +{ + return content_; +} + +void SearchFaceRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string SearchFaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SearchFaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SearchFaceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SearchFaceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string SearchFaceRequest::getRegionId()const +{ + return regionId_; +} + +void SearchFaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SearchFaceRequest::getDataType()const +{ + return dataType_; +} + +void SearchFaceRequest::setDataType(const std::string& dataType) +{ + dataType_ = dataType; + setCoreParameter("DataType", dataType); +} + +std::string SearchFaceRequest::getRequestContent()const +{ + return requestContent_; +} + +void SearchFaceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string SearchFaceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void SearchFaceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +float SearchFaceRequest::getProbabilityThreshold()const +{ + return probabilityThreshold_; +} + +void SearchFaceRequest::setProbabilityThreshold(float probabilityThreshold) +{ + probabilityThreshold_ = probabilityThreshold; + setCoreParameter("ProbabilityThreshold", std::to_string(probabilityThreshold)); +} + +std::string SearchFaceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void SearchFaceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long SearchFaceRequest::getCallerUid()const +{ + return callerUid_; +} + +void SearchFaceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string SearchFaceRequest::getShowLog()const +{ + return showLog_; +} + +void SearchFaceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string SearchFaceRequest::getApp_ip()const +{ + return app_ip_; +} + +void SearchFaceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string SearchFaceRequest::getPopProduct()const +{ + return popProduct_; +} + +void SearchFaceRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string SearchFaceRequest::getGroupId()const +{ + return groupId_; +} + +void SearchFaceRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +int SearchFaceRequest::getCount()const +{ + return count_; +} + +void SearchFaceRequest::setCount(int count) +{ + count_ = count; + setCoreParameter("Count", std::to_string(count)); +} + +std::string SearchFaceRequest::getCallerBid()const +{ + return callerBid_; +} + +void SearchFaceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long SearchFaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void SearchFaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SearchFaceRequest::getVersion()const +{ + return version_; +} + +void SearchFaceRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool SearchFaceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void SearchFaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool SearchFaceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void SearchFaceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool SearchFaceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void SearchFaceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string SearchFaceRequest::getServiceCode()const +{ + return serviceCode_; +} + +void SearchFaceRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string SearchFaceRequest::getRequestId()const +{ + return requestId_; +} + +void SearchFaceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/SearchFaceResult.cc b/ivision/src/model/SearchFaceResult.cc new file mode 100644 index 000000000..a4112140b --- /dev/null +++ b/ivision/src/model/SearchFaceResult.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::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +SearchFaceResult::SearchFaceResult() : + ServiceResult() +{} + +SearchFaceResult::SearchFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchFaceResult::~SearchFaceResult() +{} + +void SearchFaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allFaceResults = value["FaceResults"]["FaceResult"]; + for (auto value : allFaceResults) + { + FaceResult faceResultsObject; + if(!value["FaceToken"].isNull()) + faceResultsObject.faceToken = value["FaceToken"].asString(); + if(!value["Probability"].isNull()) + faceResultsObject.probability = std::stof(value["Probability"].asString()); + faceResults_.push_back(faceResultsObject); + } + auto rectNode = value["Rect"]; + if(!rectNode["Left"].isNull()) + rect_.left = std::stoi(rectNode["Left"].asString()); + if(!rectNode["Top"].isNull()) + rect_.top = std::stoi(rectNode["Top"].asString()); + if(!rectNode["Width"].isNull()) + rect_.width = std::stoi(rectNode["Width"].asString()); + if(!rectNode["Height"].isNull()) + rect_.height = std::stoi(rectNode["Height"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +SearchFaceResult::Rect SearchFaceResult::getRect()const +{ + return rect_; +} + +std::vector SearchFaceResult::getFaceResults()const +{ + return faceResults_; +} + +std::string SearchFaceResult::getGroupId()const +{ + return groupId_; +} + diff --git a/ivision/src/model/StartStreamPredictResult.cc b/ivision/src/model/StartStreamPredictResult.cc index 0547bf6f7..eddad2eba 100644 --- a/ivision/src/model/StartStreamPredictResult.cc +++ b/ivision/src/model/StartStreamPredictResult.cc @@ -35,10 +35,13 @@ StartStreamPredictResult::~StartStreamPredictResult() void StartStreamPredictResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PredictId"].isNull()) predictId_ = value["PredictId"].asString(); diff --git a/ivision/src/model/StopStreamPredictResult.cc b/ivision/src/model/StopStreamPredictResult.cc index cb613eca2..4f566530f 100644 --- a/ivision/src/model/StopStreamPredictResult.cc +++ b/ivision/src/model/StopStreamPredictResult.cc @@ -35,10 +35,13 @@ StopStreamPredictResult::~StopStreamPredictResult() void StopStreamPredictResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PredictId"].isNull()) predictId_ = value["PredictId"].asString(); diff --git a/ivision/src/model/TrainProjectResult.cc b/ivision/src/model/TrainProjectResult.cc index 4c8019cc2..4d8cf99b8 100644 --- a/ivision/src/model/TrainProjectResult.cc +++ b/ivision/src/model/TrainProjectResult.cc @@ -35,10 +35,13 @@ TrainProjectResult::~TrainProjectResult() void TrainProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["IterationId"].isNull()) iterationId_ = value["IterationId"].asString(); diff --git a/ivision/src/model/UnregisterFaceRequest.cc b/ivision/src/model/UnregisterFaceRequest.cc new file mode 100644 index 000000000..af7c6de5f --- /dev/null +++ b/ivision/src/model/UnregisterFaceRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Ivision::Model::UnregisterFaceRequest; + +UnregisterFaceRequest::UnregisterFaceRequest() : + RpcServiceRequest("ivision", "2019-03-08", "UnregisterFace") +{} + +UnregisterFaceRequest::~UnregisterFaceRequest() +{} + +long UnregisterFaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnregisterFaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long UnregisterFaceRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UnregisterFaceRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UnregisterFaceRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UnregisterFaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UnregisterFaceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UnregisterFaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string UnregisterFaceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void UnregisterFaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string UnregisterFaceRequest::getCallerType()const +{ + return callerType_; +} + +void UnregisterFaceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UnregisterFaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnregisterFaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string UnregisterFaceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UnregisterFaceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UnregisterFaceRequest::getRegionId()const +{ + return regionId_; +} + +void UnregisterFaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UnregisterFaceRequest::getRequestContent()const +{ + return requestContent_; +} + +void UnregisterFaceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string UnregisterFaceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void UnregisterFaceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string UnregisterFaceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void UnregisterFaceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long UnregisterFaceRequest::getCallerUid()const +{ + return callerUid_; +} + +void UnregisterFaceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UnregisterFaceRequest::getShowLog()const +{ + return showLog_; +} + +void UnregisterFaceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string UnregisterFaceRequest::getApp_ip()const +{ + return app_ip_; +} + +void UnregisterFaceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string UnregisterFaceRequest::getPopProduct()const +{ + return popProduct_; +} + +void UnregisterFaceRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string UnregisterFaceRequest::getGroupId()const +{ + return groupId_; +} + +void UnregisterFaceRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string UnregisterFaceRequest::getCallerBid()const +{ + return callerBid_; +} + +void UnregisterFaceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long UnregisterFaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnregisterFaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UnregisterFaceRequest::getVersion()const +{ + return version_; +} + +void UnregisterFaceRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool UnregisterFaceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UnregisterFaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool UnregisterFaceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UnregisterFaceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UnregisterFaceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UnregisterFaceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UnregisterFaceRequest::getFaceToken()const +{ + return faceToken_; +} + +void UnregisterFaceRequest::setFaceToken(const std::string& faceToken) +{ + faceToken_ = faceToken; + setCoreParameter("FaceToken", faceToken); +} + +std::string UnregisterFaceRequest::getServiceCode()const +{ + return serviceCode_; +} + +void UnregisterFaceRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string UnregisterFaceRequest::getRequestId()const +{ + return requestId_; +} + +void UnregisterFaceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/ivision/src/model/UnregisterFaceResult.cc b/ivision/src/model/UnregisterFaceResult.cc new file mode 100644 index 000000000..0a848b8a1 --- /dev/null +++ b/ivision/src/model/UnregisterFaceResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +UnregisterFaceResult::UnregisterFaceResult() : + ServiceResult() +{} + +UnregisterFaceResult::UnregisterFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnregisterFaceResult::~UnregisterFaceResult() +{} + +void UnregisterFaceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["FaceToken"].isNull()) + faceToken_ = value["FaceToken"].asString(); + +} + +std::string UnregisterFaceResult::getFaceToken()const +{ + return faceToken_; +} + +std::string UnregisterFaceResult::getGroupId()const +{ + return groupId_; +} + diff --git a/jarvis-public/src/Jarvis-publicClient.cc b/jarvis-public/src/Jarvis-publicClient.cc index b72a6e101..fa6eadec3 100644 --- a/jarvis-public/src/Jarvis-publicClient.cc +++ b/jarvis-public/src/Jarvis-publicClient.cc @@ -31,21 +31,21 @@ Jarvis_publicClient::Jarvis_publicClient(const Credentials &credentials, const C RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "jarvis-public"); } Jarvis_publicClient::Jarvis_publicClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "jarvis-public"); } Jarvis_publicClient::Jarvis_publicClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "jarvis-public"); } Jarvis_publicClient::~Jarvis_publicClient() diff --git a/jarvis-public/src/model/DescribeAttackEventRequest.cc b/jarvis-public/src/model/DescribeAttackEventRequest.cc index 8157b39c6..bf4729d81 100644 --- a/jarvis-public/src/model/DescribeAttackEventRequest.cc +++ b/jarvis-public/src/model/DescribeAttackEventRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAttackEventRequest::getSourceIp()const void DescribeAttackEventRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeAttackEventRequest::getServerIpList()const @@ -44,7 +44,7 @@ std::string DescribeAttackEventRequest::getServerIpList()const void DescribeAttackEventRequest::setServerIpList(const std::string& serverIpList) { serverIpList_ = serverIpList; - setParameter("ServerIpList", serverIpList); + setCoreParameter("ServerIpList", serverIpList); } int DescribeAttackEventRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeAttackEventRequest::getPageSize()const void DescribeAttackEventRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeAttackEventRequest::getEndTime()const @@ -66,7 +66,7 @@ int DescribeAttackEventRequest::getEndTime()const void DescribeAttackEventRequest::setEndTime(int endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } int DescribeAttackEventRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeAttackEventRequest::getCurrentPage()const void DescribeAttackEventRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } int DescribeAttackEventRequest::getStartTime()const @@ -88,7 +88,7 @@ int DescribeAttackEventRequest::getStartTime()const void DescribeAttackEventRequest::setStartTime(int startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string DescribeAttackEventRequest::getLang()const @@ -99,7 +99,7 @@ std::string DescribeAttackEventRequest::getLang()const void DescribeAttackEventRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeAttackEventRequest::getRegion()const @@ -110,7 +110,7 @@ std::string DescribeAttackEventRequest::getRegion()const void DescribeAttackEventRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string DescribeAttackEventRequest::getProductType()const @@ -121,6 +121,6 @@ std::string DescribeAttackEventRequest::getProductType()const void DescribeAttackEventRequest::setProductType(const std::string& productType) { productType_ = productType; - setParameter("ProductType", productType); + setCoreParameter("ProductType", productType); } diff --git a/jarvis-public/src/model/DescribeAttackEventResult.cc b/jarvis-public/src/model/DescribeAttackEventResult.cc index 628afe272..97ff6ca17 100644 --- a/jarvis-public/src/model/DescribeAttackEventResult.cc +++ b/jarvis-public/src/model/DescribeAttackEventResult.cc @@ -35,10 +35,13 @@ DescribeAttackEventResult::~DescribeAttackEventResult() void DescribeAttackEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEventList = value["EventList"]["Event"]; for (auto value : allEventList) diff --git a/jarvis-public/src/model/DescribeAttackedIpRequest.cc b/jarvis-public/src/model/DescribeAttackedIpRequest.cc index ccd758985..908393468 100644 --- a/jarvis-public/src/model/DescribeAttackedIpRequest.cc +++ b/jarvis-public/src/model/DescribeAttackedIpRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAttackedIpRequest::getSourceIp()const void DescribeAttackedIpRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeAttackedIpRequest::getServerIpList()const @@ -44,7 +44,7 @@ std::string DescribeAttackedIpRequest::getServerIpList()const void DescribeAttackedIpRequest::setServerIpList(const std::string& serverIpList) { serverIpList_ = serverIpList; - setParameter("ServerIpList", serverIpList); + setCoreParameter("ServerIpList", serverIpList); } int DescribeAttackedIpRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeAttackedIpRequest::getPageSize()const void DescribeAttackedIpRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeAttackedIpRequest::getEndTime()const @@ -66,7 +66,7 @@ int DescribeAttackedIpRequest::getEndTime()const void DescribeAttackedIpRequest::setEndTime(int endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } int DescribeAttackedIpRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeAttackedIpRequest::getCurrentPage()const void DescribeAttackedIpRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } int DescribeAttackedIpRequest::getStartTime()const @@ -88,7 +88,7 @@ int DescribeAttackedIpRequest::getStartTime()const void DescribeAttackedIpRequest::setStartTime(int startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string DescribeAttackedIpRequest::getLang()const @@ -99,7 +99,7 @@ std::string DescribeAttackedIpRequest::getLang()const void DescribeAttackedIpRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeAttackedIpRequest::getRegion()const @@ -110,7 +110,7 @@ std::string DescribeAttackedIpRequest::getRegion()const void DescribeAttackedIpRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string DescribeAttackedIpRequest::getProductType()const @@ -121,6 +121,6 @@ std::string DescribeAttackedIpRequest::getProductType()const void DescribeAttackedIpRequest::setProductType(const std::string& productType) { productType_ = productType; - setParameter("ProductType", productType); + setCoreParameter("ProductType", productType); } diff --git a/jarvis-public/src/model/DescribeAttackedIpResult.cc b/jarvis-public/src/model/DescribeAttackedIpResult.cc index 3c6de94d1..47673c302 100644 --- a/jarvis-public/src/model/DescribeAttackedIpResult.cc +++ b/jarvis-public/src/model/DescribeAttackedIpResult.cc @@ -35,10 +35,13 @@ DescribeAttackedIpResult::~DescribeAttackedIpResult() void DescribeAttackedIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIpList = value["IpList"]["IpList"]; for (const auto &item : allIpList) diff --git a/jarvis-public/src/model/DescribeCountAttackEventRequest.cc b/jarvis-public/src/model/DescribeCountAttackEventRequest.cc index 996a13884..91e0faffb 100644 --- a/jarvis-public/src/model/DescribeCountAttackEventRequest.cc +++ b/jarvis-public/src/model/DescribeCountAttackEventRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCountAttackEventRequest::getSourceIp()const void DescribeCountAttackEventRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCountAttackEventRequest::getServerIpList()const @@ -44,7 +44,7 @@ std::string DescribeCountAttackEventRequest::getServerIpList()const void DescribeCountAttackEventRequest::setServerIpList(const std::string& serverIpList) { serverIpList_ = serverIpList; - setParameter("ServerIpList", serverIpList); + setCoreParameter("ServerIpList", serverIpList); } int DescribeCountAttackEventRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeCountAttackEventRequest::getPageSize()const void DescribeCountAttackEventRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeCountAttackEventRequest::getEndTime()const @@ -66,7 +66,7 @@ int DescribeCountAttackEventRequest::getEndTime()const void DescribeCountAttackEventRequest::setEndTime(int endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } int DescribeCountAttackEventRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeCountAttackEventRequest::getCurrentPage()const void DescribeCountAttackEventRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } int DescribeCountAttackEventRequest::getStartTime()const @@ -88,7 +88,7 @@ int DescribeCountAttackEventRequest::getStartTime()const void DescribeCountAttackEventRequest::setStartTime(int startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string DescribeCountAttackEventRequest::getLang()const @@ -99,7 +99,7 @@ std::string DescribeCountAttackEventRequest::getLang()const void DescribeCountAttackEventRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeCountAttackEventRequest::getRegion()const @@ -110,7 +110,7 @@ std::string DescribeCountAttackEventRequest::getRegion()const void DescribeCountAttackEventRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string DescribeCountAttackEventRequest::getProductType()const @@ -121,6 +121,6 @@ std::string DescribeCountAttackEventRequest::getProductType()const void DescribeCountAttackEventRequest::setProductType(const std::string& productType) { productType_ = productType; - setParameter("ProductType", productType); + setCoreParameter("ProductType", productType); } diff --git a/jarvis-public/src/model/DescribeCountAttackEventResult.cc b/jarvis-public/src/model/DescribeCountAttackEventResult.cc index dcff5ab65..03ff84754 100644 --- a/jarvis-public/src/model/DescribeCountAttackEventResult.cc +++ b/jarvis-public/src/model/DescribeCountAttackEventResult.cc @@ -35,10 +35,13 @@ DescribeCountAttackEventResult::~DescribeCountAttackEventResult() void DescribeCountAttackEventResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis-public/src/model/DescribePhoneInfoRequest.cc b/jarvis-public/src/model/DescribePhoneInfoRequest.cc index 875b5c30b..0d547fb22 100644 --- a/jarvis-public/src/model/DescribePhoneInfoRequest.cc +++ b/jarvis-public/src/model/DescribePhoneInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribePhoneInfoRequest::getSourceIp()const void DescribePhoneInfoRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribePhoneInfoRequest::getPhoneNum()const @@ -44,7 +44,7 @@ std::string DescribePhoneInfoRequest::getPhoneNum()const void DescribePhoneInfoRequest::setPhoneNum(const std::string& phoneNum) { phoneNum_ = phoneNum; - setParameter("PhoneNum", phoneNum); + setCoreParameter("PhoneNum", phoneNum); } std::string DescribePhoneInfoRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribePhoneInfoRequest::getLang()const void DescribePhoneInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribePhoneInfoRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DescribePhoneInfoRequest::getSourceCode()const void DescribePhoneInfoRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis-public/src/model/DescribePhoneInfoResult.cc b/jarvis-public/src/model/DescribePhoneInfoResult.cc index fbc0395e6..2cf3b8c54 100644 --- a/jarvis-public/src/model/DescribePhoneInfoResult.cc +++ b/jarvis-public/src/model/DescribePhoneInfoResult.cc @@ -35,10 +35,13 @@ DescribePhoneInfoResult::~DescribePhoneInfoResult() void DescribePhoneInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/CMakeLists.txt b/jarvis/CMakeLists.txt index f6f6a1be0..32797cc4e 100644 --- a/jarvis/CMakeLists.txt +++ b/jarvis/CMakeLists.txt @@ -27,20 +27,30 @@ set(jarvis_public_header_model include/alibabacloud/jarvis/model/CreateCpmcPunishFeedBackResult.h include/alibabacloud/jarvis/model/DescribeAccessWhiteListSlbListRequest.h include/alibabacloud/jarvis/model/DescribeAccessWhiteListSlbListResult.h - include/alibabacloud/jarvis/model/DescribePhoneInfoRequest.h - include/alibabacloud/jarvis/model/DescribePhoneInfoResult.h + include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineResult.h include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListRequest.h include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListResult.h + include/alibabacloud/jarvis/model/DescribePhoneInfoRequest.h + include/alibabacloud/jarvis/model/DescribePhoneInfoResult.h include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareRequest.h include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareResult.h include/alibabacloud/jarvis/model/CreateConsoleAccessWhiteListRequest.h include/alibabacloud/jarvis/model/CreateConsoleAccessWhiteListResult.h + include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineResult.h include/alibabacloud/jarvis/model/DescribeConsoleAccessWhiteListRequest.h include/alibabacloud/jarvis/model/DescribeConsoleAccessWhiteListResult.h + include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalRequest.h + include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalResult.h + include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineResult.h include/alibabacloud/jarvis/model/DeleteCdnIpRequest.h include/alibabacloud/jarvis/model/DeleteCdnIpResult.h include/alibabacloud/jarvis/model/CreateCdnIpRequest.h include/alibabacloud/jarvis/model/CreateCdnIpResult.h + include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineResult.h include/alibabacloud/jarvis/model/DescribeUidGcLevelRequest.h include/alibabacloud/jarvis/model/DescribeUidGcLevelResult.h include/alibabacloud/jarvis/model/DescribeResetRecordQueryCountRequest.h @@ -51,14 +61,18 @@ set(jarvis_public_header_model include/alibabacloud/jarvis/model/CreateAllEcsWhiteListResult.h include/alibabacloud/jarvis/model/DescribeRiskListDetailRequest.h include/alibabacloud/jarvis/model/DescribeRiskListDetailResult.h - include/alibabacloud/jarvis/model/DescribeEcsListPageRequest.h - include/alibabacloud/jarvis/model/DescribeEcsListPageResult.h include/alibabacloud/jarvis/model/DeleteConsoleAccessWhiteListRequest.h include/alibabacloud/jarvis/model/DeleteConsoleAccessWhiteListResult.h + include/alibabacloud/jarvis/model/DescribeEcsListPageRequest.h + include/alibabacloud/jarvis/model/DescribeEcsListPageResult.h + include/alibabacloud/jarvis/model/CreateUidWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/CreateUidWhiteBaselineResult.h include/alibabacloud/jarvis/model/DescribeSpecialEcsRequest.h include/alibabacloud/jarvis/model/DescribeSpecialEcsResult.h include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupRequest.h include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupResult.h + include/alibabacloud/jarvis/model/DeleteWhiteListConditionalRequest.h + include/alibabacloud/jarvis/model/DeleteWhiteListConditionalResult.h include/alibabacloud/jarvis/model/DescribeDdosDefenseInfoRequest.h include/alibabacloud/jarvis/model/DescribeDdosDefenseInfoResult.h include/alibabacloud/jarvis/model/DescribeCdnVendorRequest.h @@ -69,18 +83,24 @@ set(jarvis_public_header_model include/alibabacloud/jarvis/model/DescribeAccessWhiteListEipListResult.h include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareRequest.h include/alibabacloud/jarvis/model/ModifyAccessWhiteListAutoShareResult.h + include/alibabacloud/jarvis/model/CreateIpWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/CreateIpWhiteBaselineResult.h include/alibabacloud/jarvis/model/CreateUidWhiteListGroupRequest.h include/alibabacloud/jarvis/model/CreateUidWhiteListGroupResult.h include/alibabacloud/jarvis/model/DescribeCdnIpListRequest.h include/alibabacloud/jarvis/model/DescribeCdnIpListResult.h - include/alibabacloud/jarvis/model/CreateCdnSubscriptionRequest.h - include/alibabacloud/jarvis/model/CreateCdnSubscriptionResult.h include/alibabacloud/jarvis/model/DeleteCdnSubscriptionRequest.h include/alibabacloud/jarvis/model/DeleteCdnSubscriptionResult.h + include/alibabacloud/jarvis/model/CreateCdnSubscriptionRequest.h + include/alibabacloud/jarvis/model/CreateCdnSubscriptionResult.h + include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineResult.h include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupRequest.h include/alibabacloud/jarvis/model/DeleteAccessWhiteListGroupResult.h + include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineRequest.h + include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineResult.h include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupRequest.h include/alibabacloud/jarvis/model/DescribeAccessWhiteListGroupResult.h include/alibabacloud/jarvis/model/DescribePunishListRequest.h @@ -100,20 +120,30 @@ set(jarvis_src src/model/CreateCpmcPunishFeedBackResult.cc src/model/DescribeAccessWhiteListSlbListRequest.cc src/model/DescribeAccessWhiteListSlbListResult.cc - src/model/DescribePhoneInfoRequest.cc - src/model/DescribePhoneInfoResult.cc + src/model/DeleteIpWhiteBaselineRequest.cc + src/model/DeleteIpWhiteBaselineResult.cc src/model/DescribeAccessWhitelistEcsListRequest.cc src/model/DescribeAccessWhitelistEcsListResult.cc + src/model/DescribePhoneInfoRequest.cc + src/model/DescribePhoneInfoResult.cc src/model/ModifyUidWhiteListAutoShareRequest.cc src/model/ModifyUidWhiteListAutoShareResult.cc src/model/CreateConsoleAccessWhiteListRequest.cc src/model/CreateConsoleAccessWhiteListResult.cc + src/model/DescribeUidWhiteBaselineRequest.cc + src/model/DescribeUidWhiteBaselineResult.cc src/model/DescribeConsoleAccessWhiteListRequest.cc src/model/DescribeConsoleAccessWhiteListResult.cc + src/model/DeleteWhiteListDbItemConditionalRequest.cc + src/model/DeleteWhiteListDbItemConditionalResult.cc + src/model/DescribeIpWhiteBaselineRequest.cc + src/model/DescribeIpWhiteBaselineResult.cc src/model/DeleteCdnIpRequest.cc src/model/DeleteCdnIpResult.cc src/model/CreateCdnIpRequest.cc src/model/CreateCdnIpResult.cc + src/model/DeleteUidWhiteBaselineRequest.cc + src/model/DeleteUidWhiteBaselineResult.cc src/model/DescribeUidGcLevelRequest.cc src/model/DescribeUidGcLevelResult.cc src/model/DescribeResetRecordQueryCountRequest.cc @@ -124,14 +154,18 @@ set(jarvis_src src/model/CreateAllEcsWhiteListResult.cc src/model/DescribeRiskListDetailRequest.cc src/model/DescribeRiskListDetailResult.cc - src/model/DescribeEcsListPageRequest.cc - src/model/DescribeEcsListPageResult.cc src/model/DeleteConsoleAccessWhiteListRequest.cc src/model/DeleteConsoleAccessWhiteListResult.cc + src/model/DescribeEcsListPageRequest.cc + src/model/DescribeEcsListPageResult.cc + src/model/CreateUidWhiteBaselineRequest.cc + src/model/CreateUidWhiteBaselineResult.cc src/model/DescribeSpecialEcsRequest.cc src/model/DescribeSpecialEcsResult.cc src/model/CreateAccessWhiteListGroupRequest.cc src/model/CreateAccessWhiteListGroupResult.cc + src/model/DeleteWhiteListConditionalRequest.cc + src/model/DeleteWhiteListConditionalResult.cc src/model/DescribeDdosDefenseInfoRequest.cc src/model/DescribeDdosDefenseInfoResult.cc src/model/DescribeCdnVendorRequest.cc @@ -142,18 +176,24 @@ set(jarvis_src src/model/DescribeAccessWhiteListEipListResult.cc src/model/ModifyAccessWhiteListAutoShareRequest.cc src/model/ModifyAccessWhiteListAutoShareResult.cc + src/model/CreateIpWhiteBaselineRequest.cc + src/model/CreateIpWhiteBaselineResult.cc src/model/CreateUidWhiteListGroupRequest.cc src/model/CreateUidWhiteListGroupResult.cc src/model/DescribeCdnIpListRequest.cc src/model/DescribeCdnIpListResult.cc - src/model/CreateCdnSubscriptionRequest.cc - src/model/CreateCdnSubscriptionResult.cc src/model/DeleteCdnSubscriptionRequest.cc src/model/DeleteCdnSubscriptionResult.cc + src/model/CreateCdnSubscriptionRequest.cc + src/model/CreateCdnSubscriptionResult.cc + src/model/ModifyIpWhiteBaselineRequest.cc + src/model/ModifyIpWhiteBaselineResult.cc src/model/DescribeCpmcPunishListRequest.cc src/model/DescribeCpmcPunishListResult.cc src/model/DeleteAccessWhiteListGroupRequest.cc src/model/DeleteAccessWhiteListGroupResult.cc + src/model/ModifyUidWhiteBaselineRequest.cc + src/model/ModifyUidWhiteBaselineResult.cc src/model/DescribeAccessWhiteListGroupRequest.cc src/model/DescribeAccessWhiteListGroupResult.cc src/model/DescribePunishListRequest.cc diff --git a/jarvis/include/alibabacloud/jarvis/JarvisClient.h b/jarvis/include/alibabacloud/jarvis/JarvisClient.h index fb22bf498..fcf3b2290 100644 --- a/jarvis/include/alibabacloud/jarvis/JarvisClient.h +++ b/jarvis/include/alibabacloud/jarvis/JarvisClient.h @@ -28,20 +28,30 @@ #include "model/CreateCpmcPunishFeedBackResult.h" #include "model/DescribeAccessWhiteListSlbListRequest.h" #include "model/DescribeAccessWhiteListSlbListResult.h" -#include "model/DescribePhoneInfoRequest.h" -#include "model/DescribePhoneInfoResult.h" +#include "model/DeleteIpWhiteBaselineRequest.h" +#include "model/DeleteIpWhiteBaselineResult.h" #include "model/DescribeAccessWhitelistEcsListRequest.h" #include "model/DescribeAccessWhitelistEcsListResult.h" +#include "model/DescribePhoneInfoRequest.h" +#include "model/DescribePhoneInfoResult.h" #include "model/ModifyUidWhiteListAutoShareRequest.h" #include "model/ModifyUidWhiteListAutoShareResult.h" #include "model/CreateConsoleAccessWhiteListRequest.h" #include "model/CreateConsoleAccessWhiteListResult.h" +#include "model/DescribeUidWhiteBaselineRequest.h" +#include "model/DescribeUidWhiteBaselineResult.h" #include "model/DescribeConsoleAccessWhiteListRequest.h" #include "model/DescribeConsoleAccessWhiteListResult.h" +#include "model/DeleteWhiteListDbItemConditionalRequest.h" +#include "model/DeleteWhiteListDbItemConditionalResult.h" +#include "model/DescribeIpWhiteBaselineRequest.h" +#include "model/DescribeIpWhiteBaselineResult.h" #include "model/DeleteCdnIpRequest.h" #include "model/DeleteCdnIpResult.h" #include "model/CreateCdnIpRequest.h" #include "model/CreateCdnIpResult.h" +#include "model/DeleteUidWhiteBaselineRequest.h" +#include "model/DeleteUidWhiteBaselineResult.h" #include "model/DescribeUidGcLevelRequest.h" #include "model/DescribeUidGcLevelResult.h" #include "model/DescribeResetRecordQueryCountRequest.h" @@ -52,14 +62,18 @@ #include "model/CreateAllEcsWhiteListResult.h" #include "model/DescribeRiskListDetailRequest.h" #include "model/DescribeRiskListDetailResult.h" -#include "model/DescribeEcsListPageRequest.h" -#include "model/DescribeEcsListPageResult.h" #include "model/DeleteConsoleAccessWhiteListRequest.h" #include "model/DeleteConsoleAccessWhiteListResult.h" +#include "model/DescribeEcsListPageRequest.h" +#include "model/DescribeEcsListPageResult.h" +#include "model/CreateUidWhiteBaselineRequest.h" +#include "model/CreateUidWhiteBaselineResult.h" #include "model/DescribeSpecialEcsRequest.h" #include "model/DescribeSpecialEcsResult.h" #include "model/CreateAccessWhiteListGroupRequest.h" #include "model/CreateAccessWhiteListGroupResult.h" +#include "model/DeleteWhiteListConditionalRequest.h" +#include "model/DeleteWhiteListConditionalResult.h" #include "model/DescribeDdosDefenseInfoRequest.h" #include "model/DescribeDdosDefenseInfoResult.h" #include "model/DescribeCdnVendorRequest.h" @@ -70,18 +84,24 @@ #include "model/DescribeAccessWhiteListEipListResult.h" #include "model/ModifyAccessWhiteListAutoShareRequest.h" #include "model/ModifyAccessWhiteListAutoShareResult.h" +#include "model/CreateIpWhiteBaselineRequest.h" +#include "model/CreateIpWhiteBaselineResult.h" #include "model/CreateUidWhiteListGroupRequest.h" #include "model/CreateUidWhiteListGroupResult.h" #include "model/DescribeCdnIpListRequest.h" #include "model/DescribeCdnIpListResult.h" -#include "model/CreateCdnSubscriptionRequest.h" -#include "model/CreateCdnSubscriptionResult.h" #include "model/DeleteCdnSubscriptionRequest.h" #include "model/DeleteCdnSubscriptionResult.h" +#include "model/CreateCdnSubscriptionRequest.h" +#include "model/CreateCdnSubscriptionResult.h" +#include "model/ModifyIpWhiteBaselineRequest.h" +#include "model/ModifyIpWhiteBaselineResult.h" #include "model/DescribeCpmcPunishListRequest.h" #include "model/DescribeCpmcPunishListResult.h" #include "model/DeleteAccessWhiteListGroupRequest.h" #include "model/DeleteAccessWhiteListGroupResult.h" +#include "model/ModifyUidWhiteBaselineRequest.h" +#include "model/ModifyUidWhiteBaselineResult.h" #include "model/DescribeAccessWhiteListGroupRequest.h" #include "model/DescribeAccessWhiteListGroupResult.h" #include "model/DescribePunishListRequest.h" @@ -110,27 +130,42 @@ namespace AlibabaCloud typedef Outcome DescribeAccessWhiteListSlbListOutcome; typedef std::future DescribeAccessWhiteListSlbListOutcomeCallable; typedef std::function&)> DescribeAccessWhiteListSlbListAsyncHandler; - typedef Outcome DescribePhoneInfoOutcome; - typedef std::future DescribePhoneInfoOutcomeCallable; - typedef std::function&)> DescribePhoneInfoAsyncHandler; + typedef Outcome DeleteIpWhiteBaselineOutcome; + typedef std::future DeleteIpWhiteBaselineOutcomeCallable; + typedef std::function&)> DeleteIpWhiteBaselineAsyncHandler; typedef Outcome DescribeAccessWhitelistEcsListOutcome; typedef std::future DescribeAccessWhitelistEcsListOutcomeCallable; typedef std::function&)> DescribeAccessWhitelistEcsListAsyncHandler; + typedef Outcome DescribePhoneInfoOutcome; + typedef std::future DescribePhoneInfoOutcomeCallable; + typedef std::function&)> DescribePhoneInfoAsyncHandler; typedef Outcome ModifyUidWhiteListAutoShareOutcome; typedef std::future ModifyUidWhiteListAutoShareOutcomeCallable; typedef std::function&)> ModifyUidWhiteListAutoShareAsyncHandler; typedef Outcome CreateConsoleAccessWhiteListOutcome; typedef std::future CreateConsoleAccessWhiteListOutcomeCallable; typedef std::function&)> CreateConsoleAccessWhiteListAsyncHandler; + typedef Outcome DescribeUidWhiteBaselineOutcome; + typedef std::future DescribeUidWhiteBaselineOutcomeCallable; + typedef std::function&)> DescribeUidWhiteBaselineAsyncHandler; typedef Outcome DescribeConsoleAccessWhiteListOutcome; typedef std::future DescribeConsoleAccessWhiteListOutcomeCallable; typedef std::function&)> DescribeConsoleAccessWhiteListAsyncHandler; + typedef Outcome DeleteWhiteListDbItemConditionalOutcome; + typedef std::future DeleteWhiteListDbItemConditionalOutcomeCallable; + typedef std::function&)> DeleteWhiteListDbItemConditionalAsyncHandler; + typedef Outcome DescribeIpWhiteBaselineOutcome; + typedef std::future DescribeIpWhiteBaselineOutcomeCallable; + typedef std::function&)> DescribeIpWhiteBaselineAsyncHandler; typedef Outcome DeleteCdnIpOutcome; typedef std::future DeleteCdnIpOutcomeCallable; typedef std::function&)> DeleteCdnIpAsyncHandler; typedef Outcome CreateCdnIpOutcome; typedef std::future CreateCdnIpOutcomeCallable; typedef std::function&)> CreateCdnIpAsyncHandler; + typedef Outcome DeleteUidWhiteBaselineOutcome; + typedef std::future DeleteUidWhiteBaselineOutcomeCallable; + typedef std::function&)> DeleteUidWhiteBaselineAsyncHandler; typedef Outcome DescribeUidGcLevelOutcome; typedef std::future DescribeUidGcLevelOutcomeCallable; typedef std::function&)> DescribeUidGcLevelAsyncHandler; @@ -146,18 +181,24 @@ namespace AlibabaCloud typedef Outcome DescribeRiskListDetailOutcome; typedef std::future DescribeRiskListDetailOutcomeCallable; typedef std::function&)> DescribeRiskListDetailAsyncHandler; - typedef Outcome DescribeEcsListPageOutcome; - typedef std::future DescribeEcsListPageOutcomeCallable; - typedef std::function&)> DescribeEcsListPageAsyncHandler; typedef Outcome DeleteConsoleAccessWhiteListOutcome; typedef std::future DeleteConsoleAccessWhiteListOutcomeCallable; typedef std::function&)> DeleteConsoleAccessWhiteListAsyncHandler; + typedef Outcome DescribeEcsListPageOutcome; + typedef std::future DescribeEcsListPageOutcomeCallable; + typedef std::function&)> DescribeEcsListPageAsyncHandler; + typedef Outcome CreateUidWhiteBaselineOutcome; + typedef std::future CreateUidWhiteBaselineOutcomeCallable; + typedef std::function&)> CreateUidWhiteBaselineAsyncHandler; typedef Outcome DescribeSpecialEcsOutcome; typedef std::future DescribeSpecialEcsOutcomeCallable; typedef std::function&)> DescribeSpecialEcsAsyncHandler; typedef Outcome CreateAccessWhiteListGroupOutcome; typedef std::future CreateAccessWhiteListGroupOutcomeCallable; typedef std::function&)> CreateAccessWhiteListGroupAsyncHandler; + typedef Outcome DeleteWhiteListConditionalOutcome; + typedef std::future DeleteWhiteListConditionalOutcomeCallable; + typedef std::function&)> DeleteWhiteListConditionalAsyncHandler; typedef Outcome DescribeDdosDefenseInfoOutcome; typedef std::future DescribeDdosDefenseInfoOutcomeCallable; typedef std::function&)> DescribeDdosDefenseInfoAsyncHandler; @@ -173,24 +214,33 @@ namespace AlibabaCloud typedef Outcome ModifyAccessWhiteListAutoShareOutcome; typedef std::future ModifyAccessWhiteListAutoShareOutcomeCallable; typedef std::function&)> ModifyAccessWhiteListAutoShareAsyncHandler; + typedef Outcome CreateIpWhiteBaselineOutcome; + typedef std::future CreateIpWhiteBaselineOutcomeCallable; + typedef std::function&)> CreateIpWhiteBaselineAsyncHandler; typedef Outcome CreateUidWhiteListGroupOutcome; typedef std::future CreateUidWhiteListGroupOutcomeCallable; typedef std::function&)> CreateUidWhiteListGroupAsyncHandler; typedef Outcome DescribeCdnIpListOutcome; typedef std::future DescribeCdnIpListOutcomeCallable; typedef std::function&)> DescribeCdnIpListAsyncHandler; - typedef Outcome CreateCdnSubscriptionOutcome; - typedef std::future CreateCdnSubscriptionOutcomeCallable; - typedef std::function&)> CreateCdnSubscriptionAsyncHandler; typedef Outcome DeleteCdnSubscriptionOutcome; typedef std::future DeleteCdnSubscriptionOutcomeCallable; typedef std::function&)> DeleteCdnSubscriptionAsyncHandler; + typedef Outcome CreateCdnSubscriptionOutcome; + typedef std::future CreateCdnSubscriptionOutcomeCallable; + typedef std::function&)> CreateCdnSubscriptionAsyncHandler; + typedef Outcome ModifyIpWhiteBaselineOutcome; + typedef std::future ModifyIpWhiteBaselineOutcomeCallable; + typedef std::function&)> ModifyIpWhiteBaselineAsyncHandler; typedef Outcome DescribeCpmcPunishListOutcome; typedef std::future DescribeCpmcPunishListOutcomeCallable; typedef std::function&)> DescribeCpmcPunishListAsyncHandler; typedef Outcome DeleteAccessWhiteListGroupOutcome; typedef std::future DeleteAccessWhiteListGroupOutcomeCallable; typedef std::function&)> DeleteAccessWhiteListGroupAsyncHandler; + typedef Outcome ModifyUidWhiteBaselineOutcome; + typedef std::future ModifyUidWhiteBaselineOutcomeCallable; + typedef std::function&)> ModifyUidWhiteBaselineAsyncHandler; typedef Outcome DescribeAccessWhiteListGroupOutcome; typedef std::future DescribeAccessWhiteListGroupOutcomeCallable; typedef std::function&)> DescribeAccessWhiteListGroupAsyncHandler; @@ -220,27 +270,42 @@ namespace AlibabaCloud DescribeAccessWhiteListSlbListOutcome describeAccessWhiteListSlbList(const Model::DescribeAccessWhiteListSlbListRequest &request)const; void describeAccessWhiteListSlbListAsync(const Model::DescribeAccessWhiteListSlbListRequest& request, const DescribeAccessWhiteListSlbListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccessWhiteListSlbListOutcomeCallable describeAccessWhiteListSlbListCallable(const Model::DescribeAccessWhiteListSlbListRequest& request) const; - DescribePhoneInfoOutcome describePhoneInfo(const Model::DescribePhoneInfoRequest &request)const; - void describePhoneInfoAsync(const Model::DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePhoneInfoOutcomeCallable describePhoneInfoCallable(const Model::DescribePhoneInfoRequest& request) const; + DeleteIpWhiteBaselineOutcome deleteIpWhiteBaseline(const Model::DeleteIpWhiteBaselineRequest &request)const; + void deleteIpWhiteBaselineAsync(const Model::DeleteIpWhiteBaselineRequest& request, const DeleteIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIpWhiteBaselineOutcomeCallable deleteIpWhiteBaselineCallable(const Model::DeleteIpWhiteBaselineRequest& request) const; DescribeAccessWhitelistEcsListOutcome describeAccessWhitelistEcsList(const Model::DescribeAccessWhitelistEcsListRequest &request)const; void describeAccessWhitelistEcsListAsync(const Model::DescribeAccessWhitelistEcsListRequest& request, const DescribeAccessWhitelistEcsListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccessWhitelistEcsListOutcomeCallable describeAccessWhitelistEcsListCallable(const Model::DescribeAccessWhitelistEcsListRequest& request) const; + DescribePhoneInfoOutcome describePhoneInfo(const Model::DescribePhoneInfoRequest &request)const; + void describePhoneInfoAsync(const Model::DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneInfoOutcomeCallable describePhoneInfoCallable(const Model::DescribePhoneInfoRequest& request) const; ModifyUidWhiteListAutoShareOutcome modifyUidWhiteListAutoShare(const Model::ModifyUidWhiteListAutoShareRequest &request)const; void modifyUidWhiteListAutoShareAsync(const Model::ModifyUidWhiteListAutoShareRequest& request, const ModifyUidWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyUidWhiteListAutoShareOutcomeCallable modifyUidWhiteListAutoShareCallable(const Model::ModifyUidWhiteListAutoShareRequest& request) const; CreateConsoleAccessWhiteListOutcome createConsoleAccessWhiteList(const Model::CreateConsoleAccessWhiteListRequest &request)const; void createConsoleAccessWhiteListAsync(const Model::CreateConsoleAccessWhiteListRequest& request, const CreateConsoleAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateConsoleAccessWhiteListOutcomeCallable createConsoleAccessWhiteListCallable(const Model::CreateConsoleAccessWhiteListRequest& request) const; + DescribeUidWhiteBaselineOutcome describeUidWhiteBaseline(const Model::DescribeUidWhiteBaselineRequest &request)const; + void describeUidWhiteBaselineAsync(const Model::DescribeUidWhiteBaselineRequest& request, const DescribeUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUidWhiteBaselineOutcomeCallable describeUidWhiteBaselineCallable(const Model::DescribeUidWhiteBaselineRequest& request) const; DescribeConsoleAccessWhiteListOutcome describeConsoleAccessWhiteList(const Model::DescribeConsoleAccessWhiteListRequest &request)const; void describeConsoleAccessWhiteListAsync(const Model::DescribeConsoleAccessWhiteListRequest& request, const DescribeConsoleAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeConsoleAccessWhiteListOutcomeCallable describeConsoleAccessWhiteListCallable(const Model::DescribeConsoleAccessWhiteListRequest& request) const; + DeleteWhiteListDbItemConditionalOutcome deleteWhiteListDbItemConditional(const Model::DeleteWhiteListDbItemConditionalRequest &request)const; + void deleteWhiteListDbItemConditionalAsync(const Model::DeleteWhiteListDbItemConditionalRequest& request, const DeleteWhiteListDbItemConditionalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteWhiteListDbItemConditionalOutcomeCallable deleteWhiteListDbItemConditionalCallable(const Model::DeleteWhiteListDbItemConditionalRequest& request) const; + DescribeIpWhiteBaselineOutcome describeIpWhiteBaseline(const Model::DescribeIpWhiteBaselineRequest &request)const; + void describeIpWhiteBaselineAsync(const Model::DescribeIpWhiteBaselineRequest& request, const DescribeIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpWhiteBaselineOutcomeCallable describeIpWhiteBaselineCallable(const Model::DescribeIpWhiteBaselineRequest& request) const; DeleteCdnIpOutcome deleteCdnIp(const Model::DeleteCdnIpRequest &request)const; void deleteCdnIpAsync(const Model::DeleteCdnIpRequest& request, const DeleteCdnIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCdnIpOutcomeCallable deleteCdnIpCallable(const Model::DeleteCdnIpRequest& request) const; CreateCdnIpOutcome createCdnIp(const Model::CreateCdnIpRequest &request)const; void createCdnIpAsync(const Model::CreateCdnIpRequest& request, const CreateCdnIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCdnIpOutcomeCallable createCdnIpCallable(const Model::CreateCdnIpRequest& request) const; + DeleteUidWhiteBaselineOutcome deleteUidWhiteBaseline(const Model::DeleteUidWhiteBaselineRequest &request)const; + void deleteUidWhiteBaselineAsync(const Model::DeleteUidWhiteBaselineRequest& request, const DeleteUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUidWhiteBaselineOutcomeCallable deleteUidWhiteBaselineCallable(const Model::DeleteUidWhiteBaselineRequest& request) const; DescribeUidGcLevelOutcome describeUidGcLevel(const Model::DescribeUidGcLevelRequest &request)const; void describeUidGcLevelAsync(const Model::DescribeUidGcLevelRequest& request, const DescribeUidGcLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUidGcLevelOutcomeCallable describeUidGcLevelCallable(const Model::DescribeUidGcLevelRequest& request) const; @@ -256,18 +321,24 @@ namespace AlibabaCloud DescribeRiskListDetailOutcome describeRiskListDetail(const Model::DescribeRiskListDetailRequest &request)const; void describeRiskListDetailAsync(const Model::DescribeRiskListDetailRequest& request, const DescribeRiskListDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRiskListDetailOutcomeCallable describeRiskListDetailCallable(const Model::DescribeRiskListDetailRequest& request) const; - DescribeEcsListPageOutcome describeEcsListPage(const Model::DescribeEcsListPageRequest &request)const; - void describeEcsListPageAsync(const Model::DescribeEcsListPageRequest& request, const DescribeEcsListPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeEcsListPageOutcomeCallable describeEcsListPageCallable(const Model::DescribeEcsListPageRequest& request) const; DeleteConsoleAccessWhiteListOutcome deleteConsoleAccessWhiteList(const Model::DeleteConsoleAccessWhiteListRequest &request)const; void deleteConsoleAccessWhiteListAsync(const Model::DeleteConsoleAccessWhiteListRequest& request, const DeleteConsoleAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConsoleAccessWhiteListOutcomeCallable deleteConsoleAccessWhiteListCallable(const Model::DeleteConsoleAccessWhiteListRequest& request) const; + DescribeEcsListPageOutcome describeEcsListPage(const Model::DescribeEcsListPageRequest &request)const; + void describeEcsListPageAsync(const Model::DescribeEcsListPageRequest& request, const DescribeEcsListPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEcsListPageOutcomeCallable describeEcsListPageCallable(const Model::DescribeEcsListPageRequest& request) const; + CreateUidWhiteBaselineOutcome createUidWhiteBaseline(const Model::CreateUidWhiteBaselineRequest &request)const; + void createUidWhiteBaselineAsync(const Model::CreateUidWhiteBaselineRequest& request, const CreateUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUidWhiteBaselineOutcomeCallable createUidWhiteBaselineCallable(const Model::CreateUidWhiteBaselineRequest& request) const; DescribeSpecialEcsOutcome describeSpecialEcs(const Model::DescribeSpecialEcsRequest &request)const; void describeSpecialEcsAsync(const Model::DescribeSpecialEcsRequest& request, const DescribeSpecialEcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSpecialEcsOutcomeCallable describeSpecialEcsCallable(const Model::DescribeSpecialEcsRequest& request) const; CreateAccessWhiteListGroupOutcome createAccessWhiteListGroup(const Model::CreateAccessWhiteListGroupRequest &request)const; void createAccessWhiteListGroupAsync(const Model::CreateAccessWhiteListGroupRequest& request, const CreateAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAccessWhiteListGroupOutcomeCallable createAccessWhiteListGroupCallable(const Model::CreateAccessWhiteListGroupRequest& request) const; + DeleteWhiteListConditionalOutcome deleteWhiteListConditional(const Model::DeleteWhiteListConditionalRequest &request)const; + void deleteWhiteListConditionalAsync(const Model::DeleteWhiteListConditionalRequest& request, const DeleteWhiteListConditionalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteWhiteListConditionalOutcomeCallable deleteWhiteListConditionalCallable(const Model::DeleteWhiteListConditionalRequest& request) const; DescribeDdosDefenseInfoOutcome describeDdosDefenseInfo(const Model::DescribeDdosDefenseInfoRequest &request)const; void describeDdosDefenseInfoAsync(const Model::DescribeDdosDefenseInfoRequest& request, const DescribeDdosDefenseInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDdosDefenseInfoOutcomeCallable describeDdosDefenseInfoCallable(const Model::DescribeDdosDefenseInfoRequest& request) const; @@ -283,24 +354,33 @@ namespace AlibabaCloud ModifyAccessWhiteListAutoShareOutcome modifyAccessWhiteListAutoShare(const Model::ModifyAccessWhiteListAutoShareRequest &request)const; void modifyAccessWhiteListAutoShareAsync(const Model::ModifyAccessWhiteListAutoShareRequest& request, const ModifyAccessWhiteListAutoShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccessWhiteListAutoShareOutcomeCallable modifyAccessWhiteListAutoShareCallable(const Model::ModifyAccessWhiteListAutoShareRequest& request) const; + CreateIpWhiteBaselineOutcome createIpWhiteBaseline(const Model::CreateIpWhiteBaselineRequest &request)const; + void createIpWhiteBaselineAsync(const Model::CreateIpWhiteBaselineRequest& request, const CreateIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIpWhiteBaselineOutcomeCallable createIpWhiteBaselineCallable(const Model::CreateIpWhiteBaselineRequest& request) const; CreateUidWhiteListGroupOutcome createUidWhiteListGroup(const Model::CreateUidWhiteListGroupRequest &request)const; void createUidWhiteListGroupAsync(const Model::CreateUidWhiteListGroupRequest& request, const CreateUidWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUidWhiteListGroupOutcomeCallable createUidWhiteListGroupCallable(const Model::CreateUidWhiteListGroupRequest& request) const; DescribeCdnIpListOutcome describeCdnIpList(const Model::DescribeCdnIpListRequest &request)const; void describeCdnIpListAsync(const Model::DescribeCdnIpListRequest& request, const DescribeCdnIpListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCdnIpListOutcomeCallable describeCdnIpListCallable(const Model::DescribeCdnIpListRequest& request) const; - CreateCdnSubscriptionOutcome createCdnSubscription(const Model::CreateCdnSubscriptionRequest &request)const; - void createCdnSubscriptionAsync(const Model::CreateCdnSubscriptionRequest& request, const CreateCdnSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCdnSubscriptionOutcomeCallable createCdnSubscriptionCallable(const Model::CreateCdnSubscriptionRequest& request) const; DeleteCdnSubscriptionOutcome deleteCdnSubscription(const Model::DeleteCdnSubscriptionRequest &request)const; void deleteCdnSubscriptionAsync(const Model::DeleteCdnSubscriptionRequest& request, const DeleteCdnSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCdnSubscriptionOutcomeCallable deleteCdnSubscriptionCallable(const Model::DeleteCdnSubscriptionRequest& request) const; + CreateCdnSubscriptionOutcome createCdnSubscription(const Model::CreateCdnSubscriptionRequest &request)const; + void createCdnSubscriptionAsync(const Model::CreateCdnSubscriptionRequest& request, const CreateCdnSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCdnSubscriptionOutcomeCallable createCdnSubscriptionCallable(const Model::CreateCdnSubscriptionRequest& request) const; + ModifyIpWhiteBaselineOutcome modifyIpWhiteBaseline(const Model::ModifyIpWhiteBaselineRequest &request)const; + void modifyIpWhiteBaselineAsync(const Model::ModifyIpWhiteBaselineRequest& request, const ModifyIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIpWhiteBaselineOutcomeCallable modifyIpWhiteBaselineCallable(const Model::ModifyIpWhiteBaselineRequest& request) const; DescribeCpmcPunishListOutcome describeCpmcPunishList(const Model::DescribeCpmcPunishListRequest &request)const; void describeCpmcPunishListAsync(const Model::DescribeCpmcPunishListRequest& request, const DescribeCpmcPunishListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCpmcPunishListOutcomeCallable describeCpmcPunishListCallable(const Model::DescribeCpmcPunishListRequest& request) const; DeleteAccessWhiteListGroupOutcome deleteAccessWhiteListGroup(const Model::DeleteAccessWhiteListGroupRequest &request)const; void deleteAccessWhiteListGroupAsync(const Model::DeleteAccessWhiteListGroupRequest& request, const DeleteAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAccessWhiteListGroupOutcomeCallable deleteAccessWhiteListGroupCallable(const Model::DeleteAccessWhiteListGroupRequest& request) const; + ModifyUidWhiteBaselineOutcome modifyUidWhiteBaseline(const Model::ModifyUidWhiteBaselineRequest &request)const; + void modifyUidWhiteBaselineAsync(const Model::ModifyUidWhiteBaselineRequest& request, const ModifyUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUidWhiteBaselineOutcomeCallable modifyUidWhiteBaselineCallable(const Model::ModifyUidWhiteBaselineRequest& request) const; DescribeAccessWhiteListGroupOutcome describeAccessWhiteListGroup(const Model::DescribeAccessWhiteListGroupRequest &request)const; void describeAccessWhiteListGroupAsync(const Model::DescribeAccessWhiteListGroupRequest& request, const DescribeAccessWhiteListGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccessWhiteListGroupOutcomeCallable describeAccessWhiteListGroupCallable(const Model::DescribeAccessWhiteListGroupRequest& request) const; diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineRequest.h new file mode 100644 index 000000000..c07f3e68f --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineRequest.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_JARVIS_MODEL_CREATEIPWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEIPWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateIpWhiteBaselineRequest : public RpcServiceRequest + { + + public: + CreateIpWhiteBaselineRequest(); + ~CreateIpWhiteBaselineRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSrcIp()const; + void setSrcIp(const std::string& srcIp); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + long resourceOwnerId_; + std::string srcIp_; + std::string sourceIp_; + std::string remark_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEIPWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineResult.h new file mode 100644 index 000000000..ff7c9015f --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateIpWhiteBaselineResult.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_JARVIS_MODEL_CREATEIPWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEIPWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateIpWhiteBaselineResult : public ServiceResult + { + public: + + + CreateIpWhiteBaselineResult(); + explicit CreateIpWhiteBaselineResult(const std::string &payload); + ~CreateIpWhiteBaselineResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEIPWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineRequest.h new file mode 100644 index 000000000..54f576470 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineRequest.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_JARVIS_MODEL_CREATEUIDWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateUidWhiteBaselineRequest : public RpcServiceRequest + { + + public: + CreateUidWhiteBaselineRequest(); + ~CreateUidWhiteBaselineRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getLang()const; + void setLang(const std::string& lang); + long getSrcUid()const; + void setSrcUid(long srcUid); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string remark_; + std::string lang_; + long srcUid_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineResult.h new file mode 100644 index 000000000..97e728578 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/CreateUidWhiteBaselineResult.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_JARVIS_MODEL_CREATEUIDWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT CreateUidWhiteBaselineResult : public ServiceResult + { + public: + + + CreateUidWhiteBaselineResult(); + explicit CreateUidWhiteBaselineResult(const std::string &payload); + ~CreateUidWhiteBaselineResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_CREATEUIDWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineRequest.h new file mode 100644 index 000000000..308e83589 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineRequest.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_JARVIS_MODEL_DELETEIPWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEIPWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteIpWhiteBaselineRequest : public RpcServiceRequest + { + + public: + DeleteIpWhiteBaselineRequest(); + ~DeleteIpWhiteBaselineRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getWblIpList()const; + void setWblIpList(const std::string& wblIpList); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string wblIpList_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEIPWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineResult.h new file mode 100644 index 000000000..b4f02b923 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteIpWhiteBaselineResult.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_JARVIS_MODEL_DELETEIPWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEIPWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteIpWhiteBaselineResult : public ServiceResult + { + public: + + + DeleteIpWhiteBaselineResult(); + explicit DeleteIpWhiteBaselineResult(const std::string &payload); + ~DeleteIpWhiteBaselineResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEIPWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineRequest.h new file mode 100644 index 000000000..93b8c4df8 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineRequest.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_JARVIS_MODEL_DELETEUIDWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteUidWhiteBaselineRequest : public RpcServiceRequest + { + + public: + DeleteUidWhiteBaselineRequest(); + ~DeleteUidWhiteBaselineRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getWblUidList()const; + void setWblUidList(const std::string& wblUidList); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + long resourceOwnerId_; + std::string wblUidList_; + std::string sourceIp_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineResult.h new file mode 100644 index 000000000..88720255a --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteUidWhiteBaselineResult.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_JARVIS_MODEL_DELETEUIDWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteUidWhiteBaselineResult : public ServiceResult + { + public: + + + DeleteUidWhiteBaselineResult(); + explicit DeleteUidWhiteBaselineResult(const std::string &payload); + ~DeleteUidWhiteBaselineResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEUIDWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalRequest.h b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalRequest.h new file mode 100644 index 000000000..8be0b4450 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalRequest.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_JARVIS_MODEL_DELETEWHITELISTCONDITIONALREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTCONDITIONALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteWhiteListConditionalRequest : public RpcServiceRequest + { + + public: + DeleteWhiteListConditionalRequest(); + ~DeleteWhiteListConditionalRequest(); + + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getQueryProduct()const; + void setQueryProduct(const std::string& queryProduct); + std::string getDstIP()const; + void setDstIP(const std::string& dstIP); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string srcIP_; + std::string sourceIp_; + std::string queryProduct_; + std::string dstIP_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTCONDITIONALREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalResult.h b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalResult.h new file mode 100644 index 000000000..320f72ae8 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListConditionalResult.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_JARVIS_MODEL_DELETEWHITELISTCONDITIONALRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTCONDITIONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteWhiteListConditionalResult : public ServiceResult + { + public: + + + DeleteWhiteListConditionalResult(); + explicit DeleteWhiteListConditionalResult(const std::string &payload); + ~DeleteWhiteListConditionalResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTCONDITIONALRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalRequest.h b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalRequest.h new file mode 100644 index 000000000..e5bbcf821 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalRequest.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_JARVIS_MODEL_DELETEWHITELISTDBITEMCONDITIONALREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTDBITEMCONDITIONALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteWhiteListDbItemConditionalRequest : public RpcServiceRequest + { + + public: + DeleteWhiteListDbItemConditionalRequest(); + ~DeleteWhiteListDbItemConditionalRequest(); + + std::string getSrcIP()const; + void setSrcIP(const std::string& srcIP); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getQueryProduct()const; + void setQueryProduct(const std::string& queryProduct); + std::string getDstIP()const; + void setDstIP(const std::string& dstIP); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + std::string srcIP_; + std::string sourceIp_; + std::string queryProduct_; + std::string dstIP_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTDBITEMCONDITIONALREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalResult.h b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalResult.h new file mode 100644 index 000000000..2f235a729 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DeleteWhiteListDbItemConditionalResult.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_JARVIS_MODEL_DELETEWHITELISTDBITEMCONDITIONALRESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTDBITEMCONDITIONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DeleteWhiteListDbItemConditionalResult : public ServiceResult + { + public: + + + DeleteWhiteListDbItemConditionalResult(); + explicit DeleteWhiteListDbItemConditionalResult(const std::string &payload); + ~DeleteWhiteListDbItemConditionalResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DELETEWHITELISTDBITEMCONDITIONALRESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h index 3b2e315ed..e082a0b47 100644 --- a/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); int getPageSize()const; void setPageSize(int pageSize); + std::string getPunishType()const; + void setPunishType(const std::string& punishType); int getCurrentPage()const; void setCurrentPage(int currentPage); std::string getPunishStatus()const; @@ -54,6 +56,7 @@ namespace AlibabaCloud std::string srcIP_; std::string sourceIp_; int pageSize_; + std::string punishType_; int currentPage_; std::string punishStatus_; std::string lang_; diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h index 803a0e473..ee1f5924a 100644 --- a/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeCpmcPunishListResult.h @@ -40,18 +40,19 @@ namespace AlibabaCloud }; struct Data { - std::string gmtCreate; int srcPort; + std::string description; int feedBack; - std::string gmtExpire; std::string punishType; + int dstPort; + std::string srcIP; + std::string reason; + std::string gmtCreate; + std::string gmtExpire; std::string dstIP; std::string punishResult; std::string regionId; - int dstPort; std::string protocol; - std::string srcIP; - std::string reason; }; diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineRequest.h new file mode 100644 index 000000000..c2798e92f --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineRequest.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_JARVIS_MODEL_DESCRIBEIPWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEIPWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeIpWhiteBaselineRequest : public RpcServiceRequest + { + + public: + DescribeIpWhiteBaselineRequest(); + ~DescribeIpWhiteBaselineRequest(); + + std::string getSrcIp()const; + void setSrcIp(const std::string& srcIp); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string srcIp_; + std::string sourceIp_; + int pageSize_; + int currentPage_; + std::string remark_; + std::string lang_; + std::string sourceCode_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEIPWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineResult.h new file mode 100644 index 000000000..ebc0c4bfc --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeIpWhiteBaselineResult.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_JARVIS_MODEL_DESCRIBEIPWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEIPWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeIpWhiteBaselineResult : public ServiceResult + { + public: + struct PageInfo + { + int pageSize; + int currentPage; + int total; + }; + struct Data + { + std::string status; + int beginTime; + int realEndTime; + int id; + int ownerAliUid; + int srcIp; + std::string remark; + }; + + + DescribeIpWhiteBaselineResult(); + explicit DescribeIpWhiteBaselineResult(const std::string &payload); + ~DescribeIpWhiteBaselineResult(); + std::vector getDataList()const; + PageInfo getPageInfo()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dataList_; + PageInfo pageInfo_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEIPWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineRequest.h new file mode 100644 index 000000000..10d1660af --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineRequest.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_JARVIS_MODEL_DESCRIBEUIDWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeUidWhiteBaselineRequest : public RpcServiceRequest + { + + public: + DescribeUidWhiteBaselineRequest(); + ~DescribeUidWhiteBaselineRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getLang()const; + void setLang(const std::string& lang); + long getSrcUid()const; + void setSrcUid(long srcUid); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string sourceIp_; + int pageSize_; + int currentPage_; + std::string remark_; + std::string lang_; + long srcUid_; + std::string sourceCode_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineResult.h new file mode 100644 index 000000000..f6a566e4d --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/DescribeUidWhiteBaselineResult.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_JARVIS_MODEL_DESCRIBEUIDWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT DescribeUidWhiteBaselineResult : public ServiceResult + { + public: + struct PageInfo + { + int pageSize; + int currentPage; + int total; + }; + struct Data + { + std::string status; + int beginTime; + int realEndTime; + long srcUid; + int id; + int ownerAliUid; + std::string remark; + }; + + + DescribeUidWhiteBaselineResult(); + explicit DescribeUidWhiteBaselineResult(const std::string &payload); + ~DescribeUidWhiteBaselineResult(); + std::vector getDataList()const; + PageInfo getPageInfo()const; + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dataList_; + PageInfo pageInfo_; + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEUIDWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineRequest.h new file mode 100644 index 000000000..0aa289e63 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineRequest.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_JARVIS_MODEL_MODIFYIPWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYIPWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyIpWhiteBaselineRequest : public RpcServiceRequest + { + + public: + ModifyIpWhiteBaselineRequest(); + ~ModifyIpWhiteBaselineRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSrcIp()const; + void setSrcIp(const std::string& srcIp); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRemark()const; + void setRemark(const std::string& remark); + int getId()const; + void setId(int id); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + long resourceOwnerId_; + std::string srcIp_; + std::string sourceIp_; + std::string remark_; + int id_; + std::string lang_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYIPWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineResult.h new file mode 100644 index 000000000..319bcdd64 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyIpWhiteBaselineResult.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_JARVIS_MODEL_MODIFYIPWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYIPWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyIpWhiteBaselineResult : public ServiceResult + { + public: + + + ModifyIpWhiteBaselineResult(); + explicit ModifyIpWhiteBaselineResult(const std::string &payload); + ~ModifyIpWhiteBaselineResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYIPWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineRequest.h b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineRequest.h new file mode 100644 index 000000000..0a11694d0 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineRequest.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_JARVIS_MODEL_MODIFYUIDWHITEBASELINEREQUEST_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITEBASELINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyUidWhiteBaselineRequest : public RpcServiceRequest + { + + public: + ModifyUidWhiteBaselineRequest(); + ~ModifyUidWhiteBaselineRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRemark()const; + void setRemark(const std::string& remark); + int getId()const; + void setId(int id); + std::string getLang()const; + void setLang(const std::string& lang); + long getSrcUid()const; + void setSrcUid(long srcUid); + std::string getSourceCode()const; + void setSourceCode(const std::string& sourceCode); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string remark_; + int id_; + std::string lang_; + long srcUid_; + std::string sourceCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITEBASELINEREQUEST_H_ \ No newline at end of file diff --git a/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineResult.h b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineResult.h new file mode 100644 index 000000000..4e19c8323 --- /dev/null +++ b/jarvis/include/alibabacloud/jarvis/model/ModifyUidWhiteBaselineResult.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_JARVIS_MODEL_MODIFYUIDWHITEBASELINERESULT_H_ +#define ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITEBASELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Jarvis + { + namespace Model + { + class ALIBABACLOUD_JARVIS_EXPORT ModifyUidWhiteBaselineResult : public ServiceResult + { + public: + + + ModifyUidWhiteBaselineResult(); + explicit ModifyUidWhiteBaselineResult(const std::string &payload); + ~ModifyUidWhiteBaselineResult(); + std::string getModule()const; + + protected: + void parse(const std::string &payload); + private: + std::string module_; + + }; + } + } +} +#endif // !ALIBABACLOUD_JARVIS_MODEL_MODIFYUIDWHITEBASELINERESULT_H_ \ No newline at end of file diff --git a/jarvis/src/JarvisClient.cc b/jarvis/src/JarvisClient.cc index 583bcdc7c..dfa2c4ca9 100644 --- a/jarvis/src/JarvisClient.cc +++ b/jarvis/src/JarvisClient.cc @@ -159,36 +159,36 @@ JarvisClient::DescribeAccessWhiteListSlbListOutcomeCallable JarvisClient::descri return task->get_future(); } -JarvisClient::DescribePhoneInfoOutcome JarvisClient::describePhoneInfo(const DescribePhoneInfoRequest &request) const +JarvisClient::DeleteIpWhiteBaselineOutcome JarvisClient::deleteIpWhiteBaseline(const DeleteIpWhiteBaselineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribePhoneInfoOutcome(endpointOutcome.error()); + return DeleteIpWhiteBaselineOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribePhoneInfoOutcome(DescribePhoneInfoResult(outcome.result())); + return DeleteIpWhiteBaselineOutcome(DeleteIpWhiteBaselineResult(outcome.result())); else - return DescribePhoneInfoOutcome(outcome.error()); + return DeleteIpWhiteBaselineOutcome(outcome.error()); } -void JarvisClient::describePhoneInfoAsync(const DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr& context) const +void JarvisClient::deleteIpWhiteBaselineAsync(const DeleteIpWhiteBaselineRequest& request, const DeleteIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describePhoneInfo(request), context); + handler(this, request, deleteIpWhiteBaseline(request), context); }; asyncExecute(new Runnable(fn)); } -JarvisClient::DescribePhoneInfoOutcomeCallable JarvisClient::describePhoneInfoCallable(const DescribePhoneInfoRequest &request) const +JarvisClient::DeleteIpWhiteBaselineOutcomeCallable JarvisClient::deleteIpWhiteBaselineCallable(const DeleteIpWhiteBaselineRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describePhoneInfo(request); + return this->deleteIpWhiteBaseline(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -231,6 +231,42 @@ JarvisClient::DescribeAccessWhitelistEcsListOutcomeCallable JarvisClient::descri return task->get_future(); } +JarvisClient::DescribePhoneInfoOutcome JarvisClient::describePhoneInfo(const DescribePhoneInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneInfoOutcome(DescribePhoneInfoResult(outcome.result())); + else + return DescribePhoneInfoOutcome(outcome.error()); +} + +void JarvisClient::describePhoneInfoAsync(const DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribePhoneInfoOutcomeCallable JarvisClient::describePhoneInfoCallable(const DescribePhoneInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::ModifyUidWhiteListAutoShareOutcome JarvisClient::modifyUidWhiteListAutoShare(const ModifyUidWhiteListAutoShareRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +339,42 @@ JarvisClient::CreateConsoleAccessWhiteListOutcomeCallable JarvisClient::createCo return task->get_future(); } +JarvisClient::DescribeUidWhiteBaselineOutcome JarvisClient::describeUidWhiteBaseline(const DescribeUidWhiteBaselineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUidWhiteBaselineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUidWhiteBaselineOutcome(DescribeUidWhiteBaselineResult(outcome.result())); + else + return DescribeUidWhiteBaselineOutcome(outcome.error()); +} + +void JarvisClient::describeUidWhiteBaselineAsync(const DescribeUidWhiteBaselineRequest& request, const DescribeUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUidWhiteBaseline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeUidWhiteBaselineOutcomeCallable JarvisClient::describeUidWhiteBaselineCallable(const DescribeUidWhiteBaselineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUidWhiteBaseline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::DescribeConsoleAccessWhiteListOutcome JarvisClient::describeConsoleAccessWhiteList(const DescribeConsoleAccessWhiteListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +411,78 @@ JarvisClient::DescribeConsoleAccessWhiteListOutcomeCallable JarvisClient::descri return task->get_future(); } +JarvisClient::DeleteWhiteListDbItemConditionalOutcome JarvisClient::deleteWhiteListDbItemConditional(const DeleteWhiteListDbItemConditionalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteWhiteListDbItemConditionalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteWhiteListDbItemConditionalOutcome(DeleteWhiteListDbItemConditionalResult(outcome.result())); + else + return DeleteWhiteListDbItemConditionalOutcome(outcome.error()); +} + +void JarvisClient::deleteWhiteListDbItemConditionalAsync(const DeleteWhiteListDbItemConditionalRequest& request, const DeleteWhiteListDbItemConditionalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteWhiteListDbItemConditional(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DeleteWhiteListDbItemConditionalOutcomeCallable JarvisClient::deleteWhiteListDbItemConditionalCallable(const DeleteWhiteListDbItemConditionalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteWhiteListDbItemConditional(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +JarvisClient::DescribeIpWhiteBaselineOutcome JarvisClient::describeIpWhiteBaseline(const DescribeIpWhiteBaselineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpWhiteBaselineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpWhiteBaselineOutcome(DescribeIpWhiteBaselineResult(outcome.result())); + else + return DescribeIpWhiteBaselineOutcome(outcome.error()); +} + +void JarvisClient::describeIpWhiteBaselineAsync(const DescribeIpWhiteBaselineRequest& request, const DescribeIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpWhiteBaseline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DescribeIpWhiteBaselineOutcomeCallable JarvisClient::describeIpWhiteBaselineCallable(const DescribeIpWhiteBaselineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpWhiteBaseline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::DeleteCdnIpOutcome JarvisClient::deleteCdnIp(const DeleteCdnIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +555,42 @@ JarvisClient::CreateCdnIpOutcomeCallable JarvisClient::createCdnIpCallable(const return task->get_future(); } +JarvisClient::DeleteUidWhiteBaselineOutcome JarvisClient::deleteUidWhiteBaseline(const DeleteUidWhiteBaselineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUidWhiteBaselineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUidWhiteBaselineOutcome(DeleteUidWhiteBaselineResult(outcome.result())); + else + return DeleteUidWhiteBaselineOutcome(outcome.error()); +} + +void JarvisClient::deleteUidWhiteBaselineAsync(const DeleteUidWhiteBaselineRequest& request, const DeleteUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUidWhiteBaseline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DeleteUidWhiteBaselineOutcomeCallable JarvisClient::deleteUidWhiteBaselineCallable(const DeleteUidWhiteBaselineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUidWhiteBaseline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::DescribeUidGcLevelOutcome JarvisClient::describeUidGcLevel(const DescribeUidGcLevelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +771,42 @@ JarvisClient::DescribeRiskListDetailOutcomeCallable JarvisClient::describeRiskLi return task->get_future(); } +JarvisClient::DeleteConsoleAccessWhiteListOutcome JarvisClient::deleteConsoleAccessWhiteList(const DeleteConsoleAccessWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteConsoleAccessWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteConsoleAccessWhiteListOutcome(DeleteConsoleAccessWhiteListResult(outcome.result())); + else + return DeleteConsoleAccessWhiteListOutcome(outcome.error()); +} + +void JarvisClient::deleteConsoleAccessWhiteListAsync(const DeleteConsoleAccessWhiteListRequest& request, const DeleteConsoleAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteConsoleAccessWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DeleteConsoleAccessWhiteListOutcomeCallable JarvisClient::deleteConsoleAccessWhiteListCallable(const DeleteConsoleAccessWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteConsoleAccessWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::DescribeEcsListPageOutcome JarvisClient::describeEcsListPage(const DescribeEcsListPageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,36 +843,36 @@ JarvisClient::DescribeEcsListPageOutcomeCallable JarvisClient::describeEcsListPa return task->get_future(); } -JarvisClient::DeleteConsoleAccessWhiteListOutcome JarvisClient::deleteConsoleAccessWhiteList(const DeleteConsoleAccessWhiteListRequest &request) const +JarvisClient::CreateUidWhiteBaselineOutcome JarvisClient::createUidWhiteBaseline(const CreateUidWhiteBaselineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteConsoleAccessWhiteListOutcome(endpointOutcome.error()); + return CreateUidWhiteBaselineOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteConsoleAccessWhiteListOutcome(DeleteConsoleAccessWhiteListResult(outcome.result())); + return CreateUidWhiteBaselineOutcome(CreateUidWhiteBaselineResult(outcome.result())); else - return DeleteConsoleAccessWhiteListOutcome(outcome.error()); + return CreateUidWhiteBaselineOutcome(outcome.error()); } -void JarvisClient::deleteConsoleAccessWhiteListAsync(const DeleteConsoleAccessWhiteListRequest& request, const DeleteConsoleAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +void JarvisClient::createUidWhiteBaselineAsync(const CreateUidWhiteBaselineRequest& request, const CreateUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteConsoleAccessWhiteList(request), context); + handler(this, request, createUidWhiteBaseline(request), context); }; asyncExecute(new Runnable(fn)); } -JarvisClient::DeleteConsoleAccessWhiteListOutcomeCallable JarvisClient::deleteConsoleAccessWhiteListCallable(const DeleteConsoleAccessWhiteListRequest &request) const +JarvisClient::CreateUidWhiteBaselineOutcomeCallable JarvisClient::createUidWhiteBaselineCallable(const CreateUidWhiteBaselineRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteConsoleAccessWhiteList(request); + return this->createUidWhiteBaseline(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -735,6 +951,42 @@ JarvisClient::CreateAccessWhiteListGroupOutcomeCallable JarvisClient::createAcce return task->get_future(); } +JarvisClient::DeleteWhiteListConditionalOutcome JarvisClient::deleteWhiteListConditional(const DeleteWhiteListConditionalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteWhiteListConditionalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteWhiteListConditionalOutcome(DeleteWhiteListConditionalResult(outcome.result())); + else + return DeleteWhiteListConditionalOutcome(outcome.error()); +} + +void JarvisClient::deleteWhiteListConditionalAsync(const DeleteWhiteListConditionalRequest& request, const DeleteWhiteListConditionalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteWhiteListConditional(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DeleteWhiteListConditionalOutcomeCallable JarvisClient::deleteWhiteListConditionalCallable(const DeleteWhiteListConditionalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteWhiteListConditional(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::DescribeDdosDefenseInfoOutcome JarvisClient::describeDdosDefenseInfo(const DescribeDdosDefenseInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +1167,42 @@ JarvisClient::ModifyAccessWhiteListAutoShareOutcomeCallable JarvisClient::modify return task->get_future(); } +JarvisClient::CreateIpWhiteBaselineOutcome JarvisClient::createIpWhiteBaseline(const CreateIpWhiteBaselineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIpWhiteBaselineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIpWhiteBaselineOutcome(CreateIpWhiteBaselineResult(outcome.result())); + else + return CreateIpWhiteBaselineOutcome(outcome.error()); +} + +void JarvisClient::createIpWhiteBaselineAsync(const CreateIpWhiteBaselineRequest& request, const CreateIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIpWhiteBaseline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::CreateIpWhiteBaselineOutcomeCallable JarvisClient::createIpWhiteBaselineCallable(const CreateIpWhiteBaselineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIpWhiteBaseline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::CreateUidWhiteListGroupOutcome JarvisClient::createUidWhiteListGroup(const CreateUidWhiteListGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1275,42 @@ JarvisClient::DescribeCdnIpListOutcomeCallable JarvisClient::describeCdnIpListCa return task->get_future(); } +JarvisClient::DeleteCdnSubscriptionOutcome JarvisClient::deleteCdnSubscription(const DeleteCdnSubscriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCdnSubscriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCdnSubscriptionOutcome(DeleteCdnSubscriptionResult(outcome.result())); + else + return DeleteCdnSubscriptionOutcome(outcome.error()); +} + +void JarvisClient::deleteCdnSubscriptionAsync(const DeleteCdnSubscriptionRequest& request, const DeleteCdnSubscriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCdnSubscription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::DeleteCdnSubscriptionOutcomeCallable JarvisClient::deleteCdnSubscriptionCallable(const DeleteCdnSubscriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCdnSubscription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::CreateCdnSubscriptionOutcome JarvisClient::createCdnSubscription(const CreateCdnSubscriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,36 +1347,36 @@ JarvisClient::CreateCdnSubscriptionOutcomeCallable JarvisClient::createCdnSubscr return task->get_future(); } -JarvisClient::DeleteCdnSubscriptionOutcome JarvisClient::deleteCdnSubscription(const DeleteCdnSubscriptionRequest &request) const +JarvisClient::ModifyIpWhiteBaselineOutcome JarvisClient::modifyIpWhiteBaseline(const ModifyIpWhiteBaselineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteCdnSubscriptionOutcome(endpointOutcome.error()); + return ModifyIpWhiteBaselineOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteCdnSubscriptionOutcome(DeleteCdnSubscriptionResult(outcome.result())); + return ModifyIpWhiteBaselineOutcome(ModifyIpWhiteBaselineResult(outcome.result())); else - return DeleteCdnSubscriptionOutcome(outcome.error()); + return ModifyIpWhiteBaselineOutcome(outcome.error()); } -void JarvisClient::deleteCdnSubscriptionAsync(const DeleteCdnSubscriptionRequest& request, const DeleteCdnSubscriptionAsyncHandler& handler, const std::shared_ptr& context) const +void JarvisClient::modifyIpWhiteBaselineAsync(const ModifyIpWhiteBaselineRequest& request, const ModifyIpWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteCdnSubscription(request), context); + handler(this, request, modifyIpWhiteBaseline(request), context); }; asyncExecute(new Runnable(fn)); } -JarvisClient::DeleteCdnSubscriptionOutcomeCallable JarvisClient::deleteCdnSubscriptionCallable(const DeleteCdnSubscriptionRequest &request) const +JarvisClient::ModifyIpWhiteBaselineOutcomeCallable JarvisClient::modifyIpWhiteBaselineCallable(const ModifyIpWhiteBaselineRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteCdnSubscription(request); + return this->modifyIpWhiteBaseline(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1131,6 +1455,42 @@ JarvisClient::DeleteAccessWhiteListGroupOutcomeCallable JarvisClient::deleteAcce return task->get_future(); } +JarvisClient::ModifyUidWhiteBaselineOutcome JarvisClient::modifyUidWhiteBaseline(const ModifyUidWhiteBaselineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyUidWhiteBaselineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyUidWhiteBaselineOutcome(ModifyUidWhiteBaselineResult(outcome.result())); + else + return ModifyUidWhiteBaselineOutcome(outcome.error()); +} + +void JarvisClient::modifyUidWhiteBaselineAsync(const ModifyUidWhiteBaselineRequest& request, const ModifyUidWhiteBaselineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyUidWhiteBaseline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +JarvisClient::ModifyUidWhiteBaselineOutcomeCallable JarvisClient::modifyUidWhiteBaselineCallable(const ModifyUidWhiteBaselineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyUidWhiteBaseline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + JarvisClient::DescribeAccessWhiteListGroupOutcome JarvisClient::describeAccessWhiteListGroup(const DescribeAccessWhiteListGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/jarvis/src/model/CreateAccessWhiteListGroupRequest.cc b/jarvis/src/model/CreateAccessWhiteListGroupRequest.cc index cb2d96ce8..67cd326a8 100644 --- a/jarvis/src/model/CreateAccessWhiteListGroupRequest.cc +++ b/jarvis/src/model/CreateAccessWhiteListGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateAccessWhiteListGroupRequest::getNote()const void CreateAccessWhiteListGroupRequest::setNote(const std::string& note) { note_ = note; - setParameter("Note", note); + setCoreParameter("Note", note); } long CreateAccessWhiteListGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateAccessWhiteListGroupRequest::getResourceOwnerId()const void CreateAccessWhiteListGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateAccessWhiteListGroupRequest::getSrcIP()const @@ -55,7 +55,7 @@ std::string CreateAccessWhiteListGroupRequest::getSrcIP()const void CreateAccessWhiteListGroupRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string CreateAccessWhiteListGroupRequest::getSourceIp()const @@ -66,7 +66,7 @@ std::string CreateAccessWhiteListGroupRequest::getSourceIp()const void CreateAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int CreateAccessWhiteListGroupRequest::getDstPort()const @@ -77,7 +77,7 @@ int CreateAccessWhiteListGroupRequest::getDstPort()const void CreateAccessWhiteListGroupRequest::setDstPort(int dstPort) { dstPort_ = dstPort; - setParameter("DstPort", std::to_string(dstPort)); + setCoreParameter("DstPort", std::to_string(dstPort)); } std::string CreateAccessWhiteListGroupRequest::getInstanceIdList()const @@ -88,7 +88,7 @@ std::string CreateAccessWhiteListGroupRequest::getInstanceIdList()const void CreateAccessWhiteListGroupRequest::setInstanceIdList(const std::string& instanceIdList) { instanceIdList_ = instanceIdList; - setParameter("InstanceIdList", instanceIdList); + setCoreParameter("InstanceIdList", instanceIdList); } int CreateAccessWhiteListGroupRequest::getLiveTime()const @@ -99,7 +99,7 @@ int CreateAccessWhiteListGroupRequest::getLiveTime()const void CreateAccessWhiteListGroupRequest::setLiveTime(int liveTime) { liveTime_ = liveTime; - setParameter("LiveTime", std::to_string(liveTime)); + setCoreParameter("LiveTime", std::to_string(liveTime)); } std::string CreateAccessWhiteListGroupRequest::getProductName()const @@ -110,7 +110,7 @@ std::string CreateAccessWhiteListGroupRequest::getProductName()const void CreateAccessWhiteListGroupRequest::setProductName(const std::string& productName) { productName_ = productName; - setParameter("ProductName", productName); + setCoreParameter("ProductName", productName); } int CreateAccessWhiteListGroupRequest::getWhiteListType()const @@ -121,7 +121,7 @@ int CreateAccessWhiteListGroupRequest::getWhiteListType()const void CreateAccessWhiteListGroupRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string CreateAccessWhiteListGroupRequest::getInstanceInfoList()const @@ -132,7 +132,7 @@ std::string CreateAccessWhiteListGroupRequest::getInstanceInfoList()const void CreateAccessWhiteListGroupRequest::setInstanceInfoList(const std::string& instanceInfoList) { instanceInfoList_ = instanceInfoList; - setParameter("InstanceInfoList", instanceInfoList); + setCoreParameter("InstanceInfoList", instanceInfoList); } std::string CreateAccessWhiteListGroupRequest::getLang()const @@ -143,7 +143,7 @@ std::string CreateAccessWhiteListGroupRequest::getLang()const void CreateAccessWhiteListGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateAccessWhiteListGroupRequest::getSourceCode()const @@ -154,6 +154,6 @@ std::string CreateAccessWhiteListGroupRequest::getSourceCode()const void CreateAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/CreateAccessWhiteListGroupResult.cc b/jarvis/src/model/CreateAccessWhiteListGroupResult.cc index 8ae903311..d2a2ed6cc 100644 --- a/jarvis/src/model/CreateAccessWhiteListGroupResult.cc +++ b/jarvis/src/model/CreateAccessWhiteListGroupResult.cc @@ -35,10 +35,13 @@ CreateAccessWhiteListGroupResult::~CreateAccessWhiteListGroupResult() void CreateAccessWhiteListGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/CreateAllEcsWhiteListRequest.cc b/jarvis/src/model/CreateAllEcsWhiteListRequest.cc index 4514187d7..550eb5876 100644 --- a/jarvis/src/model/CreateAllEcsWhiteListRequest.cc +++ b/jarvis/src/model/CreateAllEcsWhiteListRequest.cc @@ -33,7 +33,7 @@ long CreateAllEcsWhiteListRequest::getResourceOwnerId()const void CreateAllEcsWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateAllEcsWhiteListRequest::getSrcIP()const @@ -44,7 +44,7 @@ std::string CreateAllEcsWhiteListRequest::getSrcIP()const void CreateAllEcsWhiteListRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string CreateAllEcsWhiteListRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string CreateAllEcsWhiteListRequest::getSourceIp()const void CreateAllEcsWhiteListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateAllEcsWhiteListRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string CreateAllEcsWhiteListRequest::getSourceCode()const void CreateAllEcsWhiteListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/CreateAllEcsWhiteListResult.cc b/jarvis/src/model/CreateAllEcsWhiteListResult.cc index 3f8ab3f3d..e79a23058 100644 --- a/jarvis/src/model/CreateAllEcsWhiteListResult.cc +++ b/jarvis/src/model/CreateAllEcsWhiteListResult.cc @@ -35,10 +35,13 @@ CreateAllEcsWhiteListResult::~CreateAllEcsWhiteListResult() void CreateAllEcsWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/CreateCdnIpRequest.cc b/jarvis/src/model/CreateCdnIpRequest.cc index fe6927270..6f3f67d4c 100644 --- a/jarvis/src/model/CreateCdnIpRequest.cc +++ b/jarvis/src/model/CreateCdnIpRequest.cc @@ -33,7 +33,7 @@ std::string CreateCdnIpRequest::getCdnIpList()const void CreateCdnIpRequest::setCdnIpList(const std::string& cdnIpList) { cdnIpList_ = cdnIpList; - setParameter("CdnIpList", cdnIpList); + setCoreParameter("CdnIpList", cdnIpList); } long CreateCdnIpRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateCdnIpRequest::getResourceOwnerId()const void CreateCdnIpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateCdnIpRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string CreateCdnIpRequest::getSourceIp()const void CreateCdnIpRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateCdnIpRequest::getLang()const @@ -66,7 +66,7 @@ std::string CreateCdnIpRequest::getLang()const void CreateCdnIpRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateCdnIpRequest::getSourceCode()const @@ -77,6 +77,6 @@ std::string CreateCdnIpRequest::getSourceCode()const void CreateCdnIpRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/CreateCdnIpResult.cc b/jarvis/src/model/CreateCdnIpResult.cc index 8602cb08b..90f479ba0 100644 --- a/jarvis/src/model/CreateCdnIpResult.cc +++ b/jarvis/src/model/CreateCdnIpResult.cc @@ -35,10 +35,13 @@ CreateCdnIpResult::~CreateCdnIpResult() void CreateCdnIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/CreateCdnSubscriptionRequest.cc b/jarvis/src/model/CreateCdnSubscriptionRequest.cc index 0912573a3..e91212026 100644 --- a/jarvis/src/model/CreateCdnSubscriptionRequest.cc +++ b/jarvis/src/model/CreateCdnSubscriptionRequest.cc @@ -33,7 +33,7 @@ long CreateCdnSubscriptionRequest::getResourceOwnerId()const void CreateCdnSubscriptionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateCdnSubscriptionRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string CreateCdnSubscriptionRequest::getSourceIp()const void CreateCdnSubscriptionRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string CreateCdnSubscriptionRequest::getLang()const @@ -55,7 +55,7 @@ std::string CreateCdnSubscriptionRequest::getLang()const void CreateCdnSubscriptionRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateCdnSubscriptionRequest::getCdnUidList()const @@ -66,7 +66,7 @@ std::string CreateCdnSubscriptionRequest::getCdnUidList()const void CreateCdnSubscriptionRequest::setCdnUidList(const std::string& cdnUidList) { cdnUidList_ = cdnUidList; - setParameter("CdnUidList", cdnUidList); + setCoreParameter("CdnUidList", cdnUidList); } std::string CreateCdnSubscriptionRequest::getSourceCode()const @@ -77,6 +77,6 @@ std::string CreateCdnSubscriptionRequest::getSourceCode()const void CreateCdnSubscriptionRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/CreateCdnSubscriptionResult.cc b/jarvis/src/model/CreateCdnSubscriptionResult.cc index 742d89dd4..d2a14b9a9 100644 --- a/jarvis/src/model/CreateCdnSubscriptionResult.cc +++ b/jarvis/src/model/CreateCdnSubscriptionResult.cc @@ -35,10 +35,13 @@ CreateCdnSubscriptionResult::~CreateCdnSubscriptionResult() void CreateCdnSubscriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/CreateConsoleAccessWhiteListRequest.cc b/jarvis/src/model/CreateConsoleAccessWhiteListRequest.cc index 655fa11ab..901b5e45a 100644 --- a/jarvis/src/model/CreateConsoleAccessWhiteListRequest.cc +++ b/jarvis/src/model/CreateConsoleAccessWhiteListRequest.cc @@ -33,7 +33,7 @@ std::string CreateConsoleAccessWhiteListRequest::getNote()const void CreateConsoleAccessWhiteListRequest::setNote(const std::string& note) { note_ = note; - setParameter("Note", note); + setCoreParameter("Note", note); } long CreateConsoleAccessWhiteListRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateConsoleAccessWhiteListRequest::getResourceOwnerId()const void CreateConsoleAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateConsoleAccessWhiteListRequest::getSrcIP()const @@ -55,7 +55,7 @@ std::string CreateConsoleAccessWhiteListRequest::getSrcIP()const void CreateConsoleAccessWhiteListRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string CreateConsoleAccessWhiteListRequest::getSourceIp()const @@ -66,7 +66,7 @@ std::string CreateConsoleAccessWhiteListRequest::getSourceIp()const void CreateConsoleAccessWhiteListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int CreateConsoleAccessWhiteListRequest::getDstPort()const @@ -77,7 +77,7 @@ int CreateConsoleAccessWhiteListRequest::getDstPort()const void CreateConsoleAccessWhiteListRequest::setDstPort(int dstPort) { dstPort_ = dstPort; - setParameter("DstPort", std::to_string(dstPort)); + setCoreParameter("DstPort", std::to_string(dstPort)); } std::string CreateConsoleAccessWhiteListRequest::getInstanceIdList()const @@ -88,7 +88,7 @@ std::string CreateConsoleAccessWhiteListRequest::getInstanceIdList()const void CreateConsoleAccessWhiteListRequest::setInstanceIdList(const std::string& instanceIdList) { instanceIdList_ = instanceIdList; - setParameter("InstanceIdList", instanceIdList); + setCoreParameter("InstanceIdList", instanceIdList); } int CreateConsoleAccessWhiteListRequest::getLiveTime()const @@ -99,7 +99,7 @@ int CreateConsoleAccessWhiteListRequest::getLiveTime()const void CreateConsoleAccessWhiteListRequest::setLiveTime(int liveTime) { liveTime_ = liveTime; - setParameter("LiveTime", std::to_string(liveTime)); + setCoreParameter("LiveTime", std::to_string(liveTime)); } std::string CreateConsoleAccessWhiteListRequest::getProductName()const @@ -110,7 +110,7 @@ std::string CreateConsoleAccessWhiteListRequest::getProductName()const void CreateConsoleAccessWhiteListRequest::setProductName(const std::string& productName) { productName_ = productName; - setParameter("ProductName", productName); + setCoreParameter("ProductName", productName); } int CreateConsoleAccessWhiteListRequest::getWhiteListType()const @@ -121,7 +121,7 @@ int CreateConsoleAccessWhiteListRequest::getWhiteListType()const void CreateConsoleAccessWhiteListRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string CreateConsoleAccessWhiteListRequest::getInstanceInfoList()const @@ -132,7 +132,7 @@ std::string CreateConsoleAccessWhiteListRequest::getInstanceInfoList()const void CreateConsoleAccessWhiteListRequest::setInstanceInfoList(const std::string& instanceInfoList) { instanceInfoList_ = instanceInfoList; - setParameter("InstanceInfoList", instanceInfoList); + setCoreParameter("InstanceInfoList", instanceInfoList); } std::string CreateConsoleAccessWhiteListRequest::getLang()const @@ -143,7 +143,7 @@ std::string CreateConsoleAccessWhiteListRequest::getLang()const void CreateConsoleAccessWhiteListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateConsoleAccessWhiteListRequest::getSourceCode()const @@ -154,6 +154,6 @@ std::string CreateConsoleAccessWhiteListRequest::getSourceCode()const void CreateConsoleAccessWhiteListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/CreateConsoleAccessWhiteListResult.cc b/jarvis/src/model/CreateConsoleAccessWhiteListResult.cc index 4d88be036..21d68afea 100644 --- a/jarvis/src/model/CreateConsoleAccessWhiteListResult.cc +++ b/jarvis/src/model/CreateConsoleAccessWhiteListResult.cc @@ -35,10 +35,13 @@ CreateConsoleAccessWhiteListResult::~CreateConsoleAccessWhiteListResult() void CreateConsoleAccessWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/CreateCpmcPunishFeedBackRequest.cc b/jarvis/src/model/CreateCpmcPunishFeedBackRequest.cc index 28292bdba..3ea20ff46 100644 --- a/jarvis/src/model/CreateCpmcPunishFeedBackRequest.cc +++ b/jarvis/src/model/CreateCpmcPunishFeedBackRequest.cc @@ -33,7 +33,7 @@ int CreateCpmcPunishFeedBackRequest::getFeedBack()const void CreateCpmcPunishFeedBackRequest::setFeedBack(int feedBack) { feedBack_ = feedBack; - setParameter("FeedBack", std::to_string(feedBack)); + setCoreParameter("FeedBack", std::to_string(feedBack)); } std::string CreateCpmcPunishFeedBackRequest::getSrcIP()const @@ -44,7 +44,7 @@ std::string CreateCpmcPunishFeedBackRequest::getSrcIP()const void CreateCpmcPunishFeedBackRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string CreateCpmcPunishFeedBackRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string CreateCpmcPunishFeedBackRequest::getSourceIp()const void CreateCpmcPunishFeedBackRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int CreateCpmcPunishFeedBackRequest::getDstPort()const @@ -66,7 +66,7 @@ int CreateCpmcPunishFeedBackRequest::getDstPort()const void CreateCpmcPunishFeedBackRequest::setDstPort(int dstPort) { dstPort_ = dstPort; - setParameter("DstPort", std::to_string(dstPort)); + setCoreParameter("DstPort", std::to_string(dstPort)); } std::string CreateCpmcPunishFeedBackRequest::getProtocolName()const @@ -77,7 +77,7 @@ std::string CreateCpmcPunishFeedBackRequest::getProtocolName()const void CreateCpmcPunishFeedBackRequest::setProtocolName(const std::string& protocolName) { protocolName_ = protocolName; - setParameter("ProtocolName", protocolName); + setCoreParameter("ProtocolName", protocolName); } int CreateCpmcPunishFeedBackRequest::getSrcPort()const @@ -88,7 +88,7 @@ int CreateCpmcPunishFeedBackRequest::getSrcPort()const void CreateCpmcPunishFeedBackRequest::setSrcPort(int srcPort) { srcPort_ = srcPort; - setParameter("SrcPort", std::to_string(srcPort)); + setCoreParameter("SrcPort", std::to_string(srcPort)); } std::string CreateCpmcPunishFeedBackRequest::getPunishType()const @@ -99,7 +99,7 @@ std::string CreateCpmcPunishFeedBackRequest::getPunishType()const void CreateCpmcPunishFeedBackRequest::setPunishType(const std::string& punishType) { punishType_ = punishType; - setParameter("PunishType", punishType); + setCoreParameter("PunishType", punishType); } std::string CreateCpmcPunishFeedBackRequest::getGmtCreate()const @@ -110,7 +110,7 @@ std::string CreateCpmcPunishFeedBackRequest::getGmtCreate()const void CreateCpmcPunishFeedBackRequest::setGmtCreate(const std::string& gmtCreate) { gmtCreate_ = gmtCreate; - setParameter("GmtCreate", gmtCreate); + setCoreParameter("GmtCreate", gmtCreate); } std::string CreateCpmcPunishFeedBackRequest::getDstIP()const @@ -121,7 +121,7 @@ std::string CreateCpmcPunishFeedBackRequest::getDstIP()const void CreateCpmcPunishFeedBackRequest::setDstIP(const std::string& dstIP) { dstIP_ = dstIP; - setParameter("DstIP", dstIP); + setCoreParameter("DstIP", dstIP); } std::string CreateCpmcPunishFeedBackRequest::getLang()const @@ -132,7 +132,7 @@ std::string CreateCpmcPunishFeedBackRequest::getLang()const void CreateCpmcPunishFeedBackRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateCpmcPunishFeedBackRequest::getSourceCode()const @@ -143,6 +143,6 @@ std::string CreateCpmcPunishFeedBackRequest::getSourceCode()const void CreateCpmcPunishFeedBackRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/CreateCpmcPunishFeedBackResult.cc b/jarvis/src/model/CreateCpmcPunishFeedBackResult.cc index 58336380a..3f7e60a44 100644 --- a/jarvis/src/model/CreateCpmcPunishFeedBackResult.cc +++ b/jarvis/src/model/CreateCpmcPunishFeedBackResult.cc @@ -35,10 +35,13 @@ CreateCpmcPunishFeedBackResult::~CreateCpmcPunishFeedBackResult() void CreateCpmcPunishFeedBackResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/CreateIpWhiteBaselineRequest.cc b/jarvis/src/model/CreateIpWhiteBaselineRequest.cc new file mode 100644 index 000000000..cc44bf63b --- /dev/null +++ b/jarvis/src/model/CreateIpWhiteBaselineRequest.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 + +using AlibabaCloud::Jarvis::Model::CreateIpWhiteBaselineRequest; + +CreateIpWhiteBaselineRequest::CreateIpWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "CreateIpWhiteBaseline") +{} + +CreateIpWhiteBaselineRequest::~CreateIpWhiteBaselineRequest() +{} + +long CreateIpWhiteBaselineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateIpWhiteBaselineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateIpWhiteBaselineRequest::getSrcIp()const +{ + return srcIp_; +} + +void CreateIpWhiteBaselineRequest::setSrcIp(const std::string& srcIp) +{ + srcIp_ = srcIp; + setCoreParameter("SrcIp", srcIp); +} + +std::string CreateIpWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateIpWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string CreateIpWhiteBaselineRequest::getRemark()const +{ + return remark_; +} + +void CreateIpWhiteBaselineRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string CreateIpWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void CreateIpWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string CreateIpWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void CreateIpWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/CreateIpWhiteBaselineResult.cc b/jarvis/src/model/CreateIpWhiteBaselineResult.cc new file mode 100644 index 000000000..38f008548 --- /dev/null +++ b/jarvis/src/model/CreateIpWhiteBaselineResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +CreateIpWhiteBaselineResult::CreateIpWhiteBaselineResult() : + ServiceResult() +{} + +CreateIpWhiteBaselineResult::CreateIpWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIpWhiteBaselineResult::~CreateIpWhiteBaselineResult() +{} + +void CreateIpWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string CreateIpWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/CreateUidWhiteBaselineRequest.cc b/jarvis/src/model/CreateUidWhiteBaselineRequest.cc new file mode 100644 index 000000000..66774a1d1 --- /dev/null +++ b/jarvis/src/model/CreateUidWhiteBaselineRequest.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 + +using AlibabaCloud::Jarvis::Model::CreateUidWhiteBaselineRequest; + +CreateUidWhiteBaselineRequest::CreateUidWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "CreateUidWhiteBaseline") +{} + +CreateUidWhiteBaselineRequest::~CreateUidWhiteBaselineRequest() +{} + +long CreateUidWhiteBaselineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateUidWhiteBaselineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateUidWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateUidWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string CreateUidWhiteBaselineRequest::getRemark()const +{ + return remark_; +} + +void CreateUidWhiteBaselineRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string CreateUidWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void CreateUidWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long CreateUidWhiteBaselineRequest::getSrcUid()const +{ + return srcUid_; +} + +void CreateUidWhiteBaselineRequest::setSrcUid(long srcUid) +{ + srcUid_ = srcUid; + setCoreParameter("SrcUid", std::to_string(srcUid)); +} + +std::string CreateUidWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void CreateUidWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/CreateUidWhiteBaselineResult.cc b/jarvis/src/model/CreateUidWhiteBaselineResult.cc new file mode 100644 index 000000000..50b72243f --- /dev/null +++ b/jarvis/src/model/CreateUidWhiteBaselineResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +CreateUidWhiteBaselineResult::CreateUidWhiteBaselineResult() : + ServiceResult() +{} + +CreateUidWhiteBaselineResult::CreateUidWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUidWhiteBaselineResult::~CreateUidWhiteBaselineResult() +{} + +void CreateUidWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string CreateUidWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/CreateUidWhiteListGroupRequest.cc b/jarvis/src/model/CreateUidWhiteListGroupRequest.cc index 458906ad3..cedd8cc14 100644 --- a/jarvis/src/model/CreateUidWhiteListGroupRequest.cc +++ b/jarvis/src/model/CreateUidWhiteListGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateUidWhiteListGroupRequest::getNote()const void CreateUidWhiteListGroupRequest::setNote(const std::string& note) { note_ = note; - setParameter("Note", note); + setCoreParameter("Note", note); } long CreateUidWhiteListGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateUidWhiteListGroupRequest::getResourceOwnerId()const void CreateUidWhiteListGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateUidWhiteListGroupRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string CreateUidWhiteListGroupRequest::getSourceIp()const void CreateUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int CreateUidWhiteListGroupRequest::getDstPort()const @@ -66,7 +66,7 @@ int CreateUidWhiteListGroupRequest::getDstPort()const void CreateUidWhiteListGroupRequest::setDstPort(int dstPort) { dstPort_ = dstPort; - setParameter("DstPort", std::to_string(dstPort)); + setCoreParameter("DstPort", std::to_string(dstPort)); } std::string CreateUidWhiteListGroupRequest::getInstanceIdList()const @@ -77,7 +77,7 @@ std::string CreateUidWhiteListGroupRequest::getInstanceIdList()const void CreateUidWhiteListGroupRequest::setInstanceIdList(const std::string& instanceIdList) { instanceIdList_ = instanceIdList; - setParameter("InstanceIdList", instanceIdList); + setCoreParameter("InstanceIdList", instanceIdList); } int CreateUidWhiteListGroupRequest::getLiveTime()const @@ -88,7 +88,7 @@ int CreateUidWhiteListGroupRequest::getLiveTime()const void CreateUidWhiteListGroupRequest::setLiveTime(int liveTime) { liveTime_ = liveTime; - setParameter("LiveTime", std::to_string(liveTime)); + setCoreParameter("LiveTime", std::to_string(liveTime)); } std::string CreateUidWhiteListGroupRequest::getProductName()const @@ -99,7 +99,7 @@ std::string CreateUidWhiteListGroupRequest::getProductName()const void CreateUidWhiteListGroupRequest::setProductName(const std::string& productName) { productName_ = productName; - setParameter("ProductName", productName); + setCoreParameter("ProductName", productName); } int CreateUidWhiteListGroupRequest::getWhiteListType()const @@ -110,7 +110,7 @@ int CreateUidWhiteListGroupRequest::getWhiteListType()const void CreateUidWhiteListGroupRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string CreateUidWhiteListGroupRequest::getLang()const @@ -121,7 +121,7 @@ std::string CreateUidWhiteListGroupRequest::getLang()const void CreateUidWhiteListGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CreateUidWhiteListGroupRequest::getSrcUid()const @@ -132,7 +132,7 @@ std::string CreateUidWhiteListGroupRequest::getSrcUid()const void CreateUidWhiteListGroupRequest::setSrcUid(const std::string& srcUid) { srcUid_ = srcUid; - setParameter("SrcUid", srcUid); + setCoreParameter("SrcUid", srcUid); } std::string CreateUidWhiteListGroupRequest::getSourceCode()const @@ -143,6 +143,6 @@ std::string CreateUidWhiteListGroupRequest::getSourceCode()const void CreateUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/CreateUidWhiteListGroupResult.cc b/jarvis/src/model/CreateUidWhiteListGroupResult.cc index 04c60ea13..ef2c8eebe 100644 --- a/jarvis/src/model/CreateUidWhiteListGroupResult.cc +++ b/jarvis/src/model/CreateUidWhiteListGroupResult.cc @@ -35,10 +35,13 @@ CreateUidWhiteListGroupResult::~CreateUidWhiteListGroupResult() void CreateUidWhiteListGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DeleteAccessWhiteListGroupRequest.cc b/jarvis/src/model/DeleteAccessWhiteListGroupRequest.cc index 5554637a2..5527885ce 100644 --- a/jarvis/src/model/DeleteAccessWhiteListGroupRequest.cc +++ b/jarvis/src/model/DeleteAccessWhiteListGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteAccessWhiteListGroupRequest::getGroupIdList()const void DeleteAccessWhiteListGroupRequest::setGroupIdList(const std::string& groupIdList) { groupIdList_ = groupIdList; - setParameter("GroupIdList", groupIdList); + setCoreParameter("GroupIdList", groupIdList); } std::string DeleteAccessWhiteListGroupRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DeleteAccessWhiteListGroupRequest::getSourceIp()const void DeleteAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DeleteAccessWhiteListGroupRequest::getLang()const @@ -55,7 +55,7 @@ std::string DeleteAccessWhiteListGroupRequest::getLang()const void DeleteAccessWhiteListGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteAccessWhiteListGroupRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DeleteAccessWhiteListGroupRequest::getSourceCode()const void DeleteAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DeleteAccessWhiteListGroupResult.cc b/jarvis/src/model/DeleteAccessWhiteListGroupResult.cc index f7a9e3a23..86e76a81a 100644 --- a/jarvis/src/model/DeleteAccessWhiteListGroupResult.cc +++ b/jarvis/src/model/DeleteAccessWhiteListGroupResult.cc @@ -35,10 +35,13 @@ DeleteAccessWhiteListGroupResult::~DeleteAccessWhiteListGroupResult() void DeleteAccessWhiteListGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DeleteCdnIpRequest.cc b/jarvis/src/model/DeleteCdnIpRequest.cc index 1b3655e90..8a9de7532 100644 --- a/jarvis/src/model/DeleteCdnIpRequest.cc +++ b/jarvis/src/model/DeleteCdnIpRequest.cc @@ -33,7 +33,7 @@ int DeleteCdnIpRequest::getItemId()const void DeleteCdnIpRequest::setItemId(int itemId) { itemId_ = itemId; - setParameter("ItemId", std::to_string(itemId)); + setCoreParameter("ItemId", std::to_string(itemId)); } long DeleteCdnIpRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteCdnIpRequest::getResourceOwnerId()const void DeleteCdnIpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCdnIpRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string DeleteCdnIpRequest::getSourceIp()const void DeleteCdnIpRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DeleteCdnIpRequest::getCdnIp()const @@ -66,7 +66,7 @@ std::string DeleteCdnIpRequest::getCdnIp()const void DeleteCdnIpRequest::setCdnIp(const std::string& cdnIp) { cdnIp_ = cdnIp; - setParameter("CdnIp", cdnIp); + setCoreParameter("CdnIp", cdnIp); } std::string DeleteCdnIpRequest::getLang()const @@ -77,7 +77,7 @@ std::string DeleteCdnIpRequest::getLang()const void DeleteCdnIpRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteCdnIpRequest::getSourceCode()const @@ -88,6 +88,6 @@ std::string DeleteCdnIpRequest::getSourceCode()const void DeleteCdnIpRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DeleteCdnIpResult.cc b/jarvis/src/model/DeleteCdnIpResult.cc index 549ae6296..c86828a3d 100644 --- a/jarvis/src/model/DeleteCdnIpResult.cc +++ b/jarvis/src/model/DeleteCdnIpResult.cc @@ -35,10 +35,13 @@ DeleteCdnIpResult::~DeleteCdnIpResult() void DeleteCdnIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DeleteCdnSubscriptionRequest.cc b/jarvis/src/model/DeleteCdnSubscriptionRequest.cc index d36898c5f..4b2722f3b 100644 --- a/jarvis/src/model/DeleteCdnSubscriptionRequest.cc +++ b/jarvis/src/model/DeleteCdnSubscriptionRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCdnSubscriptionRequest::getSourceIp()const void DeleteCdnSubscriptionRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DeleteCdnSubscriptionRequest::getLang()const @@ -44,7 +44,7 @@ std::string DeleteCdnSubscriptionRequest::getLang()const void DeleteCdnSubscriptionRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteCdnSubscriptionRequest::getCdnUidList()const @@ -55,7 +55,7 @@ std::string DeleteCdnSubscriptionRequest::getCdnUidList()const void DeleteCdnSubscriptionRequest::setCdnUidList(const std::string& cdnUidList) { cdnUidList_ = cdnUidList; - setParameter("CdnUidList", cdnUidList); + setCoreParameter("CdnUidList", cdnUidList); } std::string DeleteCdnSubscriptionRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DeleteCdnSubscriptionRequest::getSourceCode()const void DeleteCdnSubscriptionRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DeleteCdnSubscriptionResult.cc b/jarvis/src/model/DeleteCdnSubscriptionResult.cc index 1b56cec16..317500df5 100644 --- a/jarvis/src/model/DeleteCdnSubscriptionResult.cc +++ b/jarvis/src/model/DeleteCdnSubscriptionResult.cc @@ -35,10 +35,13 @@ DeleteCdnSubscriptionResult::~DeleteCdnSubscriptionResult() void DeleteCdnSubscriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DeleteConsoleAccessWhiteListRequest.cc b/jarvis/src/model/DeleteConsoleAccessWhiteListRequest.cc index 766fa4119..7fcaaad48 100644 --- a/jarvis/src/model/DeleteConsoleAccessWhiteListRequest.cc +++ b/jarvis/src/model/DeleteConsoleAccessWhiteListRequest.cc @@ -33,7 +33,7 @@ std::string DeleteConsoleAccessWhiteListRequest::getSourceIp()const void DeleteConsoleAccessWhiteListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DeleteConsoleAccessWhiteListRequest::getLang()const @@ -44,7 +44,7 @@ std::string DeleteConsoleAccessWhiteListRequest::getLang()const void DeleteConsoleAccessWhiteListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteConsoleAccessWhiteListRequest::getDisableWhitelist()const @@ -55,7 +55,7 @@ std::string DeleteConsoleAccessWhiteListRequest::getDisableWhitelist()const void DeleteConsoleAccessWhiteListRequest::setDisableWhitelist(const std::string& disableWhitelist) { disableWhitelist_ = disableWhitelist; - setParameter("DisableWhitelist", disableWhitelist); + setCoreParameter("DisableWhitelist", disableWhitelist); } std::string DeleteConsoleAccessWhiteListRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DeleteConsoleAccessWhiteListRequest::getSourceCode()const void DeleteConsoleAccessWhiteListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DeleteConsoleAccessWhiteListResult.cc b/jarvis/src/model/DeleteConsoleAccessWhiteListResult.cc index 6ece55dec..b24bc24de 100644 --- a/jarvis/src/model/DeleteConsoleAccessWhiteListResult.cc +++ b/jarvis/src/model/DeleteConsoleAccessWhiteListResult.cc @@ -35,10 +35,13 @@ DeleteConsoleAccessWhiteListResult::~DeleteConsoleAccessWhiteListResult() void DeleteConsoleAccessWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DeleteIpWhiteBaselineRequest.cc b/jarvis/src/model/DeleteIpWhiteBaselineRequest.cc new file mode 100644 index 000000000..3abe4621f --- /dev/null +++ b/jarvis/src/model/DeleteIpWhiteBaselineRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Jarvis::Model::DeleteIpWhiteBaselineRequest; + +DeleteIpWhiteBaselineRequest::DeleteIpWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DeleteIpWhiteBaseline") +{} + +DeleteIpWhiteBaselineRequest::~DeleteIpWhiteBaselineRequest() +{} + +long DeleteIpWhiteBaselineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteIpWhiteBaselineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteIpWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteIpWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DeleteIpWhiteBaselineRequest::getWblIpList()const +{ + return wblIpList_; +} + +void DeleteIpWhiteBaselineRequest::setWblIpList(const std::string& wblIpList) +{ + wblIpList_ = wblIpList; + setCoreParameter("WblIpList", wblIpList); +} + +std::string DeleteIpWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void DeleteIpWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DeleteIpWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DeleteIpWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DeleteIpWhiteBaselineResult.cc b/jarvis/src/model/DeleteIpWhiteBaselineResult.cc new file mode 100644 index 000000000..741a32a6e --- /dev/null +++ b/jarvis/src/model/DeleteIpWhiteBaselineResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DeleteIpWhiteBaselineResult::DeleteIpWhiteBaselineResult() : + ServiceResult() +{} + +DeleteIpWhiteBaselineResult::DeleteIpWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIpWhiteBaselineResult::~DeleteIpWhiteBaselineResult() +{} + +void DeleteIpWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string DeleteIpWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DeleteUidWhiteBaselineRequest.cc b/jarvis/src/model/DeleteUidWhiteBaselineRequest.cc new file mode 100644 index 000000000..fdd771be3 --- /dev/null +++ b/jarvis/src/model/DeleteUidWhiteBaselineRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Jarvis::Model::DeleteUidWhiteBaselineRequest; + +DeleteUidWhiteBaselineRequest::DeleteUidWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DeleteUidWhiteBaseline") +{} + +DeleteUidWhiteBaselineRequest::~DeleteUidWhiteBaselineRequest() +{} + +long DeleteUidWhiteBaselineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteUidWhiteBaselineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteUidWhiteBaselineRequest::getWblUidList()const +{ + return wblUidList_; +} + +void DeleteUidWhiteBaselineRequest::setWblUidList(const std::string& wblUidList) +{ + wblUidList_ = wblUidList; + setCoreParameter("WblUidList", wblUidList); +} + +std::string DeleteUidWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteUidWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DeleteUidWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void DeleteUidWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DeleteUidWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DeleteUidWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DeleteUidWhiteBaselineResult.cc b/jarvis/src/model/DeleteUidWhiteBaselineResult.cc new file mode 100644 index 000000000..9113b939e --- /dev/null +++ b/jarvis/src/model/DeleteUidWhiteBaselineResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DeleteUidWhiteBaselineResult::DeleteUidWhiteBaselineResult() : + ServiceResult() +{} + +DeleteUidWhiteBaselineResult::DeleteUidWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUidWhiteBaselineResult::~DeleteUidWhiteBaselineResult() +{} + +void DeleteUidWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string DeleteUidWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DeleteUidWhiteListGroupRequest.cc b/jarvis/src/model/DeleteUidWhiteListGroupRequest.cc index 77cd62a27..7cdb1c4ff 100644 --- a/jarvis/src/model/DeleteUidWhiteListGroupRequest.cc +++ b/jarvis/src/model/DeleteUidWhiteListGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteUidWhiteListGroupRequest::getGroupIdList()const void DeleteUidWhiteListGroupRequest::setGroupIdList(const std::string& groupIdList) { groupIdList_ = groupIdList; - setParameter("GroupIdList", groupIdList); + setCoreParameter("GroupIdList", groupIdList); } std::string DeleteUidWhiteListGroupRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DeleteUidWhiteListGroupRequest::getSourceIp()const void DeleteUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DeleteUidWhiteListGroupRequest::getLang()const @@ -55,7 +55,7 @@ std::string DeleteUidWhiteListGroupRequest::getLang()const void DeleteUidWhiteListGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DeleteUidWhiteListGroupRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DeleteUidWhiteListGroupRequest::getSourceCode()const void DeleteUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DeleteUidWhiteListGroupResult.cc b/jarvis/src/model/DeleteUidWhiteListGroupResult.cc index c8aeaf1e5..bbb57c783 100644 --- a/jarvis/src/model/DeleteUidWhiteListGroupResult.cc +++ b/jarvis/src/model/DeleteUidWhiteListGroupResult.cc @@ -35,10 +35,13 @@ DeleteUidWhiteListGroupResult::~DeleteUidWhiteListGroupResult() void DeleteUidWhiteListGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DeleteWhiteListConditionalRequest.cc b/jarvis/src/model/DeleteWhiteListConditionalRequest.cc new file mode 100644 index 000000000..ea73caa43 --- /dev/null +++ b/jarvis/src/model/DeleteWhiteListConditionalRequest.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 + +using AlibabaCloud::Jarvis::Model::DeleteWhiteListConditionalRequest; + +DeleteWhiteListConditionalRequest::DeleteWhiteListConditionalRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DeleteWhiteListConditional") +{} + +DeleteWhiteListConditionalRequest::~DeleteWhiteListConditionalRequest() +{} + +std::string DeleteWhiteListConditionalRequest::getSrcIP()const +{ + return srcIP_; +} + +void DeleteWhiteListConditionalRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setCoreParameter("SrcIP", srcIP); +} + +std::string DeleteWhiteListConditionalRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteWhiteListConditionalRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DeleteWhiteListConditionalRequest::getQueryProduct()const +{ + return queryProduct_; +} + +void DeleteWhiteListConditionalRequest::setQueryProduct(const std::string& queryProduct) +{ + queryProduct_ = queryProduct; + setCoreParameter("QueryProduct", queryProduct); +} + +std::string DeleteWhiteListConditionalRequest::getDstIP()const +{ + return dstIP_; +} + +void DeleteWhiteListConditionalRequest::setDstIP(const std::string& dstIP) +{ + dstIP_ = dstIP; + setCoreParameter("DstIP", dstIP); +} + +std::string DeleteWhiteListConditionalRequest::getLang()const +{ + return lang_; +} + +void DeleteWhiteListConditionalRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DeleteWhiteListConditionalRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DeleteWhiteListConditionalRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DeleteWhiteListConditionalResult.cc b/jarvis/src/model/DeleteWhiteListConditionalResult.cc new file mode 100644 index 000000000..4e3c0a5e3 --- /dev/null +++ b/jarvis/src/model/DeleteWhiteListConditionalResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DeleteWhiteListConditionalResult::DeleteWhiteListConditionalResult() : + ServiceResult() +{} + +DeleteWhiteListConditionalResult::DeleteWhiteListConditionalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteWhiteListConditionalResult::~DeleteWhiteListConditionalResult() +{} + +void DeleteWhiteListConditionalResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string DeleteWhiteListConditionalResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DeleteWhiteListDbItemConditionalRequest.cc b/jarvis/src/model/DeleteWhiteListDbItemConditionalRequest.cc new file mode 100644 index 000000000..650c7924a --- /dev/null +++ b/jarvis/src/model/DeleteWhiteListDbItemConditionalRequest.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 + +using AlibabaCloud::Jarvis::Model::DeleteWhiteListDbItemConditionalRequest; + +DeleteWhiteListDbItemConditionalRequest::DeleteWhiteListDbItemConditionalRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DeleteWhiteListDbItemConditional") +{} + +DeleteWhiteListDbItemConditionalRequest::~DeleteWhiteListDbItemConditionalRequest() +{} + +std::string DeleteWhiteListDbItemConditionalRequest::getSrcIP()const +{ + return srcIP_; +} + +void DeleteWhiteListDbItemConditionalRequest::setSrcIP(const std::string& srcIP) +{ + srcIP_ = srcIP; + setCoreParameter("SrcIP", srcIP); +} + +std::string DeleteWhiteListDbItemConditionalRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteWhiteListDbItemConditionalRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DeleteWhiteListDbItemConditionalRequest::getQueryProduct()const +{ + return queryProduct_; +} + +void DeleteWhiteListDbItemConditionalRequest::setQueryProduct(const std::string& queryProduct) +{ + queryProduct_ = queryProduct; + setCoreParameter("QueryProduct", queryProduct); +} + +std::string DeleteWhiteListDbItemConditionalRequest::getDstIP()const +{ + return dstIP_; +} + +void DeleteWhiteListDbItemConditionalRequest::setDstIP(const std::string& dstIP) +{ + dstIP_ = dstIP; + setCoreParameter("DstIP", dstIP); +} + +std::string DeleteWhiteListDbItemConditionalRequest::getLang()const +{ + return lang_; +} + +void DeleteWhiteListDbItemConditionalRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DeleteWhiteListDbItemConditionalRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DeleteWhiteListDbItemConditionalRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/DeleteWhiteListDbItemConditionalResult.cc b/jarvis/src/model/DeleteWhiteListDbItemConditionalResult.cc new file mode 100644 index 000000000..0b080ace8 --- /dev/null +++ b/jarvis/src/model/DeleteWhiteListDbItemConditionalResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DeleteWhiteListDbItemConditionalResult::DeleteWhiteListDbItemConditionalResult() : + ServiceResult() +{} + +DeleteWhiteListDbItemConditionalResult::DeleteWhiteListDbItemConditionalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteWhiteListDbItemConditionalResult::~DeleteWhiteListDbItemConditionalResult() +{} + +void DeleteWhiteListDbItemConditionalResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string DeleteWhiteListDbItemConditionalResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeAccessWhiteListEipListRequest.cc b/jarvis/src/model/DescribeAccessWhiteListEipListRequest.cc index 01928eb05..3973f49f9 100644 --- a/jarvis/src/model/DescribeAccessWhiteListEipListRequest.cc +++ b/jarvis/src/model/DescribeAccessWhiteListEipListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccessWhiteListEipListRequest::getSourceIp()const void DescribeAccessWhiteListEipListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeAccessWhiteListEipListRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeAccessWhiteListEipListRequest::getLang()const void DescribeAccessWhiteListEipListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeAccessWhiteListEipListRequest::getSourceCode()const @@ -55,6 +55,6 @@ std::string DescribeAccessWhiteListEipListRequest::getSourceCode()const void DescribeAccessWhiteListEipListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeAccessWhiteListEipListResult.cc b/jarvis/src/model/DescribeAccessWhiteListEipListResult.cc index 1474fd2f3..d08a024b8 100644 --- a/jarvis/src/model/DescribeAccessWhiteListEipListResult.cc +++ b/jarvis/src/model/DescribeAccessWhiteListEipListResult.cc @@ -35,10 +35,13 @@ DescribeAccessWhiteListEipListResult::~DescribeAccessWhiteListEipListResult() void DescribeAccessWhiteListEipListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEipList = value["EipList"]["Ecs"]; for (auto value : allEipList) diff --git a/jarvis/src/model/DescribeAccessWhiteListGroupRequest.cc b/jarvis/src/model/DescribeAccessWhiteListGroupRequest.cc index e9a5770fe..9a61864b4 100644 --- a/jarvis/src/model/DescribeAccessWhiteListGroupRequest.cc +++ b/jarvis/src/model/DescribeAccessWhiteListGroupRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccessWhiteListGroupRequest::getSrcIP()const void DescribeAccessWhiteListGroupRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string DescribeAccessWhiteListGroupRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeAccessWhiteListGroupRequest::getSourceIp()const void DescribeAccessWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeAccessWhiteListGroupRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeAccessWhiteListGroupRequest::getPageSize()const void DescribeAccessWhiteListGroupRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeAccessWhiteListGroupRequest::getQueryProduct()const @@ -66,7 +66,7 @@ std::string DescribeAccessWhiteListGroupRequest::getQueryProduct()const void DescribeAccessWhiteListGroupRequest::setQueryProduct(const std::string& queryProduct) { queryProduct_ = queryProduct; - setParameter("QueryProduct", queryProduct); + setCoreParameter("QueryProduct", queryProduct); } int DescribeAccessWhiteListGroupRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeAccessWhiteListGroupRequest::getCurrentPage()const void DescribeAccessWhiteListGroupRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } int DescribeAccessWhiteListGroupRequest::getWhiteListType()const @@ -88,7 +88,7 @@ int DescribeAccessWhiteListGroupRequest::getWhiteListType()const void DescribeAccessWhiteListGroupRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string DescribeAccessWhiteListGroupRequest::getDstIP()const @@ -99,7 +99,7 @@ std::string DescribeAccessWhiteListGroupRequest::getDstIP()const void DescribeAccessWhiteListGroupRequest::setDstIP(const std::string& dstIP) { dstIP_ = dstIP; - setParameter("DstIP", dstIP); + setCoreParameter("DstIP", dstIP); } std::string DescribeAccessWhiteListGroupRequest::getLang()const @@ -110,7 +110,7 @@ std::string DescribeAccessWhiteListGroupRequest::getLang()const void DescribeAccessWhiteListGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeAccessWhiteListGroupRequest::getStatus()const @@ -121,7 +121,7 @@ std::string DescribeAccessWhiteListGroupRequest::getStatus()const void DescribeAccessWhiteListGroupRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } std::string DescribeAccessWhiteListGroupRequest::getSourceCode()const @@ -132,6 +132,6 @@ std::string DescribeAccessWhiteListGroupRequest::getSourceCode()const void DescribeAccessWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeAccessWhiteListGroupResult.cc b/jarvis/src/model/DescribeAccessWhiteListGroupResult.cc index bba78349c..5d9b334c0 100644 --- a/jarvis/src/model/DescribeAccessWhiteListGroupResult.cc +++ b/jarvis/src/model/DescribeAccessWhiteListGroupResult.cc @@ -35,10 +35,13 @@ DescribeAccessWhiteListGroupResult::~DescribeAccessWhiteListGroupResult() void DescribeAccessWhiteListGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeAccessWhiteListSlbListRequest.cc b/jarvis/src/model/DescribeAccessWhiteListSlbListRequest.cc index f82c4aacd..19489f1ec 100644 --- a/jarvis/src/model/DescribeAccessWhiteListSlbListRequest.cc +++ b/jarvis/src/model/DescribeAccessWhiteListSlbListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccessWhiteListSlbListRequest::getSourceIp()const void DescribeAccessWhiteListSlbListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeAccessWhiteListSlbListRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeAccessWhiteListSlbListRequest::getLang()const void DescribeAccessWhiteListSlbListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeAccessWhiteListSlbListRequest::getSourceCode()const @@ -55,6 +55,6 @@ std::string DescribeAccessWhiteListSlbListRequest::getSourceCode()const void DescribeAccessWhiteListSlbListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeAccessWhiteListSlbListResult.cc b/jarvis/src/model/DescribeAccessWhiteListSlbListResult.cc index b6a7c9663..7d47dc882 100644 --- a/jarvis/src/model/DescribeAccessWhiteListSlbListResult.cc +++ b/jarvis/src/model/DescribeAccessWhiteListSlbListResult.cc @@ -35,10 +35,13 @@ DescribeAccessWhiteListSlbListResult::~DescribeAccessWhiteListSlbListResult() void DescribeAccessWhiteListSlbListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSlbList = value["SlbList"]["Ecs"]; for (auto value : allSlbList) diff --git a/jarvis/src/model/DescribeAccessWhitelistEcsListRequest.cc b/jarvis/src/model/DescribeAccessWhitelistEcsListRequest.cc index 99e1230ef..e8974e788 100644 --- a/jarvis/src/model/DescribeAccessWhitelistEcsListRequest.cc +++ b/jarvis/src/model/DescribeAccessWhitelistEcsListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccessWhitelistEcsListRequest::getSourceIp()const void DescribeAccessWhitelistEcsListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeAccessWhitelistEcsListRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeAccessWhitelistEcsListRequest::getLang()const void DescribeAccessWhitelistEcsListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeAccessWhitelistEcsListRequest::getSourceCode()const @@ -55,6 +55,6 @@ std::string DescribeAccessWhitelistEcsListRequest::getSourceCode()const void DescribeAccessWhitelistEcsListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeAccessWhitelistEcsListResult.cc b/jarvis/src/model/DescribeAccessWhitelistEcsListResult.cc index 8f0d5fc67..d428f17ce 100644 --- a/jarvis/src/model/DescribeAccessWhitelistEcsListResult.cc +++ b/jarvis/src/model/DescribeAccessWhitelistEcsListResult.cc @@ -35,10 +35,13 @@ DescribeAccessWhitelistEcsListResult::~DescribeAccessWhitelistEcsListResult() void DescribeAccessWhitelistEcsListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEcsList = value["EcsList"]["Ecs"]; for (auto value : allEcsList) diff --git a/jarvis/src/model/DescribeCdnCertifyRequest.cc b/jarvis/src/model/DescribeCdnCertifyRequest.cc index fe0f023fa..997d23e91 100644 --- a/jarvis/src/model/DescribeCdnCertifyRequest.cc +++ b/jarvis/src/model/DescribeCdnCertifyRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnCertifyRequest::getSourceIp()const void DescribeCdnCertifyRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeCdnCertifyRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeCdnCertifyRequest::getLang()const void DescribeCdnCertifyRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeCdnCertifyRequest::getSourceCode()const @@ -55,6 +55,6 @@ std::string DescribeCdnCertifyRequest::getSourceCode()const void DescribeCdnCertifyRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeCdnCertifyResult.cc b/jarvis/src/model/DescribeCdnCertifyResult.cc index c32487c88..24836a4f3 100644 --- a/jarvis/src/model/DescribeCdnCertifyResult.cc +++ b/jarvis/src/model/DescribeCdnCertifyResult.cc @@ -35,10 +35,13 @@ DescribeCdnCertifyResult::~DescribeCdnCertifyResult() void DescribeCdnCertifyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["IsCdnVendor"].isNull()) isCdnVendor_ = value["IsCdnVendor"].asString() == "true"; diff --git a/jarvis/src/model/DescribeCdnIpListRequest.cc b/jarvis/src/model/DescribeCdnIpListRequest.cc index 02db79174..72f848c4e 100644 --- a/jarvis/src/model/DescribeCdnIpListRequest.cc +++ b/jarvis/src/model/DescribeCdnIpListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnIpListRequest::getSrcIP()const void DescribeCdnIpListRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string DescribeCdnIpListRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeCdnIpListRequest::getSourceIp()const void DescribeCdnIpListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeCdnIpListRequest::getWlState()const @@ -55,7 +55,7 @@ int DescribeCdnIpListRequest::getWlState()const void DescribeCdnIpListRequest::setWlState(int wlState) { wlState_ = wlState; - setParameter("WlState", std::to_string(wlState)); + setCoreParameter("WlState", std::to_string(wlState)); } int DescribeCdnIpListRequest::getPageSize()const @@ -66,7 +66,7 @@ int DescribeCdnIpListRequest::getPageSize()const void DescribeCdnIpListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeCdnIpListRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeCdnIpListRequest::getCurrentPage()const void DescribeCdnIpListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeCdnIpListRequest::getLang()const @@ -88,7 +88,7 @@ std::string DescribeCdnIpListRequest::getLang()const void DescribeCdnIpListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeCdnIpListRequest::getSourceCode()const @@ -99,6 +99,6 @@ std::string DescribeCdnIpListRequest::getSourceCode()const void DescribeCdnIpListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeCdnIpListResult.cc b/jarvis/src/model/DescribeCdnIpListResult.cc index 0d1edc474..6ea6daddb 100644 --- a/jarvis/src/model/DescribeCdnIpListResult.cc +++ b/jarvis/src/model/DescribeCdnIpListResult.cc @@ -35,10 +35,13 @@ DescribeCdnIpListResult::~DescribeCdnIpListResult() void DescribeCdnIpListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeCdnSubscriptionRequest.cc b/jarvis/src/model/DescribeCdnSubscriptionRequest.cc index 941f8008c..c61ce544b 100644 --- a/jarvis/src/model/DescribeCdnSubscriptionRequest.cc +++ b/jarvis/src/model/DescribeCdnSubscriptionRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnSubscriptionRequest::getSourceIp()const void DescribeCdnSubscriptionRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeCdnSubscriptionRequest::getSubscriptionState()const @@ -44,7 +44,7 @@ int DescribeCdnSubscriptionRequest::getSubscriptionState()const void DescribeCdnSubscriptionRequest::setSubscriptionState(int subscriptionState) { subscriptionState_ = subscriptionState; - setParameter("SubscriptionState", std::to_string(subscriptionState)); + setCoreParameter("SubscriptionState", std::to_string(subscriptionState)); } int DescribeCdnSubscriptionRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeCdnSubscriptionRequest::getPageSize()const void DescribeCdnSubscriptionRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeCdnSubscriptionRequest::getCurrentPage()const @@ -66,7 +66,7 @@ int DescribeCdnSubscriptionRequest::getCurrentPage()const void DescribeCdnSubscriptionRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeCdnSubscriptionRequest::getLang()const @@ -77,7 +77,7 @@ std::string DescribeCdnSubscriptionRequest::getLang()const void DescribeCdnSubscriptionRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeCdnSubscriptionRequest::getVendorName()const @@ -88,7 +88,7 @@ std::string DescribeCdnSubscriptionRequest::getVendorName()const void DescribeCdnSubscriptionRequest::setVendorName(const std::string& vendorName) { vendorName_ = vendorName; - setParameter("VendorName", vendorName); + setCoreParameter("VendorName", vendorName); } std::string DescribeCdnSubscriptionRequest::getSourceCode()const @@ -99,6 +99,6 @@ std::string DescribeCdnSubscriptionRequest::getSourceCode()const void DescribeCdnSubscriptionRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeCdnSubscriptionResult.cc b/jarvis/src/model/DescribeCdnSubscriptionResult.cc index 9f32827a3..93da8bba4 100644 --- a/jarvis/src/model/DescribeCdnSubscriptionResult.cc +++ b/jarvis/src/model/DescribeCdnSubscriptionResult.cc @@ -35,10 +35,13 @@ DescribeCdnSubscriptionResult::~DescribeCdnSubscriptionResult() void DescribeCdnSubscriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeCdnVendorRequest.cc b/jarvis/src/model/DescribeCdnVendorRequest.cc index 033008b56..09073c827 100644 --- a/jarvis/src/model/DescribeCdnVendorRequest.cc +++ b/jarvis/src/model/DescribeCdnVendorRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCdnVendorRequest::getSourceIp()const void DescribeCdnVendorRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeCdnVendorRequest::getPageSize()const @@ -44,7 +44,7 @@ int DescribeCdnVendorRequest::getPageSize()const void DescribeCdnVendorRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeCdnVendorRequest::getCurrentPage()const @@ -55,7 +55,7 @@ int DescribeCdnVendorRequest::getCurrentPage()const void DescribeCdnVendorRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeCdnVendorRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeCdnVendorRequest::getLang()const void DescribeCdnVendorRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeCdnVendorRequest::getSourceCode()const @@ -77,6 +77,6 @@ std::string DescribeCdnVendorRequest::getSourceCode()const void DescribeCdnVendorRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeCdnVendorResult.cc b/jarvis/src/model/DescribeCdnVendorResult.cc index b18c61815..b1271284c 100644 --- a/jarvis/src/model/DescribeCdnVendorResult.cc +++ b/jarvis/src/model/DescribeCdnVendorResult.cc @@ -35,10 +35,13 @@ DescribeCdnVendorResult::~DescribeCdnVendorResult() void DescribeCdnVendorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeConsoleAccessWhiteListRequest.cc b/jarvis/src/model/DescribeConsoleAccessWhiteListRequest.cc index 02b923ced..ebdd16b15 100644 --- a/jarvis/src/model/DescribeConsoleAccessWhiteListRequest.cc +++ b/jarvis/src/model/DescribeConsoleAccessWhiteListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeConsoleAccessWhiteListRequest::getSrcIP()const void DescribeConsoleAccessWhiteListRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string DescribeConsoleAccessWhiteListRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeConsoleAccessWhiteListRequest::getSourceIp()const void DescribeConsoleAccessWhiteListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeConsoleAccessWhiteListRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeConsoleAccessWhiteListRequest::getPageSize()const void DescribeConsoleAccessWhiteListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeConsoleAccessWhiteListRequest::getQueryProduct()const @@ -66,7 +66,7 @@ std::string DescribeConsoleAccessWhiteListRequest::getQueryProduct()const void DescribeConsoleAccessWhiteListRequest::setQueryProduct(const std::string& queryProduct) { queryProduct_ = queryProduct; - setParameter("QueryProduct", queryProduct); + setCoreParameter("QueryProduct", queryProduct); } int DescribeConsoleAccessWhiteListRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeConsoleAccessWhiteListRequest::getCurrentPage()const void DescribeConsoleAccessWhiteListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } int DescribeConsoleAccessWhiteListRequest::getWhiteListType()const @@ -88,7 +88,7 @@ int DescribeConsoleAccessWhiteListRequest::getWhiteListType()const void DescribeConsoleAccessWhiteListRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string DescribeConsoleAccessWhiteListRequest::getDstIP()const @@ -99,7 +99,7 @@ std::string DescribeConsoleAccessWhiteListRequest::getDstIP()const void DescribeConsoleAccessWhiteListRequest::setDstIP(const std::string& dstIP) { dstIP_ = dstIP; - setParameter("DstIP", dstIP); + setCoreParameter("DstIP", dstIP); } std::string DescribeConsoleAccessWhiteListRequest::getLang()const @@ -110,7 +110,7 @@ std::string DescribeConsoleAccessWhiteListRequest::getLang()const void DescribeConsoleAccessWhiteListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeConsoleAccessWhiteListRequest::getStatus()const @@ -121,7 +121,7 @@ std::string DescribeConsoleAccessWhiteListRequest::getStatus()const void DescribeConsoleAccessWhiteListRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } std::string DescribeConsoleAccessWhiteListRequest::getSourceCode()const @@ -132,6 +132,6 @@ std::string DescribeConsoleAccessWhiteListRequest::getSourceCode()const void DescribeConsoleAccessWhiteListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeConsoleAccessWhiteListResult.cc b/jarvis/src/model/DescribeConsoleAccessWhiteListResult.cc index 6236a615d..e1508c90b 100644 --- a/jarvis/src/model/DescribeConsoleAccessWhiteListResult.cc +++ b/jarvis/src/model/DescribeConsoleAccessWhiteListResult.cc @@ -35,10 +35,13 @@ DescribeConsoleAccessWhiteListResult::~DescribeConsoleAccessWhiteListResult() void DescribeConsoleAccessWhiteListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeCpmcPunishListRequest.cc b/jarvis/src/model/DescribeCpmcPunishListRequest.cc index 0721feed0..fb21613cf 100644 --- a/jarvis/src/model/DescribeCpmcPunishListRequest.cc +++ b/jarvis/src/model/DescribeCpmcPunishListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCpmcPunishListRequest::getSrcIP()const void DescribeCpmcPunishListRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string DescribeCpmcPunishListRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeCpmcPunishListRequest::getSourceIp()const void DescribeCpmcPunishListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeCpmcPunishListRequest::getPageSize()const @@ -55,7 +55,18 @@ int DescribeCpmcPunishListRequest::getPageSize()const void DescribeCpmcPunishListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCpmcPunishListRequest::getPunishType()const +{ + return punishType_; +} + +void DescribeCpmcPunishListRequest::setPunishType(const std::string& punishType) +{ + punishType_ = punishType; + setCoreParameter("PunishType", punishType); } int DescribeCpmcPunishListRequest::getCurrentPage()const @@ -66,7 +77,7 @@ int DescribeCpmcPunishListRequest::getCurrentPage()const void DescribeCpmcPunishListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeCpmcPunishListRequest::getPunishStatus()const @@ -77,7 +88,7 @@ std::string DescribeCpmcPunishListRequest::getPunishStatus()const void DescribeCpmcPunishListRequest::setPunishStatus(const std::string& punishStatus) { punishStatus_ = punishStatus; - setParameter("PunishStatus", punishStatus); + setCoreParameter("PunishStatus", punishStatus); } std::string DescribeCpmcPunishListRequest::getLang()const @@ -88,7 +99,7 @@ std::string DescribeCpmcPunishListRequest::getLang()const void DescribeCpmcPunishListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeCpmcPunishListRequest::getSourceCode()const @@ -99,6 +110,6 @@ std::string DescribeCpmcPunishListRequest::getSourceCode()const void DescribeCpmcPunishListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeCpmcPunishListResult.cc b/jarvis/src/model/DescribeCpmcPunishListResult.cc index a7e46c396..659eda654 100644 --- a/jarvis/src/model/DescribeCpmcPunishListResult.cc +++ b/jarvis/src/model/DescribeCpmcPunishListResult.cc @@ -35,10 +35,13 @@ DescribeCpmcPunishListResult::~DescribeCpmcPunishListResult() void DescribeCpmcPunishListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) @@ -68,6 +71,8 @@ void DescribeCpmcPunishListResult::parse(const std::string &payload) dataListObject.srcIP = value["SrcIP"].asString(); if(!value["Reason"].isNull()) dataListObject.reason = value["Reason"].asString(); + if(!value["Description"].isNull()) + dataListObject.description = value["Description"].asString(); dataList_.push_back(dataListObject); } auto pageInfoNode = value["PageInfo"]; diff --git a/jarvis/src/model/DescribeDdosDefenseInfoRequest.cc b/jarvis/src/model/DescribeDdosDefenseInfoRequest.cc index fb6032b62..878cab61b 100644 --- a/jarvis/src/model/DescribeDdosDefenseInfoRequest.cc +++ b/jarvis/src/model/DescribeDdosDefenseInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDdosDefenseInfoRequest::getSourceIp()const void DescribeDdosDefenseInfoRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeDdosDefenseInfoRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeDdosDefenseInfoRequest::getLang()const void DescribeDdosDefenseInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DescribeDdosDefenseInfoRequest::getSrcUid()const @@ -55,7 +55,7 @@ long DescribeDdosDefenseInfoRequest::getSrcUid()const void DescribeDdosDefenseInfoRequest::setSrcUid(long srcUid) { srcUid_ = srcUid; - setParameter("SrcUid", std::to_string(srcUid)); + setCoreParameter("SrcUid", std::to_string(srcUid)); } std::string DescribeDdosDefenseInfoRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DescribeDdosDefenseInfoRequest::getSourceCode()const void DescribeDdosDefenseInfoRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeDdosDefenseInfoResult.cc b/jarvis/src/model/DescribeDdosDefenseInfoResult.cc index f6a44d4e1..8e01ec45b 100644 --- a/jarvis/src/model/DescribeDdosDefenseInfoResult.cc +++ b/jarvis/src/model/DescribeDdosDefenseInfoResult.cc @@ -35,10 +35,13 @@ DescribeDdosDefenseInfoResult::~DescribeDdosDefenseInfoResult() void DescribeDdosDefenseInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDdosDefenseThreshold = value["DdosDefenseThreshold"]["DdosDefenseThresholdItem"]; for (auto value : allDdosDefenseThreshold) diff --git a/jarvis/src/model/DescribeEcsListPageRequest.cc b/jarvis/src/model/DescribeEcsListPageRequest.cc index c655cde54..4374c95df 100644 --- a/jarvis/src/model/DescribeEcsListPageRequest.cc +++ b/jarvis/src/model/DescribeEcsListPageRequest.cc @@ -33,7 +33,7 @@ std::string DescribeEcsListPageRequest::getSourceIp()const void DescribeEcsListPageRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeEcsListPageRequest::getPageSize()const @@ -44,7 +44,7 @@ int DescribeEcsListPageRequest::getPageSize()const void DescribeEcsListPageRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeEcsListPageRequest::getCurrentPage()const @@ -55,7 +55,7 @@ int DescribeEcsListPageRequest::getCurrentPage()const void DescribeEcsListPageRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeEcsListPageRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeEcsListPageRequest::getLang()const void DescribeEcsListPageRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeEcsListPageRequest::getSourceCode()const @@ -77,6 +77,6 @@ std::string DescribeEcsListPageRequest::getSourceCode()const void DescribeEcsListPageRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeEcsListPageResult.cc b/jarvis/src/model/DescribeEcsListPageResult.cc index 21d2997ae..2885b93de 100644 --- a/jarvis/src/model/DescribeEcsListPageResult.cc +++ b/jarvis/src/model/DescribeEcsListPageResult.cc @@ -35,10 +35,13 @@ DescribeEcsListPageResult::~DescribeEcsListPageResult() void DescribeEcsListPageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeIpWhiteBaselineRequest.cc b/jarvis/src/model/DescribeIpWhiteBaselineRequest.cc new file mode 100644 index 000000000..7eafb7c02 --- /dev/null +++ b/jarvis/src/model/DescribeIpWhiteBaselineRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Jarvis::Model::DescribeIpWhiteBaselineRequest; + +DescribeIpWhiteBaselineRequest::DescribeIpWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeIpWhiteBaseline") +{} + +DescribeIpWhiteBaselineRequest::~DescribeIpWhiteBaselineRequest() +{} + +std::string DescribeIpWhiteBaselineRequest::getSrcIp()const +{ + return srcIp_; +} + +void DescribeIpWhiteBaselineRequest::setSrcIp(const std::string& srcIp) +{ + srcIp_ = srcIp; + setCoreParameter("SrcIp", srcIp); +} + +std::string DescribeIpWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeIpWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeIpWhiteBaselineRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeIpWhiteBaselineRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeIpWhiteBaselineRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeIpWhiteBaselineRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeIpWhiteBaselineRequest::getRemark()const +{ + return remark_; +} + +void DescribeIpWhiteBaselineRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string DescribeIpWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void DescribeIpWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeIpWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeIpWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + +std::string DescribeIpWhiteBaselineRequest::getStatus()const +{ + return status_; +} + +void DescribeIpWhiteBaselineRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/jarvis/src/model/DescribeIpWhiteBaselineResult.cc b/jarvis/src/model/DescribeIpWhiteBaselineResult.cc new file mode 100644 index 000000000..2dd4ea971 --- /dev/null +++ b/jarvis/src/model/DescribeIpWhiteBaselineResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeIpWhiteBaselineResult::DescribeIpWhiteBaselineResult() : + ServiceResult() +{} + +DescribeIpWhiteBaselineResult::DescribeIpWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIpWhiteBaselineResult::~DescribeIpWhiteBaselineResult() +{} + +void DescribeIpWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDataList = value["DataList"]["Data"]; + for (auto value : allDataList) + { + Data dataListObject; + if(!value["Id"].isNull()) + dataListObject.id = std::stoi(value["Id"].asString()); + if(!value["OwnerAliUid"].isNull()) + dataListObject.ownerAliUid = std::stoi(value["OwnerAliUid"].asString()); + if(!value["SrcIp"].isNull()) + dataListObject.srcIp = std::stoi(value["SrcIp"].asString()); + if(!value["Status"].isNull()) + dataListObject.status = value["Status"].asString(); + if(!value["Remark"].isNull()) + dataListObject.remark = value["Remark"].asString(); + if(!value["BeginTime"].isNull()) + dataListObject.beginTime = std::stoi(value["BeginTime"].asString()); + if(!value["RealEndTime"].isNull()) + dataListObject.realEndTime = std::stoi(value["RealEndTime"].asString()); + dataList_.push_back(dataListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["total"].isNull()) + pageInfo_.total = std::stoi(pageInfoNode["total"].asString()); + if(!pageInfoNode["pageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString()); + if(!pageInfoNode["currentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::vector DescribeIpWhiteBaselineResult::getDataList()const +{ + return dataList_; +} + +DescribeIpWhiteBaselineResult::PageInfo DescribeIpWhiteBaselineResult::getPageInfo()const +{ + return pageInfo_; +} + +std::string DescribeIpWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribePhoneInfoRequest.cc b/jarvis/src/model/DescribePhoneInfoRequest.cc index b65b3f59b..b85461fa8 100644 --- a/jarvis/src/model/DescribePhoneInfoRequest.cc +++ b/jarvis/src/model/DescribePhoneInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribePhoneInfoRequest::getSourceIp()const void DescribePhoneInfoRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribePhoneInfoRequest::getPhoneNum()const @@ -44,7 +44,7 @@ std::string DescribePhoneInfoRequest::getPhoneNum()const void DescribePhoneInfoRequest::setPhoneNum(const std::string& phoneNum) { phoneNum_ = phoneNum; - setParameter("PhoneNum", phoneNum); + setCoreParameter("PhoneNum", phoneNum); } std::string DescribePhoneInfoRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribePhoneInfoRequest::getLang()const void DescribePhoneInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribePhoneInfoRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DescribePhoneInfoRequest::getSourceCode()const void DescribePhoneInfoRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribePhoneInfoResult.cc b/jarvis/src/model/DescribePhoneInfoResult.cc index 3f6d2de4a..582304b29 100644 --- a/jarvis/src/model/DescribePhoneInfoResult.cc +++ b/jarvis/src/model/DescribePhoneInfoResult.cc @@ -35,10 +35,13 @@ DescribePhoneInfoResult::~DescribePhoneInfoResult() void DescribePhoneInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DescribePunishListRequest.cc b/jarvis/src/model/DescribePunishListRequest.cc index 23fda3898..ccc30943d 100644 --- a/jarvis/src/model/DescribePunishListRequest.cc +++ b/jarvis/src/model/DescribePunishListRequest.cc @@ -33,7 +33,7 @@ std::string DescribePunishListRequest::getSrcIP()const void DescribePunishListRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string DescribePunishListRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribePunishListRequest::getSourceIp()const void DescribePunishListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribePunishListRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribePunishListRequest::getPageSize()const void DescribePunishListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribePunishListRequest::getCurrentPage()const @@ -66,7 +66,7 @@ int DescribePunishListRequest::getCurrentPage()const void DescribePunishListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribePunishListRequest::getPunishStatus()const @@ -77,7 +77,7 @@ std::string DescribePunishListRequest::getPunishStatus()const void DescribePunishListRequest::setPunishStatus(const std::string& punishStatus) { punishStatus_ = punishStatus; - setParameter("PunishStatus", punishStatus); + setCoreParameter("PunishStatus", punishStatus); } std::string DescribePunishListRequest::getLang()const @@ -88,7 +88,7 @@ std::string DescribePunishListRequest::getLang()const void DescribePunishListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DescribePunishListRequest::getSrcUid()const @@ -99,7 +99,7 @@ long DescribePunishListRequest::getSrcUid()const void DescribePunishListRequest::setSrcUid(long srcUid) { srcUid_ = srcUid; - setParameter("SrcUid", std::to_string(srcUid)); + setCoreParameter("SrcUid", std::to_string(srcUid)); } std::string DescribePunishListRequest::getSourceCode()const @@ -110,6 +110,6 @@ std::string DescribePunishListRequest::getSourceCode()const void DescribePunishListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribePunishListResult.cc b/jarvis/src/model/DescribePunishListResult.cc index 6a5f0560c..fdfeffa21 100644 --- a/jarvis/src/model/DescribePunishListResult.cc +++ b/jarvis/src/model/DescribePunishListResult.cc @@ -35,10 +35,13 @@ DescribePunishListResult::~DescribePunishListResult() void DescribePunishListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeResetRecordListRequest.cc b/jarvis/src/model/DescribeResetRecordListRequest.cc index eedcc9788..00acad713 100644 --- a/jarvis/src/model/DescribeResetRecordListRequest.cc +++ b/jarvis/src/model/DescribeResetRecordListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeResetRecordListRequest::getSrcIP()const void DescribeResetRecordListRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string DescribeResetRecordListRequest::getPeriod()const @@ -44,7 +44,7 @@ std::string DescribeResetRecordListRequest::getPeriod()const void DescribeResetRecordListRequest::setPeriod(const std::string& period) { period_ = period; - setParameter("Period", period); + setCoreParameter("Period", period); } std::string DescribeResetRecordListRequest::getSourceIp()const @@ -55,7 +55,7 @@ std::string DescribeResetRecordListRequest::getSourceIp()const void DescribeResetRecordListRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeResetRecordListRequest::getPageSize()const @@ -66,7 +66,7 @@ int DescribeResetRecordListRequest::getPageSize()const void DescribeResetRecordListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeResetRecordListRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeResetRecordListRequest::getCurrentPage()const void DescribeResetRecordListRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeResetRecordListRequest::getDstIP()const @@ -88,7 +88,7 @@ std::string DescribeResetRecordListRequest::getDstIP()const void DescribeResetRecordListRequest::setDstIP(const std::string& dstIP) { dstIP_ = dstIP; - setParameter("DstIP", dstIP); + setCoreParameter("DstIP", dstIP); } std::string DescribeResetRecordListRequest::getRegion()const @@ -99,7 +99,7 @@ std::string DescribeResetRecordListRequest::getRegion()const void DescribeResetRecordListRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string DescribeResetRecordListRequest::getLang()const @@ -110,7 +110,7 @@ std::string DescribeResetRecordListRequest::getLang()const void DescribeResetRecordListRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeResetRecordListRequest::getSourceCode()const @@ -121,6 +121,6 @@ std::string DescribeResetRecordListRequest::getSourceCode()const void DescribeResetRecordListRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeResetRecordListResult.cc b/jarvis/src/model/DescribeResetRecordListResult.cc index 863d5866b..84153d818 100644 --- a/jarvis/src/model/DescribeResetRecordListResult.cc +++ b/jarvis/src/model/DescribeResetRecordListResult.cc @@ -35,10 +35,13 @@ DescribeResetRecordListResult::~DescribeResetRecordListResult() void DescribeResetRecordListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeResetRecordQueryCountRequest.cc b/jarvis/src/model/DescribeResetRecordQueryCountRequest.cc index 52b6ce881..33f595d16 100644 --- a/jarvis/src/model/DescribeResetRecordQueryCountRequest.cc +++ b/jarvis/src/model/DescribeResetRecordQueryCountRequest.cc @@ -33,7 +33,7 @@ std::string DescribeResetRecordQueryCountRequest::getSourceIp()const void DescribeResetRecordQueryCountRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeResetRecordQueryCountRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeResetRecordQueryCountRequest::getLang()const void DescribeResetRecordQueryCountRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeResetRecordQueryCountRequest::getSourceCode()const @@ -55,6 +55,6 @@ std::string DescribeResetRecordQueryCountRequest::getSourceCode()const void DescribeResetRecordQueryCountRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeResetRecordQueryCountResult.cc b/jarvis/src/model/DescribeResetRecordQueryCountResult.cc index 67aed8d74..61f129dc3 100644 --- a/jarvis/src/model/DescribeResetRecordQueryCountResult.cc +++ b/jarvis/src/model/DescribeResetRecordQueryCountResult.cc @@ -35,10 +35,13 @@ DescribeResetRecordQueryCountResult::~DescribeResetRecordQueryCountResult() void DescribeResetRecordQueryCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); diff --git a/jarvis/src/model/DescribeRiskListDetailRequest.cc b/jarvis/src/model/DescribeRiskListDetailRequest.cc index 2da1d9833..6f77717a2 100644 --- a/jarvis/src/model/DescribeRiskListDetailRequest.cc +++ b/jarvis/src/model/DescribeRiskListDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRiskListDetailRequest::getRiskType()const void DescribeRiskListDetailRequest::setRiskType(const std::string& riskType) { riskType_ = riskType; - setParameter("RiskType", riskType); + setCoreParameter("RiskType", riskType); } std::string DescribeRiskListDetailRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeRiskListDetailRequest::getSourceIp()const void DescribeRiskListDetailRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeRiskListDetailRequest::getPageSize()const @@ -55,7 +55,7 @@ int DescribeRiskListDetailRequest::getPageSize()const void DescribeRiskListDetailRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeRiskListDetailRequest::getQueryProduct()const @@ -66,7 +66,7 @@ std::string DescribeRiskListDetailRequest::getQueryProduct()const void DescribeRiskListDetailRequest::setQueryProduct(const std::string& queryProduct) { queryProduct_ = queryProduct; - setParameter("QueryProduct", queryProduct); + setCoreParameter("QueryProduct", queryProduct); } int DescribeRiskListDetailRequest::getCurrentPage()const @@ -77,7 +77,7 @@ int DescribeRiskListDetailRequest::getCurrentPage()const void DescribeRiskListDetailRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string DescribeRiskListDetailRequest::getRiskDescribe()const @@ -88,7 +88,7 @@ std::string DescribeRiskListDetailRequest::getRiskDescribe()const void DescribeRiskListDetailRequest::setRiskDescribe(const std::string& riskDescribe) { riskDescribe_ = riskDescribe; - setParameter("RiskDescribe", riskDescribe); + setCoreParameter("RiskDescribe", riskDescribe); } std::string DescribeRiskListDetailRequest::getLang()const @@ -99,7 +99,7 @@ std::string DescribeRiskListDetailRequest::getLang()const void DescribeRiskListDetailRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DescribeRiskListDetailRequest::getSrcUid()const @@ -110,7 +110,7 @@ long DescribeRiskListDetailRequest::getSrcUid()const void DescribeRiskListDetailRequest::setSrcUid(long srcUid) { srcUid_ = srcUid; - setParameter("SrcUid", std::to_string(srcUid)); + setCoreParameter("SrcUid", std::to_string(srcUid)); } std::string DescribeRiskListDetailRequest::getSourceCode()const @@ -121,7 +121,7 @@ std::string DescribeRiskListDetailRequest::getSourceCode()const void DescribeRiskListDetailRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } std::string DescribeRiskListDetailRequest::getQueryRegionId()const @@ -132,7 +132,7 @@ std::string DescribeRiskListDetailRequest::getQueryRegionId()const void DescribeRiskListDetailRequest::setQueryRegionId(const std::string& queryRegionId) { queryRegionId_ = queryRegionId; - setParameter("QueryRegionId", queryRegionId); + setCoreParameter("QueryRegionId", queryRegionId); } std::string DescribeRiskListDetailRequest::getStatus()const @@ -143,6 +143,6 @@ std::string DescribeRiskListDetailRequest::getStatus()const void DescribeRiskListDetailRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/jarvis/src/model/DescribeRiskListDetailResult.cc b/jarvis/src/model/DescribeRiskListDetailResult.cc index d6ea64041..39015369e 100644 --- a/jarvis/src/model/DescribeRiskListDetailResult.cc +++ b/jarvis/src/model/DescribeRiskListDetailResult.cc @@ -35,10 +35,13 @@ DescribeRiskListDetailResult::~DescribeRiskListDetailResult() void DescribeRiskListDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeRiskTrendRequest.cc b/jarvis/src/model/DescribeRiskTrendRequest.cc index 86b2b61a1..57a608787 100644 --- a/jarvis/src/model/DescribeRiskTrendRequest.cc +++ b/jarvis/src/model/DescribeRiskTrendRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRiskTrendRequest::getSourceIp()const void DescribeRiskTrendRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeRiskTrendRequest::getQueryProduct()const @@ -44,7 +44,7 @@ std::string DescribeRiskTrendRequest::getQueryProduct()const void DescribeRiskTrendRequest::setQueryProduct(const std::string& queryProduct) { queryProduct_ = queryProduct; - setParameter("QueryProduct", queryProduct); + setCoreParameter("QueryProduct", queryProduct); } std::string DescribeRiskTrendRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeRiskTrendRequest::getLang()const void DescribeRiskTrendRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeRiskTrendRequest::getPeroid()const @@ -66,7 +66,7 @@ std::string DescribeRiskTrendRequest::getPeroid()const void DescribeRiskTrendRequest::setPeroid(const std::string& peroid) { peroid_ = peroid; - setParameter("Peroid", peroid); + setCoreParameter("Peroid", peroid); } std::string DescribeRiskTrendRequest::getSourceCode()const @@ -77,7 +77,7 @@ std::string DescribeRiskTrendRequest::getSourceCode()const void DescribeRiskTrendRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } std::string DescribeRiskTrendRequest::getQueryRegionId()const @@ -88,6 +88,6 @@ std::string DescribeRiskTrendRequest::getQueryRegionId()const void DescribeRiskTrendRequest::setQueryRegionId(const std::string& queryRegionId) { queryRegionId_ = queryRegionId; - setParameter("QueryRegionId", queryRegionId); + setCoreParameter("QueryRegionId", queryRegionId); } diff --git a/jarvis/src/model/DescribeRiskTrendResult.cc b/jarvis/src/model/DescribeRiskTrendResult.cc index 640fa5816..97fc75511 100644 --- a/jarvis/src/model/DescribeRiskTrendResult.cc +++ b/jarvis/src/model/DescribeRiskTrendResult.cc @@ -35,10 +35,13 @@ DescribeRiskTrendResult::~DescribeRiskTrendResult() void DescribeRiskTrendResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["DataItem"]; for (auto value : allDataList) diff --git a/jarvis/src/model/DescribeSpecialEcsRequest.cc b/jarvis/src/model/DescribeSpecialEcsRequest.cc index d6e8e3f7f..7afbbeb03 100644 --- a/jarvis/src/model/DescribeSpecialEcsRequest.cc +++ b/jarvis/src/model/DescribeSpecialEcsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSpecialEcsRequest::getTargetIp()const void DescribeSpecialEcsRequest::setTargetIp(const std::string& targetIp) { targetIp_ = targetIp; - setParameter("TargetIp", targetIp); + setCoreParameter("TargetIp", targetIp); } std::string DescribeSpecialEcsRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeSpecialEcsRequest::getSourceIp()const void DescribeSpecialEcsRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeSpecialEcsRequest::getLang()const @@ -55,7 +55,7 @@ std::string DescribeSpecialEcsRequest::getLang()const void DescribeSpecialEcsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeSpecialEcsRequest::getSourceCode()const @@ -66,6 +66,6 @@ std::string DescribeSpecialEcsRequest::getSourceCode()const void DescribeSpecialEcsRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeSpecialEcsResult.cc b/jarvis/src/model/DescribeSpecialEcsResult.cc index 56faa5cec..50f8e1e5b 100644 --- a/jarvis/src/model/DescribeSpecialEcsResult.cc +++ b/jarvis/src/model/DescribeSpecialEcsResult.cc @@ -35,10 +35,13 @@ DescribeSpecialEcsResult::~DescribeSpecialEcsResult() void DescribeSpecialEcsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto ecsInfoNode = value["EcsInfo"]; if(!ecsInfoNode["InstanceId"].isNull()) diff --git a/jarvis/src/model/DescribeUidGcLevelRequest.cc b/jarvis/src/model/DescribeUidGcLevelRequest.cc index 09218c218..8fd0eceb5 100644 --- a/jarvis/src/model/DescribeUidGcLevelRequest.cc +++ b/jarvis/src/model/DescribeUidGcLevelRequest.cc @@ -33,7 +33,7 @@ std::string DescribeUidGcLevelRequest::getSourceIp()const void DescribeUidGcLevelRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeUidGcLevelRequest::getLang()const @@ -44,7 +44,7 @@ std::string DescribeUidGcLevelRequest::getLang()const void DescribeUidGcLevelRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeUidGcLevelRequest::getSourceCode()const @@ -55,6 +55,6 @@ std::string DescribeUidGcLevelRequest::getSourceCode()const void DescribeUidGcLevelRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeUidGcLevelResult.cc b/jarvis/src/model/DescribeUidGcLevelResult.cc index f85c9f3b4..9ea15c620 100644 --- a/jarvis/src/model/DescribeUidGcLevelResult.cc +++ b/jarvis/src/model/DescribeUidGcLevelResult.cc @@ -35,10 +35,13 @@ DescribeUidGcLevelResult::~DescribeUidGcLevelResult() void DescribeUidGcLevelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/DescribeUidWhiteBaselineRequest.cc b/jarvis/src/model/DescribeUidWhiteBaselineRequest.cc new file mode 100644 index 000000000..dc05526ca --- /dev/null +++ b/jarvis/src/model/DescribeUidWhiteBaselineRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Jarvis::Model::DescribeUidWhiteBaselineRequest; + +DescribeUidWhiteBaselineRequest::DescribeUidWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "DescribeUidWhiteBaseline") +{} + +DescribeUidWhiteBaselineRequest::~DescribeUidWhiteBaselineRequest() +{} + +std::string DescribeUidWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeUidWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeUidWhiteBaselineRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeUidWhiteBaselineRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeUidWhiteBaselineRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeUidWhiteBaselineRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeUidWhiteBaselineRequest::getRemark()const +{ + return remark_; +} + +void DescribeUidWhiteBaselineRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string DescribeUidWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void DescribeUidWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long DescribeUidWhiteBaselineRequest::getSrcUid()const +{ + return srcUid_; +} + +void DescribeUidWhiteBaselineRequest::setSrcUid(long srcUid) +{ + srcUid_ = srcUid; + setCoreParameter("SrcUid", std::to_string(srcUid)); +} + +std::string DescribeUidWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void DescribeUidWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + +std::string DescribeUidWhiteBaselineRequest::getStatus()const +{ + return status_; +} + +void DescribeUidWhiteBaselineRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/jarvis/src/model/DescribeUidWhiteBaselineResult.cc b/jarvis/src/model/DescribeUidWhiteBaselineResult.cc new file mode 100644 index 000000000..a16bd9012 --- /dev/null +++ b/jarvis/src/model/DescribeUidWhiteBaselineResult.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::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +DescribeUidWhiteBaselineResult::DescribeUidWhiteBaselineResult() : + ServiceResult() +{} + +DescribeUidWhiteBaselineResult::DescribeUidWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUidWhiteBaselineResult::~DescribeUidWhiteBaselineResult() +{} + +void DescribeUidWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDataList = value["DataList"]["Data"]; + for (auto value : allDataList) + { + Data dataListObject; + if(!value["Id"].isNull()) + dataListObject.id = std::stoi(value["Id"].asString()); + if(!value["OwnerAliUid"].isNull()) + dataListObject.ownerAliUid = std::stoi(value["OwnerAliUid"].asString()); + if(!value["SrcUid"].isNull()) + dataListObject.srcUid = std::stol(value["SrcUid"].asString()); + if(!value["Status"].isNull()) + dataListObject.status = value["Status"].asString(); + if(!value["Remark"].isNull()) + dataListObject.remark = value["Remark"].asString(); + if(!value["BeginTime"].isNull()) + dataListObject.beginTime = std::stoi(value["BeginTime"].asString()); + if(!value["RealEndTime"].isNull()) + dataListObject.realEndTime = std::stoi(value["RealEndTime"].asString()); + dataList_.push_back(dataListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["total"].isNull()) + pageInfo_.total = std::stoi(pageInfoNode["total"].asString()); + if(!pageInfoNode["pageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["pageSize"].asString()); + if(!pageInfoNode["currentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["currentPage"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::vector DescribeUidWhiteBaselineResult::getDataList()const +{ + return dataList_; +} + +DescribeUidWhiteBaselineResult::PageInfo DescribeUidWhiteBaselineResult::getPageInfo()const +{ + return pageInfo_; +} + +std::string DescribeUidWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/DescribeUidWhiteListGroupRequest.cc b/jarvis/src/model/DescribeUidWhiteListGroupRequest.cc index 4bd60b45f..fb2713225 100644 --- a/jarvis/src/model/DescribeUidWhiteListGroupRequest.cc +++ b/jarvis/src/model/DescribeUidWhiteListGroupRequest.cc @@ -33,7 +33,7 @@ std::string DescribeUidWhiteListGroupRequest::getSourceIp()const void DescribeUidWhiteListGroupRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeUidWhiteListGroupRequest::getPageSize()const @@ -44,7 +44,7 @@ int DescribeUidWhiteListGroupRequest::getPageSize()const void DescribeUidWhiteListGroupRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int DescribeUidWhiteListGroupRequest::getCurrentPage()const @@ -55,7 +55,7 @@ int DescribeUidWhiteListGroupRequest::getCurrentPage()const void DescribeUidWhiteListGroupRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } int DescribeUidWhiteListGroupRequest::getWhiteListType()const @@ -66,7 +66,7 @@ int DescribeUidWhiteListGroupRequest::getWhiteListType()const void DescribeUidWhiteListGroupRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string DescribeUidWhiteListGroupRequest::getDstIP()const @@ -77,7 +77,7 @@ std::string DescribeUidWhiteListGroupRequest::getDstIP()const void DescribeUidWhiteListGroupRequest::setDstIP(const std::string& dstIP) { dstIP_ = dstIP; - setParameter("DstIP", dstIP); + setCoreParameter("DstIP", dstIP); } std::string DescribeUidWhiteListGroupRequest::getLang()const @@ -88,7 +88,7 @@ std::string DescribeUidWhiteListGroupRequest::getLang()const void DescribeUidWhiteListGroupRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeUidWhiteListGroupRequest::getSrcUid()const @@ -99,7 +99,7 @@ std::string DescribeUidWhiteListGroupRequest::getSrcUid()const void DescribeUidWhiteListGroupRequest::setSrcUid(const std::string& srcUid) { srcUid_ = srcUid; - setParameter("SrcUid", srcUid); + setCoreParameter("SrcUid", srcUid); } std::string DescribeUidWhiteListGroupRequest::getStatus()const @@ -110,7 +110,7 @@ std::string DescribeUidWhiteListGroupRequest::getStatus()const void DescribeUidWhiteListGroupRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } std::string DescribeUidWhiteListGroupRequest::getSourceCode()const @@ -121,6 +121,6 @@ std::string DescribeUidWhiteListGroupRequest::getSourceCode()const void DescribeUidWhiteListGroupRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/DescribeUidWhiteListGroupResult.cc b/jarvis/src/model/DescribeUidWhiteListGroupResult.cc index 77b0e01a5..3a520799e 100644 --- a/jarvis/src/model/DescribeUidWhiteListGroupResult.cc +++ b/jarvis/src/model/DescribeUidWhiteListGroupResult.cc @@ -35,10 +35,13 @@ DescribeUidWhiteListGroupResult::~DescribeUidWhiteListGroupResult() void DescribeUidWhiteListGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataList = value["DataList"]["Data"]; for (auto value : allDataList) diff --git a/jarvis/src/model/ModifyAccessWhiteListAutoShareRequest.cc b/jarvis/src/model/ModifyAccessWhiteListAutoShareRequest.cc index 1f90e34b0..f2ee0f2b3 100644 --- a/jarvis/src/model/ModifyAccessWhiteListAutoShareRequest.cc +++ b/jarvis/src/model/ModifyAccessWhiteListAutoShareRequest.cc @@ -33,7 +33,7 @@ std::string ModifyAccessWhiteListAutoShareRequest::getSrcIP()const void ModifyAccessWhiteListAutoShareRequest::setSrcIP(const std::string& srcIP) { srcIP_ = srcIP; - setParameter("SrcIP", srcIP); + setCoreParameter("SrcIP", srcIP); } std::string ModifyAccessWhiteListAutoShareRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string ModifyAccessWhiteListAutoShareRequest::getSourceIp()const void ModifyAccessWhiteListAutoShareRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int ModifyAccessWhiteListAutoShareRequest::getAutoConfig()const @@ -55,7 +55,7 @@ int ModifyAccessWhiteListAutoShareRequest::getAutoConfig()const void ModifyAccessWhiteListAutoShareRequest::setAutoConfig(int autoConfig) { autoConfig_ = autoConfig; - setParameter("AutoConfig", std::to_string(autoConfig)); + setCoreParameter("AutoConfig", std::to_string(autoConfig)); } std::string ModifyAccessWhiteListAutoShareRequest::getProductName()const @@ -66,7 +66,7 @@ std::string ModifyAccessWhiteListAutoShareRequest::getProductName()const void ModifyAccessWhiteListAutoShareRequest::setProductName(const std::string& productName) { productName_ = productName; - setParameter("ProductName", productName); + setCoreParameter("ProductName", productName); } int ModifyAccessWhiteListAutoShareRequest::getWhiteListType()const @@ -77,7 +77,7 @@ int ModifyAccessWhiteListAutoShareRequest::getWhiteListType()const void ModifyAccessWhiteListAutoShareRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string ModifyAccessWhiteListAutoShareRequest::getLang()const @@ -88,7 +88,7 @@ std::string ModifyAccessWhiteListAutoShareRequest::getLang()const void ModifyAccessWhiteListAutoShareRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string ModifyAccessWhiteListAutoShareRequest::getSourceCode()const @@ -99,6 +99,6 @@ std::string ModifyAccessWhiteListAutoShareRequest::getSourceCode()const void ModifyAccessWhiteListAutoShareRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/ModifyAccessWhiteListAutoShareResult.cc b/jarvis/src/model/ModifyAccessWhiteListAutoShareResult.cc index 5dd518693..5ae66c42b 100644 --- a/jarvis/src/model/ModifyAccessWhiteListAutoShareResult.cc +++ b/jarvis/src/model/ModifyAccessWhiteListAutoShareResult.cc @@ -35,10 +35,13 @@ ModifyAccessWhiteListAutoShareResult::~ModifyAccessWhiteListAutoShareResult() void ModifyAccessWhiteListAutoShareResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/jarvis/src/model/ModifyIpWhiteBaselineRequest.cc b/jarvis/src/model/ModifyIpWhiteBaselineRequest.cc new file mode 100644 index 000000000..c04806ca1 --- /dev/null +++ b/jarvis/src/model/ModifyIpWhiteBaselineRequest.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 + +using AlibabaCloud::Jarvis::Model::ModifyIpWhiteBaselineRequest; + +ModifyIpWhiteBaselineRequest::ModifyIpWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "ModifyIpWhiteBaseline") +{} + +ModifyIpWhiteBaselineRequest::~ModifyIpWhiteBaselineRequest() +{} + +long ModifyIpWhiteBaselineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyIpWhiteBaselineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyIpWhiteBaselineRequest::getSrcIp()const +{ + return srcIp_; +} + +void ModifyIpWhiteBaselineRequest::setSrcIp(const std::string& srcIp) +{ + srcIp_ = srcIp; + setCoreParameter("SrcIp", srcIp); +} + +std::string ModifyIpWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyIpWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyIpWhiteBaselineRequest::getRemark()const +{ + return remark_; +} + +void ModifyIpWhiteBaselineRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +int ModifyIpWhiteBaselineRequest::getId()const +{ + return id_; +} + +void ModifyIpWhiteBaselineRequest::setId(int id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string ModifyIpWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void ModifyIpWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string ModifyIpWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void ModifyIpWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/ModifyIpWhiteBaselineResult.cc b/jarvis/src/model/ModifyIpWhiteBaselineResult.cc new file mode 100644 index 000000000..b17a0e9bf --- /dev/null +++ b/jarvis/src/model/ModifyIpWhiteBaselineResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +ModifyIpWhiteBaselineResult::ModifyIpWhiteBaselineResult() : + ServiceResult() +{} + +ModifyIpWhiteBaselineResult::ModifyIpWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyIpWhiteBaselineResult::~ModifyIpWhiteBaselineResult() +{} + +void ModifyIpWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string ModifyIpWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/ModifyUidWhiteBaselineRequest.cc b/jarvis/src/model/ModifyUidWhiteBaselineRequest.cc new file mode 100644 index 000000000..d880cde60 --- /dev/null +++ b/jarvis/src/model/ModifyUidWhiteBaselineRequest.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 + +using AlibabaCloud::Jarvis::Model::ModifyUidWhiteBaselineRequest; + +ModifyUidWhiteBaselineRequest::ModifyUidWhiteBaselineRequest() : + RpcServiceRequest("jarvis", "2018-02-06", "ModifyUidWhiteBaseline") +{} + +ModifyUidWhiteBaselineRequest::~ModifyUidWhiteBaselineRequest() +{} + +long ModifyUidWhiteBaselineRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyUidWhiteBaselineRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyUidWhiteBaselineRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyUidWhiteBaselineRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyUidWhiteBaselineRequest::getRemark()const +{ + return remark_; +} + +void ModifyUidWhiteBaselineRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +int ModifyUidWhiteBaselineRequest::getId()const +{ + return id_; +} + +void ModifyUidWhiteBaselineRequest::setId(int id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::string ModifyUidWhiteBaselineRequest::getLang()const +{ + return lang_; +} + +void ModifyUidWhiteBaselineRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long ModifyUidWhiteBaselineRequest::getSrcUid()const +{ + return srcUid_; +} + +void ModifyUidWhiteBaselineRequest::setSrcUid(long srcUid) +{ + srcUid_ = srcUid; + setCoreParameter("SrcUid", std::to_string(srcUid)); +} + +std::string ModifyUidWhiteBaselineRequest::getSourceCode()const +{ + return sourceCode_; +} + +void ModifyUidWhiteBaselineRequest::setSourceCode(const std::string& sourceCode) +{ + sourceCode_ = sourceCode; + setCoreParameter("SourceCode", sourceCode); +} + diff --git a/jarvis/src/model/ModifyUidWhiteBaselineResult.cc b/jarvis/src/model/ModifyUidWhiteBaselineResult.cc new file mode 100644 index 000000000..c9f29ac3d --- /dev/null +++ b/jarvis/src/model/ModifyUidWhiteBaselineResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Jarvis; +using namespace AlibabaCloud::Jarvis::Model; + +ModifyUidWhiteBaselineResult::ModifyUidWhiteBaselineResult() : + ServiceResult() +{} + +ModifyUidWhiteBaselineResult::ModifyUidWhiteBaselineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyUidWhiteBaselineResult::~ModifyUidWhiteBaselineResult() +{} + +void ModifyUidWhiteBaselineResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Module"].isNull()) + module_ = value["Module"].asString(); + +} + +std::string ModifyUidWhiteBaselineResult::getModule()const +{ + return module_; +} + diff --git a/jarvis/src/model/ModifyUidWhiteListAutoShareRequest.cc b/jarvis/src/model/ModifyUidWhiteListAutoShareRequest.cc index 6e2d9a1af..3fa782379 100644 --- a/jarvis/src/model/ModifyUidWhiteListAutoShareRequest.cc +++ b/jarvis/src/model/ModifyUidWhiteListAutoShareRequest.cc @@ -33,7 +33,7 @@ std::string ModifyUidWhiteListAutoShareRequest::getSourceIp()const void ModifyUidWhiteListAutoShareRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int ModifyUidWhiteListAutoShareRequest::getAutoConfig()const @@ -44,7 +44,7 @@ int ModifyUidWhiteListAutoShareRequest::getAutoConfig()const void ModifyUidWhiteListAutoShareRequest::setAutoConfig(int autoConfig) { autoConfig_ = autoConfig; - setParameter("AutoConfig", std::to_string(autoConfig)); + setCoreParameter("AutoConfig", std::to_string(autoConfig)); } std::string ModifyUidWhiteListAutoShareRequest::getProductName()const @@ -55,7 +55,7 @@ std::string ModifyUidWhiteListAutoShareRequest::getProductName()const void ModifyUidWhiteListAutoShareRequest::setProductName(const std::string& productName) { productName_ = productName; - setParameter("ProductName", productName); + setCoreParameter("ProductName", productName); } int ModifyUidWhiteListAutoShareRequest::getWhiteListType()const @@ -66,7 +66,7 @@ int ModifyUidWhiteListAutoShareRequest::getWhiteListType()const void ModifyUidWhiteListAutoShareRequest::setWhiteListType(int whiteListType) { whiteListType_ = whiteListType; - setParameter("WhiteListType", std::to_string(whiteListType)); + setCoreParameter("WhiteListType", std::to_string(whiteListType)); } std::string ModifyUidWhiteListAutoShareRequest::getLang()const @@ -77,7 +77,7 @@ std::string ModifyUidWhiteListAutoShareRequest::getLang()const void ModifyUidWhiteListAutoShareRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string ModifyUidWhiteListAutoShareRequest::getSrcUid()const @@ -88,7 +88,7 @@ std::string ModifyUidWhiteListAutoShareRequest::getSrcUid()const void ModifyUidWhiteListAutoShareRequest::setSrcUid(const std::string& srcUid) { srcUid_ = srcUid; - setParameter("SrcUid", srcUid); + setCoreParameter("SrcUid", srcUid); } std::string ModifyUidWhiteListAutoShareRequest::getSourceCode()const @@ -99,6 +99,6 @@ std::string ModifyUidWhiteListAutoShareRequest::getSourceCode()const void ModifyUidWhiteListAutoShareRequest::setSourceCode(const std::string& sourceCode) { sourceCode_ = sourceCode; - setParameter("SourceCode", sourceCode); + setCoreParameter("SourceCode", sourceCode); } diff --git a/jarvis/src/model/ModifyUidWhiteListAutoShareResult.cc b/jarvis/src/model/ModifyUidWhiteListAutoShareResult.cc index f49c8491e..2a00efc45 100644 --- a/jarvis/src/model/ModifyUidWhiteListAutoShareResult.cc +++ b/jarvis/src/model/ModifyUidWhiteListAutoShareResult.cc @@ -35,10 +35,13 @@ ModifyUidWhiteListAutoShareResult::~ModifyUidWhiteListAutoShareResult() void ModifyUidWhiteListAutoShareResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Module"].isNull()) module_ = value["Module"].asString(); diff --git a/kms/CMakeLists.txt b/kms/CMakeLists.txt index ada9ed995..7ccb3c3d9 100644 --- a/kms/CMakeLists.txt +++ b/kms/CMakeLists.txt @@ -29,10 +29,10 @@ set(kms_public_header_model include/alibabacloud/kms/model/CancelKeyDeletionResult.h include/alibabacloud/kms/model/DisableKeyRequest.h include/alibabacloud/kms/model/DisableKeyResult.h - include/alibabacloud/kms/model/DeleteAliasRequest.h - include/alibabacloud/kms/model/DeleteAliasResult.h include/alibabacloud/kms/model/DecryptRequest.h include/alibabacloud/kms/model/DecryptResult.h + include/alibabacloud/kms/model/DeleteAliasRequest.h + include/alibabacloud/kms/model/DeleteAliasResult.h include/alibabacloud/kms/model/TagResourceRequest.h include/alibabacloud/kms/model/TagResourceResult.h include/alibabacloud/kms/model/DescribeKeyRequest.h @@ -47,20 +47,22 @@ set(kms_public_header_model include/alibabacloud/kms/model/ImportKeyMaterialResult.h include/alibabacloud/kms/model/EncryptRequest.h include/alibabacloud/kms/model/EncryptResult.h - include/alibabacloud/kms/model/UntagResourceRequest.h - include/alibabacloud/kms/model/UntagResourceResult.h include/alibabacloud/kms/model/UpdateAliasRequest.h include/alibabacloud/kms/model/UpdateAliasResult.h + include/alibabacloud/kms/model/UntagResourceRequest.h + include/alibabacloud/kms/model/UntagResourceResult.h include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h include/alibabacloud/kms/model/ListAliasesByKeyIdResult.h include/alibabacloud/kms/model/EnableKeyRequest.h include/alibabacloud/kms/model/EnableKeyResult.h - include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h - include/alibabacloud/kms/model/ScheduleKeyDeletionResult.h include/alibabacloud/kms/model/DescribeRegionsRequest.h include/alibabacloud/kms/model/DescribeRegionsResult.h + include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h + include/alibabacloud/kms/model/ScheduleKeyDeletionResult.h include/alibabacloud/kms/model/ListKeysRequest.h include/alibabacloud/kms/model/ListKeysResult.h + include/alibabacloud/kms/model/DescribeServiceRequest.h + include/alibabacloud/kms/model/DescribeServiceResult.h include/alibabacloud/kms/model/GetParametersForImportRequest.h include/alibabacloud/kms/model/GetParametersForImportResult.h include/alibabacloud/kms/model/CreateKeyRequest.h @@ -76,10 +78,10 @@ set(kms_src src/model/CancelKeyDeletionResult.cc src/model/DisableKeyRequest.cc src/model/DisableKeyResult.cc - src/model/DeleteAliasRequest.cc - src/model/DeleteAliasResult.cc src/model/DecryptRequest.cc src/model/DecryptResult.cc + src/model/DeleteAliasRequest.cc + src/model/DeleteAliasResult.cc src/model/TagResourceRequest.cc src/model/TagResourceResult.cc src/model/DescribeKeyRequest.cc @@ -94,20 +96,22 @@ set(kms_src src/model/ImportKeyMaterialResult.cc src/model/EncryptRequest.cc src/model/EncryptResult.cc - src/model/UntagResourceRequest.cc - src/model/UntagResourceResult.cc src/model/UpdateAliasRequest.cc src/model/UpdateAliasResult.cc + src/model/UntagResourceRequest.cc + src/model/UntagResourceResult.cc src/model/ListAliasesByKeyIdRequest.cc src/model/ListAliasesByKeyIdResult.cc src/model/EnableKeyRequest.cc src/model/EnableKeyResult.cc - src/model/ScheduleKeyDeletionRequest.cc - src/model/ScheduleKeyDeletionResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc + src/model/ScheduleKeyDeletionRequest.cc + src/model/ScheduleKeyDeletionResult.cc src/model/ListKeysRequest.cc src/model/ListKeysResult.cc + src/model/DescribeServiceRequest.cc + src/model/DescribeServiceResult.cc src/model/GetParametersForImportRequest.cc src/model/GetParametersForImportResult.cc src/model/CreateKeyRequest.cc diff --git a/kms/include/alibabacloud/kms/KmsClient.h b/kms/include/alibabacloud/kms/KmsClient.h index 440e757c3..b422722e0 100644 --- a/kms/include/alibabacloud/kms/KmsClient.h +++ b/kms/include/alibabacloud/kms/KmsClient.h @@ -30,10 +30,10 @@ #include "model/CancelKeyDeletionResult.h" #include "model/DisableKeyRequest.h" #include "model/DisableKeyResult.h" -#include "model/DeleteAliasRequest.h" -#include "model/DeleteAliasResult.h" #include "model/DecryptRequest.h" #include "model/DecryptResult.h" +#include "model/DeleteAliasRequest.h" +#include "model/DeleteAliasResult.h" #include "model/TagResourceRequest.h" #include "model/TagResourceResult.h" #include "model/DescribeKeyRequest.h" @@ -48,20 +48,22 @@ #include "model/ImportKeyMaterialResult.h" #include "model/EncryptRequest.h" #include "model/EncryptResult.h" -#include "model/UntagResourceRequest.h" -#include "model/UntagResourceResult.h" #include "model/UpdateAliasRequest.h" #include "model/UpdateAliasResult.h" +#include "model/UntagResourceRequest.h" +#include "model/UntagResourceResult.h" #include "model/ListAliasesByKeyIdRequest.h" #include "model/ListAliasesByKeyIdResult.h" #include "model/EnableKeyRequest.h" #include "model/EnableKeyResult.h" -#include "model/ScheduleKeyDeletionRequest.h" -#include "model/ScheduleKeyDeletionResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" +#include "model/ScheduleKeyDeletionRequest.h" +#include "model/ScheduleKeyDeletionResult.h" #include "model/ListKeysRequest.h" #include "model/ListKeysResult.h" +#include "model/DescribeServiceRequest.h" +#include "model/DescribeServiceResult.h" #include "model/GetParametersForImportRequest.h" #include "model/GetParametersForImportResult.h" #include "model/CreateKeyRequest.h" @@ -87,12 +89,12 @@ namespace AlibabaCloud typedef Outcome DisableKeyOutcome; typedef std::future DisableKeyOutcomeCallable; typedef std::function&)> DisableKeyAsyncHandler; - typedef Outcome DeleteAliasOutcome; - typedef std::future DeleteAliasOutcomeCallable; - typedef std::function&)> DeleteAliasAsyncHandler; typedef Outcome DecryptOutcome; typedef std::future DecryptOutcomeCallable; typedef std::function&)> DecryptAsyncHandler; + typedef Outcome DeleteAliasOutcome; + typedef std::future DeleteAliasOutcomeCallable; + typedef std::function&)> DeleteAliasAsyncHandler; typedef Outcome TagResourceOutcome; typedef std::future TagResourceOutcomeCallable; typedef std::function&)> TagResourceAsyncHandler; @@ -114,27 +116,30 @@ namespace AlibabaCloud typedef Outcome EncryptOutcome; typedef std::future EncryptOutcomeCallable; typedef std::function&)> EncryptAsyncHandler; - typedef Outcome UntagResourceOutcome; - typedef std::future UntagResourceOutcomeCallable; - typedef std::function&)> UntagResourceAsyncHandler; typedef Outcome UpdateAliasOutcome; typedef std::future UpdateAliasOutcomeCallable; typedef std::function&)> UpdateAliasAsyncHandler; + typedef Outcome UntagResourceOutcome; + typedef std::future UntagResourceOutcomeCallable; + typedef std::function&)> UntagResourceAsyncHandler; typedef Outcome ListAliasesByKeyIdOutcome; typedef std::future ListAliasesByKeyIdOutcomeCallable; typedef std::function&)> ListAliasesByKeyIdAsyncHandler; typedef Outcome EnableKeyOutcome; typedef std::future EnableKeyOutcomeCallable; typedef std::function&)> EnableKeyAsyncHandler; - typedef Outcome ScheduleKeyDeletionOutcome; - typedef std::future ScheduleKeyDeletionOutcomeCallable; - typedef std::function&)> ScheduleKeyDeletionAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome ScheduleKeyDeletionOutcome; + typedef std::future ScheduleKeyDeletionOutcomeCallable; + typedef std::function&)> ScheduleKeyDeletionAsyncHandler; typedef Outcome ListKeysOutcome; typedef std::future ListKeysOutcomeCallable; typedef std::function&)> ListKeysAsyncHandler; + typedef Outcome DescribeServiceOutcome; + typedef std::future DescribeServiceOutcomeCallable; + typedef std::function&)> DescribeServiceAsyncHandler; typedef Outcome GetParametersForImportOutcome; typedef std::future GetParametersForImportOutcomeCallable; typedef std::function&)> GetParametersForImportAsyncHandler; @@ -158,12 +163,12 @@ namespace AlibabaCloud DisableKeyOutcome disableKey(const Model::DisableKeyRequest &request)const; void disableKeyAsync(const Model::DisableKeyRequest& request, const DisableKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableKeyOutcomeCallable disableKeyCallable(const Model::DisableKeyRequest& request) const; - DeleteAliasOutcome deleteAlias(const Model::DeleteAliasRequest &request)const; - void deleteAliasAsync(const Model::DeleteAliasRequest& request, const DeleteAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteAliasOutcomeCallable deleteAliasCallable(const Model::DeleteAliasRequest& request) const; DecryptOutcome decrypt(const Model::DecryptRequest &request)const; void decryptAsync(const Model::DecryptRequest& request, const DecryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DecryptOutcomeCallable decryptCallable(const Model::DecryptRequest& request) const; + DeleteAliasOutcome deleteAlias(const Model::DeleteAliasRequest &request)const; + void deleteAliasAsync(const Model::DeleteAliasRequest& request, const DeleteAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAliasOutcomeCallable deleteAliasCallable(const Model::DeleteAliasRequest& request) const; TagResourceOutcome tagResource(const Model::TagResourceRequest &request)const; void tagResourceAsync(const Model::TagResourceRequest& request, const TagResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagResourceOutcomeCallable tagResourceCallable(const Model::TagResourceRequest& request) const; @@ -185,27 +190,30 @@ namespace AlibabaCloud EncryptOutcome encrypt(const Model::EncryptRequest &request)const; void encryptAsync(const Model::EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EncryptOutcomeCallable encryptCallable(const Model::EncryptRequest& request) const; - UntagResourceOutcome untagResource(const Model::UntagResourceRequest &request)const; - void untagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UntagResourceOutcomeCallable untagResourceCallable(const Model::UntagResourceRequest& request) const; UpdateAliasOutcome updateAlias(const Model::UpdateAliasRequest &request)const; void updateAliasAsync(const Model::UpdateAliasRequest& request, const UpdateAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAliasOutcomeCallable updateAliasCallable(const Model::UpdateAliasRequest& request) const; + UntagResourceOutcome untagResource(const Model::UntagResourceRequest &request)const; + void untagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourceOutcomeCallable untagResourceCallable(const Model::UntagResourceRequest& request) const; ListAliasesByKeyIdOutcome listAliasesByKeyId(const Model::ListAliasesByKeyIdRequest &request)const; void listAliasesByKeyIdAsync(const Model::ListAliasesByKeyIdRequest& request, const ListAliasesByKeyIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAliasesByKeyIdOutcomeCallable listAliasesByKeyIdCallable(const Model::ListAliasesByKeyIdRequest& request) const; EnableKeyOutcome enableKey(const Model::EnableKeyRequest &request)const; void enableKeyAsync(const Model::EnableKeyRequest& request, const EnableKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableKeyOutcomeCallable enableKeyCallable(const Model::EnableKeyRequest& request) const; - ScheduleKeyDeletionOutcome scheduleKeyDeletion(const Model::ScheduleKeyDeletionRequest &request)const; - void scheduleKeyDeletionAsync(const Model::ScheduleKeyDeletionRequest& request, const ScheduleKeyDeletionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ScheduleKeyDeletionOutcomeCallable scheduleKeyDeletionCallable(const Model::ScheduleKeyDeletionRequest& request) const; DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + ScheduleKeyDeletionOutcome scheduleKeyDeletion(const Model::ScheduleKeyDeletionRequest &request)const; + void scheduleKeyDeletionAsync(const Model::ScheduleKeyDeletionRequest& request, const ScheduleKeyDeletionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ScheduleKeyDeletionOutcomeCallable scheduleKeyDeletionCallable(const Model::ScheduleKeyDeletionRequest& request) const; ListKeysOutcome listKeys(const Model::ListKeysRequest &request)const; void listKeysAsync(const Model::ListKeysRequest& request, const ListKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListKeysOutcomeCallable listKeysCallable(const Model::ListKeysRequest& request) const; + DescribeServiceOutcome describeService(const Model::DescribeServiceRequest &request)const; + void describeServiceAsync(const Model::DescribeServiceRequest& request, const DescribeServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeServiceOutcomeCallable describeServiceCallable(const Model::DescribeServiceRequest& request) const; GetParametersForImportOutcome getParametersForImport(const Model::GetParametersForImportRequest &request)const; void getParametersForImportAsync(const Model::GetParametersForImportRequest& request, const GetParametersForImportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetParametersForImportOutcomeCallable getParametersForImportCallable(const Model::GetParametersForImportRequest& request) const; diff --git a/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h b/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h index d3862c78c..362c5b726 100644 --- a/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h +++ b/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/CreateAliasRequest.h b/kms/include/alibabacloud/kms/model/CreateAliasRequest.h index b565e6103..3af5c96d3 100644 --- a/kms/include/alibabacloud/kms/model/CreateAliasRequest.h +++ b/kms/include/alibabacloud/kms/model/CreateAliasRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setAliasName(const std::string& aliasName); std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string aliasName_; std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/CreateKeyRequest.h b/kms/include/alibabacloud/kms/model/CreateKeyRequest.h index 56556f269..4f8ff1f38 100644 --- a/kms/include/alibabacloud/kms/model/CreateKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/CreateKeyRequest.h @@ -35,20 +35,20 @@ namespace AlibabaCloud CreateKeyRequest(); ~CreateKeyRequest(); + std::string getProtectionLevel()const; + void setProtectionLevel(const std::string& protectionLevel); std::string getKeyUsage()const; void setKeyUsage(const std::string& keyUsage); std::string getOrigin()const; void setOrigin(const std::string& origin); std::string getDescription()const; void setDescription(const std::string& description); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: + std::string protectionLevel_; std::string keyUsage_; std::string origin_; std::string description_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/CreateKeyResult.h b/kms/include/alibabacloud/kms/model/CreateKeyResult.h index 0918b2348..493100479 100644 --- a/kms/include/alibabacloud/kms/model/CreateKeyResult.h +++ b/kms/include/alibabacloud/kms/model/CreateKeyResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string origin; std::string creationDate; + std::string protectionLevel; std::string description; std::string materialExpireTime; std::string keyUsage; diff --git a/kms/include/alibabacloud/kms/model/DecryptRequest.h b/kms/include/alibabacloud/kms/model/DecryptRequest.h index 835808d56..15d7d6af0 100644 --- a/kms/include/alibabacloud/kms/model/DecryptRequest.h +++ b/kms/include/alibabacloud/kms/model/DecryptRequest.h @@ -37,14 +37,11 @@ namespace AlibabaCloud std::string getEncryptionContext()const; void setEncryptionContext(const std::string& encryptionContext); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); std::string getCiphertextBlob()const; void setCiphertextBlob(const std::string& ciphertextBlob); private: std::string encryptionContext_; - std::string sTSToken_; std::string ciphertextBlob_; }; diff --git a/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h b/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h index e357ddb78..aaf5edfe5 100644 --- a/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h +++ b/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud std::string getAliasName()const; void setAliasName(const std::string& aliasName); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string aliasName_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h b/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h index 637d485a8..81e365277 100644 --- a/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h +++ b/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h b/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h index 1a1bfa40f..d03f1960a 100644 --- a/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/DescribeKeyResult.h b/kms/include/alibabacloud/kms/model/DescribeKeyResult.h index d84c17e5c..5408d114e 100644 --- a/kms/include/alibabacloud/kms/model/DescribeKeyResult.h +++ b/kms/include/alibabacloud/kms/model/DescribeKeyResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string origin; std::string creationDate; + std::string protectionLevel; std::string description; std::string materialExpireTime; std::string keyUsage; diff --git a/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h b/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h index e40375794..68a516d83 100644 --- a/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h @@ -35,11 +35,8 @@ namespace AlibabaCloud DescribeRegionsRequest(); ~DescribeRegionsRequest(); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/DescribeServiceRequest.h b/kms/include/alibabacloud/kms/model/DescribeServiceRequest.h new file mode 100644 index 000000000..4170a09f8 --- /dev/null +++ b/kms/include/alibabacloud/kms/model/DescribeServiceRequest.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_KMS_MODEL_DESCRIBESERVICEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Kms + { + namespace Model + { + class ALIBABACLOUD_KMS_EXPORT DescribeServiceRequest : public RpcServiceRequest + { + + public: + DescribeServiceRequest(); + ~DescribeServiceRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICEREQUEST_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/DescribeServiceResult.h b/kms/include/alibabacloud/kms/model/DescribeServiceResult.h new file mode 100644 index 000000000..2cffb0dfe --- /dev/null +++ b/kms/include/alibabacloud/kms/model/DescribeServiceResult.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_KMS_MODEL_DESCRIBESERVICERESULT_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Kms + { + namespace Model + { + class ALIBABACLOUD_KMS_EXPORT DescribeServiceResult : public ServiceResult + { + public: + struct ProtectionLevel + { + std::string type; + }; + + + DescribeServiceResult(); + explicit DescribeServiceResult(const std::string &payload); + ~DescribeServiceResult(); + std::vector getProtectionLevels()const; + + protected: + void parse(const std::string &payload); + private: + std::vector protectionLevels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICERESULT_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/DisableKeyRequest.h b/kms/include/alibabacloud/kms/model/DisableKeyRequest.h index 4c232ebda..e62b52fd7 100644 --- a/kms/include/alibabacloud/kms/model/DisableKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/DisableKeyRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/EnableKeyRequest.h b/kms/include/alibabacloud/kms/model/EnableKeyRequest.h index 35787ee75..3ffd5a668 100644 --- a/kms/include/alibabacloud/kms/model/EnableKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/EnableKeyRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/EncryptRequest.h b/kms/include/alibabacloud/kms/model/EncryptRequest.h index a3d5a1d6b..0d89d8dfb 100644 --- a/kms/include/alibabacloud/kms/model/EncryptRequest.h +++ b/kms/include/alibabacloud/kms/model/EncryptRequest.h @@ -39,15 +39,12 @@ namespace AlibabaCloud void setEncryptionContext(const std::string& encryptionContext); std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); std::string getPlaintext()const; void setPlaintext(const std::string& plaintext); private: std::string encryptionContext_; std::string keyId_; - std::string sTSToken_; std::string plaintext_; }; diff --git a/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h b/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h index 9766eb547..f2e9c2181 100644 --- a/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h @@ -41,8 +41,6 @@ namespace AlibabaCloud void setKeyId(const std::string& keyId); std::string getKeySpec()const; void setKeySpec(const std::string& keySpec); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); int getNumberOfBytes()const; void setNumberOfBytes(int numberOfBytes); @@ -50,7 +48,6 @@ namespace AlibabaCloud std::string encryptionContext_; std::string keyId_; std::string keySpec_; - std::string sTSToken_; int numberOfBytes_; }; diff --git a/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h b/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h index b1c81a1fe..247e7e04f 100644 --- a/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h +++ b/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h @@ -37,8 +37,6 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); std::string getWrappingAlgorithm()const; void setWrappingAlgorithm(const std::string& wrappingAlgorithm); std::string getWrappingKeySpec()const; @@ -46,7 +44,6 @@ namespace AlibabaCloud private: std::string keyId_; - std::string sTSToken_; std::string wrappingAlgorithm_; std::string wrappingKeySpec_; diff --git a/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h b/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h index 03c59672b..f3ae944e6 100644 --- a/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h +++ b/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setKeyMaterialExpireUnix(long keyMaterialExpireUnix); std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string importToken_; std::string encryptedKeyMaterial_; long keyMaterialExpireUnix_; std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h b/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h index b10a99cca..ee0f8151e 100644 --- a/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h +++ b/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h @@ -39,15 +39,12 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); int getPageNumber()const; void setPageNumber(int pageNumber); private: int pageSize_; std::string keyId_; - std::string sTSToken_; int pageNumber_; }; diff --git a/kms/include/alibabacloud/kms/model/ListAliasesRequest.h b/kms/include/alibabacloud/kms/model/ListAliasesRequest.h index 3fcfef47c..4d7121bd7 100644 --- a/kms/include/alibabacloud/kms/model/ListAliasesRequest.h +++ b/kms/include/alibabacloud/kms/model/ListAliasesRequest.h @@ -37,14 +37,11 @@ namespace AlibabaCloud int getPageSize()const; void setPageSize(int pageSize); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); int getPageNumber()const; void setPageNumber(int pageNumber); private: int pageSize_; - std::string sTSToken_; int pageNumber_; }; diff --git a/kms/include/alibabacloud/kms/model/ListKeysRequest.h b/kms/include/alibabacloud/kms/model/ListKeysRequest.h index 18118472f..d80c5cceb 100644 --- a/kms/include/alibabacloud/kms/model/ListKeysRequest.h +++ b/kms/include/alibabacloud/kms/model/ListKeysRequest.h @@ -37,14 +37,11 @@ namespace AlibabaCloud int getPageSize()const; void setPageSize(int pageSize); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); int getPageNumber()const; void setPageNumber(int pageNumber); private: int pageSize_; - std::string sTSToken_; int pageNumber_; }; diff --git a/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h b/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h index 76dfaeb9e..77784a798 100644 --- a/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h +++ b/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h @@ -37,12 +37,9 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h b/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h index 1ee7eae50..b065f35a1 100644 --- a/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h +++ b/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setPendingWindowInDays(int pendingWindowInDays); std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: int pendingWindowInDays_; std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/TagResourceRequest.h b/kms/include/alibabacloud/kms/model/TagResourceRequest.h index e6266fcfc..239aedf9b 100644 --- a/kms/include/alibabacloud/kms/model/TagResourceRequest.h +++ b/kms/include/alibabacloud/kms/model/TagResourceRequest.h @@ -37,14 +37,11 @@ namespace AlibabaCloud std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); std::string getTags()const; void setTags(const std::string& tags); private: std::string keyId_; - std::string sTSToken_; std::string tags_; }; diff --git a/kms/include/alibabacloud/kms/model/UntagResourceRequest.h b/kms/include/alibabacloud/kms/model/UntagResourceRequest.h index 08038241f..fa001fecb 100644 --- a/kms/include/alibabacloud/kms/model/UntagResourceRequest.h +++ b/kms/include/alibabacloud/kms/model/UntagResourceRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setTagKeys(const std::string& tagKeys); std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string tagKeys_; std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h b/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h index 2225a6558..b87d57b5a 100644 --- a/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setAliasName(const std::string& aliasName); std::string getKeyId()const; void setKeyId(const std::string& keyId); - std::string getSTSToken()const; - void setSTSToken(const std::string& sTSToken); private: std::string aliasName_; std::string keyId_; - std::string sTSToken_; }; } diff --git a/kms/src/KmsClient.cc b/kms/src/KmsClient.cc index 4b63ba750..535bc1b8f 100644 --- a/kms/src/KmsClient.cc +++ b/kms/src/KmsClient.cc @@ -195,42 +195,6 @@ KmsClient::DisableKeyOutcomeCallable KmsClient::disableKeyCallable(const Disable return task->get_future(); } -KmsClient::DeleteAliasOutcome KmsClient::deleteAlias(const DeleteAliasRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteAliasOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAliasOutcome(DeleteAliasResult(outcome.result())); - else - return DeleteAliasOutcome(outcome.error()); -} - -void KmsClient::deleteAliasAsync(const DeleteAliasRequest& request, const DeleteAliasAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAlias(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::DeleteAliasOutcomeCallable KmsClient::deleteAliasCallable(const DeleteAliasRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAlias(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - KmsClient::DecryptOutcome KmsClient::decrypt(const DecryptRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +231,42 @@ KmsClient::DecryptOutcomeCallable KmsClient::decryptCallable(const DecryptReques return task->get_future(); } +KmsClient::DeleteAliasOutcome KmsClient::deleteAlias(const DeleteAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAliasOutcome(DeleteAliasResult(outcome.result())); + else + return DeleteAliasOutcome(outcome.error()); +} + +void KmsClient::deleteAliasAsync(const DeleteAliasRequest& request, const DeleteAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +KmsClient::DeleteAliasOutcomeCallable KmsClient::deleteAliasCallable(const DeleteAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + KmsClient::TagResourceOutcome KmsClient::tagResource(const TagResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,42 +519,6 @@ KmsClient::EncryptOutcomeCallable KmsClient::encryptCallable(const EncryptReques return task->get_future(); } -KmsClient::UntagResourceOutcome KmsClient::untagResource(const UntagResourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UntagResourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UntagResourceOutcome(UntagResourceResult(outcome.result())); - else - return UntagResourceOutcome(outcome.error()); -} - -void KmsClient::untagResourceAsync(const UntagResourceRequest& request, const UntagResourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, untagResource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::UntagResourceOutcomeCallable KmsClient::untagResourceCallable(const UntagResourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->untagResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - KmsClient::UpdateAliasOutcome KmsClient::updateAlias(const UpdateAliasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +555,42 @@ KmsClient::UpdateAliasOutcomeCallable KmsClient::updateAliasCallable(const Updat return task->get_future(); } +KmsClient::UntagResourceOutcome KmsClient::untagResource(const UntagResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourceOutcome(UntagResourceResult(outcome.result())); + else + return UntagResourceOutcome(outcome.error()); +} + +void KmsClient::untagResourceAsync(const UntagResourceRequest& request, const UntagResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +KmsClient::UntagResourceOutcomeCallable KmsClient::untagResourceCallable(const UntagResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + KmsClient::ListAliasesByKeyIdOutcome KmsClient::listAliasesByKeyId(const ListAliasesByKeyIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,42 +663,6 @@ KmsClient::EnableKeyOutcomeCallable KmsClient::enableKeyCallable(const EnableKey return task->get_future(); } -KmsClient::ScheduleKeyDeletionOutcome KmsClient::scheduleKeyDeletion(const ScheduleKeyDeletionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ScheduleKeyDeletionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ScheduleKeyDeletionOutcome(ScheduleKeyDeletionResult(outcome.result())); - else - return ScheduleKeyDeletionOutcome(outcome.error()); -} - -void KmsClient::scheduleKeyDeletionAsync(const ScheduleKeyDeletionRequest& request, const ScheduleKeyDeletionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, scheduleKeyDeletion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::ScheduleKeyDeletionOutcomeCallable KmsClient::scheduleKeyDeletionCallable(const ScheduleKeyDeletionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->scheduleKeyDeletion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - KmsClient::DescribeRegionsOutcome KmsClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +699,42 @@ KmsClient::DescribeRegionsOutcomeCallable KmsClient::describeRegionsCallable(con return task->get_future(); } +KmsClient::ScheduleKeyDeletionOutcome KmsClient::scheduleKeyDeletion(const ScheduleKeyDeletionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ScheduleKeyDeletionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ScheduleKeyDeletionOutcome(ScheduleKeyDeletionResult(outcome.result())); + else + return ScheduleKeyDeletionOutcome(outcome.error()); +} + +void KmsClient::scheduleKeyDeletionAsync(const ScheduleKeyDeletionRequest& request, const ScheduleKeyDeletionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, scheduleKeyDeletion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +KmsClient::ScheduleKeyDeletionOutcomeCallable KmsClient::scheduleKeyDeletionCallable(const ScheduleKeyDeletionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->scheduleKeyDeletion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + KmsClient::ListKeysOutcome KmsClient::listKeys(const ListKeysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +771,42 @@ KmsClient::ListKeysOutcomeCallable KmsClient::listKeysCallable(const ListKeysReq return task->get_future(); } +KmsClient::DescribeServiceOutcome KmsClient::describeService(const DescribeServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeServiceOutcome(DescribeServiceResult(outcome.result())); + else + return DescribeServiceOutcome(outcome.error()); +} + +void KmsClient::describeServiceAsync(const DescribeServiceRequest& request, const DescribeServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +KmsClient::DescribeServiceOutcomeCallable KmsClient::describeServiceCallable(const DescribeServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + KmsClient::GetParametersForImportOutcome KmsClient::getParametersForImport(const GetParametersForImportRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/kms/src/model/CancelKeyDeletionRequest.cc b/kms/src/model/CancelKeyDeletionRequest.cc index fa95ba710..04cd74f7c 100644 --- a/kms/src/model/CancelKeyDeletionRequest.cc +++ b/kms/src/model/CancelKeyDeletionRequest.cc @@ -33,17 +33,6 @@ std::string CancelKeyDeletionRequest::getKeyId()const void CancelKeyDeletionRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string CancelKeyDeletionRequest::getSTSToken()const -{ - return sTSToken_; -} - -void CancelKeyDeletionRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/CancelKeyDeletionResult.cc b/kms/src/model/CancelKeyDeletionResult.cc index 85ccbca43..813b397da 100644 --- a/kms/src/model/CancelKeyDeletionResult.cc +++ b/kms/src/model/CancelKeyDeletionResult.cc @@ -35,10 +35,13 @@ CancelKeyDeletionResult::~CancelKeyDeletionResult() void CancelKeyDeletionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/CreateAliasRequest.cc b/kms/src/model/CreateAliasRequest.cc index 734da77b4..3ae463201 100644 --- a/kms/src/model/CreateAliasRequest.cc +++ b/kms/src/model/CreateAliasRequest.cc @@ -33,7 +33,7 @@ std::string CreateAliasRequest::getAliasName()const void CreateAliasRequest::setAliasName(const std::string& aliasName) { aliasName_ = aliasName; - setParameter("AliasName", aliasName); + setCoreParameter("AliasName", aliasName); } std::string CreateAliasRequest::getKeyId()const @@ -44,17 +44,6 @@ std::string CreateAliasRequest::getKeyId()const void CreateAliasRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string CreateAliasRequest::getSTSToken()const -{ - return sTSToken_; -} - -void CreateAliasRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/CreateAliasResult.cc b/kms/src/model/CreateAliasResult.cc index 88ae577a6..a2b9e2c80 100644 --- a/kms/src/model/CreateAliasResult.cc +++ b/kms/src/model/CreateAliasResult.cc @@ -35,10 +35,13 @@ CreateAliasResult::~CreateAliasResult() void CreateAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/CreateKeyRequest.cc b/kms/src/model/CreateKeyRequest.cc index d500ca611..d6f72b2da 100644 --- a/kms/src/model/CreateKeyRequest.cc +++ b/kms/src/model/CreateKeyRequest.cc @@ -25,6 +25,17 @@ CreateKeyRequest::CreateKeyRequest() : CreateKeyRequest::~CreateKeyRequest() {} +std::string CreateKeyRequest::getProtectionLevel()const +{ + return protectionLevel_; +} + +void CreateKeyRequest::setProtectionLevel(const std::string& protectionLevel) +{ + protectionLevel_ = protectionLevel; + setCoreParameter("ProtectionLevel", protectionLevel); +} + std::string CreateKeyRequest::getKeyUsage()const { return keyUsage_; @@ -33,7 +44,7 @@ std::string CreateKeyRequest::getKeyUsage()const void CreateKeyRequest::setKeyUsage(const std::string& keyUsage) { keyUsage_ = keyUsage; - setParameter("KeyUsage", keyUsage); + setCoreParameter("KeyUsage", keyUsage); } std::string CreateKeyRequest::getOrigin()const @@ -44,7 +55,7 @@ std::string CreateKeyRequest::getOrigin()const void CreateKeyRequest::setOrigin(const std::string& origin) { origin_ = origin; - setParameter("Origin", origin); + setCoreParameter("Origin", origin); } std::string CreateKeyRequest::getDescription()const @@ -55,17 +66,6 @@ std::string CreateKeyRequest::getDescription()const void CreateKeyRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); -} - -std::string CreateKeyRequest::getSTSToken()const -{ - return sTSToken_; -} - -void CreateKeyRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("Description", description); } diff --git a/kms/src/model/CreateKeyResult.cc b/kms/src/model/CreateKeyResult.cc index 0ee5f7f87..f181a6e63 100644 --- a/kms/src/model/CreateKeyResult.cc +++ b/kms/src/model/CreateKeyResult.cc @@ -35,10 +35,13 @@ CreateKeyResult::~CreateKeyResult() void CreateKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto keyMetadataNode = value["KeyMetadata"]; if(!keyMetadataNode["CreationDate"].isNull()) @@ -61,6 +64,8 @@ void CreateKeyResult::parse(const std::string &payload) keyMetadata_.origin = keyMetadataNode["Origin"].asString(); if(!keyMetadataNode["MaterialExpireTime"].isNull()) keyMetadata_.materialExpireTime = keyMetadataNode["MaterialExpireTime"].asString(); + if(!keyMetadataNode["ProtectionLevel"].isNull()) + keyMetadata_.protectionLevel = keyMetadataNode["ProtectionLevel"].asString(); } diff --git a/kms/src/model/DecryptRequest.cc b/kms/src/model/DecryptRequest.cc index 51a8347f4..e9d88fbb5 100644 --- a/kms/src/model/DecryptRequest.cc +++ b/kms/src/model/DecryptRequest.cc @@ -33,18 +33,7 @@ std::string DecryptRequest::getEncryptionContext()const void DecryptRequest::setEncryptionContext(const std::string& encryptionContext) { encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); -} - -std::string DecryptRequest::getSTSToken()const -{ - return sTSToken_; -} - -void DecryptRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("EncryptionContext", encryptionContext); } std::string DecryptRequest::getCiphertextBlob()const @@ -55,6 +44,6 @@ std::string DecryptRequest::getCiphertextBlob()const void DecryptRequest::setCiphertextBlob(const std::string& ciphertextBlob) { ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); + setCoreParameter("CiphertextBlob", ciphertextBlob); } diff --git a/kms/src/model/DecryptResult.cc b/kms/src/model/DecryptResult.cc index f32ebd663..470ce7f8c 100644 --- a/kms/src/model/DecryptResult.cc +++ b/kms/src/model/DecryptResult.cc @@ -35,10 +35,13 @@ DecryptResult::~DecryptResult() void DecryptResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Plaintext"].isNull()) plaintext_ = value["Plaintext"].asString(); diff --git a/kms/src/model/DeleteAliasRequest.cc b/kms/src/model/DeleteAliasRequest.cc index 3e6c583ce..bb68580a2 100644 --- a/kms/src/model/DeleteAliasRequest.cc +++ b/kms/src/model/DeleteAliasRequest.cc @@ -33,17 +33,6 @@ std::string DeleteAliasRequest::getAliasName()const void DeleteAliasRequest::setAliasName(const std::string& aliasName) { aliasName_ = aliasName; - setParameter("AliasName", aliasName); -} - -std::string DeleteAliasRequest::getSTSToken()const -{ - return sTSToken_; -} - -void DeleteAliasRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("AliasName", aliasName); } diff --git a/kms/src/model/DeleteAliasResult.cc b/kms/src/model/DeleteAliasResult.cc index 94d7c7a0a..76a4db5d1 100644 --- a/kms/src/model/DeleteAliasResult.cc +++ b/kms/src/model/DeleteAliasResult.cc @@ -35,10 +35,13 @@ DeleteAliasResult::~DeleteAliasResult() void DeleteAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/DeleteKeyMaterialRequest.cc b/kms/src/model/DeleteKeyMaterialRequest.cc index 154568731..54216c4e9 100644 --- a/kms/src/model/DeleteKeyMaterialRequest.cc +++ b/kms/src/model/DeleteKeyMaterialRequest.cc @@ -33,17 +33,6 @@ std::string DeleteKeyMaterialRequest::getKeyId()const void DeleteKeyMaterialRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string DeleteKeyMaterialRequest::getSTSToken()const -{ - return sTSToken_; -} - -void DeleteKeyMaterialRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/DeleteKeyMaterialResult.cc b/kms/src/model/DeleteKeyMaterialResult.cc index 86d5e8960..a007ab4d2 100644 --- a/kms/src/model/DeleteKeyMaterialResult.cc +++ b/kms/src/model/DeleteKeyMaterialResult.cc @@ -35,10 +35,13 @@ DeleteKeyMaterialResult::~DeleteKeyMaterialResult() void DeleteKeyMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/DescribeKeyRequest.cc b/kms/src/model/DescribeKeyRequest.cc index 6e66c00da..424fbeef7 100644 --- a/kms/src/model/DescribeKeyRequest.cc +++ b/kms/src/model/DescribeKeyRequest.cc @@ -33,17 +33,6 @@ std::string DescribeKeyRequest::getKeyId()const void DescribeKeyRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string DescribeKeyRequest::getSTSToken()const -{ - return sTSToken_; -} - -void DescribeKeyRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/DescribeKeyResult.cc b/kms/src/model/DescribeKeyResult.cc index 9ca3fbb55..9c07873f0 100644 --- a/kms/src/model/DescribeKeyResult.cc +++ b/kms/src/model/DescribeKeyResult.cc @@ -35,10 +35,13 @@ DescribeKeyResult::~DescribeKeyResult() void DescribeKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto keyMetadataNode = value["KeyMetadata"]; if(!keyMetadataNode["CreationDate"].isNull()) @@ -61,6 +64,8 @@ void DescribeKeyResult::parse(const std::string &payload) keyMetadata_.origin = keyMetadataNode["Origin"].asString(); if(!keyMetadataNode["MaterialExpireTime"].isNull()) keyMetadata_.materialExpireTime = keyMetadataNode["MaterialExpireTime"].asString(); + if(!keyMetadataNode["ProtectionLevel"].isNull()) + keyMetadata_.protectionLevel = keyMetadataNode["ProtectionLevel"].asString(); } diff --git a/kms/src/model/DescribeRegionsRequest.cc b/kms/src/model/DescribeRegionsRequest.cc index 7b88b0f19..8b783eaf8 100644 --- a/kms/src/model/DescribeRegionsRequest.cc +++ b/kms/src/model/DescribeRegionsRequest.cc @@ -25,14 +25,3 @@ DescribeRegionsRequest::DescribeRegionsRequest() : DescribeRegionsRequest::~DescribeRegionsRequest() {} -std::string DescribeRegionsRequest::getSTSToken()const -{ - return sTSToken_; -} - -void DescribeRegionsRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); -} - diff --git a/kms/src/model/DescribeRegionsResult.cc b/kms/src/model/DescribeRegionsResult.cc index fa22bfc65..cbde4afe7 100644 --- a/kms/src/model/DescribeRegionsResult.cc +++ b/kms/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/kms/src/model/DescribeServiceRequest.cc b/kms/src/model/DescribeServiceRequest.cc new file mode 100644 index 000000000..3d4e39423 --- /dev/null +++ b/kms/src/model/DescribeServiceRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Kms::Model::DescribeServiceRequest; + +DescribeServiceRequest::DescribeServiceRequest() : + RpcServiceRequest("kms", "2016-01-20", "DescribeService") +{} + +DescribeServiceRequest::~DescribeServiceRequest() +{} + diff --git a/kms/src/model/DescribeServiceResult.cc b/kms/src/model/DescribeServiceResult.cc new file mode 100644 index 000000000..7db2d5e5d --- /dev/null +++ b/kms/src/model/DescribeServiceResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Kms; +using namespace AlibabaCloud::Kms::Model; + +DescribeServiceResult::DescribeServiceResult() : + ServiceResult() +{} + +DescribeServiceResult::DescribeServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeServiceResult::~DescribeServiceResult() +{} + +void DescribeServiceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allProtectionLevels = value["ProtectionLevels"]["ProtectionLevel"]; + for (auto value : allProtectionLevels) + { + ProtectionLevel protectionLevelsObject; + if(!value["Type"].isNull()) + protectionLevelsObject.type = value["Type"].asString(); + protectionLevels_.push_back(protectionLevelsObject); + } + +} + +std::vector DescribeServiceResult::getProtectionLevels()const +{ + return protectionLevels_; +} + diff --git a/kms/src/model/DisableKeyRequest.cc b/kms/src/model/DisableKeyRequest.cc index f602cfdce..1506a75ff 100644 --- a/kms/src/model/DisableKeyRequest.cc +++ b/kms/src/model/DisableKeyRequest.cc @@ -33,17 +33,6 @@ std::string DisableKeyRequest::getKeyId()const void DisableKeyRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string DisableKeyRequest::getSTSToken()const -{ - return sTSToken_; -} - -void DisableKeyRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/DisableKeyResult.cc b/kms/src/model/DisableKeyResult.cc index cee47c9f5..67d5d07c4 100644 --- a/kms/src/model/DisableKeyResult.cc +++ b/kms/src/model/DisableKeyResult.cc @@ -35,10 +35,13 @@ DisableKeyResult::~DisableKeyResult() void DisableKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/EnableKeyRequest.cc b/kms/src/model/EnableKeyRequest.cc index 60347cbdf..1bae55736 100644 --- a/kms/src/model/EnableKeyRequest.cc +++ b/kms/src/model/EnableKeyRequest.cc @@ -33,17 +33,6 @@ std::string EnableKeyRequest::getKeyId()const void EnableKeyRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string EnableKeyRequest::getSTSToken()const -{ - return sTSToken_; -} - -void EnableKeyRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/EnableKeyResult.cc b/kms/src/model/EnableKeyResult.cc index 45abd2c45..4280b0420 100644 --- a/kms/src/model/EnableKeyResult.cc +++ b/kms/src/model/EnableKeyResult.cc @@ -35,10 +35,13 @@ EnableKeyResult::~EnableKeyResult() void EnableKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/EncryptRequest.cc b/kms/src/model/EncryptRequest.cc index 0526941bb..ae248e078 100644 --- a/kms/src/model/EncryptRequest.cc +++ b/kms/src/model/EncryptRequest.cc @@ -33,7 +33,7 @@ std::string EncryptRequest::getEncryptionContext()const void EncryptRequest::setEncryptionContext(const std::string& encryptionContext) { encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); + setCoreParameter("EncryptionContext", encryptionContext); } std::string EncryptRequest::getKeyId()const @@ -44,18 +44,7 @@ std::string EncryptRequest::getKeyId()const void EncryptRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string EncryptRequest::getSTSToken()const -{ - return sTSToken_; -} - -void EncryptRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } std::string EncryptRequest::getPlaintext()const @@ -66,6 +55,6 @@ std::string EncryptRequest::getPlaintext()const void EncryptRequest::setPlaintext(const std::string& plaintext) { plaintext_ = plaintext; - setParameter("Plaintext", plaintext); + setCoreParameter("Plaintext", plaintext); } diff --git a/kms/src/model/EncryptResult.cc b/kms/src/model/EncryptResult.cc index 3106af7f8..9d9176d06 100644 --- a/kms/src/model/EncryptResult.cc +++ b/kms/src/model/EncryptResult.cc @@ -35,10 +35,13 @@ EncryptResult::~EncryptResult() void EncryptResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CiphertextBlob"].isNull()) ciphertextBlob_ = value["CiphertextBlob"].asString(); diff --git a/kms/src/model/GenerateDataKeyRequest.cc b/kms/src/model/GenerateDataKeyRequest.cc index ae780043a..f50134792 100644 --- a/kms/src/model/GenerateDataKeyRequest.cc +++ b/kms/src/model/GenerateDataKeyRequest.cc @@ -33,7 +33,7 @@ std::string GenerateDataKeyRequest::getEncryptionContext()const void GenerateDataKeyRequest::setEncryptionContext(const std::string& encryptionContext) { encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); + setCoreParameter("EncryptionContext", encryptionContext); } std::string GenerateDataKeyRequest::getKeyId()const @@ -44,7 +44,7 @@ std::string GenerateDataKeyRequest::getKeyId()const void GenerateDataKeyRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); + setCoreParameter("KeyId", keyId); } std::string GenerateDataKeyRequest::getKeySpec()const @@ -55,18 +55,7 @@ std::string GenerateDataKeyRequest::getKeySpec()const void GenerateDataKeyRequest::setKeySpec(const std::string& keySpec) { keySpec_ = keySpec; - setParameter("KeySpec", keySpec); -} - -std::string GenerateDataKeyRequest::getSTSToken()const -{ - return sTSToken_; -} - -void GenerateDataKeyRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeySpec", keySpec); } int GenerateDataKeyRequest::getNumberOfBytes()const @@ -77,6 +66,6 @@ int GenerateDataKeyRequest::getNumberOfBytes()const void GenerateDataKeyRequest::setNumberOfBytes(int numberOfBytes) { numberOfBytes_ = numberOfBytes; - setParameter("NumberOfBytes", std::to_string(numberOfBytes)); + setCoreParameter("NumberOfBytes", std::to_string(numberOfBytes)); } diff --git a/kms/src/model/GenerateDataKeyResult.cc b/kms/src/model/GenerateDataKeyResult.cc index 4892e72ab..de68349eb 100644 --- a/kms/src/model/GenerateDataKeyResult.cc +++ b/kms/src/model/GenerateDataKeyResult.cc @@ -35,10 +35,13 @@ GenerateDataKeyResult::~GenerateDataKeyResult() void GenerateDataKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CiphertextBlob"].isNull()) ciphertextBlob_ = value["CiphertextBlob"].asString(); diff --git a/kms/src/model/GetParametersForImportRequest.cc b/kms/src/model/GetParametersForImportRequest.cc index b98adc2a0..2b6a30b42 100644 --- a/kms/src/model/GetParametersForImportRequest.cc +++ b/kms/src/model/GetParametersForImportRequest.cc @@ -33,18 +33,7 @@ std::string GetParametersForImportRequest::getKeyId()const void GetParametersForImportRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string GetParametersForImportRequest::getSTSToken()const -{ - return sTSToken_; -} - -void GetParametersForImportRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } std::string GetParametersForImportRequest::getWrappingAlgorithm()const @@ -55,7 +44,7 @@ std::string GetParametersForImportRequest::getWrappingAlgorithm()const void GetParametersForImportRequest::setWrappingAlgorithm(const std::string& wrappingAlgorithm) { wrappingAlgorithm_ = wrappingAlgorithm; - setParameter("WrappingAlgorithm", wrappingAlgorithm); + setCoreParameter("WrappingAlgorithm", wrappingAlgorithm); } std::string GetParametersForImportRequest::getWrappingKeySpec()const @@ -66,6 +55,6 @@ std::string GetParametersForImportRequest::getWrappingKeySpec()const void GetParametersForImportRequest::setWrappingKeySpec(const std::string& wrappingKeySpec) { wrappingKeySpec_ = wrappingKeySpec; - setParameter("WrappingKeySpec", wrappingKeySpec); + setCoreParameter("WrappingKeySpec", wrappingKeySpec); } diff --git a/kms/src/model/GetParametersForImportResult.cc b/kms/src/model/GetParametersForImportResult.cc index ed9163503..776f706b4 100644 --- a/kms/src/model/GetParametersForImportResult.cc +++ b/kms/src/model/GetParametersForImportResult.cc @@ -35,10 +35,13 @@ GetParametersForImportResult::~GetParametersForImportResult() void GetParametersForImportResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["KeyId"].isNull()) keyId_ = value["KeyId"].asString(); diff --git a/kms/src/model/ImportKeyMaterialRequest.cc b/kms/src/model/ImportKeyMaterialRequest.cc index b63f6caee..3e9cf81e6 100644 --- a/kms/src/model/ImportKeyMaterialRequest.cc +++ b/kms/src/model/ImportKeyMaterialRequest.cc @@ -33,7 +33,7 @@ std::string ImportKeyMaterialRequest::getImportToken()const void ImportKeyMaterialRequest::setImportToken(const std::string& importToken) { importToken_ = importToken; - setParameter("ImportToken", importToken); + setCoreParameter("ImportToken", importToken); } std::string ImportKeyMaterialRequest::getEncryptedKeyMaterial()const @@ -44,7 +44,7 @@ std::string ImportKeyMaterialRequest::getEncryptedKeyMaterial()const void ImportKeyMaterialRequest::setEncryptedKeyMaterial(const std::string& encryptedKeyMaterial) { encryptedKeyMaterial_ = encryptedKeyMaterial; - setParameter("EncryptedKeyMaterial", encryptedKeyMaterial); + setCoreParameter("EncryptedKeyMaterial", encryptedKeyMaterial); } long ImportKeyMaterialRequest::getKeyMaterialExpireUnix()const @@ -55,7 +55,7 @@ long ImportKeyMaterialRequest::getKeyMaterialExpireUnix()const void ImportKeyMaterialRequest::setKeyMaterialExpireUnix(long keyMaterialExpireUnix) { keyMaterialExpireUnix_ = keyMaterialExpireUnix; - setParameter("KeyMaterialExpireUnix", std::to_string(keyMaterialExpireUnix)); + setCoreParameter("KeyMaterialExpireUnix", std::to_string(keyMaterialExpireUnix)); } std::string ImportKeyMaterialRequest::getKeyId()const @@ -66,17 +66,6 @@ std::string ImportKeyMaterialRequest::getKeyId()const void ImportKeyMaterialRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string ImportKeyMaterialRequest::getSTSToken()const -{ - return sTSToken_; -} - -void ImportKeyMaterialRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/ImportKeyMaterialResult.cc b/kms/src/model/ImportKeyMaterialResult.cc index ba75b7af0..844afdc28 100644 --- a/kms/src/model/ImportKeyMaterialResult.cc +++ b/kms/src/model/ImportKeyMaterialResult.cc @@ -35,10 +35,13 @@ ImportKeyMaterialResult::~ImportKeyMaterialResult() void ImportKeyMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/ListAliasesByKeyIdRequest.cc b/kms/src/model/ListAliasesByKeyIdRequest.cc index 73aecf951..ef1f71c9b 100644 --- a/kms/src/model/ListAliasesByKeyIdRequest.cc +++ b/kms/src/model/ListAliasesByKeyIdRequest.cc @@ -33,7 +33,7 @@ int ListAliasesByKeyIdRequest::getPageSize()const void ListAliasesByKeyIdRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListAliasesByKeyIdRequest::getKeyId()const @@ -44,18 +44,7 @@ std::string ListAliasesByKeyIdRequest::getKeyId()const void ListAliasesByKeyIdRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string ListAliasesByKeyIdRequest::getSTSToken()const -{ - return sTSToken_; -} - -void ListAliasesByKeyIdRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } int ListAliasesByKeyIdRequest::getPageNumber()const @@ -66,6 +55,6 @@ int ListAliasesByKeyIdRequest::getPageNumber()const void ListAliasesByKeyIdRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/kms/src/model/ListAliasesByKeyIdResult.cc b/kms/src/model/ListAliasesByKeyIdResult.cc index 70e73b7ed..ef61ca8e7 100644 --- a/kms/src/model/ListAliasesByKeyIdResult.cc +++ b/kms/src/model/ListAliasesByKeyIdResult.cc @@ -35,10 +35,13 @@ ListAliasesByKeyIdResult::~ListAliasesByKeyIdResult() void ListAliasesByKeyIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAliases = value["Aliases"]["Alias"]; for (auto value : allAliases) diff --git a/kms/src/model/ListAliasesRequest.cc b/kms/src/model/ListAliasesRequest.cc index e4c079b28..d730a92c4 100644 --- a/kms/src/model/ListAliasesRequest.cc +++ b/kms/src/model/ListAliasesRequest.cc @@ -33,18 +33,7 @@ int ListAliasesRequest::getPageSize()const void ListAliasesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListAliasesRequest::getSTSToken()const -{ - return sTSToken_; -} - -void ListAliasesRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListAliasesRequest::getPageNumber()const @@ -55,6 +44,6 @@ int ListAliasesRequest::getPageNumber()const void ListAliasesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/kms/src/model/ListAliasesResult.cc b/kms/src/model/ListAliasesResult.cc index 45f0f622a..6399b0253 100644 --- a/kms/src/model/ListAliasesResult.cc +++ b/kms/src/model/ListAliasesResult.cc @@ -35,10 +35,13 @@ ListAliasesResult::~ListAliasesResult() void ListAliasesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAliases = value["Aliases"]["Alias"]; for (auto value : allAliases) diff --git a/kms/src/model/ListKeysRequest.cc b/kms/src/model/ListKeysRequest.cc index 47ce0f811..ff99c7a9c 100644 --- a/kms/src/model/ListKeysRequest.cc +++ b/kms/src/model/ListKeysRequest.cc @@ -33,18 +33,7 @@ int ListKeysRequest::getPageSize()const void ListKeysRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListKeysRequest::getSTSToken()const -{ - return sTSToken_; -} - -void ListKeysRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("PageSize", std::to_string(pageSize)); } int ListKeysRequest::getPageNumber()const @@ -55,6 +44,6 @@ int ListKeysRequest::getPageNumber()const void ListKeysRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/kms/src/model/ListKeysResult.cc b/kms/src/model/ListKeysResult.cc index 601da9951..d89116f42 100644 --- a/kms/src/model/ListKeysResult.cc +++ b/kms/src/model/ListKeysResult.cc @@ -35,10 +35,13 @@ ListKeysResult::~ListKeysResult() void ListKeysResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allKeys = value["Keys"]["Key"]; for (auto value : allKeys) diff --git a/kms/src/model/ListResourceTagsRequest.cc b/kms/src/model/ListResourceTagsRequest.cc index f33888075..1b3126513 100644 --- a/kms/src/model/ListResourceTagsRequest.cc +++ b/kms/src/model/ListResourceTagsRequest.cc @@ -33,17 +33,6 @@ std::string ListResourceTagsRequest::getKeyId()const void ListResourceTagsRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string ListResourceTagsRequest::getSTSToken()const -{ - return sTSToken_; -} - -void ListResourceTagsRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/ListResourceTagsResult.cc b/kms/src/model/ListResourceTagsResult.cc index e11921946..ceaf0c0e6 100644 --- a/kms/src/model/ListResourceTagsResult.cc +++ b/kms/src/model/ListResourceTagsResult.cc @@ -35,10 +35,13 @@ ListResourceTagsResult::~ListResourceTagsResult() void ListResourceTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) diff --git a/kms/src/model/ScheduleKeyDeletionRequest.cc b/kms/src/model/ScheduleKeyDeletionRequest.cc index 5a9a31826..f2e5a886e 100644 --- a/kms/src/model/ScheduleKeyDeletionRequest.cc +++ b/kms/src/model/ScheduleKeyDeletionRequest.cc @@ -33,7 +33,7 @@ int ScheduleKeyDeletionRequest::getPendingWindowInDays()const void ScheduleKeyDeletionRequest::setPendingWindowInDays(int pendingWindowInDays) { pendingWindowInDays_ = pendingWindowInDays; - setParameter("PendingWindowInDays", std::to_string(pendingWindowInDays)); + setCoreParameter("PendingWindowInDays", std::to_string(pendingWindowInDays)); } std::string ScheduleKeyDeletionRequest::getKeyId()const @@ -44,17 +44,6 @@ std::string ScheduleKeyDeletionRequest::getKeyId()const void ScheduleKeyDeletionRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string ScheduleKeyDeletionRequest::getSTSToken()const -{ - return sTSToken_; -} - -void ScheduleKeyDeletionRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/ScheduleKeyDeletionResult.cc b/kms/src/model/ScheduleKeyDeletionResult.cc index a319a5a40..3771f68b8 100644 --- a/kms/src/model/ScheduleKeyDeletionResult.cc +++ b/kms/src/model/ScheduleKeyDeletionResult.cc @@ -35,10 +35,13 @@ ScheduleKeyDeletionResult::~ScheduleKeyDeletionResult() void ScheduleKeyDeletionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/TagResourceRequest.cc b/kms/src/model/TagResourceRequest.cc index 5a81442b4..04499cfeb 100644 --- a/kms/src/model/TagResourceRequest.cc +++ b/kms/src/model/TagResourceRequest.cc @@ -33,18 +33,7 @@ std::string TagResourceRequest::getKeyId()const void TagResourceRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string TagResourceRequest::getSTSToken()const -{ - return sTSToken_; -} - -void TagResourceRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } std::string TagResourceRequest::getTags()const @@ -55,6 +44,6 @@ std::string TagResourceRequest::getTags()const void TagResourceRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/kms/src/model/TagResourceResult.cc b/kms/src/model/TagResourceResult.cc index b529d5204..e4b765265 100644 --- a/kms/src/model/TagResourceResult.cc +++ b/kms/src/model/TagResourceResult.cc @@ -35,10 +35,13 @@ TagResourceResult::~TagResourceResult() void TagResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/kms/src/model/UntagResourceRequest.cc b/kms/src/model/UntagResourceRequest.cc index 6609db6ef..deb349f1c 100644 --- a/kms/src/model/UntagResourceRequest.cc +++ b/kms/src/model/UntagResourceRequest.cc @@ -33,7 +33,7 @@ std::string UntagResourceRequest::getTagKeys()const void UntagResourceRequest::setTagKeys(const std::string& tagKeys) { tagKeys_ = tagKeys; - setParameter("TagKeys", tagKeys); + setCoreParameter("TagKeys", tagKeys); } std::string UntagResourceRequest::getKeyId()const @@ -44,17 +44,6 @@ std::string UntagResourceRequest::getKeyId()const void UntagResourceRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string UntagResourceRequest::getSTSToken()const -{ - return sTSToken_; -} - -void UntagResourceRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/UntagResourceResult.cc b/kms/src/model/UntagResourceResult.cc index f239f799a..1dfb8feae 100644 --- a/kms/src/model/UntagResourceResult.cc +++ b/kms/src/model/UntagResourceResult.cc @@ -35,10 +35,13 @@ UntagResourceResult::~UntagResourceResult() void UntagResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["KeyId"].isNull()) keyId_ = value["KeyId"].asString(); diff --git a/kms/src/model/UpdateAliasRequest.cc b/kms/src/model/UpdateAliasRequest.cc index 86fd4290c..53178e10f 100644 --- a/kms/src/model/UpdateAliasRequest.cc +++ b/kms/src/model/UpdateAliasRequest.cc @@ -33,7 +33,7 @@ std::string UpdateAliasRequest::getAliasName()const void UpdateAliasRequest::setAliasName(const std::string& aliasName) { aliasName_ = aliasName; - setParameter("AliasName", aliasName); + setCoreParameter("AliasName", aliasName); } std::string UpdateAliasRequest::getKeyId()const @@ -44,17 +44,6 @@ std::string UpdateAliasRequest::getKeyId()const void UpdateAliasRequest::setKeyId(const std::string& keyId) { keyId_ = keyId; - setParameter("KeyId", keyId); -} - -std::string UpdateAliasRequest::getSTSToken()const -{ - return sTSToken_; -} - -void UpdateAliasRequest::setSTSToken(const std::string& sTSToken) -{ - sTSToken_ = sTSToken; - setParameter("STSToken", sTSToken); + setCoreParameter("KeyId", keyId); } diff --git a/kms/src/model/UpdateAliasResult.cc b/kms/src/model/UpdateAliasResult.cc index 2226ac6c3..a99e02b94 100644 --- a/kms/src/model/UpdateAliasResult.cc +++ b/kms/src/model/UpdateAliasResult.cc @@ -35,10 +35,13 @@ UpdateAliasResult::~UpdateAliasResult() void UpdateAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/linkface/CMakeLists.txt b/linkface/CMakeLists.txt index 4f2e41ac1..73997f377 100644 --- a/linkface/CMakeLists.txt +++ b/linkface/CMakeLists.txt @@ -21,18 +21,22 @@ set(linkface_public_header include/alibabacloud/linkface/LinkFaceExport.h ) set(linkface_public_header_model + include/alibabacloud/linkface/model/QuerySyncPicScheduleRequest.h + include/alibabacloud/linkface/model/QuerySyncPicScheduleResult.h include/alibabacloud/linkface/model/UnlinkFaceRequest.h include/alibabacloud/linkface/model/UnlinkFaceResult.h include/alibabacloud/linkface/model/UpdateFaceRequest.h include/alibabacloud/linkface/model/UpdateFaceResult.h - include/alibabacloud/linkface/model/QuerySyncPicScheduleRequest.h - include/alibabacloud/linkface/model/QuerySyncPicScheduleResult.h include/alibabacloud/linkface/model/SyncFacePicturesRequest.h include/alibabacloud/linkface/model/SyncFacePicturesResult.h include/alibabacloud/linkface/model/CreateGroupRequest.h include/alibabacloud/linkface/model/CreateGroupResult.h + include/alibabacloud/linkface/model/DeleteDeviceAllGroupRequest.h + include/alibabacloud/linkface/model/DeleteDeviceAllGroupResult.h include/alibabacloud/linkface/model/DeleteGroupRequest.h include/alibabacloud/linkface/model/DeleteGroupResult.h + include/alibabacloud/linkface/model/DeleteDeviceGroupRequest.h + include/alibabacloud/linkface/model/DeleteDeviceGroupResult.h include/alibabacloud/linkface/model/DeleteFaceRequest.h include/alibabacloud/linkface/model/DeleteFaceResult.h include/alibabacloud/linkface/model/QueryAuthenticationRequest.h @@ -56,18 +60,22 @@ set(linkface_public_header_model set(linkface_src src/LinkFaceClient.cc + src/model/QuerySyncPicScheduleRequest.cc + src/model/QuerySyncPicScheduleResult.cc src/model/UnlinkFaceRequest.cc src/model/UnlinkFaceResult.cc src/model/UpdateFaceRequest.cc src/model/UpdateFaceResult.cc - src/model/QuerySyncPicScheduleRequest.cc - src/model/QuerySyncPicScheduleResult.cc src/model/SyncFacePicturesRequest.cc src/model/SyncFacePicturesResult.cc src/model/CreateGroupRequest.cc src/model/CreateGroupResult.cc + src/model/DeleteDeviceAllGroupRequest.cc + src/model/DeleteDeviceAllGroupResult.cc src/model/DeleteGroupRequest.cc src/model/DeleteGroupResult.cc + src/model/DeleteDeviceGroupRequest.cc + src/model/DeleteDeviceGroupResult.cc src/model/DeleteFaceRequest.cc src/model/DeleteFaceResult.cc src/model/QueryAuthenticationRequest.cc diff --git a/linkface/include/alibabacloud/linkface/LinkFaceClient.h b/linkface/include/alibabacloud/linkface/LinkFaceClient.h index 8f1092107..bb785df97 100644 --- a/linkface/include/alibabacloud/linkface/LinkFaceClient.h +++ b/linkface/include/alibabacloud/linkface/LinkFaceClient.h @@ -22,18 +22,22 @@ #include #include #include "LinkFaceExport.h" +#include "model/QuerySyncPicScheduleRequest.h" +#include "model/QuerySyncPicScheduleResult.h" #include "model/UnlinkFaceRequest.h" #include "model/UnlinkFaceResult.h" #include "model/UpdateFaceRequest.h" #include "model/UpdateFaceResult.h" -#include "model/QuerySyncPicScheduleRequest.h" -#include "model/QuerySyncPicScheduleResult.h" #include "model/SyncFacePicturesRequest.h" #include "model/SyncFacePicturesResult.h" #include "model/CreateGroupRequest.h" #include "model/CreateGroupResult.h" +#include "model/DeleteDeviceAllGroupRequest.h" +#include "model/DeleteDeviceAllGroupResult.h" #include "model/DeleteGroupRequest.h" #include "model/DeleteGroupResult.h" +#include "model/DeleteDeviceGroupRequest.h" +#include "model/DeleteDeviceGroupResult.h" #include "model/DeleteFaceRequest.h" #include "model/DeleteFaceResult.h" #include "model/QueryAuthenticationRequest.h" @@ -63,24 +67,30 @@ namespace AlibabaCloud class ALIBABACLOUD_LINKFACE_EXPORT LinkFaceClient : public RpcServiceClient { public: + typedef Outcome QuerySyncPicScheduleOutcome; + typedef std::future QuerySyncPicScheduleOutcomeCallable; + typedef std::function&)> QuerySyncPicScheduleAsyncHandler; typedef Outcome UnlinkFaceOutcome; typedef std::future UnlinkFaceOutcomeCallable; typedef std::function&)> UnlinkFaceAsyncHandler; typedef Outcome UpdateFaceOutcome; typedef std::future UpdateFaceOutcomeCallable; typedef std::function&)> UpdateFaceAsyncHandler; - typedef Outcome QuerySyncPicScheduleOutcome; - typedef std::future QuerySyncPicScheduleOutcomeCallable; - typedef std::function&)> QuerySyncPicScheduleAsyncHandler; typedef Outcome SyncFacePicturesOutcome; typedef std::future SyncFacePicturesOutcomeCallable; typedef std::function&)> SyncFacePicturesAsyncHandler; typedef Outcome CreateGroupOutcome; typedef std::future CreateGroupOutcomeCallable; typedef std::function&)> CreateGroupAsyncHandler; + typedef Outcome DeleteDeviceAllGroupOutcome; + typedef std::future DeleteDeviceAllGroupOutcomeCallable; + typedef std::function&)> DeleteDeviceAllGroupAsyncHandler; typedef Outcome DeleteGroupOutcome; typedef std::future DeleteGroupOutcomeCallable; typedef std::function&)> DeleteGroupAsyncHandler; + typedef Outcome DeleteDeviceGroupOutcome; + typedef std::future DeleteDeviceGroupOutcomeCallable; + typedef std::function&)> DeleteDeviceGroupAsyncHandler; typedef Outcome DeleteFaceOutcome; typedef std::future DeleteFaceOutcomeCallable; typedef std::function&)> DeleteFaceAsyncHandler; @@ -116,24 +126,30 @@ namespace AlibabaCloud LinkFaceClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); LinkFaceClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~LinkFaceClient(); + QuerySyncPicScheduleOutcome querySyncPicSchedule(const Model::QuerySyncPicScheduleRequest &request)const; + void querySyncPicScheduleAsync(const Model::QuerySyncPicScheduleRequest& request, const QuerySyncPicScheduleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySyncPicScheduleOutcomeCallable querySyncPicScheduleCallable(const Model::QuerySyncPicScheduleRequest& request) const; UnlinkFaceOutcome unlinkFace(const Model::UnlinkFaceRequest &request)const; void unlinkFaceAsync(const Model::UnlinkFaceRequest& request, const UnlinkFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnlinkFaceOutcomeCallable unlinkFaceCallable(const Model::UnlinkFaceRequest& request) const; UpdateFaceOutcome updateFace(const Model::UpdateFaceRequest &request)const; void updateFaceAsync(const Model::UpdateFaceRequest& request, const UpdateFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateFaceOutcomeCallable updateFaceCallable(const Model::UpdateFaceRequest& request) const; - QuerySyncPicScheduleOutcome querySyncPicSchedule(const Model::QuerySyncPicScheduleRequest &request)const; - void querySyncPicScheduleAsync(const Model::QuerySyncPicScheduleRequest& request, const QuerySyncPicScheduleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySyncPicScheduleOutcomeCallable querySyncPicScheduleCallable(const Model::QuerySyncPicScheduleRequest& request) const; SyncFacePicturesOutcome syncFacePictures(const Model::SyncFacePicturesRequest &request)const; void syncFacePicturesAsync(const Model::SyncFacePicturesRequest& request, const SyncFacePicturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SyncFacePicturesOutcomeCallable syncFacePicturesCallable(const Model::SyncFacePicturesRequest& request) const; CreateGroupOutcome createGroup(const Model::CreateGroupRequest &request)const; void createGroupAsync(const Model::CreateGroupRequest& request, const CreateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateGroupOutcomeCallable createGroupCallable(const Model::CreateGroupRequest& request) const; + DeleteDeviceAllGroupOutcome deleteDeviceAllGroup(const Model::DeleteDeviceAllGroupRequest &request)const; + void deleteDeviceAllGroupAsync(const Model::DeleteDeviceAllGroupRequest& request, const DeleteDeviceAllGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeviceAllGroupOutcomeCallable deleteDeviceAllGroupCallable(const Model::DeleteDeviceAllGroupRequest& request) const; DeleteGroupOutcome deleteGroup(const Model::DeleteGroupRequest &request)const; void deleteGroupAsync(const Model::DeleteGroupRequest& request, const DeleteGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteGroupOutcomeCallable deleteGroupCallable(const Model::DeleteGroupRequest& request) const; + DeleteDeviceGroupOutcome deleteDeviceGroup(const Model::DeleteDeviceGroupRequest &request)const; + void deleteDeviceGroupAsync(const Model::DeleteDeviceGroupRequest& request, const DeleteDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeviceGroupOutcomeCallable deleteDeviceGroupCallable(const Model::DeleteDeviceGroupRequest& request) const; DeleteFaceOutcome deleteFace(const Model::DeleteFaceRequest &request)const; void deleteFaceAsync(const Model::DeleteFaceRequest& request, const DeleteFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFaceOutcomeCallable deleteFaceCallable(const Model::DeleteFaceRequest& request) const; diff --git a/linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupRequest.h b/linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupRequest.h new file mode 100644 index 000000000..ce39ebc84 --- /dev/null +++ b/linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupRequest.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_LINKFACE_MODEL_DELETEDEVICEALLGROUPREQUEST_H_ +#define ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEALLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace LinkFace + { + namespace Model + { + class ALIBABACLOUD_LINKFACE_EXPORT DeleteDeviceAllGroupRequest : public RpcServiceRequest + { + + public: + DeleteDeviceAllGroupRequest(); + ~DeleteDeviceAllGroupRequest(); + + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + + private: + std::string iotId_; + std::string deviceName_; + std::string productKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEALLGROUPREQUEST_H_ \ No newline at end of file diff --git a/linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupResult.h b/linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupResult.h new file mode 100644 index 000000000..1451415ba --- /dev/null +++ b/linkface/include/alibabacloud/linkface/model/DeleteDeviceAllGroupResult.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_LINKFACE_MODEL_DELETEDEVICEALLGROUPRESULT_H_ +#define ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEALLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace LinkFace + { + namespace Model + { + class ALIBABACLOUD_LINKFACE_EXPORT DeleteDeviceAllGroupResult : public ServiceResult + { + public: + + + DeleteDeviceAllGroupResult(); + explicit DeleteDeviceAllGroupResult(const std::string &payload); + ~DeleteDeviceAllGroupResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEALLGROUPRESULT_H_ \ No newline at end of file diff --git a/linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupRequest.h b/linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupRequest.h new file mode 100644 index 000000000..2f901c112 --- /dev/null +++ b/linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupRequest.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_LINKFACE_MODEL_DELETEDEVICEGROUPREQUEST_H_ +#define ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace LinkFace + { + namespace Model + { + class ALIBABACLOUD_LINKFACE_EXPORT DeleteDeviceGroupRequest : public RpcServiceRequest + { + + public: + DeleteDeviceGroupRequest(); + ~DeleteDeviceGroupRequest(); + + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + + private: + std::string iotId_; + std::string groupId_; + std::string deviceName_; + std::string productKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEGROUPREQUEST_H_ \ No newline at end of file diff --git a/linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupResult.h b/linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupResult.h new file mode 100644 index 000000000..35ea07aa2 --- /dev/null +++ b/linkface/include/alibabacloud/linkface/model/DeleteDeviceGroupResult.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_LINKFACE_MODEL_DELETEDEVICEGROUPRESULT_H_ +#define ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace LinkFace + { + namespace Model + { + class ALIBABACLOUD_LINKFACE_EXPORT DeleteDeviceGroupResult : public ServiceResult + { + public: + + + DeleteDeviceGroupResult(); + explicit DeleteDeviceGroupResult(const std::string &payload); + ~DeleteDeviceGroupResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LINKFACE_MODEL_DELETEDEVICEGROUPRESULT_H_ \ No newline at end of file diff --git a/linkface/include/alibabacloud/linkface/model/QueryAddUserInfoRequest.h b/linkface/include/alibabacloud/linkface/model/QueryAddUserInfoRequest.h index a1e505986..e64aaefdc 100644 --- a/linkface/include/alibabacloud/linkface/model/QueryAddUserInfoRequest.h +++ b/linkface/include/alibabacloud/linkface/model/QueryAddUserInfoRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getIotId()const; void setIotId(const std::string& iotId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getDeviceName()const; void setDeviceName(const std::string& deviceName); std::string getProductKey()const; @@ -44,6 +46,7 @@ namespace AlibabaCloud private: std::string iotId_; + std::string groupId_; std::string deviceName_; std::string productKey_; diff --git a/linkface/include/alibabacloud/linkface/model/QuerySyncPicScheduleRequest.h b/linkface/include/alibabacloud/linkface/model/QuerySyncPicScheduleRequest.h index 853378abe..4fc9e7740 100644 --- a/linkface/include/alibabacloud/linkface/model/QuerySyncPicScheduleRequest.h +++ b/linkface/include/alibabacloud/linkface/model/QuerySyncPicScheduleRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getIotId()const; void setIotId(const std::string& iotId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getDeviceName()const; void setDeviceName(const std::string& deviceName); std::string getProductKey()const; @@ -44,6 +46,7 @@ namespace AlibabaCloud private: std::string iotId_; + std::string groupId_; std::string deviceName_; std::string productKey_; diff --git a/linkface/src/LinkFaceClient.cc b/linkface/src/LinkFaceClient.cc index ddfe92444..cef8180c6 100644 --- a/linkface/src/LinkFaceClient.cc +++ b/linkface/src/LinkFaceClient.cc @@ -31,26 +31,62 @@ LinkFaceClient::LinkFaceClient(const Credentials &credentials, const ClientConfi RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "linkface"); } LinkFaceClient::LinkFaceClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "linkface"); } LinkFaceClient::LinkFaceClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "linkface"); } LinkFaceClient::~LinkFaceClient() {} +LinkFaceClient::QuerySyncPicScheduleOutcome LinkFaceClient::querySyncPicSchedule(const QuerySyncPicScheduleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySyncPicScheduleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySyncPicScheduleOutcome(QuerySyncPicScheduleResult(outcome.result())); + else + return QuerySyncPicScheduleOutcome(outcome.error()); +} + +void LinkFaceClient::querySyncPicScheduleAsync(const QuerySyncPicScheduleRequest& request, const QuerySyncPicScheduleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySyncPicSchedule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LinkFaceClient::QuerySyncPicScheduleOutcomeCallable LinkFaceClient::querySyncPicScheduleCallable(const QuerySyncPicScheduleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySyncPicSchedule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LinkFaceClient::UnlinkFaceOutcome LinkFaceClient::unlinkFace(const UnlinkFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,42 +159,6 @@ LinkFaceClient::UpdateFaceOutcomeCallable LinkFaceClient::updateFaceCallable(con return task->get_future(); } -LinkFaceClient::QuerySyncPicScheduleOutcome LinkFaceClient::querySyncPicSchedule(const QuerySyncPicScheduleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySyncPicScheduleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySyncPicScheduleOutcome(QuerySyncPicScheduleResult(outcome.result())); - else - return QuerySyncPicScheduleOutcome(outcome.error()); -} - -void LinkFaceClient::querySyncPicScheduleAsync(const QuerySyncPicScheduleRequest& request, const QuerySyncPicScheduleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySyncPicSchedule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LinkFaceClient::QuerySyncPicScheduleOutcomeCallable LinkFaceClient::querySyncPicScheduleCallable(const QuerySyncPicScheduleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySyncPicSchedule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LinkFaceClient::SyncFacePicturesOutcome LinkFaceClient::syncFacePictures(const SyncFacePicturesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +231,42 @@ LinkFaceClient::CreateGroupOutcomeCallable LinkFaceClient::createGroupCallable(c return task->get_future(); } +LinkFaceClient::DeleteDeviceAllGroupOutcome LinkFaceClient::deleteDeviceAllGroup(const DeleteDeviceAllGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDeviceAllGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDeviceAllGroupOutcome(DeleteDeviceAllGroupResult(outcome.result())); + else + return DeleteDeviceAllGroupOutcome(outcome.error()); +} + +void LinkFaceClient::deleteDeviceAllGroupAsync(const DeleteDeviceAllGroupRequest& request, const DeleteDeviceAllGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDeviceAllGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LinkFaceClient::DeleteDeviceAllGroupOutcomeCallable LinkFaceClient::deleteDeviceAllGroupCallable(const DeleteDeviceAllGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDeviceAllGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LinkFaceClient::DeleteGroupOutcome LinkFaceClient::deleteGroup(const DeleteGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +303,42 @@ LinkFaceClient::DeleteGroupOutcomeCallable LinkFaceClient::deleteGroupCallable(c return task->get_future(); } +LinkFaceClient::DeleteDeviceGroupOutcome LinkFaceClient::deleteDeviceGroup(const DeleteDeviceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDeviceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDeviceGroupOutcome(DeleteDeviceGroupResult(outcome.result())); + else + return DeleteDeviceGroupOutcome(outcome.error()); +} + +void LinkFaceClient::deleteDeviceGroupAsync(const DeleteDeviceGroupRequest& request, const DeleteDeviceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDeviceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LinkFaceClient::DeleteDeviceGroupOutcomeCallable LinkFaceClient::deleteDeviceGroupCallable(const DeleteDeviceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDeviceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LinkFaceClient::DeleteFaceOutcome LinkFaceClient::deleteFace(const DeleteFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/linkface/src/model/CreateGroupRequest.cc b/linkface/src/model/CreateGroupRequest.cc index 5858cd8a8..88698b148 100644 --- a/linkface/src/model/CreateGroupRequest.cc +++ b/linkface/src/model/CreateGroupRequest.cc @@ -33,6 +33,6 @@ std::string CreateGroupRequest::getGroupId()const void CreateGroupRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } diff --git a/linkface/src/model/CreateGroupResult.cc b/linkface/src/model/CreateGroupResult.cc index b82910245..ace208d08 100644 --- a/linkface/src/model/CreateGroupResult.cc +++ b/linkface/src/model/CreateGroupResult.cc @@ -35,10 +35,13 @@ CreateGroupResult::~CreateGroupResult() void CreateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/linkface/src/model/DeleteDeviceAllGroupRequest.cc b/linkface/src/model/DeleteDeviceAllGroupRequest.cc new file mode 100644 index 000000000..99f00389b --- /dev/null +++ b/linkface/src/model/DeleteDeviceAllGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::LinkFace::Model::DeleteDeviceAllGroupRequest; + +DeleteDeviceAllGroupRequest::DeleteDeviceAllGroupRequest() : + RpcServiceRequest("linkface", "2018-07-20", "DeleteDeviceAllGroup") +{} + +DeleteDeviceAllGroupRequest::~DeleteDeviceAllGroupRequest() +{} + +std::string DeleteDeviceAllGroupRequest::getIotId()const +{ + return iotId_; +} + +void DeleteDeviceAllGroupRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setCoreParameter("IotId", iotId); +} + +std::string DeleteDeviceAllGroupRequest::getDeviceName()const +{ + return deviceName_; +} + +void DeleteDeviceAllGroupRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setCoreParameter("DeviceName", deviceName); +} + +std::string DeleteDeviceAllGroupRequest::getProductKey()const +{ + return productKey_; +} + +void DeleteDeviceAllGroupRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setCoreParameter("ProductKey", productKey); +} + diff --git a/linkface/src/model/DeleteDeviceAllGroupResult.cc b/linkface/src/model/DeleteDeviceAllGroupResult.cc new file mode 100644 index 000000000..7fb8d5ec8 --- /dev/null +++ b/linkface/src/model/DeleteDeviceAllGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::LinkFace; +using namespace AlibabaCloud::LinkFace::Model; + +DeleteDeviceAllGroupResult::DeleteDeviceAllGroupResult() : + ServiceResult() +{} + +DeleteDeviceAllGroupResult::DeleteDeviceAllGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDeviceAllGroupResult::~DeleteDeviceAllGroupResult() +{} + +void DeleteDeviceAllGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteDeviceAllGroupResult::getMessage()const +{ + return message_; +} + +int DeleteDeviceAllGroupResult::getCode()const +{ + return code_; +} + +bool DeleteDeviceAllGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/linkface/src/model/DeleteDeviceGroupRequest.cc b/linkface/src/model/DeleteDeviceGroupRequest.cc new file mode 100644 index 000000000..5ba759eab --- /dev/null +++ b/linkface/src/model/DeleteDeviceGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::LinkFace::Model::DeleteDeviceGroupRequest; + +DeleteDeviceGroupRequest::DeleteDeviceGroupRequest() : + RpcServiceRequest("linkface", "2018-07-20", "DeleteDeviceGroup") +{} + +DeleteDeviceGroupRequest::~DeleteDeviceGroupRequest() +{} + +std::string DeleteDeviceGroupRequest::getIotId()const +{ + return iotId_; +} + +void DeleteDeviceGroupRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setCoreParameter("IotId", iotId); +} + +std::string DeleteDeviceGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteDeviceGroupRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DeleteDeviceGroupRequest::getDeviceName()const +{ + return deviceName_; +} + +void DeleteDeviceGroupRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setCoreParameter("DeviceName", deviceName); +} + +std::string DeleteDeviceGroupRequest::getProductKey()const +{ + return productKey_; +} + +void DeleteDeviceGroupRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setCoreParameter("ProductKey", productKey); +} + diff --git a/linkface/src/model/DeleteDeviceGroupResult.cc b/linkface/src/model/DeleteDeviceGroupResult.cc new file mode 100644 index 000000000..d69ad801a --- /dev/null +++ b/linkface/src/model/DeleteDeviceGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::LinkFace; +using namespace AlibabaCloud::LinkFace::Model; + +DeleteDeviceGroupResult::DeleteDeviceGroupResult() : + ServiceResult() +{} + +DeleteDeviceGroupResult::DeleteDeviceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDeviceGroupResult::~DeleteDeviceGroupResult() +{} + +void DeleteDeviceGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteDeviceGroupResult::getMessage()const +{ + return message_; +} + +int DeleteDeviceGroupResult::getCode()const +{ + return code_; +} + +bool DeleteDeviceGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/linkface/src/model/DeleteFaceRequest.cc b/linkface/src/model/DeleteFaceRequest.cc index a9b9e2b92..b5630a9cf 100644 --- a/linkface/src/model/DeleteFaceRequest.cc +++ b/linkface/src/model/DeleteFaceRequest.cc @@ -33,7 +33,7 @@ std::string DeleteFaceRequest::getGroupId()const void DeleteFaceRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string DeleteFaceRequest::getUserId()const @@ -44,6 +44,6 @@ std::string DeleteFaceRequest::getUserId()const void DeleteFaceRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/linkface/src/model/DeleteFaceResult.cc b/linkface/src/model/DeleteFaceResult.cc index 2d5759d32..37b08af4c 100644 --- a/linkface/src/model/DeleteFaceResult.cc +++ b/linkface/src/model/DeleteFaceResult.cc @@ -35,10 +35,13 @@ DeleteFaceResult::~DeleteFaceResult() void DeleteFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/linkface/src/model/DeleteGroupRequest.cc b/linkface/src/model/DeleteGroupRequest.cc index 69ffdc9f6..6860455fb 100644 --- a/linkface/src/model/DeleteGroupRequest.cc +++ b/linkface/src/model/DeleteGroupRequest.cc @@ -33,6 +33,6 @@ std::string DeleteGroupRequest::getGroupId()const void DeleteGroupRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } diff --git a/linkface/src/model/DeleteGroupResult.cc b/linkface/src/model/DeleteGroupResult.cc index b618bdb9a..3f6a5ebfa 100644 --- a/linkface/src/model/DeleteGroupResult.cc +++ b/linkface/src/model/DeleteGroupResult.cc @@ -35,10 +35,13 @@ DeleteGroupResult::~DeleteGroupResult() void DeleteGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/linkface/src/model/LinkFaceRequest.cc b/linkface/src/model/LinkFaceRequest.cc index b26db1be0..9c10cc5c7 100644 --- a/linkface/src/model/LinkFaceRequest.cc +++ b/linkface/src/model/LinkFaceRequest.cc @@ -33,7 +33,7 @@ std::string LinkFaceRequest::getGroupId()const void LinkFaceRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string LinkFaceRequest::getUserId()const @@ -44,6 +44,6 @@ std::string LinkFaceRequest::getUserId()const void LinkFaceRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/linkface/src/model/LinkFaceResult.cc b/linkface/src/model/LinkFaceResult.cc index d90adda46..a8417461b 100644 --- a/linkface/src/model/LinkFaceResult.cc +++ b/linkface/src/model/LinkFaceResult.cc @@ -35,10 +35,13 @@ LinkFaceResult::~LinkFaceResult() void LinkFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/linkface/src/model/QueryAddUserInfoRequest.cc b/linkface/src/model/QueryAddUserInfoRequest.cc index 318f93fbe..db8965f8f 100644 --- a/linkface/src/model/QueryAddUserInfoRequest.cc +++ b/linkface/src/model/QueryAddUserInfoRequest.cc @@ -33,7 +33,18 @@ std::string QueryAddUserInfoRequest::getIotId()const void QueryAddUserInfoRequest::setIotId(const std::string& iotId) { iotId_ = iotId; - setParameter("IotId", iotId); + setCoreParameter("IotId", iotId); +} + +std::string QueryAddUserInfoRequest::getGroupId()const +{ + return groupId_; +} + +void QueryAddUserInfoRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); } std::string QueryAddUserInfoRequest::getDeviceName()const @@ -44,7 +55,7 @@ std::string QueryAddUserInfoRequest::getDeviceName()const void QueryAddUserInfoRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } std::string QueryAddUserInfoRequest::getProductKey()const @@ -55,6 +66,6 @@ std::string QueryAddUserInfoRequest::getProductKey()const void QueryAddUserInfoRequest::setProductKey(const std::string& productKey) { productKey_ = productKey; - setParameter("ProductKey", productKey); + setCoreParameter("ProductKey", productKey); } diff --git a/linkface/src/model/QueryAddUserInfoResult.cc b/linkface/src/model/QueryAddUserInfoResult.cc index ffab56836..80813876c 100644 --- a/linkface/src/model/QueryAddUserInfoResult.cc +++ b/linkface/src/model/QueryAddUserInfoResult.cc @@ -35,10 +35,13 @@ QueryAddUserInfoResult::~QueryAddUserInfoResult() void QueryAddUserInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allCurrentFaceInfos = value["CurrentFaceInfos"]["CurrentFaceInfosItem"]; diff --git a/linkface/src/model/QueryAllGroupsRequest.cc b/linkface/src/model/QueryAllGroupsRequest.cc index d955f8a53..f436d5a7c 100644 --- a/linkface/src/model/QueryAllGroupsRequest.cc +++ b/linkface/src/model/QueryAllGroupsRequest.cc @@ -33,7 +33,7 @@ int QueryAllGroupsRequest::getPageSize()const void QueryAllGroupsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int QueryAllGroupsRequest::getCurrentPage()const @@ -44,6 +44,6 @@ int QueryAllGroupsRequest::getCurrentPage()const void QueryAllGroupsRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } diff --git a/linkface/src/model/QueryAllGroupsResult.cc b/linkface/src/model/QueryAllGroupsResult.cc index 4dd689c05..e3a06d37d 100644 --- a/linkface/src/model/QueryAllGroupsResult.cc +++ b/linkface/src/model/QueryAllGroupsResult.cc @@ -35,10 +35,13 @@ QueryAllGroupsResult::~QueryAllGroupsResult() void QueryAllGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allGroups = dataNode["Groups"]["Groups"]; diff --git a/linkface/src/model/QueryAuthenticationRequest.cc b/linkface/src/model/QueryAuthenticationRequest.cc index acccb75ad..9ec69b542 100644 --- a/linkface/src/model/QueryAuthenticationRequest.cc +++ b/linkface/src/model/QueryAuthenticationRequest.cc @@ -33,7 +33,7 @@ int QueryAuthenticationRequest::getLicenseType()const void QueryAuthenticationRequest::setLicenseType(int licenseType) { licenseType_ = licenseType; - setParameter("LicenseType", std::to_string(licenseType)); + setCoreParameter("LicenseType", std::to_string(licenseType)); } std::string QueryAuthenticationRequest::getIotId()const @@ -44,7 +44,7 @@ std::string QueryAuthenticationRequest::getIotId()const void QueryAuthenticationRequest::setIotId(const std::string& iotId) { iotId_ = iotId; - setParameter("IotId", iotId); + setCoreParameter("IotId", iotId); } int QueryAuthenticationRequest::getPageSize()const @@ -55,7 +55,7 @@ int QueryAuthenticationRequest::getPageSize()const void QueryAuthenticationRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int QueryAuthenticationRequest::getCurrentPage()const @@ -66,7 +66,7 @@ int QueryAuthenticationRequest::getCurrentPage()const void QueryAuthenticationRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } std::string QueryAuthenticationRequest::getDeviceName()const @@ -77,7 +77,7 @@ std::string QueryAuthenticationRequest::getDeviceName()const void QueryAuthenticationRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } std::string QueryAuthenticationRequest::getProductKey()const @@ -88,6 +88,6 @@ std::string QueryAuthenticationRequest::getProductKey()const void QueryAuthenticationRequest::setProductKey(const std::string& productKey) { productKey_ = productKey; - setParameter("ProductKey", productKey); + setCoreParameter("ProductKey", productKey); } diff --git a/linkface/src/model/QueryAuthenticationResult.cc b/linkface/src/model/QueryAuthenticationResult.cc index b4c87c46c..5e8b53ba8 100644 --- a/linkface/src/model/QueryAuthenticationResult.cc +++ b/linkface/src/model/QueryAuthenticationResult.cc @@ -35,10 +35,13 @@ QueryAuthenticationResult::~QueryAuthenticationResult() void QueryAuthenticationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DataItem"]; for (auto value : allData) diff --git a/linkface/src/model/QueryFaceRequest.cc b/linkface/src/model/QueryFaceRequest.cc index 24b77333d..4de836c7f 100644 --- a/linkface/src/model/QueryFaceRequest.cc +++ b/linkface/src/model/QueryFaceRequest.cc @@ -33,6 +33,6 @@ std::string QueryFaceRequest::getUserId()const void QueryFaceRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/linkface/src/model/QueryFaceResult.cc b/linkface/src/model/QueryFaceResult.cc index 530c3b9a4..1c9c3ca55 100644 --- a/linkface/src/model/QueryFaceResult.cc +++ b/linkface/src/model/QueryFaceResult.cc @@ -35,10 +35,13 @@ QueryFaceResult::~QueryFaceResult() void QueryFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allUserFaceMetas = value["UserFaceMetas"]["UserFaceMetasItem"]; diff --git a/linkface/src/model/QueryGroupUsersRequest.cc b/linkface/src/model/QueryGroupUsersRequest.cc index e2c00cd60..a2cc30389 100644 --- a/linkface/src/model/QueryGroupUsersRequest.cc +++ b/linkface/src/model/QueryGroupUsersRequest.cc @@ -33,7 +33,7 @@ std::string QueryGroupUsersRequest::getGroupId()const void QueryGroupUsersRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } int QueryGroupUsersRequest::getPageSize()const @@ -44,7 +44,7 @@ int QueryGroupUsersRequest::getPageSize()const void QueryGroupUsersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int QueryGroupUsersRequest::getCurrentPage()const @@ -55,6 +55,6 @@ int QueryGroupUsersRequest::getCurrentPage()const void QueryGroupUsersRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } diff --git a/linkface/src/model/QueryGroupUsersResult.cc b/linkface/src/model/QueryGroupUsersResult.cc index 7e5cadbcb..c8ad03d79 100644 --- a/linkface/src/model/QueryGroupUsersResult.cc +++ b/linkface/src/model/QueryGroupUsersResult.cc @@ -35,10 +35,13 @@ QueryGroupUsersResult::~QueryGroupUsersResult() void QueryGroupUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DataItem"]; for (auto value : allData) diff --git a/linkface/src/model/QueryLicensesRequest.cc b/linkface/src/model/QueryLicensesRequest.cc index 92da6c8eb..e8fe10b00 100644 --- a/linkface/src/model/QueryLicensesRequest.cc +++ b/linkface/src/model/QueryLicensesRequest.cc @@ -33,7 +33,7 @@ int QueryLicensesRequest::getLicenseType()const void QueryLicensesRequest::setLicenseType(int licenseType) { licenseType_ = licenseType; - setParameter("LicenseType", std::to_string(licenseType)); + setCoreParameter("LicenseType", std::to_string(licenseType)); } int QueryLicensesRequest::getPageSize()const @@ -44,7 +44,7 @@ int QueryLicensesRequest::getPageSize()const void QueryLicensesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int QueryLicensesRequest::getCurrentPage()const @@ -55,6 +55,6 @@ int QueryLicensesRequest::getCurrentPage()const void QueryLicensesRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); + setCoreParameter("CurrentPage", std::to_string(currentPage)); } diff --git a/linkface/src/model/QueryLicensesResult.cc b/linkface/src/model/QueryLicensesResult.cc index 037a5aecc..3e23f9741 100644 --- a/linkface/src/model/QueryLicensesResult.cc +++ b/linkface/src/model/QueryLicensesResult.cc @@ -35,10 +35,13 @@ QueryLicensesResult::~QueryLicensesResult() void QueryLicensesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DataItem"]; for (auto value : allData) diff --git a/linkface/src/model/QuerySyncPicScheduleRequest.cc b/linkface/src/model/QuerySyncPicScheduleRequest.cc index 6ae46cbcb..102ca0609 100644 --- a/linkface/src/model/QuerySyncPicScheduleRequest.cc +++ b/linkface/src/model/QuerySyncPicScheduleRequest.cc @@ -33,7 +33,18 @@ std::string QuerySyncPicScheduleRequest::getIotId()const void QuerySyncPicScheduleRequest::setIotId(const std::string& iotId) { iotId_ = iotId; - setParameter("IotId", iotId); + setCoreParameter("IotId", iotId); +} + +std::string QuerySyncPicScheduleRequest::getGroupId()const +{ + return groupId_; +} + +void QuerySyncPicScheduleRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); } std::string QuerySyncPicScheduleRequest::getDeviceName()const @@ -44,7 +55,7 @@ std::string QuerySyncPicScheduleRequest::getDeviceName()const void QuerySyncPicScheduleRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } std::string QuerySyncPicScheduleRequest::getProductKey()const @@ -55,6 +66,6 @@ std::string QuerySyncPicScheduleRequest::getProductKey()const void QuerySyncPicScheduleRequest::setProductKey(const std::string& productKey) { productKey_ = productKey; - setParameter("ProductKey", productKey); + setCoreParameter("ProductKey", productKey); } diff --git a/linkface/src/model/QuerySyncPicScheduleResult.cc b/linkface/src/model/QuerySyncPicScheduleResult.cc index 7c05e3a57..65fc8b2a3 100644 --- a/linkface/src/model/QuerySyncPicScheduleResult.cc +++ b/linkface/src/model/QuerySyncPicScheduleResult.cc @@ -35,10 +35,13 @@ QuerySyncPicScheduleResult::~QuerySyncPicScheduleResult() void QuerySyncPicScheduleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Rate"].isNull()) diff --git a/linkface/src/model/RegisterFaceRequest.cc b/linkface/src/model/RegisterFaceRequest.cc index 69d195a26..55ca88f66 100644 --- a/linkface/src/model/RegisterFaceRequest.cc +++ b/linkface/src/model/RegisterFaceRequest.cc @@ -33,7 +33,7 @@ std::string RegisterFaceRequest::getImage()const void RegisterFaceRequest::setImage(const std::string& image) { image_ = image; - setParameter("Image", image); + setCoreParameter("Image", image); } std::string RegisterFaceRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string RegisterFaceRequest::getGroupId()const void RegisterFaceRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string RegisterFaceRequest::getUserId()const @@ -55,7 +55,7 @@ std::string RegisterFaceRequest::getUserId()const void RegisterFaceRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string RegisterFaceRequest::getUserInfo()const @@ -66,6 +66,6 @@ std::string RegisterFaceRequest::getUserInfo()const void RegisterFaceRequest::setUserInfo(const std::string& userInfo) { userInfo_ = userInfo; - setParameter("UserInfo", userInfo); + setCoreParameter("UserInfo", userInfo); } diff --git a/linkface/src/model/RegisterFaceResult.cc b/linkface/src/model/RegisterFaceResult.cc index fd9e1ccf4..c7a6cf49c 100644 --- a/linkface/src/model/RegisterFaceResult.cc +++ b/linkface/src/model/RegisterFaceResult.cc @@ -35,10 +35,13 @@ RegisterFaceResult::~RegisterFaceResult() void RegisterFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/linkface/src/model/SearchFaceRequest.cc b/linkface/src/model/SearchFaceRequest.cc index 508d530f4..c7947b8e4 100644 --- a/linkface/src/model/SearchFaceRequest.cc +++ b/linkface/src/model/SearchFaceRequest.cc @@ -33,7 +33,7 @@ std::string SearchFaceRequest::getImage()const void SearchFaceRequest::setImage(const std::string& image) { image_ = image; - setParameter("Image", image); + setCoreParameter("Image", image); } std::string SearchFaceRequest::getGroupId()const @@ -44,6 +44,6 @@ std::string SearchFaceRequest::getGroupId()const void SearchFaceRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } diff --git a/linkface/src/model/SearchFaceResult.cc b/linkface/src/model/SearchFaceResult.cc index e0ca6f33b..5788c90ed 100644 --- a/linkface/src/model/SearchFaceResult.cc +++ b/linkface/src/model/SearchFaceResult.cc @@ -35,10 +35,13 @@ SearchFaceResult::~SearchFaceResult() void SearchFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allTopUserItem = value["TopUserItem"]["TopUserItemItem"]; diff --git a/linkface/src/model/SyncFacePicturesRequest.cc b/linkface/src/model/SyncFacePicturesRequest.cc index e5ee123c8..3a2cae79d 100644 --- a/linkface/src/model/SyncFacePicturesRequest.cc +++ b/linkface/src/model/SyncFacePicturesRequest.cc @@ -33,7 +33,7 @@ std::string SyncFacePicturesRequest::getIotId()const void SyncFacePicturesRequest::setIotId(const std::string& iotId) { iotId_ = iotId; - setParameter("IotId", iotId); + setCoreParameter("IotId", iotId); } std::string SyncFacePicturesRequest::getGroupId()const @@ -44,7 +44,7 @@ std::string SyncFacePicturesRequest::getGroupId()const void SyncFacePicturesRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string SyncFacePicturesRequest::getDeviceName()const @@ -55,7 +55,7 @@ std::string SyncFacePicturesRequest::getDeviceName()const void SyncFacePicturesRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } std::string SyncFacePicturesRequest::getProductKey()const @@ -66,6 +66,6 @@ std::string SyncFacePicturesRequest::getProductKey()const void SyncFacePicturesRequest::setProductKey(const std::string& productKey) { productKey_ = productKey; - setParameter("ProductKey", productKey); + setCoreParameter("ProductKey", productKey); } diff --git a/linkface/src/model/SyncFacePicturesResult.cc b/linkface/src/model/SyncFacePicturesResult.cc index 68f8660a0..b136dd41d 100644 --- a/linkface/src/model/SyncFacePicturesResult.cc +++ b/linkface/src/model/SyncFacePicturesResult.cc @@ -35,10 +35,13 @@ SyncFacePicturesResult::~SyncFacePicturesResult() void SyncFacePicturesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/linkface/src/model/UnlinkFaceRequest.cc b/linkface/src/model/UnlinkFaceRequest.cc index f9d34e2d6..6e0cb4683 100644 --- a/linkface/src/model/UnlinkFaceRequest.cc +++ b/linkface/src/model/UnlinkFaceRequest.cc @@ -33,7 +33,7 @@ std::string UnlinkFaceRequest::getGroupId()const void UnlinkFaceRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string UnlinkFaceRequest::getUserId()const @@ -44,6 +44,6 @@ std::string UnlinkFaceRequest::getUserId()const void UnlinkFaceRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } diff --git a/linkface/src/model/UnlinkFaceResult.cc b/linkface/src/model/UnlinkFaceResult.cc index eb2267897..948e806e4 100644 --- a/linkface/src/model/UnlinkFaceResult.cc +++ b/linkface/src/model/UnlinkFaceResult.cc @@ -35,10 +35,13 @@ UnlinkFaceResult::~UnlinkFaceResult() void UnlinkFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/linkface/src/model/UpdateFaceRequest.cc b/linkface/src/model/UpdateFaceRequest.cc index 3f7988fec..18cc62608 100644 --- a/linkface/src/model/UpdateFaceRequest.cc +++ b/linkface/src/model/UpdateFaceRequest.cc @@ -33,7 +33,7 @@ std::string UpdateFaceRequest::getImage()const void UpdateFaceRequest::setImage(const std::string& image) { image_ = image; - setParameter("Image", image); + setCoreParameter("Image", image); } std::string UpdateFaceRequest::getUserId()const @@ -44,7 +44,7 @@ std::string UpdateFaceRequest::getUserId()const void UpdateFaceRequest::setUserId(const std::string& userId) { userId_ = userId; - setParameter("UserId", userId); + setCoreParameter("UserId", userId); } std::string UpdateFaceRequest::getUserInfo()const @@ -55,6 +55,6 @@ std::string UpdateFaceRequest::getUserInfo()const void UpdateFaceRequest::setUserInfo(const std::string& userInfo) { userInfo_ = userInfo; - setParameter("UserInfo", userInfo); + setCoreParameter("UserInfo", userInfo); } diff --git a/linkface/src/model/UpdateFaceResult.cc b/linkface/src/model/UpdateFaceResult.cc index f874126d7..8c653eda4 100644 --- a/linkface/src/model/UpdateFaceResult.cc +++ b/linkface/src/model/UpdateFaceResult.cc @@ -35,10 +35,13 @@ UpdateFaceResult::~UpdateFaceResult() void UpdateFaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index ea37ef87c..697460dbc 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -1,82 +1,742 @@ -# -# Copyright 2009-2017 Alibaba Cloud All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(live_public_header include/alibabacloud/live/LiveClient.h - include/alibabacloud/live/LiveExport.h ) - -set(live_public_header_model ) - + include/alibabacloud/live/LiveExport.h ) + +set(live_public_header_model + include/alibabacloud/live/model/StartBoardRecordRequest.h + include/alibabacloud/live/model/StartBoardRecordResult.h + include/alibabacloud/live/model/DescribeLiveRecordNotifyConfigRequest.h + include/alibabacloud/live/model/DescribeLiveRecordNotifyConfigResult.h + include/alibabacloud/live/model/DescribeRoomListRequest.h + include/alibabacloud/live/model/DescribeRoomListResult.h + include/alibabacloud/live/model/DescribeLiveDetectNotifyConfigRequest.h + include/alibabacloud/live/model/DescribeLiveDetectNotifyConfigResult.h + include/alibabacloud/live/model/ModifyCasterComponentRequest.h + include/alibabacloud/live/model/ModifyCasterComponentResult.h + include/alibabacloud/live/model/UpdateLiveSnapshotDetectPornConfigRequest.h + include/alibabacloud/live/model/UpdateLiveSnapshotDetectPornConfigResult.h + include/alibabacloud/live/model/CompleteBoardRequest.h + include/alibabacloud/live/model/CompleteBoardResult.h + include/alibabacloud/live/model/DescribeCasterComponentsRequest.h + include/alibabacloud/live/model/DescribeCasterComponentsResult.h + include/alibabacloud/live/model/EffectCasterUrgentRequest.h + include/alibabacloud/live/model/EffectCasterUrgentResult.h + include/alibabacloud/live/model/DescribeRoomStatusRequest.h + include/alibabacloud/live/model/DescribeRoomStatusResult.h + include/alibabacloud/live/model/CreateLiveStreamRecordIndexFilesRequest.h + include/alibabacloud/live/model/CreateLiveStreamRecordIndexFilesResult.h + include/alibabacloud/live/model/UpdateCasterSceneConfigRequest.h + include/alibabacloud/live/model/UpdateCasterSceneConfigResult.h + include/alibabacloud/live/model/DescribeLiveStreamsOnlineListRequest.h + include/alibabacloud/live/model/DescribeLiveStreamsOnlineListResult.h + include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoRequest.h + include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoResult.h + include/alibabacloud/live/model/DeleteLiveSnapshotDetectPornConfigRequest.h + include/alibabacloud/live/model/DeleteLiveSnapshotDetectPornConfigResult.h + include/alibabacloud/live/model/DescribeUpBpsPeakOfLineRequest.h + include/alibabacloud/live/model/DescribeUpBpsPeakOfLineResult.h + include/alibabacloud/live/model/CopyCasterSceneConfigRequest.h + include/alibabacloud/live/model/CopyCasterSceneConfigResult.h + include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataResult.h + include/alibabacloud/live/model/DeleteCasterEpisodeRequest.h + include/alibabacloud/live/model/DeleteCasterEpisodeResult.h + include/alibabacloud/live/model/DeleteLiveStreamTranscodeRequest.h + include/alibabacloud/live/model/DeleteLiveStreamTranscodeResult.h + include/alibabacloud/live/model/DescribeCasterRtcInfoRequest.h + include/alibabacloud/live/model/DescribeCasterRtcInfoResult.h + include/alibabacloud/live/model/AddTrancodeSEIRequest.h + include/alibabacloud/live/model/AddTrancodeSEIResult.h + include/alibabacloud/live/model/SetCasterSceneConfigRequest.h + include/alibabacloud/live/model/SetCasterSceneConfigResult.h + include/alibabacloud/live/model/DeleteBoardRequest.h + include/alibabacloud/live/model/DeleteBoardResult.h + include/alibabacloud/live/model/DescribeLiveStreamBitRateDataRequest.h + include/alibabacloud/live/model/DescribeLiveStreamBitRateDataResult.h + include/alibabacloud/live/model/DeleteCasterLayoutRequest.h + include/alibabacloud/live/model/DeleteCasterLayoutResult.h + include/alibabacloud/live/model/DeleteCasterProgramRequest.h + include/alibabacloud/live/model/DeleteCasterProgramResult.h + include/alibabacloud/live/model/StartCasterSceneRequest.h + include/alibabacloud/live/model/StartCasterSceneResult.h + include/alibabacloud/live/model/StartLiveIndexRequest.h + include/alibabacloud/live/model/StartLiveIndexResult.h + include/alibabacloud/live/model/AddCasterEpisodeGroupRequest.h + include/alibabacloud/live/model/AddCasterEpisodeGroupResult.h + include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFileRequest.h + include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFileResult.h + include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowRequest.h + include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowResult.h + include/alibabacloud/live/model/DescribeCasterConfigRequest.h + include/alibabacloud/live/model/DescribeCasterConfigResult.h + include/alibabacloud/live/model/DescribeLiveStreamTranscodeStreamNumRequest.h + include/alibabacloud/live/model/DescribeLiveStreamTranscodeStreamNumResult.h + include/alibabacloud/live/model/CopyCasterRequest.h + include/alibabacloud/live/model/CopyCasterResult.h + include/alibabacloud/live/model/SetLiveLazyPullStreamInfoConfigRequest.h + include/alibabacloud/live/model/SetLiveLazyPullStreamInfoConfigResult.h + include/alibabacloud/live/model/AddCustomLiveStreamTranscodeRequest.h + include/alibabacloud/live/model/AddCustomLiveStreamTranscodeResult.h + include/alibabacloud/live/model/AddCasterEpisodeRequest.h + include/alibabacloud/live/model/AddCasterEpisodeResult.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeBpsDataResult.h + include/alibabacloud/live/model/AllowPushStreamRequest.h + include/alibabacloud/live/model/AllowPushStreamResult.h + include/alibabacloud/live/model/ForbidPushStreamRequest.h + include/alibabacloud/live/model/ForbidPushStreamResult.h + include/alibabacloud/live/model/DescribeLiveRecordConfigRequest.h + include/alibabacloud/live/model/DescribeLiveRecordConfigResult.h + include/alibabacloud/live/model/AddLiveRecordNotifyConfigRequest.h + include/alibabacloud/live/model/AddLiveRecordNotifyConfigResult.h + include/alibabacloud/live/model/DescribeHlsLiveStreamRealTimeBpsDataRequest.h + include/alibabacloud/live/model/DescribeHlsLiveStreamRealTimeBpsDataResult.h + include/alibabacloud/live/model/DeleteLiveRecordNotifyConfigRequest.h + include/alibabacloud/live/model/DeleteLiveRecordNotifyConfigResult.h + include/alibabacloud/live/model/CreateBoardRequest.h + include/alibabacloud/live/model/CreateBoardResult.h + include/alibabacloud/live/model/DeleteLiveStreamsNotifyUrlConfigRequest.h + include/alibabacloud/live/model/DeleteLiveStreamsNotifyUrlConfigResult.h + include/alibabacloud/live/model/DescribeLiveStreamOnlineUserNumRequest.h + include/alibabacloud/live/model/DescribeLiveStreamOnlineUserNumResult.h + include/alibabacloud/live/model/DescribeRecordRequest.h + include/alibabacloud/live/model/DescribeRecordResult.h + include/alibabacloud/live/model/AddCasterComponentRequest.h + include/alibabacloud/live/model/AddCasterComponentResult.h + include/alibabacloud/live/model/DescribeLiveDomainRecordDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainRecordDataResult.h + include/alibabacloud/live/model/DeleteCasterVideoResourceRequest.h + include/alibabacloud/live/model/DeleteCasterVideoResourceResult.h + include/alibabacloud/live/model/DescribeLiveCertificateListRequest.h + include/alibabacloud/live/model/DescribeLiveCertificateListResult.h + include/alibabacloud/live/model/DeleteLiveAppSnapshotConfigRequest.h + include/alibabacloud/live/model/DeleteLiveAppSnapshotConfigResult.h + include/alibabacloud/live/model/DescribeLiveStreamsNotifyUrlConfigRequest.h + include/alibabacloud/live/model/DescribeLiveStreamsNotifyUrlConfigResult.h + include/alibabacloud/live/model/ApplyRecordTokenRequest.h + include/alibabacloud/live/model/ApplyRecordTokenResult.h + include/alibabacloud/live/model/UpdateCasterSceneAudioRequest.h + include/alibabacloud/live/model/UpdateCasterSceneAudioResult.h + include/alibabacloud/live/model/DescribeUpBpsPeakDataRequest.h + include/alibabacloud/live/model/DescribeUpBpsPeakDataResult.h + include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataResult.h + include/alibabacloud/live/model/ModifyLiveDomainSchdmByPropertyRequest.h + include/alibabacloud/live/model/ModifyLiveDomainSchdmByPropertyResult.h + include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigRequest.h + include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigResult.h + include/alibabacloud/live/model/UpdateLiveTopLevelDomainRequest.h + include/alibabacloud/live/model/UpdateLiveTopLevelDomainResult.h + include/alibabacloud/live/model/ModifyCasterProgramRequest.h + include/alibabacloud/live/model/ModifyCasterProgramResult.h + include/alibabacloud/live/model/DescribeBoardEventsRequest.h + include/alibabacloud/live/model/DescribeBoardEventsResult.h + include/alibabacloud/live/model/DescribeLiveCertificateDetailRequest.h + include/alibabacloud/live/model/DescribeLiveCertificateDetailResult.h + include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h + include/alibabacloud/live/model/DescribeLivePullStreamConfigResult.h + include/alibabacloud/live/model/SetLiveStreamsNotifyUrlConfigRequest.h + include/alibabacloud/live/model/SetLiveStreamsNotifyUrlConfigResult.h + include/alibabacloud/live/model/AddLivePullStreamInfoConfigRequest.h + include/alibabacloud/live/model/AddLivePullStreamInfoConfigResult.h + include/alibabacloud/live/model/StartLiveDomainRequest.h + include/alibabacloud/live/model/StartLiveDomainResult.h + include/alibabacloud/live/model/DescribeCasterSceneAudioRequest.h + include/alibabacloud/live/model/DescribeCasterSceneAudioResult.h + include/alibabacloud/live/model/DescribeLiveStreamsBlockListRequest.h + include/alibabacloud/live/model/DescribeLiveStreamsBlockListResult.h + include/alibabacloud/live/model/AddLiveStreamTranscodeRequest.h + include/alibabacloud/live/model/AddLiveStreamTranscodeResult.h + include/alibabacloud/live/model/AddCasterVideoResourceRequest.h + include/alibabacloud/live/model/AddCasterVideoResourceResult.h + include/alibabacloud/live/model/DescribeRoomKickoutUserListRequest.h + include/alibabacloud/live/model/DescribeRoomKickoutUserListResult.h + include/alibabacloud/live/model/AddCasterEpisodeGroupContentRequest.h + include/alibabacloud/live/model/AddCasterEpisodeGroupContentResult.h + include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigRequest.h + include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigResult.h + include/alibabacloud/live/model/ModifyCasterVideoResourceRequest.h + include/alibabacloud/live/model/ModifyCasterVideoResourceResult.h + include/alibabacloud/live/model/CreateRoomRequest.h + include/alibabacloud/live/model/CreateRoomResult.h + include/alibabacloud/live/model/DescribeCasterStreamUrlRequest.h + include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h + include/alibabacloud/live/model/DescribeLiveStreamsControlHistoryRequest.h + include/alibabacloud/live/model/DescribeLiveStreamsControlHistoryResult.h + include/alibabacloud/live/model/DescribeLiveStreamCountRequest.h + include/alibabacloud/live/model/DescribeLiveStreamCountResult.h + include/alibabacloud/live/model/StopCasterSceneRequest.h + include/alibabacloud/live/model/StopCasterSceneResult.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeTrafficDataResult.h + include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataResult.h + include/alibabacloud/live/model/DeleteLiveRecordVodConfigRequest.h + include/alibabacloud/live/model/DeleteLiveRecordVodConfigResult.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainRealTimeHttpCodeDataResult.h + include/alibabacloud/live/model/ModifyCasterEpisodeRequest.h + include/alibabacloud/live/model/ModifyCasterEpisodeResult.h + include/alibabacloud/live/model/DescribeBoardsRequest.h + include/alibabacloud/live/model/DescribeBoardsResult.h + include/alibabacloud/live/model/DescribeLiveStreamSnapshotInfoRequest.h + include/alibabacloud/live/model/DescribeLiveStreamSnapshotInfoResult.h + include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h + include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h + include/alibabacloud/live/model/UpdateBoardCallbackRequest.h + include/alibabacloud/live/model/UpdateBoardCallbackResult.h + include/alibabacloud/live/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h + include/alibabacloud/live/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h + include/alibabacloud/live/model/DescribeForbidPushStreamRoomListRequest.h + include/alibabacloud/live/model/DescribeForbidPushStreamRoomListResult.h + include/alibabacloud/live/model/CreateCasterRequest.h + include/alibabacloud/live/model/CreateCasterResult.h + include/alibabacloud/live/model/DescribeLiveStreamRecordContentRequest.h + include/alibabacloud/live/model/DescribeLiveStreamRecordContentResult.h + include/alibabacloud/live/model/DescribeCasterLayoutsRequest.h + include/alibabacloud/live/model/DescribeCasterLayoutsResult.h + include/alibabacloud/live/model/AddLiveSnapshotDetectPornConfigRequest.h + include/alibabacloud/live/model/AddLiveSnapshotDetectPornConfigResult.h + include/alibabacloud/live/model/UpdateLiveRecordNotifyConfigRequest.h + include/alibabacloud/live/model/UpdateLiveRecordNotifyConfigResult.h + include/alibabacloud/live/model/SetCasterChannelRequest.h + include/alibabacloud/live/model/SetCasterChannelResult.h + include/alibabacloud/live/model/DescribeLiveSnapshotConfigRequest.h + include/alibabacloud/live/model/DescribeLiveSnapshotConfigResult.h + include/alibabacloud/live/model/CompleteBoardRecordRequest.h + include/alibabacloud/live/model/CompleteBoardRecordResult.h + include/alibabacloud/live/model/DescribeCasterProgramRequest.h + include/alibabacloud/live/model/DescribeCasterProgramResult.h + include/alibabacloud/live/model/DescribeLiveDomainTrafficDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainTrafficDataResult.h + include/alibabacloud/live/model/ApplyBoardTokenRequest.h + include/alibabacloud/live/model/ApplyBoardTokenResult.h + include/alibabacloud/live/model/StopLiveDomainRequest.h + include/alibabacloud/live/model/StopLiveDomainResult.h + include/alibabacloud/live/model/DescribeLiveStreamHistoryUserNumRequest.h + include/alibabacloud/live/model/DescribeLiveStreamHistoryUserNumResult.h + include/alibabacloud/live/model/AddLiveAppRecordConfigRequest.h + include/alibabacloud/live/model/AddLiveAppRecordConfigResult.h + include/alibabacloud/live/model/SendRoomUserNotificationRequest.h + include/alibabacloud/live/model/SendRoomUserNotificationResult.h + include/alibabacloud/live/model/AddLiveRecordVodConfigRequest.h + include/alibabacloud/live/model/AddLiveRecordVodConfigResult.h + include/alibabacloud/live/model/DeleteLiveDomainMappingRequest.h + include/alibabacloud/live/model/DeleteLiveDomainMappingResult.h + include/alibabacloud/live/model/BatchSetLiveDomainConfigsRequest.h + include/alibabacloud/live/model/BatchSetLiveDomainConfigsResult.h + include/alibabacloud/live/model/DescribeLiveDomainMappingRequest.h + include/alibabacloud/live/model/DescribeLiveDomainMappingResult.h + include/alibabacloud/live/model/DescribeLiveDomainDetailRequest.h + include/alibabacloud/live/model/DescribeLiveDomainDetailResult.h + include/alibabacloud/live/model/SetLiveStreamOptimizedFeatureConfigRequest.h + include/alibabacloud/live/model/SetLiveStreamOptimizedFeatureConfigResult.h + include/alibabacloud/live/model/DescribeCasterChannelsRequest.h + include/alibabacloud/live/model/DescribeCasterChannelsResult.h + include/alibabacloud/live/model/DescribeLiveDomainConfigsRequest.h + include/alibabacloud/live/model/DescribeLiveDomainConfigsResult.h + include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFilesRequest.h + include/alibabacloud/live/model/DescribeLiveStreamRecordIndexFilesResult.h + include/alibabacloud/live/model/DeleteRoomRequest.h + include/alibabacloud/live/model/DeleteRoomResult.h + include/alibabacloud/live/model/DescribeLiveStreamDelayConfigRequest.h + include/alibabacloud/live/model/DescribeLiveStreamDelayConfigResult.h + include/alibabacloud/live/model/AddCasterProgramRequest.h + include/alibabacloud/live/model/AddCasterProgramResult.h + include/alibabacloud/live/model/BatchDeleteLiveDomainConfigsRequest.h + include/alibabacloud/live/model/BatchDeleteLiveDomainConfigsResult.h + include/alibabacloud/live/model/DescribeBoardSnapshotRequest.h + include/alibabacloud/live/model/DescribeBoardSnapshotResult.h + include/alibabacloud/live/model/SetLiveDomainCertificateRequest.h + include/alibabacloud/live/model/SetLiveDomainCertificateResult.h + include/alibabacloud/live/model/ForbidLiveStreamRequest.h + include/alibabacloud/live/model/ForbidLiveStreamResult.h + include/alibabacloud/live/model/SetLiveStreamDelayConfigRequest.h + include/alibabacloud/live/model/SetLiveStreamDelayConfigResult.h + include/alibabacloud/live/model/DescribeRecordsRequest.h + include/alibabacloud/live/model/DescribeRecordsResult.h + include/alibabacloud/live/model/DeleteCasterEpisodeGroupRequest.h + include/alibabacloud/live/model/DeleteCasterEpisodeGroupResult.h + include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigRequest.h + include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigResult.h + include/alibabacloud/live/model/DescribeCasterVideoResourcesRequest.h + include/alibabacloud/live/model/DescribeCasterVideoResourcesResult.h + include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h + include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigResult.h + include/alibabacloud/live/model/DeleteLiveDetectNotifyConfigRequest.h + include/alibabacloud/live/model/DeleteLiveDetectNotifyConfigResult.h + include/alibabacloud/live/model/RealTimeSnapshotCommandRequest.h + include/alibabacloud/live/model/RealTimeSnapshotCommandResult.h + include/alibabacloud/live/model/EffectCasterVideoResourceRequest.h + include/alibabacloud/live/model/EffectCasterVideoResourceResult.h + include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h + include/alibabacloud/live/model/AddLiveAppSnapshotConfigResult.h + include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataRequest.h + include/alibabacloud/live/model/DescribeUpPeakPublishStreamDataResult.h + include/alibabacloud/live/model/DeleteCasterComponentRequest.h + include/alibabacloud/live/model/DeleteCasterComponentResult.h + include/alibabacloud/live/model/DeleteLiveDomainRequest.h + include/alibabacloud/live/model/DeleteLiveDomainResult.h + include/alibabacloud/live/model/AddLiveDomainMappingRequest.h + include/alibabacloud/live/model/AddLiveDomainMappingResult.h + include/alibabacloud/live/model/RealTimeRecordCommandRequest.h + include/alibabacloud/live/model/RealTimeRecordCommandResult.h + include/alibabacloud/live/model/SetCasterConfigRequest.h + include/alibabacloud/live/model/SetCasterConfigResult.h + include/alibabacloud/live/model/StartCasterRequest.h + include/alibabacloud/live/model/StartCasterResult.h + include/alibabacloud/live/model/UpdateBoardRequest.h + include/alibabacloud/live/model/UpdateBoardResult.h + include/alibabacloud/live/model/AddCasterLayoutRequest.h + include/alibabacloud/live/model/AddCasterLayoutResult.h + include/alibabacloud/live/model/ResumeLiveStreamRequest.h + include/alibabacloud/live/model/ResumeLiveStreamResult.h + include/alibabacloud/live/model/JoinBoardRequest.h + include/alibabacloud/live/model/JoinBoardResult.h + include/alibabacloud/live/model/DescribeLiveUserDomainsRequest.h + include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h + include/alibabacloud/live/model/StopCasterRequest.h + include/alibabacloud/live/model/StopCasterResult.h + include/alibabacloud/live/model/ModifyCasterLayoutRequest.h + include/alibabacloud/live/model/ModifyCasterLayoutResult.h + include/alibabacloud/live/model/DescribeLiveStreamsPublishListRequest.h + include/alibabacloud/live/model/DescribeLiveStreamsPublishListResult.h + include/alibabacloud/live/model/DescribeLiveSnapshotDetectPornConfigRequest.h + include/alibabacloud/live/model/DescribeLiveSnapshotDetectPornConfigResult.h + include/alibabacloud/live/model/DeleteCasterSceneConfigRequest.h + include/alibabacloud/live/model/DeleteCasterSceneConfigResult.h + include/alibabacloud/live/model/StopLiveIndexRequest.h + include/alibabacloud/live/model/StopLiveIndexResult.h + include/alibabacloud/live/model/AddLiveDomainRequest.h + include/alibabacloud/live/model/AddLiveDomainResult.h + include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumRequest.h + include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumResult.h + include/alibabacloud/live/model/DeleteLiveAppRecordConfigRequest.h + include/alibabacloud/live/model/DeleteLiveAppRecordConfigResult.h + include/alibabacloud/live/model/DeleteCasterRequest.h + include/alibabacloud/live/model/DeleteCasterResult.h + include/alibabacloud/live/model/DescribeLiveDomainBpsDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainBpsDataResult.h + include/alibabacloud/live/model/DescribeLiveRecordVodConfigsRequest.h + include/alibabacloud/live/model/DescribeLiveRecordVodConfigsResult.h + include/alibabacloud/live/model/DescribeCastersRequest.h + include/alibabacloud/live/model/DescribeCastersResult.h + include/alibabacloud/live/model/AddLiveDetectNotifyConfigRequest.h + include/alibabacloud/live/model/AddLiveDetectNotifyConfigResult.h + include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigRequest.h + include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigResult.h + include/alibabacloud/live/model/DescribeCasterScenesRequest.h + include/alibabacloud/live/model/DescribeCasterScenesResult.h + include/alibabacloud/live/model/SetBoardCallbackRequest.h + include/alibabacloud/live/model/SetBoardCallbackResult.h + include/alibabacloud/live/model/DeleteLiveLazyPullStreamInfoConfigRequest.h + include/alibabacloud/live/model/DeleteLiveLazyPullStreamInfoConfigResult.h + include/alibabacloud/live/model/SendRoomNotificationRequest.h + include/alibabacloud/live/model/SendRoomNotificationResult.h ) + set(live_src - src/LiveClient.cc ) - -add_library(live ${LIB_TYPE} - ${live_public_header} - ${live_public_header_model} - ${live_src}) - -set_target_properties(live - 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}live - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(live - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_LIVE_LIBRARY) -endif() - -target_include_directories(live - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(live - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(live - jsoncpp) - target_include_directories(live - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(live - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(live - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(live - PRIVATE /usr/include/jsoncpp) - target_link_libraries(live - jsoncpp) -endif() - -install(FILES ${live_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live) -install(FILES ${live_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live/model) -install(TARGETS live - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/LiveClient.cc + src/model/StartBoardRecordRequest.cc + src/model/StartBoardRecordResult.cc + src/model/DescribeLiveRecordNotifyConfigRequest.cc + src/model/DescribeLiveRecordNotifyConfigResult.cc + src/model/DescribeRoomListRequest.cc + src/model/DescribeRoomListResult.cc + src/model/DescribeLiveDetectNotifyConfigRequest.cc + src/model/DescribeLiveDetectNotifyConfigResult.cc + src/model/ModifyCasterComponentRequest.cc + src/model/ModifyCasterComponentResult.cc + src/model/UpdateLiveSnapshotDetectPornConfigRequest.cc + src/model/UpdateLiveSnapshotDetectPornConfigResult.cc + src/model/CompleteBoardRequest.cc + src/model/CompleteBoardResult.cc + src/model/DescribeCasterComponentsRequest.cc + src/model/DescribeCasterComponentsResult.cc + src/model/EffectCasterUrgentRequest.cc + src/model/EffectCasterUrgentResult.cc + src/model/DescribeRoomStatusRequest.cc + src/model/DescribeRoomStatusResult.cc + src/model/CreateLiveStreamRecordIndexFilesRequest.cc + src/model/CreateLiveStreamRecordIndexFilesResult.cc + src/model/UpdateCasterSceneConfigRequest.cc + src/model/UpdateCasterSceneConfigResult.cc + src/model/DescribeLiveStreamsOnlineListRequest.cc + src/model/DescribeLiveStreamsOnlineListResult.cc + src/model/DescribeLiveStreamTranscodeInfoRequest.cc + src/model/DescribeLiveStreamTranscodeInfoResult.cc + src/model/DeleteLiveSnapshotDetectPornConfigRequest.cc + src/model/DeleteLiveSnapshotDetectPornConfigResult.cc + src/model/DescribeUpBpsPeakOfLineRequest.cc + src/model/DescribeUpBpsPeakOfLineResult.cc + src/model/CopyCasterSceneConfigRequest.cc + src/model/CopyCasterSceneConfigResult.cc + src/model/DescribeLiveDomainTranscodeDataRequest.cc + src/model/DescribeLiveDomainTranscodeDataResult.cc + src/model/DeleteCasterEpisodeRequest.cc + src/model/DeleteCasterEpisodeResult.cc + src/model/DeleteLiveStreamTranscodeRequest.cc + src/model/DeleteLiveStreamTranscodeResult.cc + src/model/DescribeCasterRtcInfoRequest.cc + src/model/DescribeCasterRtcInfoResult.cc + src/model/AddTrancodeSEIRequest.cc + src/model/AddTrancodeSEIResult.cc + src/model/SetCasterSceneConfigRequest.cc + src/model/SetCasterSceneConfigResult.cc + src/model/DeleteBoardRequest.cc + src/model/DeleteBoardResult.cc + src/model/DescribeLiveStreamBitRateDataRequest.cc + src/model/DescribeLiveStreamBitRateDataResult.cc + src/model/DeleteCasterLayoutRequest.cc + src/model/DeleteCasterLayoutResult.cc + src/model/DeleteCasterProgramRequest.cc + src/model/DeleteCasterProgramResult.cc + src/model/StartCasterSceneRequest.cc + src/model/StartCasterSceneResult.cc + src/model/StartLiveIndexRequest.cc + src/model/StartLiveIndexResult.cc + src/model/AddCasterEpisodeGroupRequest.cc + src/model/AddCasterEpisodeGroupResult.cc + src/model/DescribeLiveStreamRecordIndexFileRequest.cc + src/model/DescribeLiveStreamRecordIndexFileResult.cc + src/model/DescribeLiveTopDomainsByFlowRequest.cc + src/model/DescribeLiveTopDomainsByFlowResult.cc + src/model/DescribeCasterConfigRequest.cc + src/model/DescribeCasterConfigResult.cc + src/model/DescribeLiveStreamTranscodeStreamNumRequest.cc + src/model/DescribeLiveStreamTranscodeStreamNumResult.cc + src/model/CopyCasterRequest.cc + src/model/CopyCasterResult.cc + src/model/SetLiveLazyPullStreamInfoConfigRequest.cc + src/model/SetLiveLazyPullStreamInfoConfigResult.cc + src/model/AddCustomLiveStreamTranscodeRequest.cc + src/model/AddCustomLiveStreamTranscodeResult.cc + src/model/AddCasterEpisodeRequest.cc + src/model/AddCasterEpisodeResult.cc + src/model/DescribeLiveDomainRealTimeBpsDataRequest.cc + src/model/DescribeLiveDomainRealTimeBpsDataResult.cc + src/model/AllowPushStreamRequest.cc + src/model/AllowPushStreamResult.cc + src/model/ForbidPushStreamRequest.cc + src/model/ForbidPushStreamResult.cc + src/model/DescribeLiveRecordConfigRequest.cc + src/model/DescribeLiveRecordConfigResult.cc + src/model/AddLiveRecordNotifyConfigRequest.cc + src/model/AddLiveRecordNotifyConfigResult.cc + src/model/DescribeHlsLiveStreamRealTimeBpsDataRequest.cc + src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc + src/model/DeleteLiveRecordNotifyConfigRequest.cc + src/model/DeleteLiveRecordNotifyConfigResult.cc + src/model/CreateBoardRequest.cc + src/model/CreateBoardResult.cc + src/model/DeleteLiveStreamsNotifyUrlConfigRequest.cc + src/model/DeleteLiveStreamsNotifyUrlConfigResult.cc + src/model/DescribeLiveStreamOnlineUserNumRequest.cc + src/model/DescribeLiveStreamOnlineUserNumResult.cc + src/model/DescribeRecordRequest.cc + src/model/DescribeRecordResult.cc + src/model/AddCasterComponentRequest.cc + src/model/AddCasterComponentResult.cc + src/model/DescribeLiveDomainRecordDataRequest.cc + src/model/DescribeLiveDomainRecordDataResult.cc + src/model/DeleteCasterVideoResourceRequest.cc + src/model/DeleteCasterVideoResourceResult.cc + src/model/DescribeLiveCertificateListRequest.cc + src/model/DescribeLiveCertificateListResult.cc + src/model/DeleteLiveAppSnapshotConfigRequest.cc + src/model/DeleteLiveAppSnapshotConfigResult.cc + src/model/DescribeLiveStreamsNotifyUrlConfigRequest.cc + src/model/DescribeLiveStreamsNotifyUrlConfigResult.cc + src/model/ApplyRecordTokenRequest.cc + src/model/ApplyRecordTokenResult.cc + src/model/UpdateCasterSceneAudioRequest.cc + src/model/UpdateCasterSceneAudioResult.cc + src/model/DescribeUpBpsPeakDataRequest.cc + src/model/DescribeUpBpsPeakDataResult.cc + src/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.cc + src/model/DescribeLiveDomainFrameRateAndBitRateDataResult.cc + src/model/ModifyLiveDomainSchdmByPropertyRequest.cc + src/model/ModifyLiveDomainSchdmByPropertyResult.cc + src/model/DeleteLivePullStreamInfoConfigRequest.cc + src/model/DeleteLivePullStreamInfoConfigResult.cc + src/model/UpdateLiveTopLevelDomainRequest.cc + src/model/UpdateLiveTopLevelDomainResult.cc + src/model/ModifyCasterProgramRequest.cc + src/model/ModifyCasterProgramResult.cc + src/model/DescribeBoardEventsRequest.cc + src/model/DescribeBoardEventsResult.cc + src/model/DescribeLiveCertificateDetailRequest.cc + src/model/DescribeLiveCertificateDetailResult.cc + src/model/DescribeLivePullStreamConfigRequest.cc + src/model/DescribeLivePullStreamConfigResult.cc + src/model/SetLiveStreamsNotifyUrlConfigRequest.cc + src/model/SetLiveStreamsNotifyUrlConfigResult.cc + src/model/AddLivePullStreamInfoConfigRequest.cc + src/model/AddLivePullStreamInfoConfigResult.cc + src/model/StartLiveDomainRequest.cc + src/model/StartLiveDomainResult.cc + src/model/DescribeCasterSceneAudioRequest.cc + src/model/DescribeCasterSceneAudioResult.cc + src/model/DescribeLiveStreamsBlockListRequest.cc + src/model/DescribeLiveStreamsBlockListResult.cc + src/model/AddLiveStreamTranscodeRequest.cc + src/model/AddLiveStreamTranscodeResult.cc + src/model/AddCasterVideoResourceRequest.cc + src/model/AddCasterVideoResourceResult.cc + src/model/DescribeRoomKickoutUserListRequest.cc + src/model/DescribeRoomKickoutUserListResult.cc + src/model/AddCasterEpisodeGroupContentRequest.cc + src/model/AddCasterEpisodeGroupContentResult.cc + src/model/UpdateLiveDetectNotifyConfigRequest.cc + src/model/UpdateLiveDetectNotifyConfigResult.cc + src/model/ModifyCasterVideoResourceRequest.cc + src/model/ModifyCasterVideoResourceResult.cc + src/model/CreateRoomRequest.cc + src/model/CreateRoomResult.cc + src/model/DescribeCasterStreamUrlRequest.cc + src/model/DescribeCasterStreamUrlResult.cc + src/model/DescribeLiveStreamsControlHistoryRequest.cc + src/model/DescribeLiveStreamsControlHistoryResult.cc + src/model/DescribeLiveStreamCountRequest.cc + src/model/DescribeLiveStreamCountResult.cc + src/model/StopCasterSceneRequest.cc + src/model/StopCasterSceneResult.cc + src/model/DescribeLiveDomainRealTimeTrafficDataRequest.cc + src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc + src/model/DescribeLiveDomainSnapshotDataRequest.cc + src/model/DescribeLiveDomainSnapshotDataResult.cc + src/model/DeleteLiveRecordVodConfigRequest.cc + src/model/DeleteLiveRecordVodConfigResult.cc + src/model/DescribeLiveDomainRealTimeHttpCodeDataRequest.cc + src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc + src/model/ModifyCasterEpisodeRequest.cc + src/model/ModifyCasterEpisodeResult.cc + src/model/DescribeBoardsRequest.cc + src/model/DescribeBoardsResult.cc + src/model/DescribeLiveStreamSnapshotInfoRequest.cc + src/model/DescribeLiveStreamSnapshotInfoResult.cc + src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc + src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc + src/model/UpdateBoardCallbackRequest.cc + src/model/UpdateBoardCallbackResult.cc + src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc + src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc + src/model/DescribeForbidPushStreamRoomListRequest.cc + src/model/DescribeForbidPushStreamRoomListResult.cc + src/model/CreateCasterRequest.cc + src/model/CreateCasterResult.cc + src/model/DescribeLiveStreamRecordContentRequest.cc + src/model/DescribeLiveStreamRecordContentResult.cc + src/model/DescribeCasterLayoutsRequest.cc + src/model/DescribeCasterLayoutsResult.cc + src/model/AddLiveSnapshotDetectPornConfigRequest.cc + src/model/AddLiveSnapshotDetectPornConfigResult.cc + src/model/UpdateLiveRecordNotifyConfigRequest.cc + src/model/UpdateLiveRecordNotifyConfigResult.cc + src/model/SetCasterChannelRequest.cc + src/model/SetCasterChannelResult.cc + src/model/DescribeLiveSnapshotConfigRequest.cc + src/model/DescribeLiveSnapshotConfigResult.cc + src/model/CompleteBoardRecordRequest.cc + src/model/CompleteBoardRecordResult.cc + src/model/DescribeCasterProgramRequest.cc + src/model/DescribeCasterProgramResult.cc + src/model/DescribeLiveDomainTrafficDataRequest.cc + src/model/DescribeLiveDomainTrafficDataResult.cc + src/model/ApplyBoardTokenRequest.cc + src/model/ApplyBoardTokenResult.cc + src/model/StopLiveDomainRequest.cc + src/model/StopLiveDomainResult.cc + src/model/DescribeLiveStreamHistoryUserNumRequest.cc + src/model/DescribeLiveStreamHistoryUserNumResult.cc + src/model/AddLiveAppRecordConfigRequest.cc + src/model/AddLiveAppRecordConfigResult.cc + src/model/SendRoomUserNotificationRequest.cc + src/model/SendRoomUserNotificationResult.cc + src/model/AddLiveRecordVodConfigRequest.cc + src/model/AddLiveRecordVodConfigResult.cc + src/model/DeleteLiveDomainMappingRequest.cc + src/model/DeleteLiveDomainMappingResult.cc + src/model/BatchSetLiveDomainConfigsRequest.cc + src/model/BatchSetLiveDomainConfigsResult.cc + src/model/DescribeLiveDomainMappingRequest.cc + src/model/DescribeLiveDomainMappingResult.cc + src/model/DescribeLiveDomainDetailRequest.cc + src/model/DescribeLiveDomainDetailResult.cc + src/model/SetLiveStreamOptimizedFeatureConfigRequest.cc + src/model/SetLiveStreamOptimizedFeatureConfigResult.cc + src/model/DescribeCasterChannelsRequest.cc + src/model/DescribeCasterChannelsResult.cc + src/model/DescribeLiveDomainConfigsRequest.cc + src/model/DescribeLiveDomainConfigsResult.cc + src/model/DescribeLiveStreamRecordIndexFilesRequest.cc + src/model/DescribeLiveStreamRecordIndexFilesResult.cc + src/model/DeleteRoomRequest.cc + src/model/DeleteRoomResult.cc + src/model/DescribeLiveStreamDelayConfigRequest.cc + src/model/DescribeLiveStreamDelayConfigResult.cc + src/model/AddCasterProgramRequest.cc + src/model/AddCasterProgramResult.cc + src/model/BatchDeleteLiveDomainConfigsRequest.cc + src/model/BatchDeleteLiveDomainConfigsResult.cc + src/model/DescribeBoardSnapshotRequest.cc + src/model/DescribeBoardSnapshotResult.cc + src/model/SetLiveDomainCertificateRequest.cc + src/model/SetLiveDomainCertificateResult.cc + src/model/ForbidLiveStreamRequest.cc + src/model/ForbidLiveStreamResult.cc + src/model/SetLiveStreamDelayConfigRequest.cc + src/model/SetLiveStreamDelayConfigResult.cc + src/model/DescribeRecordsRequest.cc + src/model/DescribeRecordsResult.cc + src/model/DeleteCasterEpisodeGroupRequest.cc + src/model/DeleteCasterEpisodeGroupResult.cc + src/model/DescribeLiveStreamOptimizedFeatureConfigRequest.cc + src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc + src/model/DescribeCasterVideoResourcesRequest.cc + src/model/DescribeCasterVideoResourcesResult.cc + src/model/UpdateLiveAppSnapshotConfigRequest.cc + src/model/UpdateLiveAppSnapshotConfigResult.cc + src/model/DeleteLiveDetectNotifyConfigRequest.cc + src/model/DeleteLiveDetectNotifyConfigResult.cc + src/model/RealTimeSnapshotCommandRequest.cc + src/model/RealTimeSnapshotCommandResult.cc + src/model/EffectCasterVideoResourceRequest.cc + src/model/EffectCasterVideoResourceResult.cc + src/model/AddLiveAppSnapshotConfigRequest.cc + src/model/AddLiveAppSnapshotConfigResult.cc + src/model/DescribeUpPeakPublishStreamDataRequest.cc + src/model/DescribeUpPeakPublishStreamDataResult.cc + src/model/DeleteCasterComponentRequest.cc + src/model/DeleteCasterComponentResult.cc + src/model/DeleteLiveDomainRequest.cc + src/model/DeleteLiveDomainResult.cc + src/model/AddLiveDomainMappingRequest.cc + src/model/AddLiveDomainMappingResult.cc + src/model/RealTimeRecordCommandRequest.cc + src/model/RealTimeRecordCommandResult.cc + src/model/SetCasterConfigRequest.cc + src/model/SetCasterConfigResult.cc + src/model/StartCasterRequest.cc + src/model/StartCasterResult.cc + src/model/UpdateBoardRequest.cc + src/model/UpdateBoardResult.cc + src/model/AddCasterLayoutRequest.cc + src/model/AddCasterLayoutResult.cc + src/model/ResumeLiveStreamRequest.cc + src/model/ResumeLiveStreamResult.cc + src/model/JoinBoardRequest.cc + src/model/JoinBoardResult.cc + src/model/DescribeLiveUserDomainsRequest.cc + src/model/DescribeLiveUserDomainsResult.cc + src/model/StopCasterRequest.cc + src/model/StopCasterResult.cc + src/model/ModifyCasterLayoutRequest.cc + src/model/ModifyCasterLayoutResult.cc + src/model/DescribeLiveStreamsPublishListRequest.cc + src/model/DescribeLiveStreamsPublishListResult.cc + src/model/DescribeLiveSnapshotDetectPornConfigRequest.cc + src/model/DescribeLiveSnapshotDetectPornConfigResult.cc + src/model/DeleteCasterSceneConfigRequest.cc + src/model/DeleteCasterSceneConfigResult.cc + src/model/StopLiveIndexRequest.cc + src/model/StopLiveIndexResult.cc + src/model/AddLiveDomainRequest.cc + src/model/AddLiveDomainResult.cc + src/model/DescribeLiveDomainOnlineUserNumRequest.cc + src/model/DescribeLiveDomainOnlineUserNumResult.cc + src/model/DeleteLiveAppRecordConfigRequest.cc + src/model/DeleteLiveAppRecordConfigResult.cc + src/model/DeleteCasterRequest.cc + src/model/DeleteCasterResult.cc + src/model/DescribeLiveDomainBpsDataRequest.cc + src/model/DescribeLiveDomainBpsDataResult.cc + src/model/DescribeLiveRecordVodConfigsRequest.cc + src/model/DescribeLiveRecordVodConfigsResult.cc + src/model/DescribeCastersRequest.cc + src/model/DescribeCastersResult.cc + src/model/AddLiveDetectNotifyConfigRequest.cc + src/model/AddLiveDetectNotifyConfigResult.cc + src/model/DescribeLiveLazyPullStreamConfigRequest.cc + src/model/DescribeLiveLazyPullStreamConfigResult.cc + src/model/DescribeCasterScenesRequest.cc + src/model/DescribeCasterScenesResult.cc + src/model/SetBoardCallbackRequest.cc + src/model/SetBoardCallbackResult.cc + src/model/DeleteLiveLazyPullStreamInfoConfigRequest.cc + src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc + src/model/SendRoomNotificationRequest.cc + src/model/SendRoomNotificationResult.cc ) + +add_library(live ${LIB_TYPE} + ${live_public_header} + ${live_public_header_model} + ${live_src}) + +set_target_properties(live + 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}live + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(live + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_LIVE_LIBRARY) +endif() + +target_include_directories(live + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(live + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(live + jsoncpp) + target_include_directories(live + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(live + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(live + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(live + PRIVATE /usr/include/jsoncpp) + target_link_libraries(live + jsoncpp) +endif() + +install(FILES ${live_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live) +install(FILES ${live_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/live/model) +install(TARGETS live + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index 5b0c77676..dd0d1954c 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -24,10 +24,10 @@ #include "LiveExport.h" #include "model/StartBoardRecordRequest.h" #include "model/StartBoardRecordResult.h" -#include "model/DescribeRoomListRequest.h" -#include "model/DescribeRoomListResult.h" #include "model/DescribeLiveRecordNotifyConfigRequest.h" #include "model/DescribeLiveRecordNotifyConfigResult.h" +#include "model/DescribeRoomListRequest.h" +#include "model/DescribeRoomListResult.h" #include "model/DescribeLiveDetectNotifyConfigRequest.h" #include "model/DescribeLiveDetectNotifyConfigResult.h" #include "model/ModifyCasterComponentRequest.h" @@ -46,10 +46,10 @@ #include "model/CreateLiveStreamRecordIndexFilesResult.h" #include "model/UpdateCasterSceneConfigRequest.h" #include "model/UpdateCasterSceneConfigResult.h" -#include "model/DescribeLiveStreamTranscodeInfoRequest.h" -#include "model/DescribeLiveStreamTranscodeInfoResult.h" #include "model/DescribeLiveStreamsOnlineListRequest.h" #include "model/DescribeLiveStreamsOnlineListResult.h" +#include "model/DescribeLiveStreamTranscodeInfoRequest.h" +#include "model/DescribeLiveStreamTranscodeInfoResult.h" #include "model/DeleteLiveSnapshotDetectPornConfigRequest.h" #include "model/DeleteLiveSnapshotDetectPornConfigResult.h" #include "model/DescribeUpBpsPeakOfLineRequest.h" @@ -58,16 +58,16 @@ #include "model/CopyCasterSceneConfigResult.h" #include "model/DescribeLiveDomainTranscodeDataRequest.h" #include "model/DescribeLiveDomainTranscodeDataResult.h" -#include "model/DeleteLiveStreamTranscodeRequest.h" -#include "model/DeleteLiveStreamTranscodeResult.h" #include "model/DeleteCasterEpisodeRequest.h" #include "model/DeleteCasterEpisodeResult.h" +#include "model/DeleteLiveStreamTranscodeRequest.h" +#include "model/DeleteLiveStreamTranscodeResult.h" #include "model/DescribeCasterRtcInfoRequest.h" #include "model/DescribeCasterRtcInfoResult.h" -#include "model/SetCasterSceneConfigRequest.h" -#include "model/SetCasterSceneConfigResult.h" #include "model/AddTrancodeSEIRequest.h" #include "model/AddTrancodeSEIResult.h" +#include "model/SetCasterSceneConfigRequest.h" +#include "model/SetCasterSceneConfigResult.h" #include "model/DeleteBoardRequest.h" #include "model/DeleteBoardResult.h" #include "model/DescribeLiveStreamBitRateDataRequest.h" @@ -80,22 +80,22 @@ #include "model/StartCasterSceneResult.h" #include "model/StartLiveIndexRequest.h" #include "model/StartLiveIndexResult.h" -#include "model/DescribeLiveTopDomainsByFlowRequest.h" -#include "model/DescribeLiveTopDomainsByFlowResult.h" #include "model/AddCasterEpisodeGroupRequest.h" #include "model/AddCasterEpisodeGroupResult.h" #include "model/DescribeLiveStreamRecordIndexFileRequest.h" #include "model/DescribeLiveStreamRecordIndexFileResult.h" -#include "model/DescribeLiveStreamTranscodeStreamNumRequest.h" -#include "model/DescribeLiveStreamTranscodeStreamNumResult.h" +#include "model/DescribeLiveTopDomainsByFlowRequest.h" +#include "model/DescribeLiveTopDomainsByFlowResult.h" #include "model/DescribeCasterConfigRequest.h" #include "model/DescribeCasterConfigResult.h" +#include "model/DescribeLiveStreamTranscodeStreamNumRequest.h" +#include "model/DescribeLiveStreamTranscodeStreamNumResult.h" #include "model/CopyCasterRequest.h" #include "model/CopyCasterResult.h" -#include "model/AddCustomLiveStreamTranscodeRequest.h" -#include "model/AddCustomLiveStreamTranscodeResult.h" #include "model/SetLiveLazyPullStreamInfoConfigRequest.h" #include "model/SetLiveLazyPullStreamInfoConfigResult.h" +#include "model/AddCustomLiveStreamTranscodeRequest.h" +#include "model/AddCustomLiveStreamTranscodeResult.h" #include "model/AddCasterEpisodeRequest.h" #include "model/AddCasterEpisodeResult.h" #include "model/DescribeLiveDomainRealTimeBpsDataRequest.h" @@ -130,24 +130,26 @@ #include "model/DescribeLiveCertificateListResult.h" #include "model/DeleteLiveAppSnapshotConfigRequest.h" #include "model/DeleteLiveAppSnapshotConfigResult.h" +#include "model/DescribeLiveStreamsNotifyUrlConfigRequest.h" +#include "model/DescribeLiveStreamsNotifyUrlConfigResult.h" #include "model/ApplyRecordTokenRequest.h" #include "model/ApplyRecordTokenResult.h" #include "model/UpdateCasterSceneAudioRequest.h" #include "model/UpdateCasterSceneAudioResult.h" -#include "model/DescribeLiveStreamsNotifyUrlConfigRequest.h" -#include "model/DescribeLiveStreamsNotifyUrlConfigResult.h" #include "model/DescribeUpBpsPeakDataRequest.h" #include "model/DescribeUpBpsPeakDataResult.h" -#include "model/UpdateLiveTopLevelDomainRequest.h" -#include "model/UpdateLiveTopLevelDomainResult.h" -#include "model/DeleteLivePullStreamInfoConfigRequest.h" -#include "model/DeleteLivePullStreamInfoConfigResult.h" +#include "model/DescribeLiveDomainFrameRateAndBitRateDataRequest.h" +#include "model/DescribeLiveDomainFrameRateAndBitRateDataResult.h" #include "model/ModifyLiveDomainSchdmByPropertyRequest.h" #include "model/ModifyLiveDomainSchdmByPropertyResult.h" -#include "model/DescribeBoardEventsRequest.h" -#include "model/DescribeBoardEventsResult.h" +#include "model/DeleteLivePullStreamInfoConfigRequest.h" +#include "model/DeleteLivePullStreamInfoConfigResult.h" +#include "model/UpdateLiveTopLevelDomainRequest.h" +#include "model/UpdateLiveTopLevelDomainResult.h" #include "model/ModifyCasterProgramRequest.h" #include "model/ModifyCasterProgramResult.h" +#include "model/DescribeBoardEventsRequest.h" +#include "model/DescribeBoardEventsResult.h" #include "model/DescribeLiveCertificateDetailRequest.h" #include "model/DescribeLiveCertificateDetailResult.h" #include "model/DescribeLivePullStreamConfigRequest.h" @@ -158,16 +160,16 @@ #include "model/AddLivePullStreamInfoConfigResult.h" #include "model/StartLiveDomainRequest.h" #include "model/StartLiveDomainResult.h" -#include "model/DescribeLiveStreamsBlockListRequest.h" -#include "model/DescribeLiveStreamsBlockListResult.h" #include "model/DescribeCasterSceneAudioRequest.h" #include "model/DescribeCasterSceneAudioResult.h" +#include "model/DescribeLiveStreamsBlockListRequest.h" +#include "model/DescribeLiveStreamsBlockListResult.h" +#include "model/AddLiveStreamTranscodeRequest.h" +#include "model/AddLiveStreamTranscodeResult.h" #include "model/AddCasterVideoResourceRequest.h" #include "model/AddCasterVideoResourceResult.h" #include "model/DescribeRoomKickoutUserListRequest.h" #include "model/DescribeRoomKickoutUserListResult.h" -#include "model/AddLiveStreamTranscodeRequest.h" -#include "model/AddLiveStreamTranscodeResult.h" #include "model/AddCasterEpisodeGroupContentRequest.h" #include "model/AddCasterEpisodeGroupContentResult.h" #include "model/UpdateLiveDetectNotifyConfigRequest.h" @@ -198,24 +200,26 @@ #include "model/DescribeBoardsResult.h" #include "model/DescribeLiveStreamSnapshotInfoRequest.h" #include "model/DescribeLiveStreamSnapshotInfoResult.h" +#include "model/DescribeLiveDomainBpsDataByTimeStampRequest.h" +#include "model/DescribeLiveDomainBpsDataByTimeStampResult.h" #include "model/UpdateBoardCallbackRequest.h" #include "model/UpdateBoardCallbackResult.h" #include "model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h" #include "model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h" -#include "model/DescribeLiveStreamRecordContentRequest.h" -#include "model/DescribeLiveStreamRecordContentResult.h" #include "model/DescribeForbidPushStreamRoomListRequest.h" #include "model/DescribeForbidPushStreamRoomListResult.h" #include "model/CreateCasterRequest.h" #include "model/CreateCasterResult.h" +#include "model/DescribeLiveStreamRecordContentRequest.h" +#include "model/DescribeLiveStreamRecordContentResult.h" #include "model/DescribeCasterLayoutsRequest.h" #include "model/DescribeCasterLayoutsResult.h" #include "model/AddLiveSnapshotDetectPornConfigRequest.h" #include "model/AddLiveSnapshotDetectPornConfigResult.h" -#include "model/SetCasterChannelRequest.h" -#include "model/SetCasterChannelResult.h" #include "model/UpdateLiveRecordNotifyConfigRequest.h" #include "model/UpdateLiveRecordNotifyConfigResult.h" +#include "model/SetCasterChannelRequest.h" +#include "model/SetCasterChannelResult.h" #include "model/DescribeLiveSnapshotConfigRequest.h" #include "model/DescribeLiveSnapshotConfigResult.h" #include "model/CompleteBoardRecordRequest.h" @@ -224,10 +228,10 @@ #include "model/DescribeCasterProgramResult.h" #include "model/DescribeLiveDomainTrafficDataRequest.h" #include "model/DescribeLiveDomainTrafficDataResult.h" -#include "model/StopLiveDomainRequest.h" -#include "model/StopLiveDomainResult.h" #include "model/ApplyBoardTokenRequest.h" #include "model/ApplyBoardTokenResult.h" +#include "model/StopLiveDomainRequest.h" +#include "model/StopLiveDomainResult.h" #include "model/DescribeLiveStreamHistoryUserNumRequest.h" #include "model/DescribeLiveStreamHistoryUserNumResult.h" #include "model/AddLiveAppRecordConfigRequest.h" @@ -262,18 +266,18 @@ #include "model/BatchDeleteLiveDomainConfigsResult.h" #include "model/DescribeBoardSnapshotRequest.h" #include "model/DescribeBoardSnapshotResult.h" -#include "model/ForbidLiveStreamRequest.h" -#include "model/ForbidLiveStreamResult.h" #include "model/SetLiveDomainCertificateRequest.h" #include "model/SetLiveDomainCertificateResult.h" -#include "model/DescribeRecordsRequest.h" -#include "model/DescribeRecordsResult.h" +#include "model/ForbidLiveStreamRequest.h" +#include "model/ForbidLiveStreamResult.h" #include "model/SetLiveStreamDelayConfigRequest.h" #include "model/SetLiveStreamDelayConfigResult.h" -#include "model/DescribeLiveStreamOptimizedFeatureConfigRequest.h" -#include "model/DescribeLiveStreamOptimizedFeatureConfigResult.h" +#include "model/DescribeRecordsRequest.h" +#include "model/DescribeRecordsResult.h" #include "model/DeleteCasterEpisodeGroupRequest.h" #include "model/DeleteCasterEpisodeGroupResult.h" +#include "model/DescribeLiveStreamOptimizedFeatureConfigRequest.h" +#include "model/DescribeLiveStreamOptimizedFeatureConfigResult.h" #include "model/DescribeCasterVideoResourcesRequest.h" #include "model/DescribeCasterVideoResourcesResult.h" #include "model/UpdateLiveAppSnapshotConfigRequest.h" @@ -284,36 +288,36 @@ #include "model/RealTimeSnapshotCommandResult.h" #include "model/EffectCasterVideoResourceRequest.h" #include "model/EffectCasterVideoResourceResult.h" -#include "model/DescribeUpPeakPublishStreamDataRequest.h" -#include "model/DescribeUpPeakPublishStreamDataResult.h" #include "model/AddLiveAppSnapshotConfigRequest.h" #include "model/AddLiveAppSnapshotConfigResult.h" +#include "model/DescribeUpPeakPublishStreamDataRequest.h" +#include "model/DescribeUpPeakPublishStreamDataResult.h" #include "model/DeleteCasterComponentRequest.h" #include "model/DeleteCasterComponentResult.h" #include "model/DeleteLiveDomainRequest.h" #include "model/DeleteLiveDomainResult.h" +#include "model/AddLiveDomainMappingRequest.h" +#include "model/AddLiveDomainMappingResult.h" #include "model/RealTimeRecordCommandRequest.h" #include "model/RealTimeRecordCommandResult.h" #include "model/SetCasterConfigRequest.h" #include "model/SetCasterConfigResult.h" -#include "model/AddLiveDomainMappingRequest.h" -#include "model/AddLiveDomainMappingResult.h" #include "model/StartCasterRequest.h" #include "model/StartCasterResult.h" #include "model/UpdateBoardRequest.h" #include "model/UpdateBoardResult.h" -#include "model/ResumeLiveStreamRequest.h" -#include "model/ResumeLiveStreamResult.h" #include "model/AddCasterLayoutRequest.h" #include "model/AddCasterLayoutResult.h" +#include "model/ResumeLiveStreamRequest.h" +#include "model/ResumeLiveStreamResult.h" #include "model/JoinBoardRequest.h" #include "model/JoinBoardResult.h" #include "model/DescribeLiveUserDomainsRequest.h" #include "model/DescribeLiveUserDomainsResult.h" -#include "model/ModifyCasterLayoutRequest.h" -#include "model/ModifyCasterLayoutResult.h" #include "model/StopCasterRequest.h" #include "model/StopCasterResult.h" +#include "model/ModifyCasterLayoutRequest.h" +#include "model/ModifyCasterLayoutResult.h" #include "model/DescribeLiveStreamsPublishListRequest.h" #include "model/DescribeLiveStreamsPublishListResult.h" #include "model/DescribeLiveSnapshotDetectPornConfigRequest.h" @@ -324,6 +328,8 @@ #include "model/StopLiveIndexResult.h" #include "model/AddLiveDomainRequest.h" #include "model/AddLiveDomainResult.h" +#include "model/DescribeLiveDomainOnlineUserNumRequest.h" +#include "model/DescribeLiveDomainOnlineUserNumResult.h" #include "model/DeleteLiveAppRecordConfigRequest.h" #include "model/DeleteLiveAppRecordConfigResult.h" #include "model/DeleteCasterRequest.h" @@ -358,12 +364,12 @@ namespace AlibabaCloud typedef Outcome StartBoardRecordOutcome; typedef std::future StartBoardRecordOutcomeCallable; typedef std::function&)> StartBoardRecordAsyncHandler; - typedef Outcome DescribeRoomListOutcome; - typedef std::future DescribeRoomListOutcomeCallable; - typedef std::function&)> DescribeRoomListAsyncHandler; typedef Outcome DescribeLiveRecordNotifyConfigOutcome; typedef std::future DescribeLiveRecordNotifyConfigOutcomeCallable; typedef std::function&)> DescribeLiveRecordNotifyConfigAsyncHandler; + typedef Outcome DescribeRoomListOutcome; + typedef std::future DescribeRoomListOutcomeCallable; + typedef std::function&)> DescribeRoomListAsyncHandler; typedef Outcome DescribeLiveDetectNotifyConfigOutcome; typedef std::future DescribeLiveDetectNotifyConfigOutcomeCallable; typedef std::function&)> DescribeLiveDetectNotifyConfigAsyncHandler; @@ -391,12 +397,12 @@ namespace AlibabaCloud typedef Outcome UpdateCasterSceneConfigOutcome; typedef std::future UpdateCasterSceneConfigOutcomeCallable; typedef std::function&)> UpdateCasterSceneConfigAsyncHandler; - typedef Outcome DescribeLiveStreamTranscodeInfoOutcome; - typedef std::future DescribeLiveStreamTranscodeInfoOutcomeCallable; - typedef std::function&)> DescribeLiveStreamTranscodeInfoAsyncHandler; typedef Outcome DescribeLiveStreamsOnlineListOutcome; typedef std::future DescribeLiveStreamsOnlineListOutcomeCallable; typedef std::function&)> DescribeLiveStreamsOnlineListAsyncHandler; + typedef Outcome DescribeLiveStreamTranscodeInfoOutcome; + typedef std::future DescribeLiveStreamTranscodeInfoOutcomeCallable; + typedef std::function&)> DescribeLiveStreamTranscodeInfoAsyncHandler; typedef Outcome DeleteLiveSnapshotDetectPornConfigOutcome; typedef std::future DeleteLiveSnapshotDetectPornConfigOutcomeCallable; typedef std::function&)> DeleteLiveSnapshotDetectPornConfigAsyncHandler; @@ -409,21 +415,21 @@ namespace AlibabaCloud typedef Outcome DescribeLiveDomainTranscodeDataOutcome; typedef std::future DescribeLiveDomainTranscodeDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainTranscodeDataAsyncHandler; - typedef Outcome DeleteLiveStreamTranscodeOutcome; - typedef std::future DeleteLiveStreamTranscodeOutcomeCallable; - typedef std::function&)> DeleteLiveStreamTranscodeAsyncHandler; typedef Outcome DeleteCasterEpisodeOutcome; typedef std::future DeleteCasterEpisodeOutcomeCallable; typedef std::function&)> DeleteCasterEpisodeAsyncHandler; + typedef Outcome DeleteLiveStreamTranscodeOutcome; + typedef std::future DeleteLiveStreamTranscodeOutcomeCallable; + typedef std::function&)> DeleteLiveStreamTranscodeAsyncHandler; typedef Outcome DescribeCasterRtcInfoOutcome; typedef std::future DescribeCasterRtcInfoOutcomeCallable; typedef std::function&)> DescribeCasterRtcInfoAsyncHandler; - typedef Outcome SetCasterSceneConfigOutcome; - typedef std::future SetCasterSceneConfigOutcomeCallable; - typedef std::function&)> SetCasterSceneConfigAsyncHandler; typedef Outcome AddTrancodeSEIOutcome; typedef std::future AddTrancodeSEIOutcomeCallable; typedef std::function&)> AddTrancodeSEIAsyncHandler; + typedef Outcome SetCasterSceneConfigOutcome; + typedef std::future SetCasterSceneConfigOutcomeCallable; + typedef std::function&)> SetCasterSceneConfigAsyncHandler; typedef Outcome DeleteBoardOutcome; typedef std::future DeleteBoardOutcomeCallable; typedef std::function&)> DeleteBoardAsyncHandler; @@ -442,30 +448,30 @@ namespace AlibabaCloud typedef Outcome StartLiveIndexOutcome; typedef std::future StartLiveIndexOutcomeCallable; typedef std::function&)> StartLiveIndexAsyncHandler; - typedef Outcome DescribeLiveTopDomainsByFlowOutcome; - typedef std::future DescribeLiveTopDomainsByFlowOutcomeCallable; - typedef std::function&)> DescribeLiveTopDomainsByFlowAsyncHandler; typedef Outcome AddCasterEpisodeGroupOutcome; typedef std::future AddCasterEpisodeGroupOutcomeCallable; typedef std::function&)> AddCasterEpisodeGroupAsyncHandler; typedef Outcome DescribeLiveStreamRecordIndexFileOutcome; typedef std::future DescribeLiveStreamRecordIndexFileOutcomeCallable; typedef std::function&)> DescribeLiveStreamRecordIndexFileAsyncHandler; - typedef Outcome DescribeLiveStreamTranscodeStreamNumOutcome; - typedef std::future DescribeLiveStreamTranscodeStreamNumOutcomeCallable; - typedef std::function&)> DescribeLiveStreamTranscodeStreamNumAsyncHandler; + typedef Outcome DescribeLiveTopDomainsByFlowOutcome; + typedef std::future DescribeLiveTopDomainsByFlowOutcomeCallable; + typedef std::function&)> DescribeLiveTopDomainsByFlowAsyncHandler; typedef Outcome DescribeCasterConfigOutcome; typedef std::future DescribeCasterConfigOutcomeCallable; typedef std::function&)> DescribeCasterConfigAsyncHandler; + typedef Outcome DescribeLiveStreamTranscodeStreamNumOutcome; + typedef std::future DescribeLiveStreamTranscodeStreamNumOutcomeCallable; + typedef std::function&)> DescribeLiveStreamTranscodeStreamNumAsyncHandler; typedef Outcome CopyCasterOutcome; typedef std::future CopyCasterOutcomeCallable; typedef std::function&)> CopyCasterAsyncHandler; - typedef Outcome AddCustomLiveStreamTranscodeOutcome; - typedef std::future AddCustomLiveStreamTranscodeOutcomeCallable; - typedef std::function&)> AddCustomLiveStreamTranscodeAsyncHandler; typedef Outcome SetLiveLazyPullStreamInfoConfigOutcome; typedef std::future SetLiveLazyPullStreamInfoConfigOutcomeCallable; typedef std::function&)> SetLiveLazyPullStreamInfoConfigAsyncHandler; + typedef Outcome AddCustomLiveStreamTranscodeOutcome; + typedef std::future AddCustomLiveStreamTranscodeOutcomeCallable; + typedef std::function&)> AddCustomLiveStreamTranscodeAsyncHandler; typedef Outcome AddCasterEpisodeOutcome; typedef std::future AddCasterEpisodeOutcomeCallable; typedef std::function&)> AddCasterEpisodeAsyncHandler; @@ -517,33 +523,36 @@ namespace AlibabaCloud typedef Outcome DeleteLiveAppSnapshotConfigOutcome; typedef std::future DeleteLiveAppSnapshotConfigOutcomeCallable; typedef std::function&)> DeleteLiveAppSnapshotConfigAsyncHandler; + typedef Outcome DescribeLiveStreamsNotifyUrlConfigOutcome; + typedef std::future DescribeLiveStreamsNotifyUrlConfigOutcomeCallable; + typedef std::function&)> DescribeLiveStreamsNotifyUrlConfigAsyncHandler; typedef Outcome ApplyRecordTokenOutcome; typedef std::future ApplyRecordTokenOutcomeCallable; typedef std::function&)> ApplyRecordTokenAsyncHandler; typedef Outcome UpdateCasterSceneAudioOutcome; typedef std::future UpdateCasterSceneAudioOutcomeCallable; typedef std::function&)> UpdateCasterSceneAudioAsyncHandler; - typedef Outcome DescribeLiveStreamsNotifyUrlConfigOutcome; - typedef std::future DescribeLiveStreamsNotifyUrlConfigOutcomeCallable; - typedef std::function&)> DescribeLiveStreamsNotifyUrlConfigAsyncHandler; typedef Outcome DescribeUpBpsPeakDataOutcome; typedef std::future DescribeUpBpsPeakDataOutcomeCallable; typedef std::function&)> DescribeUpBpsPeakDataAsyncHandler; - typedef Outcome UpdateLiveTopLevelDomainOutcome; - typedef std::future UpdateLiveTopLevelDomainOutcomeCallable; - typedef std::function&)> UpdateLiveTopLevelDomainAsyncHandler; - typedef Outcome DeleteLivePullStreamInfoConfigOutcome; - typedef std::future DeleteLivePullStreamInfoConfigOutcomeCallable; - typedef std::function&)> DeleteLivePullStreamInfoConfigAsyncHandler; + typedef Outcome DescribeLiveDomainFrameRateAndBitRateDataOutcome; + typedef std::future DescribeLiveDomainFrameRateAndBitRateDataOutcomeCallable; + typedef std::function&)> DescribeLiveDomainFrameRateAndBitRateDataAsyncHandler; typedef Outcome ModifyLiveDomainSchdmByPropertyOutcome; typedef std::future ModifyLiveDomainSchdmByPropertyOutcomeCallable; typedef std::function&)> ModifyLiveDomainSchdmByPropertyAsyncHandler; - typedef Outcome DescribeBoardEventsOutcome; - typedef std::future DescribeBoardEventsOutcomeCallable; - typedef std::function&)> DescribeBoardEventsAsyncHandler; + typedef Outcome DeleteLivePullStreamInfoConfigOutcome; + typedef std::future DeleteLivePullStreamInfoConfigOutcomeCallable; + typedef std::function&)> DeleteLivePullStreamInfoConfigAsyncHandler; + typedef Outcome UpdateLiveTopLevelDomainOutcome; + typedef std::future UpdateLiveTopLevelDomainOutcomeCallable; + typedef std::function&)> UpdateLiveTopLevelDomainAsyncHandler; typedef Outcome ModifyCasterProgramOutcome; typedef std::future ModifyCasterProgramOutcomeCallable; typedef std::function&)> ModifyCasterProgramAsyncHandler; + typedef Outcome DescribeBoardEventsOutcome; + typedef std::future DescribeBoardEventsOutcomeCallable; + typedef std::function&)> DescribeBoardEventsAsyncHandler; typedef Outcome DescribeLiveCertificateDetailOutcome; typedef std::future DescribeLiveCertificateDetailOutcomeCallable; typedef std::function&)> DescribeLiveCertificateDetailAsyncHandler; @@ -559,21 +568,21 @@ namespace AlibabaCloud typedef Outcome StartLiveDomainOutcome; typedef std::future StartLiveDomainOutcomeCallable; typedef std::function&)> StartLiveDomainAsyncHandler; - typedef Outcome DescribeLiveStreamsBlockListOutcome; - typedef std::future DescribeLiveStreamsBlockListOutcomeCallable; - typedef std::function&)> DescribeLiveStreamsBlockListAsyncHandler; typedef Outcome DescribeCasterSceneAudioOutcome; typedef std::future DescribeCasterSceneAudioOutcomeCallable; typedef std::function&)> DescribeCasterSceneAudioAsyncHandler; + typedef Outcome DescribeLiveStreamsBlockListOutcome; + typedef std::future DescribeLiveStreamsBlockListOutcomeCallable; + typedef std::function&)> DescribeLiveStreamsBlockListAsyncHandler; + typedef Outcome AddLiveStreamTranscodeOutcome; + typedef std::future AddLiveStreamTranscodeOutcomeCallable; + typedef std::function&)> AddLiveStreamTranscodeAsyncHandler; typedef Outcome AddCasterVideoResourceOutcome; typedef std::future AddCasterVideoResourceOutcomeCallable; typedef std::function&)> AddCasterVideoResourceAsyncHandler; typedef Outcome DescribeRoomKickoutUserListOutcome; typedef std::future DescribeRoomKickoutUserListOutcomeCallable; typedef std::function&)> DescribeRoomKickoutUserListAsyncHandler; - typedef Outcome AddLiveStreamTranscodeOutcome; - typedef std::future AddLiveStreamTranscodeOutcomeCallable; - typedef std::function&)> AddLiveStreamTranscodeAsyncHandler; typedef Outcome AddCasterEpisodeGroupContentOutcome; typedef std::future AddCasterEpisodeGroupContentOutcomeCallable; typedef std::function&)> AddCasterEpisodeGroupContentAsyncHandler; @@ -619,33 +628,36 @@ namespace AlibabaCloud typedef Outcome DescribeLiveStreamSnapshotInfoOutcome; typedef std::future DescribeLiveStreamSnapshotInfoOutcomeCallable; typedef std::function&)> DescribeLiveStreamSnapshotInfoAsyncHandler; + typedef Outcome DescribeLiveDomainBpsDataByTimeStampOutcome; + typedef std::future DescribeLiveDomainBpsDataByTimeStampOutcomeCallable; + typedef std::function&)> DescribeLiveDomainBpsDataByTimeStampAsyncHandler; typedef Outcome UpdateBoardCallbackOutcome; typedef std::future UpdateBoardCallbackOutcomeCallable; typedef std::function&)> UpdateBoardCallbackAsyncHandler; typedef Outcome DescribeLiveStreamsFrameRateAndBitRateDataOutcome; typedef std::future DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable; typedef std::function&)> DescribeLiveStreamsFrameRateAndBitRateDataAsyncHandler; - typedef Outcome DescribeLiveStreamRecordContentOutcome; - typedef std::future DescribeLiveStreamRecordContentOutcomeCallable; - typedef std::function&)> DescribeLiveStreamRecordContentAsyncHandler; typedef Outcome DescribeForbidPushStreamRoomListOutcome; typedef std::future DescribeForbidPushStreamRoomListOutcomeCallable; typedef std::function&)> DescribeForbidPushStreamRoomListAsyncHandler; typedef Outcome CreateCasterOutcome; typedef std::future CreateCasterOutcomeCallable; typedef std::function&)> CreateCasterAsyncHandler; + typedef Outcome DescribeLiveStreamRecordContentOutcome; + typedef std::future DescribeLiveStreamRecordContentOutcomeCallable; + typedef std::function&)> DescribeLiveStreamRecordContentAsyncHandler; typedef Outcome DescribeCasterLayoutsOutcome; typedef std::future DescribeCasterLayoutsOutcomeCallable; typedef std::function&)> DescribeCasterLayoutsAsyncHandler; typedef Outcome AddLiveSnapshotDetectPornConfigOutcome; typedef std::future AddLiveSnapshotDetectPornConfigOutcomeCallable; typedef std::function&)> AddLiveSnapshotDetectPornConfigAsyncHandler; - typedef Outcome SetCasterChannelOutcome; - typedef std::future SetCasterChannelOutcomeCallable; - typedef std::function&)> SetCasterChannelAsyncHandler; typedef Outcome UpdateLiveRecordNotifyConfigOutcome; typedef std::future UpdateLiveRecordNotifyConfigOutcomeCallable; typedef std::function&)> UpdateLiveRecordNotifyConfigAsyncHandler; + typedef Outcome SetCasterChannelOutcome; + typedef std::future SetCasterChannelOutcomeCallable; + typedef std::function&)> SetCasterChannelAsyncHandler; typedef Outcome DescribeLiveSnapshotConfigOutcome; typedef std::future DescribeLiveSnapshotConfigOutcomeCallable; typedef std::function&)> DescribeLiveSnapshotConfigAsyncHandler; @@ -658,12 +670,12 @@ namespace AlibabaCloud typedef Outcome DescribeLiveDomainTrafficDataOutcome; typedef std::future DescribeLiveDomainTrafficDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainTrafficDataAsyncHandler; - typedef Outcome StopLiveDomainOutcome; - typedef std::future StopLiveDomainOutcomeCallable; - typedef std::function&)> StopLiveDomainAsyncHandler; typedef Outcome ApplyBoardTokenOutcome; typedef std::future ApplyBoardTokenOutcomeCallable; typedef std::function&)> ApplyBoardTokenAsyncHandler; + typedef Outcome StopLiveDomainOutcome; + typedef std::future StopLiveDomainOutcomeCallable; + typedef std::function&)> StopLiveDomainAsyncHandler; typedef Outcome DescribeLiveStreamHistoryUserNumOutcome; typedef std::future DescribeLiveStreamHistoryUserNumOutcomeCallable; typedef std::function&)> DescribeLiveStreamHistoryUserNumAsyncHandler; @@ -715,24 +727,24 @@ namespace AlibabaCloud typedef Outcome DescribeBoardSnapshotOutcome; typedef std::future DescribeBoardSnapshotOutcomeCallable; typedef std::function&)> DescribeBoardSnapshotAsyncHandler; - typedef Outcome ForbidLiveStreamOutcome; - typedef std::future ForbidLiveStreamOutcomeCallable; - typedef std::function&)> ForbidLiveStreamAsyncHandler; typedef Outcome SetLiveDomainCertificateOutcome; typedef std::future SetLiveDomainCertificateOutcomeCallable; typedef std::function&)> SetLiveDomainCertificateAsyncHandler; - typedef Outcome DescribeRecordsOutcome; - typedef std::future DescribeRecordsOutcomeCallable; - typedef std::function&)> DescribeRecordsAsyncHandler; + typedef Outcome ForbidLiveStreamOutcome; + typedef std::future ForbidLiveStreamOutcomeCallable; + typedef std::function&)> ForbidLiveStreamAsyncHandler; typedef Outcome SetLiveStreamDelayConfigOutcome; typedef std::future SetLiveStreamDelayConfigOutcomeCallable; typedef std::function&)> SetLiveStreamDelayConfigAsyncHandler; - typedef Outcome DescribeLiveStreamOptimizedFeatureConfigOutcome; - typedef std::future DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable; - typedef std::function&)> DescribeLiveStreamOptimizedFeatureConfigAsyncHandler; + typedef Outcome DescribeRecordsOutcome; + typedef std::future DescribeRecordsOutcomeCallable; + typedef std::function&)> DescribeRecordsAsyncHandler; typedef Outcome DeleteCasterEpisodeGroupOutcome; typedef std::future DeleteCasterEpisodeGroupOutcomeCallable; typedef std::function&)> DeleteCasterEpisodeGroupAsyncHandler; + typedef Outcome DescribeLiveStreamOptimizedFeatureConfigOutcome; + typedef std::future DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable; + typedef std::function&)> DescribeLiveStreamOptimizedFeatureConfigAsyncHandler; typedef Outcome DescribeCasterVideoResourcesOutcome; typedef std::future DescribeCasterVideoResourcesOutcomeCallable; typedef std::function&)> DescribeCasterVideoResourcesAsyncHandler; @@ -748,51 +760,51 @@ namespace AlibabaCloud typedef Outcome EffectCasterVideoResourceOutcome; typedef std::future EffectCasterVideoResourceOutcomeCallable; typedef std::function&)> EffectCasterVideoResourceAsyncHandler; - typedef Outcome DescribeUpPeakPublishStreamDataOutcome; - typedef std::future DescribeUpPeakPublishStreamDataOutcomeCallable; - typedef std::function&)> DescribeUpPeakPublishStreamDataAsyncHandler; typedef Outcome AddLiveAppSnapshotConfigOutcome; typedef std::future AddLiveAppSnapshotConfigOutcomeCallable; typedef std::function&)> AddLiveAppSnapshotConfigAsyncHandler; + typedef Outcome DescribeUpPeakPublishStreamDataOutcome; + typedef std::future DescribeUpPeakPublishStreamDataOutcomeCallable; + typedef std::function&)> DescribeUpPeakPublishStreamDataAsyncHandler; typedef Outcome DeleteCasterComponentOutcome; typedef std::future DeleteCasterComponentOutcomeCallable; typedef std::function&)> DeleteCasterComponentAsyncHandler; typedef Outcome DeleteLiveDomainOutcome; typedef std::future DeleteLiveDomainOutcomeCallable; typedef std::function&)> DeleteLiveDomainAsyncHandler; + typedef Outcome AddLiveDomainMappingOutcome; + typedef std::future AddLiveDomainMappingOutcomeCallable; + typedef std::function&)> AddLiveDomainMappingAsyncHandler; typedef Outcome RealTimeRecordCommandOutcome; typedef std::future RealTimeRecordCommandOutcomeCallable; typedef std::function&)> RealTimeRecordCommandAsyncHandler; typedef Outcome SetCasterConfigOutcome; typedef std::future SetCasterConfigOutcomeCallable; typedef std::function&)> SetCasterConfigAsyncHandler; - typedef Outcome AddLiveDomainMappingOutcome; - typedef std::future AddLiveDomainMappingOutcomeCallable; - typedef std::function&)> AddLiveDomainMappingAsyncHandler; typedef Outcome StartCasterOutcome; typedef std::future StartCasterOutcomeCallable; typedef std::function&)> StartCasterAsyncHandler; typedef Outcome UpdateBoardOutcome; typedef std::future UpdateBoardOutcomeCallable; typedef std::function&)> UpdateBoardAsyncHandler; - typedef Outcome ResumeLiveStreamOutcome; - typedef std::future ResumeLiveStreamOutcomeCallable; - typedef std::function&)> ResumeLiveStreamAsyncHandler; typedef Outcome AddCasterLayoutOutcome; typedef std::future AddCasterLayoutOutcomeCallable; typedef std::function&)> AddCasterLayoutAsyncHandler; + typedef Outcome ResumeLiveStreamOutcome; + typedef std::future ResumeLiveStreamOutcomeCallable; + typedef std::function&)> ResumeLiveStreamAsyncHandler; typedef Outcome JoinBoardOutcome; typedef std::future JoinBoardOutcomeCallable; typedef std::function&)> JoinBoardAsyncHandler; typedef Outcome DescribeLiveUserDomainsOutcome; typedef std::future DescribeLiveUserDomainsOutcomeCallable; typedef std::function&)> DescribeLiveUserDomainsAsyncHandler; - typedef Outcome ModifyCasterLayoutOutcome; - typedef std::future ModifyCasterLayoutOutcomeCallable; - typedef std::function&)> ModifyCasterLayoutAsyncHandler; typedef Outcome StopCasterOutcome; typedef std::future StopCasterOutcomeCallable; typedef std::function&)> StopCasterAsyncHandler; + typedef Outcome ModifyCasterLayoutOutcome; + typedef std::future ModifyCasterLayoutOutcomeCallable; + typedef std::function&)> ModifyCasterLayoutAsyncHandler; typedef Outcome DescribeLiveStreamsPublishListOutcome; typedef std::future DescribeLiveStreamsPublishListOutcomeCallable; typedef std::function&)> DescribeLiveStreamsPublishListAsyncHandler; @@ -808,6 +820,9 @@ namespace AlibabaCloud typedef Outcome AddLiveDomainOutcome; typedef std::future AddLiveDomainOutcomeCallable; typedef std::function&)> AddLiveDomainAsyncHandler; + typedef Outcome DescribeLiveDomainOnlineUserNumOutcome; + typedef std::future DescribeLiveDomainOnlineUserNumOutcomeCallable; + typedef std::function&)> DescribeLiveDomainOnlineUserNumAsyncHandler; typedef Outcome DeleteLiveAppRecordConfigOutcome; typedef std::future DeleteLiveAppRecordConfigOutcomeCallable; typedef std::function&)> DeleteLiveAppRecordConfigAsyncHandler; @@ -849,12 +864,12 @@ namespace AlibabaCloud StartBoardRecordOutcome startBoardRecord(const Model::StartBoardRecordRequest &request)const; void startBoardRecordAsync(const Model::StartBoardRecordRequest& request, const StartBoardRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartBoardRecordOutcomeCallable startBoardRecordCallable(const Model::StartBoardRecordRequest& request) const; - DescribeRoomListOutcome describeRoomList(const Model::DescribeRoomListRequest &request)const; - void describeRoomListAsync(const Model::DescribeRoomListRequest& request, const DescribeRoomListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRoomListOutcomeCallable describeRoomListCallable(const Model::DescribeRoomListRequest& request) const; DescribeLiveRecordNotifyConfigOutcome describeLiveRecordNotifyConfig(const Model::DescribeLiveRecordNotifyConfigRequest &request)const; void describeLiveRecordNotifyConfigAsync(const Model::DescribeLiveRecordNotifyConfigRequest& request, const DescribeLiveRecordNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveRecordNotifyConfigOutcomeCallable describeLiveRecordNotifyConfigCallable(const Model::DescribeLiveRecordNotifyConfigRequest& request) const; + DescribeRoomListOutcome describeRoomList(const Model::DescribeRoomListRequest &request)const; + void describeRoomListAsync(const Model::DescribeRoomListRequest& request, const DescribeRoomListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRoomListOutcomeCallable describeRoomListCallable(const Model::DescribeRoomListRequest& request) const; DescribeLiveDetectNotifyConfigOutcome describeLiveDetectNotifyConfig(const Model::DescribeLiveDetectNotifyConfigRequest &request)const; void describeLiveDetectNotifyConfigAsync(const Model::DescribeLiveDetectNotifyConfigRequest& request, const DescribeLiveDetectNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDetectNotifyConfigOutcomeCallable describeLiveDetectNotifyConfigCallable(const Model::DescribeLiveDetectNotifyConfigRequest& request) const; @@ -882,12 +897,12 @@ namespace AlibabaCloud UpdateCasterSceneConfigOutcome updateCasterSceneConfig(const Model::UpdateCasterSceneConfigRequest &request)const; void updateCasterSceneConfigAsync(const Model::UpdateCasterSceneConfigRequest& request, const UpdateCasterSceneConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateCasterSceneConfigOutcomeCallable updateCasterSceneConfigCallable(const Model::UpdateCasterSceneConfigRequest& request) const; - DescribeLiveStreamTranscodeInfoOutcome describeLiveStreamTranscodeInfo(const Model::DescribeLiveStreamTranscodeInfoRequest &request)const; - void describeLiveStreamTranscodeInfoAsync(const Model::DescribeLiveStreamTranscodeInfoRequest& request, const DescribeLiveStreamTranscodeInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamTranscodeInfoOutcomeCallable describeLiveStreamTranscodeInfoCallable(const Model::DescribeLiveStreamTranscodeInfoRequest& request) const; DescribeLiveStreamsOnlineListOutcome describeLiveStreamsOnlineList(const Model::DescribeLiveStreamsOnlineListRequest &request)const; void describeLiveStreamsOnlineListAsync(const Model::DescribeLiveStreamsOnlineListRequest& request, const DescribeLiveStreamsOnlineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsOnlineListOutcomeCallable describeLiveStreamsOnlineListCallable(const Model::DescribeLiveStreamsOnlineListRequest& request) const; + DescribeLiveStreamTranscodeInfoOutcome describeLiveStreamTranscodeInfo(const Model::DescribeLiveStreamTranscodeInfoRequest &request)const; + void describeLiveStreamTranscodeInfoAsync(const Model::DescribeLiveStreamTranscodeInfoRequest& request, const DescribeLiveStreamTranscodeInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveStreamTranscodeInfoOutcomeCallable describeLiveStreamTranscodeInfoCallable(const Model::DescribeLiveStreamTranscodeInfoRequest& request) const; DeleteLiveSnapshotDetectPornConfigOutcome deleteLiveSnapshotDetectPornConfig(const Model::DeleteLiveSnapshotDetectPornConfigRequest &request)const; void deleteLiveSnapshotDetectPornConfigAsync(const Model::DeleteLiveSnapshotDetectPornConfigRequest& request, const DeleteLiveSnapshotDetectPornConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveSnapshotDetectPornConfigOutcomeCallable deleteLiveSnapshotDetectPornConfigCallable(const Model::DeleteLiveSnapshotDetectPornConfigRequest& request) const; @@ -900,21 +915,21 @@ namespace AlibabaCloud DescribeLiveDomainTranscodeDataOutcome describeLiveDomainTranscodeData(const Model::DescribeLiveDomainTranscodeDataRequest &request)const; void describeLiveDomainTranscodeDataAsync(const Model::DescribeLiveDomainTranscodeDataRequest& request, const DescribeLiveDomainTranscodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainTranscodeDataOutcomeCallable describeLiveDomainTranscodeDataCallable(const Model::DescribeLiveDomainTranscodeDataRequest& request) const; - DeleteLiveStreamTranscodeOutcome deleteLiveStreamTranscode(const Model::DeleteLiveStreamTranscodeRequest &request)const; - void deleteLiveStreamTranscodeAsync(const Model::DeleteLiveStreamTranscodeRequest& request, const DeleteLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteLiveStreamTranscodeOutcomeCallable deleteLiveStreamTranscodeCallable(const Model::DeleteLiveStreamTranscodeRequest& request) const; DeleteCasterEpisodeOutcome deleteCasterEpisode(const Model::DeleteCasterEpisodeRequest &request)const; void deleteCasterEpisodeAsync(const Model::DeleteCasterEpisodeRequest& request, const DeleteCasterEpisodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCasterEpisodeOutcomeCallable deleteCasterEpisodeCallable(const Model::DeleteCasterEpisodeRequest& request) const; + DeleteLiveStreamTranscodeOutcome deleteLiveStreamTranscode(const Model::DeleteLiveStreamTranscodeRequest &request)const; + void deleteLiveStreamTranscodeAsync(const Model::DeleteLiveStreamTranscodeRequest& request, const DeleteLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLiveStreamTranscodeOutcomeCallable deleteLiveStreamTranscodeCallable(const Model::DeleteLiveStreamTranscodeRequest& request) const; DescribeCasterRtcInfoOutcome describeCasterRtcInfo(const Model::DescribeCasterRtcInfoRequest &request)const; void describeCasterRtcInfoAsync(const Model::DescribeCasterRtcInfoRequest& request, const DescribeCasterRtcInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCasterRtcInfoOutcomeCallable describeCasterRtcInfoCallable(const Model::DescribeCasterRtcInfoRequest& request) const; - SetCasterSceneConfigOutcome setCasterSceneConfig(const Model::SetCasterSceneConfigRequest &request)const; - void setCasterSceneConfigAsync(const Model::SetCasterSceneConfigRequest& request, const SetCasterSceneConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetCasterSceneConfigOutcomeCallable setCasterSceneConfigCallable(const Model::SetCasterSceneConfigRequest& request) const; AddTrancodeSEIOutcome addTrancodeSEI(const Model::AddTrancodeSEIRequest &request)const; void addTrancodeSEIAsync(const Model::AddTrancodeSEIRequest& request, const AddTrancodeSEIAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTrancodeSEIOutcomeCallable addTrancodeSEICallable(const Model::AddTrancodeSEIRequest& request) const; + SetCasterSceneConfigOutcome setCasterSceneConfig(const Model::SetCasterSceneConfigRequest &request)const; + void setCasterSceneConfigAsync(const Model::SetCasterSceneConfigRequest& request, const SetCasterSceneConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetCasterSceneConfigOutcomeCallable setCasterSceneConfigCallable(const Model::SetCasterSceneConfigRequest& request) const; DeleteBoardOutcome deleteBoard(const Model::DeleteBoardRequest &request)const; void deleteBoardAsync(const Model::DeleteBoardRequest& request, const DeleteBoardAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBoardOutcomeCallable deleteBoardCallable(const Model::DeleteBoardRequest& request) const; @@ -933,30 +948,30 @@ namespace AlibabaCloud StartLiveIndexOutcome startLiveIndex(const Model::StartLiveIndexRequest &request)const; void startLiveIndexAsync(const Model::StartLiveIndexRequest& request, const StartLiveIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartLiveIndexOutcomeCallable startLiveIndexCallable(const Model::StartLiveIndexRequest& request) const; - DescribeLiveTopDomainsByFlowOutcome describeLiveTopDomainsByFlow(const Model::DescribeLiveTopDomainsByFlowRequest &request)const; - void describeLiveTopDomainsByFlowAsync(const Model::DescribeLiveTopDomainsByFlowRequest& request, const DescribeLiveTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveTopDomainsByFlowOutcomeCallable describeLiveTopDomainsByFlowCallable(const Model::DescribeLiveTopDomainsByFlowRequest& request) const; AddCasterEpisodeGroupOutcome addCasterEpisodeGroup(const Model::AddCasterEpisodeGroupRequest &request)const; void addCasterEpisodeGroupAsync(const Model::AddCasterEpisodeGroupRequest& request, const AddCasterEpisodeGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCasterEpisodeGroupOutcomeCallable addCasterEpisodeGroupCallable(const Model::AddCasterEpisodeGroupRequest& request) const; DescribeLiveStreamRecordIndexFileOutcome describeLiveStreamRecordIndexFile(const Model::DescribeLiveStreamRecordIndexFileRequest &request)const; void describeLiveStreamRecordIndexFileAsync(const Model::DescribeLiveStreamRecordIndexFileRequest& request, const DescribeLiveStreamRecordIndexFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamRecordIndexFileOutcomeCallable describeLiveStreamRecordIndexFileCallable(const Model::DescribeLiveStreamRecordIndexFileRequest& request) const; - DescribeLiveStreamTranscodeStreamNumOutcome describeLiveStreamTranscodeStreamNum(const Model::DescribeLiveStreamTranscodeStreamNumRequest &request)const; - void describeLiveStreamTranscodeStreamNumAsync(const Model::DescribeLiveStreamTranscodeStreamNumRequest& request, const DescribeLiveStreamTranscodeStreamNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamTranscodeStreamNumOutcomeCallable describeLiveStreamTranscodeStreamNumCallable(const Model::DescribeLiveStreamTranscodeStreamNumRequest& request) const; + DescribeLiveTopDomainsByFlowOutcome describeLiveTopDomainsByFlow(const Model::DescribeLiveTopDomainsByFlowRequest &request)const; + void describeLiveTopDomainsByFlowAsync(const Model::DescribeLiveTopDomainsByFlowRequest& request, const DescribeLiveTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveTopDomainsByFlowOutcomeCallable describeLiveTopDomainsByFlowCallable(const Model::DescribeLiveTopDomainsByFlowRequest& request) const; DescribeCasterConfigOutcome describeCasterConfig(const Model::DescribeCasterConfigRequest &request)const; void describeCasterConfigAsync(const Model::DescribeCasterConfigRequest& request, const DescribeCasterConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCasterConfigOutcomeCallable describeCasterConfigCallable(const Model::DescribeCasterConfigRequest& request) const; + DescribeLiveStreamTranscodeStreamNumOutcome describeLiveStreamTranscodeStreamNum(const Model::DescribeLiveStreamTranscodeStreamNumRequest &request)const; + void describeLiveStreamTranscodeStreamNumAsync(const Model::DescribeLiveStreamTranscodeStreamNumRequest& request, const DescribeLiveStreamTranscodeStreamNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveStreamTranscodeStreamNumOutcomeCallable describeLiveStreamTranscodeStreamNumCallable(const Model::DescribeLiveStreamTranscodeStreamNumRequest& request) const; CopyCasterOutcome copyCaster(const Model::CopyCasterRequest &request)const; void copyCasterAsync(const Model::CopyCasterRequest& request, const CopyCasterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CopyCasterOutcomeCallable copyCasterCallable(const Model::CopyCasterRequest& request) const; - AddCustomLiveStreamTranscodeOutcome addCustomLiveStreamTranscode(const Model::AddCustomLiveStreamTranscodeRequest &request)const; - void addCustomLiveStreamTranscodeAsync(const Model::AddCustomLiveStreamTranscodeRequest& request, const AddCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddCustomLiveStreamTranscodeOutcomeCallable addCustomLiveStreamTranscodeCallable(const Model::AddCustomLiveStreamTranscodeRequest& request) const; SetLiveLazyPullStreamInfoConfigOutcome setLiveLazyPullStreamInfoConfig(const Model::SetLiveLazyPullStreamInfoConfigRequest &request)const; void setLiveLazyPullStreamInfoConfigAsync(const Model::SetLiveLazyPullStreamInfoConfigRequest& request, const SetLiveLazyPullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLiveLazyPullStreamInfoConfigOutcomeCallable setLiveLazyPullStreamInfoConfigCallable(const Model::SetLiveLazyPullStreamInfoConfigRequest& request) const; + AddCustomLiveStreamTranscodeOutcome addCustomLiveStreamTranscode(const Model::AddCustomLiveStreamTranscodeRequest &request)const; + void addCustomLiveStreamTranscodeAsync(const Model::AddCustomLiveStreamTranscodeRequest& request, const AddCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddCustomLiveStreamTranscodeOutcomeCallable addCustomLiveStreamTranscodeCallable(const Model::AddCustomLiveStreamTranscodeRequest& request) const; AddCasterEpisodeOutcome addCasterEpisode(const Model::AddCasterEpisodeRequest &request)const; void addCasterEpisodeAsync(const Model::AddCasterEpisodeRequest& request, const AddCasterEpisodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCasterEpisodeOutcomeCallable addCasterEpisodeCallable(const Model::AddCasterEpisodeRequest& request) const; @@ -1008,33 +1023,36 @@ namespace AlibabaCloud DeleteLiveAppSnapshotConfigOutcome deleteLiveAppSnapshotConfig(const Model::DeleteLiveAppSnapshotConfigRequest &request)const; void deleteLiveAppSnapshotConfigAsync(const Model::DeleteLiveAppSnapshotConfigRequest& request, const DeleteLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveAppSnapshotConfigOutcomeCallable deleteLiveAppSnapshotConfigCallable(const Model::DeleteLiveAppSnapshotConfigRequest& request) const; + DescribeLiveStreamsNotifyUrlConfigOutcome describeLiveStreamsNotifyUrlConfig(const Model::DescribeLiveStreamsNotifyUrlConfigRequest &request)const; + void describeLiveStreamsNotifyUrlConfigAsync(const Model::DescribeLiveStreamsNotifyUrlConfigRequest& request, const DescribeLiveStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveStreamsNotifyUrlConfigOutcomeCallable describeLiveStreamsNotifyUrlConfigCallable(const Model::DescribeLiveStreamsNotifyUrlConfigRequest& request) const; ApplyRecordTokenOutcome applyRecordToken(const Model::ApplyRecordTokenRequest &request)const; void applyRecordTokenAsync(const Model::ApplyRecordTokenRequest& request, const ApplyRecordTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApplyRecordTokenOutcomeCallable applyRecordTokenCallable(const Model::ApplyRecordTokenRequest& request) const; UpdateCasterSceneAudioOutcome updateCasterSceneAudio(const Model::UpdateCasterSceneAudioRequest &request)const; void updateCasterSceneAudioAsync(const Model::UpdateCasterSceneAudioRequest& request, const UpdateCasterSceneAudioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateCasterSceneAudioOutcomeCallable updateCasterSceneAudioCallable(const Model::UpdateCasterSceneAudioRequest& request) const; - DescribeLiveStreamsNotifyUrlConfigOutcome describeLiveStreamsNotifyUrlConfig(const Model::DescribeLiveStreamsNotifyUrlConfigRequest &request)const; - void describeLiveStreamsNotifyUrlConfigAsync(const Model::DescribeLiveStreamsNotifyUrlConfigRequest& request, const DescribeLiveStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamsNotifyUrlConfigOutcomeCallable describeLiveStreamsNotifyUrlConfigCallable(const Model::DescribeLiveStreamsNotifyUrlConfigRequest& request) const; DescribeUpBpsPeakDataOutcome describeUpBpsPeakData(const Model::DescribeUpBpsPeakDataRequest &request)const; void describeUpBpsPeakDataAsync(const Model::DescribeUpBpsPeakDataRequest& request, const DescribeUpBpsPeakDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUpBpsPeakDataOutcomeCallable describeUpBpsPeakDataCallable(const Model::DescribeUpBpsPeakDataRequest& request) const; - UpdateLiveTopLevelDomainOutcome updateLiveTopLevelDomain(const Model::UpdateLiveTopLevelDomainRequest &request)const; - void updateLiveTopLevelDomainAsync(const Model::UpdateLiveTopLevelDomainRequest& request, const UpdateLiveTopLevelDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateLiveTopLevelDomainOutcomeCallable updateLiveTopLevelDomainCallable(const Model::UpdateLiveTopLevelDomainRequest& request) const; - DeleteLivePullStreamInfoConfigOutcome deleteLivePullStreamInfoConfig(const Model::DeleteLivePullStreamInfoConfigRequest &request)const; - void deleteLivePullStreamInfoConfigAsync(const Model::DeleteLivePullStreamInfoConfigRequest& request, const DeleteLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteLivePullStreamInfoConfigOutcomeCallable deleteLivePullStreamInfoConfigCallable(const Model::DeleteLivePullStreamInfoConfigRequest& request) const; + DescribeLiveDomainFrameRateAndBitRateDataOutcome describeLiveDomainFrameRateAndBitRateData(const Model::DescribeLiveDomainFrameRateAndBitRateDataRequest &request)const; + void describeLiveDomainFrameRateAndBitRateDataAsync(const Model::DescribeLiveDomainFrameRateAndBitRateDataRequest& request, const DescribeLiveDomainFrameRateAndBitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainFrameRateAndBitRateDataOutcomeCallable describeLiveDomainFrameRateAndBitRateDataCallable(const Model::DescribeLiveDomainFrameRateAndBitRateDataRequest& request) const; ModifyLiveDomainSchdmByPropertyOutcome modifyLiveDomainSchdmByProperty(const Model::ModifyLiveDomainSchdmByPropertyRequest &request)const; void modifyLiveDomainSchdmByPropertyAsync(const Model::ModifyLiveDomainSchdmByPropertyRequest& request, const ModifyLiveDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLiveDomainSchdmByPropertyOutcomeCallable modifyLiveDomainSchdmByPropertyCallable(const Model::ModifyLiveDomainSchdmByPropertyRequest& request) const; - DescribeBoardEventsOutcome describeBoardEvents(const Model::DescribeBoardEventsRequest &request)const; - void describeBoardEventsAsync(const Model::DescribeBoardEventsRequest& request, const DescribeBoardEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeBoardEventsOutcomeCallable describeBoardEventsCallable(const Model::DescribeBoardEventsRequest& request) const; + DeleteLivePullStreamInfoConfigOutcome deleteLivePullStreamInfoConfig(const Model::DeleteLivePullStreamInfoConfigRequest &request)const; + void deleteLivePullStreamInfoConfigAsync(const Model::DeleteLivePullStreamInfoConfigRequest& request, const DeleteLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLivePullStreamInfoConfigOutcomeCallable deleteLivePullStreamInfoConfigCallable(const Model::DeleteLivePullStreamInfoConfigRequest& request) const; + UpdateLiveTopLevelDomainOutcome updateLiveTopLevelDomain(const Model::UpdateLiveTopLevelDomainRequest &request)const; + void updateLiveTopLevelDomainAsync(const Model::UpdateLiveTopLevelDomainRequest& request, const UpdateLiveTopLevelDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLiveTopLevelDomainOutcomeCallable updateLiveTopLevelDomainCallable(const Model::UpdateLiveTopLevelDomainRequest& request) const; ModifyCasterProgramOutcome modifyCasterProgram(const Model::ModifyCasterProgramRequest &request)const; void modifyCasterProgramAsync(const Model::ModifyCasterProgramRequest& request, const ModifyCasterProgramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCasterProgramOutcomeCallable modifyCasterProgramCallable(const Model::ModifyCasterProgramRequest& request) const; + DescribeBoardEventsOutcome describeBoardEvents(const Model::DescribeBoardEventsRequest &request)const; + void describeBoardEventsAsync(const Model::DescribeBoardEventsRequest& request, const DescribeBoardEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBoardEventsOutcomeCallable describeBoardEventsCallable(const Model::DescribeBoardEventsRequest& request) const; DescribeLiveCertificateDetailOutcome describeLiveCertificateDetail(const Model::DescribeLiveCertificateDetailRequest &request)const; void describeLiveCertificateDetailAsync(const Model::DescribeLiveCertificateDetailRequest& request, const DescribeLiveCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveCertificateDetailOutcomeCallable describeLiveCertificateDetailCallable(const Model::DescribeLiveCertificateDetailRequest& request) const; @@ -1050,21 +1068,21 @@ namespace AlibabaCloud StartLiveDomainOutcome startLiveDomain(const Model::StartLiveDomainRequest &request)const; void startLiveDomainAsync(const Model::StartLiveDomainRequest& request, const StartLiveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartLiveDomainOutcomeCallable startLiveDomainCallable(const Model::StartLiveDomainRequest& request) const; - DescribeLiveStreamsBlockListOutcome describeLiveStreamsBlockList(const Model::DescribeLiveStreamsBlockListRequest &request)const; - void describeLiveStreamsBlockListAsync(const Model::DescribeLiveStreamsBlockListRequest& request, const DescribeLiveStreamsBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamsBlockListOutcomeCallable describeLiveStreamsBlockListCallable(const Model::DescribeLiveStreamsBlockListRequest& request) const; DescribeCasterSceneAudioOutcome describeCasterSceneAudio(const Model::DescribeCasterSceneAudioRequest &request)const; void describeCasterSceneAudioAsync(const Model::DescribeCasterSceneAudioRequest& request, const DescribeCasterSceneAudioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCasterSceneAudioOutcomeCallable describeCasterSceneAudioCallable(const Model::DescribeCasterSceneAudioRequest& request) const; + DescribeLiveStreamsBlockListOutcome describeLiveStreamsBlockList(const Model::DescribeLiveStreamsBlockListRequest &request)const; + void describeLiveStreamsBlockListAsync(const Model::DescribeLiveStreamsBlockListRequest& request, const DescribeLiveStreamsBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveStreamsBlockListOutcomeCallable describeLiveStreamsBlockListCallable(const Model::DescribeLiveStreamsBlockListRequest& request) const; + AddLiveStreamTranscodeOutcome addLiveStreamTranscode(const Model::AddLiveStreamTranscodeRequest &request)const; + void addLiveStreamTranscodeAsync(const Model::AddLiveStreamTranscodeRequest& request, const AddLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddLiveStreamTranscodeOutcomeCallable addLiveStreamTranscodeCallable(const Model::AddLiveStreamTranscodeRequest& request) const; AddCasterVideoResourceOutcome addCasterVideoResource(const Model::AddCasterVideoResourceRequest &request)const; void addCasterVideoResourceAsync(const Model::AddCasterVideoResourceRequest& request, const AddCasterVideoResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCasterVideoResourceOutcomeCallable addCasterVideoResourceCallable(const Model::AddCasterVideoResourceRequest& request) const; DescribeRoomKickoutUserListOutcome describeRoomKickoutUserList(const Model::DescribeRoomKickoutUserListRequest &request)const; void describeRoomKickoutUserListAsync(const Model::DescribeRoomKickoutUserListRequest& request, const DescribeRoomKickoutUserListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRoomKickoutUserListOutcomeCallable describeRoomKickoutUserListCallable(const Model::DescribeRoomKickoutUserListRequest& request) const; - AddLiveStreamTranscodeOutcome addLiveStreamTranscode(const Model::AddLiveStreamTranscodeRequest &request)const; - void addLiveStreamTranscodeAsync(const Model::AddLiveStreamTranscodeRequest& request, const AddLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddLiveStreamTranscodeOutcomeCallable addLiveStreamTranscodeCallable(const Model::AddLiveStreamTranscodeRequest& request) const; AddCasterEpisodeGroupContentOutcome addCasterEpisodeGroupContent(const Model::AddCasterEpisodeGroupContentRequest &request)const; void addCasterEpisodeGroupContentAsync(const Model::AddCasterEpisodeGroupContentRequest& request, const AddCasterEpisodeGroupContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCasterEpisodeGroupContentOutcomeCallable addCasterEpisodeGroupContentCallable(const Model::AddCasterEpisodeGroupContentRequest& request) const; @@ -1110,33 +1128,36 @@ namespace AlibabaCloud DescribeLiveStreamSnapshotInfoOutcome describeLiveStreamSnapshotInfo(const Model::DescribeLiveStreamSnapshotInfoRequest &request)const; void describeLiveStreamSnapshotInfoAsync(const Model::DescribeLiveStreamSnapshotInfoRequest& request, const DescribeLiveStreamSnapshotInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamSnapshotInfoOutcomeCallable describeLiveStreamSnapshotInfoCallable(const Model::DescribeLiveStreamSnapshotInfoRequest& request) const; + DescribeLiveDomainBpsDataByTimeStampOutcome describeLiveDomainBpsDataByTimeStamp(const Model::DescribeLiveDomainBpsDataByTimeStampRequest &request)const; + void describeLiveDomainBpsDataByTimeStampAsync(const Model::DescribeLiveDomainBpsDataByTimeStampRequest& request, const DescribeLiveDomainBpsDataByTimeStampAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainBpsDataByTimeStampOutcomeCallable describeLiveDomainBpsDataByTimeStampCallable(const Model::DescribeLiveDomainBpsDataByTimeStampRequest& request) const; UpdateBoardCallbackOutcome updateBoardCallback(const Model::UpdateBoardCallbackRequest &request)const; void updateBoardCallbackAsync(const Model::UpdateBoardCallbackRequest& request, const UpdateBoardCallbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateBoardCallbackOutcomeCallable updateBoardCallbackCallable(const Model::UpdateBoardCallbackRequest& request) const; DescribeLiveStreamsFrameRateAndBitRateDataOutcome describeLiveStreamsFrameRateAndBitRateData(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest &request)const; void describeLiveStreamsFrameRateAndBitRateDataAsync(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest& request, const DescribeLiveStreamsFrameRateAndBitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable describeLiveStreamsFrameRateAndBitRateDataCallable(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest& request) const; - DescribeLiveStreamRecordContentOutcome describeLiveStreamRecordContent(const Model::DescribeLiveStreamRecordContentRequest &request)const; - void describeLiveStreamRecordContentAsync(const Model::DescribeLiveStreamRecordContentRequest& request, const DescribeLiveStreamRecordContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamRecordContentOutcomeCallable describeLiveStreamRecordContentCallable(const Model::DescribeLiveStreamRecordContentRequest& request) const; DescribeForbidPushStreamRoomListOutcome describeForbidPushStreamRoomList(const Model::DescribeForbidPushStreamRoomListRequest &request)const; void describeForbidPushStreamRoomListAsync(const Model::DescribeForbidPushStreamRoomListRequest& request, const DescribeForbidPushStreamRoomListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeForbidPushStreamRoomListOutcomeCallable describeForbidPushStreamRoomListCallable(const Model::DescribeForbidPushStreamRoomListRequest& request) const; CreateCasterOutcome createCaster(const Model::CreateCasterRequest &request)const; void createCasterAsync(const Model::CreateCasterRequest& request, const CreateCasterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCasterOutcomeCallable createCasterCallable(const Model::CreateCasterRequest& request) const; + DescribeLiveStreamRecordContentOutcome describeLiveStreamRecordContent(const Model::DescribeLiveStreamRecordContentRequest &request)const; + void describeLiveStreamRecordContentAsync(const Model::DescribeLiveStreamRecordContentRequest& request, const DescribeLiveStreamRecordContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveStreamRecordContentOutcomeCallable describeLiveStreamRecordContentCallable(const Model::DescribeLiveStreamRecordContentRequest& request) const; DescribeCasterLayoutsOutcome describeCasterLayouts(const Model::DescribeCasterLayoutsRequest &request)const; void describeCasterLayoutsAsync(const Model::DescribeCasterLayoutsRequest& request, const DescribeCasterLayoutsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCasterLayoutsOutcomeCallable describeCasterLayoutsCallable(const Model::DescribeCasterLayoutsRequest& request) const; AddLiveSnapshotDetectPornConfigOutcome addLiveSnapshotDetectPornConfig(const Model::AddLiveSnapshotDetectPornConfigRequest &request)const; void addLiveSnapshotDetectPornConfigAsync(const Model::AddLiveSnapshotDetectPornConfigRequest& request, const AddLiveSnapshotDetectPornConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveSnapshotDetectPornConfigOutcomeCallable addLiveSnapshotDetectPornConfigCallable(const Model::AddLiveSnapshotDetectPornConfigRequest& request) const; - SetCasterChannelOutcome setCasterChannel(const Model::SetCasterChannelRequest &request)const; - void setCasterChannelAsync(const Model::SetCasterChannelRequest& request, const SetCasterChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetCasterChannelOutcomeCallable setCasterChannelCallable(const Model::SetCasterChannelRequest& request) const; UpdateLiveRecordNotifyConfigOutcome updateLiveRecordNotifyConfig(const Model::UpdateLiveRecordNotifyConfigRequest &request)const; void updateLiveRecordNotifyConfigAsync(const Model::UpdateLiveRecordNotifyConfigRequest& request, const UpdateLiveRecordNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateLiveRecordNotifyConfigOutcomeCallable updateLiveRecordNotifyConfigCallable(const Model::UpdateLiveRecordNotifyConfigRequest& request) const; + SetCasterChannelOutcome setCasterChannel(const Model::SetCasterChannelRequest &request)const; + void setCasterChannelAsync(const Model::SetCasterChannelRequest& request, const SetCasterChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetCasterChannelOutcomeCallable setCasterChannelCallable(const Model::SetCasterChannelRequest& request) const; DescribeLiveSnapshotConfigOutcome describeLiveSnapshotConfig(const Model::DescribeLiveSnapshotConfigRequest &request)const; void describeLiveSnapshotConfigAsync(const Model::DescribeLiveSnapshotConfigRequest& request, const DescribeLiveSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveSnapshotConfigOutcomeCallable describeLiveSnapshotConfigCallable(const Model::DescribeLiveSnapshotConfigRequest& request) const; @@ -1149,12 +1170,12 @@ namespace AlibabaCloud DescribeLiveDomainTrafficDataOutcome describeLiveDomainTrafficData(const Model::DescribeLiveDomainTrafficDataRequest &request)const; void describeLiveDomainTrafficDataAsync(const Model::DescribeLiveDomainTrafficDataRequest& request, const DescribeLiveDomainTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainTrafficDataOutcomeCallable describeLiveDomainTrafficDataCallable(const Model::DescribeLiveDomainTrafficDataRequest& request) const; - StopLiveDomainOutcome stopLiveDomain(const Model::StopLiveDomainRequest &request)const; - void stopLiveDomainAsync(const Model::StopLiveDomainRequest& request, const StopLiveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopLiveDomainOutcomeCallable stopLiveDomainCallable(const Model::StopLiveDomainRequest& request) const; ApplyBoardTokenOutcome applyBoardToken(const Model::ApplyBoardTokenRequest &request)const; void applyBoardTokenAsync(const Model::ApplyBoardTokenRequest& request, const ApplyBoardTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApplyBoardTokenOutcomeCallable applyBoardTokenCallable(const Model::ApplyBoardTokenRequest& request) const; + StopLiveDomainOutcome stopLiveDomain(const Model::StopLiveDomainRequest &request)const; + void stopLiveDomainAsync(const Model::StopLiveDomainRequest& request, const StopLiveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopLiveDomainOutcomeCallable stopLiveDomainCallable(const Model::StopLiveDomainRequest& request) const; DescribeLiveStreamHistoryUserNumOutcome describeLiveStreamHistoryUserNum(const Model::DescribeLiveStreamHistoryUserNumRequest &request)const; void describeLiveStreamHistoryUserNumAsync(const Model::DescribeLiveStreamHistoryUserNumRequest& request, const DescribeLiveStreamHistoryUserNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamHistoryUserNumOutcomeCallable describeLiveStreamHistoryUserNumCallable(const Model::DescribeLiveStreamHistoryUserNumRequest& request) const; @@ -1206,24 +1227,24 @@ namespace AlibabaCloud DescribeBoardSnapshotOutcome describeBoardSnapshot(const Model::DescribeBoardSnapshotRequest &request)const; void describeBoardSnapshotAsync(const Model::DescribeBoardSnapshotRequest& request, const DescribeBoardSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBoardSnapshotOutcomeCallable describeBoardSnapshotCallable(const Model::DescribeBoardSnapshotRequest& request) const; - ForbidLiveStreamOutcome forbidLiveStream(const Model::ForbidLiveStreamRequest &request)const; - void forbidLiveStreamAsync(const Model::ForbidLiveStreamRequest& request, const ForbidLiveStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ForbidLiveStreamOutcomeCallable forbidLiveStreamCallable(const Model::ForbidLiveStreamRequest& request) const; SetLiveDomainCertificateOutcome setLiveDomainCertificate(const Model::SetLiveDomainCertificateRequest &request)const; void setLiveDomainCertificateAsync(const Model::SetLiveDomainCertificateRequest& request, const SetLiveDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLiveDomainCertificateOutcomeCallable setLiveDomainCertificateCallable(const Model::SetLiveDomainCertificateRequest& request) const; - DescribeRecordsOutcome describeRecords(const Model::DescribeRecordsRequest &request)const; - void describeRecordsAsync(const Model::DescribeRecordsRequest& request, const DescribeRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRecordsOutcomeCallable describeRecordsCallable(const Model::DescribeRecordsRequest& request) const; + ForbidLiveStreamOutcome forbidLiveStream(const Model::ForbidLiveStreamRequest &request)const; + void forbidLiveStreamAsync(const Model::ForbidLiveStreamRequest& request, const ForbidLiveStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ForbidLiveStreamOutcomeCallable forbidLiveStreamCallable(const Model::ForbidLiveStreamRequest& request) const; SetLiveStreamDelayConfigOutcome setLiveStreamDelayConfig(const Model::SetLiveStreamDelayConfigRequest &request)const; void setLiveStreamDelayConfigAsync(const Model::SetLiveStreamDelayConfigRequest& request, const SetLiveStreamDelayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLiveStreamDelayConfigOutcomeCallable setLiveStreamDelayConfigCallable(const Model::SetLiveStreamDelayConfigRequest& request) const; - DescribeLiveStreamOptimizedFeatureConfigOutcome describeLiveStreamOptimizedFeatureConfig(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest &request)const; - void describeLiveStreamOptimizedFeatureConfigAsync(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest& request, const DescribeLiveStreamOptimizedFeatureConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable describeLiveStreamOptimizedFeatureConfigCallable(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest& request) const; + DescribeRecordsOutcome describeRecords(const Model::DescribeRecordsRequest &request)const; + void describeRecordsAsync(const Model::DescribeRecordsRequest& request, const DescribeRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecordsOutcomeCallable describeRecordsCallable(const Model::DescribeRecordsRequest& request) const; DeleteCasterEpisodeGroupOutcome deleteCasterEpisodeGroup(const Model::DeleteCasterEpisodeGroupRequest &request)const; void deleteCasterEpisodeGroupAsync(const Model::DeleteCasterEpisodeGroupRequest& request, const DeleteCasterEpisodeGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCasterEpisodeGroupOutcomeCallable deleteCasterEpisodeGroupCallable(const Model::DeleteCasterEpisodeGroupRequest& request) const; + DescribeLiveStreamOptimizedFeatureConfigOutcome describeLiveStreamOptimizedFeatureConfig(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest &request)const; + void describeLiveStreamOptimizedFeatureConfigAsync(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest& request, const DescribeLiveStreamOptimizedFeatureConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable describeLiveStreamOptimizedFeatureConfigCallable(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest& request) const; DescribeCasterVideoResourcesOutcome describeCasterVideoResources(const Model::DescribeCasterVideoResourcesRequest &request)const; void describeCasterVideoResourcesAsync(const Model::DescribeCasterVideoResourcesRequest& request, const DescribeCasterVideoResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCasterVideoResourcesOutcomeCallable describeCasterVideoResourcesCallable(const Model::DescribeCasterVideoResourcesRequest& request) const; @@ -1239,51 +1260,51 @@ namespace AlibabaCloud EffectCasterVideoResourceOutcome effectCasterVideoResource(const Model::EffectCasterVideoResourceRequest &request)const; void effectCasterVideoResourceAsync(const Model::EffectCasterVideoResourceRequest& request, const EffectCasterVideoResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EffectCasterVideoResourceOutcomeCallable effectCasterVideoResourceCallable(const Model::EffectCasterVideoResourceRequest& request) const; - DescribeUpPeakPublishStreamDataOutcome describeUpPeakPublishStreamData(const Model::DescribeUpPeakPublishStreamDataRequest &request)const; - void describeUpPeakPublishStreamDataAsync(const Model::DescribeUpPeakPublishStreamDataRequest& request, const DescribeUpPeakPublishStreamDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUpPeakPublishStreamDataOutcomeCallable describeUpPeakPublishStreamDataCallable(const Model::DescribeUpPeakPublishStreamDataRequest& request) const; AddLiveAppSnapshotConfigOutcome addLiveAppSnapshotConfig(const Model::AddLiveAppSnapshotConfigRequest &request)const; void addLiveAppSnapshotConfigAsync(const Model::AddLiveAppSnapshotConfigRequest& request, const AddLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveAppSnapshotConfigOutcomeCallable addLiveAppSnapshotConfigCallable(const Model::AddLiveAppSnapshotConfigRequest& request) const; + DescribeUpPeakPublishStreamDataOutcome describeUpPeakPublishStreamData(const Model::DescribeUpPeakPublishStreamDataRequest &request)const; + void describeUpPeakPublishStreamDataAsync(const Model::DescribeUpPeakPublishStreamDataRequest& request, const DescribeUpPeakPublishStreamDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUpPeakPublishStreamDataOutcomeCallable describeUpPeakPublishStreamDataCallable(const Model::DescribeUpPeakPublishStreamDataRequest& request) const; DeleteCasterComponentOutcome deleteCasterComponent(const Model::DeleteCasterComponentRequest &request)const; void deleteCasterComponentAsync(const Model::DeleteCasterComponentRequest& request, const DeleteCasterComponentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCasterComponentOutcomeCallable deleteCasterComponentCallable(const Model::DeleteCasterComponentRequest& request) const; DeleteLiveDomainOutcome deleteLiveDomain(const Model::DeleteLiveDomainRequest &request)const; void deleteLiveDomainAsync(const Model::DeleteLiveDomainRequest& request, const DeleteLiveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveDomainOutcomeCallable deleteLiveDomainCallable(const Model::DeleteLiveDomainRequest& request) const; + AddLiveDomainMappingOutcome addLiveDomainMapping(const Model::AddLiveDomainMappingRequest &request)const; + void addLiveDomainMappingAsync(const Model::AddLiveDomainMappingRequest& request, const AddLiveDomainMappingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddLiveDomainMappingOutcomeCallable addLiveDomainMappingCallable(const Model::AddLiveDomainMappingRequest& request) const; RealTimeRecordCommandOutcome realTimeRecordCommand(const Model::RealTimeRecordCommandRequest &request)const; void realTimeRecordCommandAsync(const Model::RealTimeRecordCommandRequest& request, const RealTimeRecordCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RealTimeRecordCommandOutcomeCallable realTimeRecordCommandCallable(const Model::RealTimeRecordCommandRequest& request) const; SetCasterConfigOutcome setCasterConfig(const Model::SetCasterConfigRequest &request)const; void setCasterConfigAsync(const Model::SetCasterConfigRequest& request, const SetCasterConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetCasterConfigOutcomeCallable setCasterConfigCallable(const Model::SetCasterConfigRequest& request) const; - AddLiveDomainMappingOutcome addLiveDomainMapping(const Model::AddLiveDomainMappingRequest &request)const; - void addLiveDomainMappingAsync(const Model::AddLiveDomainMappingRequest& request, const AddLiveDomainMappingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddLiveDomainMappingOutcomeCallable addLiveDomainMappingCallable(const Model::AddLiveDomainMappingRequest& request) const; StartCasterOutcome startCaster(const Model::StartCasterRequest &request)const; void startCasterAsync(const Model::StartCasterRequest& request, const StartCasterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartCasterOutcomeCallable startCasterCallable(const Model::StartCasterRequest& request) const; UpdateBoardOutcome updateBoard(const Model::UpdateBoardRequest &request)const; void updateBoardAsync(const Model::UpdateBoardRequest& request, const UpdateBoardAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateBoardOutcomeCallable updateBoardCallable(const Model::UpdateBoardRequest& request) const; - ResumeLiveStreamOutcome resumeLiveStream(const Model::ResumeLiveStreamRequest &request)const; - void resumeLiveStreamAsync(const Model::ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumeLiveStreamOutcomeCallable resumeLiveStreamCallable(const Model::ResumeLiveStreamRequest& request) const; AddCasterLayoutOutcome addCasterLayout(const Model::AddCasterLayoutRequest &request)const; void addCasterLayoutAsync(const Model::AddCasterLayoutRequest& request, const AddCasterLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCasterLayoutOutcomeCallable addCasterLayoutCallable(const Model::AddCasterLayoutRequest& request) const; + ResumeLiveStreamOutcome resumeLiveStream(const Model::ResumeLiveStreamRequest &request)const; + void resumeLiveStreamAsync(const Model::ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeLiveStreamOutcomeCallable resumeLiveStreamCallable(const Model::ResumeLiveStreamRequest& request) const; JoinBoardOutcome joinBoard(const Model::JoinBoardRequest &request)const; void joinBoardAsync(const Model::JoinBoardRequest& request, const JoinBoardAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; JoinBoardOutcomeCallable joinBoardCallable(const Model::JoinBoardRequest& request) const; DescribeLiveUserDomainsOutcome describeLiveUserDomains(const Model::DescribeLiveUserDomainsRequest &request)const; void describeLiveUserDomainsAsync(const Model::DescribeLiveUserDomainsRequest& request, const DescribeLiveUserDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveUserDomainsOutcomeCallable describeLiveUserDomainsCallable(const Model::DescribeLiveUserDomainsRequest& request) const; - ModifyCasterLayoutOutcome modifyCasterLayout(const Model::ModifyCasterLayoutRequest &request)const; - void modifyCasterLayoutAsync(const Model::ModifyCasterLayoutRequest& request, const ModifyCasterLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyCasterLayoutOutcomeCallable modifyCasterLayoutCallable(const Model::ModifyCasterLayoutRequest& request) const; StopCasterOutcome stopCaster(const Model::StopCasterRequest &request)const; void stopCasterAsync(const Model::StopCasterRequest& request, const StopCasterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopCasterOutcomeCallable stopCasterCallable(const Model::StopCasterRequest& request) const; + ModifyCasterLayoutOutcome modifyCasterLayout(const Model::ModifyCasterLayoutRequest &request)const; + void modifyCasterLayoutAsync(const Model::ModifyCasterLayoutRequest& request, const ModifyCasterLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCasterLayoutOutcomeCallable modifyCasterLayoutCallable(const Model::ModifyCasterLayoutRequest& request) const; DescribeLiveStreamsPublishListOutcome describeLiveStreamsPublishList(const Model::DescribeLiveStreamsPublishListRequest &request)const; void describeLiveStreamsPublishListAsync(const Model::DescribeLiveStreamsPublishListRequest& request, const DescribeLiveStreamsPublishListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsPublishListOutcomeCallable describeLiveStreamsPublishListCallable(const Model::DescribeLiveStreamsPublishListRequest& request) const; @@ -1299,6 +1320,9 @@ namespace AlibabaCloud AddLiveDomainOutcome addLiveDomain(const Model::AddLiveDomainRequest &request)const; void addLiveDomainAsync(const Model::AddLiveDomainRequest& request, const AddLiveDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveDomainOutcomeCallable addLiveDomainCallable(const Model::AddLiveDomainRequest& request) const; + DescribeLiveDomainOnlineUserNumOutcome describeLiveDomainOnlineUserNum(const Model::DescribeLiveDomainOnlineUserNumRequest &request)const; + void describeLiveDomainOnlineUserNumAsync(const Model::DescribeLiveDomainOnlineUserNumRequest& request, const DescribeLiveDomainOnlineUserNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainOnlineUserNumOutcomeCallable describeLiveDomainOnlineUserNumCallable(const Model::DescribeLiveDomainOnlineUserNumRequest& request) const; DeleteLiveAppRecordConfigOutcome deleteLiveAppRecordConfig(const Model::DeleteLiveAppRecordConfigRequest &request)const; void deleteLiveAppRecordConfigAsync(const Model::DeleteLiveAppRecordConfigRequest& request, const DeleteLiveAppRecordConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveAppRecordConfigOutcomeCallable deleteLiveAppRecordConfigCallable(const Model::DeleteLiveAppRecordConfigRequest& request) const; diff --git a/live/include/alibabacloud/live/model/AddLiveRecordVodConfigRequest.h b/live/include/alibabacloud/live/model/AddLiveRecordVodConfigRequest.h index af4daa079..508233307 100644 --- a/live/include/alibabacloud/live/model/AddLiveRecordVodConfigRequest.h +++ b/live/include/alibabacloud/live/model/AddLiveRecordVodConfigRequest.h @@ -35,32 +35,107 @@ namespace AlibabaCloud AddLiveRecordVodConfigRequest(); ~AddLiveRecordVodConfigRequest(); - std::string getAppName()const; - void setAppName(const std::string& appName); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); std::string getAutoCompose()const; void setAutoCompose(const std::string& autoCompose); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - int getCycleDuration()const; - void setCycleDuration(int cycleDuration); - long getOwnerId()const; - void setOwnerId(long ownerId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); std::string getComposeVodTranscodeGroupId()const; void setComposeVodTranscodeGroupId(const std::string& composeVodTranscodeGroupId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getEagleEyeRpcId()const; + void setEagleEyeRpcId(const std::string& eagleEyeRpcId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getStorageLocation()const; + void setStorageLocation(const std::string& storageLocation); + std::string getEagleEyeTraceId()const; + void setEagleEyeTraceId(const std::string& eagleEyeTraceId); + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); std::string getStreamName()const; void setStreamName(const std::string& streamName); std::string getVodTranscodeGroupId()const; void setVodTranscodeGroupId(const std::string& vodTranscodeGroupId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + int getCycleDuration()const; + void setCycleDuration(int cycleDuration); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEagleEyeUserData()const; + void setEagleEyeUserData(const std::string& eagleEyeUserData); private: - std::string appName_; + long callerParentId_; std::string autoCompose_; - std::string domainName_; - int cycleDuration_; - long ownerId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; std::string composeVodTranscodeGroupId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string eagleEyeRpcId_; + std::string accessKeyId_; + std::string storageLocation_; + std::string eagleEyeTraceId_; + std::string appName_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; std::string streamName_; std::string vodTranscodeGroupId_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + int cycleDuration_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string eagleEyeUserData_; }; } diff --git a/live/include/alibabacloud/live/model/DeleteLiveRecordVodConfigRequest.h b/live/include/alibabacloud/live/model/DeleteLiveRecordVodConfigRequest.h index 1daf238d1..e236d884c 100644 --- a/live/include/alibabacloud/live/model/DeleteLiveRecordVodConfigRequest.h +++ b/live/include/alibabacloud/live/model/DeleteLiveRecordVodConfigRequest.h @@ -35,26 +35,92 @@ namespace AlibabaCloud DeleteLiveRecordVodConfigRequest(); ~DeleteLiveRecordVodConfigRequest(); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getEagleEyeRpcId()const; + void setEagleEyeRpcId(const std::string& eagleEyeRpcId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getEagleEyeTraceId()const; + void setEagleEyeTraceId(const std::string& eagleEyeTraceId); std::string getAppName()const; void setAppName(const std::string& appName); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); std::string getStreamName()const; void setStreamName(const std::string& streamName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEagleEyeUserData()const; + void setEagleEyeUserData(const std::string& eagleEyeUserData); private: + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string eagleEyeRpcId_; + std::string accessKeyId_; + std::string eagleEyeTraceId_; std::string appName_; std::string securityToken_; - std::string domainName_; - long ownerId_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; std::string streamName_; - std::string accessKeyId_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string eagleEyeUserData_; }; } diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h new file mode 100644 index 000000000..483f646bc --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.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_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainBpsDataByTimeStampRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainBpsDataByTimeStampRequest(); + ~DescribeLiveDomainBpsDataByTimeStampRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getLocationNames()const; + void setLocationNames(const std::string& locationNames); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getEagleEyeRpcId()const; + void setEagleEyeRpcId(const std::string& eagleEyeRpcId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getEagleEyeTraceId()const; + void setEagleEyeTraceId(const std::string& eagleEyeTraceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getIspNames()const; + void setIspNames(const std::string& ispNames); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEagleEyeUserData()const; + void setEagleEyeUserData(const std::string& eagleEyeUserData); + std::string getTimePoint()const; + void setTimePoint(const std::string& timePoint); + + private: + long callerParentId_; + std::string locationNames_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string eagleEyeRpcId_; + std::string accessKeyId_; + std::string eagleEyeTraceId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string ispNames_; + std::string app_ip_; + std::string popProduct_; + std::string product_; + std::string domainName_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string eagleEyeUserData_; + std::string timePoint_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h new file mode 100644 index 000000000..b21046826 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainBpsDataByTimeStampResult : public ServiceResult + { + public: + struct BpsDataModel + { + std::string ispName; + long bps; + std::string timeStamp; + std::string locationName; + }; + + + DescribeLiveDomainBpsDataByTimeStampResult(); + explicit DescribeLiveDomainBpsDataByTimeStampResult(const std::string &payload); + ~DescribeLiveDomainBpsDataByTimeStampResult(); + std::vector getBpsDataList()const; + std::string getDomainName()const; + std::string getTimeStamp()const; + + protected: + void parse(const std::string &payload); + private: + std::vector bpsDataList_; + std::string domainName_; + std::string timeStamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.h new file mode 100644 index 000000000..00202a914 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.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_LIVE_MODEL_DESCRIBELIVEDOMAINFRAMERATEANDBITRATEDATAREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINFRAMERATEANDBITRATEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainFrameRateAndBitRateDataRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainFrameRateAndBitRateDataRequest(); + ~DescribeLiveDomainFrameRateAndBitRateDataRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getCatalog()const; + void setCatalog(const std::string& catalog); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getEagleEyeRpcId()const; + void setEagleEyeRpcId(const std::string& eagleEyeRpcId); + std::string getQueryTime()const; + void setQueryTime(const std::string& queryTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getEagleEyeTraceId()const; + void setEagleEyeTraceId(const std::string& eagleEyeTraceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getHost()const; + void setHost(const std::string& host); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEagleEyeUserData()const; + void setEagleEyeUserData(const std::string& eagleEyeUserData); + std::string getFields()const; + void setFields(const std::string& fields); + + private: + long callerParentId_; + std::string catalog_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string eagleEyeRpcId_; + std::string queryTime_; + std::string accessKeyId_; + std::string eagleEyeTraceId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string host_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string eagleEyeUserData_; + std::string fields_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINFRAMERATEANDBITRATEDATAREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataResult.h new file mode 100644 index 000000000..744c863d1 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINFRAMERATEANDBITRATEDATARESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINFRAMERATEANDBITRATEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainFrameRateAndBitRateDataResult : public ServiceResult + { + public: + struct FrameRateAndBitRateInfo + { + float videoFrameRate; + float audioFrameRate; + float bitRate; + std::string streamUrl; + }; + + + DescribeLiveDomainFrameRateAndBitRateDataResult(); + explicit DescribeLiveDomainFrameRateAndBitRateDataResult(const std::string &payload); + ~DescribeLiveDomainFrameRateAndBitRateDataResult(); + std::vector getFrameRateAndBitRateInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector frameRateAndBitRateInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINFRAMERATEANDBITRATEDATARESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumRequest.h new file mode 100644 index 000000000..731f7d80f --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINONLINEUSERNUMREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINONLINEUSERNUMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainOnlineUserNumRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainOnlineUserNumRequest(); + ~DescribeLiveDomainOnlineUserNumRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getEagleEyeRpcId()const; + void setEagleEyeRpcId(const std::string& eagleEyeRpcId); + std::string getQueryTime()const; + void setQueryTime(const std::string& queryTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getEagleEyeTraceId()const; + void setEagleEyeTraceId(const std::string& eagleEyeTraceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEagleEyeUserData()const; + void setEagleEyeUserData(const std::string& eagleEyeUserData); + + private: + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string eagleEyeRpcId_; + std::string queryTime_; + std::string accessKeyId_; + std::string eagleEyeTraceId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string eagleEyeUserData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINONLINEUSERNUMREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumResult.h new file mode 100644 index 000000000..82176a4ec --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINONLINEUSERNUMRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINONLINEUSERNUMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainOnlineUserNumResult : public ServiceResult + { + public: + struct LiveStreamOnlineUserNumInfo + { + struct Info + { + std::string transcodeTemplate; + long userNumber; + }; + std::string streamName; + std::vector infos; + }; + + + DescribeLiveDomainOnlineUserNumResult(); + explicit DescribeLiveDomainOnlineUserNumResult(const std::string &payload); + ~DescribeLiveDomainOnlineUserNumResult(); + int getStreamCount()const; + std::vector getOnlineUserInfo()const; + int getUserCount()const; + + protected: + void parse(const std::string &payload); + private: + int streamCount_; + std::vector onlineUserInfo_; + int userCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINONLINEUSERNUMRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveRecordVodConfigsRequest.h b/live/include/alibabacloud/live/model/DescribeLiveRecordVodConfigsRequest.h index 9eef85072..ea954d2f8 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveRecordVodConfigsRequest.h +++ b/live/include/alibabacloud/live/model/DescribeLiveRecordVodConfigsRequest.h @@ -35,26 +35,98 @@ namespace AlibabaCloud DescribeLiveRecordVodConfigsRequest(); ~DescribeLiveRecordVodConfigsRequest(); - std::string getAppName()const; - void setAppName(const std::string& appName); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - long getPageSize()const; - void setPageSize(long pageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); long getPageNum()const; void setPageNum(long pageNum); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getEagleEyeRpcId()const; + void setEagleEyeRpcId(const std::string& eagleEyeRpcId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getEagleEyeTraceId()const; + void setEagleEyeTraceId(const std::string& eagleEyeTraceId); + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); std::string getStreamName()const; void setStreamName(const std::string& streamName); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEagleEyeUserData()const; + void setEagleEyeUserData(const std::string& eagleEyeUserData); private: - std::string appName_; - std::string domainName_; - long pageSize_; - long ownerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; long pageNum_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string eagleEyeRpcId_; + std::string accessKeyId_; + std::string eagleEyeTraceId_; + std::string appName_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; std::string streamName_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string eagleEyeUserData_; }; } diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index 0ce42b9b9..20d11ce00 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -87,42 +87,6 @@ LiveClient::StartBoardRecordOutcomeCallable LiveClient::startBoardRecordCallable return task->get_future(); } -LiveClient::DescribeRoomListOutcome LiveClient::describeRoomList(const DescribeRoomListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRoomListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRoomListOutcome(DescribeRoomListResult(outcome.result())); - else - return DescribeRoomListOutcome(outcome.error()); -} - -void LiveClient::describeRoomListAsync(const DescribeRoomListRequest& request, const DescribeRoomListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRoomList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeRoomListOutcomeCallable LiveClient::describeRoomListCallable(const DescribeRoomListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRoomList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeLiveRecordNotifyConfigOutcome LiveClient::describeLiveRecordNotifyConfig(const DescribeLiveRecordNotifyConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +123,42 @@ LiveClient::DescribeLiveRecordNotifyConfigOutcomeCallable LiveClient::describeLi return task->get_future(); } +LiveClient::DescribeRoomListOutcome LiveClient::describeRoomList(const DescribeRoomListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRoomListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRoomListOutcome(DescribeRoomListResult(outcome.result())); + else + return DescribeRoomListOutcome(outcome.error()); +} + +void LiveClient::describeRoomListAsync(const DescribeRoomListRequest& request, const DescribeRoomListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRoomList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeRoomListOutcomeCallable LiveClient::describeRoomListCallable(const DescribeRoomListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRoomList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveDetectNotifyConfigOutcome LiveClient::describeLiveDetectNotifyConfig(const DescribeLiveDetectNotifyConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,42 +483,6 @@ LiveClient::UpdateCasterSceneConfigOutcomeCallable LiveClient::updateCasterScene return task->get_future(); } -LiveClient::DescribeLiveStreamTranscodeInfoOutcome LiveClient::describeLiveStreamTranscodeInfo(const DescribeLiveStreamTranscodeInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamTranscodeInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveStreamTranscodeInfoOutcome(DescribeLiveStreamTranscodeInfoResult(outcome.result())); - else - return DescribeLiveStreamTranscodeInfoOutcome(outcome.error()); -} - -void LiveClient::describeLiveStreamTranscodeInfoAsync(const DescribeLiveStreamTranscodeInfoRequest& request, const DescribeLiveStreamTranscodeInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveStreamTranscodeInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLiveStreamTranscodeInfoOutcomeCallable LiveClient::describeLiveStreamTranscodeInfoCallable(const DescribeLiveStreamTranscodeInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveStreamTranscodeInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeLiveStreamsOnlineListOutcome LiveClient::describeLiveStreamsOnlineList(const DescribeLiveStreamsOnlineListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +519,42 @@ LiveClient::DescribeLiveStreamsOnlineListOutcomeCallable LiveClient::describeLiv return task->get_future(); } +LiveClient::DescribeLiveStreamTranscodeInfoOutcome LiveClient::describeLiveStreamTranscodeInfo(const DescribeLiveStreamTranscodeInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveStreamTranscodeInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveStreamTranscodeInfoOutcome(DescribeLiveStreamTranscodeInfoResult(outcome.result())); + else + return DescribeLiveStreamTranscodeInfoOutcome(outcome.error()); +} + +void LiveClient::describeLiveStreamTranscodeInfoAsync(const DescribeLiveStreamTranscodeInfoRequest& request, const DescribeLiveStreamTranscodeInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveStreamTranscodeInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveStreamTranscodeInfoOutcomeCallable LiveClient::describeLiveStreamTranscodeInfoCallable(const DescribeLiveStreamTranscodeInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveStreamTranscodeInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteLiveSnapshotDetectPornConfigOutcome LiveClient::deleteLiveSnapshotDetectPornConfig(const DeleteLiveSnapshotDetectPornConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,42 +699,6 @@ LiveClient::DescribeLiveDomainTranscodeDataOutcomeCallable LiveClient::describeL return task->get_future(); } -LiveClient::DeleteLiveStreamTranscodeOutcome LiveClient::deleteLiveStreamTranscode(const DeleteLiveStreamTranscodeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteLiveStreamTranscodeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteLiveStreamTranscodeOutcome(DeleteLiveStreamTranscodeResult(outcome.result())); - else - return DeleteLiveStreamTranscodeOutcome(outcome.error()); -} - -void LiveClient::deleteLiveStreamTranscodeAsync(const DeleteLiveStreamTranscodeRequest& request, const DeleteLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteLiveStreamTranscode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DeleteLiveStreamTranscodeOutcomeCallable LiveClient::deleteLiveStreamTranscodeCallable(const DeleteLiveStreamTranscodeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteLiveStreamTranscode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DeleteCasterEpisodeOutcome LiveClient::deleteCasterEpisode(const DeleteCasterEpisodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +735,42 @@ LiveClient::DeleteCasterEpisodeOutcomeCallable LiveClient::deleteCasterEpisodeCa return task->get_future(); } +LiveClient::DeleteLiveStreamTranscodeOutcome LiveClient::deleteLiveStreamTranscode(const DeleteLiveStreamTranscodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLiveStreamTranscodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLiveStreamTranscodeOutcome(DeleteLiveStreamTranscodeResult(outcome.result())); + else + return DeleteLiveStreamTranscodeOutcome(outcome.error()); +} + +void LiveClient::deleteLiveStreamTranscodeAsync(const DeleteLiveStreamTranscodeRequest& request, const DeleteLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLiveStreamTranscode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DeleteLiveStreamTranscodeOutcomeCallable LiveClient::deleteLiveStreamTranscodeCallable(const DeleteLiveStreamTranscodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLiveStreamTranscode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeCasterRtcInfoOutcome LiveClient::describeCasterRtcInfo(const DescribeCasterRtcInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,42 +807,6 @@ LiveClient::DescribeCasterRtcInfoOutcomeCallable LiveClient::describeCasterRtcIn return task->get_future(); } -LiveClient::SetCasterSceneConfigOutcome LiveClient::setCasterSceneConfig(const SetCasterSceneConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetCasterSceneConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetCasterSceneConfigOutcome(SetCasterSceneConfigResult(outcome.result())); - else - return SetCasterSceneConfigOutcome(outcome.error()); -} - -void LiveClient::setCasterSceneConfigAsync(const SetCasterSceneConfigRequest& request, const SetCasterSceneConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setCasterSceneConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::SetCasterSceneConfigOutcomeCallable LiveClient::setCasterSceneConfigCallable(const SetCasterSceneConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setCasterSceneConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::AddTrancodeSEIOutcome LiveClient::addTrancodeSEI(const AddTrancodeSEIRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +843,42 @@ LiveClient::AddTrancodeSEIOutcomeCallable LiveClient::addTrancodeSEICallable(con return task->get_future(); } +LiveClient::SetCasterSceneConfigOutcome LiveClient::setCasterSceneConfig(const SetCasterSceneConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetCasterSceneConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetCasterSceneConfigOutcome(SetCasterSceneConfigResult(outcome.result())); + else + return SetCasterSceneConfigOutcome(outcome.error()); +} + +void LiveClient::setCasterSceneConfigAsync(const SetCasterSceneConfigRequest& request, const SetCasterSceneConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setCasterSceneConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::SetCasterSceneConfigOutcomeCallable LiveClient::setCasterSceneConfigCallable(const SetCasterSceneConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setCasterSceneConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteBoardOutcome LiveClient::deleteBoard(const DeleteBoardRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,42 +1095,6 @@ LiveClient::StartLiveIndexOutcomeCallable LiveClient::startLiveIndexCallable(con return task->get_future(); } -LiveClient::DescribeLiveTopDomainsByFlowOutcome LiveClient::describeLiveTopDomainsByFlow(const DescribeLiveTopDomainsByFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveTopDomainsByFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveTopDomainsByFlowOutcome(DescribeLiveTopDomainsByFlowResult(outcome.result())); - else - return DescribeLiveTopDomainsByFlowOutcome(outcome.error()); -} - -void LiveClient::describeLiveTopDomainsByFlowAsync(const DescribeLiveTopDomainsByFlowRequest& request, const DescribeLiveTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveTopDomainsByFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLiveTopDomainsByFlowOutcomeCallable LiveClient::describeLiveTopDomainsByFlowCallable(const DescribeLiveTopDomainsByFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveTopDomainsByFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::AddCasterEpisodeGroupOutcome LiveClient::addCasterEpisodeGroup(const AddCasterEpisodeGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,36 +1167,36 @@ LiveClient::DescribeLiveStreamRecordIndexFileOutcomeCallable LiveClient::describ return task->get_future(); } -LiveClient::DescribeLiveStreamTranscodeStreamNumOutcome LiveClient::describeLiveStreamTranscodeStreamNum(const DescribeLiveStreamTranscodeStreamNumRequest &request) const +LiveClient::DescribeLiveTopDomainsByFlowOutcome LiveClient::describeLiveTopDomainsByFlow(const DescribeLiveTopDomainsByFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamTranscodeStreamNumOutcome(endpointOutcome.error()); + return DescribeLiveTopDomainsByFlowOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeLiveStreamTranscodeStreamNumOutcome(DescribeLiveStreamTranscodeStreamNumResult(outcome.result())); + return DescribeLiveTopDomainsByFlowOutcome(DescribeLiveTopDomainsByFlowResult(outcome.result())); else - return DescribeLiveStreamTranscodeStreamNumOutcome(outcome.error()); + return DescribeLiveTopDomainsByFlowOutcome(outcome.error()); } -void LiveClient::describeLiveStreamTranscodeStreamNumAsync(const DescribeLiveStreamTranscodeStreamNumRequest& request, const DescribeLiveStreamTranscodeStreamNumAsyncHandler& handler, const std::shared_ptr& context) const +void LiveClient::describeLiveTopDomainsByFlowAsync(const DescribeLiveTopDomainsByFlowRequest& request, const DescribeLiveTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeLiveStreamTranscodeStreamNum(request), context); + handler(this, request, describeLiveTopDomainsByFlow(request), context); }; asyncExecute(new Runnable(fn)); } -LiveClient::DescribeLiveStreamTranscodeStreamNumOutcomeCallable LiveClient::describeLiveStreamTranscodeStreamNumCallable(const DescribeLiveStreamTranscodeStreamNumRequest &request) const +LiveClient::DescribeLiveTopDomainsByFlowOutcomeCallable LiveClient::describeLiveTopDomainsByFlowCallable(const DescribeLiveTopDomainsByFlowRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeLiveStreamTranscodeStreamNum(request); + return this->describeLiveTopDomainsByFlow(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1275,6 +1239,42 @@ LiveClient::DescribeCasterConfigOutcomeCallable LiveClient::describeCasterConfig return task->get_future(); } +LiveClient::DescribeLiveStreamTranscodeStreamNumOutcome LiveClient::describeLiveStreamTranscodeStreamNum(const DescribeLiveStreamTranscodeStreamNumRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveStreamTranscodeStreamNumOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveStreamTranscodeStreamNumOutcome(DescribeLiveStreamTranscodeStreamNumResult(outcome.result())); + else + return DescribeLiveStreamTranscodeStreamNumOutcome(outcome.error()); +} + +void LiveClient::describeLiveStreamTranscodeStreamNumAsync(const DescribeLiveStreamTranscodeStreamNumRequest& request, const DescribeLiveStreamTranscodeStreamNumAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveStreamTranscodeStreamNum(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveStreamTranscodeStreamNumOutcomeCallable LiveClient::describeLiveStreamTranscodeStreamNumCallable(const DescribeLiveStreamTranscodeStreamNumRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveStreamTranscodeStreamNum(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::CopyCasterOutcome LiveClient::copyCaster(const CopyCasterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,42 +1311,6 @@ LiveClient::CopyCasterOutcomeCallable LiveClient::copyCasterCallable(const CopyC return task->get_future(); } -LiveClient::AddCustomLiveStreamTranscodeOutcome LiveClient::addCustomLiveStreamTranscode(const AddCustomLiveStreamTranscodeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddCustomLiveStreamTranscodeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddCustomLiveStreamTranscodeOutcome(AddCustomLiveStreamTranscodeResult(outcome.result())); - else - return AddCustomLiveStreamTranscodeOutcome(outcome.error()); -} - -void LiveClient::addCustomLiveStreamTranscodeAsync(const AddCustomLiveStreamTranscodeRequest& request, const AddCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addCustomLiveStreamTranscode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::AddCustomLiveStreamTranscodeOutcomeCallable LiveClient::addCustomLiveStreamTranscodeCallable(const AddCustomLiveStreamTranscodeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addCustomLiveStreamTranscode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::SetLiveLazyPullStreamInfoConfigOutcome LiveClient::setLiveLazyPullStreamInfoConfig(const SetLiveLazyPullStreamInfoConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +1347,42 @@ LiveClient::SetLiveLazyPullStreamInfoConfigOutcomeCallable LiveClient::setLiveLa return task->get_future(); } +LiveClient::AddCustomLiveStreamTranscodeOutcome LiveClient::addCustomLiveStreamTranscode(const AddCustomLiveStreamTranscodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddCustomLiveStreamTranscodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddCustomLiveStreamTranscodeOutcome(AddCustomLiveStreamTranscodeResult(outcome.result())); + else + return AddCustomLiveStreamTranscodeOutcome(outcome.error()); +} + +void LiveClient::addCustomLiveStreamTranscodeAsync(const AddCustomLiveStreamTranscodeRequest& request, const AddCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addCustomLiveStreamTranscode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::AddCustomLiveStreamTranscodeOutcomeCallable LiveClient::addCustomLiveStreamTranscodeCallable(const AddCustomLiveStreamTranscodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addCustomLiveStreamTranscode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::AddCasterEpisodeOutcome LiveClient::addCasterEpisode(const AddCasterEpisodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +1995,42 @@ LiveClient::DeleteLiveAppSnapshotConfigOutcomeCallable LiveClient::deleteLiveApp return task->get_future(); } +LiveClient::DescribeLiveStreamsNotifyUrlConfigOutcome LiveClient::describeLiveStreamsNotifyUrlConfig(const DescribeLiveStreamsNotifyUrlConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveStreamsNotifyUrlConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveStreamsNotifyUrlConfigOutcome(DescribeLiveStreamsNotifyUrlConfigResult(outcome.result())); + else + return DescribeLiveStreamsNotifyUrlConfigOutcome(outcome.error()); +} + +void LiveClient::describeLiveStreamsNotifyUrlConfigAsync(const DescribeLiveStreamsNotifyUrlConfigRequest& request, const DescribeLiveStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveStreamsNotifyUrlConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveStreamsNotifyUrlConfigOutcomeCallable LiveClient::describeLiveStreamsNotifyUrlConfigCallable(const DescribeLiveStreamsNotifyUrlConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveStreamsNotifyUrlConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::ApplyRecordTokenOutcome LiveClient::applyRecordToken(const ApplyRecordTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,42 +2103,6 @@ LiveClient::UpdateCasterSceneAudioOutcomeCallable LiveClient::updateCasterSceneA return task->get_future(); } -LiveClient::DescribeLiveStreamsNotifyUrlConfigOutcome LiveClient::describeLiveStreamsNotifyUrlConfig(const DescribeLiveStreamsNotifyUrlConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamsNotifyUrlConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveStreamsNotifyUrlConfigOutcome(DescribeLiveStreamsNotifyUrlConfigResult(outcome.result())); - else - return DescribeLiveStreamsNotifyUrlConfigOutcome(outcome.error()); -} - -void LiveClient::describeLiveStreamsNotifyUrlConfigAsync(const DescribeLiveStreamsNotifyUrlConfigRequest& request, const DescribeLiveStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveStreamsNotifyUrlConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLiveStreamsNotifyUrlConfigOutcomeCallable LiveClient::describeLiveStreamsNotifyUrlConfigCallable(const DescribeLiveStreamsNotifyUrlConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveStreamsNotifyUrlConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeUpBpsPeakDataOutcome LiveClient::describeUpBpsPeakData(const DescribeUpBpsPeakDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,72 +2139,36 @@ LiveClient::DescribeUpBpsPeakDataOutcomeCallable LiveClient::describeUpBpsPeakDa return task->get_future(); } -LiveClient::UpdateLiveTopLevelDomainOutcome LiveClient::updateLiveTopLevelDomain(const UpdateLiveTopLevelDomainRequest &request) const +LiveClient::DescribeLiveDomainFrameRateAndBitRateDataOutcome LiveClient::describeLiveDomainFrameRateAndBitRateData(const DescribeLiveDomainFrameRateAndBitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateLiveTopLevelDomainOutcome(endpointOutcome.error()); + return DescribeLiveDomainFrameRateAndBitRateDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateLiveTopLevelDomainOutcome(UpdateLiveTopLevelDomainResult(outcome.result())); + return DescribeLiveDomainFrameRateAndBitRateDataOutcome(DescribeLiveDomainFrameRateAndBitRateDataResult(outcome.result())); else - return UpdateLiveTopLevelDomainOutcome(outcome.error()); + return DescribeLiveDomainFrameRateAndBitRateDataOutcome(outcome.error()); } -void LiveClient::updateLiveTopLevelDomainAsync(const UpdateLiveTopLevelDomainRequest& request, const UpdateLiveTopLevelDomainAsyncHandler& handler, const std::shared_ptr& context) const +void LiveClient::describeLiveDomainFrameRateAndBitRateDataAsync(const DescribeLiveDomainFrameRateAndBitRateDataRequest& request, const DescribeLiveDomainFrameRateAndBitRateDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateLiveTopLevelDomain(request), context); + handler(this, request, describeLiveDomainFrameRateAndBitRateData(request), context); }; asyncExecute(new Runnable(fn)); } -LiveClient::UpdateLiveTopLevelDomainOutcomeCallable LiveClient::updateLiveTopLevelDomainCallable(const UpdateLiveTopLevelDomainRequest &request) const +LiveClient::DescribeLiveDomainFrameRateAndBitRateDataOutcomeCallable LiveClient::describeLiveDomainFrameRateAndBitRateDataCallable(const DescribeLiveDomainFrameRateAndBitRateDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateLiveTopLevelDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -LiveClient::DeleteLivePullStreamInfoConfigOutcome LiveClient::deleteLivePullStreamInfoConfig(const DeleteLivePullStreamInfoConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteLivePullStreamInfoConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteLivePullStreamInfoConfigOutcome(DeleteLivePullStreamInfoConfigResult(outcome.result())); - else - return DeleteLivePullStreamInfoConfigOutcome(outcome.error()); -} - -void LiveClient::deleteLivePullStreamInfoConfigAsync(const DeleteLivePullStreamInfoConfigRequest& request, const DeleteLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteLivePullStreamInfoConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DeleteLivePullStreamInfoConfigOutcomeCallable LiveClient::deleteLivePullStreamInfoConfigCallable(const DeleteLivePullStreamInfoConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteLivePullStreamInfoConfig(request); + return this->describeLiveDomainFrameRateAndBitRateData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2247,36 +2211,72 @@ LiveClient::ModifyLiveDomainSchdmByPropertyOutcomeCallable LiveClient::modifyLiv return task->get_future(); } -LiveClient::DescribeBoardEventsOutcome LiveClient::describeBoardEvents(const DescribeBoardEventsRequest &request) const +LiveClient::DeleteLivePullStreamInfoConfigOutcome LiveClient::deleteLivePullStreamInfoConfig(const DeleteLivePullStreamInfoConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeBoardEventsOutcome(endpointOutcome.error()); + return DeleteLivePullStreamInfoConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeBoardEventsOutcome(DescribeBoardEventsResult(outcome.result())); + return DeleteLivePullStreamInfoConfigOutcome(DeleteLivePullStreamInfoConfigResult(outcome.result())); else - return DescribeBoardEventsOutcome(outcome.error()); + return DeleteLivePullStreamInfoConfigOutcome(outcome.error()); } -void LiveClient::describeBoardEventsAsync(const DescribeBoardEventsRequest& request, const DescribeBoardEventsAsyncHandler& handler, const std::shared_ptr& context) const +void LiveClient::deleteLivePullStreamInfoConfigAsync(const DeleteLivePullStreamInfoConfigRequest& request, const DeleteLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeBoardEvents(request), context); + handler(this, request, deleteLivePullStreamInfoConfig(request), context); }; asyncExecute(new Runnable(fn)); } -LiveClient::DescribeBoardEventsOutcomeCallable LiveClient::describeBoardEventsCallable(const DescribeBoardEventsRequest &request) const +LiveClient::DeleteLivePullStreamInfoConfigOutcomeCallable LiveClient::deleteLivePullStreamInfoConfigCallable(const DeleteLivePullStreamInfoConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeBoardEvents(request); + return this->deleteLivePullStreamInfoConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::UpdateLiveTopLevelDomainOutcome LiveClient::updateLiveTopLevelDomain(const UpdateLiveTopLevelDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLiveTopLevelDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLiveTopLevelDomainOutcome(UpdateLiveTopLevelDomainResult(outcome.result())); + else + return UpdateLiveTopLevelDomainOutcome(outcome.error()); +} + +void LiveClient::updateLiveTopLevelDomainAsync(const UpdateLiveTopLevelDomainRequest& request, const UpdateLiveTopLevelDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLiveTopLevelDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::UpdateLiveTopLevelDomainOutcomeCallable LiveClient::updateLiveTopLevelDomainCallable(const UpdateLiveTopLevelDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLiveTopLevelDomain(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2319,6 +2319,42 @@ LiveClient::ModifyCasterProgramOutcomeCallable LiveClient::modifyCasterProgramCa return task->get_future(); } +LiveClient::DescribeBoardEventsOutcome LiveClient::describeBoardEvents(const DescribeBoardEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBoardEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBoardEventsOutcome(DescribeBoardEventsResult(outcome.result())); + else + return DescribeBoardEventsOutcome(outcome.error()); +} + +void LiveClient::describeBoardEventsAsync(const DescribeBoardEventsRequest& request, const DescribeBoardEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBoardEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeBoardEventsOutcomeCallable LiveClient::describeBoardEventsCallable(const DescribeBoardEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBoardEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveCertificateDetailOutcome LiveClient::describeLiveCertificateDetail(const DescribeLiveCertificateDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,6 +2535,42 @@ LiveClient::StartLiveDomainOutcomeCallable LiveClient::startLiveDomainCallable(c return task->get_future(); } +LiveClient::DescribeCasterSceneAudioOutcome LiveClient::describeCasterSceneAudio(const DescribeCasterSceneAudioRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCasterSceneAudioOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCasterSceneAudioOutcome(DescribeCasterSceneAudioResult(outcome.result())); + else + return DescribeCasterSceneAudioOutcome(outcome.error()); +} + +void LiveClient::describeCasterSceneAudioAsync(const DescribeCasterSceneAudioRequest& request, const DescribeCasterSceneAudioAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCasterSceneAudio(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeCasterSceneAudioOutcomeCallable LiveClient::describeCasterSceneAudioCallable(const DescribeCasterSceneAudioRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCasterSceneAudio(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveStreamsBlockListOutcome LiveClient::describeLiveStreamsBlockList(const DescribeLiveStreamsBlockListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2535,36 +2607,36 @@ LiveClient::DescribeLiveStreamsBlockListOutcomeCallable LiveClient::describeLive return task->get_future(); } -LiveClient::DescribeCasterSceneAudioOutcome LiveClient::describeCasterSceneAudio(const DescribeCasterSceneAudioRequest &request) const +LiveClient::AddLiveStreamTranscodeOutcome LiveClient::addLiveStreamTranscode(const AddLiveStreamTranscodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCasterSceneAudioOutcome(endpointOutcome.error()); + return AddLiveStreamTranscodeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCasterSceneAudioOutcome(DescribeCasterSceneAudioResult(outcome.result())); + return AddLiveStreamTranscodeOutcome(AddLiveStreamTranscodeResult(outcome.result())); else - return DescribeCasterSceneAudioOutcome(outcome.error()); + return AddLiveStreamTranscodeOutcome(outcome.error()); } -void LiveClient::describeCasterSceneAudioAsync(const DescribeCasterSceneAudioRequest& request, const DescribeCasterSceneAudioAsyncHandler& handler, const std::shared_ptr& context) const +void LiveClient::addLiveStreamTranscodeAsync(const AddLiveStreamTranscodeRequest& request, const AddLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCasterSceneAudio(request), context); + handler(this, request, addLiveStreamTranscode(request), context); }; asyncExecute(new Runnable(fn)); } -LiveClient::DescribeCasterSceneAudioOutcomeCallable LiveClient::describeCasterSceneAudioCallable(const DescribeCasterSceneAudioRequest &request) const +LiveClient::AddLiveStreamTranscodeOutcomeCallable LiveClient::addLiveStreamTranscodeCallable(const AddLiveStreamTranscodeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCasterSceneAudio(request); + return this->addLiveStreamTranscode(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2643,42 +2715,6 @@ LiveClient::DescribeRoomKickoutUserListOutcomeCallable LiveClient::describeRoomK return task->get_future(); } -LiveClient::AddLiveStreamTranscodeOutcome LiveClient::addLiveStreamTranscode(const AddLiveStreamTranscodeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddLiveStreamTranscodeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddLiveStreamTranscodeOutcome(AddLiveStreamTranscodeResult(outcome.result())); - else - return AddLiveStreamTranscodeOutcome(outcome.error()); -} - -void LiveClient::addLiveStreamTranscodeAsync(const AddLiveStreamTranscodeRequest& request, const AddLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addLiveStreamTranscode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::AddLiveStreamTranscodeOutcomeCallable LiveClient::addLiveStreamTranscodeCallable(const AddLiveStreamTranscodeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addLiveStreamTranscode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::AddCasterEpisodeGroupContentOutcome LiveClient::addCasterEpisodeGroupContent(const AddCasterEpisodeGroupContentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3255,42 @@ LiveClient::DescribeLiveStreamSnapshotInfoOutcomeCallable LiveClient::describeLi return task->get_future(); } +LiveClient::DescribeLiveDomainBpsDataByTimeStampOutcome LiveClient::describeLiveDomainBpsDataByTimeStamp(const DescribeLiveDomainBpsDataByTimeStampRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainBpsDataByTimeStampOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainBpsDataByTimeStampOutcome(DescribeLiveDomainBpsDataByTimeStampResult(outcome.result())); + else + return DescribeLiveDomainBpsDataByTimeStampOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainBpsDataByTimeStampAsync(const DescribeLiveDomainBpsDataByTimeStampRequest& request, const DescribeLiveDomainBpsDataByTimeStampAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainBpsDataByTimeStamp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainBpsDataByTimeStampOutcomeCallable LiveClient::describeLiveDomainBpsDataByTimeStampCallable(const DescribeLiveDomainBpsDataByTimeStampRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainBpsDataByTimeStamp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::UpdateBoardCallbackOutcome LiveClient::updateBoardCallback(const UpdateBoardCallbackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,42 +3363,6 @@ LiveClient::DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable LiveClient return task->get_future(); } -LiveClient::DescribeLiveStreamRecordContentOutcome LiveClient::describeLiveStreamRecordContent(const DescribeLiveStreamRecordContentRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamRecordContentOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveStreamRecordContentOutcome(DescribeLiveStreamRecordContentResult(outcome.result())); - else - return DescribeLiveStreamRecordContentOutcome(outcome.error()); -} - -void LiveClient::describeLiveStreamRecordContentAsync(const DescribeLiveStreamRecordContentRequest& request, const DescribeLiveStreamRecordContentAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveStreamRecordContent(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLiveStreamRecordContentOutcomeCallable LiveClient::describeLiveStreamRecordContentCallable(const DescribeLiveStreamRecordContentRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveStreamRecordContent(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeForbidPushStreamRoomListOutcome LiveClient::describeForbidPushStreamRoomList(const DescribeForbidPushStreamRoomListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3399,6 +3435,42 @@ LiveClient::CreateCasterOutcomeCallable LiveClient::createCasterCallable(const C return task->get_future(); } +LiveClient::DescribeLiveStreamRecordContentOutcome LiveClient::describeLiveStreamRecordContent(const DescribeLiveStreamRecordContentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveStreamRecordContentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveStreamRecordContentOutcome(DescribeLiveStreamRecordContentResult(outcome.result())); + else + return DescribeLiveStreamRecordContentOutcome(outcome.error()); +} + +void LiveClient::describeLiveStreamRecordContentAsync(const DescribeLiveStreamRecordContentRequest& request, const DescribeLiveStreamRecordContentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveStreamRecordContent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveStreamRecordContentOutcomeCallable LiveClient::describeLiveStreamRecordContentCallable(const DescribeLiveStreamRecordContentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveStreamRecordContent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeCasterLayoutsOutcome LiveClient::describeCasterLayouts(const DescribeCasterLayoutsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3471,42 +3543,6 @@ LiveClient::AddLiveSnapshotDetectPornConfigOutcomeCallable LiveClient::addLiveSn return task->get_future(); } -LiveClient::SetCasterChannelOutcome LiveClient::setCasterChannel(const SetCasterChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetCasterChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetCasterChannelOutcome(SetCasterChannelResult(outcome.result())); - else - return SetCasterChannelOutcome(outcome.error()); -} - -void LiveClient::setCasterChannelAsync(const SetCasterChannelRequest& request, const SetCasterChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setCasterChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::SetCasterChannelOutcomeCallable LiveClient::setCasterChannelCallable(const SetCasterChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setCasterChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::UpdateLiveRecordNotifyConfigOutcome LiveClient::updateLiveRecordNotifyConfig(const UpdateLiveRecordNotifyConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3543,6 +3579,42 @@ LiveClient::UpdateLiveRecordNotifyConfigOutcomeCallable LiveClient::updateLiveRe return task->get_future(); } +LiveClient::SetCasterChannelOutcome LiveClient::setCasterChannel(const SetCasterChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetCasterChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetCasterChannelOutcome(SetCasterChannelResult(outcome.result())); + else + return SetCasterChannelOutcome(outcome.error()); +} + +void LiveClient::setCasterChannelAsync(const SetCasterChannelRequest& request, const SetCasterChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setCasterChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::SetCasterChannelOutcomeCallable LiveClient::setCasterChannelCallable(const SetCasterChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setCasterChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveSnapshotConfigOutcome LiveClient::describeLiveSnapshotConfig(const DescribeLiveSnapshotConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3687,42 +3759,6 @@ LiveClient::DescribeLiveDomainTrafficDataOutcomeCallable LiveClient::describeLiv return task->get_future(); } -LiveClient::StopLiveDomainOutcome LiveClient::stopLiveDomain(const StopLiveDomainRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopLiveDomainOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopLiveDomainOutcome(StopLiveDomainResult(outcome.result())); - else - return StopLiveDomainOutcome(outcome.error()); -} - -void LiveClient::stopLiveDomainAsync(const StopLiveDomainRequest& request, const StopLiveDomainAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopLiveDomain(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::StopLiveDomainOutcomeCallable LiveClient::stopLiveDomainCallable(const StopLiveDomainRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopLiveDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::ApplyBoardTokenOutcome LiveClient::applyBoardToken(const ApplyBoardTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3759,6 +3795,42 @@ LiveClient::ApplyBoardTokenOutcomeCallable LiveClient::applyBoardTokenCallable(c return task->get_future(); } +LiveClient::StopLiveDomainOutcome LiveClient::stopLiveDomain(const StopLiveDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopLiveDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopLiveDomainOutcome(StopLiveDomainResult(outcome.result())); + else + return StopLiveDomainOutcome(outcome.error()); +} + +void LiveClient::stopLiveDomainAsync(const StopLiveDomainRequest& request, const StopLiveDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopLiveDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::StopLiveDomainOutcomeCallable LiveClient::stopLiveDomainCallable(const StopLiveDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopLiveDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveStreamHistoryUserNumOutcome LiveClient::describeLiveStreamHistoryUserNum(const DescribeLiveStreamHistoryUserNumRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4371,42 +4443,6 @@ LiveClient::DescribeBoardSnapshotOutcomeCallable LiveClient::describeBoardSnapsh return task->get_future(); } -LiveClient::ForbidLiveStreamOutcome LiveClient::forbidLiveStream(const ForbidLiveStreamRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ForbidLiveStreamOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ForbidLiveStreamOutcome(ForbidLiveStreamResult(outcome.result())); - else - return ForbidLiveStreamOutcome(outcome.error()); -} - -void LiveClient::forbidLiveStreamAsync(const ForbidLiveStreamRequest& request, const ForbidLiveStreamAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, forbidLiveStream(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::ForbidLiveStreamOutcomeCallable LiveClient::forbidLiveStreamCallable(const ForbidLiveStreamRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->forbidLiveStream(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::SetLiveDomainCertificateOutcome LiveClient::setLiveDomainCertificate(const SetLiveDomainCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4443,36 +4479,36 @@ LiveClient::SetLiveDomainCertificateOutcomeCallable LiveClient::setLiveDomainCer return task->get_future(); } -LiveClient::DescribeRecordsOutcome LiveClient::describeRecords(const DescribeRecordsRequest &request) const +LiveClient::ForbidLiveStreamOutcome LiveClient::forbidLiveStream(const ForbidLiveStreamRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeRecordsOutcome(endpointOutcome.error()); + return ForbidLiveStreamOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeRecordsOutcome(DescribeRecordsResult(outcome.result())); + return ForbidLiveStreamOutcome(ForbidLiveStreamResult(outcome.result())); else - return DescribeRecordsOutcome(outcome.error()); + return ForbidLiveStreamOutcome(outcome.error()); } -void LiveClient::describeRecordsAsync(const DescribeRecordsRequest& request, const DescribeRecordsAsyncHandler& handler, const std::shared_ptr& context) const +void LiveClient::forbidLiveStreamAsync(const ForbidLiveStreamRequest& request, const ForbidLiveStreamAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeRecords(request), context); + handler(this, request, forbidLiveStream(request), context); }; asyncExecute(new Runnable(fn)); } -LiveClient::DescribeRecordsOutcomeCallable LiveClient::describeRecordsCallable(const DescribeRecordsRequest &request) const +LiveClient::ForbidLiveStreamOutcomeCallable LiveClient::forbidLiveStreamCallable(const ForbidLiveStreamRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeRecords(request); + return this->forbidLiveStream(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4515,36 +4551,36 @@ LiveClient::SetLiveStreamDelayConfigOutcomeCallable LiveClient::setLiveStreamDel return task->get_future(); } -LiveClient::DescribeLiveStreamOptimizedFeatureConfigOutcome LiveClient::describeLiveStreamOptimizedFeatureConfig(const DescribeLiveStreamOptimizedFeatureConfigRequest &request) const +LiveClient::DescribeRecordsOutcome LiveClient::describeRecords(const DescribeRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamOptimizedFeatureConfigOutcome(endpointOutcome.error()); + return DescribeRecordsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeLiveStreamOptimizedFeatureConfigOutcome(DescribeLiveStreamOptimizedFeatureConfigResult(outcome.result())); + return DescribeRecordsOutcome(DescribeRecordsResult(outcome.result())); else - return DescribeLiveStreamOptimizedFeatureConfigOutcome(outcome.error()); + return DescribeRecordsOutcome(outcome.error()); } -void LiveClient::describeLiveStreamOptimizedFeatureConfigAsync(const DescribeLiveStreamOptimizedFeatureConfigRequest& request, const DescribeLiveStreamOptimizedFeatureConfigAsyncHandler& handler, const std::shared_ptr& context) const +void LiveClient::describeRecordsAsync(const DescribeRecordsRequest& request, const DescribeRecordsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeLiveStreamOptimizedFeatureConfig(request), context); + handler(this, request, describeRecords(request), context); }; asyncExecute(new Runnable(fn)); } -LiveClient::DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable LiveClient::describeLiveStreamOptimizedFeatureConfigCallable(const DescribeLiveStreamOptimizedFeatureConfigRequest &request) const +LiveClient::DescribeRecordsOutcomeCallable LiveClient::describeRecordsCallable(const DescribeRecordsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeLiveStreamOptimizedFeatureConfig(request); + return this->describeRecords(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4587,6 +4623,42 @@ LiveClient::DeleteCasterEpisodeGroupOutcomeCallable LiveClient::deleteCasterEpis return task->get_future(); } +LiveClient::DescribeLiveStreamOptimizedFeatureConfigOutcome LiveClient::describeLiveStreamOptimizedFeatureConfig(const DescribeLiveStreamOptimizedFeatureConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveStreamOptimizedFeatureConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveStreamOptimizedFeatureConfigOutcome(DescribeLiveStreamOptimizedFeatureConfigResult(outcome.result())); + else + return DescribeLiveStreamOptimizedFeatureConfigOutcome(outcome.error()); +} + +void LiveClient::describeLiveStreamOptimizedFeatureConfigAsync(const DescribeLiveStreamOptimizedFeatureConfigRequest& request, const DescribeLiveStreamOptimizedFeatureConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveStreamOptimizedFeatureConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable LiveClient::describeLiveStreamOptimizedFeatureConfigCallable(const DescribeLiveStreamOptimizedFeatureConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveStreamOptimizedFeatureConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeCasterVideoResourcesOutcome LiveClient::describeCasterVideoResources(const DescribeCasterVideoResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4767,42 +4839,6 @@ LiveClient::EffectCasterVideoResourceOutcomeCallable LiveClient::effectCasterVid return task->get_future(); } -LiveClient::DescribeUpPeakPublishStreamDataOutcome LiveClient::describeUpPeakPublishStreamData(const DescribeUpPeakPublishStreamDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUpPeakPublishStreamDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUpPeakPublishStreamDataOutcome(DescribeUpPeakPublishStreamDataResult(outcome.result())); - else - return DescribeUpPeakPublishStreamDataOutcome(outcome.error()); -} - -void LiveClient::describeUpPeakPublishStreamDataAsync(const DescribeUpPeakPublishStreamDataRequest& request, const DescribeUpPeakPublishStreamDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUpPeakPublishStreamData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeUpPeakPublishStreamDataOutcomeCallable LiveClient::describeUpPeakPublishStreamDataCallable(const DescribeUpPeakPublishStreamDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUpPeakPublishStreamData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::AddLiveAppSnapshotConfigOutcome LiveClient::addLiveAppSnapshotConfig(const AddLiveAppSnapshotConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4839,6 +4875,42 @@ LiveClient::AddLiveAppSnapshotConfigOutcomeCallable LiveClient::addLiveAppSnapsh return task->get_future(); } +LiveClient::DescribeUpPeakPublishStreamDataOutcome LiveClient::describeUpPeakPublishStreamData(const DescribeUpPeakPublishStreamDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUpPeakPublishStreamDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUpPeakPublishStreamDataOutcome(DescribeUpPeakPublishStreamDataResult(outcome.result())); + else + return DescribeUpPeakPublishStreamDataOutcome(outcome.error()); +} + +void LiveClient::describeUpPeakPublishStreamDataAsync(const DescribeUpPeakPublishStreamDataRequest& request, const DescribeUpPeakPublishStreamDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUpPeakPublishStreamData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeUpPeakPublishStreamDataOutcomeCallable LiveClient::describeUpPeakPublishStreamDataCallable(const DescribeUpPeakPublishStreamDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUpPeakPublishStreamData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteCasterComponentOutcome LiveClient::deleteCasterComponent(const DeleteCasterComponentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,6 +4983,42 @@ LiveClient::DeleteLiveDomainOutcomeCallable LiveClient::deleteLiveDomainCallable return task->get_future(); } +LiveClient::AddLiveDomainMappingOutcome LiveClient::addLiveDomainMapping(const AddLiveDomainMappingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddLiveDomainMappingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddLiveDomainMappingOutcome(AddLiveDomainMappingResult(outcome.result())); + else + return AddLiveDomainMappingOutcome(outcome.error()); +} + +void LiveClient::addLiveDomainMappingAsync(const AddLiveDomainMappingRequest& request, const AddLiveDomainMappingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addLiveDomainMapping(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::AddLiveDomainMappingOutcomeCallable LiveClient::addLiveDomainMappingCallable(const AddLiveDomainMappingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addLiveDomainMapping(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::RealTimeRecordCommandOutcome LiveClient::realTimeRecordCommand(const RealTimeRecordCommandRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4983,42 +5091,6 @@ LiveClient::SetCasterConfigOutcomeCallable LiveClient::setCasterConfigCallable(c return task->get_future(); } -LiveClient::AddLiveDomainMappingOutcome LiveClient::addLiveDomainMapping(const AddLiveDomainMappingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddLiveDomainMappingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddLiveDomainMappingOutcome(AddLiveDomainMappingResult(outcome.result())); - else - return AddLiveDomainMappingOutcome(outcome.error()); -} - -void LiveClient::addLiveDomainMappingAsync(const AddLiveDomainMappingRequest& request, const AddLiveDomainMappingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addLiveDomainMapping(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::AddLiveDomainMappingOutcomeCallable LiveClient::addLiveDomainMappingCallable(const AddLiveDomainMappingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addLiveDomainMapping(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::StartCasterOutcome LiveClient::startCaster(const StartCasterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5091,42 +5163,6 @@ LiveClient::UpdateBoardOutcomeCallable LiveClient::updateBoardCallable(const Upd return task->get_future(); } -LiveClient::ResumeLiveStreamOutcome LiveClient::resumeLiveStream(const ResumeLiveStreamRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResumeLiveStreamOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResumeLiveStreamOutcome(ResumeLiveStreamResult(outcome.result())); - else - return ResumeLiveStreamOutcome(outcome.error()); -} - -void LiveClient::resumeLiveStreamAsync(const ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resumeLiveStream(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::ResumeLiveStreamOutcomeCallable LiveClient::resumeLiveStreamCallable(const ResumeLiveStreamRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resumeLiveStream(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::AddCasterLayoutOutcome LiveClient::addCasterLayout(const AddCasterLayoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5163,6 +5199,42 @@ LiveClient::AddCasterLayoutOutcomeCallable LiveClient::addCasterLayoutCallable(c return task->get_future(); } +LiveClient::ResumeLiveStreamOutcome LiveClient::resumeLiveStream(const ResumeLiveStreamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeLiveStreamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeLiveStreamOutcome(ResumeLiveStreamResult(outcome.result())); + else + return ResumeLiveStreamOutcome(outcome.error()); +} + +void LiveClient::resumeLiveStreamAsync(const ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeLiveStream(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ResumeLiveStreamOutcomeCallable LiveClient::resumeLiveStreamCallable(const ResumeLiveStreamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeLiveStream(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::JoinBoardOutcome LiveClient::joinBoard(const JoinBoardRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5235,42 +5307,6 @@ LiveClient::DescribeLiveUserDomainsOutcomeCallable LiveClient::describeLiveUserD return task->get_future(); } -LiveClient::ModifyCasterLayoutOutcome LiveClient::modifyCasterLayout(const ModifyCasterLayoutRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCasterLayoutOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCasterLayoutOutcome(ModifyCasterLayoutResult(outcome.result())); - else - return ModifyCasterLayoutOutcome(outcome.error()); -} - -void LiveClient::modifyCasterLayoutAsync(const ModifyCasterLayoutRequest& request, const ModifyCasterLayoutAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCasterLayout(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::ModifyCasterLayoutOutcomeCallable LiveClient::modifyCasterLayoutCallable(const ModifyCasterLayoutRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCasterLayout(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::StopCasterOutcome LiveClient::stopCaster(const StopCasterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5307,6 +5343,42 @@ LiveClient::StopCasterOutcomeCallable LiveClient::stopCasterCallable(const StopC return task->get_future(); } +LiveClient::ModifyCasterLayoutOutcome LiveClient::modifyCasterLayout(const ModifyCasterLayoutRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCasterLayoutOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCasterLayoutOutcome(ModifyCasterLayoutResult(outcome.result())); + else + return ModifyCasterLayoutOutcome(outcome.error()); +} + +void LiveClient::modifyCasterLayoutAsync(const ModifyCasterLayoutRequest& request, const ModifyCasterLayoutAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCasterLayout(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyCasterLayoutOutcomeCallable LiveClient::modifyCasterLayoutCallable(const ModifyCasterLayoutRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCasterLayout(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveStreamsPublishListOutcome LiveClient::describeLiveStreamsPublishList(const DescribeLiveStreamsPublishListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5487,6 +5559,42 @@ LiveClient::AddLiveDomainOutcomeCallable LiveClient::addLiveDomainCallable(const return task->get_future(); } +LiveClient::DescribeLiveDomainOnlineUserNumOutcome LiveClient::describeLiveDomainOnlineUserNum(const DescribeLiveDomainOnlineUserNumRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainOnlineUserNumOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainOnlineUserNumOutcome(DescribeLiveDomainOnlineUserNumResult(outcome.result())); + else + return DescribeLiveDomainOnlineUserNumOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainOnlineUserNumAsync(const DescribeLiveDomainOnlineUserNumRequest& request, const DescribeLiveDomainOnlineUserNumAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainOnlineUserNum(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainOnlineUserNumOutcomeCallable LiveClient::describeLiveDomainOnlineUserNumCallable(const DescribeLiveDomainOnlineUserNumRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainOnlineUserNum(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteLiveAppRecordConfigOutcome LiveClient::deleteLiveAppRecordConfig(const DeleteLiveAppRecordConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/AddCasterComponentResult.cc b/live/src/model/AddCasterComponentResult.cc index 5546cbc40..bbfce4c00 100644 --- a/live/src/model/AddCasterComponentResult.cc +++ b/live/src/model/AddCasterComponentResult.cc @@ -35,10 +35,13 @@ AddCasterComponentResult::~AddCasterComponentResult() void AddCasterComponentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ComponentId"].isNull()) componentId_ = value["ComponentId"].asString(); diff --git a/live/src/model/AddCasterEpisodeGroupContentResult.cc b/live/src/model/AddCasterEpisodeGroupContentResult.cc index 170c8abb6..3eba3d38f 100644 --- a/live/src/model/AddCasterEpisodeGroupContentResult.cc +++ b/live/src/model/AddCasterEpisodeGroupContentResult.cc @@ -35,10 +35,13 @@ AddCasterEpisodeGroupContentResult::~AddCasterEpisodeGroupContentResult() void AddCasterEpisodeGroupContentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItemIds = value["ItemIds"]["ItemId"]; for (const auto &item : allItemIds) diff --git a/live/src/model/AddCasterEpisodeGroupResult.cc b/live/src/model/AddCasterEpisodeGroupResult.cc index 91ee9d883..b24f51142 100644 --- a/live/src/model/AddCasterEpisodeGroupResult.cc +++ b/live/src/model/AddCasterEpisodeGroupResult.cc @@ -35,10 +35,13 @@ AddCasterEpisodeGroupResult::~AddCasterEpisodeGroupResult() void AddCasterEpisodeGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItemIds = value["ItemIds"]["ItemId"]; for (const auto &item : allItemIds) diff --git a/live/src/model/AddCasterEpisodeResult.cc b/live/src/model/AddCasterEpisodeResult.cc index 5222833cf..36cd1b6a1 100644 --- a/live/src/model/AddCasterEpisodeResult.cc +++ b/live/src/model/AddCasterEpisodeResult.cc @@ -35,10 +35,13 @@ AddCasterEpisodeResult::~AddCasterEpisodeResult() void AddCasterEpisodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["EpisodeId"].isNull()) episodeId_ = value["EpisodeId"].asString(); diff --git a/live/src/model/AddCasterLayoutResult.cc b/live/src/model/AddCasterLayoutResult.cc index f1b03153d..922168640 100644 --- a/live/src/model/AddCasterLayoutResult.cc +++ b/live/src/model/AddCasterLayoutResult.cc @@ -35,10 +35,13 @@ AddCasterLayoutResult::~AddCasterLayoutResult() void AddCasterLayoutResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["LayoutId"].isNull()) layoutId_ = value["LayoutId"].asString(); diff --git a/live/src/model/AddCasterProgramResult.cc b/live/src/model/AddCasterProgramResult.cc index b941474fe..7b0746d8c 100644 --- a/live/src/model/AddCasterProgramResult.cc +++ b/live/src/model/AddCasterProgramResult.cc @@ -35,10 +35,13 @@ AddCasterProgramResult::~AddCasterProgramResult() void AddCasterProgramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEpisodeIds = value["EpisodeIds"]["EpisodeId"]; for (auto value : allEpisodeIds) diff --git a/live/src/model/AddCasterVideoResourceResult.cc b/live/src/model/AddCasterVideoResourceResult.cc index ad140a0fb..aedeaecb2 100644 --- a/live/src/model/AddCasterVideoResourceResult.cc +++ b/live/src/model/AddCasterVideoResourceResult.cc @@ -35,10 +35,13 @@ AddCasterVideoResourceResult::~AddCasterVideoResourceResult() void AddCasterVideoResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ResourceId"].isNull()) resourceId_ = value["ResourceId"].asString(); diff --git a/live/src/model/AddCustomLiveStreamTranscodeResult.cc b/live/src/model/AddCustomLiveStreamTranscodeResult.cc index 9026368d0..9202ad2e3 100644 --- a/live/src/model/AddCustomLiveStreamTranscodeResult.cc +++ b/live/src/model/AddCustomLiveStreamTranscodeResult.cc @@ -35,10 +35,13 @@ AddCustomLiveStreamTranscodeResult::~AddCustomLiveStreamTranscodeResult() void AddCustomLiveStreamTranscodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveAppRecordConfigResult.cc b/live/src/model/AddLiveAppRecordConfigResult.cc index 6e9650fa8..bc74fec15 100644 --- a/live/src/model/AddLiveAppRecordConfigResult.cc +++ b/live/src/model/AddLiveAppRecordConfigResult.cc @@ -35,10 +35,13 @@ AddLiveAppRecordConfigResult::~AddLiveAppRecordConfigResult() void AddLiveAppRecordConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveAppSnapshotConfigResult.cc b/live/src/model/AddLiveAppSnapshotConfigResult.cc index fe526692d..49e590248 100644 --- a/live/src/model/AddLiveAppSnapshotConfigResult.cc +++ b/live/src/model/AddLiveAppSnapshotConfigResult.cc @@ -35,10 +35,13 @@ AddLiveAppSnapshotConfigResult::~AddLiveAppSnapshotConfigResult() void AddLiveAppSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveDetectNotifyConfigResult.cc b/live/src/model/AddLiveDetectNotifyConfigResult.cc index d3c8791be..a72b29bd2 100644 --- a/live/src/model/AddLiveDetectNotifyConfigResult.cc +++ b/live/src/model/AddLiveDetectNotifyConfigResult.cc @@ -35,10 +35,13 @@ AddLiveDetectNotifyConfigResult::~AddLiveDetectNotifyConfigResult() void AddLiveDetectNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveDomainMappingResult.cc b/live/src/model/AddLiveDomainMappingResult.cc index 1f9a0a40b..e91839708 100644 --- a/live/src/model/AddLiveDomainMappingResult.cc +++ b/live/src/model/AddLiveDomainMappingResult.cc @@ -35,10 +35,13 @@ AddLiveDomainMappingResult::~AddLiveDomainMappingResult() void AddLiveDomainMappingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveDomainResult.cc b/live/src/model/AddLiveDomainResult.cc index bb936fb0a..95bfbaa94 100644 --- a/live/src/model/AddLiveDomainResult.cc +++ b/live/src/model/AddLiveDomainResult.cc @@ -35,10 +35,13 @@ AddLiveDomainResult::~AddLiveDomainResult() void AddLiveDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLivePullStreamInfoConfigResult.cc b/live/src/model/AddLivePullStreamInfoConfigResult.cc index b0ec113c0..4eab40a39 100644 --- a/live/src/model/AddLivePullStreamInfoConfigResult.cc +++ b/live/src/model/AddLivePullStreamInfoConfigResult.cc @@ -35,10 +35,13 @@ AddLivePullStreamInfoConfigResult::~AddLivePullStreamInfoConfigResult() void AddLivePullStreamInfoConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveRecordNotifyConfigResult.cc b/live/src/model/AddLiveRecordNotifyConfigResult.cc index b0fbd6aa9..fd7b622b7 100644 --- a/live/src/model/AddLiveRecordNotifyConfigResult.cc +++ b/live/src/model/AddLiveRecordNotifyConfigResult.cc @@ -35,10 +35,13 @@ AddLiveRecordNotifyConfigResult::~AddLiveRecordNotifyConfigResult() void AddLiveRecordNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveRecordVodConfigRequest.cc b/live/src/model/AddLiveRecordVodConfigRequest.cc index b19025512..da778121a 100644 --- a/live/src/model/AddLiveRecordVodConfigRequest.cc +++ b/live/src/model/AddLiveRecordVodConfigRequest.cc @@ -25,15 +25,15 @@ AddLiveRecordVodConfigRequest::AddLiveRecordVodConfigRequest() : AddLiveRecordVodConfigRequest::~AddLiveRecordVodConfigRequest() {} -std::string AddLiveRecordVodConfigRequest::getAppName()const +long AddLiveRecordVodConfigRequest::getCallerParentId()const { - return appName_; + return callerParentId_; } -void AddLiveRecordVodConfigRequest::setAppName(const std::string& appName) +void AddLiveRecordVodConfigRequest::setCallerParentId(long callerParentId) { - appName_ = appName; - setCoreParameter("AppName", appName); + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string AddLiveRecordVodConfigRequest::getAutoCompose()const @@ -47,37 +47,26 @@ void AddLiveRecordVodConfigRequest::setAutoCompose(const std::string& autoCompos setCoreParameter("AutoCompose", autoCompose); } -std::string AddLiveRecordVodConfigRequest::getDomainName()const +bool AddLiveRecordVodConfigRequest::getProxy_original_security_transport()const { - return domainName_; + return proxy_original_security_transport_; } -void AddLiveRecordVodConfigRequest::setDomainName(const std::string& domainName) +void AddLiveRecordVodConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { - domainName_ = domainName; - setCoreParameter("DomainName", domainName); + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } -int AddLiveRecordVodConfigRequest::getCycleDuration()const +std::string AddLiveRecordVodConfigRequest::getProxy_original_source_ip()const { - return cycleDuration_; + return proxy_original_source_ip_; } -void AddLiveRecordVodConfigRequest::setCycleDuration(int cycleDuration) +void AddLiveRecordVodConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { - cycleDuration_ = cycleDuration; - setCoreParameter("CycleDuration", std::to_string(cycleDuration)); -} - -long AddLiveRecordVodConfigRequest::getOwnerId()const -{ - return ownerId_; -} - -void AddLiveRecordVodConfigRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string AddLiveRecordVodConfigRequest::getComposeVodTranscodeGroupId()const @@ -91,6 +80,138 @@ void AddLiveRecordVodConfigRequest::setComposeVodTranscodeGroupId(const std::str setCoreParameter("ComposeVodTranscodeGroupId", composeVodTranscodeGroupId); } +std::string AddLiveRecordVodConfigRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void AddLiveRecordVodConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string AddLiveRecordVodConfigRequest::getCallerType()const +{ + return callerType_; +} + +void AddLiveRecordVodConfigRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string AddLiveRecordVodConfigRequest::getEagleEyeRpcId()const +{ + return eagleEyeRpcId_; +} + +void AddLiveRecordVodConfigRequest::setEagleEyeRpcId(const std::string& eagleEyeRpcId) +{ + eagleEyeRpcId_ = eagleEyeRpcId; + setCoreParameter("EagleEyeRpcId", eagleEyeRpcId); +} + +std::string AddLiveRecordVodConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddLiveRecordVodConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string AddLiveRecordVodConfigRequest::getStorageLocation()const +{ + return storageLocation_; +} + +void AddLiveRecordVodConfigRequest::setStorageLocation(const std::string& storageLocation) +{ + storageLocation_ = storageLocation; + setCoreParameter("StorageLocation", storageLocation); +} + +std::string AddLiveRecordVodConfigRequest::getEagleEyeTraceId()const +{ + return eagleEyeTraceId_; +} + +void AddLiveRecordVodConfigRequest::setEagleEyeTraceId(const std::string& eagleEyeTraceId) +{ + eagleEyeTraceId_ = eagleEyeTraceId; + setCoreParameter("EagleEyeTraceId", eagleEyeTraceId); +} + +std::string AddLiveRecordVodConfigRequest::getAppName()const +{ + return appName_; +} + +void AddLiveRecordVodConfigRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setCoreParameter("AppName", appName); +} + +std::string AddLiveRecordVodConfigRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AddLiveRecordVodConfigRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string AddLiveRecordVodConfigRequest::getRegionId()const +{ + return regionId_; +} + +void AddLiveRecordVodConfigRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddLiveRecordVodConfigRequest::getRequestContent()const +{ + return requestContent_; +} + +void AddLiveRecordVodConfigRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string AddLiveRecordVodConfigRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void AddLiveRecordVodConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string AddLiveRecordVodConfigRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void AddLiveRecordVodConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + std::string AddLiveRecordVodConfigRequest::getStreamName()const { return streamName_; @@ -113,3 +234,157 @@ void AddLiveRecordVodConfigRequest::setVodTranscodeGroupId(const std::string& vo setCoreParameter("VodTranscodeGroupId", vodTranscodeGroupId); } +long AddLiveRecordVodConfigRequest::getCallerUid()const +{ + return callerUid_; +} + +void AddLiveRecordVodConfigRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string AddLiveRecordVodConfigRequest::getApp_ip()const +{ + return app_ip_; +} + +void AddLiveRecordVodConfigRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string AddLiveRecordVodConfigRequest::getPopProduct()const +{ + return popProduct_; +} + +void AddLiveRecordVodConfigRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string AddLiveRecordVodConfigRequest::getDomainName()const +{ + return domainName_; +} + +void AddLiveRecordVodConfigRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +int AddLiveRecordVodConfigRequest::getCycleDuration()const +{ + return cycleDuration_; +} + +void AddLiveRecordVodConfigRequest::setCycleDuration(int cycleDuration) +{ + cycleDuration_ = cycleDuration; + setCoreParameter("CycleDuration", std::to_string(cycleDuration)); +} + +std::string AddLiveRecordVodConfigRequest::getCallerBid()const +{ + return callerBid_; +} + +void AddLiveRecordVodConfigRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long AddLiveRecordVodConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddLiveRecordVodConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddLiveRecordVodConfigRequest::getVersion()const +{ + return version_; +} + +void AddLiveRecordVodConfigRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool AddLiveRecordVodConfigRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AddLiveRecordVodConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool AddLiveRecordVodConfigRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AddLiveRecordVodConfigRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool AddLiveRecordVodConfigRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AddLiveRecordVodConfigRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string AddLiveRecordVodConfigRequest::getServiceCode()const +{ + return serviceCode_; +} + +void AddLiveRecordVodConfigRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string AddLiveRecordVodConfigRequest::getRequestId()const +{ + return requestId_; +} + +void AddLiveRecordVodConfigRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string AddLiveRecordVodConfigRequest::getEagleEyeUserData()const +{ + return eagleEyeUserData_; +} + +void AddLiveRecordVodConfigRequest::setEagleEyeUserData(const std::string& eagleEyeUserData) +{ + eagleEyeUserData_ = eagleEyeUserData; + setCoreParameter("EagleEyeUserData", eagleEyeUserData); +} + diff --git a/live/src/model/AddLiveRecordVodConfigResult.cc b/live/src/model/AddLiveRecordVodConfigResult.cc index 98fc4c33f..a529651f5 100644 --- a/live/src/model/AddLiveRecordVodConfigResult.cc +++ b/live/src/model/AddLiveRecordVodConfigResult.cc @@ -35,10 +35,13 @@ AddLiveRecordVodConfigResult::~AddLiveRecordVodConfigResult() void AddLiveRecordVodConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveSnapshotDetectPornConfigResult.cc b/live/src/model/AddLiveSnapshotDetectPornConfigResult.cc index 78ec07ec5..140e3c773 100644 --- a/live/src/model/AddLiveSnapshotDetectPornConfigResult.cc +++ b/live/src/model/AddLiveSnapshotDetectPornConfigResult.cc @@ -35,10 +35,13 @@ AddLiveSnapshotDetectPornConfigResult::~AddLiveSnapshotDetectPornConfigResult() void AddLiveSnapshotDetectPornConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddLiveStreamTranscodeResult.cc b/live/src/model/AddLiveStreamTranscodeResult.cc index 12ffae6eb..08852b646 100644 --- a/live/src/model/AddLiveStreamTranscodeResult.cc +++ b/live/src/model/AddLiveStreamTranscodeResult.cc @@ -35,10 +35,13 @@ AddLiveStreamTranscodeResult::~AddLiveStreamTranscodeResult() void AddLiveStreamTranscodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AddTrancodeSEIResult.cc b/live/src/model/AddTrancodeSEIResult.cc index e7bf720ce..db36f4403 100644 --- a/live/src/model/AddTrancodeSEIResult.cc +++ b/live/src/model/AddTrancodeSEIResult.cc @@ -35,10 +35,13 @@ AddTrancodeSEIResult::~AddTrancodeSEIResult() void AddTrancodeSEIResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/AllowPushStreamResult.cc b/live/src/model/AllowPushStreamResult.cc index bef09b517..d94f58f2b 100644 --- a/live/src/model/AllowPushStreamResult.cc +++ b/live/src/model/AllowPushStreamResult.cc @@ -35,10 +35,13 @@ AllowPushStreamResult::~AllowPushStreamResult() void AllowPushStreamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/ApplyBoardTokenResult.cc b/live/src/model/ApplyBoardTokenResult.cc index 6fc878595..301a67a96 100644 --- a/live/src/model/ApplyBoardTokenResult.cc +++ b/live/src/model/ApplyBoardTokenResult.cc @@ -35,10 +35,13 @@ ApplyBoardTokenResult::~ApplyBoardTokenResult() void ApplyBoardTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Token"].isNull()) token_ = value["Token"].asString(); diff --git a/live/src/model/ApplyRecordTokenResult.cc b/live/src/model/ApplyRecordTokenResult.cc index a83c4b9d7..a0681ee7d 100644 --- a/live/src/model/ApplyRecordTokenResult.cc +++ b/live/src/model/ApplyRecordTokenResult.cc @@ -35,10 +35,13 @@ ApplyRecordTokenResult::~ApplyRecordTokenResult() void ApplyRecordTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SecurityToken"].isNull()) securityToken_ = value["SecurityToken"].asString(); diff --git a/live/src/model/BatchDeleteLiveDomainConfigsResult.cc b/live/src/model/BatchDeleteLiveDomainConfigsResult.cc index a802610d2..bcc3011a3 100644 --- a/live/src/model/BatchDeleteLiveDomainConfigsResult.cc +++ b/live/src/model/BatchDeleteLiveDomainConfigsResult.cc @@ -35,10 +35,13 @@ BatchDeleteLiveDomainConfigsResult::~BatchDeleteLiveDomainConfigsResult() void BatchDeleteLiveDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/BatchSetLiveDomainConfigsResult.cc b/live/src/model/BatchSetLiveDomainConfigsResult.cc index 23f6c4f8f..77a7a76d6 100644 --- a/live/src/model/BatchSetLiveDomainConfigsResult.cc +++ b/live/src/model/BatchSetLiveDomainConfigsResult.cc @@ -35,10 +35,13 @@ BatchSetLiveDomainConfigsResult::~BatchSetLiveDomainConfigsResult() void BatchSetLiveDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/CompleteBoardRecordResult.cc b/live/src/model/CompleteBoardRecordResult.cc index b53bf2275..ae2b49b57 100644 --- a/live/src/model/CompleteBoardRecordResult.cc +++ b/live/src/model/CompleteBoardRecordResult.cc @@ -35,10 +35,13 @@ CompleteBoardRecordResult::~CompleteBoardRecordResult() void CompleteBoardRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OssPath"].isNull()) ossPath_ = value["OssPath"].asString(); diff --git a/live/src/model/CompleteBoardResult.cc b/live/src/model/CompleteBoardResult.cc index 25a388c98..d67159b39 100644 --- a/live/src/model/CompleteBoardResult.cc +++ b/live/src/model/CompleteBoardResult.cc @@ -35,10 +35,13 @@ CompleteBoardResult::~CompleteBoardResult() void CompleteBoardResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/CopyCasterResult.cc b/live/src/model/CopyCasterResult.cc index d7d1d7e76..851bea512 100644 --- a/live/src/model/CopyCasterResult.cc +++ b/live/src/model/CopyCasterResult.cc @@ -35,10 +35,13 @@ CopyCasterResult::~CopyCasterResult() void CopyCasterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/CopyCasterSceneConfigResult.cc b/live/src/model/CopyCasterSceneConfigResult.cc index c922802fd..9e737e1b2 100644 --- a/live/src/model/CopyCasterSceneConfigResult.cc +++ b/live/src/model/CopyCasterSceneConfigResult.cc @@ -35,10 +35,13 @@ CopyCasterSceneConfigResult::~CopyCasterSceneConfigResult() void CopyCasterSceneConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/CreateBoardResult.cc b/live/src/model/CreateBoardResult.cc index d3eab3455..0e4f461b7 100644 --- a/live/src/model/CreateBoardResult.cc +++ b/live/src/model/CreateBoardResult.cc @@ -35,10 +35,13 @@ CreateBoardResult::~CreateBoardResult() void CreateBoardResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BoardId"].isNull()) boardId_ = value["BoardId"].asString(); diff --git a/live/src/model/CreateCasterResult.cc b/live/src/model/CreateCasterResult.cc index 7c5e037ed..4a8baa2eb 100644 --- a/live/src/model/CreateCasterResult.cc +++ b/live/src/model/CreateCasterResult.cc @@ -35,10 +35,13 @@ CreateCasterResult::~CreateCasterResult() void CreateCasterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/CreateLiveStreamRecordIndexFilesResult.cc b/live/src/model/CreateLiveStreamRecordIndexFilesResult.cc index 891d3af07..9aa445b65 100644 --- a/live/src/model/CreateLiveStreamRecordIndexFilesResult.cc +++ b/live/src/model/CreateLiveStreamRecordIndexFilesResult.cc @@ -35,10 +35,13 @@ CreateLiveStreamRecordIndexFilesResult::~CreateLiveStreamRecordIndexFilesResult( void CreateLiveStreamRecordIndexFilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto recordInfoNode = value["RecordInfo"]; if(!recordInfoNode["RecordId"].isNull()) diff --git a/live/src/model/CreateRoomResult.cc b/live/src/model/CreateRoomResult.cc index d6e2b5020..81af8559f 100644 --- a/live/src/model/CreateRoomResult.cc +++ b/live/src/model/CreateRoomResult.cc @@ -35,10 +35,13 @@ CreateRoomResult::~CreateRoomResult() void CreateRoomResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AppId"].isNull()) appId_ = value["AppId"].asString(); diff --git a/live/src/model/DeleteBoardResult.cc b/live/src/model/DeleteBoardResult.cc index dffc02f22..5b5236f78 100644 --- a/live/src/model/DeleteBoardResult.cc +++ b/live/src/model/DeleteBoardResult.cc @@ -35,10 +35,13 @@ DeleteBoardResult::~DeleteBoardResult() void DeleteBoardResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteCasterComponentResult.cc b/live/src/model/DeleteCasterComponentResult.cc index b6a016899..c7f212503 100644 --- a/live/src/model/DeleteCasterComponentResult.cc +++ b/live/src/model/DeleteCasterComponentResult.cc @@ -35,10 +35,13 @@ DeleteCasterComponentResult::~DeleteCasterComponentResult() void DeleteCasterComponentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/DeleteCasterEpisodeGroupResult.cc b/live/src/model/DeleteCasterEpisodeGroupResult.cc index 88572c3e8..9d0262d26 100644 --- a/live/src/model/DeleteCasterEpisodeGroupResult.cc +++ b/live/src/model/DeleteCasterEpisodeGroupResult.cc @@ -35,10 +35,13 @@ DeleteCasterEpisodeGroupResult::~DeleteCasterEpisodeGroupResult() void DeleteCasterEpisodeGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteCasterEpisodeResult.cc b/live/src/model/DeleteCasterEpisodeResult.cc index 9e2e5b8ae..6205d876d 100644 --- a/live/src/model/DeleteCasterEpisodeResult.cc +++ b/live/src/model/DeleteCasterEpisodeResult.cc @@ -35,10 +35,13 @@ DeleteCasterEpisodeResult::~DeleteCasterEpisodeResult() void DeleteCasterEpisodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/DeleteCasterLayoutResult.cc b/live/src/model/DeleteCasterLayoutResult.cc index 3a7e75e55..8793a1943 100644 --- a/live/src/model/DeleteCasterLayoutResult.cc +++ b/live/src/model/DeleteCasterLayoutResult.cc @@ -35,10 +35,13 @@ DeleteCasterLayoutResult::~DeleteCasterLayoutResult() void DeleteCasterLayoutResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/DeleteCasterProgramResult.cc b/live/src/model/DeleteCasterProgramResult.cc index a458a260a..e11776fef 100644 --- a/live/src/model/DeleteCasterProgramResult.cc +++ b/live/src/model/DeleteCasterProgramResult.cc @@ -35,10 +35,13 @@ DeleteCasterProgramResult::~DeleteCasterProgramResult() void DeleteCasterProgramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/DeleteCasterResult.cc b/live/src/model/DeleteCasterResult.cc index eeb0fe242..d3edda709 100644 --- a/live/src/model/DeleteCasterResult.cc +++ b/live/src/model/DeleteCasterResult.cc @@ -35,10 +35,13 @@ DeleteCasterResult::~DeleteCasterResult() void DeleteCasterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/DeleteCasterSceneConfigResult.cc b/live/src/model/DeleteCasterSceneConfigResult.cc index 429e69dfa..9ff30701c 100644 --- a/live/src/model/DeleteCasterSceneConfigResult.cc +++ b/live/src/model/DeleteCasterSceneConfigResult.cc @@ -35,10 +35,13 @@ DeleteCasterSceneConfigResult::~DeleteCasterSceneConfigResult() void DeleteCasterSceneConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteCasterVideoResourceResult.cc b/live/src/model/DeleteCasterVideoResourceResult.cc index ba7fdccd1..1496ee5ba 100644 --- a/live/src/model/DeleteCasterVideoResourceResult.cc +++ b/live/src/model/DeleteCasterVideoResourceResult.cc @@ -35,10 +35,13 @@ DeleteCasterVideoResourceResult::~DeleteCasterVideoResourceResult() void DeleteCasterVideoResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveAppRecordConfigResult.cc b/live/src/model/DeleteLiveAppRecordConfigResult.cc index 3dcc5697d..9aef5fab6 100644 --- a/live/src/model/DeleteLiveAppRecordConfigResult.cc +++ b/live/src/model/DeleteLiveAppRecordConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveAppRecordConfigResult::~DeleteLiveAppRecordConfigResult() void DeleteLiveAppRecordConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveAppSnapshotConfigResult.cc b/live/src/model/DeleteLiveAppSnapshotConfigResult.cc index 07ed0319c..289d17864 100644 --- a/live/src/model/DeleteLiveAppSnapshotConfigResult.cc +++ b/live/src/model/DeleteLiveAppSnapshotConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveAppSnapshotConfigResult::~DeleteLiveAppSnapshotConfigResult() void DeleteLiveAppSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveDetectNotifyConfigResult.cc b/live/src/model/DeleteLiveDetectNotifyConfigResult.cc index 9b62e2554..f9ce8d8bd 100644 --- a/live/src/model/DeleteLiveDetectNotifyConfigResult.cc +++ b/live/src/model/DeleteLiveDetectNotifyConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveDetectNotifyConfigResult::~DeleteLiveDetectNotifyConfigResult() void DeleteLiveDetectNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveDomainMappingResult.cc b/live/src/model/DeleteLiveDomainMappingResult.cc index a13b1ce6f..89fd37a4c 100644 --- a/live/src/model/DeleteLiveDomainMappingResult.cc +++ b/live/src/model/DeleteLiveDomainMappingResult.cc @@ -35,10 +35,13 @@ DeleteLiveDomainMappingResult::~DeleteLiveDomainMappingResult() void DeleteLiveDomainMappingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveDomainResult.cc b/live/src/model/DeleteLiveDomainResult.cc index 39de7e0a6..092273f71 100644 --- a/live/src/model/DeleteLiveDomainResult.cc +++ b/live/src/model/DeleteLiveDomainResult.cc @@ -35,10 +35,13 @@ DeleteLiveDomainResult::~DeleteLiveDomainResult() void DeleteLiveDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc b/live/src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc index 6bd7027b0..6047143ef 100644 --- a/live/src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc +++ b/live/src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveLazyPullStreamInfoConfigResult::~DeleteLiveLazyPullStreamInfoConfigRes void DeleteLiveLazyPullStreamInfoConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLivePullStreamInfoConfigResult.cc b/live/src/model/DeleteLivePullStreamInfoConfigResult.cc index 4115f4995..49bfa66c3 100644 --- a/live/src/model/DeleteLivePullStreamInfoConfigResult.cc +++ b/live/src/model/DeleteLivePullStreamInfoConfigResult.cc @@ -35,10 +35,13 @@ DeleteLivePullStreamInfoConfigResult::~DeleteLivePullStreamInfoConfigResult() void DeleteLivePullStreamInfoConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveRecordNotifyConfigResult.cc b/live/src/model/DeleteLiveRecordNotifyConfigResult.cc index 0b82219e1..fa2521b27 100644 --- a/live/src/model/DeleteLiveRecordNotifyConfigResult.cc +++ b/live/src/model/DeleteLiveRecordNotifyConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveRecordNotifyConfigResult::~DeleteLiveRecordNotifyConfigResult() void DeleteLiveRecordNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveRecordVodConfigRequest.cc b/live/src/model/DeleteLiveRecordVodConfigRequest.cc index 92ccaf5e0..ea8692e26 100644 --- a/live/src/model/DeleteLiveRecordVodConfigRequest.cc +++ b/live/src/model/DeleteLiveRecordVodConfigRequest.cc @@ -25,6 +25,94 @@ DeleteLiveRecordVodConfigRequest::DeleteLiveRecordVodConfigRequest() : DeleteLiveRecordVodConfigRequest::~DeleteLiveRecordVodConfigRequest() {} +long DeleteLiveRecordVodConfigRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteLiveRecordVodConfigRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteLiveRecordVodConfigRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteLiveRecordVodConfigRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteLiveRecordVodConfigRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteLiveRecordVodConfigRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteLiveRecordVodConfigRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteLiveRecordVodConfigRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteLiveRecordVodConfigRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteLiveRecordVodConfigRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DeleteLiveRecordVodConfigRequest::getEagleEyeRpcId()const +{ + return eagleEyeRpcId_; +} + +void DeleteLiveRecordVodConfigRequest::setEagleEyeRpcId(const std::string& eagleEyeRpcId) +{ + eagleEyeRpcId_ = eagleEyeRpcId; + setCoreParameter("EagleEyeRpcId", eagleEyeRpcId); +} + +std::string DeleteLiveRecordVodConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteLiveRecordVodConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteLiveRecordVodConfigRequest::getEagleEyeTraceId()const +{ + return eagleEyeTraceId_; +} + +void DeleteLiveRecordVodConfigRequest::setEagleEyeTraceId(const std::string& eagleEyeTraceId) +{ + eagleEyeTraceId_ = eagleEyeTraceId; + setCoreParameter("EagleEyeTraceId", eagleEyeTraceId); +} + std::string DeleteLiveRecordVodConfigRequest::getAppName()const { return appName_; @@ -47,26 +135,48 @@ void DeleteLiveRecordVodConfigRequest::setSecurityToken(const std::string& secur setCoreParameter("SecurityToken", securityToken); } -std::string DeleteLiveRecordVodConfigRequest::getDomainName()const +std::string DeleteLiveRecordVodConfigRequest::getRegionId()const { - return domainName_; + return regionId_; } -void DeleteLiveRecordVodConfigRequest::setDomainName(const std::string& domainName) +void DeleteLiveRecordVodConfigRequest::setRegionId(const std::string& regionId) { - domainName_ = domainName; - setCoreParameter("DomainName", domainName); + regionId_ = regionId; + setCoreParameter("RegionId", regionId); } -long DeleteLiveRecordVodConfigRequest::getOwnerId()const +std::string DeleteLiveRecordVodConfigRequest::getRequestContent()const { - return ownerId_; + return requestContent_; } -void DeleteLiveRecordVodConfigRequest::setOwnerId(long ownerId) +void DeleteLiveRecordVodConfigRequest::setRequestContent(const std::string& requestContent) { - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DeleteLiveRecordVodConfigRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteLiveRecordVodConfigRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteLiveRecordVodConfigRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteLiveRecordVodConfigRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string DeleteLiveRecordVodConfigRequest::getStreamName()const @@ -80,14 +190,146 @@ void DeleteLiveRecordVodConfigRequest::setStreamName(const std::string& streamNa setCoreParameter("StreamName", streamName); } -std::string DeleteLiveRecordVodConfigRequest::getAccessKeyId()const +long DeleteLiveRecordVodConfigRequest::getCallerUid()const { - return accessKeyId_; + return callerUid_; } -void DeleteLiveRecordVodConfigRequest::setAccessKeyId(const std::string& accessKeyId) +void DeleteLiveRecordVodConfigRequest::setCallerUid(long callerUid) { - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteLiveRecordVodConfigRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteLiveRecordVodConfigRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DeleteLiveRecordVodConfigRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteLiveRecordVodConfigRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DeleteLiveRecordVodConfigRequest::getDomainName()const +{ + return domainName_; +} + +void DeleteLiveRecordVodConfigRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DeleteLiveRecordVodConfigRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteLiveRecordVodConfigRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DeleteLiveRecordVodConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteLiveRecordVodConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteLiveRecordVodConfigRequest::getVersion()const +{ + return version_; +} + +void DeleteLiveRecordVodConfigRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DeleteLiveRecordVodConfigRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteLiveRecordVodConfigRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteLiveRecordVodConfigRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteLiveRecordVodConfigRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteLiveRecordVodConfigRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteLiveRecordVodConfigRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteLiveRecordVodConfigRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DeleteLiveRecordVodConfigRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DeleteLiveRecordVodConfigRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteLiveRecordVodConfigRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DeleteLiveRecordVodConfigRequest::getEagleEyeUserData()const +{ + return eagleEyeUserData_; +} + +void DeleteLiveRecordVodConfigRequest::setEagleEyeUserData(const std::string& eagleEyeUserData) +{ + eagleEyeUserData_ = eagleEyeUserData; + setCoreParameter("EagleEyeUserData", eagleEyeUserData); } diff --git a/live/src/model/DeleteLiveRecordVodConfigResult.cc b/live/src/model/DeleteLiveRecordVodConfigResult.cc index be9772541..962d072f3 100644 --- a/live/src/model/DeleteLiveRecordVodConfigResult.cc +++ b/live/src/model/DeleteLiveRecordVodConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveRecordVodConfigResult::~DeleteLiveRecordVodConfigResult() void DeleteLiveRecordVodConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveSnapshotDetectPornConfigResult.cc b/live/src/model/DeleteLiveSnapshotDetectPornConfigResult.cc index 2d0a02c3c..f3db9fba4 100644 --- a/live/src/model/DeleteLiveSnapshotDetectPornConfigResult.cc +++ b/live/src/model/DeleteLiveSnapshotDetectPornConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveSnapshotDetectPornConfigResult::~DeleteLiveSnapshotDetectPornConfigRes void DeleteLiveSnapshotDetectPornConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveStreamTranscodeResult.cc b/live/src/model/DeleteLiveStreamTranscodeResult.cc index 71b2fa4e2..ad434f18d 100644 --- a/live/src/model/DeleteLiveStreamTranscodeResult.cc +++ b/live/src/model/DeleteLiveStreamTranscodeResult.cc @@ -35,10 +35,13 @@ DeleteLiveStreamTranscodeResult::~DeleteLiveStreamTranscodeResult() void DeleteLiveStreamTranscodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteLiveStreamsNotifyUrlConfigResult.cc b/live/src/model/DeleteLiveStreamsNotifyUrlConfigResult.cc index f9d6355df..82f789be8 100644 --- a/live/src/model/DeleteLiveStreamsNotifyUrlConfigResult.cc +++ b/live/src/model/DeleteLiveStreamsNotifyUrlConfigResult.cc @@ -35,10 +35,13 @@ DeleteLiveStreamsNotifyUrlConfigResult::~DeleteLiveStreamsNotifyUrlConfigResult( void DeleteLiveStreamsNotifyUrlConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DeleteRoomResult.cc b/live/src/model/DeleteRoomResult.cc index ab9357fae..d49c32ffd 100644 --- a/live/src/model/DeleteRoomResult.cc +++ b/live/src/model/DeleteRoomResult.cc @@ -35,10 +35,13 @@ DeleteRoomResult::~DeleteRoomResult() void DeleteRoomResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/DescribeBoardEventsResult.cc b/live/src/model/DescribeBoardEventsResult.cc index 82a6c7e7f..ce6638156 100644 --- a/live/src/model/DescribeBoardEventsResult.cc +++ b/live/src/model/DescribeBoardEventsResult.cc @@ -35,10 +35,13 @@ DescribeBoardEventsResult::~DescribeBoardEventsResult() void DescribeBoardEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEvents = value["Events"]["Event"]; for (auto value : allEvents) diff --git a/live/src/model/DescribeBoardSnapshotResult.cc b/live/src/model/DescribeBoardSnapshotResult.cc index 4cb8f76fa..cc18928f9 100644 --- a/live/src/model/DescribeBoardSnapshotResult.cc +++ b/live/src/model/DescribeBoardSnapshotResult.cc @@ -35,10 +35,13 @@ DescribeBoardSnapshotResult::~DescribeBoardSnapshotResult() void DescribeBoardSnapshotResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto snapshotNode = value["Snapshot"]; auto boardNode = snapshotNode["Board"]; diff --git a/live/src/model/DescribeBoardsResult.cc b/live/src/model/DescribeBoardsResult.cc index 505bfd0ea..139e529d1 100644 --- a/live/src/model/DescribeBoardsResult.cc +++ b/live/src/model/DescribeBoardsResult.cc @@ -35,10 +35,13 @@ DescribeBoardsResult::~DescribeBoardsResult() void DescribeBoardsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBoards = value["Boards"]["Event"]; for (auto value : allBoards) diff --git a/live/src/model/DescribeCasterChannelsResult.cc b/live/src/model/DescribeCasterChannelsResult.cc index 8f158d117..c4d006250 100644 --- a/live/src/model/DescribeCasterChannelsResult.cc +++ b/live/src/model/DescribeCasterChannelsResult.cc @@ -35,10 +35,13 @@ DescribeCasterChannelsResult::~DescribeCasterChannelsResult() void DescribeCasterChannelsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allChannels = value["Channels"]["Channel"]; for (auto value : allChannels) diff --git a/live/src/model/DescribeCasterComponentsResult.cc b/live/src/model/DescribeCasterComponentsResult.cc index 67dc0fc89..a8befa30d 100644 --- a/live/src/model/DescribeCasterComponentsResult.cc +++ b/live/src/model/DescribeCasterComponentsResult.cc @@ -35,10 +35,13 @@ DescribeCasterComponentsResult::~DescribeCasterComponentsResult() void DescribeCasterComponentsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allComponents = value["Components"]["Component"]; for (auto value : allComponents) diff --git a/live/src/model/DescribeCasterConfigResult.cc b/live/src/model/DescribeCasterConfigResult.cc index 2b49b828b..180c0c7d5 100644 --- a/live/src/model/DescribeCasterConfigResult.cc +++ b/live/src/model/DescribeCasterConfigResult.cc @@ -35,10 +35,13 @@ DescribeCasterConfigResult::~DescribeCasterConfigResult() void DescribeCasterConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto transcodeConfigNode = value["TranscodeConfig"]; if(!transcodeConfigNode["CasterTemplate"].isNull()) diff --git a/live/src/model/DescribeCasterLayoutsResult.cc b/live/src/model/DescribeCasterLayoutsResult.cc index 918751594..a98b8f52f 100644 --- a/live/src/model/DescribeCasterLayoutsResult.cc +++ b/live/src/model/DescribeCasterLayoutsResult.cc @@ -35,10 +35,13 @@ DescribeCasterLayoutsResult::~DescribeCasterLayoutsResult() void DescribeCasterLayoutsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLayouts = value["Layouts"]["Layout"]; for (auto value : allLayouts) diff --git a/live/src/model/DescribeCasterProgramResult.cc b/live/src/model/DescribeCasterProgramResult.cc index a9c6fae2f..ac21fbc45 100644 --- a/live/src/model/DescribeCasterProgramResult.cc +++ b/live/src/model/DescribeCasterProgramResult.cc @@ -35,10 +35,13 @@ DescribeCasterProgramResult::~DescribeCasterProgramResult() void DescribeCasterProgramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEpisodes = value["Episodes"]["Episode"]; for (auto value : allEpisodes) diff --git a/live/src/model/DescribeCasterRtcInfoResult.cc b/live/src/model/DescribeCasterRtcInfoResult.cc index 76b3a342c..a5a1e9fd9 100644 --- a/live/src/model/DescribeCasterRtcInfoResult.cc +++ b/live/src/model/DescribeCasterRtcInfoResult.cc @@ -35,10 +35,13 @@ DescribeCasterRtcInfoResult::~DescribeCasterRtcInfoResult() void DescribeCasterRtcInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/DescribeCasterSceneAudioResult.cc b/live/src/model/DescribeCasterSceneAudioResult.cc index fdead0558..97bc19297 100644 --- a/live/src/model/DescribeCasterSceneAudioResult.cc +++ b/live/src/model/DescribeCasterSceneAudioResult.cc @@ -35,10 +35,13 @@ DescribeCasterSceneAudioResult::~DescribeCasterSceneAudioResult() void DescribeCasterSceneAudioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAudioLayers = value["AudioLayers"]["AudioLayer"]; for (auto value : allAudioLayers) diff --git a/live/src/model/DescribeCasterScenesResult.cc b/live/src/model/DescribeCasterScenesResult.cc index a01ad846a..82f9de850 100644 --- a/live/src/model/DescribeCasterScenesResult.cc +++ b/live/src/model/DescribeCasterScenesResult.cc @@ -35,10 +35,13 @@ DescribeCasterScenesResult::~DescribeCasterScenesResult() void DescribeCasterScenesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSceneList = value["SceneList"]["Scene"]; for (auto value : allSceneList) diff --git a/live/src/model/DescribeCasterStreamUrlResult.cc b/live/src/model/DescribeCasterStreamUrlResult.cc index 704bc1af0..6ec08e0a7 100644 --- a/live/src/model/DescribeCasterStreamUrlResult.cc +++ b/live/src/model/DescribeCasterStreamUrlResult.cc @@ -35,10 +35,13 @@ DescribeCasterStreamUrlResult::~DescribeCasterStreamUrlResult() void DescribeCasterStreamUrlResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCasterStreams = value["CasterStreams"]["CasterStream"]; for (auto value : allCasterStreams) diff --git a/live/src/model/DescribeCasterVideoResourcesResult.cc b/live/src/model/DescribeCasterVideoResourcesResult.cc index b9cce0a75..dacb6429f 100644 --- a/live/src/model/DescribeCasterVideoResourcesResult.cc +++ b/live/src/model/DescribeCasterVideoResourcesResult.cc @@ -35,10 +35,13 @@ DescribeCasterVideoResourcesResult::~DescribeCasterVideoResourcesResult() void DescribeCasterVideoResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVideoResources = value["VideoResources"]["VideoResource"]; for (auto value : allVideoResources) diff --git a/live/src/model/DescribeCastersResult.cc b/live/src/model/DescribeCastersResult.cc index 511c41098..bce029d98 100644 --- a/live/src/model/DescribeCastersResult.cc +++ b/live/src/model/DescribeCastersResult.cc @@ -35,10 +35,13 @@ DescribeCastersResult::~DescribeCastersResult() void DescribeCastersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCasterList = value["CasterList"]["Caster"]; for (auto value : allCasterList) diff --git a/live/src/model/DescribeForbidPushStreamRoomListResult.cc b/live/src/model/DescribeForbidPushStreamRoomListResult.cc index 2743a3b49..22a6f8f42 100644 --- a/live/src/model/DescribeForbidPushStreamRoomListResult.cc +++ b/live/src/model/DescribeForbidPushStreamRoomListResult.cc @@ -35,10 +35,13 @@ DescribeForbidPushStreamRoomListResult::~DescribeForbidPushStreamRoomListResult( void DescribeForbidPushStreamRoomListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRoomList = value["RoomList"]["Room"]; for (auto value : allRoomList) diff --git a/live/src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc b/live/src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc index 431802f2e..b5eba6b79 100644 --- a/live/src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc +++ b/live/src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeHlsLiveStreamRealTimeBpsDataResult::~DescribeHlsLiveStreamRealTimeBpsDat void DescribeHlsLiveStreamRealTimeBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUsageData = value["UsageData"]["UsageDataPerDomain"]; for (auto value : allUsageData) diff --git a/live/src/model/DescribeLiveCertificateDetailResult.cc b/live/src/model/DescribeLiveCertificateDetailResult.cc index 820b8b3e8..5a02774e8 100644 --- a/live/src/model/DescribeLiveCertificateDetailResult.cc +++ b/live/src/model/DescribeLiveCertificateDetailResult.cc @@ -35,10 +35,13 @@ DescribeLiveCertificateDetailResult::~DescribeLiveCertificateDetailResult() void DescribeLiveCertificateDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Cert"].isNull()) cert_ = value["Cert"].asString(); diff --git a/live/src/model/DescribeLiveCertificateListResult.cc b/live/src/model/DescribeLiveCertificateListResult.cc index 7b956b77a..ede9b739a 100644 --- a/live/src/model/DescribeLiveCertificateListResult.cc +++ b/live/src/model/DescribeLiveCertificateListResult.cc @@ -35,10 +35,13 @@ DescribeLiveCertificateListResult::~DescribeLiveCertificateListResult() void DescribeLiveCertificateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto certificateListModelNode = value["CertificateListModel"]; if(!certificateListModelNode["Count"].isNull()) diff --git a/live/src/model/DescribeLiveDetectNotifyConfigResult.cc b/live/src/model/DescribeLiveDetectNotifyConfigResult.cc index 8d67007ad..765051fa2 100644 --- a/live/src/model/DescribeLiveDetectNotifyConfigResult.cc +++ b/live/src/model/DescribeLiveDetectNotifyConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveDetectNotifyConfigResult::~DescribeLiveDetectNotifyConfigResult() void DescribeLiveDetectNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto liveDetectNotifyConfigNode = value["LiveDetectNotifyConfig"]; if(!liveDetectNotifyConfigNode["DomainName"].isNull()) diff --git a/live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc b/live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc new file mode 100644 index 000000000..186f24b1b --- /dev/null +++ b/live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc @@ -0,0 +1,357 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live::Model::DescribeLiveDomainBpsDataByTimeStampRequest; + +DescribeLiveDomainBpsDataByTimeStampRequest::DescribeLiveDomainBpsDataByTimeStampRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainBpsDataByTimeStamp") +{} + +DescribeLiveDomainBpsDataByTimeStampRequest::~DescribeLiveDomainBpsDataByTimeStampRequest() +{} + +long DescribeLiveDomainBpsDataByTimeStampRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getLocationNames()const +{ + return locationNames_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setLocationNames(const std::string& locationNames) +{ + locationNames_ = locationNames; + setCoreParameter("LocationNames", locationNames); +} + +bool DescribeLiveDomainBpsDataByTimeStampRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getEagleEyeRpcId()const +{ + return eagleEyeRpcId_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setEagleEyeRpcId(const std::string& eagleEyeRpcId) +{ + eagleEyeRpcId_ = eagleEyeRpcId; + setCoreParameter("EagleEyeRpcId", eagleEyeRpcId); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getEagleEyeTraceId()const +{ + return eagleEyeTraceId_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setEagleEyeTraceId(const std::string& eagleEyeTraceId) +{ + eagleEyeTraceId_ = eagleEyeTraceId; + setCoreParameter("EagleEyeTraceId", eagleEyeTraceId); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeLiveDomainBpsDataByTimeStampRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getIspNames()const +{ + return ispNames_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setIspNames(const std::string& ispNames) +{ + ispNames_ = ispNames; + setCoreParameter("IspNames", ispNames); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getProduct()const +{ + return product_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setProduct(const std::string& product) +{ + product_ = product; + setCoreParameter("Product", product); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeLiveDomainBpsDataByTimeStampRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeLiveDomainBpsDataByTimeStampRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeLiveDomainBpsDataByTimeStampRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeLiveDomainBpsDataByTimeStampRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getEagleEyeUserData()const +{ + return eagleEyeUserData_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setEagleEyeUserData(const std::string& eagleEyeUserData) +{ + eagleEyeUserData_ = eagleEyeUserData; + setCoreParameter("EagleEyeUserData", eagleEyeUserData); +} + +std::string DescribeLiveDomainBpsDataByTimeStampRequest::getTimePoint()const +{ + return timePoint_; +} + +void DescribeLiveDomainBpsDataByTimeStampRequest::setTimePoint(const std::string& timePoint) +{ + timePoint_ = timePoint; + setCoreParameter("TimePoint", timePoint); +} + diff --git a/live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc b/live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc new file mode 100644 index 000000000..196b407be --- /dev/null +++ b/live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.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 +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveDomainBpsDataByTimeStampResult::DescribeLiveDomainBpsDataByTimeStampResult() : + ServiceResult() +{} + +DescribeLiveDomainBpsDataByTimeStampResult::DescribeLiveDomainBpsDataByTimeStampResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveDomainBpsDataByTimeStampResult::~DescribeLiveDomainBpsDataByTimeStampResult() +{} + +void DescribeLiveDomainBpsDataByTimeStampResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allBpsDataList = value["BpsDataList"]["BpsDataModel"]; + for (auto value : allBpsDataList) + { + BpsDataModel bpsDataListObject; + if(!value["TimeStamp"].isNull()) + bpsDataListObject.timeStamp = value["TimeStamp"].asString(); + if(!value["LocationName"].isNull()) + bpsDataListObject.locationName = value["LocationName"].asString(); + if(!value["IspName"].isNull()) + bpsDataListObject.ispName = value["IspName"].asString(); + if(!value["Bps"].isNull()) + bpsDataListObject.bps = std::stol(value["Bps"].asString()); + bpsDataList_.push_back(bpsDataListObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); + +} + +std::vector DescribeLiveDomainBpsDataByTimeStampResult::getBpsDataList()const +{ + return bpsDataList_; +} + +std::string DescribeLiveDomainBpsDataByTimeStampResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeLiveDomainBpsDataByTimeStampResult::getTimeStamp()const +{ + return timeStamp_; +} + diff --git a/live/src/model/DescribeLiveDomainBpsDataResult.cc b/live/src/model/DescribeLiveDomainBpsDataResult.cc index 2848a7024..5ab7332e4 100644 --- a/live/src/model/DescribeLiveDomainBpsDataResult.cc +++ b/live/src/model/DescribeLiveDomainBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainBpsDataResult::~DescribeLiveDomainBpsDataResult() void DescribeLiveDomainBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"]; for (auto value : allBpsDataPerInterval) diff --git a/live/src/model/DescribeLiveDomainConfigsResult.cc b/live/src/model/DescribeLiveDomainConfigsResult.cc index f2b1bcdd0..b6904707e 100644 --- a/live/src/model/DescribeLiveDomainConfigsResult.cc +++ b/live/src/model/DescribeLiveDomainConfigsResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainConfigsResult::~DescribeLiveDomainConfigsResult() void DescribeLiveDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainConfigs = value["DomainConfigs"]["DomainConfig"]; for (auto value : allDomainConfigs) diff --git a/live/src/model/DescribeLiveDomainDetailResult.cc b/live/src/model/DescribeLiveDomainDetailResult.cc index a94dcf267..5123caa5e 100644 --- a/live/src/model/DescribeLiveDomainDetailResult.cc +++ b/live/src/model/DescribeLiveDomainDetailResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainDetailResult::~DescribeLiveDomainDetailResult() void DescribeLiveDomainDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto domainDetailNode = value["DomainDetail"]; if(!domainDetailNode["GmtCreated"].isNull()) diff --git a/live/src/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.cc b/live/src/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.cc new file mode 100644 index 000000000..a8bde9f6a --- /dev/null +++ b/live/src/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.cc @@ -0,0 +1,357 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live::Model::DescribeLiveDomainFrameRateAndBitRateDataRequest; + +DescribeLiveDomainFrameRateAndBitRateDataRequest::DescribeLiveDomainFrameRateAndBitRateDataRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainFrameRateAndBitRateData") +{} + +DescribeLiveDomainFrameRateAndBitRateDataRequest::~DescribeLiveDomainFrameRateAndBitRateDataRequest() +{} + +long DescribeLiveDomainFrameRateAndBitRateDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getCatalog()const +{ + return catalog_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setCatalog(const std::string& catalog) +{ + catalog_ = catalog; + setCoreParameter("Catalog", catalog); +} + +bool DescribeLiveDomainFrameRateAndBitRateDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getEagleEyeRpcId()const +{ + return eagleEyeRpcId_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setEagleEyeRpcId(const std::string& eagleEyeRpcId) +{ + eagleEyeRpcId_ = eagleEyeRpcId; + setCoreParameter("EagleEyeRpcId", eagleEyeRpcId); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getQueryTime()const +{ + return queryTime_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setQueryTime(const std::string& queryTime) +{ + queryTime_ = queryTime; + setCoreParameter("QueryTime", queryTime); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getEagleEyeTraceId()const +{ + return eagleEyeTraceId_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setEagleEyeTraceId(const std::string& eagleEyeTraceId) +{ + eagleEyeTraceId_ = eagleEyeTraceId; + setCoreParameter("EagleEyeTraceId", eagleEyeTraceId); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getHost()const +{ + return host_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setHost(const std::string& host) +{ + host_ = host; + setCoreParameter("Host", host); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeLiveDomainFrameRateAndBitRateDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeLiveDomainFrameRateAndBitRateDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeLiveDomainFrameRateAndBitRateDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeLiveDomainFrameRateAndBitRateDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeLiveDomainFrameRateAndBitRateDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getEagleEyeUserData()const +{ + return eagleEyeUserData_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setEagleEyeUserData(const std::string& eagleEyeUserData) +{ + eagleEyeUserData_ = eagleEyeUserData; + setCoreParameter("EagleEyeUserData", eagleEyeUserData); +} + +std::string DescribeLiveDomainFrameRateAndBitRateDataRequest::getFields()const +{ + return fields_; +} + +void DescribeLiveDomainFrameRateAndBitRateDataRequest::setFields(const std::string& fields) +{ + fields_ = fields; + setCoreParameter("Fields", fields); +} + diff --git a/live/src/model/DescribeLiveDomainFrameRateAndBitRateDataResult.cc b/live/src/model/DescribeLiveDomainFrameRateAndBitRateDataResult.cc new file mode 100644 index 000000000..f6b61a37f --- /dev/null +++ b/live/src/model/DescribeLiveDomainFrameRateAndBitRateDataResult.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 +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveDomainFrameRateAndBitRateDataResult::DescribeLiveDomainFrameRateAndBitRateDataResult() : + ServiceResult() +{} + +DescribeLiveDomainFrameRateAndBitRateDataResult::DescribeLiveDomainFrameRateAndBitRateDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveDomainFrameRateAndBitRateDataResult::~DescribeLiveDomainFrameRateAndBitRateDataResult() +{} + +void DescribeLiveDomainFrameRateAndBitRateDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"]; + for (auto value : allFrameRateAndBitRateInfos) + { + FrameRateAndBitRateInfo frameRateAndBitRateInfosObject; + if(!value["AudioFrameRate"].isNull()) + frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString()); + if(!value["BitRate"].isNull()) + frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString()); + if(!value["VideoFrameRate"].isNull()) + frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString()); + if(!value["StreamUrl"].isNull()) + frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString(); + frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject); + } + +} + +std::vector DescribeLiveDomainFrameRateAndBitRateDataResult::getFrameRateAndBitRateInfos()const +{ + return frameRateAndBitRateInfos_; +} + diff --git a/live/src/model/DescribeLiveDomainMappingResult.cc b/live/src/model/DescribeLiveDomainMappingResult.cc index 18a36c078..18277ffbf 100644 --- a/live/src/model/DescribeLiveDomainMappingResult.cc +++ b/live/src/model/DescribeLiveDomainMappingResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainMappingResult::~DescribeLiveDomainMappingResult() void DescribeLiveDomainMappingResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveDomainModels = value["LiveDomainModels"]["LiveDomainModel"]; for (auto value : allLiveDomainModels) diff --git a/live/src/model/DescribeLiveDomainOnlineUserNumRequest.cc b/live/src/model/DescribeLiveDomainOnlineUserNumRequest.cc new file mode 100644 index 000000000..788bc693d --- /dev/null +++ b/live/src/model/DescribeLiveDomainOnlineUserNumRequest.cc @@ -0,0 +1,324 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live::Model::DescribeLiveDomainOnlineUserNumRequest; + +DescribeLiveDomainOnlineUserNumRequest::DescribeLiveDomainOnlineUserNumRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainOnlineUserNum") +{} + +DescribeLiveDomainOnlineUserNumRequest::~DescribeLiveDomainOnlineUserNumRequest() +{} + +long DescribeLiveDomainOnlineUserNumRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeLiveDomainOnlineUserNumRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getEagleEyeRpcId()const +{ + return eagleEyeRpcId_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setEagleEyeRpcId(const std::string& eagleEyeRpcId) +{ + eagleEyeRpcId_ = eagleEyeRpcId; + setCoreParameter("EagleEyeRpcId", eagleEyeRpcId); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getQueryTime()const +{ + return queryTime_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setQueryTime(const std::string& queryTime) +{ + queryTime_ = queryTime; + setCoreParameter("QueryTime", queryTime); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getEagleEyeTraceId()const +{ + return eagleEyeTraceId_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setEagleEyeTraceId(const std::string& eagleEyeTraceId) +{ + eagleEyeTraceId_ = eagleEyeTraceId; + setCoreParameter("EagleEyeTraceId", eagleEyeTraceId); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeLiveDomainOnlineUserNumRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeLiveDomainOnlineUserNumRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeLiveDomainOnlineUserNumRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeLiveDomainOnlineUserNumRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeLiveDomainOnlineUserNumRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeLiveDomainOnlineUserNumRequest::getEagleEyeUserData()const +{ + return eagleEyeUserData_; +} + +void DescribeLiveDomainOnlineUserNumRequest::setEagleEyeUserData(const std::string& eagleEyeUserData) +{ + eagleEyeUserData_ = eagleEyeUserData; + setCoreParameter("EagleEyeUserData", eagleEyeUserData); +} + diff --git a/live/src/model/DescribeLiveDomainOnlineUserNumResult.cc b/live/src/model/DescribeLiveDomainOnlineUserNumResult.cc new file mode 100644 index 000000000..718a7fe48 --- /dev/null +++ b/live/src/model/DescribeLiveDomainOnlineUserNumResult.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::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveDomainOnlineUserNumResult::DescribeLiveDomainOnlineUserNumResult() : + ServiceResult() +{} + +DescribeLiveDomainOnlineUserNumResult::DescribeLiveDomainOnlineUserNumResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveDomainOnlineUserNumResult::~DescribeLiveDomainOnlineUserNumResult() +{} + +void DescribeLiveDomainOnlineUserNumResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"]; + for (auto value : allOnlineUserInfo) + { + LiveStreamOnlineUserNumInfo onlineUserInfoObject; + if(!value["StreamName"].isNull()) + onlineUserInfoObject.streamName = value["StreamName"].asString(); + auto allInfos = value["Infos"]["Info"]; + for (auto value : allInfos) + { + LiveStreamOnlineUserNumInfo::Info infosObject; + if(!value["TranscodeTemplate"].isNull()) + infosObject.transcodeTemplate = value["TranscodeTemplate"].asString(); + if(!value["UserNumber"].isNull()) + infosObject.userNumber = std::stol(value["UserNumber"].asString()); + onlineUserInfoObject.infos.push_back(infosObject); + } + onlineUserInfo_.push_back(onlineUserInfoObject); + } + if(!value["StreamCount"].isNull()) + streamCount_ = std::stoi(value["StreamCount"].asString()); + if(!value["UserCount"].isNull()) + userCount_ = std::stoi(value["UserCount"].asString()); + +} + +int DescribeLiveDomainOnlineUserNumResult::getStreamCount()const +{ + return streamCount_; +} + +std::vector DescribeLiveDomainOnlineUserNumResult::getOnlineUserInfo()const +{ + return onlineUserInfo_; +} + +int DescribeLiveDomainOnlineUserNumResult::getUserCount()const +{ + return userCount_; +} + diff --git a/live/src/model/DescribeLiveDomainRealTimeBpsDataResult.cc b/live/src/model/DescribeLiveDomainRealTimeBpsDataResult.cc index 106706de4..939d90205 100644 --- a/live/src/model/DescribeLiveDomainRealTimeBpsDataResult.cc +++ b/live/src/model/DescribeLiveDomainRealTimeBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainRealTimeBpsDataResult::~DescribeLiveDomainRealTimeBpsDataResul void DescribeLiveDomainRealTimeBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeBpsDataPerInterval = value["RealTimeBpsDataPerInterval"]["DataModule"]; for (auto value : allRealTimeBpsDataPerInterval) diff --git a/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc b/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc index 707df0cc7..7a46a6c19 100644 --- a/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc +++ b/live/src/model/DescribeLiveDomainRealTimeHttpCodeDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainRealTimeHttpCodeDataResult::~DescribeLiveDomainRealTimeHttpCod void DescribeLiveDomainRealTimeHttpCodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeHttpCodeData = value["RealTimeHttpCodeData"]["UsageData"]; for (auto value : allRealTimeHttpCodeData) diff --git a/live/src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc b/live/src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc index 460e7e520..1cef66642 100644 --- a/live/src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc +++ b/live/src/model/DescribeLiveDomainRealTimeTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainRealTimeTrafficDataResult::~DescribeLiveDomainRealTimeTrafficD void DescribeLiveDomainRealTimeTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeTrafficDataPerInterval = value["RealTimeTrafficDataPerInterval"]["DataModule"]; for (auto value : allRealTimeTrafficDataPerInterval) diff --git a/live/src/model/DescribeLiveDomainRecordDataResult.cc b/live/src/model/DescribeLiveDomainRecordDataResult.cc index b16faa3ff..8bb1d55bd 100644 --- a/live/src/model/DescribeLiveDomainRecordDataResult.cc +++ b/live/src/model/DescribeLiveDomainRecordDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainRecordDataResult::~DescribeLiveDomainRecordDataResult() void DescribeLiveDomainRecordDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordDataInfos = value["RecordDataInfos"]["RecordDataInfo"]; for (auto value : allRecordDataInfos) diff --git a/live/src/model/DescribeLiveDomainSnapshotDataResult.cc b/live/src/model/DescribeLiveDomainSnapshotDataResult.cc index c2812e477..f8b44b7b1 100644 --- a/live/src/model/DescribeLiveDomainSnapshotDataResult.cc +++ b/live/src/model/DescribeLiveDomainSnapshotDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainSnapshotDataResult::~DescribeLiveDomainSnapshotDataResult() void DescribeLiveDomainSnapshotDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSnapshotDataInfos = value["SnapshotDataInfos"]["SnapshotDataInfo"]; for (auto value : allSnapshotDataInfos) diff --git a/live/src/model/DescribeLiveDomainTrafficDataResult.cc b/live/src/model/DescribeLiveDomainTrafficDataResult.cc index daf95fd4f..3fc5baeb0 100644 --- a/live/src/model/DescribeLiveDomainTrafficDataResult.cc +++ b/live/src/model/DescribeLiveDomainTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainTrafficDataResult::~DescribeLiveDomainTrafficDataResult() void DescribeLiveDomainTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrafficDataPerInterval = value["TrafficDataPerInterval"]["DataModule"]; for (auto value : allTrafficDataPerInterval) diff --git a/live/src/model/DescribeLiveDomainTranscodeDataResult.cc b/live/src/model/DescribeLiveDomainTranscodeDataResult.cc index 14e96e947..7f150a6db 100644 --- a/live/src/model/DescribeLiveDomainTranscodeDataResult.cc +++ b/live/src/model/DescribeLiveDomainTranscodeDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveDomainTranscodeDataResult::~DescribeLiveDomainTranscodeDataResult() void DescribeLiveDomainTranscodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTranscodeDataInfos = value["TranscodeDataInfos"]["TranscodeDataInfo"]; for (auto value : allTranscodeDataInfos) diff --git a/live/src/model/DescribeLiveLazyPullStreamConfigResult.cc b/live/src/model/DescribeLiveLazyPullStreamConfigResult.cc index b02858395..afb1299a1 100644 --- a/live/src/model/DescribeLiveLazyPullStreamConfigResult.cc +++ b/live/src/model/DescribeLiveLazyPullStreamConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveLazyPullStreamConfigResult::~DescribeLiveLazyPullStreamConfigResult( void DescribeLiveLazyPullStreamConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveLazyPullConfigList = value["LiveLazyPullConfigList"]["LiveLazyPullConfig"]; for (auto value : allLiveLazyPullConfigList) diff --git a/live/src/model/DescribeLivePullStreamConfigResult.cc b/live/src/model/DescribeLivePullStreamConfigResult.cc index 0fe0784f7..48a2af5a7 100644 --- a/live/src/model/DescribeLivePullStreamConfigResult.cc +++ b/live/src/model/DescribeLivePullStreamConfigResult.cc @@ -35,10 +35,13 @@ DescribeLivePullStreamConfigResult::~DescribeLivePullStreamConfigResult() void DescribeLivePullStreamConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"]; for (auto value : allLiveAppRecordList) diff --git a/live/src/model/DescribeLiveRecordConfigResult.cc b/live/src/model/DescribeLiveRecordConfigResult.cc index 9dbc28748..f37e0bccc 100644 --- a/live/src/model/DescribeLiveRecordConfigResult.cc +++ b/live/src/model/DescribeLiveRecordConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveRecordConfigResult::~DescribeLiveRecordConfigResult() void DescribeLiveRecordConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"]; for (auto value : allLiveAppRecordList) diff --git a/live/src/model/DescribeLiveRecordNotifyConfigResult.cc b/live/src/model/DescribeLiveRecordNotifyConfigResult.cc index 3f1140ed4..784ee515b 100644 --- a/live/src/model/DescribeLiveRecordNotifyConfigResult.cc +++ b/live/src/model/DescribeLiveRecordNotifyConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveRecordNotifyConfigResult::~DescribeLiveRecordNotifyConfigResult() void DescribeLiveRecordNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto liveRecordNotifyConfigNode = value["LiveRecordNotifyConfig"]; if(!liveRecordNotifyConfigNode["DomainName"].isNull()) diff --git a/live/src/model/DescribeLiveRecordVodConfigsRequest.cc b/live/src/model/DescribeLiveRecordVodConfigsRequest.cc index 92bdf94ab..0ac008721 100644 --- a/live/src/model/DescribeLiveRecordVodConfigsRequest.cc +++ b/live/src/model/DescribeLiveRecordVodConfigsRequest.cc @@ -25,48 +25,37 @@ DescribeLiveRecordVodConfigsRequest::DescribeLiveRecordVodConfigsRequest() : DescribeLiveRecordVodConfigsRequest::~DescribeLiveRecordVodConfigsRequest() {} -std::string DescribeLiveRecordVodConfigsRequest::getAppName()const +long DescribeLiveRecordVodConfigsRequest::getCallerParentId()const { - return appName_; + return callerParentId_; } -void DescribeLiveRecordVodConfigsRequest::setAppName(const std::string& appName) +void DescribeLiveRecordVodConfigsRequest::setCallerParentId(long callerParentId) { - appName_ = appName; - setCoreParameter("AppName", appName); + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } -std::string DescribeLiveRecordVodConfigsRequest::getDomainName()const +bool DescribeLiveRecordVodConfigsRequest::getProxy_original_security_transport()const { - return domainName_; + return proxy_original_security_transport_; } -void DescribeLiveRecordVodConfigsRequest::setDomainName(const std::string& domainName) +void DescribeLiveRecordVodConfigsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { - domainName_ = domainName; - setCoreParameter("DomainName", domainName); + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } -long DescribeLiveRecordVodConfigsRequest::getPageSize()const +std::string DescribeLiveRecordVodConfigsRequest::getProxy_original_source_ip()const { - return pageSize_; + return proxy_original_source_ip_; } -void DescribeLiveRecordVodConfigsRequest::setPageSize(long pageSize) +void DescribeLiveRecordVodConfigsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -long DescribeLiveRecordVodConfigsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeLiveRecordVodConfigsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } long DescribeLiveRecordVodConfigsRequest::getPageNum()const @@ -80,6 +69,138 @@ void DescribeLiveRecordVodConfigsRequest::setPageNum(long pageNum) setCoreParameter("PageNum", std::to_string(pageNum)); } +std::string DescribeLiveRecordVodConfigsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeLiveRecordVodConfigsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeLiveRecordVodConfigsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeLiveRecordVodConfigsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeLiveRecordVodConfigsRequest::getEagleEyeRpcId()const +{ + return eagleEyeRpcId_; +} + +void DescribeLiveRecordVodConfigsRequest::setEagleEyeRpcId(const std::string& eagleEyeRpcId) +{ + eagleEyeRpcId_ = eagleEyeRpcId; + setCoreParameter("EagleEyeRpcId", eagleEyeRpcId); +} + +std::string DescribeLiveRecordVodConfigsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLiveRecordVodConfigsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeLiveRecordVodConfigsRequest::getEagleEyeTraceId()const +{ + return eagleEyeTraceId_; +} + +void DescribeLiveRecordVodConfigsRequest::setEagleEyeTraceId(const std::string& eagleEyeTraceId) +{ + eagleEyeTraceId_ = eagleEyeTraceId; + setCoreParameter("EagleEyeTraceId", eagleEyeTraceId); +} + +std::string DescribeLiveRecordVodConfigsRequest::getAppName()const +{ + return appName_; +} + +void DescribeLiveRecordVodConfigsRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setCoreParameter("AppName", appName); +} + +std::string DescribeLiveRecordVodConfigsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeLiveRecordVodConfigsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeLiveRecordVodConfigsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeLiveRecordVodConfigsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeLiveRecordVodConfigsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeLiveRecordVodConfigsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +long DescribeLiveRecordVodConfigsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeLiveRecordVodConfigsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeLiveRecordVodConfigsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeLiveRecordVodConfigsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeLiveRecordVodConfigsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeLiveRecordVodConfigsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + std::string DescribeLiveRecordVodConfigsRequest::getStreamName()const { return streamName_; @@ -91,3 +212,146 @@ void DescribeLiveRecordVodConfigsRequest::setStreamName(const std::string& strea setCoreParameter("StreamName", streamName); } +long DescribeLiveRecordVodConfigsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeLiveRecordVodConfigsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeLiveRecordVodConfigsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeLiveRecordVodConfigsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeLiveRecordVodConfigsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeLiveRecordVodConfigsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeLiveRecordVodConfigsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveRecordVodConfigsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeLiveRecordVodConfigsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeLiveRecordVodConfigsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeLiveRecordVodConfigsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveRecordVodConfigsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLiveRecordVodConfigsRequest::getVersion()const +{ + return version_; +} + +void DescribeLiveRecordVodConfigsRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeLiveRecordVodConfigsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeLiveRecordVodConfigsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeLiveRecordVodConfigsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeLiveRecordVodConfigsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeLiveRecordVodConfigsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeLiveRecordVodConfigsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeLiveRecordVodConfigsRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeLiveRecordVodConfigsRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeLiveRecordVodConfigsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeLiveRecordVodConfigsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeLiveRecordVodConfigsRequest::getEagleEyeUserData()const +{ + return eagleEyeUserData_; +} + +void DescribeLiveRecordVodConfigsRequest::setEagleEyeUserData(const std::string& eagleEyeUserData) +{ + eagleEyeUserData_ = eagleEyeUserData; + setCoreParameter("EagleEyeUserData", eagleEyeUserData); +} + diff --git a/live/src/model/DescribeLiveRecordVodConfigsResult.cc b/live/src/model/DescribeLiveRecordVodConfigsResult.cc index 74cdd5fe9..8b8e923a5 100644 --- a/live/src/model/DescribeLiveRecordVodConfigsResult.cc +++ b/live/src/model/DescribeLiveRecordVodConfigsResult.cc @@ -35,10 +35,13 @@ DescribeLiveRecordVodConfigsResult::~DescribeLiveRecordVodConfigsResult() void DescribeLiveRecordVodConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveRecordVodConfigs = value["LiveRecordVodConfigs"]["LiveRecordVodConfig"]; for (auto value : allLiveRecordVodConfigs) diff --git a/live/src/model/DescribeLiveSnapshotConfigResult.cc b/live/src/model/DescribeLiveSnapshotConfigResult.cc index a4b2427a0..b52fc086c 100644 --- a/live/src/model/DescribeLiveSnapshotConfigResult.cc +++ b/live/src/model/DescribeLiveSnapshotConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveSnapshotConfigResult::~DescribeLiveSnapshotConfigResult() void DescribeLiveSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveStreamSnapshotConfigList = value["LiveStreamSnapshotConfigList"]["LiveStreamSnapshotConfig"]; for (auto value : allLiveStreamSnapshotConfigList) diff --git a/live/src/model/DescribeLiveSnapshotDetectPornConfigResult.cc b/live/src/model/DescribeLiveSnapshotDetectPornConfigResult.cc index c3b9012be..c085a1218 100644 --- a/live/src/model/DescribeLiveSnapshotDetectPornConfigResult.cc +++ b/live/src/model/DescribeLiveSnapshotDetectPornConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveSnapshotDetectPornConfigResult::~DescribeLiveSnapshotDetectPornConfi void DescribeLiveSnapshotDetectPornConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveSnapshotDetectPornConfigList = value["LiveSnapshotDetectPornConfigList"]["LiveSnapshotDetectPornConfig"]; for (auto value : allLiveSnapshotDetectPornConfigList) diff --git a/live/src/model/DescribeLiveStreamBitRateDataResult.cc b/live/src/model/DescribeLiveStreamBitRateDataResult.cc index 1cc88eba6..d6d69bdb7 100644 --- a/live/src/model/DescribeLiveStreamBitRateDataResult.cc +++ b/live/src/model/DescribeLiveStreamBitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamBitRateDataResult::~DescribeLiveStreamBitRateDataResult() void DescribeLiveStreamBitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"]; for (auto value : allFrameRateAndBitRateInfos) diff --git a/live/src/model/DescribeLiveStreamCountResult.cc b/live/src/model/DescribeLiveStreamCountResult.cc index d9a7b1426..d3786c573 100644 --- a/live/src/model/DescribeLiveStreamCountResult.cc +++ b/live/src/model/DescribeLiveStreamCountResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamCountResult::~DescribeLiveStreamCountResult() void DescribeLiveStreamCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStreamCountInfos = value["StreamCountInfos"]["StreamCountInfo"]; for (auto value : allStreamCountInfos) diff --git a/live/src/model/DescribeLiveStreamDelayConfigResult.cc b/live/src/model/DescribeLiveStreamDelayConfigResult.cc index e8548daa5..b24b2569b 100644 --- a/live/src/model/DescribeLiveStreamDelayConfigResult.cc +++ b/live/src/model/DescribeLiveStreamDelayConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamDelayConfigResult::~DescribeLiveStreamDelayConfigResult() void DescribeLiveStreamDelayConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto liveStreamHlsDelayConfigNode = value["LiveStreamHlsDelayConfig"]; if(!liveStreamHlsDelayConfigNode["Level"].isNull()) diff --git a/live/src/model/DescribeLiveStreamHistoryUserNumResult.cc b/live/src/model/DescribeLiveStreamHistoryUserNumResult.cc index f19099937..aea2e05e5 100644 --- a/live/src/model/DescribeLiveStreamHistoryUserNumResult.cc +++ b/live/src/model/DescribeLiveStreamHistoryUserNumResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamHistoryUserNumResult::~DescribeLiveStreamHistoryUserNumResult( void DescribeLiveStreamHistoryUserNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveStreamUserNumInfos = value["LiveStreamUserNumInfos"]["LiveStreamUserNumInfo"]; for (auto value : allLiveStreamUserNumInfos) diff --git a/live/src/model/DescribeLiveStreamOnlineUserNumResult.cc b/live/src/model/DescribeLiveStreamOnlineUserNumResult.cc index e8c22c541..d9b343c76 100644 --- a/live/src/model/DescribeLiveStreamOnlineUserNumResult.cc +++ b/live/src/model/DescribeLiveStreamOnlineUserNumResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamOnlineUserNumResult::~DescribeLiveStreamOnlineUserNumResult() void DescribeLiveStreamOnlineUserNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"]; for (auto value : allOnlineUserInfo) diff --git a/live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc b/live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc index 258a5c477..c201e9973 100644 --- a/live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc +++ b/live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamOptimizedFeatureConfigResult::~DescribeLiveStreamOptimizedFeat void DescribeLiveStreamOptimizedFeatureConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveStreamOptimizedFeatureConfigList = value["LiveStreamOptimizedFeatureConfigList"]["LiveStreamOptimizedFeatureConfig"]; for (auto value : allLiveStreamOptimizedFeatureConfigList) diff --git a/live/src/model/DescribeLiveStreamRecordContentResult.cc b/live/src/model/DescribeLiveStreamRecordContentResult.cc index 6685cf776..04c06d4d3 100644 --- a/live/src/model/DescribeLiveStreamRecordContentResult.cc +++ b/live/src/model/DescribeLiveStreamRecordContentResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamRecordContentResult::~DescribeLiveStreamRecordContentResult() void DescribeLiveStreamRecordContentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordContentInfoList = value["RecordContentInfoList"]["RecordContentInfo"]; for (auto value : allRecordContentInfoList) diff --git a/live/src/model/DescribeLiveStreamRecordIndexFileResult.cc b/live/src/model/DescribeLiveStreamRecordIndexFileResult.cc index b09975e3f..fa5ba4811 100644 --- a/live/src/model/DescribeLiveStreamRecordIndexFileResult.cc +++ b/live/src/model/DescribeLiveStreamRecordIndexFileResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamRecordIndexFileResult::~DescribeLiveStreamRecordIndexFileResul void DescribeLiveStreamRecordIndexFileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto recordIndexInfoNode = value["RecordIndexInfo"]; if(!recordIndexInfoNode["RecordId"].isNull()) diff --git a/live/src/model/DescribeLiveStreamRecordIndexFilesResult.cc b/live/src/model/DescribeLiveStreamRecordIndexFilesResult.cc index 01a02f153..1a41cb6c6 100644 --- a/live/src/model/DescribeLiveStreamRecordIndexFilesResult.cc +++ b/live/src/model/DescribeLiveStreamRecordIndexFilesResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamRecordIndexFilesResult::~DescribeLiveStreamRecordIndexFilesRes void DescribeLiveStreamRecordIndexFilesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordIndexInfoList = value["RecordIndexInfoList"]["RecordIndexInfo"]; for (auto value : allRecordIndexInfoList) diff --git a/live/src/model/DescribeLiveStreamSnapshotInfoResult.cc b/live/src/model/DescribeLiveStreamSnapshotInfoResult.cc index 550ddc324..a8047862c 100644 --- a/live/src/model/DescribeLiveStreamSnapshotInfoResult.cc +++ b/live/src/model/DescribeLiveStreamSnapshotInfoResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamSnapshotInfoResult::~DescribeLiveStreamSnapshotInfoResult() void DescribeLiveStreamSnapshotInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveStreamSnapshotInfoList = value["LiveStreamSnapshotInfoList"]["LiveStreamSnapshotInfo"]; for (auto value : allLiveStreamSnapshotInfoList) diff --git a/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc b/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc index 79f5801b6..b9a514f46 100644 --- a/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc +++ b/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamTranscodeInfoResult::~DescribeLiveStreamTranscodeInfoResult() void DescribeLiveStreamTranscodeInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainTranscodeList = value["DomainTranscodeList"]["DomainTranscodeInfo"]; for (auto value : allDomainTranscodeList) diff --git a/live/src/model/DescribeLiveStreamTranscodeStreamNumResult.cc b/live/src/model/DescribeLiveStreamTranscodeStreamNumResult.cc index 3600d26f1..8221f1d3f 100644 --- a/live/src/model/DescribeLiveStreamTranscodeStreamNumResult.cc +++ b/live/src/model/DescribeLiveStreamTranscodeStreamNumResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamTranscodeStreamNumResult::~DescribeLiveStreamTranscodeStreamNu void DescribeLiveStreamTranscodeStreamNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Total"].isNull()) total_ = std::stol(value["Total"].asString()); diff --git a/live/src/model/DescribeLiveStreamsBlockListResult.cc b/live/src/model/DescribeLiveStreamsBlockListResult.cc index 555473abc..eef83820a 100644 --- a/live/src/model/DescribeLiveStreamsBlockListResult.cc +++ b/live/src/model/DescribeLiveStreamsBlockListResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsBlockListResult::~DescribeLiveStreamsBlockListResult() void DescribeLiveStreamsBlockListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStreamUrls = value["StreamUrls"]["StreamUrl"]; for (const auto &item : allStreamUrls) diff --git a/live/src/model/DescribeLiveStreamsControlHistoryResult.cc b/live/src/model/DescribeLiveStreamsControlHistoryResult.cc index c494e6504..b68a0baf8 100644 --- a/live/src/model/DescribeLiveStreamsControlHistoryResult.cc +++ b/live/src/model/DescribeLiveStreamsControlHistoryResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsControlHistoryResult::~DescribeLiveStreamsControlHistoryResul void DescribeLiveStreamsControlHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allControlInfo = value["ControlInfo"]["LiveStreamControlInfo"]; for (auto value : allControlInfo) diff --git a/live/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc b/live/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc index 395ada651..311a2a832 100644 --- a/live/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc +++ b/live/src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsFrameRateAndBitRateDataResult::~DescribeLiveStreamsFrameRateA void DescribeLiveStreamsFrameRateAndBitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"]; for (auto value : allFrameRateAndBitRateInfos) diff --git a/live/src/model/DescribeLiveStreamsNotifyUrlConfigResult.cc b/live/src/model/DescribeLiveStreamsNotifyUrlConfigResult.cc index 0da538600..ac3734614 100644 --- a/live/src/model/DescribeLiveStreamsNotifyUrlConfigResult.cc +++ b/live/src/model/DescribeLiveStreamsNotifyUrlConfigResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsNotifyUrlConfigResult::~DescribeLiveStreamsNotifyUrlConfigRes void DescribeLiveStreamsNotifyUrlConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto liveStreamsNotifyConfigNode = value["LiveStreamsNotifyConfig"]; if(!liveStreamsNotifyConfigNode["DomainName"].isNull()) diff --git a/live/src/model/DescribeLiveStreamsOnlineListResult.cc b/live/src/model/DescribeLiveStreamsOnlineListResult.cc index dbac0cd06..7ce197279 100644 --- a/live/src/model/DescribeLiveStreamsOnlineListResult.cc +++ b/live/src/model/DescribeLiveStreamsOnlineListResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsOnlineListResult::~DescribeLiveStreamsOnlineListResult() void DescribeLiveStreamsOnlineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOnlineInfo = value["OnlineInfo"]["LiveStreamOnlineInfo"]; for (auto value : allOnlineInfo) diff --git a/live/src/model/DescribeLiveStreamsPublishListResult.cc b/live/src/model/DescribeLiveStreamsPublishListResult.cc index 4605a48f4..bf1e972d7 100644 --- a/live/src/model/DescribeLiveStreamsPublishListResult.cc +++ b/live/src/model/DescribeLiveStreamsPublishListResult.cc @@ -35,10 +35,13 @@ DescribeLiveStreamsPublishListResult::~DescribeLiveStreamsPublishListResult() void DescribeLiveStreamsPublishListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPublishInfo = value["PublishInfo"]["LiveStreamPublishInfo"]; for (auto value : allPublishInfo) diff --git a/live/src/model/DescribeLiveTopDomainsByFlowResult.cc b/live/src/model/DescribeLiveTopDomainsByFlowResult.cc index 8630b0881..09820f8c6 100644 --- a/live/src/model/DescribeLiveTopDomainsByFlowResult.cc +++ b/live/src/model/DescribeLiveTopDomainsByFlowResult.cc @@ -35,10 +35,13 @@ DescribeLiveTopDomainsByFlowResult::~DescribeLiveTopDomainsByFlowResult() void DescribeLiveTopDomainsByFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopDomains = value["TopDomains"]["TopDomain"]; for (auto value : allTopDomains) diff --git a/live/src/model/DescribeLiveUserDomainsResult.cc b/live/src/model/DescribeLiveUserDomainsResult.cc index ea75f9542..1062bb682 100644 --- a/live/src/model/DescribeLiveUserDomainsResult.cc +++ b/live/src/model/DescribeLiveUserDomainsResult.cc @@ -35,10 +35,13 @@ DescribeLiveUserDomainsResult::~DescribeLiveUserDomainsResult() void DescribeLiveUserDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["PageData"]; for (auto value : allDomains) diff --git a/live/src/model/DescribeRecordResult.cc b/live/src/model/DescribeRecordResult.cc index 98c2d2315..3686f4801 100644 --- a/live/src/model/DescribeRecordResult.cc +++ b/live/src/model/DescribeRecordResult.cc @@ -35,10 +35,13 @@ DescribeRecordResult::~DescribeRecordResult() void DescribeRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = value["RecordId"].asString(); diff --git a/live/src/model/DescribeRecordsResult.cc b/live/src/model/DescribeRecordsResult.cc index 1d4355501..4df716a95 100644 --- a/live/src/model/DescribeRecordsResult.cc +++ b/live/src/model/DescribeRecordsResult.cc @@ -35,10 +35,13 @@ DescribeRecordsResult::~DescribeRecordsResult() void DescribeRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecords = value["Records"]["Record"]; for (auto value : allRecords) diff --git a/live/src/model/DescribeRoomKickoutUserListResult.cc b/live/src/model/DescribeRoomKickoutUserListResult.cc index 9d40abf75..7efa9f170 100644 --- a/live/src/model/DescribeRoomKickoutUserListResult.cc +++ b/live/src/model/DescribeRoomKickoutUserListResult.cc @@ -35,10 +35,13 @@ DescribeRoomKickoutUserListResult::~DescribeRoomKickoutUserListResult() void DescribeRoomKickoutUserListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserList = value["UserList"]["User"]; for (auto value : allUserList) diff --git a/live/src/model/DescribeRoomListResult.cc b/live/src/model/DescribeRoomListResult.cc index c99762b3f..2917fed3f 100644 --- a/live/src/model/DescribeRoomListResult.cc +++ b/live/src/model/DescribeRoomListResult.cc @@ -35,10 +35,13 @@ DescribeRoomListResult::~DescribeRoomListResult() void DescribeRoomListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRoomList = value["RoomList"]["Room"]; for (auto value : allRoomList) diff --git a/live/src/model/DescribeRoomStatusResult.cc b/live/src/model/DescribeRoomStatusResult.cc index 359030c7a..8298a3316 100644 --- a/live/src/model/DescribeRoomStatusResult.cc +++ b/live/src/model/DescribeRoomStatusResult.cc @@ -35,10 +35,13 @@ DescribeRoomStatusResult::~DescribeRoomStatusResult() void DescribeRoomStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RoomStatus"].isNull()) roomStatus_ = std::stoi(value["RoomStatus"].asString()); diff --git a/live/src/model/DescribeUpBpsPeakDataResult.cc b/live/src/model/DescribeUpBpsPeakDataResult.cc index 32c35256b..50d527d35 100644 --- a/live/src/model/DescribeUpBpsPeakDataResult.cc +++ b/live/src/model/DescribeUpBpsPeakDataResult.cc @@ -35,10 +35,13 @@ DescribeUpBpsPeakDataResult::~DescribeUpBpsPeakDataResult() void DescribeUpBpsPeakDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDescribeUpPeakTraffics = value["DescribeUpPeakTraffics"]["DescribeUpPeakTraffic"]; for (auto value : allDescribeUpPeakTraffics) diff --git a/live/src/model/DescribeUpBpsPeakOfLineResult.cc b/live/src/model/DescribeUpBpsPeakOfLineResult.cc index 6c9215446..02916a20e 100644 --- a/live/src/model/DescribeUpBpsPeakOfLineResult.cc +++ b/live/src/model/DescribeUpBpsPeakOfLineResult.cc @@ -35,10 +35,13 @@ DescribeUpBpsPeakOfLineResult::~DescribeUpBpsPeakOfLineResult() void DescribeUpBpsPeakOfLineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDescribeUpBpsPeakOfLines = value["DescribeUpBpsPeakOfLines"]["DescribeUpBpsPeakOfLine"]; for (auto value : allDescribeUpBpsPeakOfLines) diff --git a/live/src/model/DescribeUpPeakPublishStreamDataResult.cc b/live/src/model/DescribeUpPeakPublishStreamDataResult.cc index d93ebf3ce..ef5bada3e 100644 --- a/live/src/model/DescribeUpPeakPublishStreamDataResult.cc +++ b/live/src/model/DescribeUpPeakPublishStreamDataResult.cc @@ -35,10 +35,13 @@ DescribeUpPeakPublishStreamDataResult::~DescribeUpPeakPublishStreamDataResult() void DescribeUpPeakPublishStreamDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDescribeUpPeakPublishStreamDatas = value["DescribeUpPeakPublishStreamDatas"]["DescribeUpPeakPublishStreamData"]; for (auto value : allDescribeUpPeakPublishStreamDatas) diff --git a/live/src/model/EffectCasterUrgentResult.cc b/live/src/model/EffectCasterUrgentResult.cc index 6a23c8735..1dbaabcae 100644 --- a/live/src/model/EffectCasterUrgentResult.cc +++ b/live/src/model/EffectCasterUrgentResult.cc @@ -35,10 +35,13 @@ EffectCasterUrgentResult::~EffectCasterUrgentResult() void EffectCasterUrgentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/EffectCasterVideoResourceResult.cc b/live/src/model/EffectCasterVideoResourceResult.cc index 8798d74fb..23fd80b2f 100644 --- a/live/src/model/EffectCasterVideoResourceResult.cc +++ b/live/src/model/EffectCasterVideoResourceResult.cc @@ -35,10 +35,13 @@ EffectCasterVideoResourceResult::~EffectCasterVideoResourceResult() void EffectCasterVideoResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/ForbidLiveStreamResult.cc b/live/src/model/ForbidLiveStreamResult.cc index a3a76b8dc..398497bee 100644 --- a/live/src/model/ForbidLiveStreamResult.cc +++ b/live/src/model/ForbidLiveStreamResult.cc @@ -35,10 +35,13 @@ ForbidLiveStreamResult::~ForbidLiveStreamResult() void ForbidLiveStreamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/ForbidPushStreamResult.cc b/live/src/model/ForbidPushStreamResult.cc index 3365816dd..f05c20240 100644 --- a/live/src/model/ForbidPushStreamResult.cc +++ b/live/src/model/ForbidPushStreamResult.cc @@ -35,10 +35,13 @@ ForbidPushStreamResult::~ForbidPushStreamResult() void ForbidPushStreamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/JoinBoardResult.cc b/live/src/model/JoinBoardResult.cc index 1f4ceb494..f6158f9e5 100644 --- a/live/src/model/JoinBoardResult.cc +++ b/live/src/model/JoinBoardResult.cc @@ -35,10 +35,13 @@ JoinBoardResult::~JoinBoardResult() void JoinBoardResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Token"].isNull()) token_ = value["Token"].asString(); diff --git a/live/src/model/ModifyCasterComponentResult.cc b/live/src/model/ModifyCasterComponentResult.cc index 1a3e14745..e6526e376 100644 --- a/live/src/model/ModifyCasterComponentResult.cc +++ b/live/src/model/ModifyCasterComponentResult.cc @@ -35,10 +35,13 @@ ModifyCasterComponentResult::~ModifyCasterComponentResult() void ModifyCasterComponentResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ComponentId"].isNull()) componentId_ = value["ComponentId"].asString(); diff --git a/live/src/model/ModifyCasterEpisodeResult.cc b/live/src/model/ModifyCasterEpisodeResult.cc index d665be1ed..d988eaee4 100644 --- a/live/src/model/ModifyCasterEpisodeResult.cc +++ b/live/src/model/ModifyCasterEpisodeResult.cc @@ -35,10 +35,13 @@ ModifyCasterEpisodeResult::~ModifyCasterEpisodeResult() void ModifyCasterEpisodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/ModifyCasterLayoutResult.cc b/live/src/model/ModifyCasterLayoutResult.cc index 937345d2e..a4dfbb55b 100644 --- a/live/src/model/ModifyCasterLayoutResult.cc +++ b/live/src/model/ModifyCasterLayoutResult.cc @@ -35,10 +35,13 @@ ModifyCasterLayoutResult::~ModifyCasterLayoutResult() void ModifyCasterLayoutResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["LayoutId"].isNull()) layoutId_ = value["LayoutId"].asString(); diff --git a/live/src/model/ModifyCasterProgramResult.cc b/live/src/model/ModifyCasterProgramResult.cc index 35d394121..1584327ab 100644 --- a/live/src/model/ModifyCasterProgramResult.cc +++ b/live/src/model/ModifyCasterProgramResult.cc @@ -35,10 +35,13 @@ ModifyCasterProgramResult::~ModifyCasterProgramResult() void ModifyCasterProgramResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/ModifyCasterVideoResourceResult.cc b/live/src/model/ModifyCasterVideoResourceResult.cc index 96f2e581a..73e560549 100644 --- a/live/src/model/ModifyCasterVideoResourceResult.cc +++ b/live/src/model/ModifyCasterVideoResourceResult.cc @@ -35,10 +35,13 @@ ModifyCasterVideoResourceResult::~ModifyCasterVideoResourceResult() void ModifyCasterVideoResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/ModifyLiveDomainSchdmByPropertyResult.cc b/live/src/model/ModifyLiveDomainSchdmByPropertyResult.cc index bfbc73dc3..bfc7bcf87 100644 --- a/live/src/model/ModifyLiveDomainSchdmByPropertyResult.cc +++ b/live/src/model/ModifyLiveDomainSchdmByPropertyResult.cc @@ -35,10 +35,13 @@ ModifyLiveDomainSchdmByPropertyResult::~ModifyLiveDomainSchdmByPropertyResult() void ModifyLiveDomainSchdmByPropertyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/RealTimeRecordCommandResult.cc b/live/src/model/RealTimeRecordCommandResult.cc index a1db6bb1d..34dbe9100 100644 --- a/live/src/model/RealTimeRecordCommandResult.cc +++ b/live/src/model/RealTimeRecordCommandResult.cc @@ -35,10 +35,13 @@ RealTimeRecordCommandResult::~RealTimeRecordCommandResult() void RealTimeRecordCommandResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/RealTimeSnapshotCommandResult.cc b/live/src/model/RealTimeSnapshotCommandResult.cc index 8ae135fa9..8f369e48c 100644 --- a/live/src/model/RealTimeSnapshotCommandResult.cc +++ b/live/src/model/RealTimeSnapshotCommandResult.cc @@ -35,10 +35,13 @@ RealTimeSnapshotCommandResult::~RealTimeSnapshotCommandResult() void RealTimeSnapshotCommandResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/ResumeLiveStreamResult.cc b/live/src/model/ResumeLiveStreamResult.cc index 409f123e1..5c841eb08 100644 --- a/live/src/model/ResumeLiveStreamResult.cc +++ b/live/src/model/ResumeLiveStreamResult.cc @@ -35,10 +35,13 @@ ResumeLiveStreamResult::~ResumeLiveStreamResult() void ResumeLiveStreamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SendRoomNotificationResult.cc b/live/src/model/SendRoomNotificationResult.cc index 15be89833..2994259f2 100644 --- a/live/src/model/SendRoomNotificationResult.cc +++ b/live/src/model/SendRoomNotificationResult.cc @@ -35,10 +35,13 @@ SendRoomNotificationResult::~SendRoomNotificationResult() void SendRoomNotificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MessageId"].isNull()) messageId_ = value["MessageId"].asString(); diff --git a/live/src/model/SendRoomUserNotificationResult.cc b/live/src/model/SendRoomUserNotificationResult.cc index e5890d994..0561c5cb4 100644 --- a/live/src/model/SendRoomUserNotificationResult.cc +++ b/live/src/model/SendRoomUserNotificationResult.cc @@ -35,10 +35,13 @@ SendRoomUserNotificationResult::~SendRoomUserNotificationResult() void SendRoomUserNotificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MessageId"].isNull()) messageId_ = value["MessageId"].asString(); diff --git a/live/src/model/SetBoardCallbackResult.cc b/live/src/model/SetBoardCallbackResult.cc index 9e5b38e86..ad8266261 100644 --- a/live/src/model/SetBoardCallbackResult.cc +++ b/live/src/model/SetBoardCallbackResult.cc @@ -35,10 +35,13 @@ SetBoardCallbackResult::~SetBoardCallbackResult() void SetBoardCallbackResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SetCasterChannelResult.cc b/live/src/model/SetCasterChannelResult.cc index 79ca364d4..afdb5eb2b 100644 --- a/live/src/model/SetCasterChannelResult.cc +++ b/live/src/model/SetCasterChannelResult.cc @@ -35,10 +35,13 @@ SetCasterChannelResult::~SetCasterChannelResult() void SetCasterChannelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SetCasterConfigResult.cc b/live/src/model/SetCasterConfigResult.cc index b9b53da5a..8f99c1474 100644 --- a/live/src/model/SetCasterConfigResult.cc +++ b/live/src/model/SetCasterConfigResult.cc @@ -35,10 +35,13 @@ SetCasterConfigResult::~SetCasterConfigResult() void SetCasterConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CasterId"].isNull()) casterId_ = value["CasterId"].asString(); diff --git a/live/src/model/SetCasterSceneConfigResult.cc b/live/src/model/SetCasterSceneConfigResult.cc index 4d203b6e4..5eb7b8bcd 100644 --- a/live/src/model/SetCasterSceneConfigResult.cc +++ b/live/src/model/SetCasterSceneConfigResult.cc @@ -35,10 +35,13 @@ SetCasterSceneConfigResult::~SetCasterSceneConfigResult() void SetCasterSceneConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SetLiveDomainCertificateResult.cc b/live/src/model/SetLiveDomainCertificateResult.cc index ff2932aa3..70cf298cd 100644 --- a/live/src/model/SetLiveDomainCertificateResult.cc +++ b/live/src/model/SetLiveDomainCertificateResult.cc @@ -35,10 +35,13 @@ SetLiveDomainCertificateResult::~SetLiveDomainCertificateResult() void SetLiveDomainCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SetLiveLazyPullStreamInfoConfigResult.cc b/live/src/model/SetLiveLazyPullStreamInfoConfigResult.cc index 1546c05fa..7e00a3c4d 100644 --- a/live/src/model/SetLiveLazyPullStreamInfoConfigResult.cc +++ b/live/src/model/SetLiveLazyPullStreamInfoConfigResult.cc @@ -35,10 +35,13 @@ SetLiveLazyPullStreamInfoConfigResult::~SetLiveLazyPullStreamInfoConfigResult() void SetLiveLazyPullStreamInfoConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SetLiveStreamDelayConfigResult.cc b/live/src/model/SetLiveStreamDelayConfigResult.cc index 1871e6b08..0ba84d9ea 100644 --- a/live/src/model/SetLiveStreamDelayConfigResult.cc +++ b/live/src/model/SetLiveStreamDelayConfigResult.cc @@ -35,10 +35,13 @@ SetLiveStreamDelayConfigResult::~SetLiveStreamDelayConfigResult() void SetLiveStreamDelayConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SetLiveStreamOptimizedFeatureConfigResult.cc b/live/src/model/SetLiveStreamOptimizedFeatureConfigResult.cc index 444f6d11f..df6d5230a 100644 --- a/live/src/model/SetLiveStreamOptimizedFeatureConfigResult.cc +++ b/live/src/model/SetLiveStreamOptimizedFeatureConfigResult.cc @@ -35,10 +35,13 @@ SetLiveStreamOptimizedFeatureConfigResult::~SetLiveStreamOptimizedFeatureConfigR void SetLiveStreamOptimizedFeatureConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/SetLiveStreamsNotifyUrlConfigResult.cc b/live/src/model/SetLiveStreamsNotifyUrlConfigResult.cc index d299cd116..66492ae5d 100644 --- a/live/src/model/SetLiveStreamsNotifyUrlConfigResult.cc +++ b/live/src/model/SetLiveStreamsNotifyUrlConfigResult.cc @@ -35,10 +35,13 @@ SetLiveStreamsNotifyUrlConfigResult::~SetLiveStreamsNotifyUrlConfigResult() void SetLiveStreamsNotifyUrlConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/StartBoardRecordResult.cc b/live/src/model/StartBoardRecordResult.cc index 19591ee73..c474821ac 100644 --- a/live/src/model/StartBoardRecordResult.cc +++ b/live/src/model/StartBoardRecordResult.cc @@ -35,10 +35,13 @@ StartBoardRecordResult::~StartBoardRecordResult() void StartBoardRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = value["RecordId"].asString(); diff --git a/live/src/model/StartCasterResult.cc b/live/src/model/StartCasterResult.cc index 9d4448770..06aba9776 100644 --- a/live/src/model/StartCasterResult.cc +++ b/live/src/model/StartCasterResult.cc @@ -35,10 +35,13 @@ StartCasterResult::~StartCasterResult() void StartCasterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPvwSceneInfos = value["PvwSceneInfos"]["SceneInfo"]; for (auto value : allPvwSceneInfos) diff --git a/live/src/model/StartCasterSceneResult.cc b/live/src/model/StartCasterSceneResult.cc index 9bc09352c..66d8cd380 100644 --- a/live/src/model/StartCasterSceneResult.cc +++ b/live/src/model/StartCasterSceneResult.cc @@ -35,10 +35,13 @@ StartCasterSceneResult::~StartCasterSceneResult() void StartCasterSceneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["StreamUrl"].isNull()) streamUrl_ = value["StreamUrl"].asString(); diff --git a/live/src/model/StartLiveDomainResult.cc b/live/src/model/StartLiveDomainResult.cc index 6c1be8cc7..bffea4329 100644 --- a/live/src/model/StartLiveDomainResult.cc +++ b/live/src/model/StartLiveDomainResult.cc @@ -35,10 +35,13 @@ StartLiveDomainResult::~StartLiveDomainResult() void StartLiveDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/StartLiveIndexResult.cc b/live/src/model/StartLiveIndexResult.cc index c1599edb9..3f9c9fe31 100644 --- a/live/src/model/StartLiveIndexResult.cc +++ b/live/src/model/StartLiveIndexResult.cc @@ -35,10 +35,13 @@ StartLiveIndexResult::~StartLiveIndexResult() void StartLiveIndexResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); diff --git a/live/src/model/StopCasterResult.cc b/live/src/model/StopCasterResult.cc index 27f251f20..fe4526568 100644 --- a/live/src/model/StopCasterResult.cc +++ b/live/src/model/StopCasterResult.cc @@ -35,10 +35,13 @@ StopCasterResult::~StopCasterResult() void StopCasterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/StopCasterSceneResult.cc b/live/src/model/StopCasterSceneResult.cc index 7a807bbfd..8a2823339 100644 --- a/live/src/model/StopCasterSceneResult.cc +++ b/live/src/model/StopCasterSceneResult.cc @@ -35,10 +35,13 @@ StopCasterSceneResult::~StopCasterSceneResult() void StopCasterSceneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/StopLiveDomainResult.cc b/live/src/model/StopLiveDomainResult.cc index 938561b76..83c23f500 100644 --- a/live/src/model/StopLiveDomainResult.cc +++ b/live/src/model/StopLiveDomainResult.cc @@ -35,10 +35,13 @@ StopLiveDomainResult::~StopLiveDomainResult() void StopLiveDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/StopLiveIndexResult.cc b/live/src/model/StopLiveIndexResult.cc index 83c64a91c..d762428d5 100644 --- a/live/src/model/StopLiveIndexResult.cc +++ b/live/src/model/StopLiveIndexResult.cc @@ -35,10 +35,13 @@ StopLiveIndexResult::~StopLiveIndexResult() void StopLiveIndexResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateBoardCallbackResult.cc b/live/src/model/UpdateBoardCallbackResult.cc index fea89c451..9f50287e7 100644 --- a/live/src/model/UpdateBoardCallbackResult.cc +++ b/live/src/model/UpdateBoardCallbackResult.cc @@ -35,10 +35,13 @@ UpdateBoardCallbackResult::~UpdateBoardCallbackResult() void UpdateBoardCallbackResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateBoardResult.cc b/live/src/model/UpdateBoardResult.cc index 6fad19643..d57816800 100644 --- a/live/src/model/UpdateBoardResult.cc +++ b/live/src/model/UpdateBoardResult.cc @@ -35,10 +35,13 @@ UpdateBoardResult::~UpdateBoardResult() void UpdateBoardResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateCasterSceneAudioResult.cc b/live/src/model/UpdateCasterSceneAudioResult.cc index 339025bd7..f80005b17 100644 --- a/live/src/model/UpdateCasterSceneAudioResult.cc +++ b/live/src/model/UpdateCasterSceneAudioResult.cc @@ -35,10 +35,13 @@ UpdateCasterSceneAudioResult::~UpdateCasterSceneAudioResult() void UpdateCasterSceneAudioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateCasterSceneConfigResult.cc b/live/src/model/UpdateCasterSceneConfigResult.cc index 4d4cf60c9..7ce088d4c 100644 --- a/live/src/model/UpdateCasterSceneConfigResult.cc +++ b/live/src/model/UpdateCasterSceneConfigResult.cc @@ -35,10 +35,13 @@ UpdateCasterSceneConfigResult::~UpdateCasterSceneConfigResult() void UpdateCasterSceneConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateLiveAppSnapshotConfigResult.cc b/live/src/model/UpdateLiveAppSnapshotConfigResult.cc index f5a85f420..54606ee11 100644 --- a/live/src/model/UpdateLiveAppSnapshotConfigResult.cc +++ b/live/src/model/UpdateLiveAppSnapshotConfigResult.cc @@ -35,10 +35,13 @@ UpdateLiveAppSnapshotConfigResult::~UpdateLiveAppSnapshotConfigResult() void UpdateLiveAppSnapshotConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateLiveDetectNotifyConfigResult.cc b/live/src/model/UpdateLiveDetectNotifyConfigResult.cc index d37eb5ec2..d37dcc6ea 100644 --- a/live/src/model/UpdateLiveDetectNotifyConfigResult.cc +++ b/live/src/model/UpdateLiveDetectNotifyConfigResult.cc @@ -35,10 +35,13 @@ UpdateLiveDetectNotifyConfigResult::~UpdateLiveDetectNotifyConfigResult() void UpdateLiveDetectNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateLiveRecordNotifyConfigResult.cc b/live/src/model/UpdateLiveRecordNotifyConfigResult.cc index 3f905006b..0ea662f54 100644 --- a/live/src/model/UpdateLiveRecordNotifyConfigResult.cc +++ b/live/src/model/UpdateLiveRecordNotifyConfigResult.cc @@ -35,10 +35,13 @@ UpdateLiveRecordNotifyConfigResult::~UpdateLiveRecordNotifyConfigResult() void UpdateLiveRecordNotifyConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateLiveSnapshotDetectPornConfigResult.cc b/live/src/model/UpdateLiveSnapshotDetectPornConfigResult.cc index b4a2a8f97..3eee4e527 100644 --- a/live/src/model/UpdateLiveSnapshotDetectPornConfigResult.cc +++ b/live/src/model/UpdateLiveSnapshotDetectPornConfigResult.cc @@ -35,10 +35,13 @@ UpdateLiveSnapshotDetectPornConfigResult::~UpdateLiveSnapshotDetectPornConfigRes void UpdateLiveSnapshotDetectPornConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/live/src/model/UpdateLiveTopLevelDomainResult.cc b/live/src/model/UpdateLiveTopLevelDomainResult.cc index ee434872b..1b6e9b639 100644 --- a/live/src/model/UpdateLiveTopLevelDomainResult.cc +++ b/live/src/model/UpdateLiveTopLevelDomainResult.cc @@ -35,10 +35,13 @@ UpdateLiveTopLevelDomainResult::~UpdateLiveTopLevelDomainResult() void UpdateLiveTopLevelDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/lubancloud/CMakeLists.txt b/lubancloud/CMakeLists.txt index 9c6b221a8..1df57f05f 100644 --- a/lubancloud/CMakeLists.txt +++ b/lubancloud/CMakeLists.txt @@ -23,10 +23,10 @@ set(lubancloud_public_header set(lubancloud_public_header_model include/alibabacloud/lubancloud/model/QueryCutoutTaskResultRequest.h include/alibabacloud/lubancloud/model/QueryCutoutTaskResultResult.h - include/alibabacloud/lubancloud/model/SubmitGenerateTaskRequest.h - include/alibabacloud/lubancloud/model/SubmitGenerateTaskResult.h include/alibabacloud/lubancloud/model/BuyOriginPicturesRequest.h include/alibabacloud/lubancloud/model/BuyOriginPicturesResult.h + include/alibabacloud/lubancloud/model/SubmitGenerateTaskRequest.h + include/alibabacloud/lubancloud/model/SubmitGenerateTaskResult.h include/alibabacloud/lubancloud/model/SubmitCutoutTaskRequest.h include/alibabacloud/lubancloud/model/SubmitCutoutTaskResult.h include/alibabacloud/lubancloud/model/QueryGenerateTaskResultRequest.h @@ -38,10 +38,10 @@ set(lubancloud_src src/LubancloudClient.cc src/model/QueryCutoutTaskResultRequest.cc src/model/QueryCutoutTaskResultResult.cc - src/model/SubmitGenerateTaskRequest.cc - src/model/SubmitGenerateTaskResult.cc src/model/BuyOriginPicturesRequest.cc src/model/BuyOriginPicturesResult.cc + src/model/SubmitGenerateTaskRequest.cc + src/model/SubmitGenerateTaskResult.cc src/model/SubmitCutoutTaskRequest.cc src/model/SubmitCutoutTaskResult.cc src/model/QueryGenerateTaskResultRequest.cc diff --git a/lubancloud/include/alibabacloud/lubancloud/LubancloudClient.h b/lubancloud/include/alibabacloud/lubancloud/LubancloudClient.h index 8d2784abe..d1608c4d2 100644 --- a/lubancloud/include/alibabacloud/lubancloud/LubancloudClient.h +++ b/lubancloud/include/alibabacloud/lubancloud/LubancloudClient.h @@ -24,10 +24,10 @@ #include "LubancloudExport.h" #include "model/QueryCutoutTaskResultRequest.h" #include "model/QueryCutoutTaskResultResult.h" -#include "model/SubmitGenerateTaskRequest.h" -#include "model/SubmitGenerateTaskResult.h" #include "model/BuyOriginPicturesRequest.h" #include "model/BuyOriginPicturesResult.h" +#include "model/SubmitGenerateTaskRequest.h" +#include "model/SubmitGenerateTaskResult.h" #include "model/SubmitCutoutTaskRequest.h" #include "model/SubmitCutoutTaskResult.h" #include "model/QueryGenerateTaskResultRequest.h" @@ -46,12 +46,12 @@ namespace AlibabaCloud typedef Outcome QueryCutoutTaskResultOutcome; typedef std::future QueryCutoutTaskResultOutcomeCallable; typedef std::function&)> QueryCutoutTaskResultAsyncHandler; - typedef Outcome SubmitGenerateTaskOutcome; - typedef std::future SubmitGenerateTaskOutcomeCallable; - typedef std::function&)> SubmitGenerateTaskAsyncHandler; typedef Outcome BuyOriginPicturesOutcome; typedef std::future BuyOriginPicturesOutcomeCallable; typedef std::function&)> BuyOriginPicturesAsyncHandler; + typedef Outcome SubmitGenerateTaskOutcome; + typedef std::future SubmitGenerateTaskOutcomeCallable; + typedef std::function&)> SubmitGenerateTaskAsyncHandler; typedef Outcome SubmitCutoutTaskOutcome; typedef std::future SubmitCutoutTaskOutcomeCallable; typedef std::function&)> SubmitCutoutTaskAsyncHandler; @@ -69,12 +69,12 @@ namespace AlibabaCloud QueryCutoutTaskResultOutcome queryCutoutTaskResult(const Model::QueryCutoutTaskResultRequest &request)const; void queryCutoutTaskResultAsync(const Model::QueryCutoutTaskResultRequest& request, const QueryCutoutTaskResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCutoutTaskResultOutcomeCallable queryCutoutTaskResultCallable(const Model::QueryCutoutTaskResultRequest& request) const; - SubmitGenerateTaskOutcome submitGenerateTask(const Model::SubmitGenerateTaskRequest &request)const; - void submitGenerateTaskAsync(const Model::SubmitGenerateTaskRequest& request, const SubmitGenerateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitGenerateTaskOutcomeCallable submitGenerateTaskCallable(const Model::SubmitGenerateTaskRequest& request) const; BuyOriginPicturesOutcome buyOriginPictures(const Model::BuyOriginPicturesRequest &request)const; void buyOriginPicturesAsync(const Model::BuyOriginPicturesRequest& request, const BuyOriginPicturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BuyOriginPicturesOutcomeCallable buyOriginPicturesCallable(const Model::BuyOriginPicturesRequest& request) const; + SubmitGenerateTaskOutcome submitGenerateTask(const Model::SubmitGenerateTaskRequest &request)const; + void submitGenerateTaskAsync(const Model::SubmitGenerateTaskRequest& request, const SubmitGenerateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitGenerateTaskOutcomeCallable submitGenerateTaskCallable(const Model::SubmitGenerateTaskRequest& request) const; SubmitCutoutTaskOutcome submitCutoutTask(const Model::SubmitCutoutTaskRequest &request)const; void submitCutoutTaskAsync(const Model::SubmitCutoutTaskRequest& request, const SubmitCutoutTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitCutoutTaskOutcomeCallable submitCutoutTaskCallable(const Model::SubmitCutoutTaskRequest& request) const; diff --git a/lubancloud/src/LubancloudClient.cc b/lubancloud/src/LubancloudClient.cc index 49de1de34..0fbcb15ec 100644 --- a/lubancloud/src/LubancloudClient.cc +++ b/lubancloud/src/LubancloudClient.cc @@ -31,21 +31,21 @@ LubancloudClient::LubancloudClient(const Credentials &credentials, const ClientC RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "luban"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "lubancloud"); } LubancloudClient::LubancloudClient(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, "luban"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "lubancloud"); } LubancloudClient::LubancloudClient(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, "luban"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "lubancloud"); } LubancloudClient::~LubancloudClient() @@ -87,42 +87,6 @@ LubancloudClient::QueryCutoutTaskResultOutcomeCallable LubancloudClient::queryCu return task->get_future(); } -LubancloudClient::SubmitGenerateTaskOutcome LubancloudClient::submitGenerateTask(const SubmitGenerateTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitGenerateTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitGenerateTaskOutcome(SubmitGenerateTaskResult(outcome.result())); - else - return SubmitGenerateTaskOutcome(outcome.error()); -} - -void LubancloudClient::submitGenerateTaskAsync(const SubmitGenerateTaskRequest& request, const SubmitGenerateTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitGenerateTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LubancloudClient::SubmitGenerateTaskOutcomeCallable LubancloudClient::submitGenerateTaskCallable(const SubmitGenerateTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitGenerateTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LubancloudClient::BuyOriginPicturesOutcome LubancloudClient::buyOriginPictures(const BuyOriginPicturesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +123,42 @@ LubancloudClient::BuyOriginPicturesOutcomeCallable LubancloudClient::buyOriginPi return task->get_future(); } +LubancloudClient::SubmitGenerateTaskOutcome LubancloudClient::submitGenerateTask(const SubmitGenerateTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitGenerateTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitGenerateTaskOutcome(SubmitGenerateTaskResult(outcome.result())); + else + return SubmitGenerateTaskOutcome(outcome.error()); +} + +void LubancloudClient::submitGenerateTaskAsync(const SubmitGenerateTaskRequest& request, const SubmitGenerateTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitGenerateTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LubancloudClient::SubmitGenerateTaskOutcomeCallable LubancloudClient::submitGenerateTaskCallable(const SubmitGenerateTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitGenerateTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LubancloudClient::SubmitCutoutTaskOutcome LubancloudClient::submitCutoutTask(const SubmitCutoutTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/lubancloud/src/model/BuyOriginPicturesRequest.cc b/lubancloud/src/model/BuyOriginPicturesRequest.cc index b1fc140b9..1735315b7 100644 --- a/lubancloud/src/model/BuyOriginPicturesRequest.cc +++ b/lubancloud/src/model/BuyOriginPicturesRequest.cc @@ -33,7 +33,7 @@ bool BuyOriginPicturesRequest::getSecurity_transport()const void BuyOriginPicturesRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string BuyOriginPicturesRequest::getApp_ip()const @@ -44,7 +44,7 @@ std::string BuyOriginPicturesRequest::getApp_ip()const void BuyOriginPicturesRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string BuyOriginPicturesRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string BuyOriginPicturesRequest::getRegionId()const void BuyOriginPicturesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long BuyOriginPicturesRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long BuyOriginPicturesRequest::getCallerParentId()const void BuyOriginPicturesRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string BuyOriginPicturesRequest::getRequestId()const @@ -77,7 +77,7 @@ std::string BuyOriginPicturesRequest::getRequestId()const void BuyOriginPicturesRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string BuyOriginPicturesRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string BuyOriginPicturesRequest::getCallerType()const void BuyOriginPicturesRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool BuyOriginPicturesRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool BuyOriginPicturesRequest::getAk_mfa_present()const void BuyOriginPicturesRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long BuyOriginPicturesRequest::getCallerUid()const @@ -110,7 +110,7 @@ long BuyOriginPicturesRequest::getCallerUid()const void BuyOriginPicturesRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::vector BuyOriginPicturesRequest::getPictureId()const @@ -122,6 +122,6 @@ void BuyOriginPicturesRequest::setPictureId(const std::vector& pictureId) { pictureId_ = pictureId; for(int i = 0; i!= pictureId.size(); i++) - setParameter("PictureId."+ std::to_string(i), std::to_string(pictureId.at(i))); + setCoreParameter("PictureId."+ std::to_string(i), std::to_string(pictureId.at(i))); } diff --git a/lubancloud/src/model/BuyOriginPicturesResult.cc b/lubancloud/src/model/BuyOriginPicturesResult.cc index 681b772a5..e3a488800 100644 --- a/lubancloud/src/model/BuyOriginPicturesResult.cc +++ b/lubancloud/src/model/BuyOriginPicturesResult.cc @@ -35,10 +35,13 @@ BuyOriginPicturesResult::~BuyOriginPicturesResult() void BuyOriginPicturesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPictures = value["Pictures"]["Picture"]; for (auto value : allPictures) diff --git a/lubancloud/src/model/GetStylesRequest.cc b/lubancloud/src/model/GetStylesRequest.cc index 7ed89c300..22e902de6 100644 --- a/lubancloud/src/model/GetStylesRequest.cc +++ b/lubancloud/src/model/GetStylesRequest.cc @@ -33,6 +33,6 @@ std::string GetStylesRequest::getRegionId()const void GetStylesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } diff --git a/lubancloud/src/model/GetStylesResult.cc b/lubancloud/src/model/GetStylesResult.cc index eae614c2e..01336b126 100644 --- a/lubancloud/src/model/GetStylesResult.cc +++ b/lubancloud/src/model/GetStylesResult.cc @@ -35,10 +35,13 @@ GetStylesResult::~GetStylesResult() void GetStylesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStyles = value["Styles"]["Style"]; for (auto value : allStyles) diff --git a/lubancloud/src/model/QueryCutoutTaskResultRequest.cc b/lubancloud/src/model/QueryCutoutTaskResultRequest.cc index 660963815..1ed888b4d 100644 --- a/lubancloud/src/model/QueryCutoutTaskResultRequest.cc +++ b/lubancloud/src/model/QueryCutoutTaskResultRequest.cc @@ -33,7 +33,7 @@ bool QueryCutoutTaskResultRequest::getSecurity_transport()const void QueryCutoutTaskResultRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string QueryCutoutTaskResultRequest::getApp_ip()const @@ -44,7 +44,7 @@ std::string QueryCutoutTaskResultRequest::getApp_ip()const void QueryCutoutTaskResultRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string QueryCutoutTaskResultRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string QueryCutoutTaskResultRequest::getRegionId()const void QueryCutoutTaskResultRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string QueryCutoutTaskResultRequest::getRequestId()const @@ -66,7 +66,7 @@ std::string QueryCutoutTaskResultRequest::getRequestId()const void QueryCutoutTaskResultRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long QueryCutoutTaskResultRequest::getCallerParentId()const @@ -77,7 +77,7 @@ long QueryCutoutTaskResultRequest::getCallerParentId()const void QueryCutoutTaskResultRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string QueryCutoutTaskResultRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string QueryCutoutTaskResultRequest::getCallerType()const void QueryCutoutTaskResultRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool QueryCutoutTaskResultRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool QueryCutoutTaskResultRequest::getAk_mfa_present()const void QueryCutoutTaskResultRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long QueryCutoutTaskResultRequest::getCallerUid()const @@ -110,7 +110,7 @@ long QueryCutoutTaskResultRequest::getCallerUid()const void QueryCutoutTaskResultRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } long QueryCutoutTaskResultRequest::getTaskId()const @@ -121,6 +121,6 @@ long QueryCutoutTaskResultRequest::getTaskId()const void QueryCutoutTaskResultRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } diff --git a/lubancloud/src/model/QueryCutoutTaskResultResult.cc b/lubancloud/src/model/QueryCutoutTaskResultResult.cc index b2c271d10..fc5adece8 100644 --- a/lubancloud/src/model/QueryCutoutTaskResultResult.cc +++ b/lubancloud/src/model/QueryCutoutTaskResultResult.cc @@ -35,10 +35,13 @@ QueryCutoutTaskResultResult::~QueryCutoutTaskResultResult() void QueryCutoutTaskResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPictures = value["Pictures"]["Picture"]; for (auto value : allPictures) diff --git a/lubancloud/src/model/QueryGenerateTaskResultRequest.cc b/lubancloud/src/model/QueryGenerateTaskResultRequest.cc index c9c25e0fd..4d6d96195 100644 --- a/lubancloud/src/model/QueryGenerateTaskResultRequest.cc +++ b/lubancloud/src/model/QueryGenerateTaskResultRequest.cc @@ -33,7 +33,7 @@ bool QueryGenerateTaskResultRequest::getSecurity_transport()const void QueryGenerateTaskResultRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string QueryGenerateTaskResultRequest::getApp_ip()const @@ -44,7 +44,7 @@ std::string QueryGenerateTaskResultRequest::getApp_ip()const void QueryGenerateTaskResultRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string QueryGenerateTaskResultRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string QueryGenerateTaskResultRequest::getRegionId()const void QueryGenerateTaskResultRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string QueryGenerateTaskResultRequest::getRequestId()const @@ -66,7 +66,7 @@ std::string QueryGenerateTaskResultRequest::getRequestId()const void QueryGenerateTaskResultRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long QueryGenerateTaskResultRequest::getCallerParentId()const @@ -77,7 +77,7 @@ long QueryGenerateTaskResultRequest::getCallerParentId()const void QueryGenerateTaskResultRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string QueryGenerateTaskResultRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string QueryGenerateTaskResultRequest::getCallerType()const void QueryGenerateTaskResultRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool QueryGenerateTaskResultRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool QueryGenerateTaskResultRequest::getAk_mfa_present()const void QueryGenerateTaskResultRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long QueryGenerateTaskResultRequest::getCallerUid()const @@ -110,7 +110,7 @@ long QueryGenerateTaskResultRequest::getCallerUid()const void QueryGenerateTaskResultRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } long QueryGenerateTaskResultRequest::getTaskId()const @@ -121,6 +121,6 @@ long QueryGenerateTaskResultRequest::getTaskId()const void QueryGenerateTaskResultRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } diff --git a/lubancloud/src/model/QueryGenerateTaskResultResult.cc b/lubancloud/src/model/QueryGenerateTaskResultResult.cc index 784553e00..af81da1c3 100644 --- a/lubancloud/src/model/QueryGenerateTaskResultResult.cc +++ b/lubancloud/src/model/QueryGenerateTaskResultResult.cc @@ -35,10 +35,13 @@ QueryGenerateTaskResultResult::~QueryGenerateTaskResultResult() void QueryGenerateTaskResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPictures = value["Pictures"]["Picture"]; for (auto value : allPictures) diff --git a/lubancloud/src/model/SubmitCutoutTaskRequest.cc b/lubancloud/src/model/SubmitCutoutTaskRequest.cc index 66d9edd7b..9ae826b10 100644 --- a/lubancloud/src/model/SubmitCutoutTaskRequest.cc +++ b/lubancloud/src/model/SubmitCutoutTaskRequest.cc @@ -33,7 +33,7 @@ bool SubmitCutoutTaskRequest::getSecurity_transport()const void SubmitCutoutTaskRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string SubmitCutoutTaskRequest::getApp_ip()const @@ -44,7 +44,7 @@ std::string SubmitCutoutTaskRequest::getApp_ip()const void SubmitCutoutTaskRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string SubmitCutoutTaskRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string SubmitCutoutTaskRequest::getRegionId()const void SubmitCutoutTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long SubmitCutoutTaskRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long SubmitCutoutTaskRequest::getCallerParentId()const void SubmitCutoutTaskRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string SubmitCutoutTaskRequest::getRequestId()const @@ -77,7 +77,7 @@ std::string SubmitCutoutTaskRequest::getRequestId()const void SubmitCutoutTaskRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string SubmitCutoutTaskRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string SubmitCutoutTaskRequest::getCallerType()const void SubmitCutoutTaskRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool SubmitCutoutTaskRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool SubmitCutoutTaskRequest::getAk_mfa_present()const void SubmitCutoutTaskRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long SubmitCutoutTaskRequest::getCallerUid()const @@ -110,7 +110,7 @@ long SubmitCutoutTaskRequest::getCallerUid()const void SubmitCutoutTaskRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::vector SubmitCutoutTaskRequest::getPictureUrl()const @@ -122,6 +122,6 @@ void SubmitCutoutTaskRequest::setPictureUrl(const std::vector& pict { pictureUrl_ = pictureUrl; for(int i = 0; i!= pictureUrl.size(); i++) - setParameter("PictureUrl."+ std::to_string(i), pictureUrl.at(i)); + setCoreParameter("PictureUrl."+ std::to_string(i), pictureUrl.at(i)); } diff --git a/lubancloud/src/model/SubmitCutoutTaskResult.cc b/lubancloud/src/model/SubmitCutoutTaskResult.cc index f7cc273bb..1b79dd287 100644 --- a/lubancloud/src/model/SubmitCutoutTaskResult.cc +++ b/lubancloud/src/model/SubmitCutoutTaskResult.cc @@ -35,10 +35,13 @@ SubmitCutoutTaskResult::~SubmitCutoutTaskResult() void SubmitCutoutTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); diff --git a/lubancloud/src/model/SubmitGenerateTaskRequest.cc b/lubancloud/src/model/SubmitGenerateTaskRequest.cc index d84e49831..3444d395e 100644 --- a/lubancloud/src/model/SubmitGenerateTaskRequest.cc +++ b/lubancloud/src/model/SubmitGenerateTaskRequest.cc @@ -33,7 +33,7 @@ std::string SubmitGenerateTaskRequest::getApp_ip()const void SubmitGenerateTaskRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } int SubmitGenerateTaskRequest::getImageCount()const @@ -44,7 +44,7 @@ int SubmitGenerateTaskRequest::getImageCount()const void SubmitGenerateTaskRequest::setImageCount(int imageCount) { imageCount_ = imageCount; - setParameter("ImageCount", std::to_string(imageCount)); + setCoreParameter("ImageCount", std::to_string(imageCount)); } long SubmitGenerateTaskRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long SubmitGenerateTaskRequest::getCallerParentId()const void SubmitGenerateTaskRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string SubmitGenerateTaskRequest::getActionPoint()const @@ -66,7 +66,7 @@ std::string SubmitGenerateTaskRequest::getActionPoint()const void SubmitGenerateTaskRequest::setActionPoint(const std::string& actionPoint) { actionPoint_ = actionPoint; - setParameter("ActionPoint", actionPoint); + setCoreParameter("ActionPoint", actionPoint); } std::string SubmitGenerateTaskRequest::getLogoImagePath()const @@ -77,7 +77,7 @@ std::string SubmitGenerateTaskRequest::getLogoImagePath()const void SubmitGenerateTaskRequest::setLogoImagePath(const std::string& logoImagePath) { logoImagePath_ = logoImagePath; - setParameter("LogoImagePath", logoImagePath); + setCoreParameter("LogoImagePath", logoImagePath); } int SubmitGenerateTaskRequest::getType()const @@ -88,7 +88,7 @@ int SubmitGenerateTaskRequest::getType()const void SubmitGenerateTaskRequest::setType(int type) { type_ = type; - setParameter("Type", std::to_string(type)); + setCoreParameter("Type", std::to_string(type)); } std::string SubmitGenerateTaskRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string SubmitGenerateTaskRequest::getCallerType()const void SubmitGenerateTaskRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool SubmitGenerateTaskRequest::getAk_mfa_present()const @@ -110,7 +110,7 @@ bool SubmitGenerateTaskRequest::getAk_mfa_present()const void SubmitGenerateTaskRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool SubmitGenerateTaskRequest::getSecurity_transport()const @@ -121,7 +121,7 @@ bool SubmitGenerateTaskRequest::getSecurity_transport()const void SubmitGenerateTaskRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::vector SubmitGenerateTaskRequest::getMajorImagePath()const @@ -133,7 +133,7 @@ void SubmitGenerateTaskRequest::setMajorImagePath(const std::vector { majorImagePath_ = majorImagePath; for(int i = 0; i!= majorImagePath.size(); i++) - setParameter("MajorImagePath."+ std::to_string(i), majorImagePath.at(i)); + setCoreParameter("MajorImagePath."+ std::to_string(i), majorImagePath.at(i)); } std::string SubmitGenerateTaskRequest::getRegionId()const @@ -144,7 +144,7 @@ std::string SubmitGenerateTaskRequest::getRegionId()const void SubmitGenerateTaskRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SubmitGenerateTaskRequest::getRequestId()const @@ -155,7 +155,7 @@ std::string SubmitGenerateTaskRequest::getRequestId()const void SubmitGenerateTaskRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } int SubmitGenerateTaskRequest::getWidth()const @@ -166,7 +166,7 @@ int SubmitGenerateTaskRequest::getWidth()const void SubmitGenerateTaskRequest::setWidth(int width) { width_ = width; - setParameter("Width", std::to_string(width)); + setCoreParameter("Width", std::to_string(width)); } std::vector SubmitGenerateTaskRequest::getCopyWrite()const @@ -178,7 +178,7 @@ void SubmitGenerateTaskRequest::setCopyWrite(const std::vector& cop { copyWrite_ = copyWrite; for(int i = 0; i!= copyWrite.size(); i++) - setParameter("CopyWrite."+ std::to_string(i), copyWrite.at(i)); + setCoreParameter("CopyWrite."+ std::to_string(i), copyWrite.at(i)); } std::vector SubmitGenerateTaskRequest::getPropertyId()const @@ -190,7 +190,7 @@ void SubmitGenerateTaskRequest::setPropertyId(const std::vector& propertyI { propertyId_ = propertyId; for(int i = 0; i!= propertyId.size(); i++) - setParameter("PropertyId."+ std::to_string(i), std::to_string(propertyId.at(i))); + setCoreParameter("PropertyId."+ std::to_string(i), std::to_string(propertyId.at(i))); } long SubmitGenerateTaskRequest::getCallerUid()const @@ -201,7 +201,7 @@ long SubmitGenerateTaskRequest::getCallerUid()const void SubmitGenerateTaskRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } int SubmitGenerateTaskRequest::getHeight()const @@ -212,6 +212,6 @@ int SubmitGenerateTaskRequest::getHeight()const void SubmitGenerateTaskRequest::setHeight(int height) { height_ = height; - setParameter("Height", std::to_string(height)); + setCoreParameter("Height", std::to_string(height)); } diff --git a/lubancloud/src/model/SubmitGenerateTaskResult.cc b/lubancloud/src/model/SubmitGenerateTaskResult.cc index 668900f39..01109b083 100644 --- a/lubancloud/src/model/SubmitGenerateTaskResult.cc +++ b/lubancloud/src/model/SubmitGenerateTaskResult.cc @@ -35,10 +35,13 @@ SubmitGenerateTaskResult::~SubmitGenerateTaskResult() void SubmitGenerateTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); diff --git a/mopen/CMakeLists.txt b/mopen/CMakeLists.txt index e2588f5fe..acd4ae729 100644 --- a/mopen/CMakeLists.txt +++ b/mopen/CMakeLists.txt @@ -31,10 +31,10 @@ set(mopen_public_header_model include/alibabacloud/mopen/model/MoPenDoRecognizeResult.h include/alibabacloud/mopen/model/MoPenBindIsvRequest.h include/alibabacloud/mopen/model/MoPenBindIsvResult.h - include/alibabacloud/mopen/model/MoPenCreateDeviceRequest.h - include/alibabacloud/mopen/model/MoPenCreateDeviceResult.h include/alibabacloud/mopen/model/MoPenAddGroupMemberRequest.h include/alibabacloud/mopen/model/MoPenAddGroupMemberResult.h + include/alibabacloud/mopen/model/MoPenCreateDeviceRequest.h + include/alibabacloud/mopen/model/MoPenCreateDeviceResult.h include/alibabacloud/mopen/model/MoPenSendMqttMessageRequest.h include/alibabacloud/mopen/model/MoPenSendMqttMessageResult.h include/alibabacloud/mopen/model/MoPenFindGroupRequest.h @@ -54,10 +54,10 @@ set(mopen_src src/model/MoPenDoRecognizeResult.cc src/model/MoPenBindIsvRequest.cc src/model/MoPenBindIsvResult.cc - src/model/MoPenCreateDeviceRequest.cc - src/model/MoPenCreateDeviceResult.cc src/model/MoPenAddGroupMemberRequest.cc src/model/MoPenAddGroupMemberResult.cc + src/model/MoPenCreateDeviceRequest.cc + src/model/MoPenCreateDeviceResult.cc src/model/MoPenSendMqttMessageRequest.cc src/model/MoPenSendMqttMessageResult.cc src/model/MoPenFindGroupRequest.cc diff --git a/mopen/include/alibabacloud/mopen/MoPenClient.h b/mopen/include/alibabacloud/mopen/MoPenClient.h index 2453c81a6..7fa591534 100644 --- a/mopen/include/alibabacloud/mopen/MoPenClient.h +++ b/mopen/include/alibabacloud/mopen/MoPenClient.h @@ -32,10 +32,10 @@ #include "model/MoPenDoRecognizeResult.h" #include "model/MoPenBindIsvRequest.h" #include "model/MoPenBindIsvResult.h" -#include "model/MoPenCreateDeviceRequest.h" -#include "model/MoPenCreateDeviceResult.h" #include "model/MoPenAddGroupMemberRequest.h" #include "model/MoPenAddGroupMemberResult.h" +#include "model/MoPenCreateDeviceRequest.h" +#include "model/MoPenCreateDeviceResult.h" #include "model/MoPenSendMqttMessageRequest.h" #include "model/MoPenSendMqttMessageResult.h" #include "model/MoPenFindGroupRequest.h" @@ -66,12 +66,12 @@ namespace AlibabaCloud typedef Outcome MoPenBindIsvOutcome; typedef std::future MoPenBindIsvOutcomeCallable; typedef std::function&)> MoPenBindIsvAsyncHandler; - typedef Outcome MoPenCreateDeviceOutcome; - typedef std::future MoPenCreateDeviceOutcomeCallable; - typedef std::function&)> MoPenCreateDeviceAsyncHandler; typedef Outcome MoPenAddGroupMemberOutcome; typedef std::future MoPenAddGroupMemberOutcomeCallable; typedef std::function&)> MoPenAddGroupMemberAsyncHandler; + typedef Outcome MoPenCreateDeviceOutcome; + typedef std::future MoPenCreateDeviceOutcomeCallable; + typedef std::function&)> MoPenCreateDeviceAsyncHandler; typedef Outcome MoPenSendMqttMessageOutcome; typedef std::future MoPenSendMqttMessageOutcomeCallable; typedef std::function&)> MoPenSendMqttMessageAsyncHandler; @@ -101,12 +101,12 @@ namespace AlibabaCloud MoPenBindIsvOutcome moPenBindIsv(const Model::MoPenBindIsvRequest &request)const; void moPenBindIsvAsync(const Model::MoPenBindIsvRequest& request, const MoPenBindIsvAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoPenBindIsvOutcomeCallable moPenBindIsvCallable(const Model::MoPenBindIsvRequest& request) const; - MoPenCreateDeviceOutcome moPenCreateDevice(const Model::MoPenCreateDeviceRequest &request)const; - void moPenCreateDeviceAsync(const Model::MoPenCreateDeviceRequest& request, const MoPenCreateDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MoPenCreateDeviceOutcomeCallable moPenCreateDeviceCallable(const Model::MoPenCreateDeviceRequest& request) const; MoPenAddGroupMemberOutcome moPenAddGroupMember(const Model::MoPenAddGroupMemberRequest &request)const; void moPenAddGroupMemberAsync(const Model::MoPenAddGroupMemberRequest& request, const MoPenAddGroupMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoPenAddGroupMemberOutcomeCallable moPenAddGroupMemberCallable(const Model::MoPenAddGroupMemberRequest& request) const; + MoPenCreateDeviceOutcome moPenCreateDevice(const Model::MoPenCreateDeviceRequest &request)const; + void moPenCreateDeviceAsync(const Model::MoPenCreateDeviceRequest& request, const MoPenCreateDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoPenCreateDeviceOutcomeCallable moPenCreateDeviceCallable(const Model::MoPenCreateDeviceRequest& request) const; MoPenSendMqttMessageOutcome moPenSendMqttMessage(const Model::MoPenSendMqttMessageRequest &request)const; void moPenSendMqttMessageAsync(const Model::MoPenSendMqttMessageRequest& request, const MoPenSendMqttMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoPenSendMqttMessageOutcomeCallable moPenSendMqttMessageCallable(const Model::MoPenSendMqttMessageRequest& request) const; diff --git a/mopen/src/MoPenClient.cc b/mopen/src/MoPenClient.cc index 43af7571c..5b907613f 100644 --- a/mopen/src/MoPenClient.cc +++ b/mopen/src/MoPenClient.cc @@ -231,42 +231,6 @@ MoPenClient::MoPenBindIsvOutcomeCallable MoPenClient::moPenBindIsvCallable(const return task->get_future(); } -MoPenClient::MoPenCreateDeviceOutcome MoPenClient::moPenCreateDevice(const MoPenCreateDeviceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MoPenCreateDeviceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MoPenCreateDeviceOutcome(MoPenCreateDeviceResult(outcome.result())); - else - return MoPenCreateDeviceOutcome(outcome.error()); -} - -void MoPenClient::moPenCreateDeviceAsync(const MoPenCreateDeviceRequest& request, const MoPenCreateDeviceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, moPenCreateDevice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MoPenClient::MoPenCreateDeviceOutcomeCallable MoPenClient::moPenCreateDeviceCallable(const MoPenCreateDeviceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->moPenCreateDevice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MoPenClient::MoPenAddGroupMemberOutcome MoPenClient::moPenAddGroupMember(const MoPenAddGroupMemberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +267,42 @@ MoPenClient::MoPenAddGroupMemberOutcomeCallable MoPenClient::moPenAddGroupMember return task->get_future(); } +MoPenClient::MoPenCreateDeviceOutcome MoPenClient::moPenCreateDevice(const MoPenCreateDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MoPenCreateDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MoPenCreateDeviceOutcome(MoPenCreateDeviceResult(outcome.result())); + else + return MoPenCreateDeviceOutcome(outcome.error()); +} + +void MoPenClient::moPenCreateDeviceAsync(const MoPenCreateDeviceRequest& request, const MoPenCreateDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, moPenCreateDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MoPenClient::MoPenCreateDeviceOutcomeCallable MoPenClient::moPenCreateDeviceCallable(const MoPenCreateDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->moPenCreateDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MoPenClient::MoPenSendMqttMessageOutcome MoPenClient::moPenSendMqttMessage(const MoPenSendMqttMessageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/mopen/src/model/MoPenAddGroupMemberRequest.cc b/mopen/src/model/MoPenAddGroupMemberRequest.cc index 23d5f8c31..96526990e 100644 --- a/mopen/src/model/MoPenAddGroupMemberRequest.cc +++ b/mopen/src/model/MoPenAddGroupMemberRequest.cc @@ -33,7 +33,7 @@ std::string MoPenAddGroupMemberRequest::getGroupId()const void MoPenAddGroupMemberRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } std::string MoPenAddGroupMemberRequest::getDeviceName()const @@ -44,6 +44,6 @@ std::string MoPenAddGroupMemberRequest::getDeviceName()const void MoPenAddGroupMemberRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } diff --git a/mopen/src/model/MoPenAddGroupMemberResult.cc b/mopen/src/model/MoPenAddGroupMemberResult.cc index ea4034ab9..f42fbbaff 100644 --- a/mopen/src/model/MoPenAddGroupMemberResult.cc +++ b/mopen/src/model/MoPenAddGroupMemberResult.cc @@ -35,10 +35,13 @@ MoPenAddGroupMemberResult::~MoPenAddGroupMemberResult() void MoPenAddGroupMemberResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/mopen/src/model/MoPenBindIsvRequest.cc b/mopen/src/model/MoPenBindIsvRequest.cc index 0388547dc..0dfc42df5 100644 --- a/mopen/src/model/MoPenBindIsvRequest.cc +++ b/mopen/src/model/MoPenBindIsvRequest.cc @@ -33,7 +33,7 @@ std::string MoPenBindIsvRequest::getOrderKey()const void MoPenBindIsvRequest::setOrderKey(const std::string& orderKey) { orderKey_ = orderKey; - setParameter("OrderKey", orderKey); + setCoreParameter("OrderKey", orderKey); } std::string MoPenBindIsvRequest::getDeviceName()const @@ -44,6 +44,6 @@ std::string MoPenBindIsvRequest::getDeviceName()const void MoPenBindIsvRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } diff --git a/mopen/src/model/MoPenBindIsvResult.cc b/mopen/src/model/MoPenBindIsvResult.cc index 34d567263..2fe534816 100644 --- a/mopen/src/model/MoPenBindIsvResult.cc +++ b/mopen/src/model/MoPenBindIsvResult.cc @@ -35,10 +35,13 @@ MoPenBindIsvResult::~MoPenBindIsvResult() void MoPenBindIsvResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString() == "true"; diff --git a/mopen/src/model/MoPenCreateDeviceRequest.cc b/mopen/src/model/MoPenCreateDeviceRequest.cc index 0d4236093..28757a9a8 100644 --- a/mopen/src/model/MoPenCreateDeviceRequest.cc +++ b/mopen/src/model/MoPenCreateDeviceRequest.cc @@ -33,7 +33,7 @@ std::string MoPenCreateDeviceRequest::getDeviceName()const void MoPenCreateDeviceRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } int MoPenCreateDeviceRequest::getDeviceType()const @@ -44,6 +44,6 @@ int MoPenCreateDeviceRequest::getDeviceType()const void MoPenCreateDeviceRequest::setDeviceType(int deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", std::to_string(deviceType)); + setCoreParameter("DeviceType", std::to_string(deviceType)); } diff --git a/mopen/src/model/MoPenCreateDeviceResult.cc b/mopen/src/model/MoPenCreateDeviceResult.cc index 7246f6a80..bef42527f 100644 --- a/mopen/src/model/MoPenCreateDeviceResult.cc +++ b/mopen/src/model/MoPenCreateDeviceResult.cc @@ -35,10 +35,13 @@ MoPenCreateDeviceResult::~MoPenCreateDeviceResult() void MoPenCreateDeviceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["DeviceName"].isNull()) diff --git a/mopen/src/model/MoPenDeleteGroupMemberRequest.cc b/mopen/src/model/MoPenDeleteGroupMemberRequest.cc index ec10900f5..46a4e52b4 100644 --- a/mopen/src/model/MoPenDeleteGroupMemberRequest.cc +++ b/mopen/src/model/MoPenDeleteGroupMemberRequest.cc @@ -33,7 +33,7 @@ long MoPenDeleteGroupMemberRequest::getGroupId()const void MoPenDeleteGroupMemberRequest::setGroupId(long groupId) { groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); + setCoreParameter("GroupId", std::to_string(groupId)); } std::string MoPenDeleteGroupMemberRequest::getDeviceName()const @@ -44,6 +44,6 @@ std::string MoPenDeleteGroupMemberRequest::getDeviceName()const void MoPenDeleteGroupMemberRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } diff --git a/mopen/src/model/MoPenDeleteGroupMemberResult.cc b/mopen/src/model/MoPenDeleteGroupMemberResult.cc index e835af36d..1bcaf1963 100644 --- a/mopen/src/model/MoPenDeleteGroupMemberResult.cc +++ b/mopen/src/model/MoPenDeleteGroupMemberResult.cc @@ -35,10 +35,13 @@ MoPenDeleteGroupMemberResult::~MoPenDeleteGroupMemberResult() void MoPenDeleteGroupMemberResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/mopen/src/model/MoPenDeleteGroupRequest.cc b/mopen/src/model/MoPenDeleteGroupRequest.cc index 23d70e40c..2543884e6 100644 --- a/mopen/src/model/MoPenDeleteGroupRequest.cc +++ b/mopen/src/model/MoPenDeleteGroupRequest.cc @@ -33,6 +33,6 @@ std::string MoPenDeleteGroupRequest::getGroupId()const void MoPenDeleteGroupRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; - setParameter("GroupId", groupId); + setCoreParameter("GroupId", groupId); } diff --git a/mopen/src/model/MoPenDeleteGroupResult.cc b/mopen/src/model/MoPenDeleteGroupResult.cc index 6ca0d4011..61e031a2c 100644 --- a/mopen/src/model/MoPenDeleteGroupResult.cc +++ b/mopen/src/model/MoPenDeleteGroupResult.cc @@ -35,10 +35,13 @@ MoPenDeleteGroupResult::~MoPenDeleteGroupResult() void MoPenDeleteGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/mopen/src/model/MoPenDoRecognizeRequest.cc b/mopen/src/model/MoPenDoRecognizeRequest.cc index 81142c8a1..40ad26f9a 100644 --- a/mopen/src/model/MoPenDoRecognizeRequest.cc +++ b/mopen/src/model/MoPenDoRecognizeRequest.cc @@ -33,7 +33,7 @@ long MoPenDoRecognizeRequest::getCanvasId()const void MoPenDoRecognizeRequest::setCanvasId(long canvasId) { canvasId_ = canvasId; - setParameter("CanvasId", std::to_string(canvasId)); + setCoreParameter("CanvasId", std::to_string(canvasId)); } int MoPenDoRecognizeRequest::getEndY()const @@ -44,7 +44,7 @@ int MoPenDoRecognizeRequest::getEndY()const void MoPenDoRecognizeRequest::setEndY(int endY) { endY_ = endY; - setParameter("EndY", std::to_string(endY)); + setCoreParameter("EndY", std::to_string(endY)); } int MoPenDoRecognizeRequest::getEndX()const @@ -55,7 +55,7 @@ int MoPenDoRecognizeRequest::getEndX()const void MoPenDoRecognizeRequest::setEndX(int endX) { endX_ = endX; - setParameter("EndX", std::to_string(endX)); + setCoreParameter("EndX", std::to_string(endX)); } std::string MoPenDoRecognizeRequest::getJsonConf()const @@ -66,7 +66,7 @@ std::string MoPenDoRecognizeRequest::getJsonConf()const void MoPenDoRecognizeRequest::setJsonConf(const std::string& jsonConf) { jsonConf_ = jsonConf; - setParameter("JsonConf", jsonConf); + setCoreParameter("JsonConf", jsonConf); } std::string MoPenDoRecognizeRequest::getExportType()const @@ -77,7 +77,7 @@ std::string MoPenDoRecognizeRequest::getExportType()const void MoPenDoRecognizeRequest::setExportType(const std::string& exportType) { exportType_ = exportType; - setParameter("ExportType", exportType); + setCoreParameter("ExportType", exportType); } int MoPenDoRecognizeRequest::getStartY()const @@ -88,7 +88,7 @@ int MoPenDoRecognizeRequest::getStartY()const void MoPenDoRecognizeRequest::setStartY(int startY) { startY_ = startY; - setParameter("StartY", std::to_string(startY)); + setCoreParameter("StartY", std::to_string(startY)); } int MoPenDoRecognizeRequest::getStartX()const @@ -99,6 +99,6 @@ int MoPenDoRecognizeRequest::getStartX()const void MoPenDoRecognizeRequest::setStartX(int startX) { startX_ = startX; - setParameter("StartX", std::to_string(startX)); + setCoreParameter("StartX", std::to_string(startX)); } diff --git a/mopen/src/model/MoPenDoRecognizeResult.cc b/mopen/src/model/MoPenDoRecognizeResult.cc index 4c692f04a..bb0306f46 100644 --- a/mopen/src/model/MoPenDoRecognizeResult.cc +++ b/mopen/src/model/MoPenDoRecognizeResult.cc @@ -35,10 +35,13 @@ MoPenDoRecognizeResult::~MoPenDoRecognizeResult() void MoPenDoRecognizeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Result"].isNull()) diff --git a/mopen/src/model/MoPenFindGroupRequest.cc b/mopen/src/model/MoPenFindGroupRequest.cc index 75e919588..84f842b52 100644 --- a/mopen/src/model/MoPenFindGroupRequest.cc +++ b/mopen/src/model/MoPenFindGroupRequest.cc @@ -33,6 +33,6 @@ std::string MoPenFindGroupRequest::getCreator()const void MoPenFindGroupRequest::setCreator(const std::string& creator) { creator_ = creator; - setParameter("Creator", creator); + setCoreParameter("Creator", creator); } diff --git a/mopen/src/model/MoPenFindGroupResult.cc b/mopen/src/model/MoPenFindGroupResult.cc index 6fad34334..bf3f41b5d 100644 --- a/mopen/src/model/MoPenFindGroupResult.cc +++ b/mopen/src/model/MoPenFindGroupResult.cc @@ -35,10 +35,13 @@ MoPenFindGroupResult::~MoPenFindGroupResult() void MoPenFindGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["GroupId"].isNull()) diff --git a/mopen/src/model/MoPenQueryCanvasRequest.cc b/mopen/src/model/MoPenQueryCanvasRequest.cc index 451b8e2c2..b9b220991 100644 --- a/mopen/src/model/MoPenQueryCanvasRequest.cc +++ b/mopen/src/model/MoPenQueryCanvasRequest.cc @@ -33,7 +33,7 @@ std::string MoPenQueryCanvasRequest::getDeviceName()const void MoPenQueryCanvasRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } std::string MoPenQueryCanvasRequest::getSessionId()const @@ -44,7 +44,7 @@ std::string MoPenQueryCanvasRequest::getSessionId()const void MoPenQueryCanvasRequest::setSessionId(const std::string& sessionId) { sessionId_ = sessionId; - setParameter("SessionId", sessionId); + setCoreParameter("SessionId", sessionId); } int MoPenQueryCanvasRequest::getPageId()const @@ -55,7 +55,7 @@ int MoPenQueryCanvasRequest::getPageId()const void MoPenQueryCanvasRequest::setPageId(int pageId) { pageId_ = pageId; - setParameter("PageId", std::to_string(pageId)); + setCoreParameter("PageId", std::to_string(pageId)); } int MoPenQueryCanvasRequest::getStatus()const @@ -66,6 +66,6 @@ int MoPenQueryCanvasRequest::getStatus()const void MoPenQueryCanvasRequest::setStatus(int status) { status_ = status; - setParameter("Status", std::to_string(status)); + setCoreParameter("Status", std::to_string(status)); } diff --git a/mopen/src/model/MoPenQueryCanvasResult.cc b/mopen/src/model/MoPenQueryCanvasResult.cc index ffdc79555..aa6debc84 100644 --- a/mopen/src/model/MoPenQueryCanvasResult.cc +++ b/mopen/src/model/MoPenQueryCanvasResult.cc @@ -35,10 +35,13 @@ MoPenQueryCanvasResult::~MoPenQueryCanvasResult() void MoPenQueryCanvasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allCanvasList = value["CanvasList"]["Canvas"]; diff --git a/mopen/src/model/MoPenSendMqttMessageRequest.cc b/mopen/src/model/MoPenSendMqttMessageRequest.cc index 7745e0fe1..ab9beef2a 100644 --- a/mopen/src/model/MoPenSendMqttMessageRequest.cc +++ b/mopen/src/model/MoPenSendMqttMessageRequest.cc @@ -33,7 +33,7 @@ std::string MoPenSendMqttMessageRequest::getPayload()const void MoPenSendMqttMessageRequest::setPayload(const std::string& payload) { payload_ = payload; - setParameter("Payload", payload); + setCoreParameter("Payload", payload); } std::string MoPenSendMqttMessageRequest::getDeviceName()const @@ -44,6 +44,6 @@ std::string MoPenSendMqttMessageRequest::getDeviceName()const void MoPenSendMqttMessageRequest::setDeviceName(const std::string& deviceName) { deviceName_ = deviceName; - setParameter("DeviceName", deviceName); + setCoreParameter("DeviceName", deviceName); } diff --git a/mopen/src/model/MoPenSendMqttMessageResult.cc b/mopen/src/model/MoPenSendMqttMessageResult.cc index 44552f894..dc1b680af 100644 --- a/mopen/src/model/MoPenSendMqttMessageResult.cc +++ b/mopen/src/model/MoPenSendMqttMessageResult.cc @@ -35,10 +35,13 @@ MoPenSendMqttMessageResult::~MoPenSendMqttMessageResult() void MoPenSendMqttMessageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/mopen/src/model/MopenCreateGroupRequest.cc b/mopen/src/model/MopenCreateGroupRequest.cc index 808da7795..7cd7717c8 100644 --- a/mopen/src/model/MopenCreateGroupRequest.cc +++ b/mopen/src/model/MopenCreateGroupRequest.cc @@ -33,6 +33,6 @@ std::string MopenCreateGroupRequest::getCreator()const void MopenCreateGroupRequest::setCreator(const std::string& creator) { creator_ = creator; - setParameter("Creator", creator); + setCoreParameter("Creator", creator); } diff --git a/mopen/src/model/MopenCreateGroupResult.cc b/mopen/src/model/MopenCreateGroupResult.cc index 31a297dbf..3d8e59bae 100644 --- a/mopen/src/model/MopenCreateGroupResult.cc +++ b/mopen/src/model/MopenCreateGroupResult.cc @@ -35,10 +35,13 @@ MopenCreateGroupResult::~MopenCreateGroupResult() void MopenCreateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["GroupId"].isNull()) diff --git a/mts/CMakeLists.txt b/mts/CMakeLists.txt index dd7ab1043..688d3ccf8 100644 --- a/mts/CMakeLists.txt +++ b/mts/CMakeLists.txt @@ -21,12 +21,12 @@ set(mts_public_header include/alibabacloud/mts/MtsExport.h ) set(mts_public_header_model - include/alibabacloud/mts/model/DeleteCategoryRequest.h - include/alibabacloud/mts/model/DeleteCategoryResult.h - include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h - include/alibabacloud/mts/model/QuerySnapshotJobListResult.h include/alibabacloud/mts/model/QueryAuthConfigRequest.h include/alibabacloud/mts/model/QueryAuthConfigResult.h + include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h + include/alibabacloud/mts/model/QuerySnapshotJobListResult.h + include/alibabacloud/mts/model/DeleteCategoryRequest.h + include/alibabacloud/mts/model/DeleteCategoryResult.h include/alibabacloud/mts/model/QueryTagJobListRequest.h include/alibabacloud/mts/model/QueryTagJobListResult.h include/alibabacloud/mts/model/QueryAsrPipelineListRequest.h @@ -37,10 +37,10 @@ set(mts_public_header_model include/alibabacloud/mts/model/CreateSessionResult.h include/alibabacloud/mts/model/UpdateMediaPublishStateRequest.h include/alibabacloud/mts/model/UpdateMediaPublishStateResult.h - include/alibabacloud/mts/model/ListJobRequest.h - include/alibabacloud/mts/model/ListJobResult.h include/alibabacloud/mts/model/ListAsrPipelineRequest.h include/alibabacloud/mts/model/ListAsrPipelineResult.h + include/alibabacloud/mts/model/ListJobRequest.h + include/alibabacloud/mts/model/ListJobResult.h include/alibabacloud/mts/model/AddMediaTagRequest.h include/alibabacloud/mts/model/AddMediaTagResult.h include/alibabacloud/mts/model/UnbindInputBucketRequest.h @@ -53,10 +53,10 @@ set(mts_public_header_model include/alibabacloud/mts/model/SubmitComplexJobResult.h include/alibabacloud/mts/model/AddAsrPipelineRequest.h include/alibabacloud/mts/model/AddAsrPipelineResult.h - include/alibabacloud/mts/model/CancelJobRequest.h - include/alibabacloud/mts/model/CancelJobResult.h include/alibabacloud/mts/model/ReportCensorJobResultRequest.h include/alibabacloud/mts/model/ReportCensorJobResultResult.h + include/alibabacloud/mts/model/CancelJobRequest.h + include/alibabacloud/mts/model/CancelJobResult.h include/alibabacloud/mts/model/DeleteMcuJobRequest.h include/alibabacloud/mts/model/DeleteMcuJobResult.h include/alibabacloud/mts/model/ListAllCategoryRequest.h @@ -79,20 +79,20 @@ set(mts_public_header_model include/alibabacloud/mts/model/QueryComplexJobListResult.h include/alibabacloud/mts/model/QueryJobListRequest.h include/alibabacloud/mts/model/QueryJobListResult.h - include/alibabacloud/mts/model/SearchMediaWorkflowRequest.h - include/alibabacloud/mts/model/SearchMediaWorkflowResult.h include/alibabacloud/mts/model/LogicalDeleteResourceRequest.h include/alibabacloud/mts/model/LogicalDeleteResourceResult.h - include/alibabacloud/mts/model/QueryCoverPipelineListRequest.h - include/alibabacloud/mts/model/QueryCoverPipelineListResult.h + include/alibabacloud/mts/model/SearchMediaWorkflowRequest.h + include/alibabacloud/mts/model/SearchMediaWorkflowResult.h include/alibabacloud/mts/model/QueryFpShotJobListRequest.h include/alibabacloud/mts/model/QueryFpShotJobListResult.h + include/alibabacloud/mts/model/QueryCoverPipelineListRequest.h + include/alibabacloud/mts/model/QueryCoverPipelineListResult.h include/alibabacloud/mts/model/ListMediaWorkflowExecutionsRequest.h include/alibabacloud/mts/model/ListMediaWorkflowExecutionsResult.h - include/alibabacloud/mts/model/DeletePipelineRequest.h - include/alibabacloud/mts/model/DeletePipelineResult.h include/alibabacloud/mts/model/DeleteMediaTagRequest.h include/alibabacloud/mts/model/DeleteMediaTagResult.h + include/alibabacloud/mts/model/DeletePipelineRequest.h + include/alibabacloud/mts/model/DeletePipelineResult.h include/alibabacloud/mts/model/UpdateAsrPipelineRequest.h include/alibabacloud/mts/model/UpdateAsrPipelineResult.h include/alibabacloud/mts/model/QueryMediaDetailJobListRequest.h @@ -117,12 +117,12 @@ set(mts_public_header_model include/alibabacloud/mts/model/QueryMCTemplateListResult.h include/alibabacloud/mts/model/UpdateMediaRequest.h include/alibabacloud/mts/model/UpdateMediaResult.h - include/alibabacloud/mts/model/SubmitMediaFpDeleteJobRequest.h - include/alibabacloud/mts/model/SubmitMediaFpDeleteJobResult.h - include/alibabacloud/mts/model/ListCensorPipelineRequest.h - include/alibabacloud/mts/model/ListCensorPipelineResult.h include/alibabacloud/mts/model/QuerySubtitleJobListRequest.h include/alibabacloud/mts/model/QuerySubtitleJobListResult.h + include/alibabacloud/mts/model/ListCensorPipelineRequest.h + include/alibabacloud/mts/model/ListCensorPipelineResult.h + include/alibabacloud/mts/model/SubmitMediaFpDeleteJobRequest.h + include/alibabacloud/mts/model/SubmitMediaFpDeleteJobResult.h include/alibabacloud/mts/model/DeactivateMediaWorkflowRequest.h include/alibabacloud/mts/model/DeactivateMediaWorkflowResult.h include/alibabacloud/mts/model/QueryVideoGifJobListRequest.h @@ -143,18 +143,20 @@ set(mts_public_header_model include/alibabacloud/mts/model/ReportCoverJobResultResult.h include/alibabacloud/mts/model/SubmitImageQualityJobRequest.h include/alibabacloud/mts/model/SubmitImageQualityJobResult.h + include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h + include/alibabacloud/mts/model/QueryFpCompareJobListResult.h include/alibabacloud/mts/model/AddMCTemplateRequest.h include/alibabacloud/mts/model/AddMCTemplateResult.h - include/alibabacloud/mts/model/BindOutputBucketRequest.h - include/alibabacloud/mts/model/BindOutputBucketResult.h - include/alibabacloud/mts/model/SearchTemplateRequest.h - include/alibabacloud/mts/model/SearchTemplateResult.h include/alibabacloud/mts/model/UpdateMcuTemplateRequest.h include/alibabacloud/mts/model/UpdateMcuTemplateResult.h - include/alibabacloud/mts/model/QueryMCJobListRequest.h - include/alibabacloud/mts/model/QueryMCJobListResult.h + include/alibabacloud/mts/model/SearchTemplateRequest.h + include/alibabacloud/mts/model/SearchTemplateResult.h + include/alibabacloud/mts/model/BindOutputBucketRequest.h + include/alibabacloud/mts/model/BindOutputBucketResult.h include/alibabacloud/mts/model/AddPipelineRequest.h include/alibabacloud/mts/model/AddPipelineResult.h + include/alibabacloud/mts/model/QueryMCJobListRequest.h + include/alibabacloud/mts/model/QueryMCJobListResult.h include/alibabacloud/mts/model/SubmitFacerecogJobRequest.h include/alibabacloud/mts/model/SubmitFacerecogJobResult.h include/alibabacloud/mts/model/QueryMediaListRequest.h @@ -163,42 +165,46 @@ set(mts_public_header_model include/alibabacloud/mts/model/SubmitEditingJobsResult.h include/alibabacloud/mts/model/SubmitMediaInfoJobRequest.h include/alibabacloud/mts/model/SubmitMediaInfoJobResult.h - include/alibabacloud/mts/model/QueryPornJobListRequest.h - include/alibabacloud/mts/model/QueryPornJobListResult.h include/alibabacloud/mts/model/ReportVideoSplitJobResultRequest.h include/alibabacloud/mts/model/ReportVideoSplitJobResultResult.h + include/alibabacloud/mts/model/QueryPornJobListRequest.h + include/alibabacloud/mts/model/QueryPornJobListResult.h include/alibabacloud/mts/model/UpdateCategoryNameRequest.h include/alibabacloud/mts/model/UpdateCategoryNameResult.h include/alibabacloud/mts/model/DeleteMediaWorkflowRequest.h include/alibabacloud/mts/model/DeleteMediaWorkflowResult.h include/alibabacloud/mts/model/QueryMcuJobRequest.h include/alibabacloud/mts/model/QueryMcuJobResult.h - include/alibabacloud/mts/model/ListCoverPipelineRequest.h - include/alibabacloud/mts/model/ListCoverPipelineResult.h + include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h + include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h include/alibabacloud/mts/model/QueryMediaCensorJobDetailRequest.h include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h + include/alibabacloud/mts/model/ListCoverPipelineRequest.h + include/alibabacloud/mts/model/ListCoverPipelineResult.h include/alibabacloud/mts/model/CreateMcuTemplateRequest.h include/alibabacloud/mts/model/CreateMcuTemplateResult.h include/alibabacloud/mts/model/QueryImageSearchJobListRequest.h include/alibabacloud/mts/model/QueryImageSearchJobListResult.h - include/alibabacloud/mts/model/ReportFpShotJobResultRequest.h - include/alibabacloud/mts/model/ReportFpShotJobResultResult.h include/alibabacloud/mts/model/SubmitVideoSummaryJobRequest.h include/alibabacloud/mts/model/SubmitVideoSummaryJobResult.h + include/alibabacloud/mts/model/ReportFpShotJobResultRequest.h + include/alibabacloud/mts/model/ReportFpShotJobResultResult.h include/alibabacloud/mts/model/SubmitVideoGifJobRequest.h include/alibabacloud/mts/model/SubmitVideoGifJobResult.h include/alibabacloud/mts/model/QueryAnnotationJobListRequest.h include/alibabacloud/mts/model/QueryAnnotationJobListResult.h - include/alibabacloud/mts/model/SubmitMediaDetailJobRequest.h - include/alibabacloud/mts/model/SubmitMediaDetailJobResult.h include/alibabacloud/mts/model/SubmitPornJobRequest.h include/alibabacloud/mts/model/SubmitPornJobResult.h - include/alibabacloud/mts/model/QueryFpImportResultRequest.h - include/alibabacloud/mts/model/QueryFpImportResultResult.h + include/alibabacloud/mts/model/SubmitMediaDetailJobRequest.h + include/alibabacloud/mts/model/SubmitMediaDetailJobResult.h + include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h + include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h include/alibabacloud/mts/model/SubmitMCJobRequest.h include/alibabacloud/mts/model/SubmitMCJobResult.h include/alibabacloud/mts/model/AddTemplateRequest.h include/alibabacloud/mts/model/AddTemplateResult.h + include/alibabacloud/mts/model/QueryFpImportResultRequest.h + include/alibabacloud/mts/model/QueryFpImportResultResult.h include/alibabacloud/mts/model/QueryWaterMarkTemplateListRequest.h include/alibabacloud/mts/model/QueryWaterMarkTemplateListResult.h include/alibabacloud/mts/model/ReportPornJobResultRequest.h @@ -217,10 +223,10 @@ set(mts_public_header_model include/alibabacloud/mts/model/AddPornPipelineResult.h include/alibabacloud/mts/model/GetLicenseRequest.h include/alibabacloud/mts/model/GetLicenseResult.h - include/alibabacloud/mts/model/QueryVideoSummaryJobListRequest.h - include/alibabacloud/mts/model/QueryVideoSummaryJobListResult.h include/alibabacloud/mts/model/QueryPornPipelineListRequest.h include/alibabacloud/mts/model/QueryPornPipelineListResult.h + include/alibabacloud/mts/model/QueryVideoSummaryJobListRequest.h + include/alibabacloud/mts/model/QueryVideoSummaryJobListResult.h include/alibabacloud/mts/model/QueryTerrorismJobListRequest.h include/alibabacloud/mts/model/QueryTerrorismJobListResult.h include/alibabacloud/mts/model/SubmitJobsRequest.h @@ -241,10 +247,10 @@ set(mts_public_header_model include/alibabacloud/mts/model/QueryMcuTemplateResult.h include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeRequest.h include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeResult.h - include/alibabacloud/mts/model/SearchMediaRequest.h - include/alibabacloud/mts/model/SearchMediaResult.h include/alibabacloud/mts/model/ActivateMediaWorkflowRequest.h include/alibabacloud/mts/model/ActivateMediaWorkflowResult.h + include/alibabacloud/mts/model/SearchMediaRequest.h + include/alibabacloud/mts/model/SearchMediaResult.h include/alibabacloud/mts/model/SubmitTerrorismJobRequest.h include/alibabacloud/mts/model/SubmitTerrorismJobResult.h include/alibabacloud/mts/model/SetAuthConfigRequest.h @@ -269,16 +275,18 @@ set(mts_public_header_model include/alibabacloud/mts/model/ReportMediaDetailJobResultResult.h include/alibabacloud/mts/model/RegisterMediaDetailScenarioRequest.h include/alibabacloud/mts/model/RegisterMediaDetailScenarioResult.h + include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h + include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h include/alibabacloud/mts/model/ReportAnnotationJobResultRequest.h include/alibabacloud/mts/model/ReportAnnotationJobResultResult.h include/alibabacloud/mts/model/ListPornPipelineRequest.h include/alibabacloud/mts/model/ListPornPipelineResult.h include/alibabacloud/mts/model/QueryVideoSplitJobListRequest.h include/alibabacloud/mts/model/QueryVideoSplitJobListResult.h - include/alibabacloud/mts/model/BindInputBucketRequest.h - include/alibabacloud/mts/model/BindInputBucketResult.h include/alibabacloud/mts/model/AddTerrorismPipelineRequest.h include/alibabacloud/mts/model/AddTerrorismPipelineResult.h + include/alibabacloud/mts/model/BindInputBucketRequest.h + include/alibabacloud/mts/model/BindInputBucketResult.h include/alibabacloud/mts/model/QueryPipelineListRequest.h include/alibabacloud/mts/model/QueryPipelineListResult.h include/alibabacloud/mts/model/UpdateTemplateRequest.h @@ -295,51 +303,53 @@ set(mts_public_header_model include/alibabacloud/mts/model/SubmitFpShotJobResult.h include/alibabacloud/mts/model/QueryCensorPipelineListRequest.h include/alibabacloud/mts/model/QueryCensorPipelineListResult.h - include/alibabacloud/mts/model/SubmitVideoSplitJobRequest.h - include/alibabacloud/mts/model/SubmitVideoSplitJobResult.h include/alibabacloud/mts/model/SubmitMcuJobRequest.h include/alibabacloud/mts/model/SubmitMcuJobResult.h + include/alibabacloud/mts/model/SubmitVideoSplitJobRequest.h + include/alibabacloud/mts/model/SubmitVideoSplitJobResult.h include/alibabacloud/mts/model/CategoryTreeRequest.h include/alibabacloud/mts/model/CategoryTreeResult.h include/alibabacloud/mts/model/SubmitTagJobRequest.h include/alibabacloud/mts/model/SubmitTagJobResult.h include/alibabacloud/mts/model/SubmitCoverJobRequest.h include/alibabacloud/mts/model/SubmitCoverJobResult.h + include/alibabacloud/mts/model/PlayInfoRequest.h + include/alibabacloud/mts/model/PlayInfoResult.h include/alibabacloud/mts/model/SearchWaterMarkTemplateRequest.h include/alibabacloud/mts/model/SearchWaterMarkTemplateResult.h include/alibabacloud/mts/model/AddCensorPipelineRequest.h include/alibabacloud/mts/model/AddCensorPipelineResult.h - include/alibabacloud/mts/model/PlayInfoRequest.h - include/alibabacloud/mts/model/PlayInfoResult.h include/alibabacloud/mts/model/SubmitAsrJobRequest.h include/alibabacloud/mts/model/SubmitAsrJobResult.h include/alibabacloud/mts/model/SubmitSubtitleJobRequest.h include/alibabacloud/mts/model/SubmitSubtitleJobResult.h - include/alibabacloud/mts/model/QueryCoverJobListRequest.h - include/alibabacloud/mts/model/QueryCoverJobListResult.h include/alibabacloud/mts/model/AddMediaWorkflowRequest.h include/alibabacloud/mts/model/AddMediaWorkflowResult.h + include/alibabacloud/mts/model/QueryCoverJobListRequest.h + include/alibabacloud/mts/model/QueryCoverJobListResult.h include/alibabacloud/mts/model/QueryAsrJobListRequest.h include/alibabacloud/mts/model/QueryAsrJobListResult.h - include/alibabacloud/mts/model/SubmitVideoPoseJobRequest.h - include/alibabacloud/mts/model/SubmitVideoPoseJobResult.h - include/alibabacloud/mts/model/PlayerAuthRequest.h - include/alibabacloud/mts/model/PlayerAuthResult.h include/alibabacloud/mts/model/AddWaterMarkTemplateRequest.h include/alibabacloud/mts/model/AddWaterMarkTemplateResult.h + include/alibabacloud/mts/model/PlayerAuthRequest.h + include/alibabacloud/mts/model/PlayerAuthResult.h + include/alibabacloud/mts/model/SubmitVideoPoseJobRequest.h + include/alibabacloud/mts/model/SubmitVideoPoseJobResult.h include/alibabacloud/mts/model/RegisterMediaDetailPersonRequest.h include/alibabacloud/mts/model/RegisterMediaDetailPersonResult.h + include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h + include/alibabacloud/mts/model/SubmitFpCompareJobResult.h include/alibabacloud/mts/model/QueryCensorJobListRequest.h include/alibabacloud/mts/model/QueryCensorJobListResult.h ) set(mts_src src/MtsClient.cc - src/model/DeleteCategoryRequest.cc - src/model/DeleteCategoryResult.cc - src/model/QuerySnapshotJobListRequest.cc - src/model/QuerySnapshotJobListResult.cc src/model/QueryAuthConfigRequest.cc src/model/QueryAuthConfigResult.cc + src/model/QuerySnapshotJobListRequest.cc + src/model/QuerySnapshotJobListResult.cc + src/model/DeleteCategoryRequest.cc + src/model/DeleteCategoryResult.cc src/model/QueryTagJobListRequest.cc src/model/QueryTagJobListResult.cc src/model/QueryAsrPipelineListRequest.cc @@ -350,10 +360,10 @@ set(mts_src src/model/CreateSessionResult.cc src/model/UpdateMediaPublishStateRequest.cc src/model/UpdateMediaPublishStateResult.cc - src/model/ListJobRequest.cc - src/model/ListJobResult.cc src/model/ListAsrPipelineRequest.cc src/model/ListAsrPipelineResult.cc + src/model/ListJobRequest.cc + src/model/ListJobResult.cc src/model/AddMediaTagRequest.cc src/model/AddMediaTagResult.cc src/model/UnbindInputBucketRequest.cc @@ -366,10 +376,10 @@ set(mts_src src/model/SubmitComplexJobResult.cc src/model/AddAsrPipelineRequest.cc src/model/AddAsrPipelineResult.cc - src/model/CancelJobRequest.cc - src/model/CancelJobResult.cc src/model/ReportCensorJobResultRequest.cc src/model/ReportCensorJobResultResult.cc + src/model/CancelJobRequest.cc + src/model/CancelJobResult.cc src/model/DeleteMcuJobRequest.cc src/model/DeleteMcuJobResult.cc src/model/ListAllCategoryRequest.cc @@ -392,20 +402,20 @@ set(mts_src src/model/QueryComplexJobListResult.cc src/model/QueryJobListRequest.cc src/model/QueryJobListResult.cc - src/model/SearchMediaWorkflowRequest.cc - src/model/SearchMediaWorkflowResult.cc src/model/LogicalDeleteResourceRequest.cc src/model/LogicalDeleteResourceResult.cc - src/model/QueryCoverPipelineListRequest.cc - src/model/QueryCoverPipelineListResult.cc + src/model/SearchMediaWorkflowRequest.cc + src/model/SearchMediaWorkflowResult.cc src/model/QueryFpShotJobListRequest.cc src/model/QueryFpShotJobListResult.cc + src/model/QueryCoverPipelineListRequest.cc + src/model/QueryCoverPipelineListResult.cc src/model/ListMediaWorkflowExecutionsRequest.cc src/model/ListMediaWorkflowExecutionsResult.cc - src/model/DeletePipelineRequest.cc - src/model/DeletePipelineResult.cc src/model/DeleteMediaTagRequest.cc src/model/DeleteMediaTagResult.cc + src/model/DeletePipelineRequest.cc + src/model/DeletePipelineResult.cc src/model/UpdateAsrPipelineRequest.cc src/model/UpdateAsrPipelineResult.cc src/model/QueryMediaDetailJobListRequest.cc @@ -430,12 +440,12 @@ set(mts_src src/model/QueryMCTemplateListResult.cc src/model/UpdateMediaRequest.cc src/model/UpdateMediaResult.cc - src/model/SubmitMediaFpDeleteJobRequest.cc - src/model/SubmitMediaFpDeleteJobResult.cc - src/model/ListCensorPipelineRequest.cc - src/model/ListCensorPipelineResult.cc src/model/QuerySubtitleJobListRequest.cc src/model/QuerySubtitleJobListResult.cc + src/model/ListCensorPipelineRequest.cc + src/model/ListCensorPipelineResult.cc + src/model/SubmitMediaFpDeleteJobRequest.cc + src/model/SubmitMediaFpDeleteJobResult.cc src/model/DeactivateMediaWorkflowRequest.cc src/model/DeactivateMediaWorkflowResult.cc src/model/QueryVideoGifJobListRequest.cc @@ -456,18 +466,20 @@ set(mts_src src/model/ReportCoverJobResultResult.cc src/model/SubmitImageQualityJobRequest.cc src/model/SubmitImageQualityJobResult.cc + src/model/QueryFpCompareJobListRequest.cc + src/model/QueryFpCompareJobListResult.cc src/model/AddMCTemplateRequest.cc src/model/AddMCTemplateResult.cc - src/model/BindOutputBucketRequest.cc - src/model/BindOutputBucketResult.cc - src/model/SearchTemplateRequest.cc - src/model/SearchTemplateResult.cc src/model/UpdateMcuTemplateRequest.cc src/model/UpdateMcuTemplateResult.cc - src/model/QueryMCJobListRequest.cc - src/model/QueryMCJobListResult.cc + src/model/SearchTemplateRequest.cc + src/model/SearchTemplateResult.cc + src/model/BindOutputBucketRequest.cc + src/model/BindOutputBucketResult.cc src/model/AddPipelineRequest.cc src/model/AddPipelineResult.cc + src/model/QueryMCJobListRequest.cc + src/model/QueryMCJobListResult.cc src/model/SubmitFacerecogJobRequest.cc src/model/SubmitFacerecogJobResult.cc src/model/QueryMediaListRequest.cc @@ -476,42 +488,46 @@ set(mts_src src/model/SubmitEditingJobsResult.cc src/model/SubmitMediaInfoJobRequest.cc src/model/SubmitMediaInfoJobResult.cc - src/model/QueryPornJobListRequest.cc - src/model/QueryPornJobListResult.cc src/model/ReportVideoSplitJobResultRequest.cc src/model/ReportVideoSplitJobResultResult.cc + src/model/QueryPornJobListRequest.cc + src/model/QueryPornJobListResult.cc src/model/UpdateCategoryNameRequest.cc src/model/UpdateCategoryNameResult.cc src/model/DeleteMediaWorkflowRequest.cc src/model/DeleteMediaWorkflowResult.cc src/model/QueryMcuJobRequest.cc src/model/QueryMcuJobResult.cc - src/model/ListCoverPipelineRequest.cc - src/model/ListCoverPipelineResult.cc + src/model/SubmitBeautifyJobsRequest.cc + src/model/SubmitBeautifyJobsResult.cc src/model/QueryMediaCensorJobDetailRequest.cc src/model/QueryMediaCensorJobDetailResult.cc + src/model/ListCoverPipelineRequest.cc + src/model/ListCoverPipelineResult.cc src/model/CreateMcuTemplateRequest.cc src/model/CreateMcuTemplateResult.cc src/model/QueryImageSearchJobListRequest.cc src/model/QueryImageSearchJobListResult.cc - src/model/ReportFpShotJobResultRequest.cc - src/model/ReportFpShotJobResultResult.cc src/model/SubmitVideoSummaryJobRequest.cc src/model/SubmitVideoSummaryJobResult.cc + src/model/ReportFpShotJobResultRequest.cc + src/model/ReportFpShotJobResultResult.cc src/model/SubmitVideoGifJobRequest.cc src/model/SubmitVideoGifJobResult.cc src/model/QueryAnnotationJobListRequest.cc src/model/QueryAnnotationJobListResult.cc - src/model/SubmitMediaDetailJobRequest.cc - src/model/SubmitMediaDetailJobResult.cc src/model/SubmitPornJobRequest.cc src/model/SubmitPornJobResult.cc - src/model/QueryFpImportResultRequest.cc - src/model/QueryFpImportResultResult.cc + src/model/SubmitMediaDetailJobRequest.cc + src/model/SubmitMediaDetailJobResult.cc + src/model/DescribeMtsUserResourcePackageRequest.cc + src/model/DescribeMtsUserResourcePackageResult.cc src/model/SubmitMCJobRequest.cc src/model/SubmitMCJobResult.cc src/model/AddTemplateRequest.cc src/model/AddTemplateResult.cc + src/model/QueryFpImportResultRequest.cc + src/model/QueryFpImportResultResult.cc src/model/QueryWaterMarkTemplateListRequest.cc src/model/QueryWaterMarkTemplateListResult.cc src/model/ReportPornJobResultRequest.cc @@ -530,10 +546,10 @@ set(mts_src src/model/AddPornPipelineResult.cc src/model/GetLicenseRequest.cc src/model/GetLicenseResult.cc - src/model/QueryVideoSummaryJobListRequest.cc - src/model/QueryVideoSummaryJobListResult.cc src/model/QueryPornPipelineListRequest.cc src/model/QueryPornPipelineListResult.cc + src/model/QueryVideoSummaryJobListRequest.cc + src/model/QueryVideoSummaryJobListResult.cc src/model/QueryTerrorismJobListRequest.cc src/model/QueryTerrorismJobListResult.cc src/model/SubmitJobsRequest.cc @@ -554,10 +570,10 @@ set(mts_src src/model/QueryMcuTemplateResult.cc src/model/UpdateMediaWorkflowTriggerModeRequest.cc src/model/UpdateMediaWorkflowTriggerModeResult.cc - src/model/SearchMediaRequest.cc - src/model/SearchMediaResult.cc src/model/ActivateMediaWorkflowRequest.cc src/model/ActivateMediaWorkflowResult.cc + src/model/SearchMediaRequest.cc + src/model/SearchMediaResult.cc src/model/SubmitTerrorismJobRequest.cc src/model/SubmitTerrorismJobResult.cc src/model/SetAuthConfigRequest.cc @@ -582,16 +598,18 @@ set(mts_src src/model/ReportMediaDetailJobResultResult.cc src/model/RegisterMediaDetailScenarioRequest.cc src/model/RegisterMediaDetailScenarioResult.cc + src/model/QueryMediaCensorJobListRequest.cc + src/model/QueryMediaCensorJobListResult.cc src/model/ReportAnnotationJobResultRequest.cc src/model/ReportAnnotationJobResultResult.cc src/model/ListPornPipelineRequest.cc src/model/ListPornPipelineResult.cc src/model/QueryVideoSplitJobListRequest.cc src/model/QueryVideoSplitJobListResult.cc - src/model/BindInputBucketRequest.cc - src/model/BindInputBucketResult.cc src/model/AddTerrorismPipelineRequest.cc src/model/AddTerrorismPipelineResult.cc + src/model/BindInputBucketRequest.cc + src/model/BindInputBucketResult.cc src/model/QueryPipelineListRequest.cc src/model/QueryPipelineListResult.cc src/model/UpdateTemplateRequest.cc @@ -608,40 +626,42 @@ set(mts_src src/model/SubmitFpShotJobResult.cc src/model/QueryCensorPipelineListRequest.cc src/model/QueryCensorPipelineListResult.cc - src/model/SubmitVideoSplitJobRequest.cc - src/model/SubmitVideoSplitJobResult.cc src/model/SubmitMcuJobRequest.cc src/model/SubmitMcuJobResult.cc + src/model/SubmitVideoSplitJobRequest.cc + src/model/SubmitVideoSplitJobResult.cc src/model/CategoryTreeRequest.cc src/model/CategoryTreeResult.cc src/model/SubmitTagJobRequest.cc src/model/SubmitTagJobResult.cc src/model/SubmitCoverJobRequest.cc src/model/SubmitCoverJobResult.cc + src/model/PlayInfoRequest.cc + src/model/PlayInfoResult.cc src/model/SearchWaterMarkTemplateRequest.cc src/model/SearchWaterMarkTemplateResult.cc src/model/AddCensorPipelineRequest.cc src/model/AddCensorPipelineResult.cc - src/model/PlayInfoRequest.cc - src/model/PlayInfoResult.cc src/model/SubmitAsrJobRequest.cc src/model/SubmitAsrJobResult.cc src/model/SubmitSubtitleJobRequest.cc src/model/SubmitSubtitleJobResult.cc - src/model/QueryCoverJobListRequest.cc - src/model/QueryCoverJobListResult.cc src/model/AddMediaWorkflowRequest.cc src/model/AddMediaWorkflowResult.cc + src/model/QueryCoverJobListRequest.cc + src/model/QueryCoverJobListResult.cc src/model/QueryAsrJobListRequest.cc src/model/QueryAsrJobListResult.cc - src/model/SubmitVideoPoseJobRequest.cc - src/model/SubmitVideoPoseJobResult.cc - src/model/PlayerAuthRequest.cc - src/model/PlayerAuthResult.cc src/model/AddWaterMarkTemplateRequest.cc src/model/AddWaterMarkTemplateResult.cc + src/model/PlayerAuthRequest.cc + src/model/PlayerAuthResult.cc + src/model/SubmitVideoPoseJobRequest.cc + src/model/SubmitVideoPoseJobResult.cc src/model/RegisterMediaDetailPersonRequest.cc src/model/RegisterMediaDetailPersonResult.cc + src/model/SubmitFpCompareJobRequest.cc + src/model/SubmitFpCompareJobResult.cc src/model/QueryCensorJobListRequest.cc src/model/QueryCensorJobListResult.cc ) diff --git a/mts/include/alibabacloud/mts/MtsClient.h b/mts/include/alibabacloud/mts/MtsClient.h index fbce54708..6278b638e 100644 --- a/mts/include/alibabacloud/mts/MtsClient.h +++ b/mts/include/alibabacloud/mts/MtsClient.h @@ -22,12 +22,12 @@ #include #include #include "MtsExport.h" -#include "model/DeleteCategoryRequest.h" -#include "model/DeleteCategoryResult.h" -#include "model/QuerySnapshotJobListRequest.h" -#include "model/QuerySnapshotJobListResult.h" #include "model/QueryAuthConfigRequest.h" #include "model/QueryAuthConfigResult.h" +#include "model/QuerySnapshotJobListRequest.h" +#include "model/QuerySnapshotJobListResult.h" +#include "model/DeleteCategoryRequest.h" +#include "model/DeleteCategoryResult.h" #include "model/QueryTagJobListRequest.h" #include "model/QueryTagJobListResult.h" #include "model/QueryAsrPipelineListRequest.h" @@ -38,10 +38,10 @@ #include "model/CreateSessionResult.h" #include "model/UpdateMediaPublishStateRequest.h" #include "model/UpdateMediaPublishStateResult.h" -#include "model/ListJobRequest.h" -#include "model/ListJobResult.h" #include "model/ListAsrPipelineRequest.h" #include "model/ListAsrPipelineResult.h" +#include "model/ListJobRequest.h" +#include "model/ListJobResult.h" #include "model/AddMediaTagRequest.h" #include "model/AddMediaTagResult.h" #include "model/UnbindInputBucketRequest.h" @@ -54,10 +54,10 @@ #include "model/SubmitComplexJobResult.h" #include "model/AddAsrPipelineRequest.h" #include "model/AddAsrPipelineResult.h" -#include "model/CancelJobRequest.h" -#include "model/CancelJobResult.h" #include "model/ReportCensorJobResultRequest.h" #include "model/ReportCensorJobResultResult.h" +#include "model/CancelJobRequest.h" +#include "model/CancelJobResult.h" #include "model/DeleteMcuJobRequest.h" #include "model/DeleteMcuJobResult.h" #include "model/ListAllCategoryRequest.h" @@ -80,20 +80,20 @@ #include "model/QueryComplexJobListResult.h" #include "model/QueryJobListRequest.h" #include "model/QueryJobListResult.h" -#include "model/SearchMediaWorkflowRequest.h" -#include "model/SearchMediaWorkflowResult.h" #include "model/LogicalDeleteResourceRequest.h" #include "model/LogicalDeleteResourceResult.h" -#include "model/QueryCoverPipelineListRequest.h" -#include "model/QueryCoverPipelineListResult.h" +#include "model/SearchMediaWorkflowRequest.h" +#include "model/SearchMediaWorkflowResult.h" #include "model/QueryFpShotJobListRequest.h" #include "model/QueryFpShotJobListResult.h" +#include "model/QueryCoverPipelineListRequest.h" +#include "model/QueryCoverPipelineListResult.h" #include "model/ListMediaWorkflowExecutionsRequest.h" #include "model/ListMediaWorkflowExecutionsResult.h" -#include "model/DeletePipelineRequest.h" -#include "model/DeletePipelineResult.h" #include "model/DeleteMediaTagRequest.h" #include "model/DeleteMediaTagResult.h" +#include "model/DeletePipelineRequest.h" +#include "model/DeletePipelineResult.h" #include "model/UpdateAsrPipelineRequest.h" #include "model/UpdateAsrPipelineResult.h" #include "model/QueryMediaDetailJobListRequest.h" @@ -118,12 +118,12 @@ #include "model/QueryMCTemplateListResult.h" #include "model/UpdateMediaRequest.h" #include "model/UpdateMediaResult.h" -#include "model/SubmitMediaFpDeleteJobRequest.h" -#include "model/SubmitMediaFpDeleteJobResult.h" -#include "model/ListCensorPipelineRequest.h" -#include "model/ListCensorPipelineResult.h" #include "model/QuerySubtitleJobListRequest.h" #include "model/QuerySubtitleJobListResult.h" +#include "model/ListCensorPipelineRequest.h" +#include "model/ListCensorPipelineResult.h" +#include "model/SubmitMediaFpDeleteJobRequest.h" +#include "model/SubmitMediaFpDeleteJobResult.h" #include "model/DeactivateMediaWorkflowRequest.h" #include "model/DeactivateMediaWorkflowResult.h" #include "model/QueryVideoGifJobListRequest.h" @@ -144,18 +144,20 @@ #include "model/ReportCoverJobResultResult.h" #include "model/SubmitImageQualityJobRequest.h" #include "model/SubmitImageQualityJobResult.h" +#include "model/QueryFpCompareJobListRequest.h" +#include "model/QueryFpCompareJobListResult.h" #include "model/AddMCTemplateRequest.h" #include "model/AddMCTemplateResult.h" -#include "model/BindOutputBucketRequest.h" -#include "model/BindOutputBucketResult.h" -#include "model/SearchTemplateRequest.h" -#include "model/SearchTemplateResult.h" #include "model/UpdateMcuTemplateRequest.h" #include "model/UpdateMcuTemplateResult.h" -#include "model/QueryMCJobListRequest.h" -#include "model/QueryMCJobListResult.h" +#include "model/SearchTemplateRequest.h" +#include "model/SearchTemplateResult.h" +#include "model/BindOutputBucketRequest.h" +#include "model/BindOutputBucketResult.h" #include "model/AddPipelineRequest.h" #include "model/AddPipelineResult.h" +#include "model/QueryMCJobListRequest.h" +#include "model/QueryMCJobListResult.h" #include "model/SubmitFacerecogJobRequest.h" #include "model/SubmitFacerecogJobResult.h" #include "model/QueryMediaListRequest.h" @@ -164,42 +166,46 @@ #include "model/SubmitEditingJobsResult.h" #include "model/SubmitMediaInfoJobRequest.h" #include "model/SubmitMediaInfoJobResult.h" -#include "model/QueryPornJobListRequest.h" -#include "model/QueryPornJobListResult.h" #include "model/ReportVideoSplitJobResultRequest.h" #include "model/ReportVideoSplitJobResultResult.h" +#include "model/QueryPornJobListRequest.h" +#include "model/QueryPornJobListResult.h" #include "model/UpdateCategoryNameRequest.h" #include "model/UpdateCategoryNameResult.h" #include "model/DeleteMediaWorkflowRequest.h" #include "model/DeleteMediaWorkflowResult.h" #include "model/QueryMcuJobRequest.h" #include "model/QueryMcuJobResult.h" -#include "model/ListCoverPipelineRequest.h" -#include "model/ListCoverPipelineResult.h" +#include "model/SubmitBeautifyJobsRequest.h" +#include "model/SubmitBeautifyJobsResult.h" #include "model/QueryMediaCensorJobDetailRequest.h" #include "model/QueryMediaCensorJobDetailResult.h" +#include "model/ListCoverPipelineRequest.h" +#include "model/ListCoverPipelineResult.h" #include "model/CreateMcuTemplateRequest.h" #include "model/CreateMcuTemplateResult.h" #include "model/QueryImageSearchJobListRequest.h" #include "model/QueryImageSearchJobListResult.h" -#include "model/ReportFpShotJobResultRequest.h" -#include "model/ReportFpShotJobResultResult.h" #include "model/SubmitVideoSummaryJobRequest.h" #include "model/SubmitVideoSummaryJobResult.h" +#include "model/ReportFpShotJobResultRequest.h" +#include "model/ReportFpShotJobResultResult.h" #include "model/SubmitVideoGifJobRequest.h" #include "model/SubmitVideoGifJobResult.h" #include "model/QueryAnnotationJobListRequest.h" #include "model/QueryAnnotationJobListResult.h" -#include "model/SubmitMediaDetailJobRequest.h" -#include "model/SubmitMediaDetailJobResult.h" #include "model/SubmitPornJobRequest.h" #include "model/SubmitPornJobResult.h" -#include "model/QueryFpImportResultRequest.h" -#include "model/QueryFpImportResultResult.h" +#include "model/SubmitMediaDetailJobRequest.h" +#include "model/SubmitMediaDetailJobResult.h" +#include "model/DescribeMtsUserResourcePackageRequest.h" +#include "model/DescribeMtsUserResourcePackageResult.h" #include "model/SubmitMCJobRequest.h" #include "model/SubmitMCJobResult.h" #include "model/AddTemplateRequest.h" #include "model/AddTemplateResult.h" +#include "model/QueryFpImportResultRequest.h" +#include "model/QueryFpImportResultResult.h" #include "model/QueryWaterMarkTemplateListRequest.h" #include "model/QueryWaterMarkTemplateListResult.h" #include "model/ReportPornJobResultRequest.h" @@ -218,10 +224,10 @@ #include "model/AddPornPipelineResult.h" #include "model/GetLicenseRequest.h" #include "model/GetLicenseResult.h" -#include "model/QueryVideoSummaryJobListRequest.h" -#include "model/QueryVideoSummaryJobListResult.h" #include "model/QueryPornPipelineListRequest.h" #include "model/QueryPornPipelineListResult.h" +#include "model/QueryVideoSummaryJobListRequest.h" +#include "model/QueryVideoSummaryJobListResult.h" #include "model/QueryTerrorismJobListRequest.h" #include "model/QueryTerrorismJobListResult.h" #include "model/SubmitJobsRequest.h" @@ -242,10 +248,10 @@ #include "model/QueryMcuTemplateResult.h" #include "model/UpdateMediaWorkflowTriggerModeRequest.h" #include "model/UpdateMediaWorkflowTriggerModeResult.h" -#include "model/SearchMediaRequest.h" -#include "model/SearchMediaResult.h" #include "model/ActivateMediaWorkflowRequest.h" #include "model/ActivateMediaWorkflowResult.h" +#include "model/SearchMediaRequest.h" +#include "model/SearchMediaResult.h" #include "model/SubmitTerrorismJobRequest.h" #include "model/SubmitTerrorismJobResult.h" #include "model/SetAuthConfigRequest.h" @@ -270,16 +276,18 @@ #include "model/ReportMediaDetailJobResultResult.h" #include "model/RegisterMediaDetailScenarioRequest.h" #include "model/RegisterMediaDetailScenarioResult.h" +#include "model/QueryMediaCensorJobListRequest.h" +#include "model/QueryMediaCensorJobListResult.h" #include "model/ReportAnnotationJobResultRequest.h" #include "model/ReportAnnotationJobResultResult.h" #include "model/ListPornPipelineRequest.h" #include "model/ListPornPipelineResult.h" #include "model/QueryVideoSplitJobListRequest.h" #include "model/QueryVideoSplitJobListResult.h" -#include "model/BindInputBucketRequest.h" -#include "model/BindInputBucketResult.h" #include "model/AddTerrorismPipelineRequest.h" #include "model/AddTerrorismPipelineResult.h" +#include "model/BindInputBucketRequest.h" +#include "model/BindInputBucketResult.h" #include "model/QueryPipelineListRequest.h" #include "model/QueryPipelineListResult.h" #include "model/UpdateTemplateRequest.h" @@ -296,40 +304,42 @@ #include "model/SubmitFpShotJobResult.h" #include "model/QueryCensorPipelineListRequest.h" #include "model/QueryCensorPipelineListResult.h" -#include "model/SubmitVideoSplitJobRequest.h" -#include "model/SubmitVideoSplitJobResult.h" #include "model/SubmitMcuJobRequest.h" #include "model/SubmitMcuJobResult.h" +#include "model/SubmitVideoSplitJobRequest.h" +#include "model/SubmitVideoSplitJobResult.h" #include "model/CategoryTreeRequest.h" #include "model/CategoryTreeResult.h" #include "model/SubmitTagJobRequest.h" #include "model/SubmitTagJobResult.h" #include "model/SubmitCoverJobRequest.h" #include "model/SubmitCoverJobResult.h" +#include "model/PlayInfoRequest.h" +#include "model/PlayInfoResult.h" #include "model/SearchWaterMarkTemplateRequest.h" #include "model/SearchWaterMarkTemplateResult.h" #include "model/AddCensorPipelineRequest.h" #include "model/AddCensorPipelineResult.h" -#include "model/PlayInfoRequest.h" -#include "model/PlayInfoResult.h" #include "model/SubmitAsrJobRequest.h" #include "model/SubmitAsrJobResult.h" #include "model/SubmitSubtitleJobRequest.h" #include "model/SubmitSubtitleJobResult.h" -#include "model/QueryCoverJobListRequest.h" -#include "model/QueryCoverJobListResult.h" #include "model/AddMediaWorkflowRequest.h" #include "model/AddMediaWorkflowResult.h" +#include "model/QueryCoverJobListRequest.h" +#include "model/QueryCoverJobListResult.h" #include "model/QueryAsrJobListRequest.h" #include "model/QueryAsrJobListResult.h" -#include "model/SubmitVideoPoseJobRequest.h" -#include "model/SubmitVideoPoseJobResult.h" -#include "model/PlayerAuthRequest.h" -#include "model/PlayerAuthResult.h" #include "model/AddWaterMarkTemplateRequest.h" #include "model/AddWaterMarkTemplateResult.h" +#include "model/PlayerAuthRequest.h" +#include "model/PlayerAuthResult.h" +#include "model/SubmitVideoPoseJobRequest.h" +#include "model/SubmitVideoPoseJobResult.h" #include "model/RegisterMediaDetailPersonRequest.h" #include "model/RegisterMediaDetailPersonResult.h" +#include "model/SubmitFpCompareJobRequest.h" +#include "model/SubmitFpCompareJobResult.h" #include "model/QueryCensorJobListRequest.h" #include "model/QueryCensorJobListResult.h" @@ -341,15 +351,15 @@ namespace AlibabaCloud class ALIBABACLOUD_MTS_EXPORT MtsClient : public RpcServiceClient { public: - typedef Outcome DeleteCategoryOutcome; - typedef std::future DeleteCategoryOutcomeCallable; - typedef std::function&)> DeleteCategoryAsyncHandler; - typedef Outcome QuerySnapshotJobListOutcome; - typedef std::future QuerySnapshotJobListOutcomeCallable; - typedef std::function&)> QuerySnapshotJobListAsyncHandler; typedef Outcome QueryAuthConfigOutcome; typedef std::future QueryAuthConfigOutcomeCallable; typedef std::function&)> QueryAuthConfigAsyncHandler; + typedef Outcome QuerySnapshotJobListOutcome; + typedef std::future QuerySnapshotJobListOutcomeCallable; + typedef std::function&)> QuerySnapshotJobListAsyncHandler; + typedef Outcome DeleteCategoryOutcome; + typedef std::future DeleteCategoryOutcomeCallable; + typedef std::function&)> DeleteCategoryAsyncHandler; typedef Outcome QueryTagJobListOutcome; typedef std::future QueryTagJobListOutcomeCallable; typedef std::function&)> QueryTagJobListAsyncHandler; @@ -365,12 +375,12 @@ namespace AlibabaCloud typedef Outcome UpdateMediaPublishStateOutcome; typedef std::future UpdateMediaPublishStateOutcomeCallable; typedef std::function&)> UpdateMediaPublishStateAsyncHandler; - typedef Outcome ListJobOutcome; - typedef std::future ListJobOutcomeCallable; - typedef std::function&)> ListJobAsyncHandler; typedef Outcome ListAsrPipelineOutcome; typedef std::future ListAsrPipelineOutcomeCallable; typedef std::function&)> ListAsrPipelineAsyncHandler; + typedef Outcome ListJobOutcome; + typedef std::future ListJobOutcomeCallable; + typedef std::function&)> ListJobAsyncHandler; typedef Outcome AddMediaTagOutcome; typedef std::future AddMediaTagOutcomeCallable; typedef std::function&)> AddMediaTagAsyncHandler; @@ -389,12 +399,12 @@ namespace AlibabaCloud typedef Outcome AddAsrPipelineOutcome; typedef std::future AddAsrPipelineOutcomeCallable; typedef std::function&)> AddAsrPipelineAsyncHandler; - typedef Outcome CancelJobOutcome; - typedef std::future CancelJobOutcomeCallable; - typedef std::function&)> CancelJobAsyncHandler; typedef Outcome ReportCensorJobResultOutcome; typedef std::future ReportCensorJobResultOutcomeCallable; typedef std::function&)> ReportCensorJobResultAsyncHandler; + typedef Outcome CancelJobOutcome; + typedef std::future CancelJobOutcomeCallable; + typedef std::function&)> CancelJobAsyncHandler; typedef Outcome DeleteMcuJobOutcome; typedef std::future DeleteMcuJobOutcomeCallable; typedef std::function&)> DeleteMcuJobAsyncHandler; @@ -428,27 +438,27 @@ namespace AlibabaCloud typedef Outcome QueryJobListOutcome; typedef std::future QueryJobListOutcomeCallable; typedef std::function&)> QueryJobListAsyncHandler; - typedef Outcome SearchMediaWorkflowOutcome; - typedef std::future SearchMediaWorkflowOutcomeCallable; - typedef std::function&)> SearchMediaWorkflowAsyncHandler; typedef Outcome LogicalDeleteResourceOutcome; typedef std::future LogicalDeleteResourceOutcomeCallable; typedef std::function&)> LogicalDeleteResourceAsyncHandler; - typedef Outcome QueryCoverPipelineListOutcome; - typedef std::future QueryCoverPipelineListOutcomeCallable; - typedef std::function&)> QueryCoverPipelineListAsyncHandler; + typedef Outcome SearchMediaWorkflowOutcome; + typedef std::future SearchMediaWorkflowOutcomeCallable; + typedef std::function&)> SearchMediaWorkflowAsyncHandler; typedef Outcome QueryFpShotJobListOutcome; typedef std::future QueryFpShotJobListOutcomeCallable; typedef std::function&)> QueryFpShotJobListAsyncHandler; + typedef Outcome QueryCoverPipelineListOutcome; + typedef std::future QueryCoverPipelineListOutcomeCallable; + typedef std::function&)> QueryCoverPipelineListAsyncHandler; typedef Outcome ListMediaWorkflowExecutionsOutcome; typedef std::future ListMediaWorkflowExecutionsOutcomeCallable; typedef std::function&)> ListMediaWorkflowExecutionsAsyncHandler; - typedef Outcome DeletePipelineOutcome; - typedef std::future DeletePipelineOutcomeCallable; - typedef std::function&)> DeletePipelineAsyncHandler; typedef Outcome DeleteMediaTagOutcome; typedef std::future DeleteMediaTagOutcomeCallable; typedef std::function&)> DeleteMediaTagAsyncHandler; + typedef Outcome DeletePipelineOutcome; + typedef std::future DeletePipelineOutcomeCallable; + typedef std::function&)> DeletePipelineAsyncHandler; typedef Outcome UpdateAsrPipelineOutcome; typedef std::future UpdateAsrPipelineOutcomeCallable; typedef std::function&)> UpdateAsrPipelineAsyncHandler; @@ -485,15 +495,15 @@ namespace AlibabaCloud typedef Outcome UpdateMediaOutcome; typedef std::future UpdateMediaOutcomeCallable; typedef std::function&)> UpdateMediaAsyncHandler; - typedef Outcome SubmitMediaFpDeleteJobOutcome; - typedef std::future SubmitMediaFpDeleteJobOutcomeCallable; - typedef std::function&)> SubmitMediaFpDeleteJobAsyncHandler; - typedef Outcome ListCensorPipelineOutcome; - typedef std::future ListCensorPipelineOutcomeCallable; - typedef std::function&)> ListCensorPipelineAsyncHandler; typedef Outcome QuerySubtitleJobListOutcome; typedef std::future QuerySubtitleJobListOutcomeCallable; typedef std::function&)> QuerySubtitleJobListAsyncHandler; + typedef Outcome ListCensorPipelineOutcome; + typedef std::future ListCensorPipelineOutcomeCallable; + typedef std::function&)> ListCensorPipelineAsyncHandler; + typedef Outcome SubmitMediaFpDeleteJobOutcome; + typedef std::future SubmitMediaFpDeleteJobOutcomeCallable; + typedef std::function&)> SubmitMediaFpDeleteJobAsyncHandler; typedef Outcome DeactivateMediaWorkflowOutcome; typedef std::future DeactivateMediaWorkflowOutcomeCallable; typedef std::function&)> DeactivateMediaWorkflowAsyncHandler; @@ -524,24 +534,27 @@ namespace AlibabaCloud typedef Outcome SubmitImageQualityJobOutcome; typedef std::future SubmitImageQualityJobOutcomeCallable; typedef std::function&)> SubmitImageQualityJobAsyncHandler; + typedef Outcome QueryFpCompareJobListOutcome; + typedef std::future QueryFpCompareJobListOutcomeCallable; + typedef std::function&)> QueryFpCompareJobListAsyncHandler; typedef Outcome AddMCTemplateOutcome; typedef std::future AddMCTemplateOutcomeCallable; typedef std::function&)> AddMCTemplateAsyncHandler; - typedef Outcome BindOutputBucketOutcome; - typedef std::future BindOutputBucketOutcomeCallable; - typedef std::function&)> BindOutputBucketAsyncHandler; - typedef Outcome SearchTemplateOutcome; - typedef std::future SearchTemplateOutcomeCallable; - typedef std::function&)> SearchTemplateAsyncHandler; typedef Outcome UpdateMcuTemplateOutcome; typedef std::future UpdateMcuTemplateOutcomeCallable; typedef std::function&)> UpdateMcuTemplateAsyncHandler; - typedef Outcome QueryMCJobListOutcome; - typedef std::future QueryMCJobListOutcomeCallable; - typedef std::function&)> QueryMCJobListAsyncHandler; + typedef Outcome SearchTemplateOutcome; + typedef std::future SearchTemplateOutcomeCallable; + typedef std::function&)> SearchTemplateAsyncHandler; + typedef Outcome BindOutputBucketOutcome; + typedef std::future BindOutputBucketOutcomeCallable; + typedef std::function&)> BindOutputBucketAsyncHandler; typedef Outcome AddPipelineOutcome; typedef std::future AddPipelineOutcomeCallable; typedef std::function&)> AddPipelineAsyncHandler; + typedef Outcome QueryMCJobListOutcome; + typedef std::future QueryMCJobListOutcomeCallable; + typedef std::function&)> QueryMCJobListAsyncHandler; typedef Outcome SubmitFacerecogJobOutcome; typedef std::future SubmitFacerecogJobOutcomeCallable; typedef std::function&)> SubmitFacerecogJobAsyncHandler; @@ -554,12 +567,12 @@ namespace AlibabaCloud typedef Outcome SubmitMediaInfoJobOutcome; typedef std::future SubmitMediaInfoJobOutcomeCallable; typedef std::function&)> SubmitMediaInfoJobAsyncHandler; - typedef Outcome QueryPornJobListOutcome; - typedef std::future QueryPornJobListOutcomeCallable; - typedef std::function&)> QueryPornJobListAsyncHandler; typedef Outcome ReportVideoSplitJobResultOutcome; typedef std::future ReportVideoSplitJobResultOutcomeCallable; typedef std::function&)> ReportVideoSplitJobResultAsyncHandler; + typedef Outcome QueryPornJobListOutcome; + typedef std::future QueryPornJobListOutcomeCallable; + typedef std::function&)> QueryPornJobListAsyncHandler; typedef Outcome UpdateCategoryNameOutcome; typedef std::future UpdateCategoryNameOutcomeCallable; typedef std::function&)> UpdateCategoryNameAsyncHandler; @@ -569,45 +582,51 @@ namespace AlibabaCloud typedef Outcome QueryMcuJobOutcome; typedef std::future QueryMcuJobOutcomeCallable; typedef std::function&)> QueryMcuJobAsyncHandler; - typedef Outcome ListCoverPipelineOutcome; - typedef std::future ListCoverPipelineOutcomeCallable; - typedef std::function&)> ListCoverPipelineAsyncHandler; + typedef Outcome SubmitBeautifyJobsOutcome; + typedef std::future SubmitBeautifyJobsOutcomeCallable; + typedef std::function&)> SubmitBeautifyJobsAsyncHandler; typedef Outcome QueryMediaCensorJobDetailOutcome; typedef std::future QueryMediaCensorJobDetailOutcomeCallable; typedef std::function&)> QueryMediaCensorJobDetailAsyncHandler; + typedef Outcome ListCoverPipelineOutcome; + typedef std::future ListCoverPipelineOutcomeCallable; + typedef std::function&)> ListCoverPipelineAsyncHandler; typedef Outcome CreateMcuTemplateOutcome; typedef std::future CreateMcuTemplateOutcomeCallable; typedef std::function&)> CreateMcuTemplateAsyncHandler; typedef Outcome QueryImageSearchJobListOutcome; typedef std::future QueryImageSearchJobListOutcomeCallable; typedef std::function&)> QueryImageSearchJobListAsyncHandler; - typedef Outcome ReportFpShotJobResultOutcome; - typedef std::future ReportFpShotJobResultOutcomeCallable; - typedef std::function&)> ReportFpShotJobResultAsyncHandler; typedef Outcome SubmitVideoSummaryJobOutcome; typedef std::future SubmitVideoSummaryJobOutcomeCallable; typedef std::function&)> SubmitVideoSummaryJobAsyncHandler; + typedef Outcome ReportFpShotJobResultOutcome; + typedef std::future ReportFpShotJobResultOutcomeCallable; + typedef std::function&)> ReportFpShotJobResultAsyncHandler; typedef Outcome SubmitVideoGifJobOutcome; typedef std::future SubmitVideoGifJobOutcomeCallable; typedef std::function&)> SubmitVideoGifJobAsyncHandler; typedef Outcome QueryAnnotationJobListOutcome; typedef std::future QueryAnnotationJobListOutcomeCallable; typedef std::function&)> QueryAnnotationJobListAsyncHandler; - typedef Outcome SubmitMediaDetailJobOutcome; - typedef std::future SubmitMediaDetailJobOutcomeCallable; - typedef std::function&)> SubmitMediaDetailJobAsyncHandler; typedef Outcome SubmitPornJobOutcome; typedef std::future SubmitPornJobOutcomeCallable; typedef std::function&)> SubmitPornJobAsyncHandler; - typedef Outcome QueryFpImportResultOutcome; - typedef std::future QueryFpImportResultOutcomeCallable; - typedef std::function&)> QueryFpImportResultAsyncHandler; + typedef Outcome SubmitMediaDetailJobOutcome; + typedef std::future SubmitMediaDetailJobOutcomeCallable; + typedef std::function&)> SubmitMediaDetailJobAsyncHandler; + typedef Outcome DescribeMtsUserResourcePackageOutcome; + typedef std::future DescribeMtsUserResourcePackageOutcomeCallable; + typedef std::function&)> DescribeMtsUserResourcePackageAsyncHandler; typedef Outcome SubmitMCJobOutcome; typedef std::future SubmitMCJobOutcomeCallable; typedef std::function&)> SubmitMCJobAsyncHandler; typedef Outcome AddTemplateOutcome; typedef std::future AddTemplateOutcomeCallable; typedef std::function&)> AddTemplateAsyncHandler; + typedef Outcome QueryFpImportResultOutcome; + typedef std::future QueryFpImportResultOutcomeCallable; + typedef std::function&)> QueryFpImportResultAsyncHandler; typedef Outcome QueryWaterMarkTemplateListOutcome; typedef std::future QueryWaterMarkTemplateListOutcomeCallable; typedef std::function&)> QueryWaterMarkTemplateListAsyncHandler; @@ -635,12 +654,12 @@ namespace AlibabaCloud typedef Outcome GetLicenseOutcome; typedef std::future GetLicenseOutcomeCallable; typedef std::function&)> GetLicenseAsyncHandler; - typedef Outcome QueryVideoSummaryJobListOutcome; - typedef std::future QueryVideoSummaryJobListOutcomeCallable; - typedef std::function&)> QueryVideoSummaryJobListAsyncHandler; typedef Outcome QueryPornPipelineListOutcome; typedef std::future QueryPornPipelineListOutcomeCallable; typedef std::function&)> QueryPornPipelineListAsyncHandler; + typedef Outcome QueryVideoSummaryJobListOutcome; + typedef std::future QueryVideoSummaryJobListOutcomeCallable; + typedef std::function&)> QueryVideoSummaryJobListAsyncHandler; typedef Outcome QueryTerrorismJobListOutcome; typedef std::future QueryTerrorismJobListOutcomeCallable; typedef std::function&)> QueryTerrorismJobListAsyncHandler; @@ -671,12 +690,12 @@ namespace AlibabaCloud typedef Outcome UpdateMediaWorkflowTriggerModeOutcome; typedef std::future UpdateMediaWorkflowTriggerModeOutcomeCallable; typedef std::function&)> UpdateMediaWorkflowTriggerModeAsyncHandler; - typedef Outcome SearchMediaOutcome; - typedef std::future SearchMediaOutcomeCallable; - typedef std::function&)> SearchMediaAsyncHandler; typedef Outcome ActivateMediaWorkflowOutcome; typedef std::future ActivateMediaWorkflowOutcomeCallable; typedef std::function&)> ActivateMediaWorkflowAsyncHandler; + typedef Outcome SearchMediaOutcome; + typedef std::future SearchMediaOutcomeCallable; + typedef std::function&)> SearchMediaAsyncHandler; typedef Outcome SubmitTerrorismJobOutcome; typedef std::future SubmitTerrorismJobOutcomeCallable; typedef std::function&)> SubmitTerrorismJobAsyncHandler; @@ -713,6 +732,9 @@ namespace AlibabaCloud typedef Outcome RegisterMediaDetailScenarioOutcome; typedef std::future RegisterMediaDetailScenarioOutcomeCallable; typedef std::function&)> RegisterMediaDetailScenarioAsyncHandler; + typedef Outcome QueryMediaCensorJobListOutcome; + typedef std::future QueryMediaCensorJobListOutcomeCallable; + typedef std::function&)> QueryMediaCensorJobListAsyncHandler; typedef Outcome ReportAnnotationJobResultOutcome; typedef std::future ReportAnnotationJobResultOutcomeCallable; typedef std::function&)> ReportAnnotationJobResultAsyncHandler; @@ -722,12 +744,12 @@ namespace AlibabaCloud typedef Outcome QueryVideoSplitJobListOutcome; typedef std::future QueryVideoSplitJobListOutcomeCallable; typedef std::function&)> QueryVideoSplitJobListAsyncHandler; - typedef Outcome BindInputBucketOutcome; - typedef std::future BindInputBucketOutcomeCallable; - typedef std::function&)> BindInputBucketAsyncHandler; typedef Outcome AddTerrorismPipelineOutcome; typedef std::future AddTerrorismPipelineOutcomeCallable; typedef std::function&)> AddTerrorismPipelineAsyncHandler; + typedef Outcome BindInputBucketOutcome; + typedef std::future BindInputBucketOutcomeCallable; + typedef std::function&)> BindInputBucketAsyncHandler; typedef Outcome QueryPipelineListOutcome; typedef std::future QueryPipelineListOutcomeCallable; typedef std::function&)> QueryPipelineListAsyncHandler; @@ -752,12 +774,12 @@ namespace AlibabaCloud typedef Outcome QueryCensorPipelineListOutcome; typedef std::future QueryCensorPipelineListOutcomeCallable; typedef std::function&)> QueryCensorPipelineListAsyncHandler; - typedef Outcome SubmitVideoSplitJobOutcome; - typedef std::future SubmitVideoSplitJobOutcomeCallable; - typedef std::function&)> SubmitVideoSplitJobAsyncHandler; typedef Outcome SubmitMcuJobOutcome; typedef std::future SubmitMcuJobOutcomeCallable; typedef std::function&)> SubmitMcuJobAsyncHandler; + typedef Outcome SubmitVideoSplitJobOutcome; + typedef std::future SubmitVideoSplitJobOutcomeCallable; + typedef std::function&)> SubmitVideoSplitJobAsyncHandler; typedef Outcome CategoryTreeOutcome; typedef std::future CategoryTreeOutcomeCallable; typedef std::function&)> CategoryTreeAsyncHandler; @@ -767,42 +789,45 @@ namespace AlibabaCloud typedef Outcome SubmitCoverJobOutcome; typedef std::future SubmitCoverJobOutcomeCallable; typedef std::function&)> SubmitCoverJobAsyncHandler; + typedef Outcome PlayInfoOutcome; + typedef std::future PlayInfoOutcomeCallable; + typedef std::function&)> PlayInfoAsyncHandler; typedef Outcome SearchWaterMarkTemplateOutcome; typedef std::future SearchWaterMarkTemplateOutcomeCallable; typedef std::function&)> SearchWaterMarkTemplateAsyncHandler; typedef Outcome AddCensorPipelineOutcome; typedef std::future AddCensorPipelineOutcomeCallable; typedef std::function&)> AddCensorPipelineAsyncHandler; - typedef Outcome PlayInfoOutcome; - typedef std::future PlayInfoOutcomeCallable; - typedef std::function&)> PlayInfoAsyncHandler; typedef Outcome SubmitAsrJobOutcome; typedef std::future SubmitAsrJobOutcomeCallable; typedef std::function&)> SubmitAsrJobAsyncHandler; typedef Outcome SubmitSubtitleJobOutcome; typedef std::future SubmitSubtitleJobOutcomeCallable; typedef std::function&)> SubmitSubtitleJobAsyncHandler; - typedef Outcome QueryCoverJobListOutcome; - typedef std::future QueryCoverJobListOutcomeCallable; - typedef std::function&)> QueryCoverJobListAsyncHandler; typedef Outcome AddMediaWorkflowOutcome; typedef std::future AddMediaWorkflowOutcomeCallable; typedef std::function&)> AddMediaWorkflowAsyncHandler; + typedef Outcome QueryCoverJobListOutcome; + typedef std::future QueryCoverJobListOutcomeCallable; + typedef std::function&)> QueryCoverJobListAsyncHandler; typedef Outcome QueryAsrJobListOutcome; typedef std::future QueryAsrJobListOutcomeCallable; typedef std::function&)> QueryAsrJobListAsyncHandler; - typedef Outcome SubmitVideoPoseJobOutcome; - typedef std::future SubmitVideoPoseJobOutcomeCallable; - typedef std::function&)> SubmitVideoPoseJobAsyncHandler; - typedef Outcome PlayerAuthOutcome; - typedef std::future PlayerAuthOutcomeCallable; - typedef std::function&)> PlayerAuthAsyncHandler; typedef Outcome AddWaterMarkTemplateOutcome; typedef std::future AddWaterMarkTemplateOutcomeCallable; typedef std::function&)> AddWaterMarkTemplateAsyncHandler; + typedef Outcome PlayerAuthOutcome; + typedef std::future PlayerAuthOutcomeCallable; + typedef std::function&)> PlayerAuthAsyncHandler; + typedef Outcome SubmitVideoPoseJobOutcome; + typedef std::future SubmitVideoPoseJobOutcomeCallable; + typedef std::function&)> SubmitVideoPoseJobAsyncHandler; typedef Outcome RegisterMediaDetailPersonOutcome; typedef std::future RegisterMediaDetailPersonOutcomeCallable; typedef std::function&)> RegisterMediaDetailPersonAsyncHandler; + typedef Outcome SubmitFpCompareJobOutcome; + typedef std::future SubmitFpCompareJobOutcomeCallable; + typedef std::function&)> SubmitFpCompareJobAsyncHandler; typedef Outcome QueryCensorJobListOutcome; typedef std::future QueryCensorJobListOutcomeCallable; typedef std::function&)> QueryCensorJobListAsyncHandler; @@ -811,15 +836,15 @@ namespace AlibabaCloud MtsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); MtsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~MtsClient(); - DeleteCategoryOutcome deleteCategory(const Model::DeleteCategoryRequest &request)const; - void deleteCategoryAsync(const Model::DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCategoryOutcomeCallable deleteCategoryCallable(const Model::DeleteCategoryRequest& request) const; - QuerySnapshotJobListOutcome querySnapshotJobList(const Model::QuerySnapshotJobListRequest &request)const; - void querySnapshotJobListAsync(const Model::QuerySnapshotJobListRequest& request, const QuerySnapshotJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySnapshotJobListOutcomeCallable querySnapshotJobListCallable(const Model::QuerySnapshotJobListRequest& request) const; QueryAuthConfigOutcome queryAuthConfig(const Model::QueryAuthConfigRequest &request)const; void queryAuthConfigAsync(const Model::QueryAuthConfigRequest& request, const QueryAuthConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryAuthConfigOutcomeCallable queryAuthConfigCallable(const Model::QueryAuthConfigRequest& request) const; + QuerySnapshotJobListOutcome querySnapshotJobList(const Model::QuerySnapshotJobListRequest &request)const; + void querySnapshotJobListAsync(const Model::QuerySnapshotJobListRequest& request, const QuerySnapshotJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySnapshotJobListOutcomeCallable querySnapshotJobListCallable(const Model::QuerySnapshotJobListRequest& request) const; + DeleteCategoryOutcome deleteCategory(const Model::DeleteCategoryRequest &request)const; + void deleteCategoryAsync(const Model::DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCategoryOutcomeCallable deleteCategoryCallable(const Model::DeleteCategoryRequest& request) const; QueryTagJobListOutcome queryTagJobList(const Model::QueryTagJobListRequest &request)const; void queryTagJobListAsync(const Model::QueryTagJobListRequest& request, const QueryTagJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTagJobListOutcomeCallable queryTagJobListCallable(const Model::QueryTagJobListRequest& request) const; @@ -835,12 +860,12 @@ namespace AlibabaCloud UpdateMediaPublishStateOutcome updateMediaPublishState(const Model::UpdateMediaPublishStateRequest &request)const; void updateMediaPublishStateAsync(const Model::UpdateMediaPublishStateRequest& request, const UpdateMediaPublishStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMediaPublishStateOutcomeCallable updateMediaPublishStateCallable(const Model::UpdateMediaPublishStateRequest& request) const; - ListJobOutcome listJob(const Model::ListJobRequest &request)const; - void listJobAsync(const Model::ListJobRequest& request, const ListJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListJobOutcomeCallable listJobCallable(const Model::ListJobRequest& request) const; ListAsrPipelineOutcome listAsrPipeline(const Model::ListAsrPipelineRequest &request)const; void listAsrPipelineAsync(const Model::ListAsrPipelineRequest& request, const ListAsrPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAsrPipelineOutcomeCallable listAsrPipelineCallable(const Model::ListAsrPipelineRequest& request) const; + ListJobOutcome listJob(const Model::ListJobRequest &request)const; + void listJobAsync(const Model::ListJobRequest& request, const ListJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobOutcomeCallable listJobCallable(const Model::ListJobRequest& request) const; AddMediaTagOutcome addMediaTag(const Model::AddMediaTagRequest &request)const; void addMediaTagAsync(const Model::AddMediaTagRequest& request, const AddMediaTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddMediaTagOutcomeCallable addMediaTagCallable(const Model::AddMediaTagRequest& request) const; @@ -859,12 +884,12 @@ namespace AlibabaCloud AddAsrPipelineOutcome addAsrPipeline(const Model::AddAsrPipelineRequest &request)const; void addAsrPipelineAsync(const Model::AddAsrPipelineRequest& request, const AddAsrPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddAsrPipelineOutcomeCallable addAsrPipelineCallable(const Model::AddAsrPipelineRequest& request) const; - CancelJobOutcome cancelJob(const Model::CancelJobRequest &request)const; - void cancelJobAsync(const Model::CancelJobRequest& request, const CancelJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CancelJobOutcomeCallable cancelJobCallable(const Model::CancelJobRequest& request) const; ReportCensorJobResultOutcome reportCensorJobResult(const Model::ReportCensorJobResultRequest &request)const; void reportCensorJobResultAsync(const Model::ReportCensorJobResultRequest& request, const ReportCensorJobResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReportCensorJobResultOutcomeCallable reportCensorJobResultCallable(const Model::ReportCensorJobResultRequest& request) const; + CancelJobOutcome cancelJob(const Model::CancelJobRequest &request)const; + void cancelJobAsync(const Model::CancelJobRequest& request, const CancelJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelJobOutcomeCallable cancelJobCallable(const Model::CancelJobRequest& request) const; DeleteMcuJobOutcome deleteMcuJob(const Model::DeleteMcuJobRequest &request)const; void deleteMcuJobAsync(const Model::DeleteMcuJobRequest& request, const DeleteMcuJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteMcuJobOutcomeCallable deleteMcuJobCallable(const Model::DeleteMcuJobRequest& request) const; @@ -898,27 +923,27 @@ namespace AlibabaCloud QueryJobListOutcome queryJobList(const Model::QueryJobListRequest &request)const; void queryJobListAsync(const Model::QueryJobListRequest& request, const QueryJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryJobListOutcomeCallable queryJobListCallable(const Model::QueryJobListRequest& request) const; - SearchMediaWorkflowOutcome searchMediaWorkflow(const Model::SearchMediaWorkflowRequest &request)const; - void searchMediaWorkflowAsync(const Model::SearchMediaWorkflowRequest& request, const SearchMediaWorkflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchMediaWorkflowOutcomeCallable searchMediaWorkflowCallable(const Model::SearchMediaWorkflowRequest& request) const; LogicalDeleteResourceOutcome logicalDeleteResource(const Model::LogicalDeleteResourceRequest &request)const; void logicalDeleteResourceAsync(const Model::LogicalDeleteResourceRequest& request, const LogicalDeleteResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; LogicalDeleteResourceOutcomeCallable logicalDeleteResourceCallable(const Model::LogicalDeleteResourceRequest& request) const; - QueryCoverPipelineListOutcome queryCoverPipelineList(const Model::QueryCoverPipelineListRequest &request)const; - void queryCoverPipelineListAsync(const Model::QueryCoverPipelineListRequest& request, const QueryCoverPipelineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCoverPipelineListOutcomeCallable queryCoverPipelineListCallable(const Model::QueryCoverPipelineListRequest& request) const; + SearchMediaWorkflowOutcome searchMediaWorkflow(const Model::SearchMediaWorkflowRequest &request)const; + void searchMediaWorkflowAsync(const Model::SearchMediaWorkflowRequest& request, const SearchMediaWorkflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchMediaWorkflowOutcomeCallable searchMediaWorkflowCallable(const Model::SearchMediaWorkflowRequest& request) const; QueryFpShotJobListOutcome queryFpShotJobList(const Model::QueryFpShotJobListRequest &request)const; void queryFpShotJobListAsync(const Model::QueryFpShotJobListRequest& request, const QueryFpShotJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryFpShotJobListOutcomeCallable queryFpShotJobListCallable(const Model::QueryFpShotJobListRequest& request) const; + QueryCoverPipelineListOutcome queryCoverPipelineList(const Model::QueryCoverPipelineListRequest &request)const; + void queryCoverPipelineListAsync(const Model::QueryCoverPipelineListRequest& request, const QueryCoverPipelineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCoverPipelineListOutcomeCallable queryCoverPipelineListCallable(const Model::QueryCoverPipelineListRequest& request) const; ListMediaWorkflowExecutionsOutcome listMediaWorkflowExecutions(const Model::ListMediaWorkflowExecutionsRequest &request)const; void listMediaWorkflowExecutionsAsync(const Model::ListMediaWorkflowExecutionsRequest& request, const ListMediaWorkflowExecutionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListMediaWorkflowExecutionsOutcomeCallable listMediaWorkflowExecutionsCallable(const Model::ListMediaWorkflowExecutionsRequest& request) const; - DeletePipelineOutcome deletePipeline(const Model::DeletePipelineRequest &request)const; - void deletePipelineAsync(const Model::DeletePipelineRequest& request, const DeletePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePipelineOutcomeCallable deletePipelineCallable(const Model::DeletePipelineRequest& request) const; DeleteMediaTagOutcome deleteMediaTag(const Model::DeleteMediaTagRequest &request)const; void deleteMediaTagAsync(const Model::DeleteMediaTagRequest& request, const DeleteMediaTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteMediaTagOutcomeCallable deleteMediaTagCallable(const Model::DeleteMediaTagRequest& request) const; + DeletePipelineOutcome deletePipeline(const Model::DeletePipelineRequest &request)const; + void deletePipelineAsync(const Model::DeletePipelineRequest& request, const DeletePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePipelineOutcomeCallable deletePipelineCallable(const Model::DeletePipelineRequest& request) const; UpdateAsrPipelineOutcome updateAsrPipeline(const Model::UpdateAsrPipelineRequest &request)const; void updateAsrPipelineAsync(const Model::UpdateAsrPipelineRequest& request, const UpdateAsrPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAsrPipelineOutcomeCallable updateAsrPipelineCallable(const Model::UpdateAsrPipelineRequest& request) const; @@ -955,15 +980,15 @@ namespace AlibabaCloud UpdateMediaOutcome updateMedia(const Model::UpdateMediaRequest &request)const; void updateMediaAsync(const Model::UpdateMediaRequest& request, const UpdateMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMediaOutcomeCallable updateMediaCallable(const Model::UpdateMediaRequest& request) const; - SubmitMediaFpDeleteJobOutcome submitMediaFpDeleteJob(const Model::SubmitMediaFpDeleteJobRequest &request)const; - void submitMediaFpDeleteJobAsync(const Model::SubmitMediaFpDeleteJobRequest& request, const SubmitMediaFpDeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitMediaFpDeleteJobOutcomeCallable submitMediaFpDeleteJobCallable(const Model::SubmitMediaFpDeleteJobRequest& request) const; - ListCensorPipelineOutcome listCensorPipeline(const Model::ListCensorPipelineRequest &request)const; - void listCensorPipelineAsync(const Model::ListCensorPipelineRequest& request, const ListCensorPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCensorPipelineOutcomeCallable listCensorPipelineCallable(const Model::ListCensorPipelineRequest& request) const; QuerySubtitleJobListOutcome querySubtitleJobList(const Model::QuerySubtitleJobListRequest &request)const; void querySubtitleJobListAsync(const Model::QuerySubtitleJobListRequest& request, const QuerySubtitleJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySubtitleJobListOutcomeCallable querySubtitleJobListCallable(const Model::QuerySubtitleJobListRequest& request) const; + ListCensorPipelineOutcome listCensorPipeline(const Model::ListCensorPipelineRequest &request)const; + void listCensorPipelineAsync(const Model::ListCensorPipelineRequest& request, const ListCensorPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCensorPipelineOutcomeCallable listCensorPipelineCallable(const Model::ListCensorPipelineRequest& request) const; + SubmitMediaFpDeleteJobOutcome submitMediaFpDeleteJob(const Model::SubmitMediaFpDeleteJobRequest &request)const; + void submitMediaFpDeleteJobAsync(const Model::SubmitMediaFpDeleteJobRequest& request, const SubmitMediaFpDeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitMediaFpDeleteJobOutcomeCallable submitMediaFpDeleteJobCallable(const Model::SubmitMediaFpDeleteJobRequest& request) const; DeactivateMediaWorkflowOutcome deactivateMediaWorkflow(const Model::DeactivateMediaWorkflowRequest &request)const; void deactivateMediaWorkflowAsync(const Model::DeactivateMediaWorkflowRequest& request, const DeactivateMediaWorkflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeactivateMediaWorkflowOutcomeCallable deactivateMediaWorkflowCallable(const Model::DeactivateMediaWorkflowRequest& request) const; @@ -994,24 +1019,27 @@ namespace AlibabaCloud SubmitImageQualityJobOutcome submitImageQualityJob(const Model::SubmitImageQualityJobRequest &request)const; void submitImageQualityJobAsync(const Model::SubmitImageQualityJobRequest& request, const SubmitImageQualityJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitImageQualityJobOutcomeCallable submitImageQualityJobCallable(const Model::SubmitImageQualityJobRequest& request) const; + QueryFpCompareJobListOutcome queryFpCompareJobList(const Model::QueryFpCompareJobListRequest &request)const; + void queryFpCompareJobListAsync(const Model::QueryFpCompareJobListRequest& request, const QueryFpCompareJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryFpCompareJobListOutcomeCallable queryFpCompareJobListCallable(const Model::QueryFpCompareJobListRequest& request) const; AddMCTemplateOutcome addMCTemplate(const Model::AddMCTemplateRequest &request)const; void addMCTemplateAsync(const Model::AddMCTemplateRequest& request, const AddMCTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddMCTemplateOutcomeCallable addMCTemplateCallable(const Model::AddMCTemplateRequest& request) const; - BindOutputBucketOutcome bindOutputBucket(const Model::BindOutputBucketRequest &request)const; - void bindOutputBucketAsync(const Model::BindOutputBucketRequest& request, const BindOutputBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BindOutputBucketOutcomeCallable bindOutputBucketCallable(const Model::BindOutputBucketRequest& request) const; - SearchTemplateOutcome searchTemplate(const Model::SearchTemplateRequest &request)const; - void searchTemplateAsync(const Model::SearchTemplateRequest& request, const SearchTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchTemplateOutcomeCallable searchTemplateCallable(const Model::SearchTemplateRequest& request) const; UpdateMcuTemplateOutcome updateMcuTemplate(const Model::UpdateMcuTemplateRequest &request)const; void updateMcuTemplateAsync(const Model::UpdateMcuTemplateRequest& request, const UpdateMcuTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMcuTemplateOutcomeCallable updateMcuTemplateCallable(const Model::UpdateMcuTemplateRequest& request) const; - QueryMCJobListOutcome queryMCJobList(const Model::QueryMCJobListRequest &request)const; - void queryMCJobListAsync(const Model::QueryMCJobListRequest& request, const QueryMCJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMCJobListOutcomeCallable queryMCJobListCallable(const Model::QueryMCJobListRequest& request) const; + SearchTemplateOutcome searchTemplate(const Model::SearchTemplateRequest &request)const; + void searchTemplateAsync(const Model::SearchTemplateRequest& request, const SearchTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTemplateOutcomeCallable searchTemplateCallable(const Model::SearchTemplateRequest& request) const; + BindOutputBucketOutcome bindOutputBucket(const Model::BindOutputBucketRequest &request)const; + void bindOutputBucketAsync(const Model::BindOutputBucketRequest& request, const BindOutputBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindOutputBucketOutcomeCallable bindOutputBucketCallable(const Model::BindOutputBucketRequest& request) const; AddPipelineOutcome addPipeline(const Model::AddPipelineRequest &request)const; void addPipelineAsync(const Model::AddPipelineRequest& request, const AddPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddPipelineOutcomeCallable addPipelineCallable(const Model::AddPipelineRequest& request) const; + QueryMCJobListOutcome queryMCJobList(const Model::QueryMCJobListRequest &request)const; + void queryMCJobListAsync(const Model::QueryMCJobListRequest& request, const QueryMCJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMCJobListOutcomeCallable queryMCJobListCallable(const Model::QueryMCJobListRequest& request) const; SubmitFacerecogJobOutcome submitFacerecogJob(const Model::SubmitFacerecogJobRequest &request)const; void submitFacerecogJobAsync(const Model::SubmitFacerecogJobRequest& request, const SubmitFacerecogJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitFacerecogJobOutcomeCallable submitFacerecogJobCallable(const Model::SubmitFacerecogJobRequest& request) const; @@ -1024,12 +1052,12 @@ namespace AlibabaCloud SubmitMediaInfoJobOutcome submitMediaInfoJob(const Model::SubmitMediaInfoJobRequest &request)const; void submitMediaInfoJobAsync(const Model::SubmitMediaInfoJobRequest& request, const SubmitMediaInfoJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitMediaInfoJobOutcomeCallable submitMediaInfoJobCallable(const Model::SubmitMediaInfoJobRequest& request) const; - QueryPornJobListOutcome queryPornJobList(const Model::QueryPornJobListRequest &request)const; - void queryPornJobListAsync(const Model::QueryPornJobListRequest& request, const QueryPornJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryPornJobListOutcomeCallable queryPornJobListCallable(const Model::QueryPornJobListRequest& request) const; ReportVideoSplitJobResultOutcome reportVideoSplitJobResult(const Model::ReportVideoSplitJobResultRequest &request)const; void reportVideoSplitJobResultAsync(const Model::ReportVideoSplitJobResultRequest& request, const ReportVideoSplitJobResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReportVideoSplitJobResultOutcomeCallable reportVideoSplitJobResultCallable(const Model::ReportVideoSplitJobResultRequest& request) const; + QueryPornJobListOutcome queryPornJobList(const Model::QueryPornJobListRequest &request)const; + void queryPornJobListAsync(const Model::QueryPornJobListRequest& request, const QueryPornJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPornJobListOutcomeCallable queryPornJobListCallable(const Model::QueryPornJobListRequest& request) const; UpdateCategoryNameOutcome updateCategoryName(const Model::UpdateCategoryNameRequest &request)const; void updateCategoryNameAsync(const Model::UpdateCategoryNameRequest& request, const UpdateCategoryNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateCategoryNameOutcomeCallable updateCategoryNameCallable(const Model::UpdateCategoryNameRequest& request) const; @@ -1039,45 +1067,51 @@ namespace AlibabaCloud QueryMcuJobOutcome queryMcuJob(const Model::QueryMcuJobRequest &request)const; void queryMcuJobAsync(const Model::QueryMcuJobRequest& request, const QueryMcuJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMcuJobOutcomeCallable queryMcuJobCallable(const Model::QueryMcuJobRequest& request) const; - ListCoverPipelineOutcome listCoverPipeline(const Model::ListCoverPipelineRequest &request)const; - void listCoverPipelineAsync(const Model::ListCoverPipelineRequest& request, const ListCoverPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCoverPipelineOutcomeCallable listCoverPipelineCallable(const Model::ListCoverPipelineRequest& request) const; + SubmitBeautifyJobsOutcome submitBeautifyJobs(const Model::SubmitBeautifyJobsRequest &request)const; + void submitBeautifyJobsAsync(const Model::SubmitBeautifyJobsRequest& request, const SubmitBeautifyJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitBeautifyJobsOutcomeCallable submitBeautifyJobsCallable(const Model::SubmitBeautifyJobsRequest& request) const; QueryMediaCensorJobDetailOutcome queryMediaCensorJobDetail(const Model::QueryMediaCensorJobDetailRequest &request)const; void queryMediaCensorJobDetailAsync(const Model::QueryMediaCensorJobDetailRequest& request, const QueryMediaCensorJobDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMediaCensorJobDetailOutcomeCallable queryMediaCensorJobDetailCallable(const Model::QueryMediaCensorJobDetailRequest& request) const; + ListCoverPipelineOutcome listCoverPipeline(const Model::ListCoverPipelineRequest &request)const; + void listCoverPipelineAsync(const Model::ListCoverPipelineRequest& request, const ListCoverPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCoverPipelineOutcomeCallable listCoverPipelineCallable(const Model::ListCoverPipelineRequest& request) const; CreateMcuTemplateOutcome createMcuTemplate(const Model::CreateMcuTemplateRequest &request)const; void createMcuTemplateAsync(const Model::CreateMcuTemplateRequest& request, const CreateMcuTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMcuTemplateOutcomeCallable createMcuTemplateCallable(const Model::CreateMcuTemplateRequest& request) const; QueryImageSearchJobListOutcome queryImageSearchJobList(const Model::QueryImageSearchJobListRequest &request)const; void queryImageSearchJobListAsync(const Model::QueryImageSearchJobListRequest& request, const QueryImageSearchJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryImageSearchJobListOutcomeCallable queryImageSearchJobListCallable(const Model::QueryImageSearchJobListRequest& request) const; - ReportFpShotJobResultOutcome reportFpShotJobResult(const Model::ReportFpShotJobResultRequest &request)const; - void reportFpShotJobResultAsync(const Model::ReportFpShotJobResultRequest& request, const ReportFpShotJobResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReportFpShotJobResultOutcomeCallable reportFpShotJobResultCallable(const Model::ReportFpShotJobResultRequest& request) const; SubmitVideoSummaryJobOutcome submitVideoSummaryJob(const Model::SubmitVideoSummaryJobRequest &request)const; void submitVideoSummaryJobAsync(const Model::SubmitVideoSummaryJobRequest& request, const SubmitVideoSummaryJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitVideoSummaryJobOutcomeCallable submitVideoSummaryJobCallable(const Model::SubmitVideoSummaryJobRequest& request) const; + ReportFpShotJobResultOutcome reportFpShotJobResult(const Model::ReportFpShotJobResultRequest &request)const; + void reportFpShotJobResultAsync(const Model::ReportFpShotJobResultRequest& request, const ReportFpShotJobResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReportFpShotJobResultOutcomeCallable reportFpShotJobResultCallable(const Model::ReportFpShotJobResultRequest& request) const; SubmitVideoGifJobOutcome submitVideoGifJob(const Model::SubmitVideoGifJobRequest &request)const; void submitVideoGifJobAsync(const Model::SubmitVideoGifJobRequest& request, const SubmitVideoGifJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitVideoGifJobOutcomeCallable submitVideoGifJobCallable(const Model::SubmitVideoGifJobRequest& request) const; QueryAnnotationJobListOutcome queryAnnotationJobList(const Model::QueryAnnotationJobListRequest &request)const; void queryAnnotationJobListAsync(const Model::QueryAnnotationJobListRequest& request, const QueryAnnotationJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryAnnotationJobListOutcomeCallable queryAnnotationJobListCallable(const Model::QueryAnnotationJobListRequest& request) const; - SubmitMediaDetailJobOutcome submitMediaDetailJob(const Model::SubmitMediaDetailJobRequest &request)const; - void submitMediaDetailJobAsync(const Model::SubmitMediaDetailJobRequest& request, const SubmitMediaDetailJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitMediaDetailJobOutcomeCallable submitMediaDetailJobCallable(const Model::SubmitMediaDetailJobRequest& request) const; SubmitPornJobOutcome submitPornJob(const Model::SubmitPornJobRequest &request)const; void submitPornJobAsync(const Model::SubmitPornJobRequest& request, const SubmitPornJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitPornJobOutcomeCallable submitPornJobCallable(const Model::SubmitPornJobRequest& request) const; - QueryFpImportResultOutcome queryFpImportResult(const Model::QueryFpImportResultRequest &request)const; - void queryFpImportResultAsync(const Model::QueryFpImportResultRequest& request, const QueryFpImportResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryFpImportResultOutcomeCallable queryFpImportResultCallable(const Model::QueryFpImportResultRequest& request) const; + SubmitMediaDetailJobOutcome submitMediaDetailJob(const Model::SubmitMediaDetailJobRequest &request)const; + void submitMediaDetailJobAsync(const Model::SubmitMediaDetailJobRequest& request, const SubmitMediaDetailJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitMediaDetailJobOutcomeCallable submitMediaDetailJobCallable(const Model::SubmitMediaDetailJobRequest& request) const; + DescribeMtsUserResourcePackageOutcome describeMtsUserResourcePackage(const Model::DescribeMtsUserResourcePackageRequest &request)const; + void describeMtsUserResourcePackageAsync(const Model::DescribeMtsUserResourcePackageRequest& request, const DescribeMtsUserResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMtsUserResourcePackageOutcomeCallable describeMtsUserResourcePackageCallable(const Model::DescribeMtsUserResourcePackageRequest& request) const; SubmitMCJobOutcome submitMCJob(const Model::SubmitMCJobRequest &request)const; void submitMCJobAsync(const Model::SubmitMCJobRequest& request, const SubmitMCJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitMCJobOutcomeCallable submitMCJobCallable(const Model::SubmitMCJobRequest& request) const; AddTemplateOutcome addTemplate(const Model::AddTemplateRequest &request)const; void addTemplateAsync(const Model::AddTemplateRequest& request, const AddTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTemplateOutcomeCallable addTemplateCallable(const Model::AddTemplateRequest& request) const; + QueryFpImportResultOutcome queryFpImportResult(const Model::QueryFpImportResultRequest &request)const; + void queryFpImportResultAsync(const Model::QueryFpImportResultRequest& request, const QueryFpImportResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryFpImportResultOutcomeCallable queryFpImportResultCallable(const Model::QueryFpImportResultRequest& request) const; QueryWaterMarkTemplateListOutcome queryWaterMarkTemplateList(const Model::QueryWaterMarkTemplateListRequest &request)const; void queryWaterMarkTemplateListAsync(const Model::QueryWaterMarkTemplateListRequest& request, const QueryWaterMarkTemplateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryWaterMarkTemplateListOutcomeCallable queryWaterMarkTemplateListCallable(const Model::QueryWaterMarkTemplateListRequest& request) const; @@ -1105,12 +1139,12 @@ namespace AlibabaCloud GetLicenseOutcome getLicense(const Model::GetLicenseRequest &request)const; void getLicenseAsync(const Model::GetLicenseRequest& request, const GetLicenseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetLicenseOutcomeCallable getLicenseCallable(const Model::GetLicenseRequest& request) const; - QueryVideoSummaryJobListOutcome queryVideoSummaryJobList(const Model::QueryVideoSummaryJobListRequest &request)const; - void queryVideoSummaryJobListAsync(const Model::QueryVideoSummaryJobListRequest& request, const QueryVideoSummaryJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryVideoSummaryJobListOutcomeCallable queryVideoSummaryJobListCallable(const Model::QueryVideoSummaryJobListRequest& request) const; QueryPornPipelineListOutcome queryPornPipelineList(const Model::QueryPornPipelineListRequest &request)const; void queryPornPipelineListAsync(const Model::QueryPornPipelineListRequest& request, const QueryPornPipelineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryPornPipelineListOutcomeCallable queryPornPipelineListCallable(const Model::QueryPornPipelineListRequest& request) const; + QueryVideoSummaryJobListOutcome queryVideoSummaryJobList(const Model::QueryVideoSummaryJobListRequest &request)const; + void queryVideoSummaryJobListAsync(const Model::QueryVideoSummaryJobListRequest& request, const QueryVideoSummaryJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryVideoSummaryJobListOutcomeCallable queryVideoSummaryJobListCallable(const Model::QueryVideoSummaryJobListRequest& request) const; QueryTerrorismJobListOutcome queryTerrorismJobList(const Model::QueryTerrorismJobListRequest &request)const; void queryTerrorismJobListAsync(const Model::QueryTerrorismJobListRequest& request, const QueryTerrorismJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTerrorismJobListOutcomeCallable queryTerrorismJobListCallable(const Model::QueryTerrorismJobListRequest& request) const; @@ -1141,12 +1175,12 @@ namespace AlibabaCloud UpdateMediaWorkflowTriggerModeOutcome updateMediaWorkflowTriggerMode(const Model::UpdateMediaWorkflowTriggerModeRequest &request)const; void updateMediaWorkflowTriggerModeAsync(const Model::UpdateMediaWorkflowTriggerModeRequest& request, const UpdateMediaWorkflowTriggerModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMediaWorkflowTriggerModeOutcomeCallable updateMediaWorkflowTriggerModeCallable(const Model::UpdateMediaWorkflowTriggerModeRequest& request) const; - SearchMediaOutcome searchMedia(const Model::SearchMediaRequest &request)const; - void searchMediaAsync(const Model::SearchMediaRequest& request, const SearchMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchMediaOutcomeCallable searchMediaCallable(const Model::SearchMediaRequest& request) const; ActivateMediaWorkflowOutcome activateMediaWorkflow(const Model::ActivateMediaWorkflowRequest &request)const; void activateMediaWorkflowAsync(const Model::ActivateMediaWorkflowRequest& request, const ActivateMediaWorkflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ActivateMediaWorkflowOutcomeCallable activateMediaWorkflowCallable(const Model::ActivateMediaWorkflowRequest& request) const; + SearchMediaOutcome searchMedia(const Model::SearchMediaRequest &request)const; + void searchMediaAsync(const Model::SearchMediaRequest& request, const SearchMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchMediaOutcomeCallable searchMediaCallable(const Model::SearchMediaRequest& request) const; SubmitTerrorismJobOutcome submitTerrorismJob(const Model::SubmitTerrorismJobRequest &request)const; void submitTerrorismJobAsync(const Model::SubmitTerrorismJobRequest& request, const SubmitTerrorismJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitTerrorismJobOutcomeCallable submitTerrorismJobCallable(const Model::SubmitTerrorismJobRequest& request) const; @@ -1183,6 +1217,9 @@ namespace AlibabaCloud RegisterMediaDetailScenarioOutcome registerMediaDetailScenario(const Model::RegisterMediaDetailScenarioRequest &request)const; void registerMediaDetailScenarioAsync(const Model::RegisterMediaDetailScenarioRequest& request, const RegisterMediaDetailScenarioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterMediaDetailScenarioOutcomeCallable registerMediaDetailScenarioCallable(const Model::RegisterMediaDetailScenarioRequest& request) const; + QueryMediaCensorJobListOutcome queryMediaCensorJobList(const Model::QueryMediaCensorJobListRequest &request)const; + void queryMediaCensorJobListAsync(const Model::QueryMediaCensorJobListRequest& request, const QueryMediaCensorJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMediaCensorJobListOutcomeCallable queryMediaCensorJobListCallable(const Model::QueryMediaCensorJobListRequest& request) const; ReportAnnotationJobResultOutcome reportAnnotationJobResult(const Model::ReportAnnotationJobResultRequest &request)const; void reportAnnotationJobResultAsync(const Model::ReportAnnotationJobResultRequest& request, const ReportAnnotationJobResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReportAnnotationJobResultOutcomeCallable reportAnnotationJobResultCallable(const Model::ReportAnnotationJobResultRequest& request) const; @@ -1192,12 +1229,12 @@ namespace AlibabaCloud QueryVideoSplitJobListOutcome queryVideoSplitJobList(const Model::QueryVideoSplitJobListRequest &request)const; void queryVideoSplitJobListAsync(const Model::QueryVideoSplitJobListRequest& request, const QueryVideoSplitJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryVideoSplitJobListOutcomeCallable queryVideoSplitJobListCallable(const Model::QueryVideoSplitJobListRequest& request) const; - BindInputBucketOutcome bindInputBucket(const Model::BindInputBucketRequest &request)const; - void bindInputBucketAsync(const Model::BindInputBucketRequest& request, const BindInputBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BindInputBucketOutcomeCallable bindInputBucketCallable(const Model::BindInputBucketRequest& request) const; AddTerrorismPipelineOutcome addTerrorismPipeline(const Model::AddTerrorismPipelineRequest &request)const; void addTerrorismPipelineAsync(const Model::AddTerrorismPipelineRequest& request, const AddTerrorismPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTerrorismPipelineOutcomeCallable addTerrorismPipelineCallable(const Model::AddTerrorismPipelineRequest& request) const; + BindInputBucketOutcome bindInputBucket(const Model::BindInputBucketRequest &request)const; + void bindInputBucketAsync(const Model::BindInputBucketRequest& request, const BindInputBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindInputBucketOutcomeCallable bindInputBucketCallable(const Model::BindInputBucketRequest& request) const; QueryPipelineListOutcome queryPipelineList(const Model::QueryPipelineListRequest &request)const; void queryPipelineListAsync(const Model::QueryPipelineListRequest& request, const QueryPipelineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryPipelineListOutcomeCallable queryPipelineListCallable(const Model::QueryPipelineListRequest& request) const; @@ -1222,12 +1259,12 @@ namespace AlibabaCloud QueryCensorPipelineListOutcome queryCensorPipelineList(const Model::QueryCensorPipelineListRequest &request)const; void queryCensorPipelineListAsync(const Model::QueryCensorPipelineListRequest& request, const QueryCensorPipelineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCensorPipelineListOutcomeCallable queryCensorPipelineListCallable(const Model::QueryCensorPipelineListRequest& request) const; - SubmitVideoSplitJobOutcome submitVideoSplitJob(const Model::SubmitVideoSplitJobRequest &request)const; - void submitVideoSplitJobAsync(const Model::SubmitVideoSplitJobRequest& request, const SubmitVideoSplitJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitVideoSplitJobOutcomeCallable submitVideoSplitJobCallable(const Model::SubmitVideoSplitJobRequest& request) const; SubmitMcuJobOutcome submitMcuJob(const Model::SubmitMcuJobRequest &request)const; void submitMcuJobAsync(const Model::SubmitMcuJobRequest& request, const SubmitMcuJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitMcuJobOutcomeCallable submitMcuJobCallable(const Model::SubmitMcuJobRequest& request) const; + SubmitVideoSplitJobOutcome submitVideoSplitJob(const Model::SubmitVideoSplitJobRequest &request)const; + void submitVideoSplitJobAsync(const Model::SubmitVideoSplitJobRequest& request, const SubmitVideoSplitJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitVideoSplitJobOutcomeCallable submitVideoSplitJobCallable(const Model::SubmitVideoSplitJobRequest& request) const; CategoryTreeOutcome categoryTree(const Model::CategoryTreeRequest &request)const; void categoryTreeAsync(const Model::CategoryTreeRequest& request, const CategoryTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CategoryTreeOutcomeCallable categoryTreeCallable(const Model::CategoryTreeRequest& request) const; @@ -1237,42 +1274,45 @@ namespace AlibabaCloud SubmitCoverJobOutcome submitCoverJob(const Model::SubmitCoverJobRequest &request)const; void submitCoverJobAsync(const Model::SubmitCoverJobRequest& request, const SubmitCoverJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitCoverJobOutcomeCallable submitCoverJobCallable(const Model::SubmitCoverJobRequest& request) const; + PlayInfoOutcome playInfo(const Model::PlayInfoRequest &request)const; + void playInfoAsync(const Model::PlayInfoRequest& request, const PlayInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PlayInfoOutcomeCallable playInfoCallable(const Model::PlayInfoRequest& request) const; SearchWaterMarkTemplateOutcome searchWaterMarkTemplate(const Model::SearchWaterMarkTemplateRequest &request)const; void searchWaterMarkTemplateAsync(const Model::SearchWaterMarkTemplateRequest& request, const SearchWaterMarkTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchWaterMarkTemplateOutcomeCallable searchWaterMarkTemplateCallable(const Model::SearchWaterMarkTemplateRequest& request) const; AddCensorPipelineOutcome addCensorPipeline(const Model::AddCensorPipelineRequest &request)const; void addCensorPipelineAsync(const Model::AddCensorPipelineRequest& request, const AddCensorPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCensorPipelineOutcomeCallable addCensorPipelineCallable(const Model::AddCensorPipelineRequest& request) const; - PlayInfoOutcome playInfo(const Model::PlayInfoRequest &request)const; - void playInfoAsync(const Model::PlayInfoRequest& request, const PlayInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PlayInfoOutcomeCallable playInfoCallable(const Model::PlayInfoRequest& request) const; SubmitAsrJobOutcome submitAsrJob(const Model::SubmitAsrJobRequest &request)const; void submitAsrJobAsync(const Model::SubmitAsrJobRequest& request, const SubmitAsrJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitAsrJobOutcomeCallable submitAsrJobCallable(const Model::SubmitAsrJobRequest& request) const; SubmitSubtitleJobOutcome submitSubtitleJob(const Model::SubmitSubtitleJobRequest &request)const; void submitSubtitleJobAsync(const Model::SubmitSubtitleJobRequest& request, const SubmitSubtitleJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitSubtitleJobOutcomeCallable submitSubtitleJobCallable(const Model::SubmitSubtitleJobRequest& request) const; - QueryCoverJobListOutcome queryCoverJobList(const Model::QueryCoverJobListRequest &request)const; - void queryCoverJobListAsync(const Model::QueryCoverJobListRequest& request, const QueryCoverJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCoverJobListOutcomeCallable queryCoverJobListCallable(const Model::QueryCoverJobListRequest& request) const; AddMediaWorkflowOutcome addMediaWorkflow(const Model::AddMediaWorkflowRequest &request)const; void addMediaWorkflowAsync(const Model::AddMediaWorkflowRequest& request, const AddMediaWorkflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddMediaWorkflowOutcomeCallable addMediaWorkflowCallable(const Model::AddMediaWorkflowRequest& request) const; + QueryCoverJobListOutcome queryCoverJobList(const Model::QueryCoverJobListRequest &request)const; + void queryCoverJobListAsync(const Model::QueryCoverJobListRequest& request, const QueryCoverJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCoverJobListOutcomeCallable queryCoverJobListCallable(const Model::QueryCoverJobListRequest& request) const; QueryAsrJobListOutcome queryAsrJobList(const Model::QueryAsrJobListRequest &request)const; void queryAsrJobListAsync(const Model::QueryAsrJobListRequest& request, const QueryAsrJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryAsrJobListOutcomeCallable queryAsrJobListCallable(const Model::QueryAsrJobListRequest& request) const; - SubmitVideoPoseJobOutcome submitVideoPoseJob(const Model::SubmitVideoPoseJobRequest &request)const; - void submitVideoPoseJobAsync(const Model::SubmitVideoPoseJobRequest& request, const SubmitVideoPoseJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitVideoPoseJobOutcomeCallable submitVideoPoseJobCallable(const Model::SubmitVideoPoseJobRequest& request) const; - PlayerAuthOutcome playerAuth(const Model::PlayerAuthRequest &request)const; - void playerAuthAsync(const Model::PlayerAuthRequest& request, const PlayerAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PlayerAuthOutcomeCallable playerAuthCallable(const Model::PlayerAuthRequest& request) const; AddWaterMarkTemplateOutcome addWaterMarkTemplate(const Model::AddWaterMarkTemplateRequest &request)const; void addWaterMarkTemplateAsync(const Model::AddWaterMarkTemplateRequest& request, const AddWaterMarkTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddWaterMarkTemplateOutcomeCallable addWaterMarkTemplateCallable(const Model::AddWaterMarkTemplateRequest& request) const; + PlayerAuthOutcome playerAuth(const Model::PlayerAuthRequest &request)const; + void playerAuthAsync(const Model::PlayerAuthRequest& request, const PlayerAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PlayerAuthOutcomeCallable playerAuthCallable(const Model::PlayerAuthRequest& request) const; + SubmitVideoPoseJobOutcome submitVideoPoseJob(const Model::SubmitVideoPoseJobRequest &request)const; + void submitVideoPoseJobAsync(const Model::SubmitVideoPoseJobRequest& request, const SubmitVideoPoseJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitVideoPoseJobOutcomeCallable submitVideoPoseJobCallable(const Model::SubmitVideoPoseJobRequest& request) const; RegisterMediaDetailPersonOutcome registerMediaDetailPerson(const Model::RegisterMediaDetailPersonRequest &request)const; void registerMediaDetailPersonAsync(const Model::RegisterMediaDetailPersonRequest& request, const RegisterMediaDetailPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterMediaDetailPersonOutcomeCallable registerMediaDetailPersonCallable(const Model::RegisterMediaDetailPersonRequest& request) const; + SubmitFpCompareJobOutcome submitFpCompareJob(const Model::SubmitFpCompareJobRequest &request)const; + void submitFpCompareJobAsync(const Model::SubmitFpCompareJobRequest& request, const SubmitFpCompareJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitFpCompareJobOutcomeCallable submitFpCompareJobCallable(const Model::SubmitFpCompareJobRequest& request) const; QueryCensorJobListOutcome queryCensorJobList(const Model::QueryCensorJobListRequest &request)const; void queryCensorJobListAsync(const Model::QueryCensorJobListRequest& request, const QueryCensorJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCensorJobListOutcomeCallable queryCensorJobListCallable(const Model::QueryCensorJobListRequest& request) const; diff --git a/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h new file mode 100644 index 000000000..427194042 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.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_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT DescribeMtsUserResourcePackageRequest : public RpcServiceRequest + { + + public: + DescribeMtsUserResourcePackageRequest(); + ~DescribeMtsUserResourcePackageRequest(); + + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string securityToken_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h new file mode 100644 index 000000000..c852275f4 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.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_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGERESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT DescribeMtsUserResourcePackageResult : public ServiceResult + { + public: + struct ResourcePackageInfo + { + std::string status; + std::string initCapacity; + std::string instanceId; + std::string commodityCode; + std::string displayName; + std::string currCapacity; + }; + + + DescribeMtsUserResourcePackageResult(); + explicit DescribeMtsUserResourcePackageResult(const std::string &payload); + ~DescribeMtsUserResourcePackageResult(); + std::vector getResourcePackageInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resourcePackageInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGERESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h index f64e52e1c..bf1790d50 100644 --- a/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h @@ -39,22 +39,40 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + std::string getStartOfJobCreatedTimeRange()const; + void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + long getMaximumPageSize()const; + void setMaximumPageSize(long maximumPageSize); long getOwnerId()const; void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); std::string getCoverJobIds()const; void setCoverJobIds(const std::string& coverJobIds); + std::string getPipelineId()const; + void setPipelineId(const std::string& pipelineId); + std::string getState()const; + void setState(const std::string& state); + std::string getEndOfJobCreatedTimeRange()const; + void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); private: long resourceOwnerId_; std::string resourceOwnerAccount_; + std::string nextPageToken_; + std::string startOfJobCreatedTimeRange_; std::string ownerAccount_; + long maximumPageSize_; long ownerId_; std::string accessKeyId_; std::string coverJobIds_; + std::string pipelineId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; }; } diff --git a/mts/include/alibabacloud/mts/model/QueryCoverJobListResult.h b/mts/include/alibabacloud/mts/model/QueryCoverJobListResult.h index 99b184948..f5abb5cdd 100644 --- a/mts/include/alibabacloud/mts/model/QueryCoverJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryCoverJobListResult.h @@ -73,12 +73,14 @@ namespace AlibabaCloud explicit QueryCoverJobListResult(const std::string &payload); ~QueryCoverJobListResult(); std::vector getCoverJobList()const; + std::string getNextPageToken()const; std::vector getNonExistIds()const; protected: void parse(const std::string &payload); private: std::vector coverJobList_; + std::string nextPageToken_; std::vector nonExistIds_; }; diff --git a/mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h new file mode 100644 index 000000000..420a587f0 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.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_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryFpCompareJobListRequest : public RpcServiceRequest + { + + public: + QueryFpCompareJobListRequest(); + ~QueryFpCompareJobListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getJobIds()const; + void setJobIds(const std::string& jobIds); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string jobIds_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h new file mode 100644 index 000000000..1945885aa --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryFpCompareJobListResult : public ServiceResult + { + public: + struct FpCompareJob + { + struct MasterFile + { + std::string bucket; + std::string object; + std::string location; + }; + struct QueryFile + { + std::string bucket; + std::string object; + std::string location; + }; + struct MatchFrameStorage + { + struct MasterMediaFrames + { + std::string bucket; + std::string object; + std::string location; + }; + struct QueryMediaFrames + { + std::string bucket; + std::string object; + std::string location; + }; + struct MatchedFramesDescFile + { + std::string bucket; + std::string object; + std::string location; + }; + MasterMediaFrames masterMediaFrames; + MatchedFramesDescFile matchedFramesDescFile; + QueryMediaFrames queryMediaFrames; + }; + struct FpCompareResult + { + struct MasterMediaInfo + { + std::string audioBitRate; + std::string audioSampleRate; + std::string fpNum; + std::string totalVideoFrame; + std::string audioChannels; + std::string fps; + std::string duration; + std::string height; + std::string width; + }; + struct QueryMediaInfo + { + std::string audioBitRate; + std::string audioSampleRate; + std::string fpNum; + std::string totalVideoFrame; + std::string audioChannels; + std::string fps; + std::string duration; + std::string height; + std::string width; + }; + struct MediaMatchSegment + { + std::string masterStartFrame; + std::string score; + std::string masterStartTime; + std::string queryEndFrame; + std::string totalMatchFrameNum; + std::string queryStartFrame; + std::string queryEndTime; + std::string masterEndFrame; + std::string masterEndTime; + std::string queryStartTime; + }; + MasterMediaInfo masterMediaInfo; + QueryMediaInfo queryMediaInfo; + std::vector mediaMatchSegments; + }; + std::string message; + std::string userData; + std::string code; + FpCompareResult fpCompareResult; + std::string finishTime; + std::string state; + std::string creationTime; + MatchFrameStorage matchFrameStorage; + std::string pipelineId; + std::string id; + QueryFile queryFile; + MasterFile masterFile; + std::string fpDBId; + }; + + + QueryFpCompareJobListResult(); + explicit QueryFpCompareJobListResult(const std::string &payload); + ~QueryFpCompareJobListResult(); + std::vector getFpCompareJobList()const; + std::vector getNonExistIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector fpCompareJobList_; + std::vector nonExistIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h index 0801284c5..65b5d00cf 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h @@ -120,13 +120,14 @@ namespace AlibabaCloud std::string code; std::string suggestion; Input input; + std::string finishTime; VensorCensorResult vensorCensorResult; std::string state; BarrageCensorResult barrageCensorResult; std::string creationTime; std::string pipelineId; VideoCensorConfig videoCensorConfig; - std::string id; + std::string jobId; TitleCensorResult titleCensorResult; }; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h new file mode 100644 index 000000000..dbd56e80d --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryMediaCensorJobListRequest : public RpcServiceRequest + { + + public: + QueryMediaCensorJobListRequest(); + ~QueryMediaCensorJobListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getStartOfJobCreatedTimeRange()const; + void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); + long getMaximumPageSize()const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPipelineId()const; + void setPipelineId(const std::string& pipelineId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getState()const; + void setState(const std::string& state); + std::string getEndOfJobCreatedTimeRange()const; + void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string nextPageToken_; + std::string ownerAccount_; + std::string startOfJobCreatedTimeRange_; + long maximumPageSize_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineId_; + std::string jobId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h new file mode 100644 index 000000000..09286f301 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryMediaCensorJobListResult : public ServiceResult + { + public: + struct MediaCensorJob + { + struct TitleCensorResult + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + struct DescCensorResult + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + struct BarrageCensorResult + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; + struct VideoCensorConfig + { + struct OutputFile + { + std::string bucket; + std::string object; + std::string location; + }; + OutputFile outputFile; + std::string videoCensor; + std::string bizType; + }; + struct VensorCensorResult + { + struct CensorResult + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + struct VideoTimeline + { + struct CensorResult2 + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + std::vector censorResults1; + std::string object; + std::string timestamp; + }; + std::vector censorResults; + std::string nextPageToken; + std::vector videoTimelines; + }; + struct CoverImageCensorResult + { + struct Result + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + std::vector results; + std::string bucket; + std::string object; + std::string location; + }; + std::string message; + DescCensorResult descCensorResult; + std::string userData; + std::vector coverImageCensorResults; + std::string code; + std::string suggestion; + Input input; + std::string finishTime; + VensorCensorResult vensorCensorResult; + std::string state; + BarrageCensorResult barrageCensorResult; + std::string creationTime; + std::string pipelineId; + VideoCensorConfig videoCensorConfig; + std::string jobId; + TitleCensorResult titleCensorResult; + }; + + + QueryMediaCensorJobListResult(); + explicit QueryMediaCensorJobListResult(const std::string &payload); + ~QueryMediaCensorJobListResult(); + std::vector getMediaCensorJobList()const; + std::string getNextPageToken()const; + std::vector getNonExistIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector mediaCensorJobList_; + std::string nextPageToken_; + std::vector nonExistIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h index 31989770b..f4abf1ff0 100644 --- a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h @@ -39,22 +39,40 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); std::string getSnapshotJobIds()const; void setSnapshotJobIds(const std::string& snapshotJobIds); + std::string getStartOfJobCreatedTimeRange()const; + void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + long getMaximumPageSize()const; + void setMaximumPageSize(long maximumPageSize); long getOwnerId()const; void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getPipelineId()const; + void setPipelineId(const std::string& pipelineId); + std::string getState()const; + void setState(const std::string& state); + std::string getEndOfJobCreatedTimeRange()const; + void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); private: long resourceOwnerId_; std::string resourceOwnerAccount_; + std::string nextPageToken_; std::string snapshotJobIds_; + std::string startOfJobCreatedTimeRange_; std::string ownerAccount_; + long maximumPageSize_; long ownerId_; std::string accessKeyId_; + std::string pipelineId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; }; } diff --git a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h index 0e5e68856..8cc282a0e 100644 --- a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h @@ -105,12 +105,14 @@ namespace AlibabaCloud ~QuerySnapshotJobListResult(); std::vector getSnapshotJobList()const; std::vector getNonExistSnapshotJobIds()const; + std::string getNextPageToken()const; protected: void parse(const std::string &payload); private: std::vector snapshotJobList_; std::vector nonExistSnapshotJobIds_; + std::string nextPageToken_; }; } diff --git a/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h new file mode 100644 index 000000000..c193eb317 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.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_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitBeautifyJobsRequest : public RpcServiceRequest + { + + public: + SubmitBeautifyJobsRequest(); + ~SubmitBeautifyJobsRequest(); + + std::string getBeautifyConfig()const; + void setBeautifyConfig(const std::string& beautifyConfig); + std::string getUserData()const; + void setUserData(const std::string& userData); + bool getAsync()const; + void setAsync(bool async); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPipelineId()const; + void setPipelineId(const std::string& pipelineId); + + private: + std::string beautifyConfig_; + std::string userData_; + bool async_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h new file mode 100644 index 000000000..2724d9cd7 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.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_MTS_MODEL_SUBMITBEAUTIFYJOBSRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitBeautifyJobsResult : public ServiceResult + { + public: + struct Job + { + struct Input + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; + struct BeautifyConfig + { + struct OutputFile + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; + OutputFile outputFile; + }; + struct MNSMessageResult + { + std::string errorCode; + std::string errorMessage; + std::string messageId; + }; + Input input; + std::string message; + std::string userData; + std::string state; + MNSMessageResult mNSMessageResult; + std::string creationTime; + std::string pipelineId; + std::string id; + BeautifyConfig beautifyConfig; + std::string code; + }; + + + SubmitBeautifyJobsResult(); + explicit SubmitBeautifyJobsResult(const std::string &payload); + ~SubmitBeautifyJobsResult(); + std::vector getJobList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector jobList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h new file mode 100644 index 000000000..b6f9c194f --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.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_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitFpCompareJobRequest : public RpcServiceRequest + { + + public: + SubmitFpCompareJobRequest(); + ~SubmitFpCompareJobRequest(); + + std::string getMatchedFrameStorage()const; + void setMatchedFrameStorage(const std::string& matchedFrameStorage); + std::string getUserData()const; + void setUserData(const std::string& userData); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQueryMedia()const; + void setQueryMedia(const std::string& queryMedia); + std::string getFpDBId()const; + void setFpDBId(const std::string& fpDBId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getMasterMedia()const; + void setMasterMedia(const std::string& masterMedia); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPipelineId()const; + void setPipelineId(const std::string& pipelineId); + + private: + std::string matchedFrameStorage_; + std::string userData_; + long resourceOwnerId_; + std::string queryMedia_; + std::string fpDBId_; + std::string resourceOwnerAccount_; + std::string masterMedia_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitFpCompareJobResult.h b/mts/include/alibabacloud/mts/model/SubmitFpCompareJobResult.h new file mode 100644 index 000000000..ee637bd6f --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitFpCompareJobResult.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_MTS_MODEL_SUBMITFPCOMPAREJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitFpCompareJobResult : public ServiceResult + { + public: + + + SubmitFpCompareJobResult(); + explicit SubmitFpCompareJobResult(const std::string &payload); + ~SubmitFpCompareJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBRESULT_H_ \ No newline at end of file diff --git a/mts/src/MtsClient.cc b/mts/src/MtsClient.cc index 38988d6c5..ac7c0cf15 100644 --- a/mts/src/MtsClient.cc +++ b/mts/src/MtsClient.cc @@ -51,36 +51,36 @@ MtsClient::MtsClient(const std::string & accessKeyId, const std::string & access MtsClient::~MtsClient() {} -MtsClient::DeleteCategoryOutcome MtsClient::deleteCategory(const DeleteCategoryRequest &request) const +MtsClient::QueryAuthConfigOutcome MtsClient::queryAuthConfig(const QueryAuthConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteCategoryOutcome(endpointOutcome.error()); + return QueryAuthConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteCategoryOutcome(DeleteCategoryResult(outcome.result())); + return QueryAuthConfigOutcome(QueryAuthConfigResult(outcome.result())); else - return DeleteCategoryOutcome(outcome.error()); + return QueryAuthConfigOutcome(outcome.error()); } -void MtsClient::deleteCategoryAsync(const DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::queryAuthConfigAsync(const QueryAuthConfigRequest& request, const QueryAuthConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteCategory(request), context); + handler(this, request, queryAuthConfig(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::DeleteCategoryOutcomeCallable MtsClient::deleteCategoryCallable(const DeleteCategoryRequest &request) const +MtsClient::QueryAuthConfigOutcomeCallable MtsClient::queryAuthConfigCallable(const QueryAuthConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteCategory(request); + return this->queryAuthConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -123,36 +123,36 @@ MtsClient::QuerySnapshotJobListOutcomeCallable MtsClient::querySnapshotJobListCa return task->get_future(); } -MtsClient::QueryAuthConfigOutcome MtsClient::queryAuthConfig(const QueryAuthConfigRequest &request) const +MtsClient::DeleteCategoryOutcome MtsClient::deleteCategory(const DeleteCategoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryAuthConfigOutcome(endpointOutcome.error()); + return DeleteCategoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryAuthConfigOutcome(QueryAuthConfigResult(outcome.result())); + return DeleteCategoryOutcome(DeleteCategoryResult(outcome.result())); else - return QueryAuthConfigOutcome(outcome.error()); + return DeleteCategoryOutcome(outcome.error()); } -void MtsClient::queryAuthConfigAsync(const QueryAuthConfigRequest& request, const QueryAuthConfigAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::deleteCategoryAsync(const DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryAuthConfig(request), context); + handler(this, request, deleteCategory(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::QueryAuthConfigOutcomeCallable MtsClient::queryAuthConfigCallable(const QueryAuthConfigRequest &request) const +MtsClient::DeleteCategoryOutcomeCallable MtsClient::deleteCategoryCallable(const DeleteCategoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryAuthConfig(request); + return this->deleteCategory(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -339,42 +339,6 @@ MtsClient::UpdateMediaPublishStateOutcomeCallable MtsClient::updateMediaPublishS return task->get_future(); } -MtsClient::ListJobOutcome MtsClient::listJob(const ListJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListJobOutcome(ListJobResult(outcome.result())); - else - return ListJobOutcome(outcome.error()); -} - -void MtsClient::listJobAsync(const ListJobRequest& request, const ListJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::ListJobOutcomeCallable MtsClient::listJobCallable(const ListJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::ListAsrPipelineOutcome MtsClient::listAsrPipeline(const ListAsrPipelineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +375,42 @@ MtsClient::ListAsrPipelineOutcomeCallable MtsClient::listAsrPipelineCallable(con return task->get_future(); } +MtsClient::ListJobOutcome MtsClient::listJob(const ListJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobOutcome(ListJobResult(outcome.result())); + else + return ListJobOutcome(outcome.error()); +} + +void MtsClient::listJobAsync(const ListJobRequest& request, const ListJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::ListJobOutcomeCallable MtsClient::listJobCallable(const ListJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::AddMediaTagOutcome MtsClient::addMediaTag(const AddMediaTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,42 +627,6 @@ MtsClient::AddAsrPipelineOutcomeCallable MtsClient::addAsrPipelineCallable(const return task->get_future(); } -MtsClient::CancelJobOutcome MtsClient::cancelJob(const CancelJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CancelJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CancelJobOutcome(CancelJobResult(outcome.result())); - else - return CancelJobOutcome(outcome.error()); -} - -void MtsClient::cancelJobAsync(const CancelJobRequest& request, const CancelJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cancelJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::CancelJobOutcomeCallable MtsClient::cancelJobCallable(const CancelJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cancelJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::ReportCensorJobResultOutcome MtsClient::reportCensorJobResult(const ReportCensorJobResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +663,42 @@ MtsClient::ReportCensorJobResultOutcomeCallable MtsClient::reportCensorJobResult return task->get_future(); } +MtsClient::CancelJobOutcome MtsClient::cancelJob(const CancelJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelJobOutcome(CancelJobResult(outcome.result())); + else + return CancelJobOutcome(outcome.error()); +} + +void MtsClient::cancelJobAsync(const CancelJobRequest& request, const CancelJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::CancelJobOutcomeCallable MtsClient::cancelJobCallable(const CancelJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::DeleteMcuJobOutcome MtsClient::deleteMcuJob(const DeleteMcuJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,42 +1095,6 @@ MtsClient::QueryJobListOutcomeCallable MtsClient::queryJobListCallable(const Que return task->get_future(); } -MtsClient::SearchMediaWorkflowOutcome MtsClient::searchMediaWorkflow(const SearchMediaWorkflowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchMediaWorkflowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchMediaWorkflowOutcome(SearchMediaWorkflowResult(outcome.result())); - else - return SearchMediaWorkflowOutcome(outcome.error()); -} - -void MtsClient::searchMediaWorkflowAsync(const SearchMediaWorkflowRequest& request, const SearchMediaWorkflowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchMediaWorkflow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::SearchMediaWorkflowOutcomeCallable MtsClient::searchMediaWorkflowCallable(const SearchMediaWorkflowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchMediaWorkflow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::LogicalDeleteResourceOutcome MtsClient::logicalDeleteResource(const LogicalDeleteResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,36 +1131,36 @@ MtsClient::LogicalDeleteResourceOutcomeCallable MtsClient::logicalDeleteResource return task->get_future(); } -MtsClient::QueryCoverPipelineListOutcome MtsClient::queryCoverPipelineList(const QueryCoverPipelineListRequest &request) const +MtsClient::SearchMediaWorkflowOutcome MtsClient::searchMediaWorkflow(const SearchMediaWorkflowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryCoverPipelineListOutcome(endpointOutcome.error()); + return SearchMediaWorkflowOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryCoverPipelineListOutcome(QueryCoverPipelineListResult(outcome.result())); + return SearchMediaWorkflowOutcome(SearchMediaWorkflowResult(outcome.result())); else - return QueryCoverPipelineListOutcome(outcome.error()); + return SearchMediaWorkflowOutcome(outcome.error()); } -void MtsClient::queryCoverPipelineListAsync(const QueryCoverPipelineListRequest& request, const QueryCoverPipelineListAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::searchMediaWorkflowAsync(const SearchMediaWorkflowRequest& request, const SearchMediaWorkflowAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryCoverPipelineList(request), context); + handler(this, request, searchMediaWorkflow(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::QueryCoverPipelineListOutcomeCallable MtsClient::queryCoverPipelineListCallable(const QueryCoverPipelineListRequest &request) const +MtsClient::SearchMediaWorkflowOutcomeCallable MtsClient::searchMediaWorkflowCallable(const SearchMediaWorkflowRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryCoverPipelineList(request); + return this->searchMediaWorkflow(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1239,6 +1203,42 @@ MtsClient::QueryFpShotJobListOutcomeCallable MtsClient::queryFpShotJobListCallab return task->get_future(); } +MtsClient::QueryCoverPipelineListOutcome MtsClient::queryCoverPipelineList(const QueryCoverPipelineListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCoverPipelineListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCoverPipelineListOutcome(QueryCoverPipelineListResult(outcome.result())); + else + return QueryCoverPipelineListOutcome(outcome.error()); +} + +void MtsClient::queryCoverPipelineListAsync(const QueryCoverPipelineListRequest& request, const QueryCoverPipelineListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCoverPipelineList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryCoverPipelineListOutcomeCallable MtsClient::queryCoverPipelineListCallable(const QueryCoverPipelineListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCoverPipelineList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::ListMediaWorkflowExecutionsOutcome MtsClient::listMediaWorkflowExecutions(const ListMediaWorkflowExecutionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,42 +1275,6 @@ MtsClient::ListMediaWorkflowExecutionsOutcomeCallable MtsClient::listMediaWorkfl return task->get_future(); } -MtsClient::DeletePipelineOutcome MtsClient::deletePipeline(const DeletePipelineRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeletePipelineOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeletePipelineOutcome(DeletePipelineResult(outcome.result())); - else - return DeletePipelineOutcome(outcome.error()); -} - -void MtsClient::deletePipelineAsync(const DeletePipelineRequest& request, const DeletePipelineAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deletePipeline(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::DeletePipelineOutcomeCallable MtsClient::deletePipelineCallable(const DeletePipelineRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deletePipeline(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::DeleteMediaTagOutcome MtsClient::deleteMediaTag(const DeleteMediaTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1311,42 @@ MtsClient::DeleteMediaTagOutcomeCallable MtsClient::deleteMediaTagCallable(const return task->get_future(); } +MtsClient::DeletePipelineOutcome MtsClient::deletePipeline(const DeletePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePipelineOutcome(DeletePipelineResult(outcome.result())); + else + return DeletePipelineOutcome(outcome.error()); +} + +void MtsClient::deletePipelineAsync(const DeletePipelineRequest& request, const DeletePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::DeletePipelineOutcomeCallable MtsClient::deletePipelineCallable(const DeletePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::UpdateAsrPipelineOutcome MtsClient::updateAsrPipeline(const UpdateAsrPipelineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,36 +1779,36 @@ MtsClient::UpdateMediaOutcomeCallable MtsClient::updateMediaCallable(const Updat return task->get_future(); } -MtsClient::SubmitMediaFpDeleteJobOutcome MtsClient::submitMediaFpDeleteJob(const SubmitMediaFpDeleteJobRequest &request) const +MtsClient::QuerySubtitleJobListOutcome MtsClient::querySubtitleJobList(const QuerySubtitleJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SubmitMediaFpDeleteJobOutcome(endpointOutcome.error()); + return QuerySubtitleJobListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SubmitMediaFpDeleteJobOutcome(SubmitMediaFpDeleteJobResult(outcome.result())); + return QuerySubtitleJobListOutcome(QuerySubtitleJobListResult(outcome.result())); else - return SubmitMediaFpDeleteJobOutcome(outcome.error()); + return QuerySubtitleJobListOutcome(outcome.error()); } -void MtsClient::submitMediaFpDeleteJobAsync(const SubmitMediaFpDeleteJobRequest& request, const SubmitMediaFpDeleteJobAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::querySubtitleJobListAsync(const QuerySubtitleJobListRequest& request, const QuerySubtitleJobListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, submitMediaFpDeleteJob(request), context); + handler(this, request, querySubtitleJobList(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::SubmitMediaFpDeleteJobOutcomeCallable MtsClient::submitMediaFpDeleteJobCallable(const SubmitMediaFpDeleteJobRequest &request) const +MtsClient::QuerySubtitleJobListOutcomeCallable MtsClient::querySubtitleJobListCallable(const QuerySubtitleJobListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->submitMediaFpDeleteJob(request); + return this->querySubtitleJobList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1851,36 +1851,36 @@ MtsClient::ListCensorPipelineOutcomeCallable MtsClient::listCensorPipelineCallab return task->get_future(); } -MtsClient::QuerySubtitleJobListOutcome MtsClient::querySubtitleJobList(const QuerySubtitleJobListRequest &request) const +MtsClient::SubmitMediaFpDeleteJobOutcome MtsClient::submitMediaFpDeleteJob(const SubmitMediaFpDeleteJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QuerySubtitleJobListOutcome(endpointOutcome.error()); + return SubmitMediaFpDeleteJobOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QuerySubtitleJobListOutcome(QuerySubtitleJobListResult(outcome.result())); + return SubmitMediaFpDeleteJobOutcome(SubmitMediaFpDeleteJobResult(outcome.result())); else - return QuerySubtitleJobListOutcome(outcome.error()); + return SubmitMediaFpDeleteJobOutcome(outcome.error()); } -void MtsClient::querySubtitleJobListAsync(const QuerySubtitleJobListRequest& request, const QuerySubtitleJobListAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::submitMediaFpDeleteJobAsync(const SubmitMediaFpDeleteJobRequest& request, const SubmitMediaFpDeleteJobAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, querySubtitleJobList(request), context); + handler(this, request, submitMediaFpDeleteJob(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::QuerySubtitleJobListOutcomeCallable MtsClient::querySubtitleJobListCallable(const QuerySubtitleJobListRequest &request) const +MtsClient::SubmitMediaFpDeleteJobOutcomeCallable MtsClient::submitMediaFpDeleteJobCallable(const SubmitMediaFpDeleteJobRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->querySubtitleJobList(request); + return this->submitMediaFpDeleteJob(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2247,6 +2247,42 @@ MtsClient::SubmitImageQualityJobOutcomeCallable MtsClient::submitImageQualityJob return task->get_future(); } +MtsClient::QueryFpCompareJobListOutcome MtsClient::queryFpCompareJobList(const QueryFpCompareJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryFpCompareJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryFpCompareJobListOutcome(QueryFpCompareJobListResult(outcome.result())); + else + return QueryFpCompareJobListOutcome(outcome.error()); +} + +void MtsClient::queryFpCompareJobListAsync(const QueryFpCompareJobListRequest& request, const QueryFpCompareJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryFpCompareJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryFpCompareJobListOutcomeCallable MtsClient::queryFpCompareJobListCallable(const QueryFpCompareJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryFpCompareJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::AddMCTemplateOutcome MtsClient::addMCTemplate(const AddMCTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,78 +2319,6 @@ MtsClient::AddMCTemplateOutcomeCallable MtsClient::addMCTemplateCallable(const A return task->get_future(); } -MtsClient::BindOutputBucketOutcome MtsClient::bindOutputBucket(const BindOutputBucketRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BindOutputBucketOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BindOutputBucketOutcome(BindOutputBucketResult(outcome.result())); - else - return BindOutputBucketOutcome(outcome.error()); -} - -void MtsClient::bindOutputBucketAsync(const BindOutputBucketRequest& request, const BindOutputBucketAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bindOutputBucket(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::BindOutputBucketOutcomeCallable MtsClient::bindOutputBucketCallable(const BindOutputBucketRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bindOutputBucket(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -MtsClient::SearchTemplateOutcome MtsClient::searchTemplate(const SearchTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchTemplateOutcome(SearchTemplateResult(outcome.result())); - else - return SearchTemplateOutcome(outcome.error()); -} - -void MtsClient::searchTemplateAsync(const SearchTemplateRequest& request, const SearchTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::SearchTemplateOutcomeCallable MtsClient::searchTemplateCallable(const SearchTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::UpdateMcuTemplateOutcome MtsClient::updateMcuTemplate(const UpdateMcuTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2391,36 +2355,72 @@ MtsClient::UpdateMcuTemplateOutcomeCallable MtsClient::updateMcuTemplateCallable return task->get_future(); } -MtsClient::QueryMCJobListOutcome MtsClient::queryMCJobList(const QueryMCJobListRequest &request) const +MtsClient::SearchTemplateOutcome MtsClient::searchTemplate(const SearchTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryMCJobListOutcome(endpointOutcome.error()); + return SearchTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryMCJobListOutcome(QueryMCJobListResult(outcome.result())); + return SearchTemplateOutcome(SearchTemplateResult(outcome.result())); else - return QueryMCJobListOutcome(outcome.error()); + return SearchTemplateOutcome(outcome.error()); } -void MtsClient::queryMCJobListAsync(const QueryMCJobListRequest& request, const QueryMCJobListAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::searchTemplateAsync(const SearchTemplateRequest& request, const SearchTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryMCJobList(request), context); + handler(this, request, searchTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::QueryMCJobListOutcomeCallable MtsClient::queryMCJobListCallable(const QueryMCJobListRequest &request) const +MtsClient::SearchTemplateOutcomeCallable MtsClient::searchTemplateCallable(const SearchTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryMCJobList(request); + return this->searchTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::BindOutputBucketOutcome MtsClient::bindOutputBucket(const BindOutputBucketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindOutputBucketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindOutputBucketOutcome(BindOutputBucketResult(outcome.result())); + else + return BindOutputBucketOutcome(outcome.error()); +} + +void MtsClient::bindOutputBucketAsync(const BindOutputBucketRequest& request, const BindOutputBucketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindOutputBucket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::BindOutputBucketOutcomeCallable MtsClient::bindOutputBucketCallable(const BindOutputBucketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindOutputBucket(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2463,6 +2463,42 @@ MtsClient::AddPipelineOutcomeCallable MtsClient::addPipelineCallable(const AddPi return task->get_future(); } +MtsClient::QueryMCJobListOutcome MtsClient::queryMCJobList(const QueryMCJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMCJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMCJobListOutcome(QueryMCJobListResult(outcome.result())); + else + return QueryMCJobListOutcome(outcome.error()); +} + +void MtsClient::queryMCJobListAsync(const QueryMCJobListRequest& request, const QueryMCJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMCJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryMCJobListOutcomeCallable MtsClient::queryMCJobListCallable(const QueryMCJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMCJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitFacerecogJobOutcome MtsClient::submitFacerecogJob(const SubmitFacerecogJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,42 +2643,6 @@ MtsClient::SubmitMediaInfoJobOutcomeCallable MtsClient::submitMediaInfoJobCallab return task->get_future(); } -MtsClient::QueryPornJobListOutcome MtsClient::queryPornJobList(const QueryPornJobListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryPornJobListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryPornJobListOutcome(QueryPornJobListResult(outcome.result())); - else - return QueryPornJobListOutcome(outcome.error()); -} - -void MtsClient::queryPornJobListAsync(const QueryPornJobListRequest& request, const QueryPornJobListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryPornJobList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::QueryPornJobListOutcomeCallable MtsClient::queryPornJobListCallable(const QueryPornJobListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryPornJobList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::ReportVideoSplitJobResultOutcome MtsClient::reportVideoSplitJobResult(const ReportVideoSplitJobResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +2679,42 @@ MtsClient::ReportVideoSplitJobResultOutcomeCallable MtsClient::reportVideoSplitJ return task->get_future(); } +MtsClient::QueryPornJobListOutcome MtsClient::queryPornJobList(const QueryPornJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPornJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPornJobListOutcome(QueryPornJobListResult(outcome.result())); + else + return QueryPornJobListOutcome(outcome.error()); +} + +void MtsClient::queryPornJobListAsync(const QueryPornJobListRequest& request, const QueryPornJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPornJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryPornJobListOutcomeCallable MtsClient::queryPornJobListCallable(const QueryPornJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPornJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::UpdateCategoryNameOutcome MtsClient::updateCategoryName(const UpdateCategoryNameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,36 +2823,36 @@ MtsClient::QueryMcuJobOutcomeCallable MtsClient::queryMcuJobCallable(const Query return task->get_future(); } -MtsClient::ListCoverPipelineOutcome MtsClient::listCoverPipeline(const ListCoverPipelineRequest &request) const +MtsClient::SubmitBeautifyJobsOutcome MtsClient::submitBeautifyJobs(const SubmitBeautifyJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListCoverPipelineOutcome(endpointOutcome.error()); + return SubmitBeautifyJobsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListCoverPipelineOutcome(ListCoverPipelineResult(outcome.result())); + return SubmitBeautifyJobsOutcome(SubmitBeautifyJobsResult(outcome.result())); else - return ListCoverPipelineOutcome(outcome.error()); + return SubmitBeautifyJobsOutcome(outcome.error()); } -void MtsClient::listCoverPipelineAsync(const ListCoverPipelineRequest& request, const ListCoverPipelineAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::submitBeautifyJobsAsync(const SubmitBeautifyJobsRequest& request, const SubmitBeautifyJobsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listCoverPipeline(request), context); + handler(this, request, submitBeautifyJobs(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::ListCoverPipelineOutcomeCallable MtsClient::listCoverPipelineCallable(const ListCoverPipelineRequest &request) const +MtsClient::SubmitBeautifyJobsOutcomeCallable MtsClient::submitBeautifyJobsCallable(const SubmitBeautifyJobsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listCoverPipeline(request); + return this->submitBeautifyJobs(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2859,6 +2895,42 @@ MtsClient::QueryMediaCensorJobDetailOutcomeCallable MtsClient::queryMediaCensorJ return task->get_future(); } +MtsClient::ListCoverPipelineOutcome MtsClient::listCoverPipeline(const ListCoverPipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCoverPipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCoverPipelineOutcome(ListCoverPipelineResult(outcome.result())); + else + return ListCoverPipelineOutcome(outcome.error()); +} + +void MtsClient::listCoverPipelineAsync(const ListCoverPipelineRequest& request, const ListCoverPipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCoverPipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::ListCoverPipelineOutcomeCallable MtsClient::listCoverPipelineCallable(const ListCoverPipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCoverPipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::CreateMcuTemplateOutcome MtsClient::createMcuTemplate(const CreateMcuTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2931,42 +3003,6 @@ MtsClient::QueryImageSearchJobListOutcomeCallable MtsClient::queryImageSearchJob return task->get_future(); } -MtsClient::ReportFpShotJobResultOutcome MtsClient::reportFpShotJobResult(const ReportFpShotJobResultRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReportFpShotJobResultOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReportFpShotJobResultOutcome(ReportFpShotJobResultResult(outcome.result())); - else - return ReportFpShotJobResultOutcome(outcome.error()); -} - -void MtsClient::reportFpShotJobResultAsync(const ReportFpShotJobResultRequest& request, const ReportFpShotJobResultAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, reportFpShotJobResult(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::ReportFpShotJobResultOutcomeCallable MtsClient::reportFpShotJobResultCallable(const ReportFpShotJobResultRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->reportFpShotJobResult(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::SubmitVideoSummaryJobOutcome MtsClient::submitVideoSummaryJob(const SubmitVideoSummaryJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3003,6 +3039,42 @@ MtsClient::SubmitVideoSummaryJobOutcomeCallable MtsClient::submitVideoSummaryJob return task->get_future(); } +MtsClient::ReportFpShotJobResultOutcome MtsClient::reportFpShotJobResult(const ReportFpShotJobResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReportFpShotJobResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReportFpShotJobResultOutcome(ReportFpShotJobResultResult(outcome.result())); + else + return ReportFpShotJobResultOutcome(outcome.error()); +} + +void MtsClient::reportFpShotJobResultAsync(const ReportFpShotJobResultRequest& request, const ReportFpShotJobResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reportFpShotJobResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::ReportFpShotJobResultOutcomeCallable MtsClient::reportFpShotJobResultCallable(const ReportFpShotJobResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reportFpShotJobResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitVideoGifJobOutcome MtsClient::submitVideoGifJob(const SubmitVideoGifJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3075,42 +3147,6 @@ MtsClient::QueryAnnotationJobListOutcomeCallable MtsClient::queryAnnotationJobLi return task->get_future(); } -MtsClient::SubmitMediaDetailJobOutcome MtsClient::submitMediaDetailJob(const SubmitMediaDetailJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitMediaDetailJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitMediaDetailJobOutcome(SubmitMediaDetailJobResult(outcome.result())); - else - return SubmitMediaDetailJobOutcome(outcome.error()); -} - -void MtsClient::submitMediaDetailJobAsync(const SubmitMediaDetailJobRequest& request, const SubmitMediaDetailJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitMediaDetailJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::SubmitMediaDetailJobOutcomeCallable MtsClient::submitMediaDetailJobCallable(const SubmitMediaDetailJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitMediaDetailJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::SubmitPornJobOutcome MtsClient::submitPornJob(const SubmitPornJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,36 +3183,72 @@ MtsClient::SubmitPornJobOutcomeCallable MtsClient::submitPornJobCallable(const S return task->get_future(); } -MtsClient::QueryFpImportResultOutcome MtsClient::queryFpImportResult(const QueryFpImportResultRequest &request) const +MtsClient::SubmitMediaDetailJobOutcome MtsClient::submitMediaDetailJob(const SubmitMediaDetailJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryFpImportResultOutcome(endpointOutcome.error()); + return SubmitMediaDetailJobOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryFpImportResultOutcome(QueryFpImportResultResult(outcome.result())); + return SubmitMediaDetailJobOutcome(SubmitMediaDetailJobResult(outcome.result())); else - return QueryFpImportResultOutcome(outcome.error()); + return SubmitMediaDetailJobOutcome(outcome.error()); } -void MtsClient::queryFpImportResultAsync(const QueryFpImportResultRequest& request, const QueryFpImportResultAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::submitMediaDetailJobAsync(const SubmitMediaDetailJobRequest& request, const SubmitMediaDetailJobAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryFpImportResult(request), context); + handler(this, request, submitMediaDetailJob(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::QueryFpImportResultOutcomeCallable MtsClient::queryFpImportResultCallable(const QueryFpImportResultRequest &request) const +MtsClient::SubmitMediaDetailJobOutcomeCallable MtsClient::submitMediaDetailJobCallable(const SubmitMediaDetailJobRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryFpImportResult(request); + return this->submitMediaDetailJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::DescribeMtsUserResourcePackageOutcome MtsClient::describeMtsUserResourcePackage(const DescribeMtsUserResourcePackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMtsUserResourcePackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMtsUserResourcePackageOutcome(DescribeMtsUserResourcePackageResult(outcome.result())); + else + return DescribeMtsUserResourcePackageOutcome(outcome.error()); +} + +void MtsClient::describeMtsUserResourcePackageAsync(const DescribeMtsUserResourcePackageRequest& request, const DescribeMtsUserResourcePackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMtsUserResourcePackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::DescribeMtsUserResourcePackageOutcomeCallable MtsClient::describeMtsUserResourcePackageCallable(const DescribeMtsUserResourcePackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMtsUserResourcePackage(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3255,6 +3327,42 @@ MtsClient::AddTemplateOutcomeCallable MtsClient::addTemplateCallable(const AddTe return task->get_future(); } +MtsClient::QueryFpImportResultOutcome MtsClient::queryFpImportResult(const QueryFpImportResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryFpImportResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryFpImportResultOutcome(QueryFpImportResultResult(outcome.result())); + else + return QueryFpImportResultOutcome(outcome.error()); +} + +void MtsClient::queryFpImportResultAsync(const QueryFpImportResultRequest& request, const QueryFpImportResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryFpImportResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryFpImportResultOutcomeCallable MtsClient::queryFpImportResultCallable(const QueryFpImportResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryFpImportResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryWaterMarkTemplateListOutcome MtsClient::queryWaterMarkTemplateList(const QueryWaterMarkTemplateListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,42 +3687,6 @@ MtsClient::GetLicenseOutcomeCallable MtsClient::getLicenseCallable(const GetLice return task->get_future(); } -MtsClient::QueryVideoSummaryJobListOutcome MtsClient::queryVideoSummaryJobList(const QueryVideoSummaryJobListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryVideoSummaryJobListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryVideoSummaryJobListOutcome(QueryVideoSummaryJobListResult(outcome.result())); - else - return QueryVideoSummaryJobListOutcome(outcome.error()); -} - -void MtsClient::queryVideoSummaryJobListAsync(const QueryVideoSummaryJobListRequest& request, const QueryVideoSummaryJobListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryVideoSummaryJobList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::QueryVideoSummaryJobListOutcomeCallable MtsClient::queryVideoSummaryJobListCallable(const QueryVideoSummaryJobListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryVideoSummaryJobList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::QueryPornPipelineListOutcome MtsClient::queryPornPipelineList(const QueryPornPipelineListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3651,6 +3723,42 @@ MtsClient::QueryPornPipelineListOutcomeCallable MtsClient::queryPornPipelineList return task->get_future(); } +MtsClient::QueryVideoSummaryJobListOutcome MtsClient::queryVideoSummaryJobList(const QueryVideoSummaryJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryVideoSummaryJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryVideoSummaryJobListOutcome(QueryVideoSummaryJobListResult(outcome.result())); + else + return QueryVideoSummaryJobListOutcome(outcome.error()); +} + +void MtsClient::queryVideoSummaryJobListAsync(const QueryVideoSummaryJobListRequest& request, const QueryVideoSummaryJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryVideoSummaryJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryVideoSummaryJobListOutcomeCallable MtsClient::queryVideoSummaryJobListCallable(const QueryVideoSummaryJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryVideoSummaryJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryTerrorismJobListOutcome MtsClient::queryTerrorismJobList(const QueryTerrorismJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,42 +4119,6 @@ MtsClient::UpdateMediaWorkflowTriggerModeOutcomeCallable MtsClient::updateMediaW return task->get_future(); } -MtsClient::SearchMediaOutcome MtsClient::searchMedia(const SearchMediaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchMediaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchMediaOutcome(SearchMediaResult(outcome.result())); - else - return SearchMediaOutcome(outcome.error()); -} - -void MtsClient::searchMediaAsync(const SearchMediaRequest& request, const SearchMediaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchMedia(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::SearchMediaOutcomeCallable MtsClient::searchMediaCallable(const SearchMediaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchMedia(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::ActivateMediaWorkflowOutcome MtsClient::activateMediaWorkflow(const ActivateMediaWorkflowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4083,6 +4155,42 @@ MtsClient::ActivateMediaWorkflowOutcomeCallable MtsClient::activateMediaWorkflow return task->get_future(); } +MtsClient::SearchMediaOutcome MtsClient::searchMedia(const SearchMediaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchMediaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchMediaOutcome(SearchMediaResult(outcome.result())); + else + return SearchMediaOutcome(outcome.error()); +} + +void MtsClient::searchMediaAsync(const SearchMediaRequest& request, const SearchMediaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchMedia(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SearchMediaOutcomeCallable MtsClient::searchMediaCallable(const SearchMediaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchMedia(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitTerrorismJobOutcome MtsClient::submitTerrorismJob(const SubmitTerrorismJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4515,6 +4623,42 @@ MtsClient::RegisterMediaDetailScenarioOutcomeCallable MtsClient::registerMediaDe return task->get_future(); } +MtsClient::QueryMediaCensorJobListOutcome MtsClient::queryMediaCensorJobList(const QueryMediaCensorJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMediaCensorJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMediaCensorJobListOutcome(QueryMediaCensorJobListResult(outcome.result())); + else + return QueryMediaCensorJobListOutcome(outcome.error()); +} + +void MtsClient::queryMediaCensorJobListAsync(const QueryMediaCensorJobListRequest& request, const QueryMediaCensorJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMediaCensorJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryMediaCensorJobListOutcomeCallable MtsClient::queryMediaCensorJobListCallable(const QueryMediaCensorJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMediaCensorJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::ReportAnnotationJobResultOutcome MtsClient::reportAnnotationJobResult(const ReportAnnotationJobResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4623,42 +4767,6 @@ MtsClient::QueryVideoSplitJobListOutcomeCallable MtsClient::queryVideoSplitJobLi return task->get_future(); } -MtsClient::BindInputBucketOutcome MtsClient::bindInputBucket(const BindInputBucketRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BindInputBucketOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BindInputBucketOutcome(BindInputBucketResult(outcome.result())); - else - return BindInputBucketOutcome(outcome.error()); -} - -void MtsClient::bindInputBucketAsync(const BindInputBucketRequest& request, const BindInputBucketAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bindInputBucket(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::BindInputBucketOutcomeCallable MtsClient::bindInputBucketCallable(const BindInputBucketRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bindInputBucket(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::AddTerrorismPipelineOutcome MtsClient::addTerrorismPipeline(const AddTerrorismPipelineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4695,6 +4803,42 @@ MtsClient::AddTerrorismPipelineOutcomeCallable MtsClient::addTerrorismPipelineCa return task->get_future(); } +MtsClient::BindInputBucketOutcome MtsClient::bindInputBucket(const BindInputBucketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindInputBucketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindInputBucketOutcome(BindInputBucketResult(outcome.result())); + else + return BindInputBucketOutcome(outcome.error()); +} + +void MtsClient::bindInputBucketAsync(const BindInputBucketRequest& request, const BindInputBucketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindInputBucket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::BindInputBucketOutcomeCallable MtsClient::bindInputBucketCallable(const BindInputBucketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindInputBucket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryPipelineListOutcome MtsClient::queryPipelineList(const QueryPipelineListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4983,42 +5127,6 @@ MtsClient::QueryCensorPipelineListOutcomeCallable MtsClient::queryCensorPipeline return task->get_future(); } -MtsClient::SubmitVideoSplitJobOutcome MtsClient::submitVideoSplitJob(const SubmitVideoSplitJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitVideoSplitJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitVideoSplitJobOutcome(SubmitVideoSplitJobResult(outcome.result())); - else - return SubmitVideoSplitJobOutcome(outcome.error()); -} - -void MtsClient::submitVideoSplitJobAsync(const SubmitVideoSplitJobRequest& request, const SubmitVideoSplitJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitVideoSplitJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::SubmitVideoSplitJobOutcomeCallable MtsClient::submitVideoSplitJobCallable(const SubmitVideoSplitJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitVideoSplitJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::SubmitMcuJobOutcome MtsClient::submitMcuJob(const SubmitMcuJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5055,6 +5163,42 @@ MtsClient::SubmitMcuJobOutcomeCallable MtsClient::submitMcuJobCallable(const Sub return task->get_future(); } +MtsClient::SubmitVideoSplitJobOutcome MtsClient::submitVideoSplitJob(const SubmitVideoSplitJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitVideoSplitJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitVideoSplitJobOutcome(SubmitVideoSplitJobResult(outcome.result())); + else + return SubmitVideoSplitJobOutcome(outcome.error()); +} + +void MtsClient::submitVideoSplitJobAsync(const SubmitVideoSplitJobRequest& request, const SubmitVideoSplitJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitVideoSplitJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitVideoSplitJobOutcomeCallable MtsClient::submitVideoSplitJobCallable(const SubmitVideoSplitJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitVideoSplitJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::CategoryTreeOutcome MtsClient::categoryTree(const CategoryTreeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5163,6 +5307,42 @@ MtsClient::SubmitCoverJobOutcomeCallable MtsClient::submitCoverJobCallable(const return task->get_future(); } +MtsClient::PlayInfoOutcome MtsClient::playInfo(const PlayInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PlayInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PlayInfoOutcome(PlayInfoResult(outcome.result())); + else + return PlayInfoOutcome(outcome.error()); +} + +void MtsClient::playInfoAsync(const PlayInfoRequest& request, const PlayInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, playInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::PlayInfoOutcomeCallable MtsClient::playInfoCallable(const PlayInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->playInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SearchWaterMarkTemplateOutcome MtsClient::searchWaterMarkTemplate(const SearchWaterMarkTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5235,42 +5415,6 @@ MtsClient::AddCensorPipelineOutcomeCallable MtsClient::addCensorPipelineCallable return task->get_future(); } -MtsClient::PlayInfoOutcome MtsClient::playInfo(const PlayInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PlayInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PlayInfoOutcome(PlayInfoResult(outcome.result())); - else - return PlayInfoOutcome(outcome.error()); -} - -void MtsClient::playInfoAsync(const PlayInfoRequest& request, const PlayInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, playInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::PlayInfoOutcomeCallable MtsClient::playInfoCallable(const PlayInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->playInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::SubmitAsrJobOutcome MtsClient::submitAsrJob(const SubmitAsrJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5343,42 +5487,6 @@ MtsClient::SubmitSubtitleJobOutcomeCallable MtsClient::submitSubtitleJobCallable return task->get_future(); } -MtsClient::QueryCoverJobListOutcome MtsClient::queryCoverJobList(const QueryCoverJobListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCoverJobListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCoverJobListOutcome(QueryCoverJobListResult(outcome.result())); - else - return QueryCoverJobListOutcome(outcome.error()); -} - -void MtsClient::queryCoverJobListAsync(const QueryCoverJobListRequest& request, const QueryCoverJobListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCoverJobList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -MtsClient::QueryCoverJobListOutcomeCallable MtsClient::queryCoverJobListCallable(const QueryCoverJobListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCoverJobList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - MtsClient::AddMediaWorkflowOutcome MtsClient::addMediaWorkflow(const AddMediaWorkflowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5415,6 +5523,42 @@ MtsClient::AddMediaWorkflowOutcomeCallable MtsClient::addMediaWorkflowCallable(c return task->get_future(); } +MtsClient::QueryCoverJobListOutcome MtsClient::queryCoverJobList(const QueryCoverJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCoverJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCoverJobListOutcome(QueryCoverJobListResult(outcome.result())); + else + return QueryCoverJobListOutcome(outcome.error()); +} + +void MtsClient::queryCoverJobListAsync(const QueryCoverJobListRequest& request, const QueryCoverJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCoverJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryCoverJobListOutcomeCallable MtsClient::queryCoverJobListCallable(const QueryCoverJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCoverJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryAsrJobListOutcome MtsClient::queryAsrJobList(const QueryAsrJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5451,36 +5595,36 @@ MtsClient::QueryAsrJobListOutcomeCallable MtsClient::queryAsrJobListCallable(con return task->get_future(); } -MtsClient::SubmitVideoPoseJobOutcome MtsClient::submitVideoPoseJob(const SubmitVideoPoseJobRequest &request) const +MtsClient::AddWaterMarkTemplateOutcome MtsClient::addWaterMarkTemplate(const AddWaterMarkTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SubmitVideoPoseJobOutcome(endpointOutcome.error()); + return AddWaterMarkTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SubmitVideoPoseJobOutcome(SubmitVideoPoseJobResult(outcome.result())); + return AddWaterMarkTemplateOutcome(AddWaterMarkTemplateResult(outcome.result())); else - return SubmitVideoPoseJobOutcome(outcome.error()); + return AddWaterMarkTemplateOutcome(outcome.error()); } -void MtsClient::submitVideoPoseJobAsync(const SubmitVideoPoseJobRequest& request, const SubmitVideoPoseJobAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::addWaterMarkTemplateAsync(const AddWaterMarkTemplateRequest& request, const AddWaterMarkTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, submitVideoPoseJob(request), context); + handler(this, request, addWaterMarkTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::SubmitVideoPoseJobOutcomeCallable MtsClient::submitVideoPoseJobCallable(const SubmitVideoPoseJobRequest &request) const +MtsClient::AddWaterMarkTemplateOutcomeCallable MtsClient::addWaterMarkTemplateCallable(const AddWaterMarkTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->submitVideoPoseJob(request); + return this->addWaterMarkTemplate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5523,36 +5667,36 @@ MtsClient::PlayerAuthOutcomeCallable MtsClient::playerAuthCallable(const PlayerA return task->get_future(); } -MtsClient::AddWaterMarkTemplateOutcome MtsClient::addWaterMarkTemplate(const AddWaterMarkTemplateRequest &request) const +MtsClient::SubmitVideoPoseJobOutcome MtsClient::submitVideoPoseJob(const SubmitVideoPoseJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddWaterMarkTemplateOutcome(endpointOutcome.error()); + return SubmitVideoPoseJobOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddWaterMarkTemplateOutcome(AddWaterMarkTemplateResult(outcome.result())); + return SubmitVideoPoseJobOutcome(SubmitVideoPoseJobResult(outcome.result())); else - return AddWaterMarkTemplateOutcome(outcome.error()); + return SubmitVideoPoseJobOutcome(outcome.error()); } -void MtsClient::addWaterMarkTemplateAsync(const AddWaterMarkTemplateRequest& request, const AddWaterMarkTemplateAsyncHandler& handler, const std::shared_ptr& context) const +void MtsClient::submitVideoPoseJobAsync(const SubmitVideoPoseJobRequest& request, const SubmitVideoPoseJobAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addWaterMarkTemplate(request), context); + handler(this, request, submitVideoPoseJob(request), context); }; asyncExecute(new Runnable(fn)); } -MtsClient::AddWaterMarkTemplateOutcomeCallable MtsClient::addWaterMarkTemplateCallable(const AddWaterMarkTemplateRequest &request) const +MtsClient::SubmitVideoPoseJobOutcomeCallable MtsClient::submitVideoPoseJobCallable(const SubmitVideoPoseJobRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addWaterMarkTemplate(request); + return this->submitVideoPoseJob(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5595,6 +5739,42 @@ MtsClient::RegisterMediaDetailPersonOutcomeCallable MtsClient::registerMediaDeta return task->get_future(); } +MtsClient::SubmitFpCompareJobOutcome MtsClient::submitFpCompareJob(const SubmitFpCompareJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitFpCompareJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitFpCompareJobOutcome(SubmitFpCompareJobResult(outcome.result())); + else + return SubmitFpCompareJobOutcome(outcome.error()); +} + +void MtsClient::submitFpCompareJobAsync(const SubmitFpCompareJobRequest& request, const SubmitFpCompareJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitFpCompareJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitFpCompareJobOutcomeCallable MtsClient::submitFpCompareJobCallable(const SubmitFpCompareJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitFpCompareJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryCensorJobListOutcome MtsClient::queryCensorJobList(const QueryCensorJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/mts/src/model/ActivateMediaWorkflowRequest.cc b/mts/src/model/ActivateMediaWorkflowRequest.cc index 792a1f816..bba26cd56 100644 --- a/mts/src/model/ActivateMediaWorkflowRequest.cc +++ b/mts/src/model/ActivateMediaWorkflowRequest.cc @@ -33,7 +33,7 @@ long ActivateMediaWorkflowRequest::getResourceOwnerId()const void ActivateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ActivateMediaWorkflowRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ActivateMediaWorkflowRequest::getResourceOwnerAccount()const void ActivateMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ActivateMediaWorkflowRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string ActivateMediaWorkflowRequest::getOwnerAccount()const void ActivateMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ActivateMediaWorkflowRequest::getMediaWorkflowId()const @@ -66,7 +66,7 @@ std::string ActivateMediaWorkflowRequest::getMediaWorkflowId()const void ActivateMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) { mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); + setCoreParameter("MediaWorkflowId", mediaWorkflowId); } long ActivateMediaWorkflowRequest::getOwnerId()const @@ -77,7 +77,7 @@ long ActivateMediaWorkflowRequest::getOwnerId()const void ActivateMediaWorkflowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ActivateMediaWorkflowRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string ActivateMediaWorkflowRequest::getAccessKeyId()const void ActivateMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ActivateMediaWorkflowResult.cc b/mts/src/model/ActivateMediaWorkflowResult.cc index db14ae640..73ac6e653 100644 --- a/mts/src/model/ActivateMediaWorkflowResult.cc +++ b/mts/src/model/ActivateMediaWorkflowResult.cc @@ -35,10 +35,13 @@ ActivateMediaWorkflowResult::~ActivateMediaWorkflowResult() void ActivateMediaWorkflowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) diff --git a/mts/src/model/AddAsrPipelineRequest.cc b/mts/src/model/AddAsrPipelineRequest.cc index 875903a3d..3a51b644c 100644 --- a/mts/src/model/AddAsrPipelineRequest.cc +++ b/mts/src/model/AddAsrPipelineRequest.cc @@ -33,7 +33,7 @@ long AddAsrPipelineRequest::getResourceOwnerId()const void AddAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddAsrPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddAsrPipelineRequest::getResourceOwnerAccount()const void AddAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddAsrPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddAsrPipelineRequest::getOwnerAccount()const void AddAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddAsrPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string AddAsrPipelineRequest::getName()const void AddAsrPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddAsrPipelineRequest::getNotifyConfig()const @@ -77,7 +77,7 @@ std::string AddAsrPipelineRequest::getNotifyConfig()const void AddAsrPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long AddAsrPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AddAsrPipelineRequest::getOwnerId()const void AddAsrPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int AddAsrPipelineRequest::getPriority()const @@ -99,7 +99,7 @@ int AddAsrPipelineRequest::getPriority()const void AddAsrPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string AddAsrPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string AddAsrPipelineRequest::getAccessKeyId()const void AddAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddAsrPipelineResult.cc b/mts/src/model/AddAsrPipelineResult.cc index 7aedbaa62..8ea67cd72 100644 --- a/mts/src/model/AddAsrPipelineResult.cc +++ b/mts/src/model/AddAsrPipelineResult.cc @@ -35,10 +35,13 @@ AddAsrPipelineResult::~AddAsrPipelineResult() void AddAsrPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/AddCategoryRequest.cc b/mts/src/model/AddCategoryRequest.cc index cf16d48b9..58e2dce2f 100644 --- a/mts/src/model/AddCategoryRequest.cc +++ b/mts/src/model/AddCategoryRequest.cc @@ -33,7 +33,7 @@ long AddCategoryRequest::getResourceOwnerId()const void AddCategoryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddCategoryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddCategoryRequest::getResourceOwnerAccount()const void AddCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddCategoryRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddCategoryRequest::getOwnerAccount()const void AddCategoryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddCategoryRequest::getOwnerId()const @@ -66,7 +66,7 @@ long AddCategoryRequest::getOwnerId()const void AddCategoryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long AddCategoryRequest::getParentId()const @@ -77,7 +77,7 @@ long AddCategoryRequest::getParentId()const void AddCategoryRequest::setParentId(long parentId) { parentId_ = parentId; - setParameter("ParentId", std::to_string(parentId)); + setCoreParameter("ParentId", std::to_string(parentId)); } std::string AddCategoryRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string AddCategoryRequest::getAccessKeyId()const void AddCategoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AddCategoryRequest::getCateName()const @@ -99,6 +99,6 @@ std::string AddCategoryRequest::getCateName()const void AddCategoryRequest::setCateName(const std::string& cateName) { cateName_ = cateName; - setParameter("CateName", cateName); + setCoreParameter("CateName", cateName); } diff --git a/mts/src/model/AddCategoryResult.cc b/mts/src/model/AddCategoryResult.cc index e0694e80f..ddff205db 100644 --- a/mts/src/model/AddCategoryResult.cc +++ b/mts/src/model/AddCategoryResult.cc @@ -35,10 +35,13 @@ AddCategoryResult::~AddCategoryResult() void AddCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto categoryNode = value["Category"]; if(!categoryNode["CateId"].isNull()) diff --git a/mts/src/model/AddCensorPipelineRequest.cc b/mts/src/model/AddCensorPipelineRequest.cc index edd0d37ef..80c80daa0 100644 --- a/mts/src/model/AddCensorPipelineRequest.cc +++ b/mts/src/model/AddCensorPipelineRequest.cc @@ -33,7 +33,7 @@ long AddCensorPipelineRequest::getResourceOwnerId()const void AddCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddCensorPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddCensorPipelineRequest::getResourceOwnerAccount()const void AddCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddCensorPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddCensorPipelineRequest::getOwnerAccount()const void AddCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddCensorPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string AddCensorPipelineRequest::getName()const void AddCensorPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddCensorPipelineRequest::getNotifyConfig()const @@ -77,7 +77,7 @@ std::string AddCensorPipelineRequest::getNotifyConfig()const void AddCensorPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long AddCensorPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AddCensorPipelineRequest::getOwnerId()const void AddCensorPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int AddCensorPipelineRequest::getPriority()const @@ -99,7 +99,7 @@ int AddCensorPipelineRequest::getPriority()const void AddCensorPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string AddCensorPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string AddCensorPipelineRequest::getAccessKeyId()const void AddCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddCensorPipelineResult.cc b/mts/src/model/AddCensorPipelineResult.cc index ce740022d..1336bed19 100644 --- a/mts/src/model/AddCensorPipelineResult.cc +++ b/mts/src/model/AddCensorPipelineResult.cc @@ -35,10 +35,13 @@ AddCensorPipelineResult::~AddCensorPipelineResult() void AddCensorPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/AddCoverPipelineRequest.cc b/mts/src/model/AddCoverPipelineRequest.cc index dd898093b..98348343c 100644 --- a/mts/src/model/AddCoverPipelineRequest.cc +++ b/mts/src/model/AddCoverPipelineRequest.cc @@ -33,7 +33,7 @@ long AddCoverPipelineRequest::getResourceOwnerId()const void AddCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddCoverPipelineRequest::getRole()const @@ -44,7 +44,7 @@ std::string AddCoverPipelineRequest::getRole()const void AddCoverPipelineRequest::setRole(const std::string& role) { role_ = role; - setParameter("Role", role); + setCoreParameter("Role", role); } std::string AddCoverPipelineRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddCoverPipelineRequest::getResourceOwnerAccount()const void AddCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddCoverPipelineRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddCoverPipelineRequest::getOwnerAccount()const void AddCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddCoverPipelineRequest::getName()const @@ -77,7 +77,7 @@ std::string AddCoverPipelineRequest::getName()const void AddCoverPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddCoverPipelineRequest::getNotifyConfig()const @@ -88,7 +88,7 @@ std::string AddCoverPipelineRequest::getNotifyConfig()const void AddCoverPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long AddCoverPipelineRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddCoverPipelineRequest::getOwnerId()const void AddCoverPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddCoverPipelineRequest::getPriority()const @@ -110,7 +110,7 @@ std::string AddCoverPipelineRequest::getPriority()const void AddCoverPipelineRequest::setPriority(const std::string& priority) { priority_ = priority; - setParameter("Priority", priority); + setCoreParameter("Priority", priority); } std::string AddCoverPipelineRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string AddCoverPipelineRequest::getAccessKeyId()const void AddCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddCoverPipelineResult.cc b/mts/src/model/AddCoverPipelineResult.cc index 20cd1507b..311bf5442 100644 --- a/mts/src/model/AddCoverPipelineResult.cc +++ b/mts/src/model/AddCoverPipelineResult.cc @@ -35,10 +35,13 @@ AddCoverPipelineResult::~AddCoverPipelineResult() void AddCoverPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/AddMCTemplateRequest.cc b/mts/src/model/AddMCTemplateRequest.cc index 32fbbb78d..402d4280e 100644 --- a/mts/src/model/AddMCTemplateRequest.cc +++ b/mts/src/model/AddMCTemplateRequest.cc @@ -33,7 +33,7 @@ std::string AddMCTemplateRequest::getPolitics()const void AddMCTemplateRequest::setPolitics(const std::string& politics) { politics_ = politics; - setParameter("Politics", politics); + setCoreParameter("Politics", politics); } long AddMCTemplateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AddMCTemplateRequest::getResourceOwnerId()const void AddMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddMCTemplateRequest::getContraband()const @@ -55,7 +55,7 @@ std::string AddMCTemplateRequest::getContraband()const void AddMCTemplateRequest::setContraband(const std::string& contraband) { contraband_ = contraband; - setParameter("Contraband", contraband); + setCoreParameter("Contraband", contraband); } std::string AddMCTemplateRequest::getAd()const @@ -66,7 +66,7 @@ std::string AddMCTemplateRequest::getAd()const void AddMCTemplateRequest::setAd(const std::string& ad) { ad_ = ad; - setParameter("Ad", ad); + setCoreParameter("Ad", ad); } std::string AddMCTemplateRequest::getAbuse()const @@ -77,7 +77,7 @@ std::string AddMCTemplateRequest::getAbuse()const void AddMCTemplateRequest::setAbuse(const std::string& abuse) { abuse_ = abuse; - setParameter("Abuse", abuse); + setCoreParameter("Abuse", abuse); } std::string AddMCTemplateRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string AddMCTemplateRequest::getResourceOwnerAccount()const void AddMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddMCTemplateRequest::getQrcode()const @@ -99,7 +99,7 @@ std::string AddMCTemplateRequest::getQrcode()const void AddMCTemplateRequest::setQrcode(const std::string& qrcode) { qrcode_ = qrcode; - setParameter("Qrcode", qrcode); + setCoreParameter("Qrcode", qrcode); } std::string AddMCTemplateRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string AddMCTemplateRequest::getOwnerAccount()const void AddMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddMCTemplateRequest::getOwnerId()const @@ -121,7 +121,7 @@ long AddMCTemplateRequest::getOwnerId()const void AddMCTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddMCTemplateRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string AddMCTemplateRequest::getAccessKeyId()const void AddMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AddMCTemplateRequest::getPorn()const @@ -143,7 +143,7 @@ std::string AddMCTemplateRequest::getPorn()const void AddMCTemplateRequest::setPorn(const std::string& porn) { porn_ = porn; - setParameter("Porn", porn); + setCoreParameter("Porn", porn); } std::string AddMCTemplateRequest::getTerrorism()const @@ -154,7 +154,7 @@ std::string AddMCTemplateRequest::getTerrorism()const void AddMCTemplateRequest::setTerrorism(const std::string& terrorism) { terrorism_ = terrorism; - setParameter("Terrorism", terrorism); + setCoreParameter("Terrorism", terrorism); } std::string AddMCTemplateRequest::getName()const @@ -165,7 +165,7 @@ std::string AddMCTemplateRequest::getName()const void AddMCTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddMCTemplateRequest::getLogo()const @@ -176,7 +176,7 @@ std::string AddMCTemplateRequest::getLogo()const void AddMCTemplateRequest::setLogo(const std::string& logo) { logo_ = logo; - setParameter("Logo", logo); + setCoreParameter("Logo", logo); } std::string AddMCTemplateRequest::getSpam()const @@ -187,7 +187,7 @@ std::string AddMCTemplateRequest::getSpam()const void AddMCTemplateRequest::setSpam(const std::string& spam) { spam_ = spam; - setParameter("Spam", spam); + setCoreParameter("Spam", spam); } std::string AddMCTemplateRequest::getLive()const @@ -198,6 +198,6 @@ std::string AddMCTemplateRequest::getLive()const void AddMCTemplateRequest::setLive(const std::string& live) { live_ = live; - setParameter("Live", live); + setCoreParameter("Live", live); } diff --git a/mts/src/model/AddMCTemplateResult.cc b/mts/src/model/AddMCTemplateResult.cc index 481c18b06..a1b07d443 100644 --- a/mts/src/model/AddMCTemplateResult.cc +++ b/mts/src/model/AddMCTemplateResult.cc @@ -35,10 +35,13 @@ AddMCTemplateResult::~AddMCTemplateResult() void AddMCTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; if(!_templateNode["TemplateId"].isNull()) diff --git a/mts/src/model/AddMediaRequest.cc b/mts/src/model/AddMediaRequest.cc index c29c9b6cb..d3045c8ce 100644 --- a/mts/src/model/AddMediaRequest.cc +++ b/mts/src/model/AddMediaRequest.cc @@ -33,7 +33,7 @@ long AddMediaRequest::getResourceOwnerId()const void AddMediaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddMediaRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddMediaRequest::getResourceOwnerAccount()const void AddMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddMediaRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddMediaRequest::getOwnerAccount()const void AddMediaRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddMediaRequest::getDescription()const @@ -66,7 +66,7 @@ std::string AddMediaRequest::getDescription()const void AddMediaRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string AddMediaRequest::getOverrideParams()const @@ -77,7 +77,7 @@ std::string AddMediaRequest::getOverrideParams()const void AddMediaRequest::setOverrideParams(const std::string& overrideParams) { overrideParams_ = overrideParams; - setParameter("OverrideParams", overrideParams); + setCoreParameter("OverrideParams", overrideParams); } long AddMediaRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AddMediaRequest::getOwnerId()const void AddMediaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddMediaRequest::getTitle()const @@ -99,7 +99,7 @@ std::string AddMediaRequest::getTitle()const void AddMediaRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } bool AddMediaRequest::getInputUnbind()const @@ -110,7 +110,7 @@ bool AddMediaRequest::getInputUnbind()const void AddMediaRequest::setInputUnbind(bool inputUnbind) { inputUnbind_ = inputUnbind; - setParameter("InputUnbind", inputUnbind ? "true" : "false"); + setCoreParameter("InputUnbind", inputUnbind ? "true" : "false"); } std::string AddMediaRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string AddMediaRequest::getAccessKeyId()const void AddMediaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AddMediaRequest::getTags()const @@ -132,7 +132,7 @@ std::string AddMediaRequest::getTags()const void AddMediaRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string AddMediaRequest::getCoverURL()const @@ -143,7 +143,7 @@ std::string AddMediaRequest::getCoverURL()const void AddMediaRequest::setCoverURL(const std::string& coverURL) { coverURL_ = coverURL; - setParameter("CoverURL", coverURL); + setCoreParameter("CoverURL", coverURL); } long AddMediaRequest::getCateId()const @@ -154,7 +154,7 @@ long AddMediaRequest::getCateId()const void AddMediaRequest::setCateId(long cateId) { cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); + setCoreParameter("CateId", std::to_string(cateId)); } std::string AddMediaRequest::getFileURL()const @@ -165,7 +165,7 @@ std::string AddMediaRequest::getFileURL()const void AddMediaRequest::setFileURL(const std::string& fileURL) { fileURL_ = fileURL; - setParameter("FileURL", fileURL); + setCoreParameter("FileURL", fileURL); } std::string AddMediaRequest::getMediaWorkflowId()const @@ -176,7 +176,7 @@ std::string AddMediaRequest::getMediaWorkflowId()const void AddMediaRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) { mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); + setCoreParameter("MediaWorkflowId", mediaWorkflowId); } std::string AddMediaRequest::getMediaWorkflowUserData()const @@ -187,6 +187,6 @@ std::string AddMediaRequest::getMediaWorkflowUserData()const void AddMediaRequest::setMediaWorkflowUserData(const std::string& mediaWorkflowUserData) { mediaWorkflowUserData_ = mediaWorkflowUserData; - setParameter("MediaWorkflowUserData", mediaWorkflowUserData); + setCoreParameter("MediaWorkflowUserData", mediaWorkflowUserData); } diff --git a/mts/src/model/AddMediaResult.cc b/mts/src/model/AddMediaResult.cc index eaeff73e8..9489194b9 100644 --- a/mts/src/model/AddMediaResult.cc +++ b/mts/src/model/AddMediaResult.cc @@ -35,10 +35,13 @@ AddMediaResult::~AddMediaResult() void AddMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaNode = value["Media"]; if(!mediaNode["MediaId"].isNull()) diff --git a/mts/src/model/AddMediaTagRequest.cc b/mts/src/model/AddMediaTagRequest.cc index 917d71bd0..49eb04ff5 100644 --- a/mts/src/model/AddMediaTagRequest.cc +++ b/mts/src/model/AddMediaTagRequest.cc @@ -33,7 +33,7 @@ long AddMediaTagRequest::getResourceOwnerId()const void AddMediaTagRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddMediaTagRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddMediaTagRequest::getResourceOwnerAccount()const void AddMediaTagRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddMediaTagRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddMediaTagRequest::getOwnerAccount()const void AddMediaTagRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddMediaTagRequest::getTag()const @@ -66,7 +66,7 @@ std::string AddMediaTagRequest::getTag()const void AddMediaTagRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } long AddMediaTagRequest::getOwnerId()const @@ -77,7 +77,7 @@ long AddMediaTagRequest::getOwnerId()const void AddMediaTagRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddMediaTagRequest::getMediaId()const @@ -88,7 +88,7 @@ std::string AddMediaTagRequest::getMediaId()const void AddMediaTagRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string AddMediaTagRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string AddMediaTagRequest::getAccessKeyId()const void AddMediaTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddMediaTagResult.cc b/mts/src/model/AddMediaTagResult.cc index a1f260960..2099af706 100644 --- a/mts/src/model/AddMediaTagResult.cc +++ b/mts/src/model/AddMediaTagResult.cc @@ -35,10 +35,13 @@ AddMediaTagResult::~AddMediaTagResult() void AddMediaTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/AddMediaWorkflowRequest.cc b/mts/src/model/AddMediaWorkflowRequest.cc index f4356fb1b..7d6e8669d 100644 --- a/mts/src/model/AddMediaWorkflowRequest.cc +++ b/mts/src/model/AddMediaWorkflowRequest.cc @@ -33,7 +33,7 @@ long AddMediaWorkflowRequest::getResourceOwnerId()const void AddMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddMediaWorkflowRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddMediaWorkflowRequest::getResourceOwnerAccount()const void AddMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddMediaWorkflowRequest::getTopology()const @@ -55,7 +55,7 @@ std::string AddMediaWorkflowRequest::getTopology()const void AddMediaWorkflowRequest::setTopology(const std::string& topology) { topology_ = topology; - setParameter("Topology", topology); + setCoreParameter("Topology", topology); } std::string AddMediaWorkflowRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddMediaWorkflowRequest::getOwnerAccount()const void AddMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddMediaWorkflowRequest::getName()const @@ -77,7 +77,7 @@ std::string AddMediaWorkflowRequest::getName()const void AddMediaWorkflowRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long AddMediaWorkflowRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AddMediaWorkflowRequest::getOwnerId()const void AddMediaWorkflowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddMediaWorkflowRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string AddMediaWorkflowRequest::getAccessKeyId()const void AddMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AddMediaWorkflowRequest::getTriggerMode()const @@ -110,6 +110,6 @@ std::string AddMediaWorkflowRequest::getTriggerMode()const void AddMediaWorkflowRequest::setTriggerMode(const std::string& triggerMode) { triggerMode_ = triggerMode; - setParameter("TriggerMode", triggerMode); + setCoreParameter("TriggerMode", triggerMode); } diff --git a/mts/src/model/AddMediaWorkflowResult.cc b/mts/src/model/AddMediaWorkflowResult.cc index c1cf88a60..ce8291266 100644 --- a/mts/src/model/AddMediaWorkflowResult.cc +++ b/mts/src/model/AddMediaWorkflowResult.cc @@ -35,10 +35,13 @@ AddMediaWorkflowResult::~AddMediaWorkflowResult() void AddMediaWorkflowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) diff --git a/mts/src/model/AddPipelineRequest.cc b/mts/src/model/AddPipelineRequest.cc index 06009978c..c333d8dd6 100644 --- a/mts/src/model/AddPipelineRequest.cc +++ b/mts/src/model/AddPipelineRequest.cc @@ -33,7 +33,7 @@ long AddPipelineRequest::getResourceOwnerId()const void AddPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddPipelineRequest::getRole()const @@ -44,7 +44,7 @@ std::string AddPipelineRequest::getRole()const void AddPipelineRequest::setRole(const std::string& role) { role_ = role; - setParameter("Role", role); + setCoreParameter("Role", role); } std::string AddPipelineRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddPipelineRequest::getResourceOwnerAccount()const void AddPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddPipelineRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddPipelineRequest::getOwnerAccount()const void AddPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddPipelineRequest::getName()const @@ -77,7 +77,7 @@ std::string AddPipelineRequest::getName()const void AddPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddPipelineRequest::getNotifyConfig()const @@ -88,7 +88,7 @@ std::string AddPipelineRequest::getNotifyConfig()const void AddPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long AddPipelineRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddPipelineRequest::getOwnerId()const void AddPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long AddPipelineRequest::getSpeedLevel()const @@ -110,7 +110,7 @@ long AddPipelineRequest::getSpeedLevel()const void AddPipelineRequest::setSpeedLevel(long speedLevel) { speedLevel_ = speedLevel; - setParameter("SpeedLevel", std::to_string(speedLevel)); + setCoreParameter("SpeedLevel", std::to_string(speedLevel)); } std::string AddPipelineRequest::getSpeed()const @@ -121,7 +121,7 @@ std::string AddPipelineRequest::getSpeed()const void AddPipelineRequest::setSpeed(const std::string& speed) { speed_ = speed; - setParameter("Speed", speed); + setCoreParameter("Speed", speed); } std::string AddPipelineRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string AddPipelineRequest::getAccessKeyId()const void AddPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddPipelineResult.cc b/mts/src/model/AddPipelineResult.cc index 178fe1f64..8e4c3f9d6 100644 --- a/mts/src/model/AddPipelineResult.cc +++ b/mts/src/model/AddPipelineResult.cc @@ -35,10 +35,13 @@ AddPipelineResult::~AddPipelineResult() void AddPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/AddPornPipelineRequest.cc b/mts/src/model/AddPornPipelineRequest.cc index de34147c5..ed4068672 100644 --- a/mts/src/model/AddPornPipelineRequest.cc +++ b/mts/src/model/AddPornPipelineRequest.cc @@ -33,7 +33,7 @@ long AddPornPipelineRequest::getResourceOwnerId()const void AddPornPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddPornPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddPornPipelineRequest::getResourceOwnerAccount()const void AddPornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddPornPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddPornPipelineRequest::getOwnerAccount()const void AddPornPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddPornPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string AddPornPipelineRequest::getName()const void AddPornPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddPornPipelineRequest::getNotifyConfig()const @@ -77,7 +77,7 @@ std::string AddPornPipelineRequest::getNotifyConfig()const void AddPornPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long AddPornPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AddPornPipelineRequest::getOwnerId()const void AddPornPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int AddPornPipelineRequest::getPriority()const @@ -99,7 +99,7 @@ int AddPornPipelineRequest::getPriority()const void AddPornPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string AddPornPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string AddPornPipelineRequest::getAccessKeyId()const void AddPornPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddPornPipelineResult.cc b/mts/src/model/AddPornPipelineResult.cc index cefddc339..f9ae4aea6 100644 --- a/mts/src/model/AddPornPipelineResult.cc +++ b/mts/src/model/AddPornPipelineResult.cc @@ -35,10 +35,13 @@ AddPornPipelineResult::~AddPornPipelineResult() void AddPornPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/AddTemplateRequest.cc b/mts/src/model/AddTemplateRequest.cc index 73eee5697..fdefacb6c 100644 --- a/mts/src/model/AddTemplateRequest.cc +++ b/mts/src/model/AddTemplateRequest.cc @@ -33,7 +33,7 @@ std::string AddTemplateRequest::getContainer()const void AddTemplateRequest::setContainer(const std::string& container) { container_ = container; - setParameter("Container", container); + setCoreParameter("Container", container); } long AddTemplateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AddTemplateRequest::getResourceOwnerId()const void AddTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddTemplateRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddTemplateRequest::getResourceOwnerAccount()const void AddTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddTemplateRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddTemplateRequest::getOwnerAccount()const void AddTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddTemplateRequest::getName()const @@ -77,7 +77,7 @@ std::string AddTemplateRequest::getName()const void AddTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddTemplateRequest::getTransConfig()const @@ -88,7 +88,7 @@ std::string AddTemplateRequest::getTransConfig()const void AddTemplateRequest::setTransConfig(const std::string& transConfig) { transConfig_ = transConfig; - setParameter("TransConfig", transConfig); + setCoreParameter("TransConfig", transConfig); } std::string AddTemplateRequest::getMuxConfig()const @@ -99,7 +99,7 @@ std::string AddTemplateRequest::getMuxConfig()const void AddTemplateRequest::setMuxConfig(const std::string& muxConfig) { muxConfig_ = muxConfig; - setParameter("MuxConfig", muxConfig); + setCoreParameter("MuxConfig", muxConfig); } std::string AddTemplateRequest::getVideo()const @@ -110,7 +110,7 @@ std::string AddTemplateRequest::getVideo()const void AddTemplateRequest::setVideo(const std::string& video) { video_ = video; - setParameter("Video", video); + setCoreParameter("Video", video); } std::string AddTemplateRequest::getAudio()const @@ -121,7 +121,7 @@ std::string AddTemplateRequest::getAudio()const void AddTemplateRequest::setAudio(const std::string& audio) { audio_ = audio; - setParameter("Audio", audio); + setCoreParameter("Audio", audio); } long AddTemplateRequest::getOwnerId()const @@ -132,7 +132,7 @@ long AddTemplateRequest::getOwnerId()const void AddTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddTemplateRequest::getAccessKeyId()const @@ -143,6 +143,6 @@ std::string AddTemplateRequest::getAccessKeyId()const void AddTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddTemplateResult.cc b/mts/src/model/AddTemplateResult.cc index 68c7f7372..064684af0 100644 --- a/mts/src/model/AddTemplateResult.cc +++ b/mts/src/model/AddTemplateResult.cc @@ -35,10 +35,13 @@ AddTemplateResult::~AddTemplateResult() void AddTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; if(!_templateNode["Id"].isNull()) diff --git a/mts/src/model/AddTerrorismPipelineRequest.cc b/mts/src/model/AddTerrorismPipelineRequest.cc index e3dee45e0..61336464a 100644 --- a/mts/src/model/AddTerrorismPipelineRequest.cc +++ b/mts/src/model/AddTerrorismPipelineRequest.cc @@ -33,7 +33,7 @@ long AddTerrorismPipelineRequest::getResourceOwnerId()const void AddTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddTerrorismPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddTerrorismPipelineRequest::getResourceOwnerAccount()const void AddTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddTerrorismPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddTerrorismPipelineRequest::getOwnerAccount()const void AddTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddTerrorismPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string AddTerrorismPipelineRequest::getName()const void AddTerrorismPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string AddTerrorismPipelineRequest::getNotifyConfig()const @@ -77,7 +77,7 @@ std::string AddTerrorismPipelineRequest::getNotifyConfig()const void AddTerrorismPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long AddTerrorismPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AddTerrorismPipelineRequest::getOwnerId()const void AddTerrorismPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int AddTerrorismPipelineRequest::getPriority()const @@ -99,7 +99,7 @@ int AddTerrorismPipelineRequest::getPriority()const void AddTerrorismPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string AddTerrorismPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string AddTerrorismPipelineRequest::getAccessKeyId()const void AddTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddTerrorismPipelineResult.cc b/mts/src/model/AddTerrorismPipelineResult.cc index c4883289a..5cc89b157 100644 --- a/mts/src/model/AddTerrorismPipelineResult.cc +++ b/mts/src/model/AddTerrorismPipelineResult.cc @@ -35,10 +35,13 @@ AddTerrorismPipelineResult::~AddTerrorismPipelineResult() void AddTerrorismPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/AddWaterMarkTemplateRequest.cc b/mts/src/model/AddWaterMarkTemplateRequest.cc index 16f6561a7..7f7de276c 100644 --- a/mts/src/model/AddWaterMarkTemplateRequest.cc +++ b/mts/src/model/AddWaterMarkTemplateRequest.cc @@ -33,7 +33,7 @@ long AddWaterMarkTemplateRequest::getResourceOwnerId()const void AddWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddWaterMarkTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddWaterMarkTemplateRequest::getResourceOwnerAccount()const void AddWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddWaterMarkTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddWaterMarkTemplateRequest::getOwnerAccount()const void AddWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddWaterMarkTemplateRequest::getName()const @@ -66,7 +66,7 @@ std::string AddWaterMarkTemplateRequest::getName()const void AddWaterMarkTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long AddWaterMarkTemplateRequest::getOwnerId()const @@ -77,7 +77,7 @@ long AddWaterMarkTemplateRequest::getOwnerId()const void AddWaterMarkTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddWaterMarkTemplateRequest::getConfig()const @@ -88,7 +88,7 @@ std::string AddWaterMarkTemplateRequest::getConfig()const void AddWaterMarkTemplateRequest::setConfig(const std::string& config) { config_ = config; - setParameter("Config", config); + setCoreParameter("Config", config); } std::string AddWaterMarkTemplateRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string AddWaterMarkTemplateRequest::getAccessKeyId()const void AddWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/AddWaterMarkTemplateResult.cc b/mts/src/model/AddWaterMarkTemplateResult.cc index e2e203c8c..caa30bab2 100644 --- a/mts/src/model/AddWaterMarkTemplateResult.cc +++ b/mts/src/model/AddWaterMarkTemplateResult.cc @@ -35,10 +35,13 @@ AddWaterMarkTemplateResult::~AddWaterMarkTemplateResult() void AddWaterMarkTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto waterMarkTemplateNode = value["WaterMarkTemplate"]; if(!waterMarkTemplateNode["Id"].isNull()) diff --git a/mts/src/model/BindInputBucketRequest.cc b/mts/src/model/BindInputBucketRequest.cc index d05981287..44ce98c55 100644 --- a/mts/src/model/BindInputBucketRequest.cc +++ b/mts/src/model/BindInputBucketRequest.cc @@ -33,7 +33,7 @@ std::string BindInputBucketRequest::getBucket()const void BindInputBucketRequest::setBucket(const std::string& bucket) { bucket_ = bucket; - setParameter("Bucket", bucket); + setCoreParameter("Bucket", bucket); } long BindInputBucketRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long BindInputBucketRequest::getResourceOwnerId()const void BindInputBucketRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BindInputBucketRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string BindInputBucketRequest::getResourceOwnerAccount()const void BindInputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string BindInputBucketRequest::getRoleArn()const @@ -66,7 +66,7 @@ std::string BindInputBucketRequest::getRoleArn()const void BindInputBucketRequest::setRoleArn(const std::string& roleArn) { roleArn_ = roleArn; - setParameter("RoleArn", roleArn); + setCoreParameter("RoleArn", roleArn); } std::string BindInputBucketRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string BindInputBucketRequest::getOwnerAccount()const void BindInputBucketRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long BindInputBucketRequest::getOwnerId()const @@ -88,7 +88,7 @@ long BindInputBucketRequest::getOwnerId()const void BindInputBucketRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string BindInputBucketRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string BindInputBucketRequest::getAccessKeyId()const void BindInputBucketRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/BindInputBucketResult.cc b/mts/src/model/BindInputBucketResult.cc index 1d6913b76..411fb0b87 100644 --- a/mts/src/model/BindInputBucketResult.cc +++ b/mts/src/model/BindInputBucketResult.cc @@ -35,10 +35,13 @@ BindInputBucketResult::~BindInputBucketResult() void BindInputBucketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/BindOutputBucketRequest.cc b/mts/src/model/BindOutputBucketRequest.cc index 66f71f2f2..39942b688 100644 --- a/mts/src/model/BindOutputBucketRequest.cc +++ b/mts/src/model/BindOutputBucketRequest.cc @@ -33,7 +33,7 @@ std::string BindOutputBucketRequest::getBucket()const void BindOutputBucketRequest::setBucket(const std::string& bucket) { bucket_ = bucket; - setParameter("Bucket", bucket); + setCoreParameter("Bucket", bucket); } long BindOutputBucketRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long BindOutputBucketRequest::getResourceOwnerId()const void BindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BindOutputBucketRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string BindOutputBucketRequest::getResourceOwnerAccount()const void BindOutputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string BindOutputBucketRequest::getRoleArn()const @@ -66,7 +66,7 @@ std::string BindOutputBucketRequest::getRoleArn()const void BindOutputBucketRequest::setRoleArn(const std::string& roleArn) { roleArn_ = roleArn; - setParameter("RoleArn", roleArn); + setCoreParameter("RoleArn", roleArn); } std::string BindOutputBucketRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string BindOutputBucketRequest::getOwnerAccount()const void BindOutputBucketRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long BindOutputBucketRequest::getOwnerId()const @@ -88,7 +88,7 @@ long BindOutputBucketRequest::getOwnerId()const void BindOutputBucketRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string BindOutputBucketRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string BindOutputBucketRequest::getAccessKeyId()const void BindOutputBucketRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/BindOutputBucketResult.cc b/mts/src/model/BindOutputBucketResult.cc index 9704c0868..a997f930a 100644 --- a/mts/src/model/BindOutputBucketResult.cc +++ b/mts/src/model/BindOutputBucketResult.cc @@ -35,10 +35,13 @@ BindOutputBucketResult::~BindOutputBucketResult() void BindOutputBucketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/CancelJobRequest.cc b/mts/src/model/CancelJobRequest.cc index ac9a4801a..53a68dad8 100644 --- a/mts/src/model/CancelJobRequest.cc +++ b/mts/src/model/CancelJobRequest.cc @@ -33,7 +33,7 @@ std::string CancelJobRequest::getJobId()const void CancelJobRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long CancelJobRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CancelJobRequest::getResourceOwnerId()const void CancelJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CancelJobRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CancelJobRequest::getResourceOwnerAccount()const void CancelJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CancelJobRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string CancelJobRequest::getOwnerAccount()const void CancelJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CancelJobRequest::getOwnerId()const @@ -77,7 +77,7 @@ long CancelJobRequest::getOwnerId()const void CancelJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CancelJobRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string CancelJobRequest::getAccessKeyId()const void CancelJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/CancelJobResult.cc b/mts/src/model/CancelJobResult.cc index f62fef1ba..6c5221dfb 100644 --- a/mts/src/model/CancelJobResult.cc +++ b/mts/src/model/CancelJobResult.cc @@ -35,10 +35,13 @@ CancelJobResult::~CancelJobResult() void CancelJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/CategoryTreeRequest.cc b/mts/src/model/CategoryTreeRequest.cc index 8c1a665a6..7b998b1cc 100644 --- a/mts/src/model/CategoryTreeRequest.cc +++ b/mts/src/model/CategoryTreeRequest.cc @@ -33,7 +33,7 @@ long CategoryTreeRequest::getResourceOwnerId()const void CategoryTreeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CategoryTreeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CategoryTreeRequest::getResourceOwnerAccount()const void CategoryTreeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CategoryTreeRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string CategoryTreeRequest::getOwnerAccount()const void CategoryTreeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CategoryTreeRequest::getOwnerId()const @@ -66,7 +66,7 @@ long CategoryTreeRequest::getOwnerId()const void CategoryTreeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CategoryTreeRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string CategoryTreeRequest::getAccessKeyId()const void CategoryTreeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/CategoryTreeResult.cc b/mts/src/model/CategoryTreeResult.cc index 54c56811e..c81a5f807 100644 --- a/mts/src/model/CategoryTreeResult.cc +++ b/mts/src/model/CategoryTreeResult.cc @@ -35,10 +35,13 @@ CategoryTreeResult::~CategoryTreeResult() void CategoryTreeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CategoryTree"].isNull()) categoryTree_ = value["CategoryTree"].asString(); diff --git a/mts/src/model/CheckResourceRequest.cc b/mts/src/model/CheckResourceRequest.cc index 604951457..ab183159d 100644 --- a/mts/src/model/CheckResourceRequest.cc +++ b/mts/src/model/CheckResourceRequest.cc @@ -33,7 +33,7 @@ std::string CheckResourceRequest::getCountry()const void CheckResourceRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } long CheckResourceRequest::getHid()const @@ -44,7 +44,7 @@ long CheckResourceRequest::getHid()const void CheckResourceRequest::setHid(long hid) { hid_ = hid; - setParameter("Hid", std::to_string(hid)); + setCoreParameter("Hid", std::to_string(hid)); } long CheckResourceRequest::getLevel()const @@ -55,7 +55,7 @@ long CheckResourceRequest::getLevel()const void CheckResourceRequest::setLevel(long level) { level_ = level; - setParameter("Level", std::to_string(level)); + setCoreParameter("Level", std::to_string(level)); } std::string CheckResourceRequest::getInvoker()const @@ -66,7 +66,7 @@ std::string CheckResourceRequest::getInvoker()const void CheckResourceRequest::setInvoker(const std::string& invoker) { invoker_ = invoker; - setParameter("Invoker", invoker); + setCoreParameter("Invoker", invoker); } std::string CheckResourceRequest::getMessage()const @@ -77,7 +77,7 @@ std::string CheckResourceRequest::getMessage()const void CheckResourceRequest::setMessage(const std::string& message) { message_ = message; - setParameter("Message", message); + setCoreParameter("Message", message); } std::string CheckResourceRequest::getUrl()const @@ -88,7 +88,7 @@ std::string CheckResourceRequest::getUrl()const void CheckResourceRequest::setUrl(const std::string& url) { url_ = url; - setParameter("Url", url); + setCoreParameter("Url", url); } bool CheckResourceRequest::getSuccess()const @@ -99,7 +99,7 @@ bool CheckResourceRequest::getSuccess()const void CheckResourceRequest::setSuccess(bool success) { success_ = success; - setParameter("Success", success ? "true" : "false"); + setCoreParameter("Success", success ? "true" : "false"); } bool CheckResourceRequest::getInterrupt()const @@ -110,7 +110,7 @@ bool CheckResourceRequest::getInterrupt()const void CheckResourceRequest::setInterrupt(bool interrupt) { interrupt_ = interrupt; - setParameter("Interrupt", interrupt ? "true" : "false"); + setCoreParameter("Interrupt", interrupt ? "true" : "false"); } std::string CheckResourceRequest::getGmtWakeup()const @@ -121,7 +121,7 @@ std::string CheckResourceRequest::getGmtWakeup()const void CheckResourceRequest::setGmtWakeup(const std::string& gmtWakeup) { gmtWakeup_ = gmtWakeup; - setParameter("GmtWakeup", gmtWakeup); + setCoreParameter("GmtWakeup", gmtWakeup); } std::string CheckResourceRequest::getPk()const @@ -132,7 +132,7 @@ std::string CheckResourceRequest::getPk()const void CheckResourceRequest::setPk(const std::string& pk) { pk_ = pk; - setParameter("Pk", pk); + setCoreParameter("Pk", pk); } std::string CheckResourceRequest::getBid()const @@ -143,7 +143,7 @@ std::string CheckResourceRequest::getBid()const void CheckResourceRequest::setBid(const std::string& bid) { bid_ = bid; - setParameter("Bid", bid); + setCoreParameter("Bid", bid); } std::string CheckResourceRequest::getPrompt()const @@ -154,7 +154,7 @@ std::string CheckResourceRequest::getPrompt()const void CheckResourceRequest::setPrompt(const std::string& prompt) { prompt_ = prompt; - setParameter("Prompt", prompt); + setCoreParameter("Prompt", prompt); } std::string CheckResourceRequest::getTaskExtraData()const @@ -165,7 +165,7 @@ std::string CheckResourceRequest::getTaskExtraData()const void CheckResourceRequest::setTaskExtraData(const std::string& taskExtraData) { taskExtraData_ = taskExtraData; - setParameter("TaskExtraData", taskExtraData); + setCoreParameter("TaskExtraData", taskExtraData); } std::string CheckResourceRequest::getTaskIdentifier()const @@ -176,6 +176,6 @@ std::string CheckResourceRequest::getTaskIdentifier()const void CheckResourceRequest::setTaskIdentifier(const std::string& taskIdentifier) { taskIdentifier_ = taskIdentifier; - setParameter("TaskIdentifier", taskIdentifier); + setCoreParameter("TaskIdentifier", taskIdentifier); } diff --git a/mts/src/model/CheckResourceResult.cc b/mts/src/model/CheckResourceResult.cc index b513bca07..1849808be 100644 --- a/mts/src/model/CheckResourceResult.cc +++ b/mts/src/model/CheckResourceResult.cc @@ -35,10 +35,13 @@ CheckResourceResult::~CheckResourceResult() void CheckResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Interrupt"].isNull()) interrupt_ = value["Interrupt"].asString() == "true"; diff --git a/mts/src/model/CreateMcuTemplateRequest.cc b/mts/src/model/CreateMcuTemplateRequest.cc index 248a66a62..822955509 100644 --- a/mts/src/model/CreateMcuTemplateRequest.cc +++ b/mts/src/model/CreateMcuTemplateRequest.cc @@ -33,7 +33,7 @@ std::string CreateMcuTemplateRequest::get_Template()const void CreateMcuTemplateRequest::set_Template(const std::string& _template) { _template_ = _template; - setParameter("_Template", _template); + setCoreParameter("_Template", _template); } long CreateMcuTemplateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateMcuTemplateRequest::getResourceOwnerId()const void CreateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateMcuTemplateRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateMcuTemplateRequest::getResourceOwnerAccount()const void CreateMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateMcuTemplateRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateMcuTemplateRequest::getOwnerAccount()const void CreateMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateMcuTemplateRequest::getOwnerId()const @@ -77,7 +77,7 @@ long CreateMcuTemplateRequest::getOwnerId()const void CreateMcuTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateMcuTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string CreateMcuTemplateRequest::getAccessKeyId()const void CreateMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/CreateMcuTemplateResult.cc b/mts/src/model/CreateMcuTemplateResult.cc index 630a0143c..775099401 100644 --- a/mts/src/model/CreateMcuTemplateResult.cc +++ b/mts/src/model/CreateMcuTemplateResult.cc @@ -35,10 +35,13 @@ CreateMcuTemplateResult::~CreateMcuTemplateResult() void CreateMcuTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/mts/src/model/CreateSessionRequest.cc b/mts/src/model/CreateSessionRequest.cc index d9f9c3967..e7f05d837 100644 --- a/mts/src/model/CreateSessionRequest.cc +++ b/mts/src/model/CreateSessionRequest.cc @@ -33,7 +33,7 @@ std::string CreateSessionRequest::getResourceOwnerId()const void CreateSessionRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } int CreateSessionRequest::getSessionTime()const @@ -44,7 +44,7 @@ int CreateSessionRequest::getSessionTime()const void CreateSessionRequest::setSessionTime(int sessionTime) { sessionTime_ = sessionTime; - setParameter("SessionTime", std::to_string(sessionTime)); + setCoreParameter("SessionTime", std::to_string(sessionTime)); } std::string CreateSessionRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateSessionRequest::getResourceOwnerAccount()const void CreateSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateSessionRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateSessionRequest::getOwnerAccount()const void CreateSessionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateSessionRequest::getEndUserId()const @@ -77,7 +77,7 @@ std::string CreateSessionRequest::getEndUserId()const void CreateSessionRequest::setEndUserId(const std::string& endUserId) { endUserId_ = endUserId; - setParameter("EndUserId", endUserId); + setCoreParameter("EndUserId", endUserId); } std::string CreateSessionRequest::getOwnerId()const @@ -88,7 +88,7 @@ std::string CreateSessionRequest::getOwnerId()const void CreateSessionRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string CreateSessionRequest::getMediaId()const @@ -99,7 +99,7 @@ std::string CreateSessionRequest::getMediaId()const void CreateSessionRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string CreateSessionRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string CreateSessionRequest::getAccessKeyId()const void CreateSessionRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/CreateSessionResult.cc b/mts/src/model/CreateSessionResult.cc index 6506c553d..d807f0c90 100644 --- a/mts/src/model/CreateSessionResult.cc +++ b/mts/src/model/CreateSessionResult.cc @@ -35,10 +35,13 @@ CreateSessionResult::~CreateSessionResult() void CreateSessionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SessionId"].isNull()) sessionId_ = value["SessionId"].asString(); diff --git a/mts/src/model/DeactivateMediaWorkflowRequest.cc b/mts/src/model/DeactivateMediaWorkflowRequest.cc index 099507c48..212996552 100644 --- a/mts/src/model/DeactivateMediaWorkflowRequest.cc +++ b/mts/src/model/DeactivateMediaWorkflowRequest.cc @@ -33,7 +33,7 @@ long DeactivateMediaWorkflowRequest::getResourceOwnerId()const void DeactivateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeactivateMediaWorkflowRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeactivateMediaWorkflowRequest::getResourceOwnerAccount()const void DeactivateMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeactivateMediaWorkflowRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeactivateMediaWorkflowRequest::getOwnerAccount()const void DeactivateMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeactivateMediaWorkflowRequest::getMediaWorkflowId()const @@ -66,7 +66,7 @@ std::string DeactivateMediaWorkflowRequest::getMediaWorkflowId()const void DeactivateMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) { mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); + setCoreParameter("MediaWorkflowId", mediaWorkflowId); } long DeactivateMediaWorkflowRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeactivateMediaWorkflowRequest::getOwnerId()const void DeactivateMediaWorkflowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeactivateMediaWorkflowRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeactivateMediaWorkflowRequest::getAccessKeyId()const void DeactivateMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeactivateMediaWorkflowResult.cc b/mts/src/model/DeactivateMediaWorkflowResult.cc index cf7afd394..ce74e09e0 100644 --- a/mts/src/model/DeactivateMediaWorkflowResult.cc +++ b/mts/src/model/DeactivateMediaWorkflowResult.cc @@ -35,10 +35,13 @@ DeactivateMediaWorkflowResult::~DeactivateMediaWorkflowResult() void DeactivateMediaWorkflowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) diff --git a/mts/src/model/DecryptKeyRequest.cc b/mts/src/model/DecryptKeyRequest.cc index 546177bdc..4df66da00 100644 --- a/mts/src/model/DecryptKeyRequest.cc +++ b/mts/src/model/DecryptKeyRequest.cc @@ -33,7 +33,7 @@ std::string DecryptKeyRequest::getRand()const void DecryptKeyRequest::setRand(const std::string& rand) { rand_ = rand; - setParameter("Rand", rand); + setCoreParameter("Rand", rand); } std::string DecryptKeyRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ std::string DecryptKeyRequest::getResourceOwnerId()const void DecryptKeyRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string DecryptKeyRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DecryptKeyRequest::getResourceOwnerAccount()const void DecryptKeyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DecryptKeyRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DecryptKeyRequest::getOwnerAccount()const void DecryptKeyRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DecryptKeyRequest::getOwnerId()const @@ -77,7 +77,7 @@ std::string DecryptKeyRequest::getOwnerId()const void DecryptKeyRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string DecryptKeyRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string DecryptKeyRequest::getAccessKeyId()const void DecryptKeyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DecryptKeyRequest::getCiphertextBlob()const @@ -99,6 +99,6 @@ std::string DecryptKeyRequest::getCiphertextBlob()const void DecryptKeyRequest::setCiphertextBlob(const std::string& ciphertextBlob) { ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); + setCoreParameter("CiphertextBlob", ciphertextBlob); } diff --git a/mts/src/model/DecryptKeyResult.cc b/mts/src/model/DecryptKeyResult.cc index 914af308b..e570af9f4 100644 --- a/mts/src/model/DecryptKeyResult.cc +++ b/mts/src/model/DecryptKeyResult.cc @@ -35,10 +35,13 @@ DecryptKeyResult::~DecryptKeyResult() void DecryptKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Plaintext"].isNull()) plaintext_ = value["Plaintext"].asString(); diff --git a/mts/src/model/DeleteCategoryRequest.cc b/mts/src/model/DeleteCategoryRequest.cc index e4c829017..545ed803d 100644 --- a/mts/src/model/DeleteCategoryRequest.cc +++ b/mts/src/model/DeleteCategoryRequest.cc @@ -33,7 +33,7 @@ long DeleteCategoryRequest::getResourceOwnerId()const void DeleteCategoryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCategoryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteCategoryRequest::getResourceOwnerAccount()const void DeleteCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long DeleteCategoryRequest::getCateId()const @@ -55,7 +55,7 @@ long DeleteCategoryRequest::getCateId()const void DeleteCategoryRequest::setCateId(long cateId) { cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); + setCoreParameter("CateId", std::to_string(cateId)); } std::string DeleteCategoryRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteCategoryRequest::getOwnerAccount()const void DeleteCategoryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteCategoryRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeleteCategoryRequest::getOwnerId()const void DeleteCategoryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteCategoryRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteCategoryRequest::getAccessKeyId()const void DeleteCategoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteCategoryResult.cc b/mts/src/model/DeleteCategoryResult.cc index d42d9b733..8b457ec14 100644 --- a/mts/src/model/DeleteCategoryResult.cc +++ b/mts/src/model/DeleteCategoryResult.cc @@ -35,10 +35,13 @@ DeleteCategoryResult::~DeleteCategoryResult() void DeleteCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/DeleteMCTemplateRequest.cc b/mts/src/model/DeleteMCTemplateRequest.cc index bff8b792d..8424ef70a 100644 --- a/mts/src/model/DeleteMCTemplateRequest.cc +++ b/mts/src/model/DeleteMCTemplateRequest.cc @@ -33,7 +33,7 @@ long DeleteMCTemplateRequest::getResourceOwnerId()const void DeleteMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMCTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteMCTemplateRequest::getResourceOwnerAccount()const void DeleteMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMCTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteMCTemplateRequest::getOwnerAccount()const void DeleteMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteMCTemplateRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DeleteMCTemplateRequest::getOwnerId()const void DeleteMCTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMCTemplateRequest::getTemplateId()const @@ -77,7 +77,7 @@ std::string DeleteMCTemplateRequest::getTemplateId()const void DeleteMCTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string DeleteMCTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteMCTemplateRequest::getAccessKeyId()const void DeleteMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteMCTemplateResult.cc b/mts/src/model/DeleteMCTemplateResult.cc index d108e42c0..19b88264b 100644 --- a/mts/src/model/DeleteMCTemplateResult.cc +++ b/mts/src/model/DeleteMCTemplateResult.cc @@ -35,10 +35,13 @@ DeleteMCTemplateResult::~DeleteMCTemplateResult() void DeleteMCTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/mts/src/model/DeleteMcuJobRequest.cc b/mts/src/model/DeleteMcuJobRequest.cc index e3f7693de..acb5f370d 100644 --- a/mts/src/model/DeleteMcuJobRequest.cc +++ b/mts/src/model/DeleteMcuJobRequest.cc @@ -33,7 +33,7 @@ long DeleteMcuJobRequest::getResourceOwnerId()const void DeleteMcuJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMcuJobRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteMcuJobRequest::getResourceOwnerAccount()const void DeleteMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMcuJobRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteMcuJobRequest::getOwnerAccount()const void DeleteMcuJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteMcuJobRequest::getJobIds()const @@ -66,7 +66,7 @@ std::string DeleteMcuJobRequest::getJobIds()const void DeleteMcuJobRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } long DeleteMcuJobRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeleteMcuJobRequest::getOwnerId()const void DeleteMcuJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMcuJobRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteMcuJobRequest::getAccessKeyId()const void DeleteMcuJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteMcuJobResult.cc b/mts/src/model/DeleteMcuJobResult.cc index 04b545c0d..54fd24f61 100644 --- a/mts/src/model/DeleteMcuJobResult.cc +++ b/mts/src/model/DeleteMcuJobResult.cc @@ -35,10 +35,13 @@ DeleteMcuJobResult::~DeleteMcuJobResult() void DeleteMcuJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistJobIds = value["NonExistJobIds"]["String"]; for (const auto &item : allNonExistJobIds) diff --git a/mts/src/model/DeleteMcuTemplateRequest.cc b/mts/src/model/DeleteMcuTemplateRequest.cc index 97f12eecc..b2bfd357f 100644 --- a/mts/src/model/DeleteMcuTemplateRequest.cc +++ b/mts/src/model/DeleteMcuTemplateRequest.cc @@ -33,7 +33,7 @@ long DeleteMcuTemplateRequest::getResourceOwnerId()const void DeleteMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMcuTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteMcuTemplateRequest::getResourceOwnerAccount()const void DeleteMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMcuTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteMcuTemplateRequest::getOwnerAccount()const void DeleteMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteMcuTemplateRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DeleteMcuTemplateRequest::getOwnerId()const void DeleteMcuTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMcuTemplateRequest::getTemplateId()const @@ -77,7 +77,7 @@ std::string DeleteMcuTemplateRequest::getTemplateId()const void DeleteMcuTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string DeleteMcuTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteMcuTemplateRequest::getAccessKeyId()const void DeleteMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteMcuTemplateResult.cc b/mts/src/model/DeleteMcuTemplateResult.cc index 250983dbe..567ff9378 100644 --- a/mts/src/model/DeleteMcuTemplateResult.cc +++ b/mts/src/model/DeleteMcuTemplateResult.cc @@ -35,10 +35,13 @@ DeleteMcuTemplateResult::~DeleteMcuTemplateResult() void DeleteMcuTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/mts/src/model/DeleteMediaRequest.cc b/mts/src/model/DeleteMediaRequest.cc index 8cd455e96..c4cf8ba58 100644 --- a/mts/src/model/DeleteMediaRequest.cc +++ b/mts/src/model/DeleteMediaRequest.cc @@ -33,7 +33,7 @@ long DeleteMediaRequest::getResourceOwnerId()const void DeleteMediaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMediaRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteMediaRequest::getResourceOwnerAccount()const void DeleteMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMediaRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteMediaRequest::getOwnerAccount()const void DeleteMediaRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteMediaRequest::getMediaIds()const @@ -66,7 +66,7 @@ std::string DeleteMediaRequest::getMediaIds()const void DeleteMediaRequest::setMediaIds(const std::string& mediaIds) { mediaIds_ = mediaIds; - setParameter("MediaIds", mediaIds); + setCoreParameter("MediaIds", mediaIds); } long DeleteMediaRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeleteMediaRequest::getOwnerId()const void DeleteMediaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMediaRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteMediaRequest::getAccessKeyId()const void DeleteMediaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteMediaResult.cc b/mts/src/model/DeleteMediaResult.cc index d46806c65..cd9307a73 100644 --- a/mts/src/model/DeleteMediaResult.cc +++ b/mts/src/model/DeleteMediaResult.cc @@ -35,10 +35,13 @@ DeleteMediaResult::~DeleteMediaResult() void DeleteMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/DeleteMediaTagRequest.cc b/mts/src/model/DeleteMediaTagRequest.cc index af9829e5d..f2104e9e8 100644 --- a/mts/src/model/DeleteMediaTagRequest.cc +++ b/mts/src/model/DeleteMediaTagRequest.cc @@ -33,7 +33,7 @@ long DeleteMediaTagRequest::getResourceOwnerId()const void DeleteMediaTagRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMediaTagRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteMediaTagRequest::getResourceOwnerAccount()const void DeleteMediaTagRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMediaTagRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteMediaTagRequest::getOwnerAccount()const void DeleteMediaTagRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteMediaTagRequest::getTag()const @@ -66,7 +66,7 @@ std::string DeleteMediaTagRequest::getTag()const void DeleteMediaTagRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } long DeleteMediaTagRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeleteMediaTagRequest::getOwnerId()const void DeleteMediaTagRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMediaTagRequest::getMediaId()const @@ -88,7 +88,7 @@ std::string DeleteMediaTagRequest::getMediaId()const void DeleteMediaTagRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string DeleteMediaTagRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string DeleteMediaTagRequest::getAccessKeyId()const void DeleteMediaTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteMediaTagResult.cc b/mts/src/model/DeleteMediaTagResult.cc index c254fefc4..9a6f71165 100644 --- a/mts/src/model/DeleteMediaTagResult.cc +++ b/mts/src/model/DeleteMediaTagResult.cc @@ -35,10 +35,13 @@ DeleteMediaTagResult::~DeleteMediaTagResult() void DeleteMediaTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/DeleteMediaWorkflowRequest.cc b/mts/src/model/DeleteMediaWorkflowRequest.cc index e7389a459..7541aa8dd 100644 --- a/mts/src/model/DeleteMediaWorkflowRequest.cc +++ b/mts/src/model/DeleteMediaWorkflowRequest.cc @@ -33,7 +33,7 @@ long DeleteMediaWorkflowRequest::getResourceOwnerId()const void DeleteMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMediaWorkflowRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteMediaWorkflowRequest::getResourceOwnerAccount()const void DeleteMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMediaWorkflowRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteMediaWorkflowRequest::getOwnerAccount()const void DeleteMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteMediaWorkflowRequest::getMediaWorkflowId()const @@ -66,7 +66,7 @@ std::string DeleteMediaWorkflowRequest::getMediaWorkflowId()const void DeleteMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) { mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); + setCoreParameter("MediaWorkflowId", mediaWorkflowId); } long DeleteMediaWorkflowRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeleteMediaWorkflowRequest::getOwnerId()const void DeleteMediaWorkflowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMediaWorkflowRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteMediaWorkflowRequest::getAccessKeyId()const void DeleteMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteMediaWorkflowResult.cc b/mts/src/model/DeleteMediaWorkflowResult.cc index 6e94cc0e9..e049f99f1 100644 --- a/mts/src/model/DeleteMediaWorkflowResult.cc +++ b/mts/src/model/DeleteMediaWorkflowResult.cc @@ -35,10 +35,13 @@ DeleteMediaWorkflowResult::~DeleteMediaWorkflowResult() void DeleteMediaWorkflowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) diff --git a/mts/src/model/DeletePipelineRequest.cc b/mts/src/model/DeletePipelineRequest.cc index ae0f5adc9..232c08571 100644 --- a/mts/src/model/DeletePipelineRequest.cc +++ b/mts/src/model/DeletePipelineRequest.cc @@ -33,7 +33,7 @@ long DeletePipelineRequest::getResourceOwnerId()const void DeletePipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeletePipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeletePipelineRequest::getResourceOwnerAccount()const void DeletePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeletePipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeletePipelineRequest::getOwnerAccount()const void DeletePipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeletePipelineRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DeletePipelineRequest::getOwnerId()const void DeletePipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeletePipelineRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string DeletePipelineRequest::getAccessKeyId()const void DeletePipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeletePipelineRequest::getPipelineId()const @@ -88,6 +88,6 @@ std::string DeletePipelineRequest::getPipelineId()const void DeletePipelineRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/DeletePipelineResult.cc b/mts/src/model/DeletePipelineResult.cc index 362a0a4d0..f6ac87ae2 100644 --- a/mts/src/model/DeletePipelineResult.cc +++ b/mts/src/model/DeletePipelineResult.cc @@ -35,10 +35,13 @@ DeletePipelineResult::~DeletePipelineResult() void DeletePipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PipelineId"].isNull()) pipelineId_ = value["PipelineId"].asString(); diff --git a/mts/src/model/DeleteTemplateRequest.cc b/mts/src/model/DeleteTemplateRequest.cc index 4737d0c70..ab333d16b 100644 --- a/mts/src/model/DeleteTemplateRequest.cc +++ b/mts/src/model/DeleteTemplateRequest.cc @@ -33,7 +33,7 @@ long DeleteTemplateRequest::getResourceOwnerId()const void DeleteTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteTemplateRequest::getResourceOwnerAccount()const void DeleteTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteTemplateRequest::getOwnerAccount()const void DeleteTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteTemplateRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DeleteTemplateRequest::getOwnerId()const void DeleteTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteTemplateRequest::getTemplateId()const @@ -77,7 +77,7 @@ std::string DeleteTemplateRequest::getTemplateId()const void DeleteTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string DeleteTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteTemplateRequest::getAccessKeyId()const void DeleteTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteTemplateResult.cc b/mts/src/model/DeleteTemplateResult.cc index fd05abcab..7cb251356 100644 --- a/mts/src/model/DeleteTemplateResult.cc +++ b/mts/src/model/DeleteTemplateResult.cc @@ -35,10 +35,13 @@ DeleteTemplateResult::~DeleteTemplateResult() void DeleteTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/mts/src/model/DeleteWaterMarkTemplateRequest.cc b/mts/src/model/DeleteWaterMarkTemplateRequest.cc index 62f8de8f5..64568d94d 100644 --- a/mts/src/model/DeleteWaterMarkTemplateRequest.cc +++ b/mts/src/model/DeleteWaterMarkTemplateRequest.cc @@ -33,7 +33,7 @@ long DeleteWaterMarkTemplateRequest::getResourceOwnerId()const void DeleteWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteWaterMarkTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteWaterMarkTemplateRequest::getResourceOwnerAccount()const void DeleteWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteWaterMarkTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteWaterMarkTemplateRequest::getOwnerAccount()const void DeleteWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteWaterMarkTemplateRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DeleteWaterMarkTemplateRequest::getOwnerId()const void DeleteWaterMarkTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteWaterMarkTemplateRequest::getWaterMarkTemplateId()const @@ -77,7 +77,7 @@ std::string DeleteWaterMarkTemplateRequest::getWaterMarkTemplateId()const void DeleteWaterMarkTemplateRequest::setWaterMarkTemplateId(const std::string& waterMarkTemplateId) { waterMarkTemplateId_ = waterMarkTemplateId; - setParameter("WaterMarkTemplateId", waterMarkTemplateId); + setCoreParameter("WaterMarkTemplateId", waterMarkTemplateId); } std::string DeleteWaterMarkTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string DeleteWaterMarkTemplateRequest::getAccessKeyId()const void DeleteWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/DeleteWaterMarkTemplateResult.cc b/mts/src/model/DeleteWaterMarkTemplateResult.cc index 143b2725f..5fb05dae8 100644 --- a/mts/src/model/DeleteWaterMarkTemplateResult.cc +++ b/mts/src/model/DeleteWaterMarkTemplateResult.cc @@ -35,10 +35,13 @@ DeleteWaterMarkTemplateResult::~DeleteWaterMarkTemplateResult() void DeleteWaterMarkTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["WaterMarkTemplateId"].isNull()) waterMarkTemplateId_ = value["WaterMarkTemplateId"].asString(); diff --git a/mts/src/model/DescribeMtsUserResourcePackageRequest.cc b/mts/src/model/DescribeMtsUserResourcePackageRequest.cc new file mode 100644 index 000000000..1cb2493c5 --- /dev/null +++ b/mts/src/model/DescribeMtsUserResourcePackageRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts::Model::DescribeMtsUserResourcePackageRequest; + +DescribeMtsUserResourcePackageRequest::DescribeMtsUserResourcePackageRequest() : + RpcServiceRequest("mts", "2014-06-18", "DescribeMtsUserResourcePackage") +{} + +DescribeMtsUserResourcePackageRequest::~DescribeMtsUserResourcePackageRequest() +{} + +std::string DescribeMtsUserResourcePackageRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeMtsUserResourcePackageRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +long DescribeMtsUserResourcePackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeMtsUserResourcePackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/mts/src/model/DescribeMtsUserResourcePackageResult.cc b/mts/src/model/DescribeMtsUserResourcePackageResult.cc new file mode 100644 index 000000000..da607d746 --- /dev/null +++ b/mts/src/model/DescribeMtsUserResourcePackageResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +DescribeMtsUserResourcePackageResult::DescribeMtsUserResourcePackageResult() : + ServiceResult() +{} + +DescribeMtsUserResourcePackageResult::DescribeMtsUserResourcePackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMtsUserResourcePackageResult::~DescribeMtsUserResourcePackageResult() +{} + +void DescribeMtsUserResourcePackageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allResourcePackageInfos = value["ResourcePackageInfos"]["ResourcePackageInfo"]; + for (auto value : allResourcePackageInfos) + { + ResourcePackageInfo resourcePackageInfosObject; + if(!value["CurrCapacity"].isNull()) + resourcePackageInfosObject.currCapacity = value["CurrCapacity"].asString(); + if(!value["InitCapacity"].isNull()) + resourcePackageInfosObject.initCapacity = value["InitCapacity"].asString(); + if(!value["CommodityCode"].isNull()) + resourcePackageInfosObject.commodityCode = value["CommodityCode"].asString(); + if(!value["DisplayName"].isNull()) + resourcePackageInfosObject.displayName = value["DisplayName"].asString(); + if(!value["InstanceId"].isNull()) + resourcePackageInfosObject.instanceId = value["InstanceId"].asString(); + if(!value["Status"].isNull()) + resourcePackageInfosObject.status = value["Status"].asString(); + resourcePackageInfos_.push_back(resourcePackageInfosObject); + } + +} + +std::vector DescribeMtsUserResourcePackageResult::getResourcePackageInfos()const +{ + return resourcePackageInfos_; +} + diff --git a/mts/src/model/GetLicenseRequest.cc b/mts/src/model/GetLicenseRequest.cc index 6555f1872..9d03fb6bb 100644 --- a/mts/src/model/GetLicenseRequest.cc +++ b/mts/src/model/GetLicenseRequest.cc @@ -33,7 +33,7 @@ std::string GetLicenseRequest::getResourceOwnerId()const void GetLicenseRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string GetLicenseRequest::getData()const @@ -44,7 +44,7 @@ std::string GetLicenseRequest::getData()const void GetLicenseRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string GetLicenseRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string GetLicenseRequest::getResourceOwnerAccount()const void GetLicenseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string GetLicenseRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string GetLicenseRequest::getOwnerAccount()const void GetLicenseRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string GetLicenseRequest::getHeader()const @@ -77,7 +77,7 @@ std::string GetLicenseRequest::getHeader()const void GetLicenseRequest::setHeader(const std::string& header) { header_ = header; - setParameter("Header", header); + setCoreParameter("Header", header); } std::string GetLicenseRequest::getOwnerId()const @@ -88,7 +88,7 @@ std::string GetLicenseRequest::getOwnerId()const void GetLicenseRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string GetLicenseRequest::getMediaId()const @@ -99,7 +99,7 @@ std::string GetLicenseRequest::getMediaId()const void GetLicenseRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string GetLicenseRequest::getType()const @@ -110,7 +110,7 @@ std::string GetLicenseRequest::getType()const void GetLicenseRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string GetLicenseRequest::getLicenseUrl()const @@ -121,7 +121,7 @@ std::string GetLicenseRequest::getLicenseUrl()const void GetLicenseRequest::setLicenseUrl(const std::string& licenseUrl) { licenseUrl_ = licenseUrl; - setParameter("LicenseUrl", licenseUrl); + setCoreParameter("LicenseUrl", licenseUrl); } std::string GetLicenseRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string GetLicenseRequest::getAccessKeyId()const void GetLicenseRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/GetLicenseResult.cc b/mts/src/model/GetLicenseResult.cc index 9c73d055e..08bcd7b70 100644 --- a/mts/src/model/GetLicenseResult.cc +++ b/mts/src/model/GetLicenseResult.cc @@ -35,10 +35,13 @@ GetLicenseResult::~GetLicenseResult() void GetLicenseResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["License"].isNull()) license_ = value["License"].asString(); diff --git a/mts/src/model/GetPackageRequest.cc b/mts/src/model/GetPackageRequest.cc index e3a59a0ee..350f4ea17 100644 --- a/mts/src/model/GetPackageRequest.cc +++ b/mts/src/model/GetPackageRequest.cc @@ -33,7 +33,7 @@ std::string GetPackageRequest::getResourceOwnerId()const void GetPackageRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string GetPackageRequest::getData()const @@ -44,7 +44,7 @@ std::string GetPackageRequest::getData()const void GetPackageRequest::setData(const std::string& data) { data_ = data; - setParameter("Data", data); + setCoreParameter("Data", data); } std::string GetPackageRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string GetPackageRequest::getResourceOwnerAccount()const void GetPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string GetPackageRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string GetPackageRequest::getOwnerAccount()const void GetPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string GetPackageRequest::getOwnerId()const @@ -77,7 +77,7 @@ std::string GetPackageRequest::getOwnerId()const void GetPackageRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string GetPackageRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string GetPackageRequest::getAccessKeyId()const void GetPackageRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/GetPackageResult.cc b/mts/src/model/GetPackageResult.cc index f41620c9c..ec97666f6 100644 --- a/mts/src/model/GetPackageResult.cc +++ b/mts/src/model/GetPackageResult.cc @@ -35,10 +35,13 @@ GetPackageResult::~GetPackageResult() void GetPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CertPackage"].isNull()) certPackage_ = value["CertPackage"].asString(); diff --git a/mts/src/model/ListAllCategoryRequest.cc b/mts/src/model/ListAllCategoryRequest.cc index 95f14da47..725a43e96 100644 --- a/mts/src/model/ListAllCategoryRequest.cc +++ b/mts/src/model/ListAllCategoryRequest.cc @@ -33,7 +33,7 @@ long ListAllCategoryRequest::getResourceOwnerId()const void ListAllCategoryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListAllCategoryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListAllCategoryRequest::getResourceOwnerAccount()const void ListAllCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListAllCategoryRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string ListAllCategoryRequest::getOwnerAccount()const void ListAllCategoryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListAllCategoryRequest::getOwnerId()const @@ -66,7 +66,7 @@ long ListAllCategoryRequest::getOwnerId()const void ListAllCategoryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ListAllCategoryRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string ListAllCategoryRequest::getAccessKeyId()const void ListAllCategoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListAllCategoryResult.cc b/mts/src/model/ListAllCategoryResult.cc index 952c1d628..7f41758b5 100644 --- a/mts/src/model/ListAllCategoryResult.cc +++ b/mts/src/model/ListAllCategoryResult.cc @@ -35,10 +35,13 @@ ListAllCategoryResult::~ListAllCategoryResult() void ListAllCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCategoryList = value["CategoryList"]["Category"]; for (auto value : allCategoryList) diff --git a/mts/src/model/ListAllMediaBucketRequest.cc b/mts/src/model/ListAllMediaBucketRequest.cc index 40f23386a..3cde84692 100644 --- a/mts/src/model/ListAllMediaBucketRequest.cc +++ b/mts/src/model/ListAllMediaBucketRequest.cc @@ -33,7 +33,7 @@ long ListAllMediaBucketRequest::getResourceOwnerId()const void ListAllMediaBucketRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListAllMediaBucketRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListAllMediaBucketRequest::getResourceOwnerAccount()const void ListAllMediaBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListAllMediaBucketRequest::getNextPageToken()const @@ -55,7 +55,7 @@ std::string ListAllMediaBucketRequest::getNextPageToken()const void ListAllMediaBucketRequest::setNextPageToken(const std::string& nextPageToken) { nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); + setCoreParameter("NextPageToken", nextPageToken); } std::string ListAllMediaBucketRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ListAllMediaBucketRequest::getOwnerAccount()const void ListAllMediaBucketRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int ListAllMediaBucketRequest::getMaximumPageSize()const @@ -77,7 +77,7 @@ int ListAllMediaBucketRequest::getMaximumPageSize()const void ListAllMediaBucketRequest::setMaximumPageSize(int maximumPageSize) { maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } long ListAllMediaBucketRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ListAllMediaBucketRequest::getOwnerId()const void ListAllMediaBucketRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ListAllMediaBucketRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListAllMediaBucketRequest::getAccessKeyId()const void ListAllMediaBucketRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListAllMediaBucketResult.cc b/mts/src/model/ListAllMediaBucketResult.cc index c9ee3b527..7e80f20a9 100644 --- a/mts/src/model/ListAllMediaBucketResult.cc +++ b/mts/src/model/ListAllMediaBucketResult.cc @@ -35,10 +35,13 @@ ListAllMediaBucketResult::~ListAllMediaBucketResult() void ListAllMediaBucketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaBucketList = value["MediaBucketList"]["MediaBucket"]; for (auto value : allMediaBucketList) diff --git a/mts/src/model/ListAsrPipelineRequest.cc b/mts/src/model/ListAsrPipelineRequest.cc index a981a46c8..a09ff2cd8 100644 --- a/mts/src/model/ListAsrPipelineRequest.cc +++ b/mts/src/model/ListAsrPipelineRequest.cc @@ -33,7 +33,7 @@ long ListAsrPipelineRequest::getResourceOwnerId()const void ListAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListAsrPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListAsrPipelineRequest::getResourceOwnerAccount()const void ListAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListAsrPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string ListAsrPipelineRequest::getOwnerAccount()const void ListAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListAsrPipelineRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListAsrPipelineRequest::getPageSize()const void ListAsrPipelineRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListAsrPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string ListAsrPipelineRequest::getState()const void ListAsrPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long ListAsrPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ListAsrPipelineRequest::getOwnerId()const void ListAsrPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long ListAsrPipelineRequest::getPageNumber()const @@ -99,7 +99,7 @@ long ListAsrPipelineRequest::getPageNumber()const void ListAsrPipelineRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListAsrPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListAsrPipelineRequest::getAccessKeyId()const void ListAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListAsrPipelineResult.cc b/mts/src/model/ListAsrPipelineResult.cc index 17be98863..7b3afe8d5 100644 --- a/mts/src/model/ListAsrPipelineResult.cc +++ b/mts/src/model/ListAsrPipelineResult.cc @@ -35,10 +35,13 @@ ListAsrPipelineResult::~ListAsrPipelineResult() void ListAsrPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/ListCensorPipelineRequest.cc b/mts/src/model/ListCensorPipelineRequest.cc index dc7ee777d..ae41047da 100644 --- a/mts/src/model/ListCensorPipelineRequest.cc +++ b/mts/src/model/ListCensorPipelineRequest.cc @@ -33,7 +33,7 @@ long ListCensorPipelineRequest::getResourceOwnerId()const void ListCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListCensorPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListCensorPipelineRequest::getResourceOwnerAccount()const void ListCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListCensorPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string ListCensorPipelineRequest::getOwnerAccount()const void ListCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListCensorPipelineRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListCensorPipelineRequest::getPageSize()const void ListCensorPipelineRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListCensorPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string ListCensorPipelineRequest::getState()const void ListCensorPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long ListCensorPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ListCensorPipelineRequest::getOwnerId()const void ListCensorPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long ListCensorPipelineRequest::getPageNumber()const @@ -99,7 +99,7 @@ long ListCensorPipelineRequest::getPageNumber()const void ListCensorPipelineRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListCensorPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListCensorPipelineRequest::getAccessKeyId()const void ListCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListCensorPipelineResult.cc b/mts/src/model/ListCensorPipelineResult.cc index d543c5e3e..91d8dffb0 100644 --- a/mts/src/model/ListCensorPipelineResult.cc +++ b/mts/src/model/ListCensorPipelineResult.cc @@ -35,10 +35,13 @@ ListCensorPipelineResult::~ListCensorPipelineResult() void ListCensorPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/ListCoverPipelineRequest.cc b/mts/src/model/ListCoverPipelineRequest.cc index c20d4f431..d06cb5572 100644 --- a/mts/src/model/ListCoverPipelineRequest.cc +++ b/mts/src/model/ListCoverPipelineRequest.cc @@ -33,7 +33,7 @@ long ListCoverPipelineRequest::getResourceOwnerId()const void ListCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListCoverPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListCoverPipelineRequest::getResourceOwnerAccount()const void ListCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListCoverPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string ListCoverPipelineRequest::getOwnerAccount()const void ListCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListCoverPipelineRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListCoverPipelineRequest::getPageSize()const void ListCoverPipelineRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListCoverPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string ListCoverPipelineRequest::getState()const void ListCoverPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long ListCoverPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ListCoverPipelineRequest::getOwnerId()const void ListCoverPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long ListCoverPipelineRequest::getPageNumber()const @@ -99,7 +99,7 @@ long ListCoverPipelineRequest::getPageNumber()const void ListCoverPipelineRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListCoverPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListCoverPipelineRequest::getAccessKeyId()const void ListCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListCoverPipelineResult.cc b/mts/src/model/ListCoverPipelineResult.cc index 5c5182d9f..e5e1027ea 100644 --- a/mts/src/model/ListCoverPipelineResult.cc +++ b/mts/src/model/ListCoverPipelineResult.cc @@ -35,10 +35,13 @@ ListCoverPipelineResult::~ListCoverPipelineResult() void ListCoverPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/ListJobRequest.cc b/mts/src/model/ListJobRequest.cc index c5cdecb44..05e38f42d 100644 --- a/mts/src/model/ListJobRequest.cc +++ b/mts/src/model/ListJobRequest.cc @@ -33,7 +33,7 @@ long ListJobRequest::getResourceOwnerId()const void ListJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListJobRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListJobRequest::getResourceOwnerAccount()const void ListJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListJobRequest::getNextPageToken()const @@ -55,7 +55,7 @@ std::string ListJobRequest::getNextPageToken()const void ListJobRequest::setNextPageToken(const std::string& nextPageToken) { nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); + setCoreParameter("NextPageToken", nextPageToken); } std::string ListJobRequest::getStartOfJobCreatedTimeRange()const @@ -66,7 +66,7 @@ std::string ListJobRequest::getStartOfJobCreatedTimeRange()const void ListJobRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) { startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); + setCoreParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); } std::string ListJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ListJobRequest::getOwnerAccount()const void ListJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListJobRequest::getMaximumPageSize()const @@ -88,7 +88,7 @@ long ListJobRequest::getMaximumPageSize()const void ListJobRequest::setMaximumPageSize(long maximumPageSize) { maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } std::string ListJobRequest::getState()const @@ -99,7 +99,7 @@ std::string ListJobRequest::getState()const void ListJobRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long ListJobRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ListJobRequest::getOwnerId()const void ListJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ListJobRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ListJobRequest::getAccessKeyId()const void ListJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ListJobRequest::getEndOfJobCreatedTimeRange()const @@ -132,7 +132,7 @@ std::string ListJobRequest::getEndOfJobCreatedTimeRange()const void ListJobRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) { endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); + setCoreParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); } std::string ListJobRequest::getPipelineId()const @@ -143,6 +143,6 @@ std::string ListJobRequest::getPipelineId()const void ListJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/ListJobResult.cc b/mts/src/model/ListJobResult.cc index aff604537..11bfa6ee2 100644 --- a/mts/src/model/ListJobResult.cc +++ b/mts/src/model/ListJobResult.cc @@ -35,10 +35,13 @@ ListJobResult::~ListJobResult() void ListJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/ListMediaRequest.cc b/mts/src/model/ListMediaRequest.cc index 3b15bdcf9..326e6b720 100644 --- a/mts/src/model/ListMediaRequest.cc +++ b/mts/src/model/ListMediaRequest.cc @@ -33,7 +33,7 @@ long ListMediaRequest::getResourceOwnerId()const void ListMediaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListMediaRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListMediaRequest::getResourceOwnerAccount()const void ListMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListMediaRequest::getNextPageToken()const @@ -55,7 +55,7 @@ std::string ListMediaRequest::getNextPageToken()const void ListMediaRequest::setNextPageToken(const std::string& nextPageToken) { nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); + setCoreParameter("NextPageToken", nextPageToken); } std::string ListMediaRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ListMediaRequest::getOwnerAccount()const void ListMediaRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListMediaRequest::getMaximumPageSize()const @@ -77,7 +77,7 @@ long ListMediaRequest::getMaximumPageSize()const void ListMediaRequest::setMaximumPageSize(long maximumPageSize) { maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } std::string ListMediaRequest::getFrom()const @@ -88,7 +88,7 @@ std::string ListMediaRequest::getFrom()const void ListMediaRequest::setFrom(const std::string& from) { from_ = from; - setParameter("From", from); + setCoreParameter("From", from); } std::string ListMediaRequest::getTo()const @@ -99,7 +99,7 @@ std::string ListMediaRequest::getTo()const void ListMediaRequest::setTo(const std::string& to) { to_ = to; - setParameter("To", to); + setCoreParameter("To", to); } long ListMediaRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ListMediaRequest::getOwnerId()const void ListMediaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ListMediaRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string ListMediaRequest::getAccessKeyId()const void ListMediaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListMediaResult.cc b/mts/src/model/ListMediaResult.cc index f974c4b50..21bfa58eb 100644 --- a/mts/src/model/ListMediaResult.cc +++ b/mts/src/model/ListMediaResult.cc @@ -35,10 +35,13 @@ ListMediaResult::~ListMediaResult() void ListMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaList = value["MediaList"]["Media"]; for (auto value : allMediaList) diff --git a/mts/src/model/ListMediaWorkflowExecutionsRequest.cc b/mts/src/model/ListMediaWorkflowExecutionsRequest.cc index 4cbdbd3b3..956702818 100644 --- a/mts/src/model/ListMediaWorkflowExecutionsRequest.cc +++ b/mts/src/model/ListMediaWorkflowExecutionsRequest.cc @@ -33,7 +33,7 @@ long ListMediaWorkflowExecutionsRequest::getResourceOwnerId()const void ListMediaWorkflowExecutionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListMediaWorkflowExecutionsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListMediaWorkflowExecutionsRequest::getResourceOwnerAccount()const void ListMediaWorkflowExecutionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListMediaWorkflowExecutionsRequest::getInputFileURL()const @@ -55,7 +55,7 @@ std::string ListMediaWorkflowExecutionsRequest::getInputFileURL()const void ListMediaWorkflowExecutionsRequest::setInputFileURL(const std::string& inputFileURL) { inputFileURL_ = inputFileURL; - setParameter("InputFileURL", inputFileURL); + setCoreParameter("InputFileURL", inputFileURL); } std::string ListMediaWorkflowExecutionsRequest::getNextPageToken()const @@ -66,7 +66,7 @@ std::string ListMediaWorkflowExecutionsRequest::getNextPageToken()const void ListMediaWorkflowExecutionsRequest::setNextPageToken(const std::string& nextPageToken) { nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); + setCoreParameter("NextPageToken", nextPageToken); } std::string ListMediaWorkflowExecutionsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ListMediaWorkflowExecutionsRequest::getOwnerAccount()const void ListMediaWorkflowExecutionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListMediaWorkflowExecutionsRequest::getMaximumPageSize()const @@ -88,7 +88,7 @@ long ListMediaWorkflowExecutionsRequest::getMaximumPageSize()const void ListMediaWorkflowExecutionsRequest::setMaximumPageSize(long maximumPageSize) { maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowId()const @@ -99,7 +99,7 @@ std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowId()const void ListMediaWorkflowExecutionsRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) { mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); + setCoreParameter("MediaWorkflowId", mediaWorkflowId); } long ListMediaWorkflowExecutionsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ListMediaWorkflowExecutionsRequest::getOwnerId()const void ListMediaWorkflowExecutionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowName()const @@ -121,7 +121,7 @@ std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowName()const void ListMediaWorkflowExecutionsRequest::setMediaWorkflowName(const std::string& mediaWorkflowName) { mediaWorkflowName_ = mediaWorkflowName; - setParameter("MediaWorkflowName", mediaWorkflowName); + setCoreParameter("MediaWorkflowName", mediaWorkflowName); } std::string ListMediaWorkflowExecutionsRequest::getAccessKeyId()const @@ -132,6 +132,6 @@ std::string ListMediaWorkflowExecutionsRequest::getAccessKeyId()const void ListMediaWorkflowExecutionsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListMediaWorkflowExecutionsResult.cc b/mts/src/model/ListMediaWorkflowExecutionsResult.cc index 58c1ee076..010eab286 100644 --- a/mts/src/model/ListMediaWorkflowExecutionsResult.cc +++ b/mts/src/model/ListMediaWorkflowExecutionsResult.cc @@ -35,10 +35,13 @@ ListMediaWorkflowExecutionsResult::~ListMediaWorkflowExecutionsResult() void ListMediaWorkflowExecutionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaWorkflowExecutionList = value["MediaWorkflowExecutionList"]["MediaWorkflowExecution"]; for (auto value : allMediaWorkflowExecutionList) diff --git a/mts/src/model/ListPornPipelineRequest.cc b/mts/src/model/ListPornPipelineRequest.cc index c2a1b866d..c43c0fc82 100644 --- a/mts/src/model/ListPornPipelineRequest.cc +++ b/mts/src/model/ListPornPipelineRequest.cc @@ -33,7 +33,7 @@ long ListPornPipelineRequest::getResourceOwnerId()const void ListPornPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListPornPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListPornPipelineRequest::getResourceOwnerAccount()const void ListPornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListPornPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string ListPornPipelineRequest::getOwnerAccount()const void ListPornPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListPornPipelineRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListPornPipelineRequest::getPageSize()const void ListPornPipelineRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListPornPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string ListPornPipelineRequest::getState()const void ListPornPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long ListPornPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ListPornPipelineRequest::getOwnerId()const void ListPornPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long ListPornPipelineRequest::getPageNumber()const @@ -99,7 +99,7 @@ long ListPornPipelineRequest::getPageNumber()const void ListPornPipelineRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListPornPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListPornPipelineRequest::getAccessKeyId()const void ListPornPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListPornPipelineResult.cc b/mts/src/model/ListPornPipelineResult.cc index 8de390895..bcc8d1984 100644 --- a/mts/src/model/ListPornPipelineResult.cc +++ b/mts/src/model/ListPornPipelineResult.cc @@ -35,10 +35,13 @@ ListPornPipelineResult::~ListPornPipelineResult() void ListPornPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/ListTerrorismPipelineRequest.cc b/mts/src/model/ListTerrorismPipelineRequest.cc index 05db3f543..ced2209e9 100644 --- a/mts/src/model/ListTerrorismPipelineRequest.cc +++ b/mts/src/model/ListTerrorismPipelineRequest.cc @@ -33,7 +33,7 @@ long ListTerrorismPipelineRequest::getResourceOwnerId()const void ListTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListTerrorismPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ListTerrorismPipelineRequest::getResourceOwnerAccount()const void ListTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ListTerrorismPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string ListTerrorismPipelineRequest::getOwnerAccount()const void ListTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ListTerrorismPipelineRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListTerrorismPipelineRequest::getPageSize()const void ListTerrorismPipelineRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListTerrorismPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string ListTerrorismPipelineRequest::getState()const void ListTerrorismPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long ListTerrorismPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ListTerrorismPipelineRequest::getOwnerId()const void ListTerrorismPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long ListTerrorismPipelineRequest::getPageNumber()const @@ -99,7 +99,7 @@ long ListTerrorismPipelineRequest::getPageNumber()const void ListTerrorismPipelineRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string ListTerrorismPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ListTerrorismPipelineRequest::getAccessKeyId()const void ListTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ListTerrorismPipelineResult.cc b/mts/src/model/ListTerrorismPipelineResult.cc index 0b69e4a9e..78301cdfe 100644 --- a/mts/src/model/ListTerrorismPipelineResult.cc +++ b/mts/src/model/ListTerrorismPipelineResult.cc @@ -35,10 +35,13 @@ ListTerrorismPipelineResult::~ListTerrorismPipelineResult() void ListTerrorismPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/LogicalDeleteResourceRequest.cc b/mts/src/model/LogicalDeleteResourceRequest.cc index 18841ba41..bec1ac379 100644 --- a/mts/src/model/LogicalDeleteResourceRequest.cc +++ b/mts/src/model/LogicalDeleteResourceRequest.cc @@ -33,7 +33,7 @@ std::string LogicalDeleteResourceRequest::getCountry()const void LogicalDeleteResourceRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } long LogicalDeleteResourceRequest::getHid()const @@ -44,7 +44,7 @@ long LogicalDeleteResourceRequest::getHid()const void LogicalDeleteResourceRequest::setHid(long hid) { hid_ = hid; - setParameter("Hid", std::to_string(hid)); + setCoreParameter("Hid", std::to_string(hid)); } bool LogicalDeleteResourceRequest::getSuccess()const @@ -55,7 +55,7 @@ bool LogicalDeleteResourceRequest::getSuccess()const void LogicalDeleteResourceRequest::setSuccess(bool success) { success_ = success; - setParameter("Success", success ? "true" : "false"); + setCoreParameter("Success", success ? "true" : "false"); } bool LogicalDeleteResourceRequest::getInterrupt()const @@ -66,7 +66,7 @@ bool LogicalDeleteResourceRequest::getInterrupt()const void LogicalDeleteResourceRequest::setInterrupt(bool interrupt) { interrupt_ = interrupt; - setParameter("Interrupt", interrupt ? "true" : "false"); + setCoreParameter("Interrupt", interrupt ? "true" : "false"); } std::string LogicalDeleteResourceRequest::getGmtWakeup()const @@ -77,7 +77,7 @@ std::string LogicalDeleteResourceRequest::getGmtWakeup()const void LogicalDeleteResourceRequest::setGmtWakeup(const std::string& gmtWakeup) { gmtWakeup_ = gmtWakeup; - setParameter("GmtWakeup", gmtWakeup); + setCoreParameter("GmtWakeup", gmtWakeup); } std::string LogicalDeleteResourceRequest::getPk()const @@ -88,7 +88,7 @@ std::string LogicalDeleteResourceRequest::getPk()const void LogicalDeleteResourceRequest::setPk(const std::string& pk) { pk_ = pk; - setParameter("Pk", pk); + setCoreParameter("Pk", pk); } std::string LogicalDeleteResourceRequest::getInvoker()const @@ -99,7 +99,7 @@ std::string LogicalDeleteResourceRequest::getInvoker()const void LogicalDeleteResourceRequest::setInvoker(const std::string& invoker) { invoker_ = invoker; - setParameter("Invoker", invoker); + setCoreParameter("Invoker", invoker); } std::string LogicalDeleteResourceRequest::getBid()const @@ -110,7 +110,7 @@ std::string LogicalDeleteResourceRequest::getBid()const void LogicalDeleteResourceRequest::setBid(const std::string& bid) { bid_ = bid; - setParameter("Bid", bid); + setCoreParameter("Bid", bid); } std::string LogicalDeleteResourceRequest::getMessage()const @@ -121,7 +121,7 @@ std::string LogicalDeleteResourceRequest::getMessage()const void LogicalDeleteResourceRequest::setMessage(const std::string& message) { message_ = message; - setParameter("Message", message); + setCoreParameter("Message", message); } std::string LogicalDeleteResourceRequest::getTaskExtraData()const @@ -132,7 +132,7 @@ std::string LogicalDeleteResourceRequest::getTaskExtraData()const void LogicalDeleteResourceRequest::setTaskExtraData(const std::string& taskExtraData) { taskExtraData_ = taskExtraData; - setParameter("TaskExtraData", taskExtraData); + setCoreParameter("TaskExtraData", taskExtraData); } std::string LogicalDeleteResourceRequest::getTaskIdentifier()const @@ -143,6 +143,6 @@ std::string LogicalDeleteResourceRequest::getTaskIdentifier()const void LogicalDeleteResourceRequest::setTaskIdentifier(const std::string& taskIdentifier) { taskIdentifier_ = taskIdentifier; - setParameter("TaskIdentifier", taskIdentifier); + setCoreParameter("TaskIdentifier", taskIdentifier); } diff --git a/mts/src/model/LogicalDeleteResourceResult.cc b/mts/src/model/LogicalDeleteResourceResult.cc index 2344a95d5..8b395f9b4 100644 --- a/mts/src/model/LogicalDeleteResourceResult.cc +++ b/mts/src/model/LogicalDeleteResourceResult.cc @@ -35,10 +35,13 @@ LogicalDeleteResourceResult::~LogicalDeleteResourceResult() void LogicalDeleteResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Interrupt"].isNull()) interrupt_ = value["Interrupt"].asString() == "true"; diff --git a/mts/src/model/PhysicalDeleteResourceRequest.cc b/mts/src/model/PhysicalDeleteResourceRequest.cc index 67114f746..35ad1125a 100644 --- a/mts/src/model/PhysicalDeleteResourceRequest.cc +++ b/mts/src/model/PhysicalDeleteResourceRequest.cc @@ -33,7 +33,7 @@ std::string PhysicalDeleteResourceRequest::getCountry()const void PhysicalDeleteResourceRequest::setCountry(const std::string& country) { country_ = country; - setParameter("Country", country); + setCoreParameter("Country", country); } long PhysicalDeleteResourceRequest::getHid()const @@ -44,7 +44,7 @@ long PhysicalDeleteResourceRequest::getHid()const void PhysicalDeleteResourceRequest::setHid(long hid) { hid_ = hid; - setParameter("Hid", std::to_string(hid)); + setCoreParameter("Hid", std::to_string(hid)); } bool PhysicalDeleteResourceRequest::getSuccess()const @@ -55,7 +55,7 @@ bool PhysicalDeleteResourceRequest::getSuccess()const void PhysicalDeleteResourceRequest::setSuccess(bool success) { success_ = success; - setParameter("Success", success ? "true" : "false"); + setCoreParameter("Success", success ? "true" : "false"); } bool PhysicalDeleteResourceRequest::getInterrupt()const @@ -66,7 +66,7 @@ bool PhysicalDeleteResourceRequest::getInterrupt()const void PhysicalDeleteResourceRequest::setInterrupt(bool interrupt) { interrupt_ = interrupt; - setParameter("Interrupt", interrupt ? "true" : "false"); + setCoreParameter("Interrupt", interrupt ? "true" : "false"); } std::string PhysicalDeleteResourceRequest::getGmtWakeup()const @@ -77,7 +77,7 @@ std::string PhysicalDeleteResourceRequest::getGmtWakeup()const void PhysicalDeleteResourceRequest::setGmtWakeup(const std::string& gmtWakeup) { gmtWakeup_ = gmtWakeup; - setParameter("GmtWakeup", gmtWakeup); + setCoreParameter("GmtWakeup", gmtWakeup); } std::string PhysicalDeleteResourceRequest::getPk()const @@ -88,7 +88,7 @@ std::string PhysicalDeleteResourceRequest::getPk()const void PhysicalDeleteResourceRequest::setPk(const std::string& pk) { pk_ = pk; - setParameter("Pk", pk); + setCoreParameter("Pk", pk); } std::string PhysicalDeleteResourceRequest::getInvoker()const @@ -99,7 +99,7 @@ std::string PhysicalDeleteResourceRequest::getInvoker()const void PhysicalDeleteResourceRequest::setInvoker(const std::string& invoker) { invoker_ = invoker; - setParameter("Invoker", invoker); + setCoreParameter("Invoker", invoker); } std::string PhysicalDeleteResourceRequest::getBid()const @@ -110,7 +110,7 @@ std::string PhysicalDeleteResourceRequest::getBid()const void PhysicalDeleteResourceRequest::setBid(const std::string& bid) { bid_ = bid; - setParameter("Bid", bid); + setCoreParameter("Bid", bid); } std::string PhysicalDeleteResourceRequest::getMessage()const @@ -121,7 +121,7 @@ std::string PhysicalDeleteResourceRequest::getMessage()const void PhysicalDeleteResourceRequest::setMessage(const std::string& message) { message_ = message; - setParameter("Message", message); + setCoreParameter("Message", message); } std::string PhysicalDeleteResourceRequest::getTaskExtraData()const @@ -132,7 +132,7 @@ std::string PhysicalDeleteResourceRequest::getTaskExtraData()const void PhysicalDeleteResourceRequest::setTaskExtraData(const std::string& taskExtraData) { taskExtraData_ = taskExtraData; - setParameter("TaskExtraData", taskExtraData); + setCoreParameter("TaskExtraData", taskExtraData); } std::string PhysicalDeleteResourceRequest::getTaskIdentifier()const @@ -143,6 +143,6 @@ std::string PhysicalDeleteResourceRequest::getTaskIdentifier()const void PhysicalDeleteResourceRequest::setTaskIdentifier(const std::string& taskIdentifier) { taskIdentifier_ = taskIdentifier; - setParameter("TaskIdentifier", taskIdentifier); + setCoreParameter("TaskIdentifier", taskIdentifier); } diff --git a/mts/src/model/PhysicalDeleteResourceResult.cc b/mts/src/model/PhysicalDeleteResourceResult.cc index f83f03c9c..680ca924a 100644 --- a/mts/src/model/PhysicalDeleteResourceResult.cc +++ b/mts/src/model/PhysicalDeleteResourceResult.cc @@ -35,10 +35,13 @@ PhysicalDeleteResourceResult::~PhysicalDeleteResourceResult() void PhysicalDeleteResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Interrupt"].isNull()) interrupt_ = value["Interrupt"].asString() == "true"; diff --git a/mts/src/model/PlayInfoRequest.cc b/mts/src/model/PlayInfoRequest.cc index 4524a4b1a..baf661d9c 100644 --- a/mts/src/model/PlayInfoRequest.cc +++ b/mts/src/model/PlayInfoRequest.cc @@ -33,7 +33,7 @@ std::string PlayInfoRequest::getPlayDomain()const void PlayInfoRequest::setPlayDomain(const std::string& playDomain) { playDomain_ = playDomain; - setParameter("PlayDomain", playDomain); + setCoreParameter("PlayDomain", playDomain); } std::string PlayInfoRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ std::string PlayInfoRequest::getResourceOwnerId()const void PlayInfoRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string PlayInfoRequest::getFormats()const @@ -55,7 +55,7 @@ std::string PlayInfoRequest::getFormats()const void PlayInfoRequest::setFormats(const std::string& formats) { formats_ = formats; - setParameter("Formats", formats); + setCoreParameter("Formats", formats); } std::string PlayInfoRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string PlayInfoRequest::getResourceOwnerAccount()const void PlayInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string PlayInfoRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string PlayInfoRequest::getOwnerAccount()const void PlayInfoRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string PlayInfoRequest::getHlsUriToken()const @@ -88,7 +88,7 @@ std::string PlayInfoRequest::getHlsUriToken()const void PlayInfoRequest::setHlsUriToken(const std::string& hlsUriToken) { hlsUriToken_ = hlsUriToken; - setParameter("HlsUriToken", hlsUriToken); + setCoreParameter("HlsUriToken", hlsUriToken); } std::string PlayInfoRequest::getTerminal()const @@ -99,7 +99,7 @@ std::string PlayInfoRequest::getTerminal()const void PlayInfoRequest::setTerminal(const std::string& terminal) { terminal_ = terminal; - setParameter("Terminal", terminal); + setCoreParameter("Terminal", terminal); } std::string PlayInfoRequest::getOwnerId()const @@ -110,7 +110,7 @@ std::string PlayInfoRequest::getOwnerId()const void PlayInfoRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string PlayInfoRequest::getMediaId()const @@ -121,7 +121,7 @@ std::string PlayInfoRequest::getMediaId()const void PlayInfoRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string PlayInfoRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string PlayInfoRequest::getAccessKeyId()const void PlayInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string PlayInfoRequest::getRand()const @@ -143,7 +143,7 @@ std::string PlayInfoRequest::getRand()const void PlayInfoRequest::setRand(const std::string& rand) { rand_ = rand; - setParameter("Rand", rand); + setCoreParameter("Rand", rand); } long PlayInfoRequest::getAuthTimeout()const @@ -154,7 +154,7 @@ long PlayInfoRequest::getAuthTimeout()const void PlayInfoRequest::setAuthTimeout(long authTimeout) { authTimeout_ = authTimeout; - setParameter("AuthTimeout", std::to_string(authTimeout)); + setCoreParameter("AuthTimeout", std::to_string(authTimeout)); } std::string PlayInfoRequest::getAuthInfo()const @@ -165,6 +165,6 @@ std::string PlayInfoRequest::getAuthInfo()const void PlayInfoRequest::setAuthInfo(const std::string& authInfo) { authInfo_ = authInfo; - setParameter("AuthInfo", authInfo); + setCoreParameter("AuthInfo", authInfo); } diff --git a/mts/src/model/PlayInfoResult.cc b/mts/src/model/PlayInfoResult.cc index a2b620928..f1bddec93 100644 --- a/mts/src/model/PlayInfoResult.cc +++ b/mts/src/model/PlayInfoResult.cc @@ -35,10 +35,13 @@ PlayInfoResult::~PlayInfoResult() void PlayInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPlayInfoList = value["PlayInfoList"]["PlayInfo"]; for (auto value : allPlayInfoList) diff --git a/mts/src/model/PlayerAuthRequest.cc b/mts/src/model/PlayerAuthRequest.cc index 065ecdbdb..358332068 100644 --- a/mts/src/model/PlayerAuthRequest.cc +++ b/mts/src/model/PlayerAuthRequest.cc @@ -33,7 +33,7 @@ std::string PlayerAuthRequest::getResourceOwnerId()const void PlayerAuthRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string PlayerAuthRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string PlayerAuthRequest::getResourceOwnerAccount()const void PlayerAuthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string PlayerAuthRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string PlayerAuthRequest::getOwnerAccount()const void PlayerAuthRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string PlayerAuthRequest::getOwnerId()const @@ -66,7 +66,7 @@ std::string PlayerAuthRequest::getOwnerId()const void PlayerAuthRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string PlayerAuthRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string PlayerAuthRequest::getAccessKeyId()const void PlayerAuthRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/PlayerAuthResult.cc b/mts/src/model/PlayerAuthResult.cc index 4759b3101..b6e9997aa 100644 --- a/mts/src/model/PlayerAuthResult.cc +++ b/mts/src/model/PlayerAuthResult.cc @@ -35,10 +35,13 @@ PlayerAuthResult::~PlayerAuthResult() void PlayerAuthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSwitchList = value["SwitchList"]["Switch"]; for (auto value : allSwitchList) diff --git a/mts/src/model/QueryAnalysisJobListRequest.cc b/mts/src/model/QueryAnalysisJobListRequest.cc index bd735e036..34dc1896a 100644 --- a/mts/src/model/QueryAnalysisJobListRequest.cc +++ b/mts/src/model/QueryAnalysisJobListRequest.cc @@ -33,7 +33,7 @@ long QueryAnalysisJobListRequest::getResourceOwnerId()const void QueryAnalysisJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryAnalysisJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryAnalysisJobListRequest::getResourceOwnerAccount()const void QueryAnalysisJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryAnalysisJobListRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryAnalysisJobListRequest::getOwnerAccount()const void QueryAnalysisJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryAnalysisJobListRequest::getOwnerId()const @@ -66,7 +66,7 @@ long QueryAnalysisJobListRequest::getOwnerId()const void QueryAnalysisJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryAnalysisJobListRequest::getAnalysisJobIds()const @@ -77,7 +77,7 @@ std::string QueryAnalysisJobListRequest::getAnalysisJobIds()const void QueryAnalysisJobListRequest::setAnalysisJobIds(const std::string& analysisJobIds) { analysisJobIds_ = analysisJobIds; - setParameter("AnalysisJobIds", analysisJobIds); + setCoreParameter("AnalysisJobIds", analysisJobIds); } std::string QueryAnalysisJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryAnalysisJobListRequest::getAccessKeyId()const void QueryAnalysisJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryAnalysisJobListResult.cc b/mts/src/model/QueryAnalysisJobListResult.cc index ccaec75d9..bfa6d14ff 100644 --- a/mts/src/model/QueryAnalysisJobListResult.cc +++ b/mts/src/model/QueryAnalysisJobListResult.cc @@ -35,10 +35,13 @@ QueryAnalysisJobListResult::~QueryAnalysisJobListResult() void QueryAnalysisJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAnalysisJobList = value["AnalysisJobList"]["AnalysisJob"]; for (auto value : allAnalysisJobList) diff --git a/mts/src/model/QueryAnnotationJobListRequest.cc b/mts/src/model/QueryAnnotationJobListRequest.cc index 24edaea5e..c6c1f7710 100644 --- a/mts/src/model/QueryAnnotationJobListRequest.cc +++ b/mts/src/model/QueryAnnotationJobListRequest.cc @@ -33,7 +33,7 @@ long QueryAnnotationJobListRequest::getResourceOwnerId()const void QueryAnnotationJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryAnnotationJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryAnnotationJobListRequest::getResourceOwnerAccount()const void QueryAnnotationJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryAnnotationJobListRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryAnnotationJobListRequest::getOwnerAccount()const void QueryAnnotationJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryAnnotationJobListRequest::getOwnerId()const @@ -66,7 +66,7 @@ long QueryAnnotationJobListRequest::getOwnerId()const void QueryAnnotationJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryAnnotationJobListRequest::getAnnotationJobIds()const @@ -77,7 +77,7 @@ std::string QueryAnnotationJobListRequest::getAnnotationJobIds()const void QueryAnnotationJobListRequest::setAnnotationJobIds(const std::string& annotationJobIds) { annotationJobIds_ = annotationJobIds; - setParameter("AnnotationJobIds", annotationJobIds); + setCoreParameter("AnnotationJobIds", annotationJobIds); } std::string QueryAnnotationJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryAnnotationJobListRequest::getAccessKeyId()const void QueryAnnotationJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryAnnotationJobListResult.cc b/mts/src/model/QueryAnnotationJobListResult.cc index 4a080d4b2..f8ffc4236 100644 --- a/mts/src/model/QueryAnnotationJobListResult.cc +++ b/mts/src/model/QueryAnnotationJobListResult.cc @@ -35,10 +35,13 @@ QueryAnnotationJobListResult::~QueryAnnotationJobListResult() void QueryAnnotationJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAnnotationJobList = value["AnnotationJobList"]["AnnotationJob"]; for (auto value : allAnnotationJobList) diff --git a/mts/src/model/QueryAsrJobListRequest.cc b/mts/src/model/QueryAsrJobListRequest.cc index d8d0b0bda..ac5dc9744 100644 --- a/mts/src/model/QueryAsrJobListRequest.cc +++ b/mts/src/model/QueryAsrJobListRequest.cc @@ -33,7 +33,7 @@ long QueryAsrJobListRequest::getResourceOwnerId()const void QueryAsrJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryAsrJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryAsrJobListRequest::getResourceOwnerAccount()const void QueryAsrJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryAsrJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryAsrJobListRequest::getJobIds()const void QueryAsrJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryAsrJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryAsrJobListRequest::getOwnerAccount()const void QueryAsrJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryAsrJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryAsrJobListRequest::getOwnerId()const void QueryAsrJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryAsrJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryAsrJobListRequest::getAccessKeyId()const void QueryAsrJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryAsrJobListResult.cc b/mts/src/model/QueryAsrJobListResult.cc index 9c313a6de..8a927ffd2 100644 --- a/mts/src/model/QueryAsrJobListResult.cc +++ b/mts/src/model/QueryAsrJobListResult.cc @@ -35,10 +35,13 @@ QueryAsrJobListResult::~QueryAsrJobListResult() void QueryAsrJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryAsrPipelineListRequest.cc b/mts/src/model/QueryAsrPipelineListRequest.cc index f1a9eb53a..99b77c6b5 100644 --- a/mts/src/model/QueryAsrPipelineListRequest.cc +++ b/mts/src/model/QueryAsrPipelineListRequest.cc @@ -33,7 +33,7 @@ long QueryAsrPipelineListRequest::getResourceOwnerId()const void QueryAsrPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryAsrPipelineListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryAsrPipelineListRequest::getResourceOwnerAccount()const void QueryAsrPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryAsrPipelineListRequest::getPipelineIds()const @@ -55,7 +55,7 @@ std::string QueryAsrPipelineListRequest::getPipelineIds()const void QueryAsrPipelineListRequest::setPipelineIds(const std::string& pipelineIds) { pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); + setCoreParameter("PipelineIds", pipelineIds); } std::string QueryAsrPipelineListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryAsrPipelineListRequest::getOwnerAccount()const void QueryAsrPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryAsrPipelineListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryAsrPipelineListRequest::getOwnerId()const void QueryAsrPipelineListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryAsrPipelineListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryAsrPipelineListRequest::getAccessKeyId()const void QueryAsrPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryAsrPipelineListResult.cc b/mts/src/model/QueryAsrPipelineListResult.cc index 4362c8372..e86202c91 100644 --- a/mts/src/model/QueryAsrPipelineListResult.cc +++ b/mts/src/model/QueryAsrPipelineListResult.cc @@ -35,10 +35,13 @@ QueryAsrPipelineListResult::~QueryAsrPipelineListResult() void QueryAsrPipelineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/QueryAuthConfigRequest.cc b/mts/src/model/QueryAuthConfigRequest.cc index e66abd045..b1484dcf9 100644 --- a/mts/src/model/QueryAuthConfigRequest.cc +++ b/mts/src/model/QueryAuthConfigRequest.cc @@ -33,7 +33,7 @@ std::string QueryAuthConfigRequest::getResourceOwnerId()const void QueryAuthConfigRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string QueryAuthConfigRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryAuthConfigRequest::getResourceOwnerAccount()const void QueryAuthConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryAuthConfigRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryAuthConfigRequest::getOwnerAccount()const void QueryAuthConfigRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string QueryAuthConfigRequest::getOwnerId()const @@ -66,7 +66,7 @@ std::string QueryAuthConfigRequest::getOwnerId()const void QueryAuthConfigRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string QueryAuthConfigRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string QueryAuthConfigRequest::getAccessKeyId()const void QueryAuthConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryAuthConfigResult.cc b/mts/src/model/QueryAuthConfigResult.cc index 5e5d89a2d..1b678b21e 100644 --- a/mts/src/model/QueryAuthConfigResult.cc +++ b/mts/src/model/QueryAuthConfigResult.cc @@ -35,10 +35,13 @@ QueryAuthConfigResult::~QueryAuthConfigResult() void QueryAuthConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Key1"].isNull()) key1_ = value["Key1"].asString(); diff --git a/mts/src/model/QueryCensorJobListRequest.cc b/mts/src/model/QueryCensorJobListRequest.cc index 72d5aafaa..34d40f645 100644 --- a/mts/src/model/QueryCensorJobListRequest.cc +++ b/mts/src/model/QueryCensorJobListRequest.cc @@ -33,7 +33,7 @@ long QueryCensorJobListRequest::getResourceOwnerId()const void QueryCensorJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryCensorJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryCensorJobListRequest::getResourceOwnerAccount()const void QueryCensorJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryCensorJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryCensorJobListRequest::getJobIds()const void QueryCensorJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryCensorJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryCensorJobListRequest::getOwnerAccount()const void QueryCensorJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryCensorJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryCensorJobListRequest::getOwnerId()const void QueryCensorJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryCensorJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryCensorJobListRequest::getAccessKeyId()const void QueryCensorJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryCensorJobListResult.cc b/mts/src/model/QueryCensorJobListResult.cc index 5ad2ee579..4c1ffeee8 100644 --- a/mts/src/model/QueryCensorJobListResult.cc +++ b/mts/src/model/QueryCensorJobListResult.cc @@ -35,10 +35,13 @@ QueryCensorJobListResult::~QueryCensorJobListResult() void QueryCensorJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCensorJobList = value["CensorJobList"]["CensorJob"]; for (auto value : allCensorJobList) diff --git a/mts/src/model/QueryCensorPipelineListRequest.cc b/mts/src/model/QueryCensorPipelineListRequest.cc index 1c88790b9..05bb8692a 100644 --- a/mts/src/model/QueryCensorPipelineListRequest.cc +++ b/mts/src/model/QueryCensorPipelineListRequest.cc @@ -33,7 +33,7 @@ long QueryCensorPipelineListRequest::getResourceOwnerId()const void QueryCensorPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryCensorPipelineListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryCensorPipelineListRequest::getResourceOwnerAccount()const void QueryCensorPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryCensorPipelineListRequest::getPipelineIds()const @@ -55,7 +55,7 @@ std::string QueryCensorPipelineListRequest::getPipelineIds()const void QueryCensorPipelineListRequest::setPipelineIds(const std::string& pipelineIds) { pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); + setCoreParameter("PipelineIds", pipelineIds); } std::string QueryCensorPipelineListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryCensorPipelineListRequest::getOwnerAccount()const void QueryCensorPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryCensorPipelineListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryCensorPipelineListRequest::getOwnerId()const void QueryCensorPipelineListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryCensorPipelineListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryCensorPipelineListRequest::getAccessKeyId()const void QueryCensorPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryCensorPipelineListResult.cc b/mts/src/model/QueryCensorPipelineListResult.cc index a949ff069..eca853af0 100644 --- a/mts/src/model/QueryCensorPipelineListResult.cc +++ b/mts/src/model/QueryCensorPipelineListResult.cc @@ -35,10 +35,13 @@ QueryCensorPipelineListResult::~QueryCensorPipelineListResult() void QueryCensorPipelineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/QueryComplexJobListRequest.cc b/mts/src/model/QueryComplexJobListRequest.cc index 135fe2109..6ed996f1b 100644 --- a/mts/src/model/QueryComplexJobListRequest.cc +++ b/mts/src/model/QueryComplexJobListRequest.cc @@ -33,7 +33,7 @@ long QueryComplexJobListRequest::getResourceOwnerId()const void QueryComplexJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryComplexJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryComplexJobListRequest::getResourceOwnerAccount()const void QueryComplexJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryComplexJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryComplexJobListRequest::getJobIds()const void QueryComplexJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryComplexJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryComplexJobListRequest::getOwnerAccount()const void QueryComplexJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryComplexJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryComplexJobListRequest::getOwnerId()const void QueryComplexJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryComplexJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryComplexJobListRequest::getAccessKeyId()const void QueryComplexJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryComplexJobListResult.cc b/mts/src/model/QueryComplexJobListResult.cc index 859d919f4..38407bb26 100644 --- a/mts/src/model/QueryComplexJobListResult.cc +++ b/mts/src/model/QueryComplexJobListResult.cc @@ -35,10 +35,13 @@ QueryComplexJobListResult::~QueryComplexJobListResult() void QueryComplexJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryCoverJobListRequest.cc b/mts/src/model/QueryCoverJobListRequest.cc index 8ac478653..4a41738d9 100644 --- a/mts/src/model/QueryCoverJobListRequest.cc +++ b/mts/src/model/QueryCoverJobListRequest.cc @@ -33,7 +33,7 @@ long QueryCoverJobListRequest::getResourceOwnerId()const void QueryCoverJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryCoverJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,29 @@ std::string QueryCoverJobListRequest::getResourceOwnerAccount()const void QueryCoverJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryCoverJobListRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void QueryCoverJobListRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +std::string QueryCoverJobListRequest::getStartOfJobCreatedTimeRange()const +{ + return startOfJobCreatedTimeRange_; +} + +void QueryCoverJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) +{ + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setCoreParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); } std::string QueryCoverJobListRequest::getOwnerAccount()const @@ -55,7 +77,18 @@ std::string QueryCoverJobListRequest::getOwnerAccount()const void QueryCoverJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); +} + +long QueryCoverJobListRequest::getMaximumPageSize()const +{ + return maximumPageSize_; +} + +void QueryCoverJobListRequest::setMaximumPageSize(long maximumPageSize) +{ + maximumPageSize_ = maximumPageSize; + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } long QueryCoverJobListRequest::getOwnerId()const @@ -66,7 +99,7 @@ long QueryCoverJobListRequest::getOwnerId()const void QueryCoverJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryCoverJobListRequest::getAccessKeyId()const @@ -77,7 +110,7 @@ std::string QueryCoverJobListRequest::getAccessKeyId()const void QueryCoverJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string QueryCoverJobListRequest::getCoverJobIds()const @@ -88,6 +121,39 @@ std::string QueryCoverJobListRequest::getCoverJobIds()const void QueryCoverJobListRequest::setCoverJobIds(const std::string& coverJobIds) { coverJobIds_ = coverJobIds; - setParameter("CoverJobIds", coverJobIds); + setCoreParameter("CoverJobIds", coverJobIds); +} + +std::string QueryCoverJobListRequest::getPipelineId()const +{ + return pipelineId_; +} + +void QueryCoverJobListRequest::setPipelineId(const std::string& pipelineId) +{ + pipelineId_ = pipelineId; + setCoreParameter("PipelineId", pipelineId); +} + +std::string QueryCoverJobListRequest::getState()const +{ + return state_; +} + +void QueryCoverJobListRequest::setState(const std::string& state) +{ + state_ = state; + setCoreParameter("State", state); +} + +std::string QueryCoverJobListRequest::getEndOfJobCreatedTimeRange()const +{ + return endOfJobCreatedTimeRange_; +} + +void QueryCoverJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) +{ + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setCoreParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); } diff --git a/mts/src/model/QueryCoverJobListResult.cc b/mts/src/model/QueryCoverJobListResult.cc index 2b468d573..47045311a 100644 --- a/mts/src/model/QueryCoverJobListResult.cc +++ b/mts/src/model/QueryCoverJobListResult.cc @@ -35,10 +35,13 @@ QueryCoverJobListResult::~QueryCoverJobListResult() void QueryCoverJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCoverJobList = value["CoverJobList"]["CoverJob"]; for (auto value : allCoverJobList) @@ -90,6 +93,8 @@ void QueryCoverJobListResult::parse(const std::string &payload) auto allNonExistIds = value["NonExistIds"]["String"]; for (const auto &item : allNonExistIds) nonExistIds_.push_back(item.asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); } @@ -98,6 +103,11 @@ std::vector QueryCoverJobListResult::getCover return coverJobList_; } +std::string QueryCoverJobListResult::getNextPageToken()const +{ + return nextPageToken_; +} + std::vector QueryCoverJobListResult::getNonExistIds()const { return nonExistIds_; diff --git a/mts/src/model/QueryCoverPipelineListRequest.cc b/mts/src/model/QueryCoverPipelineListRequest.cc index dff17ff51..f49258800 100644 --- a/mts/src/model/QueryCoverPipelineListRequest.cc +++ b/mts/src/model/QueryCoverPipelineListRequest.cc @@ -33,7 +33,7 @@ long QueryCoverPipelineListRequest::getResourceOwnerId()const void QueryCoverPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryCoverPipelineListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryCoverPipelineListRequest::getResourceOwnerAccount()const void QueryCoverPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryCoverPipelineListRequest::getPipelineIds()const @@ -55,7 +55,7 @@ std::string QueryCoverPipelineListRequest::getPipelineIds()const void QueryCoverPipelineListRequest::setPipelineIds(const std::string& pipelineIds) { pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); + setCoreParameter("PipelineIds", pipelineIds); } std::string QueryCoverPipelineListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryCoverPipelineListRequest::getOwnerAccount()const void QueryCoverPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryCoverPipelineListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryCoverPipelineListRequest::getOwnerId()const void QueryCoverPipelineListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryCoverPipelineListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryCoverPipelineListRequest::getAccessKeyId()const void QueryCoverPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryCoverPipelineListResult.cc b/mts/src/model/QueryCoverPipelineListResult.cc index f58e0f45b..b03888db6 100644 --- a/mts/src/model/QueryCoverPipelineListResult.cc +++ b/mts/src/model/QueryCoverPipelineListResult.cc @@ -35,10 +35,13 @@ QueryCoverPipelineListResult::~QueryCoverPipelineListResult() void QueryCoverPipelineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/QueryEditingJobListRequest.cc b/mts/src/model/QueryEditingJobListRequest.cc index 92ab3e77e..2bf3cd73c 100644 --- a/mts/src/model/QueryEditingJobListRequest.cc +++ b/mts/src/model/QueryEditingJobListRequest.cc @@ -33,7 +33,7 @@ long QueryEditingJobListRequest::getResourceOwnerId()const void QueryEditingJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryEditingJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryEditingJobListRequest::getResourceOwnerAccount()const void QueryEditingJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryEditingJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryEditingJobListRequest::getJobIds()const void QueryEditingJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryEditingJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryEditingJobListRequest::getOwnerAccount()const void QueryEditingJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryEditingJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryEditingJobListRequest::getOwnerId()const void QueryEditingJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryEditingJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryEditingJobListRequest::getAccessKeyId()const void QueryEditingJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryEditingJobListResult.cc b/mts/src/model/QueryEditingJobListResult.cc index e276471c6..9b6327f2a 100644 --- a/mts/src/model/QueryEditingJobListResult.cc +++ b/mts/src/model/QueryEditingJobListResult.cc @@ -35,10 +35,13 @@ QueryEditingJobListResult::~QueryEditingJobListResult() void QueryEditingJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryFacerecogJobListRequest.cc b/mts/src/model/QueryFacerecogJobListRequest.cc index 77e19e455..76601e545 100644 --- a/mts/src/model/QueryFacerecogJobListRequest.cc +++ b/mts/src/model/QueryFacerecogJobListRequest.cc @@ -33,7 +33,7 @@ long QueryFacerecogJobListRequest::getResourceOwnerId()const void QueryFacerecogJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryFacerecogJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryFacerecogJobListRequest::getResourceOwnerAccount()const void QueryFacerecogJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryFacerecogJobListRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryFacerecogJobListRequest::getOwnerAccount()const void QueryFacerecogJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string QueryFacerecogJobListRequest::getFacerecogJobIds()const @@ -66,7 +66,7 @@ std::string QueryFacerecogJobListRequest::getFacerecogJobIds()const void QueryFacerecogJobListRequest::setFacerecogJobIds(const std::string& facerecogJobIds) { facerecogJobIds_ = facerecogJobIds; - setParameter("FacerecogJobIds", facerecogJobIds); + setCoreParameter("FacerecogJobIds", facerecogJobIds); } long QueryFacerecogJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryFacerecogJobListRequest::getOwnerId()const void QueryFacerecogJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryFacerecogJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryFacerecogJobListRequest::getAccessKeyId()const void QueryFacerecogJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryFacerecogJobListResult.cc b/mts/src/model/QueryFacerecogJobListResult.cc index 0c8a7cc9d..3f8de422b 100644 --- a/mts/src/model/QueryFacerecogJobListResult.cc +++ b/mts/src/model/QueryFacerecogJobListResult.cc @@ -35,10 +35,13 @@ QueryFacerecogJobListResult::~QueryFacerecogJobListResult() void QueryFacerecogJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFacerecogJobList = value["FacerecogJobList"]["FacerecogJob"]; for (auto value : allFacerecogJobList) diff --git a/mts/src/model/QueryFpCompareJobListRequest.cc b/mts/src/model/QueryFpCompareJobListRequest.cc new file mode 100644 index 000000000..1087531b6 --- /dev/null +++ b/mts/src/model/QueryFpCompareJobListRequest.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 + +using AlibabaCloud::Mts::Model::QueryFpCompareJobListRequest; + +QueryFpCompareJobListRequest::QueryFpCompareJobListRequest() : + RpcServiceRequest("mts", "2014-06-18", "QueryFpCompareJobList") +{} + +QueryFpCompareJobListRequest::~QueryFpCompareJobListRequest() +{} + +long QueryFpCompareJobListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryFpCompareJobListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryFpCompareJobListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryFpCompareJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryFpCompareJobListRequest::getJobIds()const +{ + return jobIds_; +} + +void QueryFpCompareJobListRequest::setJobIds(const std::string& jobIds) +{ + jobIds_ = jobIds; + setCoreParameter("JobIds", jobIds); +} + +std::string QueryFpCompareJobListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void QueryFpCompareJobListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long QueryFpCompareJobListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryFpCompareJobListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryFpCompareJobListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryFpCompareJobListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/mts/src/model/QueryFpCompareJobListResult.cc b/mts/src/model/QueryFpCompareJobListResult.cc new file mode 100644 index 000000000..add7675af --- /dev/null +++ b/mts/src/model/QueryFpCompareJobListResult.cc @@ -0,0 +1,186 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryFpCompareJobListResult::QueryFpCompareJobListResult() : + ServiceResult() +{} + +QueryFpCompareJobListResult::QueryFpCompareJobListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryFpCompareJobListResult::~QueryFpCompareJobListResult() +{} + +void QueryFpCompareJobListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allFpCompareJobList = value["FpCompareJobList"]["FpCompareJob"]; + for (auto value : allFpCompareJobList) + { + FpCompareJob fpCompareJobListObject; + if(!value["Id"].isNull()) + fpCompareJobListObject.id = value["Id"].asString(); + if(!value["UserData"].isNull()) + fpCompareJobListObject.userData = value["UserData"].asString(); + if(!value["PipelineId"].isNull()) + fpCompareJobListObject.pipelineId = value["PipelineId"].asString(); + if(!value["FpDBId"].isNull()) + fpCompareJobListObject.fpDBId = value["FpDBId"].asString(); + if(!value["State"].isNull()) + fpCompareJobListObject.state = value["State"].asString(); + if(!value["Code"].isNull()) + fpCompareJobListObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + fpCompareJobListObject.message = value["Message"].asString(); + if(!value["CreationTime"].isNull()) + fpCompareJobListObject.creationTime = value["CreationTime"].asString(); + if(!value["FinishTime"].isNull()) + fpCompareJobListObject.finishTime = value["FinishTime"].asString(); + auto masterFileNode = value["MasterFile"]; + if(!masterFileNode["Bucket"].isNull()) + fpCompareJobListObject.masterFile.bucket = masterFileNode["Bucket"].asString(); + if(!masterFileNode["Location"].isNull()) + fpCompareJobListObject.masterFile.location = masterFileNode["Location"].asString(); + if(!masterFileNode["Object"].isNull()) + fpCompareJobListObject.masterFile.object = masterFileNode["Object"].asString(); + auto queryFileNode = value["QueryFile"]; + if(!queryFileNode["Bucket"].isNull()) + fpCompareJobListObject.queryFile.bucket = queryFileNode["Bucket"].asString(); + if(!queryFileNode["Location"].isNull()) + fpCompareJobListObject.queryFile.location = queryFileNode["Location"].asString(); + if(!queryFileNode["Object"].isNull()) + fpCompareJobListObject.queryFile.object = queryFileNode["Object"].asString(); + auto matchFrameStorageNode = value["MatchFrameStorage"]; + auto masterMediaFramesNode = matchFrameStorageNode["MasterMediaFrames"]; + if(!masterMediaFramesNode["Bucket"].isNull()) + fpCompareJobListObject.matchFrameStorage.masterMediaFrames.bucket = masterMediaFramesNode["Bucket"].asString(); + if(!masterMediaFramesNode["Location"].isNull()) + fpCompareJobListObject.matchFrameStorage.masterMediaFrames.location = masterMediaFramesNode["Location"].asString(); + if(!masterMediaFramesNode["Object"].isNull()) + fpCompareJobListObject.matchFrameStorage.masterMediaFrames.object = masterMediaFramesNode["Object"].asString(); + auto queryMediaFramesNode = matchFrameStorageNode["QueryMediaFrames"]; + if(!queryMediaFramesNode["Bucket"].isNull()) + fpCompareJobListObject.matchFrameStorage.queryMediaFrames.bucket = queryMediaFramesNode["Bucket"].asString(); + if(!queryMediaFramesNode["Location"].isNull()) + fpCompareJobListObject.matchFrameStorage.queryMediaFrames.location = queryMediaFramesNode["Location"].asString(); + if(!queryMediaFramesNode["Object"].isNull()) + fpCompareJobListObject.matchFrameStorage.queryMediaFrames.object = queryMediaFramesNode["Object"].asString(); + auto matchedFramesDescFileNode = matchFrameStorageNode["MatchedFramesDescFile"]; + if(!matchedFramesDescFileNode["Bucket"].isNull()) + fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.bucket = matchedFramesDescFileNode["Bucket"].asString(); + if(!matchedFramesDescFileNode["Location"].isNull()) + fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.location = matchedFramesDescFileNode["Location"].asString(); + if(!matchedFramesDescFileNode["Object"].isNull()) + fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.object = matchedFramesDescFileNode["Object"].asString(); + auto fpCompareResultNode = value["FpCompareResult"]; + auto allMediaMatchSegments = value["MediaMatchSegments"]["MediaMatchSegment"]; + for (auto value : allMediaMatchSegments) + { + FpCompareJob::FpCompareResult::MediaMatchSegment mediaMatchSegmentObject; + if(!value["QueryStartFrame"].isNull()) + mediaMatchSegmentObject.queryStartFrame = value["QueryStartFrame"].asString(); + if(!value["QueryEndFrame"].isNull()) + mediaMatchSegmentObject.queryEndFrame = value["QueryEndFrame"].asString(); + if(!value["MasterStartFrame"].isNull()) + mediaMatchSegmentObject.masterStartFrame = value["MasterStartFrame"].asString(); + if(!value["MasterEndFrame"].isNull()) + mediaMatchSegmentObject.masterEndFrame = value["MasterEndFrame"].asString(); + if(!value["QueryStartTime"].isNull()) + mediaMatchSegmentObject.queryStartTime = value["QueryStartTime"].asString(); + if(!value["QueryEndTime"].isNull()) + mediaMatchSegmentObject.queryEndTime = value["QueryEndTime"].asString(); + if(!value["MasterStartTime"].isNull()) + mediaMatchSegmentObject.masterStartTime = value["MasterStartTime"].asString(); + if(!value["MasterEndTime"].isNull()) + mediaMatchSegmentObject.masterEndTime = value["MasterEndTime"].asString(); + if(!value["TotalMatchFrameNum"].isNull()) + mediaMatchSegmentObject.totalMatchFrameNum = value["TotalMatchFrameNum"].asString(); + if(!value["Score"].isNull()) + mediaMatchSegmentObject.score = value["Score"].asString(); + fpCompareJobListObject.fpCompareResult.mediaMatchSegments.push_back(mediaMatchSegmentObject); + } + auto masterMediaInfoNode = fpCompareResultNode["MasterMediaInfo"]; + if(!masterMediaInfoNode["Duration"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.duration = masterMediaInfoNode["Duration"].asString(); + if(!masterMediaInfoNode["FpNum"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.fpNum = masterMediaInfoNode["FpNum"].asString(); + if(!masterMediaInfoNode["Width"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.width = masterMediaInfoNode["Width"].asString(); + if(!masterMediaInfoNode["Height"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.height = masterMediaInfoNode["Height"].asString(); + if(!masterMediaInfoNode["Fps"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.fps = masterMediaInfoNode["Fps"].asString(); + if(!masterMediaInfoNode["TotalVideoFrame"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.totalVideoFrame = masterMediaInfoNode["TotalVideoFrame"].asString(); + if(!masterMediaInfoNode["AudioBitRate"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioBitRate = masterMediaInfoNode["AudioBitRate"].asString(); + if(!masterMediaInfoNode["AudioChannels"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioChannels = masterMediaInfoNode["AudioChannels"].asString(); + if(!masterMediaInfoNode["AudioSampleRate"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioSampleRate = masterMediaInfoNode["AudioSampleRate"].asString(); + auto queryMediaInfoNode = fpCompareResultNode["QueryMediaInfo"]; + if(!queryMediaInfoNode["Duration"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.duration = queryMediaInfoNode["Duration"].asString(); + if(!queryMediaInfoNode["FpNum"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.fpNum = queryMediaInfoNode["FpNum"].asString(); + if(!queryMediaInfoNode["Width"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.width = queryMediaInfoNode["Width"].asString(); + if(!queryMediaInfoNode["Height"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.height = queryMediaInfoNode["Height"].asString(); + if(!queryMediaInfoNode["Fps"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.fps = queryMediaInfoNode["Fps"].asString(); + if(!queryMediaInfoNode["TotalVideoFrame"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.totalVideoFrame = queryMediaInfoNode["TotalVideoFrame"].asString(); + if(!queryMediaInfoNode["AudioBitRate"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioBitRate = queryMediaInfoNode["AudioBitRate"].asString(); + if(!queryMediaInfoNode["AudioChannels"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioChannels = queryMediaInfoNode["AudioChannels"].asString(); + if(!queryMediaInfoNode["AudioSampleRate"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioSampleRate = queryMediaInfoNode["AudioSampleRate"].asString(); + fpCompareJobList_.push_back(fpCompareJobListObject); + } + auto allNonExistIds = value["NonExistIds"]["String"]; + for (const auto &item : allNonExistIds) + nonExistIds_.push_back(item.asString()); + +} + +std::vector QueryFpCompareJobListResult::getFpCompareJobList()const +{ + return fpCompareJobList_; +} + +std::vector QueryFpCompareJobListResult::getNonExistIds()const +{ + return nonExistIds_; +} + diff --git a/mts/src/model/QueryFpImportResultRequest.cc b/mts/src/model/QueryFpImportResultRequest.cc index 49d6d7c68..60ef734c0 100644 --- a/mts/src/model/QueryFpImportResultRequest.cc +++ b/mts/src/model/QueryFpImportResultRequest.cc @@ -33,7 +33,7 @@ long QueryFpImportResultRequest::getResourceOwnerId()const void QueryFpImportResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryFpImportResultRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryFpImportResultRequest::getResourceOwnerAccount()const void QueryFpImportResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryFpImportResultRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryFpImportResultRequest::getOwnerAccount()const void QueryFpImportResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryFpImportResultRequest::getPageSize()const @@ -66,7 +66,7 @@ long QueryFpImportResultRequest::getPageSize()const void QueryFpImportResultRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long QueryFpImportResultRequest::getEndTime()const @@ -77,7 +77,7 @@ long QueryFpImportResultRequest::getEndTime()const void QueryFpImportResultRequest::setEndTime(long endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } long QueryFpImportResultRequest::getPageIndex()const @@ -88,7 +88,7 @@ long QueryFpImportResultRequest::getPageIndex()const void QueryFpImportResultRequest::setPageIndex(long pageIndex) { pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); + setCoreParameter("PageIndex", std::to_string(pageIndex)); } long QueryFpImportResultRequest::getStartTime()const @@ -99,7 +99,7 @@ long QueryFpImportResultRequest::getStartTime()const void QueryFpImportResultRequest::setStartTime(long startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } long QueryFpImportResultRequest::getOwnerId()const @@ -110,7 +110,7 @@ long QueryFpImportResultRequest::getOwnerId()const void QueryFpImportResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryFpImportResultRequest::getAccessKeyId()const @@ -121,6 +121,6 @@ std::string QueryFpImportResultRequest::getAccessKeyId()const void QueryFpImportResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryFpImportResultResult.cc b/mts/src/model/QueryFpImportResultResult.cc index eaa21b5f0..d6a11997f 100644 --- a/mts/src/model/QueryFpImportResultResult.cc +++ b/mts/src/model/QueryFpImportResultResult.cc @@ -35,10 +35,13 @@ QueryFpImportResultResult::~QueryFpImportResultResult() void QueryFpImportResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFpResultLogInfoList = value["FpResultLogInfoList"]["FpResultLogInfo"]; for (auto value : allFpResultLogInfoList) diff --git a/mts/src/model/QueryFpShotJobListRequest.cc b/mts/src/model/QueryFpShotJobListRequest.cc index 95de08079..1afca0038 100644 --- a/mts/src/model/QueryFpShotJobListRequest.cc +++ b/mts/src/model/QueryFpShotJobListRequest.cc @@ -33,7 +33,7 @@ long QueryFpShotJobListRequest::getResourceOwnerId()const void QueryFpShotJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryFpShotJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryFpShotJobListRequest::getResourceOwnerAccount()const void QueryFpShotJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryFpShotJobListRequest::getNextPageToken()const @@ -55,7 +55,7 @@ std::string QueryFpShotJobListRequest::getNextPageToken()const void QueryFpShotJobListRequest::setNextPageToken(const std::string& nextPageToken) { nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); + setCoreParameter("NextPageToken", nextPageToken); } std::string QueryFpShotJobListRequest::getStartOfJobCreatedTimeRange()const @@ -66,7 +66,7 @@ std::string QueryFpShotJobListRequest::getStartOfJobCreatedTimeRange()const void QueryFpShotJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) { startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); + setCoreParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); } std::string QueryFpShotJobListRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string QueryFpShotJobListRequest::getOwnerAccount()const void QueryFpShotJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryFpShotJobListRequest::getMaximumPageSize()const @@ -88,7 +88,7 @@ long QueryFpShotJobListRequest::getMaximumPageSize()const void QueryFpShotJobListRequest::setMaximumPageSize(long maximumPageSize) { maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } long QueryFpShotJobListRequest::getOwnerId()const @@ -99,7 +99,7 @@ long QueryFpShotJobListRequest::getOwnerId()const void QueryFpShotJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryFpShotJobListRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string QueryFpShotJobListRequest::getAccessKeyId()const void QueryFpShotJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string QueryFpShotJobListRequest::getPipelineId()const @@ -121,7 +121,7 @@ std::string QueryFpShotJobListRequest::getPipelineId()const void QueryFpShotJobListRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } std::string QueryFpShotJobListRequest::getPrimaryKeyList()const @@ -132,7 +132,7 @@ std::string QueryFpShotJobListRequest::getPrimaryKeyList()const void QueryFpShotJobListRequest::setPrimaryKeyList(const std::string& primaryKeyList) { primaryKeyList_ = primaryKeyList; - setParameter("PrimaryKeyList", primaryKeyList); + setCoreParameter("PrimaryKeyList", primaryKeyList); } std::string QueryFpShotJobListRequest::getJobIds()const @@ -143,7 +143,7 @@ std::string QueryFpShotJobListRequest::getJobIds()const void QueryFpShotJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryFpShotJobListRequest::getState()const @@ -154,7 +154,7 @@ std::string QueryFpShotJobListRequest::getState()const void QueryFpShotJobListRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string QueryFpShotJobListRequest::getEndOfJobCreatedTimeRange()const @@ -165,6 +165,6 @@ std::string QueryFpShotJobListRequest::getEndOfJobCreatedTimeRange()const void QueryFpShotJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) { endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); + setCoreParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); } diff --git a/mts/src/model/QueryFpShotJobListResult.cc b/mts/src/model/QueryFpShotJobListResult.cc index 93e11cdb8..5bb5b3b3a 100644 --- a/mts/src/model/QueryFpShotJobListResult.cc +++ b/mts/src/model/QueryFpShotJobListResult.cc @@ -35,10 +35,13 @@ QueryFpShotJobListResult::~QueryFpShotJobListResult() void QueryFpShotJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFpShotJobList = value["FpShotJobList"]["FpShotJob"]; for (auto value : allFpShotJobList) diff --git a/mts/src/model/QueryImageSearchJobListRequest.cc b/mts/src/model/QueryImageSearchJobListRequest.cc index 5461f2674..be96670ad 100644 --- a/mts/src/model/QueryImageSearchJobListRequest.cc +++ b/mts/src/model/QueryImageSearchJobListRequest.cc @@ -33,7 +33,7 @@ long QueryImageSearchJobListRequest::getResourceOwnerId()const void QueryImageSearchJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryImageSearchJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryImageSearchJobListRequest::getResourceOwnerAccount()const void QueryImageSearchJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryImageSearchJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryImageSearchJobListRequest::getJobIds()const void QueryImageSearchJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryImageSearchJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryImageSearchJobListRequest::getOwnerAccount()const void QueryImageSearchJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryImageSearchJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryImageSearchJobListRequest::getOwnerId()const void QueryImageSearchJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryImageSearchJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryImageSearchJobListRequest::getAccessKeyId()const void QueryImageSearchJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryImageSearchJobListResult.cc b/mts/src/model/QueryImageSearchJobListResult.cc index dd43470e5..42f2f2f2a 100644 --- a/mts/src/model/QueryImageSearchJobListResult.cc +++ b/mts/src/model/QueryImageSearchJobListResult.cc @@ -35,10 +35,13 @@ QueryImageSearchJobListResult::~QueryImageSearchJobListResult() void QueryImageSearchJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allImageSearchJobList = value["ImageSearchJobList"]["ImageSearchJob"]; for (auto value : allImageSearchJobList) diff --git a/mts/src/model/QueryJobListRequest.cc b/mts/src/model/QueryJobListRequest.cc index 4c43bc0f3..a69ca747d 100644 --- a/mts/src/model/QueryJobListRequest.cc +++ b/mts/src/model/QueryJobListRequest.cc @@ -33,7 +33,7 @@ long QueryJobListRequest::getResourceOwnerId()const void QueryJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryJobListRequest::getResourceOwnerAccount()const void QueryJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryJobListRequest::getJobIds()const void QueryJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryJobListRequest::getOwnerAccount()const void QueryJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryJobListRequest::getOwnerId()const void QueryJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryJobListRequest::getAccessKeyId()const void QueryJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryJobListResult.cc b/mts/src/model/QueryJobListResult.cc index 597d4c2f7..d24baba32 100644 --- a/mts/src/model/QueryJobListResult.cc +++ b/mts/src/model/QueryJobListResult.cc @@ -35,10 +35,13 @@ QueryJobListResult::~QueryJobListResult() void QueryJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryMCJobListRequest.cc b/mts/src/model/QueryMCJobListRequest.cc index d127ac524..e402ffc43 100644 --- a/mts/src/model/QueryMCJobListRequest.cc +++ b/mts/src/model/QueryMCJobListRequest.cc @@ -33,7 +33,7 @@ long QueryMCJobListRequest::getResourceOwnerId()const void QueryMCJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMCJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryMCJobListRequest::getResourceOwnerAccount()const void QueryMCJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMCJobListRequest::getNextPageToken()const @@ -55,7 +55,7 @@ std::string QueryMCJobListRequest::getNextPageToken()const void QueryMCJobListRequest::setNextPageToken(const std::string& nextPageToken) { nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); + setCoreParameter("NextPageToken", nextPageToken); } std::string QueryMCJobListRequest::getStartOfJobCreatedTimeRange()const @@ -66,7 +66,7 @@ std::string QueryMCJobListRequest::getStartOfJobCreatedTimeRange()const void QueryMCJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) { startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); + setCoreParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); } std::string QueryMCJobListRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string QueryMCJobListRequest::getOwnerAccount()const void QueryMCJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMCJobListRequest::getMaximumPageSize()const @@ -88,7 +88,7 @@ long QueryMCJobListRequest::getMaximumPageSize()const void QueryMCJobListRequest::setMaximumPageSize(long maximumPageSize) { maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } long QueryMCJobListRequest::getOwnerId()const @@ -99,7 +99,7 @@ long QueryMCJobListRequest::getOwnerId()const void QueryMCJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMCJobListRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string QueryMCJobListRequest::getAccessKeyId()const void QueryMCJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string QueryMCJobListRequest::getPipelineId()const @@ -121,7 +121,7 @@ std::string QueryMCJobListRequest::getPipelineId()const void QueryMCJobListRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } std::string QueryMCJobListRequest::getJobIds()const @@ -132,7 +132,7 @@ std::string QueryMCJobListRequest::getJobIds()const void QueryMCJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryMCJobListRequest::getState()const @@ -143,7 +143,7 @@ std::string QueryMCJobListRequest::getState()const void QueryMCJobListRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string QueryMCJobListRequest::getEndOfJobCreatedTimeRange()const @@ -154,6 +154,6 @@ std::string QueryMCJobListRequest::getEndOfJobCreatedTimeRange()const void QueryMCJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) { endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); + setCoreParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); } diff --git a/mts/src/model/QueryMCJobListResult.cc b/mts/src/model/QueryMCJobListResult.cc index 507203b47..d31f8dbc5 100644 --- a/mts/src/model/QueryMCJobListResult.cc +++ b/mts/src/model/QueryMCJobListResult.cc @@ -35,10 +35,13 @@ QueryMCJobListResult::~QueryMCJobListResult() void QueryMCJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryMCTemplateListRequest.cc b/mts/src/model/QueryMCTemplateListRequest.cc index b58a192e6..57250b227 100644 --- a/mts/src/model/QueryMCTemplateListRequest.cc +++ b/mts/src/model/QueryMCTemplateListRequest.cc @@ -33,7 +33,7 @@ long QueryMCTemplateListRequest::getResourceOwnerId()const void QueryMCTemplateListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMCTemplateListRequest::getTemplateIds()const @@ -44,7 +44,7 @@ std::string QueryMCTemplateListRequest::getTemplateIds()const void QueryMCTemplateListRequest::setTemplateIds(const std::string& templateIds) { templateIds_ = templateIds; - setParameter("TemplateIds", templateIds); + setCoreParameter("TemplateIds", templateIds); } std::string QueryMCTemplateListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMCTemplateListRequest::getResourceOwnerAccount()const void QueryMCTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMCTemplateListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryMCTemplateListRequest::getOwnerAccount()const void QueryMCTemplateListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMCTemplateListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryMCTemplateListRequest::getOwnerId()const void QueryMCTemplateListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMCTemplateListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMCTemplateListRequest::getAccessKeyId()const void QueryMCTemplateListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMCTemplateListResult.cc b/mts/src/model/QueryMCTemplateListResult.cc index 81e28c42f..e6cc6470f 100644 --- a/mts/src/model/QueryMCTemplateListResult.cc +++ b/mts/src/model/QueryMCTemplateListResult.cc @@ -35,10 +35,13 @@ QueryMCTemplateListResult::~QueryMCTemplateListResult() void QueryMCTemplateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplateList = value["TemplateList"]["Template"]; for (auto value : allTemplateList) diff --git a/mts/src/model/QueryMcuJobRequest.cc b/mts/src/model/QueryMcuJobRequest.cc index f18184fae..38f9820ba 100644 --- a/mts/src/model/QueryMcuJobRequest.cc +++ b/mts/src/model/QueryMcuJobRequest.cc @@ -33,7 +33,7 @@ long QueryMcuJobRequest::getResourceOwnerId()const void QueryMcuJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMcuJobRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryMcuJobRequest::getResourceOwnerAccount()const void QueryMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMcuJobRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMcuJobRequest::getOwnerAccount()const void QueryMcuJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string QueryMcuJobRequest::getJobIds()const @@ -66,7 +66,7 @@ std::string QueryMcuJobRequest::getJobIds()const void QueryMcuJobRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } long QueryMcuJobRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryMcuJobRequest::getOwnerId()const void QueryMcuJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMcuJobRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMcuJobRequest::getAccessKeyId()const void QueryMcuJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMcuJobResult.cc b/mts/src/model/QueryMcuJobResult.cc index f45f77290..e3b7dabb2 100644 --- a/mts/src/model/QueryMcuJobResult.cc +++ b/mts/src/model/QueryMcuJobResult.cc @@ -35,10 +35,13 @@ QueryMcuJobResult::~QueryMcuJobResult() void QueryMcuJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobResult = value["JobResult"]["Job"]; for (auto value : allJobResult) diff --git a/mts/src/model/QueryMcuTemplateRequest.cc b/mts/src/model/QueryMcuTemplateRequest.cc index 2351c6f50..672bf86a7 100644 --- a/mts/src/model/QueryMcuTemplateRequest.cc +++ b/mts/src/model/QueryMcuTemplateRequest.cc @@ -33,7 +33,7 @@ long QueryMcuTemplateRequest::getResourceOwnerId()const void QueryMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMcuTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryMcuTemplateRequest::getResourceOwnerAccount()const void QueryMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMcuTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMcuTemplateRequest::getOwnerAccount()const void QueryMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMcuTemplateRequest::getOwnerId()const @@ -66,7 +66,7 @@ long QueryMcuTemplateRequest::getOwnerId()const void QueryMcuTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMcuTemplateRequest::getTemplateId()const @@ -77,7 +77,7 @@ std::string QueryMcuTemplateRequest::getTemplateId()const void QueryMcuTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string QueryMcuTemplateRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMcuTemplateRequest::getAccessKeyId()const void QueryMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMcuTemplateResult.cc b/mts/src/model/QueryMcuTemplateResult.cc index 9e687909e..4611a5f80 100644 --- a/mts/src/model/QueryMcuTemplateResult.cc +++ b/mts/src/model/QueryMcuTemplateResult.cc @@ -35,10 +35,13 @@ QueryMcuTemplateResult::~QueryMcuTemplateResult() void QueryMcuTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplates = value["Templates"]["Job"]; for (auto value : allTemplates) diff --git a/mts/src/model/QueryMediaCensorJobDetailRequest.cc b/mts/src/model/QueryMediaCensorJobDetailRequest.cc index 46f8643e4..ad92d6ee7 100644 --- a/mts/src/model/QueryMediaCensorJobDetailRequest.cc +++ b/mts/src/model/QueryMediaCensorJobDetailRequest.cc @@ -33,7 +33,7 @@ std::string QueryMediaCensorJobDetailRequest::getJobId()const void QueryMediaCensorJobDetailRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long QueryMediaCensorJobDetailRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryMediaCensorJobDetailRequest::getResourceOwnerId()const void QueryMediaCensorJobDetailRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMediaCensorJobDetailRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMediaCensorJobDetailRequest::getResourceOwnerAccount()const void QueryMediaCensorJobDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMediaCensorJobDetailRequest::getNextPageToken()const @@ -66,7 +66,7 @@ std::string QueryMediaCensorJobDetailRequest::getNextPageToken()const void QueryMediaCensorJobDetailRequest::setNextPageToken(const std::string& nextPageToken) { nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); + setCoreParameter("NextPageToken", nextPageToken); } std::string QueryMediaCensorJobDetailRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string QueryMediaCensorJobDetailRequest::getOwnerAccount()const void QueryMediaCensorJobDetailRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMediaCensorJobDetailRequest::getMaximumPageSize()const @@ -88,7 +88,7 @@ long QueryMediaCensorJobDetailRequest::getMaximumPageSize()const void QueryMediaCensorJobDetailRequest::setMaximumPageSize(long maximumPageSize) { maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } long QueryMediaCensorJobDetailRequest::getOwnerId()const @@ -99,7 +99,7 @@ long QueryMediaCensorJobDetailRequest::getOwnerId()const void QueryMediaCensorJobDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMediaCensorJobDetailRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string QueryMediaCensorJobDetailRequest::getAccessKeyId()const void QueryMediaCensorJobDetailRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMediaCensorJobDetailResult.cc b/mts/src/model/QueryMediaCensorJobDetailResult.cc index c53e1defc..0ed95ca8e 100644 --- a/mts/src/model/QueryMediaCensorJobDetailResult.cc +++ b/mts/src/model/QueryMediaCensorJobDetailResult.cc @@ -35,14 +35,17 @@ QueryMediaCensorJobDetailResult::~QueryMediaCensorJobDetailResult() void QueryMediaCensorJobDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaCensorJobDetailNode = value["MediaCensorJobDetail"]; - if(!mediaCensorJobDetailNode["Id"].isNull()) - mediaCensorJobDetail_.id = mediaCensorJobDetailNode["Id"].asString(); + if(!mediaCensorJobDetailNode["JobId"].isNull()) + mediaCensorJobDetail_.jobId = mediaCensorJobDetailNode["JobId"].asString(); if(!mediaCensorJobDetailNode["UserData"].isNull()) mediaCensorJobDetail_.userData = mediaCensorJobDetailNode["UserData"].asString(); if(!mediaCensorJobDetailNode["PipelineId"].isNull()) @@ -57,6 +60,8 @@ void QueryMediaCensorJobDetailResult::parse(const std::string &payload) mediaCensorJobDetail_.message = mediaCensorJobDetailNode["Message"].asString(); if(!mediaCensorJobDetailNode["CreationTime"].isNull()) mediaCensorJobDetail_.creationTime = mediaCensorJobDetailNode["CreationTime"].asString(); + if(!mediaCensorJobDetailNode["FinishTime"].isNull()) + mediaCensorJobDetail_.finishTime = mediaCensorJobDetailNode["FinishTime"].asString(); auto allCoverImageCensorResults = value["CoverImageCensorResults"]["CoverImageCensorResult"]; for (auto value : allCoverImageCensorResults) { diff --git a/mts/src/model/QueryMediaCensorJobListRequest.cc b/mts/src/model/QueryMediaCensorJobListRequest.cc new file mode 100644 index 000000000..2d9992e86 --- /dev/null +++ b/mts/src/model/QueryMediaCensorJobListRequest.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 + +using AlibabaCloud::Mts::Model::QueryMediaCensorJobListRequest; + +QueryMediaCensorJobListRequest::QueryMediaCensorJobListRequest() : + RpcServiceRequest("mts", "2014-06-18", "QueryMediaCensorJobList") +{} + +QueryMediaCensorJobListRequest::~QueryMediaCensorJobListRequest() +{} + +long QueryMediaCensorJobListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryMediaCensorJobListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryMediaCensorJobListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryMediaCensorJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryMediaCensorJobListRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void QueryMediaCensorJobListRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +std::string QueryMediaCensorJobListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void QueryMediaCensorJobListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string QueryMediaCensorJobListRequest::getStartOfJobCreatedTimeRange()const +{ + return startOfJobCreatedTimeRange_; +} + +void QueryMediaCensorJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) +{ + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setCoreParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); +} + +long QueryMediaCensorJobListRequest::getMaximumPageSize()const +{ + return maximumPageSize_; +} + +void QueryMediaCensorJobListRequest::setMaximumPageSize(long maximumPageSize) +{ + maximumPageSize_ = maximumPageSize; + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); +} + +long QueryMediaCensorJobListRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryMediaCensorJobListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryMediaCensorJobListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryMediaCensorJobListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QueryMediaCensorJobListRequest::getPipelineId()const +{ + return pipelineId_; +} + +void QueryMediaCensorJobListRequest::setPipelineId(const std::string& pipelineId) +{ + pipelineId_ = pipelineId; + setCoreParameter("PipelineId", pipelineId); +} + +std::string QueryMediaCensorJobListRequest::getJobId()const +{ + return jobId_; +} + +void QueryMediaCensorJobListRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setCoreParameter("JobId", jobId); +} + +std::string QueryMediaCensorJobListRequest::getState()const +{ + return state_; +} + +void QueryMediaCensorJobListRequest::setState(const std::string& state) +{ + state_ = state; + setCoreParameter("State", state); +} + +std::string QueryMediaCensorJobListRequest::getEndOfJobCreatedTimeRange()const +{ + return endOfJobCreatedTimeRange_; +} + +void QueryMediaCensorJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) +{ + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setCoreParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); +} + diff --git a/mts/src/model/QueryMediaCensorJobListResult.cc b/mts/src/model/QueryMediaCensorJobListResult.cc new file mode 100644 index 000000000..20779cf06 --- /dev/null +++ b/mts/src/model/QueryMediaCensorJobListResult.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryMediaCensorJobListResult::QueryMediaCensorJobListResult() : + ServiceResult() +{} + +QueryMediaCensorJobListResult::QueryMediaCensorJobListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMediaCensorJobListResult::~QueryMediaCensorJobListResult() +{} + +void QueryMediaCensorJobListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allMediaCensorJobList = value["MediaCensorJobList"]["MediaCensorJob"]; + for (auto value : allMediaCensorJobList) + { + MediaCensorJob mediaCensorJobListObject; + if(!value["JobId"].isNull()) + mediaCensorJobListObject.jobId = value["JobId"].asString(); + if(!value["UserData"].isNull()) + mediaCensorJobListObject.userData = value["UserData"].asString(); + if(!value["PipelineId"].isNull()) + mediaCensorJobListObject.pipelineId = value["PipelineId"].asString(); + if(!value["State"].isNull()) + mediaCensorJobListObject.state = value["State"].asString(); + if(!value["Code"].isNull()) + mediaCensorJobListObject.code = value["Code"].asString(); + if(!value["Suggestion"].isNull()) + mediaCensorJobListObject.suggestion = value["Suggestion"].asString(); + if(!value["Message"].isNull()) + mediaCensorJobListObject.message = value["Message"].asString(); + if(!value["CreationTime"].isNull()) + mediaCensorJobListObject.creationTime = value["CreationTime"].asString(); + if(!value["FinishTime"].isNull()) + mediaCensorJobListObject.finishTime = value["FinishTime"].asString(); + auto allCoverImageCensorResults = value["CoverImageCensorResults"]["CoverImageCensorResult"]; + for (auto value : allCoverImageCensorResults) + { + MediaCensorJob::CoverImageCensorResult coverImageCensorResultsObject; + if(!value["Location"].isNull()) + coverImageCensorResultsObject.location = value["Location"].asString(); + if(!value["Bucket"].isNull()) + coverImageCensorResultsObject.bucket = value["Bucket"].asString(); + if(!value["Object"].isNull()) + coverImageCensorResultsObject.object = value["Object"].asString(); + auto allResults = value["Results"]["Result"]; + for (auto value : allResults) + { + MediaCensorJob::CoverImageCensorResult::Result resultsObject; + if(!value["Rate"].isNull()) + resultsObject.rate = value["Rate"].asString(); + if(!value["Scene"].isNull()) + resultsObject.scene = value["Scene"].asString(); + if(!value["Label"].isNull()) + resultsObject.label = value["Label"].asString(); + if(!value["Suggestion"].isNull()) + resultsObject.suggestion = value["Suggestion"].asString(); + coverImageCensorResultsObject.results.push_back(resultsObject); + } + mediaCensorJobListObject.coverImageCensorResults.push_back(coverImageCensorResultsObject); + } + auto titleCensorResultNode = value["TitleCensorResult"]; + if(!titleCensorResultNode["Rate"].isNull()) + mediaCensorJobListObject.titleCensorResult.rate = titleCensorResultNode["Rate"].asString(); + if(!titleCensorResultNode["Scene"].isNull()) + mediaCensorJobListObject.titleCensorResult.scene = titleCensorResultNode["Scene"].asString(); + if(!titleCensorResultNode["Label"].isNull()) + mediaCensorJobListObject.titleCensorResult.label = titleCensorResultNode["Label"].asString(); + if(!titleCensorResultNode["Suggestion"].isNull()) + mediaCensorJobListObject.titleCensorResult.suggestion = titleCensorResultNode["Suggestion"].asString(); + auto descCensorResultNode = value["DescCensorResult"]; + if(!descCensorResultNode["Rate"].isNull()) + mediaCensorJobListObject.descCensorResult.rate = descCensorResultNode["Rate"].asString(); + if(!descCensorResultNode["Scene"].isNull()) + mediaCensorJobListObject.descCensorResult.scene = descCensorResultNode["Scene"].asString(); + if(!descCensorResultNode["Label"].isNull()) + mediaCensorJobListObject.descCensorResult.label = descCensorResultNode["Label"].asString(); + if(!descCensorResultNode["Suggestion"].isNull()) + mediaCensorJobListObject.descCensorResult.suggestion = descCensorResultNode["Suggestion"].asString(); + auto barrageCensorResultNode = value["BarrageCensorResult"]; + if(!barrageCensorResultNode["Rate"].isNull()) + mediaCensorJobListObject.barrageCensorResult.rate = barrageCensorResultNode["Rate"].asString(); + if(!barrageCensorResultNode["Scene"].isNull()) + mediaCensorJobListObject.barrageCensorResult.scene = barrageCensorResultNode["Scene"].asString(); + if(!barrageCensorResultNode["Label"].isNull()) + mediaCensorJobListObject.barrageCensorResult.label = barrageCensorResultNode["Label"].asString(); + if(!barrageCensorResultNode["Suggestion"].isNull()) + mediaCensorJobListObject.barrageCensorResult.suggestion = barrageCensorResultNode["Suggestion"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Bucket"].isNull()) + mediaCensorJobListObject.input.bucket = inputNode["Bucket"].asString(); + if(!inputNode["Location"].isNull()) + mediaCensorJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Object"].isNull()) + mediaCensorJobListObject.input.object = inputNode["Object"].asString(); + auto videoCensorConfigNode = value["VideoCensorConfig"]; + if(!videoCensorConfigNode["BizType"].isNull()) + mediaCensorJobListObject.videoCensorConfig.bizType = videoCensorConfigNode["BizType"].asString(); + if(!videoCensorConfigNode["VideoCensor"].isNull()) + mediaCensorJobListObject.videoCensorConfig.videoCensor = videoCensorConfigNode["VideoCensor"].asString(); + auto outputFileNode = videoCensorConfigNode["OutputFile"]; + if(!outputFileNode["Bucket"].isNull()) + mediaCensorJobListObject.videoCensorConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + if(!outputFileNode["Location"].isNull()) + mediaCensorJobListObject.videoCensorConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Object"].isNull()) + mediaCensorJobListObject.videoCensorConfig.outputFile.object = outputFileNode["Object"].asString(); + auto vensorCensorResultNode = value["VensorCensorResult"]; + if(!vensorCensorResultNode["NextPageToken"].isNull()) + mediaCensorJobListObject.vensorCensorResult.nextPageToken = vensorCensorResultNode["NextPageToken"].asString(); + auto allCensorResults = value["CensorResults"]["CensorResult"]; + for (auto value : allCensorResults) + { + MediaCensorJob::VensorCensorResult::CensorResult censorResultObject; + if(!value["Rate"].isNull()) + censorResultObject.rate = value["Rate"].asString(); + if(!value["Scene"].isNull()) + censorResultObject.scene = value["Scene"].asString(); + if(!value["Label"].isNull()) + censorResultObject.label = value["Label"].asString(); + if(!value["Suggestion"].isNull()) + censorResultObject.suggestion = value["Suggestion"].asString(); + mediaCensorJobListObject.vensorCensorResult.censorResults.push_back(censorResultObject); + } + auto allVideoTimelines = value["VideoTimelines"]["VideoTimeline"]; + for (auto value : allVideoTimelines) + { + MediaCensorJob::VensorCensorResult::VideoTimeline videoTimelineObject; + if(!value["Object"].isNull()) + videoTimelineObject.object = value["Object"].asString(); + if(!value["Timestamp"].isNull()) + videoTimelineObject.timestamp = value["Timestamp"].asString(); + auto allCensorResults1 = value["CensorResults"]["CensorResult"]; + for (auto value : allCensorResults1) + { + MediaCensorJob::VensorCensorResult::VideoTimeline::CensorResult2 censorResults1Object; + if(!value["Rate"].isNull()) + censorResults1Object.rate = value["Rate"].asString(); + if(!value["Scene"].isNull()) + censorResults1Object.scene = value["Scene"].asString(); + if(!value["Label"].isNull()) + censorResults1Object.label = value["Label"].asString(); + if(!value["Suggestion"].isNull()) + censorResults1Object.suggestion = value["Suggestion"].asString(); + videoTimelineObject.censorResults1.push_back(censorResults1Object); + } + mediaCensorJobListObject.vensorCensorResult.videoTimelines.push_back(videoTimelineObject); + } + mediaCensorJobList_.push_back(mediaCensorJobListObject); + } + auto allNonExistIds = value["NonExistIds"]["String"]; + for (const auto &item : allNonExistIds) + nonExistIds_.push_back(item.asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +std::vector QueryMediaCensorJobListResult::getMediaCensorJobList()const +{ + return mediaCensorJobList_; +} + +std::string QueryMediaCensorJobListResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector QueryMediaCensorJobListResult::getNonExistIds()const +{ + return nonExistIds_; +} + diff --git a/mts/src/model/QueryMediaDetailJobListRequest.cc b/mts/src/model/QueryMediaDetailJobListRequest.cc index f62444046..757bc5542 100644 --- a/mts/src/model/QueryMediaDetailJobListRequest.cc +++ b/mts/src/model/QueryMediaDetailJobListRequest.cc @@ -33,7 +33,7 @@ long QueryMediaDetailJobListRequest::getResourceOwnerId()const void QueryMediaDetailJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMediaDetailJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryMediaDetailJobListRequest::getResourceOwnerAccount()const void QueryMediaDetailJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMediaDetailJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryMediaDetailJobListRequest::getJobIds()const void QueryMediaDetailJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryMediaDetailJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryMediaDetailJobListRequest::getOwnerAccount()const void QueryMediaDetailJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMediaDetailJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryMediaDetailJobListRequest::getOwnerId()const void QueryMediaDetailJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMediaDetailJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMediaDetailJobListRequest::getAccessKeyId()const void QueryMediaDetailJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMediaDetailJobListResult.cc b/mts/src/model/QueryMediaDetailJobListResult.cc index e6d356b71..a02375cae 100644 --- a/mts/src/model/QueryMediaDetailJobListResult.cc +++ b/mts/src/model/QueryMediaDetailJobListResult.cc @@ -35,10 +35,13 @@ QueryMediaDetailJobListResult::~QueryMediaDetailJobListResult() void QueryMediaDetailJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryMediaFpDeleteJobListRequest.cc b/mts/src/model/QueryMediaFpDeleteJobListRequest.cc index 10cb08c6d..9d9c8fa1b 100644 --- a/mts/src/model/QueryMediaFpDeleteJobListRequest.cc +++ b/mts/src/model/QueryMediaFpDeleteJobListRequest.cc @@ -33,7 +33,7 @@ long QueryMediaFpDeleteJobListRequest::getResourceOwnerId()const void QueryMediaFpDeleteJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMediaFpDeleteJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryMediaFpDeleteJobListRequest::getResourceOwnerAccount()const void QueryMediaFpDeleteJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMediaFpDeleteJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryMediaFpDeleteJobListRequest::getJobIds()const void QueryMediaFpDeleteJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryMediaFpDeleteJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryMediaFpDeleteJobListRequest::getOwnerAccount()const void QueryMediaFpDeleteJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMediaFpDeleteJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryMediaFpDeleteJobListRequest::getOwnerId()const void QueryMediaFpDeleteJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMediaFpDeleteJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMediaFpDeleteJobListRequest::getAccessKeyId()const void QueryMediaFpDeleteJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMediaFpDeleteJobListResult.cc b/mts/src/model/QueryMediaFpDeleteJobListResult.cc index 4f167db0c..86eab6608 100644 --- a/mts/src/model/QueryMediaFpDeleteJobListResult.cc +++ b/mts/src/model/QueryMediaFpDeleteJobListResult.cc @@ -35,10 +35,13 @@ QueryMediaFpDeleteJobListResult::~QueryMediaFpDeleteJobListResult() void QueryMediaFpDeleteJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaFpDeleteJobList = value["MediaFpDeleteJobList"]["MediaFpDeleteJob"]; for (auto value : allMediaFpDeleteJobList) diff --git a/mts/src/model/QueryMediaInfoJobListRequest.cc b/mts/src/model/QueryMediaInfoJobListRequest.cc index 1f797c438..b0a2058db 100644 --- a/mts/src/model/QueryMediaInfoJobListRequest.cc +++ b/mts/src/model/QueryMediaInfoJobListRequest.cc @@ -33,7 +33,7 @@ long QueryMediaInfoJobListRequest::getResourceOwnerId()const void QueryMediaInfoJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMediaInfoJobListRequest::getMediaInfoJobIds()const @@ -44,7 +44,7 @@ std::string QueryMediaInfoJobListRequest::getMediaInfoJobIds()const void QueryMediaInfoJobListRequest::setMediaInfoJobIds(const std::string& mediaInfoJobIds) { mediaInfoJobIds_ = mediaInfoJobIds; - setParameter("MediaInfoJobIds", mediaInfoJobIds); + setCoreParameter("MediaInfoJobIds", mediaInfoJobIds); } std::string QueryMediaInfoJobListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMediaInfoJobListRequest::getResourceOwnerAccount()const void QueryMediaInfoJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMediaInfoJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryMediaInfoJobListRequest::getOwnerAccount()const void QueryMediaInfoJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMediaInfoJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryMediaInfoJobListRequest::getOwnerId()const void QueryMediaInfoJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMediaInfoJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMediaInfoJobListRequest::getAccessKeyId()const void QueryMediaInfoJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMediaInfoJobListResult.cc b/mts/src/model/QueryMediaInfoJobListResult.cc index 884994a99..e707152c6 100644 --- a/mts/src/model/QueryMediaInfoJobListResult.cc +++ b/mts/src/model/QueryMediaInfoJobListResult.cc @@ -35,10 +35,13 @@ QueryMediaInfoJobListResult::~QueryMediaInfoJobListResult() void QueryMediaInfoJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaInfoJobList = value["MediaInfoJobList"]["MediaInfoJob"]; for (auto value : allMediaInfoJobList) diff --git a/mts/src/model/QueryMediaListByURLRequest.cc b/mts/src/model/QueryMediaListByURLRequest.cc index ffee7bac8..d0e83013d 100644 --- a/mts/src/model/QueryMediaListByURLRequest.cc +++ b/mts/src/model/QueryMediaListByURLRequest.cc @@ -33,7 +33,7 @@ long QueryMediaListByURLRequest::getResourceOwnerId()const void QueryMediaListByURLRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool QueryMediaListByURLRequest::getIncludeSummaryList()const @@ -44,7 +44,7 @@ bool QueryMediaListByURLRequest::getIncludeSummaryList()const void QueryMediaListByURLRequest::setIncludeSummaryList(bool includeSummaryList) { includeSummaryList_ = includeSummaryList; - setParameter("IncludeSummaryList", includeSummaryList ? "true" : "false"); + setCoreParameter("IncludeSummaryList", includeSummaryList ? "true" : "false"); } std::string QueryMediaListByURLRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMediaListByURLRequest::getResourceOwnerAccount()const void QueryMediaListByURLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } bool QueryMediaListByURLRequest::getIncludeSnapshotList()const @@ -66,7 +66,7 @@ bool QueryMediaListByURLRequest::getIncludeSnapshotList()const void QueryMediaListByURLRequest::setIncludeSnapshotList(bool includeSnapshotList) { includeSnapshotList_ = includeSnapshotList; - setParameter("IncludeSnapshotList", includeSnapshotList ? "true" : "false"); + setCoreParameter("IncludeSnapshotList", includeSnapshotList ? "true" : "false"); } std::string QueryMediaListByURLRequest::getFileURLs()const @@ -77,7 +77,7 @@ std::string QueryMediaListByURLRequest::getFileURLs()const void QueryMediaListByURLRequest::setFileURLs(const std::string& fileURLs) { fileURLs_ = fileURLs; - setParameter("FileURLs", fileURLs); + setCoreParameter("FileURLs", fileURLs); } std::string QueryMediaListByURLRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string QueryMediaListByURLRequest::getOwnerAccount()const void QueryMediaListByURLRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMediaListByURLRequest::getOwnerId()const @@ -99,7 +99,7 @@ long QueryMediaListByURLRequest::getOwnerId()const void QueryMediaListByURLRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool QueryMediaListByURLRequest::getIncludePlayList()const @@ -110,7 +110,7 @@ bool QueryMediaListByURLRequest::getIncludePlayList()const void QueryMediaListByURLRequest::setIncludePlayList(bool includePlayList) { includePlayList_ = includePlayList; - setParameter("IncludePlayList", includePlayList ? "true" : "false"); + setCoreParameter("IncludePlayList", includePlayList ? "true" : "false"); } std::string QueryMediaListByURLRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string QueryMediaListByURLRequest::getAccessKeyId()const void QueryMediaListByURLRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool QueryMediaListByURLRequest::getIncludeMediaInfo()const @@ -132,6 +132,6 @@ bool QueryMediaListByURLRequest::getIncludeMediaInfo()const void QueryMediaListByURLRequest::setIncludeMediaInfo(bool includeMediaInfo) { includeMediaInfo_ = includeMediaInfo; - setParameter("IncludeMediaInfo", includeMediaInfo ? "true" : "false"); + setCoreParameter("IncludeMediaInfo", includeMediaInfo ? "true" : "false"); } diff --git a/mts/src/model/QueryMediaListByURLResult.cc b/mts/src/model/QueryMediaListByURLResult.cc index 6788a6a49..a34c47c00 100644 --- a/mts/src/model/QueryMediaListByURLResult.cc +++ b/mts/src/model/QueryMediaListByURLResult.cc @@ -35,10 +35,13 @@ QueryMediaListByURLResult::~QueryMediaListByURLResult() void QueryMediaListByURLResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaList = value["MediaList"]["Media"]; for (auto value : allMediaList) diff --git a/mts/src/model/QueryMediaListRequest.cc b/mts/src/model/QueryMediaListRequest.cc index ca1b66960..356751e40 100644 --- a/mts/src/model/QueryMediaListRequest.cc +++ b/mts/src/model/QueryMediaListRequest.cc @@ -33,7 +33,7 @@ long QueryMediaListRequest::getResourceOwnerId()const void QueryMediaListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool QueryMediaListRequest::getIncludeSummaryList()const @@ -44,7 +44,7 @@ bool QueryMediaListRequest::getIncludeSummaryList()const void QueryMediaListRequest::setIncludeSummaryList(bool includeSummaryList) { includeSummaryList_ = includeSummaryList; - setParameter("IncludeSummaryList", includeSummaryList ? "true" : "false"); + setCoreParameter("IncludeSummaryList", includeSummaryList ? "true" : "false"); } std::string QueryMediaListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMediaListRequest::getResourceOwnerAccount()const void QueryMediaListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } bool QueryMediaListRequest::getIncludeSnapshotList()const @@ -66,7 +66,7 @@ bool QueryMediaListRequest::getIncludeSnapshotList()const void QueryMediaListRequest::setIncludeSnapshotList(bool includeSnapshotList) { includeSnapshotList_ = includeSnapshotList; - setParameter("IncludeSnapshotList", includeSnapshotList ? "true" : "false"); + setCoreParameter("IncludeSnapshotList", includeSnapshotList ? "true" : "false"); } std::string QueryMediaListRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string QueryMediaListRequest::getOwnerAccount()const void QueryMediaListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string QueryMediaListRequest::getMediaIds()const @@ -88,7 +88,7 @@ std::string QueryMediaListRequest::getMediaIds()const void QueryMediaListRequest::setMediaIds(const std::string& mediaIds) { mediaIds_ = mediaIds; - setParameter("MediaIds", mediaIds); + setCoreParameter("MediaIds", mediaIds); } long QueryMediaListRequest::getOwnerId()const @@ -99,7 +99,7 @@ long QueryMediaListRequest::getOwnerId()const void QueryMediaListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool QueryMediaListRequest::getIncludePlayList()const @@ -110,7 +110,7 @@ bool QueryMediaListRequest::getIncludePlayList()const void QueryMediaListRequest::setIncludePlayList(bool includePlayList) { includePlayList_ = includePlayList; - setParameter("IncludePlayList", includePlayList ? "true" : "false"); + setCoreParameter("IncludePlayList", includePlayList ? "true" : "false"); } std::string QueryMediaListRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string QueryMediaListRequest::getAccessKeyId()const void QueryMediaListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool QueryMediaListRequest::getIncludeMediaInfo()const @@ -132,6 +132,6 @@ bool QueryMediaListRequest::getIncludeMediaInfo()const void QueryMediaListRequest::setIncludeMediaInfo(bool includeMediaInfo) { includeMediaInfo_ = includeMediaInfo; - setParameter("IncludeMediaInfo", includeMediaInfo ? "true" : "false"); + setCoreParameter("IncludeMediaInfo", includeMediaInfo ? "true" : "false"); } diff --git a/mts/src/model/QueryMediaListResult.cc b/mts/src/model/QueryMediaListResult.cc index a5a44acf3..1c398b9e5 100644 --- a/mts/src/model/QueryMediaListResult.cc +++ b/mts/src/model/QueryMediaListResult.cc @@ -35,10 +35,13 @@ QueryMediaListResult::~QueryMediaListResult() void QueryMediaListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaList = value["MediaList"]["Media"]; for (auto value : allMediaList) diff --git a/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc b/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc index 505bd68be..8d1edeb40 100644 --- a/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc +++ b/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc @@ -33,7 +33,7 @@ std::string QueryMediaWorkflowExecutionListRequest::getRunIds()const void QueryMediaWorkflowExecutionListRequest::setRunIds(const std::string& runIds) { runIds_ = runIds; - setParameter("RunIds", runIds); + setCoreParameter("RunIds", runIds); } long QueryMediaWorkflowExecutionListRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryMediaWorkflowExecutionListRequest::getResourceOwnerId()const void QueryMediaWorkflowExecutionListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMediaWorkflowExecutionListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMediaWorkflowExecutionListRequest::getResourceOwnerAccount()con void QueryMediaWorkflowExecutionListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMediaWorkflowExecutionListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryMediaWorkflowExecutionListRequest::getOwnerAccount()const void QueryMediaWorkflowExecutionListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMediaWorkflowExecutionListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryMediaWorkflowExecutionListRequest::getOwnerId()const void QueryMediaWorkflowExecutionListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMediaWorkflowExecutionListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMediaWorkflowExecutionListRequest::getAccessKeyId()const void QueryMediaWorkflowExecutionListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMediaWorkflowExecutionListResult.cc b/mts/src/model/QueryMediaWorkflowExecutionListResult.cc index c79ac0e89..9305675f7 100644 --- a/mts/src/model/QueryMediaWorkflowExecutionListResult.cc +++ b/mts/src/model/QueryMediaWorkflowExecutionListResult.cc @@ -35,10 +35,13 @@ QueryMediaWorkflowExecutionListResult::~QueryMediaWorkflowExecutionListResult() void QueryMediaWorkflowExecutionListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaWorkflowExecutionList = value["MediaWorkflowExecutionList"]["MediaWorkflowExecution"]; for (auto value : allMediaWorkflowExecutionList) diff --git a/mts/src/model/QueryMediaWorkflowListRequest.cc b/mts/src/model/QueryMediaWorkflowListRequest.cc index c95fca831..954d9d188 100644 --- a/mts/src/model/QueryMediaWorkflowListRequest.cc +++ b/mts/src/model/QueryMediaWorkflowListRequest.cc @@ -33,7 +33,7 @@ std::string QueryMediaWorkflowListRequest::getMediaWorkflowIds()const void QueryMediaWorkflowListRequest::setMediaWorkflowIds(const std::string& mediaWorkflowIds) { mediaWorkflowIds_ = mediaWorkflowIds; - setParameter("MediaWorkflowIds", mediaWorkflowIds); + setCoreParameter("MediaWorkflowIds", mediaWorkflowIds); } long QueryMediaWorkflowListRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long QueryMediaWorkflowListRequest::getResourceOwnerId()const void QueryMediaWorkflowListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryMediaWorkflowListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryMediaWorkflowListRequest::getResourceOwnerAccount()const void QueryMediaWorkflowListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryMediaWorkflowListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryMediaWorkflowListRequest::getOwnerAccount()const void QueryMediaWorkflowListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryMediaWorkflowListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryMediaWorkflowListRequest::getOwnerId()const void QueryMediaWorkflowListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryMediaWorkflowListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryMediaWorkflowListRequest::getAccessKeyId()const void QueryMediaWorkflowListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryMediaWorkflowListResult.cc b/mts/src/model/QueryMediaWorkflowListResult.cc index 69bebd7cf..ba9e00e9e 100644 --- a/mts/src/model/QueryMediaWorkflowListResult.cc +++ b/mts/src/model/QueryMediaWorkflowListResult.cc @@ -35,10 +35,13 @@ QueryMediaWorkflowListResult::~QueryMediaWorkflowListResult() void QueryMediaWorkflowListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaWorkflowList = value["MediaWorkflowList"]["MediaWorkflow"]; for (auto value : allMediaWorkflowList) diff --git a/mts/src/model/QueryPipelineListRequest.cc b/mts/src/model/QueryPipelineListRequest.cc index b4a9038ee..9963779d8 100644 --- a/mts/src/model/QueryPipelineListRequest.cc +++ b/mts/src/model/QueryPipelineListRequest.cc @@ -33,7 +33,7 @@ long QueryPipelineListRequest::getResourceOwnerId()const void QueryPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryPipelineListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryPipelineListRequest::getResourceOwnerAccount()const void QueryPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryPipelineListRequest::getPipelineIds()const @@ -55,7 +55,7 @@ std::string QueryPipelineListRequest::getPipelineIds()const void QueryPipelineListRequest::setPipelineIds(const std::string& pipelineIds) { pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); + setCoreParameter("PipelineIds", pipelineIds); } std::string QueryPipelineListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryPipelineListRequest::getOwnerAccount()const void QueryPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryPipelineListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryPipelineListRequest::getOwnerId()const void QueryPipelineListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryPipelineListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryPipelineListRequest::getAccessKeyId()const void QueryPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryPipelineListResult.cc b/mts/src/model/QueryPipelineListResult.cc index 23dd99e91..30c4c7423 100644 --- a/mts/src/model/QueryPipelineListResult.cc +++ b/mts/src/model/QueryPipelineListResult.cc @@ -35,10 +35,13 @@ QueryPipelineListResult::~QueryPipelineListResult() void QueryPipelineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/QueryPornJobListRequest.cc b/mts/src/model/QueryPornJobListRequest.cc index 8ee048137..56d6eda88 100644 --- a/mts/src/model/QueryPornJobListRequest.cc +++ b/mts/src/model/QueryPornJobListRequest.cc @@ -33,7 +33,7 @@ long QueryPornJobListRequest::getResourceOwnerId()const void QueryPornJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryPornJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryPornJobListRequest::getResourceOwnerAccount()const void QueryPornJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryPornJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryPornJobListRequest::getJobIds()const void QueryPornJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryPornJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryPornJobListRequest::getOwnerAccount()const void QueryPornJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryPornJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryPornJobListRequest::getOwnerId()const void QueryPornJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryPornJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryPornJobListRequest::getAccessKeyId()const void QueryPornJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryPornJobListResult.cc b/mts/src/model/QueryPornJobListResult.cc index 617a22fef..91481a3d3 100644 --- a/mts/src/model/QueryPornJobListResult.cc +++ b/mts/src/model/QueryPornJobListResult.cc @@ -35,10 +35,13 @@ QueryPornJobListResult::~QueryPornJobListResult() void QueryPornJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPornJobList = value["PornJobList"]["PornJob"]; for (auto value : allPornJobList) diff --git a/mts/src/model/QueryPornPipelineListRequest.cc b/mts/src/model/QueryPornPipelineListRequest.cc index d8c783a8c..a4bad3e1e 100644 --- a/mts/src/model/QueryPornPipelineListRequest.cc +++ b/mts/src/model/QueryPornPipelineListRequest.cc @@ -33,7 +33,7 @@ long QueryPornPipelineListRequest::getResourceOwnerId()const void QueryPornPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryPornPipelineListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryPornPipelineListRequest::getResourceOwnerAccount()const void QueryPornPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryPornPipelineListRequest::getPipelineIds()const @@ -55,7 +55,7 @@ std::string QueryPornPipelineListRequest::getPipelineIds()const void QueryPornPipelineListRequest::setPipelineIds(const std::string& pipelineIds) { pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); + setCoreParameter("PipelineIds", pipelineIds); } std::string QueryPornPipelineListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryPornPipelineListRequest::getOwnerAccount()const void QueryPornPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryPornPipelineListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryPornPipelineListRequest::getOwnerId()const void QueryPornPipelineListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryPornPipelineListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryPornPipelineListRequest::getAccessKeyId()const void QueryPornPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryPornPipelineListResult.cc b/mts/src/model/QueryPornPipelineListResult.cc index ade95fbba..c318a3b56 100644 --- a/mts/src/model/QueryPornPipelineListResult.cc +++ b/mts/src/model/QueryPornPipelineListResult.cc @@ -35,10 +35,13 @@ QueryPornPipelineListResult::~QueryPornPipelineListResult() void QueryPornPipelineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/QuerySnapshotJobListRequest.cc b/mts/src/model/QuerySnapshotJobListRequest.cc index 4bc4301c9..0797790bd 100644 --- a/mts/src/model/QuerySnapshotJobListRequest.cc +++ b/mts/src/model/QuerySnapshotJobListRequest.cc @@ -33,7 +33,7 @@ long QuerySnapshotJobListRequest::getResourceOwnerId()const void QuerySnapshotJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QuerySnapshotJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,18 @@ std::string QuerySnapshotJobListRequest::getResourceOwnerAccount()const void QuerySnapshotJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QuerySnapshotJobListRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void QuerySnapshotJobListRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); } std::string QuerySnapshotJobListRequest::getSnapshotJobIds()const @@ -55,7 +66,18 @@ std::string QuerySnapshotJobListRequest::getSnapshotJobIds()const void QuerySnapshotJobListRequest::setSnapshotJobIds(const std::string& snapshotJobIds) { snapshotJobIds_ = snapshotJobIds; - setParameter("SnapshotJobIds", snapshotJobIds); + setCoreParameter("SnapshotJobIds", snapshotJobIds); +} + +std::string QuerySnapshotJobListRequest::getStartOfJobCreatedTimeRange()const +{ + return startOfJobCreatedTimeRange_; +} + +void QuerySnapshotJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) +{ + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setCoreParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); } std::string QuerySnapshotJobListRequest::getOwnerAccount()const @@ -66,7 +88,18 @@ std::string QuerySnapshotJobListRequest::getOwnerAccount()const void QuerySnapshotJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); +} + +long QuerySnapshotJobListRequest::getMaximumPageSize()const +{ + return maximumPageSize_; +} + +void QuerySnapshotJobListRequest::setMaximumPageSize(long maximumPageSize) +{ + maximumPageSize_ = maximumPageSize; + setCoreParameter("MaximumPageSize", std::to_string(maximumPageSize)); } long QuerySnapshotJobListRequest::getOwnerId()const @@ -77,7 +110,7 @@ long QuerySnapshotJobListRequest::getOwnerId()const void QuerySnapshotJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QuerySnapshotJobListRequest::getAccessKeyId()const @@ -88,6 +121,39 @@ std::string QuerySnapshotJobListRequest::getAccessKeyId()const void QuerySnapshotJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QuerySnapshotJobListRequest::getPipelineId()const +{ + return pipelineId_; +} + +void QuerySnapshotJobListRequest::setPipelineId(const std::string& pipelineId) +{ + pipelineId_ = pipelineId; + setCoreParameter("PipelineId", pipelineId); +} + +std::string QuerySnapshotJobListRequest::getState()const +{ + return state_; +} + +void QuerySnapshotJobListRequest::setState(const std::string& state) +{ + state_ = state; + setCoreParameter("State", state); +} + +std::string QuerySnapshotJobListRequest::getEndOfJobCreatedTimeRange()const +{ + return endOfJobCreatedTimeRange_; +} + +void QuerySnapshotJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) +{ + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setCoreParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); } diff --git a/mts/src/model/QuerySnapshotJobListResult.cc b/mts/src/model/QuerySnapshotJobListResult.cc index b3e5bf498..e5cc51060 100644 --- a/mts/src/model/QuerySnapshotJobListResult.cc +++ b/mts/src/model/QuerySnapshotJobListResult.cc @@ -35,10 +35,13 @@ QuerySnapshotJobListResult::~QuerySnapshotJobListResult() void QuerySnapshotJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSnapshotJobList = value["SnapshotJobList"]["SnapshotJob"]; for (auto value : allSnapshotJobList) @@ -133,6 +136,8 @@ void QuerySnapshotJobListResult::parse(const std::string &payload) auto allNonExistSnapshotJobIds = value["NonExistSnapshotJobIds"]["String"]; for (const auto &item : allNonExistSnapshotJobIds) nonExistSnapshotJobIds_.push_back(item.asString()); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); } @@ -146,3 +151,8 @@ std::vector QuerySnapshotJobListResult::getNonExistSnapshotJobIds() return nonExistSnapshotJobIds_; } +std::string QuerySnapshotJobListResult::getNextPageToken()const +{ + return nextPageToken_; +} + diff --git a/mts/src/model/QuerySubtitleJobListRequest.cc b/mts/src/model/QuerySubtitleJobListRequest.cc index 68eaf936b..2a1789928 100644 --- a/mts/src/model/QuerySubtitleJobListRequest.cc +++ b/mts/src/model/QuerySubtitleJobListRequest.cc @@ -33,7 +33,7 @@ long QuerySubtitleJobListRequest::getResourceOwnerId()const void QuerySubtitleJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QuerySubtitleJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QuerySubtitleJobListRequest::getResourceOwnerAccount()const void QuerySubtitleJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QuerySubtitleJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QuerySubtitleJobListRequest::getJobIds()const void QuerySubtitleJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QuerySubtitleJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QuerySubtitleJobListRequest::getOwnerAccount()const void QuerySubtitleJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QuerySubtitleJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QuerySubtitleJobListRequest::getOwnerId()const void QuerySubtitleJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QuerySubtitleJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QuerySubtitleJobListRequest::getAccessKeyId()const void QuerySubtitleJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QuerySubtitleJobListResult.cc b/mts/src/model/QuerySubtitleJobListResult.cc index 86d69dfef..4bf0e8148 100644 --- a/mts/src/model/QuerySubtitleJobListResult.cc +++ b/mts/src/model/QuerySubtitleJobListResult.cc @@ -35,10 +35,13 @@ QuerySubtitleJobListResult::~QuerySubtitleJobListResult() void QuerySubtitleJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryTagJobListRequest.cc b/mts/src/model/QueryTagJobListRequest.cc index b63e5ca42..f19c71d85 100644 --- a/mts/src/model/QueryTagJobListRequest.cc +++ b/mts/src/model/QueryTagJobListRequest.cc @@ -33,7 +33,7 @@ long QueryTagJobListRequest::getResourceOwnerId()const void QueryTagJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryTagJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryTagJobListRequest::getResourceOwnerAccount()const void QueryTagJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryTagJobListRequest::getTagJobIds()const @@ -55,7 +55,7 @@ std::string QueryTagJobListRequest::getTagJobIds()const void QueryTagJobListRequest::setTagJobIds(const std::string& tagJobIds) { tagJobIds_ = tagJobIds; - setParameter("TagJobIds", tagJobIds); + setCoreParameter("TagJobIds", tagJobIds); } std::string QueryTagJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryTagJobListRequest::getOwnerAccount()const void QueryTagJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryTagJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryTagJobListRequest::getOwnerId()const void QueryTagJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryTagJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryTagJobListRequest::getAccessKeyId()const void QueryTagJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryTagJobListResult.cc b/mts/src/model/QueryTagJobListResult.cc index f3ca7a126..47c70f069 100644 --- a/mts/src/model/QueryTagJobListResult.cc +++ b/mts/src/model/QueryTagJobListResult.cc @@ -35,10 +35,13 @@ QueryTagJobListResult::~QueryTagJobListResult() void QueryTagJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagJobList = value["TagJobList"]["TagJob"]; for (auto value : allTagJobList) diff --git a/mts/src/model/QueryTemplateListRequest.cc b/mts/src/model/QueryTemplateListRequest.cc index 84d13f00d..0d480b4b4 100644 --- a/mts/src/model/QueryTemplateListRequest.cc +++ b/mts/src/model/QueryTemplateListRequest.cc @@ -33,7 +33,7 @@ long QueryTemplateListRequest::getResourceOwnerId()const void QueryTemplateListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryTemplateListRequest::getTemplateIds()const @@ -44,7 +44,7 @@ std::string QueryTemplateListRequest::getTemplateIds()const void QueryTemplateListRequest::setTemplateIds(const std::string& templateIds) { templateIds_ = templateIds; - setParameter("TemplateIds", templateIds); + setCoreParameter("TemplateIds", templateIds); } std::string QueryTemplateListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryTemplateListRequest::getResourceOwnerAccount()const void QueryTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryTemplateListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryTemplateListRequest::getOwnerAccount()const void QueryTemplateListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryTemplateListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryTemplateListRequest::getOwnerId()const void QueryTemplateListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryTemplateListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryTemplateListRequest::getAccessKeyId()const void QueryTemplateListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryTemplateListResult.cc b/mts/src/model/QueryTemplateListResult.cc index dd852000c..94f46d884 100644 --- a/mts/src/model/QueryTemplateListResult.cc +++ b/mts/src/model/QueryTemplateListResult.cc @@ -35,10 +35,13 @@ QueryTemplateListResult::~QueryTemplateListResult() void QueryTemplateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplateList = value["TemplateList"]["Template"]; for (auto value : allTemplateList) diff --git a/mts/src/model/QueryTerrorismJobListRequest.cc b/mts/src/model/QueryTerrorismJobListRequest.cc index c08026241..106247a0b 100644 --- a/mts/src/model/QueryTerrorismJobListRequest.cc +++ b/mts/src/model/QueryTerrorismJobListRequest.cc @@ -33,7 +33,7 @@ long QueryTerrorismJobListRequest::getResourceOwnerId()const void QueryTerrorismJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryTerrorismJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryTerrorismJobListRequest::getResourceOwnerAccount()const void QueryTerrorismJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryTerrorismJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryTerrorismJobListRequest::getJobIds()const void QueryTerrorismJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryTerrorismJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryTerrorismJobListRequest::getOwnerAccount()const void QueryTerrorismJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryTerrorismJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryTerrorismJobListRequest::getOwnerId()const void QueryTerrorismJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryTerrorismJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryTerrorismJobListRequest::getAccessKeyId()const void QueryTerrorismJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryTerrorismJobListResult.cc b/mts/src/model/QueryTerrorismJobListResult.cc index 57237d649..54ef63e76 100644 --- a/mts/src/model/QueryTerrorismJobListResult.cc +++ b/mts/src/model/QueryTerrorismJobListResult.cc @@ -35,10 +35,13 @@ QueryTerrorismJobListResult::~QueryTerrorismJobListResult() void QueryTerrorismJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTerrorismJobList = value["TerrorismJobList"]["TerrorismJob"]; for (auto value : allTerrorismJobList) diff --git a/mts/src/model/QueryTerrorismPipelineListRequest.cc b/mts/src/model/QueryTerrorismPipelineListRequest.cc index 67c217603..d4fda3f0c 100644 --- a/mts/src/model/QueryTerrorismPipelineListRequest.cc +++ b/mts/src/model/QueryTerrorismPipelineListRequest.cc @@ -33,7 +33,7 @@ long QueryTerrorismPipelineListRequest::getResourceOwnerId()const void QueryTerrorismPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryTerrorismPipelineListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryTerrorismPipelineListRequest::getResourceOwnerAccount()const void QueryTerrorismPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryTerrorismPipelineListRequest::getPipelineIds()const @@ -55,7 +55,7 @@ std::string QueryTerrorismPipelineListRequest::getPipelineIds()const void QueryTerrorismPipelineListRequest::setPipelineIds(const std::string& pipelineIds) { pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); + setCoreParameter("PipelineIds", pipelineIds); } std::string QueryTerrorismPipelineListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryTerrorismPipelineListRequest::getOwnerAccount()const void QueryTerrorismPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryTerrorismPipelineListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryTerrorismPipelineListRequest::getOwnerId()const void QueryTerrorismPipelineListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryTerrorismPipelineListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryTerrorismPipelineListRequest::getAccessKeyId()const void QueryTerrorismPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryTerrorismPipelineListResult.cc b/mts/src/model/QueryTerrorismPipelineListResult.cc index 10d30026b..5dcc40b78 100644 --- a/mts/src/model/QueryTerrorismPipelineListResult.cc +++ b/mts/src/model/QueryTerrorismPipelineListResult.cc @@ -35,10 +35,13 @@ QueryTerrorismPipelineListResult::~QueryTerrorismPipelineListResult() void QueryTerrorismPipelineListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/QueryVideoGifJobListRequest.cc b/mts/src/model/QueryVideoGifJobListRequest.cc index b0ee3ce7a..6fff63ec6 100644 --- a/mts/src/model/QueryVideoGifJobListRequest.cc +++ b/mts/src/model/QueryVideoGifJobListRequest.cc @@ -33,7 +33,7 @@ long QueryVideoGifJobListRequest::getResourceOwnerId()const void QueryVideoGifJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryVideoGifJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryVideoGifJobListRequest::getResourceOwnerAccount()const void QueryVideoGifJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryVideoGifJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryVideoGifJobListRequest::getJobIds()const void QueryVideoGifJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryVideoGifJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryVideoGifJobListRequest::getOwnerAccount()const void QueryVideoGifJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryVideoGifJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryVideoGifJobListRequest::getOwnerId()const void QueryVideoGifJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryVideoGifJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryVideoGifJobListRequest::getAccessKeyId()const void QueryVideoGifJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryVideoGifJobListResult.cc b/mts/src/model/QueryVideoGifJobListResult.cc index 255209858..61c3377af 100644 --- a/mts/src/model/QueryVideoGifJobListResult.cc +++ b/mts/src/model/QueryVideoGifJobListResult.cc @@ -35,10 +35,13 @@ QueryVideoGifJobListResult::~QueryVideoGifJobListResult() void QueryVideoGifJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryVideoPoseJobListRequest.cc b/mts/src/model/QueryVideoPoseJobListRequest.cc index 85102e580..297cc1f21 100644 --- a/mts/src/model/QueryVideoPoseJobListRequest.cc +++ b/mts/src/model/QueryVideoPoseJobListRequest.cc @@ -33,7 +33,7 @@ long QueryVideoPoseJobListRequest::getResourceOwnerId()const void QueryVideoPoseJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryVideoPoseJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryVideoPoseJobListRequest::getResourceOwnerAccount()const void QueryVideoPoseJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryVideoPoseJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryVideoPoseJobListRequest::getJobIds()const void QueryVideoPoseJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryVideoPoseJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryVideoPoseJobListRequest::getOwnerAccount()const void QueryVideoPoseJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryVideoPoseJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryVideoPoseJobListRequest::getOwnerId()const void QueryVideoPoseJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryVideoPoseJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryVideoPoseJobListRequest::getAccessKeyId()const void QueryVideoPoseJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryVideoPoseJobListResult.cc b/mts/src/model/QueryVideoPoseJobListResult.cc index 494ab38b3..bf07a61bf 100644 --- a/mts/src/model/QueryVideoPoseJobListResult.cc +++ b/mts/src/model/QueryVideoPoseJobListResult.cc @@ -35,10 +35,13 @@ QueryVideoPoseJobListResult::~QueryVideoPoseJobListResult() void QueryVideoPoseJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryVideoSplitJobListRequest.cc b/mts/src/model/QueryVideoSplitJobListRequest.cc index 44d742f41..e6c6ec9fc 100644 --- a/mts/src/model/QueryVideoSplitJobListRequest.cc +++ b/mts/src/model/QueryVideoSplitJobListRequest.cc @@ -33,7 +33,7 @@ long QueryVideoSplitJobListRequest::getResourceOwnerId()const void QueryVideoSplitJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryVideoSplitJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryVideoSplitJobListRequest::getResourceOwnerAccount()const void QueryVideoSplitJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryVideoSplitJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryVideoSplitJobListRequest::getJobIds()const void QueryVideoSplitJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryVideoSplitJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryVideoSplitJobListRequest::getOwnerAccount()const void QueryVideoSplitJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryVideoSplitJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryVideoSplitJobListRequest::getOwnerId()const void QueryVideoSplitJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryVideoSplitJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryVideoSplitJobListRequest::getAccessKeyId()const void QueryVideoSplitJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryVideoSplitJobListResult.cc b/mts/src/model/QueryVideoSplitJobListResult.cc index b95f18ec4..124d07b8c 100644 --- a/mts/src/model/QueryVideoSplitJobListResult.cc +++ b/mts/src/model/QueryVideoSplitJobListResult.cc @@ -35,10 +35,13 @@ QueryVideoSplitJobListResult::~QueryVideoSplitJobListResult() void QueryVideoSplitJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryVideoSummaryJobListRequest.cc b/mts/src/model/QueryVideoSummaryJobListRequest.cc index e167a5f5e..e3e8c8fbe 100644 --- a/mts/src/model/QueryVideoSummaryJobListRequest.cc +++ b/mts/src/model/QueryVideoSummaryJobListRequest.cc @@ -33,7 +33,7 @@ long QueryVideoSummaryJobListRequest::getResourceOwnerId()const void QueryVideoSummaryJobListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryVideoSummaryJobListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryVideoSummaryJobListRequest::getResourceOwnerAccount()const void QueryVideoSummaryJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryVideoSummaryJobListRequest::getJobIds()const @@ -55,7 +55,7 @@ std::string QueryVideoSummaryJobListRequest::getJobIds()const void QueryVideoSummaryJobListRequest::setJobIds(const std::string& jobIds) { jobIds_ = jobIds; - setParameter("JobIds", jobIds); + setCoreParameter("JobIds", jobIds); } std::string QueryVideoSummaryJobListRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string QueryVideoSummaryJobListRequest::getOwnerAccount()const void QueryVideoSummaryJobListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryVideoSummaryJobListRequest::getOwnerId()const @@ -77,7 +77,7 @@ long QueryVideoSummaryJobListRequest::getOwnerId()const void QueryVideoSummaryJobListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryVideoSummaryJobListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryVideoSummaryJobListRequest::getAccessKeyId()const void QueryVideoSummaryJobListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryVideoSummaryJobListResult.cc b/mts/src/model/QueryVideoSummaryJobListResult.cc index da2636bfa..ac209fd4f 100644 --- a/mts/src/model/QueryVideoSummaryJobListResult.cc +++ b/mts/src/model/QueryVideoSummaryJobListResult.cc @@ -35,10 +35,13 @@ QueryVideoSummaryJobListResult::~QueryVideoSummaryJobListResult() void QueryVideoSummaryJobListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobList = value["JobList"]["Job"]; for (auto value : allJobList) diff --git a/mts/src/model/QueryWaterMarkTemplateListRequest.cc b/mts/src/model/QueryWaterMarkTemplateListRequest.cc index 7186d8db7..7209b0ed7 100644 --- a/mts/src/model/QueryWaterMarkTemplateListRequest.cc +++ b/mts/src/model/QueryWaterMarkTemplateListRequest.cc @@ -33,7 +33,7 @@ long QueryWaterMarkTemplateListRequest::getResourceOwnerId()const void QueryWaterMarkTemplateListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string QueryWaterMarkTemplateListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string QueryWaterMarkTemplateListRequest::getResourceOwnerAccount()const void QueryWaterMarkTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string QueryWaterMarkTemplateListRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string QueryWaterMarkTemplateListRequest::getOwnerAccount()const void QueryWaterMarkTemplateListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long QueryWaterMarkTemplateListRequest::getOwnerId()const @@ -66,7 +66,7 @@ long QueryWaterMarkTemplateListRequest::getOwnerId()const void QueryWaterMarkTemplateListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string QueryWaterMarkTemplateListRequest::getWaterMarkTemplateIds()const @@ -77,7 +77,7 @@ std::string QueryWaterMarkTemplateListRequest::getWaterMarkTemplateIds()const void QueryWaterMarkTemplateListRequest::setWaterMarkTemplateIds(const std::string& waterMarkTemplateIds) { waterMarkTemplateIds_ = waterMarkTemplateIds; - setParameter("WaterMarkTemplateIds", waterMarkTemplateIds); + setCoreParameter("WaterMarkTemplateIds", waterMarkTemplateIds); } std::string QueryWaterMarkTemplateListRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryWaterMarkTemplateListRequest::getAccessKeyId()const void QueryWaterMarkTemplateListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/QueryWaterMarkTemplateListResult.cc b/mts/src/model/QueryWaterMarkTemplateListResult.cc index 46d585489..c06f3bb9a 100644 --- a/mts/src/model/QueryWaterMarkTemplateListResult.cc +++ b/mts/src/model/QueryWaterMarkTemplateListResult.cc @@ -35,10 +35,13 @@ QueryWaterMarkTemplateListResult::~QueryWaterMarkTemplateListResult() void QueryWaterMarkTemplateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWaterMarkTemplateList = value["WaterMarkTemplateList"]["WaterMarkTemplate"]; for (auto value : allWaterMarkTemplateList) diff --git a/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc b/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc index 0f9b61f83..692de7df0 100644 --- a/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc +++ b/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc @@ -33,7 +33,7 @@ std::string RefreshCdnDomainConfigsCacheRequest::getResourceOwnerId()const void RefreshCdnDomainConfigsCacheRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string RefreshCdnDomainConfigsCacheRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string RefreshCdnDomainConfigsCacheRequest::getResourceOwnerAccount()const void RefreshCdnDomainConfigsCacheRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RefreshCdnDomainConfigsCacheRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string RefreshCdnDomainConfigsCacheRequest::getOwnerAccount()const void RefreshCdnDomainConfigsCacheRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RefreshCdnDomainConfigsCacheRequest::getDomains()const @@ -66,7 +66,7 @@ std::string RefreshCdnDomainConfigsCacheRequest::getDomains()const void RefreshCdnDomainConfigsCacheRequest::setDomains(const std::string& domains) { domains_ = domains; - setParameter("Domains", domains); + setCoreParameter("Domains", domains); } std::string RefreshCdnDomainConfigsCacheRequest::getOwnerId()const @@ -77,7 +77,7 @@ std::string RefreshCdnDomainConfigsCacheRequest::getOwnerId()const void RefreshCdnDomainConfigsCacheRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string RefreshCdnDomainConfigsCacheRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string RefreshCdnDomainConfigsCacheRequest::getAccessKeyId()const void RefreshCdnDomainConfigsCacheRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/RefreshCdnDomainConfigsCacheResult.cc b/mts/src/model/RefreshCdnDomainConfigsCacheResult.cc index 47dba33ab..8ec559831 100644 --- a/mts/src/model/RefreshCdnDomainConfigsCacheResult.cc +++ b/mts/src/model/RefreshCdnDomainConfigsCacheResult.cc @@ -35,10 +35,13 @@ RefreshCdnDomainConfigsCacheResult::~RefreshCdnDomainConfigsCacheResult() void RefreshCdnDomainConfigsCacheResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSucessDomains = value["SucessDomains"]["String"]; for (const auto &item : allSucessDomains) diff --git a/mts/src/model/RegisterMediaDetailPersonRequest.cc b/mts/src/model/RegisterMediaDetailPersonRequest.cc index aa4785fc7..01622c0f8 100644 --- a/mts/src/model/RegisterMediaDetailPersonRequest.cc +++ b/mts/src/model/RegisterMediaDetailPersonRequest.cc @@ -33,7 +33,7 @@ long RegisterMediaDetailPersonRequest::getResourceOwnerId()const void RegisterMediaDetailPersonRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RegisterMediaDetailPersonRequest::getImages()const @@ -44,7 +44,7 @@ std::string RegisterMediaDetailPersonRequest::getImages()const void RegisterMediaDetailPersonRequest::setImages(const std::string& images) { images_ = images; - setParameter("Images", images); + setCoreParameter("Images", images); } std::string RegisterMediaDetailPersonRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string RegisterMediaDetailPersonRequest::getResourceOwnerAccount()const void RegisterMediaDetailPersonRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RegisterMediaDetailPersonRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string RegisterMediaDetailPersonRequest::getOwnerAccount()const void RegisterMediaDetailPersonRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RegisterMediaDetailPersonRequest::getPersonLib()const @@ -77,7 +77,7 @@ std::string RegisterMediaDetailPersonRequest::getPersonLib()const void RegisterMediaDetailPersonRequest::setPersonLib(const std::string& personLib) { personLib_ = personLib; - setParameter("PersonLib", personLib); + setCoreParameter("PersonLib", personLib); } long RegisterMediaDetailPersonRequest::getOwnerId()const @@ -88,7 +88,7 @@ long RegisterMediaDetailPersonRequest::getOwnerId()const void RegisterMediaDetailPersonRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RegisterMediaDetailPersonRequest::getCategory()const @@ -99,7 +99,7 @@ std::string RegisterMediaDetailPersonRequest::getCategory()const void RegisterMediaDetailPersonRequest::setCategory(const std::string& category) { category_ = category; - setParameter("Category", category); + setCoreParameter("Category", category); } std::string RegisterMediaDetailPersonRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string RegisterMediaDetailPersonRequest::getAccessKeyId()const void RegisterMediaDetailPersonRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string RegisterMediaDetailPersonRequest::getPersonName()const @@ -121,6 +121,6 @@ std::string RegisterMediaDetailPersonRequest::getPersonName()const void RegisterMediaDetailPersonRequest::setPersonName(const std::string& personName) { personName_ = personName; - setParameter("PersonName", personName); + setCoreParameter("PersonName", personName); } diff --git a/mts/src/model/RegisterMediaDetailPersonResult.cc b/mts/src/model/RegisterMediaDetailPersonResult.cc index 8cb7173fe..eb634da1d 100644 --- a/mts/src/model/RegisterMediaDetailPersonResult.cc +++ b/mts/src/model/RegisterMediaDetailPersonResult.cc @@ -35,10 +35,13 @@ RegisterMediaDetailPersonResult::~RegisterMediaDetailPersonResult() void RegisterMediaDetailPersonResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegisteredPersonages = value["RegisteredPersonages"]["RegisteredPersonage"]; for (auto value : allRegisteredPersonages) diff --git a/mts/src/model/RegisterMediaDetailScenarioRequest.cc b/mts/src/model/RegisterMediaDetailScenarioRequest.cc index 4395897ad..349ba067a 100644 --- a/mts/src/model/RegisterMediaDetailScenarioRequest.cc +++ b/mts/src/model/RegisterMediaDetailScenarioRequest.cc @@ -33,7 +33,7 @@ std::string RegisterMediaDetailScenarioRequest::getJobId()const void RegisterMediaDetailScenarioRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long RegisterMediaDetailScenarioRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long RegisterMediaDetailScenarioRequest::getResourceOwnerId()const void RegisterMediaDetailScenarioRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RegisterMediaDetailScenarioRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string RegisterMediaDetailScenarioRequest::getResourceOwnerAccount()const void RegisterMediaDetailScenarioRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RegisterMediaDetailScenarioRequest::getScenario()const @@ -66,7 +66,7 @@ std::string RegisterMediaDetailScenarioRequest::getScenario()const void RegisterMediaDetailScenarioRequest::setScenario(const std::string& scenario) { scenario_ = scenario; - setParameter("Scenario", scenario); + setCoreParameter("Scenario", scenario); } std::string RegisterMediaDetailScenarioRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string RegisterMediaDetailScenarioRequest::getOwnerAccount()const void RegisterMediaDetailScenarioRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RegisterMediaDetailScenarioRequest::getDescription()const @@ -88,7 +88,7 @@ std::string RegisterMediaDetailScenarioRequest::getDescription()const void RegisterMediaDetailScenarioRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long RegisterMediaDetailScenarioRequest::getOwnerId()const @@ -99,7 +99,7 @@ long RegisterMediaDetailScenarioRequest::getOwnerId()const void RegisterMediaDetailScenarioRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RegisterMediaDetailScenarioRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string RegisterMediaDetailScenarioRequest::getAccessKeyId()const void RegisterMediaDetailScenarioRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/RegisterMediaDetailScenarioResult.cc b/mts/src/model/RegisterMediaDetailScenarioResult.cc index c540413f9..04b68ab5c 100644 --- a/mts/src/model/RegisterMediaDetailScenarioResult.cc +++ b/mts/src/model/RegisterMediaDetailScenarioResult.cc @@ -35,10 +35,13 @@ RegisterMediaDetailScenarioResult::~RegisterMediaDetailScenarioResult() void RegisterMediaDetailScenarioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ScenarioId"].isNull()) scenarioId_ = value["ScenarioId"].asString(); diff --git a/mts/src/model/ReportAnnotationJobResultRequest.cc b/mts/src/model/ReportAnnotationJobResultRequest.cc index c3e8d1e7a..7d453bdc1 100644 --- a/mts/src/model/ReportAnnotationJobResultRequest.cc +++ b/mts/src/model/ReportAnnotationJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportAnnotationJobResultRequest::getAnnotation()const void ReportAnnotationJobResultRequest::setAnnotation(const std::string& annotation) { annotation_ = annotation; - setParameter("Annotation", annotation); + setCoreParameter("Annotation", annotation); } std::string ReportAnnotationJobResultRequest::getJobId()const @@ -44,7 +44,7 @@ std::string ReportAnnotationJobResultRequest::getJobId()const void ReportAnnotationJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportAnnotationJobResultRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ReportAnnotationJobResultRequest::getResourceOwnerId()const void ReportAnnotationJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportAnnotationJobResultRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportAnnotationJobResultRequest::getResourceOwnerAccount()const void ReportAnnotationJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportAnnotationJobResultRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ReportAnnotationJobResultRequest::getOwnerAccount()const void ReportAnnotationJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportAnnotationJobResultRequest::getDetails()const @@ -88,7 +88,7 @@ std::string ReportAnnotationJobResultRequest::getDetails()const void ReportAnnotationJobResultRequest::setDetails(const std::string& details) { details_ = details; - setParameter("Details", details); + setCoreParameter("Details", details); } long ReportAnnotationJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportAnnotationJobResultRequest::getOwnerId()const void ReportAnnotationJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportAnnotationJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportAnnotationJobResultRequest::getAccessKeyId()const void ReportAnnotationJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportAnnotationJobResultResult.cc b/mts/src/model/ReportAnnotationJobResultResult.cc index a8186edd9..b5b42a0b7 100644 --- a/mts/src/model/ReportAnnotationJobResultResult.cc +++ b/mts/src/model/ReportAnnotationJobResultResult.cc @@ -35,10 +35,13 @@ ReportAnnotationJobResultResult::~ReportAnnotationJobResultResult() void ReportAnnotationJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportCensorJobResultRequest.cc b/mts/src/model/ReportCensorJobResultRequest.cc index 2284c30ca..794b9ad11 100644 --- a/mts/src/model/ReportCensorJobResultRequest.cc +++ b/mts/src/model/ReportCensorJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportCensorJobResultRequest::getJobId()const void ReportCensorJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportCensorJobResultRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ReportCensorJobResultRequest::getResourceOwnerId()const void ReportCensorJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportCensorJobResultRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ReportCensorJobResultRequest::getResourceOwnerAccount()const void ReportCensorJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportCensorJobResultRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportCensorJobResultRequest::getOwnerAccount()const void ReportCensorJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportCensorJobResultRequest::getLabel()const @@ -77,7 +77,7 @@ std::string ReportCensorJobResultRequest::getLabel()const void ReportCensorJobResultRequest::setLabel(const std::string& label) { label_ = label; - setParameter("Label", label); + setCoreParameter("Label", label); } std::string ReportCensorJobResultRequest::getDetail()const @@ -88,7 +88,7 @@ std::string ReportCensorJobResultRequest::getDetail()const void ReportCensorJobResultRequest::setDetail(const std::string& detail) { detail_ = detail; - setParameter("Detail", detail); + setCoreParameter("Detail", detail); } long ReportCensorJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportCensorJobResultRequest::getOwnerId()const void ReportCensorJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportCensorJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportCensorJobResultRequest::getAccessKeyId()const void ReportCensorJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportCensorJobResultResult.cc b/mts/src/model/ReportCensorJobResultResult.cc index d9dd32ad6..89f46dcbf 100644 --- a/mts/src/model/ReportCensorJobResultResult.cc +++ b/mts/src/model/ReportCensorJobResultResult.cc @@ -35,10 +35,13 @@ ReportCensorJobResultResult::~ReportCensorJobResultResult() void ReportCensorJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportCoverJobResultRequest.cc b/mts/src/model/ReportCoverJobResultRequest.cc index df74f04de..966878317 100644 --- a/mts/src/model/ReportCoverJobResultRequest.cc +++ b/mts/src/model/ReportCoverJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportCoverJobResultRequest::getResult()const void ReportCoverJobResultRequest::setResult(const std::string& result) { result_ = result; - setParameter("Result", result); + setCoreParameter("Result", result); } std::string ReportCoverJobResultRequest::getJobId()const @@ -44,7 +44,7 @@ std::string ReportCoverJobResultRequest::getJobId()const void ReportCoverJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportCoverJobResultRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ReportCoverJobResultRequest::getResourceOwnerId()const void ReportCoverJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportCoverJobResultRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportCoverJobResultRequest::getResourceOwnerAccount()const void ReportCoverJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportCoverJobResultRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ReportCoverJobResultRequest::getOwnerAccount()const void ReportCoverJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ReportCoverJobResultRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ReportCoverJobResultRequest::getOwnerId()const void ReportCoverJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportCoverJobResultRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ReportCoverJobResultRequest::getAccessKeyId()const void ReportCoverJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportCoverJobResultResult.cc b/mts/src/model/ReportCoverJobResultResult.cc index b148eb4de..f474eeaa5 100644 --- a/mts/src/model/ReportCoverJobResultResult.cc +++ b/mts/src/model/ReportCoverJobResultResult.cc @@ -35,10 +35,13 @@ ReportCoverJobResultResult::~ReportCoverJobResultResult() void ReportCoverJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportFacerecogJobResultRequest.cc b/mts/src/model/ReportFacerecogJobResultRequest.cc index 833d2beab..164991d9b 100644 --- a/mts/src/model/ReportFacerecogJobResultRequest.cc +++ b/mts/src/model/ReportFacerecogJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportFacerecogJobResultRequest::getJobId()const void ReportFacerecogJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportFacerecogJobResultRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ReportFacerecogJobResultRequest::getResourceOwnerId()const void ReportFacerecogJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportFacerecogJobResultRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ReportFacerecogJobResultRequest::getResourceOwnerAccount()const void ReportFacerecogJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportFacerecogJobResultRequest::getFacerecog()const @@ -66,7 +66,7 @@ std::string ReportFacerecogJobResultRequest::getFacerecog()const void ReportFacerecogJobResultRequest::setFacerecog(const std::string& facerecog) { facerecog_ = facerecog; - setParameter("Facerecog", facerecog); + setCoreParameter("Facerecog", facerecog); } std::string ReportFacerecogJobResultRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ReportFacerecogJobResultRequest::getOwnerAccount()const void ReportFacerecogJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportFacerecogJobResultRequest::getDetails()const @@ -88,7 +88,7 @@ std::string ReportFacerecogJobResultRequest::getDetails()const void ReportFacerecogJobResultRequest::setDetails(const std::string& details) { details_ = details; - setParameter("Details", details); + setCoreParameter("Details", details); } long ReportFacerecogJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportFacerecogJobResultRequest::getOwnerId()const void ReportFacerecogJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportFacerecogJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportFacerecogJobResultRequest::getAccessKeyId()const void ReportFacerecogJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportFacerecogJobResultResult.cc b/mts/src/model/ReportFacerecogJobResultResult.cc index 54ca649d3..619bd50a9 100644 --- a/mts/src/model/ReportFacerecogJobResultResult.cc +++ b/mts/src/model/ReportFacerecogJobResultResult.cc @@ -35,10 +35,13 @@ ReportFacerecogJobResultResult::~ReportFacerecogJobResultResult() void ReportFacerecogJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportFpShotJobResultRequest.cc b/mts/src/model/ReportFpShotJobResultRequest.cc index b45c87e7e..b72bfb2ca 100644 --- a/mts/src/model/ReportFpShotJobResultRequest.cc +++ b/mts/src/model/ReportFpShotJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportFpShotJobResultRequest::getResult()const void ReportFpShotJobResultRequest::setResult(const std::string& result) { result_ = result; - setParameter("Result", result); + setCoreParameter("Result", result); } std::string ReportFpShotJobResultRequest::getJobId()const @@ -44,7 +44,7 @@ std::string ReportFpShotJobResultRequest::getJobId()const void ReportFpShotJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportFpShotJobResultRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ReportFpShotJobResultRequest::getResourceOwnerId()const void ReportFpShotJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportFpShotJobResultRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportFpShotJobResultRequest::getResourceOwnerAccount()const void ReportFpShotJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportFpShotJobResultRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ReportFpShotJobResultRequest::getOwnerAccount()const void ReportFpShotJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportFpShotJobResultRequest::getDetails()const @@ -88,7 +88,7 @@ std::string ReportFpShotJobResultRequest::getDetails()const void ReportFpShotJobResultRequest::setDetails(const std::string& details) { details_ = details; - setParameter("Details", details); + setCoreParameter("Details", details); } long ReportFpShotJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportFpShotJobResultRequest::getOwnerId()const void ReportFpShotJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportFpShotJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportFpShotJobResultRequest::getAccessKeyId()const void ReportFpShotJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportFpShotJobResultResult.cc b/mts/src/model/ReportFpShotJobResultResult.cc index 3ceb220a4..74835f4ac 100644 --- a/mts/src/model/ReportFpShotJobResultResult.cc +++ b/mts/src/model/ReportFpShotJobResultResult.cc @@ -35,10 +35,13 @@ ReportFpShotJobResultResult::~ReportFpShotJobResultResult() void ReportFpShotJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportMediaDetailJobResultRequest.cc b/mts/src/model/ReportMediaDetailJobResultRequest.cc index 3bfc256c0..716c7382a 100644 --- a/mts/src/model/ReportMediaDetailJobResultRequest.cc +++ b/mts/src/model/ReportMediaDetailJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportMediaDetailJobResultRequest::getJobId()const void ReportMediaDetailJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportMediaDetailJobResultRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ReportMediaDetailJobResultRequest::getResourceOwnerId()const void ReportMediaDetailJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportMediaDetailJobResultRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ReportMediaDetailJobResultRequest::getResourceOwnerAccount()const void ReportMediaDetailJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportMediaDetailJobResultRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportMediaDetailJobResultRequest::getOwnerAccount()const void ReportMediaDetailJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportMediaDetailJobResultRequest::getTag()const @@ -77,7 +77,7 @@ std::string ReportMediaDetailJobResultRequest::getTag()const void ReportMediaDetailJobResultRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } long ReportMediaDetailJobResultRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ReportMediaDetailJobResultRequest::getOwnerId()const void ReportMediaDetailJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportMediaDetailJobResultRequest::getResults()const @@ -99,7 +99,7 @@ std::string ReportMediaDetailJobResultRequest::getResults()const void ReportMediaDetailJobResultRequest::setResults(const std::string& results) { results_ = results; - setParameter("Results", results); + setCoreParameter("Results", results); } std::string ReportMediaDetailJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportMediaDetailJobResultRequest::getAccessKeyId()const void ReportMediaDetailJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportMediaDetailJobResultResult.cc b/mts/src/model/ReportMediaDetailJobResultResult.cc index 084327695..01f81b3d9 100644 --- a/mts/src/model/ReportMediaDetailJobResultResult.cc +++ b/mts/src/model/ReportMediaDetailJobResultResult.cc @@ -35,10 +35,13 @@ ReportMediaDetailJobResultResult::~ReportMediaDetailJobResultResult() void ReportMediaDetailJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportPornJobResultRequest.cc b/mts/src/model/ReportPornJobResultRequest.cc index 9fc7ed2c1..3a4870aae 100644 --- a/mts/src/model/ReportPornJobResultRequest.cc +++ b/mts/src/model/ReportPornJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportPornJobResultRequest::getJobId()const void ReportPornJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportPornJobResultRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ReportPornJobResultRequest::getResourceOwnerId()const void ReportPornJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportPornJobResultRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ReportPornJobResultRequest::getResourceOwnerAccount()const void ReportPornJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportPornJobResultRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportPornJobResultRequest::getOwnerAccount()const void ReportPornJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportPornJobResultRequest::getLabel()const @@ -77,7 +77,7 @@ std::string ReportPornJobResultRequest::getLabel()const void ReportPornJobResultRequest::setLabel(const std::string& label) { label_ = label; - setParameter("Label", label); + setCoreParameter("Label", label); } std::string ReportPornJobResultRequest::getDetail()const @@ -88,7 +88,7 @@ std::string ReportPornJobResultRequest::getDetail()const void ReportPornJobResultRequest::setDetail(const std::string& detail) { detail_ = detail; - setParameter("Detail", detail); + setCoreParameter("Detail", detail); } long ReportPornJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportPornJobResultRequest::getOwnerId()const void ReportPornJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportPornJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportPornJobResultRequest::getAccessKeyId()const void ReportPornJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportPornJobResultResult.cc b/mts/src/model/ReportPornJobResultResult.cc index 008a8ffdb..96bbb6ec1 100644 --- a/mts/src/model/ReportPornJobResultResult.cc +++ b/mts/src/model/ReportPornJobResultResult.cc @@ -35,10 +35,13 @@ ReportPornJobResultResult::~ReportPornJobResultResult() void ReportPornJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportTagJobResultRequest.cc b/mts/src/model/ReportTagJobResultRequest.cc index fb728974a..ce38f5510 100644 --- a/mts/src/model/ReportTagJobResultRequest.cc +++ b/mts/src/model/ReportTagJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportTagJobResultRequest::getResult()const void ReportTagJobResultRequest::setResult(const std::string& result) { result_ = result; - setParameter("Result", result); + setCoreParameter("Result", result); } std::string ReportTagJobResultRequest::getJobId()const @@ -44,7 +44,7 @@ std::string ReportTagJobResultRequest::getJobId()const void ReportTagJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportTagJobResultRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ReportTagJobResultRequest::getResourceOwnerId()const void ReportTagJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportTagJobResultRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportTagJobResultRequest::getResourceOwnerAccount()const void ReportTagJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportTagJobResultRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ReportTagJobResultRequest::getOwnerAccount()const void ReportTagJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportTagJobResultRequest::getTag()const @@ -88,7 +88,7 @@ std::string ReportTagJobResultRequest::getTag()const void ReportTagJobResultRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } long ReportTagJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportTagJobResultRequest::getOwnerId()const void ReportTagJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportTagJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportTagJobResultRequest::getAccessKeyId()const void ReportTagJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportTagJobResultResult.cc b/mts/src/model/ReportTagJobResultResult.cc index 694b684aa..3c3e3a96e 100644 --- a/mts/src/model/ReportTagJobResultResult.cc +++ b/mts/src/model/ReportTagJobResultResult.cc @@ -35,10 +35,13 @@ ReportTagJobResultResult::~ReportTagJobResultResult() void ReportTagJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportTerrorismJobResultRequest.cc b/mts/src/model/ReportTerrorismJobResultRequest.cc index ff5da6458..ba4ad771b 100644 --- a/mts/src/model/ReportTerrorismJobResultRequest.cc +++ b/mts/src/model/ReportTerrorismJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportTerrorismJobResultRequest::getJobId()const void ReportTerrorismJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportTerrorismJobResultRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ReportTerrorismJobResultRequest::getResourceOwnerId()const void ReportTerrorismJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportTerrorismJobResultRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ReportTerrorismJobResultRequest::getResourceOwnerAccount()const void ReportTerrorismJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportTerrorismJobResultRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportTerrorismJobResultRequest::getOwnerAccount()const void ReportTerrorismJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportTerrorismJobResultRequest::getLabel()const @@ -77,7 +77,7 @@ std::string ReportTerrorismJobResultRequest::getLabel()const void ReportTerrorismJobResultRequest::setLabel(const std::string& label) { label_ = label; - setParameter("Label", label); + setCoreParameter("Label", label); } std::string ReportTerrorismJobResultRequest::getDetail()const @@ -88,7 +88,7 @@ std::string ReportTerrorismJobResultRequest::getDetail()const void ReportTerrorismJobResultRequest::setDetail(const std::string& detail) { detail_ = detail; - setParameter("Detail", detail); + setCoreParameter("Detail", detail); } long ReportTerrorismJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportTerrorismJobResultRequest::getOwnerId()const void ReportTerrorismJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportTerrorismJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportTerrorismJobResultRequest::getAccessKeyId()const void ReportTerrorismJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportTerrorismJobResultResult.cc b/mts/src/model/ReportTerrorismJobResultResult.cc index 061303703..8e8ef3db4 100644 --- a/mts/src/model/ReportTerrorismJobResultResult.cc +++ b/mts/src/model/ReportTerrorismJobResultResult.cc @@ -35,10 +35,13 @@ ReportTerrorismJobResultResult::~ReportTerrorismJobResultResult() void ReportTerrorismJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/ReportVideoSplitJobResultRequest.cc b/mts/src/model/ReportVideoSplitJobResultRequest.cc index 2589a7113..e015650f3 100644 --- a/mts/src/model/ReportVideoSplitJobResultRequest.cc +++ b/mts/src/model/ReportVideoSplitJobResultRequest.cc @@ -33,7 +33,7 @@ std::string ReportVideoSplitJobResultRequest::getResult()const void ReportVideoSplitJobResultRequest::setResult(const std::string& result) { result_ = result; - setParameter("Result", result); + setCoreParameter("Result", result); } std::string ReportVideoSplitJobResultRequest::getJobId()const @@ -44,7 +44,7 @@ std::string ReportVideoSplitJobResultRequest::getJobId()const void ReportVideoSplitJobResultRequest::setJobId(const std::string& jobId) { jobId_ = jobId; - setParameter("JobId", jobId); + setCoreParameter("JobId", jobId); } long ReportVideoSplitJobResultRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ReportVideoSplitJobResultRequest::getResourceOwnerId()const void ReportVideoSplitJobResultRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReportVideoSplitJobResultRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReportVideoSplitJobResultRequest::getResourceOwnerAccount()const void ReportVideoSplitJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReportVideoSplitJobResultRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ReportVideoSplitJobResultRequest::getOwnerAccount()const void ReportVideoSplitJobResultRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReportVideoSplitJobResultRequest::getDetails()const @@ -88,7 +88,7 @@ std::string ReportVideoSplitJobResultRequest::getDetails()const void ReportVideoSplitJobResultRequest::setDetails(const std::string& details) { details_ = details; - setParameter("Details", details); + setCoreParameter("Details", details); } long ReportVideoSplitJobResultRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ReportVideoSplitJobResultRequest::getOwnerId()const void ReportVideoSplitJobResultRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReportVideoSplitJobResultRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string ReportVideoSplitJobResultRequest::getAccessKeyId()const void ReportVideoSplitJobResultRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/ReportVideoSplitJobResultResult.cc b/mts/src/model/ReportVideoSplitJobResultResult.cc index a0db7a76e..36775aa08 100644 --- a/mts/src/model/ReportVideoSplitJobResultResult.cc +++ b/mts/src/model/ReportVideoSplitJobResultResult.cc @@ -35,10 +35,13 @@ ReportVideoSplitJobResultResult::~ReportVideoSplitJobResultResult() void ReportVideoSplitJobResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SearchMediaRequest.cc b/mts/src/model/SearchMediaRequest.cc index 7e6117acb..2ffd30074 100644 --- a/mts/src/model/SearchMediaRequest.cc +++ b/mts/src/model/SearchMediaRequest.cc @@ -33,7 +33,7 @@ long SearchMediaRequest::getResourceOwnerId()const void SearchMediaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SearchMediaRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string SearchMediaRequest::getResourceOwnerAccount()const void SearchMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SearchMediaRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string SearchMediaRequest::getOwnerAccount()const void SearchMediaRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SearchMediaRequest::getDescription()const @@ -66,7 +66,7 @@ std::string SearchMediaRequest::getDescription()const void SearchMediaRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long SearchMediaRequest::getOwnerId()const @@ -77,7 +77,7 @@ long SearchMediaRequest::getOwnerId()const void SearchMediaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SearchMediaRequest::getTitle()const @@ -88,7 +88,7 @@ std::string SearchMediaRequest::getTitle()const void SearchMediaRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } long SearchMediaRequest::getPageNumber()const @@ -99,7 +99,7 @@ long SearchMediaRequest::getPageNumber()const void SearchMediaRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string SearchMediaRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SearchMediaRequest::getAccessKeyId()const void SearchMediaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SearchMediaRequest::getCateId()const @@ -121,7 +121,7 @@ std::string SearchMediaRequest::getCateId()const void SearchMediaRequest::setCateId(const std::string& cateId) { cateId_ = cateId; - setParameter("CateId", cateId); + setCoreParameter("CateId", cateId); } long SearchMediaRequest::getPageSize()const @@ -132,7 +132,7 @@ long SearchMediaRequest::getPageSize()const void SearchMediaRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string SearchMediaRequest::getFrom()const @@ -143,7 +143,7 @@ std::string SearchMediaRequest::getFrom()const void SearchMediaRequest::setFrom(const std::string& from) { from_ = from; - setParameter("From", from); + setCoreParameter("From", from); } std::string SearchMediaRequest::getSortBy()const @@ -154,7 +154,7 @@ std::string SearchMediaRequest::getSortBy()const void SearchMediaRequest::setSortBy(const std::string& sortBy) { sortBy_ = sortBy; - setParameter("SortBy", sortBy); + setCoreParameter("SortBy", sortBy); } std::string SearchMediaRequest::getTo()const @@ -165,7 +165,7 @@ std::string SearchMediaRequest::getTo()const void SearchMediaRequest::setTo(const std::string& to) { to_ = to; - setParameter("To", to); + setCoreParameter("To", to); } std::string SearchMediaRequest::getTag()const @@ -176,7 +176,7 @@ std::string SearchMediaRequest::getTag()const void SearchMediaRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } std::string SearchMediaRequest::getKeyWord()const @@ -187,6 +187,6 @@ std::string SearchMediaRequest::getKeyWord()const void SearchMediaRequest::setKeyWord(const std::string& keyWord) { keyWord_ = keyWord; - setParameter("KeyWord", keyWord); + setCoreParameter("KeyWord", keyWord); } diff --git a/mts/src/model/SearchMediaResult.cc b/mts/src/model/SearchMediaResult.cc index 85cdeb1c3..25b9f4663 100644 --- a/mts/src/model/SearchMediaResult.cc +++ b/mts/src/model/SearchMediaResult.cc @@ -35,10 +35,13 @@ SearchMediaResult::~SearchMediaResult() void SearchMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaList = value["MediaList"]["Media"]; for (auto value : allMediaList) diff --git a/mts/src/model/SearchMediaWorkflowRequest.cc b/mts/src/model/SearchMediaWorkflowRequest.cc index ca70ee85b..ef185994c 100644 --- a/mts/src/model/SearchMediaWorkflowRequest.cc +++ b/mts/src/model/SearchMediaWorkflowRequest.cc @@ -33,7 +33,7 @@ long SearchMediaWorkflowRequest::getResourceOwnerId()const void SearchMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SearchMediaWorkflowRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string SearchMediaWorkflowRequest::getResourceOwnerAccount()const void SearchMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SearchMediaWorkflowRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string SearchMediaWorkflowRequest::getOwnerAccount()const void SearchMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SearchMediaWorkflowRequest::getPageSize()const @@ -66,7 +66,7 @@ long SearchMediaWorkflowRequest::getPageSize()const void SearchMediaWorkflowRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string SearchMediaWorkflowRequest::getStateList()const @@ -77,7 +77,7 @@ std::string SearchMediaWorkflowRequest::getStateList()const void SearchMediaWorkflowRequest::setStateList(const std::string& stateList) { stateList_ = stateList; - setParameter("StateList", stateList); + setCoreParameter("StateList", stateList); } long SearchMediaWorkflowRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SearchMediaWorkflowRequest::getOwnerId()const void SearchMediaWorkflowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long SearchMediaWorkflowRequest::getPageNumber()const @@ -99,7 +99,7 @@ long SearchMediaWorkflowRequest::getPageNumber()const void SearchMediaWorkflowRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string SearchMediaWorkflowRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string SearchMediaWorkflowRequest::getAccessKeyId()const void SearchMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/SearchMediaWorkflowResult.cc b/mts/src/model/SearchMediaWorkflowResult.cc index cebd3f1fc..3a7adb60f 100644 --- a/mts/src/model/SearchMediaWorkflowResult.cc +++ b/mts/src/model/SearchMediaWorkflowResult.cc @@ -35,10 +35,13 @@ SearchMediaWorkflowResult::~SearchMediaWorkflowResult() void SearchMediaWorkflowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaWorkflowList = value["MediaWorkflowList"]["MediaWorkflow"]; for (auto value : allMediaWorkflowList) diff --git a/mts/src/model/SearchPipelineRequest.cc b/mts/src/model/SearchPipelineRequest.cc index 35274afd9..692b28523 100644 --- a/mts/src/model/SearchPipelineRequest.cc +++ b/mts/src/model/SearchPipelineRequest.cc @@ -33,7 +33,7 @@ long SearchPipelineRequest::getResourceOwnerId()const void SearchPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SearchPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string SearchPipelineRequest::getResourceOwnerAccount()const void SearchPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SearchPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string SearchPipelineRequest::getOwnerAccount()const void SearchPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SearchPipelineRequest::getPageSize()const @@ -66,7 +66,7 @@ long SearchPipelineRequest::getPageSize()const void SearchPipelineRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string SearchPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string SearchPipelineRequest::getState()const void SearchPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long SearchPipelineRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SearchPipelineRequest::getOwnerId()const void SearchPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long SearchPipelineRequest::getPageNumber()const @@ -99,7 +99,7 @@ long SearchPipelineRequest::getPageNumber()const void SearchPipelineRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string SearchPipelineRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string SearchPipelineRequest::getAccessKeyId()const void SearchPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/SearchPipelineResult.cc b/mts/src/model/SearchPipelineResult.cc index e6e8e5494..61de9b133 100644 --- a/mts/src/model/SearchPipelineResult.cc +++ b/mts/src/model/SearchPipelineResult.cc @@ -35,10 +35,13 @@ SearchPipelineResult::~SearchPipelineResult() void SearchPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPipelineList = value["PipelineList"]["Pipeline"]; for (auto value : allPipelineList) diff --git a/mts/src/model/SearchTemplateRequest.cc b/mts/src/model/SearchTemplateRequest.cc index 237ef7407..4d3b0d0e3 100644 --- a/mts/src/model/SearchTemplateRequest.cc +++ b/mts/src/model/SearchTemplateRequest.cc @@ -33,7 +33,7 @@ long SearchTemplateRequest::getResourceOwnerId()const void SearchTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SearchTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string SearchTemplateRequest::getResourceOwnerAccount()const void SearchTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SearchTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string SearchTemplateRequest::getOwnerAccount()const void SearchTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SearchTemplateRequest::getPageSize()const @@ -66,7 +66,7 @@ long SearchTemplateRequest::getPageSize()const void SearchTemplateRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string SearchTemplateRequest::getState()const @@ -77,7 +77,7 @@ std::string SearchTemplateRequest::getState()const void SearchTemplateRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long SearchTemplateRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SearchTemplateRequest::getOwnerId()const void SearchTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long SearchTemplateRequest::getPageNumber()const @@ -99,7 +99,7 @@ long SearchTemplateRequest::getPageNumber()const void SearchTemplateRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string SearchTemplateRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string SearchTemplateRequest::getAccessKeyId()const void SearchTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/SearchTemplateResult.cc b/mts/src/model/SearchTemplateResult.cc index 9a4dce331..8a81ed2d4 100644 --- a/mts/src/model/SearchTemplateResult.cc +++ b/mts/src/model/SearchTemplateResult.cc @@ -35,10 +35,13 @@ SearchTemplateResult::~SearchTemplateResult() void SearchTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplateList = value["TemplateList"]["Template"]; for (auto value : allTemplateList) diff --git a/mts/src/model/SearchWaterMarkTemplateRequest.cc b/mts/src/model/SearchWaterMarkTemplateRequest.cc index 34ea2d702..18592322d 100644 --- a/mts/src/model/SearchWaterMarkTemplateRequest.cc +++ b/mts/src/model/SearchWaterMarkTemplateRequest.cc @@ -33,7 +33,7 @@ long SearchWaterMarkTemplateRequest::getResourceOwnerId()const void SearchWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SearchWaterMarkTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string SearchWaterMarkTemplateRequest::getResourceOwnerAccount()const void SearchWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SearchWaterMarkTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string SearchWaterMarkTemplateRequest::getOwnerAccount()const void SearchWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SearchWaterMarkTemplateRequest::getPageSize()const @@ -66,7 +66,7 @@ long SearchWaterMarkTemplateRequest::getPageSize()const void SearchWaterMarkTemplateRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string SearchWaterMarkTemplateRequest::getState()const @@ -77,7 +77,7 @@ std::string SearchWaterMarkTemplateRequest::getState()const void SearchWaterMarkTemplateRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } long SearchWaterMarkTemplateRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SearchWaterMarkTemplateRequest::getOwnerId()const void SearchWaterMarkTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long SearchWaterMarkTemplateRequest::getPageNumber()const @@ -99,7 +99,7 @@ long SearchWaterMarkTemplateRequest::getPageNumber()const void SearchWaterMarkTemplateRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string SearchWaterMarkTemplateRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string SearchWaterMarkTemplateRequest::getAccessKeyId()const void SearchWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/SearchWaterMarkTemplateResult.cc b/mts/src/model/SearchWaterMarkTemplateResult.cc index d714cae98..6bf8f6926 100644 --- a/mts/src/model/SearchWaterMarkTemplateResult.cc +++ b/mts/src/model/SearchWaterMarkTemplateResult.cc @@ -35,10 +35,13 @@ SearchWaterMarkTemplateResult::~SearchWaterMarkTemplateResult() void SearchWaterMarkTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWaterMarkTemplateList = value["WaterMarkTemplateList"]["WaterMarkTemplate"]; for (auto value : allWaterMarkTemplateList) diff --git a/mts/src/model/SetAuthConfigRequest.cc b/mts/src/model/SetAuthConfigRequest.cc index 04ddd50b5..11b146fcb 100644 --- a/mts/src/model/SetAuthConfigRequest.cc +++ b/mts/src/model/SetAuthConfigRequest.cc @@ -33,7 +33,7 @@ std::string SetAuthConfigRequest::getKey1()const void SetAuthConfigRequest::setKey1(const std::string& key1) { key1_ = key1; - setParameter("Key1", key1); + setCoreParameter("Key1", key1); } std::string SetAuthConfigRequest::getKey2()const @@ -44,7 +44,7 @@ std::string SetAuthConfigRequest::getKey2()const void SetAuthConfigRequest::setKey2(const std::string& key2) { key2_ = key2; - setParameter("Key2", key2); + setCoreParameter("Key2", key2); } std::string SetAuthConfigRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ std::string SetAuthConfigRequest::getResourceOwnerId()const void SetAuthConfigRequest::setResourceOwnerId(const std::string& resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); + setCoreParameter("ResourceOwnerId", resourceOwnerId); } std::string SetAuthConfigRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SetAuthConfigRequest::getResourceOwnerAccount()const void SetAuthConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetAuthConfigRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SetAuthConfigRequest::getOwnerAccount()const void SetAuthConfigRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SetAuthConfigRequest::getOwnerId()const @@ -88,7 +88,7 @@ std::string SetAuthConfigRequest::getOwnerId()const void SetAuthConfigRequest::setOwnerId(const std::string& ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", ownerId); + setCoreParameter("OwnerId", ownerId); } std::string SetAuthConfigRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string SetAuthConfigRequest::getAccessKeyId()const void SetAuthConfigRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/SetAuthConfigResult.cc b/mts/src/model/SetAuthConfigResult.cc index bf70d39a4..fdd220d15 100644 --- a/mts/src/model/SetAuthConfigResult.cc +++ b/mts/src/model/SetAuthConfigResult.cc @@ -35,10 +35,13 @@ SetAuthConfigResult::~SetAuthConfigResult() void SetAuthConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Key1"].isNull()) key1_ = value["Key1"].asString(); diff --git a/mts/src/model/SubmitAnalysisJobRequest.cc b/mts/src/model/SubmitAnalysisJobRequest.cc index 3692a18f1..5916d938b 100644 --- a/mts/src/model/SubmitAnalysisJobRequest.cc +++ b/mts/src/model/SubmitAnalysisJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitAnalysisJobRequest::getInput()const void SubmitAnalysisJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitAnalysisJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitAnalysisJobRequest::getUserData()const void SubmitAnalysisJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitAnalysisJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitAnalysisJobRequest::getResourceOwnerId()const void SubmitAnalysisJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitAnalysisJobRequest::getAnalysisConfig()const @@ -66,7 +66,7 @@ std::string SubmitAnalysisJobRequest::getAnalysisConfig()const void SubmitAnalysisJobRequest::setAnalysisConfig(const std::string& analysisConfig) { analysisConfig_ = analysisConfig; - setParameter("AnalysisConfig", analysisConfig); + setCoreParameter("AnalysisConfig", analysisConfig); } std::string SubmitAnalysisJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitAnalysisJobRequest::getResourceOwnerAccount()const void SubmitAnalysisJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitAnalysisJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitAnalysisJobRequest::getOwnerAccount()const void SubmitAnalysisJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitAnalysisJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitAnalysisJobRequest::getOwnerId()const void SubmitAnalysisJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitAnalysisJobRequest::getPriority()const @@ -110,7 +110,7 @@ std::string SubmitAnalysisJobRequest::getPriority()const void SubmitAnalysisJobRequest::setPriority(const std::string& priority) { priority_ = priority; - setParameter("Priority", priority); + setCoreParameter("Priority", priority); } std::string SubmitAnalysisJobRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string SubmitAnalysisJobRequest::getAccessKeyId()const void SubmitAnalysisJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitAnalysisJobRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string SubmitAnalysisJobRequest::getPipelineId()const void SubmitAnalysisJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitAnalysisJobResult.cc b/mts/src/model/SubmitAnalysisJobResult.cc index ea2d88ba3..8c3bd9ecc 100644 --- a/mts/src/model/SubmitAnalysisJobResult.cc +++ b/mts/src/model/SubmitAnalysisJobResult.cc @@ -35,10 +35,13 @@ SubmitAnalysisJobResult::~SubmitAnalysisJobResult() void SubmitAnalysisJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto analysisJobNode = value["AnalysisJob"]; if(!analysisJobNode["Id"].isNull()) diff --git a/mts/src/model/SubmitAnnotationJobRequest.cc b/mts/src/model/SubmitAnnotationJobRequest.cc index 0da6c3005..1462c348b 100644 --- a/mts/src/model/SubmitAnnotationJobRequest.cc +++ b/mts/src/model/SubmitAnnotationJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitAnnotationJobRequest::getInput()const void SubmitAnnotationJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitAnnotationJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitAnnotationJobRequest::getUserData()const void SubmitAnnotationJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitAnnotationJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitAnnotationJobRequest::getResourceOwnerId()const void SubmitAnnotationJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitAnnotationJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitAnnotationJobRequest::getResourceOwnerAccount()const void SubmitAnnotationJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitAnnotationJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitAnnotationJobRequest::getOwnerAccount()const void SubmitAnnotationJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitAnnotationJobRequest::getAnnotationConfig()const @@ -88,7 +88,7 @@ std::string SubmitAnnotationJobRequest::getAnnotationConfig()const void SubmitAnnotationJobRequest::setAnnotationConfig(const std::string& annotationConfig) { annotationConfig_ = annotationConfig; - setParameter("AnnotationConfig", annotationConfig); + setCoreParameter("AnnotationConfig", annotationConfig); } long SubmitAnnotationJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitAnnotationJobRequest::getOwnerId()const void SubmitAnnotationJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitAnnotationJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitAnnotationJobRequest::getAccessKeyId()const void SubmitAnnotationJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitAnnotationJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitAnnotationJobRequest::getPipelineId()const void SubmitAnnotationJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitAnnotationJobResult.cc b/mts/src/model/SubmitAnnotationJobResult.cc index b875b57cc..78660ddfd 100644 --- a/mts/src/model/SubmitAnnotationJobResult.cc +++ b/mts/src/model/SubmitAnnotationJobResult.cc @@ -35,10 +35,13 @@ SubmitAnnotationJobResult::~SubmitAnnotationJobResult() void SubmitAnnotationJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitAsrJobRequest.cc b/mts/src/model/SubmitAsrJobRequest.cc index f03f14c3d..b7ae4521e 100644 --- a/mts/src/model/SubmitAsrJobRequest.cc +++ b/mts/src/model/SubmitAsrJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitAsrJobRequest::getInput()const void SubmitAsrJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitAsrJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitAsrJobRequest::getUserData()const void SubmitAsrJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitAsrJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitAsrJobRequest::getResourceOwnerId()const void SubmitAsrJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitAsrJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitAsrJobRequest::getResourceOwnerAccount()const void SubmitAsrJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitAsrJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitAsrJobRequest::getOwnerAccount()const void SubmitAsrJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitAsrJobRequest::getAsrConfig()const @@ -88,7 +88,7 @@ std::string SubmitAsrJobRequest::getAsrConfig()const void SubmitAsrJobRequest::setAsrConfig(const std::string& asrConfig) { asrConfig_ = asrConfig; - setParameter("AsrConfig", asrConfig); + setCoreParameter("AsrConfig", asrConfig); } long SubmitAsrJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitAsrJobRequest::getOwnerId()const void SubmitAsrJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitAsrJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitAsrJobRequest::getAccessKeyId()const void SubmitAsrJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitAsrJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitAsrJobRequest::getPipelineId()const void SubmitAsrJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitAsrJobResult.cc b/mts/src/model/SubmitAsrJobResult.cc index e0cba9994..ca55a0fe3 100644 --- a/mts/src/model/SubmitAsrJobResult.cc +++ b/mts/src/model/SubmitAsrJobResult.cc @@ -35,10 +35,13 @@ SubmitAsrJobResult::~SubmitAsrJobResult() void SubmitAsrJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitBeautifyJobsRequest.cc b/mts/src/model/SubmitBeautifyJobsRequest.cc new file mode 100644 index 000000000..0d281fcab --- /dev/null +++ b/mts/src/model/SubmitBeautifyJobsRequest.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::Mts::Model::SubmitBeautifyJobsRequest; + +SubmitBeautifyJobsRequest::SubmitBeautifyJobsRequest() : + RpcServiceRequest("mts", "2014-06-18", "SubmitBeautifyJobs") +{} + +SubmitBeautifyJobsRequest::~SubmitBeautifyJobsRequest() +{} + +std::string SubmitBeautifyJobsRequest::getBeautifyConfig()const +{ + return beautifyConfig_; +} + +void SubmitBeautifyJobsRequest::setBeautifyConfig(const std::string& beautifyConfig) +{ + beautifyConfig_ = beautifyConfig; + setCoreParameter("BeautifyConfig", beautifyConfig); +} + +std::string SubmitBeautifyJobsRequest::getUserData()const +{ + return userData_; +} + +void SubmitBeautifyJobsRequest::setUserData(const std::string& userData) +{ + userData_ = userData; + setCoreParameter("UserData", userData); +} + +bool SubmitBeautifyJobsRequest::getAsync()const +{ + return async_; +} + +void SubmitBeautifyJobsRequest::setAsync(bool async) +{ + async_ = async; + setCoreParameter("Async", async ? "true" : "false"); +} + +long SubmitBeautifyJobsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SubmitBeautifyJobsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SubmitBeautifyJobsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SubmitBeautifyJobsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SubmitBeautifyJobsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SubmitBeautifyJobsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long SubmitBeautifyJobsRequest::getOwnerId()const +{ + return ownerId_; +} + +void SubmitBeautifyJobsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SubmitBeautifyJobsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SubmitBeautifyJobsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SubmitBeautifyJobsRequest::getPipelineId()const +{ + return pipelineId_; +} + +void SubmitBeautifyJobsRequest::setPipelineId(const std::string& pipelineId) +{ + pipelineId_ = pipelineId; + setCoreParameter("PipelineId", pipelineId); +} + diff --git a/mts/src/model/SubmitBeautifyJobsResult.cc b/mts/src/model/SubmitBeautifyJobsResult.cc new file mode 100644 index 000000000..3ea863b43 --- /dev/null +++ b/mts/src/model/SubmitBeautifyJobsResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitBeautifyJobsResult::SubmitBeautifyJobsResult() : + ServiceResult() +{} + +SubmitBeautifyJobsResult::SubmitBeautifyJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitBeautifyJobsResult::~SubmitBeautifyJobsResult() +{} + +void SubmitBeautifyJobsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allJobList = value["JobList"]["Job"]; + for (auto value : allJobList) + { + Job jobListObject; + if(!value["Id"].isNull()) + jobListObject.id = value["Id"].asString(); + if(!value["UserData"].isNull()) + jobListObject.userData = value["UserData"].asString(); + if(!value["PipelineId"].isNull()) + jobListObject.pipelineId = value["PipelineId"].asString(); + if(!value["State"].isNull()) + jobListObject.state = value["State"].asString(); + if(!value["Code"].isNull()) + jobListObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + jobListObject.message = value["Message"].asString(); + if(!value["CreationTime"].isNull()) + jobListObject.creationTime = value["CreationTime"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["RoleArn"].isNull()) + jobListObject.input.roleArn = inputNode["RoleArn"].asString(); + auto beautifyConfigNode = value["BeautifyConfig"]; + auto outputFileNode = beautifyConfigNode["OutputFile"]; + if(!outputFileNode["Bucket"].isNull()) + jobListObject.beautifyConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.beautifyConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Object"].isNull()) + jobListObject.beautifyConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["RoleArn"].isNull()) + jobListObject.beautifyConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + auto mNSMessageResultNode = value["MNSMessageResult"]; + if(!mNSMessageResultNode["MessageId"].isNull()) + jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); + if(!mNSMessageResultNode["ErrorMessage"].isNull()) + jobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); + if(!mNSMessageResultNode["ErrorCode"].isNull()) + jobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + jobList_.push_back(jobListObject); + } + +} + +std::vector SubmitBeautifyJobsResult::getJobList()const +{ + return jobList_; +} + diff --git a/mts/src/model/SubmitComplexJobRequest.cc b/mts/src/model/SubmitComplexJobRequest.cc index 64f909434..2ec1c0ace 100644 --- a/mts/src/model/SubmitComplexJobRequest.cc +++ b/mts/src/model/SubmitComplexJobRequest.cc @@ -33,7 +33,7 @@ long SubmitComplexJobRequest::getResourceOwnerId()const void SubmitComplexJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitComplexJobRequest::getTranscodeOutput()const @@ -44,7 +44,7 @@ std::string SubmitComplexJobRequest::getTranscodeOutput()const void SubmitComplexJobRequest::setTranscodeOutput(const std::string& transcodeOutput) { transcodeOutput_ = transcodeOutput; - setParameter("TranscodeOutput", transcodeOutput); + setCoreParameter("TranscodeOutput", transcodeOutput); } std::string SubmitComplexJobRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string SubmitComplexJobRequest::getResourceOwnerAccount()const void SubmitComplexJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitComplexJobRequest::getInputs()const @@ -66,7 +66,7 @@ std::string SubmitComplexJobRequest::getInputs()const void SubmitComplexJobRequest::setInputs(const std::string& inputs) { inputs_ = inputs; - setParameter("Inputs", inputs); + setCoreParameter("Inputs", inputs); } std::string SubmitComplexJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitComplexJobRequest::getOwnerAccount()const void SubmitComplexJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitComplexJobRequest::getOutputLocation()const @@ -88,7 +88,7 @@ std::string SubmitComplexJobRequest::getOutputLocation()const void SubmitComplexJobRequest::setOutputLocation(const std::string& outputLocation) { outputLocation_ = outputLocation; - setParameter("OutputLocation", outputLocation); + setCoreParameter("OutputLocation", outputLocation); } long SubmitComplexJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitComplexJobRequest::getOwnerId()const void SubmitComplexJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitComplexJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitComplexJobRequest::getAccessKeyId()const void SubmitComplexJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitComplexJobRequest::getPipelineId()const @@ -121,7 +121,7 @@ std::string SubmitComplexJobRequest::getPipelineId()const void SubmitComplexJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } std::string SubmitComplexJobRequest::getOutputBucket()const @@ -132,7 +132,7 @@ std::string SubmitComplexJobRequest::getOutputBucket()const void SubmitComplexJobRequest::setOutputBucket(const std::string& outputBucket) { outputBucket_ = outputBucket; - setParameter("OutputBucket", outputBucket); + setCoreParameter("OutputBucket", outputBucket); } std::string SubmitComplexJobRequest::getUserData()const @@ -143,7 +143,7 @@ std::string SubmitComplexJobRequest::getUserData()const void SubmitComplexJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } std::string SubmitComplexJobRequest::getComplexConfigs()const @@ -154,6 +154,6 @@ std::string SubmitComplexJobRequest::getComplexConfigs()const void SubmitComplexJobRequest::setComplexConfigs(const std::string& complexConfigs) { complexConfigs_ = complexConfigs; - setParameter("ComplexConfigs", complexConfigs); + setCoreParameter("ComplexConfigs", complexConfigs); } diff --git a/mts/src/model/SubmitComplexJobResult.cc b/mts/src/model/SubmitComplexJobResult.cc index 2fb0e0ede..e67a369e3 100644 --- a/mts/src/model/SubmitComplexJobResult.cc +++ b/mts/src/model/SubmitComplexJobResult.cc @@ -35,10 +35,13 @@ SubmitComplexJobResult::~SubmitComplexJobResult() void SubmitComplexJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto complexJobNode = value["ComplexJob"]; if(!complexJobNode["JobId"].isNull()) diff --git a/mts/src/model/SubmitCoverJobRequest.cc b/mts/src/model/SubmitCoverJobRequest.cc index 12fdbbd51..4924fd787 100644 --- a/mts/src/model/SubmitCoverJobRequest.cc +++ b/mts/src/model/SubmitCoverJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitCoverJobRequest::getInput()const void SubmitCoverJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitCoverJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitCoverJobRequest::getUserData()const void SubmitCoverJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitCoverJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitCoverJobRequest::getResourceOwnerId()const void SubmitCoverJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitCoverJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitCoverJobRequest::getResourceOwnerAccount()const void SubmitCoverJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitCoverJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitCoverJobRequest::getOwnerAccount()const void SubmitCoverJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitCoverJobRequest::getCoverConfig()const @@ -88,7 +88,7 @@ std::string SubmitCoverJobRequest::getCoverConfig()const void SubmitCoverJobRequest::setCoverConfig(const std::string& coverConfig) { coverConfig_ = coverConfig; - setParameter("CoverConfig", coverConfig); + setCoreParameter("CoverConfig", coverConfig); } long SubmitCoverJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitCoverJobRequest::getOwnerId()const void SubmitCoverJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitCoverJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitCoverJobRequest::getAccessKeyId()const void SubmitCoverJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitCoverJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitCoverJobRequest::getPipelineId()const void SubmitCoverJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitCoverJobResult.cc b/mts/src/model/SubmitCoverJobResult.cc index c4f714761..460978416 100644 --- a/mts/src/model/SubmitCoverJobResult.cc +++ b/mts/src/model/SubmitCoverJobResult.cc @@ -35,10 +35,13 @@ SubmitCoverJobResult::~SubmitCoverJobResult() void SubmitCoverJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitEditingJobsRequest.cc b/mts/src/model/SubmitEditingJobsRequest.cc index 8172daf69..57103aa15 100644 --- a/mts/src/model/SubmitEditingJobsRequest.cc +++ b/mts/src/model/SubmitEditingJobsRequest.cc @@ -33,7 +33,7 @@ std::string SubmitEditingJobsRequest::getOutputBucket()const void SubmitEditingJobsRequest::setOutputBucket(const std::string& outputBucket) { outputBucket_ = outputBucket; - setParameter("OutputBucket", outputBucket); + setCoreParameter("OutputBucket", outputBucket); } long SubmitEditingJobsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SubmitEditingJobsRequest::getResourceOwnerId()const void SubmitEditingJobsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitEditingJobsRequest::getEditingJobOutputs()const @@ -55,7 +55,7 @@ std::string SubmitEditingJobsRequest::getEditingJobOutputs()const void SubmitEditingJobsRequest::setEditingJobOutputs(const std::string& editingJobOutputs) { editingJobOutputs_ = editingJobOutputs; - setParameter("EditingJobOutputs", editingJobOutputs); + setCoreParameter("EditingJobOutputs", editingJobOutputs); } std::string SubmitEditingJobsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitEditingJobsRequest::getResourceOwnerAccount()const void SubmitEditingJobsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitEditingJobsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitEditingJobsRequest::getOwnerAccount()const void SubmitEditingJobsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitEditingJobsRequest::getOutputLocation()const @@ -88,7 +88,7 @@ std::string SubmitEditingJobsRequest::getOutputLocation()const void SubmitEditingJobsRequest::setOutputLocation(const std::string& outputLocation) { outputLocation_ = outputLocation; - setParameter("OutputLocation", outputLocation); + setCoreParameter("OutputLocation", outputLocation); } long SubmitEditingJobsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitEditingJobsRequest::getOwnerId()const void SubmitEditingJobsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitEditingJobsRequest::getEditingInputs()const @@ -110,7 +110,7 @@ std::string SubmitEditingJobsRequest::getEditingInputs()const void SubmitEditingJobsRequest::setEditingInputs(const std::string& editingInputs) { editingInputs_ = editingInputs; - setParameter("EditingInputs", editingInputs); + setCoreParameter("EditingInputs", editingInputs); } std::string SubmitEditingJobsRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string SubmitEditingJobsRequest::getAccessKeyId()const void SubmitEditingJobsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitEditingJobsRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string SubmitEditingJobsRequest::getPipelineId()const void SubmitEditingJobsRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitEditingJobsResult.cc b/mts/src/model/SubmitEditingJobsResult.cc index 5336ff692..f3be6097a 100644 --- a/mts/src/model/SubmitEditingJobsResult.cc +++ b/mts/src/model/SubmitEditingJobsResult.cc @@ -35,10 +35,13 @@ SubmitEditingJobsResult::~SubmitEditingJobsResult() void SubmitEditingJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobResultList = value["JobResultList"]["JobResult"]; for (auto value : allJobResultList) diff --git a/mts/src/model/SubmitFacerecogJobRequest.cc b/mts/src/model/SubmitFacerecogJobRequest.cc index e49441b68..76bc039bc 100644 --- a/mts/src/model/SubmitFacerecogJobRequest.cc +++ b/mts/src/model/SubmitFacerecogJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitFacerecogJobRequest::getInput()const void SubmitFacerecogJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitFacerecogJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitFacerecogJobRequest::getUserData()const void SubmitFacerecogJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitFacerecogJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitFacerecogJobRequest::getResourceOwnerId()const void SubmitFacerecogJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitFacerecogJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitFacerecogJobRequest::getResourceOwnerAccount()const void SubmitFacerecogJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitFacerecogJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitFacerecogJobRequest::getOwnerAccount()const void SubmitFacerecogJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitFacerecogJobRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SubmitFacerecogJobRequest::getOwnerId()const void SubmitFacerecogJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitFacerecogJobRequest::getFacerecogConfig()const @@ -99,7 +99,7 @@ std::string SubmitFacerecogJobRequest::getFacerecogConfig()const void SubmitFacerecogJobRequest::setFacerecogConfig(const std::string& facerecogConfig) { facerecogConfig_ = facerecogConfig; - setParameter("FacerecogConfig", facerecogConfig); + setCoreParameter("FacerecogConfig", facerecogConfig); } std::string SubmitFacerecogJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitFacerecogJobRequest::getAccessKeyId()const void SubmitFacerecogJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitFacerecogJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitFacerecogJobRequest::getPipelineId()const void SubmitFacerecogJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitFacerecogJobResult.cc b/mts/src/model/SubmitFacerecogJobResult.cc index a4ed62132..e103b6cdc 100644 --- a/mts/src/model/SubmitFacerecogJobResult.cc +++ b/mts/src/model/SubmitFacerecogJobResult.cc @@ -35,10 +35,13 @@ SubmitFacerecogJobResult::~SubmitFacerecogJobResult() void SubmitFacerecogJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitFpCompareJobRequest.cc b/mts/src/model/SubmitFpCompareJobRequest.cc new file mode 100644 index 000000000..d9a09f688 --- /dev/null +++ b/mts/src/model/SubmitFpCompareJobRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitFpCompareJobRequest; + +SubmitFpCompareJobRequest::SubmitFpCompareJobRequest() : + RpcServiceRequest("mts", "2014-06-18", "SubmitFpCompareJob") +{} + +SubmitFpCompareJobRequest::~SubmitFpCompareJobRequest() +{} + +std::string SubmitFpCompareJobRequest::getMatchedFrameStorage()const +{ + return matchedFrameStorage_; +} + +void SubmitFpCompareJobRequest::setMatchedFrameStorage(const std::string& matchedFrameStorage) +{ + matchedFrameStorage_ = matchedFrameStorage; + setCoreParameter("MatchedFrameStorage", matchedFrameStorage); +} + +std::string SubmitFpCompareJobRequest::getUserData()const +{ + return userData_; +} + +void SubmitFpCompareJobRequest::setUserData(const std::string& userData) +{ + userData_ = userData; + setCoreParameter("UserData", userData); +} + +long SubmitFpCompareJobRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SubmitFpCompareJobRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SubmitFpCompareJobRequest::getQueryMedia()const +{ + return queryMedia_; +} + +void SubmitFpCompareJobRequest::setQueryMedia(const std::string& queryMedia) +{ + queryMedia_ = queryMedia; + setCoreParameter("QueryMedia", queryMedia); +} + +std::string SubmitFpCompareJobRequest::getFpDBId()const +{ + return fpDBId_; +} + +void SubmitFpCompareJobRequest::setFpDBId(const std::string& fpDBId) +{ + fpDBId_ = fpDBId; + setCoreParameter("FpDBId", fpDBId); +} + +std::string SubmitFpCompareJobRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SubmitFpCompareJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SubmitFpCompareJobRequest::getMasterMedia()const +{ + return masterMedia_; +} + +void SubmitFpCompareJobRequest::setMasterMedia(const std::string& masterMedia) +{ + masterMedia_ = masterMedia; + setCoreParameter("MasterMedia", masterMedia); +} + +std::string SubmitFpCompareJobRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SubmitFpCompareJobRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long SubmitFpCompareJobRequest::getOwnerId()const +{ + return ownerId_; +} + +void SubmitFpCompareJobRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SubmitFpCompareJobRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SubmitFpCompareJobRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string SubmitFpCompareJobRequest::getPipelineId()const +{ + return pipelineId_; +} + +void SubmitFpCompareJobRequest::setPipelineId(const std::string& pipelineId) +{ + pipelineId_ = pipelineId; + setCoreParameter("PipelineId", pipelineId); +} + diff --git a/mts/src/model/SubmitFpCompareJobResult.cc b/mts/src/model/SubmitFpCompareJobResult.cc new file mode 100644 index 000000000..fdf9d4dc5 --- /dev/null +++ b/mts/src/model/SubmitFpCompareJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitFpCompareJobResult::SubmitFpCompareJobResult() : + ServiceResult() +{} + +SubmitFpCompareJobResult::SubmitFpCompareJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitFpCompareJobResult::~SubmitFpCompareJobResult() +{} + +void SubmitFpCompareJobResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitFpCompareJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitFpShotJobRequest.cc b/mts/src/model/SubmitFpShotJobRequest.cc index 0c23487fd..b31e790e1 100644 --- a/mts/src/model/SubmitFpShotJobRequest.cc +++ b/mts/src/model/SubmitFpShotJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitFpShotJobRequest::getInput()const void SubmitFpShotJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitFpShotJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitFpShotJobRequest::getUserData()const void SubmitFpShotJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitFpShotJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitFpShotJobRequest::getResourceOwnerId()const void SubmitFpShotJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitFpShotJobRequest::getFpShotConfig()const @@ -66,7 +66,7 @@ std::string SubmitFpShotJobRequest::getFpShotConfig()const void SubmitFpShotJobRequest::setFpShotConfig(const std::string& fpShotConfig) { fpShotConfig_ = fpShotConfig; - setParameter("FpShotConfig", fpShotConfig); + setCoreParameter("FpShotConfig", fpShotConfig); } std::string SubmitFpShotJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitFpShotJobRequest::getResourceOwnerAccount()const void SubmitFpShotJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitFpShotJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitFpShotJobRequest::getOwnerAccount()const void SubmitFpShotJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitFpShotJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitFpShotJobRequest::getOwnerId()const void SubmitFpShotJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitFpShotJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitFpShotJobRequest::getAccessKeyId()const void SubmitFpShotJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitFpShotJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitFpShotJobRequest::getPipelineId()const void SubmitFpShotJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitFpShotJobResult.cc b/mts/src/model/SubmitFpShotJobResult.cc index 23d0d2bd2..153e3226e 100644 --- a/mts/src/model/SubmitFpShotJobResult.cc +++ b/mts/src/model/SubmitFpShotJobResult.cc @@ -35,10 +35,13 @@ SubmitFpShotJobResult::~SubmitFpShotJobResult() void SubmitFpShotJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitImageQualityJobRequest.cc b/mts/src/model/SubmitImageQualityJobRequest.cc index 8f463c59a..4bbd1145c 100644 --- a/mts/src/model/SubmitImageQualityJobRequest.cc +++ b/mts/src/model/SubmitImageQualityJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitImageQualityJobRequest::getInput()const void SubmitImageQualityJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitImageQualityJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitImageQualityJobRequest::getUserData()const void SubmitImageQualityJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitImageQualityJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitImageQualityJobRequest::getResourceOwnerId()const void SubmitImageQualityJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitImageQualityJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitImageQualityJobRequest::getResourceOwnerAccount()const void SubmitImageQualityJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitImageQualityJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitImageQualityJobRequest::getOwnerAccount()const void SubmitImageQualityJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitImageQualityJobRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SubmitImageQualityJobRequest::getOwnerId()const void SubmitImageQualityJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitImageQualityJobRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string SubmitImageQualityJobRequest::getAccessKeyId()const void SubmitImageQualityJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitImageQualityJobRequest::getPipelineId()const @@ -110,6 +110,6 @@ std::string SubmitImageQualityJobRequest::getPipelineId()const void SubmitImageQualityJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitImageQualityJobResult.cc b/mts/src/model/SubmitImageQualityJobResult.cc index c526798ef..08e13eb4e 100644 --- a/mts/src/model/SubmitImageQualityJobResult.cc +++ b/mts/src/model/SubmitImageQualityJobResult.cc @@ -35,10 +35,13 @@ SubmitImageQualityJobResult::~SubmitImageQualityJobResult() void SubmitImageQualityJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto imageQualityJobNode = value["ImageQualityJob"]; if(!imageQualityJobNode["JobId"].isNull()) diff --git a/mts/src/model/SubmitImageSearchJobRequest.cc b/mts/src/model/SubmitImageSearchJobRequest.cc index d0971cd5e..663181f38 100644 --- a/mts/src/model/SubmitImageSearchJobRequest.cc +++ b/mts/src/model/SubmitImageSearchJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitImageSearchJobRequest::getInputImage()const void SubmitImageSearchJobRequest::setInputImage(const std::string& inputImage) { inputImage_ = inputImage; - setParameter("InputImage", inputImage); + setCoreParameter("InputImage", inputImage); } std::string SubmitImageSearchJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitImageSearchJobRequest::getUserData()const void SubmitImageSearchJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitImageSearchJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitImageSearchJobRequest::getResourceOwnerId()const void SubmitImageSearchJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitImageSearchJobRequest::getFpDBId()const @@ -66,7 +66,7 @@ std::string SubmitImageSearchJobRequest::getFpDBId()const void SubmitImageSearchJobRequest::setFpDBId(const std::string& fpDBId) { fpDBId_ = fpDBId; - setParameter("FpDBId", fpDBId); + setCoreParameter("FpDBId", fpDBId); } std::string SubmitImageSearchJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitImageSearchJobRequest::getResourceOwnerAccount()const void SubmitImageSearchJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitImageSearchJobRequest::getInputVideo()const @@ -88,7 +88,7 @@ std::string SubmitImageSearchJobRequest::getInputVideo()const void SubmitImageSearchJobRequest::setInputVideo(const std::string& inputVideo) { inputVideo_ = inputVideo; - setParameter("InputVideo", inputVideo); + setCoreParameter("InputVideo", inputVideo); } std::string SubmitImageSearchJobRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string SubmitImageSearchJobRequest::getOwnerAccount()const void SubmitImageSearchJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitImageSearchJobRequest::getOwnerId()const @@ -110,7 +110,7 @@ long SubmitImageSearchJobRequest::getOwnerId()const void SubmitImageSearchJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitImageSearchJobRequest::getConfig()const @@ -121,7 +121,7 @@ std::string SubmitImageSearchJobRequest::getConfig()const void SubmitImageSearchJobRequest::setConfig(const std::string& config) { config_ = config; - setParameter("Config", config); + setCoreParameter("Config", config); } std::string SubmitImageSearchJobRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string SubmitImageSearchJobRequest::getAccessKeyId()const void SubmitImageSearchJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitImageSearchJobRequest::getPipelineId()const @@ -143,6 +143,6 @@ std::string SubmitImageSearchJobRequest::getPipelineId()const void SubmitImageSearchJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitImageSearchJobResult.cc b/mts/src/model/SubmitImageSearchJobResult.cc index 5f9ae3164..4c9a72b4b 100644 --- a/mts/src/model/SubmitImageSearchJobResult.cc +++ b/mts/src/model/SubmitImageSearchJobResult.cc @@ -35,10 +35,13 @@ SubmitImageSearchJobResult::~SubmitImageSearchJobResult() void SubmitImageSearchJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitJobsRequest.cc b/mts/src/model/SubmitJobsRequest.cc index b9918438d..a4bfe84e4 100644 --- a/mts/src/model/SubmitJobsRequest.cc +++ b/mts/src/model/SubmitJobsRequest.cc @@ -33,7 +33,7 @@ std::string SubmitJobsRequest::getOutputs()const void SubmitJobsRequest::setOutputs(const std::string& outputs) { outputs_ = outputs; - setParameter("Outputs", outputs); + setCoreParameter("Outputs", outputs); } std::string SubmitJobsRequest::getInput()const @@ -44,7 +44,7 @@ std::string SubmitJobsRequest::getInput()const void SubmitJobsRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitJobsRequest::getOutputBucket()const @@ -55,7 +55,7 @@ std::string SubmitJobsRequest::getOutputBucket()const void SubmitJobsRequest::setOutputBucket(const std::string& outputBucket) { outputBucket_ = outputBucket; - setParameter("OutputBucket", outputBucket); + setCoreParameter("OutputBucket", outputBucket); } long SubmitJobsRequest::getResourceOwnerId()const @@ -66,7 +66,7 @@ long SubmitJobsRequest::getResourceOwnerId()const void SubmitJobsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitJobsRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitJobsRequest::getResourceOwnerAccount()const void SubmitJobsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitJobsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitJobsRequest::getOwnerAccount()const void SubmitJobsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitJobsRequest::getOutputLocation()const @@ -99,7 +99,7 @@ std::string SubmitJobsRequest::getOutputLocation()const void SubmitJobsRequest::setOutputLocation(const std::string& outputLocation) { outputLocation_ = outputLocation; - setParameter("OutputLocation", outputLocation); + setCoreParameter("OutputLocation", outputLocation); } long SubmitJobsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long SubmitJobsRequest::getOwnerId()const void SubmitJobsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitJobsRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string SubmitJobsRequest::getAccessKeyId()const void SubmitJobsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitJobsRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string SubmitJobsRequest::getPipelineId()const void SubmitJobsRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitJobsResult.cc b/mts/src/model/SubmitJobsResult.cc index 036399860..8c53ea788 100644 --- a/mts/src/model/SubmitJobsResult.cc +++ b/mts/src/model/SubmitJobsResult.cc @@ -35,10 +35,13 @@ SubmitJobsResult::~SubmitJobsResult() void SubmitJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allJobResultList = value["JobResultList"]["JobResult"]; for (auto value : allJobResultList) diff --git a/mts/src/model/SubmitMCJobRequest.cc b/mts/src/model/SubmitMCJobRequest.cc index e702c7d85..f21b40036 100644 --- a/mts/src/model/SubmitMCJobRequest.cc +++ b/mts/src/model/SubmitMCJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitMCJobRequest::getUserData()const void SubmitMCJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitMCJobRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SubmitMCJobRequest::getResourceOwnerId()const void SubmitMCJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitMCJobRequest::getImages()const @@ -55,7 +55,7 @@ std::string SubmitMCJobRequest::getImages()const void SubmitMCJobRequest::setImages(const std::string& images) { images_ = images; - setParameter("Images", images); + setCoreParameter("Images", images); } std::string SubmitMCJobRequest::getTexts()const @@ -66,7 +66,7 @@ std::string SubmitMCJobRequest::getTexts()const void SubmitMCJobRequest::setTexts(const std::string& texts) { texts_ = texts; - setParameter("Texts", texts); + setCoreParameter("Texts", texts); } std::string SubmitMCJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitMCJobRequest::getResourceOwnerAccount()const void SubmitMCJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitMCJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitMCJobRequest::getOwnerAccount()const void SubmitMCJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitMCJobRequest::getVideo()const @@ -99,7 +99,7 @@ std::string SubmitMCJobRequest::getVideo()const void SubmitMCJobRequest::setVideo(const std::string& video) { video_ = video; - setParameter("Video", video); + setCoreParameter("Video", video); } long SubmitMCJobRequest::getOwnerId()const @@ -110,7 +110,7 @@ long SubmitMCJobRequest::getOwnerId()const void SubmitMCJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitMCJobRequest::getCensorConfig()const @@ -121,7 +121,7 @@ std::string SubmitMCJobRequest::getCensorConfig()const void SubmitMCJobRequest::setCensorConfig(const std::string& censorConfig) { censorConfig_ = censorConfig; - setParameter("CensorConfig", censorConfig); + setCoreParameter("CensorConfig", censorConfig); } std::string SubmitMCJobRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string SubmitMCJobRequest::getAccessKeyId()const void SubmitMCJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitMCJobRequest::getPipelineId()const @@ -143,6 +143,6 @@ std::string SubmitMCJobRequest::getPipelineId()const void SubmitMCJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitMCJobResult.cc b/mts/src/model/SubmitMCJobResult.cc index ec63666a7..8efde7762 100644 --- a/mts/src/model/SubmitMCJobResult.cc +++ b/mts/src/model/SubmitMCJobResult.cc @@ -35,10 +35,13 @@ SubmitMCJobResult::~SubmitMCJobResult() void SubmitMCJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitMcuJobRequest.cc b/mts/src/model/SubmitMcuJobRequest.cc index b68722635..371cbf36c 100644 --- a/mts/src/model/SubmitMcuJobRequest.cc +++ b/mts/src/model/SubmitMcuJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitMcuJobRequest::get_Template()const void SubmitMcuJobRequest::set_Template(const std::string& _template) { _template_ = _template; - setParameter("_Template", _template); + setCoreParameter("_Template", _template); } std::string SubmitMcuJobRequest::getInput()const @@ -44,7 +44,7 @@ std::string SubmitMcuJobRequest::getInput()const void SubmitMcuJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitMcuJobRequest::getUserData()const @@ -55,7 +55,7 @@ std::string SubmitMcuJobRequest::getUserData()const void SubmitMcuJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitMcuJobRequest::getResourceOwnerId()const @@ -66,7 +66,7 @@ long SubmitMcuJobRequest::getResourceOwnerId()const void SubmitMcuJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitMcuJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitMcuJobRequest::getResourceOwnerAccount()const void SubmitMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitMcuJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitMcuJobRequest::getOwnerAccount()const void SubmitMcuJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitMcuJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitMcuJobRequest::getOwnerId()const void SubmitMcuJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitMcuJobRequest::getTemplateId()const @@ -110,7 +110,7 @@ std::string SubmitMcuJobRequest::getTemplateId()const void SubmitMcuJobRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string SubmitMcuJobRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string SubmitMcuJobRequest::getAccessKeyId()const void SubmitMcuJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitMcuJobRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string SubmitMcuJobRequest::getPipelineId()const void SubmitMcuJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitMcuJobResult.cc b/mts/src/model/SubmitMcuJobResult.cc index fb3b673fa..e05147956 100644 --- a/mts/src/model/SubmitMcuJobResult.cc +++ b/mts/src/model/SubmitMcuJobResult.cc @@ -35,10 +35,13 @@ SubmitMcuJobResult::~SubmitMcuJobResult() void SubmitMcuJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitMediaCensorJobRequest.cc b/mts/src/model/SubmitMediaCensorJobRequest.cc index 040b81bf8..864c28af9 100644 --- a/mts/src/model/SubmitMediaCensorJobRequest.cc +++ b/mts/src/model/SubmitMediaCensorJobRequest.cc @@ -33,7 +33,7 @@ long SubmitMediaCensorJobRequest::getResourceOwnerId()const void SubmitMediaCensorJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitMediaCensorJobRequest::getCoverImages()const @@ -44,7 +44,7 @@ std::string SubmitMediaCensorJobRequest::getCoverImages()const void SubmitMediaCensorJobRequest::setCoverImages(const std::string& coverImages) { coverImages_ = coverImages; - setParameter("CoverImages", coverImages); + setCoreParameter("CoverImages", coverImages); } std::string SubmitMediaCensorJobRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string SubmitMediaCensorJobRequest::getResourceOwnerAccount()const void SubmitMediaCensorJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitMediaCensorJobRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitMediaCensorJobRequest::getOwnerAccount()const void SubmitMediaCensorJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitMediaCensorJobRequest::getDescription()const @@ -77,7 +77,7 @@ std::string SubmitMediaCensorJobRequest::getDescription()const void SubmitMediaCensorJobRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long SubmitMediaCensorJobRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SubmitMediaCensorJobRequest::getOwnerId()const void SubmitMediaCensorJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitMediaCensorJobRequest::getTitle()const @@ -99,7 +99,7 @@ std::string SubmitMediaCensorJobRequest::getTitle()const void SubmitMediaCensorJobRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } std::string SubmitMediaCensorJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitMediaCensorJobRequest::getAccessKeyId()const void SubmitMediaCensorJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitMediaCensorJobRequest::getPipelineId()const @@ -121,7 +121,7 @@ std::string SubmitMediaCensorJobRequest::getPipelineId()const void SubmitMediaCensorJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } std::string SubmitMediaCensorJobRequest::getVideoCensorConfig()const @@ -132,7 +132,7 @@ std::string SubmitMediaCensorJobRequest::getVideoCensorConfig()const void SubmitMediaCensorJobRequest::setVideoCensorConfig(const std::string& videoCensorConfig) { videoCensorConfig_ = videoCensorConfig; - setParameter("VideoCensorConfig", videoCensorConfig); + setCoreParameter("VideoCensorConfig", videoCensorConfig); } std::string SubmitMediaCensorJobRequest::getInput()const @@ -143,7 +143,7 @@ std::string SubmitMediaCensorJobRequest::getInput()const void SubmitMediaCensorJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitMediaCensorJobRequest::getUserData()const @@ -154,7 +154,7 @@ std::string SubmitMediaCensorJobRequest::getUserData()const void SubmitMediaCensorJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } std::string SubmitMediaCensorJobRequest::getBarrages()const @@ -165,6 +165,6 @@ std::string SubmitMediaCensorJobRequest::getBarrages()const void SubmitMediaCensorJobRequest::setBarrages(const std::string& barrages) { barrages_ = barrages; - setParameter("Barrages", barrages); + setCoreParameter("Barrages", barrages); } diff --git a/mts/src/model/SubmitMediaCensorJobResult.cc b/mts/src/model/SubmitMediaCensorJobResult.cc index bfbe403d8..ec0e5791a 100644 --- a/mts/src/model/SubmitMediaCensorJobResult.cc +++ b/mts/src/model/SubmitMediaCensorJobResult.cc @@ -35,10 +35,13 @@ SubmitMediaCensorJobResult::~SubmitMediaCensorJobResult() void SubmitMediaCensorJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitMediaDetailJobRequest.cc b/mts/src/model/SubmitMediaDetailJobRequest.cc index d8075cb9f..b309819db 100644 --- a/mts/src/model/SubmitMediaDetailJobRequest.cc +++ b/mts/src/model/SubmitMediaDetailJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitMediaDetailJobRequest::getInput()const void SubmitMediaDetailJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitMediaDetailJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitMediaDetailJobRequest::getUserData()const void SubmitMediaDetailJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitMediaDetailJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitMediaDetailJobRequest::getResourceOwnerId()const void SubmitMediaDetailJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitMediaDetailJobRequest::getMediaDetailConfig()const @@ -66,7 +66,7 @@ std::string SubmitMediaDetailJobRequest::getMediaDetailConfig()const void SubmitMediaDetailJobRequest::setMediaDetailConfig(const std::string& mediaDetailConfig) { mediaDetailConfig_ = mediaDetailConfig; - setParameter("MediaDetailConfig", mediaDetailConfig); + setCoreParameter("MediaDetailConfig", mediaDetailConfig); } std::string SubmitMediaDetailJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitMediaDetailJobRequest::getResourceOwnerAccount()const void SubmitMediaDetailJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitMediaDetailJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitMediaDetailJobRequest::getOwnerAccount()const void SubmitMediaDetailJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitMediaDetailJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitMediaDetailJobRequest::getOwnerId()const void SubmitMediaDetailJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitMediaDetailJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitMediaDetailJobRequest::getAccessKeyId()const void SubmitMediaDetailJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitMediaDetailJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitMediaDetailJobRequest::getPipelineId()const void SubmitMediaDetailJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitMediaDetailJobResult.cc b/mts/src/model/SubmitMediaDetailJobResult.cc index c8fc917be..24043e117 100644 --- a/mts/src/model/SubmitMediaDetailJobResult.cc +++ b/mts/src/model/SubmitMediaDetailJobResult.cc @@ -35,10 +35,13 @@ SubmitMediaDetailJobResult::~SubmitMediaDetailJobResult() void SubmitMediaDetailJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitMediaFpDeleteJobRequest.cc b/mts/src/model/SubmitMediaFpDeleteJobRequest.cc index b305d31b8..bf56d1804 100644 --- a/mts/src/model/SubmitMediaFpDeleteJobRequest.cc +++ b/mts/src/model/SubmitMediaFpDeleteJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitMediaFpDeleteJobRequest::getUserData()const void SubmitMediaFpDeleteJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitMediaFpDeleteJobRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SubmitMediaFpDeleteJobRequest::getResourceOwnerId()const void SubmitMediaFpDeleteJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitMediaFpDeleteJobRequest::getFpDBId()const @@ -55,7 +55,7 @@ std::string SubmitMediaFpDeleteJobRequest::getFpDBId()const void SubmitMediaFpDeleteJobRequest::setFpDBId(const std::string& fpDBId) { fpDBId_ = fpDBId; - setParameter("FpDBId", fpDBId); + setCoreParameter("FpDBId", fpDBId); } std::string SubmitMediaFpDeleteJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitMediaFpDeleteJobRequest::getResourceOwnerAccount()const void SubmitMediaFpDeleteJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitMediaFpDeleteJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitMediaFpDeleteJobRequest::getOwnerAccount()const void SubmitMediaFpDeleteJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitMediaFpDeleteJobRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SubmitMediaFpDeleteJobRequest::getOwnerId()const void SubmitMediaFpDeleteJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitMediaFpDeleteJobRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string SubmitMediaFpDeleteJobRequest::getAccessKeyId()const void SubmitMediaFpDeleteJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitMediaFpDeleteJobRequest::getPipelineId()const @@ -110,7 +110,7 @@ std::string SubmitMediaFpDeleteJobRequest::getPipelineId()const void SubmitMediaFpDeleteJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } std::string SubmitMediaFpDeleteJobRequest::getPrimaryKey()const @@ -121,6 +121,6 @@ std::string SubmitMediaFpDeleteJobRequest::getPrimaryKey()const void SubmitMediaFpDeleteJobRequest::setPrimaryKey(const std::string& primaryKey) { primaryKey_ = primaryKey; - setParameter("PrimaryKey", primaryKey); + setCoreParameter("PrimaryKey", primaryKey); } diff --git a/mts/src/model/SubmitMediaFpDeleteJobResult.cc b/mts/src/model/SubmitMediaFpDeleteJobResult.cc index bf5b1534f..5400dbe74 100644 --- a/mts/src/model/SubmitMediaFpDeleteJobResult.cc +++ b/mts/src/model/SubmitMediaFpDeleteJobResult.cc @@ -35,10 +35,13 @@ SubmitMediaFpDeleteJobResult::~SubmitMediaFpDeleteJobResult() void SubmitMediaFpDeleteJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitMediaInfoJobRequest.cc b/mts/src/model/SubmitMediaInfoJobRequest.cc index a849f10b6..5dccf83f6 100644 --- a/mts/src/model/SubmitMediaInfoJobRequest.cc +++ b/mts/src/model/SubmitMediaInfoJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitMediaInfoJobRequest::getInput()const void SubmitMediaInfoJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitMediaInfoJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitMediaInfoJobRequest::getUserData()const void SubmitMediaInfoJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } bool SubmitMediaInfoJobRequest::getAsync()const @@ -55,7 +55,7 @@ bool SubmitMediaInfoJobRequest::getAsync()const void SubmitMediaInfoJobRequest::setAsync(bool async) { async_ = async; - setParameter("Async", async ? "true" : "false"); + setCoreParameter("Async", async ? "true" : "false"); } long SubmitMediaInfoJobRequest::getResourceOwnerId()const @@ -66,7 +66,7 @@ long SubmitMediaInfoJobRequest::getResourceOwnerId()const void SubmitMediaInfoJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitMediaInfoJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitMediaInfoJobRequest::getResourceOwnerAccount()const void SubmitMediaInfoJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitMediaInfoJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitMediaInfoJobRequest::getOwnerAccount()const void SubmitMediaInfoJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitMediaInfoJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitMediaInfoJobRequest::getOwnerId()const void SubmitMediaInfoJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitMediaInfoJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitMediaInfoJobRequest::getAccessKeyId()const void SubmitMediaInfoJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitMediaInfoJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitMediaInfoJobRequest::getPipelineId()const void SubmitMediaInfoJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitMediaInfoJobResult.cc b/mts/src/model/SubmitMediaInfoJobResult.cc index 5582f7657..f95e51e2e 100644 --- a/mts/src/model/SubmitMediaInfoJobResult.cc +++ b/mts/src/model/SubmitMediaInfoJobResult.cc @@ -35,10 +35,13 @@ SubmitMediaInfoJobResult::~SubmitMediaInfoJobResult() void SubmitMediaInfoJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaInfoJobNode = value["MediaInfoJob"]; if(!mediaInfoJobNode["JobId"].isNull()) diff --git a/mts/src/model/SubmitPornJobRequest.cc b/mts/src/model/SubmitPornJobRequest.cc index 5052f32a3..998177489 100644 --- a/mts/src/model/SubmitPornJobRequest.cc +++ b/mts/src/model/SubmitPornJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitPornJobRequest::getInput()const void SubmitPornJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitPornJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitPornJobRequest::getUserData()const void SubmitPornJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitPornJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitPornJobRequest::getResourceOwnerId()const void SubmitPornJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitPornJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitPornJobRequest::getResourceOwnerAccount()const void SubmitPornJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitPornJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitPornJobRequest::getOwnerAccount()const void SubmitPornJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitPornJobRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SubmitPornJobRequest::getOwnerId()const void SubmitPornJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitPornJobRequest::getPornConfig()const @@ -99,7 +99,7 @@ std::string SubmitPornJobRequest::getPornConfig()const void SubmitPornJobRequest::setPornConfig(const std::string& pornConfig) { pornConfig_ = pornConfig; - setParameter("PornConfig", pornConfig); + setCoreParameter("PornConfig", pornConfig); } std::string SubmitPornJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitPornJobRequest::getAccessKeyId()const void SubmitPornJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitPornJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitPornJobRequest::getPipelineId()const void SubmitPornJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitPornJobResult.cc b/mts/src/model/SubmitPornJobResult.cc index c9e0f238e..e44f59573 100644 --- a/mts/src/model/SubmitPornJobResult.cc +++ b/mts/src/model/SubmitPornJobResult.cc @@ -35,10 +35,13 @@ SubmitPornJobResult::~SubmitPornJobResult() void SubmitPornJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitSnapshotJobRequest.cc b/mts/src/model/SubmitSnapshotJobRequest.cc index f28125a26..7772f7e26 100644 --- a/mts/src/model/SubmitSnapshotJobRequest.cc +++ b/mts/src/model/SubmitSnapshotJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitSnapshotJobRequest::getInput()const void SubmitSnapshotJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitSnapshotJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitSnapshotJobRequest::getUserData()const void SubmitSnapshotJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitSnapshotJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitSnapshotJobRequest::getResourceOwnerId()const void SubmitSnapshotJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitSnapshotJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitSnapshotJobRequest::getResourceOwnerAccount()const void SubmitSnapshotJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitSnapshotJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitSnapshotJobRequest::getOwnerAccount()const void SubmitSnapshotJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitSnapshotJobRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SubmitSnapshotJobRequest::getOwnerId()const void SubmitSnapshotJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitSnapshotJobRequest::getSnapshotConfig()const @@ -99,7 +99,7 @@ std::string SubmitSnapshotJobRequest::getSnapshotConfig()const void SubmitSnapshotJobRequest::setSnapshotConfig(const std::string& snapshotConfig) { snapshotConfig_ = snapshotConfig; - setParameter("SnapshotConfig", snapshotConfig); + setCoreParameter("SnapshotConfig", snapshotConfig); } std::string SubmitSnapshotJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitSnapshotJobRequest::getAccessKeyId()const void SubmitSnapshotJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitSnapshotJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitSnapshotJobRequest::getPipelineId()const void SubmitSnapshotJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitSnapshotJobResult.cc b/mts/src/model/SubmitSnapshotJobResult.cc index 041ef476b..468496a23 100644 --- a/mts/src/model/SubmitSnapshotJobResult.cc +++ b/mts/src/model/SubmitSnapshotJobResult.cc @@ -35,10 +35,13 @@ SubmitSnapshotJobResult::~SubmitSnapshotJobResult() void SubmitSnapshotJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto snapshotJobNode = value["SnapshotJob"]; if(!snapshotJobNode["Id"].isNull()) diff --git a/mts/src/model/SubmitSubtitleJobRequest.cc b/mts/src/model/SubmitSubtitleJobRequest.cc index e91473a41..183d99e1d 100644 --- a/mts/src/model/SubmitSubtitleJobRequest.cc +++ b/mts/src/model/SubmitSubtitleJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitSubtitleJobRequest::getUserData()const void SubmitSubtitleJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitSubtitleJobRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SubmitSubtitleJobRequest::getResourceOwnerId()const void SubmitSubtitleJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitSubtitleJobRequest::getOutputConfig()const @@ -55,7 +55,7 @@ std::string SubmitSubtitleJobRequest::getOutputConfig()const void SubmitSubtitleJobRequest::setOutputConfig(const std::string& outputConfig) { outputConfig_ = outputConfig; - setParameter("OutputConfig", outputConfig); + setCoreParameter("OutputConfig", outputConfig); } std::string SubmitSubtitleJobRequest::getInputConfig()const @@ -66,7 +66,7 @@ std::string SubmitSubtitleJobRequest::getInputConfig()const void SubmitSubtitleJobRequest::setInputConfig(const std::string& inputConfig) { inputConfig_ = inputConfig; - setParameter("InputConfig", inputConfig); + setCoreParameter("InputConfig", inputConfig); } std::string SubmitSubtitleJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitSubtitleJobRequest::getResourceOwnerAccount()const void SubmitSubtitleJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitSubtitleJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitSubtitleJobRequest::getOwnerAccount()const void SubmitSubtitleJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitSubtitleJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitSubtitleJobRequest::getOwnerId()const void SubmitSubtitleJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitSubtitleJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitSubtitleJobRequest::getAccessKeyId()const void SubmitSubtitleJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitSubtitleJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitSubtitleJobRequest::getPipelineId()const void SubmitSubtitleJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitSubtitleJobResult.cc b/mts/src/model/SubmitSubtitleJobResult.cc index 39eb5552a..5057f8cf9 100644 --- a/mts/src/model/SubmitSubtitleJobResult.cc +++ b/mts/src/model/SubmitSubtitleJobResult.cc @@ -35,10 +35,13 @@ SubmitSubtitleJobResult::~SubmitSubtitleJobResult() void SubmitSubtitleJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto subtitleJobNode = value["SubtitleJob"]; if(!subtitleJobNode["JobId"].isNull()) diff --git a/mts/src/model/SubmitTagJobRequest.cc b/mts/src/model/SubmitTagJobRequest.cc index 3fd12fd19..65d2c2419 100644 --- a/mts/src/model/SubmitTagJobRequest.cc +++ b/mts/src/model/SubmitTagJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitTagJobRequest::getInput()const void SubmitTagJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitTagJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitTagJobRequest::getUserData()const void SubmitTagJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitTagJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitTagJobRequest::getResourceOwnerId()const void SubmitTagJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitTagJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitTagJobRequest::getResourceOwnerAccount()const void SubmitTagJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitTagJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitTagJobRequest::getOwnerAccount()const void SubmitTagJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitTagJobRequest::getTagConfig()const @@ -88,7 +88,7 @@ std::string SubmitTagJobRequest::getTagConfig()const void SubmitTagJobRequest::setTagConfig(const std::string& tagConfig) { tagConfig_ = tagConfig; - setParameter("TagConfig", tagConfig); + setCoreParameter("TagConfig", tagConfig); } long SubmitTagJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitTagJobRequest::getOwnerId()const void SubmitTagJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitTagJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitTagJobRequest::getAccessKeyId()const void SubmitTagJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitTagJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitTagJobRequest::getPipelineId()const void SubmitTagJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitTagJobResult.cc b/mts/src/model/SubmitTagJobResult.cc index 38975f251..c167118ba 100644 --- a/mts/src/model/SubmitTagJobResult.cc +++ b/mts/src/model/SubmitTagJobResult.cc @@ -35,10 +35,13 @@ SubmitTagJobResult::~SubmitTagJobResult() void SubmitTagJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitTerrorismJobRequest.cc b/mts/src/model/SubmitTerrorismJobRequest.cc index b9a65a1d2..77ce2767f 100644 --- a/mts/src/model/SubmitTerrorismJobRequest.cc +++ b/mts/src/model/SubmitTerrorismJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitTerrorismJobRequest::getInput()const void SubmitTerrorismJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitTerrorismJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitTerrorismJobRequest::getUserData()const void SubmitTerrorismJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitTerrorismJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitTerrorismJobRequest::getResourceOwnerId()const void SubmitTerrorismJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitTerrorismJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitTerrorismJobRequest::getResourceOwnerAccount()const void SubmitTerrorismJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitTerrorismJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitTerrorismJobRequest::getOwnerAccount()const void SubmitTerrorismJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitTerrorismJobRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SubmitTerrorismJobRequest::getOwnerId()const void SubmitTerrorismJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitTerrorismJobRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string SubmitTerrorismJobRequest::getAccessKeyId()const void SubmitTerrorismJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitTerrorismJobRequest::getPipelineId()const @@ -110,7 +110,7 @@ std::string SubmitTerrorismJobRequest::getPipelineId()const void SubmitTerrorismJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } std::string SubmitTerrorismJobRequest::getTerrorismConfig()const @@ -121,6 +121,6 @@ std::string SubmitTerrorismJobRequest::getTerrorismConfig()const void SubmitTerrorismJobRequest::setTerrorismConfig(const std::string& terrorismConfig) { terrorismConfig_ = terrorismConfig; - setParameter("TerrorismConfig", terrorismConfig); + setCoreParameter("TerrorismConfig", terrorismConfig); } diff --git a/mts/src/model/SubmitTerrorismJobResult.cc b/mts/src/model/SubmitTerrorismJobResult.cc index 75d852bab..dde6d96cf 100644 --- a/mts/src/model/SubmitTerrorismJobResult.cc +++ b/mts/src/model/SubmitTerrorismJobResult.cc @@ -35,10 +35,13 @@ SubmitTerrorismJobResult::~SubmitTerrorismJobResult() void SubmitTerrorismJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitVideoGifJobRequest.cc b/mts/src/model/SubmitVideoGifJobRequest.cc index 9bcf5ae51..49fffb0fa 100644 --- a/mts/src/model/SubmitVideoGifJobRequest.cc +++ b/mts/src/model/SubmitVideoGifJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitVideoGifJobRequest::getInput()const void SubmitVideoGifJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitVideoGifJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitVideoGifJobRequest::getUserData()const void SubmitVideoGifJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitVideoGifJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitVideoGifJobRequest::getResourceOwnerId()const void SubmitVideoGifJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitVideoGifJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitVideoGifJobRequest::getResourceOwnerAccount()const void SubmitVideoGifJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitVideoGifJobRequest::getVideoGifConfig()const @@ -77,7 +77,7 @@ std::string SubmitVideoGifJobRequest::getVideoGifConfig()const void SubmitVideoGifJobRequest::setVideoGifConfig(const std::string& videoGifConfig) { videoGifConfig_ = videoGifConfig; - setParameter("VideoGifConfig", videoGifConfig); + setCoreParameter("VideoGifConfig", videoGifConfig); } std::string SubmitVideoGifJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitVideoGifJobRequest::getOwnerAccount()const void SubmitVideoGifJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitVideoGifJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitVideoGifJobRequest::getOwnerId()const void SubmitVideoGifJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitVideoGifJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitVideoGifJobRequest::getAccessKeyId()const void SubmitVideoGifJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitVideoGifJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitVideoGifJobRequest::getPipelineId()const void SubmitVideoGifJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitVideoGifJobResult.cc b/mts/src/model/SubmitVideoGifJobResult.cc index 87b8eed56..bfc670849 100644 --- a/mts/src/model/SubmitVideoGifJobResult.cc +++ b/mts/src/model/SubmitVideoGifJobResult.cc @@ -35,10 +35,13 @@ SubmitVideoGifJobResult::~SubmitVideoGifJobResult() void SubmitVideoGifJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitVideoPoseJobRequest.cc b/mts/src/model/SubmitVideoPoseJobRequest.cc index ee06572a1..d23ac60c8 100644 --- a/mts/src/model/SubmitVideoPoseJobRequest.cc +++ b/mts/src/model/SubmitVideoPoseJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitVideoPoseJobRequest::getInput()const void SubmitVideoPoseJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitVideoPoseJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitVideoPoseJobRequest::getUserData()const void SubmitVideoPoseJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitVideoPoseJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitVideoPoseJobRequest::getResourceOwnerId()const void SubmitVideoPoseJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitVideoPoseJobRequest::getOutputConfig()const @@ -66,7 +66,7 @@ std::string SubmitVideoPoseJobRequest::getOutputConfig()const void SubmitVideoPoseJobRequest::setOutputConfig(const std::string& outputConfig) { outputConfig_ = outputConfig; - setParameter("OutputConfig", outputConfig); + setCoreParameter("OutputConfig", outputConfig); } std::string SubmitVideoPoseJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitVideoPoseJobRequest::getResourceOwnerAccount()const void SubmitVideoPoseJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitVideoPoseJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitVideoPoseJobRequest::getOwnerAccount()const void SubmitVideoPoseJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitVideoPoseJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitVideoPoseJobRequest::getOwnerId()const void SubmitVideoPoseJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitVideoPoseJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitVideoPoseJobRequest::getAccessKeyId()const void SubmitVideoPoseJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitVideoPoseJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitVideoPoseJobRequest::getPipelineId()const void SubmitVideoPoseJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitVideoPoseJobResult.cc b/mts/src/model/SubmitVideoPoseJobResult.cc index 83bce8939..dd7bc961b 100644 --- a/mts/src/model/SubmitVideoPoseJobResult.cc +++ b/mts/src/model/SubmitVideoPoseJobResult.cc @@ -35,10 +35,13 @@ SubmitVideoPoseJobResult::~SubmitVideoPoseJobResult() void SubmitVideoPoseJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto videoPoseJobNode = value["VideoPoseJob"]; if(!videoPoseJobNode["JobId"].isNull()) diff --git a/mts/src/model/SubmitVideoSplitJobRequest.cc b/mts/src/model/SubmitVideoSplitJobRequest.cc index 0423b1bf2..afd7a8826 100644 --- a/mts/src/model/SubmitVideoSplitJobRequest.cc +++ b/mts/src/model/SubmitVideoSplitJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitVideoSplitJobRequest::getInput()const void SubmitVideoSplitJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitVideoSplitJobRequest::getVideoSplitConfig()const @@ -44,7 +44,7 @@ std::string SubmitVideoSplitJobRequest::getVideoSplitConfig()const void SubmitVideoSplitJobRequest::setVideoSplitConfig(const std::string& videoSplitConfig) { videoSplitConfig_ = videoSplitConfig; - setParameter("VideoSplitConfig", videoSplitConfig); + setCoreParameter("VideoSplitConfig", videoSplitConfig); } std::string SubmitVideoSplitJobRequest::getUserData()const @@ -55,7 +55,7 @@ std::string SubmitVideoSplitJobRequest::getUserData()const void SubmitVideoSplitJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitVideoSplitJobRequest::getResourceOwnerId()const @@ -66,7 +66,7 @@ long SubmitVideoSplitJobRequest::getResourceOwnerId()const void SubmitVideoSplitJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitVideoSplitJobRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitVideoSplitJobRequest::getResourceOwnerAccount()const void SubmitVideoSplitJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitVideoSplitJobRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SubmitVideoSplitJobRequest::getOwnerAccount()const void SubmitVideoSplitJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SubmitVideoSplitJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitVideoSplitJobRequest::getOwnerId()const void SubmitVideoSplitJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitVideoSplitJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitVideoSplitJobRequest::getAccessKeyId()const void SubmitVideoSplitJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitVideoSplitJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitVideoSplitJobRequest::getPipelineId()const void SubmitVideoSplitJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitVideoSplitJobResult.cc b/mts/src/model/SubmitVideoSplitJobResult.cc index 10cf31e11..c5409fbaf 100644 --- a/mts/src/model/SubmitVideoSplitJobResult.cc +++ b/mts/src/model/SubmitVideoSplitJobResult.cc @@ -35,10 +35,13 @@ SubmitVideoSplitJobResult::~SubmitVideoSplitJobResult() void SubmitVideoSplitJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/SubmitVideoSummaryJobRequest.cc b/mts/src/model/SubmitVideoSummaryJobRequest.cc index 598fdcac7..fa872933f 100644 --- a/mts/src/model/SubmitVideoSummaryJobRequest.cc +++ b/mts/src/model/SubmitVideoSummaryJobRequest.cc @@ -33,7 +33,7 @@ std::string SubmitVideoSummaryJobRequest::getInput()const void SubmitVideoSummaryJobRequest::setInput(const std::string& input) { input_ = input; - setParameter("Input", input); + setCoreParameter("Input", input); } std::string SubmitVideoSummaryJobRequest::getUserData()const @@ -44,7 +44,7 @@ std::string SubmitVideoSummaryJobRequest::getUserData()const void SubmitVideoSummaryJobRequest::setUserData(const std::string& userData) { userData_ = userData; - setParameter("UserData", userData); + setCoreParameter("UserData", userData); } long SubmitVideoSummaryJobRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SubmitVideoSummaryJobRequest::getResourceOwnerId()const void SubmitVideoSummaryJobRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SubmitVideoSummaryJobRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SubmitVideoSummaryJobRequest::getResourceOwnerAccount()const void SubmitVideoSummaryJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SubmitVideoSummaryJobRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SubmitVideoSummaryJobRequest::getOwnerAccount()const void SubmitVideoSummaryJobRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SubmitVideoSummaryJobRequest::getVideoSummaryConfig()const @@ -88,7 +88,7 @@ std::string SubmitVideoSummaryJobRequest::getVideoSummaryConfig()const void SubmitVideoSummaryJobRequest::setVideoSummaryConfig(const std::string& videoSummaryConfig) { videoSummaryConfig_ = videoSummaryConfig; - setParameter("VideoSummaryConfig", videoSummaryConfig); + setCoreParameter("VideoSummaryConfig", videoSummaryConfig); } long SubmitVideoSummaryJobRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SubmitVideoSummaryJobRequest::getOwnerId()const void SubmitVideoSummaryJobRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SubmitVideoSummaryJobRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SubmitVideoSummaryJobRequest::getAccessKeyId()const void SubmitVideoSummaryJobRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SubmitVideoSummaryJobRequest::getPipelineId()const @@ -121,6 +121,6 @@ std::string SubmitVideoSummaryJobRequest::getPipelineId()const void SubmitVideoSummaryJobRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/SubmitVideoSummaryJobResult.cc b/mts/src/model/SubmitVideoSummaryJobResult.cc index 1084f5155..c0dae3513 100644 --- a/mts/src/model/SubmitVideoSummaryJobResult.cc +++ b/mts/src/model/SubmitVideoSummaryJobResult.cc @@ -35,10 +35,13 @@ SubmitVideoSummaryJobResult::~SubmitVideoSummaryJobResult() void SubmitVideoSummaryJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); diff --git a/mts/src/model/UnbindInputBucketRequest.cc b/mts/src/model/UnbindInputBucketRequest.cc index d5bf80030..08623d339 100644 --- a/mts/src/model/UnbindInputBucketRequest.cc +++ b/mts/src/model/UnbindInputBucketRequest.cc @@ -33,7 +33,7 @@ std::string UnbindInputBucketRequest::getBucket()const void UnbindInputBucketRequest::setBucket(const std::string& bucket) { bucket_ = bucket; - setParameter("Bucket", bucket); + setCoreParameter("Bucket", bucket); } long UnbindInputBucketRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UnbindInputBucketRequest::getResourceOwnerId()const void UnbindInputBucketRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnbindInputBucketRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UnbindInputBucketRequest::getResourceOwnerAccount()const void UnbindInputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnbindInputBucketRequest::getRoleArn()const @@ -66,7 +66,7 @@ std::string UnbindInputBucketRequest::getRoleArn()const void UnbindInputBucketRequest::setRoleArn(const std::string& roleArn) { roleArn_ = roleArn; - setParameter("RoleArn", roleArn); + setCoreParameter("RoleArn", roleArn); } std::string UnbindInputBucketRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string UnbindInputBucketRequest::getOwnerAccount()const void UnbindInputBucketRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UnbindInputBucketRequest::getOwnerId()const @@ -88,7 +88,7 @@ long UnbindInputBucketRequest::getOwnerId()const void UnbindInputBucketRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UnbindInputBucketRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UnbindInputBucketRequest::getAccessKeyId()const void UnbindInputBucketRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UnbindInputBucketResult.cc b/mts/src/model/UnbindInputBucketResult.cc index 5dac7f62f..a4e4540b5 100644 --- a/mts/src/model/UnbindInputBucketResult.cc +++ b/mts/src/model/UnbindInputBucketResult.cc @@ -35,10 +35,13 @@ UnbindInputBucketResult::~UnbindInputBucketResult() void UnbindInputBucketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/UnbindOutputBucketRequest.cc b/mts/src/model/UnbindOutputBucketRequest.cc index 579ca3f1f..fa2112eb1 100644 --- a/mts/src/model/UnbindOutputBucketRequest.cc +++ b/mts/src/model/UnbindOutputBucketRequest.cc @@ -33,7 +33,7 @@ std::string UnbindOutputBucketRequest::getBucket()const void UnbindOutputBucketRequest::setBucket(const std::string& bucket) { bucket_ = bucket; - setParameter("Bucket", bucket); + setCoreParameter("Bucket", bucket); } long UnbindOutputBucketRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UnbindOutputBucketRequest::getResourceOwnerId()const void UnbindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnbindOutputBucketRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UnbindOutputBucketRequest::getResourceOwnerAccount()const void UnbindOutputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnbindOutputBucketRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UnbindOutputBucketRequest::getOwnerAccount()const void UnbindOutputBucketRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UnbindOutputBucketRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UnbindOutputBucketRequest::getOwnerId()const void UnbindOutputBucketRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UnbindOutputBucketRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string UnbindOutputBucketRequest::getAccessKeyId()const void UnbindOutputBucketRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UnbindOutputBucketResult.cc b/mts/src/model/UnbindOutputBucketResult.cc index 20680c520..2e29fa0a0 100644 --- a/mts/src/model/UnbindOutputBucketResult.cc +++ b/mts/src/model/UnbindOutputBucketResult.cc @@ -35,10 +35,13 @@ UnbindOutputBucketResult::~UnbindOutputBucketResult() void UnbindOutputBucketResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/UpdateAsrPipelineRequest.cc b/mts/src/model/UpdateAsrPipelineRequest.cc index e1e75d71e..611d40f37 100644 --- a/mts/src/model/UpdateAsrPipelineRequest.cc +++ b/mts/src/model/UpdateAsrPipelineRequest.cc @@ -33,7 +33,7 @@ long UpdateAsrPipelineRequest::getResourceOwnerId()const void UpdateAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateAsrPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateAsrPipelineRequest::getResourceOwnerAccount()const void UpdateAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateAsrPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateAsrPipelineRequest::getOwnerAccount()const void UpdateAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateAsrPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string UpdateAsrPipelineRequest::getName()const void UpdateAsrPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateAsrPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string UpdateAsrPipelineRequest::getState()const void UpdateAsrPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string UpdateAsrPipelineRequest::getNotifyConfig()const @@ -88,7 +88,7 @@ std::string UpdateAsrPipelineRequest::getNotifyConfig()const void UpdateAsrPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long UpdateAsrPipelineRequest::getOwnerId()const @@ -99,7 +99,7 @@ long UpdateAsrPipelineRequest::getOwnerId()const void UpdateAsrPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int UpdateAsrPipelineRequest::getPriority()const @@ -110,7 +110,7 @@ int UpdateAsrPipelineRequest::getPriority()const void UpdateAsrPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string UpdateAsrPipelineRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string UpdateAsrPipelineRequest::getAccessKeyId()const void UpdateAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateAsrPipelineRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string UpdateAsrPipelineRequest::getPipelineId()const void UpdateAsrPipelineRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/UpdateAsrPipelineResult.cc b/mts/src/model/UpdateAsrPipelineResult.cc index 1112e886a..ab956ebae 100644 --- a/mts/src/model/UpdateAsrPipelineResult.cc +++ b/mts/src/model/UpdateAsrPipelineResult.cc @@ -35,10 +35,13 @@ UpdateAsrPipelineResult::~UpdateAsrPipelineResult() void UpdateAsrPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/UpdateCategoryNameRequest.cc b/mts/src/model/UpdateCategoryNameRequest.cc index 436592bf3..3cfff02fe 100644 --- a/mts/src/model/UpdateCategoryNameRequest.cc +++ b/mts/src/model/UpdateCategoryNameRequest.cc @@ -33,7 +33,7 @@ long UpdateCategoryNameRequest::getResourceOwnerId()const void UpdateCategoryNameRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateCategoryNameRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateCategoryNameRequest::getResourceOwnerAccount()const void UpdateCategoryNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateCategoryNameRequest::getCateId()const @@ -55,7 +55,7 @@ std::string UpdateCategoryNameRequest::getCateId()const void UpdateCategoryNameRequest::setCateId(const std::string& cateId) { cateId_ = cateId; - setParameter("CateId", cateId); + setCoreParameter("CateId", cateId); } std::string UpdateCategoryNameRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateCategoryNameRequest::getOwnerAccount()const void UpdateCategoryNameRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UpdateCategoryNameRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UpdateCategoryNameRequest::getOwnerId()const void UpdateCategoryNameRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateCategoryNameRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string UpdateCategoryNameRequest::getAccessKeyId()const void UpdateCategoryNameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateCategoryNameRequest::getCateName()const @@ -99,6 +99,6 @@ std::string UpdateCategoryNameRequest::getCateName()const void UpdateCategoryNameRequest::setCateName(const std::string& cateName) { cateName_ = cateName; - setParameter("CateName", cateName); + setCoreParameter("CateName", cateName); } diff --git a/mts/src/model/UpdateCategoryNameResult.cc b/mts/src/model/UpdateCategoryNameResult.cc index 192ec6772..4c8c19794 100644 --- a/mts/src/model/UpdateCategoryNameResult.cc +++ b/mts/src/model/UpdateCategoryNameResult.cc @@ -35,10 +35,13 @@ UpdateCategoryNameResult::~UpdateCategoryNameResult() void UpdateCategoryNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/UpdateCensorPipelineRequest.cc b/mts/src/model/UpdateCensorPipelineRequest.cc index 9b4fc1fe3..441ca0128 100644 --- a/mts/src/model/UpdateCensorPipelineRequest.cc +++ b/mts/src/model/UpdateCensorPipelineRequest.cc @@ -33,7 +33,7 @@ long UpdateCensorPipelineRequest::getResourceOwnerId()const void UpdateCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateCensorPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateCensorPipelineRequest::getResourceOwnerAccount()const void UpdateCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateCensorPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateCensorPipelineRequest::getOwnerAccount()const void UpdateCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateCensorPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string UpdateCensorPipelineRequest::getName()const void UpdateCensorPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateCensorPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string UpdateCensorPipelineRequest::getState()const void UpdateCensorPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string UpdateCensorPipelineRequest::getNotifyConfig()const @@ -88,7 +88,7 @@ std::string UpdateCensorPipelineRequest::getNotifyConfig()const void UpdateCensorPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long UpdateCensorPipelineRequest::getOwnerId()const @@ -99,7 +99,7 @@ long UpdateCensorPipelineRequest::getOwnerId()const void UpdateCensorPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int UpdateCensorPipelineRequest::getPriority()const @@ -110,7 +110,7 @@ int UpdateCensorPipelineRequest::getPriority()const void UpdateCensorPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string UpdateCensorPipelineRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string UpdateCensorPipelineRequest::getAccessKeyId()const void UpdateCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateCensorPipelineRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string UpdateCensorPipelineRequest::getPipelineId()const void UpdateCensorPipelineRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/UpdateCensorPipelineResult.cc b/mts/src/model/UpdateCensorPipelineResult.cc index f2e07f270..d5a73eea4 100644 --- a/mts/src/model/UpdateCensorPipelineResult.cc +++ b/mts/src/model/UpdateCensorPipelineResult.cc @@ -35,10 +35,13 @@ UpdateCensorPipelineResult::~UpdateCensorPipelineResult() void UpdateCensorPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/UpdateCoverPipelineRequest.cc b/mts/src/model/UpdateCoverPipelineRequest.cc index 7ff92398d..779409144 100644 --- a/mts/src/model/UpdateCoverPipelineRequest.cc +++ b/mts/src/model/UpdateCoverPipelineRequest.cc @@ -33,7 +33,7 @@ long UpdateCoverPipelineRequest::getResourceOwnerId()const void UpdateCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateCoverPipelineRequest::getRole()const @@ -44,7 +44,7 @@ std::string UpdateCoverPipelineRequest::getRole()const void UpdateCoverPipelineRequest::setRole(const std::string& role) { role_ = role; - setParameter("Role", role); + setCoreParameter("Role", role); } std::string UpdateCoverPipelineRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateCoverPipelineRequest::getResourceOwnerAccount()const void UpdateCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateCoverPipelineRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateCoverPipelineRequest::getOwnerAccount()const void UpdateCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateCoverPipelineRequest::getName()const @@ -77,7 +77,7 @@ std::string UpdateCoverPipelineRequest::getName()const void UpdateCoverPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateCoverPipelineRequest::getState()const @@ -88,7 +88,7 @@ std::string UpdateCoverPipelineRequest::getState()const void UpdateCoverPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string UpdateCoverPipelineRequest::getNotifyConfig()const @@ -99,7 +99,7 @@ std::string UpdateCoverPipelineRequest::getNotifyConfig()const void UpdateCoverPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long UpdateCoverPipelineRequest::getOwnerId()const @@ -110,7 +110,7 @@ long UpdateCoverPipelineRequest::getOwnerId()const void UpdateCoverPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int UpdateCoverPipelineRequest::getPriority()const @@ -121,7 +121,7 @@ int UpdateCoverPipelineRequest::getPriority()const void UpdateCoverPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string UpdateCoverPipelineRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string UpdateCoverPipelineRequest::getAccessKeyId()const void UpdateCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateCoverPipelineRequest::getPipelineId()const @@ -143,6 +143,6 @@ std::string UpdateCoverPipelineRequest::getPipelineId()const void UpdateCoverPipelineRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/UpdateCoverPipelineResult.cc b/mts/src/model/UpdateCoverPipelineResult.cc index 4dc01a492..7e1088547 100644 --- a/mts/src/model/UpdateCoverPipelineResult.cc +++ b/mts/src/model/UpdateCoverPipelineResult.cc @@ -35,10 +35,13 @@ UpdateCoverPipelineResult::~UpdateCoverPipelineResult() void UpdateCoverPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/UpdateMCTemplateRequest.cc b/mts/src/model/UpdateMCTemplateRequest.cc index 408f0af0b..3a4380cfb 100644 --- a/mts/src/model/UpdateMCTemplateRequest.cc +++ b/mts/src/model/UpdateMCTemplateRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMCTemplateRequest::getPolitics()const void UpdateMCTemplateRequest::setPolitics(const std::string& politics) { politics_ = politics; - setParameter("Politics", politics); + setCoreParameter("Politics", politics); } long UpdateMCTemplateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UpdateMCTemplateRequest::getResourceOwnerId()const void UpdateMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMCTemplateRequest::getContraband()const @@ -55,7 +55,7 @@ std::string UpdateMCTemplateRequest::getContraband()const void UpdateMCTemplateRequest::setContraband(const std::string& contraband) { contraband_ = contraband; - setParameter("Contraband", contraband); + setCoreParameter("Contraband", contraband); } std::string UpdateMCTemplateRequest::getAd()const @@ -66,7 +66,7 @@ std::string UpdateMCTemplateRequest::getAd()const void UpdateMCTemplateRequest::setAd(const std::string& ad) { ad_ = ad; - setParameter("Ad", ad); + setCoreParameter("Ad", ad); } std::string UpdateMCTemplateRequest::getAbuse()const @@ -77,7 +77,7 @@ std::string UpdateMCTemplateRequest::getAbuse()const void UpdateMCTemplateRequest::setAbuse(const std::string& abuse) { abuse_ = abuse; - setParameter("Abuse", abuse); + setCoreParameter("Abuse", abuse); } std::string UpdateMCTemplateRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string UpdateMCTemplateRequest::getResourceOwnerAccount()const void UpdateMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateMCTemplateRequest::getQrcode()const @@ -99,7 +99,7 @@ std::string UpdateMCTemplateRequest::getQrcode()const void UpdateMCTemplateRequest::setQrcode(const std::string& qrcode) { qrcode_ = qrcode; - setParameter("Qrcode", qrcode); + setCoreParameter("Qrcode", qrcode); } std::string UpdateMCTemplateRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string UpdateMCTemplateRequest::getOwnerAccount()const void UpdateMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UpdateMCTemplateRequest::getOwnerId()const @@ -121,7 +121,7 @@ long UpdateMCTemplateRequest::getOwnerId()const void UpdateMCTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMCTemplateRequest::getTemplateId()const @@ -132,7 +132,7 @@ std::string UpdateMCTemplateRequest::getTemplateId()const void UpdateMCTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string UpdateMCTemplateRequest::getAccessKeyId()const @@ -143,7 +143,7 @@ std::string UpdateMCTemplateRequest::getAccessKeyId()const void UpdateMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateMCTemplateRequest::getPorn()const @@ -154,7 +154,7 @@ std::string UpdateMCTemplateRequest::getPorn()const void UpdateMCTemplateRequest::setPorn(const std::string& porn) { porn_ = porn; - setParameter("Porn", porn); + setCoreParameter("Porn", porn); } std::string UpdateMCTemplateRequest::getTerrorism()const @@ -165,7 +165,7 @@ std::string UpdateMCTemplateRequest::getTerrorism()const void UpdateMCTemplateRequest::setTerrorism(const std::string& terrorism) { terrorism_ = terrorism; - setParameter("Terrorism", terrorism); + setCoreParameter("Terrorism", terrorism); } std::string UpdateMCTemplateRequest::getName()const @@ -176,7 +176,7 @@ std::string UpdateMCTemplateRequest::getName()const void UpdateMCTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateMCTemplateRequest::getLogo()const @@ -187,7 +187,7 @@ std::string UpdateMCTemplateRequest::getLogo()const void UpdateMCTemplateRequest::setLogo(const std::string& logo) { logo_ = logo; - setParameter("Logo", logo); + setCoreParameter("Logo", logo); } std::string UpdateMCTemplateRequest::getSpam()const @@ -198,7 +198,7 @@ std::string UpdateMCTemplateRequest::getSpam()const void UpdateMCTemplateRequest::setSpam(const std::string& spam) { spam_ = spam; - setParameter("Spam", spam); + setCoreParameter("Spam", spam); } std::string UpdateMCTemplateRequest::getLive()const @@ -209,6 +209,6 @@ std::string UpdateMCTemplateRequest::getLive()const void UpdateMCTemplateRequest::setLive(const std::string& live) { live_ = live; - setParameter("Live", live); + setCoreParameter("Live", live); } diff --git a/mts/src/model/UpdateMCTemplateResult.cc b/mts/src/model/UpdateMCTemplateResult.cc index 52ef6a1b6..f366c70a3 100644 --- a/mts/src/model/UpdateMCTemplateResult.cc +++ b/mts/src/model/UpdateMCTemplateResult.cc @@ -35,10 +35,13 @@ UpdateMCTemplateResult::~UpdateMCTemplateResult() void UpdateMCTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; if(!_templateNode["TemplateId"].isNull()) diff --git a/mts/src/model/UpdateMcuTemplateRequest.cc b/mts/src/model/UpdateMcuTemplateRequest.cc index 13d658a8c..dbcfb0c56 100644 --- a/mts/src/model/UpdateMcuTemplateRequest.cc +++ b/mts/src/model/UpdateMcuTemplateRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMcuTemplateRequest::get_Template()const void UpdateMcuTemplateRequest::set_Template(const std::string& _template) { _template_ = _template; - setParameter("_Template", _template); + setCoreParameter("_Template", _template); } long UpdateMcuTemplateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UpdateMcuTemplateRequest::getResourceOwnerId()const void UpdateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMcuTemplateRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateMcuTemplateRequest::getResourceOwnerAccount()const void UpdateMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateMcuTemplateRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateMcuTemplateRequest::getOwnerAccount()const void UpdateMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UpdateMcuTemplateRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UpdateMcuTemplateRequest::getOwnerId()const void UpdateMcuTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMcuTemplateRequest::getTemplateId()const @@ -88,7 +88,7 @@ std::string UpdateMcuTemplateRequest::getTemplateId()const void UpdateMcuTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string UpdateMcuTemplateRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UpdateMcuTemplateRequest::getAccessKeyId()const void UpdateMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UpdateMcuTemplateResult.cc b/mts/src/model/UpdateMcuTemplateResult.cc index e5fb37d26..38405f0e7 100644 --- a/mts/src/model/UpdateMcuTemplateResult.cc +++ b/mts/src/model/UpdateMcuTemplateResult.cc @@ -35,10 +35,13 @@ UpdateMcuTemplateResult::~UpdateMcuTemplateResult() void UpdateMcuTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/mts/src/model/UpdateMediaCategoryRequest.cc b/mts/src/model/UpdateMediaCategoryRequest.cc index 8335f1012..51acd6f9e 100644 --- a/mts/src/model/UpdateMediaCategoryRequest.cc +++ b/mts/src/model/UpdateMediaCategoryRequest.cc @@ -33,7 +33,7 @@ long UpdateMediaCategoryRequest::getResourceOwnerId()const void UpdateMediaCategoryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMediaCategoryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateMediaCategoryRequest::getResourceOwnerAccount()const void UpdateMediaCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long UpdateMediaCategoryRequest::getCateId()const @@ -55,7 +55,7 @@ long UpdateMediaCategoryRequest::getCateId()const void UpdateMediaCategoryRequest::setCateId(long cateId) { cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); + setCoreParameter("CateId", std::to_string(cateId)); } std::string UpdateMediaCategoryRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateMediaCategoryRequest::getOwnerAccount()const void UpdateMediaCategoryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UpdateMediaCategoryRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UpdateMediaCategoryRequest::getOwnerId()const void UpdateMediaCategoryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMediaCategoryRequest::getMediaId()const @@ -88,7 +88,7 @@ std::string UpdateMediaCategoryRequest::getMediaId()const void UpdateMediaCategoryRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string UpdateMediaCategoryRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UpdateMediaCategoryRequest::getAccessKeyId()const void UpdateMediaCategoryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UpdateMediaCategoryResult.cc b/mts/src/model/UpdateMediaCategoryResult.cc index c738e6ee8..6df1edfe7 100644 --- a/mts/src/model/UpdateMediaCategoryResult.cc +++ b/mts/src/model/UpdateMediaCategoryResult.cc @@ -35,10 +35,13 @@ UpdateMediaCategoryResult::~UpdateMediaCategoryResult() void UpdateMediaCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/UpdateMediaCoverRequest.cc b/mts/src/model/UpdateMediaCoverRequest.cc index 19c1dda09..c6f7eda2e 100644 --- a/mts/src/model/UpdateMediaCoverRequest.cc +++ b/mts/src/model/UpdateMediaCoverRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMediaCoverRequest::getCoverURL()const void UpdateMediaCoverRequest::setCoverURL(const std::string& coverURL) { coverURL_ = coverURL; - setParameter("CoverURL", coverURL); + setCoreParameter("CoverURL", coverURL); } long UpdateMediaCoverRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UpdateMediaCoverRequest::getResourceOwnerId()const void UpdateMediaCoverRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMediaCoverRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateMediaCoverRequest::getResourceOwnerAccount()const void UpdateMediaCoverRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateMediaCoverRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateMediaCoverRequest::getOwnerAccount()const void UpdateMediaCoverRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UpdateMediaCoverRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UpdateMediaCoverRequest::getOwnerId()const void UpdateMediaCoverRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMediaCoverRequest::getMediaId()const @@ -88,7 +88,7 @@ std::string UpdateMediaCoverRequest::getMediaId()const void UpdateMediaCoverRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string UpdateMediaCoverRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UpdateMediaCoverRequest::getAccessKeyId()const void UpdateMediaCoverRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UpdateMediaCoverResult.cc b/mts/src/model/UpdateMediaCoverResult.cc index 39c6e7aee..90525b630 100644 --- a/mts/src/model/UpdateMediaCoverResult.cc +++ b/mts/src/model/UpdateMediaCoverResult.cc @@ -35,10 +35,13 @@ UpdateMediaCoverResult::~UpdateMediaCoverResult() void UpdateMediaCoverResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/UpdateMediaPublishStateRequest.cc b/mts/src/model/UpdateMediaPublishStateRequest.cc index 6e5d7129a..9bb55d165 100644 --- a/mts/src/model/UpdateMediaPublishStateRequest.cc +++ b/mts/src/model/UpdateMediaPublishStateRequest.cc @@ -33,7 +33,7 @@ long UpdateMediaPublishStateRequest::getResourceOwnerId()const void UpdateMediaPublishStateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMediaPublishStateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateMediaPublishStateRequest::getResourceOwnerAccount()const void UpdateMediaPublishStateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } bool UpdateMediaPublishStateRequest::getPublish()const @@ -55,7 +55,7 @@ bool UpdateMediaPublishStateRequest::getPublish()const void UpdateMediaPublishStateRequest::setPublish(bool publish) { publish_ = publish; - setParameter("Publish", publish ? "true" : "false"); + setCoreParameter("Publish", publish ? "true" : "false"); } std::string UpdateMediaPublishStateRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateMediaPublishStateRequest::getOwnerAccount()const void UpdateMediaPublishStateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UpdateMediaPublishStateRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UpdateMediaPublishStateRequest::getOwnerId()const void UpdateMediaPublishStateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMediaPublishStateRequest::getMediaId()const @@ -88,7 +88,7 @@ std::string UpdateMediaPublishStateRequest::getMediaId()const void UpdateMediaPublishStateRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string UpdateMediaPublishStateRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UpdateMediaPublishStateRequest::getAccessKeyId()const void UpdateMediaPublishStateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UpdateMediaPublishStateResult.cc b/mts/src/model/UpdateMediaPublishStateResult.cc index 35f33bd1e..d98353043 100644 --- a/mts/src/model/UpdateMediaPublishStateResult.cc +++ b/mts/src/model/UpdateMediaPublishStateResult.cc @@ -35,10 +35,13 @@ UpdateMediaPublishStateResult::~UpdateMediaPublishStateResult() void UpdateMediaPublishStateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/mts/src/model/UpdateMediaRequest.cc b/mts/src/model/UpdateMediaRequest.cc index 61b756fd6..51ab23cd7 100644 --- a/mts/src/model/UpdateMediaRequest.cc +++ b/mts/src/model/UpdateMediaRequest.cc @@ -33,7 +33,7 @@ std::string UpdateMediaRequest::getCoverURL()const void UpdateMediaRequest::setCoverURL(const std::string& coverURL) { coverURL_ = coverURL; - setParameter("CoverURL", coverURL); + setCoreParameter("CoverURL", coverURL); } long UpdateMediaRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UpdateMediaRequest::getResourceOwnerId()const void UpdateMediaRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMediaRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateMediaRequest::getResourceOwnerAccount()const void UpdateMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long UpdateMediaRequest::getCateId()const @@ -66,7 +66,7 @@ long UpdateMediaRequest::getCateId()const void UpdateMediaRequest::setCateId(long cateId) { cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); + setCoreParameter("CateId", std::to_string(cateId)); } std::string UpdateMediaRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string UpdateMediaRequest::getOwnerAccount()const void UpdateMediaRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateMediaRequest::getDescription()const @@ -88,7 +88,7 @@ std::string UpdateMediaRequest::getDescription()const void UpdateMediaRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long UpdateMediaRequest::getOwnerId()const @@ -99,7 +99,7 @@ long UpdateMediaRequest::getOwnerId()const void UpdateMediaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMediaRequest::getMediaId()const @@ -110,7 +110,7 @@ std::string UpdateMediaRequest::getMediaId()const void UpdateMediaRequest::setMediaId(const std::string& mediaId) { mediaId_ = mediaId; - setParameter("MediaId", mediaId); + setCoreParameter("MediaId", mediaId); } std::string UpdateMediaRequest::getTitle()const @@ -121,7 +121,7 @@ std::string UpdateMediaRequest::getTitle()const void UpdateMediaRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } std::string UpdateMediaRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string UpdateMediaRequest::getAccessKeyId()const void UpdateMediaRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateMediaRequest::getTags()const @@ -143,6 +143,6 @@ std::string UpdateMediaRequest::getTags()const void UpdateMediaRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/mts/src/model/UpdateMediaResult.cc b/mts/src/model/UpdateMediaResult.cc index 3185d1e6e..2691ef5be 100644 --- a/mts/src/model/UpdateMediaResult.cc +++ b/mts/src/model/UpdateMediaResult.cc @@ -35,10 +35,13 @@ UpdateMediaResult::~UpdateMediaResult() void UpdateMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaNode = value["Media"]; if(!mediaNode["MediaId"].isNull()) diff --git a/mts/src/model/UpdateMediaWorkflowRequest.cc b/mts/src/model/UpdateMediaWorkflowRequest.cc index 461baa27a..5b3bc91ea 100644 --- a/mts/src/model/UpdateMediaWorkflowRequest.cc +++ b/mts/src/model/UpdateMediaWorkflowRequest.cc @@ -33,7 +33,7 @@ long UpdateMediaWorkflowRequest::getResourceOwnerId()const void UpdateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMediaWorkflowRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateMediaWorkflowRequest::getResourceOwnerAccount()const void UpdateMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateMediaWorkflowRequest::getTopology()const @@ -55,7 +55,7 @@ std::string UpdateMediaWorkflowRequest::getTopology()const void UpdateMediaWorkflowRequest::setTopology(const std::string& topology) { topology_ = topology; - setParameter("Topology", topology); + setCoreParameter("Topology", topology); } std::string UpdateMediaWorkflowRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateMediaWorkflowRequest::getOwnerAccount()const void UpdateMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateMediaWorkflowRequest::getMediaWorkflowId()const @@ -77,7 +77,7 @@ std::string UpdateMediaWorkflowRequest::getMediaWorkflowId()const void UpdateMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) { mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); + setCoreParameter("MediaWorkflowId", mediaWorkflowId); } long UpdateMediaWorkflowRequest::getOwnerId()const @@ -88,7 +88,7 @@ long UpdateMediaWorkflowRequest::getOwnerId()const void UpdateMediaWorkflowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMediaWorkflowRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string UpdateMediaWorkflowRequest::getAccessKeyId()const void UpdateMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UpdateMediaWorkflowResult.cc b/mts/src/model/UpdateMediaWorkflowResult.cc index 8612b2122..ff070ca3f 100644 --- a/mts/src/model/UpdateMediaWorkflowResult.cc +++ b/mts/src/model/UpdateMediaWorkflowResult.cc @@ -35,10 +35,13 @@ UpdateMediaWorkflowResult::~UpdateMediaWorkflowResult() void UpdateMediaWorkflowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) diff --git a/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc b/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc index bffe6ae70..5dbeef686 100644 --- a/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc +++ b/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc @@ -33,7 +33,7 @@ long UpdateMediaWorkflowTriggerModeRequest::getResourceOwnerId()const void UpdateMediaWorkflowTriggerModeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateMediaWorkflowTriggerModeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateMediaWorkflowTriggerModeRequest::getResourceOwnerAccount()cons void UpdateMediaWorkflowTriggerModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateMediaWorkflowTriggerModeRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateMediaWorkflowTriggerModeRequest::getOwnerAccount()const void UpdateMediaWorkflowTriggerModeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateMediaWorkflowTriggerModeRequest::getMediaWorkflowId()const @@ -66,7 +66,7 @@ std::string UpdateMediaWorkflowTriggerModeRequest::getMediaWorkflowId()const void UpdateMediaWorkflowTriggerModeRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) { mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); + setCoreParameter("MediaWorkflowId", mediaWorkflowId); } long UpdateMediaWorkflowTriggerModeRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UpdateMediaWorkflowTriggerModeRequest::getOwnerId()const void UpdateMediaWorkflowTriggerModeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateMediaWorkflowTriggerModeRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string UpdateMediaWorkflowTriggerModeRequest::getAccessKeyId()const void UpdateMediaWorkflowTriggerModeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateMediaWorkflowTriggerModeRequest::getTriggerMode()const @@ -99,6 +99,6 @@ std::string UpdateMediaWorkflowTriggerModeRequest::getTriggerMode()const void UpdateMediaWorkflowTriggerModeRequest::setTriggerMode(const std::string& triggerMode) { triggerMode_ = triggerMode; - setParameter("TriggerMode", triggerMode); + setCoreParameter("TriggerMode", triggerMode); } diff --git a/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc b/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc index fba0d5177..c46490c32 100644 --- a/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc +++ b/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc @@ -35,10 +35,13 @@ UpdateMediaWorkflowTriggerModeResult::~UpdateMediaWorkflowTriggerModeResult() void UpdateMediaWorkflowTriggerModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) diff --git a/mts/src/model/UpdatePipelineRequest.cc b/mts/src/model/UpdatePipelineRequest.cc index d3dd15bfa..5ad16c74f 100644 --- a/mts/src/model/UpdatePipelineRequest.cc +++ b/mts/src/model/UpdatePipelineRequest.cc @@ -33,7 +33,7 @@ long UpdatePipelineRequest::getResourceOwnerId()const void UpdatePipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdatePipelineRequest::getRole()const @@ -44,7 +44,7 @@ std::string UpdatePipelineRequest::getRole()const void UpdatePipelineRequest::setRole(const std::string& role) { role_ = role; - setParameter("Role", role); + setCoreParameter("Role", role); } std::string UpdatePipelineRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdatePipelineRequest::getResourceOwnerAccount()const void UpdatePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdatePipelineRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdatePipelineRequest::getOwnerAccount()const void UpdatePipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdatePipelineRequest::getName()const @@ -77,7 +77,7 @@ std::string UpdatePipelineRequest::getName()const void UpdatePipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdatePipelineRequest::getState()const @@ -88,7 +88,7 @@ std::string UpdatePipelineRequest::getState()const void UpdatePipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string UpdatePipelineRequest::getNotifyConfig()const @@ -99,7 +99,7 @@ std::string UpdatePipelineRequest::getNotifyConfig()const void UpdatePipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long UpdatePipelineRequest::getOwnerId()const @@ -110,7 +110,7 @@ long UpdatePipelineRequest::getOwnerId()const void UpdatePipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdatePipelineRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string UpdatePipelineRequest::getAccessKeyId()const void UpdatePipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdatePipelineRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string UpdatePipelineRequest::getPipelineId()const void UpdatePipelineRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/UpdatePipelineResult.cc b/mts/src/model/UpdatePipelineResult.cc index 2c9616ac7..1a0a3eecc 100644 --- a/mts/src/model/UpdatePipelineResult.cc +++ b/mts/src/model/UpdatePipelineResult.cc @@ -35,10 +35,13 @@ UpdatePipelineResult::~UpdatePipelineResult() void UpdatePipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/UpdatePornPipelineRequest.cc b/mts/src/model/UpdatePornPipelineRequest.cc index e463a6299..959ed0a48 100644 --- a/mts/src/model/UpdatePornPipelineRequest.cc +++ b/mts/src/model/UpdatePornPipelineRequest.cc @@ -33,7 +33,7 @@ long UpdatePornPipelineRequest::getResourceOwnerId()const void UpdatePornPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdatePornPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdatePornPipelineRequest::getResourceOwnerAccount()const void UpdatePornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdatePornPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdatePornPipelineRequest::getOwnerAccount()const void UpdatePornPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdatePornPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string UpdatePornPipelineRequest::getName()const void UpdatePornPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdatePornPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string UpdatePornPipelineRequest::getState()const void UpdatePornPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string UpdatePornPipelineRequest::getNotifyConfig()const @@ -88,7 +88,7 @@ std::string UpdatePornPipelineRequest::getNotifyConfig()const void UpdatePornPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long UpdatePornPipelineRequest::getOwnerId()const @@ -99,7 +99,7 @@ long UpdatePornPipelineRequest::getOwnerId()const void UpdatePornPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int UpdatePornPipelineRequest::getPriority()const @@ -110,7 +110,7 @@ int UpdatePornPipelineRequest::getPriority()const void UpdatePornPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string UpdatePornPipelineRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string UpdatePornPipelineRequest::getAccessKeyId()const void UpdatePornPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdatePornPipelineRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string UpdatePornPipelineRequest::getPipelineId()const void UpdatePornPipelineRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/UpdatePornPipelineResult.cc b/mts/src/model/UpdatePornPipelineResult.cc index 685044566..e3c04bd68 100644 --- a/mts/src/model/UpdatePornPipelineResult.cc +++ b/mts/src/model/UpdatePornPipelineResult.cc @@ -35,10 +35,13 @@ UpdatePornPipelineResult::~UpdatePornPipelineResult() void UpdatePornPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/UpdateTemplateRequest.cc b/mts/src/model/UpdateTemplateRequest.cc index 1b05a1db7..dc4f8f036 100644 --- a/mts/src/model/UpdateTemplateRequest.cc +++ b/mts/src/model/UpdateTemplateRequest.cc @@ -33,7 +33,7 @@ std::string UpdateTemplateRequest::getContainer()const void UpdateTemplateRequest::setContainer(const std::string& container) { container_ = container; - setParameter("Container", container); + setCoreParameter("Container", container); } long UpdateTemplateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UpdateTemplateRequest::getResourceOwnerId()const void UpdateTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateTemplateRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateTemplateRequest::getResourceOwnerAccount()const void UpdateTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateTemplateRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UpdateTemplateRequest::getOwnerAccount()const void UpdateTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateTemplateRequest::getMuxConfig()const @@ -77,7 +77,7 @@ std::string UpdateTemplateRequest::getMuxConfig()const void UpdateTemplateRequest::setMuxConfig(const std::string& muxConfig) { muxConfig_ = muxConfig; - setParameter("MuxConfig", muxConfig); + setCoreParameter("MuxConfig", muxConfig); } std::string UpdateTemplateRequest::getVideo()const @@ -88,7 +88,7 @@ std::string UpdateTemplateRequest::getVideo()const void UpdateTemplateRequest::setVideo(const std::string& video) { video_ = video; - setParameter("Video", video); + setCoreParameter("Video", video); } long UpdateTemplateRequest::getOwnerId()const @@ -99,7 +99,7 @@ long UpdateTemplateRequest::getOwnerId()const void UpdateTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateTemplateRequest::getTemplateId()const @@ -110,7 +110,7 @@ std::string UpdateTemplateRequest::getTemplateId()const void UpdateTemplateRequest::setTemplateId(const std::string& templateId) { templateId_ = templateId; - setParameter("TemplateId", templateId); + setCoreParameter("TemplateId", templateId); } std::string UpdateTemplateRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string UpdateTemplateRequest::getAccessKeyId()const void UpdateTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateTemplateRequest::getName()const @@ -132,7 +132,7 @@ std::string UpdateTemplateRequest::getName()const void UpdateTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateTemplateRequest::getTransConfig()const @@ -143,7 +143,7 @@ std::string UpdateTemplateRequest::getTransConfig()const void UpdateTemplateRequest::setTransConfig(const std::string& transConfig) { transConfig_ = transConfig; - setParameter("TransConfig", transConfig); + setCoreParameter("TransConfig", transConfig); } std::string UpdateTemplateRequest::getAudio()const @@ -154,6 +154,6 @@ std::string UpdateTemplateRequest::getAudio()const void UpdateTemplateRequest::setAudio(const std::string& audio) { audio_ = audio; - setParameter("Audio", audio); + setCoreParameter("Audio", audio); } diff --git a/mts/src/model/UpdateTemplateResult.cc b/mts/src/model/UpdateTemplateResult.cc index 82b061b16..f6556e064 100644 --- a/mts/src/model/UpdateTemplateResult.cc +++ b/mts/src/model/UpdateTemplateResult.cc @@ -35,10 +35,13 @@ UpdateTemplateResult::~UpdateTemplateResult() void UpdateTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; if(!_templateNode["Id"].isNull()) diff --git a/mts/src/model/UpdateTerrorismPipelineRequest.cc b/mts/src/model/UpdateTerrorismPipelineRequest.cc index f0f25b125..69717a837 100644 --- a/mts/src/model/UpdateTerrorismPipelineRequest.cc +++ b/mts/src/model/UpdateTerrorismPipelineRequest.cc @@ -33,7 +33,7 @@ long UpdateTerrorismPipelineRequest::getResourceOwnerId()const void UpdateTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateTerrorismPipelineRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateTerrorismPipelineRequest::getResourceOwnerAccount()const void UpdateTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateTerrorismPipelineRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateTerrorismPipelineRequest::getOwnerAccount()const void UpdateTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateTerrorismPipelineRequest::getName()const @@ -66,7 +66,7 @@ std::string UpdateTerrorismPipelineRequest::getName()const void UpdateTerrorismPipelineRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string UpdateTerrorismPipelineRequest::getState()const @@ -77,7 +77,7 @@ std::string UpdateTerrorismPipelineRequest::getState()const void UpdateTerrorismPipelineRequest::setState(const std::string& state) { state_ = state; - setParameter("State", state); + setCoreParameter("State", state); } std::string UpdateTerrorismPipelineRequest::getNotifyConfig()const @@ -88,7 +88,7 @@ std::string UpdateTerrorismPipelineRequest::getNotifyConfig()const void UpdateTerrorismPipelineRequest::setNotifyConfig(const std::string& notifyConfig) { notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); + setCoreParameter("NotifyConfig", notifyConfig); } long UpdateTerrorismPipelineRequest::getOwnerId()const @@ -99,7 +99,7 @@ long UpdateTerrorismPipelineRequest::getOwnerId()const void UpdateTerrorismPipelineRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int UpdateTerrorismPipelineRequest::getPriority()const @@ -110,7 +110,7 @@ int UpdateTerrorismPipelineRequest::getPriority()const void UpdateTerrorismPipelineRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } std::string UpdateTerrorismPipelineRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string UpdateTerrorismPipelineRequest::getAccessKeyId()const void UpdateTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateTerrorismPipelineRequest::getPipelineId()const @@ -132,6 +132,6 @@ std::string UpdateTerrorismPipelineRequest::getPipelineId()const void UpdateTerrorismPipelineRequest::setPipelineId(const std::string& pipelineId) { pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); + setCoreParameter("PipelineId", pipelineId); } diff --git a/mts/src/model/UpdateTerrorismPipelineResult.cc b/mts/src/model/UpdateTerrorismPipelineResult.cc index ee24c85fa..cf16da201 100644 --- a/mts/src/model/UpdateTerrorismPipelineResult.cc +++ b/mts/src/model/UpdateTerrorismPipelineResult.cc @@ -35,10 +35,13 @@ UpdateTerrorismPipelineResult::~UpdateTerrorismPipelineResult() void UpdateTerrorismPipelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; if(!pipelineNode["Id"].isNull()) diff --git a/mts/src/model/UpdateWaterMarkTemplateRequest.cc b/mts/src/model/UpdateWaterMarkTemplateRequest.cc index 9ccf93bb7..1df6ac5a1 100644 --- a/mts/src/model/UpdateWaterMarkTemplateRequest.cc +++ b/mts/src/model/UpdateWaterMarkTemplateRequest.cc @@ -33,7 +33,7 @@ long UpdateWaterMarkTemplateRequest::getResourceOwnerId()const void UpdateWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateWaterMarkTemplateRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UpdateWaterMarkTemplateRequest::getResourceOwnerAccount()const void UpdateWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UpdateWaterMarkTemplateRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string UpdateWaterMarkTemplateRequest::getOwnerAccount()const void UpdateWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UpdateWaterMarkTemplateRequest::getName()const @@ -66,7 +66,7 @@ std::string UpdateWaterMarkTemplateRequest::getName()const void UpdateWaterMarkTemplateRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long UpdateWaterMarkTemplateRequest::getOwnerId()const @@ -77,7 +77,7 @@ long UpdateWaterMarkTemplateRequest::getOwnerId()const void UpdateWaterMarkTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateWaterMarkTemplateRequest::getWaterMarkTemplateId()const @@ -88,7 +88,7 @@ std::string UpdateWaterMarkTemplateRequest::getWaterMarkTemplateId()const void UpdateWaterMarkTemplateRequest::setWaterMarkTemplateId(const std::string& waterMarkTemplateId) { waterMarkTemplateId_ = waterMarkTemplateId; - setParameter("WaterMarkTemplateId", waterMarkTemplateId); + setCoreParameter("WaterMarkTemplateId", waterMarkTemplateId); } std::string UpdateWaterMarkTemplateRequest::getConfig()const @@ -99,7 +99,7 @@ std::string UpdateWaterMarkTemplateRequest::getConfig()const void UpdateWaterMarkTemplateRequest::setConfig(const std::string& config) { config_ = config; - setParameter("Config", config); + setCoreParameter("Config", config); } std::string UpdateWaterMarkTemplateRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string UpdateWaterMarkTemplateRequest::getAccessKeyId()const void UpdateWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/mts/src/model/UpdateWaterMarkTemplateResult.cc b/mts/src/model/UpdateWaterMarkTemplateResult.cc index eeb374f8f..1edb4b7cb 100644 --- a/mts/src/model/UpdateWaterMarkTemplateResult.cc +++ b/mts/src/model/UpdateWaterMarkTemplateResult.cc @@ -35,10 +35,13 @@ UpdateWaterMarkTemplateResult::~UpdateWaterMarkTemplateResult() void UpdateWaterMarkTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto waterMarkTemplateNode = value["WaterMarkTemplate"]; if(!waterMarkTemplateNode["Id"].isNull()) diff --git a/ons/CMakeLists.txt b/ons/CMakeLists.txt index 749d436e6..37013d0ba 100644 --- a/ons/CMakeLists.txt +++ b/ons/CMakeLists.txt @@ -49,12 +49,12 @@ set(ons_public_header_model include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdResult.h include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h include/alibabacloud/ons/model/OnsGroupConsumerUpdateResult.h + include/alibabacloud/ons/model/OnsGroupListRequest.h + include/alibabacloud/ons/model/OnsGroupListResult.h include/alibabacloud/ons/model/OnsMessageTraceRequest.h include/alibabacloud/ons/model/OnsMessageTraceResult.h include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h include/alibabacloud/ons/model/OnsConsumerTimeSpanResult.h - include/alibabacloud/ons/model/OnsGroupListRequest.h - include/alibabacloud/ons/model/OnsGroupListResult.h include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h include/alibabacloud/ons/model/OnsGroupSubDetailResult.h include/alibabacloud/ons/model/OnsTraceGetResultRequest.h @@ -65,14 +65,14 @@ set(ons_public_header_model include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdResult.h include/alibabacloud/ons/model/OnsGroupDeleteRequest.h include/alibabacloud/ons/model/OnsGroupDeleteResult.h - include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h - include/alibabacloud/ons/model/OnsInstanceUpdateResult.h include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h include/alibabacloud/ons/model/OnsMessagePageQueryByTopicResult.h - include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h - include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h + include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h + include/alibabacloud/ons/model/OnsInstanceUpdateResult.h include/alibabacloud/ons/model/OnsGroupCreateRequest.h include/alibabacloud/ons/model/OnsGroupCreateResult.h + include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h + include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h include/alibabacloud/ons/model/OnsDLQMessageResendByIdResult.h include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h @@ -101,10 +101,10 @@ set(ons_public_header_model include/alibabacloud/ons/model/OnsMqttGroupIdListResult.h include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h include/alibabacloud/ons/model/OnsDLQMessageGetByIdResult.h - include/alibabacloud/ons/model/OnsInstanceCreateRequest.h - include/alibabacloud/ons/model/OnsInstanceCreateResult.h include/alibabacloud/ons/model/OnsWarnCreateRequest.h include/alibabacloud/ons/model/OnsWarnCreateResult.h + include/alibabacloud/ons/model/OnsInstanceCreateRequest.h + include/alibabacloud/ons/model/OnsInstanceCreateResult.h include/alibabacloud/ons/model/OnsTopicStatusRequest.h include/alibabacloud/ons/model/OnsTopicStatusResult.h include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h @@ -144,12 +144,12 @@ set(ons_src src/model/OnsMqttQueryClientByGroupIdResult.cc src/model/OnsGroupConsumerUpdateRequest.cc src/model/OnsGroupConsumerUpdateResult.cc + src/model/OnsGroupListRequest.cc + src/model/OnsGroupListResult.cc src/model/OnsMessageTraceRequest.cc src/model/OnsMessageTraceResult.cc src/model/OnsConsumerTimeSpanRequest.cc src/model/OnsConsumerTimeSpanResult.cc - src/model/OnsGroupListRequest.cc - src/model/OnsGroupListResult.cc src/model/OnsGroupSubDetailRequest.cc src/model/OnsGroupSubDetailResult.cc src/model/OnsTraceGetResultRequest.cc @@ -160,14 +160,14 @@ set(ons_src src/model/OnsDLQMessagePageQueryByGroupIdResult.cc src/model/OnsGroupDeleteRequest.cc src/model/OnsGroupDeleteResult.cc - src/model/OnsInstanceUpdateRequest.cc - src/model/OnsInstanceUpdateResult.cc src/model/OnsMessagePageQueryByTopicRequest.cc src/model/OnsMessagePageQueryByTopicResult.cc - src/model/OnsTrendTopicInputTpsRequest.cc - src/model/OnsTrendTopicInputTpsResult.cc + src/model/OnsInstanceUpdateRequest.cc + src/model/OnsInstanceUpdateResult.cc src/model/OnsGroupCreateRequest.cc src/model/OnsGroupCreateResult.cc + src/model/OnsTrendTopicInputTpsRequest.cc + src/model/OnsTrendTopicInputTpsResult.cc src/model/OnsDLQMessageResendByIdRequest.cc src/model/OnsDLQMessageResendByIdResult.cc src/model/OnsTrendGroupOutputTpsRequest.cc @@ -196,10 +196,10 @@ set(ons_src src/model/OnsMqttGroupIdListResult.cc src/model/OnsDLQMessageGetByIdRequest.cc src/model/OnsDLQMessageGetByIdResult.cc - src/model/OnsInstanceCreateRequest.cc - src/model/OnsInstanceCreateResult.cc src/model/OnsWarnCreateRequest.cc src/model/OnsWarnCreateResult.cc + src/model/OnsInstanceCreateRequest.cc + src/model/OnsInstanceCreateResult.cc src/model/OnsTopicStatusRequest.cc src/model/OnsTopicStatusResult.cc src/model/OnsMqttGroupIdCreateRequest.cc diff --git a/ons/include/alibabacloud/ons/OnsClient.h b/ons/include/alibabacloud/ons/OnsClient.h index b1850bf33..1713f6abd 100644 --- a/ons/include/alibabacloud/ons/OnsClient.h +++ b/ons/include/alibabacloud/ons/OnsClient.h @@ -50,12 +50,12 @@ #include "model/OnsMqttQueryClientByGroupIdResult.h" #include "model/OnsGroupConsumerUpdateRequest.h" #include "model/OnsGroupConsumerUpdateResult.h" +#include "model/OnsGroupListRequest.h" +#include "model/OnsGroupListResult.h" #include "model/OnsMessageTraceRequest.h" #include "model/OnsMessageTraceResult.h" #include "model/OnsConsumerTimeSpanRequest.h" #include "model/OnsConsumerTimeSpanResult.h" -#include "model/OnsGroupListRequest.h" -#include "model/OnsGroupListResult.h" #include "model/OnsGroupSubDetailRequest.h" #include "model/OnsGroupSubDetailResult.h" #include "model/OnsTraceGetResultRequest.h" @@ -66,14 +66,14 @@ #include "model/OnsDLQMessagePageQueryByGroupIdResult.h" #include "model/OnsGroupDeleteRequest.h" #include "model/OnsGroupDeleteResult.h" -#include "model/OnsInstanceUpdateRequest.h" -#include "model/OnsInstanceUpdateResult.h" #include "model/OnsMessagePageQueryByTopicRequest.h" #include "model/OnsMessagePageQueryByTopicResult.h" -#include "model/OnsTrendTopicInputTpsRequest.h" -#include "model/OnsTrendTopicInputTpsResult.h" +#include "model/OnsInstanceUpdateRequest.h" +#include "model/OnsInstanceUpdateResult.h" #include "model/OnsGroupCreateRequest.h" #include "model/OnsGroupCreateResult.h" +#include "model/OnsTrendTopicInputTpsRequest.h" +#include "model/OnsTrendTopicInputTpsResult.h" #include "model/OnsDLQMessageResendByIdRequest.h" #include "model/OnsDLQMessageResendByIdResult.h" #include "model/OnsTrendGroupOutputTpsRequest.h" @@ -102,10 +102,10 @@ #include "model/OnsMqttGroupIdListResult.h" #include "model/OnsDLQMessageGetByIdRequest.h" #include "model/OnsDLQMessageGetByIdResult.h" -#include "model/OnsInstanceCreateRequest.h" -#include "model/OnsInstanceCreateResult.h" #include "model/OnsWarnCreateRequest.h" #include "model/OnsWarnCreateResult.h" +#include "model/OnsInstanceCreateRequest.h" +#include "model/OnsInstanceCreateResult.h" #include "model/OnsTopicStatusRequest.h" #include "model/OnsTopicStatusResult.h" #include "model/OnsMqttGroupIdCreateRequest.h" @@ -165,15 +165,15 @@ namespace AlibabaCloud typedef Outcome OnsGroupConsumerUpdateOutcome; typedef std::future OnsGroupConsumerUpdateOutcomeCallable; typedef std::function&)> OnsGroupConsumerUpdateAsyncHandler; + typedef Outcome OnsGroupListOutcome; + typedef std::future OnsGroupListOutcomeCallable; + typedef std::function&)> OnsGroupListAsyncHandler; typedef Outcome OnsMessageTraceOutcome; typedef std::future OnsMessageTraceOutcomeCallable; typedef std::function&)> OnsMessageTraceAsyncHandler; typedef Outcome OnsConsumerTimeSpanOutcome; typedef std::future OnsConsumerTimeSpanOutcomeCallable; typedef std::function&)> OnsConsumerTimeSpanAsyncHandler; - typedef Outcome OnsGroupListOutcome; - typedef std::future OnsGroupListOutcomeCallable; - typedef std::function&)> OnsGroupListAsyncHandler; typedef Outcome OnsGroupSubDetailOutcome; typedef std::future OnsGroupSubDetailOutcomeCallable; typedef std::function&)> OnsGroupSubDetailAsyncHandler; @@ -189,18 +189,18 @@ namespace AlibabaCloud typedef Outcome OnsGroupDeleteOutcome; typedef std::future OnsGroupDeleteOutcomeCallable; typedef std::function&)> OnsGroupDeleteAsyncHandler; - typedef Outcome OnsInstanceUpdateOutcome; - typedef std::future OnsInstanceUpdateOutcomeCallable; - typedef std::function&)> OnsInstanceUpdateAsyncHandler; typedef Outcome OnsMessagePageQueryByTopicOutcome; typedef std::future OnsMessagePageQueryByTopicOutcomeCallable; typedef std::function&)> OnsMessagePageQueryByTopicAsyncHandler; - typedef Outcome OnsTrendTopicInputTpsOutcome; - typedef std::future OnsTrendTopicInputTpsOutcomeCallable; - typedef std::function&)> OnsTrendTopicInputTpsAsyncHandler; + typedef Outcome OnsInstanceUpdateOutcome; + typedef std::future OnsInstanceUpdateOutcomeCallable; + typedef std::function&)> OnsInstanceUpdateAsyncHandler; typedef Outcome OnsGroupCreateOutcome; typedef std::future OnsGroupCreateOutcomeCallable; typedef std::function&)> OnsGroupCreateAsyncHandler; + typedef Outcome OnsTrendTopicInputTpsOutcome; + typedef std::future OnsTrendTopicInputTpsOutcomeCallable; + typedef std::function&)> OnsTrendTopicInputTpsAsyncHandler; typedef Outcome OnsDLQMessageResendByIdOutcome; typedef std::future OnsDLQMessageResendByIdOutcomeCallable; typedef std::function&)> OnsDLQMessageResendByIdAsyncHandler; @@ -243,12 +243,12 @@ namespace AlibabaCloud typedef Outcome OnsDLQMessageGetByIdOutcome; typedef std::future OnsDLQMessageGetByIdOutcomeCallable; typedef std::function&)> OnsDLQMessageGetByIdAsyncHandler; - typedef Outcome OnsInstanceCreateOutcome; - typedef std::future OnsInstanceCreateOutcomeCallable; - typedef std::function&)> OnsInstanceCreateAsyncHandler; typedef Outcome OnsWarnCreateOutcome; typedef std::future OnsWarnCreateOutcomeCallable; typedef std::function&)> OnsWarnCreateAsyncHandler; + typedef Outcome OnsInstanceCreateOutcome; + typedef std::future OnsInstanceCreateOutcomeCallable; + typedef std::function&)> OnsInstanceCreateAsyncHandler; typedef Outcome OnsTopicStatusOutcome; typedef std::future OnsTopicStatusOutcomeCallable; typedef std::function&)> OnsTopicStatusAsyncHandler; @@ -308,15 +308,15 @@ namespace AlibabaCloud OnsGroupConsumerUpdateOutcome onsGroupConsumerUpdate(const Model::OnsGroupConsumerUpdateRequest &request)const; void onsGroupConsumerUpdateAsync(const Model::OnsGroupConsumerUpdateRequest& request, const OnsGroupConsumerUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsGroupConsumerUpdateOutcomeCallable onsGroupConsumerUpdateCallable(const Model::OnsGroupConsumerUpdateRequest& request) const; + OnsGroupListOutcome onsGroupList(const Model::OnsGroupListRequest &request)const; + void onsGroupListAsync(const Model::OnsGroupListRequest& request, const OnsGroupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsGroupListOutcomeCallable onsGroupListCallable(const Model::OnsGroupListRequest& request) const; OnsMessageTraceOutcome onsMessageTrace(const Model::OnsMessageTraceRequest &request)const; void onsMessageTraceAsync(const Model::OnsMessageTraceRequest& request, const OnsMessageTraceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsMessageTraceOutcomeCallable onsMessageTraceCallable(const Model::OnsMessageTraceRequest& request) const; OnsConsumerTimeSpanOutcome onsConsumerTimeSpan(const Model::OnsConsumerTimeSpanRequest &request)const; void onsConsumerTimeSpanAsync(const Model::OnsConsumerTimeSpanRequest& request, const OnsConsumerTimeSpanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsConsumerTimeSpanOutcomeCallable onsConsumerTimeSpanCallable(const Model::OnsConsumerTimeSpanRequest& request) const; - OnsGroupListOutcome onsGroupList(const Model::OnsGroupListRequest &request)const; - void onsGroupListAsync(const Model::OnsGroupListRequest& request, const OnsGroupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OnsGroupListOutcomeCallable onsGroupListCallable(const Model::OnsGroupListRequest& request) const; OnsGroupSubDetailOutcome onsGroupSubDetail(const Model::OnsGroupSubDetailRequest &request)const; void onsGroupSubDetailAsync(const Model::OnsGroupSubDetailRequest& request, const OnsGroupSubDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsGroupSubDetailOutcomeCallable onsGroupSubDetailCallable(const Model::OnsGroupSubDetailRequest& request) const; @@ -332,18 +332,18 @@ namespace AlibabaCloud OnsGroupDeleteOutcome onsGroupDelete(const Model::OnsGroupDeleteRequest &request)const; void onsGroupDeleteAsync(const Model::OnsGroupDeleteRequest& request, const OnsGroupDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsGroupDeleteOutcomeCallable onsGroupDeleteCallable(const Model::OnsGroupDeleteRequest& request) const; - OnsInstanceUpdateOutcome onsInstanceUpdate(const Model::OnsInstanceUpdateRequest &request)const; - void onsInstanceUpdateAsync(const Model::OnsInstanceUpdateRequest& request, const OnsInstanceUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OnsInstanceUpdateOutcomeCallable onsInstanceUpdateCallable(const Model::OnsInstanceUpdateRequest& request) const; OnsMessagePageQueryByTopicOutcome onsMessagePageQueryByTopic(const Model::OnsMessagePageQueryByTopicRequest &request)const; void onsMessagePageQueryByTopicAsync(const Model::OnsMessagePageQueryByTopicRequest& request, const OnsMessagePageQueryByTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsMessagePageQueryByTopicOutcomeCallable onsMessagePageQueryByTopicCallable(const Model::OnsMessagePageQueryByTopicRequest& request) const; - OnsTrendTopicInputTpsOutcome onsTrendTopicInputTps(const Model::OnsTrendTopicInputTpsRequest &request)const; - void onsTrendTopicInputTpsAsync(const Model::OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OnsTrendTopicInputTpsOutcomeCallable onsTrendTopicInputTpsCallable(const Model::OnsTrendTopicInputTpsRequest& request) const; + OnsInstanceUpdateOutcome onsInstanceUpdate(const Model::OnsInstanceUpdateRequest &request)const; + void onsInstanceUpdateAsync(const Model::OnsInstanceUpdateRequest& request, const OnsInstanceUpdateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsInstanceUpdateOutcomeCallable onsInstanceUpdateCallable(const Model::OnsInstanceUpdateRequest& request) const; OnsGroupCreateOutcome onsGroupCreate(const Model::OnsGroupCreateRequest &request)const; void onsGroupCreateAsync(const Model::OnsGroupCreateRequest& request, const OnsGroupCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsGroupCreateOutcomeCallable onsGroupCreateCallable(const Model::OnsGroupCreateRequest& request) const; + OnsTrendTopicInputTpsOutcome onsTrendTopicInputTps(const Model::OnsTrendTopicInputTpsRequest &request)const; + void onsTrendTopicInputTpsAsync(const Model::OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsTrendTopicInputTpsOutcomeCallable onsTrendTopicInputTpsCallable(const Model::OnsTrendTopicInputTpsRequest& request) const; OnsDLQMessageResendByIdOutcome onsDLQMessageResendById(const Model::OnsDLQMessageResendByIdRequest &request)const; void onsDLQMessageResendByIdAsync(const Model::OnsDLQMessageResendByIdRequest& request, const OnsDLQMessageResendByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsDLQMessageResendByIdOutcomeCallable onsDLQMessageResendByIdCallable(const Model::OnsDLQMessageResendByIdRequest& request) const; @@ -386,12 +386,12 @@ namespace AlibabaCloud OnsDLQMessageGetByIdOutcome onsDLQMessageGetById(const Model::OnsDLQMessageGetByIdRequest &request)const; void onsDLQMessageGetByIdAsync(const Model::OnsDLQMessageGetByIdRequest& request, const OnsDLQMessageGetByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsDLQMessageGetByIdOutcomeCallable onsDLQMessageGetByIdCallable(const Model::OnsDLQMessageGetByIdRequest& request) const; - OnsInstanceCreateOutcome onsInstanceCreate(const Model::OnsInstanceCreateRequest &request)const; - void onsInstanceCreateAsync(const Model::OnsInstanceCreateRequest& request, const OnsInstanceCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OnsInstanceCreateOutcomeCallable onsInstanceCreateCallable(const Model::OnsInstanceCreateRequest& request) const; OnsWarnCreateOutcome onsWarnCreate(const Model::OnsWarnCreateRequest &request)const; void onsWarnCreateAsync(const Model::OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsWarnCreateOutcomeCallable onsWarnCreateCallable(const Model::OnsWarnCreateRequest& request) const; + OnsInstanceCreateOutcome onsInstanceCreate(const Model::OnsInstanceCreateRequest &request)const; + void onsInstanceCreateAsync(const Model::OnsInstanceCreateRequest& request, const OnsInstanceCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnsInstanceCreateOutcomeCallable onsInstanceCreateCallable(const Model::OnsInstanceCreateRequest& request) const; OnsTopicStatusOutcome onsTopicStatus(const Model::OnsTopicStatusRequest &request)const; void onsTopicStatusAsync(const Model::OnsTopicStatusRequest& request, const OnsTopicStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsTopicStatusOutcomeCallable onsTopicStatusCallable(const Model::OnsTopicStatusRequest& request) const; diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h index d2b06757c..666dc6262 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsConsumerAccumulateRequest(); ~OnsConsumerAccumulateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setDetail(bool detail); private: - long preventCache_; std::string instanceId_; std::string groupId_; bool detail_; diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h index cf6fad91c..5d3f412d8 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsConsumerGetConnectionRequest(); ~OnsConsumerGetConnectionRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; void setGroupId(const std::string& groupId); private: - long preventCache_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h index f1280605b..f571be9a0 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsConsumerResetOffsetRequest(); ~OnsConsumerResetOffsetRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -49,7 +47,6 @@ namespace AlibabaCloud void setType(int type); private: - long preventCache_; std::string instanceId_; std::string groupId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h index 9f79b159f..3eab3b12d 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsConsumerStatusRequest(); ~OnsConsumerStatusRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); bool getNeedJstack()const; @@ -47,7 +45,6 @@ namespace AlibabaCloud void setDetail(bool detail); private: - long preventCache_; std::string instanceId_; bool needJstack_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h b/ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h index 2ffb5c451..5ec7032db 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerStatusResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string clientAddr; std::string language; std::string version; + std::string remoteIP; std::string clientId; }; struct DetailInTopicDo diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h index 8269744c9..56ac367d6 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsConsumerTimeSpanRequest(); ~OnsConsumerTimeSpanRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string groupId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h index b956359cd..25ba01a11 100644 --- a/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsDLQMessageGetByIdRequest(); ~OnsDLQMessageGetByIdRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setMsgId(const std::string& msgId); private: - long preventCache_; std::string instanceId_; std::string groupId_; std::string msgId_; diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h index 7c71a96a4..0ce47fee4 100644 --- a/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsDLQMessagePageQueryByGroupIdRequest(); ~OnsDLQMessagePageQueryByGroupIdRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -53,7 +51,6 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); private: - long preventCache_; std::string instanceId_; std::string groupId_; int pageSize_; diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h index 992d71d74..10f85b309 100644 --- a/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsDLQMessageResendByIdRequest(); ~OnsDLQMessageResendByIdRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setMsgId(const std::string& msgId); private: - long preventCache_; std::string instanceId_; std::string groupId_; std::string msgId_; diff --git a/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h index a85f9fd1a..a645c8091 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsGroupConsumerUpdateRequest(); ~OnsGroupConsumerUpdateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); bool getReadEnable()const; void setReadEnable(bool readEnable); std::string getInstanceId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setGroupId(const std::string& groupId); private: - long preventCache_; bool readEnable_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h index 78a39f3ab..d70a5f7f0 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsGroupCreateRequest(); ~OnsGroupCreateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setRemark(const std::string& remark); private: - long preventCache_; std::string instanceId_; std::string groupId_; std::string remark_; diff --git a/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h index 5361da619..3751d028e 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsGroupDeleteRequest(); ~OnsGroupDeleteRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; void setGroupId(const std::string& groupId); private: - long preventCache_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h index 62466e646..8fb00dd9b 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsGroupListRequest(); ~OnsGroupListRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; void setGroupId(const std::string& groupId); private: - long preventCache_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsGroupListResult.h b/ons/include/alibabacloud/ons/model/OnsGroupListResult.h index c29c82770..2443997ec 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupListResult.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupListResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string owner; std::string instanceId; + long createTime; long updateTime; bool independentNaming; std::string groupId; diff --git a/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h index fff10928b..e7ef5ba94 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsGroupSubDetailRequest(); ~OnsGroupSubDetailRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; void setGroupId(const std::string& groupId); private: - long preventCache_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h index e6daacbd7..ed9bb7543 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud OnsInstanceBaseInfoRequest(); ~OnsInstanceBaseInfoRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - long preventCache_; std::string instanceId_; }; diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h index e74534ef2..e36317cfe 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h @@ -48,6 +48,7 @@ namespace AlibabaCloud int instanceStatus; bool independentNaming; int instanceType; + std::string remark; }; diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h index 43315cd24..7718a1a74 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsInstanceCreateRequest(); ~OnsInstanceCreateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceName()const; void setInstanceName(const std::string& instanceName); std::string getRemark()const; void setRemark(const std::string& remark); private: - long preventCache_; std::string instanceName_; std::string remark_; diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h index 0555a622e..e35365dc6 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud OnsInstanceDeleteRequest(); ~OnsInstanceDeleteRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - long preventCache_; std::string instanceId_; }; diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h index 2a8742134..5171de823 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h @@ -35,11 +35,8 @@ namespace AlibabaCloud OnsInstanceInServiceListRequest(); ~OnsInstanceInServiceListRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); private: - long preventCache_; }; } diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h index b8075595d..226fc4e7a 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsInstanceUpdateRequest(); ~OnsInstanceUpdateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceName()const; void setInstanceName(const std::string& instanceName); std::string getInstanceId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setRemark(const std::string& remark); private: - long preventCache_; std::string instanceName_; std::string instanceId_; std::string remark_; diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h index 887a94541..69b7a1a78 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMessageGetByKeyRequest(); ~OnsMessageGetByKeyRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setKey(const std::string& key); private: - long preventCache_; std::string instanceId_; std::string topic_; std::string key_; diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h index 00f1ff9d4..97c288acd 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMessageGetByMsgIdRequest(); ~OnsMessageGetByMsgIdRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getMsgId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string msgId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h index 978e8c03b..fbab1383a 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMessagePageQueryByTopicRequest(); ~OnsMessagePageQueryByTopicRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; @@ -53,7 +51,6 @@ namespace AlibabaCloud void setTaskId(const std::string& taskId); private: - long preventCache_; std::string instanceId_; int pageSize_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h b/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h index 15fb93d1d..4d9f83b43 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMessagePushRequest(); ~OnsMessagePushRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getClientId()const; void setClientId(const std::string& clientId); std::string getInstanceId()const; @@ -49,7 +47,6 @@ namespace AlibabaCloud void setTopic(const std::string& topic); private: - long preventCache_; std::string clientId_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h index 6a8834aeb..5a488b20b 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessageSendRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMessageSendRequest(); ~OnsMessageSendRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; @@ -49,7 +47,6 @@ namespace AlibabaCloud void setKey(const std::string& key); private: - long preventCache_; std::string instanceId_; std::string topic_; std::string tag_; diff --git a/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h index a46154687..7c2ab7788 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMessageTraceRequest(); ~OnsMessageTraceRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setMsgId(const std::string& msgId); private: - long preventCache_; std::string instanceId_; std::string topic_; std::string msgId_; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h index ee881e4b8..9b944f72f 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdCreateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMqttGroupIdCreateRequest(); ~OnsMqttGroupIdCreateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getRegionId()const; @@ -47,7 +45,6 @@ namespace AlibabaCloud void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string regionId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h index ae44f4dda..5912aeec6 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMqttGroupIdDeleteRequest(); ~OnsMqttGroupIdDeleteRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getRegionId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setGroupId(const std::string& groupId); private: - long preventCache_; std::string instanceId_; std::string regionId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h index de3d50d1b..0bf87ca95 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttGroupIdListRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud OnsMqttGroupIdListRequest(); ~OnsMqttGroupIdListRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - long preventCache_; std::string instanceId_; }; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h index 4f44d9484..db359e12f 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByClientIdRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsMqttQueryClientByClientIdRequest(); ~OnsMqttQueryClientByClientIdRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getClientId()const; void setClientId(const std::string& clientId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); private: - long preventCache_; std::string clientId_; std::string instanceId_; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h index eae4b95c3..189bc3aa9 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByGroupIdRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsMqttQueryClientByGroupIdRequest(); ~OnsMqttQueryClientByGroupIdRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; void setGroupId(const std::string& groupId); private: - long preventCache_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h index a55f86d15..53a422de3 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryClientByTopicRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMqttQueryClientByTopicRequest(); ~OnsMqttQueryClientByTopicRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getParentTopic()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setSubTopic(const std::string& subTopic); private: - long preventCache_; std::string instanceId_; std::string parentTopic_; std::string subTopic_; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h index 72bfe474d..1dd88c3fa 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryHistoryOnlineRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMqttQueryHistoryOnlineRequest(); ~OnsMqttQueryHistoryOnlineRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -47,7 +45,6 @@ namespace AlibabaCloud void setBeginTime(long beginTime); private: - long preventCache_; std::string instanceId_; std::string groupId_; long endTime_; diff --git a/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h b/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h index 00a0da480..be9ddfda7 100644 --- a/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMqttQueryMsgTransTrendRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsMqttQueryMsgTransTrendRequest(); ~OnsMqttQueryMsgTransTrendRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getQos()const; @@ -57,7 +55,6 @@ namespace AlibabaCloud void setSubTopic(const std::string& subTopic); private: - long preventCache_; std::string instanceId_; int qos_; std::string transType_; diff --git a/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h b/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h index 2bcc113d2..571acc181 100644 --- a/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h @@ -35,11 +35,8 @@ namespace AlibabaCloud OnsRegionListRequest(); ~OnsRegionListRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); private: - long preventCache_; }; } diff --git a/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h index 2fb400f9e..c88471e26 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsTopicCreateRequest(); ~OnsTopicCreateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getMessageType()const; @@ -47,7 +45,6 @@ namespace AlibabaCloud void setRemark(const std::string& remark); private: - long preventCache_; std::string instanceId_; int messageType_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h index 6304542b8..34ea7352f 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsTopicDeleteRequest(); ~OnsTopicDeleteRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h index d5d45cdf3..11fbd057e 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsTopicListRequest(); ~OnsTopicListRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h index bdd7e931b..280c1d7cc 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsTopicStatusRequest(); ~OnsTopicStatusRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h index 42e71df99..a910e66ed 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h @@ -35,15 +35,12 @@ namespace AlibabaCloud OnsTopicSubDetailRequest(); ~OnsTopicSubDetailRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h index 6ad943e16..1cc210adf 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsTopicUpdateRequest(); ~OnsTopicUpdateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPerm()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; int perm_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h index b2288984b..a14851895 100644 --- a/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud OnsTraceGetResultRequest(); ~OnsTraceGetResultRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getQueryId()const; void setQueryId(const std::string& queryId); private: - long preventCache_; std::string queryId_; }; diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h index b675377b0..e2b2c088b 100644 --- a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsTraceQueryByMsgIdRequest(); ~OnsTraceQueryByMsgIdRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; @@ -49,7 +47,6 @@ namespace AlibabaCloud void setBeginTime(long beginTime); private: - long preventCache_; std::string instanceId_; std::string topic_; std::string msgId_; diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h index 1cb296818..42a48ac1b 100644 --- a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsTraceQueryByMsgKeyRequest(); ~OnsTraceQueryByMsgKeyRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getTopic()const; @@ -49,7 +47,6 @@ namespace AlibabaCloud void setMsgKey(const std::string& msgKey); private: - long preventCache_; std::string instanceId_; std::string topic_; long endTime_; diff --git a/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h index 159623b68..097b9bb2d 100644 --- a/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsTrendGroupOutputTpsRequest(); ~OnsTrendGroupOutputTpsRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); long getPeriod()const; void setPeriod(long period); std::string getInstanceId()const; @@ -53,7 +51,6 @@ namespace AlibabaCloud void setType(int type); private: - long preventCache_; long period_; std::string instanceId_; std::string groupId_; diff --git a/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h index abb4402d3..e0a7a2281 100644 --- a/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsTrendTopicInputTpsRequest(); ~OnsTrendTopicInputTpsRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); long getPeriod()const; void setPeriod(long period); std::string getInstanceId()const; @@ -51,7 +49,6 @@ namespace AlibabaCloud void setType(int type); private: - long preventCache_; long period_; std::string instanceId_; std::string topic_; diff --git a/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h index 1fcd2f8a9..e589a0f7e 100644 --- a/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsWarnCreateRequest(); ~OnsWarnCreateRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getBlockTime()const; @@ -57,7 +55,6 @@ namespace AlibabaCloud void setContacts(const std::string& contacts); private: - long preventCache_; std::string instanceId_; std::string blockTime_; std::string level_; diff --git a/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h index d1b6f722c..b05353bfb 100644 --- a/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud OnsWarnDeleteRequest(); ~OnsWarnDeleteRequest(); - long getPreventCache()const; - void setPreventCache(long preventCache); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getGroupId()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setTopic(const std::string& topic); private: - long preventCache_; std::string instanceId_; std::string groupId_; std::string topic_; diff --git a/ons/src/OnsClient.cc b/ons/src/OnsClient.cc index 38cce5607..4a89dbd04 100644 --- a/ons/src/OnsClient.cc +++ b/ons/src/OnsClient.cc @@ -555,6 +555,42 @@ OnsClient::OnsGroupConsumerUpdateOutcomeCallable OnsClient::onsGroupConsumerUpda return task->get_future(); } +OnsClient::OnsGroupListOutcome OnsClient::onsGroupList(const OnsGroupListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsGroupListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsGroupListOutcome(OnsGroupListResult(outcome.result())); + else + return OnsGroupListOutcome(outcome.error()); +} + +void OnsClient::onsGroupListAsync(const OnsGroupListRequest& request, const OnsGroupListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsGroupList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsGroupListOutcomeCallable OnsClient::onsGroupListCallable(const OnsGroupListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsGroupList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OnsClient::OnsMessageTraceOutcome OnsClient::onsMessageTrace(const OnsMessageTraceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,42 +663,6 @@ OnsClient::OnsConsumerTimeSpanOutcomeCallable OnsClient::onsConsumerTimeSpanCall return task->get_future(); } -OnsClient::OnsGroupListOutcome OnsClient::onsGroupList(const OnsGroupListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OnsGroupListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OnsGroupListOutcome(OnsGroupListResult(outcome.result())); - else - return OnsGroupListOutcome(outcome.error()); -} - -void OnsClient::onsGroupListAsync(const OnsGroupListRequest& request, const OnsGroupListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, onsGroupList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OnsClient::OnsGroupListOutcomeCallable OnsClient::onsGroupListCallable(const OnsGroupListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->onsGroupList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OnsClient::OnsGroupSubDetailOutcome OnsClient::onsGroupSubDetail(const OnsGroupSubDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,42 +843,6 @@ OnsClient::OnsGroupDeleteOutcomeCallable OnsClient::onsGroupDeleteCallable(const return task->get_future(); } -OnsClient::OnsInstanceUpdateOutcome OnsClient::onsInstanceUpdate(const OnsInstanceUpdateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OnsInstanceUpdateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OnsInstanceUpdateOutcome(OnsInstanceUpdateResult(outcome.result())); - else - return OnsInstanceUpdateOutcome(outcome.error()); -} - -void OnsClient::onsInstanceUpdateAsync(const OnsInstanceUpdateRequest& request, const OnsInstanceUpdateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, onsInstanceUpdate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OnsClient::OnsInstanceUpdateOutcomeCallable OnsClient::onsInstanceUpdateCallable(const OnsInstanceUpdateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->onsInstanceUpdate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OnsClient::OnsMessagePageQueryByTopicOutcome OnsClient::onsMessagePageQueryByTopic(const OnsMessagePageQueryByTopicRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,36 +879,36 @@ OnsClient::OnsMessagePageQueryByTopicOutcomeCallable OnsClient::onsMessagePageQu return task->get_future(); } -OnsClient::OnsTrendTopicInputTpsOutcome OnsClient::onsTrendTopicInputTps(const OnsTrendTopicInputTpsRequest &request) const +OnsClient::OnsInstanceUpdateOutcome OnsClient::onsInstanceUpdate(const OnsInstanceUpdateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return OnsTrendTopicInputTpsOutcome(endpointOutcome.error()); + return OnsInstanceUpdateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return OnsTrendTopicInputTpsOutcome(OnsTrendTopicInputTpsResult(outcome.result())); + return OnsInstanceUpdateOutcome(OnsInstanceUpdateResult(outcome.result())); else - return OnsTrendTopicInputTpsOutcome(outcome.error()); + return OnsInstanceUpdateOutcome(outcome.error()); } -void OnsClient::onsTrendTopicInputTpsAsync(const OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr& context) const +void OnsClient::onsInstanceUpdateAsync(const OnsInstanceUpdateRequest& request, const OnsInstanceUpdateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, onsTrendTopicInputTps(request), context); + handler(this, request, onsInstanceUpdate(request), context); }; asyncExecute(new Runnable(fn)); } -OnsClient::OnsTrendTopicInputTpsOutcomeCallable OnsClient::onsTrendTopicInputTpsCallable(const OnsTrendTopicInputTpsRequest &request) const +OnsClient::OnsInstanceUpdateOutcomeCallable OnsClient::onsInstanceUpdateCallable(const OnsInstanceUpdateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->onsTrendTopicInputTps(request); + return this->onsInstanceUpdate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -987,6 +951,42 @@ OnsClient::OnsGroupCreateOutcomeCallable OnsClient::onsGroupCreateCallable(const return task->get_future(); } +OnsClient::OnsTrendTopicInputTpsOutcome OnsClient::onsTrendTopicInputTps(const OnsTrendTopicInputTpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsTrendTopicInputTpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsTrendTopicInputTpsOutcome(OnsTrendTopicInputTpsResult(outcome.result())); + else + return OnsTrendTopicInputTpsOutcome(outcome.error()); +} + +void OnsClient::onsTrendTopicInputTpsAsync(const OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsTrendTopicInputTps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsTrendTopicInputTpsOutcomeCallable OnsClient::onsTrendTopicInputTpsCallable(const OnsTrendTopicInputTpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsTrendTopicInputTps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OnsClient::OnsDLQMessageResendByIdOutcome OnsClient::onsDLQMessageResendById(const OnsDLQMessageResendByIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,42 +1491,6 @@ OnsClient::OnsDLQMessageGetByIdOutcomeCallable OnsClient::onsDLQMessageGetByIdCa return task->get_future(); } -OnsClient::OnsInstanceCreateOutcome OnsClient::onsInstanceCreate(const OnsInstanceCreateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OnsInstanceCreateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OnsInstanceCreateOutcome(OnsInstanceCreateResult(outcome.result())); - else - return OnsInstanceCreateOutcome(outcome.error()); -} - -void OnsClient::onsInstanceCreateAsync(const OnsInstanceCreateRequest& request, const OnsInstanceCreateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, onsInstanceCreate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OnsClient::OnsInstanceCreateOutcomeCallable OnsClient::onsInstanceCreateCallable(const OnsInstanceCreateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->onsInstanceCreate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OnsClient::OnsWarnCreateOutcome OnsClient::onsWarnCreate(const OnsWarnCreateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1527,42 @@ OnsClient::OnsWarnCreateOutcomeCallable OnsClient::onsWarnCreateCallable(const O return task->get_future(); } +OnsClient::OnsInstanceCreateOutcome OnsClient::onsInstanceCreate(const OnsInstanceCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnsInstanceCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnsInstanceCreateOutcome(OnsInstanceCreateResult(outcome.result())); + else + return OnsInstanceCreateOutcome(outcome.error()); +} + +void OnsClient::onsInstanceCreateAsync(const OnsInstanceCreateRequest& request, const OnsInstanceCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onsInstanceCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OnsClient::OnsInstanceCreateOutcomeCallable OnsClient::onsInstanceCreateCallable(const OnsInstanceCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onsInstanceCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OnsClient::OnsTopicStatusOutcome OnsClient::onsTopicStatus(const OnsTopicStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ons/src/model/OnsConsumerAccumulateRequest.cc b/ons/src/model/OnsConsumerAccumulateRequest.cc index 67c957efb..f97964231 100644 --- a/ons/src/model/OnsConsumerAccumulateRequest.cc +++ b/ons/src/model/OnsConsumerAccumulateRequest.cc @@ -25,17 +25,6 @@ OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest() : OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest() {} -long OnsConsumerAccumulateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsConsumerAccumulateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsConsumerAccumulateRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsConsumerAccumulateResult.cc b/ons/src/model/OnsConsumerAccumulateResult.cc index 9ec4eea71..248afeb61 100644 --- a/ons/src/model/OnsConsumerAccumulateResult.cc +++ b/ons/src/model/OnsConsumerAccumulateResult.cc @@ -35,10 +35,13 @@ OnsConsumerAccumulateResult::~OnsConsumerAccumulateResult() void OnsConsumerAccumulateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Online"].isNull()) diff --git a/ons/src/model/OnsConsumerGetConnectionRequest.cc b/ons/src/model/OnsConsumerGetConnectionRequest.cc index 619822f65..69c45981e 100644 --- a/ons/src/model/OnsConsumerGetConnectionRequest.cc +++ b/ons/src/model/OnsConsumerGetConnectionRequest.cc @@ -25,17 +25,6 @@ OnsConsumerGetConnectionRequest::OnsConsumerGetConnectionRequest() : OnsConsumerGetConnectionRequest::~OnsConsumerGetConnectionRequest() {} -long OnsConsumerGetConnectionRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsConsumerGetConnectionRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsConsumerGetConnectionRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsConsumerGetConnectionResult.cc b/ons/src/model/OnsConsumerGetConnectionResult.cc index 1b4595139..919e78191 100644 --- a/ons/src/model/OnsConsumerGetConnectionResult.cc +++ b/ons/src/model/OnsConsumerGetConnectionResult.cc @@ -35,10 +35,13 @@ OnsConsumerGetConnectionResult::~OnsConsumerGetConnectionResult() void OnsConsumerGetConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; auto allConnectionList = value["ConnectionList"]["ConnectionDo"]; diff --git a/ons/src/model/OnsConsumerResetOffsetRequest.cc b/ons/src/model/OnsConsumerResetOffsetRequest.cc index e71c64e98..f018c8851 100644 --- a/ons/src/model/OnsConsumerResetOffsetRequest.cc +++ b/ons/src/model/OnsConsumerResetOffsetRequest.cc @@ -25,17 +25,6 @@ OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest() : OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest() {} -long OnsConsumerResetOffsetRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsConsumerResetOffsetRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsConsumerResetOffsetRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsConsumerResetOffsetResult.cc b/ons/src/model/OnsConsumerResetOffsetResult.cc index a746b82c5..fa93aeb23 100644 --- a/ons/src/model/OnsConsumerResetOffsetResult.cc +++ b/ons/src/model/OnsConsumerResetOffsetResult.cc @@ -35,10 +35,13 @@ OnsConsumerResetOffsetResult::~OnsConsumerResetOffsetResult() void OnsConsumerResetOffsetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsConsumerStatusRequest.cc b/ons/src/model/OnsConsumerStatusRequest.cc index f4244156e..7bc93edf8 100644 --- a/ons/src/model/OnsConsumerStatusRequest.cc +++ b/ons/src/model/OnsConsumerStatusRequest.cc @@ -25,17 +25,6 @@ OnsConsumerStatusRequest::OnsConsumerStatusRequest() : OnsConsumerStatusRequest::~OnsConsumerStatusRequest() {} -long OnsConsumerStatusRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsConsumerStatusRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsConsumerStatusRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsConsumerStatusResult.cc b/ons/src/model/OnsConsumerStatusResult.cc index 97cb2eab2..f133f585e 100644 --- a/ons/src/model/OnsConsumerStatusResult.cc +++ b/ons/src/model/OnsConsumerStatusResult.cc @@ -35,10 +35,13 @@ OnsConsumerStatusResult::~OnsConsumerStatusResult() void OnsConsumerStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Online"].isNull()) @@ -71,6 +74,8 @@ void OnsConsumerStatusResult::parse(const std::string &payload) connectionDoObject.language = value["Language"].asString(); if(!value["Version"].isNull()) connectionDoObject.version = value["Version"].asString(); + if(!value["RemoteIP"].isNull()) + connectionDoObject.remoteIP = value["RemoteIP"].asString(); data_.connectionSet.push_back(connectionDoObject); } auto allDetailInTopicList = value["DetailInTopicList"]["DetailInTopicDo"]; diff --git a/ons/src/model/OnsConsumerTimeSpanRequest.cc b/ons/src/model/OnsConsumerTimeSpanRequest.cc index c4c6b49e3..5e9deec66 100644 --- a/ons/src/model/OnsConsumerTimeSpanRequest.cc +++ b/ons/src/model/OnsConsumerTimeSpanRequest.cc @@ -25,17 +25,6 @@ OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest() : OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest() {} -long OnsConsumerTimeSpanRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsConsumerTimeSpanRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsConsumerTimeSpanRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsConsumerTimeSpanResult.cc b/ons/src/model/OnsConsumerTimeSpanResult.cc index f20238e68..3c28145fe 100644 --- a/ons/src/model/OnsConsumerTimeSpanResult.cc +++ b/ons/src/model/OnsConsumerTimeSpanResult.cc @@ -35,10 +35,13 @@ OnsConsumerTimeSpanResult::~OnsConsumerTimeSpanResult() void OnsConsumerTimeSpanResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Topic"].isNull()) diff --git a/ons/src/model/OnsDLQMessageGetByIdRequest.cc b/ons/src/model/OnsDLQMessageGetByIdRequest.cc index d81f01d69..627f3daaf 100644 --- a/ons/src/model/OnsDLQMessageGetByIdRequest.cc +++ b/ons/src/model/OnsDLQMessageGetByIdRequest.cc @@ -25,17 +25,6 @@ OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest() : OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest() {} -long OnsDLQMessageGetByIdRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsDLQMessageGetByIdRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsDLQMessageGetByIdRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsDLQMessageGetByIdResult.cc b/ons/src/model/OnsDLQMessageGetByIdResult.cc index 7a5584f61..9526a858b 100644 --- a/ons/src/model/OnsDLQMessageGetByIdResult.cc +++ b/ons/src/model/OnsDLQMessageGetByIdResult.cc @@ -35,10 +35,13 @@ OnsDLQMessageGetByIdResult::~OnsDLQMessageGetByIdResult() void OnsDLQMessageGetByIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Topic"].isNull()) diff --git a/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc b/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc index 7093a6d72..d255fa371 100644 --- a/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc +++ b/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc @@ -25,17 +25,6 @@ OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest() OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest() {} -long OnsDLQMessagePageQueryByGroupIdRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsDLQMessagePageQueryByGroupIdRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc b/ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc index 1ef8f1a86..13bdb46b3 100644 --- a/ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc +++ b/ons/src/model/OnsDLQMessagePageQueryByGroupIdResult.cc @@ -35,10 +35,13 @@ OnsDLQMessagePageQueryByGroupIdResult::~OnsDLQMessagePageQueryByGroupIdResult() void OnsDLQMessagePageQueryByGroupIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto msgFoundDoNode = value["MsgFoundDo"]; if(!msgFoundDoNode["TaskId"].isNull()) diff --git a/ons/src/model/OnsDLQMessageResendByIdRequest.cc b/ons/src/model/OnsDLQMessageResendByIdRequest.cc index 38a2fb24f..e64ced1e9 100644 --- a/ons/src/model/OnsDLQMessageResendByIdRequest.cc +++ b/ons/src/model/OnsDLQMessageResendByIdRequest.cc @@ -25,17 +25,6 @@ OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest() : OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest() {} -long OnsDLQMessageResendByIdRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsDLQMessageResendByIdRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsDLQMessageResendByIdRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsDLQMessageResendByIdResult.cc b/ons/src/model/OnsDLQMessageResendByIdResult.cc index e2abd6c96..8f7c6e56d 100644 --- a/ons/src/model/OnsDLQMessageResendByIdResult.cc +++ b/ons/src/model/OnsDLQMessageResendByIdResult.cc @@ -35,10 +35,13 @@ OnsDLQMessageResendByIdResult::~OnsDLQMessageResendByIdResult() void OnsDLQMessageResendByIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["MsgId"]; for (const auto &item : allData) diff --git a/ons/src/model/OnsGroupConsumerUpdateRequest.cc b/ons/src/model/OnsGroupConsumerUpdateRequest.cc index 1df074701..949ee5ea7 100644 --- a/ons/src/model/OnsGroupConsumerUpdateRequest.cc +++ b/ons/src/model/OnsGroupConsumerUpdateRequest.cc @@ -25,17 +25,6 @@ OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest() : OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest() {} -long OnsGroupConsumerUpdateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsGroupConsumerUpdateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - bool OnsGroupConsumerUpdateRequest::getReadEnable()const { return readEnable_; diff --git a/ons/src/model/OnsGroupConsumerUpdateResult.cc b/ons/src/model/OnsGroupConsumerUpdateResult.cc index a12f29f8f..ba56eb369 100644 --- a/ons/src/model/OnsGroupConsumerUpdateResult.cc +++ b/ons/src/model/OnsGroupConsumerUpdateResult.cc @@ -35,10 +35,13 @@ OnsGroupConsumerUpdateResult::~OnsGroupConsumerUpdateResult() void OnsGroupConsumerUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsGroupCreateRequest.cc b/ons/src/model/OnsGroupCreateRequest.cc index 7f45f5169..46158667c 100644 --- a/ons/src/model/OnsGroupCreateRequest.cc +++ b/ons/src/model/OnsGroupCreateRequest.cc @@ -25,17 +25,6 @@ OnsGroupCreateRequest::OnsGroupCreateRequest() : OnsGroupCreateRequest::~OnsGroupCreateRequest() {} -long OnsGroupCreateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsGroupCreateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsGroupCreateRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsGroupCreateResult.cc b/ons/src/model/OnsGroupCreateResult.cc index d712bc4b6..472585072 100644 --- a/ons/src/model/OnsGroupCreateResult.cc +++ b/ons/src/model/OnsGroupCreateResult.cc @@ -35,10 +35,13 @@ OnsGroupCreateResult::~OnsGroupCreateResult() void OnsGroupCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsGroupDeleteRequest.cc b/ons/src/model/OnsGroupDeleteRequest.cc index fd0c0ea22..2059efcf9 100644 --- a/ons/src/model/OnsGroupDeleteRequest.cc +++ b/ons/src/model/OnsGroupDeleteRequest.cc @@ -25,17 +25,6 @@ OnsGroupDeleteRequest::OnsGroupDeleteRequest() : OnsGroupDeleteRequest::~OnsGroupDeleteRequest() {} -long OnsGroupDeleteRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsGroupDeleteRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsGroupDeleteRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsGroupDeleteResult.cc b/ons/src/model/OnsGroupDeleteResult.cc index bc8893da0..0ec9563c0 100644 --- a/ons/src/model/OnsGroupDeleteResult.cc +++ b/ons/src/model/OnsGroupDeleteResult.cc @@ -35,10 +35,13 @@ OnsGroupDeleteResult::~OnsGroupDeleteResult() void OnsGroupDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsGroupListRequest.cc b/ons/src/model/OnsGroupListRequest.cc index b7df804dc..e1b741f20 100644 --- a/ons/src/model/OnsGroupListRequest.cc +++ b/ons/src/model/OnsGroupListRequest.cc @@ -25,17 +25,6 @@ OnsGroupListRequest::OnsGroupListRequest() : OnsGroupListRequest::~OnsGroupListRequest() {} -long OnsGroupListRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsGroupListRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsGroupListRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsGroupListResult.cc b/ons/src/model/OnsGroupListResult.cc index 987b2db0f..8035fd90f 100644 --- a/ons/src/model/OnsGroupListResult.cc +++ b/ons/src/model/OnsGroupListResult.cc @@ -35,10 +35,13 @@ OnsGroupListResult::~OnsGroupListResult() void OnsGroupListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["SubscribeInfoDo"]; for (auto value : allData) @@ -56,6 +59,8 @@ void OnsGroupListResult::parse(const std::string &payload) dataObject.instanceId = value["InstanceId"].asString(); if(!value["IndependentNaming"].isNull()) dataObject.independentNaming = value["IndependentNaming"].asString() == "true"; + if(!value["CreateTime"].isNull()) + dataObject.createTime = std::stol(value["CreateTime"].asString()); data_.push_back(dataObject); } if(!value["HelpUrl"].isNull()) diff --git a/ons/src/model/OnsGroupSubDetailRequest.cc b/ons/src/model/OnsGroupSubDetailRequest.cc index bd64b6541..d2c6e9579 100644 --- a/ons/src/model/OnsGroupSubDetailRequest.cc +++ b/ons/src/model/OnsGroupSubDetailRequest.cc @@ -25,17 +25,6 @@ OnsGroupSubDetailRequest::OnsGroupSubDetailRequest() : OnsGroupSubDetailRequest::~OnsGroupSubDetailRequest() {} -long OnsGroupSubDetailRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsGroupSubDetailRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsGroupSubDetailRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsGroupSubDetailResult.cc b/ons/src/model/OnsGroupSubDetailResult.cc index e0531673f..7d498ab54 100644 --- a/ons/src/model/OnsGroupSubDetailResult.cc +++ b/ons/src/model/OnsGroupSubDetailResult.cc @@ -35,10 +35,13 @@ OnsGroupSubDetailResult::~OnsGroupSubDetailResult() void OnsGroupSubDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["GroupId"].isNull()) diff --git a/ons/src/model/OnsInstanceBaseInfoRequest.cc b/ons/src/model/OnsInstanceBaseInfoRequest.cc index 730e47409..e45955711 100644 --- a/ons/src/model/OnsInstanceBaseInfoRequest.cc +++ b/ons/src/model/OnsInstanceBaseInfoRequest.cc @@ -25,17 +25,6 @@ OnsInstanceBaseInfoRequest::OnsInstanceBaseInfoRequest() : OnsInstanceBaseInfoRequest::~OnsInstanceBaseInfoRequest() {} -long OnsInstanceBaseInfoRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsInstanceBaseInfoRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsInstanceBaseInfoRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsInstanceBaseInfoResult.cc b/ons/src/model/OnsInstanceBaseInfoResult.cc index e84aa4476..81d440fa1 100644 --- a/ons/src/model/OnsInstanceBaseInfoResult.cc +++ b/ons/src/model/OnsInstanceBaseInfoResult.cc @@ -35,10 +35,13 @@ OnsInstanceBaseInfoResult::~OnsInstanceBaseInfoResult() void OnsInstanceBaseInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto instanceBaseInfoNode = value["InstanceBaseInfo"]; if(!instanceBaseInfoNode["InstanceId"].isNull()) @@ -53,6 +56,8 @@ void OnsInstanceBaseInfoResult::parse(const std::string &payload) instanceBaseInfo_.instanceName = instanceBaseInfoNode["InstanceName"].asString(); if(!instanceBaseInfoNode["IndependentNaming"].isNull()) instanceBaseInfo_.independentNaming = instanceBaseInfoNode["IndependentNaming"].asString() == "true"; + if(!instanceBaseInfoNode["Remark"].isNull()) + instanceBaseInfo_.remark = instanceBaseInfoNode["Remark"].asString(); auto endpointsNode = instanceBaseInfoNode["Endpoints"]; if(!endpointsNode["TcpEndpoint"].isNull()) instanceBaseInfo_.endpoints.tcpEndpoint = endpointsNode["TcpEndpoint"].asString(); diff --git a/ons/src/model/OnsInstanceCreateRequest.cc b/ons/src/model/OnsInstanceCreateRequest.cc index d05f6826a..f86f29721 100644 --- a/ons/src/model/OnsInstanceCreateRequest.cc +++ b/ons/src/model/OnsInstanceCreateRequest.cc @@ -25,17 +25,6 @@ OnsInstanceCreateRequest::OnsInstanceCreateRequest() : OnsInstanceCreateRequest::~OnsInstanceCreateRequest() {} -long OnsInstanceCreateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsInstanceCreateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsInstanceCreateRequest::getInstanceName()const { return instanceName_; diff --git a/ons/src/model/OnsInstanceCreateResult.cc b/ons/src/model/OnsInstanceCreateResult.cc index 35192dc18..24d84d327 100644 --- a/ons/src/model/OnsInstanceCreateResult.cc +++ b/ons/src/model/OnsInstanceCreateResult.cc @@ -35,10 +35,13 @@ OnsInstanceCreateResult::~OnsInstanceCreateResult() void OnsInstanceCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["InstanceId"].isNull()) diff --git a/ons/src/model/OnsInstanceDeleteRequest.cc b/ons/src/model/OnsInstanceDeleteRequest.cc index dafba51a5..c1509b1a0 100644 --- a/ons/src/model/OnsInstanceDeleteRequest.cc +++ b/ons/src/model/OnsInstanceDeleteRequest.cc @@ -25,17 +25,6 @@ OnsInstanceDeleteRequest::OnsInstanceDeleteRequest() : OnsInstanceDeleteRequest::~OnsInstanceDeleteRequest() {} -long OnsInstanceDeleteRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsInstanceDeleteRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsInstanceDeleteRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsInstanceDeleteResult.cc b/ons/src/model/OnsInstanceDeleteResult.cc index 687671cda..214c78ba6 100644 --- a/ons/src/model/OnsInstanceDeleteResult.cc +++ b/ons/src/model/OnsInstanceDeleteResult.cc @@ -35,10 +35,13 @@ OnsInstanceDeleteResult::~OnsInstanceDeleteResult() void OnsInstanceDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsInstanceInServiceListRequest.cc b/ons/src/model/OnsInstanceInServiceListRequest.cc index 34cb5b271..32e437065 100644 --- a/ons/src/model/OnsInstanceInServiceListRequest.cc +++ b/ons/src/model/OnsInstanceInServiceListRequest.cc @@ -25,14 +25,3 @@ OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest() : OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest() {} -long OnsInstanceInServiceListRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsInstanceInServiceListRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - diff --git a/ons/src/model/OnsInstanceInServiceListResult.cc b/ons/src/model/OnsInstanceInServiceListResult.cc index 8a37ddfd8..9d1a3ceb8 100644 --- a/ons/src/model/OnsInstanceInServiceListResult.cc +++ b/ons/src/model/OnsInstanceInServiceListResult.cc @@ -35,10 +35,13 @@ OnsInstanceInServiceListResult::~OnsInstanceInServiceListResult() void OnsInstanceInServiceListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["InstanceVO"]; for (auto value : allData) diff --git a/ons/src/model/OnsInstanceUpdateRequest.cc b/ons/src/model/OnsInstanceUpdateRequest.cc index 6a15dd6b1..f0ae06bfe 100644 --- a/ons/src/model/OnsInstanceUpdateRequest.cc +++ b/ons/src/model/OnsInstanceUpdateRequest.cc @@ -25,17 +25,6 @@ OnsInstanceUpdateRequest::OnsInstanceUpdateRequest() : OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest() {} -long OnsInstanceUpdateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsInstanceUpdateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsInstanceUpdateRequest::getInstanceName()const { return instanceName_; diff --git a/ons/src/model/OnsInstanceUpdateResult.cc b/ons/src/model/OnsInstanceUpdateResult.cc index 96e6879de..88025c606 100644 --- a/ons/src/model/OnsInstanceUpdateResult.cc +++ b/ons/src/model/OnsInstanceUpdateResult.cc @@ -35,10 +35,13 @@ OnsInstanceUpdateResult::~OnsInstanceUpdateResult() void OnsInstanceUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsMessageGetByKeyRequest.cc b/ons/src/model/OnsMessageGetByKeyRequest.cc index 66cf94481..51811a4e4 100644 --- a/ons/src/model/OnsMessageGetByKeyRequest.cc +++ b/ons/src/model/OnsMessageGetByKeyRequest.cc @@ -25,17 +25,6 @@ OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest() : OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest() {} -long OnsMessageGetByKeyRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMessageGetByKeyRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMessageGetByKeyRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMessageGetByKeyResult.cc b/ons/src/model/OnsMessageGetByKeyResult.cc index a6c9563ec..f75ce9f5d 100644 --- a/ons/src/model/OnsMessageGetByKeyResult.cc +++ b/ons/src/model/OnsMessageGetByKeyResult.cc @@ -35,10 +35,13 @@ OnsMessageGetByKeyResult::~OnsMessageGetByKeyResult() void OnsMessageGetByKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["OnsRestMessageDo"]; for (auto value : allData) diff --git a/ons/src/model/OnsMessageGetByMsgIdRequest.cc b/ons/src/model/OnsMessageGetByMsgIdRequest.cc index f92696b79..2ec23354b 100644 --- a/ons/src/model/OnsMessageGetByMsgIdRequest.cc +++ b/ons/src/model/OnsMessageGetByMsgIdRequest.cc @@ -25,17 +25,6 @@ OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest() : OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest() {} -long OnsMessageGetByMsgIdRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMessageGetByMsgIdRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMessageGetByMsgIdRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMessageGetByMsgIdResult.cc b/ons/src/model/OnsMessageGetByMsgIdResult.cc index a64c6bb01..ab86b2921 100644 --- a/ons/src/model/OnsMessageGetByMsgIdResult.cc +++ b/ons/src/model/OnsMessageGetByMsgIdResult.cc @@ -35,10 +35,13 @@ OnsMessageGetByMsgIdResult::~OnsMessageGetByMsgIdResult() void OnsMessageGetByMsgIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Topic"].isNull()) diff --git a/ons/src/model/OnsMessagePageQueryByTopicRequest.cc b/ons/src/model/OnsMessagePageQueryByTopicRequest.cc index 7b1b0e078..a09ec35a7 100644 --- a/ons/src/model/OnsMessagePageQueryByTopicRequest.cc +++ b/ons/src/model/OnsMessagePageQueryByTopicRequest.cc @@ -25,17 +25,6 @@ OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest() : OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest() {} -long OnsMessagePageQueryByTopicRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMessagePageQueryByTopicRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMessagePageQueryByTopicRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMessagePageQueryByTopicResult.cc b/ons/src/model/OnsMessagePageQueryByTopicResult.cc index 3f49f464f..1e51b47e2 100644 --- a/ons/src/model/OnsMessagePageQueryByTopicResult.cc +++ b/ons/src/model/OnsMessagePageQueryByTopicResult.cc @@ -35,10 +35,13 @@ OnsMessagePageQueryByTopicResult::~OnsMessagePageQueryByTopicResult() void OnsMessagePageQueryByTopicResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto msgFoundDoNode = value["MsgFoundDo"]; if(!msgFoundDoNode["TaskId"].isNull()) diff --git a/ons/src/model/OnsMessagePushRequest.cc b/ons/src/model/OnsMessagePushRequest.cc index 9edd31fdb..5d1a6b8f1 100644 --- a/ons/src/model/OnsMessagePushRequest.cc +++ b/ons/src/model/OnsMessagePushRequest.cc @@ -25,17 +25,6 @@ OnsMessagePushRequest::OnsMessagePushRequest() : OnsMessagePushRequest::~OnsMessagePushRequest() {} -long OnsMessagePushRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMessagePushRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMessagePushRequest::getClientId()const { return clientId_; diff --git a/ons/src/model/OnsMessagePushResult.cc b/ons/src/model/OnsMessagePushResult.cc index e398f3be3..f5accd94c 100644 --- a/ons/src/model/OnsMessagePushResult.cc +++ b/ons/src/model/OnsMessagePushResult.cc @@ -35,10 +35,13 @@ OnsMessagePushResult::~OnsMessagePushResult() void OnsMessagePushResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsMessageSendRequest.cc b/ons/src/model/OnsMessageSendRequest.cc index 5f7a5327d..25698d64c 100644 --- a/ons/src/model/OnsMessageSendRequest.cc +++ b/ons/src/model/OnsMessageSendRequest.cc @@ -25,17 +25,6 @@ OnsMessageSendRequest::OnsMessageSendRequest() : OnsMessageSendRequest::~OnsMessageSendRequest() {} -long OnsMessageSendRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMessageSendRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMessageSendRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMessageSendResult.cc b/ons/src/model/OnsMessageSendResult.cc index 95e5499ca..55d382a61 100644 --- a/ons/src/model/OnsMessageSendResult.cc +++ b/ons/src/model/OnsMessageSendResult.cc @@ -35,10 +35,13 @@ OnsMessageSendResult::~OnsMessageSendResult() void OnsMessageSendResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsMessageTraceRequest.cc b/ons/src/model/OnsMessageTraceRequest.cc index e1b0553af..a18f30c5b 100644 --- a/ons/src/model/OnsMessageTraceRequest.cc +++ b/ons/src/model/OnsMessageTraceRequest.cc @@ -25,17 +25,6 @@ OnsMessageTraceRequest::OnsMessageTraceRequest() : OnsMessageTraceRequest::~OnsMessageTraceRequest() {} -long OnsMessageTraceRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMessageTraceRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMessageTraceRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMessageTraceResult.cc b/ons/src/model/OnsMessageTraceResult.cc index 72f0b3044..1c64c2cf1 100644 --- a/ons/src/model/OnsMessageTraceResult.cc +++ b/ons/src/model/OnsMessageTraceResult.cc @@ -35,10 +35,13 @@ OnsMessageTraceResult::~OnsMessageTraceResult() void OnsMessageTraceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["MessageTrack"]; for (auto value : allData) diff --git a/ons/src/model/OnsMqttGroupIdCreateRequest.cc b/ons/src/model/OnsMqttGroupIdCreateRequest.cc index 0e487242d..2da52ed8b 100644 --- a/ons/src/model/OnsMqttGroupIdCreateRequest.cc +++ b/ons/src/model/OnsMqttGroupIdCreateRequest.cc @@ -25,17 +25,6 @@ OnsMqttGroupIdCreateRequest::OnsMqttGroupIdCreateRequest() : OnsMqttGroupIdCreateRequest::~OnsMqttGroupIdCreateRequest() {} -long OnsMqttGroupIdCreateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttGroupIdCreateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttGroupIdCreateRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMqttGroupIdCreateResult.cc b/ons/src/model/OnsMqttGroupIdCreateResult.cc index 4d4b7ea85..16c5f875b 100644 --- a/ons/src/model/OnsMqttGroupIdCreateResult.cc +++ b/ons/src/model/OnsMqttGroupIdCreateResult.cc @@ -35,10 +35,13 @@ OnsMqttGroupIdCreateResult::~OnsMqttGroupIdCreateResult() void OnsMqttGroupIdCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsMqttGroupIdDeleteRequest.cc b/ons/src/model/OnsMqttGroupIdDeleteRequest.cc index 2fe2f6896..d3cb39e7f 100644 --- a/ons/src/model/OnsMqttGroupIdDeleteRequest.cc +++ b/ons/src/model/OnsMqttGroupIdDeleteRequest.cc @@ -25,17 +25,6 @@ OnsMqttGroupIdDeleteRequest::OnsMqttGroupIdDeleteRequest() : OnsMqttGroupIdDeleteRequest::~OnsMqttGroupIdDeleteRequest() {} -long OnsMqttGroupIdDeleteRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttGroupIdDeleteRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttGroupIdDeleteRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMqttGroupIdDeleteResult.cc b/ons/src/model/OnsMqttGroupIdDeleteResult.cc index 1e71e1b24..52fe02e1b 100644 --- a/ons/src/model/OnsMqttGroupIdDeleteResult.cc +++ b/ons/src/model/OnsMqttGroupIdDeleteResult.cc @@ -35,10 +35,13 @@ OnsMqttGroupIdDeleteResult::~OnsMqttGroupIdDeleteResult() void OnsMqttGroupIdDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsMqttGroupIdListRequest.cc b/ons/src/model/OnsMqttGroupIdListRequest.cc index 1d7bba057..0d0de54e2 100644 --- a/ons/src/model/OnsMqttGroupIdListRequest.cc +++ b/ons/src/model/OnsMqttGroupIdListRequest.cc @@ -25,17 +25,6 @@ OnsMqttGroupIdListRequest::OnsMqttGroupIdListRequest() : OnsMqttGroupIdListRequest::~OnsMqttGroupIdListRequest() {} -long OnsMqttGroupIdListRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttGroupIdListRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttGroupIdListRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMqttGroupIdListResult.cc b/ons/src/model/OnsMqttGroupIdListResult.cc index cd1d4c63f..992700526 100644 --- a/ons/src/model/OnsMqttGroupIdListResult.cc +++ b/ons/src/model/OnsMqttGroupIdListResult.cc @@ -35,10 +35,13 @@ OnsMqttGroupIdListResult::~OnsMqttGroupIdListResult() void OnsMqttGroupIdListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["MqttGroupIdDo"]; for (auto value : allData) diff --git a/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc b/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc index 4d628af00..7c942c06b 100644 --- a/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc +++ b/ons/src/model/OnsMqttQueryClientByClientIdRequest.cc @@ -25,17 +25,6 @@ OnsMqttQueryClientByClientIdRequest::OnsMqttQueryClientByClientIdRequest() : OnsMqttQueryClientByClientIdRequest::~OnsMqttQueryClientByClientIdRequest() {} -long OnsMqttQueryClientByClientIdRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttQueryClientByClientIdRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttQueryClientByClientIdRequest::getClientId()const { return clientId_; diff --git a/ons/src/model/OnsMqttQueryClientByClientIdResult.cc b/ons/src/model/OnsMqttQueryClientByClientIdResult.cc index 397ee248a..2cdca539b 100644 --- a/ons/src/model/OnsMqttQueryClientByClientIdResult.cc +++ b/ons/src/model/OnsMqttQueryClientByClientIdResult.cc @@ -35,10 +35,13 @@ OnsMqttQueryClientByClientIdResult::~OnsMqttQueryClientByClientIdResult() void OnsMqttQueryClientByClientIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mqttClientInfoDoNode = value["MqttClientInfoDo"]; if(!mqttClientInfoDoNode["Online"].isNull()) diff --git a/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc b/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc index 5c6426b58..667ea1f8f 100644 --- a/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc +++ b/ons/src/model/OnsMqttQueryClientByGroupIdRequest.cc @@ -25,17 +25,6 @@ OnsMqttQueryClientByGroupIdRequest::OnsMqttQueryClientByGroupIdRequest() : OnsMqttQueryClientByGroupIdRequest::~OnsMqttQueryClientByGroupIdRequest() {} -long OnsMqttQueryClientByGroupIdRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttQueryClientByGroupIdRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttQueryClientByGroupIdRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc b/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc index 05482edbd..ce75176e2 100644 --- a/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc +++ b/ons/src/model/OnsMqttQueryClientByGroupIdResult.cc @@ -35,10 +35,13 @@ OnsMqttQueryClientByGroupIdResult::~OnsMqttQueryClientByGroupIdResult() void OnsMqttQueryClientByGroupIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mqttClientSetDoNode = value["MqttClientSetDo"]; if(!mqttClientSetDoNode["OnlineCount"].isNull()) diff --git a/ons/src/model/OnsMqttQueryClientByTopicRequest.cc b/ons/src/model/OnsMqttQueryClientByTopicRequest.cc index 5b7c6411d..c1795ece6 100644 --- a/ons/src/model/OnsMqttQueryClientByTopicRequest.cc +++ b/ons/src/model/OnsMqttQueryClientByTopicRequest.cc @@ -25,17 +25,6 @@ OnsMqttQueryClientByTopicRequest::OnsMqttQueryClientByTopicRequest() : OnsMqttQueryClientByTopicRequest::~OnsMqttQueryClientByTopicRequest() {} -long OnsMqttQueryClientByTopicRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttQueryClientByTopicRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttQueryClientByTopicRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMqttQueryClientByTopicResult.cc b/ons/src/model/OnsMqttQueryClientByTopicResult.cc index 16185830d..a6e56ab7b 100644 --- a/ons/src/model/OnsMqttQueryClientByTopicResult.cc +++ b/ons/src/model/OnsMqttQueryClientByTopicResult.cc @@ -35,10 +35,13 @@ OnsMqttQueryClientByTopicResult::~OnsMqttQueryClientByTopicResult() void OnsMqttQueryClientByTopicResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mqttClientSetDoNode = value["MqttClientSetDo"]; if(!mqttClientSetDoNode["OnlineCount"].isNull()) diff --git a/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc b/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc index 7bf1d69b7..ba6696242 100644 --- a/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc +++ b/ons/src/model/OnsMqttQueryHistoryOnlineRequest.cc @@ -25,17 +25,6 @@ OnsMqttQueryHistoryOnlineRequest::OnsMqttQueryHistoryOnlineRequest() : OnsMqttQueryHistoryOnlineRequest::~OnsMqttQueryHistoryOnlineRequest() {} -long OnsMqttQueryHistoryOnlineRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttQueryHistoryOnlineRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttQueryHistoryOnlineRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc b/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc index fecac5e75..54ecfdb0e 100644 --- a/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc +++ b/ons/src/model/OnsMqttQueryHistoryOnlineResult.cc @@ -35,10 +35,13 @@ OnsMqttQueryHistoryOnlineResult::~OnsMqttQueryHistoryOnlineResult() void OnsMqttQueryHistoryOnlineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Title"].isNull()) diff --git a/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc b/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc index d16389e0b..43b3a2662 100644 --- a/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc +++ b/ons/src/model/OnsMqttQueryMsgTransTrendRequest.cc @@ -25,17 +25,6 @@ OnsMqttQueryMsgTransTrendRequest::OnsMqttQueryMsgTransTrendRequest() : OnsMqttQueryMsgTransTrendRequest::~OnsMqttQueryMsgTransTrendRequest() {} -long OnsMqttQueryMsgTransTrendRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsMqttQueryMsgTransTrendRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsMqttQueryMsgTransTrendRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc b/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc index f9adfa59d..71ceb65c0 100644 --- a/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc +++ b/ons/src/model/OnsMqttQueryMsgTransTrendResult.cc @@ -35,10 +35,13 @@ OnsMqttQueryMsgTransTrendResult::~OnsMqttQueryMsgTransTrendResult() void OnsMqttQueryMsgTransTrendResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Title"].isNull()) diff --git a/ons/src/model/OnsRegionListRequest.cc b/ons/src/model/OnsRegionListRequest.cc index 2d32d5d6f..45f9c58b4 100644 --- a/ons/src/model/OnsRegionListRequest.cc +++ b/ons/src/model/OnsRegionListRequest.cc @@ -25,14 +25,3 @@ OnsRegionListRequest::OnsRegionListRequest() : OnsRegionListRequest::~OnsRegionListRequest() {} -long OnsRegionListRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsRegionListRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - diff --git a/ons/src/model/OnsRegionListResult.cc b/ons/src/model/OnsRegionListResult.cc index fad7bd39c..59f5a10fb 100644 --- a/ons/src/model/OnsRegionListResult.cc +++ b/ons/src/model/OnsRegionListResult.cc @@ -35,10 +35,13 @@ OnsRegionListResult::~OnsRegionListResult() void OnsRegionListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["RegionDo"]; for (auto value : allData) diff --git a/ons/src/model/OnsTopicCreateRequest.cc b/ons/src/model/OnsTopicCreateRequest.cc index c8915a461..c935fdd13 100644 --- a/ons/src/model/OnsTopicCreateRequest.cc +++ b/ons/src/model/OnsTopicCreateRequest.cc @@ -25,17 +25,6 @@ OnsTopicCreateRequest::OnsTopicCreateRequest() : OnsTopicCreateRequest::~OnsTopicCreateRequest() {} -long OnsTopicCreateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTopicCreateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTopicCreateRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTopicCreateResult.cc b/ons/src/model/OnsTopicCreateResult.cc index 351431745..f1a36ca3a 100644 --- a/ons/src/model/OnsTopicCreateResult.cc +++ b/ons/src/model/OnsTopicCreateResult.cc @@ -35,10 +35,13 @@ OnsTopicCreateResult::~OnsTopicCreateResult() void OnsTopicCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsTopicDeleteRequest.cc b/ons/src/model/OnsTopicDeleteRequest.cc index f6fdbfe20..be8435743 100644 --- a/ons/src/model/OnsTopicDeleteRequest.cc +++ b/ons/src/model/OnsTopicDeleteRequest.cc @@ -25,17 +25,6 @@ OnsTopicDeleteRequest::OnsTopicDeleteRequest() : OnsTopicDeleteRequest::~OnsTopicDeleteRequest() {} -long OnsTopicDeleteRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTopicDeleteRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTopicDeleteRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTopicDeleteResult.cc b/ons/src/model/OnsTopicDeleteResult.cc index 7a530782a..3d57a2d67 100644 --- a/ons/src/model/OnsTopicDeleteResult.cc +++ b/ons/src/model/OnsTopicDeleteResult.cc @@ -35,10 +35,13 @@ OnsTopicDeleteResult::~OnsTopicDeleteResult() void OnsTopicDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsTopicListRequest.cc b/ons/src/model/OnsTopicListRequest.cc index 1ea6efd4e..d789be4e1 100644 --- a/ons/src/model/OnsTopicListRequest.cc +++ b/ons/src/model/OnsTopicListRequest.cc @@ -25,17 +25,6 @@ OnsTopicListRequest::OnsTopicListRequest() : OnsTopicListRequest::~OnsTopicListRequest() {} -long OnsTopicListRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTopicListRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTopicListRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTopicListResult.cc b/ons/src/model/OnsTopicListResult.cc index 8c25188ea..60826aa44 100644 --- a/ons/src/model/OnsTopicListResult.cc +++ b/ons/src/model/OnsTopicListResult.cc @@ -35,10 +35,13 @@ OnsTopicListResult::~OnsTopicListResult() void OnsTopicListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["PublishInfoDo"]; for (auto value : allData) diff --git a/ons/src/model/OnsTopicStatusRequest.cc b/ons/src/model/OnsTopicStatusRequest.cc index c10602527..e482c76d5 100644 --- a/ons/src/model/OnsTopicStatusRequest.cc +++ b/ons/src/model/OnsTopicStatusRequest.cc @@ -25,17 +25,6 @@ OnsTopicStatusRequest::OnsTopicStatusRequest() : OnsTopicStatusRequest::~OnsTopicStatusRequest() {} -long OnsTopicStatusRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTopicStatusRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTopicStatusRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTopicStatusResult.cc b/ons/src/model/OnsTopicStatusResult.cc index 9a0b66067..f0b928ed4 100644 --- a/ons/src/model/OnsTopicStatusResult.cc +++ b/ons/src/model/OnsTopicStatusResult.cc @@ -35,10 +35,13 @@ OnsTopicStatusResult::~OnsTopicStatusResult() void OnsTopicStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["TotalCount"].isNull()) diff --git a/ons/src/model/OnsTopicSubDetailRequest.cc b/ons/src/model/OnsTopicSubDetailRequest.cc index 969fa7dcf..20f789519 100644 --- a/ons/src/model/OnsTopicSubDetailRequest.cc +++ b/ons/src/model/OnsTopicSubDetailRequest.cc @@ -25,17 +25,6 @@ OnsTopicSubDetailRequest::OnsTopicSubDetailRequest() : OnsTopicSubDetailRequest::~OnsTopicSubDetailRequest() {} -long OnsTopicSubDetailRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTopicSubDetailRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTopicSubDetailRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTopicSubDetailResult.cc b/ons/src/model/OnsTopicSubDetailResult.cc index 645d4abbf..5035b56ba 100644 --- a/ons/src/model/OnsTopicSubDetailResult.cc +++ b/ons/src/model/OnsTopicSubDetailResult.cc @@ -35,10 +35,13 @@ OnsTopicSubDetailResult::~OnsTopicSubDetailResult() void OnsTopicSubDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Topic"].isNull()) diff --git a/ons/src/model/OnsTopicUpdateRequest.cc b/ons/src/model/OnsTopicUpdateRequest.cc index 8498976fb..946fe3840 100644 --- a/ons/src/model/OnsTopicUpdateRequest.cc +++ b/ons/src/model/OnsTopicUpdateRequest.cc @@ -25,17 +25,6 @@ OnsTopicUpdateRequest::OnsTopicUpdateRequest() : OnsTopicUpdateRequest::~OnsTopicUpdateRequest() {} -long OnsTopicUpdateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTopicUpdateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTopicUpdateRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTopicUpdateResult.cc b/ons/src/model/OnsTopicUpdateResult.cc index d81efe258..c898cc35a 100644 --- a/ons/src/model/OnsTopicUpdateResult.cc +++ b/ons/src/model/OnsTopicUpdateResult.cc @@ -35,10 +35,13 @@ OnsTopicUpdateResult::~OnsTopicUpdateResult() void OnsTopicUpdateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsTraceGetResultRequest.cc b/ons/src/model/OnsTraceGetResultRequest.cc index 47612b5ad..824d8445e 100644 --- a/ons/src/model/OnsTraceGetResultRequest.cc +++ b/ons/src/model/OnsTraceGetResultRequest.cc @@ -25,17 +25,6 @@ OnsTraceGetResultRequest::OnsTraceGetResultRequest() : OnsTraceGetResultRequest::~OnsTraceGetResultRequest() {} -long OnsTraceGetResultRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTraceGetResultRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTraceGetResultRequest::getQueryId()const { return queryId_; diff --git a/ons/src/model/OnsTraceGetResultResult.cc b/ons/src/model/OnsTraceGetResultResult.cc index 0b0955993..e5da1d29a 100644 --- a/ons/src/model/OnsTraceGetResultResult.cc +++ b/ons/src/model/OnsTraceGetResultResult.cc @@ -35,10 +35,13 @@ OnsTraceGetResultResult::~OnsTraceGetResultResult() void OnsTraceGetResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto traceDataNode = value["TraceData"]; if(!traceDataNode["QueryId"].isNull()) diff --git a/ons/src/model/OnsTraceQueryByMsgIdRequest.cc b/ons/src/model/OnsTraceQueryByMsgIdRequest.cc index 454adc819..bdb0743e7 100644 --- a/ons/src/model/OnsTraceQueryByMsgIdRequest.cc +++ b/ons/src/model/OnsTraceQueryByMsgIdRequest.cc @@ -25,17 +25,6 @@ OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest() : OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest() {} -long OnsTraceQueryByMsgIdRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTraceQueryByMsgIdRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTraceQueryByMsgIdRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTraceQueryByMsgIdResult.cc b/ons/src/model/OnsTraceQueryByMsgIdResult.cc index 0952662f4..c9a3c4f77 100644 --- a/ons/src/model/OnsTraceQueryByMsgIdResult.cc +++ b/ons/src/model/OnsTraceQueryByMsgIdResult.cc @@ -35,10 +35,13 @@ OnsTraceQueryByMsgIdResult::~OnsTraceQueryByMsgIdResult() void OnsTraceQueryByMsgIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc b/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc index 8de8cd542..06165fbe8 100644 --- a/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc +++ b/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc @@ -25,17 +25,6 @@ OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest() : OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest() {} -long OnsTraceQueryByMsgKeyRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTraceQueryByMsgKeyRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsTraceQueryByMsgKeyRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsTraceQueryByMsgKeyResult.cc b/ons/src/model/OnsTraceQueryByMsgKeyResult.cc index 53b2072bb..303cbf7f0 100644 --- a/ons/src/model/OnsTraceQueryByMsgKeyResult.cc +++ b/ons/src/model/OnsTraceQueryByMsgKeyResult.cc @@ -35,10 +35,13 @@ OnsTraceQueryByMsgKeyResult::~OnsTraceQueryByMsgKeyResult() void OnsTraceQueryByMsgKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsTrendGroupOutputTpsRequest.cc b/ons/src/model/OnsTrendGroupOutputTpsRequest.cc index 6ad47eca5..b5d7b041f 100644 --- a/ons/src/model/OnsTrendGroupOutputTpsRequest.cc +++ b/ons/src/model/OnsTrendGroupOutputTpsRequest.cc @@ -25,17 +25,6 @@ OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest() : OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest() {} -long OnsTrendGroupOutputTpsRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTrendGroupOutputTpsRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - long OnsTrendGroupOutputTpsRequest::getPeriod()const { return period_; diff --git a/ons/src/model/OnsTrendGroupOutputTpsResult.cc b/ons/src/model/OnsTrendGroupOutputTpsResult.cc index 7cd96dd6f..fe1ec487f 100644 --- a/ons/src/model/OnsTrendGroupOutputTpsResult.cc +++ b/ons/src/model/OnsTrendGroupOutputTpsResult.cc @@ -35,10 +35,13 @@ OnsTrendGroupOutputTpsResult::~OnsTrendGroupOutputTpsResult() void OnsTrendGroupOutputTpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Title"].isNull()) diff --git a/ons/src/model/OnsTrendTopicInputTpsRequest.cc b/ons/src/model/OnsTrendTopicInputTpsRequest.cc index a133b5f3e..0caf623da 100644 --- a/ons/src/model/OnsTrendTopicInputTpsRequest.cc +++ b/ons/src/model/OnsTrendTopicInputTpsRequest.cc @@ -25,17 +25,6 @@ OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() : OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest() {} -long OnsTrendTopicInputTpsRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsTrendTopicInputTpsRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - long OnsTrendTopicInputTpsRequest::getPeriod()const { return period_; diff --git a/ons/src/model/OnsTrendTopicInputTpsResult.cc b/ons/src/model/OnsTrendTopicInputTpsResult.cc index 86d084341..5b1795a71 100644 --- a/ons/src/model/OnsTrendTopicInputTpsResult.cc +++ b/ons/src/model/OnsTrendTopicInputTpsResult.cc @@ -35,10 +35,13 @@ OnsTrendTopicInputTpsResult::~OnsTrendTopicInputTpsResult() void OnsTrendTopicInputTpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Title"].isNull()) diff --git a/ons/src/model/OnsWarnCreateRequest.cc b/ons/src/model/OnsWarnCreateRequest.cc index f8d066898..2bdb0d7e8 100644 --- a/ons/src/model/OnsWarnCreateRequest.cc +++ b/ons/src/model/OnsWarnCreateRequest.cc @@ -25,17 +25,6 @@ OnsWarnCreateRequest::OnsWarnCreateRequest() : OnsWarnCreateRequest::~OnsWarnCreateRequest() {} -long OnsWarnCreateRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsWarnCreateRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsWarnCreateRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsWarnCreateResult.cc b/ons/src/model/OnsWarnCreateResult.cc index f6bf26013..3b48152fb 100644 --- a/ons/src/model/OnsWarnCreateResult.cc +++ b/ons/src/model/OnsWarnCreateResult.cc @@ -35,10 +35,13 @@ OnsWarnCreateResult::~OnsWarnCreateResult() void OnsWarnCreateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsWarnDeleteRequest.cc b/ons/src/model/OnsWarnDeleteRequest.cc index eb021c98d..4b2ed2609 100644 --- a/ons/src/model/OnsWarnDeleteRequest.cc +++ b/ons/src/model/OnsWarnDeleteRequest.cc @@ -25,17 +25,6 @@ OnsWarnDeleteRequest::OnsWarnDeleteRequest() : OnsWarnDeleteRequest::~OnsWarnDeleteRequest() {} -long OnsWarnDeleteRequest::getPreventCache()const -{ - return preventCache_; -} - -void OnsWarnDeleteRequest::setPreventCache(long preventCache) -{ - preventCache_ = preventCache; - setCoreParameter("PreventCache", std::to_string(preventCache)); -} - std::string OnsWarnDeleteRequest::getInstanceId()const { return instanceId_; diff --git a/ons/src/model/OnsWarnDeleteResult.cc b/ons/src/model/OnsWarnDeleteResult.cc index 0be9522de..5435c2c53 100644 --- a/ons/src/model/OnsWarnDeleteResult.cc +++ b/ons/src/model/OnsWarnDeleteResult.cc @@ -35,10 +35,13 @@ OnsWarnDeleteResult::~OnsWarnDeleteResult() void OnsWarnDeleteResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/openanalytics/CMakeLists.txt b/openanalytics/CMakeLists.txt index b95d75a17..f9f8b10bf 100644 --- a/openanalytics/CMakeLists.txt +++ b/openanalytics/CMakeLists.txt @@ -29,10 +29,10 @@ set(openanalytics_public_header_model include/alibabacloud/openanalytics/model/DescribeRegionListResult.h include/alibabacloud/openanalytics/model/OpenProductAccountRequest.h include/alibabacloud/openanalytics/model/OpenProductAccountResult.h - include/alibabacloud/openanalytics/model/CloseProductAccountRequest.h - include/alibabacloud/openanalytics/model/CloseProductAccountResult.h include/alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h include/alibabacloud/openanalytics/model/GetEndPointByDomainResult.h + include/alibabacloud/openanalytics/model/CloseProductAccountRequest.h + include/alibabacloud/openanalytics/model/CloseProductAccountResult.h include/alibabacloud/openanalytics/model/GetAllowIPRequest.h include/alibabacloud/openanalytics/model/GetAllowIPResult.h include/alibabacloud/openanalytics/model/GetProductStatusRequest.h @@ -50,10 +50,10 @@ set(openanalytics_src src/model/DescribeRegionListResult.cc src/model/OpenProductAccountRequest.cc src/model/OpenProductAccountResult.cc - src/model/CloseProductAccountRequest.cc - src/model/CloseProductAccountResult.cc src/model/GetEndPointByDomainRequest.cc src/model/GetEndPointByDomainResult.cc + src/model/CloseProductAccountRequest.cc + src/model/CloseProductAccountResult.cc src/model/GetAllowIPRequest.cc src/model/GetAllowIPResult.cc src/model/GetProductStatusRequest.cc diff --git a/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsClient.h b/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsClient.h index 66d527218..d99b0dfbd 100644 --- a/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsClient.h +++ b/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsClient.h @@ -30,10 +30,10 @@ #include "model/DescribeRegionListResult.h" #include "model/OpenProductAccountRequest.h" #include "model/OpenProductAccountResult.h" -#include "model/CloseProductAccountRequest.h" -#include "model/CloseProductAccountResult.h" #include "model/GetEndPointByDomainRequest.h" #include "model/GetEndPointByDomainResult.h" +#include "model/CloseProductAccountRequest.h" +#include "model/CloseProductAccountResult.h" #include "model/GetAllowIPRequest.h" #include "model/GetAllowIPResult.h" #include "model/GetProductStatusRequest.h" @@ -61,12 +61,12 @@ namespace AlibabaCloud typedef Outcome OpenProductAccountOutcome; typedef std::future OpenProductAccountOutcomeCallable; typedef std::function&)> OpenProductAccountAsyncHandler; - typedef Outcome CloseProductAccountOutcome; - typedef std::future CloseProductAccountOutcomeCallable; - typedef std::function&)> CloseProductAccountAsyncHandler; typedef Outcome GetEndPointByDomainOutcome; typedef std::future GetEndPointByDomainOutcomeCallable; typedef std::function&)> GetEndPointByDomainAsyncHandler; + typedef Outcome CloseProductAccountOutcome; + typedef std::future CloseProductAccountOutcomeCallable; + typedef std::function&)> CloseProductAccountAsyncHandler; typedef Outcome GetAllowIPOutcome; typedef std::future GetAllowIPOutcomeCallable; typedef std::function&)> GetAllowIPAsyncHandler; @@ -93,12 +93,12 @@ namespace AlibabaCloud OpenProductAccountOutcome openProductAccount(const Model::OpenProductAccountRequest &request)const; void openProductAccountAsync(const Model::OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenProductAccountOutcomeCallable openProductAccountCallable(const Model::OpenProductAccountRequest& request) const; - CloseProductAccountOutcome closeProductAccount(const Model::CloseProductAccountRequest &request)const; - void closeProductAccountAsync(const Model::CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CloseProductAccountOutcomeCallable closeProductAccountCallable(const Model::CloseProductAccountRequest& request) const; GetEndPointByDomainOutcome getEndPointByDomain(const Model::GetEndPointByDomainRequest &request)const; void getEndPointByDomainAsync(const Model::GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetEndPointByDomainOutcomeCallable getEndPointByDomainCallable(const Model::GetEndPointByDomainRequest& request) const; + CloseProductAccountOutcome closeProductAccount(const Model::CloseProductAccountRequest &request)const; + void closeProductAccountAsync(const Model::CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseProductAccountOutcomeCallable closeProductAccountCallable(const Model::CloseProductAccountRequest& request) const; GetAllowIPOutcome getAllowIP(const Model::GetAllowIPRequest &request)const; void getAllowIPAsync(const Model::GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAllowIPOutcomeCallable getAllowIPCallable(const Model::GetAllowIPRequest& request) const; diff --git a/openanalytics/src/OpenanalyticsClient.cc b/openanalytics/src/OpenanalyticsClient.cc index 7514d07d1..1739e9c2e 100644 --- a/openanalytics/src/OpenanalyticsClient.cc +++ b/openanalytics/src/OpenanalyticsClient.cc @@ -195,42 +195,6 @@ OpenanalyticsClient::OpenProductAccountOutcomeCallable OpenanalyticsClient::open return task->get_future(); } -OpenanalyticsClient::CloseProductAccountOutcome OpenanalyticsClient::closeProductAccount(const CloseProductAccountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CloseProductAccountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CloseProductAccountOutcome(CloseProductAccountResult(outcome.result())); - else - return CloseProductAccountOutcome(outcome.error()); -} - -void OpenanalyticsClient::closeProductAccountAsync(const CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, closeProductAccount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OpenanalyticsClient::CloseProductAccountOutcomeCallable OpenanalyticsClient::closeProductAccountCallable(const CloseProductAccountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->closeProductAccount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OpenanalyticsClient::GetEndPointByDomainOutcome OpenanalyticsClient::getEndPointByDomain(const GetEndPointByDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +231,42 @@ OpenanalyticsClient::GetEndPointByDomainOutcomeCallable OpenanalyticsClient::get return task->get_future(); } +OpenanalyticsClient::CloseProductAccountOutcome OpenanalyticsClient::closeProductAccount(const CloseProductAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseProductAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseProductAccountOutcome(CloseProductAccountResult(outcome.result())); + else + return CloseProductAccountOutcome(outcome.error()); +} + +void OpenanalyticsClient::closeProductAccountAsync(const CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeProductAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::CloseProductAccountOutcomeCallable OpenanalyticsClient::closeProductAccountCallable(const CloseProductAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeProductAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OpenanalyticsClient::GetAllowIPOutcome OpenanalyticsClient::getAllowIP(const GetAllowIPRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/openanalytics/src/model/CloseProductAccountRequest.cc b/openanalytics/src/model/CloseProductAccountRequest.cc index e44dff214..a464355b3 100644 --- a/openanalytics/src/model/CloseProductAccountRequest.cc +++ b/openanalytics/src/model/CloseProductAccountRequest.cc @@ -33,7 +33,7 @@ long CloseProductAccountRequest::getCallerParentId()const void CloseProductAccountRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long CloseProductAccountRequest::getCallerBid()const @@ -44,7 +44,7 @@ long CloseProductAccountRequest::getCallerBid()const void CloseProductAccountRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string CloseProductAccountRequest::getCallerType()const @@ -55,7 +55,7 @@ std::string CloseProductAccountRequest::getCallerType()const void CloseProductAccountRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool CloseProductAccountRequest::getAk_mfa_present()const @@ -66,7 +66,7 @@ bool CloseProductAccountRequest::getAk_mfa_present()const void CloseProductAccountRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string CloseProductAccountRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string CloseProductAccountRequest::getAccessKeyId()const void CloseProductAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool CloseProductAccountRequest::getSecurity_transport()const @@ -88,7 +88,7 @@ bool CloseProductAccountRequest::getSecurity_transport()const void CloseProductAccountRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string CloseProductAccountRequest::getRegionID()const @@ -99,7 +99,7 @@ std::string CloseProductAccountRequest::getRegionID()const void CloseProductAccountRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string CloseProductAccountRequest::getRequestId()const @@ -110,7 +110,7 @@ std::string CloseProductAccountRequest::getRequestId()const void CloseProductAccountRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long CloseProductAccountRequest::getCallerUid()const @@ -121,7 +121,7 @@ long CloseProductAccountRequest::getCallerUid()const void CloseProductAccountRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string CloseProductAccountRequest::getProductCode()const @@ -132,7 +132,7 @@ std::string CloseProductAccountRequest::getProductCode()const void CloseProductAccountRequest::setProductCode(const std::string& productCode) { productCode_ = productCode; - setParameter("ProductCode", productCode); + setCoreParameter("ProductCode", productCode); } std::string CloseProductAccountRequest::getProductAccessKey()const @@ -143,7 +143,7 @@ std::string CloseProductAccountRequest::getProductAccessKey()const void CloseProductAccountRequest::setProductAccessKey(const std::string& productAccessKey) { productAccessKey_ = productAccessKey; - setParameter("ProductAccessKey", productAccessKey); + setCoreParameter("ProductAccessKey", productAccessKey); } std::string CloseProductAccountRequest::getTargetUid()const @@ -154,7 +154,7 @@ std::string CloseProductAccountRequest::getTargetUid()const void CloseProductAccountRequest::setTargetUid(const std::string& targetUid) { targetUid_ = targetUid; - setParameter("TargetUid", targetUid); + setCoreParameter("TargetUid", targetUid); } std::string CloseProductAccountRequest::getTargetArnRole()const @@ -165,6 +165,6 @@ std::string CloseProductAccountRequest::getTargetArnRole()const void CloseProductAccountRequest::setTargetArnRole(const std::string& targetArnRole) { targetArnRole_ = targetArnRole; - setParameter("TargetArnRole", targetArnRole); + setCoreParameter("TargetArnRole", targetArnRole); } diff --git a/openanalytics/src/model/CloseProductAccountResult.cc b/openanalytics/src/model/CloseProductAccountResult.cc index 14f553b94..194ced504 100644 --- a/openanalytics/src/model/CloseProductAccountResult.cc +++ b/openanalytics/src/model/CloseProductAccountResult.cc @@ -35,10 +35,13 @@ CloseProductAccountResult::~CloseProductAccountResult() void CloseProductAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/openanalytics/src/model/DescribeRegionListRequest.cc b/openanalytics/src/model/DescribeRegionListRequest.cc index 3128cda18..524335565 100644 --- a/openanalytics/src/model/DescribeRegionListRequest.cc +++ b/openanalytics/src/model/DescribeRegionListRequest.cc @@ -33,7 +33,7 @@ bool DescribeRegionListRequest::getSecurity_transport()const void DescribeRegionListRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeRegionListRequest::getRequestId()const @@ -44,7 +44,7 @@ std::string DescribeRegionListRequest::getRequestId()const void DescribeRegionListRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long DescribeRegionListRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DescribeRegionListRequest::getCallerParentId()const void DescribeRegionListRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long DescribeRegionListRequest::getCallerBid()const @@ -66,7 +66,7 @@ long DescribeRegionListRequest::getCallerBid()const void DescribeRegionListRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string DescribeRegionListRequest::getCallerType()const @@ -77,7 +77,7 @@ std::string DescribeRegionListRequest::getCallerType()const void DescribeRegionListRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeRegionListRequest::getAk_mfa_present()const @@ -88,7 +88,7 @@ bool DescribeRegionListRequest::getAk_mfa_present()const void DescribeRegionListRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long DescribeRegionListRequest::getCallerUid()const @@ -99,7 +99,7 @@ long DescribeRegionListRequest::getCallerUid()const void DescribeRegionListRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeRegionListRequest::getAccessKeyId()const @@ -110,6 +110,6 @@ std::string DescribeRegionListRequest::getAccessKeyId()const void DescribeRegionListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/openanalytics/src/model/DescribeRegionListResult.cc b/openanalytics/src/model/DescribeRegionListResult.cc index b83b89cda..37fa53052 100644 --- a/openanalytics/src/model/DescribeRegionListResult.cc +++ b/openanalytics/src/model/DescribeRegionListResult.cc @@ -35,10 +35,13 @@ DescribeRegionListResult::~DescribeRegionListResult() void DescribeRegionListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegionList = value["RegionList"]["RegionListItem"]; for (auto value : allRegionList) diff --git a/openanalytics/src/model/GetAllowIPRequest.cc b/openanalytics/src/model/GetAllowIPRequest.cc index ec812cdba..08f3fbb79 100644 --- a/openanalytics/src/model/GetAllowIPRequest.cc +++ b/openanalytics/src/model/GetAllowIPRequest.cc @@ -33,7 +33,7 @@ bool GetAllowIPRequest::getSecurity_transport()const void GetAllowIPRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetAllowIPRequest::getRegionID()const @@ -44,7 +44,7 @@ std::string GetAllowIPRequest::getRegionID()const void GetAllowIPRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string GetAllowIPRequest::getRequestId()const @@ -55,7 +55,7 @@ std::string GetAllowIPRequest::getRequestId()const void GetAllowIPRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long GetAllowIPRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long GetAllowIPRequest::getCallerParentId()const void GetAllowIPRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long GetAllowIPRequest::getCallerBid()const @@ -77,7 +77,7 @@ long GetAllowIPRequest::getCallerBid()const void GetAllowIPRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string GetAllowIPRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string GetAllowIPRequest::getCallerType()const void GetAllowIPRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetAllowIPRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool GetAllowIPRequest::getAk_mfa_present()const void GetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long GetAllowIPRequest::getCallerUid()const @@ -110,7 +110,7 @@ long GetAllowIPRequest::getCallerUid()const void GetAllowIPRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string GetAllowIPRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string GetAllowIPRequest::getAccessKeyId()const void GetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long GetAllowIPRequest::getUserID()const @@ -132,7 +132,7 @@ long GetAllowIPRequest::getUserID()const void GetAllowIPRequest::setUserID(long userID) { userID_ = userID; - setParameter("UserID", std::to_string(userID)); + setCoreParameter("UserID", std::to_string(userID)); } std::string GetAllowIPRequest::getNetworkType()const @@ -143,6 +143,6 @@ std::string GetAllowIPRequest::getNetworkType()const void GetAllowIPRequest::setNetworkType(const std::string& networkType) { networkType_ = networkType; - setParameter("NetworkType", networkType); + setCoreParameter("NetworkType", networkType); } diff --git a/openanalytics/src/model/GetAllowIPResult.cc b/openanalytics/src/model/GetAllowIPResult.cc index 083d6c37f..b4493a468 100644 --- a/openanalytics/src/model/GetAllowIPResult.cc +++ b/openanalytics/src/model/GetAllowIPResult.cc @@ -35,10 +35,13 @@ GetAllowIPResult::~GetAllowIPResult() void GetAllowIPResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/openanalytics/src/model/GetEndPointByDomainRequest.cc b/openanalytics/src/model/GetEndPointByDomainRequest.cc index 685297e81..23dd6f12e 100644 --- a/openanalytics/src/model/GetEndPointByDomainRequest.cc +++ b/openanalytics/src/model/GetEndPointByDomainRequest.cc @@ -33,7 +33,7 @@ bool GetEndPointByDomainRequest::getSecurity_transport()const void GetEndPointByDomainRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetEndPointByDomainRequest::getRegionID()const @@ -44,7 +44,7 @@ std::string GetEndPointByDomainRequest::getRegionID()const void GetEndPointByDomainRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string GetEndPointByDomainRequest::getRequestId()const @@ -55,7 +55,7 @@ std::string GetEndPointByDomainRequest::getRequestId()const void GetEndPointByDomainRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long GetEndPointByDomainRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long GetEndPointByDomainRequest::getCallerParentId()const void GetEndPointByDomainRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long GetEndPointByDomainRequest::getCallerBid()const @@ -77,7 +77,7 @@ long GetEndPointByDomainRequest::getCallerBid()const void GetEndPointByDomainRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string GetEndPointByDomainRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string GetEndPointByDomainRequest::getCallerType()const void GetEndPointByDomainRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetEndPointByDomainRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool GetEndPointByDomainRequest::getAk_mfa_present()const void GetEndPointByDomainRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long GetEndPointByDomainRequest::getCallerUid()const @@ -110,7 +110,7 @@ long GetEndPointByDomainRequest::getCallerUid()const void GetEndPointByDomainRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string GetEndPointByDomainRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string GetEndPointByDomainRequest::getAccessKeyId()const void GetEndPointByDomainRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long GetEndPointByDomainRequest::getUserID()const @@ -132,7 +132,7 @@ long GetEndPointByDomainRequest::getUserID()const void GetEndPointByDomainRequest::setUserID(long userID) { userID_ = userID; - setParameter("UserID", std::to_string(userID)); + setCoreParameter("UserID", std::to_string(userID)); } std::string GetEndPointByDomainRequest::getDomainURL()const @@ -143,6 +143,6 @@ std::string GetEndPointByDomainRequest::getDomainURL()const void GetEndPointByDomainRequest::setDomainURL(const std::string& domainURL) { domainURL_ = domainURL; - setParameter("DomainURL", domainURL); + setCoreParameter("DomainURL", domainURL); } diff --git a/openanalytics/src/model/GetEndPointByDomainResult.cc b/openanalytics/src/model/GetEndPointByDomainResult.cc index 3880c8a0d..b18f324bf 100644 --- a/openanalytics/src/model/GetEndPointByDomainResult.cc +++ b/openanalytics/src/model/GetEndPointByDomainResult.cc @@ -35,10 +35,13 @@ GetEndPointByDomainResult::~GetEndPointByDomainResult() void GetEndPointByDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto endPointInfoNode = value["EndPointInfo"]; if(!endPointInfoNode["endPointID"].isNull()) diff --git a/openanalytics/src/model/GetProductStatusRequest.cc b/openanalytics/src/model/GetProductStatusRequest.cc index 9b65ba587..b540f6932 100644 --- a/openanalytics/src/model/GetProductStatusRequest.cc +++ b/openanalytics/src/model/GetProductStatusRequest.cc @@ -33,7 +33,7 @@ long GetProductStatusRequest::getCallerParentId()const void GetProductStatusRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long GetProductStatusRequest::getCallerBid()const @@ -44,7 +44,7 @@ long GetProductStatusRequest::getCallerBid()const void GetProductStatusRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string GetProductStatusRequest::getCallerType()const @@ -55,7 +55,7 @@ std::string GetProductStatusRequest::getCallerType()const void GetProductStatusRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetProductStatusRequest::getAk_mfa_present()const @@ -66,7 +66,7 @@ bool GetProductStatusRequest::getAk_mfa_present()const void GetProductStatusRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string GetProductStatusRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string GetProductStatusRequest::getAccessKeyId()const void GetProductStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool GetProductStatusRequest::getSecurity_transport()const @@ -88,7 +88,7 @@ bool GetProductStatusRequest::getSecurity_transport()const void GetProductStatusRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetProductStatusRequest::getRegionID()const @@ -99,7 +99,7 @@ std::string GetProductStatusRequest::getRegionID()const void GetProductStatusRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string GetProductStatusRequest::getRequestId()const @@ -110,7 +110,7 @@ std::string GetProductStatusRequest::getRequestId()const void GetProductStatusRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long GetProductStatusRequest::getCallerUid()const @@ -121,7 +121,7 @@ long GetProductStatusRequest::getCallerUid()const void GetProductStatusRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string GetProductStatusRequest::getProductCode()const @@ -132,7 +132,7 @@ std::string GetProductStatusRequest::getProductCode()const void GetProductStatusRequest::setProductCode(const std::string& productCode) { productCode_ = productCode; - setParameter("ProductCode", productCode); + setCoreParameter("ProductCode", productCode); } std::string GetProductStatusRequest::getProductAccessKey()const @@ -143,7 +143,7 @@ std::string GetProductStatusRequest::getProductAccessKey()const void GetProductStatusRequest::setProductAccessKey(const std::string& productAccessKey) { productAccessKey_ = productAccessKey; - setParameter("ProductAccessKey", productAccessKey); + setCoreParameter("ProductAccessKey", productAccessKey); } std::string GetProductStatusRequest::getTargetUid()const @@ -154,7 +154,7 @@ std::string GetProductStatusRequest::getTargetUid()const void GetProductStatusRequest::setTargetUid(const std::string& targetUid) { targetUid_ = targetUid; - setParameter("TargetUid", targetUid); + setCoreParameter("TargetUid", targetUid); } std::string GetProductStatusRequest::getTargetArnRole()const @@ -165,6 +165,6 @@ std::string GetProductStatusRequest::getTargetArnRole()const void GetProductStatusRequest::setTargetArnRole(const std::string& targetArnRole) { targetArnRole_ = targetArnRole; - setParameter("TargetArnRole", targetArnRole); + setCoreParameter("TargetArnRole", targetArnRole); } diff --git a/openanalytics/src/model/GetProductStatusResult.cc b/openanalytics/src/model/GetProductStatusResult.cc index 022bf947d..d0b3b5750 100644 --- a/openanalytics/src/model/GetProductStatusResult.cc +++ b/openanalytics/src/model/GetProductStatusResult.cc @@ -35,10 +35,13 @@ GetProductStatusResult::~GetProductStatusResult() void GetProductStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/openanalytics/src/model/GetRegionStatusRequest.cc b/openanalytics/src/model/GetRegionStatusRequest.cc index 036311cd2..4aea2623e 100644 --- a/openanalytics/src/model/GetRegionStatusRequest.cc +++ b/openanalytics/src/model/GetRegionStatusRequest.cc @@ -33,7 +33,7 @@ bool GetRegionStatusRequest::getSecurity_transport()const void GetRegionStatusRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetRegionStatusRequest::getRegionID()const @@ -44,7 +44,7 @@ std::string GetRegionStatusRequest::getRegionID()const void GetRegionStatusRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string GetRegionStatusRequest::getRequestId()const @@ -55,7 +55,7 @@ std::string GetRegionStatusRequest::getRequestId()const void GetRegionStatusRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long GetRegionStatusRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long GetRegionStatusRequest::getCallerParentId()const void GetRegionStatusRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long GetRegionStatusRequest::getCallerBid()const @@ -77,7 +77,7 @@ long GetRegionStatusRequest::getCallerBid()const void GetRegionStatusRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string GetRegionStatusRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string GetRegionStatusRequest::getCallerType()const void GetRegionStatusRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetRegionStatusRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool GetRegionStatusRequest::getAk_mfa_present()const void GetRegionStatusRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long GetRegionStatusRequest::getCallerUid()const @@ -110,7 +110,7 @@ long GetRegionStatusRequest::getCallerUid()const void GetRegionStatusRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string GetRegionStatusRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string GetRegionStatusRequest::getAccessKeyId()const void GetRegionStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long GetRegionStatusRequest::getTargetUid()const @@ -132,6 +132,6 @@ long GetRegionStatusRequest::getTargetUid()const void GetRegionStatusRequest::setTargetUid(long targetUid) { targetUid_ = targetUid; - setParameter("TargetUid", std::to_string(targetUid)); + setCoreParameter("TargetUid", std::to_string(targetUid)); } diff --git a/openanalytics/src/model/GetRegionStatusResult.cc b/openanalytics/src/model/GetRegionStatusResult.cc index 45df2cc8f..5eb2e91d1 100644 --- a/openanalytics/src/model/GetRegionStatusResult.cc +++ b/openanalytics/src/model/GetRegionStatusResult.cc @@ -35,10 +35,13 @@ GetRegionStatusResult::~GetRegionStatusResult() void GetRegionStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/openanalytics/src/model/OpenProductAccountRequest.cc b/openanalytics/src/model/OpenProductAccountRequest.cc index f3b121f2f..a323e3d08 100644 --- a/openanalytics/src/model/OpenProductAccountRequest.cc +++ b/openanalytics/src/model/OpenProductAccountRequest.cc @@ -33,7 +33,7 @@ long OpenProductAccountRequest::getCallerParentId()const void OpenProductAccountRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long OpenProductAccountRequest::getCallerBid()const @@ -44,7 +44,7 @@ long OpenProductAccountRequest::getCallerBid()const void OpenProductAccountRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string OpenProductAccountRequest::getCallerType()const @@ -55,7 +55,7 @@ std::string OpenProductAccountRequest::getCallerType()const void OpenProductAccountRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool OpenProductAccountRequest::getAk_mfa_present()const @@ -66,7 +66,7 @@ bool OpenProductAccountRequest::getAk_mfa_present()const void OpenProductAccountRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string OpenProductAccountRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string OpenProductAccountRequest::getAccessKeyId()const void OpenProductAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool OpenProductAccountRequest::getSecurity_transport()const @@ -88,7 +88,7 @@ bool OpenProductAccountRequest::getSecurity_transport()const void OpenProductAccountRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string OpenProductAccountRequest::getRegionID()const @@ -99,7 +99,7 @@ std::string OpenProductAccountRequest::getRegionID()const void OpenProductAccountRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string OpenProductAccountRequest::getRequestId()const @@ -110,7 +110,7 @@ std::string OpenProductAccountRequest::getRequestId()const void OpenProductAccountRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long OpenProductAccountRequest::getCallerUid()const @@ -121,7 +121,7 @@ long OpenProductAccountRequest::getCallerUid()const void OpenProductAccountRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string OpenProductAccountRequest::getProductCode()const @@ -132,7 +132,7 @@ std::string OpenProductAccountRequest::getProductCode()const void OpenProductAccountRequest::setProductCode(const std::string& productCode) { productCode_ = productCode; - setParameter("ProductCode", productCode); + setCoreParameter("ProductCode", productCode); } std::string OpenProductAccountRequest::getProductAccessKey()const @@ -143,7 +143,7 @@ std::string OpenProductAccountRequest::getProductAccessKey()const void OpenProductAccountRequest::setProductAccessKey(const std::string& productAccessKey) { productAccessKey_ = productAccessKey; - setParameter("ProductAccessKey", productAccessKey); + setCoreParameter("ProductAccessKey", productAccessKey); } std::string OpenProductAccountRequest::getTargetUid()const @@ -154,7 +154,7 @@ std::string OpenProductAccountRequest::getTargetUid()const void OpenProductAccountRequest::setTargetUid(const std::string& targetUid) { targetUid_ = targetUid; - setParameter("TargetUid", targetUid); + setCoreParameter("TargetUid", targetUid); } std::string OpenProductAccountRequest::getTargetArnRole()const @@ -165,6 +165,6 @@ std::string OpenProductAccountRequest::getTargetArnRole()const void OpenProductAccountRequest::setTargetArnRole(const std::string& targetArnRole) { targetArnRole_ = targetArnRole; - setParameter("TargetArnRole", targetArnRole); + setCoreParameter("TargetArnRole", targetArnRole); } diff --git a/openanalytics/src/model/OpenProductAccountResult.cc b/openanalytics/src/model/OpenProductAccountResult.cc index 46320289d..5ee127af0 100644 --- a/openanalytics/src/model/OpenProductAccountResult.cc +++ b/openanalytics/src/model/OpenProductAccountResult.cc @@ -35,10 +35,13 @@ OpenProductAccountResult::~OpenProductAccountResult() void OpenProductAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/openanalytics/src/model/QueryEndPointListRequest.cc b/openanalytics/src/model/QueryEndPointListRequest.cc index 86737f1a7..3ca0ed116 100644 --- a/openanalytics/src/model/QueryEndPointListRequest.cc +++ b/openanalytics/src/model/QueryEndPointListRequest.cc @@ -33,7 +33,7 @@ bool QueryEndPointListRequest::getSecurity_transport()const void QueryEndPointListRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string QueryEndPointListRequest::getRegionID()const @@ -44,7 +44,7 @@ std::string QueryEndPointListRequest::getRegionID()const void QueryEndPointListRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string QueryEndPointListRequest::getRequestId()const @@ -55,7 +55,7 @@ std::string QueryEndPointListRequest::getRequestId()const void QueryEndPointListRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long QueryEndPointListRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long QueryEndPointListRequest::getCallerParentId()const void QueryEndPointListRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long QueryEndPointListRequest::getCallerBid()const @@ -77,7 +77,7 @@ long QueryEndPointListRequest::getCallerBid()const void QueryEndPointListRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string QueryEndPointListRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string QueryEndPointListRequest::getCallerType()const void QueryEndPointListRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool QueryEndPointListRequest::getAk_mfa_present()const @@ -99,7 +99,7 @@ bool QueryEndPointListRequest::getAk_mfa_present()const void QueryEndPointListRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } long QueryEndPointListRequest::getCallerUid()const @@ -110,7 +110,7 @@ long QueryEndPointListRequest::getCallerUid()const void QueryEndPointListRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string QueryEndPointListRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string QueryEndPointListRequest::getAccessKeyId()const void QueryEndPointListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } long QueryEndPointListRequest::getUserID()const @@ -132,6 +132,6 @@ long QueryEndPointListRequest::getUserID()const void QueryEndPointListRequest::setUserID(long userID) { userID_ = userID; - setParameter("UserID", std::to_string(userID)); + setCoreParameter("UserID", std::to_string(userID)); } diff --git a/openanalytics/src/model/QueryEndPointListResult.cc b/openanalytics/src/model/QueryEndPointListResult.cc index 93d5f11c9..5310df757 100644 --- a/openanalytics/src/model/QueryEndPointListResult.cc +++ b/openanalytics/src/model/QueryEndPointListResult.cc @@ -35,10 +35,13 @@ QueryEndPointListResult::~QueryEndPointListResult() void QueryEndPointListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEndPointList = value["EndPointList"]["EndPointListItem"]; for (auto value : allEndPointList) diff --git a/openanalytics/src/model/SetAllowIPRequest.cc b/openanalytics/src/model/SetAllowIPRequest.cc index 77e6f814d..05e149960 100644 --- a/openanalytics/src/model/SetAllowIPRequest.cc +++ b/openanalytics/src/model/SetAllowIPRequest.cc @@ -33,7 +33,7 @@ long SetAllowIPRequest::getCallerParentId()const void SetAllowIPRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } long SetAllowIPRequest::getCallerBid()const @@ -44,7 +44,7 @@ long SetAllowIPRequest::getCallerBid()const void SetAllowIPRequest::setCallerBid(long callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", std::to_string(callerBid)); + setCoreParameter("CallerBid", std::to_string(callerBid)); } std::string SetAllowIPRequest::getCallerType()const @@ -55,7 +55,7 @@ std::string SetAllowIPRequest::getCallerType()const void SetAllowIPRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool SetAllowIPRequest::getAk_mfa_present()const @@ -66,7 +66,7 @@ bool SetAllowIPRequest::getAk_mfa_present()const void SetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string SetAllowIPRequest::getAccessKeyId()const @@ -77,7 +77,7 @@ std::string SetAllowIPRequest::getAccessKeyId()const void SetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool SetAllowIPRequest::getSecurity_transport()const @@ -88,7 +88,7 @@ bool SetAllowIPRequest::getSecurity_transport()const void SetAllowIPRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string SetAllowIPRequest::getRegionID()const @@ -99,7 +99,7 @@ std::string SetAllowIPRequest::getRegionID()const void SetAllowIPRequest::setRegionID(const std::string& regionID) { regionID_ = regionID; - setParameter("RegionID", regionID); + setCoreParameter("RegionID", regionID); } std::string SetAllowIPRequest::getRequestId()const @@ -110,7 +110,7 @@ std::string SetAllowIPRequest::getRequestId()const void SetAllowIPRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long SetAllowIPRequest::getCallerUid()const @@ -121,7 +121,7 @@ long SetAllowIPRequest::getCallerUid()const void SetAllowIPRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } long SetAllowIPRequest::getUserID()const @@ -132,7 +132,7 @@ long SetAllowIPRequest::getUserID()const void SetAllowIPRequest::setUserID(long userID) { userID_ = userID; - setParameter("UserID", std::to_string(userID)); + setCoreParameter("UserID", std::to_string(userID)); } std::string SetAllowIPRequest::getNetworkType()const @@ -143,7 +143,7 @@ std::string SetAllowIPRequest::getNetworkType()const void SetAllowIPRequest::setNetworkType(const std::string& networkType) { networkType_ = networkType; - setParameter("NetworkType", networkType); + setCoreParameter("NetworkType", networkType); } std::string SetAllowIPRequest::getAllowIP()const @@ -154,7 +154,7 @@ std::string SetAllowIPRequest::getAllowIP()const void SetAllowIPRequest::setAllowIP(const std::string& allowIP) { allowIP_ = allowIP; - setParameter("AllowIP", allowIP); + setCoreParameter("AllowIP", allowIP); } bool SetAllowIPRequest::getAppend()const @@ -165,6 +165,6 @@ bool SetAllowIPRequest::getAppend()const void SetAllowIPRequest::setAppend(bool append) { append_ = append; - setParameter("Append", std::to_string(append)); + setCoreParameter("Append", append ? "true" : "false"); } diff --git a/openanalytics/src/model/SetAllowIPResult.cc b/openanalytics/src/model/SetAllowIPResult.cc index 50ac4e25e..f17db6ea8 100644 --- a/openanalytics/src/model/SetAllowIPResult.cc +++ b/openanalytics/src/model/SetAllowIPResult.cc @@ -35,10 +35,13 @@ SetAllowIPResult::~SetAllowIPResult() void SetAllowIPResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/ots/CMakeLists.txt b/ots/CMakeLists.txt index 792735164..200e03a4b 100644 --- a/ots/CMakeLists.txt +++ b/ots/CMakeLists.txt @@ -21,10 +21,10 @@ set(ots_public_header include/alibabacloud/ots/OtsExport.h ) set(ots_public_header_model - include/alibabacloud/ots/model/UnbindInstance2VpcRequest.h - include/alibabacloud/ots/model/UnbindInstance2VpcResult.h include/alibabacloud/ots/model/ListClusterTypeRequest.h include/alibabacloud/ots/model/ListClusterTypeResult.h + include/alibabacloud/ots/model/UnbindInstance2VpcRequest.h + include/alibabacloud/ots/model/UnbindInstance2VpcResult.h include/alibabacloud/ots/model/UpdateInstanceRequest.h include/alibabacloud/ots/model/UpdateInstanceResult.h include/alibabacloud/ots/model/ListInstanceRequest.h @@ -39,10 +39,10 @@ set(ots_public_header_model include/alibabacloud/ots/model/InsertInstanceResult.h include/alibabacloud/ots/model/ListTagsRequest.h include/alibabacloud/ots/model/ListTagsResult.h - include/alibabacloud/ots/model/InsertTagsRequest.h - include/alibabacloud/ots/model/InsertTagsResult.h include/alibabacloud/ots/model/ListVpcInfoByInstanceRequest.h include/alibabacloud/ots/model/ListVpcInfoByInstanceResult.h + include/alibabacloud/ots/model/InsertTagsRequest.h + include/alibabacloud/ots/model/InsertTagsResult.h include/alibabacloud/ots/model/DeleteTagsRequest.h include/alibabacloud/ots/model/DeleteTagsResult.h include/alibabacloud/ots/model/DeleteInstanceRequest.h @@ -50,10 +50,10 @@ set(ots_public_header_model set(ots_src src/OtsClient.cc - src/model/UnbindInstance2VpcRequest.cc - src/model/UnbindInstance2VpcResult.cc src/model/ListClusterTypeRequest.cc src/model/ListClusterTypeResult.cc + src/model/UnbindInstance2VpcRequest.cc + src/model/UnbindInstance2VpcResult.cc src/model/UpdateInstanceRequest.cc src/model/UpdateInstanceResult.cc src/model/ListInstanceRequest.cc @@ -68,10 +68,10 @@ set(ots_src src/model/InsertInstanceResult.cc src/model/ListTagsRequest.cc src/model/ListTagsResult.cc - src/model/InsertTagsRequest.cc - src/model/InsertTagsResult.cc src/model/ListVpcInfoByInstanceRequest.cc src/model/ListVpcInfoByInstanceResult.cc + src/model/InsertTagsRequest.cc + src/model/InsertTagsResult.cc src/model/DeleteTagsRequest.cc src/model/DeleteTagsResult.cc src/model/DeleteInstanceRequest.cc diff --git a/ots/include/alibabacloud/ots/OtsClient.h b/ots/include/alibabacloud/ots/OtsClient.h index a51c41647..48e02e528 100644 --- a/ots/include/alibabacloud/ots/OtsClient.h +++ b/ots/include/alibabacloud/ots/OtsClient.h @@ -22,10 +22,10 @@ #include #include #include "OtsExport.h" -#include "model/UnbindInstance2VpcRequest.h" -#include "model/UnbindInstance2VpcResult.h" #include "model/ListClusterTypeRequest.h" #include "model/ListClusterTypeResult.h" +#include "model/UnbindInstance2VpcRequest.h" +#include "model/UnbindInstance2VpcResult.h" #include "model/UpdateInstanceRequest.h" #include "model/UpdateInstanceResult.h" #include "model/ListInstanceRequest.h" @@ -40,10 +40,10 @@ #include "model/InsertInstanceResult.h" #include "model/ListTagsRequest.h" #include "model/ListTagsResult.h" -#include "model/InsertTagsRequest.h" -#include "model/InsertTagsResult.h" #include "model/ListVpcInfoByInstanceRequest.h" #include "model/ListVpcInfoByInstanceResult.h" +#include "model/InsertTagsRequest.h" +#include "model/InsertTagsResult.h" #include "model/DeleteTagsRequest.h" #include "model/DeleteTagsResult.h" #include "model/DeleteInstanceRequest.h" @@ -57,12 +57,12 @@ namespace AlibabaCloud class ALIBABACLOUD_OTS_EXPORT OtsClient : public RpcServiceClient { public: - typedef Outcome UnbindInstance2VpcOutcome; - typedef std::future UnbindInstance2VpcOutcomeCallable; - typedef std::function&)> UnbindInstance2VpcAsyncHandler; typedef Outcome ListClusterTypeOutcome; typedef std::future ListClusterTypeOutcomeCallable; typedef std::function&)> ListClusterTypeAsyncHandler; + typedef Outcome UnbindInstance2VpcOutcome; + typedef std::future UnbindInstance2VpcOutcomeCallable; + typedef std::function&)> UnbindInstance2VpcAsyncHandler; typedef Outcome UpdateInstanceOutcome; typedef std::future UpdateInstanceOutcomeCallable; typedef std::function&)> UpdateInstanceAsyncHandler; @@ -84,12 +84,12 @@ namespace AlibabaCloud typedef Outcome ListTagsOutcome; typedef std::future ListTagsOutcomeCallable; typedef std::function&)> ListTagsAsyncHandler; - typedef Outcome InsertTagsOutcome; - typedef std::future InsertTagsOutcomeCallable; - typedef std::function&)> InsertTagsAsyncHandler; typedef Outcome ListVpcInfoByInstanceOutcome; typedef std::future ListVpcInfoByInstanceOutcomeCallable; typedef std::function&)> ListVpcInfoByInstanceAsyncHandler; + typedef Outcome InsertTagsOutcome; + typedef std::future InsertTagsOutcomeCallable; + typedef std::function&)> InsertTagsAsyncHandler; typedef Outcome DeleteTagsOutcome; typedef std::future DeleteTagsOutcomeCallable; typedef std::function&)> DeleteTagsAsyncHandler; @@ -101,12 +101,12 @@ namespace AlibabaCloud OtsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); OtsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~OtsClient(); - UnbindInstance2VpcOutcome unbindInstance2Vpc(const Model::UnbindInstance2VpcRequest &request)const; - void unbindInstance2VpcAsync(const Model::UnbindInstance2VpcRequest& request, const UnbindInstance2VpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnbindInstance2VpcOutcomeCallable unbindInstance2VpcCallable(const Model::UnbindInstance2VpcRequest& request) const; ListClusterTypeOutcome listClusterType(const Model::ListClusterTypeRequest &request)const; void listClusterTypeAsync(const Model::ListClusterTypeRequest& request, const ListClusterTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterTypeOutcomeCallable listClusterTypeCallable(const Model::ListClusterTypeRequest& request) const; + UnbindInstance2VpcOutcome unbindInstance2Vpc(const Model::UnbindInstance2VpcRequest &request)const; + void unbindInstance2VpcAsync(const Model::UnbindInstance2VpcRequest& request, const UnbindInstance2VpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindInstance2VpcOutcomeCallable unbindInstance2VpcCallable(const Model::UnbindInstance2VpcRequest& request) const; UpdateInstanceOutcome updateInstance(const Model::UpdateInstanceRequest &request)const; void updateInstanceAsync(const Model::UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateInstanceOutcomeCallable updateInstanceCallable(const Model::UpdateInstanceRequest& request) const; @@ -128,12 +128,12 @@ namespace AlibabaCloud ListTagsOutcome listTags(const Model::ListTagsRequest &request)const; void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const; - InsertTagsOutcome insertTags(const Model::InsertTagsRequest &request)const; - void insertTagsAsync(const Model::InsertTagsRequest& request, const InsertTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InsertTagsOutcomeCallable insertTagsCallable(const Model::InsertTagsRequest& request) const; ListVpcInfoByInstanceOutcome listVpcInfoByInstance(const Model::ListVpcInfoByInstanceRequest &request)const; void listVpcInfoByInstanceAsync(const Model::ListVpcInfoByInstanceRequest& request, const ListVpcInfoByInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVpcInfoByInstanceOutcomeCallable listVpcInfoByInstanceCallable(const Model::ListVpcInfoByInstanceRequest& request) const; + InsertTagsOutcome insertTags(const Model::InsertTagsRequest &request)const; + void insertTagsAsync(const Model::InsertTagsRequest& request, const InsertTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InsertTagsOutcomeCallable insertTagsCallable(const Model::InsertTagsRequest& request) const; DeleteTagsOutcome deleteTags(const Model::DeleteTagsRequest &request)const; void deleteTagsAsync(const Model::DeleteTagsRequest& request, const DeleteTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTagsOutcomeCallable deleteTagsCallable(const Model::DeleteTagsRequest& request) const; diff --git a/ots/src/OtsClient.cc b/ots/src/OtsClient.cc index 542528d35..869a98ebc 100644 --- a/ots/src/OtsClient.cc +++ b/ots/src/OtsClient.cc @@ -51,42 +51,6 @@ OtsClient::OtsClient(const std::string & accessKeyId, const std::string & access OtsClient::~OtsClient() {} -OtsClient::UnbindInstance2VpcOutcome OtsClient::unbindInstance2Vpc(const UnbindInstance2VpcRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnbindInstance2VpcOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnbindInstance2VpcOutcome(UnbindInstance2VpcResult(outcome.result())); - else - return UnbindInstance2VpcOutcome(outcome.error()); -} - -void OtsClient::unbindInstance2VpcAsync(const UnbindInstance2VpcRequest& request, const UnbindInstance2VpcAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unbindInstance2Vpc(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OtsClient::UnbindInstance2VpcOutcomeCallable OtsClient::unbindInstance2VpcCallable(const UnbindInstance2VpcRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unbindInstance2Vpc(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OtsClient::ListClusterTypeOutcome OtsClient::listClusterType(const ListClusterTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +87,42 @@ OtsClient::ListClusterTypeOutcomeCallable OtsClient::listClusterTypeCallable(con return task->get_future(); } +OtsClient::UnbindInstance2VpcOutcome OtsClient::unbindInstance2Vpc(const UnbindInstance2VpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindInstance2VpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindInstance2VpcOutcome(UnbindInstance2VpcResult(outcome.result())); + else + return UnbindInstance2VpcOutcome(outcome.error()); +} + +void OtsClient::unbindInstance2VpcAsync(const UnbindInstance2VpcRequest& request, const UnbindInstance2VpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindInstance2Vpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OtsClient::UnbindInstance2VpcOutcomeCallable OtsClient::unbindInstance2VpcCallable(const UnbindInstance2VpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindInstance2Vpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OtsClient::UpdateInstanceOutcome OtsClient::updateInstance(const UpdateInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,42 +375,6 @@ OtsClient::ListTagsOutcomeCallable OtsClient::listTagsCallable(const ListTagsReq return task->get_future(); } -OtsClient::InsertTagsOutcome OtsClient::insertTags(const InsertTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InsertTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InsertTagsOutcome(InsertTagsResult(outcome.result())); - else - return InsertTagsOutcome(outcome.error()); -} - -void OtsClient::insertTagsAsync(const InsertTagsRequest& request, const InsertTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, insertTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OtsClient::InsertTagsOutcomeCallable OtsClient::insertTagsCallable(const InsertTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->insertTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OtsClient::ListVpcInfoByInstanceOutcome OtsClient::listVpcInfoByInstance(const ListVpcInfoByInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +411,42 @@ OtsClient::ListVpcInfoByInstanceOutcomeCallable OtsClient::listVpcInfoByInstance return task->get_future(); } +OtsClient::InsertTagsOutcome OtsClient::insertTags(const InsertTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InsertTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InsertTagsOutcome(InsertTagsResult(outcome.result())); + else + return InsertTagsOutcome(outcome.error()); +} + +void OtsClient::insertTagsAsync(const InsertTagsRequest& request, const InsertTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, insertTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OtsClient::InsertTagsOutcomeCallable OtsClient::insertTagsCallable(const InsertTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->insertTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OtsClient::DeleteTagsOutcome OtsClient::deleteTags(const DeleteTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ots/src/model/BindInstance2VpcRequest.cc b/ots/src/model/BindInstance2VpcRequest.cc index 3d720880a..aa6a6132c 100644 --- a/ots/src/model/BindInstance2VpcRequest.cc +++ b/ots/src/model/BindInstance2VpcRequest.cc @@ -33,7 +33,7 @@ std::string BindInstance2VpcRequest::getAccess_key_id()const void BindInstance2VpcRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string BindInstance2VpcRequest::getInstanceVpcName()const @@ -44,7 +44,7 @@ std::string BindInstance2VpcRequest::getInstanceVpcName()const void BindInstance2VpcRequest::setInstanceVpcName(const std::string& instanceVpcName) { instanceVpcName_ = instanceVpcName; - setParameter("InstanceVpcName", instanceVpcName); + setCoreParameter("InstanceVpcName", instanceVpcName); } long BindInstance2VpcRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long BindInstance2VpcRequest::getResourceOwnerId()const void BindInstance2VpcRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BindInstance2VpcRequest::getInstanceName()const @@ -66,7 +66,7 @@ std::string BindInstance2VpcRequest::getInstanceName()const void BindInstance2VpcRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } std::string BindInstance2VpcRequest::getVpcId()const @@ -77,7 +77,7 @@ std::string BindInstance2VpcRequest::getVpcId()const void BindInstance2VpcRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string BindInstance2VpcRequest::getVirtualSwitchId()const @@ -88,7 +88,7 @@ std::string BindInstance2VpcRequest::getVirtualSwitchId()const void BindInstance2VpcRequest::setVirtualSwitchId(const std::string& virtualSwitchId) { virtualSwitchId_ = virtualSwitchId; - setParameter("VirtualSwitchId", virtualSwitchId); + setCoreParameter("VirtualSwitchId", virtualSwitchId); } std::string BindInstance2VpcRequest::getRegionNo()const @@ -99,7 +99,7 @@ std::string BindInstance2VpcRequest::getRegionNo()const void BindInstance2VpcRequest::setRegionNo(const std::string& regionNo) { regionNo_ = regionNo; - setParameter("RegionNo", regionNo); + setCoreParameter("RegionNo", regionNo); } std::string BindInstance2VpcRequest::getNetwork()const @@ -110,6 +110,6 @@ std::string BindInstance2VpcRequest::getNetwork()const void BindInstance2VpcRequest::setNetwork(const std::string& network) { network_ = network; - setParameter("Network", network); + setCoreParameter("Network", network); } diff --git a/ots/src/model/BindInstance2VpcResult.cc b/ots/src/model/BindInstance2VpcResult.cc index 26d49e9ef..cb470e45c 100644 --- a/ots/src/model/BindInstance2VpcResult.cc +++ b/ots/src/model/BindInstance2VpcResult.cc @@ -35,10 +35,13 @@ BindInstance2VpcResult::~BindInstance2VpcResult() void BindInstance2VpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Endpoint"].isNull()) endpoint_ = value["Endpoint"].asString(); diff --git a/ots/src/model/DeleteInstanceRequest.cc b/ots/src/model/DeleteInstanceRequest.cc index c548d266e..ad249239f 100644 --- a/ots/src/model/DeleteInstanceRequest.cc +++ b/ots/src/model/DeleteInstanceRequest.cc @@ -33,7 +33,7 @@ std::string DeleteInstanceRequest::getAccess_key_id()const void DeleteInstanceRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteInstanceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteInstanceRequest::getResourceOwnerId()const void DeleteInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteInstanceRequest::getInstanceName()const @@ -55,6 +55,6 @@ std::string DeleteInstanceRequest::getInstanceName()const void DeleteInstanceRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } diff --git a/ots/src/model/DeleteInstanceResult.cc b/ots/src/model/DeleteInstanceResult.cc index 86e45ddcd..0beddcede 100644 --- a/ots/src/model/DeleteInstanceResult.cc +++ b/ots/src/model/DeleteInstanceResult.cc @@ -35,10 +35,13 @@ DeleteInstanceResult::~DeleteInstanceResult() void DeleteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ots/src/model/DeleteTagsRequest.cc b/ots/src/model/DeleteTagsRequest.cc index 454c44007..02d26fbfc 100644 --- a/ots/src/model/DeleteTagsRequest.cc +++ b/ots/src/model/DeleteTagsRequest.cc @@ -33,7 +33,7 @@ std::string DeleteTagsRequest::getAccess_key_id()const void DeleteTagsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteTagsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteTagsRequest::getResourceOwnerId()const void DeleteTagsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteTagsRequest::getInstanceName()const @@ -55,7 +55,7 @@ std::string DeleteTagsRequest::getInstanceName()const void DeleteTagsRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } std::vector DeleteTagsRequest::getTagInfo()const @@ -70,8 +70,8 @@ void DeleteTagsRequest::setTagInfo(const std::vector& tagInfo) for(int i = 0; i!= tagInfo.size(); i++) { auto obj = tagInfo.at(i); std::string str ="TagInfo."+ std::to_string(i); - setParameter(str + ".TagValue", obj.tagValue); - setParameter(str + ".TagKey", obj.tagKey); + setCoreParameter(str + ".TagValue", obj.tagValue); + setCoreParameter(str + ".TagKey", obj.tagKey); } } diff --git a/ots/src/model/DeleteTagsResult.cc b/ots/src/model/DeleteTagsResult.cc index c41c18540..4bef1a22e 100644 --- a/ots/src/model/DeleteTagsResult.cc +++ b/ots/src/model/DeleteTagsResult.cc @@ -35,10 +35,13 @@ DeleteTagsResult::~DeleteTagsResult() void DeleteTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ots/src/model/GetInstanceRequest.cc b/ots/src/model/GetInstanceRequest.cc index 61482848c..1ca8cfd17 100644 --- a/ots/src/model/GetInstanceRequest.cc +++ b/ots/src/model/GetInstanceRequest.cc @@ -33,7 +33,7 @@ std::string GetInstanceRequest::getAccess_key_id()const void GetInstanceRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long GetInstanceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long GetInstanceRequest::getResourceOwnerId()const void GetInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GetInstanceRequest::getInstanceName()const @@ -55,6 +55,6 @@ std::string GetInstanceRequest::getInstanceName()const void GetInstanceRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } diff --git a/ots/src/model/GetInstanceResult.cc b/ots/src/model/GetInstanceResult.cc index b2143f71d..e4e53c0fa 100644 --- a/ots/src/model/GetInstanceResult.cc +++ b/ots/src/model/GetInstanceResult.cc @@ -35,10 +35,13 @@ GetInstanceResult::~GetInstanceResult() void GetInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto instanceInfoNode = value["InstanceInfo"]; if(!instanceInfoNode["InstanceName"].isNull()) diff --git a/ots/src/model/InsertInstanceRequest.cc b/ots/src/model/InsertInstanceRequest.cc index af2425b3e..26d6f0fed 100644 --- a/ots/src/model/InsertInstanceRequest.cc +++ b/ots/src/model/InsertInstanceRequest.cc @@ -33,7 +33,7 @@ std::string InsertInstanceRequest::getAccess_key_id()const void InsertInstanceRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string InsertInstanceRequest::getClusterType()const @@ -44,7 +44,7 @@ std::string InsertInstanceRequest::getClusterType()const void InsertInstanceRequest::setClusterType(const std::string& clusterType) { clusterType_ = clusterType; - setParameter("ClusterType", clusterType); + setCoreParameter("ClusterType", clusterType); } long InsertInstanceRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long InsertInstanceRequest::getResourceOwnerId()const void InsertInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string InsertInstanceRequest::getInstanceName()const @@ -66,7 +66,7 @@ std::string InsertInstanceRequest::getInstanceName()const void InsertInstanceRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } std::string InsertInstanceRequest::getDescription()const @@ -77,7 +77,7 @@ std::string InsertInstanceRequest::getDescription()const void InsertInstanceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::vector InsertInstanceRequest::getTagInfo()const @@ -92,8 +92,8 @@ void InsertInstanceRequest::setTagInfo(const std::vector& tagInfo) for(int i = 0; i!= tagInfo.size(); i++) { auto obj = tagInfo.at(i); std::string str ="TagInfo."+ std::to_string(i); - setParameter(str + ".TagValue", obj.tagValue); - setParameter(str + ".TagKey", obj.tagKey); + setCoreParameter(str + ".TagValue", obj.tagValue); + setCoreParameter(str + ".TagKey", obj.tagKey); } } @@ -105,6 +105,6 @@ std::string InsertInstanceRequest::getNetwork()const void InsertInstanceRequest::setNetwork(const std::string& network) { network_ = network; - setParameter("Network", network); + setCoreParameter("Network", network); } diff --git a/ots/src/model/InsertInstanceResult.cc b/ots/src/model/InsertInstanceResult.cc index e0a34cafc..e07d86c7b 100644 --- a/ots/src/model/InsertInstanceResult.cc +++ b/ots/src/model/InsertInstanceResult.cc @@ -35,10 +35,13 @@ InsertInstanceResult::~InsertInstanceResult() void InsertInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ots/src/model/InsertTagsRequest.cc b/ots/src/model/InsertTagsRequest.cc index c16dc00b8..84e61c188 100644 --- a/ots/src/model/InsertTagsRequest.cc +++ b/ots/src/model/InsertTagsRequest.cc @@ -33,7 +33,7 @@ std::string InsertTagsRequest::getAccess_key_id()const void InsertTagsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long InsertTagsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long InsertTagsRequest::getResourceOwnerId()const void InsertTagsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string InsertTagsRequest::getInstanceName()const @@ -55,7 +55,7 @@ std::string InsertTagsRequest::getInstanceName()const void InsertTagsRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } std::vector InsertTagsRequest::getTagInfo()const @@ -70,8 +70,8 @@ void InsertTagsRequest::setTagInfo(const std::vector& tagInfo) for(int i = 0; i!= tagInfo.size(); i++) { auto obj = tagInfo.at(i); std::string str ="TagInfo."+ std::to_string(i); - setParameter(str + ".TagValue", obj.tagValue); - setParameter(str + ".TagKey", obj.tagKey); + setCoreParameter(str + ".TagValue", obj.tagValue); + setCoreParameter(str + ".TagKey", obj.tagKey); } } diff --git a/ots/src/model/InsertTagsResult.cc b/ots/src/model/InsertTagsResult.cc index 945719769..42af94147 100644 --- a/ots/src/model/InsertTagsResult.cc +++ b/ots/src/model/InsertTagsResult.cc @@ -35,10 +35,13 @@ InsertTagsResult::~InsertTagsResult() void InsertTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ots/src/model/ListClusterTypeRequest.cc b/ots/src/model/ListClusterTypeRequest.cc index 3a43379e4..4ac421141 100644 --- a/ots/src/model/ListClusterTypeRequest.cc +++ b/ots/src/model/ListClusterTypeRequest.cc @@ -33,7 +33,7 @@ std::string ListClusterTypeRequest::getAccess_key_id()const void ListClusterTypeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long ListClusterTypeRequest::getResourceOwnerId()const @@ -44,6 +44,6 @@ long ListClusterTypeRequest::getResourceOwnerId()const void ListClusterTypeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } diff --git a/ots/src/model/ListClusterTypeResult.cc b/ots/src/model/ListClusterTypeResult.cc index 2d7c28577..95446056d 100644 --- a/ots/src/model/ListClusterTypeResult.cc +++ b/ots/src/model/ListClusterTypeResult.cc @@ -35,10 +35,13 @@ ListClusterTypeResult::~ListClusterTypeResult() void ListClusterTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allClusterTypeInfos = value["ClusterTypeInfos"]["ClusterType"]; for (const auto &item : allClusterTypeInfos) diff --git a/ots/src/model/ListInstanceRequest.cc b/ots/src/model/ListInstanceRequest.cc index 2dc710d73..ebffa4f81 100644 --- a/ots/src/model/ListInstanceRequest.cc +++ b/ots/src/model/ListInstanceRequest.cc @@ -33,7 +33,7 @@ std::string ListInstanceRequest::getAccess_key_id()const void ListInstanceRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long ListInstanceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ListInstanceRequest::getResourceOwnerId()const void ListInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long ListInstanceRequest::getPageSize()const @@ -55,7 +55,7 @@ long ListInstanceRequest::getPageSize()const void ListInstanceRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListInstanceRequest::getPageNum()const @@ -66,7 +66,7 @@ long ListInstanceRequest::getPageNum()const void ListInstanceRequest::setPageNum(long pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::vector ListInstanceRequest::getTagInfo()const @@ -81,8 +81,8 @@ void ListInstanceRequest::setTagInfo(const std::vector& tagInfo) for(int i = 0; i!= tagInfo.size(); i++) { auto obj = tagInfo.at(i); std::string str ="TagInfo."+ std::to_string(i); - setParameter(str + ".TagValue", obj.tagValue); - setParameter(str + ".TagKey", obj.tagKey); + setCoreParameter(str + ".TagValue", obj.tagValue); + setCoreParameter(str + ".TagKey", obj.tagKey); } } diff --git a/ots/src/model/ListInstanceResult.cc b/ots/src/model/ListInstanceResult.cc index 10203c551..35233433f 100644 --- a/ots/src/model/ListInstanceResult.cc +++ b/ots/src/model/ListInstanceResult.cc @@ -35,10 +35,13 @@ ListInstanceResult::~ListInstanceResult() void ListInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceInfos = value["InstanceInfos"]["InstanceInfo"]; for (auto value : allInstanceInfos) diff --git a/ots/src/model/ListTagsRequest.cc b/ots/src/model/ListTagsRequest.cc index 2aca3f2d7..6de552901 100644 --- a/ots/src/model/ListTagsRequest.cc +++ b/ots/src/model/ListTagsRequest.cc @@ -33,7 +33,7 @@ std::string ListTagsRequest::getAccess_key_id()const void ListTagsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long ListTagsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ListTagsRequest::getResourceOwnerId()const void ListTagsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListTagsRequest::getInstanceName()const @@ -55,7 +55,7 @@ std::string ListTagsRequest::getInstanceName()const void ListTagsRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } long ListTagsRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListTagsRequest::getPageSize()const void ListTagsRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListTagsRequest::getPageNum()const @@ -77,7 +77,7 @@ long ListTagsRequest::getPageNum()const void ListTagsRequest::setPageNum(long pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::vector ListTagsRequest::getTagInfo()const @@ -92,8 +92,8 @@ void ListTagsRequest::setTagInfo(const std::vector& tagInfo) for(int i = 0; i!= tagInfo.size(); i++) { auto obj = tagInfo.at(i); std::string str ="TagInfo."+ std::to_string(i); - setParameter(str + ".TagValue", obj.tagValue); - setParameter(str + ".TagKey", obj.tagKey); + setCoreParameter(str + ".TagValue", obj.tagValue); + setCoreParameter(str + ".TagKey", obj.tagKey); } } diff --git a/ots/src/model/ListTagsResult.cc b/ots/src/model/ListTagsResult.cc index ffcea0b11..0c895a6b6 100644 --- a/ots/src/model/ListTagsResult.cc +++ b/ots/src/model/ListTagsResult.cc @@ -35,10 +35,13 @@ ListTagsResult::~ListTagsResult() void ListTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagInfos = value["TagInfos"]["TagInfo"]; for (auto value : allTagInfos) diff --git a/ots/src/model/ListVpcInfoByInstanceRequest.cc b/ots/src/model/ListVpcInfoByInstanceRequest.cc index 6ad8a3a1f..755b19aba 100644 --- a/ots/src/model/ListVpcInfoByInstanceRequest.cc +++ b/ots/src/model/ListVpcInfoByInstanceRequest.cc @@ -33,7 +33,7 @@ std::string ListVpcInfoByInstanceRequest::getAccess_key_id()const void ListVpcInfoByInstanceRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long ListVpcInfoByInstanceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ListVpcInfoByInstanceRequest::getResourceOwnerId()const void ListVpcInfoByInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListVpcInfoByInstanceRequest::getInstanceName()const @@ -55,7 +55,7 @@ std::string ListVpcInfoByInstanceRequest::getInstanceName()const void ListVpcInfoByInstanceRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } long ListVpcInfoByInstanceRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListVpcInfoByInstanceRequest::getPageSize()const void ListVpcInfoByInstanceRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListVpcInfoByInstanceRequest::getPageNum()const @@ -77,6 +77,6 @@ long ListVpcInfoByInstanceRequest::getPageNum()const void ListVpcInfoByInstanceRequest::setPageNum(long pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } diff --git a/ots/src/model/ListVpcInfoByInstanceResult.cc b/ots/src/model/ListVpcInfoByInstanceResult.cc index e7d2124bf..cd204ed47 100644 --- a/ots/src/model/ListVpcInfoByInstanceResult.cc +++ b/ots/src/model/ListVpcInfoByInstanceResult.cc @@ -35,10 +35,13 @@ ListVpcInfoByInstanceResult::~ListVpcInfoByInstanceResult() void ListVpcInfoByInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVpcInfos = value["VpcInfos"]["VpcInfo"]; for (auto value : allVpcInfos) diff --git a/ots/src/model/ListVpcInfoByVpcRequest.cc b/ots/src/model/ListVpcInfoByVpcRequest.cc index cebad7daf..8363d0508 100644 --- a/ots/src/model/ListVpcInfoByVpcRequest.cc +++ b/ots/src/model/ListVpcInfoByVpcRequest.cc @@ -33,7 +33,7 @@ std::string ListVpcInfoByVpcRequest::getAccess_key_id()const void ListVpcInfoByVpcRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long ListVpcInfoByVpcRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ListVpcInfoByVpcRequest::getResourceOwnerId()const void ListVpcInfoByVpcRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ListVpcInfoByVpcRequest::getVpcId()const @@ -55,7 +55,7 @@ std::string ListVpcInfoByVpcRequest::getVpcId()const void ListVpcInfoByVpcRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } long ListVpcInfoByVpcRequest::getPageSize()const @@ -66,7 +66,7 @@ long ListVpcInfoByVpcRequest::getPageSize()const void ListVpcInfoByVpcRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long ListVpcInfoByVpcRequest::getPageNum()const @@ -77,7 +77,7 @@ long ListVpcInfoByVpcRequest::getPageNum()const void ListVpcInfoByVpcRequest::setPageNum(long pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::vector ListVpcInfoByVpcRequest::getTagInfo()const @@ -92,8 +92,8 @@ void ListVpcInfoByVpcRequest::setTagInfo(const std::vector& tagInfo) for(int i = 0; i!= tagInfo.size(); i++) { auto obj = tagInfo.at(i); std::string str ="TagInfo."+ std::to_string(i); - setParameter(str + ".TagValue", obj.tagValue); - setParameter(str + ".TagKey", obj.tagKey); + setCoreParameter(str + ".TagValue", obj.tagValue); + setCoreParameter(str + ".TagKey", obj.tagKey); } } diff --git a/ots/src/model/ListVpcInfoByVpcResult.cc b/ots/src/model/ListVpcInfoByVpcResult.cc index b61418ac8..27f305448 100644 --- a/ots/src/model/ListVpcInfoByVpcResult.cc +++ b/ots/src/model/ListVpcInfoByVpcResult.cc @@ -35,10 +35,13 @@ ListVpcInfoByVpcResult::~ListVpcInfoByVpcResult() void ListVpcInfoByVpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVpcInfos = value["VpcInfos"]["VpcInfo"]; for (auto value : allVpcInfos) diff --git a/ots/src/model/UnbindInstance2VpcRequest.cc b/ots/src/model/UnbindInstance2VpcRequest.cc index 151bdfe74..ea6f524fd 100644 --- a/ots/src/model/UnbindInstance2VpcRequest.cc +++ b/ots/src/model/UnbindInstance2VpcRequest.cc @@ -33,7 +33,7 @@ std::string UnbindInstance2VpcRequest::getAccess_key_id()const void UnbindInstance2VpcRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string UnbindInstance2VpcRequest::getInstanceVpcName()const @@ -44,7 +44,7 @@ std::string UnbindInstance2VpcRequest::getInstanceVpcName()const void UnbindInstance2VpcRequest::setInstanceVpcName(const std::string& instanceVpcName) { instanceVpcName_ = instanceVpcName; - setParameter("InstanceVpcName", instanceVpcName); + setCoreParameter("InstanceVpcName", instanceVpcName); } long UnbindInstance2VpcRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long UnbindInstance2VpcRequest::getResourceOwnerId()const void UnbindInstance2VpcRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnbindInstance2VpcRequest::getInstanceName()const @@ -66,7 +66,7 @@ std::string UnbindInstance2VpcRequest::getInstanceName()const void UnbindInstance2VpcRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } std::string UnbindInstance2VpcRequest::getRegionNo()const @@ -77,6 +77,6 @@ std::string UnbindInstance2VpcRequest::getRegionNo()const void UnbindInstance2VpcRequest::setRegionNo(const std::string& regionNo) { regionNo_ = regionNo; - setParameter("RegionNo", regionNo); + setCoreParameter("RegionNo", regionNo); } diff --git a/ots/src/model/UnbindInstance2VpcResult.cc b/ots/src/model/UnbindInstance2VpcResult.cc index 90aeca7eb..113d92efe 100644 --- a/ots/src/model/UnbindInstance2VpcResult.cc +++ b/ots/src/model/UnbindInstance2VpcResult.cc @@ -35,10 +35,13 @@ UnbindInstance2VpcResult::~UnbindInstance2VpcResult() void UnbindInstance2VpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ots/src/model/UpdateInstanceRequest.cc b/ots/src/model/UpdateInstanceRequest.cc index 589d8aa92..7eb2fde4f 100644 --- a/ots/src/model/UpdateInstanceRequest.cc +++ b/ots/src/model/UpdateInstanceRequest.cc @@ -33,7 +33,7 @@ std::string UpdateInstanceRequest::getAccess_key_id()const void UpdateInstanceRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long UpdateInstanceRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UpdateInstanceRequest::getResourceOwnerId()const void UpdateInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UpdateInstanceRequest::getInstanceName()const @@ -55,7 +55,7 @@ std::string UpdateInstanceRequest::getInstanceName()const void UpdateInstanceRequest::setInstanceName(const std::string& instanceName) { instanceName_ = instanceName; - setParameter("InstanceName", instanceName); + setCoreParameter("InstanceName", instanceName); } std::string UpdateInstanceRequest::getNetwork()const @@ -66,6 +66,6 @@ std::string UpdateInstanceRequest::getNetwork()const void UpdateInstanceRequest::setNetwork(const std::string& network) { network_ = network; - setParameter("Network", network); + setCoreParameter("Network", network); } diff --git a/ots/src/model/UpdateInstanceResult.cc b/ots/src/model/UpdateInstanceResult.cc index c119999f2..dde7f610d 100644 --- a/ots/src/model/UpdateInstanceResult.cc +++ b/ots/src/model/UpdateInstanceResult.cc @@ -35,10 +35,13 @@ UpdateInstanceResult::~UpdateInstanceResult() void UpdateInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/polardb/CMakeLists.txt b/polardb/CMakeLists.txt new file mode 100644 index 000000000..b8af6cd21 --- /dev/null +++ b/polardb/CMakeLists.txt @@ -0,0 +1,286 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(polardb_public_header + include/alibabacloud/polardb/PolardbClient.h + include/alibabacloud/polardb/PolardbExport.h ) + +set(polardb_public_header_model + include/alibabacloud/polardb/model/ListTagResourcesRequest.h + include/alibabacloud/polardb/model/ListTagResourcesResult.h + include/alibabacloud/polardb/model/DeleteBackupRequest.h + include/alibabacloud/polardb/model/DeleteBackupResult.h + include/alibabacloud/polardb/model/DescribeDatabasesRequest.h + include/alibabacloud/polardb/model/DescribeDatabasesResult.h + include/alibabacloud/polardb/model/DescribeDBClusterMigrationRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h + include/alibabacloud/polardb/model/UntagResourcesRequest.h + include/alibabacloud/polardb/model/UntagResourcesResult.h + include/alibabacloud/polardb/model/ModifyAccountDescriptionRequest.h + include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h + include/alibabacloud/polardb/model/RevokeAccountPrivilegeRequest.h + include/alibabacloud/polardb/model/RevokeAccountPrivilegeResult.h + include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h + include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h + include/alibabacloud/polardb/model/UnlockDBClusterDeletionRequest.h + include/alibabacloud/polardb/model/UnlockDBClusterDeletionResult.h + include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterParametersResult.h + include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h + include/alibabacloud/polardb/model/ModifyDBNodeClassResult.h + include/alibabacloud/polardb/model/DeleteDBClusterRequest.h + include/alibabacloud/polardb/model/DeleteDBClusterResult.h + include/alibabacloud/polardb/model/CreateDBNodesRequest.h + include/alibabacloud/polardb/model/CreateDBNodesResult.h + include/alibabacloud/polardb/model/RestartDBNodeRequest.h + include/alibabacloud/polardb/model/RestartDBNodeResult.h + include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h + include/alibabacloud/polardb/model/CreateDBClusterEndpointResult.h + include/alibabacloud/polardb/model/CreateAccountRequest.h + include/alibabacloud/polardb/model/CreateAccountResult.h + include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h + include/alibabacloud/polardb/model/ModifyDBDescriptionRequest.h + include/alibabacloud/polardb/model/ModifyDBDescriptionResult.h + include/alibabacloud/polardb/model/CreateDBEndpointAddressRequest.h + include/alibabacloud/polardb/model/CreateDBEndpointAddressResult.h + include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h + include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h + include/alibabacloud/polardb/model/CreateDBClusterRequest.h + include/alibabacloud/polardb/model/CreateDBClusterResult.h + include/alibabacloud/polardb/model/LockDBClusterDeletionRequest.h + include/alibabacloud/polardb/model/LockDBClusterDeletionResult.h + include/alibabacloud/polardb/model/CreateBackupRequest.h + include/alibabacloud/polardb/model/CreateBackupResult.h + include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h + include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.h + include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h + include/alibabacloud/polardb/model/DescribeDBClustersRequest.h + include/alibabacloud/polardb/model/DescribeDBClustersResult.h + include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h + include/alibabacloud/polardb/model/DeleteDBClusterEndpointResult.h + include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterEndpointResult.h + include/alibabacloud/polardb/model/ResetAccountRequest.h + include/alibabacloud/polardb/model/ResetAccountResult.h + include/alibabacloud/polardb/model/DeleteDBNodesRequest.h + include/alibabacloud/polardb/model/DeleteDBNodesResult.h + include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeResult.h + include/alibabacloud/polardb/model/CloseDBClusterMigrationRequest.h + include/alibabacloud/polardb/model/CloseDBClusterMigrationResult.h + include/alibabacloud/polardb/model/DescribeBackupsRequest.h + include/alibabacloud/polardb/model/DescribeBackupsResult.h + include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h + include/alibabacloud/polardb/model/DescribeAutoRenewAttributeResult.h + include/alibabacloud/polardb/model/DescribeRegionsRequest.h + include/alibabacloud/polardb/model/DescribeRegionsResult.h + include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h + include/alibabacloud/polardb/model/CreateDatabaseRequest.h + include/alibabacloud/polardb/model/CreateDatabaseResult.h + include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.h + include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h + include/alibabacloud/polardb/model/DeleteAccountRequest.h + include/alibabacloud/polardb/model/DeleteAccountResult.h + include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h + include/alibabacloud/polardb/model/ModifyDBEndpointAddressResult.h + include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h + include/alibabacloud/polardb/model/DescribeAccountsRequest.h + include/alibabacloud/polardb/model/DescribeAccountsResult.h + include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h + include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h + include/alibabacloud/polardb/model/GrantAccountPrivilegeRequest.h + include/alibabacloud/polardb/model/GrantAccountPrivilegeResult.h + include/alibabacloud/polardb/model/TagResourcesRequest.h + include/alibabacloud/polardb/model/TagResourcesResult.h + include/alibabacloud/polardb/model/DeleteDatabaseRequest.h + include/alibabacloud/polardb/model/DeleteDatabaseResult.h + include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h + include/alibabacloud/polardb/model/ModifyAccountPasswordResult.h + include/alibabacloud/polardb/model/DescribeBackupPolicyRequest.h + include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h + include/alibabacloud/polardb/model/DeleteDBEndpointAddressRequest.h + include/alibabacloud/polardb/model/DeleteDBEndpointAddressResult.h + include/alibabacloud/polardb/model/DescribeDBClusterParametersRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h ) + +set(polardb_src + src/PolardbClient.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/DeleteBackupRequest.cc + src/model/DeleteBackupResult.cc + src/model/DescribeDatabasesRequest.cc + src/model/DescribeDatabasesResult.cc + src/model/DescribeDBClusterMigrationRequest.cc + src/model/DescribeDBClusterMigrationResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/ModifyAccountDescriptionRequest.cc + src/model/ModifyAccountDescriptionResult.cc + src/model/RevokeAccountPrivilegeRequest.cc + src/model/RevokeAccountPrivilegeResult.cc + src/model/ModifyAutoRenewAttributeRequest.cc + src/model/ModifyAutoRenewAttributeResult.cc + src/model/UnlockDBClusterDeletionRequest.cc + src/model/UnlockDBClusterDeletionResult.cc + src/model/ModifyDBClusterParametersRequest.cc + src/model/ModifyDBClusterParametersResult.cc + src/model/ModifyDBNodeClassRequest.cc + src/model/ModifyDBNodeClassResult.cc + src/model/DeleteDBClusterRequest.cc + src/model/DeleteDBClusterResult.cc + src/model/CreateDBNodesRequest.cc + src/model/CreateDBNodesResult.cc + src/model/RestartDBNodeRequest.cc + src/model/RestartDBNodeResult.cc + src/model/CreateDBClusterEndpointRequest.cc + src/model/CreateDBClusterEndpointResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc + src/model/DescribeDBClusterAccessWhitelistRequest.cc + src/model/DescribeDBClusterAccessWhitelistResult.cc + src/model/ModifyDBDescriptionRequest.cc + src/model/ModifyDBDescriptionResult.cc + src/model/CreateDBEndpointAddressRequest.cc + src/model/CreateDBEndpointAddressResult.cc + src/model/ModifyBackupPolicyRequest.cc + src/model/ModifyBackupPolicyResult.cc + src/model/CreateDBClusterRequest.cc + src/model/CreateDBClusterResult.cc + src/model/LockDBClusterDeletionRequest.cc + src/model/LockDBClusterDeletionResult.cc + src/model/CreateBackupRequest.cc + src/model/CreateBackupResult.cc + src/model/DescribeDBClusterAttributeRequest.cc + src/model/DescribeDBClusterAttributeResult.cc + src/model/ContinueDBClusterMigrationRequest.cc + src/model/ContinueDBClusterMigrationResult.cc + src/model/DescribeDBClustersRequest.cc + src/model/DescribeDBClustersResult.cc + src/model/DeleteDBClusterEndpointRequest.cc + src/model/DeleteDBClusterEndpointResult.cc + src/model/ModifyDBClusterEndpointRequest.cc + src/model/ModifyDBClusterEndpointResult.cc + src/model/ResetAccountRequest.cc + src/model/ResetAccountResult.cc + src/model/DeleteDBNodesRequest.cc + src/model/DeleteDBNodesResult.cc + src/model/ModifyDBClusterMaintainTimeRequest.cc + src/model/ModifyDBClusterMaintainTimeResult.cc + src/model/CloseDBClusterMigrationRequest.cc + src/model/CloseDBClusterMigrationResult.cc + src/model/DescribeBackupsRequest.cc + src/model/DescribeBackupsResult.cc + src/model/DescribeAutoRenewAttributeRequest.cc + src/model/DescribeAutoRenewAttributeResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/ModifyDBClusterDescriptionRequest.cc + src/model/ModifyDBClusterDescriptionResult.cc + src/model/CreateDatabaseRequest.cc + src/model/CreateDatabaseResult.cc + src/model/AbortDBClusterMigrationRequest.cc + src/model/AbortDBClusterMigrationResult.cc + src/model/DeleteAccountRequest.cc + src/model/DeleteAccountResult.cc + src/model/ModifyDBEndpointAddressRequest.cc + src/model/ModifyDBEndpointAddressResult.cc + src/model/ModifyDBClusterMigrationRequest.cc + src/model/ModifyDBClusterMigrationResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/ModifyDBClusterAccessWhitelistRequest.cc + src/model/ModifyDBClusterAccessWhitelistResult.cc + src/model/DescribeDBClusterEndpointsRequest.cc + src/model/DescribeDBClusterEndpointsResult.cc + src/model/GrantAccountPrivilegeRequest.cc + src/model/GrantAccountPrivilegeResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/DeleteDatabaseRequest.cc + src/model/DeleteDatabaseResult.cc + src/model/ModifyAccountPasswordRequest.cc + src/model/ModifyAccountPasswordResult.cc + src/model/DescribeBackupPolicyRequest.cc + src/model/DescribeBackupPolicyResult.cc + src/model/DeleteDBEndpointAddressRequest.cc + src/model/DeleteDBEndpointAddressResult.cc + src/model/DescribeDBClusterParametersRequest.cc + src/model/DescribeDBClusterParametersResult.cc ) + +add_library(polardb ${LIB_TYPE} + ${polardb_public_header} + ${polardb_public_header_model} + ${polardb_src}) + +set_target_properties(polardb + 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}polardb + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(polardb + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_POLARDB_LIBRARY) +endif() + +target_include_directories(polardb + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(polardb + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(polardb + jsoncpp) + target_include_directories(polardb + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(polardb + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(polardb + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(polardb + PRIVATE /usr/include/jsoncpp) + target_link_libraries(polardb + jsoncpp) +endif() + +install(FILES ${polardb_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/polardb) +install(FILES ${polardb_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/polardb/model) +install(TARGETS polardb + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/PolardbClient.h b/polardb/include/alibabacloud/polardb/PolardbClient.h new file mode 100644 index 000000000..ecbdb06cf --- /dev/null +++ b/polardb/include/alibabacloud/polardb/PolardbClient.h @@ -0,0 +1,454 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_POLARDBCLIENT_H_ +#define ALIBABACLOUD_POLARDB_POLARDBCLIENT_H_ + +#include +#include +#include +#include +#include "PolardbExport.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/DeleteBackupRequest.h" +#include "model/DeleteBackupResult.h" +#include "model/DescribeDatabasesRequest.h" +#include "model/DescribeDatabasesResult.h" +#include "model/DescribeDBClusterMigrationRequest.h" +#include "model/DescribeDBClusterMigrationResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/ModifyAccountDescriptionRequest.h" +#include "model/ModifyAccountDescriptionResult.h" +#include "model/RevokeAccountPrivilegeRequest.h" +#include "model/RevokeAccountPrivilegeResult.h" +#include "model/ModifyAutoRenewAttributeRequest.h" +#include "model/ModifyAutoRenewAttributeResult.h" +#include "model/UnlockDBClusterDeletionRequest.h" +#include "model/UnlockDBClusterDeletionResult.h" +#include "model/ModifyDBClusterParametersRequest.h" +#include "model/ModifyDBClusterParametersResult.h" +#include "model/ModifyDBNodeClassRequest.h" +#include "model/ModifyDBNodeClassResult.h" +#include "model/DeleteDBClusterRequest.h" +#include "model/DeleteDBClusterResult.h" +#include "model/CreateDBNodesRequest.h" +#include "model/CreateDBNodesResult.h" +#include "model/RestartDBNodeRequest.h" +#include "model/RestartDBNodeResult.h" +#include "model/CreateDBClusterEndpointRequest.h" +#include "model/CreateDBClusterEndpointResult.h" +#include "model/CreateAccountRequest.h" +#include "model/CreateAccountResult.h" +#include "model/DescribeDBClusterAccessWhitelistRequest.h" +#include "model/DescribeDBClusterAccessWhitelistResult.h" +#include "model/ModifyDBDescriptionRequest.h" +#include "model/ModifyDBDescriptionResult.h" +#include "model/CreateDBEndpointAddressRequest.h" +#include "model/CreateDBEndpointAddressResult.h" +#include "model/ModifyBackupPolicyRequest.h" +#include "model/ModifyBackupPolicyResult.h" +#include "model/CreateDBClusterRequest.h" +#include "model/CreateDBClusterResult.h" +#include "model/LockDBClusterDeletionRequest.h" +#include "model/LockDBClusterDeletionResult.h" +#include "model/CreateBackupRequest.h" +#include "model/CreateBackupResult.h" +#include "model/DescribeDBClusterAttributeRequest.h" +#include "model/DescribeDBClusterAttributeResult.h" +#include "model/ContinueDBClusterMigrationRequest.h" +#include "model/ContinueDBClusterMigrationResult.h" +#include "model/DescribeDBClustersRequest.h" +#include "model/DescribeDBClustersResult.h" +#include "model/DeleteDBClusterEndpointRequest.h" +#include "model/DeleteDBClusterEndpointResult.h" +#include "model/ModifyDBClusterEndpointRequest.h" +#include "model/ModifyDBClusterEndpointResult.h" +#include "model/ResetAccountRequest.h" +#include "model/ResetAccountResult.h" +#include "model/DeleteDBNodesRequest.h" +#include "model/DeleteDBNodesResult.h" +#include "model/ModifyDBClusterMaintainTimeRequest.h" +#include "model/ModifyDBClusterMaintainTimeResult.h" +#include "model/CloseDBClusterMigrationRequest.h" +#include "model/CloseDBClusterMigrationResult.h" +#include "model/DescribeBackupsRequest.h" +#include "model/DescribeBackupsResult.h" +#include "model/DescribeAutoRenewAttributeRequest.h" +#include "model/DescribeAutoRenewAttributeResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/ModifyDBClusterDescriptionRequest.h" +#include "model/ModifyDBClusterDescriptionResult.h" +#include "model/CreateDatabaseRequest.h" +#include "model/CreateDatabaseResult.h" +#include "model/AbortDBClusterMigrationRequest.h" +#include "model/AbortDBClusterMigrationResult.h" +#include "model/DeleteAccountRequest.h" +#include "model/DeleteAccountResult.h" +#include "model/ModifyDBEndpointAddressRequest.h" +#include "model/ModifyDBEndpointAddressResult.h" +#include "model/ModifyDBClusterMigrationRequest.h" +#include "model/ModifyDBClusterMigrationResult.h" +#include "model/DescribeAccountsRequest.h" +#include "model/DescribeAccountsResult.h" +#include "model/ModifyDBClusterAccessWhitelistRequest.h" +#include "model/ModifyDBClusterAccessWhitelistResult.h" +#include "model/DescribeDBClusterEndpointsRequest.h" +#include "model/DescribeDBClusterEndpointsResult.h" +#include "model/GrantAccountPrivilegeRequest.h" +#include "model/GrantAccountPrivilegeResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/DeleteDatabaseRequest.h" +#include "model/DeleteDatabaseResult.h" +#include "model/ModifyAccountPasswordRequest.h" +#include "model/ModifyAccountPasswordResult.h" +#include "model/DescribeBackupPolicyRequest.h" +#include "model/DescribeBackupPolicyResult.h" +#include "model/DeleteDBEndpointAddressRequest.h" +#include "model/DeleteDBEndpointAddressResult.h" +#include "model/DescribeDBClusterParametersRequest.h" +#include "model/DescribeDBClusterParametersResult.h" + + +namespace AlibabaCloud +{ + namespace Polardb + { + class ALIBABACLOUD_POLARDB_EXPORT PolardbClient : public RpcServiceClient + { + public: + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome DeleteBackupOutcome; + typedef std::future DeleteBackupOutcomeCallable; + typedef std::function&)> DeleteBackupAsyncHandler; + typedef Outcome DescribeDatabasesOutcome; + typedef std::future DescribeDatabasesOutcomeCallable; + typedef std::function&)> DescribeDatabasesAsyncHandler; + typedef Outcome DescribeDBClusterMigrationOutcome; + typedef std::future DescribeDBClusterMigrationOutcomeCallable; + typedef std::function&)> DescribeDBClusterMigrationAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome ModifyAccountDescriptionOutcome; + typedef std::future ModifyAccountDescriptionOutcomeCallable; + typedef std::function&)> ModifyAccountDescriptionAsyncHandler; + typedef Outcome RevokeAccountPrivilegeOutcome; + typedef std::future RevokeAccountPrivilegeOutcomeCallable; + typedef std::function&)> RevokeAccountPrivilegeAsyncHandler; + typedef Outcome ModifyAutoRenewAttributeOutcome; + typedef std::future ModifyAutoRenewAttributeOutcomeCallable; + typedef std::function&)> ModifyAutoRenewAttributeAsyncHandler; + typedef Outcome UnlockDBClusterDeletionOutcome; + typedef std::future UnlockDBClusterDeletionOutcomeCallable; + typedef std::function&)> UnlockDBClusterDeletionAsyncHandler; + typedef Outcome ModifyDBClusterParametersOutcome; + typedef std::future ModifyDBClusterParametersOutcomeCallable; + typedef std::function&)> ModifyDBClusterParametersAsyncHandler; + typedef Outcome ModifyDBNodeClassOutcome; + typedef std::future ModifyDBNodeClassOutcomeCallable; + typedef std::function&)> ModifyDBNodeClassAsyncHandler; + typedef Outcome DeleteDBClusterOutcome; + typedef std::future DeleteDBClusterOutcomeCallable; + typedef std::function&)> DeleteDBClusterAsyncHandler; + typedef Outcome CreateDBNodesOutcome; + typedef std::future CreateDBNodesOutcomeCallable; + typedef std::function&)> CreateDBNodesAsyncHandler; + typedef Outcome RestartDBNodeOutcome; + typedef std::future RestartDBNodeOutcomeCallable; + typedef std::function&)> RestartDBNodeAsyncHandler; + typedef Outcome CreateDBClusterEndpointOutcome; + typedef std::future CreateDBClusterEndpointOutcomeCallable; + typedef std::function&)> CreateDBClusterEndpointAsyncHandler; + typedef Outcome CreateAccountOutcome; + typedef std::future CreateAccountOutcomeCallable; + typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome DescribeDBClusterAccessWhitelistOutcome; + typedef std::future DescribeDBClusterAccessWhitelistOutcomeCallable; + typedef std::function&)> DescribeDBClusterAccessWhitelistAsyncHandler; + typedef Outcome ModifyDBDescriptionOutcome; + typedef std::future ModifyDBDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBDescriptionAsyncHandler; + typedef Outcome CreateDBEndpointAddressOutcome; + typedef std::future CreateDBEndpointAddressOutcomeCallable; + typedef std::function&)> CreateDBEndpointAddressAsyncHandler; + typedef Outcome ModifyBackupPolicyOutcome; + typedef std::future ModifyBackupPolicyOutcomeCallable; + typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome CreateDBClusterOutcome; + typedef std::future CreateDBClusterOutcomeCallable; + typedef std::function&)> CreateDBClusterAsyncHandler; + typedef Outcome LockDBClusterDeletionOutcome; + typedef std::future LockDBClusterDeletionOutcomeCallable; + typedef std::function&)> LockDBClusterDeletionAsyncHandler; + typedef Outcome CreateBackupOutcome; + typedef std::future CreateBackupOutcomeCallable; + typedef std::function&)> CreateBackupAsyncHandler; + typedef Outcome DescribeDBClusterAttributeOutcome; + typedef std::future DescribeDBClusterAttributeOutcomeCallable; + typedef std::function&)> DescribeDBClusterAttributeAsyncHandler; + typedef Outcome ContinueDBClusterMigrationOutcome; + typedef std::future ContinueDBClusterMigrationOutcomeCallable; + typedef std::function&)> ContinueDBClusterMigrationAsyncHandler; + typedef Outcome DescribeDBClustersOutcome; + typedef std::future DescribeDBClustersOutcomeCallable; + typedef std::function&)> DescribeDBClustersAsyncHandler; + typedef Outcome DeleteDBClusterEndpointOutcome; + typedef std::future DeleteDBClusterEndpointOutcomeCallable; + typedef std::function&)> DeleteDBClusterEndpointAsyncHandler; + typedef Outcome ModifyDBClusterEndpointOutcome; + typedef std::future ModifyDBClusterEndpointOutcomeCallable; + typedef std::function&)> ModifyDBClusterEndpointAsyncHandler; + typedef Outcome ResetAccountOutcome; + typedef std::future ResetAccountOutcomeCallable; + typedef std::function&)> ResetAccountAsyncHandler; + typedef Outcome DeleteDBNodesOutcome; + typedef std::future DeleteDBNodesOutcomeCallable; + typedef std::function&)> DeleteDBNodesAsyncHandler; + typedef Outcome ModifyDBClusterMaintainTimeOutcome; + typedef std::future ModifyDBClusterMaintainTimeOutcomeCallable; + typedef std::function&)> ModifyDBClusterMaintainTimeAsyncHandler; + typedef Outcome CloseDBClusterMigrationOutcome; + typedef std::future CloseDBClusterMigrationOutcomeCallable; + typedef std::function&)> CloseDBClusterMigrationAsyncHandler; + typedef Outcome DescribeBackupsOutcome; + typedef std::future DescribeBackupsOutcomeCallable; + typedef std::function&)> DescribeBackupsAsyncHandler; + typedef Outcome DescribeAutoRenewAttributeOutcome; + typedef std::future DescribeAutoRenewAttributeOutcomeCallable; + typedef std::function&)> DescribeAutoRenewAttributeAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome ModifyDBClusterDescriptionOutcome; + typedef std::future ModifyDBClusterDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBClusterDescriptionAsyncHandler; + typedef Outcome CreateDatabaseOutcome; + typedef std::future CreateDatabaseOutcomeCallable; + typedef std::function&)> CreateDatabaseAsyncHandler; + typedef Outcome AbortDBClusterMigrationOutcome; + typedef std::future AbortDBClusterMigrationOutcomeCallable; + typedef std::function&)> AbortDBClusterMigrationAsyncHandler; + typedef Outcome DeleteAccountOutcome; + typedef std::future DeleteAccountOutcomeCallable; + typedef std::function&)> DeleteAccountAsyncHandler; + typedef Outcome ModifyDBEndpointAddressOutcome; + typedef std::future ModifyDBEndpointAddressOutcomeCallable; + typedef std::function&)> ModifyDBEndpointAddressAsyncHandler; + typedef Outcome ModifyDBClusterMigrationOutcome; + typedef std::future ModifyDBClusterMigrationOutcomeCallable; + typedef std::function&)> ModifyDBClusterMigrationAsyncHandler; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; + typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome ModifyDBClusterAccessWhitelistOutcome; + typedef std::future ModifyDBClusterAccessWhitelistOutcomeCallable; + typedef std::function&)> ModifyDBClusterAccessWhitelistAsyncHandler; + typedef Outcome DescribeDBClusterEndpointsOutcome; + typedef std::future DescribeDBClusterEndpointsOutcomeCallable; + typedef std::function&)> DescribeDBClusterEndpointsAsyncHandler; + typedef Outcome GrantAccountPrivilegeOutcome; + typedef std::future GrantAccountPrivilegeOutcomeCallable; + typedef std::function&)> GrantAccountPrivilegeAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome DeleteDatabaseOutcome; + typedef std::future DeleteDatabaseOutcomeCallable; + typedef std::function&)> DeleteDatabaseAsyncHandler; + typedef Outcome ModifyAccountPasswordOutcome; + typedef std::future ModifyAccountPasswordOutcomeCallable; + typedef std::function&)> ModifyAccountPasswordAsyncHandler; + typedef Outcome DescribeBackupPolicyOutcome; + typedef std::future DescribeBackupPolicyOutcomeCallable; + typedef std::function&)> DescribeBackupPolicyAsyncHandler; + typedef Outcome DeleteDBEndpointAddressOutcome; + typedef std::future DeleteDBEndpointAddressOutcomeCallable; + typedef std::function&)> DeleteDBEndpointAddressAsyncHandler; + typedef Outcome DescribeDBClusterParametersOutcome; + typedef std::future DescribeDBClusterParametersOutcomeCallable; + typedef std::function&)> DescribeDBClusterParametersAsyncHandler; + + PolardbClient(const Credentials &credentials, const ClientConfiguration &configuration); + PolardbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + PolardbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~PolardbClient(); + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + DeleteBackupOutcome deleteBackup(const Model::DeleteBackupRequest &request)const; + void deleteBackupAsync(const Model::DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBackupOutcomeCallable deleteBackupCallable(const Model::DeleteBackupRequest& request) const; + DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const; + void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const; + DescribeDBClusterMigrationOutcome describeDBClusterMigration(const Model::DescribeDBClusterMigrationRequest &request)const; + void describeDBClusterMigrationAsync(const Model::DescribeDBClusterMigrationRequest& request, const DescribeDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterMigrationOutcomeCallable describeDBClusterMigrationCallable(const Model::DescribeDBClusterMigrationRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; + void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; + RevokeAccountPrivilegeOutcome revokeAccountPrivilege(const Model::RevokeAccountPrivilegeRequest &request)const; + void revokeAccountPrivilegeAsync(const Model::RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeAccountPrivilegeOutcomeCallable revokeAccountPrivilegeCallable(const Model::RevokeAccountPrivilegeRequest& request) const; + ModifyAutoRenewAttributeOutcome modifyAutoRenewAttribute(const Model::ModifyAutoRenewAttributeRequest &request)const; + void modifyAutoRenewAttributeAsync(const Model::ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const; + UnlockDBClusterDeletionOutcome unlockDBClusterDeletion(const Model::UnlockDBClusterDeletionRequest &request)const; + void unlockDBClusterDeletionAsync(const Model::UnlockDBClusterDeletionRequest& request, const UnlockDBClusterDeletionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnlockDBClusterDeletionOutcomeCallable unlockDBClusterDeletionCallable(const Model::UnlockDBClusterDeletionRequest& request) const; + ModifyDBClusterParametersOutcome modifyDBClusterParameters(const Model::ModifyDBClusterParametersRequest &request)const; + void modifyDBClusterParametersAsync(const Model::ModifyDBClusterParametersRequest& request, const ModifyDBClusterParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterParametersOutcomeCallable modifyDBClusterParametersCallable(const Model::ModifyDBClusterParametersRequest& request) const; + ModifyDBNodeClassOutcome modifyDBNodeClass(const Model::ModifyDBNodeClassRequest &request)const; + void modifyDBNodeClassAsync(const Model::ModifyDBNodeClassRequest& request, const ModifyDBNodeClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBNodeClassOutcomeCallable modifyDBNodeClassCallable(const Model::ModifyDBNodeClassRequest& request) const; + DeleteDBClusterOutcome deleteDBCluster(const Model::DeleteDBClusterRequest &request)const; + void deleteDBClusterAsync(const Model::DeleteDBClusterRequest& request, const DeleteDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBClusterOutcomeCallable deleteDBClusterCallable(const Model::DeleteDBClusterRequest& request) const; + CreateDBNodesOutcome createDBNodes(const Model::CreateDBNodesRequest &request)const; + void createDBNodesAsync(const Model::CreateDBNodesRequest& request, const CreateDBNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBNodesOutcomeCallable createDBNodesCallable(const Model::CreateDBNodesRequest& request) const; + RestartDBNodeOutcome restartDBNode(const Model::RestartDBNodeRequest &request)const; + void restartDBNodeAsync(const Model::RestartDBNodeRequest& request, const RestartDBNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDBNodeOutcomeCallable restartDBNodeCallable(const Model::RestartDBNodeRequest& request) const; + CreateDBClusterEndpointOutcome createDBClusterEndpoint(const Model::CreateDBClusterEndpointRequest &request)const; + void createDBClusterEndpointAsync(const Model::CreateDBClusterEndpointRequest& request, const CreateDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBClusterEndpointOutcomeCallable createDBClusterEndpointCallable(const Model::CreateDBClusterEndpointRequest& request) const; + CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; + void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + DescribeDBClusterAccessWhitelistOutcome describeDBClusterAccessWhitelist(const Model::DescribeDBClusterAccessWhitelistRequest &request)const; + void describeDBClusterAccessWhitelistAsync(const Model::DescribeDBClusterAccessWhitelistRequest& request, const DescribeDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterAccessWhitelistOutcomeCallable describeDBClusterAccessWhitelistCallable(const Model::DescribeDBClusterAccessWhitelistRequest& request) const; + ModifyDBDescriptionOutcome modifyDBDescription(const Model::ModifyDBDescriptionRequest &request)const; + void modifyDBDescriptionAsync(const Model::ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBDescriptionOutcomeCallable modifyDBDescriptionCallable(const Model::ModifyDBDescriptionRequest& request) const; + CreateDBEndpointAddressOutcome createDBEndpointAddress(const Model::CreateDBEndpointAddressRequest &request)const; + void createDBEndpointAddressAsync(const Model::CreateDBEndpointAddressRequest& request, const CreateDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBEndpointAddressOutcomeCallable createDBEndpointAddressCallable(const Model::CreateDBEndpointAddressRequest& request) const; + ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; + void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + CreateDBClusterOutcome createDBCluster(const Model::CreateDBClusterRequest &request)const; + void createDBClusterAsync(const Model::CreateDBClusterRequest& request, const CreateDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBClusterOutcomeCallable createDBClusterCallable(const Model::CreateDBClusterRequest& request) const; + LockDBClusterDeletionOutcome lockDBClusterDeletion(const Model::LockDBClusterDeletionRequest &request)const; + void lockDBClusterDeletionAsync(const Model::LockDBClusterDeletionRequest& request, const LockDBClusterDeletionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LockDBClusterDeletionOutcomeCallable lockDBClusterDeletionCallable(const Model::LockDBClusterDeletionRequest& request) const; + CreateBackupOutcome createBackup(const Model::CreateBackupRequest &request)const; + void createBackupAsync(const Model::CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBackupOutcomeCallable createBackupCallable(const Model::CreateBackupRequest& request) const; + DescribeDBClusterAttributeOutcome describeDBClusterAttribute(const Model::DescribeDBClusterAttributeRequest &request)const; + void describeDBClusterAttributeAsync(const Model::DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterAttributeOutcomeCallable describeDBClusterAttributeCallable(const Model::DescribeDBClusterAttributeRequest& request) const; + ContinueDBClusterMigrationOutcome continueDBClusterMigration(const Model::ContinueDBClusterMigrationRequest &request)const; + void continueDBClusterMigrationAsync(const Model::ContinueDBClusterMigrationRequest& request, const ContinueDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ContinueDBClusterMigrationOutcomeCallable continueDBClusterMigrationCallable(const Model::ContinueDBClusterMigrationRequest& request) const; + DescribeDBClustersOutcome describeDBClusters(const Model::DescribeDBClustersRequest &request)const; + void describeDBClustersAsync(const Model::DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClustersOutcomeCallable describeDBClustersCallable(const Model::DescribeDBClustersRequest& request) const; + DeleteDBClusterEndpointOutcome deleteDBClusterEndpoint(const Model::DeleteDBClusterEndpointRequest &request)const; + void deleteDBClusterEndpointAsync(const Model::DeleteDBClusterEndpointRequest& request, const DeleteDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBClusterEndpointOutcomeCallable deleteDBClusterEndpointCallable(const Model::DeleteDBClusterEndpointRequest& request) const; + ModifyDBClusterEndpointOutcome modifyDBClusterEndpoint(const Model::ModifyDBClusterEndpointRequest &request)const; + void modifyDBClusterEndpointAsync(const Model::ModifyDBClusterEndpointRequest& request, const ModifyDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterEndpointOutcomeCallable modifyDBClusterEndpointCallable(const Model::ModifyDBClusterEndpointRequest& request) const; + ResetAccountOutcome resetAccount(const Model::ResetAccountRequest &request)const; + void resetAccountAsync(const Model::ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountOutcomeCallable resetAccountCallable(const Model::ResetAccountRequest& request) const; + DeleteDBNodesOutcome deleteDBNodes(const Model::DeleteDBNodesRequest &request)const; + void deleteDBNodesAsync(const Model::DeleteDBNodesRequest& request, const DeleteDBNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBNodesOutcomeCallable deleteDBNodesCallable(const Model::DeleteDBNodesRequest& request) const; + ModifyDBClusterMaintainTimeOutcome modifyDBClusterMaintainTime(const Model::ModifyDBClusterMaintainTimeRequest &request)const; + void modifyDBClusterMaintainTimeAsync(const Model::ModifyDBClusterMaintainTimeRequest& request, const ModifyDBClusterMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterMaintainTimeOutcomeCallable modifyDBClusterMaintainTimeCallable(const Model::ModifyDBClusterMaintainTimeRequest& request) const; + CloseDBClusterMigrationOutcome closeDBClusterMigration(const Model::CloseDBClusterMigrationRequest &request)const; + void closeDBClusterMigrationAsync(const Model::CloseDBClusterMigrationRequest& request, const CloseDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseDBClusterMigrationOutcomeCallable closeDBClusterMigrationCallable(const Model::CloseDBClusterMigrationRequest& request) const; + DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const; + void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupsOutcomeCallable describeBackupsCallable(const Model::DescribeBackupsRequest& request) const; + DescribeAutoRenewAttributeOutcome describeAutoRenewAttribute(const Model::DescribeAutoRenewAttributeRequest &request)const; + void describeAutoRenewAttributeAsync(const Model::DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const; + void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& request) const; + CreateDatabaseOutcome createDatabase(const Model::CreateDatabaseRequest &request)const; + void createDatabaseAsync(const Model::CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatabaseOutcomeCallable createDatabaseCallable(const Model::CreateDatabaseRequest& request) const; + AbortDBClusterMigrationOutcome abortDBClusterMigration(const Model::AbortDBClusterMigrationRequest &request)const; + void abortDBClusterMigrationAsync(const Model::AbortDBClusterMigrationRequest& request, const AbortDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbortDBClusterMigrationOutcomeCallable abortDBClusterMigrationCallable(const Model::AbortDBClusterMigrationRequest& request) const; + DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; + void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const; + ModifyDBEndpointAddressOutcome modifyDBEndpointAddress(const Model::ModifyDBEndpointAddressRequest &request)const; + void modifyDBEndpointAddressAsync(const Model::ModifyDBEndpointAddressRequest& request, const ModifyDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBEndpointAddressOutcomeCallable modifyDBEndpointAddressCallable(const Model::ModifyDBEndpointAddressRequest& request) const; + ModifyDBClusterMigrationOutcome modifyDBClusterMigration(const Model::ModifyDBClusterMigrationRequest &request)const; + void modifyDBClusterMigrationAsync(const Model::ModifyDBClusterMigrationRequest& request, const ModifyDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterMigrationOutcomeCallable modifyDBClusterMigrationCallable(const Model::ModifyDBClusterMigrationRequest& request) const; + DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; + void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; + ModifyDBClusterAccessWhitelistOutcome modifyDBClusterAccessWhitelist(const Model::ModifyDBClusterAccessWhitelistRequest &request)const; + void modifyDBClusterAccessWhitelistAsync(const Model::ModifyDBClusterAccessWhitelistRequest& request, const ModifyDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterAccessWhitelistOutcomeCallable modifyDBClusterAccessWhitelistCallable(const Model::ModifyDBClusterAccessWhitelistRequest& request) const; + DescribeDBClusterEndpointsOutcome describeDBClusterEndpoints(const Model::DescribeDBClusterEndpointsRequest &request)const; + void describeDBClusterEndpointsAsync(const Model::DescribeDBClusterEndpointsRequest& request, const DescribeDBClusterEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterEndpointsOutcomeCallable describeDBClusterEndpointsCallable(const Model::DescribeDBClusterEndpointsRequest& request) const; + GrantAccountPrivilegeOutcome grantAccountPrivilege(const Model::GrantAccountPrivilegeRequest &request)const; + void grantAccountPrivilegeAsync(const Model::GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantAccountPrivilegeOutcomeCallable grantAccountPrivilegeCallable(const Model::GrantAccountPrivilegeRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; + void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const; + ModifyAccountPasswordOutcome modifyAccountPassword(const Model::ModifyAccountPasswordRequest &request)const; + void modifyAccountPasswordAsync(const Model::ModifyAccountPasswordRequest& request, const ModifyAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountPasswordOutcomeCallable modifyAccountPasswordCallable(const Model::ModifyAccountPasswordRequest& request) const; + DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; + void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const; + DeleteDBEndpointAddressOutcome deleteDBEndpointAddress(const Model::DeleteDBEndpointAddressRequest &request)const; + void deleteDBEndpointAddressAsync(const Model::DeleteDBEndpointAddressRequest& request, const DeleteDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBEndpointAddressOutcomeCallable deleteDBEndpointAddressCallable(const Model::DeleteDBEndpointAddressRequest& request) const; + DescribeDBClusterParametersOutcome describeDBClusterParameters(const Model::DescribeDBClusterParametersRequest &request)const; + void describeDBClusterParametersAsync(const Model::DescribeDBClusterParametersRequest& request, const DescribeDBClusterParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterParametersOutcomeCallable describeDBClusterParametersCallable(const Model::DescribeDBClusterParametersRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_POLARDB_POLARDBCLIENT_H_ diff --git a/polardb/include/alibabacloud/polardb/PolardbExport.h b/polardb/include/alibabacloud/polardb/PolardbExport.h index 162288fbf..17a773528 100644 --- a/polardb/include/alibabacloud/polardb/PolardbExport.h +++ b/polardb/include/alibabacloud/polardb/PolardbExport.h @@ -1,32 +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_POLARDB_POLARDBEXPORT_H_ -#define ALIBABACLOUD_POLARDB_POLARDBEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_POLARDB_LIBRARY) -# define ALIBABACLOUD_POLARDB_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_POLARDB_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_POLARDB_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_POLARDBEXPORT_H_ +#define ALIBABACLOUD_POLARDB_POLARDBEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_POLARDB_LIBRARY) +# define ALIBABACLOUD_POLARDB_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_POLARDB_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_POLARDB_EXPORT +#endif + #endif // !ALIBABACLOUD_POLARDB_POLARDBEXPORT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.h new file mode 100644 index 000000000..66d67595f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.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_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT AbortDBClusterMigrationRequest : public RpcServiceRequest + { + + public: + AbortDBClusterMigrationRequest(); + ~AbortDBClusterMigrationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBClusterId()const; + void setDBClusterId(const std::string& dBClusterId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h new file mode 100644 index 000000000..2b6a543df --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT AbortDBClusterMigrationResult : public ServiceResult + { + public: + + + AbortDBClusterMigrationResult(); + explicit AbortDBClusterMigrationResult(const std::string &payload); + ~AbortDBClusterMigrationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationRequest.h index 2e739987c..bb643e701 100644 --- a/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CloseDBClusterMigrationRequest : public RpcServiceRequest - { - - public: - CloseDBClusterMigrationRequest(); - ~CloseDBClusterMigrationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CloseDBClusterMigrationRequest : public RpcServiceRequest + { + + public: + CloseDBClusterMigrationRequest(); + ~CloseDBClusterMigrationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); bool getContinueEnableBinlog()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; bool continueEnableBinlog_; std::string securityToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationResult.h index 88bd645bf..3588e9d7c 100644 --- a/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationResult.h +++ b/polardb/include/alibabacloud/polardb/model/CloseDBClusterMigrationResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CloseDBClusterMigrationResult : public ServiceResult - { - public: - - - CloseDBClusterMigrationResult(); - explicit CloseDBClusterMigrationResult(const std::string &payload); - ~CloseDBClusterMigrationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CloseDBClusterMigrationResult : public ServiceResult + { + public: + + + CloseDBClusterMigrationResult(); + explicit CloseDBClusterMigrationResult(const std::string &payload); + ~CloseDBClusterMigrationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CLOSEDBCLUSTERMIGRATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.h new file mode 100644 index 000000000..1a5848300 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.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_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ContinueDBClusterMigrationRequest : public RpcServiceRequest + { + + public: + ContinueDBClusterMigrationRequest(); + ~ContinueDBClusterMigrationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBClusterId()const; + void setDBClusterId(const std::string& dBClusterId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h new file mode 100644 index 000000000..ae3a7024e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ContinueDBClusterMigrationResult : public ServiceResult + { + public: + + + ContinueDBClusterMigrationResult(); + explicit ContinueDBClusterMigrationResult(const std::string &payload); + ~ContinueDBClusterMigrationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h b/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h index d25cc6649..23025864a 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateAccountRequest : public RpcServiceRequest - { - - public: - CreateAccountRequest(); - ~CreateAccountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateAccountRequest : public RpcServiceRequest + { + + public: + CreateAccountRequest(); + ~CreateAccountRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setAccountName(const std::string& accountName); std::string getDBName()const; void setDBName(const std::string& dBName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string accountPassword_; std::string accountName_; std::string dBName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateAccountResult.h b/polardb/include/alibabacloud/polardb/model/CreateAccountResult.h index 69656b65c..ffc7490e3 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateAccountResult.h +++ b/polardb/include/alibabacloud/polardb/model/CreateAccountResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateAccountResult : public ServiceResult - { - public: - - - CreateAccountResult(); - explicit CreateAccountResult(const std::string &payload); - ~CreateAccountResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateAccountResult : public ServiceResult + { + public: + + + CreateAccountResult(); + explicit CreateAccountResult(const std::string &payload); + ~CreateAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h b/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h index 540e5b74f..7052a9d03 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateBackupRequest : public RpcServiceRequest - { - - public: - CreateBackupRequest(); - ~CreateBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateBackupRequest : public RpcServiceRequest + { + + public: + CreateBackupRequest(); + ~CreateBackupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateBackupResult.h b/polardb/include/alibabacloud/polardb/model/CreateBackupResult.h index 0008bfdd9..5c481d7e5 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateBackupResult.h +++ b/polardb/include/alibabacloud/polardb/model/CreateBackupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateBackupResult : public ServiceResult - { - public: - - - CreateBackupResult(); - explicit CreateBackupResult(const std::string &payload); - ~CreateBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateBackupResult : public ServiceResult + { + public: + + + CreateBackupResult(); + explicit CreateBackupResult(const std::string &payload); + ~CreateBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEBACKUPRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h index 1226797ca..9635c9f29 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterEndpointRequest : public RpcServiceRequest - { - - public: - CreateDBClusterEndpointRequest(); - ~CreateDBClusterEndpointRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterEndpointRequest : public RpcServiceRequest + { + + public: + CreateDBClusterEndpointRequest(); + ~CreateDBClusterEndpointRequest(); + std::string getAutoAddNewNodes()const; void setAutoAddNewNodes(const std::string& autoAddNewNodes); long getResourceOwnerId()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setReadWriteMode(const std::string& readWriteMode); std::string getEndpointType()const; void setEndpointType(const std::string& endpointType); - - private: + + private: std::string autoAddNewNodes_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string nodes_; std::string readWriteMode_; std::string endpointType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointResult.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointResult.h index 05c67aafe..0d40065c6 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointResult.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterEndpointResult : public ServiceResult - { - public: - - - CreateDBClusterEndpointResult(); - explicit CreateDBClusterEndpointResult(const std::string &payload); - ~CreateDBClusterEndpointResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterEndpointResult : public ServiceResult + { + public: + + + CreateDBClusterEndpointResult(); + explicit CreateDBClusterEndpointResult(const std::string &payload); + ~CreateDBClusterEndpointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h index 28b643d4e..7e90c3b53 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterRequest : public RpcServiceRequest - { - - public: - CreateDBClusterRequest(); - ~CreateDBClusterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterRequest : public RpcServiceRequest + { + + public: + CreateDBClusterRequest(); + ~CreateDBClusterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBClusterDescription()const; @@ -81,8 +81,8 @@ namespace AlibabaCloud void setCloneDataPoint(const std::string& cloneDataPoint); std::string getPayType()const; void setPayType(const std::string& payType); - - private: + + private: long resourceOwnerId_; std::string dBClusterDescription_; std::string period_; @@ -106,9 +106,9 @@ namespace AlibabaCloud std::string sourceResourceId_; std::string cloneDataPoint_; std::string payType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterResult.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterResult.h index 08e97a080..d0e508529 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterResult.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterResult : public ServiceResult - { - public: - - - CreateDBClusterResult(); - explicit CreateDBClusterResult(const std::string &payload); - ~CreateDBClusterResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterResult : public ServiceResult + { + public: + + + CreateDBClusterResult(); + explicit CreateDBClusterResult(const std::string &payload); + ~CreateDBClusterResult(); std::string getDBClusterId()const; std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBClusterId_; std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressRequest.h index 9659fc85e..daee28809 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBEndpointAddressRequest : public RpcServiceRequest - { - - public: - CreateDBEndpointAddressRequest(); - ~CreateDBEndpointAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBEndpointAddressRequest : public RpcServiceRequest + { + + public: + CreateDBEndpointAddressRequest(); + ~CreateDBEndpointAddressRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBEndpointId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressResult.h b/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressResult.h index 8b276b7d7..cc40d86f2 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressResult.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBEndpointAddressResult : public ServiceResult - { - public: - - - CreateDBEndpointAddressResult(); - explicit CreateDBEndpointAddressResult(const std::string &payload); - ~CreateDBEndpointAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBEndpointAddressResult : public ServiceResult + { + public: + + + CreateDBEndpointAddressResult(); + explicit CreateDBEndpointAddressResult(const std::string &payload); + ~CreateDBEndpointAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBENDPOINTADDRESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h index 490d2a5e5..156b121c6 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h @@ -1,45 +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_POLARDB_MODEL_CREATEDBNODESREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBNodesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBNodesRequest : public RpcServiceRequest + { struct DBNode { std::string targetClass; std::string zoneId; }; - - public: - CreateDBNodesRequest(); - ~CreateDBNodesRequest(); - + + public: + CreateDBNodesRequest(); + ~CreateDBNodesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -56,8 +56,8 @@ namespace AlibabaCloud void setDBNode(const std::vector& dBNode); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -66,9 +66,9 @@ namespace AlibabaCloud long ownerId_; std::vector dBNode_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBNodesResult.h b/polardb/include/alibabacloud/polardb/model/CreateDBNodesResult.h index a7e118127..47c760956 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBNodesResult.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBNodesResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDBNodesResult : public ServiceResult - { - public: - - - CreateDBNodesResult(); - explicit CreateDBNodesResult(const std::string &payload); - ~CreateDBNodesResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBNodesResult : public ServiceResult + { + public: + + + CreateDBNodesResult(); + explicit CreateDBNodesResult(const std::string &payload); + ~CreateDBNodesResult(); std::string getDBClusterId()const; std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBClusterId_; std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBNODESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDatabaseRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDatabaseRequest.h index e30e2987b..0e33d9ece 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDatabaseRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDatabaseRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDatabaseRequest : public RpcServiceRequest - { - - public: - CreateDatabaseRequest(); - ~CreateDatabaseRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDatabaseRequest : public RpcServiceRequest + { + + public: + CreateDatabaseRequest(); + ~CreateDatabaseRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getAccountPrivilege()const; void setAccountPrivilege(const std::string& accountPrivilege); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string accountName_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string characterSetName_; std::string accessKeyId_; std::string accountPrivilege_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDatabaseResult.h b/polardb/include/alibabacloud/polardb/model/CreateDatabaseResult.h index f879f9c76..afec6cc64 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDatabaseResult.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDatabaseResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT CreateDatabaseResult : public ServiceResult - { - public: - - - CreateDatabaseResult(); - explicit CreateDatabaseResult(const std::string &payload); - ~CreateDatabaseResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDatabaseResult : public ServiceResult + { + public: + + + CreateDatabaseResult(); + explicit CreateDatabaseResult(const std::string &payload); + ~CreateDatabaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteAccountRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteAccountRequest.h index 25dc372f8..c40e812c6 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteAccountRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteAccountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteAccountRequest : public RpcServiceRequest - { - - public: - DeleteAccountRequest(); - ~DeleteAccountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteAccountRequest : public RpcServiceRequest + { + + public: + DeleteAccountRequest(); + ~DeleteAccountRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteAccountResult.h b/polardb/include/alibabacloud/polardb/model/DeleteAccountResult.h index e4222f27b..3716b7bc7 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteAccountResult.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteAccountResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteAccountResult : public ServiceResult - { - public: - - - DeleteAccountResult(); - explicit DeleteAccountResult(const std::string &payload); - ~DeleteAccountResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteAccountResult : public ServiceResult + { + public: + + + DeleteAccountResult(); + explicit DeleteAccountResult(const std::string &payload); + ~DeleteAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteBackupRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteBackupRequest.h index 1e7a514a9..97de9e750 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteBackupRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteBackupRequest : public RpcServiceRequest - { - - public: - DeleteBackupRequest(); - ~DeleteBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteBackupRequest : public RpcServiceRequest + { + + public: + DeleteBackupRequest(); + ~DeleteBackupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string backupId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteBackupResult.h b/polardb/include/alibabacloud/polardb/model/DeleteBackupResult.h index cd7d81830..14ea5557c 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteBackupResult.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteBackupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteBackupResult : public ServiceResult - { - public: - - - DeleteBackupResult(); - explicit DeleteBackupResult(const std::string &payload); - ~DeleteBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteBackupResult : public ServiceResult + { + public: + + + DeleteBackupResult(); + explicit DeleteBackupResult(const std::string &payload); + ~DeleteBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEBACKUPRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h index 7e2e091f6..57e8f3c00 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterEndpointRequest : public RpcServiceRequest - { - - public: - DeleteDBClusterEndpointRequest(); - ~DeleteDBClusterEndpointRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterEndpointRequest : public RpcServiceRequest + { + + public: + DeleteDBClusterEndpointRequest(); + ~DeleteDBClusterEndpointRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBEndpointId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointResult.h b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointResult.h index 21ffeec34..f55e89e84 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointResult.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterEndpointResult : public ServiceResult - { - public: - - - DeleteDBClusterEndpointResult(); - explicit DeleteDBClusterEndpointResult(const std::string &payload); - ~DeleteDBClusterEndpointResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterEndpointResult : public ServiceResult + { + public: + + + DeleteDBClusterEndpointResult(); + explicit DeleteDBClusterEndpointResult(const std::string &payload); + ~DeleteDBClusterEndpointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterRequest.h index 86e8d2a47..da9b84906 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterRequest : public RpcServiceRequest - { - - public: - DeleteDBClusterRequest(); - ~DeleteDBClusterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterRequest : public RpcServiceRequest + { + + public: + DeleteDBClusterRequest(); + ~DeleteDBClusterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterResult.h b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterResult.h index d80c5e575..e64e81a9d 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterResult.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterResult : public ServiceResult - { - public: - - - DeleteDBClusterResult(); - explicit DeleteDBClusterResult(const std::string &payload); - ~DeleteDBClusterResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterResult : public ServiceResult + { + public: + + + DeleteDBClusterResult(); + explicit DeleteDBClusterResult(const std::string &payload); + ~DeleteDBClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressRequest.h index 6831066f8..23d5b7708 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBEndpointAddressRequest : public RpcServiceRequest - { - - public: - DeleteDBEndpointAddressRequest(); - ~DeleteDBEndpointAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBEndpointAddressRequest : public RpcServiceRequest + { + + public: + DeleteDBEndpointAddressRequest(); + ~DeleteDBEndpointAddressRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBEndpointId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressResult.h b/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressResult.h index 313c996e8..c16c565d6 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressResult.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBEndpointAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBEndpointAddressResult : public ServiceResult - { - public: - - - DeleteDBEndpointAddressResult(); - explicit DeleteDBEndpointAddressResult(const std::string &payload); - ~DeleteDBEndpointAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBEndpointAddressResult : public ServiceResult + { + public: + + + DeleteDBEndpointAddressResult(); + explicit DeleteDBEndpointAddressResult(const std::string &payload); + ~DeleteDBEndpointAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBENDPOINTADDRESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h index 6a1505651..d24e36a85 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBNodesRequest : public RpcServiceRequest - { - - public: - DeleteDBNodesRequest(); - ~DeleteDBNodesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBNodesRequest : public RpcServiceRequest + { + + public: + DeleteDBNodesRequest(); + ~DeleteDBNodesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::vector getDBNodeId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::vector dBNodeId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBNodesResult.h b/polardb/include/alibabacloud/polardb/model/DeleteDBNodesResult.h index f61203e8b..f1e727ec9 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBNodesResult.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBNodesResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDBNodesResult : public ServiceResult - { - public: - - - DeleteDBNodesResult(); - explicit DeleteDBNodesResult(const std::string &payload); - ~DeleteDBNodesResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBNodesResult : public ServiceResult + { + public: + + + DeleteDBNodesResult(); + explicit DeleteDBNodesResult(const std::string &payload); + ~DeleteDBNodesResult(); std::string getDBClusterId()const; std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBClusterId_; std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBNODESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDatabaseRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseRequest.h index 6e9782021..c605dc2f6 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDatabaseRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDatabaseRequest : public RpcServiceRequest - { - - public: - DeleteDatabaseRequest(); - ~DeleteDatabaseRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDatabaseRequest : public RpcServiceRequest + { + + public: + DeleteDatabaseRequest(); + ~DeleteDatabaseRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDatabaseResult.h b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseResult.h index b09f259d1..0c4b587f8 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDatabaseResult.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DeleteDatabaseResult : public ServiceResult - { - public: - - - DeleteDatabaseResult(); - explicit DeleteDatabaseResult(const std::string &payload); - ~DeleteDatabaseResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDatabaseResult : public ServiceResult + { + public: + + + DeleteDatabaseResult(); + explicit DeleteDatabaseResult(const std::string &payload); + ~DeleteDatabaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h index 1994c3013..42a88cb21 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeAccountsRequest : public RpcServiceRequest - { - - public: - DescribeAccountsRequest(); - ~DescribeAccountsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h index 1f5dec2c9..44c4d2527 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeAccountsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAccountsResult : public ServiceResult + { + public: struct DBAccount { struct DatabasePrivilege @@ -46,20 +46,20 @@ namespace AlibabaCloud std::vector databasePrivileges; std::string accountName; }; - - - DescribeAccountsResult(); - explicit DescribeAccountsResult(const std::string &payload); - ~DescribeAccountsResult(); + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); std::vector getAccounts()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector accounts_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h index 0dbf64478..a4d4287fd 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - DescribeAutoRenewAttributeRequest(); - ~DescribeAutoRenewAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAutoRenewAttributeRequest : public RpcServiceRequest + { + + public: + DescribeAutoRenewAttributeRequest(); + ~DescribeAutoRenewAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getDBClusterIds()const; void setDBClusterIds(const std::string& dBClusterIds); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int pageNumber_; std::string accessKeyId_; std::string dBClusterIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeResult.h index 832b1a93f..2e8e745e0 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeAutoRenewAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAutoRenewAttributeResult : public ServiceResult + { + public: struct AutoRenewAttribute { bool autoRenewEnabled; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string regionId; std::string periodUnit; }; - - - DescribeAutoRenewAttributeResult(); - explicit DescribeAutoRenewAttributeResult(const std::string &payload); - ~DescribeAutoRenewAttributeResult(); + + + DescribeAutoRenewAttributeResult(); + explicit DescribeAutoRenewAttributeResult(const std::string &payload); + ~DescribeAutoRenewAttributeResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyRequest.h index 4eb598ca6..7723ad41f 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest - { - - public: - DescribeBackupPolicyRequest(); - ~DescribeBackupPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest + { + + public: + DescribeBackupPolicyRequest(); + ~DescribeBackupPolicyRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h index 1df278d51..cbda0739d 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h @@ -1,57 +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_POLARDB_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupPolicyResult : public ServiceResult - { - public: - - - DescribeBackupPolicyResult(); - explicit DescribeBackupPolicyResult(const std::string &payload); - ~DescribeBackupPolicyResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupPolicyResult : public ServiceResult + { + public: + + + DescribeBackupPolicyResult(); + explicit DescribeBackupPolicyResult(const std::string &payload); + ~DescribeBackupPolicyResult(); std::string getPreferredBackupPeriod()const; std::string getPreferredBackupTime()const; int getBackupRetentionPeriod()const; std::string getPreferredNextBackupTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string preferredBackupPeriod_; std::string preferredBackupTime_; int backupRetentionPeriod_; std::string preferredNextBackupTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupsRequest.h index caca2b9f2..b1c6ece2f 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupsRequest : public RpcServiceRequest - { - - public: - DescribeBackupsRequest(); - ~DescribeBackupsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupsRequest : public RpcServiceRequest + { + + public: + DescribeBackupsRequest(); + ~DescribeBackupsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getBackupMode()const; void setBackupMode(const std::string& backupMode); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string backupStatus_; int pageSize_; std::string backupMode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h index 5d38d2bd5..ab1bb117a 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupsResult : public ServiceResult + { + public: struct Backup { std::string backupMethod; @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string backupType; std::string backupStatus; }; - - - DescribeBackupsResult(); - explicit DescribeBackupsResult(const std::string &payload); - ~DescribeBackupsResult(); + + + DescribeBackupsResult(); + explicit DescribeBackupsResult(const std::string &payload); + ~DescribeBackupsResult(); std::string getTotalRecordCount()const; std::string getPageRecordCount()const; std::string getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string totalRecordCount_; std::string pageRecordCount_; std::string pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistRequest.h index 87f611f6f..0d184eb9f 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAccessWhitelistRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterAccessWhitelistRequest(); - ~DescribeDBClusterAccessWhitelistRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAccessWhitelistRequest : public RpcServiceRequest + { + + public: + DescribeDBClusterAccessWhitelistRequest(); + ~DescribeDBClusterAccessWhitelistRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h index 4ba312285..9dccd93eb 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h @@ -1,57 +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_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAccessWhitelistResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAccessWhitelistResult : public ServiceResult + { + public: struct DBClusterIPArray { std::string securityIps; std::string dBClusterIPArrayName; std::string dBClusterIPArrayAttribute; }; - - - DescribeDBClusterAccessWhitelistResult(); - explicit DescribeDBClusterAccessWhitelistResult(const std::string &payload); - ~DescribeDBClusterAccessWhitelistResult(); + + + DescribeDBClusterAccessWhitelistResult(); + explicit DescribeDBClusterAccessWhitelistResult(const std::string &payload); + ~DescribeDBClusterAccessWhitelistResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h index c00ad29b5..68a25f420 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAttributeRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterAttributeRequest(); - ~DescribeDBClusterAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAttributeRequest : public RpcServiceRequest + { + + public: + DescribeDBClusterAttributeRequest(); + ~DescribeDBClusterAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h index 9227969f3..b77b0274e 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAttributeResult : public ServiceResult + { + public: struct Tag { std::string value; @@ -48,11 +48,11 @@ namespace AlibabaCloud std::string dBNodeClass; int maxIOPS; }; - - - DescribeDBClusterAttributeResult(); - explicit DescribeDBClusterAttributeResult(const std::string &payload); - ~DescribeDBClusterAttributeResult(); + + + DescribeDBClusterAttributeResult(); + explicit DescribeDBClusterAttributeResult(const std::string &payload); + ~DescribeDBClusterAttributeResult(); int getDeletionLock()const; std::string getVPCId()const; std::string getDBClusterStatus()const; @@ -67,7 +67,7 @@ namespace AlibabaCloud long getStorageUsed()const; bool getIsLatestVersion()const; std::string getDBVersion()const; - int getStorageMax()const; + long getStorageMax()const; std::vector getDBNodes()const; std::string getCreationTime()const; std::string getRegionId()const; @@ -77,10 +77,10 @@ namespace AlibabaCloud std::string getMaintainTime()const; std::vector getTags()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int deletionLock_; std::string vPCId_; std::string dBClusterStatus_; @@ -95,7 +95,7 @@ namespace AlibabaCloud long storageUsed_; bool isLatestVersion_; std::string dBVersion_; - int storageMax_; + long storageMax_; std::vector dBNodes_; std::string creationTime_; std::string regionId_; @@ -105,9 +105,9 @@ namespace AlibabaCloud std::string maintainTime_; std::vector tags_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h index 410c445bc..5310f71ba 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEndpointsRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterEndpointsRequest(); - ~DescribeDBClusterEndpointsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEndpointsRequest : public RpcServiceRequest + { + + public: + DescribeDBClusterEndpointsRequest(); + ~DescribeDBClusterEndpointsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBEndpointId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h index 9981a538d..a7447845e 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEndpointsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEndpointsResult : public ServiceResult + { + public: struct DBEndpoint { struct Address @@ -51,20 +51,20 @@ namespace AlibabaCloud std::string readWriteMode; std::string endpointConfig; }; - - - DescribeDBClusterEndpointsResult(); - explicit DescribeDBClusterEndpointsResult(const std::string &payload); - ~DescribeDBClusterEndpointsResult(); + + + DescribeDBClusterEndpointsResult(); + explicit DescribeDBClusterEndpointsResult(const std::string &payload); + ~DescribeDBClusterEndpointsResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationRequest.h index c48be8322..fdde981b5 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterMigrationRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterMigrationRequest(); - ~DescribeDBClusterMigrationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterMigrationRequest : public RpcServiceRequest + { + + public: + DescribeDBClusterMigrationRequest(); + ~DescribeDBClusterMigrationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSecurityToken()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string securityToken_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h index 2fa80724c..0e72edea8 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h @@ -1,42 +1,43 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterMigrationResult : public ServiceResult - { - public: - - - DescribeDBClusterMigrationResult(); - explicit DescribeDBClusterMigrationResult(const std::string &payload); - ~DescribeDBClusterMigrationResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterMigrationResult : public ServiceResult + { + public: + + + DescribeDBClusterMigrationResult(); + explicit DescribeDBClusterMigrationResult(const std::string &payload); + ~DescribeDBClusterMigrationResult(); + std::string getComment()const; std::string getExpiredTime()const; std::string getDBClusterId()const; std::string getTopologies()const; @@ -45,10 +46,11 @@ namespace AlibabaCloud int getDelayedSeconds()const; std::string getDBClusterReadWriteMode()const; std::string getMigrationStatus()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: + std::string comment_; std::string expiredTime_; std::string dBClusterId_; std::string topologies_; @@ -57,9 +59,9 @@ namespace AlibabaCloud int delayedSeconds_; std::string dBClusterReadWriteMode_; std::string migrationStatus_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMIGRATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersRequest.h index 7f5dcbe3d..376a8c3ad 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterParametersRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterParametersRequest(); - ~DescribeDBClusterParametersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterParametersRequest : public RpcServiceRequest + { + + public: + DescribeDBClusterParametersRequest(); + ~DescribeDBClusterParametersRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h index b97e7bbfa..382ca5c50 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterParametersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterParametersResult : public ServiceResult + { + public: struct Parameter { std::string defaultParameterValue; @@ -44,26 +44,26 @@ namespace AlibabaCloud std::string parameterName; std::string parameterDescription; }; - - - DescribeDBClusterParametersResult(); - explicit DescribeDBClusterParametersResult(const std::string &payload); - ~DescribeDBClusterParametersResult(); + + + DescribeDBClusterParametersResult(); + explicit DescribeDBClusterParametersResult(const std::string &payload); + ~DescribeDBClusterParametersResult(); std::vector getRunningParameters()const; std::string getDBVersion()const; std::string getDBType()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector runningParameters_; std::string dBVersion_; std::string dBType_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersRequest.h index 5351aaf34..0e2fd1011 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersRequest.h @@ -1,45 +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_POLARDB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClustersRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClustersRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeDBClustersRequest(); - ~DescribeDBClustersRequest(); - + + public: + DescribeDBClustersRequest(); + ~DescribeDBClustersRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBClusterDescription()const; @@ -66,8 +66,8 @@ namespace AlibabaCloud void setTag(const std::vector& tag); std::string getDBClusterIds()const; void setDBClusterIds(const std::string& dBClusterIds); - - private: + + private: long resourceOwnerId_; std::string dBClusterDescription_; std::string dBClusterStatus_; @@ -81,9 +81,9 @@ namespace AlibabaCloud int pageSize_; std::vector tag_; std::string dBClusterIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h index dc99a45f9..9f1a09647 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClustersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClustersResult : public ServiceResult + { + public: struct DBCluster { struct DBNode @@ -69,26 +69,26 @@ namespace AlibabaCloud std::vector tags; std::string engine; }; - - - DescribeDBClustersResult(); - explicit DescribeDBClustersResult(const std::string &payload); - ~DescribeDBClustersResult(); + + + DescribeDBClustersResult(); + explicit DescribeDBClustersResult(const std::string &payload); + ~DescribeDBClustersResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDatabasesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesRequest.h index a85042ce0..06b0b76f0 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDatabasesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDatabasesRequest : public RpcServiceRequest - { - - public: - DescribeDatabasesRequest(); - ~DescribeDatabasesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDatabasesRequest : public RpcServiceRequest + { + + public: + DescribeDatabasesRequest(); + ~DescribeDatabasesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDatabasesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesResult.h index 24c4c0f7d..c14939dd1 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDatabasesResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeDatabasesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDatabasesResult : public ServiceResult + { + public: struct Database { struct Account @@ -48,20 +48,20 @@ namespace AlibabaCloud std::vector accounts; std::string engine; }; - - - DescribeDatabasesResult(); - explicit DescribeDatabasesResult(const std::string &payload); - ~DescribeDatabasesResult(); + + + DescribeDatabasesResult(); + explicit DescribeDatabasesResult(const std::string &payload); + ~DescribeDatabasesResult(); std::vector getDatabases()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector databases_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeRegionsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeRegionsRequest.h index 55951c95f..68411282e 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeRegionsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeRegionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeRegionsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeRegionsResult.h index 27e6ad9f3..e9675d1ee 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeRegionsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeRegionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeRegionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeRegionsResult : public ServiceResult + { + public: struct Region { struct Zone @@ -42,20 +42,20 @@ namespace AlibabaCloud std::string regionId; std::vector zones; }; - - - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); std::vector getRegions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector regions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeRequest.h b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeRequest.h index 4cd09cd79..874c40b47 100644 --- a/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT GrantAccountPrivilegeRequest : public RpcServiceRequest - { - - public: - GrantAccountPrivilegeRequest(); - ~GrantAccountPrivilegeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT GrantAccountPrivilegeRequest : public RpcServiceRequest + { + + public: + GrantAccountPrivilegeRequest(); + ~GrantAccountPrivilegeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getAccountPrivilege()const; void setAccountPrivilege(const std::string& accountPrivilege); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string dBName_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string accessKeyId_; std::string accountPrivilege_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeResult.h b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeResult.h index 4f6ffc6da..1b430f7be 100644 --- a/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeResult.h +++ b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT GrantAccountPrivilegeResult : public ServiceResult - { - public: - - - GrantAccountPrivilegeResult(); - explicit GrantAccountPrivilegeResult(const std::string &payload); - ~GrantAccountPrivilegeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT GrantAccountPrivilegeResult : public ServiceResult + { + public: + + + GrantAccountPrivilegeResult(); + explicit GrantAccountPrivilegeResult(const std::string &payload); + ~GrantAccountPrivilegeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ListTagResourcesRequest.h b/polardb/include/alibabacloud/polardb/model/ListTagResourcesRequest.h index d678ab927..c6bba52bb 100644 --- a/polardb/include/alibabacloud/polardb/model/ListTagResourcesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ListTagResourcesRequest.h @@ -1,45 +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_POLARDB_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::vector getResourceId()const; @@ -60,8 +60,8 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::vector resourceId_; std::string resourceOwnerAccount_; @@ -72,9 +72,9 @@ namespace AlibabaCloud long ownerId_; std::string resourceType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ListTagResourcesResult.h b/polardb/include/alibabacloud/polardb/model/ListTagResourcesResult.h index 392125dc9..fd0d01573 100644 --- a/polardb/include/alibabacloud/polardb/model/ListTagResourcesResult.h +++ b/polardb/include/alibabacloud/polardb/model/ListTagResourcesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ListTagResourcesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ListTagResourcesResult : public ServiceResult + { + public: struct TagResource { std::string resourceId; @@ -39,22 +39,22 @@ namespace AlibabaCloud std::string resourceType; std::string tagValue; }; - - - ListTagResourcesResult(); - explicit ListTagResourcesResult(const std::string &payload); - ~ListTagResourcesResult(); + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); std::string getNextToken()const; std::vector getTagResources()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string nextToken_; std::vector tagResources_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionRequest.h b/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionRequest.h index 25c3853da..b0196dc64 100644 --- a/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT LockDBClusterDeletionRequest : public RpcServiceRequest - { - - public: - LockDBClusterDeletionRequest(); - ~LockDBClusterDeletionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT LockDBClusterDeletionRequest : public RpcServiceRequest + { + + public: + LockDBClusterDeletionRequest(); + ~LockDBClusterDeletionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionResult.h b/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionResult.h index 7259890f6..798c8f359 100644 --- a/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionResult.h +++ b/polardb/include/alibabacloud/polardb/model/LockDBClusterDeletionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT LockDBClusterDeletionResult : public ServiceResult - { - public: - - - LockDBClusterDeletionResult(); - explicit LockDBClusterDeletionResult(const std::string &payload); - ~LockDBClusterDeletionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT LockDBClusterDeletionResult : public ServiceResult + { + public: + + + LockDBClusterDeletionResult(); + explicit LockDBClusterDeletionResult(const std::string &payload); + ~LockDBClusterDeletionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_LOCKDBCLUSTERDELETIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionRequest.h index d4d18bcc0..746885003 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyAccountDescriptionRequest(); - ~ModifyAccountDescriptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyAccountDescriptionRequest(); + ~ModifyAccountDescriptionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAccountDescription(const std::string& accountDescription); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string accountDescription_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h index 43d4a7b28..cfa4d348f 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountDescriptionResult : public ServiceResult - { - public: - - - ModifyAccountDescriptionResult(); - explicit ModifyAccountDescriptionResult(const std::string &payload); - ~ModifyAccountDescriptionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountDescriptionResult : public ServiceResult + { + public: + + + ModifyAccountDescriptionResult(); + explicit ModifyAccountDescriptionResult(const std::string &payload); + ~ModifyAccountDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h index 80c3d164e..bdaf337b4 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountPasswordRequest : public RpcServiceRequest - { - - public: - ModifyAccountPasswordRequest(); - ~ModifyAccountPasswordRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountPasswordRequest : public RpcServiceRequest + { + + public: + ModifyAccountPasswordRequest(); + ~ModifyAccountPasswordRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string newAccountPassword_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordResult.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordResult.h index 80aa6f2a8..1f1663856 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountPasswordResult : public ServiceResult - { - public: - - - ModifyAccountPasswordResult(); - explicit ModifyAccountPasswordResult(const std::string &payload); - ~ModifyAccountPasswordResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountPasswordResult : public ServiceResult + { + public: + + + ModifyAccountPasswordResult(); + explicit ModifyAccountPasswordResult(const std::string &payload); + ~ModifyAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h index 1711d5495..fe6cf0a85 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - ModifyAutoRenewAttributeRequest(); - ~ModifyAutoRenewAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAutoRenewAttributeRequest : public RpcServiceRequest + { + + public: + ModifyAutoRenewAttributeRequest(); + ~ModifyAutoRenewAttributeRequest(); + std::string getDuration()const; void setDuration(const std::string& duration); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getDBClusterIds()const; void setDBClusterIds(const std::string& dBClusterIds); - - private: + + private: std::string duration_; long resourceOwnerId_; std::string periodUnit_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string accessKeyId_; std::string dBClusterIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h b/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h index 6379b5f87..304a08091 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyAutoRenewAttributeResult : public ServiceResult - { - public: - - - ModifyAutoRenewAttributeResult(); - explicit ModifyAutoRenewAttributeResult(const std::string &payload); - ~ModifyAutoRenewAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAutoRenewAttributeResult : public ServiceResult + { + public: + + + ModifyAutoRenewAttributeResult(); + explicit ModifyAutoRenewAttributeResult(const std::string &payload); + ~ModifyAutoRenewAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h index c706e660c..d0805e40f 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest - { - - public: - ModifyBackupPolicyRequest(); - ~ModifyBackupPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest + { + + public: + ModifyBackupPolicyRequest(); + ~ModifyBackupPolicyRequest(); + std::string getPreferredBackupTime()const; void setPreferredBackupTime(const std::string& preferredBackupTime); std::string getPreferredBackupPeriod()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string preferredBackupTime_; std::string preferredBackupPeriod_; std::string backupRetentionPeriod_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h b/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h index 3090906f3..82716a795 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyBackupPolicyResult : public ServiceResult - { - public: - - - ModifyBackupPolicyResult(); - explicit ModifyBackupPolicyResult(const std::string &payload); - ~ModifyBackupPolicyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyBackupPolicyResult : public ServiceResult + { + public: + + + ModifyBackupPolicyResult(); + explicit ModifyBackupPolicyResult(const std::string &payload); + ~ModifyBackupPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h index 5c88e8ef8..f2227e5a6 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterAccessWhitelistRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterAccessWhitelistRequest(); - ~ModifyDBClusterAccessWhitelistRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterAccessWhitelistRequest : public RpcServiceRequest + { + + public: + ModifyDBClusterAccessWhitelistRequest(); + ~ModifyDBClusterAccessWhitelistRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setDBClusterIPArrayAttribute(const std::string& dBClusterIPArrayAttribute); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string dBClusterIPArrayAttribute_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h index 90e93dd24..eb6cf977d 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterAccessWhitelistResult : public ServiceResult - { - public: - - - ModifyDBClusterAccessWhitelistResult(); - explicit ModifyDBClusterAccessWhitelistResult(const std::string &payload); - ~ModifyDBClusterAccessWhitelistResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterAccessWhitelistResult : public ServiceResult + { + public: + + + ModifyDBClusterAccessWhitelistResult(); + explicit ModifyDBClusterAccessWhitelistResult(const std::string &payload); + ~ModifyDBClusterAccessWhitelistResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h index 15bb96722..c2b940cf5 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterDescriptionRequest(); - ~ModifyDBClusterDescriptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyDBClusterDescriptionRequest(); + ~ModifyDBClusterDescriptionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBClusterDescription()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBClusterDescription_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h index bdd119a7c..83dc01bce 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterDescriptionResult : public ServiceResult - { - public: - - - ModifyDBClusterDescriptionResult(); - explicit ModifyDBClusterDescriptionResult(const std::string &payload); - ~ModifyDBClusterDescriptionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterDescriptionResult : public ServiceResult + { + public: + + + ModifyDBClusterDescriptionResult(); + explicit ModifyDBClusterDescriptionResult(const std::string &payload); + ~ModifyDBClusterDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h index 8a547019d..d45d5b79c 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterEndpointRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterEndpointRequest(); - ~ModifyDBClusterEndpointRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterEndpointRequest : public RpcServiceRequest + { + + public: + ModifyDBClusterEndpointRequest(); + ~ModifyDBClusterEndpointRequest(); + std::string getAutoAddNewNodes()const; void setAutoAddNewNodes(const std::string& autoAddNewNodes); long getResourceOwnerId()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string autoAddNewNodes_; long resourceOwnerId_; std::string nodes_; @@ -70,9 +70,9 @@ namespace AlibabaCloud std::string endpointConfig_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointResult.h index cfe0284e0..103de321f 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterEndpointResult : public ServiceResult - { - public: - - - ModifyDBClusterEndpointResult(); - explicit ModifyDBClusterEndpointResult(const std::string &payload); - ~ModifyDBClusterEndpointResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterEndpointResult : public ServiceResult + { + public: + + + ModifyDBClusterEndpointResult(); + explicit ModifyDBClusterEndpointResult(const std::string &payload); + ~ModifyDBClusterEndpointResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeRequest.h index 190714086..9b7f30412 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMaintainTimeRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterMaintainTimeRequest(); - ~ModifyDBClusterMaintainTimeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMaintainTimeRequest : public RpcServiceRequest + { + + public: + ModifyDBClusterMaintainTimeRequest(); + ~ModifyDBClusterMaintainTimeRequest(); + std::string getMaintainTime()const; void setMaintainTime(const std::string& maintainTime); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string maintainTime_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeResult.h index d6f5a6c4a..16bbb3aa4 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMaintainTimeResult : public ServiceResult - { - public: - - - ModifyDBClusterMaintainTimeResult(); - explicit ModifyDBClusterMaintainTimeResult(const std::string &payload); - ~ModifyDBClusterMaintainTimeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMaintainTimeResult : public ServiceResult + { + public: + + + ModifyDBClusterMaintainTimeResult(); + explicit ModifyDBClusterMaintainTimeResult(const std::string &payload); + ~ModifyDBClusterMaintainTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMAINTAINTIMERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h index b7cf0ae0d..44b6a921a 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMigrationRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterMigrationRequest(); - ~ModifyDBClusterMigrationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMigrationRequest : public RpcServiceRequest + { + + public: + ModifyDBClusterMigrationRequest(); + ~ModifyDBClusterMigrationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSecurityToken()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string securityToken_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string newMasterInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h index 0c29aeea1..775302415 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMigrationResult : public ServiceResult - { - public: - - - ModifyDBClusterMigrationResult(); - explicit ModifyDBClusterMigrationResult(const std::string &payload); - ~ModifyDBClusterMigrationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMigrationResult : public ServiceResult + { + public: + + + ModifyDBClusterMigrationResult(); + explicit ModifyDBClusterMigrationResult(const std::string &payload); + ~ModifyDBClusterMigrationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h index 824050fb3..fd74c5adf 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterParametersRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterParametersRequest(); - ~ModifyDBClusterParametersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterParametersRequest : public RpcServiceRequest + { + + public: + ModifyDBClusterParametersRequest(); + ~ModifyDBClusterParametersRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setParameters(const std::string& parameters); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string effectiveTime_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string parameters_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersResult.h index f3f149d65..b0ee24c72 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterParametersResult : public ServiceResult - { - public: - - - ModifyDBClusterParametersResult(); - explicit ModifyDBClusterParametersResult(const std::string &payload); - ~ModifyDBClusterParametersResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterParametersResult : public ServiceResult + { + public: + + + ModifyDBClusterParametersResult(); + explicit ModifyDBClusterParametersResult(const std::string &payload); + ~ModifyDBClusterParametersResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionRequest.h index 7e8472e61..be6b83fe8 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyDBDescriptionRequest(); - ~ModifyDBDescriptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyDBDescriptionRequest(); + ~ModifyDBDescriptionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBDescription_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionResult.h index 6e2346fe0..94c0e1bb6 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBDescriptionResult : public ServiceResult - { - public: - - - ModifyDBDescriptionResult(); - explicit ModifyDBDescriptionResult(const std::string &payload); - ~ModifyDBDescriptionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBDescriptionResult : public ServiceResult + { + public: + + + ModifyDBDescriptionResult(); + explicit ModifyDBDescriptionResult(const std::string &payload); + ~ModifyDBDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h index a347d5231..a862f562e 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBEndpointAddressRequest : public RpcServiceRequest - { - - public: - ModifyDBEndpointAddressRequest(); - ~ModifyDBEndpointAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBEndpointAddressRequest : public RpcServiceRequest + { + + public: + ModifyDBEndpointAddressRequest(); + ~ModifyDBEndpointAddressRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBEndpointId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressResult.h index 91ed1140e..35199d01a 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBEndpointAddressResult : public ServiceResult - { - public: - - - ModifyDBEndpointAddressResult(); - explicit ModifyDBEndpointAddressResult(const std::string &payload); - ~ModifyDBEndpointAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBEndpointAddressResult : public ServiceResult + { + public: + + + ModifyDBEndpointAddressResult(); + explicit ModifyDBEndpointAddressResult(const std::string &payload); + ~ModifyDBEndpointAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBENDPOINTADDRESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h index 15e9d8bdd..69cec85b4 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeClassRequest : public RpcServiceRequest - { - - public: - ModifyDBNodeClassRequest(); - ~ModifyDBNodeClassRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeClassRequest : public RpcServiceRequest + { + + public: + ModifyDBNodeClassRequest(); + ~ModifyDBNodeClassRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBNodeTargetClass_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassResult.h index 9bee29191..cd6133d6f 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassResult.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeClassResult : public ServiceResult - { - public: - - - ModifyDBNodeClassResult(); - explicit ModifyDBNodeClassResult(const std::string &payload); - ~ModifyDBNodeClassResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeClassResult : public ServiceResult + { + public: + + + ModifyDBNodeClassResult(); + explicit ModifyDBNodeClassResult(const std::string &payload); + ~ModifyDBNodeClassResult(); std::string getDBClusterId()const; std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBClusterId_; std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECLASSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ResetAccountRequest.h b/polardb/include/alibabacloud/polardb/model/ResetAccountRequest.h index 58afcd3ac..5c02f7721 100644 --- a/polardb/include/alibabacloud/polardb/model/ResetAccountRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ResetAccountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ResetAccountRequest : public RpcServiceRequest - { - - public: - ResetAccountRequest(); - ~ResetAccountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ResetAccountRequest : public RpcServiceRequest + { + + public: + ResetAccountRequest(); + ~ResetAccountRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountPassword()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountPassword_; std::string accountName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ResetAccountResult.h b/polardb/include/alibabacloud/polardb/model/ResetAccountResult.h index 8c927c23b..4bec70c54 100644 --- a/polardb/include/alibabacloud/polardb/model/ResetAccountResult.h +++ b/polardb/include/alibabacloud/polardb/model/ResetAccountResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT ResetAccountResult : public ServiceResult - { - public: - - - ResetAccountResult(); - explicit ResetAccountResult(const std::string &payload); - ~ResetAccountResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ResetAccountResult : public ServiceResult + { + public: + + + ResetAccountResult(); + explicit ResetAccountResult(const std::string &payload); + ~ResetAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h b/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h index b55bb2ef1..d2b29b82d 100644 --- a/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT RestartDBNodeRequest : public RpcServiceRequest - { - - public: - RestartDBNodeRequest(); - ~RestartDBNodeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT RestartDBNodeRequest : public RpcServiceRequest + { + + public: + RestartDBNodeRequest(); + ~RestartDBNodeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBNodeId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBNodeId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/RestartDBNodeResult.h b/polardb/include/alibabacloud/polardb/model/RestartDBNodeResult.h index 78a14ba64..ece4c6be7 100644 --- a/polardb/include/alibabacloud/polardb/model/RestartDBNodeResult.h +++ b/polardb/include/alibabacloud/polardb/model/RestartDBNodeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT RestartDBNodeResult : public ServiceResult - { - public: - - - RestartDBNodeResult(); - explicit RestartDBNodeResult(const std::string &payload); - ~RestartDBNodeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT RestartDBNodeResult : public ServiceResult + { + public: + + + RestartDBNodeResult(); + explicit RestartDBNodeResult(const std::string &payload); + ~RestartDBNodeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeRequest.h b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeRequest.h index c630d337e..1f7ac97e1 100644 --- a/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT RevokeAccountPrivilegeRequest : public RpcServiceRequest - { - - public: - RevokeAccountPrivilegeRequest(); - ~RevokeAccountPrivilegeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT RevokeAccountPrivilegeRequest : public RpcServiceRequest + { + + public: + RevokeAccountPrivilegeRequest(); + ~RevokeAccountPrivilegeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string dBName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeResult.h b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeResult.h index 89f226688..0dbd0a1ff 100644 --- a/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeResult.h +++ b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT RevokeAccountPrivilegeResult : public ServiceResult - { - public: - - - RevokeAccountPrivilegeResult(); - explicit RevokeAccountPrivilegeResult(const std::string &payload); - ~RevokeAccountPrivilegeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT RevokeAccountPrivilegeResult : public ServiceResult + { + public: + + + RevokeAccountPrivilegeResult(); + explicit RevokeAccountPrivilegeResult(const std::string &payload); + ~RevokeAccountPrivilegeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/TagResourcesRequest.h b/polardb/include/alibabacloud/polardb/model/TagResourcesRequest.h index c4c1c2a30..9da0c588f 100644 --- a/polardb/include/alibabacloud/polardb/model/TagResourcesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/TagResourcesRequest.h @@ -1,45 +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_POLARDB_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT TagResourcesRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT TagResourcesRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::vector getResourceId()const; @@ -58,8 +58,8 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::vector resourceId_; std::string resourceOwnerAccount_; @@ -69,9 +69,9 @@ namespace AlibabaCloud long ownerId_; std::string resourceType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/TagResourcesResult.h b/polardb/include/alibabacloud/polardb/model/TagResourcesResult.h index 5a0d10b65..8aebb8832 100644 --- a/polardb/include/alibabacloud/polardb/model/TagResourcesResult.h +++ b/polardb/include/alibabacloud/polardb/model/TagResourcesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT TagResourcesResult : public ServiceResult - { - public: - - - TagResourcesResult(); - explicit TagResourcesResult(const std::string &payload); - ~TagResourcesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionRequest.h b/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionRequest.h index 7c7f0be7f..0789f1f0c 100644 --- a/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT UnlockDBClusterDeletionRequest : public RpcServiceRequest - { - - public: - UnlockDBClusterDeletionRequest(); - ~UnlockDBClusterDeletionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT UnlockDBClusterDeletionRequest : public RpcServiceRequest + { + + public: + UnlockDBClusterDeletionRequest(); + ~UnlockDBClusterDeletionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionResult.h b/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionResult.h index 27d0936ed..ba2ca074c 100644 --- a/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionResult.h +++ b/polardb/include/alibabacloud/polardb/model/UnlockDBClusterDeletionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT UnlockDBClusterDeletionResult : public ServiceResult - { - public: - - - UnlockDBClusterDeletionResult(); - explicit UnlockDBClusterDeletionResult(const std::string &payload); - ~UnlockDBClusterDeletionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT UnlockDBClusterDeletionResult : public ServiceResult + { + public: + + + UnlockDBClusterDeletionResult(); + explicit UnlockDBClusterDeletionResult(const std::string &payload); + ~UnlockDBClusterDeletionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UntagResourcesRequest.h b/polardb/include/alibabacloud/polardb/model/UntagResourcesRequest.h index f03cbfc2d..696320e76 100644 --- a/polardb/include/alibabacloud/polardb/model/UntagResourcesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/UntagResourcesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll()const; void setAll(bool all); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: bool all_; long resourceOwnerId_; std::vector resourceId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::vector tagKey_; std::string resourceType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UntagResourcesResult.h b/polardb/include/alibabacloud/polardb/model/UntagResourcesResult.h index bd2d916fa..131806eb8 100644 --- a/polardb/include/alibabacloud/polardb/model/UntagResourcesResult.h +++ b/polardb/include/alibabacloud/polardb/model/UntagResourcesResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT UntagResourcesResult : public ServiceResult - { - public: - - - UntagResourcesResult(); - explicit UntagResourcesResult(const std::string &payload); - ~UntagResourcesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_POLARDB_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/polardb/src/PolardbClient.cc b/polardb/src/PolardbClient.cc new file mode 100644 index 000000000..7b4068ccb --- /dev/null +++ b/polardb/src/PolardbClient.cc @@ -0,0 +1,1889 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +namespace +{ + const std::string SERVICE_NAME = "polardb"; +} + +PolardbClient::PolardbClient(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, "polardb"); +} + +PolardbClient::PolardbClient(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, "polardb"); +} + +PolardbClient::PolardbClient(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, "polardb"); +} + +PolardbClient::~PolardbClient() +{} + +PolardbClient::ListTagResourcesOutcome PolardbClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void PolardbClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ListTagResourcesOutcomeCallable PolardbClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteBackupOutcome PolardbClient::deleteBackup(const DeleteBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBackupOutcome(DeleteBackupResult(outcome.result())); + else + return DeleteBackupOutcome(outcome.error()); +} + +void PolardbClient::deleteBackupAsync(const DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteBackupOutcomeCallable PolardbClient::deleteBackupCallable(const DeleteBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDatabasesOutcome PolardbClient::describeDatabases(const DescribeDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabasesOutcome(DescribeDatabasesResult(outcome.result())); + else + return DescribeDatabasesOutcome(outcome.error()); +} + +void PolardbClient::describeDatabasesAsync(const DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDatabasesOutcomeCallable PolardbClient::describeDatabasesCallable(const DescribeDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDBClusterMigrationOutcome PolardbClient::describeDBClusterMigration(const DescribeDBClusterMigrationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterMigrationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterMigrationOutcome(DescribeDBClusterMigrationResult(outcome.result())); + else + return DescribeDBClusterMigrationOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterMigrationAsync(const DescribeDBClusterMigrationRequest& request, const DescribeDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterMigration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterMigrationOutcomeCallable PolardbClient::describeDBClusterMigrationCallable(const DescribeDBClusterMigrationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterMigration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::UntagResourcesOutcome PolardbClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void PolardbClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::UntagResourcesOutcomeCallable PolardbClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyAccountDescriptionOutcome PolardbClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountDescriptionOutcome(ModifyAccountDescriptionResult(outcome.result())); + else + return ModifyAccountDescriptionOutcome(outcome.error()); +} + +void PolardbClient::modifyAccountDescriptionAsync(const ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyAccountDescriptionOutcomeCallable PolardbClient::modifyAccountDescriptionCallable(const ModifyAccountDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::RevokeAccountPrivilegeOutcome PolardbClient::revokeAccountPrivilege(const RevokeAccountPrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeAccountPrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeAccountPrivilegeOutcome(RevokeAccountPrivilegeResult(outcome.result())); + else + return RevokeAccountPrivilegeOutcome(outcome.error()); +} + +void PolardbClient::revokeAccountPrivilegeAsync(const RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeAccountPrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::RevokeAccountPrivilegeOutcomeCallable PolardbClient::revokeAccountPrivilegeCallable(const RevokeAccountPrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeAccountPrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyAutoRenewAttributeOutcome PolardbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAutoRenewAttributeOutcome(ModifyAutoRenewAttributeResult(outcome.result())); + else + return ModifyAutoRenewAttributeOutcome(outcome.error()); +} + +void PolardbClient::modifyAutoRenewAttributeAsync(const ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyAutoRenewAttributeOutcomeCallable PolardbClient::modifyAutoRenewAttributeCallable(const ModifyAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::UnlockDBClusterDeletionOutcome PolardbClient::unlockDBClusterDeletion(const UnlockDBClusterDeletionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnlockDBClusterDeletionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnlockDBClusterDeletionOutcome(UnlockDBClusterDeletionResult(outcome.result())); + else + return UnlockDBClusterDeletionOutcome(outcome.error()); +} + +void PolardbClient::unlockDBClusterDeletionAsync(const UnlockDBClusterDeletionRequest& request, const UnlockDBClusterDeletionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unlockDBClusterDeletion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::UnlockDBClusterDeletionOutcomeCallable PolardbClient::unlockDBClusterDeletionCallable(const UnlockDBClusterDeletionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unlockDBClusterDeletion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBClusterParametersOutcome PolardbClient::modifyDBClusterParameters(const ModifyDBClusterParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterParametersOutcome(ModifyDBClusterParametersResult(outcome.result())); + else + return ModifyDBClusterParametersOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterParametersAsync(const ModifyDBClusterParametersRequest& request, const ModifyDBClusterParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterParametersOutcomeCallable PolardbClient::modifyDBClusterParametersCallable(const ModifyDBClusterParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBNodeClassOutcome PolardbClient::modifyDBNodeClass(const ModifyDBNodeClassRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBNodeClassOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBNodeClassOutcome(ModifyDBNodeClassResult(outcome.result())); + else + return ModifyDBNodeClassOutcome(outcome.error()); +} + +void PolardbClient::modifyDBNodeClassAsync(const ModifyDBNodeClassRequest& request, const ModifyDBNodeClassAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBNodeClass(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBNodeClassOutcomeCallable PolardbClient::modifyDBNodeClassCallable(const ModifyDBNodeClassRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBNodeClass(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteDBClusterOutcome PolardbClient::deleteDBCluster(const DeleteDBClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBClusterOutcome(DeleteDBClusterResult(outcome.result())); + else + return DeleteDBClusterOutcome(outcome.error()); +} + +void PolardbClient::deleteDBClusterAsync(const DeleteDBClusterRequest& request, const DeleteDBClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteDBClusterOutcomeCallable PolardbClient::deleteDBClusterCallable(const DeleteDBClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateDBNodesOutcome PolardbClient::createDBNodes(const CreateDBNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBNodesOutcome(CreateDBNodesResult(outcome.result())); + else + return CreateDBNodesOutcome(outcome.error()); +} + +void PolardbClient::createDBNodesAsync(const CreateDBNodesRequest& request, const CreateDBNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateDBNodesOutcomeCallable PolardbClient::createDBNodesCallable(const CreateDBNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::RestartDBNodeOutcome PolardbClient::restartDBNode(const RestartDBNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDBNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDBNodeOutcome(RestartDBNodeResult(outcome.result())); + else + return RestartDBNodeOutcome(outcome.error()); +} + +void PolardbClient::restartDBNodeAsync(const RestartDBNodeRequest& request, const RestartDBNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDBNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::RestartDBNodeOutcomeCallable PolardbClient::restartDBNodeCallable(const RestartDBNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDBNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateDBClusterEndpointOutcome PolardbClient::createDBClusterEndpoint(const CreateDBClusterEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBClusterEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBClusterEndpointOutcome(CreateDBClusterEndpointResult(outcome.result())); + else + return CreateDBClusterEndpointOutcome(outcome.error()); +} + +void PolardbClient::createDBClusterEndpointAsync(const CreateDBClusterEndpointRequest& request, const CreateDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBClusterEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateDBClusterEndpointOutcomeCallable PolardbClient::createDBClusterEndpointCallable(const CreateDBClusterEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBClusterEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateAccountOutcome PolardbClient::createAccount(const CreateAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountOutcome(CreateAccountResult(outcome.result())); + else + return CreateAccountOutcome(outcome.error()); +} + +void PolardbClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateAccountOutcomeCallable PolardbClient::createAccountCallable(const CreateAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDBClusterAccessWhitelistOutcome PolardbClient::describeDBClusterAccessWhitelist(const DescribeDBClusterAccessWhitelistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterAccessWhitelistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterAccessWhitelistOutcome(DescribeDBClusterAccessWhitelistResult(outcome.result())); + else + return DescribeDBClusterAccessWhitelistOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterAccessWhitelistAsync(const DescribeDBClusterAccessWhitelistRequest& request, const DescribeDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterAccessWhitelist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterAccessWhitelistOutcomeCallable PolardbClient::describeDBClusterAccessWhitelistCallable(const DescribeDBClusterAccessWhitelistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterAccessWhitelist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBDescriptionOutcome PolardbClient::modifyDBDescription(const ModifyDBDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBDescriptionOutcome(ModifyDBDescriptionResult(outcome.result())); + else + return ModifyDBDescriptionOutcome(outcome.error()); +} + +void PolardbClient::modifyDBDescriptionAsync(const ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBDescriptionOutcomeCallable PolardbClient::modifyDBDescriptionCallable(const ModifyDBDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateDBEndpointAddressOutcome PolardbClient::createDBEndpointAddress(const CreateDBEndpointAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBEndpointAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBEndpointAddressOutcome(CreateDBEndpointAddressResult(outcome.result())); + else + return CreateDBEndpointAddressOutcome(outcome.error()); +} + +void PolardbClient::createDBEndpointAddressAsync(const CreateDBEndpointAddressRequest& request, const CreateDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBEndpointAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateDBEndpointAddressOutcomeCallable PolardbClient::createDBEndpointAddressCallable(const CreateDBEndpointAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBEndpointAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyBackupPolicyOutcome PolardbClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); + else + return ModifyBackupPolicyOutcome(outcome.error()); +} + +void PolardbClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyBackupPolicyOutcomeCallable PolardbClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateDBClusterOutcome PolardbClient::createDBCluster(const CreateDBClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBClusterOutcome(CreateDBClusterResult(outcome.result())); + else + return CreateDBClusterOutcome(outcome.error()); +} + +void PolardbClient::createDBClusterAsync(const CreateDBClusterRequest& request, const CreateDBClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateDBClusterOutcomeCallable PolardbClient::createDBClusterCallable(const CreateDBClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::LockDBClusterDeletionOutcome PolardbClient::lockDBClusterDeletion(const LockDBClusterDeletionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LockDBClusterDeletionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LockDBClusterDeletionOutcome(LockDBClusterDeletionResult(outcome.result())); + else + return LockDBClusterDeletionOutcome(outcome.error()); +} + +void PolardbClient::lockDBClusterDeletionAsync(const LockDBClusterDeletionRequest& request, const LockDBClusterDeletionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, lockDBClusterDeletion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::LockDBClusterDeletionOutcomeCallable PolardbClient::lockDBClusterDeletionCallable(const LockDBClusterDeletionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->lockDBClusterDeletion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateBackupOutcome PolardbClient::createBackup(const CreateBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBackupOutcome(CreateBackupResult(outcome.result())); + else + return CreateBackupOutcome(outcome.error()); +} + +void PolardbClient::createBackupAsync(const CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateBackupOutcomeCallable PolardbClient::createBackupCallable(const CreateBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDBClusterAttributeOutcome PolardbClient::describeDBClusterAttribute(const DescribeDBClusterAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterAttributeOutcome(DescribeDBClusterAttributeResult(outcome.result())); + else + return DescribeDBClusterAttributeOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterAttributeAsync(const DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterAttributeOutcomeCallable PolardbClient::describeDBClusterAttributeCallable(const DescribeDBClusterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ContinueDBClusterMigrationOutcome PolardbClient::continueDBClusterMigration(const ContinueDBClusterMigrationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ContinueDBClusterMigrationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ContinueDBClusterMigrationOutcome(ContinueDBClusterMigrationResult(outcome.result())); + else + return ContinueDBClusterMigrationOutcome(outcome.error()); +} + +void PolardbClient::continueDBClusterMigrationAsync(const ContinueDBClusterMigrationRequest& request, const ContinueDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, continueDBClusterMigration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ContinueDBClusterMigrationOutcomeCallable PolardbClient::continueDBClusterMigrationCallable(const ContinueDBClusterMigrationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->continueDBClusterMigration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDBClustersOutcome PolardbClient::describeDBClusters(const DescribeDBClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClustersOutcome(DescribeDBClustersResult(outcome.result())); + else + return DescribeDBClustersOutcome(outcome.error()); +} + +void PolardbClient::describeDBClustersAsync(const DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClustersOutcomeCallable PolardbClient::describeDBClustersCallable(const DescribeDBClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteDBClusterEndpointOutcome PolardbClient::deleteDBClusterEndpoint(const DeleteDBClusterEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBClusterEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBClusterEndpointOutcome(DeleteDBClusterEndpointResult(outcome.result())); + else + return DeleteDBClusterEndpointOutcome(outcome.error()); +} + +void PolardbClient::deleteDBClusterEndpointAsync(const DeleteDBClusterEndpointRequest& request, const DeleteDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBClusterEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteDBClusterEndpointOutcomeCallable PolardbClient::deleteDBClusterEndpointCallable(const DeleteDBClusterEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBClusterEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBClusterEndpointOutcome PolardbClient::modifyDBClusterEndpoint(const ModifyDBClusterEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterEndpointOutcome(ModifyDBClusterEndpointResult(outcome.result())); + else + return ModifyDBClusterEndpointOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterEndpointAsync(const ModifyDBClusterEndpointRequest& request, const ModifyDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterEndpointOutcomeCallable PolardbClient::modifyDBClusterEndpointCallable(const ModifyDBClusterEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ResetAccountOutcome PolardbClient::resetAccount(const ResetAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountOutcome(ResetAccountResult(outcome.result())); + else + return ResetAccountOutcome(outcome.error()); +} + +void PolardbClient::resetAccountAsync(const ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ResetAccountOutcomeCallable PolardbClient::resetAccountCallable(const ResetAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteDBNodesOutcome PolardbClient::deleteDBNodes(const DeleteDBNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBNodesOutcome(DeleteDBNodesResult(outcome.result())); + else + return DeleteDBNodesOutcome(outcome.error()); +} + +void PolardbClient::deleteDBNodesAsync(const DeleteDBNodesRequest& request, const DeleteDBNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteDBNodesOutcomeCallable PolardbClient::deleteDBNodesCallable(const DeleteDBNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBClusterMaintainTimeOutcome PolardbClient::modifyDBClusterMaintainTime(const ModifyDBClusterMaintainTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterMaintainTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterMaintainTimeOutcome(ModifyDBClusterMaintainTimeResult(outcome.result())); + else + return ModifyDBClusterMaintainTimeOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterMaintainTimeAsync(const ModifyDBClusterMaintainTimeRequest& request, const ModifyDBClusterMaintainTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterMaintainTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterMaintainTimeOutcomeCallable PolardbClient::modifyDBClusterMaintainTimeCallable(const ModifyDBClusterMaintainTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterMaintainTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CloseDBClusterMigrationOutcome PolardbClient::closeDBClusterMigration(const CloseDBClusterMigrationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseDBClusterMigrationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseDBClusterMigrationOutcome(CloseDBClusterMigrationResult(outcome.result())); + else + return CloseDBClusterMigrationOutcome(outcome.error()); +} + +void PolardbClient::closeDBClusterMigrationAsync(const CloseDBClusterMigrationRequest& request, const CloseDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeDBClusterMigration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CloseDBClusterMigrationOutcomeCallable PolardbClient::closeDBClusterMigrationCallable(const CloseDBClusterMigrationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeDBClusterMigration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeBackupsOutcome PolardbClient::describeBackups(const DescribeBackupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupsOutcome(DescribeBackupsResult(outcome.result())); + else + return DescribeBackupsOutcome(outcome.error()); +} + +void PolardbClient::describeBackupsAsync(const DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeBackupsOutcomeCallable PolardbClient::describeBackupsCallable(const DescribeBackupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeAutoRenewAttributeOutcome PolardbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoRenewAttributeOutcome(DescribeAutoRenewAttributeResult(outcome.result())); + else + return DescribeAutoRenewAttributeOutcome(outcome.error()); +} + +void PolardbClient::describeAutoRenewAttributeAsync(const DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeAutoRenewAttributeOutcomeCallable PolardbClient::describeAutoRenewAttributeCallable(const DescribeAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeRegionsOutcome PolardbClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void PolardbClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeRegionsOutcomeCallable PolardbClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBClusterDescriptionOutcome PolardbClient::modifyDBClusterDescription(const ModifyDBClusterDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterDescriptionOutcome(ModifyDBClusterDescriptionResult(outcome.result())); + else + return ModifyDBClusterDescriptionOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterDescriptionAsync(const ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterDescriptionOutcomeCallable PolardbClient::modifyDBClusterDescriptionCallable(const ModifyDBClusterDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateDatabaseOutcome PolardbClient::createDatabase(const CreateDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatabaseOutcome(CreateDatabaseResult(outcome.result())); + else + return CreateDatabaseOutcome(outcome.error()); +} + +void PolardbClient::createDatabaseAsync(const CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateDatabaseOutcomeCallable PolardbClient::createDatabaseCallable(const CreateDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::AbortDBClusterMigrationOutcome PolardbClient::abortDBClusterMigration(const AbortDBClusterMigrationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AbortDBClusterMigrationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AbortDBClusterMigrationOutcome(AbortDBClusterMigrationResult(outcome.result())); + else + return AbortDBClusterMigrationOutcome(outcome.error()); +} + +void PolardbClient::abortDBClusterMigrationAsync(const AbortDBClusterMigrationRequest& request, const AbortDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, abortDBClusterMigration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::AbortDBClusterMigrationOutcomeCallable PolardbClient::abortDBClusterMigrationCallable(const AbortDBClusterMigrationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->abortDBClusterMigration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteAccountOutcome PolardbClient::deleteAccount(const DeleteAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccountOutcome(DeleteAccountResult(outcome.result())); + else + return DeleteAccountOutcome(outcome.error()); +} + +void PolardbClient::deleteAccountAsync(const DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteAccountOutcomeCallable PolardbClient::deleteAccountCallable(const DeleteAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBEndpointAddressOutcome PolardbClient::modifyDBEndpointAddress(const ModifyDBEndpointAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBEndpointAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBEndpointAddressOutcome(ModifyDBEndpointAddressResult(outcome.result())); + else + return ModifyDBEndpointAddressOutcome(outcome.error()); +} + +void PolardbClient::modifyDBEndpointAddressAsync(const ModifyDBEndpointAddressRequest& request, const ModifyDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBEndpointAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBEndpointAddressOutcomeCallable PolardbClient::modifyDBEndpointAddressCallable(const ModifyDBEndpointAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBEndpointAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBClusterMigrationOutcome PolardbClient::modifyDBClusterMigration(const ModifyDBClusterMigrationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterMigrationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterMigrationOutcome(ModifyDBClusterMigrationResult(outcome.result())); + else + return ModifyDBClusterMigrationOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterMigrationAsync(const ModifyDBClusterMigrationRequest& request, const ModifyDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterMigration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterMigrationOutcomeCallable PolardbClient::modifyDBClusterMigrationCallable(const ModifyDBClusterMigrationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterMigration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeAccountsOutcome PolardbClient::describeAccounts(const DescribeAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); + else + return DescribeAccountsOutcome(outcome.error()); +} + +void PolardbClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeAccountsOutcomeCallable PolardbClient::describeAccountsCallable(const DescribeAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBClusterAccessWhitelistOutcome PolardbClient::modifyDBClusterAccessWhitelist(const ModifyDBClusterAccessWhitelistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterAccessWhitelistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterAccessWhitelistOutcome(ModifyDBClusterAccessWhitelistResult(outcome.result())); + else + return ModifyDBClusterAccessWhitelistOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterAccessWhitelistAsync(const ModifyDBClusterAccessWhitelistRequest& request, const ModifyDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterAccessWhitelist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterAccessWhitelistOutcomeCallable PolardbClient::modifyDBClusterAccessWhitelistCallable(const ModifyDBClusterAccessWhitelistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterAccessWhitelist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDBClusterEndpointsOutcome PolardbClient::describeDBClusterEndpoints(const DescribeDBClusterEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterEndpointsOutcome(DescribeDBClusterEndpointsResult(outcome.result())); + else + return DescribeDBClusterEndpointsOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterEndpointsAsync(const DescribeDBClusterEndpointsRequest& request, const DescribeDBClusterEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterEndpointsOutcomeCallable PolardbClient::describeDBClusterEndpointsCallable(const DescribeDBClusterEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::GrantAccountPrivilegeOutcome PolardbClient::grantAccountPrivilege(const GrantAccountPrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantAccountPrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantAccountPrivilegeOutcome(GrantAccountPrivilegeResult(outcome.result())); + else + return GrantAccountPrivilegeOutcome(outcome.error()); +} + +void PolardbClient::grantAccountPrivilegeAsync(const GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantAccountPrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::GrantAccountPrivilegeOutcomeCallable PolardbClient::grantAccountPrivilegeCallable(const GrantAccountPrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantAccountPrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::TagResourcesOutcome PolardbClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void PolardbClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::TagResourcesOutcomeCallable PolardbClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteDatabaseOutcome PolardbClient::deleteDatabase(const DeleteDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDatabaseOutcome(DeleteDatabaseResult(outcome.result())); + else + return DeleteDatabaseOutcome(outcome.error()); +} + +void PolardbClient::deleteDatabaseAsync(const DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteDatabaseOutcomeCallable PolardbClient::deleteDatabaseCallable(const DeleteDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyAccountPasswordOutcome PolardbClient::modifyAccountPassword(const ModifyAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountPasswordOutcome(ModifyAccountPasswordResult(outcome.result())); + else + return ModifyAccountPasswordOutcome(outcome.error()); +} + +void PolardbClient::modifyAccountPasswordAsync(const ModifyAccountPasswordRequest& request, const ModifyAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyAccountPasswordOutcomeCallable PolardbClient::modifyAccountPasswordCallable(const ModifyAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeBackupPolicyOutcome PolardbClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupPolicyOutcome(DescribeBackupPolicyResult(outcome.result())); + else + return DescribeBackupPolicyOutcome(outcome.error()); +} + +void PolardbClient::describeBackupPolicyAsync(const DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeBackupPolicyOutcomeCallable PolardbClient::describeBackupPolicyCallable(const DescribeBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteDBEndpointAddressOutcome PolardbClient::deleteDBEndpointAddress(const DeleteDBEndpointAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBEndpointAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBEndpointAddressOutcome(DeleteDBEndpointAddressResult(outcome.result())); + else + return DeleteDBEndpointAddressOutcome(outcome.error()); +} + +void PolardbClient::deleteDBEndpointAddressAsync(const DeleteDBEndpointAddressRequest& request, const DeleteDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBEndpointAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteDBEndpointAddressOutcomeCallable PolardbClient::deleteDBEndpointAddressCallable(const DeleteDBEndpointAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBEndpointAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDBClusterParametersOutcome PolardbClient::describeDBClusterParameters(const DescribeDBClusterParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterParametersOutcome(DescribeDBClusterParametersResult(outcome.result())); + else + return DescribeDBClusterParametersOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterParametersAsync(const DescribeDBClusterParametersRequest& request, const DescribeDBClusterParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterParametersOutcomeCallable PolardbClient::describeDBClusterParametersCallable(const DescribeDBClusterParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/polardb/src/model/AbortDBClusterMigrationRequest.cc b/polardb/src/model/AbortDBClusterMigrationRequest.cc new file mode 100644 index 000000000..12e857c8a --- /dev/null +++ b/polardb/src/model/AbortDBClusterMigrationRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::AbortDBClusterMigrationRequest; + +AbortDBClusterMigrationRequest::AbortDBClusterMigrationRequest() : + RpcServiceRequest("polardb", "2017-08-01", "AbortDBClusterMigration") +{} + +AbortDBClusterMigrationRequest::~AbortDBClusterMigrationRequest() +{} + +long AbortDBClusterMigrationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AbortDBClusterMigrationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AbortDBClusterMigrationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AbortDBClusterMigrationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string AbortDBClusterMigrationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AbortDBClusterMigrationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AbortDBClusterMigrationRequest::getRegionId()const +{ + return regionId_; +} + +void AbortDBClusterMigrationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AbortDBClusterMigrationRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void AbortDBClusterMigrationRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setCoreParameter("DBClusterId", dBClusterId); +} + +std::string AbortDBClusterMigrationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AbortDBClusterMigrationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long AbortDBClusterMigrationRequest::getOwnerId()const +{ + return ownerId_; +} + +void AbortDBClusterMigrationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AbortDBClusterMigrationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AbortDBClusterMigrationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/polardb/src/model/AbortDBClusterMigrationResult.cc b/polardb/src/model/AbortDBClusterMigrationResult.cc new file mode 100644 index 000000000..08c4eef5b --- /dev/null +++ b/polardb/src/model/AbortDBClusterMigrationResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +AbortDBClusterMigrationResult::AbortDBClusterMigrationResult() : + ServiceResult() +{} + +AbortDBClusterMigrationResult::AbortDBClusterMigrationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AbortDBClusterMigrationResult::~AbortDBClusterMigrationResult() +{} + +void AbortDBClusterMigrationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CloseDBClusterMigrationRequest.cc b/polardb/src/model/CloseDBClusterMigrationRequest.cc index 14da96919..6553e3dcd 100644 --- a/polardb/src/model/CloseDBClusterMigrationRequest.cc +++ b/polardb/src/model/CloseDBClusterMigrationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CloseDBClusterMigrationRequest; - -CloseDBClusterMigrationRequest::CloseDBClusterMigrationRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CloseDBClusterMigration") -{} - -CloseDBClusterMigrationRequest::~CloseDBClusterMigrationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CloseDBClusterMigrationRequest; + +CloseDBClusterMigrationRequest::CloseDBClusterMigrationRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CloseDBClusterMigration") +{} + +CloseDBClusterMigrationRequest::~CloseDBClusterMigrationRequest() +{} + long CloseDBClusterMigrationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/CloseDBClusterMigrationResult.cc b/polardb/src/model/CloseDBClusterMigrationResult.cc index e0a14d3ce..254a3faf1 100644 --- a/polardb/src/model/CloseDBClusterMigrationResult.cc +++ b/polardb/src/model/CloseDBClusterMigrationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CloseDBClusterMigrationResult::CloseDBClusterMigrationResult() : - ServiceResult() -{} - -CloseDBClusterMigrationResult::CloseDBClusterMigrationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CloseDBClusterMigrationResult::~CloseDBClusterMigrationResult() -{} - -void CloseDBClusterMigrationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CloseDBClusterMigrationResult::CloseDBClusterMigrationResult() : + ServiceResult() +{} + +CloseDBClusterMigrationResult::CloseDBClusterMigrationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloseDBClusterMigrationResult::~CloseDBClusterMigrationResult() +{} + +void CloseDBClusterMigrationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ContinueDBClusterMigrationRequest.cc b/polardb/src/model/ContinueDBClusterMigrationRequest.cc new file mode 100644 index 000000000..715d4a5d7 --- /dev/null +++ b/polardb/src/model/ContinueDBClusterMigrationRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ContinueDBClusterMigrationRequest; + +ContinueDBClusterMigrationRequest::ContinueDBClusterMigrationRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ContinueDBClusterMigration") +{} + +ContinueDBClusterMigrationRequest::~ContinueDBClusterMigrationRequest() +{} + +long ContinueDBClusterMigrationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ContinueDBClusterMigrationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ContinueDBClusterMigrationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ContinueDBClusterMigrationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ContinueDBClusterMigrationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ContinueDBClusterMigrationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ContinueDBClusterMigrationRequest::getRegionId()const +{ + return regionId_; +} + +void ContinueDBClusterMigrationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ContinueDBClusterMigrationRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void ContinueDBClusterMigrationRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setCoreParameter("DBClusterId", dBClusterId); +} + +std::string ContinueDBClusterMigrationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ContinueDBClusterMigrationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ContinueDBClusterMigrationRequest::getOwnerId()const +{ + return ownerId_; +} + +void ContinueDBClusterMigrationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ContinueDBClusterMigrationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ContinueDBClusterMigrationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/polardb/src/model/ContinueDBClusterMigrationResult.cc b/polardb/src/model/ContinueDBClusterMigrationResult.cc new file mode 100644 index 000000000..fcfdd0c2b --- /dev/null +++ b/polardb/src/model/ContinueDBClusterMigrationResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ContinueDBClusterMigrationResult::ContinueDBClusterMigrationResult() : + ServiceResult() +{} + +ContinueDBClusterMigrationResult::ContinueDBClusterMigrationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ContinueDBClusterMigrationResult::~ContinueDBClusterMigrationResult() +{} + +void ContinueDBClusterMigrationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateAccountRequest.cc b/polardb/src/model/CreateAccountRequest.cc index a82e738ff..cba9bf56d 100644 --- a/polardb/src/model/CreateAccountRequest.cc +++ b/polardb/src/model/CreateAccountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CreateAccountRequest; - -CreateAccountRequest::CreateAccountRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CreateAccount") -{} - -CreateAccountRequest::~CreateAccountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CreateAccountRequest; + +CreateAccountRequest::CreateAccountRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CreateAccount") +{} + +CreateAccountRequest::~CreateAccountRequest() +{} + long CreateAccountRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/CreateAccountResult.cc b/polardb/src/model/CreateAccountResult.cc index 9f81dff85..311ae4dee 100644 --- a/polardb/src/model/CreateAccountResult.cc +++ b/polardb/src/model/CreateAccountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CreateAccountResult::CreateAccountResult() : - ServiceResult() -{} - -CreateAccountResult::CreateAccountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAccountResult::~CreateAccountResult() -{} - -void CreateAccountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateAccountResult::CreateAccountResult() : + ServiceResult() +{} + +CreateAccountResult::CreateAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountResult::~CreateAccountResult() +{} + +void CreateAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateBackupRequest.cc b/polardb/src/model/CreateBackupRequest.cc index 0919eca11..49b461283 100644 --- a/polardb/src/model/CreateBackupRequest.cc +++ b/polardb/src/model/CreateBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CreateBackupRequest; - -CreateBackupRequest::CreateBackupRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CreateBackup") -{} - -CreateBackupRequest::~CreateBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CreateBackupRequest; + +CreateBackupRequest::CreateBackupRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CreateBackup") +{} + +CreateBackupRequest::~CreateBackupRequest() +{} + long CreateBackupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/CreateBackupResult.cc b/polardb/src/model/CreateBackupResult.cc index f7cac9e5b..dc2327b2b 100644 --- a/polardb/src/model/CreateBackupResult.cc +++ b/polardb/src/model/CreateBackupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CreateBackupResult::CreateBackupResult() : - ServiceResult() -{} - -CreateBackupResult::CreateBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateBackupResult::~CreateBackupResult() -{} - -void CreateBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateBackupResult::CreateBackupResult() : + ServiceResult() +{} + +CreateBackupResult::CreateBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupResult::~CreateBackupResult() +{} + +void CreateBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateDBClusterEndpointRequest.cc b/polardb/src/model/CreateDBClusterEndpointRequest.cc index e967dd451..5c4fdf54b 100644 --- a/polardb/src/model/CreateDBClusterEndpointRequest.cc +++ b/polardb/src/model/CreateDBClusterEndpointRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBClusterEndpointRequest; - -CreateDBClusterEndpointRequest::CreateDBClusterEndpointRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CreateDBClusterEndpoint") -{} - -CreateDBClusterEndpointRequest::~CreateDBClusterEndpointRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBClusterEndpointRequest; + +CreateDBClusterEndpointRequest::CreateDBClusterEndpointRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CreateDBClusterEndpoint") +{} + +CreateDBClusterEndpointRequest::~CreateDBClusterEndpointRequest() +{} + std::string CreateDBClusterEndpointRequest::getAutoAddNewNodes()const { return autoAddNewNodes_; diff --git a/polardb/src/model/CreateDBClusterEndpointResult.cc b/polardb/src/model/CreateDBClusterEndpointResult.cc index d8af99a86..322313550 100644 --- a/polardb/src/model/CreateDBClusterEndpointResult.cc +++ b/polardb/src/model/CreateDBClusterEndpointResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CreateDBClusterEndpointResult::CreateDBClusterEndpointResult() : - ServiceResult() -{} - -CreateDBClusterEndpointResult::CreateDBClusterEndpointResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDBClusterEndpointResult::~CreateDBClusterEndpointResult() -{} - -void CreateDBClusterEndpointResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateDBClusterEndpointResult::CreateDBClusterEndpointResult() : + ServiceResult() +{} + +CreateDBClusterEndpointResult::CreateDBClusterEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBClusterEndpointResult::~CreateDBClusterEndpointResult() +{} + +void CreateDBClusterEndpointResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateDBClusterRequest.cc b/polardb/src/model/CreateDBClusterRequest.cc index a49957558..7250f4501 100644 --- a/polardb/src/model/CreateDBClusterRequest.cc +++ b/polardb/src/model/CreateDBClusterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBClusterRequest; - -CreateDBClusterRequest::CreateDBClusterRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CreateDBCluster") -{} - -CreateDBClusterRequest::~CreateDBClusterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBClusterRequest; + +CreateDBClusterRequest::CreateDBClusterRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CreateDBCluster") +{} + +CreateDBClusterRequest::~CreateDBClusterRequest() +{} + long CreateDBClusterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/CreateDBClusterResult.cc b/polardb/src/model/CreateDBClusterResult.cc index 92aaf7784..5c10a585a 100644 --- a/polardb/src/model/CreateDBClusterResult.cc +++ b/polardb/src/model/CreateDBClusterResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CreateDBClusterResult::CreateDBClusterResult() : - ServiceResult() -{} - -CreateDBClusterResult::CreateDBClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDBClusterResult::~CreateDBClusterResult() -{} - -void CreateDBClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateDBClusterResult::CreateDBClusterResult() : + ServiceResult() +{} + +CreateDBClusterResult::CreateDBClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBClusterResult::~CreateDBClusterResult() +{} + +void CreateDBClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string CreateDBClusterResult::getDBClusterId()const { return dBClusterId_; diff --git a/polardb/src/model/CreateDBEndpointAddressRequest.cc b/polardb/src/model/CreateDBEndpointAddressRequest.cc index d85127bf7..28e90b3fc 100644 --- a/polardb/src/model/CreateDBEndpointAddressRequest.cc +++ b/polardb/src/model/CreateDBEndpointAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBEndpointAddressRequest; - -CreateDBEndpointAddressRequest::CreateDBEndpointAddressRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CreateDBEndpointAddress") -{} - -CreateDBEndpointAddressRequest::~CreateDBEndpointAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBEndpointAddressRequest; + +CreateDBEndpointAddressRequest::CreateDBEndpointAddressRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CreateDBEndpointAddress") +{} + +CreateDBEndpointAddressRequest::~CreateDBEndpointAddressRequest() +{} + long CreateDBEndpointAddressRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/CreateDBEndpointAddressResult.cc b/polardb/src/model/CreateDBEndpointAddressResult.cc index c94b986ac..efb355cd0 100644 --- a/polardb/src/model/CreateDBEndpointAddressResult.cc +++ b/polardb/src/model/CreateDBEndpointAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CreateDBEndpointAddressResult::CreateDBEndpointAddressResult() : - ServiceResult() -{} - -CreateDBEndpointAddressResult::CreateDBEndpointAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDBEndpointAddressResult::~CreateDBEndpointAddressResult() -{} - -void CreateDBEndpointAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateDBEndpointAddressResult::CreateDBEndpointAddressResult() : + ServiceResult() +{} + +CreateDBEndpointAddressResult::CreateDBEndpointAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBEndpointAddressResult::~CreateDBEndpointAddressResult() +{} + +void CreateDBEndpointAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateDBNodesRequest.cc b/polardb/src/model/CreateDBNodesRequest.cc index 5e6bd12ca..855a2df41 100644 --- a/polardb/src/model/CreateDBNodesRequest.cc +++ b/polardb/src/model/CreateDBNodesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBNodesRequest; - -CreateDBNodesRequest::CreateDBNodesRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CreateDBNodes") -{} - -CreateDBNodesRequest::~CreateDBNodesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CreateDBNodesRequest; + +CreateDBNodesRequest::CreateDBNodesRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CreateDBNodes") +{} + +CreateDBNodesRequest::~CreateDBNodesRequest() +{} + long CreateDBNodesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/CreateDBNodesResult.cc b/polardb/src/model/CreateDBNodesResult.cc index 1471757f6..1b875a3fa 100644 --- a/polardb/src/model/CreateDBNodesResult.cc +++ b/polardb/src/model/CreateDBNodesResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CreateDBNodesResult::CreateDBNodesResult() : - ServiceResult() -{} - -CreateDBNodesResult::CreateDBNodesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDBNodesResult::~CreateDBNodesResult() -{} - -void CreateDBNodesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateDBNodesResult::CreateDBNodesResult() : + ServiceResult() +{} + +CreateDBNodesResult::CreateDBNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBNodesResult::~CreateDBNodesResult() +{} + +void CreateDBNodesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string CreateDBNodesResult::getDBClusterId()const { return dBClusterId_; diff --git a/polardb/src/model/CreateDatabaseRequest.cc b/polardb/src/model/CreateDatabaseRequest.cc index 7309b3dfe..3bc9d7f1e 100644 --- a/polardb/src/model/CreateDatabaseRequest.cc +++ b/polardb/src/model/CreateDatabaseRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::CreateDatabaseRequest; - -CreateDatabaseRequest::CreateDatabaseRequest() : - RpcServiceRequest("polardb", "2017-08-01", "CreateDatabase") -{} - -CreateDatabaseRequest::~CreateDatabaseRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::CreateDatabaseRequest; + +CreateDatabaseRequest::CreateDatabaseRequest() : + RpcServiceRequest("polardb", "2017-08-01", "CreateDatabase") +{} + +CreateDatabaseRequest::~CreateDatabaseRequest() +{} + long CreateDatabaseRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/CreateDatabaseResult.cc b/polardb/src/model/CreateDatabaseResult.cc index e5b8dbb3e..121a5ec45 100644 --- a/polardb/src/model/CreateDatabaseResult.cc +++ b/polardb/src/model/CreateDatabaseResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -CreateDatabaseResult::CreateDatabaseResult() : - ServiceResult() -{} - -CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDatabaseResult::~CreateDatabaseResult() -{} - -void CreateDatabaseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateDatabaseResult::CreateDatabaseResult() : + ServiceResult() +{} + +CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatabaseResult::~CreateDatabaseResult() +{} + +void CreateDatabaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteAccountRequest.cc b/polardb/src/model/DeleteAccountRequest.cc index cabf33503..bbd141e79 100644 --- a/polardb/src/model/DeleteAccountRequest.cc +++ b/polardb/src/model/DeleteAccountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DeleteAccountRequest; - -DeleteAccountRequest::DeleteAccountRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DeleteAccount") -{} - -DeleteAccountRequest::~DeleteAccountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DeleteAccountRequest; + +DeleteAccountRequest::DeleteAccountRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DeleteAccount") +{} + +DeleteAccountRequest::~DeleteAccountRequest() +{} + long DeleteAccountRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DeleteAccountResult.cc b/polardb/src/model/DeleteAccountResult.cc index 82d0f8c48..6a996af1f 100644 --- a/polardb/src/model/DeleteAccountResult.cc +++ b/polardb/src/model/DeleteAccountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DeleteAccountResult::DeleteAccountResult() : - ServiceResult() -{} - -DeleteAccountResult::DeleteAccountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAccountResult::~DeleteAccountResult() -{} - -void DeleteAccountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteAccountResult::DeleteAccountResult() : + ServiceResult() +{} + +DeleteAccountResult::DeleteAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccountResult::~DeleteAccountResult() +{} + +void DeleteAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteBackupRequest.cc b/polardb/src/model/DeleteBackupRequest.cc index ac5db86d1..0dd0c9ea3 100644 --- a/polardb/src/model/DeleteBackupRequest.cc +++ b/polardb/src/model/DeleteBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DeleteBackupRequest; - -DeleteBackupRequest::DeleteBackupRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DeleteBackup") -{} - -DeleteBackupRequest::~DeleteBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DeleteBackupRequest; + +DeleteBackupRequest::DeleteBackupRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DeleteBackup") +{} + +DeleteBackupRequest::~DeleteBackupRequest() +{} + long DeleteBackupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DeleteBackupResult.cc b/polardb/src/model/DeleteBackupResult.cc index 34b899cb5..a08f4971e 100644 --- a/polardb/src/model/DeleteBackupResult.cc +++ b/polardb/src/model/DeleteBackupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DeleteBackupResult::DeleteBackupResult() : - ServiceResult() -{} - -DeleteBackupResult::DeleteBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteBackupResult::~DeleteBackupResult() -{} - -void DeleteBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteBackupResult::DeleteBackupResult() : + ServiceResult() +{} + +DeleteBackupResult::DeleteBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBackupResult::~DeleteBackupResult() +{} + +void DeleteBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteDBClusterEndpointRequest.cc b/polardb/src/model/DeleteDBClusterEndpointRequest.cc index 09d02f810..84ce1d1bc 100644 --- a/polardb/src/model/DeleteDBClusterEndpointRequest.cc +++ b/polardb/src/model/DeleteDBClusterEndpointRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBClusterEndpointRequest; - -DeleteDBClusterEndpointRequest::DeleteDBClusterEndpointRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DeleteDBClusterEndpoint") -{} - -DeleteDBClusterEndpointRequest::~DeleteDBClusterEndpointRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBClusterEndpointRequest; + +DeleteDBClusterEndpointRequest::DeleteDBClusterEndpointRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DeleteDBClusterEndpoint") +{} + +DeleteDBClusterEndpointRequest::~DeleteDBClusterEndpointRequest() +{} + long DeleteDBClusterEndpointRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DeleteDBClusterEndpointResult.cc b/polardb/src/model/DeleteDBClusterEndpointResult.cc index 424639ff1..979d59be7 100644 --- a/polardb/src/model/DeleteDBClusterEndpointResult.cc +++ b/polardb/src/model/DeleteDBClusterEndpointResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DeleteDBClusterEndpointResult::DeleteDBClusterEndpointResult() : - ServiceResult() -{} - -DeleteDBClusterEndpointResult::DeleteDBClusterEndpointResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDBClusterEndpointResult::~DeleteDBClusterEndpointResult() -{} - -void DeleteDBClusterEndpointResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteDBClusterEndpointResult::DeleteDBClusterEndpointResult() : + ServiceResult() +{} + +DeleteDBClusterEndpointResult::DeleteDBClusterEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBClusterEndpointResult::~DeleteDBClusterEndpointResult() +{} + +void DeleteDBClusterEndpointResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteDBClusterRequest.cc b/polardb/src/model/DeleteDBClusterRequest.cc index baf270cdd..9ddac7844 100644 --- a/polardb/src/model/DeleteDBClusterRequest.cc +++ b/polardb/src/model/DeleteDBClusterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBClusterRequest; - -DeleteDBClusterRequest::DeleteDBClusterRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DeleteDBCluster") -{} - -DeleteDBClusterRequest::~DeleteDBClusterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBClusterRequest; + +DeleteDBClusterRequest::DeleteDBClusterRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DeleteDBCluster") +{} + +DeleteDBClusterRequest::~DeleteDBClusterRequest() +{} + long DeleteDBClusterRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DeleteDBClusterResult.cc b/polardb/src/model/DeleteDBClusterResult.cc index 78a876693..d9bae87a4 100644 --- a/polardb/src/model/DeleteDBClusterResult.cc +++ b/polardb/src/model/DeleteDBClusterResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DeleteDBClusterResult::DeleteDBClusterResult() : - ServiceResult() -{} - -DeleteDBClusterResult::DeleteDBClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDBClusterResult::~DeleteDBClusterResult() -{} - -void DeleteDBClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteDBClusterResult::DeleteDBClusterResult() : + ServiceResult() +{} + +DeleteDBClusterResult::DeleteDBClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBClusterResult::~DeleteDBClusterResult() +{} + +void DeleteDBClusterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteDBEndpointAddressRequest.cc b/polardb/src/model/DeleteDBEndpointAddressRequest.cc index 2a5ca7f68..36e9ebf92 100644 --- a/polardb/src/model/DeleteDBEndpointAddressRequest.cc +++ b/polardb/src/model/DeleteDBEndpointAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBEndpointAddressRequest; - -DeleteDBEndpointAddressRequest::DeleteDBEndpointAddressRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DeleteDBEndpointAddress") -{} - -DeleteDBEndpointAddressRequest::~DeleteDBEndpointAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBEndpointAddressRequest; + +DeleteDBEndpointAddressRequest::DeleteDBEndpointAddressRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DeleteDBEndpointAddress") +{} + +DeleteDBEndpointAddressRequest::~DeleteDBEndpointAddressRequest() +{} + long DeleteDBEndpointAddressRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DeleteDBEndpointAddressResult.cc b/polardb/src/model/DeleteDBEndpointAddressResult.cc index 730f7abb8..02c53f2c0 100644 --- a/polardb/src/model/DeleteDBEndpointAddressResult.cc +++ b/polardb/src/model/DeleteDBEndpointAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DeleteDBEndpointAddressResult::DeleteDBEndpointAddressResult() : - ServiceResult() -{} - -DeleteDBEndpointAddressResult::DeleteDBEndpointAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDBEndpointAddressResult::~DeleteDBEndpointAddressResult() -{} - -void DeleteDBEndpointAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteDBEndpointAddressResult::DeleteDBEndpointAddressResult() : + ServiceResult() +{} + +DeleteDBEndpointAddressResult::DeleteDBEndpointAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBEndpointAddressResult::~DeleteDBEndpointAddressResult() +{} + +void DeleteDBEndpointAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteDBNodesRequest.cc b/polardb/src/model/DeleteDBNodesRequest.cc index 61dde1b8a..92c414854 100644 --- a/polardb/src/model/DeleteDBNodesRequest.cc +++ b/polardb/src/model/DeleteDBNodesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBNodesRequest; - -DeleteDBNodesRequest::DeleteDBNodesRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DeleteDBNodes") -{} - -DeleteDBNodesRequest::~DeleteDBNodesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDBNodesRequest; + +DeleteDBNodesRequest::DeleteDBNodesRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DeleteDBNodes") +{} + +DeleteDBNodesRequest::~DeleteDBNodesRequest() +{} + long DeleteDBNodesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DeleteDBNodesResult.cc b/polardb/src/model/DeleteDBNodesResult.cc index 7a78e7872..45c9456dd 100644 --- a/polardb/src/model/DeleteDBNodesResult.cc +++ b/polardb/src/model/DeleteDBNodesResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DeleteDBNodesResult::DeleteDBNodesResult() : - ServiceResult() -{} - -DeleteDBNodesResult::DeleteDBNodesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDBNodesResult::~DeleteDBNodesResult() -{} - -void DeleteDBNodesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteDBNodesResult::DeleteDBNodesResult() : + ServiceResult() +{} + +DeleteDBNodesResult::DeleteDBNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBNodesResult::~DeleteDBNodesResult() +{} + +void DeleteDBNodesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string DeleteDBNodesResult::getDBClusterId()const { return dBClusterId_; diff --git a/polardb/src/model/DeleteDatabaseRequest.cc b/polardb/src/model/DeleteDatabaseRequest.cc index f8f625d5f..568445e31 100644 --- a/polardb/src/model/DeleteDatabaseRequest.cc +++ b/polardb/src/model/DeleteDatabaseRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDatabaseRequest; - -DeleteDatabaseRequest::DeleteDatabaseRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DeleteDatabase") -{} - -DeleteDatabaseRequest::~DeleteDatabaseRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DeleteDatabaseRequest; + +DeleteDatabaseRequest::DeleteDatabaseRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DeleteDatabase") +{} + +DeleteDatabaseRequest::~DeleteDatabaseRequest() +{} + long DeleteDatabaseRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DeleteDatabaseResult.cc b/polardb/src/model/DeleteDatabaseResult.cc index 6733b82e6..ecec5507c 100644 --- a/polardb/src/model/DeleteDatabaseResult.cc +++ b/polardb/src/model/DeleteDatabaseResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DeleteDatabaseResult::DeleteDatabaseResult() : - ServiceResult() -{} - -DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDatabaseResult::~DeleteDatabaseResult() -{} - -void DeleteDatabaseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteDatabaseResult::DeleteDatabaseResult() : + ServiceResult() +{} + +DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatabaseResult::~DeleteDatabaseResult() +{} + +void DeleteDatabaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DescribeAccountsRequest.cc b/polardb/src/model/DescribeAccountsRequest.cc index 71332ebbd..bf1143b62 100644 --- a/polardb/src/model/DescribeAccountsRequest.cc +++ b/polardb/src/model/DescribeAccountsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeAccountsRequest; - -DescribeAccountsRequest::DescribeAccountsRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeAccounts") -{} - -DescribeAccountsRequest::~DescribeAccountsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeAccounts") +{} + +DescribeAccountsRequest::~DescribeAccountsRequest() +{} + long DescribeAccountsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeAccountsResult.cc b/polardb/src/model/DescribeAccountsResult.cc index fe9f163ea..b5a88ca53 100644 --- a/polardb/src/model/DescribeAccountsResult.cc +++ b/polardb/src/model/DescribeAccountsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeAccountsResult::DescribeAccountsResult() : - ServiceResult() -{} - -DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAccountsResult::~DescribeAccountsResult() -{} - -void DescribeAccountsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeAccountsResult::DescribeAccountsResult() : + ServiceResult() +{} + +DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountsResult::~DescribeAccountsResult() +{} + +void DescribeAccountsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAccounts = value["Accounts"]["DBAccount"]; for (auto value : allAccounts) { @@ -66,9 +69,9 @@ void DescribeAccountsResult::parse(const std::string &payload) } accounts_.push_back(accountsObject); } - -} - + +} + std::vector DescribeAccountsResult::getAccounts()const { return accounts_; diff --git a/polardb/src/model/DescribeAutoRenewAttributeRequest.cc b/polardb/src/model/DescribeAutoRenewAttributeRequest.cc index 064985e84..8a1fc39e8 100644 --- a/polardb/src/model/DescribeAutoRenewAttributeRequest.cc +++ b/polardb/src/model/DescribeAutoRenewAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeAutoRenewAttributeRequest; - -DescribeAutoRenewAttributeRequest::DescribeAutoRenewAttributeRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeAutoRenewAttribute") -{} - -DescribeAutoRenewAttributeRequest::~DescribeAutoRenewAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeAutoRenewAttributeRequest; + +DescribeAutoRenewAttributeRequest::DescribeAutoRenewAttributeRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeAutoRenewAttribute") +{} + +DescribeAutoRenewAttributeRequest::~DescribeAutoRenewAttributeRequest() +{} + long DescribeAutoRenewAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeAutoRenewAttributeResult.cc b/polardb/src/model/DescribeAutoRenewAttributeResult.cc index c74740046..f6eddedce 100644 --- a/polardb/src/model/DescribeAutoRenewAttributeResult.cc +++ b/polardb/src/model/DescribeAutoRenewAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeAutoRenewAttributeResult::DescribeAutoRenewAttributeResult() : - ServiceResult() -{} - -DescribeAutoRenewAttributeResult::DescribeAutoRenewAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAutoRenewAttributeResult::~DescribeAutoRenewAttributeResult() -{} - -void DescribeAutoRenewAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeAutoRenewAttributeResult::DescribeAutoRenewAttributeResult() : + ServiceResult() +{} + +DescribeAutoRenewAttributeResult::DescribeAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoRenewAttributeResult::~DescribeAutoRenewAttributeResult() +{} + +void DescribeAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["AutoRenewAttribute"]; for (auto value : allItems) { @@ -64,9 +67,9 @@ void DescribeAutoRenewAttributeResult::parse(const std::string &payload) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeAutoRenewAttributeResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/polardb/src/model/DescribeBackupPolicyRequest.cc b/polardb/src/model/DescribeBackupPolicyRequest.cc index 808a15d95..08033dd8e 100644 --- a/polardb/src/model/DescribeBackupPolicyRequest.cc +++ b/polardb/src/model/DescribeBackupPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeBackupPolicyRequest; - -DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeBackupPolicy") -{} - -DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeBackupPolicyRequest; + +DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeBackupPolicy") +{} + +DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() +{} + long DescribeBackupPolicyRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeBackupPolicyResult.cc b/polardb/src/model/DescribeBackupPolicyResult.cc index 3d66176e9..3e2e3184a 100644 --- a/polardb/src/model/DescribeBackupPolicyResult.cc +++ b/polardb/src/model/DescribeBackupPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeBackupPolicyResult::DescribeBackupPolicyResult() : - ServiceResult() -{} - -DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupPolicyResult::~DescribeBackupPolicyResult() -{} - -void DescribeBackupPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeBackupPolicyResult::DescribeBackupPolicyResult() : + ServiceResult() +{} + +DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupPolicyResult::~DescribeBackupPolicyResult() +{} + +void DescribeBackupPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["BackupRetentionPeriod"].isNull()) backupRetentionPeriod_ = std::stoi(value["BackupRetentionPeriod"].asString()); if(!value["PreferredNextBackupTime"].isNull()) @@ -48,9 +51,9 @@ void DescribeBackupPolicyResult::parse(const std::string &payload) preferredBackupTime_ = value["PreferredBackupTime"].asString(); if(!value["PreferredBackupPeriod"].isNull()) preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString(); - -} - + +} + std::string DescribeBackupPolicyResult::getPreferredBackupPeriod()const { return preferredBackupPeriod_; diff --git a/polardb/src/model/DescribeBackupsRequest.cc b/polardb/src/model/DescribeBackupsRequest.cc index 9ababcfec..6a4557558 100644 --- a/polardb/src/model/DescribeBackupsRequest.cc +++ b/polardb/src/model/DescribeBackupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeBackupsRequest; - -DescribeBackupsRequest::DescribeBackupsRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeBackups") -{} - -DescribeBackupsRequest::~DescribeBackupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeBackupsRequest; + +DescribeBackupsRequest::DescribeBackupsRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeBackups") +{} + +DescribeBackupsRequest::~DescribeBackupsRequest() +{} + long DescribeBackupsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeBackupsResult.cc b/polardb/src/model/DescribeBackupsResult.cc index a27c5e086..a1f96809e 100644 --- a/polardb/src/model/DescribeBackupsResult.cc +++ b/polardb/src/model/DescribeBackupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeBackupsResult::DescribeBackupsResult() : - ServiceResult() -{} - -DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupsResult::~DescribeBackupsResult() -{} - -void DescribeBackupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeBackupsResult::DescribeBackupsResult() : + ServiceResult() +{} + +DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupsResult::~DescribeBackupsResult() +{} + +void DescribeBackupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Backup"]; for (auto value : allItems) { @@ -70,9 +73,9 @@ void DescribeBackupsResult::parse(const std::string &payload) pageNumber_ = value["PageNumber"].asString(); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = value["PageRecordCount"].asString(); - -} - + +} + std::string DescribeBackupsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/polardb/src/model/DescribeDBClusterAccessWhitelistRequest.cc b/polardb/src/model/DescribeDBClusterAccessWhitelistRequest.cc index 2ef4d7311..1862c731d 100644 --- a/polardb/src/model/DescribeDBClusterAccessWhitelistRequest.cc +++ b/polardb/src/model/DescribeDBClusterAccessWhitelistRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterAccessWhitelistRequest; - -DescribeDBClusterAccessWhitelistRequest::DescribeDBClusterAccessWhitelistRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAccessWhitelist") -{} - -DescribeDBClusterAccessWhitelistRequest::~DescribeDBClusterAccessWhitelistRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterAccessWhitelistRequest; + +DescribeDBClusterAccessWhitelistRequest::DescribeDBClusterAccessWhitelistRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAccessWhitelist") +{} + +DescribeDBClusterAccessWhitelistRequest::~DescribeDBClusterAccessWhitelistRequest() +{} + long DescribeDBClusterAccessWhitelistRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc b/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc index 33609ba58..7181e5394 100644 --- a/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc +++ b/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeDBClusterAccessWhitelistResult::DescribeDBClusterAccessWhitelistResult() : - ServiceResult() -{} - -DescribeDBClusterAccessWhitelistResult::DescribeDBClusterAccessWhitelistResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBClusterAccessWhitelistResult::~DescribeDBClusterAccessWhitelistResult() -{} - -void DescribeDBClusterAccessWhitelistResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterAccessWhitelistResult::DescribeDBClusterAccessWhitelistResult() : + ServiceResult() +{} + +DescribeDBClusterAccessWhitelistResult::DescribeDBClusterAccessWhitelistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterAccessWhitelistResult::~DescribeDBClusterAccessWhitelistResult() +{} + +void DescribeDBClusterAccessWhitelistResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBClusterIPArray"]; for (auto value : allItems) { @@ -52,9 +55,9 @@ void DescribeDBClusterAccessWhitelistResult::parse(const std::string &payload) itemsObject.securityIps = value["SecurityIps"].asString(); items_.push_back(itemsObject); } - -} - + +} + std::vector DescribeDBClusterAccessWhitelistResult::getItems()const { return items_; diff --git a/polardb/src/model/DescribeDBClusterAttributeRequest.cc b/polardb/src/model/DescribeDBClusterAttributeRequest.cc index 9d1669afe..204ab6b13 100644 --- a/polardb/src/model/DescribeDBClusterAttributeRequest.cc +++ b/polardb/src/model/DescribeDBClusterAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterAttributeRequest; - -DescribeDBClusterAttributeRequest::DescribeDBClusterAttributeRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAttribute") -{} - -DescribeDBClusterAttributeRequest::~DescribeDBClusterAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterAttributeRequest; + +DescribeDBClusterAttributeRequest::DescribeDBClusterAttributeRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAttribute") +{} + +DescribeDBClusterAttributeRequest::~DescribeDBClusterAttributeRequest() +{} + long DescribeDBClusterAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeDBClusterAttributeResult.cc b/polardb/src/model/DescribeDBClusterAttributeResult.cc index c914c9b61..634d1d2c8 100644 --- a/polardb/src/model/DescribeDBClusterAttributeResult.cc +++ b/polardb/src/model/DescribeDBClusterAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeDBClusterAttributeResult::DescribeDBClusterAttributeResult() : - ServiceResult() -{} - -DescribeDBClusterAttributeResult::DescribeDBClusterAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBClusterAttributeResult::~DescribeDBClusterAttributeResult() -{} - -void DescribeDBClusterAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterAttributeResult::DescribeDBClusterAttributeResult() : + ServiceResult() +{} + +DescribeDBClusterAttributeResult::DescribeDBClusterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterAttributeResult::~DescribeDBClusterAttributeResult() +{} + +void DescribeDBClusterAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { @@ -109,16 +112,16 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) if(!value["StorageUsed"].isNull()) storageUsed_ = std::stol(value["StorageUsed"].asString()); if(!value["StorageMax"].isNull()) - storageMax_ = std::stoi(value["StorageMax"].asString()); + storageMax_ = std::stol(value["StorageMax"].asString()); if(!value["ZoneIds"].isNull()) zoneIds_ = value["ZoneIds"].asString(); if(!value["SQLSize"].isNull()) sQLSize_ = std::stol(value["SQLSize"].asString()); if(!value["IsLatestVersion"].isNull()) isLatestVersion_ = value["IsLatestVersion"].asString() == "true"; - -} - + +} + int DescribeDBClusterAttributeResult::getDeletionLock()const { return deletionLock_; @@ -189,7 +192,7 @@ std::string DescribeDBClusterAttributeResult::getDBVersion()const return dBVersion_; } -int DescribeDBClusterAttributeResult::getStorageMax()const +long DescribeDBClusterAttributeResult::getStorageMax()const { return storageMax_; } diff --git a/polardb/src/model/DescribeDBClusterEndpointsRequest.cc b/polardb/src/model/DescribeDBClusterEndpointsRequest.cc index 14fb21362..76b6ee794 100644 --- a/polardb/src/model/DescribeDBClusterEndpointsRequest.cc +++ b/polardb/src/model/DescribeDBClusterEndpointsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterEndpointsRequest; - -DescribeDBClusterEndpointsRequest::DescribeDBClusterEndpointsRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterEndpoints") -{} - -DescribeDBClusterEndpointsRequest::~DescribeDBClusterEndpointsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterEndpointsRequest; + +DescribeDBClusterEndpointsRequest::DescribeDBClusterEndpointsRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterEndpoints") +{} + +DescribeDBClusterEndpointsRequest::~DescribeDBClusterEndpointsRequest() +{} + long DescribeDBClusterEndpointsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeDBClusterEndpointsResult.cc b/polardb/src/model/DescribeDBClusterEndpointsResult.cc index 5ac877b90..e9ef2b8b8 100644 --- a/polardb/src/model/DescribeDBClusterEndpointsResult.cc +++ b/polardb/src/model/DescribeDBClusterEndpointsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeDBClusterEndpointsResult::DescribeDBClusterEndpointsResult() : - ServiceResult() -{} - -DescribeDBClusterEndpointsResult::DescribeDBClusterEndpointsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBClusterEndpointsResult::~DescribeDBClusterEndpointsResult() -{} - -void DescribeDBClusterEndpointsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterEndpointsResult::DescribeDBClusterEndpointsResult() : + ServiceResult() +{} + +DescribeDBClusterEndpointsResult::DescribeDBClusterEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterEndpointsResult::~DescribeDBClusterEndpointsResult() +{} + +void DescribeDBClusterEndpointsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBEndpoint"]; for (auto value : allItems) { @@ -76,9 +79,9 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload) } items_.push_back(itemsObject); } - -} - + +} + std::vector DescribeDBClusterEndpointsResult::getItems()const { return items_; diff --git a/polardb/src/model/DescribeDBClusterMigrationRequest.cc b/polardb/src/model/DescribeDBClusterMigrationRequest.cc index 4ea9a1061..921151f04 100644 --- a/polardb/src/model/DescribeDBClusterMigrationRequest.cc +++ b/polardb/src/model/DescribeDBClusterMigrationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterMigrationRequest; - -DescribeDBClusterMigrationRequest::DescribeDBClusterMigrationRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterMigration") -{} - -DescribeDBClusterMigrationRequest::~DescribeDBClusterMigrationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterMigrationRequest; + +DescribeDBClusterMigrationRequest::DescribeDBClusterMigrationRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterMigration") +{} + +DescribeDBClusterMigrationRequest::~DescribeDBClusterMigrationRequest() +{} + long DescribeDBClusterMigrationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeDBClusterMigrationResult.cc b/polardb/src/model/DescribeDBClusterMigrationResult.cc index bf9ffb82a..0c5d3617e 100644 --- a/polardb/src/model/DescribeDBClusterMigrationResult.cc +++ b/polardb/src/model/DescribeDBClusterMigrationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeDBClusterMigrationResult::DescribeDBClusterMigrationResult() : - ServiceResult() -{} - -DescribeDBClusterMigrationResult::DescribeDBClusterMigrationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBClusterMigrationResult::~DescribeDBClusterMigrationResult() -{} - -void DescribeDBClusterMigrationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterMigrationResult::DescribeDBClusterMigrationResult() : + ServiceResult() +{} + +DescribeDBClusterMigrationResult::DescribeDBClusterMigrationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterMigrationResult::~DescribeDBClusterMigrationResult() +{} + +void DescribeDBClusterMigrationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["SourceRDSDBInstanceId"].isNull()) @@ -56,9 +59,16 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload) rdsReadWriteMode_ = value["RdsReadWriteMode"].asString(); if(!value["DBClusterReadWriteMode"].isNull()) dBClusterReadWriteMode_ = value["DBClusterReadWriteMode"].asString(); - -} - + if(!value["Comment"].isNull()) + comment_ = value["Comment"].asString(); + +} + +std::string DescribeDBClusterMigrationResult::getComment()const +{ + return comment_; +} + std::string DescribeDBClusterMigrationResult::getExpiredTime()const { return expiredTime_; diff --git a/polardb/src/model/DescribeDBClusterParametersRequest.cc b/polardb/src/model/DescribeDBClusterParametersRequest.cc index 8ed7d379b..135dea02b 100644 --- a/polardb/src/model/DescribeDBClusterParametersRequest.cc +++ b/polardb/src/model/DescribeDBClusterParametersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterParametersRequest; - -DescribeDBClusterParametersRequest::DescribeDBClusterParametersRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterParameters") -{} - -DescribeDBClusterParametersRequest::~DescribeDBClusterParametersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClusterParametersRequest; + +DescribeDBClusterParametersRequest::DescribeDBClusterParametersRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterParameters") +{} + +DescribeDBClusterParametersRequest::~DescribeDBClusterParametersRequest() +{} + long DescribeDBClusterParametersRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeDBClusterParametersResult.cc b/polardb/src/model/DescribeDBClusterParametersResult.cc index 691cb713a..c718297ef 100644 --- a/polardb/src/model/DescribeDBClusterParametersResult.cc +++ b/polardb/src/model/DescribeDBClusterParametersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeDBClusterParametersResult::DescribeDBClusterParametersResult() : - ServiceResult() -{} - -DescribeDBClusterParametersResult::DescribeDBClusterParametersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBClusterParametersResult::~DescribeDBClusterParametersResult() -{} - -void DescribeDBClusterParametersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterParametersResult::DescribeDBClusterParametersResult() : + ServiceResult() +{} + +DescribeDBClusterParametersResult::DescribeDBClusterParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterParametersResult::~DescribeDBClusterParametersResult() +{} + +void DescribeDBClusterParametersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRunningParameters = value["RunningParameters"]["Parameter"]; for (auto value : allRunningParameters) { @@ -70,9 +73,9 @@ void DescribeDBClusterParametersResult::parse(const std::string &payload) dBType_ = value["DBType"].asString(); if(!value["DBVersion"].isNull()) dBVersion_ = value["DBVersion"].asString(); - -} - + +} + std::vector DescribeDBClusterParametersResult::getRunningParameters()const { return runningParameters_; diff --git a/polardb/src/model/DescribeDBClustersRequest.cc b/polardb/src/model/DescribeDBClustersRequest.cc index c7d42ba57..f29f6abc3 100644 --- a/polardb/src/model/DescribeDBClustersRequest.cc +++ b/polardb/src/model/DescribeDBClustersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClustersRequest; - -DescribeDBClustersRequest::DescribeDBClustersRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusters") -{} - -DescribeDBClustersRequest::~DescribeDBClustersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDBClustersRequest; + +DescribeDBClustersRequest::DescribeDBClustersRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusters") +{} + +DescribeDBClustersRequest::~DescribeDBClustersRequest() +{} + long DescribeDBClustersRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeDBClustersResult.cc b/polardb/src/model/DescribeDBClustersResult.cc index e30cfa3cd..f4250b441 100644 --- a/polardb/src/model/DescribeDBClustersResult.cc +++ b/polardb/src/model/DescribeDBClustersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeDBClustersResult::DescribeDBClustersResult() : - ServiceResult() -{} - -DescribeDBClustersResult::DescribeDBClustersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBClustersResult::~DescribeDBClustersResult() -{} - -void DescribeDBClustersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClustersResult::DescribeDBClustersResult() : + ServiceResult() +{} + +DescribeDBClustersResult::DescribeDBClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClustersResult::~DescribeDBClustersResult() +{} + +void DescribeDBClustersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBCluster"]; for (auto value : allItems) { @@ -116,9 +119,9 @@ void DescribeDBClustersResult::parse(const std::string &payload) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeDBClustersResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/polardb/src/model/DescribeDatabasesRequest.cc b/polardb/src/model/DescribeDatabasesRequest.cc index 8bba4ac0e..3dc0deb3b 100644 --- a/polardb/src/model/DescribeDatabasesRequest.cc +++ b/polardb/src/model/DescribeDatabasesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDatabasesRequest; - -DescribeDatabasesRequest::DescribeDatabasesRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeDatabases") -{} - -DescribeDatabasesRequest::~DescribeDatabasesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeDatabasesRequest; + +DescribeDatabasesRequest::DescribeDatabasesRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDatabases") +{} + +DescribeDatabasesRequest::~DescribeDatabasesRequest() +{} + long DescribeDatabasesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeDatabasesResult.cc b/polardb/src/model/DescribeDatabasesResult.cc index 4dc6c1b0a..bf9ae84e8 100644 --- a/polardb/src/model/DescribeDatabasesResult.cc +++ b/polardb/src/model/DescribeDatabasesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeDatabasesResult::DescribeDatabasesResult() : - ServiceResult() -{} - -DescribeDatabasesResult::DescribeDatabasesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDatabasesResult::~DescribeDatabasesResult() -{} - -void DescribeDatabasesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDatabasesResult::DescribeDatabasesResult() : + ServiceResult() +{} + +DescribeDatabasesResult::DescribeDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabasesResult::~DescribeDatabasesResult() +{} + +void DescribeDatabasesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDatabases = value["Databases"]["Database"]; for (auto value : allDatabases) { @@ -70,9 +73,9 @@ void DescribeDatabasesResult::parse(const std::string &payload) } databases_.push_back(databasesObject); } - -} - + +} + std::vector DescribeDatabasesResult::getDatabases()const { return databases_; diff --git a/polardb/src/model/DescribeRegionsRequest.cc b/polardb/src/model/DescribeRegionsRequest.cc index 3b3a2af9a..db13d0c28 100644 --- a/polardb/src/model/DescribeRegionsRequest.cc +++ b/polardb/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeRegions") -{} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + long DescribeRegionsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/DescribeRegionsResult.cc b/polardb/src/model/DescribeRegionsResult.cc index 8e46822c9..cfa0d3614 100644 --- a/polardb/src/model/DescribeRegionsResult.cc +++ b/polardb/src/model/DescribeRegionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) { @@ -58,9 +61,9 @@ void DescribeRegionsResult::parse(const std::string &payload) } regions_.push_back(regionsObject); } - -} - + +} + std::vector DescribeRegionsResult::getRegions()const { return regions_; diff --git a/polardb/src/model/GrantAccountPrivilegeRequest.cc b/polardb/src/model/GrantAccountPrivilegeRequest.cc index 7f218ae31..795969d94 100644 --- a/polardb/src/model/GrantAccountPrivilegeRequest.cc +++ b/polardb/src/model/GrantAccountPrivilegeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::GrantAccountPrivilegeRequest; - -GrantAccountPrivilegeRequest::GrantAccountPrivilegeRequest() : - RpcServiceRequest("polardb", "2017-08-01", "GrantAccountPrivilege") -{} - -GrantAccountPrivilegeRequest::~GrantAccountPrivilegeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::GrantAccountPrivilegeRequest; + +GrantAccountPrivilegeRequest::GrantAccountPrivilegeRequest() : + RpcServiceRequest("polardb", "2017-08-01", "GrantAccountPrivilege") +{} + +GrantAccountPrivilegeRequest::~GrantAccountPrivilegeRequest() +{} + long GrantAccountPrivilegeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/GrantAccountPrivilegeResult.cc b/polardb/src/model/GrantAccountPrivilegeResult.cc index a11204cc4..531f2db43 100644 --- a/polardb/src/model/GrantAccountPrivilegeResult.cc +++ b/polardb/src/model/GrantAccountPrivilegeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -GrantAccountPrivilegeResult::GrantAccountPrivilegeResult() : - ServiceResult() -{} - -GrantAccountPrivilegeResult::GrantAccountPrivilegeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GrantAccountPrivilegeResult::~GrantAccountPrivilegeResult() -{} - -void GrantAccountPrivilegeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +GrantAccountPrivilegeResult::GrantAccountPrivilegeResult() : + ServiceResult() +{} + +GrantAccountPrivilegeResult::GrantAccountPrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantAccountPrivilegeResult::~GrantAccountPrivilegeResult() +{} + +void GrantAccountPrivilegeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ListTagResourcesRequest.cc b/polardb/src/model/ListTagResourcesRequest.cc index 537f9b85b..ef56806d5 100644 --- a/polardb/src/model/ListTagResourcesRequest.cc +++ b/polardb/src/model/ListTagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ListTagResources") -{} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ListTagResources") +{} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + long ListTagResourcesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ListTagResourcesResult.cc b/polardb/src/model/ListTagResourcesResult.cc index a0b78ac45..86875eab2 100644 --- a/polardb/src/model/ListTagResourcesResult.cc +++ b/polardb/src/model/ListTagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ListTagResourcesResult::ListTagResourcesResult() : - ServiceResult() -{} - -ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagResourcesResult::~ListTagResourcesResult() -{} - -void ListTagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allTagResources = value["TagResources"]["TagResource"]; for (auto value : allTagResources) { @@ -56,9 +59,9 @@ void ListTagResourcesResult::parse(const std::string &payload) } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); - -} - + +} + std::string ListTagResourcesResult::getNextToken()const { return nextToken_; diff --git a/polardb/src/model/LockDBClusterDeletionRequest.cc b/polardb/src/model/LockDBClusterDeletionRequest.cc index 054e5a747..17ad25dc3 100644 --- a/polardb/src/model/LockDBClusterDeletionRequest.cc +++ b/polardb/src/model/LockDBClusterDeletionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::LockDBClusterDeletionRequest; - -LockDBClusterDeletionRequest::LockDBClusterDeletionRequest() : - RpcServiceRequest("polardb", "2017-08-01", "LockDBClusterDeletion") -{} - -LockDBClusterDeletionRequest::~LockDBClusterDeletionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::LockDBClusterDeletionRequest; + +LockDBClusterDeletionRequest::LockDBClusterDeletionRequest() : + RpcServiceRequest("polardb", "2017-08-01", "LockDBClusterDeletion") +{} + +LockDBClusterDeletionRequest::~LockDBClusterDeletionRequest() +{} + long LockDBClusterDeletionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/LockDBClusterDeletionResult.cc b/polardb/src/model/LockDBClusterDeletionResult.cc index dea86a367..6e6ce59b6 100644 --- a/polardb/src/model/LockDBClusterDeletionResult.cc +++ b/polardb/src/model/LockDBClusterDeletionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -LockDBClusterDeletionResult::LockDBClusterDeletionResult() : - ServiceResult() -{} - -LockDBClusterDeletionResult::LockDBClusterDeletionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -LockDBClusterDeletionResult::~LockDBClusterDeletionResult() -{} - -void LockDBClusterDeletionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +LockDBClusterDeletionResult::LockDBClusterDeletionResult() : + ServiceResult() +{} + +LockDBClusterDeletionResult::LockDBClusterDeletionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LockDBClusterDeletionResult::~LockDBClusterDeletionResult() +{} + +void LockDBClusterDeletionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyAccountDescriptionRequest.cc b/polardb/src/model/ModifyAccountDescriptionRequest.cc index 4ac183775..f3b1d8cfd 100644 --- a/polardb/src/model/ModifyAccountDescriptionRequest.cc +++ b/polardb/src/model/ModifyAccountDescriptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyAccountDescriptionRequest; - -ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyAccountDescription") -{} - -ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyAccountDescriptionRequest; + +ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyAccountDescription") +{} + +ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() +{} + long ModifyAccountDescriptionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyAccountDescriptionResult.cc b/polardb/src/model/ModifyAccountDescriptionResult.cc index 6a74e3097..fa99568e8 100644 --- a/polardb/src/model/ModifyAccountDescriptionResult.cc +++ b/polardb/src/model/ModifyAccountDescriptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() : - ServiceResult() -{} - -ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() -{} - -void ModifyAccountDescriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() : + ServiceResult() +{} + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() +{} + +void ModifyAccountDescriptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyAccountPasswordRequest.cc b/polardb/src/model/ModifyAccountPasswordRequest.cc index 886e6a6bc..490f24478 100644 --- a/polardb/src/model/ModifyAccountPasswordRequest.cc +++ b/polardb/src/model/ModifyAccountPasswordRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyAccountPasswordRequest; - -ModifyAccountPasswordRequest::ModifyAccountPasswordRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyAccountPassword") -{} - -ModifyAccountPasswordRequest::~ModifyAccountPasswordRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyAccountPasswordRequest; + +ModifyAccountPasswordRequest::ModifyAccountPasswordRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyAccountPassword") +{} + +ModifyAccountPasswordRequest::~ModifyAccountPasswordRequest() +{} + long ModifyAccountPasswordRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyAccountPasswordResult.cc b/polardb/src/model/ModifyAccountPasswordResult.cc index eead87a4e..a44c3fca5 100644 --- a/polardb/src/model/ModifyAccountPasswordResult.cc +++ b/polardb/src/model/ModifyAccountPasswordResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyAccountPasswordResult::ModifyAccountPasswordResult() : - ServiceResult() -{} - -ModifyAccountPasswordResult::ModifyAccountPasswordResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAccountPasswordResult::~ModifyAccountPasswordResult() -{} - -void ModifyAccountPasswordResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyAccountPasswordResult::ModifyAccountPasswordResult() : + ServiceResult() +{} + +ModifyAccountPasswordResult::ModifyAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountPasswordResult::~ModifyAccountPasswordResult() +{} + +void ModifyAccountPasswordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyAutoRenewAttributeRequest.cc b/polardb/src/model/ModifyAutoRenewAttributeRequest.cc index 87e89ef84..20aef3096 100644 --- a/polardb/src/model/ModifyAutoRenewAttributeRequest.cc +++ b/polardb/src/model/ModifyAutoRenewAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyAutoRenewAttributeRequest; - -ModifyAutoRenewAttributeRequest::ModifyAutoRenewAttributeRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyAutoRenewAttribute") -{} - -ModifyAutoRenewAttributeRequest::~ModifyAutoRenewAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyAutoRenewAttributeRequest; + +ModifyAutoRenewAttributeRequest::ModifyAutoRenewAttributeRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyAutoRenewAttribute") +{} + +ModifyAutoRenewAttributeRequest::~ModifyAutoRenewAttributeRequest() +{} + std::string ModifyAutoRenewAttributeRequest::getDuration()const { return duration_; diff --git a/polardb/src/model/ModifyAutoRenewAttributeResult.cc b/polardb/src/model/ModifyAutoRenewAttributeResult.cc index 06d3c05c6..8bdbc8d31 100644 --- a/polardb/src/model/ModifyAutoRenewAttributeResult.cc +++ b/polardb/src/model/ModifyAutoRenewAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyAutoRenewAttributeResult::ModifyAutoRenewAttributeResult() : - ServiceResult() -{} - -ModifyAutoRenewAttributeResult::ModifyAutoRenewAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAutoRenewAttributeResult::~ModifyAutoRenewAttributeResult() -{} - -void ModifyAutoRenewAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyAutoRenewAttributeResult::ModifyAutoRenewAttributeResult() : + ServiceResult() +{} + +ModifyAutoRenewAttributeResult::ModifyAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAutoRenewAttributeResult::~ModifyAutoRenewAttributeResult() +{} + +void ModifyAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyBackupPolicyRequest.cc b/polardb/src/model/ModifyBackupPolicyRequest.cc index 246a9f29e..753e83c16 100644 --- a/polardb/src/model/ModifyBackupPolicyRequest.cc +++ b/polardb/src/model/ModifyBackupPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyBackupPolicyRequest; - -ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyBackupPolicy") -{} - -ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyBackupPolicyRequest; + +ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyBackupPolicy") +{} + +ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() +{} + std::string ModifyBackupPolicyRequest::getPreferredBackupTime()const { return preferredBackupTime_; diff --git a/polardb/src/model/ModifyBackupPolicyResult.cc b/polardb/src/model/ModifyBackupPolicyResult.cc index 485ec9687..ef273ec6c 100644 --- a/polardb/src/model/ModifyBackupPolicyResult.cc +++ b/polardb/src/model/ModifyBackupPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyBackupPolicyResult::ModifyBackupPolicyResult() : - ServiceResult() -{} - -ModifyBackupPolicyResult::ModifyBackupPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyBackupPolicyResult::~ModifyBackupPolicyResult() -{} - -void ModifyBackupPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyBackupPolicyResult::ModifyBackupPolicyResult() : + ServiceResult() +{} + +ModifyBackupPolicyResult::ModifyBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupPolicyResult::~ModifyBackupPolicyResult() +{} + +void ModifyBackupPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterAccessWhitelistRequest.cc b/polardb/src/model/ModifyDBClusterAccessWhitelistRequest.cc index 8e8c052f6..6fdae7558 100644 --- a/polardb/src/model/ModifyDBClusterAccessWhitelistRequest.cc +++ b/polardb/src/model/ModifyDBClusterAccessWhitelistRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterAccessWhitelistRequest; - -ModifyDBClusterAccessWhitelistRequest::ModifyDBClusterAccessWhitelistRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterAccessWhitelist") -{} - -ModifyDBClusterAccessWhitelistRequest::~ModifyDBClusterAccessWhitelistRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterAccessWhitelistRequest; + +ModifyDBClusterAccessWhitelistRequest::ModifyDBClusterAccessWhitelistRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterAccessWhitelist") +{} + +ModifyDBClusterAccessWhitelistRequest::~ModifyDBClusterAccessWhitelistRequest() +{} + long ModifyDBClusterAccessWhitelistRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyDBClusterAccessWhitelistResult.cc b/polardb/src/model/ModifyDBClusterAccessWhitelistResult.cc index fb33d8639..a2bec477d 100644 --- a/polardb/src/model/ModifyDBClusterAccessWhitelistResult.cc +++ b/polardb/src/model/ModifyDBClusterAccessWhitelistResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBClusterAccessWhitelistResult::ModifyDBClusterAccessWhitelistResult() : - ServiceResult() -{} - -ModifyDBClusterAccessWhitelistResult::ModifyDBClusterAccessWhitelistResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBClusterAccessWhitelistResult::~ModifyDBClusterAccessWhitelistResult() -{} - -void ModifyDBClusterAccessWhitelistResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterAccessWhitelistResult::ModifyDBClusterAccessWhitelistResult() : + ServiceResult() +{} + +ModifyDBClusterAccessWhitelistResult::ModifyDBClusterAccessWhitelistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterAccessWhitelistResult::~ModifyDBClusterAccessWhitelistResult() +{} + +void ModifyDBClusterAccessWhitelistResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterDescriptionRequest.cc b/polardb/src/model/ModifyDBClusterDescriptionRequest.cc index 82aa22ede..eb984b316 100644 --- a/polardb/src/model/ModifyDBClusterDescriptionRequest.cc +++ b/polardb/src/model/ModifyDBClusterDescriptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterDescriptionRequest; - -ModifyDBClusterDescriptionRequest::ModifyDBClusterDescriptionRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterDescription") -{} - -ModifyDBClusterDescriptionRequest::~ModifyDBClusterDescriptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterDescriptionRequest; + +ModifyDBClusterDescriptionRequest::ModifyDBClusterDescriptionRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterDescription") +{} + +ModifyDBClusterDescriptionRequest::~ModifyDBClusterDescriptionRequest() +{} + long ModifyDBClusterDescriptionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyDBClusterDescriptionResult.cc b/polardb/src/model/ModifyDBClusterDescriptionResult.cc index f0abde38a..ddab278df 100644 --- a/polardb/src/model/ModifyDBClusterDescriptionResult.cc +++ b/polardb/src/model/ModifyDBClusterDescriptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBClusterDescriptionResult::ModifyDBClusterDescriptionResult() : - ServiceResult() -{} - -ModifyDBClusterDescriptionResult::ModifyDBClusterDescriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBClusterDescriptionResult::~ModifyDBClusterDescriptionResult() -{} - -void ModifyDBClusterDescriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterDescriptionResult::ModifyDBClusterDescriptionResult() : + ServiceResult() +{} + +ModifyDBClusterDescriptionResult::ModifyDBClusterDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterDescriptionResult::~ModifyDBClusterDescriptionResult() +{} + +void ModifyDBClusterDescriptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterEndpointRequest.cc b/polardb/src/model/ModifyDBClusterEndpointRequest.cc index 15b9edaa9..05e65c5ff 100644 --- a/polardb/src/model/ModifyDBClusterEndpointRequest.cc +++ b/polardb/src/model/ModifyDBClusterEndpointRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterEndpointRequest; - -ModifyDBClusterEndpointRequest::ModifyDBClusterEndpointRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterEndpoint") -{} - -ModifyDBClusterEndpointRequest::~ModifyDBClusterEndpointRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterEndpointRequest; + +ModifyDBClusterEndpointRequest::ModifyDBClusterEndpointRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterEndpoint") +{} + +ModifyDBClusterEndpointRequest::~ModifyDBClusterEndpointRequest() +{} + std::string ModifyDBClusterEndpointRequest::getAutoAddNewNodes()const { return autoAddNewNodes_; diff --git a/polardb/src/model/ModifyDBClusterEndpointResult.cc b/polardb/src/model/ModifyDBClusterEndpointResult.cc index 80e234025..3a5875ccc 100644 --- a/polardb/src/model/ModifyDBClusterEndpointResult.cc +++ b/polardb/src/model/ModifyDBClusterEndpointResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBClusterEndpointResult::ModifyDBClusterEndpointResult() : - ServiceResult() -{} - -ModifyDBClusterEndpointResult::ModifyDBClusterEndpointResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBClusterEndpointResult::~ModifyDBClusterEndpointResult() -{} - -void ModifyDBClusterEndpointResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterEndpointResult::ModifyDBClusterEndpointResult() : + ServiceResult() +{} + +ModifyDBClusterEndpointResult::ModifyDBClusterEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterEndpointResult::~ModifyDBClusterEndpointResult() +{} + +void ModifyDBClusterEndpointResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterMaintainTimeRequest.cc b/polardb/src/model/ModifyDBClusterMaintainTimeRequest.cc index 98d20beb9..c6720f3e9 100644 --- a/polardb/src/model/ModifyDBClusterMaintainTimeRequest.cc +++ b/polardb/src/model/ModifyDBClusterMaintainTimeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterMaintainTimeRequest; - -ModifyDBClusterMaintainTimeRequest::ModifyDBClusterMaintainTimeRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterMaintainTime") -{} - -ModifyDBClusterMaintainTimeRequest::~ModifyDBClusterMaintainTimeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterMaintainTimeRequest; + +ModifyDBClusterMaintainTimeRequest::ModifyDBClusterMaintainTimeRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterMaintainTime") +{} + +ModifyDBClusterMaintainTimeRequest::~ModifyDBClusterMaintainTimeRequest() +{} + std::string ModifyDBClusterMaintainTimeRequest::getMaintainTime()const { return maintainTime_; diff --git a/polardb/src/model/ModifyDBClusterMaintainTimeResult.cc b/polardb/src/model/ModifyDBClusterMaintainTimeResult.cc index 716bb5bf0..f2f14e8ef 100644 --- a/polardb/src/model/ModifyDBClusterMaintainTimeResult.cc +++ b/polardb/src/model/ModifyDBClusterMaintainTimeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBClusterMaintainTimeResult::ModifyDBClusterMaintainTimeResult() : - ServiceResult() -{} - -ModifyDBClusterMaintainTimeResult::ModifyDBClusterMaintainTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBClusterMaintainTimeResult::~ModifyDBClusterMaintainTimeResult() -{} - -void ModifyDBClusterMaintainTimeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterMaintainTimeResult::ModifyDBClusterMaintainTimeResult() : + ServiceResult() +{} + +ModifyDBClusterMaintainTimeResult::ModifyDBClusterMaintainTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterMaintainTimeResult::~ModifyDBClusterMaintainTimeResult() +{} + +void ModifyDBClusterMaintainTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterMigrationRequest.cc b/polardb/src/model/ModifyDBClusterMigrationRequest.cc index d7edee6a7..99b9cb530 100644 --- a/polardb/src/model/ModifyDBClusterMigrationRequest.cc +++ b/polardb/src/model/ModifyDBClusterMigrationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterMigrationRequest; - -ModifyDBClusterMigrationRequest::ModifyDBClusterMigrationRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterMigration") -{} - -ModifyDBClusterMigrationRequest::~ModifyDBClusterMigrationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterMigrationRequest; + +ModifyDBClusterMigrationRequest::ModifyDBClusterMigrationRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterMigration") +{} + +ModifyDBClusterMigrationRequest::~ModifyDBClusterMigrationRequest() +{} + long ModifyDBClusterMigrationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyDBClusterMigrationResult.cc b/polardb/src/model/ModifyDBClusterMigrationResult.cc index 550eafb8c..38d47d6ed 100644 --- a/polardb/src/model/ModifyDBClusterMigrationResult.cc +++ b/polardb/src/model/ModifyDBClusterMigrationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBClusterMigrationResult::ModifyDBClusterMigrationResult() : - ServiceResult() -{} - -ModifyDBClusterMigrationResult::ModifyDBClusterMigrationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBClusterMigrationResult::~ModifyDBClusterMigrationResult() -{} - -void ModifyDBClusterMigrationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterMigrationResult::ModifyDBClusterMigrationResult() : + ServiceResult() +{} + +ModifyDBClusterMigrationResult::ModifyDBClusterMigrationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterMigrationResult::~ModifyDBClusterMigrationResult() +{} + +void ModifyDBClusterMigrationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterParametersRequest.cc b/polardb/src/model/ModifyDBClusterParametersRequest.cc index dc90258a9..ac144afa6 100644 --- a/polardb/src/model/ModifyDBClusterParametersRequest.cc +++ b/polardb/src/model/ModifyDBClusterParametersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterParametersRequest; - -ModifyDBClusterParametersRequest::ModifyDBClusterParametersRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterParameters") -{} - -ModifyDBClusterParametersRequest::~ModifyDBClusterParametersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBClusterParametersRequest; + +ModifyDBClusterParametersRequest::ModifyDBClusterParametersRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterParameters") +{} + +ModifyDBClusterParametersRequest::~ModifyDBClusterParametersRequest() +{} + long ModifyDBClusterParametersRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyDBClusterParametersResult.cc b/polardb/src/model/ModifyDBClusterParametersResult.cc index f5a72fb4e..78e36f91f 100644 --- a/polardb/src/model/ModifyDBClusterParametersResult.cc +++ b/polardb/src/model/ModifyDBClusterParametersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBClusterParametersResult::ModifyDBClusterParametersResult() : - ServiceResult() -{} - -ModifyDBClusterParametersResult::ModifyDBClusterParametersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBClusterParametersResult::~ModifyDBClusterParametersResult() -{} - -void ModifyDBClusterParametersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterParametersResult::ModifyDBClusterParametersResult() : + ServiceResult() +{} + +ModifyDBClusterParametersResult::ModifyDBClusterParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterParametersResult::~ModifyDBClusterParametersResult() +{} + +void ModifyDBClusterParametersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBDescriptionRequest.cc b/polardb/src/model/ModifyDBDescriptionRequest.cc index acb2e6c2f..b34d4fa66 100644 --- a/polardb/src/model/ModifyDBDescriptionRequest.cc +++ b/polardb/src/model/ModifyDBDescriptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBDescriptionRequest; - -ModifyDBDescriptionRequest::ModifyDBDescriptionRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBDescription") -{} - -ModifyDBDescriptionRequest::~ModifyDBDescriptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBDescriptionRequest; + +ModifyDBDescriptionRequest::ModifyDBDescriptionRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBDescription") +{} + +ModifyDBDescriptionRequest::~ModifyDBDescriptionRequest() +{} + long ModifyDBDescriptionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyDBDescriptionResult.cc b/polardb/src/model/ModifyDBDescriptionResult.cc index c6a3f69a6..d80339926 100644 --- a/polardb/src/model/ModifyDBDescriptionResult.cc +++ b/polardb/src/model/ModifyDBDescriptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBDescriptionResult::ModifyDBDescriptionResult() : - ServiceResult() -{} - -ModifyDBDescriptionResult::ModifyDBDescriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBDescriptionResult::~ModifyDBDescriptionResult() -{} - -void ModifyDBDescriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBDescriptionResult::ModifyDBDescriptionResult() : + ServiceResult() +{} + +ModifyDBDescriptionResult::ModifyDBDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBDescriptionResult::~ModifyDBDescriptionResult() +{} + +void ModifyDBDescriptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBEndpointAddressRequest.cc b/polardb/src/model/ModifyDBEndpointAddressRequest.cc index 8d6fc596e..88ca640f1 100644 --- a/polardb/src/model/ModifyDBEndpointAddressRequest.cc +++ b/polardb/src/model/ModifyDBEndpointAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBEndpointAddressRequest; - -ModifyDBEndpointAddressRequest::ModifyDBEndpointAddressRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBEndpointAddress") -{} - -ModifyDBEndpointAddressRequest::~ModifyDBEndpointAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBEndpointAddressRequest; + +ModifyDBEndpointAddressRequest::ModifyDBEndpointAddressRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBEndpointAddress") +{} + +ModifyDBEndpointAddressRequest::~ModifyDBEndpointAddressRequest() +{} + long ModifyDBEndpointAddressRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyDBEndpointAddressResult.cc b/polardb/src/model/ModifyDBEndpointAddressResult.cc index 04e433507..b869d0d59 100644 --- a/polardb/src/model/ModifyDBEndpointAddressResult.cc +++ b/polardb/src/model/ModifyDBEndpointAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBEndpointAddressResult::ModifyDBEndpointAddressResult() : - ServiceResult() -{} - -ModifyDBEndpointAddressResult::ModifyDBEndpointAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBEndpointAddressResult::~ModifyDBEndpointAddressResult() -{} - -void ModifyDBEndpointAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBEndpointAddressResult::ModifyDBEndpointAddressResult() : + ServiceResult() +{} + +ModifyDBEndpointAddressResult::ModifyDBEndpointAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBEndpointAddressResult::~ModifyDBEndpointAddressResult() +{} + +void ModifyDBEndpointAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBNodeClassRequest.cc b/polardb/src/model/ModifyDBNodeClassRequest.cc index 8d7354a6a..a3e023427 100644 --- a/polardb/src/model/ModifyDBNodeClassRequest.cc +++ b/polardb/src/model/ModifyDBNodeClassRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBNodeClassRequest; - -ModifyDBNodeClassRequest::ModifyDBNodeClassRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ModifyDBNodeClass") -{} - -ModifyDBNodeClassRequest::~ModifyDBNodeClassRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ModifyDBNodeClassRequest; + +ModifyDBNodeClassRequest::ModifyDBNodeClassRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBNodeClass") +{} + +ModifyDBNodeClassRequest::~ModifyDBNodeClassRequest() +{} + long ModifyDBNodeClassRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ModifyDBNodeClassResult.cc b/polardb/src/model/ModifyDBNodeClassResult.cc index 96b3f2b77..690de2efa 100644 --- a/polardb/src/model/ModifyDBNodeClassResult.cc +++ b/polardb/src/model/ModifyDBNodeClassResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ModifyDBNodeClassResult::ModifyDBNodeClassResult() : - ServiceResult() -{} - -ModifyDBNodeClassResult::ModifyDBNodeClassResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBNodeClassResult::~ModifyDBNodeClassResult() -{} - -void ModifyDBNodeClassResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBNodeClassResult::ModifyDBNodeClassResult() : + ServiceResult() +{} + +ModifyDBNodeClassResult::ModifyDBNodeClassResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBNodeClassResult::~ModifyDBNodeClassResult() +{} + +void ModifyDBNodeClassResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string ModifyDBNodeClassResult::getDBClusterId()const { return dBClusterId_; diff --git a/polardb/src/model/ResetAccountRequest.cc b/polardb/src/model/ResetAccountRequest.cc index 39ac1376b..26a652a64 100644 --- a/polardb/src/model/ResetAccountRequest.cc +++ b/polardb/src/model/ResetAccountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::ResetAccountRequest; - -ResetAccountRequest::ResetAccountRequest() : - RpcServiceRequest("polardb", "2017-08-01", "ResetAccount") -{} - -ResetAccountRequest::~ResetAccountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::ResetAccountRequest; + +ResetAccountRequest::ResetAccountRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ResetAccount") +{} + +ResetAccountRequest::~ResetAccountRequest() +{} + long ResetAccountRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/ResetAccountResult.cc b/polardb/src/model/ResetAccountResult.cc index d7343abc7..3784fec0f 100644 --- a/polardb/src/model/ResetAccountResult.cc +++ b/polardb/src/model/ResetAccountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -ResetAccountResult::ResetAccountResult() : - ServiceResult() -{} - -ResetAccountResult::ResetAccountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetAccountResult::~ResetAccountResult() -{} - -void ResetAccountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ResetAccountResult::ResetAccountResult() : + ServiceResult() +{} + +ResetAccountResult::ResetAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountResult::~ResetAccountResult() +{} + +void ResetAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/RestartDBNodeRequest.cc b/polardb/src/model/RestartDBNodeRequest.cc index 7b65cde3e..557577b8a 100644 --- a/polardb/src/model/RestartDBNodeRequest.cc +++ b/polardb/src/model/RestartDBNodeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::RestartDBNodeRequest; - -RestartDBNodeRequest::RestartDBNodeRequest() : - RpcServiceRequest("polardb", "2017-08-01", "RestartDBNode") -{} - -RestartDBNodeRequest::~RestartDBNodeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::RestartDBNodeRequest; + +RestartDBNodeRequest::RestartDBNodeRequest() : + RpcServiceRequest("polardb", "2017-08-01", "RestartDBNode") +{} + +RestartDBNodeRequest::~RestartDBNodeRequest() +{} + long RestartDBNodeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/RestartDBNodeResult.cc b/polardb/src/model/RestartDBNodeResult.cc index e1df2728f..82ad26f86 100644 --- a/polardb/src/model/RestartDBNodeResult.cc +++ b/polardb/src/model/RestartDBNodeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -RestartDBNodeResult::RestartDBNodeResult() : - ServiceResult() -{} - -RestartDBNodeResult::RestartDBNodeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RestartDBNodeResult::~RestartDBNodeResult() -{} - -void RestartDBNodeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +RestartDBNodeResult::RestartDBNodeResult() : + ServiceResult() +{} + +RestartDBNodeResult::RestartDBNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDBNodeResult::~RestartDBNodeResult() +{} + +void RestartDBNodeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/RevokeAccountPrivilegeRequest.cc b/polardb/src/model/RevokeAccountPrivilegeRequest.cc index cb29cef81..ce2ad8d4d 100644 --- a/polardb/src/model/RevokeAccountPrivilegeRequest.cc +++ b/polardb/src/model/RevokeAccountPrivilegeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::RevokeAccountPrivilegeRequest; - -RevokeAccountPrivilegeRequest::RevokeAccountPrivilegeRequest() : - RpcServiceRequest("polardb", "2017-08-01", "RevokeAccountPrivilege") -{} - -RevokeAccountPrivilegeRequest::~RevokeAccountPrivilegeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::RevokeAccountPrivilegeRequest; + +RevokeAccountPrivilegeRequest::RevokeAccountPrivilegeRequest() : + RpcServiceRequest("polardb", "2017-08-01", "RevokeAccountPrivilege") +{} + +RevokeAccountPrivilegeRequest::~RevokeAccountPrivilegeRequest() +{} + long RevokeAccountPrivilegeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/RevokeAccountPrivilegeResult.cc b/polardb/src/model/RevokeAccountPrivilegeResult.cc index e46c7c154..e317c545a 100644 --- a/polardb/src/model/RevokeAccountPrivilegeResult.cc +++ b/polardb/src/model/RevokeAccountPrivilegeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult() : - ServiceResult() -{} - -RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevokeAccountPrivilegeResult::~RevokeAccountPrivilegeResult() -{} - -void RevokeAccountPrivilegeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult() : + ServiceResult() +{} + +RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeAccountPrivilegeResult::~RevokeAccountPrivilegeResult() +{} + +void RevokeAccountPrivilegeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/TagResourcesRequest.cc b/polardb/src/model/TagResourcesRequest.cc index e17890de9..9147c317e 100644 --- a/polardb/src/model/TagResourcesRequest.cc +++ b/polardb/src/model/TagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("polardb", "2017-08-01", "TagResources") -{} - -TagResourcesRequest::~TagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("polardb", "2017-08-01", "TagResources") +{} + +TagResourcesRequest::~TagResourcesRequest() +{} + long TagResourcesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/TagResourcesResult.cc b/polardb/src/model/TagResourcesResult.cc index 2305c18d3..93c11f640 100644 --- a/polardb/src/model/TagResourcesResult.cc +++ b/polardb/src/model/TagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -TagResourcesResult::TagResourcesResult() : - ServiceResult() -{} - -TagResourcesResult::TagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TagResourcesResult::~TagResourcesResult() -{} - -void TagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/UnlockDBClusterDeletionRequest.cc b/polardb/src/model/UnlockDBClusterDeletionRequest.cc index 3bf91c409..7baf2acd0 100644 --- a/polardb/src/model/UnlockDBClusterDeletionRequest.cc +++ b/polardb/src/model/UnlockDBClusterDeletionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::UnlockDBClusterDeletionRequest; - -UnlockDBClusterDeletionRequest::UnlockDBClusterDeletionRequest() : - RpcServiceRequest("polardb", "2017-08-01", "UnlockDBClusterDeletion") -{} - -UnlockDBClusterDeletionRequest::~UnlockDBClusterDeletionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::UnlockDBClusterDeletionRequest; + +UnlockDBClusterDeletionRequest::UnlockDBClusterDeletionRequest() : + RpcServiceRequest("polardb", "2017-08-01", "UnlockDBClusterDeletion") +{} + +UnlockDBClusterDeletionRequest::~UnlockDBClusterDeletionRequest() +{} + long UnlockDBClusterDeletionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/polardb/src/model/UnlockDBClusterDeletionResult.cc b/polardb/src/model/UnlockDBClusterDeletionResult.cc index 682a7aadf..7ba321c92 100644 --- a/polardb/src/model/UnlockDBClusterDeletionResult.cc +++ b/polardb/src/model/UnlockDBClusterDeletionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -UnlockDBClusterDeletionResult::UnlockDBClusterDeletionResult() : - ServiceResult() -{} - -UnlockDBClusterDeletionResult::UnlockDBClusterDeletionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnlockDBClusterDeletionResult::~UnlockDBClusterDeletionResult() -{} - -void UnlockDBClusterDeletionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +UnlockDBClusterDeletionResult::UnlockDBClusterDeletionResult() : + ServiceResult() +{} + +UnlockDBClusterDeletionResult::UnlockDBClusterDeletionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnlockDBClusterDeletionResult::~UnlockDBClusterDeletionResult() +{} + +void UnlockDBClusterDeletionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/UntagResourcesRequest.cc b/polardb/src/model/UntagResourcesRequest.cc index 3af0f7ae7..942e8927a 100644 --- a/polardb/src/model/UntagResourcesRequest.cc +++ b/polardb/src/model/UntagResourcesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Polardb::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("polardb", "2017-08-01", "UntagResources") -{} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("polardb", "2017-08-01", "UntagResources") +{} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + bool UntagResourcesRequest::getAll()const { return all_; diff --git a/polardb/src/model/UntagResourcesResult.cc b/polardb/src/model/UntagResourcesResult.cc index fd6ab97e8..4d4371321 100644 --- a/polardb/src/model/UntagResourcesResult.cc +++ b/polardb/src/model/UntagResourcesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Polardb; -using namespace AlibabaCloud::Polardb::Model; - -UntagResourcesResult::UntagResourcesResult() : - ServiceResult() -{} - -UntagResourcesResult::UntagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UntagResourcesResult::~UntagResourcesResult() -{} - -void UntagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/push/CMakeLists.txt b/push/CMakeLists.txt index 8c0f0f1dc..9c6374ba4 100644 --- a/push/CMakeLists.txt +++ b/push/CMakeLists.txt @@ -21,20 +21,20 @@ set(push_public_header include/alibabacloud/push/PushExport.h ) set(push_public_header_model - include/alibabacloud/push/model/UnbindTagRequest.h - include/alibabacloud/push/model/UnbindTagResult.h include/alibabacloud/push/model/QueryDeviceStatRequest.h include/alibabacloud/push/model/QueryDeviceStatResult.h + include/alibabacloud/push/model/UnbindTagRequest.h + include/alibabacloud/push/model/UnbindTagResult.h include/alibabacloud/push/model/QueryPushStatByAppRequest.h include/alibabacloud/push/model/QueryPushStatByAppResult.h include/alibabacloud/push/model/CheckDeviceRequest.h include/alibabacloud/push/model/CheckDeviceResult.h - include/alibabacloud/push/model/ListPushRecordsRequest.h - include/alibabacloud/push/model/ListPushRecordsResult.h include/alibabacloud/push/model/QueryDevicesByAliasRequest.h include/alibabacloud/push/model/QueryDevicesByAliasResult.h include/alibabacloud/push/model/PushRequest.h include/alibabacloud/push/model/PushResult.h + include/alibabacloud/push/model/ListPushRecordsRequest.h + include/alibabacloud/push/model/ListPushRecordsResult.h include/alibabacloud/push/model/QueryTagsRequest.h include/alibabacloud/push/model/QueryTagsResult.h include/alibabacloud/push/model/UnbindAliasRequest.h @@ -80,20 +80,20 @@ set(push_public_header_model set(push_src src/PushClient.cc - src/model/UnbindTagRequest.cc - src/model/UnbindTagResult.cc src/model/QueryDeviceStatRequest.cc src/model/QueryDeviceStatResult.cc + src/model/UnbindTagRequest.cc + src/model/UnbindTagResult.cc src/model/QueryPushStatByAppRequest.cc src/model/QueryPushStatByAppResult.cc src/model/CheckDeviceRequest.cc src/model/CheckDeviceResult.cc - src/model/ListPushRecordsRequest.cc - src/model/ListPushRecordsResult.cc src/model/QueryDevicesByAliasRequest.cc src/model/QueryDevicesByAliasResult.cc src/model/PushRequest.cc src/model/PushResult.cc + src/model/ListPushRecordsRequest.cc + src/model/ListPushRecordsResult.cc src/model/QueryTagsRequest.cc src/model/QueryTagsResult.cc src/model/UnbindAliasRequest.cc diff --git a/push/include/alibabacloud/push/PushClient.h b/push/include/alibabacloud/push/PushClient.h index 2aac7bbd7..e2f2a82a0 100644 --- a/push/include/alibabacloud/push/PushClient.h +++ b/push/include/alibabacloud/push/PushClient.h @@ -22,20 +22,20 @@ #include #include #include "PushExport.h" -#include "model/UnbindTagRequest.h" -#include "model/UnbindTagResult.h" #include "model/QueryDeviceStatRequest.h" #include "model/QueryDeviceStatResult.h" +#include "model/UnbindTagRequest.h" +#include "model/UnbindTagResult.h" #include "model/QueryPushStatByAppRequest.h" #include "model/QueryPushStatByAppResult.h" #include "model/CheckDeviceRequest.h" #include "model/CheckDeviceResult.h" -#include "model/ListPushRecordsRequest.h" -#include "model/ListPushRecordsResult.h" #include "model/QueryDevicesByAliasRequest.h" #include "model/QueryDevicesByAliasResult.h" #include "model/PushRequest.h" #include "model/PushResult.h" +#include "model/ListPushRecordsRequest.h" +#include "model/ListPushRecordsResult.h" #include "model/QueryTagsRequest.h" #include "model/QueryTagsResult.h" #include "model/UnbindAliasRequest.h" @@ -87,27 +87,27 @@ namespace AlibabaCloud class ALIBABACLOUD_PUSH_EXPORT PushClient : public RpcServiceClient { public: - typedef Outcome UnbindTagOutcome; - typedef std::future UnbindTagOutcomeCallable; - typedef std::function&)> UnbindTagAsyncHandler; typedef Outcome QueryDeviceStatOutcome; typedef std::future QueryDeviceStatOutcomeCallable; typedef std::function&)> QueryDeviceStatAsyncHandler; + typedef Outcome UnbindTagOutcome; + typedef std::future UnbindTagOutcomeCallable; + typedef std::function&)> UnbindTagAsyncHandler; typedef Outcome QueryPushStatByAppOutcome; typedef std::future QueryPushStatByAppOutcomeCallable; typedef std::function&)> QueryPushStatByAppAsyncHandler; typedef Outcome CheckDeviceOutcome; typedef std::future CheckDeviceOutcomeCallable; typedef std::function&)> CheckDeviceAsyncHandler; - typedef Outcome ListPushRecordsOutcome; - typedef std::future ListPushRecordsOutcomeCallable; - typedef std::function&)> ListPushRecordsAsyncHandler; typedef Outcome QueryDevicesByAliasOutcome; typedef std::future QueryDevicesByAliasOutcomeCallable; typedef std::function&)> QueryDevicesByAliasAsyncHandler; typedef Outcome PushOutcome; typedef std::future PushOutcomeCallable; typedef std::function&)> PushAsyncHandler; + typedef Outcome ListPushRecordsOutcome; + typedef std::future ListPushRecordsOutcomeCallable; + typedef std::function&)> ListPushRecordsAsyncHandler; typedef Outcome QueryTagsOutcome; typedef std::future QueryTagsOutcomeCallable; typedef std::function&)> QueryTagsAsyncHandler; @@ -176,27 +176,27 @@ namespace AlibabaCloud PushClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); PushClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~PushClient(); - UnbindTagOutcome unbindTag(const Model::UnbindTagRequest &request)const; - void unbindTagAsync(const Model::UnbindTagRequest& request, const UnbindTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnbindTagOutcomeCallable unbindTagCallable(const Model::UnbindTagRequest& request) const; QueryDeviceStatOutcome queryDeviceStat(const Model::QueryDeviceStatRequest &request)const; void queryDeviceStatAsync(const Model::QueryDeviceStatRequest& request, const QueryDeviceStatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceStatOutcomeCallable queryDeviceStatCallable(const Model::QueryDeviceStatRequest& request) const; + UnbindTagOutcome unbindTag(const Model::UnbindTagRequest &request)const; + void unbindTagAsync(const Model::UnbindTagRequest& request, const UnbindTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindTagOutcomeCallable unbindTagCallable(const Model::UnbindTagRequest& request) const; QueryPushStatByAppOutcome queryPushStatByApp(const Model::QueryPushStatByAppRequest &request)const; void queryPushStatByAppAsync(const Model::QueryPushStatByAppRequest& request, const QueryPushStatByAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryPushStatByAppOutcomeCallable queryPushStatByAppCallable(const Model::QueryPushStatByAppRequest& request) const; CheckDeviceOutcome checkDevice(const Model::CheckDeviceRequest &request)const; void checkDeviceAsync(const Model::CheckDeviceRequest& request, const CheckDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckDeviceOutcomeCallable checkDeviceCallable(const Model::CheckDeviceRequest& request) const; - ListPushRecordsOutcome listPushRecords(const Model::ListPushRecordsRequest &request)const; - void listPushRecordsAsync(const Model::ListPushRecordsRequest& request, const ListPushRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPushRecordsOutcomeCallable listPushRecordsCallable(const Model::ListPushRecordsRequest& request) const; QueryDevicesByAliasOutcome queryDevicesByAlias(const Model::QueryDevicesByAliasRequest &request)const; void queryDevicesByAliasAsync(const Model::QueryDevicesByAliasRequest& request, const QueryDevicesByAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDevicesByAliasOutcomeCallable queryDevicesByAliasCallable(const Model::QueryDevicesByAliasRequest& request) const; PushOutcome push(const Model::PushRequest &request)const; void pushAsync(const Model::PushRequest& request, const PushAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PushOutcomeCallable pushCallable(const Model::PushRequest& request) const; + ListPushRecordsOutcome listPushRecords(const Model::ListPushRecordsRequest &request)const; + void listPushRecordsAsync(const Model::ListPushRecordsRequest& request, const ListPushRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPushRecordsOutcomeCallable listPushRecordsCallable(const Model::ListPushRecordsRequest& request) const; QueryTagsOutcome queryTags(const Model::QueryTagsRequest &request)const; void queryTagsAsync(const Model::QueryTagsRequest& request, const QueryTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTagsOutcomeCallable queryTagsCallable(const Model::QueryTagsRequest& request) const; diff --git a/push/src/PushClient.cc b/push/src/PushClient.cc index f2e4cdd0d..24584519d 100644 --- a/push/src/PushClient.cc +++ b/push/src/PushClient.cc @@ -31,62 +31,26 @@ PushClient::PushClient(const Credentials &credentials, const ClientConfiguration RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "push"); } PushClient::PushClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "push"); } PushClient::PushClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "push"); } PushClient::~PushClient() {} -PushClient::UnbindTagOutcome PushClient::unbindTag(const UnbindTagRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnbindTagOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnbindTagOutcome(UnbindTagResult(outcome.result())); - else - return UnbindTagOutcome(outcome.error()); -} - -void PushClient::unbindTagAsync(const UnbindTagRequest& request, const UnbindTagAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unbindTag(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -PushClient::UnbindTagOutcomeCallable PushClient::unbindTagCallable(const UnbindTagRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unbindTag(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - PushClient::QueryDeviceStatOutcome PushClient::queryDeviceStat(const QueryDeviceStatRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +87,42 @@ PushClient::QueryDeviceStatOutcomeCallable PushClient::queryDeviceStatCallable(c return task->get_future(); } +PushClient::UnbindTagOutcome PushClient::unbindTag(const UnbindTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindTagOutcome(UnbindTagResult(outcome.result())); + else + return UnbindTagOutcome(outcome.error()); +} + +void PushClient::unbindTagAsync(const UnbindTagRequest& request, const UnbindTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::UnbindTagOutcomeCallable PushClient::unbindTagCallable(const UnbindTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PushClient::QueryPushStatByAppOutcome PushClient::queryPushStatByApp(const QueryPushStatByAppRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,42 +195,6 @@ PushClient::CheckDeviceOutcomeCallable PushClient::checkDeviceCallable(const Che return task->get_future(); } -PushClient::ListPushRecordsOutcome PushClient::listPushRecords(const ListPushRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListPushRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListPushRecordsOutcome(ListPushRecordsResult(outcome.result())); - else - return ListPushRecordsOutcome(outcome.error()); -} - -void PushClient::listPushRecordsAsync(const ListPushRecordsRequest& request, const ListPushRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listPushRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -PushClient::ListPushRecordsOutcomeCallable PushClient::listPushRecordsCallable(const ListPushRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listPushRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - PushClient::QueryDevicesByAliasOutcome PushClient::queryDevicesByAlias(const QueryDevicesByAliasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +267,42 @@ PushClient::PushOutcomeCallable PushClient::pushCallable(const PushRequest &requ return task->get_future(); } +PushClient::ListPushRecordsOutcome PushClient::listPushRecords(const ListPushRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPushRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPushRecordsOutcome(ListPushRecordsResult(outcome.result())); + else + return ListPushRecordsOutcome(outcome.error()); +} + +void PushClient::listPushRecordsAsync(const ListPushRecordsRequest& request, const ListPushRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPushRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PushClient::ListPushRecordsOutcomeCallable PushClient::listPushRecordsCallable(const ListPushRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPushRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PushClient::QueryTagsOutcome PushClient::queryTags(const QueryTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/push/src/model/BindAliasRequest.cc b/push/src/model/BindAliasRequest.cc index feeab58ea..bc7292b6f 100644 --- a/push/src/model/BindAliasRequest.cc +++ b/push/src/model/BindAliasRequest.cc @@ -33,7 +33,7 @@ std::string BindAliasRequest::getAliasName()const void BindAliasRequest::setAliasName(const std::string& aliasName) { aliasName_ = aliasName; - setParameter("AliasName", aliasName); + setCoreParameter("AliasName", aliasName); } long BindAliasRequest::getAppKey()const @@ -44,7 +44,7 @@ long BindAliasRequest::getAppKey()const void BindAliasRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string BindAliasRequest::getDeviceId()const @@ -55,7 +55,7 @@ std::string BindAliasRequest::getDeviceId()const void BindAliasRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string BindAliasRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string BindAliasRequest::getAccessKeyId()const void BindAliasRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/BindAliasResult.cc b/push/src/model/BindAliasResult.cc index 0abd21df4..bad309fa8 100644 --- a/push/src/model/BindAliasResult.cc +++ b/push/src/model/BindAliasResult.cc @@ -35,10 +35,13 @@ BindAliasResult::~BindAliasResult() void BindAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/push/src/model/BindPhoneRequest.cc b/push/src/model/BindPhoneRequest.cc index 365afe662..c003dbd0b 100644 --- a/push/src/model/BindPhoneRequest.cc +++ b/push/src/model/BindPhoneRequest.cc @@ -33,7 +33,7 @@ std::string BindPhoneRequest::getPhoneNumber()const void BindPhoneRequest::setPhoneNumber(const std::string& phoneNumber) { phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); + setCoreParameter("PhoneNumber", phoneNumber); } long BindPhoneRequest::getAppKey()const @@ -44,7 +44,7 @@ long BindPhoneRequest::getAppKey()const void BindPhoneRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string BindPhoneRequest::getDeviceId()const @@ -55,7 +55,7 @@ std::string BindPhoneRequest::getDeviceId()const void BindPhoneRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string BindPhoneRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string BindPhoneRequest::getAccessKeyId()const void BindPhoneRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/BindPhoneResult.cc b/push/src/model/BindPhoneResult.cc index 34312a329..c1cd7bf79 100644 --- a/push/src/model/BindPhoneResult.cc +++ b/push/src/model/BindPhoneResult.cc @@ -35,10 +35,13 @@ BindPhoneResult::~BindPhoneResult() void BindPhoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/push/src/model/BindTagRequest.cc b/push/src/model/BindTagRequest.cc index 1e5c4cf36..f07151fb9 100644 --- a/push/src/model/BindTagRequest.cc +++ b/push/src/model/BindTagRequest.cc @@ -33,7 +33,7 @@ std::string BindTagRequest::getTagName()const void BindTagRequest::setTagName(const std::string& tagName) { tagName_ = tagName; - setParameter("TagName", tagName); + setCoreParameter("TagName", tagName); } std::string BindTagRequest::getClientKey()const @@ -44,7 +44,7 @@ std::string BindTagRequest::getClientKey()const void BindTagRequest::setClientKey(const std::string& clientKey) { clientKey_ = clientKey; - setParameter("ClientKey", clientKey); + setCoreParameter("ClientKey", clientKey); } long BindTagRequest::getAppKey()const @@ -55,7 +55,7 @@ long BindTagRequest::getAppKey()const void BindTagRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string BindTagRequest::getKeyType()const @@ -66,7 +66,7 @@ std::string BindTagRequest::getKeyType()const void BindTagRequest::setKeyType(const std::string& keyType) { keyType_ = keyType; - setParameter("KeyType", keyType); + setCoreParameter("KeyType", keyType); } std::string BindTagRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string BindTagRequest::getAccessKeyId()const void BindTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/BindTagResult.cc b/push/src/model/BindTagResult.cc index 6566cd4f7..fa6fa21ba 100644 --- a/push/src/model/BindTagResult.cc +++ b/push/src/model/BindTagResult.cc @@ -35,10 +35,13 @@ BindTagResult::~BindTagResult() void BindTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/push/src/model/CancelPushRequest.cc b/push/src/model/CancelPushRequest.cc index 2cfaaea9f..a27c521d5 100644 --- a/push/src/model/CancelPushRequest.cc +++ b/push/src/model/CancelPushRequest.cc @@ -33,7 +33,7 @@ long CancelPushRequest::getMessageId()const void CancelPushRequest::setMessageId(long messageId) { messageId_ = messageId; - setParameter("MessageId", std::to_string(messageId)); + setCoreParameter("MessageId", std::to_string(messageId)); } long CancelPushRequest::getAppKey()const @@ -44,7 +44,7 @@ long CancelPushRequest::getAppKey()const void CancelPushRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string CancelPushRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string CancelPushRequest::getAccessKeyId()const void CancelPushRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/CancelPushResult.cc b/push/src/model/CancelPushResult.cc index 1619d68c7..b76707409 100644 --- a/push/src/model/CancelPushResult.cc +++ b/push/src/model/CancelPushResult.cc @@ -35,10 +35,13 @@ CancelPushResult::~CancelPushResult() void CancelPushResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/push/src/model/CheckDeviceRequest.cc b/push/src/model/CheckDeviceRequest.cc index 3c90d7c63..d43942a20 100644 --- a/push/src/model/CheckDeviceRequest.cc +++ b/push/src/model/CheckDeviceRequest.cc @@ -33,7 +33,7 @@ long CheckDeviceRequest::getAppKey()const void CheckDeviceRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string CheckDeviceRequest::getDeviceId()const @@ -44,7 +44,7 @@ std::string CheckDeviceRequest::getDeviceId()const void CheckDeviceRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string CheckDeviceRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string CheckDeviceRequest::getAccessKeyId()const void CheckDeviceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/CheckDeviceResult.cc b/push/src/model/CheckDeviceResult.cc index 6de4b3890..b98cc9752 100644 --- a/push/src/model/CheckDeviceResult.cc +++ b/push/src/model/CheckDeviceResult.cc @@ -35,10 +35,13 @@ CheckDeviceResult::~CheckDeviceResult() void CheckDeviceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Available"].isNull()) available_ = value["Available"].asString() == "true"; diff --git a/push/src/model/CheckDevicesRequest.cc b/push/src/model/CheckDevicesRequest.cc index 97e4d4016..5a13ae92a 100644 --- a/push/src/model/CheckDevicesRequest.cc +++ b/push/src/model/CheckDevicesRequest.cc @@ -33,7 +33,7 @@ std::string CheckDevicesRequest::getDeviceIds()const void CheckDevicesRequest::setDeviceIds(const std::string& deviceIds) { deviceIds_ = deviceIds; - setParameter("DeviceIds", deviceIds); + setCoreParameter("DeviceIds", deviceIds); } long CheckDevicesRequest::getAppKey()const @@ -44,7 +44,7 @@ long CheckDevicesRequest::getAppKey()const void CheckDevicesRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string CheckDevicesRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string CheckDevicesRequest::getAccessKeyId()const void CheckDevicesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/CheckDevicesResult.cc b/push/src/model/CheckDevicesResult.cc index 6d0281f9c..a023eec36 100644 --- a/push/src/model/CheckDevicesResult.cc +++ b/push/src/model/CheckDevicesResult.cc @@ -35,10 +35,13 @@ CheckDevicesResult::~CheckDevicesResult() void CheckDevicesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDeviceCheckInfos = value["DeviceCheckInfos"]["DeviceCheckInfo"]; for (auto value : allDeviceCheckInfos) diff --git a/push/src/model/ListPushRecordsRequest.cc b/push/src/model/ListPushRecordsRequest.cc index 5553034fe..f6936e438 100644 --- a/push/src/model/ListPushRecordsRequest.cc +++ b/push/src/model/ListPushRecordsRequest.cc @@ -33,7 +33,7 @@ int ListPushRecordsRequest::getPageSize()const void ListPushRecordsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string ListPushRecordsRequest::getEndTime()const @@ -44,7 +44,7 @@ std::string ListPushRecordsRequest::getEndTime()const void ListPushRecordsRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } long ListPushRecordsRequest::getAppKey()const @@ -55,7 +55,7 @@ long ListPushRecordsRequest::getAppKey()const void ListPushRecordsRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string ListPushRecordsRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string ListPushRecordsRequest::getStartTime()const void ListPushRecordsRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } int ListPushRecordsRequest::getPage()const @@ -77,7 +77,7 @@ int ListPushRecordsRequest::getPage()const void ListPushRecordsRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string ListPushRecordsRequest::getPushType()const @@ -88,7 +88,7 @@ std::string ListPushRecordsRequest::getPushType()const void ListPushRecordsRequest::setPushType(const std::string& pushType) { pushType_ = pushType; - setParameter("PushType", pushType); + setCoreParameter("PushType", pushType); } std::string ListPushRecordsRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string ListPushRecordsRequest::getAccessKeyId()const void ListPushRecordsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/ListPushRecordsResult.cc b/push/src/model/ListPushRecordsResult.cc index 964316f8f..e703f0fd1 100644 --- a/push/src/model/ListPushRecordsResult.cc +++ b/push/src/model/ListPushRecordsResult.cc @@ -35,10 +35,13 @@ ListPushRecordsResult::~ListPushRecordsResult() void ListPushRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPushMessageInfos = value["PushMessageInfos"]["PushMessageInfo"]; for (auto value : allPushMessageInfos) diff --git a/push/src/model/ListSummaryAppsRequest.cc b/push/src/model/ListSummaryAppsRequest.cc index b722b2419..457cb6e35 100644 --- a/push/src/model/ListSummaryAppsRequest.cc +++ b/push/src/model/ListSummaryAppsRequest.cc @@ -33,6 +33,6 @@ std::string ListSummaryAppsRequest::getAccessKeyId()const void ListSummaryAppsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/ListSummaryAppsResult.cc b/push/src/model/ListSummaryAppsResult.cc index 1f0f1fa9e..405bad2d4 100644 --- a/push/src/model/ListSummaryAppsResult.cc +++ b/push/src/model/ListSummaryAppsResult.cc @@ -35,10 +35,13 @@ ListSummaryAppsResult::~ListSummaryAppsResult() void ListSummaryAppsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSummaryAppInfos = value["SummaryAppInfos"]["SummaryAppInfo"]; for (auto value : allSummaryAppInfos) diff --git a/push/src/model/ListTagsRequest.cc b/push/src/model/ListTagsRequest.cc index 677c0a9c9..fc7dd335f 100644 --- a/push/src/model/ListTagsRequest.cc +++ b/push/src/model/ListTagsRequest.cc @@ -33,7 +33,7 @@ long ListTagsRequest::getAppKey()const void ListTagsRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string ListTagsRequest::getAccessKeyId()const @@ -44,6 +44,6 @@ std::string ListTagsRequest::getAccessKeyId()const void ListTagsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/ListTagsResult.cc b/push/src/model/ListTagsResult.cc index 17d8f3567..1a2b5c342 100644 --- a/push/src/model/ListTagsResult.cc +++ b/push/src/model/ListTagsResult.cc @@ -35,10 +35,13 @@ ListTagsResult::~ListTagsResult() void ListTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagInfos = value["TagInfos"]["TagInfo"]; for (auto value : allTagInfos) diff --git a/push/src/model/PushMessageToAndroidRequest.cc b/push/src/model/PushMessageToAndroidRequest.cc index 8960f26b3..411ab1c16 100644 --- a/push/src/model/PushMessageToAndroidRequest.cc +++ b/push/src/model/PushMessageToAndroidRequest.cc @@ -33,7 +33,7 @@ long PushMessageToAndroidRequest::getAppKey()const void PushMessageToAndroidRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string PushMessageToAndroidRequest::getTargetValue()const @@ -44,7 +44,7 @@ std::string PushMessageToAndroidRequest::getTargetValue()const void PushMessageToAndroidRequest::setTargetValue(const std::string& targetValue) { targetValue_ = targetValue; - setParameter("TargetValue", targetValue); + setCoreParameter("TargetValue", targetValue); } std::string PushMessageToAndroidRequest::getTitle()const @@ -55,7 +55,7 @@ std::string PushMessageToAndroidRequest::getTitle()const void PushMessageToAndroidRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } std::string PushMessageToAndroidRequest::getBody()const @@ -66,7 +66,7 @@ std::string PushMessageToAndroidRequest::getBody()const void PushMessageToAndroidRequest::setBody(const std::string& body) { body_ = body; - setParameter("Body", body); + setCoreParameter("Body", body); } std::string PushMessageToAndroidRequest::getJobKey()const @@ -77,7 +77,7 @@ std::string PushMessageToAndroidRequest::getJobKey()const void PushMessageToAndroidRequest::setJobKey(const std::string& jobKey) { jobKey_ = jobKey; - setParameter("JobKey", jobKey); + setCoreParameter("JobKey", jobKey); } std::string PushMessageToAndroidRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string PushMessageToAndroidRequest::getAccessKeyId()const void PushMessageToAndroidRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string PushMessageToAndroidRequest::getTarget()const @@ -99,6 +99,6 @@ std::string PushMessageToAndroidRequest::getTarget()const void PushMessageToAndroidRequest::setTarget(const std::string& target) { target_ = target; - setParameter("Target", target); + setCoreParameter("Target", target); } diff --git a/push/src/model/PushMessageToAndroidResult.cc b/push/src/model/PushMessageToAndroidResult.cc index ab08afb19..a91ce87b9 100644 --- a/push/src/model/PushMessageToAndroidResult.cc +++ b/push/src/model/PushMessageToAndroidResult.cc @@ -35,10 +35,13 @@ PushMessageToAndroidResult::~PushMessageToAndroidResult() void PushMessageToAndroidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MessageId"].isNull()) messageId_ = value["MessageId"].asString(); diff --git a/push/src/model/PushMessageToiOSRequest.cc b/push/src/model/PushMessageToiOSRequest.cc index 1dcd2f0f4..683fef995 100644 --- a/push/src/model/PushMessageToiOSRequest.cc +++ b/push/src/model/PushMessageToiOSRequest.cc @@ -33,7 +33,7 @@ long PushMessageToiOSRequest::getAppKey()const void PushMessageToiOSRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string PushMessageToiOSRequest::getTargetValue()const @@ -44,7 +44,7 @@ std::string PushMessageToiOSRequest::getTargetValue()const void PushMessageToiOSRequest::setTargetValue(const std::string& targetValue) { targetValue_ = targetValue; - setParameter("TargetValue", targetValue); + setCoreParameter("TargetValue", targetValue); } std::string PushMessageToiOSRequest::getTitle()const @@ -55,7 +55,7 @@ std::string PushMessageToiOSRequest::getTitle()const void PushMessageToiOSRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } std::string PushMessageToiOSRequest::getBody()const @@ -66,7 +66,7 @@ std::string PushMessageToiOSRequest::getBody()const void PushMessageToiOSRequest::setBody(const std::string& body) { body_ = body; - setParameter("Body", body); + setCoreParameter("Body", body); } std::string PushMessageToiOSRequest::getJobKey()const @@ -77,7 +77,7 @@ std::string PushMessageToiOSRequest::getJobKey()const void PushMessageToiOSRequest::setJobKey(const std::string& jobKey) { jobKey_ = jobKey; - setParameter("JobKey", jobKey); + setCoreParameter("JobKey", jobKey); } std::string PushMessageToiOSRequest::getAccessKeyId()const @@ -88,7 +88,7 @@ std::string PushMessageToiOSRequest::getAccessKeyId()const void PushMessageToiOSRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string PushMessageToiOSRequest::getTarget()const @@ -99,6 +99,6 @@ std::string PushMessageToiOSRequest::getTarget()const void PushMessageToiOSRequest::setTarget(const std::string& target) { target_ = target; - setParameter("Target", target); + setCoreParameter("Target", target); } diff --git a/push/src/model/PushMessageToiOSResult.cc b/push/src/model/PushMessageToiOSResult.cc index 263e8ad3c..9c9deec0e 100644 --- a/push/src/model/PushMessageToiOSResult.cc +++ b/push/src/model/PushMessageToiOSResult.cc @@ -35,10 +35,13 @@ PushMessageToiOSResult::~PushMessageToiOSResult() void PushMessageToiOSResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MessageId"].isNull()) messageId_ = value["MessageId"].asString(); diff --git a/push/src/model/PushNoticeToAndroidRequest.cc b/push/src/model/PushNoticeToAndroidRequest.cc index 33decb89d..b9128806b 100644 --- a/push/src/model/PushNoticeToAndroidRequest.cc +++ b/push/src/model/PushNoticeToAndroidRequest.cc @@ -33,7 +33,7 @@ std::string PushNoticeToAndroidRequest::getExtParameters()const void PushNoticeToAndroidRequest::setExtParameters(const std::string& extParameters) { extParameters_ = extParameters; - setParameter("ExtParameters", extParameters); + setCoreParameter("ExtParameters", extParameters); } long PushNoticeToAndroidRequest::getAppKey()const @@ -44,7 +44,7 @@ long PushNoticeToAndroidRequest::getAppKey()const void PushNoticeToAndroidRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string PushNoticeToAndroidRequest::getTargetValue()const @@ -55,7 +55,7 @@ std::string PushNoticeToAndroidRequest::getTargetValue()const void PushNoticeToAndroidRequest::setTargetValue(const std::string& targetValue) { targetValue_ = targetValue; - setParameter("TargetValue", targetValue); + setCoreParameter("TargetValue", targetValue); } std::string PushNoticeToAndroidRequest::getTitle()const @@ -66,7 +66,7 @@ std::string PushNoticeToAndroidRequest::getTitle()const void PushNoticeToAndroidRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } std::string PushNoticeToAndroidRequest::getBody()const @@ -77,7 +77,7 @@ std::string PushNoticeToAndroidRequest::getBody()const void PushNoticeToAndroidRequest::setBody(const std::string& body) { body_ = body; - setParameter("Body", body); + setCoreParameter("Body", body); } std::string PushNoticeToAndroidRequest::getJobKey()const @@ -88,7 +88,7 @@ std::string PushNoticeToAndroidRequest::getJobKey()const void PushNoticeToAndroidRequest::setJobKey(const std::string& jobKey) { jobKey_ = jobKey; - setParameter("JobKey", jobKey); + setCoreParameter("JobKey", jobKey); } std::string PushNoticeToAndroidRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string PushNoticeToAndroidRequest::getAccessKeyId()const void PushNoticeToAndroidRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string PushNoticeToAndroidRequest::getTarget()const @@ -110,6 +110,6 @@ std::string PushNoticeToAndroidRequest::getTarget()const void PushNoticeToAndroidRequest::setTarget(const std::string& target) { target_ = target; - setParameter("Target", target); + setCoreParameter("Target", target); } diff --git a/push/src/model/PushNoticeToAndroidResult.cc b/push/src/model/PushNoticeToAndroidResult.cc index f8c7e8bc0..c8d19b032 100644 --- a/push/src/model/PushNoticeToAndroidResult.cc +++ b/push/src/model/PushNoticeToAndroidResult.cc @@ -35,10 +35,13 @@ PushNoticeToAndroidResult::~PushNoticeToAndroidResult() void PushNoticeToAndroidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MessageId"].isNull()) messageId_ = value["MessageId"].asString(); diff --git a/push/src/model/PushNoticeToiOSRequest.cc b/push/src/model/PushNoticeToiOSRequest.cc index 0c8ae51b8..9b44c4e49 100644 --- a/push/src/model/PushNoticeToiOSRequest.cc +++ b/push/src/model/PushNoticeToiOSRequest.cc @@ -33,7 +33,7 @@ std::string PushNoticeToiOSRequest::getExtParameters()const void PushNoticeToiOSRequest::setExtParameters(const std::string& extParameters) { extParameters_ = extParameters; - setParameter("ExtParameters", extParameters); + setCoreParameter("ExtParameters", extParameters); } std::string PushNoticeToiOSRequest::getApnsEnv()const @@ -44,7 +44,7 @@ std::string PushNoticeToiOSRequest::getApnsEnv()const void PushNoticeToiOSRequest::setApnsEnv(const std::string& apnsEnv) { apnsEnv_ = apnsEnv; - setParameter("ApnsEnv", apnsEnv); + setCoreParameter("ApnsEnv", apnsEnv); } long PushNoticeToiOSRequest::getAppKey()const @@ -55,7 +55,7 @@ long PushNoticeToiOSRequest::getAppKey()const void PushNoticeToiOSRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string PushNoticeToiOSRequest::getTargetValue()const @@ -66,7 +66,7 @@ std::string PushNoticeToiOSRequest::getTargetValue()const void PushNoticeToiOSRequest::setTargetValue(const std::string& targetValue) { targetValue_ = targetValue; - setParameter("TargetValue", targetValue); + setCoreParameter("TargetValue", targetValue); } std::string PushNoticeToiOSRequest::getTitle()const @@ -77,7 +77,7 @@ std::string PushNoticeToiOSRequest::getTitle()const void PushNoticeToiOSRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } std::string PushNoticeToiOSRequest::getBody()const @@ -88,7 +88,7 @@ std::string PushNoticeToiOSRequest::getBody()const void PushNoticeToiOSRequest::setBody(const std::string& body) { body_ = body; - setParameter("Body", body); + setCoreParameter("Body", body); } std::string PushNoticeToiOSRequest::getJobKey()const @@ -99,7 +99,7 @@ std::string PushNoticeToiOSRequest::getJobKey()const void PushNoticeToiOSRequest::setJobKey(const std::string& jobKey) { jobKey_ = jobKey; - setParameter("JobKey", jobKey); + setCoreParameter("JobKey", jobKey); } std::string PushNoticeToiOSRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string PushNoticeToiOSRequest::getAccessKeyId()const void PushNoticeToiOSRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string PushNoticeToiOSRequest::getTarget()const @@ -121,6 +121,6 @@ std::string PushNoticeToiOSRequest::getTarget()const void PushNoticeToiOSRequest::setTarget(const std::string& target) { target_ = target; - setParameter("Target", target); + setCoreParameter("Target", target); } diff --git a/push/src/model/PushNoticeToiOSResult.cc b/push/src/model/PushNoticeToiOSResult.cc index c4c824ee0..84fd0f23e 100644 --- a/push/src/model/PushNoticeToiOSResult.cc +++ b/push/src/model/PushNoticeToiOSResult.cc @@ -35,10 +35,13 @@ PushNoticeToiOSResult::~PushNoticeToiOSResult() void PushNoticeToiOSResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MessageId"].isNull()) messageId_ = value["MessageId"].asString(); diff --git a/push/src/model/PushRequest.cc b/push/src/model/PushRequest.cc index eb2c56c41..405f0f76b 100644 --- a/push/src/model/PushRequest.cc +++ b/push/src/model/PushRequest.cc @@ -33,7 +33,7 @@ int PushRequest::getAndroidNotificationBarType()const void PushRequest::setAndroidNotificationBarType(int androidNotificationBarType) { androidNotificationBarType_ = androidNotificationBarType; - setParameter("AndroidNotificationBarType", std::to_string(androidNotificationBarType)); + setCoreParameter("AndroidNotificationBarType", std::to_string(androidNotificationBarType)); } int PushRequest::getSmsSendPolicy()const @@ -44,7 +44,7 @@ int PushRequest::getSmsSendPolicy()const void PushRequest::setSmsSendPolicy(int smsSendPolicy) { smsSendPolicy_ = smsSendPolicy; - setParameter("SmsSendPolicy", std::to_string(smsSendPolicy)); + setCoreParameter("SmsSendPolicy", std::to_string(smsSendPolicy)); } std::string PushRequest::getAndroidExtParameters()const @@ -55,7 +55,7 @@ std::string PushRequest::getAndroidExtParameters()const void PushRequest::setAndroidExtParameters(const std::string& androidExtParameters) { androidExtParameters_ = androidExtParameters; - setParameter("AndroidExtParameters", androidExtParameters); + setCoreParameter("AndroidExtParameters", androidExtParameters); } int PushRequest::getIOSBadge()const @@ -66,7 +66,7 @@ int PushRequest::getIOSBadge()const void PushRequest::setIOSBadge(int iOSBadge) { iOSBadge_ = iOSBadge; - setParameter("IOSBadge", std::to_string(iOSBadge)); + setCoreParameter("IOSBadge", std::to_string(iOSBadge)); } bool PushRequest::getIOSBadgeAutoIncrement()const @@ -77,7 +77,7 @@ bool PushRequest::getIOSBadgeAutoIncrement()const void PushRequest::setIOSBadgeAutoIncrement(bool iOSBadgeAutoIncrement) { iOSBadgeAutoIncrement_ = iOSBadgeAutoIncrement; - setParameter("IOSBadgeAutoIncrement", std::to_string(iOSBadgeAutoIncrement)); + setCoreParameter("IOSBadgeAutoIncrement", iOSBadgeAutoIncrement ? "true" : "false"); } std::string PushRequest::getAndroidOpenType()const @@ -88,7 +88,7 @@ std::string PushRequest::getAndroidOpenType()const void PushRequest::setAndroidOpenType(const std::string& androidOpenType) { androidOpenType_ = androidOpenType; - setParameter("AndroidOpenType", androidOpenType); + setCoreParameter("AndroidOpenType", androidOpenType); } std::string PushRequest::getTitle()const @@ -99,7 +99,7 @@ std::string PushRequest::getTitle()const void PushRequest::setTitle(const std::string& title) { title_ = title; - setParameter("Title", title); + setCoreParameter("Title", title); } std::string PushRequest::getBody()const @@ -110,7 +110,7 @@ std::string PushRequest::getBody()const void PushRequest::setBody(const std::string& body) { body_ = body; - setParameter("Body", body); + setCoreParameter("Body", body); } std::string PushRequest::getDeviceType()const @@ -121,7 +121,7 @@ std::string PushRequest::getDeviceType()const void PushRequest::setDeviceType(const std::string& deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", deviceType); + setCoreParameter("DeviceType", deviceType); } std::string PushRequest::getPushTime()const @@ -132,7 +132,7 @@ std::string PushRequest::getPushTime()const void PushRequest::setPushTime(const std::string& pushTime) { pushTime_ = pushTime; - setParameter("PushTime", pushTime); + setCoreParameter("PushTime", pushTime); } std::string PushRequest::getAccessKeyId()const @@ -143,7 +143,7 @@ std::string PushRequest::getAccessKeyId()const void PushRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int PushRequest::getSmsDelaySecs()const @@ -154,7 +154,7 @@ int PushRequest::getSmsDelaySecs()const void PushRequest::setSmsDelaySecs(int smsDelaySecs) { smsDelaySecs_ = smsDelaySecs; - setParameter("SmsDelaySecs", std::to_string(smsDelaySecs)); + setCoreParameter("SmsDelaySecs", std::to_string(smsDelaySecs)); } int PushRequest::getSendSpeed()const @@ -165,7 +165,7 @@ int PushRequest::getSendSpeed()const void PushRequest::setSendSpeed(int sendSpeed) { sendSpeed_ = sendSpeed; - setParameter("SendSpeed", std::to_string(sendSpeed)); + setCoreParameter("SendSpeed", std::to_string(sendSpeed)); } std::string PushRequest::getAndroidPopupActivity()const @@ -176,7 +176,7 @@ std::string PushRequest::getAndroidPopupActivity()const void PushRequest::setAndroidPopupActivity(const std::string& androidPopupActivity) { androidPopupActivity_ = androidPopupActivity; - setParameter("AndroidPopupActivity", androidPopupActivity); + setCoreParameter("AndroidPopupActivity", androidPopupActivity); } std::string PushRequest::getIOSRemindBody()const @@ -187,7 +187,7 @@ std::string PushRequest::getIOSRemindBody()const void PushRequest::setIOSRemindBody(const std::string& iOSRemindBody) { iOSRemindBody_ = iOSRemindBody; - setParameter("IOSRemindBody", iOSRemindBody); + setCoreParameter("IOSRemindBody", iOSRemindBody); } std::string PushRequest::getIOSExtParameters()const @@ -198,7 +198,7 @@ std::string PushRequest::getIOSExtParameters()const void PushRequest::setIOSExtParameters(const std::string& iOSExtParameters) { iOSExtParameters_ = iOSExtParameters; - setParameter("IOSExtParameters", iOSExtParameters); + setCoreParameter("IOSExtParameters", iOSExtParameters); } std::string PushRequest::getAndroidNotifyType()const @@ -209,7 +209,7 @@ std::string PushRequest::getAndroidNotifyType()const void PushRequest::setAndroidNotifyType(const std::string& androidNotifyType) { androidNotifyType_ = androidNotifyType; - setParameter("AndroidNotifyType", androidNotifyType); + setCoreParameter("AndroidNotifyType", androidNotifyType); } std::string PushRequest::getAndroidPopupTitle()const @@ -220,7 +220,7 @@ std::string PushRequest::getAndroidPopupTitle()const void PushRequest::setAndroidPopupTitle(const std::string& androidPopupTitle) { androidPopupTitle_ = androidPopupTitle; - setParameter("AndroidPopupTitle", androidPopupTitle); + setCoreParameter("AndroidPopupTitle", androidPopupTitle); } std::string PushRequest::getIOSMusic()const @@ -231,7 +231,7 @@ std::string PushRequest::getIOSMusic()const void PushRequest::setIOSMusic(const std::string& iOSMusic) { iOSMusic_ = iOSMusic; - setParameter("IOSMusic", iOSMusic); + setCoreParameter("IOSMusic", iOSMusic); } std::string PushRequest::getIOSApnsEnv()const @@ -242,7 +242,7 @@ std::string PushRequest::getIOSApnsEnv()const void PushRequest::setIOSApnsEnv(const std::string& iOSApnsEnv) { iOSApnsEnv_ = iOSApnsEnv; - setParameter("IOSApnsEnv", iOSApnsEnv); + setCoreParameter("IOSApnsEnv", iOSApnsEnv); } bool PushRequest::getIOSMutableContent()const @@ -253,7 +253,7 @@ bool PushRequest::getIOSMutableContent()const void PushRequest::setIOSMutableContent(bool iOSMutableContent) { iOSMutableContent_ = iOSMutableContent; - setParameter("IOSMutableContent", std::to_string(iOSMutableContent)); + setCoreParameter("IOSMutableContent", iOSMutableContent ? "true" : "false"); } int PushRequest::getAndroidNotificationBarPriority()const @@ -264,7 +264,7 @@ int PushRequest::getAndroidNotificationBarPriority()const void PushRequest::setAndroidNotificationBarPriority(int androidNotificationBarPriority) { androidNotificationBarPriority_ = androidNotificationBarPriority; - setParameter("AndroidNotificationBarPriority", std::to_string(androidNotificationBarPriority)); + setCoreParameter("AndroidNotificationBarPriority", std::to_string(androidNotificationBarPriority)); } std::string PushRequest::getExpireTime()const @@ -275,7 +275,7 @@ std::string PushRequest::getExpireTime()const void PushRequest::setExpireTime(const std::string& expireTime) { expireTime_ = expireTime; - setParameter("ExpireTime", expireTime); + setCoreParameter("ExpireTime", expireTime); } std::string PushRequest::getSmsTemplateName()const @@ -286,7 +286,7 @@ std::string PushRequest::getSmsTemplateName()const void PushRequest::setSmsTemplateName(const std::string& smsTemplateName) { smsTemplateName_ = smsTemplateName; - setParameter("SmsTemplateName", smsTemplateName); + setCoreParameter("SmsTemplateName", smsTemplateName); } std::string PushRequest::getAndroidPopupBody()const @@ -297,7 +297,7 @@ std::string PushRequest::getAndroidPopupBody()const void PushRequest::setAndroidPopupBody(const std::string& androidPopupBody) { androidPopupBody_ = androidPopupBody; - setParameter("AndroidPopupBody", androidPopupBody); + setCoreParameter("AndroidPopupBody", androidPopupBody); } std::string PushRequest::getIOSNotificationCategory()const @@ -308,7 +308,7 @@ std::string PushRequest::getIOSNotificationCategory()const void PushRequest::setIOSNotificationCategory(const std::string& iOSNotificationCategory) { iOSNotificationCategory_ = iOSNotificationCategory; - setParameter("IOSNotificationCategory", iOSNotificationCategory); + setCoreParameter("IOSNotificationCategory", iOSNotificationCategory); } bool PushRequest::getStoreOffline()const @@ -319,7 +319,7 @@ bool PushRequest::getStoreOffline()const void PushRequest::setStoreOffline(bool storeOffline) { storeOffline_ = storeOffline; - setParameter("StoreOffline", std::to_string(storeOffline)); + setCoreParameter("StoreOffline", storeOffline ? "true" : "false"); } bool PushRequest::getIOSSilentNotification()const @@ -330,7 +330,7 @@ bool PushRequest::getIOSSilentNotification()const void PushRequest::setIOSSilentNotification(bool iOSSilentNotification) { iOSSilentNotification_ = iOSSilentNotification; - setParameter("IOSSilentNotification", std::to_string(iOSSilentNotification)); + setCoreParameter("IOSSilentNotification", iOSSilentNotification ? "true" : "false"); } std::string PushRequest::getSmsParams()const @@ -341,7 +341,7 @@ std::string PushRequest::getSmsParams()const void PushRequest::setSmsParams(const std::string& smsParams) { smsParams_ = smsParams; - setParameter("SmsParams", smsParams); + setCoreParameter("SmsParams", smsParams); } std::string PushRequest::getJobKey()const @@ -352,7 +352,7 @@ std::string PushRequest::getJobKey()const void PushRequest::setJobKey(const std::string& jobKey) { jobKey_ = jobKey; - setParameter("JobKey", jobKey); + setCoreParameter("JobKey", jobKey); } std::string PushRequest::getTarget()const @@ -363,7 +363,7 @@ std::string PushRequest::getTarget()const void PushRequest::setTarget(const std::string& target) { target_ = target; - setParameter("Target", target); + setCoreParameter("Target", target); } std::string PushRequest::getAndroidOpenUrl()const @@ -374,7 +374,7 @@ std::string PushRequest::getAndroidOpenUrl()const void PushRequest::setAndroidOpenUrl(const std::string& androidOpenUrl) { androidOpenUrl_ = androidOpenUrl; - setParameter("AndroidOpenUrl", androidOpenUrl); + setCoreParameter("AndroidOpenUrl", androidOpenUrl); } std::string PushRequest::getAndroidNotificationChannel()const @@ -385,7 +385,7 @@ std::string PushRequest::getAndroidNotificationChannel()const void PushRequest::setAndroidNotificationChannel(const std::string& androidNotificationChannel) { androidNotificationChannel_ = androidNotificationChannel; - setParameter("AndroidNotificationChannel", androidNotificationChannel); + setCoreParameter("AndroidNotificationChannel", androidNotificationChannel); } bool PushRequest::getAndroidRemind()const @@ -396,7 +396,7 @@ bool PushRequest::getAndroidRemind()const void PushRequest::setAndroidRemind(bool androidRemind) { androidRemind_ = androidRemind; - setParameter("AndroidRemind", std::to_string(androidRemind)); + setCoreParameter("AndroidRemind", androidRemind ? "true" : "false"); } std::string PushRequest::getAndroidActivity()const @@ -407,7 +407,7 @@ std::string PushRequest::getAndroidActivity()const void PushRequest::setAndroidActivity(const std::string& androidActivity) { androidActivity_ = androidActivity; - setParameter("AndroidActivity", androidActivity); + setCoreParameter("AndroidActivity", androidActivity); } std::string PushRequest::getAndroidXiaoMiNotifyBody()const @@ -418,7 +418,7 @@ std::string PushRequest::getAndroidXiaoMiNotifyBody()const void PushRequest::setAndroidXiaoMiNotifyBody(const std::string& androidXiaoMiNotifyBody) { androidXiaoMiNotifyBody_ = androidXiaoMiNotifyBody; - setParameter("AndroidXiaoMiNotifyBody", androidXiaoMiNotifyBody); + setCoreParameter("AndroidXiaoMiNotifyBody", androidXiaoMiNotifyBody); } std::string PushRequest::getIOSSubtitle()const @@ -429,7 +429,7 @@ std::string PushRequest::getIOSSubtitle()const void PushRequest::setIOSSubtitle(const std::string& iOSSubtitle) { iOSSubtitle_ = iOSSubtitle; - setParameter("IOSSubtitle", iOSSubtitle); + setCoreParameter("IOSSubtitle", iOSSubtitle); } std::string PushRequest::getSmsSignName()const @@ -440,7 +440,7 @@ std::string PushRequest::getSmsSignName()const void PushRequest::setSmsSignName(const std::string& smsSignName) { smsSignName_ = smsSignName; - setParameter("SmsSignName", smsSignName); + setCoreParameter("SmsSignName", smsSignName); } bool PushRequest::getIOSRemind()const @@ -451,7 +451,7 @@ bool PushRequest::getIOSRemind()const void PushRequest::setIOSRemind(bool iOSRemind) { iOSRemind_ = iOSRemind; - setParameter("IOSRemind", std::to_string(iOSRemind)); + setCoreParameter("IOSRemind", iOSRemind ? "true" : "false"); } long PushRequest::getAppKey()const @@ -462,7 +462,7 @@ long PushRequest::getAppKey()const void PushRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string PushRequest::getTargetValue()const @@ -473,7 +473,7 @@ std::string PushRequest::getTargetValue()const void PushRequest::setTargetValue(const std::string& targetValue) { targetValue_ = targetValue; - setParameter("TargetValue", targetValue); + setCoreParameter("TargetValue", targetValue); } std::string PushRequest::getAndroidMusic()const @@ -484,7 +484,7 @@ std::string PushRequest::getAndroidMusic()const void PushRequest::setAndroidMusic(const std::string& androidMusic) { androidMusic_ = androidMusic; - setParameter("AndroidMusic", androidMusic); + setCoreParameter("AndroidMusic", androidMusic); } std::string PushRequest::getAndroidXiaoMiActivity()const @@ -495,7 +495,7 @@ std::string PushRequest::getAndroidXiaoMiActivity()const void PushRequest::setAndroidXiaoMiActivity(const std::string& androidXiaoMiActivity) { androidXiaoMiActivity_ = androidXiaoMiActivity; - setParameter("AndroidXiaoMiActivity", androidXiaoMiActivity); + setCoreParameter("AndroidXiaoMiActivity", androidXiaoMiActivity); } std::string PushRequest::getAndroidXiaoMiNotifyTitle()const @@ -506,7 +506,7 @@ std::string PushRequest::getAndroidXiaoMiNotifyTitle()const void PushRequest::setAndroidXiaoMiNotifyTitle(const std::string& androidXiaoMiNotifyTitle) { androidXiaoMiNotifyTitle_ = androidXiaoMiNotifyTitle; - setParameter("AndroidXiaoMiNotifyTitle", androidXiaoMiNotifyTitle); + setCoreParameter("AndroidXiaoMiNotifyTitle", androidXiaoMiNotifyTitle); } std::string PushRequest::getPushType()const @@ -517,6 +517,6 @@ std::string PushRequest::getPushType()const void PushRequest::setPushType(const std::string& pushType) { pushType_ = pushType; - setParameter("PushType", pushType); + setCoreParameter("PushType", pushType); } diff --git a/push/src/model/PushResult.cc b/push/src/model/PushResult.cc index 26092fea1..2a3a7af50 100644 --- a/push/src/model/PushResult.cc +++ b/push/src/model/PushResult.cc @@ -35,10 +35,13 @@ PushResult::~PushResult() void PushResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MessageId"].isNull()) messageId_ = value["MessageId"].asString(); diff --git a/push/src/model/QueryAliasesRequest.cc b/push/src/model/QueryAliasesRequest.cc index dfb242730..4957ca985 100644 --- a/push/src/model/QueryAliasesRequest.cc +++ b/push/src/model/QueryAliasesRequest.cc @@ -33,7 +33,7 @@ long QueryAliasesRequest::getAppKey()const void QueryAliasesRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryAliasesRequest::getDeviceId()const @@ -44,7 +44,7 @@ std::string QueryAliasesRequest::getDeviceId()const void QueryAliasesRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string QueryAliasesRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string QueryAliasesRequest::getAccessKeyId()const void QueryAliasesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryAliasesResult.cc b/push/src/model/QueryAliasesResult.cc index 4ebc951bd..22933806e 100644 --- a/push/src/model/QueryAliasesResult.cc +++ b/push/src/model/QueryAliasesResult.cc @@ -35,10 +35,13 @@ QueryAliasesResult::~QueryAliasesResult() void QueryAliasesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAliasInfos = value["AliasInfos"]["AliasInfo"]; for (auto value : allAliasInfos) diff --git a/push/src/model/QueryDeviceInfoRequest.cc b/push/src/model/QueryDeviceInfoRequest.cc index 143d91920..6ac828cad 100644 --- a/push/src/model/QueryDeviceInfoRequest.cc +++ b/push/src/model/QueryDeviceInfoRequest.cc @@ -33,7 +33,7 @@ long QueryDeviceInfoRequest::getAppKey()const void QueryDeviceInfoRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryDeviceInfoRequest::getDeviceId()const @@ -44,7 +44,7 @@ std::string QueryDeviceInfoRequest::getDeviceId()const void QueryDeviceInfoRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string QueryDeviceInfoRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string QueryDeviceInfoRequest::getAccessKeyId()const void QueryDeviceInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryDeviceInfoResult.cc b/push/src/model/QueryDeviceInfoResult.cc index 6c4e6e1ae..4166aa431 100644 --- a/push/src/model/QueryDeviceInfoResult.cc +++ b/push/src/model/QueryDeviceInfoResult.cc @@ -35,10 +35,13 @@ QueryDeviceInfoResult::~QueryDeviceInfoResult() void QueryDeviceInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto deviceInfoNode = value["DeviceInfo"]; if(!deviceInfoNode["DeviceId"].isNull()) diff --git a/push/src/model/QueryDeviceStatRequest.cc b/push/src/model/QueryDeviceStatRequest.cc index da01a4e73..576baa7c3 100644 --- a/push/src/model/QueryDeviceStatRequest.cc +++ b/push/src/model/QueryDeviceStatRequest.cc @@ -33,7 +33,7 @@ std::string QueryDeviceStatRequest::getEndTime()const void QueryDeviceStatRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } long QueryDeviceStatRequest::getAppKey()const @@ -44,7 +44,7 @@ long QueryDeviceStatRequest::getAppKey()const void QueryDeviceStatRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryDeviceStatRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string QueryDeviceStatRequest::getStartTime()const void QueryDeviceStatRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryDeviceStatRequest::getDeviceType()const @@ -66,7 +66,7 @@ std::string QueryDeviceStatRequest::getDeviceType()const void QueryDeviceStatRequest::setDeviceType(const std::string& deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", deviceType); + setCoreParameter("DeviceType", deviceType); } std::string QueryDeviceStatRequest::getQueryType()const @@ -77,7 +77,7 @@ std::string QueryDeviceStatRequest::getQueryType()const void QueryDeviceStatRequest::setQueryType(const std::string& queryType) { queryType_ = queryType; - setParameter("QueryType", queryType); + setCoreParameter("QueryType", queryType); } std::string QueryDeviceStatRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string QueryDeviceStatRequest::getAccessKeyId()const void QueryDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryDeviceStatResult.cc b/push/src/model/QueryDeviceStatResult.cc index bfcbbea1c..153041aba 100644 --- a/push/src/model/QueryDeviceStatResult.cc +++ b/push/src/model/QueryDeviceStatResult.cc @@ -35,10 +35,13 @@ QueryDeviceStatResult::~QueryDeviceStatResult() void QueryDeviceStatResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppDeviceStats = value["AppDeviceStats"]["AppDeviceStat"]; for (auto value : allAppDeviceStats) diff --git a/push/src/model/QueryDevicesByAccountRequest.cc b/push/src/model/QueryDevicesByAccountRequest.cc index 2b987c2c5..a145ff736 100644 --- a/push/src/model/QueryDevicesByAccountRequest.cc +++ b/push/src/model/QueryDevicesByAccountRequest.cc @@ -33,7 +33,7 @@ long QueryDevicesByAccountRequest::getAppKey()const void QueryDevicesByAccountRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryDevicesByAccountRequest::getAccount()const @@ -44,7 +44,7 @@ std::string QueryDevicesByAccountRequest::getAccount()const void QueryDevicesByAccountRequest::setAccount(const std::string& account) { account_ = account; - setParameter("Account", account); + setCoreParameter("Account", account); } std::string QueryDevicesByAccountRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string QueryDevicesByAccountRequest::getAccessKeyId()const void QueryDevicesByAccountRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryDevicesByAccountResult.cc b/push/src/model/QueryDevicesByAccountResult.cc index 5c82e1cc7..0254420cb 100644 --- a/push/src/model/QueryDevicesByAccountResult.cc +++ b/push/src/model/QueryDevicesByAccountResult.cc @@ -35,10 +35,13 @@ QueryDevicesByAccountResult::~QueryDevicesByAccountResult() void QueryDevicesByAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDeviceIds = value["DeviceIds"]["DeviceId"]; for (const auto &item : allDeviceIds) diff --git a/push/src/model/QueryDevicesByAliasRequest.cc b/push/src/model/QueryDevicesByAliasRequest.cc index ffb4a0d27..81280609f 100644 --- a/push/src/model/QueryDevicesByAliasRequest.cc +++ b/push/src/model/QueryDevicesByAliasRequest.cc @@ -33,7 +33,7 @@ std::string QueryDevicesByAliasRequest::getAlias()const void QueryDevicesByAliasRequest::setAlias(const std::string& alias) { alias_ = alias; - setParameter("Alias", alias); + setCoreParameter("Alias", alias); } long QueryDevicesByAliasRequest::getAppKey()const @@ -44,7 +44,7 @@ long QueryDevicesByAliasRequest::getAppKey()const void QueryDevicesByAliasRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryDevicesByAliasRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string QueryDevicesByAliasRequest::getAccessKeyId()const void QueryDevicesByAliasRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryDevicesByAliasResult.cc b/push/src/model/QueryDevicesByAliasResult.cc index 35b66c481..118411da3 100644 --- a/push/src/model/QueryDevicesByAliasResult.cc +++ b/push/src/model/QueryDevicesByAliasResult.cc @@ -35,10 +35,13 @@ QueryDevicesByAliasResult::~QueryDevicesByAliasResult() void QueryDevicesByAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDeviceIds = value["DeviceIds"]["DeviceId"]; for (const auto &item : allDeviceIds) diff --git a/push/src/model/QueryPushListRequest.cc b/push/src/model/QueryPushListRequest.cc index 9c2dc3c8a..b6593a95a 100644 --- a/push/src/model/QueryPushListRequest.cc +++ b/push/src/model/QueryPushListRequest.cc @@ -33,7 +33,7 @@ int QueryPushListRequest::getPageSize()const void QueryPushListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string QueryPushListRequest::getEndTime()const @@ -44,7 +44,7 @@ std::string QueryPushListRequest::getEndTime()const void QueryPushListRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } long QueryPushListRequest::getAppKey()const @@ -55,7 +55,7 @@ long QueryPushListRequest::getAppKey()const void QueryPushListRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryPushListRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string QueryPushListRequest::getStartTime()const void QueryPushListRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } int QueryPushListRequest::getPage()const @@ -77,7 +77,7 @@ int QueryPushListRequest::getPage()const void QueryPushListRequest::setPage(int page) { page_ = page; - setParameter("Page", std::to_string(page)); + setCoreParameter("Page", std::to_string(page)); } std::string QueryPushListRequest::getPushType()const @@ -88,7 +88,7 @@ std::string QueryPushListRequest::getPushType()const void QueryPushListRequest::setPushType(const std::string& pushType) { pushType_ = pushType; - setParameter("PushType", pushType); + setCoreParameter("PushType", pushType); } std::string QueryPushListRequest::getAccessKeyId()const @@ -99,6 +99,6 @@ std::string QueryPushListRequest::getAccessKeyId()const void QueryPushListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryPushListResult.cc b/push/src/model/QueryPushListResult.cc index d204e3c0e..e7c641c74 100644 --- a/push/src/model/QueryPushListResult.cc +++ b/push/src/model/QueryPushListResult.cc @@ -35,10 +35,13 @@ QueryPushListResult::~QueryPushListResult() void QueryPushListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPushMessageInfos = value["PushMessageInfos"]["PushMessageInfo"]; for (auto value : allPushMessageInfos) diff --git a/push/src/model/QueryPushStatByAppRequest.cc b/push/src/model/QueryPushStatByAppRequest.cc index e30da9166..ffe33a069 100644 --- a/push/src/model/QueryPushStatByAppRequest.cc +++ b/push/src/model/QueryPushStatByAppRequest.cc @@ -33,7 +33,7 @@ std::string QueryPushStatByAppRequest::getGranularity()const void QueryPushStatByAppRequest::setGranularity(const std::string& granularity) { granularity_ = granularity; - setParameter("Granularity", granularity); + setCoreParameter("Granularity", granularity); } std::string QueryPushStatByAppRequest::getEndTime()const @@ -44,7 +44,7 @@ std::string QueryPushStatByAppRequest::getEndTime()const void QueryPushStatByAppRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } long QueryPushStatByAppRequest::getAppKey()const @@ -55,7 +55,7 @@ long QueryPushStatByAppRequest::getAppKey()const void QueryPushStatByAppRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryPushStatByAppRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string QueryPushStatByAppRequest::getStartTime()const void QueryPushStatByAppRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryPushStatByAppRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string QueryPushStatByAppRequest::getAccessKeyId()const void QueryPushStatByAppRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryPushStatByAppResult.cc b/push/src/model/QueryPushStatByAppResult.cc index e6e95c69e..ece24e000 100644 --- a/push/src/model/QueryPushStatByAppResult.cc +++ b/push/src/model/QueryPushStatByAppResult.cc @@ -35,10 +35,13 @@ QueryPushStatByAppResult::~QueryPushStatByAppResult() void QueryPushStatByAppResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppPushStats = value["AppPushStats"]["AppPushStat"]; for (auto value : allAppPushStats) diff --git a/push/src/model/QueryPushStatByMsgRequest.cc b/push/src/model/QueryPushStatByMsgRequest.cc index bec41a857..53833ed6c 100644 --- a/push/src/model/QueryPushStatByMsgRequest.cc +++ b/push/src/model/QueryPushStatByMsgRequest.cc @@ -33,7 +33,7 @@ long QueryPushStatByMsgRequest::getMessageId()const void QueryPushStatByMsgRequest::setMessageId(long messageId) { messageId_ = messageId; - setParameter("MessageId", std::to_string(messageId)); + setCoreParameter("MessageId", std::to_string(messageId)); } long QueryPushStatByMsgRequest::getAppKey()const @@ -44,7 +44,7 @@ long QueryPushStatByMsgRequest::getAppKey()const void QueryPushStatByMsgRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryPushStatByMsgRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string QueryPushStatByMsgRequest::getAccessKeyId()const void QueryPushStatByMsgRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryPushStatByMsgResult.cc b/push/src/model/QueryPushStatByMsgResult.cc index ade682f8a..b7475be06 100644 --- a/push/src/model/QueryPushStatByMsgResult.cc +++ b/push/src/model/QueryPushStatByMsgResult.cc @@ -35,10 +35,13 @@ QueryPushStatByMsgResult::~QueryPushStatByMsgResult() void QueryPushStatByMsgResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPushStats = value["PushStats"]["PushStat"]; for (auto value : allPushStats) diff --git a/push/src/model/QueryTagsRequest.cc b/push/src/model/QueryTagsRequest.cc index 9eacb6ca5..af8dbc579 100644 --- a/push/src/model/QueryTagsRequest.cc +++ b/push/src/model/QueryTagsRequest.cc @@ -33,7 +33,7 @@ std::string QueryTagsRequest::getClientKey()const void QueryTagsRequest::setClientKey(const std::string& clientKey) { clientKey_ = clientKey; - setParameter("ClientKey", clientKey); + setCoreParameter("ClientKey", clientKey); } long QueryTagsRequest::getAppKey()const @@ -44,7 +44,7 @@ long QueryTagsRequest::getAppKey()const void QueryTagsRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryTagsRequest::getKeyType()const @@ -55,7 +55,7 @@ std::string QueryTagsRequest::getKeyType()const void QueryTagsRequest::setKeyType(const std::string& keyType) { keyType_ = keyType; - setParameter("KeyType", keyType); + setCoreParameter("KeyType", keyType); } std::string QueryTagsRequest::getAccessKeyId()const @@ -66,6 +66,6 @@ std::string QueryTagsRequest::getAccessKeyId()const void QueryTagsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryTagsResult.cc b/push/src/model/QueryTagsResult.cc index cbf741251..dc29d8b72 100644 --- a/push/src/model/QueryTagsResult.cc +++ b/push/src/model/QueryTagsResult.cc @@ -35,10 +35,13 @@ QueryTagsResult::~QueryTagsResult() void QueryTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagInfos = value["TagInfos"]["TagInfo"]; for (auto value : allTagInfos) diff --git a/push/src/model/QueryUniqueDeviceStatRequest.cc b/push/src/model/QueryUniqueDeviceStatRequest.cc index 81ffd52d5..4fb19a19a 100644 --- a/push/src/model/QueryUniqueDeviceStatRequest.cc +++ b/push/src/model/QueryUniqueDeviceStatRequest.cc @@ -33,7 +33,7 @@ std::string QueryUniqueDeviceStatRequest::getGranularity()const void QueryUniqueDeviceStatRequest::setGranularity(const std::string& granularity) { granularity_ = granularity; - setParameter("Granularity", granularity); + setCoreParameter("Granularity", granularity); } std::string QueryUniqueDeviceStatRequest::getEndTime()const @@ -44,7 +44,7 @@ std::string QueryUniqueDeviceStatRequest::getEndTime()const void QueryUniqueDeviceStatRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } long QueryUniqueDeviceStatRequest::getAppKey()const @@ -55,7 +55,7 @@ long QueryUniqueDeviceStatRequest::getAppKey()const void QueryUniqueDeviceStatRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string QueryUniqueDeviceStatRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string QueryUniqueDeviceStatRequest::getStartTime()const void QueryUniqueDeviceStatRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string QueryUniqueDeviceStatRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string QueryUniqueDeviceStatRequest::getAccessKeyId()const void QueryUniqueDeviceStatRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/QueryUniqueDeviceStatResult.cc b/push/src/model/QueryUniqueDeviceStatResult.cc index fc93b6dc7..2229e6404 100644 --- a/push/src/model/QueryUniqueDeviceStatResult.cc +++ b/push/src/model/QueryUniqueDeviceStatResult.cc @@ -35,10 +35,13 @@ QueryUniqueDeviceStatResult::~QueryUniqueDeviceStatResult() void QueryUniqueDeviceStatResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppDeviceStats = value["AppDeviceStats"]["AppDeviceStat"]; for (auto value : allAppDeviceStats) diff --git a/push/src/model/RemoveTagRequest.cc b/push/src/model/RemoveTagRequest.cc index 391a20ddf..950bda9d7 100644 --- a/push/src/model/RemoveTagRequest.cc +++ b/push/src/model/RemoveTagRequest.cc @@ -33,7 +33,7 @@ std::string RemoveTagRequest::getTagName()const void RemoveTagRequest::setTagName(const std::string& tagName) { tagName_ = tagName; - setParameter("TagName", tagName); + setCoreParameter("TagName", tagName); } long RemoveTagRequest::getAppKey()const @@ -44,7 +44,7 @@ long RemoveTagRequest::getAppKey()const void RemoveTagRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string RemoveTagRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string RemoveTagRequest::getAccessKeyId()const void RemoveTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/RemoveTagResult.cc b/push/src/model/RemoveTagResult.cc index 700be9d4f..f943a6a3d 100644 --- a/push/src/model/RemoveTagResult.cc +++ b/push/src/model/RemoveTagResult.cc @@ -35,10 +35,13 @@ RemoveTagResult::~RemoveTagResult() void RemoveTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/push/src/model/UnbindAliasRequest.cc b/push/src/model/UnbindAliasRequest.cc index abbe609bd..4d9efef84 100644 --- a/push/src/model/UnbindAliasRequest.cc +++ b/push/src/model/UnbindAliasRequest.cc @@ -33,7 +33,7 @@ std::string UnbindAliasRequest::getAliasName()const void UnbindAliasRequest::setAliasName(const std::string& aliasName) { aliasName_ = aliasName; - setParameter("AliasName", aliasName); + setCoreParameter("AliasName", aliasName); } long UnbindAliasRequest::getAppKey()const @@ -44,7 +44,7 @@ long UnbindAliasRequest::getAppKey()const void UnbindAliasRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string UnbindAliasRequest::getDeviceId()const @@ -55,7 +55,7 @@ std::string UnbindAliasRequest::getDeviceId()const void UnbindAliasRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string UnbindAliasRequest::getAccessKeyId()const @@ -66,7 +66,7 @@ std::string UnbindAliasRequest::getAccessKeyId()const void UnbindAliasRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool UnbindAliasRequest::getUnbindAll()const @@ -77,6 +77,6 @@ bool UnbindAliasRequest::getUnbindAll()const void UnbindAliasRequest::setUnbindAll(bool unbindAll) { unbindAll_ = unbindAll; - setParameter("UnbindAll", std::to_string(unbindAll)); + setCoreParameter("UnbindAll", unbindAll ? "true" : "false"); } diff --git a/push/src/model/UnbindAliasResult.cc b/push/src/model/UnbindAliasResult.cc index 24f5b0ad5..22737757d 100644 --- a/push/src/model/UnbindAliasResult.cc +++ b/push/src/model/UnbindAliasResult.cc @@ -35,10 +35,13 @@ UnbindAliasResult::~UnbindAliasResult() void UnbindAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/push/src/model/UnbindPhoneRequest.cc b/push/src/model/UnbindPhoneRequest.cc index aba2dcdd4..608430024 100644 --- a/push/src/model/UnbindPhoneRequest.cc +++ b/push/src/model/UnbindPhoneRequest.cc @@ -33,7 +33,7 @@ long UnbindPhoneRequest::getAppKey()const void UnbindPhoneRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string UnbindPhoneRequest::getDeviceId()const @@ -44,7 +44,7 @@ std::string UnbindPhoneRequest::getDeviceId()const void UnbindPhoneRequest::setDeviceId(const std::string& deviceId) { deviceId_ = deviceId; - setParameter("DeviceId", deviceId); + setCoreParameter("DeviceId", deviceId); } std::string UnbindPhoneRequest::getAccessKeyId()const @@ -55,6 +55,6 @@ std::string UnbindPhoneRequest::getAccessKeyId()const void UnbindPhoneRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/UnbindPhoneResult.cc b/push/src/model/UnbindPhoneResult.cc index 161ba72b9..a349f95f6 100644 --- a/push/src/model/UnbindPhoneResult.cc +++ b/push/src/model/UnbindPhoneResult.cc @@ -35,10 +35,13 @@ UnbindPhoneResult::~UnbindPhoneResult() void UnbindPhoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/push/src/model/UnbindTagRequest.cc b/push/src/model/UnbindTagRequest.cc index 160c05f43..76500e38e 100644 --- a/push/src/model/UnbindTagRequest.cc +++ b/push/src/model/UnbindTagRequest.cc @@ -33,7 +33,7 @@ std::string UnbindTagRequest::getTagName()const void UnbindTagRequest::setTagName(const std::string& tagName) { tagName_ = tagName; - setParameter("TagName", tagName); + setCoreParameter("TagName", tagName); } std::string UnbindTagRequest::getClientKey()const @@ -44,7 +44,7 @@ std::string UnbindTagRequest::getClientKey()const void UnbindTagRequest::setClientKey(const std::string& clientKey) { clientKey_ = clientKey; - setParameter("ClientKey", clientKey); + setCoreParameter("ClientKey", clientKey); } long UnbindTagRequest::getAppKey()const @@ -55,7 +55,7 @@ long UnbindTagRequest::getAppKey()const void UnbindTagRequest::setAppKey(long appKey) { appKey_ = appKey; - setParameter("AppKey", std::to_string(appKey)); + setCoreParameter("AppKey", std::to_string(appKey)); } std::string UnbindTagRequest::getKeyType()const @@ -66,7 +66,7 @@ std::string UnbindTagRequest::getKeyType()const void UnbindTagRequest::setKeyType(const std::string& keyType) { keyType_ = keyType; - setParameter("KeyType", keyType); + setCoreParameter("KeyType", keyType); } std::string UnbindTagRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string UnbindTagRequest::getAccessKeyId()const void UnbindTagRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/push/src/model/UnbindTagResult.cc b/push/src/model/UnbindTagResult.cc index e071bb9cb..fb1153c6c 100644 --- a/push/src/model/UnbindTagResult.cc +++ b/push/src/model/UnbindTagResult.cc @@ -35,10 +35,13 @@ UnbindTagResult::~UnbindTagResult() void UnbindTagResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/pvtz/CMakeLists.txt b/pvtz/CMakeLists.txt index 4023b1096..6370603ca 100644 --- a/pvtz/CMakeLists.txt +++ b/pvtz/CMakeLists.txt @@ -37,10 +37,10 @@ set(pvtz_public_header_model include/alibabacloud/pvtz/model/AddZoneResult.h include/alibabacloud/pvtz/model/BindZoneVpcRequest.h include/alibabacloud/pvtz/model/BindZoneVpcResult.h - include/alibabacloud/pvtz/model/DescribeStatisticSummaryRequest.h - include/alibabacloud/pvtz/model/DescribeStatisticSummaryResult.h include/alibabacloud/pvtz/model/DescribeRequestGraphRequest.h include/alibabacloud/pvtz/model/DescribeRequestGraphResult.h + include/alibabacloud/pvtz/model/DescribeStatisticSummaryRequest.h + include/alibabacloud/pvtz/model/DescribeStatisticSummaryResult.h include/alibabacloud/pvtz/model/SetProxyPatternRequest.h include/alibabacloud/pvtz/model/SetProxyPatternResult.h include/alibabacloud/pvtz/model/DescribeZoneVpcTreeRequest.h @@ -78,10 +78,10 @@ set(pvtz_src src/model/AddZoneResult.cc src/model/BindZoneVpcRequest.cc src/model/BindZoneVpcResult.cc - src/model/DescribeStatisticSummaryRequest.cc - src/model/DescribeStatisticSummaryResult.cc src/model/DescribeRequestGraphRequest.cc src/model/DescribeRequestGraphResult.cc + src/model/DescribeStatisticSummaryRequest.cc + src/model/DescribeStatisticSummaryResult.cc src/model/SetProxyPatternRequest.cc src/model/SetProxyPatternResult.cc src/model/DescribeZoneVpcTreeRequest.cc diff --git a/pvtz/include/alibabacloud/pvtz/PvtzClient.h b/pvtz/include/alibabacloud/pvtz/PvtzClient.h index c386af497..803046d91 100644 --- a/pvtz/include/alibabacloud/pvtz/PvtzClient.h +++ b/pvtz/include/alibabacloud/pvtz/PvtzClient.h @@ -38,10 +38,10 @@ #include "model/AddZoneResult.h" #include "model/BindZoneVpcRequest.h" #include "model/BindZoneVpcResult.h" -#include "model/DescribeStatisticSummaryRequest.h" -#include "model/DescribeStatisticSummaryResult.h" #include "model/DescribeRequestGraphRequest.h" #include "model/DescribeRequestGraphResult.h" +#include "model/DescribeStatisticSummaryRequest.h" +#include "model/DescribeStatisticSummaryResult.h" #include "model/SetProxyPatternRequest.h" #include "model/SetProxyPatternResult.h" #include "model/DescribeZoneVpcTreeRequest.h" @@ -93,12 +93,12 @@ namespace AlibabaCloud typedef Outcome BindZoneVpcOutcome; typedef std::future BindZoneVpcOutcomeCallable; typedef std::function&)> BindZoneVpcAsyncHandler; - typedef Outcome DescribeStatisticSummaryOutcome; - typedef std::future DescribeStatisticSummaryOutcomeCallable; - typedef std::function&)> DescribeStatisticSummaryAsyncHandler; typedef Outcome DescribeRequestGraphOutcome; typedef std::future DescribeRequestGraphOutcomeCallable; typedef std::function&)> DescribeRequestGraphAsyncHandler; + typedef Outcome DescribeStatisticSummaryOutcome; + typedef std::future DescribeStatisticSummaryOutcomeCallable; + typedef std::function&)> DescribeStatisticSummaryAsyncHandler; typedef Outcome SetProxyPatternOutcome; typedef std::future SetProxyPatternOutcomeCallable; typedef std::function&)> SetProxyPatternAsyncHandler; @@ -155,12 +155,12 @@ namespace AlibabaCloud BindZoneVpcOutcome bindZoneVpc(const Model::BindZoneVpcRequest &request)const; void bindZoneVpcAsync(const Model::BindZoneVpcRequest& request, const BindZoneVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindZoneVpcOutcomeCallable bindZoneVpcCallable(const Model::BindZoneVpcRequest& request) const; - DescribeStatisticSummaryOutcome describeStatisticSummary(const Model::DescribeStatisticSummaryRequest &request)const; - void describeStatisticSummaryAsync(const Model::DescribeStatisticSummaryRequest& request, const DescribeStatisticSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeStatisticSummaryOutcomeCallable describeStatisticSummaryCallable(const Model::DescribeStatisticSummaryRequest& request) const; DescribeRequestGraphOutcome describeRequestGraph(const Model::DescribeRequestGraphRequest &request)const; void describeRequestGraphAsync(const Model::DescribeRequestGraphRequest& request, const DescribeRequestGraphAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRequestGraphOutcomeCallable describeRequestGraphCallable(const Model::DescribeRequestGraphRequest& request) const; + DescribeStatisticSummaryOutcome describeStatisticSummary(const Model::DescribeStatisticSummaryRequest &request)const; + void describeStatisticSummaryAsync(const Model::DescribeStatisticSummaryRequest& request, const DescribeStatisticSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStatisticSummaryOutcomeCallable describeStatisticSummaryCallable(const Model::DescribeStatisticSummaryRequest& request) const; SetProxyPatternOutcome setProxyPattern(const Model::SetProxyPatternRequest &request)const; void setProxyPatternAsync(const Model::SetProxyPatternRequest& request, const SetProxyPatternAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetProxyPatternOutcomeCallable setProxyPatternCallable(const Model::SetProxyPatternRequest& request) const; diff --git a/pvtz/include/alibabacloud/pvtz/model/AddZoneRequest.h b/pvtz/include/alibabacloud/pvtz/model/AddZoneRequest.h index fe8bf2375..66818696c 100644 --- a/pvtz/include/alibabacloud/pvtz/model/AddZoneRequest.h +++ b/pvtz/include/alibabacloud/pvtz/model/AddZoneRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getProxyPattern()const; void setProxyPattern(const std::string& proxyPattern); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getUserClientIp()const; void setUserClientIp(const std::string& userClientIp); std::string getLang()const; @@ -46,6 +48,7 @@ namespace AlibabaCloud private: std::string proxyPattern_; + std::string resourceGroupId_; std::string userClientIp_; std::string lang_; std::string zoneName_; diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h index b7d561c0c..86e9ef51d 100644 --- a/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZoneInfoResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud ~DescribeZoneInfoResult(); std::string getZoneName()const; std::string getZoneId()const; + bool getSlaveDns()const; std::string getProxyPattern()const; std::string getCreateTime()const; std::string getUpdateTime()const; @@ -62,6 +63,7 @@ namespace AlibabaCloud private: std::string zoneName_; std::string zoneId_; + bool slaveDns_; std::string proxyPattern_; std::string createTime_; std::string updateTime_; diff --git a/pvtz/include/alibabacloud/pvtz/model/DescribeZonesRequest.h b/pvtz/include/alibabacloud/pvtz/model/DescribeZonesRequest.h index be2e245fa..3fa29d83d 100644 --- a/pvtz/include/alibabacloud/pvtz/model/DescribeZonesRequest.h +++ b/pvtz/include/alibabacloud/pvtz/model/DescribeZonesRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getQueryVpcId()const; void setQueryVpcId(const std::string& queryVpcId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); int getPageSize()const; void setPageSize(int pageSize); std::string getUserClientIp()const; @@ -54,6 +56,7 @@ namespace AlibabaCloud private: std::string queryVpcId_; + std::string resourceGroupId_; int pageSize_; std::string userClientIp_; std::string searchMode_; diff --git a/pvtz/src/PvtzClient.cc b/pvtz/src/PvtzClient.cc index 7892ef12e..f9853b503 100644 --- a/pvtz/src/PvtzClient.cc +++ b/pvtz/src/PvtzClient.cc @@ -339,42 +339,6 @@ PvtzClient::BindZoneVpcOutcomeCallable PvtzClient::bindZoneVpcCallable(const Bin return task->get_future(); } -PvtzClient::DescribeStatisticSummaryOutcome PvtzClient::describeStatisticSummary(const DescribeStatisticSummaryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeStatisticSummaryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeStatisticSummaryOutcome(DescribeStatisticSummaryResult(outcome.result())); - else - return DescribeStatisticSummaryOutcome(outcome.error()); -} - -void PvtzClient::describeStatisticSummaryAsync(const DescribeStatisticSummaryRequest& request, const DescribeStatisticSummaryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeStatisticSummary(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -PvtzClient::DescribeStatisticSummaryOutcomeCallable PvtzClient::describeStatisticSummaryCallable(const DescribeStatisticSummaryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeStatisticSummary(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - PvtzClient::DescribeRequestGraphOutcome PvtzClient::describeRequestGraph(const DescribeRequestGraphRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +375,42 @@ PvtzClient::DescribeRequestGraphOutcomeCallable PvtzClient::describeRequestGraph return task->get_future(); } +PvtzClient::DescribeStatisticSummaryOutcome PvtzClient::describeStatisticSummary(const DescribeStatisticSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStatisticSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStatisticSummaryOutcome(DescribeStatisticSummaryResult(outcome.result())); + else + return DescribeStatisticSummaryOutcome(outcome.error()); +} + +void PvtzClient::describeStatisticSummaryAsync(const DescribeStatisticSummaryRequest& request, const DescribeStatisticSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStatisticSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PvtzClient::DescribeStatisticSummaryOutcomeCallable PvtzClient::describeStatisticSummaryCallable(const DescribeStatisticSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStatisticSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PvtzClient::SetProxyPatternOutcome PvtzClient::setProxyPattern(const SetProxyPatternRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/pvtz/src/model/AddZoneRecordRequest.cc b/pvtz/src/model/AddZoneRecordRequest.cc index ea85d6210..992a26268 100644 --- a/pvtz/src/model/AddZoneRecordRequest.cc +++ b/pvtz/src/model/AddZoneRecordRequest.cc @@ -33,7 +33,7 @@ std::string AddZoneRecordRequest::getRr()const void AddZoneRecordRequest::setRr(const std::string& rr) { rr_ = rr; - setParameter("Rr", rr); + setCoreParameter("Rr", rr); } std::string AddZoneRecordRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string AddZoneRecordRequest::getUserClientIp()const void AddZoneRecordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string AddZoneRecordRequest::getZoneId()const @@ -55,7 +55,7 @@ std::string AddZoneRecordRequest::getZoneId()const void AddZoneRecordRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string AddZoneRecordRequest::getLang()const @@ -66,7 +66,7 @@ std::string AddZoneRecordRequest::getLang()const void AddZoneRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string AddZoneRecordRequest::getType()const @@ -77,7 +77,7 @@ std::string AddZoneRecordRequest::getType()const void AddZoneRecordRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } int AddZoneRecordRequest::getPriority()const @@ -88,7 +88,7 @@ int AddZoneRecordRequest::getPriority()const void AddZoneRecordRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } int AddZoneRecordRequest::getTtl()const @@ -99,7 +99,7 @@ int AddZoneRecordRequest::getTtl()const void AddZoneRecordRequest::setTtl(int ttl) { ttl_ = ttl; - setParameter("Ttl", std::to_string(ttl)); + setCoreParameter("Ttl", std::to_string(ttl)); } std::string AddZoneRecordRequest::getValue()const @@ -110,6 +110,6 @@ std::string AddZoneRecordRequest::getValue()const void AddZoneRecordRequest::setValue(const std::string& value) { value_ = value; - setParameter("Value", value); + setCoreParameter("Value", value); } diff --git a/pvtz/src/model/AddZoneRecordResult.cc b/pvtz/src/model/AddZoneRecordResult.cc index db4888059..e4badacbb 100644 --- a/pvtz/src/model/AddZoneRecordResult.cc +++ b/pvtz/src/model/AddZoneRecordResult.cc @@ -35,10 +35,13 @@ AddZoneRecordResult::~AddZoneRecordResult() void AddZoneRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/pvtz/src/model/AddZoneRequest.cc b/pvtz/src/model/AddZoneRequest.cc index 874758e6e..f00e57f88 100644 --- a/pvtz/src/model/AddZoneRequest.cc +++ b/pvtz/src/model/AddZoneRequest.cc @@ -33,7 +33,18 @@ std::string AddZoneRequest::getProxyPattern()const void AddZoneRequest::setProxyPattern(const std::string& proxyPattern) { proxyPattern_ = proxyPattern; - setParameter("ProxyPattern", proxyPattern); + setCoreParameter("ProxyPattern", proxyPattern); +} + +std::string AddZoneRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AddZoneRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string AddZoneRequest::getUserClientIp()const @@ -44,7 +55,7 @@ std::string AddZoneRequest::getUserClientIp()const void AddZoneRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string AddZoneRequest::getLang()const @@ -55,7 +66,7 @@ std::string AddZoneRequest::getLang()const void AddZoneRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string AddZoneRequest::getZoneName()const @@ -66,6 +77,6 @@ std::string AddZoneRequest::getZoneName()const void AddZoneRequest::setZoneName(const std::string& zoneName) { zoneName_ = zoneName; - setParameter("ZoneName", zoneName); + setCoreParameter("ZoneName", zoneName); } diff --git a/pvtz/src/model/AddZoneResult.cc b/pvtz/src/model/AddZoneResult.cc index 854ff33ac..6a8a5c053 100644 --- a/pvtz/src/model/AddZoneResult.cc +++ b/pvtz/src/model/AddZoneResult.cc @@ -35,10 +35,13 @@ AddZoneResult::~AddZoneResult() void AddZoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/pvtz/src/model/BindZoneVpcRequest.cc b/pvtz/src/model/BindZoneVpcRequest.cc index 4e26b3c96..13e9c4372 100644 --- a/pvtz/src/model/BindZoneVpcRequest.cc +++ b/pvtz/src/model/BindZoneVpcRequest.cc @@ -33,7 +33,7 @@ std::string BindZoneVpcRequest::getUserClientIp()const void BindZoneVpcRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string BindZoneVpcRequest::getZoneId()const @@ -44,7 +44,7 @@ std::string BindZoneVpcRequest::getZoneId()const void BindZoneVpcRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string BindZoneVpcRequest::getLang()const @@ -55,7 +55,7 @@ std::string BindZoneVpcRequest::getLang()const void BindZoneVpcRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::vector BindZoneVpcRequest::getVpcs()const @@ -70,8 +70,8 @@ void BindZoneVpcRequest::setVpcs(const std::vector& vpcs) for(int i = 0; i!= vpcs.size(); i++) { auto obj = vpcs.at(i); std::string str ="Vpcs."+ std::to_string(i); - setParameter(str + ".RegionId", obj.regionId); - setParameter(str + ".VpcId", obj.vpcId); + setCoreParameter(str + ".RegionId", obj.regionId); + setCoreParameter(str + ".VpcId", obj.vpcId); } } diff --git a/pvtz/src/model/BindZoneVpcResult.cc b/pvtz/src/model/BindZoneVpcResult.cc index aff1e9ffd..d5ae89f40 100644 --- a/pvtz/src/model/BindZoneVpcResult.cc +++ b/pvtz/src/model/BindZoneVpcResult.cc @@ -35,10 +35,13 @@ BindZoneVpcResult::~BindZoneVpcResult() void BindZoneVpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/pvtz/src/model/CheckZoneNameRequest.cc b/pvtz/src/model/CheckZoneNameRequest.cc index ad9fc457e..ee0a05a91 100644 --- a/pvtz/src/model/CheckZoneNameRequest.cc +++ b/pvtz/src/model/CheckZoneNameRequest.cc @@ -33,7 +33,7 @@ std::string CheckZoneNameRequest::getUserClientIp()const void CheckZoneNameRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string CheckZoneNameRequest::getLang()const @@ -44,7 +44,7 @@ std::string CheckZoneNameRequest::getLang()const void CheckZoneNameRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string CheckZoneNameRequest::getZoneName()const @@ -55,6 +55,6 @@ std::string CheckZoneNameRequest::getZoneName()const void CheckZoneNameRequest::setZoneName(const std::string& zoneName) { zoneName_ = zoneName; - setParameter("ZoneName", zoneName); + setCoreParameter("ZoneName", zoneName); } diff --git a/pvtz/src/model/CheckZoneNameResult.cc b/pvtz/src/model/CheckZoneNameResult.cc index 4618433b0..25971e340 100644 --- a/pvtz/src/model/CheckZoneNameResult.cc +++ b/pvtz/src/model/CheckZoneNameResult.cc @@ -35,10 +35,13 @@ CheckZoneNameResult::~CheckZoneNameResult() void CheckZoneNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/pvtz/src/model/DeleteZoneRecordRequest.cc b/pvtz/src/model/DeleteZoneRecordRequest.cc index c47d27927..a7a1119dc 100644 --- a/pvtz/src/model/DeleteZoneRecordRequest.cc +++ b/pvtz/src/model/DeleteZoneRecordRequest.cc @@ -33,7 +33,7 @@ long DeleteZoneRecordRequest::getRecordId()const void DeleteZoneRecordRequest::setRecordId(long recordId) { recordId_ = recordId; - setParameter("RecordId", std::to_string(recordId)); + setCoreParameter("RecordId", std::to_string(recordId)); } std::string DeleteZoneRecordRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DeleteZoneRecordRequest::getUserClientIp()const void DeleteZoneRecordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteZoneRecordRequest::getLang()const @@ -55,6 +55,6 @@ std::string DeleteZoneRecordRequest::getLang()const void DeleteZoneRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/DeleteZoneRecordResult.cc b/pvtz/src/model/DeleteZoneRecordResult.cc index 75a0bcdbe..844e36880 100644 --- a/pvtz/src/model/DeleteZoneRecordResult.cc +++ b/pvtz/src/model/DeleteZoneRecordResult.cc @@ -35,10 +35,13 @@ DeleteZoneRecordResult::~DeleteZoneRecordResult() void DeleteZoneRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = std::stol(value["RecordId"].asString()); diff --git a/pvtz/src/model/DeleteZoneRequest.cc b/pvtz/src/model/DeleteZoneRequest.cc index 096fa150e..9898d6677 100644 --- a/pvtz/src/model/DeleteZoneRequest.cc +++ b/pvtz/src/model/DeleteZoneRequest.cc @@ -33,7 +33,7 @@ std::string DeleteZoneRequest::getUserClientIp()const void DeleteZoneRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DeleteZoneRequest::getZoneId()const @@ -44,7 +44,7 @@ std::string DeleteZoneRequest::getZoneId()const void DeleteZoneRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string DeleteZoneRequest::getLang()const @@ -55,6 +55,6 @@ std::string DeleteZoneRequest::getLang()const void DeleteZoneRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/DeleteZoneResult.cc b/pvtz/src/model/DeleteZoneResult.cc index 0a994e6cd..0925b8951 100644 --- a/pvtz/src/model/DeleteZoneResult.cc +++ b/pvtz/src/model/DeleteZoneResult.cc @@ -35,10 +35,13 @@ DeleteZoneResult::~DeleteZoneResult() void DeleteZoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ZoneId"].isNull()) zoneId_ = value["ZoneId"].asString(); diff --git a/pvtz/src/model/DescribeChangeLogsRequest.cc b/pvtz/src/model/DescribeChangeLogsRequest.cc index 52cdfef7d..96b4efad5 100644 --- a/pvtz/src/model/DescribeChangeLogsRequest.cc +++ b/pvtz/src/model/DescribeChangeLogsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeChangeLogsRequest::getEntityType()const void DescribeChangeLogsRequest::setEntityType(const std::string& entityType) { entityType_ = entityType; - setParameter("EntityType", entityType); + setCoreParameter("EntityType", entityType); } int DescribeChangeLogsRequest::getPageSize()const @@ -44,7 +44,7 @@ int DescribeChangeLogsRequest::getPageSize()const void DescribeChangeLogsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeChangeLogsRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string DescribeChangeLogsRequest::getUserClientIp()const void DescribeChangeLogsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeChangeLogsRequest::getZoneId()const @@ -66,7 +66,7 @@ std::string DescribeChangeLogsRequest::getZoneId()const void DescribeChangeLogsRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string DescribeChangeLogsRequest::getKeyword()const @@ -77,7 +77,7 @@ std::string DescribeChangeLogsRequest::getKeyword()const void DescribeChangeLogsRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } std::string DescribeChangeLogsRequest::getLang()const @@ -88,7 +88,7 @@ std::string DescribeChangeLogsRequest::getLang()const void DescribeChangeLogsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DescribeChangeLogsRequest::getStartTimestamp()const @@ -99,7 +99,7 @@ long DescribeChangeLogsRequest::getStartTimestamp()const void DescribeChangeLogsRequest::setStartTimestamp(long startTimestamp) { startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); + setCoreParameter("StartTimestamp", std::to_string(startTimestamp)); } int DescribeChangeLogsRequest::getPageNumber()const @@ -110,7 +110,7 @@ int DescribeChangeLogsRequest::getPageNumber()const void DescribeChangeLogsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } long DescribeChangeLogsRequest::getEndTimestamp()const @@ -121,6 +121,6 @@ long DescribeChangeLogsRequest::getEndTimestamp()const void DescribeChangeLogsRequest::setEndTimestamp(long endTimestamp) { endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); + setCoreParameter("EndTimestamp", std::to_string(endTimestamp)); } diff --git a/pvtz/src/model/DescribeChangeLogsResult.cc b/pvtz/src/model/DescribeChangeLogsResult.cc index 61db45ce9..039eef8bd 100644 --- a/pvtz/src/model/DescribeChangeLogsResult.cc +++ b/pvtz/src/model/DescribeChangeLogsResult.cc @@ -35,10 +35,13 @@ DescribeChangeLogsResult::~DescribeChangeLogsResult() void DescribeChangeLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allChangeLogs = value["ChangeLogs"]["ChangeLog"]; for (auto value : allChangeLogs) diff --git a/pvtz/src/model/DescribeRegionsRequest.cc b/pvtz/src/model/DescribeRegionsRequest.cc index 3fca67db3..dd8b3d9a4 100644 --- a/pvtz/src/model/DescribeRegionsRequest.cc +++ b/pvtz/src/model/DescribeRegionsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRegionsRequest::getUserClientIp()const void DescribeRegionsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeRegionsRequest::getAcceptLanguage()const @@ -44,7 +44,7 @@ std::string DescribeRegionsRequest::getAcceptLanguage()const void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) { acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); + setCoreParameter("AcceptLanguage", acceptLanguage); } std::string DescribeRegionsRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeRegionsRequest::getLang()const void DescribeRegionsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/DescribeRegionsResult.cc b/pvtz/src/model/DescribeRegionsResult.cc index 2d7f93577..aaca1e3df 100644 --- a/pvtz/src/model/DescribeRegionsResult.cc +++ b/pvtz/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/pvtz/src/model/DescribeRequestGraphRequest.cc b/pvtz/src/model/DescribeRequestGraphRequest.cc index 35c111f3b..d9142e3db 100644 --- a/pvtz/src/model/DescribeRequestGraphRequest.cc +++ b/pvtz/src/model/DescribeRequestGraphRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRequestGraphRequest::getVpcId()const void DescribeRequestGraphRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeRequestGraphRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeRequestGraphRequest::getUserClientIp()const void DescribeRequestGraphRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeRequestGraphRequest::getZoneId()const @@ -55,7 +55,7 @@ std::string DescribeRequestGraphRequest::getZoneId()const void DescribeRequestGraphRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string DescribeRequestGraphRequest::getLang()const @@ -66,7 +66,7 @@ std::string DescribeRequestGraphRequest::getLang()const void DescribeRequestGraphRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } long DescribeRequestGraphRequest::getStartTimestamp()const @@ -77,7 +77,7 @@ long DescribeRequestGraphRequest::getStartTimestamp()const void DescribeRequestGraphRequest::setStartTimestamp(long startTimestamp) { startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); + setCoreParameter("StartTimestamp", std::to_string(startTimestamp)); } long DescribeRequestGraphRequest::getEndTimestamp()const @@ -88,6 +88,6 @@ long DescribeRequestGraphRequest::getEndTimestamp()const void DescribeRequestGraphRequest::setEndTimestamp(long endTimestamp) { endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); + setCoreParameter("EndTimestamp", std::to_string(endTimestamp)); } diff --git a/pvtz/src/model/DescribeRequestGraphResult.cc b/pvtz/src/model/DescribeRequestGraphResult.cc index a8d408671..71fa939f8 100644 --- a/pvtz/src/model/DescribeRequestGraphResult.cc +++ b/pvtz/src/model/DescribeRequestGraphResult.cc @@ -35,10 +35,13 @@ DescribeRequestGraphResult::~DescribeRequestGraphResult() void DescribeRequestGraphResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRequestDetails = value["RequestDetails"]["ZoneRequestTop"]; for (auto value : allRequestDetails) diff --git a/pvtz/src/model/DescribeStatisticSummaryRequest.cc b/pvtz/src/model/DescribeStatisticSummaryRequest.cc index 9711eccfd..8d7706768 100644 --- a/pvtz/src/model/DescribeStatisticSummaryRequest.cc +++ b/pvtz/src/model/DescribeStatisticSummaryRequest.cc @@ -33,7 +33,7 @@ std::string DescribeStatisticSummaryRequest::getUserClientIp()const void DescribeStatisticSummaryRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeStatisticSummaryRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeStatisticSummaryRequest::getLang()const void DescribeStatisticSummaryRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/DescribeStatisticSummaryResult.cc b/pvtz/src/model/DescribeStatisticSummaryResult.cc index 4a4215a7e..c2364f898 100644 --- a/pvtz/src/model/DescribeStatisticSummaryResult.cc +++ b/pvtz/src/model/DescribeStatisticSummaryResult.cc @@ -35,10 +35,13 @@ DescribeStatisticSummaryResult::~DescribeStatisticSummaryResult() void DescribeStatisticSummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allZoneRequestTops = value["ZoneRequestTops"]["ZoneRequestTop"]; for (auto value : allZoneRequestTops) diff --git a/pvtz/src/model/DescribeUserServiceStatusRequest.cc b/pvtz/src/model/DescribeUserServiceStatusRequest.cc index 4f4fd6161..7af44d052 100644 --- a/pvtz/src/model/DescribeUserServiceStatusRequest.cc +++ b/pvtz/src/model/DescribeUserServiceStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeUserServiceStatusRequest::getUserClientIp()const void DescribeUserServiceStatusRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeUserServiceStatusRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeUserServiceStatusRequest::getLang()const void DescribeUserServiceStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/DescribeUserServiceStatusResult.cc b/pvtz/src/model/DescribeUserServiceStatusResult.cc index 6b9b6b981..f3c0d3fd4 100644 --- a/pvtz/src/model/DescribeUserServiceStatusResult.cc +++ b/pvtz/src/model/DescribeUserServiceStatusResult.cc @@ -35,10 +35,13 @@ DescribeUserServiceStatusResult::~DescribeUserServiceStatusResult() void DescribeUserServiceStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Status"].isNull()) status_ = value["Status"].asString(); diff --git a/pvtz/src/model/DescribeZoneInfoRequest.cc b/pvtz/src/model/DescribeZoneInfoRequest.cc index e655bf9ba..70f5ef3a3 100644 --- a/pvtz/src/model/DescribeZoneInfoRequest.cc +++ b/pvtz/src/model/DescribeZoneInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeZoneInfoRequest::getUserClientIp()const void DescribeZoneInfoRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeZoneInfoRequest::getZoneId()const @@ -44,7 +44,7 @@ std::string DescribeZoneInfoRequest::getZoneId()const void DescribeZoneInfoRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string DescribeZoneInfoRequest::getLang()const @@ -55,6 +55,6 @@ std::string DescribeZoneInfoRequest::getLang()const void DescribeZoneInfoRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/DescribeZoneInfoResult.cc b/pvtz/src/model/DescribeZoneInfoResult.cc index fb4ae7930..558e5895f 100644 --- a/pvtz/src/model/DescribeZoneInfoResult.cc +++ b/pvtz/src/model/DescribeZoneInfoResult.cc @@ -35,10 +35,13 @@ DescribeZoneInfoResult::~DescribeZoneInfoResult() void DescribeZoneInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBindVpcs = value["BindVpcs"]["Vpc"]; for (auto value : allBindVpcs) @@ -76,6 +79,8 @@ void DescribeZoneInfoResult::parse(const std::string &payload) isPtr_ = value["IsPtr"].asString() == "true"; if(!value["ProxyPattern"].isNull()) proxyPattern_ = value["ProxyPattern"].asString(); + if(!value["SlaveDns"].isNull()) + slaveDns_ = value["SlaveDns"].asString() == "true"; } @@ -89,6 +94,11 @@ std::string DescribeZoneInfoResult::getZoneId()const return zoneId_; } +bool DescribeZoneInfoResult::getSlaveDns()const +{ + return slaveDns_; +} + std::string DescribeZoneInfoResult::getProxyPattern()const { return proxyPattern_; diff --git a/pvtz/src/model/DescribeZoneRecordsRequest.cc b/pvtz/src/model/DescribeZoneRecordsRequest.cc index 52d5ade94..b746a8ea2 100644 --- a/pvtz/src/model/DescribeZoneRecordsRequest.cc +++ b/pvtz/src/model/DescribeZoneRecordsRequest.cc @@ -33,7 +33,7 @@ int DescribeZoneRecordsRequest::getPageSize()const void DescribeZoneRecordsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeZoneRecordsRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string DescribeZoneRecordsRequest::getUserClientIp()const void DescribeZoneRecordsRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeZoneRecordsRequest::getZoneId()const @@ -55,7 +55,7 @@ std::string DescribeZoneRecordsRequest::getZoneId()const void DescribeZoneRecordsRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string DescribeZoneRecordsRequest::getSearchMode()const @@ -66,7 +66,7 @@ std::string DescribeZoneRecordsRequest::getSearchMode()const void DescribeZoneRecordsRequest::setSearchMode(const std::string& searchMode) { searchMode_ = searchMode; - setParameter("SearchMode", searchMode); + setCoreParameter("SearchMode", searchMode); } std::string DescribeZoneRecordsRequest::getTag()const @@ -77,7 +77,7 @@ std::string DescribeZoneRecordsRequest::getTag()const void DescribeZoneRecordsRequest::setTag(const std::string& tag) { tag_ = tag; - setParameter("Tag", tag); + setCoreParameter("Tag", tag); } std::string DescribeZoneRecordsRequest::getLang()const @@ -88,7 +88,7 @@ std::string DescribeZoneRecordsRequest::getLang()const void DescribeZoneRecordsRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeZoneRecordsRequest::getKeyword()const @@ -99,7 +99,7 @@ std::string DescribeZoneRecordsRequest::getKeyword()const void DescribeZoneRecordsRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } int DescribeZoneRecordsRequest::getPageNumber()const @@ -110,6 +110,6 @@ int DescribeZoneRecordsRequest::getPageNumber()const void DescribeZoneRecordsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/pvtz/src/model/DescribeZoneRecordsResult.cc b/pvtz/src/model/DescribeZoneRecordsResult.cc index 0db3dbf0c..188e248c2 100644 --- a/pvtz/src/model/DescribeZoneRecordsResult.cc +++ b/pvtz/src/model/DescribeZoneRecordsResult.cc @@ -35,10 +35,13 @@ DescribeZoneRecordsResult::~DescribeZoneRecordsResult() void DescribeZoneRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecords = value["Records"]["Record"]; for (auto value : allRecords) diff --git a/pvtz/src/model/DescribeZoneVpcTreeRequest.cc b/pvtz/src/model/DescribeZoneVpcTreeRequest.cc index 9e012b260..dc89bde1f 100644 --- a/pvtz/src/model/DescribeZoneVpcTreeRequest.cc +++ b/pvtz/src/model/DescribeZoneVpcTreeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeZoneVpcTreeRequest::getUserClientIp()const void DescribeZoneVpcTreeRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeZoneVpcTreeRequest::getLang()const @@ -44,6 +44,6 @@ std::string DescribeZoneVpcTreeRequest::getLang()const void DescribeZoneVpcTreeRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/DescribeZoneVpcTreeResult.cc b/pvtz/src/model/DescribeZoneVpcTreeResult.cc index 0e3fe3f5a..a7c03805f 100644 --- a/pvtz/src/model/DescribeZoneVpcTreeResult.cc +++ b/pvtz/src/model/DescribeZoneVpcTreeResult.cc @@ -35,10 +35,13 @@ DescribeZoneVpcTreeResult::~DescribeZoneVpcTreeResult() void DescribeZoneVpcTreeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allZones = value["Zones"]["Zone"]; for (auto value : allZones) diff --git a/pvtz/src/model/DescribeZonesRequest.cc b/pvtz/src/model/DescribeZonesRequest.cc index 7c45c2b20..6ffe810d3 100644 --- a/pvtz/src/model/DescribeZonesRequest.cc +++ b/pvtz/src/model/DescribeZonesRequest.cc @@ -33,7 +33,18 @@ std::string DescribeZonesRequest::getQueryVpcId()const void DescribeZonesRequest::setQueryVpcId(const std::string& queryVpcId) { queryVpcId_ = queryVpcId; - setParameter("QueryVpcId", queryVpcId); + setCoreParameter("QueryVpcId", queryVpcId); +} + +std::string DescribeZonesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeZonesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); } int DescribeZonesRequest::getPageSize()const @@ -44,7 +55,7 @@ int DescribeZonesRequest::getPageSize()const void DescribeZonesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeZonesRequest::getUserClientIp()const @@ -55,7 +66,7 @@ std::string DescribeZonesRequest::getUserClientIp()const void DescribeZonesRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string DescribeZonesRequest::getSearchMode()const @@ -66,7 +77,7 @@ std::string DescribeZonesRequest::getSearchMode()const void DescribeZonesRequest::setSearchMode(const std::string& searchMode) { searchMode_ = searchMode; - setParameter("SearchMode", searchMode); + setCoreParameter("SearchMode", searchMode); } std::string DescribeZonesRequest::getLang()const @@ -77,7 +88,7 @@ std::string DescribeZonesRequest::getLang()const void DescribeZonesRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string DescribeZonesRequest::getKeyword()const @@ -88,7 +99,7 @@ std::string DescribeZonesRequest::getKeyword()const void DescribeZonesRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } int DescribeZonesRequest::getPageNumber()const @@ -99,7 +110,7 @@ int DescribeZonesRequest::getPageNumber()const void DescribeZonesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeZonesRequest::getQueryRegionId()const @@ -110,6 +121,6 @@ std::string DescribeZonesRequest::getQueryRegionId()const void DescribeZonesRequest::setQueryRegionId(const std::string& queryRegionId) { queryRegionId_ = queryRegionId; - setParameter("QueryRegionId", queryRegionId); + setCoreParameter("QueryRegionId", queryRegionId); } diff --git a/pvtz/src/model/DescribeZonesResult.cc b/pvtz/src/model/DescribeZonesResult.cc index 6e3b98d92..c39a3c338 100644 --- a/pvtz/src/model/DescribeZonesResult.cc +++ b/pvtz/src/model/DescribeZonesResult.cc @@ -35,10 +35,13 @@ DescribeZonesResult::~DescribeZonesResult() void DescribeZonesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allZones = value["Zones"]["Zone"]; for (auto value : allZones) diff --git a/pvtz/src/model/SetProxyPatternRequest.cc b/pvtz/src/model/SetProxyPatternRequest.cc index eb8fbb9de..f4fd93452 100644 --- a/pvtz/src/model/SetProxyPatternRequest.cc +++ b/pvtz/src/model/SetProxyPatternRequest.cc @@ -33,7 +33,7 @@ std::string SetProxyPatternRequest::getProxyPattern()const void SetProxyPatternRequest::setProxyPattern(const std::string& proxyPattern) { proxyPattern_ = proxyPattern; - setParameter("ProxyPattern", proxyPattern); + setCoreParameter("ProxyPattern", proxyPattern); } std::string SetProxyPatternRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SetProxyPatternRequest::getUserClientIp()const void SetProxyPatternRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SetProxyPatternRequest::getZoneId()const @@ -55,7 +55,7 @@ std::string SetProxyPatternRequest::getZoneId()const void SetProxyPatternRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string SetProxyPatternRequest::getLang()const @@ -66,6 +66,6 @@ std::string SetProxyPatternRequest::getLang()const void SetProxyPatternRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/SetProxyPatternResult.cc b/pvtz/src/model/SetProxyPatternResult.cc index ae9fa7ee6..038a20825 100644 --- a/pvtz/src/model/SetProxyPatternResult.cc +++ b/pvtz/src/model/SetProxyPatternResult.cc @@ -35,10 +35,13 @@ SetProxyPatternResult::~SetProxyPatternResult() void SetProxyPatternResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ZoneId"].isNull()) zoneId_ = value["ZoneId"].asString(); diff --git a/pvtz/src/model/SetZoneRecordStatusRequest.cc b/pvtz/src/model/SetZoneRecordStatusRequest.cc index 02aa92a66..a8ad8530f 100644 --- a/pvtz/src/model/SetZoneRecordStatusRequest.cc +++ b/pvtz/src/model/SetZoneRecordStatusRequest.cc @@ -33,7 +33,7 @@ long SetZoneRecordStatusRequest::getRecordId()const void SetZoneRecordStatusRequest::setRecordId(long recordId) { recordId_ = recordId; - setParameter("RecordId", std::to_string(recordId)); + setCoreParameter("RecordId", std::to_string(recordId)); } std::string SetZoneRecordStatusRequest::getUserClientIp()const @@ -44,7 +44,7 @@ std::string SetZoneRecordStatusRequest::getUserClientIp()const void SetZoneRecordStatusRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string SetZoneRecordStatusRequest::getLang()const @@ -55,7 +55,7 @@ std::string SetZoneRecordStatusRequest::getLang()const void SetZoneRecordStatusRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string SetZoneRecordStatusRequest::getStatus()const @@ -66,6 +66,6 @@ std::string SetZoneRecordStatusRequest::getStatus()const void SetZoneRecordStatusRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/pvtz/src/model/SetZoneRecordStatusResult.cc b/pvtz/src/model/SetZoneRecordStatusResult.cc index cf606d171..ba8bedfaf 100644 --- a/pvtz/src/model/SetZoneRecordStatusResult.cc +++ b/pvtz/src/model/SetZoneRecordStatusResult.cc @@ -35,10 +35,13 @@ SetZoneRecordStatusResult::~SetZoneRecordStatusResult() void SetZoneRecordStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = std::stol(value["RecordId"].asString()); diff --git a/pvtz/src/model/UpdateZoneRecordRequest.cc b/pvtz/src/model/UpdateZoneRecordRequest.cc index c5ad99d89..1c64a0bd9 100644 --- a/pvtz/src/model/UpdateZoneRecordRequest.cc +++ b/pvtz/src/model/UpdateZoneRecordRequest.cc @@ -33,7 +33,7 @@ std::string UpdateZoneRecordRequest::getRr()const void UpdateZoneRecordRequest::setRr(const std::string& rr) { rr_ = rr; - setParameter("Rr", rr); + setCoreParameter("Rr", rr); } long UpdateZoneRecordRequest::getRecordId()const @@ -44,7 +44,7 @@ long UpdateZoneRecordRequest::getRecordId()const void UpdateZoneRecordRequest::setRecordId(long recordId) { recordId_ = recordId; - setParameter("RecordId", std::to_string(recordId)); + setCoreParameter("RecordId", std::to_string(recordId)); } std::string UpdateZoneRecordRequest::getUserClientIp()const @@ -55,7 +55,7 @@ std::string UpdateZoneRecordRequest::getUserClientIp()const void UpdateZoneRecordRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateZoneRecordRequest::getLang()const @@ -66,7 +66,7 @@ std::string UpdateZoneRecordRequest::getLang()const void UpdateZoneRecordRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } std::string UpdateZoneRecordRequest::getType()const @@ -77,7 +77,7 @@ std::string UpdateZoneRecordRequest::getType()const void UpdateZoneRecordRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } int UpdateZoneRecordRequest::getPriority()const @@ -88,7 +88,7 @@ int UpdateZoneRecordRequest::getPriority()const void UpdateZoneRecordRequest::setPriority(int priority) { priority_ = priority; - setParameter("Priority", std::to_string(priority)); + setCoreParameter("Priority", std::to_string(priority)); } int UpdateZoneRecordRequest::getTtl()const @@ -99,7 +99,7 @@ int UpdateZoneRecordRequest::getTtl()const void UpdateZoneRecordRequest::setTtl(int ttl) { ttl_ = ttl; - setParameter("Ttl", std::to_string(ttl)); + setCoreParameter("Ttl", std::to_string(ttl)); } std::string UpdateZoneRecordRequest::getValue()const @@ -110,6 +110,6 @@ std::string UpdateZoneRecordRequest::getValue()const void UpdateZoneRecordRequest::setValue(const std::string& value) { value_ = value; - setParameter("Value", value); + setCoreParameter("Value", value); } diff --git a/pvtz/src/model/UpdateZoneRecordResult.cc b/pvtz/src/model/UpdateZoneRecordResult.cc index 14c624e45..c9c3d644d 100644 --- a/pvtz/src/model/UpdateZoneRecordResult.cc +++ b/pvtz/src/model/UpdateZoneRecordResult.cc @@ -35,10 +35,13 @@ UpdateZoneRecordResult::~UpdateZoneRecordResult() void UpdateZoneRecordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RecordId"].isNull()) recordId_ = std::stol(value["RecordId"].asString()); diff --git a/pvtz/src/model/UpdateZoneRemarkRequest.cc b/pvtz/src/model/UpdateZoneRemarkRequest.cc index e1bd2e5a8..1e486cf27 100644 --- a/pvtz/src/model/UpdateZoneRemarkRequest.cc +++ b/pvtz/src/model/UpdateZoneRemarkRequest.cc @@ -33,7 +33,7 @@ std::string UpdateZoneRemarkRequest::getUserClientIp()const void UpdateZoneRemarkRequest::setUserClientIp(const std::string& userClientIp) { userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); + setCoreParameter("UserClientIp", userClientIp); } std::string UpdateZoneRemarkRequest::getZoneId()const @@ -44,7 +44,7 @@ std::string UpdateZoneRemarkRequest::getZoneId()const void UpdateZoneRemarkRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::string UpdateZoneRemarkRequest::getRemark()const @@ -55,7 +55,7 @@ std::string UpdateZoneRemarkRequest::getRemark()const void UpdateZoneRemarkRequest::setRemark(const std::string& remark) { remark_ = remark; - setParameter("Remark", remark); + setCoreParameter("Remark", remark); } std::string UpdateZoneRemarkRequest::getLang()const @@ -66,6 +66,6 @@ std::string UpdateZoneRemarkRequest::getLang()const void UpdateZoneRemarkRequest::setLang(const std::string& lang) { lang_ = lang; - setParameter("Lang", lang); + setCoreParameter("Lang", lang); } diff --git a/pvtz/src/model/UpdateZoneRemarkResult.cc b/pvtz/src/model/UpdateZoneRemarkResult.cc index 8823229e9..55a2b934b 100644 --- a/pvtz/src/model/UpdateZoneRemarkResult.cc +++ b/pvtz/src/model/UpdateZoneRemarkResult.cc @@ -35,10 +35,13 @@ UpdateZoneRemarkResult::~UpdateZoneRemarkResult() void UpdateZoneRemarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ZoneId"].isNull()) zoneId_ = value["ZoneId"].asString(); diff --git a/r-kvstore/CMakeLists.txt b/r-kvstore/CMakeLists.txt index 0e2807924..3ec298376 100644 --- a/r-kvstore/CMakeLists.txt +++ b/r-kvstore/CMakeLists.txt @@ -20,10 +20,470 @@ set(r-kvstore_public_header include/alibabacloud/r-kvstore/R_kvstoreClient.h include/alibabacloud/r-kvstore/R_kvstoreExport.h ) -set(r-kvstore_public_header_model ) +set(r-kvstore_public_header_model + include/alibabacloud/r-kvstore/model/UntagResourcesRequest.h + include/alibabacloud/r-kvstore/model/UntagResourcesResult.h + include/alibabacloud/r-kvstore/model/DescribeDBInstanceMonitorRequest.h + include/alibabacloud/r-kvstore/model/DescribeDBInstanceMonitorResult.h + include/alibabacloud/r-kvstore/model/DescribeSnapshotsRequest.h + include/alibabacloud/r-kvstore/model/DescribeSnapshotsResult.h + include/alibabacloud/r-kvstore/model/ModifyAccountDescriptionRequest.h + include/alibabacloud/r-kvstore/model/ModifyAccountDescriptionResult.h + include/alibabacloud/r-kvstore/model/DescribeShardingInstancesRequest.h + include/alibabacloud/r-kvstore/model/DescribeShardingInstancesResult.h + include/alibabacloud/r-kvstore/model/DescribeCertificationRequest.h + include/alibabacloud/r-kvstore/model/DescribeCertificationResult.h + include/alibabacloud/r-kvstore/model/SwitchNetworkRequest.h + include/alibabacloud/r-kvstore/model/SwitchNetworkResult.h + include/alibabacloud/r-kvstore/model/ReleaseReplicaRequest.h + include/alibabacloud/r-kvstore/model/ReleaseReplicaResult.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskRequest.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskResult.h + include/alibabacloud/r-kvstore/model/ModifyReplicaRecoveryModeRequest.h + include/alibabacloud/r-kvstore/model/ModifyReplicaRecoveryModeResult.h + include/alibabacloud/r-kvstore/model/DescribeReplicasRequest.h + include/alibabacloud/r-kvstore/model/DescribeReplicasResult.h + include/alibabacloud/r-kvstore/model/ModifyDBInstanceConnectionStringRequest.h + include/alibabacloud/r-kvstore/model/ModifyDBInstanceConnectionStringResult.h + include/alibabacloud/r-kvstore/model/DescribeTagsRequest.h + include/alibabacloud/r-kvstore/model/DescribeTagsResult.h + include/alibabacloud/r-kvstore/model/DescribeReplicaConflictInfoRequest.h + include/alibabacloud/r-kvstore/model/DescribeReplicaConflictInfoResult.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskCountRequest.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskCountResult.h + include/alibabacloud/r-kvstore/model/ModifyCertificationRequest.h + include/alibabacloud/r-kvstore/model/ModifyCertificationResult.h + include/alibabacloud/r-kvstore/model/CreateAccountRequest.h + include/alibabacloud/r-kvstore/model/CreateAccountResult.h + include/alibabacloud/r-kvstore/model/DescribeHistoryMonitorValuesRequest.h + include/alibabacloud/r-kvstore/model/DescribeHistoryMonitorValuesResult.h + include/alibabacloud/r-kvstore/model/RenewInstanceRequest.h + include/alibabacloud/r-kvstore/model/RenewInstanceResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceMinorVersionRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceMinorVersionResult.h + include/alibabacloud/r-kvstore/model/ModifyDBInstanceMonitorRequest.h + include/alibabacloud/r-kvstore/model/ModifyDBInstanceMonitorResult.h + include/alibabacloud/r-kvstore/model/DescribeMonthlyServiceStatusRequest.h + include/alibabacloud/r-kvstore/model/DescribeMonthlyServiceStatusResult.h + include/alibabacloud/r-kvstore/model/ModifyBackupPolicyRequest.h + include/alibabacloud/r-kvstore/model/ModifyBackupPolicyResult.h + include/alibabacloud/r-kvstore/model/DescribeReplicaInitializeProgressRequest.h + include/alibabacloud/r-kvstore/model/DescribeReplicaInitializeProgressResult.h + include/alibabacloud/r-kvstore/model/ModifyReplicaDescriptionRequest.h + include/alibabacloud/r-kvstore/model/ModifyReplicaDescriptionResult.h + include/alibabacloud/r-kvstore/model/DescribeInstancesRequest.h + include/alibabacloud/r-kvstore/model/DescribeInstancesResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceVpcAuthModeRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceVpcAuthModeResult.h + include/alibabacloud/r-kvstore/model/DescribeParametersRequest.h + include/alibabacloud/r-kvstore/model/DescribeParametersResult.h + include/alibabacloud/r-kvstore/model/DescribeMonthlyServiceStatusDetailRequest.h + include/alibabacloud/r-kvstore/model/DescribeMonthlyServiceStatusDetailResult.h + include/alibabacloud/r-kvstore/model/CreateSnapshotRequest.h + include/alibabacloud/r-kvstore/model/CreateSnapshotResult.h + include/alibabacloud/r-kvstore/model/DescribeInstanceConfigRequest.h + include/alibabacloud/r-kvstore/model/DescribeInstanceConfigResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceNetExpireTimeRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceNetExpireTimeResult.h + include/alibabacloud/r-kvstore/model/AllocateInstancePublicConnectionRequest.h + include/alibabacloud/r-kvstore/model/AllocateInstancePublicConnectionResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceSpecRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceSpecResult.h + include/alibabacloud/r-kvstore/model/CreateStaticVerificationRequest.h + include/alibabacloud/r-kvstore/model/CreateStaticVerificationResult.h + include/alibabacloud/r-kvstore/model/DeleteSnapshotRequest.h + include/alibabacloud/r-kvstore/model/DeleteSnapshotResult.h + include/alibabacloud/r-kvstore/model/DeleteTempInstanceRequest.h + include/alibabacloud/r-kvstore/model/DeleteTempInstanceResult.h + include/alibabacloud/r-kvstore/model/VerifyPasswordRequest.h + include/alibabacloud/r-kvstore/model/VerifyPasswordResult.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskTypeRequest.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskTypeResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceAutoRenewalAttributeResult.h + include/alibabacloud/r-kvstore/model/DescribeAuditRecordsRequest.h + include/alibabacloud/r-kvstore/model/DescribeAuditRecordsResult.h + include/alibabacloud/r-kvstore/model/DescribeBackupsRequest.h + include/alibabacloud/r-kvstore/model/DescribeBackupsResult.h + include/alibabacloud/r-kvstore/model/DescribeRdsVpcsRequest.h + include/alibabacloud/r-kvstore/model/DescribeRdsVpcsResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceMajorVersionRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceMajorVersionResult.h + include/alibabacloud/r-kvstore/model/DescribeInstanceAttributeRequest.h + include/alibabacloud/r-kvstore/model/DescribeInstanceAttributeResult.h + include/alibabacloud/r-kvstore/model/DescribeInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/r-kvstore/model/DescribeInstanceAutoRenewalAttributeResult.h + include/alibabacloud/r-kvstore/model/DescribeRdsVSwitchsRequest.h + include/alibabacloud/r-kvstore/model/DescribeRdsVSwitchsResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceAttributeRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceAttributeResult.h + include/alibabacloud/r-kvstore/model/ModifyAuditLogConfigRequest.h + include/alibabacloud/r-kvstore/model/ModifyAuditLogConfigResult.h + include/alibabacloud/r-kvstore/model/DescribeErrorLogRecordsRequest.h + include/alibabacloud/r-kvstore/model/DescribeErrorLogRecordsResult.h + include/alibabacloud/r-kvstore/model/ModifySecurityIpsRequest.h + include/alibabacloud/r-kvstore/model/ModifySecurityIpsResult.h + include/alibabacloud/r-kvstore/model/DescribeVerificationListRequest.h + include/alibabacloud/r-kvstore/model/DescribeVerificationListResult.h + include/alibabacloud/r-kvstore/model/ModifyReplicaModeRequest.h + include/alibabacloud/r-kvstore/model/ModifyReplicaModeResult.h + include/alibabacloud/r-kvstore/model/DescribeStrategyRequest.h + include/alibabacloud/r-kvstore/model/DescribeStrategyResult.h + include/alibabacloud/r-kvstore/model/GrantAccountPrivilegeRequest.h + include/alibabacloud/r-kvstore/model/GrantAccountPrivilegeResult.h + include/alibabacloud/r-kvstore/model/TagResourcesRequest.h + include/alibabacloud/r-kvstore/model/TagResourcesResult.h + include/alibabacloud/r-kvstore/model/TransformToPrePaidRequest.h + include/alibabacloud/r-kvstore/model/TransformToPrePaidResult.h + include/alibabacloud/r-kvstore/model/DescribeCacheAnalysisReportListRequest.h + include/alibabacloud/r-kvstore/model/DescribeCacheAnalysisReportListResult.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskRegionRequest.h + include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskRegionResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceConfigRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceConfigResult.h + include/alibabacloud/r-kvstore/model/DeleteInstanceRequest.h + include/alibabacloud/r-kvstore/model/DeleteInstanceResult.h + include/alibabacloud/r-kvstore/model/ListTagResourcesRequest.h + include/alibabacloud/r-kvstore/model/ListTagResourcesResult.h + include/alibabacloud/r-kvstore/model/RestoreSnapshotRequest.h + include/alibabacloud/r-kvstore/model/RestoreSnapshotResult.h + include/alibabacloud/r-kvstore/model/DescribeIntranetAttributeRequest.h + include/alibabacloud/r-kvstore/model/DescribeIntranetAttributeResult.h + include/alibabacloud/r-kvstore/model/CreateInstanceRequest.h + include/alibabacloud/r-kvstore/model/CreateInstanceResult.h + include/alibabacloud/r-kvstore/model/CreateCacheAnalysisTaskRequest.h + include/alibabacloud/r-kvstore/model/CreateCacheAnalysisTaskResult.h + include/alibabacloud/r-kvstore/model/RevokeAccountPrivilegeRequest.h + include/alibabacloud/r-kvstore/model/RevokeAccountPrivilegeResult.h + include/alibabacloud/r-kvstore/model/DescribeParameterTemplatesRequest.h + include/alibabacloud/r-kvstore/model/DescribeParameterTemplatesResult.h + include/alibabacloud/r-kvstore/model/DestroyInstanceRequest.h + include/alibabacloud/r-kvstore/model/DestroyInstanceResult.h + include/alibabacloud/r-kvstore/model/DescribeRunningLogRecordsRequest.h + include/alibabacloud/r-kvstore/model/DescribeRunningLogRecordsResult.h + include/alibabacloud/r-kvstore/model/DescribeStaticVerificationListRequest.h + include/alibabacloud/r-kvstore/model/DescribeStaticVerificationListResult.h + include/alibabacloud/r-kvstore/model/CreateTempInstanceRequest.h + include/alibabacloud/r-kvstore/model/CreateTempInstanceResult.h + include/alibabacloud/r-kvstore/model/UnlinkReplicaInstanceRequest.h + include/alibabacloud/r-kvstore/model/UnlinkReplicaInstanceResult.h + include/alibabacloud/r-kvstore/model/CreateShardingInstanceRequest.h + include/alibabacloud/r-kvstore/model/CreateShardingInstanceResult.h + include/alibabacloud/r-kvstore/model/DescribeZonesRequest.h + include/alibabacloud/r-kvstore/model/DescribeZonesResult.h + include/alibabacloud/r-kvstore/model/FlushInstanceRequest.h + include/alibabacloud/r-kvstore/model/FlushInstanceResult.h + include/alibabacloud/r-kvstore/model/DescribeDBInstanceNetInfoRequest.h + include/alibabacloud/r-kvstore/model/DescribeDBInstanceNetInfoResult.h + include/alibabacloud/r-kvstore/model/DescribeAvailableResourceRequest.h + include/alibabacloud/r-kvstore/model/DescribeAvailableResourceResult.h + include/alibabacloud/r-kvstore/model/DescribeSecurityIpsRequest.h + include/alibabacloud/r-kvstore/model/DescribeSecurityIpsResult.h + include/alibabacloud/r-kvstore/model/DeleteSnapshotSettingsRequest.h + include/alibabacloud/r-kvstore/model/DeleteSnapshotSettingsResult.h + include/alibabacloud/r-kvstore/model/ReleaseInstancePublicConnectionRequest.h + include/alibabacloud/r-kvstore/model/ReleaseInstancePublicConnectionResult.h + include/alibabacloud/r-kvstore/model/DescribeTempInstanceRequest.h + include/alibabacloud/r-kvstore/model/DescribeTempInstanceResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceSSLRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceSSLResult.h + include/alibabacloud/r-kvstore/model/ModifyReplicaRelationRequest.h + include/alibabacloud/r-kvstore/model/ModifyReplicaRelationResult.h + include/alibabacloud/r-kvstore/model/DescribeInstancesByExpireTimeRequest.h + include/alibabacloud/r-kvstore/model/DescribeInstancesByExpireTimeResult.h + include/alibabacloud/r-kvstore/model/DescribeReplicaUsageRequest.h + include/alibabacloud/r-kvstore/model/DescribeReplicaUsageResult.h + include/alibabacloud/r-kvstore/model/CreateBackupRequest.h + include/alibabacloud/r-kvstore/model/CreateBackupResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceSpecPreCheckRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceSpecPreCheckResult.h + include/alibabacloud/r-kvstore/model/ModifyIntranetAttributeRequest.h + include/alibabacloud/r-kvstore/model/ModifyIntranetAttributeResult.h + include/alibabacloud/r-kvstore/model/DescribeReplicaPerformanceRequest.h + include/alibabacloud/r-kvstore/model/DescribeReplicaPerformanceResult.h + include/alibabacloud/r-kvstore/model/DescribeMonitorItemsRequest.h + include/alibabacloud/r-kvstore/model/DescribeMonitorItemsResult.h + include/alibabacloud/r-kvstore/model/DescribeLogicInstanceTopologyRequest.h + include/alibabacloud/r-kvstore/model/DescribeLogicInstanceTopologyResult.h + include/alibabacloud/r-kvstore/model/DescribeCacheAnalysisReportRequest.h + include/alibabacloud/r-kvstore/model/DescribeCacheAnalysisReportResult.h + include/alibabacloud/r-kvstore/model/SetSnapshotSettingsRequest.h + include/alibabacloud/r-kvstore/model/SetSnapshotSettingsResult.h + include/alibabacloud/r-kvstore/model/ResetAccountRequest.h + include/alibabacloud/r-kvstore/model/ResetAccountResult.h + include/alibabacloud/r-kvstore/model/SwitchTempInstanceRequest.h + include/alibabacloud/r-kvstore/model/SwitchTempInstanceResult.h + include/alibabacloud/r-kvstore/model/RestoreInstanceRequest.h + include/alibabacloud/r-kvstore/model/RestoreInstanceResult.h + include/alibabacloud/r-kvstore/model/RestartInstanceRequest.h + include/alibabacloud/r-kvstore/model/RestartInstanceResult.h + include/alibabacloud/r-kvstore/model/DescribeRegionsRequest.h + include/alibabacloud/r-kvstore/model/DescribeRegionsResult.h + include/alibabacloud/r-kvstore/model/ModifyInstanceMaintainTimeRequest.h + include/alibabacloud/r-kvstore/model/ModifyInstanceMaintainTimeResult.h + include/alibabacloud/r-kvstore/model/MigrateToOtherZoneRequest.h + include/alibabacloud/r-kvstore/model/MigrateToOtherZoneResult.h + include/alibabacloud/r-kvstore/model/DeleteAccountRequest.h + include/alibabacloud/r-kvstore/model/DeleteAccountResult.h + include/alibabacloud/r-kvstore/model/DescribeSlowLogRecordsRequest.h + include/alibabacloud/r-kvstore/model/DescribeSlowLogRecordsResult.h + include/alibabacloud/r-kvstore/model/DescribeParameterModificationHistoryRequest.h + include/alibabacloud/r-kvstore/model/DescribeParameterModificationHistoryResult.h + include/alibabacloud/r-kvstore/model/DescribeInstanceSSLRequest.h + include/alibabacloud/r-kvstore/model/DescribeInstanceSSLResult.h + include/alibabacloud/r-kvstore/model/ResetAccountPasswordRequest.h + include/alibabacloud/r-kvstore/model/ResetAccountPasswordResult.h + include/alibabacloud/r-kvstore/model/DescribeAccountsRequest.h + include/alibabacloud/r-kvstore/model/DescribeAccountsResult.h + include/alibabacloud/r-kvstore/model/QueryTaskRequest.h + include/alibabacloud/r-kvstore/model/QueryTaskResult.h + include/alibabacloud/r-kvstore/model/RenewMultiInstanceRequest.h + include/alibabacloud/r-kvstore/model/RenewMultiInstanceResult.h + include/alibabacloud/r-kvstore/model/EvaluateFailOverSwitchRequest.h + include/alibabacloud/r-kvstore/model/EvaluateFailOverSwitchResult.h + include/alibabacloud/r-kvstore/model/ModifyGuardDomainModeRequest.h + include/alibabacloud/r-kvstore/model/ModifyGuardDomainModeResult.h + include/alibabacloud/r-kvstore/model/ModifyReplicaVerificationModeRequest.h + include/alibabacloud/r-kvstore/model/ModifyReplicaVerificationModeResult.h + include/alibabacloud/r-kvstore/model/ModifyActiveOperationTaskRequest.h + include/alibabacloud/r-kvstore/model/ModifyActiveOperationTaskResult.h + include/alibabacloud/r-kvstore/model/GetSnapshotSettingsRequest.h + include/alibabacloud/r-kvstore/model/GetSnapshotSettingsResult.h + include/alibabacloud/r-kvstore/model/DescribeBackupPolicyRequest.h + include/alibabacloud/r-kvstore/model/DescribeBackupPolicyResult.h ) set(r-kvstore_src - src/R-kvstoreClient.cc ) + src/R-kvstoreClient.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/DescribeDBInstanceMonitorRequest.cc + src/model/DescribeDBInstanceMonitorResult.cc + src/model/DescribeSnapshotsRequest.cc + src/model/DescribeSnapshotsResult.cc + src/model/ModifyAccountDescriptionRequest.cc + src/model/ModifyAccountDescriptionResult.cc + src/model/DescribeShardingInstancesRequest.cc + src/model/DescribeShardingInstancesResult.cc + src/model/DescribeCertificationRequest.cc + src/model/DescribeCertificationResult.cc + src/model/SwitchNetworkRequest.cc + src/model/SwitchNetworkResult.cc + src/model/ReleaseReplicaRequest.cc + src/model/ReleaseReplicaResult.cc + src/model/DescribeActiveOperationTaskRequest.cc + src/model/DescribeActiveOperationTaskResult.cc + src/model/ModifyReplicaRecoveryModeRequest.cc + src/model/ModifyReplicaRecoveryModeResult.cc + src/model/DescribeReplicasRequest.cc + src/model/DescribeReplicasResult.cc + src/model/ModifyDBInstanceConnectionStringRequest.cc + src/model/ModifyDBInstanceConnectionStringResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc + src/model/DescribeReplicaConflictInfoRequest.cc + src/model/DescribeReplicaConflictInfoResult.cc + src/model/DescribeActiveOperationTaskCountRequest.cc + src/model/DescribeActiveOperationTaskCountResult.cc + src/model/ModifyCertificationRequest.cc + src/model/ModifyCertificationResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc + src/model/DescribeHistoryMonitorValuesRequest.cc + src/model/DescribeHistoryMonitorValuesResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/ModifyInstanceMinorVersionRequest.cc + src/model/ModifyInstanceMinorVersionResult.cc + src/model/ModifyDBInstanceMonitorRequest.cc + src/model/ModifyDBInstanceMonitorResult.cc + src/model/DescribeMonthlyServiceStatusRequest.cc + src/model/DescribeMonthlyServiceStatusResult.cc + src/model/ModifyBackupPolicyRequest.cc + src/model/ModifyBackupPolicyResult.cc + src/model/DescribeReplicaInitializeProgressRequest.cc + src/model/DescribeReplicaInitializeProgressResult.cc + src/model/ModifyReplicaDescriptionRequest.cc + src/model/ModifyReplicaDescriptionResult.cc + src/model/DescribeInstancesRequest.cc + src/model/DescribeInstancesResult.cc + src/model/ModifyInstanceVpcAuthModeRequest.cc + src/model/ModifyInstanceVpcAuthModeResult.cc + src/model/DescribeParametersRequest.cc + src/model/DescribeParametersResult.cc + src/model/DescribeMonthlyServiceStatusDetailRequest.cc + src/model/DescribeMonthlyServiceStatusDetailResult.cc + src/model/CreateSnapshotRequest.cc + src/model/CreateSnapshotResult.cc + src/model/DescribeInstanceConfigRequest.cc + src/model/DescribeInstanceConfigResult.cc + src/model/ModifyInstanceNetExpireTimeRequest.cc + src/model/ModifyInstanceNetExpireTimeResult.cc + src/model/AllocateInstancePublicConnectionRequest.cc + src/model/AllocateInstancePublicConnectionResult.cc + src/model/ModifyInstanceSpecRequest.cc + src/model/ModifyInstanceSpecResult.cc + src/model/CreateStaticVerificationRequest.cc + src/model/CreateStaticVerificationResult.cc + src/model/DeleteSnapshotRequest.cc + src/model/DeleteSnapshotResult.cc + src/model/DeleteTempInstanceRequest.cc + src/model/DeleteTempInstanceResult.cc + src/model/VerifyPasswordRequest.cc + src/model/VerifyPasswordResult.cc + src/model/DescribeActiveOperationTaskTypeRequest.cc + src/model/DescribeActiveOperationTaskTypeResult.cc + src/model/ModifyInstanceAutoRenewalAttributeRequest.cc + src/model/ModifyInstanceAutoRenewalAttributeResult.cc + src/model/DescribeAuditRecordsRequest.cc + src/model/DescribeAuditRecordsResult.cc + src/model/DescribeBackupsRequest.cc + src/model/DescribeBackupsResult.cc + src/model/DescribeRdsVpcsRequest.cc + src/model/DescribeRdsVpcsResult.cc + src/model/ModifyInstanceMajorVersionRequest.cc + src/model/ModifyInstanceMajorVersionResult.cc + src/model/DescribeInstanceAttributeRequest.cc + src/model/DescribeInstanceAttributeResult.cc + src/model/DescribeInstanceAutoRenewalAttributeRequest.cc + src/model/DescribeInstanceAutoRenewalAttributeResult.cc + src/model/DescribeRdsVSwitchsRequest.cc + src/model/DescribeRdsVSwitchsResult.cc + src/model/ModifyInstanceAttributeRequest.cc + src/model/ModifyInstanceAttributeResult.cc + src/model/ModifyAuditLogConfigRequest.cc + src/model/ModifyAuditLogConfigResult.cc + src/model/DescribeErrorLogRecordsRequest.cc + src/model/DescribeErrorLogRecordsResult.cc + src/model/ModifySecurityIpsRequest.cc + src/model/ModifySecurityIpsResult.cc + src/model/DescribeVerificationListRequest.cc + src/model/DescribeVerificationListResult.cc + src/model/ModifyReplicaModeRequest.cc + src/model/ModifyReplicaModeResult.cc + src/model/DescribeStrategyRequest.cc + src/model/DescribeStrategyResult.cc + src/model/GrantAccountPrivilegeRequest.cc + src/model/GrantAccountPrivilegeResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/TransformToPrePaidRequest.cc + src/model/TransformToPrePaidResult.cc + src/model/DescribeCacheAnalysisReportListRequest.cc + src/model/DescribeCacheAnalysisReportListResult.cc + src/model/DescribeActiveOperationTaskRegionRequest.cc + src/model/DescribeActiveOperationTaskRegionResult.cc + src/model/ModifyInstanceConfigRequest.cc + src/model/ModifyInstanceConfigResult.cc + src/model/DeleteInstanceRequest.cc + src/model/DeleteInstanceResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/RestoreSnapshotRequest.cc + src/model/RestoreSnapshotResult.cc + src/model/DescribeIntranetAttributeRequest.cc + src/model/DescribeIntranetAttributeResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/CreateCacheAnalysisTaskRequest.cc + src/model/CreateCacheAnalysisTaskResult.cc + src/model/RevokeAccountPrivilegeRequest.cc + src/model/RevokeAccountPrivilegeResult.cc + src/model/DescribeParameterTemplatesRequest.cc + src/model/DescribeParameterTemplatesResult.cc + src/model/DestroyInstanceRequest.cc + src/model/DestroyInstanceResult.cc + src/model/DescribeRunningLogRecordsRequest.cc + src/model/DescribeRunningLogRecordsResult.cc + src/model/DescribeStaticVerificationListRequest.cc + src/model/DescribeStaticVerificationListResult.cc + src/model/CreateTempInstanceRequest.cc + src/model/CreateTempInstanceResult.cc + src/model/UnlinkReplicaInstanceRequest.cc + src/model/UnlinkReplicaInstanceResult.cc + src/model/CreateShardingInstanceRequest.cc + src/model/CreateShardingInstanceResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/FlushInstanceRequest.cc + src/model/FlushInstanceResult.cc + src/model/DescribeDBInstanceNetInfoRequest.cc + src/model/DescribeDBInstanceNetInfoResult.cc + src/model/DescribeAvailableResourceRequest.cc + src/model/DescribeAvailableResourceResult.cc + src/model/DescribeSecurityIpsRequest.cc + src/model/DescribeSecurityIpsResult.cc + src/model/DeleteSnapshotSettingsRequest.cc + src/model/DeleteSnapshotSettingsResult.cc + src/model/ReleaseInstancePublicConnectionRequest.cc + src/model/ReleaseInstancePublicConnectionResult.cc + src/model/DescribeTempInstanceRequest.cc + src/model/DescribeTempInstanceResult.cc + src/model/ModifyInstanceSSLRequest.cc + src/model/ModifyInstanceSSLResult.cc + src/model/ModifyReplicaRelationRequest.cc + src/model/ModifyReplicaRelationResult.cc + src/model/DescribeInstancesByExpireTimeRequest.cc + src/model/DescribeInstancesByExpireTimeResult.cc + src/model/DescribeReplicaUsageRequest.cc + src/model/DescribeReplicaUsageResult.cc + src/model/CreateBackupRequest.cc + src/model/CreateBackupResult.cc + src/model/ModifyInstanceSpecPreCheckRequest.cc + src/model/ModifyInstanceSpecPreCheckResult.cc + src/model/ModifyIntranetAttributeRequest.cc + src/model/ModifyIntranetAttributeResult.cc + src/model/DescribeReplicaPerformanceRequest.cc + src/model/DescribeReplicaPerformanceResult.cc + src/model/DescribeMonitorItemsRequest.cc + src/model/DescribeMonitorItemsResult.cc + src/model/DescribeLogicInstanceTopologyRequest.cc + src/model/DescribeLogicInstanceTopologyResult.cc + src/model/DescribeCacheAnalysisReportRequest.cc + src/model/DescribeCacheAnalysisReportResult.cc + src/model/SetSnapshotSettingsRequest.cc + src/model/SetSnapshotSettingsResult.cc + src/model/ResetAccountRequest.cc + src/model/ResetAccountResult.cc + src/model/SwitchTempInstanceRequest.cc + src/model/SwitchTempInstanceResult.cc + src/model/RestoreInstanceRequest.cc + src/model/RestoreInstanceResult.cc + src/model/RestartInstanceRequest.cc + src/model/RestartInstanceResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/ModifyInstanceMaintainTimeRequest.cc + src/model/ModifyInstanceMaintainTimeResult.cc + src/model/MigrateToOtherZoneRequest.cc + src/model/MigrateToOtherZoneResult.cc + src/model/DeleteAccountRequest.cc + src/model/DeleteAccountResult.cc + src/model/DescribeSlowLogRecordsRequest.cc + src/model/DescribeSlowLogRecordsResult.cc + src/model/DescribeParameterModificationHistoryRequest.cc + src/model/DescribeParameterModificationHistoryResult.cc + src/model/DescribeInstanceSSLRequest.cc + src/model/DescribeInstanceSSLResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/QueryTaskRequest.cc + src/model/QueryTaskResult.cc + src/model/RenewMultiInstanceRequest.cc + src/model/RenewMultiInstanceResult.cc + src/model/EvaluateFailOverSwitchRequest.cc + src/model/EvaluateFailOverSwitchResult.cc + src/model/ModifyGuardDomainModeRequest.cc + src/model/ModifyGuardDomainModeResult.cc + src/model/ModifyReplicaVerificationModeRequest.cc + src/model/ModifyReplicaVerificationModeResult.cc + src/model/ModifyActiveOperationTaskRequest.cc + src/model/ModifyActiveOperationTaskResult.cc + src/model/GetSnapshotSettingsRequest.cc + src/model/GetSnapshotSettingsResult.cc + src/model/DescribeBackupPolicyRequest.cc + src/model/DescribeBackupPolicyResult.cc ) add_library(r-kvstore ${LIB_TYPE} ${r-kvstore_public_header} diff --git a/r-kvstore/include/alibabacloud/r-kvstore/R_kvstoreClient.h b/r-kvstore/include/alibabacloud/r-kvstore/R_kvstoreClient.h index 86def3d01..b1de8dbe2 100644 --- a/r-kvstore/include/alibabacloud/r-kvstore/R_kvstoreClient.h +++ b/r-kvstore/include/alibabacloud/r-kvstore/R_kvstoreClient.h @@ -30,20 +30,24 @@ #include "model/DescribeSnapshotsResult.h" #include "model/ModifyAccountDescriptionRequest.h" #include "model/ModifyAccountDescriptionResult.h" -#include "model/SwitchNetworkRequest.h" -#include "model/SwitchNetworkResult.h" +#include "model/DescribeShardingInstancesRequest.h" +#include "model/DescribeShardingInstancesResult.h" #include "model/DescribeCertificationRequest.h" #include "model/DescribeCertificationResult.h" +#include "model/SwitchNetworkRequest.h" +#include "model/SwitchNetworkResult.h" #include "model/ReleaseReplicaRequest.h" #include "model/ReleaseReplicaResult.h" #include "model/DescribeActiveOperationTaskRequest.h" #include "model/DescribeActiveOperationTaskResult.h" #include "model/ModifyReplicaRecoveryModeRequest.h" #include "model/ModifyReplicaRecoveryModeResult.h" -#include "model/ModifyDBInstanceConnectionStringRequest.h" -#include "model/ModifyDBInstanceConnectionStringResult.h" #include "model/DescribeReplicasRequest.h" #include "model/DescribeReplicasResult.h" +#include "model/ModifyDBInstanceConnectionStringRequest.h" +#include "model/ModifyDBInstanceConnectionStringResult.h" +#include "model/DescribeTagsRequest.h" +#include "model/DescribeTagsResult.h" #include "model/DescribeReplicaConflictInfoRequest.h" #include "model/DescribeReplicaConflictInfoResult.h" #include "model/DescribeActiveOperationTaskCountRequest.h" @@ -62,12 +66,12 @@ #include "model/ModifyDBInstanceMonitorResult.h" #include "model/DescribeMonthlyServiceStatusRequest.h" #include "model/DescribeMonthlyServiceStatusResult.h" -#include "model/ModifyReplicaDescriptionRequest.h" -#include "model/ModifyReplicaDescriptionResult.h" -#include "model/DescribeReplicaInitializeProgressRequest.h" -#include "model/DescribeReplicaInitializeProgressResult.h" #include "model/ModifyBackupPolicyRequest.h" #include "model/ModifyBackupPolicyResult.h" +#include "model/DescribeReplicaInitializeProgressRequest.h" +#include "model/DescribeReplicaInitializeProgressResult.h" +#include "model/ModifyReplicaDescriptionRequest.h" +#include "model/ModifyReplicaDescriptionResult.h" #include "model/DescribeInstancesRequest.h" #include "model/DescribeInstancesResult.h" #include "model/ModifyInstanceVpcAuthModeRequest.h" @@ -90,10 +94,10 @@ #include "model/CreateStaticVerificationResult.h" #include "model/DeleteSnapshotRequest.h" #include "model/DeleteSnapshotResult.h" -#include "model/VerifyPasswordRequest.h" -#include "model/VerifyPasswordResult.h" #include "model/DeleteTempInstanceRequest.h" #include "model/DeleteTempInstanceResult.h" +#include "model/VerifyPasswordRequest.h" +#include "model/VerifyPasswordResult.h" #include "model/DescribeActiveOperationTaskTypeRequest.h" #include "model/DescribeActiveOperationTaskTypeResult.h" #include "model/ModifyInstanceAutoRenewalAttributeRequest.h" @@ -126,10 +130,10 @@ #include "model/ModifyReplicaModeResult.h" #include "model/DescribeStrategyRequest.h" #include "model/DescribeStrategyResult.h" -#include "model/TagResourcesRequest.h" -#include "model/TagResourcesResult.h" #include "model/GrantAccountPrivilegeRequest.h" #include "model/GrantAccountPrivilegeResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" #include "model/TransformToPrePaidRequest.h" #include "model/TransformToPrePaidResult.h" #include "model/DescribeCacheAnalysisReportListRequest.h" @@ -164,22 +168,26 @@ #include "model/CreateTempInstanceResult.h" #include "model/UnlinkReplicaInstanceRequest.h" #include "model/UnlinkReplicaInstanceResult.h" +#include "model/CreateShardingInstanceRequest.h" +#include "model/CreateShardingInstanceResult.h" #include "model/DescribeZonesRequest.h" #include "model/DescribeZonesResult.h" #include "model/FlushInstanceRequest.h" #include "model/FlushInstanceResult.h" #include "model/DescribeDBInstanceNetInfoRequest.h" #include "model/DescribeDBInstanceNetInfoResult.h" +#include "model/DescribeAvailableResourceRequest.h" +#include "model/DescribeAvailableResourceResult.h" #include "model/DescribeSecurityIpsRequest.h" #include "model/DescribeSecurityIpsResult.h" #include "model/DeleteSnapshotSettingsRequest.h" #include "model/DeleteSnapshotSettingsResult.h" #include "model/ReleaseInstancePublicConnectionRequest.h" #include "model/ReleaseInstancePublicConnectionResult.h" -#include "model/ModifyInstanceSSLRequest.h" -#include "model/ModifyInstanceSSLResult.h" #include "model/DescribeTempInstanceRequest.h" #include "model/DescribeTempInstanceResult.h" +#include "model/ModifyInstanceSSLRequest.h" +#include "model/ModifyInstanceSSLResult.h" #include "model/ModifyReplicaRelationRequest.h" #include "model/ModifyReplicaRelationResult.h" #include "model/DescribeInstancesByExpireTimeRequest.h" @@ -188,10 +196,10 @@ #include "model/DescribeReplicaUsageResult.h" #include "model/CreateBackupRequest.h" #include "model/CreateBackupResult.h" -#include "model/ModifyIntranetAttributeRequest.h" -#include "model/ModifyIntranetAttributeResult.h" #include "model/ModifyInstanceSpecPreCheckRequest.h" #include "model/ModifyInstanceSpecPreCheckResult.h" +#include "model/ModifyIntranetAttributeRequest.h" +#include "model/ModifyIntranetAttributeResult.h" #include "model/DescribeReplicaPerformanceRequest.h" #include "model/DescribeReplicaPerformanceResult.h" #include "model/DescribeMonitorItemsRequest.h" @@ -238,10 +246,10 @@ #include "model/ModifyGuardDomainModeResult.h" #include "model/ModifyReplicaVerificationModeRequest.h" #include "model/ModifyReplicaVerificationModeResult.h" -#include "model/GetSnapshotSettingsRequest.h" -#include "model/GetSnapshotSettingsResult.h" #include "model/ModifyActiveOperationTaskRequest.h" #include "model/ModifyActiveOperationTaskResult.h" +#include "model/GetSnapshotSettingsRequest.h" +#include "model/GetSnapshotSettingsResult.h" #include "model/DescribeBackupPolicyRequest.h" #include "model/DescribeBackupPolicyResult.h" @@ -265,12 +273,15 @@ namespace AlibabaCloud typedef Outcome ModifyAccountDescriptionOutcome; typedef std::future ModifyAccountDescriptionOutcomeCallable; typedef std::function&)> ModifyAccountDescriptionAsyncHandler; - typedef Outcome SwitchNetworkOutcome; - typedef std::future SwitchNetworkOutcomeCallable; - typedef std::function&)> SwitchNetworkAsyncHandler; + typedef Outcome DescribeShardingInstancesOutcome; + typedef std::future DescribeShardingInstancesOutcomeCallable; + typedef std::function&)> DescribeShardingInstancesAsyncHandler; typedef Outcome DescribeCertificationOutcome; typedef std::future DescribeCertificationOutcomeCallable; typedef std::function&)> DescribeCertificationAsyncHandler; + typedef Outcome SwitchNetworkOutcome; + typedef std::future SwitchNetworkOutcomeCallable; + typedef std::function&)> SwitchNetworkAsyncHandler; typedef Outcome ReleaseReplicaOutcome; typedef std::future ReleaseReplicaOutcomeCallable; typedef std::function&)> ReleaseReplicaAsyncHandler; @@ -280,12 +291,15 @@ namespace AlibabaCloud typedef Outcome ModifyReplicaRecoveryModeOutcome; typedef std::future ModifyReplicaRecoveryModeOutcomeCallable; typedef std::function&)> ModifyReplicaRecoveryModeAsyncHandler; - typedef Outcome ModifyDBInstanceConnectionStringOutcome; - typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; - typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; typedef Outcome DescribeReplicasOutcome; typedef std::future DescribeReplicasOutcomeCallable; typedef std::function&)> DescribeReplicasAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionStringOutcome; + typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; typedef Outcome DescribeReplicaConflictInfoOutcome; typedef std::future DescribeReplicaConflictInfoOutcomeCallable; typedef std::function&)> DescribeReplicaConflictInfoAsyncHandler; @@ -313,15 +327,15 @@ namespace AlibabaCloud typedef Outcome DescribeMonthlyServiceStatusOutcome; typedef std::future DescribeMonthlyServiceStatusOutcomeCallable; typedef std::function&)> DescribeMonthlyServiceStatusAsyncHandler; - typedef Outcome ModifyReplicaDescriptionOutcome; - typedef std::future ModifyReplicaDescriptionOutcomeCallable; - typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; - typedef Outcome DescribeReplicaInitializeProgressOutcome; - typedef std::future DescribeReplicaInitializeProgressOutcomeCallable; - typedef std::function&)> DescribeReplicaInitializeProgressAsyncHandler; typedef Outcome ModifyBackupPolicyOutcome; typedef std::future ModifyBackupPolicyOutcomeCallable; typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome DescribeReplicaInitializeProgressOutcome; + typedef std::future DescribeReplicaInitializeProgressOutcomeCallable; + typedef std::function&)> DescribeReplicaInitializeProgressAsyncHandler; + typedef Outcome ModifyReplicaDescriptionOutcome; + typedef std::future ModifyReplicaDescriptionOutcomeCallable; + typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; typedef Outcome DescribeInstancesOutcome; typedef std::future DescribeInstancesOutcomeCallable; typedef std::function&)> DescribeInstancesAsyncHandler; @@ -355,12 +369,12 @@ namespace AlibabaCloud typedef Outcome DeleteSnapshotOutcome; typedef std::future DeleteSnapshotOutcomeCallable; typedef std::function&)> DeleteSnapshotAsyncHandler; - typedef Outcome VerifyPasswordOutcome; - typedef std::future VerifyPasswordOutcomeCallable; - typedef std::function&)> VerifyPasswordAsyncHandler; typedef Outcome DeleteTempInstanceOutcome; typedef std::future DeleteTempInstanceOutcomeCallable; typedef std::function&)> DeleteTempInstanceAsyncHandler; + typedef Outcome VerifyPasswordOutcome; + typedef std::future VerifyPasswordOutcomeCallable; + typedef std::function&)> VerifyPasswordAsyncHandler; typedef Outcome DescribeActiveOperationTaskTypeOutcome; typedef std::future DescribeActiveOperationTaskTypeOutcomeCallable; typedef std::function&)> DescribeActiveOperationTaskTypeAsyncHandler; @@ -409,12 +423,12 @@ namespace AlibabaCloud typedef Outcome DescribeStrategyOutcome; typedef std::future DescribeStrategyOutcomeCallable; typedef std::function&)> DescribeStrategyAsyncHandler; - typedef Outcome TagResourcesOutcome; - typedef std::future TagResourcesOutcomeCallable; - typedef std::function&)> TagResourcesAsyncHandler; typedef Outcome GrantAccountPrivilegeOutcome; typedef std::future GrantAccountPrivilegeOutcomeCallable; typedef std::function&)> GrantAccountPrivilegeAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; typedef Outcome TransformToPrePaidOutcome; typedef std::future TransformToPrePaidOutcomeCallable; typedef std::function&)> TransformToPrePaidAsyncHandler; @@ -466,6 +480,9 @@ namespace AlibabaCloud typedef Outcome UnlinkReplicaInstanceOutcome; typedef std::future UnlinkReplicaInstanceOutcomeCallable; typedef std::function&)> UnlinkReplicaInstanceAsyncHandler; + typedef Outcome CreateShardingInstanceOutcome; + typedef std::future CreateShardingInstanceOutcomeCallable; + typedef std::function&)> CreateShardingInstanceAsyncHandler; typedef Outcome DescribeZonesOutcome; typedef std::future DescribeZonesOutcomeCallable; typedef std::function&)> DescribeZonesAsyncHandler; @@ -475,6 +492,9 @@ namespace AlibabaCloud typedef Outcome DescribeDBInstanceNetInfoOutcome; typedef std::future DescribeDBInstanceNetInfoOutcomeCallable; typedef std::function&)> DescribeDBInstanceNetInfoAsyncHandler; + typedef Outcome DescribeAvailableResourceOutcome; + typedef std::future DescribeAvailableResourceOutcomeCallable; + typedef std::function&)> DescribeAvailableResourceAsyncHandler; typedef Outcome DescribeSecurityIpsOutcome; typedef std::future DescribeSecurityIpsOutcomeCallable; typedef std::function&)> DescribeSecurityIpsAsyncHandler; @@ -484,12 +504,12 @@ namespace AlibabaCloud typedef Outcome ReleaseInstancePublicConnectionOutcome; typedef std::future ReleaseInstancePublicConnectionOutcomeCallable; typedef std::function&)> ReleaseInstancePublicConnectionAsyncHandler; - typedef Outcome ModifyInstanceSSLOutcome; - typedef std::future ModifyInstanceSSLOutcomeCallable; - typedef std::function&)> ModifyInstanceSSLAsyncHandler; typedef Outcome DescribeTempInstanceOutcome; typedef std::future DescribeTempInstanceOutcomeCallable; typedef std::function&)> DescribeTempInstanceAsyncHandler; + typedef Outcome ModifyInstanceSSLOutcome; + typedef std::future ModifyInstanceSSLOutcomeCallable; + typedef std::function&)> ModifyInstanceSSLAsyncHandler; typedef Outcome ModifyReplicaRelationOutcome; typedef std::future ModifyReplicaRelationOutcomeCallable; typedef std::function&)> ModifyReplicaRelationAsyncHandler; @@ -502,12 +522,12 @@ namespace AlibabaCloud typedef Outcome CreateBackupOutcome; typedef std::future CreateBackupOutcomeCallable; typedef std::function&)> CreateBackupAsyncHandler; - typedef Outcome ModifyIntranetAttributeOutcome; - typedef std::future ModifyIntranetAttributeOutcomeCallable; - typedef std::function&)> ModifyIntranetAttributeAsyncHandler; typedef Outcome ModifyInstanceSpecPreCheckOutcome; typedef std::future ModifyInstanceSpecPreCheckOutcomeCallable; typedef std::function&)> ModifyInstanceSpecPreCheckAsyncHandler; + typedef Outcome ModifyIntranetAttributeOutcome; + typedef std::future ModifyIntranetAttributeOutcomeCallable; + typedef std::function&)> ModifyIntranetAttributeAsyncHandler; typedef Outcome DescribeReplicaPerformanceOutcome; typedef std::future DescribeReplicaPerformanceOutcomeCallable; typedef std::function&)> DescribeReplicaPerformanceAsyncHandler; @@ -577,12 +597,12 @@ namespace AlibabaCloud typedef Outcome ModifyReplicaVerificationModeOutcome; typedef std::future ModifyReplicaVerificationModeOutcomeCallable; typedef std::function&)> ModifyReplicaVerificationModeAsyncHandler; - typedef Outcome GetSnapshotSettingsOutcome; - typedef std::future GetSnapshotSettingsOutcomeCallable; - typedef std::function&)> GetSnapshotSettingsAsyncHandler; typedef Outcome ModifyActiveOperationTaskOutcome; typedef std::future ModifyActiveOperationTaskOutcomeCallable; typedef std::function&)> ModifyActiveOperationTaskAsyncHandler; + typedef Outcome GetSnapshotSettingsOutcome; + typedef std::future GetSnapshotSettingsOutcomeCallable; + typedef std::function&)> GetSnapshotSettingsAsyncHandler; typedef Outcome DescribeBackupPolicyOutcome; typedef std::future DescribeBackupPolicyOutcomeCallable; typedef std::function&)> DescribeBackupPolicyAsyncHandler; @@ -603,12 +623,15 @@ namespace AlibabaCloud ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; - SwitchNetworkOutcome switchNetwork(const Model::SwitchNetworkRequest &request)const; - void switchNetworkAsync(const Model::SwitchNetworkRequest& request, const SwitchNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SwitchNetworkOutcomeCallable switchNetworkCallable(const Model::SwitchNetworkRequest& request) const; + DescribeShardingInstancesOutcome describeShardingInstances(const Model::DescribeShardingInstancesRequest &request)const; + void describeShardingInstancesAsync(const Model::DescribeShardingInstancesRequest& request, const DescribeShardingInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeShardingInstancesOutcomeCallable describeShardingInstancesCallable(const Model::DescribeShardingInstancesRequest& request) const; DescribeCertificationOutcome describeCertification(const Model::DescribeCertificationRequest &request)const; void describeCertificationAsync(const Model::DescribeCertificationRequest& request, const DescribeCertificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCertificationOutcomeCallable describeCertificationCallable(const Model::DescribeCertificationRequest& request) const; + SwitchNetworkOutcome switchNetwork(const Model::SwitchNetworkRequest &request)const; + void switchNetworkAsync(const Model::SwitchNetworkRequest& request, const SwitchNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchNetworkOutcomeCallable switchNetworkCallable(const Model::SwitchNetworkRequest& request) const; ReleaseReplicaOutcome releaseReplica(const Model::ReleaseReplicaRequest &request)const; void releaseReplicaAsync(const Model::ReleaseReplicaRequest& request, const ReleaseReplicaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseReplicaOutcomeCallable releaseReplicaCallable(const Model::ReleaseReplicaRequest& request) const; @@ -618,12 +641,15 @@ namespace AlibabaCloud ModifyReplicaRecoveryModeOutcome modifyReplicaRecoveryMode(const Model::ModifyReplicaRecoveryModeRequest &request)const; void modifyReplicaRecoveryModeAsync(const Model::ModifyReplicaRecoveryModeRequest& request, const ModifyReplicaRecoveryModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyReplicaRecoveryModeOutcomeCallable modifyReplicaRecoveryModeCallable(const Model::ModifyReplicaRecoveryModeRequest& request) const; - ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; - void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; DescribeReplicasOutcome describeReplicas(const Model::DescribeReplicasRequest &request)const; void describeReplicasAsync(const Model::DescribeReplicasRequest& request, const DescribeReplicasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeReplicasOutcomeCallable describeReplicasCallable(const Model::DescribeReplicasRequest& request) const; + ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; + void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; + DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; + void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; DescribeReplicaConflictInfoOutcome describeReplicaConflictInfo(const Model::DescribeReplicaConflictInfoRequest &request)const; void describeReplicaConflictInfoAsync(const Model::DescribeReplicaConflictInfoRequest& request, const DescribeReplicaConflictInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeReplicaConflictInfoOutcomeCallable describeReplicaConflictInfoCallable(const Model::DescribeReplicaConflictInfoRequest& request) const; @@ -651,15 +677,15 @@ namespace AlibabaCloud DescribeMonthlyServiceStatusOutcome describeMonthlyServiceStatus(const Model::DescribeMonthlyServiceStatusRequest &request)const; void describeMonthlyServiceStatusAsync(const Model::DescribeMonthlyServiceStatusRequest& request, const DescribeMonthlyServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMonthlyServiceStatusOutcomeCallable describeMonthlyServiceStatusCallable(const Model::DescribeMonthlyServiceStatusRequest& request) const; - ModifyReplicaDescriptionOutcome modifyReplicaDescription(const Model::ModifyReplicaDescriptionRequest &request)const; - void modifyReplicaDescriptionAsync(const Model::ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyReplicaDescriptionOutcomeCallable modifyReplicaDescriptionCallable(const Model::ModifyReplicaDescriptionRequest& request) const; - DescribeReplicaInitializeProgressOutcome describeReplicaInitializeProgress(const Model::DescribeReplicaInitializeProgressRequest &request)const; - void describeReplicaInitializeProgressAsync(const Model::DescribeReplicaInitializeProgressRequest& request, const DescribeReplicaInitializeProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeReplicaInitializeProgressOutcomeCallable describeReplicaInitializeProgressCallable(const Model::DescribeReplicaInitializeProgressRequest& request) const; ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + DescribeReplicaInitializeProgressOutcome describeReplicaInitializeProgress(const Model::DescribeReplicaInitializeProgressRequest &request)const; + void describeReplicaInitializeProgressAsync(const Model::DescribeReplicaInitializeProgressRequest& request, const DescribeReplicaInitializeProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicaInitializeProgressOutcomeCallable describeReplicaInitializeProgressCallable(const Model::DescribeReplicaInitializeProgressRequest& request) const; + ModifyReplicaDescriptionOutcome modifyReplicaDescription(const Model::ModifyReplicaDescriptionRequest &request)const; + void modifyReplicaDescriptionAsync(const Model::ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaDescriptionOutcomeCallable modifyReplicaDescriptionCallable(const Model::ModifyReplicaDescriptionRequest& request) const; DescribeInstancesOutcome describeInstances(const Model::DescribeInstancesRequest &request)const; void describeInstancesAsync(const Model::DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstancesOutcomeCallable describeInstancesCallable(const Model::DescribeInstancesRequest& request) const; @@ -693,12 +719,12 @@ namespace AlibabaCloud DeleteSnapshotOutcome deleteSnapshot(const Model::DeleteSnapshotRequest &request)const; void deleteSnapshotAsync(const Model::DeleteSnapshotRequest& request, const DeleteSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSnapshotOutcomeCallable deleteSnapshotCallable(const Model::DeleteSnapshotRequest& request) const; - VerifyPasswordOutcome verifyPassword(const Model::VerifyPasswordRequest &request)const; - void verifyPasswordAsync(const Model::VerifyPasswordRequest& request, const VerifyPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - VerifyPasswordOutcomeCallable verifyPasswordCallable(const Model::VerifyPasswordRequest& request) const; DeleteTempInstanceOutcome deleteTempInstance(const Model::DeleteTempInstanceRequest &request)const; void deleteTempInstanceAsync(const Model::DeleteTempInstanceRequest& request, const DeleteTempInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTempInstanceOutcomeCallable deleteTempInstanceCallable(const Model::DeleteTempInstanceRequest& request) const; + VerifyPasswordOutcome verifyPassword(const Model::VerifyPasswordRequest &request)const; + void verifyPasswordAsync(const Model::VerifyPasswordRequest& request, const VerifyPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VerifyPasswordOutcomeCallable verifyPasswordCallable(const Model::VerifyPasswordRequest& request) const; DescribeActiveOperationTaskTypeOutcome describeActiveOperationTaskType(const Model::DescribeActiveOperationTaskTypeRequest &request)const; void describeActiveOperationTaskTypeAsync(const Model::DescribeActiveOperationTaskTypeRequest& request, const DescribeActiveOperationTaskTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeActiveOperationTaskTypeOutcomeCallable describeActiveOperationTaskTypeCallable(const Model::DescribeActiveOperationTaskTypeRequest& request) const; @@ -747,12 +773,12 @@ namespace AlibabaCloud DescribeStrategyOutcome describeStrategy(const Model::DescribeStrategyRequest &request)const; void describeStrategyAsync(const Model::DescribeStrategyRequest& request, const DescribeStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStrategyOutcomeCallable describeStrategyCallable(const Model::DescribeStrategyRequest& request) const; - TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; - void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; GrantAccountPrivilegeOutcome grantAccountPrivilege(const Model::GrantAccountPrivilegeRequest &request)const; void grantAccountPrivilegeAsync(const Model::GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantAccountPrivilegeOutcomeCallable grantAccountPrivilegeCallable(const Model::GrantAccountPrivilegeRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; TransformToPrePaidOutcome transformToPrePaid(const Model::TransformToPrePaidRequest &request)const; void transformToPrePaidAsync(const Model::TransformToPrePaidRequest& request, const TransformToPrePaidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TransformToPrePaidOutcomeCallable transformToPrePaidCallable(const Model::TransformToPrePaidRequest& request) const; @@ -804,6 +830,9 @@ namespace AlibabaCloud UnlinkReplicaInstanceOutcome unlinkReplicaInstance(const Model::UnlinkReplicaInstanceRequest &request)const; void unlinkReplicaInstanceAsync(const Model::UnlinkReplicaInstanceRequest& request, const UnlinkReplicaInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnlinkReplicaInstanceOutcomeCallable unlinkReplicaInstanceCallable(const Model::UnlinkReplicaInstanceRequest& request) const; + CreateShardingInstanceOutcome createShardingInstance(const Model::CreateShardingInstanceRequest &request)const; + void createShardingInstanceAsync(const Model::CreateShardingInstanceRequest& request, const CreateShardingInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateShardingInstanceOutcomeCallable createShardingInstanceCallable(const Model::CreateShardingInstanceRequest& request) const; DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; @@ -813,6 +842,9 @@ namespace AlibabaCloud DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const; void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceNetInfoOutcomeCallable describeDBInstanceNetInfoCallable(const Model::DescribeDBInstanceNetInfoRequest& request) const; + DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const; + void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const; DescribeSecurityIpsOutcome describeSecurityIps(const Model::DescribeSecurityIpsRequest &request)const; void describeSecurityIpsAsync(const Model::DescribeSecurityIpsRequest& request, const DescribeSecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecurityIpsOutcomeCallable describeSecurityIpsCallable(const Model::DescribeSecurityIpsRequest& request) const; @@ -822,12 +854,12 @@ namespace AlibabaCloud ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const; void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const; - ModifyInstanceSSLOutcome modifyInstanceSSL(const Model::ModifyInstanceSSLRequest &request)const; - void modifyInstanceSSLAsync(const Model::ModifyInstanceSSLRequest& request, const ModifyInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyInstanceSSLOutcomeCallable modifyInstanceSSLCallable(const Model::ModifyInstanceSSLRequest& request) const; DescribeTempInstanceOutcome describeTempInstance(const Model::DescribeTempInstanceRequest &request)const; void describeTempInstanceAsync(const Model::DescribeTempInstanceRequest& request, const DescribeTempInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTempInstanceOutcomeCallable describeTempInstanceCallable(const Model::DescribeTempInstanceRequest& request) const; + ModifyInstanceSSLOutcome modifyInstanceSSL(const Model::ModifyInstanceSSLRequest &request)const; + void modifyInstanceSSLAsync(const Model::ModifyInstanceSSLRequest& request, const ModifyInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceSSLOutcomeCallable modifyInstanceSSLCallable(const Model::ModifyInstanceSSLRequest& request) const; ModifyReplicaRelationOutcome modifyReplicaRelation(const Model::ModifyReplicaRelationRequest &request)const; void modifyReplicaRelationAsync(const Model::ModifyReplicaRelationRequest& request, const ModifyReplicaRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyReplicaRelationOutcomeCallable modifyReplicaRelationCallable(const Model::ModifyReplicaRelationRequest& request) const; @@ -840,12 +872,12 @@ namespace AlibabaCloud CreateBackupOutcome createBackup(const Model::CreateBackupRequest &request)const; void createBackupAsync(const Model::CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBackupOutcomeCallable createBackupCallable(const Model::CreateBackupRequest& request) const; - ModifyIntranetAttributeOutcome modifyIntranetAttribute(const Model::ModifyIntranetAttributeRequest &request)const; - void modifyIntranetAttributeAsync(const Model::ModifyIntranetAttributeRequest& request, const ModifyIntranetAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyIntranetAttributeOutcomeCallable modifyIntranetAttributeCallable(const Model::ModifyIntranetAttributeRequest& request) const; ModifyInstanceSpecPreCheckOutcome modifyInstanceSpecPreCheck(const Model::ModifyInstanceSpecPreCheckRequest &request)const; void modifyInstanceSpecPreCheckAsync(const Model::ModifyInstanceSpecPreCheckRequest& request, const ModifyInstanceSpecPreCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceSpecPreCheckOutcomeCallable modifyInstanceSpecPreCheckCallable(const Model::ModifyInstanceSpecPreCheckRequest& request) const; + ModifyIntranetAttributeOutcome modifyIntranetAttribute(const Model::ModifyIntranetAttributeRequest &request)const; + void modifyIntranetAttributeAsync(const Model::ModifyIntranetAttributeRequest& request, const ModifyIntranetAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIntranetAttributeOutcomeCallable modifyIntranetAttributeCallable(const Model::ModifyIntranetAttributeRequest& request) const; DescribeReplicaPerformanceOutcome describeReplicaPerformance(const Model::DescribeReplicaPerformanceRequest &request)const; void describeReplicaPerformanceAsync(const Model::DescribeReplicaPerformanceRequest& request, const DescribeReplicaPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeReplicaPerformanceOutcomeCallable describeReplicaPerformanceCallable(const Model::DescribeReplicaPerformanceRequest& request) const; @@ -915,12 +947,12 @@ namespace AlibabaCloud ModifyReplicaVerificationModeOutcome modifyReplicaVerificationMode(const Model::ModifyReplicaVerificationModeRequest &request)const; void modifyReplicaVerificationModeAsync(const Model::ModifyReplicaVerificationModeRequest& request, const ModifyReplicaVerificationModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyReplicaVerificationModeOutcomeCallable modifyReplicaVerificationModeCallable(const Model::ModifyReplicaVerificationModeRequest& request) const; - GetSnapshotSettingsOutcome getSnapshotSettings(const Model::GetSnapshotSettingsRequest &request)const; - void getSnapshotSettingsAsync(const Model::GetSnapshotSettingsRequest& request, const GetSnapshotSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSnapshotSettingsOutcomeCallable getSnapshotSettingsCallable(const Model::GetSnapshotSettingsRequest& request) const; ModifyActiveOperationTaskOutcome modifyActiveOperationTask(const Model::ModifyActiveOperationTaskRequest &request)const; void modifyActiveOperationTaskAsync(const Model::ModifyActiveOperationTaskRequest& request, const ModifyActiveOperationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyActiveOperationTaskOutcomeCallable modifyActiveOperationTaskCallable(const Model::ModifyActiveOperationTaskRequest& request) const; + GetSnapshotSettingsOutcome getSnapshotSettings(const Model::GetSnapshotSettingsRequest &request)const; + void getSnapshotSettingsAsync(const Model::GetSnapshotSettingsRequest& request, const GetSnapshotSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSnapshotSettingsOutcomeCallable getSnapshotSettingsCallable(const Model::GetSnapshotSettingsRequest& request) const; DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const; diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/CreateInstanceRequest.h b/r-kvstore/include/alibabacloud/r-kvstore/model/CreateInstanceRequest.h index 858749024..f0d7de5a9 100644 --- a/r-kvstore/include/alibabacloud/r-kvstore/model/CreateInstanceRequest.h +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/CreateInstanceRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setNetworkType(const std::string& networkType); std::string getEngineVersion()const; void setEngineVersion(const std::string& engineVersion); + std::string getAutoUseCoupon()const; + void setAutoUseCoupon(const std::string& autoUseCoupon); std::string getInstanceClass()const; void setInstanceClass(const std::string& instanceClass); std::string getAccessKeyId()const; @@ -61,6 +63,8 @@ namespace AlibabaCloud void setInstanceType(const std::string& instanceType); std::string getBusinessInfo()const; void setBusinessInfo(const std::string& businessInfo); + std::string getAutoRenewPeriod()const; + void setAutoRenewPeriod(const std::string& autoRenewPeriod); std::string getPeriod()const; void setPeriod(const std::string& period); std::string getResourceOwnerAccount()const; @@ -81,6 +85,8 @@ namespace AlibabaCloud void setPrivateIpAddress(const std::string& privateIpAddress); std::string getInstanceName()const; void setInstanceName(const std::string& instanceName); + std::string getAutoRenew()const; + void setAutoRenew(const std::string& autoRenew); std::string getVpcId()const; void setVpcId(const std::string& vpcId); std::string getZoneId()const; @@ -96,6 +102,7 @@ namespace AlibabaCloud std::string couponNo_; std::string networkType_; std::string engineVersion_; + std::string autoUseCoupon_; std::string instanceClass_; std::string accessKeyId_; long capacity_; @@ -104,6 +111,7 @@ namespace AlibabaCloud std::string regionId_; std::string instanceType_; std::string businessInfo_; + std::string autoRenewPeriod_; std::string period_; std::string resourceOwnerAccount_; std::string srcDBInstanceId_; @@ -114,6 +122,7 @@ namespace AlibabaCloud std::string vSwitchId_; std::string privateIpAddress_; std::string instanceName_; + std::string autoRenew_; std::string vpcId_; std::string zoneId_; std::string chargeType_; diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceRequest.h b/r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceRequest.h new file mode 100644 index 000000000..8b8b642c6 --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceRequest.h @@ -0,0 +1,156 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_CREATESHARDINGINSTANCEREQUEST_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_CREATESHARDINGINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT CreateShardingInstanceRequest : public RpcServiceRequest + { + + public: + CreateShardingInstanceRequest(); + ~CreateShardingInstanceRequest(); + + int getShardStorageQuantity()const; + void setShardStorageQuantity(int shardStorageQuantity); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNodeType()const; + void setNodeType(const std::string& nodeType); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getInstanceClass()const; + void setInstanceClass(const std::string& instanceClass); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getCapacity()const; + void setCapacity(long capacity); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getShardReplicaClass()const; + void setShardReplicaClass(const std::string& shardReplicaClass); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getIncrementalBackupMode()const; + void setIncrementalBackupMode(const std::string& incrementalBackupMode); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getSrcDBInstanceId()const; + void setSrcDBInstanceId(const std::string& srcDBInstanceId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getToken()const; + void setToken(const std::string& token); + int getShardQuantity()const; + void setShardQuantity(int shardQuantity); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getSecurityIPList()const; + void setSecurityIPList(const std::string& securityIPList); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + int getShardReplicaQuantity()const; + void setShardReplicaQuantity(int shardReplicaQuantity); + std::string getArchitectureType()const; + void setArchitectureType(const std::string& architectureType); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getRedisManagerClass()const; + void setRedisManagerClass(const std::string& redisManagerClass); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + int getProxyQuantity()const; + void setProxyQuantity(int proxyQuantity); + std::string getConfig()const; + void setConfig(const std::string& config); + std::string getProxyMode()const; + void setProxyMode(const std::string& proxyMode); + + private: + int shardStorageQuantity_; + long resourceOwnerId_; + std::string nodeType_; + std::string couponNo_; + std::string networkType_; + std::string engineVersion_; + std::string instanceClass_; + std::string accessKeyId_; + long capacity_; + std::string password_; + std::string shardReplicaClass_; + std::string securityToken_; + std::string regionId_; + std::string incrementalBackupMode_; + std::string instanceType_; + std::string businessInfo_; + std::string period_; + std::string resourceOwnerAccount_; + std::string srcDBInstanceId_; + std::string ownerAccount_; + std::string backupId_; + long ownerId_; + std::string token_; + int shardQuantity_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string securityIPList_; + std::string instanceName_; + int shardReplicaQuantity_; + std::string architectureType_; + std::string vpcId_; + std::string redisManagerClass_; + std::string zoneId_; + std::string chargeType_; + int proxyQuantity_; + std::string config_; + std::string proxyMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_CREATESHARDINGINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceResult.h b/r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceResult.h new file mode 100644 index 000000000..48daf0c24 --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/CreateShardingInstanceResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_CREATESHARDINGINSTANCERESULT_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_CREATESHARDINGINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT CreateShardingInstanceResult : public ServiceResult + { + public: + struct Shard + { + std::string shardId; + std::string replicaQuantity; + std::string storageQuantity; + std::string replicaClass; + }; + + + CreateShardingInstanceResult(); + explicit CreateShardingInstanceResult(const std::string &payload); + ~CreateShardingInstanceResult(); + std::string getInstanceId()const; + std::vector getShardList()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + std::vector shardList_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_CREATESHARDINGINSTANCERESULT_H_ \ No newline at end of file diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceRequest.h b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceRequest.h new file mode 100644 index 000000000..4b1e5af71 --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceRequest.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_R_KVSTORE_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest + { + + public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getOrderType()const; + void setOrderType(const std::string& orderType); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string zoneId_; + long ownerId_; + std::string instanceChargeType_; + std::string accessKeyId_; + std::string orderType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ \ No newline at end of file diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceResult.h b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceResult.h new file mode 100644 index 000000000..3390f975c --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeAvailableResourceResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeAvailableResourceResult : public ServiceResult + { + public: + struct AvailableZone + { + struct SupportedEngine + { + struct SupportedEngineVersion + { + struct SupportedArchitectureType + { + struct SupportedPerformanceType + { + struct SupportedStorageType + { + struct SupportedNodeType + { + struct SupportedPackageType + { + struct AvailableResource + { + std::string instanceClass; + }; + std::string packageType; + std::vector availableResources; + }; + std::vector supportedPackageTypes; + std::string nodeType; + }; + std::vector supportedNodeTypes; + std::string storageType; + }; + std::string performanceType; + std::vector supportedStorageTypes; + }; + std::string architecture; + std::vector supportedPerformanceTypes; + }; + std::vector supportedArchitectureTypes; + std::string version; + }; + std::vector supportedEngineVersions; + std::string engine; + }; + std::string status; + std::string networkTypes; + std::string zoneId; + std::vector supportedEngines; + std::string regionId; + }; + + + DescribeAvailableResourceResult(); + explicit DescribeAvailableResourceResult(const std::string &payload); + ~DescribeAvailableResourceResult(); + std::vector getAvailableZones()const; + + protected: + void parse(const std::string &payload); + private: + std::vector availableZones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ \ No newline at end of file diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesRequest.h b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesRequest.h new file mode 100644 index 000000000..cbef0ee07 --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesRequest.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_R_KVSTORE_MODEL_DESCRIBESHARDINGINSTANCESREQUEST_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBESHARDINGINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeShardingInstancesRequest : public RpcServiceRequest + { + + public: + DescribeShardingInstancesRequest(); + ~DescribeShardingInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string instanceIds_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBESHARDINGINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesResult.h b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesResult.h new file mode 100644 index 000000000..f94ced68a --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeShardingInstancesResult.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_R_KVSTORE_MODEL_DESCRIBESHARDINGINSTANCESRESULT_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBESHARDINGINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeShardingInstancesResult : public ServiceResult + { + public: + struct Instance + { + struct Shard + { + std::string shardStorageQuantity; + std::string shardReplicaClass; + std::string nodeId; + }; + std::string instanceId; + std::vector shardList; + }; + + + DescribeShardingInstancesResult(); + explicit DescribeShardingInstancesResult(const std::string &payload); + ~DescribeShardingInstancesResult(); + std::vector getInstances()const; + int getTotalCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + int totalCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBESHARDINGINSTANCESRESULT_H_ \ No newline at end of file diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeSlowLogRecordsRequest.h b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeSlowLogRecordsRequest.h index 55c0a7ef3..4d42de0b1 100644 --- a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeSlowLogRecordsRequest.h +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeSlowLogRecordsRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getSlowLogRecordType()const; + void setSlowLogRecordType(const std::string& slowLogRecordType); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getDBName()const; @@ -76,6 +78,7 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; + std::string slowLogRecordType_; std::string instanceId_; std::string dBName_; std::string securityToken_; diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsRequest.h b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsRequest.h new file mode 100644 index 000000000..943a8bd88 --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsRequest.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_R_KVSTORE_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeTagsRequest : public RpcServiceRequest + { + + public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string nextToken_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file diff --git a/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsResult.h b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsResult.h new file mode 100644 index 000000000..9ce51142c --- /dev/null +++ b/r-kvstore/include/alibabacloud/r-kvstore/model/DescribeTagsResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace R_kvstore + { + namespace Model + { + class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeTagsResult : public ServiceResult + { + public: + struct Tag + { + std::string tagKey; + std::vector tagValues; + }; + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); + std::string getNextToken()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/r-kvstore/src/R-kvstoreClient.cc b/r-kvstore/src/R-kvstoreClient.cc index 9d651ab68..c8eab2827 100644 --- a/r-kvstore/src/R-kvstoreClient.cc +++ b/r-kvstore/src/R-kvstoreClient.cc @@ -31,21 +31,21 @@ R_kvstoreClient::R_kvstoreClient(const Credentials &credentials, const ClientCon RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "redisa"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "r-kvstore"); } R_kvstoreClient::R_kvstoreClient(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, "redisa"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "r-kvstore"); } R_kvstoreClient::R_kvstoreClient(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, "redisa"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "r-kvstore"); } R_kvstoreClient::~R_kvstoreClient() @@ -195,36 +195,36 @@ R_kvstoreClient::ModifyAccountDescriptionOutcomeCallable R_kvstoreClient::modify return task->get_future(); } -R_kvstoreClient::SwitchNetworkOutcome R_kvstoreClient::switchNetwork(const SwitchNetworkRequest &request) const +R_kvstoreClient::DescribeShardingInstancesOutcome R_kvstoreClient::describeShardingInstances(const DescribeShardingInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SwitchNetworkOutcome(endpointOutcome.error()); + return DescribeShardingInstancesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SwitchNetworkOutcome(SwitchNetworkResult(outcome.result())); + return DescribeShardingInstancesOutcome(DescribeShardingInstancesResult(outcome.result())); else - return SwitchNetworkOutcome(outcome.error()); + return DescribeShardingInstancesOutcome(outcome.error()); } -void R_kvstoreClient::switchNetworkAsync(const SwitchNetworkRequest& request, const SwitchNetworkAsyncHandler& handler, const std::shared_ptr& context) const +void R_kvstoreClient::describeShardingInstancesAsync(const DescribeShardingInstancesRequest& request, const DescribeShardingInstancesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, switchNetwork(request), context); + handler(this, request, describeShardingInstances(request), context); }; asyncExecute(new Runnable(fn)); } -R_kvstoreClient::SwitchNetworkOutcomeCallable R_kvstoreClient::switchNetworkCallable(const SwitchNetworkRequest &request) const +R_kvstoreClient::DescribeShardingInstancesOutcomeCallable R_kvstoreClient::describeShardingInstancesCallable(const DescribeShardingInstancesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->switchNetwork(request); + return this->describeShardingInstances(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -267,6 +267,42 @@ R_kvstoreClient::DescribeCertificationOutcomeCallable R_kvstoreClient::describeC return task->get_future(); } +R_kvstoreClient::SwitchNetworkOutcome R_kvstoreClient::switchNetwork(const SwitchNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchNetworkOutcome(SwitchNetworkResult(outcome.result())); + else + return SwitchNetworkOutcome(outcome.error()); +} + +void R_kvstoreClient::switchNetworkAsync(const SwitchNetworkRequest& request, const SwitchNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::SwitchNetworkOutcomeCallable R_kvstoreClient::switchNetworkCallable(const SwitchNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::ReleaseReplicaOutcome R_kvstoreClient::releaseReplica(const ReleaseReplicaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +411,42 @@ R_kvstoreClient::ModifyReplicaRecoveryModeOutcomeCallable R_kvstoreClient::modif return task->get_future(); } +R_kvstoreClient::DescribeReplicasOutcome R_kvstoreClient::describeReplicas(const DescribeReplicasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicasOutcome(DescribeReplicasResult(outcome.result())); + else + return DescribeReplicasOutcome(outcome.error()); +} + +void R_kvstoreClient::describeReplicasAsync(const DescribeReplicasRequest& request, const DescribeReplicasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::DescribeReplicasOutcomeCallable R_kvstoreClient::describeReplicasCallable(const DescribeReplicasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::ModifyDBInstanceConnectionStringOutcome R_kvstoreClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,36 +483,36 @@ R_kvstoreClient::ModifyDBInstanceConnectionStringOutcomeCallable R_kvstoreClient return task->get_future(); } -R_kvstoreClient::DescribeReplicasOutcome R_kvstoreClient::describeReplicas(const DescribeReplicasRequest &request) const +R_kvstoreClient::DescribeTagsOutcome R_kvstoreClient::describeTags(const DescribeTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeReplicasOutcome(endpointOutcome.error()); + return DescribeTagsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeReplicasOutcome(DescribeReplicasResult(outcome.result())); + return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); else - return DescribeReplicasOutcome(outcome.error()); + return DescribeTagsOutcome(outcome.error()); } -void R_kvstoreClient::describeReplicasAsync(const DescribeReplicasRequest& request, const DescribeReplicasAsyncHandler& handler, const std::shared_ptr& context) const +void R_kvstoreClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeReplicas(request), context); + handler(this, request, describeTags(request), context); }; asyncExecute(new Runnable(fn)); } -R_kvstoreClient::DescribeReplicasOutcomeCallable R_kvstoreClient::describeReplicasCallable(const DescribeReplicasRequest &request) const +R_kvstoreClient::DescribeTagsOutcomeCallable R_kvstoreClient::describeTagsCallable(const DescribeTagsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeReplicas(request); + return this->describeTags(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -771,36 +843,36 @@ R_kvstoreClient::DescribeMonthlyServiceStatusOutcomeCallable R_kvstoreClient::de return task->get_future(); } -R_kvstoreClient::ModifyReplicaDescriptionOutcome R_kvstoreClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const +R_kvstoreClient::ModifyBackupPolicyOutcome R_kvstoreClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyReplicaDescriptionOutcome(endpointOutcome.error()); + return ModifyBackupPolicyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyReplicaDescriptionOutcome(ModifyReplicaDescriptionResult(outcome.result())); + return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); else - return ModifyReplicaDescriptionOutcome(outcome.error()); + return ModifyBackupPolicyOutcome(outcome.error()); } -void R_kvstoreClient::modifyReplicaDescriptionAsync(const ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +void R_kvstoreClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyReplicaDescription(request), context); + handler(this, request, modifyBackupPolicy(request), context); }; asyncExecute(new Runnable(fn)); } -R_kvstoreClient::ModifyReplicaDescriptionOutcomeCallable R_kvstoreClient::modifyReplicaDescriptionCallable(const ModifyReplicaDescriptionRequest &request) const +R_kvstoreClient::ModifyBackupPolicyOutcomeCallable R_kvstoreClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyReplicaDescription(request); + return this->modifyBackupPolicy(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -843,36 +915,36 @@ R_kvstoreClient::DescribeReplicaInitializeProgressOutcomeCallable R_kvstoreClien return task->get_future(); } -R_kvstoreClient::ModifyBackupPolicyOutcome R_kvstoreClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const +R_kvstoreClient::ModifyReplicaDescriptionOutcome R_kvstoreClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyBackupPolicyOutcome(endpointOutcome.error()); + return ModifyReplicaDescriptionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); + return ModifyReplicaDescriptionOutcome(ModifyReplicaDescriptionResult(outcome.result())); else - return ModifyBackupPolicyOutcome(outcome.error()); + return ModifyReplicaDescriptionOutcome(outcome.error()); } -void R_kvstoreClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void R_kvstoreClient::modifyReplicaDescriptionAsync(const ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyBackupPolicy(request), context); + handler(this, request, modifyReplicaDescription(request), context); }; asyncExecute(new Runnable(fn)); } -R_kvstoreClient::ModifyBackupPolicyOutcomeCallable R_kvstoreClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const +R_kvstoreClient::ModifyReplicaDescriptionOutcomeCallable R_kvstoreClient::modifyReplicaDescriptionCallable(const ModifyReplicaDescriptionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyBackupPolicy(request); + return this->modifyReplicaDescription(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1275,42 +1347,6 @@ R_kvstoreClient::DeleteSnapshotOutcomeCallable R_kvstoreClient::deleteSnapshotCa return task->get_future(); } -R_kvstoreClient::VerifyPasswordOutcome R_kvstoreClient::verifyPassword(const VerifyPasswordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return VerifyPasswordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return VerifyPasswordOutcome(VerifyPasswordResult(outcome.result())); - else - return VerifyPasswordOutcome(outcome.error()); -} - -void R_kvstoreClient::verifyPasswordAsync(const VerifyPasswordRequest& request, const VerifyPasswordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, verifyPassword(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -R_kvstoreClient::VerifyPasswordOutcomeCallable R_kvstoreClient::verifyPasswordCallable(const VerifyPasswordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->verifyPassword(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - R_kvstoreClient::DeleteTempInstanceOutcome R_kvstoreClient::deleteTempInstance(const DeleteTempInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1383,42 @@ R_kvstoreClient::DeleteTempInstanceOutcomeCallable R_kvstoreClient::deleteTempIn return task->get_future(); } +R_kvstoreClient::VerifyPasswordOutcome R_kvstoreClient::verifyPassword(const VerifyPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VerifyPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VerifyPasswordOutcome(VerifyPasswordResult(outcome.result())); + else + return VerifyPasswordOutcome(outcome.error()); +} + +void R_kvstoreClient::verifyPasswordAsync(const VerifyPasswordRequest& request, const VerifyPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, verifyPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::VerifyPasswordOutcomeCallable R_kvstoreClient::verifyPasswordCallable(const VerifyPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->verifyPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::DescribeActiveOperationTaskTypeOutcome R_kvstoreClient::describeActiveOperationTaskType(const DescribeActiveOperationTaskTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,42 +1995,6 @@ R_kvstoreClient::DescribeStrategyOutcomeCallable R_kvstoreClient::describeStrate return task->get_future(); } -R_kvstoreClient::TagResourcesOutcome R_kvstoreClient::tagResources(const TagResourcesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TagResourcesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TagResourcesOutcome(TagResourcesResult(outcome.result())); - else - return TagResourcesOutcome(outcome.error()); -} - -void R_kvstoreClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, tagResources(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -R_kvstoreClient::TagResourcesOutcomeCallable R_kvstoreClient::tagResourcesCallable(const TagResourcesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->tagResources(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - R_kvstoreClient::GrantAccountPrivilegeOutcome R_kvstoreClient::grantAccountPrivilege(const GrantAccountPrivilegeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2031,42 @@ R_kvstoreClient::GrantAccountPrivilegeOutcomeCallable R_kvstoreClient::grantAcco return task->get_future(); } +R_kvstoreClient::TagResourcesOutcome R_kvstoreClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void R_kvstoreClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::TagResourcesOutcomeCallable R_kvstoreClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::TransformToPrePaidOutcome R_kvstoreClient::transformToPrePaid(const TransformToPrePaidRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,6 +2679,42 @@ R_kvstoreClient::UnlinkReplicaInstanceOutcomeCallable R_kvstoreClient::unlinkRep return task->get_future(); } +R_kvstoreClient::CreateShardingInstanceOutcome R_kvstoreClient::createShardingInstance(const CreateShardingInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateShardingInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateShardingInstanceOutcome(CreateShardingInstanceResult(outcome.result())); + else + return CreateShardingInstanceOutcome(outcome.error()); +} + +void R_kvstoreClient::createShardingInstanceAsync(const CreateShardingInstanceRequest& request, const CreateShardingInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createShardingInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::CreateShardingInstanceOutcomeCallable R_kvstoreClient::createShardingInstanceCallable(const CreateShardingInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createShardingInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::DescribeZonesOutcome R_kvstoreClient::describeZones(const DescribeZonesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2715,6 +2823,42 @@ R_kvstoreClient::DescribeDBInstanceNetInfoOutcomeCallable R_kvstoreClient::descr return task->get_future(); } +R_kvstoreClient::DescribeAvailableResourceOutcome R_kvstoreClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result())); + else + return DescribeAvailableResourceOutcome(outcome.error()); +} + +void R_kvstoreClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::DescribeAvailableResourceOutcomeCallable R_kvstoreClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::DescribeSecurityIpsOutcome R_kvstoreClient::describeSecurityIps(const DescribeSecurityIpsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2823,42 +2967,6 @@ R_kvstoreClient::ReleaseInstancePublicConnectionOutcomeCallable R_kvstoreClient: return task->get_future(); } -R_kvstoreClient::ModifyInstanceSSLOutcome R_kvstoreClient::modifyInstanceSSL(const ModifyInstanceSSLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyInstanceSSLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyInstanceSSLOutcome(ModifyInstanceSSLResult(outcome.result())); - else - return ModifyInstanceSSLOutcome(outcome.error()); -} - -void R_kvstoreClient::modifyInstanceSSLAsync(const ModifyInstanceSSLRequest& request, const ModifyInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyInstanceSSL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -R_kvstoreClient::ModifyInstanceSSLOutcomeCallable R_kvstoreClient::modifyInstanceSSLCallable(const ModifyInstanceSSLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyInstanceSSL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - R_kvstoreClient::DescribeTempInstanceOutcome R_kvstoreClient::describeTempInstance(const DescribeTempInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2895,6 +3003,42 @@ R_kvstoreClient::DescribeTempInstanceOutcomeCallable R_kvstoreClient::describeTe return task->get_future(); } +R_kvstoreClient::ModifyInstanceSSLOutcome R_kvstoreClient::modifyInstanceSSL(const ModifyInstanceSSLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceSSLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceSSLOutcome(ModifyInstanceSSLResult(outcome.result())); + else + return ModifyInstanceSSLOutcome(outcome.error()); +} + +void R_kvstoreClient::modifyInstanceSSLAsync(const ModifyInstanceSSLRequest& request, const ModifyInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceSSL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::ModifyInstanceSSLOutcomeCallable R_kvstoreClient::modifyInstanceSSLCallable(const ModifyInstanceSSLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceSSL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::ModifyReplicaRelationOutcome R_kvstoreClient::modifyReplicaRelation(const ModifyReplicaRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3039,42 +3183,6 @@ R_kvstoreClient::CreateBackupOutcomeCallable R_kvstoreClient::createBackupCallab return task->get_future(); } -R_kvstoreClient::ModifyIntranetAttributeOutcome R_kvstoreClient::modifyIntranetAttribute(const ModifyIntranetAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyIntranetAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyIntranetAttributeOutcome(ModifyIntranetAttributeResult(outcome.result())); - else - return ModifyIntranetAttributeOutcome(outcome.error()); -} - -void R_kvstoreClient::modifyIntranetAttributeAsync(const ModifyIntranetAttributeRequest& request, const ModifyIntranetAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyIntranetAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -R_kvstoreClient::ModifyIntranetAttributeOutcomeCallable R_kvstoreClient::modifyIntranetAttributeCallable(const ModifyIntranetAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyIntranetAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - R_kvstoreClient::ModifyInstanceSpecPreCheckOutcome R_kvstoreClient::modifyInstanceSpecPreCheck(const ModifyInstanceSpecPreCheckRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3111,6 +3219,42 @@ R_kvstoreClient::ModifyInstanceSpecPreCheckOutcomeCallable R_kvstoreClient::modi return task->get_future(); } +R_kvstoreClient::ModifyIntranetAttributeOutcome R_kvstoreClient::modifyIntranetAttribute(const ModifyIntranetAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIntranetAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIntranetAttributeOutcome(ModifyIntranetAttributeResult(outcome.result())); + else + return ModifyIntranetAttributeOutcome(outcome.error()); +} + +void R_kvstoreClient::modifyIntranetAttributeAsync(const ModifyIntranetAttributeRequest& request, const ModifyIntranetAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIntranetAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::ModifyIntranetAttributeOutcomeCallable R_kvstoreClient::modifyIntranetAttributeCallable(const ModifyIntranetAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIntranetAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::DescribeReplicaPerformanceOutcome R_kvstoreClient::describeReplicaPerformance(const DescribeReplicaPerformanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3939,42 +4083,6 @@ R_kvstoreClient::ModifyReplicaVerificationModeOutcomeCallable R_kvstoreClient::m return task->get_future(); } -R_kvstoreClient::GetSnapshotSettingsOutcome R_kvstoreClient::getSnapshotSettings(const GetSnapshotSettingsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSnapshotSettingsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSnapshotSettingsOutcome(GetSnapshotSettingsResult(outcome.result())); - else - return GetSnapshotSettingsOutcome(outcome.error()); -} - -void R_kvstoreClient::getSnapshotSettingsAsync(const GetSnapshotSettingsRequest& request, const GetSnapshotSettingsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSnapshotSettings(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -R_kvstoreClient::GetSnapshotSettingsOutcomeCallable R_kvstoreClient::getSnapshotSettingsCallable(const GetSnapshotSettingsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSnapshotSettings(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - R_kvstoreClient::ModifyActiveOperationTaskOutcome R_kvstoreClient::modifyActiveOperationTask(const ModifyActiveOperationTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,6 +4119,42 @@ R_kvstoreClient::ModifyActiveOperationTaskOutcomeCallable R_kvstoreClient::modif return task->get_future(); } +R_kvstoreClient::GetSnapshotSettingsOutcome R_kvstoreClient::getSnapshotSettings(const GetSnapshotSettingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSnapshotSettingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSnapshotSettingsOutcome(GetSnapshotSettingsResult(outcome.result())); + else + return GetSnapshotSettingsOutcome(outcome.error()); +} + +void R_kvstoreClient::getSnapshotSettingsAsync(const GetSnapshotSettingsRequest& request, const GetSnapshotSettingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSnapshotSettings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +R_kvstoreClient::GetSnapshotSettingsOutcomeCallable R_kvstoreClient::getSnapshotSettingsCallable(const GetSnapshotSettingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSnapshotSettings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + R_kvstoreClient::DescribeBackupPolicyOutcome R_kvstoreClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/r-kvstore/src/model/AllocateInstancePublicConnectionResult.cc b/r-kvstore/src/model/AllocateInstancePublicConnectionResult.cc index e5bd6c628..5ea7d310c 100644 --- a/r-kvstore/src/model/AllocateInstancePublicConnectionResult.cc +++ b/r-kvstore/src/model/AllocateInstancePublicConnectionResult.cc @@ -35,10 +35,13 @@ AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult( void AllocateInstancePublicConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/CreateAccountResult.cc b/r-kvstore/src/model/CreateAccountResult.cc index 8b94bde2b..aa1ce727c 100644 --- a/r-kvstore/src/model/CreateAccountResult.cc +++ b/r-kvstore/src/model/CreateAccountResult.cc @@ -35,10 +35,13 @@ CreateAccountResult::~CreateAccountResult() void CreateAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/CreateBackupResult.cc b/r-kvstore/src/model/CreateBackupResult.cc index 871f93540..7615a9688 100644 --- a/r-kvstore/src/model/CreateBackupResult.cc +++ b/r-kvstore/src/model/CreateBackupResult.cc @@ -35,10 +35,13 @@ CreateBackupResult::~CreateBackupResult() void CreateBackupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BackupJobID"].isNull()) backupJobID_ = value["BackupJobID"].asString(); diff --git a/r-kvstore/src/model/CreateCacheAnalysisTaskResult.cc b/r-kvstore/src/model/CreateCacheAnalysisTaskResult.cc index 853e9e347..c0049d719 100644 --- a/r-kvstore/src/model/CreateCacheAnalysisTaskResult.cc +++ b/r-kvstore/src/model/CreateCacheAnalysisTaskResult.cc @@ -35,10 +35,13 @@ CreateCacheAnalysisTaskResult::~CreateCacheAnalysisTaskResult() void CreateCacheAnalysisTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/CreateInstanceRequest.cc b/r-kvstore/src/model/CreateInstanceRequest.cc index a618b5d9e..3986908a1 100644 --- a/r-kvstore/src/model/CreateInstanceRequest.cc +++ b/r-kvstore/src/model/CreateInstanceRequest.cc @@ -80,6 +80,17 @@ void CreateInstanceRequest::setEngineVersion(const std::string& engineVersion) setCoreParameter("EngineVersion", engineVersion); } +std::string CreateInstanceRequest::getAutoUseCoupon()const +{ + return autoUseCoupon_; +} + +void CreateInstanceRequest::setAutoUseCoupon(const std::string& autoUseCoupon) +{ + autoUseCoupon_ = autoUseCoupon; + setCoreParameter("AutoUseCoupon", autoUseCoupon); +} + std::string CreateInstanceRequest::getInstanceClass()const { return instanceClass_; @@ -168,6 +179,17 @@ void CreateInstanceRequest::setBusinessInfo(const std::string& businessInfo) setCoreParameter("BusinessInfo", businessInfo); } +std::string CreateInstanceRequest::getAutoRenewPeriod()const +{ + return autoRenewPeriod_; +} + +void CreateInstanceRequest::setAutoRenewPeriod(const std::string& autoRenewPeriod) +{ + autoRenewPeriod_ = autoRenewPeriod; + setCoreParameter("AutoRenewPeriod", autoRenewPeriod); +} + std::string CreateInstanceRequest::getPeriod()const { return period_; @@ -278,6 +300,17 @@ void CreateInstanceRequest::setInstanceName(const std::string& instanceName) setCoreParameter("InstanceName", instanceName); } +std::string CreateInstanceRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void CreateInstanceRequest::setAutoRenew(const std::string& autoRenew) +{ + autoRenew_ = autoRenew; + setCoreParameter("AutoRenew", autoRenew); +} + std::string CreateInstanceRequest::getVpcId()const { return vpcId_; diff --git a/r-kvstore/src/model/CreateInstanceResult.cc b/r-kvstore/src/model/CreateInstanceResult.cc index ada14e070..032ce6bd7 100644 --- a/r-kvstore/src/model/CreateInstanceResult.cc +++ b/r-kvstore/src/model/CreateInstanceResult.cc @@ -35,10 +35,13 @@ CreateInstanceResult::~CreateInstanceResult() void CreateInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/CreateShardingInstanceRequest.cc b/r-kvstore/src/model/CreateShardingInstanceRequest.cc new file mode 100644 index 000000000..4cff46920 --- /dev/null +++ b/r-kvstore/src/model/CreateShardingInstanceRequest.cc @@ -0,0 +1,434 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::R_kvstore::Model::CreateShardingInstanceRequest; + +CreateShardingInstanceRequest::CreateShardingInstanceRequest() : + RpcServiceRequest("r-kvstore", "2015-01-01", "CreateShardingInstance") +{} + +CreateShardingInstanceRequest::~CreateShardingInstanceRequest() +{} + +int CreateShardingInstanceRequest::getShardStorageQuantity()const +{ + return shardStorageQuantity_; +} + +void CreateShardingInstanceRequest::setShardStorageQuantity(int shardStorageQuantity) +{ + shardStorageQuantity_ = shardStorageQuantity; + setCoreParameter("ShardStorageQuantity", std::to_string(shardStorageQuantity)); +} + +long CreateShardingInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateShardingInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateShardingInstanceRequest::getNodeType()const +{ + return nodeType_; +} + +void CreateShardingInstanceRequest::setNodeType(const std::string& nodeType) +{ + nodeType_ = nodeType; + setCoreParameter("NodeType", nodeType); +} + +std::string CreateShardingInstanceRequest::getCouponNo()const +{ + return couponNo_; +} + +void CreateShardingInstanceRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +std::string CreateShardingInstanceRequest::getNetworkType()const +{ + return networkType_; +} + +void CreateShardingInstanceRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setCoreParameter("NetworkType", networkType); +} + +std::string CreateShardingInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateShardingInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +std::string CreateShardingInstanceRequest::getInstanceClass()const +{ + return instanceClass_; +} + +void CreateShardingInstanceRequest::setInstanceClass(const std::string& instanceClass) +{ + instanceClass_ = instanceClass; + setCoreParameter("InstanceClass", instanceClass); +} + +std::string CreateShardingInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateShardingInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +long CreateShardingInstanceRequest::getCapacity()const +{ + return capacity_; +} + +void CreateShardingInstanceRequest::setCapacity(long capacity) +{ + capacity_ = capacity; + setCoreParameter("Capacity", std::to_string(capacity)); +} + +std::string CreateShardingInstanceRequest::getPassword()const +{ + return password_; +} + +void CreateShardingInstanceRequest::setPassword(const std::string& password) +{ + password_ = password; + setCoreParameter("Password", password); +} + +std::string CreateShardingInstanceRequest::getShardReplicaClass()const +{ + return shardReplicaClass_; +} + +void CreateShardingInstanceRequest::setShardReplicaClass(const std::string& shardReplicaClass) +{ + shardReplicaClass_ = shardReplicaClass; + setCoreParameter("ShardReplicaClass", shardReplicaClass); +} + +std::string CreateShardingInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateShardingInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateShardingInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateShardingInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateShardingInstanceRequest::getIncrementalBackupMode()const +{ + return incrementalBackupMode_; +} + +void CreateShardingInstanceRequest::setIncrementalBackupMode(const std::string& incrementalBackupMode) +{ + incrementalBackupMode_ = incrementalBackupMode; + setCoreParameter("IncrementalBackupMode", incrementalBackupMode); +} + +std::string CreateShardingInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void CreateShardingInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setCoreParameter("InstanceType", instanceType); +} + +std::string CreateShardingInstanceRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void CreateShardingInstanceRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setCoreParameter("BusinessInfo", businessInfo); +} + +std::string CreateShardingInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateShardingInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string CreateShardingInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateShardingInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateShardingInstanceRequest::getSrcDBInstanceId()const +{ + return srcDBInstanceId_; +} + +void CreateShardingInstanceRequest::setSrcDBInstanceId(const std::string& srcDBInstanceId) +{ + srcDBInstanceId_ = srcDBInstanceId; + setCoreParameter("SrcDBInstanceId", srcDBInstanceId); +} + +std::string CreateShardingInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateShardingInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateShardingInstanceRequest::getBackupId()const +{ + return backupId_; +} + +void CreateShardingInstanceRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", backupId); +} + +long CreateShardingInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateShardingInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateShardingInstanceRequest::getToken()const +{ + return token_; +} + +void CreateShardingInstanceRequest::setToken(const std::string& token) +{ + token_ = token; + setCoreParameter("Token", token); +} + +int CreateShardingInstanceRequest::getShardQuantity()const +{ + return shardQuantity_; +} + +void CreateShardingInstanceRequest::setShardQuantity(int shardQuantity) +{ + shardQuantity_ = shardQuantity; + setCoreParameter("ShardQuantity", std::to_string(shardQuantity)); +} + +std::string CreateShardingInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateShardingInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setCoreParameter("VSwitchId", vSwitchId); +} + +std::string CreateShardingInstanceRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CreateShardingInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setCoreParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CreateShardingInstanceRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void CreateShardingInstanceRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setCoreParameter("SecurityIPList", securityIPList); +} + +std::string CreateShardingInstanceRequest::getInstanceName()const +{ + return instanceName_; +} + +void CreateShardingInstanceRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setCoreParameter("InstanceName", instanceName); +} + +int CreateShardingInstanceRequest::getShardReplicaQuantity()const +{ + return shardReplicaQuantity_; +} + +void CreateShardingInstanceRequest::setShardReplicaQuantity(int shardReplicaQuantity) +{ + shardReplicaQuantity_ = shardReplicaQuantity; + setCoreParameter("ShardReplicaQuantity", std::to_string(shardReplicaQuantity)); +} + +std::string CreateShardingInstanceRequest::getArchitectureType()const +{ + return architectureType_; +} + +void CreateShardingInstanceRequest::setArchitectureType(const std::string& architectureType) +{ + architectureType_ = architectureType; + setCoreParameter("ArchitectureType", architectureType); +} + +std::string CreateShardingInstanceRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateShardingInstanceRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string CreateShardingInstanceRequest::getRedisManagerClass()const +{ + return redisManagerClass_; +} + +void CreateShardingInstanceRequest::setRedisManagerClass(const std::string& redisManagerClass) +{ + redisManagerClass_ = redisManagerClass; + setCoreParameter("RedisManagerClass", redisManagerClass); +} + +std::string CreateShardingInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateShardingInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +std::string CreateShardingInstanceRequest::getChargeType()const +{ + return chargeType_; +} + +void CreateShardingInstanceRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setCoreParameter("ChargeType", chargeType); +} + +int CreateShardingInstanceRequest::getProxyQuantity()const +{ + return proxyQuantity_; +} + +void CreateShardingInstanceRequest::setProxyQuantity(int proxyQuantity) +{ + proxyQuantity_ = proxyQuantity; + setCoreParameter("ProxyQuantity", std::to_string(proxyQuantity)); +} + +std::string CreateShardingInstanceRequest::getConfig()const +{ + return config_; +} + +void CreateShardingInstanceRequest::setConfig(const std::string& config) +{ + config_ = config; + setCoreParameter("Config", config); +} + +std::string CreateShardingInstanceRequest::getProxyMode()const +{ + return proxyMode_; +} + +void CreateShardingInstanceRequest::setProxyMode(const std::string& proxyMode) +{ + proxyMode_ = proxyMode; + setCoreParameter("ProxyMode", proxyMode); +} + diff --git a/r-kvstore/src/model/CreateShardingInstanceResult.cc b/r-kvstore/src/model/CreateShardingInstanceResult.cc new file mode 100644 index 000000000..88617f2bd --- /dev/null +++ b/r-kvstore/src/model/CreateShardingInstanceResult.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 +#include + +using namespace AlibabaCloud::R_kvstore; +using namespace AlibabaCloud::R_kvstore::Model; + +CreateShardingInstanceResult::CreateShardingInstanceResult() : + ServiceResult() +{} + +CreateShardingInstanceResult::CreateShardingInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateShardingInstanceResult::~CreateShardingInstanceResult() +{} + +void CreateShardingInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allShardList = value["ShardList"]["Shard"]; + for (auto value : allShardList) + { + Shard shardListObject; + if(!value["ShardId"].isNull()) + shardListObject.shardId = value["ShardId"].asString(); + if(!value["ReplicaClass"].isNull()) + shardListObject.replicaClass = value["ReplicaClass"].asString(); + if(!value["StorageQuantity"].isNull()) + shardListObject.storageQuantity = value["StorageQuantity"].asString(); + if(!value["ReplicaQuantity"].isNull()) + shardListObject.replicaQuantity = value["ReplicaQuantity"].asString(); + shardList_.push_back(shardListObject); + } + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreateShardingInstanceResult::getInstanceId()const +{ + return instanceId_; +} + +std::vector CreateShardingInstanceResult::getShardList()const +{ + return shardList_; +} + +std::string CreateShardingInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/r-kvstore/src/model/CreateSnapshotResult.cc b/r-kvstore/src/model/CreateSnapshotResult.cc index 504253d77..c4a6ec2d3 100644 --- a/r-kvstore/src/model/CreateSnapshotResult.cc +++ b/r-kvstore/src/model/CreateSnapshotResult.cc @@ -35,10 +35,13 @@ CreateSnapshotResult::~CreateSnapshotResult() void CreateSnapshotResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SnapshotId"].isNull()) snapshotId_ = value["SnapshotId"].asString(); diff --git a/r-kvstore/src/model/CreateStaticVerificationResult.cc b/r-kvstore/src/model/CreateStaticVerificationResult.cc index 69757922c..64dea5639 100644 --- a/r-kvstore/src/model/CreateStaticVerificationResult.cc +++ b/r-kvstore/src/model/CreateStaticVerificationResult.cc @@ -35,10 +35,13 @@ CreateStaticVerificationResult::~CreateStaticVerificationResult() void CreateStaticVerificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/CreateTempInstanceResult.cc b/r-kvstore/src/model/CreateTempInstanceResult.cc index b9725776b..a26852729 100644 --- a/r-kvstore/src/model/CreateTempInstanceResult.cc +++ b/r-kvstore/src/model/CreateTempInstanceResult.cc @@ -35,10 +35,13 @@ CreateTempInstanceResult::~CreateTempInstanceResult() void CreateTempInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/DeleteAccountResult.cc b/r-kvstore/src/model/DeleteAccountResult.cc index 11c3b7b9d..e1ed91332 100644 --- a/r-kvstore/src/model/DeleteAccountResult.cc +++ b/r-kvstore/src/model/DeleteAccountResult.cc @@ -35,10 +35,13 @@ DeleteAccountResult::~DeleteAccountResult() void DeleteAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/DeleteInstanceResult.cc b/r-kvstore/src/model/DeleteInstanceResult.cc index cdcaa2c15..24dcda702 100644 --- a/r-kvstore/src/model/DeleteInstanceResult.cc +++ b/r-kvstore/src/model/DeleteInstanceResult.cc @@ -35,10 +35,13 @@ DeleteInstanceResult::~DeleteInstanceResult() void DeleteInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/DeleteSnapshotResult.cc b/r-kvstore/src/model/DeleteSnapshotResult.cc index cc9716553..9f2d03f48 100644 --- a/r-kvstore/src/model/DeleteSnapshotResult.cc +++ b/r-kvstore/src/model/DeleteSnapshotResult.cc @@ -35,10 +35,13 @@ DeleteSnapshotResult::~DeleteSnapshotResult() void DeleteSnapshotResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/DeleteSnapshotSettingsResult.cc b/r-kvstore/src/model/DeleteSnapshotSettingsResult.cc index 43acda779..8003c5b6e 100644 --- a/r-kvstore/src/model/DeleteSnapshotSettingsResult.cc +++ b/r-kvstore/src/model/DeleteSnapshotSettingsResult.cc @@ -35,10 +35,13 @@ DeleteSnapshotSettingsResult::~DeleteSnapshotSettingsResult() void DeleteSnapshotSettingsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/DeleteTempInstanceResult.cc b/r-kvstore/src/model/DeleteTempInstanceResult.cc index a0afc556f..dd43c8def 100644 --- a/r-kvstore/src/model/DeleteTempInstanceResult.cc +++ b/r-kvstore/src/model/DeleteTempInstanceResult.cc @@ -35,10 +35,13 @@ DeleteTempInstanceResult::~DeleteTempInstanceResult() void DeleteTempInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/DescribeAccountsResult.cc b/r-kvstore/src/model/DescribeAccountsResult.cc index a59afca8d..5eb070924 100644 --- a/r-kvstore/src/model/DescribeAccountsResult.cc +++ b/r-kvstore/src/model/DescribeAccountsResult.cc @@ -35,10 +35,13 @@ DescribeAccountsResult::~DescribeAccountsResult() void DescribeAccountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAccounts = value["Accounts"]["Account"]; for (auto value : allAccounts) diff --git a/r-kvstore/src/model/DescribeActiveOperationTaskCountResult.cc b/r-kvstore/src/model/DescribeActiveOperationTaskCountResult.cc index 77cb853a7..5e0a0f84d 100644 --- a/r-kvstore/src/model/DescribeActiveOperationTaskCountResult.cc +++ b/r-kvstore/src/model/DescribeActiveOperationTaskCountResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskCountResult::~DescribeActiveOperationTaskCountResult( void DescribeActiveOperationTaskCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskCount"].isNull()) taskCount_ = std::stoi(value["TaskCount"].asString()); diff --git a/r-kvstore/src/model/DescribeActiveOperationTaskRegionResult.cc b/r-kvstore/src/model/DescribeActiveOperationTaskRegionResult.cc index d1e026053..9d5676a1d 100644 --- a/r-kvstore/src/model/DescribeActiveOperationTaskRegionResult.cc +++ b/r-kvstore/src/model/DescribeActiveOperationTaskRegionResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskRegionResult::~DescribeActiveOperationTaskRegionResul void DescribeActiveOperationTaskRegionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegionList = value["RegionList"]["Items"]; for (auto value : allRegionList) diff --git a/r-kvstore/src/model/DescribeActiveOperationTaskResult.cc b/r-kvstore/src/model/DescribeActiveOperationTaskResult.cc index 244e5dfe8..c2b3cba77 100644 --- a/r-kvstore/src/model/DescribeActiveOperationTaskResult.cc +++ b/r-kvstore/src/model/DescribeActiveOperationTaskResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskResult::~DescribeActiveOperationTaskResult() void DescribeActiveOperationTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeActiveOperationTaskTypeResult.cc b/r-kvstore/src/model/DescribeActiveOperationTaskTypeResult.cc index cb273b6e0..5c61538c6 100644 --- a/r-kvstore/src/model/DescribeActiveOperationTaskTypeResult.cc +++ b/r-kvstore/src/model/DescribeActiveOperationTaskTypeResult.cc @@ -35,10 +35,13 @@ DescribeActiveOperationTaskTypeResult::~DescribeActiveOperationTaskTypeResult() void DescribeActiveOperationTaskTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTypeList = value["TypeList"]["Items"]; for (auto value : allTypeList) diff --git a/r-kvstore/src/model/DescribeAuditRecordsResult.cc b/r-kvstore/src/model/DescribeAuditRecordsResult.cc index bbde84a72..2fceb9986 100644 --- a/r-kvstore/src/model/DescribeAuditRecordsResult.cc +++ b/r-kvstore/src/model/DescribeAuditRecordsResult.cc @@ -35,10 +35,13 @@ DescribeAuditRecordsResult::~DescribeAuditRecordsResult() void DescribeAuditRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["SQL"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeAvailableResourceRequest.cc b/r-kvstore/src/model/DescribeAvailableResourceRequest.cc new file mode 100644 index 000000000..ffc54cf97 --- /dev/null +++ b/r-kvstore/src/model/DescribeAvailableResourceRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::R_kvstore::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : + RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeAvailableResource") +{} + +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() +{} + +long DescribeAvailableResourceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableResourceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAvailableResourceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAvailableResourceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAvailableResourceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAvailableResourceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAvailableResourceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAvailableResourceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAvailableResourceRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeAvailableResourceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +long DescribeAvailableResourceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAvailableResourceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAvailableResourceRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void DescribeAvailableResourceRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setCoreParameter("InstanceChargeType", instanceChargeType); +} + +std::string DescribeAvailableResourceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAvailableResourceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAvailableResourceRequest::getOrderType()const +{ + return orderType_; +} + +void DescribeAvailableResourceRequest::setOrderType(const std::string& orderType) +{ + orderType_ = orderType; + setCoreParameter("OrderType", orderType); +} + diff --git a/r-kvstore/src/model/DescribeAvailableResourceResult.cc b/r-kvstore/src/model/DescribeAvailableResourceResult.cc new file mode 100644 index 000000000..e6ee41f41 --- /dev/null +++ b/r-kvstore/src/model/DescribeAvailableResourceResult.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::R_kvstore; +using namespace AlibabaCloud::R_kvstore::Model; + +DescribeAvailableResourceResult::DescribeAvailableResourceResult() : + ServiceResult() +{} + +DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableResourceResult::~DescribeAvailableResourceResult() +{} + +void DescribeAvailableResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allAvailableZones = value["AvailableZones"]["AvailableZone"]; + for (auto value : allAvailableZones) + { + AvailableZone availableZonesObject; + if(!value["RegionId"].isNull()) + availableZonesObject.regionId = value["RegionId"].asString(); + if(!value["ZoneId"].isNull()) + availableZonesObject.zoneId = value["ZoneId"].asString(); + if(!value["Status"].isNull()) + availableZonesObject.status = value["Status"].asString(); + if(!value["NetworkTypes"].isNull()) + availableZonesObject.networkTypes = value["NetworkTypes"].asString(); + auto allSupportedEngines = value["SupportedEngines"]["SupportedEngine"]; + for (auto value : allSupportedEngines) + { + AvailableZone::SupportedEngine supportedEnginesObject; + if(!value["Engine"].isNull()) + supportedEnginesObject.engine = value["Engine"].asString(); + auto allSupportedEngineVersions = value["SupportedEngineVersions"]["SupportedEngineVersion"]; + for (auto value : allSupportedEngineVersions) + { + AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject; + if(!value["Version"].isNull()) + supportedEngineVersionsObject.version = value["Version"].asString(); + auto allSupportedArchitectureTypes = value["SupportedArchitectureTypes"]["SupportedArchitectureType"]; + for (auto value : allSupportedArchitectureTypes) + { + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedArchitectureType supportedArchitectureTypesObject; + if(!value["Architecture"].isNull()) + supportedArchitectureTypesObject.architecture = value["Architecture"].asString(); + auto allSupportedPerformanceTypes = value["SupportedPerformanceTypes"]["SupportedPerformanceType"]; + for (auto value : allSupportedPerformanceTypes) + { + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedArchitectureType::SupportedPerformanceType supportedPerformanceTypesObject; + if(!value["PerformanceType"].isNull()) + supportedPerformanceTypesObject.performanceType = value["PerformanceType"].asString(); + auto allSupportedStorageTypes = value["SupportedStorageTypes"]["SupportedStorageType"]; + for (auto value : allSupportedStorageTypes) + { + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedArchitectureType::SupportedPerformanceType::SupportedStorageType supportedStorageTypesObject; + if(!value["StorageType"].isNull()) + supportedStorageTypesObject.storageType = value["StorageType"].asString(); + auto allSupportedNodeTypes = value["SupportedNodeTypes"]["SupportedNodeType"]; + for (auto value : allSupportedNodeTypes) + { + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedArchitectureType::SupportedPerformanceType::SupportedStorageType::SupportedNodeType supportedNodeTypesObject; + if(!value["NodeType"].isNull()) + supportedNodeTypesObject.nodeType = value["NodeType"].asString(); + auto allSupportedPackageTypes = value["SupportedPackageTypes"]["SupportedPackageType"]; + for (auto value : allSupportedPackageTypes) + { + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedArchitectureType::SupportedPerformanceType::SupportedStorageType::SupportedNodeType::SupportedPackageType supportedPackageTypesObject; + if(!value["PackageType"].isNull()) + supportedPackageTypesObject.packageType = value["PackageType"].asString(); + auto allAvailableResources = value["AvailableResources"]["AvailableResource"]; + for (auto value : allAvailableResources) + { + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedArchitectureType::SupportedPerformanceType::SupportedStorageType::SupportedNodeType::SupportedPackageType::AvailableResource availableResourcesObject; + if(!value["InstanceClass"].isNull()) + availableResourcesObject.instanceClass = value["InstanceClass"].asString(); + supportedPackageTypesObject.availableResources.push_back(availableResourcesObject); + } + supportedNodeTypesObject.supportedPackageTypes.push_back(supportedPackageTypesObject); + } + supportedStorageTypesObject.supportedNodeTypes.push_back(supportedNodeTypesObject); + } + supportedPerformanceTypesObject.supportedStorageTypes.push_back(supportedStorageTypesObject); + } + supportedArchitectureTypesObject.supportedPerformanceTypes.push_back(supportedPerformanceTypesObject); + } + supportedEngineVersionsObject.supportedArchitectureTypes.push_back(supportedArchitectureTypesObject); + } + supportedEnginesObject.supportedEngineVersions.push_back(supportedEngineVersionsObject); + } + availableZonesObject.supportedEngines.push_back(supportedEnginesObject); + } + availableZones_.push_back(availableZonesObject); + } + +} + +std::vector DescribeAvailableResourceResult::getAvailableZones()const +{ + return availableZones_; +} + diff --git a/r-kvstore/src/model/DescribeBackupPolicyResult.cc b/r-kvstore/src/model/DescribeBackupPolicyResult.cc index a6794235e..c3ed5af6b 100644 --- a/r-kvstore/src/model/DescribeBackupPolicyResult.cc +++ b/r-kvstore/src/model/DescribeBackupPolicyResult.cc @@ -35,10 +35,13 @@ DescribeBackupPolicyResult::~DescribeBackupPolicyResult() void DescribeBackupPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BackupRetentionPeriod"].isNull()) backupRetentionPeriod_ = value["BackupRetentionPeriod"].asString(); diff --git a/r-kvstore/src/model/DescribeBackupsResult.cc b/r-kvstore/src/model/DescribeBackupsResult.cc index 07677f5cb..96adfc774 100644 --- a/r-kvstore/src/model/DescribeBackupsResult.cc +++ b/r-kvstore/src/model/DescribeBackupsResult.cc @@ -35,10 +35,13 @@ DescribeBackupsResult::~DescribeBackupsResult() void DescribeBackupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackups = value["Backups"]["Backup"]; for (auto value : allBackups) diff --git a/r-kvstore/src/model/DescribeCacheAnalysisReportListResult.cc b/r-kvstore/src/model/DescribeCacheAnalysisReportListResult.cc index 70b8d524d..da27720cd 100644 --- a/r-kvstore/src/model/DescribeCacheAnalysisReportListResult.cc +++ b/r-kvstore/src/model/DescribeCacheAnalysisReportListResult.cc @@ -35,10 +35,13 @@ DescribeCacheAnalysisReportListResult::~DescribeCacheAnalysisReportListResult() void DescribeCacheAnalysisReportListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDailyTasks = value["DailyTasks"]["DailyTask"]; for (auto value : allDailyTasks) diff --git a/r-kvstore/src/model/DescribeCacheAnalysisReportResult.cc b/r-kvstore/src/model/DescribeCacheAnalysisReportResult.cc index 359df2f72..547faad46 100644 --- a/r-kvstore/src/model/DescribeCacheAnalysisReportResult.cc +++ b/r-kvstore/src/model/DescribeCacheAnalysisReportResult.cc @@ -35,10 +35,13 @@ DescribeCacheAnalysisReportResult::~DescribeCacheAnalysisReportResult() void DescribeCacheAnalysisReportResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TotalRecordCount"].isNull()) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); diff --git a/r-kvstore/src/model/DescribeCertificationResult.cc b/r-kvstore/src/model/DescribeCertificationResult.cc index 4d3e54213..9aea9a78a 100644 --- a/r-kvstore/src/model/DescribeCertificationResult.cc +++ b/r-kvstore/src/model/DescribeCertificationResult.cc @@ -35,10 +35,13 @@ DescribeCertificationResult::~DescribeCertificationResult() void DescribeCertificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["NoCertification"].isNull()) noCertification_ = value["NoCertification"].asString() == "true"; diff --git a/r-kvstore/src/model/DescribeDBInstanceMonitorResult.cc b/r-kvstore/src/model/DescribeDBInstanceMonitorResult.cc index 7f2757aa9..bf9fe2d65 100644 --- a/r-kvstore/src/model/DescribeDBInstanceMonitorResult.cc +++ b/r-kvstore/src/model/DescribeDBInstanceMonitorResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceMonitorResult::~DescribeDBInstanceMonitorResult() void DescribeDBInstanceMonitorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Interval"].isNull()) interval_ = value["Interval"].asString(); diff --git a/r-kvstore/src/model/DescribeDBInstanceNetInfoResult.cc b/r-kvstore/src/model/DescribeDBInstanceNetInfoResult.cc index e1bcb9f3e..635b75ac5 100644 --- a/r-kvstore/src/model/DescribeDBInstanceNetInfoResult.cc +++ b/r-kvstore/src/model/DescribeDBInstanceNetInfoResult.cc @@ -35,10 +35,13 @@ DescribeDBInstanceNetInfoResult::~DescribeDBInstanceNetInfoResult() void DescribeDBInstanceNetInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNetInfoItems = value["NetInfoItems"]["InstanceNetInfo"]; for (auto value : allNetInfoItems) diff --git a/r-kvstore/src/model/DescribeErrorLogRecordsResult.cc b/r-kvstore/src/model/DescribeErrorLogRecordsResult.cc index 56ff2ff97..3fff848e2 100644 --- a/r-kvstore/src/model/DescribeErrorLogRecordsResult.cc +++ b/r-kvstore/src/model/DescribeErrorLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeErrorLogRecordsResult::~DescribeErrorLogRecordsResult() void DescribeErrorLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogRecords"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeHistoryMonitorValuesResult.cc b/r-kvstore/src/model/DescribeHistoryMonitorValuesResult.cc index 03b8c9439..e6fb3cd9e 100644 --- a/r-kvstore/src/model/DescribeHistoryMonitorValuesResult.cc +++ b/r-kvstore/src/model/DescribeHistoryMonitorValuesResult.cc @@ -35,10 +35,13 @@ DescribeHistoryMonitorValuesResult::~DescribeHistoryMonitorValuesResult() void DescribeHistoryMonitorValuesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MonitorHistory"].isNull()) monitorHistory_ = value["MonitorHistory"].asString(); diff --git a/r-kvstore/src/model/DescribeInstanceAttributeResult.cc b/r-kvstore/src/model/DescribeInstanceAttributeResult.cc index c7068cbbe..2d05b7cab 100644 --- a/r-kvstore/src/model/DescribeInstanceAttributeResult.cc +++ b/r-kvstore/src/model/DescribeInstanceAttributeResult.cc @@ -35,10 +35,13 @@ DescribeInstanceAttributeResult::~DescribeInstanceAttributeResult() void DescribeInstanceAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstances = value["Instances"]["DBInstanceAttribute"]; for (auto value : allInstances) diff --git a/r-kvstore/src/model/DescribeInstanceAutoRenewalAttributeResult.cc b/r-kvstore/src/model/DescribeInstanceAutoRenewalAttributeResult.cc index e06cd27ac..51c21513a 100644 --- a/r-kvstore/src/model/DescribeInstanceAutoRenewalAttributeResult.cc +++ b/r-kvstore/src/model/DescribeInstanceAutoRenewalAttributeResult.cc @@ -35,10 +35,13 @@ DescribeInstanceAutoRenewalAttributeResult::~DescribeInstanceAutoRenewalAttribut void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeInstanceConfigResult.cc b/r-kvstore/src/model/DescribeInstanceConfigResult.cc index 07051672c..3011daefb 100644 --- a/r-kvstore/src/model/DescribeInstanceConfigResult.cc +++ b/r-kvstore/src/model/DescribeInstanceConfigResult.cc @@ -35,10 +35,13 @@ DescribeInstanceConfigResult::~DescribeInstanceConfigResult() void DescribeInstanceConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Config"].isNull()) config_ = value["Config"].asString(); diff --git a/r-kvstore/src/model/DescribeInstanceSSLResult.cc b/r-kvstore/src/model/DescribeInstanceSSLResult.cc index 2b4783ba6..a8dac1d9e 100644 --- a/r-kvstore/src/model/DescribeInstanceSSLResult.cc +++ b/r-kvstore/src/model/DescribeInstanceSSLResult.cc @@ -35,10 +35,13 @@ DescribeInstanceSSLResult::~DescribeInstanceSSLResult() void DescribeInstanceSSLResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/DescribeInstancesByExpireTimeResult.cc b/r-kvstore/src/model/DescribeInstancesByExpireTimeResult.cc index 1e5842c43..7095ab8d1 100644 --- a/r-kvstore/src/model/DescribeInstancesByExpireTimeResult.cc +++ b/r-kvstore/src/model/DescribeInstancesByExpireTimeResult.cc @@ -35,10 +35,13 @@ DescribeInstancesByExpireTimeResult::~DescribeInstancesByExpireTimeResult() void DescribeInstancesByExpireTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstances = value["Instances"]["KVStoreInstance"]; for (auto value : allInstances) diff --git a/r-kvstore/src/model/DescribeInstancesResult.cc b/r-kvstore/src/model/DescribeInstancesResult.cc index 658b88df8..bcefe08ca 100644 --- a/r-kvstore/src/model/DescribeInstancesResult.cc +++ b/r-kvstore/src/model/DescribeInstancesResult.cc @@ -35,10 +35,13 @@ DescribeInstancesResult::~DescribeInstancesResult() void DescribeInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstances = value["Instances"]["KVStoreInstance"]; for (auto value : allInstances) diff --git a/r-kvstore/src/model/DescribeIntranetAttributeResult.cc b/r-kvstore/src/model/DescribeIntranetAttributeResult.cc index 8c45d82cc..61ffeb0ac 100644 --- a/r-kvstore/src/model/DescribeIntranetAttributeResult.cc +++ b/r-kvstore/src/model/DescribeIntranetAttributeResult.cc @@ -35,10 +35,13 @@ DescribeIntranetAttributeResult::~DescribeIntranetAttributeResult() void DescribeIntranetAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["IntranetBandwidth"].isNull()) intranetBandwidth_ = std::stoi(value["IntranetBandwidth"].asString()); diff --git a/r-kvstore/src/model/DescribeLogicInstanceTopologyResult.cc b/r-kvstore/src/model/DescribeLogicInstanceTopologyResult.cc index b9ff1eba3..c5f6157c9 100644 --- a/r-kvstore/src/model/DescribeLogicInstanceTopologyResult.cc +++ b/r-kvstore/src/model/DescribeLogicInstanceTopologyResult.cc @@ -35,10 +35,13 @@ DescribeLogicInstanceTopologyResult::~DescribeLogicInstanceTopologyResult() void DescribeLogicInstanceTopologyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRedisProxyList = value["RedisProxyList"]["NodeInfo"]; for (auto value : allRedisProxyList) diff --git a/r-kvstore/src/model/DescribeMonitorItemsResult.cc b/r-kvstore/src/model/DescribeMonitorItemsResult.cc index c39de8415..46b172e65 100644 --- a/r-kvstore/src/model/DescribeMonitorItemsResult.cc +++ b/r-kvstore/src/model/DescribeMonitorItemsResult.cc @@ -35,10 +35,13 @@ DescribeMonitorItemsResult::~DescribeMonitorItemsResult() void DescribeMonitorItemsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMonitorItems = value["MonitorItems"]["KVStoreMonitorItem"]; for (auto value : allMonitorItems) diff --git a/r-kvstore/src/model/DescribeMonthlyServiceStatusDetailResult.cc b/r-kvstore/src/model/DescribeMonthlyServiceStatusDetailResult.cc index 109c0f572..4210f068b 100644 --- a/r-kvstore/src/model/DescribeMonthlyServiceStatusDetailResult.cc +++ b/r-kvstore/src/model/DescribeMonthlyServiceStatusDetailResult.cc @@ -35,10 +35,13 @@ DescribeMonthlyServiceStatusDetailResult::~DescribeMonthlyServiceStatusDetailRes void DescribeMonthlyServiceStatusDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAffectedInfos = value["AffectedInfos"]["AffectedInfo"]; for (auto value : allAffectedInfos) diff --git a/r-kvstore/src/model/DescribeMonthlyServiceStatusResult.cc b/r-kvstore/src/model/DescribeMonthlyServiceStatusResult.cc index 3d06cbbc8..60c32cc8f 100644 --- a/r-kvstore/src/model/DescribeMonthlyServiceStatusResult.cc +++ b/r-kvstore/src/model/DescribeMonthlyServiceStatusResult.cc @@ -35,10 +35,13 @@ DescribeMonthlyServiceStatusResult::~DescribeMonthlyServiceStatusResult() void DescribeMonthlyServiceStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allInstanceSLAInfos = value["InstanceSLAInfos"]["InstanceSLAInfo"]; for (auto value : allInstanceSLAInfos) diff --git a/r-kvstore/src/model/DescribeParameterModificationHistoryResult.cc b/r-kvstore/src/model/DescribeParameterModificationHistoryResult.cc index f80458693..8905d2e6d 100644 --- a/r-kvstore/src/model/DescribeParameterModificationHistoryResult.cc +++ b/r-kvstore/src/model/DescribeParameterModificationHistoryResult.cc @@ -35,10 +35,13 @@ DescribeParameterModificationHistoryResult::~DescribeParameterModificationHistor void DescribeParameterModificationHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHistoricalParameters = value["HistoricalParameters"]["HistoricalParameter"]; for (auto value : allHistoricalParameters) diff --git a/r-kvstore/src/model/DescribeParameterTemplatesResult.cc b/r-kvstore/src/model/DescribeParameterTemplatesResult.cc index d32114d41..206672d95 100644 --- a/r-kvstore/src/model/DescribeParameterTemplatesResult.cc +++ b/r-kvstore/src/model/DescribeParameterTemplatesResult.cc @@ -35,10 +35,13 @@ DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult() void DescribeParameterTemplatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParameters = value["Parameters"]["TemplateRecord"]; for (auto value : allParameters) diff --git a/r-kvstore/src/model/DescribeParametersResult.cc b/r-kvstore/src/model/DescribeParametersResult.cc index 636e0f4ab..00ce24c44 100644 --- a/r-kvstore/src/model/DescribeParametersResult.cc +++ b/r-kvstore/src/model/DescribeParametersResult.cc @@ -35,10 +35,13 @@ DescribeParametersResult::~DescribeParametersResult() void DescribeParametersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigParameters = value["ConfigParameters"]["Parameter"]; for (auto value : allConfigParameters) diff --git a/r-kvstore/src/model/DescribeRdsVSwitchsResult.cc b/r-kvstore/src/model/DescribeRdsVSwitchsResult.cc index 2f4466fe5..7d5188e05 100644 --- a/r-kvstore/src/model/DescribeRdsVSwitchsResult.cc +++ b/r-kvstore/src/model/DescribeRdsVSwitchsResult.cc @@ -35,10 +35,13 @@ DescribeRdsVSwitchsResult::~DescribeRdsVSwitchsResult() void DescribeRdsVSwitchsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vSwitchesNode = value["VSwitches"]; auto allVSwitch = value["VSwitch"]["VSwitchItem"]; diff --git a/r-kvstore/src/model/DescribeRdsVpcsResult.cc b/r-kvstore/src/model/DescribeRdsVpcsResult.cc index dc829b1a9..30ef3befc 100644 --- a/r-kvstore/src/model/DescribeRdsVpcsResult.cc +++ b/r-kvstore/src/model/DescribeRdsVpcsResult.cc @@ -35,10 +35,13 @@ DescribeRdsVpcsResult::~DescribeRdsVpcsResult() void DescribeRdsVpcsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vpcsNode = value["Vpcs"]; auto allVpc = value["Vpc"]["VpcItem"]; diff --git a/r-kvstore/src/model/DescribeRegionsResult.cc b/r-kvstore/src/model/DescribeRegionsResult.cc index 57faadcb6..6508dacf4 100644 --- a/r-kvstore/src/model/DescribeRegionsResult.cc +++ b/r-kvstore/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegionIds = value["RegionIds"]["KVStoreRegion"]; for (auto value : allRegionIds) diff --git a/r-kvstore/src/model/DescribeReplicaConflictInfoResult.cc b/r-kvstore/src/model/DescribeReplicaConflictInfoResult.cc index 4fd4b6328..6dd31aa2c 100644 --- a/r-kvstore/src/model/DescribeReplicaConflictInfoResult.cc +++ b/r-kvstore/src/model/DescribeReplicaConflictInfoResult.cc @@ -35,10 +35,13 @@ DescribeReplicaConflictInfoResult::~DescribeReplicaConflictInfoResult() void DescribeReplicaConflictInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeReplicaInitializeProgressResult.cc b/r-kvstore/src/model/DescribeReplicaInitializeProgressResult.cc index 0ebab0b33..1682d3b3d 100644 --- a/r-kvstore/src/model/DescribeReplicaInitializeProgressResult.cc +++ b/r-kvstore/src/model/DescribeReplicaInitializeProgressResult.cc @@ -35,10 +35,13 @@ DescribeReplicaInitializeProgressResult::~DescribeReplicaInitializeProgressResul void DescribeReplicaInitializeProgressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeReplicaPerformanceResult.cc b/r-kvstore/src/model/DescribeReplicaPerformanceResult.cc index f886b5ef4..f583ec9b8 100644 --- a/r-kvstore/src/model/DescribeReplicaPerformanceResult.cc +++ b/r-kvstore/src/model/DescribeReplicaPerformanceResult.cc @@ -35,10 +35,13 @@ DescribeReplicaPerformanceResult::~DescribeReplicaPerformanceResult() void DescribeReplicaPerformanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto performanceKeysNode = value["PerformanceKeys"]; auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; diff --git a/r-kvstore/src/model/DescribeReplicaUsageResult.cc b/r-kvstore/src/model/DescribeReplicaUsageResult.cc index 25fef1ca6..4a4b45bb3 100644 --- a/r-kvstore/src/model/DescribeReplicaUsageResult.cc +++ b/r-kvstore/src/model/DescribeReplicaUsageResult.cc @@ -35,10 +35,13 @@ DescribeReplicaUsageResult::~DescribeReplicaUsageResult() void DescribeReplicaUsageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto performanceKeysNode = value["PerformanceKeys"]; auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; diff --git a/r-kvstore/src/model/DescribeReplicasResult.cc b/r-kvstore/src/model/DescribeReplicasResult.cc index 7189ee205..bd3577eb3 100644 --- a/r-kvstore/src/model/DescribeReplicasResult.cc +++ b/r-kvstore/src/model/DescribeReplicasResult.cc @@ -35,10 +35,13 @@ DescribeReplicasResult::~DescribeReplicasResult() void DescribeReplicasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allReplicas = value["Replicas"]["Items"]; for (auto value : allReplicas) diff --git a/r-kvstore/src/model/DescribeRunningLogRecordsResult.cc b/r-kvstore/src/model/DescribeRunningLogRecordsResult.cc index 3a2690bed..294124a1b 100644 --- a/r-kvstore/src/model/DescribeRunningLogRecordsResult.cc +++ b/r-kvstore/src/model/DescribeRunningLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeRunningLogRecordsResult::~DescribeRunningLogRecordsResult() void DescribeRunningLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogRecords"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeSecurityIpsResult.cc b/r-kvstore/src/model/DescribeSecurityIpsResult.cc index 3f5387c5e..c1237c4c2 100644 --- a/r-kvstore/src/model/DescribeSecurityIpsResult.cc +++ b/r-kvstore/src/model/DescribeSecurityIpsResult.cc @@ -35,10 +35,13 @@ DescribeSecurityIpsResult::~DescribeSecurityIpsResult() void DescribeSecurityIpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSecurityIpGroups = value["SecurityIpGroups"]["SecurityIpGroup"]; for (auto value : allSecurityIpGroups) diff --git a/r-kvstore/src/model/DescribeShardingInstancesRequest.cc b/r-kvstore/src/model/DescribeShardingInstancesRequest.cc new file mode 100644 index 000000000..d352db87f --- /dev/null +++ b/r-kvstore/src/model/DescribeShardingInstancesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::R_kvstore::Model::DescribeShardingInstancesRequest; + +DescribeShardingInstancesRequest::DescribeShardingInstancesRequest() : + RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeShardingInstances") +{} + +DescribeShardingInstancesRequest::~DescribeShardingInstancesRequest() +{} + +long DescribeShardingInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeShardingInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeShardingInstancesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeShardingInstancesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeShardingInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeShardingInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeShardingInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeShardingInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeShardingInstancesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeShardingInstancesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setCoreParameter("InstanceIds", instanceIds); +} + +std::string DescribeShardingInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeShardingInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeShardingInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeShardingInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeShardingInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeShardingInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/r-kvstore/src/model/DescribeShardingInstancesResult.cc b/r-kvstore/src/model/DescribeShardingInstancesResult.cc new file mode 100644 index 000000000..0ce519d7d --- /dev/null +++ b/r-kvstore/src/model/DescribeShardingInstancesResult.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::R_kvstore; +using namespace AlibabaCloud::R_kvstore::Model; + +DescribeShardingInstancesResult::DescribeShardingInstancesResult() : + ServiceResult() +{} + +DescribeShardingInstancesResult::DescribeShardingInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeShardingInstancesResult::~DescribeShardingInstancesResult() +{} + +void DescribeShardingInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allInstances = value["Instances"]["Instance"]; + for (auto value : allInstances) + { + Instance instancesObject; + if(!value["InstanceId"].isNull()) + instancesObject.instanceId = value["InstanceId"].asString(); + auto allShardList = value["ShardList"]["Shard"]; + for (auto value : allShardList) + { + Instance::Shard shardListObject; + if(!value["NodeId"].isNull()) + shardListObject.nodeId = value["NodeId"].asString(); + if(!value["ShardReplicaClass"].isNull()) + shardListObject.shardReplicaClass = value["ShardReplicaClass"].asString(); + if(!value["ShardStorageQuantity"].isNull()) + shardListObject.shardStorageQuantity = value["ShardStorageQuantity"].asString(); + instancesObject.shardList.push_back(shardListObject); + } + instances_.push_back(instancesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeShardingInstancesResult::getInstances()const +{ + return instances_; +} + +int DescribeShardingInstancesResult::getTotalCount()const +{ + return totalCount_; +} + diff --git a/r-kvstore/src/model/DescribeSlowLogRecordsRequest.cc b/r-kvstore/src/model/DescribeSlowLogRecordsRequest.cc index 23c05c706..e2ec93b04 100644 --- a/r-kvstore/src/model/DescribeSlowLogRecordsRequest.cc +++ b/r-kvstore/src/model/DescribeSlowLogRecordsRequest.cc @@ -124,6 +124,17 @@ void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyI setCoreParameter("AccessKeyId", accessKeyId); } +std::string DescribeSlowLogRecordsRequest::getSlowLogRecordType()const +{ + return slowLogRecordType_; +} + +void DescribeSlowLogRecordsRequest::setSlowLogRecordType(const std::string& slowLogRecordType) +{ + slowLogRecordType_ = slowLogRecordType; + setCoreParameter("SlowLogRecordType", slowLogRecordType); +} + std::string DescribeSlowLogRecordsRequest::getInstanceId()const { return instanceId_; diff --git a/r-kvstore/src/model/DescribeSlowLogRecordsResult.cc b/r-kvstore/src/model/DescribeSlowLogRecordsResult.cc index a6bb07af1..fb738a82b 100644 --- a/r-kvstore/src/model/DescribeSlowLogRecordsResult.cc +++ b/r-kvstore/src/model/DescribeSlowLogRecordsResult.cc @@ -35,10 +35,13 @@ DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() void DescribeSlowLogRecordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogRecords"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeSnapshotsResult.cc b/r-kvstore/src/model/DescribeSnapshotsResult.cc index 79b70162e..67ab7d17f 100644 --- a/r-kvstore/src/model/DescribeSnapshotsResult.cc +++ b/r-kvstore/src/model/DescribeSnapshotsResult.cc @@ -35,10 +35,13 @@ DescribeSnapshotsResult::~DescribeSnapshotsResult() void DescribeSnapshotsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSnapshots = value["Snapshots"]["Snapshot"]; for (auto value : allSnapshots) diff --git a/r-kvstore/src/model/DescribeStaticVerificationListResult.cc b/r-kvstore/src/model/DescribeStaticVerificationListResult.cc index e239acc75..e18b93991 100644 --- a/r-kvstore/src/model/DescribeStaticVerificationListResult.cc +++ b/r-kvstore/src/model/DescribeStaticVerificationListResult.cc @@ -35,10 +35,13 @@ DescribeStaticVerificationListResult::~DescribeStaticVerificationListResult() void DescribeStaticVerificationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeStrategyResult.cc b/r-kvstore/src/model/DescribeStrategyResult.cc index efb84d8bb..b02aabd7f 100644 --- a/r-kvstore/src/model/DescribeStrategyResult.cc +++ b/r-kvstore/src/model/DescribeStrategyResult.cc @@ -35,10 +35,13 @@ DescribeStrategyResult::~DescribeStrategyResult() void DescribeStrategyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ReplicaId"].isNull()) replicaId_ = value["ReplicaId"].asString(); diff --git a/r-kvstore/src/model/DescribeTagsRequest.cc b/r-kvstore/src/model/DescribeTagsRequest.cc new file mode 100644 index 000000000..9d3ec0f92 --- /dev/null +++ b/r-kvstore/src/model/DescribeTagsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::R_kvstore::Model::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() : + RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeTags") +{} + +DescribeTagsRequest::~DescribeTagsRequest() +{} + +long DescribeTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeTagsRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeTagsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::string DescribeTagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeTagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTagsRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeTagsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +std::string DescribeTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/r-kvstore/src/model/DescribeTagsResult.cc b/r-kvstore/src/model/DescribeTagsResult.cc new file mode 100644 index 000000000..36c88b22e --- /dev/null +++ b/r-kvstore/src/model/DescribeTagsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::R_kvstore; +using namespace AlibabaCloud::R_kvstore::Model; + +DescribeTagsResult::DescribeTagsResult() : + ServiceResult() +{} + +DescribeTagsResult::DescribeTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagsResult::~DescribeTagsResult() +{} + +void DescribeTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Tag tagsObject; + if(!value["TagKey"].isNull()) + tagsObject.tagKey = value["TagKey"].asString(); + auto allTagValues = value["TagValues"]["TagValue"]; + for (auto value : allTagValues) + tagsObject.tagValues.push_back(value.asString()); + tags_.push_back(tagsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeTagsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeTagsResult::getTags()const +{ + return tags_; +} + diff --git a/r-kvstore/src/model/DescribeTempInstanceResult.cc b/r-kvstore/src/model/DescribeTempInstanceResult.cc index 8a5de6bee..8fff2959e 100644 --- a/r-kvstore/src/model/DescribeTempInstanceResult.cc +++ b/r-kvstore/src/model/DescribeTempInstanceResult.cc @@ -35,10 +35,13 @@ DescribeTempInstanceResult::~DescribeTempInstanceResult() void DescribeTempInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTempInstances = value["TempInstances"]["TempInstance"]; for (auto value : allTempInstances) diff --git a/r-kvstore/src/model/DescribeVerificationListResult.cc b/r-kvstore/src/model/DescribeVerificationListResult.cc index b3171319d..2ebd3eda8 100644 --- a/r-kvstore/src/model/DescribeVerificationListResult.cc +++ b/r-kvstore/src/model/DescribeVerificationListResult.cc @@ -35,10 +35,13 @@ DescribeVerificationListResult::~DescribeVerificationListResult() void DescribeVerificationListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/DescribeZonesResult.cc b/r-kvstore/src/model/DescribeZonesResult.cc index 7980eeb0f..60ffad855 100644 --- a/r-kvstore/src/model/DescribeZonesResult.cc +++ b/r-kvstore/src/model/DescribeZonesResult.cc @@ -35,10 +35,13 @@ DescribeZonesResult::~DescribeZonesResult() void DescribeZonesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allZones = value["Zones"]["KVStoreZone"]; for (auto value : allZones) diff --git a/r-kvstore/src/model/DestroyInstanceResult.cc b/r-kvstore/src/model/DestroyInstanceResult.cc index e78c6cef4..fa9c42623 100644 --- a/r-kvstore/src/model/DestroyInstanceResult.cc +++ b/r-kvstore/src/model/DestroyInstanceResult.cc @@ -35,10 +35,13 @@ DestroyInstanceResult::~DestroyInstanceResult() void DestroyInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/EvaluateFailOverSwitchResult.cc b/r-kvstore/src/model/EvaluateFailOverSwitchResult.cc index 583f04493..74c548cd9 100644 --- a/r-kvstore/src/model/EvaluateFailOverSwitchResult.cc +++ b/r-kvstore/src/model/EvaluateFailOverSwitchResult.cc @@ -35,10 +35,13 @@ EvaluateFailOverSwitchResult::~EvaluateFailOverSwitchResult() void EvaluateFailOverSwitchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) diff --git a/r-kvstore/src/model/FlushInstanceResult.cc b/r-kvstore/src/model/FlushInstanceResult.cc index cd58ac63c..9d772838a 100644 --- a/r-kvstore/src/model/FlushInstanceResult.cc +++ b/r-kvstore/src/model/FlushInstanceResult.cc @@ -35,10 +35,13 @@ FlushInstanceResult::~FlushInstanceResult() void FlushInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/GetSnapshotSettingsResult.cc b/r-kvstore/src/model/GetSnapshotSettingsResult.cc index 1bee29e3a..1539fbc16 100644 --- a/r-kvstore/src/model/GetSnapshotSettingsResult.cc +++ b/r-kvstore/src/model/GetSnapshotSettingsResult.cc @@ -35,10 +35,13 @@ GetSnapshotSettingsResult::~GetSnapshotSettingsResult() void GetSnapshotSettingsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/GrantAccountPrivilegeResult.cc b/r-kvstore/src/model/GrantAccountPrivilegeResult.cc index 3aa5359ec..858bb4196 100644 --- a/r-kvstore/src/model/GrantAccountPrivilegeResult.cc +++ b/r-kvstore/src/model/GrantAccountPrivilegeResult.cc @@ -35,10 +35,13 @@ GrantAccountPrivilegeResult::~GrantAccountPrivilegeResult() void GrantAccountPrivilegeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ListTagResourcesResult.cc b/r-kvstore/src/model/ListTagResourcesResult.cc index 952a7437a..5f52e11d0 100644 --- a/r-kvstore/src/model/ListTagResourcesResult.cc +++ b/r-kvstore/src/model/ListTagResourcesResult.cc @@ -35,10 +35,13 @@ ListTagResourcesResult::~ListTagResourcesResult() void ListTagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagResources = value["TagResources"]["TagResource"]; for (auto value : allTagResources) diff --git a/r-kvstore/src/model/MigrateToOtherZoneResult.cc b/r-kvstore/src/model/MigrateToOtherZoneResult.cc index b83947b7d..5b75ed1c8 100644 --- a/r-kvstore/src/model/MigrateToOtherZoneResult.cc +++ b/r-kvstore/src/model/MigrateToOtherZoneResult.cc @@ -35,10 +35,13 @@ MigrateToOtherZoneResult::~MigrateToOtherZoneResult() void MigrateToOtherZoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyAccountDescriptionResult.cc b/r-kvstore/src/model/ModifyAccountDescriptionResult.cc index 57c92bfd0..f73a5e92f 100644 --- a/r-kvstore/src/model/ModifyAccountDescriptionResult.cc +++ b/r-kvstore/src/model/ModifyAccountDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() void ModifyAccountDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyActiveOperationTaskResult.cc b/r-kvstore/src/model/ModifyActiveOperationTaskResult.cc index 697dcbf4a..090a1d37d 100644 --- a/r-kvstore/src/model/ModifyActiveOperationTaskResult.cc +++ b/r-kvstore/src/model/ModifyActiveOperationTaskResult.cc @@ -35,10 +35,13 @@ ModifyActiveOperationTaskResult::~ModifyActiveOperationTaskResult() void ModifyActiveOperationTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ids"].isNull()) ids_ = value["Ids"].asString(); diff --git a/r-kvstore/src/model/ModifyAuditLogConfigResult.cc b/r-kvstore/src/model/ModifyAuditLogConfigResult.cc index 51d626f82..7fc72d385 100644 --- a/r-kvstore/src/model/ModifyAuditLogConfigResult.cc +++ b/r-kvstore/src/model/ModifyAuditLogConfigResult.cc @@ -35,10 +35,13 @@ ModifyAuditLogConfigResult::~ModifyAuditLogConfigResult() void ModifyAuditLogConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyBackupPolicyResult.cc b/r-kvstore/src/model/ModifyBackupPolicyResult.cc index f09019b44..a7c0cf1ba 100644 --- a/r-kvstore/src/model/ModifyBackupPolicyResult.cc +++ b/r-kvstore/src/model/ModifyBackupPolicyResult.cc @@ -35,10 +35,13 @@ ModifyBackupPolicyResult::~ModifyBackupPolicyResult() void ModifyBackupPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyCertificationResult.cc b/r-kvstore/src/model/ModifyCertificationResult.cc index 3216c99bc..37c61f1a2 100644 --- a/r-kvstore/src/model/ModifyCertificationResult.cc +++ b/r-kvstore/src/model/ModifyCertificationResult.cc @@ -35,10 +35,13 @@ ModifyCertificationResult::~ModifyCertificationResult() void ModifyCertificationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyDBInstanceConnectionStringResult.cc b/r-kvstore/src/model/ModifyDBInstanceConnectionStringResult.cc index aa8f6a719..001b2a1e3 100644 --- a/r-kvstore/src/model/ModifyDBInstanceConnectionStringResult.cc +++ b/r-kvstore/src/model/ModifyDBInstanceConnectionStringResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult( void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyDBInstanceMonitorResult.cc b/r-kvstore/src/model/ModifyDBInstanceMonitorResult.cc index 60604c0ae..aa8e81e98 100644 --- a/r-kvstore/src/model/ModifyDBInstanceMonitorResult.cc +++ b/r-kvstore/src/model/ModifyDBInstanceMonitorResult.cc @@ -35,10 +35,13 @@ ModifyDBInstanceMonitorResult::~ModifyDBInstanceMonitorResult() void ModifyDBInstanceMonitorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyGuardDomainModeResult.cc b/r-kvstore/src/model/ModifyGuardDomainModeResult.cc index 0670a98b9..7033f3ef3 100644 --- a/r-kvstore/src/model/ModifyGuardDomainModeResult.cc +++ b/r-kvstore/src/model/ModifyGuardDomainModeResult.cc @@ -35,10 +35,13 @@ ModifyGuardDomainModeResult::~ModifyGuardDomainModeResult() void ModifyGuardDomainModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyInstanceAttributeResult.cc b/r-kvstore/src/model/ModifyInstanceAttributeResult.cc index 1873dbc65..f55d801e1 100644 --- a/r-kvstore/src/model/ModifyInstanceAttributeResult.cc +++ b/r-kvstore/src/model/ModifyInstanceAttributeResult.cc @@ -35,10 +35,13 @@ ModifyInstanceAttributeResult::~ModifyInstanceAttributeResult() void ModifyInstanceAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyInstanceAutoRenewalAttributeResult.cc b/r-kvstore/src/model/ModifyInstanceAutoRenewalAttributeResult.cc index 88459e986..24ad566d3 100644 --- a/r-kvstore/src/model/ModifyInstanceAutoRenewalAttributeResult.cc +++ b/r-kvstore/src/model/ModifyInstanceAutoRenewalAttributeResult.cc @@ -35,10 +35,13 @@ ModifyInstanceAutoRenewalAttributeResult::~ModifyInstanceAutoRenewalAttributeRes void ModifyInstanceAutoRenewalAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyInstanceConfigResult.cc b/r-kvstore/src/model/ModifyInstanceConfigResult.cc index e9c0dec1d..95983f342 100644 --- a/r-kvstore/src/model/ModifyInstanceConfigResult.cc +++ b/r-kvstore/src/model/ModifyInstanceConfigResult.cc @@ -35,10 +35,13 @@ ModifyInstanceConfigResult::~ModifyInstanceConfigResult() void ModifyInstanceConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyInstanceMaintainTimeResult.cc b/r-kvstore/src/model/ModifyInstanceMaintainTimeResult.cc index a161444cc..92b4f0d3e 100644 --- a/r-kvstore/src/model/ModifyInstanceMaintainTimeResult.cc +++ b/r-kvstore/src/model/ModifyInstanceMaintainTimeResult.cc @@ -35,10 +35,13 @@ ModifyInstanceMaintainTimeResult::~ModifyInstanceMaintainTimeResult() void ModifyInstanceMaintainTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyInstanceMajorVersionResult.cc b/r-kvstore/src/model/ModifyInstanceMajorVersionResult.cc index 520b1245d..d70beb9d3 100644 --- a/r-kvstore/src/model/ModifyInstanceMajorVersionResult.cc +++ b/r-kvstore/src/model/ModifyInstanceMajorVersionResult.cc @@ -35,10 +35,13 @@ ModifyInstanceMajorVersionResult::~ModifyInstanceMajorVersionResult() void ModifyInstanceMajorVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyInstanceMinorVersionResult.cc b/r-kvstore/src/model/ModifyInstanceMinorVersionResult.cc index d7dae731b..f367c926d 100644 --- a/r-kvstore/src/model/ModifyInstanceMinorVersionResult.cc +++ b/r-kvstore/src/model/ModifyInstanceMinorVersionResult.cc @@ -35,10 +35,13 @@ ModifyInstanceMinorVersionResult::~ModifyInstanceMinorVersionResult() void ModifyInstanceMinorVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyInstanceNetExpireTimeResult.cc b/r-kvstore/src/model/ModifyInstanceNetExpireTimeResult.cc index 3e1a2f94f..114f58a05 100644 --- a/r-kvstore/src/model/ModifyInstanceNetExpireTimeResult.cc +++ b/r-kvstore/src/model/ModifyInstanceNetExpireTimeResult.cc @@ -35,10 +35,13 @@ ModifyInstanceNetExpireTimeResult::~ModifyInstanceNetExpireTimeResult() void ModifyInstanceNetExpireTimeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNetInfoItems = value["NetInfoItems"]["NetInfoItem"]; for (auto value : allNetInfoItems) diff --git a/r-kvstore/src/model/ModifyInstanceSSLResult.cc b/r-kvstore/src/model/ModifyInstanceSSLResult.cc index 58105afc2..cc18bd4e2 100644 --- a/r-kvstore/src/model/ModifyInstanceSSLResult.cc +++ b/r-kvstore/src/model/ModifyInstanceSSLResult.cc @@ -35,10 +35,13 @@ ModifyInstanceSSLResult::~ModifyInstanceSSLResult() void ModifyInstanceSSLResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/ModifyInstanceSpecPreCheckResult.cc b/r-kvstore/src/model/ModifyInstanceSpecPreCheckResult.cc index 3eb9204be..d78ac8ea0 100644 --- a/r-kvstore/src/model/ModifyInstanceSpecPreCheckResult.cc +++ b/r-kvstore/src/model/ModifyInstanceSpecPreCheckResult.cc @@ -35,10 +35,13 @@ ModifyInstanceSpecPreCheckResult::~ModifyInstanceSpecPreCheckResult() void ModifyInstanceSpecPreCheckResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto preCheckResultNode = value["PreCheckResult"]; if(!preCheckResultNode["UsedMemorySize"].isNull()) diff --git a/r-kvstore/src/model/ModifyInstanceSpecResult.cc b/r-kvstore/src/model/ModifyInstanceSpecResult.cc index be63fa44c..db780bbd7 100644 --- a/r-kvstore/src/model/ModifyInstanceSpecResult.cc +++ b/r-kvstore/src/model/ModifyInstanceSpecResult.cc @@ -35,10 +35,13 @@ ModifyInstanceSpecResult::~ModifyInstanceSpecResult() void ModifyInstanceSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/r-kvstore/src/model/ModifyInstanceVpcAuthModeResult.cc b/r-kvstore/src/model/ModifyInstanceVpcAuthModeResult.cc index 1950fa077..d975e9bb5 100644 --- a/r-kvstore/src/model/ModifyInstanceVpcAuthModeResult.cc +++ b/r-kvstore/src/model/ModifyInstanceVpcAuthModeResult.cc @@ -35,10 +35,13 @@ ModifyInstanceVpcAuthModeResult::~ModifyInstanceVpcAuthModeResult() void ModifyInstanceVpcAuthModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyIntranetAttributeResult.cc b/r-kvstore/src/model/ModifyIntranetAttributeResult.cc index 9e29028fc..a684cd191 100644 --- a/r-kvstore/src/model/ModifyIntranetAttributeResult.cc +++ b/r-kvstore/src/model/ModifyIntranetAttributeResult.cc @@ -35,10 +35,13 @@ ModifyIntranetAttributeResult::~ModifyIntranetAttributeResult() void ModifyIntranetAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyReplicaDescriptionResult.cc b/r-kvstore/src/model/ModifyReplicaDescriptionResult.cc index d5e5e07e7..1b336510a 100644 --- a/r-kvstore/src/model/ModifyReplicaDescriptionResult.cc +++ b/r-kvstore/src/model/ModifyReplicaDescriptionResult.cc @@ -35,10 +35,13 @@ ModifyReplicaDescriptionResult::~ModifyReplicaDescriptionResult() void ModifyReplicaDescriptionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyReplicaModeResult.cc b/r-kvstore/src/model/ModifyReplicaModeResult.cc index bfb5e5655..c93f1e09a 100644 --- a/r-kvstore/src/model/ModifyReplicaModeResult.cc +++ b/r-kvstore/src/model/ModifyReplicaModeResult.cc @@ -35,10 +35,13 @@ ModifyReplicaModeResult::~ModifyReplicaModeResult() void ModifyReplicaModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyReplicaRecoveryModeResult.cc b/r-kvstore/src/model/ModifyReplicaRecoveryModeResult.cc index ed9066f2f..e50c24d7b 100644 --- a/r-kvstore/src/model/ModifyReplicaRecoveryModeResult.cc +++ b/r-kvstore/src/model/ModifyReplicaRecoveryModeResult.cc @@ -35,10 +35,13 @@ ModifyReplicaRecoveryModeResult::~ModifyReplicaRecoveryModeResult() void ModifyReplicaRecoveryModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyReplicaRelationResult.cc b/r-kvstore/src/model/ModifyReplicaRelationResult.cc index cae810ef1..19fb2467c 100644 --- a/r-kvstore/src/model/ModifyReplicaRelationResult.cc +++ b/r-kvstore/src/model/ModifyReplicaRelationResult.cc @@ -35,10 +35,13 @@ ModifyReplicaRelationResult::~ModifyReplicaRelationResult() void ModifyReplicaRelationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifyReplicaVerificationModeResult.cc b/r-kvstore/src/model/ModifyReplicaVerificationModeResult.cc index a202828b7..d6ed7aa24 100644 --- a/r-kvstore/src/model/ModifyReplicaVerificationModeResult.cc +++ b/r-kvstore/src/model/ModifyReplicaVerificationModeResult.cc @@ -35,10 +35,13 @@ ModifyReplicaVerificationModeResult::~ModifyReplicaVerificationModeResult() void ModifyReplicaVerificationModeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ModifySecurityIpsResult.cc b/r-kvstore/src/model/ModifySecurityIpsResult.cc index 271c05297..f34bcf862 100644 --- a/r-kvstore/src/model/ModifySecurityIpsResult.cc +++ b/r-kvstore/src/model/ModifySecurityIpsResult.cc @@ -35,10 +35,13 @@ ModifySecurityIpsResult::~ModifySecurityIpsResult() void ModifySecurityIpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/QueryTaskResult.cc b/r-kvstore/src/model/QueryTaskResult.cc index 75b24f405..fe50eaddc 100644 --- a/r-kvstore/src/model/QueryTaskResult.cc +++ b/r-kvstore/src/model/QueryTaskResult.cc @@ -35,10 +35,13 @@ QueryTaskResult::~QueryTaskResult() void QueryTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Action"].isNull()) action_ = value["Action"].asString(); diff --git a/r-kvstore/src/model/ReleaseInstancePublicConnectionResult.cc b/r-kvstore/src/model/ReleaseInstancePublicConnectionResult.cc index 3791f81ad..a232a66c7 100644 --- a/r-kvstore/src/model/ReleaseInstancePublicConnectionResult.cc +++ b/r-kvstore/src/model/ReleaseInstancePublicConnectionResult.cc @@ -35,10 +35,13 @@ ReleaseInstancePublicConnectionResult::~ReleaseInstancePublicConnectionResult() void ReleaseInstancePublicConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ReleaseReplicaResult.cc b/r-kvstore/src/model/ReleaseReplicaResult.cc index 4564403df..e45d297cf 100644 --- a/r-kvstore/src/model/ReleaseReplicaResult.cc +++ b/r-kvstore/src/model/ReleaseReplicaResult.cc @@ -35,10 +35,13 @@ ReleaseReplicaResult::~ReleaseReplicaResult() void ReleaseReplicaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/RenewInstanceResult.cc b/r-kvstore/src/model/RenewInstanceResult.cc index 3eb40c24b..ad9eea886 100644 --- a/r-kvstore/src/model/RenewInstanceResult.cc +++ b/r-kvstore/src/model/RenewInstanceResult.cc @@ -35,10 +35,13 @@ RenewInstanceResult::~RenewInstanceResult() void RenewInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/r-kvstore/src/model/RenewMultiInstanceResult.cc b/r-kvstore/src/model/RenewMultiInstanceResult.cc index 2dc87df1a..1723dc7d7 100644 --- a/r-kvstore/src/model/RenewMultiInstanceResult.cc +++ b/r-kvstore/src/model/RenewMultiInstanceResult.cc @@ -35,10 +35,13 @@ RenewMultiInstanceResult::~RenewMultiInstanceResult() void RenewMultiInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/r-kvstore/src/model/ResetAccountPasswordResult.cc b/r-kvstore/src/model/ResetAccountPasswordResult.cc index 209bd57d5..26d76b48b 100644 --- a/r-kvstore/src/model/ResetAccountPasswordResult.cc +++ b/r-kvstore/src/model/ResetAccountPasswordResult.cc @@ -35,10 +35,13 @@ ResetAccountPasswordResult::~ResetAccountPasswordResult() void ResetAccountPasswordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/ResetAccountResult.cc b/r-kvstore/src/model/ResetAccountResult.cc index d73bf3c2f..662e4d5ca 100644 --- a/r-kvstore/src/model/ResetAccountResult.cc +++ b/r-kvstore/src/model/ResetAccountResult.cc @@ -35,10 +35,13 @@ ResetAccountResult::~ResetAccountResult() void ResetAccountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/RestartInstanceResult.cc b/r-kvstore/src/model/RestartInstanceResult.cc index 7121d5df9..760e1b246 100644 --- a/r-kvstore/src/model/RestartInstanceResult.cc +++ b/r-kvstore/src/model/RestartInstanceResult.cc @@ -35,10 +35,13 @@ RestartInstanceResult::~RestartInstanceResult() void RestartInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/RestoreInstanceResult.cc b/r-kvstore/src/model/RestoreInstanceResult.cc index 405c16004..e1a613968 100644 --- a/r-kvstore/src/model/RestoreInstanceResult.cc +++ b/r-kvstore/src/model/RestoreInstanceResult.cc @@ -35,10 +35,13 @@ RestoreInstanceResult::~RestoreInstanceResult() void RestoreInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/RestoreSnapshotResult.cc b/r-kvstore/src/model/RestoreSnapshotResult.cc index aa0d96f1d..f5f204708 100644 --- a/r-kvstore/src/model/RestoreSnapshotResult.cc +++ b/r-kvstore/src/model/RestoreSnapshotResult.cc @@ -35,10 +35,13 @@ RestoreSnapshotResult::~RestoreSnapshotResult() void RestoreSnapshotResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/RevokeAccountPrivilegeResult.cc b/r-kvstore/src/model/RevokeAccountPrivilegeResult.cc index 76d4302ae..b800da1d6 100644 --- a/r-kvstore/src/model/RevokeAccountPrivilegeResult.cc +++ b/r-kvstore/src/model/RevokeAccountPrivilegeResult.cc @@ -35,10 +35,13 @@ RevokeAccountPrivilegeResult::~RevokeAccountPrivilegeResult() void RevokeAccountPrivilegeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/SetSnapshotSettingsResult.cc b/r-kvstore/src/model/SetSnapshotSettingsResult.cc index 812bb2519..feb076ab9 100644 --- a/r-kvstore/src/model/SetSnapshotSettingsResult.cc +++ b/r-kvstore/src/model/SetSnapshotSettingsResult.cc @@ -35,10 +35,13 @@ SetSnapshotSettingsResult::~SetSnapshotSettingsResult() void SetSnapshotSettingsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/SwitchNetworkResult.cc b/r-kvstore/src/model/SwitchNetworkResult.cc index aab5e4e54..2eb7f1885 100644 --- a/r-kvstore/src/model/SwitchNetworkResult.cc +++ b/r-kvstore/src/model/SwitchNetworkResult.cc @@ -35,10 +35,13 @@ SwitchNetworkResult::~SwitchNetworkResult() void SwitchNetworkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); diff --git a/r-kvstore/src/model/SwitchTempInstanceResult.cc b/r-kvstore/src/model/SwitchTempInstanceResult.cc index 5a7856796..d2168dafd 100644 --- a/r-kvstore/src/model/SwitchTempInstanceResult.cc +++ b/r-kvstore/src/model/SwitchTempInstanceResult.cc @@ -35,10 +35,13 @@ SwitchTempInstanceResult::~SwitchTempInstanceResult() void SwitchTempInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/TagResourcesResult.cc b/r-kvstore/src/model/TagResourcesResult.cc index eb8939e17..f75e81547 100644 --- a/r-kvstore/src/model/TagResourcesResult.cc +++ b/r-kvstore/src/model/TagResourcesResult.cc @@ -35,10 +35,13 @@ TagResourcesResult::~TagResourcesResult() void TagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/TransformToPrePaidResult.cc b/r-kvstore/src/model/TransformToPrePaidResult.cc index dceed369d..3d311bce8 100644 --- a/r-kvstore/src/model/TransformToPrePaidResult.cc +++ b/r-kvstore/src/model/TransformToPrePaidResult.cc @@ -35,10 +35,13 @@ TransformToPrePaidResult::~TransformToPrePaidResult() void TransformToPrePaidResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/r-kvstore/src/model/UnlinkReplicaInstanceResult.cc b/r-kvstore/src/model/UnlinkReplicaInstanceResult.cc index d410691ba..a00a8659f 100644 --- a/r-kvstore/src/model/UnlinkReplicaInstanceResult.cc +++ b/r-kvstore/src/model/UnlinkReplicaInstanceResult.cc @@ -35,10 +35,13 @@ UnlinkReplicaInstanceResult::~UnlinkReplicaInstanceResult() void UnlinkReplicaInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/r-kvstore/src/model/UntagResourcesResult.cc b/r-kvstore/src/model/UntagResourcesResult.cc index 2d7016ab6..fe0dc97a2 100644 --- a/r-kvstore/src/model/UntagResourcesResult.cc +++ b/r-kvstore/src/model/UntagResourcesResult.cc @@ -35,10 +35,13 @@ UntagResourcesResult::~UntagResourcesResult() void UntagResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/r-kvstore/src/model/VerifyPasswordResult.cc b/r-kvstore/src/model/VerifyPasswordResult.cc index c63d83fa7..4243bc21e 100644 --- a/r-kvstore/src/model/VerifyPasswordResult.cc +++ b/r-kvstore/src/model/VerifyPasswordResult.cc @@ -35,10 +35,13 @@ VerifyPasswordResult::~VerifyPasswordResult() void VerifyPasswordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/CMakeLists.txt b/ram/CMakeLists.txt index 20cbec04d..fe1ab0780 100644 --- a/ram/CMakeLists.txt +++ b/ram/CMakeLists.txt @@ -25,44 +25,44 @@ set(ram_public_header_model include/alibabacloud/ram/model/CreatePolicyResult.h include/alibabacloud/ram/model/ListUsersRequest.h include/alibabacloud/ram/model/ListUsersResult.h - include/alibabacloud/ram/model/GetUserMFAInfoRequest.h - include/alibabacloud/ram/model/GetUserMFAInfoResult.h include/alibabacloud/ram/model/UnbindMFADeviceRequest.h include/alibabacloud/ram/model/UnbindMFADeviceResult.h + include/alibabacloud/ram/model/GetUserMFAInfoRequest.h + include/alibabacloud/ram/model/GetUserMFAInfoResult.h include/alibabacloud/ram/model/BindMFADeviceRequest.h include/alibabacloud/ram/model/BindMFADeviceResult.h include/alibabacloud/ram/model/ListPublicKeysRequest.h include/alibabacloud/ram/model/ListPublicKeysResult.h - include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h - include/alibabacloud/ram/model/AttachPolicyToRoleResult.h - include/alibabacloud/ram/model/AddUserToGroupRequest.h - include/alibabacloud/ram/model/AddUserToGroupResult.h include/alibabacloud/ram/model/GetAccountAliasRequest.h include/alibabacloud/ram/model/GetAccountAliasResult.h include/alibabacloud/ram/model/GetLoginProfileRequest.h include/alibabacloud/ram/model/GetLoginProfileResult.h + include/alibabacloud/ram/model/AttachPolicyToRoleRequest.h + include/alibabacloud/ram/model/AttachPolicyToRoleResult.h + include/alibabacloud/ram/model/AddUserToGroupRequest.h + include/alibabacloud/ram/model/AddUserToGroupResult.h include/alibabacloud/ram/model/ListEntitiesForPolicyRequest.h include/alibabacloud/ram/model/ListEntitiesForPolicyResult.h - include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h - include/alibabacloud/ram/model/SetSecurityPreferenceResult.h include/alibabacloud/ram/model/ListPoliciesForUserRequest.h include/alibabacloud/ram/model/ListPoliciesForUserResult.h + include/alibabacloud/ram/model/SetSecurityPreferenceRequest.h + include/alibabacloud/ram/model/SetSecurityPreferenceResult.h include/alibabacloud/ram/model/UpdateLoginProfileRequest.h include/alibabacloud/ram/model/UpdateLoginProfileResult.h include/alibabacloud/ram/model/ListUsersForGroupRequest.h include/alibabacloud/ram/model/ListUsersForGroupResult.h include/alibabacloud/ram/model/GetPolicyVersionRequest.h include/alibabacloud/ram/model/GetPolicyVersionResult.h - include/alibabacloud/ram/model/DeleteRoleRequest.h - include/alibabacloud/ram/model/DeleteRoleResult.h include/alibabacloud/ram/model/GetUserRequest.h include/alibabacloud/ram/model/GetUserResult.h + include/alibabacloud/ram/model/DeleteRoleRequest.h + include/alibabacloud/ram/model/DeleteRoleResult.h include/alibabacloud/ram/model/DeleteVirtualMFADeviceRequest.h include/alibabacloud/ram/model/DeleteVirtualMFADeviceResult.h - include/alibabacloud/ram/model/UploadPublicKeyRequest.h - include/alibabacloud/ram/model/UploadPublicKeyResult.h include/alibabacloud/ram/model/DeletePolicyVersionRequest.h include/alibabacloud/ram/model/DeletePolicyVersionResult.h + include/alibabacloud/ram/model/UploadPublicKeyRequest.h + include/alibabacloud/ram/model/UploadPublicKeyResult.h include/alibabacloud/ram/model/RemoveUserFromGroupRequest.h include/alibabacloud/ram/model/RemoveUserFromGroupResult.h include/alibabacloud/ram/model/GetAccessKeyLastUsedRequest.h @@ -85,10 +85,10 @@ set(ram_public_header_model include/alibabacloud/ram/model/AttachPolicyToUserResult.h include/alibabacloud/ram/model/CreateVirtualMFADeviceRequest.h include/alibabacloud/ram/model/CreateVirtualMFADeviceResult.h - include/alibabacloud/ram/model/ListGroupsRequest.h - include/alibabacloud/ram/model/ListGroupsResult.h include/alibabacloud/ram/model/DeleteUserRequest.h include/alibabacloud/ram/model/DeleteUserResult.h + include/alibabacloud/ram/model/ListGroupsRequest.h + include/alibabacloud/ram/model/ListGroupsResult.h include/alibabacloud/ram/model/DeletePolicyRequest.h include/alibabacloud/ram/model/DeletePolicyResult.h include/alibabacloud/ram/model/DeleteGroupRequest.h @@ -123,12 +123,12 @@ set(ram_public_header_model include/alibabacloud/ram/model/UpdatePublicKeyResult.h include/alibabacloud/ram/model/CreateGroupRequest.h include/alibabacloud/ram/model/CreateGroupResult.h + include/alibabacloud/ram/model/ListAccessKeysRequest.h + include/alibabacloud/ram/model/ListAccessKeysResult.h include/alibabacloud/ram/model/CreateUserRequest.h include/alibabacloud/ram/model/CreateUserResult.h include/alibabacloud/ram/model/GetPasswordPolicyRequest.h include/alibabacloud/ram/model/GetPasswordPolicyResult.h - include/alibabacloud/ram/model/ListAccessKeysRequest.h - include/alibabacloud/ram/model/ListAccessKeysResult.h include/alibabacloud/ram/model/DetachPolicyFromGroupRequest.h include/alibabacloud/ram/model/DetachPolicyFromGroupResult.h include/alibabacloud/ram/model/SetPasswordPolicyRequest.h @@ -149,10 +149,10 @@ set(ram_public_header_model include/alibabacloud/ram/model/CreateLoginProfileResult.h include/alibabacloud/ram/model/ListVirtualMFADevicesRequest.h include/alibabacloud/ram/model/ListVirtualMFADevicesResult.h - include/alibabacloud/ram/model/UpdateGroupRequest.h - include/alibabacloud/ram/model/UpdateGroupResult.h include/alibabacloud/ram/model/GetPolicyRequest.h - include/alibabacloud/ram/model/GetPolicyResult.h ) + include/alibabacloud/ram/model/GetPolicyResult.h + include/alibabacloud/ram/model/UpdateGroupRequest.h + include/alibabacloud/ram/model/UpdateGroupResult.h ) set(ram_src src/RamClient.cc @@ -160,44 +160,44 @@ set(ram_src src/model/CreatePolicyResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc - src/model/GetUserMFAInfoRequest.cc - src/model/GetUserMFAInfoResult.cc src/model/UnbindMFADeviceRequest.cc src/model/UnbindMFADeviceResult.cc + src/model/GetUserMFAInfoRequest.cc + src/model/GetUserMFAInfoResult.cc src/model/BindMFADeviceRequest.cc src/model/BindMFADeviceResult.cc src/model/ListPublicKeysRequest.cc src/model/ListPublicKeysResult.cc - src/model/AttachPolicyToRoleRequest.cc - src/model/AttachPolicyToRoleResult.cc - src/model/AddUserToGroupRequest.cc - src/model/AddUserToGroupResult.cc src/model/GetAccountAliasRequest.cc src/model/GetAccountAliasResult.cc src/model/GetLoginProfileRequest.cc src/model/GetLoginProfileResult.cc + src/model/AttachPolicyToRoleRequest.cc + src/model/AttachPolicyToRoleResult.cc + src/model/AddUserToGroupRequest.cc + src/model/AddUserToGroupResult.cc src/model/ListEntitiesForPolicyRequest.cc src/model/ListEntitiesForPolicyResult.cc - src/model/SetSecurityPreferenceRequest.cc - src/model/SetSecurityPreferenceResult.cc src/model/ListPoliciesForUserRequest.cc src/model/ListPoliciesForUserResult.cc + src/model/SetSecurityPreferenceRequest.cc + src/model/SetSecurityPreferenceResult.cc src/model/UpdateLoginProfileRequest.cc src/model/UpdateLoginProfileResult.cc src/model/ListUsersForGroupRequest.cc src/model/ListUsersForGroupResult.cc src/model/GetPolicyVersionRequest.cc src/model/GetPolicyVersionResult.cc - src/model/DeleteRoleRequest.cc - src/model/DeleteRoleResult.cc src/model/GetUserRequest.cc src/model/GetUserResult.cc + src/model/DeleteRoleRequest.cc + src/model/DeleteRoleResult.cc src/model/DeleteVirtualMFADeviceRequest.cc src/model/DeleteVirtualMFADeviceResult.cc - src/model/UploadPublicKeyRequest.cc - src/model/UploadPublicKeyResult.cc src/model/DeletePolicyVersionRequest.cc src/model/DeletePolicyVersionResult.cc + src/model/UploadPublicKeyRequest.cc + src/model/UploadPublicKeyResult.cc src/model/RemoveUserFromGroupRequest.cc src/model/RemoveUserFromGroupResult.cc src/model/GetAccessKeyLastUsedRequest.cc @@ -220,10 +220,10 @@ set(ram_src src/model/AttachPolicyToUserResult.cc src/model/CreateVirtualMFADeviceRequest.cc src/model/CreateVirtualMFADeviceResult.cc - src/model/ListGroupsRequest.cc - src/model/ListGroupsResult.cc src/model/DeleteUserRequest.cc src/model/DeleteUserResult.cc + src/model/ListGroupsRequest.cc + src/model/ListGroupsResult.cc src/model/DeletePolicyRequest.cc src/model/DeletePolicyResult.cc src/model/DeleteGroupRequest.cc @@ -258,12 +258,12 @@ set(ram_src src/model/UpdatePublicKeyResult.cc src/model/CreateGroupRequest.cc src/model/CreateGroupResult.cc + src/model/ListAccessKeysRequest.cc + src/model/ListAccessKeysResult.cc src/model/CreateUserRequest.cc src/model/CreateUserResult.cc src/model/GetPasswordPolicyRequest.cc src/model/GetPasswordPolicyResult.cc - src/model/ListAccessKeysRequest.cc - src/model/ListAccessKeysResult.cc src/model/DetachPolicyFromGroupRequest.cc src/model/DetachPolicyFromGroupResult.cc src/model/SetPasswordPolicyRequest.cc @@ -284,10 +284,10 @@ set(ram_src src/model/CreateLoginProfileResult.cc src/model/ListVirtualMFADevicesRequest.cc src/model/ListVirtualMFADevicesResult.cc - src/model/UpdateGroupRequest.cc - src/model/UpdateGroupResult.cc src/model/GetPolicyRequest.cc - src/model/GetPolicyResult.cc ) + src/model/GetPolicyResult.cc + src/model/UpdateGroupRequest.cc + src/model/UpdateGroupResult.cc ) add_library(ram ${LIB_TYPE} ${ram_public_header} diff --git a/ram/include/alibabacloud/ram/RamClient.h b/ram/include/alibabacloud/ram/RamClient.h index 7ccc1190d..832b1a584 100644 --- a/ram/include/alibabacloud/ram/RamClient.h +++ b/ram/include/alibabacloud/ram/RamClient.h @@ -26,44 +26,44 @@ #include "model/CreatePolicyResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" -#include "model/GetUserMFAInfoRequest.h" -#include "model/GetUserMFAInfoResult.h" #include "model/UnbindMFADeviceRequest.h" #include "model/UnbindMFADeviceResult.h" +#include "model/GetUserMFAInfoRequest.h" +#include "model/GetUserMFAInfoResult.h" #include "model/BindMFADeviceRequest.h" #include "model/BindMFADeviceResult.h" #include "model/ListPublicKeysRequest.h" #include "model/ListPublicKeysResult.h" -#include "model/AttachPolicyToRoleRequest.h" -#include "model/AttachPolicyToRoleResult.h" -#include "model/AddUserToGroupRequest.h" -#include "model/AddUserToGroupResult.h" #include "model/GetAccountAliasRequest.h" #include "model/GetAccountAliasResult.h" #include "model/GetLoginProfileRequest.h" #include "model/GetLoginProfileResult.h" +#include "model/AttachPolicyToRoleRequest.h" +#include "model/AttachPolicyToRoleResult.h" +#include "model/AddUserToGroupRequest.h" +#include "model/AddUserToGroupResult.h" #include "model/ListEntitiesForPolicyRequest.h" #include "model/ListEntitiesForPolicyResult.h" -#include "model/SetSecurityPreferenceRequest.h" -#include "model/SetSecurityPreferenceResult.h" #include "model/ListPoliciesForUserRequest.h" #include "model/ListPoliciesForUserResult.h" +#include "model/SetSecurityPreferenceRequest.h" +#include "model/SetSecurityPreferenceResult.h" #include "model/UpdateLoginProfileRequest.h" #include "model/UpdateLoginProfileResult.h" #include "model/ListUsersForGroupRequest.h" #include "model/ListUsersForGroupResult.h" #include "model/GetPolicyVersionRequest.h" #include "model/GetPolicyVersionResult.h" -#include "model/DeleteRoleRequest.h" -#include "model/DeleteRoleResult.h" #include "model/GetUserRequest.h" #include "model/GetUserResult.h" +#include "model/DeleteRoleRequest.h" +#include "model/DeleteRoleResult.h" #include "model/DeleteVirtualMFADeviceRequest.h" #include "model/DeleteVirtualMFADeviceResult.h" -#include "model/UploadPublicKeyRequest.h" -#include "model/UploadPublicKeyResult.h" #include "model/DeletePolicyVersionRequest.h" #include "model/DeletePolicyVersionResult.h" +#include "model/UploadPublicKeyRequest.h" +#include "model/UploadPublicKeyResult.h" #include "model/RemoveUserFromGroupRequest.h" #include "model/RemoveUserFromGroupResult.h" #include "model/GetAccessKeyLastUsedRequest.h" @@ -86,10 +86,10 @@ #include "model/AttachPolicyToUserResult.h" #include "model/CreateVirtualMFADeviceRequest.h" #include "model/CreateVirtualMFADeviceResult.h" -#include "model/ListGroupsRequest.h" -#include "model/ListGroupsResult.h" #include "model/DeleteUserRequest.h" #include "model/DeleteUserResult.h" +#include "model/ListGroupsRequest.h" +#include "model/ListGroupsResult.h" #include "model/DeletePolicyRequest.h" #include "model/DeletePolicyResult.h" #include "model/DeleteGroupRequest.h" @@ -124,12 +124,12 @@ #include "model/UpdatePublicKeyResult.h" #include "model/CreateGroupRequest.h" #include "model/CreateGroupResult.h" +#include "model/ListAccessKeysRequest.h" +#include "model/ListAccessKeysResult.h" #include "model/CreateUserRequest.h" #include "model/CreateUserResult.h" #include "model/GetPasswordPolicyRequest.h" #include "model/GetPasswordPolicyResult.h" -#include "model/ListAccessKeysRequest.h" -#include "model/ListAccessKeysResult.h" #include "model/DetachPolicyFromGroupRequest.h" #include "model/DetachPolicyFromGroupResult.h" #include "model/SetPasswordPolicyRequest.h" @@ -150,10 +150,10 @@ #include "model/CreateLoginProfileResult.h" #include "model/ListVirtualMFADevicesRequest.h" #include "model/ListVirtualMFADevicesResult.h" -#include "model/UpdateGroupRequest.h" -#include "model/UpdateGroupResult.h" #include "model/GetPolicyRequest.h" #include "model/GetPolicyResult.h" +#include "model/UpdateGroupRequest.h" +#include "model/UpdateGroupResult.h" namespace AlibabaCloud @@ -169,39 +169,39 @@ namespace AlibabaCloud typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; - typedef Outcome GetUserMFAInfoOutcome; - typedef std::future GetUserMFAInfoOutcomeCallable; - typedef std::function&)> GetUserMFAInfoAsyncHandler; typedef Outcome UnbindMFADeviceOutcome; typedef std::future UnbindMFADeviceOutcomeCallable; typedef std::function&)> UnbindMFADeviceAsyncHandler; + typedef Outcome GetUserMFAInfoOutcome; + typedef std::future GetUserMFAInfoOutcomeCallable; + typedef std::function&)> GetUserMFAInfoAsyncHandler; typedef Outcome BindMFADeviceOutcome; typedef std::future BindMFADeviceOutcomeCallable; typedef std::function&)> BindMFADeviceAsyncHandler; typedef Outcome ListPublicKeysOutcome; typedef std::future ListPublicKeysOutcomeCallable; typedef std::function&)> ListPublicKeysAsyncHandler; - typedef Outcome AttachPolicyToRoleOutcome; - typedef std::future AttachPolicyToRoleOutcomeCallable; - typedef std::function&)> AttachPolicyToRoleAsyncHandler; - typedef Outcome AddUserToGroupOutcome; - typedef std::future AddUserToGroupOutcomeCallable; - typedef std::function&)> AddUserToGroupAsyncHandler; typedef Outcome GetAccountAliasOutcome; typedef std::future GetAccountAliasOutcomeCallable; typedef std::function&)> GetAccountAliasAsyncHandler; typedef Outcome GetLoginProfileOutcome; typedef std::future GetLoginProfileOutcomeCallable; typedef std::function&)> GetLoginProfileAsyncHandler; + typedef Outcome AttachPolicyToRoleOutcome; + typedef std::future AttachPolicyToRoleOutcomeCallable; + typedef std::function&)> AttachPolicyToRoleAsyncHandler; + typedef Outcome AddUserToGroupOutcome; + typedef std::future AddUserToGroupOutcomeCallable; + typedef std::function&)> AddUserToGroupAsyncHandler; typedef Outcome ListEntitiesForPolicyOutcome; typedef std::future ListEntitiesForPolicyOutcomeCallable; typedef std::function&)> ListEntitiesForPolicyAsyncHandler; - typedef Outcome SetSecurityPreferenceOutcome; - typedef std::future SetSecurityPreferenceOutcomeCallable; - typedef std::function&)> SetSecurityPreferenceAsyncHandler; typedef Outcome ListPoliciesForUserOutcome; typedef std::future ListPoliciesForUserOutcomeCallable; typedef std::function&)> ListPoliciesForUserAsyncHandler; + typedef Outcome SetSecurityPreferenceOutcome; + typedef std::future SetSecurityPreferenceOutcomeCallable; + typedef std::function&)> SetSecurityPreferenceAsyncHandler; typedef Outcome UpdateLoginProfileOutcome; typedef std::future UpdateLoginProfileOutcomeCallable; typedef std::function&)> UpdateLoginProfileAsyncHandler; @@ -211,21 +211,21 @@ namespace AlibabaCloud typedef Outcome GetPolicyVersionOutcome; typedef std::future GetPolicyVersionOutcomeCallable; typedef std::function&)> GetPolicyVersionAsyncHandler; - typedef Outcome DeleteRoleOutcome; - typedef std::future DeleteRoleOutcomeCallable; - typedef std::function&)> DeleteRoleAsyncHandler; typedef Outcome GetUserOutcome; typedef std::future GetUserOutcomeCallable; typedef std::function&)> GetUserAsyncHandler; + typedef Outcome DeleteRoleOutcome; + typedef std::future DeleteRoleOutcomeCallable; + typedef std::function&)> DeleteRoleAsyncHandler; typedef Outcome DeleteVirtualMFADeviceOutcome; typedef std::future DeleteVirtualMFADeviceOutcomeCallable; typedef std::function&)> DeleteVirtualMFADeviceAsyncHandler; - typedef Outcome UploadPublicKeyOutcome; - typedef std::future UploadPublicKeyOutcomeCallable; - typedef std::function&)> UploadPublicKeyAsyncHandler; typedef Outcome DeletePolicyVersionOutcome; typedef std::future DeletePolicyVersionOutcomeCallable; typedef std::function&)> DeletePolicyVersionAsyncHandler; + typedef Outcome UploadPublicKeyOutcome; + typedef std::future UploadPublicKeyOutcomeCallable; + typedef std::function&)> UploadPublicKeyAsyncHandler; typedef Outcome RemoveUserFromGroupOutcome; typedef std::future RemoveUserFromGroupOutcomeCallable; typedef std::function&)> RemoveUserFromGroupAsyncHandler; @@ -259,12 +259,12 @@ namespace AlibabaCloud typedef Outcome CreateVirtualMFADeviceOutcome; typedef std::future CreateVirtualMFADeviceOutcomeCallable; typedef std::function&)> CreateVirtualMFADeviceAsyncHandler; - typedef Outcome ListGroupsOutcome; - typedef std::future ListGroupsOutcomeCallable; - typedef std::function&)> ListGroupsAsyncHandler; typedef Outcome DeleteUserOutcome; typedef std::future DeleteUserOutcomeCallable; typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome ListGroupsOutcome; + typedef std::future ListGroupsOutcomeCallable; + typedef std::function&)> ListGroupsAsyncHandler; typedef Outcome DeletePolicyOutcome; typedef std::future DeletePolicyOutcomeCallable; typedef std::function&)> DeletePolicyAsyncHandler; @@ -316,15 +316,15 @@ namespace AlibabaCloud typedef Outcome CreateGroupOutcome; typedef std::future CreateGroupOutcomeCallable; typedef std::function&)> CreateGroupAsyncHandler; + typedef Outcome ListAccessKeysOutcome; + typedef std::future ListAccessKeysOutcomeCallable; + typedef std::function&)> ListAccessKeysAsyncHandler; typedef Outcome CreateUserOutcome; typedef std::future CreateUserOutcomeCallable; typedef std::function&)> CreateUserAsyncHandler; typedef Outcome GetPasswordPolicyOutcome; typedef std::future GetPasswordPolicyOutcomeCallable; typedef std::function&)> GetPasswordPolicyAsyncHandler; - typedef Outcome ListAccessKeysOutcome; - typedef std::future ListAccessKeysOutcomeCallable; - typedef std::function&)> ListAccessKeysAsyncHandler; typedef Outcome DetachPolicyFromGroupOutcome; typedef std::future DetachPolicyFromGroupOutcomeCallable; typedef std::function&)> DetachPolicyFromGroupAsyncHandler; @@ -355,12 +355,12 @@ namespace AlibabaCloud typedef Outcome ListVirtualMFADevicesOutcome; typedef std::future ListVirtualMFADevicesOutcomeCallable; typedef std::function&)> ListVirtualMFADevicesAsyncHandler; - typedef Outcome UpdateGroupOutcome; - typedef std::future UpdateGroupOutcomeCallable; - typedef std::function&)> UpdateGroupAsyncHandler; typedef Outcome GetPolicyOutcome; typedef std::future GetPolicyOutcomeCallable; typedef std::function&)> GetPolicyAsyncHandler; + typedef Outcome UpdateGroupOutcome; + typedef std::future UpdateGroupOutcomeCallable; + typedef std::function&)> UpdateGroupAsyncHandler; RamClient(const Credentials &credentials, const ClientConfiguration &configuration); RamClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -372,39 +372,39 @@ namespace AlibabaCloud ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; - GetUserMFAInfoOutcome getUserMFAInfo(const Model::GetUserMFAInfoRequest &request)const; - void getUserMFAInfoAsync(const Model::GetUserMFAInfoRequest& request, const GetUserMFAInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserMFAInfoOutcomeCallable getUserMFAInfoCallable(const Model::GetUserMFAInfoRequest& request) const; UnbindMFADeviceOutcome unbindMFADevice(const Model::UnbindMFADeviceRequest &request)const; void unbindMFADeviceAsync(const Model::UnbindMFADeviceRequest& request, const UnbindMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindMFADeviceOutcomeCallable unbindMFADeviceCallable(const Model::UnbindMFADeviceRequest& request) const; + GetUserMFAInfoOutcome getUserMFAInfo(const Model::GetUserMFAInfoRequest &request)const; + void getUserMFAInfoAsync(const Model::GetUserMFAInfoRequest& request, const GetUserMFAInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserMFAInfoOutcomeCallable getUserMFAInfoCallable(const Model::GetUserMFAInfoRequest& request) const; BindMFADeviceOutcome bindMFADevice(const Model::BindMFADeviceRequest &request)const; void bindMFADeviceAsync(const Model::BindMFADeviceRequest& request, const BindMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindMFADeviceOutcomeCallable bindMFADeviceCallable(const Model::BindMFADeviceRequest& request) const; ListPublicKeysOutcome listPublicKeys(const Model::ListPublicKeysRequest &request)const; void listPublicKeysAsync(const Model::ListPublicKeysRequest& request, const ListPublicKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPublicKeysOutcomeCallable listPublicKeysCallable(const Model::ListPublicKeysRequest& request) const; - AttachPolicyToRoleOutcome attachPolicyToRole(const Model::AttachPolicyToRoleRequest &request)const; - void attachPolicyToRoleAsync(const Model::AttachPolicyToRoleRequest& request, const AttachPolicyToRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AttachPolicyToRoleOutcomeCallable attachPolicyToRoleCallable(const Model::AttachPolicyToRoleRequest& request) const; - AddUserToGroupOutcome addUserToGroup(const Model::AddUserToGroupRequest &request)const; - void addUserToGroupAsync(const Model::AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddUserToGroupOutcomeCallable addUserToGroupCallable(const Model::AddUserToGroupRequest& request) const; GetAccountAliasOutcome getAccountAlias(const Model::GetAccountAliasRequest &request)const; void getAccountAliasAsync(const Model::GetAccountAliasRequest& request, const GetAccountAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAccountAliasOutcomeCallable getAccountAliasCallable(const Model::GetAccountAliasRequest& request) const; GetLoginProfileOutcome getLoginProfile(const Model::GetLoginProfileRequest &request)const; void getLoginProfileAsync(const Model::GetLoginProfileRequest& request, const GetLoginProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetLoginProfileOutcomeCallable getLoginProfileCallable(const Model::GetLoginProfileRequest& request) const; + AttachPolicyToRoleOutcome attachPolicyToRole(const Model::AttachPolicyToRoleRequest &request)const; + void attachPolicyToRoleAsync(const Model::AttachPolicyToRoleRequest& request, const AttachPolicyToRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachPolicyToRoleOutcomeCallable attachPolicyToRoleCallable(const Model::AttachPolicyToRoleRequest& request) const; + AddUserToGroupOutcome addUserToGroup(const Model::AddUserToGroupRequest &request)const; + void addUserToGroupAsync(const Model::AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserToGroupOutcomeCallable addUserToGroupCallable(const Model::AddUserToGroupRequest& request) const; ListEntitiesForPolicyOutcome listEntitiesForPolicy(const Model::ListEntitiesForPolicyRequest &request)const; void listEntitiesForPolicyAsync(const Model::ListEntitiesForPolicyRequest& request, const ListEntitiesForPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListEntitiesForPolicyOutcomeCallable listEntitiesForPolicyCallable(const Model::ListEntitiesForPolicyRequest& request) const; - SetSecurityPreferenceOutcome setSecurityPreference(const Model::SetSecurityPreferenceRequest &request)const; - void setSecurityPreferenceAsync(const Model::SetSecurityPreferenceRequest& request, const SetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetSecurityPreferenceOutcomeCallable setSecurityPreferenceCallable(const Model::SetSecurityPreferenceRequest& request) const; ListPoliciesForUserOutcome listPoliciesForUser(const Model::ListPoliciesForUserRequest &request)const; void listPoliciesForUserAsync(const Model::ListPoliciesForUserRequest& request, const ListPoliciesForUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPoliciesForUserOutcomeCallable listPoliciesForUserCallable(const Model::ListPoliciesForUserRequest& request) const; + SetSecurityPreferenceOutcome setSecurityPreference(const Model::SetSecurityPreferenceRequest &request)const; + void setSecurityPreferenceAsync(const Model::SetSecurityPreferenceRequest& request, const SetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetSecurityPreferenceOutcomeCallable setSecurityPreferenceCallable(const Model::SetSecurityPreferenceRequest& request) const; UpdateLoginProfileOutcome updateLoginProfile(const Model::UpdateLoginProfileRequest &request)const; void updateLoginProfileAsync(const Model::UpdateLoginProfileRequest& request, const UpdateLoginProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateLoginProfileOutcomeCallable updateLoginProfileCallable(const Model::UpdateLoginProfileRequest& request) const; @@ -414,21 +414,21 @@ namespace AlibabaCloud GetPolicyVersionOutcome getPolicyVersion(const Model::GetPolicyVersionRequest &request)const; void getPolicyVersionAsync(const Model::GetPolicyVersionRequest& request, const GetPolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPolicyVersionOutcomeCallable getPolicyVersionCallable(const Model::GetPolicyVersionRequest& request) const; - DeleteRoleOutcome deleteRole(const Model::DeleteRoleRequest &request)const; - void deleteRoleAsync(const Model::DeleteRoleRequest& request, const DeleteRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteRoleOutcomeCallable deleteRoleCallable(const Model::DeleteRoleRequest& request) const; GetUserOutcome getUser(const Model::GetUserRequest &request)const; void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + DeleteRoleOutcome deleteRole(const Model::DeleteRoleRequest &request)const; + void deleteRoleAsync(const Model::DeleteRoleRequest& request, const DeleteRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRoleOutcomeCallable deleteRoleCallable(const Model::DeleteRoleRequest& request) const; DeleteVirtualMFADeviceOutcome deleteVirtualMFADevice(const Model::DeleteVirtualMFADeviceRequest &request)const; void deleteVirtualMFADeviceAsync(const Model::DeleteVirtualMFADeviceRequest& request, const DeleteVirtualMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVirtualMFADeviceOutcomeCallable deleteVirtualMFADeviceCallable(const Model::DeleteVirtualMFADeviceRequest& request) const; - UploadPublicKeyOutcome uploadPublicKey(const Model::UploadPublicKeyRequest &request)const; - void uploadPublicKeyAsync(const Model::UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UploadPublicKeyOutcomeCallable uploadPublicKeyCallable(const Model::UploadPublicKeyRequest& request) const; DeletePolicyVersionOutcome deletePolicyVersion(const Model::DeletePolicyVersionRequest &request)const; void deletePolicyVersionAsync(const Model::DeletePolicyVersionRequest& request, const DeletePolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePolicyVersionOutcomeCallable deletePolicyVersionCallable(const Model::DeletePolicyVersionRequest& request) const; + UploadPublicKeyOutcome uploadPublicKey(const Model::UploadPublicKeyRequest &request)const; + void uploadPublicKeyAsync(const Model::UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadPublicKeyOutcomeCallable uploadPublicKeyCallable(const Model::UploadPublicKeyRequest& request) const; RemoveUserFromGroupOutcome removeUserFromGroup(const Model::RemoveUserFromGroupRequest &request)const; void removeUserFromGroupAsync(const Model::RemoveUserFromGroupRequest& request, const RemoveUserFromGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveUserFromGroupOutcomeCallable removeUserFromGroupCallable(const Model::RemoveUserFromGroupRequest& request) const; @@ -462,12 +462,12 @@ namespace AlibabaCloud CreateVirtualMFADeviceOutcome createVirtualMFADevice(const Model::CreateVirtualMFADeviceRequest &request)const; void createVirtualMFADeviceAsync(const Model::CreateVirtualMFADeviceRequest& request, const CreateVirtualMFADeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVirtualMFADeviceOutcomeCallable createVirtualMFADeviceCallable(const Model::CreateVirtualMFADeviceRequest& request) const; - ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const; - void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const; DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; + ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const; + void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const; DeletePolicyOutcome deletePolicy(const Model::DeletePolicyRequest &request)const; void deletePolicyAsync(const Model::DeletePolicyRequest& request, const DeletePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePolicyOutcomeCallable deletePolicyCallable(const Model::DeletePolicyRequest& request) const; @@ -519,15 +519,15 @@ namespace AlibabaCloud CreateGroupOutcome createGroup(const Model::CreateGroupRequest &request)const; void createGroupAsync(const Model::CreateGroupRequest& request, const CreateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateGroupOutcomeCallable createGroupCallable(const Model::CreateGroupRequest& request) const; + ListAccessKeysOutcome listAccessKeys(const Model::ListAccessKeysRequest &request)const; + void listAccessKeysAsync(const Model::ListAccessKeysRequest& request, const ListAccessKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAccessKeysOutcomeCallable listAccessKeysCallable(const Model::ListAccessKeysRequest& request) const; CreateUserOutcome createUser(const Model::CreateUserRequest &request)const; void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const; GetPasswordPolicyOutcome getPasswordPolicy(const Model::GetPasswordPolicyRequest &request)const; void getPasswordPolicyAsync(const Model::GetPasswordPolicyRequest& request, const GetPasswordPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPasswordPolicyOutcomeCallable getPasswordPolicyCallable(const Model::GetPasswordPolicyRequest& request) const; - ListAccessKeysOutcome listAccessKeys(const Model::ListAccessKeysRequest &request)const; - void listAccessKeysAsync(const Model::ListAccessKeysRequest& request, const ListAccessKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAccessKeysOutcomeCallable listAccessKeysCallable(const Model::ListAccessKeysRequest& request) const; DetachPolicyFromGroupOutcome detachPolicyFromGroup(const Model::DetachPolicyFromGroupRequest &request)const; void detachPolicyFromGroupAsync(const Model::DetachPolicyFromGroupRequest& request, const DetachPolicyFromGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachPolicyFromGroupOutcomeCallable detachPolicyFromGroupCallable(const Model::DetachPolicyFromGroupRequest& request) const; @@ -558,12 +558,12 @@ namespace AlibabaCloud ListVirtualMFADevicesOutcome listVirtualMFADevices(const Model::ListVirtualMFADevicesRequest &request)const; void listVirtualMFADevicesAsync(const Model::ListVirtualMFADevicesRequest& request, const ListVirtualMFADevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVirtualMFADevicesOutcomeCallable listVirtualMFADevicesCallable(const Model::ListVirtualMFADevicesRequest& request) const; - UpdateGroupOutcome updateGroup(const Model::UpdateGroupRequest &request)const; - void updateGroupAsync(const Model::UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateGroupOutcomeCallable updateGroupCallable(const Model::UpdateGroupRequest& request) const; GetPolicyOutcome getPolicy(const Model::GetPolicyRequest &request)const; void getPolicyAsync(const Model::GetPolicyRequest& request, const GetPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPolicyOutcomeCallable getPolicyCallable(const Model::GetPolicyRequest& request) const; + UpdateGroupOutcome updateGroup(const Model::UpdateGroupRequest &request)const; + void updateGroupAsync(const Model::UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGroupOutcomeCallable updateGroupCallable(const Model::UpdateGroupRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h b/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h index 1bca8914f..d695bde88 100644 --- a/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h +++ b/ram/include/alibabacloud/ram/model/CreatePolicyVersionRequest.h @@ -41,11 +41,14 @@ namespace AlibabaCloud void setPolicyName(const std::string& policyName); std::string getPolicyDocument()const; void setPolicyDocument(const std::string& policyDocument); + std::string getRotateStrategy()const; + void setRotateStrategy(const std::string& rotateStrategy); private: bool setAsDefault_; std::string policyName_; std::string policyDocument_; + std::string rotateStrategy_; }; } diff --git a/ram/include/alibabacloud/ram/model/GetPolicyResult.h b/ram/include/alibabacloud/ram/model/GetPolicyResult.h index 23c40d3e1..230aeab04 100644 --- a/ram/include/alibabacloud/ram/model/GetPolicyResult.h +++ b/ram/include/alibabacloud/ram/model/GetPolicyResult.h @@ -43,17 +43,26 @@ namespace AlibabaCloud std::string policyDocument; std::string createDate; }; + struct DefaultPolicyVersion + { + std::string versionId; + bool isDefaultVersion; + std::string policyDocument; + std::string createDate; + }; GetPolicyResult(); explicit GetPolicyResult(const std::string &payload); ~GetPolicyResult(); Policy getPolicy()const; + DefaultPolicyVersion getDefaultPolicyVersion()const; protected: void parse(const std::string &payload); private: Policy policy_; + DefaultPolicyVersion defaultPolicyVersion_; }; } diff --git a/ram/src/RamClient.cc b/ram/src/RamClient.cc index b3c4b387e..100112f73 100644 --- a/ram/src/RamClient.cc +++ b/ram/src/RamClient.cc @@ -123,42 +123,6 @@ RamClient::ListUsersOutcomeCallable RamClient::listUsersCallable(const ListUsers return task->get_future(); } -RamClient::GetUserMFAInfoOutcome RamClient::getUserMFAInfo(const GetUserMFAInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetUserMFAInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetUserMFAInfoOutcome(GetUserMFAInfoResult(outcome.result())); - else - return GetUserMFAInfoOutcome(outcome.error()); -} - -void RamClient::getUserMFAInfoAsync(const GetUserMFAInfoRequest& request, const GetUserMFAInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getUserMFAInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::GetUserMFAInfoOutcomeCallable RamClient::getUserMFAInfoCallable(const GetUserMFAInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getUserMFAInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::UnbindMFADeviceOutcome RamClient::unbindMFADevice(const UnbindMFADeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +159,42 @@ RamClient::UnbindMFADeviceOutcomeCallable RamClient::unbindMFADeviceCallable(con return task->get_future(); } +RamClient::GetUserMFAInfoOutcome RamClient::getUserMFAInfo(const GetUserMFAInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserMFAInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserMFAInfoOutcome(GetUserMFAInfoResult(outcome.result())); + else + return GetUserMFAInfoOutcome(outcome.error()); +} + +void RamClient::getUserMFAInfoAsync(const GetUserMFAInfoRequest& request, const GetUserMFAInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserMFAInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::GetUserMFAInfoOutcomeCallable RamClient::getUserMFAInfoCallable(const GetUserMFAInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserMFAInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::BindMFADeviceOutcome RamClient::bindMFADevice(const BindMFADeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,78 +267,6 @@ RamClient::ListPublicKeysOutcomeCallable RamClient::listPublicKeysCallable(const return task->get_future(); } -RamClient::AttachPolicyToRoleOutcome RamClient::attachPolicyToRole(const AttachPolicyToRoleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AttachPolicyToRoleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AttachPolicyToRoleOutcome(AttachPolicyToRoleResult(outcome.result())); - else - return AttachPolicyToRoleOutcome(outcome.error()); -} - -void RamClient::attachPolicyToRoleAsync(const AttachPolicyToRoleRequest& request, const AttachPolicyToRoleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, attachPolicyToRole(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::AttachPolicyToRoleOutcomeCallable RamClient::attachPolicyToRoleCallable(const AttachPolicyToRoleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->attachPolicyToRole(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RamClient::AddUserToGroupOutcome RamClient::addUserToGroup(const AddUserToGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddUserToGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddUserToGroupOutcome(AddUserToGroupResult(outcome.result())); - else - return AddUserToGroupOutcome(outcome.error()); -} - -void RamClient::addUserToGroupAsync(const AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addUserToGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::AddUserToGroupOutcomeCallable RamClient::addUserToGroupCallable(const AddUserToGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addUserToGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::GetAccountAliasOutcome RamClient::getAccountAlias(const GetAccountAliasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +339,78 @@ RamClient::GetLoginProfileOutcomeCallable RamClient::getLoginProfileCallable(con return task->get_future(); } +RamClient::AttachPolicyToRoleOutcome RamClient::attachPolicyToRole(const AttachPolicyToRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachPolicyToRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachPolicyToRoleOutcome(AttachPolicyToRoleResult(outcome.result())); + else + return AttachPolicyToRoleOutcome(outcome.error()); +} + +void RamClient::attachPolicyToRoleAsync(const AttachPolicyToRoleRequest& request, const AttachPolicyToRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachPolicyToRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::AttachPolicyToRoleOutcomeCallable RamClient::attachPolicyToRoleCallable(const AttachPolicyToRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachPolicyToRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RamClient::AddUserToGroupOutcome RamClient::addUserToGroup(const AddUserToGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserToGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserToGroupOutcome(AddUserToGroupResult(outcome.result())); + else + return AddUserToGroupOutcome(outcome.error()); +} + +void RamClient::addUserToGroupAsync(const AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUserToGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::AddUserToGroupOutcomeCallable RamClient::addUserToGroupCallable(const AddUserToGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUserToGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::ListEntitiesForPolicyOutcome RamClient::listEntitiesForPolicy(const ListEntitiesForPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,42 +447,6 @@ RamClient::ListEntitiesForPolicyOutcomeCallable RamClient::listEntitiesForPolicy return task->get_future(); } -RamClient::SetSecurityPreferenceOutcome RamClient::setSecurityPreference(const SetSecurityPreferenceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetSecurityPreferenceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetSecurityPreferenceOutcome(SetSecurityPreferenceResult(outcome.result())); - else - return SetSecurityPreferenceOutcome(outcome.error()); -} - -void RamClient::setSecurityPreferenceAsync(const SetSecurityPreferenceRequest& request, const SetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setSecurityPreference(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::SetSecurityPreferenceOutcomeCallable RamClient::setSecurityPreferenceCallable(const SetSecurityPreferenceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setSecurityPreference(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::ListPoliciesForUserOutcome RamClient::listPoliciesForUser(const ListPoliciesForUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +483,42 @@ RamClient::ListPoliciesForUserOutcomeCallable RamClient::listPoliciesForUserCall return task->get_future(); } +RamClient::SetSecurityPreferenceOutcome RamClient::setSecurityPreference(const SetSecurityPreferenceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetSecurityPreferenceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetSecurityPreferenceOutcome(SetSecurityPreferenceResult(outcome.result())); + else + return SetSecurityPreferenceOutcome(outcome.error()); +} + +void RamClient::setSecurityPreferenceAsync(const SetSecurityPreferenceRequest& request, const SetSecurityPreferenceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setSecurityPreference(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::SetSecurityPreferenceOutcomeCallable RamClient::setSecurityPreferenceCallable(const SetSecurityPreferenceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setSecurityPreference(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::UpdateLoginProfileOutcome RamClient::updateLoginProfile(const UpdateLoginProfileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,42 +627,6 @@ RamClient::GetPolicyVersionOutcomeCallable RamClient::getPolicyVersionCallable(c return task->get_future(); } -RamClient::DeleteRoleOutcome RamClient::deleteRole(const DeleteRoleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteRoleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteRoleOutcome(DeleteRoleResult(outcome.result())); - else - return DeleteRoleOutcome(outcome.error()); -} - -void RamClient::deleteRoleAsync(const DeleteRoleRequest& request, const DeleteRoleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteRole(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::DeleteRoleOutcomeCallable RamClient::deleteRoleCallable(const DeleteRoleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteRole(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::GetUserOutcome RamClient::getUser(const GetUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +663,42 @@ RamClient::GetUserOutcomeCallable RamClient::getUserCallable(const GetUserReques return task->get_future(); } +RamClient::DeleteRoleOutcome RamClient::deleteRole(const DeleteRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRoleOutcome(DeleteRoleResult(outcome.result())); + else + return DeleteRoleOutcome(outcome.error()); +} + +void RamClient::deleteRoleAsync(const DeleteRoleRequest& request, const DeleteRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::DeleteRoleOutcomeCallable RamClient::deleteRoleCallable(const DeleteRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::DeleteVirtualMFADeviceOutcome RamClient::deleteVirtualMFADevice(const DeleteVirtualMFADeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,42 +735,6 @@ RamClient::DeleteVirtualMFADeviceOutcomeCallable RamClient::deleteVirtualMFADevi return task->get_future(); } -RamClient::UploadPublicKeyOutcome RamClient::uploadPublicKey(const UploadPublicKeyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UploadPublicKeyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UploadPublicKeyOutcome(UploadPublicKeyResult(outcome.result())); - else - return UploadPublicKeyOutcome(outcome.error()); -} - -void RamClient::uploadPublicKeyAsync(const UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uploadPublicKey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::UploadPublicKeyOutcomeCallable RamClient::uploadPublicKeyCallable(const UploadPublicKeyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uploadPublicKey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::DeletePolicyVersionOutcome RamClient::deletePolicyVersion(const DeletePolicyVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +771,42 @@ RamClient::DeletePolicyVersionOutcomeCallable RamClient::deletePolicyVersionCall return task->get_future(); } +RamClient::UploadPublicKeyOutcome RamClient::uploadPublicKey(const UploadPublicKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadPublicKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadPublicKeyOutcome(UploadPublicKeyResult(outcome.result())); + else + return UploadPublicKeyOutcome(outcome.error()); +} + +void RamClient::uploadPublicKeyAsync(const UploadPublicKeyRequest& request, const UploadPublicKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadPublicKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UploadPublicKeyOutcomeCallable RamClient::uploadPublicKeyCallable(const UploadPublicKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadPublicKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::RemoveUserFromGroupOutcome RamClient::removeUserFromGroup(const RemoveUserFromGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,42 +1203,6 @@ RamClient::CreateVirtualMFADeviceOutcomeCallable RamClient::createVirtualMFADevi return task->get_future(); } -RamClient::ListGroupsOutcome RamClient::listGroups(const ListGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListGroupsOutcome(ListGroupsResult(outcome.result())); - else - return ListGroupsOutcome(outcome.error()); -} - -void RamClient::listGroupsAsync(const ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::ListGroupsOutcomeCallable RamClient::listGroupsCallable(const ListGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listGroups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::DeleteUserOutcome RamClient::deleteUser(const DeleteUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1239,42 @@ RamClient::DeleteUserOutcomeCallable RamClient::deleteUserCallable(const DeleteU return task->get_future(); } +RamClient::ListGroupsOutcome RamClient::listGroups(const ListGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGroupsOutcome(ListGroupsResult(outcome.result())); + else + return ListGroupsOutcome(outcome.error()); +} + +void RamClient::listGroupsAsync(const ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListGroupsOutcomeCallable RamClient::listGroupsCallable(const ListGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::DeletePolicyOutcome RamClient::deletePolicy(const DeletePolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +1887,42 @@ RamClient::CreateGroupOutcomeCallable RamClient::createGroupCallable(const Creat return task->get_future(); } +RamClient::ListAccessKeysOutcome RamClient::listAccessKeys(const ListAccessKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccessKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccessKeysOutcome(ListAccessKeysResult(outcome.result())); + else + return ListAccessKeysOutcome(outcome.error()); +} + +void RamClient::listAccessKeysAsync(const ListAccessKeysRequest& request, const ListAccessKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccessKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::ListAccessKeysOutcomeCallable RamClient::listAccessKeysCallable(const ListAccessKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccessKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RamClient::CreateUserOutcome RamClient::createUser(const CreateUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,42 +1995,6 @@ RamClient::GetPasswordPolicyOutcomeCallable RamClient::getPasswordPolicyCallable return task->get_future(); } -RamClient::ListAccessKeysOutcome RamClient::listAccessKeys(const ListAccessKeysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAccessKeysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAccessKeysOutcome(ListAccessKeysResult(outcome.result())); - else - return ListAccessKeysOutcome(outcome.error()); -} - -void RamClient::listAccessKeysAsync(const ListAccessKeysRequest& request, const ListAccessKeysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAccessKeys(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::ListAccessKeysOutcomeCallable RamClient::listAccessKeysCallable(const ListAccessKeysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAccessKeys(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::DetachPolicyFromGroupOutcome RamClient::detachPolicyFromGroup(const DetachPolicyFromGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,42 +2355,6 @@ RamClient::ListVirtualMFADevicesOutcomeCallable RamClient::listVirtualMFADevices return task->get_future(); } -RamClient::UpdateGroupOutcome RamClient::updateGroup(const UpdateGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateGroupOutcome(UpdateGroupResult(outcome.result())); - else - return UpdateGroupOutcome(outcome.error()); -} - -void RamClient::updateGroupAsync(const UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RamClient::UpdateGroupOutcomeCallable RamClient::updateGroupCallable(const UpdateGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RamClient::GetPolicyOutcome RamClient::getPolicy(const GetPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,3 +2391,39 @@ RamClient::GetPolicyOutcomeCallable RamClient::getPolicyCallable(const GetPolicy return task->get_future(); } +RamClient::UpdateGroupOutcome RamClient::updateGroup(const UpdateGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGroupOutcome(UpdateGroupResult(outcome.result())); + else + return UpdateGroupOutcome(outcome.error()); +} + +void RamClient::updateGroupAsync(const UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RamClient::UpdateGroupOutcomeCallable RamClient::updateGroupCallable(const UpdateGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ram/src/model/AddUserToGroupRequest.cc b/ram/src/model/AddUserToGroupRequest.cc index 66acc6058..0b8cc571c 100644 --- a/ram/src/model/AddUserToGroupRequest.cc +++ b/ram/src/model/AddUserToGroupRequest.cc @@ -33,7 +33,7 @@ std::string AddUserToGroupRequest::getGroupName()const void AddUserToGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string AddUserToGroupRequest::getUserName()const @@ -44,6 +44,6 @@ std::string AddUserToGroupRequest::getUserName()const void AddUserToGroupRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/AddUserToGroupResult.cc b/ram/src/model/AddUserToGroupResult.cc index 9f1a654c3..8c424f669 100644 --- a/ram/src/model/AddUserToGroupResult.cc +++ b/ram/src/model/AddUserToGroupResult.cc @@ -35,10 +35,13 @@ AddUserToGroupResult::~AddUserToGroupResult() void AddUserToGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/AttachPolicyToGroupRequest.cc b/ram/src/model/AttachPolicyToGroupRequest.cc index 0bab0b930..d32c7de32 100644 --- a/ram/src/model/AttachPolicyToGroupRequest.cc +++ b/ram/src/model/AttachPolicyToGroupRequest.cc @@ -33,7 +33,7 @@ std::string AttachPolicyToGroupRequest::getPolicyType()const void AttachPolicyToGroupRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string AttachPolicyToGroupRequest::getPolicyName()const @@ -44,7 +44,7 @@ std::string AttachPolicyToGroupRequest::getPolicyName()const void AttachPolicyToGroupRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } std::string AttachPolicyToGroupRequest::getGroupName()const @@ -55,6 +55,6 @@ std::string AttachPolicyToGroupRequest::getGroupName()const void AttachPolicyToGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/AttachPolicyToGroupResult.cc b/ram/src/model/AttachPolicyToGroupResult.cc index 3328abf70..8880891bc 100644 --- a/ram/src/model/AttachPolicyToGroupResult.cc +++ b/ram/src/model/AttachPolicyToGroupResult.cc @@ -35,10 +35,13 @@ AttachPolicyToGroupResult::~AttachPolicyToGroupResult() void AttachPolicyToGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/AttachPolicyToRoleRequest.cc b/ram/src/model/AttachPolicyToRoleRequest.cc index 97a0c6164..217dc33eb 100644 --- a/ram/src/model/AttachPolicyToRoleRequest.cc +++ b/ram/src/model/AttachPolicyToRoleRequest.cc @@ -33,7 +33,7 @@ std::string AttachPolicyToRoleRequest::getPolicyType()const void AttachPolicyToRoleRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string AttachPolicyToRoleRequest::getRoleName()const @@ -44,7 +44,7 @@ std::string AttachPolicyToRoleRequest::getRoleName()const void AttachPolicyToRoleRequest::setRoleName(const std::string& roleName) { roleName_ = roleName; - setParameter("RoleName", roleName); + setCoreParameter("RoleName", roleName); } std::string AttachPolicyToRoleRequest::getPolicyName()const @@ -55,6 +55,6 @@ std::string AttachPolicyToRoleRequest::getPolicyName()const void AttachPolicyToRoleRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/AttachPolicyToRoleResult.cc b/ram/src/model/AttachPolicyToRoleResult.cc index 37bd496c5..f5296ae22 100644 --- a/ram/src/model/AttachPolicyToRoleResult.cc +++ b/ram/src/model/AttachPolicyToRoleResult.cc @@ -35,10 +35,13 @@ AttachPolicyToRoleResult::~AttachPolicyToRoleResult() void AttachPolicyToRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/AttachPolicyToUserRequest.cc b/ram/src/model/AttachPolicyToUserRequest.cc index cd3a915ee..d9c6a4d2e 100644 --- a/ram/src/model/AttachPolicyToUserRequest.cc +++ b/ram/src/model/AttachPolicyToUserRequest.cc @@ -33,7 +33,7 @@ std::string AttachPolicyToUserRequest::getPolicyType()const void AttachPolicyToUserRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string AttachPolicyToUserRequest::getPolicyName()const @@ -44,7 +44,7 @@ std::string AttachPolicyToUserRequest::getPolicyName()const void AttachPolicyToUserRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } std::string AttachPolicyToUserRequest::getUserName()const @@ -55,6 +55,6 @@ std::string AttachPolicyToUserRequest::getUserName()const void AttachPolicyToUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/AttachPolicyToUserResult.cc b/ram/src/model/AttachPolicyToUserResult.cc index ae5c55264..c8e503feb 100644 --- a/ram/src/model/AttachPolicyToUserResult.cc +++ b/ram/src/model/AttachPolicyToUserResult.cc @@ -35,10 +35,13 @@ AttachPolicyToUserResult::~AttachPolicyToUserResult() void AttachPolicyToUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/BindMFADeviceRequest.cc b/ram/src/model/BindMFADeviceRequest.cc index fad603c12..ad78a8200 100644 --- a/ram/src/model/BindMFADeviceRequest.cc +++ b/ram/src/model/BindMFADeviceRequest.cc @@ -33,7 +33,7 @@ std::string BindMFADeviceRequest::getSerialNumber()const void BindMFADeviceRequest::setSerialNumber(const std::string& serialNumber) { serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); + setCoreParameter("SerialNumber", serialNumber); } std::string BindMFADeviceRequest::getAuthenticationCode2()const @@ -44,7 +44,7 @@ std::string BindMFADeviceRequest::getAuthenticationCode2()const void BindMFADeviceRequest::setAuthenticationCode2(const std::string& authenticationCode2) { authenticationCode2_ = authenticationCode2; - setParameter("AuthenticationCode2", authenticationCode2); + setCoreParameter("AuthenticationCode2", authenticationCode2); } std::string BindMFADeviceRequest::getAuthenticationCode1()const @@ -55,7 +55,7 @@ std::string BindMFADeviceRequest::getAuthenticationCode1()const void BindMFADeviceRequest::setAuthenticationCode1(const std::string& authenticationCode1) { authenticationCode1_ = authenticationCode1; - setParameter("AuthenticationCode1", authenticationCode1); + setCoreParameter("AuthenticationCode1", authenticationCode1); } std::string BindMFADeviceRequest::getUserName()const @@ -66,6 +66,6 @@ std::string BindMFADeviceRequest::getUserName()const void BindMFADeviceRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/BindMFADeviceResult.cc b/ram/src/model/BindMFADeviceResult.cc index eade75847..07757fd1d 100644 --- a/ram/src/model/BindMFADeviceResult.cc +++ b/ram/src/model/BindMFADeviceResult.cc @@ -35,10 +35,13 @@ BindMFADeviceResult::~BindMFADeviceResult() void BindMFADeviceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/ChangePasswordRequest.cc b/ram/src/model/ChangePasswordRequest.cc index bf16ccc2d..330c7471a 100644 --- a/ram/src/model/ChangePasswordRequest.cc +++ b/ram/src/model/ChangePasswordRequest.cc @@ -33,7 +33,7 @@ std::string ChangePasswordRequest::getOldPassword()const void ChangePasswordRequest::setOldPassword(const std::string& oldPassword) { oldPassword_ = oldPassword; - setParameter("OldPassword", oldPassword); + setCoreParameter("OldPassword", oldPassword); } std::string ChangePasswordRequest::getNewPassword()const @@ -44,6 +44,6 @@ std::string ChangePasswordRequest::getNewPassword()const void ChangePasswordRequest::setNewPassword(const std::string& newPassword) { newPassword_ = newPassword; - setParameter("NewPassword", newPassword); + setCoreParameter("NewPassword", newPassword); } diff --git a/ram/src/model/ChangePasswordResult.cc b/ram/src/model/ChangePasswordResult.cc index 41f7f94d2..df34e6f07 100644 --- a/ram/src/model/ChangePasswordResult.cc +++ b/ram/src/model/ChangePasswordResult.cc @@ -35,10 +35,13 @@ ChangePasswordResult::~ChangePasswordResult() void ChangePasswordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/ClearAccountAliasResult.cc b/ram/src/model/ClearAccountAliasResult.cc index b19592daf..6668cc794 100644 --- a/ram/src/model/ClearAccountAliasResult.cc +++ b/ram/src/model/ClearAccountAliasResult.cc @@ -35,10 +35,13 @@ ClearAccountAliasResult::~ClearAccountAliasResult() void ClearAccountAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/CreateAccessKeyRequest.cc b/ram/src/model/CreateAccessKeyRequest.cc index 3be7ddf01..c062dd63c 100644 --- a/ram/src/model/CreateAccessKeyRequest.cc +++ b/ram/src/model/CreateAccessKeyRequest.cc @@ -33,6 +33,6 @@ std::string CreateAccessKeyRequest::getUserName()const void CreateAccessKeyRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/CreateAccessKeyResult.cc b/ram/src/model/CreateAccessKeyResult.cc index b531348fa..7296feda9 100644 --- a/ram/src/model/CreateAccessKeyResult.cc +++ b/ram/src/model/CreateAccessKeyResult.cc @@ -35,10 +35,13 @@ CreateAccessKeyResult::~CreateAccessKeyResult() void CreateAccessKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto accessKeyNode = value["AccessKey"]; if(!accessKeyNode["AccessKeyId"].isNull()) diff --git a/ram/src/model/CreateGroupRequest.cc b/ram/src/model/CreateGroupRequest.cc index 6f345eadd..ed338207b 100644 --- a/ram/src/model/CreateGroupRequest.cc +++ b/ram/src/model/CreateGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateGroupRequest::getComments()const void CreateGroupRequest::setComments(const std::string& comments) { comments_ = comments; - setParameter("Comments", comments); + setCoreParameter("Comments", comments); } std::string CreateGroupRequest::getGroupName()const @@ -44,6 +44,6 @@ std::string CreateGroupRequest::getGroupName()const void CreateGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/CreateGroupResult.cc b/ram/src/model/CreateGroupResult.cc index ee0f52e0b..ad513dcb9 100644 --- a/ram/src/model/CreateGroupResult.cc +++ b/ram/src/model/CreateGroupResult.cc @@ -35,10 +35,13 @@ CreateGroupResult::~CreateGroupResult() void CreateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; if(!groupNode["GroupName"].isNull()) diff --git a/ram/src/model/CreateLoginProfileRequest.cc b/ram/src/model/CreateLoginProfileRequest.cc index 6f11678ae..2be17d34e 100644 --- a/ram/src/model/CreateLoginProfileRequest.cc +++ b/ram/src/model/CreateLoginProfileRequest.cc @@ -33,7 +33,7 @@ std::string CreateLoginProfileRequest::getPassword()const void CreateLoginProfileRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } bool CreateLoginProfileRequest::getPasswordResetRequired()const @@ -44,7 +44,7 @@ bool CreateLoginProfileRequest::getPasswordResetRequired()const void CreateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) { passwordResetRequired_ = passwordResetRequired; - setParameter("PasswordResetRequired", std::to_string(passwordResetRequired)); + setCoreParameter("PasswordResetRequired", passwordResetRequired ? "true" : "false"); } bool CreateLoginProfileRequest::getMFABindRequired()const @@ -55,7 +55,7 @@ bool CreateLoginProfileRequest::getMFABindRequired()const void CreateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) { mFABindRequired_ = mFABindRequired; - setParameter("MFABindRequired", std::to_string(mFABindRequired)); + setCoreParameter("MFABindRequired", mFABindRequired ? "true" : "false"); } std::string CreateLoginProfileRequest::getUserName()const @@ -66,6 +66,6 @@ std::string CreateLoginProfileRequest::getUserName()const void CreateLoginProfileRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/CreateLoginProfileResult.cc b/ram/src/model/CreateLoginProfileResult.cc index 2bf6bbdd9..c9dcb9761 100644 --- a/ram/src/model/CreateLoginProfileResult.cc +++ b/ram/src/model/CreateLoginProfileResult.cc @@ -35,10 +35,13 @@ CreateLoginProfileResult::~CreateLoginProfileResult() void CreateLoginProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto loginProfileNode = value["LoginProfile"]; if(!loginProfileNode["UserName"].isNull()) diff --git a/ram/src/model/CreatePolicyRequest.cc b/ram/src/model/CreatePolicyRequest.cc index 994f42c61..57a9b982e 100644 --- a/ram/src/model/CreatePolicyRequest.cc +++ b/ram/src/model/CreatePolicyRequest.cc @@ -33,7 +33,7 @@ std::string CreatePolicyRequest::getDescription()const void CreatePolicyRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreatePolicyRequest::getPolicyName()const @@ -44,7 +44,7 @@ std::string CreatePolicyRequest::getPolicyName()const void CreatePolicyRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } std::string CreatePolicyRequest::getPolicyDocument()const @@ -55,6 +55,6 @@ std::string CreatePolicyRequest::getPolicyDocument()const void CreatePolicyRequest::setPolicyDocument(const std::string& policyDocument) { policyDocument_ = policyDocument; - setParameter("PolicyDocument", policyDocument); + setCoreParameter("PolicyDocument", policyDocument); } diff --git a/ram/src/model/CreatePolicyResult.cc b/ram/src/model/CreatePolicyResult.cc index 0288cd98e..f548eadf7 100644 --- a/ram/src/model/CreatePolicyResult.cc +++ b/ram/src/model/CreatePolicyResult.cc @@ -35,10 +35,13 @@ CreatePolicyResult::~CreatePolicyResult() void CreatePolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto policyNode = value["Policy"]; if(!policyNode["PolicyName"].isNull()) diff --git a/ram/src/model/CreatePolicyVersionRequest.cc b/ram/src/model/CreatePolicyVersionRequest.cc index 202adb437..ba8424f87 100644 --- a/ram/src/model/CreatePolicyVersionRequest.cc +++ b/ram/src/model/CreatePolicyVersionRequest.cc @@ -33,7 +33,7 @@ bool CreatePolicyVersionRequest::getSetAsDefault()const void CreatePolicyVersionRequest::setSetAsDefault(bool setAsDefault) { setAsDefault_ = setAsDefault; - setParameter("SetAsDefault", std::to_string(setAsDefault)); + setCoreParameter("SetAsDefault", setAsDefault ? "true" : "false"); } std::string CreatePolicyVersionRequest::getPolicyName()const @@ -44,7 +44,7 @@ std::string CreatePolicyVersionRequest::getPolicyName()const void CreatePolicyVersionRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } std::string CreatePolicyVersionRequest::getPolicyDocument()const @@ -55,6 +55,17 @@ std::string CreatePolicyVersionRequest::getPolicyDocument()const void CreatePolicyVersionRequest::setPolicyDocument(const std::string& policyDocument) { policyDocument_ = policyDocument; - setParameter("PolicyDocument", policyDocument); + setCoreParameter("PolicyDocument", policyDocument); +} + +std::string CreatePolicyVersionRequest::getRotateStrategy()const +{ + return rotateStrategy_; +} + +void CreatePolicyVersionRequest::setRotateStrategy(const std::string& rotateStrategy) +{ + rotateStrategy_ = rotateStrategy; + setCoreParameter("RotateStrategy", rotateStrategy); } diff --git a/ram/src/model/CreatePolicyVersionResult.cc b/ram/src/model/CreatePolicyVersionResult.cc index 5c02a4d71..80e468c13 100644 --- a/ram/src/model/CreatePolicyVersionResult.cc +++ b/ram/src/model/CreatePolicyVersionResult.cc @@ -35,10 +35,13 @@ CreatePolicyVersionResult::~CreatePolicyVersionResult() void CreatePolicyVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto policyVersionNode = value["PolicyVersion"]; if(!policyVersionNode["VersionId"].isNull()) diff --git a/ram/src/model/CreateRoleRequest.cc b/ram/src/model/CreateRoleRequest.cc index 1aa3d997c..a95588068 100644 --- a/ram/src/model/CreateRoleRequest.cc +++ b/ram/src/model/CreateRoleRequest.cc @@ -33,7 +33,7 @@ std::string CreateRoleRequest::getRoleName()const void CreateRoleRequest::setRoleName(const std::string& roleName) { roleName_ = roleName; - setParameter("RoleName", roleName); + setCoreParameter("RoleName", roleName); } std::string CreateRoleRequest::getDescription()const @@ -44,7 +44,7 @@ std::string CreateRoleRequest::getDescription()const void CreateRoleRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateRoleRequest::getAssumeRolePolicyDocument()const @@ -55,6 +55,6 @@ std::string CreateRoleRequest::getAssumeRolePolicyDocument()const void CreateRoleRequest::setAssumeRolePolicyDocument(const std::string& assumeRolePolicyDocument) { assumeRolePolicyDocument_ = assumeRolePolicyDocument; - setParameter("AssumeRolePolicyDocument", assumeRolePolicyDocument); + setCoreParameter("AssumeRolePolicyDocument", assumeRolePolicyDocument); } diff --git a/ram/src/model/CreateRoleResult.cc b/ram/src/model/CreateRoleResult.cc index 4d724e121..84463545f 100644 --- a/ram/src/model/CreateRoleResult.cc +++ b/ram/src/model/CreateRoleResult.cc @@ -35,10 +35,13 @@ CreateRoleResult::~CreateRoleResult() void CreateRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto roleNode = value["Role"]; if(!roleNode["RoleId"].isNull()) diff --git a/ram/src/model/CreateUserRequest.cc b/ram/src/model/CreateUserRequest.cc index 05a08b3df..834fda72d 100644 --- a/ram/src/model/CreateUserRequest.cc +++ b/ram/src/model/CreateUserRequest.cc @@ -33,7 +33,7 @@ std::string CreateUserRequest::getComments()const void CreateUserRequest::setComments(const std::string& comments) { comments_ = comments; - setParameter("Comments", comments); + setCoreParameter("Comments", comments); } std::string CreateUserRequest::getDisplayName()const @@ -44,7 +44,7 @@ std::string CreateUserRequest::getDisplayName()const void CreateUserRequest::setDisplayName(const std::string& displayName) { displayName_ = displayName; - setParameter("DisplayName", displayName); + setCoreParameter("DisplayName", displayName); } std::string CreateUserRequest::getMobilePhone()const @@ -55,7 +55,7 @@ std::string CreateUserRequest::getMobilePhone()const void CreateUserRequest::setMobilePhone(const std::string& mobilePhone) { mobilePhone_ = mobilePhone; - setParameter("MobilePhone", mobilePhone); + setCoreParameter("MobilePhone", mobilePhone); } std::string CreateUserRequest::getEmail()const @@ -66,7 +66,7 @@ std::string CreateUserRequest::getEmail()const void CreateUserRequest::setEmail(const std::string& email) { email_ = email; - setParameter("Email", email); + setCoreParameter("Email", email); } std::string CreateUserRequest::getUserName()const @@ -77,6 +77,6 @@ std::string CreateUserRequest::getUserName()const void CreateUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/CreateUserResult.cc b/ram/src/model/CreateUserResult.cc index de2500bd5..80562fc5a 100644 --- a/ram/src/model/CreateUserResult.cc +++ b/ram/src/model/CreateUserResult.cc @@ -35,10 +35,13 @@ CreateUserResult::~CreateUserResult() void CreateUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; if(!userNode["UserId"].isNull()) diff --git a/ram/src/model/CreateVirtualMFADeviceRequest.cc b/ram/src/model/CreateVirtualMFADeviceRequest.cc index 26a456bd1..3c674f971 100644 --- a/ram/src/model/CreateVirtualMFADeviceRequest.cc +++ b/ram/src/model/CreateVirtualMFADeviceRequest.cc @@ -33,6 +33,6 @@ std::string CreateVirtualMFADeviceRequest::getVirtualMFADeviceName()const void CreateVirtualMFADeviceRequest::setVirtualMFADeviceName(const std::string& virtualMFADeviceName) { virtualMFADeviceName_ = virtualMFADeviceName; - setParameter("VirtualMFADeviceName", virtualMFADeviceName); + setCoreParameter("VirtualMFADeviceName", virtualMFADeviceName); } diff --git a/ram/src/model/CreateVirtualMFADeviceResult.cc b/ram/src/model/CreateVirtualMFADeviceResult.cc index 278caf366..c3abbecc7 100644 --- a/ram/src/model/CreateVirtualMFADeviceResult.cc +++ b/ram/src/model/CreateVirtualMFADeviceResult.cc @@ -35,10 +35,13 @@ CreateVirtualMFADeviceResult::~CreateVirtualMFADeviceResult() void CreateVirtualMFADeviceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto virtualMFADeviceNode = value["VirtualMFADevice"]; if(!virtualMFADeviceNode["SerialNumber"].isNull()) diff --git a/ram/src/model/DeleteAccessKeyRequest.cc b/ram/src/model/DeleteAccessKeyRequest.cc index 98ed10083..757101330 100644 --- a/ram/src/model/DeleteAccessKeyRequest.cc +++ b/ram/src/model/DeleteAccessKeyRequest.cc @@ -33,7 +33,7 @@ std::string DeleteAccessKeyRequest::getUserAccessKeyId()const void DeleteAccessKeyRequest::setUserAccessKeyId(const std::string& userAccessKeyId) { userAccessKeyId_ = userAccessKeyId; - setParameter("UserAccessKeyId", userAccessKeyId); + setCoreParameter("UserAccessKeyId", userAccessKeyId); } std::string DeleteAccessKeyRequest::getUserName()const @@ -44,6 +44,6 @@ std::string DeleteAccessKeyRequest::getUserName()const void DeleteAccessKeyRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/DeleteAccessKeyResult.cc b/ram/src/model/DeleteAccessKeyResult.cc index 879e19066..1fb44c274 100644 --- a/ram/src/model/DeleteAccessKeyResult.cc +++ b/ram/src/model/DeleteAccessKeyResult.cc @@ -35,10 +35,13 @@ DeleteAccessKeyResult::~DeleteAccessKeyResult() void DeleteAccessKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DeleteGroupRequest.cc b/ram/src/model/DeleteGroupRequest.cc index 643847159..444184c04 100644 --- a/ram/src/model/DeleteGroupRequest.cc +++ b/ram/src/model/DeleteGroupRequest.cc @@ -33,6 +33,6 @@ std::string DeleteGroupRequest::getGroupName()const void DeleteGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/DeleteGroupResult.cc b/ram/src/model/DeleteGroupResult.cc index 840d560f7..3c02ba081 100644 --- a/ram/src/model/DeleteGroupResult.cc +++ b/ram/src/model/DeleteGroupResult.cc @@ -35,10 +35,13 @@ DeleteGroupResult::~DeleteGroupResult() void DeleteGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DeleteLoginProfileRequest.cc b/ram/src/model/DeleteLoginProfileRequest.cc index 1588ee519..a37173988 100644 --- a/ram/src/model/DeleteLoginProfileRequest.cc +++ b/ram/src/model/DeleteLoginProfileRequest.cc @@ -33,6 +33,6 @@ std::string DeleteLoginProfileRequest::getUserName()const void DeleteLoginProfileRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/DeleteLoginProfileResult.cc b/ram/src/model/DeleteLoginProfileResult.cc index 76b905d14..a368ff822 100644 --- a/ram/src/model/DeleteLoginProfileResult.cc +++ b/ram/src/model/DeleteLoginProfileResult.cc @@ -35,10 +35,13 @@ DeleteLoginProfileResult::~DeleteLoginProfileResult() void DeleteLoginProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DeletePolicyRequest.cc b/ram/src/model/DeletePolicyRequest.cc index fc5b98cde..caba9960a 100644 --- a/ram/src/model/DeletePolicyRequest.cc +++ b/ram/src/model/DeletePolicyRequest.cc @@ -33,6 +33,6 @@ std::string DeletePolicyRequest::getPolicyName()const void DeletePolicyRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/DeletePolicyResult.cc b/ram/src/model/DeletePolicyResult.cc index dd8274b30..73b2965c8 100644 --- a/ram/src/model/DeletePolicyResult.cc +++ b/ram/src/model/DeletePolicyResult.cc @@ -35,10 +35,13 @@ DeletePolicyResult::~DeletePolicyResult() void DeletePolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DeletePolicyVersionRequest.cc b/ram/src/model/DeletePolicyVersionRequest.cc index 1ea3b7ba0..22ca94bf5 100644 --- a/ram/src/model/DeletePolicyVersionRequest.cc +++ b/ram/src/model/DeletePolicyVersionRequest.cc @@ -33,7 +33,7 @@ std::string DeletePolicyVersionRequest::getVersionId()const void DeletePolicyVersionRequest::setVersionId(const std::string& versionId) { versionId_ = versionId; - setParameter("VersionId", versionId); + setCoreParameter("VersionId", versionId); } std::string DeletePolicyVersionRequest::getPolicyName()const @@ -44,6 +44,6 @@ std::string DeletePolicyVersionRequest::getPolicyName()const void DeletePolicyVersionRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/DeletePolicyVersionResult.cc b/ram/src/model/DeletePolicyVersionResult.cc index 55cf2cc8e..bafea490d 100644 --- a/ram/src/model/DeletePolicyVersionResult.cc +++ b/ram/src/model/DeletePolicyVersionResult.cc @@ -35,10 +35,13 @@ DeletePolicyVersionResult::~DeletePolicyVersionResult() void DeletePolicyVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DeleteRoleRequest.cc b/ram/src/model/DeleteRoleRequest.cc index a0b838e59..54b069dcd 100644 --- a/ram/src/model/DeleteRoleRequest.cc +++ b/ram/src/model/DeleteRoleRequest.cc @@ -33,6 +33,6 @@ std::string DeleteRoleRequest::getRoleName()const void DeleteRoleRequest::setRoleName(const std::string& roleName) { roleName_ = roleName; - setParameter("RoleName", roleName); + setCoreParameter("RoleName", roleName); } diff --git a/ram/src/model/DeleteRoleResult.cc b/ram/src/model/DeleteRoleResult.cc index 96c34a01f..431fead52 100644 --- a/ram/src/model/DeleteRoleResult.cc +++ b/ram/src/model/DeleteRoleResult.cc @@ -35,10 +35,13 @@ DeleteRoleResult::~DeleteRoleResult() void DeleteRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DeleteUserRequest.cc b/ram/src/model/DeleteUserRequest.cc index f6ec00854..7dc79081c 100644 --- a/ram/src/model/DeleteUserRequest.cc +++ b/ram/src/model/DeleteUserRequest.cc @@ -33,6 +33,6 @@ std::string DeleteUserRequest::getUserName()const void DeleteUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/DeleteUserResult.cc b/ram/src/model/DeleteUserResult.cc index 1f7caf385..281480e2b 100644 --- a/ram/src/model/DeleteUserResult.cc +++ b/ram/src/model/DeleteUserResult.cc @@ -35,10 +35,13 @@ DeleteUserResult::~DeleteUserResult() void DeleteUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DeleteVirtualMFADeviceRequest.cc b/ram/src/model/DeleteVirtualMFADeviceRequest.cc index 40376fad2..0afdeaf3a 100644 --- a/ram/src/model/DeleteVirtualMFADeviceRequest.cc +++ b/ram/src/model/DeleteVirtualMFADeviceRequest.cc @@ -33,6 +33,6 @@ std::string DeleteVirtualMFADeviceRequest::getSerialNumber()const void DeleteVirtualMFADeviceRequest::setSerialNumber(const std::string& serialNumber) { serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); + setCoreParameter("SerialNumber", serialNumber); } diff --git a/ram/src/model/DeleteVirtualMFADeviceResult.cc b/ram/src/model/DeleteVirtualMFADeviceResult.cc index 44944e9e0..a178b4f75 100644 --- a/ram/src/model/DeleteVirtualMFADeviceResult.cc +++ b/ram/src/model/DeleteVirtualMFADeviceResult.cc @@ -35,10 +35,13 @@ DeleteVirtualMFADeviceResult::~DeleteVirtualMFADeviceResult() void DeleteVirtualMFADeviceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DetachPolicyFromGroupRequest.cc b/ram/src/model/DetachPolicyFromGroupRequest.cc index 0f1becae0..17bbe73dc 100644 --- a/ram/src/model/DetachPolicyFromGroupRequest.cc +++ b/ram/src/model/DetachPolicyFromGroupRequest.cc @@ -33,7 +33,7 @@ std::string DetachPolicyFromGroupRequest::getPolicyType()const void DetachPolicyFromGroupRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string DetachPolicyFromGroupRequest::getPolicyName()const @@ -44,7 +44,7 @@ std::string DetachPolicyFromGroupRequest::getPolicyName()const void DetachPolicyFromGroupRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } std::string DetachPolicyFromGroupRequest::getGroupName()const @@ -55,6 +55,6 @@ std::string DetachPolicyFromGroupRequest::getGroupName()const void DetachPolicyFromGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/DetachPolicyFromGroupResult.cc b/ram/src/model/DetachPolicyFromGroupResult.cc index 9b572596a..deb4d2b3a 100644 --- a/ram/src/model/DetachPolicyFromGroupResult.cc +++ b/ram/src/model/DetachPolicyFromGroupResult.cc @@ -35,10 +35,13 @@ DetachPolicyFromGroupResult::~DetachPolicyFromGroupResult() void DetachPolicyFromGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DetachPolicyFromRoleRequest.cc b/ram/src/model/DetachPolicyFromRoleRequest.cc index cecf767ff..444e246f6 100644 --- a/ram/src/model/DetachPolicyFromRoleRequest.cc +++ b/ram/src/model/DetachPolicyFromRoleRequest.cc @@ -33,7 +33,7 @@ std::string DetachPolicyFromRoleRequest::getPolicyType()const void DetachPolicyFromRoleRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string DetachPolicyFromRoleRequest::getRoleName()const @@ -44,7 +44,7 @@ std::string DetachPolicyFromRoleRequest::getRoleName()const void DetachPolicyFromRoleRequest::setRoleName(const std::string& roleName) { roleName_ = roleName; - setParameter("RoleName", roleName); + setCoreParameter("RoleName", roleName); } std::string DetachPolicyFromRoleRequest::getPolicyName()const @@ -55,6 +55,6 @@ std::string DetachPolicyFromRoleRequest::getPolicyName()const void DetachPolicyFromRoleRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/DetachPolicyFromRoleResult.cc b/ram/src/model/DetachPolicyFromRoleResult.cc index 3430a24cd..9dc4ff566 100644 --- a/ram/src/model/DetachPolicyFromRoleResult.cc +++ b/ram/src/model/DetachPolicyFromRoleResult.cc @@ -35,10 +35,13 @@ DetachPolicyFromRoleResult::~DetachPolicyFromRoleResult() void DetachPolicyFromRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/DetachPolicyFromUserRequest.cc b/ram/src/model/DetachPolicyFromUserRequest.cc index 036db47d4..bed9936a8 100644 --- a/ram/src/model/DetachPolicyFromUserRequest.cc +++ b/ram/src/model/DetachPolicyFromUserRequest.cc @@ -33,7 +33,7 @@ std::string DetachPolicyFromUserRequest::getPolicyType()const void DetachPolicyFromUserRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string DetachPolicyFromUserRequest::getPolicyName()const @@ -44,7 +44,7 @@ std::string DetachPolicyFromUserRequest::getPolicyName()const void DetachPolicyFromUserRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } std::string DetachPolicyFromUserRequest::getUserName()const @@ -55,6 +55,6 @@ std::string DetachPolicyFromUserRequest::getUserName()const void DetachPolicyFromUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/DetachPolicyFromUserResult.cc b/ram/src/model/DetachPolicyFromUserResult.cc index 6a548361a..78194b113 100644 --- a/ram/src/model/DetachPolicyFromUserResult.cc +++ b/ram/src/model/DetachPolicyFromUserResult.cc @@ -35,10 +35,13 @@ DetachPolicyFromUserResult::~DetachPolicyFromUserResult() void DetachPolicyFromUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/GetAccessKeyLastUsedRequest.cc b/ram/src/model/GetAccessKeyLastUsedRequest.cc index a1f6e0e59..120027ddf 100644 --- a/ram/src/model/GetAccessKeyLastUsedRequest.cc +++ b/ram/src/model/GetAccessKeyLastUsedRequest.cc @@ -33,7 +33,7 @@ std::string GetAccessKeyLastUsedRequest::getUserAccessKeyId()const void GetAccessKeyLastUsedRequest::setUserAccessKeyId(const std::string& userAccessKeyId) { userAccessKeyId_ = userAccessKeyId; - setParameter("UserAccessKeyId", userAccessKeyId); + setCoreParameter("UserAccessKeyId", userAccessKeyId); } std::string GetAccessKeyLastUsedRequest::getUserName()const @@ -44,6 +44,6 @@ std::string GetAccessKeyLastUsedRequest::getUserName()const void GetAccessKeyLastUsedRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/GetAccessKeyLastUsedResult.cc b/ram/src/model/GetAccessKeyLastUsedResult.cc index b476cf081..b8fb04a39 100644 --- a/ram/src/model/GetAccessKeyLastUsedResult.cc +++ b/ram/src/model/GetAccessKeyLastUsedResult.cc @@ -35,10 +35,13 @@ GetAccessKeyLastUsedResult::~GetAccessKeyLastUsedResult() void GetAccessKeyLastUsedResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto accessKeyLastUsedNode = value["AccessKeyLastUsed"]; if(!accessKeyLastUsedNode["LastUsedDate"].isNull()) diff --git a/ram/src/model/GetAccountAliasResult.cc b/ram/src/model/GetAccountAliasResult.cc index c9e68ae83..6a6337270 100644 --- a/ram/src/model/GetAccountAliasResult.cc +++ b/ram/src/model/GetAccountAliasResult.cc @@ -35,10 +35,13 @@ GetAccountAliasResult::~GetAccountAliasResult() void GetAccountAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AccountAlias"].isNull()) accountAlias_ = value["AccountAlias"].asString(); diff --git a/ram/src/model/GetGroupRequest.cc b/ram/src/model/GetGroupRequest.cc index 05f6a7946..f15636a73 100644 --- a/ram/src/model/GetGroupRequest.cc +++ b/ram/src/model/GetGroupRequest.cc @@ -33,6 +33,6 @@ std::string GetGroupRequest::getGroupName()const void GetGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/GetGroupResult.cc b/ram/src/model/GetGroupResult.cc index 282e3b066..616bc7703 100644 --- a/ram/src/model/GetGroupResult.cc +++ b/ram/src/model/GetGroupResult.cc @@ -35,10 +35,13 @@ GetGroupResult::~GetGroupResult() void GetGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; if(!groupNode["GroupName"].isNull()) diff --git a/ram/src/model/GetLoginProfileRequest.cc b/ram/src/model/GetLoginProfileRequest.cc index 3d412c989..78280504a 100644 --- a/ram/src/model/GetLoginProfileRequest.cc +++ b/ram/src/model/GetLoginProfileRequest.cc @@ -33,6 +33,6 @@ std::string GetLoginProfileRequest::getUserName()const void GetLoginProfileRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/GetLoginProfileResult.cc b/ram/src/model/GetLoginProfileResult.cc index 79f5cf0ea..8c8497c4f 100644 --- a/ram/src/model/GetLoginProfileResult.cc +++ b/ram/src/model/GetLoginProfileResult.cc @@ -35,10 +35,13 @@ GetLoginProfileResult::~GetLoginProfileResult() void GetLoginProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto loginProfileNode = value["LoginProfile"]; if(!loginProfileNode["UserName"].isNull()) diff --git a/ram/src/model/GetPasswordPolicyResult.cc b/ram/src/model/GetPasswordPolicyResult.cc index 096132041..77e6ed4c8 100644 --- a/ram/src/model/GetPasswordPolicyResult.cc +++ b/ram/src/model/GetPasswordPolicyResult.cc @@ -35,10 +35,13 @@ GetPasswordPolicyResult::~GetPasswordPolicyResult() void GetPasswordPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto passwordPolicyNode = value["PasswordPolicy"]; if(!passwordPolicyNode["MinimumPasswordLength"].isNull()) diff --git a/ram/src/model/GetPolicyRequest.cc b/ram/src/model/GetPolicyRequest.cc index a82252070..70e707fd3 100644 --- a/ram/src/model/GetPolicyRequest.cc +++ b/ram/src/model/GetPolicyRequest.cc @@ -33,7 +33,7 @@ std::string GetPolicyRequest::getPolicyType()const void GetPolicyRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string GetPolicyRequest::getPolicyName()const @@ -44,6 +44,6 @@ std::string GetPolicyRequest::getPolicyName()const void GetPolicyRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/GetPolicyResult.cc b/ram/src/model/GetPolicyResult.cc index eb71c7393..c16440cc9 100644 --- a/ram/src/model/GetPolicyResult.cc +++ b/ram/src/model/GetPolicyResult.cc @@ -35,10 +35,13 @@ GetPolicyResult::~GetPolicyResult() void GetPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto policyNode = value["Policy"]; if(!policyNode["PolicyName"].isNull()) @@ -57,6 +60,15 @@ void GetPolicyResult::parse(const std::string &payload) policy_.updateDate = policyNode["UpdateDate"].asString(); if(!policyNode["AttachmentCount"].isNull()) policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString()); + auto defaultPolicyVersionNode = value["DefaultPolicyVersion"]; + if(!defaultPolicyVersionNode["VersionId"].isNull()) + defaultPolicyVersion_.versionId = defaultPolicyVersionNode["VersionId"].asString(); + if(!defaultPolicyVersionNode["IsDefaultVersion"].isNull()) + defaultPolicyVersion_.isDefaultVersion = defaultPolicyVersionNode["IsDefaultVersion"].asString() == "true"; + if(!defaultPolicyVersionNode["PolicyDocument"].isNull()) + defaultPolicyVersion_.policyDocument = defaultPolicyVersionNode["PolicyDocument"].asString(); + if(!defaultPolicyVersionNode["CreateDate"].isNull()) + defaultPolicyVersion_.createDate = defaultPolicyVersionNode["CreateDate"].asString(); } @@ -65,3 +77,8 @@ GetPolicyResult::Policy GetPolicyResult::getPolicy()const return policy_; } +GetPolicyResult::DefaultPolicyVersion GetPolicyResult::getDefaultPolicyVersion()const +{ + return defaultPolicyVersion_; +} + diff --git a/ram/src/model/GetPolicyVersionRequest.cc b/ram/src/model/GetPolicyVersionRequest.cc index fcaa5b7e3..f3453245b 100644 --- a/ram/src/model/GetPolicyVersionRequest.cc +++ b/ram/src/model/GetPolicyVersionRequest.cc @@ -33,7 +33,7 @@ std::string GetPolicyVersionRequest::getVersionId()const void GetPolicyVersionRequest::setVersionId(const std::string& versionId) { versionId_ = versionId; - setParameter("VersionId", versionId); + setCoreParameter("VersionId", versionId); } std::string GetPolicyVersionRequest::getPolicyType()const @@ -44,7 +44,7 @@ std::string GetPolicyVersionRequest::getPolicyType()const void GetPolicyVersionRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string GetPolicyVersionRequest::getPolicyName()const @@ -55,6 +55,6 @@ std::string GetPolicyVersionRequest::getPolicyName()const void GetPolicyVersionRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/GetPolicyVersionResult.cc b/ram/src/model/GetPolicyVersionResult.cc index 7e22fa98c..9fdba881e 100644 --- a/ram/src/model/GetPolicyVersionResult.cc +++ b/ram/src/model/GetPolicyVersionResult.cc @@ -35,10 +35,13 @@ GetPolicyVersionResult::~GetPolicyVersionResult() void GetPolicyVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto policyVersionNode = value["PolicyVersion"]; if(!policyVersionNode["VersionId"].isNull()) diff --git a/ram/src/model/GetRoleRequest.cc b/ram/src/model/GetRoleRequest.cc index 697a34372..6e73679bb 100644 --- a/ram/src/model/GetRoleRequest.cc +++ b/ram/src/model/GetRoleRequest.cc @@ -33,6 +33,6 @@ std::string GetRoleRequest::getRoleName()const void GetRoleRequest::setRoleName(const std::string& roleName) { roleName_ = roleName; - setParameter("RoleName", roleName); + setCoreParameter("RoleName", roleName); } diff --git a/ram/src/model/GetRoleResult.cc b/ram/src/model/GetRoleResult.cc index f3261335c..bb37cd07c 100644 --- a/ram/src/model/GetRoleResult.cc +++ b/ram/src/model/GetRoleResult.cc @@ -35,10 +35,13 @@ GetRoleResult::~GetRoleResult() void GetRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto roleNode = value["Role"]; if(!roleNode["RoleId"].isNull()) diff --git a/ram/src/model/GetSecurityPreferenceResult.cc b/ram/src/model/GetSecurityPreferenceResult.cc index 115f35f95..b5be716f6 100644 --- a/ram/src/model/GetSecurityPreferenceResult.cc +++ b/ram/src/model/GetSecurityPreferenceResult.cc @@ -35,10 +35,13 @@ GetSecurityPreferenceResult::~GetSecurityPreferenceResult() void GetSecurityPreferenceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto securityPreferenceNode = value["SecurityPreference"]; auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"]; diff --git a/ram/src/model/GetUserMFAInfoRequest.cc b/ram/src/model/GetUserMFAInfoRequest.cc index 342ffdd47..cbc64db92 100644 --- a/ram/src/model/GetUserMFAInfoRequest.cc +++ b/ram/src/model/GetUserMFAInfoRequest.cc @@ -33,6 +33,6 @@ std::string GetUserMFAInfoRequest::getUserName()const void GetUserMFAInfoRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/GetUserMFAInfoResult.cc b/ram/src/model/GetUserMFAInfoResult.cc index 48e2074c1..486b24e70 100644 --- a/ram/src/model/GetUserMFAInfoResult.cc +++ b/ram/src/model/GetUserMFAInfoResult.cc @@ -35,10 +35,13 @@ GetUserMFAInfoResult::~GetUserMFAInfoResult() void GetUserMFAInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mFADeviceNode = value["MFADevice"]; if(!mFADeviceNode["SerialNumber"].isNull()) diff --git a/ram/src/model/GetUserRequest.cc b/ram/src/model/GetUserRequest.cc index a1378d19f..a431954bb 100644 --- a/ram/src/model/GetUserRequest.cc +++ b/ram/src/model/GetUserRequest.cc @@ -33,6 +33,6 @@ std::string GetUserRequest::getUserName()const void GetUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/GetUserResult.cc b/ram/src/model/GetUserResult.cc index e83406d3c..be0d696d2 100644 --- a/ram/src/model/GetUserResult.cc +++ b/ram/src/model/GetUserResult.cc @@ -35,10 +35,13 @@ GetUserResult::~GetUserResult() void GetUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; if(!userNode["UserId"].isNull()) diff --git a/ram/src/model/ListAccessKeysRequest.cc b/ram/src/model/ListAccessKeysRequest.cc index cee9132d6..ddea61feb 100644 --- a/ram/src/model/ListAccessKeysRequest.cc +++ b/ram/src/model/ListAccessKeysRequest.cc @@ -33,6 +33,6 @@ std::string ListAccessKeysRequest::getUserName()const void ListAccessKeysRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/ListAccessKeysResult.cc b/ram/src/model/ListAccessKeysResult.cc index 08e1130ba..c882edd52 100644 --- a/ram/src/model/ListAccessKeysResult.cc +++ b/ram/src/model/ListAccessKeysResult.cc @@ -35,10 +35,13 @@ ListAccessKeysResult::~ListAccessKeysResult() void ListAccessKeysResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAccessKeys = value["AccessKeys"]["AccessKey"]; for (auto value : allAccessKeys) diff --git a/ram/src/model/ListEntitiesForPolicyRequest.cc b/ram/src/model/ListEntitiesForPolicyRequest.cc index 07d92f89a..2368bc61a 100644 --- a/ram/src/model/ListEntitiesForPolicyRequest.cc +++ b/ram/src/model/ListEntitiesForPolicyRequest.cc @@ -33,7 +33,7 @@ std::string ListEntitiesForPolicyRequest::getPolicyType()const void ListEntitiesForPolicyRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string ListEntitiesForPolicyRequest::getPolicyName()const @@ -44,6 +44,6 @@ std::string ListEntitiesForPolicyRequest::getPolicyName()const void ListEntitiesForPolicyRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/ListEntitiesForPolicyResult.cc b/ram/src/model/ListEntitiesForPolicyResult.cc index 967e5332a..a229df02f 100644 --- a/ram/src/model/ListEntitiesForPolicyResult.cc +++ b/ram/src/model/ListEntitiesForPolicyResult.cc @@ -35,10 +35,13 @@ ListEntitiesForPolicyResult::~ListEntitiesForPolicyResult() void ListEntitiesForPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGroups = value["Groups"]["Group"]; for (auto value : allGroups) diff --git a/ram/src/model/ListGroupsForUserRequest.cc b/ram/src/model/ListGroupsForUserRequest.cc index 6fafb0499..0b9beb34d 100644 --- a/ram/src/model/ListGroupsForUserRequest.cc +++ b/ram/src/model/ListGroupsForUserRequest.cc @@ -33,6 +33,6 @@ std::string ListGroupsForUserRequest::getUserName()const void ListGroupsForUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/ListGroupsForUserResult.cc b/ram/src/model/ListGroupsForUserResult.cc index afdc8d95e..47e146d29 100644 --- a/ram/src/model/ListGroupsForUserResult.cc +++ b/ram/src/model/ListGroupsForUserResult.cc @@ -35,10 +35,13 @@ ListGroupsForUserResult::~ListGroupsForUserResult() void ListGroupsForUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGroups = value["Groups"]["Group"]; for (auto value : allGroups) diff --git a/ram/src/model/ListGroupsRequest.cc b/ram/src/model/ListGroupsRequest.cc index f85f0bb3b..d6e6033cc 100644 --- a/ram/src/model/ListGroupsRequest.cc +++ b/ram/src/model/ListGroupsRequest.cc @@ -33,7 +33,7 @@ std::string ListGroupsRequest::getMarker()const void ListGroupsRequest::setMarker(const std::string& marker) { marker_ = marker; - setParameter("Marker", marker); + setCoreParameter("Marker", marker); } int ListGroupsRequest::getMaxItems()const @@ -44,6 +44,6 @@ int ListGroupsRequest::getMaxItems()const void ListGroupsRequest::setMaxItems(int maxItems) { maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); + setCoreParameter("MaxItems", std::to_string(maxItems)); } diff --git a/ram/src/model/ListGroupsResult.cc b/ram/src/model/ListGroupsResult.cc index 45552b801..ead81779d 100644 --- a/ram/src/model/ListGroupsResult.cc +++ b/ram/src/model/ListGroupsResult.cc @@ -35,10 +35,13 @@ ListGroupsResult::~ListGroupsResult() void ListGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGroups = value["Groups"]["Group"]; for (auto value : allGroups) diff --git a/ram/src/model/ListPoliciesForGroupRequest.cc b/ram/src/model/ListPoliciesForGroupRequest.cc index 8b07ac491..9427987e5 100644 --- a/ram/src/model/ListPoliciesForGroupRequest.cc +++ b/ram/src/model/ListPoliciesForGroupRequest.cc @@ -33,6 +33,6 @@ std::string ListPoliciesForGroupRequest::getGroupName()const void ListPoliciesForGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/ListPoliciesForGroupResult.cc b/ram/src/model/ListPoliciesForGroupResult.cc index 1feef8cf1..42487c821 100644 --- a/ram/src/model/ListPoliciesForGroupResult.cc +++ b/ram/src/model/ListPoliciesForGroupResult.cc @@ -35,10 +35,13 @@ ListPoliciesForGroupResult::~ListPoliciesForGroupResult() void ListPoliciesForGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPolicies = value["Policies"]["Policy"]; for (auto value : allPolicies) diff --git a/ram/src/model/ListPoliciesForRoleRequest.cc b/ram/src/model/ListPoliciesForRoleRequest.cc index 3e2138bfa..adfb9cd69 100644 --- a/ram/src/model/ListPoliciesForRoleRequest.cc +++ b/ram/src/model/ListPoliciesForRoleRequest.cc @@ -33,6 +33,6 @@ std::string ListPoliciesForRoleRequest::getRoleName()const void ListPoliciesForRoleRequest::setRoleName(const std::string& roleName) { roleName_ = roleName; - setParameter("RoleName", roleName); + setCoreParameter("RoleName", roleName); } diff --git a/ram/src/model/ListPoliciesForRoleResult.cc b/ram/src/model/ListPoliciesForRoleResult.cc index 160c1169e..0bd18542c 100644 --- a/ram/src/model/ListPoliciesForRoleResult.cc +++ b/ram/src/model/ListPoliciesForRoleResult.cc @@ -35,10 +35,13 @@ ListPoliciesForRoleResult::~ListPoliciesForRoleResult() void ListPoliciesForRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPolicies = value["Policies"]["Policy"]; for (auto value : allPolicies) diff --git a/ram/src/model/ListPoliciesForUserRequest.cc b/ram/src/model/ListPoliciesForUserRequest.cc index ec14f12f3..a454398c1 100644 --- a/ram/src/model/ListPoliciesForUserRequest.cc +++ b/ram/src/model/ListPoliciesForUserRequest.cc @@ -33,6 +33,6 @@ std::string ListPoliciesForUserRequest::getUserName()const void ListPoliciesForUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/ListPoliciesForUserResult.cc b/ram/src/model/ListPoliciesForUserResult.cc index 3c5d3fd2e..af048c7ab 100644 --- a/ram/src/model/ListPoliciesForUserResult.cc +++ b/ram/src/model/ListPoliciesForUserResult.cc @@ -35,10 +35,13 @@ ListPoliciesForUserResult::~ListPoliciesForUserResult() void ListPoliciesForUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPolicies = value["Policies"]["Policy"]; for (auto value : allPolicies) diff --git a/ram/src/model/ListPoliciesRequest.cc b/ram/src/model/ListPoliciesRequest.cc index 704f91f50..a299a6dec 100644 --- a/ram/src/model/ListPoliciesRequest.cc +++ b/ram/src/model/ListPoliciesRequest.cc @@ -33,7 +33,7 @@ std::string ListPoliciesRequest::getPolicyType()const void ListPoliciesRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string ListPoliciesRequest::getMarker()const @@ -44,7 +44,7 @@ std::string ListPoliciesRequest::getMarker()const void ListPoliciesRequest::setMarker(const std::string& marker) { marker_ = marker; - setParameter("Marker", marker); + setCoreParameter("Marker", marker); } int ListPoliciesRequest::getMaxItems()const @@ -55,6 +55,6 @@ int ListPoliciesRequest::getMaxItems()const void ListPoliciesRequest::setMaxItems(int maxItems) { maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); + setCoreParameter("MaxItems", std::to_string(maxItems)); } diff --git a/ram/src/model/ListPoliciesResult.cc b/ram/src/model/ListPoliciesResult.cc index 1d85cf9da..48d8908de 100644 --- a/ram/src/model/ListPoliciesResult.cc +++ b/ram/src/model/ListPoliciesResult.cc @@ -35,10 +35,13 @@ ListPoliciesResult::~ListPoliciesResult() void ListPoliciesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPolicies = value["Policies"]["Policy"]; for (auto value : allPolicies) diff --git a/ram/src/model/ListPolicyVersionsRequest.cc b/ram/src/model/ListPolicyVersionsRequest.cc index 99e55cb99..6dfd758c5 100644 --- a/ram/src/model/ListPolicyVersionsRequest.cc +++ b/ram/src/model/ListPolicyVersionsRequest.cc @@ -33,7 +33,7 @@ std::string ListPolicyVersionsRequest::getPolicyType()const void ListPolicyVersionsRequest::setPolicyType(const std::string& policyType) { policyType_ = policyType; - setParameter("PolicyType", policyType); + setCoreParameter("PolicyType", policyType); } std::string ListPolicyVersionsRequest::getPolicyName()const @@ -44,6 +44,6 @@ std::string ListPolicyVersionsRequest::getPolicyName()const void ListPolicyVersionsRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/ListPolicyVersionsResult.cc b/ram/src/model/ListPolicyVersionsResult.cc index aaf1bcbcc..d8946d3ad 100644 --- a/ram/src/model/ListPolicyVersionsResult.cc +++ b/ram/src/model/ListPolicyVersionsResult.cc @@ -35,10 +35,13 @@ ListPolicyVersionsResult::~ListPolicyVersionsResult() void ListPolicyVersionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPolicyVersions = value["PolicyVersions"]["PolicyVersion"]; for (auto value : allPolicyVersions) diff --git a/ram/src/model/ListRolesRequest.cc b/ram/src/model/ListRolesRequest.cc index 142b732f6..6fe8c7646 100644 --- a/ram/src/model/ListRolesRequest.cc +++ b/ram/src/model/ListRolesRequest.cc @@ -33,7 +33,7 @@ std::string ListRolesRequest::getMarker()const void ListRolesRequest::setMarker(const std::string& marker) { marker_ = marker; - setParameter("Marker", marker); + setCoreParameter("Marker", marker); } int ListRolesRequest::getMaxItems()const @@ -44,6 +44,6 @@ int ListRolesRequest::getMaxItems()const void ListRolesRequest::setMaxItems(int maxItems) { maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); + setCoreParameter("MaxItems", std::to_string(maxItems)); } diff --git a/ram/src/model/ListRolesResult.cc b/ram/src/model/ListRolesResult.cc index 7719f513d..39b87e03d 100644 --- a/ram/src/model/ListRolesResult.cc +++ b/ram/src/model/ListRolesResult.cc @@ -35,10 +35,13 @@ ListRolesResult::~ListRolesResult() void ListRolesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRoles = value["Roles"]["Role"]; for (auto value : allRoles) diff --git a/ram/src/model/ListUsersForGroupRequest.cc b/ram/src/model/ListUsersForGroupRequest.cc index 6ac07b1a2..8b0aa382d 100644 --- a/ram/src/model/ListUsersForGroupRequest.cc +++ b/ram/src/model/ListUsersForGroupRequest.cc @@ -33,7 +33,7 @@ std::string ListUsersForGroupRequest::getMarker()const void ListUsersForGroupRequest::setMarker(const std::string& marker) { marker_ = marker; - setParameter("Marker", marker); + setCoreParameter("Marker", marker); } int ListUsersForGroupRequest::getMaxItems()const @@ -44,7 +44,7 @@ int ListUsersForGroupRequest::getMaxItems()const void ListUsersForGroupRequest::setMaxItems(int maxItems) { maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); + setCoreParameter("MaxItems", std::to_string(maxItems)); } std::string ListUsersForGroupRequest::getGroupName()const @@ -55,6 +55,6 @@ std::string ListUsersForGroupRequest::getGroupName()const void ListUsersForGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/ListUsersForGroupResult.cc b/ram/src/model/ListUsersForGroupResult.cc index a34560077..d264d576b 100644 --- a/ram/src/model/ListUsersForGroupResult.cc +++ b/ram/src/model/ListUsersForGroupResult.cc @@ -35,10 +35,13 @@ ListUsersForGroupResult::~ListUsersForGroupResult() void ListUsersForGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUsers = value["Users"]["User"]; for (auto value : allUsers) diff --git a/ram/src/model/ListUsersRequest.cc b/ram/src/model/ListUsersRequest.cc index c1f3339fe..6904f854c 100644 --- a/ram/src/model/ListUsersRequest.cc +++ b/ram/src/model/ListUsersRequest.cc @@ -33,7 +33,7 @@ std::string ListUsersRequest::getMarker()const void ListUsersRequest::setMarker(const std::string& marker) { marker_ = marker; - setParameter("Marker", marker); + setCoreParameter("Marker", marker); } int ListUsersRequest::getMaxItems()const @@ -44,6 +44,6 @@ int ListUsersRequest::getMaxItems()const void ListUsersRequest::setMaxItems(int maxItems) { maxItems_ = maxItems; - setParameter("MaxItems", std::to_string(maxItems)); + setCoreParameter("MaxItems", std::to_string(maxItems)); } diff --git a/ram/src/model/ListUsersResult.cc b/ram/src/model/ListUsersResult.cc index f461e112b..86de6711d 100644 --- a/ram/src/model/ListUsersResult.cc +++ b/ram/src/model/ListUsersResult.cc @@ -35,10 +35,13 @@ ListUsersResult::~ListUsersResult() void ListUsersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUsers = value["Users"]["User"]; for (auto value : allUsers) diff --git a/ram/src/model/ListVirtualMFADevicesResult.cc b/ram/src/model/ListVirtualMFADevicesResult.cc index 8e676d2d4..8390e5780 100644 --- a/ram/src/model/ListVirtualMFADevicesResult.cc +++ b/ram/src/model/ListVirtualMFADevicesResult.cc @@ -35,10 +35,13 @@ ListVirtualMFADevicesResult::~ListVirtualMFADevicesResult() void ListVirtualMFADevicesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVirtualMFADevices = value["VirtualMFADevices"]["VirtualMFADevice"]; for (auto value : allVirtualMFADevices) diff --git a/ram/src/model/RemoveUserFromGroupRequest.cc b/ram/src/model/RemoveUserFromGroupRequest.cc index 813f922cd..1f13c9c65 100644 --- a/ram/src/model/RemoveUserFromGroupRequest.cc +++ b/ram/src/model/RemoveUserFromGroupRequest.cc @@ -33,7 +33,7 @@ std::string RemoveUserFromGroupRequest::getGroupName()const void RemoveUserFromGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } std::string RemoveUserFromGroupRequest::getUserName()const @@ -44,6 +44,6 @@ std::string RemoveUserFromGroupRequest::getUserName()const void RemoveUserFromGroupRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/RemoveUserFromGroupResult.cc b/ram/src/model/RemoveUserFromGroupResult.cc index 88e6a8858..3d697c793 100644 --- a/ram/src/model/RemoveUserFromGroupResult.cc +++ b/ram/src/model/RemoveUserFromGroupResult.cc @@ -35,10 +35,13 @@ RemoveUserFromGroupResult::~RemoveUserFromGroupResult() void RemoveUserFromGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/SetAccountAliasRequest.cc b/ram/src/model/SetAccountAliasRequest.cc index d807bdbe3..4b6a6d509 100644 --- a/ram/src/model/SetAccountAliasRequest.cc +++ b/ram/src/model/SetAccountAliasRequest.cc @@ -33,6 +33,6 @@ std::string SetAccountAliasRequest::getAccountAlias()const void SetAccountAliasRequest::setAccountAlias(const std::string& accountAlias) { accountAlias_ = accountAlias; - setParameter("AccountAlias", accountAlias); + setCoreParameter("AccountAlias", accountAlias); } diff --git a/ram/src/model/SetAccountAliasResult.cc b/ram/src/model/SetAccountAliasResult.cc index aa435106a..e8de550ef 100644 --- a/ram/src/model/SetAccountAliasResult.cc +++ b/ram/src/model/SetAccountAliasResult.cc @@ -35,10 +35,13 @@ SetAccountAliasResult::~SetAccountAliasResult() void SetAccountAliasResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/SetDefaultPolicyVersionRequest.cc b/ram/src/model/SetDefaultPolicyVersionRequest.cc index 623337a4f..e9d4ef60c 100644 --- a/ram/src/model/SetDefaultPolicyVersionRequest.cc +++ b/ram/src/model/SetDefaultPolicyVersionRequest.cc @@ -33,7 +33,7 @@ std::string SetDefaultPolicyVersionRequest::getVersionId()const void SetDefaultPolicyVersionRequest::setVersionId(const std::string& versionId) { versionId_ = versionId; - setParameter("VersionId", versionId); + setCoreParameter("VersionId", versionId); } std::string SetDefaultPolicyVersionRequest::getPolicyName()const @@ -44,6 +44,6 @@ std::string SetDefaultPolicyVersionRequest::getPolicyName()const void SetDefaultPolicyVersionRequest::setPolicyName(const std::string& policyName) { policyName_ = policyName; - setParameter("PolicyName", policyName); + setCoreParameter("PolicyName", policyName); } diff --git a/ram/src/model/SetDefaultPolicyVersionResult.cc b/ram/src/model/SetDefaultPolicyVersionResult.cc index 413eef590..d30253ede 100644 --- a/ram/src/model/SetDefaultPolicyVersionResult.cc +++ b/ram/src/model/SetDefaultPolicyVersionResult.cc @@ -35,10 +35,13 @@ SetDefaultPolicyVersionResult::~SetDefaultPolicyVersionResult() void SetDefaultPolicyVersionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/SetPasswordPolicyRequest.cc b/ram/src/model/SetPasswordPolicyRequest.cc index 735f58642..2efdaea54 100644 --- a/ram/src/model/SetPasswordPolicyRequest.cc +++ b/ram/src/model/SetPasswordPolicyRequest.cc @@ -33,7 +33,7 @@ bool SetPasswordPolicyRequest::getRequireNumbers()const void SetPasswordPolicyRequest::setRequireNumbers(bool requireNumbers) { requireNumbers_ = requireNumbers; - setParameter("RequireNumbers", std::to_string(requireNumbers)); + setCoreParameter("RequireNumbers", requireNumbers ? "true" : "false"); } int SetPasswordPolicyRequest::getPasswordReusePrevention()const @@ -44,7 +44,7 @@ int SetPasswordPolicyRequest::getPasswordReusePrevention()const void SetPasswordPolicyRequest::setPasswordReusePrevention(int passwordReusePrevention) { passwordReusePrevention_ = passwordReusePrevention; - setParameter("PasswordReusePrevention", std::to_string(passwordReusePrevention)); + setCoreParameter("PasswordReusePrevention", std::to_string(passwordReusePrevention)); } bool SetPasswordPolicyRequest::getRequireUppercaseCharacters()const @@ -55,7 +55,7 @@ bool SetPasswordPolicyRequest::getRequireUppercaseCharacters()const void SetPasswordPolicyRequest::setRequireUppercaseCharacters(bool requireUppercaseCharacters) { requireUppercaseCharacters_ = requireUppercaseCharacters; - setParameter("RequireUppercaseCharacters", std::to_string(requireUppercaseCharacters)); + setCoreParameter("RequireUppercaseCharacters", requireUppercaseCharacters ? "true" : "false"); } int SetPasswordPolicyRequest::getMaxPasswordAge()const @@ -66,7 +66,7 @@ int SetPasswordPolicyRequest::getMaxPasswordAge()const void SetPasswordPolicyRequest::setMaxPasswordAge(int maxPasswordAge) { maxPasswordAge_ = maxPasswordAge; - setParameter("MaxPasswordAge", std::to_string(maxPasswordAge)); + setCoreParameter("MaxPasswordAge", std::to_string(maxPasswordAge)); } int SetPasswordPolicyRequest::getMaxLoginAttemps()const @@ -77,7 +77,7 @@ int SetPasswordPolicyRequest::getMaxLoginAttemps()const void SetPasswordPolicyRequest::setMaxLoginAttemps(int maxLoginAttemps) { maxLoginAttemps_ = maxLoginAttemps; - setParameter("MaxLoginAttemps", std::to_string(maxLoginAttemps)); + setCoreParameter("MaxLoginAttemps", std::to_string(maxLoginAttemps)); } bool SetPasswordPolicyRequest::getHardExpiry()const @@ -88,7 +88,7 @@ bool SetPasswordPolicyRequest::getHardExpiry()const void SetPasswordPolicyRequest::setHardExpiry(bool hardExpiry) { hardExpiry_ = hardExpiry; - setParameter("HardExpiry", std::to_string(hardExpiry)); + setCoreParameter("HardExpiry", hardExpiry ? "true" : "false"); } int SetPasswordPolicyRequest::getMinimumPasswordLength()const @@ -99,7 +99,7 @@ int SetPasswordPolicyRequest::getMinimumPasswordLength()const void SetPasswordPolicyRequest::setMinimumPasswordLength(int minimumPasswordLength) { minimumPasswordLength_ = minimumPasswordLength; - setParameter("MinimumPasswordLength", std::to_string(minimumPasswordLength)); + setCoreParameter("MinimumPasswordLength", std::to_string(minimumPasswordLength)); } bool SetPasswordPolicyRequest::getRequireLowercaseCharacters()const @@ -110,7 +110,7 @@ bool SetPasswordPolicyRequest::getRequireLowercaseCharacters()const void SetPasswordPolicyRequest::setRequireLowercaseCharacters(bool requireLowercaseCharacters) { requireLowercaseCharacters_ = requireLowercaseCharacters; - setParameter("RequireLowercaseCharacters", std::to_string(requireLowercaseCharacters)); + setCoreParameter("RequireLowercaseCharacters", requireLowercaseCharacters ? "true" : "false"); } bool SetPasswordPolicyRequest::getRequireSymbols()const @@ -121,6 +121,6 @@ bool SetPasswordPolicyRequest::getRequireSymbols()const void SetPasswordPolicyRequest::setRequireSymbols(bool requireSymbols) { requireSymbols_ = requireSymbols; - setParameter("RequireSymbols", std::to_string(requireSymbols)); + setCoreParameter("RequireSymbols", requireSymbols ? "true" : "false"); } diff --git a/ram/src/model/SetPasswordPolicyResult.cc b/ram/src/model/SetPasswordPolicyResult.cc index 6f0f4c356..2e15bff53 100644 --- a/ram/src/model/SetPasswordPolicyResult.cc +++ b/ram/src/model/SetPasswordPolicyResult.cc @@ -35,10 +35,13 @@ SetPasswordPolicyResult::~SetPasswordPolicyResult() void SetPasswordPolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto passwordPolicyNode = value["PasswordPolicy"]; if(!passwordPolicyNode["MinimumPasswordLength"].isNull()) diff --git a/ram/src/model/SetSecurityPreferenceRequest.cc b/ram/src/model/SetSecurityPreferenceRequest.cc index fa710c688..e14b0786f 100644 --- a/ram/src/model/SetSecurityPreferenceRequest.cc +++ b/ram/src/model/SetSecurityPreferenceRequest.cc @@ -33,7 +33,7 @@ bool SetSecurityPreferenceRequest::getAllowUserToManageAccessKeys()const void SetSecurityPreferenceRequest::setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys) { allowUserToManageAccessKeys_ = allowUserToManageAccessKeys; - setParameter("AllowUserToManageAccessKeys", std::to_string(allowUserToManageAccessKeys)); + setCoreParameter("AllowUserToManageAccessKeys", allowUserToManageAccessKeys ? "true" : "false"); } bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices()const @@ -44,7 +44,7 @@ bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices()const void SetSecurityPreferenceRequest::setAllowUserToManageMFADevices(bool allowUserToManageMFADevices) { allowUserToManageMFADevices_ = allowUserToManageMFADevices; - setParameter("AllowUserToManageMFADevices", std::to_string(allowUserToManageMFADevices)); + setCoreParameter("AllowUserToManageMFADevices", allowUserToManageMFADevices ? "true" : "false"); } bool SetSecurityPreferenceRequest::getAllowUserToManagePublicKeys()const @@ -55,7 +55,7 @@ bool SetSecurityPreferenceRequest::getAllowUserToManagePublicKeys()const void SetSecurityPreferenceRequest::setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys) { allowUserToManagePublicKeys_ = allowUserToManagePublicKeys; - setParameter("AllowUserToManagePublicKeys", std::to_string(allowUserToManagePublicKeys)); + setCoreParameter("AllowUserToManagePublicKeys", allowUserToManagePublicKeys ? "true" : "false"); } bool SetSecurityPreferenceRequest::getEnableSaveMFATicket()const @@ -66,7 +66,7 @@ bool SetSecurityPreferenceRequest::getEnableSaveMFATicket()const void SetSecurityPreferenceRequest::setEnableSaveMFATicket(bool enableSaveMFATicket) { enableSaveMFATicket_ = enableSaveMFATicket; - setParameter("EnableSaveMFATicket", std::to_string(enableSaveMFATicket)); + setCoreParameter("EnableSaveMFATicket", enableSaveMFATicket ? "true" : "false"); } std::string SetSecurityPreferenceRequest::getLoginNetworkMasks()const @@ -77,7 +77,7 @@ std::string SetSecurityPreferenceRequest::getLoginNetworkMasks()const void SetSecurityPreferenceRequest::setLoginNetworkMasks(const std::string& loginNetworkMasks) { loginNetworkMasks_ = loginNetworkMasks; - setParameter("LoginNetworkMasks", loginNetworkMasks); + setCoreParameter("LoginNetworkMasks", loginNetworkMasks); } bool SetSecurityPreferenceRequest::getAllowUserToChangePassword()const @@ -88,7 +88,7 @@ bool SetSecurityPreferenceRequest::getAllowUserToChangePassword()const void SetSecurityPreferenceRequest::setAllowUserToChangePassword(bool allowUserToChangePassword) { allowUserToChangePassword_ = allowUserToChangePassword; - setParameter("AllowUserToChangePassword", std::to_string(allowUserToChangePassword)); + setCoreParameter("AllowUserToChangePassword", allowUserToChangePassword ? "true" : "false"); } int SetSecurityPreferenceRequest::getLoginSessionDuration()const @@ -99,6 +99,6 @@ int SetSecurityPreferenceRequest::getLoginSessionDuration()const void SetSecurityPreferenceRequest::setLoginSessionDuration(int loginSessionDuration) { loginSessionDuration_ = loginSessionDuration; - setParameter("LoginSessionDuration", std::to_string(loginSessionDuration)); + setCoreParameter("LoginSessionDuration", std::to_string(loginSessionDuration)); } diff --git a/ram/src/model/SetSecurityPreferenceResult.cc b/ram/src/model/SetSecurityPreferenceResult.cc index 18d942d91..4aa2bf02a 100644 --- a/ram/src/model/SetSecurityPreferenceResult.cc +++ b/ram/src/model/SetSecurityPreferenceResult.cc @@ -35,10 +35,13 @@ SetSecurityPreferenceResult::~SetSecurityPreferenceResult() void SetSecurityPreferenceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto securityPreferenceNode = value["SecurityPreference"]; auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"]; diff --git a/ram/src/model/UnbindMFADeviceRequest.cc b/ram/src/model/UnbindMFADeviceRequest.cc index 626ab50b4..fe7acf620 100644 --- a/ram/src/model/UnbindMFADeviceRequest.cc +++ b/ram/src/model/UnbindMFADeviceRequest.cc @@ -33,6 +33,6 @@ std::string UnbindMFADeviceRequest::getUserName()const void UnbindMFADeviceRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/UnbindMFADeviceResult.cc b/ram/src/model/UnbindMFADeviceResult.cc index c8ab48671..622eb444b 100644 --- a/ram/src/model/UnbindMFADeviceResult.cc +++ b/ram/src/model/UnbindMFADeviceResult.cc @@ -35,10 +35,13 @@ UnbindMFADeviceResult::~UnbindMFADeviceResult() void UnbindMFADeviceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mFADeviceNode = value["MFADevice"]; if(!mFADeviceNode["SerialNumber"].isNull()) diff --git a/ram/src/model/UpdateAccessKeyRequest.cc b/ram/src/model/UpdateAccessKeyRequest.cc index bf728475b..3a0342db5 100644 --- a/ram/src/model/UpdateAccessKeyRequest.cc +++ b/ram/src/model/UpdateAccessKeyRequest.cc @@ -33,7 +33,7 @@ std::string UpdateAccessKeyRequest::getUserAccessKeyId()const void UpdateAccessKeyRequest::setUserAccessKeyId(const std::string& userAccessKeyId) { userAccessKeyId_ = userAccessKeyId; - setParameter("UserAccessKeyId", userAccessKeyId); + setCoreParameter("UserAccessKeyId", userAccessKeyId); } std::string UpdateAccessKeyRequest::getUserName()const @@ -44,7 +44,7 @@ std::string UpdateAccessKeyRequest::getUserName()const void UpdateAccessKeyRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } std::string UpdateAccessKeyRequest::getStatus()const @@ -55,6 +55,6 @@ std::string UpdateAccessKeyRequest::getStatus()const void UpdateAccessKeyRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/ram/src/model/UpdateAccessKeyResult.cc b/ram/src/model/UpdateAccessKeyResult.cc index c3ced3ca0..a14f37f6c 100644 --- a/ram/src/model/UpdateAccessKeyResult.cc +++ b/ram/src/model/UpdateAccessKeyResult.cc @@ -35,10 +35,13 @@ UpdateAccessKeyResult::~UpdateAccessKeyResult() void UpdateAccessKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/UpdateGroupRequest.cc b/ram/src/model/UpdateGroupRequest.cc index 17eef1bc6..b05af94f9 100644 --- a/ram/src/model/UpdateGroupRequest.cc +++ b/ram/src/model/UpdateGroupRequest.cc @@ -33,7 +33,7 @@ std::string UpdateGroupRequest::getNewGroupName()const void UpdateGroupRequest::setNewGroupName(const std::string& newGroupName) { newGroupName_ = newGroupName; - setParameter("NewGroupName", newGroupName); + setCoreParameter("NewGroupName", newGroupName); } std::string UpdateGroupRequest::getNewComments()const @@ -44,7 +44,7 @@ std::string UpdateGroupRequest::getNewComments()const void UpdateGroupRequest::setNewComments(const std::string& newComments) { newComments_ = newComments; - setParameter("NewComments", newComments); + setCoreParameter("NewComments", newComments); } std::string UpdateGroupRequest::getGroupName()const @@ -55,6 +55,6 @@ std::string UpdateGroupRequest::getGroupName()const void UpdateGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; - setParameter("GroupName", groupName); + setCoreParameter("GroupName", groupName); } diff --git a/ram/src/model/UpdateGroupResult.cc b/ram/src/model/UpdateGroupResult.cc index 32d558def..aeb01b073 100644 --- a/ram/src/model/UpdateGroupResult.cc +++ b/ram/src/model/UpdateGroupResult.cc @@ -35,10 +35,13 @@ UpdateGroupResult::~UpdateGroupResult() void UpdateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; if(!groupNode["GroupName"].isNull()) diff --git a/ram/src/model/UpdateLoginProfileRequest.cc b/ram/src/model/UpdateLoginProfileRequest.cc index 663a43a54..6ebece839 100644 --- a/ram/src/model/UpdateLoginProfileRequest.cc +++ b/ram/src/model/UpdateLoginProfileRequest.cc @@ -33,7 +33,7 @@ std::string UpdateLoginProfileRequest::getPassword()const void UpdateLoginProfileRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } bool UpdateLoginProfileRequest::getPasswordResetRequired()const @@ -44,7 +44,7 @@ bool UpdateLoginProfileRequest::getPasswordResetRequired()const void UpdateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) { passwordResetRequired_ = passwordResetRequired; - setParameter("PasswordResetRequired", std::to_string(passwordResetRequired)); + setCoreParameter("PasswordResetRequired", passwordResetRequired ? "true" : "false"); } bool UpdateLoginProfileRequest::getMFABindRequired()const @@ -55,7 +55,7 @@ bool UpdateLoginProfileRequest::getMFABindRequired()const void UpdateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) { mFABindRequired_ = mFABindRequired; - setParameter("MFABindRequired", std::to_string(mFABindRequired)); + setCoreParameter("MFABindRequired", mFABindRequired ? "true" : "false"); } std::string UpdateLoginProfileRequest::getUserName()const @@ -66,6 +66,6 @@ std::string UpdateLoginProfileRequest::getUserName()const void UpdateLoginProfileRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/UpdateLoginProfileResult.cc b/ram/src/model/UpdateLoginProfileResult.cc index 2f13e037c..a6b4b7d35 100644 --- a/ram/src/model/UpdateLoginProfileResult.cc +++ b/ram/src/model/UpdateLoginProfileResult.cc @@ -35,10 +35,13 @@ UpdateLoginProfileResult::~UpdateLoginProfileResult() void UpdateLoginProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/ram/src/model/UpdateRoleRequest.cc b/ram/src/model/UpdateRoleRequest.cc index b7820eb05..4f311a9fb 100644 --- a/ram/src/model/UpdateRoleRequest.cc +++ b/ram/src/model/UpdateRoleRequest.cc @@ -33,7 +33,7 @@ std::string UpdateRoleRequest::getNewAssumeRolePolicyDocument()const void UpdateRoleRequest::setNewAssumeRolePolicyDocument(const std::string& newAssumeRolePolicyDocument) { newAssumeRolePolicyDocument_ = newAssumeRolePolicyDocument; - setParameter("NewAssumeRolePolicyDocument", newAssumeRolePolicyDocument); + setCoreParameter("NewAssumeRolePolicyDocument", newAssumeRolePolicyDocument); } std::string UpdateRoleRequest::getRoleName()const @@ -44,6 +44,6 @@ std::string UpdateRoleRequest::getRoleName()const void UpdateRoleRequest::setRoleName(const std::string& roleName) { roleName_ = roleName; - setParameter("RoleName", roleName); + setCoreParameter("RoleName", roleName); } diff --git a/ram/src/model/UpdateRoleResult.cc b/ram/src/model/UpdateRoleResult.cc index 11160a8ce..89ad665dd 100644 --- a/ram/src/model/UpdateRoleResult.cc +++ b/ram/src/model/UpdateRoleResult.cc @@ -35,10 +35,13 @@ UpdateRoleResult::~UpdateRoleResult() void UpdateRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto roleNode = value["Role"]; if(!roleNode["RoleId"].isNull()) diff --git a/ram/src/model/UpdateUserRequest.cc b/ram/src/model/UpdateUserRequest.cc index 25a5873ac..5d4591ecc 100644 --- a/ram/src/model/UpdateUserRequest.cc +++ b/ram/src/model/UpdateUserRequest.cc @@ -33,7 +33,7 @@ std::string UpdateUserRequest::getNewUserName()const void UpdateUserRequest::setNewUserName(const std::string& newUserName) { newUserName_ = newUserName; - setParameter("NewUserName", newUserName); + setCoreParameter("NewUserName", newUserName); } std::string UpdateUserRequest::getNewDisplayName()const @@ -44,7 +44,7 @@ std::string UpdateUserRequest::getNewDisplayName()const void UpdateUserRequest::setNewDisplayName(const std::string& newDisplayName) { newDisplayName_ = newDisplayName; - setParameter("NewDisplayName", newDisplayName); + setCoreParameter("NewDisplayName", newDisplayName); } std::string UpdateUserRequest::getNewMobilePhone()const @@ -55,7 +55,7 @@ std::string UpdateUserRequest::getNewMobilePhone()const void UpdateUserRequest::setNewMobilePhone(const std::string& newMobilePhone) { newMobilePhone_ = newMobilePhone; - setParameter("NewMobilePhone", newMobilePhone); + setCoreParameter("NewMobilePhone", newMobilePhone); } std::string UpdateUserRequest::getNewComments()const @@ -66,7 +66,7 @@ std::string UpdateUserRequest::getNewComments()const void UpdateUserRequest::setNewComments(const std::string& newComments) { newComments_ = newComments; - setParameter("NewComments", newComments); + setCoreParameter("NewComments", newComments); } std::string UpdateUserRequest::getNewEmail()const @@ -77,7 +77,7 @@ std::string UpdateUserRequest::getNewEmail()const void UpdateUserRequest::setNewEmail(const std::string& newEmail) { newEmail_ = newEmail; - setParameter("NewEmail", newEmail); + setCoreParameter("NewEmail", newEmail); } std::string UpdateUserRequest::getUserName()const @@ -88,6 +88,6 @@ std::string UpdateUserRequest::getUserName()const void UpdateUserRequest::setUserName(const std::string& userName) { userName_ = userName; - setParameter("UserName", userName); + setCoreParameter("UserName", userName); } diff --git a/ram/src/model/UpdateUserResult.cc b/ram/src/model/UpdateUserResult.cc index 7bb3e896b..d33196ab9 100644 --- a/ram/src/model/UpdateUserResult.cc +++ b/ram/src/model/UpdateUserResult.cc @@ -35,10 +35,13 @@ UpdateUserResult::~UpdateUserResult() void UpdateUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; if(!userNode["UserId"].isNull()) diff --git a/rds/CMakeLists.txt b/rds/CMakeLists.txt index d6d813826..599a03e72 100644 --- a/rds/CMakeLists.txt +++ b/rds/CMakeLists.txt @@ -1,82 +1,702 @@ -# -# Copyright 2009-2017 Alibaba Cloud All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(rds_public_header include/alibabacloud/rds/RdsClient.h - include/alibabacloud/rds/RdsExport.h ) - -set(rds_public_header_model ) - + include/alibabacloud/rds/RdsExport.h ) + +set(rds_public_header_model + include/alibabacloud/rds/model/CheckCreateDdrDBInstanceRequest.h + include/alibabacloud/rds/model/CheckCreateDdrDBInstanceResult.h + include/alibabacloud/rds/model/CreateMigrateTaskRequest.h + include/alibabacloud/rds/model/CreateMigrateTaskResult.h + include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h + include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h + include/alibabacloud/rds/model/DeleteBackupRequest.h + include/alibabacloud/rds/model/DeleteBackupResult.h + include/alibabacloud/rds/model/DescribeDatabasesRequest.h + include/alibabacloud/rds/model/DescribeDatabasesResult.h + include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h + include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h + include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h + include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h + include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h + include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h + include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h + include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h + include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h + include/alibabacloud/rds/model/MigrateToOtherRegionRequest.h + include/alibabacloud/rds/model/MigrateToOtherRegionResult.h + include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h + include/alibabacloud/rds/model/DescribeOssDownloadsResult.h + include/alibabacloud/rds/model/ModifyParameterRequest.h + include/alibabacloud/rds/model/ModifyParameterResult.h + include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h + include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h + include/alibabacloud/rds/model/RestartDBInstanceRequest.h + include/alibabacloud/rds/model/RestartDBInstanceResult.h + include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h + include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h + include/alibabacloud/rds/model/DescribeTemplatesListRequest.h + include/alibabacloud/rds/model/DescribeTemplatesListResult.h + include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h + include/alibabacloud/rds/model/ImportDataForSQLServerResult.h + include/alibabacloud/rds/model/CheckResourceRequest.h + include/alibabacloud/rds/model/CheckResourceResult.h + include/alibabacloud/rds/model/ModifySecurityGroupConfigurationRequest.h + include/alibabacloud/rds/model/ModifySecurityGroupConfigurationResult.h + include/alibabacloud/rds/model/DescribeTagsRequest.h + include/alibabacloud/rds/model/DescribeTagsResult.h + include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerRequest.h + include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerResult.h + include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h + include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h + include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h + include/alibabacloud/rds/model/DescribeMigrateTasksResult.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h + include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h + include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h + include/alibabacloud/rds/model/CreateAccountRequest.h + include/alibabacloud/rds/model/CreateAccountResult.h + include/alibabacloud/rds/model/ModifyDBInstancePayTypeRequest.h + include/alibabacloud/rds/model/ModifyDBInstancePayTypeResult.h + include/alibabacloud/rds/model/RecoveryDBInstanceRequest.h + include/alibabacloud/rds/model/RecoveryDBInstanceResult.h + include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h + include/alibabacloud/rds/model/ModifyDBDescriptionResult.h + include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h + include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h + include/alibabacloud/rds/model/RenewInstanceRequest.h + include/alibabacloud/rds/model/RenewInstanceResult.h + include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h + include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyRequest.h + include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyResult.h + include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h + include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h + include/alibabacloud/rds/model/DescribeAvailableCrossRegionRequest.h + include/alibabacloud/rds/model/DescribeAvailableCrossRegionResult.h + include/alibabacloud/rds/model/CancelImportRequest.h + include/alibabacloud/rds/model/CancelImportResult.h + include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationRequest.h + include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationResult.h + include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h + include/alibabacloud/rds/model/ModifyBackupPolicyResult.h + include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h + include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h + include/alibabacloud/rds/model/DescribeParametersRequest.h + include/alibabacloud/rds/model/DescribeParametersResult.h + include/alibabacloud/rds/model/AddTagsToResourceRequest.h + include/alibabacloud/rds/model/AddTagsToResourceResult.h + include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h + include/alibabacloud/rds/model/DescribeBinlogFilesResult.h + include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationResult.h + include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h + include/alibabacloud/rds/model/CreateDiagnosticReportResult.h + include/alibabacloud/rds/model/DescribeReadDBInstanceDelayRequest.h + include/alibabacloud/rds/model/DescribeReadDBInstanceDelayResult.h + include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h + include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h + include/alibabacloud/rds/model/CloneDBInstanceRequest.h + include/alibabacloud/rds/model/CloneDBInstanceResult.h + include/alibabacloud/rds/model/DescribeTasksRequest.h + include/alibabacloud/rds/model/DescribeTasksResult.h + include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h + include/alibabacloud/rds/model/DescribeRenewalPriceResult.h + include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h + include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h + include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h + include/alibabacloud/rds/model/CheckInstanceExistRequest.h + include/alibabacloud/rds/model/CheckInstanceExistResult.h + include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h + include/alibabacloud/rds/model/CreateTempDBInstanceResult.h + include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h + include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h + include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h + include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeRequest.h + include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeResult.h + include/alibabacloud/rds/model/DescribeBackupsRequest.h + include/alibabacloud/rds/model/DescribeBackupsResult.h + include/alibabacloud/rds/model/CreateDatabaseRequest.h + include/alibabacloud/rds/model/CreateDatabaseResult.h + include/alibabacloud/rds/model/DescribeCollationTimeZonesRequest.h + include/alibabacloud/rds/model/DescribeCollationTimeZonesResult.h + include/alibabacloud/rds/model/DeleteDBInstanceRequest.h + include/alibabacloud/rds/model/DeleteDBInstanceResult.h + include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.h + include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeResult.h + include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h + include/alibabacloud/rds/model/SwitchDBInstanceVpcRequest.h + include/alibabacloud/rds/model/SwitchDBInstanceVpcResult.h + include/alibabacloud/rds/model/RestoreDBInstanceRequest.h + include/alibabacloud/rds/model/RestoreDBInstanceResult.h + include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h + include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h + include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h + include/alibabacloud/rds/model/MigrateSecurityIPModeRequest.h + include/alibabacloud/rds/model/MigrateSecurityIPModeResult.h + include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h + include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h + include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h + include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h + include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h + include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h + include/alibabacloud/rds/model/ModifySecurityIpsRequest.h + include/alibabacloud/rds/model/ModifySecurityIpsResult.h + include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h + include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h + include/alibabacloud/rds/model/RestoreTableRequest.h + include/alibabacloud/rds/model/RestoreTableResult.h + include/alibabacloud/rds/model/CreateOnlineDatabaseTaskRequest.h + include/alibabacloud/rds/model/CreateOnlineDatabaseTaskResult.h + include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h + include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h + include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h + include/alibabacloud/rds/model/GrantOperatorPermissionResult.h + include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeRequest.h + include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeResult.h + include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameResult.h + include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h + include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h + include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h + include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h + include/alibabacloud/rds/model/DescribeDBInstancesRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesResult.h + include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertRequest.h + include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertResult.h + include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesRequest.h + include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesResult.h + include/alibabacloud/rds/model/DescribeBackupDatabaseRequest.h + include/alibabacloud/rds/model/DescribeBackupDatabaseResult.h + include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h + include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h + include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h + include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h + include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h + include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h + include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h + include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h + include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h + include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h + include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesRequest.h + include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesResult.h + include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoRequest.h + include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoResult.h + include/alibabacloud/rds/model/CopyDatabaseRequest.h + include/alibabacloud/rds/model/CopyDatabaseResult.h + include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h + include/alibabacloud/rds/model/CreateDBInstanceRequest.h + include/alibabacloud/rds/model/CreateDBInstanceResult.h + include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h + include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h + include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h + include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h + include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h + include/alibabacloud/rds/model/DescribeAvailableResourceRequest.h + include/alibabacloud/rds/model/DescribeAvailableResourceResult.h + include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h + include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h + include/alibabacloud/rds/model/DescribeCloudDbExpertServiceRequest.h + include/alibabacloud/rds/model/DescribeCloudDbExpertServiceResult.h + include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.h + include/alibabacloud/rds/model/EvaluateSupportByokShowRequest.h + include/alibabacloud/rds/model/EvaluateSupportByokShowResult.h + include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h + include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h + include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h + include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h + include/alibabacloud/rds/model/CreateDdrInstanceRequest.h + include/alibabacloud/rds/model/CreateDdrInstanceResult.h + include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerRequest.h + include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerResult.h + include/alibabacloud/rds/model/DescribeSlowLogsRequest.h + include/alibabacloud/rds/model/DescribeSlowLogsResult.h + include/alibabacloud/rds/model/CreateBackupRequest.h + include/alibabacloud/rds/model/CreateBackupResult.h + include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h + include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h + include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h + include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h + include/alibabacloud/rds/model/DescribeCrossRegionBackupsRequest.h + include/alibabacloud/rds/model/DescribeCrossRegionBackupsResult.h + include/alibabacloud/rds/model/ModifyResourceGroupRequest.h + include/alibabacloud/rds/model/ModifyResourceGroupResult.h + include/alibabacloud/rds/model/DescribeProxyFunctionSupportRequest.h + include/alibabacloud/rds/model/DescribeProxyFunctionSupportResult.h + include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h + include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h + include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyRequest.h + include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyResult.h + include/alibabacloud/rds/model/ResetAccountRequest.h + include/alibabacloud/rds/model/ResetAccountResult.h + include/alibabacloud/rds/model/DescribeResourceUsageRequest.h + include/alibabacloud/rds/model/DescribeResourceUsageResult.h + include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceRequest.h + include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceResult.h + include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h + include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h + include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionRequest.h + include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionResult.h + include/alibabacloud/rds/model/DescribeTaskInfoRequest.h + include/alibabacloud/rds/model/DescribeTaskInfoResult.h + include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayRequest.h + include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayResult.h + include/alibabacloud/rds/model/DescribeRegionsRequest.h + include/alibabacloud/rds/model/DescribeRegionsResult.h + include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h + include/alibabacloud/rds/model/MigrateToOtherZoneResult.h + include/alibabacloud/rds/model/DeleteAccountRequest.h + include/alibabacloud/rds/model/DeleteAccountResult.h + include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h + include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h + include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h + include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h + include/alibabacloud/rds/model/DescribeLogBackupFilesRequest.h + include/alibabacloud/rds/model/DescribeLogBackupFilesResult.h + include/alibabacloud/rds/model/DescribeAvailableInstanceClassRequest.h + include/alibabacloud/rds/model/DescribeAvailableInstanceClassResult.h + include/alibabacloud/rds/model/DescribeErrorLogsRequest.h + include/alibabacloud/rds/model/DescribeErrorLogsResult.h + include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h + include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h + include/alibabacloud/rds/model/ResetAccountPasswordRequest.h + include/alibabacloud/rds/model/ResetAccountPasswordResult.h + include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationResult.h + include/alibabacloud/rds/model/DescribeAccountsRequest.h + include/alibabacloud/rds/model/DescribeAccountsResult.h + include/alibabacloud/rds/model/DescribePriceRequest.h + include/alibabacloud/rds/model/DescribePriceResult.h + include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h + include/alibabacloud/rds/model/DescribeMetaListRequest.h + include/alibabacloud/rds/model/DescribeMetaListResult.h + include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h + include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h + include/alibabacloud/rds/model/DescribeSQLReportsRequest.h + include/alibabacloud/rds/model/DescribeSQLReportsResult.h + include/alibabacloud/rds/model/DescribeBackupTasksRequest.h + include/alibabacloud/rds/model/DescribeBackupTasksResult.h + include/alibabacloud/rds/model/DeleteDatabaseRequest.h + include/alibabacloud/rds/model/DeleteDatabaseResult.h + include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h + include/alibabacloud/rds/model/DescribeBackupPolicyResult.h + include/alibabacloud/rds/model/ModifyCollationTimeZoneRequest.h + include/alibabacloud/rds/model/ModifyCollationTimeZoneResult.h + include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h + include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h + include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h + include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h + include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h + include/alibabacloud/rds/model/ResetAccountForPGRequest.h + include/alibabacloud/rds/model/ResetAccountForPGResult.h ) + set(rds_src - src/RdsClient.cc ) - -add_library(rds ${LIB_TYPE} - ${rds_public_header} - ${rds_public_header_model} - ${rds_src}) - -set_target_properties(rds - 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}rds - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(rds - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_RDS_LIBRARY) -endif() - -target_include_directories(rds - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(rds - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(rds - jsoncpp) - target_include_directories(rds - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(rds - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(rds - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(rds - PRIVATE /usr/include/jsoncpp) - target_link_libraries(rds - jsoncpp) -endif() - -install(FILES ${rds_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/rds) -install(FILES ${rds_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/rds/model) -install(TARGETS rds - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/RdsClient.cc + src/model/CheckCreateDdrDBInstanceRequest.cc + src/model/CheckCreateDdrDBInstanceResult.cc + src/model/CreateMigrateTaskRequest.cc + src/model/CreateMigrateTaskResult.cc + src/model/CheckRecoveryConditionsRequest.cc + src/model/CheckRecoveryConditionsResult.cc + src/model/DeleteBackupRequest.cc + src/model/DeleteBackupResult.cc + src/model/DescribeDatabasesRequest.cc + src/model/DescribeDatabasesResult.cc + src/model/DescribeDBInstancesByExpireTimeRequest.cc + src/model/DescribeDBInstancesByExpireTimeResult.cc + src/model/SwitchDBInstanceNetTypeRequest.cc + src/model/SwitchDBInstanceNetTypeResult.cc + src/model/DescribeDBInstanceMonitorRequest.cc + src/model/DescribeDBInstanceMonitorResult.cc + src/model/ModifyAccountDescriptionRequest.cc + src/model/ModifyAccountDescriptionResult.cc + src/model/DescribeDBInstanceHAConfigRequest.cc + src/model/DescribeDBInstanceHAConfigResult.cc + src/model/CreateReadOnlyDBInstanceRequest.cc + src/model/CreateReadOnlyDBInstanceResult.cc + src/model/MigrateToOtherRegionRequest.cc + src/model/MigrateToOtherRegionResult.cc + src/model/DescribeOssDownloadsRequest.cc + src/model/DescribeOssDownloadsResult.cc + src/model/ModifyParameterRequest.cc + src/model/ModifyParameterResult.cc + src/model/UpgradeDBInstanceEngineVersionRequest.cc + src/model/UpgradeDBInstanceEngineVersionResult.cc + src/model/ModifyDBInstanceConnectionStringRequest.cc + src/model/ModifyDBInstanceConnectionStringResult.cc + src/model/RestartDBInstanceRequest.cc + src/model/RestartDBInstanceResult.cc + src/model/CheckAccountNameAvailableRequest.cc + src/model/CheckAccountNameAvailableResult.cc + src/model/DescribeTemplatesListRequest.cc + src/model/DescribeTemplatesListResult.cc + src/model/ImportDataForSQLServerRequest.cc + src/model/ImportDataForSQLServerResult.cc + src/model/CheckResourceRequest.cc + src/model/CheckResourceResult.cc + src/model/ModifySecurityGroupConfigurationRequest.cc + src/model/ModifySecurityGroupConfigurationResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc + src/model/ModifyDTCSecurityIpHostsForSQLServerRequest.cc + src/model/ModifyDTCSecurityIpHostsForSQLServerResult.cc + src/model/DescribeCharacterSetNameRequest.cc + src/model/DescribeCharacterSetNameResult.cc + src/model/DescribeMigrateTasksRequest.cc + src/model/DescribeMigrateTasksResult.cc + src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc + src/model/ModifyDBInstanceNetworkExpireTimeResult.cc + src/model/DescribeModifyParameterLogRequest.cc + src/model/DescribeModifyParameterLogResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc + src/model/ModifyDBInstancePayTypeRequest.cc + src/model/ModifyDBInstancePayTypeResult.cc + src/model/RecoveryDBInstanceRequest.cc + src/model/RecoveryDBInstanceResult.cc + src/model/ModifyDBDescriptionRequest.cc + src/model/ModifyDBDescriptionResult.cc + src/model/ImportDatabaseBetweenInstancesRequest.cc + src/model/ImportDatabaseBetweenInstancesResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/ModifyDBInstanceMonitorRequest.cc + src/model/ModifyDBInstanceMonitorResult.cc + src/model/ModifyInstanceCrossBackupPolicyRequest.cc + src/model/ModifyInstanceCrossBackupPolicyResult.cc + src/model/DescribeSQLLogFilesRequest.cc + src/model/DescribeSQLLogFilesResult.cc + src/model/DescribeAvailableCrossRegionRequest.cc + src/model/DescribeAvailableCrossRegionResult.cc + src/model/CancelImportRequest.cc + src/model/CancelImportResult.cc + src/model/DescribeSecurityGroupConfigurationRequest.cc + src/model/DescribeSecurityGroupConfigurationResult.cc + src/model/ModifyBackupPolicyRequest.cc + src/model/ModifyBackupPolicyResult.cc + src/model/ModifyReplicaDescriptionRequest.cc + src/model/ModifyReplicaDescriptionResult.cc + src/model/DescribeParametersRequest.cc + src/model/DescribeParametersResult.cc + src/model/AddTagsToResourceRequest.cc + src/model/AddTagsToResourceResult.cc + src/model/DescribeBinlogFilesRequest.cc + src/model/DescribeBinlogFilesResult.cc + src/model/DescribeDBInstanceProxyConfigurationRequest.cc + src/model/DescribeDBInstanceProxyConfigurationResult.cc + src/model/CreateDiagnosticReportRequest.cc + src/model/CreateDiagnosticReportResult.cc + src/model/DescribeReadDBInstanceDelayRequest.cc + src/model/DescribeReadDBInstanceDelayResult.cc + src/model/DescribeSQLLogReportListRequest.cc + src/model/DescribeSQLLogReportListResult.cc + src/model/CloneDBInstanceRequest.cc + src/model/CloneDBInstanceResult.cc + src/model/DescribeTasksRequest.cc + src/model/DescribeTasksResult.cc + src/model/DescribeRenewalPriceRequest.cc + src/model/DescribeRenewalPriceResult.cc + src/model/AllocateInstancePublicConnectionRequest.cc + src/model/AllocateInstancePublicConnectionResult.cc + src/model/DescribeDBInstanceAttributeRequest.cc + src/model/DescribeDBInstanceAttributeResult.cc + src/model/CheckInstanceExistRequest.cc + src/model/CheckInstanceExistResult.cc + src/model/CreateTempDBInstanceRequest.cc + src/model/CreateTempDBInstanceResult.cc + src/model/ModifyInstanceAutoRenewalAttributeRequest.cc + src/model/ModifyInstanceAutoRenewalAttributeResult.cc + src/model/ModifySQLCollectorPolicyRequest.cc + src/model/ModifySQLCollectorPolicyResult.cc + src/model/AllocateInstanceVpcNetworkTypeRequest.cc + src/model/AllocateInstanceVpcNetworkTypeResult.cc + src/model/DescribeBackupsRequest.cc + src/model/DescribeBackupsResult.cc + src/model/CreateDatabaseRequest.cc + src/model/CreateDatabaseResult.cc + src/model/DescribeCollationTimeZonesRequest.cc + src/model/DescribeCollationTimeZonesResult.cc + src/model/DeleteDBInstanceRequest.cc + src/model/DeleteDBInstanceResult.cc + src/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.cc + src/model/ModifyReadonlyInstanceDelayReplicationTimeResult.cc + src/model/DescribeInstanceAutoRenewalAttributeRequest.cc + src/model/DescribeInstanceAutoRenewalAttributeResult.cc + src/model/SwitchDBInstanceVpcRequest.cc + src/model/SwitchDBInstanceVpcResult.cc + src/model/RestoreDBInstanceRequest.cc + src/model/RestoreDBInstanceResult.cc + src/model/RevokeOperatorPermissionRequest.cc + src/model/RevokeOperatorPermissionResult.cc + src/model/ModifyDBInstanceSpecRequest.cc + src/model/ModifyDBInstanceSpecResult.cc + src/model/MigrateSecurityIPModeRequest.cc + src/model/MigrateSecurityIPModeResult.cc + src/model/DescribeDiagnosticReportListRequest.cc + src/model/DescribeDiagnosticReportListResult.cc + src/model/RemoveTagsFromResourceRequest.cc + src/model/RemoveTagsFromResourceResult.cc + src/model/DescribeSQLLogRecordsRequest.cc + src/model/DescribeSQLLogRecordsResult.cc + src/model/ModifySecurityIpsRequest.cc + src/model/ModifySecurityIpsResult.cc + src/model/DescribeMigrateTasksForSQLServerRequest.cc + src/model/DescribeMigrateTasksForSQLServerResult.cc + src/model/RestoreTableRequest.cc + src/model/RestoreTableResult.cc + src/model/CreateOnlineDatabaseTaskRequest.cc + src/model/CreateOnlineDatabaseTaskResult.cc + src/model/GrantAccountPrivilegeRequest.cc + src/model/GrantAccountPrivilegeResult.cc + src/model/GrantOperatorPermissionRequest.cc + src/model/GrantOperatorPermissionResult.cc + src/model/DescribeAvailableRecoveryTimeRequest.cc + src/model/DescribeAvailableRecoveryTimeResult.cc + src/model/DescribeDBInstanceIpHostnameRequest.cc + src/model/DescribeDBInstanceIpHostnameResult.cc + src/model/ModifyDBInstanceTDERequest.cc + src/model/ModifyDBInstanceTDEResult.cc + src/model/DescribeDBInstancePerformanceRequest.cc + src/model/DescribeDBInstancePerformanceResult.cc + src/model/DescribeDBInstancesRequest.cc + src/model/DescribeDBInstancesResult.cc + src/model/RequestServiceOfCloudDBExpertRequest.cc + src/model/RequestServiceOfCloudDBExpertResult.cc + src/model/DescribeCrossRegionLogBackupFilesRequest.cc + src/model/DescribeCrossRegionLogBackupFilesResult.cc + src/model/DescribeBackupDatabaseRequest.cc + src/model/DescribeBackupDatabaseResult.cc + src/model/CreateDBInstanceReplicaRequest.cc + src/model/CreateDBInstanceReplicaResult.cc + src/model/AllocateInstancePrivateConnectionRequest.cc + src/model/AllocateInstancePrivateConnectionResult.cc + src/model/RevokeAccountPrivilegeRequest.cc + src/model/RevokeAccountPrivilegeResult.cc + src/model/DescribeParameterTemplatesRequest.cc + src/model/DescribeParameterTemplatesResult.cc + src/model/DescibeImportsFromDatabaseRequest.cc + src/model/DescibeImportsFromDatabaseResult.cc + src/model/CopyDatabaseBetweenInstancesRequest.cc + src/model/CopyDatabaseBetweenInstancesResult.cc + src/model/DescribeInstanceVpcMigrateInfoRequest.cc + src/model/DescribeInstanceVpcMigrateInfoResult.cc + src/model/CopyDatabaseRequest.cc + src/model/CopyDatabaseResult.cc + src/model/ModifyDBInstanceSSLRequest.cc + src/model/ModifyDBInstanceSSLResult.cc + src/model/CreateDBInstanceRequest.cc + src/model/CreateDBInstanceResult.cc + src/model/DescribeDBInstanceTDERequest.cc + src/model/DescribeDBInstanceTDEResult.cc + src/model/DescribeSQLLogReportsRequest.cc + src/model/DescribeSQLLogReportsResult.cc + src/model/ModifyDBInstanceConnectionModeRequest.cc + src/model/ModifyDBInstanceConnectionModeResult.cc + src/model/DescribeDBInstanceNetInfoRequest.cc + src/model/DescribeDBInstanceNetInfoResult.cc + src/model/DescribeAvailableResourceRequest.cc + src/model/DescribeAvailableResourceResult.cc + src/model/AllocateReadWriteSplittingConnectionRequest.cc + src/model/AllocateReadWriteSplittingConnectionResult.cc + src/model/DescribeCloudDbExpertServiceRequest.cc + src/model/DescribeCloudDbExpertServiceResult.cc + src/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.cc + src/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.cc + src/model/EvaluateSupportByokShowRequest.cc + src/model/EvaluateSupportByokShowResult.cc + src/model/ReleaseInstancePublicConnectionRequest.cc + src/model/ReleaseInstancePublicConnectionResult.cc + src/model/CalculateDBInstanceWeightRequest.cc + src/model/CalculateDBInstanceWeightResult.cc + src/model/ModifyDBInstanceNetworkTypeRequest.cc + src/model/ModifyDBInstanceNetworkTypeResult.cc + src/model/CreateDdrInstanceRequest.cc + src/model/CreateDdrInstanceResult.cc + src/model/DescribeDTCSecurityIpHostsForSQLServerRequest.cc + src/model/DescribeDTCSecurityIpHostsForSQLServerResult.cc + src/model/DescribeSlowLogsRequest.cc + src/model/DescribeSlowLogsResult.cc + src/model/CreateBackupRequest.cc + src/model/CreateBackupResult.cc + src/model/ModifyReadWriteSplittingConnectionRequest.cc + src/model/ModifyReadWriteSplittingConnectionResult.cc + src/model/ModifyDBInstanceMaintainTimeRequest.cc + src/model/ModifyDBInstanceMaintainTimeResult.cc + src/model/ModifyDBInstanceDescriptionRequest.cc + src/model/ModifyDBInstanceDescriptionResult.cc + src/model/DescribeCrossRegionBackupsRequest.cc + src/model/DescribeCrossRegionBackupsResult.cc + src/model/ModifyResourceGroupRequest.cc + src/model/ModifyResourceGroupResult.cc + src/model/DescribeProxyFunctionSupportRequest.cc + src/model/DescribeProxyFunctionSupportResult.cc + src/model/DescribeOssDownloadsForSQLServerRequest.cc + src/model/DescribeOssDownloadsForSQLServerResult.cc + src/model/DescribeInstanceCrossBackupPolicyRequest.cc + src/model/DescribeInstanceCrossBackupPolicyResult.cc + src/model/ResetAccountRequest.cc + src/model/ResetAccountResult.cc + src/model/DescribeResourceUsageRequest.cc + src/model/DescribeResourceUsageResult.cc + src/model/DescribeCrossRegionBackupDBInstanceRequest.cc + src/model/DescribeCrossRegionBackupDBInstanceResult.cc + src/model/PurgeDBInstanceLogRequest.cc + src/model/PurgeDBInstanceLogResult.cc + src/model/UpgradeDBInstanceKernelVersionRequest.cc + src/model/UpgradeDBInstanceKernelVersionResult.cc + src/model/DescribeTaskInfoRequest.cc + src/model/DescribeTaskInfoResult.cc + src/model/ModifyMySQLDBInstanceDelayRequest.cc + src/model/ModifyMySQLDBInstanceDelayResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/MigrateToOtherZoneRequest.cc + src/model/MigrateToOtherZoneResult.cc + src/model/DeleteAccountRequest.cc + src/model/DeleteAccountResult.cc + src/model/DescribeSlowLogRecordsRequest.cc + src/model/DescribeSlowLogRecordsResult.cc + src/model/ReleaseReadWriteSplittingConnectionRequest.cc + src/model/ReleaseReadWriteSplittingConnectionResult.cc + src/model/DescribeLogBackupFilesRequest.cc + src/model/DescribeLogBackupFilesResult.cc + src/model/DescribeAvailableInstanceClassRequest.cc + src/model/DescribeAvailableInstanceClassResult.cc + src/model/DescribeErrorLogsRequest.cc + src/model/DescribeErrorLogsResult.cc + src/model/ModifyDBInstanceHAConfigRequest.cc + src/model/ModifyDBInstanceHAConfigResult.cc + src/model/DescribeDBInstancesAsCsvRequest.cc + src/model/DescribeDBInstancesAsCsvResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc + src/model/ModifyDBInstanceProxyConfigurationRequest.cc + src/model/ModifyDBInstanceProxyConfigurationResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/DescribePriceRequest.cc + src/model/DescribePriceResult.cc + src/model/DescribeDBInstanceByTagsRequest.cc + src/model/DescribeDBInstanceByTagsResult.cc + src/model/DescribeMetaListRequest.cc + src/model/DescribeMetaListResult.cc + src/model/DescribeDBInstanceSSLRequest.cc + src/model/DescribeDBInstanceSSLResult.cc + src/model/DescribeDBInstancesByPerformanceRequest.cc + src/model/DescribeDBInstancesByPerformanceResult.cc + src/model/DescribeSQLReportsRequest.cc + src/model/DescribeSQLReportsResult.cc + src/model/DescribeBackupTasksRequest.cc + src/model/DescribeBackupTasksResult.cc + src/model/DeleteDatabaseRequest.cc + src/model/DeleteDatabaseResult.cc + src/model/DescribeBackupPolicyRequest.cc + src/model/DescribeBackupPolicyResult.cc + src/model/ModifyCollationTimeZoneRequest.cc + src/model/ModifyCollationTimeZoneResult.cc + src/model/CreateMigrateTaskForSQLServerRequest.cc + src/model/CreateMigrateTaskForSQLServerResult.cc + src/model/DescribeDBInstanceIPArrayListRequest.cc + src/model/DescribeDBInstanceIPArrayListResult.cc + src/model/SwitchDBInstanceHARequest.cc + src/model/SwitchDBInstanceHAResult.cc + src/model/ResetAccountForPGRequest.cc + src/model/ResetAccountForPGResult.cc ) + +add_library(rds ${LIB_TYPE} + ${rds_public_header} + ${rds_public_header_model} + ${rds_src}) + +set_target_properties(rds + 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}rds + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(rds + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_RDS_LIBRARY) +endif() + +target_include_directories(rds + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(rds + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(rds + jsoncpp) + target_include_directories(rds + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(rds + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(rds + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(rds + PRIVATE /usr/include/jsoncpp) + target_link_libraries(rds + jsoncpp) +endif() + +install(FILES ${rds_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/rds) +install(FILES ${rds_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/rds/model) +install(TARGETS rds + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/RdsClient.h b/rds/include/alibabacloud/rds/RdsClient.h index 58ebd4464..397e3b888 100644 --- a/rds/include/alibabacloud/rds/RdsClient.h +++ b/rds/include/alibabacloud/rds/RdsClient.h @@ -1,27 +1,29 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_RDSCLIENT_H_ -#define ALIBABACLOUD_RDS_RDSCLIENT_H_ - -#include -#include -#include -#include -#include "RdsExport.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_RDSCLIENT_H_ +#define ALIBABACLOUD_RDS_RDSCLIENT_H_ + +#include +#include +#include +#include +#include "RdsExport.h" +#include "model/CheckCreateDdrDBInstanceRequest.h" +#include "model/CheckCreateDdrDBInstanceResult.h" #include "model/CreateMigrateTaskRequest.h" #include "model/CreateMigrateTaskResult.h" #include "model/CheckRecoveryConditionsRequest.h" @@ -36,12 +38,12 @@ #include "model/SwitchDBInstanceNetTypeResult.h" #include "model/DescribeDBInstanceMonitorRequest.h" #include "model/DescribeDBInstanceMonitorResult.h" +#include "model/ModifyAccountDescriptionRequest.h" +#include "model/ModifyAccountDescriptionResult.h" #include "model/DescribeDBInstanceHAConfigRequest.h" #include "model/DescribeDBInstanceHAConfigResult.h" #include "model/CreateReadOnlyDBInstanceRequest.h" #include "model/CreateReadOnlyDBInstanceResult.h" -#include "model/ModifyAccountDescriptionRequest.h" -#include "model/ModifyAccountDescriptionResult.h" #include "model/MigrateToOtherRegionRequest.h" #include "model/MigrateToOtherRegionResult.h" #include "model/DescribeOssDownloadsRequest.h" @@ -52,30 +54,34 @@ #include "model/UpgradeDBInstanceEngineVersionResult.h" #include "model/ModifyDBInstanceConnectionStringRequest.h" #include "model/ModifyDBInstanceConnectionStringResult.h" -#include "model/CheckAccountNameAvailableRequest.h" -#include "model/CheckAccountNameAvailableResult.h" #include "model/RestartDBInstanceRequest.h" #include "model/RestartDBInstanceResult.h" +#include "model/CheckAccountNameAvailableRequest.h" +#include "model/CheckAccountNameAvailableResult.h" #include "model/DescribeTemplatesListRequest.h" #include "model/DescribeTemplatesListResult.h" #include "model/ImportDataForSQLServerRequest.h" #include "model/ImportDataForSQLServerResult.h" +#include "model/CheckResourceRequest.h" +#include "model/CheckResourceResult.h" #include "model/ModifySecurityGroupConfigurationRequest.h" #include "model/ModifySecurityGroupConfigurationResult.h" #include "model/DescribeTagsRequest.h" #include "model/DescribeTagsResult.h" -#include "model/CheckResourceRequest.h" -#include "model/CheckResourceResult.h" +#include "model/ModifyDTCSecurityIpHostsForSQLServerRequest.h" +#include "model/ModifyDTCSecurityIpHostsForSQLServerResult.h" #include "model/DescribeCharacterSetNameRequest.h" #include "model/DescribeCharacterSetNameResult.h" #include "model/DescribeMigrateTasksRequest.h" #include "model/DescribeMigrateTasksResult.h" #include "model/ModifyDBInstanceNetworkExpireTimeRequest.h" #include "model/ModifyDBInstanceNetworkExpireTimeResult.h" -#include "model/CreateAccountRequest.h" -#include "model/CreateAccountResult.h" #include "model/DescribeModifyParameterLogRequest.h" #include "model/DescribeModifyParameterLogResult.h" +#include "model/CreateAccountRequest.h" +#include "model/CreateAccountResult.h" +#include "model/ModifyDBInstancePayTypeRequest.h" +#include "model/ModifyDBInstancePayTypeResult.h" #include "model/RecoveryDBInstanceRequest.h" #include "model/RecoveryDBInstanceResult.h" #include "model/ModifyDBDescriptionRequest.h" @@ -86,16 +92,20 @@ #include "model/RenewInstanceResult.h" #include "model/ModifyDBInstanceMonitorRequest.h" #include "model/ModifyDBInstanceMonitorResult.h" +#include "model/ModifyInstanceCrossBackupPolicyRequest.h" +#include "model/ModifyInstanceCrossBackupPolicyResult.h" #include "model/DescribeSQLLogFilesRequest.h" #include "model/DescribeSQLLogFilesResult.h" +#include "model/DescribeAvailableCrossRegionRequest.h" +#include "model/DescribeAvailableCrossRegionResult.h" #include "model/CancelImportRequest.h" #include "model/CancelImportResult.h" -#include "model/ModifyReplicaDescriptionRequest.h" -#include "model/ModifyReplicaDescriptionResult.h" -#include "model/ModifyBackupPolicyRequest.h" -#include "model/ModifyBackupPolicyResult.h" #include "model/DescribeSecurityGroupConfigurationRequest.h" #include "model/DescribeSecurityGroupConfigurationResult.h" +#include "model/ModifyBackupPolicyRequest.h" +#include "model/ModifyBackupPolicyResult.h" +#include "model/ModifyReplicaDescriptionRequest.h" +#include "model/ModifyReplicaDescriptionResult.h" #include "model/DescribeParametersRequest.h" #include "model/DescribeParametersResult.h" #include "model/AddTagsToResourceRequest.h" @@ -106,10 +116,10 @@ #include "model/DescribeDBInstanceProxyConfigurationResult.h" #include "model/CreateDiagnosticReportRequest.h" #include "model/CreateDiagnosticReportResult.h" -#include "model/DescribeSQLLogReportListRequest.h" -#include "model/DescribeSQLLogReportListResult.h" #include "model/DescribeReadDBInstanceDelayRequest.h" #include "model/DescribeReadDBInstanceDelayResult.h" +#include "model/DescribeSQLLogReportListRequest.h" +#include "model/DescribeSQLLogReportListResult.h" #include "model/CloneDBInstanceRequest.h" #include "model/CloneDBInstanceResult.h" #include "model/DescribeTasksRequest.h" @@ -150,10 +160,10 @@ #include "model/RevokeOperatorPermissionResult.h" #include "model/ModifyDBInstanceSpecRequest.h" #include "model/ModifyDBInstanceSpecResult.h" -#include "model/DescribeDiagnosticReportListRequest.h" -#include "model/DescribeDiagnosticReportListResult.h" #include "model/MigrateSecurityIPModeRequest.h" #include "model/MigrateSecurityIPModeResult.h" +#include "model/DescribeDiagnosticReportListRequest.h" +#include "model/DescribeDiagnosticReportListResult.h" #include "model/RemoveTagsFromResourceRequest.h" #include "model/RemoveTagsFromResourceResult.h" #include "model/DescribeSQLLogRecordsRequest.h" @@ -170,6 +180,10 @@ #include "model/GrantAccountPrivilegeResult.h" #include "model/GrantOperatorPermissionRequest.h" #include "model/GrantOperatorPermissionResult.h" +#include "model/DescribeAvailableRecoveryTimeRequest.h" +#include "model/DescribeAvailableRecoveryTimeResult.h" +#include "model/DescribeDBInstanceIpHostnameRequest.h" +#include "model/DescribeDBInstanceIpHostnameResult.h" #include "model/ModifyDBInstanceTDERequest.h" #include "model/ModifyDBInstanceTDEResult.h" #include "model/DescribeDBInstancePerformanceRequest.h" @@ -178,6 +192,8 @@ #include "model/DescribeDBInstancesResult.h" #include "model/RequestServiceOfCloudDBExpertRequest.h" #include "model/RequestServiceOfCloudDBExpertResult.h" +#include "model/DescribeCrossRegionLogBackupFilesRequest.h" +#include "model/DescribeCrossRegionLogBackupFilesResult.h" #include "model/DescribeBackupDatabaseRequest.h" #include "model/DescribeBackupDatabaseResult.h" #include "model/CreateDBInstanceReplicaRequest.h" @@ -196,10 +212,10 @@ #include "model/DescribeInstanceVpcMigrateInfoResult.h" #include "model/CopyDatabaseRequest.h" #include "model/CopyDatabaseResult.h" -#include "model/CreateDBInstanceRequest.h" -#include "model/CreateDBInstanceResult.h" #include "model/ModifyDBInstanceSSLRequest.h" #include "model/ModifyDBInstanceSSLResult.h" +#include "model/CreateDBInstanceRequest.h" +#include "model/CreateDBInstanceResult.h" #include "model/DescribeDBInstanceTDERequest.h" #include "model/DescribeDBInstanceTDEResult.h" #include "model/DescribeSQLLogReportsRequest.h" @@ -214,6 +230,8 @@ #include "model/AllocateReadWriteSplittingConnectionResult.h" #include "model/DescribeCloudDbExpertServiceRequest.h" #include "model/DescribeCloudDbExpertServiceResult.h" +#include "model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.h" +#include "model/ModifyDBInstanceAutoUpgradeMinorVersionResult.h" #include "model/EvaluateSupportByokShowRequest.h" #include "model/EvaluateSupportByokShowResult.h" #include "model/ReleaseInstancePublicConnectionRequest.h" @@ -222,6 +240,10 @@ #include "model/CalculateDBInstanceWeightResult.h" #include "model/ModifyDBInstanceNetworkTypeRequest.h" #include "model/ModifyDBInstanceNetworkTypeResult.h" +#include "model/CreateDdrInstanceRequest.h" +#include "model/CreateDdrInstanceResult.h" +#include "model/DescribeDTCSecurityIpHostsForSQLServerRequest.h" +#include "model/DescribeDTCSecurityIpHostsForSQLServerResult.h" #include "model/DescribeSlowLogsRequest.h" #include "model/DescribeSlowLogsResult.h" #include "model/CreateBackupRequest.h" @@ -232,22 +254,28 @@ #include "model/ModifyDBInstanceMaintainTimeResult.h" #include "model/ModifyDBInstanceDescriptionRequest.h" #include "model/ModifyDBInstanceDescriptionResult.h" +#include "model/DescribeCrossRegionBackupsRequest.h" +#include "model/DescribeCrossRegionBackupsResult.h" #include "model/ModifyResourceGroupRequest.h" #include "model/ModifyResourceGroupResult.h" #include "model/DescribeProxyFunctionSupportRequest.h" #include "model/DescribeProxyFunctionSupportResult.h" #include "model/DescribeOssDownloadsForSQLServerRequest.h" #include "model/DescribeOssDownloadsForSQLServerResult.h" +#include "model/DescribeInstanceCrossBackupPolicyRequest.h" +#include "model/DescribeInstanceCrossBackupPolicyResult.h" #include "model/ResetAccountRequest.h" #include "model/ResetAccountResult.h" #include "model/DescribeResourceUsageRequest.h" #include "model/DescribeResourceUsageResult.h" +#include "model/DescribeCrossRegionBackupDBInstanceRequest.h" +#include "model/DescribeCrossRegionBackupDBInstanceResult.h" #include "model/PurgeDBInstanceLogRequest.h" #include "model/PurgeDBInstanceLogResult.h" -#include "model/DescribeTaskInfoRequest.h" -#include "model/DescribeTaskInfoResult.h" #include "model/UpgradeDBInstanceKernelVersionRequest.h" #include "model/UpgradeDBInstanceKernelVersionResult.h" +#include "model/DescribeTaskInfoRequest.h" +#include "model/DescribeTaskInfoResult.h" #include "model/ModifyMySQLDBInstanceDelayRequest.h" #include "model/ModifyMySQLDBInstanceDelayResult.h" #include "model/DescribeRegionsRequest.h" @@ -274,10 +302,10 @@ #include "model/ResetAccountPasswordResult.h" #include "model/ModifyDBInstanceProxyConfigurationRequest.h" #include "model/ModifyDBInstanceProxyConfigurationResult.h" -#include "model/DescribePriceRequest.h" -#include "model/DescribePriceResult.h" #include "model/DescribeAccountsRequest.h" #include "model/DescribeAccountsResult.h" +#include "model/DescribePriceRequest.h" +#include "model/DescribePriceResult.h" #include "model/DescribeDBInstanceByTagsRequest.h" #include "model/DescribeDBInstanceByTagsResult.h" #include "model/DescribeMetaListRequest.h" @@ -292,10 +320,10 @@ #include "model/DescribeBackupTasksResult.h" #include "model/DeleteDatabaseRequest.h" #include "model/DeleteDatabaseResult.h" -#include "model/ModifyCollationTimeZoneRequest.h" -#include "model/ModifyCollationTimeZoneResult.h" #include "model/DescribeBackupPolicyRequest.h" #include "model/DescribeBackupPolicyResult.h" +#include "model/ModifyCollationTimeZoneRequest.h" +#include "model/ModifyCollationTimeZoneResult.h" #include "model/CreateMigrateTaskForSQLServerRequest.h" #include "model/CreateMigrateTaskForSQLServerResult.h" #include "model/DescribeDBInstanceIPArrayListRequest.h" @@ -304,871 +332,955 @@ #include "model/SwitchDBInstanceHAResult.h" #include "model/ResetAccountForPGRequest.h" #include "model/ResetAccountForPGResult.h" - - -namespace AlibabaCloud -{ - namespace Rds - { - class ALIBABACLOUD_RDS_EXPORT RdsClient : public RpcServiceClient - { - public: - typedef Outcome CreateMigrateTaskOutcome; - typedef std::future CreateMigrateTaskOutcomeCallable; + + +namespace AlibabaCloud +{ + namespace Rds + { + class ALIBABACLOUD_RDS_EXPORT RdsClient : public RpcServiceClient + { + public: + typedef Outcome CheckCreateDdrDBInstanceOutcome; + typedef std::future CheckCreateDdrDBInstanceOutcomeCallable; + typedef std::function&)> CheckCreateDdrDBInstanceAsyncHandler; + typedef Outcome CreateMigrateTaskOutcome; + typedef std::future CreateMigrateTaskOutcomeCallable; typedef std::function&)> CreateMigrateTaskAsyncHandler; - typedef Outcome CheckRecoveryConditionsOutcome; - typedef std::future CheckRecoveryConditionsOutcomeCallable; + typedef Outcome CheckRecoveryConditionsOutcome; + typedef std::future CheckRecoveryConditionsOutcomeCallable; typedef std::function&)> CheckRecoveryConditionsAsyncHandler; - typedef Outcome DeleteBackupOutcome; - typedef std::future DeleteBackupOutcomeCallable; + typedef Outcome DeleteBackupOutcome; + typedef std::future DeleteBackupOutcomeCallable; typedef std::function&)> DeleteBackupAsyncHandler; - typedef Outcome DescribeDatabasesOutcome; - typedef std::future DescribeDatabasesOutcomeCallable; + typedef Outcome DescribeDatabasesOutcome; + typedef std::future DescribeDatabasesOutcomeCallable; typedef std::function&)> DescribeDatabasesAsyncHandler; - typedef Outcome DescribeDBInstancesByExpireTimeOutcome; - typedef std::future DescribeDBInstancesByExpireTimeOutcomeCallable; + typedef Outcome DescribeDBInstancesByExpireTimeOutcome; + typedef std::future DescribeDBInstancesByExpireTimeOutcomeCallable; typedef std::function&)> DescribeDBInstancesByExpireTimeAsyncHandler; - typedef Outcome SwitchDBInstanceNetTypeOutcome; - typedef std::future SwitchDBInstanceNetTypeOutcomeCallable; + typedef Outcome SwitchDBInstanceNetTypeOutcome; + typedef std::future SwitchDBInstanceNetTypeOutcomeCallable; typedef std::function&)> SwitchDBInstanceNetTypeAsyncHandler; - typedef Outcome DescribeDBInstanceMonitorOutcome; - typedef std::future DescribeDBInstanceMonitorOutcomeCallable; + typedef Outcome DescribeDBInstanceMonitorOutcome; + typedef std::future DescribeDBInstanceMonitorOutcomeCallable; typedef std::function&)> DescribeDBInstanceMonitorAsyncHandler; - typedef Outcome DescribeDBInstanceHAConfigOutcome; - typedef std::future DescribeDBInstanceHAConfigOutcomeCallable; - typedef std::function&)> DescribeDBInstanceHAConfigAsyncHandler; - typedef Outcome CreateReadOnlyDBInstanceOutcome; - typedef std::future CreateReadOnlyDBInstanceOutcomeCallable; - typedef std::function&)> CreateReadOnlyDBInstanceAsyncHandler; - typedef Outcome ModifyAccountDescriptionOutcome; - typedef std::future ModifyAccountDescriptionOutcomeCallable; + typedef Outcome ModifyAccountDescriptionOutcome; + typedef std::future ModifyAccountDescriptionOutcomeCallable; typedef std::function&)> ModifyAccountDescriptionAsyncHandler; - typedef Outcome MigrateToOtherRegionOutcome; - typedef std::future MigrateToOtherRegionOutcomeCallable; + typedef Outcome DescribeDBInstanceHAConfigOutcome; + typedef std::future DescribeDBInstanceHAConfigOutcomeCallable; + typedef std::function&)> DescribeDBInstanceHAConfigAsyncHandler; + typedef Outcome CreateReadOnlyDBInstanceOutcome; + typedef std::future CreateReadOnlyDBInstanceOutcomeCallable; + typedef std::function&)> CreateReadOnlyDBInstanceAsyncHandler; + typedef Outcome MigrateToOtherRegionOutcome; + typedef std::future MigrateToOtherRegionOutcomeCallable; typedef std::function&)> MigrateToOtherRegionAsyncHandler; - typedef Outcome DescribeOssDownloadsOutcome; - typedef std::future DescribeOssDownloadsOutcomeCallable; + typedef Outcome DescribeOssDownloadsOutcome; + typedef std::future DescribeOssDownloadsOutcomeCallable; typedef std::function&)> DescribeOssDownloadsAsyncHandler; - typedef Outcome ModifyParameterOutcome; - typedef std::future ModifyParameterOutcomeCallable; + typedef Outcome ModifyParameterOutcome; + typedef std::future ModifyParameterOutcomeCallable; typedef std::function&)> ModifyParameterAsyncHandler; - typedef Outcome UpgradeDBInstanceEngineVersionOutcome; - typedef std::future UpgradeDBInstanceEngineVersionOutcomeCallable; + typedef Outcome UpgradeDBInstanceEngineVersionOutcome; + typedef std::future UpgradeDBInstanceEngineVersionOutcomeCallable; typedef std::function&)> UpgradeDBInstanceEngineVersionAsyncHandler; - typedef Outcome ModifyDBInstanceConnectionStringOutcome; - typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; + typedef Outcome ModifyDBInstanceConnectionStringOutcome; + typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; - typedef Outcome CheckAccountNameAvailableOutcome; - typedef std::future CheckAccountNameAvailableOutcomeCallable; - typedef std::function&)> CheckAccountNameAvailableAsyncHandler; - typedef Outcome RestartDBInstanceOutcome; - typedef std::future RestartDBInstanceOutcomeCallable; + typedef Outcome RestartDBInstanceOutcome; + typedef std::future RestartDBInstanceOutcomeCallable; typedef std::function&)> RestartDBInstanceAsyncHandler; - typedef Outcome DescribeTemplatesListOutcome; - typedef std::future DescribeTemplatesListOutcomeCallable; + typedef Outcome CheckAccountNameAvailableOutcome; + typedef std::future CheckAccountNameAvailableOutcomeCallable; + typedef std::function&)> CheckAccountNameAvailableAsyncHandler; + typedef Outcome DescribeTemplatesListOutcome; + typedef std::future DescribeTemplatesListOutcomeCallable; typedef std::function&)> DescribeTemplatesListAsyncHandler; - typedef Outcome ImportDataForSQLServerOutcome; - typedef std::future ImportDataForSQLServerOutcomeCallable; + typedef Outcome ImportDataForSQLServerOutcome; + typedef std::future ImportDataForSQLServerOutcomeCallable; typedef std::function&)> ImportDataForSQLServerAsyncHandler; - typedef Outcome ModifySecurityGroupConfigurationOutcome; - typedef std::future ModifySecurityGroupConfigurationOutcomeCallable; - typedef std::function&)> ModifySecurityGroupConfigurationAsyncHandler; - typedef Outcome DescribeTagsOutcome; - typedef std::future DescribeTagsOutcomeCallable; - typedef std::function&)> DescribeTagsAsyncHandler; - typedef Outcome CheckResourceOutcome; - typedef std::future CheckResourceOutcomeCallable; + typedef Outcome CheckResourceOutcome; + typedef std::future CheckResourceOutcomeCallable; typedef std::function&)> CheckResourceAsyncHandler; - typedef Outcome DescribeCharacterSetNameOutcome; - typedef std::future DescribeCharacterSetNameOutcomeCallable; + typedef Outcome ModifySecurityGroupConfigurationOutcome; + typedef std::future ModifySecurityGroupConfigurationOutcomeCallable; + typedef std::function&)> ModifySecurityGroupConfigurationAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; + typedef Outcome ModifyDTCSecurityIpHostsForSQLServerOutcome; + typedef std::future ModifyDTCSecurityIpHostsForSQLServerOutcomeCallable; + typedef std::function&)> ModifyDTCSecurityIpHostsForSQLServerAsyncHandler; + typedef Outcome DescribeCharacterSetNameOutcome; + typedef std::future DescribeCharacterSetNameOutcomeCallable; typedef std::function&)> DescribeCharacterSetNameAsyncHandler; - typedef Outcome DescribeMigrateTasksOutcome; - typedef std::future DescribeMigrateTasksOutcomeCallable; + typedef Outcome DescribeMigrateTasksOutcome; + typedef std::future DescribeMigrateTasksOutcomeCallable; typedef std::function&)> DescribeMigrateTasksAsyncHandler; - typedef Outcome ModifyDBInstanceNetworkExpireTimeOutcome; - typedef std::future ModifyDBInstanceNetworkExpireTimeOutcomeCallable; + typedef Outcome ModifyDBInstanceNetworkExpireTimeOutcome; + typedef std::future ModifyDBInstanceNetworkExpireTimeOutcomeCallable; typedef std::function&)> ModifyDBInstanceNetworkExpireTimeAsyncHandler; - typedef Outcome CreateAccountOutcome; - typedef std::future CreateAccountOutcomeCallable; - typedef std::function&)> CreateAccountAsyncHandler; - typedef Outcome DescribeModifyParameterLogOutcome; - typedef std::future DescribeModifyParameterLogOutcomeCallable; + typedef Outcome DescribeModifyParameterLogOutcome; + typedef std::future DescribeModifyParameterLogOutcomeCallable; typedef std::function&)> DescribeModifyParameterLogAsyncHandler; - typedef Outcome RecoveryDBInstanceOutcome; - typedef std::future RecoveryDBInstanceOutcomeCallable; + typedef Outcome CreateAccountOutcome; + typedef std::future CreateAccountOutcomeCallable; + typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome ModifyDBInstancePayTypeOutcome; + typedef std::future ModifyDBInstancePayTypeOutcomeCallable; + typedef std::function&)> ModifyDBInstancePayTypeAsyncHandler; + typedef Outcome RecoveryDBInstanceOutcome; + typedef std::future RecoveryDBInstanceOutcomeCallable; typedef std::function&)> RecoveryDBInstanceAsyncHandler; - typedef Outcome ModifyDBDescriptionOutcome; - typedef std::future ModifyDBDescriptionOutcomeCallable; + typedef Outcome ModifyDBDescriptionOutcome; + typedef std::future ModifyDBDescriptionOutcomeCallable; typedef std::function&)> ModifyDBDescriptionAsyncHandler; - typedef Outcome ImportDatabaseBetweenInstancesOutcome; - typedef std::future ImportDatabaseBetweenInstancesOutcomeCallable; + typedef Outcome ImportDatabaseBetweenInstancesOutcome; + typedef std::future ImportDatabaseBetweenInstancesOutcomeCallable; typedef std::function&)> ImportDatabaseBetweenInstancesAsyncHandler; - typedef Outcome RenewInstanceOutcome; - typedef std::future RenewInstanceOutcomeCallable; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; typedef std::function&)> RenewInstanceAsyncHandler; - typedef Outcome ModifyDBInstanceMonitorOutcome; - typedef std::future ModifyDBInstanceMonitorOutcomeCallable; + typedef Outcome ModifyDBInstanceMonitorOutcome; + typedef std::future ModifyDBInstanceMonitorOutcomeCallable; typedef std::function&)> ModifyDBInstanceMonitorAsyncHandler; - typedef Outcome DescribeSQLLogFilesOutcome; - typedef std::future DescribeSQLLogFilesOutcomeCallable; + typedef Outcome ModifyInstanceCrossBackupPolicyOutcome; + typedef std::future ModifyInstanceCrossBackupPolicyOutcomeCallable; + typedef std::function&)> ModifyInstanceCrossBackupPolicyAsyncHandler; + typedef Outcome DescribeSQLLogFilesOutcome; + typedef std::future DescribeSQLLogFilesOutcomeCallable; typedef std::function&)> DescribeSQLLogFilesAsyncHandler; - typedef Outcome CancelImportOutcome; - typedef std::future CancelImportOutcomeCallable; + typedef Outcome DescribeAvailableCrossRegionOutcome; + typedef std::future DescribeAvailableCrossRegionOutcomeCallable; + typedef std::function&)> DescribeAvailableCrossRegionAsyncHandler; + typedef Outcome CancelImportOutcome; + typedef std::future CancelImportOutcomeCallable; typedef std::function&)> CancelImportAsyncHandler; - typedef Outcome ModifyReplicaDescriptionOutcome; - typedef std::future ModifyReplicaDescriptionOutcomeCallable; - typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; - typedef Outcome ModifyBackupPolicyOutcome; - typedef std::future ModifyBackupPolicyOutcomeCallable; - typedef std::function&)> ModifyBackupPolicyAsyncHandler; - typedef Outcome DescribeSecurityGroupConfigurationOutcome; - typedef std::future DescribeSecurityGroupConfigurationOutcomeCallable; + typedef Outcome DescribeSecurityGroupConfigurationOutcome; + typedef std::future DescribeSecurityGroupConfigurationOutcomeCallable; typedef std::function&)> DescribeSecurityGroupConfigurationAsyncHandler; - typedef Outcome DescribeParametersOutcome; - typedef std::future DescribeParametersOutcomeCallable; + typedef Outcome ModifyBackupPolicyOutcome; + typedef std::future ModifyBackupPolicyOutcomeCallable; + typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome ModifyReplicaDescriptionOutcome; + typedef std::future ModifyReplicaDescriptionOutcomeCallable; + typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; + typedef Outcome DescribeParametersOutcome; + typedef std::future DescribeParametersOutcomeCallable; typedef std::function&)> DescribeParametersAsyncHandler; - typedef Outcome AddTagsToResourceOutcome; - typedef std::future AddTagsToResourceOutcomeCallable; + typedef Outcome AddTagsToResourceOutcome; + typedef std::future AddTagsToResourceOutcomeCallable; typedef std::function&)> AddTagsToResourceAsyncHandler; - typedef Outcome DescribeBinlogFilesOutcome; - typedef std::future DescribeBinlogFilesOutcomeCallable; + typedef Outcome DescribeBinlogFilesOutcome; + typedef std::future DescribeBinlogFilesOutcomeCallable; typedef std::function&)> DescribeBinlogFilesAsyncHandler; - typedef Outcome DescribeDBInstanceProxyConfigurationOutcome; - typedef std::future DescribeDBInstanceProxyConfigurationOutcomeCallable; + typedef Outcome DescribeDBInstanceProxyConfigurationOutcome; + typedef std::future DescribeDBInstanceProxyConfigurationOutcomeCallable; typedef std::function&)> DescribeDBInstanceProxyConfigurationAsyncHandler; - typedef Outcome CreateDiagnosticReportOutcome; - typedef std::future CreateDiagnosticReportOutcomeCallable; + typedef Outcome CreateDiagnosticReportOutcome; + typedef std::future CreateDiagnosticReportOutcomeCallable; typedef std::function&)> CreateDiagnosticReportAsyncHandler; - typedef Outcome DescribeSQLLogReportListOutcome; - typedef std::future DescribeSQLLogReportListOutcomeCallable; - typedef std::function&)> DescribeSQLLogReportListAsyncHandler; - typedef Outcome DescribeReadDBInstanceDelayOutcome; - typedef std::future DescribeReadDBInstanceDelayOutcomeCallable; + typedef Outcome DescribeReadDBInstanceDelayOutcome; + typedef std::future DescribeReadDBInstanceDelayOutcomeCallable; typedef std::function&)> DescribeReadDBInstanceDelayAsyncHandler; - typedef Outcome CloneDBInstanceOutcome; - typedef std::future CloneDBInstanceOutcomeCallable; + typedef Outcome DescribeSQLLogReportListOutcome; + typedef std::future DescribeSQLLogReportListOutcomeCallable; + typedef std::function&)> DescribeSQLLogReportListAsyncHandler; + typedef Outcome CloneDBInstanceOutcome; + typedef std::future CloneDBInstanceOutcomeCallable; typedef std::function&)> CloneDBInstanceAsyncHandler; - typedef Outcome DescribeTasksOutcome; - typedef std::future DescribeTasksOutcomeCallable; + typedef Outcome DescribeTasksOutcome; + typedef std::future DescribeTasksOutcomeCallable; typedef std::function&)> DescribeTasksAsyncHandler; - typedef Outcome DescribeRenewalPriceOutcome; - typedef std::future DescribeRenewalPriceOutcomeCallable; + typedef Outcome DescribeRenewalPriceOutcome; + typedef std::future DescribeRenewalPriceOutcomeCallable; typedef std::function&)> DescribeRenewalPriceAsyncHandler; - typedef Outcome AllocateInstancePublicConnectionOutcome; - typedef std::future AllocateInstancePublicConnectionOutcomeCallable; + typedef Outcome AllocateInstancePublicConnectionOutcome; + typedef std::future AllocateInstancePublicConnectionOutcomeCallable; typedef std::function&)> AllocateInstancePublicConnectionAsyncHandler; - typedef Outcome DescribeDBInstanceAttributeOutcome; - typedef std::future DescribeDBInstanceAttributeOutcomeCallable; + typedef Outcome DescribeDBInstanceAttributeOutcome; + typedef std::future DescribeDBInstanceAttributeOutcomeCallable; typedef std::function&)> DescribeDBInstanceAttributeAsyncHandler; - typedef Outcome CheckInstanceExistOutcome; - typedef std::future CheckInstanceExistOutcomeCallable; + typedef Outcome CheckInstanceExistOutcome; + typedef std::future CheckInstanceExistOutcomeCallable; typedef std::function&)> CheckInstanceExistAsyncHandler; - typedef Outcome CreateTempDBInstanceOutcome; - typedef std::future CreateTempDBInstanceOutcomeCallable; + typedef Outcome CreateTempDBInstanceOutcome; + typedef std::future CreateTempDBInstanceOutcomeCallable; typedef std::function&)> CreateTempDBInstanceAsyncHandler; - typedef Outcome ModifyInstanceAutoRenewalAttributeOutcome; - typedef std::future ModifyInstanceAutoRenewalAttributeOutcomeCallable; + typedef Outcome ModifyInstanceAutoRenewalAttributeOutcome; + typedef std::future ModifyInstanceAutoRenewalAttributeOutcomeCallable; typedef std::function&)> ModifyInstanceAutoRenewalAttributeAsyncHandler; - typedef Outcome ModifySQLCollectorPolicyOutcome; - typedef std::future ModifySQLCollectorPolicyOutcomeCallable; + typedef Outcome ModifySQLCollectorPolicyOutcome; + typedef std::future ModifySQLCollectorPolicyOutcomeCallable; typedef std::function&)> ModifySQLCollectorPolicyAsyncHandler; - typedef Outcome AllocateInstanceVpcNetworkTypeOutcome; - typedef std::future AllocateInstanceVpcNetworkTypeOutcomeCallable; + typedef Outcome AllocateInstanceVpcNetworkTypeOutcome; + typedef std::future AllocateInstanceVpcNetworkTypeOutcomeCallable; typedef std::function&)> AllocateInstanceVpcNetworkTypeAsyncHandler; - typedef Outcome DescribeBackupsOutcome; - typedef std::future DescribeBackupsOutcomeCallable; + typedef Outcome DescribeBackupsOutcome; + typedef std::future DescribeBackupsOutcomeCallable; typedef std::function&)> DescribeBackupsAsyncHandler; - typedef Outcome CreateDatabaseOutcome; - typedef std::future CreateDatabaseOutcomeCallable; + typedef Outcome CreateDatabaseOutcome; + typedef std::future CreateDatabaseOutcomeCallable; typedef std::function&)> CreateDatabaseAsyncHandler; - typedef Outcome DescribeCollationTimeZonesOutcome; - typedef std::future DescribeCollationTimeZonesOutcomeCallable; + typedef Outcome DescribeCollationTimeZonesOutcome; + typedef std::future DescribeCollationTimeZonesOutcomeCallable; typedef std::function&)> DescribeCollationTimeZonesAsyncHandler; - typedef Outcome DeleteDBInstanceOutcome; - typedef std::future DeleteDBInstanceOutcomeCallable; + typedef Outcome DeleteDBInstanceOutcome; + typedef std::future DeleteDBInstanceOutcomeCallable; typedef std::function&)> DeleteDBInstanceAsyncHandler; - typedef Outcome ModifyReadonlyInstanceDelayReplicationTimeOutcome; - typedef std::future ModifyReadonlyInstanceDelayReplicationTimeOutcomeCallable; + typedef Outcome ModifyReadonlyInstanceDelayReplicationTimeOutcome; + typedef std::future ModifyReadonlyInstanceDelayReplicationTimeOutcomeCallable; typedef std::function&)> ModifyReadonlyInstanceDelayReplicationTimeAsyncHandler; - typedef Outcome DescribeInstanceAutoRenewalAttributeOutcome; - typedef std::future DescribeInstanceAutoRenewalAttributeOutcomeCallable; + typedef Outcome DescribeInstanceAutoRenewalAttributeOutcome; + typedef std::future DescribeInstanceAutoRenewalAttributeOutcomeCallable; typedef std::function&)> DescribeInstanceAutoRenewalAttributeAsyncHandler; - typedef Outcome SwitchDBInstanceVpcOutcome; - typedef std::future SwitchDBInstanceVpcOutcomeCallable; + typedef Outcome SwitchDBInstanceVpcOutcome; + typedef std::future SwitchDBInstanceVpcOutcomeCallable; typedef std::function&)> SwitchDBInstanceVpcAsyncHandler; - typedef Outcome RestoreDBInstanceOutcome; - typedef std::future RestoreDBInstanceOutcomeCallable; + typedef Outcome RestoreDBInstanceOutcome; + typedef std::future RestoreDBInstanceOutcomeCallable; typedef std::function&)> RestoreDBInstanceAsyncHandler; - typedef Outcome RevokeOperatorPermissionOutcome; - typedef std::future RevokeOperatorPermissionOutcomeCallable; + typedef Outcome RevokeOperatorPermissionOutcome; + typedef std::future RevokeOperatorPermissionOutcomeCallable; typedef std::function&)> RevokeOperatorPermissionAsyncHandler; - typedef Outcome ModifyDBInstanceSpecOutcome; - typedef std::future ModifyDBInstanceSpecOutcomeCallable; + typedef Outcome ModifyDBInstanceSpecOutcome; + typedef std::future ModifyDBInstanceSpecOutcomeCallable; typedef std::function&)> ModifyDBInstanceSpecAsyncHandler; - typedef Outcome DescribeDiagnosticReportListOutcome; - typedef std::future DescribeDiagnosticReportListOutcomeCallable; - typedef std::function&)> DescribeDiagnosticReportListAsyncHandler; - typedef Outcome MigrateSecurityIPModeOutcome; - typedef std::future MigrateSecurityIPModeOutcomeCallable; + typedef Outcome MigrateSecurityIPModeOutcome; + typedef std::future MigrateSecurityIPModeOutcomeCallable; typedef std::function&)> MigrateSecurityIPModeAsyncHandler; - typedef Outcome RemoveTagsFromResourceOutcome; - typedef std::future RemoveTagsFromResourceOutcomeCallable; + typedef Outcome DescribeDiagnosticReportListOutcome; + typedef std::future DescribeDiagnosticReportListOutcomeCallable; + typedef std::function&)> DescribeDiagnosticReportListAsyncHandler; + typedef Outcome RemoveTagsFromResourceOutcome; + typedef std::future RemoveTagsFromResourceOutcomeCallable; typedef std::function&)> RemoveTagsFromResourceAsyncHandler; - typedef Outcome DescribeSQLLogRecordsOutcome; - typedef std::future DescribeSQLLogRecordsOutcomeCallable; + typedef Outcome DescribeSQLLogRecordsOutcome; + typedef std::future DescribeSQLLogRecordsOutcomeCallable; typedef std::function&)> DescribeSQLLogRecordsAsyncHandler; - typedef Outcome ModifySecurityIpsOutcome; - typedef std::future ModifySecurityIpsOutcomeCallable; + typedef Outcome ModifySecurityIpsOutcome; + typedef std::future ModifySecurityIpsOutcomeCallable; typedef std::function&)> ModifySecurityIpsAsyncHandler; - typedef Outcome DescribeMigrateTasksForSQLServerOutcome; - typedef std::future DescribeMigrateTasksForSQLServerOutcomeCallable; + typedef Outcome DescribeMigrateTasksForSQLServerOutcome; + typedef std::future DescribeMigrateTasksForSQLServerOutcomeCallable; typedef std::function&)> DescribeMigrateTasksForSQLServerAsyncHandler; - typedef Outcome RestoreTableOutcome; - typedef std::future RestoreTableOutcomeCallable; + typedef Outcome RestoreTableOutcome; + typedef std::future RestoreTableOutcomeCallable; typedef std::function&)> RestoreTableAsyncHandler; - typedef Outcome CreateOnlineDatabaseTaskOutcome; - typedef std::future CreateOnlineDatabaseTaskOutcomeCallable; + typedef Outcome CreateOnlineDatabaseTaskOutcome; + typedef std::future CreateOnlineDatabaseTaskOutcomeCallable; typedef std::function&)> CreateOnlineDatabaseTaskAsyncHandler; - typedef Outcome GrantAccountPrivilegeOutcome; - typedef std::future GrantAccountPrivilegeOutcomeCallable; + typedef Outcome GrantAccountPrivilegeOutcome; + typedef std::future GrantAccountPrivilegeOutcomeCallable; typedef std::function&)> GrantAccountPrivilegeAsyncHandler; - typedef Outcome GrantOperatorPermissionOutcome; - typedef std::future GrantOperatorPermissionOutcomeCallable; + typedef Outcome GrantOperatorPermissionOutcome; + typedef std::future GrantOperatorPermissionOutcomeCallable; typedef std::function&)> GrantOperatorPermissionAsyncHandler; - typedef Outcome ModifyDBInstanceTDEOutcome; - typedef std::future ModifyDBInstanceTDEOutcomeCallable; + typedef Outcome DescribeAvailableRecoveryTimeOutcome; + typedef std::future DescribeAvailableRecoveryTimeOutcomeCallable; + typedef std::function&)> DescribeAvailableRecoveryTimeAsyncHandler; + typedef Outcome DescribeDBInstanceIpHostnameOutcome; + typedef std::future DescribeDBInstanceIpHostnameOutcomeCallable; + typedef std::function&)> DescribeDBInstanceIpHostnameAsyncHandler; + typedef Outcome ModifyDBInstanceTDEOutcome; + typedef std::future ModifyDBInstanceTDEOutcomeCallable; typedef std::function&)> ModifyDBInstanceTDEAsyncHandler; - typedef Outcome DescribeDBInstancePerformanceOutcome; - typedef std::future DescribeDBInstancePerformanceOutcomeCallable; + typedef Outcome DescribeDBInstancePerformanceOutcome; + typedef std::future DescribeDBInstancePerformanceOutcomeCallable; typedef std::function&)> DescribeDBInstancePerformanceAsyncHandler; - typedef Outcome DescribeDBInstancesOutcome; - typedef std::future DescribeDBInstancesOutcomeCallable; + typedef Outcome DescribeDBInstancesOutcome; + typedef std::future DescribeDBInstancesOutcomeCallable; typedef std::function&)> DescribeDBInstancesAsyncHandler; - typedef Outcome RequestServiceOfCloudDBExpertOutcome; - typedef std::future RequestServiceOfCloudDBExpertOutcomeCallable; + typedef Outcome RequestServiceOfCloudDBExpertOutcome; + typedef std::future RequestServiceOfCloudDBExpertOutcomeCallable; typedef std::function&)> RequestServiceOfCloudDBExpertAsyncHandler; - typedef Outcome DescribeBackupDatabaseOutcome; - typedef std::future DescribeBackupDatabaseOutcomeCallable; + typedef Outcome DescribeCrossRegionLogBackupFilesOutcome; + typedef std::future DescribeCrossRegionLogBackupFilesOutcomeCallable; + typedef std::function&)> DescribeCrossRegionLogBackupFilesAsyncHandler; + typedef Outcome DescribeBackupDatabaseOutcome; + typedef std::future DescribeBackupDatabaseOutcomeCallable; typedef std::function&)> DescribeBackupDatabaseAsyncHandler; - typedef Outcome CreateDBInstanceReplicaOutcome; - typedef std::future CreateDBInstanceReplicaOutcomeCallable; + typedef Outcome CreateDBInstanceReplicaOutcome; + typedef std::future CreateDBInstanceReplicaOutcomeCallable; typedef std::function&)> CreateDBInstanceReplicaAsyncHandler; - typedef Outcome AllocateInstancePrivateConnectionOutcome; - typedef std::future AllocateInstancePrivateConnectionOutcomeCallable; + typedef Outcome AllocateInstancePrivateConnectionOutcome; + typedef std::future AllocateInstancePrivateConnectionOutcomeCallable; typedef std::function&)> AllocateInstancePrivateConnectionAsyncHandler; - typedef Outcome RevokeAccountPrivilegeOutcome; - typedef std::future RevokeAccountPrivilegeOutcomeCallable; + typedef Outcome RevokeAccountPrivilegeOutcome; + typedef std::future RevokeAccountPrivilegeOutcomeCallable; typedef std::function&)> RevokeAccountPrivilegeAsyncHandler; - typedef Outcome DescribeParameterTemplatesOutcome; - typedef std::future DescribeParameterTemplatesOutcomeCallable; + typedef Outcome DescribeParameterTemplatesOutcome; + typedef std::future DescribeParameterTemplatesOutcomeCallable; typedef std::function&)> DescribeParameterTemplatesAsyncHandler; - typedef Outcome DescibeImportsFromDatabaseOutcome; - typedef std::future DescibeImportsFromDatabaseOutcomeCallable; + typedef Outcome DescibeImportsFromDatabaseOutcome; + typedef std::future DescibeImportsFromDatabaseOutcomeCallable; typedef std::function&)> DescibeImportsFromDatabaseAsyncHandler; - typedef Outcome CopyDatabaseBetweenInstancesOutcome; - typedef std::future CopyDatabaseBetweenInstancesOutcomeCallable; + typedef Outcome CopyDatabaseBetweenInstancesOutcome; + typedef std::future CopyDatabaseBetweenInstancesOutcomeCallable; typedef std::function&)> CopyDatabaseBetweenInstancesAsyncHandler; - typedef Outcome DescribeInstanceVpcMigrateInfoOutcome; - typedef std::future DescribeInstanceVpcMigrateInfoOutcomeCallable; + typedef Outcome DescribeInstanceVpcMigrateInfoOutcome; + typedef std::future DescribeInstanceVpcMigrateInfoOutcomeCallable; typedef std::function&)> DescribeInstanceVpcMigrateInfoAsyncHandler; - typedef Outcome CopyDatabaseOutcome; - typedef std::future CopyDatabaseOutcomeCallable; + typedef Outcome CopyDatabaseOutcome; + typedef std::future CopyDatabaseOutcomeCallable; typedef std::function&)> CopyDatabaseAsyncHandler; - typedef Outcome CreateDBInstanceOutcome; - typedef std::future CreateDBInstanceOutcomeCallable; - typedef std::function&)> CreateDBInstanceAsyncHandler; - typedef Outcome ModifyDBInstanceSSLOutcome; - typedef std::future ModifyDBInstanceSSLOutcomeCallable; + typedef Outcome ModifyDBInstanceSSLOutcome; + typedef std::future ModifyDBInstanceSSLOutcomeCallable; typedef std::function&)> ModifyDBInstanceSSLAsyncHandler; - typedef Outcome DescribeDBInstanceTDEOutcome; - typedef std::future DescribeDBInstanceTDEOutcomeCallable; + typedef Outcome CreateDBInstanceOutcome; + typedef std::future CreateDBInstanceOutcomeCallable; + typedef std::function&)> CreateDBInstanceAsyncHandler; + typedef Outcome DescribeDBInstanceTDEOutcome; + typedef std::future DescribeDBInstanceTDEOutcomeCallable; typedef std::function&)> DescribeDBInstanceTDEAsyncHandler; - typedef Outcome DescribeSQLLogReportsOutcome; - typedef std::future DescribeSQLLogReportsOutcomeCallable; + typedef Outcome DescribeSQLLogReportsOutcome; + typedef std::future DescribeSQLLogReportsOutcomeCallable; typedef std::function&)> DescribeSQLLogReportsAsyncHandler; - typedef Outcome ModifyDBInstanceConnectionModeOutcome; - typedef std::future ModifyDBInstanceConnectionModeOutcomeCallable; + typedef Outcome ModifyDBInstanceConnectionModeOutcome; + typedef std::future ModifyDBInstanceConnectionModeOutcomeCallable; typedef std::function&)> ModifyDBInstanceConnectionModeAsyncHandler; - typedef Outcome DescribeDBInstanceNetInfoOutcome; - typedef std::future DescribeDBInstanceNetInfoOutcomeCallable; + typedef Outcome DescribeDBInstanceNetInfoOutcome; + typedef std::future DescribeDBInstanceNetInfoOutcomeCallable; typedef std::function&)> DescribeDBInstanceNetInfoAsyncHandler; - typedef Outcome DescribeAvailableResourceOutcome; - typedef std::future DescribeAvailableResourceOutcomeCallable; + typedef Outcome DescribeAvailableResourceOutcome; + typedef std::future DescribeAvailableResourceOutcomeCallable; typedef std::function&)> DescribeAvailableResourceAsyncHandler; - typedef Outcome AllocateReadWriteSplittingConnectionOutcome; - typedef std::future AllocateReadWriteSplittingConnectionOutcomeCallable; + typedef Outcome AllocateReadWriteSplittingConnectionOutcome; + typedef std::future AllocateReadWriteSplittingConnectionOutcomeCallable; typedef std::function&)> AllocateReadWriteSplittingConnectionAsyncHandler; - typedef Outcome DescribeCloudDbExpertServiceOutcome; - typedef std::future DescribeCloudDbExpertServiceOutcomeCallable; + typedef Outcome DescribeCloudDbExpertServiceOutcome; + typedef std::future DescribeCloudDbExpertServiceOutcomeCallable; typedef std::function&)> DescribeCloudDbExpertServiceAsyncHandler; - typedef Outcome EvaluateSupportByokShowOutcome; - typedef std::future EvaluateSupportByokShowOutcomeCallable; + typedef Outcome ModifyDBInstanceAutoUpgradeMinorVersionOutcome; + typedef std::future ModifyDBInstanceAutoUpgradeMinorVersionOutcomeCallable; + typedef std::function&)> ModifyDBInstanceAutoUpgradeMinorVersionAsyncHandler; + typedef Outcome EvaluateSupportByokShowOutcome; + typedef std::future EvaluateSupportByokShowOutcomeCallable; typedef std::function&)> EvaluateSupportByokShowAsyncHandler; - typedef Outcome ReleaseInstancePublicConnectionOutcome; - typedef std::future ReleaseInstancePublicConnectionOutcomeCallable; + typedef Outcome ReleaseInstancePublicConnectionOutcome; + typedef std::future ReleaseInstancePublicConnectionOutcomeCallable; typedef std::function&)> ReleaseInstancePublicConnectionAsyncHandler; - typedef Outcome CalculateDBInstanceWeightOutcome; - typedef std::future CalculateDBInstanceWeightOutcomeCallable; + typedef Outcome CalculateDBInstanceWeightOutcome; + typedef std::future CalculateDBInstanceWeightOutcomeCallable; typedef std::function&)> CalculateDBInstanceWeightAsyncHandler; - typedef Outcome ModifyDBInstanceNetworkTypeOutcome; - typedef std::future ModifyDBInstanceNetworkTypeOutcomeCallable; + typedef Outcome ModifyDBInstanceNetworkTypeOutcome; + typedef std::future ModifyDBInstanceNetworkTypeOutcomeCallable; typedef std::function&)> ModifyDBInstanceNetworkTypeAsyncHandler; - typedef Outcome DescribeSlowLogsOutcome; - typedef std::future DescribeSlowLogsOutcomeCallable; + typedef Outcome CreateDdrInstanceOutcome; + typedef std::future CreateDdrInstanceOutcomeCallable; + typedef std::function&)> CreateDdrInstanceAsyncHandler; + typedef Outcome DescribeDTCSecurityIpHostsForSQLServerOutcome; + typedef std::future DescribeDTCSecurityIpHostsForSQLServerOutcomeCallable; + typedef std::function&)> DescribeDTCSecurityIpHostsForSQLServerAsyncHandler; + typedef Outcome DescribeSlowLogsOutcome; + typedef std::future DescribeSlowLogsOutcomeCallable; typedef std::function&)> DescribeSlowLogsAsyncHandler; - typedef Outcome CreateBackupOutcome; - typedef std::future CreateBackupOutcomeCallable; + typedef Outcome CreateBackupOutcome; + typedef std::future CreateBackupOutcomeCallable; typedef std::function&)> CreateBackupAsyncHandler; - typedef Outcome ModifyReadWriteSplittingConnectionOutcome; - typedef std::future ModifyReadWriteSplittingConnectionOutcomeCallable; + typedef Outcome ModifyReadWriteSplittingConnectionOutcome; + typedef std::future ModifyReadWriteSplittingConnectionOutcomeCallable; typedef std::function&)> ModifyReadWriteSplittingConnectionAsyncHandler; - typedef Outcome ModifyDBInstanceMaintainTimeOutcome; - typedef std::future ModifyDBInstanceMaintainTimeOutcomeCallable; + typedef Outcome ModifyDBInstanceMaintainTimeOutcome; + typedef std::future ModifyDBInstanceMaintainTimeOutcomeCallable; typedef std::function&)> ModifyDBInstanceMaintainTimeAsyncHandler; - typedef Outcome ModifyDBInstanceDescriptionOutcome; - typedef std::future ModifyDBInstanceDescriptionOutcomeCallable; + typedef Outcome ModifyDBInstanceDescriptionOutcome; + typedef std::future ModifyDBInstanceDescriptionOutcomeCallable; typedef std::function&)> ModifyDBInstanceDescriptionAsyncHandler; - typedef Outcome ModifyResourceGroupOutcome; - typedef std::future ModifyResourceGroupOutcomeCallable; + typedef Outcome DescribeCrossRegionBackupsOutcome; + typedef std::future DescribeCrossRegionBackupsOutcomeCallable; + typedef std::function&)> DescribeCrossRegionBackupsAsyncHandler; + typedef Outcome ModifyResourceGroupOutcome; + typedef std::future ModifyResourceGroupOutcomeCallable; typedef std::function&)> ModifyResourceGroupAsyncHandler; - typedef Outcome DescribeProxyFunctionSupportOutcome; - typedef std::future DescribeProxyFunctionSupportOutcomeCallable; + typedef Outcome DescribeProxyFunctionSupportOutcome; + typedef std::future DescribeProxyFunctionSupportOutcomeCallable; typedef std::function&)> DescribeProxyFunctionSupportAsyncHandler; - typedef Outcome DescribeOssDownloadsForSQLServerOutcome; - typedef std::future DescribeOssDownloadsForSQLServerOutcomeCallable; + typedef Outcome DescribeOssDownloadsForSQLServerOutcome; + typedef std::future DescribeOssDownloadsForSQLServerOutcomeCallable; typedef std::function&)> DescribeOssDownloadsForSQLServerAsyncHandler; - typedef Outcome ResetAccountOutcome; - typedef std::future ResetAccountOutcomeCallable; + typedef Outcome DescribeInstanceCrossBackupPolicyOutcome; + typedef std::future DescribeInstanceCrossBackupPolicyOutcomeCallable; + typedef std::function&)> DescribeInstanceCrossBackupPolicyAsyncHandler; + typedef Outcome ResetAccountOutcome; + typedef std::future ResetAccountOutcomeCallable; typedef std::function&)> ResetAccountAsyncHandler; - typedef Outcome DescribeResourceUsageOutcome; - typedef std::future DescribeResourceUsageOutcomeCallable; + typedef Outcome DescribeResourceUsageOutcome; + typedef std::future DescribeResourceUsageOutcomeCallable; typedef std::function&)> DescribeResourceUsageAsyncHandler; - typedef Outcome PurgeDBInstanceLogOutcome; - typedef std::future PurgeDBInstanceLogOutcomeCallable; + typedef Outcome DescribeCrossRegionBackupDBInstanceOutcome; + typedef std::future DescribeCrossRegionBackupDBInstanceOutcomeCallable; + typedef std::function&)> DescribeCrossRegionBackupDBInstanceAsyncHandler; + typedef Outcome PurgeDBInstanceLogOutcome; + typedef std::future PurgeDBInstanceLogOutcomeCallable; typedef std::function&)> PurgeDBInstanceLogAsyncHandler; - typedef Outcome DescribeTaskInfoOutcome; - typedef std::future DescribeTaskInfoOutcomeCallable; - typedef std::function&)> DescribeTaskInfoAsyncHandler; - typedef Outcome UpgradeDBInstanceKernelVersionOutcome; - typedef std::future UpgradeDBInstanceKernelVersionOutcomeCallable; + typedef Outcome UpgradeDBInstanceKernelVersionOutcome; + typedef std::future UpgradeDBInstanceKernelVersionOutcomeCallable; typedef std::function&)> UpgradeDBInstanceKernelVersionAsyncHandler; - typedef Outcome ModifyMySQLDBInstanceDelayOutcome; - typedef std::future ModifyMySQLDBInstanceDelayOutcomeCallable; + typedef Outcome DescribeTaskInfoOutcome; + typedef std::future DescribeTaskInfoOutcomeCallable; + typedef std::function&)> DescribeTaskInfoAsyncHandler; + typedef Outcome ModifyMySQLDBInstanceDelayOutcome; + typedef std::future ModifyMySQLDBInstanceDelayOutcomeCallable; typedef std::function&)> ModifyMySQLDBInstanceDelayAsyncHandler; - typedef Outcome DescribeRegionsOutcome; - typedef std::future DescribeRegionsOutcomeCallable; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; - typedef Outcome MigrateToOtherZoneOutcome; - typedef std::future MigrateToOtherZoneOutcomeCallable; + typedef Outcome MigrateToOtherZoneOutcome; + typedef std::future MigrateToOtherZoneOutcomeCallable; typedef std::function&)> MigrateToOtherZoneAsyncHandler; - typedef Outcome DeleteAccountOutcome; - typedef std::future DeleteAccountOutcomeCallable; + typedef Outcome DeleteAccountOutcome; + typedef std::future DeleteAccountOutcomeCallable; typedef std::function&)> DeleteAccountAsyncHandler; - typedef Outcome DescribeSlowLogRecordsOutcome; - typedef std::future DescribeSlowLogRecordsOutcomeCallable; + typedef Outcome DescribeSlowLogRecordsOutcome; + typedef std::future DescribeSlowLogRecordsOutcomeCallable; typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; - typedef Outcome ReleaseReadWriteSplittingConnectionOutcome; - typedef std::future ReleaseReadWriteSplittingConnectionOutcomeCallable; + typedef Outcome ReleaseReadWriteSplittingConnectionOutcome; + typedef std::future ReleaseReadWriteSplittingConnectionOutcomeCallable; typedef std::function&)> ReleaseReadWriteSplittingConnectionAsyncHandler; - typedef Outcome DescribeLogBackupFilesOutcome; - typedef std::future DescribeLogBackupFilesOutcomeCallable; + typedef Outcome DescribeLogBackupFilesOutcome; + typedef std::future DescribeLogBackupFilesOutcomeCallable; typedef std::function&)> DescribeLogBackupFilesAsyncHandler; - typedef Outcome DescribeAvailableInstanceClassOutcome; - typedef std::future DescribeAvailableInstanceClassOutcomeCallable; + typedef Outcome DescribeAvailableInstanceClassOutcome; + typedef std::future DescribeAvailableInstanceClassOutcomeCallable; typedef std::function&)> DescribeAvailableInstanceClassAsyncHandler; - typedef Outcome DescribeErrorLogsOutcome; - typedef std::future DescribeErrorLogsOutcomeCallable; + typedef Outcome DescribeErrorLogsOutcome; + typedef std::future DescribeErrorLogsOutcomeCallable; typedef std::function&)> DescribeErrorLogsAsyncHandler; - typedef Outcome ModifyDBInstanceHAConfigOutcome; - typedef std::future ModifyDBInstanceHAConfigOutcomeCallable; + typedef Outcome ModifyDBInstanceHAConfigOutcome; + typedef std::future ModifyDBInstanceHAConfigOutcomeCallable; typedef std::function&)> ModifyDBInstanceHAConfigAsyncHandler; - typedef Outcome DescribeDBInstancesAsCsvOutcome; - typedef std::future DescribeDBInstancesAsCsvOutcomeCallable; + typedef Outcome DescribeDBInstancesAsCsvOutcome; + typedef std::future DescribeDBInstancesAsCsvOutcomeCallable; typedef std::function&)> DescribeDBInstancesAsCsvAsyncHandler; - typedef Outcome ResetAccountPasswordOutcome; - typedef std::future ResetAccountPasswordOutcomeCallable; + typedef Outcome ResetAccountPasswordOutcome; + typedef std::future ResetAccountPasswordOutcomeCallable; typedef std::function&)> ResetAccountPasswordAsyncHandler; - typedef Outcome ModifyDBInstanceProxyConfigurationOutcome; - typedef std::future ModifyDBInstanceProxyConfigurationOutcomeCallable; + typedef Outcome ModifyDBInstanceProxyConfigurationOutcome; + typedef std::future ModifyDBInstanceProxyConfigurationOutcomeCallable; typedef std::function&)> ModifyDBInstanceProxyConfigurationAsyncHandler; - typedef Outcome DescribePriceOutcome; - typedef std::future DescribePriceOutcomeCallable; - typedef std::function&)> DescribePriceAsyncHandler; - typedef Outcome DescribeAccountsOutcome; - typedef std::future DescribeAccountsOutcomeCallable; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; typedef std::function&)> DescribeAccountsAsyncHandler; - typedef Outcome DescribeDBInstanceByTagsOutcome; - typedef std::future DescribeDBInstanceByTagsOutcomeCallable; + typedef Outcome DescribePriceOutcome; + typedef std::future DescribePriceOutcomeCallable; + typedef std::function&)> DescribePriceAsyncHandler; + typedef Outcome DescribeDBInstanceByTagsOutcome; + typedef std::future DescribeDBInstanceByTagsOutcomeCallable; typedef std::function&)> DescribeDBInstanceByTagsAsyncHandler; - typedef Outcome DescribeMetaListOutcome; - typedef std::future DescribeMetaListOutcomeCallable; + typedef Outcome DescribeMetaListOutcome; + typedef std::future DescribeMetaListOutcomeCallable; typedef std::function&)> DescribeMetaListAsyncHandler; - typedef Outcome DescribeDBInstanceSSLOutcome; - typedef std::future DescribeDBInstanceSSLOutcomeCallable; + typedef Outcome DescribeDBInstanceSSLOutcome; + typedef std::future DescribeDBInstanceSSLOutcomeCallable; typedef std::function&)> DescribeDBInstanceSSLAsyncHandler; - typedef Outcome DescribeDBInstancesByPerformanceOutcome; - typedef std::future DescribeDBInstancesByPerformanceOutcomeCallable; + typedef Outcome DescribeDBInstancesByPerformanceOutcome; + typedef std::future DescribeDBInstancesByPerformanceOutcomeCallable; typedef std::function&)> DescribeDBInstancesByPerformanceAsyncHandler; - typedef Outcome DescribeSQLReportsOutcome; - typedef std::future DescribeSQLReportsOutcomeCallable; + typedef Outcome DescribeSQLReportsOutcome; + typedef std::future DescribeSQLReportsOutcomeCallable; typedef std::function&)> DescribeSQLReportsAsyncHandler; - typedef Outcome DescribeBackupTasksOutcome; - typedef std::future DescribeBackupTasksOutcomeCallable; + typedef Outcome DescribeBackupTasksOutcome; + typedef std::future DescribeBackupTasksOutcomeCallable; typedef std::function&)> DescribeBackupTasksAsyncHandler; - typedef Outcome DeleteDatabaseOutcome; - typedef std::future DeleteDatabaseOutcomeCallable; + typedef Outcome DeleteDatabaseOutcome; + typedef std::future DeleteDatabaseOutcomeCallable; typedef std::function&)> DeleteDatabaseAsyncHandler; - typedef Outcome ModifyCollationTimeZoneOutcome; - typedef std::future ModifyCollationTimeZoneOutcomeCallable; - typedef std::function&)> ModifyCollationTimeZoneAsyncHandler; - typedef Outcome DescribeBackupPolicyOutcome; - typedef std::future DescribeBackupPolicyOutcomeCallable; + typedef Outcome DescribeBackupPolicyOutcome; + typedef std::future DescribeBackupPolicyOutcomeCallable; typedef std::function&)> DescribeBackupPolicyAsyncHandler; - typedef Outcome CreateMigrateTaskForSQLServerOutcome; - typedef std::future CreateMigrateTaskForSQLServerOutcomeCallable; + typedef Outcome ModifyCollationTimeZoneOutcome; + typedef std::future ModifyCollationTimeZoneOutcomeCallable; + typedef std::function&)> ModifyCollationTimeZoneAsyncHandler; + typedef Outcome CreateMigrateTaskForSQLServerOutcome; + typedef std::future CreateMigrateTaskForSQLServerOutcomeCallable; typedef std::function&)> CreateMigrateTaskForSQLServerAsyncHandler; - typedef Outcome DescribeDBInstanceIPArrayListOutcome; - typedef std::future DescribeDBInstanceIPArrayListOutcomeCallable; + typedef Outcome DescribeDBInstanceIPArrayListOutcome; + typedef std::future DescribeDBInstanceIPArrayListOutcomeCallable; typedef std::function&)> DescribeDBInstanceIPArrayListAsyncHandler; - typedef Outcome SwitchDBInstanceHAOutcome; - typedef std::future SwitchDBInstanceHAOutcomeCallable; + typedef Outcome SwitchDBInstanceHAOutcome; + typedef std::future SwitchDBInstanceHAOutcomeCallable; typedef std::function&)> SwitchDBInstanceHAAsyncHandler; - typedef Outcome ResetAccountForPGOutcome; - typedef std::future ResetAccountForPGOutcomeCallable; + typedef Outcome ResetAccountForPGOutcome; + typedef std::future ResetAccountForPGOutcomeCallable; typedef std::function&)> ResetAccountForPGAsyncHandler; - - RdsClient(const Credentials &credentials, const ClientConfiguration &configuration); - RdsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - RdsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~RdsClient(); - CreateMigrateTaskOutcome createMigrateTask(const Model::CreateMigrateTaskRequest &request)const; - void createMigrateTaskAsync(const Model::CreateMigrateTaskRequest& request, const CreateMigrateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + + RdsClient(const Credentials &credentials, const ClientConfiguration &configuration); + RdsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + RdsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~RdsClient(); + CheckCreateDdrDBInstanceOutcome checkCreateDdrDBInstance(const Model::CheckCreateDdrDBInstanceRequest &request)const; + void checkCreateDdrDBInstanceAsync(const Model::CheckCreateDdrDBInstanceRequest& request, const CheckCreateDdrDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckCreateDdrDBInstanceOutcomeCallable checkCreateDdrDBInstanceCallable(const Model::CheckCreateDdrDBInstanceRequest& request) const; + CreateMigrateTaskOutcome createMigrateTask(const Model::CreateMigrateTaskRequest &request)const; + void createMigrateTaskAsync(const Model::CreateMigrateTaskRequest& request, const CreateMigrateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMigrateTaskOutcomeCallable createMigrateTaskCallable(const Model::CreateMigrateTaskRequest& request) const; - CheckRecoveryConditionsOutcome checkRecoveryConditions(const Model::CheckRecoveryConditionsRequest &request)const; - void checkRecoveryConditionsAsync(const Model::CheckRecoveryConditionsRequest& request, const CheckRecoveryConditionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckRecoveryConditionsOutcome checkRecoveryConditions(const Model::CheckRecoveryConditionsRequest &request)const; + void checkRecoveryConditionsAsync(const Model::CheckRecoveryConditionsRequest& request, const CheckRecoveryConditionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckRecoveryConditionsOutcomeCallable checkRecoveryConditionsCallable(const Model::CheckRecoveryConditionsRequest& request) const; - DeleteBackupOutcome deleteBackup(const Model::DeleteBackupRequest &request)const; - void deleteBackupAsync(const Model::DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBackupOutcome deleteBackup(const Model::DeleteBackupRequest &request)const; + void deleteBackupAsync(const Model::DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBackupOutcomeCallable deleteBackupCallable(const Model::DeleteBackupRequest& request) const; - DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const; - void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const; + void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const; - DescribeDBInstancesByExpireTimeOutcome describeDBInstancesByExpireTime(const Model::DescribeDBInstancesByExpireTimeRequest &request)const; - void describeDBInstancesByExpireTimeAsync(const Model::DescribeDBInstancesByExpireTimeRequest& request, const DescribeDBInstancesByExpireTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesByExpireTimeOutcome describeDBInstancesByExpireTime(const Model::DescribeDBInstancesByExpireTimeRequest &request)const; + void describeDBInstancesByExpireTimeAsync(const Model::DescribeDBInstancesByExpireTimeRequest& request, const DescribeDBInstancesByExpireTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstancesByExpireTimeOutcomeCallable describeDBInstancesByExpireTimeCallable(const Model::DescribeDBInstancesByExpireTimeRequest& request) const; - SwitchDBInstanceNetTypeOutcome switchDBInstanceNetType(const Model::SwitchDBInstanceNetTypeRequest &request)const; - void switchDBInstanceNetTypeAsync(const Model::SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchDBInstanceNetTypeOutcome switchDBInstanceNetType(const Model::SwitchDBInstanceNetTypeRequest &request)const; + void switchDBInstanceNetTypeAsync(const Model::SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchDBInstanceNetTypeOutcomeCallable switchDBInstanceNetTypeCallable(const Model::SwitchDBInstanceNetTypeRequest& request) const; - DescribeDBInstanceMonitorOutcome describeDBInstanceMonitor(const Model::DescribeDBInstanceMonitorRequest &request)const; - void describeDBInstanceMonitorAsync(const Model::DescribeDBInstanceMonitorRequest& request, const DescribeDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceMonitorOutcome describeDBInstanceMonitor(const Model::DescribeDBInstanceMonitorRequest &request)const; + void describeDBInstanceMonitorAsync(const Model::DescribeDBInstanceMonitorRequest& request, const DescribeDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceMonitorOutcomeCallable describeDBInstanceMonitorCallable(const Model::DescribeDBInstanceMonitorRequest& request) const; - DescribeDBInstanceHAConfigOutcome describeDBInstanceHAConfig(const Model::DescribeDBInstanceHAConfigRequest &request)const; - void describeDBInstanceHAConfigAsync(const Model::DescribeDBInstanceHAConfigRequest& request, const DescribeDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDBInstanceHAConfigOutcomeCallable describeDBInstanceHAConfigCallable(const Model::DescribeDBInstanceHAConfigRequest& request) const; - CreateReadOnlyDBInstanceOutcome createReadOnlyDBInstance(const Model::CreateReadOnlyDBInstanceRequest &request)const; - void createReadOnlyDBInstanceAsync(const Model::CreateReadOnlyDBInstanceRequest& request, const CreateReadOnlyDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateReadOnlyDBInstanceOutcomeCallable createReadOnlyDBInstanceCallable(const Model::CreateReadOnlyDBInstanceRequest& request) const; - ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; - void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; + void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; - MigrateToOtherRegionOutcome migrateToOtherRegion(const Model::MigrateToOtherRegionRequest &request)const; - void migrateToOtherRegionAsync(const Model::MigrateToOtherRegionRequest& request, const MigrateToOtherRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceHAConfigOutcome describeDBInstanceHAConfig(const Model::DescribeDBInstanceHAConfigRequest &request)const; + void describeDBInstanceHAConfigAsync(const Model::DescribeDBInstanceHAConfigRequest& request, const DescribeDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceHAConfigOutcomeCallable describeDBInstanceHAConfigCallable(const Model::DescribeDBInstanceHAConfigRequest& request) const; + CreateReadOnlyDBInstanceOutcome createReadOnlyDBInstance(const Model::CreateReadOnlyDBInstanceRequest &request)const; + void createReadOnlyDBInstanceAsync(const Model::CreateReadOnlyDBInstanceRequest& request, const CreateReadOnlyDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateReadOnlyDBInstanceOutcomeCallable createReadOnlyDBInstanceCallable(const Model::CreateReadOnlyDBInstanceRequest& request) const; + MigrateToOtherRegionOutcome migrateToOtherRegion(const Model::MigrateToOtherRegionRequest &request)const; + void migrateToOtherRegionAsync(const Model::MigrateToOtherRegionRequest& request, const MigrateToOtherRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MigrateToOtherRegionOutcomeCallable migrateToOtherRegionCallable(const Model::MigrateToOtherRegionRequest& request) const; - DescribeOssDownloadsOutcome describeOssDownloads(const Model::DescribeOssDownloadsRequest &request)const; - void describeOssDownloadsAsync(const Model::DescribeOssDownloadsRequest& request, const DescribeOssDownloadsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssDownloadsOutcome describeOssDownloads(const Model::DescribeOssDownloadsRequest &request)const; + void describeOssDownloadsAsync(const Model::DescribeOssDownloadsRequest& request, const DescribeOssDownloadsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssDownloadsOutcomeCallable describeOssDownloadsCallable(const Model::DescribeOssDownloadsRequest& request) const; - ModifyParameterOutcome modifyParameter(const Model::ModifyParameterRequest &request)const; - void modifyParameterAsync(const Model::ModifyParameterRequest& request, const ModifyParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyParameterOutcome modifyParameter(const Model::ModifyParameterRequest &request)const; + void modifyParameterAsync(const Model::ModifyParameterRequest& request, const ModifyParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyParameterOutcomeCallable modifyParameterCallable(const Model::ModifyParameterRequest& request) const; - UpgradeDBInstanceEngineVersionOutcome upgradeDBInstanceEngineVersion(const Model::UpgradeDBInstanceEngineVersionRequest &request)const; - void upgradeDBInstanceEngineVersionAsync(const Model::UpgradeDBInstanceEngineVersionRequest& request, const UpgradeDBInstanceEngineVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBInstanceEngineVersionOutcome upgradeDBInstanceEngineVersion(const Model::UpgradeDBInstanceEngineVersionRequest &request)const; + void upgradeDBInstanceEngineVersionAsync(const Model::UpgradeDBInstanceEngineVersionRequest& request, const UpgradeDBInstanceEngineVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeDBInstanceEngineVersionOutcomeCallable upgradeDBInstanceEngineVersionCallable(const Model::UpgradeDBInstanceEngineVersionRequest& request) const; - ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; - void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; + void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; - CheckAccountNameAvailableOutcome checkAccountNameAvailable(const Model::CheckAccountNameAvailableRequest &request)const; - void checkAccountNameAvailableAsync(const Model::CheckAccountNameAvailableRequest& request, const CheckAccountNameAvailableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CheckAccountNameAvailableOutcomeCallable checkAccountNameAvailableCallable(const Model::CheckAccountNameAvailableRequest& request) const; - RestartDBInstanceOutcome restartDBInstance(const Model::RestartDBInstanceRequest &request)const; - void restartDBInstanceAsync(const Model::RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDBInstanceOutcome restartDBInstance(const Model::RestartDBInstanceRequest &request)const; + void restartDBInstanceAsync(const Model::RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartDBInstanceOutcomeCallable restartDBInstanceCallable(const Model::RestartDBInstanceRequest& request) const; - DescribeTemplatesListOutcome describeTemplatesList(const Model::DescribeTemplatesListRequest &request)const; - void describeTemplatesListAsync(const Model::DescribeTemplatesListRequest& request, const DescribeTemplatesListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckAccountNameAvailableOutcome checkAccountNameAvailable(const Model::CheckAccountNameAvailableRequest &request)const; + void checkAccountNameAvailableAsync(const Model::CheckAccountNameAvailableRequest& request, const CheckAccountNameAvailableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckAccountNameAvailableOutcomeCallable checkAccountNameAvailableCallable(const Model::CheckAccountNameAvailableRequest& request) const; + DescribeTemplatesListOutcome describeTemplatesList(const Model::DescribeTemplatesListRequest &request)const; + void describeTemplatesListAsync(const Model::DescribeTemplatesListRequest& request, const DescribeTemplatesListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTemplatesListOutcomeCallable describeTemplatesListCallable(const Model::DescribeTemplatesListRequest& request) const; - ImportDataForSQLServerOutcome importDataForSQLServer(const Model::ImportDataForSQLServerRequest &request)const; - void importDataForSQLServerAsync(const Model::ImportDataForSQLServerRequest& request, const ImportDataForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportDataForSQLServerOutcome importDataForSQLServer(const Model::ImportDataForSQLServerRequest &request)const; + void importDataForSQLServerAsync(const Model::ImportDataForSQLServerRequest& request, const ImportDataForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportDataForSQLServerOutcomeCallable importDataForSQLServerCallable(const Model::ImportDataForSQLServerRequest& request) const; - ModifySecurityGroupConfigurationOutcome modifySecurityGroupConfiguration(const Model::ModifySecurityGroupConfigurationRequest &request)const; - void modifySecurityGroupConfigurationAsync(const Model::ModifySecurityGroupConfigurationRequest& request, const ModifySecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySecurityGroupConfigurationOutcomeCallable modifySecurityGroupConfigurationCallable(const Model::ModifySecurityGroupConfigurationRequest& request) const; - DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; - void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; - CheckResourceOutcome checkResource(const Model::CheckResourceRequest &request)const; - void checkResourceAsync(const Model::CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckResourceOutcome checkResource(const Model::CheckResourceRequest &request)const; + void checkResourceAsync(const Model::CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckResourceOutcomeCallable checkResourceCallable(const Model::CheckResourceRequest& request) const; - DescribeCharacterSetNameOutcome describeCharacterSetName(const Model::DescribeCharacterSetNameRequest &request)const; - void describeCharacterSetNameAsync(const Model::DescribeCharacterSetNameRequest& request, const DescribeCharacterSetNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityGroupConfigurationOutcome modifySecurityGroupConfiguration(const Model::ModifySecurityGroupConfigurationRequest &request)const; + void modifySecurityGroupConfigurationAsync(const Model::ModifySecurityGroupConfigurationRequest& request, const ModifySecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityGroupConfigurationOutcomeCallable modifySecurityGroupConfigurationCallable(const Model::ModifySecurityGroupConfigurationRequest& request) const; + DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; + void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; + ModifyDTCSecurityIpHostsForSQLServerOutcome modifyDTCSecurityIpHostsForSQLServer(const Model::ModifyDTCSecurityIpHostsForSQLServerRequest &request)const; + void modifyDTCSecurityIpHostsForSQLServerAsync(const Model::ModifyDTCSecurityIpHostsForSQLServerRequest& request, const ModifyDTCSecurityIpHostsForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDTCSecurityIpHostsForSQLServerOutcomeCallable modifyDTCSecurityIpHostsForSQLServerCallable(const Model::ModifyDTCSecurityIpHostsForSQLServerRequest& request) const; + DescribeCharacterSetNameOutcome describeCharacterSetName(const Model::DescribeCharacterSetNameRequest &request)const; + void describeCharacterSetNameAsync(const Model::DescribeCharacterSetNameRequest& request, const DescribeCharacterSetNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCharacterSetNameOutcomeCallable describeCharacterSetNameCallable(const Model::DescribeCharacterSetNameRequest& request) const; - DescribeMigrateTasksOutcome describeMigrateTasks(const Model::DescribeMigrateTasksRequest &request)const; - void describeMigrateTasksAsync(const Model::DescribeMigrateTasksRequest& request, const DescribeMigrateTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMigrateTasksOutcome describeMigrateTasks(const Model::DescribeMigrateTasksRequest &request)const; + void describeMigrateTasksAsync(const Model::DescribeMigrateTasksRequest& request, const DescribeMigrateTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMigrateTasksOutcomeCallable describeMigrateTasksCallable(const Model::DescribeMigrateTasksRequest& request) const; - ModifyDBInstanceNetworkExpireTimeOutcome modifyDBInstanceNetworkExpireTime(const Model::ModifyDBInstanceNetworkExpireTimeRequest &request)const; - void modifyDBInstanceNetworkExpireTimeAsync(const Model::ModifyDBInstanceNetworkExpireTimeRequest& request, const ModifyDBInstanceNetworkExpireTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceNetworkExpireTimeOutcome modifyDBInstanceNetworkExpireTime(const Model::ModifyDBInstanceNetworkExpireTimeRequest &request)const; + void modifyDBInstanceNetworkExpireTimeAsync(const Model::ModifyDBInstanceNetworkExpireTimeRequest& request, const ModifyDBInstanceNetworkExpireTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceNetworkExpireTimeOutcomeCallable modifyDBInstanceNetworkExpireTimeCallable(const Model::ModifyDBInstanceNetworkExpireTimeRequest& request) const; - CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; - void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; - DescribeModifyParameterLogOutcome describeModifyParameterLog(const Model::DescribeModifyParameterLogRequest &request)const; - void describeModifyParameterLogAsync(const Model::DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeModifyParameterLogOutcome describeModifyParameterLog(const Model::DescribeModifyParameterLogRequest &request)const; + void describeModifyParameterLogAsync(const Model::DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeModifyParameterLogOutcomeCallable describeModifyParameterLogCallable(const Model::DescribeModifyParameterLogRequest& request) const; - RecoveryDBInstanceOutcome recoveryDBInstance(const Model::RecoveryDBInstanceRequest &request)const; - void recoveryDBInstanceAsync(const Model::RecoveryDBInstanceRequest& request, const RecoveryDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; + void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + ModifyDBInstancePayTypeOutcome modifyDBInstancePayType(const Model::ModifyDBInstancePayTypeRequest &request)const; + void modifyDBInstancePayTypeAsync(const Model::ModifyDBInstancePayTypeRequest& request, const ModifyDBInstancePayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstancePayTypeOutcomeCallable modifyDBInstancePayTypeCallable(const Model::ModifyDBInstancePayTypeRequest& request) const; + RecoveryDBInstanceOutcome recoveryDBInstance(const Model::RecoveryDBInstanceRequest &request)const; + void recoveryDBInstanceAsync(const Model::RecoveryDBInstanceRequest& request, const RecoveryDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RecoveryDBInstanceOutcomeCallable recoveryDBInstanceCallable(const Model::RecoveryDBInstanceRequest& request) const; - ModifyDBDescriptionOutcome modifyDBDescription(const Model::ModifyDBDescriptionRequest &request)const; - void modifyDBDescriptionAsync(const Model::ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBDescriptionOutcome modifyDBDescription(const Model::ModifyDBDescriptionRequest &request)const; + void modifyDBDescriptionAsync(const Model::ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBDescriptionOutcomeCallable modifyDBDescriptionCallable(const Model::ModifyDBDescriptionRequest& request) const; - ImportDatabaseBetweenInstancesOutcome importDatabaseBetweenInstances(const Model::ImportDatabaseBetweenInstancesRequest &request)const; - void importDatabaseBetweenInstancesAsync(const Model::ImportDatabaseBetweenInstancesRequest& request, const ImportDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportDatabaseBetweenInstancesOutcome importDatabaseBetweenInstances(const Model::ImportDatabaseBetweenInstancesRequest &request)const; + void importDatabaseBetweenInstancesAsync(const Model::ImportDatabaseBetweenInstancesRequest& request, const ImportDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportDatabaseBetweenInstancesOutcomeCallable importDatabaseBetweenInstancesCallable(const Model::ImportDatabaseBetweenInstancesRequest& request) const; - RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; - void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; + void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; - ModifyDBInstanceMonitorOutcome modifyDBInstanceMonitor(const Model::ModifyDBInstanceMonitorRequest &request)const; - void modifyDBInstanceMonitorAsync(const Model::ModifyDBInstanceMonitorRequest& request, const ModifyDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceMonitorOutcome modifyDBInstanceMonitor(const Model::ModifyDBInstanceMonitorRequest &request)const; + void modifyDBInstanceMonitorAsync(const Model::ModifyDBInstanceMonitorRequest& request, const ModifyDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceMonitorOutcomeCallable modifyDBInstanceMonitorCallable(const Model::ModifyDBInstanceMonitorRequest& request) const; - DescribeSQLLogFilesOutcome describeSQLLogFiles(const Model::DescribeSQLLogFilesRequest &request)const; - void describeSQLLogFilesAsync(const Model::DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceCrossBackupPolicyOutcome modifyInstanceCrossBackupPolicy(const Model::ModifyInstanceCrossBackupPolicyRequest &request)const; + void modifyInstanceCrossBackupPolicyAsync(const Model::ModifyInstanceCrossBackupPolicyRequest& request, const ModifyInstanceCrossBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceCrossBackupPolicyOutcomeCallable modifyInstanceCrossBackupPolicyCallable(const Model::ModifyInstanceCrossBackupPolicyRequest& request) const; + DescribeSQLLogFilesOutcome describeSQLLogFiles(const Model::DescribeSQLLogFilesRequest &request)const; + void describeSQLLogFilesAsync(const Model::DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLLogFilesOutcomeCallable describeSQLLogFilesCallable(const Model::DescribeSQLLogFilesRequest& request) const; - CancelImportOutcome cancelImport(const Model::CancelImportRequest &request)const; - void cancelImportAsync(const Model::CancelImportRequest& request, const CancelImportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableCrossRegionOutcome describeAvailableCrossRegion(const Model::DescribeAvailableCrossRegionRequest &request)const; + void describeAvailableCrossRegionAsync(const Model::DescribeAvailableCrossRegionRequest& request, const DescribeAvailableCrossRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableCrossRegionOutcomeCallable describeAvailableCrossRegionCallable(const Model::DescribeAvailableCrossRegionRequest& request) const; + CancelImportOutcome cancelImport(const Model::CancelImportRequest &request)const; + void cancelImportAsync(const Model::CancelImportRequest& request, const CancelImportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelImportOutcomeCallable cancelImportCallable(const Model::CancelImportRequest& request) const; - ModifyReplicaDescriptionOutcome modifyReplicaDescription(const Model::ModifyReplicaDescriptionRequest &request)const; - void modifyReplicaDescriptionAsync(const Model::ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyReplicaDescriptionOutcomeCallable modifyReplicaDescriptionCallable(const Model::ModifyReplicaDescriptionRequest& request) const; - ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; - void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; - DescribeSecurityGroupConfigurationOutcome describeSecurityGroupConfiguration(const Model::DescribeSecurityGroupConfigurationRequest &request)const; - void describeSecurityGroupConfigurationAsync(const Model::DescribeSecurityGroupConfigurationRequest& request, const DescribeSecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityGroupConfigurationOutcome describeSecurityGroupConfiguration(const Model::DescribeSecurityGroupConfigurationRequest &request)const; + void describeSecurityGroupConfigurationAsync(const Model::DescribeSecurityGroupConfigurationRequest& request, const DescribeSecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecurityGroupConfigurationOutcomeCallable describeSecurityGroupConfigurationCallable(const Model::DescribeSecurityGroupConfigurationRequest& request) const; - DescribeParametersOutcome describeParameters(const Model::DescribeParametersRequest &request)const; - void describeParametersAsync(const Model::DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; + void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + ModifyReplicaDescriptionOutcome modifyReplicaDescription(const Model::ModifyReplicaDescriptionRequest &request)const; + void modifyReplicaDescriptionAsync(const Model::ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaDescriptionOutcomeCallable modifyReplicaDescriptionCallable(const Model::ModifyReplicaDescriptionRequest& request) const; + DescribeParametersOutcome describeParameters(const Model::DescribeParametersRequest &request)const; + void describeParametersAsync(const Model::DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParametersOutcomeCallable describeParametersCallable(const Model::DescribeParametersRequest& request) const; - AddTagsToResourceOutcome addTagsToResource(const Model::AddTagsToResourceRequest &request)const; - void addTagsToResourceAsync(const Model::AddTagsToResourceRequest& request, const AddTagsToResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTagsToResourceOutcome addTagsToResource(const Model::AddTagsToResourceRequest &request)const; + void addTagsToResourceAsync(const Model::AddTagsToResourceRequest& request, const AddTagsToResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTagsToResourceOutcomeCallable addTagsToResourceCallable(const Model::AddTagsToResourceRequest& request) const; - DescribeBinlogFilesOutcome describeBinlogFiles(const Model::DescribeBinlogFilesRequest &request)const; - void describeBinlogFilesAsync(const Model::DescribeBinlogFilesRequest& request, const DescribeBinlogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBinlogFilesOutcome describeBinlogFiles(const Model::DescribeBinlogFilesRequest &request)const; + void describeBinlogFilesAsync(const Model::DescribeBinlogFilesRequest& request, const DescribeBinlogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBinlogFilesOutcomeCallable describeBinlogFilesCallable(const Model::DescribeBinlogFilesRequest& request) const; - DescribeDBInstanceProxyConfigurationOutcome describeDBInstanceProxyConfiguration(const Model::DescribeDBInstanceProxyConfigurationRequest &request)const; - void describeDBInstanceProxyConfigurationAsync(const Model::DescribeDBInstanceProxyConfigurationRequest& request, const DescribeDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceProxyConfigurationOutcome describeDBInstanceProxyConfiguration(const Model::DescribeDBInstanceProxyConfigurationRequest &request)const; + void describeDBInstanceProxyConfigurationAsync(const Model::DescribeDBInstanceProxyConfigurationRequest& request, const DescribeDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceProxyConfigurationOutcomeCallable describeDBInstanceProxyConfigurationCallable(const Model::DescribeDBInstanceProxyConfigurationRequest& request) const; - CreateDiagnosticReportOutcome createDiagnosticReport(const Model::CreateDiagnosticReportRequest &request)const; - void createDiagnosticReportAsync(const Model::CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDiagnosticReportOutcome createDiagnosticReport(const Model::CreateDiagnosticReportRequest &request)const; + void createDiagnosticReportAsync(const Model::CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDiagnosticReportOutcomeCallable createDiagnosticReportCallable(const Model::CreateDiagnosticReportRequest& request) const; - DescribeSQLLogReportListOutcome describeSQLLogReportList(const Model::DescribeSQLLogReportListRequest &request)const; - void describeSQLLogReportListAsync(const Model::DescribeSQLLogReportListRequest& request, const DescribeSQLLogReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogReportListOutcomeCallable describeSQLLogReportListCallable(const Model::DescribeSQLLogReportListRequest& request) const; - DescribeReadDBInstanceDelayOutcome describeReadDBInstanceDelay(const Model::DescribeReadDBInstanceDelayRequest &request)const; - void describeReadDBInstanceDelayAsync(const Model::DescribeReadDBInstanceDelayRequest& request, const DescribeReadDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReadDBInstanceDelayOutcome describeReadDBInstanceDelay(const Model::DescribeReadDBInstanceDelayRequest &request)const; + void describeReadDBInstanceDelayAsync(const Model::DescribeReadDBInstanceDelayRequest& request, const DescribeReadDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeReadDBInstanceDelayOutcomeCallable describeReadDBInstanceDelayCallable(const Model::DescribeReadDBInstanceDelayRequest& request) const; - CloneDBInstanceOutcome cloneDBInstance(const Model::CloneDBInstanceRequest &request)const; - void cloneDBInstanceAsync(const Model::CloneDBInstanceRequest& request, const CloneDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogReportListOutcome describeSQLLogReportList(const Model::DescribeSQLLogReportListRequest &request)const; + void describeSQLLogReportListAsync(const Model::DescribeSQLLogReportListRequest& request, const DescribeSQLLogReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogReportListOutcomeCallable describeSQLLogReportListCallable(const Model::DescribeSQLLogReportListRequest& request) const; + CloneDBInstanceOutcome cloneDBInstance(const Model::CloneDBInstanceRequest &request)const; + void cloneDBInstanceAsync(const Model::CloneDBInstanceRequest& request, const CloneDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloneDBInstanceOutcomeCallable cloneDBInstanceCallable(const Model::CloneDBInstanceRequest& request) const; - DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; - void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; + void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const; - DescribeRenewalPriceOutcome describeRenewalPrice(const Model::DescribeRenewalPriceRequest &request)const; - void describeRenewalPriceAsync(const Model::DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRenewalPriceOutcome describeRenewalPrice(const Model::DescribeRenewalPriceRequest &request)const; + void describeRenewalPriceAsync(const Model::DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRenewalPriceOutcomeCallable describeRenewalPriceCallable(const Model::DescribeRenewalPriceRequest& request) const; - AllocateInstancePublicConnectionOutcome allocateInstancePublicConnection(const Model::AllocateInstancePublicConnectionRequest &request)const; - void allocateInstancePublicConnectionAsync(const Model::AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateInstancePublicConnectionOutcome allocateInstancePublicConnection(const Model::AllocateInstancePublicConnectionRequest &request)const; + void allocateInstancePublicConnectionAsync(const Model::AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateInstancePublicConnectionOutcomeCallable allocateInstancePublicConnectionCallable(const Model::AllocateInstancePublicConnectionRequest& request) const; - DescribeDBInstanceAttributeOutcome describeDBInstanceAttribute(const Model::DescribeDBInstanceAttributeRequest &request)const; - void describeDBInstanceAttributeAsync(const Model::DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceAttributeOutcome describeDBInstanceAttribute(const Model::DescribeDBInstanceAttributeRequest &request)const; + void describeDBInstanceAttributeAsync(const Model::DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceAttributeOutcomeCallable describeDBInstanceAttributeCallable(const Model::DescribeDBInstanceAttributeRequest& request) const; - CheckInstanceExistOutcome checkInstanceExist(const Model::CheckInstanceExistRequest &request)const; - void checkInstanceExistAsync(const Model::CheckInstanceExistRequest& request, const CheckInstanceExistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckInstanceExistOutcome checkInstanceExist(const Model::CheckInstanceExistRequest &request)const; + void checkInstanceExistAsync(const Model::CheckInstanceExistRequest& request, const CheckInstanceExistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckInstanceExistOutcomeCallable checkInstanceExistCallable(const Model::CheckInstanceExistRequest& request) const; - CreateTempDBInstanceOutcome createTempDBInstance(const Model::CreateTempDBInstanceRequest &request)const; - void createTempDBInstanceAsync(const Model::CreateTempDBInstanceRequest& request, const CreateTempDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTempDBInstanceOutcome createTempDBInstance(const Model::CreateTempDBInstanceRequest &request)const; + void createTempDBInstanceAsync(const Model::CreateTempDBInstanceRequest& request, const CreateTempDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTempDBInstanceOutcomeCallable createTempDBInstanceCallable(const Model::CreateTempDBInstanceRequest& request) const; - ModifyInstanceAutoRenewalAttributeOutcome modifyInstanceAutoRenewalAttribute(const Model::ModifyInstanceAutoRenewalAttributeRequest &request)const; - void modifyInstanceAutoRenewalAttributeAsync(const Model::ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceAutoRenewalAttributeOutcome modifyInstanceAutoRenewalAttribute(const Model::ModifyInstanceAutoRenewalAttributeRequest &request)const; + void modifyInstanceAutoRenewalAttributeAsync(const Model::ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceAutoRenewalAttributeOutcomeCallable modifyInstanceAutoRenewalAttributeCallable(const Model::ModifyInstanceAutoRenewalAttributeRequest& request) const; - ModifySQLCollectorPolicyOutcome modifySQLCollectorPolicy(const Model::ModifySQLCollectorPolicyRequest &request)const; - void modifySQLCollectorPolicyAsync(const Model::ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySQLCollectorPolicyOutcome modifySQLCollectorPolicy(const Model::ModifySQLCollectorPolicyRequest &request)const; + void modifySQLCollectorPolicyAsync(const Model::ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySQLCollectorPolicyOutcomeCallable modifySQLCollectorPolicyCallable(const Model::ModifySQLCollectorPolicyRequest& request) const; - AllocateInstanceVpcNetworkTypeOutcome allocateInstanceVpcNetworkType(const Model::AllocateInstanceVpcNetworkTypeRequest &request)const; - void allocateInstanceVpcNetworkTypeAsync(const Model::AllocateInstanceVpcNetworkTypeRequest& request, const AllocateInstanceVpcNetworkTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateInstanceVpcNetworkTypeOutcome allocateInstanceVpcNetworkType(const Model::AllocateInstanceVpcNetworkTypeRequest &request)const; + void allocateInstanceVpcNetworkTypeAsync(const Model::AllocateInstanceVpcNetworkTypeRequest& request, const AllocateInstanceVpcNetworkTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateInstanceVpcNetworkTypeOutcomeCallable allocateInstanceVpcNetworkTypeCallable(const Model::AllocateInstanceVpcNetworkTypeRequest& request) const; - DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const; - void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const; + void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupsOutcomeCallable describeBackupsCallable(const Model::DescribeBackupsRequest& request) const; - CreateDatabaseOutcome createDatabase(const Model::CreateDatabaseRequest &request)const; - void createDatabaseAsync(const Model::CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatabaseOutcome createDatabase(const Model::CreateDatabaseRequest &request)const; + void createDatabaseAsync(const Model::CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDatabaseOutcomeCallable createDatabaseCallable(const Model::CreateDatabaseRequest& request) const; - DescribeCollationTimeZonesOutcome describeCollationTimeZones(const Model::DescribeCollationTimeZonesRequest &request)const; - void describeCollationTimeZonesAsync(const Model::DescribeCollationTimeZonesRequest& request, const DescribeCollationTimeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCollationTimeZonesOutcome describeCollationTimeZones(const Model::DescribeCollationTimeZonesRequest &request)const; + void describeCollationTimeZonesAsync(const Model::DescribeCollationTimeZonesRequest& request, const DescribeCollationTimeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCollationTimeZonesOutcomeCallable describeCollationTimeZonesCallable(const Model::DescribeCollationTimeZonesRequest& request) const; - DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; - void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; + void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const; - ModifyReadonlyInstanceDelayReplicationTimeOutcome modifyReadonlyInstanceDelayReplicationTime(const Model::ModifyReadonlyInstanceDelayReplicationTimeRequest &request)const; - void modifyReadonlyInstanceDelayReplicationTimeAsync(const Model::ModifyReadonlyInstanceDelayReplicationTimeRequest& request, const ModifyReadonlyInstanceDelayReplicationTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReadonlyInstanceDelayReplicationTimeOutcome modifyReadonlyInstanceDelayReplicationTime(const Model::ModifyReadonlyInstanceDelayReplicationTimeRequest &request)const; + void modifyReadonlyInstanceDelayReplicationTimeAsync(const Model::ModifyReadonlyInstanceDelayReplicationTimeRequest& request, const ModifyReadonlyInstanceDelayReplicationTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyReadonlyInstanceDelayReplicationTimeOutcomeCallable modifyReadonlyInstanceDelayReplicationTimeCallable(const Model::ModifyReadonlyInstanceDelayReplicationTimeRequest& request) const; - DescribeInstanceAutoRenewalAttributeOutcome describeInstanceAutoRenewalAttribute(const Model::DescribeInstanceAutoRenewalAttributeRequest &request)const; - void describeInstanceAutoRenewalAttributeAsync(const Model::DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceAutoRenewalAttributeOutcome describeInstanceAutoRenewalAttribute(const Model::DescribeInstanceAutoRenewalAttributeRequest &request)const; + void describeInstanceAutoRenewalAttributeAsync(const Model::DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceAutoRenewalAttributeOutcomeCallable describeInstanceAutoRenewalAttributeCallable(const Model::DescribeInstanceAutoRenewalAttributeRequest& request) const; - SwitchDBInstanceVpcOutcome switchDBInstanceVpc(const Model::SwitchDBInstanceVpcRequest &request)const; - void switchDBInstanceVpcAsync(const Model::SwitchDBInstanceVpcRequest& request, const SwitchDBInstanceVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchDBInstanceVpcOutcome switchDBInstanceVpc(const Model::SwitchDBInstanceVpcRequest &request)const; + void switchDBInstanceVpcAsync(const Model::SwitchDBInstanceVpcRequest& request, const SwitchDBInstanceVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchDBInstanceVpcOutcomeCallable switchDBInstanceVpcCallable(const Model::SwitchDBInstanceVpcRequest& request) const; - RestoreDBInstanceOutcome restoreDBInstance(const Model::RestoreDBInstanceRequest &request)const; - void restoreDBInstanceAsync(const Model::RestoreDBInstanceRequest& request, const RestoreDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestoreDBInstanceOutcome restoreDBInstance(const Model::RestoreDBInstanceRequest &request)const; + void restoreDBInstanceAsync(const Model::RestoreDBInstanceRequest& request, const RestoreDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestoreDBInstanceOutcomeCallable restoreDBInstanceCallable(const Model::RestoreDBInstanceRequest& request) const; - RevokeOperatorPermissionOutcome revokeOperatorPermission(const Model::RevokeOperatorPermissionRequest &request)const; - void revokeOperatorPermissionAsync(const Model::RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeOperatorPermissionOutcome revokeOperatorPermission(const Model::RevokeOperatorPermissionRequest &request)const; + void revokeOperatorPermissionAsync(const Model::RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeOperatorPermissionOutcomeCallable revokeOperatorPermissionCallable(const Model::RevokeOperatorPermissionRequest& request) const; - ModifyDBInstanceSpecOutcome modifyDBInstanceSpec(const Model::ModifyDBInstanceSpecRequest &request)const; - void modifyDBInstanceSpecAsync(const Model::ModifyDBInstanceSpecRequest& request, const ModifyDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceSpecOutcome modifyDBInstanceSpec(const Model::ModifyDBInstanceSpecRequest &request)const; + void modifyDBInstanceSpecAsync(const Model::ModifyDBInstanceSpecRequest& request, const ModifyDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceSpecOutcomeCallable modifyDBInstanceSpecCallable(const Model::ModifyDBInstanceSpecRequest& request) const; - DescribeDiagnosticReportListOutcome describeDiagnosticReportList(const Model::DescribeDiagnosticReportListRequest &request)const; - void describeDiagnosticReportListAsync(const Model::DescribeDiagnosticReportListRequest& request, const DescribeDiagnosticReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDiagnosticReportListOutcomeCallable describeDiagnosticReportListCallable(const Model::DescribeDiagnosticReportListRequest& request) const; - MigrateSecurityIPModeOutcome migrateSecurityIPMode(const Model::MigrateSecurityIPModeRequest &request)const; - void migrateSecurityIPModeAsync(const Model::MigrateSecurityIPModeRequest& request, const MigrateSecurityIPModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MigrateSecurityIPModeOutcome migrateSecurityIPMode(const Model::MigrateSecurityIPModeRequest &request)const; + void migrateSecurityIPModeAsync(const Model::MigrateSecurityIPModeRequest& request, const MigrateSecurityIPModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MigrateSecurityIPModeOutcomeCallable migrateSecurityIPModeCallable(const Model::MigrateSecurityIPModeRequest& request) const; - RemoveTagsFromResourceOutcome removeTagsFromResource(const Model::RemoveTagsFromResourceRequest &request)const; - void removeTagsFromResourceAsync(const Model::RemoveTagsFromResourceRequest& request, const RemoveTagsFromResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosticReportListOutcome describeDiagnosticReportList(const Model::DescribeDiagnosticReportListRequest &request)const; + void describeDiagnosticReportListAsync(const Model::DescribeDiagnosticReportListRequest& request, const DescribeDiagnosticReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosticReportListOutcomeCallable describeDiagnosticReportListCallable(const Model::DescribeDiagnosticReportListRequest& request) const; + RemoveTagsFromResourceOutcome removeTagsFromResource(const Model::RemoveTagsFromResourceRequest &request)const; + void removeTagsFromResourceAsync(const Model::RemoveTagsFromResourceRequest& request, const RemoveTagsFromResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveTagsFromResourceOutcomeCallable removeTagsFromResourceCallable(const Model::RemoveTagsFromResourceRequest& request) const; - DescribeSQLLogRecordsOutcome describeSQLLogRecords(const Model::DescribeSQLLogRecordsRequest &request)const; - void describeSQLLogRecordsAsync(const Model::DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogRecordsOutcome describeSQLLogRecords(const Model::DescribeSQLLogRecordsRequest &request)const; + void describeSQLLogRecordsAsync(const Model::DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLLogRecordsOutcomeCallable describeSQLLogRecordsCallable(const Model::DescribeSQLLogRecordsRequest& request) const; - ModifySecurityIpsOutcome modifySecurityIps(const Model::ModifySecurityIpsRequest &request)const; - void modifySecurityIpsAsync(const Model::ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityIpsOutcome modifySecurityIps(const Model::ModifySecurityIpsRequest &request)const; + void modifySecurityIpsAsync(const Model::ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySecurityIpsOutcomeCallable modifySecurityIpsCallable(const Model::ModifySecurityIpsRequest& request) const; - DescribeMigrateTasksForSQLServerOutcome describeMigrateTasksForSQLServer(const Model::DescribeMigrateTasksForSQLServerRequest &request)const; - void describeMigrateTasksForSQLServerAsync(const Model::DescribeMigrateTasksForSQLServerRequest& request, const DescribeMigrateTasksForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMigrateTasksForSQLServerOutcome describeMigrateTasksForSQLServer(const Model::DescribeMigrateTasksForSQLServerRequest &request)const; + void describeMigrateTasksForSQLServerAsync(const Model::DescribeMigrateTasksForSQLServerRequest& request, const DescribeMigrateTasksForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMigrateTasksForSQLServerOutcomeCallable describeMigrateTasksForSQLServerCallable(const Model::DescribeMigrateTasksForSQLServerRequest& request) const; - RestoreTableOutcome restoreTable(const Model::RestoreTableRequest &request)const; - void restoreTableAsync(const Model::RestoreTableRequest& request, const RestoreTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestoreTableOutcome restoreTable(const Model::RestoreTableRequest &request)const; + void restoreTableAsync(const Model::RestoreTableRequest& request, const RestoreTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestoreTableOutcomeCallable restoreTableCallable(const Model::RestoreTableRequest& request) const; - CreateOnlineDatabaseTaskOutcome createOnlineDatabaseTask(const Model::CreateOnlineDatabaseTaskRequest &request)const; - void createOnlineDatabaseTaskAsync(const Model::CreateOnlineDatabaseTaskRequest& request, const CreateOnlineDatabaseTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOnlineDatabaseTaskOutcome createOnlineDatabaseTask(const Model::CreateOnlineDatabaseTaskRequest &request)const; + void createOnlineDatabaseTaskAsync(const Model::CreateOnlineDatabaseTaskRequest& request, const CreateOnlineDatabaseTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOnlineDatabaseTaskOutcomeCallable createOnlineDatabaseTaskCallable(const Model::CreateOnlineDatabaseTaskRequest& request) const; - GrantAccountPrivilegeOutcome grantAccountPrivilege(const Model::GrantAccountPrivilegeRequest &request)const; - void grantAccountPrivilegeAsync(const Model::GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantAccountPrivilegeOutcome grantAccountPrivilege(const Model::GrantAccountPrivilegeRequest &request)const; + void grantAccountPrivilegeAsync(const Model::GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantAccountPrivilegeOutcomeCallable grantAccountPrivilegeCallable(const Model::GrantAccountPrivilegeRequest& request) const; - GrantOperatorPermissionOutcome grantOperatorPermission(const Model::GrantOperatorPermissionRequest &request)const; - void grantOperatorPermissionAsync(const Model::GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantOperatorPermissionOutcome grantOperatorPermission(const Model::GrantOperatorPermissionRequest &request)const; + void grantOperatorPermissionAsync(const Model::GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantOperatorPermissionOutcomeCallable grantOperatorPermissionCallable(const Model::GrantOperatorPermissionRequest& request) const; - ModifyDBInstanceTDEOutcome modifyDBInstanceTDE(const Model::ModifyDBInstanceTDERequest &request)const; - void modifyDBInstanceTDEAsync(const Model::ModifyDBInstanceTDERequest& request, const ModifyDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableRecoveryTimeOutcome describeAvailableRecoveryTime(const Model::DescribeAvailableRecoveryTimeRequest &request)const; + void describeAvailableRecoveryTimeAsync(const Model::DescribeAvailableRecoveryTimeRequest& request, const DescribeAvailableRecoveryTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableRecoveryTimeOutcomeCallable describeAvailableRecoveryTimeCallable(const Model::DescribeAvailableRecoveryTimeRequest& request) const; + DescribeDBInstanceIpHostnameOutcome describeDBInstanceIpHostname(const Model::DescribeDBInstanceIpHostnameRequest &request)const; + void describeDBInstanceIpHostnameAsync(const Model::DescribeDBInstanceIpHostnameRequest& request, const DescribeDBInstanceIpHostnameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceIpHostnameOutcomeCallable describeDBInstanceIpHostnameCallable(const Model::DescribeDBInstanceIpHostnameRequest& request) const; + ModifyDBInstanceTDEOutcome modifyDBInstanceTDE(const Model::ModifyDBInstanceTDERequest &request)const; + void modifyDBInstanceTDEAsync(const Model::ModifyDBInstanceTDERequest& request, const ModifyDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceTDEOutcomeCallable modifyDBInstanceTDECallable(const Model::ModifyDBInstanceTDERequest& request) const; - DescribeDBInstancePerformanceOutcome describeDBInstancePerformance(const Model::DescribeDBInstancePerformanceRequest &request)const; - void describeDBInstancePerformanceAsync(const Model::DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancePerformanceOutcome describeDBInstancePerformance(const Model::DescribeDBInstancePerformanceRequest &request)const; + void describeDBInstancePerformanceAsync(const Model::DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstancePerformanceOutcomeCallable describeDBInstancePerformanceCallable(const Model::DescribeDBInstancePerformanceRequest& request) const; - DescribeDBInstancesOutcome describeDBInstances(const Model::DescribeDBInstancesRequest &request)const; - void describeDBInstancesAsync(const Model::DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesOutcome describeDBInstances(const Model::DescribeDBInstancesRequest &request)const; + void describeDBInstancesAsync(const Model::DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstancesOutcomeCallable describeDBInstancesCallable(const Model::DescribeDBInstancesRequest& request) const; - RequestServiceOfCloudDBExpertOutcome requestServiceOfCloudDBExpert(const Model::RequestServiceOfCloudDBExpertRequest &request)const; - void requestServiceOfCloudDBExpertAsync(const Model::RequestServiceOfCloudDBExpertRequest& request, const RequestServiceOfCloudDBExpertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RequestServiceOfCloudDBExpertOutcome requestServiceOfCloudDBExpert(const Model::RequestServiceOfCloudDBExpertRequest &request)const; + void requestServiceOfCloudDBExpertAsync(const Model::RequestServiceOfCloudDBExpertRequest& request, const RequestServiceOfCloudDBExpertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RequestServiceOfCloudDBExpertOutcomeCallable requestServiceOfCloudDBExpertCallable(const Model::RequestServiceOfCloudDBExpertRequest& request) const; - DescribeBackupDatabaseOutcome describeBackupDatabase(const Model::DescribeBackupDatabaseRequest &request)const; - void describeBackupDatabaseAsync(const Model::DescribeBackupDatabaseRequest& request, const DescribeBackupDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossRegionLogBackupFilesOutcome describeCrossRegionLogBackupFiles(const Model::DescribeCrossRegionLogBackupFilesRequest &request)const; + void describeCrossRegionLogBackupFilesAsync(const Model::DescribeCrossRegionLogBackupFilesRequest& request, const DescribeCrossRegionLogBackupFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossRegionLogBackupFilesOutcomeCallable describeCrossRegionLogBackupFilesCallable(const Model::DescribeCrossRegionLogBackupFilesRequest& request) const; + DescribeBackupDatabaseOutcome describeBackupDatabase(const Model::DescribeBackupDatabaseRequest &request)const; + void describeBackupDatabaseAsync(const Model::DescribeBackupDatabaseRequest& request, const DescribeBackupDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupDatabaseOutcomeCallable describeBackupDatabaseCallable(const Model::DescribeBackupDatabaseRequest& request) const; - CreateDBInstanceReplicaOutcome createDBInstanceReplica(const Model::CreateDBInstanceReplicaRequest &request)const; - void createDBInstanceReplicaAsync(const Model::CreateDBInstanceReplicaRequest& request, const CreateDBInstanceReplicaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceReplicaOutcome createDBInstanceReplica(const Model::CreateDBInstanceReplicaRequest &request)const; + void createDBInstanceReplicaAsync(const Model::CreateDBInstanceReplicaRequest& request, const CreateDBInstanceReplicaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDBInstanceReplicaOutcomeCallable createDBInstanceReplicaCallable(const Model::CreateDBInstanceReplicaRequest& request) const; - AllocateInstancePrivateConnectionOutcome allocateInstancePrivateConnection(const Model::AllocateInstancePrivateConnectionRequest &request)const; - void allocateInstancePrivateConnectionAsync(const Model::AllocateInstancePrivateConnectionRequest& request, const AllocateInstancePrivateConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateInstancePrivateConnectionOutcome allocateInstancePrivateConnection(const Model::AllocateInstancePrivateConnectionRequest &request)const; + void allocateInstancePrivateConnectionAsync(const Model::AllocateInstancePrivateConnectionRequest& request, const AllocateInstancePrivateConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateInstancePrivateConnectionOutcomeCallable allocateInstancePrivateConnectionCallable(const Model::AllocateInstancePrivateConnectionRequest& request) const; - RevokeAccountPrivilegeOutcome revokeAccountPrivilege(const Model::RevokeAccountPrivilegeRequest &request)const; - void revokeAccountPrivilegeAsync(const Model::RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeAccountPrivilegeOutcome revokeAccountPrivilege(const Model::RevokeAccountPrivilegeRequest &request)const; + void revokeAccountPrivilegeAsync(const Model::RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeAccountPrivilegeOutcomeCallable revokeAccountPrivilegeCallable(const Model::RevokeAccountPrivilegeRequest& request) const; - DescribeParameterTemplatesOutcome describeParameterTemplates(const Model::DescribeParameterTemplatesRequest &request)const; - void describeParameterTemplatesAsync(const Model::DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeParameterTemplatesOutcome describeParameterTemplates(const Model::DescribeParameterTemplatesRequest &request)const; + void describeParameterTemplatesAsync(const Model::DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParameterTemplatesOutcomeCallable describeParameterTemplatesCallable(const Model::DescribeParameterTemplatesRequest& request) const; - DescibeImportsFromDatabaseOutcome descibeImportsFromDatabase(const Model::DescibeImportsFromDatabaseRequest &request)const; - void descibeImportsFromDatabaseAsync(const Model::DescibeImportsFromDatabaseRequest& request, const DescibeImportsFromDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescibeImportsFromDatabaseOutcome descibeImportsFromDatabase(const Model::DescibeImportsFromDatabaseRequest &request)const; + void descibeImportsFromDatabaseAsync(const Model::DescibeImportsFromDatabaseRequest& request, const DescibeImportsFromDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescibeImportsFromDatabaseOutcomeCallable descibeImportsFromDatabaseCallable(const Model::DescibeImportsFromDatabaseRequest& request) const; - CopyDatabaseBetweenInstancesOutcome copyDatabaseBetweenInstances(const Model::CopyDatabaseBetweenInstancesRequest &request)const; - void copyDatabaseBetweenInstancesAsync(const Model::CopyDatabaseBetweenInstancesRequest& request, const CopyDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyDatabaseBetweenInstancesOutcome copyDatabaseBetweenInstances(const Model::CopyDatabaseBetweenInstancesRequest &request)const; + void copyDatabaseBetweenInstancesAsync(const Model::CopyDatabaseBetweenInstancesRequest& request, const CopyDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CopyDatabaseBetweenInstancesOutcomeCallable copyDatabaseBetweenInstancesCallable(const Model::CopyDatabaseBetweenInstancesRequest& request) const; - DescribeInstanceVpcMigrateInfoOutcome describeInstanceVpcMigrateInfo(const Model::DescribeInstanceVpcMigrateInfoRequest &request)const; - void describeInstanceVpcMigrateInfoAsync(const Model::DescribeInstanceVpcMigrateInfoRequest& request, const DescribeInstanceVpcMigrateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceVpcMigrateInfoOutcome describeInstanceVpcMigrateInfo(const Model::DescribeInstanceVpcMigrateInfoRequest &request)const; + void describeInstanceVpcMigrateInfoAsync(const Model::DescribeInstanceVpcMigrateInfoRequest& request, const DescribeInstanceVpcMigrateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceVpcMigrateInfoOutcomeCallable describeInstanceVpcMigrateInfoCallable(const Model::DescribeInstanceVpcMigrateInfoRequest& request) const; - CopyDatabaseOutcome copyDatabase(const Model::CopyDatabaseRequest &request)const; - void copyDatabaseAsync(const Model::CopyDatabaseRequest& request, const CopyDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyDatabaseOutcome copyDatabase(const Model::CopyDatabaseRequest &request)const; + void copyDatabaseAsync(const Model::CopyDatabaseRequest& request, const CopyDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CopyDatabaseOutcomeCallable copyDatabaseCallable(const Model::CopyDatabaseRequest& request) const; - CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; - void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; - ModifyDBInstanceSSLOutcome modifyDBInstanceSSL(const Model::ModifyDBInstanceSSLRequest &request)const; - void modifyDBInstanceSSLAsync(const Model::ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceSSLOutcome modifyDBInstanceSSL(const Model::ModifyDBInstanceSSLRequest &request)const; + void modifyDBInstanceSSLAsync(const Model::ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceSSLOutcomeCallable modifyDBInstanceSSLCallable(const Model::ModifyDBInstanceSSLRequest& request) const; - DescribeDBInstanceTDEOutcome describeDBInstanceTDE(const Model::DescribeDBInstanceTDERequest &request)const; - void describeDBInstanceTDEAsync(const Model::DescribeDBInstanceTDERequest& request, const DescribeDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; + void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; + DescribeDBInstanceTDEOutcome describeDBInstanceTDE(const Model::DescribeDBInstanceTDERequest &request)const; + void describeDBInstanceTDEAsync(const Model::DescribeDBInstanceTDERequest& request, const DescribeDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceTDEOutcomeCallable describeDBInstanceTDECallable(const Model::DescribeDBInstanceTDERequest& request) const; - DescribeSQLLogReportsOutcome describeSQLLogReports(const Model::DescribeSQLLogReportsRequest &request)const; - void describeSQLLogReportsAsync(const Model::DescribeSQLLogReportsRequest& request, const DescribeSQLLogReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogReportsOutcome describeSQLLogReports(const Model::DescribeSQLLogReportsRequest &request)const; + void describeSQLLogReportsAsync(const Model::DescribeSQLLogReportsRequest& request, const DescribeSQLLogReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLLogReportsOutcomeCallable describeSQLLogReportsCallable(const Model::DescribeSQLLogReportsRequest& request) const; - ModifyDBInstanceConnectionModeOutcome modifyDBInstanceConnectionMode(const Model::ModifyDBInstanceConnectionModeRequest &request)const; - void modifyDBInstanceConnectionModeAsync(const Model::ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionModeOutcome modifyDBInstanceConnectionMode(const Model::ModifyDBInstanceConnectionModeRequest &request)const; + void modifyDBInstanceConnectionModeAsync(const Model::ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceConnectionModeOutcomeCallable modifyDBInstanceConnectionModeCallable(const Model::ModifyDBInstanceConnectionModeRequest& request) const; - DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const; - void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const; + void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceNetInfoOutcomeCallable describeDBInstanceNetInfoCallable(const Model::DescribeDBInstanceNetInfoRequest& request) const; - DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const; - void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const; + void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const; - AllocateReadWriteSplittingConnectionOutcome allocateReadWriteSplittingConnection(const Model::AllocateReadWriteSplittingConnectionRequest &request)const; - void allocateReadWriteSplittingConnectionAsync(const Model::AllocateReadWriteSplittingConnectionRequest& request, const AllocateReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateReadWriteSplittingConnectionOutcome allocateReadWriteSplittingConnection(const Model::AllocateReadWriteSplittingConnectionRequest &request)const; + void allocateReadWriteSplittingConnectionAsync(const Model::AllocateReadWriteSplittingConnectionRequest& request, const AllocateReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateReadWriteSplittingConnectionOutcomeCallable allocateReadWriteSplittingConnectionCallable(const Model::AllocateReadWriteSplittingConnectionRequest& request) const; - DescribeCloudDbExpertServiceOutcome describeCloudDbExpertService(const Model::DescribeCloudDbExpertServiceRequest &request)const; - void describeCloudDbExpertServiceAsync(const Model::DescribeCloudDbExpertServiceRequest& request, const DescribeCloudDbExpertServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudDbExpertServiceOutcome describeCloudDbExpertService(const Model::DescribeCloudDbExpertServiceRequest &request)const; + void describeCloudDbExpertServiceAsync(const Model::DescribeCloudDbExpertServiceRequest& request, const DescribeCloudDbExpertServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCloudDbExpertServiceOutcomeCallable describeCloudDbExpertServiceCallable(const Model::DescribeCloudDbExpertServiceRequest& request) const; - EvaluateSupportByokShowOutcome evaluateSupportByokShow(const Model::EvaluateSupportByokShowRequest &request)const; - void evaluateSupportByokShowAsync(const Model::EvaluateSupportByokShowRequest& request, const EvaluateSupportByokShowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceAutoUpgradeMinorVersionOutcome modifyDBInstanceAutoUpgradeMinorVersion(const Model::ModifyDBInstanceAutoUpgradeMinorVersionRequest &request)const; + void modifyDBInstanceAutoUpgradeMinorVersionAsync(const Model::ModifyDBInstanceAutoUpgradeMinorVersionRequest& request, const ModifyDBInstanceAutoUpgradeMinorVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceAutoUpgradeMinorVersionOutcomeCallable modifyDBInstanceAutoUpgradeMinorVersionCallable(const Model::ModifyDBInstanceAutoUpgradeMinorVersionRequest& request) const; + EvaluateSupportByokShowOutcome evaluateSupportByokShow(const Model::EvaluateSupportByokShowRequest &request)const; + void evaluateSupportByokShowAsync(const Model::EvaluateSupportByokShowRequest& request, const EvaluateSupportByokShowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EvaluateSupportByokShowOutcomeCallable evaluateSupportByokShowCallable(const Model::EvaluateSupportByokShowRequest& request) const; - ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const; - void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const; + void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const; - CalculateDBInstanceWeightOutcome calculateDBInstanceWeight(const Model::CalculateDBInstanceWeightRequest &request)const; - void calculateDBInstanceWeightAsync(const Model::CalculateDBInstanceWeightRequest& request, const CalculateDBInstanceWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CalculateDBInstanceWeightOutcome calculateDBInstanceWeight(const Model::CalculateDBInstanceWeightRequest &request)const; + void calculateDBInstanceWeightAsync(const Model::CalculateDBInstanceWeightRequest& request, const CalculateDBInstanceWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CalculateDBInstanceWeightOutcomeCallable calculateDBInstanceWeightCallable(const Model::CalculateDBInstanceWeightRequest& request) const; - ModifyDBInstanceNetworkTypeOutcome modifyDBInstanceNetworkType(const Model::ModifyDBInstanceNetworkTypeRequest &request)const; - void modifyDBInstanceNetworkTypeAsync(const Model::ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceNetworkTypeOutcome modifyDBInstanceNetworkType(const Model::ModifyDBInstanceNetworkTypeRequest &request)const; + void modifyDBInstanceNetworkTypeAsync(const Model::ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceNetworkTypeOutcomeCallable modifyDBInstanceNetworkTypeCallable(const Model::ModifyDBInstanceNetworkTypeRequest& request) const; - DescribeSlowLogsOutcome describeSlowLogs(const Model::DescribeSlowLogsRequest &request)const; - void describeSlowLogsAsync(const Model::DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDdrInstanceOutcome createDdrInstance(const Model::CreateDdrInstanceRequest &request)const; + void createDdrInstanceAsync(const Model::CreateDdrInstanceRequest& request, const CreateDdrInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDdrInstanceOutcomeCallable createDdrInstanceCallable(const Model::CreateDdrInstanceRequest& request) const; + DescribeDTCSecurityIpHostsForSQLServerOutcome describeDTCSecurityIpHostsForSQLServer(const Model::DescribeDTCSecurityIpHostsForSQLServerRequest &request)const; + void describeDTCSecurityIpHostsForSQLServerAsync(const Model::DescribeDTCSecurityIpHostsForSQLServerRequest& request, const DescribeDTCSecurityIpHostsForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDTCSecurityIpHostsForSQLServerOutcomeCallable describeDTCSecurityIpHostsForSQLServerCallable(const Model::DescribeDTCSecurityIpHostsForSQLServerRequest& request) const; + DescribeSlowLogsOutcome describeSlowLogs(const Model::DescribeSlowLogsRequest &request)const; + void describeSlowLogsAsync(const Model::DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSlowLogsOutcomeCallable describeSlowLogsCallable(const Model::DescribeSlowLogsRequest& request) const; - CreateBackupOutcome createBackup(const Model::CreateBackupRequest &request)const; - void createBackupAsync(const Model::CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBackupOutcome createBackup(const Model::CreateBackupRequest &request)const; + void createBackupAsync(const Model::CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBackupOutcomeCallable createBackupCallable(const Model::CreateBackupRequest& request) const; - ModifyReadWriteSplittingConnectionOutcome modifyReadWriteSplittingConnection(const Model::ModifyReadWriteSplittingConnectionRequest &request)const; - void modifyReadWriteSplittingConnectionAsync(const Model::ModifyReadWriteSplittingConnectionRequest& request, const ModifyReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReadWriteSplittingConnectionOutcome modifyReadWriteSplittingConnection(const Model::ModifyReadWriteSplittingConnectionRequest &request)const; + void modifyReadWriteSplittingConnectionAsync(const Model::ModifyReadWriteSplittingConnectionRequest& request, const ModifyReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyReadWriteSplittingConnectionOutcomeCallable modifyReadWriteSplittingConnectionCallable(const Model::ModifyReadWriteSplittingConnectionRequest& request) const; - ModifyDBInstanceMaintainTimeOutcome modifyDBInstanceMaintainTime(const Model::ModifyDBInstanceMaintainTimeRequest &request)const; - void modifyDBInstanceMaintainTimeAsync(const Model::ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceMaintainTimeOutcome modifyDBInstanceMaintainTime(const Model::ModifyDBInstanceMaintainTimeRequest &request)const; + void modifyDBInstanceMaintainTimeAsync(const Model::ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceMaintainTimeOutcomeCallable modifyDBInstanceMaintainTimeCallable(const Model::ModifyDBInstanceMaintainTimeRequest& request) const; - ModifyDBInstanceDescriptionOutcome modifyDBInstanceDescription(const Model::ModifyDBInstanceDescriptionRequest &request)const; - void modifyDBInstanceDescriptionAsync(const Model::ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceDescriptionOutcome modifyDBInstanceDescription(const Model::ModifyDBInstanceDescriptionRequest &request)const; + void modifyDBInstanceDescriptionAsync(const Model::ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceDescriptionOutcomeCallable modifyDBInstanceDescriptionCallable(const Model::ModifyDBInstanceDescriptionRequest& request) const; - ModifyResourceGroupOutcome modifyResourceGroup(const Model::ModifyResourceGroupRequest &request)const; - void modifyResourceGroupAsync(const Model::ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossRegionBackupsOutcome describeCrossRegionBackups(const Model::DescribeCrossRegionBackupsRequest &request)const; + void describeCrossRegionBackupsAsync(const Model::DescribeCrossRegionBackupsRequest& request, const DescribeCrossRegionBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossRegionBackupsOutcomeCallable describeCrossRegionBackupsCallable(const Model::DescribeCrossRegionBackupsRequest& request) const; + ModifyResourceGroupOutcome modifyResourceGroup(const Model::ModifyResourceGroupRequest &request)const; + void modifyResourceGroupAsync(const Model::ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyResourceGroupOutcomeCallable modifyResourceGroupCallable(const Model::ModifyResourceGroupRequest& request) const; - DescribeProxyFunctionSupportOutcome describeProxyFunctionSupport(const Model::DescribeProxyFunctionSupportRequest &request)const; - void describeProxyFunctionSupportAsync(const Model::DescribeProxyFunctionSupportRequest& request, const DescribeProxyFunctionSupportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProxyFunctionSupportOutcome describeProxyFunctionSupport(const Model::DescribeProxyFunctionSupportRequest &request)const; + void describeProxyFunctionSupportAsync(const Model::DescribeProxyFunctionSupportRequest& request, const DescribeProxyFunctionSupportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeProxyFunctionSupportOutcomeCallable describeProxyFunctionSupportCallable(const Model::DescribeProxyFunctionSupportRequest& request) const; - DescribeOssDownloadsForSQLServerOutcome describeOssDownloadsForSQLServer(const Model::DescribeOssDownloadsForSQLServerRequest &request)const; - void describeOssDownloadsForSQLServerAsync(const Model::DescribeOssDownloadsForSQLServerRequest& request, const DescribeOssDownloadsForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssDownloadsForSQLServerOutcome describeOssDownloadsForSQLServer(const Model::DescribeOssDownloadsForSQLServerRequest &request)const; + void describeOssDownloadsForSQLServerAsync(const Model::DescribeOssDownloadsForSQLServerRequest& request, const DescribeOssDownloadsForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssDownloadsForSQLServerOutcomeCallable describeOssDownloadsForSQLServerCallable(const Model::DescribeOssDownloadsForSQLServerRequest& request) const; - ResetAccountOutcome resetAccount(const Model::ResetAccountRequest &request)const; - void resetAccountAsync(const Model::ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceCrossBackupPolicyOutcome describeInstanceCrossBackupPolicy(const Model::DescribeInstanceCrossBackupPolicyRequest &request)const; + void describeInstanceCrossBackupPolicyAsync(const Model::DescribeInstanceCrossBackupPolicyRequest& request, const DescribeInstanceCrossBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceCrossBackupPolicyOutcomeCallable describeInstanceCrossBackupPolicyCallable(const Model::DescribeInstanceCrossBackupPolicyRequest& request) const; + ResetAccountOutcome resetAccount(const Model::ResetAccountRequest &request)const; + void resetAccountAsync(const Model::ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetAccountOutcomeCallable resetAccountCallable(const Model::ResetAccountRequest& request) const; - DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const; - void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const; + void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeResourceUsageOutcomeCallable describeResourceUsageCallable(const Model::DescribeResourceUsageRequest& request) const; - PurgeDBInstanceLogOutcome purgeDBInstanceLog(const Model::PurgeDBInstanceLogRequest &request)const; - void purgeDBInstanceLogAsync(const Model::PurgeDBInstanceLogRequest& request, const PurgeDBInstanceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossRegionBackupDBInstanceOutcome describeCrossRegionBackupDBInstance(const Model::DescribeCrossRegionBackupDBInstanceRequest &request)const; + void describeCrossRegionBackupDBInstanceAsync(const Model::DescribeCrossRegionBackupDBInstanceRequest& request, const DescribeCrossRegionBackupDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossRegionBackupDBInstanceOutcomeCallable describeCrossRegionBackupDBInstanceCallable(const Model::DescribeCrossRegionBackupDBInstanceRequest& request) const; + PurgeDBInstanceLogOutcome purgeDBInstanceLog(const Model::PurgeDBInstanceLogRequest &request)const; + void purgeDBInstanceLogAsync(const Model::PurgeDBInstanceLogRequest& request, const PurgeDBInstanceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PurgeDBInstanceLogOutcomeCallable purgeDBInstanceLogCallable(const Model::PurgeDBInstanceLogRequest& request) const; - DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const; - void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const; - UpgradeDBInstanceKernelVersionOutcome upgradeDBInstanceKernelVersion(const Model::UpgradeDBInstanceKernelVersionRequest &request)const; - void upgradeDBInstanceKernelVersionAsync(const Model::UpgradeDBInstanceKernelVersionRequest& request, const UpgradeDBInstanceKernelVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBInstanceKernelVersionOutcome upgradeDBInstanceKernelVersion(const Model::UpgradeDBInstanceKernelVersionRequest &request)const; + void upgradeDBInstanceKernelVersionAsync(const Model::UpgradeDBInstanceKernelVersionRequest& request, const UpgradeDBInstanceKernelVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeDBInstanceKernelVersionOutcomeCallable upgradeDBInstanceKernelVersionCallable(const Model::UpgradeDBInstanceKernelVersionRequest& request) const; - ModifyMySQLDBInstanceDelayOutcome modifyMySQLDBInstanceDelay(const Model::ModifyMySQLDBInstanceDelayRequest &request)const; - void modifyMySQLDBInstanceDelayAsync(const Model::ModifyMySQLDBInstanceDelayRequest& request, const ModifyMySQLDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const; + void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const; + ModifyMySQLDBInstanceDelayOutcome modifyMySQLDBInstanceDelay(const Model::ModifyMySQLDBInstanceDelayRequest &request)const; + void modifyMySQLDBInstanceDelayAsync(const Model::ModifyMySQLDBInstanceDelayRequest& request, const ModifyMySQLDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyMySQLDBInstanceDelayOutcomeCallable modifyMySQLDBInstanceDelayCallable(const Model::ModifyMySQLDBInstanceDelayRequest& request) const; - DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; - void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; - MigrateToOtherZoneOutcome migrateToOtherZone(const Model::MigrateToOtherZoneRequest &request)const; - void migrateToOtherZoneAsync(const Model::MigrateToOtherZoneRequest& request, const MigrateToOtherZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MigrateToOtherZoneOutcome migrateToOtherZone(const Model::MigrateToOtherZoneRequest &request)const; + void migrateToOtherZoneAsync(const Model::MigrateToOtherZoneRequest& request, const MigrateToOtherZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MigrateToOtherZoneOutcomeCallable migrateToOtherZoneCallable(const Model::MigrateToOtherZoneRequest& request) const; - DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; - void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; + void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const; - DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; - void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; + void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const; - ReleaseReadWriteSplittingConnectionOutcome releaseReadWriteSplittingConnection(const Model::ReleaseReadWriteSplittingConnectionRequest &request)const; - void releaseReadWriteSplittingConnectionAsync(const Model::ReleaseReadWriteSplittingConnectionRequest& request, const ReleaseReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseReadWriteSplittingConnectionOutcome releaseReadWriteSplittingConnection(const Model::ReleaseReadWriteSplittingConnectionRequest &request)const; + void releaseReadWriteSplittingConnectionAsync(const Model::ReleaseReadWriteSplittingConnectionRequest& request, const ReleaseReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseReadWriteSplittingConnectionOutcomeCallable releaseReadWriteSplittingConnectionCallable(const Model::ReleaseReadWriteSplittingConnectionRequest& request) const; - DescribeLogBackupFilesOutcome describeLogBackupFiles(const Model::DescribeLogBackupFilesRequest &request)const; - void describeLogBackupFilesAsync(const Model::DescribeLogBackupFilesRequest& request, const DescribeLogBackupFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLogBackupFilesOutcome describeLogBackupFiles(const Model::DescribeLogBackupFilesRequest &request)const; + void describeLogBackupFilesAsync(const Model::DescribeLogBackupFilesRequest& request, const DescribeLogBackupFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLogBackupFilesOutcomeCallable describeLogBackupFilesCallable(const Model::DescribeLogBackupFilesRequest& request) const; - DescribeAvailableInstanceClassOutcome describeAvailableInstanceClass(const Model::DescribeAvailableInstanceClassRequest &request)const; - void describeAvailableInstanceClassAsync(const Model::DescribeAvailableInstanceClassRequest& request, const DescribeAvailableInstanceClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableInstanceClassOutcome describeAvailableInstanceClass(const Model::DescribeAvailableInstanceClassRequest &request)const; + void describeAvailableInstanceClassAsync(const Model::DescribeAvailableInstanceClassRequest& request, const DescribeAvailableInstanceClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAvailableInstanceClassOutcomeCallable describeAvailableInstanceClassCallable(const Model::DescribeAvailableInstanceClassRequest& request) const; - DescribeErrorLogsOutcome describeErrorLogs(const Model::DescribeErrorLogsRequest &request)const; - void describeErrorLogsAsync(const Model::DescribeErrorLogsRequest& request, const DescribeErrorLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeErrorLogsOutcome describeErrorLogs(const Model::DescribeErrorLogsRequest &request)const; + void describeErrorLogsAsync(const Model::DescribeErrorLogsRequest& request, const DescribeErrorLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeErrorLogsOutcomeCallable describeErrorLogsCallable(const Model::DescribeErrorLogsRequest& request) const; - ModifyDBInstanceHAConfigOutcome modifyDBInstanceHAConfig(const Model::ModifyDBInstanceHAConfigRequest &request)const; - void modifyDBInstanceHAConfigAsync(const Model::ModifyDBInstanceHAConfigRequest& request, const ModifyDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceHAConfigOutcome modifyDBInstanceHAConfig(const Model::ModifyDBInstanceHAConfigRequest &request)const; + void modifyDBInstanceHAConfigAsync(const Model::ModifyDBInstanceHAConfigRequest& request, const ModifyDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceHAConfigOutcomeCallable modifyDBInstanceHAConfigCallable(const Model::ModifyDBInstanceHAConfigRequest& request) const; - DescribeDBInstancesAsCsvOutcome describeDBInstancesAsCsv(const Model::DescribeDBInstancesAsCsvRequest &request)const; - void describeDBInstancesAsCsvAsync(const Model::DescribeDBInstancesAsCsvRequest& request, const DescribeDBInstancesAsCsvAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesAsCsvOutcome describeDBInstancesAsCsv(const Model::DescribeDBInstancesAsCsvRequest &request)const; + void describeDBInstancesAsCsvAsync(const Model::DescribeDBInstancesAsCsvRequest& request, const DescribeDBInstancesAsCsvAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstancesAsCsvOutcomeCallable describeDBInstancesAsCsvCallable(const Model::DescribeDBInstancesAsCsvRequest& request) const; - ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; - void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; + void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const; - ModifyDBInstanceProxyConfigurationOutcome modifyDBInstanceProxyConfiguration(const Model::ModifyDBInstanceProxyConfigurationRequest &request)const; - void modifyDBInstanceProxyConfigurationAsync(const Model::ModifyDBInstanceProxyConfigurationRequest& request, const ModifyDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceProxyConfigurationOutcome modifyDBInstanceProxyConfiguration(const Model::ModifyDBInstanceProxyConfigurationRequest &request)const; + void modifyDBInstanceProxyConfigurationAsync(const Model::ModifyDBInstanceProxyConfigurationRequest& request, const ModifyDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceProxyConfigurationOutcomeCallable modifyDBInstanceProxyConfigurationCallable(const Model::ModifyDBInstanceProxyConfigurationRequest& request) const; - DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const; - void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const; - DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; - void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; + void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; - DescribeDBInstanceByTagsOutcome describeDBInstanceByTags(const Model::DescribeDBInstanceByTagsRequest &request)const; - void describeDBInstanceByTagsAsync(const Model::DescribeDBInstanceByTagsRequest& request, const DescribeDBInstanceByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const; + void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const; + DescribeDBInstanceByTagsOutcome describeDBInstanceByTags(const Model::DescribeDBInstanceByTagsRequest &request)const; + void describeDBInstanceByTagsAsync(const Model::DescribeDBInstanceByTagsRequest& request, const DescribeDBInstanceByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceByTagsOutcomeCallable describeDBInstanceByTagsCallable(const Model::DescribeDBInstanceByTagsRequest& request) const; - DescribeMetaListOutcome describeMetaList(const Model::DescribeMetaListRequest &request)const; - void describeMetaListAsync(const Model::DescribeMetaListRequest& request, const DescribeMetaListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetaListOutcome describeMetaList(const Model::DescribeMetaListRequest &request)const; + void describeMetaListAsync(const Model::DescribeMetaListRequest& request, const DescribeMetaListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMetaListOutcomeCallable describeMetaListCallable(const Model::DescribeMetaListRequest& request) const; - DescribeDBInstanceSSLOutcome describeDBInstanceSSL(const Model::DescribeDBInstanceSSLRequest &request)const; - void describeDBInstanceSSLAsync(const Model::DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceSSLOutcome describeDBInstanceSSL(const Model::DescribeDBInstanceSSLRequest &request)const; + void describeDBInstanceSSLAsync(const Model::DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceSSLOutcomeCallable describeDBInstanceSSLCallable(const Model::DescribeDBInstanceSSLRequest& request) const; - DescribeDBInstancesByPerformanceOutcome describeDBInstancesByPerformance(const Model::DescribeDBInstancesByPerformanceRequest &request)const; - void describeDBInstancesByPerformanceAsync(const Model::DescribeDBInstancesByPerformanceRequest& request, const DescribeDBInstancesByPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesByPerformanceOutcome describeDBInstancesByPerformance(const Model::DescribeDBInstancesByPerformanceRequest &request)const; + void describeDBInstancesByPerformanceAsync(const Model::DescribeDBInstancesByPerformanceRequest& request, const DescribeDBInstancesByPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstancesByPerformanceOutcomeCallable describeDBInstancesByPerformanceCallable(const Model::DescribeDBInstancesByPerformanceRequest& request) const; - DescribeSQLReportsOutcome describeSQLReports(const Model::DescribeSQLReportsRequest &request)const; - void describeSQLReportsAsync(const Model::DescribeSQLReportsRequest& request, const DescribeSQLReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLReportsOutcome describeSQLReports(const Model::DescribeSQLReportsRequest &request)const; + void describeSQLReportsAsync(const Model::DescribeSQLReportsRequest& request, const DescribeSQLReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLReportsOutcomeCallable describeSQLReportsCallable(const Model::DescribeSQLReportsRequest& request) const; - DescribeBackupTasksOutcome describeBackupTasks(const Model::DescribeBackupTasksRequest &request)const; - void describeBackupTasksAsync(const Model::DescribeBackupTasksRequest& request, const DescribeBackupTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupTasksOutcome describeBackupTasks(const Model::DescribeBackupTasksRequest &request)const; + void describeBackupTasksAsync(const Model::DescribeBackupTasksRequest& request, const DescribeBackupTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupTasksOutcomeCallable describeBackupTasksCallable(const Model::DescribeBackupTasksRequest& request) const; - DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; - void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; + void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const; - ModifyCollationTimeZoneOutcome modifyCollationTimeZone(const Model::ModifyCollationTimeZoneRequest &request)const; - void modifyCollationTimeZoneAsync(const Model::ModifyCollationTimeZoneRequest& request, const ModifyCollationTimeZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyCollationTimeZoneOutcomeCallable modifyCollationTimeZoneCallable(const Model::ModifyCollationTimeZoneRequest& request) const; - DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; - void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; + void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const; - CreateMigrateTaskForSQLServerOutcome createMigrateTaskForSQLServer(const Model::CreateMigrateTaskForSQLServerRequest &request)const; - void createMigrateTaskForSQLServerAsync(const Model::CreateMigrateTaskForSQLServerRequest& request, const CreateMigrateTaskForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCollationTimeZoneOutcome modifyCollationTimeZone(const Model::ModifyCollationTimeZoneRequest &request)const; + void modifyCollationTimeZoneAsync(const Model::ModifyCollationTimeZoneRequest& request, const ModifyCollationTimeZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCollationTimeZoneOutcomeCallable modifyCollationTimeZoneCallable(const Model::ModifyCollationTimeZoneRequest& request) const; + CreateMigrateTaskForSQLServerOutcome createMigrateTaskForSQLServer(const Model::CreateMigrateTaskForSQLServerRequest &request)const; + void createMigrateTaskForSQLServerAsync(const Model::CreateMigrateTaskForSQLServerRequest& request, const CreateMigrateTaskForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMigrateTaskForSQLServerOutcomeCallable createMigrateTaskForSQLServerCallable(const Model::CreateMigrateTaskForSQLServerRequest& request) const; - DescribeDBInstanceIPArrayListOutcome describeDBInstanceIPArrayList(const Model::DescribeDBInstanceIPArrayListRequest &request)const; - void describeDBInstanceIPArrayListAsync(const Model::DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceIPArrayListOutcome describeDBInstanceIPArrayList(const Model::DescribeDBInstanceIPArrayListRequest &request)const; + void describeDBInstanceIPArrayListAsync(const Model::DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceIPArrayListOutcomeCallable describeDBInstanceIPArrayListCallable(const Model::DescribeDBInstanceIPArrayListRequest& request) const; - SwitchDBInstanceHAOutcome switchDBInstanceHA(const Model::SwitchDBInstanceHARequest &request)const; - void switchDBInstanceHAAsync(const Model::SwitchDBInstanceHARequest& request, const SwitchDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchDBInstanceHAOutcome switchDBInstanceHA(const Model::SwitchDBInstanceHARequest &request)const; + void switchDBInstanceHAAsync(const Model::SwitchDBInstanceHARequest& request, const SwitchDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchDBInstanceHAOutcomeCallable switchDBInstanceHACallable(const Model::SwitchDBInstanceHARequest& request) const; - ResetAccountForPGOutcome resetAccountForPG(const Model::ResetAccountForPGRequest &request)const; - void resetAccountForPGAsync(const Model::ResetAccountForPGRequest& request, const ResetAccountForPGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountForPGOutcome resetAccountForPG(const Model::ResetAccountForPGRequest &request)const; + void resetAccountForPGAsync(const Model::ResetAccountForPGRequest& request, const ResetAccountForPGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetAccountForPGOutcomeCallable resetAccountForPGCallable(const Model::ResetAccountForPGRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_RDS_RDSCLIENT_H_ + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_RDS_RDSCLIENT_H_ diff --git a/rds/include/alibabacloud/rds/RdsExport.h b/rds/include/alibabacloud/rds/RdsExport.h index 84753a09c..1946857d3 100644 --- a/rds/include/alibabacloud/rds/RdsExport.h +++ b/rds/include/alibabacloud/rds/RdsExport.h @@ -1,32 +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_RDS_RDSEXPORT_H_ -#define ALIBABACLOUD_RDS_RDSEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_RDS_LIBRARY) -# define ALIBABACLOUD_RDS_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_RDS_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_RDS_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_RDSEXPORT_H_ +#define ALIBABACLOUD_RDS_RDSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_RDS_LIBRARY) +# define ALIBABACLOUD_RDS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_RDS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_RDS_EXPORT +#endif + #endif // !ALIBABACLOUD_RDS_RDSEXPORT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AddTagsToResourceRequest.h b/rds/include/alibabacloud/rds/model/AddTagsToResourceRequest.h index f28ce51f2..34d2857cb 100644 --- a/rds/include/alibabacloud/rds/model/AddTagsToResourceRequest.h +++ b/rds/include/alibabacloud/rds/model/AddTagsToResourceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AddTagsToResourceRequest : public RpcServiceRequest - { - - public: - AddTagsToResourceRequest(); - ~AddTagsToResourceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AddTagsToResourceRequest : public RpcServiceRequest + { + + public: + AddTagsToResourceRequest(); + ~AddTagsToResourceRequest(); + std::string getTag4value()const; void setTag4value(const std::string& tag4value); long getResourceOwnerId()const; @@ -75,8 +75,8 @@ namespace AlibabaCloud void setTag3value(const std::string& tag3value); std::string getProxyId()const; void setProxyId(const std::string& proxyId); - - private: + + private: std::string tag4value_; long resourceOwnerId_; std::string tag2key_; @@ -97,9 +97,9 @@ namespace AlibabaCloud std::string dBInstanceId_; std::string tag3value_; std::string proxyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AddTagsToResourceResult.h b/rds/include/alibabacloud/rds/model/AddTagsToResourceResult.h index 3d2e43ccc..befecd012 100644 --- a/rds/include/alibabacloud/rds/model/AddTagsToResourceResult.h +++ b/rds/include/alibabacloud/rds/model/AddTagsToResourceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AddTagsToResourceResult : public ServiceResult - { - public: - - - AddTagsToResourceResult(); - explicit AddTagsToResourceResult(const std::string &payload); - ~AddTagsToResourceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AddTagsToResourceResult : public ServiceResult + { + public: + + + AddTagsToResourceResult(); + explicit AddTagsToResourceResult(const std::string &payload); + ~AddTagsToResourceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h index e7dbfcff0..e8b631045 100644 --- a/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateInstancePrivateConnectionRequest : public RpcServiceRequest - { - - public: - AllocateInstancePrivateConnectionRequest(); - ~AllocateInstancePrivateConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePrivateConnectionRequest : public RpcServiceRequest + { + + public: + AllocateInstancePrivateConnectionRequest(); + ~AllocateInstancePrivateConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h index 71a9e44bc..d28a89c5c 100644 --- a/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateInstancePrivateConnectionResult : public ServiceResult - { - public: - - - AllocateInstancePrivateConnectionResult(); - explicit AllocateInstancePrivateConnectionResult(const std::string &payload); - ~AllocateInstancePrivateConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePrivateConnectionResult : public ServiceResult + { + public: + + + AllocateInstancePrivateConnectionResult(); + explicit AllocateInstancePrivateConnectionResult(const std::string &payload); + ~AllocateInstancePrivateConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h index a67383767..b5d13d6d4 100644 --- a/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateInstancePublicConnectionRequest : public RpcServiceRequest - { - - public: - AllocateInstancePublicConnectionRequest(); - ~AllocateInstancePublicConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePublicConnectionRequest : public RpcServiceRequest + { + + public: + AllocateInstancePublicConnectionRequest(); + ~AllocateInstancePublicConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h index a12bf47f4..e63e76fc6 100644 --- a/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateInstancePublicConnectionResult : public ServiceResult - { - public: - - - AllocateInstancePublicConnectionResult(); - explicit AllocateInstancePublicConnectionResult(const std::string &payload); - ~AllocateInstancePublicConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePublicConnectionResult : public ServiceResult + { + public: + + + AllocateInstancePublicConnectionResult(); + explicit AllocateInstancePublicConnectionResult(const std::string &payload); + ~AllocateInstancePublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeRequest.h b/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeRequest.h index 7bfcf8b33..66f11c5f5 100644 --- a/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeRequest.h +++ b/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateInstanceVpcNetworkTypeRequest : public RpcServiceRequest - { - - public: - AllocateInstanceVpcNetworkTypeRequest(); - ~AllocateInstanceVpcNetworkTypeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstanceVpcNetworkTypeRequest : public RpcServiceRequest + { + + public: + AllocateInstanceVpcNetworkTypeRequest(); + ~AllocateInstanceVpcNetworkTypeRequest(); + std::string getTargetVpcId()const; void setTargetVpcId(const std::string& targetVpcId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string targetVpcId_; long resourceOwnerId_; std::string targetZoneId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string targetVSwitchId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeResult.h b/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeResult.h index 346dee656..d0e328100 100644 --- a/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeResult.h +++ b/rds/include/alibabacloud/rds/model/AllocateInstanceVpcNetworkTypeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateInstanceVpcNetworkTypeResult : public ServiceResult - { - public: - - - AllocateInstanceVpcNetworkTypeResult(); - explicit AllocateInstanceVpcNetworkTypeResult(const std::string &payload); - ~AllocateInstanceVpcNetworkTypeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstanceVpcNetworkTypeResult : public ServiceResult + { + public: + + + AllocateInstanceVpcNetworkTypeResult(); + explicit AllocateInstanceVpcNetworkTypeResult(const std::string &payload); + ~AllocateInstanceVpcNetworkTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEVPCNETWORKTYPERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h index 7617af57e..8bb77f631 100644 --- a/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h +++ b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateReadWriteSplittingConnectionRequest : public RpcServiceRequest - { - - public: - AllocateReadWriteSplittingConnectionRequest(); - ~AllocateReadWriteSplittingConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateReadWriteSplittingConnectionRequest : public RpcServiceRequest + { + + public: + AllocateReadWriteSplittingConnectionRequest(); + ~AllocateReadWriteSplittingConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getMaxDelayTime()const; void setMaxDelayTime(const std::string& maxDelayTime); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string resourceOwnerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string netType_; std::string dBInstanceId_; std::string maxDelayTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h index fd3b8d6b8..46a12122f 100644 --- a/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h +++ b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT AllocateReadWriteSplittingConnectionResult : public ServiceResult - { - public: - - - AllocateReadWriteSplittingConnectionResult(); - explicit AllocateReadWriteSplittingConnectionResult(const std::string &payload); - ~AllocateReadWriteSplittingConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateReadWriteSplittingConnectionResult : public ServiceResult + { + public: + + + AllocateReadWriteSplittingConnectionResult(); + explicit AllocateReadWriteSplittingConnectionResult(const std::string &payload); + ~AllocateReadWriteSplittingConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h index 23d42c14b..bf0abed1f 100644 --- a/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h +++ b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CalculateDBInstanceWeightRequest : public RpcServiceRequest - { - - public: - CalculateDBInstanceWeightRequest(); - ~CalculateDBInstanceWeightRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CalculateDBInstanceWeightRequest : public RpcServiceRequest + { + + public: + CalculateDBInstanceWeightRequest(); + ~CalculateDBInstanceWeightRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h index ba7cc775f..cfdd0396e 100644 --- a/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h +++ b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CalculateDBInstanceWeightResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CalculateDBInstanceWeightResult : public ServiceResult + { + public: struct DBInstanceWeight { std::string availability; @@ -40,20 +40,20 @@ namespace AlibabaCloud std::string readonlyInstanceSQLDelayedTime; std::string weight; }; - - - CalculateDBInstanceWeightResult(); - explicit CalculateDBInstanceWeightResult(const std::string &payload); - ~CalculateDBInstanceWeightResult(); + + + CalculateDBInstanceWeightResult(); + explicit CalculateDBInstanceWeightResult(const std::string &payload); + ~CalculateDBInstanceWeightResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CancelImportRequest.h b/rds/include/alibabacloud/rds/model/CancelImportRequest.h index f9ef154d8..e47cabf7d 100644 --- a/rds/include/alibabacloud/rds/model/CancelImportRequest.h +++ b/rds/include/alibabacloud/rds/model/CancelImportRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CancelImportRequest : public RpcServiceRequest - { - - public: - CancelImportRequest(); - ~CancelImportRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CancelImportRequest : public RpcServiceRequest + { + + public: + CancelImportRequest(); + ~CancelImportRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getImportId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; int importId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CancelImportResult.h b/rds/include/alibabacloud/rds/model/CancelImportResult.h index a0ef7babd..7c594134d 100644 --- a/rds/include/alibabacloud/rds/model/CancelImportResult.h +++ b/rds/include/alibabacloud/rds/model/CancelImportResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CancelImportResult : public ServiceResult - { - public: - - - CancelImportResult(); - explicit CancelImportResult(const std::string &payload); - ~CancelImportResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CancelImportResult : public ServiceResult + { + public: + + + CancelImportResult(); + explicit CancelImportResult(const std::string &payload); + ~CancelImportResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h index a68c3d70f..73627c8e6 100644 --- a/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h +++ b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckAccountNameAvailableRequest : public RpcServiceRequest - { - - public: - CheckAccountNameAvailableRequest(); - ~CheckAccountNameAvailableRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckAccountNameAvailableRequest : public RpcServiceRequest + { + + public: + CheckAccountNameAvailableRequest(); + ~CheckAccountNameAvailableRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h index 765a7d556..e8632567f 100644 --- a/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h +++ b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckAccountNameAvailableResult : public ServiceResult - { - public: - - - CheckAccountNameAvailableResult(); - explicit CheckAccountNameAvailableResult(const std::string &payload); - ~CheckAccountNameAvailableResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckAccountNameAvailableResult : public ServiceResult + { + public: + + + CheckAccountNameAvailableResult(); + explicit CheckAccountNameAvailableResult(const std::string &payload); + ~CheckAccountNameAvailableResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceRequest.h new file mode 100644 index 000000000..50994b7a7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKCREATEDDRDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKCREATEDDRDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckCreateDdrDBInstanceRequest : public RpcServiceRequest + { + + public: + CheckCreateDdrDBInstanceRequest(); + ~CheckCreateDdrDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getSourceDBInstanceName()const; + void setSourceDBInstanceName(const std::string& sourceDBInstanceName); + std::string getBakSetName()const; + void setBakSetName(const std::string& bakSetName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getHostType()const; + void setHostType(const std::string& hostType); + std::string getBackupSetId()const; + void setBackupSetId(const std::string& backupSetId); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserBakSetURL()const; + void setUserBakSetURL(const std::string& userBakSetURL); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getRestoreType()const; + void setRestoreType(const std::string& restoreType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getSourceRegion()const; + void setSourceRegion(const std::string& sourceRegion); + std::string getBackupSetRegion()const; + void setBackupSetRegion(const std::string& backupSetRegion); + std::string getBackupSetType()const; + void setBackupSetType(const std::string& backupSetType); + + private: + long resourceOwnerId_; + std::string restoreTime_; + int dBInstanceStorage_; + std::string sourceDBInstanceName_; + std::string bakSetName_; + std::string resourceOwnerAccount_; + std::string hostType_; + std::string backupSetId_; + std::string engineVersion_; + long ownerId_; + std::string userBakSetURL_; + std::string accessKeyId_; + std::string dBInstanceClass_; + std::string restoreType_; + std::string regionId_; + std::string engine_; + std::string sourceRegion_; + std::string backupSetRegion_; + std::string backupSetType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKCREATEDDRDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceResult.h new file mode 100644 index 000000000..f8be9aee0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckCreateDdrDBInstanceResult.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_RDS_MODEL_CHECKCREATEDDRDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKCREATEDDRDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckCreateDdrDBInstanceResult : public ServiceResult + { + public: + + + CheckCreateDdrDBInstanceResult(); + explicit CheckCreateDdrDBInstanceResult(const std::string &payload); + ~CheckCreateDdrDBInstanceResult(); + std::string getIsValid()const; + + protected: + void parse(const std::string &payload); + private: + std::string isValid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKCREATEDDRDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckInstanceExistRequest.h b/rds/include/alibabacloud/rds/model/CheckInstanceExistRequest.h index 17aef5177..bb3a18def 100644 --- a/rds/include/alibabacloud/rds/model/CheckInstanceExistRequest.h +++ b/rds/include/alibabacloud/rds/model/CheckInstanceExistRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckInstanceExistRequest : public RpcServiceRequest - { - - public: - CheckInstanceExistRequest(); - ~CheckInstanceExistRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckInstanceExistRequest : public RpcServiceRequest + { + + public: + CheckInstanceExistRequest(); + ~CheckInstanceExistRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckInstanceExistResult.h b/rds/include/alibabacloud/rds/model/CheckInstanceExistResult.h index 7192c6372..1a86317a5 100644 --- a/rds/include/alibabacloud/rds/model/CheckInstanceExistResult.h +++ b/rds/include/alibabacloud/rds/model/CheckInstanceExistResult.h @@ -1,51 +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_RDS_MODEL_CHECKINSTANCEEXISTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckInstanceExistResult : public ServiceResult - { - public: - - - CheckInstanceExistResult(); - explicit CheckInstanceExistResult(const std::string &payload); - ~CheckInstanceExistResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckInstanceExistResult : public ServiceResult + { + public: + + + CheckInstanceExistResult(); + explicit CheckInstanceExistResult(const std::string &payload); + ~CheckInstanceExistResult(); bool getIsExistInstance()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: bool isExistInstance_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKINSTANCEEXISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h index 979b58d80..ef9d5b5cf 100644 --- a/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h +++ b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckRecoveryConditionsRequest : public RpcServiceRequest - { - - public: - CheckRecoveryConditionsRequest(); - ~CheckRecoveryConditionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckRecoveryConditionsRequest : public RpcServiceRequest + { + + public: + CheckRecoveryConditionsRequest(); + ~CheckRecoveryConditionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRestoreTime()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string restoreTime_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h index 027d02b75..ee9019118 100644 --- a/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h +++ b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckRecoveryConditionsResult : public ServiceResult - { - public: - - - CheckRecoveryConditionsResult(); - explicit CheckRecoveryConditionsResult(const std::string &payload); - ~CheckRecoveryConditionsResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckRecoveryConditionsResult : public ServiceResult + { + public: + + + CheckRecoveryConditionsResult(); + explicit CheckRecoveryConditionsResult(const std::string &payload); + ~CheckRecoveryConditionsResult(); std::string getDBInstanceId()const; std::string getRecoveryStatus()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string recoveryStatus_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckResourceRequest.h b/rds/include/alibabacloud/rds/model/CheckResourceRequest.h index 4b5a5ebb1..6be6401eb 100644 --- a/rds/include/alibabacloud/rds/model/CheckResourceRequest.h +++ b/rds/include/alibabacloud/rds/model/CheckResourceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckResourceRequest : public RpcServiceRequest - { - - public: - CheckResourceRequest(); - ~CheckResourceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckResourceRequest : public RpcServiceRequest + { + + public: + CheckResourceRequest(); + ~CheckResourceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setDBInstanceUseType(const std::string& dBInstanceUseType); std::string getDBInstanceId()const; void setDBInstanceId(const std::string& dBInstanceId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string zoneId_; std::string dBInstanceUseType_; std::string dBInstanceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckResourceResult.h b/rds/include/alibabacloud/rds/model/CheckResourceResult.h index fe3b18b47..25c19bcc0 100644 --- a/rds/include/alibabacloud/rds/model/CheckResourceResult.h +++ b/rds/include/alibabacloud/rds/model/CheckResourceResult.h @@ -1,59 +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_RDS_MODEL_CHECKRESOURCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CHECKRESOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CheckResourceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRESOURCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckResourceResult : public ServiceResult + { + public: struct Resource { std::string dBInstanceAvailable; std::string engineVersion; std::string engine; }; - - - CheckResourceResult(); - explicit CheckResourceResult(const std::string &payload); - ~CheckResourceResult(); + + + CheckResourceResult(); + explicit CheckResourceResult(const std::string &payload); + ~CheckResourceResult(); std::string getSpecifyCount()const; std::vector getResources()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string specifyCount_; std::vector resources_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CHECKRESOURCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CloneDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CloneDBInstanceRequest.h index a6cd26eff..d3fd7cd38 100644 --- a/rds/include/alibabacloud/rds/model/CloneDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/CloneDBInstanceRequest.h @@ -1,62 +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_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CloneDBInstanceRequest : public RpcServiceRequest - { - - public: - CloneDBInstanceRequest(); - ~CloneDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CloneDBInstanceRequest : public RpcServiceRequest + { + + public: + CloneDBInstanceRequest(); + ~CloneDBInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getZoneIdSlave1()const; + void setZoneIdSlave1(const std::string& zoneIdSlave1); + std::string getZoneIdSlave2()const; + void setZoneIdSlave2(const std::string& zoneIdSlave2); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTableMeta()const; + void setTableMeta(const std::string& tableMeta); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getDBInstanceStorageType()const; + void setDBInstanceStorageType(const std::string& dBInstanceStorageType); std::string getRestoreTime()const; void setRestoreTime(const std::string& restoreTime); std::string getPeriod()const; void setPeriod(const std::string& period); - int getDBInstanceStorage()const; - void setDBInstanceStorage(int dBInstanceStorage); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); std::string getBackupId()const; void setBackupId(const std::string& backupId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getRestoreTable()const; + void setRestoreTable(const std::string& restoreTable); long getOwnerId()const; void setOwnerId(long ownerId); std::string getUsedTime()const; void setUsedTime(const std::string& usedTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getDBInstanceClass()const; void setDBInstanceClass(const std::string& dBInstanceClass); std::string getDbNames()const; @@ -65,50 +83,50 @@ namespace AlibabaCloud void setVSwitchId(const std::string& vSwitchId); std::string getPrivateIpAddress()const; void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); std::string getVPCId()const; void setVPCId(const std::string& vPCId); std::string getZoneId()const; void setZoneId(const std::string& zoneId); - std::string getDBInstanceDescription()const; - void setDBInstanceDescription(const std::string& dBInstanceDescription); - std::string getDBInstanceId()const; - void setDBInstanceId(const std::string& dBInstanceId); + std::string getCategory()const; + void setCategory(const std::string& category); std::string getPayType()const; void setPayType(const std::string& payType); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); - - private: + + private: long resourceOwnerId_; + int dBInstanceStorage_; + std::string clientToken_; + std::string zoneIdSlave1_; + std::string zoneIdSlave2_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string tableMeta_; + std::string dBInstanceDescription_; + std::string dBInstanceId_; + std::string dBInstanceStorageType_; std::string restoreTime_; std::string period_; - int dBInstanceStorage_; std::string resourceOwnerAccount_; - std::string clientToken_; std::string backupId_; std::string ownerAccount_; + std::string restoreTable_; long ownerId_; std::string usedTime_; - std::string accessKeyId_; std::string dBInstanceClass_; std::string dbNames_; std::string vSwitchId_; std::string privateIpAddress_; - std::string resourceGroupId_; - std::string regionId_; std::string vPCId_; std::string zoneId_; - std::string dBInstanceDescription_; - std::string dBInstanceId_; + std::string category_; std::string payType_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CloneDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CloneDBInstanceResult.h index 24ab30e25..74d6c2e70 100644 --- a/rds/include/alibabacloud/rds/model/CloneDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/CloneDBInstanceResult.h @@ -1,57 +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_RDS_MODEL_CLONEDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CloneDBInstanceResult : public ServiceResult - { - public: - - - CloneDBInstanceResult(); - explicit CloneDBInstanceResult(const std::string &payload); - ~CloneDBInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CloneDBInstanceResult : public ServiceResult + { + public: + + + CloneDBInstanceResult(); + explicit CloneDBInstanceResult(const std::string &payload); + ~CloneDBInstanceResult(); std::string getDBInstanceId()const; std::string getPort()const; std::string getOrderId()const; std::string getConnectionString()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string port_; std::string orderId_; std::string connectionString_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesRequest.h b/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesRequest.h index 6bbfb27c6..885a8a239 100644 --- a/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesRequest.h +++ b/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CopyDatabaseBetweenInstancesRequest : public RpcServiceRequest - { - - public: - CopyDatabaseBetweenInstancesRequest(); - ~CopyDatabaseBetweenInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CopyDatabaseBetweenInstancesRequest : public RpcServiceRequest + { + + public: + CopyDatabaseBetweenInstancesRequest(); + ~CopyDatabaseBetweenInstancesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRestoreTime()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getPayType()const; void setPayType(const std::string& payType); - - private: + + private: long resourceOwnerId_; std::string restoreTime_; std::string resourceOwnerAccount_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string targetDBInstanceId_; std::string dBInstanceId_; std::string payType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesResult.h b/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesResult.h index 117bf82b0..34ae9fd73 100644 --- a/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesResult.h +++ b/rds/include/alibabacloud/rds/model/CopyDatabaseBetweenInstancesResult.h @@ -1,51 +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_RDS_MODEL_COPYDATABASEBETWEENINSTANCESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CopyDatabaseBetweenInstancesResult : public ServiceResult - { - public: - - - CopyDatabaseBetweenInstancesResult(); - explicit CopyDatabaseBetweenInstancesResult(const std::string &payload); - ~CopyDatabaseBetweenInstancesResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CopyDatabaseBetweenInstancesResult : public ServiceResult + { + public: + + + CopyDatabaseBetweenInstancesResult(); + explicit CopyDatabaseBetweenInstancesResult(const std::string &payload); + ~CopyDatabaseBetweenInstancesResult(); std::string getDBInstanceId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_COPYDATABASEBETWEENINSTANCESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CopyDatabaseRequest.h b/rds/include/alibabacloud/rds/model/CopyDatabaseRequest.h index 10305d386..67097429c 100644 --- a/rds/include/alibabacloud/rds/model/CopyDatabaseRequest.h +++ b/rds/include/alibabacloud/rds/model/CopyDatabaseRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CopyDatabaseRequest : public RpcServiceRequest - { - - public: - CopyDatabaseRequest(); - ~CopyDatabaseRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CopyDatabaseRequest : public RpcServiceRequest + { + + public: + CopyDatabaseRequest(); + ~CopyDatabaseRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CopyDatabaseResult.h b/rds/include/alibabacloud/rds/model/CopyDatabaseResult.h index 425056c3c..94c919f04 100644 --- a/rds/include/alibabacloud/rds/model/CopyDatabaseResult.h +++ b/rds/include/alibabacloud/rds/model/CopyDatabaseResult.h @@ -1,55 +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_RDS_MODEL_COPYDATABASERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_COPYDATABASERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CopyDatabaseResult : public ServiceResult - { - public: - - - CopyDatabaseResult(); - explicit CopyDatabaseResult(const std::string &payload); - ~CopyDatabaseResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_COPYDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CopyDatabaseResult : public ServiceResult + { + public: + + + CopyDatabaseResult(); + explicit CopyDatabaseResult(const std::string &payload); + ~CopyDatabaseResult(); std::string getTaskId()const; std::string getDBName()const; std::string getDBStatus()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string dBName_; std::string dBStatus_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_COPYDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateAccountRequest.h b/rds/include/alibabacloud/rds/model/CreateAccountRequest.h index 951e5e9f8..74943b6fa 100644 --- a/rds/include/alibabacloud/rds/model/CreateAccountRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateAccountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateAccountRequest : public RpcServiceRequest - { - - public: - CreateAccountRequest(); - ~CreateAccountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateAccountRequest : public RpcServiceRequest + { + + public: + CreateAccountRequest(); + ~CreateAccountRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountPassword()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setAccountDescription(const std::string& accountDescription); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountPassword_; std::string accountName_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string accountDescription_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateAccountResult.h b/rds/include/alibabacloud/rds/model/CreateAccountResult.h index 3a6cd0e33..16418beb5 100644 --- a/rds/include/alibabacloud/rds/model/CreateAccountResult.h +++ b/rds/include/alibabacloud/rds/model/CreateAccountResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateAccountResult : public ServiceResult - { - public: - - - CreateAccountResult(); - explicit CreateAccountResult(const std::string &payload); - ~CreateAccountResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateAccountResult : public ServiceResult + { + public: + + + CreateAccountResult(); + explicit CreateAccountResult(const std::string &payload); + ~CreateAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateBackupRequest.h b/rds/include/alibabacloud/rds/model/CreateBackupRequest.h index 4ae7f46ea..8074a0830 100644 --- a/rds/include/alibabacloud/rds/model/CreateBackupRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateBackupRequest : public RpcServiceRequest - { - - public: - CreateBackupRequest(); - ~CreateBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateBackupRequest : public RpcServiceRequest + { + + public: + CreateBackupRequest(); + ~CreateBackupRequest(); + std::string getBackupMethod()const; void setBackupMethod(const std::string& backupMethod); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setBackupType(const std::string& backupType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string backupMethod_; long resourceOwnerId_; std::string backupStrategy_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string backupType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateBackupResult.h b/rds/include/alibabacloud/rds/model/CreateBackupResult.h index 01fdf54e4..bbab0ac63 100644 --- a/rds/include/alibabacloud/rds/model/CreateBackupResult.h +++ b/rds/include/alibabacloud/rds/model/CreateBackupResult.h @@ -1,51 +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_RDS_MODEL_CREATEBACKUPRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateBackupResult : public ServiceResult - { - public: - - - CreateBackupResult(); - explicit CreateBackupResult(const std::string &payload); - ~CreateBackupResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEBACKUPRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateBackupResult : public ServiceResult + { + public: + + + CreateBackupResult(); + explicit CreateBackupResult(const std::string &payload); + ~CreateBackupResult(); std::string getBackupJobId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string backupJobId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEBACKUPRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h index a697f4dbe..fffb85328 100644 --- a/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceReplicaRequest : public RpcServiceRequest - { - - public: - CreateDBInstanceReplicaRequest(); - ~CreateDBInstanceReplicaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceReplicaRequest : public RpcServiceRequest + { + + public: + CreateDBInstanceReplicaRequest(); + ~CreateDBInstanceReplicaRequest(); + std::string getConnectionMode()const; void setConnectionMode(const std::string& connectionMode); std::string getDomainMode()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setPayType(const std::string& payType); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); - - private: + + private: std::string connectionMode_; std::string domainMode_; std::string replicaDescription_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string zoneId_; std::string payType_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h index 46d0388cf..df58d59d1 100644 --- a/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h @@ -1,57 +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_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceReplicaResult : public ServiceResult - { - public: - - - CreateDBInstanceReplicaResult(); - explicit CreateDBInstanceReplicaResult(const std::string &payload); - ~CreateDBInstanceReplicaResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceReplicaResult : public ServiceResult + { + public: + + + CreateDBInstanceReplicaResult(); + explicit CreateDBInstanceReplicaResult(const std::string &payload); + ~CreateDBInstanceReplicaResult(); std::string getDBInstanceId()const; long getOrderId()const; std::string getWorkflowId()const; std::string getReplicaId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; long orderId_; std::string workflowId_; std::string replicaId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceRequest.h index ddd6169d4..f35794cab 100644 --- a/rds/include/alibabacloud/rds/model/CreateDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceRequest : public RpcServiceRequest - { - - public: - CreateDBInstanceRequest(); - ~CreateDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceRequest : public RpcServiceRequest + { + + public: + CreateDBInstanceRequest(); + ~CreateDBInstanceRequest(); + std::string getConnectionMode()const; void setConnectionMode(const std::string& connectionMode); long getResourceOwnerId()const; @@ -45,6 +45,10 @@ namespace AlibabaCloud void setSystemDBCharset(const std::string& systemDBCharset); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + std::string getZoneIdSlave1()const; + void setZoneIdSlave1(const std::string& zoneIdSlave1); + std::string getZoneIdSlave2()const; + void setZoneIdSlave2(const std::string& zoneIdSlave2); std::string getEngineVersion()const; void setEngineVersion(const std::string& engineVersion); std::string getAccessKeyId()const; @@ -93,17 +97,21 @@ namespace AlibabaCloud void setTunnelId(const std::string& tunnelId); std::string getZoneId()const; void setZoneId(const std::string& zoneId); + std::string getCategory()const; + void setCategory(const std::string& category); std::string getPayType()const; void setPayType(const std::string& payType); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); - - private: + + private: std::string connectionMode_; long resourceOwnerId_; int dBInstanceStorage_; std::string systemDBCharset_; std::string clientToken_; + std::string zoneIdSlave1_; + std::string zoneIdSlave2_; std::string engineVersion_; std::string accessKeyId_; std::string resourceGroupId_; @@ -128,11 +136,12 @@ namespace AlibabaCloud std::string vPCId_; std::string tunnelId_; std::string zoneId_; + std::string category_; std::string payType_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceResult.h index f63a06618..202564769 100644 --- a/rds/include/alibabacloud/rds/model/CreateDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceResult.h @@ -1,57 +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_RDS_MODEL_CREATEDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceResult : public ServiceResult - { - public: - - - CreateDBInstanceResult(); - explicit CreateDBInstanceResult(const std::string &payload); - ~CreateDBInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceResult : public ServiceResult + { + public: + + + CreateDBInstanceResult(); + explicit CreateDBInstanceResult(const std::string &payload); + ~CreateDBInstanceResult(); std::string getDBInstanceId()const; std::string getPort()const; std::string getOrderId()const; std::string getConnectionString()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string port_; std::string orderId_; std::string connectionString_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDatabaseRequest.h b/rds/include/alibabacloud/rds/model/CreateDatabaseRequest.h index 642b6538c..237f7caf2 100644 --- a/rds/include/alibabacloud/rds/model/CreateDatabaseRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateDatabaseRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDatabaseRequest : public RpcServiceRequest - { - - public: - CreateDatabaseRequest(); - ~CreateDatabaseRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDatabaseRequest : public RpcServiceRequest + { + + public: + CreateDatabaseRequest(); + ~CreateDatabaseRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setCharacterSetName(const std::string& characterSetName); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string characterSetName_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDatabaseResult.h b/rds/include/alibabacloud/rds/model/CreateDatabaseResult.h index d274bee20..3f494f9a7 100644 --- a/rds/include/alibabacloud/rds/model/CreateDatabaseResult.h +++ b/rds/include/alibabacloud/rds/model/CreateDatabaseResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDatabaseResult : public ServiceResult - { - public: - - - CreateDatabaseResult(); - explicit CreateDatabaseResult(const std::string &payload); - ~CreateDatabaseResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDatabaseResult : public ServiceResult + { + public: + + + CreateDatabaseResult(); + explicit CreateDatabaseResult(const std::string &payload); + ~CreateDatabaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDdrInstanceRequest.h b/rds/include/alibabacloud/rds/model/CreateDdrInstanceRequest.h new file mode 100644 index 000000000..a0d570c02 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDdrInstanceRequest.h @@ -0,0 +1,156 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDDRINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDDRINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDdrInstanceRequest : public RpcServiceRequest + { + + public: + CreateDdrInstanceRequest(); + ~CreateDdrInstanceRequest(); + + std::string getConnectionMode()const; + void setConnectionMode(const std::string& connectionMode); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getSystemDBCharset()const; + void setSystemDBCharset(const std::string& systemDBCharset); + std::string getSourceDBInstanceName()const; + void setSourceDBInstanceName(const std::string& sourceDBInstanceName); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getHostType()const; + void setHostType(const std::string& hostType); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getUserBakSetURL()const; + void setUserBakSetURL(const std::string& userBakSetURL); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getDBInstanceStorageType()const; + void setDBInstanceStorageType(const std::string& dBInstanceStorageType); + std::string getBackupSetRegion()const; + void setBackupSetRegion(const std::string& backupSetRegion); + std::string getDBInstanceNetType()const; + void setDBInstanceNetType(const std::string& dBInstanceNetType); + std::string getBackupSetType()const; + void setBackupSetType(const std::string& backupSetType); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getBakSetName()const; + void setBakSetName(const std::string& bakSetName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBackupSetId()const; + void setBackupSetId(const std::string& backupSetId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getSecurityIPList()const; + void setSecurityIPList(const std::string& securityIPList); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getRestoreType()const; + void setRestoreType(const std::string& restoreType); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getTunnelId()const; + void setTunnelId(const std::string& tunnelId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getSourceRegion()const; + void setSourceRegion(const std::string& sourceRegion); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + std::string connectionMode_; + long resourceOwnerId_; + int dBInstanceStorage_; + std::string systemDBCharset_; + std::string sourceDBInstanceName_; + std::string clientToken_; + std::string hostType_; + std::string engineVersion_; + std::string userBakSetURL_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string engine_; + std::string dBInstanceDescription_; + std::string dBInstanceStorageType_; + std::string backupSetRegion_; + std::string dBInstanceNetType_; + std::string backupSetType_; + std::string period_; + std::string restoreTime_; + std::string bakSetName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string backupSetId_; + long ownerId_; + std::string usedTime_; + std::string dBInstanceClass_; + std::string securityIPList_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string restoreType_; + std::string vPCId_; + std::string tunnelId_; + std::string zoneId_; + std::string payType_; + std::string sourceRegion_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDDRINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDdrInstanceResult.h b/rds/include/alibabacloud/rds/model/CreateDdrInstanceResult.h new file mode 100644 index 000000000..89e6d98e5 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDdrInstanceResult.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_RDS_MODEL_CREATEDDRINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDDRINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDdrInstanceResult : public ServiceResult + { + public: + + + CreateDdrInstanceResult(); + explicit CreateDdrInstanceResult(const std::string &payload); + ~CreateDdrInstanceResult(); + std::string getDBInstanceId()const; + std::string getPort()const; + std::string getOrderId()const; + std::string getConnectionString()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string port_; + std::string orderId_; + std::string connectionString_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDDRINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h index a975896b0..2dd1a6cb1 100644 --- a/rds/include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDiagnosticReportRequest : public RpcServiceRequest - { - - public: - CreateDiagnosticReportRequest(); - ~CreateDiagnosticReportRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDiagnosticReportRequest : public RpcServiceRequest + { + + public: + CreateDiagnosticReportRequest(); + ~CreateDiagnosticReportRequest(); + std::string getEndTime()const; void setEndTime(const std::string& endTime); std::string getDBInstanceId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string endTime_; std::string dBInstanceId_; std::string startTime_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDiagnosticReportResult.h b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportResult.h index 8f6cb8334..2ded80b7e 100644 --- a/rds/include/alibabacloud/rds/model/CreateDiagnosticReportResult.h +++ b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportResult.h @@ -1,51 +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_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateDiagnosticReportResult : public ServiceResult - { - public: - - - CreateDiagnosticReportResult(); - explicit CreateDiagnosticReportResult(const std::string &payload); - ~CreateDiagnosticReportResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDiagnosticReportResult : public ServiceResult + { + public: + + + CreateDiagnosticReportResult(); + explicit CreateDiagnosticReportResult(const std::string &payload); + ~CreateDiagnosticReportResult(); std::string getReportId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string reportId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h index 874c0ee56..2487817a6 100644 --- a/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskForSQLServerRequest : public RpcServiceRequest - { - - public: - CreateMigrateTaskForSQLServerRequest(); - ~CreateMigrateTaskForSQLServerRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskForSQLServerRequest : public RpcServiceRequest + { + + public: + CreateMigrateTaskForSQLServerRequest(); + ~CreateMigrateTaskForSQLServerRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getTaskType()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getOSSUrls()const; void setOSSUrls(const std::string& oSSUrls); - - private: + + private: long resourceOwnerId_; std::string taskType_; std::string dBName_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string accessKeyId_; std::string oSSUrls_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h index 4eac709d7..5c360c518 100644 --- a/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskForSQLServerResult : public ServiceResult - { - public: - - - CreateMigrateTaskForSQLServerResult(); - explicit CreateMigrateTaskForSQLServerResult(const std::string &payload); - ~CreateMigrateTaskForSQLServerResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskForSQLServerResult : public ServiceResult + { + public: + + + CreateMigrateTaskForSQLServerResult(); + explicit CreateMigrateTaskForSQLServerResult(const std::string &payload); + ~CreateMigrateTaskForSQLServerResult(); std::string getTaskId()const; std::string getDBInstanceId()const; std::string getTaskType()const; std::string getDBName()const; std::string getMigrateIaskId()const; std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string dBInstanceId_; std::string taskType_; std::string dBName_; std::string migrateIaskId_; std::string dBInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskRequest.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskRequest.h index 507a125e6..a5cb959ba 100644 --- a/rds/include/alibabacloud/rds/model/CreateMigrateTaskRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskRequest : public RpcServiceRequest - { - - public: - CreateMigrateTaskRequest(); - ~CreateMigrateTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskRequest : public RpcServiceRequest + { + + public: + CreateMigrateTaskRequest(); + ~CreateMigrateTaskRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getMigrateTaskId()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setBackupMode(const std::string& backupMode); std::string getCheckDBMode()const; void setCheckDBMode(const std::string& checkDBMode); - - private: + + private: long resourceOwnerId_; std::string migrateTaskId_; std::string resourceOwnerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string dBInstanceId_; std::string backupMode_; std::string checkDBMode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskResult.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskResult.h index 2c2152364..e82dc0ecf 100644 --- a/rds/include/alibabacloud/rds/model/CreateMigrateTaskResult.h +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskResult.h @@ -1,59 +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_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskResult : public ServiceResult - { - public: - - - CreateMigrateTaskResult(); - explicit CreateMigrateTaskResult(const std::string &payload); - ~CreateMigrateTaskResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskResult : public ServiceResult + { + public: + + + CreateMigrateTaskResult(); + explicit CreateMigrateTaskResult(const std::string &payload); + ~CreateMigrateTaskResult(); std::string getTaskId()const; std::string getDBInstanceId()const; std::string getMigrateTaskId()const; std::string getBackupMode()const; std::string getDBName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string dBInstanceId_; std::string migrateTaskId_; std::string backupMode_; std::string dBName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskRequest.h b/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskRequest.h index 8526f3d13..280b8e69a 100644 --- a/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateOnlineDatabaseTaskRequest : public RpcServiceRequest - { - - public: - CreateOnlineDatabaseTaskRequest(); - ~CreateOnlineDatabaseTaskRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateOnlineDatabaseTaskRequest : public RpcServiceRequest + { + + public: + CreateOnlineDatabaseTaskRequest(); + ~CreateOnlineDatabaseTaskRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getMigrateTaskId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string migrateTaskId_; std::string dBName_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string checkDBMode_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskResult.h b/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskResult.h index f1c04117d..26ca1e188 100644 --- a/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskResult.h +++ b/rds/include/alibabacloud/rds/model/CreateOnlineDatabaseTaskResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateOnlineDatabaseTaskResult : public ServiceResult - { - public: - - - CreateOnlineDatabaseTaskResult(); - explicit CreateOnlineDatabaseTaskResult(const std::string &payload); - ~CreateOnlineDatabaseTaskResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateOnlineDatabaseTaskResult : public ServiceResult + { + public: + + + CreateOnlineDatabaseTaskResult(); + explicit CreateOnlineDatabaseTaskResult(const std::string &payload); + ~CreateOnlineDatabaseTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEONLINEDATABASETASKRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h index b2765acd3..5dd95189b 100644 --- a/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateReadOnlyDBInstanceRequest : public RpcServiceRequest - { - - public: - CreateReadOnlyDBInstanceRequest(); - ~CreateReadOnlyDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateReadOnlyDBInstanceRequest : public RpcServiceRequest + { + + public: + CreateReadOnlyDBInstanceRequest(); + ~CreateReadOnlyDBInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getDBInstanceStorage()const; @@ -77,8 +77,8 @@ namespace AlibabaCloud void setPayType(const std::string& payType); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); - - private: + + private: long resourceOwnerId_; int dBInstanceStorage_; std::string resourceOwnerAccount_; @@ -100,9 +100,9 @@ namespace AlibabaCloud std::string category_; std::string payType_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h index 2ecfc516b..9e7919af9 100644 --- a/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h @@ -1,57 +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_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateReadOnlyDBInstanceResult : public ServiceResult - { - public: - - - CreateReadOnlyDBInstanceResult(); - explicit CreateReadOnlyDBInstanceResult(const std::string &payload); - ~CreateReadOnlyDBInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateReadOnlyDBInstanceResult : public ServiceResult + { + public: + + + CreateReadOnlyDBInstanceResult(); + explicit CreateReadOnlyDBInstanceResult(const std::string &payload); + ~CreateReadOnlyDBInstanceResult(); std::string getDBInstanceId()const; std::string getPort()const; std::string getOrderId()const; std::string getConnectionString()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string port_; std::string orderId_; std::string connectionString_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h index c71be3a24..c13272fd1 100644 --- a/rds/include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateTempDBInstanceRequest : public RpcServiceRequest - { - - public: - CreateTempDBInstanceRequest(); - ~CreateTempDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateTempDBInstanceRequest : public RpcServiceRequest + { + + public: + CreateTempDBInstanceRequest(); + ~CreateTempDBInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRestoreTime()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string restoreTime_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateTempDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceResult.h index c47cf33bf..7c0eb73a4 100644 --- a/rds/include/alibabacloud/rds/model/CreateTempDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceResult.h @@ -1,51 +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_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT CreateTempDBInstanceResult : public ServiceResult - { - public: - - - CreateTempDBInstanceResult(); - explicit CreateTempDBInstanceResult(const std::string &payload); - ~CreateTempDBInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateTempDBInstanceResult : public ServiceResult + { + public: + + + CreateTempDBInstanceResult(); + explicit CreateTempDBInstanceResult(const std::string &payload); + ~CreateTempDBInstanceResult(); std::string getTempDBInstanceId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string tempDBInstanceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteAccountRequest.h b/rds/include/alibabacloud/rds/model/DeleteAccountRequest.h index f06800b03..8c86c2b88 100644 --- a/rds/include/alibabacloud/rds/model/DeleteAccountRequest.h +++ b/rds/include/alibabacloud/rds/model/DeleteAccountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteAccountRequest : public RpcServiceRequest - { - - public: - DeleteAccountRequest(); - ~DeleteAccountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteAccountRequest : public RpcServiceRequest + { + + public: + DeleteAccountRequest(); + ~DeleteAccountRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteAccountResult.h b/rds/include/alibabacloud/rds/model/DeleteAccountResult.h index fe7e25a1a..e68ad79a6 100644 --- a/rds/include/alibabacloud/rds/model/DeleteAccountResult.h +++ b/rds/include/alibabacloud/rds/model/DeleteAccountResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteAccountResult : public ServiceResult - { - public: - - - DeleteAccountResult(); - explicit DeleteAccountResult(const std::string &payload); - ~DeleteAccountResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteAccountResult : public ServiceResult + { + public: + + + DeleteAccountResult(); + explicit DeleteAccountResult(const std::string &payload); + ~DeleteAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteBackupRequest.h b/rds/include/alibabacloud/rds/model/DeleteBackupRequest.h index 67fe0a664..2034c1704 100644 --- a/rds/include/alibabacloud/rds/model/DeleteBackupRequest.h +++ b/rds/include/alibabacloud/rds/model/DeleteBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteBackupRequest : public RpcServiceRequest - { - - public: - DeleteBackupRequest(); - ~DeleteBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteBackupRequest : public RpcServiceRequest + { + + public: + DeleteBackupRequest(); + ~DeleteBackupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string backupId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteBackupResult.h b/rds/include/alibabacloud/rds/model/DeleteBackupResult.h index 241c5a499..9f6704204 100644 --- a/rds/include/alibabacloud/rds/model/DeleteBackupResult.h +++ b/rds/include/alibabacloud/rds/model/DeleteBackupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteBackupResult : public ServiceResult - { - public: - - - DeleteBackupResult(); - explicit DeleteBackupResult(const std::string &payload); - ~DeleteBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteBackupResult : public ServiceResult + { + public: + + + DeleteBackupResult(); + explicit DeleteBackupResult(const std::string &payload); + ~DeleteBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/DeleteDBInstanceRequest.h index 0da8517bd..c5d3d1833 100644 --- a/rds/include/alibabacloud/rds/model/DeleteDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/DeleteDBInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteDBInstanceRequest : public RpcServiceRequest - { - - public: - DeleteDBInstanceRequest(); - ~DeleteDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDBInstanceRequest : public RpcServiceRequest + { + + public: + DeleteDBInstanceRequest(); + ~DeleteDBInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDBInstanceResult.h b/rds/include/alibabacloud/rds/model/DeleteDBInstanceResult.h index ae1c11e32..56b124ecd 100644 --- a/rds/include/alibabacloud/rds/model/DeleteDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/DeleteDBInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteDBInstanceResult : public ServiceResult - { - public: - - - DeleteDBInstanceResult(); - explicit DeleteDBInstanceResult(const std::string &payload); - ~DeleteDBInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDBInstanceResult : public ServiceResult + { + public: + + + DeleteDBInstanceResult(); + explicit DeleteDBInstanceResult(const std::string &payload); + ~DeleteDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDatabaseRequest.h b/rds/include/alibabacloud/rds/model/DeleteDatabaseRequest.h index 8c344ba5b..94ef1cb08 100644 --- a/rds/include/alibabacloud/rds/model/DeleteDatabaseRequest.h +++ b/rds/include/alibabacloud/rds/model/DeleteDatabaseRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteDatabaseRequest : public RpcServiceRequest - { - - public: - DeleteDatabaseRequest(); - ~DeleteDatabaseRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDatabaseRequest : public RpcServiceRequest + { + + public: + DeleteDatabaseRequest(); + ~DeleteDatabaseRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDatabaseResult.h b/rds/include/alibabacloud/rds/model/DeleteDatabaseResult.h index f66364934..edd9877d8 100644 --- a/rds/include/alibabacloud/rds/model/DeleteDatabaseResult.h +++ b/rds/include/alibabacloud/rds/model/DeleteDatabaseResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DeleteDatabaseResult : public ServiceResult - { - public: - - - DeleteDatabaseResult(); - explicit DeleteDatabaseResult(const std::string &payload); - ~DeleteDatabaseResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDatabaseResult : public ServiceResult + { + public: + + + DeleteDatabaseResult(); + explicit DeleteDatabaseResult(const std::string &payload); + ~DeleteDatabaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h index 814300635..99af1b8cd 100644 --- a/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h +++ b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescibeImportsFromDatabaseRequest : public RpcServiceRequest - { - - public: - DescibeImportsFromDatabaseRequest(); - ~DescibeImportsFromDatabaseRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescibeImportsFromDatabaseRequest : public RpcServiceRequest + { + + public: + DescibeImportsFromDatabaseRequest(); + ~DescibeImportsFromDatabaseRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getDBInstanceId()const; void setDBInstanceId(const std::string& dBInstanceId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string engine_; int pageSize_; std::string dBInstanceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h index aead1cfe2..ce55ea06f 100644 --- a/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h +++ b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescibeImportsFromDatabaseResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescibeImportsFromDatabaseResult : public ServiceResult + { + public: struct ImportResultFromDB { std::string importDataStatus; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string importDataType; int importId; }; - - - DescibeImportsFromDatabaseResult(); - explicit DescibeImportsFromDatabaseResult(const std::string &payload); - ~DescibeImportsFromDatabaseResult(); + + + DescibeImportsFromDatabaseResult(); + explicit DescibeImportsFromDatabaseResult(const std::string &payload); + ~DescibeImportsFromDatabaseResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAccountsRequest.h b/rds/include/alibabacloud/rds/model/DescribeAccountsRequest.h index 2837548c4..19f9a79b5 100644 --- a/rds/include/alibabacloud/rds/model/DescribeAccountsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeAccountsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeAccountsRequest : public RpcServiceRequest - { - - public: - DescribeAccountsRequest(); - ~DescribeAccountsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAccountsResult.h b/rds/include/alibabacloud/rds/model/DescribeAccountsResult.h index 73ed8c06e..9df95a99d 100644 --- a/rds/include/alibabacloud/rds/model/DescribeAccountsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeAccountsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeAccountsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAccountsResult : public ServiceResult + { + public: struct DBInstanceAccount { struct DatabasePrivilege @@ -48,20 +48,20 @@ namespace AlibabaCloud std::vector databasePrivileges; std::string accountName; }; - - - DescribeAccountsResult(); - explicit DescribeAccountsResult(const std::string &payload); - ~DescribeAccountsResult(); + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); std::vector getAccounts()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector accounts_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionRequest.h b/rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionRequest.h new file mode 100644 index 000000000..49d557914 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionRequest.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_RDS_MODEL_DESCRIBEAVAILABLECROSSREGIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLECROSSREGIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableCrossRegionRequest : public RpcServiceRequest + { + + public: + DescribeAvailableCrossRegionRequest(); + ~DescribeAvailableCrossRegionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLECROSSREGIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionResult.h b/rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionResult.h new file mode 100644 index 000000000..4959f9516 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableCrossRegionResult.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_RDS_MODEL_DESCRIBEAVAILABLECROSSREGIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLECROSSREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableCrossRegionResult : public ServiceResult + { + public: + + + DescribeAvailableCrossRegionResult(); + explicit DescribeAvailableCrossRegionResult(const std::string &payload); + ~DescribeAvailableCrossRegionResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLECROSSREGIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassRequest.h b/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassRequest.h index 122e402e4..3cacd0c25 100644 --- a/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeAvailableInstanceClassRequest : public RpcServiceRequest - { - - public: - DescribeAvailableInstanceClassRequest(); - ~DescribeAvailableInstanceClassRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableInstanceClassRequest : public RpcServiceRequest + { + + public: + DescribeAvailableInstanceClassRequest(); + ~DescribeAvailableInstanceClassRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setInstanceChargeType(const std::string& instanceChargeType); std::string getOrderType()const; void setOrderType(const std::string& orderType); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string dBInstanceId_; std::string instanceChargeType_; std::string orderType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassResult.h b/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassResult.h index f15091591..39da487ca 100644 --- a/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableInstanceClassResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeAvailableInstanceClassResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableInstanceClassResult : public ServiceResult + { + public: struct AvailableZone { struct SupportedEngines @@ -65,20 +65,20 @@ namespace AlibabaCloud std::string regionId; std::vector supportedEngine; }; - - - DescribeAvailableInstanceClassResult(); - explicit DescribeAvailableInstanceClassResult(const std::string &payload); - ~DescribeAvailableInstanceClassResult(); + + + DescribeAvailableInstanceClassResult(); + explicit DescribeAvailableInstanceClassResult(const std::string &payload); + ~DescribeAvailableInstanceClassResult(); std::vector getAvailableZones()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector availableZones_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEINSTANCECLASSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeRequest.h b/rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeRequest.h new file mode 100644 index 000000000..1f079e768 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeRequest.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_RDS_MODEL_DESCRIBEAVAILABLERECOVERYTIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERECOVERYTIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableRecoveryTimeRequest : public RpcServiceRequest + { + + public: + DescribeAvailableRecoveryTimeRequest(); + ~DescribeAvailableRecoveryTimeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getCrossBackupId()const; + void setCrossBackupId(int crossBackupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int crossBackupId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERECOVERYTIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeResult.h b/rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeResult.h new file mode 100644 index 000000000..63d823d0a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeResult.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_RDS_MODEL_DESCRIBEAVAILABLERECOVERYTIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERECOVERYTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableRecoveryTimeResult : public ServiceResult + { + public: + + + DescribeAvailableRecoveryTimeResult(); + explicit DescribeAvailableRecoveryTimeResult(const std::string &payload); + ~DescribeAvailableRecoveryTimeResult(); + std::string getRecoveryEndTime()const; + std::string getRecoveryBeginTime()const; + std::string getDBInstanceId()const; + std::string getRegionId()const; + int getCrossBackupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string recoveryEndTime_; + std::string recoveryBeginTime_; + std::string dBInstanceId_; + std::string regionId_; + int crossBackupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERECOVERYTIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableResourceRequest.h b/rds/include/alibabacloud/rds/model/DescribeAvailableResourceRequest.h index 8540a4332..b89f1824e 100644 --- a/rds/include/alibabacloud/rds/model/DescribeAvailableResourceRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableResourceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest - { - - public: - DescribeAvailableResourceRequest(); - ~DescribeAvailableResourceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest + { + + public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,6 +47,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getEngine()const; @@ -59,23 +61,24 @@ namespace AlibabaCloud void setInstanceChargeType(const std::string& instanceChargeType); std::string getOrderType()const; void setOrderType(const std::string& orderType); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string engineVersion_; long ownerId_; std::string accessKeyId_; + std::string dBInstanceClass_; std::string regionId_; std::string engine_; std::string zoneId_; std::string dBInstanceId_; std::string instanceChargeType_; std::string orderType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAvailableResourceResult.h b/rds/include/alibabacloud/rds/model/DescribeAvailableResourceResult.h index 5d9f6ef17..bbefaf828 100644 --- a/rds/include/alibabacloud/rds/model/DescribeAvailableResourceResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeAvailableResourceResult.h @@ -1,84 +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. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeAvailableResourceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAvailableResourceResult : public ServiceResult + { + public: struct AvailableZone { - struct SupportedEngines + struct SupportedEngine { - struct SupportedEngineVersions + struct SupportedEngineVersion { - struct SupportedCategorys + struct SupportedCategory { - struct SupportedStorageTypes + struct SupportedStorageType { - struct AvailableResources + struct AvailableResource { + struct DBInstanceStorageRange + { + int min; + int max; + int step; + }; std::string dBInstanceClass; + DBInstanceStorageRange dBInstanceStorageRange; std::string storageRange; }; std::string storageType; - std::vector availableResource; + std::vector availableResources; }; std::string category; - std::vector supportedStorageType; + std::vector supportedStorageTypes; }; + std::vector supportedCategorys; std::string version; - std::vector supportedCategory; }; - std::vector supportedEngineVersion; + std::vector supportedEngineVersions; std::string engine; }; std::string status; std::string networkTypes; std::string zoneId; + std::vector supportedEngines; std::string regionId; - std::vector supportedEngine; }; - - - DescribeAvailableResourceResult(); - explicit DescribeAvailableResourceResult(const std::string &payload); - ~DescribeAvailableResourceResult(); + + + DescribeAvailableResourceResult(); + explicit DescribeAvailableResourceResult(const std::string &payload); + ~DescribeAvailableResourceResult(); std::vector getAvailableZones()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector availableZones_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseRequest.h index 3384415fb..8abc001d8 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupDatabaseRequest : public RpcServiceRequest - { - - public: - DescribeBackupDatabaseRequest(); - ~DescribeBackupDatabaseRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupDatabaseRequest : public RpcServiceRequest + { + + public: + DescribeBackupDatabaseRequest(); + ~DescribeBackupDatabaseRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string backupId_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseResult.h index bb024abcf..78a1a4a23 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupDatabaseResult.h @@ -1,51 +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_RDS_MODEL_DESCRIBEBACKUPDATABASERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupDatabaseResult : public ServiceResult - { - public: - - - DescribeBackupDatabaseResult(); - explicit DescribeBackupDatabaseResult(const std::string &payload); - ~DescribeBackupDatabaseResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupDatabaseResult : public ServiceResult + { + public: + + + DescribeBackupDatabaseResult(); + explicit DescribeBackupDatabaseResult(const std::string &payload); + ~DescribeBackupDatabaseResult(); std::string getDatabaseNames()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string databaseNames_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h index 3c49e7808..1001c8f20 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest - { - - public: - DescribeBackupPolicyRequest(); - ~DescribeBackupPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest + { + + public: + DescribeBackupPolicyRequest(); + ~DescribeBackupPolicyRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getBackupPolicyMode()const; void setBackupPolicyMode(const std::string& backupPolicyMode); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string accessKeyId_; std::string backupPolicyMode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h index 770df52c8..fda25e73d 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupPolicyResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupPolicyResult : public ServiceResult + { + public: struct DuplicationLocation { struct Location @@ -42,11 +42,11 @@ namespace AlibabaCloud std::string sotrage; Location location; }; - - - DescribeBackupPolicyResult(); - explicit DescribeBackupPolicyResult(const std::string &payload); - ~DescribeBackupPolicyResult(); + + + DescribeBackupPolicyResult(); + explicit DescribeBackupPolicyResult(const std::string &payload); + ~DescribeBackupPolicyResult(); std::string getDuplication()const; std::string getPreferredBackupTime()const; int getLocalLogRetentionHours()const; @@ -62,10 +62,10 @@ namespace AlibabaCloud std::string getLocalLogRetentionSpace()const; int getBackupRetentionPeriod()const; std::string getDuplicationContent()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string duplication_; std::string preferredBackupTime_; int localLogRetentionHours_; @@ -81,9 +81,9 @@ namespace AlibabaCloud std::string localLogRetentionSpace_; int backupRetentionPeriod_; std::string duplicationContent_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupTasksRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupTasksRequest.h index 36fd31a00..56cd4f610 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupTasksRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupTasksRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupTasksRequest : public RpcServiceRequest - { - - public: - DescribeBackupTasksRequest(); - ~DescribeBackupTasksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupTasksRequest : public RpcServiceRequest + { + + public: + DescribeBackupTasksRequest(); + ~DescribeBackupTasksRequest(); + std::string getBackupJobId()const; void setBackupJobId(const std::string& backupJobId); long getResourceOwnerId()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setBackupJobStatus(const std::string& backupJobStatus); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string backupJobId_; long resourceOwnerId_; std::string flag_; @@ -70,9 +70,9 @@ namespace AlibabaCloud long ownerId_; std::string backupJobStatus_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupTasksResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupTasksResult.h index 73c9b1282..dbf39a47a 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupTasksResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupTasksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupTasksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupTasksResult : public ServiceResult + { + public: struct BackupJob { std::string jobMode; @@ -42,20 +42,20 @@ namespace AlibabaCloud std::string backupJobId; std::string backupStatus; }; - - - DescribeBackupTasksResult(); - explicit DescribeBackupTasksResult(const std::string &payload); - ~DescribeBackupTasksResult(); + + + DescribeBackupTasksResult(); + explicit DescribeBackupTasksResult(const std::string &payload); + ~DescribeBackupTasksResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupsRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupsRequest.h index 4664873d7..c943128ef 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupsRequest : public RpcServiceRequest - { - - public: - DescribeBackupsRequest(); - ~DescribeBackupsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupsRequest : public RpcServiceRequest + { + + public: + DescribeBackupsRequest(); + ~DescribeBackupsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getBackupMode()const; void setBackupMode(const std::string& backupMode); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string backupId_; @@ -79,9 +79,9 @@ namespace AlibabaCloud int pageSize_; std::string dBInstanceId_; std::string backupMode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupsResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupsResult.h index 0222599e2..a295f7a43 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBackupsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupsResult : public ServiceResult + { + public: struct Backup { std::string backupMethod; @@ -55,28 +55,28 @@ namespace AlibabaCloud std::string backupLocation; long totalBackupSize; }; - - - DescribeBackupsResult(); - explicit DescribeBackupsResult(const std::string &payload); - ~DescribeBackupsResult(); + + + DescribeBackupsResult(); + explicit DescribeBackupsResult(const std::string &payload); + ~DescribeBackupsResult(); std::string getTotalRecordCount()const; std::string getPageRecordCount()const; std::string getPageNumber()const; std::vector getItems()const; long getTotalBackupSize()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string totalRecordCount_; std::string pageRecordCount_; std::string pageNumber_; std::vector items_; long totalBackupSize_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h index 6e6993506..ac773c629 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBinlogFilesRequest : public RpcServiceRequest - { - - public: - DescribeBinlogFilesRequest(); - ~DescribeBinlogFilesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBinlogFilesRequest : public RpcServiceRequest + { + + public: + DescribeBinlogFilesRequest(); + ~DescribeBinlogFilesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBinlogFilesResult.h b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesResult.h index 83b4596cc..27f49dd45 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBinlogFilesResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeBinlogFilesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBinlogFilesResult : public ServiceResult + { + public: struct BinLogFile { std::string downloadLink; @@ -44,28 +44,28 @@ namespace AlibabaCloud std::string logFileName; long fileSize; }; - - - DescribeBinlogFilesResult(); - explicit DescribeBinlogFilesResult(const std::string &payload); - ~DescribeBinlogFilesResult(); + + + DescribeBinlogFilesResult(); + explicit DescribeBinlogFilesResult(const std::string &payload); + ~DescribeBinlogFilesResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; long getTotalFileSize()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; long totalFileSize_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h index cb51f6ff5..ec05123a8 100644 --- a/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeCharacterSetNameRequest : public RpcServiceRequest - { - - public: - DescribeCharacterSetNameRequest(); - ~DescribeCharacterSetNameRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCharacterSetNameRequest : public RpcServiceRequest + { + + public: + DescribeCharacterSetNameRequest(); + ~DescribeCharacterSetNameRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string engine_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h index a4eacef0c..933aca142 100644 --- a/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeCharacterSetNameResult : public ServiceResult - { - public: - - - DescribeCharacterSetNameResult(); - explicit DescribeCharacterSetNameResult(const std::string &payload); - ~DescribeCharacterSetNameResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCharacterSetNameResult : public ServiceResult + { + public: + + + DescribeCharacterSetNameResult(); + explicit DescribeCharacterSetNameResult(const std::string &payload); + ~DescribeCharacterSetNameResult(); std::vector getCharacterSetNameItems()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector characterSetNameItems_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceRequest.h b/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceRequest.h index babdff1c5..e120b28cf 100644 --- a/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeCloudDbExpertServiceRequest : public RpcServiceRequest - { - - public: - DescribeCloudDbExpertServiceRequest(); - ~DescribeCloudDbExpertServiceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCloudDbExpertServiceRequest : public RpcServiceRequest + { + + public: + DescribeCloudDbExpertServiceRequest(); + ~DescribeCloudDbExpertServiceRequest(); + std::string getServiceRequestParam()const; void setServiceRequestParam(const std::string& serviceRequestParam); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setServiceRequestType(const std::string& serviceRequestType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string serviceRequestParam_; long resourceOwnerId_; std::string securityToken_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string serviceRequestType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceResult.h b/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceResult.h index dec9b5ec8..1979d798c 100644 --- a/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeCloudDbExpertServiceResult.h @@ -1,55 +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_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeCloudDbExpertServiceResult : public ServiceResult - { - public: - - - DescribeCloudDbExpertServiceResult(); - explicit DescribeCloudDbExpertServiceResult(const std::string &payload); - ~DescribeCloudDbExpertServiceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCloudDbExpertServiceResult : public ServiceResult + { + public: + + + DescribeCloudDbExpertServiceResult(); + explicit DescribeCloudDbExpertServiceResult(const std::string &payload); + ~DescribeCloudDbExpertServiceResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string data_; std::string code_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECLOUDDBEXPERTSERVICERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesRequest.h b/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesRequest.h index 75d255194..b3f61757b 100644 --- a/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeCollationTimeZonesRequest : public RpcServiceRequest - { - - public: - DescribeCollationTimeZonesRequest(); - ~DescribeCollationTimeZonesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCollationTimeZonesRequest : public RpcServiceRequest + { + + public: + DescribeCollationTimeZonesRequest(); + ~DescribeCollationTimeZonesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesResult.h b/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesResult.h index d58a56fdc..67995b82d 100644 --- a/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeCollationTimeZonesResult.h @@ -1,57 +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_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeCollationTimeZonesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCollationTimeZonesResult : public ServiceResult + { + public: struct CollationTimeZone { std::string timeZone; std::string description; std::string standardTimeOffset; }; - - - DescribeCollationTimeZonesResult(); - explicit DescribeCollationTimeZonesResult(const std::string &payload); - ~DescribeCollationTimeZonesResult(); + + + DescribeCollationTimeZonesResult(); + explicit DescribeCollationTimeZonesResult(const std::string &payload); + ~DescribeCollationTimeZonesResult(); std::vector getCollationTimeZones()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector collationTimeZones_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECOLLATIONTIMEZONESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceRequest.h new file mode 100644 index 000000000..d2711d389 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceRequest.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_RDS_MODEL_DESCRIBECROSSREGIONBACKUPDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCrossRegionBackupDBInstanceRequest : public RpcServiceRequest + { + + public: + DescribeCrossRegionBackupDBInstanceRequest(); + ~DescribeCrossRegionBackupDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceResult.h b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceResult.h new file mode 100644 index 000000000..b9bf070e1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupDBInstanceResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCrossRegionBackupDBInstanceResult : public ServiceResult + { + public: + struct Item + { + std::string logBackupEnabled; + std::string engineVersion; + std::string backupEnabledTime; + std::string dBInstanceStatus; + std::string logBackupEnabledTime; + std::string crossBackupRegion; + int retentType; + std::string lockMode; + std::string relServiceId; + int retention; + std::string backupEnabled; + std::string crossBackupType; + std::string dBInstanceId; + std::string dBInstanceStatusDesc; + std::string relService; + std::string dBInstanceDescription; + std::string engine; + }; + + + DescribeCrossRegionBackupDBInstanceResult(); + explicit DescribeCrossRegionBackupDBInstanceResult(const std::string &payload); + ~DescribeCrossRegionBackupDBInstanceResult(); + int getItemsNumbers()const; + int getPageSize()const; + int getPageNumber()const; + int getTotalRecords()const; + std::vector getItems()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int itemsNumbers_; + int pageSize_; + int pageNumber_; + int totalRecords_; + std::vector items_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsRequest.h b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsRequest.h new file mode 100644 index 000000000..3efffdc58 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCrossRegionBackupsRequest : public RpcServiceRequest + { + + public: + DescribeCrossRegionBackupsRequest(); + ~DescribeCrossRegionBackupsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCrossBackupRegion()const; + void setCrossBackupRegion(const std::string& crossBackupRegion); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getCrossBackupId()const; + void setCrossBackupId(int crossBackupId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string crossBackupRegion_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::string dBInstanceId_; + int crossBackupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsResult.h b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsResult.h new file mode 100644 index 000000000..a77d2bbdc --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCrossRegionBackupsResult.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_RDS_MODEL_DESCRIBECROSSREGIONBACKUPSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCrossRegionBackupsResult : public ServiceResult + { + public: + struct Item + { + std::string backupMethod; + std::string engineVersion; + std::string category; + int instanceId; + std::string crossBackupRegion; + std::string crossBackupDownloadLink; + std::string crossBackupSetLocation; + int backupSetStatus; + std::string dBInstanceStorageType; + int backupSetScale; + std::string crossBackupSetFile; + long crossBackupSetSize; + std::vector restoreRegions; + std::string backupEndTime; + std::string backupStartTime; + std::string consistentTime; + std::string backupType; + int crossBackupId; + std::string engine; + }; + + + DescribeCrossRegionBackupsResult(); + explicit DescribeCrossRegionBackupsResult(const std::string &payload); + ~DescribeCrossRegionBackupsResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::string getEndTime()const; + int getPageNumber()const; + std::string getStartTime()const; + std::vector getItems()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string endTime_; + int pageNumber_; + std::string startTime_; + std::vector items_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONBACKUPSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesRequest.h b/rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesRequest.h new file mode 100644 index 000000000..d319c9116 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesRequest.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_RDS_MODEL_DESCRIBECROSSREGIONLOGBACKUPFILESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONLOGBACKUPFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCrossRegionLogBackupFilesRequest : public RpcServiceRequest + { + + public: + DescribeCrossRegionLogBackupFilesRequest(); + ~DescribeCrossRegionLogBackupFilesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCrossBackupRegion()const; + void setCrossBackupRegion(const std::string& crossBackupRegion); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + std::string crossBackupRegion_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONLOGBACKUPFILESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesResult.h b/rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesResult.h new file mode 100644 index 000000000..0ed0f99d1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCrossRegionLogBackupFilesResult.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_RDS_MODEL_DESCRIBECROSSREGIONLOGBACKUPFILESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONLOGBACKUPFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCrossRegionLogBackupFilesResult : public ServiceResult + { + public: + struct Item + { + int crossLogBackupId; + std::string logBeginTime; + int instanceId; + std::string crossBackupRegion; + std::string linkExpiredTime; + std::string logEndTime; + std::string crossIntranetDownloadLink; + long crossLogBackupSize; + std::string logFileName; + std::string crossDownloadLink; + }; + + + DescribeCrossRegionLogBackupFilesResult(); + explicit DescribeCrossRegionLogBackupFilesResult(const std::string &payload); + ~DescribeCrossRegionLogBackupFilesResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::string getEndTime()const; + std::string getDBInstanceId()const; + int getPageNumber()const; + std::string getStartTime()const; + std::vector getItems()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string endTime_; + std::string dBInstanceId_; + int pageNumber_; + std::string startTime_; + std::vector items_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECROSSREGIONLOGBACKUPFILESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h index 8f203a08f..a921a47c3 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceAttributeRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceAttributeRequest(); - ~DescribeDBInstanceAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceAttributeRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceAttributeRequest(); + ~DescribeDBInstanceAttributeRequest(); + std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string resourceGroupId_; long resourceOwnerId_; std::string expired_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h index ff99b9871..8beaee8b8 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceAttributeResult : public ServiceResult + { + public: struct DBInstanceAttribute { struct Extra @@ -61,6 +61,7 @@ namespace AlibabaCloud std::string tempUpgradeRecoveryMaxIOPS; std::string replicateId; std::string dBInstanceId; + std::string autoUpgradeMinorVersion; int dBInstanceStorage; std::string lockReason; std::string availabilityValue; @@ -120,20 +121,20 @@ namespace AlibabaCloud bool canTempUpgrade; std::string regionId; }; - - - DescribeDBInstanceAttributeResult(); - explicit DescribeDBInstanceAttributeResult(const std::string &payload); - ~DescribeDBInstanceAttributeResult(); + + + DescribeDBInstanceAttributeResult(); + explicit DescribeDBInstanceAttributeResult(const std::string &payload); + ~DescribeDBInstanceAttributeResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h index c54b6293c..9a511ac5e 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceByTagsRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceByTagsRequest(); - ~DescribeDBInstanceByTagsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceByTagsRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceByTagsRequest(); + ~DescribeDBInstanceByTagsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getProxyId()const; void setProxyId(const std::string& proxyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -70,9 +70,9 @@ namespace AlibabaCloud int pageNumber_; std::string accessKeyId_; std::string proxyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h index b969674fa..fdb3452ec 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceByTagsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceByTagsResult : public ServiceResult + { + public: struct DBInstanceTag { struct Tag @@ -42,26 +42,26 @@ namespace AlibabaCloud std::string dBInstanceId; std::vector tags; }; - - - DescribeDBInstanceByTagsResult(); - explicit DescribeDBInstanceByTagsResult(const std::string &payload); - ~DescribeDBInstanceByTagsResult(); + + + DescribeDBInstanceByTagsResult(); + explicit DescribeDBInstanceByTagsResult(const std::string &payload); + ~DescribeDBInstanceByTagsResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h index f5814369f..192f9dac8 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceHAConfigRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceHAConfigRequest(); - ~DescribeDBInstanceHAConfigRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceHAConfigRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceHAConfigRequest(); + ~DescribeDBInstanceHAConfigRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h index a446ec1a7..cafa11b78 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceHAConfigResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceHAConfigResult : public ServiceResult + { + public: struct NodeInfo { std::string dataSyncTime; @@ -42,26 +42,26 @@ namespace AlibabaCloud std::string syncStatus; std::string regionId; }; - - - DescribeDBInstanceHAConfigResult(); - explicit DescribeDBInstanceHAConfigResult(const std::string &payload); - ~DescribeDBInstanceHAConfigResult(); + + + DescribeDBInstanceHAConfigResult(); + explicit DescribeDBInstanceHAConfigResult(const std::string &payload); + ~DescribeDBInstanceHAConfigResult(); std::string getDBInstanceId()const; std::string getHAMode()const; std::vector getHostInstanceInfos()const; std::string getSyncMode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string hAMode_; std::vector hostInstanceInfos_; std::string syncMode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h index 3821c53ad..e9cb640c3 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIPArrayListRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceIPArrayListRequest(); - ~DescribeDBInstanceIPArrayListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIPArrayListRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceIPArrayListRequest(); + ~DescribeDBInstanceIPArrayListRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getWhitelistNetworkType()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string whitelistNetworkType_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h index a36246a1a..1764e9d65 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIPArrayListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIPArrayListResult : public ServiceResult + { + public: struct DBInstanceIPArray { std::string dBInstanceIPArrayAttribute; @@ -40,20 +40,20 @@ namespace AlibabaCloud std::string whitelistNetworkType; std::string dBInstanceIPArrayName; }; - - - DescribeDBInstanceIPArrayListResult(); - explicit DescribeDBInstanceIPArrayListResult(const std::string &payload); - ~DescribeDBInstanceIPArrayListResult(); + + + DescribeDBInstanceIPArrayListResult(); + explicit DescribeDBInstanceIPArrayListResult(const std::string &payload); + ~DescribeDBInstanceIPArrayListResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameRequest.h new file mode 100644 index 000000000..6b740fce8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameRequest.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_RDS_MODEL_DESCRIBEDBINSTANCEIPHOSTNAMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPHOSTNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIpHostnameRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceIpHostnameRequest(); + ~DescribeDBInstanceIpHostnameRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPHOSTNAMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameResult.h new file mode 100644 index 000000000..6861625f4 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIpHostnameResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPHOSTNAMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPHOSTNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIpHostnameResult : public ServiceResult + { + public: + + + DescribeDBInstanceIpHostnameResult(); + explicit DescribeDBInstanceIpHostnameResult(const std::string &payload); + ~DescribeDBInstanceIpHostnameResult(); + std::string getDBInstanceId()const; + std::string getIpHostnameInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string ipHostnameInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPHOSTNAMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h index a67d3e641..ce18ed94f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceMonitorRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceMonitorRequest(); - ~DescribeDBInstanceMonitorRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceMonitorRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceMonitorRequest(); + ~DescribeDBInstanceMonitorRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h index 9f0717769..4ea18092b 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h @@ -1,51 +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_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceMonitorResult : public ServiceResult - { - public: - - - DescribeDBInstanceMonitorResult(); - explicit DescribeDBInstanceMonitorResult(const std::string &payload); - ~DescribeDBInstanceMonitorResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceMonitorResult : public ServiceResult + { + public: + + + DescribeDBInstanceMonitorResult(); + explicit DescribeDBInstanceMonitorResult(const std::string &payload); + ~DescribeDBInstanceMonitorResult(); std::string getPeriod()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string period_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h index 7eb2adec3..7b9d5746e 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetInfoRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceNetInfoRequest(); - ~DescribeDBInstanceNetInfoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetInfoRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceNetInfoRequest(); + ~DescribeDBInstanceNetInfoRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getFlag()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string flag_; std::string dBInstanceNetRWSplitType_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h index feab65d68..563874248 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetInfoResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetInfoResult : public ServiceResult + { + public: struct DBInstanceNetInfo { struct SecurityIPGroup @@ -60,24 +60,24 @@ namespace AlibabaCloud std::string iPAddress; std::string distributionType; }; - - - DescribeDBInstanceNetInfoResult(); - explicit DescribeDBInstanceNetInfoResult(const std::string &payload); - ~DescribeDBInstanceNetInfoResult(); + + + DescribeDBInstanceNetInfoResult(); + explicit DescribeDBInstanceNetInfoResult(const std::string &payload); + ~DescribeDBInstanceNetInfoResult(); std::vector getDBInstanceNetInfos()const; std::string getSecurityIPMode()const; std::string getInstanceNetworkType()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector dBInstanceNetInfos_; std::string securityIPMode_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h index 3b62bc365..a421976ab 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancePerformanceRequest : public RpcServiceRequest - { - - public: - DescribeDBInstancePerformanceRequest(); - ~DescribeDBInstancePerformanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancePerformanceRequest : public RpcServiceRequest + { + + public: + DescribeDBInstancePerformanceRequest(); + ~DescribeDBInstancePerformanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setKey(const std::string& key); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string key_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h index 4d56333e1..cccbb70ff 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancePerformanceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancePerformanceResult : public ServiceResult + { + public: struct PerformanceKey { struct PerformanceValue @@ -44,28 +44,28 @@ namespace AlibabaCloud std::string unit; std::string key; }; - - - DescribeDBInstancePerformanceResult(); - explicit DescribeDBInstancePerformanceResult(const std::string &payload); - ~DescribeDBInstancePerformanceResult(); + + + DescribeDBInstancePerformanceResult(); + explicit DescribeDBInstancePerformanceResult(const std::string &payload); + ~DescribeDBInstancePerformanceResult(); std::vector getPerformanceKeys()const; std::string getEndTime()const; std::string getDBInstanceId()const; std::string getStartTime()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector performanceKeys_; std::string endTime_; std::string dBInstanceId_; std::string startTime_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationRequest.h index 54707d3b3..7010d2381 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceProxyConfigurationRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceProxyConfigurationRequest(); - ~DescribeDBInstanceProxyConfigurationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceProxyConfigurationRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceProxyConfigurationRequest(); + ~DescribeDBInstanceProxyConfigurationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationResult.h index df31bfe70..53c1c20c8 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceProxyConfigurationResult.h @@ -1,55 +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_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceProxyConfigurationResult : public ServiceResult - { - public: - - - DescribeDBInstanceProxyConfigurationResult(); - explicit DescribeDBInstanceProxyConfigurationResult(const std::string &payload); - ~DescribeDBInstanceProxyConfigurationResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceProxyConfigurationResult : public ServiceResult + { + public: + + + DescribeDBInstanceProxyConfigurationResult(); + explicit DescribeDBInstanceProxyConfigurationResult(const std::string &payload); + ~DescribeDBInstanceProxyConfigurationResult(); std::string getPersistentConnectionsConfiguration()const; std::string getAttacksProtectionConfiguration()const; std::string getTransparentSwitchConfiguration()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string persistentConnectionsConfiguration_; std::string attacksProtectionConfiguration_; std::string transparentSwitchConfiguration_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPROXYCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h index 6d3a5b625..fafb8c0a4 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceSSLRequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceSSLRequest(); - ~DescribeDBInstanceSSLRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceSSLRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceSSLRequest(); + ~DescribeDBInstanceSSLRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h index 09794038f..89c90b6cf 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h @@ -1,57 +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_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceSSLResult : public ServiceResult - { - public: - - - DescribeDBInstanceSSLResult(); - explicit DescribeDBInstanceSSLResult(const std::string &payload); - ~DescribeDBInstanceSSLResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceSSLResult : public ServiceResult + { + public: + + + DescribeDBInstanceSSLResult(); + explicit DescribeDBInstanceSSLResult(const std::string &payload); + ~DescribeDBInstanceSSLResult(); std::string getSSLExpireTime()const; std::string getRequireUpdateReason()const; std::string getConnectionString()const; std::string getRequireUpdate()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string sSLExpireTime_; std::string requireUpdateReason_; std::string connectionString_; std::string requireUpdate_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h index 5219b77c3..627c1d373 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceTDERequest : public RpcServiceRequest - { - - public: - DescribeDBInstanceTDERequest(); - ~DescribeDBInstanceTDERequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceTDERequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceTDERequest(); + ~DescribeDBInstanceTDERequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h index 0b2128cfc..99281af08 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h @@ -1,58 +1,58 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceTDEResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceTDEResult : public ServiceResult + { + public: struct Database { std::string tDEStatus; std::string dBName; }; - - - DescribeDBInstanceTDEResult(); - explicit DescribeDBInstanceTDEResult(const std::string &payload); - ~DescribeDBInstanceTDEResult(); + + + DescribeDBInstanceTDEResult(); + explicit DescribeDBInstanceTDEResult(const std::string &payload); + ~DescribeDBInstanceTDEResult(); std::string getTDEStatus()const; std::vector getDatabases()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string tDEStatus_; std::vector databases_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h index 8396d0fbb..a21ddbd1a 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesAsCsvRequest : public RpcServiceRequest - { - - public: - DescribeDBInstancesAsCsvRequest(); - ~DescribeDBInstancesAsCsvRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesAsCsvRequest : public RpcServiceRequest + { + + public: + DescribeDBInstancesAsCsvRequest(); + ~DescribeDBInstancesAsCsvRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h index 141318367..0f8243a0c 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesAsCsvResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesAsCsvResult : public ServiceResult + { + public: struct DBInstanceAttribute { long dBInstanceMemory; @@ -76,20 +76,20 @@ namespace AlibabaCloud std::string expireTime; int dBMaxQuantity; }; - - - DescribeDBInstancesAsCsvResult(); - explicit DescribeDBInstancesAsCsvResult(const std::string &payload); - ~DescribeDBInstancesAsCsvResult(); + + + DescribeDBInstancesAsCsvResult(); + explicit DescribeDBInstancesAsCsvResult(const std::string &payload); + ~DescribeDBInstancesAsCsvResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h index f3b87c631..b4fa62602 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByExpireTimeRequest : public RpcServiceRequest - { - - public: - DescribeDBInstancesByExpireTimeRequest(); - ~DescribeDBInstancesByExpireTimeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByExpireTimeRequest : public RpcServiceRequest + { + + public: + DescribeDBInstancesByExpireTimeRequest(); + ~DescribeDBInstancesByExpireTimeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setExpirePeriod(int expirePeriod); std::string getProxyId()const; void setProxyId(const std::string& proxyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud int pageSize_; int expirePeriod_; std::string proxyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h index 62c321d7d..813584ed4 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByExpireTimeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByExpireTimeResult : public ServiceResult + { + public: struct DBInstanceExpireTime { std::string dBInstanceStatus; @@ -40,26 +40,26 @@ namespace AlibabaCloud std::string expireTime; std::string dBInstanceDescription; }; - - - DescribeDBInstancesByExpireTimeResult(); - explicit DescribeDBInstancesByExpireTimeResult(const std::string &payload); - ~DescribeDBInstancesByExpireTimeResult(); + + + DescribeDBInstancesByExpireTimeResult(); + explicit DescribeDBInstancesByExpireTimeResult(const std::string &payload); + ~DescribeDBInstancesByExpireTimeResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h index ef45847e7..58a367b2c 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByPerformanceRequest : public RpcServiceRequest - { - - public: - DescribeDBInstancesByPerformanceRequest(); - ~DescribeDBInstancesByPerformanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByPerformanceRequest : public RpcServiceRequest + { + + public: + DescribeDBInstancesByPerformanceRequest(); + ~DescribeDBInstancesByPerformanceRequest(); + std::string getTag4value()const; void setTag4value(const std::string& tag4value); long getResourceOwnerId()const; @@ -83,8 +83,8 @@ namespace AlibabaCloud void setTag2value(const std::string& tag2value); std::string getTag4key()const; void setTag4key(const std::string& tag4key); - - private: + + private: std::string tag4value_; long resourceOwnerId_; std::string tag2key_; @@ -109,9 +109,9 @@ namespace AlibabaCloud std::string sortMethod_; std::string tag2value_; std::string tag4key_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h index 1058bec63..ceb5e8181 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByPerformanceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByPerformanceResult : public ServiceResult + { + public: struct DBInstancePerformance { std::string iOPSUsage; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string sessionUsage; std::string dBInstanceDescription; }; - - - DescribeDBInstancesByPerformanceResult(); - explicit DescribeDBInstancesByPerformanceResult(const std::string &payload); - ~DescribeDBInstancesByPerformanceResult(); + + + DescribeDBInstancesByPerformanceResult(); + explicit DescribeDBInstancesByPerformanceResult(const std::string &payload); + ~DescribeDBInstancesByPerformanceResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesRequest.h index c49a1f9bd..70f793790 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesRequest : public RpcServiceRequest - { - - public: - DescribeDBInstancesRequest(); - ~DescribeDBInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesRequest : public RpcServiceRequest + { + + public: + DescribeDBInstancesRequest(); + ~DescribeDBInstancesRequest(); + std::string getConnectionMode()const; void setConnectionMode(const std::string& connectionMode); std::string getTag4value()const; @@ -107,8 +107,8 @@ namespace AlibabaCloud void setPayType(const std::string& payType); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); - - private: + + private: std::string connectionMode_; std::string tag4value_; long resourceOwnerId_; @@ -145,9 +145,9 @@ namespace AlibabaCloud std::string tag4key_; std::string payType_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesResult.h index 802ffedfb..83f24e359 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDBInstancesResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesResult : public ServiceResult + { + public: struct DBInstance { struct ReadOnlyDBInstanceId @@ -48,6 +48,7 @@ namespace AlibabaCloud std::string instanceNetworkType; std::string replicateId; std::string dBInstanceId; + std::string autoUpgradeMinorVersion; std::vector readOnlyDBInstanceIds; std::string lockReason; std::string dBInstanceDescription; @@ -70,26 +71,26 @@ namespace AlibabaCloud std::string regionId; std::string expireTime; }; - - - DescribeDBInstancesResult(); - explicit DescribeDBInstancesResult(const std::string &payload); - ~DescribeDBInstancesResult(); + + + DescribeDBInstancesResult(); + explicit DescribeDBInstancesResult(const std::string &payload); + ~DescribeDBInstancesResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerRequest.h new file mode 100644 index 000000000..05cfbba32 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerRequest.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_RDS_MODEL_DESCRIBEDTCSECURITYIPHOSTSFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDTCSECURITYIPHOSTSFORSQLSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDTCSecurityIpHostsForSQLServerRequest : public RpcServiceRequest + { + + public: + DescribeDTCSecurityIpHostsForSQLServerRequest(); + ~DescribeDTCSecurityIpHostsForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDTCSECURITYIPHOSTSFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerResult.h b/rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerResult.h new file mode 100644 index 000000000..baba8e13a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerResult.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_RDS_MODEL_DESCRIBEDTCSECURITYIPHOSTSFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDTCSECURITYIPHOSTSFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDTCSecurityIpHostsForSQLServerResult : public ServiceResult + { + public: + struct WhiteListGroups + { + std::string whitelistGroupName; + std::string securityIpHosts; + }; + + + DescribeDTCSecurityIpHostsForSQLServerResult(); + explicit DescribeDTCSecurityIpHostsForSQLServerResult(const std::string &payload); + ~DescribeDTCSecurityIpHostsForSQLServerResult(); + std::string getDBInstanceId()const; + std::string getIpHostPairNum()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string ipHostPairNum_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDTCSECURITYIPHOSTSFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDatabasesRequest.h b/rds/include/alibabacloud/rds/model/DescribeDatabasesRequest.h index 312bcf5dd..481dc7530 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDatabasesRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDatabasesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDatabasesRequest : public RpcServiceRequest - { - - public: - DescribeDatabasesRequest(); - ~DescribeDatabasesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDatabasesRequest : public RpcServiceRequest + { + + public: + DescribeDatabasesRequest(); + ~DescribeDatabasesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDatabasesResult.h b/rds/include/alibabacloud/rds/model/DescribeDatabasesResult.h index 1b2781c1e..d2fc4b45c 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDatabasesResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDatabasesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDatabasesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDatabasesResult : public ServiceResult + { + public: struct Database { struct AccountPrivilegeInfo @@ -48,20 +48,20 @@ namespace AlibabaCloud std::vector accounts; std::string engine; }; - - - DescribeDatabasesResult(); - explicit DescribeDatabasesResult(const std::string &payload); - ~DescribeDatabasesResult(); + + + DescribeDatabasesResult(); + explicit DescribeDatabasesResult(const std::string &payload); + ~DescribeDatabasesResult(); std::vector getDatabases()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector databases_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h index 4f9a56bb5..616792e03 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h @@ -1,51 +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_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDiagnosticReportListRequest : public RpcServiceRequest - { - - public: - DescribeDiagnosticReportListRequest(); - ~DescribeDiagnosticReportListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDiagnosticReportListRequest : public RpcServiceRequest + { + + public: + DescribeDiagnosticReportListRequest(); + ~DescribeDiagnosticReportListRequest(); + std::string getDBInstanceId()const; void setDBInstanceId(const std::string& dBInstanceId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string dBInstanceId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h index a1fa4b5d5..8c417c4a5 100644 --- a/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeDiagnosticReportListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDiagnosticReportListResult : public ServiceResult + { + public: struct Report { int score; @@ -40,20 +40,20 @@ namespace AlibabaCloud std::string startTime; std::string downloadURL; }; - - - DescribeDiagnosticReportListResult(); - explicit DescribeDiagnosticReportListResult(const std::string &payload); - ~DescribeDiagnosticReportListResult(); + + + DescribeDiagnosticReportListResult(); + explicit DescribeDiagnosticReportListResult(const std::string &payload); + ~DescribeDiagnosticReportListResult(); std::vector getReportList()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector reportList_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeErrorLogsRequest.h b/rds/include/alibabacloud/rds/model/DescribeErrorLogsRequest.h index d446fbf8b..222a02dfd 100644 --- a/rds/include/alibabacloud/rds/model/DescribeErrorLogsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeErrorLogsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeErrorLogsRequest : public RpcServiceRequest - { - - public: - DescribeErrorLogsRequest(); - ~DescribeErrorLogsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeErrorLogsRequest : public RpcServiceRequest + { + + public: + DescribeErrorLogsRequest(); + ~DescribeErrorLogsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeErrorLogsResult.h b/rds/include/alibabacloud/rds/model/DescribeErrorLogsResult.h index 3cf3d4071..01c2ac03d 100644 --- a/rds/include/alibabacloud/rds/model/DescribeErrorLogsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeErrorLogsResult.h @@ -1,62 +1,62 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeErrorLogsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeErrorLogsResult : public ServiceResult + { + public: struct ErrorLog { std::string errorInfo; std::string createTime; }; - - - DescribeErrorLogsResult(); - explicit DescribeErrorLogsResult(const std::string &payload); - ~DescribeErrorLogsResult(); + + + DescribeErrorLogsResult(); + explicit DescribeErrorLogsResult(const std::string &payload); + ~DescribeErrorLogsResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h index 17c0cce49..bf752c266 100644 --- a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewalAttributeRequest : public RpcServiceRequest - { - - public: - DescribeInstanceAutoRenewalAttributeRequest(); - ~DescribeInstanceAutoRenewalAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewalAttributeRequest : public RpcServiceRequest + { + + public: + DescribeInstanceAutoRenewalAttributeRequest(); + ~DescribeInstanceAutoRenewalAttributeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getProxyId()const; void setProxyId(const std::string& proxyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -70,9 +70,9 @@ namespace AlibabaCloud int pageNumber_; std::string accessKeyId_; std::string proxyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h index 57fc88c1c..1521825d4 100644 --- a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewalAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewalAttributeResult : public ServiceResult + { + public: struct Item { std::string status; @@ -40,26 +40,26 @@ namespace AlibabaCloud int duration; std::string regionId; }; - - - DescribeInstanceAutoRenewalAttributeResult(); - explicit DescribeInstanceAutoRenewalAttributeResult(const std::string &payload); - ~DescribeInstanceAutoRenewalAttributeResult(); + + + DescribeInstanceAutoRenewalAttributeResult(); + explicit DescribeInstanceAutoRenewalAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewalAttributeResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyRequest.h b/rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyRequest.h new file mode 100644 index 000000000..f36923caf --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyRequest.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_RDS_MODEL_DESCRIBEINSTANCECROSSBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCECROSSBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceCrossBackupPolicyRequest : public RpcServiceRequest + { + + public: + DescribeInstanceCrossBackupPolicyRequest(); + ~DescribeInstanceCrossBackupPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCECROSSBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyResult.h b/rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyResult.h new file mode 100644 index 000000000..6c6652c6d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCECROSSBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCECROSSBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceCrossBackupPolicyResult : public ServiceResult + { + public: + + + DescribeInstanceCrossBackupPolicyResult(); + explicit DescribeInstanceCrossBackupPolicyResult(const std::string &payload); + ~DescribeInstanceCrossBackupPolicyResult(); + std::string getLogBackupEnabled()const; + std::string getEngineVersion()const; + std::string getBackupEnabledTime()const; + std::string getStorageType()const; + std::string getDBInstanceStatus()const; + std::string getLogBackupEnabledTime()const; + std::string getCrossBackupRegion()const; + int getRetentType()const; + std::string getLockMode()const; + std::string getRelServiceId()const; + int getRetention()const; + std::string getStorageOwner()const; + std::string getBackupEnabled()const; + std::string getCrossBackupType()const; + std::string getEndpoint()const; + std::string getDBInstanceId()const; + std::string getRegionId()const; + std::string getDBInstanceStatusDesc()const; + std::string getRelService()const; + std::string getDBInstanceDescription()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::string logBackupEnabled_; + std::string engineVersion_; + std::string backupEnabledTime_; + std::string storageType_; + std::string dBInstanceStatus_; + std::string logBackupEnabledTime_; + std::string crossBackupRegion_; + int retentType_; + std::string lockMode_; + std::string relServiceId_; + int retention_; + std::string storageOwner_; + std::string backupEnabled_; + std::string crossBackupType_; + std::string endpoint_; + std::string dBInstanceId_; + std::string regionId_; + std::string dBInstanceStatusDesc_; + std::string relService_; + std::string dBInstanceDescription_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCECROSSBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoRequest.h b/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoRequest.h index ebe1834f4..436967f79 100644 --- a/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFOREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeInstanceVpcMigrateInfoRequest : public RpcServiceRequest - { - - public: - DescribeInstanceVpcMigrateInfoRequest(); - ~DescribeInstanceVpcMigrateInfoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFOREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceVpcMigrateInfoRequest : public RpcServiceRequest + { + + public: + DescribeInstanceVpcMigrateInfoRequest(); + ~DescribeInstanceVpcMigrateInfoRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFOREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoResult.h b/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoResult.h index e1e9bc8bd..a67ea821f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceVpcMigrateInfoResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFORESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeInstanceVpcMigrateInfoResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFORESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceVpcMigrateInfoResult : public ServiceResult + { + public: struct DBInstanceMigrateInfo { std::string targetIPAddress; @@ -42,20 +42,20 @@ namespace AlibabaCloud std::string targetRegionId; std::string targetVpcInstanceId; }; - - - DescribeInstanceVpcMigrateInfoResult(); - explicit DescribeInstanceVpcMigrateInfoResult(const std::string &payload); - ~DescribeInstanceVpcMigrateInfoResult(); + + + DescribeInstanceVpcMigrateInfoResult(); + explicit DescribeInstanceVpcMigrateInfoResult(const std::string &payload); + ~DescribeInstanceVpcMigrateInfoResult(); std::vector getDBInstanceMigrateInfos()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector dBInstanceMigrateInfos_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEVPCMIGRATEINFORESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesRequest.h b/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesRequest.h index 38ecfa9a4..6760116ca 100644 --- a/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeLogBackupFilesRequest : public RpcServiceRequest - { - - public: - DescribeLogBackupFilesRequest(); - ~DescribeLogBackupFilesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeLogBackupFilesRequest : public RpcServiceRequest + { + + public: + DescribeLogBackupFilesRequest(); + ~DescribeLogBackupFilesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesResult.h b/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesResult.h index 3d8aa74fa..077378d3a 100644 --- a/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeLogBackupFilesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeLogBackupFilesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeLogBackupFilesResult : public ServiceResult + { + public: struct BinLogFile { std::string downloadLink; @@ -41,28 +41,28 @@ namespace AlibabaCloud std::string intranetDownloadLink; long fileSize; }; - - - DescribeLogBackupFilesResult(); - explicit DescribeLogBackupFilesResult(const std::string &payload); - ~DescribeLogBackupFilesResult(); + + + DescribeLogBackupFilesResult(); + explicit DescribeLogBackupFilesResult(const std::string &payload); + ~DescribeLogBackupFilesResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; long getTotalFileSize()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; long totalFileSize_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBELOGBACKUPFILESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMetaListRequest.h b/rds/include/alibabacloud/rds/model/DescribeMetaListRequest.h index 73ae20f38..cf54acc65 100644 --- a/rds/include/alibabacloud/rds/model/DescribeMetaListRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeMetaListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeMetaListRequest : public RpcServiceRequest - { - - public: - DescribeMetaListRequest(); - ~DescribeMetaListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMetaListRequest : public RpcServiceRequest + { + + public: + DescribeMetaListRequest(); + ~DescribeMetaListRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRestoreTime()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getPageIndex()const; void setPageIndex(const std::string& pageIndex); - - private: + + private: long resourceOwnerId_; std::string restoreTime_; std::string resourceOwnerAccount_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string pageSize_; std::string dBInstanceId_; std::string pageIndex_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMetaListResult.h b/rds/include/alibabacloud/rds/model/DescribeMetaListResult.h index eaada68f0..e0b221b0e 100644 --- a/rds/include/alibabacloud/rds/model/DescribeMetaListResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeMetaListResult.h @@ -1,67 +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_RDS_MODEL_DESCRIBEMETALISTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeMetaListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMetaListResult : public ServiceResult + { + public: struct Meta { std::string size; std::string database; std::string tables; }; - - - DescribeMetaListResult(); - explicit DescribeMetaListResult(const std::string &payload); - ~DescribeMetaListResult(); + + + DescribeMetaListResult(); + explicit DescribeMetaListResult(const std::string &payload); + ~DescribeMetaListResult(); int getTotalRecordCount()const; int getTotalPageCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int totalPageCount_; int pageRecordCount_; int pageNumber_; std::vector items_; std::string dBInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMETALISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h index be1ac0c77..f6a234c8a 100644 --- a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksForSQLServerRequest : public RpcServiceRequest - { - - public: - DescribeMigrateTasksForSQLServerRequest(); - ~DescribeMigrateTasksForSQLServerRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksForSQLServerRequest : public RpcServiceRequest + { + + public: + DescribeMigrateTasksForSQLServerRequest(); + ~DescribeMigrateTasksForSQLServerRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; int pageSize_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h index 0ec6b4940..5744eff82 100644 --- a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksForSQLServerResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksForSQLServerResult : public ServiceResult + { + public: struct MigrateTask { std::string status; @@ -43,11 +43,11 @@ namespace AlibabaCloud std::string dBName; std::string migrateIaskId; }; - - - DescribeMigrateTasksForSQLServerResult(); - explicit DescribeMigrateTasksForSQLServerResult(const std::string &payload); - ~DescribeMigrateTasksForSQLServerResult(); + + + DescribeMigrateTasksForSQLServerResult(); + explicit DescribeMigrateTasksForSQLServerResult(const std::string &payload); + ~DescribeMigrateTasksForSQLServerResult(); int getTotalRecordCount()const; int getPageRecordCount()const; std::string getEndTime()const; @@ -56,10 +56,10 @@ namespace AlibabaCloud std::string getStartTime()const; std::vector getItems()const; std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; std::string endTime_; @@ -68,9 +68,9 @@ namespace AlibabaCloud std::string startTime_; std::vector items_; std::string dBInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h index f43fdb672..3e3cc1f2c 100644 --- a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksRequest : public RpcServiceRequest - { - - public: - DescribeMigrateTasksRequest(); - ~DescribeMigrateTasksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksRequest : public RpcServiceRequest + { + + public: + DescribeMigrateTasksRequest(); + ~DescribeMigrateTasksRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; int pageSize_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksResult.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksResult.h index df1e775ce..47a26ea87 100644 --- a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksResult : public ServiceResult + { + public: struct MigrateTask { std::string status; @@ -43,28 +43,28 @@ namespace AlibabaCloud std::string isDBReplaced; std::string dBName; }; - - - DescribeMigrateTasksResult(); - explicit DescribeMigrateTasksResult(const std::string &payload); - ~DescribeMigrateTasksResult(); + + + DescribeMigrateTasksResult(); + explicit DescribeMigrateTasksResult(const std::string &payload); + ~DescribeMigrateTasksResult(); int getTotalRecordCount()const; int getPageRecordCount()const; std::string getDBInstanceId()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; std::string dBInstanceId_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h index e77b3704f..eae6a6cee 100644 --- a/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeModifyParameterLogRequest : public RpcServiceRequest - { - - public: - DescribeModifyParameterLogRequest(); - ~DescribeModifyParameterLogRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeModifyParameterLogRequest : public RpcServiceRequest + { + + public: + DescribeModifyParameterLogRequest(); + ~DescribeModifyParameterLogRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h index de36ebaa4..2402048c3 100644 --- a/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeModifyParameterLogResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeModifyParameterLogResult : public ServiceResult + { + public: struct ParameterChangeLog { std::string status; @@ -40,11 +40,11 @@ namespace AlibabaCloud std::string oldParameterValue; std::string parameterName; }; - - - DescribeModifyParameterLogResult(); - explicit DescribeModifyParameterLogResult(const std::string &payload); - ~DescribeModifyParameterLogResult(); + + + DescribeModifyParameterLogResult(); + explicit DescribeModifyParameterLogResult(const std::string &payload); + ~DescribeModifyParameterLogResult(); int getTotalRecordCount()const; std::string getEngineVersion()const; int getPageRecordCount()const; @@ -52,10 +52,10 @@ namespace AlibabaCloud int getPageNumber()const; std::vector getItems()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; std::string engineVersion_; int pageRecordCount_; @@ -63,9 +63,9 @@ namespace AlibabaCloud int pageNumber_; std::vector items_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h index fa95786b5..0466c0743 100644 --- a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsForSQLServerRequest : public RpcServiceRequest - { - - public: - DescribeOssDownloadsForSQLServerRequest(); - ~DescribeOssDownloadsForSQLServerRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsForSQLServerRequest : public RpcServiceRequest + { + + public: + DescribeOssDownloadsForSQLServerRequest(); + ~DescribeOssDownloadsForSQLServerRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getMigrateTaskId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string migrateTaskId_; std::string resourceOwnerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h index cc982658a..b44635b6f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsForSQLServerResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsForSQLServerResult : public ServiceResult + { + public: struct OssDownload { std::string status; @@ -43,24 +43,24 @@ namespace AlibabaCloud std::string bakType; std::string fileSize; }; - - - DescribeOssDownloadsForSQLServerResult(); - explicit DescribeOssDownloadsForSQLServerResult(const std::string &payload); - ~DescribeOssDownloadsForSQLServerResult(); + + + DescribeOssDownloadsForSQLServerResult(); + explicit DescribeOssDownloadsForSQLServerResult(const std::string &payload); + ~DescribeOssDownloadsForSQLServerResult(); std::vector getItems()const; std::string getMigrateIaskId()const; std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; std::string migrateIaskId_; std::string dBInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h index 0dc6ccbb8..4a3280c31 100644 --- a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsRequest : public RpcServiceRequest - { - - public: - DescribeOssDownloadsRequest(); - ~DescribeOssDownloadsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsRequest : public RpcServiceRequest + { + + public: + DescribeOssDownloadsRequest(); + ~DescribeOssDownloadsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getMigrateTaskId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string migrateTaskId_; std::string resourceOwnerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsResult.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsResult.h index d9def49a8..d3399660f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsResult : public ServiceResult + { + public: struct OssDownload { std::string status; @@ -43,24 +43,24 @@ namespace AlibabaCloud std::string isAvailable; std::string fileSize; }; - - - DescribeOssDownloadsResult(); - explicit DescribeOssDownloadsResult(const std::string &payload); - ~DescribeOssDownloadsResult(); + + + DescribeOssDownloadsResult(); + explicit DescribeOssDownloadsResult(const std::string &payload); + ~DescribeOssDownloadsResult(); std::string getDBInstanceId()const; std::string getMigrateTaskId()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string migrateTaskId_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h index f8b36f109..7578a7540 100644 --- a/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeParameterTemplatesRequest : public RpcServiceRequest - { - - public: - DescribeParameterTemplatesRequest(); - ~DescribeParameterTemplatesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeParameterTemplatesRequest : public RpcServiceRequest + { + + public: + DescribeParameterTemplatesRequest(); + ~DescribeParameterTemplatesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setCategory(const std::string& category); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string category_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h index 026198365..d0932ef3c 100644 --- a/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeParameterTemplatesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeParameterTemplatesResult : public ServiceResult + { + public: struct TemplateRecord { std::string forceModify; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string parameterName; std::string parameterDescription; }; - - - DescribeParameterTemplatesResult(); - explicit DescribeParameterTemplatesResult(const std::string &payload); - ~DescribeParameterTemplatesResult(); + + + DescribeParameterTemplatesResult(); + explicit DescribeParameterTemplatesResult(const std::string &payload); + ~DescribeParameterTemplatesResult(); std::string getParameterCount()const; std::vector getParameters()const; std::string getEngineVersion()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string parameterCount_; std::vector parameters_; std::string engineVersion_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeParametersRequest.h b/rds/include/alibabacloud/rds/model/DescribeParametersRequest.h index 19da92ef1..5c5a5e670 100644 --- a/rds/include/alibabacloud/rds/model/DescribeParametersRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeParametersRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeParametersRequest : public RpcServiceRequest - { - - public: - DescribeParametersRequest(); - ~DescribeParametersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeParametersRequest : public RpcServiceRequest + { + + public: + DescribeParametersRequest(); + ~DescribeParametersRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeParametersResult.h b/rds/include/alibabacloud/rds/model/DescribeParametersResult.h index 80604df9e..e7529845e 100644 --- a/rds/include/alibabacloud/rds/model/DescribeParametersResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeParametersResult.h @@ -1,63 +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_RDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeParametersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeParametersResult : public ServiceResult + { + public: struct DBInstanceParameter { std::string parameterValue; std::string parameterName; std::string parameterDescription; }; - - - DescribeParametersResult(); - explicit DescribeParametersResult(const std::string &payload); - ~DescribeParametersResult(); + + + DescribeParametersResult(); + explicit DescribeParametersResult(const std::string &payload); + ~DescribeParametersResult(); std::vector getRunningParameters()const; std::string getEngineVersion()const; std::vector getConfigParameters()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector runningParameters_; std::string engineVersion_; std::vector configParameters_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribePriceRequest.h b/rds/include/alibabacloud/rds/model/DescribePriceRequest.h index a4ae1bccd..ac6520684 100644 --- a/rds/include/alibabacloud/rds/model/DescribePriceRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribePriceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribePriceRequest : public RpcServiceRequest - { - - public: - DescribePriceRequest(); - ~DescribePriceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribePriceRequest : public RpcServiceRequest + { + + public: + DescribePriceRequest(); + ~DescribePriceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getDBInstanceStorage()const; @@ -73,8 +73,8 @@ namespace AlibabaCloud void setPayType(const std::string& payType); std::string getOrderType()const; void setOrderType(const std::string& orderType); - - private: + + private: long resourceOwnerId_; int dBInstanceStorage_; int quantity_; @@ -94,9 +94,9 @@ namespace AlibabaCloud std::string timeType_; std::string payType_; std::string orderType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribePriceResult.h b/rds/include/alibabacloud/rds/model/DescribePriceResult.h index 32da2218b..355f093ba 100644 --- a/rds/include/alibabacloud/rds/model/DescribePriceResult.h +++ b/rds/include/alibabacloud/rds/model/DescribePriceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribePriceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribePriceResult : public ServiceResult + { + public: struct PriceInfo { struct ActivityInfo @@ -61,22 +61,22 @@ namespace AlibabaCloud long ruleId; std::string name; }; - - - DescribePriceResult(); - explicit DescribePriceResult(const std::string &payload); - ~DescribePriceResult(); + + + DescribePriceResult(); + explicit DescribePriceResult(const std::string &payload); + ~DescribePriceResult(); std::vector getRules()const; PriceInfo getPriceInfo()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector rules_; PriceInfo priceInfo_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportRequest.h b/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportRequest.h index 90eff60e1..299c53a6f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeProxyFunctionSupportRequest : public RpcServiceRequest - { - - public: - DescribeProxyFunctionSupportRequest(); - ~DescribeProxyFunctionSupportRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeProxyFunctionSupportRequest : public RpcServiceRequest + { + + public: + DescribeProxyFunctionSupportRequest(); + ~DescribeProxyFunctionSupportRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSecurityToken()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string securityToken_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportResult.h b/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportResult.h index 628871ded..16d537d59 100644 --- a/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeProxyFunctionSupportResult.h @@ -1,42 +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_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeProxyFunctionSupportResult : public ServiceResult - { - public: - - - DescribeProxyFunctionSupportResult(); - explicit DescribeProxyFunctionSupportResult(const std::string &payload); - ~DescribeProxyFunctionSupportResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeProxyFunctionSupportResult : public ServiceResult + { + public: + + + DescribeProxyFunctionSupportResult(); + explicit DescribeProxyFunctionSupportResult(const std::string &payload); + ~DescribeProxyFunctionSupportResult(); bool getIsRwsplitSupportReplicationLag()const; bool getIsAntiBruteFroceEnable()const; bool getIsRwsplitSupportWeight()const; @@ -44,10 +44,10 @@ namespace AlibabaCloud bool getIsProxySwitchEnable()const; bool getIsRwsplitEnable()const; bool getIsShortConnectionOptimizeEnable()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: bool isRwsplitSupportReplicationLag_; bool isAntiBruteFroceEnable_; bool isRwsplitSupportWeight_; @@ -55,9 +55,9 @@ namespace AlibabaCloud bool isProxySwitchEnable_; bool isRwsplitEnable_; bool isShortConnectionOptimizeEnable_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPROXYFUNCTIONSUPPORTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayRequest.h b/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayRequest.h index d0dea773a..4fcfbd545 100644 --- a/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeReadDBInstanceDelayRequest : public RpcServiceRequest - { - - public: - DescribeReadDBInstanceDelayRequest(); - ~DescribeReadDBInstanceDelayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReadDBInstanceDelayRequest : public RpcServiceRequest + { + + public: + DescribeReadDBInstanceDelayRequest(); + ~DescribeReadDBInstanceDelayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSecurityToken()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string securityToken_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayResult.h b/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayResult.h index 25459a108..d853bd765 100644 --- a/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeReadDBInstanceDelayResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeReadDBInstanceDelayResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReadDBInstanceDelayResult : public ServiceResult + { + public: struct ItemsItem { struct ReadonlyInstanceDelayItem @@ -50,26 +50,26 @@ namespace AlibabaCloud std::string dBInstanceId; std::vector readonlyInstanceDelay; }; - - - DescribeReadDBInstanceDelayResult(); - explicit DescribeReadDBInstanceDelayResult(const std::string &payload); - ~DescribeReadDBInstanceDelayResult(); + + + DescribeReadDBInstanceDelayResult(); + explicit DescribeReadDBInstanceDelayResult(const std::string &payload); + ~DescribeReadDBInstanceDelayResult(); std::string getDBInstanceId()const; std::string getReadDBInstanceId()const; std::vector getItems()const; int getDelayTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string readDBInstanceId_; std::vector items_; int delayTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREADDBINSTANCEDELAYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRegionsRequest.h b/rds/include/alibabacloud/rds/model/DescribeRegionsRequest.h index 728b33a2b..06f847637 100644 --- a/rds/include/alibabacloud/rds/model/DescribeRegionsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeRegionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; std::string ownerAccount_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRegionsResult.h b/rds/include/alibabacloud/rds/model/DescribeRegionsResult.h index 5e4dcd5a9..c8f985768 100644 --- a/rds/include/alibabacloud/rds/model/DescribeRegionsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeRegionsResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeRegionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRegionsResult : public ServiceResult + { + public: struct RDSRegion { std::string zoneId; std::string regionId; }; - - - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); std::vector getRegions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector regions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h index e92fe0f13..57908b8ea 100644 --- a/rds/include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeRenewalPriceRequest : public RpcServiceRequest - { - - public: - DescribeRenewalPriceRequest(); - ~DescribeRenewalPriceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRenewalPriceRequest : public RpcServiceRequest + { + + public: + DescribeRenewalPriceRequest(); + ~DescribeRenewalPriceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getQuantity()const; @@ -69,8 +69,8 @@ namespace AlibabaCloud void setBusinessInfo(const std::string& businessInfo); std::string getOrderType()const; void setOrderType(const std::string& orderType); - - private: + + private: long resourceOwnerId_; int quantity_; std::string resourceOwnerAccount_; @@ -88,9 +88,9 @@ namespace AlibabaCloud std::string payType_; std::string businessInfo_; std::string orderType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRenewalPriceResult.h b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceResult.h index 599379735..45f68a617 100644 --- a/rds/include/alibabacloud/rds/model/DescribeRenewalPriceResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeRenewalPriceResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRenewalPriceResult : public ServiceResult + { + public: struct PriceInfo { struct ActivityInfo @@ -61,22 +61,22 @@ namespace AlibabaCloud long ruleId; std::string name; }; - - - DescribeRenewalPriceResult(); - explicit DescribeRenewalPriceResult(const std::string &payload); - ~DescribeRenewalPriceResult(); + + + DescribeRenewalPriceResult(); + explicit DescribeRenewalPriceResult(const std::string &payload); + ~DescribeRenewalPriceResult(); std::vector getRules()const; PriceInfo getPriceInfo()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector rules_; PriceInfo priceInfo_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeResourceUsageRequest.h b/rds/include/alibabacloud/rds/model/DescribeResourceUsageRequest.h index 42871791d..bbf973684 100644 --- a/rds/include/alibabacloud/rds/model/DescribeResourceUsageRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeResourceUsageRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeResourceUsageRequest : public RpcServiceRequest - { - - public: - DescribeResourceUsageRequest(); - ~DescribeResourceUsageRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeResourceUsageRequest : public RpcServiceRequest + { + + public: + DescribeResourceUsageRequest(); + ~DescribeResourceUsageRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeResourceUsageResult.h b/rds/include/alibabacloud/rds/model/DescribeResourceUsageResult.h index 964b8f5f8..80612a3fa 100644 --- a/rds/include/alibabacloud/rds/model/DescribeResourceUsageResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeResourceUsageResult.h @@ -1,42 +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_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeResourceUsageResult : public ServiceResult - { - public: - - - DescribeResourceUsageResult(); - explicit DescribeResourceUsageResult(const std::string &payload); - ~DescribeResourceUsageResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeResourceUsageResult : public ServiceResult + { + public: + + + DescribeResourceUsageResult(); + explicit DescribeResourceUsageResult(const std::string &payload); + ~DescribeResourceUsageResult(); long getLogSize()const; long getBackupOssLogSize()const; std::string getDBInstanceId()const; @@ -47,10 +47,10 @@ namespace AlibabaCloud long getDiskUsed()const; std::string getEngine()const; long getColdBackupSize()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long logSize_; long backupOssLogSize_; std::string dBInstanceId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long diskUsed_; std::string engine_; long coldBackupSize_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h index 73926c321..de0858d45 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogFilesRequest : public RpcServiceRequest - { - - public: - DescribeSQLLogFilesRequest(); - ~DescribeSQLLogFilesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogFilesRequest : public RpcServiceRequest + { + + public: + DescribeSQLLogFilesRequest(); + ~DescribeSQLLogFilesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getFileName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string fileName_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h index 4e2badbf5..c24fe1041 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogFilesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogFilesResult : public ServiceResult + { + public: struct LogFile { std::string logStatus; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string fileID; std::string logEndTime; }; - - - DescribeSQLLogFilesResult(); - explicit DescribeSQLLogFilesResult(const std::string &payload); - ~DescribeSQLLogFilesResult(); + + + DescribeSQLLogFilesResult(); + explicit DescribeSQLLogFilesResult(const std::string &payload); + ~DescribeSQLLogFilesResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h index c6dad84e6..127bd18da 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogRecordsRequest : public RpcServiceRequest - { - - public: - DescribeSQLLogRecordsRequest(); - ~DescribeSQLLogRecordsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogRecordsRequest : public RpcServiceRequest + { + + public: + DescribeSQLLogRecordsRequest(); + ~DescribeSQLLogRecordsRequest(); + long getSQLId()const; void setSQLId(long sQLId); long getResourceOwnerId()const; @@ -67,8 +67,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getUser()const; void setUser(const std::string& user); - - private: + + private: long sQLId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -85,9 +85,9 @@ namespace AlibabaCloud int pageSize_; std::string dBInstanceId_; std::string user_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h index 0f941eea2..46c9bf299 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogRecordsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogRecordsResult : public ServiceResult + { + public: struct SQLRecord { std::string executeTime; @@ -43,26 +43,26 @@ namespace AlibabaCloud std::string accountName; std::string sQLText; }; - - - DescribeSQLLogRecordsResult(); - explicit DescribeSQLLogRecordsResult(const std::string &payload); - ~DescribeSQLLogRecordsResult(); + + + DescribeSQLLogRecordsResult(); + explicit DescribeSQLLogRecordsResult(const std::string &payload); + ~DescribeSQLLogRecordsResult(); long getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h index 43a3403ea..ba1e15e6f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportListRequest : public RpcServiceRequest - { - - public: - DescribeSQLLogReportListRequest(); - ~DescribeSQLLogReportListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportListRequest : public RpcServiceRequest + { + + public: + DescribeSQLLogReportListRequest(); + ~DescribeSQLLogReportListRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h index c09b8f71c..e03444f92 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportListResult : public ServiceResult + { + public: struct Item { struct LatencyTopNItem @@ -49,26 +49,26 @@ namespace AlibabaCloud std::string reportTime; std::vector latencyTopNItems; }; - - - DescribeSQLLogReportListResult(); - explicit DescribeSQLLogReportListResult(const std::string &payload); - ~DescribeSQLLogReportListResult(); + + + DescribeSQLLogReportListResult(); + explicit DescribeSQLLogReportListResult(const std::string &payload); + ~DescribeSQLLogReportListResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h index 50266711d..a9eee265d 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportsRequest : public RpcServiceRequest - { - - public: - DescribeSQLLogReportsRequest(); - ~DescribeSQLLogReportsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportsRequest : public RpcServiceRequest + { + + public: + DescribeSQLLogReportsRequest(); + ~DescribeSQLLogReportsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h index 1ac9968bf..b609d6004 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportsResult : public ServiceResult + { + public: struct Item { struct LatencyTopNItem @@ -49,26 +49,26 @@ namespace AlibabaCloud std::string reportTime; std::vector latencyTopNItems; }; - - - DescribeSQLLogReportsResult(); - explicit DescribeSQLLogReportsResult(const std::string &payload); - ~DescribeSQLLogReportsResult(); + + + DescribeSQLLogReportsResult(); + explicit DescribeSQLLogReportsResult(const std::string &payload); + ~DescribeSQLLogReportsResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLReportsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLReportsRequest.h index 7f5671136..3cca1009f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLReportsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLReportsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLReportsRequest : public RpcServiceRequest - { - - public: - DescribeSQLReportsRequest(); - ~DescribeSQLReportsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLReportsRequest : public RpcServiceRequest + { + + public: + DescribeSQLReportsRequest(); + ~DescribeSQLReportsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; int pageNumber_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLReportsResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLReportsResult.h index 4c15ebdf7..e3000269c 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSQLReportsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSQLReportsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSQLReportsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLReportsResult : public ServiceResult + { + public: struct Item { struct LatencyTopNItem @@ -49,26 +49,26 @@ namespace AlibabaCloud std::string reportTime; std::vector latencyTopNItems; }; - - - DescribeSQLReportsResult(); - explicit DescribeSQLReportsResult(const std::string &payload); - ~DescribeSQLReportsResult(); + + + DescribeSQLReportsResult(); + explicit DescribeSQLReportsResult(const std::string &payload); + ~DescribeSQLReportsResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationRequest.h b/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationRequest.h index 62c4b2d08..c50323c34 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSecurityGroupConfigurationRequest : public RpcServiceRequest - { - - public: - DescribeSecurityGroupConfigurationRequest(); - ~DescribeSecurityGroupConfigurationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSecurityGroupConfigurationRequest : public RpcServiceRequest + { + + public: + DescribeSecurityGroupConfigurationRequest(); + ~DescribeSecurityGroupConfigurationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationResult.h b/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationResult.h index 68ef37028..da90b5198 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationResult.h @@ -1,59 +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_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSecurityGroupConfigurationResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSecurityGroupConfigurationResult : public ServiceResult + { + public: struct EcsSecurityGroupRelation { std::string networkType; std::string securityGroupId; std::string regionId; }; - - - DescribeSecurityGroupConfigurationResult(); - explicit DescribeSecurityGroupConfigurationResult(const std::string &payload); - ~DescribeSecurityGroupConfigurationResult(); + + + DescribeSecurityGroupConfigurationResult(); + explicit DescribeSecurityGroupConfigurationResult(const std::string &payload); + ~DescribeSecurityGroupConfigurationResult(); std::vector getItems()const; std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; std::string dBInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESECURITYGROUPCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h index 557eeab36..23c3932ca 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest - { - - public: - DescribeSlowLogRecordsRequest(); - ~DescribeSlowLogRecordsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest + { + + public: + DescribeSlowLogRecordsRequest(); + ~DescribeSlowLogRecordsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getSQLHASH()const; void setSQLHASH(const std::string& sQLHASH); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud int pageSize_; std::string dBInstanceId_; std::string sQLHASH_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h index 3d14c7cd9..70bc40802 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogRecordsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogRecordsResult : public ServiceResult + { + public: struct SQLSlowRecord { long queryTimes; @@ -43,30 +43,30 @@ namespace AlibabaCloud std::string hostAddress; std::string sQLText; }; - - - DescribeSlowLogRecordsResult(); - explicit DescribeSlowLogRecordsResult(const std::string &payload); - ~DescribeSlowLogRecordsResult(); + + + DescribeSlowLogRecordsResult(); + explicit DescribeSlowLogRecordsResult(const std::string &payload); + ~DescribeSlowLogRecordsResult(); int getTotalRecordCount()const; int getPageRecordCount()const; std::string getDBInstanceId()const; int getPageNumber()const; std::vector getItems()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; std::string dBInstanceId_; int pageNumber_; std::vector items_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogsRequest.h index da4428ddd..33800f532 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSlowLogsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogsRequest : public RpcServiceRequest - { - - public: - DescribeSlowLogsRequest(); - ~DescribeSlowLogsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogsRequest : public RpcServiceRequest + { + + public: + DescribeSlowLogsRequest(); + ~DescribeSlowLogsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getDBInstanceId()const; void setDBInstanceId(const std::string& dBInstanceId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string dBName_; int pageSize_; std::string dBInstanceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogsResult.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogsResult.h index 65008b324..5db9134db 100644 --- a/rds/include/alibabacloud/rds/model/DescribeSlowLogsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogsResult : public ServiceResult + { + public: struct SQLSlowLog { long maxLockTime; @@ -56,11 +56,11 @@ namespace AlibabaCloud std::string dBName; long mySQLTotalExecutionTimes; }; - - - DescribeSlowLogsResult(); - explicit DescribeSlowLogsResult(const std::string &payload); - ~DescribeSlowLogsResult(); + + + DescribeSlowLogsResult(); + explicit DescribeSlowLogsResult(const std::string &payload); + ~DescribeSlowLogsResult(); int getTotalRecordCount()const; int getPageRecordCount()const; std::string getEndTime()const; @@ -69,10 +69,10 @@ namespace AlibabaCloud std::string getStartTime()const; std::vector getItems()const; std::string getEngine()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; std::string endTime_; @@ -81,9 +81,9 @@ namespace AlibabaCloud std::string startTime_; std::vector items_; std::string engine_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTagsRequest.h b/rds/include/alibabacloud/rds/model/DescribeTagsRequest.h index 023df33e3..9bde27b83 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTagsRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeTagsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTagsRequest : public RpcServiceRequest - { - - public: - DescribeTagsRequest(); - ~DescribeTagsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTagsRequest : public RpcServiceRequest + { + + public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setProxyId(const std::string& proxyId); std::string getTags()const; void setTags(const std::string& tags); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string accessKeyId_; std::string proxyId_; std::string tags_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTagsResult.h b/rds/include/alibabacloud/rds/model/DescribeTagsResult.h index a6083a855..3375d761b 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTagsResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeTagsResult.h @@ -1,57 +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_RDS_MODEL_DESCRIBETAGSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTagsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTagsResult : public ServiceResult + { + public: struct TagInfos { std::string tagKey; std::string tagValue; std::vector dBInstanceIds; }; - - - DescribeTagsResult(); - explicit DescribeTagsResult(const std::string &payload); - ~DescribeTagsResult(); + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTaskInfoRequest.h b/rds/include/alibabacloud/rds/model/DescribeTaskInfoRequest.h index c168a916a..506282b3f 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTaskInfoRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeTaskInfoRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTaskInfoRequest : public RpcServiceRequest - { - - public: - DescribeTaskInfoRequest(); - ~DescribeTaskInfoRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTaskInfoRequest : public RpcServiceRequest + { + + public: + DescribeTaskInfoRequest(); + ~DescribeTaskInfoRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setTaskId(long taskId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; long taskId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTaskInfoResult.h b/rds/include/alibabacloud/rds/model/DescribeTaskInfoResult.h index 8fbf76c77..023d206ed 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTaskInfoResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeTaskInfoResult.h @@ -1,42 +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_RDS_MODEL_DESCRIBETASKINFORESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTaskInfoResult : public ServiceResult - { - public: - - - DescribeTaskInfoResult(); - explicit DescribeTaskInfoResult(const std::string &payload); - ~DescribeTaskInfoResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFORESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTaskInfoResult : public ServiceResult + { + public: + + + DescribeTaskInfoResult(); + explicit DescribeTaskInfoResult(const std::string &payload); + ~DescribeTaskInfoResult(); std::string getExpectedFinishTime()const; std::string getStatus()const; std::string getProgress()const; @@ -49,10 +49,10 @@ namespace AlibabaCloud std::string getDBName()const; std::string getTaskErrorCode()const; std::string getTaskErrorMessage()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string expectedFinishTime_; std::string status_; std::string progress_; @@ -65,9 +65,9 @@ namespace AlibabaCloud std::string dBName_; std::string taskErrorCode_; std::string taskErrorMessage_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFORESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTasksRequest.h b/rds/include/alibabacloud/rds/model/DescribeTasksRequest.h index 678307947..e81d620c3 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTasksRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeTasksRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTasksRequest : public RpcServiceRequest - { - - public: - DescribeTasksRequest(); - ~DescribeTasksRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTasksRequest : public RpcServiceRequest + { + + public: + DescribeTasksRequest(); + ~DescribeTasksRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setTaskAction(const std::string& taskAction); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string dBInstanceId_; std::string taskAction_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTasksResult.h b/rds/include/alibabacloud/rds/model/DescribeTasksResult.h index c6a7ea9d9..e410c96ac 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTasksResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeTasksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTasksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTasksResult : public ServiceResult + { + public: struct TaskProgressInfo { std::string expectedFinishTime; @@ -46,26 +46,26 @@ namespace AlibabaCloud std::string taskErrorCode; std::string taskErrorMessage; }; - - - DescribeTasksResult(); - explicit DescribeTasksResult(const std::string &payload); - ~DescribeTasksResult(); + + + DescribeTasksResult(); + explicit DescribeTasksResult(const std::string &payload); + ~DescribeTasksResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalRecordCount_; int pageRecordCount_; int pageNumber_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTemplatesListRequest.h b/rds/include/alibabacloud/rds/model/DescribeTemplatesListRequest.h index 87dc12a95..a2bb8e5c6 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTemplatesListRequest.h +++ b/rds/include/alibabacloud/rds/model/DescribeTemplatesListRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTemplatesListRequest : public RpcServiceRequest - { - - public: - DescribeTemplatesListRequest(); - ~DescribeTemplatesListRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTemplatesListRequest : public RpcServiceRequest + { + + public: + DescribeTemplatesListRequest(); + ~DescribeTemplatesListRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -75,8 +75,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); int getMaxAvgScanRows()const; void setMaxAvgScanRows(int maxAvgScanRows); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; int minAvgConsume_; @@ -97,9 +97,9 @@ namespace AlibabaCloud std::string pagingId_; std::string dBInstanceId_; int maxAvgScanRows_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTemplatesListResult.h b/rds/include/alibabacloud/rds/model/DescribeTemplatesListResult.h index 36fc8a9f4..81a735bb3 100644 --- a/rds/include/alibabacloud/rds/model/DescribeTemplatesListResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeTemplatesListResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT DescribeTemplatesListResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTemplatesListResult : public ServiceResult + { + public: struct ItemsItem { float avgScanRows; @@ -45,11 +45,11 @@ namespace AlibabaCloud float avgUpdateRows; long totalConsume; }; - - - DescribeTemplatesListResult(); - explicit DescribeTemplatesListResult(const std::string &payload); - ~DescribeTemplatesListResult(); + + + DescribeTemplatesListResult(); + explicit DescribeTemplatesListResult(const std::string &payload); + ~DescribeTemplatesListResult(); int getMaxRecordsPerPage()const; int getItemsNumbers()const; std::string getEndTime()const; @@ -60,10 +60,10 @@ namespace AlibabaCloud int getPageNumbers()const; std::string getDBInstanceName()const; std::string getPagingID()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int maxRecordsPerPage_; int itemsNumbers_; std::string endTime_; @@ -74,9 +74,9 @@ namespace AlibabaCloud int pageNumbers_; std::string dBInstanceName_; std::string pagingID_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETEMPLATESLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowRequest.h b/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowRequest.h index 6be0c6bd6..d10d1e699 100644 --- a/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowRequest.h +++ b/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT EvaluateSupportByokShowRequest : public RpcServiceRequest - { - - public: - EvaluateSupportByokShowRequest(); - ~EvaluateSupportByokShowRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT EvaluateSupportByokShowRequest : public RpcServiceRequest + { + + public: + EvaluateSupportByokShowRequest(); + ~EvaluateSupportByokShowRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getNodeType()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setTargetRegionId(const std::string& targetRegionId); std::string getDbInstanceStorageType()const; void setDbInstanceStorageType(const std::string& dbInstanceStorageType); - - private: + + private: long resourceOwnerId_; std::string nodeType_; std::string resourceOwnerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string engine_; std::string targetRegionId_; std::string dbInstanceStorageType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowResult.h b/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowResult.h index 787a89469..f4166f0eb 100644 --- a/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowResult.h +++ b/rds/include/alibabacloud/rds/model/EvaluateSupportByokShowResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT EvaluateSupportByokShowResult : public ServiceResult - { - public: - - - EvaluateSupportByokShowResult(); - explicit EvaluateSupportByokShowResult(const std::string &payload); - ~EvaluateSupportByokShowResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT EvaluateSupportByokShowResult : public ServiceResult + { + public: + + + EvaluateSupportByokShowResult(); + explicit EvaluateSupportByokShowResult(const std::string &payload); + ~EvaluateSupportByokShowResult(); std::string getSupportByokZone()const; int getSupportByokShow()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string supportByokZone_; int supportByokShow_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_EVALUATESUPPORTBYOKSHOWRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h index 1e47dfb97..45cdc1d81 100644 --- a/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h +++ b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT GrantAccountPrivilegeRequest : public RpcServiceRequest - { - - public: - GrantAccountPrivilegeRequest(); - ~GrantAccountPrivilegeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantAccountPrivilegeRequest : public RpcServiceRequest + { + + public: + GrantAccountPrivilegeRequest(); + ~GrantAccountPrivilegeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getAccountPrivilege()const; void setAccountPrivilege(const std::string& accountPrivilege); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string dBName_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string accessKeyId_; std::string accountPrivilege_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h index b64b1c614..1afecdc46 100644 --- a/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h +++ b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT GrantAccountPrivilegeResult : public ServiceResult - { - public: - - - GrantAccountPrivilegeResult(); - explicit GrantAccountPrivilegeResult(const std::string &payload); - ~GrantAccountPrivilegeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantAccountPrivilegeResult : public ServiceResult + { + public: + + + GrantAccountPrivilegeResult(); + explicit GrantAccountPrivilegeResult(const std::string &payload); + ~GrantAccountPrivilegeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h index ffa2536c8..123ed125e 100644 --- a/rds/include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h +++ b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT GrantOperatorPermissionRequest : public RpcServiceRequest - { - - public: - GrantOperatorPermissionRequest(); - ~GrantOperatorPermissionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantOperatorPermissionRequest : public RpcServiceRequest + { + + public: + GrantOperatorPermissionRequest(); + ~GrantOperatorPermissionRequest(); + std::string getPrivileges()const; void setPrivileges(const std::string& privileges); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string privileges_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantOperatorPermissionResult.h b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionResult.h index a849e1170..29e3db30c 100644 --- a/rds/include/alibabacloud/rds/model/GrantOperatorPermissionResult.h +++ b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT GrantOperatorPermissionResult : public ServiceResult - { - public: - - - GrantOperatorPermissionResult(); - explicit GrantOperatorPermissionResult(const std::string &payload); - ~GrantOperatorPermissionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantOperatorPermissionResult : public ServiceResult + { + public: + + + GrantOperatorPermissionResult(); + explicit GrantOperatorPermissionResult(const std::string &payload); + ~GrantOperatorPermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h index d410b1829..37780d6f7 100644 --- a/rds/include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h +++ b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ImportDataForSQLServerRequest : public RpcServiceRequest - { - - public: - ImportDataForSQLServerRequest(); - ~ImportDataForSQLServerRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDataForSQLServerRequest : public RpcServiceRequest + { + + public: + ImportDataForSQLServerRequest(); + ~ImportDataForSQLServerRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getFileName()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string fileName_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDataForSQLServerResult.h b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerResult.h index 23eb4b02d..15d1d746d 100644 --- a/rds/include/alibabacloud/rds/model/ImportDataForSQLServerResult.h +++ b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerResult.h @@ -1,51 +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_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ImportDataForSQLServerResult : public ServiceResult - { - public: - - - ImportDataForSQLServerResult(); - explicit ImportDataForSQLServerResult(const std::string &payload); - ~ImportDataForSQLServerResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDataForSQLServerResult : public ServiceResult + { + public: + + + ImportDataForSQLServerResult(); + explicit ImportDataForSQLServerResult(const std::string &payload); + ~ImportDataForSQLServerResult(); int getImportID()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int importID_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h index 338b61acd..18849d6f2 100644 --- a/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h +++ b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ImportDatabaseBetweenInstancesRequest : public RpcServiceRequest - { - - public: - ImportDatabaseBetweenInstancesRequest(); - ~ImportDatabaseBetweenInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDatabaseBetweenInstancesRequest : public RpcServiceRequest + { + + public: + ImportDatabaseBetweenInstancesRequest(); + ~ImportDatabaseBetweenInstancesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSourceDBInstanceId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string sourceDBInstanceId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h index 2d29265e8..ce4f6ece2 100644 --- a/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h +++ b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h @@ -1,51 +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_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ImportDatabaseBetweenInstancesResult : public ServiceResult - { - public: - - - ImportDatabaseBetweenInstancesResult(); - explicit ImportDatabaseBetweenInstancesResult(const std::string &payload); - ~ImportDatabaseBetweenInstancesResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDatabaseBetweenInstancesResult : public ServiceResult + { + public: + + + ImportDatabaseBetweenInstancesResult(); + explicit ImportDatabaseBetweenInstancesResult(const std::string &payload); + ~ImportDatabaseBetweenInstancesResult(); std::string getImportId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string importId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeRequest.h b/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeRequest.h index 7537359ac..0e813e06f 100644 --- a/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeRequest.h +++ b/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT MigrateSecurityIPModeRequest : public RpcServiceRequest - { - - public: - MigrateSecurityIPModeRequest(); - ~MigrateSecurityIPModeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateSecurityIPModeRequest : public RpcServiceRequest + { + + public: + MigrateSecurityIPModeRequest(); + ~MigrateSecurityIPModeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeResult.h b/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeResult.h index 7fe7c5e0c..cadffdd3e 100644 --- a/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeResult.h +++ b/rds/include/alibabacloud/rds/model/MigrateSecurityIPModeResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT MigrateSecurityIPModeResult : public ServiceResult - { - public: - - - MigrateSecurityIPModeResult(); - explicit MigrateSecurityIPModeResult(const std::string &payload); - ~MigrateSecurityIPModeResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateSecurityIPModeResult : public ServiceResult + { + public: + + + MigrateSecurityIPModeResult(); + explicit MigrateSecurityIPModeResult(const std::string &payload); + ~MigrateSecurityIPModeResult(); std::string getDBInstanceId()const; std::string getSecurityIPMode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string securityIPMode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MIGRATESECURITYIPMODERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateToOtherRegionRequest.h b/rds/include/alibabacloud/rds/model/MigrateToOtherRegionRequest.h index 457e0bab6..149980425 100644 --- a/rds/include/alibabacloud/rds/model/MigrateToOtherRegionRequest.h +++ b/rds/include/alibabacloud/rds/model/MigrateToOtherRegionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT MigrateToOtherRegionRequest : public RpcServiceRequest - { - - public: - MigrateToOtherRegionRequest(); - ~MigrateToOtherRegionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateToOtherRegionRequest : public RpcServiceRequest + { + + public: + MigrateToOtherRegionRequest(); + ~MigrateToOtherRegionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setTargetRegionId(const std::string& targetRegionId); std::string getSwitchTime()const; void setSwitchTime(const std::string& switchTime); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string dBInstanceId_; std::string targetRegionId_; std::string switchTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateToOtherRegionResult.h b/rds/include/alibabacloud/rds/model/MigrateToOtherRegionResult.h index a4aef46f4..10891196e 100644 --- a/rds/include/alibabacloud/rds/model/MigrateToOtherRegionResult.h +++ b/rds/include/alibabacloud/rds/model/MigrateToOtherRegionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT MigrateToOtherRegionResult : public ServiceResult - { - public: - - - MigrateToOtherRegionResult(); - explicit MigrateToOtherRegionResult(const std::string &payload); - ~MigrateToOtherRegionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateToOtherRegionResult : public ServiceResult + { + public: + + + MigrateToOtherRegionResult(); + explicit MigrateToOtherRegionResult(const std::string &payload); + ~MigrateToOtherRegionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERREGIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h index 15a6db13c..9aa0b3c89 100644 --- a/rds/include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h +++ b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT MigrateToOtherZoneRequest : public RpcServiceRequest - { - - public: - MigrateToOtherZoneRequest(); - ~MigrateToOtherZoneRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateToOtherZoneRequest : public RpcServiceRequest + { + + public: + MigrateToOtherZoneRequest(); + ~MigrateToOtherZoneRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -61,8 +61,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getCategory()const; void setCategory(const std::string& category); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -76,9 +76,9 @@ namespace AlibabaCloud std::string zoneId_; std::string dBInstanceId_; std::string category_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateToOtherZoneResult.h b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneResult.h index bc813df23..e26fa6fb7 100644 --- a/rds/include/alibabacloud/rds/model/MigrateToOtherZoneResult.h +++ b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT MigrateToOtherZoneResult : public ServiceResult - { - public: - - - MigrateToOtherZoneResult(); - explicit MigrateToOtherZoneResult(const std::string &payload); - ~MigrateToOtherZoneResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateToOtherZoneResult : public ServiceResult + { + public: + + + MigrateToOtherZoneResult(); + explicit MigrateToOtherZoneResult(const std::string &payload); + ~MigrateToOtherZoneResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h index a25facef6..7964cc73f 100644 --- a/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyAccountDescriptionRequest(); - ~ModifyAccountDescriptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyAccountDescriptionRequest(); + ~ModifyAccountDescriptionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setAccountDescription(const std::string& accountDescription); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string accountDescription_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h index 1ded39be3..c81453aa0 100644 --- a/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyAccountDescriptionResult : public ServiceResult - { - public: - - - ModifyAccountDescriptionResult(); - explicit ModifyAccountDescriptionResult(const std::string &payload); - ~ModifyAccountDescriptionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyAccountDescriptionResult : public ServiceResult + { + public: + + + ModifyAccountDescriptionResult(); + explicit ModifyAccountDescriptionResult(const std::string &payload); + ~ModifyAccountDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h index 6dc8eac22..f80b2dd09 100644 --- a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest - { - - public: - ModifyBackupPolicyRequest(); - ~ModifyBackupPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest + { + + public: + ModifyBackupPolicyRequest(); + ~ModifyBackupPolicyRequest(); + std::string getPreferredBackupPeriod()const; void setPreferredBackupPeriod(const std::string& preferredBackupPeriod); long getResourceOwnerId()const; @@ -77,8 +77,8 @@ namespace AlibabaCloud void setEnableBackupLog(const std::string& enableBackupLog); std::string getBackupPolicyMode()const; void setBackupPolicyMode(const std::string& backupPolicyMode); - - private: + + private: std::string preferredBackupPeriod_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -100,9 +100,9 @@ namespace AlibabaCloud std::string logBackupRetentionPeriod_; std::string enableBackupLog_; std::string backupPolicyMode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyResult.h b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyResult.h index d74f51f2d..edddb0c89 100644 --- a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyBackupPolicyResult : public ServiceResult - { - public: - - - ModifyBackupPolicyResult(); - explicit ModifyBackupPolicyResult(const std::string &payload); - ~ModifyBackupPolicyResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyBackupPolicyResult : public ServiceResult + { + public: + + + ModifyBackupPolicyResult(); + explicit ModifyBackupPolicyResult(const std::string &payload); + ~ModifyBackupPolicyResult(); std::string getDBInstanceID()const; std::string getEnableBackupLog()const; int getLocalLogRetentionHours()const; std::string getLocalLogRetentionSpace()const; std::string getHighSpaceUsageProtection()const; std::string getCompressType()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceID_; std::string enableBackupLog_; int localLogRetentionHours_; std::string localLogRetentionSpace_; std::string highSpaceUsageProtection_; std::string compressType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneRequest.h b/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneRequest.h index 1f917e714..288d4559b 100644 --- a/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyCollationTimeZoneRequest : public RpcServiceRequest - { - - public: - ModifyCollationTimeZoneRequest(); - ~ModifyCollationTimeZoneRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyCollationTimeZoneRequest : public RpcServiceRequest + { + + public: + ModifyCollationTimeZoneRequest(); + ~ModifyCollationTimeZoneRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string timezone_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string collation_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneResult.h b/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneResult.h index ee8b9198e..43f807361 100644 --- a/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyCollationTimeZoneResult.h @@ -1,57 +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_RDS_MODEL_MODIFYCOLLATIONTIMEZONERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyCollationTimeZoneResult : public ServiceResult - { - public: - - - ModifyCollationTimeZoneResult(); - explicit ModifyCollationTimeZoneResult(const std::string &payload); - ~ModifyCollationTimeZoneResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyCollationTimeZoneResult : public ServiceResult + { + public: + + + ModifyCollationTimeZoneResult(); + explicit ModifyCollationTimeZoneResult(const std::string &payload); + ~ModifyCollationTimeZoneResult(); std::string getTimezone()const; std::string getTaskId()const; std::string getDBInstanceId()const; std::string getCollation()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string timezone_; std::string taskId_; std::string dBInstanceId_; std::string collation_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYCOLLATIONTIMEZONERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h index 66c24153e..5637dfb8b 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyDBDescriptionRequest(); - ~ModifyDBDescriptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyDBDescriptionRequest(); + ~ModifyDBDescriptionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBDescription_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionResult.h index 3d73e7e18..918417cfd 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBDescriptionResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBDescriptionResult : public ServiceResult - { - public: - - - ModifyDBDescriptionResult(); - explicit ModifyDBDescriptionResult(const std::string &payload); - ~ModifyDBDescriptionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBDescriptionResult : public ServiceResult + { + public: + + + ModifyDBDescriptionResult(); + explicit ModifyDBDescriptionResult(const std::string &payload); + ~ModifyDBDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.h new file mode 100644 index 000000000..3b7726d54 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.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_RDS_MODEL_MODIFYDBINSTANCEAUTOUPGRADEMINORVERSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEAUTOUPGRADEMINORVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceAutoUpgradeMinorVersionRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceAutoUpgradeMinorVersionRequest(); + ~ModifyDBInstanceAutoUpgradeMinorVersionRequest(); + + std::string getAutoUpgradeMinorVersion()const; + void setAutoUpgradeMinorVersion(const std::string& autoUpgradeMinorVersion); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string autoUpgradeMinorVersion_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEAUTOUPGRADEMINORVERSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.h new file mode 100644 index 000000000..ecf99bbf6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEAUTOUPGRADEMINORVERSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEAUTOUPGRADEMINORVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceAutoUpgradeMinorVersionResult : public ServiceResult + { + public: + + + ModifyDBInstanceAutoUpgradeMinorVersionResult(); + explicit ModifyDBInstanceAutoUpgradeMinorVersionResult(const std::string &payload); + ~ModifyDBInstanceAutoUpgradeMinorVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEAUTOUPGRADEMINORVERSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h index 43cf1baac..b34744051 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionModeRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceConnectionModeRequest(); - ~ModifyDBInstanceConnectionModeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionModeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceConnectionModeRequest(); + ~ModifyDBInstanceConnectionModeRequest(); + std::string getConnectionMode()const; void setConnectionMode(const std::string& connectionMode); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string connectionMode_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h index 83da47d67..d1e21e231 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionModeResult : public ServiceResult - { - public: - - - ModifyDBInstanceConnectionModeResult(); - explicit ModifyDBInstanceConnectionModeResult(const std::string &payload); - ~ModifyDBInstanceConnectionModeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionModeResult : public ServiceResult + { + public: + + + ModifyDBInstanceConnectionModeResult(); + explicit ModifyDBInstanceConnectionModeResult(const std::string &payload); + ~ModifyDBInstanceConnectionModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h index bce517913..2a81a8ee4 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionStringRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceConnectionStringRequest(); - ~ModifyDBInstanceConnectionStringRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionStringRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceConnectionStringRequest(); + ~ModifyDBInstanceConnectionStringRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setCurrentConnectionString(const std::string& currentConnectionString); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string currentConnectionString_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h index 34dd05c3c..72d840820 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionStringResult : public ServiceResult - { - public: - - - ModifyDBInstanceConnectionStringResult(); - explicit ModifyDBInstanceConnectionStringResult(const std::string &payload); - ~ModifyDBInstanceConnectionStringResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionStringResult : public ServiceResult + { + public: + + + ModifyDBInstanceConnectionStringResult(); + explicit ModifyDBInstanceConnectionStringResult(const std::string &payload); + ~ModifyDBInstanceConnectionStringResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h index 34e508617..6163dc0e7 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceDescriptionRequest(); - ~ModifyDBInstanceDescriptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceDescriptionRequest(); + ~ModifyDBInstanceDescriptionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceDescription_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h index 98a99c6a7..631da0589 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceDescriptionResult : public ServiceResult - { - public: - - - ModifyDBInstanceDescriptionResult(); - explicit ModifyDBInstanceDescriptionResult(const std::string &payload); - ~ModifyDBInstanceDescriptionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceDescriptionResult : public ServiceResult + { + public: + + + ModifyDBInstanceDescriptionResult(); + explicit ModifyDBInstanceDescriptionResult(const std::string &payload); + ~ModifyDBInstanceDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h index 09bf05cf1..26978af52 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceHAConfigRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceHAConfigRequest(); - ~ModifyDBInstanceHAConfigRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceHAConfigRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceHAConfigRequest(); + ~ModifyDBInstanceHAConfigRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setHAMode(const std::string& hAMode); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string hAMode_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h index e241c714f..9820a29d9 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceHAConfigResult : public ServiceResult - { - public: - - - ModifyDBInstanceHAConfigResult(); - explicit ModifyDBInstanceHAConfigResult(const std::string &payload); - ~ModifyDBInstanceHAConfigResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceHAConfigResult : public ServiceResult + { + public: + + + ModifyDBInstanceHAConfigResult(); + explicit ModifyDBInstanceHAConfigResult(const std::string &payload); + ~ModifyDBInstanceHAConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h index b190a1f6f..7f02e8797 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMaintainTimeRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceMaintainTimeRequest(); - ~ModifyDBInstanceMaintainTimeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMaintainTimeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceMaintainTimeRequest(); + ~ModifyDBInstanceMaintainTimeRequest(); + std::string getMaintainTime()const; void setMaintainTime(const std::string& maintainTime); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string maintainTime_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h index 776a093bb..a446caedc 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMaintainTimeResult : public ServiceResult - { - public: - - - ModifyDBInstanceMaintainTimeResult(); - explicit ModifyDBInstanceMaintainTimeResult(const std::string &payload); - ~ModifyDBInstanceMaintainTimeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMaintainTimeResult : public ServiceResult + { + public: + + + ModifyDBInstanceMaintainTimeResult(); + explicit ModifyDBInstanceMaintainTimeResult(const std::string &payload); + ~ModifyDBInstanceMaintainTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h index e8d5a3b5a..4a106b002 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMonitorRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceMonitorRequest(); - ~ModifyDBInstanceMonitorRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMonitorRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceMonitorRequest(); + ~ModifyDBInstanceMonitorRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getPeriod()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string period_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h index ebfccf194..c5b0b3225 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMonitorResult : public ServiceResult - { - public: - - - ModifyDBInstanceMonitorResult(); - explicit ModifyDBInstanceMonitorResult(const std::string &payload); - ~ModifyDBInstanceMonitorResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMonitorResult : public ServiceResult + { + public: + + + ModifyDBInstanceMonitorResult(); + explicit ModifyDBInstanceMonitorResult(const std::string &payload); + ~ModifyDBInstanceMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h index 82f5b4e6b..f4e97d390 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkExpireTimeRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceNetworkExpireTimeRequest(); - ~ModifyDBInstanceNetworkExpireTimeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkExpireTimeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceNetworkExpireTimeRequest(); + ~ModifyDBInstanceNetworkExpireTimeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string connectionString_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h index d30015bf7..11fb47ae2 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkExpireTimeResult : public ServiceResult - { - public: - - - ModifyDBInstanceNetworkExpireTimeResult(); - explicit ModifyDBInstanceNetworkExpireTimeResult(const std::string &payload); - ~ModifyDBInstanceNetworkExpireTimeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkExpireTimeResult : public ServiceResult + { + public: + + + ModifyDBInstanceNetworkExpireTimeResult(); + explicit ModifyDBInstanceNetworkExpireTimeResult(const std::string &payload); + ~ModifyDBInstanceNetworkExpireTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h index bd39f539f..6a4a80288 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkTypeRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceNetworkTypeRequest(); - ~ModifyDBInstanceNetworkTypeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkTypeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceNetworkTypeRequest(); + ~ModifyDBInstanceNetworkTypeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setInstanceNetworkType(const std::string& instanceNetworkType); int getReadWriteSplittingClassicExpiredDays()const; void setReadWriteSplittingClassicExpiredDays(int readWriteSplittingClassicExpiredDays); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string readWriteSplittingPrivateIpAddress_; std::string instanceNetworkType_; int readWriteSplittingClassicExpiredDays_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h index c0c8361d7..17c3b36e4 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h @@ -1,51 +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_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkTypeResult : public ServiceResult - { - public: - - - ModifyDBInstanceNetworkTypeResult(); - explicit ModifyDBInstanceNetworkTypeResult(const std::string &payload); - ~ModifyDBInstanceNetworkTypeResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkTypeResult : public ServiceResult + { + public: + + + ModifyDBInstanceNetworkTypeResult(); + explicit ModifyDBInstanceNetworkTypeResult(const std::string &payload); + ~ModifyDBInstanceNetworkTypeResult(); std::string getTaskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeRequest.h new file mode 100644 index 000000000..bd9c12871 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPAYTYPEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPAYTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstancePayTypeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstancePayTypeRequest(); + ~ModifyDBInstancePayTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getAgentId()const; + void setAgentId(const std::string& agentId); + std::string getAutoPay()const; + void setAutoPay(const std::string& autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResource()const; + void setResource(const std::string& resource); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getUsedTime()const; + void setUsedTime(int usedTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + + private: + long resourceOwnerId_; + std::string period_; + std::string agentId_; + std::string autoPay_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string resource_; + std::string ownerAccount_; + long ownerId_; + int usedTime_; + std::string accessKeyId_; + std::string dBInstanceId_; + std::string payType_; + std::string businessInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPAYTYPEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeResult.h new file mode 100644 index 000000000..27a1bc904 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstancePayTypeResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPAYTYPERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPAYTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstancePayTypeResult : public ServiceResult + { + public: + + + ModifyDBInstancePayTypeResult(); + explicit ModifyDBInstancePayTypeResult(const std::string &payload); + ~ModifyDBInstancePayTypeResult(); + std::string getDBInstanceId()const; + long getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPAYTYPERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationRequest.h index 48da496cf..3d08e8322 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceProxyConfigurationRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceProxyConfigurationRequest(); - ~ModifyDBInstanceProxyConfigurationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceProxyConfigurationRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceProxyConfigurationRequest(); + ~ModifyDBInstanceProxyConfigurationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string proxyConfigurationKey_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationResult.h index 45b278df5..ed79adead 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceProxyConfigurationResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceProxyConfigurationResult : public ServiceResult - { - public: - - - ModifyDBInstanceProxyConfigurationResult(); - explicit ModifyDBInstanceProxyConfigurationResult(const std::string &payload); - ~ModifyDBInstanceProxyConfigurationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceProxyConfigurationResult : public ServiceResult + { + public: + + + ModifyDBInstanceProxyConfigurationResult(); + explicit ModifyDBInstanceProxyConfigurationResult(const std::string &payload); + ~ModifyDBInstanceProxyConfigurationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEPROXYCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h index 5a89d0473..b29fa60e3 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSSLRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceSSLRequest(); - ~ModifyDBInstanceSSLRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSSLRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceSSLRequest(); + ~ModifyDBInstanceSSLRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string connectionString_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h index 3b5f06466..0746820af 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSSLResult : public ServiceResult - { - public: - - - ModifyDBInstanceSSLResult(); - explicit ModifyDBInstanceSSLResult(const std::string &payload); - ~ModifyDBInstanceSSLResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSSLResult : public ServiceResult + { + public: + + + ModifyDBInstanceSSLResult(); + explicit ModifyDBInstanceSSLResult(const std::string &payload); + ~ModifyDBInstanceSSLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h index 4348b5929..5fac0f186 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSpecRequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceSpecRequest(); - ~ModifyDBInstanceSpecRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSpecRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceSpecRequest(); + ~ModifyDBInstanceSpecRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getDBInstanceStorage()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setDBInstanceId(const std::string& dBInstanceId); std::string getPayType()const; void setPayType(const std::string& payType); - - private: + + private: long resourceOwnerId_; int dBInstanceStorage_; std::string resourceOwnerAccount_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string effectiveTime_; std::string dBInstanceId_; std::string payType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h index cb5618d10..cded36803 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSpecResult : public ServiceResult - { - public: - - - ModifyDBInstanceSpecResult(); - explicit ModifyDBInstanceSpecResult(const std::string &payload); - ~ModifyDBInstanceSpecResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSpecResult : public ServiceResult + { + public: + + + ModifyDBInstanceSpecResult(); + explicit ModifyDBInstanceSpecResult(const std::string &payload); + ~ModifyDBInstanceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h index a6c1c0dd0..216b0dd0a 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceTDERequest : public RpcServiceRequest - { - - public: - ModifyDBInstanceTDERequest(); - ~ModifyDBInstanceTDERequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceTDERequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceTDERequest(); + ~ModifyDBInstanceTDERequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getDBName()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setTDEStatus(const std::string& tDEStatus); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string dBName_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string tDEStatus_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h index e006e9ba8..02e883a05 100644 --- a/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceTDEResult : public ServiceResult - { - public: - - - ModifyDBInstanceTDEResult(); - explicit ModifyDBInstanceTDEResult(const std::string &payload); - ~ModifyDBInstanceTDEResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceTDEResult : public ServiceResult + { + public: + + + ModifyDBInstanceTDEResult(); + explicit ModifyDBInstanceTDEResult(const std::string &payload); + ~ModifyDBInstanceTDEResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerRequest.h new file mode 100644 index 000000000..391d7f66b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerRequest.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_RDS_MODEL_MODIFYDTCSECURITYIPHOSTSFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDTCSECURITYIPHOSTSFORSQLSERVERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDTCSecurityIpHostsForSQLServerRequest : public RpcServiceRequest + { + + public: + ModifyDTCSecurityIpHostsForSQLServerRequest(); + ~ModifyDTCSecurityIpHostsForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getWhiteListGroupName()const; + void setWhiteListGroupName(const std::string& whiteListGroupName); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getSecurityIpHosts()const; + void setSecurityIpHosts(const std::string& securityIpHosts); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string whiteListGroupName_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string securityIpHosts_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDTCSECURITYIPHOSTSFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerResult.h b/rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerResult.h new file mode 100644 index 000000000..01baa470b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerResult.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_RDS_MODEL_MODIFYDTCSECURITYIPHOSTSFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDTCSECURITYIPHOSTSFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDTCSecurityIpHostsForSQLServerResult : public ServiceResult + { + public: + + + ModifyDTCSecurityIpHostsForSQLServerResult(); + explicit ModifyDTCSecurityIpHostsForSQLServerResult(const std::string &payload); + ~ModifyDTCSecurityIpHostsForSQLServerResult(); + std::string getDTCSetResult()const; + std::string getTaskId()const; + std::string getDBInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dTCSetResult_; + std::string taskId_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDTCSECURITYIPHOSTSFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h index b2be408ac..c473bd43f 100644 --- a/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyInstanceAutoRenewalAttributeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAutoRenewalAttributeRequest(); - ~ModifyInstanceAutoRenewalAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyInstanceAutoRenewalAttributeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceAutoRenewalAttributeRequest(); + ~ModifyInstanceAutoRenewalAttributeRequest(); + std::string getDuration()const; void setDuration(const std::string& duration); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string duration_; long resourceOwnerId_; std::string autoRenew_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h index 11befd5a0..43af475b7 100644 --- a/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyInstanceAutoRenewalAttributeResult : public ServiceResult - { - public: - - - ModifyInstanceAutoRenewalAttributeResult(); - explicit ModifyInstanceAutoRenewalAttributeResult(const std::string &payload); - ~ModifyInstanceAutoRenewalAttributeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyInstanceAutoRenewalAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoRenewalAttributeResult(); + explicit ModifyInstanceAutoRenewalAttributeResult(const std::string &payload); + ~ModifyInstanceAutoRenewalAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyRequest.h b/rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyRequest.h new file mode 100644 index 000000000..7c05e2f62 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCECROSSBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCECROSSBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyInstanceCrossBackupPolicyRequest : public RpcServiceRequest + { + + public: + ModifyInstanceCrossBackupPolicyRequest(); + ~ModifyInstanceCrossBackupPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getRetentType()const; + void setRetentType(int retentType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCrossBackupType()const; + void setCrossBackupType(const std::string& crossBackupType); + std::string getLogBackupEnabled()const; + void setLogBackupEnabled(const std::string& logBackupEnabled); + std::string getBackupEnabled()const; + void setBackupEnabled(const std::string& backupEnabled); + std::string getRelService()const; + void setRelService(const std::string& relService); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCrossBackupRegion()const; + void setCrossBackupRegion(const std::string& crossBackupRegion); + std::string getStorageType()const; + void setStorageType(const std::string& storageType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getEndpoint()const; + void setEndpoint(const std::string& endpoint); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStorageOwner()const; + void setStorageOwner(const std::string& storageOwner); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getRetention()const; + void setRetention(int retention); + + private: + long resourceOwnerId_; + int retentType_; + std::string resourceOwnerAccount_; + std::string crossBackupType_; + std::string logBackupEnabled_; + std::string backupEnabled_; + std::string relService_; + long ownerId_; + std::string crossBackupRegion_; + std::string storageType_; + std::string accessKeyId_; + std::string endpoint_; + std::string regionId_; + std::string storageOwner_; + std::string dBInstanceId_; + int retention_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCECROSSBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyResult.h b/rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyResult.h new file mode 100644 index 000000000..0e8668866 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyInstanceCrossBackupPolicyResult.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_RDS_MODEL_MODIFYINSTANCECROSSBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCECROSSBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyInstanceCrossBackupPolicyResult : public ServiceResult + { + public: + + + ModifyInstanceCrossBackupPolicyResult(); + explicit ModifyInstanceCrossBackupPolicyResult(const std::string &payload); + ~ModifyInstanceCrossBackupPolicyResult(); + std::string getLogBackupEnabled()const; + std::string getStorageOwner()const; + std::string getBackupEnabled()const; + std::string getCrossBackupType()const; + std::string getStorageType()const; + std::string getEndpoint()const; + std::string getDBInstanceId()const; + std::string getCrossBackupRegion()const; + int getRetentType()const; + std::string getRegionId()const; + int getRetention()const; + + protected: + void parse(const std::string &payload); + private: + std::string logBackupEnabled_; + std::string storageOwner_; + std::string backupEnabled_; + std::string crossBackupType_; + std::string storageType_; + std::string endpoint_; + std::string dBInstanceId_; + std::string crossBackupRegion_; + int retentType_; + std::string regionId_; + int retention_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCECROSSBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayRequest.h b/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayRequest.h index c126a0c9b..b80be2986 100644 --- a/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyMySQLDBInstanceDelayRequest : public RpcServiceRequest - { - - public: - ModifyMySQLDBInstanceDelayRequest(); - ~ModifyMySQLDBInstanceDelayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyMySQLDBInstanceDelayRequest : public RpcServiceRequest + { + + public: + ModifyMySQLDBInstanceDelayRequest(); + ~ModifyMySQLDBInstanceDelayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string sqlDelay_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayResult.h b/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayResult.h index 46d019c38..9a089b2ef 100644 --- a/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyMySQLDBInstanceDelayResult.h @@ -1,55 +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_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyMySQLDBInstanceDelayResult : public ServiceResult - { - public: - - - ModifyMySQLDBInstanceDelayResult(); - explicit ModifyMySQLDBInstanceDelayResult(const std::string &payload); - ~ModifyMySQLDBInstanceDelayResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyMySQLDBInstanceDelayResult : public ServiceResult + { + public: + + + ModifyMySQLDBInstanceDelayResult(); + explicit ModifyMySQLDBInstanceDelayResult(const std::string &payload); + ~ModifyMySQLDBInstanceDelayResult(); std::string getTaskId()const; std::string getDBInstanceName()const; std::string getSqlDelay()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string dBInstanceName_; std::string sqlDelay_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYMYSQLDBINSTANCEDELAYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyParameterRequest.h b/rds/include/alibabacloud/rds/model/ModifyParameterRequest.h index 7d46b00fa..a2cf0d108 100644 --- a/rds/include/alibabacloud/rds/model/ModifyParameterRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyParameterRequest.h @@ -1,42 +1,44 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyParameterRequest : public RpcServiceRequest - { - - public: - ModifyParameterRequest(); - ~ModifyParameterRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyParameterRequest : public RpcServiceRequest + { + + public: + ModifyParameterRequest(); + ~ModifyParameterRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getParameterGroupId()const; + void setParameterGroupId(const std::string& parameterGroupId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getClientToken()const; @@ -53,9 +55,10 @@ namespace AlibabaCloud void setParameters(const std::string& parameters); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; + std::string parameterGroupId_; std::string resourceOwnerAccount_; std::string clientToken_; std::string ownerAccount_; @@ -64,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string parameters_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyParameterResult.h b/rds/include/alibabacloud/rds/model/ModifyParameterResult.h index 797361f11..e039dc9e4 100644 --- a/rds/include/alibabacloud/rds/model/ModifyParameterResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyParameterResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyParameterResult : public ServiceResult - { - public: - - - ModifyParameterResult(); - explicit ModifyParameterResult(const std::string &payload); - ~ModifyParameterResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyParameterResult : public ServiceResult + { + public: + + + ModifyParameterResult(); + explicit ModifyParameterResult(const std::string &payload); + ~ModifyParameterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h index c395c8ce2..b0fcbea42 100644 --- a/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyReadWriteSplittingConnectionRequest : public RpcServiceRequest - { - - public: - ModifyReadWriteSplittingConnectionRequest(); - ~ModifyReadWriteSplittingConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReadWriteSplittingConnectionRequest : public RpcServiceRequest + { + + public: + ModifyReadWriteSplittingConnectionRequest(); + ~ModifyReadWriteSplittingConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud void setMaxDelayTime(const std::string& maxDelayTime); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string resourceOwnerAccount_; @@ -70,9 +70,9 @@ namespace AlibabaCloud long ownerId_; std::string maxDelayTime_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h index c30b9bd69..e5198af48 100644 --- a/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyReadWriteSplittingConnectionResult : public ServiceResult - { - public: - - - ModifyReadWriteSplittingConnectionResult(); - explicit ModifyReadWriteSplittingConnectionResult(const std::string &payload); - ~ModifyReadWriteSplittingConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReadWriteSplittingConnectionResult : public ServiceResult + { + public: + + + ModifyReadWriteSplittingConnectionResult(); + explicit ModifyReadWriteSplittingConnectionResult(const std::string &payload); + ~ModifyReadWriteSplittingConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.h b/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.h index c70eca27b..466fd67da 100644 --- a/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyReadonlyInstanceDelayReplicationTimeRequest : public RpcServiceRequest - { - - public: - ModifyReadonlyInstanceDelayReplicationTimeRequest(); - ~ModifyReadonlyInstanceDelayReplicationTimeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReadonlyInstanceDelayReplicationTimeRequest : public RpcServiceRequest + { + + public: + ModifyReadonlyInstanceDelayReplicationTimeRequest(); + ~ModifyReadonlyInstanceDelayReplicationTimeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getReadSQLReplicationTime()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string readSQLReplicationTime_; std::string resourceOwnerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeResult.h b/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeResult.h index 416f7538d..99bacb2fe 100644 --- a/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyReadonlyInstanceDelayReplicationTimeResult.h @@ -1,55 +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_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyReadonlyInstanceDelayReplicationTimeResult : public ServiceResult - { - public: - - - ModifyReadonlyInstanceDelayReplicationTimeResult(); - explicit ModifyReadonlyInstanceDelayReplicationTimeResult(const std::string &payload); - ~ModifyReadonlyInstanceDelayReplicationTimeResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReadonlyInstanceDelayReplicationTimeResult : public ServiceResult + { + public: + + + ModifyReadonlyInstanceDelayReplicationTimeResult(); + explicit ModifyReadonlyInstanceDelayReplicationTimeResult(const std::string &payload); + ~ModifyReadonlyInstanceDelayReplicationTimeResult(); std::string getTaskId()const; std::string getDBInstanceId()const; std::string getReadSQLReplicationTime()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string dBInstanceId_; std::string readSQLReplicationTime_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREADONLYINSTANCEDELAYREPLICATIONTIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h index 660beba10..606a5cf6d 100644 --- a/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyReplicaDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyReplicaDescriptionRequest(); - ~ModifyReplicaDescriptionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyReplicaDescriptionRequest(); + ~ModifyReplicaDescriptionRequest(); + std::string getReplicaDescription()const; void setReplicaDescription(const std::string& replicaDescription); long getResourceOwnerId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string replicaDescription_; long resourceOwnerId_; std::string securityToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string replicaId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h index cc505df07..d7b5c58c0 100644 --- a/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyReplicaDescriptionResult : public ServiceResult - { - public: - - - ModifyReplicaDescriptionResult(); - explicit ModifyReplicaDescriptionResult(const std::string &payload); - ~ModifyReplicaDescriptionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaDescriptionResult : public ServiceResult + { + public: + + + ModifyReplicaDescriptionResult(); + explicit ModifyReplicaDescriptionResult(const std::string &payload); + ~ModifyReplicaDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyResourceGroupRequest.h b/rds/include/alibabacloud/rds/model/ModifyResourceGroupRequest.h index f00882468..b8f743b7d 100644 --- a/rds/include/alibabacloud/rds/model/ModifyResourceGroupRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyResourceGroupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyResourceGroupRequest : public RpcServiceRequest - { - - public: - ModifyResourceGroupRequest(); - ~ModifyResourceGroupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyResourceGroupRequest : public RpcServiceRequest + { + + public: + ModifyResourceGroupRequest(); + ~ModifyResourceGroupRequest(); + std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string resourceGroupId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyResourceGroupResult.h b/rds/include/alibabacloud/rds/model/ModifyResourceGroupResult.h index 588c74090..b8e319e42 100644 --- a/rds/include/alibabacloud/rds/model/ModifyResourceGroupResult.h +++ b/rds/include/alibabacloud/rds/model/ModifyResourceGroupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifyResourceGroupResult : public ServiceResult - { - public: - - - ModifyResourceGroupResult(); - explicit ModifyResourceGroupResult(const std::string &payload); - ~ModifyResourceGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyResourceGroupResult : public ServiceResult + { + public: + + + ModifyResourceGroupResult(); + explicit ModifyResourceGroupResult(const std::string &payload); + ~ModifyResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h index f0b67421a..c0e7d7ced 100644 --- a/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorPolicyRequest : public RpcServiceRequest - { - - public: - ModifySQLCollectorPolicyRequest(); - ~ModifySQLCollectorPolicyRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorPolicyRequest : public RpcServiceRequest + { + + public: + ModifySQLCollectorPolicyRequest(); + ~ModifySQLCollectorPolicyRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getStoragePeriod()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; int storagePeriod_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h index 036c37e80..f56409adb 100644 --- a/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h +++ b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorPolicyResult : public ServiceResult - { - public: - - - ModifySQLCollectorPolicyResult(); - explicit ModifySQLCollectorPolicyResult(const std::string &payload); - ~ModifySQLCollectorPolicyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorPolicyResult : public ServiceResult + { + public: + + + ModifySQLCollectorPolicyResult(); + explicit ModifySQLCollectorPolicyResult(const std::string &payload); + ~ModifySQLCollectorPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationRequest.h b/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationRequest.h index a128dd28f..cd3b44d45 100644 --- a/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifySecurityGroupConfigurationRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupConfigurationRequest(); - ~ModifySecurityGroupConfigurationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySecurityGroupConfigurationRequest : public RpcServiceRequest + { + + public: + ModifySecurityGroupConfigurationRequest(); + ~ModifySecurityGroupConfigurationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string securityGroupId_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationResult.h b/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationResult.h index f553c9c19..03ca0bcb1 100644 --- a/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationResult.h +++ b/rds/include/alibabacloud/rds/model/ModifySecurityGroupConfigurationResult.h @@ -1,59 +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_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifySecurityGroupConfigurationResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySecurityGroupConfigurationResult : public ServiceResult + { + public: struct EcsSecurityGroupRelation { std::string networkType; std::string securityGroupId; std::string regionId; }; - - - ModifySecurityGroupConfigurationResult(); - explicit ModifySecurityGroupConfigurationResult(const std::string &payload); - ~ModifySecurityGroupConfigurationResult(); + + + ModifySecurityGroupConfigurationResult(); + explicit ModifySecurityGroupConfigurationResult(const std::string &payload); + ~ModifySecurityGroupConfigurationResult(); std::vector getItems()const; std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector items_; std::string dBInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYGROUPCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySecurityIpsRequest.h b/rds/include/alibabacloud/rds/model/ModifySecurityIpsRequest.h index 679f37c78..39c34b10c 100644 --- a/rds/include/alibabacloud/rds/model/ModifySecurityIpsRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifySecurityIpsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifySecurityIpsRequest : public RpcServiceRequest - { - - public: - ModifySecurityIpsRequest(); - ~ModifySecurityIpsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySecurityIpsRequest : public RpcServiceRequest + { + + public: + ModifySecurityIpsRequest(); + ~ModifySecurityIpsRequest(); + std::string getDBInstanceIPArrayName()const; void setDBInstanceIPArrayName(const std::string& dBInstanceIPArrayName); long getResourceOwnerId()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud void setSecurityIPType(const std::string& securityIPType); std::string getDBInstanceId()const; void setDBInstanceId(const std::string& dBInstanceId); - - private: + + private: std::string dBInstanceIPArrayName_; long resourceOwnerId_; std::string modifyMode_; @@ -79,9 +79,9 @@ namespace AlibabaCloud std::string dBInstanceIPArrayAttribute_; std::string securityIPType_; std::string dBInstanceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySecurityIpsResult.h b/rds/include/alibabacloud/rds/model/ModifySecurityIpsResult.h index 1ad6a2e0a..84663f20d 100644 --- a/rds/include/alibabacloud/rds/model/ModifySecurityIpsResult.h +++ b/rds/include/alibabacloud/rds/model/ModifySecurityIpsResult.h @@ -1,51 +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_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ModifySecurityIpsResult : public ServiceResult - { - public: - - - ModifySecurityIpsResult(); - explicit ModifySecurityIpsResult(const std::string &payload); - ~ModifySecurityIpsResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySecurityIpsResult : public ServiceResult + { + public: + + + ModifySecurityIpsResult(); + explicit ModifySecurityIpsResult(const std::string &payload); + ~ModifySecurityIpsResult(); std::string getTaskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h index 29be473ff..3b11b82c1 100644 --- a/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h +++ b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT PurgeDBInstanceLogRequest : public RpcServiceRequest - { - - public: - PurgeDBInstanceLogRequest(); - ~PurgeDBInstanceLogRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT PurgeDBInstanceLogRequest : public RpcServiceRequest + { + + public: + PurgeDBInstanceLogRequest(); + ~PurgeDBInstanceLogRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h index e79ecda26..1e7270263 100644 --- a/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h +++ b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT PurgeDBInstanceLogResult : public ServiceResult - { - public: - - - PurgeDBInstanceLogResult(); - explicit PurgeDBInstanceLogResult(const std::string &payload); - ~PurgeDBInstanceLogResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT PurgeDBInstanceLogResult : public ServiceResult + { + public: + + + PurgeDBInstanceLogResult(); + explicit PurgeDBInstanceLogResult(const std::string &payload); + ~PurgeDBInstanceLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RecoveryDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/RecoveryDBInstanceRequest.h index b0c975ad0..2413843be 100644 --- a/rds/include/alibabacloud/rds/model/RecoveryDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/RecoveryDBInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RecoveryDBInstanceRequest : public RpcServiceRequest - { - - public: - RecoveryDBInstanceRequest(); - ~RecoveryDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RecoveryDBInstanceRequest : public RpcServiceRequest + { + + public: + RecoveryDBInstanceRequest(); + ~RecoveryDBInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRestoreTime()const; @@ -79,8 +79,8 @@ namespace AlibabaCloud void setPayType(const std::string& payType); std::string getInstanceNetworkType()const; void setInstanceNetworkType(const std::string& instanceNetworkType); - - private: + + private: long resourceOwnerId_; std::string restoreTime_; std::string period_; @@ -103,9 +103,9 @@ namespace AlibabaCloud std::string dBInstanceId_; std::string payType_; std::string instanceNetworkType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RecoveryDBInstanceResult.h b/rds/include/alibabacloud/rds/model/RecoveryDBInstanceResult.h index 315f56976..4050fb822 100644 --- a/rds/include/alibabacloud/rds/model/RecoveryDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/RecoveryDBInstanceResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RecoveryDBInstanceResult : public ServiceResult - { - public: - - - RecoveryDBInstanceResult(); - explicit RecoveryDBInstanceResult(const std::string &payload); - ~RecoveryDBInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RecoveryDBInstanceResult : public ServiceResult + { + public: + + + RecoveryDBInstanceResult(); + explicit RecoveryDBInstanceResult(const std::string &payload); + ~RecoveryDBInstanceResult(); std::string getDBInstanceId()const; std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string dBInstanceId_; std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RECOVERYDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h index 58f4c543d..dd6293a48 100644 --- a/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h +++ b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ReleaseInstancePublicConnectionRequest : public RpcServiceRequest - { - - public: - ReleaseInstancePublicConnectionRequest(); - ~ReleaseInstancePublicConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseInstancePublicConnectionRequest : public RpcServiceRequest + { + + public: + ReleaseInstancePublicConnectionRequest(); + ~ReleaseInstancePublicConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setCurrentConnectionString(const std::string& currentConnectionString); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud long ownerId_; std::string currentConnectionString_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h index 5cb0f2a86..ddef54e46 100644 --- a/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h +++ b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ReleaseInstancePublicConnectionResult : public ServiceResult - { - public: - - - ReleaseInstancePublicConnectionResult(); - explicit ReleaseInstancePublicConnectionResult(const std::string &payload); - ~ReleaseInstancePublicConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseInstancePublicConnectionResult : public ServiceResult + { + public: + + + ReleaseInstancePublicConnectionResult(); + explicit ReleaseInstancePublicConnectionResult(const std::string &payload); + ~ReleaseInstancePublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h index 13a1a144c..2d219dd27 100644 --- a/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h +++ b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ReleaseReadWriteSplittingConnectionRequest : public RpcServiceRequest - { - - public: - ReleaseReadWriteSplittingConnectionRequest(); - ~ReleaseReadWriteSplittingConnectionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseReadWriteSplittingConnectionRequest : public RpcServiceRequest + { + + public: + ReleaseReadWriteSplittingConnectionRequest(); + ~ReleaseReadWriteSplittingConnectionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h index ed7fc17ca..ca1978cfc 100644 --- a/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h +++ b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ReleaseReadWriteSplittingConnectionResult : public ServiceResult - { - public: - - - ReleaseReadWriteSplittingConnectionResult(); - explicit ReleaseReadWriteSplittingConnectionResult(const std::string &payload); - ~ReleaseReadWriteSplittingConnectionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseReadWriteSplittingConnectionResult : public ServiceResult + { + public: + + + ReleaseReadWriteSplittingConnectionResult(); + explicit ReleaseReadWriteSplittingConnectionResult(const std::string &payload); + ~ReleaseReadWriteSplittingConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h index b8273dfc2..1c097a1ab 100644 --- a/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h +++ b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RemoveTagsFromResourceRequest : public RpcServiceRequest - { - - public: - RemoveTagsFromResourceRequest(); - ~RemoveTagsFromResourceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RemoveTagsFromResourceRequest : public RpcServiceRequest + { + + public: + RemoveTagsFromResourceRequest(); + ~RemoveTagsFromResourceRequest(); + std::string getTag4value()const; void setTag4value(const std::string& tag4value); long getResourceOwnerId()const; @@ -75,8 +75,8 @@ namespace AlibabaCloud void setTag3value(const std::string& tag3value); std::string getProxyId()const; void setProxyId(const std::string& proxyId); - - private: + + private: std::string tag4value_; long resourceOwnerId_; std::string tag2key_; @@ -97,9 +97,9 @@ namespace AlibabaCloud std::string dBInstanceId_; std::string tag3value_; std::string proxyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h index f6d37435c..3a8eb4b8f 100644 --- a/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h +++ b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RemoveTagsFromResourceResult : public ServiceResult - { - public: - - - RemoveTagsFromResourceResult(); - explicit RemoveTagsFromResourceResult(const std::string &payload); - ~RemoveTagsFromResourceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RemoveTagsFromResourceResult : public ServiceResult + { + public: + + + RemoveTagsFromResourceResult(); + explicit RemoveTagsFromResourceResult(const std::string &payload); + ~RemoveTagsFromResourceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RenewInstanceRequest.h b/rds/include/alibabacloud/rds/model/RenewInstanceRequest.h index 83589f873..7d6fb16d1 100644 --- a/rds/include/alibabacloud/rds/model/RenewInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/RenewInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RenewInstanceRequest : public RpcServiceRequest - { - - public: - RenewInstanceRequest(); - ~RenewInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RenewInstanceRequest : public RpcServiceRequest + { + + public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getPeriod()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setBusinessInfo(const std::string& businessInfo); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string period_; std::string autoPay_; @@ -64,9 +64,9 @@ namespace AlibabaCloud long ownerId_; std::string businessInfo_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RenewInstanceResult.h b/rds/include/alibabacloud/rds/model/RenewInstanceResult.h index b7e85b1d0..e8b164bde 100644 --- a/rds/include/alibabacloud/rds/model/RenewInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/RenewInstanceResult.h @@ -1,51 +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_RDS_MODEL_RENEWINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RENEWINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RenewInstanceResult : public ServiceResult - { - public: - - - RenewInstanceResult(); - explicit RenewInstanceResult(const std::string &payload); - ~RenewInstanceResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); long getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: long orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertRequest.h b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertRequest.h index 256f3a53a..b613c1aeb 100644 --- a/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertRequest.h +++ b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RequestServiceOfCloudDBExpertRequest : public RpcServiceRequest - { - - public: - RequestServiceOfCloudDBExpertRequest(); - ~RequestServiceOfCloudDBExpertRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RequestServiceOfCloudDBExpertRequest : public RpcServiceRequest + { + + public: + RequestServiceOfCloudDBExpertRequest(); + ~RequestServiceOfCloudDBExpertRequest(); + std::string getServiceRequestParam()const; void setServiceRequestParam(const std::string& serviceRequestParam); std::string getDBInstanceId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setServiceRequestType(const std::string& serviceRequestType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string serviceRequestParam_; std::string dBInstanceId_; std::string serviceRequestType_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertResult.h b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertResult.h index 1dfd2fce6..e1e878517 100644 --- a/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertResult.h +++ b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBExpertResult.h @@ -1,55 +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_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RequestServiceOfCloudDBExpertResult : public ServiceResult - { - public: - - - RequestServiceOfCloudDBExpertResult(); - explicit RequestServiceOfCloudDBExpertResult(const std::string &payload); - ~RequestServiceOfCloudDBExpertResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RequestServiceOfCloudDBExpertResult : public ServiceResult + { + public: + + + RequestServiceOfCloudDBExpertResult(); + explicit RequestServiceOfCloudDBExpertResult(const std::string &payload); + ~RequestServiceOfCloudDBExpertResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string data_; std::string code_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBEXPERTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountForPGRequest.h b/rds/include/alibabacloud/rds/model/ResetAccountForPGRequest.h index d1dbaec37..b8e6f013a 100644 --- a/rds/include/alibabacloud/rds/model/ResetAccountForPGRequest.h +++ b/rds/include/alibabacloud/rds/model/ResetAccountForPGRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ResetAccountForPGRequest : public RpcServiceRequest - { - - public: - ResetAccountForPGRequest(); - ~ResetAccountForPGRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountForPGRequest : public RpcServiceRequest + { + + public: + ResetAccountForPGRequest(); + ~ResetAccountForPGRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountPassword()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountPassword_; std::string accountName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountForPGResult.h b/rds/include/alibabacloud/rds/model/ResetAccountForPGResult.h index 518ff0c96..b2327867c 100644 --- a/rds/include/alibabacloud/rds/model/ResetAccountForPGResult.h +++ b/rds/include/alibabacloud/rds/model/ResetAccountForPGResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ResetAccountForPGResult : public ServiceResult - { - public: - - - ResetAccountForPGResult(); - explicit ResetAccountForPGResult(const std::string &payload); - ~ResetAccountForPGResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountForPGResult : public ServiceResult + { + public: + + + ResetAccountForPGResult(); + explicit ResetAccountForPGResult(const std::string &payload); + ~ResetAccountForPGResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountPasswordRequest.h b/rds/include/alibabacloud/rds/model/ResetAccountPasswordRequest.h index 565d6f42e..a6ff2a26e 100644 --- a/rds/include/alibabacloud/rds/model/ResetAccountPasswordRequest.h +++ b/rds/include/alibabacloud/rds/model/ResetAccountPasswordRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest - { - - public: - ResetAccountPasswordRequest(); - ~ResetAccountPasswordRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest + { + + public: + ResetAccountPasswordRequest(); + ~ResetAccountPasswordRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountPassword()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountPassword_; std::string accountName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountPasswordResult.h b/rds/include/alibabacloud/rds/model/ResetAccountPasswordResult.h index 7230f41a7..380c523a3 100644 --- a/rds/include/alibabacloud/rds/model/ResetAccountPasswordResult.h +++ b/rds/include/alibabacloud/rds/model/ResetAccountPasswordResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ResetAccountPasswordResult : public ServiceResult - { - public: - - - ResetAccountPasswordResult(); - explicit ResetAccountPasswordResult(const std::string &payload); - ~ResetAccountPasswordResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountPasswordResult : public ServiceResult + { + public: + + + ResetAccountPasswordResult(); + explicit ResetAccountPasswordResult(const std::string &payload); + ~ResetAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountRequest.h b/rds/include/alibabacloud/rds/model/ResetAccountRequest.h index 9f64effda..882ee23e0 100644 --- a/rds/include/alibabacloud/rds/model/ResetAccountRequest.h +++ b/rds/include/alibabacloud/rds/model/ResetAccountRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ResetAccountRequest : public RpcServiceRequest - { - - public: - ResetAccountRequest(); - ~ResetAccountRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountRequest : public RpcServiceRequest + { + + public: + ResetAccountRequest(); + ~ResetAccountRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountPassword()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountPassword_; std::string accountName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountResult.h b/rds/include/alibabacloud/rds/model/ResetAccountResult.h index 4e2e97bdb..077e5e05e 100644 --- a/rds/include/alibabacloud/rds/model/ResetAccountResult.h +++ b/rds/include/alibabacloud/rds/model/ResetAccountResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT ResetAccountResult : public ServiceResult - { - public: - - - ResetAccountResult(); - explicit ResetAccountResult(const std::string &payload); - ~ResetAccountResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountResult : public ServiceResult + { + public: + + + ResetAccountResult(); + explicit ResetAccountResult(const std::string &payload); + ~ResetAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestartDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/RestartDBInstanceRequest.h index 41f74e1a1..d6bc9360f 100644 --- a/rds/include/alibabacloud/rds/model/RestartDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/RestartDBInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RestartDBInstanceRequest : public RpcServiceRequest - { - - public: - RestartDBInstanceRequest(); - ~RestartDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestartDBInstanceRequest : public RpcServiceRequest + { + + public: + RestartDBInstanceRequest(); + ~RestartDBInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestartDBInstanceResult.h b/rds/include/alibabacloud/rds/model/RestartDBInstanceResult.h index c3e96e4d3..3654277fb 100644 --- a/rds/include/alibabacloud/rds/model/RestartDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/RestartDBInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RestartDBInstanceResult : public ServiceResult - { - public: - - - RestartDBInstanceResult(); - explicit RestartDBInstanceResult(const std::string &payload); - ~RestartDBInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestartDBInstanceResult : public ServiceResult + { + public: + + + RestartDBInstanceResult(); + explicit RestartDBInstanceResult(const std::string &payload); + ~RestartDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestoreDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/RestoreDBInstanceRequest.h index 238f85bb8..cf43d1656 100644 --- a/rds/include/alibabacloud/rds/model/RestoreDBInstanceRequest.h +++ b/rds/include/alibabacloud/rds/model/RestoreDBInstanceRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RestoreDBInstanceRequest : public RpcServiceRequest - { - - public: - RestoreDBInstanceRequest(); - ~RestoreDBInstanceRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestoreDBInstanceRequest : public RpcServiceRequest + { + + public: + RestoreDBInstanceRequest(); + ~RestoreDBInstanceRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRestoreTime()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string restoreTime_; std::string resourceOwnerAccount_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestoreDBInstanceResult.h b/rds/include/alibabacloud/rds/model/RestoreDBInstanceResult.h index 1b4390cef..b40f87329 100644 --- a/rds/include/alibabacloud/rds/model/RestoreDBInstanceResult.h +++ b/rds/include/alibabacloud/rds/model/RestoreDBInstanceResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RestoreDBInstanceResult : public ServiceResult - { - public: - - - RestoreDBInstanceResult(); - explicit RestoreDBInstanceResult(const std::string &payload); - ~RestoreDBInstanceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestoreDBInstanceResult : public ServiceResult + { + public: + + + RestoreDBInstanceResult(); + explicit RestoreDBInstanceResult(const std::string &payload); + ~RestoreDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestoreTableRequest.h b/rds/include/alibabacloud/rds/model/RestoreTableRequest.h index 7c8d9529c..a071ac6ad 100644 --- a/rds/include/alibabacloud/rds/model/RestoreTableRequest.h +++ b/rds/include/alibabacloud/rds/model/RestoreTableRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESTORETABLEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_RESTORETABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RestoreTableRequest : public RpcServiceRequest - { - - public: - RestoreTableRequest(); - ~RestoreTableRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTORETABLEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTORETABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestoreTableRequest : public RpcServiceRequest + { + + public: + RestoreTableRequest(); + ~RestoreTableRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getRestoreTime()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string restoreTime_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESTORETABLEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestoreTableResult.h b/rds/include/alibabacloud/rds/model/RestoreTableResult.h index 9f34dd849..bdf7fb1bb 100644 --- a/rds/include/alibabacloud/rds/model/RestoreTableResult.h +++ b/rds/include/alibabacloud/rds/model/RestoreTableResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_RESTORETABLERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_RESTORETABLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RestoreTableResult : public ServiceResult - { - public: - - - RestoreTableResult(); - explicit RestoreTableResult(const std::string &payload); - ~RestoreTableResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTORETABLERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTORETABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestoreTableResult : public ServiceResult + { + public: + + + RestoreTableResult(); + explicit RestoreTableResult(const std::string &payload); + ~RestoreTableResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_RESTORETABLERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h index cc601f1ce..8cdc8f973 100644 --- a/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h +++ b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RevokeAccountPrivilegeRequest : public RpcServiceRequest - { - - public: - RevokeAccountPrivilegeRequest(); - ~RevokeAccountPrivilegeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeAccountPrivilegeRequest : public RpcServiceRequest + { + + public: + RevokeAccountPrivilegeRequest(); + ~RevokeAccountPrivilegeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAccountName()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string accountName_; std::string dBName_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h index fd29351ab..85a2da773 100644 --- a/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h +++ b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RevokeAccountPrivilegeResult : public ServiceResult - { - public: - - - RevokeAccountPrivilegeResult(); - explicit RevokeAccountPrivilegeResult(const std::string &payload); - ~RevokeAccountPrivilegeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeAccountPrivilegeResult : public ServiceResult + { + public: + + + RevokeAccountPrivilegeResult(); + explicit RevokeAccountPrivilegeResult(const std::string &payload); + ~RevokeAccountPrivilegeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h index c1a894741..68864a84b 100644 --- a/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h +++ b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RevokeOperatorPermissionRequest : public RpcServiceRequest - { - - public: - RevokeOperatorPermissionRequest(); - ~RevokeOperatorPermissionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeOperatorPermissionRequest : public RpcServiceRequest + { + + public: + RevokeOperatorPermissionRequest(); + ~RevokeOperatorPermissionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h index e54967612..cfecaa182 100644 --- a/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h +++ b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT RevokeOperatorPermissionResult : public ServiceResult - { - public: - - - RevokeOperatorPermissionResult(); - explicit RevokeOperatorPermissionResult(const std::string &payload); - ~RevokeOperatorPermissionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeOperatorPermissionResult : public ServiceResult + { + public: + + + RevokeOperatorPermissionResult(); + explicit RevokeOperatorPermissionResult(const std::string &payload); + ~RevokeOperatorPermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h index 1619d2e71..6f91646e0 100644 --- a/rds/include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceHARequest : public RpcServiceRequest - { - - public: - SwitchDBInstanceHARequest(); - ~SwitchDBInstanceHARequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceHARequest : public RpcServiceRequest + { + + public: + SwitchDBInstanceHARequest(); + ~SwitchDBInstanceHARequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOperation(const std::string& operation); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string effectiveTime_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string nodeId_; std::string operation_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h index 726bc20a1..e09944fe1 100644 --- a/rds/include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceHAResult : public ServiceResult - { - public: - - - SwitchDBInstanceHAResult(); - explicit SwitchDBInstanceHAResult(const std::string &payload); - ~SwitchDBInstanceHAResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceHAResult : public ServiceResult + { + public: + + + SwitchDBInstanceHAResult(); + explicit SwitchDBInstanceHAResult(const std::string &payload); + ~SwitchDBInstanceHAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h index 67a364c31..385881f45 100644 --- a/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceNetTypeRequest : public RpcServiceRequest - { - - public: - SwitchDBInstanceNetTypeRequest(); - ~SwitchDBInstanceNetTypeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceNetTypeRequest : public RpcServiceRequest + { + + public: + SwitchDBInstanceNetTypeRequest(); + ~SwitchDBInstanceNetTypeRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getConnectionStringPrefix()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string connectionStringPrefix_; std::string connectionStringType_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h index 89184efc2..1a4d28d1d 100644 --- a/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceNetTypeResult : public ServiceResult - { - public: - - - SwitchDBInstanceNetTypeResult(); - explicit SwitchDBInstanceNetTypeResult(const std::string &payload); - ~SwitchDBInstanceNetTypeResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceNetTypeResult : public ServiceResult + { + public: + + + SwitchDBInstanceNetTypeResult(); + explicit SwitchDBInstanceNetTypeResult(const std::string &payload); + ~SwitchDBInstanceNetTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcRequest.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcRequest.h index f2f54f1c9..8ee6b1305 100644 --- a/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcRequest.h +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceVpcRequest : public RpcServiceRequest - { - - public: - SwitchDBInstanceVpcRequest(); - ~SwitchDBInstanceVpcRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceVpcRequest : public RpcServiceRequest + { + + public: + SwitchDBInstanceVpcRequest(); + ~SwitchDBInstanceVpcRequest(); + std::string getVSwitchId()const; void setVSwitchId(const std::string& vSwitchId); std::string getPrivateIpAddress()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: std::string vSwitchId_; std::string privateIpAddress_; long resourceOwnerId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string dBInstanceId_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcResult.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcResult.h index a15156630..4dbd07721 100644 --- a/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcResult.h +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceVpcResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceVpcResult : public ServiceResult - { - public: - - - SwitchDBInstanceVpcResult(); - explicit SwitchDBInstanceVpcResult(const std::string &payload); - ~SwitchDBInstanceVpcResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceVpcResult : public ServiceResult + { + public: + + + SwitchDBInstanceVpcResult(); + explicit SwitchDBInstanceVpcResult(const std::string &payload); + ~SwitchDBInstanceVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEVPCRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h index 8d5815ea5..b2ec46eac 100644 --- a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceEngineVersionRequest : public RpcServiceRequest - { - - public: - UpgradeDBInstanceEngineVersionRequest(); - ~UpgradeDBInstanceEngineVersionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceEngineVersionRequest : public RpcServiceRequest + { + + public: + UpgradeDBInstanceEngineVersionRequest(); + ~UpgradeDBInstanceEngineVersionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string clientToken_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string engineVersion_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h index 7d2b574e8..83fa0d881 100644 --- a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h @@ -1,51 +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_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceEngineVersionResult : public ServiceResult - { - public: - - - UpgradeDBInstanceEngineVersionResult(); - explicit UpgradeDBInstanceEngineVersionResult(const std::string &payload); - ~UpgradeDBInstanceEngineVersionResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceEngineVersionResult : public ServiceResult + { + public: + + + UpgradeDBInstanceEngineVersionResult(); + explicit UpgradeDBInstanceEngineVersionResult(const std::string &payload); + ~UpgradeDBInstanceEngineVersionResult(); std::string getTaskId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionRequest.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionRequest.h index 13b3aaae9..2e38e8feb 100644 --- a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionRequest.h +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ -#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceKernelVersionRequest : public RpcServiceRequest - { - - public: - UpgradeDBInstanceKernelVersionRequest(); - ~UpgradeDBInstanceKernelVersionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceKernelVersionRequest : public RpcServiceRequest + { + + public: + UpgradeDBInstanceKernelVersionRequest(); + ~UpgradeDBInstanceKernelVersionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string upgradeTime_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string switchTime_; long ownerId_; std::string accessKeyId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionResult.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionResult.h index a2c01d64e..fffa12459 100644 --- a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionResult.h +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceKernelVersionResult.h @@ -1,55 +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_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ -#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rds - { - namespace Model - { - class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceKernelVersionResult : public ServiceResult - { - public: - - - UpgradeDBInstanceKernelVersionResult(); - explicit UpgradeDBInstanceKernelVersionResult(const std::string &payload); - ~UpgradeDBInstanceKernelVersionResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceKernelVersionResult : public ServiceResult + { + public: + + + UpgradeDBInstanceKernelVersionResult(); + explicit UpgradeDBInstanceKernelVersionResult(const std::string &payload); + ~UpgradeDBInstanceKernelVersionResult(); std::string getTaskId()const; std::string getTargetMinorVersion()const; std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string taskId_; std::string targetMinorVersion_; std::string dBInstanceName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ \ No newline at end of file diff --git a/rds/src/RdsClient.cc b/rds/src/RdsClient.cc index 0a7f08456..474373846 100644 --- a/rds/src/RdsClient.cc +++ b/rds/src/RdsClient.cc @@ -1,5129 +1,5633 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds; -using namespace AlibabaCloud::Rds::Model; - -namespace -{ - const std::string SERVICE_NAME = "Rds"; -} - -RdsClient::RdsClient(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, "rds"); -} - -RdsClient::RdsClient(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, "rds"); -} - -RdsClient::RdsClient(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, "rds"); -} - -RdsClient::~RdsClient() -{} - -RdsClient::CreateMigrateTaskOutcome RdsClient::createMigrateTask(const CreateMigrateTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateMigrateTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateMigrateTaskOutcome(CreateMigrateTaskResult(outcome.result())); - else - return CreateMigrateTaskOutcome(outcome.error()); -} - -void RdsClient::createMigrateTaskAsync(const CreateMigrateTaskRequest& request, const CreateMigrateTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createMigrateTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateMigrateTaskOutcomeCallable RdsClient::createMigrateTaskCallable(const CreateMigrateTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createMigrateTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CheckRecoveryConditionsOutcome RdsClient::checkRecoveryConditions(const CheckRecoveryConditionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CheckRecoveryConditionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CheckRecoveryConditionsOutcome(CheckRecoveryConditionsResult(outcome.result())); - else - return CheckRecoveryConditionsOutcome(outcome.error()); -} - -void RdsClient::checkRecoveryConditionsAsync(const CheckRecoveryConditionsRequest& request, const CheckRecoveryConditionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, checkRecoveryConditions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CheckRecoveryConditionsOutcomeCallable RdsClient::checkRecoveryConditionsCallable(const CheckRecoveryConditionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->checkRecoveryConditions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DeleteBackupOutcome RdsClient::deleteBackup(const DeleteBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteBackupOutcome(DeleteBackupResult(outcome.result())); - else - return DeleteBackupOutcome(outcome.error()); -} - -void RdsClient::deleteBackupAsync(const DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DeleteBackupOutcomeCallable RdsClient::deleteBackupCallable(const DeleteBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDatabasesOutcome RdsClient::describeDatabases(const DescribeDatabasesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDatabasesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDatabasesOutcome(DescribeDatabasesResult(outcome.result())); - else - return DescribeDatabasesOutcome(outcome.error()); -} - -void RdsClient::describeDatabasesAsync(const DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDatabases(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDatabasesOutcomeCallable RdsClient::describeDatabasesCallable(const DescribeDatabasesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDatabases(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstancesByExpireTimeOutcome RdsClient::describeDBInstancesByExpireTime(const DescribeDBInstancesByExpireTimeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstancesByExpireTimeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstancesByExpireTimeOutcome(DescribeDBInstancesByExpireTimeResult(outcome.result())); - else - return DescribeDBInstancesByExpireTimeOutcome(outcome.error()); -} - -void RdsClient::describeDBInstancesByExpireTimeAsync(const DescribeDBInstancesByExpireTimeRequest& request, const DescribeDBInstancesByExpireTimeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstancesByExpireTime(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstancesByExpireTimeOutcomeCallable RdsClient::describeDBInstancesByExpireTimeCallable(const DescribeDBInstancesByExpireTimeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstancesByExpireTime(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::SwitchDBInstanceNetTypeOutcome RdsClient::switchDBInstanceNetType(const SwitchDBInstanceNetTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchDBInstanceNetTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchDBInstanceNetTypeOutcome(SwitchDBInstanceNetTypeResult(outcome.result())); - else - return SwitchDBInstanceNetTypeOutcome(outcome.error()); -} - -void RdsClient::switchDBInstanceNetTypeAsync(const SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchDBInstanceNetType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::SwitchDBInstanceNetTypeOutcomeCallable RdsClient::switchDBInstanceNetTypeCallable(const SwitchDBInstanceNetTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchDBInstanceNetType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceMonitorOutcome RdsClient::describeDBInstanceMonitor(const DescribeDBInstanceMonitorRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceMonitorOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceMonitorOutcome(DescribeDBInstanceMonitorResult(outcome.result())); - else - return DescribeDBInstanceMonitorOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceMonitorAsync(const DescribeDBInstanceMonitorRequest& request, const DescribeDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceMonitor(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceMonitorOutcomeCallable RdsClient::describeDBInstanceMonitorCallable(const DescribeDBInstanceMonitorRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceMonitor(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceHAConfigOutcome RdsClient::describeDBInstanceHAConfig(const DescribeDBInstanceHAConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceHAConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceHAConfigOutcome(DescribeDBInstanceHAConfigResult(outcome.result())); - else - return DescribeDBInstanceHAConfigOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceHAConfigAsync(const DescribeDBInstanceHAConfigRequest& request, const DescribeDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceHAConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceHAConfigOutcomeCallable RdsClient::describeDBInstanceHAConfigCallable(const DescribeDBInstanceHAConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceHAConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateReadOnlyDBInstanceOutcome RdsClient::createReadOnlyDBInstance(const CreateReadOnlyDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateReadOnlyDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateReadOnlyDBInstanceOutcome(CreateReadOnlyDBInstanceResult(outcome.result())); - else - return CreateReadOnlyDBInstanceOutcome(outcome.error()); -} - -void RdsClient::createReadOnlyDBInstanceAsync(const CreateReadOnlyDBInstanceRequest& request, const CreateReadOnlyDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createReadOnlyDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateReadOnlyDBInstanceOutcomeCallable RdsClient::createReadOnlyDBInstanceCallable(const CreateReadOnlyDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createReadOnlyDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyAccountDescriptionOutcome RdsClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAccountDescriptionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAccountDescriptionOutcome(ModifyAccountDescriptionResult(outcome.result())); - else - return ModifyAccountDescriptionOutcome(outcome.error()); -} - -void RdsClient::modifyAccountDescriptionAsync(const ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyAccountDescription(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyAccountDescriptionOutcomeCallable RdsClient::modifyAccountDescriptionCallable(const ModifyAccountDescriptionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyAccountDescription(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::MigrateToOtherRegionOutcome RdsClient::migrateToOtherRegion(const MigrateToOtherRegionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MigrateToOtherRegionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MigrateToOtherRegionOutcome(MigrateToOtherRegionResult(outcome.result())); - else - return MigrateToOtherRegionOutcome(outcome.error()); -} - -void RdsClient::migrateToOtherRegionAsync(const MigrateToOtherRegionRequest& request, const MigrateToOtherRegionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, migrateToOtherRegion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::MigrateToOtherRegionOutcomeCallable RdsClient::migrateToOtherRegionCallable(const MigrateToOtherRegionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->migrateToOtherRegion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeOssDownloadsOutcome RdsClient::describeOssDownloads(const DescribeOssDownloadsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeOssDownloadsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeOssDownloadsOutcome(DescribeOssDownloadsResult(outcome.result())); - else - return DescribeOssDownloadsOutcome(outcome.error()); -} - -void RdsClient::describeOssDownloadsAsync(const DescribeOssDownloadsRequest& request, const DescribeOssDownloadsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeOssDownloads(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeOssDownloadsOutcomeCallable RdsClient::describeOssDownloadsCallable(const DescribeOssDownloadsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeOssDownloads(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyParameterOutcome RdsClient::modifyParameter(const ModifyParameterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyParameterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyParameterOutcome(ModifyParameterResult(outcome.result())); - else - return ModifyParameterOutcome(outcome.error()); -} - -void RdsClient::modifyParameterAsync(const ModifyParameterRequest& request, const ModifyParameterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyParameter(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyParameterOutcomeCallable RdsClient::modifyParameterCallable(const ModifyParameterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyParameter(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::UpgradeDBInstanceEngineVersionOutcome RdsClient::upgradeDBInstanceEngineVersion(const UpgradeDBInstanceEngineVersionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpgradeDBInstanceEngineVersionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpgradeDBInstanceEngineVersionOutcome(UpgradeDBInstanceEngineVersionResult(outcome.result())); - else - return UpgradeDBInstanceEngineVersionOutcome(outcome.error()); -} - -void RdsClient::upgradeDBInstanceEngineVersionAsync(const UpgradeDBInstanceEngineVersionRequest& request, const UpgradeDBInstanceEngineVersionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, upgradeDBInstanceEngineVersion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::UpgradeDBInstanceEngineVersionOutcomeCallable RdsClient::upgradeDBInstanceEngineVersionCallable(const UpgradeDBInstanceEngineVersionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->upgradeDBInstanceEngineVersion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceConnectionStringOutcome RdsClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceConnectionStringOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceConnectionStringOutcome(ModifyDBInstanceConnectionStringResult(outcome.result())); - else - return ModifyDBInstanceConnectionStringOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceConnectionStringAsync(const ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceConnectionString(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceConnectionStringOutcomeCallable RdsClient::modifyDBInstanceConnectionStringCallable(const ModifyDBInstanceConnectionStringRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceConnectionString(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CheckAccountNameAvailableOutcome RdsClient::checkAccountNameAvailable(const CheckAccountNameAvailableRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CheckAccountNameAvailableOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CheckAccountNameAvailableOutcome(CheckAccountNameAvailableResult(outcome.result())); - else - return CheckAccountNameAvailableOutcome(outcome.error()); -} - -void RdsClient::checkAccountNameAvailableAsync(const CheckAccountNameAvailableRequest& request, const CheckAccountNameAvailableAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, checkAccountNameAvailable(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CheckAccountNameAvailableOutcomeCallable RdsClient::checkAccountNameAvailableCallable(const CheckAccountNameAvailableRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->checkAccountNameAvailable(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RestartDBInstanceOutcome RdsClient::restartDBInstance(const RestartDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RestartDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RestartDBInstanceOutcome(RestartDBInstanceResult(outcome.result())); - else - return RestartDBInstanceOutcome(outcome.error()); -} - -void RdsClient::restartDBInstanceAsync(const RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, restartDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RestartDBInstanceOutcomeCallable RdsClient::restartDBInstanceCallable(const RestartDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->restartDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeTemplatesListOutcome RdsClient::describeTemplatesList(const DescribeTemplatesListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTemplatesListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTemplatesListOutcome(DescribeTemplatesListResult(outcome.result())); - else - return DescribeTemplatesListOutcome(outcome.error()); -} - -void RdsClient::describeTemplatesListAsync(const DescribeTemplatesListRequest& request, const DescribeTemplatesListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTemplatesList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeTemplatesListOutcomeCallable RdsClient::describeTemplatesListCallable(const DescribeTemplatesListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTemplatesList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ImportDataForSQLServerOutcome RdsClient::importDataForSQLServer(const ImportDataForSQLServerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ImportDataForSQLServerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ImportDataForSQLServerOutcome(ImportDataForSQLServerResult(outcome.result())); - else - return ImportDataForSQLServerOutcome(outcome.error()); -} - -void RdsClient::importDataForSQLServerAsync(const ImportDataForSQLServerRequest& request, const ImportDataForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, importDataForSQLServer(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ImportDataForSQLServerOutcomeCallable RdsClient::importDataForSQLServerCallable(const ImportDataForSQLServerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->importDataForSQLServer(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifySecurityGroupConfigurationOutcome RdsClient::modifySecurityGroupConfiguration(const ModifySecurityGroupConfigurationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySecurityGroupConfigurationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySecurityGroupConfigurationOutcome(ModifySecurityGroupConfigurationResult(outcome.result())); - else - return ModifySecurityGroupConfigurationOutcome(outcome.error()); -} - -void RdsClient::modifySecurityGroupConfigurationAsync(const ModifySecurityGroupConfigurationRequest& request, const ModifySecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySecurityGroupConfiguration(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifySecurityGroupConfigurationOutcomeCallable RdsClient::modifySecurityGroupConfigurationCallable(const ModifySecurityGroupConfigurationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySecurityGroupConfiguration(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeTagsOutcome RdsClient::describeTags(const DescribeTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); - else - return DescribeTagsOutcome(outcome.error()); -} - -void RdsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeTagsOutcomeCallable RdsClient::describeTagsCallable(const DescribeTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CheckResourceOutcome RdsClient::checkResource(const CheckResourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CheckResourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CheckResourceOutcome(CheckResourceResult(outcome.result())); - else - return CheckResourceOutcome(outcome.error()); -} - -void RdsClient::checkResourceAsync(const CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, checkResource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CheckResourceOutcomeCallable RdsClient::checkResourceCallable(const CheckResourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->checkResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeCharacterSetNameOutcome RdsClient::describeCharacterSetName(const DescribeCharacterSetNameRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCharacterSetNameOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCharacterSetNameOutcome(DescribeCharacterSetNameResult(outcome.result())); - else - return DescribeCharacterSetNameOutcome(outcome.error()); -} - -void RdsClient::describeCharacterSetNameAsync(const DescribeCharacterSetNameRequest& request, const DescribeCharacterSetNameAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCharacterSetName(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeCharacterSetNameOutcomeCallable RdsClient::describeCharacterSetNameCallable(const DescribeCharacterSetNameRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCharacterSetName(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeMigrateTasksOutcome RdsClient::describeMigrateTasks(const DescribeMigrateTasksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMigrateTasksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMigrateTasksOutcome(DescribeMigrateTasksResult(outcome.result())); - else - return DescribeMigrateTasksOutcome(outcome.error()); -} - -void RdsClient::describeMigrateTasksAsync(const DescribeMigrateTasksRequest& request, const DescribeMigrateTasksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMigrateTasks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeMigrateTasksOutcomeCallable RdsClient::describeMigrateTasksCallable(const DescribeMigrateTasksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMigrateTasks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceNetworkExpireTimeOutcome RdsClient::modifyDBInstanceNetworkExpireTime(const ModifyDBInstanceNetworkExpireTimeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceNetworkExpireTimeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceNetworkExpireTimeOutcome(ModifyDBInstanceNetworkExpireTimeResult(outcome.result())); - else - return ModifyDBInstanceNetworkExpireTimeOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceNetworkExpireTimeAsync(const ModifyDBInstanceNetworkExpireTimeRequest& request, const ModifyDBInstanceNetworkExpireTimeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceNetworkExpireTime(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceNetworkExpireTimeOutcomeCallable RdsClient::modifyDBInstanceNetworkExpireTimeCallable(const ModifyDBInstanceNetworkExpireTimeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceNetworkExpireTime(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateAccountOutcome RdsClient::createAccount(const CreateAccountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateAccountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateAccountOutcome(CreateAccountResult(outcome.result())); - else - return CreateAccountOutcome(outcome.error()); -} - -void RdsClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createAccount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateAccountOutcomeCallable RdsClient::createAccountCallable(const CreateAccountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createAccount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeModifyParameterLogOutcome RdsClient::describeModifyParameterLog(const DescribeModifyParameterLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeModifyParameterLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeModifyParameterLogOutcome(DescribeModifyParameterLogResult(outcome.result())); - else - return DescribeModifyParameterLogOutcome(outcome.error()); -} - -void RdsClient::describeModifyParameterLogAsync(const DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeModifyParameterLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeModifyParameterLogOutcomeCallable RdsClient::describeModifyParameterLogCallable(const DescribeModifyParameterLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeModifyParameterLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RecoveryDBInstanceOutcome RdsClient::recoveryDBInstance(const RecoveryDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RecoveryDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RecoveryDBInstanceOutcome(RecoveryDBInstanceResult(outcome.result())); - else - return RecoveryDBInstanceOutcome(outcome.error()); -} - -void RdsClient::recoveryDBInstanceAsync(const RecoveryDBInstanceRequest& request, const RecoveryDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, recoveryDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RecoveryDBInstanceOutcomeCallable RdsClient::recoveryDBInstanceCallable(const RecoveryDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->recoveryDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBDescriptionOutcome RdsClient::modifyDBDescription(const ModifyDBDescriptionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBDescriptionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBDescriptionOutcome(ModifyDBDescriptionResult(outcome.result())); - else - return ModifyDBDescriptionOutcome(outcome.error()); -} - -void RdsClient::modifyDBDescriptionAsync(const ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBDescription(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBDescriptionOutcomeCallable RdsClient::modifyDBDescriptionCallable(const ModifyDBDescriptionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBDescription(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ImportDatabaseBetweenInstancesOutcome RdsClient::importDatabaseBetweenInstances(const ImportDatabaseBetweenInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ImportDatabaseBetweenInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ImportDatabaseBetweenInstancesOutcome(ImportDatabaseBetweenInstancesResult(outcome.result())); - else - return ImportDatabaseBetweenInstancesOutcome(outcome.error()); -} - -void RdsClient::importDatabaseBetweenInstancesAsync(const ImportDatabaseBetweenInstancesRequest& request, const ImportDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, importDatabaseBetweenInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ImportDatabaseBetweenInstancesOutcomeCallable RdsClient::importDatabaseBetweenInstancesCallable(const ImportDatabaseBetweenInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->importDatabaseBetweenInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RenewInstanceOutcome RdsClient::renewInstance(const RenewInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RenewInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); - else - return RenewInstanceOutcome(outcome.error()); -} - -void RdsClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, renewInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RenewInstanceOutcomeCallable RdsClient::renewInstanceCallable(const RenewInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->renewInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceMonitorOutcome RdsClient::modifyDBInstanceMonitor(const ModifyDBInstanceMonitorRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceMonitorOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceMonitorOutcome(ModifyDBInstanceMonitorResult(outcome.result())); - else - return ModifyDBInstanceMonitorOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceMonitorAsync(const ModifyDBInstanceMonitorRequest& request, const ModifyDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceMonitor(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceMonitorOutcomeCallable RdsClient::modifyDBInstanceMonitorCallable(const ModifyDBInstanceMonitorRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceMonitor(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSQLLogFilesOutcome RdsClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogFilesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogFilesOutcome(DescribeSQLLogFilesResult(outcome.result())); - else - return DescribeSQLLogFilesOutcome(outcome.error()); -} - -void RdsClient::describeSQLLogFilesAsync(const DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogFiles(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSQLLogFilesOutcomeCallable RdsClient::describeSQLLogFilesCallable(const DescribeSQLLogFilesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogFiles(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CancelImportOutcome RdsClient::cancelImport(const CancelImportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CancelImportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CancelImportOutcome(CancelImportResult(outcome.result())); - else - return CancelImportOutcome(outcome.error()); -} - -void RdsClient::cancelImportAsync(const CancelImportRequest& request, const CancelImportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cancelImport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CancelImportOutcomeCallable RdsClient::cancelImportCallable(const CancelImportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cancelImport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyReplicaDescriptionOutcome RdsClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyReplicaDescriptionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyReplicaDescriptionOutcome(ModifyReplicaDescriptionResult(outcome.result())); - else - return ModifyReplicaDescriptionOutcome(outcome.error()); -} - -void RdsClient::modifyReplicaDescriptionAsync(const ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyReplicaDescription(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyReplicaDescriptionOutcomeCallable RdsClient::modifyReplicaDescriptionCallable(const ModifyReplicaDescriptionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyReplicaDescription(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyBackupPolicyOutcome RdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyBackupPolicyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); - else - return ModifyBackupPolicyOutcome(outcome.error()); -} - -void RdsClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyBackupPolicy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyBackupPolicyOutcomeCallable RdsClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyBackupPolicy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSecurityGroupConfigurationOutcome RdsClient::describeSecurityGroupConfiguration(const DescribeSecurityGroupConfigurationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSecurityGroupConfigurationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSecurityGroupConfigurationOutcome(DescribeSecurityGroupConfigurationResult(outcome.result())); - else - return DescribeSecurityGroupConfigurationOutcome(outcome.error()); -} - -void RdsClient::describeSecurityGroupConfigurationAsync(const DescribeSecurityGroupConfigurationRequest& request, const DescribeSecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSecurityGroupConfiguration(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSecurityGroupConfigurationOutcomeCallable RdsClient::describeSecurityGroupConfigurationCallable(const DescribeSecurityGroupConfigurationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSecurityGroupConfiguration(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeParametersOutcome RdsClient::describeParameters(const DescribeParametersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeParametersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeParametersOutcome(DescribeParametersResult(outcome.result())); - else - return DescribeParametersOutcome(outcome.error()); -} - -void RdsClient::describeParametersAsync(const DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeParameters(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeParametersOutcomeCallable RdsClient::describeParametersCallable(const DescribeParametersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeParameters(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::AddTagsToResourceOutcome RdsClient::addTagsToResource(const AddTagsToResourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddTagsToResourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddTagsToResourceOutcome(AddTagsToResourceResult(outcome.result())); - else - return AddTagsToResourceOutcome(outcome.error()); -} - -void RdsClient::addTagsToResourceAsync(const AddTagsToResourceRequest& request, const AddTagsToResourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addTagsToResource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::AddTagsToResourceOutcomeCallable RdsClient::addTagsToResourceCallable(const AddTagsToResourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addTagsToResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeBinlogFilesOutcome RdsClient::describeBinlogFiles(const DescribeBinlogFilesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeBinlogFilesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeBinlogFilesOutcome(DescribeBinlogFilesResult(outcome.result())); - else - return DescribeBinlogFilesOutcome(outcome.error()); -} - -void RdsClient::describeBinlogFilesAsync(const DescribeBinlogFilesRequest& request, const DescribeBinlogFilesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeBinlogFiles(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeBinlogFilesOutcomeCallable RdsClient::describeBinlogFilesCallable(const DescribeBinlogFilesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeBinlogFiles(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceProxyConfigurationOutcome RdsClient::describeDBInstanceProxyConfiguration(const DescribeDBInstanceProxyConfigurationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceProxyConfigurationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceProxyConfigurationOutcome(DescribeDBInstanceProxyConfigurationResult(outcome.result())); - else - return DescribeDBInstanceProxyConfigurationOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceProxyConfigurationAsync(const DescribeDBInstanceProxyConfigurationRequest& request, const DescribeDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceProxyConfiguration(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceProxyConfigurationOutcomeCallable RdsClient::describeDBInstanceProxyConfigurationCallable(const DescribeDBInstanceProxyConfigurationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceProxyConfiguration(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateDiagnosticReportOutcome RdsClient::createDiagnosticReport(const CreateDiagnosticReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDiagnosticReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDiagnosticReportOutcome(CreateDiagnosticReportResult(outcome.result())); - else - return CreateDiagnosticReportOutcome(outcome.error()); -} - -void RdsClient::createDiagnosticReportAsync(const CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDiagnosticReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateDiagnosticReportOutcomeCallable RdsClient::createDiagnosticReportCallable(const CreateDiagnosticReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDiagnosticReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSQLLogReportListOutcome RdsClient::describeSQLLogReportList(const DescribeSQLLogReportListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogReportListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogReportListOutcome(DescribeSQLLogReportListResult(outcome.result())); - else - return DescribeSQLLogReportListOutcome(outcome.error()); -} - -void RdsClient::describeSQLLogReportListAsync(const DescribeSQLLogReportListRequest& request, const DescribeSQLLogReportListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogReportList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSQLLogReportListOutcomeCallable RdsClient::describeSQLLogReportListCallable(const DescribeSQLLogReportListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogReportList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeReadDBInstanceDelayOutcome RdsClient::describeReadDBInstanceDelay(const DescribeReadDBInstanceDelayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeReadDBInstanceDelayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeReadDBInstanceDelayOutcome(DescribeReadDBInstanceDelayResult(outcome.result())); - else - return DescribeReadDBInstanceDelayOutcome(outcome.error()); -} - -void RdsClient::describeReadDBInstanceDelayAsync(const DescribeReadDBInstanceDelayRequest& request, const DescribeReadDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeReadDBInstanceDelay(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeReadDBInstanceDelayOutcomeCallable RdsClient::describeReadDBInstanceDelayCallable(const DescribeReadDBInstanceDelayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeReadDBInstanceDelay(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CloneDBInstanceOutcome RdsClient::cloneDBInstance(const CloneDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CloneDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CloneDBInstanceOutcome(CloneDBInstanceResult(outcome.result())); - else - return CloneDBInstanceOutcome(outcome.error()); -} - -void RdsClient::cloneDBInstanceAsync(const CloneDBInstanceRequest& request, const CloneDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cloneDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CloneDBInstanceOutcomeCallable RdsClient::cloneDBInstanceCallable(const CloneDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cloneDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeTasksOutcome RdsClient::describeTasks(const DescribeTasksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTasksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTasksOutcome(DescribeTasksResult(outcome.result())); - else - return DescribeTasksOutcome(outcome.error()); -} - -void RdsClient::describeTasksAsync(const DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTasks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeTasksOutcomeCallable RdsClient::describeTasksCallable(const DescribeTasksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTasks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeRenewalPriceOutcome RdsClient::describeRenewalPrice(const DescribeRenewalPriceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRenewalPriceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRenewalPriceOutcome(DescribeRenewalPriceResult(outcome.result())); - else - return DescribeRenewalPriceOutcome(outcome.error()); -} - -void RdsClient::describeRenewalPriceAsync(const DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRenewalPrice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeRenewalPriceOutcomeCallable RdsClient::describeRenewalPriceCallable(const DescribeRenewalPriceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRenewalPrice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::AllocateInstancePublicConnectionOutcome RdsClient::allocateInstancePublicConnection(const AllocateInstancePublicConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AllocateInstancePublicConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AllocateInstancePublicConnectionOutcome(AllocateInstancePublicConnectionResult(outcome.result())); - else - return AllocateInstancePublicConnectionOutcome(outcome.error()); -} - -void RdsClient::allocateInstancePublicConnectionAsync(const AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, allocateInstancePublicConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::AllocateInstancePublicConnectionOutcomeCallable RdsClient::allocateInstancePublicConnectionCallable(const AllocateInstancePublicConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->allocateInstancePublicConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceAttributeOutcome RdsClient::describeDBInstanceAttribute(const DescribeDBInstanceAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceAttributeOutcome(DescribeDBInstanceAttributeResult(outcome.result())); - else - return DescribeDBInstanceAttributeOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceAttributeAsync(const DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceAttributeOutcomeCallable RdsClient::describeDBInstanceAttributeCallable(const DescribeDBInstanceAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CheckInstanceExistOutcome RdsClient::checkInstanceExist(const CheckInstanceExistRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CheckInstanceExistOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CheckInstanceExistOutcome(CheckInstanceExistResult(outcome.result())); - else - return CheckInstanceExistOutcome(outcome.error()); -} - -void RdsClient::checkInstanceExistAsync(const CheckInstanceExistRequest& request, const CheckInstanceExistAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, checkInstanceExist(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CheckInstanceExistOutcomeCallable RdsClient::checkInstanceExistCallable(const CheckInstanceExistRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->checkInstanceExist(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateTempDBInstanceOutcome RdsClient::createTempDBInstance(const CreateTempDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateTempDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateTempDBInstanceOutcome(CreateTempDBInstanceResult(outcome.result())); - else - return CreateTempDBInstanceOutcome(outcome.error()); -} - -void RdsClient::createTempDBInstanceAsync(const CreateTempDBInstanceRequest& request, const CreateTempDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createTempDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateTempDBInstanceOutcomeCallable RdsClient::createTempDBInstanceCallable(const CreateTempDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createTempDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyInstanceAutoRenewalAttributeOutcome RdsClient::modifyInstanceAutoRenewalAttribute(const ModifyInstanceAutoRenewalAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyInstanceAutoRenewalAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyInstanceAutoRenewalAttributeOutcome(ModifyInstanceAutoRenewalAttributeResult(outcome.result())); - else - return ModifyInstanceAutoRenewalAttributeOutcome(outcome.error()); -} - -void RdsClient::modifyInstanceAutoRenewalAttributeAsync(const ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyInstanceAutoRenewalAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyInstanceAutoRenewalAttributeOutcomeCallable RdsClient::modifyInstanceAutoRenewalAttributeCallable(const ModifyInstanceAutoRenewalAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyInstanceAutoRenewalAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifySQLCollectorPolicyOutcome RdsClient::modifySQLCollectorPolicy(const ModifySQLCollectorPolicyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySQLCollectorPolicyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySQLCollectorPolicyOutcome(ModifySQLCollectorPolicyResult(outcome.result())); - else - return ModifySQLCollectorPolicyOutcome(outcome.error()); -} - -void RdsClient::modifySQLCollectorPolicyAsync(const ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySQLCollectorPolicy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifySQLCollectorPolicyOutcomeCallable RdsClient::modifySQLCollectorPolicyCallable(const ModifySQLCollectorPolicyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySQLCollectorPolicy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::AllocateInstanceVpcNetworkTypeOutcome RdsClient::allocateInstanceVpcNetworkType(const AllocateInstanceVpcNetworkTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AllocateInstanceVpcNetworkTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AllocateInstanceVpcNetworkTypeOutcome(AllocateInstanceVpcNetworkTypeResult(outcome.result())); - else - return AllocateInstanceVpcNetworkTypeOutcome(outcome.error()); -} - -void RdsClient::allocateInstanceVpcNetworkTypeAsync(const AllocateInstanceVpcNetworkTypeRequest& request, const AllocateInstanceVpcNetworkTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, allocateInstanceVpcNetworkType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::AllocateInstanceVpcNetworkTypeOutcomeCallable RdsClient::allocateInstanceVpcNetworkTypeCallable(const AllocateInstanceVpcNetworkTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->allocateInstanceVpcNetworkType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeBackupsOutcome RdsClient::describeBackups(const DescribeBackupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeBackupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeBackupsOutcome(DescribeBackupsResult(outcome.result())); - else - return DescribeBackupsOutcome(outcome.error()); -} - -void RdsClient::describeBackupsAsync(const DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeBackups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeBackupsOutcomeCallable RdsClient::describeBackupsCallable(const DescribeBackupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeBackups(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateDatabaseOutcome RdsClient::createDatabase(const CreateDatabaseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDatabaseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDatabaseOutcome(CreateDatabaseResult(outcome.result())); - else - return CreateDatabaseOutcome(outcome.error()); -} - -void RdsClient::createDatabaseAsync(const CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDatabase(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateDatabaseOutcomeCallable RdsClient::createDatabaseCallable(const CreateDatabaseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDatabase(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeCollationTimeZonesOutcome RdsClient::describeCollationTimeZones(const DescribeCollationTimeZonesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCollationTimeZonesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCollationTimeZonesOutcome(DescribeCollationTimeZonesResult(outcome.result())); - else - return DescribeCollationTimeZonesOutcome(outcome.error()); -} - -void RdsClient::describeCollationTimeZonesAsync(const DescribeCollationTimeZonesRequest& request, const DescribeCollationTimeZonesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCollationTimeZones(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeCollationTimeZonesOutcomeCallable RdsClient::describeCollationTimeZonesCallable(const DescribeCollationTimeZonesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCollationTimeZones(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DeleteDBInstanceOutcome RdsClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDBInstanceOutcome(DeleteDBInstanceResult(outcome.result())); - else - return DeleteDBInstanceOutcome(outcome.error()); -} - -void RdsClient::deleteDBInstanceAsync(const DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DeleteDBInstanceOutcomeCallable RdsClient::deleteDBInstanceCallable(const DeleteDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyReadonlyInstanceDelayReplicationTimeOutcome RdsClient::modifyReadonlyInstanceDelayReplicationTime(const ModifyReadonlyInstanceDelayReplicationTimeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyReadonlyInstanceDelayReplicationTimeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyReadonlyInstanceDelayReplicationTimeOutcome(ModifyReadonlyInstanceDelayReplicationTimeResult(outcome.result())); - else - return ModifyReadonlyInstanceDelayReplicationTimeOutcome(outcome.error()); -} - -void RdsClient::modifyReadonlyInstanceDelayReplicationTimeAsync(const ModifyReadonlyInstanceDelayReplicationTimeRequest& request, const ModifyReadonlyInstanceDelayReplicationTimeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyReadonlyInstanceDelayReplicationTime(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyReadonlyInstanceDelayReplicationTimeOutcomeCallable RdsClient::modifyReadonlyInstanceDelayReplicationTimeCallable(const ModifyReadonlyInstanceDelayReplicationTimeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyReadonlyInstanceDelayReplicationTime(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeInstanceAutoRenewalAttributeOutcome RdsClient::describeInstanceAutoRenewalAttribute(const DescribeInstanceAutoRenewalAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeInstanceAutoRenewalAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeInstanceAutoRenewalAttributeOutcome(DescribeInstanceAutoRenewalAttributeResult(outcome.result())); - else - return DescribeInstanceAutoRenewalAttributeOutcome(outcome.error()); -} - -void RdsClient::describeInstanceAutoRenewalAttributeAsync(const DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeInstanceAutoRenewalAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeInstanceAutoRenewalAttributeOutcomeCallable RdsClient::describeInstanceAutoRenewalAttributeCallable(const DescribeInstanceAutoRenewalAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeInstanceAutoRenewalAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::SwitchDBInstanceVpcOutcome RdsClient::switchDBInstanceVpc(const SwitchDBInstanceVpcRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchDBInstanceVpcOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchDBInstanceVpcOutcome(SwitchDBInstanceVpcResult(outcome.result())); - else - return SwitchDBInstanceVpcOutcome(outcome.error()); -} - -void RdsClient::switchDBInstanceVpcAsync(const SwitchDBInstanceVpcRequest& request, const SwitchDBInstanceVpcAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchDBInstanceVpc(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::SwitchDBInstanceVpcOutcomeCallable RdsClient::switchDBInstanceVpcCallable(const SwitchDBInstanceVpcRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchDBInstanceVpc(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RestoreDBInstanceOutcome RdsClient::restoreDBInstance(const RestoreDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RestoreDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RestoreDBInstanceOutcome(RestoreDBInstanceResult(outcome.result())); - else - return RestoreDBInstanceOutcome(outcome.error()); -} - -void RdsClient::restoreDBInstanceAsync(const RestoreDBInstanceRequest& request, const RestoreDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, restoreDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RestoreDBInstanceOutcomeCallable RdsClient::restoreDBInstanceCallable(const RestoreDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->restoreDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RevokeOperatorPermissionOutcome RdsClient::revokeOperatorPermission(const RevokeOperatorPermissionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RevokeOperatorPermissionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RevokeOperatorPermissionOutcome(RevokeOperatorPermissionResult(outcome.result())); - else - return RevokeOperatorPermissionOutcome(outcome.error()); -} - -void RdsClient::revokeOperatorPermissionAsync(const RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, revokeOperatorPermission(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RevokeOperatorPermissionOutcomeCallable RdsClient::revokeOperatorPermissionCallable(const RevokeOperatorPermissionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->revokeOperatorPermission(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceSpecOutcome RdsClient::modifyDBInstanceSpec(const ModifyDBInstanceSpecRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceSpecOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceSpecOutcome(ModifyDBInstanceSpecResult(outcome.result())); - else - return ModifyDBInstanceSpecOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceSpecAsync(const ModifyDBInstanceSpecRequest& request, const ModifyDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceSpec(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceSpecOutcomeCallable RdsClient::modifyDBInstanceSpecCallable(const ModifyDBInstanceSpecRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceSpec(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDiagnosticReportListOutcome RdsClient::describeDiagnosticReportList(const DescribeDiagnosticReportListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDiagnosticReportListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDiagnosticReportListOutcome(DescribeDiagnosticReportListResult(outcome.result())); - else - return DescribeDiagnosticReportListOutcome(outcome.error()); -} - -void RdsClient::describeDiagnosticReportListAsync(const DescribeDiagnosticReportListRequest& request, const DescribeDiagnosticReportListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDiagnosticReportList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDiagnosticReportListOutcomeCallable RdsClient::describeDiagnosticReportListCallable(const DescribeDiagnosticReportListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDiagnosticReportList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::MigrateSecurityIPModeOutcome RdsClient::migrateSecurityIPMode(const MigrateSecurityIPModeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MigrateSecurityIPModeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MigrateSecurityIPModeOutcome(MigrateSecurityIPModeResult(outcome.result())); - else - return MigrateSecurityIPModeOutcome(outcome.error()); -} - -void RdsClient::migrateSecurityIPModeAsync(const MigrateSecurityIPModeRequest& request, const MigrateSecurityIPModeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, migrateSecurityIPMode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::MigrateSecurityIPModeOutcomeCallable RdsClient::migrateSecurityIPModeCallable(const MigrateSecurityIPModeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->migrateSecurityIPMode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RemoveTagsFromResourceOutcome RdsClient::removeTagsFromResource(const RemoveTagsFromResourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveTagsFromResourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveTagsFromResourceOutcome(RemoveTagsFromResourceResult(outcome.result())); - else - return RemoveTagsFromResourceOutcome(outcome.error()); -} - -void RdsClient::removeTagsFromResourceAsync(const RemoveTagsFromResourceRequest& request, const RemoveTagsFromResourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeTagsFromResource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RemoveTagsFromResourceOutcomeCallable RdsClient::removeTagsFromResourceCallable(const RemoveTagsFromResourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeTagsFromResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSQLLogRecordsOutcome RdsClient::describeSQLLogRecords(const DescribeSQLLogRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogRecordsOutcome(DescribeSQLLogRecordsResult(outcome.result())); - else - return DescribeSQLLogRecordsOutcome(outcome.error()); -} - -void RdsClient::describeSQLLogRecordsAsync(const DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSQLLogRecordsOutcomeCallable RdsClient::describeSQLLogRecordsCallable(const DescribeSQLLogRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifySecurityIpsOutcome RdsClient::modifySecurityIps(const ModifySecurityIpsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySecurityIpsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySecurityIpsOutcome(ModifySecurityIpsResult(outcome.result())); - else - return ModifySecurityIpsOutcome(outcome.error()); -} - -void RdsClient::modifySecurityIpsAsync(const ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySecurityIps(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifySecurityIpsOutcomeCallable RdsClient::modifySecurityIpsCallable(const ModifySecurityIpsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySecurityIps(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeMigrateTasksForSQLServerOutcome RdsClient::describeMigrateTasksForSQLServer(const DescribeMigrateTasksForSQLServerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMigrateTasksForSQLServerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMigrateTasksForSQLServerOutcome(DescribeMigrateTasksForSQLServerResult(outcome.result())); - else - return DescribeMigrateTasksForSQLServerOutcome(outcome.error()); -} - -void RdsClient::describeMigrateTasksForSQLServerAsync(const DescribeMigrateTasksForSQLServerRequest& request, const DescribeMigrateTasksForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMigrateTasksForSQLServer(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeMigrateTasksForSQLServerOutcomeCallable RdsClient::describeMigrateTasksForSQLServerCallable(const DescribeMigrateTasksForSQLServerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMigrateTasksForSQLServer(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RestoreTableOutcome RdsClient::restoreTable(const RestoreTableRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RestoreTableOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RestoreTableOutcome(RestoreTableResult(outcome.result())); - else - return RestoreTableOutcome(outcome.error()); -} - -void RdsClient::restoreTableAsync(const RestoreTableRequest& request, const RestoreTableAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, restoreTable(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RestoreTableOutcomeCallable RdsClient::restoreTableCallable(const RestoreTableRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->restoreTable(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateOnlineDatabaseTaskOutcome RdsClient::createOnlineDatabaseTask(const CreateOnlineDatabaseTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateOnlineDatabaseTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateOnlineDatabaseTaskOutcome(CreateOnlineDatabaseTaskResult(outcome.result())); - else - return CreateOnlineDatabaseTaskOutcome(outcome.error()); -} - -void RdsClient::createOnlineDatabaseTaskAsync(const CreateOnlineDatabaseTaskRequest& request, const CreateOnlineDatabaseTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createOnlineDatabaseTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateOnlineDatabaseTaskOutcomeCallable RdsClient::createOnlineDatabaseTaskCallable(const CreateOnlineDatabaseTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createOnlineDatabaseTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::GrantAccountPrivilegeOutcome RdsClient::grantAccountPrivilege(const GrantAccountPrivilegeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GrantAccountPrivilegeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GrantAccountPrivilegeOutcome(GrantAccountPrivilegeResult(outcome.result())); - else - return GrantAccountPrivilegeOutcome(outcome.error()); -} - -void RdsClient::grantAccountPrivilegeAsync(const GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, grantAccountPrivilege(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::GrantAccountPrivilegeOutcomeCallable RdsClient::grantAccountPrivilegeCallable(const GrantAccountPrivilegeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->grantAccountPrivilege(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::GrantOperatorPermissionOutcome RdsClient::grantOperatorPermission(const GrantOperatorPermissionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GrantOperatorPermissionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GrantOperatorPermissionOutcome(GrantOperatorPermissionResult(outcome.result())); - else - return GrantOperatorPermissionOutcome(outcome.error()); -} - -void RdsClient::grantOperatorPermissionAsync(const GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, grantOperatorPermission(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::GrantOperatorPermissionOutcomeCallable RdsClient::grantOperatorPermissionCallable(const GrantOperatorPermissionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->grantOperatorPermission(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceTDEOutcome RdsClient::modifyDBInstanceTDE(const ModifyDBInstanceTDERequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceTDEOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceTDEOutcome(ModifyDBInstanceTDEResult(outcome.result())); - else - return ModifyDBInstanceTDEOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceTDEAsync(const ModifyDBInstanceTDERequest& request, const ModifyDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceTDE(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceTDEOutcomeCallable RdsClient::modifyDBInstanceTDECallable(const ModifyDBInstanceTDERequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceTDE(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstancePerformanceOutcome RdsClient::describeDBInstancePerformance(const DescribeDBInstancePerformanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstancePerformanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstancePerformanceOutcome(DescribeDBInstancePerformanceResult(outcome.result())); - else - return DescribeDBInstancePerformanceOutcome(outcome.error()); -} - -void RdsClient::describeDBInstancePerformanceAsync(const DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstancePerformance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstancePerformanceOutcomeCallable RdsClient::describeDBInstancePerformanceCallable(const DescribeDBInstancePerformanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstancePerformance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstancesOutcome RdsClient::describeDBInstances(const DescribeDBInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstancesOutcome(DescribeDBInstancesResult(outcome.result())); - else - return DescribeDBInstancesOutcome(outcome.error()); -} - -void RdsClient::describeDBInstancesAsync(const DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstancesOutcomeCallable RdsClient::describeDBInstancesCallable(const DescribeDBInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RequestServiceOfCloudDBExpertOutcome RdsClient::requestServiceOfCloudDBExpert(const RequestServiceOfCloudDBExpertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RequestServiceOfCloudDBExpertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RequestServiceOfCloudDBExpertOutcome(RequestServiceOfCloudDBExpertResult(outcome.result())); - else - return RequestServiceOfCloudDBExpertOutcome(outcome.error()); -} - -void RdsClient::requestServiceOfCloudDBExpertAsync(const RequestServiceOfCloudDBExpertRequest& request, const RequestServiceOfCloudDBExpertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, requestServiceOfCloudDBExpert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RequestServiceOfCloudDBExpertOutcomeCallable RdsClient::requestServiceOfCloudDBExpertCallable(const RequestServiceOfCloudDBExpertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->requestServiceOfCloudDBExpert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeBackupDatabaseOutcome RdsClient::describeBackupDatabase(const DescribeBackupDatabaseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeBackupDatabaseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeBackupDatabaseOutcome(DescribeBackupDatabaseResult(outcome.result())); - else - return DescribeBackupDatabaseOutcome(outcome.error()); -} - -void RdsClient::describeBackupDatabaseAsync(const DescribeBackupDatabaseRequest& request, const DescribeBackupDatabaseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeBackupDatabase(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeBackupDatabaseOutcomeCallable RdsClient::describeBackupDatabaseCallable(const DescribeBackupDatabaseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeBackupDatabase(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateDBInstanceReplicaOutcome RdsClient::createDBInstanceReplica(const CreateDBInstanceReplicaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDBInstanceReplicaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDBInstanceReplicaOutcome(CreateDBInstanceReplicaResult(outcome.result())); - else - return CreateDBInstanceReplicaOutcome(outcome.error()); -} - -void RdsClient::createDBInstanceReplicaAsync(const CreateDBInstanceReplicaRequest& request, const CreateDBInstanceReplicaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDBInstanceReplica(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateDBInstanceReplicaOutcomeCallable RdsClient::createDBInstanceReplicaCallable(const CreateDBInstanceReplicaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDBInstanceReplica(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::AllocateInstancePrivateConnectionOutcome RdsClient::allocateInstancePrivateConnection(const AllocateInstancePrivateConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AllocateInstancePrivateConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AllocateInstancePrivateConnectionOutcome(AllocateInstancePrivateConnectionResult(outcome.result())); - else - return AllocateInstancePrivateConnectionOutcome(outcome.error()); -} - -void RdsClient::allocateInstancePrivateConnectionAsync(const AllocateInstancePrivateConnectionRequest& request, const AllocateInstancePrivateConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, allocateInstancePrivateConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::AllocateInstancePrivateConnectionOutcomeCallable RdsClient::allocateInstancePrivateConnectionCallable(const AllocateInstancePrivateConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->allocateInstancePrivateConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::RevokeAccountPrivilegeOutcome RdsClient::revokeAccountPrivilege(const RevokeAccountPrivilegeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RevokeAccountPrivilegeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RevokeAccountPrivilegeOutcome(RevokeAccountPrivilegeResult(outcome.result())); - else - return RevokeAccountPrivilegeOutcome(outcome.error()); -} - -void RdsClient::revokeAccountPrivilegeAsync(const RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, revokeAccountPrivilege(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::RevokeAccountPrivilegeOutcomeCallable RdsClient::revokeAccountPrivilegeCallable(const RevokeAccountPrivilegeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->revokeAccountPrivilege(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeParameterTemplatesOutcome RdsClient::describeParameterTemplates(const DescribeParameterTemplatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeParameterTemplatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeParameterTemplatesOutcome(DescribeParameterTemplatesResult(outcome.result())); - else - return DescribeParameterTemplatesOutcome(outcome.error()); -} - -void RdsClient::describeParameterTemplatesAsync(const DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeParameterTemplates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeParameterTemplatesOutcomeCallable RdsClient::describeParameterTemplatesCallable(const DescribeParameterTemplatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeParameterTemplates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescibeImportsFromDatabaseOutcome RdsClient::descibeImportsFromDatabase(const DescibeImportsFromDatabaseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescibeImportsFromDatabaseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescibeImportsFromDatabaseOutcome(DescibeImportsFromDatabaseResult(outcome.result())); - else - return DescibeImportsFromDatabaseOutcome(outcome.error()); -} - -void RdsClient::descibeImportsFromDatabaseAsync(const DescibeImportsFromDatabaseRequest& request, const DescibeImportsFromDatabaseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, descibeImportsFromDatabase(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescibeImportsFromDatabaseOutcomeCallable RdsClient::descibeImportsFromDatabaseCallable(const DescibeImportsFromDatabaseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->descibeImportsFromDatabase(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CopyDatabaseBetweenInstancesOutcome RdsClient::copyDatabaseBetweenInstances(const CopyDatabaseBetweenInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CopyDatabaseBetweenInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CopyDatabaseBetweenInstancesOutcome(CopyDatabaseBetweenInstancesResult(outcome.result())); - else - return CopyDatabaseBetweenInstancesOutcome(outcome.error()); -} - -void RdsClient::copyDatabaseBetweenInstancesAsync(const CopyDatabaseBetweenInstancesRequest& request, const CopyDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, copyDatabaseBetweenInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CopyDatabaseBetweenInstancesOutcomeCallable RdsClient::copyDatabaseBetweenInstancesCallable(const CopyDatabaseBetweenInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->copyDatabaseBetweenInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeInstanceVpcMigrateInfoOutcome RdsClient::describeInstanceVpcMigrateInfo(const DescribeInstanceVpcMigrateInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeInstanceVpcMigrateInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeInstanceVpcMigrateInfoOutcome(DescribeInstanceVpcMigrateInfoResult(outcome.result())); - else - return DescribeInstanceVpcMigrateInfoOutcome(outcome.error()); -} - -void RdsClient::describeInstanceVpcMigrateInfoAsync(const DescribeInstanceVpcMigrateInfoRequest& request, const DescribeInstanceVpcMigrateInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeInstanceVpcMigrateInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeInstanceVpcMigrateInfoOutcomeCallable RdsClient::describeInstanceVpcMigrateInfoCallable(const DescribeInstanceVpcMigrateInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeInstanceVpcMigrateInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CopyDatabaseOutcome RdsClient::copyDatabase(const CopyDatabaseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CopyDatabaseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CopyDatabaseOutcome(CopyDatabaseResult(outcome.result())); - else - return CopyDatabaseOutcome(outcome.error()); -} - -void RdsClient::copyDatabaseAsync(const CopyDatabaseRequest& request, const CopyDatabaseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, copyDatabase(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CopyDatabaseOutcomeCallable RdsClient::copyDatabaseCallable(const CopyDatabaseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->copyDatabase(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateDBInstanceOutcome RdsClient::createDBInstance(const CreateDBInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDBInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDBInstanceOutcome(CreateDBInstanceResult(outcome.result())); - else - return CreateDBInstanceOutcome(outcome.error()); -} - -void RdsClient::createDBInstanceAsync(const CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDBInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateDBInstanceOutcomeCallable RdsClient::createDBInstanceCallable(const CreateDBInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDBInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceSSLOutcome RdsClient::modifyDBInstanceSSL(const ModifyDBInstanceSSLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceSSLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceSSLOutcome(ModifyDBInstanceSSLResult(outcome.result())); - else - return ModifyDBInstanceSSLOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceSSLAsync(const ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceSSL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceSSLOutcomeCallable RdsClient::modifyDBInstanceSSLCallable(const ModifyDBInstanceSSLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceSSL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceTDEOutcome RdsClient::describeDBInstanceTDE(const DescribeDBInstanceTDERequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceTDEOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceTDEOutcome(DescribeDBInstanceTDEResult(outcome.result())); - else - return DescribeDBInstanceTDEOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceTDEAsync(const DescribeDBInstanceTDERequest& request, const DescribeDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceTDE(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceTDEOutcomeCallable RdsClient::describeDBInstanceTDECallable(const DescribeDBInstanceTDERequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceTDE(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSQLLogReportsOutcome RdsClient::describeSQLLogReports(const DescribeSQLLogReportsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogReportsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogReportsOutcome(DescribeSQLLogReportsResult(outcome.result())); - else - return DescribeSQLLogReportsOutcome(outcome.error()); -} - -void RdsClient::describeSQLLogReportsAsync(const DescribeSQLLogReportsRequest& request, const DescribeSQLLogReportsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogReports(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSQLLogReportsOutcomeCallable RdsClient::describeSQLLogReportsCallable(const DescribeSQLLogReportsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogReports(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceConnectionModeOutcome RdsClient::modifyDBInstanceConnectionMode(const ModifyDBInstanceConnectionModeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceConnectionModeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceConnectionModeOutcome(ModifyDBInstanceConnectionModeResult(outcome.result())); - else - return ModifyDBInstanceConnectionModeOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceConnectionModeAsync(const ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceConnectionMode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceConnectionModeOutcomeCallable RdsClient::modifyDBInstanceConnectionModeCallable(const ModifyDBInstanceConnectionModeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceConnectionMode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceNetInfoOutcome RdsClient::describeDBInstanceNetInfo(const DescribeDBInstanceNetInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceNetInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceNetInfoOutcome(DescribeDBInstanceNetInfoResult(outcome.result())); - else - return DescribeDBInstanceNetInfoOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceNetInfoAsync(const DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceNetInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceNetInfoOutcomeCallable RdsClient::describeDBInstanceNetInfoCallable(const DescribeDBInstanceNetInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceNetInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeAvailableResourceOutcome RdsClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAvailableResourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result())); - else - return DescribeAvailableResourceOutcome(outcome.error()); -} - -void RdsClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAvailableResource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeAvailableResourceOutcomeCallable RdsClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAvailableResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::AllocateReadWriteSplittingConnectionOutcome RdsClient::allocateReadWriteSplittingConnection(const AllocateReadWriteSplittingConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AllocateReadWriteSplittingConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AllocateReadWriteSplittingConnectionOutcome(AllocateReadWriteSplittingConnectionResult(outcome.result())); - else - return AllocateReadWriteSplittingConnectionOutcome(outcome.error()); -} - -void RdsClient::allocateReadWriteSplittingConnectionAsync(const AllocateReadWriteSplittingConnectionRequest& request, const AllocateReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, allocateReadWriteSplittingConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::AllocateReadWriteSplittingConnectionOutcomeCallable RdsClient::allocateReadWriteSplittingConnectionCallable(const AllocateReadWriteSplittingConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->allocateReadWriteSplittingConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeCloudDbExpertServiceOutcome RdsClient::describeCloudDbExpertService(const DescribeCloudDbExpertServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCloudDbExpertServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCloudDbExpertServiceOutcome(DescribeCloudDbExpertServiceResult(outcome.result())); - else - return DescribeCloudDbExpertServiceOutcome(outcome.error()); -} - -void RdsClient::describeCloudDbExpertServiceAsync(const DescribeCloudDbExpertServiceRequest& request, const DescribeCloudDbExpertServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCloudDbExpertService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeCloudDbExpertServiceOutcomeCallable RdsClient::describeCloudDbExpertServiceCallable(const DescribeCloudDbExpertServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCloudDbExpertService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::EvaluateSupportByokShowOutcome RdsClient::evaluateSupportByokShow(const EvaluateSupportByokShowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EvaluateSupportByokShowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EvaluateSupportByokShowOutcome(EvaluateSupportByokShowResult(outcome.result())); - else - return EvaluateSupportByokShowOutcome(outcome.error()); -} - -void RdsClient::evaluateSupportByokShowAsync(const EvaluateSupportByokShowRequest& request, const EvaluateSupportByokShowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, evaluateSupportByokShow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::EvaluateSupportByokShowOutcomeCallable RdsClient::evaluateSupportByokShowCallable(const EvaluateSupportByokShowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->evaluateSupportByokShow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ReleaseInstancePublicConnectionOutcome RdsClient::releaseInstancePublicConnection(const ReleaseInstancePublicConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReleaseInstancePublicConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReleaseInstancePublicConnectionOutcome(ReleaseInstancePublicConnectionResult(outcome.result())); - else - return ReleaseInstancePublicConnectionOutcome(outcome.error()); -} - -void RdsClient::releaseInstancePublicConnectionAsync(const ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, releaseInstancePublicConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ReleaseInstancePublicConnectionOutcomeCallable RdsClient::releaseInstancePublicConnectionCallable(const ReleaseInstancePublicConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->releaseInstancePublicConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CalculateDBInstanceWeightOutcome RdsClient::calculateDBInstanceWeight(const CalculateDBInstanceWeightRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CalculateDBInstanceWeightOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CalculateDBInstanceWeightOutcome(CalculateDBInstanceWeightResult(outcome.result())); - else - return CalculateDBInstanceWeightOutcome(outcome.error()); -} - -void RdsClient::calculateDBInstanceWeightAsync(const CalculateDBInstanceWeightRequest& request, const CalculateDBInstanceWeightAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, calculateDBInstanceWeight(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CalculateDBInstanceWeightOutcomeCallable RdsClient::calculateDBInstanceWeightCallable(const CalculateDBInstanceWeightRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->calculateDBInstanceWeight(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceNetworkTypeOutcome RdsClient::modifyDBInstanceNetworkType(const ModifyDBInstanceNetworkTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceNetworkTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceNetworkTypeOutcome(ModifyDBInstanceNetworkTypeResult(outcome.result())); - else - return ModifyDBInstanceNetworkTypeOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceNetworkTypeAsync(const ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceNetworkType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceNetworkTypeOutcomeCallable RdsClient::modifyDBInstanceNetworkTypeCallable(const ModifyDBInstanceNetworkTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceNetworkType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSlowLogsOutcome RdsClient::describeSlowLogs(const DescribeSlowLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSlowLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSlowLogsOutcome(DescribeSlowLogsResult(outcome.result())); - else - return DescribeSlowLogsOutcome(outcome.error()); -} - -void RdsClient::describeSlowLogsAsync(const DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSlowLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSlowLogsOutcomeCallable RdsClient::describeSlowLogsCallable(const DescribeSlowLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSlowLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateBackupOutcome RdsClient::createBackup(const CreateBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateBackupOutcome(CreateBackupResult(outcome.result())); - else - return CreateBackupOutcome(outcome.error()); -} - -void RdsClient::createBackupAsync(const CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateBackupOutcomeCallable RdsClient::createBackupCallable(const CreateBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyReadWriteSplittingConnectionOutcome RdsClient::modifyReadWriteSplittingConnection(const ModifyReadWriteSplittingConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyReadWriteSplittingConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyReadWriteSplittingConnectionOutcome(ModifyReadWriteSplittingConnectionResult(outcome.result())); - else - return ModifyReadWriteSplittingConnectionOutcome(outcome.error()); -} - -void RdsClient::modifyReadWriteSplittingConnectionAsync(const ModifyReadWriteSplittingConnectionRequest& request, const ModifyReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyReadWriteSplittingConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyReadWriteSplittingConnectionOutcomeCallable RdsClient::modifyReadWriteSplittingConnectionCallable(const ModifyReadWriteSplittingConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyReadWriteSplittingConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceMaintainTimeOutcome RdsClient::modifyDBInstanceMaintainTime(const ModifyDBInstanceMaintainTimeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceMaintainTimeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceMaintainTimeOutcome(ModifyDBInstanceMaintainTimeResult(outcome.result())); - else - return ModifyDBInstanceMaintainTimeOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceMaintainTimeAsync(const ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceMaintainTime(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceMaintainTimeOutcomeCallable RdsClient::modifyDBInstanceMaintainTimeCallable(const ModifyDBInstanceMaintainTimeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceMaintainTime(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceDescriptionOutcome RdsClient::modifyDBInstanceDescription(const ModifyDBInstanceDescriptionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceDescriptionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceDescriptionOutcome(ModifyDBInstanceDescriptionResult(outcome.result())); - else - return ModifyDBInstanceDescriptionOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceDescriptionAsync(const ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceDescription(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceDescriptionOutcomeCallable RdsClient::modifyDBInstanceDescriptionCallable(const ModifyDBInstanceDescriptionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceDescription(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyResourceGroupOutcome RdsClient::modifyResourceGroup(const ModifyResourceGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyResourceGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyResourceGroupOutcome(ModifyResourceGroupResult(outcome.result())); - else - return ModifyResourceGroupOutcome(outcome.error()); -} - -void RdsClient::modifyResourceGroupAsync(const ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyResourceGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyResourceGroupOutcomeCallable RdsClient::modifyResourceGroupCallable(const ModifyResourceGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyResourceGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeProxyFunctionSupportOutcome RdsClient::describeProxyFunctionSupport(const DescribeProxyFunctionSupportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeProxyFunctionSupportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeProxyFunctionSupportOutcome(DescribeProxyFunctionSupportResult(outcome.result())); - else - return DescribeProxyFunctionSupportOutcome(outcome.error()); -} - -void RdsClient::describeProxyFunctionSupportAsync(const DescribeProxyFunctionSupportRequest& request, const DescribeProxyFunctionSupportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeProxyFunctionSupport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeProxyFunctionSupportOutcomeCallable RdsClient::describeProxyFunctionSupportCallable(const DescribeProxyFunctionSupportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeProxyFunctionSupport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeOssDownloadsForSQLServerOutcome RdsClient::describeOssDownloadsForSQLServer(const DescribeOssDownloadsForSQLServerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeOssDownloadsForSQLServerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeOssDownloadsForSQLServerOutcome(DescribeOssDownloadsForSQLServerResult(outcome.result())); - else - return DescribeOssDownloadsForSQLServerOutcome(outcome.error()); -} - -void RdsClient::describeOssDownloadsForSQLServerAsync(const DescribeOssDownloadsForSQLServerRequest& request, const DescribeOssDownloadsForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeOssDownloadsForSQLServer(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeOssDownloadsForSQLServerOutcomeCallable RdsClient::describeOssDownloadsForSQLServerCallable(const DescribeOssDownloadsForSQLServerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeOssDownloadsForSQLServer(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ResetAccountOutcome RdsClient::resetAccount(const ResetAccountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResetAccountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResetAccountOutcome(ResetAccountResult(outcome.result())); - else - return ResetAccountOutcome(outcome.error()); -} - -void RdsClient::resetAccountAsync(const ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resetAccount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ResetAccountOutcomeCallable RdsClient::resetAccountCallable(const ResetAccountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resetAccount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeResourceUsageOutcome RdsClient::describeResourceUsage(const DescribeResourceUsageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeResourceUsageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeResourceUsageOutcome(DescribeResourceUsageResult(outcome.result())); - else - return DescribeResourceUsageOutcome(outcome.error()); -} - -void RdsClient::describeResourceUsageAsync(const DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeResourceUsage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeResourceUsageOutcomeCallable RdsClient::describeResourceUsageCallable(const DescribeResourceUsageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeResourceUsage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::PurgeDBInstanceLogOutcome RdsClient::purgeDBInstanceLog(const PurgeDBInstanceLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PurgeDBInstanceLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PurgeDBInstanceLogOutcome(PurgeDBInstanceLogResult(outcome.result())); - else - return PurgeDBInstanceLogOutcome(outcome.error()); -} - -void RdsClient::purgeDBInstanceLogAsync(const PurgeDBInstanceLogRequest& request, const PurgeDBInstanceLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, purgeDBInstanceLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::PurgeDBInstanceLogOutcomeCallable RdsClient::purgeDBInstanceLogCallable(const PurgeDBInstanceLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->purgeDBInstanceLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeTaskInfoOutcome RdsClient::describeTaskInfo(const DescribeTaskInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTaskInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTaskInfoOutcome(DescribeTaskInfoResult(outcome.result())); - else - return DescribeTaskInfoOutcome(outcome.error()); -} - -void RdsClient::describeTaskInfoAsync(const DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTaskInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeTaskInfoOutcomeCallable RdsClient::describeTaskInfoCallable(const DescribeTaskInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTaskInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::UpgradeDBInstanceKernelVersionOutcome RdsClient::upgradeDBInstanceKernelVersion(const UpgradeDBInstanceKernelVersionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpgradeDBInstanceKernelVersionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpgradeDBInstanceKernelVersionOutcome(UpgradeDBInstanceKernelVersionResult(outcome.result())); - else - return UpgradeDBInstanceKernelVersionOutcome(outcome.error()); -} - -void RdsClient::upgradeDBInstanceKernelVersionAsync(const UpgradeDBInstanceKernelVersionRequest& request, const UpgradeDBInstanceKernelVersionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, upgradeDBInstanceKernelVersion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::UpgradeDBInstanceKernelVersionOutcomeCallable RdsClient::upgradeDBInstanceKernelVersionCallable(const UpgradeDBInstanceKernelVersionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->upgradeDBInstanceKernelVersion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyMySQLDBInstanceDelayOutcome RdsClient::modifyMySQLDBInstanceDelay(const ModifyMySQLDBInstanceDelayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyMySQLDBInstanceDelayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyMySQLDBInstanceDelayOutcome(ModifyMySQLDBInstanceDelayResult(outcome.result())); - else - return ModifyMySQLDBInstanceDelayOutcome(outcome.error()); -} - -void RdsClient::modifyMySQLDBInstanceDelayAsync(const ModifyMySQLDBInstanceDelayRequest& request, const ModifyMySQLDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyMySQLDBInstanceDelay(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyMySQLDBInstanceDelayOutcomeCallable RdsClient::modifyMySQLDBInstanceDelayCallable(const ModifyMySQLDBInstanceDelayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyMySQLDBInstanceDelay(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeRegionsOutcome RdsClient::describeRegions(const DescribeRegionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRegionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); - else - return DescribeRegionsOutcome(outcome.error()); -} - -void RdsClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRegions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeRegionsOutcomeCallable RdsClient::describeRegionsCallable(const DescribeRegionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRegions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::MigrateToOtherZoneOutcome RdsClient::migrateToOtherZone(const MigrateToOtherZoneRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MigrateToOtherZoneOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MigrateToOtherZoneOutcome(MigrateToOtherZoneResult(outcome.result())); - else - return MigrateToOtherZoneOutcome(outcome.error()); -} - -void RdsClient::migrateToOtherZoneAsync(const MigrateToOtherZoneRequest& request, const MigrateToOtherZoneAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, migrateToOtherZone(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::MigrateToOtherZoneOutcomeCallable RdsClient::migrateToOtherZoneCallable(const MigrateToOtherZoneRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->migrateToOtherZone(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DeleteAccountOutcome RdsClient::deleteAccount(const DeleteAccountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteAccountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAccountOutcome(DeleteAccountResult(outcome.result())); - else - return DeleteAccountOutcome(outcome.error()); -} - -void RdsClient::deleteAccountAsync(const DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAccount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DeleteAccountOutcomeCallable RdsClient::deleteAccountCallable(const DeleteAccountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAccount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSlowLogRecordsOutcome RdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSlowLogRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSlowLogRecordsOutcome(DescribeSlowLogRecordsResult(outcome.result())); - else - return DescribeSlowLogRecordsOutcome(outcome.error()); -} - -void RdsClient::describeSlowLogRecordsAsync(const DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSlowLogRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSlowLogRecordsOutcomeCallable RdsClient::describeSlowLogRecordsCallable(const DescribeSlowLogRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSlowLogRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ReleaseReadWriteSplittingConnectionOutcome RdsClient::releaseReadWriteSplittingConnection(const ReleaseReadWriteSplittingConnectionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReleaseReadWriteSplittingConnectionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReleaseReadWriteSplittingConnectionOutcome(ReleaseReadWriteSplittingConnectionResult(outcome.result())); - else - return ReleaseReadWriteSplittingConnectionOutcome(outcome.error()); -} - -void RdsClient::releaseReadWriteSplittingConnectionAsync(const ReleaseReadWriteSplittingConnectionRequest& request, const ReleaseReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, releaseReadWriteSplittingConnection(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ReleaseReadWriteSplittingConnectionOutcomeCallable RdsClient::releaseReadWriteSplittingConnectionCallable(const ReleaseReadWriteSplittingConnectionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->releaseReadWriteSplittingConnection(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeLogBackupFilesOutcome RdsClient::describeLogBackupFiles(const DescribeLogBackupFilesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLogBackupFilesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLogBackupFilesOutcome(DescribeLogBackupFilesResult(outcome.result())); - else - return DescribeLogBackupFilesOutcome(outcome.error()); -} - -void RdsClient::describeLogBackupFilesAsync(const DescribeLogBackupFilesRequest& request, const DescribeLogBackupFilesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLogBackupFiles(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeLogBackupFilesOutcomeCallable RdsClient::describeLogBackupFilesCallable(const DescribeLogBackupFilesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLogBackupFiles(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeAvailableInstanceClassOutcome RdsClient::describeAvailableInstanceClass(const DescribeAvailableInstanceClassRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAvailableInstanceClassOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAvailableInstanceClassOutcome(DescribeAvailableInstanceClassResult(outcome.result())); - else - return DescribeAvailableInstanceClassOutcome(outcome.error()); -} - -void RdsClient::describeAvailableInstanceClassAsync(const DescribeAvailableInstanceClassRequest& request, const DescribeAvailableInstanceClassAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAvailableInstanceClass(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeAvailableInstanceClassOutcomeCallable RdsClient::describeAvailableInstanceClassCallable(const DescribeAvailableInstanceClassRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAvailableInstanceClass(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeErrorLogsOutcome RdsClient::describeErrorLogs(const DescribeErrorLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeErrorLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeErrorLogsOutcome(DescribeErrorLogsResult(outcome.result())); - else - return DescribeErrorLogsOutcome(outcome.error()); -} - -void RdsClient::describeErrorLogsAsync(const DescribeErrorLogsRequest& request, const DescribeErrorLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeErrorLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeErrorLogsOutcomeCallable RdsClient::describeErrorLogsCallable(const DescribeErrorLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeErrorLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceHAConfigOutcome RdsClient::modifyDBInstanceHAConfig(const ModifyDBInstanceHAConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceHAConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceHAConfigOutcome(ModifyDBInstanceHAConfigResult(outcome.result())); - else - return ModifyDBInstanceHAConfigOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceHAConfigAsync(const ModifyDBInstanceHAConfigRequest& request, const ModifyDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceHAConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceHAConfigOutcomeCallable RdsClient::modifyDBInstanceHAConfigCallable(const ModifyDBInstanceHAConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceHAConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstancesAsCsvOutcome RdsClient::describeDBInstancesAsCsv(const DescribeDBInstancesAsCsvRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstancesAsCsvOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstancesAsCsvOutcome(DescribeDBInstancesAsCsvResult(outcome.result())); - else - return DescribeDBInstancesAsCsvOutcome(outcome.error()); -} - -void RdsClient::describeDBInstancesAsCsvAsync(const DescribeDBInstancesAsCsvRequest& request, const DescribeDBInstancesAsCsvAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstancesAsCsv(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstancesAsCsvOutcomeCallable RdsClient::describeDBInstancesAsCsvCallable(const DescribeDBInstancesAsCsvRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstancesAsCsv(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ResetAccountPasswordOutcome RdsClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResetAccountPasswordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResetAccountPasswordOutcome(ResetAccountPasswordResult(outcome.result())); - else - return ResetAccountPasswordOutcome(outcome.error()); -} - -void RdsClient::resetAccountPasswordAsync(const ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resetAccountPassword(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ResetAccountPasswordOutcomeCallable RdsClient::resetAccountPasswordCallable(const ResetAccountPasswordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resetAccountPassword(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyDBInstanceProxyConfigurationOutcome RdsClient::modifyDBInstanceProxyConfiguration(const ModifyDBInstanceProxyConfigurationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceProxyConfigurationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBInstanceProxyConfigurationOutcome(ModifyDBInstanceProxyConfigurationResult(outcome.result())); - else - return ModifyDBInstanceProxyConfigurationOutcome(outcome.error()); -} - -void RdsClient::modifyDBInstanceProxyConfigurationAsync(const ModifyDBInstanceProxyConfigurationRequest& request, const ModifyDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBInstanceProxyConfiguration(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyDBInstanceProxyConfigurationOutcomeCallable RdsClient::modifyDBInstanceProxyConfigurationCallable(const ModifyDBInstanceProxyConfigurationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBInstanceProxyConfiguration(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribePriceOutcome RdsClient::describePrice(const DescribePriceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePriceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePriceOutcome(DescribePriceResult(outcome.result())); - else - return DescribePriceOutcome(outcome.error()); -} - -void RdsClient::describePriceAsync(const DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePrice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribePriceOutcomeCallable RdsClient::describePriceCallable(const DescribePriceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePrice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeAccountsOutcome RdsClient::describeAccounts(const DescribeAccountsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAccountsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); - else - return DescribeAccountsOutcome(outcome.error()); -} - -void RdsClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAccounts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeAccountsOutcomeCallable RdsClient::describeAccountsCallable(const DescribeAccountsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAccounts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceByTagsOutcome RdsClient::describeDBInstanceByTags(const DescribeDBInstanceByTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceByTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceByTagsOutcome(DescribeDBInstanceByTagsResult(outcome.result())); - else - return DescribeDBInstanceByTagsOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceByTagsAsync(const DescribeDBInstanceByTagsRequest& request, const DescribeDBInstanceByTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceByTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceByTagsOutcomeCallable RdsClient::describeDBInstanceByTagsCallable(const DescribeDBInstanceByTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceByTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeMetaListOutcome RdsClient::describeMetaList(const DescribeMetaListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMetaListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMetaListOutcome(DescribeMetaListResult(outcome.result())); - else - return DescribeMetaListOutcome(outcome.error()); -} - -void RdsClient::describeMetaListAsync(const DescribeMetaListRequest& request, const DescribeMetaListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMetaList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeMetaListOutcomeCallable RdsClient::describeMetaListCallable(const DescribeMetaListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMetaList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceSSLOutcome RdsClient::describeDBInstanceSSL(const DescribeDBInstanceSSLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceSSLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceSSLOutcome(DescribeDBInstanceSSLResult(outcome.result())); - else - return DescribeDBInstanceSSLOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceSSLAsync(const DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceSSL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceSSLOutcomeCallable RdsClient::describeDBInstanceSSLCallable(const DescribeDBInstanceSSLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceSSL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstancesByPerformanceOutcome RdsClient::describeDBInstancesByPerformance(const DescribeDBInstancesByPerformanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstancesByPerformanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstancesByPerformanceOutcome(DescribeDBInstancesByPerformanceResult(outcome.result())); - else - return DescribeDBInstancesByPerformanceOutcome(outcome.error()); -} - -void RdsClient::describeDBInstancesByPerformanceAsync(const DescribeDBInstancesByPerformanceRequest& request, const DescribeDBInstancesByPerformanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstancesByPerformance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstancesByPerformanceOutcomeCallable RdsClient::describeDBInstancesByPerformanceCallable(const DescribeDBInstancesByPerformanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstancesByPerformance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeSQLReportsOutcome RdsClient::describeSQLReports(const DescribeSQLReportsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLReportsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLReportsOutcome(DescribeSQLReportsResult(outcome.result())); - else - return DescribeSQLReportsOutcome(outcome.error()); -} - -void RdsClient::describeSQLReportsAsync(const DescribeSQLReportsRequest& request, const DescribeSQLReportsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLReports(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeSQLReportsOutcomeCallable RdsClient::describeSQLReportsCallable(const DescribeSQLReportsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLReports(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeBackupTasksOutcome RdsClient::describeBackupTasks(const DescribeBackupTasksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeBackupTasksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeBackupTasksOutcome(DescribeBackupTasksResult(outcome.result())); - else - return DescribeBackupTasksOutcome(outcome.error()); -} - -void RdsClient::describeBackupTasksAsync(const DescribeBackupTasksRequest& request, const DescribeBackupTasksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeBackupTasks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeBackupTasksOutcomeCallable RdsClient::describeBackupTasksCallable(const DescribeBackupTasksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeBackupTasks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DeleteDatabaseOutcome RdsClient::deleteDatabase(const DeleteDatabaseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDatabaseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDatabaseOutcome(DeleteDatabaseResult(outcome.result())); - else - return DeleteDatabaseOutcome(outcome.error()); -} - -void RdsClient::deleteDatabaseAsync(const DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDatabase(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DeleteDatabaseOutcomeCallable RdsClient::deleteDatabaseCallable(const DeleteDatabaseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDatabase(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ModifyCollationTimeZoneOutcome RdsClient::modifyCollationTimeZone(const ModifyCollationTimeZoneRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCollationTimeZoneOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCollationTimeZoneOutcome(ModifyCollationTimeZoneResult(outcome.result())); - else - return ModifyCollationTimeZoneOutcome(outcome.error()); -} - -void RdsClient::modifyCollationTimeZoneAsync(const ModifyCollationTimeZoneRequest& request, const ModifyCollationTimeZoneAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCollationTimeZone(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ModifyCollationTimeZoneOutcomeCallable RdsClient::modifyCollationTimeZoneCallable(const ModifyCollationTimeZoneRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCollationTimeZone(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeBackupPolicyOutcome RdsClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeBackupPolicyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeBackupPolicyOutcome(DescribeBackupPolicyResult(outcome.result())); - else - return DescribeBackupPolicyOutcome(outcome.error()); -} - -void RdsClient::describeBackupPolicyAsync(const DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeBackupPolicy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeBackupPolicyOutcomeCallable RdsClient::describeBackupPolicyCallable(const DescribeBackupPolicyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeBackupPolicy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::CreateMigrateTaskForSQLServerOutcome RdsClient::createMigrateTaskForSQLServer(const CreateMigrateTaskForSQLServerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateMigrateTaskForSQLServerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateMigrateTaskForSQLServerOutcome(CreateMigrateTaskForSQLServerResult(outcome.result())); - else - return CreateMigrateTaskForSQLServerOutcome(outcome.error()); -} - -void RdsClient::createMigrateTaskForSQLServerAsync(const CreateMigrateTaskForSQLServerRequest& request, const CreateMigrateTaskForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createMigrateTaskForSQLServer(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::CreateMigrateTaskForSQLServerOutcomeCallable RdsClient::createMigrateTaskForSQLServerCallable(const CreateMigrateTaskForSQLServerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createMigrateTaskForSQLServer(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::DescribeDBInstanceIPArrayListOutcome RdsClient::describeDBInstanceIPArrayList(const DescribeDBInstanceIPArrayListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceIPArrayListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceIPArrayListOutcome(DescribeDBInstanceIPArrayListResult(outcome.result())); - else - return DescribeDBInstanceIPArrayListOutcome(outcome.error()); -} - -void RdsClient::describeDBInstanceIPArrayListAsync(const DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceIPArrayList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::DescribeDBInstanceIPArrayListOutcomeCallable RdsClient::describeDBInstanceIPArrayListCallable(const DescribeDBInstanceIPArrayListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceIPArrayList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::SwitchDBInstanceHAOutcome RdsClient::switchDBInstanceHA(const SwitchDBInstanceHARequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchDBInstanceHAOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchDBInstanceHAOutcome(SwitchDBInstanceHAResult(outcome.result())); - else - return SwitchDBInstanceHAOutcome(outcome.error()); -} - -void RdsClient::switchDBInstanceHAAsync(const SwitchDBInstanceHARequest& request, const SwitchDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchDBInstanceHA(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::SwitchDBInstanceHAOutcomeCallable RdsClient::switchDBInstanceHACallable(const SwitchDBInstanceHARequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchDBInstanceHA(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RdsClient::ResetAccountForPGOutcome RdsClient::resetAccountForPG(const ResetAccountForPGRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResetAccountForPGOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResetAccountForPGOutcome(ResetAccountForPGResult(outcome.result())); - else - return ResetAccountForPGOutcome(outcome.error()); -} - -void RdsClient::resetAccountForPGAsync(const ResetAccountForPGRequest& request, const ResetAccountForPGAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resetAccountForPG(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RdsClient::ResetAccountForPGOutcomeCallable RdsClient::resetAccountForPGCallable(const ResetAccountForPGRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resetAccountForPG(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +namespace +{ + const std::string SERVICE_NAME = "Rds"; +} + +RdsClient::RdsClient(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, "rds"); +} + +RdsClient::RdsClient(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, "rds"); +} + +RdsClient::RdsClient(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, "rds"); +} + +RdsClient::~RdsClient() +{} + +RdsClient::CheckCreateDdrDBInstanceOutcome RdsClient::checkCreateDdrDBInstance(const CheckCreateDdrDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckCreateDdrDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckCreateDdrDBInstanceOutcome(CheckCreateDdrDBInstanceResult(outcome.result())); + else + return CheckCreateDdrDBInstanceOutcome(outcome.error()); +} + +void RdsClient::checkCreateDdrDBInstanceAsync(const CheckCreateDdrDBInstanceRequest& request, const CheckCreateDdrDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkCreateDdrDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckCreateDdrDBInstanceOutcomeCallable RdsClient::checkCreateDdrDBInstanceCallable(const CheckCreateDdrDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkCreateDdrDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateMigrateTaskOutcome RdsClient::createMigrateTask(const CreateMigrateTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMigrateTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMigrateTaskOutcome(CreateMigrateTaskResult(outcome.result())); + else + return CreateMigrateTaskOutcome(outcome.error()); +} + +void RdsClient::createMigrateTaskAsync(const CreateMigrateTaskRequest& request, const CreateMigrateTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMigrateTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateMigrateTaskOutcomeCallable RdsClient::createMigrateTaskCallable(const CreateMigrateTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMigrateTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckRecoveryConditionsOutcome RdsClient::checkRecoveryConditions(const CheckRecoveryConditionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckRecoveryConditionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckRecoveryConditionsOutcome(CheckRecoveryConditionsResult(outcome.result())); + else + return CheckRecoveryConditionsOutcome(outcome.error()); +} + +void RdsClient::checkRecoveryConditionsAsync(const CheckRecoveryConditionsRequest& request, const CheckRecoveryConditionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkRecoveryConditions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckRecoveryConditionsOutcomeCallable RdsClient::checkRecoveryConditionsCallable(const CheckRecoveryConditionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkRecoveryConditions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteBackupOutcome RdsClient::deleteBackup(const DeleteBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBackupOutcome(DeleteBackupResult(outcome.result())); + else + return DeleteBackupOutcome(outcome.error()); +} + +void RdsClient::deleteBackupAsync(const DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteBackupOutcomeCallable RdsClient::deleteBackupCallable(const DeleteBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDatabasesOutcome RdsClient::describeDatabases(const DescribeDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabasesOutcome(DescribeDatabasesResult(outcome.result())); + else + return DescribeDatabasesOutcome(outcome.error()); +} + +void RdsClient::describeDatabasesAsync(const DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDatabasesOutcomeCallable RdsClient::describeDatabasesCallable(const DescribeDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesByExpireTimeOutcome RdsClient::describeDBInstancesByExpireTime(const DescribeDBInstancesByExpireTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesByExpireTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesByExpireTimeOutcome(DescribeDBInstancesByExpireTimeResult(outcome.result())); + else + return DescribeDBInstancesByExpireTimeOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesByExpireTimeAsync(const DescribeDBInstancesByExpireTimeRequest& request, const DescribeDBInstancesByExpireTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancesByExpireTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesByExpireTimeOutcomeCallable RdsClient::describeDBInstancesByExpireTimeCallable(const DescribeDBInstancesByExpireTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancesByExpireTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::SwitchDBInstanceNetTypeOutcome RdsClient::switchDBInstanceNetType(const SwitchDBInstanceNetTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchDBInstanceNetTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchDBInstanceNetTypeOutcome(SwitchDBInstanceNetTypeResult(outcome.result())); + else + return SwitchDBInstanceNetTypeOutcome(outcome.error()); +} + +void RdsClient::switchDBInstanceNetTypeAsync(const SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchDBInstanceNetType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::SwitchDBInstanceNetTypeOutcomeCallable RdsClient::switchDBInstanceNetTypeCallable(const SwitchDBInstanceNetTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchDBInstanceNetType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceMonitorOutcome RdsClient::describeDBInstanceMonitor(const DescribeDBInstanceMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceMonitorOutcome(DescribeDBInstanceMonitorResult(outcome.result())); + else + return DescribeDBInstanceMonitorOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceMonitorAsync(const DescribeDBInstanceMonitorRequest& request, const DescribeDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceMonitorOutcomeCallable RdsClient::describeDBInstanceMonitorCallable(const DescribeDBInstanceMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyAccountDescriptionOutcome RdsClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountDescriptionOutcome(ModifyAccountDescriptionResult(outcome.result())); + else + return ModifyAccountDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyAccountDescriptionAsync(const ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyAccountDescriptionOutcomeCallable RdsClient::modifyAccountDescriptionCallable(const ModifyAccountDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceHAConfigOutcome RdsClient::describeDBInstanceHAConfig(const DescribeDBInstanceHAConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceHAConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceHAConfigOutcome(DescribeDBInstanceHAConfigResult(outcome.result())); + else + return DescribeDBInstanceHAConfigOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceHAConfigAsync(const DescribeDBInstanceHAConfigRequest& request, const DescribeDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceHAConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceHAConfigOutcomeCallable RdsClient::describeDBInstanceHAConfigCallable(const DescribeDBInstanceHAConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceHAConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateReadOnlyDBInstanceOutcome RdsClient::createReadOnlyDBInstance(const CreateReadOnlyDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateReadOnlyDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateReadOnlyDBInstanceOutcome(CreateReadOnlyDBInstanceResult(outcome.result())); + else + return CreateReadOnlyDBInstanceOutcome(outcome.error()); +} + +void RdsClient::createReadOnlyDBInstanceAsync(const CreateReadOnlyDBInstanceRequest& request, const CreateReadOnlyDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createReadOnlyDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateReadOnlyDBInstanceOutcomeCallable RdsClient::createReadOnlyDBInstanceCallable(const CreateReadOnlyDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createReadOnlyDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::MigrateToOtherRegionOutcome RdsClient::migrateToOtherRegion(const MigrateToOtherRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MigrateToOtherRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MigrateToOtherRegionOutcome(MigrateToOtherRegionResult(outcome.result())); + else + return MigrateToOtherRegionOutcome(outcome.error()); +} + +void RdsClient::migrateToOtherRegionAsync(const MigrateToOtherRegionRequest& request, const MigrateToOtherRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, migrateToOtherRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::MigrateToOtherRegionOutcomeCallable RdsClient::migrateToOtherRegionCallable(const MigrateToOtherRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->migrateToOtherRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOssDownloadsOutcome RdsClient::describeOssDownloads(const DescribeOssDownloadsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssDownloadsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssDownloadsOutcome(DescribeOssDownloadsResult(outcome.result())); + else + return DescribeOssDownloadsOutcome(outcome.error()); +} + +void RdsClient::describeOssDownloadsAsync(const DescribeOssDownloadsRequest& request, const DescribeOssDownloadsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssDownloads(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOssDownloadsOutcomeCallable RdsClient::describeOssDownloadsCallable(const DescribeOssDownloadsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssDownloads(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyParameterOutcome RdsClient::modifyParameter(const ModifyParameterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyParameterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyParameterOutcome(ModifyParameterResult(outcome.result())); + else + return ModifyParameterOutcome(outcome.error()); +} + +void RdsClient::modifyParameterAsync(const ModifyParameterRequest& request, const ModifyParameterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyParameter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyParameterOutcomeCallable RdsClient::modifyParameterCallable(const ModifyParameterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyParameter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::UpgradeDBInstanceEngineVersionOutcome RdsClient::upgradeDBInstanceEngineVersion(const UpgradeDBInstanceEngineVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBInstanceEngineVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBInstanceEngineVersionOutcome(UpgradeDBInstanceEngineVersionResult(outcome.result())); + else + return UpgradeDBInstanceEngineVersionOutcome(outcome.error()); +} + +void RdsClient::upgradeDBInstanceEngineVersionAsync(const UpgradeDBInstanceEngineVersionRequest& request, const UpgradeDBInstanceEngineVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBInstanceEngineVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::UpgradeDBInstanceEngineVersionOutcomeCallable RdsClient::upgradeDBInstanceEngineVersionCallable(const UpgradeDBInstanceEngineVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBInstanceEngineVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceConnectionStringOutcome RdsClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(ModifyDBInstanceConnectionStringResult(outcome.result())); + else + return ModifyDBInstanceConnectionStringOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceConnectionStringAsync(const ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionString(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceConnectionStringOutcomeCallable RdsClient::modifyDBInstanceConnectionStringCallable(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionString(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RestartDBInstanceOutcome RdsClient::restartDBInstance(const RestartDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDBInstanceOutcome(RestartDBInstanceResult(outcome.result())); + else + return RestartDBInstanceOutcome(outcome.error()); +} + +void RdsClient::restartDBInstanceAsync(const RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RestartDBInstanceOutcomeCallable RdsClient::restartDBInstanceCallable(const RestartDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckAccountNameAvailableOutcome RdsClient::checkAccountNameAvailable(const CheckAccountNameAvailableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckAccountNameAvailableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckAccountNameAvailableOutcome(CheckAccountNameAvailableResult(outcome.result())); + else + return CheckAccountNameAvailableOutcome(outcome.error()); +} + +void RdsClient::checkAccountNameAvailableAsync(const CheckAccountNameAvailableRequest& request, const CheckAccountNameAvailableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkAccountNameAvailable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckAccountNameAvailableOutcomeCallable RdsClient::checkAccountNameAvailableCallable(const CheckAccountNameAvailableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkAccountNameAvailable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeTemplatesListOutcome RdsClient::describeTemplatesList(const DescribeTemplatesListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTemplatesListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTemplatesListOutcome(DescribeTemplatesListResult(outcome.result())); + else + return DescribeTemplatesListOutcome(outcome.error()); +} + +void RdsClient::describeTemplatesListAsync(const DescribeTemplatesListRequest& request, const DescribeTemplatesListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTemplatesList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeTemplatesListOutcomeCallable RdsClient::describeTemplatesListCallable(const DescribeTemplatesListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTemplatesList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ImportDataForSQLServerOutcome RdsClient::importDataForSQLServer(const ImportDataForSQLServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportDataForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportDataForSQLServerOutcome(ImportDataForSQLServerResult(outcome.result())); + else + return ImportDataForSQLServerOutcome(outcome.error()); +} + +void RdsClient::importDataForSQLServerAsync(const ImportDataForSQLServerRequest& request, const ImportDataForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importDataForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ImportDataForSQLServerOutcomeCallable RdsClient::importDataForSQLServerCallable(const ImportDataForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importDataForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckResourceOutcome RdsClient::checkResource(const CheckResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckResourceOutcome(CheckResourceResult(outcome.result())); + else + return CheckResourceOutcome(outcome.error()); +} + +void RdsClient::checkResourceAsync(const CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckResourceOutcomeCallable RdsClient::checkResourceCallable(const CheckResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifySecurityGroupConfigurationOutcome RdsClient::modifySecurityGroupConfiguration(const ModifySecurityGroupConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityGroupConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityGroupConfigurationOutcome(ModifySecurityGroupConfigurationResult(outcome.result())); + else + return ModifySecurityGroupConfigurationOutcome(outcome.error()); +} + +void RdsClient::modifySecurityGroupConfigurationAsync(const ModifySecurityGroupConfigurationRequest& request, const ModifySecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityGroupConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifySecurityGroupConfigurationOutcomeCallable RdsClient::modifySecurityGroupConfigurationCallable(const ModifySecurityGroupConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityGroupConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeTagsOutcome RdsClient::describeTags(const DescribeTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); + else + return DescribeTagsOutcome(outcome.error()); +} + +void RdsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeTagsOutcomeCallable RdsClient::describeTagsCallable(const DescribeTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDTCSecurityIpHostsForSQLServerOutcome RdsClient::modifyDTCSecurityIpHostsForSQLServer(const ModifyDTCSecurityIpHostsForSQLServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDTCSecurityIpHostsForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDTCSecurityIpHostsForSQLServerOutcome(ModifyDTCSecurityIpHostsForSQLServerResult(outcome.result())); + else + return ModifyDTCSecurityIpHostsForSQLServerOutcome(outcome.error()); +} + +void RdsClient::modifyDTCSecurityIpHostsForSQLServerAsync(const ModifyDTCSecurityIpHostsForSQLServerRequest& request, const ModifyDTCSecurityIpHostsForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDTCSecurityIpHostsForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDTCSecurityIpHostsForSQLServerOutcomeCallable RdsClient::modifyDTCSecurityIpHostsForSQLServerCallable(const ModifyDTCSecurityIpHostsForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDTCSecurityIpHostsForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeCharacterSetNameOutcome RdsClient::describeCharacterSetName(const DescribeCharacterSetNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCharacterSetNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCharacterSetNameOutcome(DescribeCharacterSetNameResult(outcome.result())); + else + return DescribeCharacterSetNameOutcome(outcome.error()); +} + +void RdsClient::describeCharacterSetNameAsync(const DescribeCharacterSetNameRequest& request, const DescribeCharacterSetNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCharacterSetName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeCharacterSetNameOutcomeCallable RdsClient::describeCharacterSetNameCallable(const DescribeCharacterSetNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCharacterSetName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeMigrateTasksOutcome RdsClient::describeMigrateTasks(const DescribeMigrateTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMigrateTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMigrateTasksOutcome(DescribeMigrateTasksResult(outcome.result())); + else + return DescribeMigrateTasksOutcome(outcome.error()); +} + +void RdsClient::describeMigrateTasksAsync(const DescribeMigrateTasksRequest& request, const DescribeMigrateTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMigrateTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeMigrateTasksOutcomeCallable RdsClient::describeMigrateTasksCallable(const DescribeMigrateTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMigrateTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceNetworkExpireTimeOutcome RdsClient::modifyDBInstanceNetworkExpireTime(const ModifyDBInstanceNetworkExpireTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceNetworkExpireTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceNetworkExpireTimeOutcome(ModifyDBInstanceNetworkExpireTimeResult(outcome.result())); + else + return ModifyDBInstanceNetworkExpireTimeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceNetworkExpireTimeAsync(const ModifyDBInstanceNetworkExpireTimeRequest& request, const ModifyDBInstanceNetworkExpireTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceNetworkExpireTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceNetworkExpireTimeOutcomeCallable RdsClient::modifyDBInstanceNetworkExpireTimeCallable(const ModifyDBInstanceNetworkExpireTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceNetworkExpireTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeModifyParameterLogOutcome RdsClient::describeModifyParameterLog(const DescribeModifyParameterLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeModifyParameterLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeModifyParameterLogOutcome(DescribeModifyParameterLogResult(outcome.result())); + else + return DescribeModifyParameterLogOutcome(outcome.error()); +} + +void RdsClient::describeModifyParameterLogAsync(const DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeModifyParameterLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeModifyParameterLogOutcomeCallable RdsClient::describeModifyParameterLogCallable(const DescribeModifyParameterLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeModifyParameterLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateAccountOutcome RdsClient::createAccount(const CreateAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountOutcome(CreateAccountResult(outcome.result())); + else + return CreateAccountOutcome(outcome.error()); +} + +void RdsClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateAccountOutcomeCallable RdsClient::createAccountCallable(const CreateAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstancePayTypeOutcome RdsClient::modifyDBInstancePayType(const ModifyDBInstancePayTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstancePayTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstancePayTypeOutcome(ModifyDBInstancePayTypeResult(outcome.result())); + else + return ModifyDBInstancePayTypeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstancePayTypeAsync(const ModifyDBInstancePayTypeRequest& request, const ModifyDBInstancePayTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstancePayType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstancePayTypeOutcomeCallable RdsClient::modifyDBInstancePayTypeCallable(const ModifyDBInstancePayTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstancePayType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RecoveryDBInstanceOutcome RdsClient::recoveryDBInstance(const RecoveryDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RecoveryDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecoveryDBInstanceOutcome(RecoveryDBInstanceResult(outcome.result())); + else + return RecoveryDBInstanceOutcome(outcome.error()); +} + +void RdsClient::recoveryDBInstanceAsync(const RecoveryDBInstanceRequest& request, const RecoveryDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recoveryDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RecoveryDBInstanceOutcomeCallable RdsClient::recoveryDBInstanceCallable(const RecoveryDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recoveryDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBDescriptionOutcome RdsClient::modifyDBDescription(const ModifyDBDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBDescriptionOutcome(ModifyDBDescriptionResult(outcome.result())); + else + return ModifyDBDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyDBDescriptionAsync(const ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBDescriptionOutcomeCallable RdsClient::modifyDBDescriptionCallable(const ModifyDBDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ImportDatabaseBetweenInstancesOutcome RdsClient::importDatabaseBetweenInstances(const ImportDatabaseBetweenInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportDatabaseBetweenInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportDatabaseBetweenInstancesOutcome(ImportDatabaseBetweenInstancesResult(outcome.result())); + else + return ImportDatabaseBetweenInstancesOutcome(outcome.error()); +} + +void RdsClient::importDatabaseBetweenInstancesAsync(const ImportDatabaseBetweenInstancesRequest& request, const ImportDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importDatabaseBetweenInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ImportDatabaseBetweenInstancesOutcomeCallable RdsClient::importDatabaseBetweenInstancesCallable(const ImportDatabaseBetweenInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importDatabaseBetweenInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RenewInstanceOutcome RdsClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); + else + return RenewInstanceOutcome(outcome.error()); +} + +void RdsClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RenewInstanceOutcomeCallable RdsClient::renewInstanceCallable(const RenewInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceMonitorOutcome RdsClient::modifyDBInstanceMonitor(const ModifyDBInstanceMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceMonitorOutcome(ModifyDBInstanceMonitorResult(outcome.result())); + else + return ModifyDBInstanceMonitorOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceMonitorAsync(const ModifyDBInstanceMonitorRequest& request, const ModifyDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceMonitorOutcomeCallable RdsClient::modifyDBInstanceMonitorCallable(const ModifyDBInstanceMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyInstanceCrossBackupPolicyOutcome RdsClient::modifyInstanceCrossBackupPolicy(const ModifyInstanceCrossBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceCrossBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceCrossBackupPolicyOutcome(ModifyInstanceCrossBackupPolicyResult(outcome.result())); + else + return ModifyInstanceCrossBackupPolicyOutcome(outcome.error()); +} + +void RdsClient::modifyInstanceCrossBackupPolicyAsync(const ModifyInstanceCrossBackupPolicyRequest& request, const ModifyInstanceCrossBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceCrossBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyInstanceCrossBackupPolicyOutcomeCallable RdsClient::modifyInstanceCrossBackupPolicyCallable(const ModifyInstanceCrossBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceCrossBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogFilesOutcome RdsClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogFilesOutcome(DescribeSQLLogFilesResult(outcome.result())); + else + return DescribeSQLLogFilesOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogFilesAsync(const DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogFilesOutcomeCallable RdsClient::describeSQLLogFilesCallable(const DescribeSQLLogFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeAvailableCrossRegionOutcome RdsClient::describeAvailableCrossRegion(const DescribeAvailableCrossRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableCrossRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableCrossRegionOutcome(DescribeAvailableCrossRegionResult(outcome.result())); + else + return DescribeAvailableCrossRegionOutcome(outcome.error()); +} + +void RdsClient::describeAvailableCrossRegionAsync(const DescribeAvailableCrossRegionRequest& request, const DescribeAvailableCrossRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableCrossRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeAvailableCrossRegionOutcomeCallable RdsClient::describeAvailableCrossRegionCallable(const DescribeAvailableCrossRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableCrossRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CancelImportOutcome RdsClient::cancelImport(const CancelImportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelImportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelImportOutcome(CancelImportResult(outcome.result())); + else + return CancelImportOutcome(outcome.error()); +} + +void RdsClient::cancelImportAsync(const CancelImportRequest& request, const CancelImportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelImport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CancelImportOutcomeCallable RdsClient::cancelImportCallable(const CancelImportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelImport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSecurityGroupConfigurationOutcome RdsClient::describeSecurityGroupConfiguration(const DescribeSecurityGroupConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityGroupConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityGroupConfigurationOutcome(DescribeSecurityGroupConfigurationResult(outcome.result())); + else + return DescribeSecurityGroupConfigurationOutcome(outcome.error()); +} + +void RdsClient::describeSecurityGroupConfigurationAsync(const DescribeSecurityGroupConfigurationRequest& request, const DescribeSecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityGroupConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSecurityGroupConfigurationOutcomeCallable RdsClient::describeSecurityGroupConfigurationCallable(const DescribeSecurityGroupConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityGroupConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyBackupPolicyOutcome RdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); + else + return ModifyBackupPolicyOutcome(outcome.error()); +} + +void RdsClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyBackupPolicyOutcomeCallable RdsClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyReplicaDescriptionOutcome RdsClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReplicaDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReplicaDescriptionOutcome(ModifyReplicaDescriptionResult(outcome.result())); + else + return ModifyReplicaDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyReplicaDescriptionAsync(const ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReplicaDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyReplicaDescriptionOutcomeCallable RdsClient::modifyReplicaDescriptionCallable(const ModifyReplicaDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReplicaDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeParametersOutcome RdsClient::describeParameters(const DescribeParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeParametersOutcome(DescribeParametersResult(outcome.result())); + else + return DescribeParametersOutcome(outcome.error()); +} + +void RdsClient::describeParametersAsync(const DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeParametersOutcomeCallable RdsClient::describeParametersCallable(const DescribeParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AddTagsToResourceOutcome RdsClient::addTagsToResource(const AddTagsToResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddTagsToResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddTagsToResourceOutcome(AddTagsToResourceResult(outcome.result())); + else + return AddTagsToResourceOutcome(outcome.error()); +} + +void RdsClient::addTagsToResourceAsync(const AddTagsToResourceRequest& request, const AddTagsToResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addTagsToResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AddTagsToResourceOutcomeCallable RdsClient::addTagsToResourceCallable(const AddTagsToResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addTagsToResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBinlogFilesOutcome RdsClient::describeBinlogFiles(const DescribeBinlogFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBinlogFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBinlogFilesOutcome(DescribeBinlogFilesResult(outcome.result())); + else + return DescribeBinlogFilesOutcome(outcome.error()); +} + +void RdsClient::describeBinlogFilesAsync(const DescribeBinlogFilesRequest& request, const DescribeBinlogFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBinlogFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBinlogFilesOutcomeCallable RdsClient::describeBinlogFilesCallable(const DescribeBinlogFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBinlogFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceProxyConfigurationOutcome RdsClient::describeDBInstanceProxyConfiguration(const DescribeDBInstanceProxyConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceProxyConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceProxyConfigurationOutcome(DescribeDBInstanceProxyConfigurationResult(outcome.result())); + else + return DescribeDBInstanceProxyConfigurationOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceProxyConfigurationAsync(const DescribeDBInstanceProxyConfigurationRequest& request, const DescribeDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceProxyConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceProxyConfigurationOutcomeCallable RdsClient::describeDBInstanceProxyConfigurationCallable(const DescribeDBInstanceProxyConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceProxyConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDiagnosticReportOutcome RdsClient::createDiagnosticReport(const CreateDiagnosticReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDiagnosticReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDiagnosticReportOutcome(CreateDiagnosticReportResult(outcome.result())); + else + return CreateDiagnosticReportOutcome(outcome.error()); +} + +void RdsClient::createDiagnosticReportAsync(const CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDiagnosticReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDiagnosticReportOutcomeCallable RdsClient::createDiagnosticReportCallable(const CreateDiagnosticReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDiagnosticReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeReadDBInstanceDelayOutcome RdsClient::describeReadDBInstanceDelay(const DescribeReadDBInstanceDelayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReadDBInstanceDelayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReadDBInstanceDelayOutcome(DescribeReadDBInstanceDelayResult(outcome.result())); + else + return DescribeReadDBInstanceDelayOutcome(outcome.error()); +} + +void RdsClient::describeReadDBInstanceDelayAsync(const DescribeReadDBInstanceDelayRequest& request, const DescribeReadDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReadDBInstanceDelay(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeReadDBInstanceDelayOutcomeCallable RdsClient::describeReadDBInstanceDelayCallable(const DescribeReadDBInstanceDelayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReadDBInstanceDelay(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogReportListOutcome RdsClient::describeSQLLogReportList(const DescribeSQLLogReportListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogReportListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogReportListOutcome(DescribeSQLLogReportListResult(outcome.result())); + else + return DescribeSQLLogReportListOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogReportListAsync(const DescribeSQLLogReportListRequest& request, const DescribeSQLLogReportListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogReportList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogReportListOutcomeCallable RdsClient::describeSQLLogReportListCallable(const DescribeSQLLogReportListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogReportList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CloneDBInstanceOutcome RdsClient::cloneDBInstance(const CloneDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloneDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloneDBInstanceOutcome(CloneDBInstanceResult(outcome.result())); + else + return CloneDBInstanceOutcome(outcome.error()); +} + +void RdsClient::cloneDBInstanceAsync(const CloneDBInstanceRequest& request, const CloneDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cloneDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CloneDBInstanceOutcomeCallable RdsClient::cloneDBInstanceCallable(const CloneDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cloneDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeTasksOutcome RdsClient::describeTasks(const DescribeTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTasksOutcome(DescribeTasksResult(outcome.result())); + else + return DescribeTasksOutcome(outcome.error()); +} + +void RdsClient::describeTasksAsync(const DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeTasksOutcomeCallable RdsClient::describeTasksCallable(const DescribeTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeRenewalPriceOutcome RdsClient::describeRenewalPrice(const DescribeRenewalPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRenewalPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRenewalPriceOutcome(DescribeRenewalPriceResult(outcome.result())); + else + return DescribeRenewalPriceOutcome(outcome.error()); +} + +void RdsClient::describeRenewalPriceAsync(const DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRenewalPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeRenewalPriceOutcomeCallable RdsClient::describeRenewalPriceCallable(const DescribeRenewalPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRenewalPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AllocateInstancePublicConnectionOutcome RdsClient::allocateInstancePublicConnection(const AllocateInstancePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateInstancePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateInstancePublicConnectionOutcome(AllocateInstancePublicConnectionResult(outcome.result())); + else + return AllocateInstancePublicConnectionOutcome(outcome.error()); +} + +void RdsClient::allocateInstancePublicConnectionAsync(const AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateInstancePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AllocateInstancePublicConnectionOutcomeCallable RdsClient::allocateInstancePublicConnectionCallable(const AllocateInstancePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateInstancePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceAttributeOutcome RdsClient::describeDBInstanceAttribute(const DescribeDBInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(DescribeDBInstanceAttributeResult(outcome.result())); + else + return DescribeDBInstanceAttributeOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceAttributeAsync(const DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceAttributeOutcomeCallable RdsClient::describeDBInstanceAttributeCallable(const DescribeDBInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckInstanceExistOutcome RdsClient::checkInstanceExist(const CheckInstanceExistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckInstanceExistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckInstanceExistOutcome(CheckInstanceExistResult(outcome.result())); + else + return CheckInstanceExistOutcome(outcome.error()); +} + +void RdsClient::checkInstanceExistAsync(const CheckInstanceExistRequest& request, const CheckInstanceExistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkInstanceExist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckInstanceExistOutcomeCallable RdsClient::checkInstanceExistCallable(const CheckInstanceExistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkInstanceExist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateTempDBInstanceOutcome RdsClient::createTempDBInstance(const CreateTempDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTempDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTempDBInstanceOutcome(CreateTempDBInstanceResult(outcome.result())); + else + return CreateTempDBInstanceOutcome(outcome.error()); +} + +void RdsClient::createTempDBInstanceAsync(const CreateTempDBInstanceRequest& request, const CreateTempDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTempDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateTempDBInstanceOutcomeCallable RdsClient::createTempDBInstanceCallable(const CreateTempDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTempDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyInstanceAutoRenewalAttributeOutcome RdsClient::modifyInstanceAutoRenewalAttribute(const ModifyInstanceAutoRenewalAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceAutoRenewalAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceAutoRenewalAttributeOutcome(ModifyInstanceAutoRenewalAttributeResult(outcome.result())); + else + return ModifyInstanceAutoRenewalAttributeOutcome(outcome.error()); +} + +void RdsClient::modifyInstanceAutoRenewalAttributeAsync(const ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceAutoRenewalAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyInstanceAutoRenewalAttributeOutcomeCallable RdsClient::modifyInstanceAutoRenewalAttributeCallable(const ModifyInstanceAutoRenewalAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceAutoRenewalAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifySQLCollectorPolicyOutcome RdsClient::modifySQLCollectorPolicy(const ModifySQLCollectorPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySQLCollectorPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySQLCollectorPolicyOutcome(ModifySQLCollectorPolicyResult(outcome.result())); + else + return ModifySQLCollectorPolicyOutcome(outcome.error()); +} + +void RdsClient::modifySQLCollectorPolicyAsync(const ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySQLCollectorPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifySQLCollectorPolicyOutcomeCallable RdsClient::modifySQLCollectorPolicyCallable(const ModifySQLCollectorPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySQLCollectorPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AllocateInstanceVpcNetworkTypeOutcome RdsClient::allocateInstanceVpcNetworkType(const AllocateInstanceVpcNetworkTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateInstanceVpcNetworkTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateInstanceVpcNetworkTypeOutcome(AllocateInstanceVpcNetworkTypeResult(outcome.result())); + else + return AllocateInstanceVpcNetworkTypeOutcome(outcome.error()); +} + +void RdsClient::allocateInstanceVpcNetworkTypeAsync(const AllocateInstanceVpcNetworkTypeRequest& request, const AllocateInstanceVpcNetworkTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateInstanceVpcNetworkType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AllocateInstanceVpcNetworkTypeOutcomeCallable RdsClient::allocateInstanceVpcNetworkTypeCallable(const AllocateInstanceVpcNetworkTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateInstanceVpcNetworkType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupsOutcome RdsClient::describeBackups(const DescribeBackupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupsOutcome(DescribeBackupsResult(outcome.result())); + else + return DescribeBackupsOutcome(outcome.error()); +} + +void RdsClient::describeBackupsAsync(const DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupsOutcomeCallable RdsClient::describeBackupsCallable(const DescribeBackupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDatabaseOutcome RdsClient::createDatabase(const CreateDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatabaseOutcome(CreateDatabaseResult(outcome.result())); + else + return CreateDatabaseOutcome(outcome.error()); +} + +void RdsClient::createDatabaseAsync(const CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDatabaseOutcomeCallable RdsClient::createDatabaseCallable(const CreateDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeCollationTimeZonesOutcome RdsClient::describeCollationTimeZones(const DescribeCollationTimeZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCollationTimeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCollationTimeZonesOutcome(DescribeCollationTimeZonesResult(outcome.result())); + else + return DescribeCollationTimeZonesOutcome(outcome.error()); +} + +void RdsClient::describeCollationTimeZonesAsync(const DescribeCollationTimeZonesRequest& request, const DescribeCollationTimeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCollationTimeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeCollationTimeZonesOutcomeCallable RdsClient::describeCollationTimeZonesCallable(const DescribeCollationTimeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCollationTimeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteDBInstanceOutcome RdsClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBInstanceOutcome(DeleteDBInstanceResult(outcome.result())); + else + return DeleteDBInstanceOutcome(outcome.error()); +} + +void RdsClient::deleteDBInstanceAsync(const DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteDBInstanceOutcomeCallable RdsClient::deleteDBInstanceCallable(const DeleteDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyReadonlyInstanceDelayReplicationTimeOutcome RdsClient::modifyReadonlyInstanceDelayReplicationTime(const ModifyReadonlyInstanceDelayReplicationTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReadonlyInstanceDelayReplicationTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReadonlyInstanceDelayReplicationTimeOutcome(ModifyReadonlyInstanceDelayReplicationTimeResult(outcome.result())); + else + return ModifyReadonlyInstanceDelayReplicationTimeOutcome(outcome.error()); +} + +void RdsClient::modifyReadonlyInstanceDelayReplicationTimeAsync(const ModifyReadonlyInstanceDelayReplicationTimeRequest& request, const ModifyReadonlyInstanceDelayReplicationTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReadonlyInstanceDelayReplicationTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyReadonlyInstanceDelayReplicationTimeOutcomeCallable RdsClient::modifyReadonlyInstanceDelayReplicationTimeCallable(const ModifyReadonlyInstanceDelayReplicationTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReadonlyInstanceDelayReplicationTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeInstanceAutoRenewalAttributeOutcome RdsClient::describeInstanceAutoRenewalAttribute(const DescribeInstanceAutoRenewalAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceAutoRenewalAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceAutoRenewalAttributeOutcome(DescribeInstanceAutoRenewalAttributeResult(outcome.result())); + else + return DescribeInstanceAutoRenewalAttributeOutcome(outcome.error()); +} + +void RdsClient::describeInstanceAutoRenewalAttributeAsync(const DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceAutoRenewalAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeInstanceAutoRenewalAttributeOutcomeCallable RdsClient::describeInstanceAutoRenewalAttributeCallable(const DescribeInstanceAutoRenewalAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceAutoRenewalAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::SwitchDBInstanceVpcOutcome RdsClient::switchDBInstanceVpc(const SwitchDBInstanceVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchDBInstanceVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchDBInstanceVpcOutcome(SwitchDBInstanceVpcResult(outcome.result())); + else + return SwitchDBInstanceVpcOutcome(outcome.error()); +} + +void RdsClient::switchDBInstanceVpcAsync(const SwitchDBInstanceVpcRequest& request, const SwitchDBInstanceVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchDBInstanceVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::SwitchDBInstanceVpcOutcomeCallable RdsClient::switchDBInstanceVpcCallable(const SwitchDBInstanceVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchDBInstanceVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RestoreDBInstanceOutcome RdsClient::restoreDBInstance(const RestoreDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestoreDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestoreDBInstanceOutcome(RestoreDBInstanceResult(outcome.result())); + else + return RestoreDBInstanceOutcome(outcome.error()); +} + +void RdsClient::restoreDBInstanceAsync(const RestoreDBInstanceRequest& request, const RestoreDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restoreDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RestoreDBInstanceOutcomeCallable RdsClient::restoreDBInstanceCallable(const RestoreDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restoreDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RevokeOperatorPermissionOutcome RdsClient::revokeOperatorPermission(const RevokeOperatorPermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeOperatorPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeOperatorPermissionOutcome(RevokeOperatorPermissionResult(outcome.result())); + else + return RevokeOperatorPermissionOutcome(outcome.error()); +} + +void RdsClient::revokeOperatorPermissionAsync(const RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeOperatorPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RevokeOperatorPermissionOutcomeCallable RdsClient::revokeOperatorPermissionCallable(const RevokeOperatorPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeOperatorPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceSpecOutcome RdsClient::modifyDBInstanceSpec(const ModifyDBInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceSpecOutcome(ModifyDBInstanceSpecResult(outcome.result())); + else + return ModifyDBInstanceSpecOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceSpecAsync(const ModifyDBInstanceSpecRequest& request, const ModifyDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceSpecOutcomeCallable RdsClient::modifyDBInstanceSpecCallable(const ModifyDBInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::MigrateSecurityIPModeOutcome RdsClient::migrateSecurityIPMode(const MigrateSecurityIPModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MigrateSecurityIPModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MigrateSecurityIPModeOutcome(MigrateSecurityIPModeResult(outcome.result())); + else + return MigrateSecurityIPModeOutcome(outcome.error()); +} + +void RdsClient::migrateSecurityIPModeAsync(const MigrateSecurityIPModeRequest& request, const MigrateSecurityIPModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, migrateSecurityIPMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::MigrateSecurityIPModeOutcomeCallable RdsClient::migrateSecurityIPModeCallable(const MigrateSecurityIPModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->migrateSecurityIPMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDiagnosticReportListOutcome RdsClient::describeDiagnosticReportList(const DescribeDiagnosticReportListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosticReportListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosticReportListOutcome(DescribeDiagnosticReportListResult(outcome.result())); + else + return DescribeDiagnosticReportListOutcome(outcome.error()); +} + +void RdsClient::describeDiagnosticReportListAsync(const DescribeDiagnosticReportListRequest& request, const DescribeDiagnosticReportListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosticReportList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDiagnosticReportListOutcomeCallable RdsClient::describeDiagnosticReportListCallable(const DescribeDiagnosticReportListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosticReportList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RemoveTagsFromResourceOutcome RdsClient::removeTagsFromResource(const RemoveTagsFromResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagsFromResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagsFromResourceOutcome(RemoveTagsFromResourceResult(outcome.result())); + else + return RemoveTagsFromResourceOutcome(outcome.error()); +} + +void RdsClient::removeTagsFromResourceAsync(const RemoveTagsFromResourceRequest& request, const RemoveTagsFromResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTagsFromResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RemoveTagsFromResourceOutcomeCallable RdsClient::removeTagsFromResourceCallable(const RemoveTagsFromResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTagsFromResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogRecordsOutcome RdsClient::describeSQLLogRecords(const DescribeSQLLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogRecordsOutcome(DescribeSQLLogRecordsResult(outcome.result())); + else + return DescribeSQLLogRecordsOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogRecordsAsync(const DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogRecordsOutcomeCallable RdsClient::describeSQLLogRecordsCallable(const DescribeSQLLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifySecurityIpsOutcome RdsClient::modifySecurityIps(const ModifySecurityIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityIpsOutcome(ModifySecurityIpsResult(outcome.result())); + else + return ModifySecurityIpsOutcome(outcome.error()); +} + +void RdsClient::modifySecurityIpsAsync(const ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifySecurityIpsOutcomeCallable RdsClient::modifySecurityIpsCallable(const ModifySecurityIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeMigrateTasksForSQLServerOutcome RdsClient::describeMigrateTasksForSQLServer(const DescribeMigrateTasksForSQLServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMigrateTasksForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMigrateTasksForSQLServerOutcome(DescribeMigrateTasksForSQLServerResult(outcome.result())); + else + return DescribeMigrateTasksForSQLServerOutcome(outcome.error()); +} + +void RdsClient::describeMigrateTasksForSQLServerAsync(const DescribeMigrateTasksForSQLServerRequest& request, const DescribeMigrateTasksForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMigrateTasksForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeMigrateTasksForSQLServerOutcomeCallable RdsClient::describeMigrateTasksForSQLServerCallable(const DescribeMigrateTasksForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMigrateTasksForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RestoreTableOutcome RdsClient::restoreTable(const RestoreTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestoreTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestoreTableOutcome(RestoreTableResult(outcome.result())); + else + return RestoreTableOutcome(outcome.error()); +} + +void RdsClient::restoreTableAsync(const RestoreTableRequest& request, const RestoreTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restoreTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RestoreTableOutcomeCallable RdsClient::restoreTableCallable(const RestoreTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restoreTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateOnlineDatabaseTaskOutcome RdsClient::createOnlineDatabaseTask(const CreateOnlineDatabaseTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOnlineDatabaseTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOnlineDatabaseTaskOutcome(CreateOnlineDatabaseTaskResult(outcome.result())); + else + return CreateOnlineDatabaseTaskOutcome(outcome.error()); +} + +void RdsClient::createOnlineDatabaseTaskAsync(const CreateOnlineDatabaseTaskRequest& request, const CreateOnlineDatabaseTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOnlineDatabaseTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateOnlineDatabaseTaskOutcomeCallable RdsClient::createOnlineDatabaseTaskCallable(const CreateOnlineDatabaseTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOnlineDatabaseTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::GrantAccountPrivilegeOutcome RdsClient::grantAccountPrivilege(const GrantAccountPrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantAccountPrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantAccountPrivilegeOutcome(GrantAccountPrivilegeResult(outcome.result())); + else + return GrantAccountPrivilegeOutcome(outcome.error()); +} + +void RdsClient::grantAccountPrivilegeAsync(const GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantAccountPrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::GrantAccountPrivilegeOutcomeCallable RdsClient::grantAccountPrivilegeCallable(const GrantAccountPrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantAccountPrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::GrantOperatorPermissionOutcome RdsClient::grantOperatorPermission(const GrantOperatorPermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantOperatorPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantOperatorPermissionOutcome(GrantOperatorPermissionResult(outcome.result())); + else + return GrantOperatorPermissionOutcome(outcome.error()); +} + +void RdsClient::grantOperatorPermissionAsync(const GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantOperatorPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::GrantOperatorPermissionOutcomeCallable RdsClient::grantOperatorPermissionCallable(const GrantOperatorPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantOperatorPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeAvailableRecoveryTimeOutcome RdsClient::describeAvailableRecoveryTime(const DescribeAvailableRecoveryTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableRecoveryTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableRecoveryTimeOutcome(DescribeAvailableRecoveryTimeResult(outcome.result())); + else + return DescribeAvailableRecoveryTimeOutcome(outcome.error()); +} + +void RdsClient::describeAvailableRecoveryTimeAsync(const DescribeAvailableRecoveryTimeRequest& request, const DescribeAvailableRecoveryTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableRecoveryTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeAvailableRecoveryTimeOutcomeCallable RdsClient::describeAvailableRecoveryTimeCallable(const DescribeAvailableRecoveryTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableRecoveryTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceIpHostnameOutcome RdsClient::describeDBInstanceIpHostname(const DescribeDBInstanceIpHostnameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceIpHostnameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceIpHostnameOutcome(DescribeDBInstanceIpHostnameResult(outcome.result())); + else + return DescribeDBInstanceIpHostnameOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceIpHostnameAsync(const DescribeDBInstanceIpHostnameRequest& request, const DescribeDBInstanceIpHostnameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceIpHostname(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceIpHostnameOutcomeCallable RdsClient::describeDBInstanceIpHostnameCallable(const DescribeDBInstanceIpHostnameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceIpHostname(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceTDEOutcome RdsClient::modifyDBInstanceTDE(const ModifyDBInstanceTDERequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceTDEOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceTDEOutcome(ModifyDBInstanceTDEResult(outcome.result())); + else + return ModifyDBInstanceTDEOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceTDEAsync(const ModifyDBInstanceTDERequest& request, const ModifyDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceTDE(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceTDEOutcomeCallable RdsClient::modifyDBInstanceTDECallable(const ModifyDBInstanceTDERequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceTDE(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancePerformanceOutcome RdsClient::describeDBInstancePerformance(const DescribeDBInstancePerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(DescribeDBInstancePerformanceResult(outcome.result())); + else + return DescribeDBInstancePerformanceOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancePerformanceAsync(const DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancePerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancePerformanceOutcomeCallable RdsClient::describeDBInstancePerformanceCallable(const DescribeDBInstancePerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancePerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesOutcome RdsClient::describeDBInstances(const DescribeDBInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesOutcome(DescribeDBInstancesResult(outcome.result())); + else + return DescribeDBInstancesOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesAsync(const DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesOutcomeCallable RdsClient::describeDBInstancesCallable(const DescribeDBInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RequestServiceOfCloudDBExpertOutcome RdsClient::requestServiceOfCloudDBExpert(const RequestServiceOfCloudDBExpertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RequestServiceOfCloudDBExpertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RequestServiceOfCloudDBExpertOutcome(RequestServiceOfCloudDBExpertResult(outcome.result())); + else + return RequestServiceOfCloudDBExpertOutcome(outcome.error()); +} + +void RdsClient::requestServiceOfCloudDBExpertAsync(const RequestServiceOfCloudDBExpertRequest& request, const RequestServiceOfCloudDBExpertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, requestServiceOfCloudDBExpert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RequestServiceOfCloudDBExpertOutcomeCallable RdsClient::requestServiceOfCloudDBExpertCallable(const RequestServiceOfCloudDBExpertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->requestServiceOfCloudDBExpert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeCrossRegionLogBackupFilesOutcome RdsClient::describeCrossRegionLogBackupFiles(const DescribeCrossRegionLogBackupFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCrossRegionLogBackupFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCrossRegionLogBackupFilesOutcome(DescribeCrossRegionLogBackupFilesResult(outcome.result())); + else + return DescribeCrossRegionLogBackupFilesOutcome(outcome.error()); +} + +void RdsClient::describeCrossRegionLogBackupFilesAsync(const DescribeCrossRegionLogBackupFilesRequest& request, const DescribeCrossRegionLogBackupFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCrossRegionLogBackupFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeCrossRegionLogBackupFilesOutcomeCallable RdsClient::describeCrossRegionLogBackupFilesCallable(const DescribeCrossRegionLogBackupFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCrossRegionLogBackupFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupDatabaseOutcome RdsClient::describeBackupDatabase(const DescribeBackupDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupDatabaseOutcome(DescribeBackupDatabaseResult(outcome.result())); + else + return DescribeBackupDatabaseOutcome(outcome.error()); +} + +void RdsClient::describeBackupDatabaseAsync(const DescribeBackupDatabaseRequest& request, const DescribeBackupDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupDatabaseOutcomeCallable RdsClient::describeBackupDatabaseCallable(const DescribeBackupDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDBInstanceReplicaOutcome RdsClient::createDBInstanceReplica(const CreateDBInstanceReplicaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBInstanceReplicaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBInstanceReplicaOutcome(CreateDBInstanceReplicaResult(outcome.result())); + else + return CreateDBInstanceReplicaOutcome(outcome.error()); +} + +void RdsClient::createDBInstanceReplicaAsync(const CreateDBInstanceReplicaRequest& request, const CreateDBInstanceReplicaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBInstanceReplica(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDBInstanceReplicaOutcomeCallable RdsClient::createDBInstanceReplicaCallable(const CreateDBInstanceReplicaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBInstanceReplica(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AllocateInstancePrivateConnectionOutcome RdsClient::allocateInstancePrivateConnection(const AllocateInstancePrivateConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateInstancePrivateConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateInstancePrivateConnectionOutcome(AllocateInstancePrivateConnectionResult(outcome.result())); + else + return AllocateInstancePrivateConnectionOutcome(outcome.error()); +} + +void RdsClient::allocateInstancePrivateConnectionAsync(const AllocateInstancePrivateConnectionRequest& request, const AllocateInstancePrivateConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateInstancePrivateConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AllocateInstancePrivateConnectionOutcomeCallable RdsClient::allocateInstancePrivateConnectionCallable(const AllocateInstancePrivateConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateInstancePrivateConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RevokeAccountPrivilegeOutcome RdsClient::revokeAccountPrivilege(const RevokeAccountPrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeAccountPrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeAccountPrivilegeOutcome(RevokeAccountPrivilegeResult(outcome.result())); + else + return RevokeAccountPrivilegeOutcome(outcome.error()); +} + +void RdsClient::revokeAccountPrivilegeAsync(const RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeAccountPrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RevokeAccountPrivilegeOutcomeCallable RdsClient::revokeAccountPrivilegeCallable(const RevokeAccountPrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeAccountPrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeParameterTemplatesOutcome RdsClient::describeParameterTemplates(const DescribeParameterTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeParameterTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeParameterTemplatesOutcome(DescribeParameterTemplatesResult(outcome.result())); + else + return DescribeParameterTemplatesOutcome(outcome.error()); +} + +void RdsClient::describeParameterTemplatesAsync(const DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeParameterTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeParameterTemplatesOutcomeCallable RdsClient::describeParameterTemplatesCallable(const DescribeParameterTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeParameterTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescibeImportsFromDatabaseOutcome RdsClient::descibeImportsFromDatabase(const DescibeImportsFromDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescibeImportsFromDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescibeImportsFromDatabaseOutcome(DescibeImportsFromDatabaseResult(outcome.result())); + else + return DescibeImportsFromDatabaseOutcome(outcome.error()); +} + +void RdsClient::descibeImportsFromDatabaseAsync(const DescibeImportsFromDatabaseRequest& request, const DescibeImportsFromDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, descibeImportsFromDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescibeImportsFromDatabaseOutcomeCallable RdsClient::descibeImportsFromDatabaseCallable(const DescibeImportsFromDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->descibeImportsFromDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CopyDatabaseBetweenInstancesOutcome RdsClient::copyDatabaseBetweenInstances(const CopyDatabaseBetweenInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CopyDatabaseBetweenInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyDatabaseBetweenInstancesOutcome(CopyDatabaseBetweenInstancesResult(outcome.result())); + else + return CopyDatabaseBetweenInstancesOutcome(outcome.error()); +} + +void RdsClient::copyDatabaseBetweenInstancesAsync(const CopyDatabaseBetweenInstancesRequest& request, const CopyDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyDatabaseBetweenInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CopyDatabaseBetweenInstancesOutcomeCallable RdsClient::copyDatabaseBetweenInstancesCallable(const CopyDatabaseBetweenInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyDatabaseBetweenInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeInstanceVpcMigrateInfoOutcome RdsClient::describeInstanceVpcMigrateInfo(const DescribeInstanceVpcMigrateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceVpcMigrateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceVpcMigrateInfoOutcome(DescribeInstanceVpcMigrateInfoResult(outcome.result())); + else + return DescribeInstanceVpcMigrateInfoOutcome(outcome.error()); +} + +void RdsClient::describeInstanceVpcMigrateInfoAsync(const DescribeInstanceVpcMigrateInfoRequest& request, const DescribeInstanceVpcMigrateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceVpcMigrateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeInstanceVpcMigrateInfoOutcomeCallable RdsClient::describeInstanceVpcMigrateInfoCallable(const DescribeInstanceVpcMigrateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceVpcMigrateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CopyDatabaseOutcome RdsClient::copyDatabase(const CopyDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CopyDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyDatabaseOutcome(CopyDatabaseResult(outcome.result())); + else + return CopyDatabaseOutcome(outcome.error()); +} + +void RdsClient::copyDatabaseAsync(const CopyDatabaseRequest& request, const CopyDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CopyDatabaseOutcomeCallable RdsClient::copyDatabaseCallable(const CopyDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceSSLOutcome RdsClient::modifyDBInstanceSSL(const ModifyDBInstanceSSLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceSSLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceSSLOutcome(ModifyDBInstanceSSLResult(outcome.result())); + else + return ModifyDBInstanceSSLOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceSSLAsync(const ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceSSL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceSSLOutcomeCallable RdsClient::modifyDBInstanceSSLCallable(const ModifyDBInstanceSSLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceSSL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDBInstanceOutcome RdsClient::createDBInstance(const CreateDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBInstanceOutcome(CreateDBInstanceResult(outcome.result())); + else + return CreateDBInstanceOutcome(outcome.error()); +} + +void RdsClient::createDBInstanceAsync(const CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDBInstanceOutcomeCallable RdsClient::createDBInstanceCallable(const CreateDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceTDEOutcome RdsClient::describeDBInstanceTDE(const DescribeDBInstanceTDERequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceTDEOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceTDEOutcome(DescribeDBInstanceTDEResult(outcome.result())); + else + return DescribeDBInstanceTDEOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceTDEAsync(const DescribeDBInstanceTDERequest& request, const DescribeDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceTDE(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceTDEOutcomeCallable RdsClient::describeDBInstanceTDECallable(const DescribeDBInstanceTDERequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceTDE(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogReportsOutcome RdsClient::describeSQLLogReports(const DescribeSQLLogReportsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogReportsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogReportsOutcome(DescribeSQLLogReportsResult(outcome.result())); + else + return DescribeSQLLogReportsOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogReportsAsync(const DescribeSQLLogReportsRequest& request, const DescribeSQLLogReportsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogReports(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogReportsOutcomeCallable RdsClient::describeSQLLogReportsCallable(const DescribeSQLLogReportsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceConnectionModeOutcome RdsClient::modifyDBInstanceConnectionMode(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(ModifyDBInstanceConnectionModeResult(outcome.result())); + else + return ModifyDBInstanceConnectionModeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceConnectionModeAsync(const ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceConnectionModeOutcomeCallable RdsClient::modifyDBInstanceConnectionModeCallable(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceNetInfoOutcome RdsClient::describeDBInstanceNetInfo(const DescribeDBInstanceNetInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceNetInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceNetInfoOutcome(DescribeDBInstanceNetInfoResult(outcome.result())); + else + return DescribeDBInstanceNetInfoOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceNetInfoAsync(const DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceNetInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceNetInfoOutcomeCallable RdsClient::describeDBInstanceNetInfoCallable(const DescribeDBInstanceNetInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceNetInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeAvailableResourceOutcome RdsClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result())); + else + return DescribeAvailableResourceOutcome(outcome.error()); +} + +void RdsClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeAvailableResourceOutcomeCallable RdsClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AllocateReadWriteSplittingConnectionOutcome RdsClient::allocateReadWriteSplittingConnection(const AllocateReadWriteSplittingConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateReadWriteSplittingConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateReadWriteSplittingConnectionOutcome(AllocateReadWriteSplittingConnectionResult(outcome.result())); + else + return AllocateReadWriteSplittingConnectionOutcome(outcome.error()); +} + +void RdsClient::allocateReadWriteSplittingConnectionAsync(const AllocateReadWriteSplittingConnectionRequest& request, const AllocateReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateReadWriteSplittingConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AllocateReadWriteSplittingConnectionOutcomeCallable RdsClient::allocateReadWriteSplittingConnectionCallable(const AllocateReadWriteSplittingConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateReadWriteSplittingConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeCloudDbExpertServiceOutcome RdsClient::describeCloudDbExpertService(const DescribeCloudDbExpertServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudDbExpertServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudDbExpertServiceOutcome(DescribeCloudDbExpertServiceResult(outcome.result())); + else + return DescribeCloudDbExpertServiceOutcome(outcome.error()); +} + +void RdsClient::describeCloudDbExpertServiceAsync(const DescribeCloudDbExpertServiceRequest& request, const DescribeCloudDbExpertServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudDbExpertService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeCloudDbExpertServiceOutcomeCallable RdsClient::describeCloudDbExpertServiceCallable(const DescribeCloudDbExpertServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudDbExpertService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceAutoUpgradeMinorVersionOutcome RdsClient::modifyDBInstanceAutoUpgradeMinorVersion(const ModifyDBInstanceAutoUpgradeMinorVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceAutoUpgradeMinorVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceAutoUpgradeMinorVersionOutcome(ModifyDBInstanceAutoUpgradeMinorVersionResult(outcome.result())); + else + return ModifyDBInstanceAutoUpgradeMinorVersionOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceAutoUpgradeMinorVersionAsync(const ModifyDBInstanceAutoUpgradeMinorVersionRequest& request, const ModifyDBInstanceAutoUpgradeMinorVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceAutoUpgradeMinorVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceAutoUpgradeMinorVersionOutcomeCallable RdsClient::modifyDBInstanceAutoUpgradeMinorVersionCallable(const ModifyDBInstanceAutoUpgradeMinorVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceAutoUpgradeMinorVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::EvaluateSupportByokShowOutcome RdsClient::evaluateSupportByokShow(const EvaluateSupportByokShowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EvaluateSupportByokShowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EvaluateSupportByokShowOutcome(EvaluateSupportByokShowResult(outcome.result())); + else + return EvaluateSupportByokShowOutcome(outcome.error()); +} + +void RdsClient::evaluateSupportByokShowAsync(const EvaluateSupportByokShowRequest& request, const EvaluateSupportByokShowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, evaluateSupportByokShow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::EvaluateSupportByokShowOutcomeCallable RdsClient::evaluateSupportByokShowCallable(const EvaluateSupportByokShowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->evaluateSupportByokShow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ReleaseInstancePublicConnectionOutcome RdsClient::releaseInstancePublicConnection(const ReleaseInstancePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstancePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstancePublicConnectionOutcome(ReleaseInstancePublicConnectionResult(outcome.result())); + else + return ReleaseInstancePublicConnectionOutcome(outcome.error()); +} + +void RdsClient::releaseInstancePublicConnectionAsync(const ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstancePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ReleaseInstancePublicConnectionOutcomeCallable RdsClient::releaseInstancePublicConnectionCallable(const ReleaseInstancePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstancePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CalculateDBInstanceWeightOutcome RdsClient::calculateDBInstanceWeight(const CalculateDBInstanceWeightRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CalculateDBInstanceWeightOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CalculateDBInstanceWeightOutcome(CalculateDBInstanceWeightResult(outcome.result())); + else + return CalculateDBInstanceWeightOutcome(outcome.error()); +} + +void RdsClient::calculateDBInstanceWeightAsync(const CalculateDBInstanceWeightRequest& request, const CalculateDBInstanceWeightAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, calculateDBInstanceWeight(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CalculateDBInstanceWeightOutcomeCallable RdsClient::calculateDBInstanceWeightCallable(const CalculateDBInstanceWeightRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->calculateDBInstanceWeight(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceNetworkTypeOutcome RdsClient::modifyDBInstanceNetworkType(const ModifyDBInstanceNetworkTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceNetworkTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceNetworkTypeOutcome(ModifyDBInstanceNetworkTypeResult(outcome.result())); + else + return ModifyDBInstanceNetworkTypeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceNetworkTypeAsync(const ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceNetworkType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceNetworkTypeOutcomeCallable RdsClient::modifyDBInstanceNetworkTypeCallable(const ModifyDBInstanceNetworkTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceNetworkType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDdrInstanceOutcome RdsClient::createDdrInstance(const CreateDdrInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDdrInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDdrInstanceOutcome(CreateDdrInstanceResult(outcome.result())); + else + return CreateDdrInstanceOutcome(outcome.error()); +} + +void RdsClient::createDdrInstanceAsync(const CreateDdrInstanceRequest& request, const CreateDdrInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDdrInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDdrInstanceOutcomeCallable RdsClient::createDdrInstanceCallable(const CreateDdrInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDdrInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDTCSecurityIpHostsForSQLServerOutcome RdsClient::describeDTCSecurityIpHostsForSQLServer(const DescribeDTCSecurityIpHostsForSQLServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDTCSecurityIpHostsForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDTCSecurityIpHostsForSQLServerOutcome(DescribeDTCSecurityIpHostsForSQLServerResult(outcome.result())); + else + return DescribeDTCSecurityIpHostsForSQLServerOutcome(outcome.error()); +} + +void RdsClient::describeDTCSecurityIpHostsForSQLServerAsync(const DescribeDTCSecurityIpHostsForSQLServerRequest& request, const DescribeDTCSecurityIpHostsForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDTCSecurityIpHostsForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDTCSecurityIpHostsForSQLServerOutcomeCallable RdsClient::describeDTCSecurityIpHostsForSQLServerCallable(const DescribeDTCSecurityIpHostsForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDTCSecurityIpHostsForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSlowLogsOutcome RdsClient::describeSlowLogs(const DescribeSlowLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlowLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlowLogsOutcome(DescribeSlowLogsResult(outcome.result())); + else + return DescribeSlowLogsOutcome(outcome.error()); +} + +void RdsClient::describeSlowLogsAsync(const DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlowLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSlowLogsOutcomeCallable RdsClient::describeSlowLogsCallable(const DescribeSlowLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlowLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateBackupOutcome RdsClient::createBackup(const CreateBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBackupOutcome(CreateBackupResult(outcome.result())); + else + return CreateBackupOutcome(outcome.error()); +} + +void RdsClient::createBackupAsync(const CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateBackupOutcomeCallable RdsClient::createBackupCallable(const CreateBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyReadWriteSplittingConnectionOutcome RdsClient::modifyReadWriteSplittingConnection(const ModifyReadWriteSplittingConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReadWriteSplittingConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReadWriteSplittingConnectionOutcome(ModifyReadWriteSplittingConnectionResult(outcome.result())); + else + return ModifyReadWriteSplittingConnectionOutcome(outcome.error()); +} + +void RdsClient::modifyReadWriteSplittingConnectionAsync(const ModifyReadWriteSplittingConnectionRequest& request, const ModifyReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReadWriteSplittingConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyReadWriteSplittingConnectionOutcomeCallable RdsClient::modifyReadWriteSplittingConnectionCallable(const ModifyReadWriteSplittingConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReadWriteSplittingConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceMaintainTimeOutcome RdsClient::modifyDBInstanceMaintainTime(const ModifyDBInstanceMaintainTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceMaintainTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceMaintainTimeOutcome(ModifyDBInstanceMaintainTimeResult(outcome.result())); + else + return ModifyDBInstanceMaintainTimeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceMaintainTimeAsync(const ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceMaintainTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceMaintainTimeOutcomeCallable RdsClient::modifyDBInstanceMaintainTimeCallable(const ModifyDBInstanceMaintainTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceMaintainTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceDescriptionOutcome RdsClient::modifyDBInstanceDescription(const ModifyDBInstanceDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceDescriptionOutcome(ModifyDBInstanceDescriptionResult(outcome.result())); + else + return ModifyDBInstanceDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceDescriptionAsync(const ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceDescriptionOutcomeCallable RdsClient::modifyDBInstanceDescriptionCallable(const ModifyDBInstanceDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeCrossRegionBackupsOutcome RdsClient::describeCrossRegionBackups(const DescribeCrossRegionBackupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCrossRegionBackupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCrossRegionBackupsOutcome(DescribeCrossRegionBackupsResult(outcome.result())); + else + return DescribeCrossRegionBackupsOutcome(outcome.error()); +} + +void RdsClient::describeCrossRegionBackupsAsync(const DescribeCrossRegionBackupsRequest& request, const DescribeCrossRegionBackupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCrossRegionBackups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeCrossRegionBackupsOutcomeCallable RdsClient::describeCrossRegionBackupsCallable(const DescribeCrossRegionBackupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCrossRegionBackups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyResourceGroupOutcome RdsClient::modifyResourceGroup(const ModifyResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyResourceGroupOutcome(ModifyResourceGroupResult(outcome.result())); + else + return ModifyResourceGroupOutcome(outcome.error()); +} + +void RdsClient::modifyResourceGroupAsync(const ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyResourceGroupOutcomeCallable RdsClient::modifyResourceGroupCallable(const ModifyResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeProxyFunctionSupportOutcome RdsClient::describeProxyFunctionSupport(const DescribeProxyFunctionSupportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProxyFunctionSupportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProxyFunctionSupportOutcome(DescribeProxyFunctionSupportResult(outcome.result())); + else + return DescribeProxyFunctionSupportOutcome(outcome.error()); +} + +void RdsClient::describeProxyFunctionSupportAsync(const DescribeProxyFunctionSupportRequest& request, const DescribeProxyFunctionSupportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProxyFunctionSupport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeProxyFunctionSupportOutcomeCallable RdsClient::describeProxyFunctionSupportCallable(const DescribeProxyFunctionSupportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProxyFunctionSupport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOssDownloadsForSQLServerOutcome RdsClient::describeOssDownloadsForSQLServer(const DescribeOssDownloadsForSQLServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssDownloadsForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssDownloadsForSQLServerOutcome(DescribeOssDownloadsForSQLServerResult(outcome.result())); + else + return DescribeOssDownloadsForSQLServerOutcome(outcome.error()); +} + +void RdsClient::describeOssDownloadsForSQLServerAsync(const DescribeOssDownloadsForSQLServerRequest& request, const DescribeOssDownloadsForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssDownloadsForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOssDownloadsForSQLServerOutcomeCallable RdsClient::describeOssDownloadsForSQLServerCallable(const DescribeOssDownloadsForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssDownloadsForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeInstanceCrossBackupPolicyOutcome RdsClient::describeInstanceCrossBackupPolicy(const DescribeInstanceCrossBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceCrossBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceCrossBackupPolicyOutcome(DescribeInstanceCrossBackupPolicyResult(outcome.result())); + else + return DescribeInstanceCrossBackupPolicyOutcome(outcome.error()); +} + +void RdsClient::describeInstanceCrossBackupPolicyAsync(const DescribeInstanceCrossBackupPolicyRequest& request, const DescribeInstanceCrossBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceCrossBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeInstanceCrossBackupPolicyOutcomeCallable RdsClient::describeInstanceCrossBackupPolicyCallable(const DescribeInstanceCrossBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceCrossBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ResetAccountOutcome RdsClient::resetAccount(const ResetAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountOutcome(ResetAccountResult(outcome.result())); + else + return ResetAccountOutcome(outcome.error()); +} + +void RdsClient::resetAccountAsync(const ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ResetAccountOutcomeCallable RdsClient::resetAccountCallable(const ResetAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeResourceUsageOutcome RdsClient::describeResourceUsage(const DescribeResourceUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourceUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourceUsageOutcome(DescribeResourceUsageResult(outcome.result())); + else + return DescribeResourceUsageOutcome(outcome.error()); +} + +void RdsClient::describeResourceUsageAsync(const DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourceUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeResourceUsageOutcomeCallable RdsClient::describeResourceUsageCallable(const DescribeResourceUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourceUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeCrossRegionBackupDBInstanceOutcome RdsClient::describeCrossRegionBackupDBInstance(const DescribeCrossRegionBackupDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCrossRegionBackupDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCrossRegionBackupDBInstanceOutcome(DescribeCrossRegionBackupDBInstanceResult(outcome.result())); + else + return DescribeCrossRegionBackupDBInstanceOutcome(outcome.error()); +} + +void RdsClient::describeCrossRegionBackupDBInstanceAsync(const DescribeCrossRegionBackupDBInstanceRequest& request, const DescribeCrossRegionBackupDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCrossRegionBackupDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeCrossRegionBackupDBInstanceOutcomeCallable RdsClient::describeCrossRegionBackupDBInstanceCallable(const DescribeCrossRegionBackupDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCrossRegionBackupDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::PurgeDBInstanceLogOutcome RdsClient::purgeDBInstanceLog(const PurgeDBInstanceLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PurgeDBInstanceLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PurgeDBInstanceLogOutcome(PurgeDBInstanceLogResult(outcome.result())); + else + return PurgeDBInstanceLogOutcome(outcome.error()); +} + +void RdsClient::purgeDBInstanceLogAsync(const PurgeDBInstanceLogRequest& request, const PurgeDBInstanceLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, purgeDBInstanceLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::PurgeDBInstanceLogOutcomeCallable RdsClient::purgeDBInstanceLogCallable(const PurgeDBInstanceLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->purgeDBInstanceLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::UpgradeDBInstanceKernelVersionOutcome RdsClient::upgradeDBInstanceKernelVersion(const UpgradeDBInstanceKernelVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBInstanceKernelVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBInstanceKernelVersionOutcome(UpgradeDBInstanceKernelVersionResult(outcome.result())); + else + return UpgradeDBInstanceKernelVersionOutcome(outcome.error()); +} + +void RdsClient::upgradeDBInstanceKernelVersionAsync(const UpgradeDBInstanceKernelVersionRequest& request, const UpgradeDBInstanceKernelVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBInstanceKernelVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::UpgradeDBInstanceKernelVersionOutcomeCallable RdsClient::upgradeDBInstanceKernelVersionCallable(const UpgradeDBInstanceKernelVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBInstanceKernelVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeTaskInfoOutcome RdsClient::describeTaskInfo(const DescribeTaskInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTaskInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTaskInfoOutcome(DescribeTaskInfoResult(outcome.result())); + else + return DescribeTaskInfoOutcome(outcome.error()); +} + +void RdsClient::describeTaskInfoAsync(const DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTaskInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeTaskInfoOutcomeCallable RdsClient::describeTaskInfoCallable(const DescribeTaskInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTaskInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyMySQLDBInstanceDelayOutcome RdsClient::modifyMySQLDBInstanceDelay(const ModifyMySQLDBInstanceDelayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyMySQLDBInstanceDelayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyMySQLDBInstanceDelayOutcome(ModifyMySQLDBInstanceDelayResult(outcome.result())); + else + return ModifyMySQLDBInstanceDelayOutcome(outcome.error()); +} + +void RdsClient::modifyMySQLDBInstanceDelayAsync(const ModifyMySQLDBInstanceDelayRequest& request, const ModifyMySQLDBInstanceDelayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyMySQLDBInstanceDelay(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyMySQLDBInstanceDelayOutcomeCallable RdsClient::modifyMySQLDBInstanceDelayCallable(const ModifyMySQLDBInstanceDelayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyMySQLDBInstanceDelay(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeRegionsOutcome RdsClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void RdsClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeRegionsOutcomeCallable RdsClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::MigrateToOtherZoneOutcome RdsClient::migrateToOtherZone(const MigrateToOtherZoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MigrateToOtherZoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MigrateToOtherZoneOutcome(MigrateToOtherZoneResult(outcome.result())); + else + return MigrateToOtherZoneOutcome(outcome.error()); +} + +void RdsClient::migrateToOtherZoneAsync(const MigrateToOtherZoneRequest& request, const MigrateToOtherZoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, migrateToOtherZone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::MigrateToOtherZoneOutcomeCallable RdsClient::migrateToOtherZoneCallable(const MigrateToOtherZoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->migrateToOtherZone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteAccountOutcome RdsClient::deleteAccount(const DeleteAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccountOutcome(DeleteAccountResult(outcome.result())); + else + return DeleteAccountOutcome(outcome.error()); +} + +void RdsClient::deleteAccountAsync(const DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteAccountOutcomeCallable RdsClient::deleteAccountCallable(const DeleteAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSlowLogRecordsOutcome RdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(DescribeSlowLogRecordsResult(outcome.result())); + else + return DescribeSlowLogRecordsOutcome(outcome.error()); +} + +void RdsClient::describeSlowLogRecordsAsync(const DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlowLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSlowLogRecordsOutcomeCallable RdsClient::describeSlowLogRecordsCallable(const DescribeSlowLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlowLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ReleaseReadWriteSplittingConnectionOutcome RdsClient::releaseReadWriteSplittingConnection(const ReleaseReadWriteSplittingConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseReadWriteSplittingConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseReadWriteSplittingConnectionOutcome(ReleaseReadWriteSplittingConnectionResult(outcome.result())); + else + return ReleaseReadWriteSplittingConnectionOutcome(outcome.error()); +} + +void RdsClient::releaseReadWriteSplittingConnectionAsync(const ReleaseReadWriteSplittingConnectionRequest& request, const ReleaseReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseReadWriteSplittingConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ReleaseReadWriteSplittingConnectionOutcomeCallable RdsClient::releaseReadWriteSplittingConnectionCallable(const ReleaseReadWriteSplittingConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseReadWriteSplittingConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeLogBackupFilesOutcome RdsClient::describeLogBackupFiles(const DescribeLogBackupFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLogBackupFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLogBackupFilesOutcome(DescribeLogBackupFilesResult(outcome.result())); + else + return DescribeLogBackupFilesOutcome(outcome.error()); +} + +void RdsClient::describeLogBackupFilesAsync(const DescribeLogBackupFilesRequest& request, const DescribeLogBackupFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLogBackupFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeLogBackupFilesOutcomeCallable RdsClient::describeLogBackupFilesCallable(const DescribeLogBackupFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLogBackupFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeAvailableInstanceClassOutcome RdsClient::describeAvailableInstanceClass(const DescribeAvailableInstanceClassRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableInstanceClassOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableInstanceClassOutcome(DescribeAvailableInstanceClassResult(outcome.result())); + else + return DescribeAvailableInstanceClassOutcome(outcome.error()); +} + +void RdsClient::describeAvailableInstanceClassAsync(const DescribeAvailableInstanceClassRequest& request, const DescribeAvailableInstanceClassAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableInstanceClass(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeAvailableInstanceClassOutcomeCallable RdsClient::describeAvailableInstanceClassCallable(const DescribeAvailableInstanceClassRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableInstanceClass(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeErrorLogsOutcome RdsClient::describeErrorLogs(const DescribeErrorLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeErrorLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeErrorLogsOutcome(DescribeErrorLogsResult(outcome.result())); + else + return DescribeErrorLogsOutcome(outcome.error()); +} + +void RdsClient::describeErrorLogsAsync(const DescribeErrorLogsRequest& request, const DescribeErrorLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeErrorLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeErrorLogsOutcomeCallable RdsClient::describeErrorLogsCallable(const DescribeErrorLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeErrorLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceHAConfigOutcome RdsClient::modifyDBInstanceHAConfig(const ModifyDBInstanceHAConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceHAConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceHAConfigOutcome(ModifyDBInstanceHAConfigResult(outcome.result())); + else + return ModifyDBInstanceHAConfigOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceHAConfigAsync(const ModifyDBInstanceHAConfigRequest& request, const ModifyDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceHAConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceHAConfigOutcomeCallable RdsClient::modifyDBInstanceHAConfigCallable(const ModifyDBInstanceHAConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceHAConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesAsCsvOutcome RdsClient::describeDBInstancesAsCsv(const DescribeDBInstancesAsCsvRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesAsCsvOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesAsCsvOutcome(DescribeDBInstancesAsCsvResult(outcome.result())); + else + return DescribeDBInstancesAsCsvOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesAsCsvAsync(const DescribeDBInstancesAsCsvRequest& request, const DescribeDBInstancesAsCsvAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancesAsCsv(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesAsCsvOutcomeCallable RdsClient::describeDBInstancesAsCsvCallable(const DescribeDBInstancesAsCsvRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancesAsCsv(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ResetAccountPasswordOutcome RdsClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountPasswordOutcome(ResetAccountPasswordResult(outcome.result())); + else + return ResetAccountPasswordOutcome(outcome.error()); +} + +void RdsClient::resetAccountPasswordAsync(const ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ResetAccountPasswordOutcomeCallable RdsClient::resetAccountPasswordCallable(const ResetAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceProxyConfigurationOutcome RdsClient::modifyDBInstanceProxyConfiguration(const ModifyDBInstanceProxyConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceProxyConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceProxyConfigurationOutcome(ModifyDBInstanceProxyConfigurationResult(outcome.result())); + else + return ModifyDBInstanceProxyConfigurationOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceProxyConfigurationAsync(const ModifyDBInstanceProxyConfigurationRequest& request, const ModifyDBInstanceProxyConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceProxyConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceProxyConfigurationOutcomeCallable RdsClient::modifyDBInstanceProxyConfigurationCallable(const ModifyDBInstanceProxyConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceProxyConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeAccountsOutcome RdsClient::describeAccounts(const DescribeAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); + else + return DescribeAccountsOutcome(outcome.error()); +} + +void RdsClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeAccountsOutcomeCallable RdsClient::describeAccountsCallable(const DescribeAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribePriceOutcome RdsClient::describePrice(const DescribePriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePriceOutcome(DescribePriceResult(outcome.result())); + else + return DescribePriceOutcome(outcome.error()); +} + +void RdsClient::describePriceAsync(const DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribePriceOutcomeCallable RdsClient::describePriceCallable(const DescribePriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceByTagsOutcome RdsClient::describeDBInstanceByTags(const DescribeDBInstanceByTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceByTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceByTagsOutcome(DescribeDBInstanceByTagsResult(outcome.result())); + else + return DescribeDBInstanceByTagsOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceByTagsAsync(const DescribeDBInstanceByTagsRequest& request, const DescribeDBInstanceByTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceByTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceByTagsOutcomeCallable RdsClient::describeDBInstanceByTagsCallable(const DescribeDBInstanceByTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceByTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeMetaListOutcome RdsClient::describeMetaList(const DescribeMetaListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetaListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetaListOutcome(DescribeMetaListResult(outcome.result())); + else + return DescribeMetaListOutcome(outcome.error()); +} + +void RdsClient::describeMetaListAsync(const DescribeMetaListRequest& request, const DescribeMetaListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetaList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeMetaListOutcomeCallable RdsClient::describeMetaListCallable(const DescribeMetaListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetaList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceSSLOutcome RdsClient::describeDBInstanceSSL(const DescribeDBInstanceSSLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceSSLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceSSLOutcome(DescribeDBInstanceSSLResult(outcome.result())); + else + return DescribeDBInstanceSSLOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceSSLAsync(const DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceSSL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceSSLOutcomeCallable RdsClient::describeDBInstanceSSLCallable(const DescribeDBInstanceSSLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceSSL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesByPerformanceOutcome RdsClient::describeDBInstancesByPerformance(const DescribeDBInstancesByPerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesByPerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesByPerformanceOutcome(DescribeDBInstancesByPerformanceResult(outcome.result())); + else + return DescribeDBInstancesByPerformanceOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesByPerformanceAsync(const DescribeDBInstancesByPerformanceRequest& request, const DescribeDBInstancesByPerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancesByPerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesByPerformanceOutcomeCallable RdsClient::describeDBInstancesByPerformanceCallable(const DescribeDBInstancesByPerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancesByPerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLReportsOutcome RdsClient::describeSQLReports(const DescribeSQLReportsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLReportsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLReportsOutcome(DescribeSQLReportsResult(outcome.result())); + else + return DescribeSQLReportsOutcome(outcome.error()); +} + +void RdsClient::describeSQLReportsAsync(const DescribeSQLReportsRequest& request, const DescribeSQLReportsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLReports(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLReportsOutcomeCallable RdsClient::describeSQLReportsCallable(const DescribeSQLReportsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupTasksOutcome RdsClient::describeBackupTasks(const DescribeBackupTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupTasksOutcome(DescribeBackupTasksResult(outcome.result())); + else + return DescribeBackupTasksOutcome(outcome.error()); +} + +void RdsClient::describeBackupTasksAsync(const DescribeBackupTasksRequest& request, const DescribeBackupTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupTasksOutcomeCallable RdsClient::describeBackupTasksCallable(const DescribeBackupTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteDatabaseOutcome RdsClient::deleteDatabase(const DeleteDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDatabaseOutcome(DeleteDatabaseResult(outcome.result())); + else + return DeleteDatabaseOutcome(outcome.error()); +} + +void RdsClient::deleteDatabaseAsync(const DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteDatabaseOutcomeCallable RdsClient::deleteDatabaseCallable(const DeleteDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupPolicyOutcome RdsClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupPolicyOutcome(DescribeBackupPolicyResult(outcome.result())); + else + return DescribeBackupPolicyOutcome(outcome.error()); +} + +void RdsClient::describeBackupPolicyAsync(const DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupPolicyOutcomeCallable RdsClient::describeBackupPolicyCallable(const DescribeBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyCollationTimeZoneOutcome RdsClient::modifyCollationTimeZone(const ModifyCollationTimeZoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCollationTimeZoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCollationTimeZoneOutcome(ModifyCollationTimeZoneResult(outcome.result())); + else + return ModifyCollationTimeZoneOutcome(outcome.error()); +} + +void RdsClient::modifyCollationTimeZoneAsync(const ModifyCollationTimeZoneRequest& request, const ModifyCollationTimeZoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCollationTimeZone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyCollationTimeZoneOutcomeCallable RdsClient::modifyCollationTimeZoneCallable(const ModifyCollationTimeZoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCollationTimeZone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateMigrateTaskForSQLServerOutcome RdsClient::createMigrateTaskForSQLServer(const CreateMigrateTaskForSQLServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMigrateTaskForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMigrateTaskForSQLServerOutcome(CreateMigrateTaskForSQLServerResult(outcome.result())); + else + return CreateMigrateTaskForSQLServerOutcome(outcome.error()); +} + +void RdsClient::createMigrateTaskForSQLServerAsync(const CreateMigrateTaskForSQLServerRequest& request, const CreateMigrateTaskForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMigrateTaskForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateMigrateTaskForSQLServerOutcomeCallable RdsClient::createMigrateTaskForSQLServerCallable(const CreateMigrateTaskForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMigrateTaskForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceIPArrayListOutcome RdsClient::describeDBInstanceIPArrayList(const DescribeDBInstanceIPArrayListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceIPArrayListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceIPArrayListOutcome(DescribeDBInstanceIPArrayListResult(outcome.result())); + else + return DescribeDBInstanceIPArrayListOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceIPArrayListAsync(const DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceIPArrayList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceIPArrayListOutcomeCallable RdsClient::describeDBInstanceIPArrayListCallable(const DescribeDBInstanceIPArrayListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceIPArrayList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::SwitchDBInstanceHAOutcome RdsClient::switchDBInstanceHA(const SwitchDBInstanceHARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchDBInstanceHAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchDBInstanceHAOutcome(SwitchDBInstanceHAResult(outcome.result())); + else + return SwitchDBInstanceHAOutcome(outcome.error()); +} + +void RdsClient::switchDBInstanceHAAsync(const SwitchDBInstanceHARequest& request, const SwitchDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchDBInstanceHA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::SwitchDBInstanceHAOutcomeCallable RdsClient::switchDBInstanceHACallable(const SwitchDBInstanceHARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchDBInstanceHA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ResetAccountForPGOutcome RdsClient::resetAccountForPG(const ResetAccountForPGRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountForPGOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountForPGOutcome(ResetAccountForPGResult(outcome.result())); + else + return ResetAccountForPGOutcome(outcome.error()); +} + +void RdsClient::resetAccountForPGAsync(const ResetAccountForPGRequest& request, const ResetAccountForPGAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountForPG(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ResetAccountForPGOutcomeCallable RdsClient::resetAccountForPGCallable(const ResetAccountForPGRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountForPG(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/rds/src/model/AddTagsToResourceRequest.cc b/rds/src/model/AddTagsToResourceRequest.cc index 3e5faaf0a..66f1bf07f 100644 --- a/rds/src/model/AddTagsToResourceRequest.cc +++ b/rds/src/model/AddTagsToResourceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::AddTagsToResourceRequest; - -AddTagsToResourceRequest::AddTagsToResourceRequest() : - RpcServiceRequest("rds", "2014-08-15", "AddTagsToResource") -{} - -AddTagsToResourceRequest::~AddTagsToResourceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::AddTagsToResourceRequest; + +AddTagsToResourceRequest::AddTagsToResourceRequest() : + RpcServiceRequest("rds", "2014-08-15", "AddTagsToResource") +{} + +AddTagsToResourceRequest::~AddTagsToResourceRequest() +{} + std::string AddTagsToResourceRequest::getTag4value()const { return tag4value_; diff --git a/rds/src/model/AddTagsToResourceResult.cc b/rds/src/model/AddTagsToResourceResult.cc index 8d42e241c..0ffbee871 100644 --- a/rds/src/model/AddTagsToResourceResult.cc +++ b/rds/src/model/AddTagsToResourceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -AddTagsToResourceResult::AddTagsToResourceResult() : - ServiceResult() -{} - -AddTagsToResourceResult::AddTagsToResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddTagsToResourceResult::~AddTagsToResourceResult() -{} - -void AddTagsToResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +AddTagsToResourceResult::AddTagsToResourceResult() : + ServiceResult() +{} + +AddTagsToResourceResult::AddTagsToResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTagsToResourceResult::~AddTagsToResourceResult() +{} + +void AddTagsToResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/AllocateInstancePrivateConnectionRequest.cc b/rds/src/model/AllocateInstancePrivateConnectionRequest.cc index 12372690a..d77bd848b 100644 --- a/rds/src/model/AllocateInstancePrivateConnectionRequest.cc +++ b/rds/src/model/AllocateInstancePrivateConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::AllocateInstancePrivateConnectionRequest; - -AllocateInstancePrivateConnectionRequest::AllocateInstancePrivateConnectionRequest() : - RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePrivateConnection") -{} - -AllocateInstancePrivateConnectionRequest::~AllocateInstancePrivateConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::AllocateInstancePrivateConnectionRequest; + +AllocateInstancePrivateConnectionRequest::AllocateInstancePrivateConnectionRequest() : + RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePrivateConnection") +{} + +AllocateInstancePrivateConnectionRequest::~AllocateInstancePrivateConnectionRequest() +{} + long AllocateInstancePrivateConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/AllocateInstancePrivateConnectionResult.cc b/rds/src/model/AllocateInstancePrivateConnectionResult.cc index 4c88f4e2d..b793fa3bb 100644 --- a/rds/src/model/AllocateInstancePrivateConnectionResult.cc +++ b/rds/src/model/AllocateInstancePrivateConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult() : - ServiceResult() -{} - -AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AllocateInstancePrivateConnectionResult::~AllocateInstancePrivateConnectionResult() -{} - -void AllocateInstancePrivateConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult() : + ServiceResult() +{} + +AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateInstancePrivateConnectionResult::~AllocateInstancePrivateConnectionResult() +{} + +void AllocateInstancePrivateConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/AllocateInstancePublicConnectionRequest.cc b/rds/src/model/AllocateInstancePublicConnectionRequest.cc index 1511f2f93..e789a18e1 100644 --- a/rds/src/model/AllocateInstancePublicConnectionRequest.cc +++ b/rds/src/model/AllocateInstancePublicConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::AllocateInstancePublicConnectionRequest; - -AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest() : - RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePublicConnection") -{} - -AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::AllocateInstancePublicConnectionRequest; + +AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest() : + RpcServiceRequest("rds", "2014-08-15", "AllocateInstancePublicConnection") +{} + +AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest() +{} + long AllocateInstancePublicConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/AllocateInstancePublicConnectionResult.cc b/rds/src/model/AllocateInstancePublicConnectionResult.cc index f61524dee..625c39bb5 100644 --- a/rds/src/model/AllocateInstancePublicConnectionResult.cc +++ b/rds/src/model/AllocateInstancePublicConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult() : - ServiceResult() -{} - -AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult() -{} - -void AllocateInstancePublicConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult() : + ServiceResult() +{} + +AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult() +{} + +void AllocateInstancePublicConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/AllocateInstanceVpcNetworkTypeRequest.cc b/rds/src/model/AllocateInstanceVpcNetworkTypeRequest.cc index 01958ab23..7fa1c140b 100644 --- a/rds/src/model/AllocateInstanceVpcNetworkTypeRequest.cc +++ b/rds/src/model/AllocateInstanceVpcNetworkTypeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::AllocateInstanceVpcNetworkTypeRequest; - -AllocateInstanceVpcNetworkTypeRequest::AllocateInstanceVpcNetworkTypeRequest() : - RpcServiceRequest("rds", "2014-08-15", "AllocateInstanceVpcNetworkType") -{} - -AllocateInstanceVpcNetworkTypeRequest::~AllocateInstanceVpcNetworkTypeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::AllocateInstanceVpcNetworkTypeRequest; + +AllocateInstanceVpcNetworkTypeRequest::AllocateInstanceVpcNetworkTypeRequest() : + RpcServiceRequest("rds", "2014-08-15", "AllocateInstanceVpcNetworkType") +{} + +AllocateInstanceVpcNetworkTypeRequest::~AllocateInstanceVpcNetworkTypeRequest() +{} + std::string AllocateInstanceVpcNetworkTypeRequest::getTargetVpcId()const { return targetVpcId_; diff --git a/rds/src/model/AllocateInstanceVpcNetworkTypeResult.cc b/rds/src/model/AllocateInstanceVpcNetworkTypeResult.cc index dfcf2278c..532d0703d 100644 --- a/rds/src/model/AllocateInstanceVpcNetworkTypeResult.cc +++ b/rds/src/model/AllocateInstanceVpcNetworkTypeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult() : - ServiceResult() -{} - -AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AllocateInstanceVpcNetworkTypeResult::~AllocateInstanceVpcNetworkTypeResult() -{} - -void AllocateInstanceVpcNetworkTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult() : + ServiceResult() +{} + +AllocateInstanceVpcNetworkTypeResult::AllocateInstanceVpcNetworkTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateInstanceVpcNetworkTypeResult::~AllocateInstanceVpcNetworkTypeResult() +{} + +void AllocateInstanceVpcNetworkTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/AllocateReadWriteSplittingConnectionRequest.cc b/rds/src/model/AllocateReadWriteSplittingConnectionRequest.cc index be53141ba..bbce65b36 100644 --- a/rds/src/model/AllocateReadWriteSplittingConnectionRequest.cc +++ b/rds/src/model/AllocateReadWriteSplittingConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::AllocateReadWriteSplittingConnectionRequest; - -AllocateReadWriteSplittingConnectionRequest::AllocateReadWriteSplittingConnectionRequest() : - RpcServiceRequest("rds", "2014-08-15", "AllocateReadWriteSplittingConnection") -{} - -AllocateReadWriteSplittingConnectionRequest::~AllocateReadWriteSplittingConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::AllocateReadWriteSplittingConnectionRequest; + +AllocateReadWriteSplittingConnectionRequest::AllocateReadWriteSplittingConnectionRequest() : + RpcServiceRequest("rds", "2014-08-15", "AllocateReadWriteSplittingConnection") +{} + +AllocateReadWriteSplittingConnectionRequest::~AllocateReadWriteSplittingConnectionRequest() +{} + long AllocateReadWriteSplittingConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/AllocateReadWriteSplittingConnectionResult.cc b/rds/src/model/AllocateReadWriteSplittingConnectionResult.cc index db7a8e3e3..9b371c1ab 100644 --- a/rds/src/model/AllocateReadWriteSplittingConnectionResult.cc +++ b/rds/src/model/AllocateReadWriteSplittingConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult() : - ServiceResult() -{} - -AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AllocateReadWriteSplittingConnectionResult::~AllocateReadWriteSplittingConnectionResult() -{} - -void AllocateReadWriteSplittingConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult() : + ServiceResult() +{} + +AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateReadWriteSplittingConnectionResult::~AllocateReadWriteSplittingConnectionResult() +{} + +void AllocateReadWriteSplittingConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CalculateDBInstanceWeightRequest.cc b/rds/src/model/CalculateDBInstanceWeightRequest.cc index c30cc1268..72e83df1e 100644 --- a/rds/src/model/CalculateDBInstanceWeightRequest.cc +++ b/rds/src/model/CalculateDBInstanceWeightRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CalculateDBInstanceWeightRequest; - -CalculateDBInstanceWeightRequest::CalculateDBInstanceWeightRequest() : - RpcServiceRequest("rds", "2014-08-15", "CalculateDBInstanceWeight") -{} - -CalculateDBInstanceWeightRequest::~CalculateDBInstanceWeightRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CalculateDBInstanceWeightRequest; + +CalculateDBInstanceWeightRequest::CalculateDBInstanceWeightRequest() : + RpcServiceRequest("rds", "2014-08-15", "CalculateDBInstanceWeight") +{} + +CalculateDBInstanceWeightRequest::~CalculateDBInstanceWeightRequest() +{} + long CalculateDBInstanceWeightRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CalculateDBInstanceWeightResult.cc b/rds/src/model/CalculateDBInstanceWeightResult.cc index 5365fe7bc..a0400f226 100644 --- a/rds/src/model/CalculateDBInstanceWeightResult.cc +++ b/rds/src/model/CalculateDBInstanceWeightResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult() : - ServiceResult() -{} - -CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CalculateDBInstanceWeightResult::~CalculateDBInstanceWeightResult() -{} - -void CalculateDBInstanceWeightResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult() : + ServiceResult() +{} + +CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CalculateDBInstanceWeightResult::~CalculateDBInstanceWeightResult() +{} + +void CalculateDBInstanceWeightResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceWeight"]; for (auto value : allItems) { @@ -56,9 +59,9 @@ void CalculateDBInstanceWeightResult::parse(const std::string &payload) itemsObject.weight = value["Weight"].asString(); items_.push_back(itemsObject); } - -} - + +} + std::vector CalculateDBInstanceWeightResult::getItems()const { return items_; diff --git a/rds/src/model/CancelImportRequest.cc b/rds/src/model/CancelImportRequest.cc index 82ee515e0..4b128809e 100644 --- a/rds/src/model/CancelImportRequest.cc +++ b/rds/src/model/CancelImportRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CancelImportRequest; - -CancelImportRequest::CancelImportRequest() : - RpcServiceRequest("rds", "2014-08-15", "CancelImport") -{} - -CancelImportRequest::~CancelImportRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CancelImportRequest; + +CancelImportRequest::CancelImportRequest() : + RpcServiceRequest("rds", "2014-08-15", "CancelImport") +{} + +CancelImportRequest::~CancelImportRequest() +{} + long CancelImportRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CancelImportResult.cc b/rds/src/model/CancelImportResult.cc index 5319a2fdb..9882caa58 100644 --- a/rds/src/model/CancelImportResult.cc +++ b/rds/src/model/CancelImportResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CancelImportResult::CancelImportResult() : - ServiceResult() -{} - -CancelImportResult::CancelImportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelImportResult::~CancelImportResult() -{} - -void CancelImportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CancelImportResult::CancelImportResult() : + ServiceResult() +{} + +CancelImportResult::CancelImportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelImportResult::~CancelImportResult() +{} + +void CancelImportResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CheckAccountNameAvailableRequest.cc b/rds/src/model/CheckAccountNameAvailableRequest.cc index 3db272de5..21a58e231 100644 --- a/rds/src/model/CheckAccountNameAvailableRequest.cc +++ b/rds/src/model/CheckAccountNameAvailableRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CheckAccountNameAvailableRequest; - -CheckAccountNameAvailableRequest::CheckAccountNameAvailableRequest() : - RpcServiceRequest("rds", "2014-08-15", "CheckAccountNameAvailable") -{} - -CheckAccountNameAvailableRequest::~CheckAccountNameAvailableRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CheckAccountNameAvailableRequest; + +CheckAccountNameAvailableRequest::CheckAccountNameAvailableRequest() : + RpcServiceRequest("rds", "2014-08-15", "CheckAccountNameAvailable") +{} + +CheckAccountNameAvailableRequest::~CheckAccountNameAvailableRequest() +{} + long CheckAccountNameAvailableRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CheckAccountNameAvailableResult.cc b/rds/src/model/CheckAccountNameAvailableResult.cc index 87706449b..fa6f4672c 100644 --- a/rds/src/model/CheckAccountNameAvailableResult.cc +++ b/rds/src/model/CheckAccountNameAvailableResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CheckAccountNameAvailableResult::CheckAccountNameAvailableResult() : - ServiceResult() -{} - -CheckAccountNameAvailableResult::CheckAccountNameAvailableResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CheckAccountNameAvailableResult::~CheckAccountNameAvailableResult() -{} - -void CheckAccountNameAvailableResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckAccountNameAvailableResult::CheckAccountNameAvailableResult() : + ServiceResult() +{} + +CheckAccountNameAvailableResult::CheckAccountNameAvailableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckAccountNameAvailableResult::~CheckAccountNameAvailableResult() +{} + +void CheckAccountNameAvailableResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CheckCreateDdrDBInstanceRequest.cc b/rds/src/model/CheckCreateDdrDBInstanceRequest.cc new file mode 100644 index 000000000..ea664b439 --- /dev/null +++ b/rds/src/model/CheckCreateDdrDBInstanceRequest.cc @@ -0,0 +1,236 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CheckCreateDdrDBInstanceRequest; + +CheckCreateDdrDBInstanceRequest::CheckCreateDdrDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "CheckCreateDdrDBInstance") +{} + +CheckCreateDdrDBInstanceRequest::~CheckCreateDdrDBInstanceRequest() +{} + +long CheckCreateDdrDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckCreateDdrDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckCreateDdrDBInstanceRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CheckCreateDdrDBInstanceRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setCoreParameter("RestoreTime", restoreTime); +} + +int CheckCreateDdrDBInstanceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CheckCreateDdrDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CheckCreateDdrDBInstanceRequest::getSourceDBInstanceName()const +{ + return sourceDBInstanceName_; +} + +void CheckCreateDdrDBInstanceRequest::setSourceDBInstanceName(const std::string& sourceDBInstanceName) +{ + sourceDBInstanceName_ = sourceDBInstanceName; + setCoreParameter("SourceDBInstanceName", sourceDBInstanceName); +} + +std::string CheckCreateDdrDBInstanceRequest::getBakSetName()const +{ + return bakSetName_; +} + +void CheckCreateDdrDBInstanceRequest::setBakSetName(const std::string& bakSetName) +{ + bakSetName_ = bakSetName; + setCoreParameter("BakSetName", bakSetName); +} + +std::string CheckCreateDdrDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckCreateDdrDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckCreateDdrDBInstanceRequest::getHostType()const +{ + return hostType_; +} + +void CheckCreateDdrDBInstanceRequest::setHostType(const std::string& hostType) +{ + hostType_ = hostType; + setCoreParameter("HostType", hostType); +} + +std::string CheckCreateDdrDBInstanceRequest::getBackupSetId()const +{ + return backupSetId_; +} + +void CheckCreateDdrDBInstanceRequest::setBackupSetId(const std::string& backupSetId) +{ + backupSetId_ = backupSetId; + setCoreParameter("BackupSetId", backupSetId); +} + +std::string CheckCreateDdrDBInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CheckCreateDdrDBInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +long CheckCreateDdrDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckCreateDdrDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CheckCreateDdrDBInstanceRequest::getUserBakSetURL()const +{ + return userBakSetURL_; +} + +void CheckCreateDdrDBInstanceRequest::setUserBakSetURL(const std::string& userBakSetURL) +{ + userBakSetURL_ = userBakSetURL; + setCoreParameter("UserBakSetURL", userBakSetURL); +} + +std::string CheckCreateDdrDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckCreateDdrDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CheckCreateDdrDBInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CheckCreateDdrDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setCoreParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CheckCreateDdrDBInstanceRequest::getRestoreType()const +{ + return restoreType_; +} + +void CheckCreateDdrDBInstanceRequest::setRestoreType(const std::string& restoreType) +{ + restoreType_ = restoreType; + setCoreParameter("RestoreType", restoreType); +} + +std::string CheckCreateDdrDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CheckCreateDdrDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CheckCreateDdrDBInstanceRequest::getEngine()const +{ + return engine_; +} + +void CheckCreateDdrDBInstanceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setCoreParameter("Engine", engine); +} + +std::string CheckCreateDdrDBInstanceRequest::getSourceRegion()const +{ + return sourceRegion_; +} + +void CheckCreateDdrDBInstanceRequest::setSourceRegion(const std::string& sourceRegion) +{ + sourceRegion_ = sourceRegion; + setCoreParameter("SourceRegion", sourceRegion); +} + +std::string CheckCreateDdrDBInstanceRequest::getBackupSetRegion()const +{ + return backupSetRegion_; +} + +void CheckCreateDdrDBInstanceRequest::setBackupSetRegion(const std::string& backupSetRegion) +{ + backupSetRegion_ = backupSetRegion; + setCoreParameter("BackupSetRegion", backupSetRegion); +} + +std::string CheckCreateDdrDBInstanceRequest::getBackupSetType()const +{ + return backupSetType_; +} + +void CheckCreateDdrDBInstanceRequest::setBackupSetType(const std::string& backupSetType) +{ + backupSetType_ = backupSetType; + setCoreParameter("BackupSetType", backupSetType); +} + diff --git a/rds/src/model/CheckCreateDdrDBInstanceResult.cc b/rds/src/model/CheckCreateDdrDBInstanceResult.cc new file mode 100644 index 000000000..87985231e --- /dev/null +++ b/rds/src/model/CheckCreateDdrDBInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckCreateDdrDBInstanceResult::CheckCreateDdrDBInstanceResult() : + ServiceResult() +{} + +CheckCreateDdrDBInstanceResult::CheckCreateDdrDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckCreateDdrDBInstanceResult::~CheckCreateDdrDBInstanceResult() +{} + +void CheckCreateDdrDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["IsValid"].isNull()) + isValid_ = value["IsValid"].asString(); + +} + +std::string CheckCreateDdrDBInstanceResult::getIsValid()const +{ + return isValid_; +} + diff --git a/rds/src/model/CheckInstanceExistRequest.cc b/rds/src/model/CheckInstanceExistRequest.cc index 8bb73a10b..9b5290bd6 100644 --- a/rds/src/model/CheckInstanceExistRequest.cc +++ b/rds/src/model/CheckInstanceExistRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CheckInstanceExistRequest; - -CheckInstanceExistRequest::CheckInstanceExistRequest() : - RpcServiceRequest("rds", "2014-08-15", "CheckInstanceExist") -{} - -CheckInstanceExistRequest::~CheckInstanceExistRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CheckInstanceExistRequest; + +CheckInstanceExistRequest::CheckInstanceExistRequest() : + RpcServiceRequest("rds", "2014-08-15", "CheckInstanceExist") +{} + +CheckInstanceExistRequest::~CheckInstanceExistRequest() +{} + long CheckInstanceExistRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CheckInstanceExistResult.cc b/rds/src/model/CheckInstanceExistResult.cc index 865700118..8fb44caae 100644 --- a/rds/src/model/CheckInstanceExistResult.cc +++ b/rds/src/model/CheckInstanceExistResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CheckInstanceExistResult::CheckInstanceExistResult() : - ServiceResult() -{} - -CheckInstanceExistResult::CheckInstanceExistResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CheckInstanceExistResult::~CheckInstanceExistResult() -{} - -void CheckInstanceExistResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckInstanceExistResult::CheckInstanceExistResult() : + ServiceResult() +{} + +CheckInstanceExistResult::CheckInstanceExistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckInstanceExistResult::~CheckInstanceExistResult() +{} + +void CheckInstanceExistResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["IsExistInstance"].isNull()) isExistInstance_ = value["IsExistInstance"].asString() == "true"; - -} - + +} + bool CheckInstanceExistResult::getIsExistInstance()const { return isExistInstance_; diff --git a/rds/src/model/CheckRecoveryConditionsRequest.cc b/rds/src/model/CheckRecoveryConditionsRequest.cc index b9c3fe91b..928973373 100644 --- a/rds/src/model/CheckRecoveryConditionsRequest.cc +++ b/rds/src/model/CheckRecoveryConditionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CheckRecoveryConditionsRequest; - -CheckRecoveryConditionsRequest::CheckRecoveryConditionsRequest() : - RpcServiceRequest("rds", "2014-08-15", "CheckRecoveryConditions") -{} - -CheckRecoveryConditionsRequest::~CheckRecoveryConditionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CheckRecoveryConditionsRequest; + +CheckRecoveryConditionsRequest::CheckRecoveryConditionsRequest() : + RpcServiceRequest("rds", "2014-08-15", "CheckRecoveryConditions") +{} + +CheckRecoveryConditionsRequest::~CheckRecoveryConditionsRequest() +{} + long CheckRecoveryConditionsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CheckRecoveryConditionsResult.cc b/rds/src/model/CheckRecoveryConditionsResult.cc index 52f4def7e..fbb4bd4b2 100644 --- a/rds/src/model/CheckRecoveryConditionsResult.cc +++ b/rds/src/model/CheckRecoveryConditionsResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CheckRecoveryConditionsResult::CheckRecoveryConditionsResult() : - ServiceResult() -{} - -CheckRecoveryConditionsResult::CheckRecoveryConditionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CheckRecoveryConditionsResult::~CheckRecoveryConditionsResult() -{} - -void CheckRecoveryConditionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckRecoveryConditionsResult::CheckRecoveryConditionsResult() : + ServiceResult() +{} + +CheckRecoveryConditionsResult::CheckRecoveryConditionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckRecoveryConditionsResult::~CheckRecoveryConditionsResult() +{} + +void CheckRecoveryConditionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["RecoveryStatus"].isNull()) recoveryStatus_ = value["RecoveryStatus"].asString(); - -} - + +} + std::string CheckRecoveryConditionsResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/CheckResourceRequest.cc b/rds/src/model/CheckResourceRequest.cc index eae3c6d58..1599a4361 100644 --- a/rds/src/model/CheckResourceRequest.cc +++ b/rds/src/model/CheckResourceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CheckResourceRequest; - -CheckResourceRequest::CheckResourceRequest() : - RpcServiceRequest("rds", "2014-08-15", "CheckResource") -{} - -CheckResourceRequest::~CheckResourceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CheckResourceRequest; + +CheckResourceRequest::CheckResourceRequest() : + RpcServiceRequest("rds", "2014-08-15", "CheckResource") +{} + +CheckResourceRequest::~CheckResourceRequest() +{} + long CheckResourceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CheckResourceResult.cc b/rds/src/model/CheckResourceResult.cc index 9bf5166d3..fe586f030 100644 --- a/rds/src/model/CheckResourceResult.cc +++ b/rds/src/model/CheckResourceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CheckResourceResult::CheckResourceResult() : - ServiceResult() -{} - -CheckResourceResult::CheckResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CheckResourceResult::~CheckResourceResult() -{} - -void CheckResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckResourceResult::CheckResourceResult() : + ServiceResult() +{} + +CheckResourceResult::CheckResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckResourceResult::~CheckResourceResult() +{} + +void CheckResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allResources = value["Resources"]["Resource"]; for (auto value : allResources) { @@ -54,9 +57,9 @@ void CheckResourceResult::parse(const std::string &payload) } if(!value["SpecifyCount"].isNull()) specifyCount_ = value["SpecifyCount"].asString(); - -} - + +} + std::string CheckResourceResult::getSpecifyCount()const { return specifyCount_; diff --git a/rds/src/model/CloneDBInstanceRequest.cc b/rds/src/model/CloneDBInstanceRequest.cc index e25125cb3..4807854e8 100644 --- a/rds/src/model/CloneDBInstanceRequest.cc +++ b/rds/src/model/CloneDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CloneDBInstanceRequest; - -CloneDBInstanceRequest::CloneDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "CloneDBInstance") -{} - -CloneDBInstanceRequest::~CloneDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CloneDBInstanceRequest; + +CloneDBInstanceRequest::CloneDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "CloneDBInstance") +{} + +CloneDBInstanceRequest::~CloneDBInstanceRequest() +{} + long CloneDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -36,6 +36,127 @@ void CloneDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +int CloneDBInstanceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CloneDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CloneDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CloneDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CloneDBInstanceRequest::getZoneIdSlave1()const +{ + return zoneIdSlave1_; +} + +void CloneDBInstanceRequest::setZoneIdSlave1(const std::string& zoneIdSlave1) +{ + zoneIdSlave1_ = zoneIdSlave1; + setCoreParameter("ZoneIdSlave1", zoneIdSlave1); +} + +std::string CloneDBInstanceRequest::getZoneIdSlave2()const +{ + return zoneIdSlave2_; +} + +void CloneDBInstanceRequest::setZoneIdSlave2(const std::string& zoneIdSlave2) +{ + zoneIdSlave2_ = zoneIdSlave2; + setCoreParameter("ZoneIdSlave2", zoneIdSlave2); +} + +std::string CloneDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CloneDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CloneDBInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CloneDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string CloneDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CloneDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CloneDBInstanceRequest::getTableMeta()const +{ + return tableMeta_; +} + +void CloneDBInstanceRequest::setTableMeta(const std::string& tableMeta) +{ + tableMeta_ = tableMeta; + setCoreParameter("TableMeta", tableMeta); +} + +std::string CloneDBInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CloneDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setCoreParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CloneDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CloneDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string CloneDBInstanceRequest::getDBInstanceStorageType()const +{ + return dBInstanceStorageType_; +} + +void CloneDBInstanceRequest::setDBInstanceStorageType(const std::string& dBInstanceStorageType) +{ + dBInstanceStorageType_ = dBInstanceStorageType; + setCoreParameter("DBInstanceStorageType", dBInstanceStorageType); +} + std::string CloneDBInstanceRequest::getRestoreTime()const { return restoreTime_; @@ -58,17 +179,6 @@ void CloneDBInstanceRequest::setPeriod(const std::string& period) setCoreParameter("Period", period); } -int CloneDBInstanceRequest::getDBInstanceStorage()const -{ - return dBInstanceStorage_; -} - -void CloneDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) -{ - dBInstanceStorage_ = dBInstanceStorage; - setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); -} - std::string CloneDBInstanceRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -80,17 +190,6 @@ void CloneDBInstanceRequest::setResourceOwnerAccount(const std::string& resource setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } -std::string CloneDBInstanceRequest::getClientToken()const -{ - return clientToken_; -} - -void CloneDBInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setCoreParameter("ClientToken", clientToken); -} - std::string CloneDBInstanceRequest::getBackupId()const { return backupId_; @@ -113,6 +212,17 @@ void CloneDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) setCoreParameter("OwnerAccount", ownerAccount); } +std::string CloneDBInstanceRequest::getRestoreTable()const +{ + return restoreTable_; +} + +void CloneDBInstanceRequest::setRestoreTable(const std::string& restoreTable) +{ + restoreTable_ = restoreTable; + setCoreParameter("RestoreTable", restoreTable); +} + long CloneDBInstanceRequest::getOwnerId()const { return ownerId_; @@ -135,17 +245,6 @@ void CloneDBInstanceRequest::setUsedTime(const std::string& usedTime) setCoreParameter("UsedTime", usedTime); } -std::string CloneDBInstanceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CloneDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - std::string CloneDBInstanceRequest::getDBInstanceClass()const { return dBInstanceClass_; @@ -190,28 +289,6 @@ void CloneDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAdd setCoreParameter("PrivateIpAddress", privateIpAddress); } -std::string CloneDBInstanceRequest::getResourceGroupId()const -{ - return resourceGroupId_; -} - -void CloneDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setCoreParameter("ResourceGroupId", resourceGroupId); -} - -std::string CloneDBInstanceRequest::getRegionId()const -{ - return regionId_; -} - -void CloneDBInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setCoreParameter("RegionId", regionId); -} - std::string CloneDBInstanceRequest::getVPCId()const { return vPCId_; @@ -234,26 +311,15 @@ void CloneDBInstanceRequest::setZoneId(const std::string& zoneId) setCoreParameter("ZoneId", zoneId); } -std::string CloneDBInstanceRequest::getDBInstanceDescription()const +std::string CloneDBInstanceRequest::getCategory()const { - return dBInstanceDescription_; + return category_; } -void CloneDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +void CloneDBInstanceRequest::setCategory(const std::string& category) { - dBInstanceDescription_ = dBInstanceDescription; - setCoreParameter("DBInstanceDescription", dBInstanceDescription); -} - -std::string CloneDBInstanceRequest::getDBInstanceId()const -{ - return dBInstanceId_; -} - -void CloneDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) -{ - dBInstanceId_ = dBInstanceId; - setCoreParameter("DBInstanceId", dBInstanceId); + category_ = category; + setCoreParameter("Category", category); } std::string CloneDBInstanceRequest::getPayType()const diff --git a/rds/src/model/CloneDBInstanceResult.cc b/rds/src/model/CloneDBInstanceResult.cc index 44f84db8a..f96310457 100644 --- a/rds/src/model/CloneDBInstanceResult.cc +++ b/rds/src/model/CloneDBInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CloneDBInstanceResult::CloneDBInstanceResult() : - ServiceResult() -{} - -CloneDBInstanceResult::CloneDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CloneDBInstanceResult::~CloneDBInstanceResult() -{} - -void CloneDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CloneDBInstanceResult::CloneDBInstanceResult() : + ServiceResult() +{} + +CloneDBInstanceResult::CloneDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloneDBInstanceResult::~CloneDBInstanceResult() +{} + +void CloneDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["OrderId"].isNull()) @@ -48,9 +51,9 @@ void CloneDBInstanceResult::parse(const std::string &payload) connectionString_ = value["ConnectionString"].asString(); if(!value["Port"].isNull()) port_ = value["Port"].asString(); - -} - + +} + std::string CloneDBInstanceResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/CopyDatabaseBetweenInstancesRequest.cc b/rds/src/model/CopyDatabaseBetweenInstancesRequest.cc index 01512127e..59f0f579b 100644 --- a/rds/src/model/CopyDatabaseBetweenInstancesRequest.cc +++ b/rds/src/model/CopyDatabaseBetweenInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CopyDatabaseBetweenInstancesRequest; - -CopyDatabaseBetweenInstancesRequest::CopyDatabaseBetweenInstancesRequest() : - RpcServiceRequest("rds", "2014-08-15", "CopyDatabaseBetweenInstances") -{} - -CopyDatabaseBetweenInstancesRequest::~CopyDatabaseBetweenInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CopyDatabaseBetweenInstancesRequest; + +CopyDatabaseBetweenInstancesRequest::CopyDatabaseBetweenInstancesRequest() : + RpcServiceRequest("rds", "2014-08-15", "CopyDatabaseBetweenInstances") +{} + +CopyDatabaseBetweenInstancesRequest::~CopyDatabaseBetweenInstancesRequest() +{} + long CopyDatabaseBetweenInstancesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CopyDatabaseBetweenInstancesResult.cc b/rds/src/model/CopyDatabaseBetweenInstancesResult.cc index 0977b2cfc..c24ee6492 100644 --- a/rds/src/model/CopyDatabaseBetweenInstancesResult.cc +++ b/rds/src/model/CopyDatabaseBetweenInstancesResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult() : - ServiceResult() -{} - -CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CopyDatabaseBetweenInstancesResult::~CopyDatabaseBetweenInstancesResult() -{} - -void CopyDatabaseBetweenInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult() : + ServiceResult() +{} + +CopyDatabaseBetweenInstancesResult::CopyDatabaseBetweenInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyDatabaseBetweenInstancesResult::~CopyDatabaseBetweenInstancesResult() +{} + +void CopyDatabaseBetweenInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); - -} - + +} + std::string CopyDatabaseBetweenInstancesResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/CopyDatabaseRequest.cc b/rds/src/model/CopyDatabaseRequest.cc index 897f8e453..cad0e1bf5 100644 --- a/rds/src/model/CopyDatabaseRequest.cc +++ b/rds/src/model/CopyDatabaseRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CopyDatabaseRequest; - -CopyDatabaseRequest::CopyDatabaseRequest() : - RpcServiceRequest("rds", "2014-08-15", "CopyDatabase") -{} - -CopyDatabaseRequest::~CopyDatabaseRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CopyDatabaseRequest; + +CopyDatabaseRequest::CopyDatabaseRequest() : + RpcServiceRequest("rds", "2014-08-15", "CopyDatabase") +{} + +CopyDatabaseRequest::~CopyDatabaseRequest() +{} + long CopyDatabaseRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CopyDatabaseResult.cc b/rds/src/model/CopyDatabaseResult.cc index 5b0f59c47..ce73bfc8e 100644 --- a/rds/src/model/CopyDatabaseResult.cc +++ b/rds/src/model/CopyDatabaseResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CopyDatabaseResult::CopyDatabaseResult() : - ServiceResult() -{} - -CopyDatabaseResult::CopyDatabaseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CopyDatabaseResult::~CopyDatabaseResult() -{} - -void CopyDatabaseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CopyDatabaseResult::CopyDatabaseResult() : + ServiceResult() +{} + +CopyDatabaseResult::CopyDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyDatabaseResult::~CopyDatabaseResult() +{} + +void CopyDatabaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBName"].isNull()) dBName_ = value["DBName"].asString(); if(!value["DBStatus"].isNull()) dBStatus_ = value["DBStatus"].asString(); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string CopyDatabaseResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/CreateAccountRequest.cc b/rds/src/model/CreateAccountRequest.cc index 96674b720..9eeab91fb 100644 --- a/rds/src/model/CreateAccountRequest.cc +++ b/rds/src/model/CreateAccountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateAccountRequest; - -CreateAccountRequest::CreateAccountRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateAccount") -{} - -CreateAccountRequest::~CreateAccountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateAccountRequest; + +CreateAccountRequest::CreateAccountRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateAccount") +{} + +CreateAccountRequest::~CreateAccountRequest() +{} + long CreateAccountRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CreateAccountResult.cc b/rds/src/model/CreateAccountResult.cc index ca0d9f63e..de3810262 100644 --- a/rds/src/model/CreateAccountResult.cc +++ b/rds/src/model/CreateAccountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateAccountResult::CreateAccountResult() : - ServiceResult() -{} - -CreateAccountResult::CreateAccountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAccountResult::~CreateAccountResult() -{} - -void CreateAccountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateAccountResult::CreateAccountResult() : + ServiceResult() +{} + +CreateAccountResult::CreateAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountResult::~CreateAccountResult() +{} + +void CreateAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CreateBackupRequest.cc b/rds/src/model/CreateBackupRequest.cc index 59edc56db..5aafb46cb 100644 --- a/rds/src/model/CreateBackupRequest.cc +++ b/rds/src/model/CreateBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateBackupRequest; - -CreateBackupRequest::CreateBackupRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateBackup") -{} - -CreateBackupRequest::~CreateBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateBackupRequest; + +CreateBackupRequest::CreateBackupRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateBackup") +{} + +CreateBackupRequest::~CreateBackupRequest() +{} + std::string CreateBackupRequest::getBackupMethod()const { return backupMethod_; diff --git a/rds/src/model/CreateBackupResult.cc b/rds/src/model/CreateBackupResult.cc index 18fef3065..f6d36c954 100644 --- a/rds/src/model/CreateBackupResult.cc +++ b/rds/src/model/CreateBackupResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateBackupResult::CreateBackupResult() : - ServiceResult() -{} - -CreateBackupResult::CreateBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateBackupResult::~CreateBackupResult() -{} - -void CreateBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateBackupResult::CreateBackupResult() : + ServiceResult() +{} + +CreateBackupResult::CreateBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupResult::~CreateBackupResult() +{} + +void CreateBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["BackupJobId"].isNull()) backupJobId_ = value["BackupJobId"].asString(); - -} - + +} + std::string CreateBackupResult::getBackupJobId()const { return backupJobId_; diff --git a/rds/src/model/CreateDBInstanceReplicaRequest.cc b/rds/src/model/CreateDBInstanceReplicaRequest.cc index 187b3fbe9..5ebeedff2 100644 --- a/rds/src/model/CreateDBInstanceReplicaRequest.cc +++ b/rds/src/model/CreateDBInstanceReplicaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateDBInstanceReplicaRequest; - -CreateDBInstanceReplicaRequest::CreateDBInstanceReplicaRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateDBInstanceReplica") -{} - -CreateDBInstanceReplicaRequest::~CreateDBInstanceReplicaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateDBInstanceReplicaRequest; + +CreateDBInstanceReplicaRequest::CreateDBInstanceReplicaRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateDBInstanceReplica") +{} + +CreateDBInstanceReplicaRequest::~CreateDBInstanceReplicaRequest() +{} + std::string CreateDBInstanceReplicaRequest::getConnectionMode()const { return connectionMode_; diff --git a/rds/src/model/CreateDBInstanceReplicaResult.cc b/rds/src/model/CreateDBInstanceReplicaResult.cc index e57f9f8ee..e2300fa1a 100644 --- a/rds/src/model/CreateDBInstanceReplicaResult.cc +++ b/rds/src/model/CreateDBInstanceReplicaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult() : - ServiceResult() -{} - -CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDBInstanceReplicaResult::~CreateDBInstanceReplicaResult() -{} - -void CreateDBInstanceReplicaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult() : + ServiceResult() +{} + +CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBInstanceReplicaResult::~CreateDBInstanceReplicaResult() +{} + +void CreateDBInstanceReplicaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["OrderId"].isNull()) @@ -48,9 +51,9 @@ void CreateDBInstanceReplicaResult::parse(const std::string &payload) replicaId_ = value["ReplicaId"].asString(); if(!value["WorkflowId"].isNull()) workflowId_ = value["WorkflowId"].asString(); - -} - + +} + std::string CreateDBInstanceReplicaResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/CreateDBInstanceRequest.cc b/rds/src/model/CreateDBInstanceRequest.cc index a39d4046b..d50e3b4e1 100644 --- a/rds/src/model/CreateDBInstanceRequest.cc +++ b/rds/src/model/CreateDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateDBInstanceRequest; - -CreateDBInstanceRequest::CreateDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateDBInstance") -{} - -CreateDBInstanceRequest::~CreateDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateDBInstanceRequest; + +CreateDBInstanceRequest::CreateDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateDBInstance") +{} + +CreateDBInstanceRequest::~CreateDBInstanceRequest() +{} + std::string CreateDBInstanceRequest::getConnectionMode()const { return connectionMode_; @@ -80,6 +80,28 @@ void CreateDBInstanceRequest::setClientToken(const std::string& clientToken) setCoreParameter("ClientToken", clientToken); } +std::string CreateDBInstanceRequest::getZoneIdSlave1()const +{ + return zoneIdSlave1_; +} + +void CreateDBInstanceRequest::setZoneIdSlave1(const std::string& zoneIdSlave1) +{ + zoneIdSlave1_ = zoneIdSlave1; + setCoreParameter("ZoneIdSlave1", zoneIdSlave1); +} + +std::string CreateDBInstanceRequest::getZoneIdSlave2()const +{ + return zoneIdSlave2_; +} + +void CreateDBInstanceRequest::setZoneIdSlave2(const std::string& zoneIdSlave2) +{ + zoneIdSlave2_ = zoneIdSlave2; + setCoreParameter("ZoneIdSlave2", zoneIdSlave2); +} + std::string CreateDBInstanceRequest::getEngineVersion()const { return engineVersion_; @@ -344,6 +366,17 @@ void CreateDBInstanceRequest::setZoneId(const std::string& zoneId) setCoreParameter("ZoneId", zoneId); } +std::string CreateDBInstanceRequest::getCategory()const +{ + return category_; +} + +void CreateDBInstanceRequest::setCategory(const std::string& category) +{ + category_ = category; + setCoreParameter("Category", category); +} + std::string CreateDBInstanceRequest::getPayType()const { return payType_; diff --git a/rds/src/model/CreateDBInstanceResult.cc b/rds/src/model/CreateDBInstanceResult.cc index 9f4897b51..20ff0fca0 100644 --- a/rds/src/model/CreateDBInstanceResult.cc +++ b/rds/src/model/CreateDBInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateDBInstanceResult::CreateDBInstanceResult() : - ServiceResult() -{} - -CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDBInstanceResult::~CreateDBInstanceResult() -{} - -void CreateDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDBInstanceResult::CreateDBInstanceResult() : + ServiceResult() +{} + +CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBInstanceResult::~CreateDBInstanceResult() +{} + +void CreateDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["OrderId"].isNull()) @@ -48,9 +51,9 @@ void CreateDBInstanceResult::parse(const std::string &payload) connectionString_ = value["ConnectionString"].asString(); if(!value["Port"].isNull()) port_ = value["Port"].asString(); - -} - + +} + std::string CreateDBInstanceResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/CreateDatabaseRequest.cc b/rds/src/model/CreateDatabaseRequest.cc index 170cb26c3..a25a56856 100644 --- a/rds/src/model/CreateDatabaseRequest.cc +++ b/rds/src/model/CreateDatabaseRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateDatabaseRequest; - -CreateDatabaseRequest::CreateDatabaseRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateDatabase") -{} - -CreateDatabaseRequest::~CreateDatabaseRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateDatabaseRequest; + +CreateDatabaseRequest::CreateDatabaseRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateDatabase") +{} + +CreateDatabaseRequest::~CreateDatabaseRequest() +{} + long CreateDatabaseRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CreateDatabaseResult.cc b/rds/src/model/CreateDatabaseResult.cc index b01db953f..051e37b22 100644 --- a/rds/src/model/CreateDatabaseResult.cc +++ b/rds/src/model/CreateDatabaseResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateDatabaseResult::CreateDatabaseResult() : - ServiceResult() -{} - -CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDatabaseResult::~CreateDatabaseResult() -{} - -void CreateDatabaseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDatabaseResult::CreateDatabaseResult() : + ServiceResult() +{} + +CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatabaseResult::~CreateDatabaseResult() +{} + +void CreateDatabaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CreateDdrInstanceRequest.cc b/rds/src/model/CreateDdrInstanceRequest.cc new file mode 100644 index 000000000..95da1614b --- /dev/null +++ b/rds/src/model/CreateDdrInstanceRequest.cc @@ -0,0 +1,434 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateDdrInstanceRequest; + +CreateDdrInstanceRequest::CreateDdrInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateDdrInstance") +{} + +CreateDdrInstanceRequest::~CreateDdrInstanceRequest() +{} + +std::string CreateDdrInstanceRequest::getConnectionMode()const +{ + return connectionMode_; +} + +void CreateDdrInstanceRequest::setConnectionMode(const std::string& connectionMode) +{ + connectionMode_ = connectionMode; + setCoreParameter("ConnectionMode", connectionMode); +} + +long CreateDdrInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDdrInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateDdrInstanceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CreateDdrInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CreateDdrInstanceRequest::getSystemDBCharset()const +{ + return systemDBCharset_; +} + +void CreateDdrInstanceRequest::setSystemDBCharset(const std::string& systemDBCharset) +{ + systemDBCharset_ = systemDBCharset; + setCoreParameter("SystemDBCharset", systemDBCharset); +} + +std::string CreateDdrInstanceRequest::getSourceDBInstanceName()const +{ + return sourceDBInstanceName_; +} + +void CreateDdrInstanceRequest::setSourceDBInstanceName(const std::string& sourceDBInstanceName) +{ + sourceDBInstanceName_ = sourceDBInstanceName; + setCoreParameter("SourceDBInstanceName", sourceDBInstanceName); +} + +std::string CreateDdrInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDdrInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateDdrInstanceRequest::getHostType()const +{ + return hostType_; +} + +void CreateDdrInstanceRequest::setHostType(const std::string& hostType) +{ + hostType_ = hostType; + setCoreParameter("HostType", hostType); +} + +std::string CreateDdrInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateDdrInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +std::string CreateDdrInstanceRequest::getUserBakSetURL()const +{ + return userBakSetURL_; +} + +void CreateDdrInstanceRequest::setUserBakSetURL(const std::string& userBakSetURL) +{ + userBakSetURL_ = userBakSetURL; + setCoreParameter("UserBakSetURL", userBakSetURL); +} + +std::string CreateDdrInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDdrInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateDdrInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateDdrInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateDdrInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDdrInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateDdrInstanceRequest::getEngine()const +{ + return engine_; +} + +void CreateDdrInstanceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setCoreParameter("Engine", engine); +} + +std::string CreateDdrInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CreateDdrInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setCoreParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CreateDdrInstanceRequest::getDBInstanceStorageType()const +{ + return dBInstanceStorageType_; +} + +void CreateDdrInstanceRequest::setDBInstanceStorageType(const std::string& dBInstanceStorageType) +{ + dBInstanceStorageType_ = dBInstanceStorageType; + setCoreParameter("DBInstanceStorageType", dBInstanceStorageType); +} + +std::string CreateDdrInstanceRequest::getBackupSetRegion()const +{ + return backupSetRegion_; +} + +void CreateDdrInstanceRequest::setBackupSetRegion(const std::string& backupSetRegion) +{ + backupSetRegion_ = backupSetRegion; + setCoreParameter("BackupSetRegion", backupSetRegion); +} + +std::string CreateDdrInstanceRequest::getDBInstanceNetType()const +{ + return dBInstanceNetType_; +} + +void CreateDdrInstanceRequest::setDBInstanceNetType(const std::string& dBInstanceNetType) +{ + dBInstanceNetType_ = dBInstanceNetType; + setCoreParameter("DBInstanceNetType", dBInstanceNetType); +} + +std::string CreateDdrInstanceRequest::getBackupSetType()const +{ + return backupSetType_; +} + +void CreateDdrInstanceRequest::setBackupSetType(const std::string& backupSetType) +{ + backupSetType_ = backupSetType; + setCoreParameter("BackupSetType", backupSetType); +} + +std::string CreateDdrInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateDdrInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string CreateDdrInstanceRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CreateDdrInstanceRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setCoreParameter("RestoreTime", restoreTime); +} + +std::string CreateDdrInstanceRequest::getBakSetName()const +{ + return bakSetName_; +} + +void CreateDdrInstanceRequest::setBakSetName(const std::string& bakSetName) +{ + bakSetName_ = bakSetName; + setCoreParameter("BakSetName", bakSetName); +} + +std::string CreateDdrInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDdrInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDdrInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDdrInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateDdrInstanceRequest::getBackupSetId()const +{ + return backupSetId_; +} + +void CreateDdrInstanceRequest::setBackupSetId(const std::string& backupSetId) +{ + backupSetId_ = backupSetId; + setCoreParameter("BackupSetId", backupSetId); +} + +long CreateDdrInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDdrInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDdrInstanceRequest::getUsedTime()const +{ + return usedTime_; +} + +void CreateDdrInstanceRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setCoreParameter("UsedTime", usedTime); +} + +std::string CreateDdrInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CreateDdrInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setCoreParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CreateDdrInstanceRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void CreateDdrInstanceRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setCoreParameter("SecurityIPList", securityIPList); +} + +std::string CreateDdrInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateDdrInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setCoreParameter("VSwitchId", vSwitchId); +} + +std::string CreateDdrInstanceRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CreateDdrInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setCoreParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CreateDdrInstanceRequest::getRestoreType()const +{ + return restoreType_; +} + +void CreateDdrInstanceRequest::setRestoreType(const std::string& restoreType) +{ + restoreType_ = restoreType; + setCoreParameter("RestoreType", restoreType); +} + +std::string CreateDdrInstanceRequest::getVPCId()const +{ + return vPCId_; +} + +void CreateDdrInstanceRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setCoreParameter("VPCId", vPCId); +} + +std::string CreateDdrInstanceRequest::getTunnelId()const +{ + return tunnelId_; +} + +void CreateDdrInstanceRequest::setTunnelId(const std::string& tunnelId) +{ + tunnelId_ = tunnelId; + setCoreParameter("TunnelId", tunnelId); +} + +std::string CreateDdrInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateDdrInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +std::string CreateDdrInstanceRequest::getPayType()const +{ + return payType_; +} + +void CreateDdrInstanceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setCoreParameter("PayType", payType); +} + +std::string CreateDdrInstanceRequest::getSourceRegion()const +{ + return sourceRegion_; +} + +void CreateDdrInstanceRequest::setSourceRegion(const std::string& sourceRegion) +{ + sourceRegion_ = sourceRegion; + setCoreParameter("SourceRegion", sourceRegion); +} + +std::string CreateDdrInstanceRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void CreateDdrInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setCoreParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/rds/src/model/CreateDdrInstanceResult.cc b/rds/src/model/CreateDdrInstanceResult.cc new file mode 100644 index 000000000..bad1e8b12 --- /dev/null +++ b/rds/src/model/CreateDdrInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDdrInstanceResult::CreateDdrInstanceResult() : + ServiceResult() +{} + +CreateDdrInstanceResult::CreateDdrInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDdrInstanceResult::~CreateDdrInstanceResult() +{} + +void CreateDdrInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["ConnectionString"].isNull()) + connectionString_ = value["ConnectionString"].asString(); + if(!value["Port"].isNull()) + port_ = value["Port"].asString(); + +} + +std::string CreateDdrInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string CreateDdrInstanceResult::getPort()const +{ + return port_; +} + +std::string CreateDdrInstanceResult::getOrderId()const +{ + return orderId_; +} + +std::string CreateDdrInstanceResult::getConnectionString()const +{ + return connectionString_; +} + diff --git a/rds/src/model/CreateDiagnosticReportRequest.cc b/rds/src/model/CreateDiagnosticReportRequest.cc index f49cdcca7..20229539d 100644 --- a/rds/src/model/CreateDiagnosticReportRequest.cc +++ b/rds/src/model/CreateDiagnosticReportRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateDiagnosticReportRequest; - -CreateDiagnosticReportRequest::CreateDiagnosticReportRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateDiagnosticReport") -{} - -CreateDiagnosticReportRequest::~CreateDiagnosticReportRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateDiagnosticReportRequest; + +CreateDiagnosticReportRequest::CreateDiagnosticReportRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateDiagnosticReport") +{} + +CreateDiagnosticReportRequest::~CreateDiagnosticReportRequest() +{} + std::string CreateDiagnosticReportRequest::getEndTime()const { return endTime_; diff --git a/rds/src/model/CreateDiagnosticReportResult.cc b/rds/src/model/CreateDiagnosticReportResult.cc index 690942280..9dd5d2be7 100644 --- a/rds/src/model/CreateDiagnosticReportResult.cc +++ b/rds/src/model/CreateDiagnosticReportResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateDiagnosticReportResult::CreateDiagnosticReportResult() : - ServiceResult() -{} - -CreateDiagnosticReportResult::CreateDiagnosticReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDiagnosticReportResult::~CreateDiagnosticReportResult() -{} - -void CreateDiagnosticReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDiagnosticReportResult::CreateDiagnosticReportResult() : + ServiceResult() +{} + +CreateDiagnosticReportResult::CreateDiagnosticReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDiagnosticReportResult::~CreateDiagnosticReportResult() +{} + +void CreateDiagnosticReportResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ReportId"].isNull()) reportId_ = value["ReportId"].asString(); - -} - + +} + std::string CreateDiagnosticReportResult::getReportId()const { return reportId_; diff --git a/rds/src/model/CreateMigrateTaskForSQLServerRequest.cc b/rds/src/model/CreateMigrateTaskForSQLServerRequest.cc index d0e5bcc40..2964bde33 100644 --- a/rds/src/model/CreateMigrateTaskForSQLServerRequest.cc +++ b/rds/src/model/CreateMigrateTaskForSQLServerRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateMigrateTaskForSQLServerRequest; - -CreateMigrateTaskForSQLServerRequest::CreateMigrateTaskForSQLServerRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTaskForSQLServer") -{} - -CreateMigrateTaskForSQLServerRequest::~CreateMigrateTaskForSQLServerRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateMigrateTaskForSQLServerRequest; + +CreateMigrateTaskForSQLServerRequest::CreateMigrateTaskForSQLServerRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTaskForSQLServer") +{} + +CreateMigrateTaskForSQLServerRequest::~CreateMigrateTaskForSQLServerRequest() +{} + long CreateMigrateTaskForSQLServerRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CreateMigrateTaskForSQLServerResult.cc b/rds/src/model/CreateMigrateTaskForSQLServerResult.cc index 476cc1dc7..3ee704444 100644 --- a/rds/src/model/CreateMigrateTaskForSQLServerResult.cc +++ b/rds/src/model/CreateMigrateTaskForSQLServerResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult() : - ServiceResult() -{} - -CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMigrateTaskForSQLServerResult::~CreateMigrateTaskForSQLServerResult() -{} - -void CreateMigrateTaskForSQLServerResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult() : + ServiceResult() +{} + +CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMigrateTaskForSQLServerResult::~CreateMigrateTaskForSQLServerResult() +{} + +void CreateMigrateTaskForSQLServerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["DBInstanceName"].isNull()) @@ -52,9 +55,9 @@ void CreateMigrateTaskForSQLServerResult::parse(const std::string &payload) migrateIaskId_ = value["MigrateIaskId"].asString(); if(!value["TaskType"].isNull()) taskType_ = value["TaskType"].asString(); - -} - + +} + std::string CreateMigrateTaskForSQLServerResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/CreateMigrateTaskRequest.cc b/rds/src/model/CreateMigrateTaskRequest.cc index 22c9b9fb3..4ac9e2b46 100644 --- a/rds/src/model/CreateMigrateTaskRequest.cc +++ b/rds/src/model/CreateMigrateTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateMigrateTaskRequest; - -CreateMigrateTaskRequest::CreateMigrateTaskRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTask") -{} - -CreateMigrateTaskRequest::~CreateMigrateTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateMigrateTaskRequest; + +CreateMigrateTaskRequest::CreateMigrateTaskRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateMigrateTask") +{} + +CreateMigrateTaskRequest::~CreateMigrateTaskRequest() +{} + long CreateMigrateTaskRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CreateMigrateTaskResult.cc b/rds/src/model/CreateMigrateTaskResult.cc index 6231a16c9..4084a2ee9 100644 --- a/rds/src/model/CreateMigrateTaskResult.cc +++ b/rds/src/model/CreateMigrateTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateMigrateTaskResult::CreateMigrateTaskResult() : - ServiceResult() -{} - -CreateMigrateTaskResult::CreateMigrateTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMigrateTaskResult::~CreateMigrateTaskResult() -{} - -void CreateMigrateTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateMigrateTaskResult::CreateMigrateTaskResult() : + ServiceResult() +{} + +CreateMigrateTaskResult::CreateMigrateTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMigrateTaskResult::~CreateMigrateTaskResult() +{} + +void CreateMigrateTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["TaskId"].isNull()) @@ -50,9 +53,9 @@ void CreateMigrateTaskResult::parse(const std::string &payload) migrateTaskId_ = value["MigrateTaskId"].asString(); if(!value["BackupMode"].isNull()) backupMode_ = value["BackupMode"].asString(); - -} - + +} + std::string CreateMigrateTaskResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/CreateOnlineDatabaseTaskRequest.cc b/rds/src/model/CreateOnlineDatabaseTaskRequest.cc index 510f5f4a6..b257f94bb 100644 --- a/rds/src/model/CreateOnlineDatabaseTaskRequest.cc +++ b/rds/src/model/CreateOnlineDatabaseTaskRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateOnlineDatabaseTaskRequest; - -CreateOnlineDatabaseTaskRequest::CreateOnlineDatabaseTaskRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateOnlineDatabaseTask") -{} - -CreateOnlineDatabaseTaskRequest::~CreateOnlineDatabaseTaskRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateOnlineDatabaseTaskRequest; + +CreateOnlineDatabaseTaskRequest::CreateOnlineDatabaseTaskRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateOnlineDatabaseTask") +{} + +CreateOnlineDatabaseTaskRequest::~CreateOnlineDatabaseTaskRequest() +{} + long CreateOnlineDatabaseTaskRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CreateOnlineDatabaseTaskResult.cc b/rds/src/model/CreateOnlineDatabaseTaskResult.cc index feed2a3d6..7bf7945e6 100644 --- a/rds/src/model/CreateOnlineDatabaseTaskResult.cc +++ b/rds/src/model/CreateOnlineDatabaseTaskResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult() : - ServiceResult() -{} - -CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateOnlineDatabaseTaskResult::~CreateOnlineDatabaseTaskResult() -{} - -void CreateOnlineDatabaseTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult() : + ServiceResult() +{} + +CreateOnlineDatabaseTaskResult::CreateOnlineDatabaseTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOnlineDatabaseTaskResult::~CreateOnlineDatabaseTaskResult() +{} + +void CreateOnlineDatabaseTaskResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CreateReadOnlyDBInstanceRequest.cc b/rds/src/model/CreateReadOnlyDBInstanceRequest.cc index fcaa88ca9..832271bb5 100644 --- a/rds/src/model/CreateReadOnlyDBInstanceRequest.cc +++ b/rds/src/model/CreateReadOnlyDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateReadOnlyDBInstanceRequest; - -CreateReadOnlyDBInstanceRequest::CreateReadOnlyDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateReadOnlyDBInstance") -{} - -CreateReadOnlyDBInstanceRequest::~CreateReadOnlyDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateReadOnlyDBInstanceRequest; + +CreateReadOnlyDBInstanceRequest::CreateReadOnlyDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateReadOnlyDBInstance") +{} + +CreateReadOnlyDBInstanceRequest::~CreateReadOnlyDBInstanceRequest() +{} + long CreateReadOnlyDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CreateReadOnlyDBInstanceResult.cc b/rds/src/model/CreateReadOnlyDBInstanceResult.cc index c5eb1e9e4..8d174d484 100644 --- a/rds/src/model/CreateReadOnlyDBInstanceResult.cc +++ b/rds/src/model/CreateReadOnlyDBInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult() : - ServiceResult() -{} - -CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateReadOnlyDBInstanceResult::~CreateReadOnlyDBInstanceResult() -{} - -void CreateReadOnlyDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult() : + ServiceResult() +{} + +CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateReadOnlyDBInstanceResult::~CreateReadOnlyDBInstanceResult() +{} + +void CreateReadOnlyDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["OrderId"].isNull()) @@ -48,9 +51,9 @@ void CreateReadOnlyDBInstanceResult::parse(const std::string &payload) connectionString_ = value["ConnectionString"].asString(); if(!value["Port"].isNull()) port_ = value["Port"].asString(); - -} - + +} + std::string CreateReadOnlyDBInstanceResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/CreateTempDBInstanceRequest.cc b/rds/src/model/CreateTempDBInstanceRequest.cc index 436b9af7a..61a3ad45d 100644 --- a/rds/src/model/CreateTempDBInstanceRequest.cc +++ b/rds/src/model/CreateTempDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::CreateTempDBInstanceRequest; - -CreateTempDBInstanceRequest::CreateTempDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "CreateTempDBInstance") -{} - -CreateTempDBInstanceRequest::~CreateTempDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::CreateTempDBInstanceRequest; + +CreateTempDBInstanceRequest::CreateTempDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "CreateTempDBInstance") +{} + +CreateTempDBInstanceRequest::~CreateTempDBInstanceRequest() +{} + long CreateTempDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/CreateTempDBInstanceResult.cc b/rds/src/model/CreateTempDBInstanceResult.cc index 473d48ff3..905922efc 100644 --- a/rds/src/model/CreateTempDBInstanceResult.cc +++ b/rds/src/model/CreateTempDBInstanceResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -CreateTempDBInstanceResult::CreateTempDBInstanceResult() : - ServiceResult() -{} - -CreateTempDBInstanceResult::CreateTempDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateTempDBInstanceResult::~CreateTempDBInstanceResult() -{} - -void CreateTempDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateTempDBInstanceResult::CreateTempDBInstanceResult() : + ServiceResult() +{} + +CreateTempDBInstanceResult::CreateTempDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTempDBInstanceResult::~CreateTempDBInstanceResult() +{} + +void CreateTempDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TempDBInstanceId"].isNull()) tempDBInstanceId_ = value["TempDBInstanceId"].asString(); - -} - + +} + std::string CreateTempDBInstanceResult::getTempDBInstanceId()const { return tempDBInstanceId_; diff --git a/rds/src/model/DeleteAccountRequest.cc b/rds/src/model/DeleteAccountRequest.cc index 3d2df83da..deb0c4b43 100644 --- a/rds/src/model/DeleteAccountRequest.cc +++ b/rds/src/model/DeleteAccountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DeleteAccountRequest; - -DeleteAccountRequest::DeleteAccountRequest() : - RpcServiceRequest("rds", "2014-08-15", "DeleteAccount") -{} - -DeleteAccountRequest::~DeleteAccountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DeleteAccountRequest; + +DeleteAccountRequest::DeleteAccountRequest() : + RpcServiceRequest("rds", "2014-08-15", "DeleteAccount") +{} + +DeleteAccountRequest::~DeleteAccountRequest() +{} + long DeleteAccountRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DeleteAccountResult.cc b/rds/src/model/DeleteAccountResult.cc index bb58fcf8a..4af5509fc 100644 --- a/rds/src/model/DeleteAccountResult.cc +++ b/rds/src/model/DeleteAccountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DeleteAccountResult::DeleteAccountResult() : - ServiceResult() -{} - -DeleteAccountResult::DeleteAccountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAccountResult::~DeleteAccountResult() -{} - -void DeleteAccountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteAccountResult::DeleteAccountResult() : + ServiceResult() +{} + +DeleteAccountResult::DeleteAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccountResult::~DeleteAccountResult() +{} + +void DeleteAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteBackupRequest.cc b/rds/src/model/DeleteBackupRequest.cc index 4d8c33f67..3f9f831cd 100644 --- a/rds/src/model/DeleteBackupRequest.cc +++ b/rds/src/model/DeleteBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DeleteBackupRequest; - -DeleteBackupRequest::DeleteBackupRequest() : - RpcServiceRequest("rds", "2014-08-15", "DeleteBackup") -{} - -DeleteBackupRequest::~DeleteBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DeleteBackupRequest; + +DeleteBackupRequest::DeleteBackupRequest() : + RpcServiceRequest("rds", "2014-08-15", "DeleteBackup") +{} + +DeleteBackupRequest::~DeleteBackupRequest() +{} + long DeleteBackupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DeleteBackupResult.cc b/rds/src/model/DeleteBackupResult.cc index d6e5534b6..b9707c609 100644 --- a/rds/src/model/DeleteBackupResult.cc +++ b/rds/src/model/DeleteBackupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DeleteBackupResult::DeleteBackupResult() : - ServiceResult() -{} - -DeleteBackupResult::DeleteBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteBackupResult::~DeleteBackupResult() -{} - -void DeleteBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteBackupResult::DeleteBackupResult() : + ServiceResult() +{} + +DeleteBackupResult::DeleteBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBackupResult::~DeleteBackupResult() +{} + +void DeleteBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteDBInstanceRequest.cc b/rds/src/model/DeleteDBInstanceRequest.cc index edcff5c7a..1ea23882e 100644 --- a/rds/src/model/DeleteDBInstanceRequest.cc +++ b/rds/src/model/DeleteDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DeleteDBInstanceRequest; - -DeleteDBInstanceRequest::DeleteDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "DeleteDBInstance") -{} - -DeleteDBInstanceRequest::~DeleteDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DeleteDBInstanceRequest; + +DeleteDBInstanceRequest::DeleteDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DeleteDBInstance") +{} + +DeleteDBInstanceRequest::~DeleteDBInstanceRequest() +{} + long DeleteDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DeleteDBInstanceResult.cc b/rds/src/model/DeleteDBInstanceResult.cc index a54365362..cf141b71d 100644 --- a/rds/src/model/DeleteDBInstanceResult.cc +++ b/rds/src/model/DeleteDBInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DeleteDBInstanceResult::DeleteDBInstanceResult() : - ServiceResult() -{} - -DeleteDBInstanceResult::DeleteDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDBInstanceResult::~DeleteDBInstanceResult() -{} - -void DeleteDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDBInstanceResult::DeleteDBInstanceResult() : + ServiceResult() +{} + +DeleteDBInstanceResult::DeleteDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBInstanceResult::~DeleteDBInstanceResult() +{} + +void DeleteDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteDatabaseRequest.cc b/rds/src/model/DeleteDatabaseRequest.cc index 458766809..c94361801 100644 --- a/rds/src/model/DeleteDatabaseRequest.cc +++ b/rds/src/model/DeleteDatabaseRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DeleteDatabaseRequest; - -DeleteDatabaseRequest::DeleteDatabaseRequest() : - RpcServiceRequest("rds", "2014-08-15", "DeleteDatabase") -{} - -DeleteDatabaseRequest::~DeleteDatabaseRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DeleteDatabaseRequest; + +DeleteDatabaseRequest::DeleteDatabaseRequest() : + RpcServiceRequest("rds", "2014-08-15", "DeleteDatabase") +{} + +DeleteDatabaseRequest::~DeleteDatabaseRequest() +{} + long DeleteDatabaseRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DeleteDatabaseResult.cc b/rds/src/model/DeleteDatabaseResult.cc index 3721ffa96..a11d23748 100644 --- a/rds/src/model/DeleteDatabaseResult.cc +++ b/rds/src/model/DeleteDatabaseResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DeleteDatabaseResult::DeleteDatabaseResult() : - ServiceResult() -{} - -DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDatabaseResult::~DeleteDatabaseResult() -{} - -void DeleteDatabaseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDatabaseResult::DeleteDatabaseResult() : + ServiceResult() +{} + +DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatabaseResult::~DeleteDatabaseResult() +{} + +void DeleteDatabaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DescibeImportsFromDatabaseRequest.cc b/rds/src/model/DescibeImportsFromDatabaseRequest.cc index 71691abe2..cb42c5c9e 100644 --- a/rds/src/model/DescibeImportsFromDatabaseRequest.cc +++ b/rds/src/model/DescibeImportsFromDatabaseRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescibeImportsFromDatabaseRequest; - -DescibeImportsFromDatabaseRequest::DescibeImportsFromDatabaseRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescibeImportsFromDatabase") -{} - -DescibeImportsFromDatabaseRequest::~DescibeImportsFromDatabaseRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescibeImportsFromDatabaseRequest; + +DescibeImportsFromDatabaseRequest::DescibeImportsFromDatabaseRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescibeImportsFromDatabase") +{} + +DescibeImportsFromDatabaseRequest::~DescibeImportsFromDatabaseRequest() +{} + long DescibeImportsFromDatabaseRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescibeImportsFromDatabaseResult.cc b/rds/src/model/DescibeImportsFromDatabaseResult.cc index b34969f11..71972b173 100644 --- a/rds/src/model/DescibeImportsFromDatabaseResult.cc +++ b/rds/src/model/DescibeImportsFromDatabaseResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult() : - ServiceResult() -{} - -DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescibeImportsFromDatabaseResult::~DescibeImportsFromDatabaseResult() -{} - -void DescibeImportsFromDatabaseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult() : + ServiceResult() +{} + +DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescibeImportsFromDatabaseResult::~DescibeImportsFromDatabaseResult() +{} + +void DescibeImportsFromDatabaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ImportResultFromDB"]; for (auto value : allItems) { @@ -62,9 +65,9 @@ void DescibeImportsFromDatabaseResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescibeImportsFromDatabaseResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeAccountsRequest.cc b/rds/src/model/DescribeAccountsRequest.cc index 2d5dabc5d..c1616c8aa 100644 --- a/rds/src/model/DescribeAccountsRequest.cc +++ b/rds/src/model/DescribeAccountsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeAccountsRequest; - -DescribeAccountsRequest::DescribeAccountsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeAccounts") -{} - -DescribeAccountsRequest::~DescribeAccountsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeAccounts") +{} + +DescribeAccountsRequest::~DescribeAccountsRequest() +{} + long DescribeAccountsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeAccountsResult.cc b/rds/src/model/DescribeAccountsResult.cc index 14475db91..dc963a28d 100644 --- a/rds/src/model/DescribeAccountsResult.cc +++ b/rds/src/model/DescribeAccountsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeAccountsResult::DescribeAccountsResult() : - ServiceResult() -{} - -DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAccountsResult::~DescribeAccountsResult() -{} - -void DescribeAccountsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAccountsResult::DescribeAccountsResult() : + ServiceResult() +{} + +DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountsResult::~DescribeAccountsResult() +{} + +void DescribeAccountsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAccounts = value["Accounts"]["DBInstanceAccount"]; for (auto value : allAccounts) { @@ -70,9 +73,9 @@ void DescribeAccountsResult::parse(const std::string &payload) } accounts_.push_back(accountsObject); } - -} - + +} + std::vector DescribeAccountsResult::getAccounts()const { return accounts_; diff --git a/rds/src/model/DescribeAvailableCrossRegionRequest.cc b/rds/src/model/DescribeAvailableCrossRegionRequest.cc new file mode 100644 index 000000000..950dd994e --- /dev/null +++ b/rds/src/model/DescribeAvailableCrossRegionRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Rds::Model::DescribeAvailableCrossRegionRequest; + +DescribeAvailableCrossRegionRequest::DescribeAvailableCrossRegionRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableCrossRegion") +{} + +DescribeAvailableCrossRegionRequest::~DescribeAvailableCrossRegionRequest() +{} + +long DescribeAvailableCrossRegionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAvailableCrossRegionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableCrossRegionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAvailableCrossRegionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAvailableCrossRegionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAvailableCrossRegionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +long DescribeAvailableCrossRegionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAvailableCrossRegionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAvailableCrossRegionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAvailableCrossRegionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeAvailableCrossRegionResult.cc b/rds/src/model/DescribeAvailableCrossRegionResult.cc new file mode 100644 index 000000000..40428b217 --- /dev/null +++ b/rds/src/model/DescribeAvailableCrossRegionResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAvailableCrossRegionResult::DescribeAvailableCrossRegionResult() : + ServiceResult() +{} + +DescribeAvailableCrossRegionResult::DescribeAvailableCrossRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableCrossRegionResult::~DescribeAvailableCrossRegionResult() +{} + +void DescribeAvailableCrossRegionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["Region"]; + for (const auto &item : allRegions) + regions_.push_back(item.asString()); + +} + +std::vector DescribeAvailableCrossRegionResult::getRegions()const +{ + return regions_; +} + diff --git a/rds/src/model/DescribeAvailableInstanceClassRequest.cc b/rds/src/model/DescribeAvailableInstanceClassRequest.cc index f92766f76..08f0a1848 100644 --- a/rds/src/model/DescribeAvailableInstanceClassRequest.cc +++ b/rds/src/model/DescribeAvailableInstanceClassRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeAvailableInstanceClassRequest; - -DescribeAvailableInstanceClassRequest::DescribeAvailableInstanceClassRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableInstanceClass") -{} - -DescribeAvailableInstanceClassRequest::~DescribeAvailableInstanceClassRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeAvailableInstanceClassRequest; + +DescribeAvailableInstanceClassRequest::DescribeAvailableInstanceClassRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableInstanceClass") +{} + +DescribeAvailableInstanceClassRequest::~DescribeAvailableInstanceClassRequest() +{} + long DescribeAvailableInstanceClassRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeAvailableInstanceClassResult.cc b/rds/src/model/DescribeAvailableInstanceClassResult.cc index 73f2c69ff..da7173450 100644 --- a/rds/src/model/DescribeAvailableInstanceClassResult.cc +++ b/rds/src/model/DescribeAvailableInstanceClassResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult() : - ServiceResult() -{} - -DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAvailableInstanceClassResult::~DescribeAvailableInstanceClassResult() -{} - -void DescribeAvailableInstanceClassResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult() : + ServiceResult() +{} + +DescribeAvailableInstanceClassResult::DescribeAvailableInstanceClassResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableInstanceClassResult::~DescribeAvailableInstanceClassResult() +{} + +void DescribeAvailableInstanceClassResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAvailableZones = value["AvailableZones"]["AvailableZone"]; for (auto value : allAvailableZones) { @@ -96,9 +99,9 @@ void DescribeAvailableInstanceClassResult::parse(const std::string &payload) } availableZones_.push_back(availableZonesObject); } - -} - + +} + std::vector DescribeAvailableInstanceClassResult::getAvailableZones()const { return availableZones_; diff --git a/rds/src/model/DescribeAvailableRecoveryTimeRequest.cc b/rds/src/model/DescribeAvailableRecoveryTimeRequest.cc new file mode 100644 index 000000000..9467788f9 --- /dev/null +++ b/rds/src/model/DescribeAvailableRecoveryTimeRequest.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 + +using AlibabaCloud::Rds::Model::DescribeAvailableRecoveryTimeRequest; + +DescribeAvailableRecoveryTimeRequest::DescribeAvailableRecoveryTimeRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableRecoveryTime") +{} + +DescribeAvailableRecoveryTimeRequest::~DescribeAvailableRecoveryTimeRequest() +{} + +long DescribeAvailableRecoveryTimeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAvailableRecoveryTimeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableRecoveryTimeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAvailableRecoveryTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAvailableRecoveryTimeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAvailableRecoveryTimeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeAvailableRecoveryTimeRequest::getCrossBackupId()const +{ + return crossBackupId_; +} + +void DescribeAvailableRecoveryTimeRequest::setCrossBackupId(int crossBackupId) +{ + crossBackupId_ = crossBackupId; + setCoreParameter("CrossBackupId", std::to_string(crossBackupId)); +} + +long DescribeAvailableRecoveryTimeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAvailableRecoveryTimeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAvailableRecoveryTimeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAvailableRecoveryTimeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeAvailableRecoveryTimeResult.cc b/rds/src/model/DescribeAvailableRecoveryTimeResult.cc new file mode 100644 index 000000000..d4817a62d --- /dev/null +++ b/rds/src/model/DescribeAvailableRecoveryTimeResult.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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAvailableRecoveryTimeResult::DescribeAvailableRecoveryTimeResult() : + ServiceResult() +{} + +DescribeAvailableRecoveryTimeResult::DescribeAvailableRecoveryTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableRecoveryTimeResult::~DescribeAvailableRecoveryTimeResult() +{} + +void DescribeAvailableRecoveryTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["RecoveryBeginTime"].isNull()) + recoveryBeginTime_ = value["RecoveryBeginTime"].asString(); + if(!value["RecoveryEndTime"].isNull()) + recoveryEndTime_ = value["RecoveryEndTime"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["CrossBackupId"].isNull()) + crossBackupId_ = std::stoi(value["CrossBackupId"].asString()); + +} + +std::string DescribeAvailableRecoveryTimeResult::getRecoveryEndTime()const +{ + return recoveryEndTime_; +} + +std::string DescribeAvailableRecoveryTimeResult::getRecoveryBeginTime()const +{ + return recoveryBeginTime_; +} + +std::string DescribeAvailableRecoveryTimeResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeAvailableRecoveryTimeResult::getRegionId()const +{ + return regionId_; +} + +int DescribeAvailableRecoveryTimeResult::getCrossBackupId()const +{ + return crossBackupId_; +} + diff --git a/rds/src/model/DescribeAvailableResourceRequest.cc b/rds/src/model/DescribeAvailableResourceRequest.cc index af7f05424..49dd2d183 100644 --- a/rds/src/model/DescribeAvailableResourceRequest.cc +++ b/rds/src/model/DescribeAvailableResourceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeAvailableResourceRequest; - -DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableResource") -{} - -DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeAvailableResource") +{} + +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() +{} + long DescribeAvailableResourceRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -91,6 +91,17 @@ void DescribeAvailableResourceRequest::setAccessKeyId(const std::string& accessK setCoreParameter("AccessKeyId", accessKeyId); } +std::string DescribeAvailableResourceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void DescribeAvailableResourceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setCoreParameter("DBInstanceClass", dBInstanceClass); +} + std::string DescribeAvailableResourceRequest::getRegionId()const { return regionId_; diff --git a/rds/src/model/DescribeAvailableResourceResult.cc b/rds/src/model/DescribeAvailableResourceResult.cc index 08b4c7a3c..fd7360e26 100644 --- a/rds/src/model/DescribeAvailableResourceResult.cc +++ b/rds/src/model/DescribeAvailableResourceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeAvailableResourceResult::DescribeAvailableResourceResult() : - ServiceResult() -{} - -DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAvailableResourceResult::~DescribeAvailableResourceResult() -{} - -void DescribeAvailableResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAvailableResourceResult::DescribeAvailableResourceResult() : + ServiceResult() +{} + +DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableResourceResult::~DescribeAvailableResourceResult() +{} + +void DescribeAvailableResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAvailableZones = value["AvailableZones"]["AvailableZone"]; for (auto value : allAvailableZones) { @@ -52,53 +55,60 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) availableZonesObject.status = value["Status"].asString(); if(!value["NetworkTypes"].isNull()) availableZonesObject.networkTypes = value["NetworkTypes"].asString(); - auto allSupportedEngine = value["SupportedEngine"]["SupportedEngines"]; - for (auto value : allSupportedEngine) + auto allSupportedEngines = value["SupportedEngines"]["SupportedEngine"]; + for (auto value : allSupportedEngines) { - AvailableZone::SupportedEngines supportedEngineObject; + AvailableZone::SupportedEngine supportedEnginesObject; if(!value["Engine"].isNull()) - supportedEngineObject.engine = value["Engine"].asString(); - auto allSupportedEngineVersion = value["SupportedEngineVersion"]["SupportedEngineVersions"]; - for (auto value : allSupportedEngineVersion) + supportedEnginesObject.engine = value["Engine"].asString(); + auto allSupportedEngineVersions = value["SupportedEngineVersions"]["SupportedEngineVersion"]; + for (auto value : allSupportedEngineVersions) { - AvailableZone::SupportedEngines::SupportedEngineVersions supportedEngineVersionObject; + AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject; if(!value["Version"].isNull()) - supportedEngineVersionObject.version = value["Version"].asString(); - auto allSupportedCategory = value["SupportedCategory"]["SupportedCategorys"]; - for (auto value : allSupportedCategory) + supportedEngineVersionsObject.version = value["Version"].asString(); + auto allSupportedCategorys = value["SupportedCategorys"]["SupportedCategory"]; + for (auto value : allSupportedCategorys) { - AvailableZone::SupportedEngines::SupportedEngineVersions::SupportedCategorys supportedCategoryObject; + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategory supportedCategorysObject; if(!value["Category"].isNull()) - supportedCategoryObject.category = value["Category"].asString(); - auto allSupportedStorageType = value["SupportedStorageType"]["SupportedStorageTypes"]; - for (auto value : allSupportedStorageType) + supportedCategorysObject.category = value["Category"].asString(); + auto allSupportedStorageTypes = value["SupportedStorageTypes"]["SupportedStorageType"]; + for (auto value : allSupportedStorageTypes) { - AvailableZone::SupportedEngines::SupportedEngineVersions::SupportedCategorys::SupportedStorageTypes supportedStorageTypeObject; + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategory::SupportedStorageType supportedStorageTypesObject; if(!value["StorageType"].isNull()) - supportedStorageTypeObject.storageType = value["StorageType"].asString(); - auto allAvailableResource = value["AvailableResource"]["AvailableResources"]; - for (auto value : allAvailableResource) + supportedStorageTypesObject.storageType = value["StorageType"].asString(); + auto allAvailableResources = value["AvailableResources"]["AvailableResource"]; + for (auto value : allAvailableResources) { - AvailableZone::SupportedEngines::SupportedEngineVersions::SupportedCategorys::SupportedStorageTypes::AvailableResources availableResourceObject; + AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategory::SupportedStorageType::AvailableResource availableResourcesObject; if(!value["DBInstanceClass"].isNull()) - availableResourceObject.dBInstanceClass = value["DBInstanceClass"].asString(); + availableResourcesObject.dBInstanceClass = value["DBInstanceClass"].asString(); if(!value["StorageRange"].isNull()) - availableResourceObject.storageRange = value["StorageRange"].asString(); - supportedStorageTypeObject.availableResource.push_back(availableResourceObject); + availableResourcesObject.storageRange = value["StorageRange"].asString(); + auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"]; + if(!dBInstanceStorageRangeNode["Max"].isNull()) + availableResourcesObject.dBInstanceStorageRange.max = std::stoi(dBInstanceStorageRangeNode["Max"].asString()); + if(!dBInstanceStorageRangeNode["Min"].isNull()) + availableResourcesObject.dBInstanceStorageRange.min = std::stoi(dBInstanceStorageRangeNode["Min"].asString()); + if(!dBInstanceStorageRangeNode["Step"].isNull()) + availableResourcesObject.dBInstanceStorageRange.step = std::stoi(dBInstanceStorageRangeNode["Step"].asString()); + supportedStorageTypesObject.availableResources.push_back(availableResourcesObject); } - supportedCategoryObject.supportedStorageType.push_back(supportedStorageTypeObject); + supportedCategorysObject.supportedStorageTypes.push_back(supportedStorageTypesObject); } - supportedEngineVersionObject.supportedCategory.push_back(supportedCategoryObject); + supportedEngineVersionsObject.supportedCategorys.push_back(supportedCategorysObject); } - supportedEngineObject.supportedEngineVersion.push_back(supportedEngineVersionObject); + supportedEnginesObject.supportedEngineVersions.push_back(supportedEngineVersionsObject); } - availableZonesObject.supportedEngine.push_back(supportedEngineObject); + availableZonesObject.supportedEngines.push_back(supportedEnginesObject); } availableZones_.push_back(availableZonesObject); } - -} - + +} + std::vector DescribeAvailableResourceResult::getAvailableZones()const { return availableZones_; diff --git a/rds/src/model/DescribeBackupDatabaseRequest.cc b/rds/src/model/DescribeBackupDatabaseRequest.cc index d0ee37a9b..5357efd1b 100644 --- a/rds/src/model/DescribeBackupDatabaseRequest.cc +++ b/rds/src/model/DescribeBackupDatabaseRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupDatabaseRequest; - -DescribeBackupDatabaseRequest::DescribeBackupDatabaseRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeBackupDatabase") -{} - -DescribeBackupDatabaseRequest::~DescribeBackupDatabaseRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupDatabaseRequest; + +DescribeBackupDatabaseRequest::DescribeBackupDatabaseRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeBackupDatabase") +{} + +DescribeBackupDatabaseRequest::~DescribeBackupDatabaseRequest() +{} + long DescribeBackupDatabaseRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeBackupDatabaseResult.cc b/rds/src/model/DescribeBackupDatabaseResult.cc index ab0508823..051a1f05a 100644 --- a/rds/src/model/DescribeBackupDatabaseResult.cc +++ b/rds/src/model/DescribeBackupDatabaseResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeBackupDatabaseResult::DescribeBackupDatabaseResult() : - ServiceResult() -{} - -DescribeBackupDatabaseResult::DescribeBackupDatabaseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupDatabaseResult::~DescribeBackupDatabaseResult() -{} - -void DescribeBackupDatabaseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupDatabaseResult::DescribeBackupDatabaseResult() : + ServiceResult() +{} + +DescribeBackupDatabaseResult::DescribeBackupDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupDatabaseResult::~DescribeBackupDatabaseResult() +{} + +void DescribeBackupDatabaseResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DatabaseNames"].isNull()) databaseNames_ = value["DatabaseNames"].asString(); - -} - + +} + std::string DescribeBackupDatabaseResult::getDatabaseNames()const { return databaseNames_; diff --git a/rds/src/model/DescribeBackupPolicyRequest.cc b/rds/src/model/DescribeBackupPolicyRequest.cc index 3dccf84dd..1f7398942 100644 --- a/rds/src/model/DescribeBackupPolicyRequest.cc +++ b/rds/src/model/DescribeBackupPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupPolicyRequest; - -DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeBackupPolicy") -{} - -DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupPolicyRequest; + +DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeBackupPolicy") +{} + +DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() +{} + long DescribeBackupPolicyRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeBackupPolicyResult.cc b/rds/src/model/DescribeBackupPolicyResult.cc index ace31bace..5cbd793bb 100644 --- a/rds/src/model/DescribeBackupPolicyResult.cc +++ b/rds/src/model/DescribeBackupPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeBackupPolicyResult::DescribeBackupPolicyResult() : - ServiceResult() -{} - -DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupPolicyResult::~DescribeBackupPolicyResult() -{} - -void DescribeBackupPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupPolicyResult::DescribeBackupPolicyResult() : + ServiceResult() +{} + +DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupPolicyResult::~DescribeBackupPolicyResult() +{} + +void DescribeBackupPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto duplicationLocationNode = value["DuplicationLocation"]; if(!duplicationLocationNode["Sotrage"].isNull()) duplicationLocation_.sotrage = duplicationLocationNode["Sotrage"].asString(); @@ -76,9 +79,9 @@ void DescribeBackupPolicyResult::parse(const std::string &payload) logBackupFrequency_ = value["LogBackupFrequency"].asString(); if(!value["CompressType"].isNull()) compressType_ = value["CompressType"].asString(); - -} - + +} + std::string DescribeBackupPolicyResult::getDuplication()const { return duplication_; diff --git a/rds/src/model/DescribeBackupTasksRequest.cc b/rds/src/model/DescribeBackupTasksRequest.cc index eed4cbd22..e2126cc85 100644 --- a/rds/src/model/DescribeBackupTasksRequest.cc +++ b/rds/src/model/DescribeBackupTasksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupTasksRequest; - -DescribeBackupTasksRequest::DescribeBackupTasksRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeBackupTasks") -{} - -DescribeBackupTasksRequest::~DescribeBackupTasksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupTasksRequest; + +DescribeBackupTasksRequest::DescribeBackupTasksRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeBackupTasks") +{} + +DescribeBackupTasksRequest::~DescribeBackupTasksRequest() +{} + std::string DescribeBackupTasksRequest::getBackupJobId()const { return backupJobId_; diff --git a/rds/src/model/DescribeBackupTasksResult.cc b/rds/src/model/DescribeBackupTasksResult.cc index 3b58d541b..d85eb5605 100644 --- a/rds/src/model/DescribeBackupTasksResult.cc +++ b/rds/src/model/DescribeBackupTasksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeBackupTasksResult::DescribeBackupTasksResult() : - ServiceResult() -{} - -DescribeBackupTasksResult::DescribeBackupTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupTasksResult::~DescribeBackupTasksResult() -{} - -void DescribeBackupTasksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupTasksResult::DescribeBackupTasksResult() : + ServiceResult() +{} + +DescribeBackupTasksResult::DescribeBackupTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupTasksResult::~DescribeBackupTasksResult() +{} + +void DescribeBackupTasksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["BackupJob"]; for (auto value : allItems) { @@ -60,9 +63,9 @@ void DescribeBackupTasksResult::parse(const std::string &payload) itemsObject.backupId = value["BackupId"].asString(); items_.push_back(itemsObject); } - -} - + +} + std::vector DescribeBackupTasksResult::getItems()const { return items_; diff --git a/rds/src/model/DescribeBackupsRequest.cc b/rds/src/model/DescribeBackupsRequest.cc index e6880c6a7..93ef76db1 100644 --- a/rds/src/model/DescribeBackupsRequest.cc +++ b/rds/src/model/DescribeBackupsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupsRequest; - -DescribeBackupsRequest::DescribeBackupsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeBackups") -{} - -DescribeBackupsRequest::~DescribeBackupsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeBackupsRequest; + +DescribeBackupsRequest::DescribeBackupsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeBackups") +{} + +DescribeBackupsRequest::~DescribeBackupsRequest() +{} + long DescribeBackupsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeBackupsResult.cc b/rds/src/model/DescribeBackupsResult.cc index 8e23fafa5..8a7dfce17 100644 --- a/rds/src/model/DescribeBackupsResult.cc +++ b/rds/src/model/DescribeBackupsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeBackupsResult::DescribeBackupsResult() : - ServiceResult() -{} - -DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackupsResult::~DescribeBackupsResult() -{} - -void DescribeBackupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupsResult::DescribeBackupsResult() : + ServiceResult() +{} + +DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupsResult::~DescribeBackupsResult() +{} + +void DescribeBackupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Backup"]; for (auto value : allItems) { @@ -94,9 +97,9 @@ void DescribeBackupsResult::parse(const std::string &payload) pageRecordCount_ = value["PageRecordCount"].asString(); if(!value["TotalBackupSize"].isNull()) totalBackupSize_ = std::stol(value["TotalBackupSize"].asString()); - -} - + +} + std::string DescribeBackupsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeBinlogFilesRequest.cc b/rds/src/model/DescribeBinlogFilesRequest.cc index a744bb93d..30773fa4f 100644 --- a/rds/src/model/DescribeBinlogFilesRequest.cc +++ b/rds/src/model/DescribeBinlogFilesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeBinlogFilesRequest; - -DescribeBinlogFilesRequest::DescribeBinlogFilesRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeBinlogFiles") -{} - -DescribeBinlogFilesRequest::~DescribeBinlogFilesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeBinlogFilesRequest; + +DescribeBinlogFilesRequest::DescribeBinlogFilesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeBinlogFiles") +{} + +DescribeBinlogFilesRequest::~DescribeBinlogFilesRequest() +{} + long DescribeBinlogFilesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeBinlogFilesResult.cc b/rds/src/model/DescribeBinlogFilesResult.cc index a260db28d..b38b77c65 100644 --- a/rds/src/model/DescribeBinlogFilesResult.cc +++ b/rds/src/model/DescribeBinlogFilesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeBinlogFilesResult::DescribeBinlogFilesResult() : - ServiceResult() -{} - -DescribeBinlogFilesResult::DescribeBinlogFilesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBinlogFilesResult::~DescribeBinlogFilesResult() -{} - -void DescribeBinlogFilesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBinlogFilesResult::DescribeBinlogFilesResult() : + ServiceResult() +{} + +DescribeBinlogFilesResult::DescribeBinlogFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBinlogFilesResult::~DescribeBinlogFilesResult() +{} + +void DescribeBinlogFilesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["BinLogFile"]; for (auto value : allItems) { @@ -72,9 +75,9 @@ void DescribeBinlogFilesResult::parse(const std::string &payload) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); if(!value["TotalFileSize"].isNull()) totalFileSize_ = std::stol(value["TotalFileSize"].asString()); - -} - + +} + int DescribeBinlogFilesResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeCharacterSetNameRequest.cc b/rds/src/model/DescribeCharacterSetNameRequest.cc index d510319cd..26182c625 100644 --- a/rds/src/model/DescribeCharacterSetNameRequest.cc +++ b/rds/src/model/DescribeCharacterSetNameRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeCharacterSetNameRequest; - -DescribeCharacterSetNameRequest::DescribeCharacterSetNameRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeCharacterSetName") -{} - -DescribeCharacterSetNameRequest::~DescribeCharacterSetNameRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeCharacterSetNameRequest; + +DescribeCharacterSetNameRequest::DescribeCharacterSetNameRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeCharacterSetName") +{} + +DescribeCharacterSetNameRequest::~DescribeCharacterSetNameRequest() +{} + long DescribeCharacterSetNameRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeCharacterSetNameResult.cc b/rds/src/model/DescribeCharacterSetNameResult.cc index cecff924c..8db50d4e7 100644 --- a/rds/src/model/DescribeCharacterSetNameResult.cc +++ b/rds/src/model/DescribeCharacterSetNameResult.cc @@ -1,53 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeCharacterSetNameResult::DescribeCharacterSetNameResult() : - ServiceResult() -{} - -DescribeCharacterSetNameResult::DescribeCharacterSetNameResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCharacterSetNameResult::~DescribeCharacterSetNameResult() -{} - -void DescribeCharacterSetNameResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCharacterSetNameResult::DescribeCharacterSetNameResult() : + ServiceResult() +{} + +DescribeCharacterSetNameResult::DescribeCharacterSetNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCharacterSetNameResult::~DescribeCharacterSetNameResult() +{} + +void DescribeCharacterSetNameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCharacterSetNameItems = value["CharacterSetNameItems"]["CharacterSetName"]; for (const auto &item : allCharacterSetNameItems) characterSetNameItems_.push_back(item.asString()); if(!value["Engine"].isNull()) engine_ = value["Engine"].asString(); - -} - + +} + std::vector DescribeCharacterSetNameResult::getCharacterSetNameItems()const { return characterSetNameItems_; diff --git a/rds/src/model/DescribeCloudDbExpertServiceRequest.cc b/rds/src/model/DescribeCloudDbExpertServiceRequest.cc index 0a4faf9a7..656821e97 100644 --- a/rds/src/model/DescribeCloudDbExpertServiceRequest.cc +++ b/rds/src/model/DescribeCloudDbExpertServiceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeCloudDbExpertServiceRequest; - -DescribeCloudDbExpertServiceRequest::DescribeCloudDbExpertServiceRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeCloudDbExpertService") -{} - -DescribeCloudDbExpertServiceRequest::~DescribeCloudDbExpertServiceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeCloudDbExpertServiceRequest; + +DescribeCloudDbExpertServiceRequest::DescribeCloudDbExpertServiceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeCloudDbExpertService") +{} + +DescribeCloudDbExpertServiceRequest::~DescribeCloudDbExpertServiceRequest() +{} + std::string DescribeCloudDbExpertServiceRequest::getServiceRequestParam()const { return serviceRequestParam_; diff --git a/rds/src/model/DescribeCloudDbExpertServiceResult.cc b/rds/src/model/DescribeCloudDbExpertServiceResult.cc index 4f3f9b268..357e88c2f 100644 --- a/rds/src/model/DescribeCloudDbExpertServiceResult.cc +++ b/rds/src/model/DescribeCloudDbExpertServiceResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult() : - ServiceResult() -{} - -DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCloudDbExpertServiceResult::~DescribeCloudDbExpertServiceResult() -{} - -void DescribeCloudDbExpertServiceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult() : + ServiceResult() +{} + +DescribeCloudDbExpertServiceResult::DescribeCloudDbExpertServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudDbExpertServiceResult::~DescribeCloudDbExpertServiceResult() +{} + +void DescribeCloudDbExpertServiceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + 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_ = value["Code"].asString(); - -} - + +} + std::string DescribeCloudDbExpertServiceResult::getMessage()const { return message_; diff --git a/rds/src/model/DescribeCollationTimeZonesRequest.cc b/rds/src/model/DescribeCollationTimeZonesRequest.cc index ea6b15a84..98ff54ea1 100644 --- a/rds/src/model/DescribeCollationTimeZonesRequest.cc +++ b/rds/src/model/DescribeCollationTimeZonesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeCollationTimeZonesRequest; - -DescribeCollationTimeZonesRequest::DescribeCollationTimeZonesRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeCollationTimeZones") -{} - -DescribeCollationTimeZonesRequest::~DescribeCollationTimeZonesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeCollationTimeZonesRequest; + +DescribeCollationTimeZonesRequest::DescribeCollationTimeZonesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeCollationTimeZones") +{} + +DescribeCollationTimeZonesRequest::~DescribeCollationTimeZonesRequest() +{} + long DescribeCollationTimeZonesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeCollationTimeZonesResult.cc b/rds/src/model/DescribeCollationTimeZonesResult.cc index aea5275fc..b5e174035 100644 --- a/rds/src/model/DescribeCollationTimeZonesResult.cc +++ b/rds/src/model/DescribeCollationTimeZonesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult() : - ServiceResult() -{} - -DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCollationTimeZonesResult::~DescribeCollationTimeZonesResult() -{} - -void DescribeCollationTimeZonesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult() : + ServiceResult() +{} + +DescribeCollationTimeZonesResult::DescribeCollationTimeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCollationTimeZonesResult::~DescribeCollationTimeZonesResult() +{} + +void DescribeCollationTimeZonesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCollationTimeZones = value["CollationTimeZones"]["CollationTimeZone"]; for (auto value : allCollationTimeZones) { @@ -52,9 +55,9 @@ void DescribeCollationTimeZonesResult::parse(const std::string &payload) collationTimeZonesObject.description = value["Description"].asString(); collationTimeZones_.push_back(collationTimeZonesObject); } - -} - + +} + std::vector DescribeCollationTimeZonesResult::getCollationTimeZones()const { return collationTimeZones_; diff --git a/rds/src/model/DescribeCrossRegionBackupDBInstanceRequest.cc b/rds/src/model/DescribeCrossRegionBackupDBInstanceRequest.cc new file mode 100644 index 000000000..e5b810cc7 --- /dev/null +++ b/rds/src/model/DescribeCrossRegionBackupDBInstanceRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeCrossRegionBackupDBInstanceRequest; + +DescribeCrossRegionBackupDBInstanceRequest::DescribeCrossRegionBackupDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeCrossRegionBackupDBInstance") +{} + +DescribeCrossRegionBackupDBInstanceRequest::~DescribeCrossRegionBackupDBInstanceRequest() +{} + +long DescribeCrossRegionBackupDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCrossRegionBackupDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCrossRegionBackupDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeCrossRegionBackupDBInstanceRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCrossRegionBackupDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeCrossRegionBackupDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCrossRegionBackupDBInstanceRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCrossRegionBackupDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeCrossRegionBackupDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeCrossRegionBackupDBInstanceResult.cc b/rds/src/model/DescribeCrossRegionBackupDBInstanceResult.cc new file mode 100644 index 000000000..9a3c630c5 --- /dev/null +++ b/rds/src/model/DescribeCrossRegionBackupDBInstanceResult.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCrossRegionBackupDBInstanceResult::DescribeCrossRegionBackupDBInstanceResult() : + ServiceResult() +{} + +DescribeCrossRegionBackupDBInstanceResult::DescribeCrossRegionBackupDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCrossRegionBackupDBInstanceResult::~DescribeCrossRegionBackupDBInstanceResult() +{} + +void DescribeCrossRegionBackupDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["DBInstanceId"].isNull()) + itemsObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["DBInstanceDescription"].isNull()) + itemsObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + if(!value["DBInstanceStatus"].isNull()) + itemsObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + if(!value["DBInstanceStatusDesc"].isNull()) + itemsObject.dBInstanceStatusDesc = value["DBInstanceStatusDesc"].asString(); + if(!value["Engine"].isNull()) + itemsObject.engine = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + itemsObject.engineVersion = value["EngineVersion"].asString(); + if(!value["CrossBackupRegion"].isNull()) + itemsObject.crossBackupRegion = value["CrossBackupRegion"].asString(); + if(!value["CrossBackupType"].isNull()) + itemsObject.crossBackupType = value["CrossBackupType"].asString(); + if(!value["BackupEnabled"].isNull()) + itemsObject.backupEnabled = value["BackupEnabled"].asString(); + if(!value["LogBackupEnabled"].isNull()) + itemsObject.logBackupEnabled = value["LogBackupEnabled"].asString(); + if(!value["LogBackupEnabledTime"].isNull()) + itemsObject.logBackupEnabledTime = value["LogBackupEnabledTime"].asString(); + if(!value["BackupEnabledTime"].isNull()) + itemsObject.backupEnabledTime = value["BackupEnabledTime"].asString(); + if(!value["RetentType"].isNull()) + itemsObject.retentType = std::stoi(value["RetentType"].asString()); + if(!value["Retention"].isNull()) + itemsObject.retention = std::stoi(value["Retention"].asString()); + if(!value["LockMode"].isNull()) + itemsObject.lockMode = value["LockMode"].asString(); + if(!value["RelService"].isNull()) + itemsObject.relService = value["RelService"].asString(); + if(!value["RelServiceId"].isNull()) + itemsObject.relServiceId = value["RelServiceId"].asString(); + items_.push_back(itemsObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["TotalRecords"].isNull()) + totalRecords_ = std::stoi(value["TotalRecords"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ItemsNumbers"].isNull()) + itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString()); + +} + +int DescribeCrossRegionBackupDBInstanceResult::getItemsNumbers()const +{ + return itemsNumbers_; +} + +int DescribeCrossRegionBackupDBInstanceResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCrossRegionBackupDBInstanceResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeCrossRegionBackupDBInstanceResult::getTotalRecords()const +{ + return totalRecords_; +} + +std::vector DescribeCrossRegionBackupDBInstanceResult::getItems()const +{ + return items_; +} + +std::string DescribeCrossRegionBackupDBInstanceResult::getRegionId()const +{ + return regionId_; +} + diff --git a/rds/src/model/DescribeCrossRegionBackupsRequest.cc b/rds/src/model/DescribeCrossRegionBackupsRequest.cc new file mode 100644 index 000000000..46956ccd8 --- /dev/null +++ b/rds/src/model/DescribeCrossRegionBackupsRequest.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 + +using AlibabaCloud::Rds::Model::DescribeCrossRegionBackupsRequest; + +DescribeCrossRegionBackupsRequest::DescribeCrossRegionBackupsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeCrossRegionBackups") +{} + +DescribeCrossRegionBackupsRequest::~DescribeCrossRegionBackupsRequest() +{} + +long DescribeCrossRegionBackupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCrossRegionBackupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCrossRegionBackupsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCrossRegionBackupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCrossRegionBackupsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeCrossRegionBackupsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeCrossRegionBackupsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeCrossRegionBackupsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeCrossRegionBackupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCrossRegionBackupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCrossRegionBackupsRequest::getCrossBackupRegion()const +{ + return crossBackupRegion_; +} + +void DescribeCrossRegionBackupsRequest::setCrossBackupRegion(const std::string& crossBackupRegion) +{ + crossBackupRegion_ = crossBackupRegion; + setCoreParameter("CrossBackupRegion", crossBackupRegion); +} + +int DescribeCrossRegionBackupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCrossRegionBackupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCrossRegionBackupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeCrossRegionBackupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeCrossRegionBackupsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCrossRegionBackupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeCrossRegionBackupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCrossRegionBackupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCrossRegionBackupsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeCrossRegionBackupsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +int DescribeCrossRegionBackupsRequest::getCrossBackupId()const +{ + return crossBackupId_; +} + +void DescribeCrossRegionBackupsRequest::setCrossBackupId(int crossBackupId) +{ + crossBackupId_ = crossBackupId; + setCoreParameter("CrossBackupId", std::to_string(crossBackupId)); +} + diff --git a/rds/src/model/DescribeCrossRegionBackupsResult.cc b/rds/src/model/DescribeCrossRegionBackupsResult.cc new file mode 100644 index 000000000..a5e577398 --- /dev/null +++ b/rds/src/model/DescribeCrossRegionBackupsResult.cc @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCrossRegionBackupsResult::DescribeCrossRegionBackupsResult() : + ServiceResult() +{} + +DescribeCrossRegionBackupsResult::DescribeCrossRegionBackupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCrossRegionBackupsResult::~DescribeCrossRegionBackupsResult() +{} + +void DescribeCrossRegionBackupsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["CrossBackupId"].isNull()) + itemsObject.crossBackupId = std::stoi(value["CrossBackupId"].asString()); + if(!value["CrossBackupRegion"].isNull()) + itemsObject.crossBackupRegion = value["CrossBackupRegion"].asString(); + if(!value["BackupSetStatus"].isNull()) + itemsObject.backupSetStatus = std::stoi(value["BackupSetStatus"].asString()); + if(!value["BackupStartTime"].isNull()) + itemsObject.backupStartTime = value["BackupStartTime"].asString(); + if(!value["BackupEndTime"].isNull()) + itemsObject.backupEndTime = value["BackupEndTime"].asString(); + if(!value["BackupType"].isNull()) + itemsObject.backupType = value["BackupType"].asString(); + if(!value["BackupMethod"].isNull()) + itemsObject.backupMethod = value["BackupMethod"].asString(); + if(!value["CrossBackupSetSize"].isNull()) + itemsObject.crossBackupSetSize = std::stol(value["CrossBackupSetSize"].asString()); + if(!value["CrossBackupSetFile"].isNull()) + itemsObject.crossBackupSetFile = value["CrossBackupSetFile"].asString(); + if(!value["CrossBackupDownloadLink"].isNull()) + itemsObject.crossBackupDownloadLink = value["CrossBackupDownloadLink"].asString(); + if(!value["Engine"].isNull()) + itemsObject.engine = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + itemsObject.engineVersion = value["EngineVersion"].asString(); + if(!value["CrossBackupSetLocation"].isNull()) + itemsObject.crossBackupSetLocation = value["CrossBackupSetLocation"].asString(); + if(!value["BackupSetScale"].isNull()) + itemsObject.backupSetScale = std::stoi(value["BackupSetScale"].asString()); + if(!value["InstanceId"].isNull()) + itemsObject.instanceId = std::stoi(value["InstanceId"].asString()); + if(!value["DBInstanceStorageType"].isNull()) + itemsObject.dBInstanceStorageType = value["DBInstanceStorageType"].asString(); + if(!value["Category"].isNull()) + itemsObject.category = value["Category"].asString(); + if(!value["ConsistentTime"].isNull()) + itemsObject.consistentTime = value["ConsistentTime"].asString(); + auto allRestoreRegions = value["RestoreRegions"]["RestoreRegion"]; + for (auto value : allRestoreRegions) + itemsObject.restoreRegions.push_back(value.asString()); + items_.push_back(itemsObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeCrossRegionBackupsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeCrossRegionBackupsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeCrossRegionBackupsResult::getEndTime()const +{ + return endTime_; +} + +int DescribeCrossRegionBackupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeCrossRegionBackupsResult::getStartTime()const +{ + return startTime_; +} + +std::vector DescribeCrossRegionBackupsResult::getItems()const +{ + return items_; +} + +std::string DescribeCrossRegionBackupsResult::getRegionId()const +{ + return regionId_; +} + diff --git a/rds/src/model/DescribeCrossRegionLogBackupFilesRequest.cc b/rds/src/model/DescribeCrossRegionLogBackupFilesRequest.cc new file mode 100644 index 000000000..2cbad291e --- /dev/null +++ b/rds/src/model/DescribeCrossRegionLogBackupFilesRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rds::Model::DescribeCrossRegionLogBackupFilesRequest; + +DescribeCrossRegionLogBackupFilesRequest::DescribeCrossRegionLogBackupFilesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeCrossRegionLogBackupFiles") +{} + +DescribeCrossRegionLogBackupFilesRequest::~DescribeCrossRegionLogBackupFilesRequest() +{} + +long DescribeCrossRegionLogBackupFilesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCrossRegionLogBackupFilesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCrossRegionLogBackupFilesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeCrossRegionLogBackupFilesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCrossRegionLogBackupFilesRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeCrossRegionLogBackupFilesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeCrossRegionLogBackupFilesRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeCrossRegionLogBackupFilesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCrossRegionLogBackupFilesRequest::getCrossBackupRegion()const +{ + return crossBackupRegion_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setCrossBackupRegion(const std::string& crossBackupRegion) +{ + crossBackupRegion_ = crossBackupRegion; + setCoreParameter("CrossBackupRegion", crossBackupRegion); +} + +int DescribeCrossRegionLogBackupFilesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCrossRegionLogBackupFilesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeCrossRegionLogBackupFilesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeCrossRegionLogBackupFilesResult.cc b/rds/src/model/DescribeCrossRegionLogBackupFilesResult.cc new file mode 100644 index 000000000..3fa4b6583 --- /dev/null +++ b/rds/src/model/DescribeCrossRegionLogBackupFilesResult.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCrossRegionLogBackupFilesResult::DescribeCrossRegionLogBackupFilesResult() : + ServiceResult() +{} + +DescribeCrossRegionLogBackupFilesResult::DescribeCrossRegionLogBackupFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCrossRegionLogBackupFilesResult::~DescribeCrossRegionLogBackupFilesResult() +{} + +void DescribeCrossRegionLogBackupFilesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemsObject; + if(!value["CrossLogBackupId"].isNull()) + itemsObject.crossLogBackupId = std::stoi(value["CrossLogBackupId"].asString()); + if(!value["CrossBackupRegion"].isNull()) + itemsObject.crossBackupRegion = value["CrossBackupRegion"].asString(); + if(!value["CrossLogBackupSize"].isNull()) + itemsObject.crossLogBackupSize = std::stol(value["CrossLogBackupSize"].asString()); + if(!value["LogBeginTime"].isNull()) + itemsObject.logBeginTime = value["LogBeginTime"].asString(); + if(!value["LogEndTime"].isNull()) + itemsObject.logEndTime = value["LogEndTime"].asString(); + if(!value["CrossDownloadLink"].isNull()) + itemsObject.crossDownloadLink = value["CrossDownloadLink"].asString(); + if(!value["CrossIntranetDownloadLink"].isNull()) + itemsObject.crossIntranetDownloadLink = value["CrossIntranetDownloadLink"].asString(); + if(!value["LinkExpiredTime"].isNull()) + itemsObject.linkExpiredTime = value["LinkExpiredTime"].asString(); + if(!value["LogFileName"].isNull()) + itemsObject.logFileName = value["LogFileName"].asString(); + if(!value["InstanceId"].isNull()) + itemsObject.instanceId = std::stoi(value["InstanceId"].asString()); + items_.push_back(itemsObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeCrossRegionLogBackupFilesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeCrossRegionLogBackupFilesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeCrossRegionLogBackupFilesResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeCrossRegionLogBackupFilesResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +int DescribeCrossRegionLogBackupFilesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeCrossRegionLogBackupFilesResult::getStartTime()const +{ + return startTime_; +} + +std::vector DescribeCrossRegionLogBackupFilesResult::getItems()const +{ + return items_; +} + +std::string DescribeCrossRegionLogBackupFilesResult::getRegionId()const +{ + return regionId_; +} + diff --git a/rds/src/model/DescribeDBInstanceAttributeRequest.cc b/rds/src/model/DescribeDBInstanceAttributeRequest.cc index 834cee7d5..1fb372484 100644 --- a/rds/src/model/DescribeDBInstanceAttributeRequest.cc +++ b/rds/src/model/DescribeDBInstanceAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceAttributeRequest; - -DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceAttribute") -{} - -DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceAttributeRequest; + +DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceAttribute") +{} + +DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest() +{} + std::string DescribeDBInstanceAttributeRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/rds/src/model/DescribeDBInstanceAttributeResult.cc b/rds/src/model/DescribeDBInstanceAttributeResult.cc index 1f6dfec86..fad8a98f0 100644 --- a/rds/src/model/DescribeDBInstanceAttributeResult.cc +++ b/rds/src/model/DescribeDBInstanceAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult() : - ServiceResult() -{} - -DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult() -{} - -void DescribeDBInstanceAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult() : + ServiceResult() +{} + +DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult() +{} + +void DescribeDBInstanceAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceAttribute"]; for (auto value : allItems) { @@ -178,6 +181,8 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload) itemsObject.dispenseMode = value["DispenseMode"].asString(); if(!value["MasterZone"].isNull()) itemsObject.masterZone = value["MasterZone"].asString(); + if(!value["AutoUpgradeMinorVersion"].isNull()) + itemsObject.autoUpgradeMinorVersion = value["AutoUpgradeMinorVersion"].asString(); auto allSlaveZones = value["SlaveZones"]["SlaveZone"]; for (auto value : allSlaveZones) { @@ -206,9 +211,9 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload) itemsObject.extra.dBInstanceId.push_back(value.asString()); items_.push_back(itemsObject); } - -} - + +} + std::vector DescribeDBInstanceAttributeResult::getItems()const { return items_; diff --git a/rds/src/model/DescribeDBInstanceByTagsRequest.cc b/rds/src/model/DescribeDBInstanceByTagsRequest.cc index 52ee79016..d19db1a5d 100644 --- a/rds/src/model/DescribeDBInstanceByTagsRequest.cc +++ b/rds/src/model/DescribeDBInstanceByTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceByTagsRequest; - -DescribeDBInstanceByTagsRequest::DescribeDBInstanceByTagsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceByTags") -{} - -DescribeDBInstanceByTagsRequest::~DescribeDBInstanceByTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceByTagsRequest; + +DescribeDBInstanceByTagsRequest::DescribeDBInstanceByTagsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceByTags") +{} + +DescribeDBInstanceByTagsRequest::~DescribeDBInstanceByTagsRequest() +{} + long DescribeDBInstanceByTagsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceByTagsResult.cc b/rds/src/model/DescribeDBInstanceByTagsResult.cc index d5eef0811..07283a47f 100644 --- a/rds/src/model/DescribeDBInstanceByTagsResult.cc +++ b/rds/src/model/DescribeDBInstanceByTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceByTagsResult::DescribeDBInstanceByTagsResult() : - ServiceResult() -{} - -DescribeDBInstanceByTagsResult::DescribeDBInstanceByTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceByTagsResult::~DescribeDBInstanceByTagsResult() -{} - -void DescribeDBInstanceByTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceByTagsResult::DescribeDBInstanceByTagsResult() : + ServiceResult() +{} + +DescribeDBInstanceByTagsResult::DescribeDBInstanceByTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceByTagsResult::~DescribeDBInstanceByTagsResult() +{} + +void DescribeDBInstanceByTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceTag"]; for (auto value : allItems) { @@ -64,9 +67,9 @@ void DescribeDBInstanceByTagsResult::parse(const std::string &payload) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); if(!value["TotalRecordCount"].isNull()) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - -} - + +} + int DescribeDBInstanceByTagsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeDBInstanceHAConfigRequest.cc b/rds/src/model/DescribeDBInstanceHAConfigRequest.cc index 2dd7f403f..743b323d1 100644 --- a/rds/src/model/DescribeDBInstanceHAConfigRequest.cc +++ b/rds/src/model/DescribeDBInstanceHAConfigRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceHAConfigRequest; - -DescribeDBInstanceHAConfigRequest::DescribeDBInstanceHAConfigRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceHAConfig") -{} - -DescribeDBInstanceHAConfigRequest::~DescribeDBInstanceHAConfigRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceHAConfigRequest; + +DescribeDBInstanceHAConfigRequest::DescribeDBInstanceHAConfigRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceHAConfig") +{} + +DescribeDBInstanceHAConfigRequest::~DescribeDBInstanceHAConfigRequest() +{} + long DescribeDBInstanceHAConfigRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceHAConfigResult.cc b/rds/src/model/DescribeDBInstanceHAConfigResult.cc index 94b62e224..fd5a91799 100644 --- a/rds/src/model/DescribeDBInstanceHAConfigResult.cc +++ b/rds/src/model/DescribeDBInstanceHAConfigResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceHAConfigResult::DescribeDBInstanceHAConfigResult() : - ServiceResult() -{} - -DescribeDBInstanceHAConfigResult::DescribeDBInstanceHAConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceHAConfigResult::~DescribeDBInstanceHAConfigResult() -{} - -void DescribeDBInstanceHAConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceHAConfigResult::DescribeDBInstanceHAConfigResult() : + ServiceResult() +{} + +DescribeDBInstanceHAConfigResult::DescribeDBInstanceHAConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceHAConfigResult::~DescribeDBInstanceHAConfigResult() +{} + +void DescribeDBInstanceHAConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allHostInstanceInfos = value["HostInstanceInfos"]["NodeInfo"]; for (auto value : allHostInstanceInfos) { @@ -66,9 +69,9 @@ void DescribeDBInstanceHAConfigResult::parse(const std::string &payload) syncMode_ = value["SyncMode"].asString(); if(!value["HAMode"].isNull()) hAMode_ = value["HAMode"].asString(); - -} - + +} + std::string DescribeDBInstanceHAConfigResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/DescribeDBInstanceIPArrayListRequest.cc b/rds/src/model/DescribeDBInstanceIPArrayListRequest.cc index 8bba88f73..9a5bf7884 100644 --- a/rds/src/model/DescribeDBInstanceIPArrayListRequest.cc +++ b/rds/src/model/DescribeDBInstanceIPArrayListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceIPArrayListRequest; - -DescribeDBInstanceIPArrayListRequest::DescribeDBInstanceIPArrayListRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceIPArrayList") -{} - -DescribeDBInstanceIPArrayListRequest::~DescribeDBInstanceIPArrayListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceIPArrayListRequest; + +DescribeDBInstanceIPArrayListRequest::DescribeDBInstanceIPArrayListRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceIPArrayList") +{} + +DescribeDBInstanceIPArrayListRequest::~DescribeDBInstanceIPArrayListRequest() +{} + long DescribeDBInstanceIPArrayListRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceIPArrayListResult.cc b/rds/src/model/DescribeDBInstanceIPArrayListResult.cc index ac4765cfc..52c983136 100644 --- a/rds/src/model/DescribeDBInstanceIPArrayListResult.cc +++ b/rds/src/model/DescribeDBInstanceIPArrayListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult() : - ServiceResult() -{} - -DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceIPArrayListResult::~DescribeDBInstanceIPArrayListResult() -{} - -void DescribeDBInstanceIPArrayListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult() : + ServiceResult() +{} + +DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceIPArrayListResult::~DescribeDBInstanceIPArrayListResult() +{} + +void DescribeDBInstanceIPArrayListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceIPArray"]; for (auto value : allItems) { @@ -56,9 +59,9 @@ void DescribeDBInstanceIPArrayListResult::parse(const std::string &payload) itemsObject.whitelistNetworkType = value["WhitelistNetworkType"].asString(); items_.push_back(itemsObject); } - -} - + +} + std::vector DescribeDBInstanceIPArrayListResult::getItems()const { return items_; diff --git a/rds/src/model/DescribeDBInstanceIpHostnameRequest.cc b/rds/src/model/DescribeDBInstanceIpHostnameRequest.cc new file mode 100644 index 000000000..a8f5a7357 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceIpHostnameRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceIpHostnameRequest; + +DescribeDBInstanceIpHostnameRequest::DescribeDBInstanceIpHostnameRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceIpHostname") +{} + +DescribeDBInstanceIpHostnameRequest::~DescribeDBInstanceIpHostnameRequest() +{} + +long DescribeDBInstanceIpHostnameRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceIpHostnameRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceIpHostnameRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDBInstanceIpHostnameRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDBInstanceIpHostnameRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceIpHostnameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceIpHostnameRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstanceIpHostnameRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDBInstanceIpHostnameRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceIpHostnameRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceIpHostnameRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceIpHostnameRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceIpHostnameRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceIpHostnameRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceIpHostnameRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceIpHostnameRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceIpHostnameResult.cc b/rds/src/model/DescribeDBInstanceIpHostnameResult.cc new file mode 100644 index 000000000..0b766f94d --- /dev/null +++ b/rds/src/model/DescribeDBInstanceIpHostnameResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceIpHostnameResult::DescribeDBInstanceIpHostnameResult() : + ServiceResult() +{} + +DescribeDBInstanceIpHostnameResult::DescribeDBInstanceIpHostnameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceIpHostnameResult::~DescribeDBInstanceIpHostnameResult() +{} + +void DescribeDBInstanceIpHostnameResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["IpHostnameInfos"].isNull()) + ipHostnameInfos_ = value["IpHostnameInfos"].asString(); + +} + +std::string DescribeDBInstanceIpHostnameResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeDBInstanceIpHostnameResult::getIpHostnameInfos()const +{ + return ipHostnameInfos_; +} + diff --git a/rds/src/model/DescribeDBInstanceMonitorRequest.cc b/rds/src/model/DescribeDBInstanceMonitorRequest.cc index a39b4896a..834d577a2 100644 --- a/rds/src/model/DescribeDBInstanceMonitorRequest.cc +++ b/rds/src/model/DescribeDBInstanceMonitorRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceMonitorRequest; - -DescribeDBInstanceMonitorRequest::DescribeDBInstanceMonitorRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceMonitor") -{} - -DescribeDBInstanceMonitorRequest::~DescribeDBInstanceMonitorRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceMonitorRequest; + +DescribeDBInstanceMonitorRequest::DescribeDBInstanceMonitorRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceMonitor") +{} + +DescribeDBInstanceMonitorRequest::~DescribeDBInstanceMonitorRequest() +{} + long DescribeDBInstanceMonitorRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceMonitorResult.cc b/rds/src/model/DescribeDBInstanceMonitorResult.cc index 8450e1f6e..c4dd333c8 100644 --- a/rds/src/model/DescribeDBInstanceMonitorResult.cc +++ b/rds/src/model/DescribeDBInstanceMonitorResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult() : - ServiceResult() -{} - -DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceMonitorResult::~DescribeDBInstanceMonitorResult() -{} - -void DescribeDBInstanceMonitorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult() : + ServiceResult() +{} + +DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceMonitorResult::~DescribeDBInstanceMonitorResult() +{} + +void DescribeDBInstanceMonitorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Period"].isNull()) period_ = value["Period"].asString(); - -} - + +} + std::string DescribeDBInstanceMonitorResult::getPeriod()const { return period_; diff --git a/rds/src/model/DescribeDBInstanceNetInfoRequest.cc b/rds/src/model/DescribeDBInstanceNetInfoRequest.cc index bf27f5da9..914daa9a4 100644 --- a/rds/src/model/DescribeDBInstanceNetInfoRequest.cc +++ b/rds/src/model/DescribeDBInstanceNetInfoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceNetInfoRequest; - -DescribeDBInstanceNetInfoRequest::DescribeDBInstanceNetInfoRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceNetInfo") -{} - -DescribeDBInstanceNetInfoRequest::~DescribeDBInstanceNetInfoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceNetInfoRequest; + +DescribeDBInstanceNetInfoRequest::DescribeDBInstanceNetInfoRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceNetInfo") +{} + +DescribeDBInstanceNetInfoRequest::~DescribeDBInstanceNetInfoRequest() +{} + long DescribeDBInstanceNetInfoRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceNetInfoResult.cc b/rds/src/model/DescribeDBInstanceNetInfoResult.cc index a8f1d7b7d..75b658592 100644 --- a/rds/src/model/DescribeDBInstanceNetInfoResult.cc +++ b/rds/src/model/DescribeDBInstanceNetInfoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult() : - ServiceResult() -{} - -DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceNetInfoResult::~DescribeDBInstanceNetInfoResult() -{} - -void DescribeDBInstanceNetInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult() : + ServiceResult() +{} + +DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceNetInfoResult::~DescribeDBInstanceNetInfoResult() +{} + +void DescribeDBInstanceNetInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDBInstanceNetInfos = value["DBInstanceNetInfos"]["DBInstanceNetInfo"]; for (auto value : allDBInstanceNetInfos) { @@ -96,9 +99,9 @@ void DescribeDBInstanceNetInfoResult::parse(const std::string &payload) instanceNetworkType_ = value["InstanceNetworkType"].asString(); if(!value["SecurityIPMode"].isNull()) securityIPMode_ = value["SecurityIPMode"].asString(); - -} - + +} + std::vector DescribeDBInstanceNetInfoResult::getDBInstanceNetInfos()const { return dBInstanceNetInfos_; diff --git a/rds/src/model/DescribeDBInstancePerformanceRequest.cc b/rds/src/model/DescribeDBInstancePerformanceRequest.cc index f2bf3ec0f..3c11738b4 100644 --- a/rds/src/model/DescribeDBInstancePerformanceRequest.cc +++ b/rds/src/model/DescribeDBInstancePerformanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancePerformanceRequest; - -DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancePerformance") -{} - -DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancePerformanceRequest; + +DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancePerformance") +{} + +DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest() +{} + long DescribeDBInstancePerformanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstancePerformanceResult.cc b/rds/src/model/DescribeDBInstancePerformanceResult.cc index 727e8a043..655baeaf8 100644 --- a/rds/src/model/DescribeDBInstancePerformanceResult.cc +++ b/rds/src/model/DescribeDBInstancePerformanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult() : - ServiceResult() -{} - -DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult() -{} - -void DescribeDBInstancePerformanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult() : + ServiceResult() +{} + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult() +{} + +void DescribeDBInstancePerformanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allPerformanceKeys = value["PerformanceKeys"]["PerformanceKey"]; for (auto value : allPerformanceKeys) { @@ -70,9 +73,9 @@ void DescribeDBInstancePerformanceResult::parse(const std::string &payload) startTime_ = value["StartTime"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); - -} - + +} + std::vector DescribeDBInstancePerformanceResult::getPerformanceKeys()const { return performanceKeys_; diff --git a/rds/src/model/DescribeDBInstanceProxyConfigurationRequest.cc b/rds/src/model/DescribeDBInstanceProxyConfigurationRequest.cc index 90e19185c..c338a809e 100644 --- a/rds/src/model/DescribeDBInstanceProxyConfigurationRequest.cc +++ b/rds/src/model/DescribeDBInstanceProxyConfigurationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceProxyConfigurationRequest; - -DescribeDBInstanceProxyConfigurationRequest::DescribeDBInstanceProxyConfigurationRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceProxyConfiguration") -{} - -DescribeDBInstanceProxyConfigurationRequest::~DescribeDBInstanceProxyConfigurationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceProxyConfigurationRequest; + +DescribeDBInstanceProxyConfigurationRequest::DescribeDBInstanceProxyConfigurationRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceProxyConfiguration") +{} + +DescribeDBInstanceProxyConfigurationRequest::~DescribeDBInstanceProxyConfigurationRequest() +{} + long DescribeDBInstanceProxyConfigurationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceProxyConfigurationResult.cc b/rds/src/model/DescribeDBInstanceProxyConfigurationResult.cc index 6a21e78b4..4388c4cac 100644 --- a/rds/src/model/DescribeDBInstanceProxyConfigurationResult.cc +++ b/rds/src/model/DescribeDBInstanceProxyConfigurationResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceProxyConfigurationResult::DescribeDBInstanceProxyConfigurationResult() : - ServiceResult() -{} - -DescribeDBInstanceProxyConfigurationResult::DescribeDBInstanceProxyConfigurationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceProxyConfigurationResult::~DescribeDBInstanceProxyConfigurationResult() -{} - -void DescribeDBInstanceProxyConfigurationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceProxyConfigurationResult::DescribeDBInstanceProxyConfigurationResult() : + ServiceResult() +{} + +DescribeDBInstanceProxyConfigurationResult::DescribeDBInstanceProxyConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceProxyConfigurationResult::~DescribeDBInstanceProxyConfigurationResult() +{} + +void DescribeDBInstanceProxyConfigurationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TransparentSwitchConfiguration"].isNull()) transparentSwitchConfiguration_ = value["TransparentSwitchConfiguration"].asString(); if(!value["PersistentConnectionsConfiguration"].isNull()) persistentConnectionsConfiguration_ = value["PersistentConnectionsConfiguration"].asString(); if(!value["AttacksProtectionConfiguration"].isNull()) attacksProtectionConfiguration_ = value["AttacksProtectionConfiguration"].asString(); - -} - + +} + std::string DescribeDBInstanceProxyConfigurationResult::getPersistentConnectionsConfiguration()const { return persistentConnectionsConfiguration_; diff --git a/rds/src/model/DescribeDBInstanceSSLRequest.cc b/rds/src/model/DescribeDBInstanceSSLRequest.cc index 93cf846ba..86ff06e7e 100644 --- a/rds/src/model/DescribeDBInstanceSSLRequest.cc +++ b/rds/src/model/DescribeDBInstanceSSLRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceSSLRequest; - -DescribeDBInstanceSSLRequest::DescribeDBInstanceSSLRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceSSL") -{} - -DescribeDBInstanceSSLRequest::~DescribeDBInstanceSSLRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceSSLRequest; + +DescribeDBInstanceSSLRequest::DescribeDBInstanceSSLRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceSSL") +{} + +DescribeDBInstanceSSLRequest::~DescribeDBInstanceSSLRequest() +{} + long DescribeDBInstanceSSLRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceSSLResult.cc b/rds/src/model/DescribeDBInstanceSSLResult.cc index 649c1eb65..73765edb2 100644 --- a/rds/src/model/DescribeDBInstanceSSLResult.cc +++ b/rds/src/model/DescribeDBInstanceSSLResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult() : - ServiceResult() -{} - -DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceSSLResult::~DescribeDBInstanceSSLResult() -{} - -void DescribeDBInstanceSSLResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult() : + ServiceResult() +{} + +DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceSSLResult::~DescribeDBInstanceSSLResult() +{} + +void DescribeDBInstanceSSLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ConnectionString"].isNull()) connectionString_ = value["ConnectionString"].asString(); if(!value["SSLExpireTime"].isNull()) @@ -48,9 +51,9 @@ void DescribeDBInstanceSSLResult::parse(const std::string &payload) requireUpdate_ = value["RequireUpdate"].asString(); if(!value["RequireUpdateReason"].isNull()) requireUpdateReason_ = value["RequireUpdateReason"].asString(); - -} - + +} + std::string DescribeDBInstanceSSLResult::getSSLExpireTime()const { return sSLExpireTime_; diff --git a/rds/src/model/DescribeDBInstanceTDERequest.cc b/rds/src/model/DescribeDBInstanceTDERequest.cc index d77b9507d..2bcdf9c3b 100644 --- a/rds/src/model/DescribeDBInstanceTDERequest.cc +++ b/rds/src/model/DescribeDBInstanceTDERequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceTDERequest; - -DescribeDBInstanceTDERequest::DescribeDBInstanceTDERequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceTDE") -{} - -DescribeDBInstanceTDERequest::~DescribeDBInstanceTDERequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstanceTDERequest; + +DescribeDBInstanceTDERequest::DescribeDBInstanceTDERequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstanceTDE") +{} + +DescribeDBInstanceTDERequest::~DescribeDBInstanceTDERequest() +{} + long DescribeDBInstanceTDERequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstanceTDEResult.cc b/rds/src/model/DescribeDBInstanceTDEResult.cc index dc1ec309d..0a7c5d7c9 100644 --- a/rds/src/model/DescribeDBInstanceTDEResult.cc +++ b/rds/src/model/DescribeDBInstanceTDEResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstanceTDEResult::DescribeDBInstanceTDEResult() : - ServiceResult() -{} - -DescribeDBInstanceTDEResult::DescribeDBInstanceTDEResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceTDEResult::~DescribeDBInstanceTDEResult() -{} - -void DescribeDBInstanceTDEResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceTDEResult::DescribeDBInstanceTDEResult() : + ServiceResult() +{} + +DescribeDBInstanceTDEResult::DescribeDBInstanceTDEResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceTDEResult::~DescribeDBInstanceTDEResult() +{} + +void DescribeDBInstanceTDEResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDatabases = value["Databases"]["Database"]; for (auto value : allDatabases) { @@ -52,9 +55,9 @@ void DescribeDBInstanceTDEResult::parse(const std::string &payload) } if(!value["TDEStatus"].isNull()) tDEStatus_ = value["TDEStatus"].asString(); - -} - + +} + std::string DescribeDBInstanceTDEResult::getTDEStatus()const { return tDEStatus_; diff --git a/rds/src/model/DescribeDBInstancesAsCsvRequest.cc b/rds/src/model/DescribeDBInstancesAsCsvRequest.cc index 53abfef59..4c7d6bd04 100644 --- a/rds/src/model/DescribeDBInstancesAsCsvRequest.cc +++ b/rds/src/model/DescribeDBInstancesAsCsvRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesAsCsvRequest; - -DescribeDBInstancesAsCsvRequest::DescribeDBInstancesAsCsvRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesAsCsv") -{} - -DescribeDBInstancesAsCsvRequest::~DescribeDBInstancesAsCsvRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesAsCsvRequest; + +DescribeDBInstancesAsCsvRequest::DescribeDBInstancesAsCsvRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesAsCsv") +{} + +DescribeDBInstancesAsCsvRequest::~DescribeDBInstancesAsCsvRequest() +{} + long DescribeDBInstancesAsCsvRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstancesAsCsvResult.cc b/rds/src/model/DescribeDBInstancesAsCsvResult.cc index 4026e9a46..351cb34dc 100644 --- a/rds/src/model/DescribeDBInstancesAsCsvResult.cc +++ b/rds/src/model/DescribeDBInstancesAsCsvResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstancesAsCsvResult::DescribeDBInstancesAsCsvResult() : - ServiceResult() -{} - -DescribeDBInstancesAsCsvResult::DescribeDBInstancesAsCsvResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstancesAsCsvResult::~DescribeDBInstancesAsCsvResult() -{} - -void DescribeDBInstancesAsCsvResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesAsCsvResult::DescribeDBInstancesAsCsvResult() : + ServiceResult() +{} + +DescribeDBInstancesAsCsvResult::DescribeDBInstancesAsCsvResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesAsCsvResult::~DescribeDBInstancesAsCsvResult() +{} + +void DescribeDBInstancesAsCsvResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceAttribute"]; for (auto value : allItems) { @@ -128,9 +131,9 @@ void DescribeDBInstancesAsCsvResult::parse(const std::string &payload) itemsObject.tags = value["Tags"].asString(); items_.push_back(itemsObject); } - -} - + +} + std::vector DescribeDBInstancesAsCsvResult::getItems()const { return items_; diff --git a/rds/src/model/DescribeDBInstancesByExpireTimeRequest.cc b/rds/src/model/DescribeDBInstancesByExpireTimeRequest.cc index abfc5c0f6..be5409183 100644 --- a/rds/src/model/DescribeDBInstancesByExpireTimeRequest.cc +++ b/rds/src/model/DescribeDBInstancesByExpireTimeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesByExpireTimeRequest; - -DescribeDBInstancesByExpireTimeRequest::DescribeDBInstancesByExpireTimeRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesByExpireTime") -{} - -DescribeDBInstancesByExpireTimeRequest::~DescribeDBInstancesByExpireTimeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesByExpireTimeRequest; + +DescribeDBInstancesByExpireTimeRequest::DescribeDBInstancesByExpireTimeRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesByExpireTime") +{} + +DescribeDBInstancesByExpireTimeRequest::~DescribeDBInstancesByExpireTimeRequest() +{} + long DescribeDBInstancesByExpireTimeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDBInstancesByExpireTimeResult.cc b/rds/src/model/DescribeDBInstancesByExpireTimeResult.cc index ca4ca1d2e..0d9c53ecc 100644 --- a/rds/src/model/DescribeDBInstancesByExpireTimeResult.cc +++ b/rds/src/model/DescribeDBInstancesByExpireTimeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstancesByExpireTimeResult::DescribeDBInstancesByExpireTimeResult() : - ServiceResult() -{} - -DescribeDBInstancesByExpireTimeResult::DescribeDBInstancesByExpireTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstancesByExpireTimeResult::~DescribeDBInstancesByExpireTimeResult() -{} - -void DescribeDBInstancesByExpireTimeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesByExpireTimeResult::DescribeDBInstancesByExpireTimeResult() : + ServiceResult() +{} + +DescribeDBInstancesByExpireTimeResult::DescribeDBInstancesByExpireTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesByExpireTimeResult::~DescribeDBInstancesByExpireTimeResult() +{} + +void DescribeDBInstancesByExpireTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstanceExpireTime"]; for (auto value : allItems) { @@ -62,9 +65,9 @@ void DescribeDBInstancesByExpireTimeResult::parse(const std::string &payload) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeDBInstancesByExpireTimeResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeDBInstancesByPerformanceRequest.cc b/rds/src/model/DescribeDBInstancesByPerformanceRequest.cc index 493bf0b05..c49c00033 100644 --- a/rds/src/model/DescribeDBInstancesByPerformanceRequest.cc +++ b/rds/src/model/DescribeDBInstancesByPerformanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesByPerformanceRequest; - -DescribeDBInstancesByPerformanceRequest::DescribeDBInstancesByPerformanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesByPerformance") -{} - -DescribeDBInstancesByPerformanceRequest::~DescribeDBInstancesByPerformanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesByPerformanceRequest; + +DescribeDBInstancesByPerformanceRequest::DescribeDBInstancesByPerformanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesByPerformance") +{} + +DescribeDBInstancesByPerformanceRequest::~DescribeDBInstancesByPerformanceRequest() +{} + std::string DescribeDBInstancesByPerformanceRequest::getTag4value()const { return tag4value_; diff --git a/rds/src/model/DescribeDBInstancesByPerformanceResult.cc b/rds/src/model/DescribeDBInstancesByPerformanceResult.cc index 10e07d391..4697e975d 100644 --- a/rds/src/model/DescribeDBInstancesByPerformanceResult.cc +++ b/rds/src/model/DescribeDBInstancesByPerformanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstancesByPerformanceResult::DescribeDBInstancesByPerformanceResult() : - ServiceResult() -{} - -DescribeDBInstancesByPerformanceResult::DescribeDBInstancesByPerformanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstancesByPerformanceResult::~DescribeDBInstancesByPerformanceResult() -{} - -void DescribeDBInstancesByPerformanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesByPerformanceResult::DescribeDBInstancesByPerformanceResult() : + ServiceResult() +{} + +DescribeDBInstancesByPerformanceResult::DescribeDBInstancesByPerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesByPerformanceResult::~DescribeDBInstancesByPerformanceResult() +{} + +void DescribeDBInstancesByPerformanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstancePerformance"]; for (auto value : allItems) { @@ -64,9 +67,9 @@ void DescribeDBInstancesByPerformanceResult::parse(const std::string &payload) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeDBInstancesByPerformanceResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeDBInstancesRequest.cc b/rds/src/model/DescribeDBInstancesRequest.cc index bb2ce844a..0907ed4bf 100644 --- a/rds/src/model/DescribeDBInstancesRequest.cc +++ b/rds/src/model/DescribeDBInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesRequest; - -DescribeDBInstancesRequest::DescribeDBInstancesRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstances") -{} - -DescribeDBInstancesRequest::~DescribeDBInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDBInstancesRequest; + +DescribeDBInstancesRequest::DescribeDBInstancesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstances") +{} + +DescribeDBInstancesRequest::~DescribeDBInstancesRequest() +{} + std::string DescribeDBInstancesRequest::getConnectionMode()const { return connectionMode_; diff --git a/rds/src/model/DescribeDBInstancesResult.cc b/rds/src/model/DescribeDBInstancesResult.cc index 10c1b6038..fe5e13032 100644 --- a/rds/src/model/DescribeDBInstancesResult.cc +++ b/rds/src/model/DescribeDBInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDBInstancesResult::DescribeDBInstancesResult() : - ServiceResult() -{} - -DescribeDBInstancesResult::DescribeDBInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstancesResult::~DescribeDBInstancesResult() -{} - -void DescribeDBInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesResult::DescribeDBInstancesResult() : + ServiceResult() +{} + +DescribeDBInstancesResult::DescribeDBInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesResult::~DescribeDBInstancesResult() +{} + +void DescribeDBInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DBInstance"]; for (auto value : allItems) { @@ -104,6 +107,8 @@ void DescribeDBInstancesResult::parse(const std::string &payload) itemsObject.replicateId = value["ReplicateId"].asString(); if(!value["ResourceGroupId"].isNull()) itemsObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["AutoUpgradeMinorVersion"].isNull()) + itemsObject.autoUpgradeMinorVersion = value["AutoUpgradeMinorVersion"].asString(); auto allReadOnlyDBInstanceIds = value["ReadOnlyDBInstanceIds"]["ReadOnlyDBInstanceId"]; for (auto value : allReadOnlyDBInstanceIds) { @@ -120,9 +125,9 @@ void DescribeDBInstancesResult::parse(const std::string &payload) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeDBInstancesResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeDTCSecurityIpHostsForSQLServerRequest.cc b/rds/src/model/DescribeDTCSecurityIpHostsForSQLServerRequest.cc new file mode 100644 index 000000000..45b1df6cf --- /dev/null +++ b/rds/src/model/DescribeDTCSecurityIpHostsForSQLServerRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDTCSecurityIpHostsForSQLServerRequest; + +DescribeDTCSecurityIpHostsForSQLServerRequest::DescribeDTCSecurityIpHostsForSQLServerRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDTCSecurityIpHostsForSQLServer") +{} + +DescribeDTCSecurityIpHostsForSQLServerRequest::~DescribeDTCSecurityIpHostsForSQLServerRequest() +{} + +long DescribeDTCSecurityIpHostsForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDTCSecurityIpHostsForSQLServerRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDTCSecurityIpHostsForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDTCSecurityIpHostsForSQLServerRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDTCSecurityIpHostsForSQLServerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDTCSecurityIpHostsForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDTCSecurityIpHostsForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDTCSecurityIpHostsForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDTCSecurityIpHostsForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDTCSecurityIpHostsForSQLServerResult.cc b/rds/src/model/DescribeDTCSecurityIpHostsForSQLServerResult.cc new file mode 100644 index 000000000..b3af8496b --- /dev/null +++ b/rds/src/model/DescribeDTCSecurityIpHostsForSQLServerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDTCSecurityIpHostsForSQLServerResult::DescribeDTCSecurityIpHostsForSQLServerResult() : + ServiceResult() +{} + +DescribeDTCSecurityIpHostsForSQLServerResult::DescribeDTCSecurityIpHostsForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDTCSecurityIpHostsForSQLServerResult::~DescribeDTCSecurityIpHostsForSQLServerResult() +{} + +void DescribeDTCSecurityIpHostsForSQLServerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["WhiteListGroups"]; + for (auto value : allItems) + { + WhiteListGroups itemsObject; + if(!value["SecurityIpHosts"].isNull()) + itemsObject.securityIpHosts = value["SecurityIpHosts"].asString(); + if(!value["WhitelistGroupName"].isNull()) + itemsObject.whitelistGroupName = value["WhitelistGroupName"].asString(); + items_.push_back(itemsObject); + } + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["IpHostPairNum"].isNull()) + ipHostPairNum_ = value["IpHostPairNum"].asString(); + +} + +std::string DescribeDTCSecurityIpHostsForSQLServerResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeDTCSecurityIpHostsForSQLServerResult::getIpHostPairNum()const +{ + return ipHostPairNum_; +} + +std::vector DescribeDTCSecurityIpHostsForSQLServerResult::getItems()const +{ + return items_; +} + diff --git a/rds/src/model/DescribeDatabasesRequest.cc b/rds/src/model/DescribeDatabasesRequest.cc index 37518756c..e3fd9ea3f 100644 --- a/rds/src/model/DescribeDatabasesRequest.cc +++ b/rds/src/model/DescribeDatabasesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDatabasesRequest; - -DescribeDatabasesRequest::DescribeDatabasesRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDatabases") -{} - -DescribeDatabasesRequest::~DescribeDatabasesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDatabasesRequest; + +DescribeDatabasesRequest::DescribeDatabasesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDatabases") +{} + +DescribeDatabasesRequest::~DescribeDatabasesRequest() +{} + long DescribeDatabasesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeDatabasesResult.cc b/rds/src/model/DescribeDatabasesResult.cc index 79a5aff06..bc952aeda 100644 --- a/rds/src/model/DescribeDatabasesResult.cc +++ b/rds/src/model/DescribeDatabasesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDatabasesResult::DescribeDatabasesResult() : - ServiceResult() -{} - -DescribeDatabasesResult::DescribeDatabasesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDatabasesResult::~DescribeDatabasesResult() -{} - -void DescribeDatabasesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDatabasesResult::DescribeDatabasesResult() : + ServiceResult() +{} + +DescribeDatabasesResult::DescribeDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabasesResult::~DescribeDatabasesResult() +{} + +void DescribeDatabasesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDatabases = value["Databases"]["Database"]; for (auto value : allDatabases) { @@ -70,9 +73,9 @@ void DescribeDatabasesResult::parse(const std::string &payload) } databases_.push_back(databasesObject); } - -} - + +} + std::vector DescribeDatabasesResult::getDatabases()const { return databases_; diff --git a/rds/src/model/DescribeDiagnosticReportListRequest.cc b/rds/src/model/DescribeDiagnosticReportListRequest.cc index a34fdbe8f..ab176a353 100644 --- a/rds/src/model/DescribeDiagnosticReportListRequest.cc +++ b/rds/src/model/DescribeDiagnosticReportListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeDiagnosticReportListRequest; - -DescribeDiagnosticReportListRequest::DescribeDiagnosticReportListRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeDiagnosticReportList") -{} - -DescribeDiagnosticReportListRequest::~DescribeDiagnosticReportListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeDiagnosticReportListRequest; + +DescribeDiagnosticReportListRequest::DescribeDiagnosticReportListRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeDiagnosticReportList") +{} + +DescribeDiagnosticReportListRequest::~DescribeDiagnosticReportListRequest() +{} + std::string DescribeDiagnosticReportListRequest::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/DescribeDiagnosticReportListResult.cc b/rds/src/model/DescribeDiagnosticReportListResult.cc index 8a1825498..1fd4bac45 100644 --- a/rds/src/model/DescribeDiagnosticReportListResult.cc +++ b/rds/src/model/DescribeDiagnosticReportListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeDiagnosticReportListResult::DescribeDiagnosticReportListResult() : - ServiceResult() -{} - -DescribeDiagnosticReportListResult::DescribeDiagnosticReportListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDiagnosticReportListResult::~DescribeDiagnosticReportListResult() -{} - -void DescribeDiagnosticReportListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDiagnosticReportListResult::DescribeDiagnosticReportListResult() : + ServiceResult() +{} + +DescribeDiagnosticReportListResult::DescribeDiagnosticReportListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosticReportListResult::~DescribeDiagnosticReportListResult() +{} + +void DescribeDiagnosticReportListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allReportList = value["ReportList"]["Report"]; for (auto value : allReportList) { @@ -56,9 +59,9 @@ void DescribeDiagnosticReportListResult::parse(const std::string &payload) reportListObject.downloadURL = value["DownloadURL"].asString(); reportList_.push_back(reportListObject); } - -} - + +} + std::vector DescribeDiagnosticReportListResult::getReportList()const { return reportList_; diff --git a/rds/src/model/DescribeErrorLogsRequest.cc b/rds/src/model/DescribeErrorLogsRequest.cc index 56d57f867..b9fb63b77 100644 --- a/rds/src/model/DescribeErrorLogsRequest.cc +++ b/rds/src/model/DescribeErrorLogsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeErrorLogsRequest; - -DescribeErrorLogsRequest::DescribeErrorLogsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeErrorLogs") -{} - -DescribeErrorLogsRequest::~DescribeErrorLogsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeErrorLogsRequest; + +DescribeErrorLogsRequest::DescribeErrorLogsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeErrorLogs") +{} + +DescribeErrorLogsRequest::~DescribeErrorLogsRequest() +{} + long DescribeErrorLogsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeErrorLogsResult.cc b/rds/src/model/DescribeErrorLogsResult.cc index 9cb4e6451..d8d44b6c5 100644 --- a/rds/src/model/DescribeErrorLogsResult.cc +++ b/rds/src/model/DescribeErrorLogsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeErrorLogsResult::DescribeErrorLogsResult() : - ServiceResult() -{} - -DescribeErrorLogsResult::DescribeErrorLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeErrorLogsResult::~DescribeErrorLogsResult() -{} - -void DescribeErrorLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeErrorLogsResult::DescribeErrorLogsResult() : + ServiceResult() +{} + +DescribeErrorLogsResult::DescribeErrorLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeErrorLogsResult::~DescribeErrorLogsResult() +{} + +void DescribeErrorLogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ErrorLog"]; for (auto value : allItems) { @@ -56,9 +59,9 @@ void DescribeErrorLogsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeErrorLogsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc b/rds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc index 223d6157e..3a8460223 100644 --- a/rds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc +++ b/rds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeInstanceAutoRenewalAttributeRequest; - -DescribeInstanceAutoRenewalAttributeRequest::DescribeInstanceAutoRenewalAttributeRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeInstanceAutoRenewalAttribute") -{} - -DescribeInstanceAutoRenewalAttributeRequest::~DescribeInstanceAutoRenewalAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeInstanceAutoRenewalAttributeRequest; + +DescribeInstanceAutoRenewalAttributeRequest::DescribeInstanceAutoRenewalAttributeRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeInstanceAutoRenewalAttribute") +{} + +DescribeInstanceAutoRenewalAttributeRequest::~DescribeInstanceAutoRenewalAttributeRequest() +{} + long DescribeInstanceAutoRenewalAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc b/rds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc index 338564c0b..e960cffdb 100644 --- a/rds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc +++ b/rds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult() : - ServiceResult() -{} - -DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceAutoRenewalAttributeResult::~DescribeInstanceAutoRenewalAttributeResult() -{} - -void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAutoRenewalAttributeResult::~DescribeInstanceAutoRenewalAttributeResult() +{} + +void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) { @@ -62,9 +65,9 @@ void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payloa totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeInstanceAutoRenewalAttributeResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeInstanceCrossBackupPolicyRequest.cc b/rds/src/model/DescribeInstanceCrossBackupPolicyRequest.cc new file mode 100644 index 000000000..d080a6bc9 --- /dev/null +++ b/rds/src/model/DescribeInstanceCrossBackupPolicyRequest.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 + +using AlibabaCloud::Rds::Model::DescribeInstanceCrossBackupPolicyRequest; + +DescribeInstanceCrossBackupPolicyRequest::DescribeInstanceCrossBackupPolicyRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeInstanceCrossBackupPolicy") +{} + +DescribeInstanceCrossBackupPolicyRequest::~DescribeInstanceCrossBackupPolicyRequest() +{} + +long DescribeInstanceCrossBackupPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceCrossBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceCrossBackupPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceCrossBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceCrossBackupPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceCrossBackupPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeInstanceCrossBackupPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeInstanceCrossBackupPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeInstanceCrossBackupPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceCrossBackupPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeInstanceCrossBackupPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInstanceCrossBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeInstanceCrossBackupPolicyResult.cc b/rds/src/model/DescribeInstanceCrossBackupPolicyResult.cc new file mode 100644 index 000000000..a7dfcc8e9 --- /dev/null +++ b/rds/src/model/DescribeInstanceCrossBackupPolicyResult.cc @@ -0,0 +1,195 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeInstanceCrossBackupPolicyResult::DescribeInstanceCrossBackupPolicyResult() : + ServiceResult() +{} + +DescribeInstanceCrossBackupPolicyResult::DescribeInstanceCrossBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceCrossBackupPolicyResult::~DescribeInstanceCrossBackupPolicyResult() +{} + +void DescribeInstanceCrossBackupPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["DBInstanceDescription"].isNull()) + dBInstanceDescription_ = value["DBInstanceDescription"].asString(); + if(!value["DBInstanceStatus"].isNull()) + dBInstanceStatus_ = value["DBInstanceStatus"].asString(); + if(!value["DBInstanceStatusDesc"].isNull()) + dBInstanceStatusDesc_ = value["DBInstanceStatusDesc"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + engineVersion_ = value["EngineVersion"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["CrossBackupRegion"].isNull()) + crossBackupRegion_ = value["CrossBackupRegion"].asString(); + if(!value["CrossBackupType"].isNull()) + crossBackupType_ = value["CrossBackupType"].asString(); + if(!value["BackupEnabledTime"].isNull()) + backupEnabledTime_ = value["BackupEnabledTime"].asString(); + if(!value["BackupEnabled"].isNull()) + backupEnabled_ = value["BackupEnabled"].asString(); + if(!value["LogBackupEnabled"].isNull()) + logBackupEnabled_ = value["LogBackupEnabled"].asString(); + if(!value["LogBackupEnabledTime"].isNull()) + logBackupEnabledTime_ = value["LogBackupEnabledTime"].asString(); + if(!value["StorageOwner"].isNull()) + storageOwner_ = value["StorageOwner"].asString(); + if(!value["StorageType"].isNull()) + storageType_ = value["StorageType"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["RetentType"].isNull()) + retentType_ = std::stoi(value["RetentType"].asString()); + if(!value["Retention"].isNull()) + retention_ = std::stoi(value["Retention"].asString()); + if(!value["LockMode"].isNull()) + lockMode_ = value["LockMode"].asString(); + if(!value["RelService"].isNull()) + relService_ = value["RelService"].asString(); + if(!value["RelServiceId"].isNull()) + relServiceId_ = value["RelServiceId"].asString(); + +} + +std::string DescribeInstanceCrossBackupPolicyResult::getLogBackupEnabled()const +{ + return logBackupEnabled_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getEngineVersion()const +{ + return engineVersion_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getBackupEnabledTime()const +{ + return backupEnabledTime_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getStorageType()const +{ + return storageType_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getDBInstanceStatus()const +{ + return dBInstanceStatus_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getLogBackupEnabledTime()const +{ + return logBackupEnabledTime_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getCrossBackupRegion()const +{ + return crossBackupRegion_; +} + +int DescribeInstanceCrossBackupPolicyResult::getRetentType()const +{ + return retentType_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getLockMode()const +{ + return lockMode_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getRelServiceId()const +{ + return relServiceId_; +} + +int DescribeInstanceCrossBackupPolicyResult::getRetention()const +{ + return retention_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getStorageOwner()const +{ + return storageOwner_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getBackupEnabled()const +{ + return backupEnabled_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getCrossBackupType()const +{ + return crossBackupType_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getEndpoint()const +{ + return endpoint_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getDBInstanceStatusDesc()const +{ + return dBInstanceStatusDesc_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getRelService()const +{ + return relService_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +std::string DescribeInstanceCrossBackupPolicyResult::getEngine()const +{ + return engine_; +} + diff --git a/rds/src/model/DescribeInstanceVpcMigrateInfoRequest.cc b/rds/src/model/DescribeInstanceVpcMigrateInfoRequest.cc index 723955f8e..71f03960e 100644 --- a/rds/src/model/DescribeInstanceVpcMigrateInfoRequest.cc +++ b/rds/src/model/DescribeInstanceVpcMigrateInfoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeInstanceVpcMigrateInfoRequest; - -DescribeInstanceVpcMigrateInfoRequest::DescribeInstanceVpcMigrateInfoRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeInstanceVpcMigrateInfo") -{} - -DescribeInstanceVpcMigrateInfoRequest::~DescribeInstanceVpcMigrateInfoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeInstanceVpcMigrateInfoRequest; + +DescribeInstanceVpcMigrateInfoRequest::DescribeInstanceVpcMigrateInfoRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeInstanceVpcMigrateInfo") +{} + +DescribeInstanceVpcMigrateInfoRequest::~DescribeInstanceVpcMigrateInfoRequest() +{} + long DescribeInstanceVpcMigrateInfoRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeInstanceVpcMigrateInfoResult.cc b/rds/src/model/DescribeInstanceVpcMigrateInfoResult.cc index 0eb721a77..efd16beb3 100644 --- a/rds/src/model/DescribeInstanceVpcMigrateInfoResult.cc +++ b/rds/src/model/DescribeInstanceVpcMigrateInfoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeInstanceVpcMigrateInfoResult::DescribeInstanceVpcMigrateInfoResult() : - ServiceResult() -{} - -DescribeInstanceVpcMigrateInfoResult::DescribeInstanceVpcMigrateInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstanceVpcMigrateInfoResult::~DescribeInstanceVpcMigrateInfoResult() -{} - -void DescribeInstanceVpcMigrateInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeInstanceVpcMigrateInfoResult::DescribeInstanceVpcMigrateInfoResult() : + ServiceResult() +{} + +DescribeInstanceVpcMigrateInfoResult::DescribeInstanceVpcMigrateInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceVpcMigrateInfoResult::~DescribeInstanceVpcMigrateInfoResult() +{} + +void DescribeInstanceVpcMigrateInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDBInstanceMigrateInfos = value["DBInstanceMigrateInfos"]["DBInstanceMigrateInfo"]; for (auto value : allDBInstanceMigrateInfos) { @@ -60,9 +63,9 @@ void DescribeInstanceVpcMigrateInfoResult::parse(const std::string &payload) dBInstanceMigrateInfosObject.targetVpcInstanceId = value["TargetVpcInstanceId"].asString(); dBInstanceMigrateInfos_.push_back(dBInstanceMigrateInfosObject); } - -} - + +} + std::vector DescribeInstanceVpcMigrateInfoResult::getDBInstanceMigrateInfos()const { return dBInstanceMigrateInfos_; diff --git a/rds/src/model/DescribeLogBackupFilesRequest.cc b/rds/src/model/DescribeLogBackupFilesRequest.cc index dd54714de..676deb6b2 100644 --- a/rds/src/model/DescribeLogBackupFilesRequest.cc +++ b/rds/src/model/DescribeLogBackupFilesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeLogBackupFilesRequest; - -DescribeLogBackupFilesRequest::DescribeLogBackupFilesRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeLogBackupFiles") -{} - -DescribeLogBackupFilesRequest::~DescribeLogBackupFilesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeLogBackupFilesRequest; + +DescribeLogBackupFilesRequest::DescribeLogBackupFilesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeLogBackupFiles") +{} + +DescribeLogBackupFilesRequest::~DescribeLogBackupFilesRequest() +{} + long DescribeLogBackupFilesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeLogBackupFilesResult.cc b/rds/src/model/DescribeLogBackupFilesResult.cc index 60a2c8d30..7c273c1f6 100644 --- a/rds/src/model/DescribeLogBackupFilesResult.cc +++ b/rds/src/model/DescribeLogBackupFilesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeLogBackupFilesResult::DescribeLogBackupFilesResult() : - ServiceResult() -{} - -DescribeLogBackupFilesResult::DescribeLogBackupFilesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLogBackupFilesResult::~DescribeLogBackupFilesResult() -{} - -void DescribeLogBackupFilesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeLogBackupFilesResult::DescribeLogBackupFilesResult() : + ServiceResult() +{} + +DescribeLogBackupFilesResult::DescribeLogBackupFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLogBackupFilesResult::~DescribeLogBackupFilesResult() +{} + +void DescribeLogBackupFilesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["BinLogFile"]; for (auto value : allItems) { @@ -66,9 +69,9 @@ void DescribeLogBackupFilesResult::parse(const std::string &payload) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); if(!value["TotalFileSize"].isNull()) totalFileSize_ = std::stol(value["TotalFileSize"].asString()); - -} - + +} + int DescribeLogBackupFilesResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeMetaListRequest.cc b/rds/src/model/DescribeMetaListRequest.cc index 357bc145d..a182eb403 100644 --- a/rds/src/model/DescribeMetaListRequest.cc +++ b/rds/src/model/DescribeMetaListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeMetaListRequest; - -DescribeMetaListRequest::DescribeMetaListRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeMetaList") -{} - -DescribeMetaListRequest::~DescribeMetaListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeMetaListRequest; + +DescribeMetaListRequest::DescribeMetaListRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeMetaList") +{} + +DescribeMetaListRequest::~DescribeMetaListRequest() +{} + long DescribeMetaListRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeMetaListResult.cc b/rds/src/model/DescribeMetaListResult.cc index 35b7c89b9..0da7666e0 100644 --- a/rds/src/model/DescribeMetaListResult.cc +++ b/rds/src/model/DescribeMetaListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeMetaListResult::DescribeMetaListResult() : - ServiceResult() -{} - -DescribeMetaListResult::DescribeMetaListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMetaListResult::~DescribeMetaListResult() -{} - -void DescribeMetaListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeMetaListResult::DescribeMetaListResult() : + ServiceResult() +{} + +DescribeMetaListResult::DescribeMetaListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMetaListResult::~DescribeMetaListResult() +{} + +void DescribeMetaListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Meta"]; for (auto value : allItems) { @@ -62,9 +65,9 @@ void DescribeMetaListResult::parse(const std::string &payload) totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); if(!value["TotalPageCount"].isNull()) totalPageCount_ = std::stoi(value["TotalPageCount"].asString()); - -} - + +} + int DescribeMetaListResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeMigrateTasksForSQLServerRequest.cc b/rds/src/model/DescribeMigrateTasksForSQLServerRequest.cc index 2fc5c3878..3457a8c20 100644 --- a/rds/src/model/DescribeMigrateTasksForSQLServerRequest.cc +++ b/rds/src/model/DescribeMigrateTasksForSQLServerRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeMigrateTasksForSQLServerRequest; - -DescribeMigrateTasksForSQLServerRequest::DescribeMigrateTasksForSQLServerRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeMigrateTasksForSQLServer") -{} - -DescribeMigrateTasksForSQLServerRequest::~DescribeMigrateTasksForSQLServerRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeMigrateTasksForSQLServerRequest; + +DescribeMigrateTasksForSQLServerRequest::DescribeMigrateTasksForSQLServerRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeMigrateTasksForSQLServer") +{} + +DescribeMigrateTasksForSQLServerRequest::~DescribeMigrateTasksForSQLServerRequest() +{} + long DescribeMigrateTasksForSQLServerRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeMigrateTasksForSQLServerResult.cc b/rds/src/model/DescribeMigrateTasksForSQLServerResult.cc index fea91382d..2fb28d787 100644 --- a/rds/src/model/DescribeMigrateTasksForSQLServerResult.cc +++ b/rds/src/model/DescribeMigrateTasksForSQLServerResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeMigrateTasksForSQLServerResult::DescribeMigrateTasksForSQLServerResult() : - ServiceResult() -{} - -DescribeMigrateTasksForSQLServerResult::DescribeMigrateTasksForSQLServerResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMigrateTasksForSQLServerResult::~DescribeMigrateTasksForSQLServerResult() -{} - -void DescribeMigrateTasksForSQLServerResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeMigrateTasksForSQLServerResult::DescribeMigrateTasksForSQLServerResult() : + ServiceResult() +{} + +DescribeMigrateTasksForSQLServerResult::DescribeMigrateTasksForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMigrateTasksForSQLServerResult::~DescribeMigrateTasksForSQLServerResult() +{} + +void DescribeMigrateTasksForSQLServerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["MigrateTask"]; for (auto value : allItems) { @@ -76,9 +79,9 @@ void DescribeMigrateTasksForSQLServerResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeMigrateTasksForSQLServerResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeMigrateTasksRequest.cc b/rds/src/model/DescribeMigrateTasksRequest.cc index 89e6b3276..837c1dc36 100644 --- a/rds/src/model/DescribeMigrateTasksRequest.cc +++ b/rds/src/model/DescribeMigrateTasksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeMigrateTasksRequest; - -DescribeMigrateTasksRequest::DescribeMigrateTasksRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeMigrateTasks") -{} - -DescribeMigrateTasksRequest::~DescribeMigrateTasksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeMigrateTasksRequest; + +DescribeMigrateTasksRequest::DescribeMigrateTasksRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeMigrateTasks") +{} + +DescribeMigrateTasksRequest::~DescribeMigrateTasksRequest() +{} + long DescribeMigrateTasksRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeMigrateTasksResult.cc b/rds/src/model/DescribeMigrateTasksResult.cc index c9ad3a0bc..76a25c193 100644 --- a/rds/src/model/DescribeMigrateTasksResult.cc +++ b/rds/src/model/DescribeMigrateTasksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeMigrateTasksResult::DescribeMigrateTasksResult() : - ServiceResult() -{} - -DescribeMigrateTasksResult::DescribeMigrateTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMigrateTasksResult::~DescribeMigrateTasksResult() -{} - -void DescribeMigrateTasksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeMigrateTasksResult::DescribeMigrateTasksResult() : + ServiceResult() +{} + +DescribeMigrateTasksResult::DescribeMigrateTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMigrateTasksResult::~DescribeMigrateTasksResult() +{} + +void DescribeMigrateTasksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["MigrateTask"]; for (auto value : allItems) { @@ -70,9 +73,9 @@ void DescribeMigrateTasksResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeMigrateTasksResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeModifyParameterLogRequest.cc b/rds/src/model/DescribeModifyParameterLogRequest.cc index 68ac29288..3ac2cc1b6 100644 --- a/rds/src/model/DescribeModifyParameterLogRequest.cc +++ b/rds/src/model/DescribeModifyParameterLogRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeModifyParameterLogRequest; - -DescribeModifyParameterLogRequest::DescribeModifyParameterLogRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeModifyParameterLog") -{} - -DescribeModifyParameterLogRequest::~DescribeModifyParameterLogRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeModifyParameterLogRequest; + +DescribeModifyParameterLogRequest::DescribeModifyParameterLogRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeModifyParameterLog") +{} + +DescribeModifyParameterLogRequest::~DescribeModifyParameterLogRequest() +{} + long DescribeModifyParameterLogRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeModifyParameterLogResult.cc b/rds/src/model/DescribeModifyParameterLogResult.cc index cb9c963a1..9a991f2b1 100644 --- a/rds/src/model/DescribeModifyParameterLogResult.cc +++ b/rds/src/model/DescribeModifyParameterLogResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeModifyParameterLogResult::DescribeModifyParameterLogResult() : - ServiceResult() -{} - -DescribeModifyParameterLogResult::DescribeModifyParameterLogResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeModifyParameterLogResult::~DescribeModifyParameterLogResult() -{} - -void DescribeModifyParameterLogResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeModifyParameterLogResult::DescribeModifyParameterLogResult() : + ServiceResult() +{} + +DescribeModifyParameterLogResult::DescribeModifyParameterLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeModifyParameterLogResult::~DescribeModifyParameterLogResult() +{} + +void DescribeModifyParameterLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ParameterChangeLog"]; for (auto value : allItems) { @@ -68,9 +71,9 @@ void DescribeModifyParameterLogResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeModifyParameterLogResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeOssDownloadsForSQLServerRequest.cc b/rds/src/model/DescribeOssDownloadsForSQLServerRequest.cc index a8d4fc71e..58305ee78 100644 --- a/rds/src/model/DescribeOssDownloadsForSQLServerRequest.cc +++ b/rds/src/model/DescribeOssDownloadsForSQLServerRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeOssDownloadsForSQLServerRequest; - -DescribeOssDownloadsForSQLServerRequest::DescribeOssDownloadsForSQLServerRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeOssDownloadsForSQLServer") -{} - -DescribeOssDownloadsForSQLServerRequest::~DescribeOssDownloadsForSQLServerRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeOssDownloadsForSQLServerRequest; + +DescribeOssDownloadsForSQLServerRequest::DescribeOssDownloadsForSQLServerRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeOssDownloadsForSQLServer") +{} + +DescribeOssDownloadsForSQLServerRequest::~DescribeOssDownloadsForSQLServerRequest() +{} + long DescribeOssDownloadsForSQLServerRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeOssDownloadsForSQLServerResult.cc b/rds/src/model/DescribeOssDownloadsForSQLServerResult.cc index 78af7397b..12cb4adbf 100644 --- a/rds/src/model/DescribeOssDownloadsForSQLServerResult.cc +++ b/rds/src/model/DescribeOssDownloadsForSQLServerResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeOssDownloadsForSQLServerResult::DescribeOssDownloadsForSQLServerResult() : - ServiceResult() -{} - -DescribeOssDownloadsForSQLServerResult::DescribeOssDownloadsForSQLServerResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeOssDownloadsForSQLServerResult::~DescribeOssDownloadsForSQLServerResult() -{} - -void DescribeOssDownloadsForSQLServerResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOssDownloadsForSQLServerResult::DescribeOssDownloadsForSQLServerResult() : + ServiceResult() +{} + +DescribeOssDownloadsForSQLServerResult::DescribeOssDownloadsForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssDownloadsForSQLServerResult::~DescribeOssDownloadsForSQLServerResult() +{} + +void DescribeOssDownloadsForSQLServerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["OssDownload"]; for (auto value : allItems) { @@ -66,9 +69,9 @@ void DescribeOssDownloadsForSQLServerResult::parse(const std::string &payload) dBInstanceName_ = value["DBInstanceName"].asString(); if(!value["MigrateIaskId"].isNull()) migrateIaskId_ = value["MigrateIaskId"].asString(); - -} - + +} + std::vector DescribeOssDownloadsForSQLServerResult::getItems()const { return items_; diff --git a/rds/src/model/DescribeOssDownloadsRequest.cc b/rds/src/model/DescribeOssDownloadsRequest.cc index 8498b0898..d7e482fc6 100644 --- a/rds/src/model/DescribeOssDownloadsRequest.cc +++ b/rds/src/model/DescribeOssDownloadsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeOssDownloadsRequest; - -DescribeOssDownloadsRequest::DescribeOssDownloadsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeOssDownloads") -{} - -DescribeOssDownloadsRequest::~DescribeOssDownloadsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeOssDownloadsRequest; + +DescribeOssDownloadsRequest::DescribeOssDownloadsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeOssDownloads") +{} + +DescribeOssDownloadsRequest::~DescribeOssDownloadsRequest() +{} + long DescribeOssDownloadsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeOssDownloadsResult.cc b/rds/src/model/DescribeOssDownloadsResult.cc index d83569500..ef9c579a6 100644 --- a/rds/src/model/DescribeOssDownloadsResult.cc +++ b/rds/src/model/DescribeOssDownloadsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeOssDownloadsResult::DescribeOssDownloadsResult() : - ServiceResult() -{} - -DescribeOssDownloadsResult::DescribeOssDownloadsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeOssDownloadsResult::~DescribeOssDownloadsResult() -{} - -void DescribeOssDownloadsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOssDownloadsResult::DescribeOssDownloadsResult() : + ServiceResult() +{} + +DescribeOssDownloadsResult::DescribeOssDownloadsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssDownloadsResult::~DescribeOssDownloadsResult() +{} + +void DescribeOssDownloadsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["OssDownload"]; for (auto value : allItems) { @@ -66,9 +69,9 @@ void DescribeOssDownloadsResult::parse(const std::string &payload) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["MigrateTaskId"].isNull()) migrateTaskId_ = value["MigrateTaskId"].asString(); - -} - + +} + std::string DescribeOssDownloadsResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/DescribeParameterTemplatesRequest.cc b/rds/src/model/DescribeParameterTemplatesRequest.cc index a41e56ab4..58438be43 100644 --- a/rds/src/model/DescribeParameterTemplatesRequest.cc +++ b/rds/src/model/DescribeParameterTemplatesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeParameterTemplatesRequest; - -DescribeParameterTemplatesRequest::DescribeParameterTemplatesRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeParameterTemplates") -{} - -DescribeParameterTemplatesRequest::~DescribeParameterTemplatesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeParameterTemplatesRequest; + +DescribeParameterTemplatesRequest::DescribeParameterTemplatesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeParameterTemplates") +{} + +DescribeParameterTemplatesRequest::~DescribeParameterTemplatesRequest() +{} + long DescribeParameterTemplatesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeParameterTemplatesResult.cc b/rds/src/model/DescribeParameterTemplatesResult.cc index 172d87fec..fecd5a879 100644 --- a/rds/src/model/DescribeParameterTemplatesResult.cc +++ b/rds/src/model/DescribeParameterTemplatesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeParameterTemplatesResult::DescribeParameterTemplatesResult() : - ServiceResult() -{} - -DescribeParameterTemplatesResult::DescribeParameterTemplatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult() -{} - -void DescribeParameterTemplatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeParameterTemplatesResult::DescribeParameterTemplatesResult() : + ServiceResult() +{} + +DescribeParameterTemplatesResult::DescribeParameterTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult() +{} + +void DescribeParameterTemplatesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allParameters = value["Parameters"]["TemplateRecord"]; for (auto value : allParameters) { @@ -64,9 +67,9 @@ void DescribeParameterTemplatesResult::parse(const std::string &payload) engineVersion_ = value["EngineVersion"].asString(); if(!value["ParameterCount"].isNull()) parameterCount_ = value["ParameterCount"].asString(); - -} - + +} + std::string DescribeParameterTemplatesResult::getParameterCount()const { return parameterCount_; diff --git a/rds/src/model/DescribeParametersRequest.cc b/rds/src/model/DescribeParametersRequest.cc index fef602bd1..2318aeff4 100644 --- a/rds/src/model/DescribeParametersRequest.cc +++ b/rds/src/model/DescribeParametersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeParametersRequest; - -DescribeParametersRequest::DescribeParametersRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeParameters") -{} - -DescribeParametersRequest::~DescribeParametersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeParametersRequest; + +DescribeParametersRequest::DescribeParametersRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeParameters") +{} + +DescribeParametersRequest::~DescribeParametersRequest() +{} + long DescribeParametersRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeParametersResult.cc b/rds/src/model/DescribeParametersResult.cc index a4244d999..5289db2e2 100644 --- a/rds/src/model/DescribeParametersResult.cc +++ b/rds/src/model/DescribeParametersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeParametersResult::DescribeParametersResult() : - ServiceResult() -{} - -DescribeParametersResult::DescribeParametersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeParametersResult::~DescribeParametersResult() -{} - -void DescribeParametersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeParametersResult::DescribeParametersResult() : + ServiceResult() +{} + +DescribeParametersResult::DescribeParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeParametersResult::~DescribeParametersResult() +{} + +void DescribeParametersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allConfigParameters = value["ConfigParameters"]["DBInstanceParameter"]; for (auto value : allConfigParameters) { @@ -68,9 +71,9 @@ void DescribeParametersResult::parse(const std::string &payload) engine_ = value["Engine"].asString(); if(!value["EngineVersion"].isNull()) engineVersion_ = value["EngineVersion"].asString(); - -} - + +} + std::vector DescribeParametersResult::getRunningParameters()const { return runningParameters_; diff --git a/rds/src/model/DescribePriceRequest.cc b/rds/src/model/DescribePriceRequest.cc index 313f81a9c..e7c295271 100644 --- a/rds/src/model/DescribePriceRequest.cc +++ b/rds/src/model/DescribePriceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribePriceRequest; - -DescribePriceRequest::DescribePriceRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribePrice") -{} - -DescribePriceRequest::~DescribePriceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribePriceRequest; + +DescribePriceRequest::DescribePriceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribePrice") +{} + +DescribePriceRequest::~DescribePriceRequest() +{} + long DescribePriceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribePriceResult.cc b/rds/src/model/DescribePriceResult.cc index e8dab0198..bc3ee5da2 100644 --- a/rds/src/model/DescribePriceResult.cc +++ b/rds/src/model/DescribePriceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribePriceResult::DescribePriceResult() : - ServiceResult() -{} - -DescribePriceResult::DescribePriceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePriceResult::~DescribePriceResult() -{} - -void DescribePriceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribePriceResult::DescribePriceResult() : + ServiceResult() +{} + +DescribePriceResult::DescribePriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePriceResult::~DescribePriceResult() +{} + +void DescribePriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) { @@ -85,9 +88,9 @@ void DescribePriceResult::parse(const std::string &payload) auto allRuleIds = priceInfoNode["RuleIds"]["RuleId"]; for (auto value : allRuleIds) priceInfo_.ruleIds.push_back(value.asString()); - -} - + +} + std::vector DescribePriceResult::getRules()const { return rules_; diff --git a/rds/src/model/DescribeProxyFunctionSupportRequest.cc b/rds/src/model/DescribeProxyFunctionSupportRequest.cc index bb92e51f2..b3980147b 100644 --- a/rds/src/model/DescribeProxyFunctionSupportRequest.cc +++ b/rds/src/model/DescribeProxyFunctionSupportRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeProxyFunctionSupportRequest; - -DescribeProxyFunctionSupportRequest::DescribeProxyFunctionSupportRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeProxyFunctionSupport") -{} - -DescribeProxyFunctionSupportRequest::~DescribeProxyFunctionSupportRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeProxyFunctionSupportRequest; + +DescribeProxyFunctionSupportRequest::DescribeProxyFunctionSupportRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeProxyFunctionSupport") +{} + +DescribeProxyFunctionSupportRequest::~DescribeProxyFunctionSupportRequest() +{} + long DescribeProxyFunctionSupportRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeProxyFunctionSupportResult.cc b/rds/src/model/DescribeProxyFunctionSupportResult.cc index f8f88b284..1b209cf6f 100644 --- a/rds/src/model/DescribeProxyFunctionSupportResult.cc +++ b/rds/src/model/DescribeProxyFunctionSupportResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeProxyFunctionSupportResult::DescribeProxyFunctionSupportResult() : - ServiceResult() -{} - -DescribeProxyFunctionSupportResult::DescribeProxyFunctionSupportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeProxyFunctionSupportResult::~DescribeProxyFunctionSupportResult() -{} - -void DescribeProxyFunctionSupportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeProxyFunctionSupportResult::DescribeProxyFunctionSupportResult() : + ServiceResult() +{} + +DescribeProxyFunctionSupportResult::DescribeProxyFunctionSupportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProxyFunctionSupportResult::~DescribeProxyFunctionSupportResult() +{} + +void DescribeProxyFunctionSupportResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["IsProxySwitchEnable"].isNull()) isProxySwitchEnable_ = value["IsProxySwitchEnable"].asString() == "true"; if(!value["IsRwsplitEnable"].isNull()) @@ -54,9 +57,9 @@ void DescribeProxyFunctionSupportResult::parse(const std::string &payload) isShortConnectionOptimizeEnable_ = value["IsShortConnectionOptimizeEnable"].asString() == "true"; if(!value["IsAntiBruteFroceEnable"].isNull()) isAntiBruteFroceEnable_ = value["IsAntiBruteFroceEnable"].asString() == "true"; - -} - + +} + bool DescribeProxyFunctionSupportResult::getIsRwsplitSupportReplicationLag()const { return isRwsplitSupportReplicationLag_; diff --git a/rds/src/model/DescribeReadDBInstanceDelayRequest.cc b/rds/src/model/DescribeReadDBInstanceDelayRequest.cc index 47b9b12f3..75fdda064 100644 --- a/rds/src/model/DescribeReadDBInstanceDelayRequest.cc +++ b/rds/src/model/DescribeReadDBInstanceDelayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeReadDBInstanceDelayRequest; - -DescribeReadDBInstanceDelayRequest::DescribeReadDBInstanceDelayRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeReadDBInstanceDelay") -{} - -DescribeReadDBInstanceDelayRequest::~DescribeReadDBInstanceDelayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeReadDBInstanceDelayRequest; + +DescribeReadDBInstanceDelayRequest::DescribeReadDBInstanceDelayRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeReadDBInstanceDelay") +{} + +DescribeReadDBInstanceDelayRequest::~DescribeReadDBInstanceDelayRequest() +{} + long DescribeReadDBInstanceDelayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeReadDBInstanceDelayResult.cc b/rds/src/model/DescribeReadDBInstanceDelayResult.cc index c5b54ea72..6b807ec5f 100644 --- a/rds/src/model/DescribeReadDBInstanceDelayResult.cc +++ b/rds/src/model/DescribeReadDBInstanceDelayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeReadDBInstanceDelayResult::DescribeReadDBInstanceDelayResult() : - ServiceResult() -{} - -DescribeReadDBInstanceDelayResult::DescribeReadDBInstanceDelayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeReadDBInstanceDelayResult::~DescribeReadDBInstanceDelayResult() -{} - -void DescribeReadDBInstanceDelayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeReadDBInstanceDelayResult::DescribeReadDBInstanceDelayResult() : + ServiceResult() +{} + +DescribeReadDBInstanceDelayResult::DescribeReadDBInstanceDelayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReadDBInstanceDelayResult::~DescribeReadDBInstanceDelayResult() +{} + +void DescribeReadDBInstanceDelayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) { @@ -82,9 +85,9 @@ void DescribeReadDBInstanceDelayResult::parse(const std::string &payload) readDBInstanceId_ = value["ReadDBInstanceId"].asString(); if(!value["DelayTime"].isNull()) delayTime_ = std::stoi(value["DelayTime"].asString()); - -} - + +} + std::string DescribeReadDBInstanceDelayResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/DescribeRegionsRequest.cc b/rds/src/model/DescribeRegionsRequest.cc index 294437129..9c709f5a5 100644 --- a/rds/src/model/DescribeRegionsRequest.cc +++ b/rds/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeRegions") -{} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + long DescribeRegionsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeRegionsResult.cc b/rds/src/model/DescribeRegionsResult.cc index e04185a18..fb233537b 100644 --- a/rds/src/model/DescribeRegionsResult.cc +++ b/rds/src/model/DescribeRegionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["RDSRegion"]; for (auto value : allRegions) { @@ -50,9 +53,9 @@ void DescribeRegionsResult::parse(const std::string &payload) regionsObject.zoneId = value["ZoneId"].asString(); regions_.push_back(regionsObject); } - -} - + +} + std::vector DescribeRegionsResult::getRegions()const { return regions_; diff --git a/rds/src/model/DescribeRenewalPriceRequest.cc b/rds/src/model/DescribeRenewalPriceRequest.cc index 2cd117da5..2a0221c51 100644 --- a/rds/src/model/DescribeRenewalPriceRequest.cc +++ b/rds/src/model/DescribeRenewalPriceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeRenewalPriceRequest; - -DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeRenewalPrice") -{} - -DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeRenewalPriceRequest; + +DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeRenewalPrice") +{} + +DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() +{} + long DescribeRenewalPriceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeRenewalPriceResult.cc b/rds/src/model/DescribeRenewalPriceResult.cc index d650b764a..0f2c7c95d 100644 --- a/rds/src/model/DescribeRenewalPriceResult.cc +++ b/rds/src/model/DescribeRenewalPriceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeRenewalPriceResult::DescribeRenewalPriceResult() : - ServiceResult() -{} - -DescribeRenewalPriceResult::DescribeRenewalPriceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRenewalPriceResult::~DescribeRenewalPriceResult() -{} - -void DescribeRenewalPriceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRenewalPriceResult::DescribeRenewalPriceResult() : + ServiceResult() +{} + +DescribeRenewalPriceResult::DescribeRenewalPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRenewalPriceResult::~DescribeRenewalPriceResult() +{} + +void DescribeRenewalPriceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) { @@ -85,9 +88,9 @@ void DescribeRenewalPriceResult::parse(const std::string &payload) auto allRuleIds = priceInfoNode["RuleIds"]["RuleId"]; for (auto value : allRuleIds) priceInfo_.ruleIds.push_back(value.asString()); - -} - + +} + std::vector DescribeRenewalPriceResult::getRules()const { return rules_; diff --git a/rds/src/model/DescribeResourceUsageRequest.cc b/rds/src/model/DescribeResourceUsageRequest.cc index b1fcbb466..178fc972b 100644 --- a/rds/src/model/DescribeResourceUsageRequest.cc +++ b/rds/src/model/DescribeResourceUsageRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeResourceUsageRequest; - -DescribeResourceUsageRequest::DescribeResourceUsageRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeResourceUsage") -{} - -DescribeResourceUsageRequest::~DescribeResourceUsageRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeResourceUsageRequest; + +DescribeResourceUsageRequest::DescribeResourceUsageRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeResourceUsage") +{} + +DescribeResourceUsageRequest::~DescribeResourceUsageRequest() +{} + long DescribeResourceUsageRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeResourceUsageResult.cc b/rds/src/model/DescribeResourceUsageResult.cc index 17faa2273..c9acb0bc1 100644 --- a/rds/src/model/DescribeResourceUsageResult.cc +++ b/rds/src/model/DescribeResourceUsageResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeResourceUsageResult::DescribeResourceUsageResult() : - ServiceResult() -{} - -DescribeResourceUsageResult::DescribeResourceUsageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeResourceUsageResult::~DescribeResourceUsageResult() -{} - -void DescribeResourceUsageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeResourceUsageResult::DescribeResourceUsageResult() : + ServiceResult() +{} + +DescribeResourceUsageResult::DescribeResourceUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourceUsageResult::~DescribeResourceUsageResult() +{} + +void DescribeResourceUsageResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["Engine"].isNull()) @@ -60,9 +63,9 @@ void DescribeResourceUsageResult::parse(const std::string &payload) sQLSize_ = std::stol(value["SQLSize"].asString()); if(!value["ColdBackupSize"].isNull()) coldBackupSize_ = std::stol(value["ColdBackupSize"].asString()); - -} - + +} + long DescribeResourceUsageResult::getLogSize()const { return logSize_; diff --git a/rds/src/model/DescribeSQLLogFilesRequest.cc b/rds/src/model/DescribeSQLLogFilesRequest.cc index 25fda302d..1205b2935 100644 --- a/rds/src/model/DescribeSQLLogFilesRequest.cc +++ b/rds/src/model/DescribeSQLLogFilesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogFilesRequest; - -DescribeSQLLogFilesRequest::DescribeSQLLogFilesRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogFiles") -{} - -DescribeSQLLogFilesRequest::~DescribeSQLLogFilesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogFilesRequest; + +DescribeSQLLogFilesRequest::DescribeSQLLogFilesRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogFiles") +{} + +DescribeSQLLogFilesRequest::~DescribeSQLLogFilesRequest() +{} + long DescribeSQLLogFilesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeSQLLogFilesResult.cc b/rds/src/model/DescribeSQLLogFilesResult.cc index 8fa6e6f8a..7fd5fa4d9 100644 --- a/rds/src/model/DescribeSQLLogFilesResult.cc +++ b/rds/src/model/DescribeSQLLogFilesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSQLLogFilesResult::DescribeSQLLogFilesResult() : - ServiceResult() -{} - -DescribeSQLLogFilesResult::DescribeSQLLogFilesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogFilesResult::~DescribeSQLLogFilesResult() -{} - -void DescribeSQLLogFilesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogFilesResult::DescribeSQLLogFilesResult() : + ServiceResult() +{} + +DescribeSQLLogFilesResult::DescribeSQLLogFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogFilesResult::~DescribeSQLLogFilesResult() +{} + +void DescribeSQLLogFilesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["LogFile"]; for (auto value : allItems) { @@ -64,9 +67,9 @@ void DescribeSQLLogFilesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeSQLLogFilesResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeSQLLogRecordsRequest.cc b/rds/src/model/DescribeSQLLogRecordsRequest.cc index 45c52e9c0..77560ccd2 100644 --- a/rds/src/model/DescribeSQLLogRecordsRequest.cc +++ b/rds/src/model/DescribeSQLLogRecordsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogRecordsRequest; - -DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogRecords") -{} - -DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogRecordsRequest; + +DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogRecords") +{} + +DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest() +{} + long DescribeSQLLogRecordsRequest::getSQLId()const { return sQLId_; diff --git a/rds/src/model/DescribeSQLLogRecordsResult.cc b/rds/src/model/DescribeSQLLogRecordsResult.cc index 5ae06b743..2dfc51850 100644 --- a/rds/src/model/DescribeSQLLogRecordsResult.cc +++ b/rds/src/model/DescribeSQLLogRecordsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult() : - ServiceResult() -{} - -DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult() -{} - -void DescribeSQLLogRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult() : + ServiceResult() +{} + +DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult() +{} + +void DescribeSQLLogRecordsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["SQLRecord"]; for (auto value : allItems) { @@ -68,9 +71,9 @@ void DescribeSQLLogRecordsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + long DescribeSQLLogRecordsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeSQLLogReportListRequest.cc b/rds/src/model/DescribeSQLLogReportListRequest.cc index 182d1c1c2..70a7009ad 100644 --- a/rds/src/model/DescribeSQLLogReportListRequest.cc +++ b/rds/src/model/DescribeSQLLogReportListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogReportListRequest; - -DescribeSQLLogReportListRequest::DescribeSQLLogReportListRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogReportList") -{} - -DescribeSQLLogReportListRequest::~DescribeSQLLogReportListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogReportListRequest; + +DescribeSQLLogReportListRequest::DescribeSQLLogReportListRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogReportList") +{} + +DescribeSQLLogReportListRequest::~DescribeSQLLogReportListRequest() +{} + long DescribeSQLLogReportListRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeSQLLogReportListResult.cc b/rds/src/model/DescribeSQLLogReportListResult.cc index 02bdf2b7e..768050ff7 100644 --- a/rds/src/model/DescribeSQLLogReportListResult.cc +++ b/rds/src/model/DescribeSQLLogReportListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSQLLogReportListResult::DescribeSQLLogReportListResult() : - ServiceResult() -{} - -DescribeSQLLogReportListResult::DescribeSQLLogReportListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogReportListResult::~DescribeSQLLogReportListResult() -{} - -void DescribeSQLLogReportListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogReportListResult::DescribeSQLLogReportListResult() : + ServiceResult() +{} + +DescribeSQLLogReportListResult::DescribeSQLLogReportListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogReportListResult::~DescribeSQLLogReportListResult() +{} + +void DescribeSQLLogReportListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) { @@ -76,9 +79,9 @@ void DescribeSQLLogReportListResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeSQLLogReportListResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeSQLLogReportsRequest.cc b/rds/src/model/DescribeSQLLogReportsRequest.cc index ad15f2b0e..5d76e9106 100644 --- a/rds/src/model/DescribeSQLLogReportsRequest.cc +++ b/rds/src/model/DescribeSQLLogReportsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogReportsRequest; - -DescribeSQLLogReportsRequest::DescribeSQLLogReportsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogReports") -{} - -DescribeSQLLogReportsRequest::~DescribeSQLLogReportsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLLogReportsRequest; + +DescribeSQLLogReportsRequest::DescribeSQLLogReportsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSQLLogReports") +{} + +DescribeSQLLogReportsRequest::~DescribeSQLLogReportsRequest() +{} + long DescribeSQLLogReportsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeSQLLogReportsResult.cc b/rds/src/model/DescribeSQLLogReportsResult.cc index eaa2ae15f..042de40b6 100644 --- a/rds/src/model/DescribeSQLLogReportsResult.cc +++ b/rds/src/model/DescribeSQLLogReportsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSQLLogReportsResult::DescribeSQLLogReportsResult() : - ServiceResult() -{} - -DescribeSQLLogReportsResult::DescribeSQLLogReportsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogReportsResult::~DescribeSQLLogReportsResult() -{} - -void DescribeSQLLogReportsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogReportsResult::DescribeSQLLogReportsResult() : + ServiceResult() +{} + +DescribeSQLLogReportsResult::DescribeSQLLogReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogReportsResult::~DescribeSQLLogReportsResult() +{} + +void DescribeSQLLogReportsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) { @@ -76,9 +79,9 @@ void DescribeSQLLogReportsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeSQLLogReportsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeSQLReportsRequest.cc b/rds/src/model/DescribeSQLReportsRequest.cc index e63a185a8..8f9516bea 100644 --- a/rds/src/model/DescribeSQLReportsRequest.cc +++ b/rds/src/model/DescribeSQLReportsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLReportsRequest; - -DescribeSQLReportsRequest::DescribeSQLReportsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSQLReports") -{} - -DescribeSQLReportsRequest::~DescribeSQLReportsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSQLReportsRequest; + +DescribeSQLReportsRequest::DescribeSQLReportsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSQLReports") +{} + +DescribeSQLReportsRequest::~DescribeSQLReportsRequest() +{} + long DescribeSQLReportsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeSQLReportsResult.cc b/rds/src/model/DescribeSQLReportsResult.cc index d2a96a705..1cd4ccb9f 100644 --- a/rds/src/model/DescribeSQLReportsResult.cc +++ b/rds/src/model/DescribeSQLReportsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSQLReportsResult::DescribeSQLReportsResult() : - ServiceResult() -{} - -DescribeSQLReportsResult::DescribeSQLReportsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLReportsResult::~DescribeSQLReportsResult() -{} - -void DescribeSQLReportsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLReportsResult::DescribeSQLReportsResult() : + ServiceResult() +{} + +DescribeSQLReportsResult::DescribeSQLReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLReportsResult::~DescribeSQLReportsResult() +{} + +void DescribeSQLReportsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) { @@ -76,9 +79,9 @@ void DescribeSQLReportsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeSQLReportsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeSecurityGroupConfigurationRequest.cc b/rds/src/model/DescribeSecurityGroupConfigurationRequest.cc index 321d6fd3a..4faaea6b9 100644 --- a/rds/src/model/DescribeSecurityGroupConfigurationRequest.cc +++ b/rds/src/model/DescribeSecurityGroupConfigurationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSecurityGroupConfigurationRequest; - -DescribeSecurityGroupConfigurationRequest::DescribeSecurityGroupConfigurationRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSecurityGroupConfiguration") -{} - -DescribeSecurityGroupConfigurationRequest::~DescribeSecurityGroupConfigurationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSecurityGroupConfigurationRequest; + +DescribeSecurityGroupConfigurationRequest::DescribeSecurityGroupConfigurationRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSecurityGroupConfiguration") +{} + +DescribeSecurityGroupConfigurationRequest::~DescribeSecurityGroupConfigurationRequest() +{} + long DescribeSecurityGroupConfigurationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeSecurityGroupConfigurationResult.cc b/rds/src/model/DescribeSecurityGroupConfigurationResult.cc index d2a49f8cf..c340ee12a 100644 --- a/rds/src/model/DescribeSecurityGroupConfigurationResult.cc +++ b/rds/src/model/DescribeSecurityGroupConfigurationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSecurityGroupConfigurationResult::DescribeSecurityGroupConfigurationResult() : - ServiceResult() -{} - -DescribeSecurityGroupConfigurationResult::DescribeSecurityGroupConfigurationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSecurityGroupConfigurationResult::~DescribeSecurityGroupConfigurationResult() -{} - -void DescribeSecurityGroupConfigurationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSecurityGroupConfigurationResult::DescribeSecurityGroupConfigurationResult() : + ServiceResult() +{} + +DescribeSecurityGroupConfigurationResult::DescribeSecurityGroupConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityGroupConfigurationResult::~DescribeSecurityGroupConfigurationResult() +{} + +void DescribeSecurityGroupConfigurationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["EcsSecurityGroupRelation"]; for (auto value : allItems) { @@ -54,9 +57,9 @@ void DescribeSecurityGroupConfigurationResult::parse(const std::string &payload) } if(!value["DBInstanceName"].isNull()) dBInstanceName_ = value["DBInstanceName"].asString(); - -} - + +} + std::vector DescribeSecurityGroupConfigurationResult::getItems()const { return items_; diff --git a/rds/src/model/DescribeSlowLogRecordsRequest.cc b/rds/src/model/DescribeSlowLogRecordsRequest.cc index 12dcb0040..0b27c1dbd 100644 --- a/rds/src/model/DescribeSlowLogRecordsRequest.cc +++ b/rds/src/model/DescribeSlowLogRecordsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSlowLogRecordsRequest; - -DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSlowLogRecords") -{} - -DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSlowLogRecordsRequest; + +DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSlowLogRecords") +{} + +DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() +{} + long DescribeSlowLogRecordsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeSlowLogRecordsResult.cc b/rds/src/model/DescribeSlowLogRecordsResult.cc index 1098c352e..0f1c3fc9d 100644 --- a/rds/src/model/DescribeSlowLogRecordsResult.cc +++ b/rds/src/model/DescribeSlowLogRecordsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult() : - ServiceResult() -{} - -DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() -{} - -void DescribeSlowLogRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult() : + ServiceResult() +{} + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() +{} + +void DescribeSlowLogRecordsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["SQLSlowRecord"]; for (auto value : allItems) { @@ -72,9 +75,9 @@ void DescribeSlowLogRecordsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeSlowLogRecordsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeSlowLogsRequest.cc b/rds/src/model/DescribeSlowLogsRequest.cc index 8c2a91676..f1da57369 100644 --- a/rds/src/model/DescribeSlowLogsRequest.cc +++ b/rds/src/model/DescribeSlowLogsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeSlowLogsRequest; - -DescribeSlowLogsRequest::DescribeSlowLogsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeSlowLogs") -{} - -DescribeSlowLogsRequest::~DescribeSlowLogsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeSlowLogsRequest; + +DescribeSlowLogsRequest::DescribeSlowLogsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeSlowLogs") +{} + +DescribeSlowLogsRequest::~DescribeSlowLogsRequest() +{} + long DescribeSlowLogsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeSlowLogsResult.cc b/rds/src/model/DescribeSlowLogsResult.cc index 79a57a227..c0de7daee 100644 --- a/rds/src/model/DescribeSlowLogsResult.cc +++ b/rds/src/model/DescribeSlowLogsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeSlowLogsResult::DescribeSlowLogsResult() : - ServiceResult() -{} - -DescribeSlowLogsResult::DescribeSlowLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSlowLogsResult::~DescribeSlowLogsResult() -{} - -void DescribeSlowLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSlowLogsResult::DescribeSlowLogsResult() : + ServiceResult() +{} + +DescribeSlowLogsResult::DescribeSlowLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlowLogsResult::~DescribeSlowLogsResult() +{} + +void DescribeSlowLogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["SQLSlowLog"]; for (auto value : allItems) { @@ -102,9 +105,9 @@ void DescribeSlowLogsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeSlowLogsResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeTagsRequest.cc b/rds/src/model/DescribeTagsRequest.cc index f274ab89d..69777d526 100644 --- a/rds/src/model/DescribeTagsRequest.cc +++ b/rds/src/model/DescribeTagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeTagsRequest; - -DescribeTagsRequest::DescribeTagsRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeTags") -{} - -DescribeTagsRequest::~DescribeTagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeTags") +{} + +DescribeTagsRequest::~DescribeTagsRequest() +{} + long DescribeTagsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeTagsResult.cc b/rds/src/model/DescribeTagsResult.cc index 1ea7ad789..7e74bed4a 100644 --- a/rds/src/model/DescribeTagsResult.cc +++ b/rds/src/model/DescribeTagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeTagsResult::DescribeTagsResult() : - ServiceResult() -{} - -DescribeTagsResult::DescribeTagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTagsResult::~DescribeTagsResult() -{} - -void DescribeTagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTagsResult::DescribeTagsResult() : + ServiceResult() +{} + +DescribeTagsResult::DescribeTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagsResult::~DescribeTagsResult() +{} + +void DescribeTagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["TagInfos"]; for (auto value : allItems) { @@ -53,9 +56,9 @@ void DescribeTagsResult::parse(const std::string &payload) itemsObject.dBInstanceIds.push_back(value.asString()); items_.push_back(itemsObject); } - -} - + +} + std::vector DescribeTagsResult::getItems()const { return items_; diff --git a/rds/src/model/DescribeTaskInfoRequest.cc b/rds/src/model/DescribeTaskInfoRequest.cc index 0258220ef..c9caa09c9 100644 --- a/rds/src/model/DescribeTaskInfoRequest.cc +++ b/rds/src/model/DescribeTaskInfoRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeTaskInfoRequest; - -DescribeTaskInfoRequest::DescribeTaskInfoRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeTaskInfo") -{} - -DescribeTaskInfoRequest::~DescribeTaskInfoRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeTaskInfoRequest; + +DescribeTaskInfoRequest::DescribeTaskInfoRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeTaskInfo") +{} + +DescribeTaskInfoRequest::~DescribeTaskInfoRequest() +{} + long DescribeTaskInfoRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeTaskInfoResult.cc b/rds/src/model/DescribeTaskInfoResult.cc index da0043788..1de32ae58 100644 --- a/rds/src/model/DescribeTaskInfoResult.cc +++ b/rds/src/model/DescribeTaskInfoResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeTaskInfoResult::DescribeTaskInfoResult() : - ServiceResult() -{} - -DescribeTaskInfoResult::DescribeTaskInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTaskInfoResult::~DescribeTaskInfoResult() -{} - -void DescribeTaskInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTaskInfoResult::DescribeTaskInfoResult() : + ServiceResult() +{} + +DescribeTaskInfoResult::DescribeTaskInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTaskInfoResult::~DescribeTaskInfoResult() +{} + +void DescribeTaskInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["BeginTime"].isNull()) @@ -64,9 +67,9 @@ void DescribeTaskInfoResult::parse(const std::string &payload) progressInfo_ = value["ProgressInfo"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - -} - + +} + std::string DescribeTaskInfoResult::getExpectedFinishTime()const { return expectedFinishTime_; diff --git a/rds/src/model/DescribeTasksRequest.cc b/rds/src/model/DescribeTasksRequest.cc index dc9442aad..e428d047a 100644 --- a/rds/src/model/DescribeTasksRequest.cc +++ b/rds/src/model/DescribeTasksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeTasksRequest; - -DescribeTasksRequest::DescribeTasksRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeTasks") -{} - -DescribeTasksRequest::~DescribeTasksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeTasksRequest; + +DescribeTasksRequest::DescribeTasksRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeTasks") +{} + +DescribeTasksRequest::~DescribeTasksRequest() +{} + long DescribeTasksRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeTasksResult.cc b/rds/src/model/DescribeTasksResult.cc index bef958aed..cd6a47bb2 100644 --- a/rds/src/model/DescribeTasksResult.cc +++ b/rds/src/model/DescribeTasksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeTasksResult::DescribeTasksResult() : - ServiceResult() -{} - -DescribeTasksResult::DescribeTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTasksResult::~DescribeTasksResult() -{} - -void DescribeTasksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTasksResult::DescribeTasksResult() : + ServiceResult() +{} + +DescribeTasksResult::DescribeTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTasksResult::~DescribeTasksResult() +{} + +void DescribeTasksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["TaskProgressInfo"]; for (auto value : allItems) { @@ -74,9 +77,9 @@ void DescribeTasksResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageRecordCount"].isNull()) pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - -} - + +} + int DescribeTasksResult::getTotalRecordCount()const { return totalRecordCount_; diff --git a/rds/src/model/DescribeTemplatesListRequest.cc b/rds/src/model/DescribeTemplatesListRequest.cc index 37562f00d..87b888f9e 100644 --- a/rds/src/model/DescribeTemplatesListRequest.cc +++ b/rds/src/model/DescribeTemplatesListRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::DescribeTemplatesListRequest; - -DescribeTemplatesListRequest::DescribeTemplatesListRequest() : - RpcServiceRequest("rds", "2014-08-15", "DescribeTemplatesList") -{} - -DescribeTemplatesListRequest::~DescribeTemplatesListRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::DescribeTemplatesListRequest; + +DescribeTemplatesListRequest::DescribeTemplatesListRequest() : + RpcServiceRequest("rds", "2014-08-15", "DescribeTemplatesList") +{} + +DescribeTemplatesListRequest::~DescribeTemplatesListRequest() +{} + long DescribeTemplatesListRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/DescribeTemplatesListResult.cc b/rds/src/model/DescribeTemplatesListResult.cc index b1aa403a6..c2cd9e9e1 100644 --- a/rds/src/model/DescribeTemplatesListResult.cc +++ b/rds/src/model/DescribeTemplatesListResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -DescribeTemplatesListResult::DescribeTemplatesListResult() : - ServiceResult() -{} - -DescribeTemplatesListResult::DescribeTemplatesListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTemplatesListResult::~DescribeTemplatesListResult() -{} - -void DescribeTemplatesListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTemplatesListResult::DescribeTemplatesListResult() : + ServiceResult() +{} + +DescribeTemplatesListResult::DescribeTemplatesListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTemplatesListResult::~DescribeTemplatesListResult() +{} + +void DescribeTemplatesListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["ItemsItem"]; for (auto value : allItems) { @@ -84,9 +87,9 @@ void DescribeTemplatesListResult::parse(const std::string &payload) pageNumbers_ = std::stoi(value["PageNumbers"].asString()); if(!value["ItemsNumbers"].isNull()) itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString()); - -} - + +} + int DescribeTemplatesListResult::getMaxRecordsPerPage()const { return maxRecordsPerPage_; diff --git a/rds/src/model/EvaluateSupportByokShowRequest.cc b/rds/src/model/EvaluateSupportByokShowRequest.cc index bfbc26f7d..1eb10d5a4 100644 --- a/rds/src/model/EvaluateSupportByokShowRequest.cc +++ b/rds/src/model/EvaluateSupportByokShowRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::EvaluateSupportByokShowRequest; - -EvaluateSupportByokShowRequest::EvaluateSupportByokShowRequest() : - RpcServiceRequest("rds", "2014-08-15", "EvaluateSupportByokShow") -{} - -EvaluateSupportByokShowRequest::~EvaluateSupportByokShowRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::EvaluateSupportByokShowRequest; + +EvaluateSupportByokShowRequest::EvaluateSupportByokShowRequest() : + RpcServiceRequest("rds", "2014-08-15", "EvaluateSupportByokShow") +{} + +EvaluateSupportByokShowRequest::~EvaluateSupportByokShowRequest() +{} + long EvaluateSupportByokShowRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/EvaluateSupportByokShowResult.cc b/rds/src/model/EvaluateSupportByokShowResult.cc index cb74aca04..e33cd2ca7 100644 --- a/rds/src/model/EvaluateSupportByokShowResult.cc +++ b/rds/src/model/EvaluateSupportByokShowResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -EvaluateSupportByokShowResult::EvaluateSupportByokShowResult() : - ServiceResult() -{} - -EvaluateSupportByokShowResult::EvaluateSupportByokShowResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EvaluateSupportByokShowResult::~EvaluateSupportByokShowResult() -{} - -void EvaluateSupportByokShowResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +EvaluateSupportByokShowResult::EvaluateSupportByokShowResult() : + ServiceResult() +{} + +EvaluateSupportByokShowResult::EvaluateSupportByokShowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EvaluateSupportByokShowResult::~EvaluateSupportByokShowResult() +{} + +void EvaluateSupportByokShowResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SupportByokShow"].isNull()) supportByokShow_ = std::stoi(value["SupportByokShow"].asString()); if(!value["SupportByokZone"].isNull()) supportByokZone_ = value["SupportByokZone"].asString(); - -} - + +} + std::string EvaluateSupportByokShowResult::getSupportByokZone()const { return supportByokZone_; diff --git a/rds/src/model/GrantAccountPrivilegeRequest.cc b/rds/src/model/GrantAccountPrivilegeRequest.cc index a18d0025c..1b902aeeb 100644 --- a/rds/src/model/GrantAccountPrivilegeRequest.cc +++ b/rds/src/model/GrantAccountPrivilegeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::GrantAccountPrivilegeRequest; - -GrantAccountPrivilegeRequest::GrantAccountPrivilegeRequest() : - RpcServiceRequest("rds", "2014-08-15", "GrantAccountPrivilege") -{} - -GrantAccountPrivilegeRequest::~GrantAccountPrivilegeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::GrantAccountPrivilegeRequest; + +GrantAccountPrivilegeRequest::GrantAccountPrivilegeRequest() : + RpcServiceRequest("rds", "2014-08-15", "GrantAccountPrivilege") +{} + +GrantAccountPrivilegeRequest::~GrantAccountPrivilegeRequest() +{} + long GrantAccountPrivilegeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/GrantAccountPrivilegeResult.cc b/rds/src/model/GrantAccountPrivilegeResult.cc index 76b95ae08..62ead1403 100644 --- a/rds/src/model/GrantAccountPrivilegeResult.cc +++ b/rds/src/model/GrantAccountPrivilegeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -GrantAccountPrivilegeResult::GrantAccountPrivilegeResult() : - ServiceResult() -{} - -GrantAccountPrivilegeResult::GrantAccountPrivilegeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GrantAccountPrivilegeResult::~GrantAccountPrivilegeResult() -{} - -void GrantAccountPrivilegeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +GrantAccountPrivilegeResult::GrantAccountPrivilegeResult() : + ServiceResult() +{} + +GrantAccountPrivilegeResult::GrantAccountPrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantAccountPrivilegeResult::~GrantAccountPrivilegeResult() +{} + +void GrantAccountPrivilegeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/GrantOperatorPermissionRequest.cc b/rds/src/model/GrantOperatorPermissionRequest.cc index 732d10021..2c0016eb9 100644 --- a/rds/src/model/GrantOperatorPermissionRequest.cc +++ b/rds/src/model/GrantOperatorPermissionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::GrantOperatorPermissionRequest; - -GrantOperatorPermissionRequest::GrantOperatorPermissionRequest() : - RpcServiceRequest("rds", "2014-08-15", "GrantOperatorPermission") -{} - -GrantOperatorPermissionRequest::~GrantOperatorPermissionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::GrantOperatorPermissionRequest; + +GrantOperatorPermissionRequest::GrantOperatorPermissionRequest() : + RpcServiceRequest("rds", "2014-08-15", "GrantOperatorPermission") +{} + +GrantOperatorPermissionRequest::~GrantOperatorPermissionRequest() +{} + std::string GrantOperatorPermissionRequest::getPrivileges()const { return privileges_; diff --git a/rds/src/model/GrantOperatorPermissionResult.cc b/rds/src/model/GrantOperatorPermissionResult.cc index e14a7dc39..4976f2d51 100644 --- a/rds/src/model/GrantOperatorPermissionResult.cc +++ b/rds/src/model/GrantOperatorPermissionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -GrantOperatorPermissionResult::GrantOperatorPermissionResult() : - ServiceResult() -{} - -GrantOperatorPermissionResult::GrantOperatorPermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GrantOperatorPermissionResult::~GrantOperatorPermissionResult() -{} - -void GrantOperatorPermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +GrantOperatorPermissionResult::GrantOperatorPermissionResult() : + ServiceResult() +{} + +GrantOperatorPermissionResult::GrantOperatorPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantOperatorPermissionResult::~GrantOperatorPermissionResult() +{} + +void GrantOperatorPermissionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ImportDataForSQLServerRequest.cc b/rds/src/model/ImportDataForSQLServerRequest.cc index 1f3377b52..6538cf322 100644 --- a/rds/src/model/ImportDataForSQLServerRequest.cc +++ b/rds/src/model/ImportDataForSQLServerRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ImportDataForSQLServerRequest; - -ImportDataForSQLServerRequest::ImportDataForSQLServerRequest() : - RpcServiceRequest("rds", "2014-08-15", "ImportDataForSQLServer") -{} - -ImportDataForSQLServerRequest::~ImportDataForSQLServerRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ImportDataForSQLServerRequest; + +ImportDataForSQLServerRequest::ImportDataForSQLServerRequest() : + RpcServiceRequest("rds", "2014-08-15", "ImportDataForSQLServer") +{} + +ImportDataForSQLServerRequest::~ImportDataForSQLServerRequest() +{} + long ImportDataForSQLServerRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ImportDataForSQLServerResult.cc b/rds/src/model/ImportDataForSQLServerResult.cc index 9fcc7e639..ba24ad17e 100644 --- a/rds/src/model/ImportDataForSQLServerResult.cc +++ b/rds/src/model/ImportDataForSQLServerResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ImportDataForSQLServerResult::ImportDataForSQLServerResult() : - ServiceResult() -{} - -ImportDataForSQLServerResult::ImportDataForSQLServerResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportDataForSQLServerResult::~ImportDataForSQLServerResult() -{} - -void ImportDataForSQLServerResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDataForSQLServerResult::ImportDataForSQLServerResult() : + ServiceResult() +{} + +ImportDataForSQLServerResult::ImportDataForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportDataForSQLServerResult::~ImportDataForSQLServerResult() +{} + +void ImportDataForSQLServerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ImportID"].isNull()) importID_ = std::stoi(value["ImportID"].asString()); - -} - + +} + int ImportDataForSQLServerResult::getImportID()const { return importID_; diff --git a/rds/src/model/ImportDatabaseBetweenInstancesRequest.cc b/rds/src/model/ImportDatabaseBetweenInstancesRequest.cc index 2e12dccaf..48bea2137 100644 --- a/rds/src/model/ImportDatabaseBetweenInstancesRequest.cc +++ b/rds/src/model/ImportDatabaseBetweenInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ImportDatabaseBetweenInstancesRequest; - -ImportDatabaseBetweenInstancesRequest::ImportDatabaseBetweenInstancesRequest() : - RpcServiceRequest("rds", "2014-08-15", "ImportDatabaseBetweenInstances") -{} - -ImportDatabaseBetweenInstancesRequest::~ImportDatabaseBetweenInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ImportDatabaseBetweenInstancesRequest; + +ImportDatabaseBetweenInstancesRequest::ImportDatabaseBetweenInstancesRequest() : + RpcServiceRequest("rds", "2014-08-15", "ImportDatabaseBetweenInstances") +{} + +ImportDatabaseBetweenInstancesRequest::~ImportDatabaseBetweenInstancesRequest() +{} + long ImportDatabaseBetweenInstancesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ImportDatabaseBetweenInstancesResult.cc b/rds/src/model/ImportDatabaseBetweenInstancesResult.cc index 487047fa7..1545e6398 100644 --- a/rds/src/model/ImportDatabaseBetweenInstancesResult.cc +++ b/rds/src/model/ImportDatabaseBetweenInstancesResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ImportDatabaseBetweenInstancesResult::ImportDatabaseBetweenInstancesResult() : - ServiceResult() -{} - -ImportDatabaseBetweenInstancesResult::ImportDatabaseBetweenInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportDatabaseBetweenInstancesResult::~ImportDatabaseBetweenInstancesResult() -{} - -void ImportDatabaseBetweenInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDatabaseBetweenInstancesResult::ImportDatabaseBetweenInstancesResult() : + ServiceResult() +{} + +ImportDatabaseBetweenInstancesResult::ImportDatabaseBetweenInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportDatabaseBetweenInstancesResult::~ImportDatabaseBetweenInstancesResult() +{} + +void ImportDatabaseBetweenInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ImportId"].isNull()) importId_ = value["ImportId"].asString(); - -} - + +} + std::string ImportDatabaseBetweenInstancesResult::getImportId()const { return importId_; diff --git a/rds/src/model/MigrateSecurityIPModeRequest.cc b/rds/src/model/MigrateSecurityIPModeRequest.cc index a54c9f3dd..c3ee7899a 100644 --- a/rds/src/model/MigrateSecurityIPModeRequest.cc +++ b/rds/src/model/MigrateSecurityIPModeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::MigrateSecurityIPModeRequest; - -MigrateSecurityIPModeRequest::MigrateSecurityIPModeRequest() : - RpcServiceRequest("rds", "2014-08-15", "MigrateSecurityIPMode") -{} - -MigrateSecurityIPModeRequest::~MigrateSecurityIPModeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::MigrateSecurityIPModeRequest; + +MigrateSecurityIPModeRequest::MigrateSecurityIPModeRequest() : + RpcServiceRequest("rds", "2014-08-15", "MigrateSecurityIPMode") +{} + +MigrateSecurityIPModeRequest::~MigrateSecurityIPModeRequest() +{} + long MigrateSecurityIPModeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/MigrateSecurityIPModeResult.cc b/rds/src/model/MigrateSecurityIPModeResult.cc index 42eee7d26..383ff8117 100644 --- a/rds/src/model/MigrateSecurityIPModeResult.cc +++ b/rds/src/model/MigrateSecurityIPModeResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -MigrateSecurityIPModeResult::MigrateSecurityIPModeResult() : - ServiceResult() -{} - -MigrateSecurityIPModeResult::MigrateSecurityIPModeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -MigrateSecurityIPModeResult::~MigrateSecurityIPModeResult() -{} - -void MigrateSecurityIPModeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +MigrateSecurityIPModeResult::MigrateSecurityIPModeResult() : + ServiceResult() +{} + +MigrateSecurityIPModeResult::MigrateSecurityIPModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MigrateSecurityIPModeResult::~MigrateSecurityIPModeResult() +{} + +void MigrateSecurityIPModeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["SecurityIPMode"].isNull()) securityIPMode_ = value["SecurityIPMode"].asString(); - -} - + +} + std::string MigrateSecurityIPModeResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/MigrateToOtherRegionRequest.cc b/rds/src/model/MigrateToOtherRegionRequest.cc index b4d96101c..18aa9f943 100644 --- a/rds/src/model/MigrateToOtherRegionRequest.cc +++ b/rds/src/model/MigrateToOtherRegionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::MigrateToOtherRegionRequest; - -MigrateToOtherRegionRequest::MigrateToOtherRegionRequest() : - RpcServiceRequest("rds", "2014-08-15", "MigrateToOtherRegion") -{} - -MigrateToOtherRegionRequest::~MigrateToOtherRegionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::MigrateToOtherRegionRequest; + +MigrateToOtherRegionRequest::MigrateToOtherRegionRequest() : + RpcServiceRequest("rds", "2014-08-15", "MigrateToOtherRegion") +{} + +MigrateToOtherRegionRequest::~MigrateToOtherRegionRequest() +{} + long MigrateToOtherRegionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/MigrateToOtherRegionResult.cc b/rds/src/model/MigrateToOtherRegionResult.cc index 8c613c1cd..2e01675ca 100644 --- a/rds/src/model/MigrateToOtherRegionResult.cc +++ b/rds/src/model/MigrateToOtherRegionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -MigrateToOtherRegionResult::MigrateToOtherRegionResult() : - ServiceResult() -{} - -MigrateToOtherRegionResult::MigrateToOtherRegionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -MigrateToOtherRegionResult::~MigrateToOtherRegionResult() -{} - -void MigrateToOtherRegionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +MigrateToOtherRegionResult::MigrateToOtherRegionResult() : + ServiceResult() +{} + +MigrateToOtherRegionResult::MigrateToOtherRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MigrateToOtherRegionResult::~MigrateToOtherRegionResult() +{} + +void MigrateToOtherRegionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/MigrateToOtherZoneRequest.cc b/rds/src/model/MigrateToOtherZoneRequest.cc index 5a5c0a456..c389f1268 100644 --- a/rds/src/model/MigrateToOtherZoneRequest.cc +++ b/rds/src/model/MigrateToOtherZoneRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::MigrateToOtherZoneRequest; - -MigrateToOtherZoneRequest::MigrateToOtherZoneRequest() : - RpcServiceRequest("rds", "2014-08-15", "MigrateToOtherZone") -{} - -MigrateToOtherZoneRequest::~MigrateToOtherZoneRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::MigrateToOtherZoneRequest; + +MigrateToOtherZoneRequest::MigrateToOtherZoneRequest() : + RpcServiceRequest("rds", "2014-08-15", "MigrateToOtherZone") +{} + +MigrateToOtherZoneRequest::~MigrateToOtherZoneRequest() +{} + long MigrateToOtherZoneRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/MigrateToOtherZoneResult.cc b/rds/src/model/MigrateToOtherZoneResult.cc index 2eb14969d..19710b9eb 100644 --- a/rds/src/model/MigrateToOtherZoneResult.cc +++ b/rds/src/model/MigrateToOtherZoneResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -MigrateToOtherZoneResult::MigrateToOtherZoneResult() : - ServiceResult() -{} - -MigrateToOtherZoneResult::MigrateToOtherZoneResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -MigrateToOtherZoneResult::~MigrateToOtherZoneResult() -{} - -void MigrateToOtherZoneResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +MigrateToOtherZoneResult::MigrateToOtherZoneResult() : + ServiceResult() +{} + +MigrateToOtherZoneResult::MigrateToOtherZoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MigrateToOtherZoneResult::~MigrateToOtherZoneResult() +{} + +void MigrateToOtherZoneResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyAccountDescriptionRequest.cc b/rds/src/model/ModifyAccountDescriptionRequest.cc index ee65fd491..54a36d8df 100644 --- a/rds/src/model/ModifyAccountDescriptionRequest.cc +++ b/rds/src/model/ModifyAccountDescriptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyAccountDescriptionRequest; - -ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyAccountDescription") -{} - -ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyAccountDescriptionRequest; + +ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyAccountDescription") +{} + +ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() +{} + long ModifyAccountDescriptionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyAccountDescriptionResult.cc b/rds/src/model/ModifyAccountDescriptionResult.cc index 5ff77ff21..df9c696d7 100644 --- a/rds/src/model/ModifyAccountDescriptionResult.cc +++ b/rds/src/model/ModifyAccountDescriptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() : - ServiceResult() -{} - -ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() -{} - -void ModifyAccountDescriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() : + ServiceResult() +{} + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() +{} + +void ModifyAccountDescriptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyBackupPolicyRequest.cc b/rds/src/model/ModifyBackupPolicyRequest.cc index 51812e1c9..68a693949 100644 --- a/rds/src/model/ModifyBackupPolicyRequest.cc +++ b/rds/src/model/ModifyBackupPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyBackupPolicyRequest; - -ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyBackupPolicy") -{} - -ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyBackupPolicyRequest; + +ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyBackupPolicy") +{} + +ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() +{} + std::string ModifyBackupPolicyRequest::getPreferredBackupPeriod()const { return preferredBackupPeriod_; diff --git a/rds/src/model/ModifyBackupPolicyResult.cc b/rds/src/model/ModifyBackupPolicyResult.cc index d697c7a9a..13b0d6a9b 100644 --- a/rds/src/model/ModifyBackupPolicyResult.cc +++ b/rds/src/model/ModifyBackupPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyBackupPolicyResult::ModifyBackupPolicyResult() : - ServiceResult() -{} - -ModifyBackupPolicyResult::ModifyBackupPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyBackupPolicyResult::~ModifyBackupPolicyResult() -{} - -void ModifyBackupPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyBackupPolicyResult::ModifyBackupPolicyResult() : + ServiceResult() +{} + +ModifyBackupPolicyResult::ModifyBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupPolicyResult::~ModifyBackupPolicyResult() +{} + +void ModifyBackupPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceID"].isNull()) dBInstanceID_ = value["DBInstanceID"].asString(); if(!value["EnableBackupLog"].isNull()) @@ -52,9 +55,9 @@ void ModifyBackupPolicyResult::parse(const std::string &payload) highSpaceUsageProtection_ = value["HighSpaceUsageProtection"].asString(); if(!value["CompressType"].isNull()) compressType_ = value["CompressType"].asString(); - -} - + +} + std::string ModifyBackupPolicyResult::getDBInstanceID()const { return dBInstanceID_; diff --git a/rds/src/model/ModifyCollationTimeZoneRequest.cc b/rds/src/model/ModifyCollationTimeZoneRequest.cc index 54605f777..ffc67e744 100644 --- a/rds/src/model/ModifyCollationTimeZoneRequest.cc +++ b/rds/src/model/ModifyCollationTimeZoneRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyCollationTimeZoneRequest; - -ModifyCollationTimeZoneRequest::ModifyCollationTimeZoneRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyCollationTimeZone") -{} - -ModifyCollationTimeZoneRequest::~ModifyCollationTimeZoneRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyCollationTimeZoneRequest; + +ModifyCollationTimeZoneRequest::ModifyCollationTimeZoneRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyCollationTimeZone") +{} + +ModifyCollationTimeZoneRequest::~ModifyCollationTimeZoneRequest() +{} + long ModifyCollationTimeZoneRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyCollationTimeZoneResult.cc b/rds/src/model/ModifyCollationTimeZoneResult.cc index 7b5df80c8..12a0bfbf0 100644 --- a/rds/src/model/ModifyCollationTimeZoneResult.cc +++ b/rds/src/model/ModifyCollationTimeZoneResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyCollationTimeZoneResult::ModifyCollationTimeZoneResult() : - ServiceResult() -{} - -ModifyCollationTimeZoneResult::ModifyCollationTimeZoneResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyCollationTimeZoneResult::~ModifyCollationTimeZoneResult() -{} - -void ModifyCollationTimeZoneResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyCollationTimeZoneResult::ModifyCollationTimeZoneResult() : + ServiceResult() +{} + +ModifyCollationTimeZoneResult::ModifyCollationTimeZoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCollationTimeZoneResult::~ModifyCollationTimeZoneResult() +{} + +void ModifyCollationTimeZoneResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["TaskId"].isNull()) @@ -48,9 +51,9 @@ void ModifyCollationTimeZoneResult::parse(const std::string &payload) timezone_ = value["Timezone"].asString(); if(!value["Collation"].isNull()) collation_ = value["Collation"].asString(); - -} - + +} + std::string ModifyCollationTimeZoneResult::getTimezone()const { return timezone_; diff --git a/rds/src/model/ModifyDBDescriptionRequest.cc b/rds/src/model/ModifyDBDescriptionRequest.cc index 3c632e283..8175ad270 100644 --- a/rds/src/model/ModifyDBDescriptionRequest.cc +++ b/rds/src/model/ModifyDBDescriptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBDescriptionRequest; - -ModifyDBDescriptionRequest::ModifyDBDescriptionRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBDescription") -{} - -ModifyDBDescriptionRequest::~ModifyDBDescriptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBDescriptionRequest; + +ModifyDBDescriptionRequest::ModifyDBDescriptionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBDescription") +{} + +ModifyDBDescriptionRequest::~ModifyDBDescriptionRequest() +{} + long ModifyDBDescriptionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBDescriptionResult.cc b/rds/src/model/ModifyDBDescriptionResult.cc index c0cd252ba..874473bdf 100644 --- a/rds/src/model/ModifyDBDescriptionResult.cc +++ b/rds/src/model/ModifyDBDescriptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBDescriptionResult::ModifyDBDescriptionResult() : - ServiceResult() -{} - -ModifyDBDescriptionResult::ModifyDBDescriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBDescriptionResult::~ModifyDBDescriptionResult() -{} - -void ModifyDBDescriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBDescriptionResult::ModifyDBDescriptionResult() : + ServiceResult() +{} + +ModifyDBDescriptionResult::ModifyDBDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBDescriptionResult::~ModifyDBDescriptionResult() +{} + +void ModifyDBDescriptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.cc b/rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.cc new file mode 100644 index 000000000..1feae3115 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionRequest.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 + +using AlibabaCloud::Rds::Model::ModifyDBInstanceAutoUpgradeMinorVersionRequest; + +ModifyDBInstanceAutoUpgradeMinorVersionRequest::ModifyDBInstanceAutoUpgradeMinorVersionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceAutoUpgradeMinorVersion") +{} + +ModifyDBInstanceAutoUpgradeMinorVersionRequest::~ModifyDBInstanceAutoUpgradeMinorVersionRequest() +{} + +std::string ModifyDBInstanceAutoUpgradeMinorVersionRequest::getAutoUpgradeMinorVersion()const +{ + return autoUpgradeMinorVersion_; +} + +void ModifyDBInstanceAutoUpgradeMinorVersionRequest::setAutoUpgradeMinorVersion(const std::string& autoUpgradeMinorVersion) +{ + autoUpgradeMinorVersion_ = autoUpgradeMinorVersion; + setCoreParameter("AutoUpgradeMinorVersion", autoUpgradeMinorVersion); +} + +long ModifyDBInstanceAutoUpgradeMinorVersionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceAutoUpgradeMinorVersionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceAutoUpgradeMinorVersionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceAutoUpgradeMinorVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceAutoUpgradeMinorVersionRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyDBInstanceAutoUpgradeMinorVersionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ModifyDBInstanceAutoUpgradeMinorVersionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceAutoUpgradeMinorVersionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceAutoUpgradeMinorVersionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceAutoUpgradeMinorVersionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceAutoUpgradeMinorVersionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceAutoUpgradeMinorVersionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.cc b/rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.cc new file mode 100644 index 000000000..c9572cb5c --- /dev/null +++ b/rds/src/model/ModifyDBInstanceAutoUpgradeMinorVersionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceAutoUpgradeMinorVersionResult::ModifyDBInstanceAutoUpgradeMinorVersionResult() : + ServiceResult() +{} + +ModifyDBInstanceAutoUpgradeMinorVersionResult::ModifyDBInstanceAutoUpgradeMinorVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceAutoUpgradeMinorVersionResult::~ModifyDBInstanceAutoUpgradeMinorVersionResult() +{} + +void ModifyDBInstanceAutoUpgradeMinorVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceConnectionModeRequest.cc b/rds/src/model/ModifyDBInstanceConnectionModeRequest.cc index ccf55cd04..264026568 100644 --- a/rds/src/model/ModifyDBInstanceConnectionModeRequest.cc +++ b/rds/src/model/ModifyDBInstanceConnectionModeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceConnectionModeRequest; - -ModifyDBInstanceConnectionModeRequest::ModifyDBInstanceConnectionModeRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceConnectionMode") -{} - -ModifyDBInstanceConnectionModeRequest::~ModifyDBInstanceConnectionModeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceConnectionModeRequest; + +ModifyDBInstanceConnectionModeRequest::ModifyDBInstanceConnectionModeRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceConnectionMode") +{} + +ModifyDBInstanceConnectionModeRequest::~ModifyDBInstanceConnectionModeRequest() +{} + std::string ModifyDBInstanceConnectionModeRequest::getConnectionMode()const { return connectionMode_; diff --git a/rds/src/model/ModifyDBInstanceConnectionModeResult.cc b/rds/src/model/ModifyDBInstanceConnectionModeResult.cc index b2806df44..e36c9a66e 100644 --- a/rds/src/model/ModifyDBInstanceConnectionModeResult.cc +++ b/rds/src/model/ModifyDBInstanceConnectionModeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult() : - ServiceResult() -{} - -ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceConnectionModeResult::~ModifyDBInstanceConnectionModeResult() -{} - -void ModifyDBInstanceConnectionModeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult() : + ServiceResult() +{} + +ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceConnectionModeResult::~ModifyDBInstanceConnectionModeResult() +{} + +void ModifyDBInstanceConnectionModeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceConnectionStringRequest.cc b/rds/src/model/ModifyDBInstanceConnectionStringRequest.cc index c2df15f63..ab44cbf87 100644 --- a/rds/src/model/ModifyDBInstanceConnectionStringRequest.cc +++ b/rds/src/model/ModifyDBInstanceConnectionStringRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceConnectionStringRequest; - -ModifyDBInstanceConnectionStringRequest::ModifyDBInstanceConnectionStringRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceConnectionString") -{} - -ModifyDBInstanceConnectionStringRequest::~ModifyDBInstanceConnectionStringRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceConnectionStringRequest; + +ModifyDBInstanceConnectionStringRequest::ModifyDBInstanceConnectionStringRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceConnectionString") +{} + +ModifyDBInstanceConnectionStringRequest::~ModifyDBInstanceConnectionStringRequest() +{} + long ModifyDBInstanceConnectionStringRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceConnectionStringResult.cc b/rds/src/model/ModifyDBInstanceConnectionStringResult.cc index 1cbc20133..76cca7660 100644 --- a/rds/src/model/ModifyDBInstanceConnectionStringResult.cc +++ b/rds/src/model/ModifyDBInstanceConnectionStringResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult() : - ServiceResult() -{} - -ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult() -{} - -void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult() : + ServiceResult() +{} + +ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult() +{} + +void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceDescriptionRequest.cc b/rds/src/model/ModifyDBInstanceDescriptionRequest.cc index 74d1ab768..af7312df4 100644 --- a/rds/src/model/ModifyDBInstanceDescriptionRequest.cc +++ b/rds/src/model/ModifyDBInstanceDescriptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceDescriptionRequest; - -ModifyDBInstanceDescriptionRequest::ModifyDBInstanceDescriptionRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceDescription") -{} - -ModifyDBInstanceDescriptionRequest::~ModifyDBInstanceDescriptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceDescriptionRequest; + +ModifyDBInstanceDescriptionRequest::ModifyDBInstanceDescriptionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceDescription") +{} + +ModifyDBInstanceDescriptionRequest::~ModifyDBInstanceDescriptionRequest() +{} + long ModifyDBInstanceDescriptionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceDescriptionResult.cc b/rds/src/model/ModifyDBInstanceDescriptionResult.cc index f31fcb308..fcb7013ec 100644 --- a/rds/src/model/ModifyDBInstanceDescriptionResult.cc +++ b/rds/src/model/ModifyDBInstanceDescriptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult() : - ServiceResult() -{} - -ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceDescriptionResult::~ModifyDBInstanceDescriptionResult() -{} - -void ModifyDBInstanceDescriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult() : + ServiceResult() +{} + +ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceDescriptionResult::~ModifyDBInstanceDescriptionResult() +{} + +void ModifyDBInstanceDescriptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceHAConfigRequest.cc b/rds/src/model/ModifyDBInstanceHAConfigRequest.cc index 006661e2e..22a9c9a7d 100644 --- a/rds/src/model/ModifyDBInstanceHAConfigRequest.cc +++ b/rds/src/model/ModifyDBInstanceHAConfigRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceHAConfigRequest; - -ModifyDBInstanceHAConfigRequest::ModifyDBInstanceHAConfigRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceHAConfig") -{} - -ModifyDBInstanceHAConfigRequest::~ModifyDBInstanceHAConfigRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceHAConfigRequest; + +ModifyDBInstanceHAConfigRequest::ModifyDBInstanceHAConfigRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceHAConfig") +{} + +ModifyDBInstanceHAConfigRequest::~ModifyDBInstanceHAConfigRequest() +{} + long ModifyDBInstanceHAConfigRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceHAConfigResult.cc b/rds/src/model/ModifyDBInstanceHAConfigResult.cc index 42bf7be4b..6b24ba578 100644 --- a/rds/src/model/ModifyDBInstanceHAConfigResult.cc +++ b/rds/src/model/ModifyDBInstanceHAConfigResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceHAConfigResult::ModifyDBInstanceHAConfigResult() : - ServiceResult() -{} - -ModifyDBInstanceHAConfigResult::ModifyDBInstanceHAConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceHAConfigResult::~ModifyDBInstanceHAConfigResult() -{} - -void ModifyDBInstanceHAConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceHAConfigResult::ModifyDBInstanceHAConfigResult() : + ServiceResult() +{} + +ModifyDBInstanceHAConfigResult::ModifyDBInstanceHAConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceHAConfigResult::~ModifyDBInstanceHAConfigResult() +{} + +void ModifyDBInstanceHAConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceMaintainTimeRequest.cc b/rds/src/model/ModifyDBInstanceMaintainTimeRequest.cc index e19d2270f..7d2b52e12 100644 --- a/rds/src/model/ModifyDBInstanceMaintainTimeRequest.cc +++ b/rds/src/model/ModifyDBInstanceMaintainTimeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceMaintainTimeRequest; - -ModifyDBInstanceMaintainTimeRequest::ModifyDBInstanceMaintainTimeRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceMaintainTime") -{} - -ModifyDBInstanceMaintainTimeRequest::~ModifyDBInstanceMaintainTimeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceMaintainTimeRequest; + +ModifyDBInstanceMaintainTimeRequest::ModifyDBInstanceMaintainTimeRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceMaintainTime") +{} + +ModifyDBInstanceMaintainTimeRequest::~ModifyDBInstanceMaintainTimeRequest() +{} + std::string ModifyDBInstanceMaintainTimeRequest::getMaintainTime()const { return maintainTime_; diff --git a/rds/src/model/ModifyDBInstanceMaintainTimeResult.cc b/rds/src/model/ModifyDBInstanceMaintainTimeResult.cc index eaae9c561..fc21fd70d 100644 --- a/rds/src/model/ModifyDBInstanceMaintainTimeResult.cc +++ b/rds/src/model/ModifyDBInstanceMaintainTimeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult() : - ServiceResult() -{} - -ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceMaintainTimeResult::~ModifyDBInstanceMaintainTimeResult() -{} - -void ModifyDBInstanceMaintainTimeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult() : + ServiceResult() +{} + +ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceMaintainTimeResult::~ModifyDBInstanceMaintainTimeResult() +{} + +void ModifyDBInstanceMaintainTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceMonitorRequest.cc b/rds/src/model/ModifyDBInstanceMonitorRequest.cc index 1f4c66430..4960850a5 100644 --- a/rds/src/model/ModifyDBInstanceMonitorRequest.cc +++ b/rds/src/model/ModifyDBInstanceMonitorRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceMonitorRequest; - -ModifyDBInstanceMonitorRequest::ModifyDBInstanceMonitorRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceMonitor") -{} - -ModifyDBInstanceMonitorRequest::~ModifyDBInstanceMonitorRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceMonitorRequest; + +ModifyDBInstanceMonitorRequest::ModifyDBInstanceMonitorRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceMonitor") +{} + +ModifyDBInstanceMonitorRequest::~ModifyDBInstanceMonitorRequest() +{} + long ModifyDBInstanceMonitorRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceMonitorResult.cc b/rds/src/model/ModifyDBInstanceMonitorResult.cc index 81ee02e29..3dacc9960 100644 --- a/rds/src/model/ModifyDBInstanceMonitorResult.cc +++ b/rds/src/model/ModifyDBInstanceMonitorResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceMonitorResult::ModifyDBInstanceMonitorResult() : - ServiceResult() -{} - -ModifyDBInstanceMonitorResult::ModifyDBInstanceMonitorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceMonitorResult::~ModifyDBInstanceMonitorResult() -{} - -void ModifyDBInstanceMonitorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceMonitorResult::ModifyDBInstanceMonitorResult() : + ServiceResult() +{} + +ModifyDBInstanceMonitorResult::ModifyDBInstanceMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceMonitorResult::~ModifyDBInstanceMonitorResult() +{} + +void ModifyDBInstanceMonitorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc b/rds/src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc index b71f1e8f4..9b25f9c36 100644 --- a/rds/src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc +++ b/rds/src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceNetworkExpireTimeRequest; - -ModifyDBInstanceNetworkExpireTimeRequest::ModifyDBInstanceNetworkExpireTimeRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceNetworkExpireTime") -{} - -ModifyDBInstanceNetworkExpireTimeRequest::~ModifyDBInstanceNetworkExpireTimeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceNetworkExpireTimeRequest; + +ModifyDBInstanceNetworkExpireTimeRequest::ModifyDBInstanceNetworkExpireTimeRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceNetworkExpireTime") +{} + +ModifyDBInstanceNetworkExpireTimeRequest::~ModifyDBInstanceNetworkExpireTimeRequest() +{} + long ModifyDBInstanceNetworkExpireTimeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceNetworkExpireTimeResult.cc b/rds/src/model/ModifyDBInstanceNetworkExpireTimeResult.cc index 79646ce6f..00b53b68a 100644 --- a/rds/src/model/ModifyDBInstanceNetworkExpireTimeResult.cc +++ b/rds/src/model/ModifyDBInstanceNetworkExpireTimeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceNetworkExpireTimeResult::ModifyDBInstanceNetworkExpireTimeResult() : - ServiceResult() -{} - -ModifyDBInstanceNetworkExpireTimeResult::ModifyDBInstanceNetworkExpireTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceNetworkExpireTimeResult::~ModifyDBInstanceNetworkExpireTimeResult() -{} - -void ModifyDBInstanceNetworkExpireTimeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceNetworkExpireTimeResult::ModifyDBInstanceNetworkExpireTimeResult() : + ServiceResult() +{} + +ModifyDBInstanceNetworkExpireTimeResult::ModifyDBInstanceNetworkExpireTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceNetworkExpireTimeResult::~ModifyDBInstanceNetworkExpireTimeResult() +{} + +void ModifyDBInstanceNetworkExpireTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceNetworkTypeRequest.cc b/rds/src/model/ModifyDBInstanceNetworkTypeRequest.cc index c70b5288c..f615d42e8 100644 --- a/rds/src/model/ModifyDBInstanceNetworkTypeRequest.cc +++ b/rds/src/model/ModifyDBInstanceNetworkTypeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceNetworkTypeRequest; - -ModifyDBInstanceNetworkTypeRequest::ModifyDBInstanceNetworkTypeRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceNetworkType") -{} - -ModifyDBInstanceNetworkTypeRequest::~ModifyDBInstanceNetworkTypeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceNetworkTypeRequest; + +ModifyDBInstanceNetworkTypeRequest::ModifyDBInstanceNetworkTypeRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceNetworkType") +{} + +ModifyDBInstanceNetworkTypeRequest::~ModifyDBInstanceNetworkTypeRequest() +{} + long ModifyDBInstanceNetworkTypeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceNetworkTypeResult.cc b/rds/src/model/ModifyDBInstanceNetworkTypeResult.cc index 70801b8c6..6e0c09133 100644 --- a/rds/src/model/ModifyDBInstanceNetworkTypeResult.cc +++ b/rds/src/model/ModifyDBInstanceNetworkTypeResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult() : - ServiceResult() -{} - -ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult() -{} - -void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult() : + ServiceResult() +{} + +ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult() +{} + +void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string ModifyDBInstanceNetworkTypeResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/ModifyDBInstancePayTypeRequest.cc b/rds/src/model/ModifyDBInstancePayTypeRequest.cc new file mode 100644 index 000000000..7438a7701 --- /dev/null +++ b/rds/src/model/ModifyDBInstancePayTypeRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rds::Model::ModifyDBInstancePayTypeRequest; + +ModifyDBInstancePayTypeRequest::ModifyDBInstancePayTypeRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstancePayType") +{} + +ModifyDBInstancePayTypeRequest::~ModifyDBInstancePayTypeRequest() +{} + +long ModifyDBInstancePayTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstancePayTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstancePayTypeRequest::getPeriod()const +{ + return period_; +} + +void ModifyDBInstancePayTypeRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string ModifyDBInstancePayTypeRequest::getAgentId()const +{ + return agentId_; +} + +void ModifyDBInstancePayTypeRequest::setAgentId(const std::string& agentId) +{ + agentId_ = agentId; + setCoreParameter("AgentId", agentId); +} + +std::string ModifyDBInstancePayTypeRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyDBInstancePayTypeRequest::setAutoPay(const std::string& autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay); +} + +std::string ModifyDBInstancePayTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstancePayTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstancePayTypeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyDBInstancePayTypeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ModifyDBInstancePayTypeRequest::getResource()const +{ + return resource_; +} + +void ModifyDBInstancePayTypeRequest::setResource(const std::string& resource) +{ + resource_ = resource; + setCoreParameter("Resource", resource); +} + +std::string ModifyDBInstancePayTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstancePayTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ModifyDBInstancePayTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstancePayTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyDBInstancePayTypeRequest::getUsedTime()const +{ + return usedTime_; +} + +void ModifyDBInstancePayTypeRequest::setUsedTime(int usedTime) +{ + usedTime_ = usedTime; + setCoreParameter("UsedTime", std::to_string(usedTime)); +} + +std::string ModifyDBInstancePayTypeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstancePayTypeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyDBInstancePayTypeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstancePayTypeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstancePayTypeRequest::getPayType()const +{ + return payType_; +} + +void ModifyDBInstancePayTypeRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setCoreParameter("PayType", payType); +} + +std::string ModifyDBInstancePayTypeRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void ModifyDBInstancePayTypeRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setCoreParameter("BusinessInfo", businessInfo); +} + diff --git a/rds/src/model/ModifyDBInstancePayTypeResult.cc b/rds/src/model/ModifyDBInstancePayTypeResult.cc new file mode 100644 index 000000000..99ecd0d4a --- /dev/null +++ b/rds/src/model/ModifyDBInstancePayTypeResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstancePayTypeResult::ModifyDBInstancePayTypeResult() : + ServiceResult() +{} + +ModifyDBInstancePayTypeResult::ModifyDBInstancePayTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstancePayTypeResult::~ModifyDBInstancePayTypeResult() +{} + +void ModifyDBInstancePayTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + +} + +std::string ModifyDBInstancePayTypeResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +long ModifyDBInstancePayTypeResult::getOrderId()const +{ + return orderId_; +} + diff --git a/rds/src/model/ModifyDBInstanceProxyConfigurationRequest.cc b/rds/src/model/ModifyDBInstanceProxyConfigurationRequest.cc index ac5ccde37..ae6d2fdd3 100644 --- a/rds/src/model/ModifyDBInstanceProxyConfigurationRequest.cc +++ b/rds/src/model/ModifyDBInstanceProxyConfigurationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceProxyConfigurationRequest; - -ModifyDBInstanceProxyConfigurationRequest::ModifyDBInstanceProxyConfigurationRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceProxyConfiguration") -{} - -ModifyDBInstanceProxyConfigurationRequest::~ModifyDBInstanceProxyConfigurationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceProxyConfigurationRequest; + +ModifyDBInstanceProxyConfigurationRequest::ModifyDBInstanceProxyConfigurationRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceProxyConfiguration") +{} + +ModifyDBInstanceProxyConfigurationRequest::~ModifyDBInstanceProxyConfigurationRequest() +{} + long ModifyDBInstanceProxyConfigurationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceProxyConfigurationResult.cc b/rds/src/model/ModifyDBInstanceProxyConfigurationResult.cc index f7f72facb..93c00b95e 100644 --- a/rds/src/model/ModifyDBInstanceProxyConfigurationResult.cc +++ b/rds/src/model/ModifyDBInstanceProxyConfigurationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceProxyConfigurationResult::ModifyDBInstanceProxyConfigurationResult() : - ServiceResult() -{} - -ModifyDBInstanceProxyConfigurationResult::ModifyDBInstanceProxyConfigurationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceProxyConfigurationResult::~ModifyDBInstanceProxyConfigurationResult() -{} - -void ModifyDBInstanceProxyConfigurationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceProxyConfigurationResult::ModifyDBInstanceProxyConfigurationResult() : + ServiceResult() +{} + +ModifyDBInstanceProxyConfigurationResult::ModifyDBInstanceProxyConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceProxyConfigurationResult::~ModifyDBInstanceProxyConfigurationResult() +{} + +void ModifyDBInstanceProxyConfigurationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceSSLRequest.cc b/rds/src/model/ModifyDBInstanceSSLRequest.cc index 68629d966..81c3f6e7f 100644 --- a/rds/src/model/ModifyDBInstanceSSLRequest.cc +++ b/rds/src/model/ModifyDBInstanceSSLRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceSSLRequest; - -ModifyDBInstanceSSLRequest::ModifyDBInstanceSSLRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceSSL") -{} - -ModifyDBInstanceSSLRequest::~ModifyDBInstanceSSLRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceSSLRequest; + +ModifyDBInstanceSSLRequest::ModifyDBInstanceSSLRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceSSL") +{} + +ModifyDBInstanceSSLRequest::~ModifyDBInstanceSSLRequest() +{} + long ModifyDBInstanceSSLRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceSSLResult.cc b/rds/src/model/ModifyDBInstanceSSLResult.cc index a563857b3..b39608619 100644 --- a/rds/src/model/ModifyDBInstanceSSLResult.cc +++ b/rds/src/model/ModifyDBInstanceSSLResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceSSLResult::ModifyDBInstanceSSLResult() : - ServiceResult() -{} - -ModifyDBInstanceSSLResult::ModifyDBInstanceSSLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceSSLResult::~ModifyDBInstanceSSLResult() -{} - -void ModifyDBInstanceSSLResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceSSLResult::ModifyDBInstanceSSLResult() : + ServiceResult() +{} + +ModifyDBInstanceSSLResult::ModifyDBInstanceSSLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceSSLResult::~ModifyDBInstanceSSLResult() +{} + +void ModifyDBInstanceSSLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceSpecRequest.cc b/rds/src/model/ModifyDBInstanceSpecRequest.cc index 6f7269be8..aacd108df 100644 --- a/rds/src/model/ModifyDBInstanceSpecRequest.cc +++ b/rds/src/model/ModifyDBInstanceSpecRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceSpecRequest; - -ModifyDBInstanceSpecRequest::ModifyDBInstanceSpecRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceSpec") -{} - -ModifyDBInstanceSpecRequest::~ModifyDBInstanceSpecRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceSpecRequest; + +ModifyDBInstanceSpecRequest::ModifyDBInstanceSpecRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceSpec") +{} + +ModifyDBInstanceSpecRequest::~ModifyDBInstanceSpecRequest() +{} + long ModifyDBInstanceSpecRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceSpecResult.cc b/rds/src/model/ModifyDBInstanceSpecResult.cc index 35ffee855..4bb8b1837 100644 --- a/rds/src/model/ModifyDBInstanceSpecResult.cc +++ b/rds/src/model/ModifyDBInstanceSpecResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceSpecResult::ModifyDBInstanceSpecResult() : - ServiceResult() -{} - -ModifyDBInstanceSpecResult::ModifyDBInstanceSpecResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceSpecResult::~ModifyDBInstanceSpecResult() -{} - -void ModifyDBInstanceSpecResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceSpecResult::ModifyDBInstanceSpecResult() : + ServiceResult() +{} + +ModifyDBInstanceSpecResult::ModifyDBInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceSpecResult::~ModifyDBInstanceSpecResult() +{} + +void ModifyDBInstanceSpecResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceTDERequest.cc b/rds/src/model/ModifyDBInstanceTDERequest.cc index a6f45f0f7..577bc6a12 100644 --- a/rds/src/model/ModifyDBInstanceTDERequest.cc +++ b/rds/src/model/ModifyDBInstanceTDERequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceTDERequest; - -ModifyDBInstanceTDERequest::ModifyDBInstanceTDERequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceTDE") -{} - -ModifyDBInstanceTDERequest::~ModifyDBInstanceTDERequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDBInstanceTDERequest; + +ModifyDBInstanceTDERequest::ModifyDBInstanceTDERequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDBInstanceTDE") +{} + +ModifyDBInstanceTDERequest::~ModifyDBInstanceTDERequest() +{} + long ModifyDBInstanceTDERequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyDBInstanceTDEResult.cc b/rds/src/model/ModifyDBInstanceTDEResult.cc index 9a72ae820..85ff01bb4 100644 --- a/rds/src/model/ModifyDBInstanceTDEResult.cc +++ b/rds/src/model/ModifyDBInstanceTDEResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyDBInstanceTDEResult::ModifyDBInstanceTDEResult() : - ServiceResult() -{} - -ModifyDBInstanceTDEResult::ModifyDBInstanceTDEResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBInstanceTDEResult::~ModifyDBInstanceTDEResult() -{} - -void ModifyDBInstanceTDEResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceTDEResult::ModifyDBInstanceTDEResult() : + ServiceResult() +{} + +ModifyDBInstanceTDEResult::ModifyDBInstanceTDEResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceTDEResult::~ModifyDBInstanceTDEResult() +{} + +void ModifyDBInstanceTDEResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDTCSecurityIpHostsForSQLServerRequest.cc b/rds/src/model/ModifyDTCSecurityIpHostsForSQLServerRequest.cc new file mode 100644 index 000000000..1bb0d834e --- /dev/null +++ b/rds/src/model/ModifyDTCSecurityIpHostsForSQLServerRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyDTCSecurityIpHostsForSQLServerRequest; + +ModifyDTCSecurityIpHostsForSQLServerRequest::ModifyDTCSecurityIpHostsForSQLServerRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyDTCSecurityIpHostsForSQLServer") +{} + +ModifyDTCSecurityIpHostsForSQLServerRequest::~ModifyDTCSecurityIpHostsForSQLServerRequest() +{} + +long ModifyDTCSecurityIpHostsForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getWhiteListGroupName()const +{ + return whiteListGroupName_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setWhiteListGroupName(const std::string& whiteListGroupName) +{ + whiteListGroupName_ = whiteListGroupName; + setCoreParameter("WhiteListGroupName", whiteListGroupName); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getSecurityIpHosts()const +{ + return securityIpHosts_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setSecurityIpHosts(const std::string& securityIpHosts) +{ + securityIpHosts_ = securityIpHosts; + setCoreParameter("SecurityIpHosts", securityIpHosts); +} + +long ModifyDTCSecurityIpHostsForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDTCSecurityIpHostsForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDTCSecurityIpHostsForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDTCSecurityIpHostsForSQLServerResult.cc b/rds/src/model/ModifyDTCSecurityIpHostsForSQLServerResult.cc new file mode 100644 index 000000000..464dd9962 --- /dev/null +++ b/rds/src/model/ModifyDTCSecurityIpHostsForSQLServerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDTCSecurityIpHostsForSQLServerResult::ModifyDTCSecurityIpHostsForSQLServerResult() : + ServiceResult() +{} + +ModifyDTCSecurityIpHostsForSQLServerResult::ModifyDTCSecurityIpHostsForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDTCSecurityIpHostsForSQLServerResult::~ModifyDTCSecurityIpHostsForSQLServerResult() +{} + +void ModifyDTCSecurityIpHostsForSQLServerResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["DTCSetResult"].isNull()) + dTCSetResult_ = value["DTCSetResult"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string ModifyDTCSecurityIpHostsForSQLServerResult::getDTCSetResult()const +{ + return dTCSetResult_; +} + +std::string ModifyDTCSecurityIpHostsForSQLServerResult::getTaskId()const +{ + return taskId_; +} + +std::string ModifyDTCSecurityIpHostsForSQLServerResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + diff --git a/rds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc b/rds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc index 70d0c9dfd..a11d3a0d0 100644 --- a/rds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc +++ b/rds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyInstanceAutoRenewalAttributeRequest; - -ModifyInstanceAutoRenewalAttributeRequest::ModifyInstanceAutoRenewalAttributeRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyInstanceAutoRenewalAttribute") -{} - -ModifyInstanceAutoRenewalAttributeRequest::~ModifyInstanceAutoRenewalAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyInstanceAutoRenewalAttributeRequest; + +ModifyInstanceAutoRenewalAttributeRequest::ModifyInstanceAutoRenewalAttributeRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyInstanceAutoRenewalAttribute") +{} + +ModifyInstanceAutoRenewalAttributeRequest::~ModifyInstanceAutoRenewalAttributeRequest() +{} + std::string ModifyInstanceAutoRenewalAttributeRequest::getDuration()const { return duration_; diff --git a/rds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc b/rds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc index cecfefce9..f6309f439 100644 --- a/rds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc +++ b/rds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult() : - ServiceResult() -{} - -ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyInstanceAutoRenewalAttributeResult::~ModifyInstanceAutoRenewalAttributeResult() -{} - -void ModifyInstanceAutoRenewalAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult() : + ServiceResult() +{} + +ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAutoRenewalAttributeResult::~ModifyInstanceAutoRenewalAttributeResult() +{} + +void ModifyInstanceAutoRenewalAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyInstanceCrossBackupPolicyRequest.cc b/rds/src/model/ModifyInstanceCrossBackupPolicyRequest.cc new file mode 100644 index 000000000..d5437af8e --- /dev/null +++ b/rds/src/model/ModifyInstanceCrossBackupPolicyRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyInstanceCrossBackupPolicyRequest; + +ModifyInstanceCrossBackupPolicyRequest::ModifyInstanceCrossBackupPolicyRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyInstanceCrossBackupPolicy") +{} + +ModifyInstanceCrossBackupPolicyRequest::~ModifyInstanceCrossBackupPolicyRequest() +{} + +long ModifyInstanceCrossBackupPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifyInstanceCrossBackupPolicyRequest::getRetentType()const +{ + return retentType_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setRetentType(int retentType) +{ + retentType_ = retentType; + setCoreParameter("RetentType", std::to_string(retentType)); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getCrossBackupType()const +{ + return crossBackupType_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setCrossBackupType(const std::string& crossBackupType) +{ + crossBackupType_ = crossBackupType; + setCoreParameter("CrossBackupType", crossBackupType); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getLogBackupEnabled()const +{ + return logBackupEnabled_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setLogBackupEnabled(const std::string& logBackupEnabled) +{ + logBackupEnabled_ = logBackupEnabled; + setCoreParameter("LogBackupEnabled", logBackupEnabled); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getBackupEnabled()const +{ + return backupEnabled_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setBackupEnabled(const std::string& backupEnabled) +{ + backupEnabled_ = backupEnabled; + setCoreParameter("BackupEnabled", backupEnabled); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getRelService()const +{ + return relService_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setRelService(const std::string& relService) +{ + relService_ = relService; + setCoreParameter("RelService", relService); +} + +long ModifyInstanceCrossBackupPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getCrossBackupRegion()const +{ + return crossBackupRegion_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setCrossBackupRegion(const std::string& crossBackupRegion) +{ + crossBackupRegion_ = crossBackupRegion; + setCoreParameter("CrossBackupRegion", crossBackupRegion); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getStorageType()const +{ + return storageType_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setStorageType(const std::string& storageType) +{ + storageType_ = storageType; + setCoreParameter("StorageType", storageType); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getEndpoint()const +{ + return endpoint_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setEndpoint(const std::string& endpoint) +{ + endpoint_ = endpoint; + setCoreParameter("Endpoint", endpoint); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getStorageOwner()const +{ + return storageOwner_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setStorageOwner(const std::string& storageOwner) +{ + storageOwner_ = storageOwner; + setCoreParameter("StorageOwner", storageOwner); +} + +std::string ModifyInstanceCrossBackupPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +int ModifyInstanceCrossBackupPolicyRequest::getRetention()const +{ + return retention_; +} + +void ModifyInstanceCrossBackupPolicyRequest::setRetention(int retention) +{ + retention_ = retention; + setCoreParameter("Retention", std::to_string(retention)); +} + diff --git a/rds/src/model/ModifyInstanceCrossBackupPolicyResult.cc b/rds/src/model/ModifyInstanceCrossBackupPolicyResult.cc new file mode 100644 index 000000000..547bf6c4a --- /dev/null +++ b/rds/src/model/ModifyInstanceCrossBackupPolicyResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyInstanceCrossBackupPolicyResult::ModifyInstanceCrossBackupPolicyResult() : + ServiceResult() +{} + +ModifyInstanceCrossBackupPolicyResult::ModifyInstanceCrossBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceCrossBackupPolicyResult::~ModifyInstanceCrossBackupPolicyResult() +{} + +void ModifyInstanceCrossBackupPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["CrossBackupRegion"].isNull()) + crossBackupRegion_ = value["CrossBackupRegion"].asString(); + if(!value["CrossBackupType"].isNull()) + crossBackupType_ = value["CrossBackupType"].asString(); + if(!value["BackupEnabled"].isNull()) + backupEnabled_ = value["BackupEnabled"].asString(); + if(!value["LogBackupEnabled"].isNull()) + logBackupEnabled_ = value["LogBackupEnabled"].asString(); + if(!value["StorageOwner"].isNull()) + storageOwner_ = value["StorageOwner"].asString(); + if(!value["StorageType"].isNull()) + storageType_ = value["StorageType"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["RetentType"].isNull()) + retentType_ = std::stoi(value["RetentType"].asString()); + if(!value["Retention"].isNull()) + retention_ = std::stoi(value["Retention"].asString()); + +} + +std::string ModifyInstanceCrossBackupPolicyResult::getLogBackupEnabled()const +{ + return logBackupEnabled_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getStorageOwner()const +{ + return storageOwner_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getBackupEnabled()const +{ + return backupEnabled_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getCrossBackupType()const +{ + return crossBackupType_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getStorageType()const +{ + return storageType_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getEndpoint()const +{ + return endpoint_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getCrossBackupRegion()const +{ + return crossBackupRegion_; +} + +int ModifyInstanceCrossBackupPolicyResult::getRetentType()const +{ + return retentType_; +} + +std::string ModifyInstanceCrossBackupPolicyResult::getRegionId()const +{ + return regionId_; +} + +int ModifyInstanceCrossBackupPolicyResult::getRetention()const +{ + return retention_; +} + diff --git a/rds/src/model/ModifyMySQLDBInstanceDelayRequest.cc b/rds/src/model/ModifyMySQLDBInstanceDelayRequest.cc index baa2d4e8c..4f9af3322 100644 --- a/rds/src/model/ModifyMySQLDBInstanceDelayRequest.cc +++ b/rds/src/model/ModifyMySQLDBInstanceDelayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyMySQLDBInstanceDelayRequest; - -ModifyMySQLDBInstanceDelayRequest::ModifyMySQLDBInstanceDelayRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyMySQLDBInstanceDelay") -{} - -ModifyMySQLDBInstanceDelayRequest::~ModifyMySQLDBInstanceDelayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyMySQLDBInstanceDelayRequest; + +ModifyMySQLDBInstanceDelayRequest::ModifyMySQLDBInstanceDelayRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyMySQLDBInstanceDelay") +{} + +ModifyMySQLDBInstanceDelayRequest::~ModifyMySQLDBInstanceDelayRequest() +{} + long ModifyMySQLDBInstanceDelayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyMySQLDBInstanceDelayResult.cc b/rds/src/model/ModifyMySQLDBInstanceDelayResult.cc index 30efb64b5..0ce69b651 100644 --- a/rds/src/model/ModifyMySQLDBInstanceDelayResult.cc +++ b/rds/src/model/ModifyMySQLDBInstanceDelayResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyMySQLDBInstanceDelayResult::ModifyMySQLDBInstanceDelayResult() : - ServiceResult() -{} - -ModifyMySQLDBInstanceDelayResult::ModifyMySQLDBInstanceDelayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyMySQLDBInstanceDelayResult::~ModifyMySQLDBInstanceDelayResult() -{} - -void ModifyMySQLDBInstanceDelayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyMySQLDBInstanceDelayResult::ModifyMySQLDBInstanceDelayResult() : + ServiceResult() +{} + +ModifyMySQLDBInstanceDelayResult::ModifyMySQLDBInstanceDelayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMySQLDBInstanceDelayResult::~ModifyMySQLDBInstanceDelayResult() +{} + +void ModifyMySQLDBInstanceDelayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceName"].isNull()) dBInstanceName_ = value["DBInstanceName"].asString(); if(!value["SqlDelay"].isNull()) sqlDelay_ = value["SqlDelay"].asString(); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string ModifyMySQLDBInstanceDelayResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/ModifyParameterRequest.cc b/rds/src/model/ModifyParameterRequest.cc index c7cafb6a8..c8993c864 100644 --- a/rds/src/model/ModifyParameterRequest.cc +++ b/rds/src/model/ModifyParameterRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyParameterRequest; - -ModifyParameterRequest::ModifyParameterRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyParameter") -{} - -ModifyParameterRequest::~ModifyParameterRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyParameterRequest; + +ModifyParameterRequest::ModifyParameterRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyParameter") +{} + +ModifyParameterRequest::~ModifyParameterRequest() +{} + long ModifyParameterRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -36,6 +36,17 @@ void ModifyParameterRequest::setResourceOwnerId(long resourceOwnerId) setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string ModifyParameterRequest::getParameterGroupId()const +{ + return parameterGroupId_; +} + +void ModifyParameterRequest::setParameterGroupId(const std::string& parameterGroupId) +{ + parameterGroupId_ = parameterGroupId; + setCoreParameter("ParameterGroupId", parameterGroupId); +} + std::string ModifyParameterRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/rds/src/model/ModifyParameterResult.cc b/rds/src/model/ModifyParameterResult.cc index 1479cb1f8..414389f1b 100644 --- a/rds/src/model/ModifyParameterResult.cc +++ b/rds/src/model/ModifyParameterResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyParameterResult::ModifyParameterResult() : - ServiceResult() -{} - -ModifyParameterResult::ModifyParameterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyParameterResult::~ModifyParameterResult() -{} - -void ModifyParameterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyParameterResult::ModifyParameterResult() : + ServiceResult() +{} + +ModifyParameterResult::ModifyParameterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyParameterResult::~ModifyParameterResult() +{} + +void ModifyParameterResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyReadWriteSplittingConnectionRequest.cc b/rds/src/model/ModifyReadWriteSplittingConnectionRequest.cc index 70aef5f31..e32c13ede 100644 --- a/rds/src/model/ModifyReadWriteSplittingConnectionRequest.cc +++ b/rds/src/model/ModifyReadWriteSplittingConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyReadWriteSplittingConnectionRequest; - -ModifyReadWriteSplittingConnectionRequest::ModifyReadWriteSplittingConnectionRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyReadWriteSplittingConnection") -{} - -ModifyReadWriteSplittingConnectionRequest::~ModifyReadWriteSplittingConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyReadWriteSplittingConnectionRequest; + +ModifyReadWriteSplittingConnectionRequest::ModifyReadWriteSplittingConnectionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyReadWriteSplittingConnection") +{} + +ModifyReadWriteSplittingConnectionRequest::~ModifyReadWriteSplittingConnectionRequest() +{} + long ModifyReadWriteSplittingConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyReadWriteSplittingConnectionResult.cc b/rds/src/model/ModifyReadWriteSplittingConnectionResult.cc index 628cf2118..9676b2e07 100644 --- a/rds/src/model/ModifyReadWriteSplittingConnectionResult.cc +++ b/rds/src/model/ModifyReadWriteSplittingConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyReadWriteSplittingConnectionResult::ModifyReadWriteSplittingConnectionResult() : - ServiceResult() -{} - -ModifyReadWriteSplittingConnectionResult::ModifyReadWriteSplittingConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyReadWriteSplittingConnectionResult::~ModifyReadWriteSplittingConnectionResult() -{} - -void ModifyReadWriteSplittingConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReadWriteSplittingConnectionResult::ModifyReadWriteSplittingConnectionResult() : + ServiceResult() +{} + +ModifyReadWriteSplittingConnectionResult::ModifyReadWriteSplittingConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReadWriteSplittingConnectionResult::~ModifyReadWriteSplittingConnectionResult() +{} + +void ModifyReadWriteSplittingConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.cc b/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.cc index aa9423081..02bbf910b 100644 --- a/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.cc +++ b/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyReadonlyInstanceDelayReplicationTimeRequest; - -ModifyReadonlyInstanceDelayReplicationTimeRequest::ModifyReadonlyInstanceDelayReplicationTimeRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyReadonlyInstanceDelayReplicationTime") -{} - -ModifyReadonlyInstanceDelayReplicationTimeRequest::~ModifyReadonlyInstanceDelayReplicationTimeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyReadonlyInstanceDelayReplicationTimeRequest; + +ModifyReadonlyInstanceDelayReplicationTimeRequest::ModifyReadonlyInstanceDelayReplicationTimeRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyReadonlyInstanceDelayReplicationTime") +{} + +ModifyReadonlyInstanceDelayReplicationTimeRequest::~ModifyReadonlyInstanceDelayReplicationTimeRequest() +{} + long ModifyReadonlyInstanceDelayReplicationTimeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeResult.cc b/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeResult.cc index 56fbef13e..7e2319679 100644 --- a/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeResult.cc +++ b/rds/src/model/ModifyReadonlyInstanceDelayReplicationTimeResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyReadonlyInstanceDelayReplicationTimeResult::ModifyReadonlyInstanceDelayReplicationTimeResult() : - ServiceResult() -{} - -ModifyReadonlyInstanceDelayReplicationTimeResult::ModifyReadonlyInstanceDelayReplicationTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyReadonlyInstanceDelayReplicationTimeResult::~ModifyReadonlyInstanceDelayReplicationTimeResult() -{} - -void ModifyReadonlyInstanceDelayReplicationTimeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReadonlyInstanceDelayReplicationTimeResult::ModifyReadonlyInstanceDelayReplicationTimeResult() : + ServiceResult() +{} + +ModifyReadonlyInstanceDelayReplicationTimeResult::ModifyReadonlyInstanceDelayReplicationTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReadonlyInstanceDelayReplicationTimeResult::~ModifyReadonlyInstanceDelayReplicationTimeResult() +{} + +void ModifyReadonlyInstanceDelayReplicationTimeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["ReadSQLReplicationTime"].isNull()) readSQLReplicationTime_ = value["ReadSQLReplicationTime"].asString(); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string ModifyReadonlyInstanceDelayReplicationTimeResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/ModifyReplicaDescriptionRequest.cc b/rds/src/model/ModifyReplicaDescriptionRequest.cc index f9b407378..6c3f90430 100644 --- a/rds/src/model/ModifyReplicaDescriptionRequest.cc +++ b/rds/src/model/ModifyReplicaDescriptionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyReplicaDescriptionRequest; - -ModifyReplicaDescriptionRequest::ModifyReplicaDescriptionRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyReplicaDescription") -{} - -ModifyReplicaDescriptionRequest::~ModifyReplicaDescriptionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyReplicaDescriptionRequest; + +ModifyReplicaDescriptionRequest::ModifyReplicaDescriptionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyReplicaDescription") +{} + +ModifyReplicaDescriptionRequest::~ModifyReplicaDescriptionRequest() +{} + std::string ModifyReplicaDescriptionRequest::getReplicaDescription()const { return replicaDescription_; diff --git a/rds/src/model/ModifyReplicaDescriptionResult.cc b/rds/src/model/ModifyReplicaDescriptionResult.cc index 065cbd044..5667c6ef0 100644 --- a/rds/src/model/ModifyReplicaDescriptionResult.cc +++ b/rds/src/model/ModifyReplicaDescriptionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyReplicaDescriptionResult::ModifyReplicaDescriptionResult() : - ServiceResult() -{} - -ModifyReplicaDescriptionResult::ModifyReplicaDescriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyReplicaDescriptionResult::~ModifyReplicaDescriptionResult() -{} - -void ModifyReplicaDescriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReplicaDescriptionResult::ModifyReplicaDescriptionResult() : + ServiceResult() +{} + +ModifyReplicaDescriptionResult::ModifyReplicaDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReplicaDescriptionResult::~ModifyReplicaDescriptionResult() +{} + +void ModifyReplicaDescriptionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyResourceGroupRequest.cc b/rds/src/model/ModifyResourceGroupRequest.cc index fc00d8947..b571b31f9 100644 --- a/rds/src/model/ModifyResourceGroupRequest.cc +++ b/rds/src/model/ModifyResourceGroupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifyResourceGroupRequest; - -ModifyResourceGroupRequest::ModifyResourceGroupRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifyResourceGroup") -{} - -ModifyResourceGroupRequest::~ModifyResourceGroupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifyResourceGroupRequest; + +ModifyResourceGroupRequest::ModifyResourceGroupRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifyResourceGroup") +{} + +ModifyResourceGroupRequest::~ModifyResourceGroupRequest() +{} + std::string ModifyResourceGroupRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/rds/src/model/ModifyResourceGroupResult.cc b/rds/src/model/ModifyResourceGroupResult.cc index e27be73f6..3985cceee 100644 --- a/rds/src/model/ModifyResourceGroupResult.cc +++ b/rds/src/model/ModifyResourceGroupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifyResourceGroupResult::ModifyResourceGroupResult() : - ServiceResult() -{} - -ModifyResourceGroupResult::ModifyResourceGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyResourceGroupResult::~ModifyResourceGroupResult() -{} - -void ModifyResourceGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyResourceGroupResult::ModifyResourceGroupResult() : + ServiceResult() +{} + +ModifyResourceGroupResult::ModifyResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyResourceGroupResult::~ModifyResourceGroupResult() +{} + +void ModifyResourceGroupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifySQLCollectorPolicyRequest.cc b/rds/src/model/ModifySQLCollectorPolicyRequest.cc index 8aea19d44..fc2d81cea 100644 --- a/rds/src/model/ModifySQLCollectorPolicyRequest.cc +++ b/rds/src/model/ModifySQLCollectorPolicyRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifySQLCollectorPolicyRequest; - -ModifySQLCollectorPolicyRequest::ModifySQLCollectorPolicyRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifySQLCollectorPolicy") -{} - -ModifySQLCollectorPolicyRequest::~ModifySQLCollectorPolicyRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifySQLCollectorPolicyRequest; + +ModifySQLCollectorPolicyRequest::ModifySQLCollectorPolicyRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifySQLCollectorPolicy") +{} + +ModifySQLCollectorPolicyRequest::~ModifySQLCollectorPolicyRequest() +{} + long ModifySQLCollectorPolicyRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifySQLCollectorPolicyResult.cc b/rds/src/model/ModifySQLCollectorPolicyResult.cc index 3921bd2ac..08b762110 100644 --- a/rds/src/model/ModifySQLCollectorPolicyResult.cc +++ b/rds/src/model/ModifySQLCollectorPolicyResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult() : - ServiceResult() -{} - -ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySQLCollectorPolicyResult::~ModifySQLCollectorPolicyResult() -{} - -void ModifySQLCollectorPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult() : + ServiceResult() +{} + +ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySQLCollectorPolicyResult::~ModifySQLCollectorPolicyResult() +{} + +void ModifySQLCollectorPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifySecurityGroupConfigurationRequest.cc b/rds/src/model/ModifySecurityGroupConfigurationRequest.cc index ed176cdf3..5275baf9b 100644 --- a/rds/src/model/ModifySecurityGroupConfigurationRequest.cc +++ b/rds/src/model/ModifySecurityGroupConfigurationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifySecurityGroupConfigurationRequest; - -ModifySecurityGroupConfigurationRequest::ModifySecurityGroupConfigurationRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifySecurityGroupConfiguration") -{} - -ModifySecurityGroupConfigurationRequest::~ModifySecurityGroupConfigurationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifySecurityGroupConfigurationRequest; + +ModifySecurityGroupConfigurationRequest::ModifySecurityGroupConfigurationRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifySecurityGroupConfiguration") +{} + +ModifySecurityGroupConfigurationRequest::~ModifySecurityGroupConfigurationRequest() +{} + long ModifySecurityGroupConfigurationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ModifySecurityGroupConfigurationResult.cc b/rds/src/model/ModifySecurityGroupConfigurationResult.cc index 62a8536e3..aab6466e2 100644 --- a/rds/src/model/ModifySecurityGroupConfigurationResult.cc +++ b/rds/src/model/ModifySecurityGroupConfigurationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifySecurityGroupConfigurationResult::ModifySecurityGroupConfigurationResult() : - ServiceResult() -{} - -ModifySecurityGroupConfigurationResult::ModifySecurityGroupConfigurationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySecurityGroupConfigurationResult::~ModifySecurityGroupConfigurationResult() -{} - -void ModifySecurityGroupConfigurationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifySecurityGroupConfigurationResult::ModifySecurityGroupConfigurationResult() : + ServiceResult() +{} + +ModifySecurityGroupConfigurationResult::ModifySecurityGroupConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupConfigurationResult::~ModifySecurityGroupConfigurationResult() +{} + +void ModifySecurityGroupConfigurationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["EcsSecurityGroupRelation"]; for (auto value : allItems) { @@ -54,9 +57,9 @@ void ModifySecurityGroupConfigurationResult::parse(const std::string &payload) } if(!value["DBInstanceName"].isNull()) dBInstanceName_ = value["DBInstanceName"].asString(); - -} - + +} + std::vector ModifySecurityGroupConfigurationResult::getItems()const { return items_; diff --git a/rds/src/model/ModifySecurityIpsRequest.cc b/rds/src/model/ModifySecurityIpsRequest.cc index e25aa85f5..af3deae15 100644 --- a/rds/src/model/ModifySecurityIpsRequest.cc +++ b/rds/src/model/ModifySecurityIpsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ModifySecurityIpsRequest; - -ModifySecurityIpsRequest::ModifySecurityIpsRequest() : - RpcServiceRequest("rds", "2014-08-15", "ModifySecurityIps") -{} - -ModifySecurityIpsRequest::~ModifySecurityIpsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ModifySecurityIpsRequest; + +ModifySecurityIpsRequest::ModifySecurityIpsRequest() : + RpcServiceRequest("rds", "2014-08-15", "ModifySecurityIps") +{} + +ModifySecurityIpsRequest::~ModifySecurityIpsRequest() +{} + std::string ModifySecurityIpsRequest::getDBInstanceIPArrayName()const { return dBInstanceIPArrayName_; diff --git a/rds/src/model/ModifySecurityIpsResult.cc b/rds/src/model/ModifySecurityIpsResult.cc index 9f115a180..24fba7b77 100644 --- a/rds/src/model/ModifySecurityIpsResult.cc +++ b/rds/src/model/ModifySecurityIpsResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ModifySecurityIpsResult::ModifySecurityIpsResult() : - ServiceResult() -{} - -ModifySecurityIpsResult::ModifySecurityIpsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySecurityIpsResult::~ModifySecurityIpsResult() -{} - -void ModifySecurityIpsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifySecurityIpsResult::ModifySecurityIpsResult() : + ServiceResult() +{} + +ModifySecurityIpsResult::ModifySecurityIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityIpsResult::~ModifySecurityIpsResult() +{} + +void ModifySecurityIpsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string ModifySecurityIpsResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/PurgeDBInstanceLogRequest.cc b/rds/src/model/PurgeDBInstanceLogRequest.cc index 4125c9cce..330c636e6 100644 --- a/rds/src/model/PurgeDBInstanceLogRequest.cc +++ b/rds/src/model/PurgeDBInstanceLogRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::PurgeDBInstanceLogRequest; - -PurgeDBInstanceLogRequest::PurgeDBInstanceLogRequest() : - RpcServiceRequest("rds", "2014-08-15", "PurgeDBInstanceLog") -{} - -PurgeDBInstanceLogRequest::~PurgeDBInstanceLogRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::PurgeDBInstanceLogRequest; + +PurgeDBInstanceLogRequest::PurgeDBInstanceLogRequest() : + RpcServiceRequest("rds", "2014-08-15", "PurgeDBInstanceLog") +{} + +PurgeDBInstanceLogRequest::~PurgeDBInstanceLogRequest() +{} + long PurgeDBInstanceLogRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/PurgeDBInstanceLogResult.cc b/rds/src/model/PurgeDBInstanceLogResult.cc index 5f007f524..6d262c6af 100644 --- a/rds/src/model/PurgeDBInstanceLogResult.cc +++ b/rds/src/model/PurgeDBInstanceLogResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -PurgeDBInstanceLogResult::PurgeDBInstanceLogResult() : - ServiceResult() -{} - -PurgeDBInstanceLogResult::PurgeDBInstanceLogResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PurgeDBInstanceLogResult::~PurgeDBInstanceLogResult() -{} - -void PurgeDBInstanceLogResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +PurgeDBInstanceLogResult::PurgeDBInstanceLogResult() : + ServiceResult() +{} + +PurgeDBInstanceLogResult::PurgeDBInstanceLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PurgeDBInstanceLogResult::~PurgeDBInstanceLogResult() +{} + +void PurgeDBInstanceLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RecoveryDBInstanceRequest.cc b/rds/src/model/RecoveryDBInstanceRequest.cc index 071a37ca1..a7d33192f 100644 --- a/rds/src/model/RecoveryDBInstanceRequest.cc +++ b/rds/src/model/RecoveryDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RecoveryDBInstanceRequest; - -RecoveryDBInstanceRequest::RecoveryDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "RecoveryDBInstance") -{} - -RecoveryDBInstanceRequest::~RecoveryDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RecoveryDBInstanceRequest; + +RecoveryDBInstanceRequest::RecoveryDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "RecoveryDBInstance") +{} + +RecoveryDBInstanceRequest::~RecoveryDBInstanceRequest() +{} + long RecoveryDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/RecoveryDBInstanceResult.cc b/rds/src/model/RecoveryDBInstanceResult.cc index d55cac7c7..fae3e7713 100644 --- a/rds/src/model/RecoveryDBInstanceResult.cc +++ b/rds/src/model/RecoveryDBInstanceResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RecoveryDBInstanceResult::RecoveryDBInstanceResult() : - ServiceResult() -{} - -RecoveryDBInstanceResult::RecoveryDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RecoveryDBInstanceResult::~RecoveryDBInstanceResult() -{} - -void RecoveryDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RecoveryDBInstanceResult::RecoveryDBInstanceResult() : + ServiceResult() +{} + +RecoveryDBInstanceResult::RecoveryDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecoveryDBInstanceResult::~RecoveryDBInstanceResult() +{} + +void RecoveryDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string RecoveryDBInstanceResult::getDBInstanceId()const { return dBInstanceId_; diff --git a/rds/src/model/ReleaseInstancePublicConnectionRequest.cc b/rds/src/model/ReleaseInstancePublicConnectionRequest.cc index 15dff2474..45b757de9 100644 --- a/rds/src/model/ReleaseInstancePublicConnectionRequest.cc +++ b/rds/src/model/ReleaseInstancePublicConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ReleaseInstancePublicConnectionRequest; - -ReleaseInstancePublicConnectionRequest::ReleaseInstancePublicConnectionRequest() : - RpcServiceRequest("rds", "2014-08-15", "ReleaseInstancePublicConnection") -{} - -ReleaseInstancePublicConnectionRequest::~ReleaseInstancePublicConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ReleaseInstancePublicConnectionRequest; + +ReleaseInstancePublicConnectionRequest::ReleaseInstancePublicConnectionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ReleaseInstancePublicConnection") +{} + +ReleaseInstancePublicConnectionRequest::~ReleaseInstancePublicConnectionRequest() +{} + long ReleaseInstancePublicConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ReleaseInstancePublicConnectionResult.cc b/rds/src/model/ReleaseInstancePublicConnectionResult.cc index 4c6a003f2..40af01628 100644 --- a/rds/src/model/ReleaseInstancePublicConnectionResult.cc +++ b/rds/src/model/ReleaseInstancePublicConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult() : - ServiceResult() -{} - -ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReleaseInstancePublicConnectionResult::~ReleaseInstancePublicConnectionResult() -{} - -void ReleaseInstancePublicConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult() : + ServiceResult() +{} + +ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseInstancePublicConnectionResult::~ReleaseInstancePublicConnectionResult() +{} + +void ReleaseInstancePublicConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ReleaseReadWriteSplittingConnectionRequest.cc b/rds/src/model/ReleaseReadWriteSplittingConnectionRequest.cc index 15e86ab81..51d7a4c8b 100644 --- a/rds/src/model/ReleaseReadWriteSplittingConnectionRequest.cc +++ b/rds/src/model/ReleaseReadWriteSplittingConnectionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ReleaseReadWriteSplittingConnectionRequest; - -ReleaseReadWriteSplittingConnectionRequest::ReleaseReadWriteSplittingConnectionRequest() : - RpcServiceRequest("rds", "2014-08-15", "ReleaseReadWriteSplittingConnection") -{} - -ReleaseReadWriteSplittingConnectionRequest::~ReleaseReadWriteSplittingConnectionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ReleaseReadWriteSplittingConnectionRequest; + +ReleaseReadWriteSplittingConnectionRequest::ReleaseReadWriteSplittingConnectionRequest() : + RpcServiceRequest("rds", "2014-08-15", "ReleaseReadWriteSplittingConnection") +{} + +ReleaseReadWriteSplittingConnectionRequest::~ReleaseReadWriteSplittingConnectionRequest() +{} + long ReleaseReadWriteSplittingConnectionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ReleaseReadWriteSplittingConnectionResult.cc b/rds/src/model/ReleaseReadWriteSplittingConnectionResult.cc index dc3a899a1..03f6b283d 100644 --- a/rds/src/model/ReleaseReadWriteSplittingConnectionResult.cc +++ b/rds/src/model/ReleaseReadWriteSplittingConnectionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ReleaseReadWriteSplittingConnectionResult::ReleaseReadWriteSplittingConnectionResult() : - ServiceResult() -{} - -ReleaseReadWriteSplittingConnectionResult::ReleaseReadWriteSplittingConnectionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReleaseReadWriteSplittingConnectionResult::~ReleaseReadWriteSplittingConnectionResult() -{} - -void ReleaseReadWriteSplittingConnectionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseReadWriteSplittingConnectionResult::ReleaseReadWriteSplittingConnectionResult() : + ServiceResult() +{} + +ReleaseReadWriteSplittingConnectionResult::ReleaseReadWriteSplittingConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseReadWriteSplittingConnectionResult::~ReleaseReadWriteSplittingConnectionResult() +{} + +void ReleaseReadWriteSplittingConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RemoveTagsFromResourceRequest.cc b/rds/src/model/RemoveTagsFromResourceRequest.cc index 9c361422e..12b770ddc 100644 --- a/rds/src/model/RemoveTagsFromResourceRequest.cc +++ b/rds/src/model/RemoveTagsFromResourceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RemoveTagsFromResourceRequest; - -RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest() : - RpcServiceRequest("rds", "2014-08-15", "RemoveTagsFromResource") -{} - -RemoveTagsFromResourceRequest::~RemoveTagsFromResourceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RemoveTagsFromResourceRequest; + +RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest() : + RpcServiceRequest("rds", "2014-08-15", "RemoveTagsFromResource") +{} + +RemoveTagsFromResourceRequest::~RemoveTagsFromResourceRequest() +{} + std::string RemoveTagsFromResourceRequest::getTag4value()const { return tag4value_; diff --git a/rds/src/model/RemoveTagsFromResourceResult.cc b/rds/src/model/RemoveTagsFromResourceResult.cc index 2e9718fa8..1b8c110d6 100644 --- a/rds/src/model/RemoveTagsFromResourceResult.cc +++ b/rds/src/model/RemoveTagsFromResourceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RemoveTagsFromResourceResult::RemoveTagsFromResourceResult() : - ServiceResult() -{} - -RemoveTagsFromResourceResult::RemoveTagsFromResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveTagsFromResourceResult::~RemoveTagsFromResourceResult() -{} - -void RemoveTagsFromResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RemoveTagsFromResourceResult::RemoveTagsFromResourceResult() : + ServiceResult() +{} + +RemoveTagsFromResourceResult::RemoveTagsFromResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagsFromResourceResult::~RemoveTagsFromResourceResult() +{} + +void RemoveTagsFromResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RenewInstanceRequest.cc b/rds/src/model/RenewInstanceRequest.cc index abadc25b1..480ac65b1 100644 --- a/rds/src/model/RenewInstanceRequest.cc +++ b/rds/src/model/RenewInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RenewInstanceRequest; - -RenewInstanceRequest::RenewInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "RenewInstance") -{} - -RenewInstanceRequest::~RenewInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "RenewInstance") +{} + +RenewInstanceRequest::~RenewInstanceRequest() +{} + long RenewInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/RenewInstanceResult.cc b/rds/src/model/RenewInstanceResult.cc index adba65b7d..7395baa23 100644 --- a/rds/src/model/RenewInstanceResult.cc +++ b/rds/src/model/RenewInstanceResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RenewInstanceResult::RenewInstanceResult() : - ServiceResult() -{} - -RenewInstanceResult::RenewInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RenewInstanceResult::~RenewInstanceResult() -{} - -void RenewInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RenewInstanceResult::RenewInstanceResult() : + ServiceResult() +{} + +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewInstanceResult::~RenewInstanceResult() +{} + +void RenewInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); - -} - + +} + long RenewInstanceResult::getOrderId()const { return orderId_; diff --git a/rds/src/model/RequestServiceOfCloudDBExpertRequest.cc b/rds/src/model/RequestServiceOfCloudDBExpertRequest.cc index 643d6cc21..85290d595 100644 --- a/rds/src/model/RequestServiceOfCloudDBExpertRequest.cc +++ b/rds/src/model/RequestServiceOfCloudDBExpertRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RequestServiceOfCloudDBExpertRequest; - -RequestServiceOfCloudDBExpertRequest::RequestServiceOfCloudDBExpertRequest() : - RpcServiceRequest("rds", "2014-08-15", "RequestServiceOfCloudDBExpert") -{} - -RequestServiceOfCloudDBExpertRequest::~RequestServiceOfCloudDBExpertRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RequestServiceOfCloudDBExpertRequest; + +RequestServiceOfCloudDBExpertRequest::RequestServiceOfCloudDBExpertRequest() : + RpcServiceRequest("rds", "2014-08-15", "RequestServiceOfCloudDBExpert") +{} + +RequestServiceOfCloudDBExpertRequest::~RequestServiceOfCloudDBExpertRequest() +{} + std::string RequestServiceOfCloudDBExpertRequest::getServiceRequestParam()const { return serviceRequestParam_; diff --git a/rds/src/model/RequestServiceOfCloudDBExpertResult.cc b/rds/src/model/RequestServiceOfCloudDBExpertResult.cc index a35383162..f6a6c1b63 100644 --- a/rds/src/model/RequestServiceOfCloudDBExpertResult.cc +++ b/rds/src/model/RequestServiceOfCloudDBExpertResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RequestServiceOfCloudDBExpertResult::RequestServiceOfCloudDBExpertResult() : - ServiceResult() -{} - -RequestServiceOfCloudDBExpertResult::RequestServiceOfCloudDBExpertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RequestServiceOfCloudDBExpertResult::~RequestServiceOfCloudDBExpertResult() -{} - -void RequestServiceOfCloudDBExpertResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RequestServiceOfCloudDBExpertResult::RequestServiceOfCloudDBExpertResult() : + ServiceResult() +{} + +RequestServiceOfCloudDBExpertResult::RequestServiceOfCloudDBExpertResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RequestServiceOfCloudDBExpertResult::~RequestServiceOfCloudDBExpertResult() +{} + +void RequestServiceOfCloudDBExpertResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + 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_ = value["Code"].asString(); - -} - + +} + std::string RequestServiceOfCloudDBExpertResult::getMessage()const { return message_; diff --git a/rds/src/model/ResetAccountForPGRequest.cc b/rds/src/model/ResetAccountForPGRequest.cc index 78703a8b5..273ac14df 100644 --- a/rds/src/model/ResetAccountForPGRequest.cc +++ b/rds/src/model/ResetAccountForPGRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ResetAccountForPGRequest; - -ResetAccountForPGRequest::ResetAccountForPGRequest() : - RpcServiceRequest("rds", "2014-08-15", "ResetAccountForPG") -{} - -ResetAccountForPGRequest::~ResetAccountForPGRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ResetAccountForPGRequest; + +ResetAccountForPGRequest::ResetAccountForPGRequest() : + RpcServiceRequest("rds", "2014-08-15", "ResetAccountForPG") +{} + +ResetAccountForPGRequest::~ResetAccountForPGRequest() +{} + long ResetAccountForPGRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ResetAccountForPGResult.cc b/rds/src/model/ResetAccountForPGResult.cc index 084800344..f68620d2b 100644 --- a/rds/src/model/ResetAccountForPGResult.cc +++ b/rds/src/model/ResetAccountForPGResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ResetAccountForPGResult::ResetAccountForPGResult() : - ServiceResult() -{} - -ResetAccountForPGResult::ResetAccountForPGResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetAccountForPGResult::~ResetAccountForPGResult() -{} - -void ResetAccountForPGResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountForPGResult::ResetAccountForPGResult() : + ServiceResult() +{} + +ResetAccountForPGResult::ResetAccountForPGResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountForPGResult::~ResetAccountForPGResult() +{} + +void ResetAccountForPGResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ResetAccountPasswordRequest.cc b/rds/src/model/ResetAccountPasswordRequest.cc index 3ff696254..df8f45800 100644 --- a/rds/src/model/ResetAccountPasswordRequest.cc +++ b/rds/src/model/ResetAccountPasswordRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ResetAccountPasswordRequest; - -ResetAccountPasswordRequest::ResetAccountPasswordRequest() : - RpcServiceRequest("rds", "2014-08-15", "ResetAccountPassword") -{} - -ResetAccountPasswordRequest::~ResetAccountPasswordRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ResetAccountPasswordRequest; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() : + RpcServiceRequest("rds", "2014-08-15", "ResetAccountPassword") +{} + +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() +{} + long ResetAccountPasswordRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ResetAccountPasswordResult.cc b/rds/src/model/ResetAccountPasswordResult.cc index 82b902cf8..c4c32176a 100644 --- a/rds/src/model/ResetAccountPasswordResult.cc +++ b/rds/src/model/ResetAccountPasswordResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ResetAccountPasswordResult::ResetAccountPasswordResult() : - ServiceResult() -{} - -ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetAccountPasswordResult::~ResetAccountPasswordResult() -{} - -void ResetAccountPasswordResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountPasswordResult::ResetAccountPasswordResult() : + ServiceResult() +{} + +ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountPasswordResult::~ResetAccountPasswordResult() +{} + +void ResetAccountPasswordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ResetAccountRequest.cc b/rds/src/model/ResetAccountRequest.cc index ff39345f4..e1772cd7c 100644 --- a/rds/src/model/ResetAccountRequest.cc +++ b/rds/src/model/ResetAccountRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::ResetAccountRequest; - -ResetAccountRequest::ResetAccountRequest() : - RpcServiceRequest("rds", "2014-08-15", "ResetAccount") -{} - -ResetAccountRequest::~ResetAccountRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::ResetAccountRequest; + +ResetAccountRequest::ResetAccountRequest() : + RpcServiceRequest("rds", "2014-08-15", "ResetAccount") +{} + +ResetAccountRequest::~ResetAccountRequest() +{} + long ResetAccountRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/ResetAccountResult.cc b/rds/src/model/ResetAccountResult.cc index 474c02e6c..192699709 100644 --- a/rds/src/model/ResetAccountResult.cc +++ b/rds/src/model/ResetAccountResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -ResetAccountResult::ResetAccountResult() : - ServiceResult() -{} - -ResetAccountResult::ResetAccountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetAccountResult::~ResetAccountResult() -{} - -void ResetAccountResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountResult::ResetAccountResult() : + ServiceResult() +{} + +ResetAccountResult::ResetAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountResult::~ResetAccountResult() +{} + +void ResetAccountResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RestartDBInstanceRequest.cc b/rds/src/model/RestartDBInstanceRequest.cc index 9ef705c66..fde66da5a 100644 --- a/rds/src/model/RestartDBInstanceRequest.cc +++ b/rds/src/model/RestartDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RestartDBInstanceRequest; - -RestartDBInstanceRequest::RestartDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "RestartDBInstance") -{} - -RestartDBInstanceRequest::~RestartDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RestartDBInstanceRequest; + +RestartDBInstanceRequest::RestartDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "RestartDBInstance") +{} + +RestartDBInstanceRequest::~RestartDBInstanceRequest() +{} + long RestartDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/RestartDBInstanceResult.cc b/rds/src/model/RestartDBInstanceResult.cc index 22f34d11c..4e3a521d5 100644 --- a/rds/src/model/RestartDBInstanceResult.cc +++ b/rds/src/model/RestartDBInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RestartDBInstanceResult::RestartDBInstanceResult() : - ServiceResult() -{} - -RestartDBInstanceResult::RestartDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RestartDBInstanceResult::~RestartDBInstanceResult() -{} - -void RestartDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RestartDBInstanceResult::RestartDBInstanceResult() : + ServiceResult() +{} + +RestartDBInstanceResult::RestartDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDBInstanceResult::~RestartDBInstanceResult() +{} + +void RestartDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RestoreDBInstanceRequest.cc b/rds/src/model/RestoreDBInstanceRequest.cc index 31974764e..2b342a34f 100644 --- a/rds/src/model/RestoreDBInstanceRequest.cc +++ b/rds/src/model/RestoreDBInstanceRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RestoreDBInstanceRequest; - -RestoreDBInstanceRequest::RestoreDBInstanceRequest() : - RpcServiceRequest("rds", "2014-08-15", "RestoreDBInstance") -{} - -RestoreDBInstanceRequest::~RestoreDBInstanceRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RestoreDBInstanceRequest; + +RestoreDBInstanceRequest::RestoreDBInstanceRequest() : + RpcServiceRequest("rds", "2014-08-15", "RestoreDBInstance") +{} + +RestoreDBInstanceRequest::~RestoreDBInstanceRequest() +{} + long RestoreDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/RestoreDBInstanceResult.cc b/rds/src/model/RestoreDBInstanceResult.cc index 60beec1b8..121917a35 100644 --- a/rds/src/model/RestoreDBInstanceResult.cc +++ b/rds/src/model/RestoreDBInstanceResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RestoreDBInstanceResult::RestoreDBInstanceResult() : - ServiceResult() -{} - -RestoreDBInstanceResult::RestoreDBInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RestoreDBInstanceResult::~RestoreDBInstanceResult() -{} - -void RestoreDBInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RestoreDBInstanceResult::RestoreDBInstanceResult() : + ServiceResult() +{} + +RestoreDBInstanceResult::RestoreDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestoreDBInstanceResult::~RestoreDBInstanceResult() +{} + +void RestoreDBInstanceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RestoreTableRequest.cc b/rds/src/model/RestoreTableRequest.cc index 61b599d92..6e7c9ba9f 100644 --- a/rds/src/model/RestoreTableRequest.cc +++ b/rds/src/model/RestoreTableRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RestoreTableRequest; - -RestoreTableRequest::RestoreTableRequest() : - RpcServiceRequest("rds", "2014-08-15", "RestoreTable") -{} - -RestoreTableRequest::~RestoreTableRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RestoreTableRequest; + +RestoreTableRequest::RestoreTableRequest() : + RpcServiceRequest("rds", "2014-08-15", "RestoreTable") +{} + +RestoreTableRequest::~RestoreTableRequest() +{} + long RestoreTableRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/RestoreTableResult.cc b/rds/src/model/RestoreTableResult.cc index 2f38d30e0..2e35b53ad 100644 --- a/rds/src/model/RestoreTableResult.cc +++ b/rds/src/model/RestoreTableResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RestoreTableResult::RestoreTableResult() : - ServiceResult() -{} - -RestoreTableResult::RestoreTableResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RestoreTableResult::~RestoreTableResult() -{} - -void RestoreTableResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RestoreTableResult::RestoreTableResult() : + ServiceResult() +{} + +RestoreTableResult::RestoreTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestoreTableResult::~RestoreTableResult() +{} + +void RestoreTableResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RevokeAccountPrivilegeRequest.cc b/rds/src/model/RevokeAccountPrivilegeRequest.cc index f3158380e..abbc3f184 100644 --- a/rds/src/model/RevokeAccountPrivilegeRequest.cc +++ b/rds/src/model/RevokeAccountPrivilegeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RevokeAccountPrivilegeRequest; - -RevokeAccountPrivilegeRequest::RevokeAccountPrivilegeRequest() : - RpcServiceRequest("rds", "2014-08-15", "RevokeAccountPrivilege") -{} - -RevokeAccountPrivilegeRequest::~RevokeAccountPrivilegeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RevokeAccountPrivilegeRequest; + +RevokeAccountPrivilegeRequest::RevokeAccountPrivilegeRequest() : + RpcServiceRequest("rds", "2014-08-15", "RevokeAccountPrivilege") +{} + +RevokeAccountPrivilegeRequest::~RevokeAccountPrivilegeRequest() +{} + long RevokeAccountPrivilegeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/RevokeAccountPrivilegeResult.cc b/rds/src/model/RevokeAccountPrivilegeResult.cc index 8d55b01b7..c35fef785 100644 --- a/rds/src/model/RevokeAccountPrivilegeResult.cc +++ b/rds/src/model/RevokeAccountPrivilegeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult() : - ServiceResult() -{} - -RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevokeAccountPrivilegeResult::~RevokeAccountPrivilegeResult() -{} - -void RevokeAccountPrivilegeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult() : + ServiceResult() +{} + +RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeAccountPrivilegeResult::~RevokeAccountPrivilegeResult() +{} + +void RevokeAccountPrivilegeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RevokeOperatorPermissionRequest.cc b/rds/src/model/RevokeOperatorPermissionRequest.cc index 770c627c1..b6d8d16d5 100644 --- a/rds/src/model/RevokeOperatorPermissionRequest.cc +++ b/rds/src/model/RevokeOperatorPermissionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::RevokeOperatorPermissionRequest; - -RevokeOperatorPermissionRequest::RevokeOperatorPermissionRequest() : - RpcServiceRequest("rds", "2014-08-15", "RevokeOperatorPermission") -{} - -RevokeOperatorPermissionRequest::~RevokeOperatorPermissionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::RevokeOperatorPermissionRequest; + +RevokeOperatorPermissionRequest::RevokeOperatorPermissionRequest() : + RpcServiceRequest("rds", "2014-08-15", "RevokeOperatorPermission") +{} + +RevokeOperatorPermissionRequest::~RevokeOperatorPermissionRequest() +{} + long RevokeOperatorPermissionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/RevokeOperatorPermissionResult.cc b/rds/src/model/RevokeOperatorPermissionResult.cc index f62a15479..c8fc6150d 100644 --- a/rds/src/model/RevokeOperatorPermissionResult.cc +++ b/rds/src/model/RevokeOperatorPermissionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -RevokeOperatorPermissionResult::RevokeOperatorPermissionResult() : - ServiceResult() -{} - -RevokeOperatorPermissionResult::RevokeOperatorPermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevokeOperatorPermissionResult::~RevokeOperatorPermissionResult() -{} - -void RevokeOperatorPermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RevokeOperatorPermissionResult::RevokeOperatorPermissionResult() : + ServiceResult() +{} + +RevokeOperatorPermissionResult::RevokeOperatorPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeOperatorPermissionResult::~RevokeOperatorPermissionResult() +{} + +void RevokeOperatorPermissionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/SwitchDBInstanceHARequest.cc b/rds/src/model/SwitchDBInstanceHARequest.cc index 5babea4c1..b2d38c059 100644 --- a/rds/src/model/SwitchDBInstanceHARequest.cc +++ b/rds/src/model/SwitchDBInstanceHARequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::SwitchDBInstanceHARequest; - -SwitchDBInstanceHARequest::SwitchDBInstanceHARequest() : - RpcServiceRequest("rds", "2014-08-15", "SwitchDBInstanceHA") -{} - -SwitchDBInstanceHARequest::~SwitchDBInstanceHARequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::SwitchDBInstanceHARequest; + +SwitchDBInstanceHARequest::SwitchDBInstanceHARequest() : + RpcServiceRequest("rds", "2014-08-15", "SwitchDBInstanceHA") +{} + +SwitchDBInstanceHARequest::~SwitchDBInstanceHARequest() +{} + long SwitchDBInstanceHARequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/SwitchDBInstanceHAResult.cc b/rds/src/model/SwitchDBInstanceHAResult.cc index 4994a2c86..66bcbd8c9 100644 --- a/rds/src/model/SwitchDBInstanceHAResult.cc +++ b/rds/src/model/SwitchDBInstanceHAResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -SwitchDBInstanceHAResult::SwitchDBInstanceHAResult() : - ServiceResult() -{} - -SwitchDBInstanceHAResult::SwitchDBInstanceHAResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchDBInstanceHAResult::~SwitchDBInstanceHAResult() -{} - -void SwitchDBInstanceHAResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +SwitchDBInstanceHAResult::SwitchDBInstanceHAResult() : + ServiceResult() +{} + +SwitchDBInstanceHAResult::SwitchDBInstanceHAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchDBInstanceHAResult::~SwitchDBInstanceHAResult() +{} + +void SwitchDBInstanceHAResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/SwitchDBInstanceNetTypeRequest.cc b/rds/src/model/SwitchDBInstanceNetTypeRequest.cc index a72bee52d..b47eb31c7 100644 --- a/rds/src/model/SwitchDBInstanceNetTypeRequest.cc +++ b/rds/src/model/SwitchDBInstanceNetTypeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::SwitchDBInstanceNetTypeRequest; - -SwitchDBInstanceNetTypeRequest::SwitchDBInstanceNetTypeRequest() : - RpcServiceRequest("rds", "2014-08-15", "SwitchDBInstanceNetType") -{} - -SwitchDBInstanceNetTypeRequest::~SwitchDBInstanceNetTypeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::SwitchDBInstanceNetTypeRequest; + +SwitchDBInstanceNetTypeRequest::SwitchDBInstanceNetTypeRequest() : + RpcServiceRequest("rds", "2014-08-15", "SwitchDBInstanceNetType") +{} + +SwitchDBInstanceNetTypeRequest::~SwitchDBInstanceNetTypeRequest() +{} + long SwitchDBInstanceNetTypeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/SwitchDBInstanceNetTypeResult.cc b/rds/src/model/SwitchDBInstanceNetTypeResult.cc index 52470df4e..0ae387485 100644 --- a/rds/src/model/SwitchDBInstanceNetTypeResult.cc +++ b/rds/src/model/SwitchDBInstanceNetTypeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult() : - ServiceResult() -{} - -SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchDBInstanceNetTypeResult::~SwitchDBInstanceNetTypeResult() -{} - -void SwitchDBInstanceNetTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult() : + ServiceResult() +{} + +SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchDBInstanceNetTypeResult::~SwitchDBInstanceNetTypeResult() +{} + +void SwitchDBInstanceNetTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/SwitchDBInstanceVpcRequest.cc b/rds/src/model/SwitchDBInstanceVpcRequest.cc index 2bf1f1c62..4e324d150 100644 --- a/rds/src/model/SwitchDBInstanceVpcRequest.cc +++ b/rds/src/model/SwitchDBInstanceVpcRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::SwitchDBInstanceVpcRequest; - -SwitchDBInstanceVpcRequest::SwitchDBInstanceVpcRequest() : - RpcServiceRequest("rds", "2014-08-15", "SwitchDBInstanceVpc") -{} - -SwitchDBInstanceVpcRequest::~SwitchDBInstanceVpcRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::SwitchDBInstanceVpcRequest; + +SwitchDBInstanceVpcRequest::SwitchDBInstanceVpcRequest() : + RpcServiceRequest("rds", "2014-08-15", "SwitchDBInstanceVpc") +{} + +SwitchDBInstanceVpcRequest::~SwitchDBInstanceVpcRequest() +{} + std::string SwitchDBInstanceVpcRequest::getVSwitchId()const { return vSwitchId_; diff --git a/rds/src/model/SwitchDBInstanceVpcResult.cc b/rds/src/model/SwitchDBInstanceVpcResult.cc index 2451f425c..a3374e4c3 100644 --- a/rds/src/model/SwitchDBInstanceVpcResult.cc +++ b/rds/src/model/SwitchDBInstanceVpcResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -SwitchDBInstanceVpcResult::SwitchDBInstanceVpcResult() : - ServiceResult() -{} - -SwitchDBInstanceVpcResult::SwitchDBInstanceVpcResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchDBInstanceVpcResult::~SwitchDBInstanceVpcResult() -{} - -void SwitchDBInstanceVpcResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +SwitchDBInstanceVpcResult::SwitchDBInstanceVpcResult() : + ServiceResult() +{} + +SwitchDBInstanceVpcResult::SwitchDBInstanceVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchDBInstanceVpcResult::~SwitchDBInstanceVpcResult() +{} + +void SwitchDBInstanceVpcResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/UpgradeDBInstanceEngineVersionRequest.cc b/rds/src/model/UpgradeDBInstanceEngineVersionRequest.cc index c44ee9b64..add4b7445 100644 --- a/rds/src/model/UpgradeDBInstanceEngineVersionRequest.cc +++ b/rds/src/model/UpgradeDBInstanceEngineVersionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::UpgradeDBInstanceEngineVersionRequest; - -UpgradeDBInstanceEngineVersionRequest::UpgradeDBInstanceEngineVersionRequest() : - RpcServiceRequest("rds", "2014-08-15", "UpgradeDBInstanceEngineVersion") -{} - -UpgradeDBInstanceEngineVersionRequest::~UpgradeDBInstanceEngineVersionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::UpgradeDBInstanceEngineVersionRequest; + +UpgradeDBInstanceEngineVersionRequest::UpgradeDBInstanceEngineVersionRequest() : + RpcServiceRequest("rds", "2014-08-15", "UpgradeDBInstanceEngineVersion") +{} + +UpgradeDBInstanceEngineVersionRequest::~UpgradeDBInstanceEngineVersionRequest() +{} + long UpgradeDBInstanceEngineVersionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/UpgradeDBInstanceEngineVersionResult.cc b/rds/src/model/UpgradeDBInstanceEngineVersionResult.cc index db9c07458..866fe8d31 100644 --- a/rds/src/model/UpgradeDBInstanceEngineVersionResult.cc +++ b/rds/src/model/UpgradeDBInstanceEngineVersionResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult() : - ServiceResult() -{} - -UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpgradeDBInstanceEngineVersionResult::~UpgradeDBInstanceEngineVersionResult() -{} - -void UpgradeDBInstanceEngineVersionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult() : + ServiceResult() +{} + +UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBInstanceEngineVersionResult::~UpgradeDBInstanceEngineVersionResult() +{} + +void UpgradeDBInstanceEngineVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - -} - + +} + std::string UpgradeDBInstanceEngineVersionResult::getTaskId()const { return taskId_; diff --git a/rds/src/model/UpgradeDBInstanceKernelVersionRequest.cc b/rds/src/model/UpgradeDBInstanceKernelVersionRequest.cc index b9e695df3..53db8fb39 100644 --- a/rds/src/model/UpgradeDBInstanceKernelVersionRequest.cc +++ b/rds/src/model/UpgradeDBInstanceKernelVersionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Rds::Model::UpgradeDBInstanceKernelVersionRequest; - -UpgradeDBInstanceKernelVersionRequest::UpgradeDBInstanceKernelVersionRequest() : - RpcServiceRequest("rds", "2014-08-15", "UpgradeDBInstanceKernelVersion") -{} - -UpgradeDBInstanceKernelVersionRequest::~UpgradeDBInstanceKernelVersionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds::Model::UpgradeDBInstanceKernelVersionRequest; + +UpgradeDBInstanceKernelVersionRequest::UpgradeDBInstanceKernelVersionRequest() : + RpcServiceRequest("rds", "2014-08-15", "UpgradeDBInstanceKernelVersion") +{} + +UpgradeDBInstanceKernelVersionRequest::~UpgradeDBInstanceKernelVersionRequest() +{} + long UpgradeDBInstanceKernelVersionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/rds/src/model/UpgradeDBInstanceKernelVersionResult.cc b/rds/src/model/UpgradeDBInstanceKernelVersionResult.cc index db27dcf39..d1a52d8d6 100644 --- a/rds/src/model/UpgradeDBInstanceKernelVersionResult.cc +++ b/rds/src/model/UpgradeDBInstanceKernelVersionResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Rds; -using namespace AlibabaCloud::Rds::Model; - -UpgradeDBInstanceKernelVersionResult::UpgradeDBInstanceKernelVersionResult() : - ServiceResult() -{} - -UpgradeDBInstanceKernelVersionResult::UpgradeDBInstanceKernelVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpgradeDBInstanceKernelVersionResult::~UpgradeDBInstanceKernelVersionResult() -{} - -void UpgradeDBInstanceKernelVersionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceKernelVersionResult::UpgradeDBInstanceKernelVersionResult() : + ServiceResult() +{} + +UpgradeDBInstanceKernelVersionResult::UpgradeDBInstanceKernelVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBInstanceKernelVersionResult::~UpgradeDBInstanceKernelVersionResult() +{} + +void UpgradeDBInstanceKernelVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["DBInstanceName"].isNull()) dBInstanceName_ = value["DBInstanceName"].asString(); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); if(!value["TargetMinorVersion"].isNull()) targetMinorVersion_ = value["TargetMinorVersion"].asString(); - -} - + +} + std::string UpgradeDBInstanceKernelVersionResult::getTaskId()const { return taskId_; diff --git a/rtc/CMakeLists.txt b/rtc/CMakeLists.txt index 05de99b52..32a5fe6bb 100644 --- a/rtc/CMakeLists.txt +++ b/rtc/CMakeLists.txt @@ -35,30 +35,38 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/CreateTemplateResult.h include/alibabacloud/rtc/model/GetTemplateInfoRequest.h include/alibabacloud/rtc/model/GetTemplateInfoResult.h - include/alibabacloud/rtc/model/ModifyAppRequest.h - include/alibabacloud/rtc/model/ModifyAppResult.h include/alibabacloud/rtc/model/DeleteChannelRequest.h include/alibabacloud/rtc/model/DeleteChannelResult.h + include/alibabacloud/rtc/model/ModifyAppRequest.h + include/alibabacloud/rtc/model/ModifyAppResult.h include/alibabacloud/rtc/model/RemoveParticipantsRequest.h include/alibabacloud/rtc/model/RemoveParticipantsResult.h include/alibabacloud/rtc/model/GetAllTemplateRequest.h include/alibabacloud/rtc/model/GetAllTemplateResult.h include/alibabacloud/rtc/model/DescribeStatisRequest.h include/alibabacloud/rtc/model/DescribeStatisResult.h + include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h + include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h include/alibabacloud/rtc/model/CreateChannelRequest.h include/alibabacloud/rtc/model/CreateChannelResult.h - include/alibabacloud/rtc/model/StopTaskRequest.h - include/alibabacloud/rtc/model/StopTaskResult.h include/alibabacloud/rtc/model/GetTaskParamRequest.h include/alibabacloud/rtc/model/GetTaskParamResult.h + include/alibabacloud/rtc/model/StopTaskRequest.h + include/alibabacloud/rtc/model/StopTaskResult.h + include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h + include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h include/alibabacloud/rtc/model/UpdateChannelRequest.h include/alibabacloud/rtc/model/UpdateChannelResult.h + include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h + include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h + include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h + include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h include/alibabacloud/rtc/model/StartMPUTaskRequest.h include/alibabacloud/rtc/model/StartMPUTaskResult.h - include/alibabacloud/rtc/model/StopMPUTaskRequest.h - include/alibabacloud/rtc/model/StopMPUTaskResult.h include/alibabacloud/rtc/model/StartTaskRequest.h include/alibabacloud/rtc/model/StartTaskResult.h + include/alibabacloud/rtc/model/StopMPUTaskRequest.h + include/alibabacloud/rtc/model/StopMPUTaskResult.h include/alibabacloud/rtc/model/ModifyConferenceRequest.h include/alibabacloud/rtc/model/ModifyConferenceResult.h include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h @@ -71,24 +79,34 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/MuteAudioResult.h include/alibabacloud/rtc/model/CreateConferenceRequest.h include/alibabacloud/rtc/model/CreateConferenceResult.h - include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h - include/alibabacloud/rtc/model/GetMPUTaskStatusResult.h + include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h + include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailRequest.h include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailResult.h + include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h + include/alibabacloud/rtc/model/GetMPUTaskStatusResult.h + include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h + include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h + include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h + include/alibabacloud/rtc/model/DescribeChannelParticipantsResult.h + include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h + include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h include/alibabacloud/rtc/model/DescribeRealTimeRecordListRequest.h include/alibabacloud/rtc/model/DescribeRealTimeRecordListResult.h - include/alibabacloud/rtc/model/RemoveTerminalsRequest.h - include/alibabacloud/rtc/model/RemoveTerminalsResult.h include/alibabacloud/rtc/model/DeleteConferenceRequest.h include/alibabacloud/rtc/model/DeleteConferenceResult.h + include/alibabacloud/rtc/model/RemoveTerminalsRequest.h + include/alibabacloud/rtc/model/RemoveTerminalsResult.h include/alibabacloud/rtc/model/ReceiveNotifyRequest.h include/alibabacloud/rtc/model/ReceiveNotifyResult.h include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h include/alibabacloud/rtc/model/UnmuteAudioAllResult.h + include/alibabacloud/rtc/model/CreateChannelTokenRequest.h + include/alibabacloud/rtc/model/CreateChannelTokenResult.h include/alibabacloud/rtc/model/DescribeRecordDetailRequest.h include/alibabacloud/rtc/model/DescribeRecordDetailResult.h - include/alibabacloud/rtc/model/CreateChannelTokenRequest.h - include/alibabacloud/rtc/model/CreateChannelTokenResult.h ) + include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h + include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h ) set(rtc_src src/RtcClient.cc @@ -106,30 +124,38 @@ set(rtc_src src/model/CreateTemplateResult.cc src/model/GetTemplateInfoRequest.cc src/model/GetTemplateInfoResult.cc - src/model/ModifyAppRequest.cc - src/model/ModifyAppResult.cc src/model/DeleteChannelRequest.cc src/model/DeleteChannelResult.cc + src/model/ModifyAppRequest.cc + src/model/ModifyAppResult.cc src/model/RemoveParticipantsRequest.cc src/model/RemoveParticipantsResult.cc src/model/GetAllTemplateRequest.cc src/model/GetAllTemplateResult.cc src/model/DescribeStatisRequest.cc src/model/DescribeStatisResult.cc + src/model/DescribeRtcPeakUserCntDataRequest.cc + src/model/DescribeRtcPeakUserCntDataResult.cc src/model/CreateChannelRequest.cc src/model/CreateChannelResult.cc - src/model/StopTaskRequest.cc - src/model/StopTaskResult.cc src/model/GetTaskParamRequest.cc src/model/GetTaskParamResult.cc + src/model/StopTaskRequest.cc + src/model/StopTaskResult.cc + src/model/DescribeRtcChannelUserListRequest.cc + src/model/DescribeRtcChannelUserListResult.cc src/model/UpdateChannelRequest.cc src/model/UpdateChannelResult.cc + src/model/DescribeRtcUserCntDataRequest.cc + src/model/DescribeRtcUserCntDataResult.cc + src/model/DescribeRtcChannelMetricRequest.cc + src/model/DescribeRtcChannelMetricResult.cc src/model/StartMPUTaskRequest.cc src/model/StartMPUTaskResult.cc - src/model/StopMPUTaskRequest.cc - src/model/StopMPUTaskResult.cc src/model/StartTaskRequest.cc src/model/StartTaskResult.cc + src/model/StopMPUTaskRequest.cc + src/model/StopMPUTaskResult.cc src/model/ModifyConferenceRequest.cc src/model/ModifyConferenceResult.cc src/model/DescribeConferenceAuthInfoRequest.cc @@ -142,24 +168,34 @@ set(rtc_src src/model/MuteAudioResult.cc src/model/CreateConferenceRequest.cc src/model/CreateConferenceResult.cc - src/model/GetMPUTaskStatusRequest.cc - src/model/GetMPUTaskStatusResult.cc + src/model/DescribeRtcDurationDataRequest.cc + src/model/DescribeRtcDurationDataResult.cc src/model/DescribeRealTimeRecordDetailRequest.cc src/model/DescribeRealTimeRecordDetailResult.cc + src/model/GetMPUTaskStatusRequest.cc + src/model/GetMPUTaskStatusResult.cc + src/model/DescribeRtcChannelCntDataRequest.cc + src/model/DescribeRtcChannelCntDataResult.cc + src/model/DescribeChannelParticipantsRequest.cc + src/model/DescribeChannelParticipantsResult.cc + src/model/DescribeRtcChannelListRequest.cc + src/model/DescribeRtcChannelListResult.cc src/model/DescribeRealTimeRecordListRequest.cc src/model/DescribeRealTimeRecordListResult.cc - src/model/RemoveTerminalsRequest.cc - src/model/RemoveTerminalsResult.cc src/model/DeleteConferenceRequest.cc src/model/DeleteConferenceResult.cc + src/model/RemoveTerminalsRequest.cc + src/model/RemoveTerminalsResult.cc src/model/ReceiveNotifyRequest.cc src/model/ReceiveNotifyResult.cc src/model/UnmuteAudioAllRequest.cc src/model/UnmuteAudioAllResult.cc + src/model/CreateChannelTokenRequest.cc + src/model/CreateChannelTokenResult.cc src/model/DescribeRecordDetailRequest.cc src/model/DescribeRecordDetailResult.cc - src/model/CreateChannelTokenRequest.cc - src/model/CreateChannelTokenResult.cc ) + src/model/DescribeRtcPeakChannelCntDataRequest.cc + src/model/DescribeRtcPeakChannelCntDataResult.cc ) add_library(rtc ${LIB_TYPE} ${rtc_public_header} diff --git a/rtc/include/alibabacloud/rtc/RtcClient.h b/rtc/include/alibabacloud/rtc/RtcClient.h index 801857c23..f923923d7 100644 --- a/rtc/include/alibabacloud/rtc/RtcClient.h +++ b/rtc/include/alibabacloud/rtc/RtcClient.h @@ -36,30 +36,38 @@ #include "model/CreateTemplateResult.h" #include "model/GetTemplateInfoRequest.h" #include "model/GetTemplateInfoResult.h" -#include "model/ModifyAppRequest.h" -#include "model/ModifyAppResult.h" #include "model/DeleteChannelRequest.h" #include "model/DeleteChannelResult.h" +#include "model/ModifyAppRequest.h" +#include "model/ModifyAppResult.h" #include "model/RemoveParticipantsRequest.h" #include "model/RemoveParticipantsResult.h" #include "model/GetAllTemplateRequest.h" #include "model/GetAllTemplateResult.h" #include "model/DescribeStatisRequest.h" #include "model/DescribeStatisResult.h" +#include "model/DescribeRtcPeakUserCntDataRequest.h" +#include "model/DescribeRtcPeakUserCntDataResult.h" #include "model/CreateChannelRequest.h" #include "model/CreateChannelResult.h" -#include "model/StopTaskRequest.h" -#include "model/StopTaskResult.h" #include "model/GetTaskParamRequest.h" #include "model/GetTaskParamResult.h" +#include "model/StopTaskRequest.h" +#include "model/StopTaskResult.h" +#include "model/DescribeRtcChannelUserListRequest.h" +#include "model/DescribeRtcChannelUserListResult.h" #include "model/UpdateChannelRequest.h" #include "model/UpdateChannelResult.h" +#include "model/DescribeRtcUserCntDataRequest.h" +#include "model/DescribeRtcUserCntDataResult.h" +#include "model/DescribeRtcChannelMetricRequest.h" +#include "model/DescribeRtcChannelMetricResult.h" #include "model/StartMPUTaskRequest.h" #include "model/StartMPUTaskResult.h" -#include "model/StopMPUTaskRequest.h" -#include "model/StopMPUTaskResult.h" #include "model/StartTaskRequest.h" #include "model/StartTaskResult.h" +#include "model/StopMPUTaskRequest.h" +#include "model/StopMPUTaskResult.h" #include "model/ModifyConferenceRequest.h" #include "model/ModifyConferenceResult.h" #include "model/DescribeConferenceAuthInfoRequest.h" @@ -72,24 +80,34 @@ #include "model/MuteAudioResult.h" #include "model/CreateConferenceRequest.h" #include "model/CreateConferenceResult.h" -#include "model/GetMPUTaskStatusRequest.h" -#include "model/GetMPUTaskStatusResult.h" +#include "model/DescribeRtcDurationDataRequest.h" +#include "model/DescribeRtcDurationDataResult.h" #include "model/DescribeRealTimeRecordDetailRequest.h" #include "model/DescribeRealTimeRecordDetailResult.h" +#include "model/GetMPUTaskStatusRequest.h" +#include "model/GetMPUTaskStatusResult.h" +#include "model/DescribeRtcChannelCntDataRequest.h" +#include "model/DescribeRtcChannelCntDataResult.h" +#include "model/DescribeChannelParticipantsRequest.h" +#include "model/DescribeChannelParticipantsResult.h" +#include "model/DescribeRtcChannelListRequest.h" +#include "model/DescribeRtcChannelListResult.h" #include "model/DescribeRealTimeRecordListRequest.h" #include "model/DescribeRealTimeRecordListResult.h" -#include "model/RemoveTerminalsRequest.h" -#include "model/RemoveTerminalsResult.h" #include "model/DeleteConferenceRequest.h" #include "model/DeleteConferenceResult.h" +#include "model/RemoveTerminalsRequest.h" +#include "model/RemoveTerminalsResult.h" #include "model/ReceiveNotifyRequest.h" #include "model/ReceiveNotifyResult.h" #include "model/UnmuteAudioAllRequest.h" #include "model/UnmuteAudioAllResult.h" -#include "model/DescribeRecordDetailRequest.h" -#include "model/DescribeRecordDetailResult.h" #include "model/CreateChannelTokenRequest.h" #include "model/CreateChannelTokenResult.h" +#include "model/DescribeRecordDetailRequest.h" +#include "model/DescribeRecordDetailResult.h" +#include "model/DescribeRtcPeakChannelCntDataRequest.h" +#include "model/DescribeRtcPeakChannelCntDataResult.h" namespace AlibabaCloud @@ -120,12 +138,12 @@ namespace AlibabaCloud typedef Outcome GetTemplateInfoOutcome; typedef std::future GetTemplateInfoOutcomeCallable; typedef std::function&)> GetTemplateInfoAsyncHandler; - typedef Outcome ModifyAppOutcome; - typedef std::future ModifyAppOutcomeCallable; - typedef std::function&)> ModifyAppAsyncHandler; typedef Outcome DeleteChannelOutcome; typedef std::future DeleteChannelOutcomeCallable; typedef std::function&)> DeleteChannelAsyncHandler; + typedef Outcome ModifyAppOutcome; + typedef std::future ModifyAppOutcomeCallable; + typedef std::function&)> ModifyAppAsyncHandler; typedef Outcome RemoveParticipantsOutcome; typedef std::future RemoveParticipantsOutcomeCallable; typedef std::function&)> RemoveParticipantsAsyncHandler; @@ -135,27 +153,39 @@ namespace AlibabaCloud typedef Outcome DescribeStatisOutcome; typedef std::future DescribeStatisOutcomeCallable; typedef std::function&)> DescribeStatisAsyncHandler; + typedef Outcome DescribeRtcPeakUserCntDataOutcome; + typedef std::future DescribeRtcPeakUserCntDataOutcomeCallable; + typedef std::function&)> DescribeRtcPeakUserCntDataAsyncHandler; typedef Outcome CreateChannelOutcome; typedef std::future CreateChannelOutcomeCallable; typedef std::function&)> CreateChannelAsyncHandler; - typedef Outcome StopTaskOutcome; - typedef std::future StopTaskOutcomeCallable; - typedef std::function&)> StopTaskAsyncHandler; typedef Outcome GetTaskParamOutcome; typedef std::future GetTaskParamOutcomeCallable; typedef std::function&)> GetTaskParamAsyncHandler; + typedef Outcome StopTaskOutcome; + typedef std::future StopTaskOutcomeCallable; + typedef std::function&)> StopTaskAsyncHandler; + typedef Outcome DescribeRtcChannelUserListOutcome; + typedef std::future DescribeRtcChannelUserListOutcomeCallable; + typedef std::function&)> DescribeRtcChannelUserListAsyncHandler; typedef Outcome UpdateChannelOutcome; typedef std::future UpdateChannelOutcomeCallable; typedef std::function&)> UpdateChannelAsyncHandler; + typedef Outcome DescribeRtcUserCntDataOutcome; + typedef std::future DescribeRtcUserCntDataOutcomeCallable; + typedef std::function&)> DescribeRtcUserCntDataAsyncHandler; + typedef Outcome DescribeRtcChannelMetricOutcome; + typedef std::future DescribeRtcChannelMetricOutcomeCallable; + typedef std::function&)> DescribeRtcChannelMetricAsyncHandler; typedef Outcome StartMPUTaskOutcome; typedef std::future StartMPUTaskOutcomeCallable; typedef std::function&)> StartMPUTaskAsyncHandler; - typedef Outcome StopMPUTaskOutcome; - typedef std::future StopMPUTaskOutcomeCallable; - typedef std::function&)> StopMPUTaskAsyncHandler; typedef Outcome StartTaskOutcome; typedef std::future StartTaskOutcomeCallable; typedef std::function&)> StartTaskAsyncHandler; + typedef Outcome StopMPUTaskOutcome; + typedef std::future StopMPUTaskOutcomeCallable; + typedef std::function&)> StopMPUTaskAsyncHandler; typedef Outcome ModifyConferenceOutcome; typedef std::future ModifyConferenceOutcomeCallable; typedef std::function&)> ModifyConferenceAsyncHandler; @@ -174,33 +204,48 @@ namespace AlibabaCloud typedef Outcome CreateConferenceOutcome; typedef std::future CreateConferenceOutcomeCallable; typedef std::function&)> CreateConferenceAsyncHandler; - typedef Outcome GetMPUTaskStatusOutcome; - typedef std::future GetMPUTaskStatusOutcomeCallable; - typedef std::function&)> GetMPUTaskStatusAsyncHandler; + typedef Outcome DescribeRtcDurationDataOutcome; + typedef std::future DescribeRtcDurationDataOutcomeCallable; + typedef std::function&)> DescribeRtcDurationDataAsyncHandler; typedef Outcome DescribeRealTimeRecordDetailOutcome; typedef std::future DescribeRealTimeRecordDetailOutcomeCallable; typedef std::function&)> DescribeRealTimeRecordDetailAsyncHandler; + typedef Outcome GetMPUTaskStatusOutcome; + typedef std::future GetMPUTaskStatusOutcomeCallable; + typedef std::function&)> GetMPUTaskStatusAsyncHandler; + typedef Outcome DescribeRtcChannelCntDataOutcome; + typedef std::future DescribeRtcChannelCntDataOutcomeCallable; + typedef std::function&)> DescribeRtcChannelCntDataAsyncHandler; + typedef Outcome DescribeChannelParticipantsOutcome; + typedef std::future DescribeChannelParticipantsOutcomeCallable; + typedef std::function&)> DescribeChannelParticipantsAsyncHandler; + typedef Outcome DescribeRtcChannelListOutcome; + typedef std::future DescribeRtcChannelListOutcomeCallable; + typedef std::function&)> DescribeRtcChannelListAsyncHandler; typedef Outcome DescribeRealTimeRecordListOutcome; typedef std::future DescribeRealTimeRecordListOutcomeCallable; typedef std::function&)> DescribeRealTimeRecordListAsyncHandler; - typedef Outcome RemoveTerminalsOutcome; - typedef std::future RemoveTerminalsOutcomeCallable; - typedef std::function&)> RemoveTerminalsAsyncHandler; typedef Outcome DeleteConferenceOutcome; typedef std::future DeleteConferenceOutcomeCallable; typedef std::function&)> DeleteConferenceAsyncHandler; + typedef Outcome RemoveTerminalsOutcome; + typedef std::future RemoveTerminalsOutcomeCallable; + typedef std::function&)> RemoveTerminalsAsyncHandler; typedef Outcome ReceiveNotifyOutcome; typedef std::future ReceiveNotifyOutcomeCallable; typedef std::function&)> ReceiveNotifyAsyncHandler; typedef Outcome UnmuteAudioAllOutcome; typedef std::future UnmuteAudioAllOutcomeCallable; typedef std::function&)> UnmuteAudioAllAsyncHandler; - typedef Outcome DescribeRecordDetailOutcome; - typedef std::future DescribeRecordDetailOutcomeCallable; - typedef std::function&)> DescribeRecordDetailAsyncHandler; typedef Outcome CreateChannelTokenOutcome; typedef std::future CreateChannelTokenOutcomeCallable; typedef std::function&)> CreateChannelTokenAsyncHandler; + typedef Outcome DescribeRecordDetailOutcome; + typedef std::future DescribeRecordDetailOutcomeCallable; + typedef std::function&)> DescribeRecordDetailAsyncHandler; + typedef Outcome DescribeRtcPeakChannelCntDataOutcome; + typedef std::future DescribeRtcPeakChannelCntDataOutcomeCallable; + typedef std::function&)> DescribeRtcPeakChannelCntDataAsyncHandler; RtcClient(const Credentials &credentials, const ClientConfiguration &configuration); RtcClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -227,12 +272,12 @@ namespace AlibabaCloud GetTemplateInfoOutcome getTemplateInfo(const Model::GetTemplateInfoRequest &request)const; void getTemplateInfoAsync(const Model::GetTemplateInfoRequest& request, const GetTemplateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetTemplateInfoOutcomeCallable getTemplateInfoCallable(const Model::GetTemplateInfoRequest& request) const; - ModifyAppOutcome modifyApp(const Model::ModifyAppRequest &request)const; - void modifyAppAsync(const Model::ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAppOutcomeCallable modifyAppCallable(const Model::ModifyAppRequest& request) const; DeleteChannelOutcome deleteChannel(const Model::DeleteChannelRequest &request)const; void deleteChannelAsync(const Model::DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteChannelOutcomeCallable deleteChannelCallable(const Model::DeleteChannelRequest& request) const; + ModifyAppOutcome modifyApp(const Model::ModifyAppRequest &request)const; + void modifyAppAsync(const Model::ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAppOutcomeCallable modifyAppCallable(const Model::ModifyAppRequest& request) const; RemoveParticipantsOutcome removeParticipants(const Model::RemoveParticipantsRequest &request)const; void removeParticipantsAsync(const Model::RemoveParticipantsRequest& request, const RemoveParticipantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveParticipantsOutcomeCallable removeParticipantsCallable(const Model::RemoveParticipantsRequest& request) const; @@ -242,27 +287,39 @@ namespace AlibabaCloud DescribeStatisOutcome describeStatis(const Model::DescribeStatisRequest &request)const; void describeStatisAsync(const Model::DescribeStatisRequest& request, const DescribeStatisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStatisOutcomeCallable describeStatisCallable(const Model::DescribeStatisRequest& request) const; + DescribeRtcPeakUserCntDataOutcome describeRtcPeakUserCntData(const Model::DescribeRtcPeakUserCntDataRequest &request)const; + void describeRtcPeakUserCntDataAsync(const Model::DescribeRtcPeakUserCntDataRequest& request, const DescribeRtcPeakUserCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcPeakUserCntDataOutcomeCallable describeRtcPeakUserCntDataCallable(const Model::DescribeRtcPeakUserCntDataRequest& request) const; CreateChannelOutcome createChannel(const Model::CreateChannelRequest &request)const; void createChannelAsync(const Model::CreateChannelRequest& request, const CreateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateChannelOutcomeCallable createChannelCallable(const Model::CreateChannelRequest& request) const; - StopTaskOutcome stopTask(const Model::StopTaskRequest &request)const; - void stopTaskAsync(const Model::StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopTaskOutcomeCallable stopTaskCallable(const Model::StopTaskRequest& request) const; GetTaskParamOutcome getTaskParam(const Model::GetTaskParamRequest &request)const; void getTaskParamAsync(const Model::GetTaskParamRequest& request, const GetTaskParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetTaskParamOutcomeCallable getTaskParamCallable(const Model::GetTaskParamRequest& request) const; + StopTaskOutcome stopTask(const Model::StopTaskRequest &request)const; + void stopTaskAsync(const Model::StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopTaskOutcomeCallable stopTaskCallable(const Model::StopTaskRequest& request) const; + DescribeRtcChannelUserListOutcome describeRtcChannelUserList(const Model::DescribeRtcChannelUserListRequest &request)const; + void describeRtcChannelUserListAsync(const Model::DescribeRtcChannelUserListRequest& request, const DescribeRtcChannelUserListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcChannelUserListOutcomeCallable describeRtcChannelUserListCallable(const Model::DescribeRtcChannelUserListRequest& request) const; UpdateChannelOutcome updateChannel(const Model::UpdateChannelRequest &request)const; void updateChannelAsync(const Model::UpdateChannelRequest& request, const UpdateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateChannelOutcomeCallable updateChannelCallable(const Model::UpdateChannelRequest& request) const; + DescribeRtcUserCntDataOutcome describeRtcUserCntData(const Model::DescribeRtcUserCntDataRequest &request)const; + void describeRtcUserCntDataAsync(const Model::DescribeRtcUserCntDataRequest& request, const DescribeRtcUserCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcUserCntDataOutcomeCallable describeRtcUserCntDataCallable(const Model::DescribeRtcUserCntDataRequest& request) const; + DescribeRtcChannelMetricOutcome describeRtcChannelMetric(const Model::DescribeRtcChannelMetricRequest &request)const; + void describeRtcChannelMetricAsync(const Model::DescribeRtcChannelMetricRequest& request, const DescribeRtcChannelMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcChannelMetricOutcomeCallable describeRtcChannelMetricCallable(const Model::DescribeRtcChannelMetricRequest& request) const; StartMPUTaskOutcome startMPUTask(const Model::StartMPUTaskRequest &request)const; void startMPUTaskAsync(const Model::StartMPUTaskRequest& request, const StartMPUTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartMPUTaskOutcomeCallable startMPUTaskCallable(const Model::StartMPUTaskRequest& request) const; - StopMPUTaskOutcome stopMPUTask(const Model::StopMPUTaskRequest &request)const; - void stopMPUTaskAsync(const Model::StopMPUTaskRequest& request, const StopMPUTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopMPUTaskOutcomeCallable stopMPUTaskCallable(const Model::StopMPUTaskRequest& request) const; StartTaskOutcome startTask(const Model::StartTaskRequest &request)const; void startTaskAsync(const Model::StartTaskRequest& request, const StartTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartTaskOutcomeCallable startTaskCallable(const Model::StartTaskRequest& request) const; + StopMPUTaskOutcome stopMPUTask(const Model::StopMPUTaskRequest &request)const; + void stopMPUTaskAsync(const Model::StopMPUTaskRequest& request, const StopMPUTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopMPUTaskOutcomeCallable stopMPUTaskCallable(const Model::StopMPUTaskRequest& request) const; ModifyConferenceOutcome modifyConference(const Model::ModifyConferenceRequest &request)const; void modifyConferenceAsync(const Model::ModifyConferenceRequest& request, const ModifyConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyConferenceOutcomeCallable modifyConferenceCallable(const Model::ModifyConferenceRequest& request) const; @@ -281,33 +338,48 @@ namespace AlibabaCloud CreateConferenceOutcome createConference(const Model::CreateConferenceRequest &request)const; void createConferenceAsync(const Model::CreateConferenceRequest& request, const CreateConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateConferenceOutcomeCallable createConferenceCallable(const Model::CreateConferenceRequest& request) const; - GetMPUTaskStatusOutcome getMPUTaskStatus(const Model::GetMPUTaskStatusRequest &request)const; - void getMPUTaskStatusAsync(const Model::GetMPUTaskStatusRequest& request, const GetMPUTaskStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetMPUTaskStatusOutcomeCallable getMPUTaskStatusCallable(const Model::GetMPUTaskStatusRequest& request) const; + DescribeRtcDurationDataOutcome describeRtcDurationData(const Model::DescribeRtcDurationDataRequest &request)const; + void describeRtcDurationDataAsync(const Model::DescribeRtcDurationDataRequest& request, const DescribeRtcDurationDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcDurationDataOutcomeCallable describeRtcDurationDataCallable(const Model::DescribeRtcDurationDataRequest& request) const; DescribeRealTimeRecordDetailOutcome describeRealTimeRecordDetail(const Model::DescribeRealTimeRecordDetailRequest &request)const; void describeRealTimeRecordDetailAsync(const Model::DescribeRealTimeRecordDetailRequest& request, const DescribeRealTimeRecordDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRealTimeRecordDetailOutcomeCallable describeRealTimeRecordDetailCallable(const Model::DescribeRealTimeRecordDetailRequest& request) const; + GetMPUTaskStatusOutcome getMPUTaskStatus(const Model::GetMPUTaskStatusRequest &request)const; + void getMPUTaskStatusAsync(const Model::GetMPUTaskStatusRequest& request, const GetMPUTaskStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMPUTaskStatusOutcomeCallable getMPUTaskStatusCallable(const Model::GetMPUTaskStatusRequest& request) const; + DescribeRtcChannelCntDataOutcome describeRtcChannelCntData(const Model::DescribeRtcChannelCntDataRequest &request)const; + void describeRtcChannelCntDataAsync(const Model::DescribeRtcChannelCntDataRequest& request, const DescribeRtcChannelCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcChannelCntDataOutcomeCallable describeRtcChannelCntDataCallable(const Model::DescribeRtcChannelCntDataRequest& request) const; + DescribeChannelParticipantsOutcome describeChannelParticipants(const Model::DescribeChannelParticipantsRequest &request)const; + void describeChannelParticipantsAsync(const Model::DescribeChannelParticipantsRequest& request, const DescribeChannelParticipantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeChannelParticipantsOutcomeCallable describeChannelParticipantsCallable(const Model::DescribeChannelParticipantsRequest& request) const; + DescribeRtcChannelListOutcome describeRtcChannelList(const Model::DescribeRtcChannelListRequest &request)const; + void describeRtcChannelListAsync(const Model::DescribeRtcChannelListRequest& request, const DescribeRtcChannelListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcChannelListOutcomeCallable describeRtcChannelListCallable(const Model::DescribeRtcChannelListRequest& request) const; DescribeRealTimeRecordListOutcome describeRealTimeRecordList(const Model::DescribeRealTimeRecordListRequest &request)const; void describeRealTimeRecordListAsync(const Model::DescribeRealTimeRecordListRequest& request, const DescribeRealTimeRecordListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRealTimeRecordListOutcomeCallable describeRealTimeRecordListCallable(const Model::DescribeRealTimeRecordListRequest& request) const; - RemoveTerminalsOutcome removeTerminals(const Model::RemoveTerminalsRequest &request)const; - void removeTerminalsAsync(const Model::RemoveTerminalsRequest& request, const RemoveTerminalsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveTerminalsOutcomeCallable removeTerminalsCallable(const Model::RemoveTerminalsRequest& request) const; DeleteConferenceOutcome deleteConference(const Model::DeleteConferenceRequest &request)const; void deleteConferenceAsync(const Model::DeleteConferenceRequest& request, const DeleteConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConferenceOutcomeCallable deleteConferenceCallable(const Model::DeleteConferenceRequest& request) const; + RemoveTerminalsOutcome removeTerminals(const Model::RemoveTerminalsRequest &request)const; + void removeTerminalsAsync(const Model::RemoveTerminalsRequest& request, const RemoveTerminalsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTerminalsOutcomeCallable removeTerminalsCallable(const Model::RemoveTerminalsRequest& request) const; ReceiveNotifyOutcome receiveNotify(const Model::ReceiveNotifyRequest &request)const; void receiveNotifyAsync(const Model::ReceiveNotifyRequest& request, const ReceiveNotifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReceiveNotifyOutcomeCallable receiveNotifyCallable(const Model::ReceiveNotifyRequest& request) const; UnmuteAudioAllOutcome unmuteAudioAll(const Model::UnmuteAudioAllRequest &request)const; void unmuteAudioAllAsync(const Model::UnmuteAudioAllRequest& request, const UnmuteAudioAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnmuteAudioAllOutcomeCallable unmuteAudioAllCallable(const Model::UnmuteAudioAllRequest& request) const; - DescribeRecordDetailOutcome describeRecordDetail(const Model::DescribeRecordDetailRequest &request)const; - void describeRecordDetailAsync(const Model::DescribeRecordDetailRequest& request, const DescribeRecordDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRecordDetailOutcomeCallable describeRecordDetailCallable(const Model::DescribeRecordDetailRequest& request) const; CreateChannelTokenOutcome createChannelToken(const Model::CreateChannelTokenRequest &request)const; void createChannelTokenAsync(const Model::CreateChannelTokenRequest& request, const CreateChannelTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateChannelTokenOutcomeCallable createChannelTokenCallable(const Model::CreateChannelTokenRequest& request) const; + DescribeRecordDetailOutcome describeRecordDetail(const Model::DescribeRecordDetailRequest &request)const; + void describeRecordDetailAsync(const Model::DescribeRecordDetailRequest& request, const DescribeRecordDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecordDetailOutcomeCallable describeRecordDetailCallable(const Model::DescribeRecordDetailRequest& request) const; + DescribeRtcPeakChannelCntDataOutcome describeRtcPeakChannelCntData(const Model::DescribeRtcPeakChannelCntDataRequest &request)const; + void describeRtcPeakChannelCntDataAsync(const Model::DescribeRtcPeakChannelCntDataRequest& request, const DescribeRtcPeakChannelCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcPeakChannelCntDataOutcomeCallable describeRtcPeakChannelCntDataCallable(const Model::DescribeRtcPeakChannelCntDataRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h b/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h index 53295d789..6c29865eb 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h +++ b/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h @@ -35,77 +35,80 @@ namespace AlibabaCloud CreateChannelRequest(); ~CreateChannelRequest(); - std::string getApp_ip()const; - void setApp_ip(const std::string& app_ip); - std::string getPopProduct()const; - void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; void setProxy_original_security_transport(bool proxy_original_security_transport); - std::string getCallerBid()const; - void setCallerBid(const std::string& callerBid); - long getOwnerId()const; - void setOwnerId(long ownerId); std::string getProxy_original_source_ip()const; void setProxy_original_source_ip(const std::string& proxy_original_source_ip); - std::string getVersion()const; - void setVersion(const std::string& version); std::string getOwnerIdLoginEmail()const; void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); std::string getCallerType()const; void setCallerType(const std::string& callerType); - bool getProxy_trust_transport_info()const; - void setProxy_trust_transport_info(bool proxy_trust_transport_info); - bool getAk_mfa_present()const; - void setAk_mfa_present(bool ak_mfa_present); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - bool getSecurity_transport()const; - void setSecurity_transport(bool security_transport); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); std::string getRequestContent()const; void setRequestContent(const std::string& requestContent); - std::string getAppId()const; - void setAppId(const std::string& appId); std::string getCallerBidEmail()const; void setCallerBidEmail(const std::string& callerBidEmail); std::string getCallerUidEmail()const; void setCallerUidEmail(const std::string& callerUidEmail); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: - std::string app_ip_; - std::string popProduct_; - std::string product_; + long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; - std::string callerBid_; - long ownerId_; std::string proxy_original_source_ip_; - std::string version_; std::string ownerIdLoginEmail_; std::string callerType_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; std::string accessKeyId_; - bool security_transport_; std::string securityToken_; - std::string requestId_; std::string requestContent_; - std::string appId_; std::string callerBidEmail_; std::string callerUidEmail_; - std::string channelId_; long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string appId_; + std::string channelId_; }; } diff --git a/rtc/include/alibabacloud/rtc/model/CreateChannelTokenRequest.h b/rtc/include/alibabacloud/rtc/model/CreateChannelTokenRequest.h index d57503a6b..952c7568a 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateChannelTokenRequest.h +++ b/rtc/include/alibabacloud/rtc/model/CreateChannelTokenRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud CreateChannelTokenRequest(); ~CreateChannelTokenRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -65,8 +67,6 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); long getOwnerId()const; @@ -81,6 +81,8 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); std::string getRequestId()const; void setRequestId(const std::string& requestId); std::string getAppId()const; @@ -89,6 +91,7 @@ namespace AlibabaCloud void setChannelId(const std::string& channelId); private: + long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; std::string sessionId_; @@ -104,7 +107,6 @@ namespace AlibabaCloud long callerUid_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string callerBid_; long ownerId_; std::string version_; @@ -112,6 +114,7 @@ namespace AlibabaCloud bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; + std::string serviceCode_; std::string requestId_; std::string appId_; std::string channelId_; diff --git a/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h index c53405f48..e565104ec 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h @@ -35,77 +35,80 @@ namespace AlibabaCloud DeleteChannelRequest(); ~DeleteChannelRequest(); - std::string getApp_ip()const; - void setApp_ip(const std::string& app_ip); - std::string getPopProduct()const; - void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; void setProxy_original_security_transport(bool proxy_original_security_transport); - std::string getCallerBid()const; - void setCallerBid(const std::string& callerBid); - long getOwnerId()const; - void setOwnerId(long ownerId); std::string getProxy_original_source_ip()const; void setProxy_original_source_ip(const std::string& proxy_original_source_ip); - std::string getVersion()const; - void setVersion(const std::string& version); std::string getOwnerIdLoginEmail()const; void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); std::string getCallerType()const; void setCallerType(const std::string& callerType); - bool getProxy_trust_transport_info()const; - void setProxy_trust_transport_info(bool proxy_trust_transport_info); - bool getAk_mfa_present()const; - void setAk_mfa_present(bool ak_mfa_present); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - bool getSecurity_transport()const; - void setSecurity_transport(bool security_transport); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); std::string getRequestContent()const; void setRequestContent(const std::string& requestContent); - std::string getAppId()const; - void setAppId(const std::string& appId); std::string getCallerBidEmail()const; void setCallerBidEmail(const std::string& callerBidEmail); std::string getCallerUidEmail()const; void setCallerUidEmail(const std::string& callerUidEmail); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: - std::string app_ip_; - std::string popProduct_; - std::string product_; + long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; - std::string callerBid_; - long ownerId_; std::string proxy_original_source_ip_; - std::string version_; std::string ownerIdLoginEmail_; std::string callerType_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; std::string accessKeyId_; - bool security_transport_; std::string securityToken_; - std::string requestId_; std::string requestContent_; - std::string appId_; std::string callerBidEmail_; std::string callerUidEmail_; - std::string channelId_; long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string appId_; + std::string channelId_; }; } diff --git a/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h new file mode 100644 index 000000000..5a7c01ae9 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeChannelParticipantsRequest : public RpcServiceRequest + { + + public: + DescribeChannelParticipantsRequest(); + ~DescribeChannelParticipantsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getOrder()const; + void setOrder(const std::string& order); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + int pageNum_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string order_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string appId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsResult.h b/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsResult.h new file mode 100644 index 000000000..ca5f53fc7 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsResult.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_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeChannelParticipantsResult : public ServiceResult + { + public: + + + DescribeChannelParticipantsResult(); + explicit DescribeChannelParticipantsResult(const std::string &payload); + ~DescribeChannelParticipantsResult(); + int getTotalNum()const; + int getTotalPage()const; + std::vector getUserList()const; + int getTimestamp()const; + + protected: + void parse(const std::string &payload); + private: + int totalNum_; + int totalPage_; + std::vector userList_; + int timestamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h new file mode 100644 index 000000000..400cb3ec1 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATAREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelCntDataRequest : public RpcServiceRequest + { + + public: + DescribeRtcChannelCntDataRequest(); + ~DescribeRtcChannelCntDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getServiceArea()const; + void setServiceArea(const std::string& serviceArea); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string serviceArea_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h new file mode 100644 index 000000000..91dd8bfbd --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATARESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelCntDataResult : public ServiceResult + { + public: + struct ChannelCntModule + { + long activeChannelCnt; + std::string timeStamp; + }; + + + DescribeRtcChannelCntDataResult(); + explicit DescribeRtcChannelCntDataResult(const std::string &payload); + ~DescribeRtcChannelCntDataResult(); + std::vector getChannelCntDataPerInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector channelCntDataPerInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h new file mode 100644 index 000000000..37c76ea3b --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.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_RTC_MODEL_DESCRIBERTCCHANNELLISTREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelListRequest : public RpcServiceRequest + { + + public: + DescribeRtcChannelListRequest(); + ~DescribeRtcChannelListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSortType()const; + void setSortType(const std::string& sortType); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getServiceArea()const; + void setServiceArea(const std::string& serviceArea); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getPageNo()const; + void setPageNo(long pageNo); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + std::string getTimePoint()const; + void setTimePoint(const std::string& timePoint); + + private: + long resourceOwnerId_; + std::string sortType_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string userId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string serviceArea_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + long pageNo_; + std::string appId_; + std::string channelId_; + std::string timePoint_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h new file mode 100644 index 000000000..47ad2de4e --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelListResult : public ServiceResult + { + public: + struct ChannelListItem + { + long totalUserCnt; + std::string endTime; + std::string startTime; + std::string channelId; + std::vector callArea; + }; + + + DescribeRtcChannelListResult(); + explicit DescribeRtcChannelListResult(const std::string &payload); + ~DescribeRtcChannelListResult(); + long getPageSize()const; + long getTotalCnt()const; + long getPageNo()const; + std::vector getChannelList()const; + + protected: + void parse(const std::string &payload); + private: + long pageSize_; + long totalCnt_; + long pageNo_; + std::vector channelList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h new file mode 100644 index 000000000..213270979 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricRequest : public RpcServiceRequest + { + + public: + DescribeRtcChannelMetricRequest(); + ~DescribeRtcChannelMetricRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + std::string getTimePoint()const; + void setTimePoint(const std::string& timePoint); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + std::string appId_; + std::string channelId_; + std::string timePoint_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h new file mode 100644 index 000000000..555bfcdaf --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricResult : public ServiceResult + { + public: + struct ChannelMetricInfo + { + struct ChannelMetric + { + std::string endTime; + int userCount; + std::string startTime; + int subUserCount; + std::string channelId; + int pubUserCount; + }; + struct Duration + { + struct PubDuration + { + int video720; + int video1080; + int content; + int video360; + int audio; + }; + struct SubDuration + { + int video720; + int video1080; + int content; + int video360; + int audio; + }; + SubDuration subDuration; + PubDuration pubDuration; + }; + ChannelMetric channelMetric; + Duration duration; + }; + + + DescribeRtcChannelMetricResult(); + explicit DescribeRtcChannelMetricResult(const std::string &payload); + ~DescribeRtcChannelMetricResult(); + ChannelMetricInfo getChannelMetricInfo()const; + + protected: + void parse(const std::string &payload); + private: + ChannelMetricInfo channelMetricInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h new file mode 100644 index 000000000..5c0dfbc57 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelUserListRequest : public RpcServiceRequest + { + + public: + DescribeRtcChannelUserListRequest(); + ~DescribeRtcChannelUserListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getPageNo()const; + void setPageNo(long pageNo); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + std::string getTimePoint()const; + void setTimePoint(const std::string& timePoint); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + long pageNo_; + std::string appId_; + std::string channelId_; + std::string timePoint_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h new file mode 100644 index 000000000..f29946106 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.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_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelUserListResult : public ServiceResult + { + public: + struct UserListItem + { + int subContent; + int pubContent; + int pubVideo720; + int subVideo1080; + std::string endTime; + int pubAudio; + std::string startTime; + std::string channelId; + int pubVideo1080; + int subVideo360; + std::string serviceArea; + std::string userId; + int subAudio; + int subVideo720; + int pubVideo360; + }; + + + DescribeRtcChannelUserListResult(); + explicit DescribeRtcChannelUserListResult(const std::string &payload); + ~DescribeRtcChannelUserListResult(); + long getPageSize()const; + long getTotalCnt()const; + long getPageNo()const; + std::vector getUserList()const; + + protected: + void parse(const std::string &payload); + private: + long pageSize_; + long totalCnt_; + long pageNo_; + std::vector userList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h new file mode 100644 index 000000000..811d52146 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATAREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcDurationDataRequest : public RpcServiceRequest + { + + public: + DescribeRtcDurationDataRequest(); + ~DescribeRtcDurationDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getServiceArea()const; + void setServiceArea(const std::string& serviceArea); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string serviceArea_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h new file mode 100644 index 000000000..c4ac31c51 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATARESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcDurationDataResult : public ServiceResult + { + public: + struct DurationModule + { + long contentDuration; + long v360Duration; + long v720Duration; + long v1080Duration; + std::string timeStamp; + long totalDuration; + long audioDuration; + }; + + + DescribeRtcDurationDataResult(); + explicit DescribeRtcDurationDataResult(const std::string &payload); + ~DescribeRtcDurationDataResult(); + std::vector getDurationDataPerInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector durationDataPerInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h new file mode 100644 index 000000000..80b117d4c --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATAREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakChannelCntDataRequest : public RpcServiceRequest + { + + public: + DescribeRtcPeakChannelCntDataRequest(); + ~DescribeRtcPeakChannelCntDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getServiceArea()const; + void setServiceArea(const std::string& serviceArea); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string serviceArea_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h new file mode 100644 index 000000000..e1caf767c --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.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_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATARESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakChannelCntDataResult : public ServiceResult + { + public: + struct PeakChannelCntModule + { + long activeChannelPeak; + std::string activeChannelPeakTime; + std::string timeStamp; + }; + + + DescribeRtcPeakChannelCntDataResult(); + explicit DescribeRtcPeakChannelCntDataResult(const std::string &payload); + ~DescribeRtcPeakChannelCntDataResult(); + std::vector getPeakChannelCntDataPerInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector peakChannelCntDataPerInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h new file mode 100644 index 000000000..216d59de9 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATAREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakUserCntDataRequest : public RpcServiceRequest + { + + public: + DescribeRtcPeakUserCntDataRequest(); + ~DescribeRtcPeakUserCntDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getServiceArea()const; + void setServiceArea(const std::string& serviceArea); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string serviceArea_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h new file mode 100644 index 000000000..42f2499a6 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.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_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATARESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakUserCntDataResult : public ServiceResult + { + public: + struct PeakUserCntModule + { + std::string activeUserPeakTime; + long activeUserPeak; + std::string timeStamp; + }; + + + DescribeRtcPeakUserCntDataResult(); + explicit DescribeRtcPeakUserCntDataResult(const std::string &payload); + ~DescribeRtcPeakUserCntDataResult(); + std::vector getPeakUserCntDataPerInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector peakUserCntDataPerInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h new file mode 100644 index 000000000..160b391a0 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATAREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserCntDataRequest : public RpcServiceRequest + { + + public: + DescribeRtcUserCntDataRequest(); + ~DescribeRtcUserCntDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getServiceArea()const; + void setServiceArea(const std::string& serviceArea); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string serviceArea_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string endTime_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h new file mode 100644 index 000000000..58f5415e6 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATARESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserCntDataResult : public ServiceResult + { + public: + struct UserCntModule + { + long activeUserCnt; + std::string timeStamp; + }; + + + DescribeRtcUserCntDataResult(); + explicit DescribeRtcUserCntDataResult(const std::string &payload); + ~DescribeRtcUserCntDataResult(); + std::vector getUserCntDataPerInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector userCntDataPerInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h b/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h index 22c2b158e..204332c7c 100644 --- a/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h +++ b/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud RemoveTerminalsRequest(); ~RemoveTerminalsRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -63,8 +65,6 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); long getOwnerId()const; @@ -77,6 +77,8 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); std::string getRequestId()const; void setRequestId(const std::string& requestId); std::string getAppId()const; @@ -85,6 +87,7 @@ namespace AlibabaCloud void setChannelId(const std::string& channelId); private: + long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; std::string proxy_original_source_ip_; @@ -99,13 +102,13 @@ namespace AlibabaCloud long callerUid_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string callerBid_; long ownerId_; std::string version_; bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; + std::string serviceCode_; std::string requestId_; std::string appId_; std::string channelId_; diff --git a/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h index 735a8d669..b6b35610e 100644 --- a/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h @@ -59,12 +59,16 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); int getBackgroundColor()const; void setBackgroundColor(int backgroundColor); + int getCropMode()const; + void setCropMode(int cropMode); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); std::string getRequestContent()const; void setRequestContent(const std::string& requestContent); std::string getCallerBidEmail()const; void setCallerBidEmail(const std::string& callerBidEmail); + std::string getTaskProfile()const; + void setTaskProfile(const std::string& taskProfile); std::vector getLayoutIds()const; void setLayoutIds(const std::vector& layoutIds); std::string getCallerUidEmail()const; @@ -91,6 +95,8 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); std::string getRequestId()const; void setRequestId(const std::string& requestId); std::string getAppId()const; @@ -110,9 +116,11 @@ namespace AlibabaCloud std::string callerType_; std::string accessKeyId_; int backgroundColor_; + int cropMode_; std::string securityToken_; std::string requestContent_; std::string callerBidEmail_; + std::string taskProfile_; std::vector layoutIds_; std::string callerUidEmail_; std::string taskId_; @@ -126,6 +134,7 @@ namespace AlibabaCloud bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; + std::string serviceCode_; std::string requestId_; std::string appId_; int mediaEncode_; diff --git a/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h index e8697dbc4..14bdcf9af 100644 --- a/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud UpdateChannelRequest(); ~UpdateChannelRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -61,8 +63,6 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); long getOwnerId()const; @@ -77,6 +77,8 @@ namespace AlibabaCloud void setAk_mfa_present(bool ak_mfa_present); bool getSecurity_transport()const; void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); std::string getRequestId()const; void setRequestId(const std::string& requestId); std::string getAppId()const; @@ -85,6 +87,7 @@ namespace AlibabaCloud void setChannelId(const std::string& channelId); private: + long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; std::string proxy_original_source_ip_; @@ -98,7 +101,6 @@ namespace AlibabaCloud long callerUid_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string callerBid_; long ownerId_; std::string version_; @@ -106,6 +108,7 @@ namespace AlibabaCloud bool proxy_trust_transport_info_; bool ak_mfa_present_; bool security_transport_; + std::string serviceCode_; std::string requestId_; std::string appId_; std::string channelId_; diff --git a/rtc/src/RtcClient.cc b/rtc/src/RtcClient.cc index 2773f14ed..cd60efc3e 100644 --- a/rtc/src/RtcClient.cc +++ b/rtc/src/RtcClient.cc @@ -303,42 +303,6 @@ RtcClient::GetTemplateInfoOutcomeCallable RtcClient::getTemplateInfoCallable(con return task->get_future(); } -RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAppOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAppOutcome(ModifyAppResult(outcome.result())); - else - return ModifyAppOutcome(outcome.error()); -} - -void RtcClient::modifyAppAsync(const ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyApp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::ModifyAppOutcomeCallable RtcClient::modifyAppCallable(const ModifyAppRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyApp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DeleteChannelOutcome RtcClient::deleteChannel(const DeleteChannelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +339,42 @@ RtcClient::DeleteChannelOutcomeCallable RtcClient::deleteChannelCallable(const D return task->get_future(); } +RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAppOutcome(ModifyAppResult(outcome.result())); + else + return ModifyAppOutcome(outcome.error()); +} + +void RtcClient::modifyAppAsync(const ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::ModifyAppOutcomeCallable RtcClient::modifyAppCallable(const ModifyAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::RemoveParticipantsOutcome RtcClient::removeParticipants(const RemoveParticipantsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +483,42 @@ RtcClient::DescribeStatisOutcomeCallable RtcClient::describeStatisCallable(const return task->get_future(); } +RtcClient::DescribeRtcPeakUserCntDataOutcome RtcClient::describeRtcPeakUserCntData(const DescribeRtcPeakUserCntDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcPeakUserCntDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcPeakUserCntDataOutcome(DescribeRtcPeakUserCntDataResult(outcome.result())); + else + return DescribeRtcPeakUserCntDataOutcome(outcome.error()); +} + +void RtcClient::describeRtcPeakUserCntDataAsync(const DescribeRtcPeakUserCntDataRequest& request, const DescribeRtcPeakUserCntDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcPeakUserCntData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcPeakUserCntDataOutcomeCallable RtcClient::describeRtcPeakUserCntDataCallable(const DescribeRtcPeakUserCntDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcPeakUserCntData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::CreateChannelOutcome RtcClient::createChannel(const CreateChannelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,42 +555,6 @@ RtcClient::CreateChannelOutcomeCallable RtcClient::createChannelCallable(const C return task->get_future(); } -RtcClient::StopTaskOutcome RtcClient::stopTask(const StopTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopTaskOutcome(StopTaskResult(outcome.result())); - else - return StopTaskOutcome(outcome.error()); -} - -void RtcClient::stopTaskAsync(const StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::StopTaskOutcomeCallable RtcClient::stopTaskCallable(const StopTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::GetTaskParamOutcome RtcClient::getTaskParam(const GetTaskParamRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +591,78 @@ RtcClient::GetTaskParamOutcomeCallable RtcClient::getTaskParamCallable(const Get return task->get_future(); } +RtcClient::StopTaskOutcome RtcClient::stopTask(const StopTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopTaskOutcome(StopTaskResult(outcome.result())); + else + return StopTaskOutcome(outcome.error()); +} + +void RtcClient::stopTaskAsync(const StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::StopTaskOutcomeCallable RtcClient::stopTaskCallable(const StopTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeRtcChannelUserListOutcome RtcClient::describeRtcChannelUserList(const DescribeRtcChannelUserListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcChannelUserListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcChannelUserListOutcome(DescribeRtcChannelUserListResult(outcome.result())); + else + return DescribeRtcChannelUserListOutcome(outcome.error()); +} + +void RtcClient::describeRtcChannelUserListAsync(const DescribeRtcChannelUserListRequest& request, const DescribeRtcChannelUserListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcChannelUserList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcChannelUserListOutcomeCallable RtcClient::describeRtcChannelUserListCallable(const DescribeRtcChannelUserListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcChannelUserList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::UpdateChannelOutcome RtcClient::updateChannel(const UpdateChannelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +699,78 @@ RtcClient::UpdateChannelOutcomeCallable RtcClient::updateChannelCallable(const U return task->get_future(); } +RtcClient::DescribeRtcUserCntDataOutcome RtcClient::describeRtcUserCntData(const DescribeRtcUserCntDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcUserCntDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcUserCntDataOutcome(DescribeRtcUserCntDataResult(outcome.result())); + else + return DescribeRtcUserCntDataOutcome(outcome.error()); +} + +void RtcClient::describeRtcUserCntDataAsync(const DescribeRtcUserCntDataRequest& request, const DescribeRtcUserCntDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcUserCntData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcUserCntDataOutcomeCallable RtcClient::describeRtcUserCntDataCallable(const DescribeRtcUserCntDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcUserCntData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeRtcChannelMetricOutcome RtcClient::describeRtcChannelMetric(const DescribeRtcChannelMetricRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcChannelMetricOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcChannelMetricOutcome(DescribeRtcChannelMetricResult(outcome.result())); + else + return DescribeRtcChannelMetricOutcome(outcome.error()); +} + +void RtcClient::describeRtcChannelMetricAsync(const DescribeRtcChannelMetricRequest& request, const DescribeRtcChannelMetricAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcChannelMetric(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcChannelMetricOutcomeCallable RtcClient::describeRtcChannelMetricCallable(const DescribeRtcChannelMetricRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcChannelMetric(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::StartMPUTaskOutcome RtcClient::startMPUTask(const StartMPUTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,42 +807,6 @@ RtcClient::StartMPUTaskOutcomeCallable RtcClient::startMPUTaskCallable(const Sta return task->get_future(); } -RtcClient::StopMPUTaskOutcome RtcClient::stopMPUTask(const StopMPUTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopMPUTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopMPUTaskOutcome(StopMPUTaskResult(outcome.result())); - else - return StopMPUTaskOutcome(outcome.error()); -} - -void RtcClient::stopMPUTaskAsync(const StopMPUTaskRequest& request, const StopMPUTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopMPUTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::StopMPUTaskOutcomeCallable RtcClient::stopMPUTaskCallable(const StopMPUTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopMPUTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::StartTaskOutcome RtcClient::startTask(const StartTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +843,42 @@ RtcClient::StartTaskOutcomeCallable RtcClient::startTaskCallable(const StartTask return task->get_future(); } +RtcClient::StopMPUTaskOutcome RtcClient::stopMPUTask(const StopMPUTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopMPUTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopMPUTaskOutcome(StopMPUTaskResult(outcome.result())); + else + return StopMPUTaskOutcome(outcome.error()); +} + +void RtcClient::stopMPUTaskAsync(const StopMPUTaskRequest& request, const StopMPUTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopMPUTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::StopMPUTaskOutcomeCallable RtcClient::stopMPUTaskCallable(const StopMPUTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopMPUTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::ModifyConferenceOutcome RtcClient::modifyConference(const ModifyConferenceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,36 +1095,36 @@ RtcClient::CreateConferenceOutcomeCallable RtcClient::createConferenceCallable(c return task->get_future(); } -RtcClient::GetMPUTaskStatusOutcome RtcClient::getMPUTaskStatus(const GetMPUTaskStatusRequest &request) const +RtcClient::DescribeRtcDurationDataOutcome RtcClient::describeRtcDurationData(const DescribeRtcDurationDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetMPUTaskStatusOutcome(endpointOutcome.error()); + return DescribeRtcDurationDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetMPUTaskStatusOutcome(GetMPUTaskStatusResult(outcome.result())); + return DescribeRtcDurationDataOutcome(DescribeRtcDurationDataResult(outcome.result())); else - return GetMPUTaskStatusOutcome(outcome.error()); + return DescribeRtcDurationDataOutcome(outcome.error()); } -void RtcClient::getMPUTaskStatusAsync(const GetMPUTaskStatusRequest& request, const GetMPUTaskStatusAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::describeRtcDurationDataAsync(const DescribeRtcDurationDataRequest& request, const DescribeRtcDurationDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getMPUTaskStatus(request), context); + handler(this, request, describeRtcDurationData(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::GetMPUTaskStatusOutcomeCallable RtcClient::getMPUTaskStatusCallable(const GetMPUTaskStatusRequest &request) const +RtcClient::DescribeRtcDurationDataOutcomeCallable RtcClient::describeRtcDurationDataCallable(const DescribeRtcDurationDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getMPUTaskStatus(request); + return this->describeRtcDurationData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1023,6 +1167,150 @@ RtcClient::DescribeRealTimeRecordDetailOutcomeCallable RtcClient::describeRealTi return task->get_future(); } +RtcClient::GetMPUTaskStatusOutcome RtcClient::getMPUTaskStatus(const GetMPUTaskStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMPUTaskStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMPUTaskStatusOutcome(GetMPUTaskStatusResult(outcome.result())); + else + return GetMPUTaskStatusOutcome(outcome.error()); +} + +void RtcClient::getMPUTaskStatusAsync(const GetMPUTaskStatusRequest& request, const GetMPUTaskStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMPUTaskStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::GetMPUTaskStatusOutcomeCallable RtcClient::getMPUTaskStatusCallable(const GetMPUTaskStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMPUTaskStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeRtcChannelCntDataOutcome RtcClient::describeRtcChannelCntData(const DescribeRtcChannelCntDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcChannelCntDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcChannelCntDataOutcome(DescribeRtcChannelCntDataResult(outcome.result())); + else + return DescribeRtcChannelCntDataOutcome(outcome.error()); +} + +void RtcClient::describeRtcChannelCntDataAsync(const DescribeRtcChannelCntDataRequest& request, const DescribeRtcChannelCntDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcChannelCntData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcChannelCntDataOutcomeCallable RtcClient::describeRtcChannelCntDataCallable(const DescribeRtcChannelCntDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcChannelCntData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeChannelParticipantsOutcome RtcClient::describeChannelParticipants(const DescribeChannelParticipantsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeChannelParticipantsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeChannelParticipantsOutcome(DescribeChannelParticipantsResult(outcome.result())); + else + return DescribeChannelParticipantsOutcome(outcome.error()); +} + +void RtcClient::describeChannelParticipantsAsync(const DescribeChannelParticipantsRequest& request, const DescribeChannelParticipantsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeChannelParticipants(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeChannelParticipantsOutcomeCallable RtcClient::describeChannelParticipantsCallable(const DescribeChannelParticipantsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeChannelParticipants(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeRtcChannelListOutcome RtcClient::describeRtcChannelList(const DescribeRtcChannelListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcChannelListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcChannelListOutcome(DescribeRtcChannelListResult(outcome.result())); + else + return DescribeRtcChannelListOutcome(outcome.error()); +} + +void RtcClient::describeRtcChannelListAsync(const DescribeRtcChannelListRequest& request, const DescribeRtcChannelListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcChannelList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcChannelListOutcomeCallable RtcClient::describeRtcChannelListCallable(const DescribeRtcChannelListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcChannelList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::DescribeRealTimeRecordListOutcome RtcClient::describeRealTimeRecordList(const DescribeRealTimeRecordListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,42 +1347,6 @@ RtcClient::DescribeRealTimeRecordListOutcomeCallable RtcClient::describeRealTime return task->get_future(); } -RtcClient::RemoveTerminalsOutcome RtcClient::removeTerminals(const RemoveTerminalsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveTerminalsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveTerminalsOutcome(RemoveTerminalsResult(outcome.result())); - else - return RemoveTerminalsOutcome(outcome.error()); -} - -void RtcClient::removeTerminalsAsync(const RemoveTerminalsRequest& request, const RemoveTerminalsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeTerminals(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::RemoveTerminalsOutcomeCallable RtcClient::removeTerminalsCallable(const RemoveTerminalsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeTerminals(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DeleteConferenceOutcome RtcClient::deleteConference(const DeleteConferenceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1383,42 @@ RtcClient::DeleteConferenceOutcomeCallable RtcClient::deleteConferenceCallable(c return task->get_future(); } +RtcClient::RemoveTerminalsOutcome RtcClient::removeTerminals(const RemoveTerminalsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTerminalsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTerminalsOutcome(RemoveTerminalsResult(outcome.result())); + else + return RemoveTerminalsOutcome(outcome.error()); +} + +void RtcClient::removeTerminalsAsync(const RemoveTerminalsRequest& request, const RemoveTerminalsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTerminals(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::RemoveTerminalsOutcomeCallable RtcClient::removeTerminalsCallable(const RemoveTerminalsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTerminals(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::ReceiveNotifyOutcome RtcClient::receiveNotify(const ReceiveNotifyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,42 +1491,6 @@ RtcClient::UnmuteAudioAllOutcomeCallable RtcClient::unmuteAudioAllCallable(const return task->get_future(); } -RtcClient::DescribeRecordDetailOutcome RtcClient::describeRecordDetail(const DescribeRecordDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRecordDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRecordDetailOutcome(DescribeRecordDetailResult(outcome.result())); - else - return DescribeRecordDetailOutcome(outcome.error()); -} - -void RtcClient::describeRecordDetailAsync(const DescribeRecordDetailRequest& request, const DescribeRecordDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRecordDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRecordDetailOutcomeCallable RtcClient::describeRecordDetailCallable(const DescribeRecordDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRecordDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::CreateChannelTokenOutcome RtcClient::createChannelToken(const CreateChannelTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,3 +1527,75 @@ RtcClient::CreateChannelTokenOutcomeCallable RtcClient::createChannelTokenCallab return task->get_future(); } +RtcClient::DescribeRecordDetailOutcome RtcClient::describeRecordDetail(const DescribeRecordDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecordDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecordDetailOutcome(DescribeRecordDetailResult(outcome.result())); + else + return DescribeRecordDetailOutcome(outcome.error()); +} + +void RtcClient::describeRecordDetailAsync(const DescribeRecordDetailRequest& request, const DescribeRecordDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecordDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRecordDetailOutcomeCallable RtcClient::describeRecordDetailCallable(const DescribeRecordDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecordDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeRtcPeakChannelCntDataOutcome RtcClient::describeRtcPeakChannelCntData(const DescribeRtcPeakChannelCntDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcPeakChannelCntDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcPeakChannelCntDataOutcome(DescribeRtcPeakChannelCntDataResult(outcome.result())); + else + return DescribeRtcPeakChannelCntDataOutcome(outcome.error()); +} + +void RtcClient::describeRtcPeakChannelCntDataAsync(const DescribeRtcPeakChannelCntDataRequest& request, const DescribeRtcPeakChannelCntDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcPeakChannelCntData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcPeakChannelCntDataOutcomeCallable RtcClient::describeRtcPeakChannelCntDataCallable(const DescribeRtcPeakChannelCntDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcPeakChannelCntData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/rtc/src/model/CreateChannelRequest.cc b/rtc/src/model/CreateChannelRequest.cc index 910bf6941..6ce838e22 100644 --- a/rtc/src/model/CreateChannelRequest.cc +++ b/rtc/src/model/CreateChannelRequest.cc @@ -25,37 +25,15 @@ CreateChannelRequest::CreateChannelRequest() : CreateChannelRequest::~CreateChannelRequest() {} -std::string CreateChannelRequest::getApp_ip()const +long CreateChannelRequest::getResourceOwnerId()const { - return app_ip_; + return resourceOwnerId_; } -void CreateChannelRequest::setApp_ip(const std::string& app_ip) +void CreateChannelRequest::setResourceOwnerId(long resourceOwnerId) { - app_ip_ = app_ip; - setParameter("App_ip", app_ip); -} - -std::string CreateChannelRequest::getPopProduct()const -{ - return popProduct_; -} - -void CreateChannelRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setParameter("PopProduct", popProduct); -} - -std::string CreateChannelRequest::getProduct()const -{ - return product_; -} - -void CreateChannelRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long CreateChannelRequest::getCallerParentId()const @@ -66,7 +44,7 @@ long CreateChannelRequest::getCallerParentId()const void CreateChannelRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool CreateChannelRequest::getProxy_original_security_transport()const @@ -77,29 +55,7 @@ bool CreateChannelRequest::getProxy_original_security_transport()const void CreateChannelRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); -} - -std::string CreateChannelRequest::getCallerBid()const -{ - return callerBid_; -} - -void CreateChannelRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); -} - -long CreateChannelRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateChannelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string CreateChannelRequest::getProxy_original_source_ip()const @@ -110,18 +66,7 @@ std::string CreateChannelRequest::getProxy_original_source_ip()const void CreateChannelRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string CreateChannelRequest::getVersion()const -{ - return version_; -} - -void CreateChannelRequest::setVersion(const std::string& version) -{ - version_ = version; - setParameter("Version", version); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string CreateChannelRequest::getOwnerIdLoginEmail()const @@ -132,7 +77,7 @@ std::string CreateChannelRequest::getOwnerIdLoginEmail()const void CreateChannelRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string CreateChannelRequest::getCallerType()const @@ -143,29 +88,7 @@ std::string CreateChannelRequest::getCallerType()const void CreateChannelRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); -} - -bool CreateChannelRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void CreateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); -} - -bool CreateChannelRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void CreateChannelRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("CallerType", callerType); } std::string CreateChannelRequest::getAccessKeyId()const @@ -176,18 +99,7 @@ std::string CreateChannelRequest::getAccessKeyId()const void CreateChannelRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -bool CreateChannelRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void CreateChannelRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateChannelRequest::getSecurityToken()const @@ -198,18 +110,7 @@ std::string CreateChannelRequest::getSecurityToken()const void CreateChannelRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string CreateChannelRequest::getRequestId()const -{ - return requestId_; -} - -void CreateChannelRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("SecurityToken", securityToken); } std::string CreateChannelRequest::getRequestContent()const @@ -220,18 +121,7 @@ std::string CreateChannelRequest::getRequestContent()const void CreateChannelRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); -} - -std::string CreateChannelRequest::getAppId()const -{ - return appId_; -} - -void CreateChannelRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("RequestContent", requestContent); } std::string CreateChannelRequest::getCallerBidEmail()const @@ -242,7 +132,7 @@ std::string CreateChannelRequest::getCallerBidEmail()const void CreateChannelRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string CreateChannelRequest::getCallerUidEmail()const @@ -253,18 +143,7 @@ std::string CreateChannelRequest::getCallerUidEmail()const void CreateChannelRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); -} - -std::string CreateChannelRequest::getChannelId()const -{ - return channelId_; -} - -void CreateChannelRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("CallerUidEmail", callerUidEmail); } long CreateChannelRequest::getCallerUid()const @@ -275,6 +154,138 @@ long CreateChannelRequest::getCallerUid()const void CreateChannelRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateChannelRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateChannelRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string CreateChannelRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateChannelRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string CreateChannelRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateChannelRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long CreateChannelRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateChannelRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateChannelRequest::getVersion()const +{ + return version_; +} + +void CreateChannelRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool CreateChannelRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateChannelRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateChannelRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateChannelRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateChannelRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateChannelRequest::getServiceCode()const +{ + return serviceCode_; +} + +void CreateChannelRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string CreateChannelRequest::getRequestId()const +{ + return requestId_; +} + +void CreateChannelRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string CreateChannelRequest::getAppId()const +{ + return appId_; +} + +void CreateChannelRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string CreateChannelRequest::getChannelId()const +{ + return channelId_; +} + +void CreateChannelRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/CreateChannelResult.cc b/rtc/src/model/CreateChannelResult.cc index 324d2afae..1e1b0a3bb 100644 --- a/rtc/src/model/CreateChannelResult.cc +++ b/rtc/src/model/CreateChannelResult.cc @@ -35,10 +35,13 @@ CreateChannelResult::~CreateChannelResult() void CreateChannelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ChannelKey"].isNull()) channelKey_ = value["ChannelKey"].asString(); diff --git a/rtc/src/model/CreateChannelTokenRequest.cc b/rtc/src/model/CreateChannelTokenRequest.cc index 2a3ef883a..1f5830a21 100644 --- a/rtc/src/model/CreateChannelTokenRequest.cc +++ b/rtc/src/model/CreateChannelTokenRequest.cc @@ -25,6 +25,17 @@ CreateChannelTokenRequest::CreateChannelTokenRequest() : CreateChannelTokenRequest::~CreateChannelTokenRequest() {} +long CreateChannelTokenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateChannelTokenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + long CreateChannelTokenRequest::getCallerParentId()const { return callerParentId_; @@ -33,7 +44,7 @@ long CreateChannelTokenRequest::getCallerParentId()const void CreateChannelTokenRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool CreateChannelTokenRequest::getProxy_original_security_transport()const @@ -44,7 +55,7 @@ bool CreateChannelTokenRequest::getProxy_original_security_transport()const void CreateChannelTokenRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string CreateChannelTokenRequest::getSessionId()const @@ -55,7 +66,7 @@ std::string CreateChannelTokenRequest::getSessionId()const void CreateChannelTokenRequest::setSessionId(const std::string& sessionId) { sessionId_ = sessionId; - setParameter("SessionId", sessionId); + setCoreParameter("SessionId", sessionId); } std::string CreateChannelTokenRequest::getProxy_original_source_ip()const @@ -66,7 +77,7 @@ std::string CreateChannelTokenRequest::getProxy_original_source_ip()const void CreateChannelTokenRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string CreateChannelTokenRequest::getOwnerIdLoginEmail()const @@ -77,7 +88,7 @@ std::string CreateChannelTokenRequest::getOwnerIdLoginEmail()const void CreateChannelTokenRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string CreateChannelTokenRequest::getCallerType()const @@ -88,7 +99,7 @@ std::string CreateChannelTokenRequest::getCallerType()const void CreateChannelTokenRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string CreateChannelTokenRequest::getAccessKeyId()const @@ -99,7 +110,7 @@ std::string CreateChannelTokenRequest::getAccessKeyId()const void CreateChannelTokenRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateChannelTokenRequest::getUId()const @@ -110,7 +121,7 @@ std::string CreateChannelTokenRequest::getUId()const void CreateChannelTokenRequest::setUId(const std::string& uId) { uId_ = uId; - setParameter("UId", uId); + setCoreParameter("UId", uId); } std::string CreateChannelTokenRequest::getSecurityToken()const @@ -121,7 +132,7 @@ std::string CreateChannelTokenRequest::getSecurityToken()const void CreateChannelTokenRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string CreateChannelTokenRequest::getRequestContent()const @@ -132,7 +143,7 @@ std::string CreateChannelTokenRequest::getRequestContent()const void CreateChannelTokenRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string CreateChannelTokenRequest::getCallerBidEmail()const @@ -143,7 +154,7 @@ std::string CreateChannelTokenRequest::getCallerBidEmail()const void CreateChannelTokenRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string CreateChannelTokenRequest::getCallerUidEmail()const @@ -154,7 +165,7 @@ std::string CreateChannelTokenRequest::getCallerUidEmail()const void CreateChannelTokenRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long CreateChannelTokenRequest::getCallerUid()const @@ -165,7 +176,7 @@ long CreateChannelTokenRequest::getCallerUid()const void CreateChannelTokenRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string CreateChannelTokenRequest::getApp_ip()const @@ -176,7 +187,7 @@ std::string CreateChannelTokenRequest::getApp_ip()const void CreateChannelTokenRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string CreateChannelTokenRequest::getPopProduct()const @@ -187,18 +198,7 @@ std::string CreateChannelTokenRequest::getPopProduct()const void CreateChannelTokenRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); -} - -std::string CreateChannelTokenRequest::getProduct()const -{ - return product_; -} - -void CreateChannelTokenRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); + setCoreParameter("PopProduct", popProduct); } std::string CreateChannelTokenRequest::getCallerBid()const @@ -209,7 +209,7 @@ std::string CreateChannelTokenRequest::getCallerBid()const void CreateChannelTokenRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long CreateChannelTokenRequest::getOwnerId()const @@ -220,7 +220,7 @@ long CreateChannelTokenRequest::getOwnerId()const void CreateChannelTokenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateChannelTokenRequest::getVersion()const @@ -231,7 +231,7 @@ std::string CreateChannelTokenRequest::getVersion()const void CreateChannelTokenRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string CreateChannelTokenRequest::getNonce()const @@ -242,7 +242,7 @@ std::string CreateChannelTokenRequest::getNonce()const void CreateChannelTokenRequest::setNonce(const std::string& nonce) { nonce_ = nonce; - setParameter("Nonce", nonce); + setCoreParameter("Nonce", nonce); } bool CreateChannelTokenRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool CreateChannelTokenRequest::getProxy_trust_transport_info()const void CreateChannelTokenRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool CreateChannelTokenRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool CreateChannelTokenRequest::getAk_mfa_present()const void CreateChannelTokenRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool CreateChannelTokenRequest::getSecurity_transport()const @@ -275,7 +275,18 @@ bool CreateChannelTokenRequest::getSecurity_transport()const void CreateChannelTokenRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateChannelTokenRequest::getServiceCode()const +{ + return serviceCode_; +} + +void CreateChannelTokenRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); } std::string CreateChannelTokenRequest::getRequestId()const @@ -286,7 +297,7 @@ std::string CreateChannelTokenRequest::getRequestId()const void CreateChannelTokenRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string CreateChannelTokenRequest::getAppId()const @@ -297,7 +308,7 @@ std::string CreateChannelTokenRequest::getAppId()const void CreateChannelTokenRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string CreateChannelTokenRequest::getChannelId()const @@ -308,6 +319,6 @@ std::string CreateChannelTokenRequest::getChannelId()const void CreateChannelTokenRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/CreateChannelTokenResult.cc b/rtc/src/model/CreateChannelTokenResult.cc index e9875dc5f..53cc0c6e7 100644 --- a/rtc/src/model/CreateChannelTokenResult.cc +++ b/rtc/src/model/CreateChannelTokenResult.cc @@ -35,10 +35,13 @@ CreateChannelTokenResult::~CreateChannelTokenResult() void CreateChannelTokenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ChannelToken"].isNull()) channelToken_ = value["ChannelToken"].asString(); diff --git a/rtc/src/model/CreateConferenceRequest.cc b/rtc/src/model/CreateConferenceRequest.cc index f85a95a89..8192aa94f 100644 --- a/rtc/src/model/CreateConferenceRequest.cc +++ b/rtc/src/model/CreateConferenceRequest.cc @@ -33,7 +33,7 @@ std::string CreateConferenceRequest::getClientToken()const void CreateConferenceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long CreateConferenceRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long CreateConferenceRequest::getCallerParentId()const void CreateConferenceRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool CreateConferenceRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool CreateConferenceRequest::getProxy_original_security_transport()const void CreateConferenceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string CreateConferenceRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string CreateConferenceRequest::getStartTime()const void CreateConferenceRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string CreateConferenceRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string CreateConferenceRequest::getProxy_original_source_ip()const void CreateConferenceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string CreateConferenceRequest::getType()const @@ -88,7 +88,7 @@ std::string CreateConferenceRequest::getType()const void CreateConferenceRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string CreateConferenceRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string CreateConferenceRequest::getOwnerIdLoginEmail()const void CreateConferenceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string CreateConferenceRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string CreateConferenceRequest::getCallerType()const void CreateConferenceRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string CreateConferenceRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string CreateConferenceRequest::getAccessKeyId()const void CreateConferenceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateConferenceRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string CreateConferenceRequest::getSecurityToken()const void CreateConferenceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string CreateConferenceRequest::getConferenceName()const @@ -143,7 +143,7 @@ std::string CreateConferenceRequest::getConferenceName()const void CreateConferenceRequest::setConferenceName(const std::string& conferenceName) { conferenceName_ = conferenceName; - setParameter("ConferenceName", conferenceName); + setCoreParameter("ConferenceName", conferenceName); } std::string CreateConferenceRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string CreateConferenceRequest::getRequestContent()const void CreateConferenceRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string CreateConferenceRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string CreateConferenceRequest::getCallerBidEmail()const void CreateConferenceRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string CreateConferenceRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string CreateConferenceRequest::getCallerUidEmail()const void CreateConferenceRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long CreateConferenceRequest::getCallerUid()const @@ -187,7 +187,7 @@ long CreateConferenceRequest::getCallerUid()const void CreateConferenceRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string CreateConferenceRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string CreateConferenceRequest::getApp_ip()const void CreateConferenceRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string CreateConferenceRequest::getPopProduct()const @@ -209,7 +209,7 @@ std::string CreateConferenceRequest::getPopProduct()const void CreateConferenceRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string CreateConferenceRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string CreateConferenceRequest::getCallerBid()const void CreateConferenceRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long CreateConferenceRequest::getOwnerId()const @@ -231,7 +231,7 @@ long CreateConferenceRequest::getOwnerId()const void CreateConferenceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateConferenceRequest::getVersion()const @@ -242,7 +242,7 @@ std::string CreateConferenceRequest::getVersion()const void CreateConferenceRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool CreateConferenceRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool CreateConferenceRequest::getProxy_trust_transport_info()const void CreateConferenceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool CreateConferenceRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool CreateConferenceRequest::getAk_mfa_present()const void CreateConferenceRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool CreateConferenceRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool CreateConferenceRequest::getSecurity_transport()const void CreateConferenceRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string CreateConferenceRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string CreateConferenceRequest::getRequestId()const void CreateConferenceRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string CreateConferenceRequest::getAppId()const @@ -297,7 +297,7 @@ std::string CreateConferenceRequest::getAppId()const void CreateConferenceRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } int CreateConferenceRequest::getRemindNotice()const @@ -308,6 +308,6 @@ int CreateConferenceRequest::getRemindNotice()const void CreateConferenceRequest::setRemindNotice(int remindNotice) { remindNotice_ = remindNotice; - setParameter("RemindNotice", std::to_string(remindNotice)); + setCoreParameter("RemindNotice", std::to_string(remindNotice)); } diff --git a/rtc/src/model/CreateConferenceResult.cc b/rtc/src/model/CreateConferenceResult.cc index 1ace155a2..18b7b4cb0 100644 --- a/rtc/src/model/CreateConferenceResult.cc +++ b/rtc/src/model/CreateConferenceResult.cc @@ -35,10 +35,13 @@ CreateConferenceResult::~CreateConferenceResult() void CreateConferenceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto authInfoNode = value["AuthInfo"]; if(!authInfoNode["Key"].isNull()) diff --git a/rtc/src/model/CreateTemplateRequest.cc b/rtc/src/model/CreateTemplateRequest.cc index e3cca6036..cd6f88856 100644 --- a/rtc/src/model/CreateTemplateRequest.cc +++ b/rtc/src/model/CreateTemplateRequest.cc @@ -33,7 +33,7 @@ int CreateTemplateRequest::getServiceMode()const void CreateTemplateRequest::setServiceMode(int serviceMode) { serviceMode_ = serviceMode; - setParameter("ServiceMode", std::to_string(serviceMode)); + setCoreParameter("ServiceMode", std::to_string(serviceMode)); } std::vector CreateTemplateRequest::getLiveConfig()const @@ -48,8 +48,8 @@ void CreateTemplateRequest::setLiveConfig(const std::vector& liveCon for(int i = 0; i!= liveConfig.size(); i++) { auto obj = liveConfig.at(i); std::string str ="LiveConfig."+ std::to_string(i); - setParameter(str + ".DomainName", obj.domainName); - setParameter(str + ".AppName", obj.appName); + setCoreParameter(str + ".DomainName", obj.domainName); + setCoreParameter(str + ".AppName", obj.appName); } } @@ -61,7 +61,7 @@ long CreateTemplateRequest::getCallerParentId()const void CreateTemplateRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool CreateTemplateRequest::getProxy_original_security_transport()const @@ -72,7 +72,7 @@ bool CreateTemplateRequest::getProxy_original_security_transport()const void CreateTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } int CreateTemplateRequest::getMediaConfig()const @@ -83,7 +83,7 @@ int CreateTemplateRequest::getMediaConfig()const void CreateTemplateRequest::setMediaConfig(int mediaConfig) { mediaConfig_ = mediaConfig; - setParameter("MediaConfig", std::to_string(mediaConfig)); + setCoreParameter("MediaConfig", std::to_string(mediaConfig)); } int CreateTemplateRequest::getMaxMixStreamCount()const @@ -94,7 +94,7 @@ int CreateTemplateRequest::getMaxMixStreamCount()const void CreateTemplateRequest::setMaxMixStreamCount(int maxMixStreamCount) { maxMixStreamCount_ = maxMixStreamCount; - setParameter("MaxMixStreamCount", std::to_string(maxMixStreamCount)); + setCoreParameter("MaxMixStreamCount", std::to_string(maxMixStreamCount)); } std::string CreateTemplateRequest::getProxy_original_source_ip()const @@ -105,7 +105,7 @@ std::string CreateTemplateRequest::getProxy_original_source_ip()const void CreateTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string CreateTemplateRequest::getOwnerIdLoginEmail()const @@ -116,7 +116,7 @@ std::string CreateTemplateRequest::getOwnerIdLoginEmail()const void CreateTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string CreateTemplateRequest::getCallerType()const @@ -127,7 +127,7 @@ std::string CreateTemplateRequest::getCallerType()const void CreateTemplateRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::vector CreateTemplateRequest::getRecordConfig()const @@ -142,11 +142,11 @@ void CreateTemplateRequest::setRecordConfig(const std::vector& rec for(int i = 0; i!= recordConfig.size(); i++) { auto obj = recordConfig.at(i); std::string str ="RecordConfig."+ std::to_string(i); - setParameter(str + ".StorageType", obj.storageType); - setParameter(str + ".FileFormat", std::to_string(obj.fileFormat)); - setParameter(str + ".OssEndPoint", obj.ossEndPoint); - setParameter(str + ".OssBucket", obj.ossBucket); - setParameter(str + ".VodTransCodeGroupId", std::to_string(obj.vodTransCodeGroupId)); + setCoreParameter(str + ".StorageType", obj.storageType); + setCoreParameter(str + ".FileFormat", std::to_string(obj.fileFormat)); + setCoreParameter(str + ".OssEndPoint", obj.ossEndPoint); + setCoreParameter(str + ".OssBucket", obj.ossBucket); + setCoreParameter(str + ".VodTransCodeGroupId", std::to_string(obj.vodTransCodeGroupId)); } } @@ -158,7 +158,7 @@ std::string CreateTemplateRequest::getAccessKeyId()const void CreateTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateTemplateRequest::getSecurityToken()const @@ -169,7 +169,7 @@ std::string CreateTemplateRequest::getSecurityToken()const void CreateTemplateRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string CreateTemplateRequest::getRequestContent()const @@ -180,7 +180,7 @@ std::string CreateTemplateRequest::getRequestContent()const void CreateTemplateRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string CreateTemplateRequest::getCallerBidEmail()const @@ -191,7 +191,7 @@ std::string CreateTemplateRequest::getCallerBidEmail()const void CreateTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string CreateTemplateRequest::getCallerUidEmail()const @@ -202,7 +202,7 @@ std::string CreateTemplateRequest::getCallerUidEmail()const void CreateTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long CreateTemplateRequest::getCallerUid()const @@ -213,7 +213,7 @@ long CreateTemplateRequest::getCallerUid()const void CreateTemplateRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string CreateTemplateRequest::getApp_ip()const @@ -224,7 +224,7 @@ std::string CreateTemplateRequest::getApp_ip()const void CreateTemplateRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string CreateTemplateRequest::getPopProduct()const @@ -235,7 +235,7 @@ std::string CreateTemplateRequest::getPopProduct()const void CreateTemplateRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string CreateTemplateRequest::getCallerBid()const @@ -246,7 +246,7 @@ std::string CreateTemplateRequest::getCallerBid()const void CreateTemplateRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long CreateTemplateRequest::getOwnerId()const @@ -257,7 +257,7 @@ long CreateTemplateRequest::getOwnerId()const void CreateTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateTemplateRequest::getVersion()const @@ -268,7 +268,7 @@ std::string CreateTemplateRequest::getVersion()const void CreateTemplateRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool CreateTemplateRequest::getProxy_trust_transport_info()const @@ -279,7 +279,7 @@ bool CreateTemplateRequest::getProxy_trust_transport_info()const void CreateTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool CreateTemplateRequest::getAk_mfa_present()const @@ -290,7 +290,7 @@ bool CreateTemplateRequest::getAk_mfa_present()const void CreateTemplateRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool CreateTemplateRequest::getSecurity_transport()const @@ -301,7 +301,7 @@ bool CreateTemplateRequest::getSecurity_transport()const void CreateTemplateRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::vector CreateTemplateRequest::getLayOut()const @@ -316,9 +316,9 @@ void CreateTemplateRequest::setLayOut(const std::vector& layOut) for(int i = 0; i!= layOut.size(); i++) { auto obj = layOut.at(i); std::string str ="LayOut."+ std::to_string(i); - setParameter(str + ".Color", obj.color); - setParameter(str + ".CutMode", std::to_string(obj.cutMode)); - setParameter(str + ".LayOutId", std::to_string(obj.layOutId)); + setCoreParameter(str + ".Color", obj.color); + setCoreParameter(str + ".CutMode", std::to_string(obj.cutMode)); + setCoreParameter(str + ".LayOutId", std::to_string(obj.layOutId)); } } @@ -330,7 +330,7 @@ std::string CreateTemplateRequest::getRequestId()const void CreateTemplateRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string CreateTemplateRequest::getAppId()const @@ -341,7 +341,7 @@ std::string CreateTemplateRequest::getAppId()const void CreateTemplateRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string CreateTemplateRequest::getCallBack()const @@ -352,7 +352,7 @@ std::string CreateTemplateRequest::getCallBack()const void CreateTemplateRequest::setCallBack(const std::string& callBack) { callBack_ = callBack; - setParameter("CallBack", callBack); + setCoreParameter("CallBack", callBack); } int CreateTemplateRequest::getMixMode()const @@ -363,6 +363,6 @@ int CreateTemplateRequest::getMixMode()const void CreateTemplateRequest::setMixMode(int mixMode) { mixMode_ = mixMode; - setParameter("MixMode", std::to_string(mixMode)); + setCoreParameter("MixMode", std::to_string(mixMode)); } diff --git a/rtc/src/model/CreateTemplateResult.cc b/rtc/src/model/CreateTemplateResult.cc index 263899ac2..33dd02eca 100644 --- a/rtc/src/model/CreateTemplateResult.cc +++ b/rtc/src/model/CreateTemplateResult.cc @@ -35,10 +35,13 @@ CreateTemplateResult::~CreateTemplateResult() void CreateTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = std::stol(value["TemplateId"].asString()); diff --git a/rtc/src/model/DeleteChannelRequest.cc b/rtc/src/model/DeleteChannelRequest.cc index c4b36505a..046f2fcfd 100644 --- a/rtc/src/model/DeleteChannelRequest.cc +++ b/rtc/src/model/DeleteChannelRequest.cc @@ -25,37 +25,15 @@ DeleteChannelRequest::DeleteChannelRequest() : DeleteChannelRequest::~DeleteChannelRequest() {} -std::string DeleteChannelRequest::getApp_ip()const +long DeleteChannelRequest::getResourceOwnerId()const { - return app_ip_; + return resourceOwnerId_; } -void DeleteChannelRequest::setApp_ip(const std::string& app_ip) +void DeleteChannelRequest::setResourceOwnerId(long resourceOwnerId) { - app_ip_ = app_ip; - setParameter("App_ip", app_ip); -} - -std::string DeleteChannelRequest::getPopProduct()const -{ - return popProduct_; -} - -void DeleteChannelRequest::setPopProduct(const std::string& popProduct) -{ - popProduct_ = popProduct; - setParameter("PopProduct", popProduct); -} - -std::string DeleteChannelRequest::getProduct()const -{ - return product_; -} - -void DeleteChannelRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DeleteChannelRequest::getCallerParentId()const @@ -66,7 +44,7 @@ long DeleteChannelRequest::getCallerParentId()const void DeleteChannelRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteChannelRequest::getProxy_original_security_transport()const @@ -77,29 +55,7 @@ bool DeleteChannelRequest::getProxy_original_security_transport()const void DeleteChannelRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); -} - -std::string DeleteChannelRequest::getCallerBid()const -{ - return callerBid_; -} - -void DeleteChannelRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); -} - -long DeleteChannelRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteChannelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteChannelRequest::getProxy_original_source_ip()const @@ -110,18 +66,7 @@ std::string DeleteChannelRequest::getProxy_original_source_ip()const void DeleteChannelRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); -} - -std::string DeleteChannelRequest::getVersion()const -{ - return version_; -} - -void DeleteChannelRequest::setVersion(const std::string& version) -{ - version_ = version; - setParameter("Version", version); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DeleteChannelRequest::getOwnerIdLoginEmail()const @@ -132,7 +77,7 @@ std::string DeleteChannelRequest::getOwnerIdLoginEmail()const void DeleteChannelRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteChannelRequest::getCallerType()const @@ -143,29 +88,7 @@ std::string DeleteChannelRequest::getCallerType()const void DeleteChannelRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); -} - -bool DeleteChannelRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void DeleteChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); -} - -bool DeleteChannelRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void DeleteChannelRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("CallerType", callerType); } std::string DeleteChannelRequest::getAccessKeyId()const @@ -176,18 +99,7 @@ std::string DeleteChannelRequest::getAccessKeyId()const void DeleteChannelRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -bool DeleteChannelRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void DeleteChannelRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeleteChannelRequest::getSecurityToken()const @@ -198,18 +110,7 @@ std::string DeleteChannelRequest::getSecurityToken()const void DeleteChannelRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string DeleteChannelRequest::getRequestId()const -{ - return requestId_; -} - -void DeleteChannelRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteChannelRequest::getRequestContent()const @@ -220,18 +121,7 @@ std::string DeleteChannelRequest::getRequestContent()const void DeleteChannelRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); -} - -std::string DeleteChannelRequest::getAppId()const -{ - return appId_; -} - -void DeleteChannelRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("RequestContent", requestContent); } std::string DeleteChannelRequest::getCallerBidEmail()const @@ -242,7 +132,7 @@ std::string DeleteChannelRequest::getCallerBidEmail()const void DeleteChannelRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteChannelRequest::getCallerUidEmail()const @@ -253,18 +143,7 @@ std::string DeleteChannelRequest::getCallerUidEmail()const void DeleteChannelRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); -} - -std::string DeleteChannelRequest::getChannelId()const -{ - return channelId_; -} - -void DeleteChannelRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DeleteChannelRequest::getCallerUid()const @@ -275,6 +154,138 @@ long DeleteChannelRequest::getCallerUid()const void DeleteChannelRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteChannelRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteChannelRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DeleteChannelRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteChannelRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DeleteChannelRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteChannelRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DeleteChannelRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteChannelRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteChannelRequest::getVersion()const +{ + return version_; +} + +void DeleteChannelRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DeleteChannelRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteChannelRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteChannelRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteChannelRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteChannelRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteChannelRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DeleteChannelRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DeleteChannelRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteChannelRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DeleteChannelRequest::getAppId()const +{ + return appId_; +} + +void DeleteChannelRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DeleteChannelRequest::getChannelId()const +{ + return channelId_; +} + +void DeleteChannelRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/DeleteChannelResult.cc b/rtc/src/model/DeleteChannelResult.cc index 882e6cf47..87f4a9f62 100644 --- a/rtc/src/model/DeleteChannelResult.cc +++ b/rtc/src/model/DeleteChannelResult.cc @@ -35,10 +35,13 @@ DeleteChannelResult::~DeleteChannelResult() void DeleteChannelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/rtc/src/model/DeleteConferenceRequest.cc b/rtc/src/model/DeleteConferenceRequest.cc index f04a2a948..e72238074 100644 --- a/rtc/src/model/DeleteConferenceRequest.cc +++ b/rtc/src/model/DeleteConferenceRequest.cc @@ -33,7 +33,7 @@ std::string DeleteConferenceRequest::getApp_ip()const void DeleteConferenceRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DeleteConferenceRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DeleteConferenceRequest::getPopProduct()const void DeleteConferenceRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long DeleteConferenceRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DeleteConferenceRequest::getCallerParentId()const void DeleteConferenceRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteConferenceRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool DeleteConferenceRequest::getProxy_original_security_transport()const void DeleteConferenceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteConferenceRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string DeleteConferenceRequest::getCallerBid()const void DeleteConferenceRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DeleteConferenceRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DeleteConferenceRequest::getOwnerId()const void DeleteConferenceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteConferenceRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string DeleteConferenceRequest::getProxy_original_source_ip()const void DeleteConferenceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DeleteConferenceRequest::getVersion()const @@ -110,7 +110,7 @@ std::string DeleteConferenceRequest::getVersion()const void DeleteConferenceRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DeleteConferenceRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string DeleteConferenceRequest::getOwnerIdLoginEmail()const void DeleteConferenceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteConferenceRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string DeleteConferenceRequest::getCallerType()const void DeleteConferenceRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DeleteConferenceRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool DeleteConferenceRequest::getProxy_trust_transport_info()const void DeleteConferenceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DeleteConferenceRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool DeleteConferenceRequest::getAk_mfa_present()const void DeleteConferenceRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DeleteConferenceRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string DeleteConferenceRequest::getAccessKeyId()const void DeleteConferenceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DeleteConferenceRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool DeleteConferenceRequest::getSecurity_transport()const void DeleteConferenceRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DeleteConferenceRequest::getSecurityToken()const @@ -187,7 +187,7 @@ std::string DeleteConferenceRequest::getSecurityToken()const void DeleteConferenceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteConferenceRequest::getConferenceId()const @@ -198,7 +198,7 @@ std::string DeleteConferenceRequest::getConferenceId()const void DeleteConferenceRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string DeleteConferenceRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string DeleteConferenceRequest::getRequestId()const void DeleteConferenceRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DeleteConferenceRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string DeleteConferenceRequest::getRequestContent()const void DeleteConferenceRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DeleteConferenceRequest::getAppId()const @@ -231,7 +231,7 @@ std::string DeleteConferenceRequest::getAppId()const void DeleteConferenceRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string DeleteConferenceRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DeleteConferenceRequest::getCallerBidEmail()const void DeleteConferenceRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteConferenceRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DeleteConferenceRequest::getCallerUidEmail()const void DeleteConferenceRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DeleteConferenceRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DeleteConferenceRequest::getCallerUid()const void DeleteConferenceRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/DeleteConferenceResult.cc b/rtc/src/model/DeleteConferenceResult.cc index 0211a179c..e40a7bc83 100644 --- a/rtc/src/model/DeleteConferenceResult.cc +++ b/rtc/src/model/DeleteConferenceResult.cc @@ -35,10 +35,13 @@ DeleteConferenceResult::~DeleteConferenceResult() void DeleteConferenceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ConferenceId"].isNull()) conferenceId_ = value["ConferenceId"].asString(); diff --git a/rtc/src/model/DeleteTemplateRequest.cc b/rtc/src/model/DeleteTemplateRequest.cc index d566b5b80..5ccedcc85 100644 --- a/rtc/src/model/DeleteTemplateRequest.cc +++ b/rtc/src/model/DeleteTemplateRequest.cc @@ -33,7 +33,7 @@ std::string DeleteTemplateRequest::getApp_ip()const void DeleteTemplateRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DeleteTemplateRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DeleteTemplateRequest::getPopProduct()const void DeleteTemplateRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long DeleteTemplateRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DeleteTemplateRequest::getCallerParentId()const void DeleteTemplateRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteTemplateRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool DeleteTemplateRequest::getProxy_original_security_transport()const void DeleteTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteTemplateRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string DeleteTemplateRequest::getCallerBid()const void DeleteTemplateRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DeleteTemplateRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DeleteTemplateRequest::getOwnerId()const void DeleteTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteTemplateRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string DeleteTemplateRequest::getProxy_original_source_ip()const void DeleteTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } long DeleteTemplateRequest::getTemplateId()const @@ -110,7 +110,7 @@ long DeleteTemplateRequest::getTemplateId()const void DeleteTemplateRequest::setTemplateId(long templateId) { templateId_ = templateId; - setParameter("TemplateId", std::to_string(templateId)); + setCoreParameter("TemplateId", std::to_string(templateId)); } std::string DeleteTemplateRequest::getVersion()const @@ -121,7 +121,7 @@ std::string DeleteTemplateRequest::getVersion()const void DeleteTemplateRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DeleteTemplateRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string DeleteTemplateRequest::getOwnerIdLoginEmail()const void DeleteTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteTemplateRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string DeleteTemplateRequest::getCallerType()const void DeleteTemplateRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DeleteTemplateRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool DeleteTemplateRequest::getProxy_trust_transport_info()const void DeleteTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DeleteTemplateRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool DeleteTemplateRequest::getAk_mfa_present()const void DeleteTemplateRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DeleteTemplateRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string DeleteTemplateRequest::getAccessKeyId()const void DeleteTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DeleteTemplateRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool DeleteTemplateRequest::getSecurity_transport()const void DeleteTemplateRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DeleteTemplateRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string DeleteTemplateRequest::getSecurityToken()const void DeleteTemplateRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteTemplateRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string DeleteTemplateRequest::getRequestId()const void DeleteTemplateRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DeleteTemplateRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string DeleteTemplateRequest::getRequestContent()const void DeleteTemplateRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DeleteTemplateRequest::getAppId()const @@ -231,7 +231,7 @@ std::string DeleteTemplateRequest::getAppId()const void DeleteTemplateRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string DeleteTemplateRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DeleteTemplateRequest::getCallerBidEmail()const void DeleteTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteTemplateRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DeleteTemplateRequest::getCallerUidEmail()const void DeleteTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DeleteTemplateRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DeleteTemplateRequest::getCallerUid()const void DeleteTemplateRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/DeleteTemplateResult.cc b/rtc/src/model/DeleteTemplateResult.cc index 90e7b58ec..ebd722477 100644 --- a/rtc/src/model/DeleteTemplateResult.cc +++ b/rtc/src/model/DeleteTemplateResult.cc @@ -35,10 +35,13 @@ DeleteTemplateResult::~DeleteTemplateResult() void DeleteTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/rtc/src/model/DescribeAppsRequest.cc b/rtc/src/model/DescribeAppsRequest.cc index 75baa1f6a..b85ce7ac2 100644 --- a/rtc/src/model/DescribeAppsRequest.cc +++ b/rtc/src/model/DescribeAppsRequest.cc @@ -33,7 +33,7 @@ long DescribeAppsRequest::getCallerParentId()const void DescribeAppsRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeAppsRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeAppsRequest::getProxy_original_security_transport()const void DescribeAppsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeAppsRequest::getProxy_original_source_ip()const @@ -55,7 +55,7 @@ std::string DescribeAppsRequest::getProxy_original_source_ip()const void DescribeAppsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } int DescribeAppsRequest::getPageNum()const @@ -66,7 +66,7 @@ int DescribeAppsRequest::getPageNum()const void DescribeAppsRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string DescribeAppsRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeAppsRequest::getOwnerIdLoginEmail()const void DescribeAppsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeAppsRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeAppsRequest::getCallerType()const void DescribeAppsRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeAppsRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeAppsRequest::getAccessKeyId()const void DescribeAppsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeAppsRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeAppsRequest::getSecurityToken()const void DescribeAppsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeAppsRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeAppsRequest::getRequestContent()const void DescribeAppsRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } int DescribeAppsRequest::getPageSize()const @@ -132,7 +132,7 @@ int DescribeAppsRequest::getPageSize()const void DescribeAppsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeAppsRequest::getCallerBidEmail()const @@ -143,7 +143,7 @@ std::string DescribeAppsRequest::getCallerBidEmail()const void DescribeAppsRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeAppsRequest::getCallerUidEmail()const @@ -154,7 +154,7 @@ std::string DescribeAppsRequest::getCallerUidEmail()const void DescribeAppsRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeAppsRequest::getCallerUid()const @@ -165,7 +165,7 @@ long DescribeAppsRequest::getCallerUid()const void DescribeAppsRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeAppsRequest::getOrder()const @@ -176,7 +176,7 @@ std::string DescribeAppsRequest::getOrder()const void DescribeAppsRequest::setOrder(const std::string& order) { order_ = order; - setParameter("Order", order); + setCoreParameter("Order", order); } std::string DescribeAppsRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeAppsRequest::getApp_ip()const void DescribeAppsRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeAppsRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeAppsRequest::getPopProduct()const void DescribeAppsRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeAppsRequest::getCallerBid()const @@ -209,7 +209,7 @@ std::string DescribeAppsRequest::getCallerBid()const void DescribeAppsRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeAppsRequest::getOwnerId()const @@ -220,7 +220,7 @@ long DescribeAppsRequest::getOwnerId()const void DescribeAppsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeAppsRequest::getVersion()const @@ -231,7 +231,7 @@ std::string DescribeAppsRequest::getVersion()const void DescribeAppsRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeAppsRequest::getProxy_trust_transport_info()const @@ -242,7 +242,7 @@ bool DescribeAppsRequest::getProxy_trust_transport_info()const void DescribeAppsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeAppsRequest::getAk_mfa_present()const @@ -253,7 +253,7 @@ bool DescribeAppsRequest::getAk_mfa_present()const void DescribeAppsRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeAppsRequest::getSecurity_transport()const @@ -264,7 +264,7 @@ bool DescribeAppsRequest::getSecurity_transport()const void DescribeAppsRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeAppsRequest::getRequestId()const @@ -275,7 +275,7 @@ std::string DescribeAppsRequest::getRequestId()const void DescribeAppsRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeAppsRequest::getAppId()const @@ -286,7 +286,7 @@ std::string DescribeAppsRequest::getAppId()const void DescribeAppsRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string DescribeAppsRequest::getStatus()const @@ -297,6 +297,6 @@ std::string DescribeAppsRequest::getStatus()const void DescribeAppsRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/rtc/src/model/DescribeAppsResult.cc b/rtc/src/model/DescribeAppsResult.cc index 0999c88de..fc5aa222c 100644 --- a/rtc/src/model/DescribeAppsResult.cc +++ b/rtc/src/model/DescribeAppsResult.cc @@ -35,10 +35,13 @@ DescribeAppsResult::~DescribeAppsResult() void DescribeAppsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppList = value["AppList"]["App"]; for (auto value : allAppList) diff --git a/rtc/src/model/DescribeChannelParticipantsRequest.cc b/rtc/src/model/DescribeChannelParticipantsRequest.cc new file mode 100644 index 000000000..01e8a44e3 --- /dev/null +++ b/rtc/src/model/DescribeChannelParticipantsRequest.cc @@ -0,0 +1,324 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeChannelParticipantsRequest; + +DescribeChannelParticipantsRequest::DescribeChannelParticipantsRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelParticipants") +{} + +DescribeChannelParticipantsRequest::~DescribeChannelParticipantsRequest() +{} + +long DescribeChannelParticipantsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeChannelParticipantsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeChannelParticipantsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeChannelParticipantsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeChannelParticipantsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeChannelParticipantsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeChannelParticipantsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeChannelParticipantsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +int DescribeChannelParticipantsRequest::getPageNum()const +{ + return pageNum_; +} + +void DescribeChannelParticipantsRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); +} + +std::string DescribeChannelParticipantsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeChannelParticipantsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeChannelParticipantsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeChannelParticipantsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeChannelParticipantsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeChannelParticipantsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeChannelParticipantsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeChannelParticipantsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeChannelParticipantsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeChannelParticipantsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +int DescribeChannelParticipantsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeChannelParticipantsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeChannelParticipantsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeChannelParticipantsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeChannelParticipantsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeChannelParticipantsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeChannelParticipantsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeChannelParticipantsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeChannelParticipantsRequest::getOrder()const +{ + return order_; +} + +void DescribeChannelParticipantsRequest::setOrder(const std::string& order) +{ + order_ = order; + setCoreParameter("Order", order); +} + +std::string DescribeChannelParticipantsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeChannelParticipantsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeChannelParticipantsRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeChannelParticipantsRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeChannelParticipantsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeChannelParticipantsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeChannelParticipantsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeChannelParticipantsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeChannelParticipantsRequest::getVersion()const +{ + return version_; +} + +void DescribeChannelParticipantsRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeChannelParticipantsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeChannelParticipantsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeChannelParticipantsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeChannelParticipantsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeChannelParticipantsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeChannelParticipantsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeChannelParticipantsRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeChannelParticipantsRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeChannelParticipantsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeChannelParticipantsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeChannelParticipantsRequest::getAppId()const +{ + return appId_; +} + +void DescribeChannelParticipantsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeChannelParticipantsRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeChannelParticipantsRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/DescribeChannelParticipantsResult.cc b/rtc/src/model/DescribeChannelParticipantsResult.cc new file mode 100644 index 000000000..f09334111 --- /dev/null +++ b/rtc/src/model/DescribeChannelParticipantsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeChannelParticipantsResult::DescribeChannelParticipantsResult() : + ServiceResult() +{} + +DescribeChannelParticipantsResult::DescribeChannelParticipantsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeChannelParticipantsResult::~DescribeChannelParticipantsResult() +{} + +void DescribeChannelParticipantsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allUserList = value["UserList"]["User"]; + for (const auto &item : allUserList) + userList_.push_back(item.asString()); + if(!value["Timestamp"].isNull()) + timestamp_ = std::stoi(value["Timestamp"].asString()); + if(!value["TotalNum"].isNull()) + totalNum_ = std::stoi(value["TotalNum"].asString()); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stoi(value["TotalPage"].asString()); + +} + +int DescribeChannelParticipantsResult::getTotalNum()const +{ + return totalNum_; +} + +int DescribeChannelParticipantsResult::getTotalPage()const +{ + return totalPage_; +} + +std::vector DescribeChannelParticipantsResult::getUserList()const +{ + return userList_; +} + +int DescribeChannelParticipantsResult::getTimestamp()const +{ + return timestamp_; +} + diff --git a/rtc/src/model/DescribeConferenceAuthInfoRequest.cc b/rtc/src/model/DescribeConferenceAuthInfoRequest.cc index 127e9f822..46f2dd5e5 100644 --- a/rtc/src/model/DescribeConferenceAuthInfoRequest.cc +++ b/rtc/src/model/DescribeConferenceAuthInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeConferenceAuthInfoRequest::getApp_ip()const void DescribeConferenceAuthInfoRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeConferenceAuthInfoRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeConferenceAuthInfoRequest::getPopProduct()const void DescribeConferenceAuthInfoRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long DescribeConferenceAuthInfoRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DescribeConferenceAuthInfoRequest::getCallerParentId()const void DescribeConferenceAuthInfoRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeConferenceAuthInfoRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool DescribeConferenceAuthInfoRequest::getProxy_original_security_transport()co void DescribeConferenceAuthInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeConferenceAuthInfoRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerBid()const void DescribeConferenceAuthInfoRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeConferenceAuthInfoRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeConferenceAuthInfoRequest::getOwnerId()const void DescribeConferenceAuthInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeConferenceAuthInfoRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string DescribeConferenceAuthInfoRequest::getProxy_original_source_ip()cons void DescribeConferenceAuthInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeConferenceAuthInfoRequest::getVersion()const @@ -110,7 +110,7 @@ std::string DescribeConferenceAuthInfoRequest::getVersion()const void DescribeConferenceAuthInfoRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeConferenceAuthInfoRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string DescribeConferenceAuthInfoRequest::getOwnerIdLoginEmail()const void DescribeConferenceAuthInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeConferenceAuthInfoRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerType()const void DescribeConferenceAuthInfoRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeConferenceAuthInfoRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool DescribeConferenceAuthInfoRequest::getProxy_trust_transport_info()const void DescribeConferenceAuthInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeConferenceAuthInfoRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool DescribeConferenceAuthInfoRequest::getAk_mfa_present()const void DescribeConferenceAuthInfoRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeConferenceAuthInfoRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string DescribeConferenceAuthInfoRequest::getAccessKeyId()const void DescribeConferenceAuthInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeConferenceAuthInfoRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool DescribeConferenceAuthInfoRequest::getSecurity_transport()const void DescribeConferenceAuthInfoRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeConferenceAuthInfoRequest::getSecurityToken()const @@ -187,7 +187,7 @@ std::string DescribeConferenceAuthInfoRequest::getSecurityToken()const void DescribeConferenceAuthInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeConferenceAuthInfoRequest::getConferenceId()const @@ -198,7 +198,7 @@ std::string DescribeConferenceAuthInfoRequest::getConferenceId()const void DescribeConferenceAuthInfoRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string DescribeConferenceAuthInfoRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string DescribeConferenceAuthInfoRequest::getRequestId()const void DescribeConferenceAuthInfoRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeConferenceAuthInfoRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string DescribeConferenceAuthInfoRequest::getRequestContent()const void DescribeConferenceAuthInfoRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeConferenceAuthInfoRequest::getAppId()const @@ -231,7 +231,7 @@ std::string DescribeConferenceAuthInfoRequest::getAppId()const void DescribeConferenceAuthInfoRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string DescribeConferenceAuthInfoRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerBidEmail()const void DescribeConferenceAuthInfoRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeConferenceAuthInfoRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerUidEmail()const void DescribeConferenceAuthInfoRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeConferenceAuthInfoRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeConferenceAuthInfoRequest::getCallerUid()const void DescribeConferenceAuthInfoRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/DescribeConferenceAuthInfoResult.cc b/rtc/src/model/DescribeConferenceAuthInfoResult.cc index 9f19149da..df590c5d7 100644 --- a/rtc/src/model/DescribeConferenceAuthInfoResult.cc +++ b/rtc/src/model/DescribeConferenceAuthInfoResult.cc @@ -35,10 +35,13 @@ DescribeConferenceAuthInfoResult::~DescribeConferenceAuthInfoResult() void DescribeConferenceAuthInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto authInfoNode = value["AuthInfo"]; if(!authInfoNode["Key"].isNull()) diff --git a/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc b/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc index b93eb04b6..510c83fa8 100644 --- a/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc +++ b/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRealTimeRecordDetailRequest::getApp_ip()const void DescribeRealTimeRecordDetailRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeRealTimeRecordDetailRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeRealTimeRecordDetailRequest::getPopProduct()const void DescribeRealTimeRecordDetailRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long DescribeRealTimeRecordDetailRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DescribeRealTimeRecordDetailRequest::getCallerParentId()const void DescribeRealTimeRecordDetailRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeRealTimeRecordDetailRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool DescribeRealTimeRecordDetailRequest::getProxy_original_security_transport() void DescribeRealTimeRecordDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeRealTimeRecordDetailRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerBid()const void DescribeRealTimeRecordDetailRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeRealTimeRecordDetailRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeRealTimeRecordDetailRequest::getOwnerId()const void DescribeRealTimeRecordDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRealTimeRecordDetailRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string DescribeRealTimeRecordDetailRequest::getProxy_original_source_ip()co void DescribeRealTimeRecordDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeRealTimeRecordDetailRequest::getVersion()const @@ -110,7 +110,7 @@ std::string DescribeRealTimeRecordDetailRequest::getVersion()const void DescribeRealTimeRecordDetailRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeRealTimeRecordDetailRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string DescribeRealTimeRecordDetailRequest::getOwnerIdLoginEmail()const void DescribeRealTimeRecordDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeRealTimeRecordDetailRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerType()const void DescribeRealTimeRecordDetailRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeRealTimeRecordDetailRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool DescribeRealTimeRecordDetailRequest::getProxy_trust_transport_info()const void DescribeRealTimeRecordDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeRealTimeRecordDetailRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool DescribeRealTimeRecordDetailRequest::getAk_mfa_present()const void DescribeRealTimeRecordDetailRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeRealTimeRecordDetailRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string DescribeRealTimeRecordDetailRequest::getAccessKeyId()const void DescribeRealTimeRecordDetailRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeRealTimeRecordDetailRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool DescribeRealTimeRecordDetailRequest::getSecurity_transport()const void DescribeRealTimeRecordDetailRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeRealTimeRecordDetailRequest::getRecordId()const @@ -187,7 +187,7 @@ std::string DescribeRealTimeRecordDetailRequest::getRecordId()const void DescribeRealTimeRecordDetailRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string DescribeRealTimeRecordDetailRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string DescribeRealTimeRecordDetailRequest::getSecurityToken()const void DescribeRealTimeRecordDetailRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeRealTimeRecordDetailRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string DescribeRealTimeRecordDetailRequest::getRequestId()const void DescribeRealTimeRecordDetailRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeRealTimeRecordDetailRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string DescribeRealTimeRecordDetailRequest::getRequestContent()const void DescribeRealTimeRecordDetailRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeRealTimeRecordDetailRequest::getAppId()const @@ -231,7 +231,7 @@ std::string DescribeRealTimeRecordDetailRequest::getAppId()const void DescribeRealTimeRecordDetailRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string DescribeRealTimeRecordDetailRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerBidEmail()const void DescribeRealTimeRecordDetailRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeRealTimeRecordDetailRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerUidEmail()const void DescribeRealTimeRecordDetailRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string DescribeRealTimeRecordDetailRequest::getChannelId()const @@ -264,7 +264,7 @@ std::string DescribeRealTimeRecordDetailRequest::getChannelId()const void DescribeRealTimeRecordDetailRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } long DescribeRealTimeRecordDetailRequest::getCallerUid()const @@ -275,6 +275,6 @@ long DescribeRealTimeRecordDetailRequest::getCallerUid()const void DescribeRealTimeRecordDetailRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/DescribeRealTimeRecordDetailResult.cc b/rtc/src/model/DescribeRealTimeRecordDetailResult.cc index 45d925d2c..99b742fb0 100644 --- a/rtc/src/model/DescribeRealTimeRecordDetailResult.cc +++ b/rtc/src/model/DescribeRealTimeRecordDetailResult.cc @@ -35,10 +35,13 @@ DescribeRealTimeRecordDetailResult::~DescribeRealTimeRecordDetailResult() void DescribeRealTimeRecordDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordDetailInfos = value["RecordDetailInfos"]["RecordDetailInfo"]; for (auto value : allRecordDetailInfos) diff --git a/rtc/src/model/DescribeRealTimeRecordListRequest.cc b/rtc/src/model/DescribeRealTimeRecordListRequest.cc index a177c444b..384b88662 100644 --- a/rtc/src/model/DescribeRealTimeRecordListRequest.cc +++ b/rtc/src/model/DescribeRealTimeRecordListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRealTimeRecordListRequest::getApp_ip()const void DescribeRealTimeRecordListRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeRealTimeRecordListRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeRealTimeRecordListRequest::getPopProduct()const void DescribeRealTimeRecordListRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long DescribeRealTimeRecordListRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DescribeRealTimeRecordListRequest::getCallerParentId()const void DescribeRealTimeRecordListRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeRealTimeRecordListRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool DescribeRealTimeRecordListRequest::getProxy_original_security_transport()co void DescribeRealTimeRecordListRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeRealTimeRecordListRequest::getEndTime()const @@ -77,7 +77,7 @@ std::string DescribeRealTimeRecordListRequest::getEndTime()const void DescribeRealTimeRecordListRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeRealTimeRecordListRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerBid()const void DescribeRealTimeRecordListRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } std::string DescribeRealTimeRecordListRequest::getStartTime()const @@ -99,7 +99,7 @@ std::string DescribeRealTimeRecordListRequest::getStartTime()const void DescribeRealTimeRecordListRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeRealTimeRecordListRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeRealTimeRecordListRequest::getOwnerId()const void DescribeRealTimeRecordListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRealTimeRecordListRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeRealTimeRecordListRequest::getProxy_original_source_ip()cons void DescribeRealTimeRecordListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeRealTimeRecordListRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeRealTimeRecordListRequest::getVersion()const void DescribeRealTimeRecordListRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeRealTimeRecordListRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeRealTimeRecordListRequest::getOwnerIdLoginEmail()const void DescribeRealTimeRecordListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeRealTimeRecordListRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerType()const void DescribeRealTimeRecordListRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeRealTimeRecordListRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeRealTimeRecordListRequest::getProxy_trust_transport_info()const void DescribeRealTimeRecordListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeRealTimeRecordListRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeRealTimeRecordListRequest::getAk_mfa_present()const void DescribeRealTimeRecordListRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeRealTimeRecordListRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeRealTimeRecordListRequest::getAccessKeyId()const void DescribeRealTimeRecordListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeRealTimeRecordListRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeRealTimeRecordListRequest::getSecurity_transport()const void DescribeRealTimeRecordListRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeRealTimeRecordListRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeRealTimeRecordListRequest::getSecurityToken()const void DescribeRealTimeRecordListRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeRealTimeRecordListRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeRealTimeRecordListRequest::getRequestId()const void DescribeRealTimeRecordListRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeRealTimeRecordListRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeRealTimeRecordListRequest::getRequestContent()const void DescribeRealTimeRecordListRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeRealTimeRecordListRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerBidEmail()const void DescribeRealTimeRecordListRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeRealTimeRecordListRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerUidEmail()const void DescribeRealTimeRecordListRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeRealTimeRecordListRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeRealTimeRecordListRequest::getCallerUid()const void DescribeRealTimeRecordListRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/DescribeRealTimeRecordListResult.cc b/rtc/src/model/DescribeRealTimeRecordListResult.cc index 90841cbca..15bff28ae 100644 --- a/rtc/src/model/DescribeRealTimeRecordListResult.cc +++ b/rtc/src/model/DescribeRealTimeRecordListResult.cc @@ -35,10 +35,13 @@ DescribeRealTimeRecordListResult::~DescribeRealTimeRecordListResult() void DescribeRealTimeRecordListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCommunicationRecordInfos = value["CommunicationRecordInfos"]["CommunicationRecordInfo"]; for (auto value : allCommunicationRecordInfos) diff --git a/rtc/src/model/DescribeRecordDetailRequest.cc b/rtc/src/model/DescribeRecordDetailRequest.cc index c41e04ae6..32d7df269 100644 --- a/rtc/src/model/DescribeRecordDetailRequest.cc +++ b/rtc/src/model/DescribeRecordDetailRequest.cc @@ -33,7 +33,7 @@ long DescribeRecordDetailRequest::getCallerParentId()const void DescribeRecordDetailRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeRecordDetailRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeRecordDetailRequest::getProxy_original_security_transport()const void DescribeRecordDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeRecordDetailRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeRecordDetailRequest::getStartTime()const void DescribeRecordDetailRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeRecordDetailRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeRecordDetailRequest::getProxy_original_source_ip()const void DescribeRecordDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeRecordDetailRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeRecordDetailRequest::getOwnerIdLoginEmail()const void DescribeRecordDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeRecordDetailRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeRecordDetailRequest::getCallerType()const void DescribeRecordDetailRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeRecordDetailRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeRecordDetailRequest::getAccessKeyId()const void DescribeRecordDetailRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeRecordDetailRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeRecordDetailRequest::getSecurityToken()const void DescribeRecordDetailRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeRecordDetailRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeRecordDetailRequest::getRequestContent()const void DescribeRecordDetailRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeRecordDetailRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeRecordDetailRequest::getCallerBidEmail()const void DescribeRecordDetailRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeRecordDetailRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeRecordDetailRequest::getCallerUidEmail()const void DescribeRecordDetailRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeRecordDetailRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeRecordDetailRequest::getCallerUid()const void DescribeRecordDetailRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeRecordDetailRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeRecordDetailRequest::getApp_ip()const void DescribeRecordDetailRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeRecordDetailRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeRecordDetailRequest::getPopProduct()const void DescribeRecordDetailRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeRecordDetailRequest::getEndTime()const @@ -187,7 +187,7 @@ std::string DescribeRecordDetailRequest::getEndTime()const void DescribeRecordDetailRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeRecordDetailRequest::getCallerBid()const @@ -198,7 +198,7 @@ std::string DescribeRecordDetailRequest::getCallerBid()const void DescribeRecordDetailRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeRecordDetailRequest::getOwnerId()const @@ -209,7 +209,7 @@ long DescribeRecordDetailRequest::getOwnerId()const void DescribeRecordDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRecordDetailRequest::getVersion()const @@ -220,7 +220,7 @@ std::string DescribeRecordDetailRequest::getVersion()const void DescribeRecordDetailRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeRecordDetailRequest::getProxy_trust_transport_info()const @@ -231,7 +231,7 @@ bool DescribeRecordDetailRequest::getProxy_trust_transport_info()const void DescribeRecordDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeRecordDetailRequest::getAk_mfa_present()const @@ -242,7 +242,7 @@ bool DescribeRecordDetailRequest::getAk_mfa_present()const void DescribeRecordDetailRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeRecordDetailRequest::getSecurity_transport()const @@ -253,7 +253,7 @@ bool DescribeRecordDetailRequest::getSecurity_transport()const void DescribeRecordDetailRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeRecordDetailRequest::getRecordId()const @@ -264,7 +264,7 @@ std::string DescribeRecordDetailRequest::getRecordId()const void DescribeRecordDetailRequest::setRecordId(const std::string& recordId) { recordId_ = recordId; - setParameter("RecordId", recordId); + setCoreParameter("RecordId", recordId); } std::string DescribeRecordDetailRequest::getRequestId()const @@ -275,7 +275,7 @@ std::string DescribeRecordDetailRequest::getRequestId()const void DescribeRecordDetailRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeRecordDetailRequest::getAppId()const @@ -286,7 +286,7 @@ std::string DescribeRecordDetailRequest::getAppId()const void DescribeRecordDetailRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string DescribeRecordDetailRequest::getChannelId()const @@ -297,6 +297,6 @@ std::string DescribeRecordDetailRequest::getChannelId()const void DescribeRecordDetailRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/DescribeRecordDetailResult.cc b/rtc/src/model/DescribeRecordDetailResult.cc index ad4d48943..1705aa970 100644 --- a/rtc/src/model/DescribeRecordDetailResult.cc +++ b/rtc/src/model/DescribeRecordDetailResult.cc @@ -35,10 +35,13 @@ DescribeRecordDetailResult::~DescribeRecordDetailResult() void DescribeRecordDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRecordDetailInfos = value["RecordDetailInfos"]["RecordDetailInfo"]; for (auto value : allRecordDetailInfos) diff --git a/rtc/src/model/DescribeRecordListRequest.cc b/rtc/src/model/DescribeRecordListRequest.cc index fe2e62c3d..5f2858aad 100644 --- a/rtc/src/model/DescribeRecordListRequest.cc +++ b/rtc/src/model/DescribeRecordListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRecordListRequest::getSortType()const void DescribeRecordListRequest::setSortType(const std::string& sortType) { sortType_ = sortType; - setParameter("SortType", sortType); + setCoreParameter("SortType", sortType); } long DescribeRecordListRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeRecordListRequest::getCallerParentId()const void DescribeRecordListRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeRecordListRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeRecordListRequest::getProxy_original_security_transport()const void DescribeRecordListRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeRecordListRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeRecordListRequest::getStartTime()const void DescribeRecordListRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeRecordListRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string DescribeRecordListRequest::getProxy_original_source_ip()const void DescribeRecordListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeRecordListRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string DescribeRecordListRequest::getOwnerIdLoginEmail()const void DescribeRecordListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeRecordListRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string DescribeRecordListRequest::getCallerType()const void DescribeRecordListRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeRecordListRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeRecordListRequest::getAccessKeyId()const void DescribeRecordListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeRecordListRequest::getSecurityToken()const @@ -121,7 +121,7 @@ std::string DescribeRecordListRequest::getSecurityToken()const void DescribeRecordListRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeRecordListRequest::getRequestContent()const @@ -132,7 +132,7 @@ std::string DescribeRecordListRequest::getRequestContent()const void DescribeRecordListRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeRecordListRequest::getServiceArea()const @@ -143,7 +143,7 @@ std::string DescribeRecordListRequest::getServiceArea()const void DescribeRecordListRequest::setServiceArea(const std::string& serviceArea) { serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); + setCoreParameter("ServiceArea", serviceArea); } long DescribeRecordListRequest::getPageSize()const @@ -154,7 +154,7 @@ long DescribeRecordListRequest::getPageSize()const void DescribeRecordListRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeRecordListRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DescribeRecordListRequest::getCallerBidEmail()const void DescribeRecordListRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeRecordListRequest::getId()const @@ -176,7 +176,7 @@ std::string DescribeRecordListRequest::getId()const void DescribeRecordListRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } std::string DescribeRecordListRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string DescribeRecordListRequest::getCallerUidEmail()const void DescribeRecordListRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeRecordListRequest::getCallerUid()const @@ -198,7 +198,7 @@ long DescribeRecordListRequest::getCallerUid()const void DescribeRecordListRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeRecordListRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string DescribeRecordListRequest::getApp_ip()const void DescribeRecordListRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeRecordListRequest::getPopProduct()const @@ -220,7 +220,7 @@ std::string DescribeRecordListRequest::getPopProduct()const void DescribeRecordListRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeRecordListRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeRecordListRequest::getEndTime()const void DescribeRecordListRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeRecordListRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeRecordListRequest::getCallerBid()const void DescribeRecordListRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeRecordListRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeRecordListRequest::getOwnerId()const void DescribeRecordListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRecordListRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeRecordListRequest::getVersion()const void DescribeRecordListRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeRecordListRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeRecordListRequest::getProxy_trust_transport_info()const void DescribeRecordListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeRecordListRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeRecordListRequest::getAk_mfa_present()const void DescribeRecordListRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeRecordListRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeRecordListRequest::getSecurity_transport()const void DescribeRecordListRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeRecordListRequest::getIdType()const @@ -308,7 +308,7 @@ std::string DescribeRecordListRequest::getIdType()const void DescribeRecordListRequest::setIdType(const std::string& idType) { idType_ = idType; - setParameter("IdType", idType); + setCoreParameter("IdType", idType); } std::string DescribeRecordListRequest::getRequestId()const @@ -319,7 +319,7 @@ std::string DescribeRecordListRequest::getRequestId()const void DescribeRecordListRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } long DescribeRecordListRequest::getPageNo()const @@ -330,7 +330,7 @@ long DescribeRecordListRequest::getPageNo()const void DescribeRecordListRequest::setPageNo(long pageNo) { pageNo_ = pageNo; - setParameter("PageNo", std::to_string(pageNo)); + setCoreParameter("PageNo", std::to_string(pageNo)); } std::string DescribeRecordListRequest::getAppId()const @@ -341,6 +341,6 @@ std::string DescribeRecordListRequest::getAppId()const void DescribeRecordListRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } diff --git a/rtc/src/model/DescribeRecordListResult.cc b/rtc/src/model/DescribeRecordListResult.cc index 8f5d9319d..65e964b46 100644 --- a/rtc/src/model/DescribeRecordListResult.cc +++ b/rtc/src/model/DescribeRecordListResult.cc @@ -35,10 +35,13 @@ DescribeRecordListResult::~DescribeRecordListResult() void DescribeRecordListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCommunicationRecordInfos = value["CommunicationRecordInfos"]["CommunicationRecordInfo"]; for (auto value : allCommunicationRecordInfos) diff --git a/rtc/src/model/DescribeRtcChannelCntDataRequest.cc b/rtc/src/model/DescribeRtcChannelCntDataRequest.cc new file mode 100644 index 000000000..0b0594554 --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelCntDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcChannelCntDataRequest; + +DescribeRtcChannelCntDataRequest::DescribeRtcChannelCntDataRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelCntData") +{} + +DescribeRtcChannelCntDataRequest::~DescribeRtcChannelCntDataRequest() +{} + +long DescribeRtcChannelCntDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcChannelCntDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeRtcChannelCntDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcChannelCntDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcChannelCntDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcChannelCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelCntDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcChannelCntDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeRtcChannelCntDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcChannelCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcChannelCntDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcChannelCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcChannelCntDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcChannelCntDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcChannelCntDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcChannelCntDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcChannelCntDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcChannelCntDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcChannelCntDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcChannelCntDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRtcChannelCntDataRequest::getServiceArea()const +{ + return serviceArea_; +} + +void DescribeRtcChannelCntDataRequest::setServiceArea(const std::string& serviceArea) +{ + serviceArea_ = serviceArea; + setCoreParameter("ServiceArea", serviceArea); +} + +std::string DescribeRtcChannelCntDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcChannelCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcChannelCntDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcChannelCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcChannelCntDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcChannelCntDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcChannelCntDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcChannelCntDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcChannelCntDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcChannelCntDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcChannelCntDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcChannelCntDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeRtcChannelCntDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcChannelCntDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcChannelCntDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcChannelCntDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcChannelCntDataRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcChannelCntDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcChannelCntDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcChannelCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcChannelCntDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcChannelCntDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcChannelCntDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcChannelCntDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelCntDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcChannelCntDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeRtcChannelCntDataRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcChannelCntDataRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcChannelCntDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeRtcChannelCntDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + diff --git a/rtc/src/model/DescribeRtcChannelCntDataResult.cc b/rtc/src/model/DescribeRtcChannelCntDataResult.cc new file mode 100644 index 000000000..84d432d1d --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelCntDataResult.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 +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcChannelCntDataResult::DescribeRtcChannelCntDataResult() : + ServiceResult() +{} + +DescribeRtcChannelCntDataResult::DescribeRtcChannelCntDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcChannelCntDataResult::~DescribeRtcChannelCntDataResult() +{} + +void DescribeRtcChannelCntDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allChannelCntDataPerInterval = value["ChannelCntDataPerInterval"]["ChannelCntModule"]; + for (auto value : allChannelCntDataPerInterval) + { + ChannelCntModule channelCntDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + channelCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["ActiveChannelCnt"].isNull()) + channelCntDataPerIntervalObject.activeChannelCnt = std::stol(value["ActiveChannelCnt"].asString()); + channelCntDataPerInterval_.push_back(channelCntDataPerIntervalObject); + } + +} + +std::vector DescribeRtcChannelCntDataResult::getChannelCntDataPerInterval()const +{ + return channelCntDataPerInterval_; +} + diff --git a/rtc/src/model/DescribeRtcChannelListRequest.cc b/rtc/src/model/DescribeRtcChannelListRequest.cc new file mode 100644 index 000000000..3c57e021c --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelListRequest.cc @@ -0,0 +1,357 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcChannelListRequest; + +DescribeRtcChannelListRequest::DescribeRtcChannelListRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelList") +{} + +DescribeRtcChannelListRequest::~DescribeRtcChannelListRequest() +{} + +long DescribeRtcChannelListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcChannelListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRtcChannelListRequest::getSortType()const +{ + return sortType_; +} + +void DescribeRtcChannelListRequest::setSortType(const std::string& sortType) +{ + sortType_ = sortType; + setCoreParameter("SortType", sortType); +} + +long DescribeRtcChannelListRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcChannelListRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcChannelListRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcChannelListRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelListRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcChannelListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcChannelListRequest::getUserId()const +{ + return userId_; +} + +void DescribeRtcChannelListRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setCoreParameter("UserId", userId); +} + +std::string DescribeRtcChannelListRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcChannelListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcChannelListRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcChannelListRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcChannelListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcChannelListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcChannelListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcChannelListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcChannelListRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcChannelListRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRtcChannelListRequest::getServiceArea()const +{ + return serviceArea_; +} + +void DescribeRtcChannelListRequest::setServiceArea(const std::string& serviceArea) +{ + serviceArea_ = serviceArea; + setCoreParameter("ServiceArea", serviceArea); +} + +long DescribeRtcChannelListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRtcChannelListRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRtcChannelListRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcChannelListRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcChannelListRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcChannelListRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcChannelListRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcChannelListRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcChannelListRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcChannelListRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcChannelListRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcChannelListRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcChannelListRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcChannelListRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcChannelListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcChannelListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcChannelListRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcChannelListRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcChannelListRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcChannelListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcChannelListRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcChannelListRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcChannelListRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcChannelListRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelListRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeRtcChannelListRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeRtcChannelListRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcChannelListRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DescribeRtcChannelListRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeRtcChannelListRequest::setPageNo(long pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeRtcChannelListRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcChannelListRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcChannelListRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRtcChannelListRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); +} + +std::string DescribeRtcChannelListRequest::getTimePoint()const +{ + return timePoint_; +} + +void DescribeRtcChannelListRequest::setTimePoint(const std::string& timePoint) +{ + timePoint_ = timePoint; + setCoreParameter("TimePoint", timePoint); +} + diff --git a/rtc/src/model/DescribeRtcChannelListResult.cc b/rtc/src/model/DescribeRtcChannelListResult.cc new file mode 100644 index 000000000..0f31efc68 --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelListResult.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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcChannelListResult::DescribeRtcChannelListResult() : + ServiceResult() +{} + +DescribeRtcChannelListResult::DescribeRtcChannelListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcChannelListResult::~DescribeRtcChannelListResult() +{} + +void DescribeRtcChannelListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allChannelList = value["ChannelList"]["ChannelListItem"]; + for (auto value : allChannelList) + { + ChannelListItem channelListObject; + if(!value["ChannelId"].isNull()) + channelListObject.channelId = value["ChannelId"].asString(); + if(!value["StartTime"].isNull()) + channelListObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + channelListObject.endTime = value["EndTime"].asString(); + if(!value["TotalUserCnt"].isNull()) + channelListObject.totalUserCnt = std::stol(value["TotalUserCnt"].asString()); + auto allCallArea = value["CallArea"]["CallArea"]; + for (auto value : allCallArea) + channelListObject.callArea.push_back(value.asString()); + channelList_.push_back(channelListObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stol(value["PageNo"].asString()); + if(!value["TotalCnt"].isNull()) + totalCnt_ = std::stol(value["TotalCnt"].asString()); + +} + +long DescribeRtcChannelListResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeRtcChannelListResult::getTotalCnt()const +{ + return totalCnt_; +} + +long DescribeRtcChannelListResult::getPageNo()const +{ + return pageNo_; +} + +std::vector DescribeRtcChannelListResult::getChannelList()const +{ + return channelList_; +} + diff --git a/rtc/src/model/DescribeRtcChannelMetricRequest.cc b/rtc/src/model/DescribeRtcChannelMetricRequest.cc new file mode 100644 index 000000000..a107f901e --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelMetricRequest.cc @@ -0,0 +1,302 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcChannelMetricRequest; + +DescribeRtcChannelMetricRequest::DescribeRtcChannelMetricRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelMetric") +{} + +DescribeRtcChannelMetricRequest::~DescribeRtcChannelMetricRequest() +{} + +long DescribeRtcChannelMetricRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcChannelMetricRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeRtcChannelMetricRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcChannelMetricRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcChannelMetricRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcChannelMetricRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelMetricRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcChannelMetricRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcChannelMetricRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcChannelMetricRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcChannelMetricRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcChannelMetricRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcChannelMetricRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcChannelMetricRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcChannelMetricRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcChannelMetricRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcChannelMetricRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcChannelMetricRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRtcChannelMetricRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcChannelMetricRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcChannelMetricRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcChannelMetricRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcChannelMetricRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcChannelMetricRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcChannelMetricRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcChannelMetricRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcChannelMetricRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcChannelMetricRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcChannelMetricRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcChannelMetricRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcChannelMetricRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcChannelMetricRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcChannelMetricRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcChannelMetricRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcChannelMetricRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcChannelMetricRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcChannelMetricRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcChannelMetricRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcChannelMetricRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcChannelMetricRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelMetricRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeRtcChannelMetricRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeRtcChannelMetricRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcChannelMetricRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeRtcChannelMetricRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcChannelMetricRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcChannelMetricRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRtcChannelMetricRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); +} + +std::string DescribeRtcChannelMetricRequest::getTimePoint()const +{ + return timePoint_; +} + +void DescribeRtcChannelMetricRequest::setTimePoint(const std::string& timePoint) +{ + timePoint_ = timePoint; + setCoreParameter("TimePoint", timePoint); +} + diff --git a/rtc/src/model/DescribeRtcChannelMetricResult.cc b/rtc/src/model/DescribeRtcChannelMetricResult.cc new file mode 100644 index 000000000..51507659a --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelMetricResult.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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcChannelMetricResult::DescribeRtcChannelMetricResult() : + ServiceResult() +{} + +DescribeRtcChannelMetricResult::DescribeRtcChannelMetricResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcChannelMetricResult::~DescribeRtcChannelMetricResult() +{} + +void DescribeRtcChannelMetricResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto channelMetricInfoNode = value["ChannelMetricInfo"]; + auto channelMetricNode = channelMetricInfoNode["ChannelMetric"]; + if(!channelMetricNode["ChannelId"].isNull()) + channelMetricInfo_.channelMetric.channelId = channelMetricNode["ChannelId"].asString(); + if(!channelMetricNode["UserCount"].isNull()) + channelMetricInfo_.channelMetric.userCount = std::stoi(channelMetricNode["UserCount"].asString()); + if(!channelMetricNode["PubUserCount"].isNull()) + channelMetricInfo_.channelMetric.pubUserCount = std::stoi(channelMetricNode["PubUserCount"].asString()); + if(!channelMetricNode["SubUserCount"].isNull()) + channelMetricInfo_.channelMetric.subUserCount = std::stoi(channelMetricNode["SubUserCount"].asString()); + if(!channelMetricNode["StartTime"].isNull()) + channelMetricInfo_.channelMetric.startTime = channelMetricNode["StartTime"].asString(); + if(!channelMetricNode["EndTime"].isNull()) + channelMetricInfo_.channelMetric.endTime = channelMetricNode["EndTime"].asString(); + auto durationNode = channelMetricInfoNode["Duration"]; + auto pubDurationNode = durationNode["PubDuration"]; + if(!pubDurationNode["Audio"].isNull()) + channelMetricInfo_.duration.pubDuration.audio = std::stoi(pubDurationNode["Audio"].asString()); + if(!pubDurationNode["Video360"].isNull()) + channelMetricInfo_.duration.pubDuration.video360 = std::stoi(pubDurationNode["Video360"].asString()); + if(!pubDurationNode["Video720"].isNull()) + channelMetricInfo_.duration.pubDuration.video720 = std::stoi(pubDurationNode["Video720"].asString()); + if(!pubDurationNode["Video1080"].isNull()) + channelMetricInfo_.duration.pubDuration.video1080 = std::stoi(pubDurationNode["Video1080"].asString()); + if(!pubDurationNode["Content"].isNull()) + channelMetricInfo_.duration.pubDuration.content = std::stoi(pubDurationNode["Content"].asString()); + auto subDurationNode = durationNode["SubDuration"]; + if(!subDurationNode["Audio"].isNull()) + channelMetricInfo_.duration.subDuration.audio = std::stoi(subDurationNode["Audio"].asString()); + if(!subDurationNode["Video360"].isNull()) + channelMetricInfo_.duration.subDuration.video360 = std::stoi(subDurationNode["Video360"].asString()); + if(!subDurationNode["Video720"].isNull()) + channelMetricInfo_.duration.subDuration.video720 = std::stoi(subDurationNode["Video720"].asString()); + if(!subDurationNode["Video1080"].isNull()) + channelMetricInfo_.duration.subDuration.video1080 = std::stoi(subDurationNode["Video1080"].asString()); + if(!subDurationNode["Content"].isNull()) + channelMetricInfo_.duration.subDuration.content = std::stoi(subDurationNode["Content"].asString()); + +} + +DescribeRtcChannelMetricResult::ChannelMetricInfo DescribeRtcChannelMetricResult::getChannelMetricInfo()const +{ + return channelMetricInfo_; +} + diff --git a/rtc/src/model/DescribeRtcChannelUserListRequest.cc b/rtc/src/model/DescribeRtcChannelUserListRequest.cc new file mode 100644 index 000000000..613131b5a --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelUserListRequest.cc @@ -0,0 +1,324 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcChannelUserListRequest; + +DescribeRtcChannelUserListRequest::DescribeRtcChannelUserListRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelUserList") +{} + +DescribeRtcChannelUserListRequest::~DescribeRtcChannelUserListRequest() +{} + +long DescribeRtcChannelUserListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcChannelUserListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeRtcChannelUserListRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcChannelUserListRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcChannelUserListRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcChannelUserListRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelUserListRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcChannelUserListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcChannelUserListRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcChannelUserListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcChannelUserListRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcChannelUserListRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcChannelUserListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcChannelUserListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcChannelUserListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcChannelUserListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcChannelUserListRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcChannelUserListRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +long DescribeRtcChannelUserListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRtcChannelUserListRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRtcChannelUserListRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcChannelUserListRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcChannelUserListRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcChannelUserListRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcChannelUserListRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcChannelUserListRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcChannelUserListRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcChannelUserListRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcChannelUserListRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcChannelUserListRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcChannelUserListRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcChannelUserListRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcChannelUserListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcChannelUserListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcChannelUserListRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcChannelUserListRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcChannelUserListRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcChannelUserListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcChannelUserListRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcChannelUserListRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcChannelUserListRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcChannelUserListRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcChannelUserListRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeRtcChannelUserListRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeRtcChannelUserListRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcChannelUserListRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +long DescribeRtcChannelUserListRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeRtcChannelUserListRequest::setPageNo(long pageNo) +{ + pageNo_ = pageNo; + setCoreParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeRtcChannelUserListRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcChannelUserListRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcChannelUserListRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRtcChannelUserListRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); +} + +std::string DescribeRtcChannelUserListRequest::getTimePoint()const +{ + return timePoint_; +} + +void DescribeRtcChannelUserListRequest::setTimePoint(const std::string& timePoint) +{ + timePoint_ = timePoint; + setCoreParameter("TimePoint", timePoint); +} + diff --git a/rtc/src/model/DescribeRtcChannelUserListResult.cc b/rtc/src/model/DescribeRtcChannelUserListResult.cc new file mode 100644 index 000000000..d1901d45d --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelUserListResult.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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcChannelUserListResult::DescribeRtcChannelUserListResult() : + ServiceResult() +{} + +DescribeRtcChannelUserListResult::DescribeRtcChannelUserListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcChannelUserListResult::~DescribeRtcChannelUserListResult() +{} + +void DescribeRtcChannelUserListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allUserList = value["UserList"]["UserListItem"]; + for (auto value : allUserList) + { + UserListItem userListObject; + if(!value["ChannelId"].isNull()) + userListObject.channelId = value["ChannelId"].asString(); + if(!value["UserId"].isNull()) + userListObject.userId = value["UserId"].asString(); + if(!value["StartTime"].isNull()) + userListObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + userListObject.endTime = value["EndTime"].asString(); + if(!value["ServiceArea"].isNull()) + userListObject.serviceArea = value["ServiceArea"].asString(); + if(!value["SubAudio"].isNull()) + userListObject.subAudio = std::stoi(value["SubAudio"].asString()); + if(!value["PubAudio"].isNull()) + userListObject.pubAudio = std::stoi(value["PubAudio"].asString()); + if(!value["SubVideo360"].isNull()) + userListObject.subVideo360 = std::stoi(value["SubVideo360"].asString()); + if(!value["PubVideo360"].isNull()) + userListObject.pubVideo360 = std::stoi(value["PubVideo360"].asString()); + if(!value["SubVideo720"].isNull()) + userListObject.subVideo720 = std::stoi(value["SubVideo720"].asString()); + if(!value["PubVideo720"].isNull()) + userListObject.pubVideo720 = std::stoi(value["PubVideo720"].asString()); + if(!value["SubVideo1080"].isNull()) + userListObject.subVideo1080 = std::stoi(value["SubVideo1080"].asString()); + if(!value["PubVideo1080"].isNull()) + userListObject.pubVideo1080 = std::stoi(value["PubVideo1080"].asString()); + if(!value["SubContent"].isNull()) + userListObject.subContent = std::stoi(value["SubContent"].asString()); + if(!value["PubContent"].isNull()) + userListObject.pubContent = std::stoi(value["PubContent"].asString()); + userList_.push_back(userListObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stol(value["PageNo"].asString()); + if(!value["TotalCnt"].isNull()) + totalCnt_ = std::stol(value["TotalCnt"].asString()); + +} + +long DescribeRtcChannelUserListResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeRtcChannelUserListResult::getTotalCnt()const +{ + return totalCnt_; +} + +long DescribeRtcChannelUserListResult::getPageNo()const +{ + return pageNo_; +} + +std::vector DescribeRtcChannelUserListResult::getUserList()const +{ + return userList_; +} + diff --git a/rtc/src/model/DescribeRtcDurationDataRequest.cc b/rtc/src/model/DescribeRtcDurationDataRequest.cc new file mode 100644 index 000000000..57d654121 --- /dev/null +++ b/rtc/src/model/DescribeRtcDurationDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcDurationDataRequest; + +DescribeRtcDurationDataRequest::DescribeRtcDurationDataRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcDurationData") +{} + +DescribeRtcDurationDataRequest::~DescribeRtcDurationDataRequest() +{} + +long DescribeRtcDurationDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcDurationDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeRtcDurationDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcDurationDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcDurationDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcDurationDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcDurationDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcDurationDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeRtcDurationDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcDurationDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcDurationDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcDurationDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcDurationDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcDurationDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcDurationDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcDurationDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcDurationDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcDurationDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcDurationDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcDurationDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRtcDurationDataRequest::getServiceArea()const +{ + return serviceArea_; +} + +void DescribeRtcDurationDataRequest::setServiceArea(const std::string& serviceArea) +{ + serviceArea_ = serviceArea; + setCoreParameter("ServiceArea", serviceArea); +} + +std::string DescribeRtcDurationDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcDurationDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcDurationDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcDurationDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcDurationDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcDurationDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcDurationDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcDurationDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcDurationDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcDurationDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcDurationDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcDurationDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeRtcDurationDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcDurationDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcDurationDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcDurationDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcDurationDataRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcDurationDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcDurationDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcDurationDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcDurationDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcDurationDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcDurationDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcDurationDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcDurationDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcDurationDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeRtcDurationDataRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcDurationDataRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcDurationDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeRtcDurationDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + diff --git a/rtc/src/model/DescribeRtcDurationDataResult.cc b/rtc/src/model/DescribeRtcDurationDataResult.cc new file mode 100644 index 000000000..cd71692e2 --- /dev/null +++ b/rtc/src/model/DescribeRtcDurationDataResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcDurationDataResult::DescribeRtcDurationDataResult() : + ServiceResult() +{} + +DescribeRtcDurationDataResult::DescribeRtcDurationDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcDurationDataResult::~DescribeRtcDurationDataResult() +{} + +void DescribeRtcDurationDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDurationDataPerInterval = value["DurationDataPerInterval"]["DurationModule"]; + for (auto value : allDurationDataPerInterval) + { + DurationModule durationDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + durationDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["TotalDuration"].isNull()) + durationDataPerIntervalObject.totalDuration = std::stol(value["TotalDuration"].asString()); + if(!value["AudioDuration"].isNull()) + durationDataPerIntervalObject.audioDuration = std::stol(value["AudioDuration"].asString()); + if(!value["V360Duration"].isNull()) + durationDataPerIntervalObject.v360Duration = std::stol(value["V360Duration"].asString()); + if(!value["V720Duration"].isNull()) + durationDataPerIntervalObject.v720Duration = std::stol(value["V720Duration"].asString()); + if(!value["V1080Duration"].isNull()) + durationDataPerIntervalObject.v1080Duration = std::stol(value["V1080Duration"].asString()); + if(!value["ContentDuration"].isNull()) + durationDataPerIntervalObject.contentDuration = std::stol(value["ContentDuration"].asString()); + durationDataPerInterval_.push_back(durationDataPerIntervalObject); + } + +} + +std::vector DescribeRtcDurationDataResult::getDurationDataPerInterval()const +{ + return durationDataPerInterval_; +} + diff --git a/rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc b/rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc new file mode 100644 index 000000000..8ae9b11fe --- /dev/null +++ b/rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcPeakChannelCntDataRequest; + +DescribeRtcPeakChannelCntDataRequest::DescribeRtcPeakChannelCntDataRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcPeakChannelCntData") +{} + +DescribeRtcPeakChannelCntDataRequest::~DescribeRtcPeakChannelCntDataRequest() +{} + +long DescribeRtcPeakChannelCntDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcPeakChannelCntDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeRtcPeakChannelCntDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcPeakChannelCntDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcPeakChannelCntDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcPeakChannelCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcPeakChannelCntDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcPeakChannelCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcPeakChannelCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcPeakChannelCntDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcPeakChannelCntDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcPeakChannelCntDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcPeakChannelCntDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getServiceArea()const +{ + return serviceArea_; +} + +void DescribeRtcPeakChannelCntDataRequest::setServiceArea(const std::string& serviceArea) +{ + serviceArea_ = serviceArea; + setCoreParameter("ServiceArea", serviceArea); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcPeakChannelCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcPeakChannelCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcPeakChannelCntDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcPeakChannelCntDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcPeakChannelCntDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcPeakChannelCntDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcPeakChannelCntDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcPeakChannelCntDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcPeakChannelCntDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcPeakChannelCntDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcPeakChannelCntDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcPeakChannelCntDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcPeakChannelCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcPeakChannelCntDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcPeakChannelCntDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcPeakChannelCntDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcPeakChannelCntDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcPeakChannelCntDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcPeakChannelCntDataRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcPeakChannelCntDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeRtcPeakChannelCntDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + diff --git a/rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc b/rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc new file mode 100644 index 000000000..3d60f79d1 --- /dev/null +++ b/rtc/src/model/DescribeRtcPeakChannelCntDataResult.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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcPeakChannelCntDataResult::DescribeRtcPeakChannelCntDataResult() : + ServiceResult() +{} + +DescribeRtcPeakChannelCntDataResult::DescribeRtcPeakChannelCntDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcPeakChannelCntDataResult::~DescribeRtcPeakChannelCntDataResult() +{} + +void DescribeRtcPeakChannelCntDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allPeakChannelCntDataPerInterval = value["PeakChannelCntDataPerInterval"]["PeakChannelCntModule"]; + for (auto value : allPeakChannelCntDataPerInterval) + { + PeakChannelCntModule peakChannelCntDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + peakChannelCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["ActiveChannelPeak"].isNull()) + peakChannelCntDataPerIntervalObject.activeChannelPeak = std::stol(value["ActiveChannelPeak"].asString()); + if(!value["ActiveChannelPeakTime"].isNull()) + peakChannelCntDataPerIntervalObject.activeChannelPeakTime = value["ActiveChannelPeakTime"].asString(); + peakChannelCntDataPerInterval_.push_back(peakChannelCntDataPerIntervalObject); + } + +} + +std::vector DescribeRtcPeakChannelCntDataResult::getPeakChannelCntDataPerInterval()const +{ + return peakChannelCntDataPerInterval_; +} + diff --git a/rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc b/rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc new file mode 100644 index 000000000..5ff794b48 --- /dev/null +++ b/rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcPeakUserCntDataRequest; + +DescribeRtcPeakUserCntDataRequest::DescribeRtcPeakUserCntDataRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcPeakUserCntData") +{} + +DescribeRtcPeakUserCntDataRequest::~DescribeRtcPeakUserCntDataRequest() +{} + +long DescribeRtcPeakUserCntDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcPeakUserCntDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeRtcPeakUserCntDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcPeakUserCntDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcPeakUserCntDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcPeakUserCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcPeakUserCntDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcPeakUserCntDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeRtcPeakUserCntDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcPeakUserCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcPeakUserCntDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcPeakUserCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcPeakUserCntDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcPeakUserCntDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcPeakUserCntDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcPeakUserCntDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcPeakUserCntDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcPeakUserCntDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcPeakUserCntDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcPeakUserCntDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRtcPeakUserCntDataRequest::getServiceArea()const +{ + return serviceArea_; +} + +void DescribeRtcPeakUserCntDataRequest::setServiceArea(const std::string& serviceArea) +{ + serviceArea_ = serviceArea; + setCoreParameter("ServiceArea", serviceArea); +} + +std::string DescribeRtcPeakUserCntDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcPeakUserCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcPeakUserCntDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcPeakUserCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcPeakUserCntDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcPeakUserCntDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcPeakUserCntDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcPeakUserCntDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcPeakUserCntDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcPeakUserCntDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcPeakUserCntDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcPeakUserCntDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeRtcPeakUserCntDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcPeakUserCntDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcPeakUserCntDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcPeakUserCntDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcPeakUserCntDataRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcPeakUserCntDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcPeakUserCntDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcPeakUserCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcPeakUserCntDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcPeakUserCntDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcPeakUserCntDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcPeakUserCntDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcPeakUserCntDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcPeakUserCntDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeRtcPeakUserCntDataRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcPeakUserCntDataRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcPeakUserCntDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeRtcPeakUserCntDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + diff --git a/rtc/src/model/DescribeRtcPeakUserCntDataResult.cc b/rtc/src/model/DescribeRtcPeakUserCntDataResult.cc new file mode 100644 index 000000000..fe39a347c --- /dev/null +++ b/rtc/src/model/DescribeRtcPeakUserCntDataResult.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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcPeakUserCntDataResult::DescribeRtcPeakUserCntDataResult() : + ServiceResult() +{} + +DescribeRtcPeakUserCntDataResult::DescribeRtcPeakUserCntDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcPeakUserCntDataResult::~DescribeRtcPeakUserCntDataResult() +{} + +void DescribeRtcPeakUserCntDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allPeakUserCntDataPerInterval = value["PeakUserCntDataPerInterval"]["PeakUserCntModule"]; + for (auto value : allPeakUserCntDataPerInterval) + { + PeakUserCntModule peakUserCntDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + peakUserCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["ActiveUserPeak"].isNull()) + peakUserCntDataPerIntervalObject.activeUserPeak = std::stol(value["ActiveUserPeak"].asString()); + if(!value["ActiveUserPeakTime"].isNull()) + peakUserCntDataPerIntervalObject.activeUserPeakTime = value["ActiveUserPeakTime"].asString(); + peakUserCntDataPerInterval_.push_back(peakUserCntDataPerIntervalObject); + } + +} + +std::vector DescribeRtcPeakUserCntDataResult::getPeakUserCntDataPerInterval()const +{ + return peakUserCntDataPerInterval_; +} + diff --git a/rtc/src/model/DescribeRtcUserCntDataRequest.cc b/rtc/src/model/DescribeRtcUserCntDataRequest.cc new file mode 100644 index 000000000..03a42b4e1 --- /dev/null +++ b/rtc/src/model/DescribeRtcUserCntDataRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DescribeRtcUserCntDataRequest; + +DescribeRtcUserCntDataRequest::DescribeRtcUserCntDataRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcUserCntData") +{} + +DescribeRtcUserCntDataRequest::~DescribeRtcUserCntDataRequest() +{} + +long DescribeRtcUserCntDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRtcUserCntDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeRtcUserCntDataRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRtcUserCntDataRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRtcUserCntDataRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRtcUserCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRtcUserCntDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcUserCntDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeRtcUserCntDataRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRtcUserCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRtcUserCntDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRtcUserCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRtcUserCntDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRtcUserCntDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRtcUserCntDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRtcUserCntDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRtcUserCntDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRtcUserCntDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRtcUserCntDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRtcUserCntDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRtcUserCntDataRequest::getServiceArea()const +{ + return serviceArea_; +} + +void DescribeRtcUserCntDataRequest::setServiceArea(const std::string& serviceArea) +{ + serviceArea_ = serviceArea; + setCoreParameter("ServiceArea", serviceArea); +} + +std::string DescribeRtcUserCntDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRtcUserCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRtcUserCntDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRtcUserCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeRtcUserCntDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRtcUserCntDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRtcUserCntDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRtcUserCntDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRtcUserCntDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeRtcUserCntDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeRtcUserCntDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcUserCntDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeRtcUserCntDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRtcUserCntDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRtcUserCntDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcUserCntDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcUserCntDataRequest::getVersion()const +{ + return version_; +} + +void DescribeRtcUserCntDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeRtcUserCntDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRtcUserCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRtcUserCntDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRtcUserCntDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeRtcUserCntDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRtcUserCntDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRtcUserCntDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRtcUserCntDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeRtcUserCntDataRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcUserCntDataRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setCoreParameter("AppId", appId); +} + +std::string DescribeRtcUserCntDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeRtcUserCntDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + diff --git a/rtc/src/model/DescribeRtcUserCntDataResult.cc b/rtc/src/model/DescribeRtcUserCntDataResult.cc new file mode 100644 index 000000000..111164e52 --- /dev/null +++ b/rtc/src/model/DescribeRtcUserCntDataResult.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 +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcUserCntDataResult::DescribeRtcUserCntDataResult() : + ServiceResult() +{} + +DescribeRtcUserCntDataResult::DescribeRtcUserCntDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcUserCntDataResult::~DescribeRtcUserCntDataResult() +{} + +void DescribeRtcUserCntDataResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allUserCntDataPerInterval = value["UserCntDataPerInterval"]["UserCntModule"]; + for (auto value : allUserCntDataPerInterval) + { + UserCntModule userCntDataPerIntervalObject; + if(!value["TimeStamp"].isNull()) + userCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString(); + if(!value["ActiveUserCnt"].isNull()) + userCntDataPerIntervalObject.activeUserCnt = std::stol(value["ActiveUserCnt"].asString()); + userCntDataPerInterval_.push_back(userCntDataPerIntervalObject); + } + +} + +std::vector DescribeRtcUserCntDataResult::getUserCntDataPerInterval()const +{ + return userCntDataPerInterval_; +} + diff --git a/rtc/src/model/DescribeStatisRequest.cc b/rtc/src/model/DescribeStatisRequest.cc index 14bc7036e..1a729c156 100644 --- a/rtc/src/model/DescribeStatisRequest.cc +++ b/rtc/src/model/DescribeStatisRequest.cc @@ -33,7 +33,7 @@ std::string DescribeStatisRequest::getSortType()const void DescribeStatisRequest::setSortType(const std::string& sortType) { sortType_ = sortType; - setParameter("SortType", sortType); + setCoreParameter("SortType", sortType); } long DescribeStatisRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeStatisRequest::getCallerParentId()const void DescribeStatisRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeStatisRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeStatisRequest::getProxy_original_security_transport()const void DescribeStatisRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeStatisRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeStatisRequest::getStartTime()const void DescribeStatisRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeStatisRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string DescribeStatisRequest::getProxy_original_source_ip()const void DescribeStatisRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeStatisRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string DescribeStatisRequest::getOwnerIdLoginEmail()const void DescribeStatisRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeStatisRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string DescribeStatisRequest::getCallerType()const void DescribeStatisRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeStatisRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeStatisRequest::getAccessKeyId()const void DescribeStatisRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeStatisRequest::getSecurityToken()const @@ -121,7 +121,7 @@ std::string DescribeStatisRequest::getSecurityToken()const void DescribeStatisRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeStatisRequest::getDataType()const @@ -132,7 +132,7 @@ std::string DescribeStatisRequest::getDataType()const void DescribeStatisRequest::setDataType(const std::string& dataType) { dataType_ = dataType; - setParameter("DataType", dataType); + setCoreParameter("DataType", dataType); } std::string DescribeStatisRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeStatisRequest::getRequestContent()const void DescribeStatisRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeStatisRequest::getServiceArea()const @@ -154,7 +154,7 @@ std::string DescribeStatisRequest::getServiceArea()const void DescribeStatisRequest::setServiceArea(const std::string& serviceArea) { serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); + setCoreParameter("ServiceArea", serviceArea); } std::string DescribeStatisRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DescribeStatisRequest::getCallerBidEmail()const void DescribeStatisRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeStatisRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string DescribeStatisRequest::getCallerUidEmail()const void DescribeStatisRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeStatisRequest::getCallerUid()const @@ -187,7 +187,7 @@ long DescribeStatisRequest::getCallerUid()const void DescribeStatisRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeStatisRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string DescribeStatisRequest::getApp_ip()const void DescribeStatisRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeStatisRequest::getPopProduct()const @@ -209,7 +209,7 @@ std::string DescribeStatisRequest::getPopProduct()const void DescribeStatisRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeStatisRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeStatisRequest::getEndTime()const void DescribeStatisRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeStatisRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeStatisRequest::getCallerBid()const void DescribeStatisRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeStatisRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeStatisRequest::getOwnerId()const void DescribeStatisRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeStatisRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeStatisRequest::getVersion()const void DescribeStatisRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeStatisRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeStatisRequest::getProxy_trust_transport_info()const void DescribeStatisRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeStatisRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeStatisRequest::getAk_mfa_present()const void DescribeStatisRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeStatisRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeStatisRequest::getSecurity_transport()const void DescribeStatisRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeStatisRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string DescribeStatisRequest::getRequestId()const void DescribeStatisRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeStatisRequest::getAppId()const @@ -308,7 +308,7 @@ std::string DescribeStatisRequest::getAppId()const void DescribeStatisRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string DescribeStatisRequest::getInterval()const @@ -319,6 +319,6 @@ std::string DescribeStatisRequest::getInterval()const void DescribeStatisRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/rtc/src/model/DescribeStatisResult.cc b/rtc/src/model/DescribeStatisResult.cc index 6a8c9f162..cfb0aa0a2 100644 --- a/rtc/src/model/DescribeStatisResult.cc +++ b/rtc/src/model/DescribeStatisResult.cc @@ -35,10 +35,13 @@ DescribeStatisResult::~DescribeStatisResult() void DescribeStatisResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStatisInfos = value["StatisInfos"]["StatisInfo"]; for (auto value : allStatisInfos) diff --git a/rtc/src/model/GetAllTemplateRequest.cc b/rtc/src/model/GetAllTemplateRequest.cc index 18e9ff291..cdff09b96 100644 --- a/rtc/src/model/GetAllTemplateRequest.cc +++ b/rtc/src/model/GetAllTemplateRequest.cc @@ -33,7 +33,7 @@ std::string GetAllTemplateRequest::getApp_ip()const void GetAllTemplateRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string GetAllTemplateRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string GetAllTemplateRequest::getPopProduct()const void GetAllTemplateRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long GetAllTemplateRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long GetAllTemplateRequest::getCallerParentId()const void GetAllTemplateRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool GetAllTemplateRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool GetAllTemplateRequest::getProxy_original_security_transport()const void GetAllTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string GetAllTemplateRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string GetAllTemplateRequest::getCallerBid()const void GetAllTemplateRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long GetAllTemplateRequest::getOwnerId()const @@ -88,7 +88,7 @@ long GetAllTemplateRequest::getOwnerId()const void GetAllTemplateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string GetAllTemplateRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string GetAllTemplateRequest::getProxy_original_source_ip()const void GetAllTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string GetAllTemplateRequest::getVersion()const @@ -110,7 +110,7 @@ std::string GetAllTemplateRequest::getVersion()const void GetAllTemplateRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string GetAllTemplateRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string GetAllTemplateRequest::getOwnerIdLoginEmail()const void GetAllTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string GetAllTemplateRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string GetAllTemplateRequest::getCallerType()const void GetAllTemplateRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetAllTemplateRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool GetAllTemplateRequest::getProxy_trust_transport_info()const void GetAllTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool GetAllTemplateRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool GetAllTemplateRequest::getAk_mfa_present()const void GetAllTemplateRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string GetAllTemplateRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string GetAllTemplateRequest::getAccessKeyId()const void GetAllTemplateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool GetAllTemplateRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool GetAllTemplateRequest::getSecurity_transport()const void GetAllTemplateRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetAllTemplateRequest::getSecurityToken()const @@ -187,7 +187,7 @@ std::string GetAllTemplateRequest::getSecurityToken()const void GetAllTemplateRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string GetAllTemplateRequest::getRequestId()const @@ -198,7 +198,7 @@ std::string GetAllTemplateRequest::getRequestId()const void GetAllTemplateRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string GetAllTemplateRequest::getRequestContent()const @@ -209,7 +209,7 @@ std::string GetAllTemplateRequest::getRequestContent()const void GetAllTemplateRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string GetAllTemplateRequest::getAppId()const @@ -220,7 +220,7 @@ std::string GetAllTemplateRequest::getAppId()const void GetAllTemplateRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string GetAllTemplateRequest::getCallerBidEmail()const @@ -231,7 +231,7 @@ std::string GetAllTemplateRequest::getCallerBidEmail()const void GetAllTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string GetAllTemplateRequest::getCallerUidEmail()const @@ -242,7 +242,7 @@ std::string GetAllTemplateRequest::getCallerUidEmail()const void GetAllTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long GetAllTemplateRequest::getCallerUid()const @@ -253,6 +253,6 @@ long GetAllTemplateRequest::getCallerUid()const void GetAllTemplateRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/GetAllTemplateResult.cc b/rtc/src/model/GetAllTemplateResult.cc index 2e166aeb1..4ca65a918 100644 --- a/rtc/src/model/GetAllTemplateResult.cc +++ b/rtc/src/model/GetAllTemplateResult.cc @@ -35,10 +35,13 @@ GetAllTemplateResult::~GetAllTemplateResult() void GetAllTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplateIds = value["TemplateIds"]["TemplateId"]; for (const auto &item : allTemplateIds) diff --git a/rtc/src/model/GetMPUTaskStatusRequest.cc b/rtc/src/model/GetMPUTaskStatusRequest.cc index 2ea633434..c22f11167 100644 --- a/rtc/src/model/GetMPUTaskStatusRequest.cc +++ b/rtc/src/model/GetMPUTaskStatusRequest.cc @@ -33,7 +33,7 @@ std::string GetMPUTaskStatusRequest::getApp_ip()const void GetMPUTaskStatusRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string GetMPUTaskStatusRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string GetMPUTaskStatusRequest::getPopProduct()const void GetMPUTaskStatusRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long GetMPUTaskStatusRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long GetMPUTaskStatusRequest::getResourceOwnerId()const void GetMPUTaskStatusRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long GetMPUTaskStatusRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long GetMPUTaskStatusRequest::getCallerParentId()const void GetMPUTaskStatusRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool GetMPUTaskStatusRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool GetMPUTaskStatusRequest::getProxy_original_security_transport()const void GetMPUTaskStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string GetMPUTaskStatusRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string GetMPUTaskStatusRequest::getCallerBid()const void GetMPUTaskStatusRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long GetMPUTaskStatusRequest::getOwnerId()const @@ -99,7 +99,7 @@ long GetMPUTaskStatusRequest::getOwnerId()const void GetMPUTaskStatusRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string GetMPUTaskStatusRequest::getProxy_original_source_ip()const @@ -110,7 +110,7 @@ std::string GetMPUTaskStatusRequest::getProxy_original_source_ip()const void GetMPUTaskStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string GetMPUTaskStatusRequest::getVersion()const @@ -121,7 +121,7 @@ std::string GetMPUTaskStatusRequest::getVersion()const void GetMPUTaskStatusRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string GetMPUTaskStatusRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string GetMPUTaskStatusRequest::getOwnerIdLoginEmail()const void GetMPUTaskStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string GetMPUTaskStatusRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string GetMPUTaskStatusRequest::getCallerType()const void GetMPUTaskStatusRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetMPUTaskStatusRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool GetMPUTaskStatusRequest::getProxy_trust_transport_info()const void GetMPUTaskStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool GetMPUTaskStatusRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool GetMPUTaskStatusRequest::getAk_mfa_present()const void GetMPUTaskStatusRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string GetMPUTaskStatusRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string GetMPUTaskStatusRequest::getAccessKeyId()const void GetMPUTaskStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool GetMPUTaskStatusRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool GetMPUTaskStatusRequest::getSecurity_transport()const void GetMPUTaskStatusRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetMPUTaskStatusRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string GetMPUTaskStatusRequest::getSecurityToken()const void GetMPUTaskStatusRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string GetMPUTaskStatusRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string GetMPUTaskStatusRequest::getRequestId()const void GetMPUTaskStatusRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string GetMPUTaskStatusRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string GetMPUTaskStatusRequest::getRequestContent()const void GetMPUTaskStatusRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string GetMPUTaskStatusRequest::getAppId()const @@ -231,7 +231,7 @@ std::string GetMPUTaskStatusRequest::getAppId()const void GetMPUTaskStatusRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string GetMPUTaskStatusRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string GetMPUTaskStatusRequest::getCallerBidEmail()const void GetMPUTaskStatusRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string GetMPUTaskStatusRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string GetMPUTaskStatusRequest::getCallerUidEmail()const void GetMPUTaskStatusRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string GetMPUTaskStatusRequest::getTaskId()const @@ -264,7 +264,7 @@ std::string GetMPUTaskStatusRequest::getTaskId()const void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } long GetMPUTaskStatusRequest::getCallerUid()const @@ -275,6 +275,6 @@ long GetMPUTaskStatusRequest::getCallerUid()const void GetMPUTaskStatusRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/GetMPUTaskStatusResult.cc b/rtc/src/model/GetMPUTaskStatusResult.cc index fc33c0575..c7d19b1dc 100644 --- a/rtc/src/model/GetMPUTaskStatusResult.cc +++ b/rtc/src/model/GetMPUTaskStatusResult.cc @@ -35,10 +35,13 @@ GetMPUTaskStatusResult::~GetMPUTaskStatusResult() void GetMPUTaskStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Status"].isNull()) status_ = std::stoi(value["Status"].asString()); diff --git a/rtc/src/model/GetTaskParamRequest.cc b/rtc/src/model/GetTaskParamRequest.cc index d1623c849..3aedb1e10 100644 --- a/rtc/src/model/GetTaskParamRequest.cc +++ b/rtc/src/model/GetTaskParamRequest.cc @@ -33,7 +33,7 @@ std::string GetTaskParamRequest::getApp_ip()const void GetTaskParamRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string GetTaskParamRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string GetTaskParamRequest::getPopProduct()const void GetTaskParamRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long GetTaskParamRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long GetTaskParamRequest::getCallerParentId()const void GetTaskParamRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool GetTaskParamRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool GetTaskParamRequest::getProxy_original_security_transport()const void GetTaskParamRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string GetTaskParamRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string GetTaskParamRequest::getCallerBid()const void GetTaskParamRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long GetTaskParamRequest::getOwnerId()const @@ -88,7 +88,7 @@ long GetTaskParamRequest::getOwnerId()const void GetTaskParamRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string GetTaskParamRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string GetTaskParamRequest::getProxy_original_source_ip()const void GetTaskParamRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string GetTaskParamRequest::getVersion()const @@ -110,7 +110,7 @@ std::string GetTaskParamRequest::getVersion()const void GetTaskParamRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string GetTaskParamRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string GetTaskParamRequest::getOwnerIdLoginEmail()const void GetTaskParamRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string GetTaskParamRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string GetTaskParamRequest::getCallerType()const void GetTaskParamRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetTaskParamRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool GetTaskParamRequest::getProxy_trust_transport_info()const void GetTaskParamRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool GetTaskParamRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool GetTaskParamRequest::getAk_mfa_present()const void GetTaskParamRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string GetTaskParamRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string GetTaskParamRequest::getAccessKeyId()const void GetTaskParamRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool GetTaskParamRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool GetTaskParamRequest::getSecurity_transport()const void GetTaskParamRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetTaskParamRequest::getSecurityToken()const @@ -187,7 +187,7 @@ std::string GetTaskParamRequest::getSecurityToken()const void GetTaskParamRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string GetTaskParamRequest::getRequestId()const @@ -198,7 +198,7 @@ std::string GetTaskParamRequest::getRequestId()const void GetTaskParamRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string GetTaskParamRequest::getRequestContent()const @@ -209,7 +209,7 @@ std::string GetTaskParamRequest::getRequestContent()const void GetTaskParamRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string GetTaskParamRequest::getAppId()const @@ -220,7 +220,7 @@ std::string GetTaskParamRequest::getAppId()const void GetTaskParamRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string GetTaskParamRequest::getCallerBidEmail()const @@ -231,7 +231,7 @@ std::string GetTaskParamRequest::getCallerBidEmail()const void GetTaskParamRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string GetTaskParamRequest::getCallerUidEmail()const @@ -242,7 +242,7 @@ std::string GetTaskParamRequest::getCallerUidEmail()const void GetTaskParamRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long GetTaskParamRequest::getTaskId()const @@ -253,7 +253,7 @@ long GetTaskParamRequest::getTaskId()const void GetTaskParamRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } long GetTaskParamRequest::getCallerUid()const @@ -264,6 +264,6 @@ long GetTaskParamRequest::getCallerUid()const void GetTaskParamRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/GetTaskParamResult.cc b/rtc/src/model/GetTaskParamResult.cc index c8eb8443f..b47132f96 100644 --- a/rtc/src/model/GetTaskParamResult.cc +++ b/rtc/src/model/GetTaskParamResult.cc @@ -35,10 +35,13 @@ GetTaskParamResult::~GetTaskParamResult() void GetTaskParamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMixPane = value["MixPane"]["MixPaneItem"]; for (auto value : allMixPane) diff --git a/rtc/src/model/GetTaskStatusRequest.cc b/rtc/src/model/GetTaskStatusRequest.cc index 59d41c10e..b9274efc0 100644 --- a/rtc/src/model/GetTaskStatusRequest.cc +++ b/rtc/src/model/GetTaskStatusRequest.cc @@ -33,7 +33,7 @@ std::string GetTaskStatusRequest::getApp_ip()const void GetTaskStatusRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string GetTaskStatusRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string GetTaskStatusRequest::getPopProduct()const void GetTaskStatusRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long GetTaskStatusRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long GetTaskStatusRequest::getCallerParentId()const void GetTaskStatusRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool GetTaskStatusRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool GetTaskStatusRequest::getProxy_original_security_transport()const void GetTaskStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string GetTaskStatusRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string GetTaskStatusRequest::getCallerBid()const void GetTaskStatusRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long GetTaskStatusRequest::getOwnerId()const @@ -88,7 +88,7 @@ long GetTaskStatusRequest::getOwnerId()const void GetTaskStatusRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string GetTaskStatusRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string GetTaskStatusRequest::getProxy_original_source_ip()const void GetTaskStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string GetTaskStatusRequest::getVersion()const @@ -110,7 +110,7 @@ std::string GetTaskStatusRequest::getVersion()const void GetTaskStatusRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string GetTaskStatusRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string GetTaskStatusRequest::getOwnerIdLoginEmail()const void GetTaskStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string GetTaskStatusRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string GetTaskStatusRequest::getCallerType()const void GetTaskStatusRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetTaskStatusRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool GetTaskStatusRequest::getProxy_trust_transport_info()const void GetTaskStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool GetTaskStatusRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool GetTaskStatusRequest::getAk_mfa_present()const void GetTaskStatusRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string GetTaskStatusRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string GetTaskStatusRequest::getAccessKeyId()const void GetTaskStatusRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool GetTaskStatusRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool GetTaskStatusRequest::getSecurity_transport()const void GetTaskStatusRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetTaskStatusRequest::getSecurityToken()const @@ -187,7 +187,7 @@ std::string GetTaskStatusRequest::getSecurityToken()const void GetTaskStatusRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string GetTaskStatusRequest::getRequestId()const @@ -198,7 +198,7 @@ std::string GetTaskStatusRequest::getRequestId()const void GetTaskStatusRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string GetTaskStatusRequest::getRequestContent()const @@ -209,7 +209,7 @@ std::string GetTaskStatusRequest::getRequestContent()const void GetTaskStatusRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string GetTaskStatusRequest::getAppId()const @@ -220,7 +220,7 @@ std::string GetTaskStatusRequest::getAppId()const void GetTaskStatusRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string GetTaskStatusRequest::getCallerBidEmail()const @@ -231,7 +231,7 @@ std::string GetTaskStatusRequest::getCallerBidEmail()const void GetTaskStatusRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string GetTaskStatusRequest::getCallerUidEmail()const @@ -242,7 +242,7 @@ std::string GetTaskStatusRequest::getCallerUidEmail()const void GetTaskStatusRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string GetTaskStatusRequest::getChannelId()const @@ -253,7 +253,7 @@ std::string GetTaskStatusRequest::getChannelId()const void GetTaskStatusRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } long GetTaskStatusRequest::getTaskId()const @@ -264,7 +264,7 @@ long GetTaskStatusRequest::getTaskId()const void GetTaskStatusRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } long GetTaskStatusRequest::getCallerUid()const @@ -275,6 +275,6 @@ long GetTaskStatusRequest::getCallerUid()const void GetTaskStatusRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/GetTaskStatusResult.cc b/rtc/src/model/GetTaskStatusResult.cc index 38fb6459a..68929f104 100644 --- a/rtc/src/model/GetTaskStatusResult.cc +++ b/rtc/src/model/GetTaskStatusResult.cc @@ -35,10 +35,13 @@ GetTaskStatusResult::~GetTaskStatusResult() void GetTaskStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Status"].isNull()) status_ = std::stoi(value["Status"].asString()); diff --git a/rtc/src/model/GetTemplateInfoRequest.cc b/rtc/src/model/GetTemplateInfoRequest.cc index 3ecacfa5d..5f4aa7fcf 100644 --- a/rtc/src/model/GetTemplateInfoRequest.cc +++ b/rtc/src/model/GetTemplateInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetTemplateInfoRequest::getApp_ip()const void GetTemplateInfoRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string GetTemplateInfoRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string GetTemplateInfoRequest::getPopProduct()const void GetTemplateInfoRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long GetTemplateInfoRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long GetTemplateInfoRequest::getCallerParentId()const void GetTemplateInfoRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool GetTemplateInfoRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool GetTemplateInfoRequest::getProxy_original_security_transport()const void GetTemplateInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string GetTemplateInfoRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string GetTemplateInfoRequest::getCallerBid()const void GetTemplateInfoRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long GetTemplateInfoRequest::getOwnerId()const @@ -88,7 +88,7 @@ long GetTemplateInfoRequest::getOwnerId()const void GetTemplateInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string GetTemplateInfoRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string GetTemplateInfoRequest::getProxy_original_source_ip()const void GetTemplateInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } long GetTemplateInfoRequest::getTemplateId()const @@ -110,7 +110,7 @@ long GetTemplateInfoRequest::getTemplateId()const void GetTemplateInfoRequest::setTemplateId(long templateId) { templateId_ = templateId; - setParameter("TemplateId", std::to_string(templateId)); + setCoreParameter("TemplateId", std::to_string(templateId)); } std::string GetTemplateInfoRequest::getVersion()const @@ -121,7 +121,7 @@ std::string GetTemplateInfoRequest::getVersion()const void GetTemplateInfoRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string GetTemplateInfoRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string GetTemplateInfoRequest::getOwnerIdLoginEmail()const void GetTemplateInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string GetTemplateInfoRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string GetTemplateInfoRequest::getCallerType()const void GetTemplateInfoRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool GetTemplateInfoRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool GetTemplateInfoRequest::getProxy_trust_transport_info()const void GetTemplateInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool GetTemplateInfoRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool GetTemplateInfoRequest::getAk_mfa_present()const void GetTemplateInfoRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string GetTemplateInfoRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string GetTemplateInfoRequest::getAccessKeyId()const void GetTemplateInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool GetTemplateInfoRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool GetTemplateInfoRequest::getSecurity_transport()const void GetTemplateInfoRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string GetTemplateInfoRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string GetTemplateInfoRequest::getSecurityToken()const void GetTemplateInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string GetTemplateInfoRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string GetTemplateInfoRequest::getRequestId()const void GetTemplateInfoRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string GetTemplateInfoRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string GetTemplateInfoRequest::getRequestContent()const void GetTemplateInfoRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string GetTemplateInfoRequest::getAppId()const @@ -231,7 +231,7 @@ std::string GetTemplateInfoRequest::getAppId()const void GetTemplateInfoRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string GetTemplateInfoRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string GetTemplateInfoRequest::getCallerBidEmail()const void GetTemplateInfoRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string GetTemplateInfoRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string GetTemplateInfoRequest::getCallerUidEmail()const void GetTemplateInfoRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long GetTemplateInfoRequest::getCallerUid()const @@ -264,6 +264,6 @@ long GetTemplateInfoRequest::getCallerUid()const void GetTemplateInfoRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/GetTemplateInfoResult.cc b/rtc/src/model/GetTemplateInfoResult.cc index 8a51f4442..ffcf77db2 100644 --- a/rtc/src/model/GetTemplateInfoResult.cc +++ b/rtc/src/model/GetTemplateInfoResult.cc @@ -35,10 +35,13 @@ GetTemplateInfoResult::~GetTemplateInfoResult() void GetTemplateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto layOutNode = value["LayOut"]; if(!layOutNode["Color"].isNull()) diff --git a/rtc/src/model/ModifyAppRequest.cc b/rtc/src/model/ModifyAppRequest.cc index c643d817a..9d1b9e35d 100644 --- a/rtc/src/model/ModifyAppRequest.cc +++ b/rtc/src/model/ModifyAppRequest.cc @@ -33,7 +33,7 @@ std::string ModifyAppRequest::getApp_ip()const void ModifyAppRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ModifyAppRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string ModifyAppRequest::getPopProduct()const void ModifyAppRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long ModifyAppRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long ModifyAppRequest::getCallerParentId()const void ModifyAppRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ModifyAppRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool ModifyAppRequest::getProxy_original_security_transport()const void ModifyAppRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyAppRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string ModifyAppRequest::getCallerBid()const void ModifyAppRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyAppRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ModifyAppRequest::getOwnerId()const void ModifyAppRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyAppRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string ModifyAppRequest::getProxy_original_source_ip()const void ModifyAppRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyAppRequest::getVersion()const @@ -110,7 +110,7 @@ std::string ModifyAppRequest::getVersion()const void ModifyAppRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string ModifyAppRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string ModifyAppRequest::getOwnerIdLoginEmail()const void ModifyAppRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyAppRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string ModifyAppRequest::getCallerType()const void ModifyAppRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool ModifyAppRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool ModifyAppRequest::getProxy_trust_transport_info()const void ModifyAppRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyAppRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool ModifyAppRequest::getAk_mfa_present()const void ModifyAppRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string ModifyAppRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string ModifyAppRequest::getAccessKeyId()const void ModifyAppRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool ModifyAppRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool ModifyAppRequest::getSecurity_transport()const void ModifyAppRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyAppRequest::getAppName()const @@ -187,7 +187,7 @@ std::string ModifyAppRequest::getAppName()const void ModifyAppRequest::setAppName(const std::string& appName) { appName_ = appName; - setParameter("AppName", appName); + setCoreParameter("AppName", appName); } std::string ModifyAppRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string ModifyAppRequest::getSecurityToken()const void ModifyAppRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyAppRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string ModifyAppRequest::getRequestId()const void ModifyAppRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ModifyAppRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string ModifyAppRequest::getRequestContent()const void ModifyAppRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyAppRequest::getAppId()const @@ -231,7 +231,7 @@ std::string ModifyAppRequest::getAppId()const void ModifyAppRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string ModifyAppRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string ModifyAppRequest::getCallerBidEmail()const void ModifyAppRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyAppRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string ModifyAppRequest::getCallerUidEmail()const void ModifyAppRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyAppRequest::getCallerUid()const @@ -264,6 +264,6 @@ long ModifyAppRequest::getCallerUid()const void ModifyAppRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/ModifyAppResult.cc b/rtc/src/model/ModifyAppResult.cc index 628d694cf..7ad7e57e9 100644 --- a/rtc/src/model/ModifyAppResult.cc +++ b/rtc/src/model/ModifyAppResult.cc @@ -35,10 +35,13 @@ ModifyAppResult::~ModifyAppResult() void ModifyAppResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/rtc/src/model/ModifyConferenceRequest.cc b/rtc/src/model/ModifyConferenceRequest.cc index 7bfe74d49..028f1d64c 100644 --- a/rtc/src/model/ModifyConferenceRequest.cc +++ b/rtc/src/model/ModifyConferenceRequest.cc @@ -33,7 +33,7 @@ long ModifyConferenceRequest::getCallerParentId()const void ModifyConferenceRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ModifyConferenceRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool ModifyConferenceRequest::getProxy_original_security_transport()const void ModifyConferenceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyConferenceRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string ModifyConferenceRequest::getStartTime()const void ModifyConferenceRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string ModifyConferenceRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string ModifyConferenceRequest::getProxy_original_source_ip()const void ModifyConferenceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyConferenceRequest::getType()const @@ -77,7 +77,7 @@ std::string ModifyConferenceRequest::getType()const void ModifyConferenceRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } std::string ModifyConferenceRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string ModifyConferenceRequest::getOwnerIdLoginEmail()const void ModifyConferenceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyConferenceRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string ModifyConferenceRequest::getCallerType()const void ModifyConferenceRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string ModifyConferenceRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string ModifyConferenceRequest::getAccessKeyId()const void ModifyConferenceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyConferenceRequest::getSecurityToken()const @@ -121,7 +121,7 @@ std::string ModifyConferenceRequest::getSecurityToken()const void ModifyConferenceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ModifyConferenceRequest::getConferenceId()const @@ -132,7 +132,7 @@ std::string ModifyConferenceRequest::getConferenceId()const void ModifyConferenceRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string ModifyConferenceRequest::getConferenceName()const @@ -143,7 +143,7 @@ std::string ModifyConferenceRequest::getConferenceName()const void ModifyConferenceRequest::setConferenceName(const std::string& conferenceName) { conferenceName_ = conferenceName; - setParameter("ConferenceName", conferenceName); + setCoreParameter("ConferenceName", conferenceName); } std::string ModifyConferenceRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string ModifyConferenceRequest::getRequestContent()const void ModifyConferenceRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyConferenceRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string ModifyConferenceRequest::getCallerBidEmail()const void ModifyConferenceRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyConferenceRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string ModifyConferenceRequest::getCallerUidEmail()const void ModifyConferenceRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyConferenceRequest::getCallerUid()const @@ -187,7 +187,7 @@ long ModifyConferenceRequest::getCallerUid()const void ModifyConferenceRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string ModifyConferenceRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string ModifyConferenceRequest::getApp_ip()const void ModifyConferenceRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ModifyConferenceRequest::getPopProduct()const @@ -209,7 +209,7 @@ std::string ModifyConferenceRequest::getPopProduct()const void ModifyConferenceRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string ModifyConferenceRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string ModifyConferenceRequest::getCallerBid()const void ModifyConferenceRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyConferenceRequest::getOwnerId()const @@ -231,7 +231,7 @@ long ModifyConferenceRequest::getOwnerId()const void ModifyConferenceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyConferenceRequest::getVersion()const @@ -242,7 +242,7 @@ std::string ModifyConferenceRequest::getVersion()const void ModifyConferenceRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool ModifyConferenceRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool ModifyConferenceRequest::getProxy_trust_transport_info()const void ModifyConferenceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyConferenceRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool ModifyConferenceRequest::getAk_mfa_present()const void ModifyConferenceRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool ModifyConferenceRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool ModifyConferenceRequest::getSecurity_transport()const void ModifyConferenceRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyConferenceRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string ModifyConferenceRequest::getRequestId()const void ModifyConferenceRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ModifyConferenceRequest::getAppId()const @@ -297,7 +297,7 @@ std::string ModifyConferenceRequest::getAppId()const void ModifyConferenceRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } int ModifyConferenceRequest::getRemindNotice()const @@ -308,6 +308,6 @@ int ModifyConferenceRequest::getRemindNotice()const void ModifyConferenceRequest::setRemindNotice(int remindNotice) { remindNotice_ = remindNotice; - setParameter("RemindNotice", std::to_string(remindNotice)); + setCoreParameter("RemindNotice", std::to_string(remindNotice)); } diff --git a/rtc/src/model/ModifyConferenceResult.cc b/rtc/src/model/ModifyConferenceResult.cc index cd5496d9d..02f2ace44 100644 --- a/rtc/src/model/ModifyConferenceResult.cc +++ b/rtc/src/model/ModifyConferenceResult.cc @@ -35,10 +35,13 @@ ModifyConferenceResult::~ModifyConferenceResult() void ModifyConferenceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ConferenceId"].isNull()) conferenceId_ = value["ConferenceId"].asString(); diff --git a/rtc/src/model/MuteAudioAllRequest.cc b/rtc/src/model/MuteAudioAllRequest.cc index e8c61c757..e4a1201b4 100644 --- a/rtc/src/model/MuteAudioAllRequest.cc +++ b/rtc/src/model/MuteAudioAllRequest.cc @@ -33,7 +33,7 @@ std::string MuteAudioAllRequest::getApp_ip()const void MuteAudioAllRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string MuteAudioAllRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string MuteAudioAllRequest::getPopProduct()const void MuteAudioAllRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long MuteAudioAllRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long MuteAudioAllRequest::getCallerParentId()const void MuteAudioAllRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool MuteAudioAllRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool MuteAudioAllRequest::getProxy_original_security_transport()const void MuteAudioAllRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string MuteAudioAllRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string MuteAudioAllRequest::getCallerBid()const void MuteAudioAllRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long MuteAudioAllRequest::getOwnerId()const @@ -88,7 +88,7 @@ long MuteAudioAllRequest::getOwnerId()const void MuteAudioAllRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string MuteAudioAllRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string MuteAudioAllRequest::getProxy_original_source_ip()const void MuteAudioAllRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string MuteAudioAllRequest::getVersion()const @@ -110,7 +110,7 @@ std::string MuteAudioAllRequest::getVersion()const void MuteAudioAllRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string MuteAudioAllRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string MuteAudioAllRequest::getOwnerIdLoginEmail()const void MuteAudioAllRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string MuteAudioAllRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string MuteAudioAllRequest::getCallerType()const void MuteAudioAllRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool MuteAudioAllRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool MuteAudioAllRequest::getProxy_trust_transport_info()const void MuteAudioAllRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool MuteAudioAllRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool MuteAudioAllRequest::getAk_mfa_present()const void MuteAudioAllRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string MuteAudioAllRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string MuteAudioAllRequest::getAccessKeyId()const void MuteAudioAllRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool MuteAudioAllRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool MuteAudioAllRequest::getSecurity_transport()const void MuteAudioAllRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string MuteAudioAllRequest::getParticipantId()const @@ -187,7 +187,7 @@ std::string MuteAudioAllRequest::getParticipantId()const void MuteAudioAllRequest::setParticipantId(const std::string& participantId) { participantId_ = participantId; - setParameter("ParticipantId", participantId); + setCoreParameter("ParticipantId", participantId); } std::string MuteAudioAllRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string MuteAudioAllRequest::getSecurityToken()const void MuteAudioAllRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string MuteAudioAllRequest::getConferenceId()const @@ -209,7 +209,7 @@ std::string MuteAudioAllRequest::getConferenceId()const void MuteAudioAllRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string MuteAudioAllRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string MuteAudioAllRequest::getRequestId()const void MuteAudioAllRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string MuteAudioAllRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string MuteAudioAllRequest::getRequestContent()const void MuteAudioAllRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string MuteAudioAllRequest::getAppId()const @@ -242,7 +242,7 @@ std::string MuteAudioAllRequest::getAppId()const void MuteAudioAllRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string MuteAudioAllRequest::getCallerBidEmail()const @@ -253,7 +253,7 @@ std::string MuteAudioAllRequest::getCallerBidEmail()const void MuteAudioAllRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string MuteAudioAllRequest::getCallerUidEmail()const @@ -264,7 +264,7 @@ std::string MuteAudioAllRequest::getCallerUidEmail()const void MuteAudioAllRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long MuteAudioAllRequest::getCallerUid()const @@ -275,6 +275,6 @@ long MuteAudioAllRequest::getCallerUid()const void MuteAudioAllRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/MuteAudioAllResult.cc b/rtc/src/model/MuteAudioAllResult.cc index bec642129..d5db0daae 100644 --- a/rtc/src/model/MuteAudioAllResult.cc +++ b/rtc/src/model/MuteAudioAllResult.cc @@ -35,10 +35,13 @@ MuteAudioAllResult::~MuteAudioAllResult() void MuteAudioAllResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParticipants = value["Participants"]["Participant"]; for (auto value : allParticipants) diff --git a/rtc/src/model/MuteAudioRequest.cc b/rtc/src/model/MuteAudioRequest.cc index 9c9095a69..5fe284fda 100644 --- a/rtc/src/model/MuteAudioRequest.cc +++ b/rtc/src/model/MuteAudioRequest.cc @@ -33,7 +33,7 @@ std::string MuteAudioRequest::getApp_ip()const void MuteAudioRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string MuteAudioRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string MuteAudioRequest::getPopProduct()const void MuteAudioRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::vector MuteAudioRequest::getParticipantIds()const @@ -56,7 +56,7 @@ void MuteAudioRequest::setParticipantIds(const std::vector& partici { participantIds_ = participantIds; for(int i = 0; i!= participantIds.size(); i++) - setParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i)); + setCoreParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i)); } long MuteAudioRequest::getCallerParentId()const @@ -67,7 +67,7 @@ long MuteAudioRequest::getCallerParentId()const void MuteAudioRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool MuteAudioRequest::getProxy_original_security_transport()const @@ -78,7 +78,7 @@ bool MuteAudioRequest::getProxy_original_security_transport()const void MuteAudioRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string MuteAudioRequest::getCallerBid()const @@ -89,7 +89,7 @@ std::string MuteAudioRequest::getCallerBid()const void MuteAudioRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long MuteAudioRequest::getOwnerId()const @@ -100,7 +100,7 @@ long MuteAudioRequest::getOwnerId()const void MuteAudioRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string MuteAudioRequest::getProxy_original_source_ip()const @@ -111,7 +111,7 @@ std::string MuteAudioRequest::getProxy_original_source_ip()const void MuteAudioRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string MuteAudioRequest::getVersion()const @@ -122,7 +122,7 @@ std::string MuteAudioRequest::getVersion()const void MuteAudioRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string MuteAudioRequest::getOwnerIdLoginEmail()const @@ -133,7 +133,7 @@ std::string MuteAudioRequest::getOwnerIdLoginEmail()const void MuteAudioRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string MuteAudioRequest::getCallerType()const @@ -144,7 +144,7 @@ std::string MuteAudioRequest::getCallerType()const void MuteAudioRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool MuteAudioRequest::getProxy_trust_transport_info()const @@ -155,7 +155,7 @@ bool MuteAudioRequest::getProxy_trust_transport_info()const void MuteAudioRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool MuteAudioRequest::getAk_mfa_present()const @@ -166,7 +166,7 @@ bool MuteAudioRequest::getAk_mfa_present()const void MuteAudioRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string MuteAudioRequest::getAccessKeyId()const @@ -177,7 +177,7 @@ std::string MuteAudioRequest::getAccessKeyId()const void MuteAudioRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool MuteAudioRequest::getSecurity_transport()const @@ -188,7 +188,7 @@ bool MuteAudioRequest::getSecurity_transport()const void MuteAudioRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string MuteAudioRequest::getSecurityToken()const @@ -199,7 +199,7 @@ std::string MuteAudioRequest::getSecurityToken()const void MuteAudioRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string MuteAudioRequest::getConferenceId()const @@ -210,7 +210,7 @@ std::string MuteAudioRequest::getConferenceId()const void MuteAudioRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string MuteAudioRequest::getRequestId()const @@ -221,7 +221,7 @@ std::string MuteAudioRequest::getRequestId()const void MuteAudioRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string MuteAudioRequest::getRequestContent()const @@ -232,7 +232,7 @@ std::string MuteAudioRequest::getRequestContent()const void MuteAudioRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string MuteAudioRequest::getAppId()const @@ -243,7 +243,7 @@ std::string MuteAudioRequest::getAppId()const void MuteAudioRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string MuteAudioRequest::getCallerBidEmail()const @@ -254,7 +254,7 @@ std::string MuteAudioRequest::getCallerBidEmail()const void MuteAudioRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string MuteAudioRequest::getCallerUidEmail()const @@ -265,7 +265,7 @@ std::string MuteAudioRequest::getCallerUidEmail()const void MuteAudioRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long MuteAudioRequest::getCallerUid()const @@ -276,6 +276,6 @@ long MuteAudioRequest::getCallerUid()const void MuteAudioRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/MuteAudioResult.cc b/rtc/src/model/MuteAudioResult.cc index 2cb609792..3259a5e2e 100644 --- a/rtc/src/model/MuteAudioResult.cc +++ b/rtc/src/model/MuteAudioResult.cc @@ -35,10 +35,13 @@ MuteAudioResult::~MuteAudioResult() void MuteAudioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParticipants = value["Participants"]["Participant"]; for (auto value : allParticipants) diff --git a/rtc/src/model/ReceiveNotifyRequest.cc b/rtc/src/model/ReceiveNotifyRequest.cc index cb43d5200..a51d4ca22 100644 --- a/rtc/src/model/ReceiveNotifyRequest.cc +++ b/rtc/src/model/ReceiveNotifyRequest.cc @@ -33,7 +33,7 @@ std::string ReceiveNotifyRequest::getTraceId()const void ReceiveNotifyRequest::setTraceId(const std::string& traceId) { traceId_ = traceId; - setParameter("TraceId", traceId); + setCoreParameter("TraceId", traceId); } long ReceiveNotifyRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ReceiveNotifyRequest::getResourceOwnerId()const void ReceiveNotifyRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long ReceiveNotifyRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long ReceiveNotifyRequest::getCallerParentId()const void ReceiveNotifyRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ReceiveNotifyRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool ReceiveNotifyRequest::getProxy_original_security_transport()const void ReceiveNotifyRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ReceiveNotifyRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string ReceiveNotifyRequest::getProxy_original_source_ip()const void ReceiveNotifyRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ReceiveNotifyRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string ReceiveNotifyRequest::getOwnerIdLoginEmail()const void ReceiveNotifyRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ReceiveNotifyRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string ReceiveNotifyRequest::getCallerType()const void ReceiveNotifyRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string ReceiveNotifyRequest::getContent()const @@ -110,7 +110,7 @@ std::string ReceiveNotifyRequest::getContent()const void ReceiveNotifyRequest::setContent(const std::string& content) { content_ = content; - setParameter("Content", content); + setCoreParameter("Content", content); } std::string ReceiveNotifyRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ReceiveNotifyRequest::getAccessKeyId()const void ReceiveNotifyRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ReceiveNotifyRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string ReceiveNotifyRequest::getSecurityToken()const void ReceiveNotifyRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string ReceiveNotifyRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string ReceiveNotifyRequest::getRequestContent()const void ReceiveNotifyRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ReceiveNotifyRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string ReceiveNotifyRequest::getCallerBidEmail()const void ReceiveNotifyRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ReceiveNotifyRequest::getEvent()const @@ -165,7 +165,7 @@ std::string ReceiveNotifyRequest::getEvent()const void ReceiveNotifyRequest::setEvent(const std::string& event) { event_ = event; - setParameter("Event", event); + setCoreParameter("Event", event); } std::string ReceiveNotifyRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string ReceiveNotifyRequest::getCallerUidEmail()const void ReceiveNotifyRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ReceiveNotifyRequest::getCallerUid()const @@ -187,7 +187,7 @@ long ReceiveNotifyRequest::getCallerUid()const void ReceiveNotifyRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string ReceiveNotifyRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string ReceiveNotifyRequest::getApp_ip()const void ReceiveNotifyRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ReceiveNotifyRequest::getPopProduct()const @@ -209,7 +209,7 @@ std::string ReceiveNotifyRequest::getPopProduct()const void ReceiveNotifyRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string ReceiveNotifyRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string ReceiveNotifyRequest::getCallerBid()const void ReceiveNotifyRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ReceiveNotifyRequest::getOwnerId()const @@ -231,7 +231,7 @@ long ReceiveNotifyRequest::getOwnerId()const void ReceiveNotifyRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ReceiveNotifyRequest::getVersion()const @@ -242,7 +242,7 @@ std::string ReceiveNotifyRequest::getVersion()const void ReceiveNotifyRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool ReceiveNotifyRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool ReceiveNotifyRequest::getProxy_trust_transport_info()const void ReceiveNotifyRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ReceiveNotifyRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool ReceiveNotifyRequest::getAk_mfa_present()const void ReceiveNotifyRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string ReceiveNotifyRequest::getContentType()const @@ -275,7 +275,7 @@ std::string ReceiveNotifyRequest::getContentType()const void ReceiveNotifyRequest::setContentType(const std::string& contentType) { contentType_ = contentType; - setParameter("ContentType", contentType); + setCoreParameter("ContentType", contentType); } bool ReceiveNotifyRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool ReceiveNotifyRequest::getSecurity_transport()const void ReceiveNotifyRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ReceiveNotifyRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string ReceiveNotifyRequest::getRequestId()const void ReceiveNotifyRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ReceiveNotifyRequest::getBizId()const @@ -308,6 +308,6 @@ std::string ReceiveNotifyRequest::getBizId()const void ReceiveNotifyRequest::setBizId(const std::string& bizId) { bizId_ = bizId; - setParameter("BizId", bizId); + setCoreParameter("BizId", bizId); } diff --git a/rtc/src/model/ReceiveNotifyResult.cc b/rtc/src/model/ReceiveNotifyResult.cc index 53e1b9eb8..07b40e872 100644 --- a/rtc/src/model/ReceiveNotifyResult.cc +++ b/rtc/src/model/ReceiveNotifyResult.cc @@ -35,10 +35,13 @@ ReceiveNotifyResult::~ReceiveNotifyResult() void ReceiveNotifyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TraceId"].isNull()) traceId_ = value["TraceId"].asString(); diff --git a/rtc/src/model/RemoveParticipantsRequest.cc b/rtc/src/model/RemoveParticipantsRequest.cc index 9c532a66e..c5eed61e1 100644 --- a/rtc/src/model/RemoveParticipantsRequest.cc +++ b/rtc/src/model/RemoveParticipantsRequest.cc @@ -33,7 +33,7 @@ std::string RemoveParticipantsRequest::getApp_ip()const void RemoveParticipantsRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string RemoveParticipantsRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string RemoveParticipantsRequest::getPopProduct()const void RemoveParticipantsRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::vector RemoveParticipantsRequest::getParticipantIds()const @@ -56,7 +56,7 @@ void RemoveParticipantsRequest::setParticipantIds(const std::vector { participantIds_ = participantIds; for(int i = 0; i!= participantIds.size(); i++) - setParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i)); + setCoreParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i)); } long RemoveParticipantsRequest::getCallerParentId()const @@ -67,7 +67,7 @@ long RemoveParticipantsRequest::getCallerParentId()const void RemoveParticipantsRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool RemoveParticipantsRequest::getProxy_original_security_transport()const @@ -78,7 +78,7 @@ bool RemoveParticipantsRequest::getProxy_original_security_transport()const void RemoveParticipantsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string RemoveParticipantsRequest::getCallerBid()const @@ -89,7 +89,7 @@ std::string RemoveParticipantsRequest::getCallerBid()const void RemoveParticipantsRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long RemoveParticipantsRequest::getOwnerId()const @@ -100,7 +100,7 @@ long RemoveParticipantsRequest::getOwnerId()const void RemoveParticipantsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveParticipantsRequest::getProxy_original_source_ip()const @@ -111,7 +111,7 @@ std::string RemoveParticipantsRequest::getProxy_original_source_ip()const void RemoveParticipantsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string RemoveParticipantsRequest::getVersion()const @@ -122,7 +122,7 @@ std::string RemoveParticipantsRequest::getVersion()const void RemoveParticipantsRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string RemoveParticipantsRequest::getOwnerIdLoginEmail()const @@ -133,7 +133,7 @@ std::string RemoveParticipantsRequest::getOwnerIdLoginEmail()const void RemoveParticipantsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string RemoveParticipantsRequest::getCallerType()const @@ -144,7 +144,7 @@ std::string RemoveParticipantsRequest::getCallerType()const void RemoveParticipantsRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool RemoveParticipantsRequest::getProxy_trust_transport_info()const @@ -155,7 +155,7 @@ bool RemoveParticipantsRequest::getProxy_trust_transport_info()const void RemoveParticipantsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool RemoveParticipantsRequest::getAk_mfa_present()const @@ -166,7 +166,7 @@ bool RemoveParticipantsRequest::getAk_mfa_present()const void RemoveParticipantsRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string RemoveParticipantsRequest::getAccessKeyId()const @@ -177,7 +177,7 @@ std::string RemoveParticipantsRequest::getAccessKeyId()const void RemoveParticipantsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool RemoveParticipantsRequest::getSecurity_transport()const @@ -188,7 +188,7 @@ bool RemoveParticipantsRequest::getSecurity_transport()const void RemoveParticipantsRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string RemoveParticipantsRequest::getSecurityToken()const @@ -199,7 +199,7 @@ std::string RemoveParticipantsRequest::getSecurityToken()const void RemoveParticipantsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string RemoveParticipantsRequest::getConferenceId()const @@ -210,7 +210,7 @@ std::string RemoveParticipantsRequest::getConferenceId()const void RemoveParticipantsRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string RemoveParticipantsRequest::getRequestId()const @@ -221,7 +221,7 @@ std::string RemoveParticipantsRequest::getRequestId()const void RemoveParticipantsRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string RemoveParticipantsRequest::getRequestContent()const @@ -232,7 +232,7 @@ std::string RemoveParticipantsRequest::getRequestContent()const void RemoveParticipantsRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string RemoveParticipantsRequest::getAppId()const @@ -243,7 +243,7 @@ std::string RemoveParticipantsRequest::getAppId()const void RemoveParticipantsRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string RemoveParticipantsRequest::getCallerBidEmail()const @@ -254,7 +254,7 @@ std::string RemoveParticipantsRequest::getCallerBidEmail()const void RemoveParticipantsRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string RemoveParticipantsRequest::getCallerUidEmail()const @@ -265,7 +265,7 @@ std::string RemoveParticipantsRequest::getCallerUidEmail()const void RemoveParticipantsRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long RemoveParticipantsRequest::getCallerUid()const @@ -276,6 +276,6 @@ long RemoveParticipantsRequest::getCallerUid()const void RemoveParticipantsRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/RemoveParticipantsResult.cc b/rtc/src/model/RemoveParticipantsResult.cc index e0637b7f9..20b383975 100644 --- a/rtc/src/model/RemoveParticipantsResult.cc +++ b/rtc/src/model/RemoveParticipantsResult.cc @@ -35,10 +35,13 @@ RemoveParticipantsResult::~RemoveParticipantsResult() void RemoveParticipantsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParticipants = value["Participants"]["Participant"]; for (auto value : allParticipants) diff --git a/rtc/src/model/RemoveTerminalsRequest.cc b/rtc/src/model/RemoveTerminalsRequest.cc index 6d8cc9cc6..486a74bcc 100644 --- a/rtc/src/model/RemoveTerminalsRequest.cc +++ b/rtc/src/model/RemoveTerminalsRequest.cc @@ -25,6 +25,17 @@ RemoveTerminalsRequest::RemoveTerminalsRequest() : RemoveTerminalsRequest::~RemoveTerminalsRequest() {} +long RemoveTerminalsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveTerminalsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + long RemoveTerminalsRequest::getCallerParentId()const { return callerParentId_; @@ -33,7 +44,7 @@ long RemoveTerminalsRequest::getCallerParentId()const void RemoveTerminalsRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool RemoveTerminalsRequest::getProxy_original_security_transport()const @@ -44,7 +55,7 @@ bool RemoveTerminalsRequest::getProxy_original_security_transport()const void RemoveTerminalsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string RemoveTerminalsRequest::getProxy_original_source_ip()const @@ -55,7 +66,7 @@ std::string RemoveTerminalsRequest::getProxy_original_source_ip()const void RemoveTerminalsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string RemoveTerminalsRequest::getOwnerIdLoginEmail()const @@ -66,7 +77,7 @@ std::string RemoveTerminalsRequest::getOwnerIdLoginEmail()const void RemoveTerminalsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string RemoveTerminalsRequest::getCallerType()const @@ -77,7 +88,7 @@ std::string RemoveTerminalsRequest::getCallerType()const void RemoveTerminalsRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string RemoveTerminalsRequest::getAccessKeyId()const @@ -88,7 +99,7 @@ std::string RemoveTerminalsRequest::getAccessKeyId()const void RemoveTerminalsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string RemoveTerminalsRequest::getSecurityToken()const @@ -99,7 +110,7 @@ std::string RemoveTerminalsRequest::getSecurityToken()const void RemoveTerminalsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string RemoveTerminalsRequest::getRequestContent()const @@ -110,7 +121,7 @@ std::string RemoveTerminalsRequest::getRequestContent()const void RemoveTerminalsRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string RemoveTerminalsRequest::getCallerBidEmail()const @@ -121,7 +132,7 @@ std::string RemoveTerminalsRequest::getCallerBidEmail()const void RemoveTerminalsRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::vector RemoveTerminalsRequest::getTerminalIds()const @@ -133,7 +144,7 @@ void RemoveTerminalsRequest::setTerminalIds(const std::vector& term { terminalIds_ = terminalIds; for(int i = 0; i!= terminalIds.size(); i++) - setParameter("TerminalIds."+ std::to_string(i), terminalIds.at(i)); + setCoreParameter("TerminalIds."+ std::to_string(i), terminalIds.at(i)); } std::string RemoveTerminalsRequest::getCallerUidEmail()const @@ -144,7 +155,7 @@ std::string RemoveTerminalsRequest::getCallerUidEmail()const void RemoveTerminalsRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long RemoveTerminalsRequest::getCallerUid()const @@ -155,7 +166,7 @@ long RemoveTerminalsRequest::getCallerUid()const void RemoveTerminalsRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string RemoveTerminalsRequest::getApp_ip()const @@ -166,7 +177,7 @@ std::string RemoveTerminalsRequest::getApp_ip()const void RemoveTerminalsRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string RemoveTerminalsRequest::getPopProduct()const @@ -177,18 +188,7 @@ std::string RemoveTerminalsRequest::getPopProduct()const void RemoveTerminalsRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); -} - -std::string RemoveTerminalsRequest::getProduct()const -{ - return product_; -} - -void RemoveTerminalsRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); + setCoreParameter("PopProduct", popProduct); } std::string RemoveTerminalsRequest::getCallerBid()const @@ -199,7 +199,7 @@ std::string RemoveTerminalsRequest::getCallerBid()const void RemoveTerminalsRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long RemoveTerminalsRequest::getOwnerId()const @@ -210,7 +210,7 @@ long RemoveTerminalsRequest::getOwnerId()const void RemoveTerminalsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveTerminalsRequest::getVersion()const @@ -221,7 +221,7 @@ std::string RemoveTerminalsRequest::getVersion()const void RemoveTerminalsRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool RemoveTerminalsRequest::getProxy_trust_transport_info()const @@ -232,7 +232,7 @@ bool RemoveTerminalsRequest::getProxy_trust_transport_info()const void RemoveTerminalsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool RemoveTerminalsRequest::getAk_mfa_present()const @@ -243,7 +243,7 @@ bool RemoveTerminalsRequest::getAk_mfa_present()const void RemoveTerminalsRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool RemoveTerminalsRequest::getSecurity_transport()const @@ -254,7 +254,18 @@ bool RemoveTerminalsRequest::getSecurity_transport()const void RemoveTerminalsRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string RemoveTerminalsRequest::getServiceCode()const +{ + return serviceCode_; +} + +void RemoveTerminalsRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); } std::string RemoveTerminalsRequest::getRequestId()const @@ -265,7 +276,7 @@ std::string RemoveTerminalsRequest::getRequestId()const void RemoveTerminalsRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string RemoveTerminalsRequest::getAppId()const @@ -276,7 +287,7 @@ std::string RemoveTerminalsRequest::getAppId()const void RemoveTerminalsRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string RemoveTerminalsRequest::getChannelId()const @@ -287,6 +298,6 @@ std::string RemoveTerminalsRequest::getChannelId()const void RemoveTerminalsRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/RemoveTerminalsResult.cc b/rtc/src/model/RemoveTerminalsResult.cc index 917c7029c..682022bc3 100644 --- a/rtc/src/model/RemoveTerminalsResult.cc +++ b/rtc/src/model/RemoveTerminalsResult.cc @@ -35,10 +35,13 @@ RemoveTerminalsResult::~RemoveTerminalsResult() void RemoveTerminalsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTerminals = value["Terminals"]["Terminal"]; for (auto value : allTerminals) diff --git a/rtc/src/model/StartMPUTaskRequest.cc b/rtc/src/model/StartMPUTaskRequest.cc index fb383bd65..2d807f4db 100644 --- a/rtc/src/model/StartMPUTaskRequest.cc +++ b/rtc/src/model/StartMPUTaskRequest.cc @@ -33,7 +33,7 @@ long StartMPUTaskRequest::getResourceOwnerId()const void StartMPUTaskRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::vector StartMPUTaskRequest::getUserPanes()const @@ -48,9 +48,9 @@ void StartMPUTaskRequest::setUserPanes(const std::vector& userPanes) for(int i = 0; i!= userPanes.size(); i++) { auto obj = userPanes.at(i); std::string str ="UserPanes."+ std::to_string(i); - setParameter(str + ".PaneId", std::to_string(obj.paneId)); - setParameter(str + ".UserId", obj.userId); - setParameter(str + ".SourceType", obj.sourceType); + setCoreParameter(str + ".PaneId", std::to_string(obj.paneId)); + setCoreParameter(str + ".UserId", obj.userId); + setCoreParameter(str + ".SourceType", obj.sourceType); } } @@ -62,7 +62,7 @@ long StartMPUTaskRequest::getCallerParentId()const void StartMPUTaskRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool StartMPUTaskRequest::getProxy_original_security_transport()const @@ -73,7 +73,7 @@ bool StartMPUTaskRequest::getProxy_original_security_transport()const void StartMPUTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string StartMPUTaskRequest::getProxy_original_source_ip()const @@ -84,7 +84,7 @@ std::string StartMPUTaskRequest::getProxy_original_source_ip()const void StartMPUTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string StartMPUTaskRequest::getOwnerIdLoginEmail()const @@ -95,7 +95,7 @@ std::string StartMPUTaskRequest::getOwnerIdLoginEmail()const void StartMPUTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string StartMPUTaskRequest::getCallerType()const @@ -106,7 +106,7 @@ std::string StartMPUTaskRequest::getCallerType()const void StartMPUTaskRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string StartMPUTaskRequest::getAccessKeyId()const @@ -117,7 +117,7 @@ std::string StartMPUTaskRequest::getAccessKeyId()const void StartMPUTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } int StartMPUTaskRequest::getBackgroundColor()const @@ -128,7 +128,18 @@ int StartMPUTaskRequest::getBackgroundColor()const void StartMPUTaskRequest::setBackgroundColor(int backgroundColor) { backgroundColor_ = backgroundColor; - setParameter("BackgroundColor", std::to_string(backgroundColor)); + setCoreParameter("BackgroundColor", std::to_string(backgroundColor)); +} + +int StartMPUTaskRequest::getCropMode()const +{ + return cropMode_; +} + +void StartMPUTaskRequest::setCropMode(int cropMode) +{ + cropMode_ = cropMode; + setCoreParameter("CropMode", std::to_string(cropMode)); } std::string StartMPUTaskRequest::getSecurityToken()const @@ -139,7 +150,7 @@ std::string StartMPUTaskRequest::getSecurityToken()const void StartMPUTaskRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StartMPUTaskRequest::getRequestContent()const @@ -150,7 +161,7 @@ std::string StartMPUTaskRequest::getRequestContent()const void StartMPUTaskRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string StartMPUTaskRequest::getCallerBidEmail()const @@ -161,7 +172,18 @@ std::string StartMPUTaskRequest::getCallerBidEmail()const void StartMPUTaskRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string StartMPUTaskRequest::getTaskProfile()const +{ + return taskProfile_; +} + +void StartMPUTaskRequest::setTaskProfile(const std::string& taskProfile) +{ + taskProfile_ = taskProfile; + setCoreParameter("TaskProfile", taskProfile); } std::vector StartMPUTaskRequest::getLayoutIds()const @@ -173,7 +195,7 @@ void StartMPUTaskRequest::setLayoutIds(const std::vector& layoutIds) { layoutIds_ = layoutIds; for(int i = 0; i!= layoutIds.size(); i++) - setParameter("LayoutIds."+ std::to_string(i), std::to_string(layoutIds.at(i))); + setCoreParameter("LayoutIds."+ std::to_string(i), std::to_string(layoutIds.at(i))); } std::string StartMPUTaskRequest::getCallerUidEmail()const @@ -184,7 +206,7 @@ std::string StartMPUTaskRequest::getCallerUidEmail()const void StartMPUTaskRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string StartMPUTaskRequest::getTaskId()const @@ -195,7 +217,7 @@ std::string StartMPUTaskRequest::getTaskId()const void StartMPUTaskRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } long StartMPUTaskRequest::getCallerUid()const @@ -206,7 +228,7 @@ long StartMPUTaskRequest::getCallerUid()const void StartMPUTaskRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string StartMPUTaskRequest::getStreamURL()const @@ -217,7 +239,7 @@ std::string StartMPUTaskRequest::getStreamURL()const void StartMPUTaskRequest::setStreamURL(const std::string& streamURL) { streamURL_ = streamURL; - setParameter("StreamURL", streamURL); + setCoreParameter("StreamURL", streamURL); } std::string StartMPUTaskRequest::getApp_ip()const @@ -228,7 +250,7 @@ std::string StartMPUTaskRequest::getApp_ip()const void StartMPUTaskRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string StartMPUTaskRequest::getPopProduct()const @@ -239,7 +261,7 @@ std::string StartMPUTaskRequest::getPopProduct()const void StartMPUTaskRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string StartMPUTaskRequest::getCallerBid()const @@ -250,7 +272,7 @@ std::string StartMPUTaskRequest::getCallerBid()const void StartMPUTaskRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long StartMPUTaskRequest::getOwnerId()const @@ -261,7 +283,7 @@ long StartMPUTaskRequest::getOwnerId()const void StartMPUTaskRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string StartMPUTaskRequest::getVersion()const @@ -272,7 +294,7 @@ std::string StartMPUTaskRequest::getVersion()const void StartMPUTaskRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool StartMPUTaskRequest::getProxy_trust_transport_info()const @@ -283,7 +305,7 @@ bool StartMPUTaskRequest::getProxy_trust_transport_info()const void StartMPUTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool StartMPUTaskRequest::getAk_mfa_present()const @@ -294,7 +316,7 @@ bool StartMPUTaskRequest::getAk_mfa_present()const void StartMPUTaskRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool StartMPUTaskRequest::getSecurity_transport()const @@ -305,7 +327,18 @@ bool StartMPUTaskRequest::getSecurity_transport()const void StartMPUTaskRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string StartMPUTaskRequest::getServiceCode()const +{ + return serviceCode_; +} + +void StartMPUTaskRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); } std::string StartMPUTaskRequest::getRequestId()const @@ -316,7 +349,7 @@ std::string StartMPUTaskRequest::getRequestId()const void StartMPUTaskRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string StartMPUTaskRequest::getAppId()const @@ -327,7 +360,7 @@ std::string StartMPUTaskRequest::getAppId()const void StartMPUTaskRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } int StartMPUTaskRequest::getMediaEncode()const @@ -338,7 +371,7 @@ int StartMPUTaskRequest::getMediaEncode()const void StartMPUTaskRequest::setMediaEncode(int mediaEncode) { mediaEncode_ = mediaEncode; - setParameter("MediaEncode", std::to_string(mediaEncode)); + setCoreParameter("MediaEncode", std::to_string(mediaEncode)); } std::string StartMPUTaskRequest::getChannelId()const @@ -349,6 +382,6 @@ std::string StartMPUTaskRequest::getChannelId()const void StartMPUTaskRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/StartMPUTaskResult.cc b/rtc/src/model/StartMPUTaskResult.cc index 459291e25..0feed5d03 100644 --- a/rtc/src/model/StartMPUTaskResult.cc +++ b/rtc/src/model/StartMPUTaskResult.cc @@ -35,10 +35,13 @@ StartMPUTaskResult::~StartMPUTaskResult() void StartMPUTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/rtc/src/model/StartTaskRequest.cc b/rtc/src/model/StartTaskRequest.cc index febbad7b8..c224ffdbb 100644 --- a/rtc/src/model/StartTaskRequest.cc +++ b/rtc/src/model/StartTaskRequest.cc @@ -37,9 +37,9 @@ void StartTaskRequest::setMixPanes(const std::vector& mixPanes) for(int i = 0; i!= mixPanes.size(); i++) { auto obj = mixPanes.at(i); std::string str ="MixPanes."+ std::to_string(i); - setParameter(str + ".PaneId", std::to_string(obj.paneId)); - setParameter(str + ".UserId", obj.userId); - setParameter(str + ".SourceType", obj.sourceType); + setCoreParameter(str + ".PaneId", std::to_string(obj.paneId)); + setCoreParameter(str + ".UserId", obj.userId); + setCoreParameter(str + ".SourceType", obj.sourceType); } } @@ -51,7 +51,7 @@ long StartTaskRequest::getCallerParentId()const void StartTaskRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string StartTaskRequest::getIdempotentId()const @@ -62,7 +62,7 @@ std::string StartTaskRequest::getIdempotentId()const void StartTaskRequest::setIdempotentId(const std::string& idempotentId) { idempotentId_ = idempotentId; - setParameter("IdempotentId", idempotentId); + setCoreParameter("IdempotentId", idempotentId); } bool StartTaskRequest::getProxy_original_security_transport()const @@ -73,7 +73,7 @@ bool StartTaskRequest::getProxy_original_security_transport()const void StartTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string StartTaskRequest::getProxy_original_source_ip()const @@ -84,7 +84,7 @@ std::string StartTaskRequest::getProxy_original_source_ip()const void StartTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string StartTaskRequest::getOwnerIdLoginEmail()const @@ -95,7 +95,7 @@ std::string StartTaskRequest::getOwnerIdLoginEmail()const void StartTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string StartTaskRequest::getCallerType()const @@ -106,7 +106,7 @@ std::string StartTaskRequest::getCallerType()const void StartTaskRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string StartTaskRequest::getAccessKeyId()const @@ -117,7 +117,7 @@ std::string StartTaskRequest::getAccessKeyId()const void StartTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string StartTaskRequest::getSecurityToken()const @@ -128,7 +128,7 @@ std::string StartTaskRequest::getSecurityToken()const void StartTaskRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StartTaskRequest::getRequestContent()const @@ -139,7 +139,7 @@ std::string StartTaskRequest::getRequestContent()const void StartTaskRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string StartTaskRequest::getCallerBidEmail()const @@ -150,7 +150,7 @@ std::string StartTaskRequest::getCallerBidEmail()const void StartTaskRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string StartTaskRequest::getCallerUidEmail()const @@ -161,7 +161,7 @@ std::string StartTaskRequest::getCallerUidEmail()const void StartTaskRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long StartTaskRequest::getCallerUid()const @@ -172,7 +172,7 @@ long StartTaskRequest::getCallerUid()const void StartTaskRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string StartTaskRequest::getApp_ip()const @@ -183,7 +183,7 @@ std::string StartTaskRequest::getApp_ip()const void StartTaskRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string StartTaskRequest::getPopProduct()const @@ -194,7 +194,7 @@ std::string StartTaskRequest::getPopProduct()const void StartTaskRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string StartTaskRequest::getCallerBid()const @@ -205,7 +205,7 @@ std::string StartTaskRequest::getCallerBid()const void StartTaskRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long StartTaskRequest::getOwnerId()const @@ -216,7 +216,7 @@ long StartTaskRequest::getOwnerId()const void StartTaskRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long StartTaskRequest::getTemplateId()const @@ -227,7 +227,7 @@ long StartTaskRequest::getTemplateId()const void StartTaskRequest::setTemplateId(long templateId) { templateId_ = templateId; - setParameter("TemplateId", std::to_string(templateId)); + setCoreParameter("TemplateId", std::to_string(templateId)); } std::string StartTaskRequest::getVersion()const @@ -238,7 +238,7 @@ std::string StartTaskRequest::getVersion()const void StartTaskRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool StartTaskRequest::getProxy_trust_transport_info()const @@ -249,7 +249,7 @@ bool StartTaskRequest::getProxy_trust_transport_info()const void StartTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool StartTaskRequest::getAk_mfa_present()const @@ -260,7 +260,7 @@ bool StartTaskRequest::getAk_mfa_present()const void StartTaskRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool StartTaskRequest::getSecurity_transport()const @@ -271,7 +271,7 @@ bool StartTaskRequest::getSecurity_transport()const void StartTaskRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string StartTaskRequest::getRequestId()const @@ -282,7 +282,7 @@ std::string StartTaskRequest::getRequestId()const void StartTaskRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string StartTaskRequest::getAppId()const @@ -293,7 +293,7 @@ std::string StartTaskRequest::getAppId()const void StartTaskRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string StartTaskRequest::getChannelId()const @@ -304,6 +304,6 @@ std::string StartTaskRequest::getChannelId()const void StartTaskRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/StartTaskResult.cc b/rtc/src/model/StartTaskResult.cc index f2ca3e44b..b6061e2cd 100644 --- a/rtc/src/model/StartTaskResult.cc +++ b/rtc/src/model/StartTaskResult.cc @@ -35,10 +35,13 @@ StartTaskResult::~StartTaskResult() void StartTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); diff --git a/rtc/src/model/StopMPUTaskRequest.cc b/rtc/src/model/StopMPUTaskRequest.cc index 44bdd8518..30a85f270 100644 --- a/rtc/src/model/StopMPUTaskRequest.cc +++ b/rtc/src/model/StopMPUTaskRequest.cc @@ -33,7 +33,7 @@ std::string StopMPUTaskRequest::getApp_ip()const void StopMPUTaskRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string StopMPUTaskRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string StopMPUTaskRequest::getPopProduct()const void StopMPUTaskRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long StopMPUTaskRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long StopMPUTaskRequest::getResourceOwnerId()const void StopMPUTaskRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long StopMPUTaskRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long StopMPUTaskRequest::getCallerParentId()const void StopMPUTaskRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool StopMPUTaskRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool StopMPUTaskRequest::getProxy_original_security_transport()const void StopMPUTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string StopMPUTaskRequest::getCallerBid()const @@ -88,7 +88,7 @@ std::string StopMPUTaskRequest::getCallerBid()const void StopMPUTaskRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long StopMPUTaskRequest::getOwnerId()const @@ -99,7 +99,7 @@ long StopMPUTaskRequest::getOwnerId()const void StopMPUTaskRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string StopMPUTaskRequest::getProxy_original_source_ip()const @@ -110,7 +110,7 @@ std::string StopMPUTaskRequest::getProxy_original_source_ip()const void StopMPUTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string StopMPUTaskRequest::getVersion()const @@ -121,7 +121,7 @@ std::string StopMPUTaskRequest::getVersion()const void StopMPUTaskRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string StopMPUTaskRequest::getOwnerIdLoginEmail()const @@ -132,7 +132,7 @@ std::string StopMPUTaskRequest::getOwnerIdLoginEmail()const void StopMPUTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string StopMPUTaskRequest::getCallerType()const @@ -143,7 +143,7 @@ std::string StopMPUTaskRequest::getCallerType()const void StopMPUTaskRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool StopMPUTaskRequest::getProxy_trust_transport_info()const @@ -154,7 +154,7 @@ bool StopMPUTaskRequest::getProxy_trust_transport_info()const void StopMPUTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool StopMPUTaskRequest::getAk_mfa_present()const @@ -165,7 +165,7 @@ bool StopMPUTaskRequest::getAk_mfa_present()const void StopMPUTaskRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string StopMPUTaskRequest::getAccessKeyId()const @@ -176,7 +176,7 @@ std::string StopMPUTaskRequest::getAccessKeyId()const void StopMPUTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool StopMPUTaskRequest::getSecurity_transport()const @@ -187,7 +187,7 @@ bool StopMPUTaskRequest::getSecurity_transport()const void StopMPUTaskRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string StopMPUTaskRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string StopMPUTaskRequest::getSecurityToken()const void StopMPUTaskRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StopMPUTaskRequest::getRequestId()const @@ -209,7 +209,7 @@ std::string StopMPUTaskRequest::getRequestId()const void StopMPUTaskRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string StopMPUTaskRequest::getRequestContent()const @@ -220,7 +220,7 @@ std::string StopMPUTaskRequest::getRequestContent()const void StopMPUTaskRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string StopMPUTaskRequest::getAppId()const @@ -231,7 +231,7 @@ std::string StopMPUTaskRequest::getAppId()const void StopMPUTaskRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string StopMPUTaskRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string StopMPUTaskRequest::getCallerBidEmail()const void StopMPUTaskRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string StopMPUTaskRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string StopMPUTaskRequest::getCallerUidEmail()const void StopMPUTaskRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string StopMPUTaskRequest::getTaskId()const @@ -264,7 +264,7 @@ std::string StopMPUTaskRequest::getTaskId()const void StopMPUTaskRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } long StopMPUTaskRequest::getCallerUid()const @@ -275,6 +275,6 @@ long StopMPUTaskRequest::getCallerUid()const void StopMPUTaskRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/StopMPUTaskResult.cc b/rtc/src/model/StopMPUTaskResult.cc index 11cac20a8..bb949afd6 100644 --- a/rtc/src/model/StopMPUTaskResult.cc +++ b/rtc/src/model/StopMPUTaskResult.cc @@ -35,10 +35,13 @@ StopMPUTaskResult::~StopMPUTaskResult() void StopMPUTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/rtc/src/model/StopTaskRequest.cc b/rtc/src/model/StopTaskRequest.cc index 197e44943..050980097 100644 --- a/rtc/src/model/StopTaskRequest.cc +++ b/rtc/src/model/StopTaskRequest.cc @@ -33,7 +33,7 @@ std::string StopTaskRequest::getApp_ip()const void StopTaskRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string StopTaskRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string StopTaskRequest::getPopProduct()const void StopTaskRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long StopTaskRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long StopTaskRequest::getCallerParentId()const void StopTaskRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool StopTaskRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool StopTaskRequest::getProxy_original_security_transport()const void StopTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string StopTaskRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string StopTaskRequest::getCallerBid()const void StopTaskRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long StopTaskRequest::getOwnerId()const @@ -88,7 +88,7 @@ long StopTaskRequest::getOwnerId()const void StopTaskRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string StopTaskRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string StopTaskRequest::getProxy_original_source_ip()const void StopTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string StopTaskRequest::getVersion()const @@ -110,7 +110,7 @@ std::string StopTaskRequest::getVersion()const void StopTaskRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string StopTaskRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string StopTaskRequest::getOwnerIdLoginEmail()const void StopTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string StopTaskRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string StopTaskRequest::getCallerType()const void StopTaskRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool StopTaskRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool StopTaskRequest::getProxy_trust_transport_info()const void StopTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool StopTaskRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool StopTaskRequest::getAk_mfa_present()const void StopTaskRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string StopTaskRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string StopTaskRequest::getAccessKeyId()const void StopTaskRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool StopTaskRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool StopTaskRequest::getSecurity_transport()const void StopTaskRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string StopTaskRequest::getSecurityToken()const @@ -187,7 +187,7 @@ std::string StopTaskRequest::getSecurityToken()const void StopTaskRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StopTaskRequest::getRequestId()const @@ -198,7 +198,7 @@ std::string StopTaskRequest::getRequestId()const void StopTaskRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string StopTaskRequest::getRequestContent()const @@ -209,7 +209,7 @@ std::string StopTaskRequest::getRequestContent()const void StopTaskRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string StopTaskRequest::getAppId()const @@ -220,7 +220,7 @@ std::string StopTaskRequest::getAppId()const void StopTaskRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string StopTaskRequest::getCallerBidEmail()const @@ -231,7 +231,7 @@ std::string StopTaskRequest::getCallerBidEmail()const void StopTaskRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string StopTaskRequest::getCallerUidEmail()const @@ -242,7 +242,7 @@ std::string StopTaskRequest::getCallerUidEmail()const void StopTaskRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string StopTaskRequest::getChannelId()const @@ -253,7 +253,7 @@ std::string StopTaskRequest::getChannelId()const void StopTaskRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } long StopTaskRequest::getTaskId()const @@ -264,7 +264,7 @@ long StopTaskRequest::getTaskId()const void StopTaskRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } long StopTaskRequest::getCallerUid()const @@ -275,6 +275,6 @@ long StopTaskRequest::getCallerUid()const void StopTaskRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/StopTaskResult.cc b/rtc/src/model/StopTaskResult.cc index 28f654a72..4ba9c4141 100644 --- a/rtc/src/model/StopTaskResult.cc +++ b/rtc/src/model/StopTaskResult.cc @@ -35,10 +35,13 @@ StopTaskResult::~StopTaskResult() void StopTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/rtc/src/model/UnmuteAudioAllRequest.cc b/rtc/src/model/UnmuteAudioAllRequest.cc index 7e59e9359..d33aaa82c 100644 --- a/rtc/src/model/UnmuteAudioAllRequest.cc +++ b/rtc/src/model/UnmuteAudioAllRequest.cc @@ -33,7 +33,7 @@ std::string UnmuteAudioAllRequest::getApp_ip()const void UnmuteAudioAllRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string UnmuteAudioAllRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string UnmuteAudioAllRequest::getPopProduct()const void UnmuteAudioAllRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } long UnmuteAudioAllRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long UnmuteAudioAllRequest::getCallerParentId()const void UnmuteAudioAllRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool UnmuteAudioAllRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool UnmuteAudioAllRequest::getProxy_original_security_transport()const void UnmuteAudioAllRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string UnmuteAudioAllRequest::getCallerBid()const @@ -77,7 +77,7 @@ std::string UnmuteAudioAllRequest::getCallerBid()const void UnmuteAudioAllRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long UnmuteAudioAllRequest::getOwnerId()const @@ -88,7 +88,7 @@ long UnmuteAudioAllRequest::getOwnerId()const void UnmuteAudioAllRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UnmuteAudioAllRequest::getProxy_original_source_ip()const @@ -99,7 +99,7 @@ std::string UnmuteAudioAllRequest::getProxy_original_source_ip()const void UnmuteAudioAllRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string UnmuteAudioAllRequest::getVersion()const @@ -110,7 +110,7 @@ std::string UnmuteAudioAllRequest::getVersion()const void UnmuteAudioAllRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string UnmuteAudioAllRequest::getOwnerIdLoginEmail()const @@ -121,7 +121,7 @@ std::string UnmuteAudioAllRequest::getOwnerIdLoginEmail()const void UnmuteAudioAllRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string UnmuteAudioAllRequest::getCallerType()const @@ -132,7 +132,7 @@ std::string UnmuteAudioAllRequest::getCallerType()const void UnmuteAudioAllRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool UnmuteAudioAllRequest::getProxy_trust_transport_info()const @@ -143,7 +143,7 @@ bool UnmuteAudioAllRequest::getProxy_trust_transport_info()const void UnmuteAudioAllRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool UnmuteAudioAllRequest::getAk_mfa_present()const @@ -154,7 +154,7 @@ bool UnmuteAudioAllRequest::getAk_mfa_present()const void UnmuteAudioAllRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string UnmuteAudioAllRequest::getAccessKeyId()const @@ -165,7 +165,7 @@ std::string UnmuteAudioAllRequest::getAccessKeyId()const void UnmuteAudioAllRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool UnmuteAudioAllRequest::getSecurity_transport()const @@ -176,7 +176,7 @@ bool UnmuteAudioAllRequest::getSecurity_transport()const void UnmuteAudioAllRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string UnmuteAudioAllRequest::getParticipantId()const @@ -187,7 +187,7 @@ std::string UnmuteAudioAllRequest::getParticipantId()const void UnmuteAudioAllRequest::setParticipantId(const std::string& participantId) { participantId_ = participantId; - setParameter("ParticipantId", participantId); + setCoreParameter("ParticipantId", participantId); } std::string UnmuteAudioAllRequest::getSecurityToken()const @@ -198,7 +198,7 @@ std::string UnmuteAudioAllRequest::getSecurityToken()const void UnmuteAudioAllRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UnmuteAudioAllRequest::getConferenceId()const @@ -209,7 +209,7 @@ std::string UnmuteAudioAllRequest::getConferenceId()const void UnmuteAudioAllRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string UnmuteAudioAllRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string UnmuteAudioAllRequest::getRequestId()const void UnmuteAudioAllRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string UnmuteAudioAllRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string UnmuteAudioAllRequest::getRequestContent()const void UnmuteAudioAllRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string UnmuteAudioAllRequest::getAppId()const @@ -242,7 +242,7 @@ std::string UnmuteAudioAllRequest::getAppId()const void UnmuteAudioAllRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string UnmuteAudioAllRequest::getCallerBidEmail()const @@ -253,7 +253,7 @@ std::string UnmuteAudioAllRequest::getCallerBidEmail()const void UnmuteAudioAllRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string UnmuteAudioAllRequest::getCallerUidEmail()const @@ -264,7 +264,7 @@ std::string UnmuteAudioAllRequest::getCallerUidEmail()const void UnmuteAudioAllRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long UnmuteAudioAllRequest::getCallerUid()const @@ -275,6 +275,6 @@ long UnmuteAudioAllRequest::getCallerUid()const void UnmuteAudioAllRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/UnmuteAudioAllResult.cc b/rtc/src/model/UnmuteAudioAllResult.cc index 8cf3e9a5a..3b45f8bf3 100644 --- a/rtc/src/model/UnmuteAudioAllResult.cc +++ b/rtc/src/model/UnmuteAudioAllResult.cc @@ -35,10 +35,13 @@ UnmuteAudioAllResult::~UnmuteAudioAllResult() void UnmuteAudioAllResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParticipants = value["Participants"]["Participant"]; for (auto value : allParticipants) diff --git a/rtc/src/model/UnmuteAudioRequest.cc b/rtc/src/model/UnmuteAudioRequest.cc index abc4c65d0..2c41d892c 100644 --- a/rtc/src/model/UnmuteAudioRequest.cc +++ b/rtc/src/model/UnmuteAudioRequest.cc @@ -33,7 +33,7 @@ std::string UnmuteAudioRequest::getApp_ip()const void UnmuteAudioRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string UnmuteAudioRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string UnmuteAudioRequest::getPopProduct()const void UnmuteAudioRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::vector UnmuteAudioRequest::getParticipantIds()const @@ -56,7 +56,7 @@ void UnmuteAudioRequest::setParticipantIds(const std::vector& parti { participantIds_ = participantIds; for(int i = 0; i!= participantIds.size(); i++) - setParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i)); + setCoreParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i)); } long UnmuteAudioRequest::getCallerParentId()const @@ -67,7 +67,7 @@ long UnmuteAudioRequest::getCallerParentId()const void UnmuteAudioRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool UnmuteAudioRequest::getProxy_original_security_transport()const @@ -78,7 +78,7 @@ bool UnmuteAudioRequest::getProxy_original_security_transport()const void UnmuteAudioRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string UnmuteAudioRequest::getCallerBid()const @@ -89,7 +89,7 @@ std::string UnmuteAudioRequest::getCallerBid()const void UnmuteAudioRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long UnmuteAudioRequest::getOwnerId()const @@ -100,7 +100,7 @@ long UnmuteAudioRequest::getOwnerId()const void UnmuteAudioRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UnmuteAudioRequest::getProxy_original_source_ip()const @@ -111,7 +111,7 @@ std::string UnmuteAudioRequest::getProxy_original_source_ip()const void UnmuteAudioRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string UnmuteAudioRequest::getVersion()const @@ -122,7 +122,7 @@ std::string UnmuteAudioRequest::getVersion()const void UnmuteAudioRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string UnmuteAudioRequest::getOwnerIdLoginEmail()const @@ -133,7 +133,7 @@ std::string UnmuteAudioRequest::getOwnerIdLoginEmail()const void UnmuteAudioRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string UnmuteAudioRequest::getCallerType()const @@ -144,7 +144,7 @@ std::string UnmuteAudioRequest::getCallerType()const void UnmuteAudioRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool UnmuteAudioRequest::getProxy_trust_transport_info()const @@ -155,7 +155,7 @@ bool UnmuteAudioRequest::getProxy_trust_transport_info()const void UnmuteAudioRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool UnmuteAudioRequest::getAk_mfa_present()const @@ -166,7 +166,7 @@ bool UnmuteAudioRequest::getAk_mfa_present()const void UnmuteAudioRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string UnmuteAudioRequest::getAccessKeyId()const @@ -177,7 +177,7 @@ std::string UnmuteAudioRequest::getAccessKeyId()const void UnmuteAudioRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool UnmuteAudioRequest::getSecurity_transport()const @@ -188,7 +188,7 @@ bool UnmuteAudioRequest::getSecurity_transport()const void UnmuteAudioRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string UnmuteAudioRequest::getSecurityToken()const @@ -199,7 +199,7 @@ std::string UnmuteAudioRequest::getSecurityToken()const void UnmuteAudioRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UnmuteAudioRequest::getConferenceId()const @@ -210,7 +210,7 @@ std::string UnmuteAudioRequest::getConferenceId()const void UnmuteAudioRequest::setConferenceId(const std::string& conferenceId) { conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); + setCoreParameter("ConferenceId", conferenceId); } std::string UnmuteAudioRequest::getRequestId()const @@ -221,7 +221,7 @@ std::string UnmuteAudioRequest::getRequestId()const void UnmuteAudioRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string UnmuteAudioRequest::getRequestContent()const @@ -232,7 +232,7 @@ std::string UnmuteAudioRequest::getRequestContent()const void UnmuteAudioRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string UnmuteAudioRequest::getAppId()const @@ -243,7 +243,7 @@ std::string UnmuteAudioRequest::getAppId()const void UnmuteAudioRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string UnmuteAudioRequest::getCallerBidEmail()const @@ -254,7 +254,7 @@ std::string UnmuteAudioRequest::getCallerBidEmail()const void UnmuteAudioRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string UnmuteAudioRequest::getCallerUidEmail()const @@ -265,7 +265,7 @@ std::string UnmuteAudioRequest::getCallerUidEmail()const void UnmuteAudioRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long UnmuteAudioRequest::getCallerUid()const @@ -276,6 +276,6 @@ long UnmuteAudioRequest::getCallerUid()const void UnmuteAudioRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/rtc/src/model/UnmuteAudioResult.cc b/rtc/src/model/UnmuteAudioResult.cc index 81b504922..444eb28df 100644 --- a/rtc/src/model/UnmuteAudioResult.cc +++ b/rtc/src/model/UnmuteAudioResult.cc @@ -35,10 +35,13 @@ UnmuteAudioResult::~UnmuteAudioResult() void UnmuteAudioResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allParticipants = value["Participants"]["Participant"]; for (auto value : allParticipants) diff --git a/rtc/src/model/UpdateChannelRequest.cc b/rtc/src/model/UpdateChannelRequest.cc index 9ce649e6d..2ec220f8a 100644 --- a/rtc/src/model/UpdateChannelRequest.cc +++ b/rtc/src/model/UpdateChannelRequest.cc @@ -25,6 +25,17 @@ UpdateChannelRequest::UpdateChannelRequest() : UpdateChannelRequest::~UpdateChannelRequest() {} +long UpdateChannelRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateChannelRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + long UpdateChannelRequest::getCallerParentId()const { return callerParentId_; @@ -33,7 +44,7 @@ long UpdateChannelRequest::getCallerParentId()const void UpdateChannelRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool UpdateChannelRequest::getProxy_original_security_transport()const @@ -44,7 +55,7 @@ bool UpdateChannelRequest::getProxy_original_security_transport()const void UpdateChannelRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string UpdateChannelRequest::getProxy_original_source_ip()const @@ -55,7 +66,7 @@ std::string UpdateChannelRequest::getProxy_original_source_ip()const void UpdateChannelRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string UpdateChannelRequest::getOwnerIdLoginEmail()const @@ -66,7 +77,7 @@ std::string UpdateChannelRequest::getOwnerIdLoginEmail()const void UpdateChannelRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string UpdateChannelRequest::getCallerType()const @@ -77,7 +88,7 @@ std::string UpdateChannelRequest::getCallerType()const void UpdateChannelRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string UpdateChannelRequest::getAccessKeyId()const @@ -88,7 +99,7 @@ std::string UpdateChannelRequest::getAccessKeyId()const void UpdateChannelRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateChannelRequest::getSecurityToken()const @@ -99,7 +110,7 @@ std::string UpdateChannelRequest::getSecurityToken()const void UpdateChannelRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UpdateChannelRequest::getRequestContent()const @@ -110,7 +121,7 @@ std::string UpdateChannelRequest::getRequestContent()const void UpdateChannelRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string UpdateChannelRequest::getCallerBidEmail()const @@ -121,7 +132,7 @@ std::string UpdateChannelRequest::getCallerBidEmail()const void UpdateChannelRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string UpdateChannelRequest::getCallerUidEmail()const @@ -132,7 +143,7 @@ std::string UpdateChannelRequest::getCallerUidEmail()const void UpdateChannelRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long UpdateChannelRequest::getCallerUid()const @@ -143,7 +154,7 @@ long UpdateChannelRequest::getCallerUid()const void UpdateChannelRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string UpdateChannelRequest::getApp_ip()const @@ -154,7 +165,7 @@ std::string UpdateChannelRequest::getApp_ip()const void UpdateChannelRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string UpdateChannelRequest::getPopProduct()const @@ -165,18 +176,7 @@ std::string UpdateChannelRequest::getPopProduct()const void UpdateChannelRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); -} - -std::string UpdateChannelRequest::getProduct()const -{ - return product_; -} - -void UpdateChannelRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); + setCoreParameter("PopProduct", popProduct); } std::string UpdateChannelRequest::getCallerBid()const @@ -187,7 +187,7 @@ std::string UpdateChannelRequest::getCallerBid()const void UpdateChannelRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long UpdateChannelRequest::getOwnerId()const @@ -198,7 +198,7 @@ long UpdateChannelRequest::getOwnerId()const void UpdateChannelRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UpdateChannelRequest::getVersion()const @@ -209,7 +209,7 @@ std::string UpdateChannelRequest::getVersion()const void UpdateChannelRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string UpdateChannelRequest::getNonce()const @@ -220,7 +220,7 @@ std::string UpdateChannelRequest::getNonce()const void UpdateChannelRequest::setNonce(const std::string& nonce) { nonce_ = nonce; - setParameter("Nonce", nonce); + setCoreParameter("Nonce", nonce); } bool UpdateChannelRequest::getProxy_trust_transport_info()const @@ -231,7 +231,7 @@ bool UpdateChannelRequest::getProxy_trust_transport_info()const void UpdateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool UpdateChannelRequest::getAk_mfa_present()const @@ -242,7 +242,7 @@ bool UpdateChannelRequest::getAk_mfa_present()const void UpdateChannelRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool UpdateChannelRequest::getSecurity_transport()const @@ -253,7 +253,18 @@ bool UpdateChannelRequest::getSecurity_transport()const void UpdateChannelRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UpdateChannelRequest::getServiceCode()const +{ + return serviceCode_; +} + +void UpdateChannelRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); } std::string UpdateChannelRequest::getRequestId()const @@ -264,7 +275,7 @@ std::string UpdateChannelRequest::getRequestId()const void UpdateChannelRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string UpdateChannelRequest::getAppId()const @@ -275,7 +286,7 @@ std::string UpdateChannelRequest::getAppId()const void UpdateChannelRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string UpdateChannelRequest::getChannelId()const @@ -286,6 +297,6 @@ std::string UpdateChannelRequest::getChannelId()const void UpdateChannelRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/UpdateChannelResult.cc b/rtc/src/model/UpdateChannelResult.cc index 2663d8bff..7ff91d61b 100644 --- a/rtc/src/model/UpdateChannelResult.cc +++ b/rtc/src/model/UpdateChannelResult.cc @@ -35,10 +35,13 @@ UpdateChannelResult::~UpdateChannelResult() void UpdateChannelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Nonce"].isNull()) nonce_ = value["Nonce"].asString(); diff --git a/rtc/src/model/UpdateTaskParamRequest.cc b/rtc/src/model/UpdateTaskParamRequest.cc index 942945ce2..f2c04fad3 100644 --- a/rtc/src/model/UpdateTaskParamRequest.cc +++ b/rtc/src/model/UpdateTaskParamRequest.cc @@ -37,9 +37,9 @@ void UpdateTaskParamRequest::setMixPanes(const std::vector& mixPanes) for(int i = 0; i!= mixPanes.size(); i++) { auto obj = mixPanes.at(i); std::string str ="MixPanes."+ std::to_string(i); - setParameter(str + ".PaneId", std::to_string(obj.paneId)); - setParameter(str + ".UserId", obj.userId); - setParameter(str + ".SourceType", obj.sourceType); + setCoreParameter(str + ".PaneId", std::to_string(obj.paneId)); + setCoreParameter(str + ".UserId", obj.userId); + setCoreParameter(str + ".SourceType", obj.sourceType); } } @@ -51,7 +51,7 @@ long UpdateTaskParamRequest::getCallerParentId()const void UpdateTaskParamRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool UpdateTaskParamRequest::getProxy_original_security_transport()const @@ -62,7 +62,7 @@ bool UpdateTaskParamRequest::getProxy_original_security_transport()const void UpdateTaskParamRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string UpdateTaskParamRequest::getProxy_original_source_ip()const @@ -73,7 +73,7 @@ std::string UpdateTaskParamRequest::getProxy_original_source_ip()const void UpdateTaskParamRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string UpdateTaskParamRequest::getOwnerIdLoginEmail()const @@ -84,7 +84,7 @@ std::string UpdateTaskParamRequest::getOwnerIdLoginEmail()const void UpdateTaskParamRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string UpdateTaskParamRequest::getCallerType()const @@ -95,7 +95,7 @@ std::string UpdateTaskParamRequest::getCallerType()const void UpdateTaskParamRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string UpdateTaskParamRequest::getAccessKeyId()const @@ -106,7 +106,7 @@ std::string UpdateTaskParamRequest::getAccessKeyId()const void UpdateTaskParamRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UpdateTaskParamRequest::getSecurityToken()const @@ -117,7 +117,7 @@ std::string UpdateTaskParamRequest::getSecurityToken()const void UpdateTaskParamRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UpdateTaskParamRequest::getRequestContent()const @@ -128,7 +128,7 @@ std::string UpdateTaskParamRequest::getRequestContent()const void UpdateTaskParamRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string UpdateTaskParamRequest::getCallerBidEmail()const @@ -139,7 +139,7 @@ std::string UpdateTaskParamRequest::getCallerBidEmail()const void UpdateTaskParamRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string UpdateTaskParamRequest::getCallerUidEmail()const @@ -150,7 +150,7 @@ std::string UpdateTaskParamRequest::getCallerUidEmail()const void UpdateTaskParamRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long UpdateTaskParamRequest::getTaskId()const @@ -161,7 +161,7 @@ long UpdateTaskParamRequest::getTaskId()const void UpdateTaskParamRequest::setTaskId(long taskId) { taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); + setCoreParameter("TaskId", std::to_string(taskId)); } long UpdateTaskParamRequest::getCallerUid()const @@ -172,7 +172,7 @@ long UpdateTaskParamRequest::getCallerUid()const void UpdateTaskParamRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string UpdateTaskParamRequest::getApp_ip()const @@ -183,7 +183,7 @@ std::string UpdateTaskParamRequest::getApp_ip()const void UpdateTaskParamRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string UpdateTaskParamRequest::getPopProduct()const @@ -194,7 +194,7 @@ std::string UpdateTaskParamRequest::getPopProduct()const void UpdateTaskParamRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string UpdateTaskParamRequest::getCallerBid()const @@ -205,7 +205,7 @@ std::string UpdateTaskParamRequest::getCallerBid()const void UpdateTaskParamRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long UpdateTaskParamRequest::getOwnerId()const @@ -216,7 +216,7 @@ long UpdateTaskParamRequest::getOwnerId()const void UpdateTaskParamRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long UpdateTaskParamRequest::getTemplateId()const @@ -227,7 +227,7 @@ long UpdateTaskParamRequest::getTemplateId()const void UpdateTaskParamRequest::setTemplateId(long templateId) { templateId_ = templateId; - setParameter("TemplateId", std::to_string(templateId)); + setCoreParameter("TemplateId", std::to_string(templateId)); } std::string UpdateTaskParamRequest::getVersion()const @@ -238,7 +238,7 @@ std::string UpdateTaskParamRequest::getVersion()const void UpdateTaskParamRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool UpdateTaskParamRequest::getProxy_trust_transport_info()const @@ -249,7 +249,7 @@ bool UpdateTaskParamRequest::getProxy_trust_transport_info()const void UpdateTaskParamRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool UpdateTaskParamRequest::getAk_mfa_present()const @@ -260,7 +260,7 @@ bool UpdateTaskParamRequest::getAk_mfa_present()const void UpdateTaskParamRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool UpdateTaskParamRequest::getSecurity_transport()const @@ -271,7 +271,7 @@ bool UpdateTaskParamRequest::getSecurity_transport()const void UpdateTaskParamRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string UpdateTaskParamRequest::getRequestId()const @@ -282,7 +282,7 @@ std::string UpdateTaskParamRequest::getRequestId()const void UpdateTaskParamRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string UpdateTaskParamRequest::getAppId()const @@ -293,7 +293,7 @@ std::string UpdateTaskParamRequest::getAppId()const void UpdateTaskParamRequest::setAppId(const std::string& appId) { appId_ = appId; - setParameter("AppId", appId); + setCoreParameter("AppId", appId); } std::string UpdateTaskParamRequest::getChannelId()const @@ -304,6 +304,6 @@ std::string UpdateTaskParamRequest::getChannelId()const void UpdateTaskParamRequest::setChannelId(const std::string& channelId) { channelId_ = channelId; - setParameter("ChannelId", channelId); + setCoreParameter("ChannelId", channelId); } diff --git a/rtc/src/model/UpdateTaskParamResult.cc b/rtc/src/model/UpdateTaskParamResult.cc index c60ee0af0..0fb4483d8 100644 --- a/rtc/src/model/UpdateTaskParamResult.cc +++ b/rtc/src/model/UpdateTaskParamResult.cc @@ -35,10 +35,13 @@ UpdateTaskParamResult::~UpdateTaskParamResult() void UpdateTaskParamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); diff --git a/saf/src/model/ExecuteRequestRequest.cc b/saf/src/model/ExecuteRequestRequest.cc index feeebc714..21e43235f 100755 --- a/saf/src/model/ExecuteRequestRequest.cc +++ b/saf/src/model/ExecuteRequestRequest.cc @@ -33,7 +33,7 @@ std::string ExecuteRequestRequest::getServiceParameters()const void ExecuteRequestRequest::setServiceParameters(const std::string& serviceParameters) { serviceParameters_ = serviceParameters; - setParameter("ServiceParameters", serviceParameters); + setCoreParameter("ServiceParameters", serviceParameters); } std::string ExecuteRequestRequest::getService()const @@ -44,6 +44,6 @@ std::string ExecuteRequestRequest::getService()const void ExecuteRequestRequest::setService(const std::string& service) { service_ = service; - setParameter("Service", service); + setCoreParameter("Service", service); } diff --git a/saf/src/model/ExecuteRequestResult.cc b/saf/src/model/ExecuteRequestResult.cc index b2a4c7568..d39283c98 100755 --- a/saf/src/model/ExecuteRequestResult.cc +++ b/saf/src/model/ExecuteRequestResult.cc @@ -35,10 +35,13 @@ ExecuteRequestResult::~ExecuteRequestResult() void ExecuteRequestResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Tags"].isNull()) diff --git a/sas-api/CMakeLists.txt b/sas-api/CMakeLists.txt index fb3221832..901695f3f 100644 --- a/sas-api/CMakeLists.txt +++ b/sas-api/CMakeLists.txt @@ -23,10 +23,10 @@ set(sas-api_public_header set(sas-api_public_header_model include/alibabacloud/sas-api/model/DescribeAccountProfileByKeyWordRequest.h include/alibabacloud/sas-api/model/DescribeAccountProfileByKeyWordResult.h - include/alibabacloud/sas-api/model/DescribeThreatTypeLinesRequest.h - include/alibabacloud/sas-api/model/DescribeThreatTypeLinesResult.h include/alibabacloud/sas-api/model/DescribeThreatDistributeRequest.h include/alibabacloud/sas-api/model/DescribeThreatDistributeResult.h + include/alibabacloud/sas-api/model/DescribeThreatTypeLinesRequest.h + include/alibabacloud/sas-api/model/DescribeThreatTypeLinesResult.h include/alibabacloud/sas-api/model/GetPhoneProfileRequest.h include/alibabacloud/sas-api/model/GetPhoneProfileResult.h include/alibabacloud/sas-api/model/DescribeAccountProfileByKeyRequest.h @@ -50,10 +50,10 @@ set(sas-api_src src/Sas-apiClient.cc src/model/DescribeAccountProfileByKeyWordRequest.cc src/model/DescribeAccountProfileByKeyWordResult.cc - src/model/DescribeThreatTypeLinesRequest.cc - src/model/DescribeThreatTypeLinesResult.cc src/model/DescribeThreatDistributeRequest.cc src/model/DescribeThreatDistributeResult.cc + src/model/DescribeThreatTypeLinesRequest.cc + src/model/DescribeThreatTypeLinesResult.cc src/model/GetPhoneProfileRequest.cc src/model/GetPhoneProfileResult.cc src/model/DescribeAccountProfileByKeyRequest.cc diff --git a/sas-api/include/alibabacloud/sas-api/Sas_apiClient.h b/sas-api/include/alibabacloud/sas-api/Sas_apiClient.h index 21b6dd0be..80389e1db 100644 --- a/sas-api/include/alibabacloud/sas-api/Sas_apiClient.h +++ b/sas-api/include/alibabacloud/sas-api/Sas_apiClient.h @@ -24,10 +24,10 @@ #include "Sas_apiExport.h" #include "model/DescribeAccountProfileByKeyWordRequest.h" #include "model/DescribeAccountProfileByKeyWordResult.h" -#include "model/DescribeThreatTypeLinesRequest.h" -#include "model/DescribeThreatTypeLinesResult.h" #include "model/DescribeThreatDistributeRequest.h" #include "model/DescribeThreatDistributeResult.h" +#include "model/DescribeThreatTypeLinesRequest.h" +#include "model/DescribeThreatTypeLinesResult.h" #include "model/GetPhoneProfileRequest.h" #include "model/GetPhoneProfileResult.h" #include "model/DescribeAccountProfileByKeyRequest.h" @@ -58,12 +58,12 @@ namespace AlibabaCloud typedef Outcome DescribeAccountProfileByKeyWordOutcome; typedef std::future DescribeAccountProfileByKeyWordOutcomeCallable; typedef std::function&)> DescribeAccountProfileByKeyWordAsyncHandler; - typedef Outcome DescribeThreatTypeLinesOutcome; - typedef std::future DescribeThreatTypeLinesOutcomeCallable; - typedef std::function&)> DescribeThreatTypeLinesAsyncHandler; typedef Outcome DescribeThreatDistributeOutcome; typedef std::future DescribeThreatDistributeOutcomeCallable; typedef std::function&)> DescribeThreatDistributeAsyncHandler; + typedef Outcome DescribeThreatTypeLinesOutcome; + typedef std::future DescribeThreatTypeLinesOutcomeCallable; + typedef std::function&)> DescribeThreatTypeLinesAsyncHandler; typedef Outcome GetPhoneProfileOutcome; typedef std::future GetPhoneProfileOutcomeCallable; typedef std::function&)> GetPhoneProfileAsyncHandler; @@ -99,12 +99,12 @@ namespace AlibabaCloud DescribeAccountProfileByKeyWordOutcome describeAccountProfileByKeyWord(const Model::DescribeAccountProfileByKeyWordRequest &request)const; void describeAccountProfileByKeyWordAsync(const Model::DescribeAccountProfileByKeyWordRequest& request, const DescribeAccountProfileByKeyWordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountProfileByKeyWordOutcomeCallable describeAccountProfileByKeyWordCallable(const Model::DescribeAccountProfileByKeyWordRequest& request) const; - DescribeThreatTypeLinesOutcome describeThreatTypeLines(const Model::DescribeThreatTypeLinesRequest &request)const; - void describeThreatTypeLinesAsync(const Model::DescribeThreatTypeLinesRequest& request, const DescribeThreatTypeLinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeThreatTypeLinesOutcomeCallable describeThreatTypeLinesCallable(const Model::DescribeThreatTypeLinesRequest& request) const; DescribeThreatDistributeOutcome describeThreatDistribute(const Model::DescribeThreatDistributeRequest &request)const; void describeThreatDistributeAsync(const Model::DescribeThreatDistributeRequest& request, const DescribeThreatDistributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeThreatDistributeOutcomeCallable describeThreatDistributeCallable(const Model::DescribeThreatDistributeRequest& request) const; + DescribeThreatTypeLinesOutcome describeThreatTypeLines(const Model::DescribeThreatTypeLinesRequest &request)const; + void describeThreatTypeLinesAsync(const Model::DescribeThreatTypeLinesRequest& request, const DescribeThreatTypeLinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeThreatTypeLinesOutcomeCallable describeThreatTypeLinesCallable(const Model::DescribeThreatTypeLinesRequest& request) const; GetPhoneProfileOutcome getPhoneProfile(const Model::GetPhoneProfileRequest &request)const; void getPhoneProfileAsync(const Model::GetPhoneProfileRequest& request, const GetPhoneProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPhoneProfileOutcomeCallable getPhoneProfileCallable(const Model::GetPhoneProfileRequest& request) const; diff --git a/sas-api/src/Sas-apiClient.cc b/sas-api/src/Sas-apiClient.cc index e31623164..64a85d506 100644 --- a/sas-api/src/Sas-apiClient.cc +++ b/sas-api/src/Sas-apiClient.cc @@ -87,42 +87,6 @@ Sas_apiClient::DescribeAccountProfileByKeyWordOutcomeCallable Sas_apiClient::des return task->get_future(); } -Sas_apiClient::DescribeThreatTypeLinesOutcome Sas_apiClient::describeThreatTypeLines(const DescribeThreatTypeLinesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeThreatTypeLinesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeThreatTypeLinesOutcome(DescribeThreatTypeLinesResult(outcome.result())); - else - return DescribeThreatTypeLinesOutcome(outcome.error()); -} - -void Sas_apiClient::describeThreatTypeLinesAsync(const DescribeThreatTypeLinesRequest& request, const DescribeThreatTypeLinesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeThreatTypeLines(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Sas_apiClient::DescribeThreatTypeLinesOutcomeCallable Sas_apiClient::describeThreatTypeLinesCallable(const DescribeThreatTypeLinesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeThreatTypeLines(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Sas_apiClient::DescribeThreatDistributeOutcome Sas_apiClient::describeThreatDistribute(const DescribeThreatDistributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +123,42 @@ Sas_apiClient::DescribeThreatDistributeOutcomeCallable Sas_apiClient::describeTh return task->get_future(); } +Sas_apiClient::DescribeThreatTypeLinesOutcome Sas_apiClient::describeThreatTypeLines(const DescribeThreatTypeLinesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeThreatTypeLinesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeThreatTypeLinesOutcome(DescribeThreatTypeLinesResult(outcome.result())); + else + return DescribeThreatTypeLinesOutcome(outcome.error()); +} + +void Sas_apiClient::describeThreatTypeLinesAsync(const DescribeThreatTypeLinesRequest& request, const DescribeThreatTypeLinesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeThreatTypeLines(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Sas_apiClient::DescribeThreatTypeLinesOutcomeCallable Sas_apiClient::describeThreatTypeLinesCallable(const DescribeThreatTypeLinesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeThreatTypeLines(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Sas_apiClient::GetPhoneProfileOutcome Sas_apiClient::getPhoneProfile(const GetPhoneProfileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/sas-api/src/model/DescribeAccountProfileByKeyRequest.cc b/sas-api/src/model/DescribeAccountProfileByKeyRequest.cc index 4a8655e7b..e60f4883c 100644 --- a/sas-api/src/model/DescribeAccountProfileByKeyRequest.cc +++ b/sas-api/src/model/DescribeAccountProfileByKeyRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccountProfileByKeyRequest::getSourceIp()const void DescribeAccountProfileByKeyRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeAccountProfileByKeyRequest::getKeyword()const @@ -44,6 +44,6 @@ std::string DescribeAccountProfileByKeyRequest::getKeyword()const void DescribeAccountProfileByKeyRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } diff --git a/sas-api/src/model/DescribeAccountProfileByKeyResult.cc b/sas-api/src/model/DescribeAccountProfileByKeyResult.cc index 74cd054a6..f1f557513 100644 --- a/sas-api/src/model/DescribeAccountProfileByKeyResult.cc +++ b/sas-api/src/model/DescribeAccountProfileByKeyResult.cc @@ -35,10 +35,13 @@ DescribeAccountProfileByKeyResult::~DescribeAccountProfileByKeyResult() void DescribeAccountProfileByKeyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ip"].isNull()) ip_ = value["Ip"].asString(); diff --git a/sas-api/src/model/DescribeAccountProfileByKeyWordRequest.cc b/sas-api/src/model/DescribeAccountProfileByKeyWordRequest.cc index 4e1e5458e..85c3a3d50 100644 --- a/sas-api/src/model/DescribeAccountProfileByKeyWordRequest.cc +++ b/sas-api/src/model/DescribeAccountProfileByKeyWordRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccountProfileByKeyWordRequest::getSourceIp()const void DescribeAccountProfileByKeyWordRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeAccountProfileByKeyWordRequest::getKeyword()const @@ -44,6 +44,6 @@ std::string DescribeAccountProfileByKeyWordRequest::getKeyword()const void DescribeAccountProfileByKeyWordRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; - setParameter("Keyword", keyword); + setCoreParameter("Keyword", keyword); } diff --git a/sas-api/src/model/DescribeAccountProfileByKeyWordResult.cc b/sas-api/src/model/DescribeAccountProfileByKeyWordResult.cc index 341e67916..2c532e6e7 100644 --- a/sas-api/src/model/DescribeAccountProfileByKeyWordResult.cc +++ b/sas-api/src/model/DescribeAccountProfileByKeyWordResult.cc @@ -35,10 +35,13 @@ DescribeAccountProfileByKeyWordResult::~DescribeAccountProfileByKeyWordResult() void DescribeAccountProfileByKeyWordResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ip"].isNull()) ip_ = value["Ip"].asString(); diff --git a/sas-api/src/model/DescribeHitRateColumnRequest.cc b/sas-api/src/model/DescribeHitRateColumnRequest.cc index fa9d941cd..71c5ff80f 100644 --- a/sas-api/src/model/DescribeHitRateColumnRequest.cc +++ b/sas-api/src/model/DescribeHitRateColumnRequest.cc @@ -33,7 +33,7 @@ std::string DescribeHitRateColumnRequest::getEndDate()const void DescribeHitRateColumnRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string DescribeHitRateColumnRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeHitRateColumnRequest::getSourceIp()const void DescribeHitRateColumnRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeHitRateColumnRequest::getHitDay()const @@ -55,7 +55,7 @@ int DescribeHitRateColumnRequest::getHitDay()const void DescribeHitRateColumnRequest::setHitDay(int hitDay) { hitDay_ = hitDay; - setParameter("HitDay", std::to_string(hitDay)); + setCoreParameter("HitDay", std::to_string(hitDay)); } std::string DescribeHitRateColumnRequest::getStartDate()const @@ -66,7 +66,7 @@ std::string DescribeHitRateColumnRequest::getStartDate()const void DescribeHitRateColumnRequest::setStartDate(const std::string& startDate) { startDate_ = startDate; - setParameter("StartDate", startDate); + setCoreParameter("StartDate", startDate); } int DescribeHitRateColumnRequest::getApiType()const @@ -77,6 +77,6 @@ int DescribeHitRateColumnRequest::getApiType()const void DescribeHitRateColumnRequest::setApiType(int apiType) { apiType_ = apiType; - setParameter("ApiType", std::to_string(apiType)); + setCoreParameter("ApiType", std::to_string(apiType)); } diff --git a/sas-api/src/model/DescribeHitRateColumnResult.cc b/sas-api/src/model/DescribeHitRateColumnResult.cc index 2fd346bef..8ae6da7ad 100644 --- a/sas-api/src/model/DescribeHitRateColumnResult.cc +++ b/sas-api/src/model/DescribeHitRateColumnResult.cc @@ -35,10 +35,13 @@ DescribeHitRateColumnResult::~DescribeHitRateColumnResult() void DescribeHitRateColumnResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) diff --git a/sas-api/src/model/DescribeHitRatePieRequest.cc b/sas-api/src/model/DescribeHitRatePieRequest.cc index 850c28ce5..e35386cc0 100644 --- a/sas-api/src/model/DescribeHitRatePieRequest.cc +++ b/sas-api/src/model/DescribeHitRatePieRequest.cc @@ -33,7 +33,7 @@ std::string DescribeHitRatePieRequest::getEndDate()const void DescribeHitRatePieRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string DescribeHitRatePieRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeHitRatePieRequest::getSourceIp()const void DescribeHitRatePieRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } std::string DescribeHitRatePieRequest::getStartDate()const @@ -55,7 +55,7 @@ std::string DescribeHitRatePieRequest::getStartDate()const void DescribeHitRatePieRequest::setStartDate(const std::string& startDate) { startDate_ = startDate; - setParameter("StartDate", startDate); + setCoreParameter("StartDate", startDate); } int DescribeHitRatePieRequest::getHitDay()const @@ -66,7 +66,7 @@ int DescribeHitRatePieRequest::getHitDay()const void DescribeHitRatePieRequest::setHitDay(int hitDay) { hitDay_ = hitDay; - setParameter("HitDay", std::to_string(hitDay)); + setCoreParameter("HitDay", std::to_string(hitDay)); } int DescribeHitRatePieRequest::getApiType()const @@ -77,6 +77,6 @@ int DescribeHitRatePieRequest::getApiType()const void DescribeHitRatePieRequest::setApiType(int apiType) { apiType_ = apiType; - setParameter("ApiType", std::to_string(apiType)); + setCoreParameter("ApiType", std::to_string(apiType)); } diff --git a/sas-api/src/model/DescribeHitRatePieResult.cc b/sas-api/src/model/DescribeHitRatePieResult.cc index 46d11aebe..7e7e0c580 100644 --- a/sas-api/src/model/DescribeHitRatePieResult.cc +++ b/sas-api/src/model/DescribeHitRatePieResult.cc @@ -35,10 +35,13 @@ DescribeHitRatePieResult::~DescribeHitRatePieResult() void DescribeHitRatePieResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) diff --git a/sas-api/src/model/DescribePerDateDataRequest.cc b/sas-api/src/model/DescribePerDateDataRequest.cc index ee367f1f0..624141b93 100644 --- a/sas-api/src/model/DescribePerDateDataRequest.cc +++ b/sas-api/src/model/DescribePerDateDataRequest.cc @@ -33,7 +33,7 @@ std::string DescribePerDateDataRequest::getSourceIp()const void DescribePerDateDataRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribePerDateDataRequest::getApiType()const @@ -44,6 +44,6 @@ int DescribePerDateDataRequest::getApiType()const void DescribePerDateDataRequest::setApiType(int apiType) { apiType_ = apiType; - setParameter("ApiType", std::to_string(apiType)); + setCoreParameter("ApiType", std::to_string(apiType)); } diff --git a/sas-api/src/model/DescribePerDateDataResult.cc b/sas-api/src/model/DescribePerDateDataResult.cc index a9ddc2aae..fe1ea275b 100644 --- a/sas-api/src/model/DescribePerDateDataResult.cc +++ b/sas-api/src/model/DescribePerDateDataResult.cc @@ -35,10 +35,13 @@ DescribePerDateDataResult::~DescribePerDateDataResult() void DescribePerDateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataView = value["DataView"]["dataViewItem"]; for (auto value : allDataView) diff --git a/sas-api/src/model/DescribeThreatDistributeRequest.cc b/sas-api/src/model/DescribeThreatDistributeRequest.cc index ebfd1f840..8f67ddc75 100644 --- a/sas-api/src/model/DescribeThreatDistributeRequest.cc +++ b/sas-api/src/model/DescribeThreatDistributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeThreatDistributeRequest::getEndDate()const void DescribeThreatDistributeRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string DescribeThreatDistributeRequest::getSourceIp()const @@ -44,7 +44,7 @@ std::string DescribeThreatDistributeRequest::getSourceIp()const void DescribeThreatDistributeRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeThreatDistributeRequest::getHitDay()const @@ -55,7 +55,7 @@ int DescribeThreatDistributeRequest::getHitDay()const void DescribeThreatDistributeRequest::setHitDay(int hitDay) { hitDay_ = hitDay; - setParameter("HitDay", std::to_string(hitDay)); + setCoreParameter("HitDay", std::to_string(hitDay)); } std::string DescribeThreatDistributeRequest::getStartDate()const @@ -66,7 +66,7 @@ std::string DescribeThreatDistributeRequest::getStartDate()const void DescribeThreatDistributeRequest::setStartDate(const std::string& startDate) { startDate_ = startDate; - setParameter("StartDate", startDate); + setCoreParameter("StartDate", startDate); } int DescribeThreatDistributeRequest::getApiType()const @@ -77,6 +77,6 @@ int DescribeThreatDistributeRequest::getApiType()const void DescribeThreatDistributeRequest::setApiType(int apiType) { apiType_ = apiType; - setParameter("ApiType", std::to_string(apiType)); + setCoreParameter("ApiType", std::to_string(apiType)); } diff --git a/sas-api/src/model/DescribeThreatDistributeResult.cc b/sas-api/src/model/DescribeThreatDistributeResult.cc index b5e2b5a87..9547833a0 100644 --- a/sas-api/src/model/DescribeThreatDistributeResult.cc +++ b/sas-api/src/model/DescribeThreatDistributeResult.cc @@ -35,10 +35,13 @@ DescribeThreatDistributeResult::~DescribeThreatDistributeResult() void DescribeThreatDistributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) diff --git a/sas-api/src/model/DescribeThreatTypeLinesRequest.cc b/sas-api/src/model/DescribeThreatTypeLinesRequest.cc index d107cf260..5cdb88970 100644 --- a/sas-api/src/model/DescribeThreatTypeLinesRequest.cc +++ b/sas-api/src/model/DescribeThreatTypeLinesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeThreatTypeLinesRequest::getSourceIp()const void DescribeThreatTypeLinesRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeThreatTypeLinesRequest::getApiType()const @@ -44,6 +44,6 @@ int DescribeThreatTypeLinesRequest::getApiType()const void DescribeThreatTypeLinesRequest::setApiType(int apiType) { apiType_ = apiType; - setParameter("ApiType", std::to_string(apiType)); + setCoreParameter("ApiType", std::to_string(apiType)); } diff --git a/sas-api/src/model/DescribeThreatTypeLinesResult.cc b/sas-api/src/model/DescribeThreatTypeLinesResult.cc index 742a964bd..dc567059a 100644 --- a/sas-api/src/model/DescribeThreatTypeLinesResult.cc +++ b/sas-api/src/model/DescribeThreatTypeLinesResult.cc @@ -35,10 +35,13 @@ DescribeThreatTypeLinesResult::~DescribeThreatTypeLinesResult() void DescribeThreatTypeLinesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) diff --git a/sas-api/src/model/DescribeTotalAndRateLineRequest.cc b/sas-api/src/model/DescribeTotalAndRateLineRequest.cc index a43f856c6..97fd182c6 100644 --- a/sas-api/src/model/DescribeTotalAndRateLineRequest.cc +++ b/sas-api/src/model/DescribeTotalAndRateLineRequest.cc @@ -33,7 +33,7 @@ std::string DescribeTotalAndRateLineRequest::getSourceIp()const void DescribeTotalAndRateLineRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); + setCoreParameter("SourceIp", sourceIp); } int DescribeTotalAndRateLineRequest::getApiType()const @@ -44,6 +44,6 @@ int DescribeTotalAndRateLineRequest::getApiType()const void DescribeTotalAndRateLineRequest::setApiType(int apiType) { apiType_ = apiType; - setParameter("ApiType", std::to_string(apiType)); + setCoreParameter("ApiType", std::to_string(apiType)); } diff --git a/sas-api/src/model/DescribeTotalAndRateLineResult.cc b/sas-api/src/model/DescribeTotalAndRateLineResult.cc index e6ed864b9..c6652c4f3 100644 --- a/sas-api/src/model/DescribeTotalAndRateLineResult.cc +++ b/sas-api/src/model/DescribeTotalAndRateLineResult.cc @@ -35,10 +35,13 @@ DescribeTotalAndRateLineResult::~DescribeTotalAndRateLineResult() void DescribeTotalAndRateLineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Item"]; for (auto value : allItems) diff --git a/sas-api/src/model/GetAccountProfileRequest.cc b/sas-api/src/model/GetAccountProfileRequest.cc index 03cb08604..e657f4282 100644 --- a/sas-api/src/model/GetAccountProfileRequest.cc +++ b/sas-api/src/model/GetAccountProfileRequest.cc @@ -33,7 +33,7 @@ std::string GetAccountProfileRequest::getDeviceIdMd5()const void GetAccountProfileRequest::setDeviceIdMd5(const std::string& deviceIdMd5) { deviceIdMd5_ = deviceIdMd5; - setParameter("DeviceIdMd5", deviceIdMd5); + setCoreParameter("DeviceIdMd5", deviceIdMd5); } int GetAccountProfileRequest::getCarrier()const @@ -44,7 +44,7 @@ int GetAccountProfileRequest::getCarrier()const void GetAccountProfileRequest::setCarrier(int carrier) { carrier_ = carrier; - setParameter("Carrier", std::to_string(carrier)); + setCoreParameter("Carrier", std::to_string(carrier)); } std::string GetAccountProfileRequest::getOs()const @@ -55,7 +55,7 @@ std::string GetAccountProfileRequest::getOs()const void GetAccountProfileRequest::setOs(const std::string& os) { os_ = os; - setParameter("Os", os); + setCoreParameter("Os", os); } std::string GetAccountProfileRequest::getPhone()const @@ -66,7 +66,7 @@ std::string GetAccountProfileRequest::getPhone()const void GetAccountProfileRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); + setCoreParameter("Phone", phone); } std::string GetAccountProfileRequest::getRequestUrl()const @@ -77,7 +77,7 @@ std::string GetAccountProfileRequest::getRequestUrl()const void GetAccountProfileRequest::setRequestUrl(const std::string& requestUrl) { requestUrl_ = requestUrl; - setParameter("RequestUrl", requestUrl); + setCoreParameter("RequestUrl", requestUrl); } std::string GetAccountProfileRequest::getIp()const @@ -88,7 +88,7 @@ std::string GetAccountProfileRequest::getIp()const void GetAccountProfileRequest::setIp(const std::string& ip) { ip_ = ip; - setParameter("Ip", ip); + setCoreParameter("Ip", ip); } std::string GetAccountProfileRequest::getUserAgent()const @@ -99,7 +99,7 @@ std::string GetAccountProfileRequest::getUserAgent()const void GetAccountProfileRequest::setUserAgent(const std::string& userAgent) { userAgent_ = userAgent; - setParameter("UserAgent", userAgent); + setCoreParameter("UserAgent", userAgent); } int GetAccountProfileRequest::getConnectionType()const @@ -110,7 +110,7 @@ int GetAccountProfileRequest::getConnectionType()const void GetAccountProfileRequest::setConnectionType(int connectionType) { connectionType_ = connectionType; - setParameter("ConnectionType", std::to_string(connectionType)); + setCoreParameter("ConnectionType", std::to_string(connectionType)); } int GetAccountProfileRequest::getSensType()const @@ -121,7 +121,7 @@ int GetAccountProfileRequest::getSensType()const void GetAccountProfileRequest::setSensType(int sensType) { sensType_ = sensType; - setParameter("SensType", std::to_string(sensType)); + setCoreParameter("SensType", std::to_string(sensType)); } int GetAccountProfileRequest::getDeviceType()const @@ -132,7 +132,7 @@ int GetAccountProfileRequest::getDeviceType()const void GetAccountProfileRequest::setDeviceType(int deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", std::to_string(deviceType)); + setCoreParameter("DeviceType", std::to_string(deviceType)); } long GetAccountProfileRequest::getAccessTimestamp()const @@ -143,7 +143,7 @@ long GetAccountProfileRequest::getAccessTimestamp()const void GetAccountProfileRequest::setAccessTimestamp(long accessTimestamp) { accessTimestamp_ = accessTimestamp; - setParameter("AccessTimestamp", std::to_string(accessTimestamp)); + setCoreParameter("AccessTimestamp", std::to_string(accessTimestamp)); } int GetAccountProfileRequest::getBusinessType()const @@ -154,6 +154,6 @@ int GetAccountProfileRequest::getBusinessType()const void GetAccountProfileRequest::setBusinessType(int businessType) { businessType_ = businessType; - setParameter("BusinessType", std::to_string(businessType)); + setCoreParameter("BusinessType", std::to_string(businessType)); } diff --git a/sas-api/src/model/GetAccountProfileResult.cc b/sas-api/src/model/GetAccountProfileResult.cc index 460152994..77905adb7 100644 --- a/sas-api/src/model/GetAccountProfileResult.cc +++ b/sas-api/src/model/GetAccountProfileResult.cc @@ -35,10 +35,13 @@ GetAccountProfileResult::~GetAccountProfileResult() void GetAccountProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Ip"].isNull()) diff --git a/sas-api/src/model/GetInstanceCountRequest.cc b/sas-api/src/model/GetInstanceCountRequest.cc index b4759bfd4..f49b6741b 100644 --- a/sas-api/src/model/GetInstanceCountRequest.cc +++ b/sas-api/src/model/GetInstanceCountRequest.cc @@ -33,6 +33,6 @@ long GetInstanceCountRequest::getOwnerId()const void GetInstanceCountRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/sas-api/src/model/GetInstanceCountResult.cc b/sas-api/src/model/GetInstanceCountResult.cc index 1bc949fc6..bcc0a20c0 100644 --- a/sas-api/src/model/GetInstanceCountResult.cc +++ b/sas-api/src/model/GetInstanceCountResult.cc @@ -35,10 +35,13 @@ GetInstanceCountResult::~GetInstanceCountResult() void GetInstanceCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/sas-api/src/model/GetIpProfileRequest.cc b/sas-api/src/model/GetIpProfileRequest.cc index 33aa5a48f..4962f260a 100644 --- a/sas-api/src/model/GetIpProfileRequest.cc +++ b/sas-api/src/model/GetIpProfileRequest.cc @@ -33,7 +33,7 @@ std::string GetIpProfileRequest::getDeviceIdMd5()const void GetIpProfileRequest::setDeviceIdMd5(const std::string& deviceIdMd5) { deviceIdMd5_ = deviceIdMd5; - setParameter("DeviceIdMd5", deviceIdMd5); + setCoreParameter("DeviceIdMd5", deviceIdMd5); } int GetIpProfileRequest::getCarrier()const @@ -44,7 +44,7 @@ int GetIpProfileRequest::getCarrier()const void GetIpProfileRequest::setCarrier(int carrier) { carrier_ = carrier; - setParameter("Carrier", std::to_string(carrier)); + setCoreParameter("Carrier", std::to_string(carrier)); } std::string GetIpProfileRequest::getOs()const @@ -55,7 +55,7 @@ std::string GetIpProfileRequest::getOs()const void GetIpProfileRequest::setOs(const std::string& os) { os_ = os; - setParameter("Os", os); + setCoreParameter("Os", os); } std::string GetIpProfileRequest::getRequestUrl()const @@ -66,7 +66,7 @@ std::string GetIpProfileRequest::getRequestUrl()const void GetIpProfileRequest::setRequestUrl(const std::string& requestUrl) { requestUrl_ = requestUrl; - setParameter("RequestUrl", requestUrl); + setCoreParameter("RequestUrl", requestUrl); } std::string GetIpProfileRequest::getIp()const @@ -77,7 +77,7 @@ std::string GetIpProfileRequest::getIp()const void GetIpProfileRequest::setIp(const std::string& ip) { ip_ = ip; - setParameter("Ip", ip); + setCoreParameter("Ip", ip); } std::string GetIpProfileRequest::getUserAgent()const @@ -88,7 +88,7 @@ std::string GetIpProfileRequest::getUserAgent()const void GetIpProfileRequest::setUserAgent(const std::string& userAgent) { userAgent_ = userAgent; - setParameter("UserAgent", userAgent); + setCoreParameter("UserAgent", userAgent); } int GetIpProfileRequest::getConnectionType()const @@ -99,7 +99,7 @@ int GetIpProfileRequest::getConnectionType()const void GetIpProfileRequest::setConnectionType(int connectionType) { connectionType_ = connectionType; - setParameter("ConnectionType", std::to_string(connectionType)); + setCoreParameter("ConnectionType", std::to_string(connectionType)); } int GetIpProfileRequest::getSensType()const @@ -110,7 +110,7 @@ int GetIpProfileRequest::getSensType()const void GetIpProfileRequest::setSensType(int sensType) { sensType_ = sensType; - setParameter("SensType", std::to_string(sensType)); + setCoreParameter("SensType", std::to_string(sensType)); } int GetIpProfileRequest::getDeviceType()const @@ -121,7 +121,7 @@ int GetIpProfileRequest::getDeviceType()const void GetIpProfileRequest::setDeviceType(int deviceType) { deviceType_ = deviceType; - setParameter("DeviceType", std::to_string(deviceType)); + setCoreParameter("DeviceType", std::to_string(deviceType)); } int GetIpProfileRequest::getBusinessType()const @@ -132,6 +132,6 @@ int GetIpProfileRequest::getBusinessType()const void GetIpProfileRequest::setBusinessType(int businessType) { businessType_ = businessType; - setParameter("BusinessType", std::to_string(businessType)); + setCoreParameter("BusinessType", std::to_string(businessType)); } diff --git a/sas-api/src/model/GetIpProfileResult.cc b/sas-api/src/model/GetIpProfileResult.cc index 9c2a9fd0a..df671ea55 100644 --- a/sas-api/src/model/GetIpProfileResult.cc +++ b/sas-api/src/model/GetIpProfileResult.cc @@ -35,10 +35,13 @@ GetIpProfileResult::~GetIpProfileResult() void GetIpProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Ip"].isNull()) diff --git a/sas-api/src/model/GetPhoneProfileRequest.cc b/sas-api/src/model/GetPhoneProfileRequest.cc index 5aaeff945..cf4e945d7 100644 --- a/sas-api/src/model/GetPhoneProfileRequest.cc +++ b/sas-api/src/model/GetPhoneProfileRequest.cc @@ -33,7 +33,7 @@ std::string GetPhoneProfileRequest::getPhone()const void GetPhoneProfileRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); + setCoreParameter("Phone", phone); } int GetPhoneProfileRequest::getSensType()const @@ -44,7 +44,7 @@ int GetPhoneProfileRequest::getSensType()const void GetPhoneProfileRequest::setSensType(int sensType) { sensType_ = sensType; - setParameter("SensType", std::to_string(sensType)); + setCoreParameter("SensType", std::to_string(sensType)); } std::string GetPhoneProfileRequest::getDataVersion()const @@ -55,7 +55,7 @@ std::string GetPhoneProfileRequest::getDataVersion()const void GetPhoneProfileRequest::setDataVersion(const std::string& dataVersion) { dataVersion_ = dataVersion; - setParameter("DataVersion", dataVersion); + setCoreParameter("DataVersion", dataVersion); } int GetPhoneProfileRequest::getBusinessType()const @@ -66,6 +66,6 @@ int GetPhoneProfileRequest::getBusinessType()const void GetPhoneProfileRequest::setBusinessType(int businessType) { businessType_ = businessType; - setParameter("BusinessType", std::to_string(businessType)); + setCoreParameter("BusinessType", std::to_string(businessType)); } diff --git a/sas-api/src/model/GetPhoneProfileResult.cc b/sas-api/src/model/GetPhoneProfileResult.cc index fe4e14fff..f0cf2299f 100644 --- a/sas-api/src/model/GetPhoneProfileResult.cc +++ b/sas-api/src/model/GetPhoneProfileResult.cc @@ -35,10 +35,13 @@ GetPhoneProfileResult::~GetPhoneProfileResult() void GetPhoneProfileResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Phone"].isNull()) diff --git a/sas/CMakeLists.txt b/sas/CMakeLists.txt index aa6d6dbe1..e8aa57b76 100644 --- a/sas/CMakeLists.txt +++ b/sas/CMakeLists.txt @@ -20,10 +20,146 @@ set(sas_public_header include/alibabacloud/sas/SasClient.h include/alibabacloud/sas/SasExport.h ) -set(sas_public_header_model ) +set(sas_public_header_model + include/alibabacloud/sas/model/DescribeAlarmEventDetailRequest.h + include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h + include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h + include/alibabacloud/sas/model/DescribeAlarmEventListResult.h + include/alibabacloud/sas/model/DescribeSuspEventsRequest.h + include/alibabacloud/sas/model/DescribeSuspEventsResult.h + include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.h + include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h + include/alibabacloud/sas/model/DescribeConcernNecessityRequest.h + include/alibabacloud/sas/model/DescribeConcernNecessityResult.h + include/alibabacloud/sas/model/DescribeCheckWarningSummaryRequest.h + include/alibabacloud/sas/model/DescribeCheckWarningSummaryResult.h + include/alibabacloud/sas/model/DescribeEmgVulGroupRequest.h + include/alibabacloud/sas/model/DescribeEmgVulGroupResult.h + include/alibabacloud/sas/model/DescribeVulListRequest.h + include/alibabacloud/sas/model/DescribeVulListResult.h + include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h + include/alibabacloud/sas/model/DescribeAutoDelConfigResult.h + include/alibabacloud/sas/model/DescribeVulWhitelistRequest.h + include/alibabacloud/sas/model/DescribeVulWhitelistResult.h + include/alibabacloud/sas/model/ModifyRiskCheckStatusRequest.h + include/alibabacloud/sas/model/ModifyRiskCheckStatusResult.h + include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h + include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h + include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h + include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h + include/alibabacloud/sas/model/ModifyPushAllTaskRequest.h + include/alibabacloud/sas/model/ModifyPushAllTaskResult.h + include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h + include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h + include/alibabacloud/sas/model/DescribeCheckWarningDetailRequest.h + include/alibabacloud/sas/model/DescribeCheckWarningDetailResult.h + include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h + include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h + include/alibabacloud/sas/model/DescribeStratetyRequest.h + include/alibabacloud/sas/model/DescribeStratetyResult.h + include/alibabacloud/sas/model/DescribeRiskCheckItemResultRequest.h + include/alibabacloud/sas/model/DescribeRiskCheckItemResultResult.h + include/alibabacloud/sas/model/DescribeWarningMachinesRequest.h + include/alibabacloud/sas/model/DescribeWarningMachinesResult.h + include/alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.h + include/alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.h + include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h + include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h + include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h + include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h + include/alibabacloud/sas/model/DescribeVulDetailsRequest.h + include/alibabacloud/sas/model/DescribeVulDetailsResult.h + include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h + include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h + include/alibabacloud/sas/model/DescribeGroupedVulRequest.h + include/alibabacloud/sas/model/DescribeGroupedVulResult.h + include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h + include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h + include/alibabacloud/sas/model/DescribeStrategyExecDetailRequest.h + include/alibabacloud/sas/model/DescribeStrategyExecDetailResult.h + include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h + include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h + include/alibabacloud/sas/model/ModifyOperateVulRequest.h + include/alibabacloud/sas/model/ModifyOperateVulResult.h + include/alibabacloud/sas/model/DescribeRiskItemTypeRequest.h + include/alibabacloud/sas/model/DescribeRiskItemTypeResult.h + include/alibabacloud/sas/model/DescribeCheckWarningsRequest.h + include/alibabacloud/sas/model/DescribeCheckWarningsResult.h + include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.h + include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h + include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h + include/alibabacloud/sas/model/ModifyConcernNecessityResult.h ) set(sas_src - src/SasClient.cc ) + src/SasClient.cc + src/model/DescribeAlarmEventDetailRequest.cc + src/model/DescribeAlarmEventDetailResult.cc + src/model/DescribeAlarmEventListRequest.cc + src/model/DescribeAlarmEventListResult.cc + src/model/DescribeSuspEventsRequest.cc + src/model/DescribeSuspEventsResult.cc + src/model/ModifySecurityCheckScheduleConfigRequest.cc + src/model/ModifySecurityCheckScheduleConfigResult.cc + src/model/DescribeConcernNecessityRequest.cc + src/model/DescribeConcernNecessityResult.cc + src/model/DescribeCheckWarningSummaryRequest.cc + src/model/DescribeCheckWarningSummaryResult.cc + src/model/DescribeEmgVulGroupRequest.cc + src/model/DescribeEmgVulGroupResult.cc + src/model/DescribeVulListRequest.cc + src/model/DescribeVulListResult.cc + src/model/DescribeAutoDelConfigRequest.cc + src/model/DescribeAutoDelConfigResult.cc + src/model/DescribeVulWhitelistRequest.cc + src/model/DescribeVulWhitelistResult.cc + src/model/ModifyRiskCheckStatusRequest.cc + src/model/ModifyRiskCheckStatusResult.cc + src/model/DescribeSecurityCheckScheduleConfigRequest.cc + src/model/DescribeSecurityCheckScheduleConfigResult.cc + src/model/StartBaselineSecurityCheckRequest.cc + src/model/StartBaselineSecurityCheckResult.cc + src/model/ModifyPushAllTaskRequest.cc + src/model/ModifyPushAllTaskResult.cc + src/model/DescribeRiskCheckResultRequest.cc + src/model/DescribeRiskCheckResultResult.cc + src/model/DescribeCheckWarningDetailRequest.cc + src/model/DescribeCheckWarningDetailResult.cc + src/model/DescribeSuspEventDetailRequest.cc + src/model/DescribeSuspEventDetailResult.cc + src/model/DescribeStratetyRequest.cc + src/model/DescribeStratetyResult.cc + src/model/DescribeRiskCheckItemResultRequest.cc + src/model/DescribeRiskCheckItemResultResult.cc + src/model/DescribeWarningMachinesRequest.cc + src/model/DescribeWarningMachinesResult.cc + src/model/ModifyRiskSingleResultStatusRequest.cc + src/model/ModifyRiskSingleResultStatusResult.cc + src/model/ModifyAutoDelConfigRequest.cc + src/model/ModifyAutoDelConfigResult.cc + src/model/ModifyEmgVulSubmitRequest.cc + src/model/ModifyEmgVulSubmitResult.cc + src/model/DescribeVulDetailsRequest.cc + src/model/DescribeVulDetailsResult.cc + src/model/ModifyCreateVulWhitelistRequest.cc + src/model/ModifyCreateVulWhitelistResult.cc + src/model/DescribeGroupedVulRequest.cc + src/model/DescribeGroupedVulResult.cc + src/model/ModifyDeleteVulWhitelistRequest.cc + src/model/ModifyDeleteVulWhitelistResult.cc + src/model/DescribeStrategyExecDetailRequest.cc + src/model/DescribeStrategyExecDetailResult.cc + src/model/DescribeRiskCheckSummaryRequest.cc + src/model/DescribeRiskCheckSummaryResult.cc + src/model/ModifyOperateVulRequest.cc + src/model/ModifyOperateVulResult.cc + src/model/DescribeRiskItemTypeRequest.cc + src/model/DescribeRiskItemTypeResult.cc + src/model/DescribeCheckWarningsRequest.cc + src/model/DescribeCheckWarningsResult.cc + src/model/DescribeUserBaselineAuthorizationRequest.cc + src/model/DescribeUserBaselineAuthorizationResult.cc + src/model/ModifyConcernNecessityRequest.cc + src/model/ModifyConcernNecessityResult.cc ) add_library(sas ${LIB_TYPE} ${sas_public_header} diff --git a/sas/include/alibabacloud/sas/SasClient.h b/sas/include/alibabacloud/sas/SasClient.h index 1bb5935c9..b70c488d8 100644 --- a/sas/include/alibabacloud/sas/SasClient.h +++ b/sas/include/alibabacloud/sas/SasClient.h @@ -28,18 +28,18 @@ #include "model/DescribeAlarmEventListResult.h" #include "model/DescribeSuspEventsRequest.h" #include "model/DescribeSuspEventsResult.h" -#include "model/DescribeConcernNecessityRequest.h" -#include "model/DescribeConcernNecessityResult.h" #include "model/ModifySecurityCheckScheduleConfigRequest.h" #include "model/ModifySecurityCheckScheduleConfigResult.h" +#include "model/DescribeConcernNecessityRequest.h" +#include "model/DescribeConcernNecessityResult.h" #include "model/DescribeCheckWarningSummaryRequest.h" #include "model/DescribeCheckWarningSummaryResult.h" #include "model/DescribeEmgVulGroupRequest.h" #include "model/DescribeEmgVulGroupResult.h" -#include "model/DescribeAutoDelConfigRequest.h" -#include "model/DescribeAutoDelConfigResult.h" #include "model/DescribeVulListRequest.h" #include "model/DescribeVulListResult.h" +#include "model/DescribeAutoDelConfigRequest.h" +#include "model/DescribeAutoDelConfigResult.h" #include "model/DescribeVulWhitelistRequest.h" #include "model/DescribeVulWhitelistResult.h" #include "model/ModifyRiskCheckStatusRequest.h" @@ -58,6 +58,8 @@ #include "model/DescribeSuspEventDetailResult.h" #include "model/DescribeStratetyRequest.h" #include "model/DescribeStratetyResult.h" +#include "model/DescribeRiskCheckItemResultRequest.h" +#include "model/DescribeRiskCheckItemResultResult.h" #include "model/DescribeWarningMachinesRequest.h" #include "model/DescribeWarningMachinesResult.h" #include "model/ModifyRiskSingleResultStatusRequest.h" @@ -82,10 +84,10 @@ #include "model/ModifyOperateVulResult.h" #include "model/DescribeRiskItemTypeRequest.h" #include "model/DescribeRiskItemTypeResult.h" -#include "model/DescribeUserBaselineAuthorizationRequest.h" -#include "model/DescribeUserBaselineAuthorizationResult.h" #include "model/DescribeCheckWarningsRequest.h" #include "model/DescribeCheckWarningsResult.h" +#include "model/DescribeUserBaselineAuthorizationRequest.h" +#include "model/DescribeUserBaselineAuthorizationResult.h" #include "model/ModifyConcernNecessityRequest.h" #include "model/ModifyConcernNecessityResult.h" @@ -106,24 +108,24 @@ namespace AlibabaCloud typedef Outcome DescribeSuspEventsOutcome; typedef std::future DescribeSuspEventsOutcomeCallable; typedef std::function&)> DescribeSuspEventsAsyncHandler; - typedef Outcome DescribeConcernNecessityOutcome; - typedef std::future DescribeConcernNecessityOutcomeCallable; - typedef std::function&)> DescribeConcernNecessityAsyncHandler; typedef Outcome ModifySecurityCheckScheduleConfigOutcome; typedef std::future ModifySecurityCheckScheduleConfigOutcomeCallable; typedef std::function&)> ModifySecurityCheckScheduleConfigAsyncHandler; + typedef Outcome DescribeConcernNecessityOutcome; + typedef std::future DescribeConcernNecessityOutcomeCallable; + typedef std::function&)> DescribeConcernNecessityAsyncHandler; typedef Outcome DescribeCheckWarningSummaryOutcome; typedef std::future DescribeCheckWarningSummaryOutcomeCallable; typedef std::function&)> DescribeCheckWarningSummaryAsyncHandler; typedef Outcome DescribeEmgVulGroupOutcome; typedef std::future DescribeEmgVulGroupOutcomeCallable; typedef std::function&)> DescribeEmgVulGroupAsyncHandler; - typedef Outcome DescribeAutoDelConfigOutcome; - typedef std::future DescribeAutoDelConfigOutcomeCallable; - typedef std::function&)> DescribeAutoDelConfigAsyncHandler; typedef Outcome DescribeVulListOutcome; typedef std::future DescribeVulListOutcomeCallable; typedef std::function&)> DescribeVulListAsyncHandler; + typedef Outcome DescribeAutoDelConfigOutcome; + typedef std::future DescribeAutoDelConfigOutcomeCallable; + typedef std::function&)> DescribeAutoDelConfigAsyncHandler; typedef Outcome DescribeVulWhitelistOutcome; typedef std::future DescribeVulWhitelistOutcomeCallable; typedef std::function&)> DescribeVulWhitelistAsyncHandler; @@ -151,6 +153,9 @@ namespace AlibabaCloud typedef Outcome DescribeStratetyOutcome; typedef std::future DescribeStratetyOutcomeCallable; typedef std::function&)> DescribeStratetyAsyncHandler; + typedef Outcome DescribeRiskCheckItemResultOutcome; + typedef std::future DescribeRiskCheckItemResultOutcomeCallable; + typedef std::function&)> DescribeRiskCheckItemResultAsyncHandler; typedef Outcome DescribeWarningMachinesOutcome; typedef std::future DescribeWarningMachinesOutcomeCallable; typedef std::function&)> DescribeWarningMachinesAsyncHandler; @@ -187,12 +192,12 @@ namespace AlibabaCloud typedef Outcome DescribeRiskItemTypeOutcome; typedef std::future DescribeRiskItemTypeOutcomeCallable; typedef std::function&)> DescribeRiskItemTypeAsyncHandler; - typedef Outcome DescribeUserBaselineAuthorizationOutcome; - typedef std::future DescribeUserBaselineAuthorizationOutcomeCallable; - typedef std::function&)> DescribeUserBaselineAuthorizationAsyncHandler; typedef Outcome DescribeCheckWarningsOutcome; typedef std::future DescribeCheckWarningsOutcomeCallable; typedef std::function&)> DescribeCheckWarningsAsyncHandler; + typedef Outcome DescribeUserBaselineAuthorizationOutcome; + typedef std::future DescribeUserBaselineAuthorizationOutcomeCallable; + typedef std::function&)> DescribeUserBaselineAuthorizationAsyncHandler; typedef Outcome ModifyConcernNecessityOutcome; typedef std::future ModifyConcernNecessityOutcomeCallable; typedef std::function&)> ModifyConcernNecessityAsyncHandler; @@ -210,24 +215,24 @@ namespace AlibabaCloud DescribeSuspEventsOutcome describeSuspEvents(const Model::DescribeSuspEventsRequest &request)const; void describeSuspEventsAsync(const Model::DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSuspEventsOutcomeCallable describeSuspEventsCallable(const Model::DescribeSuspEventsRequest& request) const; - DescribeConcernNecessityOutcome describeConcernNecessity(const Model::DescribeConcernNecessityRequest &request)const; - void describeConcernNecessityAsync(const Model::DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConcernNecessityOutcomeCallable describeConcernNecessityCallable(const Model::DescribeConcernNecessityRequest& request) const; ModifySecurityCheckScheduleConfigOutcome modifySecurityCheckScheduleConfig(const Model::ModifySecurityCheckScheduleConfigRequest &request)const; void modifySecurityCheckScheduleConfigAsync(const Model::ModifySecurityCheckScheduleConfigRequest& request, const ModifySecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySecurityCheckScheduleConfigOutcomeCallable modifySecurityCheckScheduleConfigCallable(const Model::ModifySecurityCheckScheduleConfigRequest& request) const; + DescribeConcernNecessityOutcome describeConcernNecessity(const Model::DescribeConcernNecessityRequest &request)const; + void describeConcernNecessityAsync(const Model::DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConcernNecessityOutcomeCallable describeConcernNecessityCallable(const Model::DescribeConcernNecessityRequest& request) const; DescribeCheckWarningSummaryOutcome describeCheckWarningSummary(const Model::DescribeCheckWarningSummaryRequest &request)const; void describeCheckWarningSummaryAsync(const Model::DescribeCheckWarningSummaryRequest& request, const DescribeCheckWarningSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCheckWarningSummaryOutcomeCallable describeCheckWarningSummaryCallable(const Model::DescribeCheckWarningSummaryRequest& request) const; DescribeEmgVulGroupOutcome describeEmgVulGroup(const Model::DescribeEmgVulGroupRequest &request)const; void describeEmgVulGroupAsync(const Model::DescribeEmgVulGroupRequest& request, const DescribeEmgVulGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEmgVulGroupOutcomeCallable describeEmgVulGroupCallable(const Model::DescribeEmgVulGroupRequest& request) const; - DescribeAutoDelConfigOutcome describeAutoDelConfig(const Model::DescribeAutoDelConfigRequest &request)const; - void describeAutoDelConfigAsync(const Model::DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAutoDelConfigOutcomeCallable describeAutoDelConfigCallable(const Model::DescribeAutoDelConfigRequest& request) const; DescribeVulListOutcome describeVulList(const Model::DescribeVulListRequest &request)const; void describeVulListAsync(const Model::DescribeVulListRequest& request, const DescribeVulListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVulListOutcomeCallable describeVulListCallable(const Model::DescribeVulListRequest& request) const; + DescribeAutoDelConfigOutcome describeAutoDelConfig(const Model::DescribeAutoDelConfigRequest &request)const; + void describeAutoDelConfigAsync(const Model::DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoDelConfigOutcomeCallable describeAutoDelConfigCallable(const Model::DescribeAutoDelConfigRequest& request) const; DescribeVulWhitelistOutcome describeVulWhitelist(const Model::DescribeVulWhitelistRequest &request)const; void describeVulWhitelistAsync(const Model::DescribeVulWhitelistRequest& request, const DescribeVulWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVulWhitelistOutcomeCallable describeVulWhitelistCallable(const Model::DescribeVulWhitelistRequest& request) const; @@ -255,6 +260,9 @@ namespace AlibabaCloud DescribeStratetyOutcome describeStratety(const Model::DescribeStratetyRequest &request)const; void describeStratetyAsync(const Model::DescribeStratetyRequest& request, const DescribeStratetyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStratetyOutcomeCallable describeStratetyCallable(const Model::DescribeStratetyRequest& request) const; + DescribeRiskCheckItemResultOutcome describeRiskCheckItemResult(const Model::DescribeRiskCheckItemResultRequest &request)const; + void describeRiskCheckItemResultAsync(const Model::DescribeRiskCheckItemResultRequest& request, const DescribeRiskCheckItemResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRiskCheckItemResultOutcomeCallable describeRiskCheckItemResultCallable(const Model::DescribeRiskCheckItemResultRequest& request) const; DescribeWarningMachinesOutcome describeWarningMachines(const Model::DescribeWarningMachinesRequest &request)const; void describeWarningMachinesAsync(const Model::DescribeWarningMachinesRequest& request, const DescribeWarningMachinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWarningMachinesOutcomeCallable describeWarningMachinesCallable(const Model::DescribeWarningMachinesRequest& request) const; @@ -291,12 +299,12 @@ namespace AlibabaCloud DescribeRiskItemTypeOutcome describeRiskItemType(const Model::DescribeRiskItemTypeRequest &request)const; void describeRiskItemTypeAsync(const Model::DescribeRiskItemTypeRequest& request, const DescribeRiskItemTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRiskItemTypeOutcomeCallable describeRiskItemTypeCallable(const Model::DescribeRiskItemTypeRequest& request) const; - DescribeUserBaselineAuthorizationOutcome describeUserBaselineAuthorization(const Model::DescribeUserBaselineAuthorizationRequest &request)const; - void describeUserBaselineAuthorizationAsync(const Model::DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserBaselineAuthorizationOutcomeCallable describeUserBaselineAuthorizationCallable(const Model::DescribeUserBaselineAuthorizationRequest& request) const; DescribeCheckWarningsOutcome describeCheckWarnings(const Model::DescribeCheckWarningsRequest &request)const; void describeCheckWarningsAsync(const Model::DescribeCheckWarningsRequest& request, const DescribeCheckWarningsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCheckWarningsOutcomeCallable describeCheckWarningsCallable(const Model::DescribeCheckWarningsRequest& request) const; + DescribeUserBaselineAuthorizationOutcome describeUserBaselineAuthorization(const Model::DescribeUserBaselineAuthorizationRequest &request)const; + void describeUserBaselineAuthorizationAsync(const Model::DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserBaselineAuthorizationOutcomeCallable describeUserBaselineAuthorizationCallable(const Model::DescribeUserBaselineAuthorizationRequest& request) const; ModifyConcernNecessityOutcome modifyConcernNecessity(const Model::ModifyConcernNecessityRequest &request)const; void modifyConcernNecessityAsync(const Model::ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyConcernNecessityOutcomeCallable modifyConcernNecessityCallable(const Model::ModifyConcernNecessityRequest& request) const; diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultRequest.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultRequest.h new file mode 100644 index 000000000..8818521e5 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultRequest.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_SAS_MODEL_DESCRIBERISKCHECKITEMRESULTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKITEMRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskCheckItemResultRequest : public RpcServiceRequest + { + + public: + DescribeRiskCheckItemResultRequest(); + ~DescribeRiskCheckItemResultRequest(); + + long getItemId()const; + void setItemId(long itemId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + long itemId_; + long resourceOwnerId_; + std::string sourceIp_; + int pageSize_; + int currentPage_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKITEMRESULTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultResult.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultResult.h new file mode 100644 index 000000000..0efd88855 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckItemResultResult.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_SAS_MODEL_DESCRIBERISKCHECKITEMRESULTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKITEMRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskCheckItemResultResult : public ServiceResult + { + public: + struct PageContentResource + { + int totalCount; + std::string contentResource; + int pageSize; + int pageCount; + int currentPage; + int count; + }; + + + DescribeRiskCheckItemResultResult(); + explicit DescribeRiskCheckItemResultResult(const std::string &payload); + ~DescribeRiskCheckItemResultResult(); + PageContentResource getPageContentResource()const; + + protected: + void parse(const std::string &payload); + private: + PageContentResource pageContentResource_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKITEMRESULTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h index 50e1a3beb..005d28310 100644 --- a/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); long getGroupId()const; void setGroupId(long groupId); + std::vector getItemIds()const; + void setItemIds(const std::vector& itemIds); std::string getName()const; void setName(const std::string& name); int getPageSize()const; @@ -51,16 +53,20 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getRiskLevel()const; void setRiskLevel(const std::string& riskLevel); + std::string getStatus()const; + void setStatus(const std::string& status); private: long resourceOwnerId_; std::string sourceIp_; long groupId_; + std::vector itemIds_; std::string name_; int pageSize_; int currentPage_; std::string lang_; std::string riskLevel_; + std::string status_; }; } diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h index 0a027a767..2d2f6ea3d 100644 --- a/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h @@ -41,14 +41,16 @@ namespace AlibabaCloud }; std::string status; long checkTime; - std::string type; long taskId; - std::vector riskItemResources; - int affectedCount; int remainingTime; std::string title; - int sort; long itemId; + std::string riskAssertType; + std::string type; + std::string startStatus; + std::vector riskItemResources; + int affectedCount; + int sort; std::string riskLevel; }; diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h index fee7aa07e..0cbc21094 100644 --- a/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h @@ -54,11 +54,13 @@ namespace AlibabaCloud long id; }; std::vector riskLevelCount; + int disabledRiskCount; std::vector groups; long previousTime; int previousCount; int itemCount; float riskRate; + int enabledRiskCount; int affectedAssetCount; int riskCount; }; diff --git a/sas/src/SasClient.cc b/sas/src/SasClient.cc index 60c04e731..7803f1d48 100644 --- a/sas/src/SasClient.cc +++ b/sas/src/SasClient.cc @@ -159,42 +159,6 @@ SasClient::DescribeSuspEventsOutcomeCallable SasClient::describeSuspEventsCallab return task->get_future(); } -SasClient::DescribeConcernNecessityOutcome SasClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeConcernNecessityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeConcernNecessityOutcome(DescribeConcernNecessityResult(outcome.result())); - else - return DescribeConcernNecessityOutcome(outcome.error()); -} - -void SasClient::describeConcernNecessityAsync(const DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeConcernNecessity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SasClient::DescribeConcernNecessityOutcomeCallable SasClient::describeConcernNecessityCallable(const DescribeConcernNecessityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeConcernNecessity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SasClient::ModifySecurityCheckScheduleConfigOutcome SasClient::modifySecurityCheckScheduleConfig(const ModifySecurityCheckScheduleConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +195,42 @@ SasClient::ModifySecurityCheckScheduleConfigOutcomeCallable SasClient::modifySec return task->get_future(); } +SasClient::DescribeConcernNecessityOutcome SasClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConcernNecessityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConcernNecessityOutcome(DescribeConcernNecessityResult(outcome.result())); + else + return DescribeConcernNecessityOutcome(outcome.error()); +} + +void SasClient::describeConcernNecessityAsync(const DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConcernNecessity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeConcernNecessityOutcomeCallable SasClient::describeConcernNecessityCallable(const DescribeConcernNecessityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConcernNecessity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeCheckWarningSummaryOutcome SasClient::describeCheckWarningSummary(const DescribeCheckWarningSummaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,42 +303,6 @@ SasClient::DescribeEmgVulGroupOutcomeCallable SasClient::describeEmgVulGroupCall return task->get_future(); } -SasClient::DescribeAutoDelConfigOutcome SasClient::describeAutoDelConfig(const DescribeAutoDelConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAutoDelConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAutoDelConfigOutcome(DescribeAutoDelConfigResult(outcome.result())); - else - return DescribeAutoDelConfigOutcome(outcome.error()); -} - -void SasClient::describeAutoDelConfigAsync(const DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAutoDelConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SasClient::DescribeAutoDelConfigOutcomeCallable SasClient::describeAutoDelConfigCallable(const DescribeAutoDelConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAutoDelConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SasClient::DescribeVulListOutcome SasClient::describeVulList(const DescribeVulListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +339,42 @@ SasClient::DescribeVulListOutcomeCallable SasClient::describeVulListCallable(con return task->get_future(); } +SasClient::DescribeAutoDelConfigOutcome SasClient::describeAutoDelConfig(const DescribeAutoDelConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoDelConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoDelConfigOutcome(DescribeAutoDelConfigResult(outcome.result())); + else + return DescribeAutoDelConfigOutcome(outcome.error()); +} + +void SasClient::describeAutoDelConfigAsync(const DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoDelConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeAutoDelConfigOutcomeCallable SasClient::describeAutoDelConfigCallable(const DescribeAutoDelConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoDelConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeVulWhitelistOutcome SasClient::describeVulWhitelist(const DescribeVulWhitelistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +699,42 @@ SasClient::DescribeStratetyOutcomeCallable SasClient::describeStratetyCallable(c return task->get_future(); } +SasClient::DescribeRiskCheckItemResultOutcome SasClient::describeRiskCheckItemResult(const DescribeRiskCheckItemResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRiskCheckItemResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRiskCheckItemResultOutcome(DescribeRiskCheckItemResultResult(outcome.result())); + else + return DescribeRiskCheckItemResultOutcome(outcome.error()); +} + +void SasClient::describeRiskCheckItemResultAsync(const DescribeRiskCheckItemResultRequest& request, const DescribeRiskCheckItemResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRiskCheckItemResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeRiskCheckItemResultOutcomeCallable SasClient::describeRiskCheckItemResultCallable(const DescribeRiskCheckItemResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRiskCheckItemResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeWarningMachinesOutcome SasClient::describeWarningMachines(const DescribeWarningMachinesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,42 +1167,6 @@ SasClient::DescribeRiskItemTypeOutcomeCallable SasClient::describeRiskItemTypeCa return task->get_future(); } -SasClient::DescribeUserBaselineAuthorizationOutcome SasClient::describeUserBaselineAuthorization(const DescribeUserBaselineAuthorizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserBaselineAuthorizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserBaselineAuthorizationOutcome(DescribeUserBaselineAuthorizationResult(outcome.result())); - else - return DescribeUserBaselineAuthorizationOutcome(outcome.error()); -} - -void SasClient::describeUserBaselineAuthorizationAsync(const DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserBaselineAuthorization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SasClient::DescribeUserBaselineAuthorizationOutcomeCallable SasClient::describeUserBaselineAuthorizationCallable(const DescribeUserBaselineAuthorizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserBaselineAuthorization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SasClient::DescribeCheckWarningsOutcome SasClient::describeCheckWarnings(const DescribeCheckWarningsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1203,42 @@ SasClient::DescribeCheckWarningsOutcomeCallable SasClient::describeCheckWarnings return task->get_future(); } +SasClient::DescribeUserBaselineAuthorizationOutcome SasClient::describeUserBaselineAuthorization(const DescribeUserBaselineAuthorizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserBaselineAuthorizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserBaselineAuthorizationOutcome(DescribeUserBaselineAuthorizationResult(outcome.result())); + else + return DescribeUserBaselineAuthorizationOutcome(outcome.error()); +} + +void SasClient::describeUserBaselineAuthorizationAsync(const DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserBaselineAuthorization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeUserBaselineAuthorizationOutcomeCallable SasClient::describeUserBaselineAuthorizationCallable(const DescribeUserBaselineAuthorizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserBaselineAuthorization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ModifyConcernNecessityOutcome SasClient::modifyConcernNecessity(const ModifyConcernNecessityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/sas/src/model/DescribeAlarmEventDetailResult.cc b/sas/src/model/DescribeAlarmEventDetailResult.cc index 4248e4264..e0465ec48 100644 --- a/sas/src/model/DescribeAlarmEventDetailResult.cc +++ b/sas/src/model/DescribeAlarmEventDetailResult.cc @@ -35,10 +35,13 @@ DescribeAlarmEventDetailResult::~DescribeAlarmEventDetailResult() void DescribeAlarmEventDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["InternetIp"].isNull()) diff --git a/sas/src/model/DescribeAlarmEventListResult.cc b/sas/src/model/DescribeAlarmEventListResult.cc index 6f2255331..c9a784559 100644 --- a/sas/src/model/DescribeAlarmEventListResult.cc +++ b/sas/src/model/DescribeAlarmEventListResult.cc @@ -35,10 +35,13 @@ DescribeAlarmEventListResult::~DescribeAlarmEventListResult() void DescribeAlarmEventListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspEvents = value["SuspEvents"]["SuspEventsItem"]; for (auto value : allSuspEvents) diff --git a/sas/src/model/DescribeAutoDelConfigResult.cc b/sas/src/model/DescribeAutoDelConfigResult.cc index 49ac79ba8..6bfcb4766 100644 --- a/sas/src/model/DescribeAutoDelConfigResult.cc +++ b/sas/src/model/DescribeAutoDelConfigResult.cc @@ -35,10 +35,13 @@ DescribeAutoDelConfigResult::~DescribeAutoDelConfigResult() void DescribeAutoDelConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Days"].isNull()) days_ = std::stoi(value["Days"].asString()); diff --git a/sas/src/model/DescribeCheckWarningDetailResult.cc b/sas/src/model/DescribeCheckWarningDetailResult.cc index eeac1ea27..7d73db2dd 100644 --- a/sas/src/model/DescribeCheckWarningDetailResult.cc +++ b/sas/src/model/DescribeCheckWarningDetailResult.cc @@ -35,10 +35,13 @@ DescribeCheckWarningDetailResult::~DescribeCheckWarningDetailResult() void DescribeCheckWarningDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CheckId"].isNull()) checkId_ = std::stol(value["CheckId"].asString()); diff --git a/sas/src/model/DescribeCheckWarningSummaryResult.cc b/sas/src/model/DescribeCheckWarningSummaryResult.cc index d344d9a39..87886cf7b 100644 --- a/sas/src/model/DescribeCheckWarningSummaryResult.cc +++ b/sas/src/model/DescribeCheckWarningSummaryResult.cc @@ -35,10 +35,13 @@ DescribeCheckWarningSummaryResult::~DescribeCheckWarningSummaryResult() void DescribeCheckWarningSummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWarningSummarys = value["WarningSummarys"]["WarningSummary"]; for (auto value : allWarningSummarys) diff --git a/sas/src/model/DescribeCheckWarningsResult.cc b/sas/src/model/DescribeCheckWarningsResult.cc index 726dc960a..8ea6c1edf 100644 --- a/sas/src/model/DescribeCheckWarningsResult.cc +++ b/sas/src/model/DescribeCheckWarningsResult.cc @@ -35,10 +35,13 @@ DescribeCheckWarningsResult::~DescribeCheckWarningsResult() void DescribeCheckWarningsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCheckWarnings = value["CheckWarnings"]["CheckWarning"]; for (auto value : allCheckWarnings) diff --git a/sas/src/model/DescribeConcernNecessityResult.cc b/sas/src/model/DescribeConcernNecessityResult.cc index 43532367f..50fe09f2c 100644 --- a/sas/src/model/DescribeConcernNecessityResult.cc +++ b/sas/src/model/DescribeConcernNecessityResult.cc @@ -35,10 +35,13 @@ DescribeConcernNecessityResult::~DescribeConcernNecessityResult() void DescribeConcernNecessityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConcernNecessity = value["ConcernNecessity"]["Necessity"]; for (const auto &item : allConcernNecessity) diff --git a/sas/src/model/DescribeEmgVulGroupResult.cc b/sas/src/model/DescribeEmgVulGroupResult.cc index 1f1e76a9a..a4242d652 100644 --- a/sas/src/model/DescribeEmgVulGroupResult.cc +++ b/sas/src/model/DescribeEmgVulGroupResult.cc @@ -35,10 +35,13 @@ DescribeEmgVulGroupResult::~DescribeEmgVulGroupResult() void DescribeEmgVulGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEmgVulGroupList = value["EmgVulGroupList"]["EmgVulGroup"]; for (auto value : allEmgVulGroupList) diff --git a/sas/src/model/DescribeGroupedVulResult.cc b/sas/src/model/DescribeGroupedVulResult.cc index 8c96e8f34..25bf328ec 100644 --- a/sas/src/model/DescribeGroupedVulResult.cc +++ b/sas/src/model/DescribeGroupedVulResult.cc @@ -35,10 +35,13 @@ DescribeGroupedVulResult::~DescribeGroupedVulResult() void DescribeGroupedVulResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGroupedVulItems = value["GroupedVulItems"]["GroupedVulItem"]; for (auto value : allGroupedVulItems) diff --git a/sas/src/model/DescribeRiskCheckItemResultRequest.cc b/sas/src/model/DescribeRiskCheckItemResultRequest.cc new file mode 100644 index 000000000..04ebbfc50 --- /dev/null +++ b/sas/src/model/DescribeRiskCheckItemResultRequest.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 + +using AlibabaCloud::Sas::Model::DescribeRiskCheckItemResultRequest; + +DescribeRiskCheckItemResultRequest::DescribeRiskCheckItemResultRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckItemResult") +{} + +DescribeRiskCheckItemResultRequest::~DescribeRiskCheckItemResultRequest() +{} + +long DescribeRiskCheckItemResultRequest::getItemId()const +{ + return itemId_; +} + +void DescribeRiskCheckItemResultRequest::setItemId(long itemId) +{ + itemId_ = itemId; + setCoreParameter("ItemId", std::to_string(itemId)); +} + +long DescribeRiskCheckItemResultRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRiskCheckItemResultRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRiskCheckItemResultRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeRiskCheckItemResultRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeRiskCheckItemResultRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRiskCheckItemResultRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeRiskCheckItemResultRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeRiskCheckItemResultRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeRiskCheckItemResultRequest::getLang()const +{ + return lang_; +} + +void DescribeRiskCheckItemResultRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeRiskCheckItemResultResult.cc b/sas/src/model/DescribeRiskCheckItemResultResult.cc new file mode 100644 index 000000000..06edf603b --- /dev/null +++ b/sas/src/model/DescribeRiskCheckItemResultResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeRiskCheckItemResultResult::DescribeRiskCheckItemResultResult() : + ServiceResult() +{} + +DescribeRiskCheckItemResultResult::DescribeRiskCheckItemResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRiskCheckItemResultResult::~DescribeRiskCheckItemResultResult() +{} + +void DescribeRiskCheckItemResultResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto pageContentResourceNode = value["PageContentResource"]; + if(!pageContentResourceNode["ContentResource"].isNull()) + pageContentResource_.contentResource = pageContentResourceNode["ContentResource"].asString(); + if(!pageContentResourceNode["CurrentPage"].isNull()) + pageContentResource_.currentPage = std::stoi(pageContentResourceNode["CurrentPage"].asString()); + if(!pageContentResourceNode["PageSize"].isNull()) + pageContentResource_.pageSize = std::stoi(pageContentResourceNode["PageSize"].asString()); + if(!pageContentResourceNode["TotalCount"].isNull()) + pageContentResource_.totalCount = std::stoi(pageContentResourceNode["TotalCount"].asString()); + if(!pageContentResourceNode["Count"].isNull()) + pageContentResource_.count = std::stoi(pageContentResourceNode["Count"].asString()); + if(!pageContentResourceNode["PageCount"].isNull()) + pageContentResource_.pageCount = std::stoi(pageContentResourceNode["PageCount"].asString()); + +} + +DescribeRiskCheckItemResultResult::PageContentResource DescribeRiskCheckItemResultResult::getPageContentResource()const +{ + return pageContentResource_; +} + diff --git a/sas/src/model/DescribeRiskCheckResultRequest.cc b/sas/src/model/DescribeRiskCheckResultRequest.cc index 1995dfa7d..c3b15423b 100644 --- a/sas/src/model/DescribeRiskCheckResultRequest.cc +++ b/sas/src/model/DescribeRiskCheckResultRequest.cc @@ -58,6 +58,18 @@ void DescribeRiskCheckResultRequest::setGroupId(long groupId) setCoreParameter("GroupId", std::to_string(groupId)); } +std::vector DescribeRiskCheckResultRequest::getItemIds()const +{ + return itemIds_; +} + +void DescribeRiskCheckResultRequest::setItemIds(const std::vector& itemIds) +{ + itemIds_ = itemIds; + for(int i = 0; i!= itemIds.size(); i++) + setCoreParameter("ItemIds."+ std::to_string(i), itemIds.at(i)); +} + std::string DescribeRiskCheckResultRequest::getName()const { return name_; @@ -113,3 +125,14 @@ void DescribeRiskCheckResultRequest::setRiskLevel(const std::string& riskLevel) setCoreParameter("RiskLevel", riskLevel); } +std::string DescribeRiskCheckResultRequest::getStatus()const +{ + return status_; +} + +void DescribeRiskCheckResultRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/sas/src/model/DescribeRiskCheckResultResult.cc b/sas/src/model/DescribeRiskCheckResultResult.cc index 4f362f4c9..99c73117a 100644 --- a/sas/src/model/DescribeRiskCheckResultResult.cc +++ b/sas/src/model/DescribeRiskCheckResultResult.cc @@ -35,10 +35,13 @@ DescribeRiskCheckResultResult::~DescribeRiskCheckResultResult() void DescribeRiskCheckResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allList = value["List"]["RiskCheckResultForDisplay"]; for (auto value : allList) @@ -64,6 +67,10 @@ void DescribeRiskCheckResultResult::parse(const std::string &payload) listObject.sort = std::stoi(value["Sort"].asString()); if(!value["Type"].isNull()) listObject.type = value["Type"].asString(); + if(!value["StartStatus"].isNull()) + listObject.startStatus = value["StartStatus"].asString(); + if(!value["RiskAssertType"].isNull()) + listObject.riskAssertType = value["RiskAssertType"].asString(); auto allRiskItemResources = value["RiskItemResources"]["RiskItemResource"]; for (auto value : allRiskItemResources) { diff --git a/sas/src/model/DescribeRiskCheckSummaryResult.cc b/sas/src/model/DescribeRiskCheckSummaryResult.cc index e99979e02..e40e13936 100644 --- a/sas/src/model/DescribeRiskCheckSummaryResult.cc +++ b/sas/src/model/DescribeRiskCheckSummaryResult.cc @@ -35,10 +35,13 @@ DescribeRiskCheckSummaryResult::~DescribeRiskCheckSummaryResult() void DescribeRiskCheckSummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto riskCheckSummaryNode = value["RiskCheckSummary"]; if(!riskCheckSummaryNode["RiskCount"].isNull()) @@ -53,6 +56,10 @@ void DescribeRiskCheckSummaryResult::parse(const std::string &payload) riskCheckSummary_.affectedAssetCount = std::stoi(riskCheckSummaryNode["AffectedAssetCount"].asString()); if(!riskCheckSummaryNode["PreviousTime"].isNull()) riskCheckSummary_.previousTime = std::stol(riskCheckSummaryNode["PreviousTime"].asString()); + if(!riskCheckSummaryNode["EnabledRiskCount"].isNull()) + riskCheckSummary_.enabledRiskCount = std::stoi(riskCheckSummaryNode["EnabledRiskCount"].asString()); + if(!riskCheckSummaryNode["DisabledRiskCount"].isNull()) + riskCheckSummary_.disabledRiskCount = std::stoi(riskCheckSummaryNode["DisabledRiskCount"].asString()); auto allRiskLevelCount = value["RiskLevelCount"]["levelCount"]; for (auto value : allRiskLevelCount) { diff --git a/sas/src/model/DescribeRiskItemTypeResult.cc b/sas/src/model/DescribeRiskItemTypeResult.cc index 45df9329d..a64790281 100644 --- a/sas/src/model/DescribeRiskItemTypeResult.cc +++ b/sas/src/model/DescribeRiskItemTypeResult.cc @@ -35,10 +35,13 @@ DescribeRiskItemTypeResult::~DescribeRiskItemTypeResult() void DescribeRiskItemTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allList = value["List"]["ItemType"]; for (auto value : allList) diff --git a/sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc b/sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc index 7b0b0daec..52e38fb4f 100644 --- a/sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc +++ b/sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc @@ -35,10 +35,13 @@ DescribeSecurityCheckScheduleConfigResult::~DescribeSecurityCheckScheduleConfigR void DescribeSecurityCheckScheduleConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto riskCheckJobConfigNode = value["RiskCheckJobConfig"]; if(!riskCheckJobConfigNode["StartTime"].isNull()) diff --git a/sas/src/model/DescribeStrategyExecDetailResult.cc b/sas/src/model/DescribeStrategyExecDetailResult.cc index 9e5e45ed6..72496aaff 100644 --- a/sas/src/model/DescribeStrategyExecDetailResult.cc +++ b/sas/src/model/DescribeStrategyExecDetailResult.cc @@ -35,10 +35,13 @@ DescribeStrategyExecDetailResult::~DescribeStrategyExecDetailResult() void DescribeStrategyExecDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFailedEcsList = value["FailedEcsList"]["FailedEcs"]; for (auto value : allFailedEcsList) diff --git a/sas/src/model/DescribeStratetyResult.cc b/sas/src/model/DescribeStratetyResult.cc index ad4e3d91e..12a53299a 100644 --- a/sas/src/model/DescribeStratetyResult.cc +++ b/sas/src/model/DescribeStratetyResult.cc @@ -35,10 +35,13 @@ DescribeStratetyResult::~DescribeStratetyResult() void DescribeStratetyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStrategies = value["Strategies"]["Strategy"]; for (auto value : allStrategies) diff --git a/sas/src/model/DescribeSuspEventDetailResult.cc b/sas/src/model/DescribeSuspEventDetailResult.cc index 7206fbc63..6c56014bf 100644 --- a/sas/src/model/DescribeSuspEventDetailResult.cc +++ b/sas/src/model/DescribeSuspEventDetailResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventDetailResult::~DescribeSuspEventDetailResult() void DescribeSuspEventDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDetails = value["Details"]["QuaraFile"]; for (auto value : allDetails) diff --git a/sas/src/model/DescribeSuspEventsResult.cc b/sas/src/model/DescribeSuspEventsResult.cc index 3abdba89e..2aa1e34ff 100644 --- a/sas/src/model/DescribeSuspEventsResult.cc +++ b/sas/src/model/DescribeSuspEventsResult.cc @@ -35,10 +35,13 @@ DescribeSuspEventsResult::~DescribeSuspEventsResult() void DescribeSuspEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSuspEvents = value["SuspEvents"]["WarningSummary"]; for (auto value : allSuspEvents) diff --git a/sas/src/model/DescribeUserBaselineAuthorizationResult.cc b/sas/src/model/DescribeUserBaselineAuthorizationResult.cc index fc77da2b1..1e310334e 100644 --- a/sas/src/model/DescribeUserBaselineAuthorizationResult.cc +++ b/sas/src/model/DescribeUserBaselineAuthorizationResult.cc @@ -35,10 +35,13 @@ DescribeUserBaselineAuthorizationResult::~DescribeUserBaselineAuthorizationResul void DescribeUserBaselineAuthorizationResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto userBaselineAuthorizationNode = value["UserBaselineAuthorization"]; if(!userBaselineAuthorizationNode["Status"].isNull()) diff --git a/sas/src/model/DescribeVulDetailsResult.cc b/sas/src/model/DescribeVulDetailsResult.cc index e3a9cdd58..76fcdd4c3 100644 --- a/sas/src/model/DescribeVulDetailsResult.cc +++ b/sas/src/model/DescribeVulDetailsResult.cc @@ -35,10 +35,13 @@ DescribeVulDetailsResult::~DescribeVulDetailsResult() void DescribeVulDetailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCves = value["Cves"]["Cve"]; for (auto value : allCves) diff --git a/sas/src/model/DescribeVulListResult.cc b/sas/src/model/DescribeVulListResult.cc index c0389908c..305323731 100644 --- a/sas/src/model/DescribeVulListResult.cc +++ b/sas/src/model/DescribeVulListResult.cc @@ -35,10 +35,13 @@ DescribeVulListResult::~DescribeVulListResult() void DescribeVulListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVulRecords = value["VulRecords"]["VulRecord"]; for (auto value : allVulRecords) diff --git a/sas/src/model/DescribeVulWhitelistResult.cc b/sas/src/model/DescribeVulWhitelistResult.cc index 6c398a25d..2a5d01352 100644 --- a/sas/src/model/DescribeVulWhitelistResult.cc +++ b/sas/src/model/DescribeVulWhitelistResult.cc @@ -35,10 +35,13 @@ DescribeVulWhitelistResult::~DescribeVulWhitelistResult() void DescribeVulWhitelistResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVulWhitelists = value["VulWhitelists"]["VulWhitelist"]; for (auto value : allVulWhitelists) diff --git a/sas/src/model/DescribeWarningMachinesResult.cc b/sas/src/model/DescribeWarningMachinesResult.cc index 8efa0ebfd..035d37a58 100644 --- a/sas/src/model/DescribeWarningMachinesResult.cc +++ b/sas/src/model/DescribeWarningMachinesResult.cc @@ -35,10 +35,13 @@ DescribeWarningMachinesResult::~DescribeWarningMachinesResult() void DescribeWarningMachinesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWarningMachines = value["WarningMachines"]["WarningMachine"]; for (auto value : allWarningMachines) diff --git a/sas/src/model/ModifyAutoDelConfigResult.cc b/sas/src/model/ModifyAutoDelConfigResult.cc index a982f62a1..2db614682 100644 --- a/sas/src/model/ModifyAutoDelConfigResult.cc +++ b/sas/src/model/ModifyAutoDelConfigResult.cc @@ -35,10 +35,13 @@ ModifyAutoDelConfigResult::~ModifyAutoDelConfigResult() void ModifyAutoDelConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifyConcernNecessityResult.cc b/sas/src/model/ModifyConcernNecessityResult.cc index bb6618b70..ce5aaeabe 100644 --- a/sas/src/model/ModifyConcernNecessityResult.cc +++ b/sas/src/model/ModifyConcernNecessityResult.cc @@ -35,10 +35,13 @@ ModifyConcernNecessityResult::~ModifyConcernNecessityResult() void ModifyConcernNecessityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifyCreateVulWhitelistResult.cc b/sas/src/model/ModifyCreateVulWhitelistResult.cc index 31816e80a..841efd4d0 100644 --- a/sas/src/model/ModifyCreateVulWhitelistResult.cc +++ b/sas/src/model/ModifyCreateVulWhitelistResult.cc @@ -35,10 +35,13 @@ ModifyCreateVulWhitelistResult::~ModifyCreateVulWhitelistResult() void ModifyCreateVulWhitelistResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifyDeleteVulWhitelistResult.cc b/sas/src/model/ModifyDeleteVulWhitelistResult.cc index 842161d74..53e353c07 100644 --- a/sas/src/model/ModifyDeleteVulWhitelistResult.cc +++ b/sas/src/model/ModifyDeleteVulWhitelistResult.cc @@ -35,10 +35,13 @@ ModifyDeleteVulWhitelistResult::~ModifyDeleteVulWhitelistResult() void ModifyDeleteVulWhitelistResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifyEmgVulSubmitResult.cc b/sas/src/model/ModifyEmgVulSubmitResult.cc index 7d9b45644..41612fa8e 100644 --- a/sas/src/model/ModifyEmgVulSubmitResult.cc +++ b/sas/src/model/ModifyEmgVulSubmitResult.cc @@ -35,10 +35,13 @@ ModifyEmgVulSubmitResult::~ModifyEmgVulSubmitResult() void ModifyEmgVulSubmitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifyOperateVulResult.cc b/sas/src/model/ModifyOperateVulResult.cc index 2bbfb5160..8a3980f6e 100644 --- a/sas/src/model/ModifyOperateVulResult.cc +++ b/sas/src/model/ModifyOperateVulResult.cc @@ -35,10 +35,13 @@ ModifyOperateVulResult::~ModifyOperateVulResult() void ModifyOperateVulResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifyPushAllTaskResult.cc b/sas/src/model/ModifyPushAllTaskResult.cc index 81f01014c..15be881d0 100644 --- a/sas/src/model/ModifyPushAllTaskResult.cc +++ b/sas/src/model/ModifyPushAllTaskResult.cc @@ -35,10 +35,13 @@ ModifyPushAllTaskResult::~ModifyPushAllTaskResult() void ModifyPushAllTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto pushTaskRspNode = value["PushTaskRsp"]; auto allPushTaskResultList = value["PushTaskResultList"]["pushTaskResult"]; diff --git a/sas/src/model/ModifyRiskCheckStatusResult.cc b/sas/src/model/ModifyRiskCheckStatusResult.cc index 7807888f7..88643dadd 100644 --- a/sas/src/model/ModifyRiskCheckStatusResult.cc +++ b/sas/src/model/ModifyRiskCheckStatusResult.cc @@ -35,10 +35,13 @@ ModifyRiskCheckStatusResult::~ModifyRiskCheckStatusResult() void ModifyRiskCheckStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifyRiskSingleResultStatusResult.cc b/sas/src/model/ModifyRiskSingleResultStatusResult.cc index d39f63fda..0aa9c95e7 100644 --- a/sas/src/model/ModifyRiskSingleResultStatusResult.cc +++ b/sas/src/model/ModifyRiskSingleResultStatusResult.cc @@ -35,10 +35,13 @@ ModifyRiskSingleResultStatusResult::~ModifyRiskSingleResultStatusResult() void ModifyRiskSingleResultStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/ModifySecurityCheckScheduleConfigResult.cc b/sas/src/model/ModifySecurityCheckScheduleConfigResult.cc index bef8a1d21..a9511fb03 100644 --- a/sas/src/model/ModifySecurityCheckScheduleConfigResult.cc +++ b/sas/src/model/ModifySecurityCheckScheduleConfigResult.cc @@ -35,10 +35,13 @@ ModifySecurityCheckScheduleConfigResult::~ModifySecurityCheckScheduleConfigResul void ModifySecurityCheckScheduleConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sas/src/model/StartBaselineSecurityCheckResult.cc b/sas/src/model/StartBaselineSecurityCheckResult.cc index 4f4dc894b..841c4261a 100644 --- a/sas/src/model/StartBaselineSecurityCheckResult.cc +++ b/sas/src/model/StartBaselineSecurityCheckResult.cc @@ -35,10 +35,13 @@ StartBaselineSecurityCheckResult::~StartBaselineSecurityCheckResult() void StartBaselineSecurityCheckResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/CMakeLists.txt b/scdn/CMakeLists.txt index 3f6c6b49d..cbfdc3cdf 100644 --- a/scdn/CMakeLists.txt +++ b/scdn/CMakeLists.txt @@ -23,16 +23,52 @@ set(scdn_public_header set(scdn_public_header_model include/alibabacloud/scdn/model/DescribeScdnRefreshQuotaRequest.h include/alibabacloud/scdn/model/DescribeScdnRefreshQuotaResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainDetailRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainDetailResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainOriginBpsDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainOriginBpsDataResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeBpsDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeBpsDataResult.h + include/alibabacloud/scdn/model/SetScdnDomainCertificateRequest.h + include/alibabacloud/scdn/model/SetScdnDomainCertificateResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.h + include/alibabacloud/scdn/model/DescribeScdnTopDomainsByFlowRequest.h + include/alibabacloud/scdn/model/DescribeScdnTopDomainsByFlowResult.h + include/alibabacloud/scdn/model/PreloadScdnObjectCachesRequest.h + include/alibabacloud/scdn/model/PreloadScdnObjectCachesResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainBpsDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainBpsDataResult.h + include/alibabacloud/scdn/model/AddScdnDomainRequest.h + include/alibabacloud/scdn/model/AddScdnDomainResult.h + include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsRequest.h + include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsResult.h + include/alibabacloud/scdn/model/DeleteScdnDomainRequest.h + include/alibabacloud/scdn/model/DeleteScdnDomainResult.h + include/alibabacloud/scdn/model/StartScdnDomainRequest.h + include/alibabacloud/scdn/model/StartScdnDomainResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainLogRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainLogResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainPvDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainPvDataResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeTrafficDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeTrafficDataResult.h + include/alibabacloud/scdn/model/RefreshScdnObjectCachesRequest.h + include/alibabacloud/scdn/model/RefreshScdnObjectCachesResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainHttpCodeDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainHttpCodeDataResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainCertificateInfoRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainCertificateInfoResult.h + include/alibabacloud/scdn/model/CheckScdnServiceRequest.h + include/alibabacloud/scdn/model/CheckScdnServiceResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainIspDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainIspDataResult.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeByteHitRateDataRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeByteHitRateDataResult.h include/alibabacloud/scdn/model/DescribeScdnDomainTrafficDataRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainTrafficDataResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainDetailRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainDetailResult.h include/alibabacloud/scdn/model/SetDomainServerCertificateRequest.h include/alibabacloud/scdn/model/SetDomainServerCertificateResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainOriginBpsDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainOriginBpsDataResult.h include/alibabacloud/scdn/model/DescribeScdnCertificateListRequest.h include/alibabacloud/scdn/model/DescribeScdnCertificateListResult.h include/alibabacloud/scdn/model/DescribeScdnDomainQpsDataRequest.h @@ -47,72 +83,38 @@ set(scdn_public_header_model include/alibabacloud/scdn/model/DescribeScdnIpInfoResult.h include/alibabacloud/scdn/model/DescribeScdnDomainConfigsRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainConfigsResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeBpsDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeBpsDataResult.h - include/alibabacloud/scdn/model/SetScdnDomainCertificateRequest.h - include/alibabacloud/scdn/model/SetScdnDomainCertificateResult.h include/alibabacloud/scdn/model/BatchDeleteScdnDomainConfigsRequest.h include/alibabacloud/scdn/model/BatchDeleteScdnDomainConfigsResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.h - include/alibabacloud/scdn/model/DescribeScdnTopDomainsByFlowRequest.h - include/alibabacloud/scdn/model/DescribeScdnTopDomainsByFlowResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainBpsDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainBpsDataResult.h - include/alibabacloud/scdn/model/PreloadScdnObjectCachesRequest.h - include/alibabacloud/scdn/model/PreloadScdnObjectCachesResult.h include/alibabacloud/scdn/model/DescribeScdnDomainHitRateDataRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainHitRateDataResult.h include/alibabacloud/scdn/model/DescribeScdnUserDomainsRequest.h include/alibabacloud/scdn/model/DescribeScdnUserDomainsResult.h include/alibabacloud/scdn/model/StopScdnDomainRequest.h include/alibabacloud/scdn/model/StopScdnDomainResult.h - include/alibabacloud/scdn/model/AddScdnDomainRequest.h - include/alibabacloud/scdn/model/AddScdnDomainResult.h include/alibabacloud/scdn/model/DescribeScdnDomainCnameRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainCnameResult.h include/alibabacloud/scdn/model/DescribeScdnCertificateDetailRequest.h include/alibabacloud/scdn/model/DescribeScdnCertificateDetailResult.h - include/alibabacloud/scdn/model/StartScdnDomainRequest.h - include/alibabacloud/scdn/model/StartScdnDomainResult.h - include/alibabacloud/scdn/model/DeleteScdnDomainRequest.h - include/alibabacloud/scdn/model/DeleteScdnDomainResult.h include/alibabacloud/scdn/model/DescribeScdnServiceRequest.h include/alibabacloud/scdn/model/DescribeScdnServiceResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainLogRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainLogResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainPvDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainPvDataResult.h include/alibabacloud/scdn/model/DescribeScdnUserQuotaRequest.h include/alibabacloud/scdn/model/DescribeScdnUserQuotaResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainHttpCodeDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainHttpCodeDataResult.h - include/alibabacloud/scdn/model/RefreshScdnObjectCachesRequest.h - include/alibabacloud/scdn/model/RefreshScdnObjectCachesResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeTrafficDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeTrafficDataResult.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeQpsDataRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeQpsDataResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainCertificateInfoRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainCertificateInfoResult.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeHttpCodeDataRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeHttpCodeDataResult.h - include/alibabacloud/scdn/model/CheckScdnServiceRequest.h - include/alibabacloud/scdn/model/CheckScdnServiceResult.h include/alibabacloud/scdn/model/BatchUpdateScdnDomainRequest.h include/alibabacloud/scdn/model/BatchUpdateScdnDomainResult.h - include/alibabacloud/scdn/model/UpdateScdnDomainRequest.h - include/alibabacloud/scdn/model/UpdateScdnDomainResult.h include/alibabacloud/scdn/model/DescribeScdnDomainOriginTrafficDataRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainOriginTrafficDataResult.h + include/alibabacloud/scdn/model/UpdateScdnDomainRequest.h + include/alibabacloud/scdn/model/UpdateScdnDomainResult.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeReqHitRateDataRequest.h include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeReqHitRateDataResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcBpsDataResult.h - include/alibabacloud/scdn/model/DescribeScdnDomainIspDataRequest.h - include/alibabacloud/scdn/model/DescribeScdnDomainIspDataResult.h include/alibabacloud/scdn/model/DescribeScdnRefreshTasksRequest.h include/alibabacloud/scdn/model/DescribeScdnRefreshTasksResult.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.h + include/alibabacloud/scdn/model/DescribeScdnDomainRealTimeSrcBpsDataResult.h include/alibabacloud/scdn/model/OpenScdnServiceRequest.h include/alibabacloud/scdn/model/OpenScdnServiceResult.h include/alibabacloud/scdn/model/DescribeScdnDomainTopUrlVisitRequest.h @@ -122,16 +124,52 @@ set(scdn_src src/ScdnClient.cc src/model/DescribeScdnRefreshQuotaRequest.cc src/model/DescribeScdnRefreshQuotaResult.cc + src/model/DescribeScdnDomainDetailRequest.cc + src/model/DescribeScdnDomainDetailResult.cc + src/model/DescribeScdnDomainOriginBpsDataRequest.cc + src/model/DescribeScdnDomainOriginBpsDataResult.cc + src/model/DescribeScdnDomainRealTimeBpsDataRequest.cc + src/model/DescribeScdnDomainRealTimeBpsDataResult.cc + src/model/SetScdnDomainCertificateRequest.cc + src/model/SetScdnDomainCertificateResult.cc + src/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.cc + src/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.cc + src/model/DescribeScdnTopDomainsByFlowRequest.cc + src/model/DescribeScdnTopDomainsByFlowResult.cc + src/model/PreloadScdnObjectCachesRequest.cc + src/model/PreloadScdnObjectCachesResult.cc + src/model/DescribeScdnDomainBpsDataRequest.cc + src/model/DescribeScdnDomainBpsDataResult.cc + src/model/AddScdnDomainRequest.cc + src/model/AddScdnDomainResult.cc + src/model/BatchSetScdnDomainConfigsRequest.cc + src/model/BatchSetScdnDomainConfigsResult.cc + src/model/DeleteScdnDomainRequest.cc + src/model/DeleteScdnDomainResult.cc + src/model/StartScdnDomainRequest.cc + src/model/StartScdnDomainResult.cc + src/model/DescribeScdnDomainLogRequest.cc + src/model/DescribeScdnDomainLogResult.cc + src/model/DescribeScdnDomainPvDataRequest.cc + src/model/DescribeScdnDomainPvDataResult.cc + src/model/DescribeScdnDomainRealTimeTrafficDataRequest.cc + src/model/DescribeScdnDomainRealTimeTrafficDataResult.cc + src/model/RefreshScdnObjectCachesRequest.cc + src/model/RefreshScdnObjectCachesResult.cc + src/model/DescribeScdnDomainHttpCodeDataRequest.cc + src/model/DescribeScdnDomainHttpCodeDataResult.cc + src/model/DescribeScdnDomainCertificateInfoRequest.cc + src/model/DescribeScdnDomainCertificateInfoResult.cc + src/model/CheckScdnServiceRequest.cc + src/model/CheckScdnServiceResult.cc + src/model/DescribeScdnDomainIspDataRequest.cc + src/model/DescribeScdnDomainIspDataResult.cc src/model/DescribeScdnDomainRealTimeByteHitRateDataRequest.cc src/model/DescribeScdnDomainRealTimeByteHitRateDataResult.cc src/model/DescribeScdnDomainTrafficDataRequest.cc src/model/DescribeScdnDomainTrafficDataResult.cc - src/model/DescribeScdnDomainDetailRequest.cc - src/model/DescribeScdnDomainDetailResult.cc src/model/SetDomainServerCertificateRequest.cc src/model/SetDomainServerCertificateResult.cc - src/model/DescribeScdnDomainOriginBpsDataRequest.cc - src/model/DescribeScdnDomainOriginBpsDataResult.cc src/model/DescribeScdnCertificateListRequest.cc src/model/DescribeScdnCertificateListResult.cc src/model/DescribeScdnDomainQpsDataRequest.cc @@ -146,72 +184,38 @@ set(scdn_src src/model/DescribeScdnIpInfoResult.cc src/model/DescribeScdnDomainConfigsRequest.cc src/model/DescribeScdnDomainConfigsResult.cc - src/model/DescribeScdnDomainRealTimeBpsDataRequest.cc - src/model/DescribeScdnDomainRealTimeBpsDataResult.cc - src/model/SetScdnDomainCertificateRequest.cc - src/model/SetScdnDomainCertificateResult.cc src/model/BatchDeleteScdnDomainConfigsRequest.cc src/model/BatchDeleteScdnDomainConfigsResult.cc - src/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.cc - src/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.cc - src/model/DescribeScdnTopDomainsByFlowRequest.cc - src/model/DescribeScdnTopDomainsByFlowResult.cc - src/model/DescribeScdnDomainBpsDataRequest.cc - src/model/DescribeScdnDomainBpsDataResult.cc - src/model/PreloadScdnObjectCachesRequest.cc - src/model/PreloadScdnObjectCachesResult.cc src/model/DescribeScdnDomainHitRateDataRequest.cc src/model/DescribeScdnDomainHitRateDataResult.cc src/model/DescribeScdnUserDomainsRequest.cc src/model/DescribeScdnUserDomainsResult.cc src/model/StopScdnDomainRequest.cc src/model/StopScdnDomainResult.cc - src/model/AddScdnDomainRequest.cc - src/model/AddScdnDomainResult.cc src/model/DescribeScdnDomainCnameRequest.cc src/model/DescribeScdnDomainCnameResult.cc src/model/DescribeScdnCertificateDetailRequest.cc src/model/DescribeScdnCertificateDetailResult.cc - src/model/StartScdnDomainRequest.cc - src/model/StartScdnDomainResult.cc - src/model/DeleteScdnDomainRequest.cc - src/model/DeleteScdnDomainResult.cc src/model/DescribeScdnServiceRequest.cc src/model/DescribeScdnServiceResult.cc - src/model/DescribeScdnDomainLogRequest.cc - src/model/DescribeScdnDomainLogResult.cc - src/model/DescribeScdnDomainPvDataRequest.cc - src/model/DescribeScdnDomainPvDataResult.cc src/model/DescribeScdnUserQuotaRequest.cc src/model/DescribeScdnUserQuotaResult.cc - src/model/DescribeScdnDomainHttpCodeDataRequest.cc - src/model/DescribeScdnDomainHttpCodeDataResult.cc - src/model/RefreshScdnObjectCachesRequest.cc - src/model/RefreshScdnObjectCachesResult.cc - src/model/DescribeScdnDomainRealTimeTrafficDataRequest.cc - src/model/DescribeScdnDomainRealTimeTrafficDataResult.cc src/model/DescribeScdnDomainRealTimeQpsDataRequest.cc src/model/DescribeScdnDomainRealTimeQpsDataResult.cc - src/model/DescribeScdnDomainCertificateInfoRequest.cc - src/model/DescribeScdnDomainCertificateInfoResult.cc src/model/DescribeScdnDomainRealTimeHttpCodeDataRequest.cc src/model/DescribeScdnDomainRealTimeHttpCodeDataResult.cc - src/model/CheckScdnServiceRequest.cc - src/model/CheckScdnServiceResult.cc src/model/BatchUpdateScdnDomainRequest.cc src/model/BatchUpdateScdnDomainResult.cc - src/model/UpdateScdnDomainRequest.cc - src/model/UpdateScdnDomainResult.cc src/model/DescribeScdnDomainOriginTrafficDataRequest.cc src/model/DescribeScdnDomainOriginTrafficDataResult.cc + src/model/UpdateScdnDomainRequest.cc + src/model/UpdateScdnDomainResult.cc src/model/DescribeScdnDomainRealTimeReqHitRateDataRequest.cc src/model/DescribeScdnDomainRealTimeReqHitRateDataResult.cc - src/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.cc - src/model/DescribeScdnDomainRealTimeSrcBpsDataResult.cc - src/model/DescribeScdnDomainIspDataRequest.cc - src/model/DescribeScdnDomainIspDataResult.cc src/model/DescribeScdnRefreshTasksRequest.cc src/model/DescribeScdnRefreshTasksResult.cc + src/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.cc + src/model/DescribeScdnDomainRealTimeSrcBpsDataResult.cc src/model/OpenScdnServiceRequest.cc src/model/OpenScdnServiceResult.cc src/model/DescribeScdnDomainTopUrlVisitRequest.cc diff --git a/scdn/include/alibabacloud/scdn/ScdnClient.h b/scdn/include/alibabacloud/scdn/ScdnClient.h index 3436c9304..61d7fb628 100644 --- a/scdn/include/alibabacloud/scdn/ScdnClient.h +++ b/scdn/include/alibabacloud/scdn/ScdnClient.h @@ -24,16 +24,52 @@ #include "ScdnExport.h" #include "model/DescribeScdnRefreshQuotaRequest.h" #include "model/DescribeScdnRefreshQuotaResult.h" +#include "model/DescribeScdnDomainDetailRequest.h" +#include "model/DescribeScdnDomainDetailResult.h" +#include "model/DescribeScdnDomainOriginBpsDataRequest.h" +#include "model/DescribeScdnDomainOriginBpsDataResult.h" +#include "model/DescribeScdnDomainRealTimeBpsDataRequest.h" +#include "model/DescribeScdnDomainRealTimeBpsDataResult.h" +#include "model/SetScdnDomainCertificateRequest.h" +#include "model/SetScdnDomainCertificateResult.h" +#include "model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.h" +#include "model/DescribeScdnDomainRealTimeSrcTrafficDataResult.h" +#include "model/DescribeScdnTopDomainsByFlowRequest.h" +#include "model/DescribeScdnTopDomainsByFlowResult.h" +#include "model/PreloadScdnObjectCachesRequest.h" +#include "model/PreloadScdnObjectCachesResult.h" +#include "model/DescribeScdnDomainBpsDataRequest.h" +#include "model/DescribeScdnDomainBpsDataResult.h" +#include "model/AddScdnDomainRequest.h" +#include "model/AddScdnDomainResult.h" +#include "model/BatchSetScdnDomainConfigsRequest.h" +#include "model/BatchSetScdnDomainConfigsResult.h" +#include "model/DeleteScdnDomainRequest.h" +#include "model/DeleteScdnDomainResult.h" +#include "model/StartScdnDomainRequest.h" +#include "model/StartScdnDomainResult.h" +#include "model/DescribeScdnDomainLogRequest.h" +#include "model/DescribeScdnDomainLogResult.h" +#include "model/DescribeScdnDomainPvDataRequest.h" +#include "model/DescribeScdnDomainPvDataResult.h" +#include "model/DescribeScdnDomainRealTimeTrafficDataRequest.h" +#include "model/DescribeScdnDomainRealTimeTrafficDataResult.h" +#include "model/RefreshScdnObjectCachesRequest.h" +#include "model/RefreshScdnObjectCachesResult.h" +#include "model/DescribeScdnDomainHttpCodeDataRequest.h" +#include "model/DescribeScdnDomainHttpCodeDataResult.h" +#include "model/DescribeScdnDomainCertificateInfoRequest.h" +#include "model/DescribeScdnDomainCertificateInfoResult.h" +#include "model/CheckScdnServiceRequest.h" +#include "model/CheckScdnServiceResult.h" +#include "model/DescribeScdnDomainIspDataRequest.h" +#include "model/DescribeScdnDomainIspDataResult.h" #include "model/DescribeScdnDomainRealTimeByteHitRateDataRequest.h" #include "model/DescribeScdnDomainRealTimeByteHitRateDataResult.h" #include "model/DescribeScdnDomainTrafficDataRequest.h" #include "model/DescribeScdnDomainTrafficDataResult.h" -#include "model/DescribeScdnDomainDetailRequest.h" -#include "model/DescribeScdnDomainDetailResult.h" #include "model/SetDomainServerCertificateRequest.h" #include "model/SetDomainServerCertificateResult.h" -#include "model/DescribeScdnDomainOriginBpsDataRequest.h" -#include "model/DescribeScdnDomainOriginBpsDataResult.h" #include "model/DescribeScdnCertificateListRequest.h" #include "model/DescribeScdnCertificateListResult.h" #include "model/DescribeScdnDomainQpsDataRequest.h" @@ -48,72 +84,38 @@ #include "model/DescribeScdnIpInfoResult.h" #include "model/DescribeScdnDomainConfigsRequest.h" #include "model/DescribeScdnDomainConfigsResult.h" -#include "model/DescribeScdnDomainRealTimeBpsDataRequest.h" -#include "model/DescribeScdnDomainRealTimeBpsDataResult.h" -#include "model/SetScdnDomainCertificateRequest.h" -#include "model/SetScdnDomainCertificateResult.h" #include "model/BatchDeleteScdnDomainConfigsRequest.h" #include "model/BatchDeleteScdnDomainConfigsResult.h" -#include "model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.h" -#include "model/DescribeScdnDomainRealTimeSrcTrafficDataResult.h" -#include "model/DescribeScdnTopDomainsByFlowRequest.h" -#include "model/DescribeScdnTopDomainsByFlowResult.h" -#include "model/DescribeScdnDomainBpsDataRequest.h" -#include "model/DescribeScdnDomainBpsDataResult.h" -#include "model/PreloadScdnObjectCachesRequest.h" -#include "model/PreloadScdnObjectCachesResult.h" #include "model/DescribeScdnDomainHitRateDataRequest.h" #include "model/DescribeScdnDomainHitRateDataResult.h" #include "model/DescribeScdnUserDomainsRequest.h" #include "model/DescribeScdnUserDomainsResult.h" #include "model/StopScdnDomainRequest.h" #include "model/StopScdnDomainResult.h" -#include "model/AddScdnDomainRequest.h" -#include "model/AddScdnDomainResult.h" #include "model/DescribeScdnDomainCnameRequest.h" #include "model/DescribeScdnDomainCnameResult.h" #include "model/DescribeScdnCertificateDetailRequest.h" #include "model/DescribeScdnCertificateDetailResult.h" -#include "model/StartScdnDomainRequest.h" -#include "model/StartScdnDomainResult.h" -#include "model/DeleteScdnDomainRequest.h" -#include "model/DeleteScdnDomainResult.h" #include "model/DescribeScdnServiceRequest.h" #include "model/DescribeScdnServiceResult.h" -#include "model/DescribeScdnDomainLogRequest.h" -#include "model/DescribeScdnDomainLogResult.h" -#include "model/DescribeScdnDomainPvDataRequest.h" -#include "model/DescribeScdnDomainPvDataResult.h" #include "model/DescribeScdnUserQuotaRequest.h" #include "model/DescribeScdnUserQuotaResult.h" -#include "model/DescribeScdnDomainHttpCodeDataRequest.h" -#include "model/DescribeScdnDomainHttpCodeDataResult.h" -#include "model/RefreshScdnObjectCachesRequest.h" -#include "model/RefreshScdnObjectCachesResult.h" -#include "model/DescribeScdnDomainRealTimeTrafficDataRequest.h" -#include "model/DescribeScdnDomainRealTimeTrafficDataResult.h" #include "model/DescribeScdnDomainRealTimeQpsDataRequest.h" #include "model/DescribeScdnDomainRealTimeQpsDataResult.h" -#include "model/DescribeScdnDomainCertificateInfoRequest.h" -#include "model/DescribeScdnDomainCertificateInfoResult.h" #include "model/DescribeScdnDomainRealTimeHttpCodeDataRequest.h" #include "model/DescribeScdnDomainRealTimeHttpCodeDataResult.h" -#include "model/CheckScdnServiceRequest.h" -#include "model/CheckScdnServiceResult.h" #include "model/BatchUpdateScdnDomainRequest.h" #include "model/BatchUpdateScdnDomainResult.h" -#include "model/UpdateScdnDomainRequest.h" -#include "model/UpdateScdnDomainResult.h" #include "model/DescribeScdnDomainOriginTrafficDataRequest.h" #include "model/DescribeScdnDomainOriginTrafficDataResult.h" +#include "model/UpdateScdnDomainRequest.h" +#include "model/UpdateScdnDomainResult.h" #include "model/DescribeScdnDomainRealTimeReqHitRateDataRequest.h" #include "model/DescribeScdnDomainRealTimeReqHitRateDataResult.h" -#include "model/DescribeScdnDomainRealTimeSrcBpsDataRequest.h" -#include "model/DescribeScdnDomainRealTimeSrcBpsDataResult.h" -#include "model/DescribeScdnDomainIspDataRequest.h" -#include "model/DescribeScdnDomainIspDataResult.h" #include "model/DescribeScdnRefreshTasksRequest.h" #include "model/DescribeScdnRefreshTasksResult.h" +#include "model/DescribeScdnDomainRealTimeSrcBpsDataRequest.h" +#include "model/DescribeScdnDomainRealTimeSrcBpsDataResult.h" #include "model/OpenScdnServiceRequest.h" #include "model/OpenScdnServiceResult.h" #include "model/DescribeScdnDomainTopUrlVisitRequest.h" @@ -130,21 +132,75 @@ namespace AlibabaCloud typedef Outcome DescribeScdnRefreshQuotaOutcome; typedef std::future DescribeScdnRefreshQuotaOutcomeCallable; typedef std::function&)> DescribeScdnRefreshQuotaAsyncHandler; + typedef Outcome DescribeScdnDomainDetailOutcome; + typedef std::future DescribeScdnDomainDetailOutcomeCallable; + typedef std::function&)> DescribeScdnDomainDetailAsyncHandler; + typedef Outcome DescribeScdnDomainOriginBpsDataOutcome; + typedef std::future DescribeScdnDomainOriginBpsDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainOriginBpsDataAsyncHandler; + typedef Outcome DescribeScdnDomainRealTimeBpsDataOutcome; + typedef std::future DescribeScdnDomainRealTimeBpsDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainRealTimeBpsDataAsyncHandler; + typedef Outcome SetScdnDomainCertificateOutcome; + typedef std::future SetScdnDomainCertificateOutcomeCallable; + typedef std::function&)> SetScdnDomainCertificateAsyncHandler; + typedef Outcome DescribeScdnDomainRealTimeSrcTrafficDataOutcome; + typedef std::future DescribeScdnDomainRealTimeSrcTrafficDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainRealTimeSrcTrafficDataAsyncHandler; + typedef Outcome DescribeScdnTopDomainsByFlowOutcome; + typedef std::future DescribeScdnTopDomainsByFlowOutcomeCallable; + typedef std::function&)> DescribeScdnTopDomainsByFlowAsyncHandler; + typedef Outcome PreloadScdnObjectCachesOutcome; + typedef std::future PreloadScdnObjectCachesOutcomeCallable; + typedef std::function&)> PreloadScdnObjectCachesAsyncHandler; + typedef Outcome DescribeScdnDomainBpsDataOutcome; + typedef std::future DescribeScdnDomainBpsDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainBpsDataAsyncHandler; + typedef Outcome AddScdnDomainOutcome; + typedef std::future AddScdnDomainOutcomeCallable; + typedef std::function&)> AddScdnDomainAsyncHandler; + typedef Outcome BatchSetScdnDomainConfigsOutcome; + typedef std::future BatchSetScdnDomainConfigsOutcomeCallable; + typedef std::function&)> BatchSetScdnDomainConfigsAsyncHandler; + typedef Outcome DeleteScdnDomainOutcome; + typedef std::future DeleteScdnDomainOutcomeCallable; + typedef std::function&)> DeleteScdnDomainAsyncHandler; + typedef Outcome StartScdnDomainOutcome; + typedef std::future StartScdnDomainOutcomeCallable; + typedef std::function&)> StartScdnDomainAsyncHandler; + typedef Outcome DescribeScdnDomainLogOutcome; + typedef std::future DescribeScdnDomainLogOutcomeCallable; + typedef std::function&)> DescribeScdnDomainLogAsyncHandler; + typedef Outcome DescribeScdnDomainPvDataOutcome; + typedef std::future DescribeScdnDomainPvDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainPvDataAsyncHandler; + typedef Outcome DescribeScdnDomainRealTimeTrafficDataOutcome; + typedef std::future DescribeScdnDomainRealTimeTrafficDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainRealTimeTrafficDataAsyncHandler; + typedef Outcome RefreshScdnObjectCachesOutcome; + typedef std::future RefreshScdnObjectCachesOutcomeCallable; + typedef std::function&)> RefreshScdnObjectCachesAsyncHandler; + typedef Outcome DescribeScdnDomainHttpCodeDataOutcome; + typedef std::future DescribeScdnDomainHttpCodeDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainHttpCodeDataAsyncHandler; + typedef Outcome DescribeScdnDomainCertificateInfoOutcome; + typedef std::future DescribeScdnDomainCertificateInfoOutcomeCallable; + typedef std::function&)> DescribeScdnDomainCertificateInfoAsyncHandler; + typedef Outcome CheckScdnServiceOutcome; + typedef std::future CheckScdnServiceOutcomeCallable; + typedef std::function&)> CheckScdnServiceAsyncHandler; + typedef Outcome DescribeScdnDomainIspDataOutcome; + typedef std::future DescribeScdnDomainIspDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainIspDataAsyncHandler; typedef Outcome DescribeScdnDomainRealTimeByteHitRateDataOutcome; typedef std::future DescribeScdnDomainRealTimeByteHitRateDataOutcomeCallable; typedef std::function&)> DescribeScdnDomainRealTimeByteHitRateDataAsyncHandler; typedef Outcome DescribeScdnDomainTrafficDataOutcome; typedef std::future DescribeScdnDomainTrafficDataOutcomeCallable; typedef std::function&)> DescribeScdnDomainTrafficDataAsyncHandler; - typedef Outcome DescribeScdnDomainDetailOutcome; - typedef std::future DescribeScdnDomainDetailOutcomeCallable; - typedef std::function&)> DescribeScdnDomainDetailAsyncHandler; typedef Outcome SetDomainServerCertificateOutcome; typedef std::future SetDomainServerCertificateOutcomeCallable; typedef std::function&)> SetDomainServerCertificateAsyncHandler; - typedef Outcome DescribeScdnDomainOriginBpsDataOutcome; - typedef std::future DescribeScdnDomainOriginBpsDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainOriginBpsDataAsyncHandler; typedef Outcome DescribeScdnCertificateListOutcome; typedef std::future DescribeScdnCertificateListOutcomeCallable; typedef std::function&)> DescribeScdnCertificateListAsyncHandler; @@ -166,27 +222,9 @@ namespace AlibabaCloud typedef Outcome DescribeScdnDomainConfigsOutcome; typedef std::future DescribeScdnDomainConfigsOutcomeCallable; typedef std::function&)> DescribeScdnDomainConfigsAsyncHandler; - typedef Outcome DescribeScdnDomainRealTimeBpsDataOutcome; - typedef std::future DescribeScdnDomainRealTimeBpsDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainRealTimeBpsDataAsyncHandler; - typedef Outcome SetScdnDomainCertificateOutcome; - typedef std::future SetScdnDomainCertificateOutcomeCallable; - typedef std::function&)> SetScdnDomainCertificateAsyncHandler; typedef Outcome BatchDeleteScdnDomainConfigsOutcome; typedef std::future BatchDeleteScdnDomainConfigsOutcomeCallable; typedef std::function&)> BatchDeleteScdnDomainConfigsAsyncHandler; - typedef Outcome DescribeScdnDomainRealTimeSrcTrafficDataOutcome; - typedef std::future DescribeScdnDomainRealTimeSrcTrafficDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainRealTimeSrcTrafficDataAsyncHandler; - typedef Outcome DescribeScdnTopDomainsByFlowOutcome; - typedef std::future DescribeScdnTopDomainsByFlowOutcomeCallable; - typedef std::function&)> DescribeScdnTopDomainsByFlowAsyncHandler; - typedef Outcome DescribeScdnDomainBpsDataOutcome; - typedef std::future DescribeScdnDomainBpsDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainBpsDataAsyncHandler; - typedef Outcome PreloadScdnObjectCachesOutcome; - typedef std::future PreloadScdnObjectCachesOutcomeCallable; - typedef std::function&)> PreloadScdnObjectCachesAsyncHandler; typedef Outcome DescribeScdnDomainHitRateDataOutcome; typedef std::future DescribeScdnDomainHitRateDataOutcomeCallable; typedef std::function&)> DescribeScdnDomainHitRateDataAsyncHandler; @@ -196,75 +234,42 @@ namespace AlibabaCloud typedef Outcome StopScdnDomainOutcome; typedef std::future StopScdnDomainOutcomeCallable; typedef std::function&)> StopScdnDomainAsyncHandler; - typedef Outcome AddScdnDomainOutcome; - typedef std::future AddScdnDomainOutcomeCallable; - typedef std::function&)> AddScdnDomainAsyncHandler; typedef Outcome DescribeScdnDomainCnameOutcome; typedef std::future DescribeScdnDomainCnameOutcomeCallable; typedef std::function&)> DescribeScdnDomainCnameAsyncHandler; typedef Outcome DescribeScdnCertificateDetailOutcome; typedef std::future DescribeScdnCertificateDetailOutcomeCallable; typedef std::function&)> DescribeScdnCertificateDetailAsyncHandler; - typedef Outcome StartScdnDomainOutcome; - typedef std::future StartScdnDomainOutcomeCallable; - typedef std::function&)> StartScdnDomainAsyncHandler; - typedef Outcome DeleteScdnDomainOutcome; - typedef std::future DeleteScdnDomainOutcomeCallable; - typedef std::function&)> DeleteScdnDomainAsyncHandler; typedef Outcome DescribeScdnServiceOutcome; typedef std::future DescribeScdnServiceOutcomeCallable; typedef std::function&)> DescribeScdnServiceAsyncHandler; - typedef Outcome DescribeScdnDomainLogOutcome; - typedef std::future DescribeScdnDomainLogOutcomeCallable; - typedef std::function&)> DescribeScdnDomainLogAsyncHandler; - typedef Outcome DescribeScdnDomainPvDataOutcome; - typedef std::future DescribeScdnDomainPvDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainPvDataAsyncHandler; typedef Outcome DescribeScdnUserQuotaOutcome; typedef std::future DescribeScdnUserQuotaOutcomeCallable; typedef std::function&)> DescribeScdnUserQuotaAsyncHandler; - typedef Outcome DescribeScdnDomainHttpCodeDataOutcome; - typedef std::future DescribeScdnDomainHttpCodeDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainHttpCodeDataAsyncHandler; - typedef Outcome RefreshScdnObjectCachesOutcome; - typedef std::future RefreshScdnObjectCachesOutcomeCallable; - typedef std::function&)> RefreshScdnObjectCachesAsyncHandler; - typedef Outcome DescribeScdnDomainRealTimeTrafficDataOutcome; - typedef std::future DescribeScdnDomainRealTimeTrafficDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainRealTimeTrafficDataAsyncHandler; typedef Outcome DescribeScdnDomainRealTimeQpsDataOutcome; typedef std::future DescribeScdnDomainRealTimeQpsDataOutcomeCallable; typedef std::function&)> DescribeScdnDomainRealTimeQpsDataAsyncHandler; - typedef Outcome DescribeScdnDomainCertificateInfoOutcome; - typedef std::future DescribeScdnDomainCertificateInfoOutcomeCallable; - typedef std::function&)> DescribeScdnDomainCertificateInfoAsyncHandler; typedef Outcome DescribeScdnDomainRealTimeHttpCodeDataOutcome; typedef std::future DescribeScdnDomainRealTimeHttpCodeDataOutcomeCallable; typedef std::function&)> DescribeScdnDomainRealTimeHttpCodeDataAsyncHandler; - typedef Outcome CheckScdnServiceOutcome; - typedef std::future CheckScdnServiceOutcomeCallable; - typedef std::function&)> CheckScdnServiceAsyncHandler; typedef Outcome BatchUpdateScdnDomainOutcome; typedef std::future BatchUpdateScdnDomainOutcomeCallable; typedef std::function&)> BatchUpdateScdnDomainAsyncHandler; - typedef Outcome UpdateScdnDomainOutcome; - typedef std::future UpdateScdnDomainOutcomeCallable; - typedef std::function&)> UpdateScdnDomainAsyncHandler; typedef Outcome DescribeScdnDomainOriginTrafficDataOutcome; typedef std::future DescribeScdnDomainOriginTrafficDataOutcomeCallable; typedef std::function&)> DescribeScdnDomainOriginTrafficDataAsyncHandler; + typedef Outcome UpdateScdnDomainOutcome; + typedef std::future UpdateScdnDomainOutcomeCallable; + typedef std::function&)> UpdateScdnDomainAsyncHandler; typedef Outcome DescribeScdnDomainRealTimeReqHitRateDataOutcome; typedef std::future DescribeScdnDomainRealTimeReqHitRateDataOutcomeCallable; typedef std::function&)> DescribeScdnDomainRealTimeReqHitRateDataAsyncHandler; - typedef Outcome DescribeScdnDomainRealTimeSrcBpsDataOutcome; - typedef std::future DescribeScdnDomainRealTimeSrcBpsDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainRealTimeSrcBpsDataAsyncHandler; - typedef Outcome DescribeScdnDomainIspDataOutcome; - typedef std::future DescribeScdnDomainIspDataOutcomeCallable; - typedef std::function&)> DescribeScdnDomainIspDataAsyncHandler; typedef Outcome DescribeScdnRefreshTasksOutcome; typedef std::future DescribeScdnRefreshTasksOutcomeCallable; typedef std::function&)> DescribeScdnRefreshTasksAsyncHandler; + typedef Outcome DescribeScdnDomainRealTimeSrcBpsDataOutcome; + typedef std::future DescribeScdnDomainRealTimeSrcBpsDataOutcomeCallable; + typedef std::function&)> DescribeScdnDomainRealTimeSrcBpsDataAsyncHandler; typedef Outcome OpenScdnServiceOutcome; typedef std::future OpenScdnServiceOutcomeCallable; typedef std::function&)> OpenScdnServiceAsyncHandler; @@ -279,21 +284,75 @@ namespace AlibabaCloud DescribeScdnRefreshQuotaOutcome describeScdnRefreshQuota(const Model::DescribeScdnRefreshQuotaRequest &request)const; void describeScdnRefreshQuotaAsync(const Model::DescribeScdnRefreshQuotaRequest& request, const DescribeScdnRefreshQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnRefreshQuotaOutcomeCallable describeScdnRefreshQuotaCallable(const Model::DescribeScdnRefreshQuotaRequest& request) const; + DescribeScdnDomainDetailOutcome describeScdnDomainDetail(const Model::DescribeScdnDomainDetailRequest &request)const; + void describeScdnDomainDetailAsync(const Model::DescribeScdnDomainDetailRequest& request, const DescribeScdnDomainDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainDetailOutcomeCallable describeScdnDomainDetailCallable(const Model::DescribeScdnDomainDetailRequest& request) const; + DescribeScdnDomainOriginBpsDataOutcome describeScdnDomainOriginBpsData(const Model::DescribeScdnDomainOriginBpsDataRequest &request)const; + void describeScdnDomainOriginBpsDataAsync(const Model::DescribeScdnDomainOriginBpsDataRequest& request, const DescribeScdnDomainOriginBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainOriginBpsDataOutcomeCallable describeScdnDomainOriginBpsDataCallable(const Model::DescribeScdnDomainOriginBpsDataRequest& request) const; + DescribeScdnDomainRealTimeBpsDataOutcome describeScdnDomainRealTimeBpsData(const Model::DescribeScdnDomainRealTimeBpsDataRequest &request)const; + void describeScdnDomainRealTimeBpsDataAsync(const Model::DescribeScdnDomainRealTimeBpsDataRequest& request, const DescribeScdnDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainRealTimeBpsDataOutcomeCallable describeScdnDomainRealTimeBpsDataCallable(const Model::DescribeScdnDomainRealTimeBpsDataRequest& request) const; + SetScdnDomainCertificateOutcome setScdnDomainCertificate(const Model::SetScdnDomainCertificateRequest &request)const; + void setScdnDomainCertificateAsync(const Model::SetScdnDomainCertificateRequest& request, const SetScdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetScdnDomainCertificateOutcomeCallable setScdnDomainCertificateCallable(const Model::SetScdnDomainCertificateRequest& request) const; + DescribeScdnDomainRealTimeSrcTrafficDataOutcome describeScdnDomainRealTimeSrcTrafficData(const Model::DescribeScdnDomainRealTimeSrcTrafficDataRequest &request)const; + void describeScdnDomainRealTimeSrcTrafficDataAsync(const Model::DescribeScdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeScdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainRealTimeSrcTrafficDataOutcomeCallable describeScdnDomainRealTimeSrcTrafficDataCallable(const Model::DescribeScdnDomainRealTimeSrcTrafficDataRequest& request) const; + DescribeScdnTopDomainsByFlowOutcome describeScdnTopDomainsByFlow(const Model::DescribeScdnTopDomainsByFlowRequest &request)const; + void describeScdnTopDomainsByFlowAsync(const Model::DescribeScdnTopDomainsByFlowRequest& request, const DescribeScdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnTopDomainsByFlowOutcomeCallable describeScdnTopDomainsByFlowCallable(const Model::DescribeScdnTopDomainsByFlowRequest& request) const; + PreloadScdnObjectCachesOutcome preloadScdnObjectCaches(const Model::PreloadScdnObjectCachesRequest &request)const; + void preloadScdnObjectCachesAsync(const Model::PreloadScdnObjectCachesRequest& request, const PreloadScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreloadScdnObjectCachesOutcomeCallable preloadScdnObjectCachesCallable(const Model::PreloadScdnObjectCachesRequest& request) const; + DescribeScdnDomainBpsDataOutcome describeScdnDomainBpsData(const Model::DescribeScdnDomainBpsDataRequest &request)const; + void describeScdnDomainBpsDataAsync(const Model::DescribeScdnDomainBpsDataRequest& request, const DescribeScdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainBpsDataOutcomeCallable describeScdnDomainBpsDataCallable(const Model::DescribeScdnDomainBpsDataRequest& request) const; + AddScdnDomainOutcome addScdnDomain(const Model::AddScdnDomainRequest &request)const; + void addScdnDomainAsync(const Model::AddScdnDomainRequest& request, const AddScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddScdnDomainOutcomeCallable addScdnDomainCallable(const Model::AddScdnDomainRequest& request) const; + BatchSetScdnDomainConfigsOutcome batchSetScdnDomainConfigs(const Model::BatchSetScdnDomainConfigsRequest &request)const; + void batchSetScdnDomainConfigsAsync(const Model::BatchSetScdnDomainConfigsRequest& request, const BatchSetScdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchSetScdnDomainConfigsOutcomeCallable batchSetScdnDomainConfigsCallable(const Model::BatchSetScdnDomainConfigsRequest& request) const; + DeleteScdnDomainOutcome deleteScdnDomain(const Model::DeleteScdnDomainRequest &request)const; + void deleteScdnDomainAsync(const Model::DeleteScdnDomainRequest& request, const DeleteScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteScdnDomainOutcomeCallable deleteScdnDomainCallable(const Model::DeleteScdnDomainRequest& request) const; + StartScdnDomainOutcome startScdnDomain(const Model::StartScdnDomainRequest &request)const; + void startScdnDomainAsync(const Model::StartScdnDomainRequest& request, const StartScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartScdnDomainOutcomeCallable startScdnDomainCallable(const Model::StartScdnDomainRequest& request) const; + DescribeScdnDomainLogOutcome describeScdnDomainLog(const Model::DescribeScdnDomainLogRequest &request)const; + void describeScdnDomainLogAsync(const Model::DescribeScdnDomainLogRequest& request, const DescribeScdnDomainLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainLogOutcomeCallable describeScdnDomainLogCallable(const Model::DescribeScdnDomainLogRequest& request) const; + DescribeScdnDomainPvDataOutcome describeScdnDomainPvData(const Model::DescribeScdnDomainPvDataRequest &request)const; + void describeScdnDomainPvDataAsync(const Model::DescribeScdnDomainPvDataRequest& request, const DescribeScdnDomainPvDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainPvDataOutcomeCallable describeScdnDomainPvDataCallable(const Model::DescribeScdnDomainPvDataRequest& request) const; + DescribeScdnDomainRealTimeTrafficDataOutcome describeScdnDomainRealTimeTrafficData(const Model::DescribeScdnDomainRealTimeTrafficDataRequest &request)const; + void describeScdnDomainRealTimeTrafficDataAsync(const Model::DescribeScdnDomainRealTimeTrafficDataRequest& request, const DescribeScdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainRealTimeTrafficDataOutcomeCallable describeScdnDomainRealTimeTrafficDataCallable(const Model::DescribeScdnDomainRealTimeTrafficDataRequest& request) const; + RefreshScdnObjectCachesOutcome refreshScdnObjectCaches(const Model::RefreshScdnObjectCachesRequest &request)const; + void refreshScdnObjectCachesAsync(const Model::RefreshScdnObjectCachesRequest& request, const RefreshScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshScdnObjectCachesOutcomeCallable refreshScdnObjectCachesCallable(const Model::RefreshScdnObjectCachesRequest& request) const; + DescribeScdnDomainHttpCodeDataOutcome describeScdnDomainHttpCodeData(const Model::DescribeScdnDomainHttpCodeDataRequest &request)const; + void describeScdnDomainHttpCodeDataAsync(const Model::DescribeScdnDomainHttpCodeDataRequest& request, const DescribeScdnDomainHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainHttpCodeDataOutcomeCallable describeScdnDomainHttpCodeDataCallable(const Model::DescribeScdnDomainHttpCodeDataRequest& request) const; + DescribeScdnDomainCertificateInfoOutcome describeScdnDomainCertificateInfo(const Model::DescribeScdnDomainCertificateInfoRequest &request)const; + void describeScdnDomainCertificateInfoAsync(const Model::DescribeScdnDomainCertificateInfoRequest& request, const DescribeScdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainCertificateInfoOutcomeCallable describeScdnDomainCertificateInfoCallable(const Model::DescribeScdnDomainCertificateInfoRequest& request) const; + CheckScdnServiceOutcome checkScdnService(const Model::CheckScdnServiceRequest &request)const; + void checkScdnServiceAsync(const Model::CheckScdnServiceRequest& request, const CheckScdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckScdnServiceOutcomeCallable checkScdnServiceCallable(const Model::CheckScdnServiceRequest& request) const; + DescribeScdnDomainIspDataOutcome describeScdnDomainIspData(const Model::DescribeScdnDomainIspDataRequest &request)const; + void describeScdnDomainIspDataAsync(const Model::DescribeScdnDomainIspDataRequest& request, const DescribeScdnDomainIspDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainIspDataOutcomeCallable describeScdnDomainIspDataCallable(const Model::DescribeScdnDomainIspDataRequest& request) const; DescribeScdnDomainRealTimeByteHitRateDataOutcome describeScdnDomainRealTimeByteHitRateData(const Model::DescribeScdnDomainRealTimeByteHitRateDataRequest &request)const; void describeScdnDomainRealTimeByteHitRateDataAsync(const Model::DescribeScdnDomainRealTimeByteHitRateDataRequest& request, const DescribeScdnDomainRealTimeByteHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainRealTimeByteHitRateDataOutcomeCallable describeScdnDomainRealTimeByteHitRateDataCallable(const Model::DescribeScdnDomainRealTimeByteHitRateDataRequest& request) const; DescribeScdnDomainTrafficDataOutcome describeScdnDomainTrafficData(const Model::DescribeScdnDomainTrafficDataRequest &request)const; void describeScdnDomainTrafficDataAsync(const Model::DescribeScdnDomainTrafficDataRequest& request, const DescribeScdnDomainTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainTrafficDataOutcomeCallable describeScdnDomainTrafficDataCallable(const Model::DescribeScdnDomainTrafficDataRequest& request) const; - DescribeScdnDomainDetailOutcome describeScdnDomainDetail(const Model::DescribeScdnDomainDetailRequest &request)const; - void describeScdnDomainDetailAsync(const Model::DescribeScdnDomainDetailRequest& request, const DescribeScdnDomainDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainDetailOutcomeCallable describeScdnDomainDetailCallable(const Model::DescribeScdnDomainDetailRequest& request) const; SetDomainServerCertificateOutcome setDomainServerCertificate(const Model::SetDomainServerCertificateRequest &request)const; void setDomainServerCertificateAsync(const Model::SetDomainServerCertificateRequest& request, const SetDomainServerCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDomainServerCertificateOutcomeCallable setDomainServerCertificateCallable(const Model::SetDomainServerCertificateRequest& request) const; - DescribeScdnDomainOriginBpsDataOutcome describeScdnDomainOriginBpsData(const Model::DescribeScdnDomainOriginBpsDataRequest &request)const; - void describeScdnDomainOriginBpsDataAsync(const Model::DescribeScdnDomainOriginBpsDataRequest& request, const DescribeScdnDomainOriginBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainOriginBpsDataOutcomeCallable describeScdnDomainOriginBpsDataCallable(const Model::DescribeScdnDomainOriginBpsDataRequest& request) const; DescribeScdnCertificateListOutcome describeScdnCertificateList(const Model::DescribeScdnCertificateListRequest &request)const; void describeScdnCertificateListAsync(const Model::DescribeScdnCertificateListRequest& request, const DescribeScdnCertificateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnCertificateListOutcomeCallable describeScdnCertificateListCallable(const Model::DescribeScdnCertificateListRequest& request) const; @@ -315,27 +374,9 @@ namespace AlibabaCloud DescribeScdnDomainConfigsOutcome describeScdnDomainConfigs(const Model::DescribeScdnDomainConfigsRequest &request)const; void describeScdnDomainConfigsAsync(const Model::DescribeScdnDomainConfigsRequest& request, const DescribeScdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainConfigsOutcomeCallable describeScdnDomainConfigsCallable(const Model::DescribeScdnDomainConfigsRequest& request) const; - DescribeScdnDomainRealTimeBpsDataOutcome describeScdnDomainRealTimeBpsData(const Model::DescribeScdnDomainRealTimeBpsDataRequest &request)const; - void describeScdnDomainRealTimeBpsDataAsync(const Model::DescribeScdnDomainRealTimeBpsDataRequest& request, const DescribeScdnDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainRealTimeBpsDataOutcomeCallable describeScdnDomainRealTimeBpsDataCallable(const Model::DescribeScdnDomainRealTimeBpsDataRequest& request) const; - SetScdnDomainCertificateOutcome setScdnDomainCertificate(const Model::SetScdnDomainCertificateRequest &request)const; - void setScdnDomainCertificateAsync(const Model::SetScdnDomainCertificateRequest& request, const SetScdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetScdnDomainCertificateOutcomeCallable setScdnDomainCertificateCallable(const Model::SetScdnDomainCertificateRequest& request) const; BatchDeleteScdnDomainConfigsOutcome batchDeleteScdnDomainConfigs(const Model::BatchDeleteScdnDomainConfigsRequest &request)const; void batchDeleteScdnDomainConfigsAsync(const Model::BatchDeleteScdnDomainConfigsRequest& request, const BatchDeleteScdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchDeleteScdnDomainConfigsOutcomeCallable batchDeleteScdnDomainConfigsCallable(const Model::BatchDeleteScdnDomainConfigsRequest& request) const; - DescribeScdnDomainRealTimeSrcTrafficDataOutcome describeScdnDomainRealTimeSrcTrafficData(const Model::DescribeScdnDomainRealTimeSrcTrafficDataRequest &request)const; - void describeScdnDomainRealTimeSrcTrafficDataAsync(const Model::DescribeScdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeScdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainRealTimeSrcTrafficDataOutcomeCallable describeScdnDomainRealTimeSrcTrafficDataCallable(const Model::DescribeScdnDomainRealTimeSrcTrafficDataRequest& request) const; - DescribeScdnTopDomainsByFlowOutcome describeScdnTopDomainsByFlow(const Model::DescribeScdnTopDomainsByFlowRequest &request)const; - void describeScdnTopDomainsByFlowAsync(const Model::DescribeScdnTopDomainsByFlowRequest& request, const DescribeScdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnTopDomainsByFlowOutcomeCallable describeScdnTopDomainsByFlowCallable(const Model::DescribeScdnTopDomainsByFlowRequest& request) const; - DescribeScdnDomainBpsDataOutcome describeScdnDomainBpsData(const Model::DescribeScdnDomainBpsDataRequest &request)const; - void describeScdnDomainBpsDataAsync(const Model::DescribeScdnDomainBpsDataRequest& request, const DescribeScdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainBpsDataOutcomeCallable describeScdnDomainBpsDataCallable(const Model::DescribeScdnDomainBpsDataRequest& request) const; - PreloadScdnObjectCachesOutcome preloadScdnObjectCaches(const Model::PreloadScdnObjectCachesRequest &request)const; - void preloadScdnObjectCachesAsync(const Model::PreloadScdnObjectCachesRequest& request, const PreloadScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PreloadScdnObjectCachesOutcomeCallable preloadScdnObjectCachesCallable(const Model::PreloadScdnObjectCachesRequest& request) const; DescribeScdnDomainHitRateDataOutcome describeScdnDomainHitRateData(const Model::DescribeScdnDomainHitRateDataRequest &request)const; void describeScdnDomainHitRateDataAsync(const Model::DescribeScdnDomainHitRateDataRequest& request, const DescribeScdnDomainHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainHitRateDataOutcomeCallable describeScdnDomainHitRateDataCallable(const Model::DescribeScdnDomainHitRateDataRequest& request) const; @@ -345,75 +386,42 @@ namespace AlibabaCloud StopScdnDomainOutcome stopScdnDomain(const Model::StopScdnDomainRequest &request)const; void stopScdnDomainAsync(const Model::StopScdnDomainRequest& request, const StopScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopScdnDomainOutcomeCallable stopScdnDomainCallable(const Model::StopScdnDomainRequest& request) const; - AddScdnDomainOutcome addScdnDomain(const Model::AddScdnDomainRequest &request)const; - void addScdnDomainAsync(const Model::AddScdnDomainRequest& request, const AddScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddScdnDomainOutcomeCallable addScdnDomainCallable(const Model::AddScdnDomainRequest& request) const; DescribeScdnDomainCnameOutcome describeScdnDomainCname(const Model::DescribeScdnDomainCnameRequest &request)const; void describeScdnDomainCnameAsync(const Model::DescribeScdnDomainCnameRequest& request, const DescribeScdnDomainCnameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainCnameOutcomeCallable describeScdnDomainCnameCallable(const Model::DescribeScdnDomainCnameRequest& request) const; DescribeScdnCertificateDetailOutcome describeScdnCertificateDetail(const Model::DescribeScdnCertificateDetailRequest &request)const; void describeScdnCertificateDetailAsync(const Model::DescribeScdnCertificateDetailRequest& request, const DescribeScdnCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnCertificateDetailOutcomeCallable describeScdnCertificateDetailCallable(const Model::DescribeScdnCertificateDetailRequest& request) const; - StartScdnDomainOutcome startScdnDomain(const Model::StartScdnDomainRequest &request)const; - void startScdnDomainAsync(const Model::StartScdnDomainRequest& request, const StartScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartScdnDomainOutcomeCallable startScdnDomainCallable(const Model::StartScdnDomainRequest& request) const; - DeleteScdnDomainOutcome deleteScdnDomain(const Model::DeleteScdnDomainRequest &request)const; - void deleteScdnDomainAsync(const Model::DeleteScdnDomainRequest& request, const DeleteScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteScdnDomainOutcomeCallable deleteScdnDomainCallable(const Model::DeleteScdnDomainRequest& request) const; DescribeScdnServiceOutcome describeScdnService(const Model::DescribeScdnServiceRequest &request)const; void describeScdnServiceAsync(const Model::DescribeScdnServiceRequest& request, const DescribeScdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnServiceOutcomeCallable describeScdnServiceCallable(const Model::DescribeScdnServiceRequest& request) const; - DescribeScdnDomainLogOutcome describeScdnDomainLog(const Model::DescribeScdnDomainLogRequest &request)const; - void describeScdnDomainLogAsync(const Model::DescribeScdnDomainLogRequest& request, const DescribeScdnDomainLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainLogOutcomeCallable describeScdnDomainLogCallable(const Model::DescribeScdnDomainLogRequest& request) const; - DescribeScdnDomainPvDataOutcome describeScdnDomainPvData(const Model::DescribeScdnDomainPvDataRequest &request)const; - void describeScdnDomainPvDataAsync(const Model::DescribeScdnDomainPvDataRequest& request, const DescribeScdnDomainPvDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainPvDataOutcomeCallable describeScdnDomainPvDataCallable(const Model::DescribeScdnDomainPvDataRequest& request) const; DescribeScdnUserQuotaOutcome describeScdnUserQuota(const Model::DescribeScdnUserQuotaRequest &request)const; void describeScdnUserQuotaAsync(const Model::DescribeScdnUserQuotaRequest& request, const DescribeScdnUserQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnUserQuotaOutcomeCallable describeScdnUserQuotaCallable(const Model::DescribeScdnUserQuotaRequest& request) const; - DescribeScdnDomainHttpCodeDataOutcome describeScdnDomainHttpCodeData(const Model::DescribeScdnDomainHttpCodeDataRequest &request)const; - void describeScdnDomainHttpCodeDataAsync(const Model::DescribeScdnDomainHttpCodeDataRequest& request, const DescribeScdnDomainHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainHttpCodeDataOutcomeCallable describeScdnDomainHttpCodeDataCallable(const Model::DescribeScdnDomainHttpCodeDataRequest& request) const; - RefreshScdnObjectCachesOutcome refreshScdnObjectCaches(const Model::RefreshScdnObjectCachesRequest &request)const; - void refreshScdnObjectCachesAsync(const Model::RefreshScdnObjectCachesRequest& request, const RefreshScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RefreshScdnObjectCachesOutcomeCallable refreshScdnObjectCachesCallable(const Model::RefreshScdnObjectCachesRequest& request) const; - DescribeScdnDomainRealTimeTrafficDataOutcome describeScdnDomainRealTimeTrafficData(const Model::DescribeScdnDomainRealTimeTrafficDataRequest &request)const; - void describeScdnDomainRealTimeTrafficDataAsync(const Model::DescribeScdnDomainRealTimeTrafficDataRequest& request, const DescribeScdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainRealTimeTrafficDataOutcomeCallable describeScdnDomainRealTimeTrafficDataCallable(const Model::DescribeScdnDomainRealTimeTrafficDataRequest& request) const; DescribeScdnDomainRealTimeQpsDataOutcome describeScdnDomainRealTimeQpsData(const Model::DescribeScdnDomainRealTimeQpsDataRequest &request)const; void describeScdnDomainRealTimeQpsDataAsync(const Model::DescribeScdnDomainRealTimeQpsDataRequest& request, const DescribeScdnDomainRealTimeQpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainRealTimeQpsDataOutcomeCallable describeScdnDomainRealTimeQpsDataCallable(const Model::DescribeScdnDomainRealTimeQpsDataRequest& request) const; - DescribeScdnDomainCertificateInfoOutcome describeScdnDomainCertificateInfo(const Model::DescribeScdnDomainCertificateInfoRequest &request)const; - void describeScdnDomainCertificateInfoAsync(const Model::DescribeScdnDomainCertificateInfoRequest& request, const DescribeScdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainCertificateInfoOutcomeCallable describeScdnDomainCertificateInfoCallable(const Model::DescribeScdnDomainCertificateInfoRequest& request) const; DescribeScdnDomainRealTimeHttpCodeDataOutcome describeScdnDomainRealTimeHttpCodeData(const Model::DescribeScdnDomainRealTimeHttpCodeDataRequest &request)const; void describeScdnDomainRealTimeHttpCodeDataAsync(const Model::DescribeScdnDomainRealTimeHttpCodeDataRequest& request, const DescribeScdnDomainRealTimeHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainRealTimeHttpCodeDataOutcomeCallable describeScdnDomainRealTimeHttpCodeDataCallable(const Model::DescribeScdnDomainRealTimeHttpCodeDataRequest& request) const; - CheckScdnServiceOutcome checkScdnService(const Model::CheckScdnServiceRequest &request)const; - void checkScdnServiceAsync(const Model::CheckScdnServiceRequest& request, const CheckScdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CheckScdnServiceOutcomeCallable checkScdnServiceCallable(const Model::CheckScdnServiceRequest& request) const; BatchUpdateScdnDomainOutcome batchUpdateScdnDomain(const Model::BatchUpdateScdnDomainRequest &request)const; void batchUpdateScdnDomainAsync(const Model::BatchUpdateScdnDomainRequest& request, const BatchUpdateScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchUpdateScdnDomainOutcomeCallable batchUpdateScdnDomainCallable(const Model::BatchUpdateScdnDomainRequest& request) const; - UpdateScdnDomainOutcome updateScdnDomain(const Model::UpdateScdnDomainRequest &request)const; - void updateScdnDomainAsync(const Model::UpdateScdnDomainRequest& request, const UpdateScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateScdnDomainOutcomeCallable updateScdnDomainCallable(const Model::UpdateScdnDomainRequest& request) const; DescribeScdnDomainOriginTrafficDataOutcome describeScdnDomainOriginTrafficData(const Model::DescribeScdnDomainOriginTrafficDataRequest &request)const; void describeScdnDomainOriginTrafficDataAsync(const Model::DescribeScdnDomainOriginTrafficDataRequest& request, const DescribeScdnDomainOriginTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainOriginTrafficDataOutcomeCallable describeScdnDomainOriginTrafficDataCallable(const Model::DescribeScdnDomainOriginTrafficDataRequest& request) const; + UpdateScdnDomainOutcome updateScdnDomain(const Model::UpdateScdnDomainRequest &request)const; + void updateScdnDomainAsync(const Model::UpdateScdnDomainRequest& request, const UpdateScdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateScdnDomainOutcomeCallable updateScdnDomainCallable(const Model::UpdateScdnDomainRequest& request) const; DescribeScdnDomainRealTimeReqHitRateDataOutcome describeScdnDomainRealTimeReqHitRateData(const Model::DescribeScdnDomainRealTimeReqHitRateDataRequest &request)const; void describeScdnDomainRealTimeReqHitRateDataAsync(const Model::DescribeScdnDomainRealTimeReqHitRateDataRequest& request, const DescribeScdnDomainRealTimeReqHitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnDomainRealTimeReqHitRateDataOutcomeCallable describeScdnDomainRealTimeReqHitRateDataCallable(const Model::DescribeScdnDomainRealTimeReqHitRateDataRequest& request) const; - DescribeScdnDomainRealTimeSrcBpsDataOutcome describeScdnDomainRealTimeSrcBpsData(const Model::DescribeScdnDomainRealTimeSrcBpsDataRequest &request)const; - void describeScdnDomainRealTimeSrcBpsDataAsync(const Model::DescribeScdnDomainRealTimeSrcBpsDataRequest& request, const DescribeScdnDomainRealTimeSrcBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainRealTimeSrcBpsDataOutcomeCallable describeScdnDomainRealTimeSrcBpsDataCallable(const Model::DescribeScdnDomainRealTimeSrcBpsDataRequest& request) const; - DescribeScdnDomainIspDataOutcome describeScdnDomainIspData(const Model::DescribeScdnDomainIspDataRequest &request)const; - void describeScdnDomainIspDataAsync(const Model::DescribeScdnDomainIspDataRequest& request, const DescribeScdnDomainIspDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeScdnDomainIspDataOutcomeCallable describeScdnDomainIspDataCallable(const Model::DescribeScdnDomainIspDataRequest& request) const; DescribeScdnRefreshTasksOutcome describeScdnRefreshTasks(const Model::DescribeScdnRefreshTasksRequest &request)const; void describeScdnRefreshTasksAsync(const Model::DescribeScdnRefreshTasksRequest& request, const DescribeScdnRefreshTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScdnRefreshTasksOutcomeCallable describeScdnRefreshTasksCallable(const Model::DescribeScdnRefreshTasksRequest& request) const; + DescribeScdnDomainRealTimeSrcBpsDataOutcome describeScdnDomainRealTimeSrcBpsData(const Model::DescribeScdnDomainRealTimeSrcBpsDataRequest &request)const; + void describeScdnDomainRealTimeSrcBpsDataAsync(const Model::DescribeScdnDomainRealTimeSrcBpsDataRequest& request, const DescribeScdnDomainRealTimeSrcBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeScdnDomainRealTimeSrcBpsDataOutcomeCallable describeScdnDomainRealTimeSrcBpsDataCallable(const Model::DescribeScdnDomainRealTimeSrcBpsDataRequest& request) const; OpenScdnServiceOutcome openScdnService(const Model::OpenScdnServiceRequest &request)const; void openScdnServiceAsync(const Model::OpenScdnServiceRequest& request, const OpenScdnServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenScdnServiceOutcomeCallable openScdnServiceCallable(const Model::OpenScdnServiceRequest& request) const; diff --git a/scdn/include/alibabacloud/scdn/model/AddScdnDomainRequest.h b/scdn/include/alibabacloud/scdn/model/AddScdnDomainRequest.h index 64b9b8cf7..6cc96683f 100644 --- a/scdn/include/alibabacloud/scdn/model/AddScdnDomainRequest.h +++ b/scdn/include/alibabacloud/scdn/model/AddScdnDomainRequest.h @@ -51,8 +51,6 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getCheckUrl()const; void setCheckUrl(const std::string& checkUrl); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string resourceGroupId_; @@ -63,7 +61,6 @@ namespace AlibabaCloud std::string domainName_; long ownerId_; std::string checkUrl_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/BatchDeleteScdnDomainConfigsRequest.h b/scdn/include/alibabacloud/scdn/model/BatchDeleteScdnDomainConfigsRequest.h index 782a71ea5..3a9163af5 100644 --- a/scdn/include/alibabacloud/scdn/model/BatchDeleteScdnDomainConfigsRequest.h +++ b/scdn/include/alibabacloud/scdn/model/BatchDeleteScdnDomainConfigsRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string functionNames_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string domainNames_; std::string ownerAccount_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsRequest.h b/scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsRequest.h new file mode 100644 index 000000000..980871fc6 --- /dev/null +++ b/scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsRequest.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_SCDN_MODEL_BATCHSETSCDNDOMAINCONFIGSREQUEST_H_ +#define ALIBABACLOUD_SCDN_MODEL_BATCHSETSCDNDOMAINCONFIGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scdn + { + namespace Model + { + class ALIBABACLOUD_SCDN_EXPORT BatchSetScdnDomainConfigsRequest : public RpcServiceRequest + { + + public: + BatchSetScdnDomainConfigsRequest(); + ~BatchSetScdnDomainConfigsRequest(); + + std::string getFunctions()const; + void setFunctions(const std::string& functions); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDomainNames()const; + void setDomainNames(const std::string& domainNames); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string functions_; + std::string securityToken_; + std::string domainNames_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCDN_MODEL_BATCHSETSCDNDOMAINCONFIGSREQUEST_H_ \ No newline at end of file diff --git a/scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsResult.h b/scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsResult.h new file mode 100644 index 000000000..84cb51b7f --- /dev/null +++ b/scdn/include/alibabacloud/scdn/model/BatchSetScdnDomainConfigsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCDN_MODEL_BATCHSETSCDNDOMAINCONFIGSRESULT_H_ +#define ALIBABACLOUD_SCDN_MODEL_BATCHSETSCDNDOMAINCONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scdn + { + namespace Model + { + class ALIBABACLOUD_SCDN_EXPORT BatchSetScdnDomainConfigsResult : public ServiceResult + { + public: + + + BatchSetScdnDomainConfigsResult(); + explicit BatchSetScdnDomainConfigsResult(const std::string &payload); + ~BatchSetScdnDomainConfigsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SCDN_MODEL_BATCHSETSCDNDOMAINCONFIGSRESULT_H_ \ No newline at end of file diff --git a/scdn/include/alibabacloud/scdn/model/BatchUpdateScdnDomainRequest.h b/scdn/include/alibabacloud/scdn/model/BatchUpdateScdnDomainRequest.h index 30d6a8a0d..23fb91741 100644 --- a/scdn/include/alibabacloud/scdn/model/BatchUpdateScdnDomainRequest.h +++ b/scdn/include/alibabacloud/scdn/model/BatchUpdateScdnDomainRequest.h @@ -47,8 +47,6 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string topLevelDomain_; @@ -57,7 +55,6 @@ namespace AlibabaCloud std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/CheckScdnServiceRequest.h b/scdn/include/alibabacloud/scdn/model/CheckScdnServiceRequest.h index 3a0d624f5..d5668facd 100644 --- a/scdn/include/alibabacloud/scdn/model/CheckScdnServiceRequest.h +++ b/scdn/include/alibabacloud/scdn/model/CheckScdnServiceRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DeleteScdnDomainRequest.h b/scdn/include/alibabacloud/scdn/model/DeleteScdnDomainRequest.h index e35f4c774..3c18aff3d 100644 --- a/scdn/include/alibabacloud/scdn/model/DeleteScdnDomainRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DeleteScdnDomainRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string resourceGroupId_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string ownerAccount_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateDetailRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateDetailRequest.h index d36e1655b..ce132d3e3 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateDetailRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateDetailRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setCertName(const std::string& certName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string certName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateListRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateListRequest.h index d71b5d0ff..48793184b 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateListRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnCertificateListRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainConfigsRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainConfigsRequest.h index 87080d067..f05c0bcab 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainConfigsRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainConfigsRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string functionNames_; std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainDetailRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainDetailRequest.h index a7a4ffe81..095696557 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainDetailRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainDetailRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogRequest.h index 846b79343..bc73c6ec0 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DescribeScdnDomainLogRequest(); ~DescribeScdnDomainLogRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -67,8 +69,6 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getDomainName()const; void setDomainName(const std::string& domainName); std::string getEndTime()const; @@ -89,6 +89,7 @@ namespace AlibabaCloud void setRequestId(const std::string& requestId); private: + long resourceOwnerId_; long callerParentId_; bool proxy_original_security_transport_; std::string startTime_; @@ -105,7 +106,6 @@ namespace AlibabaCloud long callerUid_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string domainName_; std::string endTime_; std::string callerBid_; diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogResult.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogResult.h index 43731ca27..d0b50b867 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogResult.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainLogResult.h @@ -34,11 +34,11 @@ namespace AlibabaCloud public: struct DomainLogDetail { - struct PageInfoDetail + struct PageInfos { long pageSize; + long pageNumber; long total; - long pageIndex; }; struct LogInfoDetail { @@ -49,7 +49,7 @@ namespace AlibabaCloud std::string logPath; }; std::vector logInfos; - std::vector pageInfos; + PageInfos pageInfos; long logCount; }; diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataRequest.h index c5c924f6f..abb7c1bc9 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataRequest.h @@ -35,26 +35,83 @@ namespace AlibabaCloud DescribeScdnDomainPvDataRequest(); ~DescribeScdnDomainPvDataRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getDomainName()const; void setDomainName(const std::string& domainName); std::string getEndTime()const; void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; std::string domainName_; std::string endTime_; - std::string startTime_; + std::string callerBid_; long ownerId_; - std::string accessKeyId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataResult.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataResult.h index 5b3f26983..cd457b05e 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataResult.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainPvDataResult.h @@ -42,18 +42,14 @@ namespace AlibabaCloud DescribeScdnDomainPvDataResult(); explicit DescribeScdnDomainPvDataResult(const std::string &payload); ~DescribeScdnDomainPvDataResult(); - std::string getEndTime()const; std::string getDomainName()const; - std::string getDataInterval()const; std::string getStartTime()const; std::vector getPvDataInterval()const; protected: void parse(const std::string &payload); private: - std::string endTime_; std::string domainName_; - std::string dataInterval_; std::string startTime_; std::vector pvDataInterval_; diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopReferVisitRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopReferVisitRequest.h index 07000116d..5ed0b92fe 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopReferVisitRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopReferVisitRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string sortBy_; std::string startTime_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopUrlVisitRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopUrlVisitRequest.h index e6117cab3..fe28aab97 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopUrlVisitRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainTopUrlVisitRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setStartTime(const std::string& startTime); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string sortBy_; std::string startTime_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataRequest.h index 3fc11e7a2..1652bea3f 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataRequest.h @@ -35,26 +35,83 @@ namespace AlibabaCloud DescribeScdnDomainUvDataRequest(); ~DescribeScdnDomainUvDataRequest(); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getDomainName()const; void setDomainName(const std::string& domainName); std::string getEndTime()const; void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; std::string domainName_; std::string endTime_; - std::string startTime_; + std::string callerBid_; long ownerId_; - std::string accessKeyId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataResult.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataResult.h index 183d51ed4..149b20b3f 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataResult.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnDomainUvDataResult.h @@ -43,18 +43,14 @@ namespace AlibabaCloud explicit DescribeScdnDomainUvDataResult(const std::string &payload); ~DescribeScdnDomainUvDataResult(); std::vector getUvDataInterval()const; - std::string getEndTime()const; std::string getDomainName()const; - std::string getDataInterval()const; std::string getStartTime()const; protected: void parse(const std::string &payload); private: std::vector uvDataInterval_; - std::string endTime_; std::string domainName_; - std::string dataInterval_; std::string startTime_; }; diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnIpInfoRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnIpInfoRequest.h index 5f395e5ef..e543cda59 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnIpInfoRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnIpInfoRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setIP(const std::string& iP); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string iP_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshQuotaRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshQuotaRequest.h index 08e6549bd..5628d9847 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshQuotaRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshQuotaRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshTasksRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshTasksRequest.h index c3eff3301..84b427679 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshTasksRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnRefreshTasksRequest.h @@ -47,8 +47,6 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getSecurityToken()const; @@ -69,7 +67,6 @@ namespace AlibabaCloud std::string startTime_; long ownerId_; int pageNumber_; - std::string accessKeyId_; std::string resourceGroupId_; std::string securityToken_; int pageSize_; diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceRequest.h index 76932421c..b9cae45cf 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceResult.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceResult.h index c193f6b5a..a2417b4a0 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceResult.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnServiceResult.h @@ -41,46 +41,78 @@ namespace AlibabaCloud DescribeScdnServiceResult(); explicit DescribeScdnServiceResult(const std::string &payload); ~DescribeScdnServiceResult(); + std::string getCurrentDDoSBasicValue()const; std::string getEndTime()const; - std::string getInstanceId()const; + std::string getCurrentElasticProtectionValue()const; std::string getPricingCycle()const; std::string getElasticProtection()const; std::string getDDoSBasic()const; std::string getDomainCountValue()const; - std::string getProtectTypeValue()const; + std::string getCurrentDomainCount()const; std::string getCcProtectionValue()const; - std::string getCcProtection()const; - std::vector getOperationLocks()const; std::string getElasticProtectionValue()const; std::string getOpenTime()const; + std::string getChangingChargeType()const; std::string getBandwidth()const; + std::string getDomainCount()const; + std::string getCurrentBandwidth()const; + std::string getCurrentElasticProtection()const; + std::string getInstanceId()const; + std::string getCurrentCcProtectionValue()const; + std::string getCurrentProtectType()const; + std::string getCurrentDDoSBasic()const; + std::string getCurrentDomainCountValue()const; + std::string getCurrentBandwidthValue()const; + std::string getProtectTypeValue()const; + std::string getCurrentProtectTypeValue()const; + std::string getCcProtection()const; + std::vector getOperationLocks()const; + std::string getChangingAffectTime()const; + std::string getInternetChargeType()const; + std::string getChangingChargeType1()const; std::string getDDoSBasicValue()const; std::string getProtectType()const; + std::string getCurrentCcProtection()const; std::string getBandwidthValue()const; std::string getPriceType()const; - std::string getDomainCount()const; protected: void parse(const std::string &payload); private: + std::string currentDDoSBasicValue_; std::string endTime_; - std::string instanceId_; + std::string currentElasticProtectionValue_; std::string pricingCycle_; std::string elasticProtection_; std::string dDoSBasic_; std::string domainCountValue_; - std::string protectTypeValue_; + std::string currentDomainCount_; std::string ccProtectionValue_; - std::string ccProtection_; - std::vector operationLocks_; std::string elasticProtectionValue_; std::string openTime_; + std::string changingChargeType_; std::string bandwidth_; + std::string domainCount_; + std::string currentBandwidth_; + std::string currentElasticProtection_; + std::string instanceId_; + std::string currentCcProtectionValue_; + std::string currentProtectType_; + std::string currentDDoSBasic_; + std::string currentDomainCountValue_; + std::string currentBandwidthValue_; + std::string protectTypeValue_; + std::string currentProtectTypeValue_; + std::string ccProtection_; + std::vector operationLocks_; + std::string changingAffectTime_; + std::string internetChargeType_; + std::string changingChargeType1_; std::string dDoSBasicValue_; std::string protectType_; + std::string currentCcProtection_; std::string bandwidthValue_; std::string priceType_; - std::string domainCount_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnUserDomainsRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnUserDomainsRequest.h index d815df489..9aa3f2031 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnUserDomainsRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnUserDomainsRequest.h @@ -37,6 +37,14 @@ namespace AlibabaCloud std::string getFuncFilter()const; void setFuncFilter(const std::string& funcFilter); + bool getCheckDomainShow()const; + void setCheckDomainShow(bool checkDomainShow); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); std::string getDomainName()const; void setDomainName(const std::string& domainName); long getOwnerId()const; @@ -47,32 +55,21 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getDomainStatus()const; void setDomainStatus(const std::string& domainStatus); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getDomainSearchType()const; void setDomainSearchType(const std::string& domainSearchType); - bool getCheckDomainShow()const; - void setCheckDomainShow(bool checkDomainShow); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - int getPageSize()const; - void setPageSize(int pageSize); private: std::string funcFilter_; + bool checkDomainShow_; + std::string resourceGroupId_; + std::string securityToken_; + int pageSize_; std::string domainName_; long ownerId_; std::string funcId_; int pageNumber_; std::string domainStatus_; - std::string accessKeyId_; std::string domainSearchType_; - bool checkDomainShow_; - std::string resourceGroupId_; - std::string securityToken_; - int pageSize_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/DescribeScdnUserQuotaRequest.h b/scdn/include/alibabacloud/scdn/model/DescribeScdnUserQuotaRequest.h index b713b8a9e..59a2c751b 100644 --- a/scdn/include/alibabacloud/scdn/model/DescribeScdnUserQuotaRequest.h +++ b/scdn/include/alibabacloud/scdn/model/DescribeScdnUserQuotaRequest.h @@ -39,13 +39,10 @@ namespace AlibabaCloud void setSecurityToken(const std::string& securityToken); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/OpenScdnServiceRequest.h b/scdn/include/alibabacloud/scdn/model/OpenScdnServiceRequest.h index 628709f3f..a09d422e2 100644 --- a/scdn/include/alibabacloud/scdn/model/OpenScdnServiceRequest.h +++ b/scdn/include/alibabacloud/scdn/model/OpenScdnServiceRequest.h @@ -55,8 +55,6 @@ namespace AlibabaCloud void setDDoSBasic(int dDoSBasic); int getCcProtection()const; void setCcProtection(int ccProtection); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string endDate_; @@ -69,7 +67,6 @@ namespace AlibabaCloud int elasticProtection_; int dDoSBasic_; int ccProtection_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/PreloadScdnObjectCachesRequest.h b/scdn/include/alibabacloud/scdn/model/PreloadScdnObjectCachesRequest.h index b462e2368..5b8c15a60 100644 --- a/scdn/include/alibabacloud/scdn/model/PreloadScdnObjectCachesRequest.h +++ b/scdn/include/alibabacloud/scdn/model/PreloadScdnObjectCachesRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setObjectPath(const std::string& objectPath); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string area_; std::string securityToken_; std::string objectPath_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/RefreshScdnObjectCachesRequest.h b/scdn/include/alibabacloud/scdn/model/RefreshScdnObjectCachesRequest.h index df2b43372..69dcae638 100644 --- a/scdn/include/alibabacloud/scdn/model/RefreshScdnObjectCachesRequest.h +++ b/scdn/include/alibabacloud/scdn/model/RefreshScdnObjectCachesRequest.h @@ -43,15 +43,12 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getObjectType()const; void setObjectType(const std::string& objectType); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string objectPath_; long ownerId_; std::string objectType_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/SetScdnDomainCertificateRequest.h b/scdn/include/alibabacloud/scdn/model/SetScdnDomainCertificateRequest.h index 8661e6b4b..0ff6338ec 100644 --- a/scdn/include/alibabacloud/scdn/model/SetScdnDomainCertificateRequest.h +++ b/scdn/include/alibabacloud/scdn/model/SetScdnDomainCertificateRequest.h @@ -53,8 +53,6 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getRegion()const; void setRegion(const std::string& region); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); std::string getSSLPri()const; void setSSLPri(const std::string& sSLPri); @@ -68,7 +66,6 @@ namespace AlibabaCloud std::string domainName_; long ownerId_; std::string region_; - std::string accessKeyId_; std::string sSLPri_; }; diff --git a/scdn/include/alibabacloud/scdn/model/StartScdnDomainRequest.h b/scdn/include/alibabacloud/scdn/model/StartScdnDomainRequest.h index c6819a1e2..288ecd1f7 100644 --- a/scdn/include/alibabacloud/scdn/model/StartScdnDomainRequest.h +++ b/scdn/include/alibabacloud/scdn/model/StartScdnDomainRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/StopScdnDomainRequest.h b/scdn/include/alibabacloud/scdn/model/StopScdnDomainRequest.h index 61038a1c3..ff34df02b 100644 --- a/scdn/include/alibabacloud/scdn/model/StopScdnDomainRequest.h +++ b/scdn/include/alibabacloud/scdn/model/StopScdnDomainRequest.h @@ -41,14 +41,11 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/include/alibabacloud/scdn/model/UpdateScdnDomainRequest.h b/scdn/include/alibabacloud/scdn/model/UpdateScdnDomainRequest.h index 05e424b8a..d1c282570 100644 --- a/scdn/include/alibabacloud/scdn/model/UpdateScdnDomainRequest.h +++ b/scdn/include/alibabacloud/scdn/model/UpdateScdnDomainRequest.h @@ -45,8 +45,6 @@ namespace AlibabaCloud void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: std::string resourceGroupId_; @@ -54,7 +52,6 @@ namespace AlibabaCloud std::string securityToken_; std::string domainName_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/scdn/src/ScdnClient.cc b/scdn/src/ScdnClient.cc index 7f933eda3..433ae2eed 100644 --- a/scdn/src/ScdnClient.cc +++ b/scdn/src/ScdnClient.cc @@ -31,21 +31,21 @@ ScdnClient::ScdnClient(const Credentials &credentials, const ClientConfiguration RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "scdn"); } ScdnClient::ScdnClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "scdn"); } ScdnClient::ScdnClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "scdn"); } ScdnClient::~ScdnClient() @@ -87,6 +87,726 @@ ScdnClient::DescribeScdnRefreshQuotaOutcomeCallable ScdnClient::describeScdnRefr return task->get_future(); } +ScdnClient::DescribeScdnDomainDetailOutcome ScdnClient::describeScdnDomainDetail(const DescribeScdnDomainDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainDetailOutcome(DescribeScdnDomainDetailResult(outcome.result())); + else + return DescribeScdnDomainDetailOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainDetailAsync(const DescribeScdnDomainDetailRequest& request, const DescribeScdnDomainDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainDetailOutcomeCallable ScdnClient::describeScdnDomainDetailCallable(const DescribeScdnDomainDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainOriginBpsDataOutcome ScdnClient::describeScdnDomainOriginBpsData(const DescribeScdnDomainOriginBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainOriginBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainOriginBpsDataOutcome(DescribeScdnDomainOriginBpsDataResult(outcome.result())); + else + return DescribeScdnDomainOriginBpsDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainOriginBpsDataAsync(const DescribeScdnDomainOriginBpsDataRequest& request, const DescribeScdnDomainOriginBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainOriginBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainOriginBpsDataOutcomeCallable ScdnClient::describeScdnDomainOriginBpsDataCallable(const DescribeScdnDomainOriginBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainOriginBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainRealTimeBpsDataOutcome ScdnClient::describeScdnDomainRealTimeBpsData(const DescribeScdnDomainRealTimeBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainRealTimeBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainRealTimeBpsDataOutcome(DescribeScdnDomainRealTimeBpsDataResult(outcome.result())); + else + return DescribeScdnDomainRealTimeBpsDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainRealTimeBpsDataAsync(const DescribeScdnDomainRealTimeBpsDataRequest& request, const DescribeScdnDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainRealTimeBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainRealTimeBpsDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeBpsDataCallable(const DescribeScdnDomainRealTimeBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainRealTimeBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::SetScdnDomainCertificateOutcome ScdnClient::setScdnDomainCertificate(const SetScdnDomainCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetScdnDomainCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetScdnDomainCertificateOutcome(SetScdnDomainCertificateResult(outcome.result())); + else + return SetScdnDomainCertificateOutcome(outcome.error()); +} + +void ScdnClient::setScdnDomainCertificateAsync(const SetScdnDomainCertificateRequest& request, const SetScdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setScdnDomainCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::SetScdnDomainCertificateOutcomeCallable ScdnClient::setScdnDomainCertificateCallable(const SetScdnDomainCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setScdnDomainCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainRealTimeSrcTrafficDataOutcome ScdnClient::describeScdnDomainRealTimeSrcTrafficData(const DescribeScdnDomainRealTimeSrcTrafficDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainRealTimeSrcTrafficDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainRealTimeSrcTrafficDataOutcome(DescribeScdnDomainRealTimeSrcTrafficDataResult(outcome.result())); + else + return DescribeScdnDomainRealTimeSrcTrafficDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainRealTimeSrcTrafficDataAsync(const DescribeScdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeScdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainRealTimeSrcTrafficData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainRealTimeSrcTrafficDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeSrcTrafficDataCallable(const DescribeScdnDomainRealTimeSrcTrafficDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainRealTimeSrcTrafficData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnTopDomainsByFlowOutcome ScdnClient::describeScdnTopDomainsByFlow(const DescribeScdnTopDomainsByFlowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnTopDomainsByFlowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnTopDomainsByFlowOutcome(DescribeScdnTopDomainsByFlowResult(outcome.result())); + else + return DescribeScdnTopDomainsByFlowOutcome(outcome.error()); +} + +void ScdnClient::describeScdnTopDomainsByFlowAsync(const DescribeScdnTopDomainsByFlowRequest& request, const DescribeScdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnTopDomainsByFlow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnTopDomainsByFlowOutcomeCallable ScdnClient::describeScdnTopDomainsByFlowCallable(const DescribeScdnTopDomainsByFlowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnTopDomainsByFlow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::PreloadScdnObjectCachesOutcome ScdnClient::preloadScdnObjectCaches(const PreloadScdnObjectCachesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreloadScdnObjectCachesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreloadScdnObjectCachesOutcome(PreloadScdnObjectCachesResult(outcome.result())); + else + return PreloadScdnObjectCachesOutcome(outcome.error()); +} + +void ScdnClient::preloadScdnObjectCachesAsync(const PreloadScdnObjectCachesRequest& request, const PreloadScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, preloadScdnObjectCaches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::PreloadScdnObjectCachesOutcomeCallable ScdnClient::preloadScdnObjectCachesCallable(const PreloadScdnObjectCachesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->preloadScdnObjectCaches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainBpsDataOutcome ScdnClient::describeScdnDomainBpsData(const DescribeScdnDomainBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainBpsDataOutcome(DescribeScdnDomainBpsDataResult(outcome.result())); + else + return DescribeScdnDomainBpsDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainBpsDataAsync(const DescribeScdnDomainBpsDataRequest& request, const DescribeScdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainBpsDataOutcomeCallable ScdnClient::describeScdnDomainBpsDataCallable(const DescribeScdnDomainBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::AddScdnDomainOutcome ScdnClient::addScdnDomain(const AddScdnDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddScdnDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddScdnDomainOutcome(AddScdnDomainResult(outcome.result())); + else + return AddScdnDomainOutcome(outcome.error()); +} + +void ScdnClient::addScdnDomainAsync(const AddScdnDomainRequest& request, const AddScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addScdnDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::AddScdnDomainOutcomeCallable ScdnClient::addScdnDomainCallable(const AddScdnDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addScdnDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::BatchSetScdnDomainConfigsOutcome ScdnClient::batchSetScdnDomainConfigs(const BatchSetScdnDomainConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchSetScdnDomainConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchSetScdnDomainConfigsOutcome(BatchSetScdnDomainConfigsResult(outcome.result())); + else + return BatchSetScdnDomainConfigsOutcome(outcome.error()); +} + +void ScdnClient::batchSetScdnDomainConfigsAsync(const BatchSetScdnDomainConfigsRequest& request, const BatchSetScdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchSetScdnDomainConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::BatchSetScdnDomainConfigsOutcomeCallable ScdnClient::batchSetScdnDomainConfigsCallable(const BatchSetScdnDomainConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchSetScdnDomainConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DeleteScdnDomainOutcome ScdnClient::deleteScdnDomain(const DeleteScdnDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteScdnDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteScdnDomainOutcome(DeleteScdnDomainResult(outcome.result())); + else + return DeleteScdnDomainOutcome(outcome.error()); +} + +void ScdnClient::deleteScdnDomainAsync(const DeleteScdnDomainRequest& request, const DeleteScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteScdnDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DeleteScdnDomainOutcomeCallable ScdnClient::deleteScdnDomainCallable(const DeleteScdnDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteScdnDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::StartScdnDomainOutcome ScdnClient::startScdnDomain(const StartScdnDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartScdnDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartScdnDomainOutcome(StartScdnDomainResult(outcome.result())); + else + return StartScdnDomainOutcome(outcome.error()); +} + +void ScdnClient::startScdnDomainAsync(const StartScdnDomainRequest& request, const StartScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startScdnDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::StartScdnDomainOutcomeCallable ScdnClient::startScdnDomainCallable(const StartScdnDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startScdnDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainLogOutcome ScdnClient::describeScdnDomainLog(const DescribeScdnDomainLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainLogOutcome(DescribeScdnDomainLogResult(outcome.result())); + else + return DescribeScdnDomainLogOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainLogAsync(const DescribeScdnDomainLogRequest& request, const DescribeScdnDomainLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainLogOutcomeCallable ScdnClient::describeScdnDomainLogCallable(const DescribeScdnDomainLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainPvDataOutcome ScdnClient::describeScdnDomainPvData(const DescribeScdnDomainPvDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainPvDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainPvDataOutcome(DescribeScdnDomainPvDataResult(outcome.result())); + else + return DescribeScdnDomainPvDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainPvDataAsync(const DescribeScdnDomainPvDataRequest& request, const DescribeScdnDomainPvDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainPvData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainPvDataOutcomeCallable ScdnClient::describeScdnDomainPvDataCallable(const DescribeScdnDomainPvDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainPvData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainRealTimeTrafficDataOutcome ScdnClient::describeScdnDomainRealTimeTrafficData(const DescribeScdnDomainRealTimeTrafficDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainRealTimeTrafficDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainRealTimeTrafficDataOutcome(DescribeScdnDomainRealTimeTrafficDataResult(outcome.result())); + else + return DescribeScdnDomainRealTimeTrafficDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainRealTimeTrafficDataAsync(const DescribeScdnDomainRealTimeTrafficDataRequest& request, const DescribeScdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainRealTimeTrafficData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainRealTimeTrafficDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeTrafficDataCallable(const DescribeScdnDomainRealTimeTrafficDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainRealTimeTrafficData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::RefreshScdnObjectCachesOutcome ScdnClient::refreshScdnObjectCaches(const RefreshScdnObjectCachesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshScdnObjectCachesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshScdnObjectCachesOutcome(RefreshScdnObjectCachesResult(outcome.result())); + else + return RefreshScdnObjectCachesOutcome(outcome.error()); +} + +void ScdnClient::refreshScdnObjectCachesAsync(const RefreshScdnObjectCachesRequest& request, const RefreshScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshScdnObjectCaches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::RefreshScdnObjectCachesOutcomeCallable ScdnClient::refreshScdnObjectCachesCallable(const RefreshScdnObjectCachesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshScdnObjectCaches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainHttpCodeDataOutcome ScdnClient::describeScdnDomainHttpCodeData(const DescribeScdnDomainHttpCodeDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainHttpCodeDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainHttpCodeDataOutcome(DescribeScdnDomainHttpCodeDataResult(outcome.result())); + else + return DescribeScdnDomainHttpCodeDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainHttpCodeDataAsync(const DescribeScdnDomainHttpCodeDataRequest& request, const DescribeScdnDomainHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainHttpCodeData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainHttpCodeDataOutcomeCallable ScdnClient::describeScdnDomainHttpCodeDataCallable(const DescribeScdnDomainHttpCodeDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainHttpCodeData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainCertificateInfoOutcome ScdnClient::describeScdnDomainCertificateInfo(const DescribeScdnDomainCertificateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainCertificateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainCertificateInfoOutcome(DescribeScdnDomainCertificateInfoResult(outcome.result())); + else + return DescribeScdnDomainCertificateInfoOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainCertificateInfoAsync(const DescribeScdnDomainCertificateInfoRequest& request, const DescribeScdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainCertificateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainCertificateInfoOutcomeCallable ScdnClient::describeScdnDomainCertificateInfoCallable(const DescribeScdnDomainCertificateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainCertificateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::CheckScdnServiceOutcome ScdnClient::checkScdnService(const CheckScdnServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckScdnServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckScdnServiceOutcome(CheckScdnServiceResult(outcome.result())); + else + return CheckScdnServiceOutcome(outcome.error()); +} + +void ScdnClient::checkScdnServiceAsync(const CheckScdnServiceRequest& request, const CheckScdnServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkScdnService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::CheckScdnServiceOutcomeCallable ScdnClient::checkScdnServiceCallable(const CheckScdnServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkScdnService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScdnClient::DescribeScdnDomainIspDataOutcome ScdnClient::describeScdnDomainIspData(const DescribeScdnDomainIspDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainIspDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainIspDataOutcome(DescribeScdnDomainIspDataResult(outcome.result())); + else + return DescribeScdnDomainIspDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainIspDataAsync(const DescribeScdnDomainIspDataRequest& request, const DescribeScdnDomainIspDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainIspData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainIspDataOutcomeCallable ScdnClient::describeScdnDomainIspDataCallable(const DescribeScdnDomainIspDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainIspData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ScdnClient::DescribeScdnDomainRealTimeByteHitRateDataOutcome ScdnClient::describeScdnDomainRealTimeByteHitRateData(const DescribeScdnDomainRealTimeByteHitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,42 +879,6 @@ ScdnClient::DescribeScdnDomainTrafficDataOutcomeCallable ScdnClient::describeScd return task->get_future(); } -ScdnClient::DescribeScdnDomainDetailOutcome ScdnClient::describeScdnDomainDetail(const DescribeScdnDomainDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainDetailOutcome(DescribeScdnDomainDetailResult(outcome.result())); - else - return DescribeScdnDomainDetailOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainDetailAsync(const DescribeScdnDomainDetailRequest& request, const DescribeScdnDomainDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainDetailOutcomeCallable ScdnClient::describeScdnDomainDetailCallable(const DescribeScdnDomainDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::SetDomainServerCertificateOutcome ScdnClient::setDomainServerCertificate(const SetDomainServerCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,42 +915,6 @@ ScdnClient::SetDomainServerCertificateOutcomeCallable ScdnClient::setDomainServe return task->get_future(); } -ScdnClient::DescribeScdnDomainOriginBpsDataOutcome ScdnClient::describeScdnDomainOriginBpsData(const DescribeScdnDomainOriginBpsDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainOriginBpsDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainOriginBpsDataOutcome(DescribeScdnDomainOriginBpsDataResult(outcome.result())); - else - return DescribeScdnDomainOriginBpsDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainOriginBpsDataAsync(const DescribeScdnDomainOriginBpsDataRequest& request, const DescribeScdnDomainOriginBpsDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainOriginBpsData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainOriginBpsDataOutcomeCallable ScdnClient::describeScdnDomainOriginBpsDataCallable(const DescribeScdnDomainOriginBpsDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainOriginBpsData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnCertificateListOutcome ScdnClient::describeScdnCertificateList(const DescribeScdnCertificateListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,78 +1167,6 @@ ScdnClient::DescribeScdnDomainConfigsOutcomeCallable ScdnClient::describeScdnDom return task->get_future(); } -ScdnClient::DescribeScdnDomainRealTimeBpsDataOutcome ScdnClient::describeScdnDomainRealTimeBpsData(const DescribeScdnDomainRealTimeBpsDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainRealTimeBpsDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainRealTimeBpsDataOutcome(DescribeScdnDomainRealTimeBpsDataResult(outcome.result())); - else - return DescribeScdnDomainRealTimeBpsDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainRealTimeBpsDataAsync(const DescribeScdnDomainRealTimeBpsDataRequest& request, const DescribeScdnDomainRealTimeBpsDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainRealTimeBpsData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainRealTimeBpsDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeBpsDataCallable(const DescribeScdnDomainRealTimeBpsDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainRealTimeBpsData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::SetScdnDomainCertificateOutcome ScdnClient::setScdnDomainCertificate(const SetScdnDomainCertificateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetScdnDomainCertificateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetScdnDomainCertificateOutcome(SetScdnDomainCertificateResult(outcome.result())); - else - return SetScdnDomainCertificateOutcome(outcome.error()); -} - -void ScdnClient::setScdnDomainCertificateAsync(const SetScdnDomainCertificateRequest& request, const SetScdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setScdnDomainCertificate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::SetScdnDomainCertificateOutcomeCallable ScdnClient::setScdnDomainCertificateCallable(const SetScdnDomainCertificateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setScdnDomainCertificate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::BatchDeleteScdnDomainConfigsOutcome ScdnClient::batchDeleteScdnDomainConfigs(const BatchDeleteScdnDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,150 +1203,6 @@ ScdnClient::BatchDeleteScdnDomainConfigsOutcomeCallable ScdnClient::batchDeleteS return task->get_future(); } -ScdnClient::DescribeScdnDomainRealTimeSrcTrafficDataOutcome ScdnClient::describeScdnDomainRealTimeSrcTrafficData(const DescribeScdnDomainRealTimeSrcTrafficDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainRealTimeSrcTrafficDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainRealTimeSrcTrafficDataOutcome(DescribeScdnDomainRealTimeSrcTrafficDataResult(outcome.result())); - else - return DescribeScdnDomainRealTimeSrcTrafficDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainRealTimeSrcTrafficDataAsync(const DescribeScdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeScdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainRealTimeSrcTrafficData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainRealTimeSrcTrafficDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeSrcTrafficDataCallable(const DescribeScdnDomainRealTimeSrcTrafficDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainRealTimeSrcTrafficData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::DescribeScdnTopDomainsByFlowOutcome ScdnClient::describeScdnTopDomainsByFlow(const DescribeScdnTopDomainsByFlowRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnTopDomainsByFlowOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnTopDomainsByFlowOutcome(DescribeScdnTopDomainsByFlowResult(outcome.result())); - else - return DescribeScdnTopDomainsByFlowOutcome(outcome.error()); -} - -void ScdnClient::describeScdnTopDomainsByFlowAsync(const DescribeScdnTopDomainsByFlowRequest& request, const DescribeScdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnTopDomainsByFlow(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnTopDomainsByFlowOutcomeCallable ScdnClient::describeScdnTopDomainsByFlowCallable(const DescribeScdnTopDomainsByFlowRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnTopDomainsByFlow(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::DescribeScdnDomainBpsDataOutcome ScdnClient::describeScdnDomainBpsData(const DescribeScdnDomainBpsDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainBpsDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainBpsDataOutcome(DescribeScdnDomainBpsDataResult(outcome.result())); - else - return DescribeScdnDomainBpsDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainBpsDataAsync(const DescribeScdnDomainBpsDataRequest& request, const DescribeScdnDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainBpsData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainBpsDataOutcomeCallable ScdnClient::describeScdnDomainBpsDataCallable(const DescribeScdnDomainBpsDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainBpsData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::PreloadScdnObjectCachesOutcome ScdnClient::preloadScdnObjectCaches(const PreloadScdnObjectCachesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PreloadScdnObjectCachesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PreloadScdnObjectCachesOutcome(PreloadScdnObjectCachesResult(outcome.result())); - else - return PreloadScdnObjectCachesOutcome(outcome.error()); -} - -void ScdnClient::preloadScdnObjectCachesAsync(const PreloadScdnObjectCachesRequest& request, const PreloadScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, preloadScdnObjectCaches(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::PreloadScdnObjectCachesOutcomeCallable ScdnClient::preloadScdnObjectCachesCallable(const PreloadScdnObjectCachesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->preloadScdnObjectCaches(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnDomainHitRateDataOutcome ScdnClient::describeScdnDomainHitRateData(const DescribeScdnDomainHitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,42 +1311,6 @@ ScdnClient::StopScdnDomainOutcomeCallable ScdnClient::stopScdnDomainCallable(con return task->get_future(); } -ScdnClient::AddScdnDomainOutcome ScdnClient::addScdnDomain(const AddScdnDomainRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddScdnDomainOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddScdnDomainOutcome(AddScdnDomainResult(outcome.result())); - else - return AddScdnDomainOutcome(outcome.error()); -} - -void ScdnClient::addScdnDomainAsync(const AddScdnDomainRequest& request, const AddScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addScdnDomain(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::AddScdnDomainOutcomeCallable ScdnClient::addScdnDomainCallable(const AddScdnDomainRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addScdnDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnDomainCnameOutcome ScdnClient::describeScdnDomainCname(const DescribeScdnDomainCnameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,78 +1383,6 @@ ScdnClient::DescribeScdnCertificateDetailOutcomeCallable ScdnClient::describeScd return task->get_future(); } -ScdnClient::StartScdnDomainOutcome ScdnClient::startScdnDomain(const StartScdnDomainRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StartScdnDomainOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StartScdnDomainOutcome(StartScdnDomainResult(outcome.result())); - else - return StartScdnDomainOutcome(outcome.error()); -} - -void ScdnClient::startScdnDomainAsync(const StartScdnDomainRequest& request, const StartScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, startScdnDomain(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::StartScdnDomainOutcomeCallable ScdnClient::startScdnDomainCallable(const StartScdnDomainRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->startScdnDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::DeleteScdnDomainOutcome ScdnClient::deleteScdnDomain(const DeleteScdnDomainRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteScdnDomainOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteScdnDomainOutcome(DeleteScdnDomainResult(outcome.result())); - else - return DeleteScdnDomainOutcome(outcome.error()); -} - -void ScdnClient::deleteScdnDomainAsync(const DeleteScdnDomainRequest& request, const DeleteScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteScdnDomain(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DeleteScdnDomainOutcomeCallable ScdnClient::deleteScdnDomainCallable(const DeleteScdnDomainRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteScdnDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnServiceOutcome ScdnClient::describeScdnService(const DescribeScdnServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,78 +1419,6 @@ ScdnClient::DescribeScdnServiceOutcomeCallable ScdnClient::describeScdnServiceCa return task->get_future(); } -ScdnClient::DescribeScdnDomainLogOutcome ScdnClient::describeScdnDomainLog(const DescribeScdnDomainLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainLogOutcome(DescribeScdnDomainLogResult(outcome.result())); - else - return DescribeScdnDomainLogOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainLogAsync(const DescribeScdnDomainLogRequest& request, const DescribeScdnDomainLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainLogOutcomeCallable ScdnClient::describeScdnDomainLogCallable(const DescribeScdnDomainLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::DescribeScdnDomainPvDataOutcome ScdnClient::describeScdnDomainPvData(const DescribeScdnDomainPvDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainPvDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainPvDataOutcome(DescribeScdnDomainPvDataResult(outcome.result())); - else - return DescribeScdnDomainPvDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainPvDataAsync(const DescribeScdnDomainPvDataRequest& request, const DescribeScdnDomainPvDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainPvData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainPvDataOutcomeCallable ScdnClient::describeScdnDomainPvDataCallable(const DescribeScdnDomainPvDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainPvData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnUserQuotaOutcome ScdnClient::describeScdnUserQuota(const DescribeScdnUserQuotaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,114 +1455,6 @@ ScdnClient::DescribeScdnUserQuotaOutcomeCallable ScdnClient::describeScdnUserQuo return task->get_future(); } -ScdnClient::DescribeScdnDomainHttpCodeDataOutcome ScdnClient::describeScdnDomainHttpCodeData(const DescribeScdnDomainHttpCodeDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainHttpCodeDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainHttpCodeDataOutcome(DescribeScdnDomainHttpCodeDataResult(outcome.result())); - else - return DescribeScdnDomainHttpCodeDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainHttpCodeDataAsync(const DescribeScdnDomainHttpCodeDataRequest& request, const DescribeScdnDomainHttpCodeDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainHttpCodeData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainHttpCodeDataOutcomeCallable ScdnClient::describeScdnDomainHttpCodeDataCallable(const DescribeScdnDomainHttpCodeDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainHttpCodeData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::RefreshScdnObjectCachesOutcome ScdnClient::refreshScdnObjectCaches(const RefreshScdnObjectCachesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RefreshScdnObjectCachesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RefreshScdnObjectCachesOutcome(RefreshScdnObjectCachesResult(outcome.result())); - else - return RefreshScdnObjectCachesOutcome(outcome.error()); -} - -void ScdnClient::refreshScdnObjectCachesAsync(const RefreshScdnObjectCachesRequest& request, const RefreshScdnObjectCachesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, refreshScdnObjectCaches(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::RefreshScdnObjectCachesOutcomeCallable ScdnClient::refreshScdnObjectCachesCallable(const RefreshScdnObjectCachesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->refreshScdnObjectCaches(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::DescribeScdnDomainRealTimeTrafficDataOutcome ScdnClient::describeScdnDomainRealTimeTrafficData(const DescribeScdnDomainRealTimeTrafficDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainRealTimeTrafficDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainRealTimeTrafficDataOutcome(DescribeScdnDomainRealTimeTrafficDataResult(outcome.result())); - else - return DescribeScdnDomainRealTimeTrafficDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainRealTimeTrafficDataAsync(const DescribeScdnDomainRealTimeTrafficDataRequest& request, const DescribeScdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainRealTimeTrafficData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainRealTimeTrafficDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeTrafficDataCallable(const DescribeScdnDomainRealTimeTrafficDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainRealTimeTrafficData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnDomainRealTimeQpsDataOutcome ScdnClient::describeScdnDomainRealTimeQpsData(const DescribeScdnDomainRealTimeQpsDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,42 +1491,6 @@ ScdnClient::DescribeScdnDomainRealTimeQpsDataOutcomeCallable ScdnClient::describ return task->get_future(); } -ScdnClient::DescribeScdnDomainCertificateInfoOutcome ScdnClient::describeScdnDomainCertificateInfo(const DescribeScdnDomainCertificateInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainCertificateInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainCertificateInfoOutcome(DescribeScdnDomainCertificateInfoResult(outcome.result())); - else - return DescribeScdnDomainCertificateInfoOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainCertificateInfoAsync(const DescribeScdnDomainCertificateInfoRequest& request, const DescribeScdnDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainCertificateInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainCertificateInfoOutcomeCallable ScdnClient::describeScdnDomainCertificateInfoCallable(const DescribeScdnDomainCertificateInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainCertificateInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnDomainRealTimeHttpCodeDataOutcome ScdnClient::describeScdnDomainRealTimeHttpCodeData(const DescribeScdnDomainRealTimeHttpCodeDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,42 +1527,6 @@ ScdnClient::DescribeScdnDomainRealTimeHttpCodeDataOutcomeCallable ScdnClient::de return task->get_future(); } -ScdnClient::CheckScdnServiceOutcome ScdnClient::checkScdnService(const CheckScdnServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CheckScdnServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CheckScdnServiceOutcome(CheckScdnServiceResult(outcome.result())); - else - return CheckScdnServiceOutcome(outcome.error()); -} - -void ScdnClient::checkScdnServiceAsync(const CheckScdnServiceRequest& request, const CheckScdnServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, checkScdnService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::CheckScdnServiceOutcomeCallable ScdnClient::checkScdnServiceCallable(const CheckScdnServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->checkScdnService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::BatchUpdateScdnDomainOutcome ScdnClient::batchUpdateScdnDomain(const BatchUpdateScdnDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,42 +1563,6 @@ ScdnClient::BatchUpdateScdnDomainOutcomeCallable ScdnClient::batchUpdateScdnDoma return task->get_future(); } -ScdnClient::UpdateScdnDomainOutcome ScdnClient::updateScdnDomain(const UpdateScdnDomainRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateScdnDomainOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateScdnDomainOutcome(UpdateScdnDomainResult(outcome.result())); - else - return UpdateScdnDomainOutcome(outcome.error()); -} - -void ScdnClient::updateScdnDomainAsync(const UpdateScdnDomainRequest& request, const UpdateScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateScdnDomain(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::UpdateScdnDomainOutcomeCallable ScdnClient::updateScdnDomainCallable(const UpdateScdnDomainRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateScdnDomain(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnDomainOriginTrafficDataOutcome ScdnClient::describeScdnDomainOriginTrafficData(const DescribeScdnDomainOriginTrafficDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1599,42 @@ ScdnClient::DescribeScdnDomainOriginTrafficDataOutcomeCallable ScdnClient::descr return task->get_future(); } +ScdnClient::UpdateScdnDomainOutcome ScdnClient::updateScdnDomain(const UpdateScdnDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateScdnDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateScdnDomainOutcome(UpdateScdnDomainResult(outcome.result())); + else + return UpdateScdnDomainOutcome(outcome.error()); +} + +void ScdnClient::updateScdnDomainAsync(const UpdateScdnDomainRequest& request, const UpdateScdnDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateScdnDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::UpdateScdnDomainOutcomeCallable ScdnClient::updateScdnDomainCallable(const UpdateScdnDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateScdnDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ScdnClient::DescribeScdnDomainRealTimeReqHitRateDataOutcome ScdnClient::describeScdnDomainRealTimeReqHitRateData(const DescribeScdnDomainRealTimeReqHitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,78 +1671,6 @@ ScdnClient::DescribeScdnDomainRealTimeReqHitRateDataOutcomeCallable ScdnClient:: return task->get_future(); } -ScdnClient::DescribeScdnDomainRealTimeSrcBpsDataOutcome ScdnClient::describeScdnDomainRealTimeSrcBpsData(const DescribeScdnDomainRealTimeSrcBpsDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainRealTimeSrcBpsDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainRealTimeSrcBpsDataOutcome(DescribeScdnDomainRealTimeSrcBpsDataResult(outcome.result())); - else - return DescribeScdnDomainRealTimeSrcBpsDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainRealTimeSrcBpsDataAsync(const DescribeScdnDomainRealTimeSrcBpsDataRequest& request, const DescribeScdnDomainRealTimeSrcBpsDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainRealTimeSrcBpsData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainRealTimeSrcBpsDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeSrcBpsDataCallable(const DescribeScdnDomainRealTimeSrcBpsDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainRealTimeSrcBpsData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ScdnClient::DescribeScdnDomainIspDataOutcome ScdnClient::describeScdnDomainIspData(const DescribeScdnDomainIspDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeScdnDomainIspDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeScdnDomainIspDataOutcome(DescribeScdnDomainIspDataResult(outcome.result())); - else - return DescribeScdnDomainIspDataOutcome(outcome.error()); -} - -void ScdnClient::describeScdnDomainIspDataAsync(const DescribeScdnDomainIspDataRequest& request, const DescribeScdnDomainIspDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeScdnDomainIspData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ScdnClient::DescribeScdnDomainIspDataOutcomeCallable ScdnClient::describeScdnDomainIspDataCallable(const DescribeScdnDomainIspDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeScdnDomainIspData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ScdnClient::DescribeScdnRefreshTasksOutcome ScdnClient::describeScdnRefreshTasks(const DescribeScdnRefreshTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1707,42 @@ ScdnClient::DescribeScdnRefreshTasksOutcomeCallable ScdnClient::describeScdnRefr return task->get_future(); } +ScdnClient::DescribeScdnDomainRealTimeSrcBpsDataOutcome ScdnClient::describeScdnDomainRealTimeSrcBpsData(const DescribeScdnDomainRealTimeSrcBpsDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeScdnDomainRealTimeSrcBpsDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeScdnDomainRealTimeSrcBpsDataOutcome(DescribeScdnDomainRealTimeSrcBpsDataResult(outcome.result())); + else + return DescribeScdnDomainRealTimeSrcBpsDataOutcome(outcome.error()); +} + +void ScdnClient::describeScdnDomainRealTimeSrcBpsDataAsync(const DescribeScdnDomainRealTimeSrcBpsDataRequest& request, const DescribeScdnDomainRealTimeSrcBpsDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeScdnDomainRealTimeSrcBpsData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScdnClient::DescribeScdnDomainRealTimeSrcBpsDataOutcomeCallable ScdnClient::describeScdnDomainRealTimeSrcBpsDataCallable(const DescribeScdnDomainRealTimeSrcBpsDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeScdnDomainRealTimeSrcBpsData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ScdnClient::OpenScdnServiceOutcome ScdnClient::openScdnService(const OpenScdnServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/scdn/src/model/AddScdnDomainRequest.cc b/scdn/src/model/AddScdnDomainRequest.cc index 9ed84e9c3..c3154fd1f 100644 --- a/scdn/src/model/AddScdnDomainRequest.cc +++ b/scdn/src/model/AddScdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string AddScdnDomainRequest::getResourceGroupId()const void AddScdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string AddScdnDomainRequest::getSources()const @@ -44,7 +44,7 @@ std::string AddScdnDomainRequest::getSources()const void AddScdnDomainRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string AddScdnDomainRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string AddScdnDomainRequest::getSecurityToken()const void AddScdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string AddScdnDomainRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddScdnDomainRequest::getOwnerAccount()const void AddScdnDomainRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddScdnDomainRequest::getScope()const @@ -77,7 +77,7 @@ std::string AddScdnDomainRequest::getScope()const void AddScdnDomainRequest::setScope(const std::string& scope) { scope_ = scope; - setParameter("Scope", scope); + setCoreParameter("Scope", scope); } std::string AddScdnDomainRequest::getDomainName()const @@ -88,7 +88,7 @@ std::string AddScdnDomainRequest::getDomainName()const void AddScdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long AddScdnDomainRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddScdnDomainRequest::getOwnerId()const void AddScdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddScdnDomainRequest::getCheckUrl()const @@ -110,17 +110,6 @@ std::string AddScdnDomainRequest::getCheckUrl()const void AddScdnDomainRequest::setCheckUrl(const std::string& checkUrl) { checkUrl_ = checkUrl; - setParameter("CheckUrl", checkUrl); -} - -std::string AddScdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void AddScdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("CheckUrl", checkUrl); } diff --git a/scdn/src/model/AddScdnDomainResult.cc b/scdn/src/model/AddScdnDomainResult.cc index 719b1cab7..0f0f379c5 100644 --- a/scdn/src/model/AddScdnDomainResult.cc +++ b/scdn/src/model/AddScdnDomainResult.cc @@ -35,10 +35,13 @@ AddScdnDomainResult::~AddScdnDomainResult() void AddScdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/BatchDeleteScdnDomainConfigsRequest.cc b/scdn/src/model/BatchDeleteScdnDomainConfigsRequest.cc index 2af530f99..f5ad2e47d 100644 --- a/scdn/src/model/BatchDeleteScdnDomainConfigsRequest.cc +++ b/scdn/src/model/BatchDeleteScdnDomainConfigsRequest.cc @@ -33,7 +33,7 @@ std::string BatchDeleteScdnDomainConfigsRequest::getFunctionNames()const void BatchDeleteScdnDomainConfigsRequest::setFunctionNames(const std::string& functionNames) { functionNames_ = functionNames; - setParameter("FunctionNames", functionNames); + setCoreParameter("FunctionNames", functionNames); } std::string BatchDeleteScdnDomainConfigsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string BatchDeleteScdnDomainConfigsRequest::getSecurityToken()const void BatchDeleteScdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string BatchDeleteScdnDomainConfigsRequest::getDomainNames()const @@ -55,7 +55,7 @@ std::string BatchDeleteScdnDomainConfigsRequest::getDomainNames()const void BatchDeleteScdnDomainConfigsRequest::setDomainNames(const std::string& domainNames) { domainNames_ = domainNames; - setParameter("DomainNames", domainNames); + setCoreParameter("DomainNames", domainNames); } std::string BatchDeleteScdnDomainConfigsRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string BatchDeleteScdnDomainConfigsRequest::getOwnerAccount()const void BatchDeleteScdnDomainConfigsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long BatchDeleteScdnDomainConfigsRequest::getOwnerId()const @@ -77,17 +77,6 @@ long BatchDeleteScdnDomainConfigsRequest::getOwnerId()const void BatchDeleteScdnDomainConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string BatchDeleteScdnDomainConfigsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void BatchDeleteScdnDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/BatchDeleteScdnDomainConfigsResult.cc b/scdn/src/model/BatchDeleteScdnDomainConfigsResult.cc index 82978374e..876b22024 100644 --- a/scdn/src/model/BatchDeleteScdnDomainConfigsResult.cc +++ b/scdn/src/model/BatchDeleteScdnDomainConfigsResult.cc @@ -35,10 +35,13 @@ BatchDeleteScdnDomainConfigsResult::~BatchDeleteScdnDomainConfigsResult() void BatchDeleteScdnDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/BatchSetScdnDomainConfigsRequest.cc b/scdn/src/model/BatchSetScdnDomainConfigsRequest.cc new file mode 100644 index 000000000..7361c78fd --- /dev/null +++ b/scdn/src/model/BatchSetScdnDomainConfigsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Scdn::Model::BatchSetScdnDomainConfigsRequest; + +BatchSetScdnDomainConfigsRequest::BatchSetScdnDomainConfigsRequest() : + RpcServiceRequest("scdn", "2017-11-15", "BatchSetScdnDomainConfigs") +{} + +BatchSetScdnDomainConfigsRequest::~BatchSetScdnDomainConfigsRequest() +{} + +std::string BatchSetScdnDomainConfigsRequest::getFunctions()const +{ + return functions_; +} + +void BatchSetScdnDomainConfigsRequest::setFunctions(const std::string& functions) +{ + functions_ = functions; + setCoreParameter("Functions", functions); +} + +std::string BatchSetScdnDomainConfigsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void BatchSetScdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string BatchSetScdnDomainConfigsRequest::getDomainNames()const +{ + return domainNames_; +} + +void BatchSetScdnDomainConfigsRequest::setDomainNames(const std::string& domainNames) +{ + domainNames_ = domainNames; + setCoreParameter("DomainNames", domainNames); +} + +std::string BatchSetScdnDomainConfigsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void BatchSetScdnDomainConfigsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long BatchSetScdnDomainConfigsRequest::getOwnerId()const +{ + return ownerId_; +} + +void BatchSetScdnDomainConfigsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/scdn/src/model/BatchSetScdnDomainConfigsResult.cc b/scdn/src/model/BatchSetScdnDomainConfigsResult.cc new file mode 100644 index 000000000..9ca7667b2 --- /dev/null +++ b/scdn/src/model/BatchSetScdnDomainConfigsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Scdn; +using namespace AlibabaCloud::Scdn::Model; + +BatchSetScdnDomainConfigsResult::BatchSetScdnDomainConfigsResult() : + ServiceResult() +{} + +BatchSetScdnDomainConfigsResult::BatchSetScdnDomainConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchSetScdnDomainConfigsResult::~BatchSetScdnDomainConfigsResult() +{} + +void BatchSetScdnDomainConfigsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/scdn/src/model/BatchUpdateScdnDomainRequest.cc b/scdn/src/model/BatchUpdateScdnDomainRequest.cc index b86b8846b..a6dbbf2aa 100644 --- a/scdn/src/model/BatchUpdateScdnDomainRequest.cc +++ b/scdn/src/model/BatchUpdateScdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string BatchUpdateScdnDomainRequest::getTopLevelDomain()const void BatchUpdateScdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) { topLevelDomain_ = topLevelDomain; - setParameter("TopLevelDomain", topLevelDomain); + setCoreParameter("TopLevelDomain", topLevelDomain); } std::string BatchUpdateScdnDomainRequest::getResourceGroupId()const @@ -44,7 +44,7 @@ std::string BatchUpdateScdnDomainRequest::getResourceGroupId()const void BatchUpdateScdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string BatchUpdateScdnDomainRequest::getSources()const @@ -55,7 +55,7 @@ std::string BatchUpdateScdnDomainRequest::getSources()const void BatchUpdateScdnDomainRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string BatchUpdateScdnDomainRequest::getSecurityToken()const @@ -66,7 +66,7 @@ std::string BatchUpdateScdnDomainRequest::getSecurityToken()const void BatchUpdateScdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string BatchUpdateScdnDomainRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string BatchUpdateScdnDomainRequest::getDomainName()const void BatchUpdateScdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long BatchUpdateScdnDomainRequest::getOwnerId()const @@ -88,17 +88,6 @@ long BatchUpdateScdnDomainRequest::getOwnerId()const void BatchUpdateScdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string BatchUpdateScdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void BatchUpdateScdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/BatchUpdateScdnDomainResult.cc b/scdn/src/model/BatchUpdateScdnDomainResult.cc index bde2ccf57..12cccbde3 100644 --- a/scdn/src/model/BatchUpdateScdnDomainResult.cc +++ b/scdn/src/model/BatchUpdateScdnDomainResult.cc @@ -35,10 +35,13 @@ BatchUpdateScdnDomainResult::~BatchUpdateScdnDomainResult() void BatchUpdateScdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/CheckScdnServiceRequest.cc b/scdn/src/model/CheckScdnServiceRequest.cc index 3abb41113..f199314b9 100644 --- a/scdn/src/model/CheckScdnServiceRequest.cc +++ b/scdn/src/model/CheckScdnServiceRequest.cc @@ -33,7 +33,7 @@ std::string CheckScdnServiceRequest::getSecurityToken()const void CheckScdnServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long CheckScdnServiceRequest::getOwnerId()const @@ -44,17 +44,6 @@ long CheckScdnServiceRequest::getOwnerId()const void CheckScdnServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CheckScdnServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CheckScdnServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/CheckScdnServiceResult.cc b/scdn/src/model/CheckScdnServiceResult.cc index c024879ee..b8cd12bc5 100644 --- a/scdn/src/model/CheckScdnServiceResult.cc +++ b/scdn/src/model/CheckScdnServiceResult.cc @@ -35,10 +35,13 @@ CheckScdnServiceResult::~CheckScdnServiceResult() void CheckScdnServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Enabled"].isNull()) enabled_ = value["Enabled"].asString() == "true"; diff --git a/scdn/src/model/DeleteScdnDomainRequest.cc b/scdn/src/model/DeleteScdnDomainRequest.cc index 344feb8b6..7b95ba2ae 100644 --- a/scdn/src/model/DeleteScdnDomainRequest.cc +++ b/scdn/src/model/DeleteScdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string DeleteScdnDomainRequest::getResourceGroupId()const void DeleteScdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DeleteScdnDomainRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DeleteScdnDomainRequest::getSecurityToken()const void DeleteScdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DeleteScdnDomainRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteScdnDomainRequest::getOwnerAccount()const void DeleteScdnDomainRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteScdnDomainRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string DeleteScdnDomainRequest::getDomainName()const void DeleteScdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DeleteScdnDomainRequest::getOwnerId()const @@ -77,17 +77,6 @@ long DeleteScdnDomainRequest::getOwnerId()const void DeleteScdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteScdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteScdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DeleteScdnDomainResult.cc b/scdn/src/model/DeleteScdnDomainResult.cc index 6f2d63618..8970939a4 100644 --- a/scdn/src/model/DeleteScdnDomainResult.cc +++ b/scdn/src/model/DeleteScdnDomainResult.cc @@ -35,10 +35,13 @@ DeleteScdnDomainResult::~DeleteScdnDomainResult() void DeleteScdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/DescribeScdnCertificateDetailRequest.cc b/scdn/src/model/DescribeScdnCertificateDetailRequest.cc index b3bce105b..55c77434f 100644 --- a/scdn/src/model/DescribeScdnCertificateDetailRequest.cc +++ b/scdn/src/model/DescribeScdnCertificateDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnCertificateDetailRequest::getSecurityToken()const void DescribeScdnCertificateDetailRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnCertificateDetailRequest::getCertName()const @@ -44,7 +44,7 @@ std::string DescribeScdnCertificateDetailRequest::getCertName()const void DescribeScdnCertificateDetailRequest::setCertName(const std::string& certName) { certName_ = certName; - setParameter("CertName", certName); + setCoreParameter("CertName", certName); } long DescribeScdnCertificateDetailRequest::getOwnerId()const @@ -55,17 +55,6 @@ long DescribeScdnCertificateDetailRequest::getOwnerId()const void DescribeScdnCertificateDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnCertificateDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnCertificateDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnCertificateDetailResult.cc b/scdn/src/model/DescribeScdnCertificateDetailResult.cc index ecb00fc13..cb01cf286 100644 --- a/scdn/src/model/DescribeScdnCertificateDetailResult.cc +++ b/scdn/src/model/DescribeScdnCertificateDetailResult.cc @@ -35,10 +35,13 @@ DescribeScdnCertificateDetailResult::~DescribeScdnCertificateDetailResult() void DescribeScdnCertificateDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Cert"].isNull()) cert_ = value["Cert"].asString(); diff --git a/scdn/src/model/DescribeScdnCertificateListRequest.cc b/scdn/src/model/DescribeScdnCertificateListRequest.cc index 10a03e37a..63658a4e3 100644 --- a/scdn/src/model/DescribeScdnCertificateListRequest.cc +++ b/scdn/src/model/DescribeScdnCertificateListRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnCertificateListRequest::getSecurityToken()const void DescribeScdnCertificateListRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnCertificateListRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeScdnCertificateListRequest::getDomainName()const void DescribeScdnCertificateListRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeScdnCertificateListRequest::getOwnerId()const @@ -55,17 +55,6 @@ long DescribeScdnCertificateListRequest::getOwnerId()const void DescribeScdnCertificateListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnCertificateListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnCertificateListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnCertificateListResult.cc b/scdn/src/model/DescribeScdnCertificateListResult.cc index 98d71391f..9b05f9360 100644 --- a/scdn/src/model/DescribeScdnCertificateListResult.cc +++ b/scdn/src/model/DescribeScdnCertificateListResult.cc @@ -35,10 +35,13 @@ DescribeScdnCertificateListResult::~DescribeScdnCertificateListResult() void DescribeScdnCertificateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto certificateListModelNode = value["CertificateListModel"]; if(!certificateListModelNode["Count"].isNull()) diff --git a/scdn/src/model/DescribeScdnDomainBpsDataRequest.cc b/scdn/src/model/DescribeScdnDomainBpsDataRequest.cc index 92fdee75c..5326e9f15 100644 --- a/scdn/src/model/DescribeScdnDomainBpsDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainBpsDataRequest::getCallerParentId()const void DescribeScdnDomainBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainBpsDataRequest::getProxy_original_security_transport()con void DescribeScdnDomainBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainBpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainBpsDataRequest::getLocationNameEn()const void DescribeScdnDomainBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeScdnDomainBpsDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainBpsDataRequest::getStartTime()const void DescribeScdnDomainBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainBpsDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainBpsDataRequest::getIspNameEn()const void DescribeScdnDomainBpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeScdnDomainBpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainBpsDataRequest::getProxy_original_source_ip()const void DescribeScdnDomainBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainBpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainBpsDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainBpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainBpsDataRequest::getCallerType()const void DescribeScdnDomainBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainBpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainBpsDataRequest::getAccessKeyId()const void DescribeScdnDomainBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainBpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainBpsDataRequest::getSecurityToken()const void DescribeScdnDomainBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainBpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainBpsDataRequest::getRequestContent()const void DescribeScdnDomainBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainBpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainBpsDataRequest::getCallerBidEmail()const void DescribeScdnDomainBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainBpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainBpsDataRequest::getCallerUidEmail()const void DescribeScdnDomainBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainBpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeScdnDomainBpsDataRequest::getCallerUid()const void DescribeScdnDomainBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainBpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainBpsDataRequest::getApp_ip()const void DescribeScdnDomainBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainBpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainBpsDataRequest::getPopProduct()const void DescribeScdnDomainBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainBpsDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainBpsDataRequest::getProduct()const void DescribeScdnDomainBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainBpsDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainBpsDataRequest::getDomainName()const void DescribeScdnDomainBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainBpsDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainBpsDataRequest::getEndTime()const void DescribeScdnDomainBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainBpsDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainBpsDataRequest::getCallerBid()const void DescribeScdnDomainBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainBpsDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeScdnDomainBpsDataRequest::getOwnerId()const void DescribeScdnDomainBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainBpsDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeScdnDomainBpsDataRequest::getVersion()const void DescribeScdnDomainBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainBpsDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainBpsDataRequest::getProxy_trust_transport_info()const void DescribeScdnDomainBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainBpsDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainBpsDataRequest::getAk_mfa_present()const void DescribeScdnDomainBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainBpsDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeScdnDomainBpsDataRequest::getSecurity_transport()const void DescribeScdnDomainBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainBpsDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeScdnDomainBpsDataRequest::getRequestId()const void DescribeScdnDomainBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainBpsDataRequest::getInterval()const @@ -319,6 +319,6 @@ std::string DescribeScdnDomainBpsDataRequest::getInterval()const void DescribeScdnDomainBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/scdn/src/model/DescribeScdnDomainBpsDataResult.cc b/scdn/src/model/DescribeScdnDomainBpsDataResult.cc index fd7054181..f4ab6d64b 100644 --- a/scdn/src/model/DescribeScdnDomainBpsDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainBpsDataResult::~DescribeScdnDomainBpsDataResult() void DescribeScdnDomainBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"]; for (auto value : allBpsDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainCertificateInfoRequest.cc b/scdn/src/model/DescribeScdnDomainCertificateInfoRequest.cc index b683a578b..da9e8448c 100644 --- a/scdn/src/model/DescribeScdnDomainCertificateInfoRequest.cc +++ b/scdn/src/model/DescribeScdnDomainCertificateInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getApp_ip()const void DescribeScdnDomainCertificateInfoRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainCertificateInfoRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getPopProduct()const void DescribeScdnDomainCertificateInfoRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainCertificateInfoRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getProduct()const void DescribeScdnDomainCertificateInfoRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeScdnDomainCertificateInfoRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeScdnDomainCertificateInfoRequest::getCallerParentId()const void DescribeScdnDomainCertificateInfoRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeScdnDomainCertificateInfoRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getDomainName()const void DescribeScdnDomainCertificateInfoRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeScdnDomainCertificateInfoRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeScdnDomainCertificateInfoRequest::getProxy_original_security_transp void DescribeScdnDomainCertificateInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainCertificateInfoRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getCallerBid()const void DescribeScdnDomainCertificateInfoRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainCertificateInfoRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeScdnDomainCertificateInfoRequest::getOwnerId()const void DescribeScdnDomainCertificateInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainCertificateInfoRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getProxy_original_source_i void DescribeScdnDomainCertificateInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainCertificateInfoRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getVersion()const void DescribeScdnDomainCertificateInfoRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeScdnDomainCertificateInfoRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getOwnerIdLoginEmail()cons void DescribeScdnDomainCertificateInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainCertificateInfoRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getCallerType()const void DescribeScdnDomainCertificateInfoRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeScdnDomainCertificateInfoRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeScdnDomainCertificateInfoRequest::getProxy_trust_transport_info()co void DescribeScdnDomainCertificateInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainCertificateInfoRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeScdnDomainCertificateInfoRequest::getAk_mfa_present()const void DescribeScdnDomainCertificateInfoRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeScdnDomainCertificateInfoRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getAccessKeyId()const void DescribeScdnDomainCertificateInfoRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeScdnDomainCertificateInfoRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeScdnDomainCertificateInfoRequest::getSecurity_transport()const void DescribeScdnDomainCertificateInfoRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainCertificateInfoRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getSecurityToken()const void DescribeScdnDomainCertificateInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainCertificateInfoRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getRequestId()const void DescribeScdnDomainCertificateInfoRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainCertificateInfoRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getRequestContent()const void DescribeScdnDomainCertificateInfoRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainCertificateInfoRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getCallerBidEmail()const void DescribeScdnDomainCertificateInfoRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainCertificateInfoRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeScdnDomainCertificateInfoRequest::getCallerUidEmail()const void DescribeScdnDomainCertificateInfoRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainCertificateInfoRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeScdnDomainCertificateInfoRequest::getCallerUid()const void DescribeScdnDomainCertificateInfoRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/scdn/src/model/DescribeScdnDomainCertificateInfoResult.cc b/scdn/src/model/DescribeScdnDomainCertificateInfoResult.cc index b421bcad5..9066a12a4 100644 --- a/scdn/src/model/DescribeScdnDomainCertificateInfoResult.cc +++ b/scdn/src/model/DescribeScdnDomainCertificateInfoResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainCertificateInfoResult::~DescribeScdnDomainCertificateInfoResul void DescribeScdnDomainCertificateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCertInfos = value["CertInfos"]["CertInfo"]; for (auto value : allCertInfos) diff --git a/scdn/src/model/DescribeScdnDomainCnameRequest.cc b/scdn/src/model/DescribeScdnDomainCnameRequest.cc index 18934dff0..ea95fad9e 100644 --- a/scdn/src/model/DescribeScdnDomainCnameRequest.cc +++ b/scdn/src/model/DescribeScdnDomainCnameRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnDomainCnameRequest::getApp_ip()const void DescribeScdnDomainCnameRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainCnameRequest::getPopProduct()const @@ -44,7 +44,7 @@ std::string DescribeScdnDomainCnameRequest::getPopProduct()const void DescribeScdnDomainCnameRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainCnameRequest::getProduct()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainCnameRequest::getProduct()const void DescribeScdnDomainCnameRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } long DescribeScdnDomainCnameRequest::getCallerParentId()const @@ -66,7 +66,7 @@ long DescribeScdnDomainCnameRequest::getCallerParentId()const void DescribeScdnDomainCnameRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string DescribeScdnDomainCnameRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainCnameRequest::getDomainName()const void DescribeScdnDomainCnameRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } bool DescribeScdnDomainCnameRequest::getProxy_original_security_transport()const @@ -88,7 +88,7 @@ bool DescribeScdnDomainCnameRequest::getProxy_original_security_transport()const void DescribeScdnDomainCnameRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainCnameRequest::getCallerBid()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainCnameRequest::getCallerBid()const void DescribeScdnDomainCnameRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainCnameRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeScdnDomainCnameRequest::getOwnerId()const void DescribeScdnDomainCnameRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainCnameRequest::getProxy_original_source_ip()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainCnameRequest::getProxy_original_source_ip()const void DescribeScdnDomainCnameRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainCnameRequest::getVersion()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainCnameRequest::getVersion()const void DescribeScdnDomainCnameRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } std::string DescribeScdnDomainCnameRequest::getOwnerIdLoginEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainCnameRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainCnameRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainCnameRequest::getCallerType()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainCnameRequest::getCallerType()const void DescribeScdnDomainCnameRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } bool DescribeScdnDomainCnameRequest::getProxy_trust_transport_info()const @@ -165,7 +165,7 @@ bool DescribeScdnDomainCnameRequest::getProxy_trust_transport_info()const void DescribeScdnDomainCnameRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainCnameRequest::getAk_mfa_present()const @@ -176,7 +176,7 @@ bool DescribeScdnDomainCnameRequest::getAk_mfa_present()const void DescribeScdnDomainCnameRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeScdnDomainCnameRequest::getAccessKeyId()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainCnameRequest::getAccessKeyId()const void DescribeScdnDomainCnameRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } bool DescribeScdnDomainCnameRequest::getSecurity_transport()const @@ -198,7 +198,7 @@ bool DescribeScdnDomainCnameRequest::getSecurity_transport()const void DescribeScdnDomainCnameRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainCnameRequest::getSecurityToken()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainCnameRequest::getSecurityToken()const void DescribeScdnDomainCnameRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainCnameRequest::getRequestId()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainCnameRequest::getRequestId()const void DescribeScdnDomainCnameRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainCnameRequest::getRequestContent()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainCnameRequest::getRequestContent()const void DescribeScdnDomainCnameRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainCnameRequest::getCallerBidEmail()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainCnameRequest::getCallerBidEmail()const void DescribeScdnDomainCnameRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainCnameRequest::getCallerUidEmail()const @@ -253,7 +253,7 @@ std::string DescribeScdnDomainCnameRequest::getCallerUidEmail()const void DescribeScdnDomainCnameRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainCnameRequest::getCallerUid()const @@ -264,6 +264,6 @@ long DescribeScdnDomainCnameRequest::getCallerUid()const void DescribeScdnDomainCnameRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } diff --git a/scdn/src/model/DescribeScdnDomainCnameResult.cc b/scdn/src/model/DescribeScdnDomainCnameResult.cc index a79cb6c1c..19ce6a1c5 100644 --- a/scdn/src/model/DescribeScdnDomainCnameResult.cc +++ b/scdn/src/model/DescribeScdnDomainCnameResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainCnameResult::~DescribeScdnDomainCnameResult() void DescribeScdnDomainCnameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCnameDatas = value["CnameDatas"]["Data"]; for (auto value : allCnameDatas) diff --git a/scdn/src/model/DescribeScdnDomainConfigsRequest.cc b/scdn/src/model/DescribeScdnDomainConfigsRequest.cc index e11ca3f49..24044979c 100644 --- a/scdn/src/model/DescribeScdnDomainConfigsRequest.cc +++ b/scdn/src/model/DescribeScdnDomainConfigsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnDomainConfigsRequest::getFunctionNames()const void DescribeScdnDomainConfigsRequest::setFunctionNames(const std::string& functionNames) { functionNames_ = functionNames; - setParameter("FunctionNames", functionNames); + setCoreParameter("FunctionNames", functionNames); } std::string DescribeScdnDomainConfigsRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string DescribeScdnDomainConfigsRequest::getSecurityToken()const void DescribeScdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainConfigsRequest::getDomainName()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainConfigsRequest::getDomainName()const void DescribeScdnDomainConfigsRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeScdnDomainConfigsRequest::getOwnerId()const @@ -66,17 +66,6 @@ long DescribeScdnDomainConfigsRequest::getOwnerId()const void DescribeScdnDomainConfigsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnDomainConfigsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnDomainConfigsResult.cc b/scdn/src/model/DescribeScdnDomainConfigsResult.cc index 6d6ec4d1c..6de7e662f 100644 --- a/scdn/src/model/DescribeScdnDomainConfigsResult.cc +++ b/scdn/src/model/DescribeScdnDomainConfigsResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainConfigsResult::~DescribeScdnDomainConfigsResult() void DescribeScdnDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainConfigs = value["DomainConfigs"]["DomainConfig"]; for (auto value : allDomainConfigs) diff --git a/scdn/src/model/DescribeScdnDomainDetailRequest.cc b/scdn/src/model/DescribeScdnDomainDetailRequest.cc index f63bd32d0..4e73dcf7f 100644 --- a/scdn/src/model/DescribeScdnDomainDetailRequest.cc +++ b/scdn/src/model/DescribeScdnDomainDetailRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnDomainDetailRequest::getSecurityToken()const void DescribeScdnDomainDetailRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainDetailRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeScdnDomainDetailRequest::getDomainName()const void DescribeScdnDomainDetailRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long DescribeScdnDomainDetailRequest::getOwnerId()const @@ -55,17 +55,6 @@ long DescribeScdnDomainDetailRequest::getOwnerId()const void DescribeScdnDomainDetailRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnDomainDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnDomainDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnDomainDetailResult.cc b/scdn/src/model/DescribeScdnDomainDetailResult.cc index b8a147730..2a79b64ed 100644 --- a/scdn/src/model/DescribeScdnDomainDetailResult.cc +++ b/scdn/src/model/DescribeScdnDomainDetailResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainDetailResult::~DescribeScdnDomainDetailResult() void DescribeScdnDomainDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto domainDetailNode = value["DomainDetail"]; if(!domainDetailNode["GmtCreated"].isNull()) diff --git a/scdn/src/model/DescribeScdnDomainHitRateDataRequest.cc b/scdn/src/model/DescribeScdnDomainHitRateDataRequest.cc index 4b74eb2a2..afc5d9eff 100644 --- a/scdn/src/model/DescribeScdnDomainHitRateDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainHitRateDataRequest::getCallerParentId()const void DescribeScdnDomainHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainHitRateDataRequest::getProxy_original_security_transport( void DescribeScdnDomainHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getStartTime()const void DescribeScdnDomainHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getProxy_original_source_ip()c void DescribeScdnDomainHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getCallerType()const void DescribeScdnDomainHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getAccessKeyId()const void DescribeScdnDomainHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getSecurityToken()const void DescribeScdnDomainHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getRequestContent()const void DescribeScdnDomainHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getCallerBidEmail()const void DescribeScdnDomainHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getCallerUidEmail()const void DescribeScdnDomainHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainHitRateDataRequest::getCallerUid()const void DescribeScdnDomainHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getApp_ip()const void DescribeScdnDomainHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getPopProduct()const void DescribeScdnDomainHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainHitRateDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getProduct()const void DescribeScdnDomainHitRateDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainHitRateDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getDomainName()const void DescribeScdnDomainHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainHitRateDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getEndTime()const void DescribeScdnDomainHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainHitRateDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getCallerBid()const void DescribeScdnDomainHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainHitRateDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainHitRateDataRequest::getOwnerId()const void DescribeScdnDomainHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainHitRateDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getVersion()const void DescribeScdnDomainHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainHitRateDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainHitRateDataRequest::getProxy_trust_transport_info()const void DescribeScdnDomainHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainHitRateDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainHitRateDataRequest::getAk_mfa_present()const void DescribeScdnDomainHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainHitRateDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainHitRateDataRequest::getSecurity_transport()const void DescribeScdnDomainHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainHitRateDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getRequestId()const void DescribeScdnDomainHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainHitRateDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeScdnDomainHitRateDataRequest::getInterval()const void DescribeScdnDomainHitRateDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainHitRateDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainHitRateDataRequest::getFields()const void DescribeScdnDomainHitRateDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainHitRateDataResult.cc b/scdn/src/model/DescribeScdnDomainHitRateDataResult.cc index f0c84450d..78ec70c41 100644 --- a/scdn/src/model/DescribeScdnDomainHitRateDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainHitRateDataResult::~DescribeScdnDomainHitRateDataResult() void DescribeScdnDomainHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHitRatePerInterval = value["HitRatePerInterval"]["DataModule"]; for (auto value : allHitRatePerInterval) diff --git a/scdn/src/model/DescribeScdnDomainHttpCodeDataRequest.cc b/scdn/src/model/DescribeScdnDomainHttpCodeDataRequest.cc index 588af51bb..c1574c9cd 100644 --- a/scdn/src/model/DescribeScdnDomainHttpCodeDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainHttpCodeDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainHttpCodeDataRequest::getCallerParentId()const void DescribeScdnDomainHttpCodeDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainHttpCodeDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainHttpCodeDataRequest::getProxy_original_security_transport void DescribeScdnDomainHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainHttpCodeDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getLocationNameEn()const void DescribeScdnDomainHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeScdnDomainHttpCodeDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getStartTime()const void DescribeScdnDomainHttpCodeDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainHttpCodeDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getIspNameEn()const void DescribeScdnDomainHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeScdnDomainHttpCodeDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getProxy_original_source_ip() void DescribeScdnDomainHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainHttpCodeDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainHttpCodeDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getCallerType()const void DescribeScdnDomainHttpCodeDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainHttpCodeDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getAccessKeyId()const void DescribeScdnDomainHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainHttpCodeDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getSecurityToken()const void DescribeScdnDomainHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainHttpCodeDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getRequestContent()const void DescribeScdnDomainHttpCodeDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainHttpCodeDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getCallerBidEmail()const void DescribeScdnDomainHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainHttpCodeDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getCallerUidEmail()const void DescribeScdnDomainHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainHttpCodeDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeScdnDomainHttpCodeDataRequest::getCallerUid()const void DescribeScdnDomainHttpCodeDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainHttpCodeDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getApp_ip()const void DescribeScdnDomainHttpCodeDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainHttpCodeDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getPopProduct()const void DescribeScdnDomainHttpCodeDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainHttpCodeDataRequest::getDomainName()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getDomainName()const void DescribeScdnDomainHttpCodeDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainHttpCodeDataRequest::getEndTime()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getEndTime()const void DescribeScdnDomainHttpCodeDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainHttpCodeDataRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getCallerBid()const void DescribeScdnDomainHttpCodeDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainHttpCodeDataRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeScdnDomainHttpCodeDataRequest::getOwnerId()const void DescribeScdnDomainHttpCodeDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainHttpCodeDataRequest::getVersion()const @@ -253,7 +253,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getVersion()const void DescribeScdnDomainHttpCodeDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainHttpCodeDataRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainHttpCodeDataRequest::getProxy_trust_transport_info()const void DescribeScdnDomainHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainHttpCodeDataRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainHttpCodeDataRequest::getAk_mfa_present()const void DescribeScdnDomainHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainHttpCodeDataRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainHttpCodeDataRequest::getSecurity_transport()const void DescribeScdnDomainHttpCodeDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainHttpCodeDataRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getRequestId()const void DescribeScdnDomainHttpCodeDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainHttpCodeDataRequest::getInterval()const @@ -308,7 +308,7 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getInterval()const void DescribeScdnDomainHttpCodeDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainHttpCodeDataRequest::getFields()const @@ -319,6 +319,6 @@ std::string DescribeScdnDomainHttpCodeDataRequest::getFields()const void DescribeScdnDomainHttpCodeDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainHttpCodeDataResult.cc b/scdn/src/model/DescribeScdnDomainHttpCodeDataResult.cc index c01c3c25b..4f3849171 100644 --- a/scdn/src/model/DescribeScdnDomainHttpCodeDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainHttpCodeDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainHttpCodeDataResult::~DescribeScdnDomainHttpCodeDataResult() void DescribeScdnDomainHttpCodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataPerInterval = value["DataPerInterval"]["DataModule"]; for (auto value : allDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainIspDataRequest.cc b/scdn/src/model/DescribeScdnDomainIspDataRequest.cc index 9be426ae6..6bcab31ad 100644 --- a/scdn/src/model/DescribeScdnDomainIspDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainIspDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainIspDataRequest::getCallerParentId()const void DescribeScdnDomainIspDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainIspDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainIspDataRequest::getProxy_original_security_transport()con void DescribeScdnDomainIspDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainIspDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainIspDataRequest::getStartTime()const void DescribeScdnDomainIspDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainIspDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainIspDataRequest::getProxy_original_source_ip()const void DescribeScdnDomainIspDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainIspDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainIspDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainIspDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainIspDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainIspDataRequest::getCallerType()const void DescribeScdnDomainIspDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainIspDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainIspDataRequest::getAccessKeyId()const void DescribeScdnDomainIspDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainIspDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainIspDataRequest::getSecurityToken()const void DescribeScdnDomainIspDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainIspDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainIspDataRequest::getRequestContent()const void DescribeScdnDomainIspDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainIspDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainIspDataRequest::getCallerBidEmail()const void DescribeScdnDomainIspDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainIspDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainIspDataRequest::getCallerUidEmail()const void DescribeScdnDomainIspDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainIspDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainIspDataRequest::getCallerUid()const void DescribeScdnDomainIspDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainIspDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainIspDataRequest::getApp_ip()const void DescribeScdnDomainIspDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainIspDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainIspDataRequest::getPopProduct()const void DescribeScdnDomainIspDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainIspDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainIspDataRequest::getProduct()const void DescribeScdnDomainIspDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainIspDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainIspDataRequest::getDomainName()const void DescribeScdnDomainIspDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainIspDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainIspDataRequest::getEndTime()const void DescribeScdnDomainIspDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainIspDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainIspDataRequest::getCallerBid()const void DescribeScdnDomainIspDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainIspDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainIspDataRequest::getOwnerId()const void DescribeScdnDomainIspDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainIspDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainIspDataRequest::getVersion()const void DescribeScdnDomainIspDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainIspDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainIspDataRequest::getProxy_trust_transport_info()const void DescribeScdnDomainIspDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainIspDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainIspDataRequest::getAk_mfa_present()const void DescribeScdnDomainIspDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainIspDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainIspDataRequest::getSecurity_transport()const void DescribeScdnDomainIspDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainIspDataRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeScdnDomainIspDataRequest::getRequestId()const void DescribeScdnDomainIspDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainIspDataResult.cc b/scdn/src/model/DescribeScdnDomainIspDataResult.cc index a005bcb5f..ce3db6710 100644 --- a/scdn/src/model/DescribeScdnDomainIspDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainIspDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainIspDataResult::~DescribeScdnDomainIspDataResult() void DescribeScdnDomainIspDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allValue = value["Value"]["ISPProportionData"]; for (auto value : allValue) diff --git a/scdn/src/model/DescribeScdnDomainLogRequest.cc b/scdn/src/model/DescribeScdnDomainLogRequest.cc index f7b282033..b4136d71c 100644 --- a/scdn/src/model/DescribeScdnDomainLogRequest.cc +++ b/scdn/src/model/DescribeScdnDomainLogRequest.cc @@ -25,6 +25,17 @@ DescribeScdnDomainLogRequest::DescribeScdnDomainLogRequest() : DescribeScdnDomainLogRequest::~DescribeScdnDomainLogRequest() {} +long DescribeScdnDomainLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeScdnDomainLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + long DescribeScdnDomainLogRequest::getCallerParentId()const { return callerParentId_; @@ -33,7 +44,7 @@ long DescribeScdnDomainLogRequest::getCallerParentId()const void DescribeScdnDomainLogRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainLogRequest::getProxy_original_security_transport()const @@ -44,7 +55,7 @@ bool DescribeScdnDomainLogRequest::getProxy_original_security_transport()const void DescribeScdnDomainLogRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainLogRequest::getStartTime()const @@ -55,7 +66,7 @@ std::string DescribeScdnDomainLogRequest::getStartTime()const void DescribeScdnDomainLogRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainLogRequest::getProxy_original_source_ip()const @@ -66,7 +77,7 @@ std::string DescribeScdnDomainLogRequest::getProxy_original_source_ip()const void DescribeScdnDomainLogRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainLogRequest::getOwnerIdLoginEmail()const @@ -77,7 +88,7 @@ std::string DescribeScdnDomainLogRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainLogRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainLogRequest::getCallerType()const @@ -88,7 +99,7 @@ std::string DescribeScdnDomainLogRequest::getCallerType()const void DescribeScdnDomainLogRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } long DescribeScdnDomainLogRequest::getPageNumber()const @@ -99,7 +110,7 @@ long DescribeScdnDomainLogRequest::getPageNumber()const void DescribeScdnDomainLogRequest::setPageNumber(long pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeScdnDomainLogRequest::getAccessKeyId()const @@ -110,7 +121,7 @@ std::string DescribeScdnDomainLogRequest::getAccessKeyId()const void DescribeScdnDomainLogRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainLogRequest::getSecurityToken()const @@ -121,7 +132,7 @@ std::string DescribeScdnDomainLogRequest::getSecurityToken()const void DescribeScdnDomainLogRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainLogRequest::getRequestContent()const @@ -132,7 +143,7 @@ std::string DescribeScdnDomainLogRequest::getRequestContent()const void DescribeScdnDomainLogRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } long DescribeScdnDomainLogRequest::getPageSize()const @@ -143,7 +154,7 @@ long DescribeScdnDomainLogRequest::getPageSize()const void DescribeScdnDomainLogRequest::setPageSize(long pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeScdnDomainLogRequest::getCallerBidEmail()const @@ -154,7 +165,7 @@ std::string DescribeScdnDomainLogRequest::getCallerBidEmail()const void DescribeScdnDomainLogRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainLogRequest::getCallerUidEmail()const @@ -165,7 +176,7 @@ std::string DescribeScdnDomainLogRequest::getCallerUidEmail()const void DescribeScdnDomainLogRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainLogRequest::getCallerUid()const @@ -176,7 +187,7 @@ long DescribeScdnDomainLogRequest::getCallerUid()const void DescribeScdnDomainLogRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainLogRequest::getApp_ip()const @@ -187,7 +198,7 @@ std::string DescribeScdnDomainLogRequest::getApp_ip()const void DescribeScdnDomainLogRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainLogRequest::getPopProduct()const @@ -198,18 +209,7 @@ std::string DescribeScdnDomainLogRequest::getPopProduct()const void DescribeScdnDomainLogRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); -} - -std::string DescribeScdnDomainLogRequest::getProduct()const -{ - return product_; -} - -void DescribeScdnDomainLogRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainLogRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainLogRequest::getDomainName()const void DescribeScdnDomainLogRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainLogRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainLogRequest::getEndTime()const void DescribeScdnDomainLogRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainLogRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainLogRequest::getCallerBid()const void DescribeScdnDomainLogRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainLogRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeScdnDomainLogRequest::getOwnerId()const void DescribeScdnDomainLogRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainLogRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeScdnDomainLogRequest::getVersion()const void DescribeScdnDomainLogRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainLogRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainLogRequest::getProxy_trust_transport_info()const void DescribeScdnDomainLogRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainLogRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainLogRequest::getAk_mfa_present()const void DescribeScdnDomainLogRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainLogRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeScdnDomainLogRequest::getSecurity_transport()const void DescribeScdnDomainLogRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainLogRequest::getRequestId()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainLogRequest::getRequestId()const void DescribeScdnDomainLogRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainLogResult.cc b/scdn/src/model/DescribeScdnDomainLogResult.cc index 42b900055..f00984967 100644 --- a/scdn/src/model/DescribeScdnDomainLogResult.cc +++ b/scdn/src/model/DescribeScdnDomainLogResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainLogResult::~DescribeScdnDomainLogResult() void DescribeScdnDomainLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"]; for (auto value : allDomainLogDetails) @@ -46,18 +49,6 @@ void DescribeScdnDomainLogResult::parse(const std::string &payload) DomainLogDetail domainLogDetailsObject; if(!value["LogCount"].isNull()) domainLogDetailsObject.logCount = std::stol(value["LogCount"].asString()); - auto allPageInfos = value["PageInfos"]["PageInfoDetail"]; - for (auto value : allPageInfos) - { - DomainLogDetail::PageInfoDetail pageInfosObject; - if(!value["PageIndex"].isNull()) - pageInfosObject.pageIndex = std::stol(value["PageIndex"].asString()); - if(!value["PageSize"].isNull()) - pageInfosObject.pageSize = std::stol(value["PageSize"].asString()); - if(!value["Total"].isNull()) - pageInfosObject.total = std::stol(value["Total"].asString()); - domainLogDetailsObject.pageInfos.push_back(pageInfosObject); - } auto allLogInfos = value["LogInfos"]["LogInfoDetail"]; for (auto value : allLogInfos) { @@ -74,6 +65,13 @@ void DescribeScdnDomainLogResult::parse(const std::string &payload) logInfosObject.endTime = value["EndTime"].asString(); domainLogDetailsObject.logInfos.push_back(logInfosObject); } + auto pageInfosNode = value["PageInfos"]; + if(!pageInfosNode["PageNumber"].isNull()) + domainLogDetailsObject.pageInfos.pageNumber = std::stol(pageInfosNode["PageNumber"].asString()); + if(!pageInfosNode["PageSize"].isNull()) + domainLogDetailsObject.pageInfos.pageSize = std::stol(pageInfosNode["PageSize"].asString()); + if(!pageInfosNode["Total"].isNull()) + domainLogDetailsObject.pageInfos.total = std::stol(pageInfosNode["Total"].asString()); domainLogDetails_.push_back(domainLogDetailsObject); } if(!value["DomainName"].isNull()) diff --git a/scdn/src/model/DescribeScdnDomainOriginBpsDataRequest.cc b/scdn/src/model/DescribeScdnDomainOriginBpsDataRequest.cc index 3d0854d66..fd00001d4 100644 --- a/scdn/src/model/DescribeScdnDomainOriginBpsDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainOriginBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainOriginBpsDataRequest::getCallerParentId()const void DescribeScdnDomainOriginBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainOriginBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainOriginBpsDataRequest::getProxy_original_security_transpor void DescribeScdnDomainOriginBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainOriginBpsDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getStartTime()const void DescribeScdnDomainOriginBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainOriginBpsDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getProxy_original_source_ip( void DescribeScdnDomainOriginBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainOriginBpsDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainOriginBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainOriginBpsDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getCallerType()const void DescribeScdnDomainOriginBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainOriginBpsDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getAccessKeyId()const void DescribeScdnDomainOriginBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainOriginBpsDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getSecurityToken()const void DescribeScdnDomainOriginBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainOriginBpsDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getRequestContent()const void DescribeScdnDomainOriginBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainOriginBpsDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getCallerBidEmail()const void DescribeScdnDomainOriginBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainOriginBpsDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getCallerUidEmail()const void DescribeScdnDomainOriginBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainOriginBpsDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainOriginBpsDataRequest::getCallerUid()const void DescribeScdnDomainOriginBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainOriginBpsDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getApp_ip()const void DescribeScdnDomainOriginBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainOriginBpsDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getPopProduct()const void DescribeScdnDomainOriginBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainOriginBpsDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getProduct()const void DescribeScdnDomainOriginBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainOriginBpsDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getDomainName()const void DescribeScdnDomainOriginBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainOriginBpsDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getEndTime()const void DescribeScdnDomainOriginBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainOriginBpsDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getCallerBid()const void DescribeScdnDomainOriginBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainOriginBpsDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainOriginBpsDataRequest::getOwnerId()const void DescribeScdnDomainOriginBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainOriginBpsDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getVersion()const void DescribeScdnDomainOriginBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainOriginBpsDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainOriginBpsDataRequest::getProxy_trust_transport_info()cons void DescribeScdnDomainOriginBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainOriginBpsDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainOriginBpsDataRequest::getAk_mfa_present()const void DescribeScdnDomainOriginBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainOriginBpsDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainOriginBpsDataRequest::getSecurity_transport()const void DescribeScdnDomainOriginBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainOriginBpsDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getRequestId()const void DescribeScdnDomainOriginBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainOriginBpsDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getInterval()const void DescribeScdnDomainOriginBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainOriginBpsDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainOriginBpsDataRequest::getFields()const void DescribeScdnDomainOriginBpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainOriginBpsDataResult.cc b/scdn/src/model/DescribeScdnDomainOriginBpsDataResult.cc index e017713b9..d71f448c9 100644 --- a/scdn/src/model/DescribeScdnDomainOriginBpsDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainOriginBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainOriginBpsDataResult::~DescribeScdnDomainOriginBpsDataResult() void DescribeScdnDomainOriginBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOriginBpsDataPerInterval = value["OriginBpsDataPerInterval"]["DataModule"]; for (auto value : allOriginBpsDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainOriginTrafficDataRequest.cc b/scdn/src/model/DescribeScdnDomainOriginTrafficDataRequest.cc index dbeb378e4..de74cccd9 100644 --- a/scdn/src/model/DescribeScdnDomainOriginTrafficDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainOriginTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainOriginTrafficDataRequest::getCallerParentId()const void DescribeScdnDomainOriginTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainOriginTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainOriginTrafficDataRequest::getProxy_original_security_tran void DescribeScdnDomainOriginTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainOriginTrafficDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getStartTime()const void DescribeScdnDomainOriginTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainOriginTrafficDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getProxy_original_source void DescribeScdnDomainOriginTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainOriginTrafficDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getOwnerIdLoginEmail()co void DescribeScdnDomainOriginTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerType()const void DescribeScdnDomainOriginTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainOriginTrafficDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getAccessKeyId()const void DescribeScdnDomainOriginTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainOriginTrafficDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getSecurityToken()const void DescribeScdnDomainOriginTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainOriginTrafficDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getRequestContent()const void DescribeScdnDomainOriginTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerBidEmail()const void DescribeScdnDomainOriginTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerUidEmail()const void DescribeScdnDomainOriginTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainOriginTrafficDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainOriginTrafficDataRequest::getCallerUid()const void DescribeScdnDomainOriginTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainOriginTrafficDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getApp_ip()const void DescribeScdnDomainOriginTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainOriginTrafficDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getPopProduct()const void DescribeScdnDomainOriginTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainOriginTrafficDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getProduct()const void DescribeScdnDomainOriginTrafficDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainOriginTrafficDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getDomainName()const void DescribeScdnDomainOriginTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainOriginTrafficDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getEndTime()const void DescribeScdnDomainOriginTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getCallerBid()const void DescribeScdnDomainOriginTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainOriginTrafficDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainOriginTrafficDataRequest::getOwnerId()const void DescribeScdnDomainOriginTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainOriginTrafficDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getVersion()const void DescribeScdnDomainOriginTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainOriginTrafficDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainOriginTrafficDataRequest::getProxy_trust_transport_info() void DescribeScdnDomainOriginTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainOriginTrafficDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainOriginTrafficDataRequest::getAk_mfa_present()const void DescribeScdnDomainOriginTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainOriginTrafficDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainOriginTrafficDataRequest::getSecurity_transport()const void DescribeScdnDomainOriginTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainOriginTrafficDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getRequestId()const void DescribeScdnDomainOriginTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainOriginTrafficDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getInterval()const void DescribeScdnDomainOriginTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainOriginTrafficDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainOriginTrafficDataRequest::getFields()const void DescribeScdnDomainOriginTrafficDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainOriginTrafficDataResult.cc b/scdn/src/model/DescribeScdnDomainOriginTrafficDataResult.cc index 75df3a676..447fb13c8 100644 --- a/scdn/src/model/DescribeScdnDomainOriginTrafficDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainOriginTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainOriginTrafficDataResult::~DescribeScdnDomainOriginTrafficDataR void DescribeScdnDomainOriginTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOriginTrafficDataPerInterval = value["OriginTrafficDataPerInterval"]["DataModule"]; for (auto value : allOriginTrafficDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainPvDataRequest.cc b/scdn/src/model/DescribeScdnDomainPvDataRequest.cc index 4fef15316..7ae683826 100644 --- a/scdn/src/model/DescribeScdnDomainPvDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainPvDataRequest.cc @@ -25,37 +25,37 @@ DescribeScdnDomainPvDataRequest::DescribeScdnDomainPvDataRequest() : DescribeScdnDomainPvDataRequest::~DescribeScdnDomainPvDataRequest() {} -std::string DescribeScdnDomainPvDataRequest::getSecurityToken()const +long DescribeScdnDomainPvDataRequest::getResourceOwnerId()const { - return securityToken_; + return resourceOwnerId_; } -void DescribeScdnDomainPvDataRequest::setSecurityToken(const std::string& securityToken) +void DescribeScdnDomainPvDataRequest::setResourceOwnerId(long resourceOwnerId) { - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -std::string DescribeScdnDomainPvDataRequest::getDomainName()const +long DescribeScdnDomainPvDataRequest::getCallerParentId()const { - return domainName_; + return callerParentId_; } -void DescribeScdnDomainPvDataRequest::setDomainName(const std::string& domainName) +void DescribeScdnDomainPvDataRequest::setCallerParentId(long callerParentId) { - domainName_ = domainName; - setParameter("DomainName", domainName); + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } -std::string DescribeScdnDomainPvDataRequest::getEndTime()const +bool DescribeScdnDomainPvDataRequest::getProxy_original_security_transport()const { - return endTime_; + return proxy_original_security_transport_; } -void DescribeScdnDomainPvDataRequest::setEndTime(const std::string& endTime) +void DescribeScdnDomainPvDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { - endTime_ = endTime; - setParameter("EndTime", endTime); + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainPvDataRequest::getStartTime()const @@ -66,18 +66,40 @@ std::string DescribeScdnDomainPvDataRequest::getStartTime()const void DescribeScdnDomainPvDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } -long DescribeScdnDomainPvDataRequest::getOwnerId()const +std::string DescribeScdnDomainPvDataRequest::getProxy_original_source_ip()const { - return ownerId_; + return proxy_original_source_ip_; } -void DescribeScdnDomainPvDataRequest::setOwnerId(long ownerId) +void DescribeScdnDomainPvDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeScdnDomainPvDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeScdnDomainPvDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeScdnDomainPvDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeScdnDomainPvDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainPvDataRequest::getAccessKeyId()const @@ -88,6 +110,193 @@ std::string DescribeScdnDomainPvDataRequest::getAccessKeyId()const void DescribeScdnDomainPvDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeScdnDomainPvDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeScdnDomainPvDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeScdnDomainPvDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeScdnDomainPvDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeScdnDomainPvDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeScdnDomainPvDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeScdnDomainPvDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeScdnDomainPvDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeScdnDomainPvDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeScdnDomainPvDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeScdnDomainPvDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeScdnDomainPvDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeScdnDomainPvDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeScdnDomainPvDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeScdnDomainPvDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeScdnDomainPvDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeScdnDomainPvDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeScdnDomainPvDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeScdnDomainPvDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeScdnDomainPvDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeScdnDomainPvDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeScdnDomainPvDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeScdnDomainPvDataRequest::getVersion()const +{ + return version_; +} + +void DescribeScdnDomainPvDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeScdnDomainPvDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeScdnDomainPvDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeScdnDomainPvDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeScdnDomainPvDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeScdnDomainPvDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeScdnDomainPvDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeScdnDomainPvDataRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeScdnDomainPvDataRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeScdnDomainPvDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeScdnDomainPvDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainPvDataResult.cc b/scdn/src/model/DescribeScdnDomainPvDataResult.cc index 79a9672ee..8b997279d 100644 --- a/scdn/src/model/DescribeScdnDomainPvDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainPvDataResult.cc @@ -35,47 +35,36 @@ DescribeScdnDomainPvDataResult::~DescribeScdnDomainPvDataResult() void DescribeScdnDomainPvDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPvDataInterval = value["PvDataInterval"]["UsageData"]; for (auto value : allPvDataInterval) { UsageData pvDataIntervalObject; - if(!value["TimeStamp"].isNull()) - pvDataIntervalObject.timeStamp = value["TimeStamp"].asString(); if(!value["Value"].isNull()) pvDataIntervalObject.value = value["Value"].asString(); + if(!value["TimeStamp"].isNull()) + pvDataIntervalObject.timeStamp = value["TimeStamp"].asString(); pvDataInterval_.push_back(pvDataIntervalObject); } if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); - if(!value["DataInterval"].isNull()) - dataInterval_ = value["DataInterval"].asString(); if(!value["StartTime"].isNull()) startTime_ = value["StartTime"].asString(); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); } -std::string DescribeScdnDomainPvDataResult::getEndTime()const -{ - return endTime_; -} - std::string DescribeScdnDomainPvDataResult::getDomainName()const { return domainName_; } -std::string DescribeScdnDomainPvDataResult::getDataInterval()const -{ - return dataInterval_; -} - std::string DescribeScdnDomainPvDataResult::getStartTime()const { return startTime_; diff --git a/scdn/src/model/DescribeScdnDomainQpsDataRequest.cc b/scdn/src/model/DescribeScdnDomainQpsDataRequest.cc index f52d68b98..7ca91327b 100644 --- a/scdn/src/model/DescribeScdnDomainQpsDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainQpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainQpsDataRequest::getCallerParentId()const void DescribeScdnDomainQpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainQpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainQpsDataRequest::getProxy_original_security_transport()con void DescribeScdnDomainQpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainQpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainQpsDataRequest::getLocationNameEn()const void DescribeScdnDomainQpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeScdnDomainQpsDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainQpsDataRequest::getStartTime()const void DescribeScdnDomainQpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainQpsDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainQpsDataRequest::getIspNameEn()const void DescribeScdnDomainQpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeScdnDomainQpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainQpsDataRequest::getProxy_original_source_ip()const void DescribeScdnDomainQpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainQpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainQpsDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainQpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainQpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainQpsDataRequest::getCallerType()const void DescribeScdnDomainQpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainQpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainQpsDataRequest::getAccessKeyId()const void DescribeScdnDomainQpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainQpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainQpsDataRequest::getSecurityToken()const void DescribeScdnDomainQpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainQpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainQpsDataRequest::getRequestContent()const void DescribeScdnDomainQpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainQpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainQpsDataRequest::getCallerBidEmail()const void DescribeScdnDomainQpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainQpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainQpsDataRequest::getCallerUidEmail()const void DescribeScdnDomainQpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainQpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeScdnDomainQpsDataRequest::getCallerUid()const void DescribeScdnDomainQpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainQpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainQpsDataRequest::getApp_ip()const void DescribeScdnDomainQpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainQpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainQpsDataRequest::getPopProduct()const void DescribeScdnDomainQpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainQpsDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainQpsDataRequest::getProduct()const void DescribeScdnDomainQpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainQpsDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainQpsDataRequest::getDomainName()const void DescribeScdnDomainQpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainQpsDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainQpsDataRequest::getEndTime()const void DescribeScdnDomainQpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainQpsDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainQpsDataRequest::getCallerBid()const void DescribeScdnDomainQpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainQpsDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeScdnDomainQpsDataRequest::getOwnerId()const void DescribeScdnDomainQpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainQpsDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeScdnDomainQpsDataRequest::getVersion()const void DescribeScdnDomainQpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainQpsDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainQpsDataRequest::getProxy_trust_transport_info()const void DescribeScdnDomainQpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainQpsDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainQpsDataRequest::getAk_mfa_present()const void DescribeScdnDomainQpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainQpsDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeScdnDomainQpsDataRequest::getSecurity_transport()const void DescribeScdnDomainQpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainQpsDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeScdnDomainQpsDataRequest::getRequestId()const void DescribeScdnDomainQpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainQpsDataRequest::getInterval()const @@ -319,6 +319,6 @@ std::string DescribeScdnDomainQpsDataRequest::getInterval()const void DescribeScdnDomainQpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/scdn/src/model/DescribeScdnDomainQpsDataResult.cc b/scdn/src/model/DescribeScdnDomainQpsDataResult.cc index 8fe7b3e56..fef5e2b1a 100644 --- a/scdn/src/model/DescribeScdnDomainQpsDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainQpsDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainQpsDataResult::~DescribeScdnDomainQpsDataResult() void DescribeScdnDomainQpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allQpsDataPerInterval = value["QpsDataPerInterval"]["DataModule"]; for (auto value : allQpsDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeBpsDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeBpsDataRequest.cc index 51e085603..22341eefa 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeBpsDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeBpsDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeBpsDataRequest::getProxy_original_security_transp void DescribeScdnDomainRealTimeBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getLocationNameEn()const void DescribeScdnDomainRealTimeBpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getIspNameEn()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getIspNameEn()const void DescribeScdnDomainRealTimeBpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getStartTime()const void DescribeScdnDomainRealTimeBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getProxy_original_source_i void DescribeScdnDomainRealTimeBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getOwnerIdLoginEmail()cons void DescribeScdnDomainRealTimeBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerType()const void DescribeScdnDomainRealTimeBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getAccessKeyId()const void DescribeScdnDomainRealTimeBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getSecurityToken()const void DescribeScdnDomainRealTimeBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getRequestContent()const void DescribeScdnDomainRealTimeBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerBidEmail()const void DescribeScdnDomainRealTimeBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerUidEmail()const void DescribeScdnDomainRealTimeBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeBpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeScdnDomainRealTimeBpsDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getPopProduct()const void DescribeScdnDomainRealTimeBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getProduct()const void DescribeScdnDomainRealTimeBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getDomainName()const void DescribeScdnDomainRealTimeBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getEndTime()const void DescribeScdnDomainRealTimeBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getCallerBid()const void DescribeScdnDomainRealTimeBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeBpsDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeScdnDomainRealTimeBpsDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getVersion()const void DescribeScdnDomainRealTimeBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeBpsDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeBpsDataRequest::getProxy_trust_transport_info()co void DescribeScdnDomainRealTimeBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeBpsDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainRealTimeBpsDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeBpsDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeScdnDomainRealTimeBpsDataRequest::getSecurity_transport()const void DescribeScdnDomainRealTimeBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeBpsDataRequest::getRequestId()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainRealTimeBpsDataRequest::getRequestId()const void DescribeScdnDomainRealTimeBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeBpsDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeBpsDataResult.cc index 8dac2dc09..8b3c5ed82 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeBpsDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeBpsDataResult::~DescribeScdnDomainRealTimeBpsDataResul void DescribeScdnDomainRealTimeBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["BpsModel"]; for (auto value : allData) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataRequest.cc index 0c9ea0771..7f6a06985 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getProxy_original_securit void DescribeScdnDomainRealTimeByteHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getStartTime()cons void DescribeScdnDomainRealTimeByteHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getProxy_original_ void DescribeScdnDomainRealTimeByteHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getOwnerIdLoginEma void DescribeScdnDomainRealTimeByteHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerType()con void DescribeScdnDomainRealTimeByteHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getAccessKeyId()co void DescribeScdnDomainRealTimeByteHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getSecurityToken() void DescribeScdnDomainRealTimeByteHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getRequestContent( void DescribeScdnDomainRealTimeByteHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerBidEmail( void DescribeScdnDomainRealTimeByteHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerUidEmail( void DescribeScdnDomainRealTimeByteHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getPopProduct()con void DescribeScdnDomainRealTimeByteHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getProduct()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getDomainName()con void DescribeScdnDomainRealTimeByteHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getEndTime()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getCallerBid()cons void DescribeScdnDomainRealTimeByteHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeByteHitRateDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainRealTimeByteHitRateDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getVersion()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getProxy_trust_transport_ void DescribeScdnDomainRealTimeByteHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeByteHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeByteHitRateDataRequest::getSecurity_transport()co void DescribeScdnDomainRealTimeByteHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeScdnDomainRealTimeByteHitRateDataRequest::getRequestId()cons void DescribeScdnDomainRealTimeByteHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataResult.cc index 5bab5f6c7..b87aa367b 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeByteHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeByteHitRateDataResult::~DescribeScdnDomainRealTimeByte void DescribeScdnDomainRealTimeByteHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["ByteHitRateDataModel"]; for (auto value : allData) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataRequest.cc index d04cd96fb..b24664988 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getProxy_original_security_t void DescribeScdnDomainRealTimeHttpCodeDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getLocationNameEn()co void DescribeScdnDomainRealTimeHttpCodeDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getStartTime()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getIspNameEn()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getProxy_original_sou void DescribeScdnDomainRealTimeHttpCodeDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getOwnerIdLoginEmail( void DescribeScdnDomainRealTimeHttpCodeDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerType()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getAccessKeyId()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getSecurityToken()con void DescribeScdnDomainRealTimeHttpCodeDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getRequestContent()co void DescribeScdnDomainRealTimeHttpCodeDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerBidEmail()co void DescribeScdnDomainRealTimeHttpCodeDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerUidEmail()co void DescribeScdnDomainRealTimeHttpCodeDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getPopProduct()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getProduct()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getDomainName()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getEndTime()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getCallerBid()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeHttpCodeDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeScdnDomainRealTimeHttpCodeDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getVersion()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getProxy_trust_transport_inf void DescribeScdnDomainRealTimeHttpCodeDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeScdnDomainRealTimeHttpCodeDataRequest::getSecurity_transport()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getRequestId()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getInterval()const @@ -319,7 +319,7 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getInterval()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getFields()const @@ -330,6 +330,6 @@ std::string DescribeScdnDomainRealTimeHttpCodeDataRequest::getFields()const void DescribeScdnDomainRealTimeHttpCodeDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataResult.cc index 211ce2fea..3f0ac361e 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeHttpCodeDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeHttpCodeDataResult::~DescribeScdnDomainRealTimeHttpCod void DescribeScdnDomainRealTimeHttpCodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeHttpCodeData = value["RealTimeHttpCodeData"]["UsageData"]; for (auto value : allRealTimeHttpCodeData) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeQpsDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeQpsDataRequest.cc index 230fee1ba..8475cea42 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeQpsDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeQpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeQpsDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeQpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeQpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeQpsDataRequest::getProxy_original_security_transp void DescribeScdnDomainRealTimeQpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getLocationNameEn()const void DescribeScdnDomainRealTimeQpsDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getIspNameEn()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getIspNameEn()const void DescribeScdnDomainRealTimeQpsDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getStartTime()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getStartTime()const void DescribeScdnDomainRealTimeQpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getProxy_original_source_i void DescribeScdnDomainRealTimeQpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getOwnerIdLoginEmail()cons void DescribeScdnDomainRealTimeQpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerType()const void DescribeScdnDomainRealTimeQpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getAccessKeyId()const void DescribeScdnDomainRealTimeQpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getSecurityToken()const void DescribeScdnDomainRealTimeQpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getRequestContent()const void DescribeScdnDomainRealTimeQpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerBidEmail()const void DescribeScdnDomainRealTimeQpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerUidEmail()const void DescribeScdnDomainRealTimeQpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeQpsDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeScdnDomainRealTimeQpsDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeQpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeQpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getPopProduct()const void DescribeScdnDomainRealTimeQpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getProduct()const void DescribeScdnDomainRealTimeQpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getDomainName()const void DescribeScdnDomainRealTimeQpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getEndTime()const void DescribeScdnDomainRealTimeQpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getCallerBid()const void DescribeScdnDomainRealTimeQpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeQpsDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeScdnDomainRealTimeQpsDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeQpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getVersion()const void DescribeScdnDomainRealTimeQpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeQpsDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeQpsDataRequest::getProxy_trust_transport_info()co void DescribeScdnDomainRealTimeQpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeQpsDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainRealTimeQpsDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeQpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeQpsDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeScdnDomainRealTimeQpsDataRequest::getSecurity_transport()const void DescribeScdnDomainRealTimeQpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeQpsDataRequest::getRequestId()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainRealTimeQpsDataRequest::getRequestId()const void DescribeScdnDomainRealTimeQpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeQpsDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeQpsDataResult.cc index 7f59387ad..dadccb250 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeQpsDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeQpsDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeQpsDataResult::~DescribeScdnDomainRealTimeQpsDataResul void DescribeScdnDomainRealTimeQpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["QpsModel"]; for (auto value : allData) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataRequest.cc index 4b7b6cf7a..f09e7ee73 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getProxy_original_security void DescribeScdnDomainRealTimeReqHitRateDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getStartTime()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getProxy_original_s void DescribeScdnDomainRealTimeReqHitRateDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getOwnerIdLoginEmai void DescribeScdnDomainRealTimeReqHitRateDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerType()cons void DescribeScdnDomainRealTimeReqHitRateDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getAccessKeyId()con void DescribeScdnDomainRealTimeReqHitRateDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getSecurityToken()c void DescribeScdnDomainRealTimeReqHitRateDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getRequestContent() void DescribeScdnDomainRealTimeReqHitRateDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerBidEmail() void DescribeScdnDomainRealTimeReqHitRateDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerUidEmail() void DescribeScdnDomainRealTimeReqHitRateDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getPopProduct()cons void DescribeScdnDomainRealTimeReqHitRateDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getProduct()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getDomainName()cons void DescribeScdnDomainRealTimeReqHitRateDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getEndTime()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getCallerBid()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeReqHitRateDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainRealTimeReqHitRateDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getVersion()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getProxy_trust_transport_i void DescribeScdnDomainRealTimeReqHitRateDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeReqHitRateDataRequest::getSecurity_transport()con void DescribeScdnDomainRealTimeReqHitRateDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeScdnDomainRealTimeReqHitRateDataRequest::getRequestId()const void DescribeScdnDomainRealTimeReqHitRateDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataResult.cc index 5b484224b..71a21a9b0 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeReqHitRateDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeReqHitRateDataResult::~DescribeScdnDomainRealTimeReqHi void DescribeScdnDomainRealTimeReqHitRateDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["ReqHitRateDataModel"]; for (auto value : allData) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.cc index 6efc61e73..28d29bc96 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getProxy_original_security_tra void DescribeScdnDomainRealTimeSrcBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getStartTime()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getProxy_original_sourc void DescribeScdnDomainRealTimeSrcBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getOwnerIdLoginEmail()c void DescribeScdnDomainRealTimeSrcBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerType()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getAccessKeyId()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getSecurityToken()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getRequestContent()cons void DescribeScdnDomainRealTimeSrcBpsDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerBidEmail()cons void DescribeScdnDomainRealTimeSrcBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerUidEmail()cons void DescribeScdnDomainRealTimeSrcBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getPopProduct()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getProduct()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getDomainName()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getEndTime()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getCallerBid()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeSrcBpsDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainRealTimeSrcBpsDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getVersion()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getProxy_trust_transport_info( void DescribeScdnDomainRealTimeSrcBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeSrcBpsDataRequest::getSecurity_transport()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getRequestId()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getInterval()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainRealTimeSrcBpsDataRequest::getFields()const void DescribeScdnDomainRealTimeSrcBpsDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataResult.cc index f4c0219f1..a8e98fc3d 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeSrcBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeSrcBpsDataResult::~DescribeScdnDomainRealTimeSrcBpsDat void DescribeScdnDomainRealTimeSrcBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeSrcBpsDataPerInterval = value["RealTimeSrcBpsDataPerInterval"]["DataModule"]; for (auto value : allRealTimeSrcBpsDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.cc index 5f37c254e..a95dd7e81 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProxy_original_security void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getStartTime()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProxy_original_s void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getOwnerIdLoginEmai void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerType()cons void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getAccessKeyId()con void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getSecurityToken()c void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getRequestContent() void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerBidEmail() void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerUidEmail() void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getPopProduct()cons void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProduct()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getDomainName()cons void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getEndTime()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getCallerBid()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeSrcTrafficDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainRealTimeSrcTrafficDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getVersion()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getProxy_trust_transport_i void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeSrcTrafficDataRequest::getSecurity_transport()con void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getRequestId()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getInterval()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainRealTimeSrcTrafficDataRequest::getFields()const void DescribeScdnDomainRealTimeSrcTrafficDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.cc index cbb8d6a66..850379df5 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeSrcTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeSrcTrafficDataResult::~DescribeScdnDomainRealTimeSrcTr void DescribeScdnDomainRealTimeSrcTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeSrcTrafficDataPerInterval = value["RealTimeSrcTrafficDataPerInterval"]["DataModule"]; for (auto value : allRealTimeSrcTrafficDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataRequest.cc b/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataRequest.cc index 085e2e799..021c90c7a 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRealTimeTrafficDataRequest::getCallerParentId()const void DescribeScdnDomainRealTimeTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRealTimeTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRealTimeTrafficDataRequest::getProxy_original_security_tr void DescribeScdnDomainRealTimeTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getStartTime()const void DescribeScdnDomainRealTimeTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getProxy_original_sour void DescribeScdnDomainRealTimeTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getOwnerIdLoginEmail() void DescribeScdnDomainRealTimeTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerType()const void DescribeScdnDomainRealTimeTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getAccessKeyId()const void DescribeScdnDomainRealTimeTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getSecurityToken()cons void DescribeScdnDomainRealTimeTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getRequestContent()con void DescribeScdnDomainRealTimeTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerBidEmail()con void DescribeScdnDomainRealTimeTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerUidEmail()con void DescribeScdnDomainRealTimeTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRealTimeTrafficDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainRealTimeTrafficDataRequest::getCallerUid()const void DescribeScdnDomainRealTimeTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getApp_ip()const void DescribeScdnDomainRealTimeTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getPopProduct()const void DescribeScdnDomainRealTimeTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getProduct()const void DescribeScdnDomainRealTimeTrafficDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getDomainName()const void DescribeScdnDomainRealTimeTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getEndTime()const void DescribeScdnDomainRealTimeTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getCallerBid()const void DescribeScdnDomainRealTimeTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRealTimeTrafficDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainRealTimeTrafficDataRequest::getOwnerId()const void DescribeScdnDomainRealTimeTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getVersion()const void DescribeScdnDomainRealTimeTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRealTimeTrafficDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainRealTimeTrafficDataRequest::getProxy_trust_transport_info void DescribeScdnDomainRealTimeTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRealTimeTrafficDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainRealTimeTrafficDataRequest::getAk_mfa_present()const void DescribeScdnDomainRealTimeTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRealTimeTrafficDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRealTimeTrafficDataRequest::getSecurity_transport()const void DescribeScdnDomainRealTimeTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getRequestId()const void DescribeScdnDomainRealTimeTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getInterval()const @@ -297,7 +297,7 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getInterval()const void DescribeScdnDomainRealTimeTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } std::string DescribeScdnDomainRealTimeTrafficDataRequest::getFields()const @@ -308,6 +308,6 @@ std::string DescribeScdnDomainRealTimeTrafficDataRequest::getFields()const void DescribeScdnDomainRealTimeTrafficDataRequest::setFields(const std::string& fields) { fields_ = fields; - setParameter("Fields", fields); + setCoreParameter("Fields", fields); } diff --git a/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataResult.cc b/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataResult.cc index d3b7b0d9d..d5dbebba5 100644 --- a/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRealTimeTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRealTimeTrafficDataResult::~DescribeScdnDomainRealTimeTrafficD void DescribeScdnDomainRealTimeTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRealTimeTrafficDataPerInterval = value["RealTimeTrafficDataPerInterval"]["DataModule"]; for (auto value : allRealTimeTrafficDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainRegionDataRequest.cc b/scdn/src/model/DescribeScdnDomainRegionDataRequest.cc index 72386bf37..33ccfe2f5 100644 --- a/scdn/src/model/DescribeScdnDomainRegionDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainRegionDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainRegionDataRequest::getCallerParentId()const void DescribeScdnDomainRegionDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainRegionDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainRegionDataRequest::getProxy_original_security_transport() void DescribeScdnDomainRegionDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainRegionDataRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainRegionDataRequest::getStartTime()const void DescribeScdnDomainRegionDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainRegionDataRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainRegionDataRequest::getProxy_original_source_ip()co void DescribeScdnDomainRegionDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainRegionDataRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainRegionDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainRegionDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainRegionDataRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainRegionDataRequest::getCallerType()const void DescribeScdnDomainRegionDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainRegionDataRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainRegionDataRequest::getAccessKeyId()const void DescribeScdnDomainRegionDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainRegionDataRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainRegionDataRequest::getSecurityToken()const void DescribeScdnDomainRegionDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainRegionDataRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainRegionDataRequest::getRequestContent()const void DescribeScdnDomainRegionDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainRegionDataRequest::getCallerBidEmail()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainRegionDataRequest::getCallerBidEmail()const void DescribeScdnDomainRegionDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainRegionDataRequest::getCallerUidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainRegionDataRequest::getCallerUidEmail()const void DescribeScdnDomainRegionDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainRegionDataRequest::getCallerUid()const @@ -154,7 +154,7 @@ long DescribeScdnDomainRegionDataRequest::getCallerUid()const void DescribeScdnDomainRegionDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainRegionDataRequest::getApp_ip()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainRegionDataRequest::getApp_ip()const void DescribeScdnDomainRegionDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainRegionDataRequest::getPopProduct()const @@ -176,7 +176,7 @@ std::string DescribeScdnDomainRegionDataRequest::getPopProduct()const void DescribeScdnDomainRegionDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainRegionDataRequest::getProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainRegionDataRequest::getProduct()const void DescribeScdnDomainRegionDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainRegionDataRequest::getDomainName()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainRegionDataRequest::getDomainName()const void DescribeScdnDomainRegionDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainRegionDataRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainRegionDataRequest::getEndTime()const void DescribeScdnDomainRegionDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainRegionDataRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainRegionDataRequest::getCallerBid()const void DescribeScdnDomainRegionDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainRegionDataRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnDomainRegionDataRequest::getOwnerId()const void DescribeScdnDomainRegionDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainRegionDataRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainRegionDataRequest::getVersion()const void DescribeScdnDomainRegionDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainRegionDataRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnDomainRegionDataRequest::getProxy_trust_transport_info()const void DescribeScdnDomainRegionDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainRegionDataRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnDomainRegionDataRequest::getAk_mfa_present()const void DescribeScdnDomainRegionDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainRegionDataRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainRegionDataRequest::getSecurity_transport()const void DescribeScdnDomainRegionDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainRegionDataRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeScdnDomainRegionDataRequest::getRequestId()const void DescribeScdnDomainRegionDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainRegionDataResult.cc b/scdn/src/model/DescribeScdnDomainRegionDataResult.cc index 5c0aeec63..d285520fc 100644 --- a/scdn/src/model/DescribeScdnDomainRegionDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainRegionDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainRegionDataResult::~DescribeScdnDomainRegionDataResult() void DescribeScdnDomainRegionDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allValue = value["Value"]["RegionProportionData"]; for (auto value : allValue) diff --git a/scdn/src/model/DescribeScdnDomainTopReferVisitRequest.cc b/scdn/src/model/DescribeScdnDomainTopReferVisitRequest.cc index 145042415..670a32c6f 100644 --- a/scdn/src/model/DescribeScdnDomainTopReferVisitRequest.cc +++ b/scdn/src/model/DescribeScdnDomainTopReferVisitRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnDomainTopReferVisitRequest::getSecurityToken()const void DescribeScdnDomainTopReferVisitRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainTopReferVisitRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeScdnDomainTopReferVisitRequest::getDomainName()const void DescribeScdnDomainTopReferVisitRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainTopReferVisitRequest::getSortBy()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainTopReferVisitRequest::getSortBy()const void DescribeScdnDomainTopReferVisitRequest::setSortBy(const std::string& sortBy) { sortBy_ = sortBy; - setParameter("SortBy", sortBy); + setCoreParameter("SortBy", sortBy); } std::string DescribeScdnDomainTopReferVisitRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainTopReferVisitRequest::getStartTime()const void DescribeScdnDomainTopReferVisitRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeScdnDomainTopReferVisitRequest::getOwnerId()const @@ -77,17 +77,6 @@ long DescribeScdnDomainTopReferVisitRequest::getOwnerId()const void DescribeScdnDomainTopReferVisitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnDomainTopReferVisitRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnDomainTopReferVisitRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnDomainTopReferVisitResult.cc b/scdn/src/model/DescribeScdnDomainTopReferVisitResult.cc index 82618033d..2bc02bce5 100644 --- a/scdn/src/model/DescribeScdnDomainTopReferVisitResult.cc +++ b/scdn/src/model/DescribeScdnDomainTopReferVisitResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainTopReferVisitResult::~DescribeScdnDomainTopReferVisitResult() void DescribeScdnDomainTopReferVisitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopReferList = value["TopReferList"]["ReferList"]; for (auto value : allTopReferList) diff --git a/scdn/src/model/DescribeScdnDomainTopUrlVisitRequest.cc b/scdn/src/model/DescribeScdnDomainTopUrlVisitRequest.cc index 76b74d931..bb820fc28 100644 --- a/scdn/src/model/DescribeScdnDomainTopUrlVisitRequest.cc +++ b/scdn/src/model/DescribeScdnDomainTopUrlVisitRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnDomainTopUrlVisitRequest::getSecurityToken()const void DescribeScdnDomainTopUrlVisitRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainTopUrlVisitRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeScdnDomainTopUrlVisitRequest::getDomainName()const void DescribeScdnDomainTopUrlVisitRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainTopUrlVisitRequest::getSortBy()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainTopUrlVisitRequest::getSortBy()const void DescribeScdnDomainTopUrlVisitRequest::setSortBy(const std::string& sortBy) { sortBy_ = sortBy; - setParameter("SortBy", sortBy); + setCoreParameter("SortBy", sortBy); } std::string DescribeScdnDomainTopUrlVisitRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainTopUrlVisitRequest::getStartTime()const void DescribeScdnDomainTopUrlVisitRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeScdnDomainTopUrlVisitRequest::getOwnerId()const @@ -77,17 +77,6 @@ long DescribeScdnDomainTopUrlVisitRequest::getOwnerId()const void DescribeScdnDomainTopUrlVisitRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnDomainTopUrlVisitRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnDomainTopUrlVisitRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnDomainTopUrlVisitResult.cc b/scdn/src/model/DescribeScdnDomainTopUrlVisitResult.cc index 82e56c28c..49cc150d1 100644 --- a/scdn/src/model/DescribeScdnDomainTopUrlVisitResult.cc +++ b/scdn/src/model/DescribeScdnDomainTopUrlVisitResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainTopUrlVisitResult::~DescribeScdnDomainTopUrlVisitResult() void DescribeScdnDomainTopUrlVisitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAllUrlList = value["AllUrlList"]["UrlList"]; for (auto value : allAllUrlList) diff --git a/scdn/src/model/DescribeScdnDomainTrafficDataRequest.cc b/scdn/src/model/DescribeScdnDomainTrafficDataRequest.cc index 7fc0afb91..4c43f217a 100644 --- a/scdn/src/model/DescribeScdnDomainTrafficDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainTrafficDataRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnDomainTrafficDataRequest::getCallerParentId()const void DescribeScdnDomainTrafficDataRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnDomainTrafficDataRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnDomainTrafficDataRequest::getProxy_original_security_transport( void DescribeScdnDomainTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainTrafficDataRequest::getLocationNameEn()const @@ -55,7 +55,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getLocationNameEn()const void DescribeScdnDomainTrafficDataRequest::setLocationNameEn(const std::string& locationNameEn) { locationNameEn_ = locationNameEn; - setParameter("LocationNameEn", locationNameEn); + setCoreParameter("LocationNameEn", locationNameEn); } std::string DescribeScdnDomainTrafficDataRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getStartTime()const void DescribeScdnDomainTrafficDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnDomainTrafficDataRequest::getIspNameEn()const @@ -77,7 +77,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getIspNameEn()const void DescribeScdnDomainTrafficDataRequest::setIspNameEn(const std::string& ispNameEn) { ispNameEn_ = ispNameEn; - setParameter("IspNameEn", ispNameEn); + setCoreParameter("IspNameEn", ispNameEn); } std::string DescribeScdnDomainTrafficDataRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getProxy_original_source_ip()c void DescribeScdnDomainTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnDomainTrafficDataRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getOwnerIdLoginEmail()const void DescribeScdnDomainTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnDomainTrafficDataRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getCallerType()const void DescribeScdnDomainTrafficDataRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainTrafficDataRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getAccessKeyId()const void DescribeScdnDomainTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnDomainTrafficDataRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getSecurityToken()const void DescribeScdnDomainTrafficDataRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnDomainTrafficDataRequest::getRequestContent()const @@ -143,7 +143,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getRequestContent()const void DescribeScdnDomainTrafficDataRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeScdnDomainTrafficDataRequest::getCallerBidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getCallerBidEmail()const void DescribeScdnDomainTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnDomainTrafficDataRequest::getCallerUidEmail()const @@ -165,7 +165,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getCallerUidEmail()const void DescribeScdnDomainTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnDomainTrafficDataRequest::getCallerUid()const @@ -176,7 +176,7 @@ long DescribeScdnDomainTrafficDataRequest::getCallerUid()const void DescribeScdnDomainTrafficDataRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnDomainTrafficDataRequest::getApp_ip()const @@ -187,7 +187,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getApp_ip()const void DescribeScdnDomainTrafficDataRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnDomainTrafficDataRequest::getPopProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getPopProduct()const void DescribeScdnDomainTrafficDataRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnDomainTrafficDataRequest::getProduct()const @@ -209,7 +209,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getProduct()const void DescribeScdnDomainTrafficDataRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnDomainTrafficDataRequest::getDomainName()const @@ -220,7 +220,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getDomainName()const void DescribeScdnDomainTrafficDataRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnDomainTrafficDataRequest::getEndTime()const @@ -231,7 +231,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getEndTime()const void DescribeScdnDomainTrafficDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnDomainTrafficDataRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getCallerBid()const void DescribeScdnDomainTrafficDataRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnDomainTrafficDataRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DescribeScdnDomainTrafficDataRequest::getOwnerId()const void DescribeScdnDomainTrafficDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnDomainTrafficDataRequest::getVersion()const @@ -264,7 +264,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getVersion()const void DescribeScdnDomainTrafficDataRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnDomainTrafficDataRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeScdnDomainTrafficDataRequest::getProxy_trust_transport_info()const void DescribeScdnDomainTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnDomainTrafficDataRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeScdnDomainTrafficDataRequest::getAk_mfa_present()const void DescribeScdnDomainTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnDomainTrafficDataRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeScdnDomainTrafficDataRequest::getSecurity_transport()const void DescribeScdnDomainTrafficDataRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnDomainTrafficDataRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeScdnDomainTrafficDataRequest::getRequestId()const void DescribeScdnDomainTrafficDataRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeScdnDomainTrafficDataRequest::getInterval()const @@ -319,6 +319,6 @@ std::string DescribeScdnDomainTrafficDataRequest::getInterval()const void DescribeScdnDomainTrafficDataRequest::setInterval(const std::string& interval) { interval_ = interval; - setParameter("Interval", interval); + setCoreParameter("Interval", interval); } diff --git a/scdn/src/model/DescribeScdnDomainTrafficDataResult.cc b/scdn/src/model/DescribeScdnDomainTrafficDataResult.cc index b6b04262b..9b74c49e7 100644 --- a/scdn/src/model/DescribeScdnDomainTrafficDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeScdnDomainTrafficDataResult::~DescribeScdnDomainTrafficDataResult() void DescribeScdnDomainTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrafficDataPerInterval = value["TrafficDataPerInterval"]["DataModule"]; for (auto value : allTrafficDataPerInterval) diff --git a/scdn/src/model/DescribeScdnDomainUvDataRequest.cc b/scdn/src/model/DescribeScdnDomainUvDataRequest.cc index f86301dde..40275e502 100644 --- a/scdn/src/model/DescribeScdnDomainUvDataRequest.cc +++ b/scdn/src/model/DescribeScdnDomainUvDataRequest.cc @@ -25,37 +25,37 @@ DescribeScdnDomainUvDataRequest::DescribeScdnDomainUvDataRequest() : DescribeScdnDomainUvDataRequest::~DescribeScdnDomainUvDataRequest() {} -std::string DescribeScdnDomainUvDataRequest::getSecurityToken()const +long DescribeScdnDomainUvDataRequest::getResourceOwnerId()const { - return securityToken_; + return resourceOwnerId_; } -void DescribeScdnDomainUvDataRequest::setSecurityToken(const std::string& securityToken) +void DescribeScdnDomainUvDataRequest::setResourceOwnerId(long resourceOwnerId) { - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -std::string DescribeScdnDomainUvDataRequest::getDomainName()const +long DescribeScdnDomainUvDataRequest::getCallerParentId()const { - return domainName_; + return callerParentId_; } -void DescribeScdnDomainUvDataRequest::setDomainName(const std::string& domainName) +void DescribeScdnDomainUvDataRequest::setCallerParentId(long callerParentId) { - domainName_ = domainName; - setParameter("DomainName", domainName); + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } -std::string DescribeScdnDomainUvDataRequest::getEndTime()const +bool DescribeScdnDomainUvDataRequest::getProxy_original_security_transport()const { - return endTime_; + return proxy_original_security_transport_; } -void DescribeScdnDomainUvDataRequest::setEndTime(const std::string& endTime) +void DescribeScdnDomainUvDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { - endTime_ = endTime; - setParameter("EndTime", endTime); + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnDomainUvDataRequest::getStartTime()const @@ -66,18 +66,40 @@ std::string DescribeScdnDomainUvDataRequest::getStartTime()const void DescribeScdnDomainUvDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } -long DescribeScdnDomainUvDataRequest::getOwnerId()const +std::string DescribeScdnDomainUvDataRequest::getProxy_original_source_ip()const { - return ownerId_; + return proxy_original_source_ip_; } -void DescribeScdnDomainUvDataRequest::setOwnerId(long ownerId) +void DescribeScdnDomainUvDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeScdnDomainUvDataRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeScdnDomainUvDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeScdnDomainUvDataRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeScdnDomainUvDataRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); } std::string DescribeScdnDomainUvDataRequest::getAccessKeyId()const @@ -88,6 +110,193 @@ std::string DescribeScdnDomainUvDataRequest::getAccessKeyId()const void DescribeScdnDomainUvDataRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeScdnDomainUvDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeScdnDomainUvDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeScdnDomainUvDataRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeScdnDomainUvDataRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeScdnDomainUvDataRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeScdnDomainUvDataRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeScdnDomainUvDataRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeScdnDomainUvDataRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeScdnDomainUvDataRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeScdnDomainUvDataRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeScdnDomainUvDataRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeScdnDomainUvDataRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeScdnDomainUvDataRequest::getPopProduct()const +{ + return popProduct_; +} + +void DescribeScdnDomainUvDataRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string DescribeScdnDomainUvDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeScdnDomainUvDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string DescribeScdnDomainUvDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeScdnDomainUvDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeScdnDomainUvDataRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeScdnDomainUvDataRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeScdnDomainUvDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeScdnDomainUvDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeScdnDomainUvDataRequest::getVersion()const +{ + return version_; +} + +void DescribeScdnDomainUvDataRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool DescribeScdnDomainUvDataRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeScdnDomainUvDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeScdnDomainUvDataRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeScdnDomainUvDataRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeScdnDomainUvDataRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeScdnDomainUvDataRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeScdnDomainUvDataRequest::getServiceCode()const +{ + return serviceCode_; +} + +void DescribeScdnDomainUvDataRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string DescribeScdnDomainUvDataRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeScdnDomainUvDataRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnDomainUvDataResult.cc b/scdn/src/model/DescribeScdnDomainUvDataResult.cc index 03b42e448..b7cfb7778 100644 --- a/scdn/src/model/DescribeScdnDomainUvDataResult.cc +++ b/scdn/src/model/DescribeScdnDomainUvDataResult.cc @@ -35,29 +35,28 @@ DescribeScdnDomainUvDataResult::~DescribeScdnDomainUvDataResult() void DescribeScdnDomainUvDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUvDataInterval = value["UvDataInterval"]["UsageData"]; for (auto value : allUvDataInterval) { UsageData uvDataIntervalObject; - if(!value["TimeStamp"].isNull()) - uvDataIntervalObject.timeStamp = value["TimeStamp"].asString(); if(!value["Value"].isNull()) uvDataIntervalObject.value = value["Value"].asString(); + if(!value["TimeStamp"].isNull()) + uvDataIntervalObject.timeStamp = value["TimeStamp"].asString(); uvDataInterval_.push_back(uvDataIntervalObject); } if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); - if(!value["DataInterval"].isNull()) - dataInterval_ = value["DataInterval"].asString(); if(!value["StartTime"].isNull()) startTime_ = value["StartTime"].asString(); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); } @@ -66,21 +65,11 @@ std::vector DescribeScdnDomainUvDataR return uvDataInterval_; } -std::string DescribeScdnDomainUvDataResult::getEndTime()const -{ - return endTime_; -} - std::string DescribeScdnDomainUvDataResult::getDomainName()const { return domainName_; } -std::string DescribeScdnDomainUvDataResult::getDataInterval()const -{ - return dataInterval_; -} - std::string DescribeScdnDomainUvDataResult::getStartTime()const { return startTime_; diff --git a/scdn/src/model/DescribeScdnIpInfoRequest.cc b/scdn/src/model/DescribeScdnIpInfoRequest.cc index 0925a3f06..1f4ea3b11 100644 --- a/scdn/src/model/DescribeScdnIpInfoRequest.cc +++ b/scdn/src/model/DescribeScdnIpInfoRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnIpInfoRequest::getSecurityToken()const void DescribeScdnIpInfoRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnIpInfoRequest::getIP()const @@ -44,7 +44,7 @@ std::string DescribeScdnIpInfoRequest::getIP()const void DescribeScdnIpInfoRequest::setIP(const std::string& iP) { iP_ = iP; - setParameter("IP", iP); + setCoreParameter("IP", iP); } long DescribeScdnIpInfoRequest::getOwnerId()const @@ -55,17 +55,6 @@ long DescribeScdnIpInfoRequest::getOwnerId()const void DescribeScdnIpInfoRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnIpInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnIpInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnIpInfoResult.cc b/scdn/src/model/DescribeScdnIpInfoResult.cc index bacac930c..fdb9c682b 100644 --- a/scdn/src/model/DescribeScdnIpInfoResult.cc +++ b/scdn/src/model/DescribeScdnIpInfoResult.cc @@ -35,10 +35,13 @@ DescribeScdnIpInfoResult::~DescribeScdnIpInfoResult() void DescribeScdnIpInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ip"].isNull()) ip_ = value["Ip"].asString(); diff --git a/scdn/src/model/DescribeScdnRefreshQuotaRequest.cc b/scdn/src/model/DescribeScdnRefreshQuotaRequest.cc index 722e40974..1daef8fb5 100644 --- a/scdn/src/model/DescribeScdnRefreshQuotaRequest.cc +++ b/scdn/src/model/DescribeScdnRefreshQuotaRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnRefreshQuotaRequest::getSecurityToken()const void DescribeScdnRefreshQuotaRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeScdnRefreshQuotaRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeScdnRefreshQuotaRequest::getOwnerId()const void DescribeScdnRefreshQuotaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnRefreshQuotaRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnRefreshQuotaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnRefreshQuotaResult.cc b/scdn/src/model/DescribeScdnRefreshQuotaResult.cc index 3d229c75f..170a5dd99 100644 --- a/scdn/src/model/DescribeScdnRefreshQuotaResult.cc +++ b/scdn/src/model/DescribeScdnRefreshQuotaResult.cc @@ -35,10 +35,13 @@ DescribeScdnRefreshQuotaResult::~DescribeScdnRefreshQuotaResult() void DescribeScdnRefreshQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["UrlQuota"].isNull()) urlQuota_ = value["UrlQuota"].asString(); diff --git a/scdn/src/model/DescribeScdnRefreshTasksRequest.cc b/scdn/src/model/DescribeScdnRefreshTasksRequest.cc index 90a5bdbf7..5094517df 100644 --- a/scdn/src/model/DescribeScdnRefreshTasksRequest.cc +++ b/scdn/src/model/DescribeScdnRefreshTasksRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnRefreshTasksRequest::getObjectPath()const void DescribeScdnRefreshTasksRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } std::string DescribeScdnRefreshTasksRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string DescribeScdnRefreshTasksRequest::getDomainName()const void DescribeScdnRefreshTasksRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } std::string DescribeScdnRefreshTasksRequest::getEndTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnRefreshTasksRequest::getEndTime()const void DescribeScdnRefreshTasksRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnRefreshTasksRequest::getStartTime()const @@ -66,7 +66,7 @@ std::string DescribeScdnRefreshTasksRequest::getStartTime()const void DescribeScdnRefreshTasksRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeScdnRefreshTasksRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeScdnRefreshTasksRequest::getOwnerId()const void DescribeScdnRefreshTasksRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeScdnRefreshTasksRequest::getPageNumber()const @@ -88,18 +88,7 @@ int DescribeScdnRefreshTasksRequest::getPageNumber()const void DescribeScdnRefreshTasksRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeScdnRefreshTasksRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnRefreshTasksRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeScdnRefreshTasksRequest::getResourceGroupId()const @@ -110,7 +99,7 @@ std::string DescribeScdnRefreshTasksRequest::getResourceGroupId()const void DescribeScdnRefreshTasksRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeScdnRefreshTasksRequest::getSecurityToken()const @@ -121,7 +110,7 @@ std::string DescribeScdnRefreshTasksRequest::getSecurityToken()const void DescribeScdnRefreshTasksRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } int DescribeScdnRefreshTasksRequest::getPageSize()const @@ -132,7 +121,7 @@ int DescribeScdnRefreshTasksRequest::getPageSize()const void DescribeScdnRefreshTasksRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeScdnRefreshTasksRequest::getObjectType()const @@ -143,7 +132,7 @@ std::string DescribeScdnRefreshTasksRequest::getObjectType()const void DescribeScdnRefreshTasksRequest::setObjectType(const std::string& objectType) { objectType_ = objectType; - setParameter("ObjectType", objectType); + setCoreParameter("ObjectType", objectType); } std::string DescribeScdnRefreshTasksRequest::getTaskId()const @@ -154,7 +143,7 @@ std::string DescribeScdnRefreshTasksRequest::getTaskId()const void DescribeScdnRefreshTasksRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; - setParameter("TaskId", taskId); + setCoreParameter("TaskId", taskId); } std::string DescribeScdnRefreshTasksRequest::getStatus()const @@ -165,6 +154,6 @@ std::string DescribeScdnRefreshTasksRequest::getStatus()const void DescribeScdnRefreshTasksRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/scdn/src/model/DescribeScdnRefreshTasksResult.cc b/scdn/src/model/DescribeScdnRefreshTasksResult.cc index 450dd9767..f7317958f 100644 --- a/scdn/src/model/DescribeScdnRefreshTasksResult.cc +++ b/scdn/src/model/DescribeScdnRefreshTasksResult.cc @@ -35,10 +35,13 @@ DescribeScdnRefreshTasksResult::~DescribeScdnRefreshTasksResult() void DescribeScdnRefreshTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["Task"]; for (auto value : allTasks) diff --git a/scdn/src/model/DescribeScdnServiceRequest.cc b/scdn/src/model/DescribeScdnServiceRequest.cc index d49d4034b..bb12b6ebb 100644 --- a/scdn/src/model/DescribeScdnServiceRequest.cc +++ b/scdn/src/model/DescribeScdnServiceRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnServiceRequest::getSecurityToken()const void DescribeScdnServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeScdnServiceRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeScdnServiceRequest::getOwnerId()const void DescribeScdnServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnServiceResult.cc b/scdn/src/model/DescribeScdnServiceResult.cc index 06b6fe554..28a1aca54 100644 --- a/scdn/src/model/DescribeScdnServiceResult.cc +++ b/scdn/src/model/DescribeScdnServiceResult.cc @@ -35,10 +35,13 @@ DescribeScdnServiceResult::~DescribeScdnServiceResult() void DescribeScdnServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allOperationLocks = value["OperationLocks"]["LockReason"]; for (auto value : allOperationLocks) @@ -48,6 +51,12 @@ void DescribeScdnServiceResult::parse(const std::string &payload) operationLocksObject.lockReason = value["LockReason"].asString(); operationLocks_.push_back(operationLocksObject); } + if(!value["ChangingAffectTime"].isNull()) + changingAffectTime_ = value["ChangingAffectTime"].asString(); + if(!value["InternetChargeType"].isNull()) + internetChargeType_ = value["InternetChargeType"].asString(); + if(!value["ChangingChargeType"].isNull()) + changingChargeType_ = value["ChangingChargeType"].asString(); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["OpenTime"].isNull()) @@ -78,21 +87,52 @@ void DescribeScdnServiceResult::parse(const std::string &payload) domainCountValue_ = value["DomainCountValue"].asString(); if(!value["ElasticProtectionValue"].isNull()) elasticProtectionValue_ = value["ElasticProtectionValue"].asString(); + if(!value["CurrentProtectType"].isNull()) + currentProtectType_ = value["CurrentProtectType"].asString(); + if(!value["CurrentProtectTypeValue"].isNull()) + currentProtectTypeValue_ = value["CurrentProtectTypeValue"].asString(); + if(!value["CurrentBandwidth"].isNull()) + currentBandwidth_ = value["CurrentBandwidth"].asString(); + if(!value["CurrentCcProtection"].isNull()) + currentCcProtection_ = value["CurrentCcProtection"].asString(); + if(!value["CurrentDDoSBasic"].isNull()) + currentDDoSBasic_ = value["CurrentDDoSBasic"].asString(); + if(!value["CurrentDomainCount"].isNull()) + currentDomainCount_ = value["CurrentDomainCount"].asString(); + if(!value["CurrentElasticProtection"].isNull()) + currentElasticProtection_ = value["CurrentElasticProtection"].asString(); + if(!value["CurrentBandwidthValue"].isNull()) + currentBandwidthValue_ = value["CurrentBandwidthValue"].asString(); + if(!value["CurrentCcProtectionValue"].isNull()) + currentCcProtectionValue_ = value["CurrentCcProtectionValue"].asString(); + if(!value["CurrentDDoSBasicValue"].isNull()) + currentDDoSBasicValue_ = value["CurrentDDoSBasicValue"].asString(); + if(!value["CurrentDomainCountValue"].isNull()) + currentDomainCountValue_ = value["CurrentDomainCountValue"].asString(); + if(!value["CurrentElasticProtectionValue"].isNull()) + currentElasticProtectionValue_ = value["CurrentElasticProtectionValue"].asString(); if(!value["PriceType"].isNull()) priceType_ = value["PriceType"].asString(); if(!value["PricingCycle"].isNull()) pricingCycle_ = value["PricingCycle"].asString(); + if(!value["ChangingChargeType"].isNull()) + changingChargeType1_ = value["ChangingChargeType"].asString(); } +std::string DescribeScdnServiceResult::getCurrentDDoSBasicValue()const +{ + return currentDDoSBasicValue_; +} + std::string DescribeScdnServiceResult::getEndTime()const { return endTime_; } -std::string DescribeScdnServiceResult::getInstanceId()const +std::string DescribeScdnServiceResult::getCurrentElasticProtectionValue()const { - return instanceId_; + return currentElasticProtectionValue_; } std::string DescribeScdnServiceResult::getPricingCycle()const @@ -115,9 +155,9 @@ std::string DescribeScdnServiceResult::getDomainCountValue()const return domainCountValue_; } -std::string DescribeScdnServiceResult::getProtectTypeValue()const +std::string DescribeScdnServiceResult::getCurrentDomainCount()const { - return protectTypeValue_; + return currentDomainCount_; } std::string DescribeScdnServiceResult::getCcProtectionValue()const @@ -125,16 +165,6 @@ std::string DescribeScdnServiceResult::getCcProtectionValue()const return ccProtectionValue_; } -std::string DescribeScdnServiceResult::getCcProtection()const -{ - return ccProtection_; -} - -std::vector DescribeScdnServiceResult::getOperationLocks()const -{ - return operationLocks_; -} - std::string DescribeScdnServiceResult::getElasticProtectionValue()const { return elasticProtectionValue_; @@ -145,11 +175,96 @@ std::string DescribeScdnServiceResult::getOpenTime()const return openTime_; } +std::string DescribeScdnServiceResult::getChangingChargeType()const +{ + return changingChargeType_; +} + std::string DescribeScdnServiceResult::getBandwidth()const { return bandwidth_; } +std::string DescribeScdnServiceResult::getDomainCount()const +{ + return domainCount_; +} + +std::string DescribeScdnServiceResult::getCurrentBandwidth()const +{ + return currentBandwidth_; +} + +std::string DescribeScdnServiceResult::getCurrentElasticProtection()const +{ + return currentElasticProtection_; +} + +std::string DescribeScdnServiceResult::getInstanceId()const +{ + return instanceId_; +} + +std::string DescribeScdnServiceResult::getCurrentCcProtectionValue()const +{ + return currentCcProtectionValue_; +} + +std::string DescribeScdnServiceResult::getCurrentProtectType()const +{ + return currentProtectType_; +} + +std::string DescribeScdnServiceResult::getCurrentDDoSBasic()const +{ + return currentDDoSBasic_; +} + +std::string DescribeScdnServiceResult::getCurrentDomainCountValue()const +{ + return currentDomainCountValue_; +} + +std::string DescribeScdnServiceResult::getCurrentBandwidthValue()const +{ + return currentBandwidthValue_; +} + +std::string DescribeScdnServiceResult::getProtectTypeValue()const +{ + return protectTypeValue_; +} + +std::string DescribeScdnServiceResult::getCurrentProtectTypeValue()const +{ + return currentProtectTypeValue_; +} + +std::string DescribeScdnServiceResult::getCcProtection()const +{ + return ccProtection_; +} + +std::vector DescribeScdnServiceResult::getOperationLocks()const +{ + return operationLocks_; +} + +std::string DescribeScdnServiceResult::getChangingAffectTime()const +{ + return changingAffectTime_; +} + +std::string DescribeScdnServiceResult::getInternetChargeType()const +{ + return internetChargeType_; +} + +std::string DescribeScdnServiceResult::getChangingChargeType1()const +{ + return changingChargeType1_; +} + std::string DescribeScdnServiceResult::getDDoSBasicValue()const { return dDoSBasicValue_; @@ -160,6 +275,11 @@ std::string DescribeScdnServiceResult::getProtectType()const return protectType_; } +std::string DescribeScdnServiceResult::getCurrentCcProtection()const +{ + return currentCcProtection_; +} + std::string DescribeScdnServiceResult::getBandwidthValue()const { return bandwidthValue_; @@ -170,8 +290,3 @@ std::string DescribeScdnServiceResult::getPriceType()const return priceType_; } -std::string DescribeScdnServiceResult::getDomainCount()const -{ - return domainCount_; -} - diff --git a/scdn/src/model/DescribeScdnTopDomainsByFlowRequest.cc b/scdn/src/model/DescribeScdnTopDomainsByFlowRequest.cc index ad8f6018d..27cbb764b 100644 --- a/scdn/src/model/DescribeScdnTopDomainsByFlowRequest.cc +++ b/scdn/src/model/DescribeScdnTopDomainsByFlowRequest.cc @@ -33,7 +33,7 @@ long DescribeScdnTopDomainsByFlowRequest::getCallerParentId()const void DescribeScdnTopDomainsByFlowRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeScdnTopDomainsByFlowRequest::getProxy_original_security_transport()const @@ -44,7 +44,7 @@ bool DescribeScdnTopDomainsByFlowRequest::getProxy_original_security_transport() void DescribeScdnTopDomainsByFlowRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeScdnTopDomainsByFlowRequest::getStartTime()const @@ -55,7 +55,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getStartTime()const void DescribeScdnTopDomainsByFlowRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } std::string DescribeScdnTopDomainsByFlowRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getProxy_original_source_ip()co void DescribeScdnTopDomainsByFlowRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeScdnTopDomainsByFlowRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getOwnerIdLoginEmail()const void DescribeScdnTopDomainsByFlowRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeScdnTopDomainsByFlowRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getCallerType()const void DescribeScdnTopDomainsByFlowRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeScdnTopDomainsByFlowRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getAccessKeyId()const void DescribeScdnTopDomainsByFlowRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeScdnTopDomainsByFlowRequest::getSecurityToken()const @@ -110,7 +110,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getSecurityToken()const void DescribeScdnTopDomainsByFlowRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeScdnTopDomainsByFlowRequest::getRequestContent()const @@ -121,7 +121,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getRequestContent()const void DescribeScdnTopDomainsByFlowRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } long DescribeScdnTopDomainsByFlowRequest::getLimit()const @@ -132,7 +132,7 @@ long DescribeScdnTopDomainsByFlowRequest::getLimit()const void DescribeScdnTopDomainsByFlowRequest::setLimit(long limit) { limit_ = limit; - setParameter("Limit", std::to_string(limit)); + setCoreParameter("Limit", std::to_string(limit)); } std::string DescribeScdnTopDomainsByFlowRequest::getCallerBidEmail()const @@ -143,7 +143,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getCallerBidEmail()const void DescribeScdnTopDomainsByFlowRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeScdnTopDomainsByFlowRequest::getCallerUidEmail()const @@ -154,7 +154,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getCallerUidEmail()const void DescribeScdnTopDomainsByFlowRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeScdnTopDomainsByFlowRequest::getCallerUid()const @@ -165,7 +165,7 @@ long DescribeScdnTopDomainsByFlowRequest::getCallerUid()const void DescribeScdnTopDomainsByFlowRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeScdnTopDomainsByFlowRequest::getApp_ip()const @@ -176,7 +176,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getApp_ip()const void DescribeScdnTopDomainsByFlowRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeScdnTopDomainsByFlowRequest::getPopProduct()const @@ -187,7 +187,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getPopProduct()const void DescribeScdnTopDomainsByFlowRequest::setPopProduct(const std::string& popProduct) { popProduct_ = popProduct; - setParameter("PopProduct", popProduct); + setCoreParameter("PopProduct", popProduct); } std::string DescribeScdnTopDomainsByFlowRequest::getProduct()const @@ -198,7 +198,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getProduct()const void DescribeScdnTopDomainsByFlowRequest::setProduct(const std::string& product) { product_ = product; - setParameter("Product", product); + setCoreParameter("Product", product); } std::string DescribeScdnTopDomainsByFlowRequest::getEndTime()const @@ -209,7 +209,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getEndTime()const void DescribeScdnTopDomainsByFlowRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeScdnTopDomainsByFlowRequest::getCallerBid()const @@ -220,7 +220,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getCallerBid()const void DescribeScdnTopDomainsByFlowRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeScdnTopDomainsByFlowRequest::getOwnerId()const @@ -231,7 +231,7 @@ long DescribeScdnTopDomainsByFlowRequest::getOwnerId()const void DescribeScdnTopDomainsByFlowRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeScdnTopDomainsByFlowRequest::getVersion()const @@ -242,7 +242,7 @@ std::string DescribeScdnTopDomainsByFlowRequest::getVersion()const void DescribeScdnTopDomainsByFlowRequest::setVersion(const std::string& version) { version_ = version; - setParameter("Version", version); + setCoreParameter("Version", version); } bool DescribeScdnTopDomainsByFlowRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeScdnTopDomainsByFlowRequest::getProxy_trust_transport_info()const void DescribeScdnTopDomainsByFlowRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeScdnTopDomainsByFlowRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeScdnTopDomainsByFlowRequest::getAk_mfa_present()const void DescribeScdnTopDomainsByFlowRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeScdnTopDomainsByFlowRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeScdnTopDomainsByFlowRequest::getSecurity_transport()const void DescribeScdnTopDomainsByFlowRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeScdnTopDomainsByFlowRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string DescribeScdnTopDomainsByFlowRequest::getRequestId()const void DescribeScdnTopDomainsByFlowRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/scdn/src/model/DescribeScdnTopDomainsByFlowResult.cc b/scdn/src/model/DescribeScdnTopDomainsByFlowResult.cc index a4c86fb7b..8e4818002 100644 --- a/scdn/src/model/DescribeScdnTopDomainsByFlowResult.cc +++ b/scdn/src/model/DescribeScdnTopDomainsByFlowResult.cc @@ -35,10 +35,13 @@ DescribeScdnTopDomainsByFlowResult::~DescribeScdnTopDomainsByFlowResult() void DescribeScdnTopDomainsByFlowResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopDomains = value["TopDomains"]["TopDomain"]; for (auto value : allTopDomains) diff --git a/scdn/src/model/DescribeScdnUserDomainsRequest.cc b/scdn/src/model/DescribeScdnUserDomainsRequest.cc index efba88f4c..73ee9639c 100644 --- a/scdn/src/model/DescribeScdnUserDomainsRequest.cc +++ b/scdn/src/model/DescribeScdnUserDomainsRequest.cc @@ -33,84 +33,7 @@ std::string DescribeScdnUserDomainsRequest::getFuncFilter()const void DescribeScdnUserDomainsRequest::setFuncFilter(const std::string& funcFilter) { funcFilter_ = funcFilter; - setParameter("FuncFilter", funcFilter); -} - -std::string DescribeScdnUserDomainsRequest::getDomainName()const -{ - return domainName_; -} - -void DescribeScdnUserDomainsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); -} - -long DescribeScdnUserDomainsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeScdnUserDomainsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnUserDomainsRequest::getFuncId()const -{ - return funcId_; -} - -void DescribeScdnUserDomainsRequest::setFuncId(const std::string& funcId) -{ - funcId_ = funcId; - setParameter("FuncId", funcId); -} - -int DescribeScdnUserDomainsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeScdnUserDomainsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeScdnUserDomainsRequest::getDomainStatus()const -{ - return domainStatus_; -} - -void DescribeScdnUserDomainsRequest::setDomainStatus(const std::string& domainStatus) -{ - domainStatus_ = domainStatus; - setParameter("DomainStatus", domainStatus); -} - -std::string DescribeScdnUserDomainsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnUserDomainsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeScdnUserDomainsRequest::getDomainSearchType()const -{ - return domainSearchType_; -} - -void DescribeScdnUserDomainsRequest::setDomainSearchType(const std::string& domainSearchType) -{ - domainSearchType_ = domainSearchType; - setParameter("DomainSearchType", domainSearchType); + setCoreParameter("FuncFilter", funcFilter); } bool DescribeScdnUserDomainsRequest::getCheckDomainShow()const @@ -121,7 +44,7 @@ bool DescribeScdnUserDomainsRequest::getCheckDomainShow()const void DescribeScdnUserDomainsRequest::setCheckDomainShow(bool checkDomainShow) { checkDomainShow_ = checkDomainShow; - setParameter("CheckDomainShow", std::to_string(checkDomainShow)); + setCoreParameter("CheckDomainShow", checkDomainShow ? "true" : "false"); } std::string DescribeScdnUserDomainsRequest::getResourceGroupId()const @@ -132,7 +55,7 @@ std::string DescribeScdnUserDomainsRequest::getResourceGroupId()const void DescribeScdnUserDomainsRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeScdnUserDomainsRequest::getSecurityToken()const @@ -143,7 +66,7 @@ std::string DescribeScdnUserDomainsRequest::getSecurityToken()const void DescribeScdnUserDomainsRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } int DescribeScdnUserDomainsRequest::getPageSize()const @@ -154,6 +77,72 @@ int DescribeScdnUserDomainsRequest::getPageSize()const void DescribeScdnUserDomainsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeScdnUserDomainsRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeScdnUserDomainsRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +long DescribeScdnUserDomainsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeScdnUserDomainsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeScdnUserDomainsRequest::getFuncId()const +{ + return funcId_; +} + +void DescribeScdnUserDomainsRequest::setFuncId(const std::string& funcId) +{ + funcId_ = funcId; + setCoreParameter("FuncId", funcId); +} + +int DescribeScdnUserDomainsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeScdnUserDomainsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeScdnUserDomainsRequest::getDomainStatus()const +{ + return domainStatus_; +} + +void DescribeScdnUserDomainsRequest::setDomainStatus(const std::string& domainStatus) +{ + domainStatus_ = domainStatus; + setCoreParameter("DomainStatus", domainStatus); +} + +std::string DescribeScdnUserDomainsRequest::getDomainSearchType()const +{ + return domainSearchType_; +} + +void DescribeScdnUserDomainsRequest::setDomainSearchType(const std::string& domainSearchType) +{ + domainSearchType_ = domainSearchType; + setCoreParameter("DomainSearchType", domainSearchType); } diff --git a/scdn/src/model/DescribeScdnUserDomainsResult.cc b/scdn/src/model/DescribeScdnUserDomainsResult.cc index dfeeb6c6c..1148cad39 100644 --- a/scdn/src/model/DescribeScdnUserDomainsResult.cc +++ b/scdn/src/model/DescribeScdnUserDomainsResult.cc @@ -35,10 +35,13 @@ DescribeScdnUserDomainsResult::~DescribeScdnUserDomainsResult() void DescribeScdnUserDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["PageData"]; for (auto value : allDomains) diff --git a/scdn/src/model/DescribeScdnUserQuotaRequest.cc b/scdn/src/model/DescribeScdnUserQuotaRequest.cc index 5343427cd..482b65696 100644 --- a/scdn/src/model/DescribeScdnUserQuotaRequest.cc +++ b/scdn/src/model/DescribeScdnUserQuotaRequest.cc @@ -33,7 +33,7 @@ std::string DescribeScdnUserQuotaRequest::getSecurityToken()const void DescribeScdnUserQuotaRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } long DescribeScdnUserQuotaRequest::getOwnerId()const @@ -44,17 +44,6 @@ long DescribeScdnUserQuotaRequest::getOwnerId()const void DescribeScdnUserQuotaRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeScdnUserQuotaRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeScdnUserQuotaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/DescribeScdnUserQuotaResult.cc b/scdn/src/model/DescribeScdnUserQuotaResult.cc index b88d4c507..03e8e4887 100644 --- a/scdn/src/model/DescribeScdnUserQuotaResult.cc +++ b/scdn/src/model/DescribeScdnUserQuotaResult.cc @@ -35,10 +35,13 @@ DescribeScdnUserQuotaResult::~DescribeScdnUserQuotaResult() void DescribeScdnUserQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["DomainQuota"].isNull()) domainQuota_ = std::stoi(value["DomainQuota"].asString()); diff --git a/scdn/src/model/OpenScdnServiceRequest.cc b/scdn/src/model/OpenScdnServiceRequest.cc index 3f7b6fda8..5126eeaf0 100644 --- a/scdn/src/model/OpenScdnServiceRequest.cc +++ b/scdn/src/model/OpenScdnServiceRequest.cc @@ -33,7 +33,7 @@ std::string OpenScdnServiceRequest::getEndDate()const void OpenScdnServiceRequest::setEndDate(const std::string& endDate) { endDate_ = endDate; - setParameter("EndDate", endDate); + setCoreParameter("EndDate", endDate); } std::string OpenScdnServiceRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string OpenScdnServiceRequest::getSecurityToken()const void OpenScdnServiceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } int OpenScdnServiceRequest::getBandwidth()const @@ -55,7 +55,7 @@ int OpenScdnServiceRequest::getBandwidth()const void OpenScdnServiceRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } int OpenScdnServiceRequest::getDomainCount()const @@ -66,7 +66,7 @@ int OpenScdnServiceRequest::getDomainCount()const void OpenScdnServiceRequest::setDomainCount(int domainCount) { domainCount_ = domainCount; - setParameter("DomainCount", std::to_string(domainCount)); + setCoreParameter("DomainCount", std::to_string(domainCount)); } long OpenScdnServiceRequest::getOwnerId()const @@ -77,7 +77,7 @@ long OpenScdnServiceRequest::getOwnerId()const void OpenScdnServiceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string OpenScdnServiceRequest::getProtectType()const @@ -88,7 +88,7 @@ std::string OpenScdnServiceRequest::getProtectType()const void OpenScdnServiceRequest::setProtectType(const std::string& protectType) { protectType_ = protectType; - setParameter("ProtectType", protectType); + setCoreParameter("ProtectType", protectType); } std::string OpenScdnServiceRequest::getStartDate()const @@ -99,7 +99,7 @@ std::string OpenScdnServiceRequest::getStartDate()const void OpenScdnServiceRequest::setStartDate(const std::string& startDate) { startDate_ = startDate; - setParameter("StartDate", startDate); + setCoreParameter("StartDate", startDate); } int OpenScdnServiceRequest::getElasticProtection()const @@ -110,7 +110,7 @@ int OpenScdnServiceRequest::getElasticProtection()const void OpenScdnServiceRequest::setElasticProtection(int elasticProtection) { elasticProtection_ = elasticProtection; - setParameter("ElasticProtection", std::to_string(elasticProtection)); + setCoreParameter("ElasticProtection", std::to_string(elasticProtection)); } int OpenScdnServiceRequest::getDDoSBasic()const @@ -121,7 +121,7 @@ int OpenScdnServiceRequest::getDDoSBasic()const void OpenScdnServiceRequest::setDDoSBasic(int dDoSBasic) { dDoSBasic_ = dDoSBasic; - setParameter("DDoSBasic", std::to_string(dDoSBasic)); + setCoreParameter("DDoSBasic", std::to_string(dDoSBasic)); } int OpenScdnServiceRequest::getCcProtection()const @@ -132,17 +132,6 @@ int OpenScdnServiceRequest::getCcProtection()const void OpenScdnServiceRequest::setCcProtection(int ccProtection) { ccProtection_ = ccProtection; - setParameter("CcProtection", std::to_string(ccProtection)); -} - -std::string OpenScdnServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void OpenScdnServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("CcProtection", std::to_string(ccProtection)); } diff --git a/scdn/src/model/OpenScdnServiceResult.cc b/scdn/src/model/OpenScdnServiceResult.cc index f0aca8343..b8c7dac73 100644 --- a/scdn/src/model/OpenScdnServiceResult.cc +++ b/scdn/src/model/OpenScdnServiceResult.cc @@ -35,10 +35,13 @@ OpenScdnServiceResult::~OpenScdnServiceResult() void OpenScdnServiceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/PreloadScdnObjectCachesRequest.cc b/scdn/src/model/PreloadScdnObjectCachesRequest.cc index f198219b7..ec6867c76 100644 --- a/scdn/src/model/PreloadScdnObjectCachesRequest.cc +++ b/scdn/src/model/PreloadScdnObjectCachesRequest.cc @@ -33,7 +33,7 @@ std::string PreloadScdnObjectCachesRequest::getArea()const void PreloadScdnObjectCachesRequest::setArea(const std::string& area) { area_ = area; - setParameter("Area", area); + setCoreParameter("Area", area); } std::string PreloadScdnObjectCachesRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string PreloadScdnObjectCachesRequest::getSecurityToken()const void PreloadScdnObjectCachesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string PreloadScdnObjectCachesRequest::getObjectPath()const @@ -55,7 +55,7 @@ std::string PreloadScdnObjectCachesRequest::getObjectPath()const void PreloadScdnObjectCachesRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } long PreloadScdnObjectCachesRequest::getOwnerId()const @@ -66,17 +66,6 @@ long PreloadScdnObjectCachesRequest::getOwnerId()const void PreloadScdnObjectCachesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string PreloadScdnObjectCachesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void PreloadScdnObjectCachesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/PreloadScdnObjectCachesResult.cc b/scdn/src/model/PreloadScdnObjectCachesResult.cc index 35a61083b..ae07d633b 100644 --- a/scdn/src/model/PreloadScdnObjectCachesResult.cc +++ b/scdn/src/model/PreloadScdnObjectCachesResult.cc @@ -35,10 +35,13 @@ PreloadScdnObjectCachesResult::~PreloadScdnObjectCachesResult() void PreloadScdnObjectCachesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PreloadTaskId"].isNull()) preloadTaskId_ = value["PreloadTaskId"].asString(); diff --git a/scdn/src/model/RefreshScdnObjectCachesRequest.cc b/scdn/src/model/RefreshScdnObjectCachesRequest.cc index 9de4554d2..9cd507d44 100644 --- a/scdn/src/model/RefreshScdnObjectCachesRequest.cc +++ b/scdn/src/model/RefreshScdnObjectCachesRequest.cc @@ -33,7 +33,7 @@ std::string RefreshScdnObjectCachesRequest::getSecurityToken()const void RefreshScdnObjectCachesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string RefreshScdnObjectCachesRequest::getObjectPath()const @@ -44,7 +44,7 @@ std::string RefreshScdnObjectCachesRequest::getObjectPath()const void RefreshScdnObjectCachesRequest::setObjectPath(const std::string& objectPath) { objectPath_ = objectPath; - setParameter("ObjectPath", objectPath); + setCoreParameter("ObjectPath", objectPath); } long RefreshScdnObjectCachesRequest::getOwnerId()const @@ -55,7 +55,7 @@ long RefreshScdnObjectCachesRequest::getOwnerId()const void RefreshScdnObjectCachesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RefreshScdnObjectCachesRequest::getObjectType()const @@ -66,17 +66,6 @@ std::string RefreshScdnObjectCachesRequest::getObjectType()const void RefreshScdnObjectCachesRequest::setObjectType(const std::string& objectType) { objectType_ = objectType; - setParameter("ObjectType", objectType); -} - -std::string RefreshScdnObjectCachesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RefreshScdnObjectCachesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("ObjectType", objectType); } diff --git a/scdn/src/model/RefreshScdnObjectCachesResult.cc b/scdn/src/model/RefreshScdnObjectCachesResult.cc index 6ce409c56..2ecc7c536 100644 --- a/scdn/src/model/RefreshScdnObjectCachesResult.cc +++ b/scdn/src/model/RefreshScdnObjectCachesResult.cc @@ -35,10 +35,13 @@ RefreshScdnObjectCachesResult::~RefreshScdnObjectCachesResult() void RefreshScdnObjectCachesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RefreshTaskId"].isNull()) refreshTaskId_ = value["RefreshTaskId"].asString(); diff --git a/scdn/src/model/SetDomainServerCertificateRequest.cc b/scdn/src/model/SetDomainServerCertificateRequest.cc index 6d61c7737..4f42b0aa3 100644 --- a/scdn/src/model/SetDomainServerCertificateRequest.cc +++ b/scdn/src/model/SetDomainServerCertificateRequest.cc @@ -33,7 +33,7 @@ std::string SetDomainServerCertificateRequest::getSecurityToken()const void SetDomainServerCertificateRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetDomainServerCertificateRequest::getSSLPub()const @@ -44,7 +44,7 @@ std::string SetDomainServerCertificateRequest::getSSLPub()const void SetDomainServerCertificateRequest::setSSLPub(const std::string& sSLPub) { sSLPub_ = sSLPub; - setParameter("SSLPub", sSLPub); + setCoreParameter("SSLPub", sSLPub); } std::string SetDomainServerCertificateRequest::getCertName()const @@ -55,7 +55,7 @@ std::string SetDomainServerCertificateRequest::getCertName()const void SetDomainServerCertificateRequest::setCertName(const std::string& certName) { certName_ = certName; - setParameter("CertName", certName); + setCoreParameter("CertName", certName); } std::string SetDomainServerCertificateRequest::getSSLProtocol()const @@ -66,7 +66,7 @@ std::string SetDomainServerCertificateRequest::getSSLProtocol()const void SetDomainServerCertificateRequest::setSSLProtocol(const std::string& sSLProtocol) { sSLProtocol_ = sSLProtocol; - setParameter("SSLProtocol", sSLProtocol); + setCoreParameter("SSLProtocol", sSLProtocol); } std::string SetDomainServerCertificateRequest::getDomainName()const @@ -77,7 +77,7 @@ std::string SetDomainServerCertificateRequest::getDomainName()const void SetDomainServerCertificateRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetDomainServerCertificateRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SetDomainServerCertificateRequest::getOwnerId()const void SetDomainServerCertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetDomainServerCertificateRequest::getRegion()const @@ -99,7 +99,7 @@ std::string SetDomainServerCertificateRequest::getRegion()const void SetDomainServerCertificateRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string SetDomainServerCertificateRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string SetDomainServerCertificateRequest::getAccessKeyId()const void SetDomainServerCertificateRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SetDomainServerCertificateRequest::getSSLPri()const @@ -121,6 +121,6 @@ std::string SetDomainServerCertificateRequest::getSSLPri()const void SetDomainServerCertificateRequest::setSSLPri(const std::string& sSLPri) { sSLPri_ = sSLPri; - setParameter("SSLPri", sSLPri); + setCoreParameter("SSLPri", sSLPri); } diff --git a/scdn/src/model/SetDomainServerCertificateResult.cc b/scdn/src/model/SetDomainServerCertificateResult.cc index 903b9ab80..ea6937b35 100644 --- a/scdn/src/model/SetDomainServerCertificateResult.cc +++ b/scdn/src/model/SetDomainServerCertificateResult.cc @@ -35,10 +35,13 @@ SetDomainServerCertificateResult::~SetDomainServerCertificateResult() void SetDomainServerCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/SetScdnDomainCertificateRequest.cc b/scdn/src/model/SetScdnDomainCertificateRequest.cc index 6eb2e1826..e16e828a7 100644 --- a/scdn/src/model/SetScdnDomainCertificateRequest.cc +++ b/scdn/src/model/SetScdnDomainCertificateRequest.cc @@ -33,7 +33,7 @@ std::string SetScdnDomainCertificateRequest::getForceSet()const void SetScdnDomainCertificateRequest::setForceSet(const std::string& forceSet) { forceSet_ = forceSet; - setParameter("ForceSet", forceSet); + setCoreParameter("ForceSet", forceSet); } std::string SetScdnDomainCertificateRequest::getSecurityToken()const @@ -44,7 +44,7 @@ std::string SetScdnDomainCertificateRequest::getSecurityToken()const void SetScdnDomainCertificateRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string SetScdnDomainCertificateRequest::getCertType()const @@ -55,7 +55,7 @@ std::string SetScdnDomainCertificateRequest::getCertType()const void SetScdnDomainCertificateRequest::setCertType(const std::string& certType) { certType_ = certType; - setParameter("CertType", certType); + setCoreParameter("CertType", certType); } std::string SetScdnDomainCertificateRequest::getSSLPub()const @@ -66,7 +66,7 @@ std::string SetScdnDomainCertificateRequest::getSSLPub()const void SetScdnDomainCertificateRequest::setSSLPub(const std::string& sSLPub) { sSLPub_ = sSLPub; - setParameter("SSLPub", sSLPub); + setCoreParameter("SSLPub", sSLPub); } std::string SetScdnDomainCertificateRequest::getCertName()const @@ -77,7 +77,7 @@ std::string SetScdnDomainCertificateRequest::getCertName()const void SetScdnDomainCertificateRequest::setCertName(const std::string& certName) { certName_ = certName; - setParameter("CertName", certName); + setCoreParameter("CertName", certName); } std::string SetScdnDomainCertificateRequest::getSSLProtocol()const @@ -88,7 +88,7 @@ std::string SetScdnDomainCertificateRequest::getSSLProtocol()const void SetScdnDomainCertificateRequest::setSSLProtocol(const std::string& sSLProtocol) { sSLProtocol_ = sSLProtocol; - setParameter("SSLProtocol", sSLProtocol); + setCoreParameter("SSLProtocol", sSLProtocol); } std::string SetScdnDomainCertificateRequest::getDomainName()const @@ -99,7 +99,7 @@ std::string SetScdnDomainCertificateRequest::getDomainName()const void SetScdnDomainCertificateRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long SetScdnDomainCertificateRequest::getOwnerId()const @@ -110,7 +110,7 @@ long SetScdnDomainCertificateRequest::getOwnerId()const void SetScdnDomainCertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetScdnDomainCertificateRequest::getRegion()const @@ -121,18 +121,7 @@ std::string SetScdnDomainCertificateRequest::getRegion()const void SetScdnDomainCertificateRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); -} - -std::string SetScdnDomainCertificateRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SetScdnDomainCertificateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("Region", region); } std::string SetScdnDomainCertificateRequest::getSSLPri()const @@ -143,6 +132,6 @@ std::string SetScdnDomainCertificateRequest::getSSLPri()const void SetScdnDomainCertificateRequest::setSSLPri(const std::string& sSLPri) { sSLPri_ = sSLPri; - setParameter("SSLPri", sSLPri); + setCoreParameter("SSLPri", sSLPri); } diff --git a/scdn/src/model/SetScdnDomainCertificateResult.cc b/scdn/src/model/SetScdnDomainCertificateResult.cc index e4a99fafd..348fb0f25 100644 --- a/scdn/src/model/SetScdnDomainCertificateResult.cc +++ b/scdn/src/model/SetScdnDomainCertificateResult.cc @@ -35,10 +35,13 @@ SetScdnDomainCertificateResult::~SetScdnDomainCertificateResult() void SetScdnDomainCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/StartScdnDomainRequest.cc b/scdn/src/model/StartScdnDomainRequest.cc index 1abd1d305..9f5e19685 100644 --- a/scdn/src/model/StartScdnDomainRequest.cc +++ b/scdn/src/model/StartScdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string StartScdnDomainRequest::getSecurityToken()const void StartScdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StartScdnDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string StartScdnDomainRequest::getDomainName()const void StartScdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long StartScdnDomainRequest::getOwnerId()const @@ -55,17 +55,6 @@ long StartScdnDomainRequest::getOwnerId()const void StartScdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string StartScdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StartScdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/StartScdnDomainResult.cc b/scdn/src/model/StartScdnDomainResult.cc index 7aeac10ec..f3ac59fd9 100644 --- a/scdn/src/model/StartScdnDomainResult.cc +++ b/scdn/src/model/StartScdnDomainResult.cc @@ -35,10 +35,13 @@ StartScdnDomainResult::~StartScdnDomainResult() void StartScdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/StopScdnDomainRequest.cc b/scdn/src/model/StopScdnDomainRequest.cc index f16e6bff1..cb2a6b8af 100644 --- a/scdn/src/model/StopScdnDomainRequest.cc +++ b/scdn/src/model/StopScdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string StopScdnDomainRequest::getSecurityToken()const void StopScdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string StopScdnDomainRequest::getDomainName()const @@ -44,7 +44,7 @@ std::string StopScdnDomainRequest::getDomainName()const void StopScdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long StopScdnDomainRequest::getOwnerId()const @@ -55,17 +55,6 @@ long StopScdnDomainRequest::getOwnerId()const void StopScdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string StopScdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void StopScdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/StopScdnDomainResult.cc b/scdn/src/model/StopScdnDomainResult.cc index 29362d179..24b1beaa4 100644 --- a/scdn/src/model/StopScdnDomainResult.cc +++ b/scdn/src/model/StopScdnDomainResult.cc @@ -35,10 +35,13 @@ StopScdnDomainResult::~StopScdnDomainResult() void StopScdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/scdn/src/model/UpdateScdnDomainRequest.cc b/scdn/src/model/UpdateScdnDomainRequest.cc index f15b4791c..1d17d7683 100644 --- a/scdn/src/model/UpdateScdnDomainRequest.cc +++ b/scdn/src/model/UpdateScdnDomainRequest.cc @@ -33,7 +33,7 @@ std::string UpdateScdnDomainRequest::getResourceGroupId()const void UpdateScdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string UpdateScdnDomainRequest::getSources()const @@ -44,7 +44,7 @@ std::string UpdateScdnDomainRequest::getSources()const void UpdateScdnDomainRequest::setSources(const std::string& sources) { sources_ = sources; - setParameter("Sources", sources); + setCoreParameter("Sources", sources); } std::string UpdateScdnDomainRequest::getSecurityToken()const @@ -55,7 +55,7 @@ std::string UpdateScdnDomainRequest::getSecurityToken()const void UpdateScdnDomainRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string UpdateScdnDomainRequest::getDomainName()const @@ -66,7 +66,7 @@ std::string UpdateScdnDomainRequest::getDomainName()const void UpdateScdnDomainRequest::setDomainName(const std::string& domainName) { domainName_ = domainName; - setParameter("DomainName", domainName); + setCoreParameter("DomainName", domainName); } long UpdateScdnDomainRequest::getOwnerId()const @@ -77,17 +77,6 @@ long UpdateScdnDomainRequest::getOwnerId()const void UpdateScdnDomainRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UpdateScdnDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateScdnDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/scdn/src/model/UpdateScdnDomainResult.cc b/scdn/src/model/UpdateScdnDomainResult.cc index 957ffc914..f9281367e 100644 --- a/scdn/src/model/UpdateScdnDomainResult.cc +++ b/scdn/src/model/UpdateScdnDomainResult.cc @@ -35,10 +35,13 @@ UpdateScdnDomainResult::~UpdateScdnDomainResult() void UpdateScdnDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/sddp/CMakeLists.txt b/sddp/CMakeLists.txt index 4cbb3aead..574156c55 100644 --- a/sddp/CMakeLists.txt +++ b/sddp/CMakeLists.txt @@ -1,82 +1,238 @@ -# -# Copyright 2009-2017 Alibaba Cloud All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(sddp_public_header include/alibabacloud/sddp/SddpClient.h - include/alibabacloud/sddp/SddpExport.h ) - -set(sddp_public_header_model ) - + include/alibabacloud/sddp/SddpExport.h ) + +set(sddp_public_header_model + include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h + include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.h + include/alibabacloud/sddp/model/CreateConfigRequest.h + include/alibabacloud/sddp/model/CreateConfigResult.h + include/alibabacloud/sddp/model/DescribeEventTypesRequest.h + include/alibabacloud/sddp/model/DescribeEventTypesResult.h + include/alibabacloud/sddp/model/ModifyEventStatusRequest.h + include/alibabacloud/sddp/model/ModifyEventStatusResult.h + include/alibabacloud/sddp/model/DescribePackagesRequest.h + include/alibabacloud/sddp/model/DescribePackagesResult.h + include/alibabacloud/sddp/model/DescribeConfigsRequest.h + include/alibabacloud/sddp/model/DescribeConfigsResult.h + include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.h + include/alibabacloud/sddp/model/DescribeAuthAccountsResult.h + include/alibabacloud/sddp/model/ValidateConnectorRequest.h + include/alibabacloud/sddp/model/ValidateConnectorResult.h + include/alibabacloud/sddp/model/DescribeDataAssetsRequest.h + include/alibabacloud/sddp/model/DescribeDataAssetsResult.h + include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h + include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.h + include/alibabacloud/sddp/model/CreateRuleRequest.h + include/alibabacloud/sddp/model/CreateRuleResult.h + include/alibabacloud/sddp/model/CreateUserAuthRequest.h + include/alibabacloud/sddp/model/CreateUserAuthResult.h + include/alibabacloud/sddp/model/DeleteRuleRequest.h + include/alibabacloud/sddp/model/DeleteRuleResult.h + include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h + include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h + include/alibabacloud/sddp/model/DescribeColumnsRequest.h + include/alibabacloud/sddp/model/DescribeColumnsResult.h + include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h + include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.h + include/alibabacloud/sddp/model/DescribeRulesRequest.h + include/alibabacloud/sddp/model/DescribeRulesResult.h + include/alibabacloud/sddp/model/DeleteDataLimitRequest.h + include/alibabacloud/sddp/model/DeleteDataLimitResult.h + include/alibabacloud/sddp/model/ModifyRuleStatusRequest.h + include/alibabacloud/sddp/model/ModifyRuleStatusResult.h + include/alibabacloud/sddp/model/DescribeAccountDetailRequest.h + include/alibabacloud/sddp/model/DescribeAccountDetailResult.h + include/alibabacloud/sddp/model/DescribeDepartsRequest.h + include/alibabacloud/sddp/model/DescribeDepartsResult.h + include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h + include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h + include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h + include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.h + include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.h + include/alibabacloud/sddp/model/DescribeCloudInstancesResult.h + include/alibabacloud/sddp/model/DescribeAccountsRequest.h + include/alibabacloud/sddp/model/DescribeAccountsResult.h + include/alibabacloud/sddp/model/DescribeOssObjectsRequest.h + include/alibabacloud/sddp/model/DescribeOssObjectsResult.h + include/alibabacloud/sddp/model/DescribeDataLimitsRequest.h + include/alibabacloud/sddp/model/DescribeDataLimitsResult.h + include/alibabacloud/sddp/model/DescribeEventsRequest.h + include/alibabacloud/sddp/model/DescribeEventsResult.h + include/alibabacloud/sddp/model/CreateDataLimitRequest.h + include/alibabacloud/sddp/model/CreateDataLimitResult.h + include/alibabacloud/sddp/model/ModifyRuleRequest.h + include/alibabacloud/sddp/model/ModifyRuleResult.h + include/alibabacloud/sddp/model/DescribeEventDetailRequest.h + include/alibabacloud/sddp/model/DescribeEventDetailResult.h + include/alibabacloud/sddp/model/ModifyDataLimitRequest.h + include/alibabacloud/sddp/model/ModifyDataLimitResult.h + include/alibabacloud/sddp/model/DescribeTablesRequest.h + include/alibabacloud/sddp/model/DescribeTablesResult.h + include/alibabacloud/sddp/model/DescribePrivilegesRequest.h + include/alibabacloud/sddp/model/DescribePrivilegesResult.h + include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h + include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.h + include/alibabacloud/sddp/model/DescribeInstancesRequest.h + include/alibabacloud/sddp/model/DescribeInstancesResult.h + include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h + include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.h + include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.h + include/alibabacloud/sddp/model/ModifyDefaultLevelResult.h + include/alibabacloud/sddp/model/DescribeUserStatusRequest.h + include/alibabacloud/sddp/model/DescribeUserStatusResult.h ) + set(sddp_src - src/SddpClient.cc ) - -add_library(sddp ${LIB_TYPE} - ${sddp_public_header} - ${sddp_public_header_model} - ${sddp_src}) - -set_target_properties(sddp - 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}sddp - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(sddp - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_SDDP_LIBRARY) -endif() - -target_include_directories(sddp - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(sddp - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(sddp - jsoncpp) - target_include_directories(sddp - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(sddp - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(sddp - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(sddp - PRIVATE /usr/include/jsoncpp) - target_link_libraries(sddp - jsoncpp) -endif() - -install(FILES ${sddp_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sddp) -install(FILES ${sddp_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sddp/model) -install(TARGETS sddp - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/SddpClient.cc + src/model/DescribeOssObjectDetailRequest.cc + src/model/DescribeOssObjectDetailResult.cc + src/model/CreateConfigRequest.cc + src/model/CreateConfigResult.cc + src/model/DescribeEventTypesRequest.cc + src/model/DescribeEventTypesResult.cc + src/model/ModifyEventStatusRequest.cc + src/model/ModifyEventStatusResult.cc + src/model/DescribePackagesRequest.cc + src/model/DescribePackagesResult.cc + src/model/DescribeConfigsRequest.cc + src/model/DescribeConfigsResult.cc + src/model/DescribeAuthAccountsRequest.cc + src/model/DescribeAuthAccountsResult.cc + src/model/ValidateConnectorRequest.cc + src/model/ValidateConnectorResult.cc + src/model/DescribeDataAssetsRequest.cc + src/model/DescribeDataAssetsResult.cc + src/model/DescribeCloudDatabasesRequest.cc + src/model/DescribeCloudDatabasesResult.cc + src/model/CreateRuleRequest.cc + src/model/CreateRuleResult.cc + src/model/CreateUserAuthRequest.cc + src/model/CreateUserAuthResult.cc + src/model/DeleteRuleRequest.cc + src/model/DeleteRuleResult.cc + src/model/DescribeDataHubConnectorsRequest.cc + src/model/DescribeDataHubConnectorsResult.cc + src/model/DescribeColumnsRequest.cc + src/model/DescribeColumnsResult.cc + src/model/DescribeDataLimitDetailRequest.cc + src/model/DescribeDataLimitDetailResult.cc + src/model/DescribeRulesRequest.cc + src/model/DescribeRulesResult.cc + src/model/DeleteDataLimitRequest.cc + src/model/DeleteDataLimitResult.cc + src/model/ModifyRuleStatusRequest.cc + src/model/ModifyRuleStatusResult.cc + src/model/DescribeAccountDetailRequest.cc + src/model/DescribeAccountDetailResult.cc + src/model/DescribeDepartsRequest.cc + src/model/DescribeDepartsResult.cc + src/model/DescribeDataHubSubscriptionsRequest.cc + src/model/DescribeDataHubSubscriptionsResult.cc + src/model/DescribeDataHubTopicsRequest.cc + src/model/DescribeDataHubTopicsResult.cc + src/model/DescribeCloudInstancesRequest.cc + src/model/DescribeCloudInstancesResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/DescribeOssObjectsRequest.cc + src/model/DescribeOssObjectsResult.cc + src/model/DescribeDataLimitsRequest.cc + src/model/DescribeDataLimitsResult.cc + src/model/DescribeEventsRequest.cc + src/model/DescribeEventsResult.cc + src/model/CreateDataLimitRequest.cc + src/model/CreateDataLimitResult.cc + src/model/ModifyRuleRequest.cc + src/model/ModifyRuleResult.cc + src/model/DescribeEventDetailRequest.cc + src/model/DescribeEventDetailResult.cc + src/model/ModifyDataLimitRequest.cc + src/model/ModifyDataLimitResult.cc + src/model/DescribeTablesRequest.cc + src/model/DescribeTablesResult.cc + src/model/DescribePrivilegesRequest.cc + src/model/DescribePrivilegesResult.cc + src/model/DescribeDataHubProjectsRequest.cc + src/model/DescribeDataHubProjectsResult.cc + src/model/DescribeInstancesRequest.cc + src/model/DescribeInstancesResult.cc + src/model/ModifyEventTypeStatusRequest.cc + src/model/ModifyEventTypeStatusResult.cc + src/model/ModifyDefaultLevelRequest.cc + src/model/ModifyDefaultLevelResult.cc + src/model/DescribeUserStatusRequest.cc + src/model/DescribeUserStatusResult.cc ) + +add_library(sddp ${LIB_TYPE} + ${sddp_public_header} + ${sddp_public_header_model} + ${sddp_src}) + +set_target_properties(sddp + 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}sddp + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(sddp + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SDDP_LIBRARY) +endif() + +target_include_directories(sddp + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(sddp + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(sddp + jsoncpp) + target_include_directories(sddp + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(sddp + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(sddp + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(sddp + PRIVATE /usr/include/jsoncpp) + target_link_libraries(sddp + jsoncpp) +endif() + +install(FILES ${sddp_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sddp) +install(FILES ${sddp_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sddp/model) +install(TARGETS sddp + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/SddpClient.h b/sddp/include/alibabacloud/sddp/SddpClient.h index 33dece4e2..b0771a158 100644 --- a/sddp/include/alibabacloud/sddp/SddpClient.h +++ b/sddp/include/alibabacloud/sddp/SddpClient.h @@ -1,45 +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_SDDP_SDDPCLIENT_H_ -#define ALIBABACLOUD_SDDP_SDDPCLIENT_H_ - -#include -#include -#include -#include -#include "SddpExport.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_SDDPCLIENT_H_ +#define ALIBABACLOUD_SDDP_SDDPCLIENT_H_ + +#include +#include +#include +#include +#include "SddpExport.h" #include "model/DescribeOssObjectDetailRequest.h" #include "model/DescribeOssObjectDetailResult.h" #include "model/CreateConfigRequest.h" #include "model/CreateConfigResult.h" #include "model/DescribeEventTypesRequest.h" #include "model/DescribeEventTypesResult.h" -#include "model/DescribePackagesRequest.h" -#include "model/DescribePackagesResult.h" #include "model/ModifyEventStatusRequest.h" #include "model/ModifyEventStatusResult.h" +#include "model/DescribePackagesRequest.h" +#include "model/DescribePackagesResult.h" #include "model/DescribeConfigsRequest.h" #include "model/DescribeConfigsResult.h" #include "model/DescribeAuthAccountsRequest.h" #include "model/DescribeAuthAccountsResult.h" -#include "model/DescribeDataAssetsRequest.h" -#include "model/DescribeDataAssetsResult.h" #include "model/ValidateConnectorRequest.h" #include "model/ValidateConnectorResult.h" +#include "model/DescribeDataAssetsRequest.h" +#include "model/DescribeDataAssetsResult.h" #include "model/DescribeCloudDatabasesRequest.h" #include "model/DescribeCloudDatabasesResult.h" #include "model/CreateRuleRequest.h" @@ -50,16 +50,16 @@ #include "model/DeleteRuleResult.h" #include "model/DescribeDataHubConnectorsRequest.h" #include "model/DescribeDataHubConnectorsResult.h" -#include "model/DescribeRulesRequest.h" -#include "model/DescribeRulesResult.h" -#include "model/DescribeDataLimitDetailRequest.h" -#include "model/DescribeDataLimitDetailResult.h" #include "model/DescribeColumnsRequest.h" #include "model/DescribeColumnsResult.h" -#include "model/ModifyRuleStatusRequest.h" -#include "model/ModifyRuleStatusResult.h" +#include "model/DescribeDataLimitDetailRequest.h" +#include "model/DescribeDataLimitDetailResult.h" +#include "model/DescribeRulesRequest.h" +#include "model/DescribeRulesResult.h" #include "model/DeleteDataLimitRequest.h" #include "model/DeleteDataLimitResult.h" +#include "model/ModifyRuleStatusRequest.h" +#include "model/ModifyRuleStatusResult.h" #include "model/DescribeAccountDetailRequest.h" #include "model/DescribeAccountDetailResult.h" #include "model/DescribeDepartsRequest.h" @@ -82,10 +82,10 @@ #include "model/CreateDataLimitResult.h" #include "model/ModifyRuleRequest.h" #include "model/ModifyRuleResult.h" -#include "model/ModifyDataLimitRequest.h" -#include "model/ModifyDataLimitResult.h" #include "model/DescribeEventDetailRequest.h" #include "model/DescribeEventDetailResult.h" +#include "model/ModifyDataLimitRequest.h" +#include "model/ModifyDataLimitResult.h" #include "model/DescribeTablesRequest.h" #include "model/DescribeTablesResult.h" #include "model/DescribePrivilegesRequest.h" @@ -94,265 +94,265 @@ #include "model/DescribeDataHubProjectsResult.h" #include "model/DescribeInstancesRequest.h" #include "model/DescribeInstancesResult.h" -#include "model/ModifyDefaultLevelRequest.h" -#include "model/ModifyDefaultLevelResult.h" #include "model/ModifyEventTypeStatusRequest.h" #include "model/ModifyEventTypeStatusResult.h" +#include "model/ModifyDefaultLevelRequest.h" +#include "model/ModifyDefaultLevelResult.h" #include "model/DescribeUserStatusRequest.h" #include "model/DescribeUserStatusResult.h" - - -namespace AlibabaCloud -{ - namespace Sddp - { - class ALIBABACLOUD_SDDP_EXPORT SddpClient : public RpcServiceClient - { - public: - typedef Outcome DescribeOssObjectDetailOutcome; - typedef std::future DescribeOssObjectDetailOutcomeCallable; + + +namespace AlibabaCloud +{ + namespace Sddp + { + class ALIBABACLOUD_SDDP_EXPORT SddpClient : public RpcServiceClient + { + public: + typedef Outcome DescribeOssObjectDetailOutcome; + typedef std::future DescribeOssObjectDetailOutcomeCallable; typedef std::function&)> DescribeOssObjectDetailAsyncHandler; - typedef Outcome CreateConfigOutcome; - typedef std::future CreateConfigOutcomeCallable; + typedef Outcome CreateConfigOutcome; + typedef std::future CreateConfigOutcomeCallable; typedef std::function&)> CreateConfigAsyncHandler; - typedef Outcome DescribeEventTypesOutcome; - typedef std::future DescribeEventTypesOutcomeCallable; + typedef Outcome DescribeEventTypesOutcome; + typedef std::future DescribeEventTypesOutcomeCallable; typedef std::function&)> DescribeEventTypesAsyncHandler; - typedef Outcome DescribePackagesOutcome; - typedef std::future DescribePackagesOutcomeCallable; - typedef std::function&)> DescribePackagesAsyncHandler; - typedef Outcome ModifyEventStatusOutcome; - typedef std::future ModifyEventStatusOutcomeCallable; + typedef Outcome ModifyEventStatusOutcome; + typedef std::future ModifyEventStatusOutcomeCallable; typedef std::function&)> ModifyEventStatusAsyncHandler; - typedef Outcome DescribeConfigsOutcome; - typedef std::future DescribeConfigsOutcomeCallable; + typedef Outcome DescribePackagesOutcome; + typedef std::future DescribePackagesOutcomeCallable; + typedef std::function&)> DescribePackagesAsyncHandler; + typedef Outcome DescribeConfigsOutcome; + typedef std::future DescribeConfigsOutcomeCallable; typedef std::function&)> DescribeConfigsAsyncHandler; - typedef Outcome DescribeAuthAccountsOutcome; - typedef std::future DescribeAuthAccountsOutcomeCallable; + typedef Outcome DescribeAuthAccountsOutcome; + typedef std::future DescribeAuthAccountsOutcomeCallable; typedef std::function&)> DescribeAuthAccountsAsyncHandler; - typedef Outcome DescribeDataAssetsOutcome; - typedef std::future DescribeDataAssetsOutcomeCallable; - typedef std::function&)> DescribeDataAssetsAsyncHandler; - typedef Outcome ValidateConnectorOutcome; - typedef std::future ValidateConnectorOutcomeCallable; + typedef Outcome ValidateConnectorOutcome; + typedef std::future ValidateConnectorOutcomeCallable; typedef std::function&)> ValidateConnectorAsyncHandler; - typedef Outcome DescribeCloudDatabasesOutcome; - typedef std::future DescribeCloudDatabasesOutcomeCallable; + typedef Outcome DescribeDataAssetsOutcome; + typedef std::future DescribeDataAssetsOutcomeCallable; + typedef std::function&)> DescribeDataAssetsAsyncHandler; + typedef Outcome DescribeCloudDatabasesOutcome; + typedef std::future DescribeCloudDatabasesOutcomeCallable; typedef std::function&)> DescribeCloudDatabasesAsyncHandler; - typedef Outcome CreateRuleOutcome; - typedef std::future CreateRuleOutcomeCallable; + typedef Outcome CreateRuleOutcome; + typedef std::future CreateRuleOutcomeCallable; typedef std::function&)> CreateRuleAsyncHandler; - typedef Outcome CreateUserAuthOutcome; - typedef std::future CreateUserAuthOutcomeCallable; + typedef Outcome CreateUserAuthOutcome; + typedef std::future CreateUserAuthOutcomeCallable; typedef std::function&)> CreateUserAuthAsyncHandler; - typedef Outcome DeleteRuleOutcome; - typedef std::future DeleteRuleOutcomeCallable; + typedef Outcome DeleteRuleOutcome; + typedef std::future DeleteRuleOutcomeCallable; typedef std::function&)> DeleteRuleAsyncHandler; - typedef Outcome DescribeDataHubConnectorsOutcome; - typedef std::future DescribeDataHubConnectorsOutcomeCallable; + typedef Outcome DescribeDataHubConnectorsOutcome; + typedef std::future DescribeDataHubConnectorsOutcomeCallable; typedef std::function&)> DescribeDataHubConnectorsAsyncHandler; - typedef Outcome DescribeRulesOutcome; - typedef std::future DescribeRulesOutcomeCallable; - typedef std::function&)> DescribeRulesAsyncHandler; - typedef Outcome DescribeDataLimitDetailOutcome; - typedef std::future DescribeDataLimitDetailOutcomeCallable; - typedef std::function&)> DescribeDataLimitDetailAsyncHandler; - typedef Outcome DescribeColumnsOutcome; - typedef std::future DescribeColumnsOutcomeCallable; + typedef Outcome DescribeColumnsOutcome; + typedef std::future DescribeColumnsOutcomeCallable; typedef std::function&)> DescribeColumnsAsyncHandler; - typedef Outcome ModifyRuleStatusOutcome; - typedef std::future ModifyRuleStatusOutcomeCallable; - typedef std::function&)> ModifyRuleStatusAsyncHandler; - typedef Outcome DeleteDataLimitOutcome; - typedef std::future DeleteDataLimitOutcomeCallable; + typedef Outcome DescribeDataLimitDetailOutcome; + typedef std::future DescribeDataLimitDetailOutcomeCallable; + typedef std::function&)> DescribeDataLimitDetailAsyncHandler; + typedef Outcome DescribeRulesOutcome; + typedef std::future DescribeRulesOutcomeCallable; + typedef std::function&)> DescribeRulesAsyncHandler; + typedef Outcome DeleteDataLimitOutcome; + typedef std::future DeleteDataLimitOutcomeCallable; typedef std::function&)> DeleteDataLimitAsyncHandler; - typedef Outcome DescribeAccountDetailOutcome; - typedef std::future DescribeAccountDetailOutcomeCallable; + typedef Outcome ModifyRuleStatusOutcome; + typedef std::future ModifyRuleStatusOutcomeCallable; + typedef std::function&)> ModifyRuleStatusAsyncHandler; + typedef Outcome DescribeAccountDetailOutcome; + typedef std::future DescribeAccountDetailOutcomeCallable; typedef std::function&)> DescribeAccountDetailAsyncHandler; - typedef Outcome DescribeDepartsOutcome; - typedef std::future DescribeDepartsOutcomeCallable; + typedef Outcome DescribeDepartsOutcome; + typedef std::future DescribeDepartsOutcomeCallable; typedef std::function&)> DescribeDepartsAsyncHandler; - typedef Outcome DescribeDataHubSubscriptionsOutcome; - typedef std::future DescribeDataHubSubscriptionsOutcomeCallable; + typedef Outcome DescribeDataHubSubscriptionsOutcome; + typedef std::future DescribeDataHubSubscriptionsOutcomeCallable; typedef std::function&)> DescribeDataHubSubscriptionsAsyncHandler; - typedef Outcome DescribeDataHubTopicsOutcome; - typedef std::future DescribeDataHubTopicsOutcomeCallable; + typedef Outcome DescribeDataHubTopicsOutcome; + typedef std::future DescribeDataHubTopicsOutcomeCallable; typedef std::function&)> DescribeDataHubTopicsAsyncHandler; - typedef Outcome DescribeCloudInstancesOutcome; - typedef std::future DescribeCloudInstancesOutcomeCallable; + typedef Outcome DescribeCloudInstancesOutcome; + typedef std::future DescribeCloudInstancesOutcomeCallable; typedef std::function&)> DescribeCloudInstancesAsyncHandler; - typedef Outcome DescribeAccountsOutcome; - typedef std::future DescribeAccountsOutcomeCallable; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; typedef std::function&)> DescribeAccountsAsyncHandler; - typedef Outcome DescribeOssObjectsOutcome; - typedef std::future DescribeOssObjectsOutcomeCallable; + typedef Outcome DescribeOssObjectsOutcome; + typedef std::future DescribeOssObjectsOutcomeCallable; typedef std::function&)> DescribeOssObjectsAsyncHandler; - typedef Outcome DescribeDataLimitsOutcome; - typedef std::future DescribeDataLimitsOutcomeCallable; + typedef Outcome DescribeDataLimitsOutcome; + typedef std::future DescribeDataLimitsOutcomeCallable; typedef std::function&)> DescribeDataLimitsAsyncHandler; - typedef Outcome DescribeEventsOutcome; - typedef std::future DescribeEventsOutcomeCallable; + typedef Outcome DescribeEventsOutcome; + typedef std::future DescribeEventsOutcomeCallable; typedef std::function&)> DescribeEventsAsyncHandler; - typedef Outcome CreateDataLimitOutcome; - typedef std::future CreateDataLimitOutcomeCallable; + typedef Outcome CreateDataLimitOutcome; + typedef std::future CreateDataLimitOutcomeCallable; typedef std::function&)> CreateDataLimitAsyncHandler; - typedef Outcome ModifyRuleOutcome; - typedef std::future ModifyRuleOutcomeCallable; + typedef Outcome ModifyRuleOutcome; + typedef std::future ModifyRuleOutcomeCallable; typedef std::function&)> ModifyRuleAsyncHandler; - typedef Outcome ModifyDataLimitOutcome; - typedef std::future ModifyDataLimitOutcomeCallable; - typedef std::function&)> ModifyDataLimitAsyncHandler; - typedef Outcome DescribeEventDetailOutcome; - typedef std::future DescribeEventDetailOutcomeCallable; + typedef Outcome DescribeEventDetailOutcome; + typedef std::future DescribeEventDetailOutcomeCallable; typedef std::function&)> DescribeEventDetailAsyncHandler; - typedef Outcome DescribeTablesOutcome; - typedef std::future DescribeTablesOutcomeCallable; + typedef Outcome ModifyDataLimitOutcome; + typedef std::future ModifyDataLimitOutcomeCallable; + typedef std::function&)> ModifyDataLimitAsyncHandler; + typedef Outcome DescribeTablesOutcome; + typedef std::future DescribeTablesOutcomeCallable; typedef std::function&)> DescribeTablesAsyncHandler; - typedef Outcome DescribePrivilegesOutcome; - typedef std::future DescribePrivilegesOutcomeCallable; + typedef Outcome DescribePrivilegesOutcome; + typedef std::future DescribePrivilegesOutcomeCallable; typedef std::function&)> DescribePrivilegesAsyncHandler; - typedef Outcome DescribeDataHubProjectsOutcome; - typedef std::future DescribeDataHubProjectsOutcomeCallable; + typedef Outcome DescribeDataHubProjectsOutcome; + typedef std::future DescribeDataHubProjectsOutcomeCallable; typedef std::function&)> DescribeDataHubProjectsAsyncHandler; - typedef Outcome DescribeInstancesOutcome; - typedef std::future DescribeInstancesOutcomeCallable; + typedef Outcome DescribeInstancesOutcome; + typedef std::future DescribeInstancesOutcomeCallable; typedef std::function&)> DescribeInstancesAsyncHandler; - typedef Outcome ModifyDefaultLevelOutcome; - typedef std::future ModifyDefaultLevelOutcomeCallable; - typedef std::function&)> ModifyDefaultLevelAsyncHandler; - typedef Outcome ModifyEventTypeStatusOutcome; - typedef std::future ModifyEventTypeStatusOutcomeCallable; + typedef Outcome ModifyEventTypeStatusOutcome; + typedef std::future ModifyEventTypeStatusOutcomeCallable; typedef std::function&)> ModifyEventTypeStatusAsyncHandler; - typedef Outcome DescribeUserStatusOutcome; - typedef std::future DescribeUserStatusOutcomeCallable; + typedef Outcome ModifyDefaultLevelOutcome; + typedef std::future ModifyDefaultLevelOutcomeCallable; + typedef std::function&)> ModifyDefaultLevelAsyncHandler; + typedef Outcome DescribeUserStatusOutcome; + typedef std::future DescribeUserStatusOutcomeCallable; typedef std::function&)> DescribeUserStatusAsyncHandler; - - SddpClient(const Credentials &credentials, const ClientConfiguration &configuration); - SddpClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - SddpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~SddpClient(); - DescribeOssObjectDetailOutcome describeOssObjectDetail(const Model::DescribeOssObjectDetailRequest &request)const; - void describeOssObjectDetailAsync(const Model::DescribeOssObjectDetailRequest& request, const DescribeOssObjectDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + + SddpClient(const Credentials &credentials, const ClientConfiguration &configuration); + SddpClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SddpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SddpClient(); + DescribeOssObjectDetailOutcome describeOssObjectDetail(const Model::DescribeOssObjectDetailRequest &request)const; + void describeOssObjectDetailAsync(const Model::DescribeOssObjectDetailRequest& request, const DescribeOssObjectDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssObjectDetailOutcomeCallable describeOssObjectDetailCallable(const Model::DescribeOssObjectDetailRequest& request) const; - CreateConfigOutcome createConfig(const Model::CreateConfigRequest &request)const; - void createConfigAsync(const Model::CreateConfigRequest& request, const CreateConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConfigOutcome createConfig(const Model::CreateConfigRequest &request)const; + void createConfigAsync(const Model::CreateConfigRequest& request, const CreateConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateConfigOutcomeCallable createConfigCallable(const Model::CreateConfigRequest& request) const; - DescribeEventTypesOutcome describeEventTypes(const Model::DescribeEventTypesRequest &request)const; - void describeEventTypesAsync(const Model::DescribeEventTypesRequest& request, const DescribeEventTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventTypesOutcome describeEventTypes(const Model::DescribeEventTypesRequest &request)const; + void describeEventTypesAsync(const Model::DescribeEventTypesRequest& request, const DescribeEventTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEventTypesOutcomeCallable describeEventTypesCallable(const Model::DescribeEventTypesRequest& request) const; - DescribePackagesOutcome describePackages(const Model::DescribePackagesRequest &request)const; - void describePackagesAsync(const Model::DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePackagesOutcomeCallable describePackagesCallable(const Model::DescribePackagesRequest& request) const; - ModifyEventStatusOutcome modifyEventStatus(const Model::ModifyEventStatusRequest &request)const; - void modifyEventStatusAsync(const Model::ModifyEventStatusRequest& request, const ModifyEventStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEventStatusOutcome modifyEventStatus(const Model::ModifyEventStatusRequest &request)const; + void modifyEventStatusAsync(const Model::ModifyEventStatusRequest& request, const ModifyEventStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEventStatusOutcomeCallable modifyEventStatusCallable(const Model::ModifyEventStatusRequest& request) const; - DescribeConfigsOutcome describeConfigs(const Model::DescribeConfigsRequest &request)const; - void describeConfigsAsync(const Model::DescribeConfigsRequest& request, const DescribeConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePackagesOutcome describePackages(const Model::DescribePackagesRequest &request)const; + void describePackagesAsync(const Model::DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePackagesOutcomeCallable describePackagesCallable(const Model::DescribePackagesRequest& request) const; + DescribeConfigsOutcome describeConfigs(const Model::DescribeConfigsRequest &request)const; + void describeConfigsAsync(const Model::DescribeConfigsRequest& request, const DescribeConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeConfigsOutcomeCallable describeConfigsCallable(const Model::DescribeConfigsRequest& request) const; - DescribeAuthAccountsOutcome describeAuthAccounts(const Model::DescribeAuthAccountsRequest &request)const; - void describeAuthAccountsAsync(const Model::DescribeAuthAccountsRequest& request, const DescribeAuthAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuthAccountsOutcome describeAuthAccounts(const Model::DescribeAuthAccountsRequest &request)const; + void describeAuthAccountsAsync(const Model::DescribeAuthAccountsRequest& request, const DescribeAuthAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuthAccountsOutcomeCallable describeAuthAccountsCallable(const Model::DescribeAuthAccountsRequest& request) const; - DescribeDataAssetsOutcome describeDataAssets(const Model::DescribeDataAssetsRequest &request)const; - void describeDataAssetsAsync(const Model::DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataAssetsOutcomeCallable describeDataAssetsCallable(const Model::DescribeDataAssetsRequest& request) const; - ValidateConnectorOutcome validateConnector(const Model::ValidateConnectorRequest &request)const; - void validateConnectorAsync(const Model::ValidateConnectorRequest& request, const ValidateConnectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateConnectorOutcome validateConnector(const Model::ValidateConnectorRequest &request)const; + void validateConnectorAsync(const Model::ValidateConnectorRequest& request, const ValidateConnectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ValidateConnectorOutcomeCallable validateConnectorCallable(const Model::ValidateConnectorRequest& request) const; - DescribeCloudDatabasesOutcome describeCloudDatabases(const Model::DescribeCloudDatabasesRequest &request)const; - void describeCloudDatabasesAsync(const Model::DescribeCloudDatabasesRequest& request, const DescribeCloudDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataAssetsOutcome describeDataAssets(const Model::DescribeDataAssetsRequest &request)const; + void describeDataAssetsAsync(const Model::DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataAssetsOutcomeCallable describeDataAssetsCallable(const Model::DescribeDataAssetsRequest& request) const; + DescribeCloudDatabasesOutcome describeCloudDatabases(const Model::DescribeCloudDatabasesRequest &request)const; + void describeCloudDatabasesAsync(const Model::DescribeCloudDatabasesRequest& request, const DescribeCloudDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCloudDatabasesOutcomeCallable describeCloudDatabasesCallable(const Model::DescribeCloudDatabasesRequest& request) const; - CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; - void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; + void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; - CreateUserAuthOutcome createUserAuth(const Model::CreateUserAuthRequest &request)const; - void createUserAuthAsync(const Model::CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserAuthOutcome createUserAuth(const Model::CreateUserAuthRequest &request)const; + void createUserAuthAsync(const Model::CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserAuthOutcomeCallable createUserAuthCallable(const Model::CreateUserAuthRequest& request) const; - DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; - void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; + void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; - DescribeDataHubConnectorsOutcome describeDataHubConnectors(const Model::DescribeDataHubConnectorsRequest &request)const; - void describeDataHubConnectorsAsync(const Model::DescribeDataHubConnectorsRequest& request, const DescribeDataHubConnectorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubConnectorsOutcome describeDataHubConnectors(const Model::DescribeDataHubConnectorsRequest &request)const; + void describeDataHubConnectorsAsync(const Model::DescribeDataHubConnectorsRequest& request, const DescribeDataHubConnectorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataHubConnectorsOutcomeCallable describeDataHubConnectorsCallable(const Model::DescribeDataHubConnectorsRequest& request) const; - DescribeRulesOutcome describeRules(const Model::DescribeRulesRequest &request)const; - void describeRulesAsync(const Model::DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRulesOutcomeCallable describeRulesCallable(const Model::DescribeRulesRequest& request) const; - DescribeDataLimitDetailOutcome describeDataLimitDetail(const Model::DescribeDataLimitDetailRequest &request)const; - void describeDataLimitDetailAsync(const Model::DescribeDataLimitDetailRequest& request, const DescribeDataLimitDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataLimitDetailOutcomeCallable describeDataLimitDetailCallable(const Model::DescribeDataLimitDetailRequest& request) const; - DescribeColumnsOutcome describeColumns(const Model::DescribeColumnsRequest &request)const; - void describeColumnsAsync(const Model::DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeColumnsOutcome describeColumns(const Model::DescribeColumnsRequest &request)const; + void describeColumnsAsync(const Model::DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeColumnsOutcomeCallable describeColumnsCallable(const Model::DescribeColumnsRequest& request) const; - ModifyRuleStatusOutcome modifyRuleStatus(const Model::ModifyRuleStatusRequest &request)const; - void modifyRuleStatusAsync(const Model::ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyRuleStatusOutcomeCallable modifyRuleStatusCallable(const Model::ModifyRuleStatusRequest& request) const; - DeleteDataLimitOutcome deleteDataLimit(const Model::DeleteDataLimitRequest &request)const; - void deleteDataLimitAsync(const Model::DeleteDataLimitRequest& request, const DeleteDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataLimitDetailOutcome describeDataLimitDetail(const Model::DescribeDataLimitDetailRequest &request)const; + void describeDataLimitDetailAsync(const Model::DescribeDataLimitDetailRequest& request, const DescribeDataLimitDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataLimitDetailOutcomeCallable describeDataLimitDetailCallable(const Model::DescribeDataLimitDetailRequest& request) const; + DescribeRulesOutcome describeRules(const Model::DescribeRulesRequest &request)const; + void describeRulesAsync(const Model::DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRulesOutcomeCallable describeRulesCallable(const Model::DescribeRulesRequest& request) const; + DeleteDataLimitOutcome deleteDataLimit(const Model::DeleteDataLimitRequest &request)const; + void deleteDataLimitAsync(const Model::DeleteDataLimitRequest& request, const DeleteDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDataLimitOutcomeCallable deleteDataLimitCallable(const Model::DeleteDataLimitRequest& request) const; - DescribeAccountDetailOutcome describeAccountDetail(const Model::DescribeAccountDetailRequest &request)const; - void describeAccountDetailAsync(const Model::DescribeAccountDetailRequest& request, const DescribeAccountDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleStatusOutcome modifyRuleStatus(const Model::ModifyRuleStatusRequest &request)const; + void modifyRuleStatusAsync(const Model::ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleStatusOutcomeCallable modifyRuleStatusCallable(const Model::ModifyRuleStatusRequest& request) const; + DescribeAccountDetailOutcome describeAccountDetail(const Model::DescribeAccountDetailRequest &request)const; + void describeAccountDetailAsync(const Model::DescribeAccountDetailRequest& request, const DescribeAccountDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountDetailOutcomeCallable describeAccountDetailCallable(const Model::DescribeAccountDetailRequest& request) const; - DescribeDepartsOutcome describeDeparts(const Model::DescribeDepartsRequest &request)const; - void describeDepartsAsync(const Model::DescribeDepartsRequest& request, const DescribeDepartsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDepartsOutcome describeDeparts(const Model::DescribeDepartsRequest &request)const; + void describeDepartsAsync(const Model::DescribeDepartsRequest& request, const DescribeDepartsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDepartsOutcomeCallable describeDepartsCallable(const Model::DescribeDepartsRequest& request) const; - DescribeDataHubSubscriptionsOutcome describeDataHubSubscriptions(const Model::DescribeDataHubSubscriptionsRequest &request)const; - void describeDataHubSubscriptionsAsync(const Model::DescribeDataHubSubscriptionsRequest& request, const DescribeDataHubSubscriptionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubSubscriptionsOutcome describeDataHubSubscriptions(const Model::DescribeDataHubSubscriptionsRequest &request)const; + void describeDataHubSubscriptionsAsync(const Model::DescribeDataHubSubscriptionsRequest& request, const DescribeDataHubSubscriptionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataHubSubscriptionsOutcomeCallable describeDataHubSubscriptionsCallable(const Model::DescribeDataHubSubscriptionsRequest& request) const; - DescribeDataHubTopicsOutcome describeDataHubTopics(const Model::DescribeDataHubTopicsRequest &request)const; - void describeDataHubTopicsAsync(const Model::DescribeDataHubTopicsRequest& request, const DescribeDataHubTopicsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubTopicsOutcome describeDataHubTopics(const Model::DescribeDataHubTopicsRequest &request)const; + void describeDataHubTopicsAsync(const Model::DescribeDataHubTopicsRequest& request, const DescribeDataHubTopicsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataHubTopicsOutcomeCallable describeDataHubTopicsCallable(const Model::DescribeDataHubTopicsRequest& request) const; - DescribeCloudInstancesOutcome describeCloudInstances(const Model::DescribeCloudInstancesRequest &request)const; - void describeCloudInstancesAsync(const Model::DescribeCloudInstancesRequest& request, const DescribeCloudInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudInstancesOutcome describeCloudInstances(const Model::DescribeCloudInstancesRequest &request)const; + void describeCloudInstancesAsync(const Model::DescribeCloudInstancesRequest& request, const DescribeCloudInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCloudInstancesOutcomeCallable describeCloudInstancesCallable(const Model::DescribeCloudInstancesRequest& request) const; - DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; - void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; + void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; - DescribeOssObjectsOutcome describeOssObjects(const Model::DescribeOssObjectsRequest &request)const; - void describeOssObjectsAsync(const Model::DescribeOssObjectsRequest& request, const DescribeOssObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssObjectsOutcome describeOssObjects(const Model::DescribeOssObjectsRequest &request)const; + void describeOssObjectsAsync(const Model::DescribeOssObjectsRequest& request, const DescribeOssObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssObjectsOutcomeCallable describeOssObjectsCallable(const Model::DescribeOssObjectsRequest& request) const; - DescribeDataLimitsOutcome describeDataLimits(const Model::DescribeDataLimitsRequest &request)const; - void describeDataLimitsAsync(const Model::DescribeDataLimitsRequest& request, const DescribeDataLimitsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataLimitsOutcome describeDataLimits(const Model::DescribeDataLimitsRequest &request)const; + void describeDataLimitsAsync(const Model::DescribeDataLimitsRequest& request, const DescribeDataLimitsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataLimitsOutcomeCallable describeDataLimitsCallable(const Model::DescribeDataLimitsRequest& request) const; - DescribeEventsOutcome describeEvents(const Model::DescribeEventsRequest &request)const; - void describeEventsAsync(const Model::DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventsOutcome describeEvents(const Model::DescribeEventsRequest &request)const; + void describeEventsAsync(const Model::DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEventsOutcomeCallable describeEventsCallable(const Model::DescribeEventsRequest& request) const; - CreateDataLimitOutcome createDataLimit(const Model::CreateDataLimitRequest &request)const; - void createDataLimitAsync(const Model::CreateDataLimitRequest& request, const CreateDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDataLimitOutcome createDataLimit(const Model::CreateDataLimitRequest &request)const; + void createDataLimitAsync(const Model::CreateDataLimitRequest& request, const CreateDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDataLimitOutcomeCallable createDataLimitCallable(const Model::CreateDataLimitRequest& request) const; - ModifyRuleOutcome modifyRule(const Model::ModifyRuleRequest &request)const; - void modifyRuleAsync(const Model::ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleOutcome modifyRule(const Model::ModifyRuleRequest &request)const; + void modifyRuleAsync(const Model::ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyRuleOutcomeCallable modifyRuleCallable(const Model::ModifyRuleRequest& request) const; - ModifyDataLimitOutcome modifyDataLimit(const Model::ModifyDataLimitRequest &request)const; - void modifyDataLimitAsync(const Model::ModifyDataLimitRequest& request, const ModifyDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDataLimitOutcomeCallable modifyDataLimitCallable(const Model::ModifyDataLimitRequest& request) const; - DescribeEventDetailOutcome describeEventDetail(const Model::DescribeEventDetailRequest &request)const; - void describeEventDetailAsync(const Model::DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventDetailOutcome describeEventDetail(const Model::DescribeEventDetailRequest &request)const; + void describeEventDetailAsync(const Model::DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEventDetailOutcomeCallable describeEventDetailCallable(const Model::DescribeEventDetailRequest& request) const; - DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const; - void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDataLimitOutcome modifyDataLimit(const Model::ModifyDataLimitRequest &request)const; + void modifyDataLimitAsync(const Model::ModifyDataLimitRequest& request, const ModifyDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDataLimitOutcomeCallable modifyDataLimitCallable(const Model::ModifyDataLimitRequest& request) const; + DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const; + void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const; - DescribePrivilegesOutcome describePrivileges(const Model::DescribePrivilegesRequest &request)const; - void describePrivilegesAsync(const Model::DescribePrivilegesRequest& request, const DescribePrivilegesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePrivilegesOutcome describePrivileges(const Model::DescribePrivilegesRequest &request)const; + void describePrivilegesAsync(const Model::DescribePrivilegesRequest& request, const DescribePrivilegesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePrivilegesOutcomeCallable describePrivilegesCallable(const Model::DescribePrivilegesRequest& request) const; - DescribeDataHubProjectsOutcome describeDataHubProjects(const Model::DescribeDataHubProjectsRequest &request)const; - void describeDataHubProjectsAsync(const Model::DescribeDataHubProjectsRequest& request, const DescribeDataHubProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataHubProjectsOutcome describeDataHubProjects(const Model::DescribeDataHubProjectsRequest &request)const; + void describeDataHubProjectsAsync(const Model::DescribeDataHubProjectsRequest& request, const DescribeDataHubProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataHubProjectsOutcomeCallable describeDataHubProjectsCallable(const Model::DescribeDataHubProjectsRequest& request) const; - DescribeInstancesOutcome describeInstances(const Model::DescribeInstancesRequest &request)const; - void describeInstancesAsync(const Model::DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstancesOutcome describeInstances(const Model::DescribeInstancesRequest &request)const; + void describeInstancesAsync(const Model::DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstancesOutcomeCallable describeInstancesCallable(const Model::DescribeInstancesRequest& request) const; - ModifyDefaultLevelOutcome modifyDefaultLevel(const Model::ModifyDefaultLevelRequest &request)const; - void modifyDefaultLevelAsync(const Model::ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDefaultLevelOutcomeCallable modifyDefaultLevelCallable(const Model::ModifyDefaultLevelRequest& request) const; - ModifyEventTypeStatusOutcome modifyEventTypeStatus(const Model::ModifyEventTypeStatusRequest &request)const; - void modifyEventTypeStatusAsync(const Model::ModifyEventTypeStatusRequest& request, const ModifyEventTypeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEventTypeStatusOutcome modifyEventTypeStatus(const Model::ModifyEventTypeStatusRequest &request)const; + void modifyEventTypeStatusAsync(const Model::ModifyEventTypeStatusRequest& request, const ModifyEventTypeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEventTypeStatusOutcomeCallable modifyEventTypeStatusCallable(const Model::ModifyEventTypeStatusRequest& request) const; - DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const; - void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDefaultLevelOutcome modifyDefaultLevel(const Model::ModifyDefaultLevelRequest &request)const; + void modifyDefaultLevelAsync(const Model::ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDefaultLevelOutcomeCallable modifyDefaultLevelCallable(const Model::ModifyDefaultLevelRequest& request) const; + DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const; + void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserStatusOutcomeCallable describeUserStatusCallable(const Model::DescribeUserStatusRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_SDDP_SDDPCLIENT_H_ + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SDDP_SDDPCLIENT_H_ diff --git a/sddp/include/alibabacloud/sddp/SddpExport.h b/sddp/include/alibabacloud/sddp/SddpExport.h index 2e3f05d7e..2e80c8a42 100644 --- a/sddp/include/alibabacloud/sddp/SddpExport.h +++ b/sddp/include/alibabacloud/sddp/SddpExport.h @@ -1,32 +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_SDDP_SDDPEXPORT_H_ -#define ALIBABACLOUD_SDDP_SDDPEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_SDDP_LIBRARY) -# define ALIBABACLOUD_SDDP_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_SDDP_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_SDDP_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_SDDPEXPORT_H_ +#define ALIBABACLOUD_SDDP_SDDPEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SDDP_LIBRARY) +# define ALIBABACLOUD_SDDP_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SDDP_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SDDP_EXPORT +#endif + #endif // !ALIBABACLOUD_SDDP_SDDPEXPORT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateConfigRequest.h b/sddp/include/alibabacloud/sddp/model/CreateConfigRequest.h index ff35d6ba7..9655dd869 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateConfigRequest.h +++ b/sddp/include/alibabacloud/sddp/model/CreateConfigRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATECONFIGREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateConfigRequest : public RpcServiceRequest - { - - public: - CreateConfigRequest(); - ~CreateConfigRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATECONFIGREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateConfigRequest : public RpcServiceRequest + { + + public: + CreateConfigRequest(); + ~CreateConfigRequest(); + std::string getCode()const; void setCode(const std::string& code); std::string getSourceIp()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getValue()const; void setValue(const std::string& value); - - private: + + private: std::string code_; std::string sourceIp_; int featureType_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string configList_; std::string lang_; std::string value_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATECONFIGREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateConfigResult.h b/sddp/include/alibabacloud/sddp/model/CreateConfigResult.h index b54f0e134..18c4cc3f2 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateConfigResult.h +++ b/sddp/include/alibabacloud/sddp/model/CreateConfigResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATECONFIGRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATECONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateConfigResult : public ServiceResult - { - public: - - - CreateConfigResult(); - explicit CreateConfigResult(const std::string &payload); - ~CreateConfigResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATECONFIGRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateConfigResult : public ServiceResult + { + public: + + + CreateConfigResult(); + explicit CreateConfigResult(const std::string &payload); + ~CreateConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATECONFIGRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateDataLimitRequest.h b/sddp/include/alibabacloud/sddp/model/CreateDataLimitRequest.h index f7ee892b6..4747b7dce 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateDataLimitRequest.h +++ b/sddp/include/alibabacloud/sddp/model/CreateDataLimitRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateDataLimitRequest : public RpcServiceRequest - { - - public: - CreateDataLimitRequest(); - ~CreateDataLimitRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateDataLimitRequest : public RpcServiceRequest + { + + public: + CreateDataLimitRequest(); + ~CreateDataLimitRequest(); + std::string getPassword()const; void setPassword(const std::string& password); std::string getSourceIp()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setParentId(const std::string& parentId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: std::string password_; std::string sourceIp_; std::string connector_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string serviceRegionId_; std::string parentId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateDataLimitResult.h b/sddp/include/alibabacloud/sddp/model/CreateDataLimitResult.h index d2e14b2e5..260c6466c 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateDataLimitResult.h +++ b/sddp/include/alibabacloud/sddp/model/CreateDataLimitResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateDataLimitResult : public ServiceResult - { - public: - - - CreateDataLimitResult(); - explicit CreateDataLimitResult(const std::string &payload); - ~CreateDataLimitResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateDataLimitResult : public ServiceResult + { + public: + + + CreateDataLimitResult(); + explicit CreateDataLimitResult(const std::string &payload); + ~CreateDataLimitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATEDATALIMITRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateRuleRequest.h b/sddp/include/alibabacloud/sddp/model/CreateRuleRequest.h index 965ece55e..65b339d6e 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateRuleRequest.h +++ b/sddp/include/alibabacloud/sddp/model/CreateRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATERULEREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATERULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateRuleRequest : public RpcServiceRequest - { - - public: - CreateRuleRequest(); - ~CreateRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATERULEREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateRuleRequest : public RpcServiceRequest + { + + public: + CreateRuleRequest(); + ~CreateRuleRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setCategory(int category); std::string getContent()const; void setContent(const std::string& content); - - private: + + private: std::string sourceIp_; int featureType_; std::string name_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long customType_; int category_; std::string content_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATERULEREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateRuleResult.h b/sddp/include/alibabacloud/sddp/model/CreateRuleResult.h index c88e32cf5..b71208fac 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateRuleResult.h +++ b/sddp/include/alibabacloud/sddp/model/CreateRuleResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATERULERESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATERULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateRuleResult : public ServiceResult - { - public: - - - CreateRuleResult(); - explicit CreateRuleResult(const std::string &payload); - ~CreateRuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATERULERESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateRuleResult : public ServiceResult + { + public: + + + CreateRuleResult(); + explicit CreateRuleResult(const std::string &payload); + ~CreateRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATERULERESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateUserAuthRequest.h b/sddp/include/alibabacloud/sddp/model/CreateUserAuthRequest.h index 7ce60b79a..eb866f2c8 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateUserAuthRequest.h +++ b/sddp/include/alibabacloud/sddp/model/CreateUserAuthRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateUserAuthRequest : public RpcServiceRequest - { - - public: - CreateUserAuthRequest(); - ~CreateUserAuthRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateUserAuthRequest : public RpcServiceRequest + { + + public: + CreateUserAuthRequest(); + ~CreateUserAuthRequest(); + long getAccountId()const; void setAccountId(long accountId); std::string getSourceIp()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setAccessKeySecret(const std::string& accessKeySecret); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: long accountId_; std::string sourceIp_; std::string accessKey_; std::string accessKeySecret_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/CreateUserAuthResult.h b/sddp/include/alibabacloud/sddp/model/CreateUserAuthResult.h index a24bc47e2..f660ea61a 100644 --- a/sddp/include/alibabacloud/sddp/model/CreateUserAuthResult.h +++ b/sddp/include/alibabacloud/sddp/model/CreateUserAuthResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT CreateUserAuthResult : public ServiceResult - { - public: - - - CreateUserAuthResult(); - explicit CreateUserAuthResult(const std::string &payload); - ~CreateUserAuthResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT CreateUserAuthResult : public ServiceResult + { + public: + + + CreateUserAuthResult(); + explicit CreateUserAuthResult(const std::string &payload); + ~CreateUserAuthResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_CREATEUSERAUTHRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteDataLimitRequest.h b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitRequest.h index 6e4157b79..608f6484f 100644 --- a/sddp/include/alibabacloud/sddp/model/DeleteDataLimitRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DeleteDataLimitRequest : public RpcServiceRequest - { - - public: - DeleteDataLimitRequest(); - ~DeleteDataLimitRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteDataLimitRequest : public RpcServiceRequest + { + + public: + DeleteDataLimitRequest(); + ~DeleteDataLimitRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setId(long id); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; int featureType_; long id_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteDataLimitResult.h b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitResult.h index 78213a2d5..e7d97c22f 100644 --- a/sddp/include/alibabacloud/sddp/model/DeleteDataLimitResult.h +++ b/sddp/include/alibabacloud/sddp/model/DeleteDataLimitResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DeleteDataLimitResult : public ServiceResult - { - public: - - - DeleteDataLimitResult(); - explicit DeleteDataLimitResult(const std::string &payload); - ~DeleteDataLimitResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteDataLimitResult : public ServiceResult + { + public: + + + DeleteDataLimitResult(); + explicit DeleteDataLimitResult(const std::string &payload); + ~DeleteDataLimitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DELETEDATALIMITRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteRuleRequest.h b/sddp/include/alibabacloud/sddp/model/DeleteRuleRequest.h index 06de287c9..6e7526d26 100644 --- a/sddp/include/alibabacloud/sddp/model/DeleteRuleRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DeleteRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DELETERULEREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DELETERULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DeleteRuleRequest : public RpcServiceRequest - { - - public: - DeleteRuleRequest(); - ~DeleteRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DELETERULEREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteRuleRequest : public RpcServiceRequest + { + + public: + DeleteRuleRequest(); + ~DeleteRuleRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setId(long id); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; int featureType_; long id_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DELETERULEREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DeleteRuleResult.h b/sddp/include/alibabacloud/sddp/model/DeleteRuleResult.h index 697fe162e..c983d1ac6 100644 --- a/sddp/include/alibabacloud/sddp/model/DeleteRuleResult.h +++ b/sddp/include/alibabacloud/sddp/model/DeleteRuleResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DELETERULERESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DELETERULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DeleteRuleResult : public ServiceResult - { - public: - - - DeleteRuleResult(); - explicit DeleteRuleResult(const std::string &payload); - ~DeleteRuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DELETERULERESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DELETERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DeleteRuleResult : public ServiceResult + { + public: + + + DeleteRuleResult(); + explicit DeleteRuleResult(const std::string &payload); + ~DeleteRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DELETERULERESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailRequest.h index 1e19c6699..b8100bd09 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeAccountDetailRequest : public RpcServiceRequest - { - - public: - DescribeAccountDetailRequest(); - ~DescribeAccountDetailRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountDetailRequest : public RpcServiceRequest + { + + public: + DescribeAccountDetailRequest(); + ~DescribeAccountDetailRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLang()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setUserId(long userId); long getAccountTypeId()const; void setAccountTypeId(long accountTypeId); - - private: + + private: std::string sourceIp_; std::string lang_; long userId_; long accountTypeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailResult.h index 1a4fc337c..212a6ee7f 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountDetailResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeAccountDetailResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountDetailResult : public ServiceResult + { + public: struct Account { struct EventCount @@ -74,20 +74,20 @@ namespace AlibabaCloud std::string firstLevelDepartName; long aliUid; }; - - - DescribeAccountDetailResult(); - explicit DescribeAccountDetailResult(const std::string &payload); - ~DescribeAccountDetailResult(); + + + DescribeAccountDetailResult(); + explicit DescribeAccountDetailResult(const std::string &payload); + ~DescribeAccountDetailResult(); Account getAccount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: Account account_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountsRequest.h index 5db6f37d0..f8703f081 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeAccountsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeAccountsRequest : public RpcServiceRequest - { - - public: - DescribeAccountsRequest(); - ~DescribeAccountsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getLoginName()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud void setKey(const std::string& key); int getQueryType()const; void setQueryType(int queryType); - - private: + + private: std::string productCode_; std::string loginName_; int featureType_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string lang_; std::string key_; int queryType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAccountsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeAccountsResult.h index 39c7a6be6..3196e2868 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeAccountsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeAccountsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeAccountsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAccountsResult : public ServiceResult + { + public: struct Account { struct EventCount @@ -66,26 +66,26 @@ namespace AlibabaCloud std::string firstLevelDepartName; long aliUid; }; - - - DescribeAccountsResult(); - explicit DescribeAccountsResult(const std::string &payload); - ~DescribeAccountsResult(); + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.h index 8302a3aeb..76934957b 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeAuthAccountsRequest : public RpcServiceRequest - { - - public: - DescribeAuthAccountsRequest(); - ~DescribeAuthAccountsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAuthAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAuthAccountsRequest(); + ~DescribeAuthAccountsRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setCurrentPage(int currentPage); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; int featureType_; int pageSize_; int currentPage_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsResult.h index 0ed3a3d7b..f3bfd837e 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeAuthAccountsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeAuthAccountsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeAuthAccountsResult : public ServiceResult + { + public: struct Account { std::string authFullName; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string authLoginName; long authTime; }; - - - DescribeAuthAccountsResult(); - explicit DescribeAuthAccountsResult(const std::string &payload); - ~DescribeAuthAccountsResult(); + + + DescribeAuthAccountsResult(); + explicit DescribeAuthAccountsResult(const std::string &payload); + ~DescribeAuthAccountsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEAUTHACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h index 0082c9495..15667a5b3 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeCloudDatabasesRequest : public RpcServiceRequest - { - - public: - DescribeCloudDatabasesRequest(); - ~DescribeCloudDatabasesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudDatabasesRequest : public RpcServiceRequest + { + + public: + DescribeCloudDatabasesRequest(); + ~DescribeCloudDatabasesRequest(); + std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSourceIp()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setResourceType(long resourceType); std::string getServiceRegionId()const; void setServiceRegionId(const std::string& serviceRegionId); - - private: + + private: std::string instanceId_; std::string sourceIp_; std::string lang_; long resourceType_; std::string serviceRegionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.h index e9f1de9ee..cd8cd02e9 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudDatabasesResult.h @@ -1,57 +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_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeCloudDatabasesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudDatabasesResult : public ServiceResult + { + public: struct CloudDatabase { std::string instanceId; std::string engine; std::string name; }; - - - DescribeCloudDatabasesResult(); - explicit DescribeCloudDatabasesResult(const std::string &payload); - ~DescribeCloudDatabasesResult(); + + + DescribeCloudDatabasesResult(); + explicit DescribeCloudDatabasesResult(const std::string &payload); + ~DescribeCloudDatabasesResult(); std::vector getCloudDatabaseList()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector cloudDatabaseList_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDDATABASESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.h index f0e3ca7ed..32abc6875 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeCloudInstancesRequest : public RpcServiceRequest - { - - public: - DescribeCloudInstancesRequest(); - ~DescribeCloudInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudInstancesRequest : public RpcServiceRequest + { + + public: + DescribeCloudInstancesRequest(); + ~DescribeCloudInstancesRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLang()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setResourceType(long resourceType); std::string getServiceRegionId()const; void setServiceRegionId(const std::string& serviceRegionId); - - private: + + private: std::string sourceIp_; std::string lang_; long resourceType_; std::string serviceRegionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesResult.h index d7c732446..770791e9c 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeCloudInstancesResult.h @@ -1,57 +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_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeCloudInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeCloudInstancesResult : public ServiceResult + { + public: struct CloudInstance { std::string instanceId; std::string engine; std::string name; }; - - - DescribeCloudInstancesResult(); - explicit DescribeCloudInstancesResult(const std::string &payload); - ~DescribeCloudInstancesResult(); + + + DescribeCloudInstancesResult(); + explicit DescribeCloudInstancesResult(const std::string &payload); + ~DescribeCloudInstancesResult(); std::vector getCloudInstanceList()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector cloudInstanceList_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECLOUDINSTANCESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeColumnsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeColumnsRequest.h index 4e5f1902a..aed8c58e1 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeColumnsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeColumnsRequest.h @@ -1,40 +1,44 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeColumnsRequest : public RpcServiceRequest - { - - public: - DescribeColumnsRequest(); - ~DescribeColumnsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeColumnsRequest : public RpcServiceRequest + { + + public: + DescribeColumnsRequest(); + ~DescribeColumnsRequest(); + + std::string getProductCode()const; + void setProductCode(const std::string& productCode); + long getInstanceId()const; + void setInstanceId(long instanceId); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -55,8 +59,10 @@ namespace AlibabaCloud void setLang(const std::string& lang); long getRuleId()const; void setRuleId(long ruleId); - - private: + + private: + std::string productCode_; + long instanceId_; std::string sourceIp_; int featureType_; std::string riskLevels_; @@ -67,9 +73,9 @@ namespace AlibabaCloud std::string queryName_; std::string lang_; long ruleId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeColumnsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeColumnsResult.h index 85bfdea43..d10630383 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeColumnsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeColumnsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeColumnsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeColumnsResult : public ServiceResult + { + public: struct Column { long tableId; @@ -50,26 +50,26 @@ namespace AlibabaCloud long id; std::string ruleName; }; - - - DescribeColumnsResult(); - explicit DescribeColumnsResult(const std::string &payload); - ~DescribeColumnsResult(); + + + DescribeColumnsResult(); + explicit DescribeColumnsResult(const std::string &payload); + ~DescribeColumnsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECOLUMNSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeConfigsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeConfigsRequest.h index 1e13ba241..ff855d108 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeConfigsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeConfigsRequest.h @@ -1,54 +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_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeConfigsRequest : public RpcServiceRequest - { - - public: - DescribeConfigsRequest(); - ~DescribeConfigsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeConfigsRequest : public RpcServiceRequest + { + + public: + DescribeConfigsRequest(); + ~DescribeConfigsRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; void setFeatureType(int featureType); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; int featureType_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeConfigsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeConfigsResult.h index 1580c684a..c02b79911 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeConfigsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeConfigsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeConfigsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeConfigsResult : public ServiceResult + { + public: struct Config { std::string defaultValue; @@ -40,20 +40,20 @@ namespace AlibabaCloud long id; int code; }; - - - DescribeConfigsResult(); - explicit DescribeConfigsResult(const std::string &payload); - ~DescribeConfigsResult(); + + + DescribeConfigsResult(); + explicit DescribeConfigsResult(const std::string &payload); + ~DescribeConfigsResult(); std::vector getConfigList()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector configList_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBECONFIGSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsRequest.h index dc34447ba..313644108 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataAssetsRequest : public RpcServiceRequest - { - - public: - DescribeDataAssetsRequest(); - ~DescribeDataAssetsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataAssetsRequest : public RpcServiceRequest + { + + public: + DescribeDataAssetsRequest(); + ~DescribeDataAssetsRequest(); + int getRangeId()const; void setRangeId(int rangeId); std::string getSourceIp()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); long getRuleId()const; void setRuleId(long ruleId); - - private: + + private: int rangeId_; std::string sourceIp_; int featureType_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int currentPage_; std::string lang_; long ruleId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsResult.h index 7add9fd81..9c76025ea 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataAssetsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataAssetsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataAssetsResult : public ServiceResult + { + public: struct Asset { std::string owner; @@ -55,26 +55,26 @@ namespace AlibabaCloud bool protection; std::string ruleName; }; - - - DescribeDataAssetsResult(); - explicit DescribeDataAssetsResult(const std::string &payload); - ~DescribeDataAssetsResult(); + + + DescribeDataAssetsResult(); + explicit DescribeDataAssetsResult(const std::string &payload); + ~DescribeDataAssetsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAASSETSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h index 224852926..76c0f492a 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubConnectorsRequest : public RpcServiceRequest - { - - public: - DescribeDataHubConnectorsRequest(); - ~DescribeDataHubConnectorsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubConnectorsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubConnectorsRequest(); + ~DescribeDataHubConnectorsRequest(); + long getTopicId()const; void setTopicId(long topicId); std::string getSourceIp()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setProjectId(long projectId); std::string getKey()const; void setKey(const std::string& key); - - private: + + private: long topicId_; std::string sourceIp_; int featureType_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string lang_; long projectId_; std::string key_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h index c8795dc24..431a33a45 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubConnectorsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubConnectorsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubConnectorsResult : public ServiceResult + { + public: struct Connector { std::string connectorPath; @@ -46,26 +46,26 @@ namespace AlibabaCloud long riskLevelId; std::string name; }; - - - DescribeDataHubConnectorsResult(); - explicit DescribeDataHubConnectorsResult(const std::string &payload); - ~DescribeDataHubConnectorsResult(); + + + DescribeDataHubConnectorsResult(); + explicit DescribeDataHubConnectorsResult(const std::string &payload); + ~DescribeDataHubConnectorsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBCONNECTORSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h index bf01a658c..473aa94c1 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubProjectsRequest : public RpcServiceRequest - { - - public: - DescribeDataHubProjectsRequest(); - ~DescribeDataHubProjectsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubProjectsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubProjectsRequest(); + ~DescribeDataHubProjectsRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setKey(const std::string& key); int getQueryType()const; void setQueryType(int queryType); - - private: + + private: std::string sourceIp_; int featureType_; int pageSize_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string lang_; std::string key_; int queryType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.h index b6b99501a..1c718578c 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubProjectsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubProjectsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubProjectsResult : public ServiceResult + { + public: struct Project { std::string loginName; @@ -45,26 +45,26 @@ namespace AlibabaCloud long topicBlobCount; std::string name; }; - - - DescribeDataHubProjectsResult(); - explicit DescribeDataHubProjectsResult(const std::string &payload); - ~DescribeDataHubProjectsResult(); + + + DescribeDataHubProjectsResult(); + explicit DescribeDataHubProjectsResult(const std::string &payload); + ~DescribeDataHubProjectsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBPROJECTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h index b32491be1..4bc6fc379 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubSubscriptionsRequest : public RpcServiceRequest - { - - public: - DescribeDataHubSubscriptionsRequest(); - ~DescribeDataHubSubscriptionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubSubscriptionsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubSubscriptionsRequest(); + ~DescribeDataHubSubscriptionsRequest(); + long getTopicId()const; void setTopicId(long topicId); std::string getSourceIp()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setProjectId(long projectId); std::string getKey()const; void setKey(const std::string& key); - - private: + + private: long topicId_; std::string sourceIp_; int featureType_; @@ -64,9 +64,9 @@ namespace AlibabaCloud std::string lang_; long projectId_; std::string key_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h index 9f21ae749..77395c789 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubSubscriptionsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubSubscriptionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubSubscriptionsResult : public ServiceResult + { + public: struct Subscription { std::string loginName; @@ -47,26 +47,26 @@ namespace AlibabaCloud std::string subscriptionUserName; std::string name; }; - - - DescribeDataHubSubscriptionsResult(); - explicit DescribeDataHubSubscriptionsResult(const std::string &payload); - ~DescribeDataHubSubscriptionsResult(); + + + DescribeDataHubSubscriptionsResult(); + explicit DescribeDataHubSubscriptionsResult(const std::string &payload); + ~DescribeDataHubSubscriptionsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBSUBSCRIPTIONSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h index 533104953..436465a4d 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubTopicsRequest : public RpcServiceRequest - { - - public: - DescribeDataHubTopicsRequest(); - ~DescribeDataHubTopicsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubTopicsRequest : public RpcServiceRequest + { + + public: + DescribeDataHubTopicsRequest(); + ~DescribeDataHubTopicsRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setProjectId(long projectId); std::string getKey()const; void setKey(const std::string& key); - - private: + + private: std::string sourceIp_; int featureType_; int pageSize_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string lang_; long projectId_; std::string key_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.h index f941f83f1..8c00bebfd 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataHubTopicsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubTopicsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataHubTopicsResult : public ServiceResult + { + public: struct Topic { int lifeCycle; @@ -44,26 +44,26 @@ namespace AlibabaCloud long id; std::string name; }; - - - DescribeDataHubTopicsResult(); - explicit DescribeDataHubTopicsResult(const std::string &payload); - ~DescribeDataHubTopicsResult(); + + + DescribeDataHubTopicsResult(); + explicit DescribeDataHubTopicsResult(const std::string &payload); + ~DescribeDataHubTopicsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATAHUBTOPICSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h index 5bea9059a..f4e1803de 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitDetailRequest : public RpcServiceRequest - { - - public: - DescribeDataLimitDetailRequest(); - ~DescribeDataLimitDetailRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitDetailRequest : public RpcServiceRequest + { + + public: + DescribeDataLimitDetailRequest(); + ~DescribeDataLimitDetailRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); long getId()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setNetworkType(int networkType); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; long id_; int networkType_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.h index 9d8b63d48..d83e8d3fe 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitDetailResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitDetailResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitDetailResult : public ServiceResult + { + public: struct DataLimit { std::string parentId; @@ -39,26 +39,27 @@ namespace AlibabaCloud long gmtCreate; std::string userName; int checkStatus; + std::string resourceTypeCode; + long resourceType; std::string regionId; long id; std::string checkStatusName; std::string localName; - std::string password; }; - - - DescribeDataLimitDetailResult(); - explicit DescribeDataLimitDetailResult(const std::string &payload); - ~DescribeDataLimitDetailResult(); + + + DescribeDataLimitDetailResult(); + explicit DescribeDataLimitDetailResult(const std::string &payload); + ~DescribeDataLimitDetailResult(); DataLimit getDataLimit()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: DataLimit dataLimit_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsRequest.h index d2d8dd673..a3846b705 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitsRequest : public RpcServiceRequest - { - - public: - DescribeDataLimitsRequest(); - ~DescribeDataLimitsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitsRequest : public RpcServiceRequest + { + + public: + DescribeDataLimitsRequest(); + ~DescribeDataLimitsRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLang()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setResourceType(int resourceType); std::string getParentId()const; void setParentId(const std::string& parentId); - - private: + + private: std::string sourceIp_; std::string lang_; int resourceType_; std::string parentId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsResult.h index 5053eca38..7e26c17bd 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDataLimitsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDataLimitsResult : public ServiceResult + { + public: struct DataLimit { std::string parentId; @@ -39,25 +39,27 @@ namespace AlibabaCloud long gmtCreate; std::string userName; int checkStatus; + std::string resourceTypeCode; + long resourceType; std::string regionId; long id; std::string checkStatusName; std::string localName; }; - - - DescribeDataLimitsResult(); - explicit DescribeDataLimitsResult(const std::string &payload); - ~DescribeDataLimitsResult(); + + + DescribeDataLimitsResult(); + explicit DescribeDataLimitsResult(const std::string &payload); + ~DescribeDataLimitsResult(); std::vector getDataLimitList()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector dataLimitList_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDATALIMITSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDepartsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeDepartsRequest.h index f3f1a6288..75ec9d82c 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDepartsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDepartsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDepartsRequest : public RpcServiceRequest - { - - public: - DescribeDepartsRequest(); - ~DescribeDepartsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDepartsRequest : public RpcServiceRequest + { + + public: + DescribeDepartsRequest(); + ~DescribeDepartsRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getKey()const; void setKey(const std::string& key); - - private: + + private: std::string sourceIp_; int featureType_; int accountType_; @@ -58,9 +58,9 @@ namespace AlibabaCloud int currentPage_; std::string lang_; std::string key_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeDepartsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeDepartsResult.h index 480b66603..12c404d71 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeDepartsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeDepartsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeDepartsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeDepartsResult : public ServiceResult + { + public: struct Depart { std::string comment; @@ -42,26 +42,26 @@ namespace AlibabaCloud std::string departName; long departId; }; - - - DescribeDepartsResult(); - explicit DescribeDepartsResult(const std::string &payload); - ~DescribeDepartsResult(); + + + DescribeDepartsResult(); + explicit DescribeDepartsResult(const std::string &payload); + ~DescribeDepartsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEDEPARTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailRequest.h index e2a576123..c4051b134 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeEventDetailRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeEventDetailRequest : public RpcServiceRequest - { - - public: - DescribeEventDetailRequest(); - ~DescribeEventDetailRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventDetailRequest : public RpcServiceRequest + { + + public: + DescribeEventDetailRequest(); + ~DescribeEventDetailRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); long getFeatureType()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setId(long id); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; long featureType_; long id_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailResult.h index 419f5f1c2..f4ed4213b 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeEventDetailResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventDetailResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeEventDetailResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventDetailResult : public ServiceResult + { + public: struct Event { struct Detail @@ -53,6 +53,12 @@ namespace AlibabaCloud Data data; std::string xLabel; }; + struct ResourceInfoItem + { + std::string label; + std::string value; + }; + std::vector resourceInfo; std::vector content; std::vector chart; }; @@ -80,20 +86,20 @@ namespace AlibabaCloud long dealTime; Detail detail; }; - - - DescribeEventDetailResult(); - explicit DescribeEventDetailResult(const std::string &payload); - ~DescribeEventDetailResult(); + + + DescribeEventDetailResult(); + explicit DescribeEventDetailResult(const std::string &payload); + ~DescribeEventDetailResult(); Event getEvent()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: Event event_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventTypesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesRequest.h index 961ff1bc9..d96b33090 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeEventTypesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesRequest.h @@ -1,54 +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_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeEventTypesRequest : public RpcServiceRequest - { - - public: - DescribeEventTypesRequest(); - ~DescribeEventTypesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventTypesRequest : public RpcServiceRequest + { + + public: + DescribeEventTypesRequest(); + ~DescribeEventTypesRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); long getParentTypeId()const; void setParentTypeId(long parentTypeId); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; long parentTypeId_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventTypesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesResult.h index ca1f90bb1..61ac959ca 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeEventTypesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventTypesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeEventTypesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventTypesResult : public ServiceResult + { + public: struct EventType { struct SubType @@ -48,20 +48,20 @@ namespace AlibabaCloud std::string code; std::string name; }; - - - DescribeEventTypesResult(); - explicit DescribeEventTypesResult(const std::string &payload); - ~DescribeEventTypesResult(); + + + DescribeEventTypesResult(); + explicit DescribeEventTypesResult(const std::string &payload); + ~DescribeEventTypesResult(); std::vector getEventTypeList()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector eventTypeList_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTTYPESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeEventsRequest.h index 9cb1cb476..d3911bddf 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeEventsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeEventsRequest : public RpcServiceRequest - { - - public: - DescribeEventsRequest(); - ~DescribeEventsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventsRequest : public RpcServiceRequest + { + + public: + DescribeEventsRequest(); + ~DescribeEventsRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); int getFeatureType()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud void setDealUserId(const std::string& dealUserId); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: std::string productCode_; int featureType_; std::string endTime_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string lang_; std::string dealUserId_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeEventsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeEventsResult.h index c599cea6c..c1cead3a3 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeEventsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeEventsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeEventsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeEventsResult : public ServiceResult + { + public: struct Event { int status; @@ -56,26 +56,26 @@ namespace AlibabaCloud long id; long dealTime; }; - - - DescribeEventsResult(); - explicit DescribeEventsResult(const std::string &payload); - ~DescribeEventsResult(); + + + DescribeEventsResult(); + explicit DescribeEventsResult(const std::string &payload); + ~DescribeEventsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEEVENTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeInstancesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeInstancesRequest.h index c09db3807..b802afc12 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeInstancesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeInstancesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeInstancesRequest : public RpcServiceRequest - { - - public: - DescribeInstancesRequest(); - ~DescribeInstancesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeInstancesRequest : public RpcServiceRequest + { + + public: + DescribeInstancesRequest(); + ~DescribeInstancesRequest(); + std::string getProductCode()const; void setProductCode(const std::string& productCode); std::string getSourceIp()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setRuleId(long ruleId); int getQueryType()const; void setQueryType(int queryType); - - private: + + private: std::string productCode_; std::string sourceIp_; long productId_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string lang_; long ruleId_; int queryType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeInstancesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeInstancesResult.h index c1c29b70d..c20465d83 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeInstancesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeInstancesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeInstancesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeInstancesResult : public ServiceResult + { + public: struct Instance { std::string owner; @@ -52,26 +52,26 @@ namespace AlibabaCloud bool protection; std::string ruleName; }; - - - DescribeInstancesResult(); - explicit DescribeInstancesResult(const std::string &payload); - ~DescribeInstancesResult(); + + + DescribeInstancesResult(); + explicit DescribeInstancesResult(const std::string &payload); + ~DescribeInstancesResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h index 48960d0fe..3d5e29ba7 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectDetailRequest : public RpcServiceRequest - { - - public: - DescribeOssObjectDetailRequest(); - ~DescribeOssObjectDetailRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectDetailRequest : public RpcServiceRequest + { + + public: + DescribeOssObjectDetailRequest(); + ~DescribeOssObjectDetailRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -43,15 +43,15 @@ namespace AlibabaCloud void setId(long id); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; int featureType_; long id_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.h index 265226f44..016b715b7 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectDetailResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectDetailResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectDetailResult : public ServiceResult + { + public: struct OssObjectDetail { struct Rule @@ -46,20 +46,20 @@ namespace AlibabaCloud std::string regionId; std::string name; }; - - - DescribeOssObjectDetailResult(); - explicit DescribeOssObjectDetailResult(const std::string &payload); - ~DescribeOssObjectDetailResult(); + + + DescribeOssObjectDetailResult(); + explicit DescribeOssObjectDetailResult(const std::string &payload); + ~DescribeOssObjectDetailResult(); OssObjectDetail getOssObjectDetail()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: OssObjectDetail ossObjectDetail_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTDETAILRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsRequest.h index 23b215107..51a649c58 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectsRequest : public RpcServiceRequest - { - - public: - DescribeOssObjectsRequest(); - ~DescribeOssObjectsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectsRequest : public RpcServiceRequest + { + + public: + DescribeOssObjectsRequest(); + ~DescribeOssObjectsRequest(); + std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); std::string getSourceIp()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); long getRuleId()const; void setRuleId(long ruleId); - - private: + + private: std::string instanceId_; std::string sourceIp_; int featureType_; @@ -67,9 +67,9 @@ namespace AlibabaCloud int riskLevelId_; std::string lang_; long ruleId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsResult.h b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsResult.h index 7112723a5..10c69be68 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeOssObjectsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeOssObjectsResult : public ServiceResult + { + public: struct Column { long category; @@ -43,26 +43,26 @@ namespace AlibabaCloud long riskLevelId; std::string name; }; - - - DescribeOssObjectsResult(); - explicit DescribeOssObjectsResult(const std::string &payload); - ~DescribeOssObjectsResult(); + + + DescribeOssObjectsResult(); + explicit DescribeOssObjectsResult(const std::string &payload); + ~DescribeOssObjectsResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEOSSOBJECTSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePackagesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribePackagesRequest.h index 55c980c26..640075bfc 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribePackagesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribePackagesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribePackagesRequest : public RpcServiceRequest - { - - public: - DescribePackagesRequest(); - ~DescribePackagesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePackagesRequest : public RpcServiceRequest + { + + public: + DescribePackagesRequest(); + ~DescribePackagesRequest(); + long getInstanceId()const; void setInstanceId(long instanceId); std::string getSourceIp()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud void setRuleId(long ruleId); int getQueryType()const; void setQueryType(int queryType); - - private: + + private: long instanceId_; std::string sourceIp_; long productId_; @@ -73,9 +73,9 @@ namespace AlibabaCloud std::string lang_; long ruleId_; int queryType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePackagesResult.h b/sddp/include/alibabacloud/sddp/model/DescribePackagesResult.h index a23398810..e78c494ce 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribePackagesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribePackagesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribePackagesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePackagesResult : public ServiceResult + { + public: struct Package { std::string owner; @@ -46,26 +46,26 @@ namespace AlibabaCloud std::string departName; std::string name; }; - - - DescribePackagesResult(); - explicit DescribePackagesResult(const std::string &payload); - ~DescribePackagesResult(); + + + DescribePackagesResult(); + explicit DescribePackagesResult(const std::string &payload); + ~DescribePackagesResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPACKAGESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePrivilegesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesRequest.h index 2d2284dfc..902c9fbf4 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribePrivilegesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribePrivilegesRequest : public RpcServiceRequest - { - - public: - DescribePrivilegesRequest(); - ~DescribePrivilegesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePrivilegesRequest : public RpcServiceRequest + { + + public: + DescribePrivilegesRequest(); + ~DescribePrivilegesRequest(); + long getAccountId()const; void setAccountId(long accountId); long getUseAccountId()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getKey()const; void setKey(const std::string& key); - - private: + + private: long accountId_; long useAccountId_; std::string dataTypeIds_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int currentPage_; std::string lang_; std::string key_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribePrivilegesResult.h b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesResult.h index 162db64e8..ccdca1221 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribePrivilegesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribePrivilegesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribePrivilegesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribePrivilegesResult : public ServiceResult + { + public: struct Privilege { int useAccountType; @@ -54,26 +54,26 @@ namespace AlibabaCloud std::string dataTypeName; long useAccountId; }; - - - DescribePrivilegesResult(); - explicit DescribePrivilegesResult(const std::string &payload); - ~DescribePrivilegesResult(); + + + DescribePrivilegesResult(); + explicit DescribePrivilegesResult(const std::string &payload); + ~DescribePrivilegesResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEPRIVILEGESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeRulesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeRulesRequest.h index f47e6ca67..17b96fe78 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeRulesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeRulesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeRulesRequest : public RpcServiceRequest - { - - public: - DescribeRulesRequest(); - ~DescribeRulesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeRulesRequest : public RpcServiceRequest + { + + public: + DescribeRulesRequest(); + ~DescribeRulesRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getPageSize()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setCustomType(int customType); int getCategory()const; void setCategory(int category); - - private: + + private: std::string sourceIp_; int pageSize_; std::string name_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string lang_; int customType_; int category_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeRulesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeRulesResult.h index 05f374981..98366c183 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeRulesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeRulesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeRulesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeRulesResult : public ServiceResult + { + public: struct Rule { int customType; @@ -51,26 +51,26 @@ namespace AlibabaCloud std::string riskLevelName; long id; }; - - - DescribeRulesResult(); - explicit DescribeRulesResult(const std::string &payload); - ~DescribeRulesResult(); + + + DescribeRulesResult(); + explicit DescribeRulesResult(const std::string &payload); + ~DescribeRulesResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBERULESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeTablesRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeTablesRequest.h index 1995586ce..3be56960c 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeTablesRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeTablesRequest.h @@ -1,40 +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_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeTablesRequest : public RpcServiceRequest - { - - public: - DescribeTablesRequest(); - ~DescribeTablesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeTablesRequest : public RpcServiceRequest + { + + public: + DescribeTablesRequest(); + ~DescribeTablesRequest(); + + std::string getProductCode()const; + void setProductCode(const std::string& productCode); long getProductId()const; void setProductId(long productId); int getFeatureType()const; @@ -61,8 +63,9 @@ namespace AlibabaCloud void setRuleId(long ruleId); int getQueryType()const; void setQueryType(int queryType); - - private: + + private: + std::string productCode_; long productId_; int featureType_; long packageId_; @@ -76,9 +79,9 @@ namespace AlibabaCloud std::string lang_; long ruleId_; int queryType_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeTablesResult.h b/sddp/include/alibabacloud/sddp/model/DescribeTablesResult.h index 29c0b5421..e7b5c5fee 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeTablesResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeTablesResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeTablesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeTablesResult : public ServiceResult + { + public: struct Table { std::string owner; @@ -49,26 +49,26 @@ namespace AlibabaCloud long id; int sensitiveCount; }; - - - DescribeTablesResult(); - explicit DescribeTablesResult(const std::string &payload); - ~DescribeTablesResult(); + + + DescribeTablesResult(); + explicit DescribeTablesResult(const std::string &payload); + ~DescribeTablesResult(); int getTotalCount()const; int getPageSize()const; int getCurrentPage()const; std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int currentPage_; std::vector
items_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBETABLESRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeUserStatusRequest.h b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusRequest.h index 247e6c5f7..e325eae4b 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeUserStatusRequest.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusRequest.h @@ -1,51 +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_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeUserStatusRequest : public RpcServiceRequest - { - - public: - DescribeUserStatusRequest(); - ~DescribeUserStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeUserStatusRequest : public RpcServiceRequest + { + + public: + DescribeUserStatusRequest(); + ~DescribeUserStatusRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string sourceIp_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/DescribeUserStatusResult.h b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusResult.h index 1c605403b..a324ce74f 100644 --- a/sddp/include/alibabacloud/sddp/model/DescribeUserStatusResult.h +++ b/sddp/include/alibabacloud/sddp/model/DescribeUserStatusResult.h @@ -1,60 +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_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT DescribeUserStatusResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT DescribeUserStatusResult : public ServiceResult + { + public: struct UserStatus { - bool authed; bool rdsSet; + std::string instanceId; + bool renewStatus; + int instanceNum; + bool trail; + bool authed; + long ossSize; + long useOssSize; std::string accessKeyId; + int instanceStatus; bool ossBucketSet; bool odpsSet; bool buyed; + int remainDays; + int useInstanceNum; }; - - - DescribeUserStatusResult(); - explicit DescribeUserStatusResult(const std::string &payload); - ~DescribeUserStatusResult(); + + + DescribeUserStatusResult(); + explicit DescribeUserStatusResult(const std::string &payload); + ~DescribeUserStatusResult(); UserStatus getUserStatus()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: UserStatus userStatus_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_DESCRIBEUSERSTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDataLimitRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitRequest.h index 2ddfd0e95..368c6f391 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyDataLimitRequest.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyDataLimitRequest : public RpcServiceRequest - { - - public: - ModifyDataLimitRequest(); - ~ModifyDataLimitRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDataLimitRequest : public RpcServiceRequest + { + + public: + ModifyDataLimitRequest(); + ~ModifyDataLimitRequest(); + std::string getPassword()const; void setPassword(const std::string& password); std::string getSourceIp()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setServiceRegionId(const std::string& serviceRegionId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: std::string password_; std::string sourceIp_; std::string connector_; @@ -61,9 +61,9 @@ namespace AlibabaCloud int resourceType_; std::string serviceRegionId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDataLimitResult.h b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitResult.h index c2e742c0c..f1ec16d24 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyDataLimitResult.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyDataLimitResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyDataLimitResult : public ServiceResult - { - public: - - - ModifyDataLimitResult(); - explicit ModifyDataLimitResult(const std::string &payload); - ~ModifyDataLimitResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDataLimitResult : public ServiceResult + { + public: + + + ModifyDataLimitResult(); + explicit ModifyDataLimitResult(const std::string &payload); + ~ModifyDataLimitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDATALIMITRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.h index 79add419b..b4033db2b 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyDefaultLevelRequest : public RpcServiceRequest - { - - public: - ModifyDefaultLevelRequest(); - ~ModifyDefaultLevelRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDefaultLevelRequest : public RpcServiceRequest + { + + public: + ModifyDefaultLevelRequest(); + ~ModifyDefaultLevelRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setLang(const std::string& lang); std::string getSensitiveIds()const; void setSensitiveIds(const std::string& sensitiveIds); - - private: + + private: std::string sourceIp_; int featureType_; long defaultId_; std::string lang_; std::string sensitiveIds_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelResult.h b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelResult.h index c0cd9b8a0..7045b3143 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelResult.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyDefaultLevelResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyDefaultLevelResult : public ServiceResult - { - public: - - - ModifyDefaultLevelResult(); - explicit ModifyDefaultLevelResult(const std::string &payload); - ~ModifyDefaultLevelResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyDefaultLevelResult : public ServiceResult + { + public: + + + ModifyDefaultLevelResult(); + explicit ModifyDefaultLevelResult(const std::string &payload); + ~ModifyDefaultLevelResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYDEFAULTLEVELRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventStatusRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusRequest.h index 0122ca23a..199cf119b 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyEventStatusRequest.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyEventStatusRequest : public RpcServiceRequest - { - - public: - ModifyEventStatusRequest(); - ~ModifyEventStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventStatusRequest : public RpcServiceRequest + { + + public: + ModifyEventStatusRequest(); + ~ModifyEventStatusRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); bool getBacked()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setLang(const std::string& lang); int getStatus()const; void setStatus(int status); - - private: + + private: std::string sourceIp_; bool backed_; int featureType_; @@ -58,9 +58,9 @@ namespace AlibabaCloud long id_; std::string lang_; int status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventStatusResult.h b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusResult.h index 0334ee4be..f52f473d3 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyEventStatusResult.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventStatusResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyEventStatusResult : public ServiceResult - { - public: - - - ModifyEventStatusResult(); - explicit ModifyEventStatusResult(const std::string &payload); - ~ModifyEventStatusResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventStatusResult : public ServiceResult + { + public: + + + ModifyEventStatusResult(); + explicit ModifyEventStatusResult(const std::string &payload); + ~ModifyEventStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTSTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h index 93ca7fffe..f98f51836 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusRequest.h @@ -1,54 +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_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyEventTypeStatusRequest : public RpcServiceRequest - { - - public: - ModifyEventTypeStatusRequest(); - ~ModifyEventTypeStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventTypeStatusRequest : public RpcServiceRequest + { + + public: + ModifyEventTypeStatusRequest(); + ~ModifyEventTypeStatusRequest(); + std::string getSubTypeIds()const; void setSubTypeIds(const std::string& subTypeIds); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLang()const; void setLang(const std::string& lang); - - private: + + private: std::string subTypeIds_; std::string sourceIp_; std::string lang_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.h b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.h index d3df811d2..8a16a1f24 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyEventTypeStatusResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyEventTypeStatusResult : public ServiceResult - { - public: - - - ModifyEventTypeStatusResult(); - explicit ModifyEventTypeStatusResult(const std::string &payload); - ~ModifyEventTypeStatusResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyEventTypeStatusResult : public ServiceResult + { + public: + + + ModifyEventTypeStatusResult(); + explicit ModifyEventTypeStatusResult(const std::string &payload); + ~ModifyEventTypeStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYEVENTTYPESTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleRequest.h index e48207c52..3fd37b205 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyRuleRequest.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULEREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyRuleRequest : public RpcServiceRequest - { - - public: - ModifyRuleRequest(); - ~ModifyRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULEREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleRequest : public RpcServiceRequest + { + + public: + ModifyRuleRequest(); + ~ModifyRuleRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setCategory(int category); std::string getContent()const; void setContent(const std::string& content); - - private: + + private: std::string sourceIp_; int featureType_; std::string name_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int customType_; int category_; std::string content_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULEREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleResult.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleResult.h index b72d60823..b4a5d3aad 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyRuleResult.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULERESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyRuleResult : public ServiceResult - { - public: - - - ModifyRuleResult(); - explicit ModifyRuleResult(const std::string &payload); - ~ModifyRuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULERESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleResult : public ServiceResult + { + public: + + + ModifyRuleResult(); + explicit ModifyRuleResult(const std::string &payload); + ~ModifyRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULERESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusRequest.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusRequest.h index 8d043f558..67e8dc0e0 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusRequest.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyRuleStatusRequest : public RpcServiceRequest - { - - public: - ModifyRuleStatusRequest(); - ~ModifyRuleStatusRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleStatusRequest : public RpcServiceRequest + { + + public: + ModifyRuleStatusRequest(); + ~ModifyRuleStatusRequest(); + std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); int getFeatureType()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setLang(const std::string& lang); int getStatus()const; void setStatus(int status); - - private: + + private: std::string sourceIp_; int featureType_; long id_; std::string lang_; int status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusResult.h b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusResult.h index f3cf3c046..718dbc2df 100644 --- a/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusResult.h +++ b/sddp/include/alibabacloud/sddp/model/ModifyRuleStatusResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ModifyRuleStatusResult : public ServiceResult - { - public: - - - ModifyRuleStatusResult(); - explicit ModifyRuleStatusResult(const std::string &payload); - ~ModifyRuleStatusResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ModifyRuleStatusResult : public ServiceResult + { + public: + + + ModifyRuleStatusResult(); + explicit ModifyRuleStatusResult(const std::string &payload); + ~ModifyRuleStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_MODIFYRULESTATUSRESULT_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ValidateConnectorRequest.h b/sddp/include/alibabacloud/sddp/model/ValidateConnectorRequest.h index 1b6c431e8..e93d2f457 100644 --- a/sddp/include/alibabacloud/sddp/model/ValidateConnectorRequest.h +++ b/sddp/include/alibabacloud/sddp/model/ValidateConnectorRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ -#define ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ValidateConnectorRequest : public RpcServiceRequest - { - - public: - ValidateConnectorRequest(); - ~ValidateConnectorRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ +#define ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ValidateConnectorRequest : public RpcServiceRequest + { + + public: + ValidateConnectorRequest(); + ~ValidateConnectorRequest(); + std::string getPassword()const; void setPassword(const std::string& password); std::string getSourceIp()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setParentId(const std::string& parentId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: std::string password_; std::string sourceIp_; std::string connector_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string serviceRegionId_; std::string parentId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORREQUEST_H_ \ No newline at end of file diff --git a/sddp/include/alibabacloud/sddp/model/ValidateConnectorResult.h b/sddp/include/alibabacloud/sddp/model/ValidateConnectorResult.h index dd3f724f5..97650c109 100644 --- a/sddp/include/alibabacloud/sddp/model/ValidateConnectorResult.h +++ b/sddp/include/alibabacloud/sddp/model/ValidateConnectorResult.h @@ -1,51 +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_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ -#define ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sddp - { - namespace Model - { - class ALIBABACLOUD_SDDP_EXPORT ValidateConnectorResult : public ServiceResult - { - public: - - - ValidateConnectorResult(); - explicit ValidateConnectorResult(const std::string &payload); - ~ValidateConnectorResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ +#define ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sddp + { + namespace Model + { + class ALIBABACLOUD_SDDP_EXPORT ValidateConnectorResult : public ServiceResult + { + public: + + + ValidateConnectorResult(); + explicit ValidateConnectorResult(const std::string &payload); + ~ValidateConnectorResult(); bool getConnected()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: bool connected_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SDDP_MODEL_VALIDATECONNECTORRESULT_H_ \ No newline at end of file diff --git a/sddp/src/SddpClient.cc b/sddp/src/SddpClient.cc index 7f99fbc57..4e2dcb5d2 100644 --- a/sddp/src/SddpClient.cc +++ b/sddp/src/SddpClient.cc @@ -1,1457 +1,1457 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -namespace -{ - const std::string SERVICE_NAME = "Sddp"; -} - -SddpClient::SddpClient(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, "sddp"); -} - -SddpClient::SddpClient(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, "sddp"); -} - -SddpClient::SddpClient(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, "sddp"); -} - -SddpClient::~SddpClient() -{} - -SddpClient::DescribeOssObjectDetailOutcome SddpClient::describeOssObjectDetail(const DescribeOssObjectDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeOssObjectDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeOssObjectDetailOutcome(DescribeOssObjectDetailResult(outcome.result())); - else - return DescribeOssObjectDetailOutcome(outcome.error()); -} - -void SddpClient::describeOssObjectDetailAsync(const DescribeOssObjectDetailRequest& request, const DescribeOssObjectDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeOssObjectDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeOssObjectDetailOutcomeCallable SddpClient::describeOssObjectDetailCallable(const DescribeOssObjectDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeOssObjectDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::CreateConfigOutcome SddpClient::createConfig(const CreateConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateConfigOutcome(CreateConfigResult(outcome.result())); - else - return CreateConfigOutcome(outcome.error()); -} - -void SddpClient::createConfigAsync(const CreateConfigRequest& request, const CreateConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::CreateConfigOutcomeCallable SddpClient::createConfigCallable(const CreateConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeEventTypesOutcome SddpClient::describeEventTypes(const DescribeEventTypesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeEventTypesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeEventTypesOutcome(DescribeEventTypesResult(outcome.result())); - else - return DescribeEventTypesOutcome(outcome.error()); -} - -void SddpClient::describeEventTypesAsync(const DescribeEventTypesRequest& request, const DescribeEventTypesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeEventTypes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeEventTypesOutcomeCallable SddpClient::describeEventTypesCallable(const DescribeEventTypesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeEventTypes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribePackagesOutcome SddpClient::describePackages(const DescribePackagesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePackagesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePackagesOutcome(DescribePackagesResult(outcome.result())); - else - return DescribePackagesOutcome(outcome.error()); -} - -void SddpClient::describePackagesAsync(const DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePackages(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribePackagesOutcomeCallable SddpClient::describePackagesCallable(const DescribePackagesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePackages(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::ModifyEventStatusOutcome SddpClient::modifyEventStatus(const ModifyEventStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyEventStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyEventStatusOutcome(ModifyEventStatusResult(outcome.result())); - else - return ModifyEventStatusOutcome(outcome.error()); -} - -void SddpClient::modifyEventStatusAsync(const ModifyEventStatusRequest& request, const ModifyEventStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyEventStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::ModifyEventStatusOutcomeCallable SddpClient::modifyEventStatusCallable(const ModifyEventStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyEventStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeConfigsOutcome SddpClient::describeConfigs(const DescribeConfigsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeConfigsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeConfigsOutcome(DescribeConfigsResult(outcome.result())); - else - return DescribeConfigsOutcome(outcome.error()); -} - -void SddpClient::describeConfigsAsync(const DescribeConfigsRequest& request, const DescribeConfigsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeConfigs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeConfigsOutcomeCallable SddpClient::describeConfigsCallable(const DescribeConfigsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeConfigs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeAuthAccountsOutcome SddpClient::describeAuthAccounts(const DescribeAuthAccountsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAuthAccountsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAuthAccountsOutcome(DescribeAuthAccountsResult(outcome.result())); - else - return DescribeAuthAccountsOutcome(outcome.error()); -} - -void SddpClient::describeAuthAccountsAsync(const DescribeAuthAccountsRequest& request, const DescribeAuthAccountsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAuthAccounts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeAuthAccountsOutcomeCallable SddpClient::describeAuthAccountsCallable(const DescribeAuthAccountsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAuthAccounts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDataAssetsOutcome SddpClient::describeDataAssets(const DescribeDataAssetsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataAssetsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataAssetsOutcome(DescribeDataAssetsResult(outcome.result())); - else - return DescribeDataAssetsOutcome(outcome.error()); -} - -void SddpClient::describeDataAssetsAsync(const DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataAssets(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDataAssetsOutcomeCallable SddpClient::describeDataAssetsCallable(const DescribeDataAssetsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataAssets(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::ValidateConnectorOutcome SddpClient::validateConnector(const ValidateConnectorRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ValidateConnectorOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ValidateConnectorOutcome(ValidateConnectorResult(outcome.result())); - else - return ValidateConnectorOutcome(outcome.error()); -} - -void SddpClient::validateConnectorAsync(const ValidateConnectorRequest& request, const ValidateConnectorAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, validateConnector(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::ValidateConnectorOutcomeCallable SddpClient::validateConnectorCallable(const ValidateConnectorRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->validateConnector(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeCloudDatabasesOutcome SddpClient::describeCloudDatabases(const DescribeCloudDatabasesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCloudDatabasesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCloudDatabasesOutcome(DescribeCloudDatabasesResult(outcome.result())); - else - return DescribeCloudDatabasesOutcome(outcome.error()); -} - -void SddpClient::describeCloudDatabasesAsync(const DescribeCloudDatabasesRequest& request, const DescribeCloudDatabasesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCloudDatabases(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeCloudDatabasesOutcomeCallable SddpClient::describeCloudDatabasesCallable(const DescribeCloudDatabasesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCloudDatabases(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::CreateRuleOutcome SddpClient::createRule(const CreateRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateRuleOutcome(CreateRuleResult(outcome.result())); - else - return CreateRuleOutcome(outcome.error()); -} - -void SddpClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::CreateRuleOutcomeCallable SddpClient::createRuleCallable(const CreateRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::CreateUserAuthOutcome SddpClient::createUserAuth(const CreateUserAuthRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateUserAuthOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateUserAuthOutcome(CreateUserAuthResult(outcome.result())); - else - return CreateUserAuthOutcome(outcome.error()); -} - -void SddpClient::createUserAuthAsync(const CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createUserAuth(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::CreateUserAuthOutcomeCallable SddpClient::createUserAuthCallable(const CreateUserAuthRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createUserAuth(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DeleteRuleOutcome SddpClient::deleteRule(const DeleteRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteRuleOutcome(DeleteRuleResult(outcome.result())); - else - return DeleteRuleOutcome(outcome.error()); -} - -void SddpClient::deleteRuleAsync(const DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DeleteRuleOutcomeCallable SddpClient::deleteRuleCallable(const DeleteRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDataHubConnectorsOutcome SddpClient::describeDataHubConnectors(const DescribeDataHubConnectorsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataHubConnectorsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataHubConnectorsOutcome(DescribeDataHubConnectorsResult(outcome.result())); - else - return DescribeDataHubConnectorsOutcome(outcome.error()); -} - -void SddpClient::describeDataHubConnectorsAsync(const DescribeDataHubConnectorsRequest& request, const DescribeDataHubConnectorsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataHubConnectors(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDataHubConnectorsOutcomeCallable SddpClient::describeDataHubConnectorsCallable(const DescribeDataHubConnectorsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataHubConnectors(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeRulesOutcome SddpClient::describeRules(const DescribeRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRulesOutcome(DescribeRulesResult(outcome.result())); - else - return DescribeRulesOutcome(outcome.error()); -} - -void SddpClient::describeRulesAsync(const DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeRulesOutcomeCallable SddpClient::describeRulesCallable(const DescribeRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDataLimitDetailOutcome SddpClient::describeDataLimitDetail(const DescribeDataLimitDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataLimitDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataLimitDetailOutcome(DescribeDataLimitDetailResult(outcome.result())); - else - return DescribeDataLimitDetailOutcome(outcome.error()); -} - -void SddpClient::describeDataLimitDetailAsync(const DescribeDataLimitDetailRequest& request, const DescribeDataLimitDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataLimitDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDataLimitDetailOutcomeCallable SddpClient::describeDataLimitDetailCallable(const DescribeDataLimitDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataLimitDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeColumnsOutcome SddpClient::describeColumns(const DescribeColumnsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeColumnsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeColumnsOutcome(DescribeColumnsResult(outcome.result())); - else - return DescribeColumnsOutcome(outcome.error()); -} - -void SddpClient::describeColumnsAsync(const DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeColumns(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeColumnsOutcomeCallable SddpClient::describeColumnsCallable(const DescribeColumnsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeColumns(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::ModifyRuleStatusOutcome SddpClient::modifyRuleStatus(const ModifyRuleStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyRuleStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyRuleStatusOutcome(ModifyRuleStatusResult(outcome.result())); - else - return ModifyRuleStatusOutcome(outcome.error()); -} - -void SddpClient::modifyRuleStatusAsync(const ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyRuleStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::ModifyRuleStatusOutcomeCallable SddpClient::modifyRuleStatusCallable(const ModifyRuleStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyRuleStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DeleteDataLimitOutcome SddpClient::deleteDataLimit(const DeleteDataLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDataLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDataLimitOutcome(DeleteDataLimitResult(outcome.result())); - else - return DeleteDataLimitOutcome(outcome.error()); -} - -void SddpClient::deleteDataLimitAsync(const DeleteDataLimitRequest& request, const DeleteDataLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDataLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DeleteDataLimitOutcomeCallable SddpClient::deleteDataLimitCallable(const DeleteDataLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDataLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeAccountDetailOutcome SddpClient::describeAccountDetail(const DescribeAccountDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAccountDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAccountDetailOutcome(DescribeAccountDetailResult(outcome.result())); - else - return DescribeAccountDetailOutcome(outcome.error()); -} - -void SddpClient::describeAccountDetailAsync(const DescribeAccountDetailRequest& request, const DescribeAccountDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAccountDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeAccountDetailOutcomeCallable SddpClient::describeAccountDetailCallable(const DescribeAccountDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAccountDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDepartsOutcome SddpClient::describeDeparts(const DescribeDepartsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDepartsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDepartsOutcome(DescribeDepartsResult(outcome.result())); - else - return DescribeDepartsOutcome(outcome.error()); -} - -void SddpClient::describeDepartsAsync(const DescribeDepartsRequest& request, const DescribeDepartsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDeparts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDepartsOutcomeCallable SddpClient::describeDepartsCallable(const DescribeDepartsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDeparts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDataHubSubscriptionsOutcome SddpClient::describeDataHubSubscriptions(const DescribeDataHubSubscriptionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataHubSubscriptionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataHubSubscriptionsOutcome(DescribeDataHubSubscriptionsResult(outcome.result())); - else - return DescribeDataHubSubscriptionsOutcome(outcome.error()); -} - -void SddpClient::describeDataHubSubscriptionsAsync(const DescribeDataHubSubscriptionsRequest& request, const DescribeDataHubSubscriptionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataHubSubscriptions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDataHubSubscriptionsOutcomeCallable SddpClient::describeDataHubSubscriptionsCallable(const DescribeDataHubSubscriptionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataHubSubscriptions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDataHubTopicsOutcome SddpClient::describeDataHubTopics(const DescribeDataHubTopicsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataHubTopicsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataHubTopicsOutcome(DescribeDataHubTopicsResult(outcome.result())); - else - return DescribeDataHubTopicsOutcome(outcome.error()); -} - -void SddpClient::describeDataHubTopicsAsync(const DescribeDataHubTopicsRequest& request, const DescribeDataHubTopicsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataHubTopics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDataHubTopicsOutcomeCallable SddpClient::describeDataHubTopicsCallable(const DescribeDataHubTopicsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataHubTopics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeCloudInstancesOutcome SddpClient::describeCloudInstances(const DescribeCloudInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCloudInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCloudInstancesOutcome(DescribeCloudInstancesResult(outcome.result())); - else - return DescribeCloudInstancesOutcome(outcome.error()); -} - -void SddpClient::describeCloudInstancesAsync(const DescribeCloudInstancesRequest& request, const DescribeCloudInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCloudInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeCloudInstancesOutcomeCallable SddpClient::describeCloudInstancesCallable(const DescribeCloudInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCloudInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeAccountsOutcome SddpClient::describeAccounts(const DescribeAccountsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAccountsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); - else - return DescribeAccountsOutcome(outcome.error()); -} - -void SddpClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAccounts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeAccountsOutcomeCallable SddpClient::describeAccountsCallable(const DescribeAccountsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAccounts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeOssObjectsOutcome SddpClient::describeOssObjects(const DescribeOssObjectsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeOssObjectsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeOssObjectsOutcome(DescribeOssObjectsResult(outcome.result())); - else - return DescribeOssObjectsOutcome(outcome.error()); -} - -void SddpClient::describeOssObjectsAsync(const DescribeOssObjectsRequest& request, const DescribeOssObjectsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeOssObjects(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeOssObjectsOutcomeCallable SddpClient::describeOssObjectsCallable(const DescribeOssObjectsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeOssObjects(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDataLimitsOutcome SddpClient::describeDataLimits(const DescribeDataLimitsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataLimitsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataLimitsOutcome(DescribeDataLimitsResult(outcome.result())); - else - return DescribeDataLimitsOutcome(outcome.error()); -} - -void SddpClient::describeDataLimitsAsync(const DescribeDataLimitsRequest& request, const DescribeDataLimitsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataLimits(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDataLimitsOutcomeCallable SddpClient::describeDataLimitsCallable(const DescribeDataLimitsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataLimits(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeEventsOutcome SddpClient::describeEvents(const DescribeEventsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeEventsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeEventsOutcome(DescribeEventsResult(outcome.result())); - else - return DescribeEventsOutcome(outcome.error()); -} - -void SddpClient::describeEventsAsync(const DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeEvents(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeEventsOutcomeCallable SddpClient::describeEventsCallable(const DescribeEventsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeEvents(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::CreateDataLimitOutcome SddpClient::createDataLimit(const CreateDataLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDataLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDataLimitOutcome(CreateDataLimitResult(outcome.result())); - else - return CreateDataLimitOutcome(outcome.error()); -} - -void SddpClient::createDataLimitAsync(const CreateDataLimitRequest& request, const CreateDataLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDataLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::CreateDataLimitOutcomeCallable SddpClient::createDataLimitCallable(const CreateDataLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDataLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::ModifyRuleOutcome SddpClient::modifyRule(const ModifyRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyRuleOutcome(ModifyRuleResult(outcome.result())); - else - return ModifyRuleOutcome(outcome.error()); -} - -void SddpClient::modifyRuleAsync(const ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::ModifyRuleOutcomeCallable SddpClient::modifyRuleCallable(const ModifyRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::ModifyDataLimitOutcome SddpClient::modifyDataLimit(const ModifyDataLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDataLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDataLimitOutcome(ModifyDataLimitResult(outcome.result())); - else - return ModifyDataLimitOutcome(outcome.error()); -} - -void SddpClient::modifyDataLimitAsync(const ModifyDataLimitRequest& request, const ModifyDataLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDataLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::ModifyDataLimitOutcomeCallable SddpClient::modifyDataLimitCallable(const ModifyDataLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDataLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeEventDetailOutcome SddpClient::describeEventDetail(const DescribeEventDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeEventDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeEventDetailOutcome(DescribeEventDetailResult(outcome.result())); - else - return DescribeEventDetailOutcome(outcome.error()); -} - -void SddpClient::describeEventDetailAsync(const DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeEventDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeEventDetailOutcomeCallable SddpClient::describeEventDetailCallable(const DescribeEventDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeEventDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeTablesOutcome SddpClient::describeTables(const DescribeTablesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTablesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTablesOutcome(DescribeTablesResult(outcome.result())); - else - return DescribeTablesOutcome(outcome.error()); -} - -void SddpClient::describeTablesAsync(const DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTables(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeTablesOutcomeCallable SddpClient::describeTablesCallable(const DescribeTablesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTables(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribePrivilegesOutcome SddpClient::describePrivileges(const DescribePrivilegesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePrivilegesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePrivilegesOutcome(DescribePrivilegesResult(outcome.result())); - else - return DescribePrivilegesOutcome(outcome.error()); -} - -void SddpClient::describePrivilegesAsync(const DescribePrivilegesRequest& request, const DescribePrivilegesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePrivileges(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribePrivilegesOutcomeCallable SddpClient::describePrivilegesCallable(const DescribePrivilegesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePrivileges(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeDataHubProjectsOutcome SddpClient::describeDataHubProjects(const DescribeDataHubProjectsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataHubProjectsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataHubProjectsOutcome(DescribeDataHubProjectsResult(outcome.result())); - else - return DescribeDataHubProjectsOutcome(outcome.error()); -} - -void SddpClient::describeDataHubProjectsAsync(const DescribeDataHubProjectsRequest& request, const DescribeDataHubProjectsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataHubProjects(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeDataHubProjectsOutcomeCallable SddpClient::describeDataHubProjectsCallable(const DescribeDataHubProjectsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataHubProjects(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeInstancesOutcome SddpClient::describeInstances(const DescribeInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeInstancesOutcome(DescribeInstancesResult(outcome.result())); - else - return DescribeInstancesOutcome(outcome.error()); -} - -void SddpClient::describeInstancesAsync(const DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeInstancesOutcomeCallable SddpClient::describeInstancesCallable(const DescribeInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::ModifyDefaultLevelOutcome SddpClient::modifyDefaultLevel(const ModifyDefaultLevelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDefaultLevelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDefaultLevelOutcome(ModifyDefaultLevelResult(outcome.result())); - else - return ModifyDefaultLevelOutcome(outcome.error()); -} - -void SddpClient::modifyDefaultLevelAsync(const ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDefaultLevel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::ModifyDefaultLevelOutcomeCallable SddpClient::modifyDefaultLevelCallable(const ModifyDefaultLevelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDefaultLevel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::ModifyEventTypeStatusOutcome SddpClient::modifyEventTypeStatus(const ModifyEventTypeStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyEventTypeStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyEventTypeStatusOutcome(ModifyEventTypeStatusResult(outcome.result())); - else - return ModifyEventTypeStatusOutcome(outcome.error()); -} - -void SddpClient::modifyEventTypeStatusAsync(const ModifyEventTypeStatusRequest& request, const ModifyEventTypeStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyEventTypeStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::ModifyEventTypeStatusOutcomeCallable SddpClient::modifyEventTypeStatusCallable(const ModifyEventTypeStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyEventTypeStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SddpClient::DescribeUserStatusOutcome SddpClient::describeUserStatus(const DescribeUserStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result())); - else - return DescribeUserStatusOutcome(outcome.error()); -} - -void SddpClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SddpClient::DescribeUserStatusOutcomeCallable SddpClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +namespace +{ + const std::string SERVICE_NAME = "Sddp"; +} + +SddpClient::SddpClient(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, "sddp"); +} + +SddpClient::SddpClient(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, "sddp"); +} + +SddpClient::SddpClient(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, "sddp"); +} + +SddpClient::~SddpClient() +{} + +SddpClient::DescribeOssObjectDetailOutcome SddpClient::describeOssObjectDetail(const DescribeOssObjectDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssObjectDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssObjectDetailOutcome(DescribeOssObjectDetailResult(outcome.result())); + else + return DescribeOssObjectDetailOutcome(outcome.error()); +} + +void SddpClient::describeOssObjectDetailAsync(const DescribeOssObjectDetailRequest& request, const DescribeOssObjectDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssObjectDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeOssObjectDetailOutcomeCallable SddpClient::describeOssObjectDetailCallable(const DescribeOssObjectDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssObjectDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateConfigOutcome SddpClient::createConfig(const CreateConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConfigOutcome(CreateConfigResult(outcome.result())); + else + return CreateConfigOutcome(outcome.error()); +} + +void SddpClient::createConfigAsync(const CreateConfigRequest& request, const CreateConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateConfigOutcomeCallable SddpClient::createConfigCallable(const CreateConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeEventTypesOutcome SddpClient::describeEventTypes(const DescribeEventTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventTypesOutcome(DescribeEventTypesResult(outcome.result())); + else + return DescribeEventTypesOutcome(outcome.error()); +} + +void SddpClient::describeEventTypesAsync(const DescribeEventTypesRequest& request, const DescribeEventTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeEventTypesOutcomeCallable SddpClient::describeEventTypesCallable(const DescribeEventTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyEventStatusOutcome SddpClient::modifyEventStatus(const ModifyEventStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEventStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEventStatusOutcome(ModifyEventStatusResult(outcome.result())); + else + return ModifyEventStatusOutcome(outcome.error()); +} + +void SddpClient::modifyEventStatusAsync(const ModifyEventStatusRequest& request, const ModifyEventStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEventStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyEventStatusOutcomeCallable SddpClient::modifyEventStatusCallable(const ModifyEventStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEventStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribePackagesOutcome SddpClient::describePackages(const DescribePackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePackagesOutcome(DescribePackagesResult(outcome.result())); + else + return DescribePackagesOutcome(outcome.error()); +} + +void SddpClient::describePackagesAsync(const DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribePackagesOutcomeCallable SddpClient::describePackagesCallable(const DescribePackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeConfigsOutcome SddpClient::describeConfigs(const DescribeConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConfigsOutcome(DescribeConfigsResult(outcome.result())); + else + return DescribeConfigsOutcome(outcome.error()); +} + +void SddpClient::describeConfigsAsync(const DescribeConfigsRequest& request, const DescribeConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeConfigsOutcomeCallable SddpClient::describeConfigsCallable(const DescribeConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeAuthAccountsOutcome SddpClient::describeAuthAccounts(const DescribeAuthAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuthAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuthAccountsOutcome(DescribeAuthAccountsResult(outcome.result())); + else + return DescribeAuthAccountsOutcome(outcome.error()); +} + +void SddpClient::describeAuthAccountsAsync(const DescribeAuthAccountsRequest& request, const DescribeAuthAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuthAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeAuthAccountsOutcomeCallable SddpClient::describeAuthAccountsCallable(const DescribeAuthAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuthAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ValidateConnectorOutcome SddpClient::validateConnector(const ValidateConnectorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateConnectorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateConnectorOutcome(ValidateConnectorResult(outcome.result())); + else + return ValidateConnectorOutcome(outcome.error()); +} + +void SddpClient::validateConnectorAsync(const ValidateConnectorRequest& request, const ValidateConnectorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateConnector(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ValidateConnectorOutcomeCallable SddpClient::validateConnectorCallable(const ValidateConnectorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateConnector(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataAssetsOutcome SddpClient::describeDataAssets(const DescribeDataAssetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataAssetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataAssetsOutcome(DescribeDataAssetsResult(outcome.result())); + else + return DescribeDataAssetsOutcome(outcome.error()); +} + +void SddpClient::describeDataAssetsAsync(const DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataAssets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataAssetsOutcomeCallable SddpClient::describeDataAssetsCallable(const DescribeDataAssetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataAssets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeCloudDatabasesOutcome SddpClient::describeCloudDatabases(const DescribeCloudDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudDatabasesOutcome(DescribeCloudDatabasesResult(outcome.result())); + else + return DescribeCloudDatabasesOutcome(outcome.error()); +} + +void SddpClient::describeCloudDatabasesAsync(const DescribeCloudDatabasesRequest& request, const DescribeCloudDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeCloudDatabasesOutcomeCallable SddpClient::describeCloudDatabasesCallable(const DescribeCloudDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateRuleOutcome SddpClient::createRule(const CreateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRuleOutcome(CreateRuleResult(outcome.result())); + else + return CreateRuleOutcome(outcome.error()); +} + +void SddpClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateRuleOutcomeCallable SddpClient::createRuleCallable(const CreateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateUserAuthOutcome SddpClient::createUserAuth(const CreateUserAuthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserAuthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserAuthOutcome(CreateUserAuthResult(outcome.result())); + else + return CreateUserAuthOutcome(outcome.error()); +} + +void SddpClient::createUserAuthAsync(const CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserAuth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateUserAuthOutcomeCallable SddpClient::createUserAuthCallable(const CreateUserAuthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserAuth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DeleteRuleOutcome SddpClient::deleteRule(const DeleteRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRuleOutcome(DeleteRuleResult(outcome.result())); + else + return DeleteRuleOutcome(outcome.error()); +} + +void SddpClient::deleteRuleAsync(const DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DeleteRuleOutcomeCallable SddpClient::deleteRuleCallable(const DeleteRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubConnectorsOutcome SddpClient::describeDataHubConnectors(const DescribeDataHubConnectorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubConnectorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubConnectorsOutcome(DescribeDataHubConnectorsResult(outcome.result())); + else + return DescribeDataHubConnectorsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubConnectorsAsync(const DescribeDataHubConnectorsRequest& request, const DescribeDataHubConnectorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubConnectors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubConnectorsOutcomeCallable SddpClient::describeDataHubConnectorsCallable(const DescribeDataHubConnectorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubConnectors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeColumnsOutcome SddpClient::describeColumns(const DescribeColumnsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeColumnsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeColumnsOutcome(DescribeColumnsResult(outcome.result())); + else + return DescribeColumnsOutcome(outcome.error()); +} + +void SddpClient::describeColumnsAsync(const DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeColumns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeColumnsOutcomeCallable SddpClient::describeColumnsCallable(const DescribeColumnsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeColumns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataLimitDetailOutcome SddpClient::describeDataLimitDetail(const DescribeDataLimitDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataLimitDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataLimitDetailOutcome(DescribeDataLimitDetailResult(outcome.result())); + else + return DescribeDataLimitDetailOutcome(outcome.error()); +} + +void SddpClient::describeDataLimitDetailAsync(const DescribeDataLimitDetailRequest& request, const DescribeDataLimitDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataLimitDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataLimitDetailOutcomeCallable SddpClient::describeDataLimitDetailCallable(const DescribeDataLimitDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataLimitDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeRulesOutcome SddpClient::describeRules(const DescribeRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRulesOutcome(DescribeRulesResult(outcome.result())); + else + return DescribeRulesOutcome(outcome.error()); +} + +void SddpClient::describeRulesAsync(const DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeRulesOutcomeCallable SddpClient::describeRulesCallable(const DescribeRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DeleteDataLimitOutcome SddpClient::deleteDataLimit(const DeleteDataLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataLimitOutcome(DeleteDataLimitResult(outcome.result())); + else + return DeleteDataLimitOutcome(outcome.error()); +} + +void SddpClient::deleteDataLimitAsync(const DeleteDataLimitRequest& request, const DeleteDataLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DeleteDataLimitOutcomeCallable SddpClient::deleteDataLimitCallable(const DeleteDataLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyRuleStatusOutcome SddpClient::modifyRuleStatus(const ModifyRuleStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRuleStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRuleStatusOutcome(ModifyRuleStatusResult(outcome.result())); + else + return ModifyRuleStatusOutcome(outcome.error()); +} + +void SddpClient::modifyRuleStatusAsync(const ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRuleStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyRuleStatusOutcomeCallable SddpClient::modifyRuleStatusCallable(const ModifyRuleStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRuleStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeAccountDetailOutcome SddpClient::describeAccountDetail(const DescribeAccountDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountDetailOutcome(DescribeAccountDetailResult(outcome.result())); + else + return DescribeAccountDetailOutcome(outcome.error()); +} + +void SddpClient::describeAccountDetailAsync(const DescribeAccountDetailRequest& request, const DescribeAccountDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccountDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeAccountDetailOutcomeCallable SddpClient::describeAccountDetailCallable(const DescribeAccountDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccountDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDepartsOutcome SddpClient::describeDeparts(const DescribeDepartsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDepartsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDepartsOutcome(DescribeDepartsResult(outcome.result())); + else + return DescribeDepartsOutcome(outcome.error()); +} + +void SddpClient::describeDepartsAsync(const DescribeDepartsRequest& request, const DescribeDepartsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeparts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDepartsOutcomeCallable SddpClient::describeDepartsCallable(const DescribeDepartsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeparts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubSubscriptionsOutcome SddpClient::describeDataHubSubscriptions(const DescribeDataHubSubscriptionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubSubscriptionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubSubscriptionsOutcome(DescribeDataHubSubscriptionsResult(outcome.result())); + else + return DescribeDataHubSubscriptionsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubSubscriptionsAsync(const DescribeDataHubSubscriptionsRequest& request, const DescribeDataHubSubscriptionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubSubscriptions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubSubscriptionsOutcomeCallable SddpClient::describeDataHubSubscriptionsCallable(const DescribeDataHubSubscriptionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubSubscriptions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubTopicsOutcome SddpClient::describeDataHubTopics(const DescribeDataHubTopicsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubTopicsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubTopicsOutcome(DescribeDataHubTopicsResult(outcome.result())); + else + return DescribeDataHubTopicsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubTopicsAsync(const DescribeDataHubTopicsRequest& request, const DescribeDataHubTopicsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubTopics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubTopicsOutcomeCallable SddpClient::describeDataHubTopicsCallable(const DescribeDataHubTopicsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubTopics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeCloudInstancesOutcome SddpClient::describeCloudInstances(const DescribeCloudInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudInstancesOutcome(DescribeCloudInstancesResult(outcome.result())); + else + return DescribeCloudInstancesOutcome(outcome.error()); +} + +void SddpClient::describeCloudInstancesAsync(const DescribeCloudInstancesRequest& request, const DescribeCloudInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeCloudInstancesOutcomeCallable SddpClient::describeCloudInstancesCallable(const DescribeCloudInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeAccountsOutcome SddpClient::describeAccounts(const DescribeAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); + else + return DescribeAccountsOutcome(outcome.error()); +} + +void SddpClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeAccountsOutcomeCallable SddpClient::describeAccountsCallable(const DescribeAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeOssObjectsOutcome SddpClient::describeOssObjects(const DescribeOssObjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssObjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssObjectsOutcome(DescribeOssObjectsResult(outcome.result())); + else + return DescribeOssObjectsOutcome(outcome.error()); +} + +void SddpClient::describeOssObjectsAsync(const DescribeOssObjectsRequest& request, const DescribeOssObjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssObjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeOssObjectsOutcomeCallable SddpClient::describeOssObjectsCallable(const DescribeOssObjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssObjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataLimitsOutcome SddpClient::describeDataLimits(const DescribeDataLimitsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataLimitsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataLimitsOutcome(DescribeDataLimitsResult(outcome.result())); + else + return DescribeDataLimitsOutcome(outcome.error()); +} + +void SddpClient::describeDataLimitsAsync(const DescribeDataLimitsRequest& request, const DescribeDataLimitsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataLimits(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataLimitsOutcomeCallable SddpClient::describeDataLimitsCallable(const DescribeDataLimitsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataLimits(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeEventsOutcome SddpClient::describeEvents(const DescribeEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventsOutcome(DescribeEventsResult(outcome.result())); + else + return DescribeEventsOutcome(outcome.error()); +} + +void SddpClient::describeEventsAsync(const DescribeEventsRequest& request, const DescribeEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeEventsOutcomeCallable SddpClient::describeEventsCallable(const DescribeEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::CreateDataLimitOutcome SddpClient::createDataLimit(const CreateDataLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDataLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDataLimitOutcome(CreateDataLimitResult(outcome.result())); + else + return CreateDataLimitOutcome(outcome.error()); +} + +void SddpClient::createDataLimitAsync(const CreateDataLimitRequest& request, const CreateDataLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::CreateDataLimitOutcomeCallable SddpClient::createDataLimitCallable(const CreateDataLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyRuleOutcome SddpClient::modifyRule(const ModifyRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRuleOutcome(ModifyRuleResult(outcome.result())); + else + return ModifyRuleOutcome(outcome.error()); +} + +void SddpClient::modifyRuleAsync(const ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyRuleOutcomeCallable SddpClient::modifyRuleCallable(const ModifyRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeEventDetailOutcome SddpClient::describeEventDetail(const DescribeEventDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventDetailOutcome(DescribeEventDetailResult(outcome.result())); + else + return DescribeEventDetailOutcome(outcome.error()); +} + +void SddpClient::describeEventDetailAsync(const DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeEventDetailOutcomeCallable SddpClient::describeEventDetailCallable(const DescribeEventDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyDataLimitOutcome SddpClient::modifyDataLimit(const ModifyDataLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDataLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDataLimitOutcome(ModifyDataLimitResult(outcome.result())); + else + return ModifyDataLimitOutcome(outcome.error()); +} + +void SddpClient::modifyDataLimitAsync(const ModifyDataLimitRequest& request, const ModifyDataLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDataLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyDataLimitOutcomeCallable SddpClient::modifyDataLimitCallable(const ModifyDataLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDataLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeTablesOutcome SddpClient::describeTables(const DescribeTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTablesOutcome(DescribeTablesResult(outcome.result())); + else + return DescribeTablesOutcome(outcome.error()); +} + +void SddpClient::describeTablesAsync(const DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeTablesOutcomeCallable SddpClient::describeTablesCallable(const DescribeTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribePrivilegesOutcome SddpClient::describePrivileges(const DescribePrivilegesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePrivilegesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePrivilegesOutcome(DescribePrivilegesResult(outcome.result())); + else + return DescribePrivilegesOutcome(outcome.error()); +} + +void SddpClient::describePrivilegesAsync(const DescribePrivilegesRequest& request, const DescribePrivilegesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePrivileges(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribePrivilegesOutcomeCallable SddpClient::describePrivilegesCallable(const DescribePrivilegesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePrivileges(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeDataHubProjectsOutcome SddpClient::describeDataHubProjects(const DescribeDataHubProjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataHubProjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataHubProjectsOutcome(DescribeDataHubProjectsResult(outcome.result())); + else + return DescribeDataHubProjectsOutcome(outcome.error()); +} + +void SddpClient::describeDataHubProjectsAsync(const DescribeDataHubProjectsRequest& request, const DescribeDataHubProjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataHubProjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeDataHubProjectsOutcomeCallable SddpClient::describeDataHubProjectsCallable(const DescribeDataHubProjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataHubProjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeInstancesOutcome SddpClient::describeInstances(const DescribeInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstancesOutcome(DescribeInstancesResult(outcome.result())); + else + return DescribeInstancesOutcome(outcome.error()); +} + +void SddpClient::describeInstancesAsync(const DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeInstancesOutcomeCallable SddpClient::describeInstancesCallable(const DescribeInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyEventTypeStatusOutcome SddpClient::modifyEventTypeStatus(const ModifyEventTypeStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEventTypeStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEventTypeStatusOutcome(ModifyEventTypeStatusResult(outcome.result())); + else + return ModifyEventTypeStatusOutcome(outcome.error()); +} + +void SddpClient::modifyEventTypeStatusAsync(const ModifyEventTypeStatusRequest& request, const ModifyEventTypeStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEventTypeStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyEventTypeStatusOutcomeCallable SddpClient::modifyEventTypeStatusCallable(const ModifyEventTypeStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEventTypeStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::ModifyDefaultLevelOutcome SddpClient::modifyDefaultLevel(const ModifyDefaultLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDefaultLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDefaultLevelOutcome(ModifyDefaultLevelResult(outcome.result())); + else + return ModifyDefaultLevelOutcome(outcome.error()); +} + +void SddpClient::modifyDefaultLevelAsync(const ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDefaultLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::ModifyDefaultLevelOutcomeCallable SddpClient::modifyDefaultLevelCallable(const ModifyDefaultLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDefaultLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SddpClient::DescribeUserStatusOutcome SddpClient::describeUserStatus(const DescribeUserStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result())); + else + return DescribeUserStatusOutcome(outcome.error()); +} + +void SddpClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SddpClient::DescribeUserStatusOutcomeCallable SddpClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/sddp/src/model/CreateConfigRequest.cc b/sddp/src/model/CreateConfigRequest.cc index e82b6e020..70722c2ef 100644 --- a/sddp/src/model/CreateConfigRequest.cc +++ b/sddp/src/model/CreateConfigRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::CreateConfigRequest; - -CreateConfigRequest::CreateConfigRequest() : - RpcServiceRequest("sddp", "2019-01-03", "CreateConfig") -{} - -CreateConfigRequest::~CreateConfigRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::CreateConfigRequest; + +CreateConfigRequest::CreateConfigRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateConfig") +{} + +CreateConfigRequest::~CreateConfigRequest() +{} + std::string CreateConfigRequest::getCode()const { return code_; diff --git a/sddp/src/model/CreateConfigResult.cc b/sddp/src/model/CreateConfigResult.cc index 67c5f2c84..bed0f0d64 100644 --- a/sddp/src/model/CreateConfigResult.cc +++ b/sddp/src/model/CreateConfigResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -CreateConfigResult::CreateConfigResult() : - ServiceResult() -{} - -CreateConfigResult::CreateConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateConfigResult::~CreateConfigResult() -{} - -void CreateConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateConfigResult::CreateConfigResult() : + ServiceResult() +{} + +CreateConfigResult::CreateConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConfigResult::~CreateConfigResult() +{} + +void CreateConfigResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/CreateDataLimitRequest.cc b/sddp/src/model/CreateDataLimitRequest.cc index e792453de..741ccb910 100644 --- a/sddp/src/model/CreateDataLimitRequest.cc +++ b/sddp/src/model/CreateDataLimitRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::CreateDataLimitRequest; - -CreateDataLimitRequest::CreateDataLimitRequest() : - RpcServiceRequest("sddp", "2019-01-03", "CreateDataLimit") -{} - -CreateDataLimitRequest::~CreateDataLimitRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::CreateDataLimitRequest; + +CreateDataLimitRequest::CreateDataLimitRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateDataLimit") +{} + +CreateDataLimitRequest::~CreateDataLimitRequest() +{} + std::string CreateDataLimitRequest::getPassword()const { return password_; diff --git a/sddp/src/model/CreateDataLimitResult.cc b/sddp/src/model/CreateDataLimitResult.cc index 975692936..53b3b7050 100644 --- a/sddp/src/model/CreateDataLimitResult.cc +++ b/sddp/src/model/CreateDataLimitResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -CreateDataLimitResult::CreateDataLimitResult() : - ServiceResult() -{} - -CreateDataLimitResult::CreateDataLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDataLimitResult::~CreateDataLimitResult() -{} - -void CreateDataLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateDataLimitResult::CreateDataLimitResult() : + ServiceResult() +{} + +CreateDataLimitResult::CreateDataLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDataLimitResult::~CreateDataLimitResult() +{} + +void CreateDataLimitResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/CreateRuleRequest.cc b/sddp/src/model/CreateRuleRequest.cc index d29c17120..035df2d95 100644 --- a/sddp/src/model/CreateRuleRequest.cc +++ b/sddp/src/model/CreateRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::CreateRuleRequest; - -CreateRuleRequest::CreateRuleRequest() : - RpcServiceRequest("sddp", "2019-01-03", "CreateRule") -{} - -CreateRuleRequest::~CreateRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::CreateRuleRequest; + +CreateRuleRequest::CreateRuleRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateRule") +{} + +CreateRuleRequest::~CreateRuleRequest() +{} + std::string CreateRuleRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/CreateRuleResult.cc b/sddp/src/model/CreateRuleResult.cc index b54c9b88b..90c4849df 100644 --- a/sddp/src/model/CreateRuleResult.cc +++ b/sddp/src/model/CreateRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -CreateRuleResult::CreateRuleResult() : - ServiceResult() -{} - -CreateRuleResult::CreateRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateRuleResult::~CreateRuleResult() -{} - -void CreateRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateRuleResult::CreateRuleResult() : + ServiceResult() +{} + +CreateRuleResult::CreateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRuleResult::~CreateRuleResult() +{} + +void CreateRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/CreateUserAuthRequest.cc b/sddp/src/model/CreateUserAuthRequest.cc index d1192798c..f93f26be4 100644 --- a/sddp/src/model/CreateUserAuthRequest.cc +++ b/sddp/src/model/CreateUserAuthRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::CreateUserAuthRequest; - -CreateUserAuthRequest::CreateUserAuthRequest() : - RpcServiceRequest("sddp", "2019-01-03", "CreateUserAuth") -{} - -CreateUserAuthRequest::~CreateUserAuthRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::CreateUserAuthRequest; + +CreateUserAuthRequest::CreateUserAuthRequest() : + RpcServiceRequest("sddp", "2019-01-03", "CreateUserAuth") +{} + +CreateUserAuthRequest::~CreateUserAuthRequest() +{} + long CreateUserAuthRequest::getAccountId()const { return accountId_; diff --git a/sddp/src/model/CreateUserAuthResult.cc b/sddp/src/model/CreateUserAuthResult.cc index 0f71bdf6f..fffe4ad2b 100644 --- a/sddp/src/model/CreateUserAuthResult.cc +++ b/sddp/src/model/CreateUserAuthResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -CreateUserAuthResult::CreateUserAuthResult() : - ServiceResult() -{} - -CreateUserAuthResult::CreateUserAuthResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateUserAuthResult::~CreateUserAuthResult() -{} - -void CreateUserAuthResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +CreateUserAuthResult::CreateUserAuthResult() : + ServiceResult() +{} + +CreateUserAuthResult::CreateUserAuthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserAuthResult::~CreateUserAuthResult() +{} + +void CreateUserAuthResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/DeleteDataLimitRequest.cc b/sddp/src/model/DeleteDataLimitRequest.cc index c66e7b22c..2167051c0 100644 --- a/sddp/src/model/DeleteDataLimitRequest.cc +++ b/sddp/src/model/DeleteDataLimitRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DeleteDataLimitRequest; - -DeleteDataLimitRequest::DeleteDataLimitRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DeleteDataLimit") -{} - -DeleteDataLimitRequest::~DeleteDataLimitRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DeleteDataLimitRequest; + +DeleteDataLimitRequest::DeleteDataLimitRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DeleteDataLimit") +{} + +DeleteDataLimitRequest::~DeleteDataLimitRequest() +{} + std::string DeleteDataLimitRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DeleteDataLimitResult.cc b/sddp/src/model/DeleteDataLimitResult.cc index 673f74ec0..ccc2bea38 100644 --- a/sddp/src/model/DeleteDataLimitResult.cc +++ b/sddp/src/model/DeleteDataLimitResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DeleteDataLimitResult::DeleteDataLimitResult() : - ServiceResult() -{} - -DeleteDataLimitResult::DeleteDataLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDataLimitResult::~DeleteDataLimitResult() -{} - -void DeleteDataLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DeleteDataLimitResult::DeleteDataLimitResult() : + ServiceResult() +{} + +DeleteDataLimitResult::DeleteDataLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataLimitResult::~DeleteDataLimitResult() +{} + +void DeleteDataLimitResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/DeleteRuleRequest.cc b/sddp/src/model/DeleteRuleRequest.cc index 49404650b..b27dca9e4 100644 --- a/sddp/src/model/DeleteRuleRequest.cc +++ b/sddp/src/model/DeleteRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DeleteRuleRequest; - -DeleteRuleRequest::DeleteRuleRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DeleteRule") -{} - -DeleteRuleRequest::~DeleteRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DeleteRuleRequest; + +DeleteRuleRequest::DeleteRuleRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DeleteRule") +{} + +DeleteRuleRequest::~DeleteRuleRequest() +{} + std::string DeleteRuleRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DeleteRuleResult.cc b/sddp/src/model/DeleteRuleResult.cc index 22f43007a..d6641d4b2 100644 --- a/sddp/src/model/DeleteRuleResult.cc +++ b/sddp/src/model/DeleteRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DeleteRuleResult::DeleteRuleResult() : - ServiceResult() -{} - -DeleteRuleResult::DeleteRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteRuleResult::~DeleteRuleResult() -{} - -void DeleteRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DeleteRuleResult::DeleteRuleResult() : + ServiceResult() +{} + +DeleteRuleResult::DeleteRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRuleResult::~DeleteRuleResult() +{} + +void DeleteRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/DescribeAccountDetailRequest.cc b/sddp/src/model/DescribeAccountDetailRequest.cc index db7df465c..d1c03615f 100644 --- a/sddp/src/model/DescribeAccountDetailRequest.cc +++ b/sddp/src/model/DescribeAccountDetailRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeAccountDetailRequest; - -DescribeAccountDetailRequest::DescribeAccountDetailRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeAccountDetail") -{} - -DescribeAccountDetailRequest::~DescribeAccountDetailRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeAccountDetailRequest; + +DescribeAccountDetailRequest::DescribeAccountDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeAccountDetail") +{} + +DescribeAccountDetailRequest::~DescribeAccountDetailRequest() +{} + std::string DescribeAccountDetailRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeAccountDetailResult.cc b/sddp/src/model/DescribeAccountDetailResult.cc index 136477fbe..cd5b1df9e 100644 --- a/sddp/src/model/DescribeAccountDetailResult.cc +++ b/sddp/src/model/DescribeAccountDetailResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeAccountDetailResult::DescribeAccountDetailResult() : - ServiceResult() -{} - -DescribeAccountDetailResult::DescribeAccountDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAccountDetailResult::~DescribeAccountDetailResult() -{} - -void DescribeAccountDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeAccountDetailResult::DescribeAccountDetailResult() : + ServiceResult() +{} + +DescribeAccountDetailResult::DescribeAccountDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountDetailResult::~DescribeAccountDetailResult() +{} + +void DescribeAccountDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto accountNode = value["Account"]; if(!accountNode["Id"].isNull()) account_.id = std::stol(accountNode["Id"].asString()); @@ -103,9 +106,9 @@ void DescribeAccountDetailResult::parse(const std::string &payload) account_.eventCount.total.confirmCount = std::stol(totalNode["ConfirmCount"].asString()); if(!totalNode["ExcludeCount"].isNull()) account_.eventCount.total.excludeCount = std::stol(totalNode["ExcludeCount"].asString()); - -} - + +} + DescribeAccountDetailResult::Account DescribeAccountDetailResult::getAccount()const { return account_; diff --git a/sddp/src/model/DescribeAccountsRequest.cc b/sddp/src/model/DescribeAccountsRequest.cc index 581d3521d..5b76ac6fa 100644 --- a/sddp/src/model/DescribeAccountsRequest.cc +++ b/sddp/src/model/DescribeAccountsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeAccountsRequest; - -DescribeAccountsRequest::DescribeAccountsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeAccounts") -{} - -DescribeAccountsRequest::~DescribeAccountsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeAccounts") +{} + +DescribeAccountsRequest::~DescribeAccountsRequest() +{} + std::string DescribeAccountsRequest::getProductCode()const { return productCode_; diff --git a/sddp/src/model/DescribeAccountsResult.cc b/sddp/src/model/DescribeAccountsResult.cc index c1b7f90d0..df42ba673 100644 --- a/sddp/src/model/DescribeAccountsResult.cc +++ b/sddp/src/model/DescribeAccountsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeAccountsResult::DescribeAccountsResult() : - ServiceResult() -{} - -DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAccountsResult::~DescribeAccountsResult() -{} - -void DescribeAccountsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeAccountsResult::DescribeAccountsResult() : + ServiceResult() +{} + +DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountsResult::~DescribeAccountsResult() +{} + +void DescribeAccountsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Account"]; for (auto value : allItems) { @@ -100,9 +103,9 @@ void DescribeAccountsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeAccountsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeAuthAccountsRequest.cc b/sddp/src/model/DescribeAuthAccountsRequest.cc index b63cdcee4..147469f89 100644 --- a/sddp/src/model/DescribeAuthAccountsRequest.cc +++ b/sddp/src/model/DescribeAuthAccountsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeAuthAccountsRequest; - -DescribeAuthAccountsRequest::DescribeAuthAccountsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeAuthAccounts") -{} - -DescribeAuthAccountsRequest::~DescribeAuthAccountsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeAuthAccountsRequest; + +DescribeAuthAccountsRequest::DescribeAuthAccountsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeAuthAccounts") +{} + +DescribeAuthAccountsRequest::~DescribeAuthAccountsRequest() +{} + std::string DescribeAuthAccountsRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeAuthAccountsResult.cc b/sddp/src/model/DescribeAuthAccountsResult.cc index e8e561b9d..df39da86c 100644 --- a/sddp/src/model/DescribeAuthAccountsResult.cc +++ b/sddp/src/model/DescribeAuthAccountsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeAuthAccountsResult::DescribeAuthAccountsResult() : - ServiceResult() -{} - -DescribeAuthAccountsResult::DescribeAuthAccountsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAuthAccountsResult::~DescribeAuthAccountsResult() -{} - -void DescribeAuthAccountsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeAuthAccountsResult::DescribeAuthAccountsResult() : + ServiceResult() +{} + +DescribeAuthAccountsResult::DescribeAuthAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuthAccountsResult::~DescribeAuthAccountsResult() +{} + +void DescribeAuthAccountsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Account"]; for (auto value : allItems) { @@ -64,9 +67,9 @@ void DescribeAuthAccountsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeAuthAccountsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeCloudDatabasesRequest.cc b/sddp/src/model/DescribeCloudDatabasesRequest.cc index f062ad356..7ca4c0b19 100644 --- a/sddp/src/model/DescribeCloudDatabasesRequest.cc +++ b/sddp/src/model/DescribeCloudDatabasesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeCloudDatabasesRequest; - -DescribeCloudDatabasesRequest::DescribeCloudDatabasesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudDatabases") -{} - -DescribeCloudDatabasesRequest::~DescribeCloudDatabasesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeCloudDatabasesRequest; + +DescribeCloudDatabasesRequest::DescribeCloudDatabasesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudDatabases") +{} + +DescribeCloudDatabasesRequest::~DescribeCloudDatabasesRequest() +{} + std::string DescribeCloudDatabasesRequest::getInstanceId()const { return instanceId_; diff --git a/sddp/src/model/DescribeCloudDatabasesResult.cc b/sddp/src/model/DescribeCloudDatabasesResult.cc index d9d66034e..080661605 100644 --- a/sddp/src/model/DescribeCloudDatabasesResult.cc +++ b/sddp/src/model/DescribeCloudDatabasesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeCloudDatabasesResult::DescribeCloudDatabasesResult() : - ServiceResult() -{} - -DescribeCloudDatabasesResult::DescribeCloudDatabasesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCloudDatabasesResult::~DescribeCloudDatabasesResult() -{} - -void DescribeCloudDatabasesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeCloudDatabasesResult::DescribeCloudDatabasesResult() : + ServiceResult() +{} + +DescribeCloudDatabasesResult::DescribeCloudDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudDatabasesResult::~DescribeCloudDatabasesResult() +{} + +void DescribeCloudDatabasesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCloudDatabaseList = value["CloudDatabaseList"]["CloudDatabase"]; for (auto value : allCloudDatabaseList) { @@ -52,9 +55,9 @@ void DescribeCloudDatabasesResult::parse(const std::string &payload) cloudDatabaseListObject.instanceId = value["InstanceId"].asString(); cloudDatabaseList_.push_back(cloudDatabaseListObject); } - -} - + +} + std::vector DescribeCloudDatabasesResult::getCloudDatabaseList()const { return cloudDatabaseList_; diff --git a/sddp/src/model/DescribeCloudInstancesRequest.cc b/sddp/src/model/DescribeCloudInstancesRequest.cc index 4f0a10763..5bfecaac3 100644 --- a/sddp/src/model/DescribeCloudInstancesRequest.cc +++ b/sddp/src/model/DescribeCloudInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeCloudInstancesRequest; - -DescribeCloudInstancesRequest::DescribeCloudInstancesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudInstances") -{} - -DescribeCloudInstancesRequest::~DescribeCloudInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeCloudInstancesRequest; + +DescribeCloudInstancesRequest::DescribeCloudInstancesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeCloudInstances") +{} + +DescribeCloudInstancesRequest::~DescribeCloudInstancesRequest() +{} + std::string DescribeCloudInstancesRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeCloudInstancesResult.cc b/sddp/src/model/DescribeCloudInstancesResult.cc index c9f4c76c4..f6014a222 100644 --- a/sddp/src/model/DescribeCloudInstancesResult.cc +++ b/sddp/src/model/DescribeCloudInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeCloudInstancesResult::DescribeCloudInstancesResult() : - ServiceResult() -{} - -DescribeCloudInstancesResult::DescribeCloudInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCloudInstancesResult::~DescribeCloudInstancesResult() -{} - -void DescribeCloudInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeCloudInstancesResult::DescribeCloudInstancesResult() : + ServiceResult() +{} + +DescribeCloudInstancesResult::DescribeCloudInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudInstancesResult::~DescribeCloudInstancesResult() +{} + +void DescribeCloudInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCloudInstanceList = value["CloudInstanceList"]["CloudInstance"]; for (auto value : allCloudInstanceList) { @@ -52,9 +55,9 @@ void DescribeCloudInstancesResult::parse(const std::string &payload) cloudInstanceListObject.instanceId = value["InstanceId"].asString(); cloudInstanceList_.push_back(cloudInstanceListObject); } - -} - + +} + std::vector DescribeCloudInstancesResult::getCloudInstanceList()const { return cloudInstanceList_; diff --git a/sddp/src/model/DescribeColumnsRequest.cc b/sddp/src/model/DescribeColumnsRequest.cc index fa424f674..9594ae4a3 100644 --- a/sddp/src/model/DescribeColumnsRequest.cc +++ b/sddp/src/model/DescribeColumnsRequest.cc @@ -1,29 +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. - */ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeColumnsRequest; + +DescribeColumnsRequest::DescribeColumnsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeColumns") +{} + +DescribeColumnsRequest::~DescribeColumnsRequest() +{} + +std::string DescribeColumnsRequest::getProductCode()const +{ + return productCode_; +} -#include +void DescribeColumnsRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setCoreParameter("ProductCode", productCode); +} -using AlibabaCloud::Sddp::Model::DescribeColumnsRequest; +long DescribeColumnsRequest::getInstanceId()const +{ + return instanceId_; +} -DescribeColumnsRequest::DescribeColumnsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeColumns") -{} - -DescribeColumnsRequest::~DescribeColumnsRequest() -{} +void DescribeColumnsRequest::setInstanceId(long instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", std::to_string(instanceId)); +} std::string DescribeColumnsRequest::getSourceIp()const { diff --git a/sddp/src/model/DescribeColumnsResult.cc b/sddp/src/model/DescribeColumnsResult.cc index 025dc0c77..4481cd449 100644 --- a/sddp/src/model/DescribeColumnsResult.cc +++ b/sddp/src/model/DescribeColumnsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeColumnsResult::DescribeColumnsResult() : - ServiceResult() -{} - -DescribeColumnsResult::DescribeColumnsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeColumnsResult::~DescribeColumnsResult() -{} - -void DescribeColumnsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeColumnsResult::DescribeColumnsResult() : + ServiceResult() +{} + +DescribeColumnsResult::DescribeColumnsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeColumnsResult::~DescribeColumnsResult() +{} + +void DescribeColumnsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Column"]; for (auto value : allItems) { @@ -82,9 +85,9 @@ void DescribeColumnsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeColumnsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeConfigsRequest.cc b/sddp/src/model/DescribeConfigsRequest.cc index a292b8259..df18f3945 100644 --- a/sddp/src/model/DescribeConfigsRequest.cc +++ b/sddp/src/model/DescribeConfigsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeConfigsRequest; - -DescribeConfigsRequest::DescribeConfigsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeConfigs") -{} - -DescribeConfigsRequest::~DescribeConfigsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeConfigsRequest; + +DescribeConfigsRequest::DescribeConfigsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeConfigs") +{} + +DescribeConfigsRequest::~DescribeConfigsRequest() +{} + std::string DescribeConfigsRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeConfigsResult.cc b/sddp/src/model/DescribeConfigsResult.cc index 6e5042a20..586616c97 100644 --- a/sddp/src/model/DescribeConfigsResult.cc +++ b/sddp/src/model/DescribeConfigsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeConfigsResult::DescribeConfigsResult() : - ServiceResult() -{} - -DescribeConfigsResult::DescribeConfigsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeConfigsResult::~DescribeConfigsResult() -{} - -void DescribeConfigsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeConfigsResult::DescribeConfigsResult() : + ServiceResult() +{} + +DescribeConfigsResult::DescribeConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigsResult::~DescribeConfigsResult() +{} + +void DescribeConfigsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allConfigList = value["ConfigList"]["Config"]; for (auto value : allConfigList) { @@ -56,9 +59,9 @@ void DescribeConfigsResult::parse(const std::string &payload) configListObject.defaultValue = value["DefaultValue"].asString(); configList_.push_back(configListObject); } - -} - + +} + std::vector DescribeConfigsResult::getConfigList()const { return configList_; diff --git a/sddp/src/model/DescribeDataAssetsRequest.cc b/sddp/src/model/DescribeDataAssetsRequest.cc index 899ac2119..a64394c7d 100644 --- a/sddp/src/model/DescribeDataAssetsRequest.cc +++ b/sddp/src/model/DescribeDataAssetsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataAssetsRequest; - -DescribeDataAssetsRequest::DescribeDataAssetsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDataAssets") -{} - -DescribeDataAssetsRequest::~DescribeDataAssetsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataAssetsRequest; + +DescribeDataAssetsRequest::DescribeDataAssetsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataAssets") +{} + +DescribeDataAssetsRequest::~DescribeDataAssetsRequest() +{} + int DescribeDataAssetsRequest::getRangeId()const { return rangeId_; diff --git a/sddp/src/model/DescribeDataAssetsResult.cc b/sddp/src/model/DescribeDataAssetsResult.cc index 992b0cd2e..6827a91aa 100644 --- a/sddp/src/model/DescribeDataAssetsResult.cc +++ b/sddp/src/model/DescribeDataAssetsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDataAssetsResult::DescribeDataAssetsResult() : - ServiceResult() -{} - -DescribeDataAssetsResult::DescribeDataAssetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataAssetsResult::~DescribeDataAssetsResult() -{} - -void DescribeDataAssetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataAssetsResult::DescribeDataAssetsResult() : + ServiceResult() +{} + +DescribeDataAssetsResult::DescribeDataAssetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataAssetsResult::~DescribeDataAssetsResult() +{} + +void DescribeDataAssetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Asset"]; for (auto value : allItems) { @@ -92,9 +95,9 @@ void DescribeDataAssetsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeDataAssetsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeDataHubConnectorsRequest.cc b/sddp/src/model/DescribeDataHubConnectorsRequest.cc index ff21280c3..75991002a 100644 --- a/sddp/src/model/DescribeDataHubConnectorsRequest.cc +++ b/sddp/src/model/DescribeDataHubConnectorsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubConnectorsRequest; - -DescribeDataHubConnectorsRequest::DescribeDataHubConnectorsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubConnectors") -{} - -DescribeDataHubConnectorsRequest::~DescribeDataHubConnectorsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubConnectorsRequest; + +DescribeDataHubConnectorsRequest::DescribeDataHubConnectorsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubConnectors") +{} + +DescribeDataHubConnectorsRequest::~DescribeDataHubConnectorsRequest() +{} + long DescribeDataHubConnectorsRequest::getTopicId()const { return topicId_; diff --git a/sddp/src/model/DescribeDataHubConnectorsResult.cc b/sddp/src/model/DescribeDataHubConnectorsResult.cc index 08bafd74f..715d48644 100644 --- a/sddp/src/model/DescribeDataHubConnectorsResult.cc +++ b/sddp/src/model/DescribeDataHubConnectorsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult() : - ServiceResult() -{} - -DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataHubConnectorsResult::~DescribeDataHubConnectorsResult() -{} - -void DescribeDataHubConnectorsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult() : + ServiceResult() +{} + +DescribeDataHubConnectorsResult::DescribeDataHubConnectorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubConnectorsResult::~DescribeDataHubConnectorsResult() +{} + +void DescribeDataHubConnectorsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Connector"]; for (auto value : allItems) { @@ -74,9 +77,9 @@ void DescribeDataHubConnectorsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeDataHubConnectorsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeDataHubProjectsRequest.cc b/sddp/src/model/DescribeDataHubProjectsRequest.cc index 772812821..99c6fec6b 100644 --- a/sddp/src/model/DescribeDataHubProjectsRequest.cc +++ b/sddp/src/model/DescribeDataHubProjectsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubProjectsRequest; - -DescribeDataHubProjectsRequest::DescribeDataHubProjectsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubProjects") -{} - -DescribeDataHubProjectsRequest::~DescribeDataHubProjectsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubProjectsRequest; + +DescribeDataHubProjectsRequest::DescribeDataHubProjectsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubProjects") +{} + +DescribeDataHubProjectsRequest::~DescribeDataHubProjectsRequest() +{} + std::string DescribeDataHubProjectsRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeDataHubProjectsResult.cc b/sddp/src/model/DescribeDataHubProjectsResult.cc index 77ff2bad6..b5a685932 100644 --- a/sddp/src/model/DescribeDataHubProjectsResult.cc +++ b/sddp/src/model/DescribeDataHubProjectsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDataHubProjectsResult::DescribeDataHubProjectsResult() : - ServiceResult() -{} - -DescribeDataHubProjectsResult::DescribeDataHubProjectsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataHubProjectsResult::~DescribeDataHubProjectsResult() -{} - -void DescribeDataHubProjectsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubProjectsResult::DescribeDataHubProjectsResult() : + ServiceResult() +{} + +DescribeDataHubProjectsResult::DescribeDataHubProjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubProjectsResult::~DescribeDataHubProjectsResult() +{} + +void DescribeDataHubProjectsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Project"]; for (auto value : allItems) { @@ -72,9 +75,9 @@ void DescribeDataHubProjectsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeDataHubProjectsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeDataHubSubscriptionsRequest.cc b/sddp/src/model/DescribeDataHubSubscriptionsRequest.cc index 256d75397..639db7454 100644 --- a/sddp/src/model/DescribeDataHubSubscriptionsRequest.cc +++ b/sddp/src/model/DescribeDataHubSubscriptionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubSubscriptionsRequest; - -DescribeDataHubSubscriptionsRequest::DescribeDataHubSubscriptionsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubSubscriptions") -{} - -DescribeDataHubSubscriptionsRequest::~DescribeDataHubSubscriptionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubSubscriptionsRequest; + +DescribeDataHubSubscriptionsRequest::DescribeDataHubSubscriptionsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubSubscriptions") +{} + +DescribeDataHubSubscriptionsRequest::~DescribeDataHubSubscriptionsRequest() +{} + long DescribeDataHubSubscriptionsRequest::getTopicId()const { return topicId_; diff --git a/sddp/src/model/DescribeDataHubSubscriptionsResult.cc b/sddp/src/model/DescribeDataHubSubscriptionsResult.cc index d1d854ffc..cf751bd8b 100644 --- a/sddp/src/model/DescribeDataHubSubscriptionsResult.cc +++ b/sddp/src/model/DescribeDataHubSubscriptionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult() : - ServiceResult() -{} - -DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataHubSubscriptionsResult::~DescribeDataHubSubscriptionsResult() -{} - -void DescribeDataHubSubscriptionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult() : + ServiceResult() +{} + +DescribeDataHubSubscriptionsResult::DescribeDataHubSubscriptionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubSubscriptionsResult::~DescribeDataHubSubscriptionsResult() +{} + +void DescribeDataHubSubscriptionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Subscription"]; for (auto value : allItems) { @@ -76,9 +79,9 @@ void DescribeDataHubSubscriptionsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeDataHubSubscriptionsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeDataHubTopicsRequest.cc b/sddp/src/model/DescribeDataHubTopicsRequest.cc index dc7467b2c..112e6723a 100644 --- a/sddp/src/model/DescribeDataHubTopicsRequest.cc +++ b/sddp/src/model/DescribeDataHubTopicsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubTopicsRequest; - -DescribeDataHubTopicsRequest::DescribeDataHubTopicsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubTopics") -{} - -DescribeDataHubTopicsRequest::~DescribeDataHubTopicsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataHubTopicsRequest; + +DescribeDataHubTopicsRequest::DescribeDataHubTopicsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubTopics") +{} + +DescribeDataHubTopicsRequest::~DescribeDataHubTopicsRequest() +{} + std::string DescribeDataHubTopicsRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeDataHubTopicsResult.cc b/sddp/src/model/DescribeDataHubTopicsResult.cc index b7efa6380..c6ecf47e5 100644 --- a/sddp/src/model/DescribeDataHubTopicsResult.cc +++ b/sddp/src/model/DescribeDataHubTopicsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDataHubTopicsResult::DescribeDataHubTopicsResult() : - ServiceResult() -{} - -DescribeDataHubTopicsResult::DescribeDataHubTopicsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataHubTopicsResult::~DescribeDataHubTopicsResult() -{} - -void DescribeDataHubTopicsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataHubTopicsResult::DescribeDataHubTopicsResult() : + ServiceResult() +{} + +DescribeDataHubTopicsResult::DescribeDataHubTopicsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataHubTopicsResult::~DescribeDataHubTopicsResult() +{} + +void DescribeDataHubTopicsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Topic"]; for (auto value : allItems) { @@ -70,9 +73,9 @@ void DescribeDataHubTopicsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeDataHubTopicsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeDataLimitDetailRequest.cc b/sddp/src/model/DescribeDataLimitDetailRequest.cc index 568009515..d327dbcec 100644 --- a/sddp/src/model/DescribeDataLimitDetailRequest.cc +++ b/sddp/src/model/DescribeDataLimitDetailRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataLimitDetailRequest; - -DescribeDataLimitDetailRequest::DescribeDataLimitDetailRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimitDetail") -{} - -DescribeDataLimitDetailRequest::~DescribeDataLimitDetailRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataLimitDetailRequest; + +DescribeDataLimitDetailRequest::DescribeDataLimitDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimitDetail") +{} + +DescribeDataLimitDetailRequest::~DescribeDataLimitDetailRequest() +{} + std::string DescribeDataLimitDetailRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeDataLimitDetailResult.cc b/sddp/src/model/DescribeDataLimitDetailResult.cc index 3ef5b0ce5..138d42151 100644 --- a/sddp/src/model/DescribeDataLimitDetailResult.cc +++ b/sddp/src/model/DescribeDataLimitDetailResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDataLimitDetailResult::DescribeDataLimitDetailResult() : - ServiceResult() -{} - -DescribeDataLimitDetailResult::DescribeDataLimitDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataLimitDetailResult::~DescribeDataLimitDetailResult() -{} - -void DescribeDataLimitDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataLimitDetailResult::DescribeDataLimitDetailResult() : + ServiceResult() +{} + +DescribeDataLimitDetailResult::DescribeDataLimitDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataLimitDetailResult::~DescribeDataLimitDetailResult() +{} + +void DescribeDataLimitDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto dataLimitNode = value["DataLimit"]; if(!dataLimitNode["RegionId"].isNull()) dataLimit_.regionId = dataLimitNode["RegionId"].asString(); @@ -51,8 +54,6 @@ void DescribeDataLimitDetailResult::parse(const std::string &payload) dataLimit_.id = std::stol(dataLimitNode["Id"].asString()); if(!dataLimitNode["UserName"].isNull()) dataLimit_.userName = dataLimitNode["UserName"].asString(); - if(!dataLimitNode["Password"].isNull()) - dataLimit_.password = dataLimitNode["Password"].asString(); if(!dataLimitNode["GmtCreate"].isNull()) dataLimit_.gmtCreate = std::stol(dataLimitNode["GmtCreate"].asString()); if(!dataLimitNode["Connector"].isNull()) @@ -61,9 +62,13 @@ void DescribeDataLimitDetailResult::parse(const std::string &payload) dataLimit_.checkStatus = std::stoi(dataLimitNode["CheckStatus"].asString()); if(!dataLimitNode["CheckStatusName"].isNull()) dataLimit_.checkStatusName = dataLimitNode["CheckStatusName"].asString(); - -} - + if(!dataLimitNode["ResourceType"].isNull()) + dataLimit_.resourceType = std::stol(dataLimitNode["ResourceType"].asString()); + if(!dataLimitNode["ResourceTypeCode"].isNull()) + dataLimit_.resourceTypeCode = dataLimitNode["ResourceTypeCode"].asString(); + +} + DescribeDataLimitDetailResult::DataLimit DescribeDataLimitDetailResult::getDataLimit()const { return dataLimit_; diff --git a/sddp/src/model/DescribeDataLimitsRequest.cc b/sddp/src/model/DescribeDataLimitsRequest.cc index 56a48e824..6caa73525 100644 --- a/sddp/src/model/DescribeDataLimitsRequest.cc +++ b/sddp/src/model/DescribeDataLimitsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataLimitsRequest; - -DescribeDataLimitsRequest::DescribeDataLimitsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimits") -{} - -DescribeDataLimitsRequest::~DescribeDataLimitsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDataLimitsRequest; + +DescribeDataLimitsRequest::DescribeDataLimitsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimits") +{} + +DescribeDataLimitsRequest::~DescribeDataLimitsRequest() +{} + std::string DescribeDataLimitsRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeDataLimitsResult.cc b/sddp/src/model/DescribeDataLimitsResult.cc index 97e8da4e1..c839993d3 100644 --- a/sddp/src/model/DescribeDataLimitsResult.cc +++ b/sddp/src/model/DescribeDataLimitsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDataLimitsResult::DescribeDataLimitsResult() : - ServiceResult() -{} - -DescribeDataLimitsResult::DescribeDataLimitsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataLimitsResult::~DescribeDataLimitsResult() -{} - -void DescribeDataLimitsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDataLimitsResult::DescribeDataLimitsResult() : + ServiceResult() +{} + +DescribeDataLimitsResult::DescribeDataLimitsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataLimitsResult::~DescribeDataLimitsResult() +{} + +void DescribeDataLimitsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allDataLimitList = value["DataLimitList"]["DataLimit"]; for (auto value : allDataLimitList) { @@ -62,11 +65,15 @@ void DescribeDataLimitsResult::parse(const std::string &payload) dataLimitListObject.checkStatus = std::stoi(value["CheckStatus"].asString()); if(!value["CheckStatusName"].isNull()) dataLimitListObject.checkStatusName = value["CheckStatusName"].asString(); + if(!value["ResourceType"].isNull()) + dataLimitListObject.resourceType = std::stol(value["ResourceType"].asString()); + if(!value["ResourceTypeCode"].isNull()) + dataLimitListObject.resourceTypeCode = value["ResourceTypeCode"].asString(); dataLimitList_.push_back(dataLimitListObject); } - -} - + +} + std::vector DescribeDataLimitsResult::getDataLimitList()const { return dataLimitList_; diff --git a/sddp/src/model/DescribeDepartsRequest.cc b/sddp/src/model/DescribeDepartsRequest.cc index 1379d49b1..344f2a071 100644 --- a/sddp/src/model/DescribeDepartsRequest.cc +++ b/sddp/src/model/DescribeDepartsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDepartsRequest; - -DescribeDepartsRequest::DescribeDepartsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeDeparts") -{} - -DescribeDepartsRequest::~DescribeDepartsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeDepartsRequest; + +DescribeDepartsRequest::DescribeDepartsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeDeparts") +{} + +DescribeDepartsRequest::~DescribeDepartsRequest() +{} + std::string DescribeDepartsRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeDepartsResult.cc b/sddp/src/model/DescribeDepartsResult.cc index 2bc465d68..75d220ca2 100644 --- a/sddp/src/model/DescribeDepartsResult.cc +++ b/sddp/src/model/DescribeDepartsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeDepartsResult::DescribeDepartsResult() : - ServiceResult() -{} - -DescribeDepartsResult::DescribeDepartsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDepartsResult::~DescribeDepartsResult() -{} - -void DescribeDepartsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeDepartsResult::DescribeDepartsResult() : + ServiceResult() +{} + +DescribeDepartsResult::DescribeDepartsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDepartsResult::~DescribeDepartsResult() +{} + +void DescribeDepartsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Depart"]; for (auto value : allItems) { @@ -66,9 +69,9 @@ void DescribeDepartsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeDepartsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeEventDetailRequest.cc b/sddp/src/model/DescribeEventDetailRequest.cc index 2b9ba1c51..98b6d5efa 100644 --- a/sddp/src/model/DescribeEventDetailRequest.cc +++ b/sddp/src/model/DescribeEventDetailRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeEventDetailRequest; - -DescribeEventDetailRequest::DescribeEventDetailRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeEventDetail") -{} - -DescribeEventDetailRequest::~DescribeEventDetailRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeEventDetailRequest; + +DescribeEventDetailRequest::DescribeEventDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeEventDetail") +{} + +DescribeEventDetailRequest::~DescribeEventDetailRequest() +{} + std::string DescribeEventDetailRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeEventDetailResult.cc b/sddp/src/model/DescribeEventDetailResult.cc index 635f1f98d..51d10a945 100644 --- a/sddp/src/model/DescribeEventDetailResult.cc +++ b/sddp/src/model/DescribeEventDetailResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeEventDetailResult::DescribeEventDetailResult() : - ServiceResult() -{} - -DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeEventDetailResult::~DescribeEventDetailResult() -{} - -void DescribeEventDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeEventDetailResult::DescribeEventDetailResult() : + ServiceResult() +{} + +DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventDetailResult::~DescribeEventDetailResult() +{} + +void DescribeEventDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto eventNode = value["Event"]; if(!eventNode["Id"].isNull()) event_.id = std::stol(eventNode["Id"].asString()); @@ -113,9 +116,19 @@ void DescribeEventDetailResult::parse(const std::string &payload) chartItemObject.data.y = dataNode["Y"].asString(); event_.detail.chart.push_back(chartItemObject); } - -} - + auto allResourceInfo = value["ResourceInfo"]["ResourceInfoItem"]; + for (auto value : allResourceInfo) + { + Event::Detail::ResourceInfoItem resourceInfoItemObject; + if(!value["Label"].isNull()) + resourceInfoItemObject.label = value["Label"].asString(); + if(!value["Value"].isNull()) + resourceInfoItemObject.value = value["Value"].asString(); + event_.detail.resourceInfo.push_back(resourceInfoItemObject); + } + +} + DescribeEventDetailResult::Event DescribeEventDetailResult::getEvent()const { return event_; diff --git a/sddp/src/model/DescribeEventTypesRequest.cc b/sddp/src/model/DescribeEventTypesRequest.cc index df8b78af2..6fa8c7b07 100644 --- a/sddp/src/model/DescribeEventTypesRequest.cc +++ b/sddp/src/model/DescribeEventTypesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeEventTypesRequest; - -DescribeEventTypesRequest::DescribeEventTypesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeEventTypes") -{} - -DescribeEventTypesRequest::~DescribeEventTypesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeEventTypesRequest; + +DescribeEventTypesRequest::DescribeEventTypesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeEventTypes") +{} + +DescribeEventTypesRequest::~DescribeEventTypesRequest() +{} + std::string DescribeEventTypesRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeEventTypesResult.cc b/sddp/src/model/DescribeEventTypesResult.cc index 262aa5e46..b3f075cab 100644 --- a/sddp/src/model/DescribeEventTypesResult.cc +++ b/sddp/src/model/DescribeEventTypesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeEventTypesResult::DescribeEventTypesResult() : - ServiceResult() -{} - -DescribeEventTypesResult::DescribeEventTypesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeEventTypesResult::~DescribeEventTypesResult() -{} - -void DescribeEventTypesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeEventTypesResult::DescribeEventTypesResult() : + ServiceResult() +{} + +DescribeEventTypesResult::DescribeEventTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventTypesResult::~DescribeEventTypesResult() +{} + +void DescribeEventTypesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allEventTypeList = value["EventTypeList"]["EventType"]; for (auto value : allEventTypeList) { @@ -70,9 +73,9 @@ void DescribeEventTypesResult::parse(const std::string &payload) } eventTypeList_.push_back(eventTypeListObject); } - -} - + +} + std::vector DescribeEventTypesResult::getEventTypeList()const { return eventTypeList_; diff --git a/sddp/src/model/DescribeEventsRequest.cc b/sddp/src/model/DescribeEventsRequest.cc index 251475f4b..fc0a704fb 100644 --- a/sddp/src/model/DescribeEventsRequest.cc +++ b/sddp/src/model/DescribeEventsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeEventsRequest; - -DescribeEventsRequest::DescribeEventsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeEvents") -{} - -DescribeEventsRequest::~DescribeEventsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeEventsRequest; + +DescribeEventsRequest::DescribeEventsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeEvents") +{} + +DescribeEventsRequest::~DescribeEventsRequest() +{} + std::string DescribeEventsRequest::getProductCode()const { return productCode_; diff --git a/sddp/src/model/DescribeEventsResult.cc b/sddp/src/model/DescribeEventsResult.cc index 3a90e7432..95b059e51 100644 --- a/sddp/src/model/DescribeEventsResult.cc +++ b/sddp/src/model/DescribeEventsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeEventsResult::DescribeEventsResult() : - ServiceResult() -{} - -DescribeEventsResult::DescribeEventsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeEventsResult::~DescribeEventsResult() -{} - -void DescribeEventsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeEventsResult::DescribeEventsResult() : + ServiceResult() +{} + +DescribeEventsResult::DescribeEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventsResult::~DescribeEventsResult() +{} + +void DescribeEventsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Event"]; for (auto value : allItems) { @@ -94,9 +97,9 @@ void DescribeEventsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeEventsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeInstancesRequest.cc b/sddp/src/model/DescribeInstancesRequest.cc index 5d57970d6..3d45e3d25 100644 --- a/sddp/src/model/DescribeInstancesRequest.cc +++ b/sddp/src/model/DescribeInstancesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeInstancesRequest; - -DescribeInstancesRequest::DescribeInstancesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeInstances") -{} - -DescribeInstancesRequest::~DescribeInstancesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeInstancesRequest; + +DescribeInstancesRequest::DescribeInstancesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeInstances") +{} + +DescribeInstancesRequest::~DescribeInstancesRequest() +{} + std::string DescribeInstancesRequest::getProductCode()const { return productCode_; diff --git a/sddp/src/model/DescribeInstancesResult.cc b/sddp/src/model/DescribeInstancesResult.cc index 7776fe1e5..b94c4a8c9 100644 --- a/sddp/src/model/DescribeInstancesResult.cc +++ b/sddp/src/model/DescribeInstancesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeInstancesResult::DescribeInstancesResult() : - ServiceResult() -{} - -DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInstancesResult::~DescribeInstancesResult() -{} - -void DescribeInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeInstancesResult::DescribeInstancesResult() : + ServiceResult() +{} + +DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancesResult::~DescribeInstancesResult() +{} + +void DescribeInstancesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Instance"]; for (auto value : allItems) { @@ -86,9 +89,9 @@ void DescribeInstancesResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeInstancesResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeOssObjectDetailRequest.cc b/sddp/src/model/DescribeOssObjectDetailRequest.cc index 588879217..29ccdb50c 100644 --- a/sddp/src/model/DescribeOssObjectDetailRequest.cc +++ b/sddp/src/model/DescribeOssObjectDetailRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeOssObjectDetailRequest; - -DescribeOssObjectDetailRequest::DescribeOssObjectDetailRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjectDetail") -{} - -DescribeOssObjectDetailRequest::~DescribeOssObjectDetailRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeOssObjectDetailRequest; + +DescribeOssObjectDetailRequest::DescribeOssObjectDetailRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjectDetail") +{} + +DescribeOssObjectDetailRequest::~DescribeOssObjectDetailRequest() +{} + std::string DescribeOssObjectDetailRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeOssObjectDetailResult.cc b/sddp/src/model/DescribeOssObjectDetailResult.cc index 8deca0ff7..0e9d6809a 100644 --- a/sddp/src/model/DescribeOssObjectDetailResult.cc +++ b/sddp/src/model/DescribeOssObjectDetailResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeOssObjectDetailResult::DescribeOssObjectDetailResult() : - ServiceResult() -{} - -DescribeOssObjectDetailResult::DescribeOssObjectDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeOssObjectDetailResult::~DescribeOssObjectDetailResult() -{} - -void DescribeOssObjectDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeOssObjectDetailResult::DescribeOssObjectDetailResult() : + ServiceResult() +{} + +DescribeOssObjectDetailResult::DescribeOssObjectDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssObjectDetailResult::~DescribeOssObjectDetailResult() +{} + +void DescribeOssObjectDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto ossObjectDetailNode = value["OssObjectDetail"]; if(!ossObjectDetailNode["Name"].isNull()) ossObjectDetail_.name = ossObjectDetailNode["Name"].asString(); @@ -61,9 +64,9 @@ void DescribeOssObjectDetailResult::parse(const std::string &payload) ruleObject.count = std::stol(value["Count"].asString()); ossObjectDetail_.ruleList.push_back(ruleObject); } - -} - + +} + DescribeOssObjectDetailResult::OssObjectDetail DescribeOssObjectDetailResult::getOssObjectDetail()const { return ossObjectDetail_; diff --git a/sddp/src/model/DescribeOssObjectsRequest.cc b/sddp/src/model/DescribeOssObjectsRequest.cc index 5fd92a9dc..ce5ee8e97 100644 --- a/sddp/src/model/DescribeOssObjectsRequest.cc +++ b/sddp/src/model/DescribeOssObjectsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeOssObjectsRequest; - -DescribeOssObjectsRequest::DescribeOssObjectsRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjects") -{} - -DescribeOssObjectsRequest::~DescribeOssObjectsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeOssObjectsRequest; + +DescribeOssObjectsRequest::DescribeOssObjectsRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjects") +{} + +DescribeOssObjectsRequest::~DescribeOssObjectsRequest() +{} + std::string DescribeOssObjectsRequest::getInstanceId()const { return instanceId_; diff --git a/sddp/src/model/DescribeOssObjectsResult.cc b/sddp/src/model/DescribeOssObjectsResult.cc index e3c29914b..e81219037 100644 --- a/sddp/src/model/DescribeOssObjectsResult.cc +++ b/sddp/src/model/DescribeOssObjectsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeOssObjectsResult::DescribeOssObjectsResult() : - ServiceResult() -{} - -DescribeOssObjectsResult::DescribeOssObjectsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeOssObjectsResult::~DescribeOssObjectsResult() -{} - -void DescribeOssObjectsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeOssObjectsResult::DescribeOssObjectsResult() : + ServiceResult() +{} + +DescribeOssObjectsResult::DescribeOssObjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssObjectsResult::~DescribeOssObjectsResult() +{} + +void DescribeOssObjectsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Column"]; for (auto value : allItems) { @@ -68,9 +71,9 @@ void DescribeOssObjectsResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeOssObjectsResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribePackagesRequest.cc b/sddp/src/model/DescribePackagesRequest.cc index d57e25718..ff170cc4e 100644 --- a/sddp/src/model/DescribePackagesRequest.cc +++ b/sddp/src/model/DescribePackagesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribePackagesRequest; - -DescribePackagesRequest::DescribePackagesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribePackages") -{} - -DescribePackagesRequest::~DescribePackagesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribePackagesRequest; + +DescribePackagesRequest::DescribePackagesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribePackages") +{} + +DescribePackagesRequest::~DescribePackagesRequest() +{} + long DescribePackagesRequest::getInstanceId()const { return instanceId_; diff --git a/sddp/src/model/DescribePackagesResult.cc b/sddp/src/model/DescribePackagesResult.cc index a4a465f40..c13ed9de6 100644 --- a/sddp/src/model/DescribePackagesResult.cc +++ b/sddp/src/model/DescribePackagesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribePackagesResult::DescribePackagesResult() : - ServiceResult() -{} - -DescribePackagesResult::DescribePackagesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePackagesResult::~DescribePackagesResult() -{} - -void DescribePackagesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribePackagesResult::DescribePackagesResult() : + ServiceResult() +{} + +DescribePackagesResult::DescribePackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePackagesResult::~DescribePackagesResult() +{} + +void DescribePackagesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Package"]; for (auto value : allItems) { @@ -74,9 +77,9 @@ void DescribePackagesResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribePackagesResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribePrivilegesRequest.cc b/sddp/src/model/DescribePrivilegesRequest.cc index 54e4c139f..19d2b904b 100644 --- a/sddp/src/model/DescribePrivilegesRequest.cc +++ b/sddp/src/model/DescribePrivilegesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribePrivilegesRequest; - -DescribePrivilegesRequest::DescribePrivilegesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribePrivileges") -{} - -DescribePrivilegesRequest::~DescribePrivilegesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribePrivilegesRequest; + +DescribePrivilegesRequest::DescribePrivilegesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribePrivileges") +{} + +DescribePrivilegesRequest::~DescribePrivilegesRequest() +{} + long DescribePrivilegesRequest::getAccountId()const { return accountId_; diff --git a/sddp/src/model/DescribePrivilegesResult.cc b/sddp/src/model/DescribePrivilegesResult.cc index e2120dcca..f8c207e99 100644 --- a/sddp/src/model/DescribePrivilegesResult.cc +++ b/sddp/src/model/DescribePrivilegesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribePrivilegesResult::DescribePrivilegesResult() : - ServiceResult() -{} - -DescribePrivilegesResult::DescribePrivilegesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePrivilegesResult::~DescribePrivilegesResult() -{} - -void DescribePrivilegesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribePrivilegesResult::DescribePrivilegesResult() : + ServiceResult() +{} + +DescribePrivilegesResult::DescribePrivilegesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePrivilegesResult::~DescribePrivilegesResult() +{} + +void DescribePrivilegesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Privilege"]; for (auto value : allItems) { @@ -90,9 +93,9 @@ void DescribePrivilegesResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribePrivilegesResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeRulesRequest.cc b/sddp/src/model/DescribeRulesRequest.cc index 1c14af25a..519d0eac5 100644 --- a/sddp/src/model/DescribeRulesRequest.cc +++ b/sddp/src/model/DescribeRulesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeRulesRequest; - -DescribeRulesRequest::DescribeRulesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeRules") -{} - -DescribeRulesRequest::~DescribeRulesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeRulesRequest; + +DescribeRulesRequest::DescribeRulesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeRules") +{} + +DescribeRulesRequest::~DescribeRulesRequest() +{} + std::string DescribeRulesRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeRulesResult.cc b/sddp/src/model/DescribeRulesResult.cc index cbd98845f..61ed824c9 100644 --- a/sddp/src/model/DescribeRulesResult.cc +++ b/sddp/src/model/DescribeRulesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeRulesResult::DescribeRulesResult() : - ServiceResult() -{} - -DescribeRulesResult::DescribeRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRulesResult::~DescribeRulesResult() -{} - -void DescribeRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeRulesResult::DescribeRulesResult() : + ServiceResult() +{} + +DescribeRulesResult::DescribeRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRulesResult::~DescribeRulesResult() +{} + +void DescribeRulesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Rule"]; for (auto value : allItems) { @@ -84,9 +87,9 @@ void DescribeRulesResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeRulesResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeTablesRequest.cc b/sddp/src/model/DescribeTablesRequest.cc index fcee40691..becd720e4 100644 --- a/sddp/src/model/DescribeTablesRequest.cc +++ b/sddp/src/model/DescribeTablesRequest.cc @@ -1,29 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeTablesRequest; + +DescribeTablesRequest::DescribeTablesRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeTables") +{} + +DescribeTablesRequest::~DescribeTablesRequest() +{} + +std::string DescribeTablesRequest::getProductCode()const +{ + return productCode_; +} -#include - -using AlibabaCloud::Sddp::Model::DescribeTablesRequest; - -DescribeTablesRequest::DescribeTablesRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeTables") -{} - -DescribeTablesRequest::~DescribeTablesRequest() -{} +void DescribeTablesRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setCoreParameter("ProductCode", productCode); +} long DescribeTablesRequest::getProductId()const { diff --git a/sddp/src/model/DescribeTablesResult.cc b/sddp/src/model/DescribeTablesResult.cc index 668f1381b..adc1f9cc2 100644 --- a/sddp/src/model/DescribeTablesResult.cc +++ b/sddp/src/model/DescribeTablesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeTablesResult::DescribeTablesResult() : - ServiceResult() -{} - -DescribeTablesResult::DescribeTablesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTablesResult::~DescribeTablesResult() -{} - -void DescribeTablesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeTablesResult::DescribeTablesResult() : + ServiceResult() +{} + +DescribeTablesResult::DescribeTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTablesResult::~DescribeTablesResult() +{} + +void DescribeTablesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Table"]; for (auto value : allItems) { @@ -80,9 +83,9 @@ void DescribeTablesResult::parse(const std::string &payload) currentPage_ = std::stoi(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - + +} + int DescribeTablesResult::getTotalCount()const { return totalCount_; diff --git a/sddp/src/model/DescribeUserStatusRequest.cc b/sddp/src/model/DescribeUserStatusRequest.cc index 01f37a44b..dede2a1d6 100644 --- a/sddp/src/model/DescribeUserStatusRequest.cc +++ b/sddp/src/model/DescribeUserStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::DescribeUserStatusRequest; - -DescribeUserStatusRequest::DescribeUserStatusRequest() : - RpcServiceRequest("sddp", "2019-01-03", "DescribeUserStatus") -{} - -DescribeUserStatusRequest::~DescribeUserStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::DescribeUserStatusRequest; + +DescribeUserStatusRequest::DescribeUserStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "DescribeUserStatus") +{} + +DescribeUserStatusRequest::~DescribeUserStatusRequest() +{} + std::string DescribeUserStatusRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/DescribeUserStatusResult.cc b/sddp/src/model/DescribeUserStatusResult.cc index 7349bdd1d..c0734d7cd 100644 --- a/sddp/src/model/DescribeUserStatusResult.cc +++ b/sddp/src/model/DescribeUserStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -DescribeUserStatusResult::DescribeUserStatusResult() : - ServiceResult() -{} - -DescribeUserStatusResult::DescribeUserStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeUserStatusResult::~DescribeUserStatusResult() -{} - -void DescribeUserStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +DescribeUserStatusResult::DescribeUserStatusResult() : + ServiceResult() +{} + +DescribeUserStatusResult::DescribeUserStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserStatusResult::~DescribeUserStatusResult() +{} + +void DescribeUserStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto userStatusNode = value["UserStatus"]; if(!userStatusNode["Authed"].isNull()) userStatus_.authed = userStatusNode["Authed"].asString() == "true"; @@ -53,9 +56,27 @@ void DescribeUserStatusResult::parse(const std::string &payload) userStatus_.rdsSet = userStatusNode["RdsSet"].asString() == "true"; if(!userStatusNode["AccessKeyId"].isNull()) userStatus_.accessKeyId = userStatusNode["AccessKeyId"].asString(); - -} - + if(!userStatusNode["Trail"].isNull()) + userStatus_.trail = userStatusNode["Trail"].asString() == "true"; + if(!userStatusNode["InstanceStatus"].isNull()) + userStatus_.instanceStatus = std::stoi(userStatusNode["InstanceStatus"].asString()); + if(!userStatusNode["InstanceId"].isNull()) + userStatus_.instanceId = userStatusNode["InstanceId"].asString(); + if(!userStatusNode["RemainDays"].isNull()) + userStatus_.remainDays = std::stoi(userStatusNode["RemainDays"].asString()); + if(!userStatusNode["RenewStatus"].isNull()) + userStatus_.renewStatus = userStatusNode["RenewStatus"].asString() == "true"; + if(!userStatusNode["InstanceNum"].isNull()) + userStatus_.instanceNum = std::stoi(userStatusNode["InstanceNum"].asString()); + if(!userStatusNode["UseInstanceNum"].isNull()) + userStatus_.useInstanceNum = std::stoi(userStatusNode["UseInstanceNum"].asString()); + if(!userStatusNode["OssSize"].isNull()) + userStatus_.ossSize = std::stol(userStatusNode["OssSize"].asString()); + if(!userStatusNode["UseOssSize"].isNull()) + userStatus_.useOssSize = std::stol(userStatusNode["UseOssSize"].asString()); + +} + DescribeUserStatusResult::UserStatus DescribeUserStatusResult::getUserStatus()const { return userStatus_; diff --git a/sddp/src/model/ModifyDataLimitRequest.cc b/sddp/src/model/ModifyDataLimitRequest.cc index c9a7e0450..a71b65e78 100644 --- a/sddp/src/model/ModifyDataLimitRequest.cc +++ b/sddp/src/model/ModifyDataLimitRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::ModifyDataLimitRequest; - -ModifyDataLimitRequest::ModifyDataLimitRequest() : - RpcServiceRequest("sddp", "2019-01-03", "ModifyDataLimit") -{} - -ModifyDataLimitRequest::~ModifyDataLimitRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::ModifyDataLimitRequest; + +ModifyDataLimitRequest::ModifyDataLimitRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyDataLimit") +{} + +ModifyDataLimitRequest::~ModifyDataLimitRequest() +{} + std::string ModifyDataLimitRequest::getPassword()const { return password_; diff --git a/sddp/src/model/ModifyDataLimitResult.cc b/sddp/src/model/ModifyDataLimitResult.cc index 4bbfb7b36..86f9b96e0 100644 --- a/sddp/src/model/ModifyDataLimitResult.cc +++ b/sddp/src/model/ModifyDataLimitResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -ModifyDataLimitResult::ModifyDataLimitResult() : - ServiceResult() -{} - -ModifyDataLimitResult::ModifyDataLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDataLimitResult::~ModifyDataLimitResult() -{} - -void ModifyDataLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyDataLimitResult::ModifyDataLimitResult() : + ServiceResult() +{} + +ModifyDataLimitResult::ModifyDataLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDataLimitResult::~ModifyDataLimitResult() +{} + +void ModifyDataLimitResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyDefaultLevelRequest.cc b/sddp/src/model/ModifyDefaultLevelRequest.cc index b50e0a80e..f8a0e6e7a 100644 --- a/sddp/src/model/ModifyDefaultLevelRequest.cc +++ b/sddp/src/model/ModifyDefaultLevelRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::ModifyDefaultLevelRequest; - -ModifyDefaultLevelRequest::ModifyDefaultLevelRequest() : - RpcServiceRequest("sddp", "2019-01-03", "ModifyDefaultLevel") -{} - -ModifyDefaultLevelRequest::~ModifyDefaultLevelRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::ModifyDefaultLevelRequest; + +ModifyDefaultLevelRequest::ModifyDefaultLevelRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyDefaultLevel") +{} + +ModifyDefaultLevelRequest::~ModifyDefaultLevelRequest() +{} + std::string ModifyDefaultLevelRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/ModifyDefaultLevelResult.cc b/sddp/src/model/ModifyDefaultLevelResult.cc index fc8d02087..f58e2a720 100644 --- a/sddp/src/model/ModifyDefaultLevelResult.cc +++ b/sddp/src/model/ModifyDefaultLevelResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -ModifyDefaultLevelResult::ModifyDefaultLevelResult() : - ServiceResult() -{} - -ModifyDefaultLevelResult::ModifyDefaultLevelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDefaultLevelResult::~ModifyDefaultLevelResult() -{} - -void ModifyDefaultLevelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyDefaultLevelResult::ModifyDefaultLevelResult() : + ServiceResult() +{} + +ModifyDefaultLevelResult::ModifyDefaultLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDefaultLevelResult::~ModifyDefaultLevelResult() +{} + +void ModifyDefaultLevelResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyEventStatusRequest.cc b/sddp/src/model/ModifyEventStatusRequest.cc index dcb3d1363..0fa13d751 100644 --- a/sddp/src/model/ModifyEventStatusRequest.cc +++ b/sddp/src/model/ModifyEventStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::ModifyEventStatusRequest; - -ModifyEventStatusRequest::ModifyEventStatusRequest() : - RpcServiceRequest("sddp", "2019-01-03", "ModifyEventStatus") -{} - -ModifyEventStatusRequest::~ModifyEventStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::ModifyEventStatusRequest; + +ModifyEventStatusRequest::ModifyEventStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyEventStatus") +{} + +ModifyEventStatusRequest::~ModifyEventStatusRequest() +{} + std::string ModifyEventStatusRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/ModifyEventStatusResult.cc b/sddp/src/model/ModifyEventStatusResult.cc index 8d9fbea93..4e267273b 100644 --- a/sddp/src/model/ModifyEventStatusResult.cc +++ b/sddp/src/model/ModifyEventStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -ModifyEventStatusResult::ModifyEventStatusResult() : - ServiceResult() -{} - -ModifyEventStatusResult::ModifyEventStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyEventStatusResult::~ModifyEventStatusResult() -{} - -void ModifyEventStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyEventStatusResult::ModifyEventStatusResult() : + ServiceResult() +{} + +ModifyEventStatusResult::ModifyEventStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEventStatusResult::~ModifyEventStatusResult() +{} + +void ModifyEventStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyEventTypeStatusRequest.cc b/sddp/src/model/ModifyEventTypeStatusRequest.cc index ad22e4f20..8f9abe6aa 100644 --- a/sddp/src/model/ModifyEventTypeStatusRequest.cc +++ b/sddp/src/model/ModifyEventTypeStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::ModifyEventTypeStatusRequest; - -ModifyEventTypeStatusRequest::ModifyEventTypeStatusRequest() : - RpcServiceRequest("sddp", "2019-01-03", "ModifyEventTypeStatus") -{} - -ModifyEventTypeStatusRequest::~ModifyEventTypeStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::ModifyEventTypeStatusRequest; + +ModifyEventTypeStatusRequest::ModifyEventTypeStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyEventTypeStatus") +{} + +ModifyEventTypeStatusRequest::~ModifyEventTypeStatusRequest() +{} + std::string ModifyEventTypeStatusRequest::getSubTypeIds()const { return subTypeIds_; diff --git a/sddp/src/model/ModifyEventTypeStatusResult.cc b/sddp/src/model/ModifyEventTypeStatusResult.cc index 205cbd151..099ac48e2 100644 --- a/sddp/src/model/ModifyEventTypeStatusResult.cc +++ b/sddp/src/model/ModifyEventTypeStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -ModifyEventTypeStatusResult::ModifyEventTypeStatusResult() : - ServiceResult() -{} - -ModifyEventTypeStatusResult::ModifyEventTypeStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyEventTypeStatusResult::~ModifyEventTypeStatusResult() -{} - -void ModifyEventTypeStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyEventTypeStatusResult::ModifyEventTypeStatusResult() : + ServiceResult() +{} + +ModifyEventTypeStatusResult::ModifyEventTypeStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEventTypeStatusResult::~ModifyEventTypeStatusResult() +{} + +void ModifyEventTypeStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyRuleRequest.cc b/sddp/src/model/ModifyRuleRequest.cc index 8d3642938..be38c2bd5 100644 --- a/sddp/src/model/ModifyRuleRequest.cc +++ b/sddp/src/model/ModifyRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::ModifyRuleRequest; - -ModifyRuleRequest::ModifyRuleRequest() : - RpcServiceRequest("sddp", "2019-01-03", "ModifyRule") -{} - -ModifyRuleRequest::~ModifyRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::ModifyRuleRequest; + +ModifyRuleRequest::ModifyRuleRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyRule") +{} + +ModifyRuleRequest::~ModifyRuleRequest() +{} + std::string ModifyRuleRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/ModifyRuleResult.cc b/sddp/src/model/ModifyRuleResult.cc index cb45aa225..96089220f 100644 --- a/sddp/src/model/ModifyRuleResult.cc +++ b/sddp/src/model/ModifyRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -ModifyRuleResult::ModifyRuleResult() : - ServiceResult() -{} - -ModifyRuleResult::ModifyRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyRuleResult::~ModifyRuleResult() -{} - -void ModifyRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyRuleResult::ModifyRuleResult() : + ServiceResult() +{} + +ModifyRuleResult::ModifyRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRuleResult::~ModifyRuleResult() +{} + +void ModifyRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ModifyRuleStatusRequest.cc b/sddp/src/model/ModifyRuleStatusRequest.cc index 4bf639e74..8147e1090 100644 --- a/sddp/src/model/ModifyRuleStatusRequest.cc +++ b/sddp/src/model/ModifyRuleStatusRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::ModifyRuleStatusRequest; - -ModifyRuleStatusRequest::ModifyRuleStatusRequest() : - RpcServiceRequest("sddp", "2019-01-03", "ModifyRuleStatus") -{} - -ModifyRuleStatusRequest::~ModifyRuleStatusRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::ModifyRuleStatusRequest; + +ModifyRuleStatusRequest::ModifyRuleStatusRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ModifyRuleStatus") +{} + +ModifyRuleStatusRequest::~ModifyRuleStatusRequest() +{} + std::string ModifyRuleStatusRequest::getSourceIp()const { return sourceIp_; diff --git a/sddp/src/model/ModifyRuleStatusResult.cc b/sddp/src/model/ModifyRuleStatusResult.cc index 2349ea355..721aa1a45 100644 --- a/sddp/src/model/ModifyRuleStatusResult.cc +++ b/sddp/src/model/ModifyRuleStatusResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -ModifyRuleStatusResult::ModifyRuleStatusResult() : - ServiceResult() -{} - -ModifyRuleStatusResult::ModifyRuleStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyRuleStatusResult::~ModifyRuleStatusResult() -{} - -void ModifyRuleStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ModifyRuleStatusResult::ModifyRuleStatusResult() : + ServiceResult() +{} + +ModifyRuleStatusResult::ModifyRuleStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRuleStatusResult::~ModifyRuleStatusResult() +{} + +void ModifyRuleStatusResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sddp/src/model/ValidateConnectorRequest.cc b/sddp/src/model/ValidateConnectorRequest.cc index 6eaae5314..1218cadd2 100644 --- a/sddp/src/model/ValidateConnectorRequest.cc +++ b/sddp/src/model/ValidateConnectorRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Sddp::Model::ValidateConnectorRequest; - -ValidateConnectorRequest::ValidateConnectorRequest() : - RpcServiceRequest("sddp", "2019-01-03", "ValidateConnector") -{} - -ValidateConnectorRequest::~ValidateConnectorRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp::Model::ValidateConnectorRequest; + +ValidateConnectorRequest::ValidateConnectorRequest() : + RpcServiceRequest("sddp", "2019-01-03", "ValidateConnector") +{} + +ValidateConnectorRequest::~ValidateConnectorRequest() +{} + std::string ValidateConnectorRequest::getPassword()const { return password_; diff --git a/sddp/src/model/ValidateConnectorResult.cc b/sddp/src/model/ValidateConnectorResult.cc index 906e37a60..151facb0c 100644 --- a/sddp/src/model/ValidateConnectorResult.cc +++ b/sddp/src/model/ValidateConnectorResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Sddp; -using namespace AlibabaCloud::Sddp::Model; - -ValidateConnectorResult::ValidateConnectorResult() : - ServiceResult() -{} - -ValidateConnectorResult::ValidateConnectorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ValidateConnectorResult::~ValidateConnectorResult() -{} - -void ValidateConnectorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Sddp; +using namespace AlibabaCloud::Sddp::Model; + +ValidateConnectorResult::ValidateConnectorResult() : + ServiceResult() +{} + +ValidateConnectorResult::ValidateConnectorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateConnectorResult::~ValidateConnectorResult() +{} + +void ValidateConnectorResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Connected"].isNull()) connected_ = value["Connected"].asString() == "true"; - -} - + +} + bool ValidateConnectorResult::getConnected()const { return connected_; diff --git a/slb/CMakeLists.txt b/slb/CMakeLists.txt index a7ca626ad..502f2783d 100644 --- a/slb/CMakeLists.txt +++ b/slb/CMakeLists.txt @@ -27,42 +27,44 @@ set(slb_public_header_model include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerResult.h include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupsRequest.h include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupsResult.h - include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h - include/alibabacloud/slb/model/StartLoadBalancerListenerResult.h include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeRequest.h include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h + include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h + include/alibabacloud/slb/model/StartLoadBalancerListenerResult.h include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h include/alibabacloud/slb/model/StopLoadBalancerListenerResult.h - include/alibabacloud/slb/model/SetLoadBalancerStatusRequest.h - include/alibabacloud/slb/model/SetLoadBalancerStatusResult.h include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecRequest.h include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h + include/alibabacloud/slb/model/SetLoadBalancerStatusRequest.h + include/alibabacloud/slb/model/SetLoadBalancerStatusResult.h include/alibabacloud/slb/model/MoveResourceGroupRequest.h include/alibabacloud/slb/model/MoveResourceGroupResult.h include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeResult.h - include/alibabacloud/slb/model/DeleteVServerGroupRequest.h - include/alibabacloud/slb/model/DeleteVServerGroupResult.h include/alibabacloud/slb/model/DescribeVServerGroupAttributeRequest.h include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h + include/alibabacloud/slb/model/DeleteVServerGroupRequest.h + include/alibabacloud/slb/model/DeleteVServerGroupResult.h include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h include/alibabacloud/slb/model/AddListenerWhiteListItemResult.h - include/alibabacloud/slb/model/RemoveTagsRequest.h - include/alibabacloud/slb/model/RemoveTagsResult.h include/alibabacloud/slb/model/CreateLoadBalancerRequest.h include/alibabacloud/slb/model/CreateLoadBalancerResult.h + include/alibabacloud/slb/model/RemoveTagsRequest.h + include/alibabacloud/slb/model/RemoveTagsResult.h include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeResult.h include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h include/alibabacloud/slb/model/SetLoadBalancerAutoReleaseTimeRequest.h include/alibabacloud/slb/model/SetLoadBalancerAutoReleaseTimeResult.h - include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h - include/alibabacloud/slb/model/SetListenerAccessControlStatusResult.h + include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h + include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h include/alibabacloud/slb/model/UploadCACertificateRequest.h include/alibabacloud/slb/model/UploadCACertificateResult.h + include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h + include/alibabacloud/slb/model/SetListenerAccessControlStatusResult.h include/alibabacloud/slb/model/DescribeZonesRequest.h include/alibabacloud/slb/model/DescribeZonesResult.h include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h @@ -73,6 +75,8 @@ set(slb_public_header_model include/alibabacloud/slb/model/DeleteLoadBalancerListenerResult.h include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h include/alibabacloud/slb/model/DescribeVServerGroupsResult.h + include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h + include/alibabacloud/slb/model/DescribeAvailableResourceResult.h include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h include/alibabacloud/slb/model/DescribeTagsRequest.h @@ -93,16 +97,16 @@ set(slb_public_header_model include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerResult.h include/alibabacloud/slb/model/RemoveBackendServersRequest.h include/alibabacloud/slb/model/RemoveBackendServersResult.h - include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h - include/alibabacloud/slb/model/AddAccessControlListEntryResult.h include/alibabacloud/slb/model/ModifyVServerGroupBackendServersRequest.h include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h + include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h + include/alibabacloud/slb/model/AddAccessControlListEntryResult.h include/alibabacloud/slb/model/DescribeSlbQuotasRequest.h include/alibabacloud/slb/model/DescribeSlbQuotasResult.h - include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.h - include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h include/alibabacloud/slb/model/DeleteRulesRequest.h include/alibabacloud/slb/model/DeleteRulesResult.h + include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.h + include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h include/alibabacloud/slb/model/DeleteMasterSlaveVServerGroupRequest.h include/alibabacloud/slb/model/DeleteMasterSlaveVServerGroupResult.h include/alibabacloud/slb/model/DescribeCACertificatesRequest.h @@ -181,10 +185,10 @@ set(slb_public_header_model include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h include/alibabacloud/slb/model/AddBackendServersRequest.h include/alibabacloud/slb/model/AddBackendServersResult.h - include/alibabacloud/slb/model/CreateRulesRequest.h - include/alibabacloud/slb/model/CreateRulesResult.h include/alibabacloud/slb/model/AddVServerGroupBackendServersRequest.h include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h + include/alibabacloud/slb/model/CreateRulesRequest.h + include/alibabacloud/slb/model/CreateRulesResult.h include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeResult.h ) @@ -196,42 +200,44 @@ set(slb_src src/model/CreateLoadBalancerUDPListenerResult.cc src/model/DescribeMasterSlaveVServerGroupsRequest.cc src/model/DescribeMasterSlaveVServerGroupsResult.cc - src/model/StartLoadBalancerListenerRequest.cc - src/model/StartLoadBalancerListenerResult.cc src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc + src/model/StartLoadBalancerListenerRequest.cc + src/model/StartLoadBalancerListenerResult.cc src/model/DescribeListenerAccessControlAttributeRequest.cc src/model/DescribeListenerAccessControlAttributeResult.cc src/model/StopLoadBalancerListenerRequest.cc src/model/StopLoadBalancerListenerResult.cc - src/model/SetLoadBalancerStatusRequest.cc - src/model/SetLoadBalancerStatusResult.cc src/model/ModifyLoadBalancerInstanceSpecRequest.cc src/model/ModifyLoadBalancerInstanceSpecResult.cc + src/model/SetLoadBalancerStatusRequest.cc + src/model/SetLoadBalancerStatusResult.cc src/model/MoveResourceGroupRequest.cc src/model/MoveResourceGroupResult.cc src/model/SetLoadBalancerTCPListenerAttributeRequest.cc src/model/SetLoadBalancerTCPListenerAttributeResult.cc - src/model/DeleteVServerGroupRequest.cc - src/model/DeleteVServerGroupResult.cc src/model/DescribeVServerGroupAttributeRequest.cc src/model/DescribeVServerGroupAttributeResult.cc + src/model/DeleteVServerGroupRequest.cc + src/model/DeleteVServerGroupResult.cc src/model/AddListenerWhiteListItemRequest.cc src/model/AddListenerWhiteListItemResult.cc - src/model/RemoveTagsRequest.cc - src/model/RemoveTagsResult.cc src/model/CreateLoadBalancerRequest.cc src/model/CreateLoadBalancerResult.cc + src/model/RemoveTagsRequest.cc + src/model/RemoveTagsResult.cc src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc src/model/SetLoadBalancerHTTPListenerAttributeResult.cc src/model/DescribeDomainExtensionsRequest.cc src/model/DescribeDomainExtensionsResult.cc src/model/SetLoadBalancerAutoReleaseTimeRequest.cc src/model/SetLoadBalancerAutoReleaseTimeResult.cc - src/model/SetListenerAccessControlStatusRequest.cc - src/model/SetListenerAccessControlStatusResult.cc + src/model/SetLoadBalancerDeleteProtectionRequest.cc + src/model/SetLoadBalancerDeleteProtectionResult.cc src/model/UploadCACertificateRequest.cc src/model/UploadCACertificateResult.cc + src/model/SetListenerAccessControlStatusRequest.cc + src/model/SetListenerAccessControlStatusResult.cc src/model/DescribeZonesRequest.cc src/model/DescribeZonesResult.cc src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc @@ -242,6 +248,8 @@ set(slb_src src/model/DeleteLoadBalancerListenerResult.cc src/model/DescribeVServerGroupsRequest.cc src/model/DescribeVServerGroupsResult.cc + src/model/DescribeAvailableResourceRequest.cc + src/model/DescribeAvailableResourceResult.cc src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc src/model/DescribeTagsRequest.cc @@ -262,16 +270,16 @@ set(slb_src src/model/CreateLoadBalancerHTTPListenerResult.cc src/model/RemoveBackendServersRequest.cc src/model/RemoveBackendServersResult.cc - src/model/AddAccessControlListEntryRequest.cc - src/model/AddAccessControlListEntryResult.cc src/model/ModifyVServerGroupBackendServersRequest.cc src/model/ModifyVServerGroupBackendServersResult.cc + src/model/AddAccessControlListEntryRequest.cc + src/model/AddAccessControlListEntryResult.cc src/model/DescribeSlbQuotasRequest.cc src/model/DescribeSlbQuotasResult.cc - src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc - src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc src/model/DeleteRulesRequest.cc src/model/DeleteRulesResult.cc + src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc + src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc src/model/DeleteMasterSlaveVServerGroupRequest.cc src/model/DeleteMasterSlaveVServerGroupResult.cc src/model/DescribeCACertificatesRequest.cc @@ -350,10 +358,10 @@ set(slb_src src/model/ModifyLoadBalancerPayTypeResult.cc src/model/AddBackendServersRequest.cc src/model/AddBackendServersResult.cc - src/model/CreateRulesRequest.cc - src/model/CreateRulesResult.cc src/model/AddVServerGroupBackendServersRequest.cc src/model/AddVServerGroupBackendServersResult.cc + src/model/CreateRulesRequest.cc + src/model/CreateRulesResult.cc src/model/SetLoadBalancerUDPListenerAttributeRequest.cc src/model/SetLoadBalancerUDPListenerAttributeResult.cc ) diff --git a/slb/include/alibabacloud/slb/SlbClient.h b/slb/include/alibabacloud/slb/SlbClient.h index ce645a2d1..d339a9b16 100644 --- a/slb/include/alibabacloud/slb/SlbClient.h +++ b/slb/include/alibabacloud/slb/SlbClient.h @@ -28,42 +28,44 @@ #include "model/CreateLoadBalancerUDPListenerResult.h" #include "model/DescribeMasterSlaveVServerGroupsRequest.h" #include "model/DescribeMasterSlaveVServerGroupsResult.h" -#include "model/StartLoadBalancerListenerRequest.h" -#include "model/StartLoadBalancerListenerResult.h" #include "model/DescribeLoadBalancerTCPListenerAttributeRequest.h" #include "model/DescribeLoadBalancerTCPListenerAttributeResult.h" +#include "model/StartLoadBalancerListenerRequest.h" +#include "model/StartLoadBalancerListenerResult.h" #include "model/DescribeListenerAccessControlAttributeRequest.h" #include "model/DescribeListenerAccessControlAttributeResult.h" #include "model/StopLoadBalancerListenerRequest.h" #include "model/StopLoadBalancerListenerResult.h" -#include "model/SetLoadBalancerStatusRequest.h" -#include "model/SetLoadBalancerStatusResult.h" #include "model/ModifyLoadBalancerInstanceSpecRequest.h" #include "model/ModifyLoadBalancerInstanceSpecResult.h" +#include "model/SetLoadBalancerStatusRequest.h" +#include "model/SetLoadBalancerStatusResult.h" #include "model/MoveResourceGroupRequest.h" #include "model/MoveResourceGroupResult.h" #include "model/SetLoadBalancerTCPListenerAttributeRequest.h" #include "model/SetLoadBalancerTCPListenerAttributeResult.h" -#include "model/DeleteVServerGroupRequest.h" -#include "model/DeleteVServerGroupResult.h" #include "model/DescribeVServerGroupAttributeRequest.h" #include "model/DescribeVServerGroupAttributeResult.h" +#include "model/DeleteVServerGroupRequest.h" +#include "model/DeleteVServerGroupResult.h" #include "model/AddListenerWhiteListItemRequest.h" #include "model/AddListenerWhiteListItemResult.h" -#include "model/RemoveTagsRequest.h" -#include "model/RemoveTagsResult.h" #include "model/CreateLoadBalancerRequest.h" #include "model/CreateLoadBalancerResult.h" +#include "model/RemoveTagsRequest.h" +#include "model/RemoveTagsResult.h" #include "model/SetLoadBalancerHTTPListenerAttributeRequest.h" #include "model/SetLoadBalancerHTTPListenerAttributeResult.h" #include "model/DescribeDomainExtensionsRequest.h" #include "model/DescribeDomainExtensionsResult.h" #include "model/SetLoadBalancerAutoReleaseTimeRequest.h" #include "model/SetLoadBalancerAutoReleaseTimeResult.h" -#include "model/SetListenerAccessControlStatusRequest.h" -#include "model/SetListenerAccessControlStatusResult.h" +#include "model/SetLoadBalancerDeleteProtectionRequest.h" +#include "model/SetLoadBalancerDeleteProtectionResult.h" #include "model/UploadCACertificateRequest.h" #include "model/UploadCACertificateResult.h" +#include "model/SetListenerAccessControlStatusRequest.h" +#include "model/SetListenerAccessControlStatusResult.h" #include "model/DescribeZonesRequest.h" #include "model/DescribeZonesResult.h" #include "model/SetLoadBalancerHTTPSListenerAttributeRequest.h" @@ -74,6 +76,8 @@ #include "model/DeleteLoadBalancerListenerResult.h" #include "model/DescribeVServerGroupsRequest.h" #include "model/DescribeVServerGroupsResult.h" +#include "model/DescribeAvailableResourceRequest.h" +#include "model/DescribeAvailableResourceResult.h" #include "model/DescribeLoadBalancerHTTPListenerAttributeRequest.h" #include "model/DescribeLoadBalancerHTTPListenerAttributeResult.h" #include "model/DescribeTagsRequest.h" @@ -94,16 +98,16 @@ #include "model/CreateLoadBalancerHTTPListenerResult.h" #include "model/RemoveBackendServersRequest.h" #include "model/RemoveBackendServersResult.h" -#include "model/AddAccessControlListEntryRequest.h" -#include "model/AddAccessControlListEntryResult.h" #include "model/ModifyVServerGroupBackendServersRequest.h" #include "model/ModifyVServerGroupBackendServersResult.h" +#include "model/AddAccessControlListEntryRequest.h" +#include "model/AddAccessControlListEntryResult.h" #include "model/DescribeSlbQuotasRequest.h" #include "model/DescribeSlbQuotasResult.h" -#include "model/DescribeLoadBalancerUDPListenerAttributeRequest.h" -#include "model/DescribeLoadBalancerUDPListenerAttributeResult.h" #include "model/DeleteRulesRequest.h" #include "model/DeleteRulesResult.h" +#include "model/DescribeLoadBalancerUDPListenerAttributeRequest.h" +#include "model/DescribeLoadBalancerUDPListenerAttributeResult.h" #include "model/DeleteMasterSlaveVServerGroupRequest.h" #include "model/DeleteMasterSlaveVServerGroupResult.h" #include "model/DescribeCACertificatesRequest.h" @@ -182,10 +186,10 @@ #include "model/ModifyLoadBalancerPayTypeResult.h" #include "model/AddBackendServersRequest.h" #include "model/AddBackendServersResult.h" -#include "model/CreateRulesRequest.h" -#include "model/CreateRulesResult.h" #include "model/AddVServerGroupBackendServersRequest.h" #include "model/AddVServerGroupBackendServersResult.h" +#include "model/CreateRulesRequest.h" +#include "model/CreateRulesResult.h" #include "model/SetLoadBalancerUDPListenerAttributeRequest.h" #include "model/SetLoadBalancerUDPListenerAttributeResult.h" @@ -206,45 +210,45 @@ namespace AlibabaCloud typedef Outcome DescribeMasterSlaveVServerGroupsOutcome; typedef std::future DescribeMasterSlaveVServerGroupsOutcomeCallable; typedef std::function&)> DescribeMasterSlaveVServerGroupsAsyncHandler; - typedef Outcome StartLoadBalancerListenerOutcome; - typedef std::future StartLoadBalancerListenerOutcomeCallable; - typedef std::function&)> StartLoadBalancerListenerAsyncHandler; typedef Outcome DescribeLoadBalancerTCPListenerAttributeOutcome; typedef std::future DescribeLoadBalancerTCPListenerAttributeOutcomeCallable; typedef std::function&)> DescribeLoadBalancerTCPListenerAttributeAsyncHandler; + typedef Outcome StartLoadBalancerListenerOutcome; + typedef std::future StartLoadBalancerListenerOutcomeCallable; + typedef std::function&)> StartLoadBalancerListenerAsyncHandler; typedef Outcome DescribeListenerAccessControlAttributeOutcome; typedef std::future DescribeListenerAccessControlAttributeOutcomeCallable; typedef std::function&)> DescribeListenerAccessControlAttributeAsyncHandler; typedef Outcome StopLoadBalancerListenerOutcome; typedef std::future StopLoadBalancerListenerOutcomeCallable; typedef std::function&)> StopLoadBalancerListenerAsyncHandler; - typedef Outcome SetLoadBalancerStatusOutcome; - typedef std::future SetLoadBalancerStatusOutcomeCallable; - typedef std::function&)> SetLoadBalancerStatusAsyncHandler; typedef Outcome ModifyLoadBalancerInstanceSpecOutcome; typedef std::future ModifyLoadBalancerInstanceSpecOutcomeCallable; typedef std::function&)> ModifyLoadBalancerInstanceSpecAsyncHandler; + typedef Outcome SetLoadBalancerStatusOutcome; + typedef std::future SetLoadBalancerStatusOutcomeCallable; + typedef std::function&)> SetLoadBalancerStatusAsyncHandler; typedef Outcome MoveResourceGroupOutcome; typedef std::future MoveResourceGroupOutcomeCallable; typedef std::function&)> MoveResourceGroupAsyncHandler; typedef Outcome SetLoadBalancerTCPListenerAttributeOutcome; typedef std::future SetLoadBalancerTCPListenerAttributeOutcomeCallable; typedef std::function&)> SetLoadBalancerTCPListenerAttributeAsyncHandler; - typedef Outcome DeleteVServerGroupOutcome; - typedef std::future DeleteVServerGroupOutcomeCallable; - typedef std::function&)> DeleteVServerGroupAsyncHandler; typedef Outcome DescribeVServerGroupAttributeOutcome; typedef std::future DescribeVServerGroupAttributeOutcomeCallable; typedef std::function&)> DescribeVServerGroupAttributeAsyncHandler; + typedef Outcome DeleteVServerGroupOutcome; + typedef std::future DeleteVServerGroupOutcomeCallable; + typedef std::function&)> DeleteVServerGroupAsyncHandler; typedef Outcome AddListenerWhiteListItemOutcome; typedef std::future AddListenerWhiteListItemOutcomeCallable; typedef std::function&)> AddListenerWhiteListItemAsyncHandler; - typedef Outcome RemoveTagsOutcome; - typedef std::future RemoveTagsOutcomeCallable; - typedef std::function&)> RemoveTagsAsyncHandler; typedef Outcome CreateLoadBalancerOutcome; typedef std::future CreateLoadBalancerOutcomeCallable; typedef std::function&)> CreateLoadBalancerAsyncHandler; + typedef Outcome RemoveTagsOutcome; + typedef std::future RemoveTagsOutcomeCallable; + typedef std::function&)> RemoveTagsAsyncHandler; typedef Outcome SetLoadBalancerHTTPListenerAttributeOutcome; typedef std::future SetLoadBalancerHTTPListenerAttributeOutcomeCallable; typedef std::function&)> SetLoadBalancerHTTPListenerAttributeAsyncHandler; @@ -254,12 +258,15 @@ namespace AlibabaCloud typedef Outcome SetLoadBalancerAutoReleaseTimeOutcome; typedef std::future SetLoadBalancerAutoReleaseTimeOutcomeCallable; typedef std::function&)> SetLoadBalancerAutoReleaseTimeAsyncHandler; - typedef Outcome SetListenerAccessControlStatusOutcome; - typedef std::future SetListenerAccessControlStatusOutcomeCallable; - typedef std::function&)> SetListenerAccessControlStatusAsyncHandler; + typedef Outcome SetLoadBalancerDeleteProtectionOutcome; + typedef std::future SetLoadBalancerDeleteProtectionOutcomeCallable; + typedef std::function&)> SetLoadBalancerDeleteProtectionAsyncHandler; typedef Outcome UploadCACertificateOutcome; typedef std::future UploadCACertificateOutcomeCallable; typedef std::function&)> UploadCACertificateAsyncHandler; + typedef Outcome SetListenerAccessControlStatusOutcome; + typedef std::future SetListenerAccessControlStatusOutcomeCallable; + typedef std::function&)> SetListenerAccessControlStatusAsyncHandler; typedef Outcome DescribeZonesOutcome; typedef std::future DescribeZonesOutcomeCallable; typedef std::function&)> DescribeZonesAsyncHandler; @@ -275,6 +282,9 @@ namespace AlibabaCloud typedef Outcome DescribeVServerGroupsOutcome; typedef std::future DescribeVServerGroupsOutcomeCallable; typedef std::function&)> DescribeVServerGroupsAsyncHandler; + typedef Outcome DescribeAvailableResourceOutcome; + typedef std::future DescribeAvailableResourceOutcomeCallable; + typedef std::function&)> DescribeAvailableResourceAsyncHandler; typedef Outcome DescribeLoadBalancerHTTPListenerAttributeOutcome; typedef std::future DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable; typedef std::function&)> DescribeLoadBalancerHTTPListenerAttributeAsyncHandler; @@ -305,21 +315,21 @@ namespace AlibabaCloud typedef Outcome RemoveBackendServersOutcome; typedef std::future RemoveBackendServersOutcomeCallable; typedef std::function&)> RemoveBackendServersAsyncHandler; - typedef Outcome AddAccessControlListEntryOutcome; - typedef std::future AddAccessControlListEntryOutcomeCallable; - typedef std::function&)> AddAccessControlListEntryAsyncHandler; typedef Outcome ModifyVServerGroupBackendServersOutcome; typedef std::future ModifyVServerGroupBackendServersOutcomeCallable; typedef std::function&)> ModifyVServerGroupBackendServersAsyncHandler; + typedef Outcome AddAccessControlListEntryOutcome; + typedef std::future AddAccessControlListEntryOutcomeCallable; + typedef std::function&)> AddAccessControlListEntryAsyncHandler; typedef Outcome DescribeSlbQuotasOutcome; typedef std::future DescribeSlbQuotasOutcomeCallable; typedef std::function&)> DescribeSlbQuotasAsyncHandler; - typedef Outcome DescribeLoadBalancerUDPListenerAttributeOutcome; - typedef std::future DescribeLoadBalancerUDPListenerAttributeOutcomeCallable; - typedef std::function&)> DescribeLoadBalancerUDPListenerAttributeAsyncHandler; typedef Outcome DeleteRulesOutcome; typedef std::future DeleteRulesOutcomeCallable; typedef std::function&)> DeleteRulesAsyncHandler; + typedef Outcome DescribeLoadBalancerUDPListenerAttributeOutcome; + typedef std::future DescribeLoadBalancerUDPListenerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerUDPListenerAttributeAsyncHandler; typedef Outcome DeleteMasterSlaveVServerGroupOutcome; typedef std::future DeleteMasterSlaveVServerGroupOutcomeCallable; typedef std::function&)> DeleteMasterSlaveVServerGroupAsyncHandler; @@ -437,12 +447,12 @@ namespace AlibabaCloud typedef Outcome AddBackendServersOutcome; typedef std::future AddBackendServersOutcomeCallable; typedef std::function&)> AddBackendServersAsyncHandler; - typedef Outcome CreateRulesOutcome; - typedef std::future CreateRulesOutcomeCallable; - typedef std::function&)> CreateRulesAsyncHandler; typedef Outcome AddVServerGroupBackendServersOutcome; typedef std::future AddVServerGroupBackendServersOutcomeCallable; typedef std::function&)> AddVServerGroupBackendServersAsyncHandler; + typedef Outcome CreateRulesOutcome; + typedef std::future CreateRulesOutcomeCallable; + typedef std::function&)> CreateRulesAsyncHandler; typedef Outcome SetLoadBalancerUDPListenerAttributeOutcome; typedef std::future SetLoadBalancerUDPListenerAttributeOutcomeCallable; typedef std::function&)> SetLoadBalancerUDPListenerAttributeAsyncHandler; @@ -460,45 +470,45 @@ namespace AlibabaCloud DescribeMasterSlaveVServerGroupsOutcome describeMasterSlaveVServerGroups(const Model::DescribeMasterSlaveVServerGroupsRequest &request)const; void describeMasterSlaveVServerGroupsAsync(const Model::DescribeMasterSlaveVServerGroupsRequest& request, const DescribeMasterSlaveVServerGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMasterSlaveVServerGroupsOutcomeCallable describeMasterSlaveVServerGroupsCallable(const Model::DescribeMasterSlaveVServerGroupsRequest& request) const; - StartLoadBalancerListenerOutcome startLoadBalancerListener(const Model::StartLoadBalancerListenerRequest &request)const; - void startLoadBalancerListenerAsync(const Model::StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartLoadBalancerListenerOutcomeCallable startLoadBalancerListenerCallable(const Model::StartLoadBalancerListenerRequest& request) const; DescribeLoadBalancerTCPListenerAttributeOutcome describeLoadBalancerTCPListenerAttribute(const Model::DescribeLoadBalancerTCPListenerAttributeRequest &request)const; void describeLoadBalancerTCPListenerAttributeAsync(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request, const DescribeLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancerTCPListenerAttributeOutcomeCallable describeLoadBalancerTCPListenerAttributeCallable(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request) const; + StartLoadBalancerListenerOutcome startLoadBalancerListener(const Model::StartLoadBalancerListenerRequest &request)const; + void startLoadBalancerListenerAsync(const Model::StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartLoadBalancerListenerOutcomeCallable startLoadBalancerListenerCallable(const Model::StartLoadBalancerListenerRequest& request) const; DescribeListenerAccessControlAttributeOutcome describeListenerAccessControlAttribute(const Model::DescribeListenerAccessControlAttributeRequest &request)const; void describeListenerAccessControlAttributeAsync(const Model::DescribeListenerAccessControlAttributeRequest& request, const DescribeListenerAccessControlAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeListenerAccessControlAttributeOutcomeCallable describeListenerAccessControlAttributeCallable(const Model::DescribeListenerAccessControlAttributeRequest& request) const; StopLoadBalancerListenerOutcome stopLoadBalancerListener(const Model::StopLoadBalancerListenerRequest &request)const; void stopLoadBalancerListenerAsync(const Model::StopLoadBalancerListenerRequest& request, const StopLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopLoadBalancerListenerOutcomeCallable stopLoadBalancerListenerCallable(const Model::StopLoadBalancerListenerRequest& request) const; - SetLoadBalancerStatusOutcome setLoadBalancerStatus(const Model::SetLoadBalancerStatusRequest &request)const; - void setLoadBalancerStatusAsync(const Model::SetLoadBalancerStatusRequest& request, const SetLoadBalancerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetLoadBalancerStatusOutcomeCallable setLoadBalancerStatusCallable(const Model::SetLoadBalancerStatusRequest& request) const; ModifyLoadBalancerInstanceSpecOutcome modifyLoadBalancerInstanceSpec(const Model::ModifyLoadBalancerInstanceSpecRequest &request)const; void modifyLoadBalancerInstanceSpecAsync(const Model::ModifyLoadBalancerInstanceSpecRequest& request, const ModifyLoadBalancerInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLoadBalancerInstanceSpecOutcomeCallable modifyLoadBalancerInstanceSpecCallable(const Model::ModifyLoadBalancerInstanceSpecRequest& request) const; + SetLoadBalancerStatusOutcome setLoadBalancerStatus(const Model::SetLoadBalancerStatusRequest &request)const; + void setLoadBalancerStatusAsync(const Model::SetLoadBalancerStatusRequest& request, const SetLoadBalancerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerStatusOutcomeCallable setLoadBalancerStatusCallable(const Model::SetLoadBalancerStatusRequest& request) const; MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const; void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const; SetLoadBalancerTCPListenerAttributeOutcome setLoadBalancerTCPListenerAttribute(const Model::SetLoadBalancerTCPListenerAttributeRequest &request)const; void setLoadBalancerTCPListenerAttributeAsync(const Model::SetLoadBalancerTCPListenerAttributeRequest& request, const SetLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerTCPListenerAttributeOutcomeCallable setLoadBalancerTCPListenerAttributeCallable(const Model::SetLoadBalancerTCPListenerAttributeRequest& request) const; - DeleteVServerGroupOutcome deleteVServerGroup(const Model::DeleteVServerGroupRequest &request)const; - void deleteVServerGroupAsync(const Model::DeleteVServerGroupRequest& request, const DeleteVServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteVServerGroupOutcomeCallable deleteVServerGroupCallable(const Model::DeleteVServerGroupRequest& request) const; DescribeVServerGroupAttributeOutcome describeVServerGroupAttribute(const Model::DescribeVServerGroupAttributeRequest &request)const; void describeVServerGroupAttributeAsync(const Model::DescribeVServerGroupAttributeRequest& request, const DescribeVServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVServerGroupAttributeOutcomeCallable describeVServerGroupAttributeCallable(const Model::DescribeVServerGroupAttributeRequest& request) const; + DeleteVServerGroupOutcome deleteVServerGroup(const Model::DeleteVServerGroupRequest &request)const; + void deleteVServerGroupAsync(const Model::DeleteVServerGroupRequest& request, const DeleteVServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVServerGroupOutcomeCallable deleteVServerGroupCallable(const Model::DeleteVServerGroupRequest& request) const; AddListenerWhiteListItemOutcome addListenerWhiteListItem(const Model::AddListenerWhiteListItemRequest &request)const; void addListenerWhiteListItemAsync(const Model::AddListenerWhiteListItemRequest& request, const AddListenerWhiteListItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddListenerWhiteListItemOutcomeCallable addListenerWhiteListItemCallable(const Model::AddListenerWhiteListItemRequest& request) const; - RemoveTagsOutcome removeTags(const Model::RemoveTagsRequest &request)const; - void removeTagsAsync(const Model::RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveTagsOutcomeCallable removeTagsCallable(const Model::RemoveTagsRequest& request) const; CreateLoadBalancerOutcome createLoadBalancer(const Model::CreateLoadBalancerRequest &request)const; void createLoadBalancerAsync(const Model::CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoadBalancerOutcomeCallable createLoadBalancerCallable(const Model::CreateLoadBalancerRequest& request) const; + RemoveTagsOutcome removeTags(const Model::RemoveTagsRequest &request)const; + void removeTagsAsync(const Model::RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTagsOutcomeCallable removeTagsCallable(const Model::RemoveTagsRequest& request) const; SetLoadBalancerHTTPListenerAttributeOutcome setLoadBalancerHTTPListenerAttribute(const Model::SetLoadBalancerHTTPListenerAttributeRequest &request)const; void setLoadBalancerHTTPListenerAttributeAsync(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request, const SetLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerHTTPListenerAttributeOutcomeCallable setLoadBalancerHTTPListenerAttributeCallable(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request) const; @@ -508,12 +518,15 @@ namespace AlibabaCloud SetLoadBalancerAutoReleaseTimeOutcome setLoadBalancerAutoReleaseTime(const Model::SetLoadBalancerAutoReleaseTimeRequest &request)const; void setLoadBalancerAutoReleaseTimeAsync(const Model::SetLoadBalancerAutoReleaseTimeRequest& request, const SetLoadBalancerAutoReleaseTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerAutoReleaseTimeOutcomeCallable setLoadBalancerAutoReleaseTimeCallable(const Model::SetLoadBalancerAutoReleaseTimeRequest& request) const; - SetListenerAccessControlStatusOutcome setListenerAccessControlStatus(const Model::SetListenerAccessControlStatusRequest &request)const; - void setListenerAccessControlStatusAsync(const Model::SetListenerAccessControlStatusRequest& request, const SetListenerAccessControlStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetListenerAccessControlStatusOutcomeCallable setListenerAccessControlStatusCallable(const Model::SetListenerAccessControlStatusRequest& request) const; + SetLoadBalancerDeleteProtectionOutcome setLoadBalancerDeleteProtection(const Model::SetLoadBalancerDeleteProtectionRequest &request)const; + void setLoadBalancerDeleteProtectionAsync(const Model::SetLoadBalancerDeleteProtectionRequest& request, const SetLoadBalancerDeleteProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerDeleteProtectionOutcomeCallable setLoadBalancerDeleteProtectionCallable(const Model::SetLoadBalancerDeleteProtectionRequest& request) const; UploadCACertificateOutcome uploadCACertificate(const Model::UploadCACertificateRequest &request)const; void uploadCACertificateAsync(const Model::UploadCACertificateRequest& request, const UploadCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UploadCACertificateOutcomeCallable uploadCACertificateCallable(const Model::UploadCACertificateRequest& request) const; + SetListenerAccessControlStatusOutcome setListenerAccessControlStatus(const Model::SetListenerAccessControlStatusRequest &request)const; + void setListenerAccessControlStatusAsync(const Model::SetListenerAccessControlStatusRequest& request, const SetListenerAccessControlStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetListenerAccessControlStatusOutcomeCallable setListenerAccessControlStatusCallable(const Model::SetListenerAccessControlStatusRequest& request) const; DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; @@ -529,6 +542,9 @@ namespace AlibabaCloud DescribeVServerGroupsOutcome describeVServerGroups(const Model::DescribeVServerGroupsRequest &request)const; void describeVServerGroupsAsync(const Model::DescribeVServerGroupsRequest& request, const DescribeVServerGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVServerGroupsOutcomeCallable describeVServerGroupsCallable(const Model::DescribeVServerGroupsRequest& request) const; + DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const; + void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const; DescribeLoadBalancerHTTPListenerAttributeOutcome describeLoadBalancerHTTPListenerAttribute(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest &request)const; void describeLoadBalancerHTTPListenerAttributeAsync(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest& request, const DescribeLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable describeLoadBalancerHTTPListenerAttributeCallable(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest& request) const; @@ -559,21 +575,21 @@ namespace AlibabaCloud RemoveBackendServersOutcome removeBackendServers(const Model::RemoveBackendServersRequest &request)const; void removeBackendServersAsync(const Model::RemoveBackendServersRequest& request, const RemoveBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveBackendServersOutcomeCallable removeBackendServersCallable(const Model::RemoveBackendServersRequest& request) const; - AddAccessControlListEntryOutcome addAccessControlListEntry(const Model::AddAccessControlListEntryRequest &request)const; - void addAccessControlListEntryAsync(const Model::AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddAccessControlListEntryOutcomeCallable addAccessControlListEntryCallable(const Model::AddAccessControlListEntryRequest& request) const; ModifyVServerGroupBackendServersOutcome modifyVServerGroupBackendServers(const Model::ModifyVServerGroupBackendServersRequest &request)const; void modifyVServerGroupBackendServersAsync(const Model::ModifyVServerGroupBackendServersRequest& request, const ModifyVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVServerGroupBackendServersOutcomeCallable modifyVServerGroupBackendServersCallable(const Model::ModifyVServerGroupBackendServersRequest& request) const; + AddAccessControlListEntryOutcome addAccessControlListEntry(const Model::AddAccessControlListEntryRequest &request)const; + void addAccessControlListEntryAsync(const Model::AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAccessControlListEntryOutcomeCallable addAccessControlListEntryCallable(const Model::AddAccessControlListEntryRequest& request) const; DescribeSlbQuotasOutcome describeSlbQuotas(const Model::DescribeSlbQuotasRequest &request)const; void describeSlbQuotasAsync(const Model::DescribeSlbQuotasRequest& request, const DescribeSlbQuotasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSlbQuotasOutcomeCallable describeSlbQuotasCallable(const Model::DescribeSlbQuotasRequest& request) const; - DescribeLoadBalancerUDPListenerAttributeOutcome describeLoadBalancerUDPListenerAttribute(const Model::DescribeLoadBalancerUDPListenerAttributeRequest &request)const; - void describeLoadBalancerUDPListenerAttributeAsync(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLoadBalancerUDPListenerAttributeOutcomeCallable describeLoadBalancerUDPListenerAttributeCallable(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request) const; DeleteRulesOutcome deleteRules(const Model::DeleteRulesRequest &request)const; void deleteRulesAsync(const Model::DeleteRulesRequest& request, const DeleteRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRulesOutcomeCallable deleteRulesCallable(const Model::DeleteRulesRequest& request) const; + DescribeLoadBalancerUDPListenerAttributeOutcome describeLoadBalancerUDPListenerAttribute(const Model::DescribeLoadBalancerUDPListenerAttributeRequest &request)const; + void describeLoadBalancerUDPListenerAttributeAsync(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerUDPListenerAttributeOutcomeCallable describeLoadBalancerUDPListenerAttributeCallable(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request) const; DeleteMasterSlaveVServerGroupOutcome deleteMasterSlaveVServerGroup(const Model::DeleteMasterSlaveVServerGroupRequest &request)const; void deleteMasterSlaveVServerGroupAsync(const Model::DeleteMasterSlaveVServerGroupRequest& request, const DeleteMasterSlaveVServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteMasterSlaveVServerGroupOutcomeCallable deleteMasterSlaveVServerGroupCallable(const Model::DeleteMasterSlaveVServerGroupRequest& request) const; @@ -691,12 +707,12 @@ namespace AlibabaCloud AddBackendServersOutcome addBackendServers(const Model::AddBackendServersRequest &request)const; void addBackendServersAsync(const Model::AddBackendServersRequest& request, const AddBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddBackendServersOutcomeCallable addBackendServersCallable(const Model::AddBackendServersRequest& request) const; - CreateRulesOutcome createRules(const Model::CreateRulesRequest &request)const; - void createRulesAsync(const Model::CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateRulesOutcomeCallable createRulesCallable(const Model::CreateRulesRequest& request) const; AddVServerGroupBackendServersOutcome addVServerGroupBackendServers(const Model::AddVServerGroupBackendServersRequest &request)const; void addVServerGroupBackendServersAsync(const Model::AddVServerGroupBackendServersRequest& request, const AddVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddVServerGroupBackendServersOutcomeCallable addVServerGroupBackendServersCallable(const Model::AddVServerGroupBackendServersRequest& request) const; + CreateRulesOutcome createRules(const Model::CreateRulesRequest &request)const; + void createRulesAsync(const Model::CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRulesOutcomeCallable createRulesCallable(const Model::CreateRulesRequest& request) const; SetLoadBalancerUDPListenerAttributeOutcome setLoadBalancerUDPListenerAttribute(const Model::SetLoadBalancerUDPListenerAttributeRequest &request)const; void setLoadBalancerUDPListenerAttributeAsync(const Model::SetLoadBalancerUDPListenerAttributeRequest& request, const SetLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerUDPListenerAttributeOutcomeCallable setLoadBalancerUDPListenerAttributeCallable(const Model::SetLoadBalancerUDPListenerAttributeRequest& request) const; diff --git a/slb/include/alibabacloud/slb/model/AddBackendServersResult.h b/slb/include/alibabacloud/slb/model/AddBackendServersResult.h index ff42d17bf..156879721 100644 --- a/slb/include/alibabacloud/slb/model/AddBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/AddBackendServersResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; std::string serverIp; std::string weight; }; diff --git a/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h b/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h index 4d311cda3..40f797754 100644 --- a/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h +++ b/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -66,6 +68,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h index c312a20c1..9eb1c96e1 100644 --- a/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; diff --git a/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h b/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h index 76b1a4056..8d8e705b4 100644 --- a/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getAclName()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud private: std::string access_key_id_; + std::string resourceGroupId_; long resourceOwnerId_; std::string aclName_; std::string resourceOwnerAccount_; diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h index 80d3486dc..db4f98954 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h @@ -81,12 +81,16 @@ namespace AlibabaCloud void setListenerPort(int listenerPort); std::string getCookie()const; void setCookie(const std::string& cookie); + std::string getHealthCheckType()const; + void setHealthCheckType(const std::string& healthCheckType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; void setBandwidth(int bandwidth); std::string getStickySession()const; void setStickySession(const std::string& stickySession); + std::string getHealthCheckMethod()const; + void setHealthCheckMethod(const std::string& healthCheckMethod); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); int getRequestTimeout()const; @@ -142,9 +146,11 @@ namespace AlibabaCloud std::string aclId_; int listenerPort_; std::string cookie_; + std::string healthCheckType_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; + std::string healthCheckMethod_; std::string healthCheckDomain_; int requestTimeout_; std::string ownerAccount_; diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h index 4a53f67fe..547bb190b 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h @@ -79,12 +79,16 @@ namespace AlibabaCloud void setListenerPort(int listenerPort); std::string getCookie()const; void setCookie(const std::string& cookie); + std::string getHealthCheckType()const; + void setHealthCheckType(const std::string& healthCheckType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; void setBandwidth(int bandwidth); std::string getStickySession()const; void setStickySession(const std::string& stickySession); + std::string getHealthCheckMethod()const; + void setHealthCheckMethod(const std::string& healthCheckMethod); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); int getRequestTimeout()const; @@ -101,6 +105,8 @@ namespace AlibabaCloud void setServerCertificateId(const std::string& serverCertificateId); std::string getCACertificateId()const; void setCACertificateId(const std::string& cACertificateId); + std::string getBackendProtocol()const; + void setBackendProtocol(const std::string& backendProtocol); std::string getTags()const; void setTags(const std::string& tags); int getIdleTimeout()const; @@ -145,9 +151,11 @@ namespace AlibabaCloud std::string aclId_; int listenerPort_; std::string cookie_; + std::string healthCheckType_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; + std::string healthCheckMethod_; std::string healthCheckDomain_; int requestTimeout_; std::string ownerAccount_; @@ -156,6 +164,7 @@ namespace AlibabaCloud long ownerId_; std::string serverCertificateId_; std::string cACertificateId_; + std::string backendProtocol_; std::string tags_; int idleTimeout_; std::string loadBalancerId_; diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h index 4d575bf1c..1d49b2ced 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h @@ -57,10 +57,14 @@ namespace AlibabaCloud void setAddressType(const std::string& addressType); std::string getSlaveZoneId()const; void setSlaveZoneId(const std::string& slaveZoneId); + std::string getDeleteProtection()const; + void setDeleteProtection(const std::string& deleteProtection); std::string getLoadBalancerSpec()const; void setLoadBalancerSpec(const std::string& loadBalancerSpec); bool getAutoPay()const; void setAutoPay(bool autoPay); + std::string getAddress()const; + void setAddress(const std::string& address); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; @@ -83,6 +87,8 @@ namespace AlibabaCloud void setPayType(const std::string& payType); std::string getPricingCycle()const; void setPricingCycle(const std::string& pricingCycle); + int getRatio()const; + void setRatio(int ratio); private: std::string access_key_id_; @@ -96,8 +102,10 @@ namespace AlibabaCloud std::string regionId_; std::string addressType_; std::string slaveZoneId_; + std::string deleteProtection_; std::string loadBalancerSpec_; bool autoPay_; + std::string address_; std::string resourceOwnerAccount_; int bandwidth_; std::string ownerAccount_; @@ -109,6 +117,7 @@ namespace AlibabaCloud std::string vpcId_; std::string payType_; std::string pricingCycle_; + int ratio_; }; } diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h index 44493863f..8dc316a2e 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h @@ -77,6 +77,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; void setBandwidth(int bandwidth); + std::string getHealthCheckMethod()const; + void setHealthCheckMethod(const std::string& healthCheckMethod); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); std::string getOwnerAccount()const; @@ -120,6 +122,7 @@ namespace AlibabaCloud std::string healthCheckType_; std::string resourceOwnerAccount_; int bandwidth_; + std::string healthCheckMethod_; std::string healthCheckDomain_; std::string ownerAccount_; long ownerId_; diff --git a/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h index 64eeb3638..188474db8 100644 --- a/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h +++ b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string serverType; std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; diff --git a/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h index a4604ec32..5f0df20b1 100644 --- a/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h +++ b/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; std::string eniHost; int port; diff --git a/slb/include/alibabacloud/slb/model/CreateRulesRequest.h b/slb/include/alibabacloud/slb/model/CreateRulesRequest.h index eccbc31d1..5b5395162 100644 --- a/slb/include/alibabacloud/slb/model/CreateRulesRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateRulesRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -66,6 +68,7 @@ namespace AlibabaCloud std::string ruleList_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h index 763d6fac8..4651c50b8 100644 --- a/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h +++ b/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; diff --git a/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h b/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h index f623f8b50..894d49d81 100644 --- a/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -63,6 +65,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h index 8cabf476b..4ed891bb2 100644 --- a/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud explicit DescribeAccessControlListAttributeResult(const std::string &payload); ~DescribeAccessControlListAttributeResult(); std::vector getAclEntrys()const; + std::string getResourceGroupId()const; std::string getAclId()const; std::string getAddressIPVersion()const; std::vector getRelatedListeners()const; @@ -59,6 +60,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::vector aclEntrys_; + std::string resourceGroupId_; std::string aclId_; std::string addressIPVersion_; std::vector relatedListeners_; diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h index 53ccbaf2c..4dcd6993a 100644 --- a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h @@ -30,6 +30,11 @@ namespace AlibabaCloud { class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListsRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: DescribeAccessControlListsRequest(); @@ -55,10 +60,14 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getTags()const; void setTags(const std::string& tags); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getPageSize()const; void setPageSize(int pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); private: std::string access_key_id_; @@ -71,8 +80,10 @@ namespace AlibabaCloud int pageNumber_; std::string accessKeyId_; std::string tags_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; + std::vector tag_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h index e48716e34..99866d1e4 100644 --- a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h @@ -34,8 +34,15 @@ namespace AlibabaCloud public: struct Acl { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string resourceGroupId; std::string aclId; std::string addressIPVersion; + std::vector tags; std::string aclName; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h new file mode 100644 index 000000000..83f0f3105 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.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_SLB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest + { + + public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAddressType()const; + void setAddressType(const std::string& addressType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAddressIPVersion()const; + void setAddressIPVersion(const std::string& addressIPVersion); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string addressType_; + long ownerId_; + std::string addressIPVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.h b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.h new file mode 100644 index 000000000..be3e0fa40 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAvailableResourceResult : public ServiceResult + { + public: + struct AvailableResource + { + struct SupportResource + { + std::string addressIPVersion; + std::string addressType; + }; + std::vector supportResources; + std::string slaveZoneId; + std::string masterZoneId; + }; + + + DescribeAvailableResourceResult(); + explicit DescribeAvailableResourceResult(const std::string &payload); + ~DescribeAvailableResourceResult(); + std::vector getAvailableResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector availableResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.h b/slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.h index cd820316e..8f0055a65 100644 --- a/slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.h @@ -30,6 +30,11 @@ namespace AlibabaCloud { class ALIBABACLOUD_SLB_EXPORT DescribeCACertificatesRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: DescribeCACertificatesRequest(); @@ -47,6 +52,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::vector getTag()const; + void setTag(const std::vector& tag); long getOwnerId()const; void setOwnerId(long ownerId); std::string getCACertificateId()const; @@ -59,6 +66,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; + std::vector tag_; long ownerId_; std::string cACertificateId_; diff --git a/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h b/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h index 88cfc42ad..ca39da9cb 100644 --- a/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct CACertificate { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string fingerprint; std::string resourceGroupId; long expireTimeStamp; @@ -42,6 +47,7 @@ namespace AlibabaCloud std::string cACertificateName; std::string regionId; std::string expireTime; + std::vector tags; long createTimeStamp; std::string commonName; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.h b/slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.h index c639042da..b17c04479 100644 --- a/slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -63,6 +65,7 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h b/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h index 66639ae40..29e0c4325 100644 --- a/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud int port; std::string serverIp; std::string serverHealthStatus; + std::string protocol; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h index eefb5256f..9b2a7be7b 100644 --- a/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -63,6 +65,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h index a84664c03..5a2f36dd0 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); + bool getIncludeReservedData()const; + void setIncludeReservedData(bool includeReservedData); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getLoadBalancerId()const; @@ -54,6 +56,7 @@ namespace AlibabaCloud private: std::string access_key_id_; + bool includeReservedData_; long resourceOwnerId_; std::string loadBalancerId_; std::string regionId_; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h index 9fa43997c..17d8c06ba 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud { std::string listenerForward; int listenerPort; + std::string description; int forwardPort; std::string listenerProtocol; }; @@ -48,8 +49,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; std::string serverIp; int weight; }; @@ -67,6 +68,8 @@ namespace AlibabaCloud std::vector getListenerPortsAndProtocol()const; std::string getLoadBalancerId()const; std::vector getBackendServers()const; + std::string getHasReservedInfo()const; + std::string getReservedInfoBandwidth()const; std::string getLoadBalancerSpec()const; std::string getNetworkType()const; int getBandwidth()const; @@ -78,13 +81,17 @@ namespace AlibabaCloud std::string getRenewalStatus()const; std::string getRenewalCycUnit()const; std::string getPayType()const; + std::string getReservedInfoActiveTime()const; std::string getSlaveZoneId()const; std::string getInternetChargeType()const; std::string getRegionIdAlias()const; + std::string getReservedInfoInternetChargeType()const; std::string getLoadBalancerName()const; std::string getVpcId()const; + std::string getDeleteProtection()const; long getEndTimeStamp()const; std::string getRegionId()const; + std::string getReservedInfoOrderType()const; std::string getAddressType()const; std::string getLoadBalancerStatus()const; long getCreateTimeStamp()const; @@ -102,6 +109,8 @@ namespace AlibabaCloud std::vector listenerPortsAndProtocol_; std::string loadBalancerId_; std::vector backendServers_; + std::string hasReservedInfo_; + std::string reservedInfoBandwidth_; std::string loadBalancerSpec_; std::string networkType_; int bandwidth_; @@ -113,13 +122,17 @@ namespace AlibabaCloud std::string renewalStatus_; std::string renewalCycUnit_; std::string payType_; + std::string reservedInfoActiveTime_; std::string slaveZoneId_; std::string internetChargeType_; std::string regionIdAlias_; + std::string reservedInfoInternetChargeType_; std::string loadBalancerName_; std::string vpcId_; + std::string deleteProtection_; long endTimeStamp_; std::string regionId_; + std::string reservedInfoOrderType_; std::string addressType_; std::string loadBalancerStatus_; long createTimeStamp_; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h index 90675e397..8679bd274 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h @@ -57,6 +57,7 @@ namespace AlibabaCloud int getBackendServerPort()const; std::string getXForwardedFor_SLBID()const; int getHealthCheckConnectPort()const; + std::string getHealthCheckMethod()const; int getBandwidth()const; std::string getSecurityStatus()const; std::string getGzip()const; @@ -81,6 +82,7 @@ namespace AlibabaCloud std::string getHealthCheckDomain()const; std::string getXForwardedFor_proto()const; std::string getAclType()const; + std::string getHealthCheckType()const; protected: void parse(const std::string &payload); @@ -97,6 +99,7 @@ namespace AlibabaCloud int backendServerPort_; std::string xForwardedFor_SLBID_; int healthCheckConnectPort_; + std::string healthCheckMethod_; int bandwidth_; std::string securityStatus_; std::string gzip_; @@ -121,6 +124,7 @@ namespace AlibabaCloud std::string healthCheckDomain_; std::string xForwardedFor_proto_; std::string aclType_; + std::string healthCheckType_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h index d9ec4fbd2..7eee9e5e4 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h @@ -54,6 +54,7 @@ namespace AlibabaCloud int getCookieTimeout()const; int getMaxConnection()const; std::string getVServerGroupId()const; + int getBackendProtocol()const; std::string getDescription()const; int getUnhealthyThreshold()const; std::string getScheduler()const; @@ -64,6 +65,7 @@ namespace AlibabaCloud int getBackendServerPort()const; std::string getXForwardedFor_SLBID()const; int getHealthCheckConnectPort()const; + std::string getHealthCheckMethod()const; int getBandwidth()const; std::string getSecurityStatus()const; std::string getGzip()const; @@ -90,6 +92,7 @@ namespace AlibabaCloud std::string getXForwardedFor_proto()const; std::string getAclType()const; std::string getEnableHttp2()const; + std::string getHealthCheckType()const; protected: void parse(const std::string &payload); @@ -97,6 +100,7 @@ namespace AlibabaCloud int cookieTimeout_; int maxConnection_; std::string vServerGroupId_; + int backendProtocol_; std::string description_; int unhealthyThreshold_; std::string scheduler_; @@ -107,6 +111,7 @@ namespace AlibabaCloud int backendServerPort_; std::string xForwardedFor_SLBID_; int healthCheckConnectPort_; + std::string healthCheckMethod_; int bandwidth_; std::string securityStatus_; std::string gzip_; @@ -133,6 +138,7 @@ namespace AlibabaCloud std::string xForwardedFor_proto_; std::string aclType_; std::string enableHttp2_; + std::string healthCheckType_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h index 8eb4f2fb8..6b93f69b3 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h @@ -48,6 +48,7 @@ namespace AlibabaCloud int getBackendServerPort()const; int getPersistenceTimeout()const; int getHealthCheckConnectPort()const; + std::string getHealthCheckMethod()const; int getBandwidth()const; std::string getHealthCheckHttpCode()const; int getEstablishedTimeout()const; @@ -78,6 +79,7 @@ namespace AlibabaCloud int backendServerPort_; int persistenceTimeout_; int healthCheckConnectPort_; + std::string healthCheckMethod_; int bandwidth_; std::string healthCheckHttpCode_; int establishedTimeout_; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h index f93e55357..892cb0a6d 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h @@ -30,6 +30,11 @@ namespace AlibabaCloud { class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancersRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: DescribeLoadBalancersRequest(); @@ -59,6 +64,8 @@ namespace AlibabaCloud void setAddressType(const std::string& addressType); std::string getSlaveZoneId()const; void setSlaveZoneId(const std::string& slaveZoneId); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getFuzzy()const; void setFuzzy(const std::string& fuzzy); std::string getAddress()const; @@ -101,6 +108,7 @@ namespace AlibabaCloud int pageSize_; std::string addressType_; std::string slaveZoneId_; + std::vector tag_; std::string fuzzy_; std::string address_; std::string resourceOwnerAccount_; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h index 2e22ef4f3..377fc94b4 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct LoadBalancer { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string address; std::string resourceGroupId; std::string vSwitchId; @@ -50,6 +55,7 @@ namespace AlibabaCloud std::string regionId; std::string addressType; std::string loadBalancerStatus; + std::vector tags; std::string masterZoneId; long createTimeStamp; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h index 61683861f..491a36a03 100644 --- a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string serverType; std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; @@ -49,6 +49,7 @@ namespace AlibabaCloud explicit DescribeMasterSlaveServerGroupAttributeResult(const std::string &payload); ~DescribeMasterSlaveServerGroupAttributeResult(); std::string getMasterSlaveServerGroupId()const; + std::string getLoadBalancerId()const; std::string getMasterSlaveServerGroupName()const; std::vector getMasterSlaveBackendServers()const; @@ -56,6 +57,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string masterSlaveServerGroupId_; + std::string loadBalancerId_; std::string masterSlaveServerGroupName_; std::vector masterSlaveBackendServers_; diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h index 2843d17ec..9481e0fcd 100644 --- a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; std::string eniHost; int port; diff --git a/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h index 4f900eca1..fe0b12112 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud int getUnhealthyThreshold()const; std::string getScheduler()const; std::string getHealthCheckURI()const; + std::string getRuleId()const; std::string getHealthCheck()const; std::string getLoadBalancerId()const; int getHealthCheckTimeout()const; @@ -70,6 +71,7 @@ namespace AlibabaCloud int unhealthyThreshold_; std::string scheduler_; std::string healthCheckURI_; + std::string ruleId_; std::string healthCheck_; std::string loadBalancerId_; int healthCheckTimeout_; diff --git a/slb/include/alibabacloud/slb/model/DescribeRulesRequest.h b/slb/include/alibabacloud/slb/model/DescribeRulesRequest.h index 66acad1d9..480e737d1 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRulesRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeRulesRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -63,6 +65,7 @@ namespace AlibabaCloud std::string regionId_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h index cc5e5ea7d..0535d96ce 100644 --- a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h @@ -30,6 +30,11 @@ namespace AlibabaCloud { class ALIBABACLOUD_SLB_EXPORT DescribeServerCertificatesRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: DescribeServerCertificatesRequest(); @@ -47,6 +52,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::vector getTag()const; + void setTag(const std::vector& tag); long getOwnerId()const; void setOwnerId(long ownerId); std::string getServerCertificateId()const; @@ -61,6 +68,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; + std::vector tag_; long ownerId_; std::string serverCertificateId_; std::string tags_; diff --git a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h index 8b94bbc11..27e8c0600 100644 --- a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct ServerCertificate { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string fingerprint; std::string resourceGroupId; long expireTimeStamp; @@ -47,6 +52,7 @@ namespace AlibabaCloud std::string serverCertificateName; std::string regionId; std::string expireTime; + std::vector tags; long createTimeStamp; std::string commonName; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h index 7146ef246..a58df8827 100644 --- a/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; @@ -49,6 +49,7 @@ namespace AlibabaCloud ~DescribeVServerGroupAttributeResult(); std::string getVServerGroupId()const; std::string getVServerGroupName()const; + std::string getLoadBalancerId()const; std::vector getBackendServers()const; protected: @@ -56,6 +57,7 @@ namespace AlibabaCloud private: std::string vServerGroupId_; std::string vServerGroupName_; + std::string loadBalancerId_; std::vector backendServers_; }; diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h index 8389480f1..043aa346d 100644 --- a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h @@ -39,37 +39,40 @@ namespace AlibabaCloud void setAccess_key_id(const std::string& access_key_id); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getLoadBalancerId()const; - void setLoadBalancerId(const std::string& loadBalancerId); bool getAutoPay()const; void setAutoPay(bool autoPay); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; void setBandwidth(int bandwidth); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); std::string getTags()const; void setTags(const std::string& tags); + std::string getLoadBalancerId()const; + void setLoadBalancerId(const std::string& loadBalancerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + int getRatio()const; + void setRatio(int ratio); private: std::string access_key_id_; long resourceOwnerId_; - std::string loadBalancerId_; bool autoPay_; - std::string regionId_; std::string resourceOwnerAccount_; int bandwidth_; - std::string internetChargeType_; std::string ownerAccount_; long ownerId_; std::string tags_; + std::string loadBalancerId_; + std::string regionId_; + std::string internetChargeType_; + int ratio_; }; } diff --git a/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h index 6ae9556ec..008c8f1e7 100644 --- a/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; diff --git a/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h b/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h index 78180073e..93cd1e5f5 100644 --- a/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; std::string serverIp; int weight; diff --git a/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h b/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h index dd0b4f56c..50e92a867 100644 --- a/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h +++ b/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -66,6 +68,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h index 9b07a0901..79e370e08 100644 --- a/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; diff --git a/slb/include/alibabacloud/slb/model/SetBackendServersResult.h b/slb/include/alibabacloud/slb/model/SetBackendServersResult.h index 5de78c6e7..16d1184a4 100644 --- a/slb/include/alibabacloud/slb/model/SetBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/SetBackendServersResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; std::string serverIp; std::string weight; }; diff --git a/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h b/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h index 178c040f7..42589da21 100644 --- a/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h +++ b/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setAccessControlStatus(const std::string& accessControlStatus); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -66,6 +68,7 @@ namespace AlibabaCloud std::string ownerAccount_; std::string accessControlStatus_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h new file mode 100644 index 000000000..a5f3b6ac0 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.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_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerDeleteProtectionRequest : public RpcServiceRequest + { + + public: + SetLoadBalancerDeleteProtectionRequest(); + ~SetLoadBalancerDeleteProtectionRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getLoadBalancerId()const; + void setLoadBalancerId(const std::string& loadBalancerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDeleteProtection()const; + void setDeleteProtection(const std::string& deleteProtection); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string loadBalancerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string deleteProtection_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h new file mode 100644 index 000000000..9d477cdd4 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerDeleteProtectionResult : public ServiceResult + { + public: + + + SetLoadBalancerDeleteProtectionResult(); + explicit SetLoadBalancerDeleteProtectionResult(const std::string &payload); + ~SetLoadBalancerDeleteProtectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h index d04b7520d..3f66aa6eb 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h @@ -77,12 +77,16 @@ namespace AlibabaCloud void setListenerPort(int listenerPort); std::string getCookie()const; void setCookie(const std::string& cookie); + std::string getHealthCheckType()const; + void setHealthCheckType(const std::string& healthCheckType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; void setBandwidth(int bandwidth); std::string getStickySession()const; void setStickySession(const std::string& stickySession); + std::string getHealthCheckMethod()const; + void setHealthCheckMethod(const std::string& healthCheckMethod); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); int getRequestTimeout()const; @@ -136,9 +140,11 @@ namespace AlibabaCloud std::string aclId_; int listenerPort_; std::string cookie_; + std::string healthCheckType_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; + std::string healthCheckMethod_; std::string healthCheckDomain_; int requestTimeout_; std::string ownerAccount_; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h index 927496747..d16db1370 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h @@ -79,12 +79,16 @@ namespace AlibabaCloud void setListenerPort(int listenerPort); std::string getCookie()const; void setCookie(const std::string& cookie); + std::string getHealthCheckType()const; + void setHealthCheckType(const std::string& healthCheckType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; void setBandwidth(int bandwidth); std::string getStickySession()const; void setStickySession(const std::string& stickySession); + std::string getHealthCheckMethod()const; + void setHealthCheckMethod(const std::string& healthCheckMethod); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); int getRequestTimeout()const; @@ -101,6 +105,8 @@ namespace AlibabaCloud void setServerCertificateId(const std::string& serverCertificateId); std::string getCACertificateId()const; void setCACertificateId(const std::string& cACertificateId); + std::string getBackendProtocol()const; + void setBackendProtocol(const std::string& backendProtocol); std::string getTags()const; void setTags(const std::string& tags); int getIdleTimeout()const; @@ -145,9 +151,11 @@ namespace AlibabaCloud std::string aclId_; int listenerPort_; std::string cookie_; + std::string healthCheckType_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; + std::string healthCheckMethod_; std::string healthCheckDomain_; int requestTimeout_; std::string ownerAccount_; @@ -156,6 +164,7 @@ namespace AlibabaCloud long ownerId_; std::string serverCertificateId_; std::string cACertificateId_; + std::string backendProtocol_; std::string tags_; int idleTimeout_; std::string loadBalancerId_; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h index bb32a58fe..5d5e621d2 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h @@ -79,6 +79,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); int getBandwidth()const; void setBandwidth(int bandwidth); + std::string getHealthCheckMethod()const; + void setHealthCheckMethod(const std::string& healthCheckMethod); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); std::string getOwnerAccount()const; @@ -125,6 +127,7 @@ namespace AlibabaCloud std::string healthCheckType_; std::string resourceOwnerAccount_; int bandwidth_; + std::string healthCheckMethod_; std::string healthCheckDomain_; std::string ownerAccount_; std::string synProxy_; diff --git a/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h index 322cbe707..392dd7b1d 100644 --- a/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string serverId; + std::string description; std::string vpcId; - std::string eniHost; int port; std::string serverIp; int weight; diff --git a/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h b/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h index 67887f005..074e72cba 100644 --- a/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -63,6 +65,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h b/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h index 7f356aeea..e6ea7129d 100644 --- a/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getListenerProtocol()const; + void setListenerProtocol(const std::string& listenerProtocol); std::string getTags()const; void setTags(const std::string& tags); @@ -63,6 +65,7 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; }; diff --git a/slb/src/SlbClient.cc b/slb/src/SlbClient.cc index c1ef46c86..28f5db88b 100644 --- a/slb/src/SlbClient.cc +++ b/slb/src/SlbClient.cc @@ -159,42 +159,6 @@ SlbClient::DescribeMasterSlaveVServerGroupsOutcomeCallable SlbClient::describeMa return task->get_future(); } -SlbClient::StartLoadBalancerListenerOutcome SlbClient::startLoadBalancerListener(const StartLoadBalancerListenerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StartLoadBalancerListenerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StartLoadBalancerListenerOutcome(StartLoadBalancerListenerResult(outcome.result())); - else - return StartLoadBalancerListenerOutcome(outcome.error()); -} - -void SlbClient::startLoadBalancerListenerAsync(const StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, startLoadBalancerListener(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SlbClient::StartLoadBalancerListenerOutcomeCallable SlbClient::startLoadBalancerListenerCallable(const StartLoadBalancerListenerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->startLoadBalancerListener(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SlbClient::DescribeLoadBalancerTCPListenerAttributeOutcome SlbClient::describeLoadBalancerTCPListenerAttribute(const DescribeLoadBalancerTCPListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +195,42 @@ SlbClient::DescribeLoadBalancerTCPListenerAttributeOutcomeCallable SlbClient::de return task->get_future(); } +SlbClient::StartLoadBalancerListenerOutcome SlbClient::startLoadBalancerListener(const StartLoadBalancerListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartLoadBalancerListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartLoadBalancerListenerOutcome(StartLoadBalancerListenerResult(outcome.result())); + else + return StartLoadBalancerListenerOutcome(outcome.error()); +} + +void SlbClient::startLoadBalancerListenerAsync(const StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startLoadBalancerListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::StartLoadBalancerListenerOutcomeCallable SlbClient::startLoadBalancerListenerCallable(const StartLoadBalancerListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startLoadBalancerListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeListenerAccessControlAttributeOutcome SlbClient::describeListenerAccessControlAttribute(const DescribeListenerAccessControlAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,42 +303,6 @@ SlbClient::StopLoadBalancerListenerOutcomeCallable SlbClient::stopLoadBalancerLi return task->get_future(); } -SlbClient::SetLoadBalancerStatusOutcome SlbClient::setLoadBalancerStatus(const SetLoadBalancerStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetLoadBalancerStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetLoadBalancerStatusOutcome(SetLoadBalancerStatusResult(outcome.result())); - else - return SetLoadBalancerStatusOutcome(outcome.error()); -} - -void SlbClient::setLoadBalancerStatusAsync(const SetLoadBalancerStatusRequest& request, const SetLoadBalancerStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setLoadBalancerStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SlbClient::SetLoadBalancerStatusOutcomeCallable SlbClient::setLoadBalancerStatusCallable(const SetLoadBalancerStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setLoadBalancerStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SlbClient::ModifyLoadBalancerInstanceSpecOutcome SlbClient::modifyLoadBalancerInstanceSpec(const ModifyLoadBalancerInstanceSpecRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +339,42 @@ SlbClient::ModifyLoadBalancerInstanceSpecOutcomeCallable SlbClient::modifyLoadBa return task->get_future(); } +SlbClient::SetLoadBalancerStatusOutcome SlbClient::setLoadBalancerStatus(const SetLoadBalancerStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerStatusOutcome(SetLoadBalancerStatusResult(outcome.result())); + else + return SetLoadBalancerStatusOutcome(outcome.error()); +} + +void SlbClient::setLoadBalancerStatusAsync(const SetLoadBalancerStatusRequest& request, const SetLoadBalancerStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetLoadBalancerStatusOutcomeCallable SlbClient::setLoadBalancerStatusCallable(const SetLoadBalancerStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::MoveResourceGroupOutcome SlbClient::moveResourceGroup(const MoveResourceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,42 +447,6 @@ SlbClient::SetLoadBalancerTCPListenerAttributeOutcomeCallable SlbClient::setLoad return task->get_future(); } -SlbClient::DeleteVServerGroupOutcome SlbClient::deleteVServerGroup(const DeleteVServerGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVServerGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVServerGroupOutcome(DeleteVServerGroupResult(outcome.result())); - else - return DeleteVServerGroupOutcome(outcome.error()); -} - -void SlbClient::deleteVServerGroupAsync(const DeleteVServerGroupRequest& request, const DeleteVServerGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVServerGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SlbClient::DeleteVServerGroupOutcomeCallable SlbClient::deleteVServerGroupCallable(const DeleteVServerGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVServerGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SlbClient::DescribeVServerGroupAttributeOutcome SlbClient::describeVServerGroupAttribute(const DescribeVServerGroupAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +483,42 @@ SlbClient::DescribeVServerGroupAttributeOutcomeCallable SlbClient::describeVServ return task->get_future(); } +SlbClient::DeleteVServerGroupOutcome SlbClient::deleteVServerGroup(const DeleteVServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVServerGroupOutcome(DeleteVServerGroupResult(outcome.result())); + else + return DeleteVServerGroupOutcome(outcome.error()); +} + +void SlbClient::deleteVServerGroupAsync(const DeleteVServerGroupRequest& request, const DeleteVServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteVServerGroupOutcomeCallable SlbClient::deleteVServerGroupCallable(const DeleteVServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::AddListenerWhiteListItemOutcome SlbClient::addListenerWhiteListItem(const AddListenerWhiteListItemRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,42 +555,6 @@ SlbClient::AddListenerWhiteListItemOutcomeCallable SlbClient::addListenerWhiteLi return task->get_future(); } -SlbClient::RemoveTagsOutcome SlbClient::removeTags(const RemoveTagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveTagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveTagsOutcome(RemoveTagsResult(outcome.result())); - else - return RemoveTagsOutcome(outcome.error()); -} - -void SlbClient::removeTagsAsync(const RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeTags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SlbClient::RemoveTagsOutcomeCallable SlbClient::removeTagsCallable(const RemoveTagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeTags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SlbClient::CreateLoadBalancerOutcome SlbClient::createLoadBalancer(const CreateLoadBalancerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +591,42 @@ SlbClient::CreateLoadBalancerOutcomeCallable SlbClient::createLoadBalancerCallab return task->get_future(); } +SlbClient::RemoveTagsOutcome SlbClient::removeTags(const RemoveTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagsOutcome(RemoveTagsResult(outcome.result())); + else + return RemoveTagsOutcome(outcome.error()); +} + +void SlbClient::removeTagsAsync(const RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::RemoveTagsOutcomeCallable SlbClient::removeTagsCallable(const RemoveTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::SetLoadBalancerHTTPListenerAttributeOutcome SlbClient::setLoadBalancerHTTPListenerAttribute(const SetLoadBalancerHTTPListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,36 +735,36 @@ SlbClient::SetLoadBalancerAutoReleaseTimeOutcomeCallable SlbClient::setLoadBalan return task->get_future(); } -SlbClient::SetListenerAccessControlStatusOutcome SlbClient::setListenerAccessControlStatus(const SetListenerAccessControlStatusRequest &request) const +SlbClient::SetLoadBalancerDeleteProtectionOutcome SlbClient::setLoadBalancerDeleteProtection(const SetLoadBalancerDeleteProtectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SetListenerAccessControlStatusOutcome(endpointOutcome.error()); + return SetLoadBalancerDeleteProtectionOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SetListenerAccessControlStatusOutcome(SetListenerAccessControlStatusResult(outcome.result())); + return SetLoadBalancerDeleteProtectionOutcome(SetLoadBalancerDeleteProtectionResult(outcome.result())); else - return SetListenerAccessControlStatusOutcome(outcome.error()); + return SetLoadBalancerDeleteProtectionOutcome(outcome.error()); } -void SlbClient::setListenerAccessControlStatusAsync(const SetListenerAccessControlStatusRequest& request, const SetListenerAccessControlStatusAsyncHandler& handler, const std::shared_ptr& context) const +void SlbClient::setLoadBalancerDeleteProtectionAsync(const SetLoadBalancerDeleteProtectionRequest& request, const SetLoadBalancerDeleteProtectionAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, setListenerAccessControlStatus(request), context); + handler(this, request, setLoadBalancerDeleteProtection(request), context); }; asyncExecute(new Runnable(fn)); } -SlbClient::SetListenerAccessControlStatusOutcomeCallable SlbClient::setListenerAccessControlStatusCallable(const SetListenerAccessControlStatusRequest &request) const +SlbClient::SetLoadBalancerDeleteProtectionOutcomeCallable SlbClient::setLoadBalancerDeleteProtectionCallable(const SetLoadBalancerDeleteProtectionRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->setListenerAccessControlStatus(request); + return this->setLoadBalancerDeleteProtection(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -807,6 +807,42 @@ SlbClient::UploadCACertificateOutcomeCallable SlbClient::uploadCACertificateCall return task->get_future(); } +SlbClient::SetListenerAccessControlStatusOutcome SlbClient::setListenerAccessControlStatus(const SetListenerAccessControlStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetListenerAccessControlStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetListenerAccessControlStatusOutcome(SetListenerAccessControlStatusResult(outcome.result())); + else + return SetListenerAccessControlStatusOutcome(outcome.error()); +} + +void SlbClient::setListenerAccessControlStatusAsync(const SetListenerAccessControlStatusRequest& request, const SetListenerAccessControlStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setListenerAccessControlStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetListenerAccessControlStatusOutcomeCallable SlbClient::setListenerAccessControlStatusCallable(const SetListenerAccessControlStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setListenerAccessControlStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeZonesOutcome SlbClient::describeZones(const DescribeZonesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1023,42 @@ SlbClient::DescribeVServerGroupsOutcomeCallable SlbClient::describeVServerGroups return task->get_future(); } +SlbClient::DescribeAvailableResourceOutcome SlbClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result())); + else + return DescribeAvailableResourceOutcome(outcome.error()); +} + +void SlbClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeAvailableResourceOutcomeCallable SlbClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeLoadBalancerHTTPListenerAttributeOutcome SlbClient::describeLoadBalancerHTTPListenerAttribute(const DescribeLoadBalancerHTTPListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,42 +1419,6 @@ SlbClient::RemoveBackendServersOutcomeCallable SlbClient::removeBackendServersCa return task->get_future(); } -SlbClient::AddAccessControlListEntryOutcome SlbClient::addAccessControlListEntry(const AddAccessControlListEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddAccessControlListEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddAccessControlListEntryOutcome(AddAccessControlListEntryResult(outcome.result())); - else - return AddAccessControlListEntryOutcome(outcome.error()); -} - -void SlbClient::addAccessControlListEntryAsync(const AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addAccessControlListEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SlbClient::AddAccessControlListEntryOutcomeCallable SlbClient::addAccessControlListEntryCallable(const AddAccessControlListEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addAccessControlListEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SlbClient::ModifyVServerGroupBackendServersOutcome SlbClient::modifyVServerGroupBackendServers(const ModifyVServerGroupBackendServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1455,42 @@ SlbClient::ModifyVServerGroupBackendServersOutcomeCallable SlbClient::modifyVSer return task->get_future(); } +SlbClient::AddAccessControlListEntryOutcome SlbClient::addAccessControlListEntry(const AddAccessControlListEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddAccessControlListEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddAccessControlListEntryOutcome(AddAccessControlListEntryResult(outcome.result())); + else + return AddAccessControlListEntryOutcome(outcome.error()); +} + +void SlbClient::addAccessControlListEntryAsync(const AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addAccessControlListEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::AddAccessControlListEntryOutcomeCallable SlbClient::addAccessControlListEntryCallable(const AddAccessControlListEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addAccessControlListEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeSlbQuotasOutcome SlbClient::describeSlbQuotas(const DescribeSlbQuotasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,42 +1527,6 @@ SlbClient::DescribeSlbQuotasOutcomeCallable SlbClient::describeSlbQuotasCallable return task->get_future(); } -SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcome SlbClient::describeLoadBalancerUDPListenerAttribute(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLoadBalancerUDPListenerAttributeOutcome(DescribeLoadBalancerUDPListenerAttributeResult(outcome.result())); - else - return DescribeLoadBalancerUDPListenerAttributeOutcome(outcome.error()); -} - -void SlbClient::describeLoadBalancerUDPListenerAttributeAsync(const DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLoadBalancerUDPListenerAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcomeCallable SlbClient::describeLoadBalancerUDPListenerAttributeCallable(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLoadBalancerUDPListenerAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SlbClient::DeleteRulesOutcome SlbClient::deleteRules(const DeleteRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1563,42 @@ SlbClient::DeleteRulesOutcomeCallable SlbClient::deleteRulesCallable(const Delet return task->get_future(); } +SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcome SlbClient::describeLoadBalancerUDPListenerAttribute(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerUDPListenerAttributeOutcome(DescribeLoadBalancerUDPListenerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerUDPListenerAttributeOutcome(outcome.error()); +} + +void SlbClient::describeLoadBalancerUDPListenerAttributeAsync(const DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerUDPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcomeCallable SlbClient::describeLoadBalancerUDPListenerAttributeCallable(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerUDPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DeleteMasterSlaveVServerGroupOutcome SlbClient::deleteMasterSlaveVServerGroup(const DeleteMasterSlaveVServerGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2931,42 +3003,6 @@ SlbClient::AddBackendServersOutcomeCallable SlbClient::addBackendServersCallable return task->get_future(); } -SlbClient::CreateRulesOutcome SlbClient::createRules(const CreateRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateRulesOutcome(CreateRulesResult(outcome.result())); - else - return CreateRulesOutcome(outcome.error()); -} - -void SlbClient::createRulesAsync(const CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SlbClient::CreateRulesOutcomeCallable SlbClient::createRulesCallable(const CreateRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SlbClient::AddVServerGroupBackendServersOutcome SlbClient::addVServerGroupBackendServers(const AddVServerGroupBackendServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3003,6 +3039,42 @@ SlbClient::AddVServerGroupBackendServersOutcomeCallable SlbClient::addVServerGro return task->get_future(); } +SlbClient::CreateRulesOutcome SlbClient::createRules(const CreateRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRulesOutcome(CreateRulesResult(outcome.result())); + else + return CreateRulesOutcome(outcome.error()); +} + +void SlbClient::createRulesAsync(const CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateRulesOutcomeCallable SlbClient::createRulesCallable(const CreateRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::SetLoadBalancerUDPListenerAttributeOutcome SlbClient::setLoadBalancerUDPListenerAttribute(const SetLoadBalancerUDPListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/slb/src/model/AddAccessControlListEntryRequest.cc b/slb/src/model/AddAccessControlListEntryRequest.cc index 66a4a457e..ba63b2ba6 100644 --- a/slb/src/model/AddAccessControlListEntryRequest.cc +++ b/slb/src/model/AddAccessControlListEntryRequest.cc @@ -33,7 +33,7 @@ std::string AddAccessControlListEntryRequest::getAccess_key_id()const void AddAccessControlListEntryRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string AddAccessControlListEntryRequest::getAclId()const @@ -44,7 +44,7 @@ std::string AddAccessControlListEntryRequest::getAclId()const void AddAccessControlListEntryRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long AddAccessControlListEntryRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long AddAccessControlListEntryRequest::getResourceOwnerId()const void AddAccessControlListEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddAccessControlListEntryRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddAccessControlListEntryRequest::getResourceOwnerAccount()const void AddAccessControlListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddAccessControlListEntryRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string AddAccessControlListEntryRequest::getRegionId()const void AddAccessControlListEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddAccessControlListEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string AddAccessControlListEntryRequest::getOwnerAccount()const void AddAccessControlListEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddAccessControlListEntryRequest::getAclEntrys()const @@ -99,7 +99,7 @@ std::string AddAccessControlListEntryRequest::getAclEntrys()const void AddAccessControlListEntryRequest::setAclEntrys(const std::string& aclEntrys) { aclEntrys_ = aclEntrys; - setParameter("AclEntrys", aclEntrys); + setCoreParameter("AclEntrys", aclEntrys); } long AddAccessControlListEntryRequest::getOwnerId()const @@ -110,7 +110,7 @@ long AddAccessControlListEntryRequest::getOwnerId()const void AddAccessControlListEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddAccessControlListEntryRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string AddAccessControlListEntryRequest::getAccessKeyId()const void AddAccessControlListEntryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AddAccessControlListEntryRequest::getTags()const @@ -132,6 +132,6 @@ std::string AddAccessControlListEntryRequest::getTags()const void AddAccessControlListEntryRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/AddAccessControlListEntryResult.cc b/slb/src/model/AddAccessControlListEntryResult.cc index 9c369edb8..2a4fd28df 100644 --- a/slb/src/model/AddAccessControlListEntryResult.cc +++ b/slb/src/model/AddAccessControlListEntryResult.cc @@ -35,10 +35,13 @@ AddAccessControlListEntryResult::~AddAccessControlListEntryResult() void AddAccessControlListEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/AddBackendServersRequest.cc b/slb/src/model/AddBackendServersRequest.cc index dfae06468..fe284a71d 100644 --- a/slb/src/model/AddBackendServersRequest.cc +++ b/slb/src/model/AddBackendServersRequest.cc @@ -33,7 +33,7 @@ std::string AddBackendServersRequest::getAccess_key_id()const void AddBackendServersRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long AddBackendServersRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AddBackendServersRequest::getResourceOwnerId()const void AddBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddBackendServersRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string AddBackendServersRequest::getLoadBalancerId()const void AddBackendServersRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string AddBackendServersRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string AddBackendServersRequest::getRegionId()const void AddBackendServersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddBackendServersRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string AddBackendServersRequest::getResourceOwnerAccount()const void AddBackendServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddBackendServersRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string AddBackendServersRequest::getOwnerAccount()const void AddBackendServersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddBackendServersRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddBackendServersRequest::getOwnerId()const void AddBackendServersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddBackendServersRequest::getBackendServers()const @@ -110,7 +110,7 @@ std::string AddBackendServersRequest::getBackendServers()const void AddBackendServersRequest::setBackendServers(const std::string& backendServers) { backendServers_ = backendServers; - setParameter("BackendServers", backendServers); + setCoreParameter("BackendServers", backendServers); } std::string AddBackendServersRequest::getTags()const @@ -121,6 +121,6 @@ std::string AddBackendServersRequest::getTags()const void AddBackendServersRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/AddBackendServersResult.cc b/slb/src/model/AddBackendServersResult.cc index 15769d445..b26f3cbaf 100644 --- a/slb/src/model/AddBackendServersResult.cc +++ b/slb/src/model/AddBackendServersResult.cc @@ -35,10 +35,13 @@ AddBackendServersResult::~AddBackendServersResult() void AddBackendServersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -52,10 +55,10 @@ void AddBackendServersResult::parse(const std::string &payload) backendServersObject.serverIp = value["ServerIp"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["Type"].isNull()) backendServersObject.type = value["Type"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["LoadBalancerId"].isNull()) diff --git a/slb/src/model/AddListenerWhiteListItemRequest.cc b/slb/src/model/AddListenerWhiteListItemRequest.cc index dc9212d53..b4f8db214 100644 --- a/slb/src/model/AddListenerWhiteListItemRequest.cc +++ b/slb/src/model/AddListenerWhiteListItemRequest.cc @@ -33,7 +33,7 @@ std::string AddListenerWhiteListItemRequest::getAccess_key_id()const void AddListenerWhiteListItemRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long AddListenerWhiteListItemRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AddListenerWhiteListItemRequest::getResourceOwnerId()const void AddListenerWhiteListItemRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int AddListenerWhiteListItemRequest::getListenerPort()const @@ -55,7 +55,7 @@ int AddListenerWhiteListItemRequest::getListenerPort()const void AddListenerWhiteListItemRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string AddListenerWhiteListItemRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string AddListenerWhiteListItemRequest::getLoadBalancerId()const void AddListenerWhiteListItemRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string AddListenerWhiteListItemRequest::getSourceItems()const @@ -77,7 +77,7 @@ std::string AddListenerWhiteListItemRequest::getSourceItems()const void AddListenerWhiteListItemRequest::setSourceItems(const std::string& sourceItems) { sourceItems_ = sourceItems; - setParameter("SourceItems", sourceItems); + setCoreParameter("SourceItems", sourceItems); } std::string AddListenerWhiteListItemRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string AddListenerWhiteListItemRequest::getRegionId()const void AddListenerWhiteListItemRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddListenerWhiteListItemRequest::getResourceOwnerAccount()const @@ -99,7 +99,7 @@ std::string AddListenerWhiteListItemRequest::getResourceOwnerAccount()const void AddListenerWhiteListItemRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddListenerWhiteListItemRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string AddListenerWhiteListItemRequest::getOwnerAccount()const void AddListenerWhiteListItemRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddListenerWhiteListItemRequest::getOwnerId()const @@ -121,7 +121,18 @@ long AddListenerWhiteListItemRequest::getOwnerId()const void AddListenerWhiteListItemRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddListenerWhiteListItemRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void AddListenerWhiteListItemRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string AddListenerWhiteListItemRequest::getTags()const @@ -132,6 +143,6 @@ std::string AddListenerWhiteListItemRequest::getTags()const void AddListenerWhiteListItemRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/AddListenerWhiteListItemResult.cc b/slb/src/model/AddListenerWhiteListItemResult.cc index 9a69510a4..634560e52 100644 --- a/slb/src/model/AddListenerWhiteListItemResult.cc +++ b/slb/src/model/AddListenerWhiteListItemResult.cc @@ -35,10 +35,13 @@ AddListenerWhiteListItemResult::~AddListenerWhiteListItemResult() void AddListenerWhiteListItemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/AddTagsRequest.cc b/slb/src/model/AddTagsRequest.cc index a4d99fed2..b4d0fc50a 100644 --- a/slb/src/model/AddTagsRequest.cc +++ b/slb/src/model/AddTagsRequest.cc @@ -33,7 +33,7 @@ std::string AddTagsRequest::getAccess_key_id()const void AddTagsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long AddTagsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AddTagsRequest::getResourceOwnerId()const void AddTagsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddTagsRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string AddTagsRequest::getLoadBalancerId()const void AddTagsRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string AddTagsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddTagsRequest::getResourceOwnerAccount()const void AddTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddTagsRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string AddTagsRequest::getRegionId()const void AddTagsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddTagsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string AddTagsRequest::getOwnerAccount()const void AddTagsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddTagsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddTagsRequest::getOwnerId()const void AddTagsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddTagsRequest::getTags()const @@ -110,6 +110,6 @@ std::string AddTagsRequest::getTags()const void AddTagsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/AddTagsResult.cc b/slb/src/model/AddTagsResult.cc index 86082cab7..d06b1c77b 100644 --- a/slb/src/model/AddTagsResult.cc +++ b/slb/src/model/AddTagsResult.cc @@ -35,10 +35,13 @@ AddTagsResult::~AddTagsResult() void AddTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/AddVServerGroupBackendServersRequest.cc b/slb/src/model/AddVServerGroupBackendServersRequest.cc index 46b2c4110..aed1e1585 100644 --- a/slb/src/model/AddVServerGroupBackendServersRequest.cc +++ b/slb/src/model/AddVServerGroupBackendServersRequest.cc @@ -33,7 +33,7 @@ std::string AddVServerGroupBackendServersRequest::getAccess_key_id()const void AddVServerGroupBackendServersRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string AddVServerGroupBackendServersRequest::getVServerGroupId()const @@ -44,7 +44,7 @@ std::string AddVServerGroupBackendServersRequest::getVServerGroupId()const void AddVServerGroupBackendServersRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } long AddVServerGroupBackendServersRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long AddVServerGroupBackendServersRequest::getResourceOwnerId()const void AddVServerGroupBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddVServerGroupBackendServersRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddVServerGroupBackendServersRequest::getResourceOwnerAccount()const void AddVServerGroupBackendServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddVServerGroupBackendServersRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string AddVServerGroupBackendServersRequest::getRegionId()const void AddVServerGroupBackendServersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddVServerGroupBackendServersRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string AddVServerGroupBackendServersRequest::getOwnerAccount()const void AddVServerGroupBackendServersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddVServerGroupBackendServersRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddVServerGroupBackendServersRequest::getOwnerId()const void AddVServerGroupBackendServersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddVServerGroupBackendServersRequest::getBackendServers()const @@ -110,7 +110,7 @@ std::string AddVServerGroupBackendServersRequest::getBackendServers()const void AddVServerGroupBackendServersRequest::setBackendServers(const std::string& backendServers) { backendServers_ = backendServers; - setParameter("BackendServers", backendServers); + setCoreParameter("BackendServers", backendServers); } std::string AddVServerGroupBackendServersRequest::getTags()const @@ -121,6 +121,6 @@ std::string AddVServerGroupBackendServersRequest::getTags()const void AddVServerGroupBackendServersRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/AddVServerGroupBackendServersResult.cc b/slb/src/model/AddVServerGroupBackendServersResult.cc index 654300282..f9dca7499 100644 --- a/slb/src/model/AddVServerGroupBackendServersResult.cc +++ b/slb/src/model/AddVServerGroupBackendServersResult.cc @@ -35,10 +35,13 @@ AddVServerGroupBackendServersResult::~AddVServerGroupBackendServersResult() void AddVServerGroupBackendServersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -54,10 +57,10 @@ void AddVServerGroupBackendServersResult::parse(const std::string &payload) backendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) backendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["VServerGroupId"].isNull()) diff --git a/slb/src/model/CreateAccessControlListRequest.cc b/slb/src/model/CreateAccessControlListRequest.cc index 45afb3cd3..d6b6da851 100644 --- a/slb/src/model/CreateAccessControlListRequest.cc +++ b/slb/src/model/CreateAccessControlListRequest.cc @@ -33,7 +33,18 @@ std::string CreateAccessControlListRequest::getAccess_key_id()const void CreateAccessControlListRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); +} + +std::string CreateAccessControlListRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateAccessControlListRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); } long CreateAccessControlListRequest::getResourceOwnerId()const @@ -44,7 +55,7 @@ long CreateAccessControlListRequest::getResourceOwnerId()const void CreateAccessControlListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateAccessControlListRequest::getAclName()const @@ -55,7 +66,7 @@ std::string CreateAccessControlListRequest::getAclName()const void CreateAccessControlListRequest::setAclName(const std::string& aclName) { aclName_ = aclName; - setParameter("AclName", aclName); + setCoreParameter("AclName", aclName); } std::string CreateAccessControlListRequest::getResourceOwnerAccount()const @@ -66,7 +77,7 @@ std::string CreateAccessControlListRequest::getResourceOwnerAccount()const void CreateAccessControlListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateAccessControlListRequest::getRegionId()const @@ -77,7 +88,7 @@ std::string CreateAccessControlListRequest::getRegionId()const void CreateAccessControlListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateAccessControlListRequest::getOwnerAccount()const @@ -88,7 +99,7 @@ std::string CreateAccessControlListRequest::getOwnerAccount()const void CreateAccessControlListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateAccessControlListRequest::getOwnerId()const @@ -99,7 +110,7 @@ long CreateAccessControlListRequest::getOwnerId()const void CreateAccessControlListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateAccessControlListRequest::getAddressIPVersion()const @@ -110,7 +121,7 @@ std::string CreateAccessControlListRequest::getAddressIPVersion()const void CreateAccessControlListRequest::setAddressIPVersion(const std::string& addressIPVersion) { addressIPVersion_ = addressIPVersion; - setParameter("AddressIPVersion", addressIPVersion); + setCoreParameter("AddressIPVersion", addressIPVersion); } std::string CreateAccessControlListRequest::getAccessKeyId()const @@ -121,7 +132,7 @@ std::string CreateAccessControlListRequest::getAccessKeyId()const void CreateAccessControlListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateAccessControlListRequest::getTags()const @@ -132,6 +143,6 @@ std::string CreateAccessControlListRequest::getTags()const void CreateAccessControlListRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/CreateAccessControlListResult.cc b/slb/src/model/CreateAccessControlListResult.cc index b1a8b40db..bd7ff8361 100644 --- a/slb/src/model/CreateAccessControlListResult.cc +++ b/slb/src/model/CreateAccessControlListResult.cc @@ -35,10 +35,13 @@ CreateAccessControlListResult::~CreateAccessControlListResult() void CreateAccessControlListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AclId"].isNull()) aclId_ = value["AclId"].asString(); diff --git a/slb/src/model/CreateDomainExtensionRequest.cc b/slb/src/model/CreateDomainExtensionRequest.cc index 8692bd773..f811c7450 100644 --- a/slb/src/model/CreateDomainExtensionRequest.cc +++ b/slb/src/model/CreateDomainExtensionRequest.cc @@ -33,7 +33,7 @@ std::string CreateDomainExtensionRequest::getAccess_key_id()const void CreateDomainExtensionRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateDomainExtensionRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateDomainExtensionRequest::getResourceOwnerId()const void CreateDomainExtensionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int CreateDomainExtensionRequest::getListenerPort()const @@ -55,7 +55,7 @@ int CreateDomainExtensionRequest::getListenerPort()const void CreateDomainExtensionRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string CreateDomainExtensionRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string CreateDomainExtensionRequest::getLoadBalancerId()const void CreateDomainExtensionRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateDomainExtensionRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateDomainExtensionRequest::getResourceOwnerAccount()const void CreateDomainExtensionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateDomainExtensionRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string CreateDomainExtensionRequest::getRegionId()const void CreateDomainExtensionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateDomainExtensionRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string CreateDomainExtensionRequest::getOwnerAccount()const void CreateDomainExtensionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateDomainExtensionRequest::getDomain()const @@ -110,7 +110,7 @@ std::string CreateDomainExtensionRequest::getDomain()const void CreateDomainExtensionRequest::setDomain(const std::string& domain) { domain_ = domain; - setParameter("Domain", domain); + setCoreParameter("Domain", domain); } long CreateDomainExtensionRequest::getOwnerId()const @@ -121,7 +121,7 @@ long CreateDomainExtensionRequest::getOwnerId()const void CreateDomainExtensionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateDomainExtensionRequest::getServerCertificateId()const @@ -132,7 +132,7 @@ std::string CreateDomainExtensionRequest::getServerCertificateId()const void CreateDomainExtensionRequest::setServerCertificateId(const std::string& serverCertificateId) { serverCertificateId_ = serverCertificateId; - setParameter("ServerCertificateId", serverCertificateId); + setCoreParameter("ServerCertificateId", serverCertificateId); } std::string CreateDomainExtensionRequest::getTags()const @@ -143,6 +143,6 @@ std::string CreateDomainExtensionRequest::getTags()const void CreateDomainExtensionRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/CreateDomainExtensionResult.cc b/slb/src/model/CreateDomainExtensionResult.cc index 4b55bc5ae..b921eabca 100644 --- a/slb/src/model/CreateDomainExtensionResult.cc +++ b/slb/src/model/CreateDomainExtensionResult.cc @@ -35,10 +35,13 @@ CreateDomainExtensionResult::~CreateDomainExtensionResult() void CreateDomainExtensionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ListenerPort"].isNull()) listenerPort_ = std::stoi(value["ListenerPort"].asString()); diff --git a/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc b/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc index 2b98d24fe..4403bac07 100644 --- a/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc @@ -33,7 +33,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getAccess_key_id()const void CreateLoadBalancerHTTPListenerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateLoadBalancerHTTPListenerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateLoadBalancerHTTPListenerRequest::getResourceOwnerId()const void CreateLoadBalancerHTTPListenerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int CreateLoadBalancerHTTPListenerRequest::getHealthCheckTimeout()const @@ -55,7 +55,7 @@ int CreateLoadBalancerHTTPListenerRequest::getHealthCheckTimeout()const void CreateLoadBalancerHTTPListenerRequest::setHealthCheckTimeout(int healthCheckTimeout) { healthCheckTimeout_ = healthCheckTimeout; - setParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); + setCoreParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); } std::string CreateLoadBalancerHTTPListenerRequest::getListenerForward()const @@ -66,7 +66,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getListenerForward()const void CreateLoadBalancerHTTPListenerRequest::setListenerForward(const std::string& listenerForward) { listenerForward_ = listenerForward; - setParameter("ListenerForward", listenerForward); + setCoreParameter("ListenerForward", listenerForward); } std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor()const @@ -77,7 +77,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor()const void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor(const std::string& xForwardedFor) { xForwardedFor_ = xForwardedFor; - setParameter("XForwardedFor", xForwardedFor); + setCoreParameter("XForwardedFor", xForwardedFor); } std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckURI()const @@ -88,7 +88,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckURI()const void CreateLoadBalancerHTTPListenerRequest::setHealthCheckURI(const std::string& healthCheckURI) { healthCheckURI_ = healthCheckURI; - setParameter("HealthCheckURI", healthCheckURI); + setCoreParameter("HealthCheckURI", healthCheckURI); } std::string CreateLoadBalancerHTTPListenerRequest::getDescription()const @@ -99,7 +99,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getDescription()const void CreateLoadBalancerHTTPListenerRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int CreateLoadBalancerHTTPListenerRequest::getUnhealthyThreshold()const @@ -110,7 +110,7 @@ int CreateLoadBalancerHTTPListenerRequest::getUnhealthyThreshold()const void CreateLoadBalancerHTTPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int CreateLoadBalancerHTTPListenerRequest::getHealthyThreshold()const @@ -121,7 +121,7 @@ int CreateLoadBalancerHTTPListenerRequest::getHealthyThreshold()const void CreateLoadBalancerHTTPListenerRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string CreateLoadBalancerHTTPListenerRequest::getAclStatus()const @@ -132,7 +132,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getAclStatus()const void CreateLoadBalancerHTTPListenerRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string CreateLoadBalancerHTTPListenerRequest::getScheduler()const @@ -143,7 +143,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getScheduler()const void CreateLoadBalancerHTTPListenerRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string CreateLoadBalancerHTTPListenerRequest::getAclType()const @@ -154,7 +154,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getAclType()const void CreateLoadBalancerHTTPListenerRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheck()const @@ -165,7 +165,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheck()const void CreateLoadBalancerHTTPListenerRequest::setHealthCheck(const std::string& healthCheck) { healthCheck_ = healthCheck; - setParameter("HealthCheck", healthCheck); + setCoreParameter("HealthCheck", healthCheck); } int CreateLoadBalancerHTTPListenerRequest::getForwardPort()const @@ -176,7 +176,7 @@ int CreateLoadBalancerHTTPListenerRequest::getForwardPort()const void CreateLoadBalancerHTTPListenerRequest::setForwardPort(int forwardPort) { forwardPort_ = forwardPort; - setParameter("ForwardPort", std::to_string(forwardPort)); + setCoreParameter("ForwardPort", std::to_string(forwardPort)); } int CreateLoadBalancerHTTPListenerRequest::getMaxConnection()const @@ -187,7 +187,7 @@ int CreateLoadBalancerHTTPListenerRequest::getMaxConnection()const void CreateLoadBalancerHTTPListenerRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string CreateLoadBalancerHTTPListenerRequest::getRegionId()const @@ -198,7 +198,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getRegionId()const void CreateLoadBalancerHTTPListenerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int CreateLoadBalancerHTTPListenerRequest::getCookieTimeout()const @@ -209,7 +209,7 @@ int CreateLoadBalancerHTTPListenerRequest::getCookieTimeout()const void CreateLoadBalancerHTTPListenerRequest::setCookieTimeout(int cookieTimeout) { cookieTimeout_ = cookieTimeout; - setParameter("CookieTimeout", std::to_string(cookieTimeout)); + setCoreParameter("CookieTimeout", std::to_string(cookieTimeout)); } std::string CreateLoadBalancerHTTPListenerRequest::getStickySessionType()const @@ -220,7 +220,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getStickySessionType()const void CreateLoadBalancerHTTPListenerRequest::setStickySessionType(const std::string& stickySessionType) { stickySessionType_ = stickySessionType; - setParameter("StickySessionType", stickySessionType); + setCoreParameter("StickySessionType", stickySessionType); } std::string CreateLoadBalancerHTTPListenerRequest::getVpcIds()const @@ -231,7 +231,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getVpcIds()const void CreateLoadBalancerHTTPListenerRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string CreateLoadBalancerHTTPListenerRequest::getVServerGroupId()const @@ -242,7 +242,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getVServerGroupId()const void CreateLoadBalancerHTTPListenerRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string CreateLoadBalancerHTTPListenerRequest::getAclId()const @@ -253,7 +253,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getAclId()const void CreateLoadBalancerHTTPListenerRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int CreateLoadBalancerHTTPListenerRequest::getListenerPort()const @@ -264,7 +264,7 @@ int CreateLoadBalancerHTTPListenerRequest::getListenerPort()const void CreateLoadBalancerHTTPListenerRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string CreateLoadBalancerHTTPListenerRequest::getCookie()const @@ -275,7 +275,18 @@ std::string CreateLoadBalancerHTTPListenerRequest::getCookie()const void CreateLoadBalancerHTTPListenerRequest::setCookie(const std::string& cookie) { cookie_ = cookie; - setParameter("Cookie", cookie); + setCoreParameter("Cookie", cookie); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckType()const +{ + return healthCheckType_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckType(const std::string& healthCheckType) +{ + healthCheckType_ = healthCheckType; + setCoreParameter("HealthCheckType", healthCheckType); } std::string CreateLoadBalancerHTTPListenerRequest::getResourceOwnerAccount()const @@ -286,7 +297,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getResourceOwnerAccount()cons void CreateLoadBalancerHTTPListenerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int CreateLoadBalancerHTTPListenerRequest::getBandwidth()const @@ -297,7 +308,7 @@ int CreateLoadBalancerHTTPListenerRequest::getBandwidth()const void CreateLoadBalancerHTTPListenerRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateLoadBalancerHTTPListenerRequest::getStickySession()const @@ -308,7 +319,18 @@ std::string CreateLoadBalancerHTTPListenerRequest::getStickySession()const void CreateLoadBalancerHTTPListenerRequest::setStickySession(const std::string& stickySession) { stickySession_ = stickySession; - setParameter("StickySession", stickySession); + setCoreParameter("StickySession", stickySession); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckMethod(const std::string& healthCheckMethod) +{ + healthCheckMethod_ = healthCheckMethod; + setCoreParameter("HealthCheckMethod", healthCheckMethod); } std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckDomain()const @@ -319,7 +341,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckDomain()const void CreateLoadBalancerHTTPListenerRequest::setHealthCheckDomain(const std::string& healthCheckDomain) { healthCheckDomain_ = healthCheckDomain; - setParameter("HealthCheckDomain", healthCheckDomain); + setCoreParameter("HealthCheckDomain", healthCheckDomain); } int CreateLoadBalancerHTTPListenerRequest::getRequestTimeout()const @@ -330,7 +352,7 @@ int CreateLoadBalancerHTTPListenerRequest::getRequestTimeout()const void CreateLoadBalancerHTTPListenerRequest::setRequestTimeout(int requestTimeout) { requestTimeout_ = requestTimeout; - setParameter("RequestTimeout", std::to_string(requestTimeout)); + setCoreParameter("RequestTimeout", std::to_string(requestTimeout)); } std::string CreateLoadBalancerHTTPListenerRequest::getOwnerAccount()const @@ -341,7 +363,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getOwnerAccount()const void CreateLoadBalancerHTTPListenerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateLoadBalancerHTTPListenerRequest::getGzip()const @@ -352,7 +374,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getGzip()const void CreateLoadBalancerHTTPListenerRequest::setGzip(const std::string& gzip) { gzip_ = gzip; - setParameter("Gzip", gzip); + setCoreParameter("Gzip", gzip); } long CreateLoadBalancerHTTPListenerRequest::getOwnerId()const @@ -363,7 +385,7 @@ long CreateLoadBalancerHTTPListenerRequest::getOwnerId()const void CreateLoadBalancerHTTPListenerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateLoadBalancerHTTPListenerRequest::getTags()const @@ -374,7 +396,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getTags()const void CreateLoadBalancerHTTPListenerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } int CreateLoadBalancerHTTPListenerRequest::getIdleTimeout()const @@ -385,7 +407,7 @@ int CreateLoadBalancerHTTPListenerRequest::getIdleTimeout()const void CreateLoadBalancerHTTPListenerRequest::setIdleTimeout(int idleTimeout) { idleTimeout_ = idleTimeout; - setParameter("IdleTimeout", std::to_string(idleTimeout)); + setCoreParameter("IdleTimeout", std::to_string(idleTimeout)); } std::string CreateLoadBalancerHTTPListenerRequest::getLoadBalancerId()const @@ -396,7 +418,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getLoadBalancerId()const void CreateLoadBalancerHTTPListenerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_SLBIP()const @@ -407,7 +429,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_SLBIP()const void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_SLBIP(const std::string& xForwardedFor_SLBIP) { xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; - setParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); + setCoreParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); } int CreateLoadBalancerHTTPListenerRequest::getBackendServerPort()const @@ -418,7 +440,7 @@ int CreateLoadBalancerHTTPListenerRequest::getBackendServerPort()const void CreateLoadBalancerHTTPListenerRequest::setBackendServerPort(int backendServerPort) { backendServerPort_ = backendServerPort; - setParameter("BackendServerPort", std::to_string(backendServerPort)); + setCoreParameter("BackendServerPort", std::to_string(backendServerPort)); } int CreateLoadBalancerHTTPListenerRequest::getHealthCheckInterval()const @@ -429,7 +451,7 @@ int CreateLoadBalancerHTTPListenerRequest::getHealthCheckInterval()const void CreateLoadBalancerHTTPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_proto()const @@ -440,7 +462,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_proto()const void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_proto(const std::string& xForwardedFor_proto) { xForwardedFor_proto_ = xForwardedFor_proto; - setParameter("XForwardedFor_proto", xForwardedFor_proto); + setCoreParameter("XForwardedFor_proto", xForwardedFor_proto); } std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_SLBID()const @@ -451,7 +473,7 @@ std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_SLBID()const void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_SLBID(const std::string& xForwardedFor_SLBID) { xForwardedFor_SLBID_ = xForwardedFor_SLBID; - setParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); + setCoreParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); } int CreateLoadBalancerHTTPListenerRequest::getHealthCheckConnectPort()const @@ -462,7 +484,7 @@ int CreateLoadBalancerHTTPListenerRequest::getHealthCheckConnectPort()const void CreateLoadBalancerHTTPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckHttpCode()const @@ -473,6 +495,6 @@ std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckHttpCode()const void CreateLoadBalancerHTTPListenerRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) { healthCheckHttpCode_ = healthCheckHttpCode; - setParameter("HealthCheckHttpCode", healthCheckHttpCode); + setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode); } diff --git a/slb/src/model/CreateLoadBalancerHTTPListenerResult.cc b/slb/src/model/CreateLoadBalancerHTTPListenerResult.cc index de79b4e28..e7690653c 100644 --- a/slb/src/model/CreateLoadBalancerHTTPListenerResult.cc +++ b/slb/src/model/CreateLoadBalancerHTTPListenerResult.cc @@ -35,10 +35,13 @@ CreateLoadBalancerHTTPListenerResult::~CreateLoadBalancerHTTPListenerResult() void CreateLoadBalancerHTTPListenerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc b/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc index 59aee9ea4..0289a33c2 100644 --- a/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc @@ -33,7 +33,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getAccess_key_id()const void CreateLoadBalancerHTTPSListenerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateLoadBalancerHTTPSListenerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateLoadBalancerHTTPSListenerRequest::getResourceOwnerId()const void CreateLoadBalancerHTTPSListenerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckTimeout()const @@ -55,7 +55,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckTimeout()const void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckTimeout(int healthCheckTimeout) { healthCheckTimeout_ = healthCheckTimeout; - setParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); + setCoreParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); } std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor()const @@ -66,7 +66,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor()const void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor(const std::string& xForwardedFor) { xForwardedFor_ = xForwardedFor; - setParameter("XForwardedFor", xForwardedFor); + setCoreParameter("XForwardedFor", xForwardedFor); } std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckURI()const @@ -77,7 +77,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckURI()const void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckURI(const std::string& healthCheckURI) { healthCheckURI_ = healthCheckURI; - setParameter("HealthCheckURI", healthCheckURI); + setCoreParameter("HealthCheckURI", healthCheckURI); } std::string CreateLoadBalancerHTTPSListenerRequest::getDescription()const @@ -88,7 +88,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getDescription()const void CreateLoadBalancerHTTPSListenerRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int CreateLoadBalancerHTTPSListenerRequest::getUnhealthyThreshold()const @@ -99,7 +99,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getUnhealthyThreshold()const void CreateLoadBalancerHTTPSListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int CreateLoadBalancerHTTPSListenerRequest::getHealthyThreshold()const @@ -110,7 +110,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getHealthyThreshold()const void CreateLoadBalancerHTTPSListenerRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string CreateLoadBalancerHTTPSListenerRequest::getAclStatus()const @@ -121,7 +121,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getAclStatus()const void CreateLoadBalancerHTTPSListenerRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string CreateLoadBalancerHTTPSListenerRequest::getScheduler()const @@ -132,7 +132,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getScheduler()const void CreateLoadBalancerHTTPSListenerRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string CreateLoadBalancerHTTPSListenerRequest::getAclType()const @@ -143,7 +143,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getAclType()const void CreateLoadBalancerHTTPSListenerRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheck()const @@ -154,7 +154,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheck()const void CreateLoadBalancerHTTPSListenerRequest::setHealthCheck(const std::string& healthCheck) { healthCheck_ = healthCheck; - setParameter("HealthCheck", healthCheck); + setCoreParameter("HealthCheck", healthCheck); } int CreateLoadBalancerHTTPSListenerRequest::getMaxConnection()const @@ -165,7 +165,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getMaxConnection()const void CreateLoadBalancerHTTPSListenerRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string CreateLoadBalancerHTTPSListenerRequest::getEnableHttp2()const @@ -176,7 +176,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getEnableHttp2()const void CreateLoadBalancerHTTPSListenerRequest::setEnableHttp2(const std::string& enableHttp2) { enableHttp2_ = enableHttp2; - setParameter("EnableHttp2", enableHttp2); + setCoreParameter("EnableHttp2", enableHttp2); } std::string CreateLoadBalancerHTTPSListenerRequest::getRegionId()const @@ -187,7 +187,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getRegionId()const void CreateLoadBalancerHTTPSListenerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int CreateLoadBalancerHTTPSListenerRequest::getCookieTimeout()const @@ -198,7 +198,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getCookieTimeout()const void CreateLoadBalancerHTTPSListenerRequest::setCookieTimeout(int cookieTimeout) { cookieTimeout_ = cookieTimeout; - setParameter("CookieTimeout", std::to_string(cookieTimeout)); + setCoreParameter("CookieTimeout", std::to_string(cookieTimeout)); } std::string CreateLoadBalancerHTTPSListenerRequest::getStickySessionType()const @@ -209,7 +209,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getStickySessionType()const void CreateLoadBalancerHTTPSListenerRequest::setStickySessionType(const std::string& stickySessionType) { stickySessionType_ = stickySessionType; - setParameter("StickySessionType", stickySessionType); + setCoreParameter("StickySessionType", stickySessionType); } std::string CreateLoadBalancerHTTPSListenerRequest::getVpcIds()const @@ -220,7 +220,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getVpcIds()const void CreateLoadBalancerHTTPSListenerRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string CreateLoadBalancerHTTPSListenerRequest::getVServerGroupId()const @@ -231,7 +231,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getVServerGroupId()const void CreateLoadBalancerHTTPSListenerRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string CreateLoadBalancerHTTPSListenerRequest::getAclId()const @@ -242,7 +242,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getAclId()const void CreateLoadBalancerHTTPSListenerRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int CreateLoadBalancerHTTPSListenerRequest::getListenerPort()const @@ -253,7 +253,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getListenerPort()const void CreateLoadBalancerHTTPSListenerRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string CreateLoadBalancerHTTPSListenerRequest::getCookie()const @@ -264,7 +264,18 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getCookie()const void CreateLoadBalancerHTTPSListenerRequest::setCookie(const std::string& cookie) { cookie_ = cookie; - setParameter("Cookie", cookie); + setCoreParameter("Cookie", cookie); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckType()const +{ + return healthCheckType_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckType(const std::string& healthCheckType) +{ + healthCheckType_ = healthCheckType; + setCoreParameter("HealthCheckType", healthCheckType); } std::string CreateLoadBalancerHTTPSListenerRequest::getResourceOwnerAccount()const @@ -275,7 +286,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getResourceOwnerAccount()con void CreateLoadBalancerHTTPSListenerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int CreateLoadBalancerHTTPSListenerRequest::getBandwidth()const @@ -286,7 +297,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getBandwidth()const void CreateLoadBalancerHTTPSListenerRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateLoadBalancerHTTPSListenerRequest::getStickySession()const @@ -297,7 +308,18 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getStickySession()const void CreateLoadBalancerHTTPSListenerRequest::setStickySession(const std::string& stickySession) { stickySession_ = stickySession; - setParameter("StickySession", stickySession); + setCoreParameter("StickySession", stickySession); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckMethod(const std::string& healthCheckMethod) +{ + healthCheckMethod_ = healthCheckMethod; + setCoreParameter("HealthCheckMethod", healthCheckMethod); } std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckDomain()const @@ -308,7 +330,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckDomain()const void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckDomain(const std::string& healthCheckDomain) { healthCheckDomain_ = healthCheckDomain; - setParameter("HealthCheckDomain", healthCheckDomain); + setCoreParameter("HealthCheckDomain", healthCheckDomain); } int CreateLoadBalancerHTTPSListenerRequest::getRequestTimeout()const @@ -319,7 +341,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getRequestTimeout()const void CreateLoadBalancerHTTPSListenerRequest::setRequestTimeout(int requestTimeout) { requestTimeout_ = requestTimeout; - setParameter("RequestTimeout", std::to_string(requestTimeout)); + setCoreParameter("RequestTimeout", std::to_string(requestTimeout)); } std::string CreateLoadBalancerHTTPSListenerRequest::getOwnerAccount()const @@ -330,7 +352,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getOwnerAccount()const void CreateLoadBalancerHTTPSListenerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateLoadBalancerHTTPSListenerRequest::getGzip()const @@ -341,7 +363,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getGzip()const void CreateLoadBalancerHTTPSListenerRequest::setGzip(const std::string& gzip) { gzip_ = gzip; - setParameter("Gzip", gzip); + setCoreParameter("Gzip", gzip); } std::string CreateLoadBalancerHTTPSListenerRequest::getTLSCipherPolicy()const @@ -352,7 +374,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getTLSCipherPolicy()const void CreateLoadBalancerHTTPSListenerRequest::setTLSCipherPolicy(const std::string& tLSCipherPolicy) { tLSCipherPolicy_ = tLSCipherPolicy; - setParameter("TLSCipherPolicy", tLSCipherPolicy); + setCoreParameter("TLSCipherPolicy", tLSCipherPolicy); } long CreateLoadBalancerHTTPSListenerRequest::getOwnerId()const @@ -363,7 +385,7 @@ long CreateLoadBalancerHTTPSListenerRequest::getOwnerId()const void CreateLoadBalancerHTTPSListenerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateLoadBalancerHTTPSListenerRequest::getServerCertificateId()const @@ -374,7 +396,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getServerCertificateId()cons void CreateLoadBalancerHTTPSListenerRequest::setServerCertificateId(const std::string& serverCertificateId) { serverCertificateId_ = serverCertificateId; - setParameter("ServerCertificateId", serverCertificateId); + setCoreParameter("ServerCertificateId", serverCertificateId); } std::string CreateLoadBalancerHTTPSListenerRequest::getCACertificateId()const @@ -385,7 +407,18 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getCACertificateId()const void CreateLoadBalancerHTTPSListenerRequest::setCACertificateId(const std::string& cACertificateId) { cACertificateId_ = cACertificateId; - setParameter("CACertificateId", cACertificateId); + setCoreParameter("CACertificateId", cACertificateId); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getBackendProtocol()const +{ + return backendProtocol_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setBackendProtocol(const std::string& backendProtocol) +{ + backendProtocol_ = backendProtocol; + setCoreParameter("BackendProtocol", backendProtocol); } std::string CreateLoadBalancerHTTPSListenerRequest::getTags()const @@ -396,7 +429,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getTags()const void CreateLoadBalancerHTTPSListenerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } int CreateLoadBalancerHTTPSListenerRequest::getIdleTimeout()const @@ -407,7 +440,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getIdleTimeout()const void CreateLoadBalancerHTTPSListenerRequest::setIdleTimeout(int idleTimeout) { idleTimeout_ = idleTimeout; - setParameter("IdleTimeout", std::to_string(idleTimeout)); + setCoreParameter("IdleTimeout", std::to_string(idleTimeout)); } std::string CreateLoadBalancerHTTPSListenerRequest::getLoadBalancerId()const @@ -418,7 +451,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getLoadBalancerId()const void CreateLoadBalancerHTTPSListenerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_SLBIP()const @@ -429,7 +462,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_SLBIP()cons void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_SLBIP(const std::string& xForwardedFor_SLBIP) { xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; - setParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); + setCoreParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); } int CreateLoadBalancerHTTPSListenerRequest::getBackendServerPort()const @@ -440,7 +473,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getBackendServerPort()const void CreateLoadBalancerHTTPSListenerRequest::setBackendServerPort(int backendServerPort) { backendServerPort_ = backendServerPort; - setParameter("BackendServerPort", std::to_string(backendServerPort)); + setCoreParameter("BackendServerPort", std::to_string(backendServerPort)); } int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckInterval()const @@ -451,7 +484,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckInterval()const void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_proto()const @@ -462,7 +495,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_proto()cons void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_proto(const std::string& xForwardedFor_proto) { xForwardedFor_proto_ = xForwardedFor_proto; - setParameter("XForwardedFor_proto", xForwardedFor_proto); + setCoreParameter("XForwardedFor_proto", xForwardedFor_proto); } std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_SLBID()const @@ -473,7 +506,7 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_SLBID()cons void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_SLBID(const std::string& xForwardedFor_SLBID) { xForwardedFor_SLBID_ = xForwardedFor_SLBID; - setParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); + setCoreParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); } int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckConnectPort()const @@ -484,7 +517,7 @@ int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckConnectPort()const void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckHttpCode()const @@ -495,6 +528,6 @@ std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckHttpCode()cons void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) { healthCheckHttpCode_ = healthCheckHttpCode; - setParameter("HealthCheckHttpCode", healthCheckHttpCode); + setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode); } diff --git a/slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc b/slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc index b5a802980..89419c65d 100644 --- a/slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc +++ b/slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc @@ -35,10 +35,13 @@ CreateLoadBalancerHTTPSListenerResult::~CreateLoadBalancerHTTPSListenerResult() void CreateLoadBalancerHTTPSListenerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/CreateLoadBalancerRequest.cc b/slb/src/model/CreateLoadBalancerRequest.cc index 54f951ae2..ac16daebc 100644 --- a/slb/src/model/CreateLoadBalancerRequest.cc +++ b/slb/src/model/CreateLoadBalancerRequest.cc @@ -33,7 +33,7 @@ std::string CreateLoadBalancerRequest::getAccess_key_id()const void CreateLoadBalancerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateLoadBalancerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateLoadBalancerRequest::getResourceOwnerId()const void CreateLoadBalancerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateLoadBalancerRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string CreateLoadBalancerRequest::getClientToken()const void CreateLoadBalancerRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateLoadBalancerRequest::getAddressIPVersion()const @@ -66,7 +66,7 @@ std::string CreateLoadBalancerRequest::getAddressIPVersion()const void CreateLoadBalancerRequest::setAddressIPVersion(const std::string& addressIPVersion) { addressIPVersion_ = addressIPVersion; - setParameter("AddressIPVersion", addressIPVersion); + setCoreParameter("AddressIPVersion", addressIPVersion); } std::string CreateLoadBalancerRequest::getMasterZoneId()const @@ -77,7 +77,7 @@ std::string CreateLoadBalancerRequest::getMasterZoneId()const void CreateLoadBalancerRequest::setMasterZoneId(const std::string& masterZoneId) { masterZoneId_ = masterZoneId; - setParameter("MasterZoneId", masterZoneId); + setCoreParameter("MasterZoneId", masterZoneId); } int CreateLoadBalancerRequest::getDuration()const @@ -88,7 +88,7 @@ int CreateLoadBalancerRequest::getDuration()const void CreateLoadBalancerRequest::setDuration(int duration) { duration_ = duration; - setParameter("Duration", std::to_string(duration)); + setCoreParameter("Duration", std::to_string(duration)); } std::string CreateLoadBalancerRequest::getResourceGroupId()const @@ -99,7 +99,7 @@ std::string CreateLoadBalancerRequest::getResourceGroupId()const void CreateLoadBalancerRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string CreateLoadBalancerRequest::getLoadBalancerName()const @@ -110,7 +110,7 @@ std::string CreateLoadBalancerRequest::getLoadBalancerName()const void CreateLoadBalancerRequest::setLoadBalancerName(const std::string& loadBalancerName) { loadBalancerName_ = loadBalancerName; - setParameter("LoadBalancerName", loadBalancerName); + setCoreParameter("LoadBalancerName", loadBalancerName); } std::string CreateLoadBalancerRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string CreateLoadBalancerRequest::getRegionId()const void CreateLoadBalancerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateLoadBalancerRequest::getAddressType()const @@ -132,7 +132,7 @@ std::string CreateLoadBalancerRequest::getAddressType()const void CreateLoadBalancerRequest::setAddressType(const std::string& addressType) { addressType_ = addressType; - setParameter("AddressType", addressType); + setCoreParameter("AddressType", addressType); } std::string CreateLoadBalancerRequest::getSlaveZoneId()const @@ -143,7 +143,18 @@ std::string CreateLoadBalancerRequest::getSlaveZoneId()const void CreateLoadBalancerRequest::setSlaveZoneId(const std::string& slaveZoneId) { slaveZoneId_ = slaveZoneId; - setParameter("SlaveZoneId", slaveZoneId); + setCoreParameter("SlaveZoneId", slaveZoneId); +} + +std::string CreateLoadBalancerRequest::getDeleteProtection()const +{ + return deleteProtection_; +} + +void CreateLoadBalancerRequest::setDeleteProtection(const std::string& deleteProtection) +{ + deleteProtection_ = deleteProtection; + setCoreParameter("DeleteProtection", deleteProtection); } std::string CreateLoadBalancerRequest::getLoadBalancerSpec()const @@ -154,7 +165,7 @@ std::string CreateLoadBalancerRequest::getLoadBalancerSpec()const void CreateLoadBalancerRequest::setLoadBalancerSpec(const std::string& loadBalancerSpec) { loadBalancerSpec_ = loadBalancerSpec; - setParameter("LoadBalancerSpec", loadBalancerSpec); + setCoreParameter("LoadBalancerSpec", loadBalancerSpec); } bool CreateLoadBalancerRequest::getAutoPay()const @@ -165,7 +176,18 @@ bool CreateLoadBalancerRequest::getAutoPay()const void CreateLoadBalancerRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string CreateLoadBalancerRequest::getAddress()const +{ + return address_; +} + +void CreateLoadBalancerRequest::setAddress(const std::string& address) +{ + address_ = address; + setCoreParameter("Address", address); } std::string CreateLoadBalancerRequest::getResourceOwnerAccount()const @@ -176,7 +198,7 @@ std::string CreateLoadBalancerRequest::getResourceOwnerAccount()const void CreateLoadBalancerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int CreateLoadBalancerRequest::getBandwidth()const @@ -187,7 +209,7 @@ int CreateLoadBalancerRequest::getBandwidth()const void CreateLoadBalancerRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateLoadBalancerRequest::getOwnerAccount()const @@ -198,7 +220,7 @@ std::string CreateLoadBalancerRequest::getOwnerAccount()const void CreateLoadBalancerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateLoadBalancerRequest::getOwnerId()const @@ -209,7 +231,7 @@ long CreateLoadBalancerRequest::getOwnerId()const void CreateLoadBalancerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateLoadBalancerRequest::getTags()const @@ -220,7 +242,7 @@ std::string CreateLoadBalancerRequest::getTags()const void CreateLoadBalancerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string CreateLoadBalancerRequest::getVSwitchId()const @@ -231,7 +253,7 @@ std::string CreateLoadBalancerRequest::getVSwitchId()const void CreateLoadBalancerRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string CreateLoadBalancerRequest::getEnableVpcVipFlow()const @@ -242,7 +264,7 @@ std::string CreateLoadBalancerRequest::getEnableVpcVipFlow()const void CreateLoadBalancerRequest::setEnableVpcVipFlow(const std::string& enableVpcVipFlow) { enableVpcVipFlow_ = enableVpcVipFlow; - setParameter("EnableVpcVipFlow", enableVpcVipFlow); + setCoreParameter("EnableVpcVipFlow", enableVpcVipFlow); } std::string CreateLoadBalancerRequest::getInternetChargeType()const @@ -253,7 +275,7 @@ std::string CreateLoadBalancerRequest::getInternetChargeType()const void CreateLoadBalancerRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } std::string CreateLoadBalancerRequest::getVpcId()const @@ -264,7 +286,7 @@ std::string CreateLoadBalancerRequest::getVpcId()const void CreateLoadBalancerRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string CreateLoadBalancerRequest::getPayType()const @@ -275,7 +297,7 @@ std::string CreateLoadBalancerRequest::getPayType()const void CreateLoadBalancerRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); } std::string CreateLoadBalancerRequest::getPricingCycle()const @@ -286,6 +308,17 @@ std::string CreateLoadBalancerRequest::getPricingCycle()const void CreateLoadBalancerRequest::setPricingCycle(const std::string& pricingCycle) { pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); + setCoreParameter("PricingCycle", pricingCycle); +} + +int CreateLoadBalancerRequest::getRatio()const +{ + return ratio_; +} + +void CreateLoadBalancerRequest::setRatio(int ratio) +{ + ratio_ = ratio; + setCoreParameter("Ratio", std::to_string(ratio)); } diff --git a/slb/src/model/CreateLoadBalancerResult.cc b/slb/src/model/CreateLoadBalancerResult.cc index 9ccb472cf..4045394b0 100644 --- a/slb/src/model/CreateLoadBalancerResult.cc +++ b/slb/src/model/CreateLoadBalancerResult.cc @@ -35,10 +35,13 @@ CreateLoadBalancerResult::~CreateLoadBalancerResult() void CreateLoadBalancerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["LoadBalancerId"].isNull()) loadBalancerId_ = value["LoadBalancerId"].asString(); diff --git a/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc b/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc index c7852bff5..bc6807618 100644 --- a/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc @@ -33,7 +33,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getAccess_key_id()const void CreateLoadBalancerTCPListenerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectTimeout()const @@ -44,7 +44,7 @@ int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectTimeout()const void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { healthCheckConnectTimeout_ = healthCheckConnectTimeout; - setParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); + setCoreParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); } long CreateLoadBalancerTCPListenerRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long CreateLoadBalancerTCPListenerRequest::getResourceOwnerId()const void CreateLoadBalancerTCPListenerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckURI()const @@ -66,7 +66,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckURI()const void CreateLoadBalancerTCPListenerRequest::setHealthCheckURI(const std::string& healthCheckURI) { healthCheckURI_ = healthCheckURI; - setParameter("HealthCheckURI", healthCheckURI); + setCoreParameter("HealthCheckURI", healthCheckURI); } std::string CreateLoadBalancerTCPListenerRequest::getDescription()const @@ -77,7 +77,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getDescription()const void CreateLoadBalancerTCPListenerRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int CreateLoadBalancerTCPListenerRequest::getUnhealthyThreshold()const @@ -88,7 +88,7 @@ int CreateLoadBalancerTCPListenerRequest::getUnhealthyThreshold()const void CreateLoadBalancerTCPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int CreateLoadBalancerTCPListenerRequest::getHealthyThreshold()const @@ -99,7 +99,7 @@ int CreateLoadBalancerTCPListenerRequest::getHealthyThreshold()const void CreateLoadBalancerTCPListenerRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string CreateLoadBalancerTCPListenerRequest::getAclStatus()const @@ -110,7 +110,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getAclStatus()const void CreateLoadBalancerTCPListenerRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string CreateLoadBalancerTCPListenerRequest::getScheduler()const @@ -121,7 +121,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getScheduler()const void CreateLoadBalancerTCPListenerRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string CreateLoadBalancerTCPListenerRequest::getAclType()const @@ -132,7 +132,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getAclType()const void CreateLoadBalancerTCPListenerRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } int CreateLoadBalancerTCPListenerRequest::getEstablishedTimeout()const @@ -143,7 +143,7 @@ int CreateLoadBalancerTCPListenerRequest::getEstablishedTimeout()const void CreateLoadBalancerTCPListenerRequest::setEstablishedTimeout(int establishedTimeout) { establishedTimeout_ = establishedTimeout; - setParameter("EstablishedTimeout", std::to_string(establishedTimeout)); + setCoreParameter("EstablishedTimeout", std::to_string(establishedTimeout)); } int CreateLoadBalancerTCPListenerRequest::getMaxConnection()const @@ -154,7 +154,7 @@ int CreateLoadBalancerTCPListenerRequest::getMaxConnection()const void CreateLoadBalancerTCPListenerRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string CreateLoadBalancerTCPListenerRequest::getRegionId()const @@ -165,7 +165,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getRegionId()const void CreateLoadBalancerTCPListenerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int CreateLoadBalancerTCPListenerRequest::getPersistenceTimeout()const @@ -176,7 +176,7 @@ int CreateLoadBalancerTCPListenerRequest::getPersistenceTimeout()const void CreateLoadBalancerTCPListenerRequest::setPersistenceTimeout(int persistenceTimeout) { persistenceTimeout_ = persistenceTimeout; - setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); + setCoreParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); } std::string CreateLoadBalancerTCPListenerRequest::getVpcIds()const @@ -187,7 +187,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getVpcIds()const void CreateLoadBalancerTCPListenerRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string CreateLoadBalancerTCPListenerRequest::getVServerGroupId()const @@ -198,7 +198,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getVServerGroupId()const void CreateLoadBalancerTCPListenerRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string CreateLoadBalancerTCPListenerRequest::getAclId()const @@ -209,7 +209,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getAclId()const void CreateLoadBalancerTCPListenerRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int CreateLoadBalancerTCPListenerRequest::getListenerPort()const @@ -220,7 +220,7 @@ int CreateLoadBalancerTCPListenerRequest::getListenerPort()const void CreateLoadBalancerTCPListenerRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckType()const @@ -231,7 +231,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckType()const void CreateLoadBalancerTCPListenerRequest::setHealthCheckType(const std::string& healthCheckType) { healthCheckType_ = healthCheckType; - setParameter("HealthCheckType", healthCheckType); + setCoreParameter("HealthCheckType", healthCheckType); } std::string CreateLoadBalancerTCPListenerRequest::getResourceOwnerAccount()const @@ -242,7 +242,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getResourceOwnerAccount()const void CreateLoadBalancerTCPListenerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int CreateLoadBalancerTCPListenerRequest::getBandwidth()const @@ -253,7 +253,18 @@ int CreateLoadBalancerTCPListenerRequest::getBandwidth()const void CreateLoadBalancerTCPListenerRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckMethod(const std::string& healthCheckMethod) +{ + healthCheckMethod_ = healthCheckMethod; + setCoreParameter("HealthCheckMethod", healthCheckMethod); } std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckDomain()const @@ -264,7 +275,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckDomain()const void CreateLoadBalancerTCPListenerRequest::setHealthCheckDomain(const std::string& healthCheckDomain) { healthCheckDomain_ = healthCheckDomain; - setParameter("HealthCheckDomain", healthCheckDomain); + setCoreParameter("HealthCheckDomain", healthCheckDomain); } std::string CreateLoadBalancerTCPListenerRequest::getOwnerAccount()const @@ -275,7 +286,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getOwnerAccount()const void CreateLoadBalancerTCPListenerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateLoadBalancerTCPListenerRequest::getOwnerId()const @@ -286,7 +297,7 @@ long CreateLoadBalancerTCPListenerRequest::getOwnerId()const void CreateLoadBalancerTCPListenerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateLoadBalancerTCPListenerRequest::getTags()const @@ -297,7 +308,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getTags()const void CreateLoadBalancerTCPListenerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string CreateLoadBalancerTCPListenerRequest::getLoadBalancerId()const @@ -308,7 +319,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getLoadBalancerId()const void CreateLoadBalancerTCPListenerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateLoadBalancerTCPListenerRequest::getMasterSlaveServerGroupId()const @@ -319,7 +330,7 @@ std::string CreateLoadBalancerTCPListenerRequest::getMasterSlaveServerGroupId()c void CreateLoadBalancerTCPListenerRequest::setMasterSlaveServerGroupId(const std::string& masterSlaveServerGroupId) { masterSlaveServerGroupId_ = masterSlaveServerGroupId; - setParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); + setCoreParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); } int CreateLoadBalancerTCPListenerRequest::getBackendServerPort()const @@ -330,7 +341,7 @@ int CreateLoadBalancerTCPListenerRequest::getBackendServerPort()const void CreateLoadBalancerTCPListenerRequest::setBackendServerPort(int backendServerPort) { backendServerPort_ = backendServerPort; - setParameter("BackendServerPort", std::to_string(backendServerPort)); + setCoreParameter("BackendServerPort", std::to_string(backendServerPort)); } int CreateLoadBalancerTCPListenerRequest::getHealthCheckInterval()const @@ -341,7 +352,7 @@ int CreateLoadBalancerTCPListenerRequest::getHealthCheckInterval()const void CreateLoadBalancerTCPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectPort()const @@ -352,7 +363,7 @@ int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectPort()const void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckHttpCode()const @@ -363,6 +374,6 @@ std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckHttpCode()const void CreateLoadBalancerTCPListenerRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) { healthCheckHttpCode_ = healthCheckHttpCode; - setParameter("HealthCheckHttpCode", healthCheckHttpCode); + setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode); } diff --git a/slb/src/model/CreateLoadBalancerTCPListenerResult.cc b/slb/src/model/CreateLoadBalancerTCPListenerResult.cc index 121761699..1aa1a0c0b 100644 --- a/slb/src/model/CreateLoadBalancerTCPListenerResult.cc +++ b/slb/src/model/CreateLoadBalancerTCPListenerResult.cc @@ -35,10 +35,13 @@ CreateLoadBalancerTCPListenerResult::~CreateLoadBalancerTCPListenerResult() void CreateLoadBalancerTCPListenerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc b/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc index c5103055e..ae14ed999 100644 --- a/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc @@ -33,7 +33,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getAccess_key_id()const void CreateLoadBalancerUDPListenerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectTimeout()const @@ -44,7 +44,7 @@ int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectTimeout()const void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { healthCheckConnectTimeout_ = healthCheckConnectTimeout; - setParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); + setCoreParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); } long CreateLoadBalancerUDPListenerRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long CreateLoadBalancerUDPListenerRequest::getResourceOwnerId()const void CreateLoadBalancerUDPListenerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateLoadBalancerUDPListenerRequest::getDescription()const @@ -66,7 +66,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getDescription()const void CreateLoadBalancerUDPListenerRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int CreateLoadBalancerUDPListenerRequest::getUnhealthyThreshold()const @@ -77,7 +77,7 @@ int CreateLoadBalancerUDPListenerRequest::getUnhealthyThreshold()const void CreateLoadBalancerUDPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int CreateLoadBalancerUDPListenerRequest::getHealthyThreshold()const @@ -88,7 +88,7 @@ int CreateLoadBalancerUDPListenerRequest::getHealthyThreshold()const void CreateLoadBalancerUDPListenerRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string CreateLoadBalancerUDPListenerRequest::getAclStatus()const @@ -99,7 +99,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getAclStatus()const void CreateLoadBalancerUDPListenerRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string CreateLoadBalancerUDPListenerRequest::getScheduler()const @@ -110,7 +110,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getScheduler()const void CreateLoadBalancerUDPListenerRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string CreateLoadBalancerUDPListenerRequest::getAclType()const @@ -121,7 +121,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getAclType()const void CreateLoadBalancerUDPListenerRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } int CreateLoadBalancerUDPListenerRequest::getMaxConnection()const @@ -132,7 +132,7 @@ int CreateLoadBalancerUDPListenerRequest::getMaxConnection()const void CreateLoadBalancerUDPListenerRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string CreateLoadBalancerUDPListenerRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getRegionId()const void CreateLoadBalancerUDPListenerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int CreateLoadBalancerUDPListenerRequest::getPersistenceTimeout()const @@ -154,7 +154,7 @@ int CreateLoadBalancerUDPListenerRequest::getPersistenceTimeout()const void CreateLoadBalancerUDPListenerRequest::setPersistenceTimeout(int persistenceTimeout) { persistenceTimeout_ = persistenceTimeout; - setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); + setCoreParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); } std::string CreateLoadBalancerUDPListenerRequest::getVpcIds()const @@ -165,7 +165,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getVpcIds()const void CreateLoadBalancerUDPListenerRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string CreateLoadBalancerUDPListenerRequest::getVServerGroupId()const @@ -176,7 +176,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getVServerGroupId()const void CreateLoadBalancerUDPListenerRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string CreateLoadBalancerUDPListenerRequest::getAclId()const @@ -187,7 +187,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getAclId()const void CreateLoadBalancerUDPListenerRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int CreateLoadBalancerUDPListenerRequest::getListenerPort()const @@ -198,7 +198,7 @@ int CreateLoadBalancerUDPListenerRequest::getListenerPort()const void CreateLoadBalancerUDPListenerRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string CreateLoadBalancerUDPListenerRequest::getResourceOwnerAccount()const @@ -209,7 +209,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getResourceOwnerAccount()const void CreateLoadBalancerUDPListenerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int CreateLoadBalancerUDPListenerRequest::getBandwidth()const @@ -220,7 +220,7 @@ int CreateLoadBalancerUDPListenerRequest::getBandwidth()const void CreateLoadBalancerUDPListenerRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateLoadBalancerUDPListenerRequest::getOwnerAccount()const @@ -231,7 +231,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getOwnerAccount()const void CreateLoadBalancerUDPListenerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateLoadBalancerUDPListenerRequest::getOwnerId()const @@ -242,7 +242,7 @@ long CreateLoadBalancerUDPListenerRequest::getOwnerId()const void CreateLoadBalancerUDPListenerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateLoadBalancerUDPListenerRequest::getTags()const @@ -253,7 +253,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getTags()const void CreateLoadBalancerUDPListenerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string CreateLoadBalancerUDPListenerRequest::getLoadBalancerId()const @@ -264,7 +264,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getLoadBalancerId()const void CreateLoadBalancerUDPListenerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateLoadBalancerUDPListenerRequest::getMasterSlaveServerGroupId()const @@ -275,7 +275,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getMasterSlaveServerGroupId()c void CreateLoadBalancerUDPListenerRequest::setMasterSlaveServerGroupId(const std::string& masterSlaveServerGroupId) { masterSlaveServerGroupId_ = masterSlaveServerGroupId; - setParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); + setCoreParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); } std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckReq()const @@ -286,7 +286,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckReq()const void CreateLoadBalancerUDPListenerRequest::setHealthCheckReq(const std::string& healthCheckReq) { healthCheckReq_ = healthCheckReq; - setParameter("HealthCheckReq", healthCheckReq); + setCoreParameter("HealthCheckReq", healthCheckReq); } int CreateLoadBalancerUDPListenerRequest::getBackendServerPort()const @@ -297,7 +297,7 @@ int CreateLoadBalancerUDPListenerRequest::getBackendServerPort()const void CreateLoadBalancerUDPListenerRequest::setBackendServerPort(int backendServerPort) { backendServerPort_ = backendServerPort; - setParameter("BackendServerPort", std::to_string(backendServerPort)); + setCoreParameter("BackendServerPort", std::to_string(backendServerPort)); } int CreateLoadBalancerUDPListenerRequest::getHealthCheckInterval()const @@ -308,7 +308,7 @@ int CreateLoadBalancerUDPListenerRequest::getHealthCheckInterval()const void CreateLoadBalancerUDPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckExp()const @@ -319,7 +319,7 @@ std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckExp()const void CreateLoadBalancerUDPListenerRequest::setHealthCheckExp(const std::string& healthCheckExp) { healthCheckExp_ = healthCheckExp; - setParameter("HealthCheckExp", healthCheckExp); + setCoreParameter("HealthCheckExp", healthCheckExp); } int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectPort()const @@ -330,6 +330,6 @@ int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectPort()const void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } diff --git a/slb/src/model/CreateLoadBalancerUDPListenerResult.cc b/slb/src/model/CreateLoadBalancerUDPListenerResult.cc index 186e64b5e..80431b9ed 100644 --- a/slb/src/model/CreateLoadBalancerUDPListenerResult.cc +++ b/slb/src/model/CreateLoadBalancerUDPListenerResult.cc @@ -35,10 +35,13 @@ CreateLoadBalancerUDPListenerResult::~CreateLoadBalancerUDPListenerResult() void CreateLoadBalancerUDPListenerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/CreateMasterSlaveServerGroupRequest.cc b/slb/src/model/CreateMasterSlaveServerGroupRequest.cc index 5c793f6ed..28eef0673 100644 --- a/slb/src/model/CreateMasterSlaveServerGroupRequest.cc +++ b/slb/src/model/CreateMasterSlaveServerGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateMasterSlaveServerGroupRequest::getAccess_key_id()const void CreateMasterSlaveServerGroupRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateMasterSlaveServerGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateMasterSlaveServerGroupRequest::getResourceOwnerId()const void CreateMasterSlaveServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateMasterSlaveServerGroupRequest::getMasterSlaveBackendServers()const @@ -55,7 +55,7 @@ std::string CreateMasterSlaveServerGroupRequest::getMasterSlaveBackendServers()c void CreateMasterSlaveServerGroupRequest::setMasterSlaveBackendServers(const std::string& masterSlaveBackendServers) { masterSlaveBackendServers_ = masterSlaveBackendServers; - setParameter("MasterSlaveBackendServers", masterSlaveBackendServers); + setCoreParameter("MasterSlaveBackendServers", masterSlaveBackendServers); } std::string CreateMasterSlaveServerGroupRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string CreateMasterSlaveServerGroupRequest::getLoadBalancerId()const void CreateMasterSlaveServerGroupRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateMasterSlaveServerGroupRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateMasterSlaveServerGroupRequest::getResourceOwnerAccount()const void CreateMasterSlaveServerGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateMasterSlaveServerGroupRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string CreateMasterSlaveServerGroupRequest::getRegionId()const void CreateMasterSlaveServerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateMasterSlaveServerGroupRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string CreateMasterSlaveServerGroupRequest::getOwnerAccount()const void CreateMasterSlaveServerGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateMasterSlaveServerGroupRequest::getMasterSlaveServerGroupName()const @@ -110,7 +110,7 @@ std::string CreateMasterSlaveServerGroupRequest::getMasterSlaveServerGroupName() void CreateMasterSlaveServerGroupRequest::setMasterSlaveServerGroupName(const std::string& masterSlaveServerGroupName) { masterSlaveServerGroupName_ = masterSlaveServerGroupName; - setParameter("MasterSlaveServerGroupName", masterSlaveServerGroupName); + setCoreParameter("MasterSlaveServerGroupName", masterSlaveServerGroupName); } long CreateMasterSlaveServerGroupRequest::getOwnerId()const @@ -121,7 +121,7 @@ long CreateMasterSlaveServerGroupRequest::getOwnerId()const void CreateMasterSlaveServerGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateMasterSlaveServerGroupRequest::getTags()const @@ -132,6 +132,6 @@ std::string CreateMasterSlaveServerGroupRequest::getTags()const void CreateMasterSlaveServerGroupRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/CreateMasterSlaveServerGroupResult.cc b/slb/src/model/CreateMasterSlaveServerGroupResult.cc index be959dddf..982fd0b29 100644 --- a/slb/src/model/CreateMasterSlaveServerGroupResult.cc +++ b/slb/src/model/CreateMasterSlaveServerGroupResult.cc @@ -35,10 +35,13 @@ CreateMasterSlaveServerGroupResult::~CreateMasterSlaveServerGroupResult() void CreateMasterSlaveServerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; for (auto value : allMasterSlaveBackendServers) @@ -56,10 +59,10 @@ void CreateMasterSlaveServerGroupResult::parse(const std::string &payload) masterSlaveBackendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) masterSlaveBackendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + masterSlaveBackendServersObject.description = value["Description"].asString(); masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); } if(!value["MasterSlaveServerGroupId"].isNull()) diff --git a/slb/src/model/CreateMasterSlaveVServerGroupRequest.cc b/slb/src/model/CreateMasterSlaveVServerGroupRequest.cc index 0f7e33264..10943e6f4 100644 --- a/slb/src/model/CreateMasterSlaveVServerGroupRequest.cc +++ b/slb/src/model/CreateMasterSlaveVServerGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getAccess_key_id()const void CreateMasterSlaveVServerGroupRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateMasterSlaveVServerGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateMasterSlaveVServerGroupRequest::getResourceOwnerId()const void CreateMasterSlaveVServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateMasterSlaveVServerGroupRequest::getMasterSlaveBackendServers()const @@ -55,7 +55,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getMasterSlaveBackendServers() void CreateMasterSlaveVServerGroupRequest::setMasterSlaveBackendServers(const std::string& masterSlaveBackendServers) { masterSlaveBackendServers_ = masterSlaveBackendServers; - setParameter("MasterSlaveBackendServers", masterSlaveBackendServers); + setCoreParameter("MasterSlaveBackendServers", masterSlaveBackendServers); } std::string CreateMasterSlaveVServerGroupRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getLoadBalancerId()const void CreateMasterSlaveVServerGroupRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateMasterSlaveVServerGroupRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getResourceOwnerAccount()const void CreateMasterSlaveVServerGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateMasterSlaveVServerGroupRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getRegionId()const void CreateMasterSlaveVServerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateMasterSlaveVServerGroupRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getOwnerAccount()const void CreateMasterSlaveVServerGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateMasterSlaveVServerGroupRequest::getMasterSlaveVServerGroupName()const @@ -110,7 +110,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getMasterSlaveVServerGroupName void CreateMasterSlaveVServerGroupRequest::setMasterSlaveVServerGroupName(const std::string& masterSlaveVServerGroupName) { masterSlaveVServerGroupName_ = masterSlaveVServerGroupName; - setParameter("MasterSlaveVServerGroupName", masterSlaveVServerGroupName); + setCoreParameter("MasterSlaveVServerGroupName", masterSlaveVServerGroupName); } long CreateMasterSlaveVServerGroupRequest::getOwnerId()const @@ -121,7 +121,7 @@ long CreateMasterSlaveVServerGroupRequest::getOwnerId()const void CreateMasterSlaveVServerGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateMasterSlaveVServerGroupRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string CreateMasterSlaveVServerGroupRequest::getAccessKeyId()const void CreateMasterSlaveVServerGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateMasterSlaveVServerGroupRequest::getTags()const @@ -143,6 +143,6 @@ std::string CreateMasterSlaveVServerGroupRequest::getTags()const void CreateMasterSlaveVServerGroupRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/CreateMasterSlaveVServerGroupResult.cc b/slb/src/model/CreateMasterSlaveVServerGroupResult.cc index 89d41761e..51d37a6fc 100644 --- a/slb/src/model/CreateMasterSlaveVServerGroupResult.cc +++ b/slb/src/model/CreateMasterSlaveVServerGroupResult.cc @@ -35,10 +35,13 @@ CreateMasterSlaveVServerGroupResult::~CreateMasterSlaveVServerGroupResult() void CreateMasterSlaveVServerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; for (auto value : allMasterSlaveBackendServers) @@ -60,6 +63,8 @@ void CreateMasterSlaveVServerGroupResult::parse(const std::string &payload) masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + masterSlaveBackendServersObject.description = value["Description"].asString(); masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); } if(!value["MasterSlaveVServerGroupId"].isNull()) diff --git a/slb/src/model/CreateRulesRequest.cc b/slb/src/model/CreateRulesRequest.cc index d5685bcb2..3e71d2f4f 100644 --- a/slb/src/model/CreateRulesRequest.cc +++ b/slb/src/model/CreateRulesRequest.cc @@ -33,7 +33,7 @@ std::string CreateRulesRequest::getAccess_key_id()const void CreateRulesRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateRulesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateRulesRequest::getResourceOwnerId()const void CreateRulesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int CreateRulesRequest::getListenerPort()const @@ -55,7 +55,7 @@ int CreateRulesRequest::getListenerPort()const void CreateRulesRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string CreateRulesRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string CreateRulesRequest::getLoadBalancerId()const void CreateRulesRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateRulesRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateRulesRequest::getResourceOwnerAccount()const void CreateRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateRulesRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string CreateRulesRequest::getRegionId()const void CreateRulesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateRulesRequest::getRuleList()const @@ -99,7 +99,7 @@ std::string CreateRulesRequest::getRuleList()const void CreateRulesRequest::setRuleList(const std::string& ruleList) { ruleList_ = ruleList; - setParameter("RuleList", ruleList); + setCoreParameter("RuleList", ruleList); } std::string CreateRulesRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string CreateRulesRequest::getOwnerAccount()const void CreateRulesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateRulesRequest::getOwnerId()const @@ -121,7 +121,18 @@ long CreateRulesRequest::getOwnerId()const void CreateRulesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateRulesRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void CreateRulesRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string CreateRulesRequest::getTags()const @@ -132,6 +143,6 @@ std::string CreateRulesRequest::getTags()const void CreateRulesRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/CreateRulesResult.cc b/slb/src/model/CreateRulesResult.cc index 11e56faad..69bef9453 100644 --- a/slb/src/model/CreateRulesResult.cc +++ b/slb/src/model/CreateRulesResult.cc @@ -35,10 +35,13 @@ CreateRulesResult::~CreateRulesResult() void CreateRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) diff --git a/slb/src/model/CreateVServerGroupRequest.cc b/slb/src/model/CreateVServerGroupRequest.cc index be84de58b..a097ccab4 100644 --- a/slb/src/model/CreateVServerGroupRequest.cc +++ b/slb/src/model/CreateVServerGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateVServerGroupRequest::getAccess_key_id()const void CreateVServerGroupRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long CreateVServerGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateVServerGroupRequest::getResourceOwnerId()const void CreateVServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateVServerGroupRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string CreateVServerGroupRequest::getLoadBalancerId()const void CreateVServerGroupRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string CreateVServerGroupRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateVServerGroupRequest::getResourceOwnerAccount()const void CreateVServerGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateVServerGroupRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string CreateVServerGroupRequest::getRegionId()const void CreateVServerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateVServerGroupRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateVServerGroupRequest::getOwnerAccount()const void CreateVServerGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateVServerGroupRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateVServerGroupRequest::getOwnerId()const void CreateVServerGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateVServerGroupRequest::getBackendServers()const @@ -110,7 +110,7 @@ std::string CreateVServerGroupRequest::getBackendServers()const void CreateVServerGroupRequest::setBackendServers(const std::string& backendServers) { backendServers_ = backendServers; - setParameter("BackendServers", backendServers); + setCoreParameter("BackendServers", backendServers); } std::string CreateVServerGroupRequest::getTags()const @@ -121,7 +121,7 @@ std::string CreateVServerGroupRequest::getTags()const void CreateVServerGroupRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string CreateVServerGroupRequest::getVServerGroupName()const @@ -132,6 +132,6 @@ std::string CreateVServerGroupRequest::getVServerGroupName()const void CreateVServerGroupRequest::setVServerGroupName(const std::string& vServerGroupName) { vServerGroupName_ = vServerGroupName; - setParameter("VServerGroupName", vServerGroupName); + setCoreParameter("VServerGroupName", vServerGroupName); } diff --git a/slb/src/model/CreateVServerGroupResult.cc b/slb/src/model/CreateVServerGroupResult.cc index d91f461d6..49fefedb7 100644 --- a/slb/src/model/CreateVServerGroupResult.cc +++ b/slb/src/model/CreateVServerGroupResult.cc @@ -35,10 +35,13 @@ CreateVServerGroupResult::~CreateVServerGroupResult() void CreateVServerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -54,10 +57,10 @@ void CreateVServerGroupResult::parse(const std::string &payload) backendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) backendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["VServerGroupId"].isNull()) diff --git a/slb/src/model/DeleteAccessControlListRequest.cc b/slb/src/model/DeleteAccessControlListRequest.cc index 51c11dea3..b9bac7dbc 100644 --- a/slb/src/model/DeleteAccessControlListRequest.cc +++ b/slb/src/model/DeleteAccessControlListRequest.cc @@ -33,7 +33,7 @@ std::string DeleteAccessControlListRequest::getAccess_key_id()const void DeleteAccessControlListRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string DeleteAccessControlListRequest::getAclId()const @@ -44,7 +44,7 @@ std::string DeleteAccessControlListRequest::getAclId()const void DeleteAccessControlListRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long DeleteAccessControlListRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DeleteAccessControlListRequest::getResourceOwnerId()const void DeleteAccessControlListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteAccessControlListRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteAccessControlListRequest::getResourceOwnerAccount()const void DeleteAccessControlListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteAccessControlListRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteAccessControlListRequest::getRegionId()const void DeleteAccessControlListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteAccessControlListRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteAccessControlListRequest::getOwnerAccount()const void DeleteAccessControlListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteAccessControlListRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DeleteAccessControlListRequest::getOwnerId()const void DeleteAccessControlListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteAccessControlListRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DeleteAccessControlListRequest::getAccessKeyId()const void DeleteAccessControlListRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeleteAccessControlListRequest::getTags()const @@ -121,6 +121,6 @@ std::string DeleteAccessControlListRequest::getTags()const void DeleteAccessControlListRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteAccessControlListResult.cc b/slb/src/model/DeleteAccessControlListResult.cc index e8ea96834..292b19353 100644 --- a/slb/src/model/DeleteAccessControlListResult.cc +++ b/slb/src/model/DeleteAccessControlListResult.cc @@ -35,10 +35,13 @@ DeleteAccessControlListResult::~DeleteAccessControlListResult() void DeleteAccessControlListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteCACertificateRequest.cc b/slb/src/model/DeleteCACertificateRequest.cc index d3e890215..63fba3dcc 100644 --- a/slb/src/model/DeleteCACertificateRequest.cc +++ b/slb/src/model/DeleteCACertificateRequest.cc @@ -33,7 +33,7 @@ std::string DeleteCACertificateRequest::getAccess_key_id()const void DeleteCACertificateRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteCACertificateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteCACertificateRequest::getResourceOwnerId()const void DeleteCACertificateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCACertificateRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteCACertificateRequest::getResourceOwnerAccount()const void DeleteCACertificateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteCACertificateRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteCACertificateRequest::getRegionId()const void DeleteCACertificateRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteCACertificateRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteCACertificateRequest::getOwnerAccount()const void DeleteCACertificateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteCACertificateRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DeleteCACertificateRequest::getOwnerId()const void DeleteCACertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteCACertificateRequest::getCACertificateId()const @@ -99,6 +99,6 @@ std::string DeleteCACertificateRequest::getCACertificateId()const void DeleteCACertificateRequest::setCACertificateId(const std::string& cACertificateId) { cACertificateId_ = cACertificateId; - setParameter("CACertificateId", cACertificateId); + setCoreParameter("CACertificateId", cACertificateId); } diff --git a/slb/src/model/DeleteCACertificateResult.cc b/slb/src/model/DeleteCACertificateResult.cc index 1a2e77a07..e818b0582 100644 --- a/slb/src/model/DeleteCACertificateResult.cc +++ b/slb/src/model/DeleteCACertificateResult.cc @@ -35,10 +35,13 @@ DeleteCACertificateResult::~DeleteCACertificateResult() void DeleteCACertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteDomainExtensionRequest.cc b/slb/src/model/DeleteDomainExtensionRequest.cc index f32e58a9e..476c932ae 100644 --- a/slb/src/model/DeleteDomainExtensionRequest.cc +++ b/slb/src/model/DeleteDomainExtensionRequest.cc @@ -33,7 +33,7 @@ std::string DeleteDomainExtensionRequest::getAccess_key_id()const void DeleteDomainExtensionRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteDomainExtensionRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteDomainExtensionRequest::getResourceOwnerId()const void DeleteDomainExtensionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteDomainExtensionRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteDomainExtensionRequest::getResourceOwnerAccount()const void DeleteDomainExtensionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteDomainExtensionRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteDomainExtensionRequest::getRegionId()const void DeleteDomainExtensionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteDomainExtensionRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteDomainExtensionRequest::getOwnerAccount()const void DeleteDomainExtensionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteDomainExtensionRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DeleteDomainExtensionRequest::getOwnerId()const void DeleteDomainExtensionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteDomainExtensionRequest::getTags()const @@ -99,7 +99,7 @@ std::string DeleteDomainExtensionRequest::getTags()const void DeleteDomainExtensionRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string DeleteDomainExtensionRequest::getDomainExtensionId()const @@ -110,6 +110,6 @@ std::string DeleteDomainExtensionRequest::getDomainExtensionId()const void DeleteDomainExtensionRequest::setDomainExtensionId(const std::string& domainExtensionId) { domainExtensionId_ = domainExtensionId; - setParameter("DomainExtensionId", domainExtensionId); + setCoreParameter("DomainExtensionId", domainExtensionId); } diff --git a/slb/src/model/DeleteDomainExtensionResult.cc b/slb/src/model/DeleteDomainExtensionResult.cc index 4df31ea60..213c0ec26 100644 --- a/slb/src/model/DeleteDomainExtensionResult.cc +++ b/slb/src/model/DeleteDomainExtensionResult.cc @@ -35,10 +35,13 @@ DeleteDomainExtensionResult::~DeleteDomainExtensionResult() void DeleteDomainExtensionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteLoadBalancerListenerRequest.cc b/slb/src/model/DeleteLoadBalancerListenerRequest.cc index c5d2def80..fface7393 100644 --- a/slb/src/model/DeleteLoadBalancerListenerRequest.cc +++ b/slb/src/model/DeleteLoadBalancerListenerRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLoadBalancerListenerRequest::getAccess_key_id()const void DeleteLoadBalancerListenerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteLoadBalancerListenerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteLoadBalancerListenerRequest::getResourceOwnerId()const void DeleteLoadBalancerListenerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DeleteLoadBalancerListenerRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DeleteLoadBalancerListenerRequest::getListenerPort()const void DeleteLoadBalancerListenerRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DeleteLoadBalancerListenerRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DeleteLoadBalancerListenerRequest::getLoadBalancerId()const void DeleteLoadBalancerListenerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DeleteLoadBalancerListenerRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteLoadBalancerListenerRequest::getRegionId()const void DeleteLoadBalancerListenerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteLoadBalancerListenerRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteLoadBalancerListenerRequest::getResourceOwnerAccount()const void DeleteLoadBalancerListenerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteLoadBalancerListenerRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DeleteLoadBalancerListenerRequest::getOwnerAccount()const void DeleteLoadBalancerListenerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteLoadBalancerListenerRequest::getOwnerId()const @@ -110,7 +110,18 @@ long DeleteLoadBalancerListenerRequest::getOwnerId()const void DeleteLoadBalancerListenerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteLoadBalancerListenerRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void DeleteLoadBalancerListenerRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string DeleteLoadBalancerListenerRequest::getTags()const @@ -121,6 +132,6 @@ std::string DeleteLoadBalancerListenerRequest::getTags()const void DeleteLoadBalancerListenerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteLoadBalancerListenerResult.cc b/slb/src/model/DeleteLoadBalancerListenerResult.cc index ecfd2dd15..59bd012c5 100644 --- a/slb/src/model/DeleteLoadBalancerListenerResult.cc +++ b/slb/src/model/DeleteLoadBalancerListenerResult.cc @@ -35,10 +35,13 @@ DeleteLoadBalancerListenerResult::~DeleteLoadBalancerListenerResult() void DeleteLoadBalancerListenerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteLoadBalancerRequest.cc b/slb/src/model/DeleteLoadBalancerRequest.cc index 83801ffe4..de8b9ffe1 100644 --- a/slb/src/model/DeleteLoadBalancerRequest.cc +++ b/slb/src/model/DeleteLoadBalancerRequest.cc @@ -33,7 +33,7 @@ std::string DeleteLoadBalancerRequest::getAccess_key_id()const void DeleteLoadBalancerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteLoadBalancerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteLoadBalancerRequest::getResourceOwnerId()const void DeleteLoadBalancerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteLoadBalancerRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string DeleteLoadBalancerRequest::getLoadBalancerId()const void DeleteLoadBalancerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DeleteLoadBalancerRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteLoadBalancerRequest::getRegionId()const void DeleteLoadBalancerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteLoadBalancerRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteLoadBalancerRequest::getResourceOwnerAccount()const void DeleteLoadBalancerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteLoadBalancerRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteLoadBalancerRequest::getOwnerAccount()const void DeleteLoadBalancerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteLoadBalancerRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DeleteLoadBalancerRequest::getOwnerId()const void DeleteLoadBalancerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteLoadBalancerRequest::getTags()const @@ -110,6 +110,6 @@ std::string DeleteLoadBalancerRequest::getTags()const void DeleteLoadBalancerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteLoadBalancerResult.cc b/slb/src/model/DeleteLoadBalancerResult.cc index e216a36c2..741f83e12 100644 --- a/slb/src/model/DeleteLoadBalancerResult.cc +++ b/slb/src/model/DeleteLoadBalancerResult.cc @@ -35,10 +35,13 @@ DeleteLoadBalancerResult::~DeleteLoadBalancerResult() void DeleteLoadBalancerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteMasterSlaveServerGroupRequest.cc b/slb/src/model/DeleteMasterSlaveServerGroupRequest.cc index 166c24ec4..522d1cc80 100644 --- a/slb/src/model/DeleteMasterSlaveServerGroupRequest.cc +++ b/slb/src/model/DeleteMasterSlaveServerGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteMasterSlaveServerGroupRequest::getAccess_key_id()const void DeleteMasterSlaveServerGroupRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteMasterSlaveServerGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteMasterSlaveServerGroupRequest::getResourceOwnerId()const void DeleteMasterSlaveServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMasterSlaveServerGroupRequest::getMasterSlaveServerGroupId()const @@ -55,7 +55,7 @@ std::string DeleteMasterSlaveServerGroupRequest::getMasterSlaveServerGroupId()co void DeleteMasterSlaveServerGroupRequest::setMasterSlaveServerGroupId(const std::string& masterSlaveServerGroupId) { masterSlaveServerGroupId_ = masterSlaveServerGroupId; - setParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); + setCoreParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); } std::string DeleteMasterSlaveServerGroupRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteMasterSlaveServerGroupRequest::getResourceOwnerAccount()const void DeleteMasterSlaveServerGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMasterSlaveServerGroupRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteMasterSlaveServerGroupRequest::getRegionId()const void DeleteMasterSlaveServerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteMasterSlaveServerGroupRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteMasterSlaveServerGroupRequest::getOwnerAccount()const void DeleteMasterSlaveServerGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteMasterSlaveServerGroupRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DeleteMasterSlaveServerGroupRequest::getOwnerId()const void DeleteMasterSlaveServerGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMasterSlaveServerGroupRequest::getTags()const @@ -110,6 +110,6 @@ std::string DeleteMasterSlaveServerGroupRequest::getTags()const void DeleteMasterSlaveServerGroupRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteMasterSlaveServerGroupResult.cc b/slb/src/model/DeleteMasterSlaveServerGroupResult.cc index 51f448aff..2adb1f4c9 100644 --- a/slb/src/model/DeleteMasterSlaveServerGroupResult.cc +++ b/slb/src/model/DeleteMasterSlaveServerGroupResult.cc @@ -35,10 +35,13 @@ DeleteMasterSlaveServerGroupResult::~DeleteMasterSlaveServerGroupResult() void DeleteMasterSlaveServerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteMasterSlaveVServerGroupRequest.cc b/slb/src/model/DeleteMasterSlaveVServerGroupRequest.cc index 63f57f07c..b5fb5cece 100644 --- a/slb/src/model/DeleteMasterSlaveVServerGroupRequest.cc +++ b/slb/src/model/DeleteMasterSlaveVServerGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteMasterSlaveVServerGroupRequest::getAccess_key_id()const void DeleteMasterSlaveVServerGroupRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteMasterSlaveVServerGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteMasterSlaveVServerGroupRequest::getResourceOwnerId()const void DeleteMasterSlaveVServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteMasterSlaveVServerGroupRequest::getMasterSlaveVServerGroupId()const @@ -55,7 +55,7 @@ std::string DeleteMasterSlaveVServerGroupRequest::getMasterSlaveVServerGroupId() void DeleteMasterSlaveVServerGroupRequest::setMasterSlaveVServerGroupId(const std::string& masterSlaveVServerGroupId) { masterSlaveVServerGroupId_ = masterSlaveVServerGroupId; - setParameter("MasterSlaveVServerGroupId", masterSlaveVServerGroupId); + setCoreParameter("MasterSlaveVServerGroupId", masterSlaveVServerGroupId); } std::string DeleteMasterSlaveVServerGroupRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteMasterSlaveVServerGroupRequest::getResourceOwnerAccount()const void DeleteMasterSlaveVServerGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteMasterSlaveVServerGroupRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteMasterSlaveVServerGroupRequest::getRegionId()const void DeleteMasterSlaveVServerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteMasterSlaveVServerGroupRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteMasterSlaveVServerGroupRequest::getOwnerAccount()const void DeleteMasterSlaveVServerGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteMasterSlaveVServerGroupRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DeleteMasterSlaveVServerGroupRequest::getOwnerId()const void DeleteMasterSlaveVServerGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteMasterSlaveVServerGroupRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DeleteMasterSlaveVServerGroupRequest::getAccessKeyId()const void DeleteMasterSlaveVServerGroupRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeleteMasterSlaveVServerGroupRequest::getTags()const @@ -121,6 +121,6 @@ std::string DeleteMasterSlaveVServerGroupRequest::getTags()const void DeleteMasterSlaveVServerGroupRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteMasterSlaveVServerGroupResult.cc b/slb/src/model/DeleteMasterSlaveVServerGroupResult.cc index a85fe311a..19dbc0ea5 100644 --- a/slb/src/model/DeleteMasterSlaveVServerGroupResult.cc +++ b/slb/src/model/DeleteMasterSlaveVServerGroupResult.cc @@ -35,10 +35,13 @@ DeleteMasterSlaveVServerGroupResult::~DeleteMasterSlaveVServerGroupResult() void DeleteMasterSlaveVServerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteRulesRequest.cc b/slb/src/model/DeleteRulesRequest.cc index 09ab7dd73..604bff327 100644 --- a/slb/src/model/DeleteRulesRequest.cc +++ b/slb/src/model/DeleteRulesRequest.cc @@ -33,7 +33,7 @@ std::string DeleteRulesRequest::getAccess_key_id()const void DeleteRulesRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteRulesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteRulesRequest::getResourceOwnerId()const void DeleteRulesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteRulesRequest::getRuleIds()const @@ -55,7 +55,7 @@ std::string DeleteRulesRequest::getRuleIds()const void DeleteRulesRequest::setRuleIds(const std::string& ruleIds) { ruleIds_ = ruleIds; - setParameter("RuleIds", ruleIds); + setCoreParameter("RuleIds", ruleIds); } std::string DeleteRulesRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteRulesRequest::getResourceOwnerAccount()const void DeleteRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteRulesRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteRulesRequest::getRegionId()const void DeleteRulesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteRulesRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteRulesRequest::getOwnerAccount()const void DeleteRulesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteRulesRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DeleteRulesRequest::getOwnerId()const void DeleteRulesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteRulesRequest::getTags()const @@ -110,6 +110,6 @@ std::string DeleteRulesRequest::getTags()const void DeleteRulesRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteRulesResult.cc b/slb/src/model/DeleteRulesResult.cc index 75ab2adb1..db0b4f407 100644 --- a/slb/src/model/DeleteRulesResult.cc +++ b/slb/src/model/DeleteRulesResult.cc @@ -35,10 +35,13 @@ DeleteRulesResult::~DeleteRulesResult() void DeleteRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteServerCertificateRequest.cc b/slb/src/model/DeleteServerCertificateRequest.cc index bf74306a1..34d64cff5 100644 --- a/slb/src/model/DeleteServerCertificateRequest.cc +++ b/slb/src/model/DeleteServerCertificateRequest.cc @@ -33,7 +33,7 @@ std::string DeleteServerCertificateRequest::getAccess_key_id()const void DeleteServerCertificateRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DeleteServerCertificateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteServerCertificateRequest::getResourceOwnerId()const void DeleteServerCertificateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteServerCertificateRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteServerCertificateRequest::getResourceOwnerAccount()const void DeleteServerCertificateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteServerCertificateRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteServerCertificateRequest::getRegionId()const void DeleteServerCertificateRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteServerCertificateRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteServerCertificateRequest::getOwnerAccount()const void DeleteServerCertificateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteServerCertificateRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DeleteServerCertificateRequest::getOwnerId()const void DeleteServerCertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteServerCertificateRequest::getServerCertificateId()const @@ -99,7 +99,7 @@ std::string DeleteServerCertificateRequest::getServerCertificateId()const void DeleteServerCertificateRequest::setServerCertificateId(const std::string& serverCertificateId) { serverCertificateId_ = serverCertificateId; - setParameter("ServerCertificateId", serverCertificateId); + setCoreParameter("ServerCertificateId", serverCertificateId); } std::string DeleteServerCertificateRequest::getTags()const @@ -110,6 +110,6 @@ std::string DeleteServerCertificateRequest::getTags()const void DeleteServerCertificateRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteServerCertificateResult.cc b/slb/src/model/DeleteServerCertificateResult.cc index 9045e3d8a..a662ab538 100644 --- a/slb/src/model/DeleteServerCertificateResult.cc +++ b/slb/src/model/DeleteServerCertificateResult.cc @@ -35,10 +35,13 @@ DeleteServerCertificateResult::~DeleteServerCertificateResult() void DeleteServerCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DeleteVServerGroupRequest.cc b/slb/src/model/DeleteVServerGroupRequest.cc index 7f377e08b..635bb7bbd 100644 --- a/slb/src/model/DeleteVServerGroupRequest.cc +++ b/slb/src/model/DeleteVServerGroupRequest.cc @@ -33,7 +33,7 @@ std::string DeleteVServerGroupRequest::getAccess_key_id()const void DeleteVServerGroupRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string DeleteVServerGroupRequest::getVServerGroupId()const @@ -44,7 +44,7 @@ std::string DeleteVServerGroupRequest::getVServerGroupId()const void DeleteVServerGroupRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } long DeleteVServerGroupRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DeleteVServerGroupRequest::getResourceOwnerId()const void DeleteVServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteVServerGroupRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteVServerGroupRequest::getResourceOwnerAccount()const void DeleteVServerGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteVServerGroupRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteVServerGroupRequest::getRegionId()const void DeleteVServerGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteVServerGroupRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteVServerGroupRequest::getOwnerAccount()const void DeleteVServerGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteVServerGroupRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DeleteVServerGroupRequest::getOwnerId()const void DeleteVServerGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteVServerGroupRequest::getTags()const @@ -110,6 +110,6 @@ std::string DeleteVServerGroupRequest::getTags()const void DeleteVServerGroupRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DeleteVServerGroupResult.cc b/slb/src/model/DeleteVServerGroupResult.cc index 8bcb8495f..5fdc26496 100644 --- a/slb/src/model/DeleteVServerGroupResult.cc +++ b/slb/src/model/DeleteVServerGroupResult.cc @@ -35,10 +35,13 @@ DeleteVServerGroupResult::~DeleteVServerGroupResult() void DeleteVServerGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/DescribeAccessControlListAttributeRequest.cc b/slb/src/model/DescribeAccessControlListAttributeRequest.cc index ecf298d86..ad6a35cc6 100644 --- a/slb/src/model/DescribeAccessControlListAttributeRequest.cc +++ b/slb/src/model/DescribeAccessControlListAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccessControlListAttributeRequest::getAccess_key_id()const void DescribeAccessControlListAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string DescribeAccessControlListAttributeRequest::getAclId()const @@ -44,7 +44,7 @@ std::string DescribeAccessControlListAttributeRequest::getAclId()const void DescribeAccessControlListAttributeRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long DescribeAccessControlListAttributeRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DescribeAccessControlListAttributeRequest::getResourceOwnerId()const void DescribeAccessControlListAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeAccessControlListAttributeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeAccessControlListAttributeRequest::getResourceOwnerAccount() void DescribeAccessControlListAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeAccessControlListAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeAccessControlListAttributeRequest::getRegionId()const void DescribeAccessControlListAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeAccessControlListAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeAccessControlListAttributeRequest::getOwnerAccount()const void DescribeAccessControlListAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeAccessControlListAttributeRequest::getAclEntryComment()const @@ -99,7 +99,7 @@ std::string DescribeAccessControlListAttributeRequest::getAclEntryComment()const void DescribeAccessControlListAttributeRequest::setAclEntryComment(const std::string& aclEntryComment) { aclEntryComment_ = aclEntryComment; - setParameter("AclEntryComment", aclEntryComment); + setCoreParameter("AclEntryComment", aclEntryComment); } long DescribeAccessControlListAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeAccessControlListAttributeRequest::getOwnerId()const void DescribeAccessControlListAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeAccessControlListAttributeRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeAccessControlListAttributeRequest::getAccessKeyId()const void DescribeAccessControlListAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeAccessControlListAttributeRequest::getTags()const @@ -132,6 +132,6 @@ std::string DescribeAccessControlListAttributeRequest::getTags()const void DescribeAccessControlListAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeAccessControlListAttributeResult.cc b/slb/src/model/DescribeAccessControlListAttributeResult.cc index f2b0d84e4..8d2d12148 100644 --- a/slb/src/model/DescribeAccessControlListAttributeResult.cc +++ b/slb/src/model/DescribeAccessControlListAttributeResult.cc @@ -35,10 +35,13 @@ DescribeAccessControlListAttributeResult::~DescribeAccessControlListAttributeRes void DescribeAccessControlListAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAclEntrys = value["AclEntrys"]["AclEntry"]; for (auto value : allAclEntrys) @@ -70,6 +73,8 @@ void DescribeAccessControlListAttributeResult::parse(const std::string &payload) aclName_ = value["AclName"].asString(); if(!value["AddressIPVersion"].isNull()) addressIPVersion_ = value["AddressIPVersion"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -78,6 +83,11 @@ std::vector DescribeAccessCo return aclEntrys_; } +std::string DescribeAccessControlListAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string DescribeAccessControlListAttributeResult::getAclId()const { return aclId_; diff --git a/slb/src/model/DescribeAccessControlListsRequest.cc b/slb/src/model/DescribeAccessControlListsRequest.cc index 6d12ebb6c..47f199720 100644 --- a/slb/src/model/DescribeAccessControlListsRequest.cc +++ b/slb/src/model/DescribeAccessControlListsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeAccessControlListsRequest::getAccess_key_id()const void DescribeAccessControlListsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeAccessControlListsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeAccessControlListsRequest::getResourceOwnerId()const void DescribeAccessControlListsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeAccessControlListsRequest::getAclName()const @@ -55,7 +55,7 @@ std::string DescribeAccessControlListsRequest::getAclName()const void DescribeAccessControlListsRequest::setAclName(const std::string& aclName) { aclName_ = aclName; - setParameter("AclName", aclName); + setCoreParameter("AclName", aclName); } std::string DescribeAccessControlListsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeAccessControlListsRequest::getResourceOwnerAccount()const void DescribeAccessControlListsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeAccessControlListsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeAccessControlListsRequest::getOwnerAccount()const void DescribeAccessControlListsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeAccessControlListsRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeAccessControlListsRequest::getOwnerId()const void DescribeAccessControlListsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeAccessControlListsRequest::getAddressIPVersion()const @@ -99,7 +99,7 @@ std::string DescribeAccessControlListsRequest::getAddressIPVersion()const void DescribeAccessControlListsRequest::setAddressIPVersion(const std::string& addressIPVersion) { addressIPVersion_ = addressIPVersion; - setParameter("AddressIPVersion", addressIPVersion); + setCoreParameter("AddressIPVersion", addressIPVersion); } int DescribeAccessControlListsRequest::getPageNumber()const @@ -110,7 +110,7 @@ int DescribeAccessControlListsRequest::getPageNumber()const void DescribeAccessControlListsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeAccessControlListsRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string DescribeAccessControlListsRequest::getAccessKeyId()const void DescribeAccessControlListsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeAccessControlListsRequest::getTags()const @@ -132,7 +132,18 @@ std::string DescribeAccessControlListsRequest::getTags()const void DescribeAccessControlListsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); +} + +std::string DescribeAccessControlListsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeAccessControlListsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeAccessControlListsRequest::getRegionId()const @@ -143,7 +154,7 @@ std::string DescribeAccessControlListsRequest::getRegionId()const void DescribeAccessControlListsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeAccessControlListsRequest::getPageSize()const @@ -154,6 +165,23 @@ int DescribeAccessControlListsRequest::getPageSize()const void DescribeAccessControlListsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::vector DescribeAccessControlListsRequest::getTag()const +{ + return tag_; +} + +void DescribeAccessControlListsRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } diff --git a/slb/src/model/DescribeAccessControlListsResult.cc b/slb/src/model/DescribeAccessControlListsResult.cc index a7365c7ad..44d3be8c0 100644 --- a/slb/src/model/DescribeAccessControlListsResult.cc +++ b/slb/src/model/DescribeAccessControlListsResult.cc @@ -35,10 +35,13 @@ DescribeAccessControlListsResult::~DescribeAccessControlListsResult() void DescribeAccessControlListsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAcls = value["Acls"]["Acl"]; for (auto value : allAcls) @@ -50,6 +53,18 @@ void DescribeAccessControlListsResult::parse(const std::string &payload) aclsObject.aclName = value["AclName"].asString(); if(!value["AddressIPVersion"].isNull()) aclsObject.addressIPVersion = value["AddressIPVersion"].asString(); + if(!value["ResourceGroupId"].isNull()) + aclsObject.resourceGroupId = value["ResourceGroupId"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Acl::Tag tagsObject; + if(!value["TagKey"].isNull()) + tagsObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagsObject.tagValue = value["TagValue"].asString(); + aclsObject.tags.push_back(tagsObject); + } acls_.push_back(aclsObject); } diff --git a/slb/src/model/DescribeAvailableResourceRequest.cc b/slb/src/model/DescribeAvailableResourceRequest.cc new file mode 100644 index 000000000..43857d7be --- /dev/null +++ b/slb/src/model/DescribeAvailableResourceRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Slb::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : + RpcServiceRequest("slb", "2014-05-15", "DescribeAvailableResource") +{} + +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() +{} + +std::string DescribeAvailableResourceRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void DescribeAvailableResourceRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setCoreParameter("Access_key_id", access_key_id); +} + +long DescribeAvailableResourceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableResourceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAvailableResourceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAvailableResourceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAvailableResourceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAvailableResourceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAvailableResourceRequest::getAddressType()const +{ + return addressType_; +} + +void DescribeAvailableResourceRequest::setAddressType(const std::string& addressType) +{ + addressType_ = addressType; + setCoreParameter("AddressType", addressType); +} + +long DescribeAvailableResourceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAvailableResourceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAvailableResourceRequest::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +void DescribeAvailableResourceRequest::setAddressIPVersion(const std::string& addressIPVersion) +{ + addressIPVersion_ = addressIPVersion; + setCoreParameter("AddressIPVersion", addressIPVersion); +} + diff --git a/slb/src/model/DescribeAvailableResourceResult.cc b/slb/src/model/DescribeAvailableResourceResult.cc new file mode 100644 index 000000000..4fe5c2337 --- /dev/null +++ b/slb/src/model/DescribeAvailableResourceResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeAvailableResourceResult::DescribeAvailableResourceResult() : + ServiceResult() +{} + +DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableResourceResult::~DescribeAvailableResourceResult() +{} + +void DescribeAvailableResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allAvailableResources = value["AvailableResources"]["AvailableResource"]; + for (auto value : allAvailableResources) + { + AvailableResource availableResourcesObject; + if(!value["MasterZoneId"].isNull()) + availableResourcesObject.masterZoneId = value["MasterZoneId"].asString(); + if(!value["SlaveZoneId"].isNull()) + availableResourcesObject.slaveZoneId = value["SlaveZoneId"].asString(); + auto allSupportResources = value["SupportResources"]["SupportResource"]; + for (auto value : allSupportResources) + { + AvailableResource::SupportResource supportResourcesObject; + if(!value["AddressType"].isNull()) + supportResourcesObject.addressType = value["AddressType"].asString(); + if(!value["AddressIPVersion"].isNull()) + supportResourcesObject.addressIPVersion = value["AddressIPVersion"].asString(); + availableResourcesObject.supportResources.push_back(supportResourcesObject); + } + availableResources_.push_back(availableResourcesObject); + } + +} + +std::vector DescribeAvailableResourceResult::getAvailableResources()const +{ + return availableResources_; +} + diff --git a/slb/src/model/DescribeCACertificatesRequest.cc b/slb/src/model/DescribeCACertificatesRequest.cc index 53a840b3c..77056323b 100644 --- a/slb/src/model/DescribeCACertificatesRequest.cc +++ b/slb/src/model/DescribeCACertificatesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCACertificatesRequest::getAccess_key_id()const void DescribeCACertificatesRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string DescribeCACertificatesRequest::getResourceGroupId()const @@ -44,7 +44,7 @@ std::string DescribeCACertificatesRequest::getResourceGroupId()const void DescribeCACertificatesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } long DescribeCACertificatesRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DescribeCACertificatesRequest::getResourceOwnerId()const void DescribeCACertificatesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCACertificatesRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCACertificatesRequest::getResourceOwnerAccount()const void DescribeCACertificatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCACertificatesRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeCACertificatesRequest::getRegionId()const void DescribeCACertificatesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeCACertificatesRequest::getOwnerAccount()const @@ -88,7 +88,24 @@ std::string DescribeCACertificatesRequest::getOwnerAccount()const void DescribeCACertificatesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector DescribeCACertificatesRequest::getTag()const +{ + return tag_; +} + +void DescribeCACertificatesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } long DescribeCACertificatesRequest::getOwnerId()const @@ -99,7 +116,7 @@ long DescribeCACertificatesRequest::getOwnerId()const void DescribeCACertificatesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCACertificatesRequest::getCACertificateId()const @@ -110,6 +127,6 @@ std::string DescribeCACertificatesRequest::getCACertificateId()const void DescribeCACertificatesRequest::setCACertificateId(const std::string& cACertificateId) { cACertificateId_ = cACertificateId; - setParameter("CACertificateId", cACertificateId); + setCoreParameter("CACertificateId", cACertificateId); } diff --git a/slb/src/model/DescribeCACertificatesResult.cc b/slb/src/model/DescribeCACertificatesResult.cc index fd5910065..315ed0051 100644 --- a/slb/src/model/DescribeCACertificatesResult.cc +++ b/slb/src/model/DescribeCACertificatesResult.cc @@ -35,10 +35,13 @@ DescribeCACertificatesResult::~DescribeCACertificatesResult() void DescribeCACertificatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCACertificates = value["CACertificates"]["CACertificate"]; for (auto value : allCACertificates) @@ -64,6 +67,16 @@ void DescribeCACertificatesResult::parse(const std::string &payload) cACertificatesObject.expireTimeStamp = std::stol(value["ExpireTimeStamp"].asString()); if(!value["CommonName"].isNull()) cACertificatesObject.commonName = value["CommonName"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + CACertificate::Tag tagsObject; + if(!value["TagKey"].isNull()) + tagsObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagsObject.tagValue = value["TagValue"].asString(); + cACertificatesObject.tags.push_back(tagsObject); + } cACertificates_.push_back(cACertificatesObject); } diff --git a/slb/src/model/DescribeDomainExtensionsRequest.cc b/slb/src/model/DescribeDomainExtensionsRequest.cc index 94f89a9da..d692bf7b5 100644 --- a/slb/src/model/DescribeDomainExtensionsRequest.cc +++ b/slb/src/model/DescribeDomainExtensionsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeDomainExtensionsRequest::getAccess_key_id()const void DescribeDomainExtensionsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeDomainExtensionsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeDomainExtensionsRequest::getResourceOwnerId()const void DescribeDomainExtensionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeDomainExtensionsRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeDomainExtensionsRequest::getListenerPort()const void DescribeDomainExtensionsRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeDomainExtensionsRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeDomainExtensionsRequest::getLoadBalancerId()const void DescribeDomainExtensionsRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeDomainExtensionsRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeDomainExtensionsRequest::getResourceOwnerAccount()const void DescribeDomainExtensionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeDomainExtensionsRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string DescribeDomainExtensionsRequest::getRegionId()const void DescribeDomainExtensionsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeDomainExtensionsRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeDomainExtensionsRequest::getOwnerAccount()const void DescribeDomainExtensionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeDomainExtensionsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeDomainExtensionsRequest::getOwnerId()const void DescribeDomainExtensionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeDomainExtensionsRequest::getTags()const @@ -121,7 +121,7 @@ std::string DescribeDomainExtensionsRequest::getTags()const void DescribeDomainExtensionsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string DescribeDomainExtensionsRequest::getDomainExtensionId()const @@ -132,6 +132,6 @@ std::string DescribeDomainExtensionsRequest::getDomainExtensionId()const void DescribeDomainExtensionsRequest::setDomainExtensionId(const std::string& domainExtensionId) { domainExtensionId_ = domainExtensionId; - setParameter("DomainExtensionId", domainExtensionId); + setCoreParameter("DomainExtensionId", domainExtensionId); } diff --git a/slb/src/model/DescribeDomainExtensionsResult.cc b/slb/src/model/DescribeDomainExtensionsResult.cc index 9032d9a33..edd760568 100644 --- a/slb/src/model/DescribeDomainExtensionsResult.cc +++ b/slb/src/model/DescribeDomainExtensionsResult.cc @@ -35,10 +35,13 @@ DescribeDomainExtensionsResult::~DescribeDomainExtensionsResult() void DescribeDomainExtensionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainExtensions = value["DomainExtensions"]["DomainExtension"]; for (auto value : allDomainExtensions) diff --git a/slb/src/model/DescribeHealthStatusRequest.cc b/slb/src/model/DescribeHealthStatusRequest.cc index 8c213d68a..b3887fd22 100644 --- a/slb/src/model/DescribeHealthStatusRequest.cc +++ b/slb/src/model/DescribeHealthStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeHealthStatusRequest::getAccess_key_id()const void DescribeHealthStatusRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeHealthStatusRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeHealthStatusRequest::getResourceOwnerId()const void DescribeHealthStatusRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeHealthStatusRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeHealthStatusRequest::getListenerPort()const void DescribeHealthStatusRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeHealthStatusRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeHealthStatusRequest::getLoadBalancerId()const void DescribeHealthStatusRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeHealthStatusRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeHealthStatusRequest::getResourceOwnerAccount()const void DescribeHealthStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeHealthStatusRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string DescribeHealthStatusRequest::getRegionId()const void DescribeHealthStatusRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeHealthStatusRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeHealthStatusRequest::getOwnerAccount()const void DescribeHealthStatusRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeHealthStatusRequest::getOwnerId()const @@ -110,7 +110,18 @@ long DescribeHealthStatusRequest::getOwnerId()const void DescribeHealthStatusRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeHealthStatusRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void DescribeHealthStatusRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string DescribeHealthStatusRequest::getTags()const @@ -121,6 +132,6 @@ std::string DescribeHealthStatusRequest::getTags()const void DescribeHealthStatusRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeHealthStatusResult.cc b/slb/src/model/DescribeHealthStatusResult.cc index 969fe13ee..0f1fefec9 100644 --- a/slb/src/model/DescribeHealthStatusResult.cc +++ b/slb/src/model/DescribeHealthStatusResult.cc @@ -35,10 +35,13 @@ DescribeHealthStatusResult::~DescribeHealthStatusResult() void DescribeHealthStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -56,6 +59,8 @@ void DescribeHealthStatusResult::parse(const std::string &payload) backendServersObject.serverIp = value["ServerIp"].asString(); if(!value["EniHost"].isNull()) backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["Protocol"].isNull()) + backendServersObject.protocol = value["Protocol"].asString(); if(!value["Type"].isNull()) backendServersObject.type = value["Type"].asString(); backendServers_.push_back(backendServersObject); diff --git a/slb/src/model/DescribeListenerAccessControlAttributeRequest.cc b/slb/src/model/DescribeListenerAccessControlAttributeRequest.cc index 79ea67e7a..1477e272e 100644 --- a/slb/src/model/DescribeListenerAccessControlAttributeRequest.cc +++ b/slb/src/model/DescribeListenerAccessControlAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeListenerAccessControlAttributeRequest::getAccess_key_id()con void DescribeListenerAccessControlAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeListenerAccessControlAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeListenerAccessControlAttributeRequest::getResourceOwnerId()const void DescribeListenerAccessControlAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeListenerAccessControlAttributeRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeListenerAccessControlAttributeRequest::getListenerPort()const void DescribeListenerAccessControlAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeListenerAccessControlAttributeRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeListenerAccessControlAttributeRequest::getLoadBalancerId()co void DescribeListenerAccessControlAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeListenerAccessControlAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeListenerAccessControlAttributeRequest::getRegionId()const void DescribeListenerAccessControlAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeListenerAccessControlAttributeRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeListenerAccessControlAttributeRequest::getResourceOwnerAccou void DescribeListenerAccessControlAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeListenerAccessControlAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeListenerAccessControlAttributeRequest::getOwnerAccount()cons void DescribeListenerAccessControlAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeListenerAccessControlAttributeRequest::getOwnerId()const @@ -110,7 +110,18 @@ long DescribeListenerAccessControlAttributeRequest::getOwnerId()const void DescribeListenerAccessControlAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeListenerAccessControlAttributeRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void DescribeListenerAccessControlAttributeRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string DescribeListenerAccessControlAttributeRequest::getTags()const @@ -121,6 +132,6 @@ std::string DescribeListenerAccessControlAttributeRequest::getTags()const void DescribeListenerAccessControlAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeListenerAccessControlAttributeResult.cc b/slb/src/model/DescribeListenerAccessControlAttributeResult.cc index 84dda31ca..9eed40960 100644 --- a/slb/src/model/DescribeListenerAccessControlAttributeResult.cc +++ b/slb/src/model/DescribeListenerAccessControlAttributeResult.cc @@ -35,10 +35,13 @@ DescribeListenerAccessControlAttributeResult::~DescribeListenerAccessControlAttr void DescribeListenerAccessControlAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AccessControlStatus"].isNull()) accessControlStatus_ = value["AccessControlStatus"].asString(); diff --git a/slb/src/model/DescribeLoadBalancerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerAttributeRequest.cc index c2f0e2efa..ee5fa3d2b 100644 --- a/slb/src/model/DescribeLoadBalancerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerAttributeRequest.cc @@ -33,7 +33,18 @@ std::string DescribeLoadBalancerAttributeRequest::getAccess_key_id()const void DescribeLoadBalancerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); +} + +bool DescribeLoadBalancerAttributeRequest::getIncludeReservedData()const +{ + return includeReservedData_; +} + +void DescribeLoadBalancerAttributeRequest::setIncludeReservedData(bool includeReservedData) +{ + includeReservedData_ = includeReservedData; + setCoreParameter("IncludeReservedData", includeReservedData ? "true" : "false"); } long DescribeLoadBalancerAttributeRequest::getResourceOwnerId()const @@ -44,7 +55,7 @@ long DescribeLoadBalancerAttributeRequest::getResourceOwnerId()const void DescribeLoadBalancerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeLoadBalancerAttributeRequest::getLoadBalancerId()const @@ -55,7 +66,7 @@ std::string DescribeLoadBalancerAttributeRequest::getLoadBalancerId()const void DescribeLoadBalancerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeLoadBalancerAttributeRequest::getRegionId()const @@ -66,7 +77,7 @@ std::string DescribeLoadBalancerAttributeRequest::getRegionId()const void DescribeLoadBalancerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeLoadBalancerAttributeRequest::getResourceOwnerAccount()const @@ -77,7 +88,7 @@ std::string DescribeLoadBalancerAttributeRequest::getResourceOwnerAccount()const void DescribeLoadBalancerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeLoadBalancerAttributeRequest::getOwnerAccount()const @@ -88,7 +99,7 @@ std::string DescribeLoadBalancerAttributeRequest::getOwnerAccount()const void DescribeLoadBalancerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeLoadBalancerAttributeRequest::getOwnerId()const @@ -99,7 +110,7 @@ long DescribeLoadBalancerAttributeRequest::getOwnerId()const void DescribeLoadBalancerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLoadBalancerAttributeRequest::getTags()const @@ -110,6 +121,6 @@ std::string DescribeLoadBalancerAttributeRequest::getTags()const void DescribeLoadBalancerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeLoadBalancerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerAttributeResult.cc index c61bc4886..157ce6637 100644 --- a/slb/src/model/DescribeLoadBalancerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerAttributeResult.cc @@ -35,10 +35,13 @@ DescribeLoadBalancerAttributeResult::~DescribeLoadBalancerAttributeResult() void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allListenerPortsAndProtocal = value["ListenerPortsAndProtocal"]["ListenerPortAndProtocal"]; for (auto value : allListenerPortsAndProtocal) @@ -62,6 +65,8 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) listenerPortsAndProtocolObject.listenerForward = value["ListenerForward"].asString(); if(!value["ForwardPort"].isNull()) listenerPortsAndProtocolObject.forwardPort = std::stoi(value["ForwardPort"].asString()); + if(!value["Description"].isNull()) + listenerPortsAndProtocolObject.description = value["Description"].asString(); listenerPortsAndProtocol_.push_back(listenerPortsAndProtocolObject); } auto allBackendServers = value["BackendServers"]["BackendServer"]; @@ -76,10 +81,10 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) backendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) backendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } auto allListenerPorts = value["ListenerPorts"]["ListenerPort"]; @@ -139,6 +144,18 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) renewalStatus_ = value["RenewalStatus"].asString(); if(!value["RenewalCycUnit"].isNull()) renewalCycUnit_ = value["RenewalCycUnit"].asString(); + if(!value["HasReservedInfo"].isNull()) + hasReservedInfo_ = value["HasReservedInfo"].asString(); + if(!value["ReservedInfoOrderType"].isNull()) + reservedInfoOrderType_ = value["ReservedInfoOrderType"].asString(); + if(!value["ReservedInfoInternetChargeType"].isNull()) + reservedInfoInternetChargeType_ = value["ReservedInfoInternetChargeType"].asString(); + if(!value["ReservedInfoBandwidth"].isNull()) + reservedInfoBandwidth_ = value["ReservedInfoBandwidth"].asString(); + if(!value["ReservedInfoActiveTime"].isNull()) + reservedInfoActiveTime_ = value["ReservedInfoActiveTime"].asString(); + if(!value["DeleteProtection"].isNull()) + deleteProtection_ = value["DeleteProtection"].asString(); } @@ -187,6 +204,16 @@ std::vector DescribeLoadBala return backendServers_; } +std::string DescribeLoadBalancerAttributeResult::getHasReservedInfo()const +{ + return hasReservedInfo_; +} + +std::string DescribeLoadBalancerAttributeResult::getReservedInfoBandwidth()const +{ + return reservedInfoBandwidth_; +} + std::string DescribeLoadBalancerAttributeResult::getLoadBalancerSpec()const { return loadBalancerSpec_; @@ -242,6 +269,11 @@ std::string DescribeLoadBalancerAttributeResult::getPayType()const return payType_; } +std::string DescribeLoadBalancerAttributeResult::getReservedInfoActiveTime()const +{ + return reservedInfoActiveTime_; +} + std::string DescribeLoadBalancerAttributeResult::getSlaveZoneId()const { return slaveZoneId_; @@ -257,6 +289,11 @@ std::string DescribeLoadBalancerAttributeResult::getRegionIdAlias()const return regionIdAlias_; } +std::string DescribeLoadBalancerAttributeResult::getReservedInfoInternetChargeType()const +{ + return reservedInfoInternetChargeType_; +} + std::string DescribeLoadBalancerAttributeResult::getLoadBalancerName()const { return loadBalancerName_; @@ -267,6 +304,11 @@ std::string DescribeLoadBalancerAttributeResult::getVpcId()const return vpcId_; } +std::string DescribeLoadBalancerAttributeResult::getDeleteProtection()const +{ + return deleteProtection_; +} + long DescribeLoadBalancerAttributeResult::getEndTimeStamp()const { return endTimeStamp_; @@ -277,6 +319,11 @@ std::string DescribeLoadBalancerAttributeResult::getRegionId()const return regionId_; } +std::string DescribeLoadBalancerAttributeResult::getReservedInfoOrderType()const +{ + return reservedInfoOrderType_; +} + std::string DescribeLoadBalancerAttributeResult::getAddressType()const { return addressType_; diff --git a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc index 73e7004b5..7ef0c9961 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getAccess_key_id() void DescribeLoadBalancerHTTPListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerId()const void DescribeLoadBalancerHTTPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeLoadBalancerHTTPListenerAttributeRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeLoadBalancerHTTPListenerAttributeRequest::getListenerPort()const void DescribeLoadBalancerHTTPListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId( void DescribeLoadBalancerHTTPListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getRegionId()const void DescribeLoadBalancerHTTPListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerAc void DescribeLoadBalancerHTTPListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getOwnerAccount()c void DescribeLoadBalancerHTTPListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeLoadBalancerHTTPListenerAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeLoadBalancerHTTPListenerAttributeRequest::getOwnerId()const void DescribeLoadBalancerHTTPListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getTags()const @@ -121,6 +121,6 @@ std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getTags()const void DescribeLoadBalancerHTTPListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc index 8688b2553..ae2037c49 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc @@ -35,10 +35,13 @@ DescribeLoadBalancerHTTPListenerAttributeResult::~DescribeLoadBalancerHTTPListen void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) @@ -80,6 +83,8 @@ void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &p cookie_ = value["Cookie"].asString(); if(!value["HealthCheck"].isNull()) healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthCheckType"].isNull()) + healthCheckType_ = value["HealthCheckType"].asString(); if(!value["HealthCheckDomain"].isNull()) healthCheckDomain_ = value["HealthCheckDomain"].asString(); if(!value["HealthCheckURI"].isNull()) @@ -96,6 +101,8 @@ void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &p healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); if(!value["HealthCheckHttpCode"].isNull()) healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); if(!value["MaxConnection"].isNull()) maxConnection_ = std::stoi(value["MaxConnection"].asString()); if(!value["VServerGroupId"].isNull()) @@ -189,6 +196,11 @@ int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckConnectPort() return healthCheckConnectPort_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + int DescribeLoadBalancerHTTPListenerAttributeResult::getBandwidth()const { return bandwidth_; @@ -309,3 +321,8 @@ std::string DescribeLoadBalancerHTTPListenerAttributeResult::getAclType()const return aclType_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckType()const +{ + return healthCheckType_; +} + diff --git a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc index ac1fcfbdd..472ccc054 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getAccess_key_id( void DescribeLoadBalancerHTTPSListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerId()cons void DescribeLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeLoadBalancerHTTPSListenerAttributeRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeLoadBalancerHTTPSListenerAttributeRequest::getListenerPort()const void DescribeLoadBalancerHTTPSListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId void DescribeLoadBalancerHTTPSListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getRegionId()cons void DescribeLoadBalancerHTTPSListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerA void DescribeLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getOwnerAccount() void DescribeLoadBalancerHTTPSListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeLoadBalancerHTTPSListenerAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeLoadBalancerHTTPSListenerAttributeRequest::getOwnerId()const void DescribeLoadBalancerHTTPSListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getTags()const @@ -121,6 +121,6 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getTags()const void DescribeLoadBalancerHTTPSListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc index d748e0b1a..42c2a9142 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc @@ -35,10 +35,13 @@ DescribeLoadBalancerHTTPSListenerAttributeResult::~DescribeLoadBalancerHTTPSList void DescribeLoadBalancerHTTPSListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) @@ -72,6 +75,8 @@ void DescribeLoadBalancerHTTPSListenerAttributeResult::parse(const std::string & listenerPort_ = std::stoi(value["ListenerPort"].asString()); if(!value["BackendServerPort"].isNull()) backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["BackendProtocol"].isNull()) + backendProtocol_ = std::stoi(value["BackendProtocol"].asString()); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); if(!value["Status"].isNull()) @@ -92,6 +97,8 @@ void DescribeLoadBalancerHTTPSListenerAttributeResult::parse(const std::string & cookie_ = value["Cookie"].asString(); if(!value["HealthCheck"].isNull()) healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthCheckType"].isNull()) + healthCheckType_ = value["HealthCheckType"].asString(); if(!value["HealthCheckDomain"].isNull()) healthCheckDomain_ = value["HealthCheckDomain"].asString(); if(!value["HealthCheckURI"].isNull()) @@ -112,6 +119,8 @@ void DescribeLoadBalancerHTTPSListenerAttributeResult::parse(const std::string & serverCertificateId_ = value["ServerCertificateId"].asString(); if(!value["CACertificateId"].isNull()) cACertificateId_ = value["CACertificateId"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); if(!value["MaxConnection"].isNull()) maxConnection_ = std::stoi(value["MaxConnection"].asString()); if(!value["VServerGroupId"].isNull()) @@ -160,6 +169,11 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getVServerGroupId( return vServerGroupId_; } +int DescribeLoadBalancerHTTPSListenerAttributeResult::getBackendProtocol()const +{ + return backendProtocol_; +} + std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getDescription()const { return description_; @@ -210,6 +224,11 @@ int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckConnectPort( return healthCheckConnectPort_; } +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + int DescribeLoadBalancerHTTPSListenerAttributeResult::getBandwidth()const { return bandwidth_; @@ -340,3 +359,8 @@ std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getEnableHttp2()co return enableHttp2_; } +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckType()const +{ + return healthCheckType_; +} + diff --git a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc index 281e5de63..e232ea8fc 100644 --- a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLoadBalancerTCPListenerAttributeRequest::getAccess_key_id()c void DescribeLoadBalancerTCPListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeLoadBalancerTCPListenerAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeLoadBalancerTCPListenerAttributeRequest::getResourceOwnerId()const void DescribeLoadBalancerTCPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeLoadBalancerTCPListenerAttributeRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeLoadBalancerTCPListenerAttributeRequest::getListenerPort()const void DescribeLoadBalancerTCPListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId() void DescribeLoadBalancerTCPListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeLoadBalancerTCPListenerAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeLoadBalancerTCPListenerAttributeRequest::getRegionId()const void DescribeLoadBalancerTCPListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeLoadBalancerTCPListenerAttributeRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeLoadBalancerTCPListenerAttributeRequest::getResourceOwnerAcc void DescribeLoadBalancerTCPListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeLoadBalancerTCPListenerAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeLoadBalancerTCPListenerAttributeRequest::getOwnerAccount()co void DescribeLoadBalancerTCPListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeLoadBalancerTCPListenerAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeLoadBalancerTCPListenerAttributeRequest::getOwnerId()const void DescribeLoadBalancerTCPListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLoadBalancerTCPListenerAttributeRequest::getTags()const @@ -121,6 +121,6 @@ std::string DescribeLoadBalancerTCPListenerAttributeRequest::getTags()const void DescribeLoadBalancerTCPListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc index 8fc1e0306..5a35740a0 100644 --- a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc @@ -35,10 +35,13 @@ DescribeLoadBalancerTCPListenerAttributeResult::~DescribeLoadBalancerTCPListener void DescribeLoadBalancerTCPListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ListenerPort"].isNull()) listenerPort_ = std::stoi(value["ListenerPort"].asString()); @@ -76,6 +79,8 @@ void DescribeLoadBalancerTCPListenerAttributeResult::parse(const std::string &pa healthCheckURI_ = value["HealthCheckURI"].asString(); if(!value["HealthCheckType"].isNull()) healthCheckType_ = value["HealthCheckType"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); if(!value["MaxConnection"].isNull()) maxConnection_ = std::stoi(value["MaxConnection"].asString()); if(!value["VServerGroupId"].isNull()) @@ -150,6 +155,11 @@ int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectPort()c return healthCheckConnectPort_; } +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + int DescribeLoadBalancerTCPListenerAttributeResult::getBandwidth()const { return bandwidth_; diff --git a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc index 89650924f..730ac1906 100644 --- a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLoadBalancerUDPListenerAttributeRequest::getAccess_key_id()c void DescribeLoadBalancerUDPListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeLoadBalancerUDPListenerAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeLoadBalancerUDPListenerAttributeRequest::getResourceOwnerId()const void DescribeLoadBalancerUDPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeLoadBalancerUDPListenerAttributeRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeLoadBalancerUDPListenerAttributeRequest::getListenerPort()const void DescribeLoadBalancerUDPListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId() void DescribeLoadBalancerUDPListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeLoadBalancerUDPListenerAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeLoadBalancerUDPListenerAttributeRequest::getRegionId()const void DescribeLoadBalancerUDPListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeLoadBalancerUDPListenerAttributeRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeLoadBalancerUDPListenerAttributeRequest::getResourceOwnerAcc void DescribeLoadBalancerUDPListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeLoadBalancerUDPListenerAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeLoadBalancerUDPListenerAttributeRequest::getOwnerAccount()co void DescribeLoadBalancerUDPListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeLoadBalancerUDPListenerAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeLoadBalancerUDPListenerAttributeRequest::getOwnerId()const void DescribeLoadBalancerUDPListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLoadBalancerUDPListenerAttributeRequest::getTags()const @@ -121,6 +121,6 @@ std::string DescribeLoadBalancerUDPListenerAttributeRequest::getTags()const void DescribeLoadBalancerUDPListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc index ebb91b0a6..ad8256810 100644 --- a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc @@ -35,10 +35,13 @@ DescribeLoadBalancerUDPListenerAttributeResult::~DescribeLoadBalancerUDPListener void DescribeLoadBalancerUDPListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ListenerPort"].isNull()) listenerPort_ = std::stoi(value["ListenerPort"].asString()); diff --git a/slb/src/model/DescribeLoadBalancersRequest.cc b/slb/src/model/DescribeLoadBalancersRequest.cc index b03a61f11..ffce4a555 100644 --- a/slb/src/model/DescribeLoadBalancersRequest.cc +++ b/slb/src/model/DescribeLoadBalancersRequest.cc @@ -33,7 +33,7 @@ std::string DescribeLoadBalancersRequest::getAccess_key_id()const void DescribeLoadBalancersRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeLoadBalancersRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeLoadBalancersRequest::getResourceOwnerId()const void DescribeLoadBalancersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeLoadBalancersRequest::getNetworkType()const @@ -55,7 +55,7 @@ std::string DescribeLoadBalancersRequest::getNetworkType()const void DescribeLoadBalancersRequest::setNetworkType(const std::string& networkType) { networkType_ = networkType; - setParameter("NetworkType", networkType); + setCoreParameter("NetworkType", networkType); } std::string DescribeLoadBalancersRequest::getAddressIPVersion()const @@ -66,7 +66,7 @@ std::string DescribeLoadBalancersRequest::getAddressIPVersion()const void DescribeLoadBalancersRequest::setAddressIPVersion(const std::string& addressIPVersion) { addressIPVersion_ = addressIPVersion; - setParameter("AddressIPVersion", addressIPVersion); + setCoreParameter("AddressIPVersion", addressIPVersion); } std::string DescribeLoadBalancersRequest::getMasterZoneId()const @@ -77,7 +77,7 @@ std::string DescribeLoadBalancersRequest::getMasterZoneId()const void DescribeLoadBalancersRequest::setMasterZoneId(const std::string& masterZoneId) { masterZoneId_ = masterZoneId; - setParameter("MasterZoneId", masterZoneId); + setCoreParameter("MasterZoneId", masterZoneId); } int DescribeLoadBalancersRequest::getPageNumber()const @@ -88,7 +88,7 @@ int DescribeLoadBalancersRequest::getPageNumber()const void DescribeLoadBalancersRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeLoadBalancersRequest::getResourceGroupId()const @@ -99,7 +99,7 @@ std::string DescribeLoadBalancersRequest::getResourceGroupId()const void DescribeLoadBalancersRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeLoadBalancersRequest::getLoadBalancerName()const @@ -110,7 +110,7 @@ std::string DescribeLoadBalancersRequest::getLoadBalancerName()const void DescribeLoadBalancersRequest::setLoadBalancerName(const std::string& loadBalancerName) { loadBalancerName_ = loadBalancerName; - setParameter("LoadBalancerName", loadBalancerName); + setCoreParameter("LoadBalancerName", loadBalancerName); } std::string DescribeLoadBalancersRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string DescribeLoadBalancersRequest::getRegionId()const void DescribeLoadBalancersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeLoadBalancersRequest::getPageSize()const @@ -132,7 +132,7 @@ int DescribeLoadBalancersRequest::getPageSize()const void DescribeLoadBalancersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeLoadBalancersRequest::getAddressType()const @@ -143,7 +143,7 @@ std::string DescribeLoadBalancersRequest::getAddressType()const void DescribeLoadBalancersRequest::setAddressType(const std::string& addressType) { addressType_ = addressType; - setParameter("AddressType", addressType); + setCoreParameter("AddressType", addressType); } std::string DescribeLoadBalancersRequest::getSlaveZoneId()const @@ -154,7 +154,24 @@ std::string DescribeLoadBalancersRequest::getSlaveZoneId()const void DescribeLoadBalancersRequest::setSlaveZoneId(const std::string& slaveZoneId) { slaveZoneId_ = slaveZoneId; - setParameter("SlaveZoneId", slaveZoneId); + setCoreParameter("SlaveZoneId", slaveZoneId); +} + +std::vector DescribeLoadBalancersRequest::getTag()const +{ + return tag_; +} + +void DescribeLoadBalancersRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } std::string DescribeLoadBalancersRequest::getFuzzy()const @@ -165,7 +182,7 @@ std::string DescribeLoadBalancersRequest::getFuzzy()const void DescribeLoadBalancersRequest::setFuzzy(const std::string& fuzzy) { fuzzy_ = fuzzy; - setParameter("Fuzzy", fuzzy); + setCoreParameter("Fuzzy", fuzzy); } std::string DescribeLoadBalancersRequest::getAddress()const @@ -176,7 +193,7 @@ std::string DescribeLoadBalancersRequest::getAddress()const void DescribeLoadBalancersRequest::setAddress(const std::string& address) { address_ = address; - setParameter("Address", address); + setCoreParameter("Address", address); } std::string DescribeLoadBalancersRequest::getResourceOwnerAccount()const @@ -187,7 +204,7 @@ std::string DescribeLoadBalancersRequest::getResourceOwnerAccount()const void DescribeLoadBalancersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeLoadBalancersRequest::getOwnerAccount()const @@ -198,7 +215,7 @@ std::string DescribeLoadBalancersRequest::getOwnerAccount()const void DescribeLoadBalancersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeLoadBalancersRequest::getOwnerId()const @@ -209,7 +226,7 @@ long DescribeLoadBalancersRequest::getOwnerId()const void DescribeLoadBalancersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeLoadBalancersRequest::getServerId()const @@ -220,7 +237,7 @@ std::string DescribeLoadBalancersRequest::getServerId()const void DescribeLoadBalancersRequest::setServerId(const std::string& serverId) { serverId_ = serverId; - setParameter("ServerId", serverId); + setCoreParameter("ServerId", serverId); } std::string DescribeLoadBalancersRequest::getLoadBalancerStatus()const @@ -231,7 +248,7 @@ std::string DescribeLoadBalancersRequest::getLoadBalancerStatus()const void DescribeLoadBalancersRequest::setLoadBalancerStatus(const std::string& loadBalancerStatus) { loadBalancerStatus_ = loadBalancerStatus; - setParameter("LoadBalancerStatus", loadBalancerStatus); + setCoreParameter("LoadBalancerStatus", loadBalancerStatus); } std::string DescribeLoadBalancersRequest::getTags()const @@ -242,7 +259,7 @@ std::string DescribeLoadBalancersRequest::getTags()const void DescribeLoadBalancersRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string DescribeLoadBalancersRequest::getServerIntranetAddress()const @@ -253,7 +270,7 @@ std::string DescribeLoadBalancersRequest::getServerIntranetAddress()const void DescribeLoadBalancersRequest::setServerIntranetAddress(const std::string& serverIntranetAddress) { serverIntranetAddress_ = serverIntranetAddress; - setParameter("ServerIntranetAddress", serverIntranetAddress); + setCoreParameter("ServerIntranetAddress", serverIntranetAddress); } std::string DescribeLoadBalancersRequest::getVSwitchId()const @@ -264,7 +281,7 @@ std::string DescribeLoadBalancersRequest::getVSwitchId()const void DescribeLoadBalancersRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string DescribeLoadBalancersRequest::getLoadBalancerId()const @@ -275,7 +292,7 @@ std::string DescribeLoadBalancersRequest::getLoadBalancerId()const void DescribeLoadBalancersRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeLoadBalancersRequest::getInternetChargeType()const @@ -286,7 +303,7 @@ std::string DescribeLoadBalancersRequest::getInternetChargeType()const void DescribeLoadBalancersRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } std::string DescribeLoadBalancersRequest::getVpcId()const @@ -297,7 +314,7 @@ std::string DescribeLoadBalancersRequest::getVpcId()const void DescribeLoadBalancersRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeLoadBalancersRequest::getPayType()const @@ -308,6 +325,6 @@ std::string DescribeLoadBalancersRequest::getPayType()const void DescribeLoadBalancersRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); } diff --git a/slb/src/model/DescribeLoadBalancersResult.cc b/slb/src/model/DescribeLoadBalancersResult.cc index 98cd5f105..b1c9a3268 100644 --- a/slb/src/model/DescribeLoadBalancersResult.cc +++ b/slb/src/model/DescribeLoadBalancersResult.cc @@ -35,10 +35,13 @@ DescribeLoadBalancersResult::~DescribeLoadBalancersResult() void DescribeLoadBalancersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLoadBalancers = value["LoadBalancers"]["LoadBalancer"]; for (auto value : allLoadBalancers) @@ -80,6 +83,16 @@ void DescribeLoadBalancersResult::parse(const std::string &payload) loadBalancersObject.resourceGroupId = value["ResourceGroupId"].asString(); if(!value["AddressIPVersion"].isNull()) loadBalancersObject.addressIPVersion = value["AddressIPVersion"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + LoadBalancer::Tag tagsObject; + if(!value["TagKey"].isNull()) + tagsObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagsObject.tagValue = value["TagValue"].asString(); + loadBalancersObject.tags.push_back(tagsObject); + } loadBalancers_.push_back(loadBalancersObject); } if(!value["PageNumber"].isNull()) diff --git a/slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc b/slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc index 0aaadde04..23059f512 100644 --- a/slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc +++ b/slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeMasterSlaveServerGroupAttributeRequest::getAccess_key_id()co void DescribeMasterSlaveServerGroupAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeMasterSlaveServerGroupAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeMasterSlaveServerGroupAttributeRequest::getResourceOwnerId()const void DescribeMasterSlaveServerGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeMasterSlaveServerGroupAttributeRequest::getMasterSlaveServerGroupId()const @@ -55,7 +55,7 @@ std::string DescribeMasterSlaveServerGroupAttributeRequest::getMasterSlaveServer void DescribeMasterSlaveServerGroupAttributeRequest::setMasterSlaveServerGroupId(const std::string& masterSlaveServerGroupId) { masterSlaveServerGroupId_ = masterSlaveServerGroupId; - setParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); + setCoreParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); } std::string DescribeMasterSlaveServerGroupAttributeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeMasterSlaveServerGroupAttributeRequest::getResourceOwnerAcco void DescribeMasterSlaveServerGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeMasterSlaveServerGroupAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeMasterSlaveServerGroupAttributeRequest::getRegionId()const void DescribeMasterSlaveServerGroupAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeMasterSlaveServerGroupAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeMasterSlaveServerGroupAttributeRequest::getOwnerAccount()con void DescribeMasterSlaveServerGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeMasterSlaveServerGroupAttributeRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeMasterSlaveServerGroupAttributeRequest::getOwnerId()const void DescribeMasterSlaveServerGroupAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeMasterSlaveServerGroupAttributeRequest::getTags()const @@ -110,6 +110,6 @@ std::string DescribeMasterSlaveServerGroupAttributeRequest::getTags()const void DescribeMasterSlaveServerGroupAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc b/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc index c90dd5a19..b5f76dc13 100644 --- a/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc +++ b/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc @@ -35,10 +35,13 @@ DescribeMasterSlaveServerGroupAttributeResult::~DescribeMasterSlaveServerGroupAt void DescribeMasterSlaveServerGroupAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; for (auto value : allMasterSlaveBackendServers) @@ -56,12 +59,14 @@ void DescribeMasterSlaveServerGroupAttributeResult::parse(const std::string &pay masterSlaveBackendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) masterSlaveBackendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + masterSlaveBackendServersObject.description = value["Description"].asString(); masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); } + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); if(!value["MasterSlaveServerGroupId"].isNull()) masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); if(!value["MasterSlaveServerGroupName"].isNull()) @@ -74,6 +79,11 @@ std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerG return masterSlaveServerGroupId_; } +std::string DescribeMasterSlaveServerGroupAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerGroupName()const { return masterSlaveServerGroupName_; diff --git a/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc b/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc index 2278cf3c9..3e5f94ca6 100644 --- a/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc +++ b/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeMasterSlaveServerGroupsRequest::getAccess_key_id()const void DescribeMasterSlaveServerGroupsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeMasterSlaveServerGroupsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeMasterSlaveServerGroupsRequest::getResourceOwnerId()const void DescribeMasterSlaveServerGroupsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeMasterSlaveServerGroupsRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string DescribeMasterSlaveServerGroupsRequest::getLoadBalancerId()const void DescribeMasterSlaveServerGroupsRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeMasterSlaveServerGroupsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeMasterSlaveServerGroupsRequest::getResourceOwnerAccount()con void DescribeMasterSlaveServerGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeMasterSlaveServerGroupsRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeMasterSlaveServerGroupsRequest::getRegionId()const void DescribeMasterSlaveServerGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool DescribeMasterSlaveServerGroupsRequest::getIncludeListener()const @@ -88,7 +88,7 @@ bool DescribeMasterSlaveServerGroupsRequest::getIncludeListener()const void DescribeMasterSlaveServerGroupsRequest::setIncludeListener(bool includeListener) { includeListener_ = includeListener; - setParameter("IncludeListener", std::to_string(includeListener)); + setCoreParameter("IncludeListener", includeListener ? "true" : "false"); } std::string DescribeMasterSlaveServerGroupsRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeMasterSlaveServerGroupsRequest::getOwnerAccount()const void DescribeMasterSlaveServerGroupsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeMasterSlaveServerGroupsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeMasterSlaveServerGroupsRequest::getOwnerId()const void DescribeMasterSlaveServerGroupsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeMasterSlaveServerGroupsRequest::getTags()const @@ -121,6 +121,6 @@ std::string DescribeMasterSlaveServerGroupsRequest::getTags()const void DescribeMasterSlaveServerGroupsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc b/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc index b5c964b86..df05b54c4 100644 --- a/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc +++ b/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc @@ -35,10 +35,13 @@ DescribeMasterSlaveServerGroupsResult::~DescribeMasterSlaveServerGroupsResult() void DescribeMasterSlaveServerGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMasterSlaveServerGroups = value["MasterSlaveServerGroups"]["MasterSlaveServerGroup"]; for (auto value : allMasterSlaveServerGroups) diff --git a/slb/src/model/DescribeMasterSlaveVServerGroupAttributeRequest.cc b/slb/src/model/DescribeMasterSlaveVServerGroupAttributeRequest.cc index 5fd4ae8dd..a3e5d0cdc 100644 --- a/slb/src/model/DescribeMasterSlaveVServerGroupAttributeRequest.cc +++ b/slb/src/model/DescribeMasterSlaveVServerGroupAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeMasterSlaveVServerGroupAttributeRequest::getAccess_key_id()c void DescribeMasterSlaveVServerGroupAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeMasterSlaveVServerGroupAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeMasterSlaveVServerGroupAttributeRequest::getResourceOwnerId()const void DescribeMasterSlaveVServerGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeMasterSlaveVServerGroupAttributeRequest::getMasterSlaveVServerGroupId()const @@ -55,7 +55,7 @@ std::string DescribeMasterSlaveVServerGroupAttributeRequest::getMasterSlaveVServ void DescribeMasterSlaveVServerGroupAttributeRequest::setMasterSlaveVServerGroupId(const std::string& masterSlaveVServerGroupId) { masterSlaveVServerGroupId_ = masterSlaveVServerGroupId; - setParameter("MasterSlaveVServerGroupId", masterSlaveVServerGroupId); + setCoreParameter("MasterSlaveVServerGroupId", masterSlaveVServerGroupId); } std::string DescribeMasterSlaveVServerGroupAttributeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeMasterSlaveVServerGroupAttributeRequest::getResourceOwnerAcc void DescribeMasterSlaveVServerGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeMasterSlaveVServerGroupAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeMasterSlaveVServerGroupAttributeRequest::getRegionId()const void DescribeMasterSlaveVServerGroupAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeMasterSlaveVServerGroupAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeMasterSlaveVServerGroupAttributeRequest::getOwnerAccount()co void DescribeMasterSlaveVServerGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeMasterSlaveVServerGroupAttributeRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeMasterSlaveVServerGroupAttributeRequest::getOwnerId()const void DescribeMasterSlaveVServerGroupAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeMasterSlaveVServerGroupAttributeRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeMasterSlaveVServerGroupAttributeRequest::getAccessKeyId()con void DescribeMasterSlaveVServerGroupAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeMasterSlaveVServerGroupAttributeRequest::getTags()const @@ -121,6 +121,6 @@ std::string DescribeMasterSlaveVServerGroupAttributeRequest::getTags()const void DescribeMasterSlaveVServerGroupAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc b/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc index b1c9bbf0c..2ae7f53df 100644 --- a/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc +++ b/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc @@ -35,10 +35,13 @@ DescribeMasterSlaveVServerGroupAttributeResult::~DescribeMasterSlaveVServerGroup void DescribeMasterSlaveVServerGroupAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; for (auto value : allMasterSlaveBackendServers) @@ -60,6 +63,8 @@ void DescribeMasterSlaveVServerGroupAttributeResult::parse(const std::string &pa masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + masterSlaveBackendServersObject.description = value["Description"].asString(); masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); } if(!value["MasterSlaveVServerGroupId"].isNull()) diff --git a/slb/src/model/DescribeMasterSlaveVServerGroupsRequest.cc b/slb/src/model/DescribeMasterSlaveVServerGroupsRequest.cc index e08864671..56eecd208 100644 --- a/slb/src/model/DescribeMasterSlaveVServerGroupsRequest.cc +++ b/slb/src/model/DescribeMasterSlaveVServerGroupsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeMasterSlaveVServerGroupsRequest::getAccess_key_id()const void DescribeMasterSlaveVServerGroupsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeMasterSlaveVServerGroupsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeMasterSlaveVServerGroupsRequest::getResourceOwnerId()const void DescribeMasterSlaveVServerGroupsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeMasterSlaveVServerGroupsRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string DescribeMasterSlaveVServerGroupsRequest::getLoadBalancerId()const void DescribeMasterSlaveVServerGroupsRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeMasterSlaveVServerGroupsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeMasterSlaveVServerGroupsRequest::getResourceOwnerAccount()co void DescribeMasterSlaveVServerGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeMasterSlaveVServerGroupsRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeMasterSlaveVServerGroupsRequest::getRegionId()const void DescribeMasterSlaveVServerGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeMasterSlaveVServerGroupsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeMasterSlaveVServerGroupsRequest::getOwnerAccount()const void DescribeMasterSlaveVServerGroupsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeMasterSlaveVServerGroupsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeMasterSlaveVServerGroupsRequest::getOwnerId()const void DescribeMasterSlaveVServerGroupsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeMasterSlaveVServerGroupsRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeMasterSlaveVServerGroupsRequest::getAccessKeyId()const void DescribeMasterSlaveVServerGroupsRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeMasterSlaveVServerGroupsRequest::getTags()const @@ -121,6 +121,6 @@ std::string DescribeMasterSlaveVServerGroupsRequest::getTags()const void DescribeMasterSlaveVServerGroupsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc b/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc index f3b9e14a1..ec2ee5cd7 100644 --- a/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc +++ b/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc @@ -35,10 +35,13 @@ DescribeMasterSlaveVServerGroupsResult::~DescribeMasterSlaveVServerGroupsResult( void DescribeMasterSlaveVServerGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMasterSlaveVServerGroups = value["MasterSlaveVServerGroups"]["MasterSlaveVServerGroup"]; for (auto value : allMasterSlaveVServerGroups) diff --git a/slb/src/model/DescribeRegionsRequest.cc b/slb/src/model/DescribeRegionsRequest.cc index 3f40aca51..517606d25 100644 --- a/slb/src/model/DescribeRegionsRequest.cc +++ b/slb/src/model/DescribeRegionsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRegionsRequest::getAccess_key_id()const void DescribeRegionsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeRegionsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeRegionsRequest::getResourceOwnerId()const void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRegionsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeRegionsRequest::getRegionId()const void DescribeRegionsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeRegionsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeRegionsRequest::getResourceOwnerAccount()const void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRegionsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeRegionsRequest::getOwnerAccount()const void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeRegionsRequest::getAcceptLanguage()const @@ -88,7 +88,7 @@ std::string DescribeRegionsRequest::getAcceptLanguage()const void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) { acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); + setCoreParameter("AcceptLanguage", acceptLanguage); } long DescribeRegionsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeRegionsRequest::getOwnerId()const void DescribeRegionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRegionsRequest::getTags()const @@ -110,6 +110,6 @@ std::string DescribeRegionsRequest::getTags()const void DescribeRegionsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeRegionsResult.cc b/slb/src/model/DescribeRegionsResult.cc index 8c76b40b2..224317aae 100644 --- a/slb/src/model/DescribeRegionsResult.cc +++ b/slb/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/slb/src/model/DescribeRuleAttributeRequest.cc b/slb/src/model/DescribeRuleAttributeRequest.cc index 4dbf40bae..05e92a1e9 100644 --- a/slb/src/model/DescribeRuleAttributeRequest.cc +++ b/slb/src/model/DescribeRuleAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRuleAttributeRequest::getAccess_key_id()const void DescribeRuleAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeRuleAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeRuleAttributeRequest::getResourceOwnerId()const void DescribeRuleAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRuleAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRuleAttributeRequest::getResourceOwnerAccount()const void DescribeRuleAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRuleAttributeRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeRuleAttributeRequest::getRegionId()const void DescribeRuleAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeRuleAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeRuleAttributeRequest::getOwnerAccount()const void DescribeRuleAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeRuleAttributeRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeRuleAttributeRequest::getOwnerId()const void DescribeRuleAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRuleAttributeRequest::getRuleId()const @@ -99,7 +99,7 @@ std::string DescribeRuleAttributeRequest::getRuleId()const void DescribeRuleAttributeRequest::setRuleId(const std::string& ruleId) { ruleId_ = ruleId; - setParameter("RuleId", ruleId); + setCoreParameter("RuleId", ruleId); } std::string DescribeRuleAttributeRequest::getTags()const @@ -110,6 +110,6 @@ std::string DescribeRuleAttributeRequest::getTags()const void DescribeRuleAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeRuleAttributeResult.cc b/slb/src/model/DescribeRuleAttributeResult.cc index 6053bc788..4ba120419 100644 --- a/slb/src/model/DescribeRuleAttributeResult.cc +++ b/slb/src/model/DescribeRuleAttributeResult.cc @@ -35,11 +35,16 @@ DescribeRuleAttributeResult::~DescribeRuleAttributeResult() void DescribeRuleAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); + if(!value["RuleId"].isNull()) + ruleId_ = value["RuleId"].asString(); if(!value["RuleName"].isNull()) ruleName_ = value["RuleName"].asString(); if(!value["LoadBalancerId"].isNull()) @@ -125,6 +130,11 @@ std::string DescribeRuleAttributeResult::getHealthCheckURI()const return healthCheckURI_; } +std::string DescribeRuleAttributeResult::getRuleId()const +{ + return ruleId_; +} + std::string DescribeRuleAttributeResult::getHealthCheck()const { return healthCheck_; diff --git a/slb/src/model/DescribeRulesRequest.cc b/slb/src/model/DescribeRulesRequest.cc index 8483fa3f9..7d3ab3f97 100644 --- a/slb/src/model/DescribeRulesRequest.cc +++ b/slb/src/model/DescribeRulesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeRulesRequest::getAccess_key_id()const void DescribeRulesRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeRulesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeRulesRequest::getResourceOwnerId()const void DescribeRulesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeRulesRequest::getListenerPort()const @@ -55,7 +55,7 @@ int DescribeRulesRequest::getListenerPort()const void DescribeRulesRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string DescribeRulesRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeRulesRequest::getLoadBalancerId()const void DescribeRulesRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeRulesRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeRulesRequest::getResourceOwnerAccount()const void DescribeRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRulesRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string DescribeRulesRequest::getRegionId()const void DescribeRulesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeRulesRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeRulesRequest::getOwnerAccount()const void DescribeRulesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeRulesRequest::getOwnerId()const @@ -110,7 +110,18 @@ long DescribeRulesRequest::getOwnerId()const void DescribeRulesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRulesRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void DescribeRulesRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string DescribeRulesRequest::getTags()const @@ -121,6 +132,6 @@ std::string DescribeRulesRequest::getTags()const void DescribeRulesRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeRulesResult.cc b/slb/src/model/DescribeRulesResult.cc index af47ca70c..ad65362bd 100644 --- a/slb/src/model/DescribeRulesResult.cc +++ b/slb/src/model/DescribeRulesResult.cc @@ -35,10 +35,13 @@ DescribeRulesResult::~DescribeRulesResult() void DescribeRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRules = value["Rules"]["Rule"]; for (auto value : allRules) diff --git a/slb/src/model/DescribeServerCertificatesRequest.cc b/slb/src/model/DescribeServerCertificatesRequest.cc index 07b9f0cfc..0b3248e33 100644 --- a/slb/src/model/DescribeServerCertificatesRequest.cc +++ b/slb/src/model/DescribeServerCertificatesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeServerCertificatesRequest::getAccess_key_id()const void DescribeServerCertificatesRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string DescribeServerCertificatesRequest::getResourceGroupId()const @@ -44,7 +44,7 @@ std::string DescribeServerCertificatesRequest::getResourceGroupId()const void DescribeServerCertificatesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } long DescribeServerCertificatesRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DescribeServerCertificatesRequest::getResourceOwnerId()const void DescribeServerCertificatesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeServerCertificatesRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeServerCertificatesRequest::getResourceOwnerAccount()const void DescribeServerCertificatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeServerCertificatesRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeServerCertificatesRequest::getRegionId()const void DescribeServerCertificatesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeServerCertificatesRequest::getOwnerAccount()const @@ -88,7 +88,24 @@ std::string DescribeServerCertificatesRequest::getOwnerAccount()const void DescribeServerCertificatesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector DescribeServerCertificatesRequest::getTag()const +{ + return tag_; +} + +void DescribeServerCertificatesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } } long DescribeServerCertificatesRequest::getOwnerId()const @@ -99,7 +116,7 @@ long DescribeServerCertificatesRequest::getOwnerId()const void DescribeServerCertificatesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeServerCertificatesRequest::getServerCertificateId()const @@ -110,7 +127,7 @@ std::string DescribeServerCertificatesRequest::getServerCertificateId()const void DescribeServerCertificatesRequest::setServerCertificateId(const std::string& serverCertificateId) { serverCertificateId_ = serverCertificateId; - setParameter("ServerCertificateId", serverCertificateId); + setCoreParameter("ServerCertificateId", serverCertificateId); } std::string DescribeServerCertificatesRequest::getTags()const @@ -121,6 +138,6 @@ std::string DescribeServerCertificatesRequest::getTags()const void DescribeServerCertificatesRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeServerCertificatesResult.cc b/slb/src/model/DescribeServerCertificatesResult.cc index f7dd349ab..825679eee 100644 --- a/slb/src/model/DescribeServerCertificatesResult.cc +++ b/slb/src/model/DescribeServerCertificatesResult.cc @@ -35,10 +35,13 @@ DescribeServerCertificatesResult::~DescribeServerCertificatesResult() void DescribeServerCertificatesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allServerCertificates = value["ServerCertificates"]["ServerCertificate"]; for (auto value : allServerCertificates) @@ -72,6 +75,16 @@ void DescribeServerCertificatesResult::parse(const std::string &payload) serverCertificatesObject.expireTimeStamp = std::stol(value["ExpireTimeStamp"].asString()); if(!value["CommonName"].isNull()) serverCertificatesObject.commonName = value["CommonName"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + ServerCertificate::Tag tagsObject; + if(!value["TagKey"].isNull()) + tagsObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagsObject.tagValue = value["TagValue"].asString(); + serverCertificatesObject.tags.push_back(tagsObject); + } auto allSubjectAlternativeNames = value["SubjectAlternativeNames"]["SubjectAlternativeName"]; for (auto value : allSubjectAlternativeNames) serverCertificatesObject.subjectAlternativeNames.push_back(value.asString()); diff --git a/slb/src/model/DescribeTagsRequest.cc b/slb/src/model/DescribeTagsRequest.cc index 71bc600d3..936c66f8b 100644 --- a/slb/src/model/DescribeTagsRequest.cc +++ b/slb/src/model/DescribeTagsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeTagsRequest::getAccess_key_id()const void DescribeTagsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeTagsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeTagsRequest::getResourceOwnerId()const void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeTagsRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string DescribeTagsRequest::getLoadBalancerId()const void DescribeTagsRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeTagsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeTagsRequest::getResourceOwnerAccount()const void DescribeTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeTagsRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeTagsRequest::getRegionId()const void DescribeTagsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeTagsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeTagsRequest::getOwnerAccount()const void DescribeTagsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeTagsRequest::getPageSize()const @@ -99,7 +99,7 @@ int DescribeTagsRequest::getPageSize()const void DescribeTagsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } bool DescribeTagsRequest::getDistinctKey()const @@ -110,7 +110,7 @@ bool DescribeTagsRequest::getDistinctKey()const void DescribeTagsRequest::setDistinctKey(bool distinctKey) { distinctKey_ = distinctKey; - setParameter("DistinctKey", std::to_string(distinctKey)); + setCoreParameter("DistinctKey", distinctKey ? "true" : "false"); } long DescribeTagsRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeTagsRequest::getOwnerId()const void DescribeTagsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeTagsRequest::getPageNumber()const @@ -132,7 +132,7 @@ int DescribeTagsRequest::getPageNumber()const void DescribeTagsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeTagsRequest::getTags()const @@ -143,6 +143,6 @@ std::string DescribeTagsRequest::getTags()const void DescribeTagsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeTagsResult.cc b/slb/src/model/DescribeTagsResult.cc index b8e129a35..998e4f4bd 100644 --- a/slb/src/model/DescribeTagsResult.cc +++ b/slb/src/model/DescribeTagsResult.cc @@ -35,10 +35,13 @@ DescribeTagsResult::~DescribeTagsResult() void DescribeTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTagSets = value["TagSets"]["TagSet"]; for (auto value : allTagSets) diff --git a/slb/src/model/DescribeVServerGroupAttributeRequest.cc b/slb/src/model/DescribeVServerGroupAttributeRequest.cc index 162e2132c..d6f12eac8 100644 --- a/slb/src/model/DescribeVServerGroupAttributeRequest.cc +++ b/slb/src/model/DescribeVServerGroupAttributeRequest.cc @@ -33,7 +33,7 @@ std::string DescribeVServerGroupAttributeRequest::getAccess_key_id()const void DescribeVServerGroupAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string DescribeVServerGroupAttributeRequest::getVServerGroupId()const @@ -44,7 +44,7 @@ std::string DescribeVServerGroupAttributeRequest::getVServerGroupId()const void DescribeVServerGroupAttributeRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } long DescribeVServerGroupAttributeRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DescribeVServerGroupAttributeRequest::getResourceOwnerId()const void DescribeVServerGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVServerGroupAttributeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeVServerGroupAttributeRequest::getResourceOwnerAccount()const void DescribeVServerGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVServerGroupAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeVServerGroupAttributeRequest::getRegionId()const void DescribeVServerGroupAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVServerGroupAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeVServerGroupAttributeRequest::getOwnerAccount()const void DescribeVServerGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeVServerGroupAttributeRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeVServerGroupAttributeRequest::getOwnerId()const void DescribeVServerGroupAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeVServerGroupAttributeRequest::getTags()const @@ -110,6 +110,6 @@ std::string DescribeVServerGroupAttributeRequest::getTags()const void DescribeVServerGroupAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeVServerGroupAttributeResult.cc b/slb/src/model/DescribeVServerGroupAttributeResult.cc index 567333f41..ee5c0bede 100644 --- a/slb/src/model/DescribeVServerGroupAttributeResult.cc +++ b/slb/src/model/DescribeVServerGroupAttributeResult.cc @@ -35,10 +35,13 @@ DescribeVServerGroupAttributeResult::~DescribeVServerGroupAttributeResult() void DescribeVServerGroupAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -54,16 +57,18 @@ void DescribeVServerGroupAttributeResult::parse(const std::string &payload) backendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) backendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["VServerGroupId"].isNull()) vServerGroupId_ = value["VServerGroupId"].asString(); if(!value["VServerGroupName"].isNull()) vServerGroupName_ = value["VServerGroupName"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); } @@ -77,6 +82,11 @@ std::string DescribeVServerGroupAttributeResult::getVServerGroupName()const return vServerGroupName_; } +std::string DescribeVServerGroupAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + std::vector DescribeVServerGroupAttributeResult::getBackendServers()const { return backendServers_; diff --git a/slb/src/model/DescribeVServerGroupsRequest.cc b/slb/src/model/DescribeVServerGroupsRequest.cc index 3ddb41add..a2ea261ee 100644 --- a/slb/src/model/DescribeVServerGroupsRequest.cc +++ b/slb/src/model/DescribeVServerGroupsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeVServerGroupsRequest::getAccess_key_id()const void DescribeVServerGroupsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } bool DescribeVServerGroupsRequest::getIncludeRule()const @@ -44,7 +44,7 @@ bool DescribeVServerGroupsRequest::getIncludeRule()const void DescribeVServerGroupsRequest::setIncludeRule(bool includeRule) { includeRule_ = includeRule; - setParameter("IncludeRule", std::to_string(includeRule)); + setCoreParameter("IncludeRule", includeRule ? "true" : "false"); } long DescribeVServerGroupsRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DescribeVServerGroupsRequest::getResourceOwnerId()const void DescribeVServerGroupsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVServerGroupsRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string DescribeVServerGroupsRequest::getLoadBalancerId()const void DescribeVServerGroupsRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string DescribeVServerGroupsRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeVServerGroupsRequest::getResourceOwnerAccount()const void DescribeVServerGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVServerGroupsRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string DescribeVServerGroupsRequest::getRegionId()const void DescribeVServerGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } bool DescribeVServerGroupsRequest::getIncludeListener()const @@ -99,7 +99,7 @@ bool DescribeVServerGroupsRequest::getIncludeListener()const void DescribeVServerGroupsRequest::setIncludeListener(bool includeListener) { includeListener_ = includeListener; - setParameter("IncludeListener", std::to_string(includeListener)); + setCoreParameter("IncludeListener", includeListener ? "true" : "false"); } std::string DescribeVServerGroupsRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string DescribeVServerGroupsRequest::getOwnerAccount()const void DescribeVServerGroupsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeVServerGroupsRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeVServerGroupsRequest::getOwnerId()const void DescribeVServerGroupsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeVServerGroupsRequest::getTags()const @@ -132,6 +132,6 @@ std::string DescribeVServerGroupsRequest::getTags()const void DescribeVServerGroupsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeVServerGroupsResult.cc b/slb/src/model/DescribeVServerGroupsResult.cc index 86fcd04ca..a3d56a151 100644 --- a/slb/src/model/DescribeVServerGroupsResult.cc +++ b/slb/src/model/DescribeVServerGroupsResult.cc @@ -35,10 +35,13 @@ DescribeVServerGroupsResult::~DescribeVServerGroupsResult() void DescribeVServerGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVServerGroups = value["VServerGroups"]["VServerGroup"]; for (auto value : allVServerGroups) diff --git a/slb/src/model/DescribeZonesRequest.cc b/slb/src/model/DescribeZonesRequest.cc index 38ab197ee..2e6693ac9 100644 --- a/slb/src/model/DescribeZonesRequest.cc +++ b/slb/src/model/DescribeZonesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeZonesRequest::getAccess_key_id()const void DescribeZonesRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long DescribeZonesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeZonesRequest::getResourceOwnerId()const void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeZonesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeZonesRequest::getResourceOwnerAccount()const void DescribeZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeZonesRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeZonesRequest::getRegionId()const void DescribeZonesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeZonesRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeZonesRequest::getOwnerAccount()const void DescribeZonesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeZonesRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeZonesRequest::getOwnerId()const void DescribeZonesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeZonesRequest::getTags()const @@ -99,6 +99,6 @@ std::string DescribeZonesRequest::getTags()const void DescribeZonesRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/DescribeZonesResult.cc b/slb/src/model/DescribeZonesResult.cc index 2573c5782..53e59fa28 100644 --- a/slb/src/model/DescribeZonesResult.cc +++ b/slb/src/model/DescribeZonesResult.cc @@ -35,10 +35,13 @@ DescribeZonesResult::~DescribeZonesResult() void DescribeZonesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allZones = value["Zones"]["Zone"]; for (auto value : allZones) diff --git a/slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc b/slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc index adc5fecaf..0a96abf12 100644 --- a/slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc +++ b/slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc @@ -33,7 +33,7 @@ std::string ModifyLoadBalancerInstanceSpecRequest::getAccess_key_id()const void ModifyLoadBalancerInstanceSpecRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string ModifyLoadBalancerInstanceSpecRequest::getLoadBalancerSpec()const @@ -44,7 +44,7 @@ std::string ModifyLoadBalancerInstanceSpecRequest::getLoadBalancerSpec()const void ModifyLoadBalancerInstanceSpecRequest::setLoadBalancerSpec(const std::string& loadBalancerSpec) { loadBalancerSpec_ = loadBalancerSpec; - setParameter("LoadBalancerSpec", loadBalancerSpec); + setCoreParameter("LoadBalancerSpec", loadBalancerSpec); } long ModifyLoadBalancerInstanceSpecRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ModifyLoadBalancerInstanceSpecRequest::getResourceOwnerId()const void ModifyLoadBalancerInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyLoadBalancerInstanceSpecRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string ModifyLoadBalancerInstanceSpecRequest::getLoadBalancerId()const void ModifyLoadBalancerInstanceSpecRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } bool ModifyLoadBalancerInstanceSpecRequest::getAutoPay()const @@ -77,7 +77,7 @@ bool ModifyLoadBalancerInstanceSpecRequest::getAutoPay()const void ModifyLoadBalancerInstanceSpecRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string ModifyLoadBalancerInstanceSpecRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string ModifyLoadBalancerInstanceSpecRequest::getRegionId()const void ModifyLoadBalancerInstanceSpecRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyLoadBalancerInstanceSpecRequest::getResourceOwnerAccount()const @@ -99,7 +99,7 @@ std::string ModifyLoadBalancerInstanceSpecRequest::getResourceOwnerAccount()cons void ModifyLoadBalancerInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyLoadBalancerInstanceSpecRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string ModifyLoadBalancerInstanceSpecRequest::getOwnerAccount()const void ModifyLoadBalancerInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyLoadBalancerInstanceSpecRequest::getOwnerId()const @@ -121,7 +121,7 @@ long ModifyLoadBalancerInstanceSpecRequest::getOwnerId()const void ModifyLoadBalancerInstanceSpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyLoadBalancerInstanceSpecRequest::getTags()const @@ -132,6 +132,6 @@ std::string ModifyLoadBalancerInstanceSpecRequest::getTags()const void ModifyLoadBalancerInstanceSpecRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc b/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc index fe300248e..9d420607f 100644 --- a/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc +++ b/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc @@ -35,10 +35,13 @@ ModifyLoadBalancerInstanceSpecResult::~ModifyLoadBalancerInstanceSpecResult() void ModifyLoadBalancerInstanceSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); diff --git a/slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc b/slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc index 9b0d00948..e9b1ec236 100644 --- a/slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc +++ b/slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc @@ -33,7 +33,7 @@ std::string ModifyLoadBalancerInternetSpecRequest::getAccess_key_id()const void ModifyLoadBalancerInternetSpecRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long ModifyLoadBalancerInternetSpecRequest::getResourceOwnerId()const @@ -44,18 +44,7 @@ long ModifyLoadBalancerInternetSpecRequest::getResourceOwnerId()const void ModifyLoadBalancerInternetSpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifyLoadBalancerInternetSpecRequest::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -void ModifyLoadBalancerInternetSpecRequest::setLoadBalancerId(const std::string& loadBalancerId) -{ - loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool ModifyLoadBalancerInternetSpecRequest::getAutoPay()const @@ -66,18 +55,7 @@ bool ModifyLoadBalancerInternetSpecRequest::getAutoPay()const void ModifyLoadBalancerInternetSpecRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); -} - -std::string ModifyLoadBalancerInternetSpecRequest::getRegionId()const -{ - return regionId_; -} - -void ModifyLoadBalancerInternetSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string ModifyLoadBalancerInternetSpecRequest::getResourceOwnerAccount()const @@ -88,7 +66,7 @@ std::string ModifyLoadBalancerInternetSpecRequest::getResourceOwnerAccount()cons void ModifyLoadBalancerInternetSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int ModifyLoadBalancerInternetSpecRequest::getBandwidth()const @@ -99,18 +77,7 @@ int ModifyLoadBalancerInternetSpecRequest::getBandwidth()const void ModifyLoadBalancerInternetSpecRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); -} - -std::string ModifyLoadBalancerInternetSpecRequest::getInternetChargeType()const -{ - return internetChargeType_; -} - -void ModifyLoadBalancerInternetSpecRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string ModifyLoadBalancerInternetSpecRequest::getOwnerAccount()const @@ -121,7 +88,7 @@ std::string ModifyLoadBalancerInternetSpecRequest::getOwnerAccount()const void ModifyLoadBalancerInternetSpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyLoadBalancerInternetSpecRequest::getOwnerId()const @@ -132,7 +99,7 @@ long ModifyLoadBalancerInternetSpecRequest::getOwnerId()const void ModifyLoadBalancerInternetSpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyLoadBalancerInternetSpecRequest::getTags()const @@ -143,6 +110,50 @@ std::string ModifyLoadBalancerInternetSpecRequest::getTags()const void ModifyLoadBalancerInternetSpecRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +void ModifyLoadBalancerInternetSpecRequest::setLoadBalancerId(const std::string& loadBalancerId) +{ + loadBalancerId_ = loadBalancerId; + setCoreParameter("LoadBalancerId", loadBalancerId); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyLoadBalancerInternetSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void ModifyLoadBalancerInternetSpecRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setCoreParameter("InternetChargeType", internetChargeType); +} + +int ModifyLoadBalancerInternetSpecRequest::getRatio()const +{ + return ratio_; +} + +void ModifyLoadBalancerInternetSpecRequest::setRatio(int ratio) +{ + ratio_ = ratio; + setCoreParameter("Ratio", std::to_string(ratio)); } diff --git a/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc b/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc index f140248f9..2a663a42f 100644 --- a/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc +++ b/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc @@ -35,10 +35,13 @@ ModifyLoadBalancerInternetSpecResult::~ModifyLoadBalancerInternetSpecResult() void ModifyLoadBalancerInternetSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); diff --git a/slb/src/model/ModifyLoadBalancerPayTypeRequest.cc b/slb/src/model/ModifyLoadBalancerPayTypeRequest.cc index 31b308092..e2b8227ea 100644 --- a/slb/src/model/ModifyLoadBalancerPayTypeRequest.cc +++ b/slb/src/model/ModifyLoadBalancerPayTypeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyLoadBalancerPayTypeRequest::getAccess_key_id()const void ModifyLoadBalancerPayTypeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long ModifyLoadBalancerPayTypeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyLoadBalancerPayTypeRequest::getResourceOwnerId()const void ModifyLoadBalancerPayTypeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool ModifyLoadBalancerPayTypeRequest::getAutoPay()const @@ -55,7 +55,7 @@ bool ModifyLoadBalancerPayTypeRequest::getAutoPay()const void ModifyLoadBalancerPayTypeRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string ModifyLoadBalancerPayTypeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyLoadBalancerPayTypeRequest::getResourceOwnerAccount()const void ModifyLoadBalancerPayTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyLoadBalancerPayTypeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyLoadBalancerPayTypeRequest::getOwnerAccount()const void ModifyLoadBalancerPayTypeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyLoadBalancerPayTypeRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ModifyLoadBalancerPayTypeRequest::getOwnerId()const void ModifyLoadBalancerPayTypeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyLoadBalancerPayTypeRequest::getTags()const @@ -99,7 +99,7 @@ std::string ModifyLoadBalancerPayTypeRequest::getTags()const void ModifyLoadBalancerPayTypeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } int ModifyLoadBalancerPayTypeRequest::getDuration()const @@ -110,7 +110,7 @@ int ModifyLoadBalancerPayTypeRequest::getDuration()const void ModifyLoadBalancerPayTypeRequest::setDuration(int duration) { duration_ = duration; - setParameter("Duration", std::to_string(duration)); + setCoreParameter("Duration", std::to_string(duration)); } std::string ModifyLoadBalancerPayTypeRequest::getLoadBalancerId()const @@ -121,7 +121,7 @@ std::string ModifyLoadBalancerPayTypeRequest::getLoadBalancerId()const void ModifyLoadBalancerPayTypeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string ModifyLoadBalancerPayTypeRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string ModifyLoadBalancerPayTypeRequest::getRegionId()const void ModifyLoadBalancerPayTypeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyLoadBalancerPayTypeRequest::getPayType()const @@ -143,7 +143,7 @@ std::string ModifyLoadBalancerPayTypeRequest::getPayType()const void ModifyLoadBalancerPayTypeRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); } std::string ModifyLoadBalancerPayTypeRequest::getPricingCycle()const @@ -154,6 +154,6 @@ std::string ModifyLoadBalancerPayTypeRequest::getPricingCycle()const void ModifyLoadBalancerPayTypeRequest::setPricingCycle(const std::string& pricingCycle) { pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); + setCoreParameter("PricingCycle", pricingCycle); } diff --git a/slb/src/model/ModifyLoadBalancerPayTypeResult.cc b/slb/src/model/ModifyLoadBalancerPayTypeResult.cc index 600bcd11b..49d58da62 100644 --- a/slb/src/model/ModifyLoadBalancerPayTypeResult.cc +++ b/slb/src/model/ModifyLoadBalancerPayTypeResult.cc @@ -35,10 +35,13 @@ ModifyLoadBalancerPayTypeResult::~ModifyLoadBalancerPayTypeResult() void ModifyLoadBalancerPayTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); diff --git a/slb/src/model/ModifyVServerGroupBackendServersRequest.cc b/slb/src/model/ModifyVServerGroupBackendServersRequest.cc index a668564f8..cf9f3dc4b 100644 --- a/slb/src/model/ModifyVServerGroupBackendServersRequest.cc +++ b/slb/src/model/ModifyVServerGroupBackendServersRequest.cc @@ -33,7 +33,7 @@ std::string ModifyVServerGroupBackendServersRequest::getAccess_key_id()const void ModifyVServerGroupBackendServersRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string ModifyVServerGroupBackendServersRequest::getVServerGroupId()const @@ -44,7 +44,7 @@ std::string ModifyVServerGroupBackendServersRequest::getVServerGroupId()const void ModifyVServerGroupBackendServersRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } long ModifyVServerGroupBackendServersRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ModifyVServerGroupBackendServersRequest::getResourceOwnerId()const void ModifyVServerGroupBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyVServerGroupBackendServersRequest::getOldBackendServers()const @@ -66,7 +66,7 @@ std::string ModifyVServerGroupBackendServersRequest::getOldBackendServers()const void ModifyVServerGroupBackendServersRequest::setOldBackendServers(const std::string& oldBackendServers) { oldBackendServers_ = oldBackendServers; - setParameter("OldBackendServers", oldBackendServers); + setCoreParameter("OldBackendServers", oldBackendServers); } std::string ModifyVServerGroupBackendServersRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyVServerGroupBackendServersRequest::getResourceOwnerAccount()co void ModifyVServerGroupBackendServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyVServerGroupBackendServersRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string ModifyVServerGroupBackendServersRequest::getRegionId()const void ModifyVServerGroupBackendServersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyVServerGroupBackendServersRequest::getNewBackendServers()const @@ -99,7 +99,7 @@ std::string ModifyVServerGroupBackendServersRequest::getNewBackendServers()const void ModifyVServerGroupBackendServersRequest::setNewBackendServers(const std::string& newBackendServers) { newBackendServers_ = newBackendServers; - setParameter("NewBackendServers", newBackendServers); + setCoreParameter("NewBackendServers", newBackendServers); } std::string ModifyVServerGroupBackendServersRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string ModifyVServerGroupBackendServersRequest::getOwnerAccount()const void ModifyVServerGroupBackendServersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyVServerGroupBackendServersRequest::getOwnerId()const @@ -121,7 +121,7 @@ long ModifyVServerGroupBackendServersRequest::getOwnerId()const void ModifyVServerGroupBackendServersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyVServerGroupBackendServersRequest::getTags()const @@ -132,6 +132,6 @@ std::string ModifyVServerGroupBackendServersRequest::getTags()const void ModifyVServerGroupBackendServersRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/ModifyVServerGroupBackendServersResult.cc b/slb/src/model/ModifyVServerGroupBackendServersResult.cc index 95bc195ea..04aee6582 100644 --- a/slb/src/model/ModifyVServerGroupBackendServersResult.cc +++ b/slb/src/model/ModifyVServerGroupBackendServersResult.cc @@ -35,10 +35,13 @@ ModifyVServerGroupBackendServersResult::~ModifyVServerGroupBackendServersResult( void ModifyVServerGroupBackendServersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -54,10 +57,10 @@ void ModifyVServerGroupBackendServersResult::parse(const std::string &payload) backendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) backendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["VServerGroupId"].isNull()) diff --git a/slb/src/model/RemoveAccessControlListEntryRequest.cc b/slb/src/model/RemoveAccessControlListEntryRequest.cc index 5bc3fb6c5..849e332b9 100644 --- a/slb/src/model/RemoveAccessControlListEntryRequest.cc +++ b/slb/src/model/RemoveAccessControlListEntryRequest.cc @@ -33,7 +33,7 @@ std::string RemoveAccessControlListEntryRequest::getAccess_key_id()const void RemoveAccessControlListEntryRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string RemoveAccessControlListEntryRequest::getAclId()const @@ -44,7 +44,7 @@ std::string RemoveAccessControlListEntryRequest::getAclId()const void RemoveAccessControlListEntryRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long RemoveAccessControlListEntryRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long RemoveAccessControlListEntryRequest::getResourceOwnerId()const void RemoveAccessControlListEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveAccessControlListEntryRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string RemoveAccessControlListEntryRequest::getResourceOwnerAccount()const void RemoveAccessControlListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveAccessControlListEntryRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string RemoveAccessControlListEntryRequest::getRegionId()const void RemoveAccessControlListEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveAccessControlListEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string RemoveAccessControlListEntryRequest::getOwnerAccount()const void RemoveAccessControlListEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RemoveAccessControlListEntryRequest::getAclEntrys()const @@ -99,7 +99,7 @@ std::string RemoveAccessControlListEntryRequest::getAclEntrys()const void RemoveAccessControlListEntryRequest::setAclEntrys(const std::string& aclEntrys) { aclEntrys_ = aclEntrys; - setParameter("AclEntrys", aclEntrys); + setCoreParameter("AclEntrys", aclEntrys); } long RemoveAccessControlListEntryRequest::getOwnerId()const @@ -110,7 +110,7 @@ long RemoveAccessControlListEntryRequest::getOwnerId()const void RemoveAccessControlListEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveAccessControlListEntryRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string RemoveAccessControlListEntryRequest::getAccessKeyId()const void RemoveAccessControlListEntryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string RemoveAccessControlListEntryRequest::getTags()const @@ -132,6 +132,6 @@ std::string RemoveAccessControlListEntryRequest::getTags()const void RemoveAccessControlListEntryRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/RemoveAccessControlListEntryResult.cc b/slb/src/model/RemoveAccessControlListEntryResult.cc index 2219d0b61..bee36ba75 100644 --- a/slb/src/model/RemoveAccessControlListEntryResult.cc +++ b/slb/src/model/RemoveAccessControlListEntryResult.cc @@ -35,10 +35,13 @@ RemoveAccessControlListEntryResult::~RemoveAccessControlListEntryResult() void RemoveAccessControlListEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/RemoveBackendServersRequest.cc b/slb/src/model/RemoveBackendServersRequest.cc index 0fa7a81dd..198a52015 100644 --- a/slb/src/model/RemoveBackendServersRequest.cc +++ b/slb/src/model/RemoveBackendServersRequest.cc @@ -33,7 +33,7 @@ std::string RemoveBackendServersRequest::getAccess_key_id()const void RemoveBackendServersRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long RemoveBackendServersRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long RemoveBackendServersRequest::getResourceOwnerId()const void RemoveBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveBackendServersRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string RemoveBackendServersRequest::getLoadBalancerId()const void RemoveBackendServersRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string RemoveBackendServersRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string RemoveBackendServersRequest::getRegionId()const void RemoveBackendServersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveBackendServersRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string RemoveBackendServersRequest::getResourceOwnerAccount()const void RemoveBackendServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveBackendServersRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string RemoveBackendServersRequest::getOwnerAccount()const void RemoveBackendServersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long RemoveBackendServersRequest::getOwnerId()const @@ -99,7 +99,7 @@ long RemoveBackendServersRequest::getOwnerId()const void RemoveBackendServersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveBackendServersRequest::getBackendServers()const @@ -110,7 +110,7 @@ std::string RemoveBackendServersRequest::getBackendServers()const void RemoveBackendServersRequest::setBackendServers(const std::string& backendServers) { backendServers_ = backendServers; - setParameter("BackendServers", backendServers); + setCoreParameter("BackendServers", backendServers); } std::string RemoveBackendServersRequest::getTags()const @@ -121,6 +121,6 @@ std::string RemoveBackendServersRequest::getTags()const void RemoveBackendServersRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/RemoveBackendServersResult.cc b/slb/src/model/RemoveBackendServersResult.cc index d6da35ef7..0a5aad8b7 100644 --- a/slb/src/model/RemoveBackendServersResult.cc +++ b/slb/src/model/RemoveBackendServersResult.cc @@ -35,10 +35,13 @@ RemoveBackendServersResult::~RemoveBackendServersResult() void RemoveBackendServersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -54,6 +57,8 @@ void RemoveBackendServersResult::parse(const std::string &payload) backendServersObject.vpcId = value["VpcId"].asString(); if(!value["Type"].isNull()) backendServersObject.type = value["Type"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["LoadBalancerId"].isNull()) diff --git a/slb/src/model/RemoveListenerWhiteListItemRequest.cc b/slb/src/model/RemoveListenerWhiteListItemRequest.cc index b7f4f8d6f..a3fda6a66 100644 --- a/slb/src/model/RemoveListenerWhiteListItemRequest.cc +++ b/slb/src/model/RemoveListenerWhiteListItemRequest.cc @@ -33,7 +33,7 @@ std::string RemoveListenerWhiteListItemRequest::getAccess_key_id()const void RemoveListenerWhiteListItemRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long RemoveListenerWhiteListItemRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long RemoveListenerWhiteListItemRequest::getResourceOwnerId()const void RemoveListenerWhiteListItemRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int RemoveListenerWhiteListItemRequest::getListenerPort()const @@ -55,7 +55,7 @@ int RemoveListenerWhiteListItemRequest::getListenerPort()const void RemoveListenerWhiteListItemRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string RemoveListenerWhiteListItemRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string RemoveListenerWhiteListItemRequest::getLoadBalancerId()const void RemoveListenerWhiteListItemRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string RemoveListenerWhiteListItemRequest::getSourceItems()const @@ -77,7 +77,7 @@ std::string RemoveListenerWhiteListItemRequest::getSourceItems()const void RemoveListenerWhiteListItemRequest::setSourceItems(const std::string& sourceItems) { sourceItems_ = sourceItems; - setParameter("SourceItems", sourceItems); + setCoreParameter("SourceItems", sourceItems); } std::string RemoveListenerWhiteListItemRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string RemoveListenerWhiteListItemRequest::getRegionId()const void RemoveListenerWhiteListItemRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveListenerWhiteListItemRequest::getResourceOwnerAccount()const @@ -99,7 +99,7 @@ std::string RemoveListenerWhiteListItemRequest::getResourceOwnerAccount()const void RemoveListenerWhiteListItemRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveListenerWhiteListItemRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string RemoveListenerWhiteListItemRequest::getOwnerAccount()const void RemoveListenerWhiteListItemRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long RemoveListenerWhiteListItemRequest::getOwnerId()const @@ -121,7 +121,18 @@ long RemoveListenerWhiteListItemRequest::getOwnerId()const void RemoveListenerWhiteListItemRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RemoveListenerWhiteListItemRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void RemoveListenerWhiteListItemRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string RemoveListenerWhiteListItemRequest::getTags()const @@ -132,6 +143,6 @@ std::string RemoveListenerWhiteListItemRequest::getTags()const void RemoveListenerWhiteListItemRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/RemoveListenerWhiteListItemResult.cc b/slb/src/model/RemoveListenerWhiteListItemResult.cc index b8a46f60e..35daa8f87 100644 --- a/slb/src/model/RemoveListenerWhiteListItemResult.cc +++ b/slb/src/model/RemoveListenerWhiteListItemResult.cc @@ -35,10 +35,13 @@ RemoveListenerWhiteListItemResult::~RemoveListenerWhiteListItemResult() void RemoveListenerWhiteListItemResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/RemoveTagsRequest.cc b/slb/src/model/RemoveTagsRequest.cc index 80f3b00a1..8412c9e3a 100644 --- a/slb/src/model/RemoveTagsRequest.cc +++ b/slb/src/model/RemoveTagsRequest.cc @@ -33,7 +33,7 @@ std::string RemoveTagsRequest::getAccess_key_id()const void RemoveTagsRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long RemoveTagsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long RemoveTagsRequest::getResourceOwnerId()const void RemoveTagsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveTagsRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string RemoveTagsRequest::getLoadBalancerId()const void RemoveTagsRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string RemoveTagsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string RemoveTagsRequest::getResourceOwnerAccount()const void RemoveTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveTagsRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string RemoveTagsRequest::getRegionId()const void RemoveTagsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveTagsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string RemoveTagsRequest::getOwnerAccount()const void RemoveTagsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long RemoveTagsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long RemoveTagsRequest::getOwnerId()const void RemoveTagsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveTagsRequest::getTags()const @@ -110,6 +110,6 @@ std::string RemoveTagsRequest::getTags()const void RemoveTagsRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/RemoveTagsResult.cc b/slb/src/model/RemoveTagsResult.cc index 80a38e701..180608237 100644 --- a/slb/src/model/RemoveTagsResult.cc +++ b/slb/src/model/RemoveTagsResult.cc @@ -35,10 +35,13 @@ RemoveTagsResult::~RemoveTagsResult() void RemoveTagsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/RemoveVServerGroupBackendServersRequest.cc b/slb/src/model/RemoveVServerGroupBackendServersRequest.cc index 0ccfa3a00..c117e5ce9 100644 --- a/slb/src/model/RemoveVServerGroupBackendServersRequest.cc +++ b/slb/src/model/RemoveVServerGroupBackendServersRequest.cc @@ -33,7 +33,7 @@ std::string RemoveVServerGroupBackendServersRequest::getAccess_key_id()const void RemoveVServerGroupBackendServersRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string RemoveVServerGroupBackendServersRequest::getVServerGroupId()const @@ -44,7 +44,7 @@ std::string RemoveVServerGroupBackendServersRequest::getVServerGroupId()const void RemoveVServerGroupBackendServersRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } long RemoveVServerGroupBackendServersRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long RemoveVServerGroupBackendServersRequest::getResourceOwnerId()const void RemoveVServerGroupBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveVServerGroupBackendServersRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string RemoveVServerGroupBackendServersRequest::getResourceOwnerAccount()co void RemoveVServerGroupBackendServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveVServerGroupBackendServersRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string RemoveVServerGroupBackendServersRequest::getRegionId()const void RemoveVServerGroupBackendServersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveVServerGroupBackendServersRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string RemoveVServerGroupBackendServersRequest::getOwnerAccount()const void RemoveVServerGroupBackendServersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long RemoveVServerGroupBackendServersRequest::getOwnerId()const @@ -99,7 +99,7 @@ long RemoveVServerGroupBackendServersRequest::getOwnerId()const void RemoveVServerGroupBackendServersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveVServerGroupBackendServersRequest::getBackendServers()const @@ -110,7 +110,7 @@ std::string RemoveVServerGroupBackendServersRequest::getBackendServers()const void RemoveVServerGroupBackendServersRequest::setBackendServers(const std::string& backendServers) { backendServers_ = backendServers; - setParameter("BackendServers", backendServers); + setCoreParameter("BackendServers", backendServers); } std::string RemoveVServerGroupBackendServersRequest::getTags()const @@ -121,6 +121,6 @@ std::string RemoveVServerGroupBackendServersRequest::getTags()const void RemoveVServerGroupBackendServersRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/RemoveVServerGroupBackendServersResult.cc b/slb/src/model/RemoveVServerGroupBackendServersResult.cc index 8fd0d1194..c9dd1b10c 100644 --- a/slb/src/model/RemoveVServerGroupBackendServersResult.cc +++ b/slb/src/model/RemoveVServerGroupBackendServersResult.cc @@ -35,10 +35,13 @@ RemoveVServerGroupBackendServersResult::~RemoveVServerGroupBackendServersResult( void RemoveVServerGroupBackendServersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -54,10 +57,10 @@ void RemoveVServerGroupBackendServersResult::parse(const std::string &payload) backendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) backendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["VServerGroupId"].isNull()) diff --git a/slb/src/model/SetAccessControlListAttributeRequest.cc b/slb/src/model/SetAccessControlListAttributeRequest.cc index 627ff5eb3..c349c55dd 100644 --- a/slb/src/model/SetAccessControlListAttributeRequest.cc +++ b/slb/src/model/SetAccessControlListAttributeRequest.cc @@ -33,7 +33,7 @@ std::string SetAccessControlListAttributeRequest::getAccess_key_id()const void SetAccessControlListAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string SetAccessControlListAttributeRequest::getAclId()const @@ -44,7 +44,7 @@ std::string SetAccessControlListAttributeRequest::getAclId()const void SetAccessControlListAttributeRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long SetAccessControlListAttributeRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SetAccessControlListAttributeRequest::getResourceOwnerId()const void SetAccessControlListAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetAccessControlListAttributeRequest::getAclName()const @@ -66,7 +66,7 @@ std::string SetAccessControlListAttributeRequest::getAclName()const void SetAccessControlListAttributeRequest::setAclName(const std::string& aclName) { aclName_ = aclName; - setParameter("AclName", aclName); + setCoreParameter("AclName", aclName); } std::string SetAccessControlListAttributeRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SetAccessControlListAttributeRequest::getResourceOwnerAccount()const void SetAccessControlListAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetAccessControlListAttributeRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string SetAccessControlListAttributeRequest::getRegionId()const void SetAccessControlListAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetAccessControlListAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string SetAccessControlListAttributeRequest::getOwnerAccount()const void SetAccessControlListAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetAccessControlListAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long SetAccessControlListAttributeRequest::getOwnerId()const void SetAccessControlListAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetAccessControlListAttributeRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string SetAccessControlListAttributeRequest::getAccessKeyId()const void SetAccessControlListAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string SetAccessControlListAttributeRequest::getTags()const @@ -132,6 +132,6 @@ std::string SetAccessControlListAttributeRequest::getTags()const void SetAccessControlListAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/SetAccessControlListAttributeResult.cc b/slb/src/model/SetAccessControlListAttributeResult.cc index 0c517f5b8..7e3f1be9b 100644 --- a/slb/src/model/SetAccessControlListAttributeResult.cc +++ b/slb/src/model/SetAccessControlListAttributeResult.cc @@ -35,10 +35,13 @@ SetAccessControlListAttributeResult::~SetAccessControlListAttributeResult() void SetAccessControlListAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AclId"].isNull()) aclId_ = value["AclId"].asString(); diff --git a/slb/src/model/SetBackendServersRequest.cc b/slb/src/model/SetBackendServersRequest.cc index f2ee7be05..a0e304218 100644 --- a/slb/src/model/SetBackendServersRequest.cc +++ b/slb/src/model/SetBackendServersRequest.cc @@ -33,7 +33,7 @@ std::string SetBackendServersRequest::getAccess_key_id()const void SetBackendServersRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetBackendServersRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetBackendServersRequest::getResourceOwnerId()const void SetBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetBackendServersRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string SetBackendServersRequest::getLoadBalancerId()const void SetBackendServersRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetBackendServersRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string SetBackendServersRequest::getRegionId()const void SetBackendServersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetBackendServersRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SetBackendServersRequest::getResourceOwnerAccount()const void SetBackendServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetBackendServersRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SetBackendServersRequest::getOwnerAccount()const void SetBackendServersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetBackendServersRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SetBackendServersRequest::getOwnerId()const void SetBackendServersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetBackendServersRequest::getBackendServers()const @@ -110,7 +110,7 @@ std::string SetBackendServersRequest::getBackendServers()const void SetBackendServersRequest::setBackendServers(const std::string& backendServers) { backendServers_ = backendServers; - setParameter("BackendServers", backendServers); + setCoreParameter("BackendServers", backendServers); } std::string SetBackendServersRequest::getTags()const @@ -121,6 +121,6 @@ std::string SetBackendServersRequest::getTags()const void SetBackendServersRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/SetBackendServersResult.cc b/slb/src/model/SetBackendServersResult.cc index eac3b828d..fe753be55 100644 --- a/slb/src/model/SetBackendServersResult.cc +++ b/slb/src/model/SetBackendServersResult.cc @@ -35,10 +35,13 @@ SetBackendServersResult::~SetBackendServersResult() void SetBackendServersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -52,10 +55,10 @@ void SetBackendServersResult::parse(const std::string &payload) backendServersObject.serverIp = value["ServerIp"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["Type"].isNull()) backendServersObject.type = value["Type"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["LoadBalancerId"].isNull()) diff --git a/slb/src/model/SetCACertificateNameRequest.cc b/slb/src/model/SetCACertificateNameRequest.cc index 6393dcebe..0b9b1eb19 100644 --- a/slb/src/model/SetCACertificateNameRequest.cc +++ b/slb/src/model/SetCACertificateNameRequest.cc @@ -33,7 +33,7 @@ std::string SetCACertificateNameRequest::getAccess_key_id()const void SetCACertificateNameRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetCACertificateNameRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetCACertificateNameRequest::getResourceOwnerId()const void SetCACertificateNameRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetCACertificateNameRequest::getCACertificateName()const @@ -55,7 +55,7 @@ std::string SetCACertificateNameRequest::getCACertificateName()const void SetCACertificateNameRequest::setCACertificateName(const std::string& cACertificateName) { cACertificateName_ = cACertificateName; - setParameter("CACertificateName", cACertificateName); + setCoreParameter("CACertificateName", cACertificateName); } std::string SetCACertificateNameRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SetCACertificateNameRequest::getResourceOwnerAccount()const void SetCACertificateNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetCACertificateNameRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string SetCACertificateNameRequest::getRegionId()const void SetCACertificateNameRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetCACertificateNameRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SetCACertificateNameRequest::getOwnerAccount()const void SetCACertificateNameRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetCACertificateNameRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SetCACertificateNameRequest::getOwnerId()const void SetCACertificateNameRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetCACertificateNameRequest::getCACertificateId()const @@ -110,6 +110,6 @@ std::string SetCACertificateNameRequest::getCACertificateId()const void SetCACertificateNameRequest::setCACertificateId(const std::string& cACertificateId) { cACertificateId_ = cACertificateId; - setParameter("CACertificateId", cACertificateId); + setCoreParameter("CACertificateId", cACertificateId); } diff --git a/slb/src/model/SetCACertificateNameResult.cc b/slb/src/model/SetCACertificateNameResult.cc index b478ec895..4d25f85b5 100644 --- a/slb/src/model/SetCACertificateNameResult.cc +++ b/slb/src/model/SetCACertificateNameResult.cc @@ -35,10 +35,13 @@ SetCACertificateNameResult::~SetCACertificateNameResult() void SetCACertificateNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetDomainExtensionAttributeRequest.cc b/slb/src/model/SetDomainExtensionAttributeRequest.cc index f47303f80..6292e4e74 100644 --- a/slb/src/model/SetDomainExtensionAttributeRequest.cc +++ b/slb/src/model/SetDomainExtensionAttributeRequest.cc @@ -33,7 +33,7 @@ std::string SetDomainExtensionAttributeRequest::getAccess_key_id()const void SetDomainExtensionAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetDomainExtensionAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetDomainExtensionAttributeRequest::getResourceOwnerId()const void SetDomainExtensionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetDomainExtensionAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string SetDomainExtensionAttributeRequest::getResourceOwnerAccount()const void SetDomainExtensionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetDomainExtensionAttributeRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string SetDomainExtensionAttributeRequest::getRegionId()const void SetDomainExtensionAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetDomainExtensionAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SetDomainExtensionAttributeRequest::getOwnerAccount()const void SetDomainExtensionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetDomainExtensionAttributeRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SetDomainExtensionAttributeRequest::getOwnerId()const void SetDomainExtensionAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetDomainExtensionAttributeRequest::getServerCertificateId()const @@ -99,7 +99,7 @@ std::string SetDomainExtensionAttributeRequest::getServerCertificateId()const void SetDomainExtensionAttributeRequest::setServerCertificateId(const std::string& serverCertificateId) { serverCertificateId_ = serverCertificateId; - setParameter("ServerCertificateId", serverCertificateId); + setCoreParameter("ServerCertificateId", serverCertificateId); } std::string SetDomainExtensionAttributeRequest::getTags()const @@ -110,7 +110,7 @@ std::string SetDomainExtensionAttributeRequest::getTags()const void SetDomainExtensionAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string SetDomainExtensionAttributeRequest::getDomainExtensionId()const @@ -121,6 +121,6 @@ std::string SetDomainExtensionAttributeRequest::getDomainExtensionId()const void SetDomainExtensionAttributeRequest::setDomainExtensionId(const std::string& domainExtensionId) { domainExtensionId_ = domainExtensionId; - setParameter("DomainExtensionId", domainExtensionId); + setCoreParameter("DomainExtensionId", domainExtensionId); } diff --git a/slb/src/model/SetDomainExtensionAttributeResult.cc b/slb/src/model/SetDomainExtensionAttributeResult.cc index 406178da5..8595b39f1 100644 --- a/slb/src/model/SetDomainExtensionAttributeResult.cc +++ b/slb/src/model/SetDomainExtensionAttributeResult.cc @@ -35,10 +35,13 @@ SetDomainExtensionAttributeResult::~SetDomainExtensionAttributeResult() void SetDomainExtensionAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetListenerAccessControlStatusRequest.cc b/slb/src/model/SetListenerAccessControlStatusRequest.cc index d4ce6763d..9c9c8eeba 100644 --- a/slb/src/model/SetListenerAccessControlStatusRequest.cc +++ b/slb/src/model/SetListenerAccessControlStatusRequest.cc @@ -33,7 +33,7 @@ std::string SetListenerAccessControlStatusRequest::getAccess_key_id()const void SetListenerAccessControlStatusRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetListenerAccessControlStatusRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetListenerAccessControlStatusRequest::getResourceOwnerId()const void SetListenerAccessControlStatusRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int SetListenerAccessControlStatusRequest::getListenerPort()const @@ -55,7 +55,7 @@ int SetListenerAccessControlStatusRequest::getListenerPort()const void SetListenerAccessControlStatusRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string SetListenerAccessControlStatusRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string SetListenerAccessControlStatusRequest::getLoadBalancerId()const void SetListenerAccessControlStatusRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetListenerAccessControlStatusRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string SetListenerAccessControlStatusRequest::getRegionId()const void SetListenerAccessControlStatusRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetListenerAccessControlStatusRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string SetListenerAccessControlStatusRequest::getResourceOwnerAccount()cons void SetListenerAccessControlStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetListenerAccessControlStatusRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string SetListenerAccessControlStatusRequest::getOwnerAccount()const void SetListenerAccessControlStatusRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SetListenerAccessControlStatusRequest::getAccessControlStatus()const @@ -110,7 +110,7 @@ std::string SetListenerAccessControlStatusRequest::getAccessControlStatus()const void SetListenerAccessControlStatusRequest::setAccessControlStatus(const std::string& accessControlStatus) { accessControlStatus_ = accessControlStatus; - setParameter("AccessControlStatus", accessControlStatus); + setCoreParameter("AccessControlStatus", accessControlStatus); } long SetListenerAccessControlStatusRequest::getOwnerId()const @@ -121,7 +121,18 @@ long SetListenerAccessControlStatusRequest::getOwnerId()const void SetListenerAccessControlStatusRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SetListenerAccessControlStatusRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void SetListenerAccessControlStatusRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string SetListenerAccessControlStatusRequest::getTags()const @@ -132,6 +143,6 @@ std::string SetListenerAccessControlStatusRequest::getTags()const void SetListenerAccessControlStatusRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/SetListenerAccessControlStatusResult.cc b/slb/src/model/SetListenerAccessControlStatusResult.cc index 56662bb7d..78aa9aca3 100644 --- a/slb/src/model/SetListenerAccessControlStatusResult.cc +++ b/slb/src/model/SetListenerAccessControlStatusResult.cc @@ -35,10 +35,13 @@ SetListenerAccessControlStatusResult::~SetListenerAccessControlStatusResult() void SetListenerAccessControlStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetLoadBalancerDeleteProtectionRequest.cc b/slb/src/model/SetLoadBalancerDeleteProtectionRequest.cc new file mode 100644 index 000000000..bb3421687 --- /dev/null +++ b/slb/src/model/SetLoadBalancerDeleteProtectionRequest.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::Slb::Model::SetLoadBalancerDeleteProtectionRequest; + +SetLoadBalancerDeleteProtectionRequest::SetLoadBalancerDeleteProtectionRequest() : + RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerDeleteProtection") +{} + +SetLoadBalancerDeleteProtectionRequest::~SetLoadBalancerDeleteProtectionRequest() +{} + +std::string SetLoadBalancerDeleteProtectionRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void SetLoadBalancerDeleteProtectionRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setCoreParameter("Access_key_id", access_key_id); +} + +long SetLoadBalancerDeleteProtectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setLoadBalancerId(const std::string& loadBalancerId) +{ + loadBalancerId_ = loadBalancerId; + setCoreParameter("LoadBalancerId", loadBalancerId); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getRegionId()const +{ + return regionId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SetLoadBalancerDeleteProtectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SetLoadBalancerDeleteProtectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long SetLoadBalancerDeleteProtectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getDeleteProtection()const +{ + return deleteProtection_; +} + +void SetLoadBalancerDeleteProtectionRequest::setDeleteProtection(const std::string& deleteProtection) +{ + deleteProtection_ = deleteProtection; + setCoreParameter("DeleteProtection", deleteProtection); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getTags()const +{ + return tags_; +} + +void SetLoadBalancerDeleteProtectionRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setCoreParameter("Tags", tags); +} + diff --git a/slb/src/model/SetLoadBalancerDeleteProtectionResult.cc b/slb/src/model/SetLoadBalancerDeleteProtectionResult.cc new file mode 100644 index 000000000..d79014914 --- /dev/null +++ b/slb/src/model/SetLoadBalancerDeleteProtectionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetLoadBalancerDeleteProtectionResult::SetLoadBalancerDeleteProtectionResult() : + ServiceResult() +{} + +SetLoadBalancerDeleteProtectionResult::SetLoadBalancerDeleteProtectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerDeleteProtectionResult::~SetLoadBalancerDeleteProtectionResult() +{} + +void SetLoadBalancerDeleteProtectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc index ca5369b93..1bb0d5261 100644 --- a/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getAccess_key_id()const void SetLoadBalancerHTTPListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerId()const void SetLoadBalancerHTTPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckTimeout()const @@ -55,7 +55,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckTimeout()const void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckTimeout(int healthCheckTimeout) { healthCheckTimeout_ = healthCheckTimeout; - setParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); + setCoreParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor()const @@ -66,7 +66,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor()const void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor(const std::string& xForwardedFor) { xForwardedFor_ = xForwardedFor; - setParameter("XForwardedFor", xForwardedFor); + setCoreParameter("XForwardedFor", xForwardedFor); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckURI()const @@ -77,7 +77,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckURI()cons void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckURI(const std::string& healthCheckURI) { healthCheckURI_ = healthCheckURI; - setParameter("HealthCheckURI", healthCheckURI); + setCoreParameter("HealthCheckURI", healthCheckURI); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getDescription()const @@ -88,7 +88,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getDescription()const void SetLoadBalancerHTTPListenerAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int SetLoadBalancerHTTPListenerAttributeRequest::getUnhealthyThreshold()const @@ -99,7 +99,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getUnhealthyThreshold()const void SetLoadBalancerHTTPListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int SetLoadBalancerHTTPListenerAttributeRequest::getHealthyThreshold()const @@ -110,7 +110,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getHealthyThreshold()const void SetLoadBalancerHTTPListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclStatus()const @@ -121,7 +121,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclStatus()const void SetLoadBalancerHTTPListenerAttributeRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getScheduler()const @@ -132,7 +132,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getScheduler()const void SetLoadBalancerHTTPListenerAttributeRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclType()const @@ -143,7 +143,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclType()const void SetLoadBalancerHTTPListenerAttributeRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheck()const @@ -154,7 +154,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheck()const void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheck(const std::string& healthCheck) { healthCheck_ = healthCheck; - setParameter("HealthCheck", healthCheck); + setCoreParameter("HealthCheck", healthCheck); } int SetLoadBalancerHTTPListenerAttributeRequest::getMaxConnection()const @@ -165,7 +165,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getMaxConnection()const void SetLoadBalancerHTTPListenerAttributeRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getRegionId()const @@ -176,7 +176,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getRegionId()const void SetLoadBalancerHTTPListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int SetLoadBalancerHTTPListenerAttributeRequest::getCookieTimeout()const @@ -187,7 +187,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getCookieTimeout()const void SetLoadBalancerHTTPListenerAttributeRequest::setCookieTimeout(int cookieTimeout) { cookieTimeout_ = cookieTimeout; - setParameter("CookieTimeout", std::to_string(cookieTimeout)); + setCoreParameter("CookieTimeout", std::to_string(cookieTimeout)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getStickySessionType()const @@ -198,7 +198,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getStickySessionType()c void SetLoadBalancerHTTPListenerAttributeRequest::setStickySessionType(const std::string& stickySessionType) { stickySessionType_ = stickySessionType; - setParameter("StickySessionType", stickySessionType); + setCoreParameter("StickySessionType", stickySessionType); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getVpcIds()const @@ -209,7 +209,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getVpcIds()const void SetLoadBalancerHTTPListenerAttributeRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getVServerGroupId()const @@ -220,7 +220,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getVServerGroupId()cons void SetLoadBalancerHTTPListenerAttributeRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclId()const @@ -231,7 +231,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclId()const void SetLoadBalancerHTTPListenerAttributeRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int SetLoadBalancerHTTPListenerAttributeRequest::getListenerPort()const @@ -242,7 +242,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getListenerPort()const void SetLoadBalancerHTTPListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getCookie()const @@ -253,7 +253,18 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getCookie()const void SetLoadBalancerHTTPListenerAttributeRequest::setCookie(const std::string& cookie) { cookie_ = cookie; - setParameter("Cookie", cookie); + setCoreParameter("Cookie", cookie); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckType()const +{ + return healthCheckType_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckType(const std::string& healthCheckType) +{ + healthCheckType_ = healthCheckType; + setCoreParameter("HealthCheckType", healthCheckType); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerAccount()const @@ -264,7 +275,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerAccount void SetLoadBalancerHTTPListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int SetLoadBalancerHTTPListenerAttributeRequest::getBandwidth()const @@ -275,7 +286,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getBandwidth()const void SetLoadBalancerHTTPListenerAttributeRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getStickySession()const @@ -286,7 +297,18 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getStickySession()const void SetLoadBalancerHTTPListenerAttributeRequest::setStickySession(const std::string& stickySession) { stickySession_ = stickySession; - setParameter("StickySession", stickySession); + setCoreParameter("StickySession", stickySession); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckMethod(const std::string& healthCheckMethod) +{ + healthCheckMethod_ = healthCheckMethod; + setCoreParameter("HealthCheckMethod", healthCheckMethod); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckDomain()const @@ -297,7 +319,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckDomain()c void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckDomain(const std::string& healthCheckDomain) { healthCheckDomain_ = healthCheckDomain; - setParameter("HealthCheckDomain", healthCheckDomain); + setCoreParameter("HealthCheckDomain", healthCheckDomain); } int SetLoadBalancerHTTPListenerAttributeRequest::getRequestTimeout()const @@ -308,7 +330,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getRequestTimeout()const void SetLoadBalancerHTTPListenerAttributeRequest::setRequestTimeout(int requestTimeout) { requestTimeout_ = requestTimeout; - setParameter("RequestTimeout", std::to_string(requestTimeout)); + setCoreParameter("RequestTimeout", std::to_string(requestTimeout)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getOwnerAccount()const @@ -319,7 +341,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getOwnerAccount()const void SetLoadBalancerHTTPListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getGzip()const @@ -330,7 +352,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getGzip()const void SetLoadBalancerHTTPListenerAttributeRequest::setGzip(const std::string& gzip) { gzip_ = gzip; - setParameter("Gzip", gzip); + setCoreParameter("Gzip", gzip); } long SetLoadBalancerHTTPListenerAttributeRequest::getOwnerId()const @@ -341,7 +363,7 @@ long SetLoadBalancerHTTPListenerAttributeRequest::getOwnerId()const void SetLoadBalancerHTTPListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getTags()const @@ -352,7 +374,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getTags()const void SetLoadBalancerHTTPListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } int SetLoadBalancerHTTPListenerAttributeRequest::getIdleTimeout()const @@ -363,7 +385,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getIdleTimeout()const void SetLoadBalancerHTTPListenerAttributeRequest::setIdleTimeout(int idleTimeout) { idleTimeout_ = idleTimeout; - setParameter("IdleTimeout", std::to_string(idleTimeout)); + setCoreParameter("IdleTimeout", std::to_string(idleTimeout)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId()const @@ -374,7 +396,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId()cons void SetLoadBalancerHTTPListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_SLBIP()const @@ -385,7 +407,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_SLBIP( void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_SLBIP(const std::string& xForwardedFor_SLBIP) { xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; - setParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); + setCoreParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); } int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckInterval()const @@ -396,7 +418,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckInterval()const void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_proto()const @@ -407,7 +429,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_proto( void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_proto(const std::string& xForwardedFor_proto) { xForwardedFor_proto_ = xForwardedFor_proto; - setParameter("XForwardedFor_proto", xForwardedFor_proto); + setCoreParameter("XForwardedFor_proto", xForwardedFor_proto); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_SLBID()const @@ -418,7 +440,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_SLBID( void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_SLBID(const std::string& xForwardedFor_SLBID) { xForwardedFor_SLBID_ = xForwardedFor_SLBID; - setParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); + setCoreParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); } int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckConnectPort()const @@ -429,7 +451,7 @@ int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckConnectPort()cons void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckHttpCode()const @@ -440,7 +462,7 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckHttpCode( void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) { healthCheckHttpCode_ = healthCheckHttpCode; - setParameter("HealthCheckHttpCode", healthCheckHttpCode); + setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getVServerGroup()const @@ -451,6 +473,6 @@ std::string SetLoadBalancerHTTPListenerAttributeRequest::getVServerGroup()const void SetLoadBalancerHTTPListenerAttributeRequest::setVServerGroup(const std::string& vServerGroup) { vServerGroup_ = vServerGroup; - setParameter("VServerGroup", vServerGroup); + setCoreParameter("VServerGroup", vServerGroup); } diff --git a/slb/src/model/SetLoadBalancerHTTPListenerAttributeResult.cc b/slb/src/model/SetLoadBalancerHTTPListenerAttributeResult.cc index fe8cffd89..8619d1589 100644 --- a/slb/src/model/SetLoadBalancerHTTPListenerAttributeResult.cc +++ b/slb/src/model/SetLoadBalancerHTTPListenerAttributeResult.cc @@ -35,10 +35,13 @@ SetLoadBalancerHTTPListenerAttributeResult::~SetLoadBalancerHTTPListenerAttribut void SetLoadBalancerHTTPListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc index 74b00239f..e1e1b5371 100644 --- a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAccess_key_id()cons void SetLoadBalancerHTTPSListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerId()const void SetLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckTimeout()const @@ -55,7 +55,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckTimeout()const void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckTimeout(int healthCheckTimeout) { healthCheckTimeout_ = healthCheckTimeout; - setParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); + setCoreParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor()const @@ -66,7 +66,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor()cons void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor(const std::string& xForwardedFor) { xForwardedFor_ = xForwardedFor; - setParameter("XForwardedFor", xForwardedFor); + setCoreParameter("XForwardedFor", xForwardedFor); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckURI()const @@ -77,7 +77,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckURI()con void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckURI(const std::string& healthCheckURI) { healthCheckURI_ = healthCheckURI; - setParameter("HealthCheckURI", healthCheckURI); + setCoreParameter("HealthCheckURI", healthCheckURI); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getDescription()const @@ -88,7 +88,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getDescription()const void SetLoadBalancerHTTPSListenerAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int SetLoadBalancerHTTPSListenerAttributeRequest::getUnhealthyThreshold()const @@ -99,7 +99,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getUnhealthyThreshold()const void SetLoadBalancerHTTPSListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthyThreshold()const @@ -110,7 +110,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthyThreshold()const void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclStatus()const @@ -121,7 +121,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclStatus()const void SetLoadBalancerHTTPSListenerAttributeRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getScheduler()const @@ -132,7 +132,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getScheduler()const void SetLoadBalancerHTTPSListenerAttributeRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclType()const @@ -143,7 +143,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclType()const void SetLoadBalancerHTTPSListenerAttributeRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheck()const @@ -154,7 +154,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheck()const void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheck(const std::string& healthCheck) { healthCheck_ = healthCheck; - setParameter("HealthCheck", healthCheck); + setCoreParameter("HealthCheck", healthCheck); } int SetLoadBalancerHTTPSListenerAttributeRequest::getMaxConnection()const @@ -165,7 +165,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getMaxConnection()const void SetLoadBalancerHTTPSListenerAttributeRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getEnableHttp2()const @@ -176,7 +176,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getEnableHttp2()const void SetLoadBalancerHTTPSListenerAttributeRequest::setEnableHttp2(const std::string& enableHttp2) { enableHttp2_ = enableHttp2; - setParameter("EnableHttp2", enableHttp2); + setCoreParameter("EnableHttp2", enableHttp2); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getRegionId()const @@ -187,7 +187,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getRegionId()const void SetLoadBalancerHTTPSListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int SetLoadBalancerHTTPSListenerAttributeRequest::getCookieTimeout()const @@ -198,7 +198,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getCookieTimeout()const void SetLoadBalancerHTTPSListenerAttributeRequest::setCookieTimeout(int cookieTimeout) { cookieTimeout_ = cookieTimeout; - setParameter("CookieTimeout", std::to_string(cookieTimeout)); + setCoreParameter("CookieTimeout", std::to_string(cookieTimeout)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySessionType()const @@ -209,7 +209,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySessionType() void SetLoadBalancerHTTPSListenerAttributeRequest::setStickySessionType(const std::string& stickySessionType) { stickySessionType_ = stickySessionType; - setParameter("StickySessionType", stickySessionType); + setCoreParameter("StickySessionType", stickySessionType); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVpcIds()const @@ -220,7 +220,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVpcIds()const void SetLoadBalancerHTTPSListenerAttributeRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVServerGroupId()const @@ -231,7 +231,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVServerGroupId()con void SetLoadBalancerHTTPSListenerAttributeRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclId()const @@ -242,7 +242,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclId()const void SetLoadBalancerHTTPSListenerAttributeRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int SetLoadBalancerHTTPSListenerAttributeRequest::getListenerPort()const @@ -253,7 +253,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getListenerPort()const void SetLoadBalancerHTTPSListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getCookie()const @@ -264,7 +264,18 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getCookie()const void SetLoadBalancerHTTPSListenerAttributeRequest::setCookie(const std::string& cookie) { cookie_ = cookie; - setParameter("Cookie", cookie); + setCoreParameter("Cookie", cookie); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckType()const +{ + return healthCheckType_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckType(const std::string& healthCheckType) +{ + healthCheckType_ = healthCheckType; + setCoreParameter("HealthCheckType", healthCheckType); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerAccount()const @@ -275,7 +286,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerAccoun void SetLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int SetLoadBalancerHTTPSListenerAttributeRequest::getBandwidth()const @@ -286,7 +297,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getBandwidth()const void SetLoadBalancerHTTPSListenerAttributeRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySession()const @@ -297,7 +308,18 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySession()cons void SetLoadBalancerHTTPSListenerAttributeRequest::setStickySession(const std::string& stickySession) { stickySession_ = stickySession; - setParameter("StickySession", stickySession); + setCoreParameter("StickySession", stickySession); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckMethod(const std::string& healthCheckMethod) +{ + healthCheckMethod_ = healthCheckMethod; + setCoreParameter("HealthCheckMethod", healthCheckMethod); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckDomain()const @@ -308,7 +330,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckDomain() void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckDomain(const std::string& healthCheckDomain) { healthCheckDomain_ = healthCheckDomain; - setParameter("HealthCheckDomain", healthCheckDomain); + setCoreParameter("HealthCheckDomain", healthCheckDomain); } int SetLoadBalancerHTTPSListenerAttributeRequest::getRequestTimeout()const @@ -319,7 +341,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getRequestTimeout()const void SetLoadBalancerHTTPSListenerAttributeRequest::setRequestTimeout(int requestTimeout) { requestTimeout_ = requestTimeout; - setParameter("RequestTimeout", std::to_string(requestTimeout)); + setCoreParameter("RequestTimeout", std::to_string(requestTimeout)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerAccount()const @@ -330,7 +352,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerAccount()const void SetLoadBalancerHTTPSListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getGzip()const @@ -341,7 +363,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getGzip()const void SetLoadBalancerHTTPSListenerAttributeRequest::setGzip(const std::string& gzip) { gzip_ = gzip; - setParameter("Gzip", gzip); + setCoreParameter("Gzip", gzip); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getTLSCipherPolicy()const @@ -352,7 +374,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getTLSCipherPolicy()co void SetLoadBalancerHTTPSListenerAttributeRequest::setTLSCipherPolicy(const std::string& tLSCipherPolicy) { tLSCipherPolicy_ = tLSCipherPolicy; - setParameter("TLSCipherPolicy", tLSCipherPolicy); + setCoreParameter("TLSCipherPolicy", tLSCipherPolicy); } long SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerId()const @@ -363,7 +385,7 @@ long SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerId()const void SetLoadBalancerHTTPSListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getServerCertificateId()const @@ -374,7 +396,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getServerCertificateId void SetLoadBalancerHTTPSListenerAttributeRequest::setServerCertificateId(const std::string& serverCertificateId) { serverCertificateId_ = serverCertificateId; - setParameter("ServerCertificateId", serverCertificateId); + setCoreParameter("ServerCertificateId", serverCertificateId); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getCACertificateId()const @@ -385,7 +407,18 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getCACertificateId()co void SetLoadBalancerHTTPSListenerAttributeRequest::setCACertificateId(const std::string& cACertificateId) { cACertificateId_ = cACertificateId; - setParameter("CACertificateId", cACertificateId); + setCoreParameter("CACertificateId", cACertificateId); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getBackendProtocol()const +{ + return backendProtocol_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setBackendProtocol(const std::string& backendProtocol) +{ + backendProtocol_ = backendProtocol; + setCoreParameter("BackendProtocol", backendProtocol); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getTags()const @@ -396,7 +429,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getTags()const void SetLoadBalancerHTTPSListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } int SetLoadBalancerHTTPSListenerAttributeRequest::getIdleTimeout()const @@ -407,7 +440,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getIdleTimeout()const void SetLoadBalancerHTTPSListenerAttributeRequest::setIdleTimeout(int idleTimeout) { idleTimeout_ = idleTimeout; - setParameter("IdleTimeout", std::to_string(idleTimeout)); + setCoreParameter("IdleTimeout", std::to_string(idleTimeout)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId()const @@ -418,7 +451,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId()con void SetLoadBalancerHTTPSListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_SLBIP()const @@ -429,7 +462,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_SLBIP void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_SLBIP(const std::string& xForwardedFor_SLBIP) { xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; - setParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); + setCoreParameter("XForwardedFor_SLBIP", xForwardedFor_SLBIP); } int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckInterval()const @@ -440,7 +473,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckInterval()const void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_proto()const @@ -451,7 +484,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_proto void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_proto(const std::string& xForwardedFor_proto) { xForwardedFor_proto_ = xForwardedFor_proto; - setParameter("XForwardedFor_proto", xForwardedFor_proto); + setCoreParameter("XForwardedFor_proto", xForwardedFor_proto); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_SLBID()const @@ -462,7 +495,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_SLBID void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_SLBID(const std::string& xForwardedFor_SLBID) { xForwardedFor_SLBID_ = xForwardedFor_SLBID; - setParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); + setCoreParameter("XForwardedFor_SLBID", xForwardedFor_SLBID); } int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckConnectPort()const @@ -473,7 +506,7 @@ int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckConnectPort()con void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckHttpCode()const @@ -484,7 +517,7 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckHttpCode void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) { healthCheckHttpCode_ = healthCheckHttpCode; - setParameter("HealthCheckHttpCode", healthCheckHttpCode); + setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode); } std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVServerGroup()const @@ -495,6 +528,6 @@ std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVServerGroup()const void SetLoadBalancerHTTPSListenerAttributeRequest::setVServerGroup(const std::string& vServerGroup) { vServerGroup_ = vServerGroup; - setParameter("VServerGroup", vServerGroup); + setCoreParameter("VServerGroup", vServerGroup); } diff --git a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc index d6a020017..5355a90d4 100644 --- a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc +++ b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc @@ -35,10 +35,13 @@ SetLoadBalancerHTTPSListenerAttributeResult::~SetLoadBalancerHTTPSListenerAttrib void SetLoadBalancerHTTPSListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetLoadBalancerNameRequest.cc b/slb/src/model/SetLoadBalancerNameRequest.cc index b81607781..c7fb4e116 100644 --- a/slb/src/model/SetLoadBalancerNameRequest.cc +++ b/slb/src/model/SetLoadBalancerNameRequest.cc @@ -33,7 +33,7 @@ std::string SetLoadBalancerNameRequest::getAccess_key_id()const void SetLoadBalancerNameRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetLoadBalancerNameRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetLoadBalancerNameRequest::getResourceOwnerId()const void SetLoadBalancerNameRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetLoadBalancerNameRequest::getLoadBalancerName()const @@ -55,7 +55,7 @@ std::string SetLoadBalancerNameRequest::getLoadBalancerName()const void SetLoadBalancerNameRequest::setLoadBalancerName(const std::string& loadBalancerName) { loadBalancerName_ = loadBalancerName; - setParameter("LoadBalancerName", loadBalancerName); + setCoreParameter("LoadBalancerName", loadBalancerName); } std::string SetLoadBalancerNameRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string SetLoadBalancerNameRequest::getLoadBalancerId()const void SetLoadBalancerNameRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetLoadBalancerNameRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string SetLoadBalancerNameRequest::getRegionId()const void SetLoadBalancerNameRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetLoadBalancerNameRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string SetLoadBalancerNameRequest::getResourceOwnerAccount()const void SetLoadBalancerNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetLoadBalancerNameRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string SetLoadBalancerNameRequest::getOwnerAccount()const void SetLoadBalancerNameRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetLoadBalancerNameRequest::getOwnerId()const @@ -110,7 +110,7 @@ long SetLoadBalancerNameRequest::getOwnerId()const void SetLoadBalancerNameRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetLoadBalancerNameRequest::getTags()const @@ -121,6 +121,6 @@ std::string SetLoadBalancerNameRequest::getTags()const void SetLoadBalancerNameRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/SetLoadBalancerNameResult.cc b/slb/src/model/SetLoadBalancerNameResult.cc index 242e79cca..ac35d6074 100644 --- a/slb/src/model/SetLoadBalancerNameResult.cc +++ b/slb/src/model/SetLoadBalancerNameResult.cc @@ -35,10 +35,13 @@ SetLoadBalancerNameResult::~SetLoadBalancerNameResult() void SetLoadBalancerNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetLoadBalancerStatusRequest.cc b/slb/src/model/SetLoadBalancerStatusRequest.cc index 3f22639a8..a9bc081ed 100644 --- a/slb/src/model/SetLoadBalancerStatusRequest.cc +++ b/slb/src/model/SetLoadBalancerStatusRequest.cc @@ -33,7 +33,7 @@ std::string SetLoadBalancerStatusRequest::getAccess_key_id()const void SetLoadBalancerStatusRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetLoadBalancerStatusRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetLoadBalancerStatusRequest::getResourceOwnerId()const void SetLoadBalancerStatusRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetLoadBalancerStatusRequest::getLoadBalancerId()const @@ -55,7 +55,7 @@ std::string SetLoadBalancerStatusRequest::getLoadBalancerId()const void SetLoadBalancerStatusRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetLoadBalancerStatusRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string SetLoadBalancerStatusRequest::getRegionId()const void SetLoadBalancerStatusRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetLoadBalancerStatusRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string SetLoadBalancerStatusRequest::getResourceOwnerAccount()const void SetLoadBalancerStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetLoadBalancerStatusRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SetLoadBalancerStatusRequest::getOwnerAccount()const void SetLoadBalancerStatusRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetLoadBalancerStatusRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SetLoadBalancerStatusRequest::getOwnerId()const void SetLoadBalancerStatusRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetLoadBalancerStatusRequest::getLoadBalancerStatus()const @@ -110,7 +110,7 @@ std::string SetLoadBalancerStatusRequest::getLoadBalancerStatus()const void SetLoadBalancerStatusRequest::setLoadBalancerStatus(const std::string& loadBalancerStatus) { loadBalancerStatus_ = loadBalancerStatus; - setParameter("LoadBalancerStatus", loadBalancerStatus); + setCoreParameter("LoadBalancerStatus", loadBalancerStatus); } std::string SetLoadBalancerStatusRequest::getTags()const @@ -121,6 +121,6 @@ std::string SetLoadBalancerStatusRequest::getTags()const void SetLoadBalancerStatusRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/SetLoadBalancerStatusResult.cc b/slb/src/model/SetLoadBalancerStatusResult.cc index 83a6f5bfd..4aa66e86f 100644 --- a/slb/src/model/SetLoadBalancerStatusResult.cc +++ b/slb/src/model/SetLoadBalancerStatusResult.cc @@ -35,10 +35,13 @@ SetLoadBalancerStatusResult::~SetLoadBalancerStatusResult() void SetLoadBalancerStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc index df1ed54b7..a2f02d95f 100644 --- a/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getAccess_key_id()const void SetLoadBalancerTCPListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectTimeout()const @@ -44,7 +44,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectTimeout()co void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { healthCheckConnectTimeout_ = healthCheckConnectTimeout; - setParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); + setCoreParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); } long SetLoadBalancerTCPListenerAttributeRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SetLoadBalancerTCPListenerAttributeRequest::getResourceOwnerId()const void SetLoadBalancerTCPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckURI()const @@ -66,7 +66,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckURI()const void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckURI(const std::string& healthCheckURI) { healthCheckURI_ = healthCheckURI; - setParameter("HealthCheckURI", healthCheckURI); + setCoreParameter("HealthCheckURI", healthCheckURI); } std::string SetLoadBalancerTCPListenerAttributeRequest::getDescription()const @@ -77,7 +77,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getDescription()const void SetLoadBalancerTCPListenerAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int SetLoadBalancerTCPListenerAttributeRequest::getUnhealthyThreshold()const @@ -88,7 +88,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getUnhealthyThreshold()const void SetLoadBalancerTCPListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int SetLoadBalancerTCPListenerAttributeRequest::getHealthyThreshold()const @@ -99,7 +99,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getHealthyThreshold()const void SetLoadBalancerTCPListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getAclStatus()const @@ -110,7 +110,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getAclStatus()const void SetLoadBalancerTCPListenerAttributeRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string SetLoadBalancerTCPListenerAttributeRequest::getScheduler()const @@ -121,7 +121,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getScheduler()const void SetLoadBalancerTCPListenerAttributeRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string SetLoadBalancerTCPListenerAttributeRequest::getAclType()const @@ -132,7 +132,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getAclType()const void SetLoadBalancerTCPListenerAttributeRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveServerGroup()const @@ -143,7 +143,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveServerGrou void SetLoadBalancerTCPListenerAttributeRequest::setMasterSlaveServerGroup(const std::string& masterSlaveServerGroup) { masterSlaveServerGroup_ = masterSlaveServerGroup; - setParameter("MasterSlaveServerGroup", masterSlaveServerGroup); + setCoreParameter("MasterSlaveServerGroup", masterSlaveServerGroup); } int SetLoadBalancerTCPListenerAttributeRequest::getEstablishedTimeout()const @@ -154,7 +154,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getEstablishedTimeout()const void SetLoadBalancerTCPListenerAttributeRequest::setEstablishedTimeout(int establishedTimeout) { establishedTimeout_ = establishedTimeout; - setParameter("EstablishedTimeout", std::to_string(establishedTimeout)); + setCoreParameter("EstablishedTimeout", std::to_string(establishedTimeout)); } int SetLoadBalancerTCPListenerAttributeRequest::getMaxConnection()const @@ -165,7 +165,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getMaxConnection()const void SetLoadBalancerTCPListenerAttributeRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getRegionId()const @@ -176,7 +176,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getRegionId()const void SetLoadBalancerTCPListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int SetLoadBalancerTCPListenerAttributeRequest::getPersistenceTimeout()const @@ -187,7 +187,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getPersistenceTimeout()const void SetLoadBalancerTCPListenerAttributeRequest::setPersistenceTimeout(int persistenceTimeout) { persistenceTimeout_ = persistenceTimeout; - setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); + setCoreParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getVpcIds()const @@ -198,7 +198,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getVpcIds()const void SetLoadBalancerTCPListenerAttributeRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string SetLoadBalancerTCPListenerAttributeRequest::getVServerGroupId()const @@ -209,7 +209,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getVServerGroupId()const void SetLoadBalancerTCPListenerAttributeRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string SetLoadBalancerTCPListenerAttributeRequest::getAclId()const @@ -220,7 +220,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getAclId()const void SetLoadBalancerTCPListenerAttributeRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int SetLoadBalancerTCPListenerAttributeRequest::getListenerPort()const @@ -231,7 +231,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getListenerPort()const void SetLoadBalancerTCPListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckType()const @@ -242,7 +242,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckType()cons void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckType(const std::string& healthCheckType) { healthCheckType_ = healthCheckType; - setParameter("HealthCheckType", healthCheckType); + setCoreParameter("HealthCheckType", healthCheckType); } std::string SetLoadBalancerTCPListenerAttributeRequest::getResourceOwnerAccount()const @@ -253,7 +253,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getResourceOwnerAccount( void SetLoadBalancerTCPListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int SetLoadBalancerTCPListenerAttributeRequest::getBandwidth()const @@ -264,7 +264,18 @@ int SetLoadBalancerTCPListenerAttributeRequest::getBandwidth()const void SetLoadBalancerTCPListenerAttributeRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckMethod(const std::string& healthCheckMethod) +{ + healthCheckMethod_ = healthCheckMethod; + setCoreParameter("HealthCheckMethod", healthCheckMethod); } std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckDomain()const @@ -275,7 +286,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckDomain()co void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckDomain(const std::string& healthCheckDomain) { healthCheckDomain_ = healthCheckDomain; - setParameter("HealthCheckDomain", healthCheckDomain); + setCoreParameter("HealthCheckDomain", healthCheckDomain); } std::string SetLoadBalancerTCPListenerAttributeRequest::getOwnerAccount()const @@ -286,7 +297,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getOwnerAccount()const void SetLoadBalancerTCPListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string SetLoadBalancerTCPListenerAttributeRequest::getSynProxy()const @@ -297,7 +308,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getSynProxy()const void SetLoadBalancerTCPListenerAttributeRequest::setSynProxy(const std::string& synProxy) { synProxy_ = synProxy; - setParameter("SynProxy", synProxy); + setCoreParameter("SynProxy", synProxy); } long SetLoadBalancerTCPListenerAttributeRequest::getOwnerId()const @@ -308,7 +319,7 @@ long SetLoadBalancerTCPListenerAttributeRequest::getOwnerId()const void SetLoadBalancerTCPListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getTags()const @@ -319,7 +330,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getTags()const void SetLoadBalancerTCPListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string SetLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId()const @@ -330,7 +341,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId()const void SetLoadBalancerTCPListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveServerGroupId()const @@ -341,7 +352,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveServerGrou void SetLoadBalancerTCPListenerAttributeRequest::setMasterSlaveServerGroupId(const std::string& masterSlaveServerGroupId) { masterSlaveServerGroupId_ = masterSlaveServerGroupId; - setParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); + setCoreParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); } int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckInterval()const @@ -352,7 +363,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckInterval()const void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectPort()const @@ -363,7 +374,7 @@ int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectPort()const void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckHttpCode()const @@ -374,7 +385,7 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckHttpCode() void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) { healthCheckHttpCode_ = healthCheckHttpCode; - setParameter("HealthCheckHttpCode", healthCheckHttpCode); + setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode); } std::string SetLoadBalancerTCPListenerAttributeRequest::getVServerGroup()const @@ -385,6 +396,6 @@ std::string SetLoadBalancerTCPListenerAttributeRequest::getVServerGroup()const void SetLoadBalancerTCPListenerAttributeRequest::setVServerGroup(const std::string& vServerGroup) { vServerGroup_ = vServerGroup; - setParameter("VServerGroup", vServerGroup); + setCoreParameter("VServerGroup", vServerGroup); } diff --git a/slb/src/model/SetLoadBalancerTCPListenerAttributeResult.cc b/slb/src/model/SetLoadBalancerTCPListenerAttributeResult.cc index 1385e9bae..ecce4b5c8 100644 --- a/slb/src/model/SetLoadBalancerTCPListenerAttributeResult.cc +++ b/slb/src/model/SetLoadBalancerTCPListenerAttributeResult.cc @@ -35,10 +35,13 @@ SetLoadBalancerTCPListenerAttributeResult::~SetLoadBalancerTCPListenerAttributeR void SetLoadBalancerTCPListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc index 04d76c9f1..6370e0c5c 100644 --- a/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc @@ -33,7 +33,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getAccess_key_id()const void SetLoadBalancerUDPListenerAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectTimeout()const @@ -44,7 +44,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectTimeout()co void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { healthCheckConnectTimeout_ = healthCheckConnectTimeout; - setParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); + setCoreParameter("HealthCheckConnectTimeout", std::to_string(healthCheckConnectTimeout)); } long SetLoadBalancerUDPListenerAttributeRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SetLoadBalancerUDPListenerAttributeRequest::getResourceOwnerId()const void SetLoadBalancerUDPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getDescription()const @@ -66,7 +66,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getDescription()const void SetLoadBalancerUDPListenerAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } int SetLoadBalancerUDPListenerAttributeRequest::getUnhealthyThreshold()const @@ -77,7 +77,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getUnhealthyThreshold()const void SetLoadBalancerUDPListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int SetLoadBalancerUDPListenerAttributeRequest::getHealthyThreshold()const @@ -88,7 +88,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getHealthyThreshold()const void SetLoadBalancerUDPListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getAclStatus()const @@ -99,7 +99,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getAclStatus()const void SetLoadBalancerUDPListenerAttributeRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } std::string SetLoadBalancerUDPListenerAttributeRequest::getScheduler()const @@ -110,7 +110,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getScheduler()const void SetLoadBalancerUDPListenerAttributeRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string SetLoadBalancerUDPListenerAttributeRequest::getAclType()const @@ -121,7 +121,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getAclType()const void SetLoadBalancerUDPListenerAttributeRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveServerGroup()const @@ -132,7 +132,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveServerGrou void SetLoadBalancerUDPListenerAttributeRequest::setMasterSlaveServerGroup(const std::string& masterSlaveServerGroup) { masterSlaveServerGroup_ = masterSlaveServerGroup; - setParameter("MasterSlaveServerGroup", masterSlaveServerGroup); + setCoreParameter("MasterSlaveServerGroup", masterSlaveServerGroup); } int SetLoadBalancerUDPListenerAttributeRequest::getMaxConnection()const @@ -143,7 +143,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getMaxConnection()const void SetLoadBalancerUDPListenerAttributeRequest::setMaxConnection(int maxConnection) { maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); + setCoreParameter("MaxConnection", std::to_string(maxConnection)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getRegionId()const @@ -154,7 +154,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getRegionId()const void SetLoadBalancerUDPListenerAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int SetLoadBalancerUDPListenerAttributeRequest::getPersistenceTimeout()const @@ -165,7 +165,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getPersistenceTimeout()const void SetLoadBalancerUDPListenerAttributeRequest::setPersistenceTimeout(int persistenceTimeout) { persistenceTimeout_ = persistenceTimeout; - setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); + setCoreParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getVpcIds()const @@ -176,7 +176,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getVpcIds()const void SetLoadBalancerUDPListenerAttributeRequest::setVpcIds(const std::string& vpcIds) { vpcIds_ = vpcIds; - setParameter("VpcIds", vpcIds); + setCoreParameter("VpcIds", vpcIds); } std::string SetLoadBalancerUDPListenerAttributeRequest::getVServerGroupId()const @@ -187,7 +187,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getVServerGroupId()const void SetLoadBalancerUDPListenerAttributeRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string SetLoadBalancerUDPListenerAttributeRequest::getAclId()const @@ -198,7 +198,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getAclId()const void SetLoadBalancerUDPListenerAttributeRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } int SetLoadBalancerUDPListenerAttributeRequest::getListenerPort()const @@ -209,7 +209,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getListenerPort()const void SetLoadBalancerUDPListenerAttributeRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getResourceOwnerAccount()const @@ -220,7 +220,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getResourceOwnerAccount( void SetLoadBalancerUDPListenerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int SetLoadBalancerUDPListenerAttributeRequest::getBandwidth()const @@ -231,7 +231,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getBandwidth()const void SetLoadBalancerUDPListenerAttributeRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getOwnerAccount()const @@ -242,7 +242,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getOwnerAccount()const void SetLoadBalancerUDPListenerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetLoadBalancerUDPListenerAttributeRequest::getOwnerId()const @@ -253,7 +253,7 @@ long SetLoadBalancerUDPListenerAttributeRequest::getOwnerId()const void SetLoadBalancerUDPListenerAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getTags()const @@ -264,7 +264,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getTags()const void SetLoadBalancerUDPListenerAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string SetLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId()const @@ -275,7 +275,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId()const void SetLoadBalancerUDPListenerAttributeRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveServerGroupId()const @@ -286,7 +286,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveServerGrou void SetLoadBalancerUDPListenerAttributeRequest::setMasterSlaveServerGroupId(const std::string& masterSlaveServerGroupId) { masterSlaveServerGroupId_ = masterSlaveServerGroupId; - setParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); + setCoreParameter("MasterSlaveServerGroupId", masterSlaveServerGroupId); } std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckReq()const @@ -297,7 +297,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckReq()const void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckReq(const std::string& healthCheckReq) { healthCheckReq_ = healthCheckReq; - setParameter("HealthCheckReq", healthCheckReq); + setCoreParameter("HealthCheckReq", healthCheckReq); } int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckInterval()const @@ -308,7 +308,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckInterval()const void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckExp()const @@ -319,7 +319,7 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckExp()const void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckExp(const std::string& healthCheckExp) { healthCheckExp_ = healthCheckExp; - setParameter("HealthCheckExp", healthCheckExp); + setCoreParameter("HealthCheckExp", healthCheckExp); } int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectPort()const @@ -330,7 +330,7 @@ int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectPort()const void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string SetLoadBalancerUDPListenerAttributeRequest::getVServerGroup()const @@ -341,6 +341,6 @@ std::string SetLoadBalancerUDPListenerAttributeRequest::getVServerGroup()const void SetLoadBalancerUDPListenerAttributeRequest::setVServerGroup(const std::string& vServerGroup) { vServerGroup_ = vServerGroup; - setParameter("VServerGroup", vServerGroup); + setCoreParameter("VServerGroup", vServerGroup); } diff --git a/slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc b/slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc index d5920e3a0..44426e163 100644 --- a/slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc +++ b/slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc @@ -35,10 +35,13 @@ SetLoadBalancerUDPListenerAttributeResult::~SetLoadBalancerUDPListenerAttributeR void SetLoadBalancerUDPListenerAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetRuleRequest.cc b/slb/src/model/SetRuleRequest.cc index d7634104c..79c528ec1 100644 --- a/slb/src/model/SetRuleRequest.cc +++ b/slb/src/model/SetRuleRequest.cc @@ -33,7 +33,7 @@ std::string SetRuleRequest::getAccess_key_id()const void SetRuleRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetRuleRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetRuleRequest::getResourceOwnerId()const void SetRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int SetRuleRequest::getHealthCheckTimeout()const @@ -55,7 +55,7 @@ int SetRuleRequest::getHealthCheckTimeout()const void SetRuleRequest::setHealthCheckTimeout(int healthCheckTimeout) { healthCheckTimeout_ = healthCheckTimeout; - setParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); + setCoreParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); } std::string SetRuleRequest::getHealthCheckURI()const @@ -66,7 +66,7 @@ std::string SetRuleRequest::getHealthCheckURI()const void SetRuleRequest::setHealthCheckURI(const std::string& healthCheckURI) { healthCheckURI_ = healthCheckURI; - setParameter("HealthCheckURI", healthCheckURI); + setCoreParameter("HealthCheckURI", healthCheckURI); } std::string SetRuleRequest::getRuleName()const @@ -77,7 +77,7 @@ std::string SetRuleRequest::getRuleName()const void SetRuleRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; - setParameter("RuleName", ruleName); + setCoreParameter("RuleName", ruleName); } int SetRuleRequest::getUnhealthyThreshold()const @@ -88,7 +88,7 @@ int SetRuleRequest::getUnhealthyThreshold()const void SetRuleRequest::setUnhealthyThreshold(int unhealthyThreshold) { unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); + setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); } int SetRuleRequest::getHealthyThreshold()const @@ -99,7 +99,7 @@ int SetRuleRequest::getHealthyThreshold()const void SetRuleRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); + setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold)); } std::string SetRuleRequest::getScheduler()const @@ -110,7 +110,7 @@ std::string SetRuleRequest::getScheduler()const void SetRuleRequest::setScheduler(const std::string& scheduler) { scheduler_ = scheduler; - setParameter("Scheduler", scheduler); + setCoreParameter("Scheduler", scheduler); } std::string SetRuleRequest::getHealthCheck()const @@ -121,7 +121,7 @@ std::string SetRuleRequest::getHealthCheck()const void SetRuleRequest::setHealthCheck(const std::string& healthCheck) { healthCheck_ = healthCheck; - setParameter("HealthCheck", healthCheck); + setCoreParameter("HealthCheck", healthCheck); } std::string SetRuleRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string SetRuleRequest::getRegionId()const void SetRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetRuleRequest::getListenerSync()const @@ -143,7 +143,7 @@ std::string SetRuleRequest::getListenerSync()const void SetRuleRequest::setListenerSync(const std::string& listenerSync) { listenerSync_ = listenerSync; - setParameter("ListenerSync", listenerSync); + setCoreParameter("ListenerSync", listenerSync); } int SetRuleRequest::getCookieTimeout()const @@ -154,7 +154,7 @@ int SetRuleRequest::getCookieTimeout()const void SetRuleRequest::setCookieTimeout(int cookieTimeout) { cookieTimeout_ = cookieTimeout; - setParameter("CookieTimeout", std::to_string(cookieTimeout)); + setCoreParameter("CookieTimeout", std::to_string(cookieTimeout)); } std::string SetRuleRequest::getStickySessionType()const @@ -165,7 +165,7 @@ std::string SetRuleRequest::getStickySessionType()const void SetRuleRequest::setStickySessionType(const std::string& stickySessionType) { stickySessionType_ = stickySessionType; - setParameter("StickySessionType", stickySessionType); + setCoreParameter("StickySessionType", stickySessionType); } std::string SetRuleRequest::getVServerGroupId()const @@ -176,7 +176,7 @@ std::string SetRuleRequest::getVServerGroupId()const void SetRuleRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } std::string SetRuleRequest::getCookie()const @@ -187,7 +187,7 @@ std::string SetRuleRequest::getCookie()const void SetRuleRequest::setCookie(const std::string& cookie) { cookie_ = cookie; - setParameter("Cookie", cookie); + setCoreParameter("Cookie", cookie); } std::string SetRuleRequest::getResourceOwnerAccount()const @@ -198,7 +198,7 @@ std::string SetRuleRequest::getResourceOwnerAccount()const void SetRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetRuleRequest::getStickySession()const @@ -209,7 +209,7 @@ std::string SetRuleRequest::getStickySession()const void SetRuleRequest::setStickySession(const std::string& stickySession) { stickySession_ = stickySession; - setParameter("StickySession", stickySession); + setCoreParameter("StickySession", stickySession); } std::string SetRuleRequest::getHealthCheckDomain()const @@ -220,7 +220,7 @@ std::string SetRuleRequest::getHealthCheckDomain()const void SetRuleRequest::setHealthCheckDomain(const std::string& healthCheckDomain) { healthCheckDomain_ = healthCheckDomain; - setParameter("HealthCheckDomain", healthCheckDomain); + setCoreParameter("HealthCheckDomain", healthCheckDomain); } std::string SetRuleRequest::getOwnerAccount()const @@ -231,7 +231,7 @@ std::string SetRuleRequest::getOwnerAccount()const void SetRuleRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetRuleRequest::getOwnerId()const @@ -242,7 +242,7 @@ long SetRuleRequest::getOwnerId()const void SetRuleRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetRuleRequest::getTags()const @@ -253,7 +253,7 @@ std::string SetRuleRequest::getTags()const void SetRuleRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } int SetRuleRequest::getHealthCheckInterval()const @@ -264,7 +264,7 @@ int SetRuleRequest::getHealthCheckInterval()const void SetRuleRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; - setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); + setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } std::string SetRuleRequest::getRuleId()const @@ -275,7 +275,7 @@ std::string SetRuleRequest::getRuleId()const void SetRuleRequest::setRuleId(const std::string& ruleId) { ruleId_ = ruleId; - setParameter("RuleId", ruleId); + setCoreParameter("RuleId", ruleId); } int SetRuleRequest::getHealthCheckConnectPort()const @@ -286,7 +286,7 @@ int SetRuleRequest::getHealthCheckConnectPort()const void SetRuleRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { healthCheckConnectPort_ = healthCheckConnectPort; - setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); + setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); } std::string SetRuleRequest::getHealthCheckHttpCode()const @@ -297,6 +297,6 @@ std::string SetRuleRequest::getHealthCheckHttpCode()const void SetRuleRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) { healthCheckHttpCode_ = healthCheckHttpCode; - setParameter("HealthCheckHttpCode", healthCheckHttpCode); + setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode); } diff --git a/slb/src/model/SetRuleResult.cc b/slb/src/model/SetRuleResult.cc index 187bcef40..09ab331db 100644 --- a/slb/src/model/SetRuleResult.cc +++ b/slb/src/model/SetRuleResult.cc @@ -35,10 +35,13 @@ SetRuleResult::~SetRuleResult() void SetRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetServerCertificateNameRequest.cc b/slb/src/model/SetServerCertificateNameRequest.cc index 2d8629a62..ff9992151 100644 --- a/slb/src/model/SetServerCertificateNameRequest.cc +++ b/slb/src/model/SetServerCertificateNameRequest.cc @@ -33,7 +33,7 @@ std::string SetServerCertificateNameRequest::getAccess_key_id()const void SetServerCertificateNameRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long SetServerCertificateNameRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long SetServerCertificateNameRequest::getResourceOwnerId()const void SetServerCertificateNameRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetServerCertificateNameRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string SetServerCertificateNameRequest::getResourceOwnerAccount()const void SetServerCertificateNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetServerCertificateNameRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string SetServerCertificateNameRequest::getRegionId()const void SetServerCertificateNameRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetServerCertificateNameRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string SetServerCertificateNameRequest::getOwnerAccount()const void SetServerCertificateNameRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetServerCertificateNameRequest::getOwnerId()const @@ -88,7 +88,7 @@ long SetServerCertificateNameRequest::getOwnerId()const void SetServerCertificateNameRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetServerCertificateNameRequest::getServerCertificateId()const @@ -99,7 +99,7 @@ std::string SetServerCertificateNameRequest::getServerCertificateId()const void SetServerCertificateNameRequest::setServerCertificateId(const std::string& serverCertificateId) { serverCertificateId_ = serverCertificateId; - setParameter("ServerCertificateId", serverCertificateId); + setCoreParameter("ServerCertificateId", serverCertificateId); } std::string SetServerCertificateNameRequest::getServerCertificateName()const @@ -110,7 +110,7 @@ std::string SetServerCertificateNameRequest::getServerCertificateName()const void SetServerCertificateNameRequest::setServerCertificateName(const std::string& serverCertificateName) { serverCertificateName_ = serverCertificateName; - setParameter("ServerCertificateName", serverCertificateName); + setCoreParameter("ServerCertificateName", serverCertificateName); } std::string SetServerCertificateNameRequest::getTags()const @@ -121,6 +121,6 @@ std::string SetServerCertificateNameRequest::getTags()const void SetServerCertificateNameRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/SetServerCertificateNameResult.cc b/slb/src/model/SetServerCertificateNameResult.cc index 5564ff787..94898fac2 100644 --- a/slb/src/model/SetServerCertificateNameResult.cc +++ b/slb/src/model/SetServerCertificateNameResult.cc @@ -35,10 +35,13 @@ SetServerCertificateNameResult::~SetServerCertificateNameResult() void SetServerCertificateNameResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/SetVServerGroupAttributeRequest.cc b/slb/src/model/SetVServerGroupAttributeRequest.cc index 2e9831d21..e74e925b8 100644 --- a/slb/src/model/SetVServerGroupAttributeRequest.cc +++ b/slb/src/model/SetVServerGroupAttributeRequest.cc @@ -33,7 +33,7 @@ std::string SetVServerGroupAttributeRequest::getAccess_key_id()const void SetVServerGroupAttributeRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string SetVServerGroupAttributeRequest::getVServerGroupId()const @@ -44,7 +44,7 @@ std::string SetVServerGroupAttributeRequest::getVServerGroupId()const void SetVServerGroupAttributeRequest::setVServerGroupId(const std::string& vServerGroupId) { vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); + setCoreParameter("VServerGroupId", vServerGroupId); } long SetVServerGroupAttributeRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long SetVServerGroupAttributeRequest::getResourceOwnerId()const void SetVServerGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string SetVServerGroupAttributeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string SetVServerGroupAttributeRequest::getResourceOwnerAccount()const void SetVServerGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string SetVServerGroupAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string SetVServerGroupAttributeRequest::getRegionId()const void SetVServerGroupAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string SetVServerGroupAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string SetVServerGroupAttributeRequest::getOwnerAccount()const void SetVServerGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long SetVServerGroupAttributeRequest::getOwnerId()const @@ -99,7 +99,7 @@ long SetVServerGroupAttributeRequest::getOwnerId()const void SetVServerGroupAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string SetVServerGroupAttributeRequest::getBackendServers()const @@ -110,7 +110,7 @@ std::string SetVServerGroupAttributeRequest::getBackendServers()const void SetVServerGroupAttributeRequest::setBackendServers(const std::string& backendServers) { backendServers_ = backendServers; - setParameter("BackendServers", backendServers); + setCoreParameter("BackendServers", backendServers); } std::string SetVServerGroupAttributeRequest::getTags()const @@ -121,7 +121,7 @@ std::string SetVServerGroupAttributeRequest::getTags()const void SetVServerGroupAttributeRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string SetVServerGroupAttributeRequest::getVServerGroupName()const @@ -132,6 +132,6 @@ std::string SetVServerGroupAttributeRequest::getVServerGroupName()const void SetVServerGroupAttributeRequest::setVServerGroupName(const std::string& vServerGroupName) { vServerGroupName_ = vServerGroupName; - setParameter("VServerGroupName", vServerGroupName); + setCoreParameter("VServerGroupName", vServerGroupName); } diff --git a/slb/src/model/SetVServerGroupAttributeResult.cc b/slb/src/model/SetVServerGroupAttributeResult.cc index 0fdb56a53..2bca6ea21 100644 --- a/slb/src/model/SetVServerGroupAttributeResult.cc +++ b/slb/src/model/SetVServerGroupAttributeResult.cc @@ -35,10 +35,13 @@ SetVServerGroupAttributeResult::~SetVServerGroupAttributeResult() void SetVServerGroupAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBackendServers = value["BackendServers"]["BackendServer"]; for (auto value : allBackendServers) @@ -54,10 +57,10 @@ void SetVServerGroupAttributeResult::parse(const std::string &payload) backendServersObject.type = value["Type"].asString(); if(!value["ServerIp"].isNull()) backendServersObject.serverIp = value["ServerIp"].asString(); - if(!value["EniHost"].isNull()) - backendServersObject.eniHost = value["EniHost"].asString(); if(!value["VpcId"].isNull()) backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Description"].isNull()) + backendServersObject.description = value["Description"].asString(); backendServers_.push_back(backendServersObject); } if(!value["VServerGroupId"].isNull()) diff --git a/slb/src/model/StartLoadBalancerListenerRequest.cc b/slb/src/model/StartLoadBalancerListenerRequest.cc index 9671efdb1..408e32681 100644 --- a/slb/src/model/StartLoadBalancerListenerRequest.cc +++ b/slb/src/model/StartLoadBalancerListenerRequest.cc @@ -33,7 +33,7 @@ std::string StartLoadBalancerListenerRequest::getAccess_key_id()const void StartLoadBalancerListenerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long StartLoadBalancerListenerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long StartLoadBalancerListenerRequest::getResourceOwnerId()const void StartLoadBalancerListenerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int StartLoadBalancerListenerRequest::getListenerPort()const @@ -55,7 +55,7 @@ int StartLoadBalancerListenerRequest::getListenerPort()const void StartLoadBalancerListenerRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string StartLoadBalancerListenerRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string StartLoadBalancerListenerRequest::getLoadBalancerId()const void StartLoadBalancerListenerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string StartLoadBalancerListenerRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string StartLoadBalancerListenerRequest::getRegionId()const void StartLoadBalancerListenerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string StartLoadBalancerListenerRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string StartLoadBalancerListenerRequest::getResourceOwnerAccount()const void StartLoadBalancerListenerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string StartLoadBalancerListenerRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string StartLoadBalancerListenerRequest::getOwnerAccount()const void StartLoadBalancerListenerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long StartLoadBalancerListenerRequest::getOwnerId()const @@ -110,7 +110,18 @@ long StartLoadBalancerListenerRequest::getOwnerId()const void StartLoadBalancerListenerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StartLoadBalancerListenerRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void StartLoadBalancerListenerRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string StartLoadBalancerListenerRequest::getTags()const @@ -121,6 +132,6 @@ std::string StartLoadBalancerListenerRequest::getTags()const void StartLoadBalancerListenerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/StartLoadBalancerListenerResult.cc b/slb/src/model/StartLoadBalancerListenerResult.cc index b4ee825cd..808efcc24 100644 --- a/slb/src/model/StartLoadBalancerListenerResult.cc +++ b/slb/src/model/StartLoadBalancerListenerResult.cc @@ -35,10 +35,13 @@ StartLoadBalancerListenerResult::~StartLoadBalancerListenerResult() void StartLoadBalancerListenerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/StopLoadBalancerListenerRequest.cc b/slb/src/model/StopLoadBalancerListenerRequest.cc index 44fb4df87..f2b23da1c 100644 --- a/slb/src/model/StopLoadBalancerListenerRequest.cc +++ b/slb/src/model/StopLoadBalancerListenerRequest.cc @@ -33,7 +33,7 @@ std::string StopLoadBalancerListenerRequest::getAccess_key_id()const void StopLoadBalancerListenerRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long StopLoadBalancerListenerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long StopLoadBalancerListenerRequest::getResourceOwnerId()const void StopLoadBalancerListenerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int StopLoadBalancerListenerRequest::getListenerPort()const @@ -55,7 +55,7 @@ int StopLoadBalancerListenerRequest::getListenerPort()const void StopLoadBalancerListenerRequest::setListenerPort(int listenerPort) { listenerPort_ = listenerPort; - setParameter("ListenerPort", std::to_string(listenerPort)); + setCoreParameter("ListenerPort", std::to_string(listenerPort)); } std::string StopLoadBalancerListenerRequest::getLoadBalancerId()const @@ -66,7 +66,7 @@ std::string StopLoadBalancerListenerRequest::getLoadBalancerId()const void StopLoadBalancerListenerRequest::setLoadBalancerId(const std::string& loadBalancerId) { loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); + setCoreParameter("LoadBalancerId", loadBalancerId); } std::string StopLoadBalancerListenerRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string StopLoadBalancerListenerRequest::getRegionId()const void StopLoadBalancerListenerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string StopLoadBalancerListenerRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string StopLoadBalancerListenerRequest::getResourceOwnerAccount()const void StopLoadBalancerListenerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string StopLoadBalancerListenerRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string StopLoadBalancerListenerRequest::getOwnerAccount()const void StopLoadBalancerListenerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long StopLoadBalancerListenerRequest::getOwnerId()const @@ -110,7 +110,18 @@ long StopLoadBalancerListenerRequest::getOwnerId()const void StopLoadBalancerListenerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StopLoadBalancerListenerRequest::getListenerProtocol()const +{ + return listenerProtocol_; +} + +void StopLoadBalancerListenerRequest::setListenerProtocol(const std::string& listenerProtocol) +{ + listenerProtocol_ = listenerProtocol; + setCoreParameter("ListenerProtocol", listenerProtocol); } std::string StopLoadBalancerListenerRequest::getTags()const @@ -121,6 +132,6 @@ std::string StopLoadBalancerListenerRequest::getTags()const void StopLoadBalancerListenerRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } diff --git a/slb/src/model/StopLoadBalancerListenerResult.cc b/slb/src/model/StopLoadBalancerListenerResult.cc index e15a25037..7c7162308 100644 --- a/slb/src/model/StopLoadBalancerListenerResult.cc +++ b/slb/src/model/StopLoadBalancerListenerResult.cc @@ -35,10 +35,13 @@ StopLoadBalancerListenerResult::~StopLoadBalancerListenerResult() void StopLoadBalancerListenerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/slb/src/model/UploadCACertificateRequest.cc b/slb/src/model/UploadCACertificateRequest.cc index f49469467..a62d4261f 100644 --- a/slb/src/model/UploadCACertificateRequest.cc +++ b/slb/src/model/UploadCACertificateRequest.cc @@ -33,7 +33,7 @@ std::string UploadCACertificateRequest::getAccess_key_id()const void UploadCACertificateRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } std::string UploadCACertificateRequest::getResourceGroupId()const @@ -44,7 +44,7 @@ std::string UploadCACertificateRequest::getResourceGroupId()const void UploadCACertificateRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } long UploadCACertificateRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long UploadCACertificateRequest::getResourceOwnerId()const void UploadCACertificateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UploadCACertificateRequest::getCACertificate()const @@ -66,7 +66,7 @@ std::string UploadCACertificateRequest::getCACertificate()const void UploadCACertificateRequest::setCACertificate(const std::string& cACertificate) { cACertificate_ = cACertificate; - setParameter("CACertificate", cACertificate); + setCoreParameter("CACertificate", cACertificate); } std::string UploadCACertificateRequest::getCACertificateName()const @@ -77,7 +77,7 @@ std::string UploadCACertificateRequest::getCACertificateName()const void UploadCACertificateRequest::setCACertificateName(const std::string& cACertificateName) { cACertificateName_ = cACertificateName; - setParameter("CACertificateName", cACertificateName); + setCoreParameter("CACertificateName", cACertificateName); } std::string UploadCACertificateRequest::getResourceOwnerAccount()const @@ -88,7 +88,7 @@ std::string UploadCACertificateRequest::getResourceOwnerAccount()const void UploadCACertificateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UploadCACertificateRequest::getRegionId()const @@ -99,7 +99,7 @@ std::string UploadCACertificateRequest::getRegionId()const void UploadCACertificateRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UploadCACertificateRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string UploadCACertificateRequest::getOwnerAccount()const void UploadCACertificateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long UploadCACertificateRequest::getOwnerId()const @@ -121,6 +121,6 @@ long UploadCACertificateRequest::getOwnerId()const void UploadCACertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/slb/src/model/UploadCACertificateResult.cc b/slb/src/model/UploadCACertificateResult.cc index 77789f7e0..0473417ab 100644 --- a/slb/src/model/UploadCACertificateResult.cc +++ b/slb/src/model/UploadCACertificateResult.cc @@ -35,10 +35,13 @@ UploadCACertificateResult::~UploadCACertificateResult() void UploadCACertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CACertificateId"].isNull()) cACertificateId_ = value["CACertificateId"].asString(); diff --git a/slb/src/model/UploadServerCertificateRequest.cc b/slb/src/model/UploadServerCertificateRequest.cc index ab7b856c9..2508daee2 100644 --- a/slb/src/model/UploadServerCertificateRequest.cc +++ b/slb/src/model/UploadServerCertificateRequest.cc @@ -33,7 +33,7 @@ std::string UploadServerCertificateRequest::getAccess_key_id()const void UploadServerCertificateRequest::setAccess_key_id(const std::string& access_key_id) { access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); + setCoreParameter("Access_key_id", access_key_id); } long UploadServerCertificateRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UploadServerCertificateRequest::getResourceOwnerId()const void UploadServerCertificateRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UploadServerCertificateRequest::getServerCertificate()const @@ -55,7 +55,7 @@ std::string UploadServerCertificateRequest::getServerCertificate()const void UploadServerCertificateRequest::setServerCertificate(const std::string& serverCertificate) { serverCertificate_ = serverCertificate; - setParameter("ServerCertificate", serverCertificate); + setCoreParameter("ServerCertificate", serverCertificate); } std::string UploadServerCertificateRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string UploadServerCertificateRequest::getResourceOwnerAccount()const void UploadServerCertificateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UploadServerCertificateRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string UploadServerCertificateRequest::getOwnerAccount()const void UploadServerCertificateRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UploadServerCertificateRequest::getAliCloudCertificateName()const @@ -88,7 +88,7 @@ std::string UploadServerCertificateRequest::getAliCloudCertificateName()const void UploadServerCertificateRequest::setAliCloudCertificateName(const std::string& aliCloudCertificateName) { aliCloudCertificateName_ = aliCloudCertificateName; - setParameter("AliCloudCertificateName", aliCloudCertificateName); + setCoreParameter("AliCloudCertificateName", aliCloudCertificateName); } std::string UploadServerCertificateRequest::getAliCloudCertificateId()const @@ -99,7 +99,7 @@ std::string UploadServerCertificateRequest::getAliCloudCertificateId()const void UploadServerCertificateRequest::setAliCloudCertificateId(const std::string& aliCloudCertificateId) { aliCloudCertificateId_ = aliCloudCertificateId; - setParameter("AliCloudCertificateId", aliCloudCertificateId); + setCoreParameter("AliCloudCertificateId", aliCloudCertificateId); } long UploadServerCertificateRequest::getOwnerId()const @@ -110,7 +110,7 @@ long UploadServerCertificateRequest::getOwnerId()const void UploadServerCertificateRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UploadServerCertificateRequest::getTags()const @@ -121,7 +121,7 @@ std::string UploadServerCertificateRequest::getTags()const void UploadServerCertificateRequest::setTags(const std::string& tags) { tags_ = tags; - setParameter("Tags", tags); + setCoreParameter("Tags", tags); } std::string UploadServerCertificateRequest::getPrivateKey()const @@ -132,7 +132,7 @@ std::string UploadServerCertificateRequest::getPrivateKey()const void UploadServerCertificateRequest::setPrivateKey(const std::string& privateKey) { privateKey_ = privateKey; - setParameter("PrivateKey", privateKey); + setCoreParameter("PrivateKey", privateKey); } std::string UploadServerCertificateRequest::getResourceGroupId()const @@ -143,7 +143,7 @@ std::string UploadServerCertificateRequest::getResourceGroupId()const void UploadServerCertificateRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string UploadServerCertificateRequest::getRegionId()const @@ -154,7 +154,7 @@ std::string UploadServerCertificateRequest::getRegionId()const void UploadServerCertificateRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UploadServerCertificateRequest::getServerCertificateName()const @@ -165,6 +165,6 @@ std::string UploadServerCertificateRequest::getServerCertificateName()const void UploadServerCertificateRequest::setServerCertificateName(const std::string& serverCertificateName) { serverCertificateName_ = serverCertificateName; - setParameter("ServerCertificateName", serverCertificateName); + setCoreParameter("ServerCertificateName", serverCertificateName); } diff --git a/slb/src/model/UploadServerCertificateResult.cc b/slb/src/model/UploadServerCertificateResult.cc index 6fae8a75f..67f84585c 100644 --- a/slb/src/model/UploadServerCertificateResult.cc +++ b/slb/src/model/UploadServerCertificateResult.cc @@ -35,10 +35,13 @@ UploadServerCertificateResult::~UploadServerCertificateResult() void UploadServerCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSubjectAlternativeNames = value["SubjectAlternativeNames"]["SubjectAlternativeName"]; for (const auto &item : allSubjectAlternativeNames) diff --git a/smartag/CMakeLists.txt b/smartag/CMakeLists.txt index 01603aff3..d2f3c0ce2 100644 --- a/smartag/CMakeLists.txt +++ b/smartag/CMakeLists.txt @@ -1,82 +1,514 @@ -# -# Copyright 2009-2017 Alibaba Cloud All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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) - +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(smartag_public_header include/alibabacloud/smartag/SmartagClient.h - include/alibabacloud/smartag/SmartagExport.h ) - -set(smartag_public_header_model ) - + include/alibabacloud/smartag/SmartagExport.h ) + +set(smartag_public_header_model + include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h + include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h + include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/DeleteACLRuleRequest.h + include/alibabacloud/smartag/model/DeleteACLRuleResult.h + include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h + include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.h + include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h + include/alibabacloud/smartag/model/UnicomSignConfirmResult.h + include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h + include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h + include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h + include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnResult.h + include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h + include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h + include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h + include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.h + include/alibabacloud/smartag/model/CreateQosCarRequest.h + include/alibabacloud/smartag/model/CreateQosCarResult.h + include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h + include/alibabacloud/smartag/model/DescribeGrantRulesResult.h + include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h + include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h + include/alibabacloud/smartag/model/AssociateQosRequest.h + include/alibabacloud/smartag/model/AssociateQosResult.h + include/alibabacloud/smartag/model/DeleteFlowLogRequest.h + include/alibabacloud/smartag/model/DeleteFlowLogResult.h + include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h + include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h + include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h + include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h + include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h + include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthResult.h + include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h + include/alibabacloud/smartag/model/GrantSagInstanceToCcnResult.h + include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h + include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h + include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h + include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h + include/alibabacloud/smartag/model/ModifyFlowLogAttributeResult.h + include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h + include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h + include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h + include/alibabacloud/smartag/model/DescribeACLAttributeResult.h + include/alibabacloud/smartag/model/CreateQosRequest.h + include/alibabacloud/smartag/model/CreateQosResult.h + include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h + include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h + include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h + include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h + include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h + include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h + include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h + include/alibabacloud/smartag/model/DeleteQosPolicyResult.h + include/alibabacloud/smartag/model/DescribeQosesRequest.h + include/alibabacloud/smartag/model/DescribeQosesResult.h + include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h + include/alibabacloud/smartag/model/DeleteSnatEntryResult.h + include/alibabacloud/smartag/model/DeleteQosRequest.h + include/alibabacloud/smartag/model/DeleteQosResult.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h + include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h + include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h + include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h + include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h + include/alibabacloud/smartag/model/DescribeQosCarsRequest.h + include/alibabacloud/smartag/model/DescribeQosCarsResult.h + include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h + include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h + include/alibabacloud/smartag/model/BindVbrRequest.h + include/alibabacloud/smartag/model/BindVbrResult.h + include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h + include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h + include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h + include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h + include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h + include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserResult.h + include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h + include/alibabacloud/smartag/model/DeleteDnatEntryResult.h + include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h + include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h + include/alibabacloud/smartag/model/ModifyACLRequest.h + include/alibabacloud/smartag/model/ModifyACLResult.h + include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h + include/alibabacloud/smartag/model/DescribeFlowLogsResult.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h + include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h + include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h + include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h + include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h + include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h + include/alibabacloud/smartag/model/ModifyQosPolicyResult.h + include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h + include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h + include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h + include/alibabacloud/smartag/model/GrantInstanceToCbnResult.h + include/alibabacloud/smartag/model/AddSnatEntryRequest.h + include/alibabacloud/smartag/model/AddSnatEntryResult.h + include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h + include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h + include/alibabacloud/smartag/model/AddDnatEntryRequest.h + include/alibabacloud/smartag/model/AddDnatEntryResult.h + include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h + include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h + include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h + include/alibabacloud/smartag/model/DescribeSnatEntriesResult.h + include/alibabacloud/smartag/model/AddACLRuleRequest.h + include/alibabacloud/smartag/model/AddACLRuleResult.h + include/alibabacloud/smartag/model/AssociateFlowLogRequest.h + include/alibabacloud/smartag/model/AssociateFlowLogResult.h + include/alibabacloud/smartag/model/ModifyQosCarRequest.h + include/alibabacloud/smartag/model/ModifyQosCarResult.h + include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/DisassociateACLRequest.h + include/alibabacloud/smartag/model/DisassociateACLResult.h + include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h + include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h + include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h + include/alibabacloud/smartag/model/DeactiveFlowLogResult.h + include/alibabacloud/smartag/model/CreateFlowLogRequest.h + include/alibabacloud/smartag/model/CreateFlowLogResult.h + include/alibabacloud/smartag/model/ActiveFlowLogRequest.h + include/alibabacloud/smartag/model/ActiveFlowLogResult.h + include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h + include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h + include/alibabacloud/smartag/model/KickOutClientsRequest.h + include/alibabacloud/smartag/model/KickOutClientsResult.h + include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h + include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h + include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h + include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h + include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h + include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h + include/alibabacloud/smartag/model/DeleteACLRequest.h + include/alibabacloud/smartag/model/DeleteACLResult.h + include/alibabacloud/smartag/model/AssociateACLRequest.h + include/alibabacloud/smartag/model/AssociateACLResult.h + include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h + include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h + include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h + include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.h + include/alibabacloud/smartag/model/CreateQosPolicyRequest.h + include/alibabacloud/smartag/model/CreateQosPolicyResult.h + include/alibabacloud/smartag/model/ModifySerialNumberRequest.h + include/alibabacloud/smartag/model/ModifySerialNumberResult.h + include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h + include/alibabacloud/smartag/model/DescribeFlowLogSagsResult.h + include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h + include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h + include/alibabacloud/smartag/model/DescribeACLsRequest.h + include/alibabacloud/smartag/model/DescribeACLsResult.h + include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h + include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.h + include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h + include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsResult.h + include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h + include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h + include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h + include/alibabacloud/smartag/model/DisassociateFlowLogResult.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h + include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h + include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h + include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h + include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h + include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h + include/alibabacloud/smartag/model/CreateACLRequest.h + include/alibabacloud/smartag/model/CreateACLResult.h + include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/DescribeRegionsRequest.h + include/alibabacloud/smartag/model/DescribeRegionsResult.h + include/alibabacloud/smartag/model/ModifyACLRuleRequest.h + include/alibabacloud/smartag/model/ModifyACLRuleResult.h + include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h + include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h + include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h + include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h + include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h + include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h + include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h + include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h + include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h + include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.h + include/alibabacloud/smartag/model/DeleteQosCarRequest.h + include/alibabacloud/smartag/model/DeleteQosCarResult.h + include/alibabacloud/smartag/model/DisassociateQosRequest.h + include/alibabacloud/smartag/model/DisassociateQosResult.h + include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h + include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h + include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h + include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserResult.h + include/alibabacloud/smartag/model/ModifyQosRequest.h + include/alibabacloud/smartag/model/ModifyQosResult.h + include/alibabacloud/smartag/model/UnbindVbrRequest.h + include/alibabacloud/smartag/model/UnbindVbrResult.h + include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h + include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysResult.h ) + set(smartag_src - src/SmartagClient.cc ) - -add_library(smartag ${LIB_TYPE} - ${smartag_public_header} - ${smartag_public_header_model} - ${smartag_src}) - -set_target_properties(smartag - 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}smartag - ) - -if(${LIB_TYPE} STREQUAL "SHARED") - set_target_properties(smartag - PROPERTIES - DEFINE_SYMBOL ALIBABACLOUD_SMARTAG_LIBRARY) -endif() - -target_include_directories(smartag - PRIVATE include - ${CMAKE_SOURCE_DIR}/core/include - ) -target_link_libraries(smartag - core) - -if(CMAKE_HOST_WIN32) - ExternalProject_Get_Property(jsoncpp INSTALL_DIR) - set(jsoncpp_install_dir ${INSTALL_DIR}) - add_dependencies(smartag - jsoncpp) - target_include_directories(smartag - PRIVATE ${jsoncpp_install_dir}/include) - target_link_libraries(smartag - ${jsoncpp_install_dir}/lib/jsoncpp.lib) - set_target_properties(smartag - PROPERTIES - COMPILE_OPTIONS "/bigobj") -else() - target_include_directories(smartag - PRIVATE /usr/include/jsoncpp) - target_link_libraries(smartag - jsoncpp) -endif() - -install(FILES ${smartag_public_header} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag) -install(FILES ${smartag_public_header_model} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag/model) -install(TARGETS smartag - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + src/SmartagClient.cc + src/model/AddNetworkOptimizationSettingRequest.cc + src/model/AddNetworkOptimizationSettingResult.cc + src/model/ActivateSmartAccessGatewayRequest.cc + src/model/ActivateSmartAccessGatewayResult.cc + src/model/DeleteACLRuleRequest.cc + src/model/DeleteACLRuleResult.cc + src/model/CreateSmartAccessGatewayClientUserRequest.cc + src/model/CreateSmartAccessGatewayClientUserResult.cc + src/model/UnicomSignConfirmRequest.cc + src/model/UnicomSignConfirmResult.cc + src/model/CreateNetworkOptimizationRequest.cc + src/model/CreateNetworkOptimizationResult.cc + src/model/RevokeSagInstanceFromCcnRequest.cc + src/model/RevokeSagInstanceFromCcnResult.cc + src/model/ModifySagRemoteAccessRequest.cc + src/model/ModifySagRemoteAccessResult.cc + src/model/DeleteSmartAccessGatewayClientUserRequest.cc + src/model/DeleteSmartAccessGatewayClientUserResult.cc + src/model/CreateQosCarRequest.cc + src/model/CreateQosCarResult.cc + src/model/DescribeGrantRulesRequest.cc + src/model/DescribeGrantRulesResult.cc + src/model/UnbindSmartAccessGatewayRequest.cc + src/model/UnbindSmartAccessGatewayResult.cc + src/model/CreateSmartAccessGatewayRequest.cc + src/model/CreateSmartAccessGatewayResult.cc + src/model/ClearSagRouteableAddressRequest.cc + src/model/ClearSagRouteableAddressResult.cc + src/model/AssociateQosRequest.cc + src/model/AssociateQosResult.cc + src/model/DeleteFlowLogRequest.cc + src/model/DeleteFlowLogResult.cc + src/model/ModifyCloudConnectNetworkRequest.cc + src/model/ModifyCloudConnectNetworkResult.cc + src/model/DescribeSagOnlineClientStatisticsRequest.cc + src/model/DescribeSagOnlineClientStatisticsResult.cc + src/model/DescribeSmartAccessGatewayRoutesRequest.cc + src/model/DescribeSmartAccessGatewayRoutesResult.cc + src/model/DowngradeSmartAccessGatewayRequest.cc + src/model/DowngradeSmartAccessGatewayResult.cc + src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc + src/model/ModifySmartAccessGatewayUpBandwidthResult.cc + src/model/GrantSagInstanceToCcnRequest.cc + src/model/GrantSagInstanceToCcnResult.cc + src/model/ModifySmartAccessGatewayRequest.cc + src/model/ModifySmartAccessGatewayResult.cc + src/model/UpdateSmartAccessGatewayVersionRequest.cc + src/model/UpdateSmartAccessGatewayVersionResult.cc + src/model/ModifyFlowLogAttributeRequest.cc + src/model/ModifyFlowLogAttributeResult.cc + src/model/DescribeQosPoliciesRequest.cc + src/model/DescribeQosPoliciesResult.cc + src/model/DescribeACLAttributeRequest.cc + src/model/DescribeACLAttributeResult.cc + src/model/CreateQosRequest.cc + src/model/CreateQosResult.cc + src/model/CreateSmartAccessGatewaySoftwareRequest.cc + src/model/CreateSmartAccessGatewaySoftwareResult.cc + src/model/DescribeSmartAccessGatewayAttributeRequest.cc + src/model/DescribeSmartAccessGatewayAttributeResult.cc + src/model/DescribeNetworkOptimizationSagsRequest.cc + src/model/DescribeNetworkOptimizationSagsResult.cc + src/model/CreateCloudConnectNetworkRequest.cc + src/model/CreateCloudConnectNetworkResult.cc + src/model/DeleteQosPolicyRequest.cc + src/model/DeleteQosPolicyResult.cc + src/model/DescribeQosesRequest.cc + src/model/DescribeQosesResult.cc + src/model/DeleteSnatEntryRequest.cc + src/model/DeleteSnatEntryResult.cc + src/model/DeleteQosRequest.cc + src/model/DeleteQosResult.cc + src/model/DescribeSmartAccessGatewaysRequest.cc + src/model/DescribeSmartAccessGatewaysResult.cc + src/model/DescribeGrantSagRulesRequest.cc + src/model/DescribeGrantSagRulesResult.cc + src/model/DescribeUserOnlineClientsRequest.cc + src/model/DescribeUserOnlineClientsResult.cc + src/model/DescribeQosCarsRequest.cc + src/model/DescribeQosCarsResult.cc + src/model/DescribeUserOnlineClientStatisticsRequest.cc + src/model/DescribeUserOnlineClientStatisticsResult.cc + src/model/BindVbrRequest.cc + src/model/BindVbrResult.cc + src/model/CreateDedicatedLineBackupRequest.cc + src/model/CreateDedicatedLineBackupResult.cc + src/model/DescribeUserFlowStatisticsRequest.cc + src/model/DescribeUserFlowStatisticsResult.cc + src/model/DisableSmartAccessGatewayUserRequest.cc + src/model/DisableSmartAccessGatewayUserResult.cc + src/model/DeleteDnatEntryRequest.cc + src/model/DeleteDnatEntryResult.cc + src/model/SetSagRouteableAddressRequest.cc + src/model/SetSagRouteableAddressResult.cc + src/model/ModifyACLRequest.cc + src/model/ModifyACLResult.cc + src/model/DescribeFlowLogsRequest.cc + src/model/DescribeFlowLogsResult.cc + src/model/DescribeSmartAccessGatewayClientUsersRequest.cc + src/model/DescribeSmartAccessGatewayClientUsersResult.cc + src/model/GetSmartAccessGatewayUseLimitRequest.cc + src/model/GetSmartAccessGatewayUseLimitResult.cc + src/model/UnicomOrderConfirmRequest.cc + src/model/UnicomOrderConfirmResult.cc + src/model/ModifyQosPolicyRequest.cc + src/model/ModifyQosPolicyResult.cc + src/model/DescribeNetworkOptimizationsRequest.cc + src/model/DescribeNetworkOptimizationsResult.cc + src/model/GrantInstanceToCbnRequest.cc + src/model/GrantInstanceToCbnResult.cc + src/model/AddSnatEntryRequest.cc + src/model/AddSnatEntryResult.cc + src/model/DeleteNetworkOptimizationRequest.cc + src/model/DeleteNetworkOptimizationResult.cc + src/model/AddDnatEntryRequest.cc + src/model/AddDnatEntryResult.cc + src/model/ModifyNetworkOptimizationRequest.cc + src/model/ModifyNetworkOptimizationResult.cc + src/model/DescribeSnatEntriesRequest.cc + src/model/DescribeSnatEntriesResult.cc + src/model/AddACLRuleRequest.cc + src/model/AddACLRuleResult.cc + src/model/AssociateFlowLogRequest.cc + src/model/AssociateFlowLogResult.cc + src/model/ModifyQosCarRequest.cc + src/model/ModifyQosCarResult.cc + src/model/BindSmartAccessGatewayRequest.cc + src/model/BindSmartAccessGatewayResult.cc + src/model/DisassociateACLRequest.cc + src/model/DisassociateACLResult.cc + src/model/DeleteSAGLinkLevelHaRequest.cc + src/model/DeleteSAGLinkLevelHaResult.cc + src/model/DeactiveFlowLogRequest.cc + src/model/DeactiveFlowLogResult.cc + src/model/CreateFlowLogRequest.cc + src/model/CreateFlowLogResult.cc + src/model/ActiveFlowLogRequest.cc + src/model/ActiveFlowLogResult.cc + src/model/SwitchSAGHaStateRequest.cc + src/model/SwitchSAGHaStateResult.cc + src/model/KickOutClientsRequest.cc + src/model/KickOutClientsResult.cc + src/model/DescribeSagRouteableAddressRequest.cc + src/model/DescribeSagRouteableAddressResult.cc + src/model/SwitchCloudBoxHaStateRequest.cc + src/model/SwitchCloudBoxHaStateResult.cc + src/model/AttachNetworkOptimizationSagsRequest.cc + src/model/AttachNetworkOptimizationSagsResult.cc + src/model/DeleteACLRequest.cc + src/model/DeleteACLResult.cc + src/model/AssociateACLRequest.cc + src/model/AssociateACLResult.cc + src/model/DescribeDnatEntriesRequest.cc + src/model/DescribeDnatEntriesResult.cc + src/model/DescribeSmartAccessGatewayVersionsRequest.cc + src/model/DescribeSmartAccessGatewayVersionsResult.cc + src/model/RevokeInstanceFromCbnRequest.cc + src/model/RevokeInstanceFromCbnResult.cc + src/model/CreateQosPolicyRequest.cc + src/model/CreateQosPolicyResult.cc + src/model/ModifySerialNumberRequest.cc + src/model/ModifySerialNumberResult.cc + src/model/DescribeFlowLogSagsRequest.cc + src/model/DescribeFlowLogSagsResult.cc + src/model/DeleteDedicatedLineBackupRequest.cc + src/model/DeleteDedicatedLineBackupResult.cc + src/model/DescribeACLsRequest.cc + src/model/DescribeACLsResult.cc + src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc + src/model/ResetSmartAccessGatewayClientUserPasswordResult.cc + src/model/UnlockSmartAccessGatewayRequest.cc + src/model/UnlockSmartAccessGatewayResult.cc + src/model/DescribeUnbindFlowLogSagsRequest.cc + src/model/DescribeUnbindFlowLogSagsResult.cc + src/model/CreateSAGLinkLevelHaRequest.cc + src/model/CreateSAGLinkLevelHaResult.cc + src/model/DisassociateFlowLogRequest.cc + src/model/DisassociateFlowLogResult.cc + src/model/DescribeSmartAccessGatewayHaRequest.cc + src/model/DescribeSmartAccessGatewayHaResult.cc + src/model/DescribeNetworkOptimizationSettingsRequest.cc + src/model/DescribeNetworkOptimizationSettingsResult.cc + src/model/DeleteCloudConnectNetworkRequest.cc + src/model/DeleteCloudConnectNetworkResult.cc + src/model/CreateACLRequest.cc + src/model/CreateACLResult.cc + src/model/RebootSmartAccessGatewayRequest.cc + src/model/RebootSmartAccessGatewayResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/ModifyACLRuleRequest.cc + src/model/ModifyACLRuleResult.cc + src/model/DescribeCloudConnectNetworksRequest.cc + src/model/DescribeCloudConnectNetworksResult.cc + src/model/ModifySmartAccessGatewayClientUserRequest.cc + src/model/ModifySmartAccessGatewayClientUserResult.cc + src/model/DeleteNetworkOptimizationSettingRequest.cc + src/model/DeleteNetworkOptimizationSettingResult.cc + src/model/GetCloudConnectNetworkUseLimitRequest.cc + src/model/GetCloudConnectNetworkUseLimitResult.cc + src/model/UpgradeSmartAccessGatewayRequest.cc + src/model/UpgradeSmartAccessGatewayResult.cc + src/model/DeleteQosCarRequest.cc + src/model/DeleteQosCarResult.cc + src/model/DisassociateQosRequest.cc + src/model/DisassociateQosResult.cc + src/model/DetachNetworkOptimizationSagsRequest.cc + src/model/DetachNetworkOptimizationSagsResult.cc + src/model/EnableSmartAccessGatewayUserRequest.cc + src/model/EnableSmartAccessGatewayUserResult.cc + src/model/ModifyQosRequest.cc + src/model/ModifyQosResult.cc + src/model/UnbindVbrRequest.cc + src/model/UnbindVbrResult.cc + src/model/DescribeBindableSmartAccessGatewaysRequest.cc + src/model/DescribeBindableSmartAccessGatewaysResult.cc ) + +add_library(smartag ${LIB_TYPE} + ${smartag_public_header} + ${smartag_public_header_model} + ${smartag_src}) + +set_target_properties(smartag + 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}smartag + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(smartag + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SMARTAG_LIBRARY) +endif() + +target_include_directories(smartag + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(smartag + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(smartag + jsoncpp) + target_include_directories(smartag + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(smartag + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(smartag + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(smartag + PRIVATE /usr/include/jsoncpp) + target_link_libraries(smartag + jsoncpp) +endif() + +install(FILES ${smartag_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag) +install(FILES ${smartag_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smartag/model) +install(TARGETS smartag + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/SmartagClient.h b/smartag/include/alibabacloud/smartag/SmartagClient.h index 3eb7c0f40..9bb6d785e 100644 --- a/smartag/include/alibabacloud/smartag/SmartagClient.h +++ b/smartag/include/alibabacloud/smartag/SmartagClient.h @@ -1,574 +1,910 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ -#define ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ - -#include -#include -#include -#include -#include "SmartagExport.h" -#include "model/GrantInstanceToCbnRequest.h" -#include "model/GrantInstanceToCbnResult.h" -#include "model/DeleteNetworkOptimizationRequest.h" -#include "model/DeleteNetworkOptimizationResult.h" +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ +#define ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ + +#include +#include +#include +#include +#include "SmartagExport.h" #include "model/AddNetworkOptimizationSettingRequest.h" #include "model/AddNetworkOptimizationSettingResult.h" #include "model/ActivateSmartAccessGatewayRequest.h" #include "model/ActivateSmartAccessGatewayResult.h" #include "model/DeleteACLRuleRequest.h" #include "model/DeleteACLRuleResult.h" -#include "model/ModifyNetworkOptimizationRequest.h" -#include "model/ModifyNetworkOptimizationResult.h" #include "model/CreateSmartAccessGatewayClientUserRequest.h" #include "model/CreateSmartAccessGatewayClientUserResult.h" #include "model/UnicomSignConfirmRequest.h" #include "model/UnicomSignConfirmResult.h" -#include "model/AddACLRuleRequest.h" -#include "model/AddACLRuleResult.h" -#include "model/DisassociateACLRequest.h" -#include "model/DisassociateACLResult.h" -#include "model/BindSmartAccessGatewayRequest.h" -#include "model/BindSmartAccessGatewayResult.h" #include "model/CreateNetworkOptimizationRequest.h" #include "model/CreateNetworkOptimizationResult.h" -#include "model/DeleteSAGLinkLevelHaRequest.h" -#include "model/DeleteSAGLinkLevelHaResult.h" +#include "model/RevokeSagInstanceFromCcnRequest.h" +#include "model/RevokeSagInstanceFromCcnResult.h" +#include "model/ModifySagRemoteAccessRequest.h" +#include "model/ModifySagRemoteAccessResult.h" #include "model/DeleteSmartAccessGatewayClientUserRequest.h" #include "model/DeleteSmartAccessGatewayClientUserResult.h" -#include "model/KickOutClientsRequest.h" -#include "model/KickOutClientsResult.h" -#include "model/SwitchSAGHaStateRequest.h" -#include "model/SwitchSAGHaStateResult.h" -#include "model/DescribeSagRouteableAddressRequest.h" -#include "model/DescribeSagRouteableAddressResult.h" +#include "model/CreateQosCarRequest.h" +#include "model/CreateQosCarResult.h" #include "model/DescribeGrantRulesRequest.h" #include "model/DescribeGrantRulesResult.h" -#include "model/SwitchCloudBoxHaStateRequest.h" -#include "model/SwitchCloudBoxHaStateResult.h" #include "model/UnbindSmartAccessGatewayRequest.h" #include "model/UnbindSmartAccessGatewayResult.h" #include "model/CreateSmartAccessGatewayRequest.h" #include "model/CreateSmartAccessGatewayResult.h" -#include "model/AttachNetworkOptimizationSagsRequest.h" -#include "model/AttachNetworkOptimizationSagsResult.h" #include "model/ClearSagRouteableAddressRequest.h" #include "model/ClearSagRouteableAddressResult.h" +#include "model/AssociateQosRequest.h" +#include "model/AssociateQosResult.h" +#include "model/DeleteFlowLogRequest.h" +#include "model/DeleteFlowLogResult.h" #include "model/ModifyCloudConnectNetworkRequest.h" #include "model/ModifyCloudConnectNetworkResult.h" -#include "model/DeleteACLRequest.h" -#include "model/DeleteACLResult.h" #include "model/DescribeSagOnlineClientStatisticsRequest.h" #include "model/DescribeSagOnlineClientStatisticsResult.h" +#include "model/DescribeSmartAccessGatewayRoutesRequest.h" +#include "model/DescribeSmartAccessGatewayRoutesResult.h" #include "model/DowngradeSmartAccessGatewayRequest.h" #include "model/DowngradeSmartAccessGatewayResult.h" -#include "model/AssociateACLRequest.h" -#include "model/AssociateACLResult.h" -#include "model/DescribeSmartAccessGatewayVersionsRequest.h" -#include "model/DescribeSmartAccessGatewayVersionsResult.h" -#include "model/UpdateSmartAccessGatewayVersionRequest.h" -#include "model/UpdateSmartAccessGatewayVersionResult.h" +#include "model/ModifySmartAccessGatewayUpBandwidthRequest.h" +#include "model/ModifySmartAccessGatewayUpBandwidthResult.h" +#include "model/GrantSagInstanceToCcnRequest.h" +#include "model/GrantSagInstanceToCcnResult.h" #include "model/ModifySmartAccessGatewayRequest.h" #include "model/ModifySmartAccessGatewayResult.h" -#include "model/RevokeInstanceFromCbnRequest.h" -#include "model/RevokeInstanceFromCbnResult.h" -#include "model/ModifySerialNumberRequest.h" -#include "model/ModifySerialNumberResult.h" +#include "model/UpdateSmartAccessGatewayVersionRequest.h" +#include "model/UpdateSmartAccessGatewayVersionResult.h" +#include "model/ModifyFlowLogAttributeRequest.h" +#include "model/ModifyFlowLogAttributeResult.h" +#include "model/DescribeQosPoliciesRequest.h" +#include "model/DescribeQosPoliciesResult.h" #include "model/DescribeACLAttributeRequest.h" #include "model/DescribeACLAttributeResult.h" -#include "model/DeleteDedicatedLineBackupRequest.h" -#include "model/DeleteDedicatedLineBackupResult.h" -#include "model/ResetSmartAccessGatewayClientUserPasswordRequest.h" -#include "model/ResetSmartAccessGatewayClientUserPasswordResult.h" -#include "model/DescribeACLsRequest.h" -#include "model/DescribeACLsResult.h" -#include "model/UnlockSmartAccessGatewayRequest.h" -#include "model/UnlockSmartAccessGatewayResult.h" -#include "model/CreateSAGLinkLevelHaRequest.h" -#include "model/CreateSAGLinkLevelHaResult.h" -#include "model/DescribeSmartAccessGatewayHaRequest.h" -#include "model/DescribeSmartAccessGatewayHaResult.h" +#include "model/CreateQosRequest.h" +#include "model/CreateQosResult.h" #include "model/CreateSmartAccessGatewaySoftwareRequest.h" #include "model/CreateSmartAccessGatewaySoftwareResult.h" -#include "model/DescribeNetworkOptimizationSettingsRequest.h" -#include "model/DescribeNetworkOptimizationSettingsResult.h" -#include "model/DeleteCloudConnectNetworkRequest.h" -#include "model/DeleteCloudConnectNetworkResult.h" -#include "model/CreateACLRequest.h" -#include "model/CreateACLResult.h" +#include "model/DescribeSmartAccessGatewayAttributeRequest.h" +#include "model/DescribeSmartAccessGatewayAttributeResult.h" #include "model/DescribeNetworkOptimizationSagsRequest.h" #include "model/DescribeNetworkOptimizationSagsResult.h" #include "model/CreateCloudConnectNetworkRequest.h" #include "model/CreateCloudConnectNetworkResult.h" -#include "model/RebootSmartAccessGatewayRequest.h" -#include "model/RebootSmartAccessGatewayResult.h" -#include "model/DescribeRegionsRequest.h" -#include "model/DescribeRegionsResult.h" -#include "model/DescribeCloudConnectNetworksRequest.h" -#include "model/DescribeCloudConnectNetworksResult.h" -#include "model/ModifyACLRuleRequest.h" -#include "model/ModifyACLRuleResult.h" -#include "model/ModifySmartAccessGatewayClientUserRequest.h" -#include "model/ModifySmartAccessGatewayClientUserResult.h" -#include "model/DeleteNetworkOptimizationSettingRequest.h" -#include "model/DeleteNetworkOptimizationSettingResult.h" -#include "model/GetCloudConnectNetworkUseLimitRequest.h" -#include "model/GetCloudConnectNetworkUseLimitResult.h" +#include "model/DeleteQosPolicyRequest.h" +#include "model/DeleteQosPolicyResult.h" +#include "model/DescribeQosesRequest.h" +#include "model/DescribeQosesResult.h" +#include "model/DeleteSnatEntryRequest.h" +#include "model/DeleteSnatEntryResult.h" +#include "model/DeleteQosRequest.h" +#include "model/DeleteQosResult.h" #include "model/DescribeSmartAccessGatewaysRequest.h" #include "model/DescribeSmartAccessGatewaysResult.h" -#include "model/UpgradeSmartAccessGatewayRequest.h" -#include "model/UpgradeSmartAccessGatewayResult.h" +#include "model/DescribeGrantSagRulesRequest.h" +#include "model/DescribeGrantSagRulesResult.h" #include "model/DescribeUserOnlineClientsRequest.h" #include "model/DescribeUserOnlineClientsResult.h" -#include "model/DetachNetworkOptimizationSagsRequest.h" -#include "model/DetachNetworkOptimizationSagsResult.h" +#include "model/DescribeQosCarsRequest.h" +#include "model/DescribeQosCarsResult.h" #include "model/DescribeUserOnlineClientStatisticsRequest.h" #include "model/DescribeUserOnlineClientStatisticsResult.h" +#include "model/BindVbrRequest.h" +#include "model/BindVbrResult.h" #include "model/CreateDedicatedLineBackupRequest.h" #include "model/CreateDedicatedLineBackupResult.h" #include "model/DescribeUserFlowStatisticsRequest.h" #include "model/DescribeUserFlowStatisticsResult.h" +#include "model/DisableSmartAccessGatewayUserRequest.h" +#include "model/DisableSmartAccessGatewayUserResult.h" +#include "model/DeleteDnatEntryRequest.h" +#include "model/DeleteDnatEntryResult.h" #include "model/SetSagRouteableAddressRequest.h" #include "model/SetSagRouteableAddressResult.h" #include "model/ModifyACLRequest.h" #include "model/ModifyACLResult.h" +#include "model/DescribeFlowLogsRequest.h" +#include "model/DescribeFlowLogsResult.h" #include "model/DescribeSmartAccessGatewayClientUsersRequest.h" #include "model/DescribeSmartAccessGatewayClientUsersResult.h" #include "model/GetSmartAccessGatewayUseLimitRequest.h" #include "model/GetSmartAccessGatewayUseLimitResult.h" #include "model/UnicomOrderConfirmRequest.h" #include "model/UnicomOrderConfirmResult.h" +#include "model/ModifyQosPolicyRequest.h" +#include "model/ModifyQosPolicyResult.h" #include "model/DescribeNetworkOptimizationsRequest.h" #include "model/DescribeNetworkOptimizationsResult.h" - - -namespace AlibabaCloud -{ - namespace Smartag - { - class ALIBABACLOUD_SMARTAG_EXPORT SmartagClient : public RpcServiceClient - { - public: - typedef Outcome GrantInstanceToCbnOutcome; - typedef std::future GrantInstanceToCbnOutcomeCallable; - typedef std::function&)> GrantInstanceToCbnAsyncHandler; - typedef Outcome DeleteNetworkOptimizationOutcome; - typedef std::future DeleteNetworkOptimizationOutcomeCallable; - typedef std::function&)> DeleteNetworkOptimizationAsyncHandler; - typedef Outcome AddNetworkOptimizationSettingOutcome; - typedef std::future AddNetworkOptimizationSettingOutcomeCallable; +#include "model/GrantInstanceToCbnRequest.h" +#include "model/GrantInstanceToCbnResult.h" +#include "model/AddSnatEntryRequest.h" +#include "model/AddSnatEntryResult.h" +#include "model/DeleteNetworkOptimizationRequest.h" +#include "model/DeleteNetworkOptimizationResult.h" +#include "model/AddDnatEntryRequest.h" +#include "model/AddDnatEntryResult.h" +#include "model/ModifyNetworkOptimizationRequest.h" +#include "model/ModifyNetworkOptimizationResult.h" +#include "model/DescribeSnatEntriesRequest.h" +#include "model/DescribeSnatEntriesResult.h" +#include "model/AddACLRuleRequest.h" +#include "model/AddACLRuleResult.h" +#include "model/AssociateFlowLogRequest.h" +#include "model/AssociateFlowLogResult.h" +#include "model/ModifyQosCarRequest.h" +#include "model/ModifyQosCarResult.h" +#include "model/BindSmartAccessGatewayRequest.h" +#include "model/BindSmartAccessGatewayResult.h" +#include "model/DisassociateACLRequest.h" +#include "model/DisassociateACLResult.h" +#include "model/DeleteSAGLinkLevelHaRequest.h" +#include "model/DeleteSAGLinkLevelHaResult.h" +#include "model/DeactiveFlowLogRequest.h" +#include "model/DeactiveFlowLogResult.h" +#include "model/CreateFlowLogRequest.h" +#include "model/CreateFlowLogResult.h" +#include "model/ActiveFlowLogRequest.h" +#include "model/ActiveFlowLogResult.h" +#include "model/SwitchSAGHaStateRequest.h" +#include "model/SwitchSAGHaStateResult.h" +#include "model/KickOutClientsRequest.h" +#include "model/KickOutClientsResult.h" +#include "model/DescribeSagRouteableAddressRequest.h" +#include "model/DescribeSagRouteableAddressResult.h" +#include "model/SwitchCloudBoxHaStateRequest.h" +#include "model/SwitchCloudBoxHaStateResult.h" +#include "model/AttachNetworkOptimizationSagsRequest.h" +#include "model/AttachNetworkOptimizationSagsResult.h" +#include "model/DeleteACLRequest.h" +#include "model/DeleteACLResult.h" +#include "model/AssociateACLRequest.h" +#include "model/AssociateACLResult.h" +#include "model/DescribeDnatEntriesRequest.h" +#include "model/DescribeDnatEntriesResult.h" +#include "model/DescribeSmartAccessGatewayVersionsRequest.h" +#include "model/DescribeSmartAccessGatewayVersionsResult.h" +#include "model/RevokeInstanceFromCbnRequest.h" +#include "model/RevokeInstanceFromCbnResult.h" +#include "model/CreateQosPolicyRequest.h" +#include "model/CreateQosPolicyResult.h" +#include "model/ModifySerialNumberRequest.h" +#include "model/ModifySerialNumberResult.h" +#include "model/DescribeFlowLogSagsRequest.h" +#include "model/DescribeFlowLogSagsResult.h" +#include "model/DeleteDedicatedLineBackupRequest.h" +#include "model/DeleteDedicatedLineBackupResult.h" +#include "model/DescribeACLsRequest.h" +#include "model/DescribeACLsResult.h" +#include "model/ResetSmartAccessGatewayClientUserPasswordRequest.h" +#include "model/ResetSmartAccessGatewayClientUserPasswordResult.h" +#include "model/UnlockSmartAccessGatewayRequest.h" +#include "model/UnlockSmartAccessGatewayResult.h" +#include "model/DescribeUnbindFlowLogSagsRequest.h" +#include "model/DescribeUnbindFlowLogSagsResult.h" +#include "model/CreateSAGLinkLevelHaRequest.h" +#include "model/CreateSAGLinkLevelHaResult.h" +#include "model/DisassociateFlowLogRequest.h" +#include "model/DisassociateFlowLogResult.h" +#include "model/DescribeSmartAccessGatewayHaRequest.h" +#include "model/DescribeSmartAccessGatewayHaResult.h" +#include "model/DescribeNetworkOptimizationSettingsRequest.h" +#include "model/DescribeNetworkOptimizationSettingsResult.h" +#include "model/DeleteCloudConnectNetworkRequest.h" +#include "model/DeleteCloudConnectNetworkResult.h" +#include "model/CreateACLRequest.h" +#include "model/CreateACLResult.h" +#include "model/RebootSmartAccessGatewayRequest.h" +#include "model/RebootSmartAccessGatewayResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/ModifyACLRuleRequest.h" +#include "model/ModifyACLRuleResult.h" +#include "model/DescribeCloudConnectNetworksRequest.h" +#include "model/DescribeCloudConnectNetworksResult.h" +#include "model/ModifySmartAccessGatewayClientUserRequest.h" +#include "model/ModifySmartAccessGatewayClientUserResult.h" +#include "model/DeleteNetworkOptimizationSettingRequest.h" +#include "model/DeleteNetworkOptimizationSettingResult.h" +#include "model/GetCloudConnectNetworkUseLimitRequest.h" +#include "model/GetCloudConnectNetworkUseLimitResult.h" +#include "model/UpgradeSmartAccessGatewayRequest.h" +#include "model/UpgradeSmartAccessGatewayResult.h" +#include "model/DeleteQosCarRequest.h" +#include "model/DeleteQosCarResult.h" +#include "model/DisassociateQosRequest.h" +#include "model/DisassociateQosResult.h" +#include "model/DetachNetworkOptimizationSagsRequest.h" +#include "model/DetachNetworkOptimizationSagsResult.h" +#include "model/EnableSmartAccessGatewayUserRequest.h" +#include "model/EnableSmartAccessGatewayUserResult.h" +#include "model/ModifyQosRequest.h" +#include "model/ModifyQosResult.h" +#include "model/UnbindVbrRequest.h" +#include "model/UnbindVbrResult.h" +#include "model/DescribeBindableSmartAccessGatewaysRequest.h" +#include "model/DescribeBindableSmartAccessGatewaysResult.h" + + +namespace AlibabaCloud +{ + namespace Smartag + { + class ALIBABACLOUD_SMARTAG_EXPORT SmartagClient : public RpcServiceClient + { + public: + typedef Outcome AddNetworkOptimizationSettingOutcome; + typedef std::future AddNetworkOptimizationSettingOutcomeCallable; typedef std::function&)> AddNetworkOptimizationSettingAsyncHandler; - typedef Outcome ActivateSmartAccessGatewayOutcome; - typedef std::future ActivateSmartAccessGatewayOutcomeCallable; + typedef Outcome ActivateSmartAccessGatewayOutcome; + typedef std::future ActivateSmartAccessGatewayOutcomeCallable; typedef std::function&)> ActivateSmartAccessGatewayAsyncHandler; - typedef Outcome DeleteACLRuleOutcome; - typedef std::future DeleteACLRuleOutcomeCallable; + typedef Outcome DeleteACLRuleOutcome; + typedef std::future DeleteACLRuleOutcomeCallable; typedef std::function&)> DeleteACLRuleAsyncHandler; - typedef Outcome ModifyNetworkOptimizationOutcome; - typedef std::future ModifyNetworkOptimizationOutcomeCallable; - typedef std::function&)> ModifyNetworkOptimizationAsyncHandler; - typedef Outcome CreateSmartAccessGatewayClientUserOutcome; - typedef std::future CreateSmartAccessGatewayClientUserOutcomeCallable; + typedef Outcome CreateSmartAccessGatewayClientUserOutcome; + typedef std::future CreateSmartAccessGatewayClientUserOutcomeCallable; typedef std::function&)> CreateSmartAccessGatewayClientUserAsyncHandler; - typedef Outcome UnicomSignConfirmOutcome; - typedef std::future UnicomSignConfirmOutcomeCallable; + typedef Outcome UnicomSignConfirmOutcome; + typedef std::future UnicomSignConfirmOutcomeCallable; typedef std::function&)> UnicomSignConfirmAsyncHandler; - typedef Outcome AddACLRuleOutcome; - typedef std::future AddACLRuleOutcomeCallable; - typedef std::function&)> AddACLRuleAsyncHandler; - typedef Outcome DisassociateACLOutcome; - typedef std::future DisassociateACLOutcomeCallable; - typedef std::function&)> DisassociateACLAsyncHandler; - typedef Outcome BindSmartAccessGatewayOutcome; - typedef std::future BindSmartAccessGatewayOutcomeCallable; - typedef std::function&)> BindSmartAccessGatewayAsyncHandler; - typedef Outcome CreateNetworkOptimizationOutcome; - typedef std::future CreateNetworkOptimizationOutcomeCallable; + typedef Outcome CreateNetworkOptimizationOutcome; + typedef std::future CreateNetworkOptimizationOutcomeCallable; typedef std::function&)> CreateNetworkOptimizationAsyncHandler; - typedef Outcome DeleteSAGLinkLevelHaOutcome; - typedef std::future DeleteSAGLinkLevelHaOutcomeCallable; - typedef std::function&)> DeleteSAGLinkLevelHaAsyncHandler; - typedef Outcome DeleteSmartAccessGatewayClientUserOutcome; - typedef std::future DeleteSmartAccessGatewayClientUserOutcomeCallable; + typedef Outcome RevokeSagInstanceFromCcnOutcome; + typedef std::future RevokeSagInstanceFromCcnOutcomeCallable; + typedef std::function&)> RevokeSagInstanceFromCcnAsyncHandler; + typedef Outcome ModifySagRemoteAccessOutcome; + typedef std::future ModifySagRemoteAccessOutcomeCallable; + typedef std::function&)> ModifySagRemoteAccessAsyncHandler; + typedef Outcome DeleteSmartAccessGatewayClientUserOutcome; + typedef std::future DeleteSmartAccessGatewayClientUserOutcomeCallable; typedef std::function&)> DeleteSmartAccessGatewayClientUserAsyncHandler; - typedef Outcome KickOutClientsOutcome; - typedef std::future KickOutClientsOutcomeCallable; - typedef std::function&)> KickOutClientsAsyncHandler; - typedef Outcome SwitchSAGHaStateOutcome; - typedef std::future SwitchSAGHaStateOutcomeCallable; - typedef std::function&)> SwitchSAGHaStateAsyncHandler; - typedef Outcome DescribeSagRouteableAddressOutcome; - typedef std::future DescribeSagRouteableAddressOutcomeCallable; - typedef std::function&)> DescribeSagRouteableAddressAsyncHandler; - typedef Outcome DescribeGrantRulesOutcome; - typedef std::future DescribeGrantRulesOutcomeCallable; + typedef Outcome CreateQosCarOutcome; + typedef std::future CreateQosCarOutcomeCallable; + typedef std::function&)> CreateQosCarAsyncHandler; + typedef Outcome DescribeGrantRulesOutcome; + typedef std::future DescribeGrantRulesOutcomeCallable; typedef std::function&)> DescribeGrantRulesAsyncHandler; - typedef Outcome SwitchCloudBoxHaStateOutcome; - typedef std::future SwitchCloudBoxHaStateOutcomeCallable; - typedef std::function&)> SwitchCloudBoxHaStateAsyncHandler; - typedef Outcome UnbindSmartAccessGatewayOutcome; - typedef std::future UnbindSmartAccessGatewayOutcomeCallable; + typedef Outcome UnbindSmartAccessGatewayOutcome; + typedef std::future UnbindSmartAccessGatewayOutcomeCallable; typedef std::function&)> UnbindSmartAccessGatewayAsyncHandler; - typedef Outcome CreateSmartAccessGatewayOutcome; - typedef std::future CreateSmartAccessGatewayOutcomeCallable; + typedef Outcome CreateSmartAccessGatewayOutcome; + typedef std::future CreateSmartAccessGatewayOutcomeCallable; typedef std::function&)> CreateSmartAccessGatewayAsyncHandler; - typedef Outcome AttachNetworkOptimizationSagsOutcome; - typedef std::future AttachNetworkOptimizationSagsOutcomeCallable; - typedef std::function&)> AttachNetworkOptimizationSagsAsyncHandler; - typedef Outcome ClearSagRouteableAddressOutcome; - typedef std::future ClearSagRouteableAddressOutcomeCallable; + typedef Outcome ClearSagRouteableAddressOutcome; + typedef std::future ClearSagRouteableAddressOutcomeCallable; typedef std::function&)> ClearSagRouteableAddressAsyncHandler; - typedef Outcome ModifyCloudConnectNetworkOutcome; - typedef std::future ModifyCloudConnectNetworkOutcomeCallable; + typedef Outcome AssociateQosOutcome; + typedef std::future AssociateQosOutcomeCallable; + typedef std::function&)> AssociateQosAsyncHandler; + typedef Outcome DeleteFlowLogOutcome; + typedef std::future DeleteFlowLogOutcomeCallable; + typedef std::function&)> DeleteFlowLogAsyncHandler; + typedef Outcome ModifyCloudConnectNetworkOutcome; + typedef std::future ModifyCloudConnectNetworkOutcomeCallable; typedef std::function&)> ModifyCloudConnectNetworkAsyncHandler; - typedef Outcome DeleteACLOutcome; - typedef std::future DeleteACLOutcomeCallable; - typedef std::function&)> DeleteACLAsyncHandler; - typedef Outcome DescribeSagOnlineClientStatisticsOutcome; - typedef std::future DescribeSagOnlineClientStatisticsOutcomeCallable; + typedef Outcome DescribeSagOnlineClientStatisticsOutcome; + typedef std::future DescribeSagOnlineClientStatisticsOutcomeCallable; typedef std::function&)> DescribeSagOnlineClientStatisticsAsyncHandler; - typedef Outcome DowngradeSmartAccessGatewayOutcome; - typedef std::future DowngradeSmartAccessGatewayOutcomeCallable; + typedef Outcome DescribeSmartAccessGatewayRoutesOutcome; + typedef std::future DescribeSmartAccessGatewayRoutesOutcomeCallable; + typedef std::function&)> DescribeSmartAccessGatewayRoutesAsyncHandler; + typedef Outcome DowngradeSmartAccessGatewayOutcome; + typedef std::future DowngradeSmartAccessGatewayOutcomeCallable; typedef std::function&)> DowngradeSmartAccessGatewayAsyncHandler; - typedef Outcome AssociateACLOutcome; - typedef std::future AssociateACLOutcomeCallable; - typedef std::function&)> AssociateACLAsyncHandler; - typedef Outcome DescribeSmartAccessGatewayVersionsOutcome; - typedef std::future DescribeSmartAccessGatewayVersionsOutcomeCallable; - typedef std::function&)> DescribeSmartAccessGatewayVersionsAsyncHandler; - typedef Outcome UpdateSmartAccessGatewayVersionOutcome; - typedef std::future UpdateSmartAccessGatewayVersionOutcomeCallable; - typedef std::function&)> UpdateSmartAccessGatewayVersionAsyncHandler; - typedef Outcome ModifySmartAccessGatewayOutcome; - typedef std::future ModifySmartAccessGatewayOutcomeCallable; + typedef Outcome ModifySmartAccessGatewayUpBandwidthOutcome; + typedef std::future ModifySmartAccessGatewayUpBandwidthOutcomeCallable; + typedef std::function&)> ModifySmartAccessGatewayUpBandwidthAsyncHandler; + typedef Outcome GrantSagInstanceToCcnOutcome; + typedef std::future GrantSagInstanceToCcnOutcomeCallable; + typedef std::function&)> GrantSagInstanceToCcnAsyncHandler; + typedef Outcome ModifySmartAccessGatewayOutcome; + typedef std::future ModifySmartAccessGatewayOutcomeCallable; typedef std::function&)> ModifySmartAccessGatewayAsyncHandler; - typedef Outcome RevokeInstanceFromCbnOutcome; - typedef std::future RevokeInstanceFromCbnOutcomeCallable; - typedef std::function&)> RevokeInstanceFromCbnAsyncHandler; - typedef Outcome ModifySerialNumberOutcome; - typedef std::future ModifySerialNumberOutcomeCallable; - typedef std::function&)> ModifySerialNumberAsyncHandler; - typedef Outcome DescribeACLAttributeOutcome; - typedef std::future DescribeACLAttributeOutcomeCallable; + typedef Outcome UpdateSmartAccessGatewayVersionOutcome; + typedef std::future UpdateSmartAccessGatewayVersionOutcomeCallable; + typedef std::function&)> UpdateSmartAccessGatewayVersionAsyncHandler; + typedef Outcome ModifyFlowLogAttributeOutcome; + typedef std::future ModifyFlowLogAttributeOutcomeCallable; + typedef std::function&)> ModifyFlowLogAttributeAsyncHandler; + typedef Outcome DescribeQosPoliciesOutcome; + typedef std::future DescribeQosPoliciesOutcomeCallable; + typedef std::function&)> DescribeQosPoliciesAsyncHandler; + typedef Outcome DescribeACLAttributeOutcome; + typedef std::future DescribeACLAttributeOutcomeCallable; typedef std::function&)> DescribeACLAttributeAsyncHandler; - typedef Outcome DeleteDedicatedLineBackupOutcome; - typedef std::future DeleteDedicatedLineBackupOutcomeCallable; - typedef std::function&)> DeleteDedicatedLineBackupAsyncHandler; - typedef Outcome ResetSmartAccessGatewayClientUserPasswordOutcome; - typedef std::future ResetSmartAccessGatewayClientUserPasswordOutcomeCallable; - typedef std::function&)> ResetSmartAccessGatewayClientUserPasswordAsyncHandler; - typedef Outcome DescribeACLsOutcome; - typedef std::future DescribeACLsOutcomeCallable; - typedef std::function&)> DescribeACLsAsyncHandler; - typedef Outcome UnlockSmartAccessGatewayOutcome; - typedef std::future UnlockSmartAccessGatewayOutcomeCallable; - typedef std::function&)> UnlockSmartAccessGatewayAsyncHandler; - typedef Outcome CreateSAGLinkLevelHaOutcome; - typedef std::future CreateSAGLinkLevelHaOutcomeCallable; - typedef std::function&)> CreateSAGLinkLevelHaAsyncHandler; - typedef Outcome DescribeSmartAccessGatewayHaOutcome; - typedef std::future DescribeSmartAccessGatewayHaOutcomeCallable; - typedef std::function&)> DescribeSmartAccessGatewayHaAsyncHandler; - typedef Outcome CreateSmartAccessGatewaySoftwareOutcome; - typedef std::future CreateSmartAccessGatewaySoftwareOutcomeCallable; + typedef Outcome CreateQosOutcome; + typedef std::future CreateQosOutcomeCallable; + typedef std::function&)> CreateQosAsyncHandler; + typedef Outcome CreateSmartAccessGatewaySoftwareOutcome; + typedef std::future CreateSmartAccessGatewaySoftwareOutcomeCallable; typedef std::function&)> CreateSmartAccessGatewaySoftwareAsyncHandler; - typedef Outcome DescribeNetworkOptimizationSettingsOutcome; - typedef std::future DescribeNetworkOptimizationSettingsOutcomeCallable; - typedef std::function&)> DescribeNetworkOptimizationSettingsAsyncHandler; - typedef Outcome DeleteCloudConnectNetworkOutcome; - typedef std::future DeleteCloudConnectNetworkOutcomeCallable; - typedef std::function&)> DeleteCloudConnectNetworkAsyncHandler; - typedef Outcome CreateACLOutcome; - typedef std::future CreateACLOutcomeCallable; - typedef std::function&)> CreateACLAsyncHandler; - typedef Outcome DescribeNetworkOptimizationSagsOutcome; - typedef std::future DescribeNetworkOptimizationSagsOutcomeCallable; + typedef Outcome DescribeSmartAccessGatewayAttributeOutcome; + typedef std::future DescribeSmartAccessGatewayAttributeOutcomeCallable; + typedef std::function&)> DescribeSmartAccessGatewayAttributeAsyncHandler; + typedef Outcome DescribeNetworkOptimizationSagsOutcome; + typedef std::future DescribeNetworkOptimizationSagsOutcomeCallable; typedef std::function&)> DescribeNetworkOptimizationSagsAsyncHandler; - typedef Outcome CreateCloudConnectNetworkOutcome; - typedef std::future CreateCloudConnectNetworkOutcomeCallable; + typedef Outcome CreateCloudConnectNetworkOutcome; + typedef std::future CreateCloudConnectNetworkOutcomeCallable; typedef std::function&)> CreateCloudConnectNetworkAsyncHandler; - typedef Outcome RebootSmartAccessGatewayOutcome; - typedef std::future RebootSmartAccessGatewayOutcomeCallable; - typedef std::function&)> RebootSmartAccessGatewayAsyncHandler; - typedef Outcome DescribeRegionsOutcome; - typedef std::future DescribeRegionsOutcomeCallable; - typedef std::function&)> DescribeRegionsAsyncHandler; - typedef Outcome DescribeCloudConnectNetworksOutcome; - typedef std::future DescribeCloudConnectNetworksOutcomeCallable; - typedef std::function&)> DescribeCloudConnectNetworksAsyncHandler; - typedef Outcome ModifyACLRuleOutcome; - typedef std::future ModifyACLRuleOutcomeCallable; - typedef std::function&)> ModifyACLRuleAsyncHandler; - typedef Outcome ModifySmartAccessGatewayClientUserOutcome; - typedef std::future ModifySmartAccessGatewayClientUserOutcomeCallable; - typedef std::function&)> ModifySmartAccessGatewayClientUserAsyncHandler; - typedef Outcome DeleteNetworkOptimizationSettingOutcome; - typedef std::future DeleteNetworkOptimizationSettingOutcomeCallable; - typedef std::function&)> DeleteNetworkOptimizationSettingAsyncHandler; - typedef Outcome GetCloudConnectNetworkUseLimitOutcome; - typedef std::future GetCloudConnectNetworkUseLimitOutcomeCallable; - typedef std::function&)> GetCloudConnectNetworkUseLimitAsyncHandler; - typedef Outcome DescribeSmartAccessGatewaysOutcome; - typedef std::future DescribeSmartAccessGatewaysOutcomeCallable; + typedef Outcome DeleteQosPolicyOutcome; + typedef std::future DeleteQosPolicyOutcomeCallable; + typedef std::function&)> DeleteQosPolicyAsyncHandler; + typedef Outcome DescribeQosesOutcome; + typedef std::future DescribeQosesOutcomeCallable; + typedef std::function&)> DescribeQosesAsyncHandler; + typedef Outcome DeleteSnatEntryOutcome; + typedef std::future DeleteSnatEntryOutcomeCallable; + typedef std::function&)> DeleteSnatEntryAsyncHandler; + typedef Outcome DeleteQosOutcome; + typedef std::future DeleteQosOutcomeCallable; + typedef std::function&)> DeleteQosAsyncHandler; + typedef Outcome DescribeSmartAccessGatewaysOutcome; + typedef std::future DescribeSmartAccessGatewaysOutcomeCallable; typedef std::function&)> DescribeSmartAccessGatewaysAsyncHandler; - typedef Outcome UpgradeSmartAccessGatewayOutcome; - typedef std::future UpgradeSmartAccessGatewayOutcomeCallable; - typedef std::function&)> UpgradeSmartAccessGatewayAsyncHandler; - typedef Outcome DescribeUserOnlineClientsOutcome; - typedef std::future DescribeUserOnlineClientsOutcomeCallable; + typedef Outcome DescribeGrantSagRulesOutcome; + typedef std::future DescribeGrantSagRulesOutcomeCallable; + typedef std::function&)> DescribeGrantSagRulesAsyncHandler; + typedef Outcome DescribeUserOnlineClientsOutcome; + typedef std::future DescribeUserOnlineClientsOutcomeCallable; typedef std::function&)> DescribeUserOnlineClientsAsyncHandler; - typedef Outcome DetachNetworkOptimizationSagsOutcome; - typedef std::future DetachNetworkOptimizationSagsOutcomeCallable; - typedef std::function&)> DetachNetworkOptimizationSagsAsyncHandler; - typedef Outcome DescribeUserOnlineClientStatisticsOutcome; - typedef std::future DescribeUserOnlineClientStatisticsOutcomeCallable; + typedef Outcome DescribeQosCarsOutcome; + typedef std::future DescribeQosCarsOutcomeCallable; + typedef std::function&)> DescribeQosCarsAsyncHandler; + typedef Outcome DescribeUserOnlineClientStatisticsOutcome; + typedef std::future DescribeUserOnlineClientStatisticsOutcomeCallable; typedef std::function&)> DescribeUserOnlineClientStatisticsAsyncHandler; - typedef Outcome CreateDedicatedLineBackupOutcome; - typedef std::future CreateDedicatedLineBackupOutcomeCallable; + typedef Outcome BindVbrOutcome; + typedef std::future BindVbrOutcomeCallable; + typedef std::function&)> BindVbrAsyncHandler; + typedef Outcome CreateDedicatedLineBackupOutcome; + typedef std::future CreateDedicatedLineBackupOutcomeCallable; typedef std::function&)> CreateDedicatedLineBackupAsyncHandler; - typedef Outcome DescribeUserFlowStatisticsOutcome; - typedef std::future DescribeUserFlowStatisticsOutcomeCallable; + typedef Outcome DescribeUserFlowStatisticsOutcome; + typedef std::future DescribeUserFlowStatisticsOutcomeCallable; typedef std::function&)> DescribeUserFlowStatisticsAsyncHandler; - typedef Outcome SetSagRouteableAddressOutcome; - typedef std::future SetSagRouteableAddressOutcomeCallable; + typedef Outcome DisableSmartAccessGatewayUserOutcome; + typedef std::future DisableSmartAccessGatewayUserOutcomeCallable; + typedef std::function&)> DisableSmartAccessGatewayUserAsyncHandler; + typedef Outcome DeleteDnatEntryOutcome; + typedef std::future DeleteDnatEntryOutcomeCallable; + typedef std::function&)> DeleteDnatEntryAsyncHandler; + typedef Outcome SetSagRouteableAddressOutcome; + typedef std::future SetSagRouteableAddressOutcomeCallable; typedef std::function&)> SetSagRouteableAddressAsyncHandler; - typedef Outcome ModifyACLOutcome; - typedef std::future ModifyACLOutcomeCallable; + typedef Outcome ModifyACLOutcome; + typedef std::future ModifyACLOutcomeCallable; typedef std::function&)> ModifyACLAsyncHandler; - typedef Outcome DescribeSmartAccessGatewayClientUsersOutcome; - typedef std::future DescribeSmartAccessGatewayClientUsersOutcomeCallable; + typedef Outcome DescribeFlowLogsOutcome; + typedef std::future DescribeFlowLogsOutcomeCallable; + typedef std::function&)> DescribeFlowLogsAsyncHandler; + typedef Outcome DescribeSmartAccessGatewayClientUsersOutcome; + typedef std::future DescribeSmartAccessGatewayClientUsersOutcomeCallable; typedef std::function&)> DescribeSmartAccessGatewayClientUsersAsyncHandler; - typedef Outcome GetSmartAccessGatewayUseLimitOutcome; - typedef std::future GetSmartAccessGatewayUseLimitOutcomeCallable; + typedef Outcome GetSmartAccessGatewayUseLimitOutcome; + typedef std::future GetSmartAccessGatewayUseLimitOutcomeCallable; typedef std::function&)> GetSmartAccessGatewayUseLimitAsyncHandler; - typedef Outcome UnicomOrderConfirmOutcome; - typedef std::future UnicomOrderConfirmOutcomeCallable; + typedef Outcome UnicomOrderConfirmOutcome; + typedef std::future UnicomOrderConfirmOutcomeCallable; typedef std::function&)> UnicomOrderConfirmAsyncHandler; - typedef Outcome DescribeNetworkOptimizationsOutcome; - typedef std::future DescribeNetworkOptimizationsOutcomeCallable; + typedef Outcome ModifyQosPolicyOutcome; + typedef std::future ModifyQosPolicyOutcomeCallable; + typedef std::function&)> ModifyQosPolicyAsyncHandler; + typedef Outcome DescribeNetworkOptimizationsOutcome; + typedef std::future DescribeNetworkOptimizationsOutcomeCallable; typedef std::function&)> DescribeNetworkOptimizationsAsyncHandler; - - SmartagClient(const Credentials &credentials, const ClientConfiguration &configuration); - SmartagClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); - SmartagClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); - ~SmartagClient(); - GrantInstanceToCbnOutcome grantInstanceToCbn(const Model::GrantInstanceToCbnRequest &request)const; - void grantInstanceToCbnAsync(const Model::GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GrantInstanceToCbnOutcomeCallable grantInstanceToCbnCallable(const Model::GrantInstanceToCbnRequest& request) const; - DeleteNetworkOptimizationOutcome deleteNetworkOptimization(const Model::DeleteNetworkOptimizationRequest &request)const; - void deleteNetworkOptimizationAsync(const Model::DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNetworkOptimizationOutcomeCallable deleteNetworkOptimizationCallable(const Model::DeleteNetworkOptimizationRequest& request) const; - AddNetworkOptimizationSettingOutcome addNetworkOptimizationSetting(const Model::AddNetworkOptimizationSettingRequest &request)const; - void addNetworkOptimizationSettingAsync(const Model::AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + typedef Outcome GrantInstanceToCbnOutcome; + typedef std::future GrantInstanceToCbnOutcomeCallable; + typedef std::function&)> GrantInstanceToCbnAsyncHandler; + typedef Outcome AddSnatEntryOutcome; + typedef std::future AddSnatEntryOutcomeCallable; + typedef std::function&)> AddSnatEntryAsyncHandler; + typedef Outcome DeleteNetworkOptimizationOutcome; + typedef std::future DeleteNetworkOptimizationOutcomeCallable; + typedef std::function&)> DeleteNetworkOptimizationAsyncHandler; + typedef Outcome AddDnatEntryOutcome; + typedef std::future AddDnatEntryOutcomeCallable; + typedef std::function&)> AddDnatEntryAsyncHandler; + typedef Outcome ModifyNetworkOptimizationOutcome; + typedef std::future ModifyNetworkOptimizationOutcomeCallable; + typedef std::function&)> ModifyNetworkOptimizationAsyncHandler; + typedef Outcome DescribeSnatEntriesOutcome; + typedef std::future DescribeSnatEntriesOutcomeCallable; + typedef std::function&)> DescribeSnatEntriesAsyncHandler; + typedef Outcome AddACLRuleOutcome; + typedef std::future AddACLRuleOutcomeCallable; + typedef std::function&)> AddACLRuleAsyncHandler; + typedef Outcome AssociateFlowLogOutcome; + typedef std::future AssociateFlowLogOutcomeCallable; + typedef std::function&)> AssociateFlowLogAsyncHandler; + typedef Outcome ModifyQosCarOutcome; + typedef std::future ModifyQosCarOutcomeCallable; + typedef std::function&)> ModifyQosCarAsyncHandler; + typedef Outcome BindSmartAccessGatewayOutcome; + typedef std::future BindSmartAccessGatewayOutcomeCallable; + typedef std::function&)> BindSmartAccessGatewayAsyncHandler; + typedef Outcome DisassociateACLOutcome; + typedef std::future DisassociateACLOutcomeCallable; + typedef std::function&)> DisassociateACLAsyncHandler; + typedef Outcome DeleteSAGLinkLevelHaOutcome; + typedef std::future DeleteSAGLinkLevelHaOutcomeCallable; + typedef std::function&)> DeleteSAGLinkLevelHaAsyncHandler; + typedef Outcome DeactiveFlowLogOutcome; + typedef std::future DeactiveFlowLogOutcomeCallable; + typedef std::function&)> DeactiveFlowLogAsyncHandler; + typedef Outcome CreateFlowLogOutcome; + typedef std::future CreateFlowLogOutcomeCallable; + typedef std::function&)> CreateFlowLogAsyncHandler; + typedef Outcome ActiveFlowLogOutcome; + typedef std::future ActiveFlowLogOutcomeCallable; + typedef std::function&)> ActiveFlowLogAsyncHandler; + typedef Outcome SwitchSAGHaStateOutcome; + typedef std::future SwitchSAGHaStateOutcomeCallable; + typedef std::function&)> SwitchSAGHaStateAsyncHandler; + typedef Outcome KickOutClientsOutcome; + typedef std::future KickOutClientsOutcomeCallable; + typedef std::function&)> KickOutClientsAsyncHandler; + typedef Outcome DescribeSagRouteableAddressOutcome; + typedef std::future DescribeSagRouteableAddressOutcomeCallable; + typedef std::function&)> DescribeSagRouteableAddressAsyncHandler; + typedef Outcome SwitchCloudBoxHaStateOutcome; + typedef std::future SwitchCloudBoxHaStateOutcomeCallable; + typedef std::function&)> SwitchCloudBoxHaStateAsyncHandler; + typedef Outcome AttachNetworkOptimizationSagsOutcome; + typedef std::future AttachNetworkOptimizationSagsOutcomeCallable; + typedef std::function&)> AttachNetworkOptimizationSagsAsyncHandler; + typedef Outcome DeleteACLOutcome; + typedef std::future DeleteACLOutcomeCallable; + typedef std::function&)> DeleteACLAsyncHandler; + typedef Outcome AssociateACLOutcome; + typedef std::future AssociateACLOutcomeCallable; + typedef std::function&)> AssociateACLAsyncHandler; + typedef Outcome DescribeDnatEntriesOutcome; + typedef std::future DescribeDnatEntriesOutcomeCallable; + typedef std::function&)> DescribeDnatEntriesAsyncHandler; + typedef Outcome DescribeSmartAccessGatewayVersionsOutcome; + typedef std::future DescribeSmartAccessGatewayVersionsOutcomeCallable; + typedef std::function&)> DescribeSmartAccessGatewayVersionsAsyncHandler; + typedef Outcome RevokeInstanceFromCbnOutcome; + typedef std::future RevokeInstanceFromCbnOutcomeCallable; + typedef std::function&)> RevokeInstanceFromCbnAsyncHandler; + typedef Outcome CreateQosPolicyOutcome; + typedef std::future CreateQosPolicyOutcomeCallable; + typedef std::function&)> CreateQosPolicyAsyncHandler; + typedef Outcome ModifySerialNumberOutcome; + typedef std::future ModifySerialNumberOutcomeCallable; + typedef std::function&)> ModifySerialNumberAsyncHandler; + typedef Outcome DescribeFlowLogSagsOutcome; + typedef std::future DescribeFlowLogSagsOutcomeCallable; + typedef std::function&)> DescribeFlowLogSagsAsyncHandler; + typedef Outcome DeleteDedicatedLineBackupOutcome; + typedef std::future DeleteDedicatedLineBackupOutcomeCallable; + typedef std::function&)> DeleteDedicatedLineBackupAsyncHandler; + typedef Outcome DescribeACLsOutcome; + typedef std::future DescribeACLsOutcomeCallable; + typedef std::function&)> DescribeACLsAsyncHandler; + typedef Outcome ResetSmartAccessGatewayClientUserPasswordOutcome; + typedef std::future ResetSmartAccessGatewayClientUserPasswordOutcomeCallable; + typedef std::function&)> ResetSmartAccessGatewayClientUserPasswordAsyncHandler; + typedef Outcome UnlockSmartAccessGatewayOutcome; + typedef std::future UnlockSmartAccessGatewayOutcomeCallable; + typedef std::function&)> UnlockSmartAccessGatewayAsyncHandler; + typedef Outcome DescribeUnbindFlowLogSagsOutcome; + typedef std::future DescribeUnbindFlowLogSagsOutcomeCallable; + typedef std::function&)> DescribeUnbindFlowLogSagsAsyncHandler; + typedef Outcome CreateSAGLinkLevelHaOutcome; + typedef std::future CreateSAGLinkLevelHaOutcomeCallable; + typedef std::function&)> CreateSAGLinkLevelHaAsyncHandler; + typedef Outcome DisassociateFlowLogOutcome; + typedef std::future DisassociateFlowLogOutcomeCallable; + typedef std::function&)> DisassociateFlowLogAsyncHandler; + typedef Outcome DescribeSmartAccessGatewayHaOutcome; + typedef std::future DescribeSmartAccessGatewayHaOutcomeCallable; + typedef std::function&)> DescribeSmartAccessGatewayHaAsyncHandler; + typedef Outcome DescribeNetworkOptimizationSettingsOutcome; + typedef std::future DescribeNetworkOptimizationSettingsOutcomeCallable; + typedef std::function&)> DescribeNetworkOptimizationSettingsAsyncHandler; + typedef Outcome DeleteCloudConnectNetworkOutcome; + typedef std::future DeleteCloudConnectNetworkOutcomeCallable; + typedef std::function&)> DeleteCloudConnectNetworkAsyncHandler; + typedef Outcome CreateACLOutcome; + typedef std::future CreateACLOutcomeCallable; + typedef std::function&)> CreateACLAsyncHandler; + typedef Outcome RebootSmartAccessGatewayOutcome; + typedef std::future RebootSmartAccessGatewayOutcomeCallable; + typedef std::function&)> RebootSmartAccessGatewayAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome ModifyACLRuleOutcome; + typedef std::future ModifyACLRuleOutcomeCallable; + typedef std::function&)> ModifyACLRuleAsyncHandler; + typedef Outcome DescribeCloudConnectNetworksOutcome; + typedef std::future DescribeCloudConnectNetworksOutcomeCallable; + typedef std::function&)> DescribeCloudConnectNetworksAsyncHandler; + typedef Outcome ModifySmartAccessGatewayClientUserOutcome; + typedef std::future ModifySmartAccessGatewayClientUserOutcomeCallable; + typedef std::function&)> ModifySmartAccessGatewayClientUserAsyncHandler; + typedef Outcome DeleteNetworkOptimizationSettingOutcome; + typedef std::future DeleteNetworkOptimizationSettingOutcomeCallable; + typedef std::function&)> DeleteNetworkOptimizationSettingAsyncHandler; + typedef Outcome GetCloudConnectNetworkUseLimitOutcome; + typedef std::future GetCloudConnectNetworkUseLimitOutcomeCallable; + typedef std::function&)> GetCloudConnectNetworkUseLimitAsyncHandler; + typedef Outcome UpgradeSmartAccessGatewayOutcome; + typedef std::future UpgradeSmartAccessGatewayOutcomeCallable; + typedef std::function&)> UpgradeSmartAccessGatewayAsyncHandler; + typedef Outcome DeleteQosCarOutcome; + typedef std::future DeleteQosCarOutcomeCallable; + typedef std::function&)> DeleteQosCarAsyncHandler; + typedef Outcome DisassociateQosOutcome; + typedef std::future DisassociateQosOutcomeCallable; + typedef std::function&)> DisassociateQosAsyncHandler; + typedef Outcome DetachNetworkOptimizationSagsOutcome; + typedef std::future DetachNetworkOptimizationSagsOutcomeCallable; + typedef std::function&)> DetachNetworkOptimizationSagsAsyncHandler; + typedef Outcome EnableSmartAccessGatewayUserOutcome; + typedef std::future EnableSmartAccessGatewayUserOutcomeCallable; + typedef std::function&)> EnableSmartAccessGatewayUserAsyncHandler; + typedef Outcome ModifyQosOutcome; + typedef std::future ModifyQosOutcomeCallable; + typedef std::function&)> ModifyQosAsyncHandler; + typedef Outcome UnbindVbrOutcome; + typedef std::future UnbindVbrOutcomeCallable; + typedef std::function&)> UnbindVbrAsyncHandler; + typedef Outcome DescribeBindableSmartAccessGatewaysOutcome; + typedef std::future DescribeBindableSmartAccessGatewaysOutcomeCallable; + typedef std::function&)> DescribeBindableSmartAccessGatewaysAsyncHandler; + + SmartagClient(const Credentials &credentials, const ClientConfiguration &configuration); + SmartagClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SmartagClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SmartagClient(); + AddNetworkOptimizationSettingOutcome addNetworkOptimizationSetting(const Model::AddNetworkOptimizationSettingRequest &request)const; + void addNetworkOptimizationSettingAsync(const Model::AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddNetworkOptimizationSettingOutcomeCallable addNetworkOptimizationSettingCallable(const Model::AddNetworkOptimizationSettingRequest& request) const; - ActivateSmartAccessGatewayOutcome activateSmartAccessGateway(const Model::ActivateSmartAccessGatewayRequest &request)const; - void activateSmartAccessGatewayAsync(const Model::ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivateSmartAccessGatewayOutcome activateSmartAccessGateway(const Model::ActivateSmartAccessGatewayRequest &request)const; + void activateSmartAccessGatewayAsync(const Model::ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ActivateSmartAccessGatewayOutcomeCallable activateSmartAccessGatewayCallable(const Model::ActivateSmartAccessGatewayRequest& request) const; - DeleteACLRuleOutcome deleteACLRule(const Model::DeleteACLRuleRequest &request)const; - void deleteACLRuleAsync(const Model::DeleteACLRuleRequest& request, const DeleteACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteACLRuleOutcome deleteACLRule(const Model::DeleteACLRuleRequest &request)const; + void deleteACLRuleAsync(const Model::DeleteACLRuleRequest& request, const DeleteACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteACLRuleOutcomeCallable deleteACLRuleCallable(const Model::DeleteACLRuleRequest& request) const; - ModifyNetworkOptimizationOutcome modifyNetworkOptimization(const Model::ModifyNetworkOptimizationRequest &request)const; - void modifyNetworkOptimizationAsync(const Model::ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyNetworkOptimizationOutcomeCallable modifyNetworkOptimizationCallable(const Model::ModifyNetworkOptimizationRequest& request) const; - CreateSmartAccessGatewayClientUserOutcome createSmartAccessGatewayClientUser(const Model::CreateSmartAccessGatewayClientUserRequest &request)const; - void createSmartAccessGatewayClientUserAsync(const Model::CreateSmartAccessGatewayClientUserRequest& request, const CreateSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSmartAccessGatewayClientUserOutcome createSmartAccessGatewayClientUser(const Model::CreateSmartAccessGatewayClientUserRequest &request)const; + void createSmartAccessGatewayClientUserAsync(const Model::CreateSmartAccessGatewayClientUserRequest& request, const CreateSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSmartAccessGatewayClientUserOutcomeCallable createSmartAccessGatewayClientUserCallable(const Model::CreateSmartAccessGatewayClientUserRequest& request) const; - UnicomSignConfirmOutcome unicomSignConfirm(const Model::UnicomSignConfirmRequest &request)const; - void unicomSignConfirmAsync(const Model::UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnicomSignConfirmOutcome unicomSignConfirm(const Model::UnicomSignConfirmRequest &request)const; + void unicomSignConfirmAsync(const Model::UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnicomSignConfirmOutcomeCallable unicomSignConfirmCallable(const Model::UnicomSignConfirmRequest& request) const; - AddACLRuleOutcome addACLRule(const Model::AddACLRuleRequest &request)const; - void addACLRuleAsync(const Model::AddACLRuleRequest& request, const AddACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddACLRuleOutcomeCallable addACLRuleCallable(const Model::AddACLRuleRequest& request) const; - DisassociateACLOutcome disassociateACL(const Model::DisassociateACLRequest &request)const; - void disassociateACLAsync(const Model::DisassociateACLRequest& request, const DisassociateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisassociateACLOutcomeCallable disassociateACLCallable(const Model::DisassociateACLRequest& request) const; - BindSmartAccessGatewayOutcome bindSmartAccessGateway(const Model::BindSmartAccessGatewayRequest &request)const; - void bindSmartAccessGatewayAsync(const Model::BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BindSmartAccessGatewayOutcomeCallable bindSmartAccessGatewayCallable(const Model::BindSmartAccessGatewayRequest& request) const; - CreateNetworkOptimizationOutcome createNetworkOptimization(const Model::CreateNetworkOptimizationRequest &request)const; - void createNetworkOptimizationAsync(const Model::CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkOptimizationOutcome createNetworkOptimization(const Model::CreateNetworkOptimizationRequest &request)const; + void createNetworkOptimizationAsync(const Model::CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNetworkOptimizationOutcomeCallable createNetworkOptimizationCallable(const Model::CreateNetworkOptimizationRequest& request) const; - DeleteSAGLinkLevelHaOutcome deleteSAGLinkLevelHa(const Model::DeleteSAGLinkLevelHaRequest &request)const; - void deleteSAGLinkLevelHaAsync(const Model::DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSAGLinkLevelHaOutcomeCallable deleteSAGLinkLevelHaCallable(const Model::DeleteSAGLinkLevelHaRequest& request) const; - DeleteSmartAccessGatewayClientUserOutcome deleteSmartAccessGatewayClientUser(const Model::DeleteSmartAccessGatewayClientUserRequest &request)const; - void deleteSmartAccessGatewayClientUserAsync(const Model::DeleteSmartAccessGatewayClientUserRequest& request, const DeleteSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeSagInstanceFromCcnOutcome revokeSagInstanceFromCcn(const Model::RevokeSagInstanceFromCcnRequest &request)const; + void revokeSagInstanceFromCcnAsync(const Model::RevokeSagInstanceFromCcnRequest& request, const RevokeSagInstanceFromCcnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeSagInstanceFromCcnOutcomeCallable revokeSagInstanceFromCcnCallable(const Model::RevokeSagInstanceFromCcnRequest& request) const; + ModifySagRemoteAccessOutcome modifySagRemoteAccess(const Model::ModifySagRemoteAccessRequest &request)const; + void modifySagRemoteAccessAsync(const Model::ModifySagRemoteAccessRequest& request, const ModifySagRemoteAccessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySagRemoteAccessOutcomeCallable modifySagRemoteAccessCallable(const Model::ModifySagRemoteAccessRequest& request) const; + DeleteSmartAccessGatewayClientUserOutcome deleteSmartAccessGatewayClientUser(const Model::DeleteSmartAccessGatewayClientUserRequest &request)const; + void deleteSmartAccessGatewayClientUserAsync(const Model::DeleteSmartAccessGatewayClientUserRequest& request, const DeleteSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSmartAccessGatewayClientUserOutcomeCallable deleteSmartAccessGatewayClientUserCallable(const Model::DeleteSmartAccessGatewayClientUserRequest& request) const; - KickOutClientsOutcome kickOutClients(const Model::KickOutClientsRequest &request)const; - void kickOutClientsAsync(const Model::KickOutClientsRequest& request, const KickOutClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - KickOutClientsOutcomeCallable kickOutClientsCallable(const Model::KickOutClientsRequest& request) const; - SwitchSAGHaStateOutcome switchSAGHaState(const Model::SwitchSAGHaStateRequest &request)const; - void switchSAGHaStateAsync(const Model::SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SwitchSAGHaStateOutcomeCallable switchSAGHaStateCallable(const Model::SwitchSAGHaStateRequest& request) const; - DescribeSagRouteableAddressOutcome describeSagRouteableAddress(const Model::DescribeSagRouteableAddressRequest &request)const; - void describeSagRouteableAddressAsync(const Model::DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSagRouteableAddressOutcomeCallable describeSagRouteableAddressCallable(const Model::DescribeSagRouteableAddressRequest& request) const; - DescribeGrantRulesOutcome describeGrantRules(const Model::DescribeGrantRulesRequest &request)const; - void describeGrantRulesAsync(const Model::DescribeGrantRulesRequest& request, const DescribeGrantRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateQosCarOutcome createQosCar(const Model::CreateQosCarRequest &request)const; + void createQosCarAsync(const Model::CreateQosCarRequest& request, const CreateQosCarAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateQosCarOutcomeCallable createQosCarCallable(const Model::CreateQosCarRequest& request) const; + DescribeGrantRulesOutcome describeGrantRules(const Model::DescribeGrantRulesRequest &request)const; + void describeGrantRulesAsync(const Model::DescribeGrantRulesRequest& request, const DescribeGrantRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGrantRulesOutcomeCallable describeGrantRulesCallable(const Model::DescribeGrantRulesRequest& request) const; - SwitchCloudBoxHaStateOutcome switchCloudBoxHaState(const Model::SwitchCloudBoxHaStateRequest &request)const; - void switchCloudBoxHaStateAsync(const Model::SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SwitchCloudBoxHaStateOutcomeCallable switchCloudBoxHaStateCallable(const Model::SwitchCloudBoxHaStateRequest& request) const; - UnbindSmartAccessGatewayOutcome unbindSmartAccessGateway(const Model::UnbindSmartAccessGatewayRequest &request)const; - void unbindSmartAccessGatewayAsync(const Model::UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindSmartAccessGatewayOutcome unbindSmartAccessGateway(const Model::UnbindSmartAccessGatewayRequest &request)const; + void unbindSmartAccessGatewayAsync(const Model::UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindSmartAccessGatewayOutcomeCallable unbindSmartAccessGatewayCallable(const Model::UnbindSmartAccessGatewayRequest& request) const; - CreateSmartAccessGatewayOutcome createSmartAccessGateway(const Model::CreateSmartAccessGatewayRequest &request)const; - void createSmartAccessGatewayAsync(const Model::CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSmartAccessGatewayOutcome createSmartAccessGateway(const Model::CreateSmartAccessGatewayRequest &request)const; + void createSmartAccessGatewayAsync(const Model::CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSmartAccessGatewayOutcomeCallable createSmartAccessGatewayCallable(const Model::CreateSmartAccessGatewayRequest& request) const; - AttachNetworkOptimizationSagsOutcome attachNetworkOptimizationSags(const Model::AttachNetworkOptimizationSagsRequest &request)const; - void attachNetworkOptimizationSagsAsync(const Model::AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AttachNetworkOptimizationSagsOutcomeCallable attachNetworkOptimizationSagsCallable(const Model::AttachNetworkOptimizationSagsRequest& request) const; - ClearSagRouteableAddressOutcome clearSagRouteableAddress(const Model::ClearSagRouteableAddressRequest &request)const; - void clearSagRouteableAddressAsync(const Model::ClearSagRouteableAddressRequest& request, const ClearSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ClearSagRouteableAddressOutcome clearSagRouteableAddress(const Model::ClearSagRouteableAddressRequest &request)const; + void clearSagRouteableAddressAsync(const Model::ClearSagRouteableAddressRequest& request, const ClearSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ClearSagRouteableAddressOutcomeCallable clearSagRouteableAddressCallable(const Model::ClearSagRouteableAddressRequest& request) const; - ModifyCloudConnectNetworkOutcome modifyCloudConnectNetwork(const Model::ModifyCloudConnectNetworkRequest &request)const; - void modifyCloudConnectNetworkAsync(const Model::ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateQosOutcome associateQos(const Model::AssociateQosRequest &request)const; + void associateQosAsync(const Model::AssociateQosRequest& request, const AssociateQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateQosOutcomeCallable associateQosCallable(const Model::AssociateQosRequest& request) const; + DeleteFlowLogOutcome deleteFlowLog(const Model::DeleteFlowLogRequest &request)const; + void deleteFlowLogAsync(const Model::DeleteFlowLogRequest& request, const DeleteFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowLogOutcomeCallable deleteFlowLogCallable(const Model::DeleteFlowLogRequest& request) const; + ModifyCloudConnectNetworkOutcome modifyCloudConnectNetwork(const Model::ModifyCloudConnectNetworkRequest &request)const; + void modifyCloudConnectNetworkAsync(const Model::ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCloudConnectNetworkOutcomeCallable modifyCloudConnectNetworkCallable(const Model::ModifyCloudConnectNetworkRequest& request) const; - DeleteACLOutcome deleteACL(const Model::DeleteACLRequest &request)const; - void deleteACLAsync(const Model::DeleteACLRequest& request, const DeleteACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteACLOutcomeCallable deleteACLCallable(const Model::DeleteACLRequest& request) const; - DescribeSagOnlineClientStatisticsOutcome describeSagOnlineClientStatistics(const Model::DescribeSagOnlineClientStatisticsRequest &request)const; - void describeSagOnlineClientStatisticsAsync(const Model::DescribeSagOnlineClientStatisticsRequest& request, const DescribeSagOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSagOnlineClientStatisticsOutcome describeSagOnlineClientStatistics(const Model::DescribeSagOnlineClientStatisticsRequest &request)const; + void describeSagOnlineClientStatisticsAsync(const Model::DescribeSagOnlineClientStatisticsRequest& request, const DescribeSagOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagOnlineClientStatisticsOutcomeCallable describeSagOnlineClientStatisticsCallable(const Model::DescribeSagOnlineClientStatisticsRequest& request) const; - DowngradeSmartAccessGatewayOutcome downgradeSmartAccessGateway(const Model::DowngradeSmartAccessGatewayRequest &request)const; - void downgradeSmartAccessGatewayAsync(const Model::DowngradeSmartAccessGatewayRequest& request, const DowngradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayRoutesOutcome describeSmartAccessGatewayRoutes(const Model::DescribeSmartAccessGatewayRoutesRequest &request)const; + void describeSmartAccessGatewayRoutesAsync(const Model::DescribeSmartAccessGatewayRoutesRequest& request, const DescribeSmartAccessGatewayRoutesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayRoutesOutcomeCallable describeSmartAccessGatewayRoutesCallable(const Model::DescribeSmartAccessGatewayRoutesRequest& request) const; + DowngradeSmartAccessGatewayOutcome downgradeSmartAccessGateway(const Model::DowngradeSmartAccessGatewayRequest &request)const; + void downgradeSmartAccessGatewayAsync(const Model::DowngradeSmartAccessGatewayRequest& request, const DowngradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DowngradeSmartAccessGatewayOutcomeCallable downgradeSmartAccessGatewayCallable(const Model::DowngradeSmartAccessGatewayRequest& request) const; - AssociateACLOutcome associateACL(const Model::AssociateACLRequest &request)const; - void associateACLAsync(const Model::AssociateACLRequest& request, const AssociateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AssociateACLOutcomeCallable associateACLCallable(const Model::AssociateACLRequest& request) const; - DescribeSmartAccessGatewayVersionsOutcome describeSmartAccessGatewayVersions(const Model::DescribeSmartAccessGatewayVersionsRequest &request)const; - void describeSmartAccessGatewayVersionsAsync(const Model::DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSmartAccessGatewayVersionsOutcomeCallable describeSmartAccessGatewayVersionsCallable(const Model::DescribeSmartAccessGatewayVersionsRequest& request) const; - UpdateSmartAccessGatewayVersionOutcome updateSmartAccessGatewayVersion(const Model::UpdateSmartAccessGatewayVersionRequest &request)const; - void updateSmartAccessGatewayVersionAsync(const Model::UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateSmartAccessGatewayVersionOutcomeCallable updateSmartAccessGatewayVersionCallable(const Model::UpdateSmartAccessGatewayVersionRequest& request) const; - ModifySmartAccessGatewayOutcome modifySmartAccessGateway(const Model::ModifySmartAccessGatewayRequest &request)const; - void modifySmartAccessGatewayAsync(const Model::ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySmartAccessGatewayUpBandwidthOutcome modifySmartAccessGatewayUpBandwidth(const Model::ModifySmartAccessGatewayUpBandwidthRequest &request)const; + void modifySmartAccessGatewayUpBandwidthAsync(const Model::ModifySmartAccessGatewayUpBandwidthRequest& request, const ModifySmartAccessGatewayUpBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySmartAccessGatewayUpBandwidthOutcomeCallable modifySmartAccessGatewayUpBandwidthCallable(const Model::ModifySmartAccessGatewayUpBandwidthRequest& request) const; + GrantSagInstanceToCcnOutcome grantSagInstanceToCcn(const Model::GrantSagInstanceToCcnRequest &request)const; + void grantSagInstanceToCcnAsync(const Model::GrantSagInstanceToCcnRequest& request, const GrantSagInstanceToCcnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantSagInstanceToCcnOutcomeCallable grantSagInstanceToCcnCallable(const Model::GrantSagInstanceToCcnRequest& request) const; + ModifySmartAccessGatewayOutcome modifySmartAccessGateway(const Model::ModifySmartAccessGatewayRequest &request)const; + void modifySmartAccessGatewayAsync(const Model::ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySmartAccessGatewayOutcomeCallable modifySmartAccessGatewayCallable(const Model::ModifySmartAccessGatewayRequest& request) const; - RevokeInstanceFromCbnOutcome revokeInstanceFromCbn(const Model::RevokeInstanceFromCbnRequest &request)const; - void revokeInstanceFromCbnAsync(const Model::RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RevokeInstanceFromCbnOutcomeCallable revokeInstanceFromCbnCallable(const Model::RevokeInstanceFromCbnRequest& request) const; - ModifySerialNumberOutcome modifySerialNumber(const Model::ModifySerialNumberRequest &request)const; - void modifySerialNumberAsync(const Model::ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySerialNumberOutcomeCallable modifySerialNumberCallable(const Model::ModifySerialNumberRequest& request) const; - DescribeACLAttributeOutcome describeACLAttribute(const Model::DescribeACLAttributeRequest &request)const; - void describeACLAttributeAsync(const Model::DescribeACLAttributeRequest& request, const DescribeACLAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSmartAccessGatewayVersionOutcome updateSmartAccessGatewayVersion(const Model::UpdateSmartAccessGatewayVersionRequest &request)const; + void updateSmartAccessGatewayVersionAsync(const Model::UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSmartAccessGatewayVersionOutcomeCallable updateSmartAccessGatewayVersionCallable(const Model::UpdateSmartAccessGatewayVersionRequest& request) const; + ModifyFlowLogAttributeOutcome modifyFlowLogAttribute(const Model::ModifyFlowLogAttributeRequest &request)const; + void modifyFlowLogAttributeAsync(const Model::ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowLogAttributeOutcomeCallable modifyFlowLogAttributeCallable(const Model::ModifyFlowLogAttributeRequest& request) const; + DescribeQosPoliciesOutcome describeQosPolicies(const Model::DescribeQosPoliciesRequest &request)const; + void describeQosPoliciesAsync(const Model::DescribeQosPoliciesRequest& request, const DescribeQosPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeQosPoliciesOutcomeCallable describeQosPoliciesCallable(const Model::DescribeQosPoliciesRequest& request) const; + DescribeACLAttributeOutcome describeACLAttribute(const Model::DescribeACLAttributeRequest &request)const; + void describeACLAttributeAsync(const Model::DescribeACLAttributeRequest& request, const DescribeACLAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeACLAttributeOutcomeCallable describeACLAttributeCallable(const Model::DescribeACLAttributeRequest& request) const; - DeleteDedicatedLineBackupOutcome deleteDedicatedLineBackup(const Model::DeleteDedicatedLineBackupRequest &request)const; - void deleteDedicatedLineBackupAsync(const Model::DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDedicatedLineBackupOutcomeCallable deleteDedicatedLineBackupCallable(const Model::DeleteDedicatedLineBackupRequest& request) const; - ResetSmartAccessGatewayClientUserPasswordOutcome resetSmartAccessGatewayClientUserPassword(const Model::ResetSmartAccessGatewayClientUserPasswordRequest &request)const; - void resetSmartAccessGatewayClientUserPasswordAsync(const Model::ResetSmartAccessGatewayClientUserPasswordRequest& request, const ResetSmartAccessGatewayClientUserPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResetSmartAccessGatewayClientUserPasswordOutcomeCallable resetSmartAccessGatewayClientUserPasswordCallable(const Model::ResetSmartAccessGatewayClientUserPasswordRequest& request) const; - DescribeACLsOutcome describeACLs(const Model::DescribeACLsRequest &request)const; - void describeACLsAsync(const Model::DescribeACLsRequest& request, const DescribeACLsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeACLsOutcomeCallable describeACLsCallable(const Model::DescribeACLsRequest& request) const; - UnlockSmartAccessGatewayOutcome unlockSmartAccessGateway(const Model::UnlockSmartAccessGatewayRequest &request)const; - void unlockSmartAccessGatewayAsync(const Model::UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnlockSmartAccessGatewayOutcomeCallable unlockSmartAccessGatewayCallable(const Model::UnlockSmartAccessGatewayRequest& request) const; - CreateSAGLinkLevelHaOutcome createSAGLinkLevelHa(const Model::CreateSAGLinkLevelHaRequest &request)const; - void createSAGLinkLevelHaAsync(const Model::CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateSAGLinkLevelHaOutcomeCallable createSAGLinkLevelHaCallable(const Model::CreateSAGLinkLevelHaRequest& request) const; - DescribeSmartAccessGatewayHaOutcome describeSmartAccessGatewayHa(const Model::DescribeSmartAccessGatewayHaRequest &request)const; - void describeSmartAccessGatewayHaAsync(const Model::DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSmartAccessGatewayHaOutcomeCallable describeSmartAccessGatewayHaCallable(const Model::DescribeSmartAccessGatewayHaRequest& request) const; - CreateSmartAccessGatewaySoftwareOutcome createSmartAccessGatewaySoftware(const Model::CreateSmartAccessGatewaySoftwareRequest &request)const; - void createSmartAccessGatewaySoftwareAsync(const Model::CreateSmartAccessGatewaySoftwareRequest& request, const CreateSmartAccessGatewaySoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateQosOutcome createQos(const Model::CreateQosRequest &request)const; + void createQosAsync(const Model::CreateQosRequest& request, const CreateQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateQosOutcomeCallable createQosCallable(const Model::CreateQosRequest& request) const; + CreateSmartAccessGatewaySoftwareOutcome createSmartAccessGatewaySoftware(const Model::CreateSmartAccessGatewaySoftwareRequest &request)const; + void createSmartAccessGatewaySoftwareAsync(const Model::CreateSmartAccessGatewaySoftwareRequest& request, const CreateSmartAccessGatewaySoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSmartAccessGatewaySoftwareOutcomeCallable createSmartAccessGatewaySoftwareCallable(const Model::CreateSmartAccessGatewaySoftwareRequest& request) const; - DescribeNetworkOptimizationSettingsOutcome describeNetworkOptimizationSettings(const Model::DescribeNetworkOptimizationSettingsRequest &request)const; - void describeNetworkOptimizationSettingsAsync(const Model::DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNetworkOptimizationSettingsOutcomeCallable describeNetworkOptimizationSettingsCallable(const Model::DescribeNetworkOptimizationSettingsRequest& request) const; - DeleteCloudConnectNetworkOutcome deleteCloudConnectNetwork(const Model::DeleteCloudConnectNetworkRequest &request)const; - void deleteCloudConnectNetworkAsync(const Model::DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCloudConnectNetworkOutcomeCallable deleteCloudConnectNetworkCallable(const Model::DeleteCloudConnectNetworkRequest& request) const; - CreateACLOutcome createACL(const Model::CreateACLRequest &request)const; - void createACLAsync(const Model::CreateACLRequest& request, const CreateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateACLOutcomeCallable createACLCallable(const Model::CreateACLRequest& request) const; - DescribeNetworkOptimizationSagsOutcome describeNetworkOptimizationSags(const Model::DescribeNetworkOptimizationSagsRequest &request)const; - void describeNetworkOptimizationSagsAsync(const Model::DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayAttributeOutcome describeSmartAccessGatewayAttribute(const Model::DescribeSmartAccessGatewayAttributeRequest &request)const; + void describeSmartAccessGatewayAttributeAsync(const Model::DescribeSmartAccessGatewayAttributeRequest& request, const DescribeSmartAccessGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayAttributeOutcomeCallable describeSmartAccessGatewayAttributeCallable(const Model::DescribeSmartAccessGatewayAttributeRequest& request) const; + DescribeNetworkOptimizationSagsOutcome describeNetworkOptimizationSags(const Model::DescribeNetworkOptimizationSagsRequest &request)const; + void describeNetworkOptimizationSagsAsync(const Model::DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNetworkOptimizationSagsOutcomeCallable describeNetworkOptimizationSagsCallable(const Model::DescribeNetworkOptimizationSagsRequest& request) const; - CreateCloudConnectNetworkOutcome createCloudConnectNetwork(const Model::CreateCloudConnectNetworkRequest &request)const; - void createCloudConnectNetworkAsync(const Model::CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCloudConnectNetworkOutcome createCloudConnectNetwork(const Model::CreateCloudConnectNetworkRequest &request)const; + void createCloudConnectNetworkAsync(const Model::CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCloudConnectNetworkOutcomeCallable createCloudConnectNetworkCallable(const Model::CreateCloudConnectNetworkRequest& request) const; - RebootSmartAccessGatewayOutcome rebootSmartAccessGateway(const Model::RebootSmartAccessGatewayRequest &request)const; - void rebootSmartAccessGatewayAsync(const Model::RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RebootSmartAccessGatewayOutcomeCallable rebootSmartAccessGatewayCallable(const Model::RebootSmartAccessGatewayRequest& request) const; - DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; - void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; - DescribeCloudConnectNetworksOutcome describeCloudConnectNetworks(const Model::DescribeCloudConnectNetworksRequest &request)const; - void describeCloudConnectNetworksAsync(const Model::DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCloudConnectNetworksOutcomeCallable describeCloudConnectNetworksCallable(const Model::DescribeCloudConnectNetworksRequest& request) const; - ModifyACLRuleOutcome modifyACLRule(const Model::ModifyACLRuleRequest &request)const; - void modifyACLRuleAsync(const Model::ModifyACLRuleRequest& request, const ModifyACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyACLRuleOutcomeCallable modifyACLRuleCallable(const Model::ModifyACLRuleRequest& request) const; - ModifySmartAccessGatewayClientUserOutcome modifySmartAccessGatewayClientUser(const Model::ModifySmartAccessGatewayClientUserRequest &request)const; - void modifySmartAccessGatewayClientUserAsync(const Model::ModifySmartAccessGatewayClientUserRequest& request, const ModifySmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySmartAccessGatewayClientUserOutcomeCallable modifySmartAccessGatewayClientUserCallable(const Model::ModifySmartAccessGatewayClientUserRequest& request) const; - DeleteNetworkOptimizationSettingOutcome deleteNetworkOptimizationSetting(const Model::DeleteNetworkOptimizationSettingRequest &request)const; - void deleteNetworkOptimizationSettingAsync(const Model::DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNetworkOptimizationSettingOutcomeCallable deleteNetworkOptimizationSettingCallable(const Model::DeleteNetworkOptimizationSettingRequest& request) const; - GetCloudConnectNetworkUseLimitOutcome getCloudConnectNetworkUseLimit(const Model::GetCloudConnectNetworkUseLimitRequest &request)const; - void getCloudConnectNetworkUseLimitAsync(const Model::GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCloudConnectNetworkUseLimitOutcomeCallable getCloudConnectNetworkUseLimitCallable(const Model::GetCloudConnectNetworkUseLimitRequest& request) const; - DescribeSmartAccessGatewaysOutcome describeSmartAccessGateways(const Model::DescribeSmartAccessGatewaysRequest &request)const; - void describeSmartAccessGatewaysAsync(const Model::DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteQosPolicyOutcome deleteQosPolicy(const Model::DeleteQosPolicyRequest &request)const; + void deleteQosPolicyAsync(const Model::DeleteQosPolicyRequest& request, const DeleteQosPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteQosPolicyOutcomeCallable deleteQosPolicyCallable(const Model::DeleteQosPolicyRequest& request) const; + DescribeQosesOutcome describeQoses(const Model::DescribeQosesRequest &request)const; + void describeQosesAsync(const Model::DescribeQosesRequest& request, const DescribeQosesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeQosesOutcomeCallable describeQosesCallable(const Model::DescribeQosesRequest& request) const; + DeleteSnatEntryOutcome deleteSnatEntry(const Model::DeleteSnatEntryRequest &request)const; + void deleteSnatEntryAsync(const Model::DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSnatEntryOutcomeCallable deleteSnatEntryCallable(const Model::DeleteSnatEntryRequest& request) const; + DeleteQosOutcome deleteQos(const Model::DeleteQosRequest &request)const; + void deleteQosAsync(const Model::DeleteQosRequest& request, const DeleteQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteQosOutcomeCallable deleteQosCallable(const Model::DeleteQosRequest& request) const; + DescribeSmartAccessGatewaysOutcome describeSmartAccessGateways(const Model::DescribeSmartAccessGatewaysRequest &request)const; + void describeSmartAccessGatewaysAsync(const Model::DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSmartAccessGatewaysOutcomeCallable describeSmartAccessGatewaysCallable(const Model::DescribeSmartAccessGatewaysRequest& request) const; - UpgradeSmartAccessGatewayOutcome upgradeSmartAccessGateway(const Model::UpgradeSmartAccessGatewayRequest &request)const; - void upgradeSmartAccessGatewayAsync(const Model::UpgradeSmartAccessGatewayRequest& request, const UpgradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpgradeSmartAccessGatewayOutcomeCallable upgradeSmartAccessGatewayCallable(const Model::UpgradeSmartAccessGatewayRequest& request) const; - DescribeUserOnlineClientsOutcome describeUserOnlineClients(const Model::DescribeUserOnlineClientsRequest &request)const; - void describeUserOnlineClientsAsync(const Model::DescribeUserOnlineClientsRequest& request, const DescribeUserOnlineClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrantSagRulesOutcome describeGrantSagRules(const Model::DescribeGrantSagRulesRequest &request)const; + void describeGrantSagRulesAsync(const Model::DescribeGrantSagRulesRequest& request, const DescribeGrantSagRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrantSagRulesOutcomeCallable describeGrantSagRulesCallable(const Model::DescribeGrantSagRulesRequest& request) const; + DescribeUserOnlineClientsOutcome describeUserOnlineClients(const Model::DescribeUserOnlineClientsRequest &request)const; + void describeUserOnlineClientsAsync(const Model::DescribeUserOnlineClientsRequest& request, const DescribeUserOnlineClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserOnlineClientsOutcomeCallable describeUserOnlineClientsCallable(const Model::DescribeUserOnlineClientsRequest& request) const; - DetachNetworkOptimizationSagsOutcome detachNetworkOptimizationSags(const Model::DetachNetworkOptimizationSagsRequest &request)const; - void detachNetworkOptimizationSagsAsync(const Model::DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetachNetworkOptimizationSagsOutcomeCallable detachNetworkOptimizationSagsCallable(const Model::DetachNetworkOptimizationSagsRequest& request) const; - DescribeUserOnlineClientStatisticsOutcome describeUserOnlineClientStatistics(const Model::DescribeUserOnlineClientStatisticsRequest &request)const; - void describeUserOnlineClientStatisticsAsync(const Model::DescribeUserOnlineClientStatisticsRequest& request, const DescribeUserOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeQosCarsOutcome describeQosCars(const Model::DescribeQosCarsRequest &request)const; + void describeQosCarsAsync(const Model::DescribeQosCarsRequest& request, const DescribeQosCarsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeQosCarsOutcomeCallable describeQosCarsCallable(const Model::DescribeQosCarsRequest& request) const; + DescribeUserOnlineClientStatisticsOutcome describeUserOnlineClientStatistics(const Model::DescribeUserOnlineClientStatisticsRequest &request)const; + void describeUserOnlineClientStatisticsAsync(const Model::DescribeUserOnlineClientStatisticsRequest& request, const DescribeUserOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserOnlineClientStatisticsOutcomeCallable describeUserOnlineClientStatisticsCallable(const Model::DescribeUserOnlineClientStatisticsRequest& request) const; - CreateDedicatedLineBackupOutcome createDedicatedLineBackup(const Model::CreateDedicatedLineBackupRequest &request)const; - void createDedicatedLineBackupAsync(const Model::CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindVbrOutcome bindVbr(const Model::BindVbrRequest &request)const; + void bindVbrAsync(const Model::BindVbrRequest& request, const BindVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindVbrOutcomeCallable bindVbrCallable(const Model::BindVbrRequest& request) const; + CreateDedicatedLineBackupOutcome createDedicatedLineBackup(const Model::CreateDedicatedLineBackupRequest &request)const; + void createDedicatedLineBackupAsync(const Model::CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDedicatedLineBackupOutcomeCallable createDedicatedLineBackupCallable(const Model::CreateDedicatedLineBackupRequest& request) const; - DescribeUserFlowStatisticsOutcome describeUserFlowStatistics(const Model::DescribeUserFlowStatisticsRequest &request)const; - void describeUserFlowStatisticsAsync(const Model::DescribeUserFlowStatisticsRequest& request, const DescribeUserFlowStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserFlowStatisticsOutcome describeUserFlowStatistics(const Model::DescribeUserFlowStatisticsRequest &request)const; + void describeUserFlowStatisticsAsync(const Model::DescribeUserFlowStatisticsRequest& request, const DescribeUserFlowStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserFlowStatisticsOutcomeCallable describeUserFlowStatisticsCallable(const Model::DescribeUserFlowStatisticsRequest& request) const; - SetSagRouteableAddressOutcome setSagRouteableAddress(const Model::SetSagRouteableAddressRequest &request)const; - void setSagRouteableAddressAsync(const Model::SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableSmartAccessGatewayUserOutcome disableSmartAccessGatewayUser(const Model::DisableSmartAccessGatewayUserRequest &request)const; + void disableSmartAccessGatewayUserAsync(const Model::DisableSmartAccessGatewayUserRequest& request, const DisableSmartAccessGatewayUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableSmartAccessGatewayUserOutcomeCallable disableSmartAccessGatewayUserCallable(const Model::DisableSmartAccessGatewayUserRequest& request) const; + DeleteDnatEntryOutcome deleteDnatEntry(const Model::DeleteDnatEntryRequest &request)const; + void deleteDnatEntryAsync(const Model::DeleteDnatEntryRequest& request, const DeleteDnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDnatEntryOutcomeCallable deleteDnatEntryCallable(const Model::DeleteDnatEntryRequest& request) const; + SetSagRouteableAddressOutcome setSagRouteableAddress(const Model::SetSagRouteableAddressRequest &request)const; + void setSagRouteableAddressAsync(const Model::SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetSagRouteableAddressOutcomeCallable setSagRouteableAddressCallable(const Model::SetSagRouteableAddressRequest& request) const; - ModifyACLOutcome modifyACL(const Model::ModifyACLRequest &request)const; - void modifyACLAsync(const Model::ModifyACLRequest& request, const ModifyACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyACLOutcome modifyACL(const Model::ModifyACLRequest &request)const; + void modifyACLAsync(const Model::ModifyACLRequest& request, const ModifyACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyACLOutcomeCallable modifyACLCallable(const Model::ModifyACLRequest& request) const; - DescribeSmartAccessGatewayClientUsersOutcome describeSmartAccessGatewayClientUsers(const Model::DescribeSmartAccessGatewayClientUsersRequest &request)const; - void describeSmartAccessGatewayClientUsersAsync(const Model::DescribeSmartAccessGatewayClientUsersRequest& request, const DescribeSmartAccessGatewayClientUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowLogsOutcome describeFlowLogs(const Model::DescribeFlowLogsRequest &request)const; + void describeFlowLogsAsync(const Model::DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowLogsOutcomeCallable describeFlowLogsCallable(const Model::DescribeFlowLogsRequest& request) const; + DescribeSmartAccessGatewayClientUsersOutcome describeSmartAccessGatewayClientUsers(const Model::DescribeSmartAccessGatewayClientUsersRequest &request)const; + void describeSmartAccessGatewayClientUsersAsync(const Model::DescribeSmartAccessGatewayClientUsersRequest& request, const DescribeSmartAccessGatewayClientUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSmartAccessGatewayClientUsersOutcomeCallable describeSmartAccessGatewayClientUsersCallable(const Model::DescribeSmartAccessGatewayClientUsersRequest& request) const; - GetSmartAccessGatewayUseLimitOutcome getSmartAccessGatewayUseLimit(const Model::GetSmartAccessGatewayUseLimitRequest &request)const; - void getSmartAccessGatewayUseLimitAsync(const Model::GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSmartAccessGatewayUseLimitOutcome getSmartAccessGatewayUseLimit(const Model::GetSmartAccessGatewayUseLimitRequest &request)const; + void getSmartAccessGatewayUseLimitAsync(const Model::GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSmartAccessGatewayUseLimitOutcomeCallable getSmartAccessGatewayUseLimitCallable(const Model::GetSmartAccessGatewayUseLimitRequest& request) const; - UnicomOrderConfirmOutcome unicomOrderConfirm(const Model::UnicomOrderConfirmRequest &request)const; - void unicomOrderConfirmAsync(const Model::UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnicomOrderConfirmOutcome unicomOrderConfirm(const Model::UnicomOrderConfirmRequest &request)const; + void unicomOrderConfirmAsync(const Model::UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnicomOrderConfirmOutcomeCallable unicomOrderConfirmCallable(const Model::UnicomOrderConfirmRequest& request) const; - DescribeNetworkOptimizationsOutcome describeNetworkOptimizations(const Model::DescribeNetworkOptimizationsRequest &request)const; - void describeNetworkOptimizationsAsync(const Model::DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyQosPolicyOutcome modifyQosPolicy(const Model::ModifyQosPolicyRequest &request)const; + void modifyQosPolicyAsync(const Model::ModifyQosPolicyRequest& request, const ModifyQosPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyQosPolicyOutcomeCallable modifyQosPolicyCallable(const Model::ModifyQosPolicyRequest& request) const; + DescribeNetworkOptimizationsOutcome describeNetworkOptimizations(const Model::DescribeNetworkOptimizationsRequest &request)const; + void describeNetworkOptimizationsAsync(const Model::DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNetworkOptimizationsOutcomeCallable describeNetworkOptimizationsCallable(const Model::DescribeNetworkOptimizationsRequest& request) const; - - private: - std::shared_ptr endpointProvider_; - }; - } -} - -#endif // !ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ + GrantInstanceToCbnOutcome grantInstanceToCbn(const Model::GrantInstanceToCbnRequest &request)const; + void grantInstanceToCbnAsync(const Model::GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantInstanceToCbnOutcomeCallable grantInstanceToCbnCallable(const Model::GrantInstanceToCbnRequest& request) const; + AddSnatEntryOutcome addSnatEntry(const Model::AddSnatEntryRequest &request)const; + void addSnatEntryAsync(const Model::AddSnatEntryRequest& request, const AddSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSnatEntryOutcomeCallable addSnatEntryCallable(const Model::AddSnatEntryRequest& request) const; + DeleteNetworkOptimizationOutcome deleteNetworkOptimization(const Model::DeleteNetworkOptimizationRequest &request)const; + void deleteNetworkOptimizationAsync(const Model::DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkOptimizationOutcomeCallable deleteNetworkOptimizationCallable(const Model::DeleteNetworkOptimizationRequest& request) const; + AddDnatEntryOutcome addDnatEntry(const Model::AddDnatEntryRequest &request)const; + void addDnatEntryAsync(const Model::AddDnatEntryRequest& request, const AddDnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddDnatEntryOutcomeCallable addDnatEntryCallable(const Model::AddDnatEntryRequest& request) const; + ModifyNetworkOptimizationOutcome modifyNetworkOptimization(const Model::ModifyNetworkOptimizationRequest &request)const; + void modifyNetworkOptimizationAsync(const Model::ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNetworkOptimizationOutcomeCallable modifyNetworkOptimizationCallable(const Model::ModifyNetworkOptimizationRequest& request) const; + DescribeSnatEntriesOutcome describeSnatEntries(const Model::DescribeSnatEntriesRequest &request)const; + void describeSnatEntriesAsync(const Model::DescribeSnatEntriesRequest& request, const DescribeSnatEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnatEntriesOutcomeCallable describeSnatEntriesCallable(const Model::DescribeSnatEntriesRequest& request) const; + AddACLRuleOutcome addACLRule(const Model::AddACLRuleRequest &request)const; + void addACLRuleAsync(const Model::AddACLRuleRequest& request, const AddACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddACLRuleOutcomeCallable addACLRuleCallable(const Model::AddACLRuleRequest& request) const; + AssociateFlowLogOutcome associateFlowLog(const Model::AssociateFlowLogRequest &request)const; + void associateFlowLogAsync(const Model::AssociateFlowLogRequest& request, const AssociateFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateFlowLogOutcomeCallable associateFlowLogCallable(const Model::AssociateFlowLogRequest& request) const; + ModifyQosCarOutcome modifyQosCar(const Model::ModifyQosCarRequest &request)const; + void modifyQosCarAsync(const Model::ModifyQosCarRequest& request, const ModifyQosCarAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyQosCarOutcomeCallable modifyQosCarCallable(const Model::ModifyQosCarRequest& request) const; + BindSmartAccessGatewayOutcome bindSmartAccessGateway(const Model::BindSmartAccessGatewayRequest &request)const; + void bindSmartAccessGatewayAsync(const Model::BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindSmartAccessGatewayOutcomeCallable bindSmartAccessGatewayCallable(const Model::BindSmartAccessGatewayRequest& request) const; + DisassociateACLOutcome disassociateACL(const Model::DisassociateACLRequest &request)const; + void disassociateACLAsync(const Model::DisassociateACLRequest& request, const DisassociateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisassociateACLOutcomeCallable disassociateACLCallable(const Model::DisassociateACLRequest& request) const; + DeleteSAGLinkLevelHaOutcome deleteSAGLinkLevelHa(const Model::DeleteSAGLinkLevelHaRequest &request)const; + void deleteSAGLinkLevelHaAsync(const Model::DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSAGLinkLevelHaOutcomeCallable deleteSAGLinkLevelHaCallable(const Model::DeleteSAGLinkLevelHaRequest& request) const; + DeactiveFlowLogOutcome deactiveFlowLog(const Model::DeactiveFlowLogRequest &request)const; + void deactiveFlowLogAsync(const Model::DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactiveFlowLogOutcomeCallable deactiveFlowLogCallable(const Model::DeactiveFlowLogRequest& request) const; + CreateFlowLogOutcome createFlowLog(const Model::CreateFlowLogRequest &request)const; + void createFlowLogAsync(const Model::CreateFlowLogRequest& request, const CreateFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowLogOutcomeCallable createFlowLogCallable(const Model::CreateFlowLogRequest& request) const; + ActiveFlowLogOutcome activeFlowLog(const Model::ActiveFlowLogRequest &request)const; + void activeFlowLogAsync(const Model::ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActiveFlowLogOutcomeCallable activeFlowLogCallable(const Model::ActiveFlowLogRequest& request) const; + SwitchSAGHaStateOutcome switchSAGHaState(const Model::SwitchSAGHaStateRequest &request)const; + void switchSAGHaStateAsync(const Model::SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchSAGHaStateOutcomeCallable switchSAGHaStateCallable(const Model::SwitchSAGHaStateRequest& request) const; + KickOutClientsOutcome kickOutClients(const Model::KickOutClientsRequest &request)const; + void kickOutClientsAsync(const Model::KickOutClientsRequest& request, const KickOutClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KickOutClientsOutcomeCallable kickOutClientsCallable(const Model::KickOutClientsRequest& request) const; + DescribeSagRouteableAddressOutcome describeSagRouteableAddress(const Model::DescribeSagRouteableAddressRequest &request)const; + void describeSagRouteableAddressAsync(const Model::DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSagRouteableAddressOutcomeCallable describeSagRouteableAddressCallable(const Model::DescribeSagRouteableAddressRequest& request) const; + SwitchCloudBoxHaStateOutcome switchCloudBoxHaState(const Model::SwitchCloudBoxHaStateRequest &request)const; + void switchCloudBoxHaStateAsync(const Model::SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchCloudBoxHaStateOutcomeCallable switchCloudBoxHaStateCallable(const Model::SwitchCloudBoxHaStateRequest& request) const; + AttachNetworkOptimizationSagsOutcome attachNetworkOptimizationSags(const Model::AttachNetworkOptimizationSagsRequest &request)const; + void attachNetworkOptimizationSagsAsync(const Model::AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachNetworkOptimizationSagsOutcomeCallable attachNetworkOptimizationSagsCallable(const Model::AttachNetworkOptimizationSagsRequest& request) const; + DeleteACLOutcome deleteACL(const Model::DeleteACLRequest &request)const; + void deleteACLAsync(const Model::DeleteACLRequest& request, const DeleteACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteACLOutcomeCallable deleteACLCallable(const Model::DeleteACLRequest& request) const; + AssociateACLOutcome associateACL(const Model::AssociateACLRequest &request)const; + void associateACLAsync(const Model::AssociateACLRequest& request, const AssociateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateACLOutcomeCallable associateACLCallable(const Model::AssociateACLRequest& request) const; + DescribeDnatEntriesOutcome describeDnatEntries(const Model::DescribeDnatEntriesRequest &request)const; + void describeDnatEntriesAsync(const Model::DescribeDnatEntriesRequest& request, const DescribeDnatEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDnatEntriesOutcomeCallable describeDnatEntriesCallable(const Model::DescribeDnatEntriesRequest& request) const; + DescribeSmartAccessGatewayVersionsOutcome describeSmartAccessGatewayVersions(const Model::DescribeSmartAccessGatewayVersionsRequest &request)const; + void describeSmartAccessGatewayVersionsAsync(const Model::DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayVersionsOutcomeCallable describeSmartAccessGatewayVersionsCallable(const Model::DescribeSmartAccessGatewayVersionsRequest& request) const; + RevokeInstanceFromCbnOutcome revokeInstanceFromCbn(const Model::RevokeInstanceFromCbnRequest &request)const; + void revokeInstanceFromCbnAsync(const Model::RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeInstanceFromCbnOutcomeCallable revokeInstanceFromCbnCallable(const Model::RevokeInstanceFromCbnRequest& request) const; + CreateQosPolicyOutcome createQosPolicy(const Model::CreateQosPolicyRequest &request)const; + void createQosPolicyAsync(const Model::CreateQosPolicyRequest& request, const CreateQosPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateQosPolicyOutcomeCallable createQosPolicyCallable(const Model::CreateQosPolicyRequest& request) const; + ModifySerialNumberOutcome modifySerialNumber(const Model::ModifySerialNumberRequest &request)const; + void modifySerialNumberAsync(const Model::ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySerialNumberOutcomeCallable modifySerialNumberCallable(const Model::ModifySerialNumberRequest& request) const; + DescribeFlowLogSagsOutcome describeFlowLogSags(const Model::DescribeFlowLogSagsRequest &request)const; + void describeFlowLogSagsAsync(const Model::DescribeFlowLogSagsRequest& request, const DescribeFlowLogSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowLogSagsOutcomeCallable describeFlowLogSagsCallable(const Model::DescribeFlowLogSagsRequest& request) const; + DeleteDedicatedLineBackupOutcome deleteDedicatedLineBackup(const Model::DeleteDedicatedLineBackupRequest &request)const; + void deleteDedicatedLineBackupAsync(const Model::DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDedicatedLineBackupOutcomeCallable deleteDedicatedLineBackupCallable(const Model::DeleteDedicatedLineBackupRequest& request) const; + DescribeACLsOutcome describeACLs(const Model::DescribeACLsRequest &request)const; + void describeACLsAsync(const Model::DescribeACLsRequest& request, const DescribeACLsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeACLsOutcomeCallable describeACLsCallable(const Model::DescribeACLsRequest& request) const; + ResetSmartAccessGatewayClientUserPasswordOutcome resetSmartAccessGatewayClientUserPassword(const Model::ResetSmartAccessGatewayClientUserPasswordRequest &request)const; + void resetSmartAccessGatewayClientUserPasswordAsync(const Model::ResetSmartAccessGatewayClientUserPasswordRequest& request, const ResetSmartAccessGatewayClientUserPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetSmartAccessGatewayClientUserPasswordOutcomeCallable resetSmartAccessGatewayClientUserPasswordCallable(const Model::ResetSmartAccessGatewayClientUserPasswordRequest& request) const; + UnlockSmartAccessGatewayOutcome unlockSmartAccessGateway(const Model::UnlockSmartAccessGatewayRequest &request)const; + void unlockSmartAccessGatewayAsync(const Model::UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnlockSmartAccessGatewayOutcomeCallable unlockSmartAccessGatewayCallable(const Model::UnlockSmartAccessGatewayRequest& request) const; + DescribeUnbindFlowLogSagsOutcome describeUnbindFlowLogSags(const Model::DescribeUnbindFlowLogSagsRequest &request)const; + void describeUnbindFlowLogSagsAsync(const Model::DescribeUnbindFlowLogSagsRequest& request, const DescribeUnbindFlowLogSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUnbindFlowLogSagsOutcomeCallable describeUnbindFlowLogSagsCallable(const Model::DescribeUnbindFlowLogSagsRequest& request) const; + CreateSAGLinkLevelHaOutcome createSAGLinkLevelHa(const Model::CreateSAGLinkLevelHaRequest &request)const; + void createSAGLinkLevelHaAsync(const Model::CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSAGLinkLevelHaOutcomeCallable createSAGLinkLevelHaCallable(const Model::CreateSAGLinkLevelHaRequest& request) const; + DisassociateFlowLogOutcome disassociateFlowLog(const Model::DisassociateFlowLogRequest &request)const; + void disassociateFlowLogAsync(const Model::DisassociateFlowLogRequest& request, const DisassociateFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisassociateFlowLogOutcomeCallable disassociateFlowLogCallable(const Model::DisassociateFlowLogRequest& request) const; + DescribeSmartAccessGatewayHaOutcome describeSmartAccessGatewayHa(const Model::DescribeSmartAccessGatewayHaRequest &request)const; + void describeSmartAccessGatewayHaAsync(const Model::DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartAccessGatewayHaOutcomeCallable describeSmartAccessGatewayHaCallable(const Model::DescribeSmartAccessGatewayHaRequest& request) const; + DescribeNetworkOptimizationSettingsOutcome describeNetworkOptimizationSettings(const Model::DescribeNetworkOptimizationSettingsRequest &request)const; + void describeNetworkOptimizationSettingsAsync(const Model::DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkOptimizationSettingsOutcomeCallable describeNetworkOptimizationSettingsCallable(const Model::DescribeNetworkOptimizationSettingsRequest& request) const; + DeleteCloudConnectNetworkOutcome deleteCloudConnectNetwork(const Model::DeleteCloudConnectNetworkRequest &request)const; + void deleteCloudConnectNetworkAsync(const Model::DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCloudConnectNetworkOutcomeCallable deleteCloudConnectNetworkCallable(const Model::DeleteCloudConnectNetworkRequest& request) const; + CreateACLOutcome createACL(const Model::CreateACLRequest &request)const; + void createACLAsync(const Model::CreateACLRequest& request, const CreateACLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateACLOutcomeCallable createACLCallable(const Model::CreateACLRequest& request) const; + RebootSmartAccessGatewayOutcome rebootSmartAccessGateway(const Model::RebootSmartAccessGatewayRequest &request)const; + void rebootSmartAccessGatewayAsync(const Model::RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RebootSmartAccessGatewayOutcomeCallable rebootSmartAccessGatewayCallable(const Model::RebootSmartAccessGatewayRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + ModifyACLRuleOutcome modifyACLRule(const Model::ModifyACLRuleRequest &request)const; + void modifyACLRuleAsync(const Model::ModifyACLRuleRequest& request, const ModifyACLRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyACLRuleOutcomeCallable modifyACLRuleCallable(const Model::ModifyACLRuleRequest& request) const; + DescribeCloudConnectNetworksOutcome describeCloudConnectNetworks(const Model::DescribeCloudConnectNetworksRequest &request)const; + void describeCloudConnectNetworksAsync(const Model::DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudConnectNetworksOutcomeCallable describeCloudConnectNetworksCallable(const Model::DescribeCloudConnectNetworksRequest& request) const; + ModifySmartAccessGatewayClientUserOutcome modifySmartAccessGatewayClientUser(const Model::ModifySmartAccessGatewayClientUserRequest &request)const; + void modifySmartAccessGatewayClientUserAsync(const Model::ModifySmartAccessGatewayClientUserRequest& request, const ModifySmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySmartAccessGatewayClientUserOutcomeCallable modifySmartAccessGatewayClientUserCallable(const Model::ModifySmartAccessGatewayClientUserRequest& request) const; + DeleteNetworkOptimizationSettingOutcome deleteNetworkOptimizationSetting(const Model::DeleteNetworkOptimizationSettingRequest &request)const; + void deleteNetworkOptimizationSettingAsync(const Model::DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkOptimizationSettingOutcomeCallable deleteNetworkOptimizationSettingCallable(const Model::DeleteNetworkOptimizationSettingRequest& request) const; + GetCloudConnectNetworkUseLimitOutcome getCloudConnectNetworkUseLimit(const Model::GetCloudConnectNetworkUseLimitRequest &request)const; + void getCloudConnectNetworkUseLimitAsync(const Model::GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCloudConnectNetworkUseLimitOutcomeCallable getCloudConnectNetworkUseLimitCallable(const Model::GetCloudConnectNetworkUseLimitRequest& request) const; + UpgradeSmartAccessGatewayOutcome upgradeSmartAccessGateway(const Model::UpgradeSmartAccessGatewayRequest &request)const; + void upgradeSmartAccessGatewayAsync(const Model::UpgradeSmartAccessGatewayRequest& request, const UpgradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeSmartAccessGatewayOutcomeCallable upgradeSmartAccessGatewayCallable(const Model::UpgradeSmartAccessGatewayRequest& request) const; + DeleteQosCarOutcome deleteQosCar(const Model::DeleteQosCarRequest &request)const; + void deleteQosCarAsync(const Model::DeleteQosCarRequest& request, const DeleteQosCarAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteQosCarOutcomeCallable deleteQosCarCallable(const Model::DeleteQosCarRequest& request) const; + DisassociateQosOutcome disassociateQos(const Model::DisassociateQosRequest &request)const; + void disassociateQosAsync(const Model::DisassociateQosRequest& request, const DisassociateQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisassociateQosOutcomeCallable disassociateQosCallable(const Model::DisassociateQosRequest& request) const; + DetachNetworkOptimizationSagsOutcome detachNetworkOptimizationSags(const Model::DetachNetworkOptimizationSagsRequest &request)const; + void detachNetworkOptimizationSagsAsync(const Model::DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachNetworkOptimizationSagsOutcomeCallable detachNetworkOptimizationSagsCallable(const Model::DetachNetworkOptimizationSagsRequest& request) const; + EnableSmartAccessGatewayUserOutcome enableSmartAccessGatewayUser(const Model::EnableSmartAccessGatewayUserRequest &request)const; + void enableSmartAccessGatewayUserAsync(const Model::EnableSmartAccessGatewayUserRequest& request, const EnableSmartAccessGatewayUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableSmartAccessGatewayUserOutcomeCallable enableSmartAccessGatewayUserCallable(const Model::EnableSmartAccessGatewayUserRequest& request) const; + ModifyQosOutcome modifyQos(const Model::ModifyQosRequest &request)const; + void modifyQosAsync(const Model::ModifyQosRequest& request, const ModifyQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyQosOutcomeCallable modifyQosCallable(const Model::ModifyQosRequest& request) const; + UnbindVbrOutcome unbindVbr(const Model::UnbindVbrRequest &request)const; + void unbindVbrAsync(const Model::UnbindVbrRequest& request, const UnbindVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindVbrOutcomeCallable unbindVbrCallable(const Model::UnbindVbrRequest& request) const; + DescribeBindableSmartAccessGatewaysOutcome describeBindableSmartAccessGateways(const Model::DescribeBindableSmartAccessGatewaysRequest &request)const; + void describeBindableSmartAccessGatewaysAsync(const Model::DescribeBindableSmartAccessGatewaysRequest& request, const DescribeBindableSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBindableSmartAccessGatewaysOutcomeCallable describeBindableSmartAccessGatewaysCallable(const Model::DescribeBindableSmartAccessGatewaysRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SMARTAG_SMARTAGCLIENT_H_ diff --git a/smartag/include/alibabacloud/smartag/SmartagExport.h b/smartag/include/alibabacloud/smartag/SmartagExport.h index 72c3c14e7..7ec35bccb 100644 --- a/smartag/include/alibabacloud/smartag/SmartagExport.h +++ b/smartag/include/alibabacloud/smartag/SmartagExport.h @@ -1,32 +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_SMARTAG_SMARTAGEXPORT_H_ -#define ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ - -#include - -#if defined(ALIBABACLOUD_SHARED) -# if defined(ALIBABACLOUD_SMARTAG_LIBRARY) -# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_EXPORT -# else -# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_IMPORT -# endif -#else -# define ALIBABACLOUD_SMARTAG_EXPORT -#endif - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ +#define ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SMARTAG_LIBRARY) +# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SMARTAG_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SMARTAG_EXPORT +#endif + #endif // !ALIBABACLOUD_SMARTAG_SMARTAGEXPORT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h index 685d2dd78..76f2d0764 100644 --- a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - ActivateSmartAccessGatewayRequest(); - ~ActivateSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + ActivateSmartAccessGatewayRequest(); + ~ActivateSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h index 70a295d85..faad4c911 100644 --- a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayResult : public ServiceResult - { - public: - - - ActivateSmartAccessGatewayResult(); - explicit ActivateSmartAccessGatewayResult(const std::string &payload); - ~ActivateSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayResult : public ServiceResult + { + public: + + + ActivateSmartAccessGatewayResult(); + explicit ActivateSmartAccessGatewayResult(const std::string &payload); + ~ActivateSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.h new file mode 100644 index 000000000..33a3d864e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.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_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ActiveFlowLogRequest : public RpcServiceRequest + { + + public: + ActiveFlowLogRequest(); + ~ActiveFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ActiveFlowLogResult.h b/smartag/include/alibabacloud/smartag/model/ActiveFlowLogResult.h new file mode 100644 index 000000000..d1e535d2e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ActiveFlowLogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ActiveFlowLogResult : public ServiceResult + { + public: + + + ActiveFlowLogResult(); + explicit ActiveFlowLogResult(const std::string &payload); + ~ActiveFlowLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h index 22f6d2e91..01bf69057 100644 --- a/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleRequest : public RpcServiceRequest - { - - public: - AddACLRuleRequest(); - ~AddACLRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleRequest : public RpcServiceRequest + { + + public: + AddACLRuleRequest(); + ~AddACLRuleRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -55,6 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPriority()const; void setPriority(int priority); + std::string getType()const; + void setType(const std::string& type); std::string getDestCidr()const; void setDestCidr(const std::string& destCidr); std::string getDestPortRange()const; @@ -65,8 +67,8 @@ namespace AlibabaCloud void setDirection(const std::string& direction); std::string getPolicy()const; void setPolicy(const std::string& policy); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string sourcePortRange_; @@ -77,14 +79,15 @@ namespace AlibabaCloud std::string description_; long ownerId_; int priority_; + std::string type_; std::string destCidr_; std::string destPortRange_; std::string regionId_; std::string direction_; std::string policy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h index 302fe03ae..4159aa2b1 100644 --- a/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h @@ -1,73 +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_SMARTAG_MODEL_ADDACLRULERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleResult : public ServiceResult - { - public: - - - AddACLRuleResult(); - explicit AddACLRuleResult(const std::string &payload); - ~AddACLRuleResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleResult : public ServiceResult + { + public: + + + AddACLRuleResult(); + explicit AddACLRuleResult(const std::string &payload); + ~AddACLRuleResult(); std::string getPolicy()const; - long getGmtCreate()const; std::string getDescription()const; - std::string getDestCidr()const; std::string getSourcePortRange()const; std::string getSourceCidr()const; int getPriority()const; std::string getAclId()const; std::string getAcrId()const; - std::string getIpProtocol()const; std::string getDestPortRange()const; std::string getDirection()const; - - protected: - void parse(const std::string &payload); - private: + long getGmtCreate()const; + std::string getType()const; + std::string getDestCidr()const; + std::string getIpProtocol()const; + + protected: + void parse(const std::string &payload); + private: std::string policy_; - long gmtCreate_; std::string description_; - std::string destCidr_; std::string sourcePortRange_; std::string sourceCidr_; int priority_; std::string aclId_; std::string acrId_; - std::string ipProtocol_; std::string destPortRange_; std::string direction_; - - }; - } - } -} + long gmtCreate_; + std::string type_; + std::string destCidr_; + std::string ipProtocol_; + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h new file mode 100644 index 000000000..bbb1c76ff --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddDnatEntryRequest : public RpcServiceRequest + { + + public: + AddDnatEntryRequest(); + ~AddDnatEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getType()const; + void setType(const std::string& type); + std::string getInternalIp()const; + void setInternalIp(const std::string& internalIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSagId()const; + void setSagId(const std::string& sagId); + std::string getInternalPort()const; + void setInternalPort(const std::string& internalPort); + std::string getExternalIp()const; + void setExternalIp(const std::string& externalIp); + std::string getExternalPort()const; + void setExternalPort(const std::string& externalPort); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + std::string type_; + std::string internalIp_; + std::string regionId_; + std::string sagId_; + std::string internalPort_; + std::string externalIp_; + std::string externalPort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddDnatEntryResult.h b/smartag/include/alibabacloud/smartag/model/AddDnatEntryResult.h new file mode 100644 index 000000000..8c7b0036f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddDnatEntryResult.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_SMARTAG_MODEL_ADDDNATENTRYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddDnatEntryResult : public ServiceResult + { + public: + + + AddDnatEntryResult(); + explicit AddDnatEntryResult(const std::string &payload); + ~AddDnatEntryResult(); + std::string getDnatEntryId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dnatEntryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h index ca0c68653..df1d979fb 100644 --- a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingRequest : public RpcServiceRequest - { - - public: - AddNetworkOptimizationSettingRequest(); - ~AddNetworkOptimizationSettingRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingRequest : public RpcServiceRequest + { + + public: + AddNetworkOptimizationSettingRequest(); + ~AddNetworkOptimizationSettingRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getType()const; void setType(const std::string& type); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string domain_; long ownerId_; std::string type_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h index e0b29320d..2e3961a7b 100644 --- a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h +++ b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingResult : public ServiceResult - { - public: - - - AddNetworkOptimizationSettingResult(); - explicit AddNetworkOptimizationSettingResult(const std::string &payload); - ~AddNetworkOptimizationSettingResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingResult : public ServiceResult + { + public: + + + AddNetworkOptimizationSettingResult(); + explicit AddNetworkOptimizationSettingResult(const std::string &payload); + ~AddNetworkOptimizationSettingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.h new file mode 100644 index 000000000..3ec647fde --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.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_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddSnatEntryRequest : public RpcServiceRequest + { + + public: + AddSnatEntryRequest(); + ~AddSnatEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSnatIp()const; + void setSnatIp(const std::string& snatIp); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string cidrBlock_; + std::string smartAGId_; + long ownerId_; + std::string snatIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddSnatEntryResult.h b/smartag/include/alibabacloud/smartag/model/AddSnatEntryResult.h new file mode 100644 index 000000000..196bf4624 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AddSnatEntryResult.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_SMARTAG_MODEL_ADDSNATENTRYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AddSnatEntryResult : public ServiceResult + { + public: + + + AddSnatEntryResult(); + explicit AddSnatEntryResult(const std::string &payload); + ~AddSnatEntryResult(); + std::string getInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h b/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h index 597bdb7d7..bf2395fd0 100644 --- a/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLRequest : public RpcServiceRequest - { - - public: - AssociateACLRequest(); - ~AssociateACLRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLRequest : public RpcServiceRequest + { + + public: + AssociateACLRequest(); + ~AssociateACLRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateACLResult.h b/smartag/include/alibabacloud/smartag/model/AssociateACLResult.h index 3a5d7a8ad..d66d00900 100644 --- a/smartag/include/alibabacloud/smartag/model/AssociateACLResult.h +++ b/smartag/include/alibabacloud/smartag/model/AssociateACLResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLResult : public ServiceResult - { - public: - - - AssociateACLResult(); - explicit AssociateACLResult(const std::string &payload); - ~AssociateACLResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLResult : public ServiceResult + { + public: + + + AssociateACLResult(); + explicit AssociateACLResult(const std::string &payload); + ~AssociateACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.h new file mode 100644 index 000000000..abb8b37c8 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.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_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateFlowLogRequest : public RpcServiceRequest + { + + public: + AssociateFlowLogRequest(); + ~AssociateFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateFlowLogResult.h b/smartag/include/alibabacloud/smartag/model/AssociateFlowLogResult.h new file mode 100644 index 000000000..a338e585a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AssociateFlowLogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateFlowLogResult : public ServiceResult + { + public: + + + AssociateFlowLogResult(); + explicit AssociateFlowLogResult(const std::string &payload); + ~AssociateFlowLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateQosRequest.h b/smartag/include/alibabacloud/smartag/model/AssociateQosRequest.h new file mode 100644 index 000000000..21dbc012c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AssociateQosRequest.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_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateQosRequest : public RpcServiceRequest + { + + public: + AssociateQosRequest(); + ~AssociateQosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AssociateQosResult.h b/smartag/include/alibabacloud/smartag/model/AssociateQosResult.h new file mode 100644 index 000000000..5bbefb7ae --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/AssociateQosResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AssociateQosResult : public ServiceResult + { + public: + + + AssociateQosResult(); + explicit AssociateQosResult(const std::string &payload); + ~AssociateQosResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h index 302ca3165..37bc66c60 100644 --- a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsRequest : public RpcServiceRequest - { - - public: - AttachNetworkOptimizationSagsRequest(); - ~AttachNetworkOptimizationSagsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsRequest : public RpcServiceRequest + { + + public: + AttachNetworkOptimizationSagsRequest(); + ~AttachNetworkOptimizationSagsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGIds(const std::vector& smartAGIds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::vector smartAGIds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h index 4cb995463..1a58907a7 100644 --- a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h +++ b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsResult : public ServiceResult - { - public: - - - AttachNetworkOptimizationSagsResult(); - explicit AttachNetworkOptimizationSagsResult(const std::string &payload); - ~AttachNetworkOptimizationSagsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsResult : public ServiceResult + { + public: + + + AttachNetworkOptimizationSagsResult(); + explicit AttachNetworkOptimizationSagsResult(const std::string &payload); + ~AttachNetworkOptimizationSagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h index 36ccfbc41..a9baeaf21 100644 --- a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h @@ -1,42 +1,44 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - BindSmartAccessGatewayRequest(); - ~BindSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + BindSmartAccessGatewayRequest(); + ~BindSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + long getSmartAGUid()const; + void setSmartAGUid(long smartAGUid); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; @@ -49,18 +51,19 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; + long smartAGUid_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string ccnId_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h index 0ba86b631..3db2cf6e9 100644 --- a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayResult : public ServiceResult - { - public: - - - BindSmartAccessGatewayResult(); - explicit BindSmartAccessGatewayResult(const std::string &payload); - ~BindSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayResult : public ServiceResult + { + public: + + + BindSmartAccessGatewayResult(); + explicit BindSmartAccessGatewayResult(const std::string &payload); + ~BindSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/BindVbrRequest.h b/smartag/include/alibabacloud/smartag/model/BindVbrRequest.h new file mode 100644 index 000000000..02733944c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/BindVbrRequest.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_SMARTAG_MODEL_BINDVBRREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT BindVbrRequest : public RpcServiceRequest + { + + public: + BindVbrRequest(); + ~BindVbrRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + std::string getVbrRegionId()const; + void setVbrRegionId(const std::string& vbrRegionId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string vbrId_; + std::string vbrRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/BindVbrResult.h b/smartag/include/alibabacloud/smartag/model/BindVbrResult.h new file mode 100644 index 000000000..2900349f5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/BindVbrResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDVBRRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDVBRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT BindVbrResult : public ServiceResult + { + public: + + + BindVbrResult(); + explicit BindVbrResult(const std::string &payload); + ~BindVbrResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDVBRRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h index b3f5d88a5..a6938e207 100644 --- a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressRequest : public RpcServiceRequest - { - - public: - ClearSagRouteableAddressRequest(); - ~ClearSagRouteableAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressRequest : public RpcServiceRequest + { + + public: + ClearSagRouteableAddressRequest(); + ~ClearSagRouteableAddressRequest(); + std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string access_key_id_; long resourceOwnerId_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string sagId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h index c69872c50..8c09957f3 100644 --- a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h +++ b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressResult : public ServiceResult - { - public: - - - ClearSagRouteableAddressResult(); - explicit ClearSagRouteableAddressResult(const std::string &payload); - ~ClearSagRouteableAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressResult : public ServiceResult + { + public: + + + ClearSagRouteableAddressResult(); + explicit ClearSagRouteableAddressResult(const std::string &payload); + ~ClearSagRouteableAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h b/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h index b9a0fa7c5..3bcc7c124 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateACLRequest : public RpcServiceRequest - { - - public: - CreateACLRequest(); - ~CreateACLRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateACLRequest : public RpcServiceRequest + { + + public: + CreateACLRequest(); + ~CreateACLRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setName(const std::string& name); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string name_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateACLResult.h b/smartag/include/alibabacloud/smartag/model/CreateACLResult.h index 74e39f3df..c49249e41 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateACLResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateACLResult.h @@ -1,51 +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_SMARTAG_MODEL_CREATEACLRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateACLResult : public ServiceResult - { - public: - - - CreateACLResult(); - explicit CreateACLResult(const std::string &payload); - ~CreateACLResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateACLResult : public ServiceResult + { + public: + + + CreateACLResult(); + explicit CreateACLResult(const std::string &payload); + ~CreateACLResult(); std::string getAclId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string aclId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h index c37ce675f..861e68699 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - CreateCloudConnectNetworkRequest(); - ~CreateCloudConnectNetworkRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkRequest : public RpcServiceRequest + { + + public: + CreateCloudConnectNetworkRequest(); + ~CreateCloudConnectNetworkRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setIsDefault(bool isDefault); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string snatCidrBlock_; bool isDefault_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h index 09426e8e3..4535a336b 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h @@ -1,61 +1,61 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkResult : public ServiceResult - { - public: - - - CreateCloudConnectNetworkResult(); - explicit CreateCloudConnectNetworkResult(const std::string &payload); - ~CreateCloudConnectNetworkResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkResult : public ServiceResult + { + public: + + + CreateCloudConnectNetworkResult(); + explicit CreateCloudConnectNetworkResult(const std::string &payload); + ~CreateCloudConnectNetworkResult(); std::string getStatus()const; std::string getDescription()const; std::string getCcnId()const; std::string getCidrBlock()const; std::string getSnatCidrBlock()const; std::string getName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string status_; std::string description_; std::string ccnId_; std::string cidrBlock_; std::string snatCidrBlock_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h index 96ca89b30..76c0e7af8 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupRequest : public RpcServiceRequest - { - - public: - CreateDedicatedLineBackupRequest(); - ~CreateDedicatedLineBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupRequest : public RpcServiceRequest + { + + public: + CreateDedicatedLineBackupRequest(); + ~CreateDedicatedLineBackupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setVbrId(const std::string& vbrId); std::string getVbrRegionId()const; void setVbrRegionId(const std::string& vbrRegionId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud long ownerId_; std::string vbrId_; std::string vbrRegionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h index 5c2739b28..0ebfff1ad 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateDedicatedLineBackupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupResult : public ServiceResult - { - public: - - - CreateDedicatedLineBackupResult(); - explicit CreateDedicatedLineBackupResult(const std::string &payload); - ~CreateDedicatedLineBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateDedicatedLineBackupResult : public ServiceResult + { + public: + + + CreateDedicatedLineBackupResult(); + explicit CreateDedicatedLineBackupResult(const std::string &payload); + ~CreateDedicatedLineBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEDEDICATEDLINEBACKUPRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h new file mode 100644 index 000000000..aacc49cf5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateFlowLogRequest : public RpcServiceRequest + { + + public: + CreateFlowLogRequest(); + ~CreateFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + std::string getLogstoreName()const; + void setLogstoreName(const std::string& logstoreName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getNetflowServerPort()const; + void setNetflowServerPort(int netflowServerPort); + std::string getNetflowVersion()const; + void setNetflowVersion(const std::string& netflowVersion); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getInactiveAging()const; + void setInactiveAging(int inactiveAging); + std::string getNetflowServerIp()const; + void setNetflowServerIp(const std::string& netflowServerIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getSlsRegionId()const; + void setSlsRegionId(const std::string& slsRegionId); + int getActiveAging()const; + void setActiveAging(int activeAging); + std::string getOutputType()const; + void setOutputType(const std::string& outputType); + + private: + long resourceOwnerId_; + std::string projectName_; + std::string logstoreName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int netflowServerPort_; + std::string netflowVersion_; + std::string description_; + long ownerId_; + int inactiveAging_; + std::string netflowServerIp_; + std::string regionId_; + std::string name_; + std::string slsRegionId_; + int activeAging_; + std::string outputType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.h b/smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.h new file mode 100644 index 000000000..c97dfb9c0 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.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_SMARTAG_MODEL_CREATEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateFlowLogResult : public ServiceResult + { + public: + + + CreateFlowLogResult(); + explicit CreateFlowLogResult(const std::string &payload); + ~CreateFlowLogResult(); + std::string getFlowLogId()const; + + protected: + void parse(const std::string &payload); + private: + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h index 57318dbcc..dfdbfb799 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationRequest : public RpcServiceRequest - { - - public: - CreateNetworkOptimizationRequest(); - ~CreateNetworkOptimizationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationRequest : public RpcServiceRequest + { + + public: + CreateNetworkOptimizationRequest(); + ~CreateNetworkOptimizationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setCcnId(const std::string& ccnId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string name_; std::string ccnId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h index e3ce14e44..97b4123e2 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h @@ -1,55 +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_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationResult : public ServiceResult - { - public: - - - CreateNetworkOptimizationResult(); - explicit CreateNetworkOptimizationResult(const std::string &payload); - ~CreateNetworkOptimizationResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationResult : public ServiceResult + { + public: + + + CreateNetworkOptimizationResult(); + explicit CreateNetworkOptimizationResult(const std::string &payload); + ~CreateNetworkOptimizationResult(); std::string getState()const; std::string getNetworkOptId()const; std::string getName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string state_; std::string networkOptId_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h b/smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h new file mode 100644 index 000000000..3c389c57c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateQosCarRequest : public RpcServiceRequest + { + + public: + CreateQosCarRequest(); + ~CreateQosCarRequest(); + + int getMaxBandwidthAbs()const; + void setMaxBandwidthAbs(int maxBandwidthAbs); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getMinBandwidthAbs()const; + void setMinBandwidthAbs(int minBandwidthAbs); + int getMaxBandwidthPercent()const; + void setMaxBandwidthPercent(int maxBandwidthPercent); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + int getMinBandwidthPercent()const; + void setMinBandwidthPercent(int minBandwidthPercent); + std::string getLimitType()const; + void setLimitType(const std::string& limitType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPercentSourceType()const; + void setPercentSourceType(const std::string& percentSourceType); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + int maxBandwidthAbs_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int minBandwidthAbs_; + int maxBandwidthPercent_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + int priority_; + int minBandwidthPercent_; + std::string limitType_; + std::string regionId_; + std::string percentSourceType_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h new file mode 100644 index 000000000..a37c5a3ca --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.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_SMARTAG_MODEL_CREATEQOSCARRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateQosCarResult : public ServiceResult + { + public: + + + CreateQosCarResult(); + explicit CreateQosCarResult(const std::string &payload); + ~CreateQosCarResult(); + int getMinBandwidthAbs()const; + std::string getDescription()const; + std::string getQosCarId()const; + int getPriority()const; + int getMaxBandwidthAbs()const; + int getMaxBandwidthPercent()const; + std::string getQosId()const; + std::string getPercentSourceType()const; + int getMinBandwidthPercent()const; + std::string getLimitType()const; + + protected: + void parse(const std::string &payload); + private: + int minBandwidthAbs_; + std::string description_; + std::string qosCarId_; + int priority_; + int maxBandwidthAbs_; + int maxBandwidthPercent_; + std::string qosId_; + std::string percentSourceType_; + int minBandwidthPercent_; + std::string limitType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h new file mode 100644 index 000000000..2e5070ed7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.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_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateQosPolicyRequest : public RpcServiceRequest + { + + public: + CreateQosPolicyRequest(); + ~CreateQosPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidr()const; + void setSourceCidr(const std::string& sourceCidr); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + std::string getDestCidr()const; + void setDestCidr(const std::string& destCidr); + std::string getDestPortRange()const; + void setDestPortRange(const std::string& destPortRange); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + long resourceOwnerId_; + std::string sourcePortRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidr_; + std::string description_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int priority_; + std::string destCidr_; + std::string destPortRange_; + std::string regionId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h new file mode 100644 index 000000000..327064914 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.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_SMARTAG_MODEL_CREATEQOSPOLICYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateQosPolicyResult : public ServiceResult + { + public: + + + CreateQosPolicyResult(); + explicit CreateQosPolicyResult(const std::string &payload); + ~CreateQosPolicyResult(); + std::string getDescription()const; + std::string getDestCidr()const; + std::string getQosPolicyId()const; + std::string getSourcePortRange()const; + std::string getEndTime()const; + std::string getSourceCidr()const; + int getPriority()const; + std::string getStartTime()const; + std::string getQosId()const; + std::string getIpProtocol()const; + std::string getDestPortRange()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string destCidr_; + std::string qosPolicyId_; + std::string sourcePortRange_; + std::string endTime_; + std::string sourceCidr_; + int priority_; + std::string startTime_; + std::string qosId_; + std::string ipProtocol_; + std::string destPortRange_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosRequest.h b/smartag/include/alibabacloud/smartag/model/CreateQosRequest.h new file mode 100644 index 000000000..58c5a3686 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateQosRequest.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_SMARTAG_MODEL_CREATEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateQosRequest : public RpcServiceRequest + { + + public: + CreateQosRequest(); + ~CreateQosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQosName()const; + void setQosName(const std::string& qosName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string qosName_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosResult.h new file mode 100644 index 000000000..af957676f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/CreateQosResult.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_SMARTAG_MODEL_CREATEQOSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateQosResult : public ServiceResult + { + public: + + + CreateQosResult(); + explicit CreateQosResult(const std::string &payload); + ~CreateQosResult(); + std::string getQosId()const; + + protected: + void parse(const std::string &payload); + private: + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h index 6e96421dc..11cd6d39b 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaRequest : public RpcServiceRequest - { - - public: - CreateSAGLinkLevelHaRequest(); - ~CreateSAGLinkLevelHaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaRequest : public RpcServiceRequest + { + + public: + CreateSAGLinkLevelHaRequest(); + ~CreateSAGLinkLevelHaRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getBackupLinkId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setMainLinkId(const std::string& mainLinkId); std::string getBackupLinkRegionId()const; void setBackupLinkRegionId(const std::string& backupLinkRegionId); - - private: + + private: long resourceOwnerId_; std::string backupLinkId_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud long ownerId_; std::string mainLinkId_; std::string backupLinkRegionId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHAREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h index 5e3fc21e8..eb7c99002 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSAGLinkLevelHaResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaResult : public ServiceResult - { - public: - - - CreateSAGLinkLevelHaResult(); - explicit CreateSAGLinkLevelHaResult(const std::string &payload); - ~CreateSAGLinkLevelHaResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSAGLinkLevelHaResult : public ServiceResult + { + public: + + + CreateSAGLinkLevelHaResult(); + explicit CreateSAGLinkLevelHaResult(const std::string &payload); + ~CreateSAGLinkLevelHaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGLINKLEVELHARESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h index b8a0873a9..a108edaaf 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserRequest : public RpcServiceRequest - { - - public: - CreateSmartAccessGatewayClientUserRequest(); - ~CreateSmartAccessGatewayClientUserRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserRequest : public RpcServiceRequest + { + + public: + CreateSmartAccessGatewayClientUserRequest(); + ~CreateSmartAccessGatewayClientUserRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string userMail_; long ownerId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.h index ab6c65c1f..fa24af1a1 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserResult.h @@ -1,57 +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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserResult : public ServiceResult - { - public: - - - CreateSmartAccessGatewayClientUserResult(); - explicit CreateSmartAccessGatewayClientUserResult(const std::string &payload); - ~CreateSmartAccessGatewayClientUserResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserResult : public ServiceResult + { + public: + + + CreateSmartAccessGatewayClientUserResult(); + explicit CreateSmartAccessGatewayClientUserResult(const std::string &payload); + ~CreateSmartAccessGatewayClientUserResult(); std::string getUserName()const; std::string getUserMail()const; int getBandwidth()const; std::string getClientIp()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string userName_; std::string userMail_; int bandwidth_; std::string clientIp_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h index c547f5197..a8df9f902 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - CreateSmartAccessGatewayRequest(); - ~CreateSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + CreateSmartAccessGatewayRequest(); + ~CreateSmartAccessGatewayRequest(); + int getMaxBandWidth()const; void setMaxBandWidth(int maxBandWidth); long getResourceOwnerId()const; @@ -91,8 +91,8 @@ namespace AlibabaCloud void setDataPlan(long dataPlan); std::string getReceiverZip()const; void setReceiverZip(const std::string& receiverZip); - - private: + + private: int maxBandWidth_; long resourceOwnerId_; std::string description_; @@ -121,9 +121,9 @@ namespace AlibabaCloud std::string chargeType_; long dataPlan_; std::string receiverZip_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h index ccb27bffe..08feea37b 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h @@ -1,57 +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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayResult : public ServiceResult - { - public: - - - CreateSmartAccessGatewayResult(); - explicit CreateSmartAccessGatewayResult(const std::string &payload); - ~CreateSmartAccessGatewayResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayResult : public ServiceResult + { + public: + + + CreateSmartAccessGatewayResult(); + explicit CreateSmartAccessGatewayResult(const std::string &payload); + ~CreateSmartAccessGatewayResult(); std::string getDescription()const; std::string getSmartAGId()const; std::string getOrderId()const; std::string getName()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string description_; std::string smartAGId_; std::string orderId_; std::string name_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h index b18d0de58..0ea7648cc 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareRequest : public RpcServiceRequest - { - - public: - CreateSmartAccessGatewaySoftwareRequest(); - ~CreateSmartAccessGatewaySoftwareRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareRequest : public RpcServiceRequest + { + + public: + CreateSmartAccessGatewaySoftwareRequest(); + ~CreateSmartAccessGatewaySoftwareRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); int getPeriod()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); long getDataPlan()const; void setDataPlan(long dataPlan); - - private: + + private: long resourceOwnerId_; int period_; bool autoPay_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string chargeType_; long ownerId_; long dataPlan_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h index 58df30383..0782e5574 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareResult : public ServiceResult - { - public: - - - CreateSmartAccessGatewaySoftwareResult(); - explicit CreateSmartAccessGatewaySoftwareResult(const std::string &payload); - ~CreateSmartAccessGatewaySoftwareResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareResult : public ServiceResult + { + public: + + + CreateSmartAccessGatewaySoftwareResult(); + explicit CreateSmartAccessGatewaySoftwareResult(const std::string &payload); + ~CreateSmartAccessGatewaySoftwareResult(); std::string getSmartAGId()const; std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string smartAGId_; std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWARERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h new file mode 100644 index 000000000..67e32f9ca --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.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_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeactiveFlowLogRequest : public RpcServiceRequest + { + + public: + DeactiveFlowLogRequest(); + ~DeactiveFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogResult.h b/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogResult.h new file mode 100644 index 000000000..08b580501 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeactiveFlowLogResult : public ServiceResult + { + public: + + + DeactiveFlowLogResult(); + explicit DeactiveFlowLogResult(const std::string &payload); + ~DeactiveFlowLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h index 58e0bfaa7..006f0ef08 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRequest : public RpcServiceRequest - { - - public: - DeleteACLRequest(); - ~DeleteACLRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRequest : public RpcServiceRequest + { + + public: + DeleteACLRequest(); + ~DeleteACLRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLResult.h b/smartag/include/alibabacloud/smartag/model/DeleteACLResult.h index 3a3d89e7a..d65bda46c 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteACLResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLResult : public ServiceResult - { - public: - - - DeleteACLResult(); - explicit DeleteACLResult(const std::string &payload); - ~DeleteACLResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLResult : public ServiceResult + { + public: + + + DeleteACLResult(); + explicit DeleteACLResult(const std::string &payload); + ~DeleteACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h index bf57a7afc..1349923cf 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleRequest : public RpcServiceRequest - { - - public: - DeleteACLRuleRequest(); - ~DeleteACLRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleRequest : public RpcServiceRequest + { + + public: + DeleteACLRuleRequest(); + ~DeleteACLRuleRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getAcrId()const; void setAcrId(const std::string& acrId); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string acrId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleResult.h index d56715a9d..66046fac7 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleResult : public ServiceResult - { - public: - - - DeleteACLRuleResult(); - explicit DeleteACLRuleResult(const std::string &payload); - ~DeleteACLRuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleResult : public ServiceResult + { + public: + + + DeleteACLRuleResult(); + explicit DeleteACLRuleResult(const std::string &payload); + ~DeleteACLRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h index b5a641724..6141d86b8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - DeleteCloudConnectNetworkRequest(); - ~DeleteCloudConnectNetworkRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkRequest : public RpcServiceRequest + { + + public: + DeleteCloudConnectNetworkRequest(); + ~DeleteCloudConnectNetworkRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setCcnId(const std::string& ccnId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string ccnId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h index 7af197ba8..acdf384d8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkResult : public ServiceResult - { - public: - - - DeleteCloudConnectNetworkResult(); - explicit DeleteCloudConnectNetworkResult(const std::string &payload); - ~DeleteCloudConnectNetworkResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkResult : public ServiceResult + { + public: + + + DeleteCloudConnectNetworkResult(); + explicit DeleteCloudConnectNetworkResult(const std::string &payload); + ~DeleteCloudConnectNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h index ec00872d1..c5378283a 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupRequest : public RpcServiceRequest - { - - public: - DeleteDedicatedLineBackupRequest(); - ~DeleteDedicatedLineBackupRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupRequest : public RpcServiceRequest + { + + public: + DeleteDedicatedLineBackupRequest(); + ~DeleteDedicatedLineBackupRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h index f9ab316ac..b4af6f4f5 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteDedicatedLineBackupResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupResult : public ServiceResult - { - public: - - - DeleteDedicatedLineBackupResult(); - explicit DeleteDedicatedLineBackupResult(const std::string &payload); - ~DeleteDedicatedLineBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteDedicatedLineBackupResult : public ServiceResult + { + public: + + + DeleteDedicatedLineBackupResult(); + explicit DeleteDedicatedLineBackupResult(const std::string &payload); + ~DeleteDedicatedLineBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDEDICATEDLINEBACKUPRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h new file mode 100644 index 000000000..6cb4728f7 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.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_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteDnatEntryRequest : public RpcServiceRequest + { + + public: + DeleteDnatEntryRequest(); + ~DeleteDnatEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSagId()const; + void setSagId(const std::string& sagId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDnatEntryId()const; + void setDnatEntryId(const std::string& dnatEntryId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string sagId_; + std::string ownerAccount_; + long ownerId_; + std::string dnatEntryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryResult.h b/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryResult.h new file mode 100644 index 000000000..7a7ea407e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteDnatEntryResult : public ServiceResult + { + public: + + + DeleteDnatEntryResult(); + explicit DeleteDnatEntryResult(const std::string &payload); + ~DeleteDnatEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.h new file mode 100644 index 000000000..a8f52b51c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.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_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteFlowLogRequest : public RpcServiceRequest + { + + public: + DeleteFlowLogRequest(); + ~DeleteFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteFlowLogResult.h b/smartag/include/alibabacloud/smartag/model/DeleteFlowLogResult.h new file mode 100644 index 000000000..7e9939670 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteFlowLogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteFlowLogResult : public ServiceResult + { + public: + + + DeleteFlowLogResult(); + explicit DeleteFlowLogResult(const std::string &payload); + ~DeleteFlowLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h index 749ea0842..54b7e3547 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationRequest : public RpcServiceRequest - { - - public: - DeleteNetworkOptimizationRequest(); - ~DeleteNetworkOptimizationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationRequest : public RpcServiceRequest + { + + public: + DeleteNetworkOptimizationRequest(); + ~DeleteNetworkOptimizationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string networkOptId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h index e0ed9d0e9..30315796f 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationResult : public ServiceResult - { - public: - - - DeleteNetworkOptimizationResult(); - explicit DeleteNetworkOptimizationResult(const std::string &payload); - ~DeleteNetworkOptimizationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationResult : public ServiceResult + { + public: + + + DeleteNetworkOptimizationResult(); + explicit DeleteNetworkOptimizationResult(const std::string &payload); + ~DeleteNetworkOptimizationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h index ea0acdac1..b6bc1c501 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingRequest : public RpcServiceRequest - { - - public: - DeleteNetworkOptimizationSettingRequest(); - ~DeleteNetworkOptimizationSettingRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingRequest : public RpcServiceRequest + { + + public: + DeleteNetworkOptimizationSettingRequest(); + ~DeleteNetworkOptimizationSettingRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getType()const; void setType(const std::string& type); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string domain_; long ownerId_; std::string type_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h index 8e3ff3840..19ca1b062 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingResult : public ServiceResult - { - public: - - - DeleteNetworkOptimizationSettingResult(); - explicit DeleteNetworkOptimizationSettingResult(const std::string &payload); - ~DeleteNetworkOptimizationSettingResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingResult : public ServiceResult + { + public: + + + DeleteNetworkOptimizationSettingResult(); + explicit DeleteNetworkOptimizationSettingResult(const std::string &payload); + ~DeleteNetworkOptimizationSettingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.h new file mode 100644 index 000000000..27ebf656c --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.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_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosCarRequest : public RpcServiceRequest + { + + public: + DeleteQosCarRequest(); + ~DeleteQosCarRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + std::string getQosCarId()const; + void setQosCarId(const std::string& qosCarId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string qosId_; + std::string qosCarId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosCarResult.h b/smartag/include/alibabacloud/smartag/model/DeleteQosCarResult.h new file mode 100644 index 000000000..55e5fa046 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosCarResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosCarResult : public ServiceResult + { + public: + + + DeleteQosCarResult(); + explicit DeleteQosCarResult(const std::string &payload); + ~DeleteQosCarResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h new file mode 100644 index 000000000..4ea7c028f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.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_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosPolicyRequest : public RpcServiceRequest + { + + public: + DeleteQosPolicyRequest(); + ~DeleteQosPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQosPolicyId()const; + void setQosPolicyId(const std::string& qosPolicyId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + long resourceOwnerId_; + std::string qosPolicyId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyResult.h b/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyResult.h new file mode 100644 index 000000000..ee75f5ca0 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosPolicyResult : public ServiceResult + { + public: + + + DeleteQosPolicyResult(); + explicit DeleteQosPolicyResult(const std::string &payload); + ~DeleteQosPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteQosRequest.h new file mode 100644 index 000000000..4ec66509d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosRequest.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_SMARTAG_MODEL_DELETEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosRequest : public RpcServiceRequest + { + + public: + DeleteQosRequest(); + ~DeleteQosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosResult.h b/smartag/include/alibabacloud/smartag/model/DeleteQosResult.h new file mode 100644 index 000000000..45d17b7e5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosResult : public ServiceResult + { + public: + + + DeleteQosResult(); + explicit DeleteQosResult(const std::string &payload); + ~DeleteQosResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h index 9e0844c68..b9dc35d0d 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaRequest : public RpcServiceRequest - { - - public: - DeleteSAGLinkLevelHaRequest(); - ~DeleteSAGLinkLevelHaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaRequest : public RpcServiceRequest + { + + public: + DeleteSAGLinkLevelHaRequest(); + ~DeleteSAGLinkLevelHaRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHAREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h index 33641e09c..aa606c14a 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSAGLinkLevelHaResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaResult : public ServiceResult - { - public: - - - DeleteSAGLinkLevelHaResult(); - explicit DeleteSAGLinkLevelHaResult(const std::string &payload); - ~DeleteSAGLinkLevelHaResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSAGLinkLevelHaResult : public ServiceResult + { + public: + + + DeleteSAGLinkLevelHaResult(); + explicit DeleteSAGLinkLevelHaResult(const std::string &payload); + ~DeleteSAGLinkLevelHaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGLINKLEVELHARESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h index 0e7e4c881..ad17133b8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserRequest : public RpcServiceRequest - { - - public: - DeleteSmartAccessGatewayClientUserRequest(); - ~DeleteSmartAccessGatewayClientUserRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserRequest : public RpcServiceRequest + { + + public: + DeleteSmartAccessGatewayClientUserRequest(); + ~DeleteSmartAccessGatewayClientUserRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.h b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.h index 601ed03b9..d8c455d27 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserResult : public ServiceResult - { - public: - - - DeleteSmartAccessGatewayClientUserResult(); - explicit DeleteSmartAccessGatewayClientUserResult(const std::string &payload); - ~DeleteSmartAccessGatewayClientUserResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserResult : public ServiceResult + { + public: + + + DeleteSmartAccessGatewayClientUserResult(); + explicit DeleteSmartAccessGatewayClientUserResult(const std::string &payload); + ~DeleteSmartAccessGatewayClientUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h new file mode 100644 index 000000000..2bfb5e2d4 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.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_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSnatEntryRequest : public RpcServiceRequest + { + + public: + DeleteSnatEntryRequest(); + ~DeleteSnatEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryResult.h b/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryResult.h new file mode 100644 index 000000000..29d656c82 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DeleteSnatEntryResult : public ServiceResult + { + public: + + + DeleteSnatEntryResult(); + explicit DeleteSnatEntryResult(const std::string &payload); + ~DeleteSnatEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h index a293b8782..57b822f94 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeRequest : public RpcServiceRequest - { - - public: - DescribeACLAttributeRequest(); - ~DescribeACLAttributeRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeRequest : public RpcServiceRequest + { + + public: + DescribeACLAttributeRequest(); + ~DescribeACLAttributeRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setDirection(const std::string& direction); std::string getOrder()const; void setOrder(const std::string& order); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -67,9 +67,9 @@ namespace AlibabaCloud int pageNumber_; std::string direction_; std::string order_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h index 503632e96..80fccdc9b 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h @@ -1,72 +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_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeResult : public ServiceResult + { + public: struct Acr { std::string policy; - long gmtCreate; std::string description; - std::string destCidr; std::string sourcePortRange; std::string sourceCidr; int priority; std::string aclId; std::string acrId; - std::string ipProtocol; std::string destPortRange; std::string direction; + long gmtCreate; + std::string type; + std::string destCidr; + std::string ipProtocol; }; - - - DescribeACLAttributeResult(); - explicit DescribeACLAttributeResult(const std::string &payload); - ~DescribeACLAttributeResult(); + + + DescribeACLAttributeResult(); + explicit DescribeACLAttributeResult(const std::string &payload); + ~DescribeACLAttributeResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getAcrs()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector acrs_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h index 8da872acd..fc500e60c 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsRequest : public RpcServiceRequest - { - - public: - DescribeACLsRequest(); - ~DescribeACLsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsRequest : public RpcServiceRequest + { + + public: + DescribeACLsRequest(); + ~DescribeACLsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPageNumber()const; void setPageNumber(int pageNumber); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -64,9 +64,9 @@ namespace AlibabaCloud int pageSize_; long ownerId_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h index 74d3b2be5..f32d0a31b 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h @@ -1,63 +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_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsResult : public ServiceResult + { + public: struct Acl { std::string sagCount; std::string aclId; std::string name; }; - - - DescribeACLsResult(); - explicit DescribeACLsResult(const std::string &payload); - ~DescribeACLsResult(); + + + DescribeACLsResult(); + explicit DescribeACLsResult(const std::string &payload); + ~DescribeACLsResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getAcls()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector acls_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h new file mode 100644 index 000000000..30e47f09b --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.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_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeBindableSmartAccessGatewaysRequest : public RpcServiceRequest + { + + public: + DescribeBindableSmartAccessGatewaysRequest(); + ~DescribeBindableSmartAccessGatewaysRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getCrossAccount()const; + void setCrossAccount(bool crossAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCcnId()const; + void setCcnId(const std::string& ccnId); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + bool crossAccount_; + std::string ownerAccount_; + std::string ccnId_; + std::string pageSize_; + long ownerId_; + std::string pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysResult.h b/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysResult.h new file mode 100644 index 000000000..04c6c4f4d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysResult.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_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeBindableSmartAccessGatewaysResult : public ServiceResult + { + public: + struct SmartAccessGateway + { + long smartAGUid; + std::string smartAGId; + std::string name; + }; + + + DescribeBindableSmartAccessGatewaysResult(); + explicit DescribeBindableSmartAccessGatewaysResult(const std::string &payload); + ~DescribeBindableSmartAccessGatewaysResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getSmartAccessGateways()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector smartAccessGateways_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h index 2fa726fa8..0c9b7173d 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h @@ -1,45 +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_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksRequest : public RpcServiceRequest + { struct Tag { std::string value; std::string key; }; - - public: - DescribeCloudConnectNetworksRequest(); - ~DescribeCloudConnectNetworksRequest(); - + + public: + DescribeCloudConnectNetworksRequest(); + ~DescribeCloudConnectNetworksRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -60,8 +60,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getPageNumber()const; void setPageNumber(const std::string& pageNumber); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -72,9 +72,9 @@ namespace AlibabaCloud std::vector tag_; long ownerId_; std::string pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h index c271e133f..2f977d229 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksResult : public ServiceResult + { + public: struct CloudConnectNetwork { struct Tag @@ -41,37 +41,38 @@ namespace AlibabaCloud }; bool isDefault; std::string description; - std::string ccnId; + std::string interworkingStatus; std::string availableCloudBoxCount; long createTime; std::string associatedCenOwnerId; std::string cidrBlock; + std::string name; + std::string ccnId; std::string associatedCenId; std::string snatCidrBlock; std::vector tags; std::string associatedCloudBoxCount; - std::string name; }; - - - DescribeCloudConnectNetworksResult(); - explicit DescribeCloudConnectNetworksResult(const std::string &payload); - ~DescribeCloudConnectNetworksResult(); + + + DescribeCloudConnectNetworksResult(); + explicit DescribeCloudConnectNetworksResult(const std::string &payload); + ~DescribeCloudConnectNetworksResult(); std::vector getCloudConnectNetworks()const; int getTotalCount()const; int getPageSize()const; int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector cloudConnectNetworks_; int totalCount_; int pageSize_; int pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h new file mode 100644 index 000000000..04fe2855e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.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_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeDnatEntriesRequest : public RpcServiceRequest + { + + public: + DescribeDnatEntriesRequest(); + ~DescribeDnatEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSagId()const; + void setSagId(const std::string& sagId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getType()const; + void setType(const std::string& type); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string sagId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + std::string type_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h new file mode 100644 index 000000000..a382826f3 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.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_SMARTAG_MODEL_DESCRIBEDNATENTRIESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeDnatEntriesResult : public ServiceResult + { + public: + struct DnatEntry + { + std::string externalPort; + std::string type; + std::string externalIp; + std::string ipProtocol; + std::string sagId; + std::string internalPort; + std::string internalIp; + std::string dnatEntryId; + }; + + + DescribeDnatEntriesResult(); + explicit DescribeDnatEntriesResult(const std::string &payload); + ~DescribeDnatEntriesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDnatEntries()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector dnatEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h new file mode 100644 index 000000000..4b870fce4 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.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_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogSagsRequest : public RpcServiceRequest + { + + public: + DescribeFlowLogSagsRequest(); + ~DescribeFlowLogSagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + std::string flowLogId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsResult.h new file mode 100644 index 000000000..8c2fdfd9e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsResult.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_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogSagsResult : public ServiceResult + { + public: + struct Sag + { + std::string description; + std::string smartAGId; + std::string name; + }; + + + DescribeFlowLogSagsResult(); + explicit DescribeFlowLogSagsResult(const std::string &payload); + ~DescribeFlowLogSagsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getSags()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector sags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h new file mode 100644 index 000000000..11c061ba9 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogsRequest : public RpcServiceRequest + { + + public: + DescribeFlowLogsRequest(); + ~DescribeFlowLogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getOutputType()const; + void setOutputType(const std::string& outputType); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + std::string getFlowLogName()const; + void setFlowLogName(const std::string& flowLogName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string outputType_; + std::string flowLogId_; + std::string flowLogName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.h new file mode 100644 index 000000000..83aee5f09 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.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_SMARTAG_MODEL_DESCRIBEFLOWLOGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogsResult : public ServiceResult + { + public: + struct FlowLogSetType + { + std::string netflowServerPort; + std::string status; + std::string logstoreName; + std::string description; + int activeAging; + std::string projectName; + std::string netflowServerIp; + std::string netflowVersion; + int inactiveAging; + std::string flowLogId; + std::string name; + std::string slsRegionId; + std::string outputType; + }; + + + DescribeFlowLogsResult(); + explicit DescribeFlowLogsResult(const std::string &payload); + ~DescribeFlowLogsResult(); + int getTotalCount()const; + std::vector getFlowLogs()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector flowLogs_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h index 803b92ceb..cd59568a2 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesRequest : public RpcServiceRequest - { - - public: - DescribeGrantRulesRequest(); - ~DescribeGrantRulesRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesRequest : public RpcServiceRequest + { + + public: + DescribeGrantRulesRequest(); + ~DescribeGrantRulesRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getPageNumber()const; void setPageNumber(const std::string& pageNumber); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string associatedCcnId_; long ownerId_; std::string pageNumber_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h index a12098fd0..e0a4348fc 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h @@ -1,68 +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_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesResult : public ServiceResult + { + public: struct GrantRule { long gmtCreate; long cenUid; std::string ccnInstanceId; std::string grantRuleId; - long ccnId; std::string cenInstanceId; long gmtModified; + long ccnUid; std::string regionId; }; - - - DescribeGrantRulesResult(); - explicit DescribeGrantRulesResult(const std::string &payload); - ~DescribeGrantRulesResult(); + + + DescribeGrantRulesResult(); + explicit DescribeGrantRulesResult(const std::string &payload); + ~DescribeGrantRulesResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getGrantRules()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector grantRules_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h new file mode 100644 index 000000000..3dd6a3154 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.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_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantSagRulesRequest : public RpcServiceRequest + { + + public: + DescribeGrantSagRulesRequest(); + ~DescribeGrantSagRulesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string smartAGId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h new file mode 100644 index 000000000..d330161df --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantSagRulesResult : public ServiceResult + { + public: + struct GrantRule + { + std::string instanceId; + std::string ccnInstanceId; + long createTime; + long ccnUid; + std::string smartAGId; + }; + + + DescribeGrantSagRulesResult(); + explicit DescribeGrantSagRulesResult(const std::string &payload); + ~DescribeGrantSagRulesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getGrantRules()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector grantRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h index 365a2f4b2..4221ec84f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkOptimizationSagsRequest(); - ~DescribeNetworkOptimizationSagsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkOptimizationSagsRequest(); + ~DescribeNetworkOptimizationSagsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -43,27 +43,27 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getNetworkOptId()const; void setNetworkOptId(const std::string& networkOptId); - int getPageNo()const; - void setPageNo(int pageNo); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); int getPageSize()const; void setPageSize(int pageSize); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string networkOptId_; - int pageNo_; std::string ownerAccount_; int pageSize_; long ownerId_; - - }; - } - } -} + int pageNumber_; + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h index 75eef72de..27151e817 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsResult : public ServiceResult + { + public: struct SmartAccessGateway { long endTime; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string maxBandwidth; std::string name; }; - - - DescribeNetworkOptimizationSagsResult(); - explicit DescribeNetworkOptimizationSagsResult(const std::string &payload); - ~DescribeNetworkOptimizationSagsResult(); + + + DescribeNetworkOptimizationSagsResult(); + explicit DescribeNetworkOptimizationSagsResult(const std::string &payload); + ~DescribeNetworkOptimizationSagsResult(); int getTotalCount()const; int getPageSize()const; + int getPageNumber()const; std::vector getSmartAccessGateways()const; - int getPageNo()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; + int pageNumber_; std::vector smartAccessGateways_; - int pageNo_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h index 32eb09a2e..42b7fbf2b 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkOptimizationSettingsRequest(); - ~DescribeNetworkOptimizationSettingsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkOptimizationSettingsRequest(); + ~DescribeNetworkOptimizationSettingsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -43,27 +43,27 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getNetworkOptId()const; void setNetworkOptId(const std::string& networkOptId); - int getPageNo()const; - void setPageNo(int pageNo); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); int getPageSize()const; void setPageSize(int pageSize); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string networkOptId_; - int pageNo_; std::string ownerAccount_; int pageSize_; long ownerId_; - - }; - } - } -} + int pageNumber_; + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h index fd709e831..635d01b74 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h @@ -1,62 +1,62 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsResult : public ServiceResult + { + public: struct Setting { std::string type; std::string domain; }; - - - DescribeNetworkOptimizationSettingsResult(); - explicit DescribeNetworkOptimizationSettingsResult(const std::string &payload); - ~DescribeNetworkOptimizationSettingsResult(); + + + DescribeNetworkOptimizationSettingsResult(); + explicit DescribeNetworkOptimizationSettingsResult(const std::string &payload); + ~DescribeNetworkOptimizationSettingsResult(); int getTotalCount()const; int getPageSize()const; - int getPageNo()const; + int getPageNumber()const; std::vector getSettings()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; - int pageNo_; + int pageNumber_; std::vector settings_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h index 69d109c5d..6eba44d19 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkOptimizationsRequest(); - ~DescribeNetworkOptimizationsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkOptimizationsRequest(); + ~DescribeNetworkOptimizationsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -43,8 +43,6 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getNetworkOptId()const; void setNetworkOptId(const std::string& networkOptId); - int getPageNo()const; - void setPageNo(int pageNo); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); std::string getCcnId()const; @@ -55,21 +53,23 @@ namespace AlibabaCloud void setPageSize(int pageSize); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string networkOptId_; - int pageNo_; std::string ownerAccount_; std::string ccnId_; std::string name_; int pageSize_; long ownerId_; - - }; - } - } -} + int pageNumber_; + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h index e5eb25d37..a60dd6e67 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsResult : public ServiceResult + { + public: struct NetworkOptimization { int sagCount; @@ -41,26 +41,26 @@ namespace AlibabaCloud std::string ccnId; std::string name; }; - - - DescribeNetworkOptimizationsResult(); - explicit DescribeNetworkOptimizationsResult(const std::string &payload); - ~DescribeNetworkOptimizationsResult(); + + + DescribeNetworkOptimizationsResult(); + explicit DescribeNetworkOptimizationsResult(const std::string &payload); + ~DescribeNetworkOptimizationsResult(); std::vector getNetworkOptimizations()const; int getTotalCount()const; int getPageSize()const; - int getPageNo()const; - - protected: - void parse(const std::string &payload); - private: + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: std::vector networkOptimizations_; int totalCount_; int pageSize_; - int pageNo_; - - }; - } - } -} + int pageNumber_; + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.h new file mode 100644 index 000000000..76b4b3655 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.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_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosCarsRequest : public RpcServiceRequest + { + + public: + DescribeQosCarsRequest(); + ~DescribeQosCarsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + std::string getQosCarId()const; + void setQosCarId(const std::string& qosCarId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getOrder()const; + void setOrder(const std::string& order); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string description_; + long ownerId_; + std::string qosId_; + std::string qosCarId_; + int pageNumber_; + std::string order_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h new file mode 100644 index 000000000..8b24440bf --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.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_SMARTAG_MODEL_DESCRIBEQOSCARSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosCarsResult : public ServiceResult + { + public: + struct QosCar + { + int minBandwidthAbs; + std::string description; + std::string qosCarId; + int priority; + int maxBandwidthAbs; + int maxBandwidthPercent; + std::string qosId; + std::string percentSourceType; + int minBandwidthPercent; + std::string limitType; + }; + + + DescribeQosCarsResult(); + explicit DescribeQosCarsResult(const std::string &payload); + ~DescribeQosCarsResult(); + int getTotalCount()const; + std::vector getQosCars()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector qosCars_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h new file mode 100644 index 000000000..134a2540f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.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_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosPoliciesRequest : public RpcServiceRequest + { + + public: + DescribeQosPoliciesRequest(); + ~DescribeQosPoliciesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQosPolicyId()const; + void setQosPolicyId(const std::string& qosPolicyId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getOrder()const; + void setOrder(const std::string& order); + + private: + long resourceOwnerId_; + std::string qosPolicyId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string description_; + long ownerId_; + std::string qosId_; + int pageNumber_; + std::string order_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h new file mode 100644 index 000000000..12ad6d233 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.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_SMARTAG_MODEL_DESCRIBEQOSPOLICIESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosPoliciesResult : public ServiceResult + { + public: + struct QosPolicy + { + std::string description; + std::string destCidr; + std::string qosPolicyId; + std::string sourcePortRange; + long endTime; + std::string sourceCidr; + int priority; + std::string startTime; + std::string qosId; + std::string ipProtocol; + std::string destPortRange; + }; + + + DescribeQosPoliciesResult(); + explicit DescribeQosPoliciesResult(const std::string &payload); + ~DescribeQosPoliciesResult(); + std::vector getQosPolicies()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector qosPolicies_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.h new file mode 100644 index 000000000..e72a6eff0 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.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_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosesRequest : public RpcServiceRequest + { + + public: + DescribeQosesRequest(); + ~DescribeQosesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQosName()const; + void setQosName(const std::string& qosName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getQosIds()const; + void setQosIds(const std::string& qosIds); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string qosName_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string qosIds_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosesResult.h new file mode 100644 index 000000000..a96792bf5 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosesResult.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_SMARTAG_MODEL_DESCRIBEQOSESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosesResult : public ServiceResult + { + public: + struct Qos + { + std::string sagCount; + std::string qosId; + std::string smartAGIds; + std::string qosName; + }; + + + DescribeQosesResult(); + explicit DescribeQosesResult(const std::string &payload); + ~DescribeQosesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getQoses()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector qoses_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h index 7568b1aa9..3c930f868 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setAcceptLanguage(const std::string& acceptLanguage); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string acceptLanguage_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h index ff2a704a8..f0a3c2300 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRegionsResult.h @@ -1,57 +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_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsResult : public ServiceResult + { + public: struct Region { std::string regionId; std::string regionEndpoint; std::string localName; }; - - - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); std::vector getRegions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector regions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h index b22f8d14a..dbc0252c7 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeSagOnlineClientStatisticsRequest(); - ~DescribeSagOnlineClientStatisticsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeSagOnlineClientStatisticsRequest(); + ~DescribeSagOnlineClientStatisticsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGIds(const std::vector& smartAGIds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::vector smartAGIds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h index eb943a6bd..8a1f5ae77 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsResult : public ServiceResult + { + public: struct Statistics { std::string onlineCount; std::string smartAGId; }; - - - DescribeSagOnlineClientStatisticsResult(); - explicit DescribeSagOnlineClientStatisticsResult(const std::string &payload); - ~DescribeSagOnlineClientStatisticsResult(); + + + DescribeSagOnlineClientStatisticsResult(); + explicit DescribeSagOnlineClientStatisticsResult(const std::string &payload); + ~DescribeSagOnlineClientStatisticsResult(); std::vector getSagStatistics()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector sagStatistics_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h index ec8ddc23a..34a80beef 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressRequest : public RpcServiceRequest - { - - public: - DescribeSagRouteableAddressRequest(); - ~DescribeSagRouteableAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressRequest : public RpcServiceRequest + { + + public: + DescribeSagRouteableAddressRequest(); + ~DescribeSagRouteableAddressRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string sagId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h index cb59ceebe..5c34a32f3 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressResult : public ServiceResult - { - public: - - - DescribeSagRouteableAddressResult(); - explicit DescribeSagRouteableAddressResult(const std::string &payload); - ~DescribeSagRouteableAddressResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressResult : public ServiceResult + { + public: + + + DescribeSagRouteableAddressResult(); + explicit DescribeSagRouteableAddressResult(const std::string &payload); + ~DescribeSagRouteableAddressResult(); std::string getOrigin()const; std::string getRouteableAddress()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string origin_; std::string routeableAddress_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h new file mode 100644 index 000000000..be1ffb007 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayAttributeRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayAttributeRequest(); + ~DescribeSmartAccessGatewayAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h new file mode 100644 index 000000000..32390b2eb --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayAttributeResult : public ServiceResult + { + public: + struct Link + { + std::string status; + std::string type; + long endTime; + std::string instanceId; + std::string relateInstanceId; + std::string bandwidth; + std::string relateInstanceRegionId; + std::string commodityType; + }; + struct Device + { + std::string monitorVersion; + long softwareVersion; + std::string serialNumber; + std::string haState; + std::string hcState; + }; + + + DescribeSmartAccessGatewayAttributeResult(); + explicit DescribeSmartAccessGatewayAttributeResult(const std::string &payload); + ~DescribeSmartAccessGatewayAttributeResult(); + std::string getStatus()const; + std::string getDescription()const; + long getEndTime()const; + int getUserCount()const; + std::string getMaxBandwidth()const; + std::string getAssociatedCcnName()const; + long getCreateTime()const; + long getDataPlan()const; + std::string getCidrBlock()const; + std::string getCity()const; + std::vector getDevices()const; + std::string getName()const; + std::string getSerialNumber()const; + std::string getRoutingStrategy()const; + std::vector getLinks()const; + std::string getAssociatedCcnId()const; + std::string getSmartAGId()const; + std::string getInstanceType()const; + int getSecurityLockThreshold()const; + std::string getAclIds()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string description_; + long endTime_; + int userCount_; + std::string maxBandwidth_; + std::string associatedCcnName_; + long createTime_; + long dataPlan_; + std::string cidrBlock_; + std::string city_; + std::vector devices_; + std::string name_; + std::string serialNumber_; + std::string routingStrategy_; + std::vector links_; + std::string associatedCcnId_; + std::string smartAGId_; + std::string instanceType_; + int securityLockThreshold_; + std::string aclIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h index 03eb9f95d..587d3796e 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h @@ -1,48 +1,46 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayClientUsersRequest(); - ~DescribeSmartAccessGatewayClientUsersRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayClientUsersRequest(); + ~DescribeSmartAccessGatewayClientUsersRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; void setRegionId(const std::string& regionId); - int getPageNo()const; - void setPageNo(int pageNo); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); int getPageSize()const; @@ -51,22 +49,24 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; - int pageNo_; std::string ownerAccount_; int pageSize_; std::string smartAGId_; long ownerId_; + int pageNumber_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h index c54379d9f..474840980 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h @@ -1,64 +1,65 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersResult : public ServiceResult + { + public: struct User { std::string userName; std::string userMail; + int state; int bandwidth; std::string clientIp; }; - - - DescribeSmartAccessGatewayClientUsersResult(); - explicit DescribeSmartAccessGatewayClientUsersResult(const std::string &payload); - ~DescribeSmartAccessGatewayClientUsersResult(); + + + DescribeSmartAccessGatewayClientUsersResult(); + explicit DescribeSmartAccessGatewayClientUsersResult(const std::string &payload); + ~DescribeSmartAccessGatewayClientUsersResult(); int getTotalCount()const; int getPageSize()const; - int getPageNo()const; + int getPageNumber()const; std::vector getUsers()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; - int pageNo_; + int pageNumber_; std::vector users_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h index 52287fbc0..2b4820c1a 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayHaRequest(); - ~DescribeSmartAccessGatewayHaRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayHaRequest(); + ~DescribeSmartAccessGatewayHaRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h index 822b5b9fa..0d0aa2cff 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaResult.h @@ -1,37 +1,37 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaResult : public ServiceResult + { + public: struct LinkBackupInfoListItem { std::string backupLinkState; @@ -41,30 +41,30 @@ namespace AlibabaCloud std::string mainLinkId; std::string linkLevelBackupState; }; - - - DescribeSmartAccessGatewayHaResult(); - explicit DescribeSmartAccessGatewayHaResult(const std::string &payload); - ~DescribeSmartAccessGatewayHaResult(); + + + DescribeSmartAccessGatewayHaResult(); + explicit DescribeSmartAccessGatewayHaResult(const std::string &payload); + ~DescribeSmartAccessGatewayHaResult(); std::string getDeviceLevelBackupState()const; std::vector getLinkBackupInfoList()const; std::string getBackupDeviceId()const; std::string getSmartAGId()const; std::string getDeviceLevelBackupType()const; std::string getMainDeviceId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string deviceLevelBackupState_; std::vector linkBackupInfoList_; std::string backupDeviceId_; std::string smartAGId_; std::string deviceLevelBackupType_; std::string mainDeviceId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHARESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.h new file mode 100644 index 000000000..4df6a52aa --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesRequest.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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayRoutesRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayRoutesRequest(); + ~DescribeSmartAccessGatewayRoutesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPageNubmer()const; + void setPageNubmer(const std::string& pageNubmer); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string pageSize_; + std::string smartAGId_; + long ownerId_; + std::string pageNubmer_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.h new file mode 100644 index 000000000..a26cdf75f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayRoutesResult.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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayRoutesResult : public ServiceResult + { + public: + struct Route + { + std::string destCidr; + std::string state; + std::string routeSource; + std::string sourceType; + std::string sourceInstanceId; + std::string conflictInfo; + }; + + + DescribeSmartAccessGatewayRoutesResult(); + explicit DescribeSmartAccessGatewayRoutesResult(const std::string &payload); + ~DescribeSmartAccessGatewayRoutesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNubmer()const; + std::vector getRoutes()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNubmer_; + std::vector routes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYROUTESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h index d40df9fc2..2509dbb38 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayVersionsRequest(); - ~DescribeSmartAccessGatewayVersionsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewayVersionsRequest(); + ~DescribeSmartAccessGatewayVersionsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h index 0fe6745ad..9149511ba 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsResult.h @@ -1,57 +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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsResult : public ServiceResult + { + public: struct SmartAGVersion { std::string versionCode; long createTime; std::string versionName; }; - - - DescribeSmartAccessGatewayVersionsResult(); - explicit DescribeSmartAccessGatewayVersionsResult(const std::string &payload); - ~DescribeSmartAccessGatewayVersionsResult(); + + + DescribeSmartAccessGatewayVersionsResult(); + explicit DescribeSmartAccessGatewayVersionsResult(const std::string &payload); + ~DescribeSmartAccessGatewayVersionsResult(); std::vector getSmartAGVersions()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector smartAGVersions_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h index 6fdb7f831..60ff9c7e0 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewaysRequest(); - ~DescribeSmartAccessGatewaysRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysRequest : public RpcServiceRequest + { + + public: + DescribeSmartAccessGatewaysRequest(); + ~DescribeSmartAccessGatewaysRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSerialNumber()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud void setInstanceType(const std::string& instanceType); std::string getStatus()const; void setStatus(const std::string& status); - - private: + + private: long resourceOwnerId_; std::string serialNumber_; std::string resourceOwnerAccount_; @@ -82,9 +82,9 @@ namespace AlibabaCloud std::string smartAGId_; std::string instanceType_; std::string status_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h index 09bb51547..6f9ef886f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h @@ -1,84 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysResult : public ServiceResult + { + public: struct SmartAccessGateway { - struct SnatEntry + struct Link { - std::string cidrBlock; - std::string snatIp; + std::string status; + std::string type; + long endTime; + std::string instanceId; + std::string relateInstanceId; + std::string bandwidth; + std::string relateInstanceRegionId; + std::string commodityType; }; - std::string status; std::string description; - std::vector snatEntries; + int upBandwidth4G; long endTime; int userCount; std::string maxBandwidth; std::string associatedCcnName; - long createTime; - long dataPlan; std::string cidrBlock; - std::string city; - std::string hardwareVersion; + int upBandwidthWan; + std::string qosIds; std::string name; - std::string softwareVersion; - std::string serialNumber; + std::string routingStrategy; std::string associatedCcnId; + std::string backupSoftwareVersion; std::string smartAGId; int securityLockThreshold; + std::string status; + long createTime; + long dataPlan; + std::string city; + std::string hardwareVersion; + long smartAGUid; + std::string softwareVersion; + std::string serialNumber; + std::vector links; std::string aclIds; }; - - - DescribeSmartAccessGatewaysResult(); - explicit DescribeSmartAccessGatewaysResult(const std::string &payload); - ~DescribeSmartAccessGatewaysResult(); + + + DescribeSmartAccessGatewaysResult(); + explicit DescribeSmartAccessGatewaysResult(const std::string &payload); + ~DescribeSmartAccessGatewaysResult(); int getTotalCount()const; int getPageSize()const; int getPageNumber()const; std::vector getSmartAccessGateways()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int totalCount_; int pageSize_; int pageNumber_; std::vector smartAccessGateways_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h new file mode 100644 index 000000000..0f08222a2 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.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_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSnatEntriesRequest : public RpcServiceRequest + { + + public: + DescribeSnatEntriesRequest(); + ~DescribeSnatEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string smartAGId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesResult.h new file mode 100644 index 000000000..c5bf5df39 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesResult.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_SMARTAG_MODEL_DESCRIBESNATENTRIESRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeSnatEntriesResult : public ServiceResult + { + public: + struct SnatEntry + { + std::string instanceId; + long createTime; + std::string cidrBlock; + std::string snatIp; + }; + + + DescribeSnatEntriesResult(); + explicit DescribeSnatEntriesResult(const std::string &payload); + ~DescribeSnatEntriesResult(); + int getTotalCount()const; + std::vector getSnatEntries()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector snatEntries_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h new file mode 100644 index 000000000..5f8993924 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.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_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUnbindFlowLogSagsRequest : public RpcServiceRequest + { + + public: + DescribeUnbindFlowLogSagsRequest(); + ~DescribeUnbindFlowLogSagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsResult.h new file mode 100644 index 000000000..35d74dd50 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsResult.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_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUnbindFlowLogSagsResult : public ServiceResult + { + public: + struct Sag + { + std::string description; + std::string smartAGId; + std::string name; + }; + + + DescribeUnbindFlowLogSagsResult(); + explicit DescribeUnbindFlowLogSagsResult(const std::string &payload); + ~DescribeUnbindFlowLogSagsResult(); + int getCount()const; + std::vector getSags()const; + + protected: + void parse(const std::string &payload); + private: + int count_; + std::vector sags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h index 893c2d358..93401c971 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeUserFlowStatisticsRequest(); - ~DescribeUserFlowStatisticsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeUserFlowStatisticsRequest(); + ~DescribeUserFlowStatisticsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setUserNames(const std::vector& userNames); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string statisticsDate_; std::vector userNames_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h index 9a4ba73a5..c9afd3c24 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsResult : public ServiceResult + { + public: struct Statistics { std::string userName; std::string totalBytes; }; - - - DescribeUserFlowStatisticsResult(); - explicit DescribeUserFlowStatisticsResult(const std::string &payload); - ~DescribeUserFlowStatisticsResult(); + + + DescribeUserFlowStatisticsResult(); + explicit DescribeUserFlowStatisticsResult(const std::string &payload); + ~DescribeUserFlowStatisticsResult(); std::vector getSagStatistics()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector sagStatistics_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h index 192bc3868..3b172acd5 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeUserOnlineClientStatisticsRequest(); - ~DescribeUserOnlineClientStatisticsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeUserOnlineClientStatisticsRequest(); + ~DescribeUserOnlineClientStatisticsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setUserNames(const std::vector& userNames); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string smartAGId_; std::vector userNames_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h index 503420232..54eae4f99 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsResult : public ServiceResult + { + public: struct Statistics { std::string userName; std::string onlineCount; }; - - - DescribeUserOnlineClientStatisticsResult(); - explicit DescribeUserOnlineClientStatisticsResult(const std::string &payload); - ~DescribeUserOnlineClientStatisticsResult(); + + + DescribeUserOnlineClientStatisticsResult(); + explicit DescribeUserOnlineClientStatisticsResult(const std::string &payload); + ~DescribeUserOnlineClientStatisticsResult(); std::vector getUserStatistics()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector userStatistics_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h index 8fe6ad1b7..c07005dd5 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsRequest : public RpcServiceRequest - { - - public: - DescribeUserOnlineClientsRequest(); - ~DescribeUserOnlineClientsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsRequest : public RpcServiceRequest + { + + public: + DescribeUserOnlineClientsRequest(); + ~DescribeUserOnlineClientsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h index 8eb17c870..1d56abd4f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h @@ -1,56 +1,56 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsResult : public ServiceResult - { - public: +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsResult : public ServiceResult + { + public: struct User { std::string onlineTime; std::string clientIp; }; - - - DescribeUserOnlineClientsResult(); - explicit DescribeUserOnlineClientsResult(const std::string &payload); - ~DescribeUserOnlineClientsResult(); + + + DescribeUserOnlineClientsResult(); + explicit DescribeUserOnlineClientsResult(const std::string &payload); + ~DescribeUserOnlineClientsResult(); std::vector getUsers()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::vector users_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h index 104e7e562..5cecf21d4 100644 --- a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsRequest : public RpcServiceRequest - { - - public: - DetachNetworkOptimizationSagsRequest(); - ~DetachNetworkOptimizationSagsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsRequest : public RpcServiceRequest + { + + public: + DetachNetworkOptimizationSagsRequest(); + ~DetachNetworkOptimizationSagsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGIds(const std::vector& smartAGIds); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::vector smartAGIds_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h index d17a4923e..71e218e6a 100644 --- a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsResult : public ServiceResult - { - public: - - - DetachNetworkOptimizationSagsResult(); - explicit DetachNetworkOptimizationSagsResult(const std::string &payload); - ~DetachNetworkOptimizationSagsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsResult : public ServiceResult + { + public: + + + DetachNetworkOptimizationSagsResult(); + explicit DetachNetworkOptimizationSagsResult(const std::string &payload); + ~DetachNetworkOptimizationSagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h b/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h new file mode 100644 index 000000000..2af0180cf --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.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_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAccessGatewayUserRequest : public RpcServiceRequest + { + + public: + DisableSmartAccessGatewayUserRequest(); + ~DisableSmartAccessGatewayUserRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserResult.h b/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserResult.h new file mode 100644 index 000000000..64ac260ea --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAccessGatewayUserResult : public ServiceResult + { + public: + + + DisableSmartAccessGatewayUserResult(); + explicit DisableSmartAccessGatewayUserResult(const std::string &payload); + ~DisableSmartAccessGatewayUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h b/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h index d3367b01e..43113051f 100644 --- a/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLRequest : public RpcServiceRequest - { - - public: - DisassociateACLRequest(); - ~DisassociateACLRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLRequest : public RpcServiceRequest + { + + public: + DisassociateACLRequest(); + ~DisassociateACLRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateACLResult.h b/smartag/include/alibabacloud/smartag/model/DisassociateACLResult.h index 6bfc119f1..14932e117 100644 --- a/smartag/include/alibabacloud/smartag/model/DisassociateACLResult.h +++ b/smartag/include/alibabacloud/smartag/model/DisassociateACLResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLResult : public ServiceResult - { - public: - - - DisassociateACLResult(); - explicit DisassociateACLResult(const std::string &payload); - ~DisassociateACLResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLResult : public ServiceResult + { + public: + + + DisassociateACLResult(); + explicit DisassociateACLResult(const std::string &payload); + ~DisassociateACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h new file mode 100644 index 000000000..adaf1ba9e --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.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_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateFlowLogRequest : public RpcServiceRequest + { + + public: + DisassociateFlowLogRequest(); + ~DisassociateFlowLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogResult.h b/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogResult.h new file mode 100644 index 000000000..6574134af --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateFlowLogResult : public ServiceResult + { + public: + + + DisassociateFlowLogResult(); + explicit DisassociateFlowLogResult(const std::string &payload); + ~DisassociateFlowLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.h b/smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.h new file mode 100644 index 000000000..b0e37890f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.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_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateQosRequest : public RpcServiceRequest + { + + public: + DisassociateQosRequest(); + ~DisassociateQosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateQosResult.h b/smartag/include/alibabacloud/smartag/model/DisassociateQosResult.h new file mode 100644 index 000000000..f9015f05f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/DisassociateQosResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DisassociateQosResult : public ServiceResult + { + public: + + + DisassociateQosResult(); + explicit DisassociateQosResult(const std::string &payload); + ~DisassociateQosResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h index 476228473..c62441f20 100644 --- a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - DowngradeSmartAccessGatewayRequest(); - ~DowngradeSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + DowngradeSmartAccessGatewayRequest(); + ~DowngradeSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); bool getAutoPay()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); long getDataPlan()const; void setDataPlan(long dataPlan); - - private: + + private: long resourceOwnerId_; bool autoPay_; long bandWidthSpec_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; long dataPlan_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h index 512378449..7365b58b6 100644 --- a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayResult.h @@ -1,51 +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_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayResult : public ServiceResult - { - public: - - - DowngradeSmartAccessGatewayResult(); - explicit DowngradeSmartAccessGatewayResult(const std::string &payload); - ~DowngradeSmartAccessGatewayResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayResult : public ServiceResult + { + public: + + + DowngradeSmartAccessGatewayResult(); + explicit DowngradeSmartAccessGatewayResult(const std::string &payload); + ~DowngradeSmartAccessGatewayResult(); std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h b/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h new file mode 100644 index 000000000..8a0502323 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.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_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAccessGatewayUserRequest : public RpcServiceRequest + { + + public: + EnableSmartAccessGatewayUserRequest(); + ~EnableSmartAccessGatewayUserRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserResult.h b/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserResult.h new file mode 100644 index 000000000..86ca5207d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAccessGatewayUserResult : public ServiceResult + { + public: + + + EnableSmartAccessGatewayUserResult(); + explicit EnableSmartAccessGatewayUserResult(const std::string &payload); + ~EnableSmartAccessGatewayUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h index 145abdf84..1e1f529e6 100644 --- a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitRequest : public RpcServiceRequest - { - - public: - GetCloudConnectNetworkUseLimitRequest(); - ~GetCloudConnectNetworkUseLimitRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitRequest : public RpcServiceRequest + { + + public: + GetCloudConnectNetworkUseLimitRequest(); + ~GetCloudConnectNetworkUseLimitRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h index b4d340e87..bfee30bd6 100644 --- a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h +++ b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitResult : public ServiceResult - { - public: - - - GetCloudConnectNetworkUseLimitResult(); - explicit GetCloudConnectNetworkUseLimitResult(const std::string &payload); - ~GetCloudConnectNetworkUseLimitResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitResult : public ServiceResult + { + public: + + + GetCloudConnectNetworkUseLimitResult(); + explicit GetCloudConnectNetworkUseLimitResult(const std::string &payload); + ~GetCloudConnectNetworkUseLimitResult(); int getUsedAmount()const; int getTotalAmount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int usedAmount_; int totalAmount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h index 973c4cac6..cfd50d0ac 100644 --- a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitRequest : public RpcServiceRequest - { - - public: - GetSmartAccessGatewayUseLimitRequest(); - ~GetSmartAccessGatewayUseLimitRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitRequest : public RpcServiceRequest + { + + public: + GetSmartAccessGatewayUseLimitRequest(); + ~GetSmartAccessGatewayUseLimitRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -45,16 +45,16 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h index 2b6354754..6f799d750 100644 --- a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitResult.h @@ -1,53 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitResult : public ServiceResult - { - public: - - - GetSmartAccessGatewayUseLimitResult(); - explicit GetSmartAccessGatewayUseLimitResult(const std::string &payload); - ~GetSmartAccessGatewayUseLimitResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitResult : public ServiceResult + { + public: + + + GetSmartAccessGatewayUseLimitResult(); + explicit GetSmartAccessGatewayUseLimitResult(const std::string &payload); + ~GetSmartAccessGatewayUseLimitResult(); int getUsedAmount()const; int getTotalAmount()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: int usedAmount_; int totalAmount_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h index 626e286c1..84a965719 100644 --- a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnRequest : public RpcServiceRequest - { - - public: - GrantInstanceToCbnRequest(); - ~GrantInstanceToCbnRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnRequest : public RpcServiceRequest + { + + public: + GrantInstanceToCbnRequest(); + ~GrantInstanceToCbnRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setCcnInstanceId(const std::string& ccnInstanceId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string ccnInstanceId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnResult.h b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnResult.h index 9d551b431..b0faddbea 100644 --- a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnResult.h +++ b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnResult : public ServiceResult - { - public: - - - GrantInstanceToCbnResult(); - explicit GrantInstanceToCbnResult(const std::string &payload); - ~GrantInstanceToCbnResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnResult : public ServiceResult + { + public: + + + GrantInstanceToCbnResult(); + explicit GrantInstanceToCbnResult(const std::string &payload); + ~GrantInstanceToCbnResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h new file mode 100644 index 000000000..02bca8379 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.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_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GrantSagInstanceToCcnRequest : public RpcServiceRequest + { + + public: + GrantSagInstanceToCcnRequest(); + ~GrantSagInstanceToCcnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCcnUid()const; + void setCcnUid(long ccnUid); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getCcnInstanceId()const; + void setCcnInstanceId(const std::string& ccnInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + long ccnUid_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + std::string ccnInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnResult.h b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnResult.h new file mode 100644 index 000000000..c2d517345 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnResult.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_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT GrantSagInstanceToCcnResult : public ServiceResult + { + public: + + + GrantSagInstanceToCcnResult(); + explicit GrantSagInstanceToCcnResult(const std::string &payload); + ~GrantSagInstanceToCcnResult(); + std::string getInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h b/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h index 3c9ef3622..d3daaac4d 100644 --- a/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsRequest : public RpcServiceRequest - { - - public: - KickOutClientsRequest(); - ~KickOutClientsRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsRequest : public RpcServiceRequest + { + + public: + KickOutClientsRequest(); + ~KickOutClientsRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getUsername()const; void setUsername(const std::string& username); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; std::string username_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/KickOutClientsResult.h b/smartag/include/alibabacloud/smartag/model/KickOutClientsResult.h index 76b66f961..4ee0a57db 100644 --- a/smartag/include/alibabacloud/smartag/model/KickOutClientsResult.h +++ b/smartag/include/alibabacloud/smartag/model/KickOutClientsResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsResult : public ServiceResult - { - public: - - - KickOutClientsResult(); - explicit KickOutClientsResult(const std::string &payload); - ~KickOutClientsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsResult : public ServiceResult + { + public: + + + KickOutClientsResult(); + explicit KickOutClientsResult(const std::string &payload); + ~KickOutClientsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h index e9a165864..93a069b2e 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRequest : public RpcServiceRequest - { - - public: - ModifyACLRequest(); - ~ModifyACLRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRequest : public RpcServiceRequest + { + + public: + ModifyACLRequest(); + ~ModifyACLRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setName(const std::string& name); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string name_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLResult.h b/smartag/include/alibabacloud/smartag/model/ModifyACLResult.h index 221629d9a..c9d74db9e 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLResult : public ServiceResult - { - public: - - - ModifyACLResult(); - explicit ModifyACLResult(const std::string &payload); - ~ModifyACLResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLResult : public ServiceResult + { + public: + + + ModifyACLResult(); + explicit ModifyACLResult(const std::string &payload); + ~ModifyACLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h index d782ff939..ef7f33cdb 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleRequest : public RpcServiceRequest - { - - public: - ModifyACLRuleRequest(); - ~ModifyACLRuleRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleRequest : public RpcServiceRequest + { + + public: + ModifyACLRuleRequest(); + ~ModifyACLRuleRequest(); + std::string getAclId()const; void setAclId(const std::string& aclId); long getResourceOwnerId()const; @@ -55,6 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getPriority()const; void setPriority(int priority); + std::string getType()const; + void setType(const std::string& type); std::string getAcrId()const; void setAcrId(const std::string& acrId); std::string getDestCidr()const; @@ -67,8 +69,8 @@ namespace AlibabaCloud void setDirection(const std::string& direction); std::string getPolicy()const; void setPolicy(const std::string& policy); - - private: + + private: std::string aclId_; long resourceOwnerId_; std::string sourcePortRange_; @@ -79,15 +81,16 @@ namespace AlibabaCloud std::string description_; long ownerId_; int priority_; + std::string type_; std::string acrId_; std::string destCidr_; std::string destPortRange_; std::string regionId_; std::string direction_; std::string policy_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h index f9139697b..8ecc568dd 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleResult.h @@ -1,42 +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_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleResult : public ServiceResult - { - public: - - - ModifyACLRuleResult(); - explicit ModifyACLRuleResult(const std::string &payload); - ~ModifyACLRuleResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleResult : public ServiceResult + { + public: + + + ModifyACLRuleResult(); + explicit ModifyACLRuleResult(const std::string &payload); + ~ModifyACLRuleResult(); std::string getPolicy()const; long getGmtCreate()const; std::string getDescription()const; @@ -49,10 +49,10 @@ namespace AlibabaCloud std::string getIpProtocol()const; std::string getDestPortRange()const; std::string getDirection()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string policy_; long gmtCreate_; std::string description_; @@ -65,9 +65,9 @@ namespace AlibabaCloud std::string ipProtocol_; std::string destPortRange_; std::string direction_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h index eb293a302..74cd0aee3 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - ModifyCloudConnectNetworkRequest(); - ~ModifyCloudConnectNetworkRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkRequest : public RpcServiceRequest + { + + public: + ModifyCloudConnectNetworkRequest(); + ~ModifyCloudConnectNetworkRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,12 +51,12 @@ namespace AlibabaCloud void setCidrBlock(const std::string& cidrBlock); std::string getDescription()const; void setDescription(const std::string& description); - std::string getSnatCidrBlock()const; - void setSnatCidrBlock(const std::string& snatCidrBlock); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + std::string getInterworkingStatus()const; + void setInterworkingStatus(const std::string& interworkingStatus); + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -65,11 +65,11 @@ namespace AlibabaCloud std::string name_; std::string cidrBlock_; std::string description_; - std::string snatCidrBlock_; long ownerId_; - - }; - } - } -} + std::string interworkingStatus_; + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h index 94dea1c78..b235ebf4d 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkResult : public ServiceResult - { - public: - - - ModifyCloudConnectNetworkResult(); - explicit ModifyCloudConnectNetworkResult(const std::string &payload); - ~ModifyCloudConnectNetworkResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkResult : public ServiceResult + { + public: + + + ModifyCloudConnectNetworkResult(); + explicit ModifyCloudConnectNetworkResult(const std::string &payload); + ~ModifyCloudConnectNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h new file mode 100644 index 000000000..288341f71 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyFlowLogAttributeRequest : public RpcServiceRequest + { + + public: + ModifyFlowLogAttributeRequest(); + ~ModifyFlowLogAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + std::string getLogstoreName()const; + void setLogstoreName(const std::string& logstoreName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getNetflowServerPort()const; + void setNetflowServerPort(int netflowServerPort); + std::string getNetflowVersion()const; + void setNetflowVersion(const std::string& netflowVersion); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getInactiveAging()const; + void setInactiveAging(int inactiveAging); + std::string getNetflowServerIp()const; + void setNetflowServerIp(const std::string& netflowServerIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getSlsRegionId()const; + void setSlsRegionId(const std::string& slsRegionId); + int getActiveAging()const; + void setActiveAging(int activeAging); + std::string getOutputType()const; + void setOutputType(const std::string& outputType); + std::string getFlowLogId()const; + void setFlowLogId(const std::string& flowLogId); + + private: + long resourceOwnerId_; + std::string projectName_; + std::string logstoreName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int netflowServerPort_; + std::string netflowVersion_; + std::string description_; + long ownerId_; + int inactiveAging_; + std::string netflowServerIp_; + std::string regionId_; + std::string name_; + std::string slsRegionId_; + int activeAging_; + std::string outputType_; + std::string flowLogId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeResult.h b/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeResult.h new file mode 100644 index 000000000..e6a3e2c6d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyFlowLogAttributeResult : public ServiceResult + { + public: + + + ModifyFlowLogAttributeResult(); + explicit ModifyFlowLogAttributeResult(const std::string &payload); + ~ModifyFlowLogAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h index d6b30b5be..a4c6982ba 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationRequest : public RpcServiceRequest - { - - public: - ModifyNetworkOptimizationRequest(); - ~ModifyNetworkOptimizationRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationRequest : public RpcServiceRequest + { + + public: + ModifyNetworkOptimizationRequest(); + ~ModifyNetworkOptimizationRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setName(const std::string& name); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string name_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h index 6ad58003f..affa3f483 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationResult : public ServiceResult - { - public: - - - ModifyNetworkOptimizationResult(); - explicit ModifyNetworkOptimizationResult(const std::string &payload); - ~ModifyNetworkOptimizationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationResult : public ServiceResult + { + public: + + + ModifyNetworkOptimizationResult(); + explicit ModifyNetworkOptimizationResult(const std::string &payload); + ~ModifyNetworkOptimizationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.h new file mode 100644 index 000000000..c4be0de24 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.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_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosCarRequest : public RpcServiceRequest + { + + public: + ModifyQosCarRequest(); + ~ModifyQosCarRequest(); + + int getMaxBandwidthAbs()const; + void setMaxBandwidthAbs(int maxBandwidthAbs); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getMinBandwidthAbs()const; + void setMinBandwidthAbs(int minBandwidthAbs); + int getMaxBandwidthPercent()const; + void setMaxBandwidthPercent(int maxBandwidthPercent); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosCarId()const; + void setQosCarId(const std::string& qosCarId); + int getPriority()const; + void setPriority(int priority); + int getMinBandwidthPercent()const; + void setMinBandwidthPercent(int minBandwidthPercent); + std::string getLimitType()const; + void setLimitType(const std::string& limitType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPercentSourceType()const; + void setPercentSourceType(const std::string& percentSourceType); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + int maxBandwidthAbs_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int minBandwidthAbs_; + int maxBandwidthPercent_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string qosCarId_; + int priority_; + int minBandwidthPercent_; + std::string limitType_; + std::string regionId_; + std::string percentSourceType_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosCarResult.h b/smartag/include/alibabacloud/smartag/model/ModifyQosCarResult.h new file mode 100644 index 000000000..230a3812b --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosCarResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosCarResult : public ServiceResult + { + public: + + + ModifyQosCarResult(); + explicit ModifyQosCarResult(const std::string &payload); + ~ModifyQosCarResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h new file mode 100644 index 000000000..1353ea69f --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosPolicyRequest : public RpcServiceRequest + { + + public: + ModifyQosPolicyRequest(); + ~ModifyQosPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getQosPolicyId()const; + void setQosPolicyId(const std::string& qosPolicyId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidr()const; + void setSourceCidr(const std::string& sourceCidr); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + std::string getDestCidr()const; + void setDestCidr(const std::string& destCidr); + std::string getDestPortRange()const; + void setDestPortRange(const std::string& destPortRange); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + long resourceOwnerId_; + std::string sourcePortRange_; + std::string qosPolicyId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidr_; + std::string endTime_; + std::string description_; + std::string startTime_; + long ownerId_; + int priority_; + std::string destCidr_; + std::string destPortRange_; + std::string regionId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyResult.h b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyResult.h new file mode 100644 index 000000000..adbafdc05 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosPolicyResult : public ServiceResult + { + public: + + + ModifyQosPolicyResult(); + explicit ModifyQosPolicyResult(const std::string &payload); + ~ModifyQosPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyQosRequest.h new file mode 100644 index 000000000..4094f4cdf --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosRequest.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_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosRequest : public RpcServiceRequest + { + + public: + ModifyQosRequest(); + ~ModifyQosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQosName()const; + void setQosName(const std::string& qosName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQosId()const; + void setQosId(const std::string& qosId); + + private: + long resourceOwnerId_; + std::string qosName_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosResult.h b/smartag/include/alibabacloud/smartag/model/ModifyQosResult.h new file mode 100644 index 000000000..8f6134c1d --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosResult : public ServiceResult + { + public: + + + ModifyQosResult(); + explicit ModifyQosResult(const std::string &payload); + ~ModifyQosResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h new file mode 100644 index 000000000..16361520a --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.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_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRemoteAccessRequest : public RpcServiceRequest + { + + public: + ModifySagRemoteAccessRequest(); + ~ModifySagRemoteAccessRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getRemoteAccessIp()const; + void setRemoteAccessIp(const std::string& remoteAccessIp); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string remoteAccessIp_; + std::string smartAGId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h new file mode 100644 index 000000000..2e609d6e0 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.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_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRemoteAccessResult : public ServiceResult + { + public: + + + ModifySagRemoteAccessResult(); + explicit ModifySagRemoteAccessResult(const std::string &payload); + ~ModifySagRemoteAccessResult(); + std::string getMessage()const; + std::string getSerialNumber()const; + std::string getRemoteAccessIp()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string serialNumber_; + std::string remoteAccessIp_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h index 9d240d6ad..bf4590da8 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberRequest : public RpcServiceRequest - { - - public: - ModifySerialNumberRequest(); - ~ModifySerialNumberRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberRequest : public RpcServiceRequest + { + + public: + ModifySerialNumberRequest(); + ~ModifySerialNumberRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSerialNumber()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string serialNumber_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h index db2be2985..d8f48307b 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySerialNumberResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberResult : public ServiceResult - { - public: - - - ModifySerialNumberResult(); - explicit ModifySerialNumberResult(const std::string &payload); - ~ModifySerialNumberResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySerialNumberResult : public ServiceResult + { + public: + + + ModifySerialNumberResult(); + explicit ModifySerialNumberResult(const std::string &payload); + ~ModifySerialNumberResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSERIALNUMBERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h index dbc5465e2..49e562424 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserRequest : public RpcServiceRequest - { - - public: - ModifySmartAccessGatewayClientUserRequest(); - ~ModifySmartAccessGatewayClientUserRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserRequest : public RpcServiceRequest + { + + public: + ModifySmartAccessGatewayClientUserRequest(); + ~ModifySmartAccessGatewayClientUserRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h index d02180787..ae658f58f 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserResult.h @@ -1,57 +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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserResult : public ServiceResult - { - public: - - - ModifySmartAccessGatewayClientUserResult(); - explicit ModifySmartAccessGatewayClientUserResult(const std::string &payload); - ~ModifySmartAccessGatewayClientUserResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserResult : public ServiceResult + { + public: + + + ModifySmartAccessGatewayClientUserResult(); + explicit ModifySmartAccessGatewayClientUserResult(const std::string &payload); + ~ModifySmartAccessGatewayClientUserResult(); std::string getUserName()const; std::string getUserMail()const; int getBandwidth()const; std::string getClientIp()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string userName_; std::string userMail_; int bandwidth_; std::string clientIp_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h index 919539f0e..424dc8e7d 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h @@ -1,45 +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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayRequest : public RpcServiceRequest + { struct SnatEntries { std::string cidrBlock; std::string snatIp; }; - - public: - ModifySmartAccessGatewayRequest(); - ~ModifySmartAccessGatewayRequest(); - + + public: + ModifySmartAccessGatewayRequest(); + ~ModifySmartAccessGatewayRequest(); + std::vector getSnatEntries()const; void setSnatEntries(const std::vector& snatEntries); long getResourceOwnerId()const; @@ -56,6 +56,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); int getSecurityLockThreshold()const; void setSecurityLockThreshold(int securityLockThreshold); + std::string getRoutingStrategy()const; + void setRoutingStrategy(const std::string& routingStrategy); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getName()const; @@ -64,8 +66,8 @@ namespace AlibabaCloud void setCidrBlock(const std::string& cidrBlock); std::string getSmartAGId()const; void setSmartAGId(const std::string& smartAGId); - - private: + + private: std::vector snatEntries_; long resourceOwnerId_; std::string resourceOwnerAccount_; @@ -74,13 +76,14 @@ namespace AlibabaCloud std::string description_; long ownerId_; int securityLockThreshold_; + std::string routingStrategy_; std::string regionId_; std::string name_; std::string cidrBlock_; std::string smartAGId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h index 9e7f23a53..1cb2a1107 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayResult : public ServiceResult - { - public: - - - ModifySmartAccessGatewayResult(); - explicit ModifySmartAccessGatewayResult(const std::string &payload); - ~ModifySmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayResult : public ServiceResult + { + public: + + + ModifySmartAccessGatewayResult(); + explicit ModifySmartAccessGatewayResult(const std::string &payload); + ~ModifySmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h new file mode 100644 index 000000000..091f6e625 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayUpBandwidthRequest : public RpcServiceRequest + { + + public: + ModifySmartAccessGatewayUpBandwidthRequest(); + ~ModifySmartAccessGatewayUpBandwidthRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getUpBandwidth4G()const; + void setUpBandwidth4G(int upBandwidth4G); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + int getUpBandwidthWan()const; + void setUpBandwidthWan(int upBandwidthWan); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int upBandwidth4G_; + std::string smartAGId_; + int upBandwidthWan_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthResult.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthResult.h new file mode 100644 index 000000000..5268f3863 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayUpBandwidthResult : public ServiceResult + { + public: + + + ModifySmartAccessGatewayUpBandwidthResult(); + explicit ModifySmartAccessGatewayUpBandwidthResult(const std::string &payload); + ~ModifySmartAccessGatewayUpBandwidthResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h index 9575d5985..a50b8fac7 100644 --- a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - RebootSmartAccessGatewayRequest(); - ~RebootSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + RebootSmartAccessGatewayRequest(); + ~RebootSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSerialNumber()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string serialNumber_; std::string resourceOwnerAccount_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h index be92d5fd2..4bc07797b 100644 --- a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayResult : public ServiceResult - { - public: - - - RebootSmartAccessGatewayResult(); - explicit RebootSmartAccessGatewayResult(const std::string &payload); - ~RebootSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayResult : public ServiceResult + { + public: + + + RebootSmartAccessGatewayResult(); + explicit RebootSmartAccessGatewayResult(const std::string &payload); + ~RebootSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h index c602bab0a..be90ebdb3 100644 --- a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordRequest : public RpcServiceRequest - { - - public: - ResetSmartAccessGatewayClientUserPasswordRequest(); - ~ResetSmartAccessGatewayClientUserPasswordRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordRequest : public RpcServiceRequest + { + + public: + ResetSmartAccessGatewayClientUserPasswordRequest(); + ~ResetSmartAccessGatewayClientUserPasswordRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getUserName()const; void setUserName(const std::string& userName); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; std::string userName_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.h b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.h index 289c52a31..4afd4fefd 100644 --- a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.h +++ b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordResult : public ServiceResult - { - public: - - - ResetSmartAccessGatewayClientUserPasswordResult(); - explicit ResetSmartAccessGatewayClientUserPasswordResult(const std::string &payload); - ~ResetSmartAccessGatewayClientUserPasswordResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordResult : public ServiceResult + { + public: + + + ResetSmartAccessGatewayClientUserPasswordResult(); + explicit ResetSmartAccessGatewayClientUserPasswordResult(const std::string &payload); + ~ResetSmartAccessGatewayClientUserPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h index d011cab5c..bfcff0720 100644 --- a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnRequest : public RpcServiceRequest - { - - public: - RevokeInstanceFromCbnRequest(); - ~RevokeInstanceFromCbnRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnRequest : public RpcServiceRequest + { + + public: + RevokeInstanceFromCbnRequest(); + ~RevokeInstanceFromCbnRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setCcnInstanceId(const std::string& ccnInstanceId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string ccnInstanceId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.h b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.h index 941d78cb4..c0020b6b3 100644 --- a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.h +++ b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnResult : public ServiceResult - { - public: - - - RevokeInstanceFromCbnResult(); - explicit RevokeInstanceFromCbnResult(const std::string &payload); - ~RevokeInstanceFromCbnResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnResult : public ServiceResult + { + public: + + + RevokeInstanceFromCbnResult(); + explicit RevokeInstanceFromCbnResult(const std::string &payload); + ~RevokeInstanceFromCbnResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h b/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h new file mode 100644 index 000000000..6219572ed --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.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_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RevokeSagInstanceFromCcnRequest : public RpcServiceRequest + { + + public: + RevokeSagInstanceFromCcnRequest(); + ~RevokeSagInstanceFromCcnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + std::string getCcnInstanceId()const; + void setCcnInstanceId(const std::string& ccnInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + std::string ccnInstanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnResult.h b/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnResult.h new file mode 100644 index 000000000..5e1f33731 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT RevokeSagInstanceFromCcnResult : public ServiceResult + { + public: + + + RevokeSagInstanceFromCcnResult(); + explicit RevokeSagInstanceFromCcnResult(const std::string &payload); + ~RevokeSagInstanceFromCcnResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h index 7db8f6f49..86c0141b7 100644 --- a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h +++ b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressRequest : public RpcServiceRequest - { - - public: - SetSagRouteableAddressRequest(); - ~SetSagRouteableAddressRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressRequest : public RpcServiceRequest + { + + public: + SetSagRouteableAddressRequest(); + ~SetSagRouteableAddressRequest(); + std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); long getResourceOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getRouteableAddress()const; void setRouteableAddress(const std::string& routeableAddress); - - private: + + private: std::string access_key_id_; long resourceOwnerId_; std::string regionId_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string ownerAccount_; long ownerId_; std::string routeableAddress_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h index a2196cfad..81f710f1c 100644 --- a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h +++ b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressResult : public ServiceResult - { - public: - - - SetSagRouteableAddressResult(); - explicit SetSagRouteableAddressResult(const std::string &payload); - ~SetSagRouteableAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressResult : public ServiceResult + { + public: + + + SetSagRouteableAddressResult(); + explicit SetSagRouteableAddressResult(const std::string &payload); + ~SetSagRouteableAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h index 34fb25e2d..a8b3c55ec 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h +++ b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateRequest : public RpcServiceRequest - { - - public: - SwitchCloudBoxHaStateRequest(); - ~SwitchCloudBoxHaStateRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateRequest : public RpcServiceRequest + { + + public: + SwitchCloudBoxHaStateRequest(); + ~SwitchCloudBoxHaStateRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h index ff261e6be..0a1166903 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h +++ b/smartag/include/alibabacloud/smartag/model/SwitchCloudBoxHaStateResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateResult : public ServiceResult - { - public: - - - SwitchCloudBoxHaStateResult(); - explicit SwitchCloudBoxHaStateResult(const std::string &payload); - ~SwitchCloudBoxHaStateResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchCloudBoxHaStateResult : public ServiceResult + { + public: + + + SwitchCloudBoxHaStateResult(); + explicit SwitchCloudBoxHaStateResult(const std::string &payload); + ~SwitchCloudBoxHaStateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHCLOUDBOXHASTATERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h index 0771eab90..1db2024b8 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h +++ b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateRequest : public RpcServiceRequest - { - - public: - SwitchSAGHaStateRequest(); - ~SwitchSAGHaStateRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateRequest : public RpcServiceRequest + { + + public: + SwitchSAGHaStateRequest(); + ~SwitchSAGHaStateRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; @@ -58,9 +58,9 @@ namespace AlibabaCloud std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h index 06c29045b..06b5a868d 100644 --- a/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h +++ b/smartag/include/alibabacloud/smartag/model/SwitchSAGHaStateResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateResult : public ServiceResult - { - public: - - - SwitchSAGHaStateResult(); - explicit SwitchSAGHaStateResult(const std::string &payload); - ~SwitchSAGHaStateResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT SwitchSAGHaStateResult : public ServiceResult + { + public: + + + SwitchSAGHaStateResult(); + explicit SwitchSAGHaStateResult(const std::string &payload); + ~SwitchSAGHaStateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_SWITCHSAGHASTATERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h index 50ba12d04..de5653535 100644 --- a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h @@ -1,42 +1,44 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UnbindSmartAccessGatewayRequest(); - ~UnbindSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + UnbindSmartAccessGatewayRequest(); + ~UnbindSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + long getSmartAGUid()const; + void setSmartAGUid(long smartAGUid); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; @@ -49,18 +51,19 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; + long smartAGUid_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string ccnId_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h index fa405aecb..9a7b954a9 100644 --- a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayResult : public ServiceResult - { - public: - - - UnbindSmartAccessGatewayResult(); - explicit UnbindSmartAccessGatewayResult(const std::string &payload); - ~UnbindSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayResult : public ServiceResult + { + public: + + + UnbindSmartAccessGatewayResult(); + explicit UnbindSmartAccessGatewayResult(const std::string &payload); + ~UnbindSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.h b/smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.h new file mode 100644 index 000000000..104afccae --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.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_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnbindVbrRequest : public RpcServiceRequest + { + + public: + UnbindVbrRequest(); + ~UnbindVbrRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSmartAGId()const; + void setSmartAGId(const std::string& smartAGId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + std::string getVbrRegionId()const; + void setVbrRegionId(const std::string& vbrRegionId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string smartAGId_; + long ownerId_; + std::string vbrId_; + std::string vbrRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnbindVbrResult.h b/smartag/include/alibabacloud/smartag/model/UnbindVbrResult.h new file mode 100644 index 000000000..c976a29c8 --- /dev/null +++ b/smartag/include/alibabacloud/smartag/model/UnbindVbrResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnbindVbrResult : public ServiceResult + { + public: + + + UnbindVbrResult(); + explicit UnbindVbrResult(const std::string &payload); + ~UnbindVbrResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h index 0b522b18b..ef5ceff74 100644 --- a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmRequest : public RpcServiceRequest + { struct OrderItem { std::string scItemName; @@ -41,11 +41,11 @@ namespace AlibabaCloud std::string tradeId; std::string tradeItemId; }; - - public: - UnicomOrderConfirmRequest(); - ~UnicomOrderConfirmRequest(); - + + public: + UnicomOrderConfirmRequest(); + ~UnicomOrderConfirmRequest(); + std::string getTmsCode()const; void setTmsCode(const std::string& tmsCode); long getResourceOwnerId()const; @@ -68,8 +68,8 @@ namespace AlibabaCloud void setTmsOrderCode(const std::string& tmsOrderCode); std::string getTradeId()const; void setTradeId(const std::string& tradeId); - - private: + + private: std::string tmsCode_; long resourceOwnerId_; std::vector orderItem_; @@ -81,9 +81,9 @@ namespace AlibabaCloud long ownerId_; std::string tmsOrderCode_; std::string tradeId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h index 0f307465d..88e0a802e 100644 --- a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h +++ b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h @@ -1,55 +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_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmResult : public ServiceResult - { - public: - - - UnicomOrderConfirmResult(); - explicit UnicomOrderConfirmResult(const std::string &payload); - ~UnicomOrderConfirmResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmResult : public ServiceResult + { + public: + + + UnicomOrderConfirmResult(); + explicit UnicomOrderConfirmResult(const std::string &payload); + ~UnicomOrderConfirmResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h index 0867c5101..6a7cd22bc 100644 --- a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h @@ -1,35 +1,35 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmRequest : public RpcServiceRequest - { +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmRequest : public RpcServiceRequest + { struct TmsOrder { std::string tmsCode; @@ -37,11 +37,11 @@ namespace AlibabaCloud std::string tmsOrderCode; std::string tradeId; }; - - public: - UnicomSignConfirmRequest(); - ~UnicomSignConfirmRequest(); - + + public: + UnicomSignConfirmRequest(); + ~UnicomSignConfirmRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -52,16 +52,16 @@ namespace AlibabaCloud void setTmsOrder(const std::vector& tmsOrder); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::vector tmsOrder_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h index 662da973d..68088e0c7 100644 --- a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h +++ b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h @@ -1,55 +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_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmResult : public ServiceResult - { - public: - - - UnicomSignConfirmResult(); - explicit UnicomSignConfirmResult(const std::string &payload); - ~UnicomSignConfirmResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmResult : public ServiceResult + { + public: + + + UnicomSignConfirmResult(); + explicit UnicomSignConfirmResult(const std::string &payload); + ~UnicomSignConfirmResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string message_; std::string code_; bool success_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h index d5b0a5fbd..8368a11d3 100644 --- a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UnlockSmartAccessGatewayRequest(); - ~UnlockSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + UnlockSmartAccessGatewayRequest(); + ~UnlockSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getResourceOwnerAccount()const; @@ -47,17 +47,17 @@ namespace AlibabaCloud void setSmartAGId(const std::string& smartAGId); long getOwnerId()const; void setOwnerId(long ownerId); - - private: + + private: long resourceOwnerId_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; std::string smartAGId_; long ownerId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h index 37038ebda..ccb3453a0 100644 --- a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayResult : public ServiceResult - { - public: - - - UnlockSmartAccessGatewayResult(); - explicit UnlockSmartAccessGatewayResult(const std::string &payload); - ~UnlockSmartAccessGatewayResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayResult : public ServiceResult + { + public: + + + UnlockSmartAccessGatewayResult(); + explicit UnlockSmartAccessGatewayResult(const std::string &payload); + ~UnlockSmartAccessGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h index d9d1400b4..a6f21de09 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionRequest : public RpcServiceRequest - { - - public: - UpdateSmartAccessGatewayVersionRequest(); - ~UpdateSmartAccessGatewayVersionRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionRequest : public RpcServiceRequest + { + + public: + UpdateSmartAccessGatewayVersionRequest(); + ~UpdateSmartAccessGatewayVersionRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getSerialNumber()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getVersionCode()const; void setVersionCode(const std::string& versionCode); - - private: + + private: long resourceOwnerId_; std::string serialNumber_; std::string resourceOwnerAccount_; @@ -61,9 +61,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; std::string versionCode_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h index e59815a53..c224d4f37 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionResult.h @@ -1,49 +1,49 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionResult : public ServiceResult - { - public: - - - UpdateSmartAccessGatewayVersionResult(); - explicit UpdateSmartAccessGatewayVersionResult(const std::string &payload); - ~UpdateSmartAccessGatewayVersionResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionResult : public ServiceResult + { + public: + + + UpdateSmartAccessGatewayVersionResult(); + explicit UpdateSmartAccessGatewayVersionResult(const std::string &payload); + ~UpdateSmartAccessGatewayVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h index f3aad262e..500e1eaac 100644 --- a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h @@ -1,40 +1,40 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UpgradeSmartAccessGatewayRequest(); - ~UpgradeSmartAccessGatewayRequest(); - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayRequest : public RpcServiceRequest + { + + public: + UpgradeSmartAccessGatewayRequest(); + ~UpgradeSmartAccessGatewayRequest(); + long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); bool getAutoPay()const; @@ -55,8 +55,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); long getDataPlan()const; void setDataPlan(long dataPlan); - - private: + + private: long resourceOwnerId_; bool autoPay_; long bandWidthSpec_; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string smartAGId_; long ownerId_; long dataPlan_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.h index 45f9229b5..a200b408c 100644 --- a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayResult.h @@ -1,51 +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_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayResult : public ServiceResult - { - public: - - - UpgradeSmartAccessGatewayResult(); - explicit UpgradeSmartAccessGatewayResult(const std::string &payload); - ~UpgradeSmartAccessGatewayResult(); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Smartag + { + namespace Model + { + class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayResult : public ServiceResult + { + public: + + + UpgradeSmartAccessGatewayResult(); + explicit UpgradeSmartAccessGatewayResult(const std::string &payload); + ~UpgradeSmartAccessGatewayResult(); std::string getOrderId()const; - - protected: - void parse(const std::string &payload); - private: + + protected: + void parse(const std::string &payload); + private: std::string orderId_; - - }; - } - } -} + + }; + } + } +} #endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYRESULT_H_ \ No newline at end of file diff --git a/smartag/src/SmartagClient.cc b/smartag/src/SmartagClient.cc index 86d772680..9b8a523d9 100644 --- a/smartag/src/SmartagClient.cc +++ b/smartag/src/SmartagClient.cc @@ -1,2429 +1,3941 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -namespace -{ - const std::string SERVICE_NAME = "Smartag"; -} - -SmartagClient::SmartagClient(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, "smartag"); -} - -SmartagClient::SmartagClient(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, "smartag"); -} - -SmartagClient::SmartagClient(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, "smartag"); -} - -SmartagClient::~SmartagClient() -{} - -SmartagClient::GrantInstanceToCbnOutcome SmartagClient::grantInstanceToCbn(const GrantInstanceToCbnRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GrantInstanceToCbnOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GrantInstanceToCbnOutcome(GrantInstanceToCbnResult(outcome.result())); - else - return GrantInstanceToCbnOutcome(outcome.error()); -} - -void SmartagClient::grantInstanceToCbnAsync(const GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, grantInstanceToCbn(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::GrantInstanceToCbnOutcomeCallable SmartagClient::grantInstanceToCbnCallable(const GrantInstanceToCbnRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->grantInstanceToCbn(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteNetworkOptimizationOutcome SmartagClient::deleteNetworkOptimization(const DeleteNetworkOptimizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteNetworkOptimizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteNetworkOptimizationOutcome(DeleteNetworkOptimizationResult(outcome.result())); - else - return DeleteNetworkOptimizationOutcome(outcome.error()); -} - -void SmartagClient::deleteNetworkOptimizationAsync(const DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteNetworkOptimization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteNetworkOptimizationOutcomeCallable SmartagClient::deleteNetworkOptimizationCallable(const DeleteNetworkOptimizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteNetworkOptimization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::AddNetworkOptimizationSettingOutcome SmartagClient::addNetworkOptimizationSetting(const AddNetworkOptimizationSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddNetworkOptimizationSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddNetworkOptimizationSettingOutcome(AddNetworkOptimizationSettingResult(outcome.result())); - else - return AddNetworkOptimizationSettingOutcome(outcome.error()); -} - -void SmartagClient::addNetworkOptimizationSettingAsync(const AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addNetworkOptimizationSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::AddNetworkOptimizationSettingOutcomeCallable SmartagClient::addNetworkOptimizationSettingCallable(const AddNetworkOptimizationSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addNetworkOptimizationSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ActivateSmartAccessGatewayOutcome SmartagClient::activateSmartAccessGateway(const ActivateSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ActivateSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ActivateSmartAccessGatewayOutcome(ActivateSmartAccessGatewayResult(outcome.result())); - else - return ActivateSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::activateSmartAccessGatewayAsync(const ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, activateSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ActivateSmartAccessGatewayOutcomeCallable SmartagClient::activateSmartAccessGatewayCallable(const ActivateSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->activateSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteACLRuleOutcome SmartagClient::deleteACLRule(const DeleteACLRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteACLRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteACLRuleOutcome(DeleteACLRuleResult(outcome.result())); - else - return DeleteACLRuleOutcome(outcome.error()); -} - -void SmartagClient::deleteACLRuleAsync(const DeleteACLRuleRequest& request, const DeleteACLRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteACLRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteACLRuleOutcomeCallable SmartagClient::deleteACLRuleCallable(const DeleteACLRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteACLRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifyNetworkOptimizationOutcome SmartagClient::modifyNetworkOptimization(const ModifyNetworkOptimizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyNetworkOptimizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyNetworkOptimizationOutcome(ModifyNetworkOptimizationResult(outcome.result())); - else - return ModifyNetworkOptimizationOutcome(outcome.error()); -} - -void SmartagClient::modifyNetworkOptimizationAsync(const ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyNetworkOptimization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifyNetworkOptimizationOutcomeCallable SmartagClient::modifyNetworkOptimizationCallable(const ModifyNetworkOptimizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyNetworkOptimization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateSmartAccessGatewayClientUserOutcome SmartagClient::createSmartAccessGatewayClientUser(const CreateSmartAccessGatewayClientUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSmartAccessGatewayClientUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSmartAccessGatewayClientUserOutcome(CreateSmartAccessGatewayClientUserResult(outcome.result())); - else - return CreateSmartAccessGatewayClientUserOutcome(outcome.error()); -} - -void SmartagClient::createSmartAccessGatewayClientUserAsync(const CreateSmartAccessGatewayClientUserRequest& request, const CreateSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSmartAccessGatewayClientUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateSmartAccessGatewayClientUserOutcomeCallable SmartagClient::createSmartAccessGatewayClientUserCallable(const CreateSmartAccessGatewayClientUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSmartAccessGatewayClientUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::UnicomSignConfirmOutcome SmartagClient::unicomSignConfirm(const UnicomSignConfirmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnicomSignConfirmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnicomSignConfirmOutcome(UnicomSignConfirmResult(outcome.result())); - else - return UnicomSignConfirmOutcome(outcome.error()); -} - -void SmartagClient::unicomSignConfirmAsync(const UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unicomSignConfirm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnicomSignConfirmOutcomeCallable SmartagClient::unicomSignConfirmCallable(const UnicomSignConfirmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unicomSignConfirm(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::AddACLRuleOutcome SmartagClient::addACLRule(const AddACLRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddACLRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddACLRuleOutcome(AddACLRuleResult(outcome.result())); - else - return AddACLRuleOutcome(outcome.error()); -} - -void SmartagClient::addACLRuleAsync(const AddACLRuleRequest& request, const AddACLRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addACLRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::AddACLRuleOutcomeCallable SmartagClient::addACLRuleCallable(const AddACLRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addACLRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DisassociateACLOutcome SmartagClient::disassociateACL(const DisassociateACLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DisassociateACLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DisassociateACLOutcome(DisassociateACLResult(outcome.result())); - else - return DisassociateACLOutcome(outcome.error()); -} - -void SmartagClient::disassociateACLAsync(const DisassociateACLRequest& request, const DisassociateACLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, disassociateACL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DisassociateACLOutcomeCallable SmartagClient::disassociateACLCallable(const DisassociateACLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->disassociateACL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::BindSmartAccessGatewayOutcome SmartagClient::bindSmartAccessGateway(const BindSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BindSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BindSmartAccessGatewayOutcome(BindSmartAccessGatewayResult(outcome.result())); - else - return BindSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::bindSmartAccessGatewayAsync(const BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bindSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::BindSmartAccessGatewayOutcomeCallable SmartagClient::bindSmartAccessGatewayCallable(const BindSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bindSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateNetworkOptimizationOutcome SmartagClient::createNetworkOptimization(const CreateNetworkOptimizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateNetworkOptimizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateNetworkOptimizationOutcome(CreateNetworkOptimizationResult(outcome.result())); - else - return CreateNetworkOptimizationOutcome(outcome.error()); -} - -void SmartagClient::createNetworkOptimizationAsync(const CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createNetworkOptimization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateNetworkOptimizationOutcomeCallable SmartagClient::createNetworkOptimizationCallable(const CreateNetworkOptimizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createNetworkOptimization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteSAGLinkLevelHaOutcome SmartagClient::deleteSAGLinkLevelHa(const DeleteSAGLinkLevelHaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSAGLinkLevelHaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSAGLinkLevelHaOutcome(DeleteSAGLinkLevelHaResult(outcome.result())); - else - return DeleteSAGLinkLevelHaOutcome(outcome.error()); -} - -void SmartagClient::deleteSAGLinkLevelHaAsync(const DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSAGLinkLevelHa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteSAGLinkLevelHaOutcomeCallable SmartagClient::deleteSAGLinkLevelHaCallable(const DeleteSAGLinkLevelHaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSAGLinkLevelHa(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteSmartAccessGatewayClientUserOutcome SmartagClient::deleteSmartAccessGatewayClientUser(const DeleteSmartAccessGatewayClientUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSmartAccessGatewayClientUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSmartAccessGatewayClientUserOutcome(DeleteSmartAccessGatewayClientUserResult(outcome.result())); - else - return DeleteSmartAccessGatewayClientUserOutcome(outcome.error()); -} - -void SmartagClient::deleteSmartAccessGatewayClientUserAsync(const DeleteSmartAccessGatewayClientUserRequest& request, const DeleteSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSmartAccessGatewayClientUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteSmartAccessGatewayClientUserOutcomeCallable SmartagClient::deleteSmartAccessGatewayClientUserCallable(const DeleteSmartAccessGatewayClientUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSmartAccessGatewayClientUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::KickOutClientsOutcome SmartagClient::kickOutClients(const KickOutClientsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return KickOutClientsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return KickOutClientsOutcome(KickOutClientsResult(outcome.result())); - else - return KickOutClientsOutcome(outcome.error()); -} - -void SmartagClient::kickOutClientsAsync(const KickOutClientsRequest& request, const KickOutClientsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, kickOutClients(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::KickOutClientsOutcomeCallable SmartagClient::kickOutClientsCallable(const KickOutClientsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->kickOutClients(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::SwitchSAGHaStateOutcome SmartagClient::switchSAGHaState(const SwitchSAGHaStateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchSAGHaStateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchSAGHaStateOutcome(SwitchSAGHaStateResult(outcome.result())); - else - return SwitchSAGHaStateOutcome(outcome.error()); -} - -void SmartagClient::switchSAGHaStateAsync(const SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchSAGHaState(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::SwitchSAGHaStateOutcomeCallable SmartagClient::switchSAGHaStateCallable(const SwitchSAGHaStateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchSAGHaState(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeSagRouteableAddressOutcome SmartagClient::describeSagRouteableAddress(const DescribeSagRouteableAddressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSagRouteableAddressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSagRouteableAddressOutcome(DescribeSagRouteableAddressResult(outcome.result())); - else - return DescribeSagRouteableAddressOutcome(outcome.error()); -} - -void SmartagClient::describeSagRouteableAddressAsync(const DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSagRouteableAddress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSagRouteableAddressOutcomeCallable SmartagClient::describeSagRouteableAddressCallable(const DescribeSagRouteableAddressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSagRouteableAddress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeGrantRulesOutcome SmartagClient::describeGrantRules(const DescribeGrantRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeGrantRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeGrantRulesOutcome(DescribeGrantRulesResult(outcome.result())); - else - return DescribeGrantRulesOutcome(outcome.error()); -} - -void SmartagClient::describeGrantRulesAsync(const DescribeGrantRulesRequest& request, const DescribeGrantRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeGrantRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeGrantRulesOutcomeCallable SmartagClient::describeGrantRulesCallable(const DescribeGrantRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeGrantRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::SwitchCloudBoxHaStateOutcome SmartagClient::switchCloudBoxHaState(const SwitchCloudBoxHaStateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchCloudBoxHaStateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchCloudBoxHaStateOutcome(SwitchCloudBoxHaStateResult(outcome.result())); - else - return SwitchCloudBoxHaStateOutcome(outcome.error()); -} - -void SmartagClient::switchCloudBoxHaStateAsync(const SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchCloudBoxHaState(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::SwitchCloudBoxHaStateOutcomeCallable SmartagClient::switchCloudBoxHaStateCallable(const SwitchCloudBoxHaStateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchCloudBoxHaState(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::UnbindSmartAccessGatewayOutcome SmartagClient::unbindSmartAccessGateway(const UnbindSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnbindSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnbindSmartAccessGatewayOutcome(UnbindSmartAccessGatewayResult(outcome.result())); - else - return UnbindSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::unbindSmartAccessGatewayAsync(const UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unbindSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnbindSmartAccessGatewayOutcomeCallable SmartagClient::unbindSmartAccessGatewayCallable(const UnbindSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unbindSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateSmartAccessGatewayOutcome SmartagClient::createSmartAccessGateway(const CreateSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSmartAccessGatewayOutcome(CreateSmartAccessGatewayResult(outcome.result())); - else - return CreateSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::createSmartAccessGatewayAsync(const CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateSmartAccessGatewayOutcomeCallable SmartagClient::createSmartAccessGatewayCallable(const CreateSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::AttachNetworkOptimizationSagsOutcome SmartagClient::attachNetworkOptimizationSags(const AttachNetworkOptimizationSagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AttachNetworkOptimizationSagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AttachNetworkOptimizationSagsOutcome(AttachNetworkOptimizationSagsResult(outcome.result())); - else - return AttachNetworkOptimizationSagsOutcome(outcome.error()); -} - -void SmartagClient::attachNetworkOptimizationSagsAsync(const AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, attachNetworkOptimizationSags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::AttachNetworkOptimizationSagsOutcomeCallable SmartagClient::attachNetworkOptimizationSagsCallable(const AttachNetworkOptimizationSagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->attachNetworkOptimizationSags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ClearSagRouteableAddressOutcome SmartagClient::clearSagRouteableAddress(const ClearSagRouteableAddressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ClearSagRouteableAddressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ClearSagRouteableAddressOutcome(ClearSagRouteableAddressResult(outcome.result())); - else - return ClearSagRouteableAddressOutcome(outcome.error()); -} - -void SmartagClient::clearSagRouteableAddressAsync(const ClearSagRouteableAddressRequest& request, const ClearSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, clearSagRouteableAddress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ClearSagRouteableAddressOutcomeCallable SmartagClient::clearSagRouteableAddressCallable(const ClearSagRouteableAddressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->clearSagRouteableAddress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifyCloudConnectNetworkOutcome SmartagClient::modifyCloudConnectNetwork(const ModifyCloudConnectNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCloudConnectNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCloudConnectNetworkOutcome(ModifyCloudConnectNetworkResult(outcome.result())); - else - return ModifyCloudConnectNetworkOutcome(outcome.error()); -} - -void SmartagClient::modifyCloudConnectNetworkAsync(const ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCloudConnectNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifyCloudConnectNetworkOutcomeCallable SmartagClient::modifyCloudConnectNetworkCallable(const ModifyCloudConnectNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCloudConnectNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteACLOutcome SmartagClient::deleteACL(const DeleteACLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteACLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteACLOutcome(DeleteACLResult(outcome.result())); - else - return DeleteACLOutcome(outcome.error()); -} - -void SmartagClient::deleteACLAsync(const DeleteACLRequest& request, const DeleteACLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteACL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteACLOutcomeCallable SmartagClient::deleteACLCallable(const DeleteACLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteACL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeSagOnlineClientStatisticsOutcome SmartagClient::describeSagOnlineClientStatistics(const DescribeSagOnlineClientStatisticsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSagOnlineClientStatisticsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSagOnlineClientStatisticsOutcome(DescribeSagOnlineClientStatisticsResult(outcome.result())); - else - return DescribeSagOnlineClientStatisticsOutcome(outcome.error()); -} - -void SmartagClient::describeSagOnlineClientStatisticsAsync(const DescribeSagOnlineClientStatisticsRequest& request, const DescribeSagOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSagOnlineClientStatistics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSagOnlineClientStatisticsOutcomeCallable SmartagClient::describeSagOnlineClientStatisticsCallable(const DescribeSagOnlineClientStatisticsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSagOnlineClientStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DowngradeSmartAccessGatewayOutcome SmartagClient::downgradeSmartAccessGateway(const DowngradeSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DowngradeSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DowngradeSmartAccessGatewayOutcome(DowngradeSmartAccessGatewayResult(outcome.result())); - else - return DowngradeSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::downgradeSmartAccessGatewayAsync(const DowngradeSmartAccessGatewayRequest& request, const DowngradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, downgradeSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DowngradeSmartAccessGatewayOutcomeCallable SmartagClient::downgradeSmartAccessGatewayCallable(const DowngradeSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->downgradeSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::AssociateACLOutcome SmartagClient::associateACL(const AssociateACLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AssociateACLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AssociateACLOutcome(AssociateACLResult(outcome.result())); - else - return AssociateACLOutcome(outcome.error()); -} - -void SmartagClient::associateACLAsync(const AssociateACLRequest& request, const AssociateACLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, associateACL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::AssociateACLOutcomeCallable SmartagClient::associateACLCallable(const AssociateACLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->associateACL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeSmartAccessGatewayVersionsOutcome SmartagClient::describeSmartAccessGatewayVersions(const DescribeSmartAccessGatewayVersionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewayVersionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewayVersionsOutcome(DescribeSmartAccessGatewayVersionsResult(outcome.result())); - else - return DescribeSmartAccessGatewayVersionsOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewayVersionsAsync(const DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGatewayVersions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewayVersionsOutcomeCallable SmartagClient::describeSmartAccessGatewayVersionsCallable(const DescribeSmartAccessGatewayVersionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGatewayVersions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::UpdateSmartAccessGatewayVersionOutcome SmartagClient::updateSmartAccessGatewayVersion(const UpdateSmartAccessGatewayVersionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateSmartAccessGatewayVersionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateSmartAccessGatewayVersionOutcome(UpdateSmartAccessGatewayVersionResult(outcome.result())); - else - return UpdateSmartAccessGatewayVersionOutcome(outcome.error()); -} - -void SmartagClient::updateSmartAccessGatewayVersionAsync(const UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateSmartAccessGatewayVersion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UpdateSmartAccessGatewayVersionOutcomeCallable SmartagClient::updateSmartAccessGatewayVersionCallable(const UpdateSmartAccessGatewayVersionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateSmartAccessGatewayVersion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifySmartAccessGatewayOutcome SmartagClient::modifySmartAccessGateway(const ModifySmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySmartAccessGatewayOutcome(ModifySmartAccessGatewayResult(outcome.result())); - else - return ModifySmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::modifySmartAccessGatewayAsync(const ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifySmartAccessGatewayOutcomeCallable SmartagClient::modifySmartAccessGatewayCallable(const ModifySmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::RevokeInstanceFromCbnOutcome SmartagClient::revokeInstanceFromCbn(const RevokeInstanceFromCbnRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RevokeInstanceFromCbnOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RevokeInstanceFromCbnOutcome(RevokeInstanceFromCbnResult(outcome.result())); - else - return RevokeInstanceFromCbnOutcome(outcome.error()); -} - -void SmartagClient::revokeInstanceFromCbnAsync(const RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, revokeInstanceFromCbn(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::RevokeInstanceFromCbnOutcomeCallable SmartagClient::revokeInstanceFromCbnCallable(const RevokeInstanceFromCbnRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->revokeInstanceFromCbn(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifySerialNumberOutcome SmartagClient::modifySerialNumber(const ModifySerialNumberRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySerialNumberOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySerialNumberOutcome(ModifySerialNumberResult(outcome.result())); - else - return ModifySerialNumberOutcome(outcome.error()); -} - -void SmartagClient::modifySerialNumberAsync(const ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySerialNumber(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifySerialNumberOutcomeCallable SmartagClient::modifySerialNumberCallable(const ModifySerialNumberRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySerialNumber(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeACLAttributeOutcome SmartagClient::describeACLAttribute(const DescribeACLAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeACLAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeACLAttributeOutcome(DescribeACLAttributeResult(outcome.result())); - else - return DescribeACLAttributeOutcome(outcome.error()); -} - -void SmartagClient::describeACLAttributeAsync(const DescribeACLAttributeRequest& request, const DescribeACLAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeACLAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeACLAttributeOutcomeCallable SmartagClient::describeACLAttributeCallable(const DescribeACLAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeACLAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteDedicatedLineBackupOutcome SmartagClient::deleteDedicatedLineBackup(const DeleteDedicatedLineBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDedicatedLineBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDedicatedLineBackupOutcome(DeleteDedicatedLineBackupResult(outcome.result())); - else - return DeleteDedicatedLineBackupOutcome(outcome.error()); -} - -void SmartagClient::deleteDedicatedLineBackupAsync(const DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDedicatedLineBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteDedicatedLineBackupOutcomeCallable SmartagClient::deleteDedicatedLineBackupCallable(const DeleteDedicatedLineBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDedicatedLineBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ResetSmartAccessGatewayClientUserPasswordOutcome SmartagClient::resetSmartAccessGatewayClientUserPassword(const ResetSmartAccessGatewayClientUserPasswordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResetSmartAccessGatewayClientUserPasswordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResetSmartAccessGatewayClientUserPasswordOutcome(ResetSmartAccessGatewayClientUserPasswordResult(outcome.result())); - else - return ResetSmartAccessGatewayClientUserPasswordOutcome(outcome.error()); -} - -void SmartagClient::resetSmartAccessGatewayClientUserPasswordAsync(const ResetSmartAccessGatewayClientUserPasswordRequest& request, const ResetSmartAccessGatewayClientUserPasswordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resetSmartAccessGatewayClientUserPassword(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ResetSmartAccessGatewayClientUserPasswordOutcomeCallable SmartagClient::resetSmartAccessGatewayClientUserPasswordCallable(const ResetSmartAccessGatewayClientUserPasswordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resetSmartAccessGatewayClientUserPassword(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeACLsOutcome SmartagClient::describeACLs(const DescribeACLsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeACLsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeACLsOutcome(DescribeACLsResult(outcome.result())); - else - return DescribeACLsOutcome(outcome.error()); -} - -void SmartagClient::describeACLsAsync(const DescribeACLsRequest& request, const DescribeACLsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeACLs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeACLsOutcomeCallable SmartagClient::describeACLsCallable(const DescribeACLsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeACLs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::UnlockSmartAccessGatewayOutcome SmartagClient::unlockSmartAccessGateway(const UnlockSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnlockSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnlockSmartAccessGatewayOutcome(UnlockSmartAccessGatewayResult(outcome.result())); - else - return UnlockSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::unlockSmartAccessGatewayAsync(const UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unlockSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnlockSmartAccessGatewayOutcomeCallable SmartagClient::unlockSmartAccessGatewayCallable(const UnlockSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unlockSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateSAGLinkLevelHaOutcome SmartagClient::createSAGLinkLevelHa(const CreateSAGLinkLevelHaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSAGLinkLevelHaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSAGLinkLevelHaOutcome(CreateSAGLinkLevelHaResult(outcome.result())); - else - return CreateSAGLinkLevelHaOutcome(outcome.error()); -} - -void SmartagClient::createSAGLinkLevelHaAsync(const CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSAGLinkLevelHa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateSAGLinkLevelHaOutcomeCallable SmartagClient::createSAGLinkLevelHaCallable(const CreateSAGLinkLevelHaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSAGLinkLevelHa(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeSmartAccessGatewayHaOutcome SmartagClient::describeSmartAccessGatewayHa(const DescribeSmartAccessGatewayHaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewayHaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewayHaOutcome(DescribeSmartAccessGatewayHaResult(outcome.result())); - else - return DescribeSmartAccessGatewayHaOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewayHaAsync(const DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGatewayHa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewayHaOutcomeCallable SmartagClient::describeSmartAccessGatewayHaCallable(const DescribeSmartAccessGatewayHaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGatewayHa(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateSmartAccessGatewaySoftwareOutcome SmartagClient::createSmartAccessGatewaySoftware(const CreateSmartAccessGatewaySoftwareRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSmartAccessGatewaySoftwareOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSmartAccessGatewaySoftwareOutcome(CreateSmartAccessGatewaySoftwareResult(outcome.result())); - else - return CreateSmartAccessGatewaySoftwareOutcome(outcome.error()); -} - -void SmartagClient::createSmartAccessGatewaySoftwareAsync(const CreateSmartAccessGatewaySoftwareRequest& request, const CreateSmartAccessGatewaySoftwareAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSmartAccessGatewaySoftware(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateSmartAccessGatewaySoftwareOutcomeCallable SmartagClient::createSmartAccessGatewaySoftwareCallable(const CreateSmartAccessGatewaySoftwareRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSmartAccessGatewaySoftware(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeNetworkOptimizationSettingsOutcome SmartagClient::describeNetworkOptimizationSettings(const DescribeNetworkOptimizationSettingsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNetworkOptimizationSettingsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNetworkOptimizationSettingsOutcome(DescribeNetworkOptimizationSettingsResult(outcome.result())); - else - return DescribeNetworkOptimizationSettingsOutcome(outcome.error()); -} - -void SmartagClient::describeNetworkOptimizationSettingsAsync(const DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNetworkOptimizationSettings(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeNetworkOptimizationSettingsOutcomeCallable SmartagClient::describeNetworkOptimizationSettingsCallable(const DescribeNetworkOptimizationSettingsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNetworkOptimizationSettings(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteCloudConnectNetworkOutcome SmartagClient::deleteCloudConnectNetwork(const DeleteCloudConnectNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteCloudConnectNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteCloudConnectNetworkOutcome(DeleteCloudConnectNetworkResult(outcome.result())); - else - return DeleteCloudConnectNetworkOutcome(outcome.error()); -} - -void SmartagClient::deleteCloudConnectNetworkAsync(const DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteCloudConnectNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteCloudConnectNetworkOutcomeCallable SmartagClient::deleteCloudConnectNetworkCallable(const DeleteCloudConnectNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteCloudConnectNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateACLOutcome SmartagClient::createACL(const CreateACLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateACLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateACLOutcome(CreateACLResult(outcome.result())); - else - return CreateACLOutcome(outcome.error()); -} - -void SmartagClient::createACLAsync(const CreateACLRequest& request, const CreateACLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createACL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateACLOutcomeCallable SmartagClient::createACLCallable(const CreateACLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createACL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeNetworkOptimizationSagsOutcome SmartagClient::describeNetworkOptimizationSags(const DescribeNetworkOptimizationSagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNetworkOptimizationSagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNetworkOptimizationSagsOutcome(DescribeNetworkOptimizationSagsResult(outcome.result())); - else - return DescribeNetworkOptimizationSagsOutcome(outcome.error()); -} - -void SmartagClient::describeNetworkOptimizationSagsAsync(const DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNetworkOptimizationSags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeNetworkOptimizationSagsOutcomeCallable SmartagClient::describeNetworkOptimizationSagsCallable(const DescribeNetworkOptimizationSagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNetworkOptimizationSags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateCloudConnectNetworkOutcome SmartagClient::createCloudConnectNetwork(const CreateCloudConnectNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateCloudConnectNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateCloudConnectNetworkOutcome(CreateCloudConnectNetworkResult(outcome.result())); - else - return CreateCloudConnectNetworkOutcome(outcome.error()); -} - -void SmartagClient::createCloudConnectNetworkAsync(const CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createCloudConnectNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateCloudConnectNetworkOutcomeCallable SmartagClient::createCloudConnectNetworkCallable(const CreateCloudConnectNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createCloudConnectNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::RebootSmartAccessGatewayOutcome SmartagClient::rebootSmartAccessGateway(const RebootSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RebootSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RebootSmartAccessGatewayOutcome(RebootSmartAccessGatewayResult(outcome.result())); - else - return RebootSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::rebootSmartAccessGatewayAsync(const RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, rebootSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::RebootSmartAccessGatewayOutcomeCallable SmartagClient::rebootSmartAccessGatewayCallable(const RebootSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->rebootSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeRegionsOutcome SmartagClient::describeRegions(const DescribeRegionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRegionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); - else - return DescribeRegionsOutcome(outcome.error()); -} - -void SmartagClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRegions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeRegionsOutcomeCallable SmartagClient::describeRegionsCallable(const DescribeRegionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRegions(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeCloudConnectNetworksOutcome SmartagClient::describeCloudConnectNetworks(const DescribeCloudConnectNetworksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCloudConnectNetworksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCloudConnectNetworksOutcome(DescribeCloudConnectNetworksResult(outcome.result())); - else - return DescribeCloudConnectNetworksOutcome(outcome.error()); -} - -void SmartagClient::describeCloudConnectNetworksAsync(const DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCloudConnectNetworks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeCloudConnectNetworksOutcomeCallable SmartagClient::describeCloudConnectNetworksCallable(const DescribeCloudConnectNetworksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCloudConnectNetworks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifyACLRuleOutcome SmartagClient::modifyACLRule(const ModifyACLRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyACLRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyACLRuleOutcome(ModifyACLRuleResult(outcome.result())); - else - return ModifyACLRuleOutcome(outcome.error()); -} - -void SmartagClient::modifyACLRuleAsync(const ModifyACLRuleRequest& request, const ModifyACLRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyACLRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifyACLRuleOutcomeCallable SmartagClient::modifyACLRuleCallable(const ModifyACLRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyACLRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifySmartAccessGatewayClientUserOutcome SmartagClient::modifySmartAccessGatewayClientUser(const ModifySmartAccessGatewayClientUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySmartAccessGatewayClientUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySmartAccessGatewayClientUserOutcome(ModifySmartAccessGatewayClientUserResult(outcome.result())); - else - return ModifySmartAccessGatewayClientUserOutcome(outcome.error()); -} - -void SmartagClient::modifySmartAccessGatewayClientUserAsync(const ModifySmartAccessGatewayClientUserRequest& request, const ModifySmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySmartAccessGatewayClientUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifySmartAccessGatewayClientUserOutcomeCallable SmartagClient::modifySmartAccessGatewayClientUserCallable(const ModifySmartAccessGatewayClientUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySmartAccessGatewayClientUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteNetworkOptimizationSettingOutcome SmartagClient::deleteNetworkOptimizationSetting(const DeleteNetworkOptimizationSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteNetworkOptimizationSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteNetworkOptimizationSettingOutcome(DeleteNetworkOptimizationSettingResult(outcome.result())); - else - return DeleteNetworkOptimizationSettingOutcome(outcome.error()); -} - -void SmartagClient::deleteNetworkOptimizationSettingAsync(const DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteNetworkOptimizationSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteNetworkOptimizationSettingOutcomeCallable SmartagClient::deleteNetworkOptimizationSettingCallable(const DeleteNetworkOptimizationSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteNetworkOptimizationSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::GetCloudConnectNetworkUseLimitOutcome SmartagClient::getCloudConnectNetworkUseLimit(const GetCloudConnectNetworkUseLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCloudConnectNetworkUseLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCloudConnectNetworkUseLimitOutcome(GetCloudConnectNetworkUseLimitResult(outcome.result())); - else - return GetCloudConnectNetworkUseLimitOutcome(outcome.error()); -} - -void SmartagClient::getCloudConnectNetworkUseLimitAsync(const GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCloudConnectNetworkUseLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::GetCloudConnectNetworkUseLimitOutcomeCallable SmartagClient::getCloudConnectNetworkUseLimitCallable(const GetCloudConnectNetworkUseLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCloudConnectNetworkUseLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeSmartAccessGatewaysOutcome SmartagClient::describeSmartAccessGateways(const DescribeSmartAccessGatewaysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewaysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewaysOutcome(DescribeSmartAccessGatewaysResult(outcome.result())); - else - return DescribeSmartAccessGatewaysOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewaysAsync(const DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGateways(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewaysOutcomeCallable SmartagClient::describeSmartAccessGatewaysCallable(const DescribeSmartAccessGatewaysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGateways(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::UpgradeSmartAccessGatewayOutcome SmartagClient::upgradeSmartAccessGateway(const UpgradeSmartAccessGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpgradeSmartAccessGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpgradeSmartAccessGatewayOutcome(UpgradeSmartAccessGatewayResult(outcome.result())); - else - return UpgradeSmartAccessGatewayOutcome(outcome.error()); -} - -void SmartagClient::upgradeSmartAccessGatewayAsync(const UpgradeSmartAccessGatewayRequest& request, const UpgradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, upgradeSmartAccessGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UpgradeSmartAccessGatewayOutcomeCallable SmartagClient::upgradeSmartAccessGatewayCallable(const UpgradeSmartAccessGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->upgradeSmartAccessGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeUserOnlineClientsOutcome SmartagClient::describeUserOnlineClients(const DescribeUserOnlineClientsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserOnlineClientsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserOnlineClientsOutcome(DescribeUserOnlineClientsResult(outcome.result())); - else - return DescribeUserOnlineClientsOutcome(outcome.error()); -} - -void SmartagClient::describeUserOnlineClientsAsync(const DescribeUserOnlineClientsRequest& request, const DescribeUserOnlineClientsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserOnlineClients(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeUserOnlineClientsOutcomeCallable SmartagClient::describeUserOnlineClientsCallable(const DescribeUserOnlineClientsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserOnlineClients(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DetachNetworkOptimizationSagsOutcome SmartagClient::detachNetworkOptimizationSags(const DetachNetworkOptimizationSagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetachNetworkOptimizationSagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetachNetworkOptimizationSagsOutcome(DetachNetworkOptimizationSagsResult(outcome.result())); - else - return DetachNetworkOptimizationSagsOutcome(outcome.error()); -} - -void SmartagClient::detachNetworkOptimizationSagsAsync(const DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detachNetworkOptimizationSags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DetachNetworkOptimizationSagsOutcomeCallable SmartagClient::detachNetworkOptimizationSagsCallable(const DetachNetworkOptimizationSagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detachNetworkOptimizationSags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeUserOnlineClientStatisticsOutcome SmartagClient::describeUserOnlineClientStatistics(const DescribeUserOnlineClientStatisticsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserOnlineClientStatisticsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserOnlineClientStatisticsOutcome(DescribeUserOnlineClientStatisticsResult(outcome.result())); - else - return DescribeUserOnlineClientStatisticsOutcome(outcome.error()); -} - -void SmartagClient::describeUserOnlineClientStatisticsAsync(const DescribeUserOnlineClientStatisticsRequest& request, const DescribeUserOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserOnlineClientStatistics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeUserOnlineClientStatisticsOutcomeCallable SmartagClient::describeUserOnlineClientStatisticsCallable(const DescribeUserOnlineClientStatisticsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserOnlineClientStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::CreateDedicatedLineBackupOutcome SmartagClient::createDedicatedLineBackup(const CreateDedicatedLineBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDedicatedLineBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDedicatedLineBackupOutcome(CreateDedicatedLineBackupResult(outcome.result())); - else - return CreateDedicatedLineBackupOutcome(outcome.error()); -} - -void SmartagClient::createDedicatedLineBackupAsync(const CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDedicatedLineBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateDedicatedLineBackupOutcomeCallable SmartagClient::createDedicatedLineBackupCallable(const CreateDedicatedLineBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDedicatedLineBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeUserFlowStatisticsOutcome SmartagClient::describeUserFlowStatistics(const DescribeUserFlowStatisticsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeUserFlowStatisticsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeUserFlowStatisticsOutcome(DescribeUserFlowStatisticsResult(outcome.result())); - else - return DescribeUserFlowStatisticsOutcome(outcome.error()); -} - -void SmartagClient::describeUserFlowStatisticsAsync(const DescribeUserFlowStatisticsRequest& request, const DescribeUserFlowStatisticsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeUserFlowStatistics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeUserFlowStatisticsOutcomeCallable SmartagClient::describeUserFlowStatisticsCallable(const DescribeUserFlowStatisticsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeUserFlowStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::SetSagRouteableAddressOutcome SmartagClient::setSagRouteableAddress(const SetSagRouteableAddressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetSagRouteableAddressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetSagRouteableAddressOutcome(SetSagRouteableAddressResult(outcome.result())); - else - return SetSagRouteableAddressOutcome(outcome.error()); -} - -void SmartagClient::setSagRouteableAddressAsync(const SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setSagRouteableAddress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::SetSagRouteableAddressOutcomeCallable SmartagClient::setSagRouteableAddressCallable(const SetSagRouteableAddressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setSagRouteableAddress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifyACLOutcome SmartagClient::modifyACL(const ModifyACLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyACLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyACLOutcome(ModifyACLResult(outcome.result())); - else - return ModifyACLOutcome(outcome.error()); -} - -void SmartagClient::modifyACLAsync(const ModifyACLRequest& request, const ModifyACLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyACL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifyACLOutcomeCallable SmartagClient::modifyACLCallable(const ModifyACLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyACL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeSmartAccessGatewayClientUsersOutcome SmartagClient::describeSmartAccessGatewayClientUsers(const DescribeSmartAccessGatewayClientUsersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSmartAccessGatewayClientUsersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSmartAccessGatewayClientUsersOutcome(DescribeSmartAccessGatewayClientUsersResult(outcome.result())); - else - return DescribeSmartAccessGatewayClientUsersOutcome(outcome.error()); -} - -void SmartagClient::describeSmartAccessGatewayClientUsersAsync(const DescribeSmartAccessGatewayClientUsersRequest& request, const DescribeSmartAccessGatewayClientUsersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSmartAccessGatewayClientUsers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSmartAccessGatewayClientUsersOutcomeCallable SmartagClient::describeSmartAccessGatewayClientUsersCallable(const DescribeSmartAccessGatewayClientUsersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSmartAccessGatewayClientUsers(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::GetSmartAccessGatewayUseLimitOutcome SmartagClient::getSmartAccessGatewayUseLimit(const GetSmartAccessGatewayUseLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetSmartAccessGatewayUseLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetSmartAccessGatewayUseLimitOutcome(GetSmartAccessGatewayUseLimitResult(outcome.result())); - else - return GetSmartAccessGatewayUseLimitOutcome(outcome.error()); -} - -void SmartagClient::getSmartAccessGatewayUseLimitAsync(const GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getSmartAccessGatewayUseLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::GetSmartAccessGatewayUseLimitOutcomeCallable SmartagClient::getSmartAccessGatewayUseLimitCallable(const GetSmartAccessGatewayUseLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getSmartAccessGatewayUseLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::UnicomOrderConfirmOutcome SmartagClient::unicomOrderConfirm(const UnicomOrderConfirmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnicomOrderConfirmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnicomOrderConfirmOutcome(UnicomOrderConfirmResult(outcome.result())); - else - return UnicomOrderConfirmOutcome(outcome.error()); -} - -void SmartagClient::unicomOrderConfirmAsync(const UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unicomOrderConfirm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnicomOrderConfirmOutcomeCallable SmartagClient::unicomOrderConfirmCallable(const UnicomOrderConfirmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unicomOrderConfirm(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeNetworkOptimizationsOutcome SmartagClient::describeNetworkOptimizations(const DescribeNetworkOptimizationsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNetworkOptimizationsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNetworkOptimizationsOutcome(DescribeNetworkOptimizationsResult(outcome.result())); - else - return DescribeNetworkOptimizationsOutcome(outcome.error()); -} - -void SmartagClient::describeNetworkOptimizationsAsync(const DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNetworkOptimizations(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeNetworkOptimizationsOutcomeCallable SmartagClient::describeNetworkOptimizationsCallable(const DescribeNetworkOptimizationsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNetworkOptimizations(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +namespace +{ + const std::string SERVICE_NAME = "Smartag"; +} + +SmartagClient::SmartagClient(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, "smartag"); +} + +SmartagClient::SmartagClient(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, "smartag"); +} + +SmartagClient::SmartagClient(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, "smartag"); +} + +SmartagClient::~SmartagClient() +{} + +SmartagClient::AddNetworkOptimizationSettingOutcome SmartagClient::addNetworkOptimizationSetting(const AddNetworkOptimizationSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddNetworkOptimizationSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddNetworkOptimizationSettingOutcome(AddNetworkOptimizationSettingResult(outcome.result())); + else + return AddNetworkOptimizationSettingOutcome(outcome.error()); +} + +void SmartagClient::addNetworkOptimizationSettingAsync(const AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addNetworkOptimizationSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AddNetworkOptimizationSettingOutcomeCallable SmartagClient::addNetworkOptimizationSettingCallable(const AddNetworkOptimizationSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addNetworkOptimizationSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ActivateSmartAccessGatewayOutcome SmartagClient::activateSmartAccessGateway(const ActivateSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActivateSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivateSmartAccessGatewayOutcome(ActivateSmartAccessGatewayResult(outcome.result())); + else + return ActivateSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::activateSmartAccessGatewayAsync(const ActivateSmartAccessGatewayRequest& request, const ActivateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activateSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ActivateSmartAccessGatewayOutcomeCallable SmartagClient::activateSmartAccessGatewayCallable(const ActivateSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activateSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteACLRuleOutcome SmartagClient::deleteACLRule(const DeleteACLRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteACLRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteACLRuleOutcome(DeleteACLRuleResult(outcome.result())); + else + return DeleteACLRuleOutcome(outcome.error()); +} + +void SmartagClient::deleteACLRuleAsync(const DeleteACLRuleRequest& request, const DeleteACLRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteACLRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteACLRuleOutcomeCallable SmartagClient::deleteACLRuleCallable(const DeleteACLRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteACLRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSmartAccessGatewayClientUserOutcome SmartagClient::createSmartAccessGatewayClientUser(const CreateSmartAccessGatewayClientUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSmartAccessGatewayClientUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSmartAccessGatewayClientUserOutcome(CreateSmartAccessGatewayClientUserResult(outcome.result())); + else + return CreateSmartAccessGatewayClientUserOutcome(outcome.error()); +} + +void SmartagClient::createSmartAccessGatewayClientUserAsync(const CreateSmartAccessGatewayClientUserRequest& request, const CreateSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSmartAccessGatewayClientUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSmartAccessGatewayClientUserOutcomeCallable SmartagClient::createSmartAccessGatewayClientUserCallable(const CreateSmartAccessGatewayClientUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSmartAccessGatewayClientUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnicomSignConfirmOutcome SmartagClient::unicomSignConfirm(const UnicomSignConfirmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnicomSignConfirmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnicomSignConfirmOutcome(UnicomSignConfirmResult(outcome.result())); + else + return UnicomSignConfirmOutcome(outcome.error()); +} + +void SmartagClient::unicomSignConfirmAsync(const UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unicomSignConfirm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnicomSignConfirmOutcomeCallable SmartagClient::unicomSignConfirmCallable(const UnicomSignConfirmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unicomSignConfirm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateNetworkOptimizationOutcome SmartagClient::createNetworkOptimization(const CreateNetworkOptimizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkOptimizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkOptimizationOutcome(CreateNetworkOptimizationResult(outcome.result())); + else + return CreateNetworkOptimizationOutcome(outcome.error()); +} + +void SmartagClient::createNetworkOptimizationAsync(const CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkOptimization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateNetworkOptimizationOutcomeCallable SmartagClient::createNetworkOptimizationCallable(const CreateNetworkOptimizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkOptimization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::RevokeSagInstanceFromCcnOutcome SmartagClient::revokeSagInstanceFromCcn(const RevokeSagInstanceFromCcnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeSagInstanceFromCcnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeSagInstanceFromCcnOutcome(RevokeSagInstanceFromCcnResult(outcome.result())); + else + return RevokeSagInstanceFromCcnOutcome(outcome.error()); +} + +void SmartagClient::revokeSagInstanceFromCcnAsync(const RevokeSagInstanceFromCcnRequest& request, const RevokeSagInstanceFromCcnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeSagInstanceFromCcn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::RevokeSagInstanceFromCcnOutcomeCallable SmartagClient::revokeSagInstanceFromCcnCallable(const RevokeSagInstanceFromCcnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeSagInstanceFromCcn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySagRemoteAccessOutcome SmartagClient::modifySagRemoteAccess(const ModifySagRemoteAccessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySagRemoteAccessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySagRemoteAccessOutcome(ModifySagRemoteAccessResult(outcome.result())); + else + return ModifySagRemoteAccessOutcome(outcome.error()); +} + +void SmartagClient::modifySagRemoteAccessAsync(const ModifySagRemoteAccessRequest& request, const ModifySagRemoteAccessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySagRemoteAccess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySagRemoteAccessOutcomeCallable SmartagClient::modifySagRemoteAccessCallable(const ModifySagRemoteAccessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySagRemoteAccess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteSmartAccessGatewayClientUserOutcome SmartagClient::deleteSmartAccessGatewayClientUser(const DeleteSmartAccessGatewayClientUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSmartAccessGatewayClientUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSmartAccessGatewayClientUserOutcome(DeleteSmartAccessGatewayClientUserResult(outcome.result())); + else + return DeleteSmartAccessGatewayClientUserOutcome(outcome.error()); +} + +void SmartagClient::deleteSmartAccessGatewayClientUserAsync(const DeleteSmartAccessGatewayClientUserRequest& request, const DeleteSmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSmartAccessGatewayClientUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteSmartAccessGatewayClientUserOutcomeCallable SmartagClient::deleteSmartAccessGatewayClientUserCallable(const DeleteSmartAccessGatewayClientUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSmartAccessGatewayClientUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateQosCarOutcome SmartagClient::createQosCar(const CreateQosCarRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateQosCarOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateQosCarOutcome(CreateQosCarResult(outcome.result())); + else + return CreateQosCarOutcome(outcome.error()); +} + +void SmartagClient::createQosCarAsync(const CreateQosCarRequest& request, const CreateQosCarAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createQosCar(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateQosCarOutcomeCallable SmartagClient::createQosCarCallable(const CreateQosCarRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createQosCar(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeGrantRulesOutcome SmartagClient::describeGrantRules(const DescribeGrantRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrantRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrantRulesOutcome(DescribeGrantRulesResult(outcome.result())); + else + return DescribeGrantRulesOutcome(outcome.error()); +} + +void SmartagClient::describeGrantRulesAsync(const DescribeGrantRulesRequest& request, const DescribeGrantRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrantRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeGrantRulesOutcomeCallable SmartagClient::describeGrantRulesCallable(const DescribeGrantRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrantRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnbindSmartAccessGatewayOutcome SmartagClient::unbindSmartAccessGateway(const UnbindSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindSmartAccessGatewayOutcome(UnbindSmartAccessGatewayResult(outcome.result())); + else + return UnbindSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::unbindSmartAccessGatewayAsync(const UnbindSmartAccessGatewayRequest& request, const UnbindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnbindSmartAccessGatewayOutcomeCallable SmartagClient::unbindSmartAccessGatewayCallable(const UnbindSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSmartAccessGatewayOutcome SmartagClient::createSmartAccessGateway(const CreateSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSmartAccessGatewayOutcome(CreateSmartAccessGatewayResult(outcome.result())); + else + return CreateSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::createSmartAccessGatewayAsync(const CreateSmartAccessGatewayRequest& request, const CreateSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSmartAccessGatewayOutcomeCallable SmartagClient::createSmartAccessGatewayCallable(const CreateSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ClearSagRouteableAddressOutcome SmartagClient::clearSagRouteableAddress(const ClearSagRouteableAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ClearSagRouteableAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ClearSagRouteableAddressOutcome(ClearSagRouteableAddressResult(outcome.result())); + else + return ClearSagRouteableAddressOutcome(outcome.error()); +} + +void SmartagClient::clearSagRouteableAddressAsync(const ClearSagRouteableAddressRequest& request, const ClearSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, clearSagRouteableAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ClearSagRouteableAddressOutcomeCallable SmartagClient::clearSagRouteableAddressCallable(const ClearSagRouteableAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->clearSagRouteableAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AssociateQosOutcome SmartagClient::associateQos(const AssociateQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateQosOutcome(AssociateQosResult(outcome.result())); + else + return AssociateQosOutcome(outcome.error()); +} + +void SmartagClient::associateQosAsync(const AssociateQosRequest& request, const AssociateQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AssociateQosOutcomeCallable SmartagClient::associateQosCallable(const AssociateQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteFlowLogOutcome SmartagClient::deleteFlowLog(const DeleteFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowLogOutcome(DeleteFlowLogResult(outcome.result())); + else + return DeleteFlowLogOutcome(outcome.error()); +} + +void SmartagClient::deleteFlowLogAsync(const DeleteFlowLogRequest& request, const DeleteFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteFlowLogOutcomeCallable SmartagClient::deleteFlowLogCallable(const DeleteFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyCloudConnectNetworkOutcome SmartagClient::modifyCloudConnectNetwork(const ModifyCloudConnectNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCloudConnectNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCloudConnectNetworkOutcome(ModifyCloudConnectNetworkResult(outcome.result())); + else + return ModifyCloudConnectNetworkOutcome(outcome.error()); +} + +void SmartagClient::modifyCloudConnectNetworkAsync(const ModifyCloudConnectNetworkRequest& request, const ModifyCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCloudConnectNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyCloudConnectNetworkOutcomeCallable SmartagClient::modifyCloudConnectNetworkCallable(const ModifyCloudConnectNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCloudConnectNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSagOnlineClientStatisticsOutcome SmartagClient::describeSagOnlineClientStatistics(const DescribeSagOnlineClientStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSagOnlineClientStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSagOnlineClientStatisticsOutcome(DescribeSagOnlineClientStatisticsResult(outcome.result())); + else + return DescribeSagOnlineClientStatisticsOutcome(outcome.error()); +} + +void SmartagClient::describeSagOnlineClientStatisticsAsync(const DescribeSagOnlineClientStatisticsRequest& request, const DescribeSagOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSagOnlineClientStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSagOnlineClientStatisticsOutcomeCallable SmartagClient::describeSagOnlineClientStatisticsCallable(const DescribeSagOnlineClientStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSagOnlineClientStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayRoutesOutcome SmartagClient::describeSmartAccessGatewayRoutes(const DescribeSmartAccessGatewayRoutesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayRoutesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayRoutesOutcome(DescribeSmartAccessGatewayRoutesResult(outcome.result())); + else + return DescribeSmartAccessGatewayRoutesOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayRoutesAsync(const DescribeSmartAccessGatewayRoutesRequest& request, const DescribeSmartAccessGatewayRoutesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayRoutes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayRoutesOutcomeCallable SmartagClient::describeSmartAccessGatewayRoutesCallable(const DescribeSmartAccessGatewayRoutesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayRoutes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DowngradeSmartAccessGatewayOutcome SmartagClient::downgradeSmartAccessGateway(const DowngradeSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DowngradeSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DowngradeSmartAccessGatewayOutcome(DowngradeSmartAccessGatewayResult(outcome.result())); + else + return DowngradeSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::downgradeSmartAccessGatewayAsync(const DowngradeSmartAccessGatewayRequest& request, const DowngradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downgradeSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DowngradeSmartAccessGatewayOutcomeCallable SmartagClient::downgradeSmartAccessGatewayCallable(const DowngradeSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downgradeSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySmartAccessGatewayUpBandwidthOutcome SmartagClient::modifySmartAccessGatewayUpBandwidth(const ModifySmartAccessGatewayUpBandwidthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySmartAccessGatewayUpBandwidthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySmartAccessGatewayUpBandwidthOutcome(ModifySmartAccessGatewayUpBandwidthResult(outcome.result())); + else + return ModifySmartAccessGatewayUpBandwidthOutcome(outcome.error()); +} + +void SmartagClient::modifySmartAccessGatewayUpBandwidthAsync(const ModifySmartAccessGatewayUpBandwidthRequest& request, const ModifySmartAccessGatewayUpBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySmartAccessGatewayUpBandwidth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySmartAccessGatewayUpBandwidthOutcomeCallable SmartagClient::modifySmartAccessGatewayUpBandwidthCallable(const ModifySmartAccessGatewayUpBandwidthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySmartAccessGatewayUpBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::GrantSagInstanceToCcnOutcome SmartagClient::grantSagInstanceToCcn(const GrantSagInstanceToCcnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantSagInstanceToCcnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantSagInstanceToCcnOutcome(GrantSagInstanceToCcnResult(outcome.result())); + else + return GrantSagInstanceToCcnOutcome(outcome.error()); +} + +void SmartagClient::grantSagInstanceToCcnAsync(const GrantSagInstanceToCcnRequest& request, const GrantSagInstanceToCcnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantSagInstanceToCcn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GrantSagInstanceToCcnOutcomeCallable SmartagClient::grantSagInstanceToCcnCallable(const GrantSagInstanceToCcnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantSagInstanceToCcn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySmartAccessGatewayOutcome SmartagClient::modifySmartAccessGateway(const ModifySmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySmartAccessGatewayOutcome(ModifySmartAccessGatewayResult(outcome.result())); + else + return ModifySmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::modifySmartAccessGatewayAsync(const ModifySmartAccessGatewayRequest& request, const ModifySmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySmartAccessGatewayOutcomeCallable SmartagClient::modifySmartAccessGatewayCallable(const ModifySmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UpdateSmartAccessGatewayVersionOutcome SmartagClient::updateSmartAccessGatewayVersion(const UpdateSmartAccessGatewayVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSmartAccessGatewayVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSmartAccessGatewayVersionOutcome(UpdateSmartAccessGatewayVersionResult(outcome.result())); + else + return UpdateSmartAccessGatewayVersionOutcome(outcome.error()); +} + +void SmartagClient::updateSmartAccessGatewayVersionAsync(const UpdateSmartAccessGatewayVersionRequest& request, const UpdateSmartAccessGatewayVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSmartAccessGatewayVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpdateSmartAccessGatewayVersionOutcomeCallable SmartagClient::updateSmartAccessGatewayVersionCallable(const UpdateSmartAccessGatewayVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSmartAccessGatewayVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyFlowLogAttributeOutcome SmartagClient::modifyFlowLogAttribute(const ModifyFlowLogAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowLogAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowLogAttributeOutcome(ModifyFlowLogAttributeResult(outcome.result())); + else + return ModifyFlowLogAttributeOutcome(outcome.error()); +} + +void SmartagClient::modifyFlowLogAttributeAsync(const ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlowLogAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyFlowLogAttributeOutcomeCallable SmartagClient::modifyFlowLogAttributeCallable(const ModifyFlowLogAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlowLogAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeQosPoliciesOutcome SmartagClient::describeQosPolicies(const DescribeQosPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeQosPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeQosPoliciesOutcome(DescribeQosPoliciesResult(outcome.result())); + else + return DescribeQosPoliciesOutcome(outcome.error()); +} + +void SmartagClient::describeQosPoliciesAsync(const DescribeQosPoliciesRequest& request, const DescribeQosPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeQosPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeQosPoliciesOutcomeCallable SmartagClient::describeQosPoliciesCallable(const DescribeQosPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeQosPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeACLAttributeOutcome SmartagClient::describeACLAttribute(const DescribeACLAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeACLAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeACLAttributeOutcome(DescribeACLAttributeResult(outcome.result())); + else + return DescribeACLAttributeOutcome(outcome.error()); +} + +void SmartagClient::describeACLAttributeAsync(const DescribeACLAttributeRequest& request, const DescribeACLAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeACLAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeACLAttributeOutcomeCallable SmartagClient::describeACLAttributeCallable(const DescribeACLAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeACLAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateQosOutcome SmartagClient::createQos(const CreateQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateQosOutcome(CreateQosResult(outcome.result())); + else + return CreateQosOutcome(outcome.error()); +} + +void SmartagClient::createQosAsync(const CreateQosRequest& request, const CreateQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateQosOutcomeCallable SmartagClient::createQosCallable(const CreateQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSmartAccessGatewaySoftwareOutcome SmartagClient::createSmartAccessGatewaySoftware(const CreateSmartAccessGatewaySoftwareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSmartAccessGatewaySoftwareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSmartAccessGatewaySoftwareOutcome(CreateSmartAccessGatewaySoftwareResult(outcome.result())); + else + return CreateSmartAccessGatewaySoftwareOutcome(outcome.error()); +} + +void SmartagClient::createSmartAccessGatewaySoftwareAsync(const CreateSmartAccessGatewaySoftwareRequest& request, const CreateSmartAccessGatewaySoftwareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSmartAccessGatewaySoftware(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSmartAccessGatewaySoftwareOutcomeCallable SmartagClient::createSmartAccessGatewaySoftwareCallable(const CreateSmartAccessGatewaySoftwareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSmartAccessGatewaySoftware(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayAttributeOutcome SmartagClient::describeSmartAccessGatewayAttribute(const DescribeSmartAccessGatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayAttributeOutcome(DescribeSmartAccessGatewayAttributeResult(outcome.result())); + else + return DescribeSmartAccessGatewayAttributeOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayAttributeAsync(const DescribeSmartAccessGatewayAttributeRequest& request, const DescribeSmartAccessGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayAttributeOutcomeCallable SmartagClient::describeSmartAccessGatewayAttributeCallable(const DescribeSmartAccessGatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeNetworkOptimizationSagsOutcome SmartagClient::describeNetworkOptimizationSags(const DescribeNetworkOptimizationSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkOptimizationSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkOptimizationSagsOutcome(DescribeNetworkOptimizationSagsResult(outcome.result())); + else + return DescribeNetworkOptimizationSagsOutcome(outcome.error()); +} + +void SmartagClient::describeNetworkOptimizationSagsAsync(const DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkOptimizationSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeNetworkOptimizationSagsOutcomeCallable SmartagClient::describeNetworkOptimizationSagsCallable(const DescribeNetworkOptimizationSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkOptimizationSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateCloudConnectNetworkOutcome SmartagClient::createCloudConnectNetwork(const CreateCloudConnectNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCloudConnectNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCloudConnectNetworkOutcome(CreateCloudConnectNetworkResult(outcome.result())); + else + return CreateCloudConnectNetworkOutcome(outcome.error()); +} + +void SmartagClient::createCloudConnectNetworkAsync(const CreateCloudConnectNetworkRequest& request, const CreateCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCloudConnectNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateCloudConnectNetworkOutcomeCallable SmartagClient::createCloudConnectNetworkCallable(const CreateCloudConnectNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCloudConnectNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteQosPolicyOutcome SmartagClient::deleteQosPolicy(const DeleteQosPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteQosPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteQosPolicyOutcome(DeleteQosPolicyResult(outcome.result())); + else + return DeleteQosPolicyOutcome(outcome.error()); +} + +void SmartagClient::deleteQosPolicyAsync(const DeleteQosPolicyRequest& request, const DeleteQosPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteQosPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteQosPolicyOutcomeCallable SmartagClient::deleteQosPolicyCallable(const DeleteQosPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteQosPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeQosesOutcome SmartagClient::describeQoses(const DescribeQosesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeQosesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeQosesOutcome(DescribeQosesResult(outcome.result())); + else + return DescribeQosesOutcome(outcome.error()); +} + +void SmartagClient::describeQosesAsync(const DescribeQosesRequest& request, const DescribeQosesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeQoses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeQosesOutcomeCallable SmartagClient::describeQosesCallable(const DescribeQosesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeQoses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteSnatEntryOutcome SmartagClient::deleteSnatEntry(const DeleteSnatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSnatEntryOutcome(DeleteSnatEntryResult(outcome.result())); + else + return DeleteSnatEntryOutcome(outcome.error()); +} + +void SmartagClient::deleteSnatEntryAsync(const DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteSnatEntryOutcomeCallable SmartagClient::deleteSnatEntryCallable(const DeleteSnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteQosOutcome SmartagClient::deleteQos(const DeleteQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteQosOutcome(DeleteQosResult(outcome.result())); + else + return DeleteQosOutcome(outcome.error()); +} + +void SmartagClient::deleteQosAsync(const DeleteQosRequest& request, const DeleteQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteQosOutcomeCallable SmartagClient::deleteQosCallable(const DeleteQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewaysOutcome SmartagClient::describeSmartAccessGateways(const DescribeSmartAccessGatewaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewaysOutcome(DescribeSmartAccessGatewaysResult(outcome.result())); + else + return DescribeSmartAccessGatewaysOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewaysAsync(const DescribeSmartAccessGatewaysRequest& request, const DescribeSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewaysOutcomeCallable SmartagClient::describeSmartAccessGatewaysCallable(const DescribeSmartAccessGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeGrantSagRulesOutcome SmartagClient::describeGrantSagRules(const DescribeGrantSagRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrantSagRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrantSagRulesOutcome(DescribeGrantSagRulesResult(outcome.result())); + else + return DescribeGrantSagRulesOutcome(outcome.error()); +} + +void SmartagClient::describeGrantSagRulesAsync(const DescribeGrantSagRulesRequest& request, const DescribeGrantSagRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrantSagRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeGrantSagRulesOutcomeCallable SmartagClient::describeGrantSagRulesCallable(const DescribeGrantSagRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrantSagRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeUserOnlineClientsOutcome SmartagClient::describeUserOnlineClients(const DescribeUserOnlineClientsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserOnlineClientsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserOnlineClientsOutcome(DescribeUserOnlineClientsResult(outcome.result())); + else + return DescribeUserOnlineClientsOutcome(outcome.error()); +} + +void SmartagClient::describeUserOnlineClientsAsync(const DescribeUserOnlineClientsRequest& request, const DescribeUserOnlineClientsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserOnlineClients(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeUserOnlineClientsOutcomeCallable SmartagClient::describeUserOnlineClientsCallable(const DescribeUserOnlineClientsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserOnlineClients(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeQosCarsOutcome SmartagClient::describeQosCars(const DescribeQosCarsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeQosCarsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeQosCarsOutcome(DescribeQosCarsResult(outcome.result())); + else + return DescribeQosCarsOutcome(outcome.error()); +} + +void SmartagClient::describeQosCarsAsync(const DescribeQosCarsRequest& request, const DescribeQosCarsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeQosCars(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeQosCarsOutcomeCallable SmartagClient::describeQosCarsCallable(const DescribeQosCarsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeQosCars(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeUserOnlineClientStatisticsOutcome SmartagClient::describeUserOnlineClientStatistics(const DescribeUserOnlineClientStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserOnlineClientStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserOnlineClientStatisticsOutcome(DescribeUserOnlineClientStatisticsResult(outcome.result())); + else + return DescribeUserOnlineClientStatisticsOutcome(outcome.error()); +} + +void SmartagClient::describeUserOnlineClientStatisticsAsync(const DescribeUserOnlineClientStatisticsRequest& request, const DescribeUserOnlineClientStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserOnlineClientStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeUserOnlineClientStatisticsOutcomeCallable SmartagClient::describeUserOnlineClientStatisticsCallable(const DescribeUserOnlineClientStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserOnlineClientStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::BindVbrOutcome SmartagClient::bindVbr(const BindVbrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindVbrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindVbrOutcome(BindVbrResult(outcome.result())); + else + return BindVbrOutcome(outcome.error()); +} + +void SmartagClient::bindVbrAsync(const BindVbrRequest& request, const BindVbrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindVbr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::BindVbrOutcomeCallable SmartagClient::bindVbrCallable(const BindVbrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindVbr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateDedicatedLineBackupOutcome SmartagClient::createDedicatedLineBackup(const CreateDedicatedLineBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDedicatedLineBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDedicatedLineBackupOutcome(CreateDedicatedLineBackupResult(outcome.result())); + else + return CreateDedicatedLineBackupOutcome(outcome.error()); +} + +void SmartagClient::createDedicatedLineBackupAsync(const CreateDedicatedLineBackupRequest& request, const CreateDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDedicatedLineBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateDedicatedLineBackupOutcomeCallable SmartagClient::createDedicatedLineBackupCallable(const CreateDedicatedLineBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDedicatedLineBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeUserFlowStatisticsOutcome SmartagClient::describeUserFlowStatistics(const DescribeUserFlowStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserFlowStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserFlowStatisticsOutcome(DescribeUserFlowStatisticsResult(outcome.result())); + else + return DescribeUserFlowStatisticsOutcome(outcome.error()); +} + +void SmartagClient::describeUserFlowStatisticsAsync(const DescribeUserFlowStatisticsRequest& request, const DescribeUserFlowStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserFlowStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeUserFlowStatisticsOutcomeCallable SmartagClient::describeUserFlowStatisticsCallable(const DescribeUserFlowStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserFlowStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DisableSmartAccessGatewayUserOutcome SmartagClient::disableSmartAccessGatewayUser(const DisableSmartAccessGatewayUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableSmartAccessGatewayUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableSmartAccessGatewayUserOutcome(DisableSmartAccessGatewayUserResult(outcome.result())); + else + return DisableSmartAccessGatewayUserOutcome(outcome.error()); +} + +void SmartagClient::disableSmartAccessGatewayUserAsync(const DisableSmartAccessGatewayUserRequest& request, const DisableSmartAccessGatewayUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableSmartAccessGatewayUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DisableSmartAccessGatewayUserOutcomeCallable SmartagClient::disableSmartAccessGatewayUserCallable(const DisableSmartAccessGatewayUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableSmartAccessGatewayUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteDnatEntryOutcome SmartagClient::deleteDnatEntry(const DeleteDnatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDnatEntryOutcome(DeleteDnatEntryResult(outcome.result())); + else + return DeleteDnatEntryOutcome(outcome.error()); +} + +void SmartagClient::deleteDnatEntryAsync(const DeleteDnatEntryRequest& request, const DeleteDnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteDnatEntryOutcomeCallable SmartagClient::deleteDnatEntryCallable(const DeleteDnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::SetSagRouteableAddressOutcome SmartagClient::setSagRouteableAddress(const SetSagRouteableAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetSagRouteableAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetSagRouteableAddressOutcome(SetSagRouteableAddressResult(outcome.result())); + else + return SetSagRouteableAddressOutcome(outcome.error()); +} + +void SmartagClient::setSagRouteableAddressAsync(const SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setSagRouteableAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::SetSagRouteableAddressOutcomeCallable SmartagClient::setSagRouteableAddressCallable(const SetSagRouteableAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setSagRouteableAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyACLOutcome SmartagClient::modifyACL(const ModifyACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyACLOutcome(ModifyACLResult(outcome.result())); + else + return ModifyACLOutcome(outcome.error()); +} + +void SmartagClient::modifyACLAsync(const ModifyACLRequest& request, const ModifyACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyACLOutcomeCallable SmartagClient::modifyACLCallable(const ModifyACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeFlowLogsOutcome SmartagClient::describeFlowLogs(const DescribeFlowLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFlowLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFlowLogsOutcome(DescribeFlowLogsResult(outcome.result())); + else + return DescribeFlowLogsOutcome(outcome.error()); +} + +void SmartagClient::describeFlowLogsAsync(const DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFlowLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeFlowLogsOutcomeCallable SmartagClient::describeFlowLogsCallable(const DescribeFlowLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFlowLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayClientUsersOutcome SmartagClient::describeSmartAccessGatewayClientUsers(const DescribeSmartAccessGatewayClientUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayClientUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayClientUsersOutcome(DescribeSmartAccessGatewayClientUsersResult(outcome.result())); + else + return DescribeSmartAccessGatewayClientUsersOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayClientUsersAsync(const DescribeSmartAccessGatewayClientUsersRequest& request, const DescribeSmartAccessGatewayClientUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayClientUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayClientUsersOutcomeCallable SmartagClient::describeSmartAccessGatewayClientUsersCallable(const DescribeSmartAccessGatewayClientUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayClientUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::GetSmartAccessGatewayUseLimitOutcome SmartagClient::getSmartAccessGatewayUseLimit(const GetSmartAccessGatewayUseLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSmartAccessGatewayUseLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSmartAccessGatewayUseLimitOutcome(GetSmartAccessGatewayUseLimitResult(outcome.result())); + else + return GetSmartAccessGatewayUseLimitOutcome(outcome.error()); +} + +void SmartagClient::getSmartAccessGatewayUseLimitAsync(const GetSmartAccessGatewayUseLimitRequest& request, const GetSmartAccessGatewayUseLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSmartAccessGatewayUseLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GetSmartAccessGatewayUseLimitOutcomeCallable SmartagClient::getSmartAccessGatewayUseLimitCallable(const GetSmartAccessGatewayUseLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSmartAccessGatewayUseLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnicomOrderConfirmOutcome SmartagClient::unicomOrderConfirm(const UnicomOrderConfirmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnicomOrderConfirmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnicomOrderConfirmOutcome(UnicomOrderConfirmResult(outcome.result())); + else + return UnicomOrderConfirmOutcome(outcome.error()); +} + +void SmartagClient::unicomOrderConfirmAsync(const UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unicomOrderConfirm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnicomOrderConfirmOutcomeCallable SmartagClient::unicomOrderConfirmCallable(const UnicomOrderConfirmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unicomOrderConfirm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyQosPolicyOutcome SmartagClient::modifyQosPolicy(const ModifyQosPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyQosPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyQosPolicyOutcome(ModifyQosPolicyResult(outcome.result())); + else + return ModifyQosPolicyOutcome(outcome.error()); +} + +void SmartagClient::modifyQosPolicyAsync(const ModifyQosPolicyRequest& request, const ModifyQosPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyQosPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyQosPolicyOutcomeCallable SmartagClient::modifyQosPolicyCallable(const ModifyQosPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyQosPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeNetworkOptimizationsOutcome SmartagClient::describeNetworkOptimizations(const DescribeNetworkOptimizationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkOptimizationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkOptimizationsOutcome(DescribeNetworkOptimizationsResult(outcome.result())); + else + return DescribeNetworkOptimizationsOutcome(outcome.error()); +} + +void SmartagClient::describeNetworkOptimizationsAsync(const DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkOptimizations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeNetworkOptimizationsOutcomeCallable SmartagClient::describeNetworkOptimizationsCallable(const DescribeNetworkOptimizationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkOptimizations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::GrantInstanceToCbnOutcome SmartagClient::grantInstanceToCbn(const GrantInstanceToCbnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantInstanceToCbnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantInstanceToCbnOutcome(GrantInstanceToCbnResult(outcome.result())); + else + return GrantInstanceToCbnOutcome(outcome.error()); +} + +void SmartagClient::grantInstanceToCbnAsync(const GrantInstanceToCbnRequest& request, const GrantInstanceToCbnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantInstanceToCbn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GrantInstanceToCbnOutcomeCallable SmartagClient::grantInstanceToCbnCallable(const GrantInstanceToCbnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantInstanceToCbn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AddSnatEntryOutcome SmartagClient::addSnatEntry(const AddSnatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSnatEntryOutcome(AddSnatEntryResult(outcome.result())); + else + return AddSnatEntryOutcome(outcome.error()); +} + +void SmartagClient::addSnatEntryAsync(const AddSnatEntryRequest& request, const AddSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AddSnatEntryOutcomeCallable SmartagClient::addSnatEntryCallable(const AddSnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteNetworkOptimizationOutcome SmartagClient::deleteNetworkOptimization(const DeleteNetworkOptimizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkOptimizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkOptimizationOutcome(DeleteNetworkOptimizationResult(outcome.result())); + else + return DeleteNetworkOptimizationOutcome(outcome.error()); +} + +void SmartagClient::deleteNetworkOptimizationAsync(const DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkOptimization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteNetworkOptimizationOutcomeCallable SmartagClient::deleteNetworkOptimizationCallable(const DeleteNetworkOptimizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkOptimization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AddDnatEntryOutcome SmartagClient::addDnatEntry(const AddDnatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddDnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddDnatEntryOutcome(AddDnatEntryResult(outcome.result())); + else + return AddDnatEntryOutcome(outcome.error()); +} + +void SmartagClient::addDnatEntryAsync(const AddDnatEntryRequest& request, const AddDnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addDnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AddDnatEntryOutcomeCallable SmartagClient::addDnatEntryCallable(const AddDnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addDnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyNetworkOptimizationOutcome SmartagClient::modifyNetworkOptimization(const ModifyNetworkOptimizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNetworkOptimizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNetworkOptimizationOutcome(ModifyNetworkOptimizationResult(outcome.result())); + else + return ModifyNetworkOptimizationOutcome(outcome.error()); +} + +void SmartagClient::modifyNetworkOptimizationAsync(const ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNetworkOptimization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyNetworkOptimizationOutcomeCallable SmartagClient::modifyNetworkOptimizationCallable(const ModifyNetworkOptimizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNetworkOptimization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSnatEntriesOutcome SmartagClient::describeSnatEntries(const DescribeSnatEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnatEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnatEntriesOutcome(DescribeSnatEntriesResult(outcome.result())); + else + return DescribeSnatEntriesOutcome(outcome.error()); +} + +void SmartagClient::describeSnatEntriesAsync(const DescribeSnatEntriesRequest& request, const DescribeSnatEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnatEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSnatEntriesOutcomeCallable SmartagClient::describeSnatEntriesCallable(const DescribeSnatEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnatEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AddACLRuleOutcome SmartagClient::addACLRule(const AddACLRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddACLRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddACLRuleOutcome(AddACLRuleResult(outcome.result())); + else + return AddACLRuleOutcome(outcome.error()); +} + +void SmartagClient::addACLRuleAsync(const AddACLRuleRequest& request, const AddACLRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addACLRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AddACLRuleOutcomeCallable SmartagClient::addACLRuleCallable(const AddACLRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addACLRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AssociateFlowLogOutcome SmartagClient::associateFlowLog(const AssociateFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateFlowLogOutcome(AssociateFlowLogResult(outcome.result())); + else + return AssociateFlowLogOutcome(outcome.error()); +} + +void SmartagClient::associateFlowLogAsync(const AssociateFlowLogRequest& request, const AssociateFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AssociateFlowLogOutcomeCallable SmartagClient::associateFlowLogCallable(const AssociateFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyQosCarOutcome SmartagClient::modifyQosCar(const ModifyQosCarRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyQosCarOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyQosCarOutcome(ModifyQosCarResult(outcome.result())); + else + return ModifyQosCarOutcome(outcome.error()); +} + +void SmartagClient::modifyQosCarAsync(const ModifyQosCarRequest& request, const ModifyQosCarAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyQosCar(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyQosCarOutcomeCallable SmartagClient::modifyQosCarCallable(const ModifyQosCarRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyQosCar(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::BindSmartAccessGatewayOutcome SmartagClient::bindSmartAccessGateway(const BindSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindSmartAccessGatewayOutcome(BindSmartAccessGatewayResult(outcome.result())); + else + return BindSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::bindSmartAccessGatewayAsync(const BindSmartAccessGatewayRequest& request, const BindSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::BindSmartAccessGatewayOutcomeCallable SmartagClient::bindSmartAccessGatewayCallable(const BindSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DisassociateACLOutcome SmartagClient::disassociateACL(const DisassociateACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisassociateACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisassociateACLOutcome(DisassociateACLResult(outcome.result())); + else + return DisassociateACLOutcome(outcome.error()); +} + +void SmartagClient::disassociateACLAsync(const DisassociateACLRequest& request, const DisassociateACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disassociateACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DisassociateACLOutcomeCallable SmartagClient::disassociateACLCallable(const DisassociateACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disassociateACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteSAGLinkLevelHaOutcome SmartagClient::deleteSAGLinkLevelHa(const DeleteSAGLinkLevelHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSAGLinkLevelHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSAGLinkLevelHaOutcome(DeleteSAGLinkLevelHaResult(outcome.result())); + else + return DeleteSAGLinkLevelHaOutcome(outcome.error()); +} + +void SmartagClient::deleteSAGLinkLevelHaAsync(const DeleteSAGLinkLevelHaRequest& request, const DeleteSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSAGLinkLevelHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteSAGLinkLevelHaOutcomeCallable SmartagClient::deleteSAGLinkLevelHaCallable(const DeleteSAGLinkLevelHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSAGLinkLevelHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeactiveFlowLogOutcome SmartagClient::deactiveFlowLog(const DeactiveFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeactiveFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactiveFlowLogOutcome(DeactiveFlowLogResult(outcome.result())); + else + return DeactiveFlowLogOutcome(outcome.error()); +} + +void SmartagClient::deactiveFlowLogAsync(const DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactiveFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeactiveFlowLogOutcomeCallable SmartagClient::deactiveFlowLogCallable(const DeactiveFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactiveFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateFlowLogOutcome SmartagClient::createFlowLog(const CreateFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowLogOutcome(CreateFlowLogResult(outcome.result())); + else + return CreateFlowLogOutcome(outcome.error()); +} + +void SmartagClient::createFlowLogAsync(const CreateFlowLogRequest& request, const CreateFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateFlowLogOutcomeCallable SmartagClient::createFlowLogCallable(const CreateFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ActiveFlowLogOutcome SmartagClient::activeFlowLog(const ActiveFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActiveFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActiveFlowLogOutcome(ActiveFlowLogResult(outcome.result())); + else + return ActiveFlowLogOutcome(outcome.error()); +} + +void SmartagClient::activeFlowLogAsync(const ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activeFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ActiveFlowLogOutcomeCallable SmartagClient::activeFlowLogCallable(const ActiveFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activeFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::SwitchSAGHaStateOutcome SmartagClient::switchSAGHaState(const SwitchSAGHaStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchSAGHaStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchSAGHaStateOutcome(SwitchSAGHaStateResult(outcome.result())); + else + return SwitchSAGHaStateOutcome(outcome.error()); +} + +void SmartagClient::switchSAGHaStateAsync(const SwitchSAGHaStateRequest& request, const SwitchSAGHaStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchSAGHaState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::SwitchSAGHaStateOutcomeCallable SmartagClient::switchSAGHaStateCallable(const SwitchSAGHaStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchSAGHaState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::KickOutClientsOutcome SmartagClient::kickOutClients(const KickOutClientsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KickOutClientsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KickOutClientsOutcome(KickOutClientsResult(outcome.result())); + else + return KickOutClientsOutcome(outcome.error()); +} + +void SmartagClient::kickOutClientsAsync(const KickOutClientsRequest& request, const KickOutClientsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, kickOutClients(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::KickOutClientsOutcomeCallable SmartagClient::kickOutClientsCallable(const KickOutClientsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->kickOutClients(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSagRouteableAddressOutcome SmartagClient::describeSagRouteableAddress(const DescribeSagRouteableAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSagRouteableAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSagRouteableAddressOutcome(DescribeSagRouteableAddressResult(outcome.result())); + else + return DescribeSagRouteableAddressOutcome(outcome.error()); +} + +void SmartagClient::describeSagRouteableAddressAsync(const DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSagRouteableAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSagRouteableAddressOutcomeCallable SmartagClient::describeSagRouteableAddressCallable(const DescribeSagRouteableAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSagRouteableAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::SwitchCloudBoxHaStateOutcome SmartagClient::switchCloudBoxHaState(const SwitchCloudBoxHaStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchCloudBoxHaStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchCloudBoxHaStateOutcome(SwitchCloudBoxHaStateResult(outcome.result())); + else + return SwitchCloudBoxHaStateOutcome(outcome.error()); +} + +void SmartagClient::switchCloudBoxHaStateAsync(const SwitchCloudBoxHaStateRequest& request, const SwitchCloudBoxHaStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchCloudBoxHaState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::SwitchCloudBoxHaStateOutcomeCallable SmartagClient::switchCloudBoxHaStateCallable(const SwitchCloudBoxHaStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchCloudBoxHaState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AttachNetworkOptimizationSagsOutcome SmartagClient::attachNetworkOptimizationSags(const AttachNetworkOptimizationSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachNetworkOptimizationSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachNetworkOptimizationSagsOutcome(AttachNetworkOptimizationSagsResult(outcome.result())); + else + return AttachNetworkOptimizationSagsOutcome(outcome.error()); +} + +void SmartagClient::attachNetworkOptimizationSagsAsync(const AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachNetworkOptimizationSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AttachNetworkOptimizationSagsOutcomeCallable SmartagClient::attachNetworkOptimizationSagsCallable(const AttachNetworkOptimizationSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachNetworkOptimizationSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteACLOutcome SmartagClient::deleteACL(const DeleteACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteACLOutcome(DeleteACLResult(outcome.result())); + else + return DeleteACLOutcome(outcome.error()); +} + +void SmartagClient::deleteACLAsync(const DeleteACLRequest& request, const DeleteACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteACLOutcomeCallable SmartagClient::deleteACLCallable(const DeleteACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::AssociateACLOutcome SmartagClient::associateACL(const AssociateACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateACLOutcome(AssociateACLResult(outcome.result())); + else + return AssociateACLOutcome(outcome.error()); +} + +void SmartagClient::associateACLAsync(const AssociateACLRequest& request, const AssociateACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::AssociateACLOutcomeCallable SmartagClient::associateACLCallable(const AssociateACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeDnatEntriesOutcome SmartagClient::describeDnatEntries(const DescribeDnatEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDnatEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDnatEntriesOutcome(DescribeDnatEntriesResult(outcome.result())); + else + return DescribeDnatEntriesOutcome(outcome.error()); +} + +void SmartagClient::describeDnatEntriesAsync(const DescribeDnatEntriesRequest& request, const DescribeDnatEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDnatEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeDnatEntriesOutcomeCallable SmartagClient::describeDnatEntriesCallable(const DescribeDnatEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDnatEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayVersionsOutcome SmartagClient::describeSmartAccessGatewayVersions(const DescribeSmartAccessGatewayVersionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayVersionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayVersionsOutcome(DescribeSmartAccessGatewayVersionsResult(outcome.result())); + else + return DescribeSmartAccessGatewayVersionsOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayVersionsAsync(const DescribeSmartAccessGatewayVersionsRequest& request, const DescribeSmartAccessGatewayVersionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayVersions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayVersionsOutcomeCallable SmartagClient::describeSmartAccessGatewayVersionsCallable(const DescribeSmartAccessGatewayVersionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayVersions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::RevokeInstanceFromCbnOutcome SmartagClient::revokeInstanceFromCbn(const RevokeInstanceFromCbnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeInstanceFromCbnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeInstanceFromCbnOutcome(RevokeInstanceFromCbnResult(outcome.result())); + else + return RevokeInstanceFromCbnOutcome(outcome.error()); +} + +void SmartagClient::revokeInstanceFromCbnAsync(const RevokeInstanceFromCbnRequest& request, const RevokeInstanceFromCbnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeInstanceFromCbn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::RevokeInstanceFromCbnOutcomeCallable SmartagClient::revokeInstanceFromCbnCallable(const RevokeInstanceFromCbnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeInstanceFromCbn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateQosPolicyOutcome SmartagClient::createQosPolicy(const CreateQosPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateQosPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateQosPolicyOutcome(CreateQosPolicyResult(outcome.result())); + else + return CreateQosPolicyOutcome(outcome.error()); +} + +void SmartagClient::createQosPolicyAsync(const CreateQosPolicyRequest& request, const CreateQosPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createQosPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateQosPolicyOutcomeCallable SmartagClient::createQosPolicyCallable(const CreateQosPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createQosPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySerialNumberOutcome SmartagClient::modifySerialNumber(const ModifySerialNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySerialNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySerialNumberOutcome(ModifySerialNumberResult(outcome.result())); + else + return ModifySerialNumberOutcome(outcome.error()); +} + +void SmartagClient::modifySerialNumberAsync(const ModifySerialNumberRequest& request, const ModifySerialNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySerialNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySerialNumberOutcomeCallable SmartagClient::modifySerialNumberCallable(const ModifySerialNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySerialNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeFlowLogSagsOutcome SmartagClient::describeFlowLogSags(const DescribeFlowLogSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFlowLogSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFlowLogSagsOutcome(DescribeFlowLogSagsResult(outcome.result())); + else + return DescribeFlowLogSagsOutcome(outcome.error()); +} + +void SmartagClient::describeFlowLogSagsAsync(const DescribeFlowLogSagsRequest& request, const DescribeFlowLogSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFlowLogSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeFlowLogSagsOutcomeCallable SmartagClient::describeFlowLogSagsCallable(const DescribeFlowLogSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFlowLogSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteDedicatedLineBackupOutcome SmartagClient::deleteDedicatedLineBackup(const DeleteDedicatedLineBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDedicatedLineBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDedicatedLineBackupOutcome(DeleteDedicatedLineBackupResult(outcome.result())); + else + return DeleteDedicatedLineBackupOutcome(outcome.error()); +} + +void SmartagClient::deleteDedicatedLineBackupAsync(const DeleteDedicatedLineBackupRequest& request, const DeleteDedicatedLineBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDedicatedLineBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteDedicatedLineBackupOutcomeCallable SmartagClient::deleteDedicatedLineBackupCallable(const DeleteDedicatedLineBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDedicatedLineBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeACLsOutcome SmartagClient::describeACLs(const DescribeACLsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeACLsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeACLsOutcome(DescribeACLsResult(outcome.result())); + else + return DescribeACLsOutcome(outcome.error()); +} + +void SmartagClient::describeACLsAsync(const DescribeACLsRequest& request, const DescribeACLsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeACLs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeACLsOutcomeCallable SmartagClient::describeACLsCallable(const DescribeACLsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeACLs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ResetSmartAccessGatewayClientUserPasswordOutcome SmartagClient::resetSmartAccessGatewayClientUserPassword(const ResetSmartAccessGatewayClientUserPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetSmartAccessGatewayClientUserPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetSmartAccessGatewayClientUserPasswordOutcome(ResetSmartAccessGatewayClientUserPasswordResult(outcome.result())); + else + return ResetSmartAccessGatewayClientUserPasswordOutcome(outcome.error()); +} + +void SmartagClient::resetSmartAccessGatewayClientUserPasswordAsync(const ResetSmartAccessGatewayClientUserPasswordRequest& request, const ResetSmartAccessGatewayClientUserPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetSmartAccessGatewayClientUserPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ResetSmartAccessGatewayClientUserPasswordOutcomeCallable SmartagClient::resetSmartAccessGatewayClientUserPasswordCallable(const ResetSmartAccessGatewayClientUserPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetSmartAccessGatewayClientUserPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnlockSmartAccessGatewayOutcome SmartagClient::unlockSmartAccessGateway(const UnlockSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnlockSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnlockSmartAccessGatewayOutcome(UnlockSmartAccessGatewayResult(outcome.result())); + else + return UnlockSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::unlockSmartAccessGatewayAsync(const UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unlockSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnlockSmartAccessGatewayOutcomeCallable SmartagClient::unlockSmartAccessGatewayCallable(const UnlockSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unlockSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeUnbindFlowLogSagsOutcome SmartagClient::describeUnbindFlowLogSags(const DescribeUnbindFlowLogSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUnbindFlowLogSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUnbindFlowLogSagsOutcome(DescribeUnbindFlowLogSagsResult(outcome.result())); + else + return DescribeUnbindFlowLogSagsOutcome(outcome.error()); +} + +void SmartagClient::describeUnbindFlowLogSagsAsync(const DescribeUnbindFlowLogSagsRequest& request, const DescribeUnbindFlowLogSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUnbindFlowLogSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeUnbindFlowLogSagsOutcomeCallable SmartagClient::describeUnbindFlowLogSagsCallable(const DescribeUnbindFlowLogSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUnbindFlowLogSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateSAGLinkLevelHaOutcome SmartagClient::createSAGLinkLevelHa(const CreateSAGLinkLevelHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSAGLinkLevelHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSAGLinkLevelHaOutcome(CreateSAGLinkLevelHaResult(outcome.result())); + else + return CreateSAGLinkLevelHaOutcome(outcome.error()); +} + +void SmartagClient::createSAGLinkLevelHaAsync(const CreateSAGLinkLevelHaRequest& request, const CreateSAGLinkLevelHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSAGLinkLevelHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateSAGLinkLevelHaOutcomeCallable SmartagClient::createSAGLinkLevelHaCallable(const CreateSAGLinkLevelHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSAGLinkLevelHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DisassociateFlowLogOutcome SmartagClient::disassociateFlowLog(const DisassociateFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisassociateFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisassociateFlowLogOutcome(DisassociateFlowLogResult(outcome.result())); + else + return DisassociateFlowLogOutcome(outcome.error()); +} + +void SmartagClient::disassociateFlowLogAsync(const DisassociateFlowLogRequest& request, const DisassociateFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disassociateFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DisassociateFlowLogOutcomeCallable SmartagClient::disassociateFlowLogCallable(const DisassociateFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disassociateFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeSmartAccessGatewayHaOutcome SmartagClient::describeSmartAccessGatewayHa(const DescribeSmartAccessGatewayHaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartAccessGatewayHaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartAccessGatewayHaOutcome(DescribeSmartAccessGatewayHaResult(outcome.result())); + else + return DescribeSmartAccessGatewayHaOutcome(outcome.error()); +} + +void SmartagClient::describeSmartAccessGatewayHaAsync(const DescribeSmartAccessGatewayHaRequest& request, const DescribeSmartAccessGatewayHaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartAccessGatewayHa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeSmartAccessGatewayHaOutcomeCallable SmartagClient::describeSmartAccessGatewayHaCallable(const DescribeSmartAccessGatewayHaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartAccessGatewayHa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeNetworkOptimizationSettingsOutcome SmartagClient::describeNetworkOptimizationSettings(const DescribeNetworkOptimizationSettingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkOptimizationSettingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkOptimizationSettingsOutcome(DescribeNetworkOptimizationSettingsResult(outcome.result())); + else + return DescribeNetworkOptimizationSettingsOutcome(outcome.error()); +} + +void SmartagClient::describeNetworkOptimizationSettingsAsync(const DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkOptimizationSettings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeNetworkOptimizationSettingsOutcomeCallable SmartagClient::describeNetworkOptimizationSettingsCallable(const DescribeNetworkOptimizationSettingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkOptimizationSettings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteCloudConnectNetworkOutcome SmartagClient::deleteCloudConnectNetwork(const DeleteCloudConnectNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCloudConnectNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCloudConnectNetworkOutcome(DeleteCloudConnectNetworkResult(outcome.result())); + else + return DeleteCloudConnectNetworkOutcome(outcome.error()); +} + +void SmartagClient::deleteCloudConnectNetworkAsync(const DeleteCloudConnectNetworkRequest& request, const DeleteCloudConnectNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCloudConnectNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteCloudConnectNetworkOutcomeCallable SmartagClient::deleteCloudConnectNetworkCallable(const DeleteCloudConnectNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCloudConnectNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::CreateACLOutcome SmartagClient::createACL(const CreateACLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateACLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateACLOutcome(CreateACLResult(outcome.result())); + else + return CreateACLOutcome(outcome.error()); +} + +void SmartagClient::createACLAsync(const CreateACLRequest& request, const CreateACLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createACL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::CreateACLOutcomeCallable SmartagClient::createACLCallable(const CreateACLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createACL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::RebootSmartAccessGatewayOutcome SmartagClient::rebootSmartAccessGateway(const RebootSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RebootSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RebootSmartAccessGatewayOutcome(RebootSmartAccessGatewayResult(outcome.result())); + else + return RebootSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::rebootSmartAccessGatewayAsync(const RebootSmartAccessGatewayRequest& request, const RebootSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rebootSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::RebootSmartAccessGatewayOutcomeCallable SmartagClient::rebootSmartAccessGatewayCallable(const RebootSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rebootSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeRegionsOutcome SmartagClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void SmartagClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeRegionsOutcomeCallable SmartagClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyACLRuleOutcome SmartagClient::modifyACLRule(const ModifyACLRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyACLRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyACLRuleOutcome(ModifyACLRuleResult(outcome.result())); + else + return ModifyACLRuleOutcome(outcome.error()); +} + +void SmartagClient::modifyACLRuleAsync(const ModifyACLRuleRequest& request, const ModifyACLRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyACLRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyACLRuleOutcomeCallable SmartagClient::modifyACLRuleCallable(const ModifyACLRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyACLRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeCloudConnectNetworksOutcome SmartagClient::describeCloudConnectNetworks(const DescribeCloudConnectNetworksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudConnectNetworksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudConnectNetworksOutcome(DescribeCloudConnectNetworksResult(outcome.result())); + else + return DescribeCloudConnectNetworksOutcome(outcome.error()); +} + +void SmartagClient::describeCloudConnectNetworksAsync(const DescribeCloudConnectNetworksRequest& request, const DescribeCloudConnectNetworksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudConnectNetworks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeCloudConnectNetworksOutcomeCallable SmartagClient::describeCloudConnectNetworksCallable(const DescribeCloudConnectNetworksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudConnectNetworks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifySmartAccessGatewayClientUserOutcome SmartagClient::modifySmartAccessGatewayClientUser(const ModifySmartAccessGatewayClientUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySmartAccessGatewayClientUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySmartAccessGatewayClientUserOutcome(ModifySmartAccessGatewayClientUserResult(outcome.result())); + else + return ModifySmartAccessGatewayClientUserOutcome(outcome.error()); +} + +void SmartagClient::modifySmartAccessGatewayClientUserAsync(const ModifySmartAccessGatewayClientUserRequest& request, const ModifySmartAccessGatewayClientUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySmartAccessGatewayClientUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifySmartAccessGatewayClientUserOutcomeCallable SmartagClient::modifySmartAccessGatewayClientUserCallable(const ModifySmartAccessGatewayClientUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySmartAccessGatewayClientUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteNetworkOptimizationSettingOutcome SmartagClient::deleteNetworkOptimizationSetting(const DeleteNetworkOptimizationSettingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkOptimizationSettingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkOptimizationSettingOutcome(DeleteNetworkOptimizationSettingResult(outcome.result())); + else + return DeleteNetworkOptimizationSettingOutcome(outcome.error()); +} + +void SmartagClient::deleteNetworkOptimizationSettingAsync(const DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkOptimizationSetting(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteNetworkOptimizationSettingOutcomeCallable SmartagClient::deleteNetworkOptimizationSettingCallable(const DeleteNetworkOptimizationSettingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkOptimizationSetting(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::GetCloudConnectNetworkUseLimitOutcome SmartagClient::getCloudConnectNetworkUseLimit(const GetCloudConnectNetworkUseLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCloudConnectNetworkUseLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCloudConnectNetworkUseLimitOutcome(GetCloudConnectNetworkUseLimitResult(outcome.result())); + else + return GetCloudConnectNetworkUseLimitOutcome(outcome.error()); +} + +void SmartagClient::getCloudConnectNetworkUseLimitAsync(const GetCloudConnectNetworkUseLimitRequest& request, const GetCloudConnectNetworkUseLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCloudConnectNetworkUseLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::GetCloudConnectNetworkUseLimitOutcomeCallable SmartagClient::getCloudConnectNetworkUseLimitCallable(const GetCloudConnectNetworkUseLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCloudConnectNetworkUseLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UpgradeSmartAccessGatewayOutcome SmartagClient::upgradeSmartAccessGateway(const UpgradeSmartAccessGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeSmartAccessGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeSmartAccessGatewayOutcome(UpgradeSmartAccessGatewayResult(outcome.result())); + else + return UpgradeSmartAccessGatewayOutcome(outcome.error()); +} + +void SmartagClient::upgradeSmartAccessGatewayAsync(const UpgradeSmartAccessGatewayRequest& request, const UpgradeSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeSmartAccessGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UpgradeSmartAccessGatewayOutcomeCallable SmartagClient::upgradeSmartAccessGatewayCallable(const UpgradeSmartAccessGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeSmartAccessGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DeleteQosCarOutcome SmartagClient::deleteQosCar(const DeleteQosCarRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteQosCarOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteQosCarOutcome(DeleteQosCarResult(outcome.result())); + else + return DeleteQosCarOutcome(outcome.error()); +} + +void SmartagClient::deleteQosCarAsync(const DeleteQosCarRequest& request, const DeleteQosCarAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteQosCar(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DeleteQosCarOutcomeCallable SmartagClient::deleteQosCarCallable(const DeleteQosCarRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteQosCar(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DisassociateQosOutcome SmartagClient::disassociateQos(const DisassociateQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisassociateQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisassociateQosOutcome(DisassociateQosResult(outcome.result())); + else + return DisassociateQosOutcome(outcome.error()); +} + +void SmartagClient::disassociateQosAsync(const DisassociateQosRequest& request, const DisassociateQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disassociateQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DisassociateQosOutcomeCallable SmartagClient::disassociateQosCallable(const DisassociateQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disassociateQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DetachNetworkOptimizationSagsOutcome SmartagClient::detachNetworkOptimizationSags(const DetachNetworkOptimizationSagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachNetworkOptimizationSagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachNetworkOptimizationSagsOutcome(DetachNetworkOptimizationSagsResult(outcome.result())); + else + return DetachNetworkOptimizationSagsOutcome(outcome.error()); +} + +void SmartagClient::detachNetworkOptimizationSagsAsync(const DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachNetworkOptimizationSags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DetachNetworkOptimizationSagsOutcomeCallable SmartagClient::detachNetworkOptimizationSagsCallable(const DetachNetworkOptimizationSagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachNetworkOptimizationSags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::EnableSmartAccessGatewayUserOutcome SmartagClient::enableSmartAccessGatewayUser(const EnableSmartAccessGatewayUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableSmartAccessGatewayUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableSmartAccessGatewayUserOutcome(EnableSmartAccessGatewayUserResult(outcome.result())); + else + return EnableSmartAccessGatewayUserOutcome(outcome.error()); +} + +void SmartagClient::enableSmartAccessGatewayUserAsync(const EnableSmartAccessGatewayUserRequest& request, const EnableSmartAccessGatewayUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableSmartAccessGatewayUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::EnableSmartAccessGatewayUserOutcomeCallable SmartagClient::enableSmartAccessGatewayUserCallable(const EnableSmartAccessGatewayUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableSmartAccessGatewayUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::ModifyQosOutcome SmartagClient::modifyQos(const ModifyQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyQosOutcome(ModifyQosResult(outcome.result())); + else + return ModifyQosOutcome(outcome.error()); +} + +void SmartagClient::modifyQosAsync(const ModifyQosRequest& request, const ModifyQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::ModifyQosOutcomeCallable SmartagClient::modifyQosCallable(const ModifyQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::UnbindVbrOutcome SmartagClient::unbindVbr(const UnbindVbrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindVbrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindVbrOutcome(UnbindVbrResult(outcome.result())); + else + return UnbindVbrOutcome(outcome.error()); +} + +void SmartagClient::unbindVbrAsync(const UnbindVbrRequest& request, const UnbindVbrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindVbr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::UnbindVbrOutcomeCallable SmartagClient::unbindVbrCallable(const UnbindVbrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindVbr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SmartagClient::DescribeBindableSmartAccessGatewaysOutcome SmartagClient::describeBindableSmartAccessGateways(const DescribeBindableSmartAccessGatewaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBindableSmartAccessGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBindableSmartAccessGatewaysOutcome(DescribeBindableSmartAccessGatewaysResult(outcome.result())); + else + return DescribeBindableSmartAccessGatewaysOutcome(outcome.error()); +} + +void SmartagClient::describeBindableSmartAccessGatewaysAsync(const DescribeBindableSmartAccessGatewaysRequest& request, const DescribeBindableSmartAccessGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBindableSmartAccessGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SmartagClient::DescribeBindableSmartAccessGatewaysOutcomeCallable SmartagClient::describeBindableSmartAccessGatewaysCallable(const DescribeBindableSmartAccessGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBindableSmartAccessGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} diff --git a/smartag/src/model/ActivateSmartAccessGatewayRequest.cc b/smartag/src/model/ActivateSmartAccessGatewayRequest.cc index dad94e73b..5bea2d953 100644 --- a/smartag/src/model/ActivateSmartAccessGatewayRequest.cc +++ b/smartag/src/model/ActivateSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ActivateSmartAccessGatewayRequest; - -ActivateSmartAccessGatewayRequest::ActivateSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ActivateSmartAccessGateway") -{} - -ActivateSmartAccessGatewayRequest::~ActivateSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ActivateSmartAccessGatewayRequest; + +ActivateSmartAccessGatewayRequest::ActivateSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ActivateSmartAccessGateway") +{} + +ActivateSmartAccessGatewayRequest::~ActivateSmartAccessGatewayRequest() +{} + long ActivateSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/ActivateSmartAccessGatewayResult.cc b/smartag/src/model/ActivateSmartAccessGatewayResult.cc index 368f2d5a4..822e1cbc0 100644 --- a/smartag/src/model/ActivateSmartAccessGatewayResult.cc +++ b/smartag/src/model/ActivateSmartAccessGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult() : - ServiceResult() -{} - -ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ActivateSmartAccessGatewayResult::~ActivateSmartAccessGatewayResult() -{} - -void ActivateSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult() : + ServiceResult() +{} + +ActivateSmartAccessGatewayResult::ActivateSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivateSmartAccessGatewayResult::~ActivateSmartAccessGatewayResult() +{} + +void ActivateSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ActiveFlowLogRequest.cc b/smartag/src/model/ActiveFlowLogRequest.cc new file mode 100644 index 000000000..588d19918 --- /dev/null +++ b/smartag/src/model/ActiveFlowLogRequest.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 + +using AlibabaCloud::Smartag::Model::ActiveFlowLogRequest; + +ActiveFlowLogRequest::ActiveFlowLogRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ActiveFlowLog") +{} + +ActiveFlowLogRequest::~ActiveFlowLogRequest() +{} + +long ActiveFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ActiveFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ActiveFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void ActiveFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ActiveFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ActiveFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void ActiveFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ActiveFlowLogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/smartag/src/model/ActiveFlowLogResult.cc b/smartag/src/model/ActiveFlowLogResult.cc new file mode 100644 index 000000000..cb1aaf742 --- /dev/null +++ b/smartag/src/model/ActiveFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ActiveFlowLogResult::ActiveFlowLogResult() : + ServiceResult() +{} + +ActiveFlowLogResult::ActiveFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActiveFlowLogResult::~ActiveFlowLogResult() +{} + +void ActiveFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AddACLRuleRequest.cc b/smartag/src/model/AddACLRuleRequest.cc index f14d5e51e..2e5a145c7 100644 --- a/smartag/src/model/AddACLRuleRequest.cc +++ b/smartag/src/model/AddACLRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::AddACLRuleRequest; - -AddACLRuleRequest::AddACLRuleRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AddACLRule") -{} - -AddACLRuleRequest::~AddACLRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::AddACLRuleRequest; + +AddACLRuleRequest::AddACLRuleRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AddACLRule") +{} + +AddACLRuleRequest::~AddACLRuleRequest() +{} + std::string AddACLRuleRequest::getAclId()const { return aclId_; @@ -135,6 +135,17 @@ void AddACLRuleRequest::setPriority(int priority) setCoreParameter("Priority", std::to_string(priority)); } +std::string AddACLRuleRequest::getType()const +{ + return type_; +} + +void AddACLRuleRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + std::string AddACLRuleRequest::getDestCidr()const { return destCidr_; diff --git a/smartag/src/model/AddACLRuleResult.cc b/smartag/src/model/AddACLRuleResult.cc index 0a8af5f73..fbbff3a6f 100644 --- a/smartag/src/model/AddACLRuleResult.cc +++ b/smartag/src/model/AddACLRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -AddACLRuleResult::AddACLRuleResult() : - ServiceResult() -{} - -AddACLRuleResult::AddACLRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddACLRuleResult::~AddACLRuleResult() -{} - -void AddACLRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AddACLRuleResult::AddACLRuleResult() : + ServiceResult() +{} + +AddACLRuleResult::AddACLRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddACLRuleResult::~AddACLRuleResult() +{} + +void AddACLRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AcrId"].isNull()) acrId_ = value["AcrId"].asString(); if(!value["AclId"].isNull()) @@ -64,29 +67,21 @@ void AddACLRuleResult::parse(const std::string &payload) priority_ = std::stoi(value["Priority"].asString()); if(!value["GmtCreate"].isNull()) gmtCreate_ = std::stol(value["GmtCreate"].asString()); - -} - + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + +} + std::string AddACLRuleResult::getPolicy()const { return policy_; } -long AddACLRuleResult::getGmtCreate()const -{ - return gmtCreate_; -} - std::string AddACLRuleResult::getDescription()const { return description_; } -std::string AddACLRuleResult::getDestCidr()const -{ - return destCidr_; -} - std::string AddACLRuleResult::getSourcePortRange()const { return sourcePortRange_; @@ -112,11 +107,6 @@ std::string AddACLRuleResult::getAcrId()const return acrId_; } -std::string AddACLRuleResult::getIpProtocol()const -{ - return ipProtocol_; -} - std::string AddACLRuleResult::getDestPortRange()const { return destPortRange_; @@ -127,3 +117,23 @@ std::string AddACLRuleResult::getDirection()const return direction_; } +long AddACLRuleResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string AddACLRuleResult::getType()const +{ + return type_; +} + +std::string AddACLRuleResult::getDestCidr()const +{ + return destCidr_; +} + +std::string AddACLRuleResult::getIpProtocol()const +{ + return ipProtocol_; +} + diff --git a/smartag/src/model/AddDnatEntryRequest.cc b/smartag/src/model/AddDnatEntryRequest.cc new file mode 100644 index 000000000..8cd91bb42 --- /dev/null +++ b/smartag/src/model/AddDnatEntryRequest.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 + +using AlibabaCloud::Smartag::Model::AddDnatEntryRequest; + +AddDnatEntryRequest::AddDnatEntryRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AddDnatEntry") +{} + +AddDnatEntryRequest::~AddDnatEntryRequest() +{} + +long AddDnatEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddDnatEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddDnatEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddDnatEntryRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void AddDnatEntryRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setCoreParameter("IpProtocol", ipProtocol); +} + +std::string AddDnatEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long AddDnatEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddDnatEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddDnatEntryRequest::getType()const +{ + return type_; +} + +void AddDnatEntryRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string AddDnatEntryRequest::getInternalIp()const +{ + return internalIp_; +} + +void AddDnatEntryRequest::setInternalIp(const std::string& internalIp) +{ + internalIp_ = internalIp; + setCoreParameter("InternalIp", internalIp); +} + +std::string AddDnatEntryRequest::getRegionId()const +{ + return regionId_; +} + +void AddDnatEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddDnatEntryRequest::getSagId()const +{ + return sagId_; +} + +void AddDnatEntryRequest::setSagId(const std::string& sagId) +{ + sagId_ = sagId; + setCoreParameter("SagId", sagId); +} + +std::string AddDnatEntryRequest::getInternalPort()const +{ + return internalPort_; +} + +void AddDnatEntryRequest::setInternalPort(const std::string& internalPort) +{ + internalPort_ = internalPort; + setCoreParameter("InternalPort", internalPort); +} + +std::string AddDnatEntryRequest::getExternalIp()const +{ + return externalIp_; +} + +void AddDnatEntryRequest::setExternalIp(const std::string& externalIp) +{ + externalIp_ = externalIp; + setCoreParameter("ExternalIp", externalIp); +} + +std::string AddDnatEntryRequest::getExternalPort()const +{ + return externalPort_; +} + +void AddDnatEntryRequest::setExternalPort(const std::string& externalPort) +{ + externalPort_ = externalPort; + setCoreParameter("ExternalPort", externalPort); +} + diff --git a/smartag/src/model/AddDnatEntryResult.cc b/smartag/src/model/AddDnatEntryResult.cc new file mode 100644 index 000000000..5f5c6e742 --- /dev/null +++ b/smartag/src/model/AddDnatEntryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AddDnatEntryResult::AddDnatEntryResult() : + ServiceResult() +{} + +AddDnatEntryResult::AddDnatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddDnatEntryResult::~AddDnatEntryResult() +{} + +void AddDnatEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["DnatEntryId"].isNull()) + dnatEntryId_ = value["DnatEntryId"].asString(); + +} + +std::string AddDnatEntryResult::getDnatEntryId()const +{ + return dnatEntryId_; +} + diff --git a/smartag/src/model/AddNetworkOptimizationSettingRequest.cc b/smartag/src/model/AddNetworkOptimizationSettingRequest.cc index b48f6805b..6412f908d 100644 --- a/smartag/src/model/AddNetworkOptimizationSettingRequest.cc +++ b/smartag/src/model/AddNetworkOptimizationSettingRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::AddNetworkOptimizationSettingRequest; - -AddNetworkOptimizationSettingRequest::AddNetworkOptimizationSettingRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AddNetworkOptimizationSetting") -{} - -AddNetworkOptimizationSettingRequest::~AddNetworkOptimizationSettingRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::AddNetworkOptimizationSettingRequest; + +AddNetworkOptimizationSettingRequest::AddNetworkOptimizationSettingRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AddNetworkOptimizationSetting") +{} + +AddNetworkOptimizationSettingRequest::~AddNetworkOptimizationSettingRequest() +{} + long AddNetworkOptimizationSettingRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/AddNetworkOptimizationSettingResult.cc b/smartag/src/model/AddNetworkOptimizationSettingResult.cc index 283eaafb2..4200f5902 100644 --- a/smartag/src/model/AddNetworkOptimizationSettingResult.cc +++ b/smartag/src/model/AddNetworkOptimizationSettingResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult() : - ServiceResult() -{} - -AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddNetworkOptimizationSettingResult::~AddNetworkOptimizationSettingResult() -{} - -void AddNetworkOptimizationSettingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult() : + ServiceResult() +{} + +AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddNetworkOptimizationSettingResult::~AddNetworkOptimizationSettingResult() +{} + +void AddNetworkOptimizationSettingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AddSnatEntryRequest.cc b/smartag/src/model/AddSnatEntryRequest.cc new file mode 100644 index 000000000..b6110730e --- /dev/null +++ b/smartag/src/model/AddSnatEntryRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::AddSnatEntryRequest; + +AddSnatEntryRequest::AddSnatEntryRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AddSnatEntry") +{} + +AddSnatEntryRequest::~AddSnatEntryRequest() +{} + +long AddSnatEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddSnatEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddSnatEntryRequest::getRegionId()const +{ + return regionId_; +} + +void AddSnatEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AddSnatEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AddSnatEntryRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void AddSnatEntryRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setCoreParameter("CidrBlock", cidrBlock); +} + +std::string AddSnatEntryRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void AddSnatEntryRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long AddSnatEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddSnatEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddSnatEntryRequest::getSnatIp()const +{ + return snatIp_; +} + +void AddSnatEntryRequest::setSnatIp(const std::string& snatIp) +{ + snatIp_ = snatIp; + setCoreParameter("SnatIp", snatIp); +} + diff --git a/smartag/src/model/AddSnatEntryResult.cc b/smartag/src/model/AddSnatEntryResult.cc new file mode 100644 index 000000000..16c89a1a9 --- /dev/null +++ b/smartag/src/model/AddSnatEntryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AddSnatEntryResult::AddSnatEntryResult() : + ServiceResult() +{} + +AddSnatEntryResult::AddSnatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSnatEntryResult::~AddSnatEntryResult() +{} + +void AddSnatEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string AddSnatEntryResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/smartag/src/model/AssociateACLRequest.cc b/smartag/src/model/AssociateACLRequest.cc index caba88cac..0d450cd63 100644 --- a/smartag/src/model/AssociateACLRequest.cc +++ b/smartag/src/model/AssociateACLRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::AssociateACLRequest; - -AssociateACLRequest::AssociateACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AssociateACL") -{} - -AssociateACLRequest::~AssociateACLRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::AssociateACLRequest; + +AssociateACLRequest::AssociateACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AssociateACL") +{} + +AssociateACLRequest::~AssociateACLRequest() +{} + std::string AssociateACLRequest::getAclId()const { return aclId_; diff --git a/smartag/src/model/AssociateACLResult.cc b/smartag/src/model/AssociateACLResult.cc index 4ba4fbc00..60f91afd6 100644 --- a/smartag/src/model/AssociateACLResult.cc +++ b/smartag/src/model/AssociateACLResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -AssociateACLResult::AssociateACLResult() : - ServiceResult() -{} - -AssociateACLResult::AssociateACLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AssociateACLResult::~AssociateACLResult() -{} - -void AssociateACLResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AssociateACLResult::AssociateACLResult() : + ServiceResult() +{} + +AssociateACLResult::AssociateACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateACLResult::~AssociateACLResult() +{} + +void AssociateACLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AssociateFlowLogRequest.cc b/smartag/src/model/AssociateFlowLogRequest.cc new file mode 100644 index 000000000..874db9d81 --- /dev/null +++ b/smartag/src/model/AssociateFlowLogRequest.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 + +using AlibabaCloud::Smartag::Model::AssociateFlowLogRequest; + +AssociateFlowLogRequest::AssociateFlowLogRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AssociateFlowLog") +{} + +AssociateFlowLogRequest::~AssociateFlowLogRequest() +{} + +long AssociateFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AssociateFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AssociateFlowLogRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void AssociateFlowLogRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long AssociateFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AssociateFlowLogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void AssociateFlowLogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/smartag/src/model/AssociateFlowLogResult.cc b/smartag/src/model/AssociateFlowLogResult.cc new file mode 100644 index 000000000..f0472f56c --- /dev/null +++ b/smartag/src/model/AssociateFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AssociateFlowLogResult::AssociateFlowLogResult() : + ServiceResult() +{} + +AssociateFlowLogResult::AssociateFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateFlowLogResult::~AssociateFlowLogResult() +{} + +void AssociateFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AssociateQosRequest.cc b/smartag/src/model/AssociateQosRequest.cc new file mode 100644 index 000000000..61078904a --- /dev/null +++ b/smartag/src/model/AssociateQosRequest.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 + +using AlibabaCloud::Smartag::Model::AssociateQosRequest; + +AssociateQosRequest::AssociateQosRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AssociateQos") +{} + +AssociateQosRequest::~AssociateQosRequest() +{} + +long AssociateQosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateQosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateQosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateQosRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateQosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AssociateQosRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateQosRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AssociateQosRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void AssociateQosRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long AssociateQosRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateQosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AssociateQosRequest::getQosId()const +{ + return qosId_; +} + +void AssociateQosRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/AssociateQosResult.cc b/smartag/src/model/AssociateQosResult.cc new file mode 100644 index 000000000..13727e520 --- /dev/null +++ b/smartag/src/model/AssociateQosResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AssociateQosResult::AssociateQosResult() : + ServiceResult() +{} + +AssociateQosResult::AssociateQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateQosResult::~AssociateQosResult() +{} + +void AssociateQosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc b/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc index be33718b4..4cd65007d 100644 --- a/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc +++ b/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::AttachNetworkOptimizationSagsRequest; - -AttachNetworkOptimizationSagsRequest::AttachNetworkOptimizationSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AttachNetworkOptimizationSags") -{} - -AttachNetworkOptimizationSagsRequest::~AttachNetworkOptimizationSagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::AttachNetworkOptimizationSagsRequest; + +AttachNetworkOptimizationSagsRequest::AttachNetworkOptimizationSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "AttachNetworkOptimizationSags") +{} + +AttachNetworkOptimizationSagsRequest::~AttachNetworkOptimizationSagsRequest() +{} + long AttachNetworkOptimizationSagsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/AttachNetworkOptimizationSagsResult.cc b/smartag/src/model/AttachNetworkOptimizationSagsResult.cc index dc4a62983..1d78ed71c 100644 --- a/smartag/src/model/AttachNetworkOptimizationSagsResult.cc +++ b/smartag/src/model/AttachNetworkOptimizationSagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult() : - ServiceResult() -{} - -AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachNetworkOptimizationSagsResult::~AttachNetworkOptimizationSagsResult() -{} - -void AttachNetworkOptimizationSagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult() : + ServiceResult() +{} + +AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachNetworkOptimizationSagsResult::~AttachNetworkOptimizationSagsResult() +{} + +void AttachNetworkOptimizationSagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/BindSmartAccessGatewayRequest.cc b/smartag/src/model/BindSmartAccessGatewayRequest.cc index f1269cfcd..cdf0595c4 100644 --- a/smartag/src/model/BindSmartAccessGatewayRequest.cc +++ b/smartag/src/model/BindSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::BindSmartAccessGatewayRequest; - -BindSmartAccessGatewayRequest::BindSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "BindSmartAccessGateway") -{} - -BindSmartAccessGatewayRequest::~BindSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::BindSmartAccessGatewayRequest; + +BindSmartAccessGatewayRequest::BindSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "BindSmartAccessGateway") +{} + +BindSmartAccessGatewayRequest::~BindSmartAccessGatewayRequest() +{} + long BindSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -36,6 +36,17 @@ void BindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +long BindSmartAccessGatewayRequest::getSmartAGUid()const +{ + return smartAGUid_; +} + +void BindSmartAccessGatewayRequest::setSmartAGUid(long smartAGUid) +{ + smartAGUid_ = smartAGUid; + setCoreParameter("SmartAGUid", std::to_string(smartAGUid)); +} + std::string BindSmartAccessGatewayRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/smartag/src/model/BindSmartAccessGatewayResult.cc b/smartag/src/model/BindSmartAccessGatewayResult.cc index 1f660021d..7e8fda206 100644 --- a/smartag/src/model/BindSmartAccessGatewayResult.cc +++ b/smartag/src/model/BindSmartAccessGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -BindSmartAccessGatewayResult::BindSmartAccessGatewayResult() : - ServiceResult() -{} - -BindSmartAccessGatewayResult::BindSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BindSmartAccessGatewayResult::~BindSmartAccessGatewayResult() -{} - -void BindSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +BindSmartAccessGatewayResult::BindSmartAccessGatewayResult() : + ServiceResult() +{} + +BindSmartAccessGatewayResult::BindSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindSmartAccessGatewayResult::~BindSmartAccessGatewayResult() +{} + +void BindSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/BindVbrRequest.cc b/smartag/src/model/BindVbrRequest.cc new file mode 100644 index 000000000..072702ea6 --- /dev/null +++ b/smartag/src/model/BindVbrRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::BindVbrRequest; + +BindVbrRequest::BindVbrRequest() : + RpcServiceRequest("smartag", "2018-03-13", "BindVbr") +{} + +BindVbrRequest::~BindVbrRequest() +{} + +long BindVbrRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BindVbrRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BindVbrRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BindVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string BindVbrRequest::getRegionId()const +{ + return regionId_; +} + +void BindVbrRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string BindVbrRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void BindVbrRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string BindVbrRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void BindVbrRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long BindVbrRequest::getOwnerId()const +{ + return ownerId_; +} + +void BindVbrRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BindVbrRequest::getVbrId()const +{ + return vbrId_; +} + +void BindVbrRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setCoreParameter("VbrId", vbrId); +} + +std::string BindVbrRequest::getVbrRegionId()const +{ + return vbrRegionId_; +} + +void BindVbrRequest::setVbrRegionId(const std::string& vbrRegionId) +{ + vbrRegionId_ = vbrRegionId; + setCoreParameter("VbrRegionId", vbrRegionId); +} + diff --git a/smartag/src/model/BindVbrResult.cc b/smartag/src/model/BindVbrResult.cc new file mode 100644 index 000000000..169a1c1db --- /dev/null +++ b/smartag/src/model/BindVbrResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +BindVbrResult::BindVbrResult() : + ServiceResult() +{} + +BindVbrResult::BindVbrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindVbrResult::~BindVbrResult() +{} + +void BindVbrResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ClearSagRouteableAddressRequest.cc b/smartag/src/model/ClearSagRouteableAddressRequest.cc index a48633b43..90fe1c60e 100644 --- a/smartag/src/model/ClearSagRouteableAddressRequest.cc +++ b/smartag/src/model/ClearSagRouteableAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ClearSagRouteableAddressRequest; - -ClearSagRouteableAddressRequest::ClearSagRouteableAddressRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ClearSagRouteableAddress") -{} - -ClearSagRouteableAddressRequest::~ClearSagRouteableAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ClearSagRouteableAddressRequest; + +ClearSagRouteableAddressRequest::ClearSagRouteableAddressRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ClearSagRouteableAddress") +{} + +ClearSagRouteableAddressRequest::~ClearSagRouteableAddressRequest() +{} + std::string ClearSagRouteableAddressRequest::getAccess_key_id()const { return access_key_id_; diff --git a/smartag/src/model/ClearSagRouteableAddressResult.cc b/smartag/src/model/ClearSagRouteableAddressResult.cc index ee9ddfa5e..37872689f 100644 --- a/smartag/src/model/ClearSagRouteableAddressResult.cc +++ b/smartag/src/model/ClearSagRouteableAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ClearSagRouteableAddressResult::ClearSagRouteableAddressResult() : - ServiceResult() -{} - -ClearSagRouteableAddressResult::ClearSagRouteableAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ClearSagRouteableAddressResult::~ClearSagRouteableAddressResult() -{} - -void ClearSagRouteableAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ClearSagRouteableAddressResult::ClearSagRouteableAddressResult() : + ServiceResult() +{} + +ClearSagRouteableAddressResult::ClearSagRouteableAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ClearSagRouteableAddressResult::~ClearSagRouteableAddressResult() +{} + +void ClearSagRouteableAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/CreateACLRequest.cc b/smartag/src/model/CreateACLRequest.cc index 4436f90a4..3b37f745a 100644 --- a/smartag/src/model/CreateACLRequest.cc +++ b/smartag/src/model/CreateACLRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateACLRequest; - -CreateACLRequest::CreateACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateACL") -{} - -CreateACLRequest::~CreateACLRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateACLRequest; + +CreateACLRequest::CreateACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateACL") +{} + +CreateACLRequest::~CreateACLRequest() +{} + long CreateACLRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/CreateACLResult.cc b/smartag/src/model/CreateACLResult.cc index 62a2e3e38..0119428cf 100644 --- a/smartag/src/model/CreateACLResult.cc +++ b/smartag/src/model/CreateACLResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateACLResult::CreateACLResult() : - ServiceResult() -{} - -CreateACLResult::CreateACLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateACLResult::~CreateACLResult() -{} - -void CreateACLResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateACLResult::CreateACLResult() : + ServiceResult() +{} + +CreateACLResult::CreateACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateACLResult::~CreateACLResult() +{} + +void CreateACLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AclId"].isNull()) aclId_ = value["AclId"].asString(); - -} - + +} + std::string CreateACLResult::getAclId()const { return aclId_; diff --git a/smartag/src/model/CreateCloudConnectNetworkRequest.cc b/smartag/src/model/CreateCloudConnectNetworkRequest.cc index 46a4a71ff..6db1def55 100644 --- a/smartag/src/model/CreateCloudConnectNetworkRequest.cc +++ b/smartag/src/model/CreateCloudConnectNetworkRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateCloudConnectNetworkRequest; - -CreateCloudConnectNetworkRequest::CreateCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateCloudConnectNetwork") -{} - -CreateCloudConnectNetworkRequest::~CreateCloudConnectNetworkRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateCloudConnectNetworkRequest; + +CreateCloudConnectNetworkRequest::CreateCloudConnectNetworkRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateCloudConnectNetwork") +{} + +CreateCloudConnectNetworkRequest::~CreateCloudConnectNetworkRequest() +{} + long CreateCloudConnectNetworkRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/CreateCloudConnectNetworkResult.cc b/smartag/src/model/CreateCloudConnectNetworkResult.cc index 162e6ae9c..45db3c85c 100644 --- a/smartag/src/model/CreateCloudConnectNetworkResult.cc +++ b/smartag/src/model/CreateCloudConnectNetworkResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult() : - ServiceResult() -{} - -CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCloudConnectNetworkResult::~CreateCloudConnectNetworkResult() -{} - -void CreateCloudConnectNetworkResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult() : + ServiceResult() +{} + +CreateCloudConnectNetworkResult::CreateCloudConnectNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCloudConnectNetworkResult::~CreateCloudConnectNetworkResult() +{} + +void CreateCloudConnectNetworkResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["CcnId"].isNull()) ccnId_ = value["CcnId"].asString(); if(!value["Name"].isNull()) @@ -52,9 +55,9 @@ void CreateCloudConnectNetworkResult::parse(const std::string &payload) snatCidrBlock_ = value["SnatCidrBlock"].asString(); if(!value["CidrBlock"].isNull()) cidrBlock_ = value["CidrBlock"].asString(); - -} - + +} + std::string CreateCloudConnectNetworkResult::getStatus()const { return status_; diff --git a/smartag/src/model/CreateDedicatedLineBackupRequest.cc b/smartag/src/model/CreateDedicatedLineBackupRequest.cc index 6558281bd..7ed1e7af0 100644 --- a/smartag/src/model/CreateDedicatedLineBackupRequest.cc +++ b/smartag/src/model/CreateDedicatedLineBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateDedicatedLineBackupRequest; - -CreateDedicatedLineBackupRequest::CreateDedicatedLineBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateDedicatedLineBackup") -{} - -CreateDedicatedLineBackupRequest::~CreateDedicatedLineBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateDedicatedLineBackupRequest; + +CreateDedicatedLineBackupRequest::CreateDedicatedLineBackupRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateDedicatedLineBackup") +{} + +CreateDedicatedLineBackupRequest::~CreateDedicatedLineBackupRequest() +{} + long CreateDedicatedLineBackupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/CreateDedicatedLineBackupResult.cc b/smartag/src/model/CreateDedicatedLineBackupResult.cc index df5e7ed4f..14e4c7c5b 100644 --- a/smartag/src/model/CreateDedicatedLineBackupResult.cc +++ b/smartag/src/model/CreateDedicatedLineBackupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult() : - ServiceResult() -{} - -CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDedicatedLineBackupResult::~CreateDedicatedLineBackupResult() -{} - -void CreateDedicatedLineBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult() : + ServiceResult() +{} + +CreateDedicatedLineBackupResult::CreateDedicatedLineBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDedicatedLineBackupResult::~CreateDedicatedLineBackupResult() +{} + +void CreateDedicatedLineBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/CreateFlowLogRequest.cc b/smartag/src/model/CreateFlowLogRequest.cc new file mode 100644 index 000000000..4cb1e2f83 --- /dev/null +++ b/smartag/src/model/CreateFlowLogRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateFlowLogRequest; + +CreateFlowLogRequest::CreateFlowLogRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateFlowLog") +{} + +CreateFlowLogRequest::~CreateFlowLogRequest() +{} + +long CreateFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateFlowLogRequest::getProjectName()const +{ + return projectName_; +} + +void CreateFlowLogRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setCoreParameter("ProjectName", projectName); +} + +std::string CreateFlowLogRequest::getLogstoreName()const +{ + return logstoreName_; +} + +void CreateFlowLogRequest::setLogstoreName(const std::string& logstoreName) +{ + logstoreName_ = logstoreName; + setCoreParameter("LogstoreName", logstoreName); +} + +std::string CreateFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int CreateFlowLogRequest::getNetflowServerPort()const +{ + return netflowServerPort_; +} + +void CreateFlowLogRequest::setNetflowServerPort(int netflowServerPort) +{ + netflowServerPort_ = netflowServerPort; + setCoreParameter("NetflowServerPort", std::to_string(netflowServerPort)); +} + +std::string CreateFlowLogRequest::getNetflowVersion()const +{ + return netflowVersion_; +} + +void CreateFlowLogRequest::setNetflowVersion(const std::string& netflowVersion) +{ + netflowVersion_ = netflowVersion; + setCoreParameter("NetflowVersion", netflowVersion); +} + +std::string CreateFlowLogRequest::getDescription()const +{ + return description_; +} + +void CreateFlowLogRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long CreateFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int CreateFlowLogRequest::getInactiveAging()const +{ + return inactiveAging_; +} + +void CreateFlowLogRequest::setInactiveAging(int inactiveAging) +{ + inactiveAging_ = inactiveAging; + setCoreParameter("InactiveAging", std::to_string(inactiveAging)); +} + +std::string CreateFlowLogRequest::getNetflowServerIp()const +{ + return netflowServerIp_; +} + +void CreateFlowLogRequest::setNetflowServerIp(const std::string& netflowServerIp) +{ + netflowServerIp_ = netflowServerIp; + setCoreParameter("NetflowServerIp", netflowServerIp); +} + +std::string CreateFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void CreateFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateFlowLogRequest::getName()const +{ + return name_; +} + +void CreateFlowLogRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string CreateFlowLogRequest::getSlsRegionId()const +{ + return slsRegionId_; +} + +void CreateFlowLogRequest::setSlsRegionId(const std::string& slsRegionId) +{ + slsRegionId_ = slsRegionId; + setCoreParameter("SlsRegionId", slsRegionId); +} + +int CreateFlowLogRequest::getActiveAging()const +{ + return activeAging_; +} + +void CreateFlowLogRequest::setActiveAging(int activeAging) +{ + activeAging_ = activeAging; + setCoreParameter("ActiveAging", std::to_string(activeAging)); +} + +std::string CreateFlowLogRequest::getOutputType()const +{ + return outputType_; +} + +void CreateFlowLogRequest::setOutputType(const std::string& outputType) +{ + outputType_ = outputType; + setCoreParameter("OutputType", outputType); +} + diff --git a/smartag/src/model/CreateFlowLogResult.cc b/smartag/src/model/CreateFlowLogResult.cc new file mode 100644 index 000000000..f33784f8d --- /dev/null +++ b/smartag/src/model/CreateFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateFlowLogResult::CreateFlowLogResult() : + ServiceResult() +{} + +CreateFlowLogResult::CreateFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFlowLogResult::~CreateFlowLogResult() +{} + +void CreateFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["FlowLogId"].isNull()) + flowLogId_ = value["FlowLogId"].asString(); + +} + +std::string CreateFlowLogResult::getFlowLogId()const +{ + return flowLogId_; +} + diff --git a/smartag/src/model/CreateNetworkOptimizationRequest.cc b/smartag/src/model/CreateNetworkOptimizationRequest.cc index e401eb88c..5a431e186 100644 --- a/smartag/src/model/CreateNetworkOptimizationRequest.cc +++ b/smartag/src/model/CreateNetworkOptimizationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateNetworkOptimizationRequest; - -CreateNetworkOptimizationRequest::CreateNetworkOptimizationRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateNetworkOptimization") -{} - -CreateNetworkOptimizationRequest::~CreateNetworkOptimizationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateNetworkOptimizationRequest; + +CreateNetworkOptimizationRequest::CreateNetworkOptimizationRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateNetworkOptimization") +{} + +CreateNetworkOptimizationRequest::~CreateNetworkOptimizationRequest() +{} + long CreateNetworkOptimizationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/CreateNetworkOptimizationResult.cc b/smartag/src/model/CreateNetworkOptimizationResult.cc index 7e029c476..fa729463a 100644 --- a/smartag/src/model/CreateNetworkOptimizationResult.cc +++ b/smartag/src/model/CreateNetworkOptimizationResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateNetworkOptimizationResult::CreateNetworkOptimizationResult() : - ServiceResult() -{} - -CreateNetworkOptimizationResult::CreateNetworkOptimizationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateNetworkOptimizationResult::~CreateNetworkOptimizationResult() -{} - -void CreateNetworkOptimizationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateNetworkOptimizationResult::CreateNetworkOptimizationResult() : + ServiceResult() +{} + +CreateNetworkOptimizationResult::CreateNetworkOptimizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkOptimizationResult::~CreateNetworkOptimizationResult() +{} + +void CreateNetworkOptimizationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["NetworkOptId"].isNull()) networkOptId_ = value["NetworkOptId"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); if(!value["State"].isNull()) state_ = value["State"].asString(); - -} - + +} + std::string CreateNetworkOptimizationResult::getState()const { return state_; diff --git a/smartag/src/model/CreateQosCarRequest.cc b/smartag/src/model/CreateQosCarRequest.cc new file mode 100644 index 000000000..9f9ada50f --- /dev/null +++ b/smartag/src/model/CreateQosCarRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateQosCarRequest; + +CreateQosCarRequest::CreateQosCarRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateQosCar") +{} + +CreateQosCarRequest::~CreateQosCarRequest() +{} + +int CreateQosCarRequest::getMaxBandwidthAbs()const +{ + return maxBandwidthAbs_; +} + +void CreateQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs) +{ + maxBandwidthAbs_ = maxBandwidthAbs; + setCoreParameter("MaxBandwidthAbs", std::to_string(maxBandwidthAbs)); +} + +long CreateQosCarRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateQosCarRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateQosCarRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int CreateQosCarRequest::getMinBandwidthAbs()const +{ + return minBandwidthAbs_; +} + +void CreateQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs) +{ + minBandwidthAbs_ = minBandwidthAbs; + setCoreParameter("MinBandwidthAbs", std::to_string(minBandwidthAbs)); +} + +int CreateQosCarRequest::getMaxBandwidthPercent()const +{ + return maxBandwidthPercent_; +} + +void CreateQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent) +{ + maxBandwidthPercent_ = maxBandwidthPercent; + setCoreParameter("MaxBandwidthPercent", std::to_string(maxBandwidthPercent)); +} + +std::string CreateQosCarRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateQosCarRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateQosCarRequest::getDescription()const +{ + return description_; +} + +void CreateQosCarRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long CreateQosCarRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateQosCarRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int CreateQosCarRequest::getPriority()const +{ + return priority_; +} + +void CreateQosCarRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +int CreateQosCarRequest::getMinBandwidthPercent()const +{ + return minBandwidthPercent_; +} + +void CreateQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent) +{ + minBandwidthPercent_ = minBandwidthPercent; + setCoreParameter("MinBandwidthPercent", std::to_string(minBandwidthPercent)); +} + +std::string CreateQosCarRequest::getLimitType()const +{ + return limitType_; +} + +void CreateQosCarRequest::setLimitType(const std::string& limitType) +{ + limitType_ = limitType; + setCoreParameter("LimitType", limitType); +} + +std::string CreateQosCarRequest::getRegionId()const +{ + return regionId_; +} + +void CreateQosCarRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateQosCarRequest::getPercentSourceType()const +{ + return percentSourceType_; +} + +void CreateQosCarRequest::setPercentSourceType(const std::string& percentSourceType) +{ + percentSourceType_ = percentSourceType; + setCoreParameter("PercentSourceType", percentSourceType); +} + +std::string CreateQosCarRequest::getQosId()const +{ + return qosId_; +} + +void CreateQosCarRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/CreateQosCarResult.cc b/smartag/src/model/CreateQosCarResult.cc new file mode 100644 index 000000000..3f1b354b5 --- /dev/null +++ b/smartag/src/model/CreateQosCarResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateQosCarResult::CreateQosCarResult() : + ServiceResult() +{} + +CreateQosCarResult::CreateQosCarResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateQosCarResult::~CreateQosCarResult() +{} + +void CreateQosCarResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + if(!value["QosCarId"].isNull()) + qosCarId_ = value["QosCarId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); + if(!value["LimitType"].isNull()) + limitType_ = value["LimitType"].asString(); + if(!value["MinBandwidthAbs"].isNull()) + minBandwidthAbs_ = std::stoi(value["MinBandwidthAbs"].asString()); + if(!value["MaxBandwidthAbs"].isNull()) + maxBandwidthAbs_ = std::stoi(value["MaxBandwidthAbs"].asString()); + if(!value["MinBandwidthPercent"].isNull()) + minBandwidthPercent_ = std::stoi(value["MinBandwidthPercent"].asString()); + if(!value["MaxBandwidthPercent"].isNull()) + maxBandwidthPercent_ = std::stoi(value["MaxBandwidthPercent"].asString()); + if(!value["PercentSourceType"].isNull()) + percentSourceType_ = value["PercentSourceType"].asString(); + +} + +int CreateQosCarResult::getMinBandwidthAbs()const +{ + return minBandwidthAbs_; +} + +std::string CreateQosCarResult::getDescription()const +{ + return description_; +} + +std::string CreateQosCarResult::getQosCarId()const +{ + return qosCarId_; +} + +int CreateQosCarResult::getPriority()const +{ + return priority_; +} + +int CreateQosCarResult::getMaxBandwidthAbs()const +{ + return maxBandwidthAbs_; +} + +int CreateQosCarResult::getMaxBandwidthPercent()const +{ + return maxBandwidthPercent_; +} + +std::string CreateQosCarResult::getQosId()const +{ + return qosId_; +} + +std::string CreateQosCarResult::getPercentSourceType()const +{ + return percentSourceType_; +} + +int CreateQosCarResult::getMinBandwidthPercent()const +{ + return minBandwidthPercent_; +} + +std::string CreateQosCarResult::getLimitType()const +{ + return limitType_; +} + diff --git a/smartag/src/model/CreateQosPolicyRequest.cc b/smartag/src/model/CreateQosPolicyRequest.cc new file mode 100644 index 000000000..71578b57f --- /dev/null +++ b/smartag/src/model/CreateQosPolicyRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateQosPolicyRequest; + +CreateQosPolicyRequest::CreateQosPolicyRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateQosPolicy") +{} + +CreateQosPolicyRequest::~CreateQosPolicyRequest() +{} + +long CreateQosPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateQosPolicyRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void CreateQosPolicyRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setCoreParameter("SourcePortRange", sourcePortRange); +} + +std::string CreateQosPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateQosPolicyRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void CreateQosPolicyRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setCoreParameter("IpProtocol", ipProtocol); +} + +std::string CreateQosPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateQosPolicyRequest::getSourceCidr()const +{ + return sourceCidr_; +} + +void CreateQosPolicyRequest::setSourceCidr(const std::string& sourceCidr) +{ + sourceCidr_ = sourceCidr; + setCoreParameter("SourceCidr", sourceCidr); +} + +std::string CreateQosPolicyRequest::getDescription()const +{ + return description_; +} + +void CreateQosPolicyRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateQosPolicyRequest::getEndTime()const +{ + return endTime_; +} + +void CreateQosPolicyRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string CreateQosPolicyRequest::getStartTime()const +{ + return startTime_; +} + +void CreateQosPolicyRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long CreateQosPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateQosPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int CreateQosPolicyRequest::getPriority()const +{ + return priority_; +} + +void CreateQosPolicyRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +std::string CreateQosPolicyRequest::getDestCidr()const +{ + return destCidr_; +} + +void CreateQosPolicyRequest::setDestCidr(const std::string& destCidr) +{ + destCidr_ = destCidr; + setCoreParameter("DestCidr", destCidr); +} + +std::string CreateQosPolicyRequest::getDestPortRange()const +{ + return destPortRange_; +} + +void CreateQosPolicyRequest::setDestPortRange(const std::string& destPortRange) +{ + destPortRange_ = destPortRange; + setCoreParameter("DestPortRange", destPortRange); +} + +std::string CreateQosPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void CreateQosPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateQosPolicyRequest::getQosId()const +{ + return qosId_; +} + +void CreateQosPolicyRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/CreateQosPolicyResult.cc b/smartag/src/model/CreateQosPolicyResult.cc new file mode 100644 index 000000000..d415c4eb0 --- /dev/null +++ b/smartag/src/model/CreateQosPolicyResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateQosPolicyResult::CreateQosPolicyResult() : + ServiceResult() +{} + +CreateQosPolicyResult::CreateQosPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateQosPolicyResult::~CreateQosPolicyResult() +{} + +void CreateQosPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + if(!value["QosPolicyId"].isNull()) + qosPolicyId_ = value["QosPolicyId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); + if(!value["SourceCidr"].isNull()) + sourceCidr_ = value["SourceCidr"].asString(); + if(!value["DestCidr"].isNull()) + destCidr_ = value["DestCidr"].asString(); + if(!value["IpProtocol"].isNull()) + ipProtocol_ = value["IpProtocol"].asString(); + if(!value["SourcePortRange"].isNull()) + sourcePortRange_ = value["SourcePortRange"].asString(); + if(!value["DestPortRange"].isNull()) + destPortRange_ = value["DestPortRange"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + +} + +std::string CreateQosPolicyResult::getDescription()const +{ + return description_; +} + +std::string CreateQosPolicyResult::getDestCidr()const +{ + return destCidr_; +} + +std::string CreateQosPolicyResult::getQosPolicyId()const +{ + return qosPolicyId_; +} + +std::string CreateQosPolicyResult::getSourcePortRange()const +{ + return sourcePortRange_; +} + +std::string CreateQosPolicyResult::getEndTime()const +{ + return endTime_; +} + +std::string CreateQosPolicyResult::getSourceCidr()const +{ + return sourceCidr_; +} + +int CreateQosPolicyResult::getPriority()const +{ + return priority_; +} + +std::string CreateQosPolicyResult::getStartTime()const +{ + return startTime_; +} + +std::string CreateQosPolicyResult::getQosId()const +{ + return qosId_; +} + +std::string CreateQosPolicyResult::getIpProtocol()const +{ + return ipProtocol_; +} + +std::string CreateQosPolicyResult::getDestPortRange()const +{ + return destPortRange_; +} + diff --git a/smartag/src/model/CreateQosRequest.cc b/smartag/src/model/CreateQosRequest.cc new file mode 100644 index 000000000..89eba7350 --- /dev/null +++ b/smartag/src/model/CreateQosRequest.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 + +using AlibabaCloud::Smartag::Model::CreateQosRequest; + +CreateQosRequest::CreateQosRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateQos") +{} + +CreateQosRequest::~CreateQosRequest() +{} + +long CreateQosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateQosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateQosRequest::getQosName()const +{ + return qosName_; +} + +void CreateQosRequest::setQosName(const std::string& qosName) +{ + qosName_ = qosName; + setCoreParameter("QosName", qosName); +} + +std::string CreateQosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateQosRequest::getRegionId()const +{ + return regionId_; +} + +void CreateQosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateQosRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateQosRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long CreateQosRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateQosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/CreateQosResult.cc b/smartag/src/model/CreateQosResult.cc new file mode 100644 index 000000000..60774ff14 --- /dev/null +++ b/smartag/src/model/CreateQosResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateQosResult::CreateQosResult() : + ServiceResult() +{} + +CreateQosResult::CreateQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateQosResult::~CreateQosResult() +{} + +void CreateQosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + +} + +std::string CreateQosResult::getQosId()const +{ + return qosId_; +} + diff --git a/smartag/src/model/CreateSAGLinkLevelHaRequest.cc b/smartag/src/model/CreateSAGLinkLevelHaRequest.cc index af4da0426..96eb55bf4 100644 --- a/smartag/src/model/CreateSAGLinkLevelHaRequest.cc +++ b/smartag/src/model/CreateSAGLinkLevelHaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateSAGLinkLevelHaRequest; - -CreateSAGLinkLevelHaRequest::CreateSAGLinkLevelHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSAGLinkLevelHa") -{} - -CreateSAGLinkLevelHaRequest::~CreateSAGLinkLevelHaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateSAGLinkLevelHaRequest; + +CreateSAGLinkLevelHaRequest::CreateSAGLinkLevelHaRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSAGLinkLevelHa") +{} + +CreateSAGLinkLevelHaRequest::~CreateSAGLinkLevelHaRequest() +{} + long CreateSAGLinkLevelHaRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/CreateSAGLinkLevelHaResult.cc b/smartag/src/model/CreateSAGLinkLevelHaResult.cc index 8206286ef..08c82fcc7 100644 --- a/smartag/src/model/CreateSAGLinkLevelHaResult.cc +++ b/smartag/src/model/CreateSAGLinkLevelHaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult() : - ServiceResult() -{} - -CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSAGLinkLevelHaResult::~CreateSAGLinkLevelHaResult() -{} - -void CreateSAGLinkLevelHaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult() : + ServiceResult() +{} + +CreateSAGLinkLevelHaResult::CreateSAGLinkLevelHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSAGLinkLevelHaResult::~CreateSAGLinkLevelHaResult() +{} + +void CreateSAGLinkLevelHaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc b/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc index 8f8efa170..aa56c6951 100644 --- a/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateSmartAccessGatewayClientUserRequest; - -CreateSmartAccessGatewayClientUserRequest::CreateSmartAccessGatewayClientUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewayClientUser") -{} - -CreateSmartAccessGatewayClientUserRequest::~CreateSmartAccessGatewayClientUserRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateSmartAccessGatewayClientUserRequest; + +CreateSmartAccessGatewayClientUserRequest::CreateSmartAccessGatewayClientUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewayClientUser") +{} + +CreateSmartAccessGatewayClientUserRequest::~CreateSmartAccessGatewayClientUserRequest() +{} + long CreateSmartAccessGatewayClientUserRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc b/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc index de09fe0d6..d28275ec4 100644 --- a/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewayClientUserResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateSmartAccessGatewayClientUserResult::CreateSmartAccessGatewayClientUserResult() : - ServiceResult() -{} - -CreateSmartAccessGatewayClientUserResult::CreateSmartAccessGatewayClientUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSmartAccessGatewayClientUserResult::~CreateSmartAccessGatewayClientUserResult() -{} - -void CreateSmartAccessGatewayClientUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSmartAccessGatewayClientUserResult::CreateSmartAccessGatewayClientUserResult() : + ServiceResult() +{} + +CreateSmartAccessGatewayClientUserResult::CreateSmartAccessGatewayClientUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSmartAccessGatewayClientUserResult::~CreateSmartAccessGatewayClientUserResult() +{} + +void CreateSmartAccessGatewayClientUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ClientIp"].isNull()) clientIp_ = value["ClientIp"].asString(); if(!value["UserMail"].isNull()) @@ -48,9 +51,9 @@ void CreateSmartAccessGatewayClientUserResult::parse(const std::string &payload) userName_ = value["UserName"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); - -} - + +} + std::string CreateSmartAccessGatewayClientUserResult::getUserName()const { return userName_; diff --git a/smartag/src/model/CreateSmartAccessGatewayRequest.cc b/smartag/src/model/CreateSmartAccessGatewayRequest.cc index fcb2ef52c..ea7c6decc 100644 --- a/smartag/src/model/CreateSmartAccessGatewayRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateSmartAccessGatewayRequest; - -CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGateway") -{} - -CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateSmartAccessGatewayRequest; + +CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGateway") +{} + +CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest() +{} + int CreateSmartAccessGatewayRequest::getMaxBandWidth()const { return maxBandWidth_; diff --git a/smartag/src/model/CreateSmartAccessGatewayResult.cc b/smartag/src/model/CreateSmartAccessGatewayResult.cc index 4f8fd4ad0..d820bd66f 100644 --- a/smartag/src/model/CreateSmartAccessGatewayResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult() : - ServiceResult() -{} - -CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSmartAccessGatewayResult::~CreateSmartAccessGatewayResult() -{} - -void CreateSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult() : + ServiceResult() +{} + +CreateSmartAccessGatewayResult::CreateSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSmartAccessGatewayResult::~CreateSmartAccessGatewayResult() +{} + +void CreateSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); if(!value["Name"].isNull()) @@ -48,9 +51,9 @@ void CreateSmartAccessGatewayResult::parse(const std::string &payload) orderId_ = value["OrderId"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - -} - + +} + std::string CreateSmartAccessGatewayResult::getDescription()const { return description_; diff --git a/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc b/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc index aad500f6d..e3284145f 100644 --- a/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::CreateSmartAccessGatewaySoftwareRequest; - -CreateSmartAccessGatewaySoftwareRequest::CreateSmartAccessGatewaySoftwareRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewaySoftware") -{} - -CreateSmartAccessGatewaySoftwareRequest::~CreateSmartAccessGatewaySoftwareRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::CreateSmartAccessGatewaySoftwareRequest; + +CreateSmartAccessGatewaySoftwareRequest::CreateSmartAccessGatewaySoftwareRequest() : + RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewaySoftware") +{} + +CreateSmartAccessGatewaySoftwareRequest::~CreateSmartAccessGatewaySoftwareRequest() +{} + long CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc b/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc index 8dd75dccc..235ea5b9d 100644 --- a/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateSmartAccessGatewaySoftwareResult::CreateSmartAccessGatewaySoftwareResult() : - ServiceResult() -{} - -CreateSmartAccessGatewaySoftwareResult::CreateSmartAccessGatewaySoftwareResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSmartAccessGatewaySoftwareResult::~CreateSmartAccessGatewaySoftwareResult() -{} - -void CreateSmartAccessGatewaySoftwareResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +CreateSmartAccessGatewaySoftwareResult::CreateSmartAccessGatewaySoftwareResult() : + ServiceResult() +{} + +CreateSmartAccessGatewaySoftwareResult::CreateSmartAccessGatewaySoftwareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSmartAccessGatewaySoftwareResult::~CreateSmartAccessGatewaySoftwareResult() +{} + +void CreateSmartAccessGatewaySoftwareResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string CreateSmartAccessGatewaySoftwareResult::getSmartAGId()const { return smartAGId_; diff --git a/smartag/src/model/DeactiveFlowLogRequest.cc b/smartag/src/model/DeactiveFlowLogRequest.cc new file mode 100644 index 000000000..da33cb523 --- /dev/null +++ b/smartag/src/model/DeactiveFlowLogRequest.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 + +using AlibabaCloud::Smartag::Model::DeactiveFlowLogRequest; + +DeactiveFlowLogRequest::DeactiveFlowLogRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeactiveFlowLog") +{} + +DeactiveFlowLogRequest::~DeactiveFlowLogRequest() +{} + +long DeactiveFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeactiveFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void DeactiveFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeactiveFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeactiveFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeactiveFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeactiveFlowLogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/smartag/src/model/DeactiveFlowLogResult.cc b/smartag/src/model/DeactiveFlowLogResult.cc new file mode 100644 index 000000000..2c6cb76e0 --- /dev/null +++ b/smartag/src/model/DeactiveFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeactiveFlowLogResult::DeactiveFlowLogResult() : + ServiceResult() +{} + +DeactiveFlowLogResult::DeactiveFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeactiveFlowLogResult::~DeactiveFlowLogResult() +{} + +void DeactiveFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteACLRequest.cc b/smartag/src/model/DeleteACLRequest.cc index 23578858f..a378672b3 100644 --- a/smartag/src/model/DeleteACLRequest.cc +++ b/smartag/src/model/DeleteACLRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteACLRequest; - -DeleteACLRequest::DeleteACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteACL") -{} - -DeleteACLRequest::~DeleteACLRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteACLRequest; + +DeleteACLRequest::DeleteACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteACL") +{} + +DeleteACLRequest::~DeleteACLRequest() +{} + std::string DeleteACLRequest::getAclId()const { return aclId_; diff --git a/smartag/src/model/DeleteACLResult.cc b/smartag/src/model/DeleteACLResult.cc index d9afa09af..d9432d4a0 100644 --- a/smartag/src/model/DeleteACLResult.cc +++ b/smartag/src/model/DeleteACLResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteACLResult::DeleteACLResult() : - ServiceResult() -{} - -DeleteACLResult::DeleteACLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteACLResult::~DeleteACLResult() -{} - -void DeleteACLResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteACLResult::DeleteACLResult() : + ServiceResult() +{} + +DeleteACLResult::DeleteACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteACLResult::~DeleteACLResult() +{} + +void DeleteACLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteACLRuleRequest.cc b/smartag/src/model/DeleteACLRuleRequest.cc index 43b943b6f..93c4ed17c 100644 --- a/smartag/src/model/DeleteACLRuleRequest.cc +++ b/smartag/src/model/DeleteACLRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteACLRuleRequest; - -DeleteACLRuleRequest::DeleteACLRuleRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteACLRule") -{} - -DeleteACLRuleRequest::~DeleteACLRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteACLRuleRequest; + +DeleteACLRuleRequest::DeleteACLRuleRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteACLRule") +{} + +DeleteACLRuleRequest::~DeleteACLRuleRequest() +{} + std::string DeleteACLRuleRequest::getAclId()const { return aclId_; diff --git a/smartag/src/model/DeleteACLRuleResult.cc b/smartag/src/model/DeleteACLRuleResult.cc index e3e9b5cf3..ea1736942 100644 --- a/smartag/src/model/DeleteACLRuleResult.cc +++ b/smartag/src/model/DeleteACLRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteACLRuleResult::DeleteACLRuleResult() : - ServiceResult() -{} - -DeleteACLRuleResult::DeleteACLRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteACLRuleResult::~DeleteACLRuleResult() -{} - -void DeleteACLRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteACLRuleResult::DeleteACLRuleResult() : + ServiceResult() +{} + +DeleteACLRuleResult::DeleteACLRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteACLRuleResult::~DeleteACLRuleResult() +{} + +void DeleteACLRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteCloudConnectNetworkRequest.cc b/smartag/src/model/DeleteCloudConnectNetworkRequest.cc index 1e8c82d3b..9365e04bf 100644 --- a/smartag/src/model/DeleteCloudConnectNetworkRequest.cc +++ b/smartag/src/model/DeleteCloudConnectNetworkRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteCloudConnectNetworkRequest; - -DeleteCloudConnectNetworkRequest::DeleteCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteCloudConnectNetwork") -{} - -DeleteCloudConnectNetworkRequest::~DeleteCloudConnectNetworkRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteCloudConnectNetworkRequest; + +DeleteCloudConnectNetworkRequest::DeleteCloudConnectNetworkRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteCloudConnectNetwork") +{} + +DeleteCloudConnectNetworkRequest::~DeleteCloudConnectNetworkRequest() +{} + long DeleteCloudConnectNetworkRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DeleteCloudConnectNetworkResult.cc b/smartag/src/model/DeleteCloudConnectNetworkResult.cc index 89741ea19..384e7cb2c 100644 --- a/smartag/src/model/DeleteCloudConnectNetworkResult.cc +++ b/smartag/src/model/DeleteCloudConnectNetworkResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult() : - ServiceResult() -{} - -DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteCloudConnectNetworkResult::~DeleteCloudConnectNetworkResult() -{} - -void DeleteCloudConnectNetworkResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult() : + ServiceResult() +{} + +DeleteCloudConnectNetworkResult::DeleteCloudConnectNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCloudConnectNetworkResult::~DeleteCloudConnectNetworkResult() +{} + +void DeleteCloudConnectNetworkResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteDedicatedLineBackupRequest.cc b/smartag/src/model/DeleteDedicatedLineBackupRequest.cc index f7e616a1c..bb8ce5251 100644 --- a/smartag/src/model/DeleteDedicatedLineBackupRequest.cc +++ b/smartag/src/model/DeleteDedicatedLineBackupRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteDedicatedLineBackupRequest; - -DeleteDedicatedLineBackupRequest::DeleteDedicatedLineBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteDedicatedLineBackup") -{} - -DeleteDedicatedLineBackupRequest::~DeleteDedicatedLineBackupRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteDedicatedLineBackupRequest; + +DeleteDedicatedLineBackupRequest::DeleteDedicatedLineBackupRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteDedicatedLineBackup") +{} + +DeleteDedicatedLineBackupRequest::~DeleteDedicatedLineBackupRequest() +{} + long DeleteDedicatedLineBackupRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DeleteDedicatedLineBackupResult.cc b/smartag/src/model/DeleteDedicatedLineBackupResult.cc index 96c8751ea..fa5ef316f 100644 --- a/smartag/src/model/DeleteDedicatedLineBackupResult.cc +++ b/smartag/src/model/DeleteDedicatedLineBackupResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult() : - ServiceResult() -{} - -DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDedicatedLineBackupResult::~DeleteDedicatedLineBackupResult() -{} - -void DeleteDedicatedLineBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult() : + ServiceResult() +{} + +DeleteDedicatedLineBackupResult::DeleteDedicatedLineBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDedicatedLineBackupResult::~DeleteDedicatedLineBackupResult() +{} + +void DeleteDedicatedLineBackupResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteDnatEntryRequest.cc b/smartag/src/model/DeleteDnatEntryRequest.cc new file mode 100644 index 000000000..d2635cece --- /dev/null +++ b/smartag/src/model/DeleteDnatEntryRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteDnatEntryRequest; + +DeleteDnatEntryRequest::DeleteDnatEntryRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteDnatEntry") +{} + +DeleteDnatEntryRequest::~DeleteDnatEntryRequest() +{} + +long DeleteDnatEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDnatEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDnatEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDnatEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteDnatEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteDnatEntryRequest::getSagId()const +{ + return sagId_; +} + +void DeleteDnatEntryRequest::setSagId(const std::string& sagId) +{ + sagId_ = sagId; + setCoreParameter("SagId", sagId); +} + +std::string DeleteDnatEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteDnatEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDnatEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteDnatEntryRequest::getDnatEntryId()const +{ + return dnatEntryId_; +} + +void DeleteDnatEntryRequest::setDnatEntryId(const std::string& dnatEntryId) +{ + dnatEntryId_ = dnatEntryId; + setCoreParameter("DnatEntryId", dnatEntryId); +} + diff --git a/smartag/src/model/DeleteDnatEntryResult.cc b/smartag/src/model/DeleteDnatEntryResult.cc new file mode 100644 index 000000000..e9ca14658 --- /dev/null +++ b/smartag/src/model/DeleteDnatEntryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteDnatEntryResult::DeleteDnatEntryResult() : + ServiceResult() +{} + +DeleteDnatEntryResult::DeleteDnatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDnatEntryResult::~DeleteDnatEntryResult() +{} + +void DeleteDnatEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteFlowLogRequest.cc b/smartag/src/model/DeleteFlowLogRequest.cc new file mode 100644 index 000000000..048c41cb0 --- /dev/null +++ b/smartag/src/model/DeleteFlowLogRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteFlowLogRequest; + +DeleteFlowLogRequest::DeleteFlowLogRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteFlowLog") +{} + +DeleteFlowLogRequest::~DeleteFlowLogRequest() +{} + +long DeleteFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteFlowLogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DeleteFlowLogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/smartag/src/model/DeleteFlowLogResult.cc b/smartag/src/model/DeleteFlowLogResult.cc new file mode 100644 index 000000000..7ddd40a02 --- /dev/null +++ b/smartag/src/model/DeleteFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteFlowLogResult::DeleteFlowLogResult() : + ServiceResult() +{} + +DeleteFlowLogResult::DeleteFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFlowLogResult::~DeleteFlowLogResult() +{} + +void DeleteFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteNetworkOptimizationRequest.cc b/smartag/src/model/DeleteNetworkOptimizationRequest.cc index ccaff056b..eb737ac09 100644 --- a/smartag/src/model/DeleteNetworkOptimizationRequest.cc +++ b/smartag/src/model/DeleteNetworkOptimizationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteNetworkOptimizationRequest; - -DeleteNetworkOptimizationRequest::DeleteNetworkOptimizationRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimization") -{} - -DeleteNetworkOptimizationRequest::~DeleteNetworkOptimizationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteNetworkOptimizationRequest; + +DeleteNetworkOptimizationRequest::DeleteNetworkOptimizationRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimization") +{} + +DeleteNetworkOptimizationRequest::~DeleteNetworkOptimizationRequest() +{} + long DeleteNetworkOptimizationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DeleteNetworkOptimizationResult.cc b/smartag/src/model/DeleteNetworkOptimizationResult.cc index 5ec35af54..3d963ba8f 100644 --- a/smartag/src/model/DeleteNetworkOptimizationResult.cc +++ b/smartag/src/model/DeleteNetworkOptimizationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult() : - ServiceResult() -{} - -DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteNetworkOptimizationResult::~DeleteNetworkOptimizationResult() -{} - -void DeleteNetworkOptimizationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult() : + ServiceResult() +{} + +DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkOptimizationResult::~DeleteNetworkOptimizationResult() +{} + +void DeleteNetworkOptimizationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc b/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc index 412a2b587..3e8e4f27f 100644 --- a/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc +++ b/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteNetworkOptimizationSettingRequest; - -DeleteNetworkOptimizationSettingRequest::DeleteNetworkOptimizationSettingRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimizationSetting") -{} - -DeleteNetworkOptimizationSettingRequest::~DeleteNetworkOptimizationSettingRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteNetworkOptimizationSettingRequest; + +DeleteNetworkOptimizationSettingRequest::DeleteNetworkOptimizationSettingRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimizationSetting") +{} + +DeleteNetworkOptimizationSettingRequest::~DeleteNetworkOptimizationSettingRequest() +{} + long DeleteNetworkOptimizationSettingRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc b/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc index 9887a5309..705fc5189 100644 --- a/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc +++ b/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult() : - ServiceResult() -{} - -DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteNetworkOptimizationSettingResult::~DeleteNetworkOptimizationSettingResult() -{} - -void DeleteNetworkOptimizationSettingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult() : + ServiceResult() +{} + +DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkOptimizationSettingResult::~DeleteNetworkOptimizationSettingResult() +{} + +void DeleteNetworkOptimizationSettingResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteQosCarRequest.cc b/smartag/src/model/DeleteQosCarRequest.cc new file mode 100644 index 000000000..d82ba08a8 --- /dev/null +++ b/smartag/src/model/DeleteQosCarRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteQosCarRequest; + +DeleteQosCarRequest::DeleteQosCarRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteQosCar") +{} + +DeleteQosCarRequest::~DeleteQosCarRequest() +{} + +long DeleteQosCarRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteQosCarRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteQosCarRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteQosCarRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteQosCarRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteQosCarRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteQosCarRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteQosCarRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteQosCarRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteQosCarRequest::getQosId()const +{ + return qosId_; +} + +void DeleteQosCarRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + +std::string DeleteQosCarRequest::getQosCarId()const +{ + return qosCarId_; +} + +void DeleteQosCarRequest::setQosCarId(const std::string& qosCarId) +{ + qosCarId_ = qosCarId; + setCoreParameter("QosCarId", qosCarId); +} + diff --git a/smartag/src/model/DeleteQosCarResult.cc b/smartag/src/model/DeleteQosCarResult.cc new file mode 100644 index 000000000..b4274a2ab --- /dev/null +++ b/smartag/src/model/DeleteQosCarResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteQosCarResult::DeleteQosCarResult() : + ServiceResult() +{} + +DeleteQosCarResult::DeleteQosCarResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteQosCarResult::~DeleteQosCarResult() +{} + +void DeleteQosCarResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteQosPolicyRequest.cc b/smartag/src/model/DeleteQosPolicyRequest.cc new file mode 100644 index 000000000..1e729a0f4 --- /dev/null +++ b/smartag/src/model/DeleteQosPolicyRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteQosPolicyRequest; + +DeleteQosPolicyRequest::DeleteQosPolicyRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteQosPolicy") +{} + +DeleteQosPolicyRequest::~DeleteQosPolicyRequest() +{} + +long DeleteQosPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteQosPolicyRequest::getQosPolicyId()const +{ + return qosPolicyId_; +} + +void DeleteQosPolicyRequest::setQosPolicyId(const std::string& qosPolicyId) +{ + qosPolicyId_ = qosPolicyId; + setCoreParameter("QosPolicyId", qosPolicyId); +} + +std::string DeleteQosPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteQosPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteQosPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteQosPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteQosPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteQosPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteQosPolicyRequest::getQosId()const +{ + return qosId_; +} + +void DeleteQosPolicyRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/DeleteQosPolicyResult.cc b/smartag/src/model/DeleteQosPolicyResult.cc new file mode 100644 index 000000000..76f4d026c --- /dev/null +++ b/smartag/src/model/DeleteQosPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteQosPolicyResult::DeleteQosPolicyResult() : + ServiceResult() +{} + +DeleteQosPolicyResult::DeleteQosPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteQosPolicyResult::~DeleteQosPolicyResult() +{} + +void DeleteQosPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteQosRequest.cc b/smartag/src/model/DeleteQosRequest.cc new file mode 100644 index 000000000..b503363b1 --- /dev/null +++ b/smartag/src/model/DeleteQosRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteQosRequest; + +DeleteQosRequest::DeleteQosRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteQos") +{} + +DeleteQosRequest::~DeleteQosRequest() +{} + +long DeleteQosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteQosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteQosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteQosRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteQosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteQosRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteQosRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DeleteQosRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteQosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteQosRequest::getQosId()const +{ + return qosId_; +} + +void DeleteQosRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/DeleteQosResult.cc b/smartag/src/model/DeleteQosResult.cc new file mode 100644 index 000000000..cb4e0f82b --- /dev/null +++ b/smartag/src/model/DeleteQosResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteQosResult::DeleteQosResult() : + ServiceResult() +{} + +DeleteQosResult::DeleteQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteQosResult::~DeleteQosResult() +{} + +void DeleteQosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc b/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc index c24ffa885..e567af3f5 100644 --- a/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc +++ b/smartag/src/model/DeleteSAGLinkLevelHaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteSAGLinkLevelHaRequest; - -DeleteSAGLinkLevelHaRequest::DeleteSAGLinkLevelHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSAGLinkLevelHa") -{} - -DeleteSAGLinkLevelHaRequest::~DeleteSAGLinkLevelHaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteSAGLinkLevelHaRequest; + +DeleteSAGLinkLevelHaRequest::DeleteSAGLinkLevelHaRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteSAGLinkLevelHa") +{} + +DeleteSAGLinkLevelHaRequest::~DeleteSAGLinkLevelHaRequest() +{} + long DeleteSAGLinkLevelHaRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DeleteSAGLinkLevelHaResult.cc b/smartag/src/model/DeleteSAGLinkLevelHaResult.cc index 09945a714..6c8a46653 100644 --- a/smartag/src/model/DeleteSAGLinkLevelHaResult.cc +++ b/smartag/src/model/DeleteSAGLinkLevelHaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult() : - ServiceResult() -{} - -DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSAGLinkLevelHaResult::~DeleteSAGLinkLevelHaResult() -{} - -void DeleteSAGLinkLevelHaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult() : + ServiceResult() +{} + +DeleteSAGLinkLevelHaResult::DeleteSAGLinkLevelHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSAGLinkLevelHaResult::~DeleteSAGLinkLevelHaResult() +{} + +void DeleteSAGLinkLevelHaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc b/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc index 072144127..052397185 100644 --- a/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc +++ b/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DeleteSmartAccessGatewayClientUserRequest; - -DeleteSmartAccessGatewayClientUserRequest::DeleteSmartAccessGatewayClientUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGatewayClientUser") -{} - -DeleteSmartAccessGatewayClientUserRequest::~DeleteSmartAccessGatewayClientUserRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DeleteSmartAccessGatewayClientUserRequest; + +DeleteSmartAccessGatewayClientUserRequest::DeleteSmartAccessGatewayClientUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGatewayClientUser") +{} + +DeleteSmartAccessGatewayClientUserRequest::~DeleteSmartAccessGatewayClientUserRequest() +{} + long DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DeleteSmartAccessGatewayClientUserResult.cc b/smartag/src/model/DeleteSmartAccessGatewayClientUserResult.cc index 4bca9ded0..b9f97c2f3 100644 --- a/smartag/src/model/DeleteSmartAccessGatewayClientUserResult.cc +++ b/smartag/src/model/DeleteSmartAccessGatewayClientUserResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteSmartAccessGatewayClientUserResult::DeleteSmartAccessGatewayClientUserResult() : - ServiceResult() -{} - -DeleteSmartAccessGatewayClientUserResult::DeleteSmartAccessGatewayClientUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSmartAccessGatewayClientUserResult::~DeleteSmartAccessGatewayClientUserResult() -{} - -void DeleteSmartAccessGatewayClientUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteSmartAccessGatewayClientUserResult::DeleteSmartAccessGatewayClientUserResult() : + ServiceResult() +{} + +DeleteSmartAccessGatewayClientUserResult::DeleteSmartAccessGatewayClientUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSmartAccessGatewayClientUserResult::~DeleteSmartAccessGatewayClientUserResult() +{} + +void DeleteSmartAccessGatewayClientUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DeleteSnatEntryRequest.cc b/smartag/src/model/DeleteSnatEntryRequest.cc new file mode 100644 index 000000000..38249d9f9 --- /dev/null +++ b/smartag/src/model/DeleteSnatEntryRequest.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 + +using AlibabaCloud::Smartag::Model::DeleteSnatEntryRequest; + +DeleteSnatEntryRequest::DeleteSnatEntryRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DeleteSnatEntry") +{} + +DeleteSnatEntryRequest::~DeleteSnatEntryRequest() +{} + +long DeleteSnatEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSnatEntryRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteSnatEntryRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteSnatEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteSnatEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteSnatEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteSnatEntryRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DeleteSnatEntryRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DeleteSnatEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSnatEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DeleteSnatEntryResult.cc b/smartag/src/model/DeleteSnatEntryResult.cc new file mode 100644 index 000000000..8e5156a66 --- /dev/null +++ b/smartag/src/model/DeleteSnatEntryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DeleteSnatEntryResult::DeleteSnatEntryResult() : + ServiceResult() +{} + +DeleteSnatEntryResult::DeleteSnatEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSnatEntryResult::~DeleteSnatEntryResult() +{} + +void DeleteSnatEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DescribeACLAttributeRequest.cc b/smartag/src/model/DescribeACLAttributeRequest.cc index 0fb1f99dc..3a4fdac35 100644 --- a/smartag/src/model/DescribeACLAttributeRequest.cc +++ b/smartag/src/model/DescribeACLAttributeRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeACLAttributeRequest; - -DescribeACLAttributeRequest::DescribeACLAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeACLAttribute") -{} - -DescribeACLAttributeRequest::~DescribeACLAttributeRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeACLAttributeRequest; + +DescribeACLAttributeRequest::DescribeACLAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeACLAttribute") +{} + +DescribeACLAttributeRequest::~DescribeACLAttributeRequest() +{} + std::string DescribeACLAttributeRequest::getAclId()const { return aclId_; diff --git a/smartag/src/model/DescribeACLAttributeResult.cc b/smartag/src/model/DescribeACLAttributeResult.cc index e33aa8054..18b008fc0 100644 --- a/smartag/src/model/DescribeACLAttributeResult.cc +++ b/smartag/src/model/DescribeACLAttributeResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeACLAttributeResult::DescribeACLAttributeResult() : - ServiceResult() -{} - -DescribeACLAttributeResult::DescribeACLAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeACLAttributeResult::~DescribeACLAttributeResult() -{} - -void DescribeACLAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeACLAttributeResult::DescribeACLAttributeResult() : + ServiceResult() +{} + +DescribeACLAttributeResult::DescribeACLAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeACLAttributeResult::~DescribeACLAttributeResult() +{} + +void DescribeACLAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAcrs = value["Acrs"]["Acr"]; for (auto value : allAcrs) { @@ -68,6 +71,8 @@ void DescribeACLAttributeResult::parse(const std::string &payload) acrsObject.gmtCreate = std::stol(value["GmtCreate"].asString()); if(!value["AclId"].isNull()) acrsObject.aclId = value["AclId"].asString(); + if(!value["Type"].isNull()) + acrsObject.type = value["Type"].asString(); acrs_.push_back(acrsObject); } if(!value["TotalCount"].isNull()) @@ -76,9 +81,9 @@ void DescribeACLAttributeResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeACLAttributeResult::getTotalCount()const { return totalCount_; diff --git a/smartag/src/model/DescribeACLsRequest.cc b/smartag/src/model/DescribeACLsRequest.cc index a49061527..e566473ec 100644 --- a/smartag/src/model/DescribeACLsRequest.cc +++ b/smartag/src/model/DescribeACLsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeACLsRequest; - -DescribeACLsRequest::DescribeACLsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeACLs") -{} - -DescribeACLsRequest::~DescribeACLsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeACLsRequest; + +DescribeACLsRequest::DescribeACLsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeACLs") +{} + +DescribeACLsRequest::~DescribeACLsRequest() +{} + long DescribeACLsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeACLsResult.cc b/smartag/src/model/DescribeACLsResult.cc index 97ddddaf1..e40a3c705 100644 --- a/smartag/src/model/DescribeACLsResult.cc +++ b/smartag/src/model/DescribeACLsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeACLsResult::DescribeACLsResult() : - ServiceResult() -{} - -DescribeACLsResult::DescribeACLsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeACLsResult::~DescribeACLsResult() -{} - -void DescribeACLsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeACLsResult::DescribeACLsResult() : + ServiceResult() +{} + +DescribeACLsResult::DescribeACLsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeACLsResult::~DescribeACLsResult() +{} + +void DescribeACLsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allAcls = value["Acls"]["Acl"]; for (auto value : allAcls) { @@ -58,9 +61,9 @@ void DescribeACLsResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeACLsResult::getTotalCount()const { return totalCount_; diff --git a/smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.cc b/smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.cc new file mode 100644 index 000000000..fc5afaadf --- /dev/null +++ b/smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.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::Smartag::Model::DescribeBindableSmartAccessGatewaysRequest; + +DescribeBindableSmartAccessGatewaysRequest::DescribeBindableSmartAccessGatewaysRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeBindableSmartAccessGateways") +{} + +DescribeBindableSmartAccessGatewaysRequest::~DescribeBindableSmartAccessGatewaysRequest() +{} + +long DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBindableSmartAccessGatewaysRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +bool DescribeBindableSmartAccessGatewaysRequest::getCrossAccount()const +{ + return crossAccount_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setCrossAccount(bool crossAccount) +{ + crossAccount_ = crossAccount; + setCoreParameter("CrossAccount", crossAccount ? "true" : "false"); +} + +std::string DescribeBindableSmartAccessGatewaysRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBindableSmartAccessGatewaysRequest::getCcnId()const +{ + return ccnId_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setCcnId(const std::string& ccnId) +{ + ccnId_ = ccnId; + setCoreParameter("CcnId", ccnId); +} + +std::string DescribeBindableSmartAccessGatewaysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +long DescribeBindableSmartAccessGatewaysRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeBindableSmartAccessGatewaysRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", pageNumber); +} + diff --git a/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc b/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc new file mode 100644 index 000000000..3dba2d55d --- /dev/null +++ b/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeBindableSmartAccessGatewaysResult::DescribeBindableSmartAccessGatewaysResult() : + ServiceResult() +{} + +DescribeBindableSmartAccessGatewaysResult::DescribeBindableSmartAccessGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBindableSmartAccessGatewaysResult::~DescribeBindableSmartAccessGatewaysResult() +{} + +void DescribeBindableSmartAccessGatewaysResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSmartAccessGateways = value["SmartAccessGateways"]["SmartAccessGateway"]; + for (auto value : allSmartAccessGateways) + { + SmartAccessGateway smartAccessGatewaysObject; + if(!value["SmartAGId"].isNull()) + smartAccessGatewaysObject.smartAGId = value["SmartAGId"].asString(); + if(!value["Name"].isNull()) + smartAccessGatewaysObject.name = value["Name"].asString(); + if(!value["SmartAGUid"].isNull()) + smartAccessGatewaysObject.smartAGUid = std::stol(value["SmartAGUid"].asString()); + smartAccessGateways_.push_back(smartAccessGatewaysObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeBindableSmartAccessGatewaysResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeBindableSmartAccessGatewaysResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeBindableSmartAccessGatewaysResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeBindableSmartAccessGatewaysResult::getSmartAccessGateways()const +{ + return smartAccessGateways_; +} + diff --git a/smartag/src/model/DescribeCloudConnectNetworksRequest.cc b/smartag/src/model/DescribeCloudConnectNetworksRequest.cc index c88fe9354..4e6d2e42a 100644 --- a/smartag/src/model/DescribeCloudConnectNetworksRequest.cc +++ b/smartag/src/model/DescribeCloudConnectNetworksRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeCloudConnectNetworksRequest; - -DescribeCloudConnectNetworksRequest::DescribeCloudConnectNetworksRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeCloudConnectNetworks") -{} - -DescribeCloudConnectNetworksRequest::~DescribeCloudConnectNetworksRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeCloudConnectNetworksRequest; + +DescribeCloudConnectNetworksRequest::DescribeCloudConnectNetworksRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeCloudConnectNetworks") +{} + +DescribeCloudConnectNetworksRequest::~DescribeCloudConnectNetworksRequest() +{} + long DescribeCloudConnectNetworksRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeCloudConnectNetworksResult.cc b/smartag/src/model/DescribeCloudConnectNetworksResult.cc index f6739b3ae..becec24e2 100644 --- a/smartag/src/model/DescribeCloudConnectNetworksResult.cc +++ b/smartag/src/model/DescribeCloudConnectNetworksResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult() : - ServiceResult() -{} - -DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCloudConnectNetworksResult::~DescribeCloudConnectNetworksResult() -{} - -void DescribeCloudConnectNetworksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult() : + ServiceResult() +{} + +DescribeCloudConnectNetworksResult::DescribeCloudConnectNetworksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudConnectNetworksResult::~DescribeCloudConnectNetworksResult() +{} + +void DescribeCloudConnectNetworksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allCloudConnectNetworks = value["CloudConnectNetworks"]["CloudConnectNetwork"]; for (auto value : allCloudConnectNetworks) { @@ -66,6 +69,8 @@ void DescribeCloudConnectNetworksResult::parse(const std::string &payload) cloudConnectNetworksObject.cidrBlock = value["CidrBlock"].asString(); if(!value["SnatCidrBlock"].isNull()) cloudConnectNetworksObject.snatCidrBlock = value["SnatCidrBlock"].asString(); + if(!value["InterworkingStatus"].isNull()) + cloudConnectNetworksObject.interworkingStatus = value["InterworkingStatus"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { @@ -84,9 +89,9 @@ void DescribeCloudConnectNetworksResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeCloudConnectNetworksResult::getCloudConnectNetworks()const { return cloudConnectNetworks_; diff --git a/smartag/src/model/DescribeDnatEntriesRequest.cc b/smartag/src/model/DescribeDnatEntriesRequest.cc new file mode 100644 index 000000000..065e95ba1 --- /dev/null +++ b/smartag/src/model/DescribeDnatEntriesRequest.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::Smartag::Model::DescribeDnatEntriesRequest; + +DescribeDnatEntriesRequest::DescribeDnatEntriesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeDnatEntries") +{} + +DescribeDnatEntriesRequest::~DescribeDnatEntriesRequest() +{} + +long DescribeDnatEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDnatEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDnatEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDnatEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDnatEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDnatEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDnatEntriesRequest::getSagId()const +{ + return sagId_; +} + +void DescribeDnatEntriesRequest::setSagId(const std::string& sagId) +{ + sagId_ = sagId; + setCoreParameter("SagId", sagId); +} + +std::string DescribeDnatEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDnatEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeDnatEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDnatEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeDnatEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDnatEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDnatEntriesRequest::getType()const +{ + return type_; +} + +void DescribeDnatEntriesRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +int DescribeDnatEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDnatEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeDnatEntriesResult.cc b/smartag/src/model/DescribeDnatEntriesResult.cc new file mode 100644 index 000000000..b363c0497 --- /dev/null +++ b/smartag/src/model/DescribeDnatEntriesResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeDnatEntriesResult::DescribeDnatEntriesResult() : + ServiceResult() +{} + +DescribeDnatEntriesResult::DescribeDnatEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDnatEntriesResult::~DescribeDnatEntriesResult() +{} + +void DescribeDnatEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allDnatEntries = value["DnatEntries"]["DnatEntry"]; + for (auto value : allDnatEntries) + { + DnatEntry dnatEntriesObject; + if(!value["DnatEntryId"].isNull()) + dnatEntriesObject.dnatEntryId = value["DnatEntryId"].asString(); + if(!value["Type"].isNull()) + dnatEntriesObject.type = value["Type"].asString(); + if(!value["SagId"].isNull()) + dnatEntriesObject.sagId = value["SagId"].asString(); + if(!value["ExternalIp"].isNull()) + dnatEntriesObject.externalIp = value["ExternalIp"].asString(); + if(!value["ExternalPort"].isNull()) + dnatEntriesObject.externalPort = value["ExternalPort"].asString(); + if(!value["InternalIp"].isNull()) + dnatEntriesObject.internalIp = value["InternalIp"].asString(); + if(!value["IpProtocol"].isNull()) + dnatEntriesObject.ipProtocol = value["IpProtocol"].asString(); + if(!value["InternalPort"].isNull()) + dnatEntriesObject.internalPort = value["InternalPort"].asString(); + dnatEntries_.push_back(dnatEntriesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeDnatEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDnatEntriesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDnatEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDnatEntriesResult::getDnatEntries()const +{ + return dnatEntries_; +} + diff --git a/smartag/src/model/DescribeFlowLogSagsRequest.cc b/smartag/src/model/DescribeFlowLogSagsRequest.cc new file mode 100644 index 000000000..77b9964d3 --- /dev/null +++ b/smartag/src/model/DescribeFlowLogSagsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeFlowLogSagsRequest; + +DescribeFlowLogSagsRequest::DescribeFlowLogSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogSags") +{} + +DescribeFlowLogSagsRequest::~DescribeFlowLogSagsRequest() +{} + +long DescribeFlowLogSagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeFlowLogSagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeFlowLogSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeFlowLogSagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeFlowLogSagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeFlowLogSagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeFlowLogSagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeFlowLogSagsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeFlowLogSagsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeFlowLogSagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeFlowLogSagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeFlowLogSagsRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DescribeFlowLogSagsRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + +int DescribeFlowLogSagsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeFlowLogSagsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeFlowLogSagsResult.cc b/smartag/src/model/DescribeFlowLogSagsResult.cc new file mode 100644 index 000000000..14b6741aa --- /dev/null +++ b/smartag/src/model/DescribeFlowLogSagsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeFlowLogSagsResult::DescribeFlowLogSagsResult() : + ServiceResult() +{} + +DescribeFlowLogSagsResult::DescribeFlowLogSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFlowLogSagsResult::~DescribeFlowLogSagsResult() +{} + +void DescribeFlowLogSagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSags = value["Sags"]["Sag"]; + for (auto value : allSags) + { + Sag sagsObject; + if(!value["SmartAGId"].isNull()) + sagsObject.smartAGId = value["SmartAGId"].asString(); + if(!value["Description"].isNull()) + sagsObject.description = value["Description"].asString(); + if(!value["Name"].isNull()) + sagsObject.name = value["Name"].asString(); + sags_.push_back(sagsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeFlowLogSagsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeFlowLogSagsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeFlowLogSagsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeFlowLogSagsResult::getSags()const +{ + return sags_; +} + diff --git a/smartag/src/model/DescribeFlowLogsRequest.cc b/smartag/src/model/DescribeFlowLogsRequest.cc new file mode 100644 index 000000000..5a629cb77 --- /dev/null +++ b/smartag/src/model/DescribeFlowLogsRequest.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 + +using AlibabaCloud::Smartag::Model::DescribeFlowLogsRequest; + +DescribeFlowLogsRequest::DescribeFlowLogsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogs") +{} + +DescribeFlowLogsRequest::~DescribeFlowLogsRequest() +{} + +long DescribeFlowLogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeFlowLogsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeFlowLogsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeFlowLogsRequest::getDescription()const +{ + return description_; +} + +void DescribeFlowLogsRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long DescribeFlowLogsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeFlowLogsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeFlowLogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeFlowLogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeFlowLogsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeFlowLogsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeFlowLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeFlowLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeFlowLogsRequest::getOutputType()const +{ + return outputType_; +} + +void DescribeFlowLogsRequest::setOutputType(const std::string& outputType) +{ + outputType_ = outputType; + setCoreParameter("OutputType", outputType); +} + +std::string DescribeFlowLogsRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DescribeFlowLogsRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + +std::string DescribeFlowLogsRequest::getFlowLogName()const +{ + return flowLogName_; +} + +void DescribeFlowLogsRequest::setFlowLogName(const std::string& flowLogName) +{ + flowLogName_ = flowLogName; + setCoreParameter("FlowLogName", flowLogName); +} + +std::string DescribeFlowLogsRequest::getStatus()const +{ + return status_; +} + +void DescribeFlowLogsRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/smartag/src/model/DescribeFlowLogsResult.cc b/smartag/src/model/DescribeFlowLogsResult.cc new file mode 100644 index 000000000..e30f7845a --- /dev/null +++ b/smartag/src/model/DescribeFlowLogsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeFlowLogsResult::DescribeFlowLogsResult() : + ServiceResult() +{} + +DescribeFlowLogsResult::DescribeFlowLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFlowLogsResult::~DescribeFlowLogsResult() +{} + +void DescribeFlowLogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allFlowLogs = value["FlowLogs"]["FlowLogSetType"]; + for (auto value : allFlowLogs) + { + FlowLogSetType flowLogsObject; + if(!value["FlowLogId"].isNull()) + flowLogsObject.flowLogId = value["FlowLogId"].asString(); + if(!value["Description"].isNull()) + flowLogsObject.description = value["Description"].asString(); + if(!value["ActiveAging"].isNull()) + flowLogsObject.activeAging = std::stoi(value["ActiveAging"].asString()); + if(!value["InactiveAging"].isNull()) + flowLogsObject.inactiveAging = std::stoi(value["InactiveAging"].asString()); + if(!value["OutputType"].isNull()) + flowLogsObject.outputType = value["OutputType"].asString(); + if(!value["SlsRegionId"].isNull()) + flowLogsObject.slsRegionId = value["SlsRegionId"].asString(); + if(!value["ProjectName"].isNull()) + flowLogsObject.projectName = value["ProjectName"].asString(); + if(!value["LogstoreName"].isNull()) + flowLogsObject.logstoreName = value["LogstoreName"].asString(); + if(!value["NetflowServerIp"].isNull()) + flowLogsObject.netflowServerIp = value["NetflowServerIp"].asString(); + if(!value["NetflowServerPort"].isNull()) + flowLogsObject.netflowServerPort = value["NetflowServerPort"].asString(); + if(!value["NetflowVersion"].isNull()) + flowLogsObject.netflowVersion = value["NetflowVersion"].asString(); + if(!value["Status"].isNull()) + flowLogsObject.status = value["Status"].asString(); + if(!value["Name"].isNull()) + flowLogsObject.name = value["Name"].asString(); + flowLogs_.push_back(flowLogsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeFlowLogsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeFlowLogsResult::getFlowLogs()const +{ + return flowLogs_; +} + +int DescribeFlowLogsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeFlowLogsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/smartag/src/model/DescribeGrantRulesRequest.cc b/smartag/src/model/DescribeGrantRulesRequest.cc index b69e4f6ce..af30582d3 100644 --- a/smartag/src/model/DescribeGrantRulesRequest.cc +++ b/smartag/src/model/DescribeGrantRulesRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeGrantRulesRequest; - -DescribeGrantRulesRequest::DescribeGrantRulesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantRules") -{} - -DescribeGrantRulesRequest::~DescribeGrantRulesRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeGrantRulesRequest; + +DescribeGrantRulesRequest::DescribeGrantRulesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantRules") +{} + +DescribeGrantRulesRequest::~DescribeGrantRulesRequest() +{} + long DescribeGrantRulesRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeGrantRulesResult.cc b/smartag/src/model/DescribeGrantRulesResult.cc index dd3258a19..bbe1e1654 100644 --- a/smartag/src/model/DescribeGrantRulesResult.cc +++ b/smartag/src/model/DescribeGrantRulesResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeGrantRulesResult::DescribeGrantRulesResult() : - ServiceResult() -{} - -DescribeGrantRulesResult::DescribeGrantRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeGrantRulesResult::~DescribeGrantRulesResult() -{} - -void DescribeGrantRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeGrantRulesResult::DescribeGrantRulesResult() : + ServiceResult() +{} + +DescribeGrantRulesResult::DescribeGrantRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGrantRulesResult::~DescribeGrantRulesResult() +{} + +void DescribeGrantRulesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allGrantRules = value["GrantRules"]["GrantRule"]; for (auto value : allGrantRules) { @@ -48,8 +51,8 @@ void DescribeGrantRulesResult::parse(const std::string &payload) grantRulesObject.grantRuleId = value["GrantRuleId"].asString(); if(!value["CenUid"].isNull()) grantRulesObject.cenUid = std::stol(value["CenUid"].asString()); - if(!value["CcnId"].isNull()) - grantRulesObject.ccnId = std::stol(value["CcnId"].asString()); + if(!value["CcnUid"].isNull()) + grantRulesObject.ccnUid = std::stol(value["CcnUid"].asString()); if(!value["CenInstanceId"].isNull()) grantRulesObject.cenInstanceId = value["CenInstanceId"].asString(); if(!value["CcnInstanceId"].isNull()) @@ -68,9 +71,9 @@ void DescribeGrantRulesResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeGrantRulesResult::getTotalCount()const { return totalCount_; diff --git a/smartag/src/model/DescribeGrantSagRulesRequest.cc b/smartag/src/model/DescribeGrantSagRulesRequest.cc new file mode 100644 index 000000000..f96a40ef1 --- /dev/null +++ b/smartag/src/model/DescribeGrantSagRulesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeGrantSagRulesRequest; + +DescribeGrantSagRulesRequest::DescribeGrantSagRulesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantSagRules") +{} + +DescribeGrantSagRulesRequest::~DescribeGrantSagRulesRequest() +{} + +long DescribeGrantSagRulesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeGrantSagRulesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeGrantSagRulesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeGrantSagRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeGrantSagRulesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeGrantSagRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeGrantSagRulesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeGrantSagRulesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeGrantSagRulesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGrantSagRulesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeGrantSagRulesRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeGrantSagRulesRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DescribeGrantSagRulesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeGrantSagRulesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeGrantSagRulesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGrantSagRulesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeGrantSagRulesResult.cc b/smartag/src/model/DescribeGrantSagRulesResult.cc new file mode 100644 index 000000000..a64815ef6 --- /dev/null +++ b/smartag/src/model/DescribeGrantSagRulesResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeGrantSagRulesResult::DescribeGrantSagRulesResult() : + ServiceResult() +{} + +DescribeGrantSagRulesResult::DescribeGrantSagRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGrantSagRulesResult::~DescribeGrantSagRulesResult() +{} + +void DescribeGrantSagRulesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allGrantRules = value["GrantRules"]["GrantRule"]; + for (auto value : allGrantRules) + { + GrantRule grantRulesObject; + if(!value["InstanceId"].isNull()) + grantRulesObject.instanceId = value["InstanceId"].asString(); + if(!value["SmartAGId"].isNull()) + grantRulesObject.smartAGId = value["SmartAGId"].asString(); + if(!value["CreateTime"].isNull()) + grantRulesObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["CcnUid"].isNull()) + grantRulesObject.ccnUid = std::stol(value["CcnUid"].asString()); + if(!value["CcnInstanceId"].isNull()) + grantRulesObject.ccnInstanceId = value["CcnInstanceId"].asString(); + grantRules_.push_back(grantRulesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGrantSagRulesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGrantSagRulesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGrantSagRulesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGrantSagRulesResult::getGrantRules()const +{ + return grantRules_; +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc index 9fbe8c9b3..6950426d6 100644 --- a/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc +++ b/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeNetworkOptimizationSagsRequest; - -DescribeNetworkOptimizationSagsRequest::DescribeNetworkOptimizationSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSags") -{} - -DescribeNetworkOptimizationSagsRequest::~DescribeNetworkOptimizationSagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeNetworkOptimizationSagsRequest; + +DescribeNetworkOptimizationSagsRequest::DescribeNetworkOptimizationSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSags") +{} + +DescribeNetworkOptimizationSagsRequest::~DescribeNetworkOptimizationSagsRequest() +{} + long DescribeNetworkOptimizationSagsRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -69,17 +69,6 @@ void DescribeNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& setCoreParameter("NetworkOptId", networkOptId); } -int DescribeNetworkOptimizationSagsRequest::getPageNo()const -{ - return pageNo_; -} - -void DescribeNetworkOptimizationSagsRequest::setPageNo(int pageNo) -{ - pageNo_ = pageNo; - setCoreParameter("PageNo", std::to_string(pageNo)); -} - std::string DescribeNetworkOptimizationSagsRequest::getOwnerAccount()const { return ownerAccount_; @@ -113,3 +102,14 @@ void DescribeNetworkOptimizationSagsRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +int DescribeNetworkOptimizationSagsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNetworkOptimizationSagsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc index 82b7dc6ea..cead491d1 100644 --- a/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc +++ b/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult() : - ServiceResult() -{} - -DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkOptimizationSagsResult::~DescribeNetworkOptimizationSagsResult() -{} - -void DescribeNetworkOptimizationSagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult() : + ServiceResult() +{} + +DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkOptimizationSagsResult::~DescribeNetworkOptimizationSagsResult() +{} + +void DescribeNetworkOptimizationSagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSmartAccessGateways = value["SmartAccessGateways"]["SmartAccessGateway"]; for (auto value : allSmartAccessGateways) { @@ -60,13 +63,13 @@ void DescribeNetworkOptimizationSagsResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNo"].isNull()) - pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeNetworkOptimizationSagsResult::getTotalCount()const { return totalCount_; @@ -77,13 +80,13 @@ int DescribeNetworkOptimizationSagsResult::getPageSize()const return pageSize_; } +int DescribeNetworkOptimizationSagsResult::getPageNumber()const +{ + return pageNumber_; +} + std::vector DescribeNetworkOptimizationSagsResult::getSmartAccessGateways()const { return smartAccessGateways_; } -int DescribeNetworkOptimizationSagsResult::getPageNo()const -{ - return pageNo_; -} - diff --git a/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc index 8f635c256..8f3292733 100644 --- a/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc +++ b/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeNetworkOptimizationSettingsRequest; - -DescribeNetworkOptimizationSettingsRequest::DescribeNetworkOptimizationSettingsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSettings") -{} - -DescribeNetworkOptimizationSettingsRequest::~DescribeNetworkOptimizationSettingsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeNetworkOptimizationSettingsRequest; + +DescribeNetworkOptimizationSettingsRequest::DescribeNetworkOptimizationSettingsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSettings") +{} + +DescribeNetworkOptimizationSettingsRequest::~DescribeNetworkOptimizationSettingsRequest() +{} + long DescribeNetworkOptimizationSettingsRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -69,17 +69,6 @@ void DescribeNetworkOptimizationSettingsRequest::setNetworkOptId(const std::stri setCoreParameter("NetworkOptId", networkOptId); } -int DescribeNetworkOptimizationSettingsRequest::getPageNo()const -{ - return pageNo_; -} - -void DescribeNetworkOptimizationSettingsRequest::setPageNo(int pageNo) -{ - pageNo_ = pageNo; - setCoreParameter("PageNo", std::to_string(pageNo)); -} - std::string DescribeNetworkOptimizationSettingsRequest::getOwnerAccount()const { return ownerAccount_; @@ -113,3 +102,14 @@ void DescribeNetworkOptimizationSettingsRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +int DescribeNetworkOptimizationSettingsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNetworkOptimizationSettingsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc index 8888ecc89..0d3a4ffac 100644 --- a/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc +++ b/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult() : - ServiceResult() -{} - -DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkOptimizationSettingsResult::~DescribeNetworkOptimizationSettingsResult() -{} - -void DescribeNetworkOptimizationSettingsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult() : + ServiceResult() +{} + +DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkOptimizationSettingsResult::~DescribeNetworkOptimizationSettingsResult() +{} + +void DescribeNetworkOptimizationSettingsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSettings = value["Settings"]["Setting"]; for (auto value : allSettings) { @@ -52,13 +55,13 @@ void DescribeNetworkOptimizationSettingsResult::parse(const std::string &payload } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNo"].isNull()) - pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeNetworkOptimizationSettingsResult::getTotalCount()const { return totalCount_; @@ -69,9 +72,9 @@ int DescribeNetworkOptimizationSettingsResult::getPageSize()const return pageSize_; } -int DescribeNetworkOptimizationSettingsResult::getPageNo()const +int DescribeNetworkOptimizationSettingsResult::getPageNumber()const { - return pageNo_; + return pageNumber_; } std::vector DescribeNetworkOptimizationSettingsResult::getSettings()const diff --git a/smartag/src/model/DescribeNetworkOptimizationsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationsRequest.cc index 71125fb16..156916918 100644 --- a/smartag/src/model/DescribeNetworkOptimizationsRequest.cc +++ b/smartag/src/model/DescribeNetworkOptimizationsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeNetworkOptimizationsRequest; - -DescribeNetworkOptimizationsRequest::DescribeNetworkOptimizationsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizations") -{} - -DescribeNetworkOptimizationsRequest::~DescribeNetworkOptimizationsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeNetworkOptimizationsRequest; + +DescribeNetworkOptimizationsRequest::DescribeNetworkOptimizationsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizations") +{} + +DescribeNetworkOptimizationsRequest::~DescribeNetworkOptimizationsRequest() +{} + long DescribeNetworkOptimizationsRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -69,17 +69,6 @@ void DescribeNetworkOptimizationsRequest::setNetworkOptId(const std::string& net setCoreParameter("NetworkOptId", networkOptId); } -int DescribeNetworkOptimizationsRequest::getPageNo()const -{ - return pageNo_; -} - -void DescribeNetworkOptimizationsRequest::setPageNo(int pageNo) -{ - pageNo_ = pageNo; - setCoreParameter("PageNo", std::to_string(pageNo)); -} - std::string DescribeNetworkOptimizationsRequest::getOwnerAccount()const { return ownerAccount_; @@ -135,3 +124,14 @@ void DescribeNetworkOptimizationsRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +int DescribeNetworkOptimizationsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNetworkOptimizationsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeNetworkOptimizationsResult.cc b/smartag/src/model/DescribeNetworkOptimizationsResult.cc index 5f860e639..40cc709e2 100644 --- a/smartag/src/model/DescribeNetworkOptimizationsResult.cc +++ b/smartag/src/model/DescribeNetworkOptimizationsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult() : - ServiceResult() -{} - -DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkOptimizationsResult::~DescribeNetworkOptimizationsResult() -{} - -void DescribeNetworkOptimizationsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult() : + ServiceResult() +{} + +DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkOptimizationsResult::~DescribeNetworkOptimizationsResult() +{} + +void DescribeNetworkOptimizationsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allNetworkOptimizations = value["NetworkOptimizations"]["NetworkOptimization"]; for (auto value : allNetworkOptimizations) { @@ -60,13 +63,13 @@ void DescribeNetworkOptimizationsResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNo"].isNull()) - pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + std::vector DescribeNetworkOptimizationsResult::getNetworkOptimizations()const { return networkOptimizations_; @@ -82,8 +85,8 @@ int DescribeNetworkOptimizationsResult::getPageSize()const return pageSize_; } -int DescribeNetworkOptimizationsResult::getPageNo()const +int DescribeNetworkOptimizationsResult::getPageNumber()const { - return pageNo_; + return pageNumber_; } diff --git a/smartag/src/model/DescribeQosCarsRequest.cc b/smartag/src/model/DescribeQosCarsRequest.cc new file mode 100644 index 000000000..d85474c17 --- /dev/null +++ b/smartag/src/model/DescribeQosCarsRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeQosCarsRequest; + +DescribeQosCarsRequest::DescribeQosCarsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeQosCars") +{} + +DescribeQosCarsRequest::~DescribeQosCarsRequest() +{} + +long DescribeQosCarsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeQosCarsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeQosCarsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeQosCarsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeQosCarsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeQosCarsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeQosCarsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeQosCarsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeQosCarsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeQosCarsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeQosCarsRequest::getDescription()const +{ + return description_; +} + +void DescribeQosCarsRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long DescribeQosCarsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeQosCarsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeQosCarsRequest::getQosId()const +{ + return qosId_; +} + +void DescribeQosCarsRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + +std::string DescribeQosCarsRequest::getQosCarId()const +{ + return qosCarId_; +} + +void DescribeQosCarsRequest::setQosCarId(const std::string& qosCarId) +{ + qosCarId_ = qosCarId; + setCoreParameter("QosCarId", qosCarId); +} + +int DescribeQosCarsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeQosCarsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeQosCarsRequest::getOrder()const +{ + return order_; +} + +void DescribeQosCarsRequest::setOrder(const std::string& order) +{ + order_ = order; + setCoreParameter("Order", order); +} + diff --git a/smartag/src/model/DescribeQosCarsResult.cc b/smartag/src/model/DescribeQosCarsResult.cc new file mode 100644 index 000000000..2bc5267cc --- /dev/null +++ b/smartag/src/model/DescribeQosCarsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeQosCarsResult::DescribeQosCarsResult() : + ServiceResult() +{} + +DescribeQosCarsResult::DescribeQosCarsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeQosCarsResult::~DescribeQosCarsResult() +{} + +void DescribeQosCarsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allQosCars = value["QosCars"]["QosCar"]; + for (auto value : allQosCars) + { + QosCar qosCarsObject; + if(!value["QosCarId"].isNull()) + qosCarsObject.qosCarId = value["QosCarId"].asString(); + if(!value["QosId"].isNull()) + qosCarsObject.qosId = value["QosId"].asString(); + if(!value["Description"].isNull()) + qosCarsObject.description = value["Description"].asString(); + if(!value["Priority"].isNull()) + qosCarsObject.priority = std::stoi(value["Priority"].asString()); + if(!value["LimitType"].isNull()) + qosCarsObject.limitType = value["LimitType"].asString(); + if(!value["MinBandwidthAbs"].isNull()) + qosCarsObject.minBandwidthAbs = std::stoi(value["MinBandwidthAbs"].asString()); + if(!value["MaxBandwidthAbs"].isNull()) + qosCarsObject.maxBandwidthAbs = std::stoi(value["MaxBandwidthAbs"].asString()); + if(!value["MinBandwidthPercent"].isNull()) + qosCarsObject.minBandwidthPercent = std::stoi(value["MinBandwidthPercent"].asString()); + if(!value["MaxBandwidthPercent"].isNull()) + qosCarsObject.maxBandwidthPercent = std::stoi(value["MaxBandwidthPercent"].asString()); + if(!value["PercentSourceType"].isNull()) + qosCarsObject.percentSourceType = value["PercentSourceType"].asString(); + qosCars_.push_back(qosCarsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeQosCarsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeQosCarsResult::getQosCars()const +{ + return qosCars_; +} + +int DescribeQosCarsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeQosCarsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/smartag/src/model/DescribeQosPoliciesRequest.cc b/smartag/src/model/DescribeQosPoliciesRequest.cc new file mode 100644 index 000000000..b37b844b0 --- /dev/null +++ b/smartag/src/model/DescribeQosPoliciesRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeQosPoliciesRequest; + +DescribeQosPoliciesRequest::DescribeQosPoliciesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeQosPolicies") +{} + +DescribeQosPoliciesRequest::~DescribeQosPoliciesRequest() +{} + +long DescribeQosPoliciesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeQosPoliciesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeQosPoliciesRequest::getQosPolicyId()const +{ + return qosPolicyId_; +} + +void DescribeQosPoliciesRequest::setQosPolicyId(const std::string& qosPolicyId) +{ + qosPolicyId_ = qosPolicyId; + setCoreParameter("QosPolicyId", qosPolicyId); +} + +std::string DescribeQosPoliciesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeQosPoliciesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeQosPoliciesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeQosPoliciesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeQosPoliciesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeQosPoliciesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeQosPoliciesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeQosPoliciesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeQosPoliciesRequest::getDescription()const +{ + return description_; +} + +void DescribeQosPoliciesRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long DescribeQosPoliciesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeQosPoliciesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeQosPoliciesRequest::getQosId()const +{ + return qosId_; +} + +void DescribeQosPoliciesRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + +int DescribeQosPoliciesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeQosPoliciesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeQosPoliciesRequest::getOrder()const +{ + return order_; +} + +void DescribeQosPoliciesRequest::setOrder(const std::string& order) +{ + order_ = order; + setCoreParameter("Order", order); +} + diff --git a/smartag/src/model/DescribeQosPoliciesResult.cc b/smartag/src/model/DescribeQosPoliciesResult.cc new file mode 100644 index 000000000..0a619621e --- /dev/null +++ b/smartag/src/model/DescribeQosPoliciesResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeQosPoliciesResult::DescribeQosPoliciesResult() : + ServiceResult() +{} + +DescribeQosPoliciesResult::DescribeQosPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeQosPoliciesResult::~DescribeQosPoliciesResult() +{} + +void DescribeQosPoliciesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allQosPolicies = value["QosPolicies"]["QosPolicy"]; + for (auto value : allQosPolicies) + { + QosPolicy qosPoliciesObject; + if(!value["QosPolicyId"].isNull()) + qosPoliciesObject.qosPolicyId = value["QosPolicyId"].asString(); + if(!value["QosId"].isNull()) + qosPoliciesObject.qosId = value["QosId"].asString(); + if(!value["Priority"].isNull()) + qosPoliciesObject.priority = std::stoi(value["Priority"].asString()); + if(!value["Description"].isNull()) + qosPoliciesObject.description = value["Description"].asString(); + if(!value["SourceCidr"].isNull()) + qosPoliciesObject.sourceCidr = value["SourceCidr"].asString(); + if(!value["DestCidr"].isNull()) + qosPoliciesObject.destCidr = value["DestCidr"].asString(); + if(!value["IpProtocol"].isNull()) + qosPoliciesObject.ipProtocol = value["IpProtocol"].asString(); + if(!value["SourcePortRange"].isNull()) + qosPoliciesObject.sourcePortRange = value["SourcePortRange"].asString(); + if(!value["DestPortRange"].isNull()) + qosPoliciesObject.destPortRange = value["DestPortRange"].asString(); + if(!value["StartTime"].isNull()) + qosPoliciesObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + qosPoliciesObject.endTime = std::stol(value["EndTime"].asString()); + qosPolicies_.push_back(qosPoliciesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::vector DescribeQosPoliciesResult::getQosPolicies()const +{ + return qosPolicies_; +} + +int DescribeQosPoliciesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeQosPoliciesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeQosPoliciesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/smartag/src/model/DescribeQosesRequest.cc b/smartag/src/model/DescribeQosesRequest.cc new file mode 100644 index 000000000..0ebcfb7c1 --- /dev/null +++ b/smartag/src/model/DescribeQosesRequest.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::Smartag::Model::DescribeQosesRequest; + +DescribeQosesRequest::DescribeQosesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeQoses") +{} + +DescribeQosesRequest::~DescribeQosesRequest() +{} + +long DescribeQosesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeQosesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeQosesRequest::getQosName()const +{ + return qosName_; +} + +void DescribeQosesRequest::setQosName(const std::string& qosName) +{ + qosName_ = qosName; + setCoreParameter("QosName", qosName); +} + +std::string DescribeQosesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeQosesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeQosesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeQosesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeQosesRequest::getQosIds()const +{ + return qosIds_; +} + +void DescribeQosesRequest::setQosIds(const std::string& qosIds) +{ + qosIds_ = qosIds; + setCoreParameter("QosIds", qosIds); +} + +std::string DescribeQosesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeQosesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeQosesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeQosesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeQosesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeQosesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeQosesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeQosesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeQosesResult.cc b/smartag/src/model/DescribeQosesResult.cc new file mode 100644 index 000000000..1535aedcd --- /dev/null +++ b/smartag/src/model/DescribeQosesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeQosesResult::DescribeQosesResult() : + ServiceResult() +{} + +DescribeQosesResult::DescribeQosesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeQosesResult::~DescribeQosesResult() +{} + +void DescribeQosesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allQoses = value["Qoses"]["Qos"]; + for (auto value : allQoses) + { + Qos qosesObject; + if(!value["QosId"].isNull()) + qosesObject.qosId = value["QosId"].asString(); + if(!value["QosName"].isNull()) + qosesObject.qosName = value["QosName"].asString(); + if(!value["SagCount"].isNull()) + qosesObject.sagCount = value["SagCount"].asString(); + if(!value["SmartAGIds"].isNull()) + qosesObject.smartAGIds = value["SmartAGIds"].asString(); + qoses_.push_back(qosesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeQosesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeQosesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeQosesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeQosesResult::getQoses()const +{ + return qoses_; +} + diff --git a/smartag/src/model/DescribeRegionsRequest.cc b/smartag/src/model/DescribeRegionsRequest.cc index 40c2fde54..e22630c3d 100644 --- a/smartag/src/model/DescribeRegionsRequest.cc +++ b/smartag/src/model/DescribeRegionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeRegions") -{} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + long DescribeRegionsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeRegionsResult.cc b/smartag/src/model/DescribeRegionsResult.cc index d1a27f845..9cae23a8b 100644 --- a/smartag/src/model/DescribeRegionsResult.cc +++ b/smartag/src/model/DescribeRegionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) { @@ -52,9 +55,9 @@ void DescribeRegionsResult::parse(const std::string &payload) regionsObject.regionEndpoint = value["RegionEndpoint"].asString(); regions_.push_back(regionsObject); } - -} - + +} + std::vector DescribeRegionsResult::getRegions()const { return regions_; diff --git a/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc b/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc index c812ba390..900b0168e 100644 --- a/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc +++ b/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSagOnlineClientStatisticsRequest; - -DescribeSagOnlineClientStatisticsRequest::DescribeSagOnlineClientStatisticsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagOnlineClientStatistics") -{} - -DescribeSagOnlineClientStatisticsRequest::~DescribeSagOnlineClientStatisticsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSagOnlineClientStatisticsRequest; + +DescribeSagOnlineClientStatisticsRequest::DescribeSagOnlineClientStatisticsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSagOnlineClientStatistics") +{} + +DescribeSagOnlineClientStatisticsRequest::~DescribeSagOnlineClientStatisticsRequest() +{} + long DescribeSagOnlineClientStatisticsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc index 8643285fb..9b6c369ac 100644 --- a/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc +++ b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSagOnlineClientStatisticsResult::DescribeSagOnlineClientStatisticsResult() : - ServiceResult() -{} - -DescribeSagOnlineClientStatisticsResult::DescribeSagOnlineClientStatisticsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSagOnlineClientStatisticsResult::~DescribeSagOnlineClientStatisticsResult() -{} - -void DescribeSagOnlineClientStatisticsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSagOnlineClientStatisticsResult::DescribeSagOnlineClientStatisticsResult() : + ServiceResult() +{} + +DescribeSagOnlineClientStatisticsResult::DescribeSagOnlineClientStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSagOnlineClientStatisticsResult::~DescribeSagOnlineClientStatisticsResult() +{} + +void DescribeSagOnlineClientStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSagStatistics = value["SagStatistics"]["Statistics"]; for (auto value : allSagStatistics) { @@ -50,9 +53,9 @@ void DescribeSagOnlineClientStatisticsResult::parse(const std::string &payload) sagStatisticsObject.onlineCount = value["OnlineCount"].asString(); sagStatistics_.push_back(sagStatisticsObject); } - -} - + +} + std::vector DescribeSagOnlineClientStatisticsResult::getSagStatistics()const { return sagStatistics_; diff --git a/smartag/src/model/DescribeSagRouteableAddressRequest.cc b/smartag/src/model/DescribeSagRouteableAddressRequest.cc index 11b15423a..4ba990245 100644 --- a/smartag/src/model/DescribeSagRouteableAddressRequest.cc +++ b/smartag/src/model/DescribeSagRouteableAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSagRouteableAddressRequest; - -DescribeSagRouteableAddressRequest::DescribeSagRouteableAddressRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteableAddress") -{} - -DescribeSagRouteableAddressRequest::~DescribeSagRouteableAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSagRouteableAddressRequest; + +DescribeSagRouteableAddressRequest::DescribeSagRouteableAddressRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteableAddress") +{} + +DescribeSagRouteableAddressRequest::~DescribeSagRouteableAddressRequest() +{} + long DescribeSagRouteableAddressRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeSagRouteableAddressResult.cc b/smartag/src/model/DescribeSagRouteableAddressResult.cc index 0197b305f..1c8f8ac58 100644 --- a/smartag/src/model/DescribeSagRouteableAddressResult.cc +++ b/smartag/src/model/DescribeSagRouteableAddressResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult() : - ServiceResult() -{} - -DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSagRouteableAddressResult::~DescribeSagRouteableAddressResult() -{} - -void DescribeSagRouteableAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult() : + ServiceResult() +{} + +DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSagRouteableAddressResult::~DescribeSagRouteableAddressResult() +{} + +void DescribeSagRouteableAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["RouteableAddress"].isNull()) routeableAddress_ = value["RouteableAddress"].asString(); if(!value["Origin"].isNull()) origin_ = value["Origin"].asString(); - -} - + +} + std::string DescribeSagRouteableAddressResult::getOrigin()const { return origin_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.cc new file mode 100644 index 000000000..07a20c5f0 --- /dev/null +++ b/smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.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 + +using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewayAttributeRequest; + +DescribeSmartAccessGatewayAttributeRequest::DescribeSmartAccessGatewayAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayAttribute") +{} + +DescribeSmartAccessGatewayAttributeRequest::~DescribeSmartAccessGatewayAttributeRequest() +{} + +long DescribeSmartAccessGatewayAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSmartAccessGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSmartAccessGatewayAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSmartAccessGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSmartAccessGatewayAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSmartAccessGatewayAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeSmartAccessGatewayAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSmartAccessGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSmartAccessGatewayAttributeRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeSmartAccessGatewayAttributeRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DescribeSmartAccessGatewayAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSmartAccessGatewayAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc b/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc new file mode 100644 index 000000000..1674a51f0 --- /dev/null +++ b/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc @@ -0,0 +1,222 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayAttributeResult::DescribeSmartAccessGatewayAttributeResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayAttributeResult::DescribeSmartAccessGatewayAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayAttributeResult::~DescribeSmartAccessGatewayAttributeResult() +{} + +void DescribeSmartAccessGatewayAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allLinks = value["Links"]["Link"]; + for (auto value : allLinks) + { + Link linksObject; + if(!value["InstanceId"].isNull()) + linksObject.instanceId = value["InstanceId"].asString(); + if(!value["Type"].isNull()) + linksObject.type = value["Type"].asString(); + if(!value["Status"].isNull()) + linksObject.status = value["Status"].asString(); + if(!value["EndTime"].isNull()) + linksObject.endTime = std::stol(value["EndTime"].asString()); + if(!value["Bandwidth"].isNull()) + linksObject.bandwidth = value["Bandwidth"].asString(); + if(!value["RelateInstanceId"].isNull()) + linksObject.relateInstanceId = value["RelateInstanceId"].asString(); + if(!value["RelateInstanceRegionId"].isNull()) + linksObject.relateInstanceRegionId = value["RelateInstanceRegionId"].asString(); + if(!value["CommodityType"].isNull()) + linksObject.commodityType = value["CommodityType"].asString(); + links_.push_back(linksObject); + } + auto allDevices = value["Devices"]["Device"]; + for (auto value : allDevices) + { + Device devicesObject; + if(!value["SerialNumber"].isNull()) + devicesObject.serialNumber = value["SerialNumber"].asString(); + if(!value["HcState"].isNull()) + devicesObject.hcState = value["HcState"].asString(); + if(!value["HaState"].isNull()) + devicesObject.haState = value["HaState"].asString(); + if(!value["SoftwareVersion"].isNull()) + devicesObject.softwareVersion = std::stol(value["SoftwareVersion"].asString()); + if(!value["MonitorVersion"].isNull()) + devicesObject.monitorVersion = value["MonitorVersion"].asString(); + devices_.push_back(devicesObject); + } + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["City"].isNull()) + city_ = value["City"].asString(); + if(!value["MaxBandwidth"].isNull()) + maxBandwidth_ = value["MaxBandwidth"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + if(!value["AssociatedCcnId"].isNull()) + associatedCcnId_ = value["AssociatedCcnId"].asString(); + if(!value["AssociatedCcnName"].isNull()) + associatedCcnName_ = value["AssociatedCcnName"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["InstanceType"].isNull()) + instanceType_ = value["InstanceType"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + if(!value["SecurityLockThreshold"].isNull()) + securityLockThreshold_ = std::stoi(value["SecurityLockThreshold"].asString()); + if(!value["AclIds"].isNull()) + aclIds_ = value["AclIds"].asString(); + if(!value["DataPlan"].isNull()) + dataPlan_ = std::stol(value["DataPlan"].asString()); + if(!value["UserCount"].isNull()) + userCount_ = std::stoi(value["UserCount"].asString()); + if(!value["RoutingStrategy"].isNull()) + routingStrategy_ = value["RoutingStrategy"].asString(); + +} + +std::string DescribeSmartAccessGatewayAttributeResult::getStatus()const +{ + return status_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getDescription()const +{ + return description_; +} + +long DescribeSmartAccessGatewayAttributeResult::getEndTime()const +{ + return endTime_; +} + +int DescribeSmartAccessGatewayAttributeResult::getUserCount()const +{ + return userCount_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getMaxBandwidth()const +{ + return maxBandwidth_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getAssociatedCcnName()const +{ + return associatedCcnName_; +} + +long DescribeSmartAccessGatewayAttributeResult::getCreateTime()const +{ + return createTime_; +} + +long DescribeSmartAccessGatewayAttributeResult::getDataPlan()const +{ + return dataPlan_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getCidrBlock()const +{ + return cidrBlock_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getCity()const +{ + return city_; +} + +std::vector DescribeSmartAccessGatewayAttributeResult::getDevices()const +{ + return devices_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getName()const +{ + return name_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getRoutingStrategy()const +{ + return routingStrategy_; +} + +std::vector DescribeSmartAccessGatewayAttributeResult::getLinks()const +{ + return links_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getAssociatedCcnId()const +{ + return associatedCcnId_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getSmartAGId()const +{ + return smartAGId_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getInstanceType()const +{ + return instanceType_; +} + +int DescribeSmartAccessGatewayAttributeResult::getSecurityLockThreshold()const +{ + return securityLockThreshold_; +} + +std::string DescribeSmartAccessGatewayAttributeResult::getAclIds()const +{ + return aclIds_; +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc index d915e4470..a8ac3d31c 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayClientUsersRequest; - -DescribeSmartAccessGatewayClientUsersRequest::DescribeSmartAccessGatewayClientUsersRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayClientUsers") -{} - -DescribeSmartAccessGatewayClientUsersRequest::~DescribeSmartAccessGatewayClientUsersRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayClientUsersRequest; + +DescribeSmartAccessGatewayClientUsersRequest::DescribeSmartAccessGatewayClientUsersRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayClientUsers") +{} + +DescribeSmartAccessGatewayClientUsersRequest::~DescribeSmartAccessGatewayClientUsersRequest() +{} + long DescribeSmartAccessGatewayClientUsersRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -58,17 +58,6 @@ void DescribeSmartAccessGatewayClientUsersRequest::setRegionId(const std::string setCoreParameter("RegionId", regionId); } -int DescribeSmartAccessGatewayClientUsersRequest::getPageNo()const -{ - return pageNo_; -} - -void DescribeSmartAccessGatewayClientUsersRequest::setPageNo(int pageNo) -{ - pageNo_ = pageNo; - setCoreParameter("PageNo", std::to_string(pageNo)); -} - std::string DescribeSmartAccessGatewayClientUsersRequest::getOwnerAccount()const { return ownerAccount_; @@ -113,6 +102,17 @@ void DescribeSmartAccessGatewayClientUsersRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +int DescribeSmartAccessGatewayClientUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + std::string DescribeSmartAccessGatewayClientUsersRequest::getUserName()const { return userName_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc index ac1ca0f57..74c6a9e96 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewayClientUsersResult::DescribeSmartAccessGatewayClientUsersResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewayClientUsersResult::DescribeSmartAccessGatewayClientUsersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewayClientUsersResult::~DescribeSmartAccessGatewayClientUsersResult() -{} - -void DescribeSmartAccessGatewayClientUsersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayClientUsersResult::DescribeSmartAccessGatewayClientUsersResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayClientUsersResult::DescribeSmartAccessGatewayClientUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayClientUsersResult::~DescribeSmartAccessGatewayClientUsersResult() +{} + +void DescribeSmartAccessGatewayClientUsersResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allUsers = value["Users"]["User"]; for (auto value : allUsers) { @@ -52,17 +55,19 @@ void DescribeSmartAccessGatewayClientUsersResult::parse(const std::string &paylo usersObject.userName = value["UserName"].asString(); if(!value["Bandwidth"].isNull()) usersObject.bandwidth = std::stoi(value["Bandwidth"].asString()); + if(!value["State"].isNull()) + usersObject.state = std::stoi(value["State"].asString()); users_.push_back(usersObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNo"].isNull()) - pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeSmartAccessGatewayClientUsersResult::getTotalCount()const { return totalCount_; @@ -73,9 +78,9 @@ int DescribeSmartAccessGatewayClientUsersResult::getPageSize()const return pageSize_; } -int DescribeSmartAccessGatewayClientUsersResult::getPageNo()const +int DescribeSmartAccessGatewayClientUsersResult::getPageNumber()const { - return pageNo_; + return pageNumber_; } std::vector DescribeSmartAccessGatewayClientUsersResult::getUsers()const diff --git a/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc index 9c6a60d2f..fba69189e 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayHaRequest; - -DescribeSmartAccessGatewayHaRequest::DescribeSmartAccessGatewayHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayHa") -{} - -DescribeSmartAccessGatewayHaRequest::~DescribeSmartAccessGatewayHaRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayHaRequest; + +DescribeSmartAccessGatewayHaRequest::DescribeSmartAccessGatewayHaRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayHa") +{} + +DescribeSmartAccessGatewayHaRequest::~DescribeSmartAccessGatewayHaRequest() +{} + long DescribeSmartAccessGatewayHaRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc index 97b256ad0..3b546e759 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewayHaResult::~DescribeSmartAccessGatewayHaResult() -{} - -void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayHaResult::DescribeSmartAccessGatewayHaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayHaResult::~DescribeSmartAccessGatewayHaResult() +{} + +void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allLinkBackupInfoList = value["LinkBackupInfoList"]["LinkBackupInfoListItem"]; for (auto value : allLinkBackupInfoList) { @@ -68,9 +71,9 @@ void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) backupDeviceId_ = value["BackupDeviceId"].asString(); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); - -} - + +} + std::string DescribeSmartAccessGatewayHaResult::getDeviceLevelBackupState()const { return deviceLevelBackupState_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayRoutesRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayRoutesRequest.cc new file mode 100644 index 000000000..8a516c339 --- /dev/null +++ b/smartag/src/model/DescribeSmartAccessGatewayRoutesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayRoutesRequest; + +DescribeSmartAccessGatewayRoutesRequest::DescribeSmartAccessGatewayRoutesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayRoutes") +{} + +DescribeSmartAccessGatewayRoutesRequest::~DescribeSmartAccessGatewayRoutesRequest() +{} + +long DescribeSmartAccessGatewayRoutesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSmartAccessGatewayRoutesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSmartAccessGatewayRoutesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeSmartAccessGatewayRoutesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSmartAccessGatewayRoutesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeSmartAccessGatewayRoutesRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DescribeSmartAccessGatewayRoutesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSmartAccessGatewayRoutesRequest::getPageNubmer()const +{ + return pageNubmer_; +} + +void DescribeSmartAccessGatewayRoutesRequest::setPageNubmer(const std::string& pageNubmer) +{ + pageNubmer_ = pageNubmer; + setCoreParameter("PageNubmer", pageNubmer); +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayRoutesResult.cc b/smartag/src/model/DescribeSmartAccessGatewayRoutesResult.cc new file mode 100644 index 000000000..7c9eea92b --- /dev/null +++ b/smartag/src/model/DescribeSmartAccessGatewayRoutesResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayRoutesResult::DescribeSmartAccessGatewayRoutesResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayRoutesResult::DescribeSmartAccessGatewayRoutesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayRoutesResult::~DescribeSmartAccessGatewayRoutesResult() +{} + +void DescribeSmartAccessGatewayRoutesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRoutes = value["Routes"]["Route"]; + for (auto value : allRoutes) + { + Route routesObject; + if(!value["SourceInstanceId"].isNull()) + routesObject.sourceInstanceId = value["SourceInstanceId"].asString(); + if(!value["DestCidr"].isNull()) + routesObject.destCidr = value["DestCidr"].asString(); + if(!value["State"].isNull()) + routesObject.state = value["State"].asString(); + if(!value["RouteSource"].isNull()) + routesObject.routeSource = value["RouteSource"].asString(); + if(!value["SourceType"].isNull()) + routesObject.sourceType = value["SourceType"].asString(); + if(!value["ConflictInfo"].isNull()) + routesObject.conflictInfo = value["ConflictInfo"].asString(); + routes_.push_back(routesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNubmer"].isNull()) + pageNubmer_ = std::stoi(value["PageNubmer"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSmartAccessGatewayRoutesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSmartAccessGatewayRoutesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSmartAccessGatewayRoutesResult::getPageNubmer()const +{ + return pageNubmer_; +} + +std::vector DescribeSmartAccessGatewayRoutesResult::getRoutes()const +{ + return routes_; +} + diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc index df4849817..50e9b9d36 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayVersionsRequest; - -DescribeSmartAccessGatewayVersionsRequest::DescribeSmartAccessGatewayVersionsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayVersions") -{} - -DescribeSmartAccessGatewayVersionsRequest::~DescribeSmartAccessGatewayVersionsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewayVersionsRequest; + +DescribeSmartAccessGatewayVersionsRequest::DescribeSmartAccessGatewayVersionsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayVersions") +{} + +DescribeSmartAccessGatewayVersionsRequest::~DescribeSmartAccessGatewayVersionsRequest() +{} + long DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc index adb60a2c9..6146d8d4c 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewayVersionsResult::~DescribeSmartAccessGatewayVersionsResult() -{} - -void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewayVersionsResult::DescribeSmartAccessGatewayVersionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewayVersionsResult::~DescribeSmartAccessGatewayVersionsResult() +{} + +void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSmartAGVersions = value["SmartAGVersions"]["SmartAGVersion"]; for (auto value : allSmartAGVersions) { @@ -52,9 +55,9 @@ void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) smartAGVersionsObject.createTime = std::stol(value["CreateTime"].asString()); smartAGVersions_.push_back(smartAGVersionsObject); } - -} - + +} + std::vector DescribeSmartAccessGatewayVersionsResult::getSmartAGVersions()const { return smartAGVersions_; diff --git a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc index 881dd8538..9aa684d67 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewaysRequest; - -DescribeSmartAccessGatewaysRequest::DescribeSmartAccessGatewaysRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGateways") -{} - -DescribeSmartAccessGatewaysRequest::~DescribeSmartAccessGatewaysRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSmartAccessGatewaysRequest; + +DescribeSmartAccessGatewaysRequest::DescribeSmartAccessGatewaysRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGateways") +{} + +DescribeSmartAccessGatewaysRequest::~DescribeSmartAccessGatewaysRequest() +{} + long DescribeSmartAccessGatewaysRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc index 75d9a43b3..fadc5a5c7 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult() : - ServiceResult() -{} - -DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSmartAccessGatewaysResult::~DescribeSmartAccessGatewaysResult() -{} - -void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult() : + ServiceResult() +{} + +DescribeSmartAccessGatewaysResult::DescribeSmartAccessGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartAccessGatewaysResult::~DescribeSmartAccessGatewaysResult() +{} + +void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSmartAccessGateways = value["SmartAccessGateways"]["SmartAccessGateway"]; for (auto value : allSmartAccessGateways) { @@ -80,15 +83,39 @@ void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) smartAccessGatewaysObject.dataPlan = std::stol(value["DataPlan"].asString()); if(!value["UserCount"].isNull()) smartAccessGatewaysObject.userCount = std::stoi(value["UserCount"].asString()); - auto allSnatEntries = value["SnatEntries"]["SnatEntry"]; - for (auto value : allSnatEntries) + if(!value["RoutingStrategy"].isNull()) + smartAccessGatewaysObject.routingStrategy = value["RoutingStrategy"].asString(); + if(!value["UpBandwidthWan"].isNull()) + smartAccessGatewaysObject.upBandwidthWan = std::stoi(value["UpBandwidthWan"].asString()); + if(!value["UpBandwidth4G"].isNull()) + smartAccessGatewaysObject.upBandwidth4G = std::stoi(value["UpBandwidth4G"].asString()); + if(!value["QosIds"].isNull()) + smartAccessGatewaysObject.qosIds = value["QosIds"].asString(); + if(!value["BackupSoftwareVersion"].isNull()) + smartAccessGatewaysObject.backupSoftwareVersion = value["BackupSoftwareVersion"].asString(); + if(!value["SmartAGUid"].isNull()) + smartAccessGatewaysObject.smartAGUid = std::stol(value["SmartAGUid"].asString()); + auto allLinks = value["Links"]["Link"]; + for (auto value : allLinks) { - SmartAccessGateway::SnatEntry snatEntriesObject; - if(!value["CidrBlock"].isNull()) - snatEntriesObject.cidrBlock = value["CidrBlock"].asString(); - if(!value["SnatIp"].isNull()) - snatEntriesObject.snatIp = value["SnatIp"].asString(); - smartAccessGatewaysObject.snatEntries.push_back(snatEntriesObject); + SmartAccessGateway::Link linksObject; + if(!value["InstanceId"].isNull()) + linksObject.instanceId = value["InstanceId"].asString(); + if(!value["Type"].isNull()) + linksObject.type = value["Type"].asString(); + if(!value["Status"].isNull()) + linksObject.status = value["Status"].asString(); + if(!value["EndTime"].isNull()) + linksObject.endTime = std::stol(value["EndTime"].asString()); + if(!value["Bandwidth"].isNull()) + linksObject.bandwidth = value["Bandwidth"].asString(); + if(!value["RelateInstanceId"].isNull()) + linksObject.relateInstanceId = value["RelateInstanceId"].asString(); + if(!value["RelateInstanceRegionId"].isNull()) + linksObject.relateInstanceRegionId = value["RelateInstanceRegionId"].asString(); + if(!value["CommodityType"].isNull()) + linksObject.commodityType = value["CommodityType"].asString(); + smartAccessGatewaysObject.links.push_back(linksObject); } smartAccessGateways_.push_back(smartAccessGatewaysObject); } @@ -98,9 +125,9 @@ void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); - -} - + +} + int DescribeSmartAccessGatewaysResult::getTotalCount()const { return totalCount_; diff --git a/smartag/src/model/DescribeSnatEntriesRequest.cc b/smartag/src/model/DescribeSnatEntriesRequest.cc new file mode 100644 index 000000000..c7b968f18 --- /dev/null +++ b/smartag/src/model/DescribeSnatEntriesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeSnatEntriesRequest; + +DescribeSnatEntriesRequest::DescribeSnatEntriesRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeSnatEntries") +{} + +DescribeSnatEntriesRequest::~DescribeSnatEntriesRequest() +{} + +long DescribeSnatEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnatEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSnatEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnatEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnatEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnatEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeSnatEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnatEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeSnatEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnatEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSnatEntriesRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DescribeSnatEntriesRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DescribeSnatEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnatEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSnatEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnatEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/smartag/src/model/DescribeSnatEntriesResult.cc b/smartag/src/model/DescribeSnatEntriesResult.cc new file mode 100644 index 000000000..4b9bf42f7 --- /dev/null +++ b/smartag/src/model/DescribeSnatEntriesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeSnatEntriesResult::DescribeSnatEntriesResult() : + ServiceResult() +{} + +DescribeSnatEntriesResult::DescribeSnatEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnatEntriesResult::~DescribeSnatEntriesResult() +{} + +void DescribeSnatEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSnatEntries = value["SnatEntries"]["SnatEntry"]; + for (auto value : allSnatEntries) + { + SnatEntry snatEntriesObject; + if(!value["InstanceId"].isNull()) + snatEntriesObject.instanceId = value["InstanceId"].asString(); + if(!value["CidrBlock"].isNull()) + snatEntriesObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["SnatIp"].isNull()) + snatEntriesObject.snatIp = value["SnatIp"].asString(); + if(!value["CreateTime"].isNull()) + snatEntriesObject.createTime = std::stol(value["CreateTime"].asString()); + snatEntries_.push_back(snatEntriesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSnatEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeSnatEntriesResult::getSnatEntries()const +{ + return snatEntries_; +} + +int DescribeSnatEntriesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSnatEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc b/smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc new file mode 100644 index 000000000..405971786 --- /dev/null +++ b/smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeUnbindFlowLogSagsRequest; + +DescribeUnbindFlowLogSagsRequest::DescribeUnbindFlowLogSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeUnbindFlowLogSags") +{} + +DescribeUnbindFlowLogSagsRequest::~DescribeUnbindFlowLogSagsRequest() +{} + +long DescribeUnbindFlowLogSagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUnbindFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeUnbindFlowLogSagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeUnbindFlowLogSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeUnbindFlowLogSagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUnbindFlowLogSagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeUnbindFlowLogSagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeUnbindFlowLogSagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeUnbindFlowLogSagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUnbindFlowLogSagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/DescribeUnbindFlowLogSagsResult.cc b/smartag/src/model/DescribeUnbindFlowLogSagsResult.cc new file mode 100644 index 000000000..84cdf7503 --- /dev/null +++ b/smartag/src/model/DescribeUnbindFlowLogSagsResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeUnbindFlowLogSagsResult::DescribeUnbindFlowLogSagsResult() : + ServiceResult() +{} + +DescribeUnbindFlowLogSagsResult::DescribeUnbindFlowLogSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUnbindFlowLogSagsResult::~DescribeUnbindFlowLogSagsResult() +{} + +void DescribeUnbindFlowLogSagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allSags = value["Sags"]["Sag"]; + for (auto value : allSags) + { + Sag sagsObject; + if(!value["SmartAGId"].isNull()) + sagsObject.smartAGId = value["SmartAGId"].asString(); + if(!value["Description"].isNull()) + sagsObject.description = value["Description"].asString(); + if(!value["Name"].isNull()) + sagsObject.name = value["Name"].asString(); + sags_.push_back(sagsObject); + } + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int DescribeUnbindFlowLogSagsResult::getCount()const +{ + return count_; +} + +std::vector DescribeUnbindFlowLogSagsResult::getSags()const +{ + return sags_; +} + diff --git a/smartag/src/model/DescribeUserFlowStatisticsRequest.cc b/smartag/src/model/DescribeUserFlowStatisticsRequest.cc index 08df46f27..0d0362904 100644 --- a/smartag/src/model/DescribeUserFlowStatisticsRequest.cc +++ b/smartag/src/model/DescribeUserFlowStatisticsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeUserFlowStatisticsRequest; - -DescribeUserFlowStatisticsRequest::DescribeUserFlowStatisticsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeUserFlowStatistics") -{} - -DescribeUserFlowStatisticsRequest::~DescribeUserFlowStatisticsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeUserFlowStatisticsRequest; + +DescribeUserFlowStatisticsRequest::DescribeUserFlowStatisticsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeUserFlowStatistics") +{} + +DescribeUserFlowStatisticsRequest::~DescribeUserFlowStatisticsRequest() +{} + long DescribeUserFlowStatisticsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeUserFlowStatisticsResult.cc b/smartag/src/model/DescribeUserFlowStatisticsResult.cc index 22bacdf7b..65b9ff49d 100644 --- a/smartag/src/model/DescribeUserFlowStatisticsResult.cc +++ b/smartag/src/model/DescribeUserFlowStatisticsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeUserFlowStatisticsResult::DescribeUserFlowStatisticsResult() : - ServiceResult() -{} - -DescribeUserFlowStatisticsResult::DescribeUserFlowStatisticsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeUserFlowStatisticsResult::~DescribeUserFlowStatisticsResult() -{} - -void DescribeUserFlowStatisticsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeUserFlowStatisticsResult::DescribeUserFlowStatisticsResult() : + ServiceResult() +{} + +DescribeUserFlowStatisticsResult::DescribeUserFlowStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserFlowStatisticsResult::~DescribeUserFlowStatisticsResult() +{} + +void DescribeUserFlowStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allSagStatistics = value["SagStatistics"]["Statistics"]; for (auto value : allSagStatistics) { @@ -50,9 +53,9 @@ void DescribeUserFlowStatisticsResult::parse(const std::string &payload) sagStatisticsObject.totalBytes = value["TotalBytes"].asString(); sagStatistics_.push_back(sagStatisticsObject); } - -} - + +} + std::vector DescribeUserFlowStatisticsResult::getSagStatistics()const { return sagStatistics_; diff --git a/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc b/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc index c4db2d116..7def7c49c 100644 --- a/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc +++ b/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeUserOnlineClientStatisticsRequest; - -DescribeUserOnlineClientStatisticsRequest::DescribeUserOnlineClientStatisticsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClientStatistics") -{} - -DescribeUserOnlineClientStatisticsRequest::~DescribeUserOnlineClientStatisticsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeUserOnlineClientStatisticsRequest; + +DescribeUserOnlineClientStatisticsRequest::DescribeUserOnlineClientStatisticsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClientStatistics") +{} + +DescribeUserOnlineClientStatisticsRequest::~DescribeUserOnlineClientStatisticsRequest() +{} + long DescribeUserOnlineClientStatisticsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc b/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc index 3eca53219..5a1ab2a86 100644 --- a/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc +++ b/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeUserOnlineClientStatisticsResult::DescribeUserOnlineClientStatisticsResult() : - ServiceResult() -{} - -DescribeUserOnlineClientStatisticsResult::DescribeUserOnlineClientStatisticsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeUserOnlineClientStatisticsResult::~DescribeUserOnlineClientStatisticsResult() -{} - -void DescribeUserOnlineClientStatisticsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeUserOnlineClientStatisticsResult::DescribeUserOnlineClientStatisticsResult() : + ServiceResult() +{} + +DescribeUserOnlineClientStatisticsResult::DescribeUserOnlineClientStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserOnlineClientStatisticsResult::~DescribeUserOnlineClientStatisticsResult() +{} + +void DescribeUserOnlineClientStatisticsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allUserStatistics = value["UserStatistics"]["Statistics"]; for (auto value : allUserStatistics) { @@ -50,9 +53,9 @@ void DescribeUserOnlineClientStatisticsResult::parse(const std::string &payload) userStatisticsObject.onlineCount = value["OnlineCount"].asString(); userStatistics_.push_back(userStatisticsObject); } - -} - + +} + std::vector DescribeUserOnlineClientStatisticsResult::getUserStatistics()const { return userStatistics_; diff --git a/smartag/src/model/DescribeUserOnlineClientsRequest.cc b/smartag/src/model/DescribeUserOnlineClientsRequest.cc index 5153df30c..e66f1928a 100644 --- a/smartag/src/model/DescribeUserOnlineClientsRequest.cc +++ b/smartag/src/model/DescribeUserOnlineClientsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DescribeUserOnlineClientsRequest; - -DescribeUserOnlineClientsRequest::DescribeUserOnlineClientsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClients") -{} - -DescribeUserOnlineClientsRequest::~DescribeUserOnlineClientsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DescribeUserOnlineClientsRequest; + +DescribeUserOnlineClientsRequest::DescribeUserOnlineClientsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClients") +{} + +DescribeUserOnlineClientsRequest::~DescribeUserOnlineClientsRequest() +{} + long DescribeUserOnlineClientsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DescribeUserOnlineClientsResult.cc b/smartag/src/model/DescribeUserOnlineClientsResult.cc index 9b9975ff7..b4104c6c6 100644 --- a/smartag/src/model/DescribeUserOnlineClientsResult.cc +++ b/smartag/src/model/DescribeUserOnlineClientsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeUserOnlineClientsResult::DescribeUserOnlineClientsResult() : - ServiceResult() -{} - -DescribeUserOnlineClientsResult::DescribeUserOnlineClientsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeUserOnlineClientsResult::~DescribeUserOnlineClientsResult() -{} - -void DescribeUserOnlineClientsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DescribeUserOnlineClientsResult::DescribeUserOnlineClientsResult() : + ServiceResult() +{} + +DescribeUserOnlineClientsResult::DescribeUserOnlineClientsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserOnlineClientsResult::~DescribeUserOnlineClientsResult() +{} + +void DescribeUserOnlineClientsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); auto allUsers = value["Users"]["User"]; for (auto value : allUsers) { @@ -50,9 +53,9 @@ void DescribeUserOnlineClientsResult::parse(const std::string &payload) usersObject.onlineTime = value["OnlineTime"].asString(); users_.push_back(usersObject); } - -} - + +} + std::vector DescribeUserOnlineClientsResult::getUsers()const { return users_; diff --git a/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc b/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc index acca70563..0c3deee96 100644 --- a/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc +++ b/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DetachNetworkOptimizationSagsRequest; - -DetachNetworkOptimizationSagsRequest::DetachNetworkOptimizationSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DetachNetworkOptimizationSags") -{} - -DetachNetworkOptimizationSagsRequest::~DetachNetworkOptimizationSagsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DetachNetworkOptimizationSagsRequest; + +DetachNetworkOptimizationSagsRequest::DetachNetworkOptimizationSagsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DetachNetworkOptimizationSags") +{} + +DetachNetworkOptimizationSagsRequest::~DetachNetworkOptimizationSagsRequest() +{} + long DetachNetworkOptimizationSagsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DetachNetworkOptimizationSagsResult.cc b/smartag/src/model/DetachNetworkOptimizationSagsResult.cc index b46bafbfa..70795d18c 100644 --- a/smartag/src/model/DetachNetworkOptimizationSagsResult.cc +++ b/smartag/src/model/DetachNetworkOptimizationSagsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult() : - ServiceResult() -{} - -DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachNetworkOptimizationSagsResult::~DetachNetworkOptimizationSagsResult() -{} - -void DetachNetworkOptimizationSagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult() : + ServiceResult() +{} + +DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachNetworkOptimizationSagsResult::~DetachNetworkOptimizationSagsResult() +{} + +void DetachNetworkOptimizationSagsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DisableSmartAccessGatewayUserRequest.cc b/smartag/src/model/DisableSmartAccessGatewayUserRequest.cc new file mode 100644 index 000000000..648f7af65 --- /dev/null +++ b/smartag/src/model/DisableSmartAccessGatewayUserRequest.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 + +using AlibabaCloud::Smartag::Model::DisableSmartAccessGatewayUserRequest; + +DisableSmartAccessGatewayUserRequest::DisableSmartAccessGatewayUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DisableSmartAccessGatewayUser") +{} + +DisableSmartAccessGatewayUserRequest::~DisableSmartAccessGatewayUserRequest() +{} + +long DisableSmartAccessGatewayUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisableSmartAccessGatewayUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisableSmartAccessGatewayUserRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisableSmartAccessGatewayUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisableSmartAccessGatewayUserRequest::getRegionId()const +{ + return regionId_; +} + +void DisableSmartAccessGatewayUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DisableSmartAccessGatewayUserRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisableSmartAccessGatewayUserRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DisableSmartAccessGatewayUserRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DisableSmartAccessGatewayUserRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DisableSmartAccessGatewayUserRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisableSmartAccessGatewayUserRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DisableSmartAccessGatewayUserRequest::getUserName()const +{ + return userName_; +} + +void DisableSmartAccessGatewayUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/DisableSmartAccessGatewayUserResult.cc b/smartag/src/model/DisableSmartAccessGatewayUserResult.cc new file mode 100644 index 000000000..e8d1272d4 --- /dev/null +++ b/smartag/src/model/DisableSmartAccessGatewayUserResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DisableSmartAccessGatewayUserResult::DisableSmartAccessGatewayUserResult() : + ServiceResult() +{} + +DisableSmartAccessGatewayUserResult::DisableSmartAccessGatewayUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableSmartAccessGatewayUserResult::~DisableSmartAccessGatewayUserResult() +{} + +void DisableSmartAccessGatewayUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DisassociateACLRequest.cc b/smartag/src/model/DisassociateACLRequest.cc index 7113c0c1e..1e3a00ece 100644 --- a/smartag/src/model/DisassociateACLRequest.cc +++ b/smartag/src/model/DisassociateACLRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DisassociateACLRequest; - -DisassociateACLRequest::DisassociateACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DisassociateACL") -{} - -DisassociateACLRequest::~DisassociateACLRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DisassociateACLRequest; + +DisassociateACLRequest::DisassociateACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DisassociateACL") +{} + +DisassociateACLRequest::~DisassociateACLRequest() +{} + std::string DisassociateACLRequest::getAclId()const { return aclId_; diff --git a/smartag/src/model/DisassociateACLResult.cc b/smartag/src/model/DisassociateACLResult.cc index e068e7f18..ccab2a524 100644 --- a/smartag/src/model/DisassociateACLResult.cc +++ b/smartag/src/model/DisassociateACLResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DisassociateACLResult::DisassociateACLResult() : - ServiceResult() -{} - -DisassociateACLResult::DisassociateACLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DisassociateACLResult::~DisassociateACLResult() -{} - -void DisassociateACLResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DisassociateACLResult::DisassociateACLResult() : + ServiceResult() +{} + +DisassociateACLResult::DisassociateACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisassociateACLResult::~DisassociateACLResult() +{} + +void DisassociateACLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DisassociateFlowLogRequest.cc b/smartag/src/model/DisassociateFlowLogRequest.cc new file mode 100644 index 000000000..9ad4b915e --- /dev/null +++ b/smartag/src/model/DisassociateFlowLogRequest.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 + +using AlibabaCloud::Smartag::Model::DisassociateFlowLogRequest; + +DisassociateFlowLogRequest::DisassociateFlowLogRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DisassociateFlowLog") +{} + +DisassociateFlowLogRequest::~DisassociateFlowLogRequest() +{} + +long DisassociateFlowLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisassociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisassociateFlowLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisassociateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisassociateFlowLogRequest::getRegionId()const +{ + return regionId_; +} + +void DisassociateFlowLogRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DisassociateFlowLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisassociateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DisassociateFlowLogRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DisassociateFlowLogRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DisassociateFlowLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisassociateFlowLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DisassociateFlowLogRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void DisassociateFlowLogRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/smartag/src/model/DisassociateFlowLogResult.cc b/smartag/src/model/DisassociateFlowLogResult.cc new file mode 100644 index 000000000..35959d038 --- /dev/null +++ b/smartag/src/model/DisassociateFlowLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DisassociateFlowLogResult::DisassociateFlowLogResult() : + ServiceResult() +{} + +DisassociateFlowLogResult::DisassociateFlowLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisassociateFlowLogResult::~DisassociateFlowLogResult() +{} + +void DisassociateFlowLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DisassociateQosRequest.cc b/smartag/src/model/DisassociateQosRequest.cc new file mode 100644 index 000000000..7036fb88e --- /dev/null +++ b/smartag/src/model/DisassociateQosRequest.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 + +using AlibabaCloud::Smartag::Model::DisassociateQosRequest; + +DisassociateQosRequest::DisassociateQosRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DisassociateQos") +{} + +DisassociateQosRequest::~DisassociateQosRequest() +{} + +long DisassociateQosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisassociateQosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisassociateQosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisassociateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisassociateQosRequest::getRegionId()const +{ + return regionId_; +} + +void DisassociateQosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DisassociateQosRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisassociateQosRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DisassociateQosRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void DisassociateQosRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long DisassociateQosRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisassociateQosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DisassociateQosRequest::getQosId()const +{ + return qosId_; +} + +void DisassociateQosRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/DisassociateQosResult.cc b/smartag/src/model/DisassociateQosResult.cc new file mode 100644 index 000000000..c058f3ac4 --- /dev/null +++ b/smartag/src/model/DisassociateQosResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DisassociateQosResult::DisassociateQosResult() : + ServiceResult() +{} + +DisassociateQosResult::DisassociateQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisassociateQosResult::~DisassociateQosResult() +{} + +void DisassociateQosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc b/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc index 0df9461aa..504181161 100644 --- a/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc +++ b/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::DowngradeSmartAccessGatewayRequest; - -DowngradeSmartAccessGatewayRequest::DowngradeSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DowngradeSmartAccessGateway") -{} - -DowngradeSmartAccessGatewayRequest::~DowngradeSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::DowngradeSmartAccessGatewayRequest; + +DowngradeSmartAccessGatewayRequest::DowngradeSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "DowngradeSmartAccessGateway") +{} + +DowngradeSmartAccessGatewayRequest::~DowngradeSmartAccessGatewayRequest() +{} + long DowngradeSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/DowngradeSmartAccessGatewayResult.cc b/smartag/src/model/DowngradeSmartAccessGatewayResult.cc index accea503b..c5c024c64 100644 --- a/smartag/src/model/DowngradeSmartAccessGatewayResult.cc +++ b/smartag/src/model/DowngradeSmartAccessGatewayResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DowngradeSmartAccessGatewayResult::DowngradeSmartAccessGatewayResult() : - ServiceResult() -{} - -DowngradeSmartAccessGatewayResult::DowngradeSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DowngradeSmartAccessGatewayResult::~DowngradeSmartAccessGatewayResult() -{} - -void DowngradeSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +DowngradeSmartAccessGatewayResult::DowngradeSmartAccessGatewayResult() : + ServiceResult() +{} + +DowngradeSmartAccessGatewayResult::DowngradeSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DowngradeSmartAccessGatewayResult::~DowngradeSmartAccessGatewayResult() +{} + +void DowngradeSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string DowngradeSmartAccessGatewayResult::getOrderId()const { return orderId_; diff --git a/smartag/src/model/EnableSmartAccessGatewayUserRequest.cc b/smartag/src/model/EnableSmartAccessGatewayUserRequest.cc new file mode 100644 index 000000000..91144577f --- /dev/null +++ b/smartag/src/model/EnableSmartAccessGatewayUserRequest.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 + +using AlibabaCloud::Smartag::Model::EnableSmartAccessGatewayUserRequest; + +EnableSmartAccessGatewayUserRequest::EnableSmartAccessGatewayUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "EnableSmartAccessGatewayUser") +{} + +EnableSmartAccessGatewayUserRequest::~EnableSmartAccessGatewayUserRequest() +{} + +long EnableSmartAccessGatewayUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EnableSmartAccessGatewayUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EnableSmartAccessGatewayUserRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EnableSmartAccessGatewayUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EnableSmartAccessGatewayUserRequest::getRegionId()const +{ + return regionId_; +} + +void EnableSmartAccessGatewayUserRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string EnableSmartAccessGatewayUserRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EnableSmartAccessGatewayUserRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string EnableSmartAccessGatewayUserRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void EnableSmartAccessGatewayUserRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long EnableSmartAccessGatewayUserRequest::getOwnerId()const +{ + return ownerId_; +} + +void EnableSmartAccessGatewayUserRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string EnableSmartAccessGatewayUserRequest::getUserName()const +{ + return userName_; +} + +void EnableSmartAccessGatewayUserRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setCoreParameter("UserName", userName); +} + diff --git a/smartag/src/model/EnableSmartAccessGatewayUserResult.cc b/smartag/src/model/EnableSmartAccessGatewayUserResult.cc new file mode 100644 index 000000000..b8f4d1d4a --- /dev/null +++ b/smartag/src/model/EnableSmartAccessGatewayUserResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +EnableSmartAccessGatewayUserResult::EnableSmartAccessGatewayUserResult() : + ServiceResult() +{} + +EnableSmartAccessGatewayUserResult::EnableSmartAccessGatewayUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableSmartAccessGatewayUserResult::~EnableSmartAccessGatewayUserResult() +{} + +void EnableSmartAccessGatewayUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc b/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc index 74d53dd37..cbd3f1d91 100644 --- a/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc +++ b/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::GetCloudConnectNetworkUseLimitRequest; - -GetCloudConnectNetworkUseLimitRequest::GetCloudConnectNetworkUseLimitRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetCloudConnectNetworkUseLimit") -{} - -GetCloudConnectNetworkUseLimitRequest::~GetCloudConnectNetworkUseLimitRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::GetCloudConnectNetworkUseLimitRequest; + +GetCloudConnectNetworkUseLimitRequest::GetCloudConnectNetworkUseLimitRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GetCloudConnectNetworkUseLimit") +{} + +GetCloudConnectNetworkUseLimitRequest::~GetCloudConnectNetworkUseLimitRequest() +{} + long GetCloudConnectNetworkUseLimitRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc b/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc index 55e8f5a92..f3d6884c3 100644 --- a/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc +++ b/smartag/src/model/GetCloudConnectNetworkUseLimitResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult() : - ServiceResult() -{} - -GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCloudConnectNetworkUseLimitResult::~GetCloudConnectNetworkUseLimitResult() -{} - -void GetCloudConnectNetworkUseLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult() : + ServiceResult() +{} + +GetCloudConnectNetworkUseLimitResult::GetCloudConnectNetworkUseLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCloudConnectNetworkUseLimitResult::~GetCloudConnectNetworkUseLimitResult() +{} + +void GetCloudConnectNetworkUseLimitResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TotalAmount"].isNull()) totalAmount_ = std::stoi(value["TotalAmount"].asString()); if(!value["UsedAmount"].isNull()) usedAmount_ = std::stoi(value["UsedAmount"].asString()); - -} - + +} + int GetCloudConnectNetworkUseLimitResult::getUsedAmount()const { return usedAmount_; diff --git a/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc b/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc index 5565e386e..b663a12f7 100644 --- a/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc +++ b/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::GetSmartAccessGatewayUseLimitRequest; - -GetSmartAccessGatewayUseLimitRequest::GetSmartAccessGatewayUseLimitRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetSmartAccessGatewayUseLimit") -{} - -GetSmartAccessGatewayUseLimitRequest::~GetSmartAccessGatewayUseLimitRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::GetSmartAccessGatewayUseLimitRequest; + +GetSmartAccessGatewayUseLimitRequest::GetSmartAccessGatewayUseLimitRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GetSmartAccessGatewayUseLimit") +{} + +GetSmartAccessGatewayUseLimitRequest::~GetSmartAccessGatewayUseLimitRequest() +{} + long GetSmartAccessGatewayUseLimitRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc b/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc index 5736e6ba1..e93bd440f 100644 --- a/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc +++ b/smartag/src/model/GetSmartAccessGatewayUseLimitResult.cc @@ -1,52 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult() : - ServiceResult() -{} - -GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetSmartAccessGatewayUseLimitResult::~GetSmartAccessGatewayUseLimitResult() -{} - -void GetSmartAccessGatewayUseLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult() : + ServiceResult() +{} + +GetSmartAccessGatewayUseLimitResult::GetSmartAccessGatewayUseLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSmartAccessGatewayUseLimitResult::~GetSmartAccessGatewayUseLimitResult() +{} + +void GetSmartAccessGatewayUseLimitResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["TotalAmount"].isNull()) totalAmount_ = std::stoi(value["TotalAmount"].asString()); if(!value["UsedAmount"].isNull()) usedAmount_ = std::stoi(value["UsedAmount"].asString()); - -} - + +} + int GetSmartAccessGatewayUseLimitResult::getUsedAmount()const { return usedAmount_; diff --git a/smartag/src/model/GrantInstanceToCbnRequest.cc b/smartag/src/model/GrantInstanceToCbnRequest.cc index cb0c4e318..2d3a2449e 100644 --- a/smartag/src/model/GrantInstanceToCbnRequest.cc +++ b/smartag/src/model/GrantInstanceToCbnRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::GrantInstanceToCbnRequest; - -GrantInstanceToCbnRequest::GrantInstanceToCbnRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GrantInstanceToCbn") -{} - -GrantInstanceToCbnRequest::~GrantInstanceToCbnRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::GrantInstanceToCbnRequest; + +GrantInstanceToCbnRequest::GrantInstanceToCbnRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GrantInstanceToCbn") +{} + +GrantInstanceToCbnRequest::~GrantInstanceToCbnRequest() +{} + long GrantInstanceToCbnRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/GrantInstanceToCbnResult.cc b/smartag/src/model/GrantInstanceToCbnResult.cc index fb18a5c67..3797c2a02 100644 --- a/smartag/src/model/GrantInstanceToCbnResult.cc +++ b/smartag/src/model/GrantInstanceToCbnResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -GrantInstanceToCbnResult::GrantInstanceToCbnResult() : - ServiceResult() -{} - -GrantInstanceToCbnResult::GrantInstanceToCbnResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GrantInstanceToCbnResult::~GrantInstanceToCbnResult() -{} - -void GrantInstanceToCbnResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GrantInstanceToCbnResult::GrantInstanceToCbnResult() : + ServiceResult() +{} + +GrantInstanceToCbnResult::GrantInstanceToCbnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantInstanceToCbnResult::~GrantInstanceToCbnResult() +{} + +void GrantInstanceToCbnResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/GrantSagInstanceToCcnRequest.cc b/smartag/src/model/GrantSagInstanceToCcnRequest.cc new file mode 100644 index 000000000..dd670fd3e --- /dev/null +++ b/smartag/src/model/GrantSagInstanceToCcnRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::GrantSagInstanceToCcnRequest; + +GrantSagInstanceToCcnRequest::GrantSagInstanceToCcnRequest() : + RpcServiceRequest("smartag", "2018-03-13", "GrantSagInstanceToCcn") +{} + +GrantSagInstanceToCcnRequest::~GrantSagInstanceToCcnRequest() +{} + +long GrantSagInstanceToCcnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GrantSagInstanceToCcnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long GrantSagInstanceToCcnRequest::getCcnUid()const +{ + return ccnUid_; +} + +void GrantSagInstanceToCcnRequest::setCcnUid(long ccnUid) +{ + ccnUid_ = ccnUid; + setCoreParameter("CcnUid", std::to_string(ccnUid)); +} + +std::string GrantSagInstanceToCcnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GrantSagInstanceToCcnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GrantSagInstanceToCcnRequest::getRegionId()const +{ + return regionId_; +} + +void GrantSagInstanceToCcnRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GrantSagInstanceToCcnRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GrantSagInstanceToCcnRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string GrantSagInstanceToCcnRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void GrantSagInstanceToCcnRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +std::string GrantSagInstanceToCcnRequest::getCcnInstanceId()const +{ + return ccnInstanceId_; +} + +void GrantSagInstanceToCcnRequest::setCcnInstanceId(const std::string& ccnInstanceId) +{ + ccnInstanceId_ = ccnInstanceId; + setCoreParameter("CcnInstanceId", ccnInstanceId); +} + +long GrantSagInstanceToCcnRequest::getOwnerId()const +{ + return ownerId_; +} + +void GrantSagInstanceToCcnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/GrantSagInstanceToCcnResult.cc b/smartag/src/model/GrantSagInstanceToCcnResult.cc new file mode 100644 index 000000000..c4c8deb47 --- /dev/null +++ b/smartag/src/model/GrantSagInstanceToCcnResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +GrantSagInstanceToCcnResult::GrantSagInstanceToCcnResult() : + ServiceResult() +{} + +GrantSagInstanceToCcnResult::GrantSagInstanceToCcnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantSagInstanceToCcnResult::~GrantSagInstanceToCcnResult() +{} + +void GrantSagInstanceToCcnResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string GrantSagInstanceToCcnResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/smartag/src/model/KickOutClientsRequest.cc b/smartag/src/model/KickOutClientsRequest.cc index 3113df39e..21c29ba30 100644 --- a/smartag/src/model/KickOutClientsRequest.cc +++ b/smartag/src/model/KickOutClientsRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::KickOutClientsRequest; - -KickOutClientsRequest::KickOutClientsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "KickOutClients") -{} - -KickOutClientsRequest::~KickOutClientsRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::KickOutClientsRequest; + +KickOutClientsRequest::KickOutClientsRequest() : + RpcServiceRequest("smartag", "2018-03-13", "KickOutClients") +{} + +KickOutClientsRequest::~KickOutClientsRequest() +{} + long KickOutClientsRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/KickOutClientsResult.cc b/smartag/src/model/KickOutClientsResult.cc index 809ecc1bc..eb8fd6488 100644 --- a/smartag/src/model/KickOutClientsResult.cc +++ b/smartag/src/model/KickOutClientsResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -KickOutClientsResult::KickOutClientsResult() : - ServiceResult() -{} - -KickOutClientsResult::KickOutClientsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -KickOutClientsResult::~KickOutClientsResult() -{} - -void KickOutClientsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +KickOutClientsResult::KickOutClientsResult() : + ServiceResult() +{} + +KickOutClientsResult::KickOutClientsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +KickOutClientsResult::~KickOutClientsResult() +{} + +void KickOutClientsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyACLRequest.cc b/smartag/src/model/ModifyACLRequest.cc index 8e40aeb40..140fd1d0f 100644 --- a/smartag/src/model/ModifyACLRequest.cc +++ b/smartag/src/model/ModifyACLRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifyACLRequest; - -ModifyACLRequest::ModifyACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyACL") -{} - -ModifyACLRequest::~ModifyACLRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyACLRequest; + +ModifyACLRequest::ModifyACLRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyACL") +{} + +ModifyACLRequest::~ModifyACLRequest() +{} + std::string ModifyACLRequest::getAclId()const { return aclId_; diff --git a/smartag/src/model/ModifyACLResult.cc b/smartag/src/model/ModifyACLResult.cc index 234a87e51..895ec639b 100644 --- a/smartag/src/model/ModifyACLResult.cc +++ b/smartag/src/model/ModifyACLResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifyACLResult::ModifyACLResult() : - ServiceResult() -{} - -ModifyACLResult::ModifyACLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyACLResult::~ModifyACLResult() -{} - -void ModifyACLResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyACLResult::ModifyACLResult() : + ServiceResult() +{} + +ModifyACLResult::ModifyACLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyACLResult::~ModifyACLResult() +{} + +void ModifyACLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyACLRuleRequest.cc b/smartag/src/model/ModifyACLRuleRequest.cc index 5aa6f6f2b..f825525ec 100644 --- a/smartag/src/model/ModifyACLRuleRequest.cc +++ b/smartag/src/model/ModifyACLRuleRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifyACLRuleRequest; - -ModifyACLRuleRequest::ModifyACLRuleRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyACLRule") -{} - -ModifyACLRuleRequest::~ModifyACLRuleRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyACLRuleRequest; + +ModifyACLRuleRequest::ModifyACLRuleRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyACLRule") +{} + +ModifyACLRuleRequest::~ModifyACLRuleRequest() +{} + std::string ModifyACLRuleRequest::getAclId()const { return aclId_; @@ -135,6 +135,17 @@ void ModifyACLRuleRequest::setPriority(int priority) setCoreParameter("Priority", std::to_string(priority)); } +std::string ModifyACLRuleRequest::getType()const +{ + return type_; +} + +void ModifyACLRuleRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + std::string ModifyACLRuleRequest::getAcrId()const { return acrId_; diff --git a/smartag/src/model/ModifyACLRuleResult.cc b/smartag/src/model/ModifyACLRuleResult.cc index a2738a734..134a86a07 100644 --- a/smartag/src/model/ModifyACLRuleResult.cc +++ b/smartag/src/model/ModifyACLRuleResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifyACLRuleResult::ModifyACLRuleResult() : - ServiceResult() -{} - -ModifyACLRuleResult::ModifyACLRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyACLRuleResult::~ModifyACLRuleResult() -{} - -void ModifyACLRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyACLRuleResult::ModifyACLRuleResult() : + ServiceResult() +{} + +ModifyACLRuleResult::ModifyACLRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyACLRuleResult::~ModifyACLRuleResult() +{} + +void ModifyACLRuleResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["AcrId"].isNull()) acrId_ = value["AcrId"].asString(); if(!value["AclId"].isNull()) @@ -64,9 +67,9 @@ void ModifyACLRuleResult::parse(const std::string &payload) priority_ = std::stoi(value["Priority"].asString()); if(!value["GmtCreate"].isNull()) gmtCreate_ = std::stol(value["GmtCreate"].asString()); - -} - + +} + std::string ModifyACLRuleResult::getPolicy()const { return policy_; diff --git a/smartag/src/model/ModifyCloudConnectNetworkRequest.cc b/smartag/src/model/ModifyCloudConnectNetworkRequest.cc index 2e1412ebb..fa1eb53a2 100644 --- a/smartag/src/model/ModifyCloudConnectNetworkRequest.cc +++ b/smartag/src/model/ModifyCloudConnectNetworkRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifyCloudConnectNetworkRequest; - -ModifyCloudConnectNetworkRequest::ModifyCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyCloudConnectNetwork") -{} - -ModifyCloudConnectNetworkRequest::~ModifyCloudConnectNetworkRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyCloudConnectNetworkRequest; + +ModifyCloudConnectNetworkRequest::ModifyCloudConnectNetworkRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyCloudConnectNetwork") +{} + +ModifyCloudConnectNetworkRequest::~ModifyCloudConnectNetworkRequest() +{} + long ModifyCloudConnectNetworkRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -113,17 +113,6 @@ void ModifyCloudConnectNetworkRequest::setDescription(const std::string& descrip setCoreParameter("Description", description); } -std::string ModifyCloudConnectNetworkRequest::getSnatCidrBlock()const -{ - return snatCidrBlock_; -} - -void ModifyCloudConnectNetworkRequest::setSnatCidrBlock(const std::string& snatCidrBlock) -{ - snatCidrBlock_ = snatCidrBlock; - setCoreParameter("SnatCidrBlock", snatCidrBlock); -} - long ModifyCloudConnectNetworkRequest::getOwnerId()const { return ownerId_; @@ -135,3 +124,14 @@ void ModifyCloudConnectNetworkRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } +std::string ModifyCloudConnectNetworkRequest::getInterworkingStatus()const +{ + return interworkingStatus_; +} + +void ModifyCloudConnectNetworkRequest::setInterworkingStatus(const std::string& interworkingStatus) +{ + interworkingStatus_ = interworkingStatus; + setCoreParameter("InterworkingStatus", interworkingStatus); +} + diff --git a/smartag/src/model/ModifyCloudConnectNetworkResult.cc b/smartag/src/model/ModifyCloudConnectNetworkResult.cc index 698dc3a95..72627b6fd 100644 --- a/smartag/src/model/ModifyCloudConnectNetworkResult.cc +++ b/smartag/src/model/ModifyCloudConnectNetworkResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult() : - ServiceResult() -{} - -ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyCloudConnectNetworkResult::~ModifyCloudConnectNetworkResult() -{} - -void ModifyCloudConnectNetworkResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult() : + ServiceResult() +{} + +ModifyCloudConnectNetworkResult::ModifyCloudConnectNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCloudConnectNetworkResult::~ModifyCloudConnectNetworkResult() +{} + +void ModifyCloudConnectNetworkResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyFlowLogAttributeRequest.cc b/smartag/src/model/ModifyFlowLogAttributeRequest.cc new file mode 100644 index 000000000..86c9b390b --- /dev/null +++ b/smartag/src/model/ModifyFlowLogAttributeRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyFlowLogAttributeRequest; + +ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyFlowLogAttribute") +{} + +ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest() +{} + +long ModifyFlowLogAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyFlowLogAttributeRequest::getProjectName()const +{ + return projectName_; +} + +void ModifyFlowLogAttributeRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setCoreParameter("ProjectName", projectName); +} + +std::string ModifyFlowLogAttributeRequest::getLogstoreName()const +{ + return logstoreName_; +} + +void ModifyFlowLogAttributeRequest::setLogstoreName(const std::string& logstoreName) +{ + logstoreName_ = logstoreName; + setCoreParameter("LogstoreName", logstoreName); +} + +std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int ModifyFlowLogAttributeRequest::getNetflowServerPort()const +{ + return netflowServerPort_; +} + +void ModifyFlowLogAttributeRequest::setNetflowServerPort(int netflowServerPort) +{ + netflowServerPort_ = netflowServerPort; + setCoreParameter("NetflowServerPort", std::to_string(netflowServerPort)); +} + +std::string ModifyFlowLogAttributeRequest::getNetflowVersion()const +{ + return netflowVersion_; +} + +void ModifyFlowLogAttributeRequest::setNetflowVersion(const std::string& netflowVersion) +{ + netflowVersion_ = netflowVersion; + setCoreParameter("NetflowVersion", netflowVersion); +} + +std::string ModifyFlowLogAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyFlowLogAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long ModifyFlowLogAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyFlowLogAttributeRequest::getInactiveAging()const +{ + return inactiveAging_; +} + +void ModifyFlowLogAttributeRequest::setInactiveAging(int inactiveAging) +{ + inactiveAging_ = inactiveAging; + setCoreParameter("InactiveAging", std::to_string(inactiveAging)); +} + +std::string ModifyFlowLogAttributeRequest::getNetflowServerIp()const +{ + return netflowServerIp_; +} + +void ModifyFlowLogAttributeRequest::setNetflowServerIp(const std::string& netflowServerIp) +{ + netflowServerIp_ = netflowServerIp; + setCoreParameter("NetflowServerIp", netflowServerIp); +} + +std::string ModifyFlowLogAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyFlowLogAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyFlowLogAttributeRequest::getName()const +{ + return name_; +} + +void ModifyFlowLogAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string ModifyFlowLogAttributeRequest::getSlsRegionId()const +{ + return slsRegionId_; +} + +void ModifyFlowLogAttributeRequest::setSlsRegionId(const std::string& slsRegionId) +{ + slsRegionId_ = slsRegionId; + setCoreParameter("SlsRegionId", slsRegionId); +} + +int ModifyFlowLogAttributeRequest::getActiveAging()const +{ + return activeAging_; +} + +void ModifyFlowLogAttributeRequest::setActiveAging(int activeAging) +{ + activeAging_ = activeAging; + setCoreParameter("ActiveAging", std::to_string(activeAging)); +} + +std::string ModifyFlowLogAttributeRequest::getOutputType()const +{ + return outputType_; +} + +void ModifyFlowLogAttributeRequest::setOutputType(const std::string& outputType) +{ + outputType_ = outputType; + setCoreParameter("OutputType", outputType); +} + +std::string ModifyFlowLogAttributeRequest::getFlowLogId()const +{ + return flowLogId_; +} + +void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string& flowLogId) +{ + flowLogId_ = flowLogId; + setCoreParameter("FlowLogId", flowLogId); +} + diff --git a/smartag/src/model/ModifyFlowLogAttributeResult.cc b/smartag/src/model/ModifyFlowLogAttributeResult.cc new file mode 100644 index 000000000..05aa0b3d3 --- /dev/null +++ b/smartag/src/model/ModifyFlowLogAttributeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyFlowLogAttributeResult::ModifyFlowLogAttributeResult() : + ServiceResult() +{} + +ModifyFlowLogAttributeResult::ModifyFlowLogAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyFlowLogAttributeResult::~ModifyFlowLogAttributeResult() +{} + +void ModifyFlowLogAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyNetworkOptimizationRequest.cc b/smartag/src/model/ModifyNetworkOptimizationRequest.cc index b1f315ab3..dc818cbf8 100644 --- a/smartag/src/model/ModifyNetworkOptimizationRequest.cc +++ b/smartag/src/model/ModifyNetworkOptimizationRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifyNetworkOptimizationRequest; - -ModifyNetworkOptimizationRequest::ModifyNetworkOptimizationRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyNetworkOptimization") -{} - -ModifyNetworkOptimizationRequest::~ModifyNetworkOptimizationRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyNetworkOptimizationRequest; + +ModifyNetworkOptimizationRequest::ModifyNetworkOptimizationRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyNetworkOptimization") +{} + +ModifyNetworkOptimizationRequest::~ModifyNetworkOptimizationRequest() +{} + long ModifyNetworkOptimizationRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/ModifyNetworkOptimizationResult.cc b/smartag/src/model/ModifyNetworkOptimizationResult.cc index 0433d74a9..512f59331 100644 --- a/smartag/src/model/ModifyNetworkOptimizationResult.cc +++ b/smartag/src/model/ModifyNetworkOptimizationResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult() : - ServiceResult() -{} - -ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyNetworkOptimizationResult::~ModifyNetworkOptimizationResult() -{} - -void ModifyNetworkOptimizationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult() : + ServiceResult() +{} + +ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNetworkOptimizationResult::~ModifyNetworkOptimizationResult() +{} + +void ModifyNetworkOptimizationResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyQosCarRequest.cc b/smartag/src/model/ModifyQosCarRequest.cc new file mode 100644 index 000000000..196315d08 --- /dev/null +++ b/smartag/src/model/ModifyQosCarRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyQosCarRequest; + +ModifyQosCarRequest::ModifyQosCarRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyQosCar") +{} + +ModifyQosCarRequest::~ModifyQosCarRequest() +{} + +int ModifyQosCarRequest::getMaxBandwidthAbs()const +{ + return maxBandwidthAbs_; +} + +void ModifyQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs) +{ + maxBandwidthAbs_ = maxBandwidthAbs; + setCoreParameter("MaxBandwidthAbs", std::to_string(maxBandwidthAbs)); +} + +long ModifyQosCarRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyQosCarRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyQosCarRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int ModifyQosCarRequest::getMinBandwidthAbs()const +{ + return minBandwidthAbs_; +} + +void ModifyQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs) +{ + minBandwidthAbs_ = minBandwidthAbs; + setCoreParameter("MinBandwidthAbs", std::to_string(minBandwidthAbs)); +} + +int ModifyQosCarRequest::getMaxBandwidthPercent()const +{ + return maxBandwidthPercent_; +} + +void ModifyQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent) +{ + maxBandwidthPercent_ = maxBandwidthPercent; + setCoreParameter("MaxBandwidthPercent", std::to_string(maxBandwidthPercent)); +} + +std::string ModifyQosCarRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyQosCarRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyQosCarRequest::getDescription()const +{ + return description_; +} + +void ModifyQosCarRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long ModifyQosCarRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyQosCarRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyQosCarRequest::getQosCarId()const +{ + return qosCarId_; +} + +void ModifyQosCarRequest::setQosCarId(const std::string& qosCarId) +{ + qosCarId_ = qosCarId; + setCoreParameter("QosCarId", qosCarId); +} + +int ModifyQosCarRequest::getPriority()const +{ + return priority_; +} + +void ModifyQosCarRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +int ModifyQosCarRequest::getMinBandwidthPercent()const +{ + return minBandwidthPercent_; +} + +void ModifyQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent) +{ + minBandwidthPercent_ = minBandwidthPercent; + setCoreParameter("MinBandwidthPercent", std::to_string(minBandwidthPercent)); +} + +std::string ModifyQosCarRequest::getLimitType()const +{ + return limitType_; +} + +void ModifyQosCarRequest::setLimitType(const std::string& limitType) +{ + limitType_ = limitType; + setCoreParameter("LimitType", limitType); +} + +std::string ModifyQosCarRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyQosCarRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyQosCarRequest::getPercentSourceType()const +{ + return percentSourceType_; +} + +void ModifyQosCarRequest::setPercentSourceType(const std::string& percentSourceType) +{ + percentSourceType_ = percentSourceType; + setCoreParameter("PercentSourceType", percentSourceType); +} + +std::string ModifyQosCarRequest::getQosId()const +{ + return qosId_; +} + +void ModifyQosCarRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/ModifyQosCarResult.cc b/smartag/src/model/ModifyQosCarResult.cc new file mode 100644 index 000000000..0ef5cd349 --- /dev/null +++ b/smartag/src/model/ModifyQosCarResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyQosCarResult::ModifyQosCarResult() : + ServiceResult() +{} + +ModifyQosCarResult::ModifyQosCarResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyQosCarResult::~ModifyQosCarResult() +{} + +void ModifyQosCarResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyQosPolicyRequest.cc b/smartag/src/model/ModifyQosPolicyRequest.cc new file mode 100644 index 000000000..9f429ed6c --- /dev/null +++ b/smartag/src/model/ModifyQosPolicyRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifyQosPolicyRequest; + +ModifyQosPolicyRequest::ModifyQosPolicyRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyQosPolicy") +{} + +ModifyQosPolicyRequest::~ModifyQosPolicyRequest() +{} + +long ModifyQosPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyQosPolicyRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void ModifyQosPolicyRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setCoreParameter("SourcePortRange", sourcePortRange); +} + +std::string ModifyQosPolicyRequest::getQosPolicyId()const +{ + return qosPolicyId_; +} + +void ModifyQosPolicyRequest::setQosPolicyId(const std::string& qosPolicyId) +{ + qosPolicyId_ = qosPolicyId; + setCoreParameter("QosPolicyId", qosPolicyId); +} + +std::string ModifyQosPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyQosPolicyRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void ModifyQosPolicyRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setCoreParameter("IpProtocol", ipProtocol); +} + +std::string ModifyQosPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyQosPolicyRequest::getSourceCidr()const +{ + return sourceCidr_; +} + +void ModifyQosPolicyRequest::setSourceCidr(const std::string& sourceCidr) +{ + sourceCidr_ = sourceCidr; + setCoreParameter("SourceCidr", sourceCidr); +} + +std::string ModifyQosPolicyRequest::getEndTime()const +{ + return endTime_; +} + +void ModifyQosPolicyRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string ModifyQosPolicyRequest::getDescription()const +{ + return description_; +} + +void ModifyQosPolicyRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string ModifyQosPolicyRequest::getStartTime()const +{ + return startTime_; +} + +void ModifyQosPolicyRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long ModifyQosPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyQosPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyQosPolicyRequest::getPriority()const +{ + return priority_; +} + +void ModifyQosPolicyRequest::setPriority(int priority) +{ + priority_ = priority; + setCoreParameter("Priority", std::to_string(priority)); +} + +std::string ModifyQosPolicyRequest::getDestCidr()const +{ + return destCidr_; +} + +void ModifyQosPolicyRequest::setDestCidr(const std::string& destCidr) +{ + destCidr_ = destCidr; + setCoreParameter("DestCidr", destCidr); +} + +std::string ModifyQosPolicyRequest::getDestPortRange()const +{ + return destPortRange_; +} + +void ModifyQosPolicyRequest::setDestPortRange(const std::string& destPortRange) +{ + destPortRange_ = destPortRange; + setCoreParameter("DestPortRange", destPortRange); +} + +std::string ModifyQosPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyQosPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyQosPolicyRequest::getQosId()const +{ + return qosId_; +} + +void ModifyQosPolicyRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/ModifyQosPolicyResult.cc b/smartag/src/model/ModifyQosPolicyResult.cc new file mode 100644 index 000000000..6a9813edb --- /dev/null +++ b/smartag/src/model/ModifyQosPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyQosPolicyResult::ModifyQosPolicyResult() : + ServiceResult() +{} + +ModifyQosPolicyResult::ModifyQosPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyQosPolicyResult::~ModifyQosPolicyResult() +{} + +void ModifyQosPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifyQosRequest.cc b/smartag/src/model/ModifyQosRequest.cc new file mode 100644 index 000000000..1e8c51e17 --- /dev/null +++ b/smartag/src/model/ModifyQosRequest.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 + +using AlibabaCloud::Smartag::Model::ModifyQosRequest; + +ModifyQosRequest::ModifyQosRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifyQos") +{} + +ModifyQosRequest::~ModifyQosRequest() +{} + +long ModifyQosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyQosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyQosRequest::getQosName()const +{ + return qosName_; +} + +void ModifyQosRequest::setQosName(const std::string& qosName) +{ + qosName_ = qosName; + setCoreParameter("QosName", qosName); +} + +std::string ModifyQosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyQosRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyQosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyQosRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyQosRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ModifyQosRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyQosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyQosRequest::getQosId()const +{ + return qosId_; +} + +void ModifyQosRequest::setQosId(const std::string& qosId) +{ + qosId_ = qosId; + setCoreParameter("QosId", qosId); +} + diff --git a/smartag/src/model/ModifyQosResult.cc b/smartag/src/model/ModifyQosResult.cc new file mode 100644 index 000000000..7a6f4d3c2 --- /dev/null +++ b/smartag/src/model/ModifyQosResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifyQosResult::ModifyQosResult() : + ServiceResult() +{} + +ModifyQosResult::ModifyQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyQosResult::~ModifyQosResult() +{} + +void ModifyQosResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifySagRemoteAccessRequest.cc b/smartag/src/model/ModifySagRemoteAccessRequest.cc new file mode 100644 index 000000000..6994e71c4 --- /dev/null +++ b/smartag/src/model/ModifySagRemoteAccessRequest.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 + +using AlibabaCloud::Smartag::Model::ModifySagRemoteAccessRequest; + +ModifySagRemoteAccessRequest::ModifySagRemoteAccessRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySagRemoteAccess") +{} + +ModifySagRemoteAccessRequest::~ModifySagRemoteAccessRequest() +{} + +long ModifySagRemoteAccessRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySagRemoteAccessRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySagRemoteAccessRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ModifySagRemoteAccessRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setCoreParameter("SerialNumber", serialNumber); +} + +std::string ModifySagRemoteAccessRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySagRemoteAccessRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySagRemoteAccessRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySagRemoteAccessRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySagRemoteAccessRequest::getRemoteAccessIp()const +{ + return remoteAccessIp_; +} + +void ModifySagRemoteAccessRequest::setRemoteAccessIp(const std::string& remoteAccessIp) +{ + remoteAccessIp_ = remoteAccessIp; + setCoreParameter("RemoteAccessIp", remoteAccessIp); +} + +std::string ModifySagRemoteAccessRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ModifySagRemoteAccessRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long ModifySagRemoteAccessRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySagRemoteAccessRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/ModifySagRemoteAccessResult.cc b/smartag/src/model/ModifySagRemoteAccessResult.cc new file mode 100644 index 000000000..b67e3195a --- /dev/null +++ b/smartag/src/model/ModifySagRemoteAccessResult.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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySagRemoteAccessResult::ModifySagRemoteAccessResult() : + ServiceResult() +{} + +ModifySagRemoteAccessResult::ModifySagRemoteAccessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySagRemoteAccessResult::~ModifySagRemoteAccessResult() +{} + +void ModifySagRemoteAccessResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + if(!value["RemoteAccessIp"].isNull()) + remoteAccessIp_ = value["RemoteAccessIp"].asString(); + +} + +std::string ModifySagRemoteAccessResult::getMessage()const +{ + return message_; +} + +std::string ModifySagRemoteAccessResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string ModifySagRemoteAccessResult::getRemoteAccessIp()const +{ + return remoteAccessIp_; +} + +std::string ModifySagRemoteAccessResult::getCode()const +{ + return code_; +} + +bool ModifySagRemoteAccessResult::getSuccess()const +{ + return success_; +} + diff --git a/smartag/src/model/ModifySerialNumberRequest.cc b/smartag/src/model/ModifySerialNumberRequest.cc index fc339ae52..dcd8c5221 100644 --- a/smartag/src/model/ModifySerialNumberRequest.cc +++ b/smartag/src/model/ModifySerialNumberRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifySerialNumberRequest; - -ModifySerialNumberRequest::ModifySerialNumberRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySerialNumber") -{} - -ModifySerialNumberRequest::~ModifySerialNumberRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifySerialNumberRequest; + +ModifySerialNumberRequest::ModifySerialNumberRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySerialNumber") +{} + +ModifySerialNumberRequest::~ModifySerialNumberRequest() +{} + long ModifySerialNumberRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/ModifySerialNumberResult.cc b/smartag/src/model/ModifySerialNumberResult.cc index 04bcad212..8eee620f8 100644 --- a/smartag/src/model/ModifySerialNumberResult.cc +++ b/smartag/src/model/ModifySerialNumberResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifySerialNumberResult::ModifySerialNumberResult() : - ServiceResult() -{} - -ModifySerialNumberResult::ModifySerialNumberResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySerialNumberResult::~ModifySerialNumberResult() -{} - -void ModifySerialNumberResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySerialNumberResult::ModifySerialNumberResult() : + ServiceResult() +{} + +ModifySerialNumberResult::ModifySerialNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySerialNumberResult::~ModifySerialNumberResult() +{} + +void ModifySerialNumberResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc b/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc index 3ea714318..f1ab7685e 100644 --- a/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc +++ b/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifySmartAccessGatewayClientUserRequest; - -ModifySmartAccessGatewayClientUserRequest::ModifySmartAccessGatewayClientUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayClientUser") -{} - -ModifySmartAccessGatewayClientUserRequest::~ModifySmartAccessGatewayClientUserRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifySmartAccessGatewayClientUserRequest; + +ModifySmartAccessGatewayClientUserRequest::ModifySmartAccessGatewayClientUserRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayClientUser") +{} + +ModifySmartAccessGatewayClientUserRequest::~ModifySmartAccessGatewayClientUserRequest() +{} + long ModifySmartAccessGatewayClientUserRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc b/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc index 5eaa1d75f..12d9e4e21 100644 --- a/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc +++ b/smartag/src/model/ModifySmartAccessGatewayClientUserResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifySmartAccessGatewayClientUserResult::ModifySmartAccessGatewayClientUserResult() : - ServiceResult() -{} - -ModifySmartAccessGatewayClientUserResult::ModifySmartAccessGatewayClientUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySmartAccessGatewayClientUserResult::~ModifySmartAccessGatewayClientUserResult() -{} - -void ModifySmartAccessGatewayClientUserResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySmartAccessGatewayClientUserResult::ModifySmartAccessGatewayClientUserResult() : + ServiceResult() +{} + +ModifySmartAccessGatewayClientUserResult::ModifySmartAccessGatewayClientUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySmartAccessGatewayClientUserResult::~ModifySmartAccessGatewayClientUserResult() +{} + +void ModifySmartAccessGatewayClientUserResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["ClientIp"].isNull()) clientIp_ = value["ClientIp"].asString(); if(!value["UserMail"].isNull()) @@ -48,9 +51,9 @@ void ModifySmartAccessGatewayClientUserResult::parse(const std::string &payload) userName_ = value["UserName"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); - -} - + +} + std::string ModifySmartAccessGatewayClientUserResult::getUserName()const { return userName_; diff --git a/smartag/src/model/ModifySmartAccessGatewayRequest.cc b/smartag/src/model/ModifySmartAccessGatewayRequest.cc index 84da372d0..e3bad97b1 100644 --- a/smartag/src/model/ModifySmartAccessGatewayRequest.cc +++ b/smartag/src/model/ModifySmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ModifySmartAccessGatewayRequest; - -ModifySmartAccessGatewayRequest::ModifySmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGateway") -{} - -ModifySmartAccessGatewayRequest::~ModifySmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifySmartAccessGatewayRequest; + +ModifySmartAccessGatewayRequest::ModifySmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGateway") +{} + +ModifySmartAccessGatewayRequest::~ModifySmartAccessGatewayRequest() +{} + std::vector ModifySmartAccessGatewayRequest::getSnatEntries()const { return snatEntries_; @@ -119,6 +119,17 @@ void ModifySmartAccessGatewayRequest::setSecurityLockThreshold(int securityLockT setCoreParameter("SecurityLockThreshold", std::to_string(securityLockThreshold)); } +std::string ModifySmartAccessGatewayRequest::getRoutingStrategy()const +{ + return routingStrategy_; +} + +void ModifySmartAccessGatewayRequest::setRoutingStrategy(const std::string& routingStrategy) +{ + routingStrategy_ = routingStrategy; + setCoreParameter("RoutingStrategy", routingStrategy); +} + std::string ModifySmartAccessGatewayRequest::getRegionId()const { return regionId_; diff --git a/smartag/src/model/ModifySmartAccessGatewayResult.cc b/smartag/src/model/ModifySmartAccessGatewayResult.cc index 196a52b86..876b66eea 100644 --- a/smartag/src/model/ModifySmartAccessGatewayResult.cc +++ b/smartag/src/model/ModifySmartAccessGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult() : - ServiceResult() -{} - -ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySmartAccessGatewayResult::~ModifySmartAccessGatewayResult() -{} - -void ModifySmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult() : + ServiceResult() +{} + +ModifySmartAccessGatewayResult::ModifySmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySmartAccessGatewayResult::~ModifySmartAccessGatewayResult() +{} + +void ModifySmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc b/smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc new file mode 100644 index 000000000..7bae40ead --- /dev/null +++ b/smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ModifySmartAccessGatewayUpBandwidthRequest; + +ModifySmartAccessGatewayUpBandwidthRequest::ModifySmartAccessGatewayUpBandwidthRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayUpBandwidth") +{} + +ModifySmartAccessGatewayUpBandwidthRequest::~ModifySmartAccessGatewayUpBandwidthRequest() +{} + +long ModifySmartAccessGatewayUpBandwidthRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySmartAccessGatewayUpBandwidthRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySmartAccessGatewayUpBandwidthRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifySmartAccessGatewayUpBandwidthRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int ModifySmartAccessGatewayUpBandwidthRequest::getUpBandwidth4G()const +{ + return upBandwidth4G_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setUpBandwidth4G(int upBandwidth4G) +{ + upBandwidth4G_ = upBandwidth4G; + setCoreParameter("UpBandwidth4G", std::to_string(upBandwidth4G)); +} + +std::string ModifySmartAccessGatewayUpBandwidthRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +int ModifySmartAccessGatewayUpBandwidthRequest::getUpBandwidthWan()const +{ + return upBandwidthWan_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setUpBandwidthWan(int upBandwidthWan) +{ + upBandwidthWan_ = upBandwidthWan; + setCoreParameter("UpBandwidthWan", std::to_string(upBandwidthWan)); +} + +long ModifySmartAccessGatewayUpBandwidthRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/ModifySmartAccessGatewayUpBandwidthResult.cc b/smartag/src/model/ModifySmartAccessGatewayUpBandwidthResult.cc new file mode 100644 index 000000000..8beeadfb5 --- /dev/null +++ b/smartag/src/model/ModifySmartAccessGatewayUpBandwidthResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ModifySmartAccessGatewayUpBandwidthResult::ModifySmartAccessGatewayUpBandwidthResult() : + ServiceResult() +{} + +ModifySmartAccessGatewayUpBandwidthResult::ModifySmartAccessGatewayUpBandwidthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySmartAccessGatewayUpBandwidthResult::~ModifySmartAccessGatewayUpBandwidthResult() +{} + +void ModifySmartAccessGatewayUpBandwidthResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/RebootSmartAccessGatewayRequest.cc b/smartag/src/model/RebootSmartAccessGatewayRequest.cc index 7cf4ed741..3fa940a4e 100644 --- a/smartag/src/model/RebootSmartAccessGatewayRequest.cc +++ b/smartag/src/model/RebootSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::RebootSmartAccessGatewayRequest; - -RebootSmartAccessGatewayRequest::RebootSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RebootSmartAccessGateway") -{} - -RebootSmartAccessGatewayRequest::~RebootSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::RebootSmartAccessGatewayRequest; + +RebootSmartAccessGatewayRequest::RebootSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "RebootSmartAccessGateway") +{} + +RebootSmartAccessGatewayRequest::~RebootSmartAccessGatewayRequest() +{} + long RebootSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/RebootSmartAccessGatewayResult.cc b/smartag/src/model/RebootSmartAccessGatewayResult.cc index e33e76256..be9d97abb 100644 --- a/smartag/src/model/RebootSmartAccessGatewayResult.cc +++ b/smartag/src/model/RebootSmartAccessGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult() : - ServiceResult() -{} - -RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RebootSmartAccessGatewayResult::~RebootSmartAccessGatewayResult() -{} - -void RebootSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult() : + ServiceResult() +{} + +RebootSmartAccessGatewayResult::RebootSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RebootSmartAccessGatewayResult::~RebootSmartAccessGatewayResult() +{} + +void RebootSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc index 5c92ab511..6c2061a05 100644 --- a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc +++ b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::ResetSmartAccessGatewayClientUserPasswordRequest; - -ResetSmartAccessGatewayClientUserPasswordRequest::ResetSmartAccessGatewayClientUserPasswordRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ResetSmartAccessGatewayClientUserPassword") -{} - -ResetSmartAccessGatewayClientUserPasswordRequest::~ResetSmartAccessGatewayClientUserPasswordRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::ResetSmartAccessGatewayClientUserPasswordRequest; + +ResetSmartAccessGatewayClientUserPasswordRequest::ResetSmartAccessGatewayClientUserPasswordRequest() : + RpcServiceRequest("smartag", "2018-03-13", "ResetSmartAccessGatewayClientUserPassword") +{} + +ResetSmartAccessGatewayClientUserPasswordRequest::~ResetSmartAccessGatewayClientUserPasswordRequest() +{} + long ResetSmartAccessGatewayClientUserPasswordRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordResult.cc b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordResult.cc index 9fbadac95..29ec91204 100644 --- a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordResult.cc +++ b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ResetSmartAccessGatewayClientUserPasswordResult::ResetSmartAccessGatewayClientUserPasswordResult() : - ServiceResult() -{} - -ResetSmartAccessGatewayClientUserPasswordResult::ResetSmartAccessGatewayClientUserPasswordResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetSmartAccessGatewayClientUserPasswordResult::~ResetSmartAccessGatewayClientUserPasswordResult() -{} - -void ResetSmartAccessGatewayClientUserPasswordResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +ResetSmartAccessGatewayClientUserPasswordResult::ResetSmartAccessGatewayClientUserPasswordResult() : + ServiceResult() +{} + +ResetSmartAccessGatewayClientUserPasswordResult::ResetSmartAccessGatewayClientUserPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetSmartAccessGatewayClientUserPasswordResult::~ResetSmartAccessGatewayClientUserPasswordResult() +{} + +void ResetSmartAccessGatewayClientUserPasswordResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/RevokeInstanceFromCbnRequest.cc b/smartag/src/model/RevokeInstanceFromCbnRequest.cc index d0812464e..e03e432cd 100644 --- a/smartag/src/model/RevokeInstanceFromCbnRequest.cc +++ b/smartag/src/model/RevokeInstanceFromCbnRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::RevokeInstanceFromCbnRequest; - -RevokeInstanceFromCbnRequest::RevokeInstanceFromCbnRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RevokeInstanceFromCbn") -{} - -RevokeInstanceFromCbnRequest::~RevokeInstanceFromCbnRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::RevokeInstanceFromCbnRequest; + +RevokeInstanceFromCbnRequest::RevokeInstanceFromCbnRequest() : + RpcServiceRequest("smartag", "2018-03-13", "RevokeInstanceFromCbn") +{} + +RevokeInstanceFromCbnRequest::~RevokeInstanceFromCbnRequest() +{} + long RevokeInstanceFromCbnRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/RevokeInstanceFromCbnResult.cc b/smartag/src/model/RevokeInstanceFromCbnResult.cc index 9f0dcec9f..76543e9d2 100644 --- a/smartag/src/model/RevokeInstanceFromCbnResult.cc +++ b/smartag/src/model/RevokeInstanceFromCbnResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult() : - ServiceResult() -{} - -RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevokeInstanceFromCbnResult::~RevokeInstanceFromCbnResult() -{} - -void RevokeInstanceFromCbnResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult() : + ServiceResult() +{} + +RevokeInstanceFromCbnResult::RevokeInstanceFromCbnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeInstanceFromCbnResult::~RevokeInstanceFromCbnResult() +{} + +void RevokeInstanceFromCbnResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/RevokeSagInstanceFromCcnRequest.cc b/smartag/src/model/RevokeSagInstanceFromCcnRequest.cc new file mode 100644 index 000000000..96f644311 --- /dev/null +++ b/smartag/src/model/RevokeSagInstanceFromCcnRequest.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 + +using AlibabaCloud::Smartag::Model::RevokeSagInstanceFromCcnRequest; + +RevokeSagInstanceFromCcnRequest::RevokeSagInstanceFromCcnRequest() : + RpcServiceRequest("smartag", "2018-03-13", "RevokeSagInstanceFromCcn") +{} + +RevokeSagInstanceFromCcnRequest::~RevokeSagInstanceFromCcnRequest() +{} + +long RevokeSagInstanceFromCcnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RevokeSagInstanceFromCcnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RevokeSagInstanceFromCcnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RevokeSagInstanceFromCcnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RevokeSagInstanceFromCcnRequest::getRegionId()const +{ + return regionId_; +} + +void RevokeSagInstanceFromCcnRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RevokeSagInstanceFromCcnRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RevokeSagInstanceFromCcnRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string RevokeSagInstanceFromCcnRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void RevokeSagInstanceFromCcnRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +std::string RevokeSagInstanceFromCcnRequest::getCcnInstanceId()const +{ + return ccnInstanceId_; +} + +void RevokeSagInstanceFromCcnRequest::setCcnInstanceId(const std::string& ccnInstanceId) +{ + ccnInstanceId_ = ccnInstanceId; + setCoreParameter("CcnInstanceId", ccnInstanceId); +} + +long RevokeSagInstanceFromCcnRequest::getOwnerId()const +{ + return ownerId_; +} + +void RevokeSagInstanceFromCcnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/smartag/src/model/RevokeSagInstanceFromCcnResult.cc b/smartag/src/model/RevokeSagInstanceFromCcnResult.cc new file mode 100644 index 000000000..80585c106 --- /dev/null +++ b/smartag/src/model/RevokeSagInstanceFromCcnResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +RevokeSagInstanceFromCcnResult::RevokeSagInstanceFromCcnResult() : + ServiceResult() +{} + +RevokeSagInstanceFromCcnResult::RevokeSagInstanceFromCcnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeSagInstanceFromCcnResult::~RevokeSagInstanceFromCcnResult() +{} + +void RevokeSagInstanceFromCcnResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/SetSagRouteableAddressRequest.cc b/smartag/src/model/SetSagRouteableAddressRequest.cc index 65b948a8b..ca23d9f3d 100644 --- a/smartag/src/model/SetSagRouteableAddressRequest.cc +++ b/smartag/src/model/SetSagRouteableAddressRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::SetSagRouteableAddressRequest; - -SetSagRouteableAddressRequest::SetSagRouteableAddressRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SetSagRouteableAddress") -{} - -SetSagRouteableAddressRequest::~SetSagRouteableAddressRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::SetSagRouteableAddressRequest; + +SetSagRouteableAddressRequest::SetSagRouteableAddressRequest() : + RpcServiceRequest("smartag", "2018-03-13", "SetSagRouteableAddress") +{} + +SetSagRouteableAddressRequest::~SetSagRouteableAddressRequest() +{} + std::string SetSagRouteableAddressRequest::getAccess_key_id()const { return access_key_id_; diff --git a/smartag/src/model/SetSagRouteableAddressResult.cc b/smartag/src/model/SetSagRouteableAddressResult.cc index 029ab8367..234b3a4e7 100644 --- a/smartag/src/model/SetSagRouteableAddressResult.cc +++ b/smartag/src/model/SetSagRouteableAddressResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -SetSagRouteableAddressResult::SetSagRouteableAddressResult() : - ServiceResult() -{} - -SetSagRouteableAddressResult::SetSagRouteableAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetSagRouteableAddressResult::~SetSagRouteableAddressResult() -{} - -void SetSagRouteableAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +SetSagRouteableAddressResult::SetSagRouteableAddressResult() : + ServiceResult() +{} + +SetSagRouteableAddressResult::SetSagRouteableAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetSagRouteableAddressResult::~SetSagRouteableAddressResult() +{} + +void SetSagRouteableAddressResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/SwitchCloudBoxHaStateRequest.cc b/smartag/src/model/SwitchCloudBoxHaStateRequest.cc index ad9b6c0f6..9e3e3da51 100644 --- a/smartag/src/model/SwitchCloudBoxHaStateRequest.cc +++ b/smartag/src/model/SwitchCloudBoxHaStateRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::SwitchCloudBoxHaStateRequest; - -SwitchCloudBoxHaStateRequest::SwitchCloudBoxHaStateRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SwitchCloudBoxHaState") -{} - -SwitchCloudBoxHaStateRequest::~SwitchCloudBoxHaStateRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::SwitchCloudBoxHaStateRequest; + +SwitchCloudBoxHaStateRequest::SwitchCloudBoxHaStateRequest() : + RpcServiceRequest("smartag", "2018-03-13", "SwitchCloudBoxHaState") +{} + +SwitchCloudBoxHaStateRequest::~SwitchCloudBoxHaStateRequest() +{} + long SwitchCloudBoxHaStateRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/SwitchCloudBoxHaStateResult.cc b/smartag/src/model/SwitchCloudBoxHaStateResult.cc index da745e468..e7835575c 100644 --- a/smartag/src/model/SwitchCloudBoxHaStateResult.cc +++ b/smartag/src/model/SwitchCloudBoxHaStateResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult() : - ServiceResult() -{} - -SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchCloudBoxHaStateResult::~SwitchCloudBoxHaStateResult() -{} - -void SwitchCloudBoxHaStateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult() : + ServiceResult() +{} + +SwitchCloudBoxHaStateResult::SwitchCloudBoxHaStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchCloudBoxHaStateResult::~SwitchCloudBoxHaStateResult() +{} + +void SwitchCloudBoxHaStateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/SwitchSAGHaStateRequest.cc b/smartag/src/model/SwitchSAGHaStateRequest.cc index 42ade4304..89c4307e4 100644 --- a/smartag/src/model/SwitchSAGHaStateRequest.cc +++ b/smartag/src/model/SwitchSAGHaStateRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::SwitchSAGHaStateRequest; - -SwitchSAGHaStateRequest::SwitchSAGHaStateRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SwitchSAGHaState") -{} - -SwitchSAGHaStateRequest::~SwitchSAGHaStateRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::SwitchSAGHaStateRequest; + +SwitchSAGHaStateRequest::SwitchSAGHaStateRequest() : + RpcServiceRequest("smartag", "2018-03-13", "SwitchSAGHaState") +{} + +SwitchSAGHaStateRequest::~SwitchSAGHaStateRequest() +{} + long SwitchSAGHaStateRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/SwitchSAGHaStateResult.cc b/smartag/src/model/SwitchSAGHaStateResult.cc index 2c5aa42f0..1856d6845 100644 --- a/smartag/src/model/SwitchSAGHaStateResult.cc +++ b/smartag/src/model/SwitchSAGHaStateResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -SwitchSAGHaStateResult::SwitchSAGHaStateResult() : - ServiceResult() -{} - -SwitchSAGHaStateResult::SwitchSAGHaStateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchSAGHaStateResult::~SwitchSAGHaStateResult() -{} - -void SwitchSAGHaStateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +SwitchSAGHaStateResult::SwitchSAGHaStateResult() : + ServiceResult() +{} + +SwitchSAGHaStateResult::SwitchSAGHaStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchSAGHaStateResult::~SwitchSAGHaStateResult() +{} + +void SwitchSAGHaStateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UnbindSmartAccessGatewayRequest.cc b/smartag/src/model/UnbindSmartAccessGatewayRequest.cc index 980f0579f..0a9bc0214 100644 --- a/smartag/src/model/UnbindSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UnbindSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::UnbindSmartAccessGatewayRequest; - -UnbindSmartAccessGatewayRequest::UnbindSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnbindSmartAccessGateway") -{} - -UnbindSmartAccessGatewayRequest::~UnbindSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnbindSmartAccessGatewayRequest; + +UnbindSmartAccessGatewayRequest::UnbindSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnbindSmartAccessGateway") +{} + +UnbindSmartAccessGatewayRequest::~UnbindSmartAccessGatewayRequest() +{} + long UnbindSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -36,6 +36,17 @@ void UnbindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +long UnbindSmartAccessGatewayRequest::getSmartAGUid()const +{ + return smartAGUid_; +} + +void UnbindSmartAccessGatewayRequest::setSmartAGUid(long smartAGUid) +{ + smartAGUid_ = smartAGUid; + setCoreParameter("SmartAGUid", std::to_string(smartAGUid)); +} + std::string UnbindSmartAccessGatewayRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/smartag/src/model/UnbindSmartAccessGatewayResult.cc b/smartag/src/model/UnbindSmartAccessGatewayResult.cc index 1592a2c4d..8ff03a2c6 100644 --- a/smartag/src/model/UnbindSmartAccessGatewayResult.cc +++ b/smartag/src/model/UnbindSmartAccessGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult() : - ServiceResult() -{} - -UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnbindSmartAccessGatewayResult::~UnbindSmartAccessGatewayResult() -{} - -void UnbindSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult() : + ServiceResult() +{} + +UnbindSmartAccessGatewayResult::UnbindSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindSmartAccessGatewayResult::~UnbindSmartAccessGatewayResult() +{} + +void UnbindSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UnbindVbrRequest.cc b/smartag/src/model/UnbindVbrRequest.cc new file mode 100644 index 000000000..79f59ff1d --- /dev/null +++ b/smartag/src/model/UnbindVbrRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnbindVbrRequest; + +UnbindVbrRequest::UnbindVbrRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnbindVbr") +{} + +UnbindVbrRequest::~UnbindVbrRequest() +{} + +long UnbindVbrRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnbindVbrRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnbindVbrRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnbindVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnbindVbrRequest::getRegionId()const +{ + return regionId_; +} + +void UnbindVbrRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UnbindVbrRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnbindVbrRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string UnbindVbrRequest::getSmartAGId()const +{ + return smartAGId_; +} + +void UnbindVbrRequest::setSmartAGId(const std::string& smartAGId) +{ + smartAGId_ = smartAGId; + setCoreParameter("SmartAGId", smartAGId); +} + +long UnbindVbrRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnbindVbrRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UnbindVbrRequest::getVbrId()const +{ + return vbrId_; +} + +void UnbindVbrRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setCoreParameter("VbrId", vbrId); +} + +std::string UnbindVbrRequest::getVbrRegionId()const +{ + return vbrRegionId_; +} + +void UnbindVbrRequest::setVbrRegionId(const std::string& vbrRegionId) +{ + vbrRegionId_ = vbrRegionId; + setCoreParameter("VbrRegionId", vbrRegionId); +} + diff --git a/smartag/src/model/UnbindVbrResult.cc b/smartag/src/model/UnbindVbrResult.cc new file mode 100644 index 000000000..b8def8cc5 --- /dev/null +++ b/smartag/src/model/UnbindVbrResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnbindVbrResult::UnbindVbrResult() : + ServiceResult() +{} + +UnbindVbrResult::UnbindVbrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindVbrResult::~UnbindVbrResult() +{} + +void UnbindVbrResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UnicomOrderConfirmRequest.cc b/smartag/src/model/UnicomOrderConfirmRequest.cc index 664503c5b..28d871ee1 100644 --- a/smartag/src/model/UnicomOrderConfirmRequest.cc +++ b/smartag/src/model/UnicomOrderConfirmRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::UnicomOrderConfirmRequest; - -UnicomOrderConfirmRequest::UnicomOrderConfirmRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnicomOrderConfirm") -{} - -UnicomOrderConfirmRequest::~UnicomOrderConfirmRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnicomOrderConfirmRequest; + +UnicomOrderConfirmRequest::UnicomOrderConfirmRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnicomOrderConfirm") +{} + +UnicomOrderConfirmRequest::~UnicomOrderConfirmRequest() +{} + std::string UnicomOrderConfirmRequest::getTmsCode()const { return tmsCode_; diff --git a/smartag/src/model/UnicomOrderConfirmResult.cc b/smartag/src/model/UnicomOrderConfirmResult.cc index e002f2b84..2f3f56523 100644 --- a/smartag/src/model/UnicomOrderConfirmResult.cc +++ b/smartag/src/model/UnicomOrderConfirmResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnicomOrderConfirmResult::UnicomOrderConfirmResult() : - ServiceResult() -{} - -UnicomOrderConfirmResult::UnicomOrderConfirmResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnicomOrderConfirmResult::~UnicomOrderConfirmResult() -{} - -void UnicomOrderConfirmResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnicomOrderConfirmResult::UnicomOrderConfirmResult() : + ServiceResult() +{} + +UnicomOrderConfirmResult::UnicomOrderConfirmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnicomOrderConfirmResult::~UnicomOrderConfirmResult() +{} + +void UnicomOrderConfirmResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - -} - + +} + std::string UnicomOrderConfirmResult::getMessage()const { return message_; diff --git a/smartag/src/model/UnicomSignConfirmRequest.cc b/smartag/src/model/UnicomSignConfirmRequest.cc index eea63d61b..23bf15102 100644 --- a/smartag/src/model/UnicomSignConfirmRequest.cc +++ b/smartag/src/model/UnicomSignConfirmRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::UnicomSignConfirmRequest; - -UnicomSignConfirmRequest::UnicomSignConfirmRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnicomSignConfirm") -{} - -UnicomSignConfirmRequest::~UnicomSignConfirmRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnicomSignConfirmRequest; + +UnicomSignConfirmRequest::UnicomSignConfirmRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnicomSignConfirm") +{} + +UnicomSignConfirmRequest::~UnicomSignConfirmRequest() +{} + long UnicomSignConfirmRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/UnicomSignConfirmResult.cc b/smartag/src/model/UnicomSignConfirmResult.cc index 6c38d6516..abff2bcfc 100644 --- a/smartag/src/model/UnicomSignConfirmResult.cc +++ b/smartag/src/model/UnicomSignConfirmResult.cc @@ -1,54 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnicomSignConfirmResult::UnicomSignConfirmResult() : - ServiceResult() -{} - -UnicomSignConfirmResult::UnicomSignConfirmResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnicomSignConfirmResult::~UnicomSignConfirmResult() -{} - -void UnicomSignConfirmResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnicomSignConfirmResult::UnicomSignConfirmResult() : + ServiceResult() +{} + +UnicomSignConfirmResult::UnicomSignConfirmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnicomSignConfirmResult::~UnicomSignConfirmResult() +{} + +void UnicomSignConfirmResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - -} - + +} + std::string UnicomSignConfirmResult::getMessage()const { return message_; diff --git a/smartag/src/model/UnlockSmartAccessGatewayRequest.cc b/smartag/src/model/UnlockSmartAccessGatewayRequest.cc index 0e37bcbbd..7e6cf3186 100644 --- a/smartag/src/model/UnlockSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UnlockSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::UnlockSmartAccessGatewayRequest; - -UnlockSmartAccessGatewayRequest::UnlockSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnlockSmartAccessGateway") -{} - -UnlockSmartAccessGatewayRequest::~UnlockSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UnlockSmartAccessGatewayRequest; + +UnlockSmartAccessGatewayRequest::UnlockSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UnlockSmartAccessGateway") +{} + +UnlockSmartAccessGatewayRequest::~UnlockSmartAccessGatewayRequest() +{} + long UnlockSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/UnlockSmartAccessGatewayResult.cc b/smartag/src/model/UnlockSmartAccessGatewayResult.cc index ed25c506a..301f0d5cb 100644 --- a/smartag/src/model/UnlockSmartAccessGatewayResult.cc +++ b/smartag/src/model/UnlockSmartAccessGatewayResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult() : - ServiceResult() -{} - -UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnlockSmartAccessGatewayResult::~UnlockSmartAccessGatewayResult() -{} - -void UnlockSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult() : + ServiceResult() +{} + +UnlockSmartAccessGatewayResult::UnlockSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnlockSmartAccessGatewayResult::~UnlockSmartAccessGatewayResult() +{} + +void UnlockSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc index 4ef42f66f..d507503c2 100644 --- a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc +++ b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::UpdateSmartAccessGatewayVersionRequest; - -UpdateSmartAccessGatewayVersionRequest::UpdateSmartAccessGatewayVersionRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAccessGatewayVersion") -{} - -UpdateSmartAccessGatewayVersionRequest::~UpdateSmartAccessGatewayVersionRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UpdateSmartAccessGatewayVersionRequest; + +UpdateSmartAccessGatewayVersionRequest::UpdateSmartAccessGatewayVersionRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAccessGatewayVersion") +{} + +UpdateSmartAccessGatewayVersionRequest::~UpdateSmartAccessGatewayVersionRequest() +{} + long UpdateSmartAccessGatewayVersionRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc b/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc index c11f37cd5..6a49a71a3 100644 --- a/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc +++ b/smartag/src/model/UpdateSmartAccessGatewayVersionResult.cc @@ -1,45 +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. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult() : - ServiceResult() -{} - -UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateSmartAccessGatewayVersionResult::~UpdateSmartAccessGatewayVersionResult() -{} - -void UpdateSmartAccessGatewayVersionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); - -} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult() : + ServiceResult() +{} + +UpdateSmartAccessGatewayVersionResult::UpdateSmartAccessGatewayVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSmartAccessGatewayVersionResult::~UpdateSmartAccessGatewayVersionResult() +{} + +void UpdateSmartAccessGatewayVersionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc b/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc index c33d7200e..22b10da7a 100644 --- a/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc @@ -1,30 +1,30 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Smartag::Model::UpgradeSmartAccessGatewayRequest; - -UpgradeSmartAccessGatewayRequest::UpgradeSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpgradeSmartAccessGateway") -{} - -UpgradeSmartAccessGatewayRequest::~UpgradeSmartAccessGatewayRequest() -{} - +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag::Model::UpgradeSmartAccessGatewayRequest; + +UpgradeSmartAccessGatewayRequest::UpgradeSmartAccessGatewayRequest() : + RpcServiceRequest("smartag", "2018-03-13", "UpgradeSmartAccessGateway") +{} + +UpgradeSmartAccessGatewayRequest::~UpgradeSmartAccessGatewayRequest() +{} + long UpgradeSmartAccessGatewayRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/smartag/src/model/UpgradeSmartAccessGatewayResult.cc b/smartag/src/model/UpgradeSmartAccessGatewayResult.cc index 8d88a1f7d..d37bf3e2d 100644 --- a/smartag/src/model/UpgradeSmartAccessGatewayResult.cc +++ b/smartag/src/model/UpgradeSmartAccessGatewayResult.cc @@ -1,50 +1,53 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UpgradeSmartAccessGatewayResult::UpgradeSmartAccessGatewayResult() : - ServiceResult() -{} - -UpgradeSmartAccessGatewayResult::UpgradeSmartAccessGatewayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpgradeSmartAccessGatewayResult::~UpgradeSmartAccessGatewayResult() -{} - -void UpgradeSmartAccessGatewayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - - setRequestId(value["RequestId"].asString()); +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Smartag; +using namespace AlibabaCloud::Smartag::Model; + +UpgradeSmartAccessGatewayResult::UpgradeSmartAccessGatewayResult() : + ServiceResult() +{} + +UpgradeSmartAccessGatewayResult::UpgradeSmartAccessGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeSmartAccessGatewayResult::~UpgradeSmartAccessGatewayResult() +{} + +void UpgradeSmartAccessGatewayResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - -} - + +} + std::string UpgradeSmartAccessGatewayResult::getOrderId()const { return orderId_; diff --git a/snsuapi/CMakeLists.txt b/snsuapi/CMakeLists.txt index 3da4c1374..8e92ef18e 100644 --- a/snsuapi/CMakeLists.txt +++ b/snsuapi/CMakeLists.txt @@ -29,10 +29,10 @@ set(snsuapi_public_header_model include/alibabacloud/snsuapi/model/BandStatusQueryResult.h include/alibabacloud/snsuapi/model/MobileStatusQueryRequest.h include/alibabacloud/snsuapi/model/MobileStatusQueryResult.h - include/alibabacloud/snsuapi/model/BandOfferOrderRequest.h - include/alibabacloud/snsuapi/model/BandOfferOrderResult.h include/alibabacloud/snsuapi/model/MobileStopSpeedUpRequest.h include/alibabacloud/snsuapi/model/MobileStopSpeedUpResult.h + include/alibabacloud/snsuapi/model/BandOfferOrderRequest.h + include/alibabacloud/snsuapi/model/BandOfferOrderResult.h include/alibabacloud/snsuapi/model/BandPrecheckRequest.h include/alibabacloud/snsuapi/model/BandPrecheckResult.h include/alibabacloud/snsuapi/model/BandStartSpeedUpRequest.h @@ -48,10 +48,10 @@ set(snsuapi_src src/model/BandStatusQueryResult.cc src/model/MobileStatusQueryRequest.cc src/model/MobileStatusQueryResult.cc - src/model/BandOfferOrderRequest.cc - src/model/BandOfferOrderResult.cc src/model/MobileStopSpeedUpRequest.cc src/model/MobileStopSpeedUpResult.cc + src/model/BandOfferOrderRequest.cc + src/model/BandOfferOrderResult.cc src/model/BandPrecheckRequest.cc src/model/BandPrecheckResult.cc src/model/BandStartSpeedUpRequest.cc diff --git a/snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h b/snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h index 7726d3e49..d4167afa0 100644 --- a/snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h +++ b/snsuapi/include/alibabacloud/snsuapi/SnsuapiClient.h @@ -30,10 +30,10 @@ #include "model/BandStatusQueryResult.h" #include "model/MobileStatusQueryRequest.h" #include "model/MobileStatusQueryResult.h" -#include "model/BandOfferOrderRequest.h" -#include "model/BandOfferOrderResult.h" #include "model/MobileStopSpeedUpRequest.h" #include "model/MobileStopSpeedUpResult.h" +#include "model/BandOfferOrderRequest.h" +#include "model/BandOfferOrderResult.h" #include "model/BandPrecheckRequest.h" #include "model/BandPrecheckResult.h" #include "model/BandStartSpeedUpRequest.h" @@ -59,12 +59,12 @@ namespace AlibabaCloud typedef Outcome MobileStatusQueryOutcome; typedef std::future MobileStatusQueryOutcomeCallable; typedef std::function&)> MobileStatusQueryAsyncHandler; - typedef Outcome BandOfferOrderOutcome; - typedef std::future BandOfferOrderOutcomeCallable; - typedef std::function&)> BandOfferOrderAsyncHandler; typedef Outcome MobileStopSpeedUpOutcome; typedef std::future MobileStopSpeedUpOutcomeCallable; typedef std::function&)> MobileStopSpeedUpAsyncHandler; + typedef Outcome BandOfferOrderOutcome; + typedef std::future BandOfferOrderOutcomeCallable; + typedef std::function&)> BandOfferOrderAsyncHandler; typedef Outcome BandPrecheckOutcome; typedef std::future BandPrecheckOutcomeCallable; typedef std::function&)> BandPrecheckAsyncHandler; @@ -88,12 +88,12 @@ namespace AlibabaCloud MobileStatusQueryOutcome mobileStatusQuery(const Model::MobileStatusQueryRequest &request)const; void mobileStatusQueryAsync(const Model::MobileStatusQueryRequest& request, const MobileStatusQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MobileStatusQueryOutcomeCallable mobileStatusQueryCallable(const Model::MobileStatusQueryRequest& request) const; - BandOfferOrderOutcome bandOfferOrder(const Model::BandOfferOrderRequest &request)const; - void bandOfferOrderAsync(const Model::BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BandOfferOrderOutcomeCallable bandOfferOrderCallable(const Model::BandOfferOrderRequest& request) const; MobileStopSpeedUpOutcome mobileStopSpeedUp(const Model::MobileStopSpeedUpRequest &request)const; void mobileStopSpeedUpAsync(const Model::MobileStopSpeedUpRequest& request, const MobileStopSpeedUpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MobileStopSpeedUpOutcomeCallable mobileStopSpeedUpCallable(const Model::MobileStopSpeedUpRequest& request) const; + BandOfferOrderOutcome bandOfferOrder(const Model::BandOfferOrderRequest &request)const; + void bandOfferOrderAsync(const Model::BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BandOfferOrderOutcomeCallable bandOfferOrderCallable(const Model::BandOfferOrderRequest& request) const; BandPrecheckOutcome bandPrecheck(const Model::BandPrecheckRequest &request)const; void bandPrecheckAsync(const Model::BandPrecheckRequest& request, const BandPrecheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BandPrecheckOutcomeCallable bandPrecheckCallable(const Model::BandPrecheckRequest& request) const; diff --git a/snsuapi/src/SnsuapiClient.cc b/snsuapi/src/SnsuapiClient.cc index 27bac0ced..7ee1fc81c 100644 --- a/snsuapi/src/SnsuapiClient.cc +++ b/snsuapi/src/SnsuapiClient.cc @@ -195,42 +195,6 @@ SnsuapiClient::MobileStatusQueryOutcomeCallable SnsuapiClient::mobileStatusQuery return task->get_future(); } -SnsuapiClient::BandOfferOrderOutcome SnsuapiClient::bandOfferOrder(const BandOfferOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BandOfferOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BandOfferOrderOutcome(BandOfferOrderResult(outcome.result())); - else - return BandOfferOrderOutcome(outcome.error()); -} - -void SnsuapiClient::bandOfferOrderAsync(const BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bandOfferOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SnsuapiClient::BandOfferOrderOutcomeCallable SnsuapiClient::bandOfferOrderCallable(const BandOfferOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bandOfferOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SnsuapiClient::MobileStopSpeedUpOutcome SnsuapiClient::mobileStopSpeedUp(const MobileStopSpeedUpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +231,42 @@ SnsuapiClient::MobileStopSpeedUpOutcomeCallable SnsuapiClient::mobileStopSpeedUp return task->get_future(); } +SnsuapiClient::BandOfferOrderOutcome SnsuapiClient::bandOfferOrder(const BandOfferOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BandOfferOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BandOfferOrderOutcome(BandOfferOrderResult(outcome.result())); + else + return BandOfferOrderOutcome(outcome.error()); +} + +void SnsuapiClient::bandOfferOrderAsync(const BandOfferOrderRequest& request, const BandOfferOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bandOfferOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SnsuapiClient::BandOfferOrderOutcomeCallable SnsuapiClient::bandOfferOrderCallable(const BandOfferOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bandOfferOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SnsuapiClient::BandPrecheckOutcome SnsuapiClient::bandPrecheck(const BandPrecheckRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/snsuapi/src/model/BandOfferOrderRequest.cc b/snsuapi/src/model/BandOfferOrderRequest.cc index ad8b8b489..624d185d4 100644 --- a/snsuapi/src/model/BandOfferOrderRequest.cc +++ b/snsuapi/src/model/BandOfferOrderRequest.cc @@ -33,7 +33,7 @@ long BandOfferOrderRequest::getResourceOwnerId()const void BandOfferOrderRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BandOfferOrderRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string BandOfferOrderRequest::getResourceOwnerAccount()const void BandOfferOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string BandOfferOrderRequest::getBandId()const @@ -55,7 +55,7 @@ std::string BandOfferOrderRequest::getBandId()const void BandOfferOrderRequest::setBandId(const std::string& bandId) { bandId_ = bandId; - setParameter("BandId", bandId); + setCoreParameter("BandId", bandId); } std::string BandOfferOrderRequest::getOfferId()const @@ -66,7 +66,7 @@ std::string BandOfferOrderRequest::getOfferId()const void BandOfferOrderRequest::setOfferId(const std::string& offerId) { offerId_ = offerId; - setParameter("OfferId", offerId); + setCoreParameter("OfferId", offerId); } long BandOfferOrderRequest::getOwnerId()const @@ -77,7 +77,7 @@ long BandOfferOrderRequest::getOwnerId()const void BandOfferOrderRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string BandOfferOrderRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string BandOfferOrderRequest::getAccessKeyId()const void BandOfferOrderRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/snsuapi/src/model/BandOfferOrderResult.cc b/snsuapi/src/model/BandOfferOrderResult.cc index 8e4d92021..e5fec7064 100644 --- a/snsuapi/src/model/BandOfferOrderResult.cc +++ b/snsuapi/src/model/BandOfferOrderResult.cc @@ -35,10 +35,13 @@ BandOfferOrderResult::~BandOfferOrderResult() void BandOfferOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resultModuleNode = value["ResultModule"]; if(!resultModuleNode["LxOrderId"].isNull()) diff --git a/snsuapi/src/model/BandPrecheckRequest.cc b/snsuapi/src/model/BandPrecheckRequest.cc index c2da1207c..f66b991ff 100644 --- a/snsuapi/src/model/BandPrecheckRequest.cc +++ b/snsuapi/src/model/BandPrecheckRequest.cc @@ -33,7 +33,7 @@ std::string BandPrecheckRequest::getIpAddress()const void BandPrecheckRequest::setIpAddress(const std::string& ipAddress) { ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); + setCoreParameter("IpAddress", ipAddress); } long BandPrecheckRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long BandPrecheckRequest::getResourceOwnerId()const void BandPrecheckRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BandPrecheckRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string BandPrecheckRequest::getResourceOwnerAccount()const void BandPrecheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int BandPrecheckRequest::getPort()const @@ -66,7 +66,7 @@ int BandPrecheckRequest::getPort()const void BandPrecheckRequest::setPort(int port) { port_ = port; - setParameter("Port", std::to_string(port)); + setCoreParameter("Port", std::to_string(port)); } long BandPrecheckRequest::getOwnerId()const @@ -77,7 +77,7 @@ long BandPrecheckRequest::getOwnerId()const void BandPrecheckRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string BandPrecheckRequest::getAccessKeyId()const @@ -88,6 +88,6 @@ std::string BandPrecheckRequest::getAccessKeyId()const void BandPrecheckRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/snsuapi/src/model/BandPrecheckResult.cc b/snsuapi/src/model/BandPrecheckResult.cc index f21d22daa..6e11380d1 100644 --- a/snsuapi/src/model/BandPrecheckResult.cc +++ b/snsuapi/src/model/BandPrecheckResult.cc @@ -35,10 +35,13 @@ BandPrecheckResult::~BandPrecheckResult() void BandPrecheckResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resultModuleNode = value["ResultModule"]; if(!resultModuleNode["BandId"].isNull()) diff --git a/snsuapi/src/model/BandStartSpeedUpRequest.cc b/snsuapi/src/model/BandStartSpeedUpRequest.cc index ba273833a..770262baf 100644 --- a/snsuapi/src/model/BandStartSpeedUpRequest.cc +++ b/snsuapi/src/model/BandStartSpeedUpRequest.cc @@ -33,7 +33,7 @@ std::string BandStartSpeedUpRequest::getIpAddress()const void BandStartSpeedUpRequest::setIpAddress(const std::string& ipAddress) { ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); + setCoreParameter("IpAddress", ipAddress); } long BandStartSpeedUpRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long BandStartSpeedUpRequest::getResourceOwnerId()const void BandStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BandStartSpeedUpRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string BandStartSpeedUpRequest::getResourceOwnerAccount()const void BandStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int BandStartSpeedUpRequest::getPort()const @@ -66,7 +66,7 @@ int BandStartSpeedUpRequest::getPort()const void BandStartSpeedUpRequest::setPort(int port) { port_ = port; - setParameter("Port", std::to_string(port)); + setCoreParameter("Port", std::to_string(port)); } long BandStartSpeedUpRequest::getBandId()const @@ -77,7 +77,7 @@ long BandStartSpeedUpRequest::getBandId()const void BandStartSpeedUpRequest::setBandId(long bandId) { bandId_ = bandId; - setParameter("BandId", std::to_string(bandId)); + setCoreParameter("BandId", std::to_string(bandId)); } long BandStartSpeedUpRequest::getOwnerId()const @@ -88,7 +88,7 @@ long BandStartSpeedUpRequest::getOwnerId()const void BandStartSpeedUpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long BandStartSpeedUpRequest::getTargetBandwidth()const @@ -99,7 +99,7 @@ long BandStartSpeedUpRequest::getTargetBandwidth()const void BandStartSpeedUpRequest::setTargetBandwidth(long targetBandwidth) { targetBandwidth_ = targetBandwidth; - setParameter("TargetBandwidth", std::to_string(targetBandwidth)); + setCoreParameter("TargetBandwidth", std::to_string(targetBandwidth)); } std::string BandStartSpeedUpRequest::getBandScene()const @@ -110,7 +110,7 @@ std::string BandStartSpeedUpRequest::getBandScene()const void BandStartSpeedUpRequest::setBandScene(const std::string& bandScene) { bandScene_ = bandScene; - setParameter("BandScene", bandScene); + setCoreParameter("BandScene", bandScene); } std::string BandStartSpeedUpRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string BandStartSpeedUpRequest::getAccessKeyId()const void BandStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string BandStartSpeedUpRequest::getDirection()const @@ -132,6 +132,6 @@ std::string BandStartSpeedUpRequest::getDirection()const void BandStartSpeedUpRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/snsuapi/src/model/BandStartSpeedUpResult.cc b/snsuapi/src/model/BandStartSpeedUpResult.cc index e1d8b0ff5..c08f8f31f 100644 --- a/snsuapi/src/model/BandStartSpeedUpResult.cc +++ b/snsuapi/src/model/BandStartSpeedUpResult.cc @@ -35,10 +35,13 @@ BandStartSpeedUpResult::~BandStartSpeedUpResult() void BandStartSpeedUpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ResultCode"].isNull()) resultCode_ = value["ResultCode"].asString(); diff --git a/snsuapi/src/model/BandStatusQueryRequest.cc b/snsuapi/src/model/BandStatusQueryRequest.cc index f0103c97b..2ca52259e 100644 --- a/snsuapi/src/model/BandStatusQueryRequest.cc +++ b/snsuapi/src/model/BandStatusQueryRequest.cc @@ -33,7 +33,7 @@ long BandStatusQueryRequest::getResourceOwnerId()const void BandStatusQueryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BandStatusQueryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string BandStatusQueryRequest::getResourceOwnerAccount()const void BandStatusQueryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } long BandStatusQueryRequest::getBandId()const @@ -55,7 +55,7 @@ long BandStatusQueryRequest::getBandId()const void BandStatusQueryRequest::setBandId(long bandId) { bandId_ = bandId; - setParameter("BandId", std::to_string(bandId)); + setCoreParameter("BandId", std::to_string(bandId)); } long BandStatusQueryRequest::getOwnerId()const @@ -66,7 +66,7 @@ long BandStatusQueryRequest::getOwnerId()const void BandStatusQueryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string BandStatusQueryRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string BandStatusQueryRequest::getAccessKeyId()const void BandStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/snsuapi/src/model/BandStatusQueryResult.cc b/snsuapi/src/model/BandStatusQueryResult.cc index 603678bc1..44b8663de 100644 --- a/snsuapi/src/model/BandStatusQueryResult.cc +++ b/snsuapi/src/model/BandStatusQueryResult.cc @@ -35,10 +35,13 @@ BandStatusQueryResult::~BandStatusQueryResult() void BandStatusQueryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto resultModuleNode = value["ResultModule"]; if(!resultModuleNode["DownloadTarget"].isNull()) diff --git a/snsuapi/src/model/BandStopSpeedUpRequest.cc b/snsuapi/src/model/BandStopSpeedUpRequest.cc index 9aa7e5410..d721c881a 100644 --- a/snsuapi/src/model/BandStopSpeedUpRequest.cc +++ b/snsuapi/src/model/BandStopSpeedUpRequest.cc @@ -33,7 +33,7 @@ std::string BandStopSpeedUpRequest::getIpAddress()const void BandStopSpeedUpRequest::setIpAddress(const std::string& ipAddress) { ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); + setCoreParameter("IpAddress", ipAddress); } long BandStopSpeedUpRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long BandStopSpeedUpRequest::getResourceOwnerId()const void BandStopSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string BandStopSpeedUpRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string BandStopSpeedUpRequest::getResourceOwnerAccount()const void BandStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int BandStopSpeedUpRequest::getPort()const @@ -66,7 +66,7 @@ int BandStopSpeedUpRequest::getPort()const void BandStopSpeedUpRequest::setPort(int port) { port_ = port; - setParameter("Port", std::to_string(port)); + setCoreParameter("Port", std::to_string(port)); } long BandStopSpeedUpRequest::getBandId()const @@ -77,7 +77,7 @@ long BandStopSpeedUpRequest::getBandId()const void BandStopSpeedUpRequest::setBandId(long bandId) { bandId_ = bandId; - setParameter("BandId", std::to_string(bandId)); + setCoreParameter("BandId", std::to_string(bandId)); } long BandStopSpeedUpRequest::getOwnerId()const @@ -88,7 +88,7 @@ long BandStopSpeedUpRequest::getOwnerId()const void BandStopSpeedUpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string BandStopSpeedUpRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string BandStopSpeedUpRequest::getAccessKeyId()const void BandStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string BandStopSpeedUpRequest::getDirection()const @@ -110,6 +110,6 @@ std::string BandStopSpeedUpRequest::getDirection()const void BandStopSpeedUpRequest::setDirection(const std::string& direction) { direction_ = direction; - setParameter("Direction", direction); + setCoreParameter("Direction", direction); } diff --git a/snsuapi/src/model/BandStopSpeedUpResult.cc b/snsuapi/src/model/BandStopSpeedUpResult.cc index b0d0cfc03..07f5a63a4 100644 --- a/snsuapi/src/model/BandStopSpeedUpResult.cc +++ b/snsuapi/src/model/BandStopSpeedUpResult.cc @@ -35,10 +35,13 @@ BandStopSpeedUpResult::~BandStopSpeedUpResult() void BandStopSpeedUpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ResultCode"].isNull()) resultCode_ = value["ResultCode"].asString(); diff --git a/snsuapi/src/model/MobileStartSpeedUpRequest.cc b/snsuapi/src/model/MobileStartSpeedUpRequest.cc index 105624ab7..5c2807a3d 100644 --- a/snsuapi/src/model/MobileStartSpeedUpRequest.cc +++ b/snsuapi/src/model/MobileStartSpeedUpRequest.cc @@ -33,7 +33,7 @@ std::string MobileStartSpeedUpRequest::getDuration()const void MobileStartSpeedUpRequest::setDuration(const std::string& duration) { duration_ = duration; - setParameter("Duration", duration); + setCoreParameter("Duration", duration); } long MobileStartSpeedUpRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long MobileStartSpeedUpRequest::getResourceOwnerId()const void MobileStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MobileStartSpeedUpRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string MobileStartSpeedUpRequest::getResourceOwnerAccount()const void MobileStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string MobileStartSpeedUpRequest::getIp()const @@ -66,7 +66,7 @@ std::string MobileStartSpeedUpRequest::getIp()const void MobileStartSpeedUpRequest::setIp(const std::string& ip) { ip_ = ip; - setParameter("Ip", ip); + setCoreParameter("Ip", ip); } std::string MobileStartSpeedUpRequest::getDestinationIpAddress()const @@ -77,7 +77,7 @@ std::string MobileStartSpeedUpRequest::getDestinationIpAddress()const void MobileStartSpeedUpRequest::setDestinationIpAddress(const std::string& destinationIpAddress) { destinationIpAddress_ = destinationIpAddress; - setParameter("DestinationIpAddress", destinationIpAddress); + setCoreParameter("DestinationIpAddress", destinationIpAddress); } std::string MobileStartSpeedUpRequest::getPublicIp()const @@ -88,7 +88,7 @@ std::string MobileStartSpeedUpRequest::getPublicIp()const void MobileStartSpeedUpRequest::setPublicIp(const std::string& publicIp) { publicIp_ = publicIp; - setParameter("PublicIp", publicIp); + setCoreParameter("PublicIp", publicIp); } std::string MobileStartSpeedUpRequest::getPublicPort()const @@ -99,7 +99,7 @@ std::string MobileStartSpeedUpRequest::getPublicPort()const void MobileStartSpeedUpRequest::setPublicPort(const std::string& publicPort) { publicPort_ = publicPort; - setParameter("PublicPort", publicPort); + setCoreParameter("PublicPort", publicPort); } long MobileStartSpeedUpRequest::getOwnerId()const @@ -110,7 +110,7 @@ long MobileStartSpeedUpRequest::getOwnerId()const void MobileStartSpeedUpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string MobileStartSpeedUpRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string MobileStartSpeedUpRequest::getAccessKeyId()const void MobileStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string MobileStartSpeedUpRequest::getToken()const @@ -132,6 +132,6 @@ std::string MobileStartSpeedUpRequest::getToken()const void MobileStartSpeedUpRequest::setToken(const std::string& token) { token_ = token; - setParameter("Token", token); + setCoreParameter("Token", token); } diff --git a/snsuapi/src/model/MobileStartSpeedUpResult.cc b/snsuapi/src/model/MobileStartSpeedUpResult.cc index 196415a53..7acb49bbc 100644 --- a/snsuapi/src/model/MobileStartSpeedUpResult.cc +++ b/snsuapi/src/model/MobileStartSpeedUpResult.cc @@ -35,10 +35,13 @@ MobileStartSpeedUpResult::~MobileStartSpeedUpResult() void MobileStartSpeedUpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ResultCode"].isNull()) resultCode_ = value["ResultCode"].asString(); diff --git a/snsuapi/src/model/MobileStatusQueryRequest.cc b/snsuapi/src/model/MobileStatusQueryRequest.cc index 5f2c385c7..9c6b3be61 100644 --- a/snsuapi/src/model/MobileStatusQueryRequest.cc +++ b/snsuapi/src/model/MobileStatusQueryRequest.cc @@ -33,7 +33,7 @@ long MobileStatusQueryRequest::getResourceOwnerId()const void MobileStatusQueryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MobileStatusQueryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string MobileStatusQueryRequest::getResourceOwnerAccount()const void MobileStatusQueryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string MobileStatusQueryRequest::getCorrelationId()const @@ -55,7 +55,7 @@ std::string MobileStatusQueryRequest::getCorrelationId()const void MobileStatusQueryRequest::setCorrelationId(const std::string& correlationId) { correlationId_ = correlationId; - setParameter("CorrelationId", correlationId); + setCoreParameter("CorrelationId", correlationId); } long MobileStatusQueryRequest::getOwnerId()const @@ -66,7 +66,7 @@ long MobileStatusQueryRequest::getOwnerId()const void MobileStatusQueryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string MobileStatusQueryRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string MobileStatusQueryRequest::getAccessKeyId()const void MobileStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/snsuapi/src/model/MobileStatusQueryResult.cc b/snsuapi/src/model/MobileStatusQueryResult.cc index 39b0c20eb..b08aa214d 100644 --- a/snsuapi/src/model/MobileStatusQueryResult.cc +++ b/snsuapi/src/model/MobileStatusQueryResult.cc @@ -35,10 +35,13 @@ MobileStatusQueryResult::~MobileStatusQueryResult() void MobileStatusQueryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ResultCode"].isNull()) resultCode_ = value["ResultCode"].asString(); diff --git a/snsuapi/src/model/MobileStopSpeedUpRequest.cc b/snsuapi/src/model/MobileStopSpeedUpRequest.cc index 83083d59f..2a289e55b 100644 --- a/snsuapi/src/model/MobileStopSpeedUpRequest.cc +++ b/snsuapi/src/model/MobileStopSpeedUpRequest.cc @@ -33,7 +33,7 @@ long MobileStopSpeedUpRequest::getResourceOwnerId()const void MobileStopSpeedUpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string MobileStopSpeedUpRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string MobileStopSpeedUpRequest::getResourceOwnerAccount()const void MobileStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string MobileStopSpeedUpRequest::getCorrelationId()const @@ -55,7 +55,7 @@ std::string MobileStopSpeedUpRequest::getCorrelationId()const void MobileStopSpeedUpRequest::setCorrelationId(const std::string& correlationId) { correlationId_ = correlationId; - setParameter("CorrelationId", correlationId); + setCoreParameter("CorrelationId", correlationId); } long MobileStopSpeedUpRequest::getOwnerId()const @@ -66,7 +66,7 @@ long MobileStopSpeedUpRequest::getOwnerId()const void MobileStopSpeedUpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string MobileStopSpeedUpRequest::getAccessKeyId()const @@ -77,6 +77,6 @@ std::string MobileStopSpeedUpRequest::getAccessKeyId()const void MobileStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } diff --git a/snsuapi/src/model/MobileStopSpeedUpResult.cc b/snsuapi/src/model/MobileStopSpeedUpResult.cc index b940f7ee7..4e37681db 100644 --- a/snsuapi/src/model/MobileStopSpeedUpResult.cc +++ b/snsuapi/src/model/MobileStopSpeedUpResult.cc @@ -35,10 +35,13 @@ MobileStopSpeedUpResult::~MobileStopSpeedUpResult() void MobileStopSpeedUpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ResultCode"].isNull()) resultCode_ = value["ResultCode"].asString(); diff --git a/sts/CMakeLists.txt b/sts/CMakeLists.txt index 0150b7e9c..4a271d292 100644 --- a/sts/CMakeLists.txt +++ b/sts/CMakeLists.txt @@ -26,7 +26,9 @@ set(sts_public_header_model include/alibabacloud/sts/model/GenerateSessionAccessKeyRequest.h include/alibabacloud/sts/model/GenerateSessionAccessKeyResult.h include/alibabacloud/sts/model/AssumeRoleRequest.h - include/alibabacloud/sts/model/AssumeRoleResult.h ) + include/alibabacloud/sts/model/AssumeRoleResult.h + include/alibabacloud/sts/model/AssumeRoleWithSAMLRequest.h + include/alibabacloud/sts/model/AssumeRoleWithSAMLResult.h ) set(sts_src src/StsClient.cc @@ -35,7 +37,9 @@ set(sts_src src/model/GenerateSessionAccessKeyRequest.cc src/model/GenerateSessionAccessKeyResult.cc src/model/AssumeRoleRequest.cc - src/model/AssumeRoleResult.cc ) + src/model/AssumeRoleResult.cc + src/model/AssumeRoleWithSAMLRequest.cc + src/model/AssumeRoleWithSAMLResult.cc ) add_library(sts ${LIB_TYPE} ${sts_public_header} diff --git a/sts/include/alibabacloud/sts/StsClient.h b/sts/include/alibabacloud/sts/StsClient.h index 0d839f5c4..181ab564a 100644 --- a/sts/include/alibabacloud/sts/StsClient.h +++ b/sts/include/alibabacloud/sts/StsClient.h @@ -28,6 +28,8 @@ #include "model/GenerateSessionAccessKeyResult.h" #include "model/AssumeRoleRequest.h" #include "model/AssumeRoleResult.h" +#include "model/AssumeRoleWithSAMLRequest.h" +#include "model/AssumeRoleWithSAMLResult.h" namespace AlibabaCloud @@ -46,6 +48,9 @@ namespace AlibabaCloud typedef Outcome AssumeRoleOutcome; typedef std::future AssumeRoleOutcomeCallable; typedef std::function&)> AssumeRoleAsyncHandler; + typedef Outcome AssumeRoleWithSAMLOutcome; + typedef std::future AssumeRoleWithSAMLOutcomeCallable; + typedef std::function&)> AssumeRoleWithSAMLAsyncHandler; StsClient(const Credentials &credentials, const ClientConfiguration &configuration); StsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -60,6 +65,9 @@ namespace AlibabaCloud AssumeRoleOutcome assumeRole(const Model::AssumeRoleRequest &request)const; void assumeRoleAsync(const Model::AssumeRoleRequest& request, const AssumeRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssumeRoleOutcomeCallable assumeRoleCallable(const Model::AssumeRoleRequest& request) const; + AssumeRoleWithSAMLOutcome assumeRoleWithSAML(const Model::AssumeRoleWithSAMLRequest &request)const; + void assumeRoleWithSAMLAsync(const Model::AssumeRoleWithSAMLRequest& request, const AssumeRoleWithSAMLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssumeRoleWithSAMLOutcomeCallable assumeRoleWithSAMLCallable(const Model::AssumeRoleWithSAMLRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLRequest.h b/sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLRequest.h new file mode 100644 index 000000000..5986a6b69 --- /dev/null +++ b/sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLRequest.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_STS_MODEL_ASSUMEROLEWITHSAMLREQUEST_H_ +#define ALIBABACLOUD_STS_MODEL_ASSUMEROLEWITHSAMLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sts + { + namespace Model + { + class ALIBABACLOUD_STS_EXPORT AssumeRoleWithSAMLRequest : public RpcServiceRequest + { + + public: + AssumeRoleWithSAMLRequest(); + ~AssumeRoleWithSAMLRequest(); + + std::string getRoleArn()const; + void setRoleArn(const std::string& roleArn); + std::string getSAMLProviderArn()const; + void setSAMLProviderArn(const std::string& sAMLProviderArn); + std::string getSAMLAssertion()const; + void setSAMLAssertion(const std::string& sAMLAssertion); + long getDurationSeconds()const; + void setDurationSeconds(long durationSeconds); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + + private: + std::string roleArn_; + std::string sAMLProviderArn_; + std::string sAMLAssertion_; + long durationSeconds_; + std::string policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_STS_MODEL_ASSUMEROLEWITHSAMLREQUEST_H_ \ No newline at end of file diff --git a/sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLResult.h b/sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLResult.h new file mode 100644 index 000000000..e8aea5b90 --- /dev/null +++ b/sts/include/alibabacloud/sts/model/AssumeRoleWithSAMLResult.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_STS_MODEL_ASSUMEROLEWITHSAMLRESULT_H_ +#define ALIBABACLOUD_STS_MODEL_ASSUMEROLEWITHSAMLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sts + { + namespace Model + { + class ALIBABACLOUD_STS_EXPORT AssumeRoleWithSAMLResult : public ServiceResult + { + public: + struct Credentials + { + std::string securityToken; + std::string accessKeyId; + std::string accessKeySecret; + std::string expiration; + }; + struct AssumedRoleUser + { + std::string arn; + std::string assumedRoleId; + }; + struct SAMLAssertionInfo + { + std::string subjectType; + std::string issuer; + std::string recipient; + std::string subject; + }; + + + AssumeRoleWithSAMLResult(); + explicit AssumeRoleWithSAMLResult(const std::string &payload); + ~AssumeRoleWithSAMLResult(); + SAMLAssertionInfo getSAMLAssertionInfo()const; + AssumedRoleUser getAssumedRoleUser()const; + Credentials getCredentials()const; + + protected: + void parse(const std::string &payload); + private: + SAMLAssertionInfo sAMLAssertionInfo_; + AssumedRoleUser assumedRoleUser_; + Credentials credentials_; + + }; + } + } +} +#endif // !ALIBABACLOUD_STS_MODEL_ASSUMEROLEWITHSAMLRESULT_H_ \ No newline at end of file diff --git a/sts/src/StsClient.cc b/sts/src/StsClient.cc index c2b482062..6755ff86b 100644 --- a/sts/src/StsClient.cc +++ b/sts/src/StsClient.cc @@ -159,3 +159,39 @@ StsClient::AssumeRoleOutcomeCallable StsClient::assumeRoleCallable(const AssumeR return task->get_future(); } +StsClient::AssumeRoleWithSAMLOutcome StsClient::assumeRoleWithSAML(const AssumeRoleWithSAMLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssumeRoleWithSAMLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssumeRoleWithSAMLOutcome(AssumeRoleWithSAMLResult(outcome.result())); + else + return AssumeRoleWithSAMLOutcome(outcome.error()); +} + +void StsClient::assumeRoleWithSAMLAsync(const AssumeRoleWithSAMLRequest& request, const AssumeRoleWithSAMLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, assumeRoleWithSAML(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +StsClient::AssumeRoleWithSAMLOutcomeCallable StsClient::assumeRoleWithSAMLCallable(const AssumeRoleWithSAMLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->assumeRoleWithSAML(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/sts/src/model/AssumeRoleRequest.cc b/sts/src/model/AssumeRoleRequest.cc index b0a300563..1b0518555 100644 --- a/sts/src/model/AssumeRoleRequest.cc +++ b/sts/src/model/AssumeRoleRequest.cc @@ -33,7 +33,7 @@ std::string AssumeRoleRequest::getRoleArn()const void AssumeRoleRequest::setRoleArn(const std::string& roleArn) { roleArn_ = roleArn; - setParameter("RoleArn", roleArn); + setCoreParameter("RoleArn", roleArn); } std::string AssumeRoleRequest::getRoleSessionName()const @@ -44,7 +44,7 @@ std::string AssumeRoleRequest::getRoleSessionName()const void AssumeRoleRequest::setRoleSessionName(const std::string& roleSessionName) { roleSessionName_ = roleSessionName; - setParameter("RoleSessionName", roleSessionName); + setCoreParameter("RoleSessionName", roleSessionName); } long AssumeRoleRequest::getDurationSeconds()const @@ -55,7 +55,7 @@ long AssumeRoleRequest::getDurationSeconds()const void AssumeRoleRequest::setDurationSeconds(long durationSeconds) { durationSeconds_ = durationSeconds; - setParameter("DurationSeconds", std::to_string(durationSeconds)); + setCoreParameter("DurationSeconds", std::to_string(durationSeconds)); } std::string AssumeRoleRequest::getPolicy()const @@ -66,6 +66,6 @@ std::string AssumeRoleRequest::getPolicy()const void AssumeRoleRequest::setPolicy(const std::string& policy) { policy_ = policy; - setParameter("Policy", policy); + setCoreParameter("Policy", policy); } diff --git a/sts/src/model/AssumeRoleResult.cc b/sts/src/model/AssumeRoleResult.cc index 5fd3288b0..7b543d435 100644 --- a/sts/src/model/AssumeRoleResult.cc +++ b/sts/src/model/AssumeRoleResult.cc @@ -35,10 +35,13 @@ AssumeRoleResult::~AssumeRoleResult() void AssumeRoleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto credentialsNode = value["Credentials"]; if(!credentialsNode["SecurityToken"].isNull()) diff --git a/sts/src/model/AssumeRoleWithSAMLRequest.cc b/sts/src/model/AssumeRoleWithSAMLRequest.cc new file mode 100644 index 000000000..4d21c611b --- /dev/null +++ b/sts/src/model/AssumeRoleWithSAMLRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sts::Model::AssumeRoleWithSAMLRequest; + +AssumeRoleWithSAMLRequest::AssumeRoleWithSAMLRequest() : + RpcServiceRequest("sts", "2015-04-01", "AssumeRoleWithSAML") +{} + +AssumeRoleWithSAMLRequest::~AssumeRoleWithSAMLRequest() +{} + +std::string AssumeRoleWithSAMLRequest::getRoleArn()const +{ + return roleArn_; +} + +void AssumeRoleWithSAMLRequest::setRoleArn(const std::string& roleArn) +{ + roleArn_ = roleArn; + setCoreParameter("RoleArn", roleArn); +} + +std::string AssumeRoleWithSAMLRequest::getSAMLProviderArn()const +{ + return sAMLProviderArn_; +} + +void AssumeRoleWithSAMLRequest::setSAMLProviderArn(const std::string& sAMLProviderArn) +{ + sAMLProviderArn_ = sAMLProviderArn; + setCoreParameter("SAMLProviderArn", sAMLProviderArn); +} + +std::string AssumeRoleWithSAMLRequest::getSAMLAssertion()const +{ + return sAMLAssertion_; +} + +void AssumeRoleWithSAMLRequest::setSAMLAssertion(const std::string& sAMLAssertion) +{ + sAMLAssertion_ = sAMLAssertion; + setCoreParameter("SAMLAssertion", sAMLAssertion); +} + +long AssumeRoleWithSAMLRequest::getDurationSeconds()const +{ + return durationSeconds_; +} + +void AssumeRoleWithSAMLRequest::setDurationSeconds(long durationSeconds) +{ + durationSeconds_ = durationSeconds; + setCoreParameter("DurationSeconds", std::to_string(durationSeconds)); +} + +std::string AssumeRoleWithSAMLRequest::getPolicy()const +{ + return policy_; +} + +void AssumeRoleWithSAMLRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setCoreParameter("Policy", policy); +} + diff --git a/sts/src/model/AssumeRoleWithSAMLResult.cc b/sts/src/model/AssumeRoleWithSAMLResult.cc new file mode 100644 index 000000000..9ce6e1ecf --- /dev/null +++ b/sts/src/model/AssumeRoleWithSAMLResult.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::Sts; +using namespace AlibabaCloud::Sts::Model; + +AssumeRoleWithSAMLResult::AssumeRoleWithSAMLResult() : + ServiceResult() +{} + +AssumeRoleWithSAMLResult::AssumeRoleWithSAMLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssumeRoleWithSAMLResult::~AssumeRoleWithSAMLResult() +{} + +void AssumeRoleWithSAMLResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto credentialsNode = value["Credentials"]; + if(!credentialsNode["SecurityToken"].isNull()) + credentials_.securityToken = credentialsNode["SecurityToken"].asString(); + if(!credentialsNode["AccessKeySecret"].isNull()) + credentials_.accessKeySecret = credentialsNode["AccessKeySecret"].asString(); + if(!credentialsNode["AccessKeyId"].isNull()) + credentials_.accessKeyId = credentialsNode["AccessKeyId"].asString(); + if(!credentialsNode["Expiration"].isNull()) + credentials_.expiration = credentialsNode["Expiration"].asString(); + auto assumedRoleUserNode = value["AssumedRoleUser"]; + if(!assumedRoleUserNode["Arn"].isNull()) + assumedRoleUser_.arn = assumedRoleUserNode["Arn"].asString(); + if(!assumedRoleUserNode["AssumedRoleId"].isNull()) + assumedRoleUser_.assumedRoleId = assumedRoleUserNode["AssumedRoleId"].asString(); + auto sAMLAssertionInfoNode = value["SAMLAssertionInfo"]; + if(!sAMLAssertionInfoNode["SubjectType"].isNull()) + sAMLAssertionInfo_.subjectType = sAMLAssertionInfoNode["SubjectType"].asString(); + if(!sAMLAssertionInfoNode["Subject"].isNull()) + sAMLAssertionInfo_.subject = sAMLAssertionInfoNode["Subject"].asString(); + if(!sAMLAssertionInfoNode["Recipient"].isNull()) + sAMLAssertionInfo_.recipient = sAMLAssertionInfoNode["Recipient"].asString(); + if(!sAMLAssertionInfoNode["Issuer"].isNull()) + sAMLAssertionInfo_.issuer = sAMLAssertionInfoNode["Issuer"].asString(); + +} + +AssumeRoleWithSAMLResult::SAMLAssertionInfo AssumeRoleWithSAMLResult::getSAMLAssertionInfo()const +{ + return sAMLAssertionInfo_; +} + +AssumeRoleWithSAMLResult::AssumedRoleUser AssumeRoleWithSAMLResult::getAssumedRoleUser()const +{ + return assumedRoleUser_; +} + +AssumeRoleWithSAMLResult::Credentials AssumeRoleWithSAMLResult::getCredentials()const +{ + return credentials_; +} + diff --git a/sts/src/model/GetCallerIdentityResult.cc b/sts/src/model/GetCallerIdentityResult.cc index 7cd2a68e0..6bb044846 100644 --- a/sts/src/model/GetCallerIdentityResult.cc +++ b/sts/src/model/GetCallerIdentityResult.cc @@ -35,10 +35,13 @@ GetCallerIdentityResult::~GetCallerIdentityResult() void GetCallerIdentityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AccountId"].isNull()) accountId_ = value["AccountId"].asString(); diff --git a/tesladam/include/alibabacloud/tesladam/TeslaDamClient.h b/tesladam/include/alibabacloud/tesladam/TeslaDamClient.h index 805024193..13fde4837 100644 --- a/tesladam/include/alibabacloud/tesladam/TeslaDamClient.h +++ b/tesladam/include/alibabacloud/tesladam/TeslaDamClient.h @@ -41,41 +41,41 @@ namespace AlibabaCloud class ALIBABACLOUD_TESLADAM_EXPORT TeslaDamClient : public RpcServiceClient { public: - typedef Outcome ActionOutcome; - typedef std::future ActionOutcomeCallable; + typedef Outcome ActionOutcome; + typedef std::future ActionOutcomeCallable; typedef std::function&)> ActionAsyncHandler; - typedef Outcome ActionDiskRmaOutcome; - typedef std::future ActionDiskRmaOutcomeCallable; + typedef Outcome ActionDiskRmaOutcome; + typedef std::future ActionDiskRmaOutcomeCallable; typedef std::function&)> ActionDiskRmaAsyncHandler; - typedef Outcome ActionDiskMaskOutcome; - typedef std::future ActionDiskMaskOutcomeCallable; + typedef Outcome ActionDiskMaskOutcome; + typedef std::future ActionDiskMaskOutcomeCallable; typedef std::function&)> ActionDiskMaskAsyncHandler; - typedef Outcome ActionDiskCheckOutcome; - typedef std::future ActionDiskCheckOutcomeCallable; + typedef Outcome ActionDiskCheckOutcome; + typedef std::future ActionDiskCheckOutcomeCallable; typedef std::function&)> ActionDiskCheckAsyncHandler; - typedef Outcome HostGetsOutcome; - typedef std::future HostGetsOutcomeCallable; + typedef Outcome HostGetsOutcome; + typedef std::future HostGetsOutcomeCallable; typedef std::function&)> HostGetsAsyncHandler; TeslaDamClient(const Credentials &credentials, const ClientConfiguration &configuration); TeslaDamClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); TeslaDamClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~TeslaDamClient(); - ActionOutcome action(const Model::ActionRequest &request)const; - void actionAsync(const Model::ActionRequest& request, const ActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActionOutcomeCallable actionCallable(const Model::ActionRequest& request) const; - ActionDiskRmaOutcome actionDiskRma(const Model::ActionDiskRmaRequest &request)const; - void actionDiskRmaAsync(const Model::ActionDiskRmaRequest& request, const ActionDiskRmaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActionDiskRmaOutcomeCallable actionDiskRmaCallable(const Model::ActionDiskRmaRequest& request) const; - ActionDiskMaskOutcome actionDiskMask(const Model::ActionDiskMaskRequest &request)const; - void actionDiskMaskAsync(const Model::ActionDiskMaskRequest& request, const ActionDiskMaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActionDiskMaskOutcomeCallable actionDiskMaskCallable(const Model::ActionDiskMaskRequest& request) const; - ActionDiskCheckOutcome actionDiskCheck(const Model::ActionDiskCheckRequest &request)const; - void actionDiskCheckAsync(const Model::ActionDiskCheckRequest& request, const ActionDiskCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActionDiskCheckOutcomeCallable actionDiskCheckCallable(const Model::ActionDiskCheckRequest& request) const; - HostGetsOutcome hostGets(const Model::HostGetsRequest &request)const; - void hostGetsAsync(const Model::HostGetsRequest& request, const HostGetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - HostGetsOutcomeCallable hostGetsCallable(const Model::HostGetsRequest& request) const; + ActionOutcome action(const Model::ActionRequest &request)const; + void actionAsync(const Model::ActionRequest& request, const ActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActionOutcomeCallable actionCallable(const Model::ActionRequest& request) const; + ActionDiskRmaOutcome actionDiskRma(const Model::ActionDiskRmaRequest &request)const; + void actionDiskRmaAsync(const Model::ActionDiskRmaRequest& request, const ActionDiskRmaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActionDiskRmaOutcomeCallable actionDiskRmaCallable(const Model::ActionDiskRmaRequest& request) const; + ActionDiskMaskOutcome actionDiskMask(const Model::ActionDiskMaskRequest &request)const; + void actionDiskMaskAsync(const Model::ActionDiskMaskRequest& request, const ActionDiskMaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActionDiskMaskOutcomeCallable actionDiskMaskCallable(const Model::ActionDiskMaskRequest& request) const; + ActionDiskCheckOutcome actionDiskCheck(const Model::ActionDiskCheckRequest &request)const; + void actionDiskCheckAsync(const Model::ActionDiskCheckRequest& request, const ActionDiskCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActionDiskCheckOutcomeCallable actionDiskCheckCallable(const Model::ActionDiskCheckRequest& request) const; + HostGetsOutcome hostGets(const Model::HostGetsRequest &request)const; + void hostGetsAsync(const Model::HostGetsRequest& request, const HostGetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + HostGetsOutcomeCallable hostGetsCallable(const Model::HostGetsRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/tesladam/include/alibabacloud/tesladam/model/ActionDiskCheckResult.h b/tesladam/include/alibabacloud/tesladam/model/ActionDiskCheckResult.h index b411ab676..6f6b16c7c 100644 --- a/tesladam/include/alibabacloud/tesladam/model/ActionDiskCheckResult.h +++ b/tesladam/include/alibabacloud/tesladam/model/ActionDiskCheckResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud ActionDiskCheckResult(); explicit ActionDiskCheckResult(const std::string &payload); ~ActionDiskCheckResult(); - bool getStatus()const; - std::string getMessage()const; - std::string getResult()const; + bool getStatus()const; + std::string getMessage()const; + std::string getResult()const; protected: void parse(const std::string &payload); private: - bool status_; - std::string message_; - std::string result_; + bool status_; + std::string message_; + std::string result_; }; } diff --git a/tesladam/include/alibabacloud/tesladam/model/ActionDiskMaskResult.h b/tesladam/include/alibabacloud/tesladam/model/ActionDiskMaskResult.h index 32de75321..fb44959f1 100644 --- a/tesladam/include/alibabacloud/tesladam/model/ActionDiskMaskResult.h +++ b/tesladam/include/alibabacloud/tesladam/model/ActionDiskMaskResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud ActionDiskMaskResult(); explicit ActionDiskMaskResult(const std::string &payload); ~ActionDiskMaskResult(); - bool getStatus()const; - std::string getMessage()const; - std::string getResult()const; + bool getStatus()const; + std::string getMessage()const; + std::string getResult()const; protected: void parse(const std::string &payload); private: - bool status_; - std::string message_; - std::string result_; + bool status_; + std::string message_; + std::string result_; }; } diff --git a/tesladam/include/alibabacloud/tesladam/model/ActionDiskRmaResult.h b/tesladam/include/alibabacloud/tesladam/model/ActionDiskRmaResult.h index 314024a27..51d927376 100644 --- a/tesladam/include/alibabacloud/tesladam/model/ActionDiskRmaResult.h +++ b/tesladam/include/alibabacloud/tesladam/model/ActionDiskRmaResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud ActionDiskRmaResult(); explicit ActionDiskRmaResult(const std::string &payload); ~ActionDiskRmaResult(); - bool getStatus()const; - std::string getMessage()const; - std::string getResult()const; + bool getStatus()const; + std::string getMessage()const; + std::string getResult()const; protected: void parse(const std::string &payload); private: - bool status_; - std::string message_; - std::string result_; + bool status_; + std::string message_; + std::string result_; }; } diff --git a/tesladam/include/alibabacloud/tesladam/model/ActionResult.h b/tesladam/include/alibabacloud/tesladam/model/ActionResult.h index f7131c231..083d3f3d1 100644 --- a/tesladam/include/alibabacloud/tesladam/model/ActionResult.h +++ b/tesladam/include/alibabacloud/tesladam/model/ActionResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud ActionResult(); explicit ActionResult(const std::string &payload); ~ActionResult(); - bool getStatus()const; - std::string getMessage()const; - std::string getResult()const; + bool getStatus()const; + std::string getMessage()const; + std::string getResult()const; protected: void parse(const std::string &payload); private: - bool status_; - std::string message_; - std::string result_; + bool status_; + std::string message_; + std::string result_; }; } diff --git a/tesladam/include/alibabacloud/tesladam/model/HostGetsResult.h b/tesladam/include/alibabacloud/tesladam/model/HostGetsResult.h index d912a8b89..a673a0e01 100644 --- a/tesladam/include/alibabacloud/tesladam/model/HostGetsResult.h +++ b/tesladam/include/alibabacloud/tesladam/model/HostGetsResult.h @@ -32,32 +32,32 @@ namespace AlibabaCloud class ALIBABACLOUD_TESLADAM_EXPORT HostGetsResult : public ServiceResult { public: - struct DataItem - { - std::string appCode; - std::string clusterCode; - int healthScoreLast; - std::string ip; - std::string hostname; - std::string healthReasonLast; - int sshStatus; - int heartStatus; - }; + struct DataItem + { + std::string appCode; + std::string clusterCode; + int healthScoreLast; + std::string ip; + std::string hostname; + std::string healthReasonLast; + int sshStatus; + int heartStatus; + }; HostGetsResult(); explicit HostGetsResult(const std::string &payload); ~HostGetsResult(); - bool getStatus()const; - std::string getMessage()const; - std::vector getData()const; + bool getStatus()const; + std::string getMessage()const; + std::vector getData()const; protected: void parse(const std::string &payload); private: - bool status_; - std::string message_; - std::vector data_; + bool status_; + std::string message_; + std::vector data_; }; } diff --git a/tesladam/src/TeslaDamClient.cc b/tesladam/src/TeslaDamClient.cc index e16f3ca50..e56364a51 100644 --- a/tesladam/src/TeslaDamClient.cc +++ b/tesladam/src/TeslaDamClient.cc @@ -24,28 +24,28 @@ using namespace AlibabaCloud::TeslaDam::Model; namespace { - const std::string SERVICE_NAME = "TeslaDam"; + const std::string SERVICE_NAME = "TeslaDam"; } TeslaDamClient::TeslaDamClient(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, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tesladam"); } TeslaDamClient::TeslaDamClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tesladam"); } TeslaDamClient::TeslaDamClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tesladam"); } TeslaDamClient::~TeslaDamClient() @@ -86,7 +86,7 @@ TeslaDamClient::ActionOutcomeCallable TeslaDamClient::actionCallable(const Actio asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + TeslaDamClient::ActionDiskRmaOutcome TeslaDamClient::actionDiskRma(const ActionDiskRmaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -122,7 +122,7 @@ TeslaDamClient::ActionDiskRmaOutcomeCallable TeslaDamClient::actionDiskRmaCallab asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + TeslaDamClient::ActionDiskMaskOutcome TeslaDamClient::actionDiskMask(const ActionDiskMaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -158,7 +158,7 @@ TeslaDamClient::ActionDiskMaskOutcomeCallable TeslaDamClient::actionDiskMaskCall asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + TeslaDamClient::ActionDiskCheckOutcome TeslaDamClient::actionDiskCheck(const ActionDiskCheckRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -194,7 +194,7 @@ TeslaDamClient::ActionDiskCheckOutcomeCallable TeslaDamClient::actionDiskCheckCa asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + TeslaDamClient::HostGetsOutcome TeslaDamClient::hostGets(const HostGetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -230,4 +230,4 @@ TeslaDamClient::HostGetsOutcomeCallable TeslaDamClient::hostGetsCallable(const H asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + diff --git a/tesladam/src/model/ActionDiskCheckRequest.cc b/tesladam/src/model/ActionDiskCheckRequest.cc index 329fe58f4..558864c4e 100644 --- a/tesladam/src/model/ActionDiskCheckRequest.cc +++ b/tesladam/src/model/ActionDiskCheckRequest.cc @@ -33,7 +33,7 @@ std::string ActionDiskCheckRequest::getDiskMount()const void ActionDiskCheckRequest::setDiskMount(const std::string& diskMount) { diskMount_ = diskMount; - setParameter("DiskMount", diskMount); + setCoreParameter("DiskMount", diskMount); } std::string ActionDiskCheckRequest::getIp()const @@ -44,6 +44,6 @@ std::string ActionDiskCheckRequest::getIp()const void ActionDiskCheckRequest::setIp(const std::string& ip) { ip_ = ip; - setParameter("Ip", ip); + setCoreParameter("Ip", ip); } diff --git a/tesladam/src/model/ActionDiskCheckResult.cc b/tesladam/src/model/ActionDiskCheckResult.cc index adb6506b2..f81b4f1be 100644 --- a/tesladam/src/model/ActionDiskCheckResult.cc +++ b/tesladam/src/model/ActionDiskCheckResult.cc @@ -35,32 +35,35 @@ ActionDiskCheckResult::~ActionDiskCheckResult() void ActionDiskCheckResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Result"].isNull()) - result_ = value["Result"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); } -bool ActionDiskCheckResult::getStatus()const -{ - return status_; -} - -std::string ActionDiskCheckResult::getMessage()const -{ - return message_; -} - -std::string ActionDiskCheckResult::getResult()const -{ - return result_; -} - +bool ActionDiskCheckResult::getStatus()const +{ + return status_; +} + +std::string ActionDiskCheckResult::getMessage()const +{ + return message_; +} + +std::string ActionDiskCheckResult::getResult()const +{ + return result_; +} + diff --git a/tesladam/src/model/ActionDiskMaskRequest.cc b/tesladam/src/model/ActionDiskMaskRequest.cc index 5d2d610af..ec42a3214 100644 --- a/tesladam/src/model/ActionDiskMaskRequest.cc +++ b/tesladam/src/model/ActionDiskMaskRequest.cc @@ -33,7 +33,7 @@ std::string ActionDiskMaskRequest::getOp()const void ActionDiskMaskRequest::setOp(const std::string& op) { op_ = op; - setParameter("Op", op); + setCoreParameter("Op", op); } std::string ActionDiskMaskRequest::getDiskMount()const @@ -44,7 +44,7 @@ std::string ActionDiskMaskRequest::getDiskMount()const void ActionDiskMaskRequest::setDiskMount(const std::string& diskMount) { diskMount_ = diskMount; - setParameter("DiskMount", diskMount); + setCoreParameter("DiskMount", diskMount); } std::string ActionDiskMaskRequest::getIp()const @@ -55,6 +55,6 @@ std::string ActionDiskMaskRequest::getIp()const void ActionDiskMaskRequest::setIp(const std::string& ip) { ip_ = ip; - setParameter("Ip", ip); + setCoreParameter("Ip", ip); } diff --git a/tesladam/src/model/ActionDiskMaskResult.cc b/tesladam/src/model/ActionDiskMaskResult.cc index 397bd086b..3db007276 100644 --- a/tesladam/src/model/ActionDiskMaskResult.cc +++ b/tesladam/src/model/ActionDiskMaskResult.cc @@ -35,32 +35,35 @@ ActionDiskMaskResult::~ActionDiskMaskResult() void ActionDiskMaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Result"].isNull()) - result_ = value["Result"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); } -bool ActionDiskMaskResult::getStatus()const -{ - return status_; -} - -std::string ActionDiskMaskResult::getMessage()const -{ - return message_; -} - -std::string ActionDiskMaskResult::getResult()const -{ - return result_; -} - +bool ActionDiskMaskResult::getStatus()const +{ + return status_; +} + +std::string ActionDiskMaskResult::getMessage()const +{ + return message_; +} + +std::string ActionDiskMaskResult::getResult()const +{ + return result_; +} + diff --git a/tesladam/src/model/ActionDiskRmaRequest.cc b/tesladam/src/model/ActionDiskRmaRequest.cc index 9c3e8acfc..b39e2fa99 100644 --- a/tesladam/src/model/ActionDiskRmaRequest.cc +++ b/tesladam/src/model/ActionDiskRmaRequest.cc @@ -33,7 +33,7 @@ std::string ActionDiskRmaRequest::getDiskName()const void ActionDiskRmaRequest::setDiskName(const std::string& diskName) { diskName_ = diskName; - setParameter("DiskName", diskName); + setCoreParameter("DiskName", diskName); } std::string ActionDiskRmaRequest::getExecutionId()const @@ -44,7 +44,7 @@ std::string ActionDiskRmaRequest::getExecutionId()const void ActionDiskRmaRequest::setExecutionId(const std::string& executionId) { executionId_ = executionId; - setParameter("ExecutionId", executionId); + setCoreParameter("ExecutionId", executionId); } std::string ActionDiskRmaRequest::getDiskSlot()const @@ -55,7 +55,7 @@ std::string ActionDiskRmaRequest::getDiskSlot()const void ActionDiskRmaRequest::setDiskSlot(const std::string& diskSlot) { diskSlot_ = diskSlot; - setParameter("DiskSlot", diskSlot); + setCoreParameter("DiskSlot", diskSlot); } std::string ActionDiskRmaRequest::getHostname()const @@ -66,7 +66,7 @@ std::string ActionDiskRmaRequest::getHostname()const void ActionDiskRmaRequest::setHostname(const std::string& hostname) { hostname_ = hostname; - setParameter("Hostname", hostname); + setCoreParameter("Hostname", hostname); } std::string ActionDiskRmaRequest::getDiskMount()const @@ -77,7 +77,7 @@ std::string ActionDiskRmaRequest::getDiskMount()const void ActionDiskRmaRequest::setDiskMount(const std::string& diskMount) { diskMount_ = diskMount; - setParameter("DiskMount", diskMount); + setCoreParameter("DiskMount", diskMount); } std::string ActionDiskRmaRequest::getDiskReason()const @@ -88,7 +88,7 @@ std::string ActionDiskRmaRequest::getDiskReason()const void ActionDiskRmaRequest::setDiskReason(const std::string& diskReason) { diskReason_ = diskReason; - setParameter("DiskReason", diskReason); + setCoreParameter("DiskReason", diskReason); } std::string ActionDiskRmaRequest::getDiskSn()const @@ -99,6 +99,6 @@ std::string ActionDiskRmaRequest::getDiskSn()const void ActionDiskRmaRequest::setDiskSn(const std::string& diskSn) { diskSn_ = diskSn; - setParameter("DiskSn", diskSn); + setCoreParameter("DiskSn", diskSn); } diff --git a/tesladam/src/model/ActionDiskRmaResult.cc b/tesladam/src/model/ActionDiskRmaResult.cc index 2e7015f30..0029d534f 100644 --- a/tesladam/src/model/ActionDiskRmaResult.cc +++ b/tesladam/src/model/ActionDiskRmaResult.cc @@ -35,32 +35,35 @@ ActionDiskRmaResult::~ActionDiskRmaResult() void ActionDiskRmaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Result"].isNull()) - result_ = value["Result"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); } -bool ActionDiskRmaResult::getStatus()const -{ - return status_; -} - -std::string ActionDiskRmaResult::getMessage()const -{ - return message_; -} - -std::string ActionDiskRmaResult::getResult()const -{ - return result_; -} - +bool ActionDiskRmaResult::getStatus()const +{ + return status_; +} + +std::string ActionDiskRmaResult::getMessage()const +{ + return message_; +} + +std::string ActionDiskRmaResult::getResult()const +{ + return result_; +} + diff --git a/tesladam/src/model/ActionRequest.cc b/tesladam/src/model/ActionRequest.cc index 9290a0d7c..cf4d48d13 100644 --- a/tesladam/src/model/ActionRequest.cc +++ b/tesladam/src/model/ActionRequest.cc @@ -33,7 +33,7 @@ int ActionRequest::getOrderId()const void ActionRequest::setOrderId(int orderId) { orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); + setCoreParameter("OrderId", std::to_string(orderId)); } std::string ActionRequest::getStepCode()const @@ -44,6 +44,6 @@ std::string ActionRequest::getStepCode()const void ActionRequest::setStepCode(const std::string& stepCode) { stepCode_ = stepCode; - setParameter("StepCode", stepCode); + setCoreParameter("StepCode", stepCode); } diff --git a/tesladam/src/model/ActionResult.cc b/tesladam/src/model/ActionResult.cc index 7306f1160..13e8999aa 100644 --- a/tesladam/src/model/ActionResult.cc +++ b/tesladam/src/model/ActionResult.cc @@ -35,32 +35,35 @@ ActionResult::~ActionResult() void ActionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Result"].isNull()) - result_ = value["Result"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); } -bool ActionResult::getStatus()const -{ - return status_; -} - -std::string ActionResult::getMessage()const -{ - return message_; -} - -std::string ActionResult::getResult()const -{ - return result_; -} - +bool ActionResult::getStatus()const +{ + return status_; +} + +std::string ActionResult::getMessage()const +{ + return message_; +} + +std::string ActionResult::getResult()const +{ + return result_; +} + diff --git a/tesladam/src/model/HostGetsRequest.cc b/tesladam/src/model/HostGetsRequest.cc index b36cfd048..73d24ba93 100644 --- a/tesladam/src/model/HostGetsRequest.cc +++ b/tesladam/src/model/HostGetsRequest.cc @@ -33,7 +33,7 @@ std::string HostGetsRequest::getQuery()const void HostGetsRequest::setQuery(const std::string& query) { query_ = query; - setParameter("Query", query); + setCoreParameter("Query", query); } int HostGetsRequest::getEndTime()const @@ -44,7 +44,7 @@ int HostGetsRequest::getEndTime()const void HostGetsRequest::setEndTime(int endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } int HostGetsRequest::getStartTime()const @@ -55,7 +55,7 @@ int HostGetsRequest::getStartTime()const void HostGetsRequest::setStartTime(int startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string HostGetsRequest::getQueryType()const @@ -66,6 +66,6 @@ std::string HostGetsRequest::getQueryType()const void HostGetsRequest::setQueryType(const std::string& queryType) { queryType_ = queryType; - setParameter("QueryType", queryType); + setCoreParameter("QueryType", queryType); } diff --git a/tesladam/src/model/HostGetsResult.cc b/tesladam/src/model/HostGetsResult.cc index cb0186d32..bfb936675 100644 --- a/tesladam/src/model/HostGetsResult.cc +++ b/tesladam/src/model/HostGetsResult.cc @@ -35,52 +35,55 @@ HostGetsResult::~HostGetsResult() void HostGetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["dataItem"]; - for (auto value : allData) - { - DataItem dataObject; - if(!value["Hostname"].isNull()) - dataObject.hostname = value["Hostname"].asString(); - if(!value["Ip"].isNull()) - dataObject.ip = value["Ip"].asString(); - if(!value["AppCode"].isNull()) - dataObject.appCode = value["AppCode"].asString(); - if(!value["ClusterCode"].isNull()) - dataObject.clusterCode = value["ClusterCode"].asString(); - if(!value["SshStatus"].isNull()) - dataObject.sshStatus = std::stoi(value["SshStatus"].asString()); - if(!value["heartStatus"].isNull()) - dataObject.heartStatus = std::stoi(value["heartStatus"].asString()); - if(!value["HealthScoreLast"].isNull()) - dataObject.healthScoreLast = std::stoi(value["HealthScoreLast"].asString()); - if(!value["HealthReasonLast"].isNull()) - dataObject.healthReasonLast = value["HealthReasonLast"].asString(); - data_.push_back(dataObject); - } - if(!value["Status"].isNull()) - status_ = value["Status"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + auto allData = value["Data"]["dataItem"]; + for (auto value : allData) + { + DataItem dataObject; + if(!value["Hostname"].isNull()) + dataObject.hostname = value["Hostname"].asString(); + if(!value["Ip"].isNull()) + dataObject.ip = value["Ip"].asString(); + if(!value["AppCode"].isNull()) + dataObject.appCode = value["AppCode"].asString(); + if(!value["ClusterCode"].isNull()) + dataObject.clusterCode = value["ClusterCode"].asString(); + if(!value["SshStatus"].isNull()) + dataObject.sshStatus = std::stoi(value["SshStatus"].asString()); + if(!value["heartStatus"].isNull()) + dataObject.heartStatus = std::stoi(value["heartStatus"].asString()); + if(!value["HealthScoreLast"].isNull()) + dataObject.healthScoreLast = std::stoi(value["HealthScoreLast"].asString()); + if(!value["HealthReasonLast"].isNull()) + dataObject.healthReasonLast = value["HealthReasonLast"].asString(); + data_.push_back(dataObject); + } + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -bool HostGetsResult::getStatus()const -{ - return status_; -} - -std::string HostGetsResult::getMessage()const -{ - return message_; -} - -std::vector HostGetsResult::getData()const -{ - return data_; -} - +bool HostGetsResult::getStatus()const +{ + return status_; +} + +std::string HostGetsResult::getMessage()const +{ + return message_; +} + +std::vector HostGetsResult::getData()const +{ + return data_; +} + diff --git a/teslamaxcompute/CMakeLists.txt b/teslamaxcompute/CMakeLists.txt index 0e15bbf9e..463293bb9 100644 --- a/teslamaxcompute/CMakeLists.txt +++ b/teslamaxcompute/CMakeLists.txt @@ -25,10 +25,10 @@ set(teslamaxcompute_public_header_model include/alibabacloud/teslamaxcompute/model/GetUserInstanceResult.h include/alibabacloud/teslamaxcompute/model/GetProjectInstanceRequest.h include/alibabacloud/teslamaxcompute/model/GetProjectInstanceResult.h - include/alibabacloud/teslamaxcompute/model/QueryResourceInventoryRequest.h - include/alibabacloud/teslamaxcompute/model/QueryResourceInventoryResult.h include/alibabacloud/teslamaxcompute/model/QueryTopologyRequest.h include/alibabacloud/teslamaxcompute/model/QueryTopologyResult.h + include/alibabacloud/teslamaxcompute/model/QueryResourceInventoryRequest.h + include/alibabacloud/teslamaxcompute/model/QueryResourceInventoryResult.h include/alibabacloud/teslamaxcompute/model/GetInstancesStatusCountRequest.h include/alibabacloud/teslamaxcompute/model/GetInstancesStatusCountResult.h include/alibabacloud/teslamaxcompute/model/ListUserQuotasRequest.h @@ -48,10 +48,10 @@ set(teslamaxcompute_src src/model/GetUserInstanceResult.cc src/model/GetProjectInstanceRequest.cc src/model/GetProjectInstanceResult.cc - src/model/QueryResourceInventoryRequest.cc - src/model/QueryResourceInventoryResult.cc src/model/QueryTopologyRequest.cc src/model/QueryTopologyResult.cc + src/model/QueryResourceInventoryRequest.cc + src/model/QueryResourceInventoryResult.cc src/model/GetInstancesStatusCountRequest.cc src/model/GetInstancesStatusCountResult.cc src/model/ListUserQuotasRequest.cc diff --git a/teslamaxcompute/include/alibabacloud/teslamaxcompute/TeslaMaxComputeClient.h b/teslamaxcompute/include/alibabacloud/teslamaxcompute/TeslaMaxComputeClient.h index 59ab1f0cf..ea4d8d5f5 100644 --- a/teslamaxcompute/include/alibabacloud/teslamaxcompute/TeslaMaxComputeClient.h +++ b/teslamaxcompute/include/alibabacloud/teslamaxcompute/TeslaMaxComputeClient.h @@ -26,10 +26,10 @@ #include "model/GetUserInstanceResult.h" #include "model/GetProjectInstanceRequest.h" #include "model/GetProjectInstanceResult.h" -#include "model/QueryResourceInventoryRequest.h" -#include "model/QueryResourceInventoryResult.h" #include "model/QueryTopologyRequest.h" #include "model/QueryTopologyResult.h" +#include "model/QueryResourceInventoryRequest.h" +#include "model/QueryResourceInventoryResult.h" #include "model/GetInstancesStatusCountRequest.h" #include "model/GetInstancesStatusCountResult.h" #include "model/ListUserQuotasRequest.h" @@ -57,12 +57,12 @@ namespace AlibabaCloud typedef Outcome GetProjectInstanceOutcome; typedef std::future GetProjectInstanceOutcomeCallable; typedef std::function&)> GetProjectInstanceAsyncHandler; - typedef Outcome QueryResourceInventoryOutcome; - typedef std::future QueryResourceInventoryOutcomeCallable; - typedef std::function&)> QueryResourceInventoryAsyncHandler; typedef Outcome QueryTopologyOutcome; typedef std::future QueryTopologyOutcomeCallable; typedef std::function&)> QueryTopologyAsyncHandler; + typedef Outcome QueryResourceInventoryOutcome; + typedef std::future QueryResourceInventoryOutcomeCallable; + typedef std::function&)> QueryResourceInventoryAsyncHandler; typedef Outcome GetInstancesStatusCountOutcome; typedef std::future GetInstancesStatusCountOutcomeCallable; typedef std::function&)> GetInstancesStatusCountAsyncHandler; @@ -92,12 +92,12 @@ namespace AlibabaCloud GetProjectInstanceOutcome getProjectInstance(const Model::GetProjectInstanceRequest &request)const; void getProjectInstanceAsync(const Model::GetProjectInstanceRequest& request, const GetProjectInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetProjectInstanceOutcomeCallable getProjectInstanceCallable(const Model::GetProjectInstanceRequest& request) const; - QueryResourceInventoryOutcome queryResourceInventory(const Model::QueryResourceInventoryRequest &request)const; - void queryResourceInventoryAsync(const Model::QueryResourceInventoryRequest& request, const QueryResourceInventoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryResourceInventoryOutcomeCallable queryResourceInventoryCallable(const Model::QueryResourceInventoryRequest& request) const; QueryTopologyOutcome queryTopology(const Model::QueryTopologyRequest &request)const; void queryTopologyAsync(const Model::QueryTopologyRequest& request, const QueryTopologyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTopologyOutcomeCallable queryTopologyCallable(const Model::QueryTopologyRequest& request) const; + QueryResourceInventoryOutcome queryResourceInventory(const Model::QueryResourceInventoryRequest &request)const; + void queryResourceInventoryAsync(const Model::QueryResourceInventoryRequest& request, const QueryResourceInventoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryResourceInventoryOutcomeCallable queryResourceInventoryCallable(const Model::QueryResourceInventoryRequest& request) const; GetInstancesStatusCountOutcome getInstancesStatusCount(const Model::GetInstancesStatusCountRequest &request)const; void getInstancesStatusCountAsync(const Model::GetInstancesStatusCountRequest& request, const GetInstancesStatusCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetInstancesStatusCountOutcomeCallable getInstancesStatusCountCallable(const Model::GetInstancesStatusCountRequest& request) const; diff --git a/teslamaxcompute/src/TeslaMaxComputeClient.cc b/teslamaxcompute/src/TeslaMaxComputeClient.cc index 50f87eaa0..8718e0292 100644 --- a/teslamaxcompute/src/TeslaMaxComputeClient.cc +++ b/teslamaxcompute/src/TeslaMaxComputeClient.cc @@ -123,42 +123,6 @@ TeslaMaxComputeClient::GetProjectInstanceOutcomeCallable TeslaMaxComputeClient:: return task->get_future(); } -TeslaMaxComputeClient::QueryResourceInventoryOutcome TeslaMaxComputeClient::queryResourceInventory(const QueryResourceInventoryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryResourceInventoryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryResourceInventoryOutcome(QueryResourceInventoryResult(outcome.result())); - else - return QueryResourceInventoryOutcome(outcome.error()); -} - -void TeslaMaxComputeClient::queryResourceInventoryAsync(const QueryResourceInventoryRequest& request, const QueryResourceInventoryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryResourceInventory(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TeslaMaxComputeClient::QueryResourceInventoryOutcomeCallable TeslaMaxComputeClient::queryResourceInventoryCallable(const QueryResourceInventoryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryResourceInventory(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TeslaMaxComputeClient::QueryTopologyOutcome TeslaMaxComputeClient::queryTopology(const QueryTopologyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +159,42 @@ TeslaMaxComputeClient::QueryTopologyOutcomeCallable TeslaMaxComputeClient::query return task->get_future(); } +TeslaMaxComputeClient::QueryResourceInventoryOutcome TeslaMaxComputeClient::queryResourceInventory(const QueryResourceInventoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryResourceInventoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryResourceInventoryOutcome(QueryResourceInventoryResult(outcome.result())); + else + return QueryResourceInventoryOutcome(outcome.error()); +} + +void TeslaMaxComputeClient::queryResourceInventoryAsync(const QueryResourceInventoryRequest& request, const QueryResourceInventoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryResourceInventory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TeslaMaxComputeClient::QueryResourceInventoryOutcomeCallable TeslaMaxComputeClient::queryResourceInventoryCallable(const QueryResourceInventoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryResourceInventory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TeslaMaxComputeClient::GetInstancesStatusCountOutcome TeslaMaxComputeClient::getInstancesStatusCount(const GetInstancesStatusCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/teslamaxcompute/src/model/GetClusterInstanceRequest.cc b/teslamaxcompute/src/model/GetClusterInstanceRequest.cc index 8d522dfb3..db17bf732 100644 --- a/teslamaxcompute/src/model/GetClusterInstanceRequest.cc +++ b/teslamaxcompute/src/model/GetClusterInstanceRequest.cc @@ -33,7 +33,7 @@ std::string GetClusterInstanceRequest::getCluster()const void GetClusterInstanceRequest::setCluster(const std::string& cluster) { cluster_ = cluster; - setParameter("Cluster", cluster); + setCoreParameter("Cluster", cluster); } int GetClusterInstanceRequest::getPageSize()const @@ -44,7 +44,7 @@ int GetClusterInstanceRequest::getPageSize()const void GetClusterInstanceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetClusterInstanceRequest::getPageNum()const @@ -55,7 +55,7 @@ int GetClusterInstanceRequest::getPageNum()const void GetClusterInstanceRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string GetClusterInstanceRequest::getRegion()const @@ -66,7 +66,7 @@ std::string GetClusterInstanceRequest::getRegion()const void GetClusterInstanceRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string GetClusterInstanceRequest::getStatus()const @@ -77,6 +77,6 @@ std::string GetClusterInstanceRequest::getStatus()const void GetClusterInstanceRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/teslamaxcompute/src/model/GetClusterInstanceResult.cc b/teslamaxcompute/src/model/GetClusterInstanceResult.cc index 7a4174369..567ef81e7 100644 --- a/teslamaxcompute/src/model/GetClusterInstanceResult.cc +++ b/teslamaxcompute/src/model/GetClusterInstanceResult.cc @@ -35,10 +35,13 @@ GetClusterInstanceResult::~GetClusterInstanceResult() void GetClusterInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Total"].isNull()) diff --git a/teslamaxcompute/src/model/GetInstancesStatusCountRequest.cc b/teslamaxcompute/src/model/GetInstancesStatusCountRequest.cc index a12686496..346aac44a 100644 --- a/teslamaxcompute/src/model/GetInstancesStatusCountRequest.cc +++ b/teslamaxcompute/src/model/GetInstancesStatusCountRequest.cc @@ -33,7 +33,7 @@ std::string GetInstancesStatusCountRequest::getCluster()const void GetInstancesStatusCountRequest::setCluster(const std::string& cluster) { cluster_ = cluster; - setParameter("Cluster", cluster); + setCoreParameter("Cluster", cluster); } std::string GetInstancesStatusCountRequest::getQuotaId()const @@ -44,7 +44,7 @@ std::string GetInstancesStatusCountRequest::getQuotaId()const void GetInstancesStatusCountRequest::setQuotaId(const std::string& quotaId) { quotaId_ = quotaId; - setParameter("QuotaId", quotaId); + setCoreParameter("QuotaId", quotaId); } std::string GetInstancesStatusCountRequest::getRegion()const @@ -55,7 +55,7 @@ std::string GetInstancesStatusCountRequest::getRegion()const void GetInstancesStatusCountRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string GetInstancesStatusCountRequest::getQuotaName()const @@ -66,6 +66,6 @@ std::string GetInstancesStatusCountRequest::getQuotaName()const void GetInstancesStatusCountRequest::setQuotaName(const std::string& quotaName) { quotaName_ = quotaName; - setParameter("QuotaName", quotaName); + setCoreParameter("QuotaName", quotaName); } diff --git a/teslamaxcompute/src/model/GetInstancesStatusCountResult.cc b/teslamaxcompute/src/model/GetInstancesStatusCountResult.cc index 06342a69c..5c0cc905c 100644 --- a/teslamaxcompute/src/model/GetInstancesStatusCountResult.cc +++ b/teslamaxcompute/src/model/GetInstancesStatusCountResult.cc @@ -35,10 +35,13 @@ GetInstancesStatusCountResult::~GetInstancesStatusCountResult() void GetInstancesStatusCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DataItem"]; for (auto value : allData) diff --git a/teslamaxcompute/src/model/GetProjectInstanceRequest.cc b/teslamaxcompute/src/model/GetProjectInstanceRequest.cc index 8cdb3d116..e6c80cd18 100644 --- a/teslamaxcompute/src/model/GetProjectInstanceRequest.cc +++ b/teslamaxcompute/src/model/GetProjectInstanceRequest.cc @@ -33,7 +33,7 @@ int GetProjectInstanceRequest::getPageSize()const void GetProjectInstanceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string GetProjectInstanceRequest::getProject()const @@ -44,7 +44,7 @@ std::string GetProjectInstanceRequest::getProject()const void GetProjectInstanceRequest::setProject(const std::string& project) { project_ = project; - setParameter("Project", project); + setCoreParameter("Project", project); } int GetProjectInstanceRequest::getPageNum()const @@ -55,7 +55,7 @@ int GetProjectInstanceRequest::getPageNum()const void GetProjectInstanceRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string GetProjectInstanceRequest::getRegion()const @@ -66,7 +66,7 @@ std::string GetProjectInstanceRequest::getRegion()const void GetProjectInstanceRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string GetProjectInstanceRequest::getStatus()const @@ -77,6 +77,6 @@ std::string GetProjectInstanceRequest::getStatus()const void GetProjectInstanceRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/teslamaxcompute/src/model/GetProjectInstanceResult.cc b/teslamaxcompute/src/model/GetProjectInstanceResult.cc index 7d9d2fec8..c265b6f20 100644 --- a/teslamaxcompute/src/model/GetProjectInstanceResult.cc +++ b/teslamaxcompute/src/model/GetProjectInstanceResult.cc @@ -35,10 +35,13 @@ GetProjectInstanceResult::~GetProjectInstanceResult() void GetProjectInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Total"].isNull()) diff --git a/teslamaxcompute/src/model/GetQuotaHistoryInfoRequest.cc b/teslamaxcompute/src/model/GetQuotaHistoryInfoRequest.cc index 971f6b383..fb0e9afd9 100644 --- a/teslamaxcompute/src/model/GetQuotaHistoryInfoRequest.cc +++ b/teslamaxcompute/src/model/GetQuotaHistoryInfoRequest.cc @@ -33,7 +33,7 @@ std::string GetQuotaHistoryInfoRequest::getCluster()const void GetQuotaHistoryInfoRequest::setCluster(const std::string& cluster) { cluster_ = cluster; - setParameter("Cluster", cluster); + setCoreParameter("Cluster", cluster); } int GetQuotaHistoryInfoRequest::getEndTime()const @@ -44,7 +44,7 @@ int GetQuotaHistoryInfoRequest::getEndTime()const void GetQuotaHistoryInfoRequest::setEndTime(int endTime) { endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); + setCoreParameter("EndTime", std::to_string(endTime)); } int GetQuotaHistoryInfoRequest::getStartTime()const @@ -55,7 +55,7 @@ int GetQuotaHistoryInfoRequest::getStartTime()const void GetQuotaHistoryInfoRequest::setStartTime(int startTime) { startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); + setCoreParameter("StartTime", std::to_string(startTime)); } std::string GetQuotaHistoryInfoRequest::getRegion()const @@ -66,7 +66,7 @@ std::string GetQuotaHistoryInfoRequest::getRegion()const void GetQuotaHistoryInfoRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string GetQuotaHistoryInfoRequest::getQuotaName()const @@ -77,6 +77,6 @@ std::string GetQuotaHistoryInfoRequest::getQuotaName()const void GetQuotaHistoryInfoRequest::setQuotaName(const std::string& quotaName) { quotaName_ = quotaName; - setParameter("QuotaName", quotaName); + setCoreParameter("QuotaName", quotaName); } diff --git a/teslamaxcompute/src/model/GetQuotaHistoryInfoResult.cc b/teslamaxcompute/src/model/GetQuotaHistoryInfoResult.cc index eaf88260a..491886042 100644 --- a/teslamaxcompute/src/model/GetQuotaHistoryInfoResult.cc +++ b/teslamaxcompute/src/model/GetQuotaHistoryInfoResult.cc @@ -35,10 +35,13 @@ GetQuotaHistoryInfoResult::~GetQuotaHistoryInfoResult() void GetQuotaHistoryInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DataItem"]; for (auto value : allData) diff --git a/teslamaxcompute/src/model/GetQuotaInstanceRequest.cc b/teslamaxcompute/src/model/GetQuotaInstanceRequest.cc index 993afec05..2132feb01 100644 --- a/teslamaxcompute/src/model/GetQuotaInstanceRequest.cc +++ b/teslamaxcompute/src/model/GetQuotaInstanceRequest.cc @@ -33,7 +33,7 @@ std::string GetQuotaInstanceRequest::getCluster()const void GetQuotaInstanceRequest::setCluster(const std::string& cluster) { cluster_ = cluster; - setParameter("Cluster", cluster); + setCoreParameter("Cluster", cluster); } int GetQuotaInstanceRequest::getPageSize()const @@ -44,7 +44,7 @@ int GetQuotaInstanceRequest::getPageSize()const void GetQuotaInstanceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string GetQuotaInstanceRequest::getQuotaId()const @@ -55,7 +55,7 @@ std::string GetQuotaInstanceRequest::getQuotaId()const void GetQuotaInstanceRequest::setQuotaId(const std::string& quotaId) { quotaId_ = quotaId; - setParameter("QuotaId", quotaId); + setCoreParameter("QuotaId", quotaId); } int GetQuotaInstanceRequest::getPageNum()const @@ -66,7 +66,7 @@ int GetQuotaInstanceRequest::getPageNum()const void GetQuotaInstanceRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string GetQuotaInstanceRequest::getRegion()const @@ -77,7 +77,7 @@ std::string GetQuotaInstanceRequest::getRegion()const void GetQuotaInstanceRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string GetQuotaInstanceRequest::getQuotaName()const @@ -88,7 +88,7 @@ std::string GetQuotaInstanceRequest::getQuotaName()const void GetQuotaInstanceRequest::setQuotaName(const std::string& quotaName) { quotaName_ = quotaName; - setParameter("QuotaName", quotaName); + setCoreParameter("QuotaName", quotaName); } std::string GetQuotaInstanceRequest::getStatus()const @@ -99,6 +99,6 @@ std::string GetQuotaInstanceRequest::getStatus()const void GetQuotaInstanceRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/teslamaxcompute/src/model/GetQuotaInstanceResult.cc b/teslamaxcompute/src/model/GetQuotaInstanceResult.cc index 80e980e3a..cc60c73c1 100644 --- a/teslamaxcompute/src/model/GetQuotaInstanceResult.cc +++ b/teslamaxcompute/src/model/GetQuotaInstanceResult.cc @@ -35,10 +35,13 @@ GetQuotaInstanceResult::~GetQuotaInstanceResult() void GetQuotaInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Total"].isNull()) diff --git a/teslamaxcompute/src/model/GetUserInstanceRequest.cc b/teslamaxcompute/src/model/GetUserInstanceRequest.cc index f1eab1d48..533f8b4ce 100644 --- a/teslamaxcompute/src/model/GetUserInstanceRequest.cc +++ b/teslamaxcompute/src/model/GetUserInstanceRequest.cc @@ -33,7 +33,7 @@ int GetUserInstanceRequest::getPageSize()const void GetUserInstanceRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } int GetUserInstanceRequest::getPageNum()const @@ -44,7 +44,7 @@ int GetUserInstanceRequest::getPageNum()const void GetUserInstanceRequest::setPageNum(int pageNum) { pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); + setCoreParameter("PageNum", std::to_string(pageNum)); } std::string GetUserInstanceRequest::getRegion()const @@ -55,7 +55,7 @@ std::string GetUserInstanceRequest::getRegion()const void GetUserInstanceRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } std::string GetUserInstanceRequest::getUser()const @@ -66,7 +66,7 @@ std::string GetUserInstanceRequest::getUser()const void GetUserInstanceRequest::setUser(const std::string& user) { user_ = user; - setParameter("User", user); + setCoreParameter("User", user); } std::string GetUserInstanceRequest::getStatus()const @@ -77,6 +77,6 @@ std::string GetUserInstanceRequest::getStatus()const void GetUserInstanceRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/teslamaxcompute/src/model/GetUserInstanceResult.cc b/teslamaxcompute/src/model/GetUserInstanceResult.cc index dc7471892..1c56789d3 100644 --- a/teslamaxcompute/src/model/GetUserInstanceResult.cc +++ b/teslamaxcompute/src/model/GetUserInstanceResult.cc @@ -35,10 +35,13 @@ GetUserInstanceResult::~GetUserInstanceResult() void GetUserInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Total"].isNull()) diff --git a/teslamaxcompute/src/model/QueryCustomerSaleInfoRequest.cc b/teslamaxcompute/src/model/QueryCustomerSaleInfoRequest.cc index 4655541dc..8c3f23308 100644 --- a/teslamaxcompute/src/model/QueryCustomerSaleInfoRequest.cc +++ b/teslamaxcompute/src/model/QueryCustomerSaleInfoRequest.cc @@ -33,6 +33,6 @@ std::string QueryCustomerSaleInfoRequest::getRegionName()const void QueryCustomerSaleInfoRequest::setRegionName(const std::string& regionName) { regionName_ = regionName; - setParameter("RegionName", regionName); + setCoreParameter("RegionName", regionName); } diff --git a/teslamaxcompute/src/model/QueryCustomerSaleInfoResult.cc b/teslamaxcompute/src/model/QueryCustomerSaleInfoResult.cc index c3818bb9f..b77b0991f 100644 --- a/teslamaxcompute/src/model/QueryCustomerSaleInfoResult.cc +++ b/teslamaxcompute/src/model/QueryCustomerSaleInfoResult.cc @@ -35,10 +35,13 @@ QueryCustomerSaleInfoResult::~QueryCustomerSaleInfoResult() void QueryCustomerSaleInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["LastUpdate"].isNull()) diff --git a/teslamaxcompute/src/model/QueryResourceInventoryResult.cc b/teslamaxcompute/src/model/QueryResourceInventoryResult.cc index 58b77cc49..51bd89824 100644 --- a/teslamaxcompute/src/model/QueryResourceInventoryResult.cc +++ b/teslamaxcompute/src/model/QueryResourceInventoryResult.cc @@ -35,10 +35,13 @@ QueryResourceInventoryResult::~QueryResourceInventoryResult() void QueryResourceInventoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["LastUpdate"].isNull()) diff --git a/teslamaxcompute/src/model/QueryTopologyResult.cc b/teslamaxcompute/src/model/QueryTopologyResult.cc index ca9635f84..f02756bd0 100644 --- a/teslamaxcompute/src/model/QueryTopologyResult.cc +++ b/teslamaxcompute/src/model/QueryTopologyResult.cc @@ -35,10 +35,13 @@ QueryTopologyResult::~QueryTopologyResult() void QueryTopologyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allResult = value["Result"]["resultItem"]; for (auto value : allResult) diff --git a/teslastream/src/model/BatchGetJobMetricInfoRequest.cc b/teslastream/src/model/BatchGetJobMetricInfoRequest.cc index 160fc48ef..722f7c781 100644 --- a/teslastream/src/model/BatchGetJobMetricInfoRequest.cc +++ b/teslastream/src/model/BatchGetJobMetricInfoRequest.cc @@ -33,6 +33,6 @@ std::string BatchGetJobMetricInfoRequest::getJobInfos()const void BatchGetJobMetricInfoRequest::setJobInfos(const std::string& jobInfos) { jobInfos_ = jobInfos; - setParameter("JobInfos", jobInfos); + setCoreParameter("JobInfos", jobInfos); } diff --git a/teslastream/src/model/BatchGetJobMetricInfoResult.cc b/teslastream/src/model/BatchGetJobMetricInfoResult.cc index afba4e794..c0455efb9 100644 --- a/teslastream/src/model/BatchGetJobMetricInfoResult.cc +++ b/teslastream/src/model/BatchGetJobMetricInfoResult.cc @@ -35,10 +35,13 @@ BatchGetJobMetricInfoResult::~BatchGetJobMetricInfoResult() void BatchGetJobMetricInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Job"]; for (auto value : allData) diff --git a/teslastream/src/model/BatchGetPluginConfigInfoRequest.cc b/teslastream/src/model/BatchGetPluginConfigInfoRequest.cc index 8811027c0..336c41037 100644 --- a/teslastream/src/model/BatchGetPluginConfigInfoRequest.cc +++ b/teslastream/src/model/BatchGetPluginConfigInfoRequest.cc @@ -33,6 +33,6 @@ std::string BatchGetPluginConfigInfoRequest::getPluginInfos()const void BatchGetPluginConfigInfoRequest::setPluginInfos(const std::string& pluginInfos) { pluginInfos_ = pluginInfos; - setParameter("PluginInfos", pluginInfos); + setCoreParameter("PluginInfos", pluginInfos); } diff --git a/teslastream/src/model/BatchGetPluginConfigInfoResult.cc b/teslastream/src/model/BatchGetPluginConfigInfoResult.cc index 37c37ffd6..4abc0bd5f 100644 --- a/teslastream/src/model/BatchGetPluginConfigInfoResult.cc +++ b/teslastream/src/model/BatchGetPluginConfigInfoResult.cc @@ -35,10 +35,13 @@ BatchGetPluginConfigInfoResult::~BatchGetPluginConfigInfoResult() void BatchGetPluginConfigInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["plugin"]; for (auto value : allData) diff --git a/teslastream/src/model/GetJobTopologyRequest.cc b/teslastream/src/model/GetJobTopologyRequest.cc index 1580e9902..c254cb99f 100644 --- a/teslastream/src/model/GetJobTopologyRequest.cc +++ b/teslastream/src/model/GetJobTopologyRequest.cc @@ -33,6 +33,6 @@ std::string GetJobTopologyRequest::getJobName()const void GetJobTopologyRequest::setJobName(const std::string& jobName) { jobName_ = jobName; - setParameter("JobName", jobName); + setCoreParameter("JobName", jobName); } diff --git a/teslastream/src/model/GetJobTopologyResult.cc b/teslastream/src/model/GetJobTopologyResult.cc index c8ec9b640..c6d1bddf5 100644 --- a/teslastream/src/model/GetJobTopologyResult.cc +++ b/teslastream/src/model/GetJobTopologyResult.cc @@ -35,10 +35,13 @@ GetJobTopologyResult::~GetJobTopologyResult() void GetJobTopologyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Job"]; for (auto value : allData) diff --git a/test/core/commonclient_ut.cc b/test/core/commonclient_ut.cc index 439769466..6d859f4c9 100644 --- a/test/core/commonclient_ut.cc +++ b/test/core/commonclient_ut.cc @@ -2,7 +2,7 @@ #include #include #include "gtest/gtest.h" -#include "../../core/src/Utils.h" +#include "alibabacloud/core/Utils.h" #include "alibabacloud/core/Config.h" #include "alibabacloud/core/AlibabaCloud.h" #include "alibabacloud/core/CommonClient.h" diff --git a/test/core/timeout_ut.cc b/test/core/timeout_ut.cc index 23579402b..51660017c 100644 --- a/test/core/timeout_ut.cc +++ b/test/core/timeout_ut.cc @@ -2,7 +2,7 @@ #include #include #include "gtest/gtest.h" -#include "../../core/src/Utils.h" +#include "alibabacloud/core/Utils.h" #include "alibabacloud/core/Config.h" #include "alibabacloud/core/AlibabaCloud.h" #include "alibabacloud/core/CommonClient.h" diff --git a/test/core/utils_ut.cc b/test/core/utils_ut.cc index 71814b87d..5b79fb699 100644 --- a/test/core/utils_ut.cc +++ b/test/core/utils_ut.cc @@ -1,5 +1,5 @@ #include "gtest/gtest.h" -#include "../../core/src/Utils.h" +#include "alibabacloud/core/Utils.h" #include using namespace std; diff --git a/trademark/CMakeLists.txt b/trademark/CMakeLists.txt index 9f9a8dad2..cc0a6ad9f 100644 --- a/trademark/CMakeLists.txt +++ b/trademark/CMakeLists.txt @@ -20,10 +20,226 @@ set(trademark_public_header include/alibabacloud/trademark/TrademarkClient.h include/alibabacloud/trademark/TrademarkExport.h ) -set(trademark_public_header_model ) +set(trademark_public_header_model + include/alibabacloud/trademark/model/QueryTradeProduceListRequest.h + include/alibabacloud/trademark/model/QueryTradeProduceListResult.h + include/alibabacloud/trademark/model/QueryTrademarkMonitorResultsRequest.h + include/alibabacloud/trademark/model/QueryTrademarkMonitorResultsResult.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationsRequest.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationsResult.h + include/alibabacloud/trademark/model/CancelTradeOrderRequest.h + include/alibabacloud/trademark/model/CancelTradeOrderResult.h + include/alibabacloud/trademark/model/DeleteTmMonitorRuleRequest.h + include/alibabacloud/trademark/model/DeleteTmMonitorRuleResult.h + include/alibabacloud/trademark/model/WriteIntentionCommunicationLogRequest.h + include/alibabacloud/trademark/model/WriteIntentionCommunicationLogResult.h + include/alibabacloud/trademark/model/SaveTaskRequest.h + include/alibabacloud/trademark/model/SaveTaskResult.h + include/alibabacloud/trademark/model/UploadNotaryDataRequest.h + include/alibabacloud/trademark/model/UploadNotaryDataResult.h + include/alibabacloud/trademark/model/QueryIntentionDetailRequest.h + include/alibabacloud/trademark/model/QueryIntentionDetailResult.h + include/alibabacloud/trademark/model/GetNotaryOrderRequest.h + include/alibabacloud/trademark/model/GetNotaryOrderResult.h + include/alibabacloud/trademark/model/QuerySupplementDetailRequest.h + include/alibabacloud/trademark/model/QuerySupplementDetailResult.h + include/alibabacloud/trademark/model/InsertRenewInfoRequest.h + include/alibabacloud/trademark/model/InsertRenewInfoResult.h + include/alibabacloud/trademark/model/QueryCredentialsInfoRequest.h + include/alibabacloud/trademark/model/QueryCredentialsInfoResult.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionRequest.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionResult.h + include/alibabacloud/trademark/model/ApplyNotaryPostRequest.h + include/alibabacloud/trademark/model/ApplyNotaryPostResult.h + include/alibabacloud/trademark/model/GenerateUploadFilePolicyRequest.h + include/alibabacloud/trademark/model/GenerateUploadFilePolicyResult.h + include/alibabacloud/trademark/model/DeleteMaterialRequest.h + include/alibabacloud/trademark/model/DeleteMaterialResult.h + include/alibabacloud/trademark/model/WriteCommunicationLogRequest.h + include/alibabacloud/trademark/model/WriteCommunicationLogResult.h + include/alibabacloud/trademark/model/InsertTradeIntentionUserRequest.h + include/alibabacloud/trademark/model/InsertTradeIntentionUserResult.h + include/alibabacloud/trademark/model/QueryTradeProduceDetailRequest.h + include/alibabacloud/trademark/model/QueryTradeProduceDetailResult.h + include/alibabacloud/trademark/model/SubmitSupplementRequest.h + include/alibabacloud/trademark/model/SubmitSupplementResult.h + include/alibabacloud/trademark/model/QueryQrCodeUploadStatusRequest.h + include/alibabacloud/trademark/model/QueryQrCodeUploadStatusResult.h + include/alibabacloud/trademark/model/BindMaterialRequest.h + include/alibabacloud/trademark/model/BindMaterialResult.h + include/alibabacloud/trademark/model/StoreMaterialTemporarilyRequest.h + include/alibabacloud/trademark/model/StoreMaterialTemporarilyResult.h + include/alibabacloud/trademark/model/QueryTradeIntentionUserListRequest.h + include/alibabacloud/trademark/model/QueryTradeIntentionUserListResult.h + include/alibabacloud/trademark/model/ListNotaryInfosRequest.h + include/alibabacloud/trademark/model/ListNotaryInfosResult.h + include/alibabacloud/trademark/model/QueryCommunicationLogsRequest.h + include/alibabacloud/trademark/model/QueryCommunicationLogsResult.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationDetailRequest.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationDetailResult.h + include/alibabacloud/trademark/model/GenerateQrCodeRequest.h + include/alibabacloud/trademark/model/GenerateQrCodeResult.h + include/alibabacloud/trademark/model/FillLogisticsRequest.h + include/alibabacloud/trademark/model/FillLogisticsResult.h + include/alibabacloud/trademark/model/UpdateMaterialRequest.h + include/alibabacloud/trademark/model/UpdateMaterialResult.h + include/alibabacloud/trademark/model/RefundProduceRequest.h + include/alibabacloud/trademark/model/RefundProduceResult.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationLogsRequest.h + include/alibabacloud/trademark/model/QueryTradeMarkApplicationLogsResult.h + include/alibabacloud/trademark/model/ConvertImageToGrayRequest.h + include/alibabacloud/trademark/model/ConvertImageToGrayResult.h + include/alibabacloud/trademark/model/QueryIntentionListRequest.h + include/alibabacloud/trademark/model/QueryIntentionListResult.h + include/alibabacloud/trademark/model/CombineLoaRequest.h + include/alibabacloud/trademark/model/CombineLoaResult.h + include/alibabacloud/trademark/model/QueryTrademarkPriceRequest.h + include/alibabacloud/trademark/model/QueryTrademarkPriceResult.h + include/alibabacloud/trademark/model/FilterUnavailableCodesRequest.h + include/alibabacloud/trademark/model/FilterUnavailableCodesResult.h + include/alibabacloud/trademark/model/InsertMaterialRequest.h + include/alibabacloud/trademark/model/InsertMaterialResult.h + include/alibabacloud/trademark/model/QueryTaskListRequest.h + include/alibabacloud/trademark/model/QueryTaskListResult.h + include/alibabacloud/trademark/model/QueryMonitorKeywordsRequest.h + include/alibabacloud/trademark/model/QueryMonitorKeywordsResult.h + include/alibabacloud/trademark/model/InsertTmMonitorRuleRequest.h + include/alibabacloud/trademark/model/InsertTmMonitorRuleResult.h + include/alibabacloud/trademark/model/CheckLoaFillRequest.h + include/alibabacloud/trademark/model/CheckLoaFillResult.h + include/alibabacloud/trademark/model/QueryTrademarkMonitorRulesRequest.h + include/alibabacloud/trademark/model/QueryTrademarkMonitorRulesResult.h + include/alibabacloud/trademark/model/QueryOssResourcesRequest.h + include/alibabacloud/trademark/model/QueryOssResourcesResult.h + include/alibabacloud/trademark/model/CreateIntentionOrderRequest.h + include/alibabacloud/trademark/model/CreateIntentionOrderResult.h + include/alibabacloud/trademark/model/DenySupplementRequest.h + include/alibabacloud/trademark/model/DenySupplementResult.h + include/alibabacloud/trademark/model/ListNotaryOrdersRequest.h + include/alibabacloud/trademark/model/ListNotaryOrdersResult.h + include/alibabacloud/trademark/model/QueryMaterialRequest.h + include/alibabacloud/trademark/model/QueryMaterialResult.h + include/alibabacloud/trademark/model/UpdateTmMonitorRuleRequest.h + include/alibabacloud/trademark/model/UpdateTmMonitorRuleResult.h + include/alibabacloud/trademark/model/StartNotaryRequest.h + include/alibabacloud/trademark/model/StartNotaryResult.h + include/alibabacloud/trademark/model/QueryMaterialListRequest.h + include/alibabacloud/trademark/model/QueryMaterialListResult.h + include/alibabacloud/trademark/model/UpdateSendMaterialNumRequest.h + include/alibabacloud/trademark/model/UpdateSendMaterialNumResult.h + include/alibabacloud/trademark/model/CreateTrademarkOrderRequest.h + include/alibabacloud/trademark/model/CreateTrademarkOrderResult.h ) set(trademark_src - src/TrademarkClient.cc ) + src/TrademarkClient.cc + src/model/QueryTradeProduceListRequest.cc + src/model/QueryTradeProduceListResult.cc + src/model/QueryTrademarkMonitorResultsRequest.cc + src/model/QueryTrademarkMonitorResultsResult.cc + src/model/QueryTradeMarkApplicationsRequest.cc + src/model/QueryTradeMarkApplicationsResult.cc + src/model/CancelTradeOrderRequest.cc + src/model/CancelTradeOrderResult.cc + src/model/DeleteTmMonitorRuleRequest.cc + src/model/DeleteTmMonitorRuleResult.cc + src/model/WriteIntentionCommunicationLogRequest.cc + src/model/WriteIntentionCommunicationLogResult.cc + src/model/SaveTaskRequest.cc + src/model/SaveTaskResult.cc + src/model/UploadNotaryDataRequest.cc + src/model/UploadNotaryDataResult.cc + src/model/QueryIntentionDetailRequest.cc + src/model/QueryIntentionDetailResult.cc + src/model/GetNotaryOrderRequest.cc + src/model/GetNotaryOrderResult.cc + src/model/QuerySupplementDetailRequest.cc + src/model/QuerySupplementDetailResult.cc + src/model/InsertRenewInfoRequest.cc + src/model/InsertRenewInfoResult.cc + src/model/QueryCredentialsInfoRequest.cc + src/model/QueryCredentialsInfoResult.cc + src/model/QueryTradeMarkApplicationsByIntentionRequest.cc + src/model/QueryTradeMarkApplicationsByIntentionResult.cc + src/model/ApplyNotaryPostRequest.cc + src/model/ApplyNotaryPostResult.cc + src/model/GenerateUploadFilePolicyRequest.cc + src/model/GenerateUploadFilePolicyResult.cc + src/model/DeleteMaterialRequest.cc + src/model/DeleteMaterialResult.cc + src/model/WriteCommunicationLogRequest.cc + src/model/WriteCommunicationLogResult.cc + src/model/InsertTradeIntentionUserRequest.cc + src/model/InsertTradeIntentionUserResult.cc + src/model/QueryTradeProduceDetailRequest.cc + src/model/QueryTradeProduceDetailResult.cc + src/model/SubmitSupplementRequest.cc + src/model/SubmitSupplementResult.cc + src/model/QueryQrCodeUploadStatusRequest.cc + src/model/QueryQrCodeUploadStatusResult.cc + src/model/BindMaterialRequest.cc + src/model/BindMaterialResult.cc + src/model/StoreMaterialTemporarilyRequest.cc + src/model/StoreMaterialTemporarilyResult.cc + src/model/QueryTradeIntentionUserListRequest.cc + src/model/QueryTradeIntentionUserListResult.cc + src/model/ListNotaryInfosRequest.cc + src/model/ListNotaryInfosResult.cc + src/model/QueryCommunicationLogsRequest.cc + src/model/QueryCommunicationLogsResult.cc + src/model/QueryTradeMarkApplicationDetailRequest.cc + src/model/QueryTradeMarkApplicationDetailResult.cc + src/model/GenerateQrCodeRequest.cc + src/model/GenerateQrCodeResult.cc + src/model/FillLogisticsRequest.cc + src/model/FillLogisticsResult.cc + src/model/UpdateMaterialRequest.cc + src/model/UpdateMaterialResult.cc + src/model/RefundProduceRequest.cc + src/model/RefundProduceResult.cc + src/model/QueryTradeMarkApplicationLogsRequest.cc + src/model/QueryTradeMarkApplicationLogsResult.cc + src/model/ConvertImageToGrayRequest.cc + src/model/ConvertImageToGrayResult.cc + src/model/QueryIntentionListRequest.cc + src/model/QueryIntentionListResult.cc + src/model/CombineLoaRequest.cc + src/model/CombineLoaResult.cc + src/model/QueryTrademarkPriceRequest.cc + src/model/QueryTrademarkPriceResult.cc + src/model/FilterUnavailableCodesRequest.cc + src/model/FilterUnavailableCodesResult.cc + src/model/InsertMaterialRequest.cc + src/model/InsertMaterialResult.cc + src/model/QueryTaskListRequest.cc + src/model/QueryTaskListResult.cc + src/model/QueryMonitorKeywordsRequest.cc + src/model/QueryMonitorKeywordsResult.cc + src/model/InsertTmMonitorRuleRequest.cc + src/model/InsertTmMonitorRuleResult.cc + src/model/CheckLoaFillRequest.cc + src/model/CheckLoaFillResult.cc + src/model/QueryTrademarkMonitorRulesRequest.cc + src/model/QueryTrademarkMonitorRulesResult.cc + src/model/QueryOssResourcesRequest.cc + src/model/QueryOssResourcesResult.cc + src/model/CreateIntentionOrderRequest.cc + src/model/CreateIntentionOrderResult.cc + src/model/DenySupplementRequest.cc + src/model/DenySupplementResult.cc + src/model/ListNotaryOrdersRequest.cc + src/model/ListNotaryOrdersResult.cc + src/model/QueryMaterialRequest.cc + src/model/QueryMaterialResult.cc + src/model/UpdateTmMonitorRuleRequest.cc + src/model/UpdateTmMonitorRuleResult.cc + src/model/StartNotaryRequest.cc + src/model/StartNotaryResult.cc + src/model/QueryMaterialListRequest.cc + src/model/QueryMaterialListResult.cc + src/model/UpdateSendMaterialNumRequest.cc + src/model/UpdateSendMaterialNumResult.cc + src/model/CreateTrademarkOrderRequest.cc + src/model/CreateTrademarkOrderResult.cc ) add_library(trademark ${LIB_TYPE} ${trademark_public_header} diff --git a/trademark/include/alibabacloud/trademark/TrademarkClient.h b/trademark/include/alibabacloud/trademark/TrademarkClient.h index f1917b30c..ec6ac5169 100644 --- a/trademark/include/alibabacloud/trademark/TrademarkClient.h +++ b/trademark/include/alibabacloud/trademark/TrademarkClient.h @@ -22,10 +22,64 @@ #include #include #include "TrademarkExport.h" -#include "model/GenerateQrCodeRequest.h" -#include "model/GenerateQrCodeResult.h" #include "model/QueryTradeProduceListRequest.h" #include "model/QueryTradeProduceListResult.h" +#include "model/QueryTrademarkMonitorResultsRequest.h" +#include "model/QueryTrademarkMonitorResultsResult.h" +#include "model/QueryTradeMarkApplicationsRequest.h" +#include "model/QueryTradeMarkApplicationsResult.h" +#include "model/CancelTradeOrderRequest.h" +#include "model/CancelTradeOrderResult.h" +#include "model/DeleteTmMonitorRuleRequest.h" +#include "model/DeleteTmMonitorRuleResult.h" +#include "model/WriteIntentionCommunicationLogRequest.h" +#include "model/WriteIntentionCommunicationLogResult.h" +#include "model/SaveTaskRequest.h" +#include "model/SaveTaskResult.h" +#include "model/UploadNotaryDataRequest.h" +#include "model/UploadNotaryDataResult.h" +#include "model/QueryIntentionDetailRequest.h" +#include "model/QueryIntentionDetailResult.h" +#include "model/GetNotaryOrderRequest.h" +#include "model/GetNotaryOrderResult.h" +#include "model/QuerySupplementDetailRequest.h" +#include "model/QuerySupplementDetailResult.h" +#include "model/InsertRenewInfoRequest.h" +#include "model/InsertRenewInfoResult.h" +#include "model/QueryCredentialsInfoRequest.h" +#include "model/QueryCredentialsInfoResult.h" +#include "model/QueryTradeMarkApplicationsByIntentionRequest.h" +#include "model/QueryTradeMarkApplicationsByIntentionResult.h" +#include "model/ApplyNotaryPostRequest.h" +#include "model/ApplyNotaryPostResult.h" +#include "model/GenerateUploadFilePolicyRequest.h" +#include "model/GenerateUploadFilePolicyResult.h" +#include "model/DeleteMaterialRequest.h" +#include "model/DeleteMaterialResult.h" +#include "model/WriteCommunicationLogRequest.h" +#include "model/WriteCommunicationLogResult.h" +#include "model/InsertTradeIntentionUserRequest.h" +#include "model/InsertTradeIntentionUserResult.h" +#include "model/QueryTradeProduceDetailRequest.h" +#include "model/QueryTradeProduceDetailResult.h" +#include "model/SubmitSupplementRequest.h" +#include "model/SubmitSupplementResult.h" +#include "model/QueryQrCodeUploadStatusRequest.h" +#include "model/QueryQrCodeUploadStatusResult.h" +#include "model/BindMaterialRequest.h" +#include "model/BindMaterialResult.h" +#include "model/StoreMaterialTemporarilyRequest.h" +#include "model/StoreMaterialTemporarilyResult.h" +#include "model/QueryTradeIntentionUserListRequest.h" +#include "model/QueryTradeIntentionUserListResult.h" +#include "model/ListNotaryInfosRequest.h" +#include "model/ListNotaryInfosResult.h" +#include "model/QueryCommunicationLogsRequest.h" +#include "model/QueryCommunicationLogsResult.h" +#include "model/QueryTradeMarkApplicationDetailRequest.h" +#include "model/QueryTradeMarkApplicationDetailResult.h" +#include "model/GenerateQrCodeRequest.h" +#include "model/GenerateQrCodeResult.h" #include "model/FillLogisticsRequest.h" #include "model/FillLogisticsResult.h" #include "model/UpdateMaterialRequest.h" @@ -36,88 +90,46 @@ #include "model/QueryTradeMarkApplicationLogsResult.h" #include "model/ConvertImageToGrayRequest.h" #include "model/ConvertImageToGrayResult.h" -#include "model/QueryTrademarkMonitorResultsRequest.h" -#include "model/QueryTrademarkMonitorResultsResult.h" +#include "model/QueryIntentionListRequest.h" +#include "model/QueryIntentionListResult.h" #include "model/CombineLoaRequest.h" #include "model/CombineLoaResult.h" -#include "model/QueryTradeMarkApplicationsRequest.h" -#include "model/QueryTradeMarkApplicationsResult.h" -#include "model/CancelTradeOrderRequest.h" -#include "model/CancelTradeOrderResult.h" #include "model/QueryTrademarkPriceRequest.h" #include "model/QueryTrademarkPriceResult.h" -#include "model/DeleteTmMonitorRuleRequest.h" -#include "model/DeleteTmMonitorRuleResult.h" -#include "model/SaveTaskRequest.h" -#include "model/SaveTaskResult.h" #include "model/FilterUnavailableCodesRequest.h" #include "model/FilterUnavailableCodesResult.h" -#include "model/UploadNotaryDataRequest.h" -#include "model/UploadNotaryDataResult.h" #include "model/InsertMaterialRequest.h" #include "model/InsertMaterialResult.h" #include "model/QueryTaskListRequest.h" #include "model/QueryTaskListResult.h" #include "model/QueryMonitorKeywordsRequest.h" #include "model/QueryMonitorKeywordsResult.h" -#include "model/GetNotaryOrderRequest.h" -#include "model/GetNotaryOrderResult.h" #include "model/InsertTmMonitorRuleRequest.h" #include "model/InsertTmMonitorRuleResult.h" -#include "model/InsertRenewInfoRequest.h" -#include "model/InsertRenewInfoResult.h" -#include "model/QuerySupplementDetailRequest.h" -#include "model/QuerySupplementDetailResult.h" -#include "model/ApplyNotaryPostRequest.h" -#include "model/ApplyNotaryPostResult.h" -#include "model/QueryCredentialsInfoRequest.h" -#include "model/QueryCredentialsInfoResult.h" -#include "model/QueryTrademarkMonitorRulesRequest.h" -#include "model/QueryTrademarkMonitorRulesResult.h" #include "model/CheckLoaFillRequest.h" #include "model/CheckLoaFillResult.h" +#include "model/QueryTrademarkMonitorRulesRequest.h" +#include "model/QueryTrademarkMonitorRulesResult.h" #include "model/QueryOssResourcesRequest.h" #include "model/QueryOssResourcesResult.h" -#include "model/GenerateUploadFilePolicyRequest.h" -#include "model/GenerateUploadFilePolicyResult.h" -#include "model/DeleteMaterialRequest.h" -#include "model/DeleteMaterialResult.h" +#include "model/CreateIntentionOrderRequest.h" +#include "model/CreateIntentionOrderResult.h" #include "model/DenySupplementRequest.h" #include "model/DenySupplementResult.h" -#include "model/InsertTradeIntentionUserRequest.h" -#include "model/InsertTradeIntentionUserResult.h" #include "model/ListNotaryOrdersRequest.h" #include "model/ListNotaryOrdersResult.h" -#include "model/QueryTradeProduceDetailRequest.h" -#include "model/QueryTradeProduceDetailResult.h" -#include "model/SubmitSupplementRequest.h" -#include "model/SubmitSupplementResult.h" -#include "model/QueryQrCodeUploadStatusRequest.h" -#include "model/QueryQrCodeUploadStatusResult.h" #include "model/QueryMaterialRequest.h" #include "model/QueryMaterialResult.h" -#include "model/BindMaterialRequest.h" -#include "model/BindMaterialResult.h" -#include "model/QueryTradeIntentionUserListRequest.h" -#include "model/QueryTradeIntentionUserListResult.h" #include "model/UpdateTmMonitorRuleRequest.h" #include "model/UpdateTmMonitorRuleResult.h" -#include "model/StoreMaterialTemporarilyRequest.h" -#include "model/StoreMaterialTemporarilyResult.h" #include "model/StartNotaryRequest.h" #include "model/StartNotaryResult.h" #include "model/QueryMaterialListRequest.h" #include "model/QueryMaterialListResult.h" -#include "model/CreateTrademarkOrderRequest.h" -#include "model/CreateTrademarkOrderResult.h" #include "model/UpdateSendMaterialNumRequest.h" #include "model/UpdateSendMaterialNumResult.h" -#include "model/ListNotaryInfosRequest.h" -#include "model/ListNotaryInfosResult.h" -#include "model/QueryCommunicationLogsRequest.h" -#include "model/QueryCommunicationLogsResult.h" -#include "model/QueryTradeMarkApplicationDetailRequest.h" -#include "model/QueryTradeMarkApplicationDetailResult.h" +#include "model/CreateTrademarkOrderRequest.h" +#include "model/CreateTrademarkOrderResult.h" namespace AlibabaCloud @@ -127,12 +139,93 @@ namespace AlibabaCloud class ALIBABACLOUD_TRADEMARK_EXPORT TrademarkClient : public RpcServiceClient { public: - typedef Outcome GenerateQrCodeOutcome; - typedef std::future GenerateQrCodeOutcomeCallable; - typedef std::function&)> GenerateQrCodeAsyncHandler; typedef Outcome QueryTradeProduceListOutcome; typedef std::future QueryTradeProduceListOutcomeCallable; typedef std::function&)> QueryTradeProduceListAsyncHandler; + typedef Outcome QueryTrademarkMonitorResultsOutcome; + typedef std::future QueryTrademarkMonitorResultsOutcomeCallable; + typedef std::function&)> QueryTrademarkMonitorResultsAsyncHandler; + typedef Outcome QueryTradeMarkApplicationsOutcome; + typedef std::future QueryTradeMarkApplicationsOutcomeCallable; + typedef std::function&)> QueryTradeMarkApplicationsAsyncHandler; + typedef Outcome CancelTradeOrderOutcome; + typedef std::future CancelTradeOrderOutcomeCallable; + typedef std::function&)> CancelTradeOrderAsyncHandler; + typedef Outcome DeleteTmMonitorRuleOutcome; + typedef std::future DeleteTmMonitorRuleOutcomeCallable; + typedef std::function&)> DeleteTmMonitorRuleAsyncHandler; + typedef Outcome WriteIntentionCommunicationLogOutcome; + typedef std::future WriteIntentionCommunicationLogOutcomeCallable; + typedef std::function&)> WriteIntentionCommunicationLogAsyncHandler; + typedef Outcome SaveTaskOutcome; + typedef std::future SaveTaskOutcomeCallable; + typedef std::function&)> SaveTaskAsyncHandler; + typedef Outcome UploadNotaryDataOutcome; + typedef std::future UploadNotaryDataOutcomeCallable; + typedef std::function&)> UploadNotaryDataAsyncHandler; + typedef Outcome QueryIntentionDetailOutcome; + typedef std::future QueryIntentionDetailOutcomeCallable; + typedef std::function&)> QueryIntentionDetailAsyncHandler; + typedef Outcome GetNotaryOrderOutcome; + typedef std::future GetNotaryOrderOutcomeCallable; + typedef std::function&)> GetNotaryOrderAsyncHandler; + typedef Outcome QuerySupplementDetailOutcome; + typedef std::future QuerySupplementDetailOutcomeCallable; + typedef std::function&)> QuerySupplementDetailAsyncHandler; + typedef Outcome InsertRenewInfoOutcome; + typedef std::future InsertRenewInfoOutcomeCallable; + typedef std::function&)> InsertRenewInfoAsyncHandler; + typedef Outcome QueryCredentialsInfoOutcome; + typedef std::future QueryCredentialsInfoOutcomeCallable; + typedef std::function&)> QueryCredentialsInfoAsyncHandler; + typedef Outcome QueryTradeMarkApplicationsByIntentionOutcome; + typedef std::future QueryTradeMarkApplicationsByIntentionOutcomeCallable; + typedef std::function&)> QueryTradeMarkApplicationsByIntentionAsyncHandler; + typedef Outcome ApplyNotaryPostOutcome; + typedef std::future ApplyNotaryPostOutcomeCallable; + typedef std::function&)> ApplyNotaryPostAsyncHandler; + typedef Outcome GenerateUploadFilePolicyOutcome; + typedef std::future GenerateUploadFilePolicyOutcomeCallable; + typedef std::function&)> GenerateUploadFilePolicyAsyncHandler; + typedef Outcome DeleteMaterialOutcome; + typedef std::future DeleteMaterialOutcomeCallable; + typedef std::function&)> DeleteMaterialAsyncHandler; + typedef Outcome WriteCommunicationLogOutcome; + typedef std::future WriteCommunicationLogOutcomeCallable; + typedef std::function&)> WriteCommunicationLogAsyncHandler; + typedef Outcome InsertTradeIntentionUserOutcome; + typedef std::future InsertTradeIntentionUserOutcomeCallable; + typedef std::function&)> InsertTradeIntentionUserAsyncHandler; + typedef Outcome QueryTradeProduceDetailOutcome; + typedef std::future QueryTradeProduceDetailOutcomeCallable; + typedef std::function&)> QueryTradeProduceDetailAsyncHandler; + typedef Outcome SubmitSupplementOutcome; + typedef std::future SubmitSupplementOutcomeCallable; + typedef std::function&)> SubmitSupplementAsyncHandler; + typedef Outcome QueryQrCodeUploadStatusOutcome; + typedef std::future QueryQrCodeUploadStatusOutcomeCallable; + typedef std::function&)> QueryQrCodeUploadStatusAsyncHandler; + typedef Outcome BindMaterialOutcome; + typedef std::future BindMaterialOutcomeCallable; + typedef std::function&)> BindMaterialAsyncHandler; + typedef Outcome StoreMaterialTemporarilyOutcome; + typedef std::future StoreMaterialTemporarilyOutcomeCallable; + typedef std::function&)> StoreMaterialTemporarilyAsyncHandler; + typedef Outcome QueryTradeIntentionUserListOutcome; + typedef std::future QueryTradeIntentionUserListOutcomeCallable; + typedef std::function&)> QueryTradeIntentionUserListAsyncHandler; + typedef Outcome ListNotaryInfosOutcome; + typedef std::future ListNotaryInfosOutcomeCallable; + typedef std::function&)> ListNotaryInfosAsyncHandler; + typedef Outcome QueryCommunicationLogsOutcome; + typedef std::future QueryCommunicationLogsOutcomeCallable; + typedef std::function&)> QueryCommunicationLogsAsyncHandler; + typedef Outcome QueryTradeMarkApplicationDetailOutcome; + typedef std::future QueryTradeMarkApplicationDetailOutcomeCallable; + typedef std::function&)> QueryTradeMarkApplicationDetailAsyncHandler; + typedef Outcome GenerateQrCodeOutcome; + typedef std::future GenerateQrCodeOutcomeCallable; + typedef std::function&)> GenerateQrCodeAsyncHandler; typedef Outcome FillLogisticsOutcome; typedef std::future FillLogisticsOutcomeCallable; typedef std::function&)> FillLogisticsAsyncHandler; @@ -148,33 +241,18 @@ namespace AlibabaCloud typedef Outcome ConvertImageToGrayOutcome; typedef std::future ConvertImageToGrayOutcomeCallable; typedef std::function&)> ConvertImageToGrayAsyncHandler; - typedef Outcome QueryTrademarkMonitorResultsOutcome; - typedef std::future QueryTrademarkMonitorResultsOutcomeCallable; - typedef std::function&)> QueryTrademarkMonitorResultsAsyncHandler; + typedef Outcome QueryIntentionListOutcome; + typedef std::future QueryIntentionListOutcomeCallable; + typedef std::function&)> QueryIntentionListAsyncHandler; typedef Outcome CombineLoaOutcome; typedef std::future CombineLoaOutcomeCallable; typedef std::function&)> CombineLoaAsyncHandler; - typedef Outcome QueryTradeMarkApplicationsOutcome; - typedef std::future QueryTradeMarkApplicationsOutcomeCallable; - typedef std::function&)> QueryTradeMarkApplicationsAsyncHandler; - typedef Outcome CancelTradeOrderOutcome; - typedef std::future CancelTradeOrderOutcomeCallable; - typedef std::function&)> CancelTradeOrderAsyncHandler; typedef Outcome QueryTrademarkPriceOutcome; typedef std::future QueryTrademarkPriceOutcomeCallable; typedef std::function&)> QueryTrademarkPriceAsyncHandler; - typedef Outcome DeleteTmMonitorRuleOutcome; - typedef std::future DeleteTmMonitorRuleOutcomeCallable; - typedef std::function&)> DeleteTmMonitorRuleAsyncHandler; - typedef Outcome SaveTaskOutcome; - typedef std::future SaveTaskOutcomeCallable; - typedef std::function&)> SaveTaskAsyncHandler; typedef Outcome FilterUnavailableCodesOutcome; typedef std::future FilterUnavailableCodesOutcomeCallable; typedef std::function&)> FilterUnavailableCodesAsyncHandler; - typedef Outcome UploadNotaryDataOutcome; - typedef std::future UploadNotaryDataOutcomeCallable; - typedef std::function&)> UploadNotaryDataAsyncHandler; typedef Outcome InsertMaterialOutcome; typedef std::future InsertMaterialOutcomeCallable; typedef std::function&)> InsertMaterialAsyncHandler; @@ -184,104 +262,137 @@ namespace AlibabaCloud typedef Outcome QueryMonitorKeywordsOutcome; typedef std::future QueryMonitorKeywordsOutcomeCallable; typedef std::function&)> QueryMonitorKeywordsAsyncHandler; - typedef Outcome GetNotaryOrderOutcome; - typedef std::future GetNotaryOrderOutcomeCallable; - typedef std::function&)> GetNotaryOrderAsyncHandler; typedef Outcome InsertTmMonitorRuleOutcome; typedef std::future InsertTmMonitorRuleOutcomeCallable; typedef std::function&)> InsertTmMonitorRuleAsyncHandler; - typedef Outcome InsertRenewInfoOutcome; - typedef std::future InsertRenewInfoOutcomeCallable; - typedef std::function&)> InsertRenewInfoAsyncHandler; - typedef Outcome QuerySupplementDetailOutcome; - typedef std::future QuerySupplementDetailOutcomeCallable; - typedef std::function&)> QuerySupplementDetailAsyncHandler; - typedef Outcome ApplyNotaryPostOutcome; - typedef std::future ApplyNotaryPostOutcomeCallable; - typedef std::function&)> ApplyNotaryPostAsyncHandler; - typedef Outcome QueryCredentialsInfoOutcome; - typedef std::future QueryCredentialsInfoOutcomeCallable; - typedef std::function&)> QueryCredentialsInfoAsyncHandler; - typedef Outcome QueryTrademarkMonitorRulesOutcome; - typedef std::future QueryTrademarkMonitorRulesOutcomeCallable; - typedef std::function&)> QueryTrademarkMonitorRulesAsyncHandler; typedef Outcome CheckLoaFillOutcome; typedef std::future CheckLoaFillOutcomeCallable; typedef std::function&)> CheckLoaFillAsyncHandler; + typedef Outcome QueryTrademarkMonitorRulesOutcome; + typedef std::future QueryTrademarkMonitorRulesOutcomeCallable; + typedef std::function&)> QueryTrademarkMonitorRulesAsyncHandler; typedef Outcome QueryOssResourcesOutcome; typedef std::future QueryOssResourcesOutcomeCallable; typedef std::function&)> QueryOssResourcesAsyncHandler; - typedef Outcome GenerateUploadFilePolicyOutcome; - typedef std::future GenerateUploadFilePolicyOutcomeCallable; - typedef std::function&)> GenerateUploadFilePolicyAsyncHandler; - typedef Outcome DeleteMaterialOutcome; - typedef std::future DeleteMaterialOutcomeCallable; - typedef std::function&)> DeleteMaterialAsyncHandler; + typedef Outcome CreateIntentionOrderOutcome; + typedef std::future CreateIntentionOrderOutcomeCallable; + typedef std::function&)> CreateIntentionOrderAsyncHandler; typedef Outcome DenySupplementOutcome; typedef std::future DenySupplementOutcomeCallable; typedef std::function&)> DenySupplementAsyncHandler; - typedef Outcome InsertTradeIntentionUserOutcome; - typedef std::future InsertTradeIntentionUserOutcomeCallable; - typedef std::function&)> InsertTradeIntentionUserAsyncHandler; typedef Outcome ListNotaryOrdersOutcome; typedef std::future ListNotaryOrdersOutcomeCallable; typedef std::function&)> ListNotaryOrdersAsyncHandler; - typedef Outcome QueryTradeProduceDetailOutcome; - typedef std::future QueryTradeProduceDetailOutcomeCallable; - typedef std::function&)> QueryTradeProduceDetailAsyncHandler; - typedef Outcome SubmitSupplementOutcome; - typedef std::future SubmitSupplementOutcomeCallable; - typedef std::function&)> SubmitSupplementAsyncHandler; - typedef Outcome QueryQrCodeUploadStatusOutcome; - typedef std::future QueryQrCodeUploadStatusOutcomeCallable; - typedef std::function&)> QueryQrCodeUploadStatusAsyncHandler; typedef Outcome QueryMaterialOutcome; typedef std::future QueryMaterialOutcomeCallable; typedef std::function&)> QueryMaterialAsyncHandler; - typedef Outcome BindMaterialOutcome; - typedef std::future BindMaterialOutcomeCallable; - typedef std::function&)> BindMaterialAsyncHandler; - typedef Outcome QueryTradeIntentionUserListOutcome; - typedef std::future QueryTradeIntentionUserListOutcomeCallable; - typedef std::function&)> QueryTradeIntentionUserListAsyncHandler; typedef Outcome UpdateTmMonitorRuleOutcome; typedef std::future UpdateTmMonitorRuleOutcomeCallable; typedef std::function&)> UpdateTmMonitorRuleAsyncHandler; - typedef Outcome StoreMaterialTemporarilyOutcome; - typedef std::future StoreMaterialTemporarilyOutcomeCallable; - typedef std::function&)> StoreMaterialTemporarilyAsyncHandler; typedef Outcome StartNotaryOutcome; typedef std::future StartNotaryOutcomeCallable; typedef std::function&)> StartNotaryAsyncHandler; typedef Outcome QueryMaterialListOutcome; typedef std::future QueryMaterialListOutcomeCallable; typedef std::function&)> QueryMaterialListAsyncHandler; - typedef Outcome CreateTrademarkOrderOutcome; - typedef std::future CreateTrademarkOrderOutcomeCallable; - typedef std::function&)> CreateTrademarkOrderAsyncHandler; typedef Outcome UpdateSendMaterialNumOutcome; typedef std::future UpdateSendMaterialNumOutcomeCallable; typedef std::function&)> UpdateSendMaterialNumAsyncHandler; - typedef Outcome ListNotaryInfosOutcome; - typedef std::future ListNotaryInfosOutcomeCallable; - typedef std::function&)> ListNotaryInfosAsyncHandler; - typedef Outcome QueryCommunicationLogsOutcome; - typedef std::future QueryCommunicationLogsOutcomeCallable; - typedef std::function&)> QueryCommunicationLogsAsyncHandler; - typedef Outcome QueryTradeMarkApplicationDetailOutcome; - typedef std::future QueryTradeMarkApplicationDetailOutcomeCallable; - typedef std::function&)> QueryTradeMarkApplicationDetailAsyncHandler; + typedef Outcome CreateTrademarkOrderOutcome; + typedef std::future CreateTrademarkOrderOutcomeCallable; + typedef std::function&)> CreateTrademarkOrderAsyncHandler; TrademarkClient(const Credentials &credentials, const ClientConfiguration &configuration); TrademarkClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); TrademarkClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~TrademarkClient(); - GenerateQrCodeOutcome generateQrCode(const Model::GenerateQrCodeRequest &request)const; - void generateQrCodeAsync(const Model::GenerateQrCodeRequest& request, const GenerateQrCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateQrCodeOutcomeCallable generateQrCodeCallable(const Model::GenerateQrCodeRequest& request) const; QueryTradeProduceListOutcome queryTradeProduceList(const Model::QueryTradeProduceListRequest &request)const; void queryTradeProduceListAsync(const Model::QueryTradeProduceListRequest& request, const QueryTradeProduceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTradeProduceListOutcomeCallable queryTradeProduceListCallable(const Model::QueryTradeProduceListRequest& request) const; + QueryTrademarkMonitorResultsOutcome queryTrademarkMonitorResults(const Model::QueryTrademarkMonitorResultsRequest &request)const; + void queryTrademarkMonitorResultsAsync(const Model::QueryTrademarkMonitorResultsRequest& request, const QueryTrademarkMonitorResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTrademarkMonitorResultsOutcomeCallable queryTrademarkMonitorResultsCallable(const Model::QueryTrademarkMonitorResultsRequest& request) const; + QueryTradeMarkApplicationsOutcome queryTradeMarkApplications(const Model::QueryTradeMarkApplicationsRequest &request)const; + void queryTradeMarkApplicationsAsync(const Model::QueryTradeMarkApplicationsRequest& request, const QueryTradeMarkApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTradeMarkApplicationsOutcomeCallable queryTradeMarkApplicationsCallable(const Model::QueryTradeMarkApplicationsRequest& request) const; + CancelTradeOrderOutcome cancelTradeOrder(const Model::CancelTradeOrderRequest &request)const; + void cancelTradeOrderAsync(const Model::CancelTradeOrderRequest& request, const CancelTradeOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelTradeOrderOutcomeCallable cancelTradeOrderCallable(const Model::CancelTradeOrderRequest& request) const; + DeleteTmMonitorRuleOutcome deleteTmMonitorRule(const Model::DeleteTmMonitorRuleRequest &request)const; + void deleteTmMonitorRuleAsync(const Model::DeleteTmMonitorRuleRequest& request, const DeleteTmMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTmMonitorRuleOutcomeCallable deleteTmMonitorRuleCallable(const Model::DeleteTmMonitorRuleRequest& request) const; + WriteIntentionCommunicationLogOutcome writeIntentionCommunicationLog(const Model::WriteIntentionCommunicationLogRequest &request)const; + void writeIntentionCommunicationLogAsync(const Model::WriteIntentionCommunicationLogRequest& request, const WriteIntentionCommunicationLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WriteIntentionCommunicationLogOutcomeCallable writeIntentionCommunicationLogCallable(const Model::WriteIntentionCommunicationLogRequest& request) const; + SaveTaskOutcome saveTask(const Model::SaveTaskRequest &request)const; + void saveTaskAsync(const Model::SaveTaskRequest& request, const SaveTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveTaskOutcomeCallable saveTaskCallable(const Model::SaveTaskRequest& request) const; + UploadNotaryDataOutcome uploadNotaryData(const Model::UploadNotaryDataRequest &request)const; + void uploadNotaryDataAsync(const Model::UploadNotaryDataRequest& request, const UploadNotaryDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadNotaryDataOutcomeCallable uploadNotaryDataCallable(const Model::UploadNotaryDataRequest& request) const; + QueryIntentionDetailOutcome queryIntentionDetail(const Model::QueryIntentionDetailRequest &request)const; + void queryIntentionDetailAsync(const Model::QueryIntentionDetailRequest& request, const QueryIntentionDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryIntentionDetailOutcomeCallable queryIntentionDetailCallable(const Model::QueryIntentionDetailRequest& request) const; + GetNotaryOrderOutcome getNotaryOrder(const Model::GetNotaryOrderRequest &request)const; + void getNotaryOrderAsync(const Model::GetNotaryOrderRequest& request, const GetNotaryOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNotaryOrderOutcomeCallable getNotaryOrderCallable(const Model::GetNotaryOrderRequest& request) const; + QuerySupplementDetailOutcome querySupplementDetail(const Model::QuerySupplementDetailRequest &request)const; + void querySupplementDetailAsync(const Model::QuerySupplementDetailRequest& request, const QuerySupplementDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySupplementDetailOutcomeCallable querySupplementDetailCallable(const Model::QuerySupplementDetailRequest& request) const; + InsertRenewInfoOutcome insertRenewInfo(const Model::InsertRenewInfoRequest &request)const; + void insertRenewInfoAsync(const Model::InsertRenewInfoRequest& request, const InsertRenewInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InsertRenewInfoOutcomeCallable insertRenewInfoCallable(const Model::InsertRenewInfoRequest& request) const; + QueryCredentialsInfoOutcome queryCredentialsInfo(const Model::QueryCredentialsInfoRequest &request)const; + void queryCredentialsInfoAsync(const Model::QueryCredentialsInfoRequest& request, const QueryCredentialsInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCredentialsInfoOutcomeCallable queryCredentialsInfoCallable(const Model::QueryCredentialsInfoRequest& request) const; + QueryTradeMarkApplicationsByIntentionOutcome queryTradeMarkApplicationsByIntention(const Model::QueryTradeMarkApplicationsByIntentionRequest &request)const; + void queryTradeMarkApplicationsByIntentionAsync(const Model::QueryTradeMarkApplicationsByIntentionRequest& request, const QueryTradeMarkApplicationsByIntentionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTradeMarkApplicationsByIntentionOutcomeCallable queryTradeMarkApplicationsByIntentionCallable(const Model::QueryTradeMarkApplicationsByIntentionRequest& request) const; + ApplyNotaryPostOutcome applyNotaryPost(const Model::ApplyNotaryPostRequest &request)const; + void applyNotaryPostAsync(const Model::ApplyNotaryPostRequest& request, const ApplyNotaryPostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApplyNotaryPostOutcomeCallable applyNotaryPostCallable(const Model::ApplyNotaryPostRequest& request) const; + GenerateUploadFilePolicyOutcome generateUploadFilePolicy(const Model::GenerateUploadFilePolicyRequest &request)const; + void generateUploadFilePolicyAsync(const Model::GenerateUploadFilePolicyRequest& request, const GenerateUploadFilePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateUploadFilePolicyOutcomeCallable generateUploadFilePolicyCallable(const Model::GenerateUploadFilePolicyRequest& request) const; + DeleteMaterialOutcome deleteMaterial(const Model::DeleteMaterialRequest &request)const; + void deleteMaterialAsync(const Model::DeleteMaterialRequest& request, const DeleteMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMaterialOutcomeCallable deleteMaterialCallable(const Model::DeleteMaterialRequest& request) const; + WriteCommunicationLogOutcome writeCommunicationLog(const Model::WriteCommunicationLogRequest &request)const; + void writeCommunicationLogAsync(const Model::WriteCommunicationLogRequest& request, const WriteCommunicationLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WriteCommunicationLogOutcomeCallable writeCommunicationLogCallable(const Model::WriteCommunicationLogRequest& request) const; + InsertTradeIntentionUserOutcome insertTradeIntentionUser(const Model::InsertTradeIntentionUserRequest &request)const; + void insertTradeIntentionUserAsync(const Model::InsertTradeIntentionUserRequest& request, const InsertTradeIntentionUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InsertTradeIntentionUserOutcomeCallable insertTradeIntentionUserCallable(const Model::InsertTradeIntentionUserRequest& request) const; + QueryTradeProduceDetailOutcome queryTradeProduceDetail(const Model::QueryTradeProduceDetailRequest &request)const; + void queryTradeProduceDetailAsync(const Model::QueryTradeProduceDetailRequest& request, const QueryTradeProduceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTradeProduceDetailOutcomeCallable queryTradeProduceDetailCallable(const Model::QueryTradeProduceDetailRequest& request) const; + SubmitSupplementOutcome submitSupplement(const Model::SubmitSupplementRequest &request)const; + void submitSupplementAsync(const Model::SubmitSupplementRequest& request, const SubmitSupplementAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitSupplementOutcomeCallable submitSupplementCallable(const Model::SubmitSupplementRequest& request) const; + QueryQrCodeUploadStatusOutcome queryQrCodeUploadStatus(const Model::QueryQrCodeUploadStatusRequest &request)const; + void queryQrCodeUploadStatusAsync(const Model::QueryQrCodeUploadStatusRequest& request, const QueryQrCodeUploadStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryQrCodeUploadStatusOutcomeCallable queryQrCodeUploadStatusCallable(const Model::QueryQrCodeUploadStatusRequest& request) const; + BindMaterialOutcome bindMaterial(const Model::BindMaterialRequest &request)const; + void bindMaterialAsync(const Model::BindMaterialRequest& request, const BindMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindMaterialOutcomeCallable bindMaterialCallable(const Model::BindMaterialRequest& request) const; + StoreMaterialTemporarilyOutcome storeMaterialTemporarily(const Model::StoreMaterialTemporarilyRequest &request)const; + void storeMaterialTemporarilyAsync(const Model::StoreMaterialTemporarilyRequest& request, const StoreMaterialTemporarilyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StoreMaterialTemporarilyOutcomeCallable storeMaterialTemporarilyCallable(const Model::StoreMaterialTemporarilyRequest& request) const; + QueryTradeIntentionUserListOutcome queryTradeIntentionUserList(const Model::QueryTradeIntentionUserListRequest &request)const; + void queryTradeIntentionUserListAsync(const Model::QueryTradeIntentionUserListRequest& request, const QueryTradeIntentionUserListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTradeIntentionUserListOutcomeCallable queryTradeIntentionUserListCallable(const Model::QueryTradeIntentionUserListRequest& request) const; + ListNotaryInfosOutcome listNotaryInfos(const Model::ListNotaryInfosRequest &request)const; + void listNotaryInfosAsync(const Model::ListNotaryInfosRequest& request, const ListNotaryInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNotaryInfosOutcomeCallable listNotaryInfosCallable(const Model::ListNotaryInfosRequest& request) const; + QueryCommunicationLogsOutcome queryCommunicationLogs(const Model::QueryCommunicationLogsRequest &request)const; + void queryCommunicationLogsAsync(const Model::QueryCommunicationLogsRequest& request, const QueryCommunicationLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCommunicationLogsOutcomeCallable queryCommunicationLogsCallable(const Model::QueryCommunicationLogsRequest& request) const; + QueryTradeMarkApplicationDetailOutcome queryTradeMarkApplicationDetail(const Model::QueryTradeMarkApplicationDetailRequest &request)const; + void queryTradeMarkApplicationDetailAsync(const Model::QueryTradeMarkApplicationDetailRequest& request, const QueryTradeMarkApplicationDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTradeMarkApplicationDetailOutcomeCallable queryTradeMarkApplicationDetailCallable(const Model::QueryTradeMarkApplicationDetailRequest& request) const; + GenerateQrCodeOutcome generateQrCode(const Model::GenerateQrCodeRequest &request)const; + void generateQrCodeAsync(const Model::GenerateQrCodeRequest& request, const GenerateQrCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateQrCodeOutcomeCallable generateQrCodeCallable(const Model::GenerateQrCodeRequest& request) const; FillLogisticsOutcome fillLogistics(const Model::FillLogisticsRequest &request)const; void fillLogisticsAsync(const Model::FillLogisticsRequest& request, const FillLogisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FillLogisticsOutcomeCallable fillLogisticsCallable(const Model::FillLogisticsRequest& request) const; @@ -297,33 +408,18 @@ namespace AlibabaCloud ConvertImageToGrayOutcome convertImageToGray(const Model::ConvertImageToGrayRequest &request)const; void convertImageToGrayAsync(const Model::ConvertImageToGrayRequest& request, const ConvertImageToGrayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConvertImageToGrayOutcomeCallable convertImageToGrayCallable(const Model::ConvertImageToGrayRequest& request) const; - QueryTrademarkMonitorResultsOutcome queryTrademarkMonitorResults(const Model::QueryTrademarkMonitorResultsRequest &request)const; - void queryTrademarkMonitorResultsAsync(const Model::QueryTrademarkMonitorResultsRequest& request, const QueryTrademarkMonitorResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTrademarkMonitorResultsOutcomeCallable queryTrademarkMonitorResultsCallable(const Model::QueryTrademarkMonitorResultsRequest& request) const; + QueryIntentionListOutcome queryIntentionList(const Model::QueryIntentionListRequest &request)const; + void queryIntentionListAsync(const Model::QueryIntentionListRequest& request, const QueryIntentionListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryIntentionListOutcomeCallable queryIntentionListCallable(const Model::QueryIntentionListRequest& request) const; CombineLoaOutcome combineLoa(const Model::CombineLoaRequest &request)const; void combineLoaAsync(const Model::CombineLoaRequest& request, const CombineLoaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CombineLoaOutcomeCallable combineLoaCallable(const Model::CombineLoaRequest& request) const; - QueryTradeMarkApplicationsOutcome queryTradeMarkApplications(const Model::QueryTradeMarkApplicationsRequest &request)const; - void queryTradeMarkApplicationsAsync(const Model::QueryTradeMarkApplicationsRequest& request, const QueryTradeMarkApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTradeMarkApplicationsOutcomeCallable queryTradeMarkApplicationsCallable(const Model::QueryTradeMarkApplicationsRequest& request) const; - CancelTradeOrderOutcome cancelTradeOrder(const Model::CancelTradeOrderRequest &request)const; - void cancelTradeOrderAsync(const Model::CancelTradeOrderRequest& request, const CancelTradeOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CancelTradeOrderOutcomeCallable cancelTradeOrderCallable(const Model::CancelTradeOrderRequest& request) const; QueryTrademarkPriceOutcome queryTrademarkPrice(const Model::QueryTrademarkPriceRequest &request)const; void queryTrademarkPriceAsync(const Model::QueryTrademarkPriceRequest& request, const QueryTrademarkPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTrademarkPriceOutcomeCallable queryTrademarkPriceCallable(const Model::QueryTrademarkPriceRequest& request) const; - DeleteTmMonitorRuleOutcome deleteTmMonitorRule(const Model::DeleteTmMonitorRuleRequest &request)const; - void deleteTmMonitorRuleAsync(const Model::DeleteTmMonitorRuleRequest& request, const DeleteTmMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteTmMonitorRuleOutcomeCallable deleteTmMonitorRuleCallable(const Model::DeleteTmMonitorRuleRequest& request) const; - SaveTaskOutcome saveTask(const Model::SaveTaskRequest &request)const; - void saveTaskAsync(const Model::SaveTaskRequest& request, const SaveTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveTaskOutcomeCallable saveTaskCallable(const Model::SaveTaskRequest& request) const; FilterUnavailableCodesOutcome filterUnavailableCodes(const Model::FilterUnavailableCodesRequest &request)const; void filterUnavailableCodesAsync(const Model::FilterUnavailableCodesRequest& request, const FilterUnavailableCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FilterUnavailableCodesOutcomeCallable filterUnavailableCodesCallable(const Model::FilterUnavailableCodesRequest& request) const; - UploadNotaryDataOutcome uploadNotaryData(const Model::UploadNotaryDataRequest &request)const; - void uploadNotaryDataAsync(const Model::UploadNotaryDataRequest& request, const UploadNotaryDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UploadNotaryDataOutcomeCallable uploadNotaryDataCallable(const Model::UploadNotaryDataRequest& request) const; InsertMaterialOutcome insertMaterial(const Model::InsertMaterialRequest &request)const; void insertMaterialAsync(const Model::InsertMaterialRequest& request, const InsertMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InsertMaterialOutcomeCallable insertMaterialCallable(const Model::InsertMaterialRequest& request) const; @@ -333,93 +429,45 @@ namespace AlibabaCloud QueryMonitorKeywordsOutcome queryMonitorKeywords(const Model::QueryMonitorKeywordsRequest &request)const; void queryMonitorKeywordsAsync(const Model::QueryMonitorKeywordsRequest& request, const QueryMonitorKeywordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMonitorKeywordsOutcomeCallable queryMonitorKeywordsCallable(const Model::QueryMonitorKeywordsRequest& request) const; - GetNotaryOrderOutcome getNotaryOrder(const Model::GetNotaryOrderRequest &request)const; - void getNotaryOrderAsync(const Model::GetNotaryOrderRequest& request, const GetNotaryOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNotaryOrderOutcomeCallable getNotaryOrderCallable(const Model::GetNotaryOrderRequest& request) const; InsertTmMonitorRuleOutcome insertTmMonitorRule(const Model::InsertTmMonitorRuleRequest &request)const; void insertTmMonitorRuleAsync(const Model::InsertTmMonitorRuleRequest& request, const InsertTmMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InsertTmMonitorRuleOutcomeCallable insertTmMonitorRuleCallable(const Model::InsertTmMonitorRuleRequest& request) const; - InsertRenewInfoOutcome insertRenewInfo(const Model::InsertRenewInfoRequest &request)const; - void insertRenewInfoAsync(const Model::InsertRenewInfoRequest& request, const InsertRenewInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InsertRenewInfoOutcomeCallable insertRenewInfoCallable(const Model::InsertRenewInfoRequest& request) const; - QuerySupplementDetailOutcome querySupplementDetail(const Model::QuerySupplementDetailRequest &request)const; - void querySupplementDetailAsync(const Model::QuerySupplementDetailRequest& request, const QuerySupplementDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySupplementDetailOutcomeCallable querySupplementDetailCallable(const Model::QuerySupplementDetailRequest& request) const; - ApplyNotaryPostOutcome applyNotaryPost(const Model::ApplyNotaryPostRequest &request)const; - void applyNotaryPostAsync(const Model::ApplyNotaryPostRequest& request, const ApplyNotaryPostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ApplyNotaryPostOutcomeCallable applyNotaryPostCallable(const Model::ApplyNotaryPostRequest& request) const; - QueryCredentialsInfoOutcome queryCredentialsInfo(const Model::QueryCredentialsInfoRequest &request)const; - void queryCredentialsInfoAsync(const Model::QueryCredentialsInfoRequest& request, const QueryCredentialsInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCredentialsInfoOutcomeCallable queryCredentialsInfoCallable(const Model::QueryCredentialsInfoRequest& request) const; - QueryTrademarkMonitorRulesOutcome queryTrademarkMonitorRules(const Model::QueryTrademarkMonitorRulesRequest &request)const; - void queryTrademarkMonitorRulesAsync(const Model::QueryTrademarkMonitorRulesRequest& request, const QueryTrademarkMonitorRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTrademarkMonitorRulesOutcomeCallable queryTrademarkMonitorRulesCallable(const Model::QueryTrademarkMonitorRulesRequest& request) const; CheckLoaFillOutcome checkLoaFill(const Model::CheckLoaFillRequest &request)const; void checkLoaFillAsync(const Model::CheckLoaFillRequest& request, const CheckLoaFillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckLoaFillOutcomeCallable checkLoaFillCallable(const Model::CheckLoaFillRequest& request) const; + QueryTrademarkMonitorRulesOutcome queryTrademarkMonitorRules(const Model::QueryTrademarkMonitorRulesRequest &request)const; + void queryTrademarkMonitorRulesAsync(const Model::QueryTrademarkMonitorRulesRequest& request, const QueryTrademarkMonitorRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTrademarkMonitorRulesOutcomeCallable queryTrademarkMonitorRulesCallable(const Model::QueryTrademarkMonitorRulesRequest& request) const; QueryOssResourcesOutcome queryOssResources(const Model::QueryOssResourcesRequest &request)const; void queryOssResourcesAsync(const Model::QueryOssResourcesRequest& request, const QueryOssResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryOssResourcesOutcomeCallable queryOssResourcesCallable(const Model::QueryOssResourcesRequest& request) const; - GenerateUploadFilePolicyOutcome generateUploadFilePolicy(const Model::GenerateUploadFilePolicyRequest &request)const; - void generateUploadFilePolicyAsync(const Model::GenerateUploadFilePolicyRequest& request, const GenerateUploadFilePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateUploadFilePolicyOutcomeCallable generateUploadFilePolicyCallable(const Model::GenerateUploadFilePolicyRequest& request) const; - DeleteMaterialOutcome deleteMaterial(const Model::DeleteMaterialRequest &request)const; - void deleteMaterialAsync(const Model::DeleteMaterialRequest& request, const DeleteMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMaterialOutcomeCallable deleteMaterialCallable(const Model::DeleteMaterialRequest& request) const; + CreateIntentionOrderOutcome createIntentionOrder(const Model::CreateIntentionOrderRequest &request)const; + void createIntentionOrderAsync(const Model::CreateIntentionOrderRequest& request, const CreateIntentionOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIntentionOrderOutcomeCallable createIntentionOrderCallable(const Model::CreateIntentionOrderRequest& request) const; DenySupplementOutcome denySupplement(const Model::DenySupplementRequest &request)const; void denySupplementAsync(const Model::DenySupplementRequest& request, const DenySupplementAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DenySupplementOutcomeCallable denySupplementCallable(const Model::DenySupplementRequest& request) const; - InsertTradeIntentionUserOutcome insertTradeIntentionUser(const Model::InsertTradeIntentionUserRequest &request)const; - void insertTradeIntentionUserAsync(const Model::InsertTradeIntentionUserRequest& request, const InsertTradeIntentionUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InsertTradeIntentionUserOutcomeCallable insertTradeIntentionUserCallable(const Model::InsertTradeIntentionUserRequest& request) const; ListNotaryOrdersOutcome listNotaryOrders(const Model::ListNotaryOrdersRequest &request)const; void listNotaryOrdersAsync(const Model::ListNotaryOrdersRequest& request, const ListNotaryOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNotaryOrdersOutcomeCallable listNotaryOrdersCallable(const Model::ListNotaryOrdersRequest& request) const; - QueryTradeProduceDetailOutcome queryTradeProduceDetail(const Model::QueryTradeProduceDetailRequest &request)const; - void queryTradeProduceDetailAsync(const Model::QueryTradeProduceDetailRequest& request, const QueryTradeProduceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTradeProduceDetailOutcomeCallable queryTradeProduceDetailCallable(const Model::QueryTradeProduceDetailRequest& request) const; - SubmitSupplementOutcome submitSupplement(const Model::SubmitSupplementRequest &request)const; - void submitSupplementAsync(const Model::SubmitSupplementRequest& request, const SubmitSupplementAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitSupplementOutcomeCallable submitSupplementCallable(const Model::SubmitSupplementRequest& request) const; - QueryQrCodeUploadStatusOutcome queryQrCodeUploadStatus(const Model::QueryQrCodeUploadStatusRequest &request)const; - void queryQrCodeUploadStatusAsync(const Model::QueryQrCodeUploadStatusRequest& request, const QueryQrCodeUploadStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryQrCodeUploadStatusOutcomeCallable queryQrCodeUploadStatusCallable(const Model::QueryQrCodeUploadStatusRequest& request) const; QueryMaterialOutcome queryMaterial(const Model::QueryMaterialRequest &request)const; void queryMaterialAsync(const Model::QueryMaterialRequest& request, const QueryMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMaterialOutcomeCallable queryMaterialCallable(const Model::QueryMaterialRequest& request) const; - BindMaterialOutcome bindMaterial(const Model::BindMaterialRequest &request)const; - void bindMaterialAsync(const Model::BindMaterialRequest& request, const BindMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BindMaterialOutcomeCallable bindMaterialCallable(const Model::BindMaterialRequest& request) const; - QueryTradeIntentionUserListOutcome queryTradeIntentionUserList(const Model::QueryTradeIntentionUserListRequest &request)const; - void queryTradeIntentionUserListAsync(const Model::QueryTradeIntentionUserListRequest& request, const QueryTradeIntentionUserListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTradeIntentionUserListOutcomeCallable queryTradeIntentionUserListCallable(const Model::QueryTradeIntentionUserListRequest& request) const; UpdateTmMonitorRuleOutcome updateTmMonitorRule(const Model::UpdateTmMonitorRuleRequest &request)const; void updateTmMonitorRuleAsync(const Model::UpdateTmMonitorRuleRequest& request, const UpdateTmMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateTmMonitorRuleOutcomeCallable updateTmMonitorRuleCallable(const Model::UpdateTmMonitorRuleRequest& request) const; - StoreMaterialTemporarilyOutcome storeMaterialTemporarily(const Model::StoreMaterialTemporarilyRequest &request)const; - void storeMaterialTemporarilyAsync(const Model::StoreMaterialTemporarilyRequest& request, const StoreMaterialTemporarilyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StoreMaterialTemporarilyOutcomeCallable storeMaterialTemporarilyCallable(const Model::StoreMaterialTemporarilyRequest& request) const; StartNotaryOutcome startNotary(const Model::StartNotaryRequest &request)const; void startNotaryAsync(const Model::StartNotaryRequest& request, const StartNotaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartNotaryOutcomeCallable startNotaryCallable(const Model::StartNotaryRequest& request) const; QueryMaterialListOutcome queryMaterialList(const Model::QueryMaterialListRequest &request)const; void queryMaterialListAsync(const Model::QueryMaterialListRequest& request, const QueryMaterialListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryMaterialListOutcomeCallable queryMaterialListCallable(const Model::QueryMaterialListRequest& request) const; - CreateTrademarkOrderOutcome createTrademarkOrder(const Model::CreateTrademarkOrderRequest &request)const; - void createTrademarkOrderAsync(const Model::CreateTrademarkOrderRequest& request, const CreateTrademarkOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateTrademarkOrderOutcomeCallable createTrademarkOrderCallable(const Model::CreateTrademarkOrderRequest& request) const; UpdateSendMaterialNumOutcome updateSendMaterialNum(const Model::UpdateSendMaterialNumRequest &request)const; void updateSendMaterialNumAsync(const Model::UpdateSendMaterialNumRequest& request, const UpdateSendMaterialNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSendMaterialNumOutcomeCallable updateSendMaterialNumCallable(const Model::UpdateSendMaterialNumRequest& request) const; - ListNotaryInfosOutcome listNotaryInfos(const Model::ListNotaryInfosRequest &request)const; - void listNotaryInfosAsync(const Model::ListNotaryInfosRequest& request, const ListNotaryInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListNotaryInfosOutcomeCallable listNotaryInfosCallable(const Model::ListNotaryInfosRequest& request) const; - QueryCommunicationLogsOutcome queryCommunicationLogs(const Model::QueryCommunicationLogsRequest &request)const; - void queryCommunicationLogsAsync(const Model::QueryCommunicationLogsRequest& request, const QueryCommunicationLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCommunicationLogsOutcomeCallable queryCommunicationLogsCallable(const Model::QueryCommunicationLogsRequest& request) const; - QueryTradeMarkApplicationDetailOutcome queryTradeMarkApplicationDetail(const Model::QueryTradeMarkApplicationDetailRequest &request)const; - void queryTradeMarkApplicationDetailAsync(const Model::QueryTradeMarkApplicationDetailRequest& request, const QueryTradeMarkApplicationDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTradeMarkApplicationDetailOutcomeCallable queryTradeMarkApplicationDetailCallable(const Model::QueryTradeMarkApplicationDetailRequest& request) const; + CreateTrademarkOrderOutcome createTrademarkOrder(const Model::CreateTrademarkOrderRequest &request)const; + void createTrademarkOrderAsync(const Model::CreateTrademarkOrderRequest& request, const CreateTrademarkOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrademarkOrderOutcomeCallable createTrademarkOrderCallable(const Model::CreateTrademarkOrderRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/trademark/include/alibabacloud/trademark/model/CreateIntentionOrderRequest.h b/trademark/include/alibabacloud/trademark/model/CreateIntentionOrderRequest.h new file mode 100644 index 000000000..ec6254dbf --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/CreateIntentionOrderRequest.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_TRADEMARK_MODEL_CREATEINTENTIONORDERREQUEST_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_CREATEINTENTIONORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT CreateIntentionOrderRequest : public RpcServiceRequest + { + + public: + CreateIntentionOrderRequest(); + ~CreateIntentionOrderRequest(); + + std::string getChannel()const; + void setChannel(const std::string& channel); + std::string getIntentionBizId()const; + void setIntentionBizId(const std::string& intentionBizId); + + private: + std::string channel_; + std::string intentionBizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_CREATEINTENTIONORDERREQUEST_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/CreateIntentionOrderResult.h b/trademark/include/alibabacloud/trademark/model/CreateIntentionOrderResult.h new file mode 100644 index 000000000..a5978518f --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/CreateIntentionOrderResult.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_TRADEMARK_MODEL_CREATEINTENTIONORDERRESULT_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_CREATEINTENTIONORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT CreateIntentionOrderResult : public ServiceResult + { + public: + + + CreateIntentionOrderResult(); + explicit CreateIntentionOrderResult(const std::string &payload); + ~CreateIntentionOrderResult(); + std::string getErrorMsg()const; + std::vector getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::vector data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_CREATEINTENTIONORDERRESULT_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/InsertTradeIntentionUserRequest.h b/trademark/include/alibabacloud/trademark/model/InsertTradeIntentionUserRequest.h index c2ebd8d47..a25c53ea1 100644 --- a/trademark/include/alibabacloud/trademark/model/InsertTradeIntentionUserRequest.h +++ b/trademark/include/alibabacloud/trademark/model/InsertTradeIntentionUserRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getMobile()const; void setMobile(const std::string& mobile); + std::string getDescription()const; + void setDescription(const std::string& description); std::string getPartnerCode()const; void setPartnerCode(const std::string& partnerCode); std::string getClassification()const; @@ -52,6 +54,7 @@ namespace AlibabaCloud private: std::string mobile_; + std::string description_; std::string partnerCode_; std::string classification_; int type_; diff --git a/trademark/include/alibabacloud/trademark/model/QueryCommunicationLogsRequest.h b/trademark/include/alibabacloud/trademark/model/QueryCommunicationLogsRequest.h index cf773130b..ea32824c2 100644 --- a/trademark/include/alibabacloud/trademark/model/QueryCommunicationLogsRequest.h +++ b/trademark/include/alibabacloud/trademark/model/QueryCommunicationLogsRequest.h @@ -37,9 +37,18 @@ namespace AlibabaCloud std::string getBizId()const; void setBizId(const std::string& bizId); + int getPageSize()const; + void setPageSize(int pageSize); + int getType()const; + void setType(int type); + int getPageNum()const; + void setPageNum(int pageNum); private: std::string bizId_; + int pageSize_; + int type_; + int pageNum_; }; } diff --git a/trademark/include/alibabacloud/trademark/model/QueryIntentionDetailRequest.h b/trademark/include/alibabacloud/trademark/model/QueryIntentionDetailRequest.h new file mode 100644 index 000000000..1eac9f90b --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/QueryIntentionDetailRequest.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_TRADEMARK_MODEL_QUERYINTENTIONDETAILREQUEST_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT QueryIntentionDetailRequest : public RpcServiceRequest + { + + public: + QueryIntentionDetailRequest(); + ~QueryIntentionDetailRequest(); + + std::string getBizId()const; + void setBizId(const std::string& bizId); + + private: + std::string bizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONDETAILREQUEST_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/QueryIntentionDetailResult.h b/trademark/include/alibabacloud/trademark/model/QueryIntentionDetailResult.h new file mode 100644 index 000000000..dd8d3363c --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/QueryIntentionDetailResult.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_TRADEMARK_MODEL_QUERYINTENTIONDETAILRESULT_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT QueryIntentionDetailResult : public ServiceResult + { + public: + + + QueryIntentionDetailResult(); + explicit QueryIntentionDetailResult(const std::string &payload); + ~QueryIntentionDetailResult(); + int getStatus()const; + std::string getRegisterNumber()const; + int getType()const; + std::string getDescription()const; + std::string getUserName()const; + std::string getUserId()const; + std::string getClassification()const; + long getCreateTime()const; + long getUpdateTime()const; + std::string getBizId()const; + std::string getMobile()const; + + protected: + void parse(const std::string &payload); + private: + int status_; + std::string registerNumber_; + int type_; + std::string description_; + std::string userName_; + std::string userId_; + std::string classification_; + long createTime_; + long updateTime_; + std::string bizId_; + std::string mobile_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONDETAILRESULT_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/QueryIntentionListRequest.h b/trademark/include/alibabacloud/trademark/model/QueryIntentionListRequest.h new file mode 100644 index 000000000..d8b24dc00 --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/QueryIntentionListRequest.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_TRADEMARK_MODEL_QUERYINTENTIONLISTREQUEST_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT QueryIntentionListRequest : public RpcServiceRequest + { + + public: + QueryIntentionListRequest(); + ~QueryIntentionListRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSortOrder()const; + void setSortOrder(const std::string& sortOrder); + int getType()const; + void setType(int type); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getSortFiled()const; + void setSortFiled(const std::string& sortFiled); + int getStatus()const; + void setStatus(int status); + + private: + int pageSize_; + std::string sortOrder_; + int type_; + int pageNum_; + std::string sortFiled_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONLISTREQUEST_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/QueryIntentionListResult.h b/trademark/include/alibabacloud/trademark/model/QueryIntentionListResult.h new file mode 100644 index 000000000..89a0649b7 --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/QueryIntentionListResult.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_TRADEMARK_MODEL_QUERYINTENTIONLISTRESULT_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT QueryIntentionListResult : public ServiceResult + { + public: + struct Intention + { + int status; + std::string registerNumber; + int type; + std::string description; + std::string userId; + std::string classification; + long createTime; + long updateTime; + std::string bizId; + }; + + + QueryIntentionListResult(); + explicit QueryIntentionListResult(const std::string &payload); + ~QueryIntentionListResult(); + int getCurrentPageNum()const; + int getPageSize()const; + int getTotalPageNum()const; + std::vector getData()const; + int getTotalItemNum()const; + + protected: + void parse(const std::string &payload); + private: + int currentPageNum_; + int pageSize_; + int totalPageNum_; + std::vector data_; + int totalItemNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_QUERYINTENTIONLISTRESULT_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListRequest.h b/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListRequest.h index 847e92e0e..8285d59df 100644 --- a/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListRequest.h +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListRequest.h @@ -35,14 +35,26 @@ namespace AlibabaCloud QueryTradeIntentionUserListRequest(); ~QueryTradeIntentionUserListRequest(); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getBizId()const; + void setBizId(const std::string& bizId); long getEnd()const; void setEnd(long end); + int getPageNum()const; + void setPageNum(int pageNum); long getBegin()const; void setBegin(long begin); + int getStatus()const; + void setStatus(int status); private: + int pageSize_; + std::string bizId_; long end_; + int pageNum_; long begin_; + int status_; }; } diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListResult.h b/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListResult.h index a5dcf6d7b..b6f5a89c7 100644 --- a/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListResult.h +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeIntentionUserListResult.h @@ -34,12 +34,13 @@ namespace AlibabaCloud public: struct Trademark { + int status; std::string registerNumber; std::string userName; - std::string userId; + std::string description; std::string classification; - long id; int mobile; + std::string bizId; }; diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationDetailResult.h b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationDetailResult.h index aa3579419..282a5ad97 100644 --- a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationDetailResult.h +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationDetailResult.h @@ -115,6 +115,7 @@ namespace AlibabaCloud int getTmNameType()const; std::string getSendUserLogistics()const; std::string getGrayIconUrl()const; + float getServicePrice()const; AdminUploads getAdminUploads()const; std::vector getThirdClassification()const; std::string getExtendInfo()const; @@ -124,12 +125,13 @@ namespace AlibabaCloud MaterialDetail getMaterialDetail()const; std::string getTmNumber()const; long getCreateTime()const; - int getOrderPrice()const; + float getOrderPrice()const; std::string getOrderId()const; std::vector getSupplements()const; int getType()const; std::string getRecvUserLogistics()const; std::string getNote()const; + float getTotalPrice()const; std::string getTmName()const; long getUpdateTime()const; std::string getBizId()const; @@ -147,6 +149,7 @@ namespace AlibabaCloud int tmNameType_; std::string sendUserLogistics_; std::string grayIconUrl_; + float servicePrice_; AdminUploads adminUploads_; std::vector thirdClassification_; std::string extendInfo_; @@ -156,12 +159,13 @@ namespace AlibabaCloud MaterialDetail materialDetail_; std::string tmNumber_; long createTime_; - int orderPrice_; + float orderPrice_; std::string orderId_; std::vector supplements_; int type_; std::string recvUserLogistics_; std::string note_; + float totalPrice_; std::string tmName_; long updateTime_; std::string bizId_; diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionRequest.h b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionRequest.h new file mode 100644 index 000000000..10291d7eb --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionRequest.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_TRADEMARK_MODEL_QUERYTRADEMARKAPPLICATIONSBYINTENTIONREQUEST_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_QUERYTRADEMARKAPPLICATIONSBYINTENTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT QueryTradeMarkApplicationsByIntentionRequest : public RpcServiceRequest + { + + public: + QueryTradeMarkApplicationsByIntentionRequest(); + ~QueryTradeMarkApplicationsByIntentionRequest(); + + std::string getChannel()const; + void setChannel(const std::string& channel); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getIntentionBizId()const; + void setIntentionBizId(const std::string& intentionBizId); + int getPageNum()const; + void setPageNum(int pageNum); + + private: + std::string channel_; + int pageSize_; + std::string intentionBizId_; + int pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_QUERYTRADEMARKAPPLICATIONSBYINTENTIONREQUEST_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionResult.h b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionResult.h new file mode 100644 index 000000000..08181436e --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsByIntentionResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_TRADEMARK_MODEL_QUERYTRADEMARKAPPLICATIONSBYINTENTIONRESULT_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_QUERYTRADEMARKAPPLICATIONSBYINTENTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT QueryTradeMarkApplicationsByIntentionResult : public ServiceResult + { + public: + struct TmProduces + { + struct FirstClassification + { + std::string classificationCode; + std::string classificationName; + }; + struct ThirdClassifications + { + std::string classificationCode; + std::string classificationName; + }; + int status; + std::string materialId; + FirstClassification firstClassification; + std::string tmNumber; + long createTime; + float orderPrice; + std::string loaUrl; + std::string tmIcon; + int supplementStatus; + int type; + long supplementId; + std::string note; + float totalPrice; + std::string tmName; + long updateTime; + float servicePrice; + std::string materialName; + std::string bizId; + std::vector thirdClassification; + }; + + + QueryTradeMarkApplicationsByIntentionResult(); + explicit QueryTradeMarkApplicationsByIntentionResult(const std::string &payload); + ~QueryTradeMarkApplicationsByIntentionResult(); + int getCurrentPageNum()const; + int getPageSize()const; + int getTotalPageNum()const; + std::vector getData()const; + int getTotalItemNum()const; + + protected: + void parse(const std::string &payload); + private: + int currentPageNum_; + int pageSize_; + int totalPageNum_; + std::vector data_; + int totalItemNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_QUERYTRADEMARKAPPLICATIONSBYINTENTIONRESULT_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsRequest.h b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsRequest.h index 1e70b5a71..bdd388bb2 100644 --- a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsRequest.h +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsRequest.h @@ -39,36 +39,42 @@ namespace AlibabaCloud void setTmName(const std::string& tmName); std::string getMaterialName()const; void setMaterialName(const std::string& materialName); + int getHidden()const; + void setHidden(int hidden); std::string getOrderId()const; void setOrderId(const std::string& orderId); + std::string getTmNumber()const; + void setTmNumber(const std::string& tmNumber); + std::string getIntentionBizId()const; + void setIntentionBizId(const std::string& intentionBizId); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getType()const; + void setType(const std::string& type); int getSupplementStatus()const; void setSupplementStatus(int supplementStatus); int getPageSize()const; void setPageSize(int pageSize); std::string getBizId()const; void setBizId(const std::string& bizId); - std::string getTmNumber()const; - void setTmNumber(const std::string& tmNumber); std::string getSortOrder()const; void setSortOrder(const std::string& sortOrder); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getType()const; - void setType(const std::string& type); int getStatus()const; void setStatus(int status); private: std::string tmName_; std::string materialName_; + int hidden_; std::string orderId_; + std::string tmNumber_; + std::string intentionBizId_; + int pageNum_; + std::string type_; int supplementStatus_; int pageSize_; std::string bizId_; - std::string tmNumber_; std::string sortOrder_; - int pageNum_; - std::string type_; int status_; }; diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsResult.h b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsResult.h index 0e41b107a..babbcf533 100644 --- a/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsResult.h +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeMarkApplicationsResult.h @@ -69,8 +69,10 @@ namespace AlibabaCloud long supplementId; std::string userId; std::string note; + float totalPrice; std::string tmName; long updateTime; + float servicePrice; std::string materialName; std::string bizId; std::vector thirdClassification; diff --git a/trademark/include/alibabacloud/trademark/model/QueryTradeProduceListResult.h b/trademark/include/alibabacloud/trademark/model/QueryTradeProduceListResult.h index 89b2a00ab..0bc58e75b 100644 --- a/trademark/include/alibabacloud/trademark/model/QueryTradeProduceListResult.h +++ b/trademark/include/alibabacloud/trademark/model/QueryTradeProduceListResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud long createTime; int buyerStatus; std::string operateNote; + int failReason; int finalAmount; std::string preOrderId; bool allowCancel; diff --git a/trademark/include/alibabacloud/trademark/model/WriteCommunicationLogRequest.h b/trademark/include/alibabacloud/trademark/model/WriteCommunicationLogRequest.h new file mode 100644 index 000000000..05a12d60d --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/WriteCommunicationLogRequest.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_TRADEMARK_MODEL_WRITECOMMUNICATIONLOGREQUEST_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_WRITECOMMUNICATIONLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT WriteCommunicationLogRequest : public RpcServiceRequest + { + + public: + WriteCommunicationLogRequest(); + ~WriteCommunicationLogRequest(); + + std::string getNote()const; + void setNote(const std::string& note); + std::string getTargetId()const; + void setTargetId(const std::string& targetId); + std::string getBizId()const; + void setBizId(const std::string& bizId); + + private: + std::string note_; + std::string targetId_; + std::string bizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_WRITECOMMUNICATIONLOGREQUEST_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/WriteCommunicationLogResult.h b/trademark/include/alibabacloud/trademark/model/WriteCommunicationLogResult.h new file mode 100644 index 000000000..3f81e2e96 --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/WriteCommunicationLogResult.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_TRADEMARK_MODEL_WRITECOMMUNICATIONLOGRESULT_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_WRITECOMMUNICATIONLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT WriteCommunicationLogResult : public ServiceResult + { + public: + + + WriteCommunicationLogResult(); + explicit WriteCommunicationLogResult(const std::string &payload); + ~WriteCommunicationLogResult(); + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_WRITECOMMUNICATIONLOGRESULT_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogRequest.h b/trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogRequest.h new file mode 100644 index 000000000..df5c35ec1 --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogRequest.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_TRADEMARK_MODEL_WRITEINTENTIONCOMMUNICATIONLOGREQUEST_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_WRITEINTENTIONCOMMUNICATIONLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT WriteIntentionCommunicationLogRequest : public RpcServiceRequest + { + + public: + WriteIntentionCommunicationLogRequest(); + ~WriteIntentionCommunicationLogRequest(); + + std::string getNote()const; + void setNote(const std::string& note); + bool getReject()const; + void setReject(bool reject); + std::string getBizId()const; + void setBizId(const std::string& bizId); + + private: + std::string note_; + bool reject_; + std::string bizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_WRITEINTENTIONCOMMUNICATIONLOGREQUEST_H_ \ No newline at end of file diff --git a/trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogResult.h b/trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogResult.h new file mode 100644 index 000000000..552771e14 --- /dev/null +++ b/trademark/include/alibabacloud/trademark/model/WriteIntentionCommunicationLogResult.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_TRADEMARK_MODEL_WRITEINTENTIONCOMMUNICATIONLOGRESULT_H_ +#define ALIBABACLOUD_TRADEMARK_MODEL_WRITEINTENTIONCOMMUNICATIONLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Trademark + { + namespace Model + { + class ALIBABACLOUD_TRADEMARK_EXPORT WriteIntentionCommunicationLogResult : public ServiceResult + { + public: + + + WriteIntentionCommunicationLogResult(); + explicit WriteIntentionCommunicationLogResult(const std::string &payload); + ~WriteIntentionCommunicationLogResult(); + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TRADEMARK_MODEL_WRITEINTENTIONCOMMUNICATIONLOGRESULT_H_ \ No newline at end of file diff --git a/trademark/src/TrademarkClient.cc b/trademark/src/TrademarkClient.cc index 42141cd9c..ea7cc8380 100644 --- a/trademark/src/TrademarkClient.cc +++ b/trademark/src/TrademarkClient.cc @@ -51,42 +51,6 @@ TrademarkClient::TrademarkClient(const std::string & accessKeyId, const std::str TrademarkClient::~TrademarkClient() {} -TrademarkClient::GenerateQrCodeOutcome TrademarkClient::generateQrCode(const GenerateQrCodeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateQrCodeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateQrCodeOutcome(GenerateQrCodeResult(outcome.result())); - else - return GenerateQrCodeOutcome(outcome.error()); -} - -void TrademarkClient::generateQrCodeAsync(const GenerateQrCodeRequest& request, const GenerateQrCodeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateQrCode(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::GenerateQrCodeOutcomeCallable TrademarkClient::generateQrCodeCallable(const GenerateQrCodeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateQrCode(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::QueryTradeProduceListOutcome TrademarkClient::queryTradeProduceList(const QueryTradeProduceListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +87,1014 @@ TrademarkClient::QueryTradeProduceListOutcomeCallable TrademarkClient::queryTrad return task->get_future(); } +TrademarkClient::QueryTrademarkMonitorResultsOutcome TrademarkClient::queryTrademarkMonitorResults(const QueryTrademarkMonitorResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTrademarkMonitorResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTrademarkMonitorResultsOutcome(QueryTrademarkMonitorResultsResult(outcome.result())); + else + return QueryTrademarkMonitorResultsOutcome(outcome.error()); +} + +void TrademarkClient::queryTrademarkMonitorResultsAsync(const QueryTrademarkMonitorResultsRequest& request, const QueryTrademarkMonitorResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTrademarkMonitorResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryTrademarkMonitorResultsOutcomeCallable TrademarkClient::queryTrademarkMonitorResultsCallable(const QueryTrademarkMonitorResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTrademarkMonitorResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryTradeMarkApplicationsOutcome TrademarkClient::queryTradeMarkApplications(const QueryTradeMarkApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTradeMarkApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTradeMarkApplicationsOutcome(QueryTradeMarkApplicationsResult(outcome.result())); + else + return QueryTradeMarkApplicationsOutcome(outcome.error()); +} + +void TrademarkClient::queryTradeMarkApplicationsAsync(const QueryTradeMarkApplicationsRequest& request, const QueryTradeMarkApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTradeMarkApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryTradeMarkApplicationsOutcomeCallable TrademarkClient::queryTradeMarkApplicationsCallable(const QueryTradeMarkApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTradeMarkApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::CancelTradeOrderOutcome TrademarkClient::cancelTradeOrder(const CancelTradeOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelTradeOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelTradeOrderOutcome(CancelTradeOrderResult(outcome.result())); + else + return CancelTradeOrderOutcome(outcome.error()); +} + +void TrademarkClient::cancelTradeOrderAsync(const CancelTradeOrderRequest& request, const CancelTradeOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelTradeOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::CancelTradeOrderOutcomeCallable TrademarkClient::cancelTradeOrderCallable(const CancelTradeOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelTradeOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::DeleteTmMonitorRuleOutcome TrademarkClient::deleteTmMonitorRule(const DeleteTmMonitorRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTmMonitorRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTmMonitorRuleOutcome(DeleteTmMonitorRuleResult(outcome.result())); + else + return DeleteTmMonitorRuleOutcome(outcome.error()); +} + +void TrademarkClient::deleteTmMonitorRuleAsync(const DeleteTmMonitorRuleRequest& request, const DeleteTmMonitorRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTmMonitorRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::DeleteTmMonitorRuleOutcomeCallable TrademarkClient::deleteTmMonitorRuleCallable(const DeleteTmMonitorRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTmMonitorRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::WriteIntentionCommunicationLogOutcome TrademarkClient::writeIntentionCommunicationLog(const WriteIntentionCommunicationLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WriteIntentionCommunicationLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WriteIntentionCommunicationLogOutcome(WriteIntentionCommunicationLogResult(outcome.result())); + else + return WriteIntentionCommunicationLogOutcome(outcome.error()); +} + +void TrademarkClient::writeIntentionCommunicationLogAsync(const WriteIntentionCommunicationLogRequest& request, const WriteIntentionCommunicationLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, writeIntentionCommunicationLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::WriteIntentionCommunicationLogOutcomeCallable TrademarkClient::writeIntentionCommunicationLogCallable(const WriteIntentionCommunicationLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->writeIntentionCommunicationLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::SaveTaskOutcome TrademarkClient::saveTask(const SaveTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveTaskOutcome(SaveTaskResult(outcome.result())); + else + return SaveTaskOutcome(outcome.error()); +} + +void TrademarkClient::saveTaskAsync(const SaveTaskRequest& request, const SaveTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::SaveTaskOutcomeCallable TrademarkClient::saveTaskCallable(const SaveTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::UploadNotaryDataOutcome TrademarkClient::uploadNotaryData(const UploadNotaryDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadNotaryDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadNotaryDataOutcome(UploadNotaryDataResult(outcome.result())); + else + return UploadNotaryDataOutcome(outcome.error()); +} + +void TrademarkClient::uploadNotaryDataAsync(const UploadNotaryDataRequest& request, const UploadNotaryDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadNotaryData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::UploadNotaryDataOutcomeCallable TrademarkClient::uploadNotaryDataCallable(const UploadNotaryDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadNotaryData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryIntentionDetailOutcome TrademarkClient::queryIntentionDetail(const QueryIntentionDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryIntentionDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryIntentionDetailOutcome(QueryIntentionDetailResult(outcome.result())); + else + return QueryIntentionDetailOutcome(outcome.error()); +} + +void TrademarkClient::queryIntentionDetailAsync(const QueryIntentionDetailRequest& request, const QueryIntentionDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryIntentionDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryIntentionDetailOutcomeCallable TrademarkClient::queryIntentionDetailCallable(const QueryIntentionDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryIntentionDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::GetNotaryOrderOutcome TrademarkClient::getNotaryOrder(const GetNotaryOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNotaryOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNotaryOrderOutcome(GetNotaryOrderResult(outcome.result())); + else + return GetNotaryOrderOutcome(outcome.error()); +} + +void TrademarkClient::getNotaryOrderAsync(const GetNotaryOrderRequest& request, const GetNotaryOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNotaryOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::GetNotaryOrderOutcomeCallable TrademarkClient::getNotaryOrderCallable(const GetNotaryOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNotaryOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QuerySupplementDetailOutcome TrademarkClient::querySupplementDetail(const QuerySupplementDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySupplementDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySupplementDetailOutcome(QuerySupplementDetailResult(outcome.result())); + else + return QuerySupplementDetailOutcome(outcome.error()); +} + +void TrademarkClient::querySupplementDetailAsync(const QuerySupplementDetailRequest& request, const QuerySupplementDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySupplementDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QuerySupplementDetailOutcomeCallable TrademarkClient::querySupplementDetailCallable(const QuerySupplementDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySupplementDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::InsertRenewInfoOutcome TrademarkClient::insertRenewInfo(const InsertRenewInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InsertRenewInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InsertRenewInfoOutcome(InsertRenewInfoResult(outcome.result())); + else + return InsertRenewInfoOutcome(outcome.error()); +} + +void TrademarkClient::insertRenewInfoAsync(const InsertRenewInfoRequest& request, const InsertRenewInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, insertRenewInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::InsertRenewInfoOutcomeCallable TrademarkClient::insertRenewInfoCallable(const InsertRenewInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->insertRenewInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryCredentialsInfoOutcome TrademarkClient::queryCredentialsInfo(const QueryCredentialsInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCredentialsInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCredentialsInfoOutcome(QueryCredentialsInfoResult(outcome.result())); + else + return QueryCredentialsInfoOutcome(outcome.error()); +} + +void TrademarkClient::queryCredentialsInfoAsync(const QueryCredentialsInfoRequest& request, const QueryCredentialsInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCredentialsInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryCredentialsInfoOutcomeCallable TrademarkClient::queryCredentialsInfoCallable(const QueryCredentialsInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCredentialsInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryTradeMarkApplicationsByIntentionOutcome TrademarkClient::queryTradeMarkApplicationsByIntention(const QueryTradeMarkApplicationsByIntentionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTradeMarkApplicationsByIntentionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTradeMarkApplicationsByIntentionOutcome(QueryTradeMarkApplicationsByIntentionResult(outcome.result())); + else + return QueryTradeMarkApplicationsByIntentionOutcome(outcome.error()); +} + +void TrademarkClient::queryTradeMarkApplicationsByIntentionAsync(const QueryTradeMarkApplicationsByIntentionRequest& request, const QueryTradeMarkApplicationsByIntentionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTradeMarkApplicationsByIntention(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryTradeMarkApplicationsByIntentionOutcomeCallable TrademarkClient::queryTradeMarkApplicationsByIntentionCallable(const QueryTradeMarkApplicationsByIntentionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTradeMarkApplicationsByIntention(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::ApplyNotaryPostOutcome TrademarkClient::applyNotaryPost(const ApplyNotaryPostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApplyNotaryPostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplyNotaryPostOutcome(ApplyNotaryPostResult(outcome.result())); + else + return ApplyNotaryPostOutcome(outcome.error()); +} + +void TrademarkClient::applyNotaryPostAsync(const ApplyNotaryPostRequest& request, const ApplyNotaryPostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applyNotaryPost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::ApplyNotaryPostOutcomeCallable TrademarkClient::applyNotaryPostCallable(const ApplyNotaryPostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applyNotaryPost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::GenerateUploadFilePolicyOutcome TrademarkClient::generateUploadFilePolicy(const GenerateUploadFilePolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateUploadFilePolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateUploadFilePolicyOutcome(GenerateUploadFilePolicyResult(outcome.result())); + else + return GenerateUploadFilePolicyOutcome(outcome.error()); +} + +void TrademarkClient::generateUploadFilePolicyAsync(const GenerateUploadFilePolicyRequest& request, const GenerateUploadFilePolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateUploadFilePolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::GenerateUploadFilePolicyOutcomeCallable TrademarkClient::generateUploadFilePolicyCallable(const GenerateUploadFilePolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateUploadFilePolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::DeleteMaterialOutcome TrademarkClient::deleteMaterial(const DeleteMaterialRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMaterialOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMaterialOutcome(DeleteMaterialResult(outcome.result())); + else + return DeleteMaterialOutcome(outcome.error()); +} + +void TrademarkClient::deleteMaterialAsync(const DeleteMaterialRequest& request, const DeleteMaterialAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMaterial(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::DeleteMaterialOutcomeCallable TrademarkClient::deleteMaterialCallable(const DeleteMaterialRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMaterial(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::WriteCommunicationLogOutcome TrademarkClient::writeCommunicationLog(const WriteCommunicationLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WriteCommunicationLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WriteCommunicationLogOutcome(WriteCommunicationLogResult(outcome.result())); + else + return WriteCommunicationLogOutcome(outcome.error()); +} + +void TrademarkClient::writeCommunicationLogAsync(const WriteCommunicationLogRequest& request, const WriteCommunicationLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, writeCommunicationLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::WriteCommunicationLogOutcomeCallable TrademarkClient::writeCommunicationLogCallable(const WriteCommunicationLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->writeCommunicationLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::InsertTradeIntentionUserOutcome TrademarkClient::insertTradeIntentionUser(const InsertTradeIntentionUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InsertTradeIntentionUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InsertTradeIntentionUserOutcome(InsertTradeIntentionUserResult(outcome.result())); + else + return InsertTradeIntentionUserOutcome(outcome.error()); +} + +void TrademarkClient::insertTradeIntentionUserAsync(const InsertTradeIntentionUserRequest& request, const InsertTradeIntentionUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, insertTradeIntentionUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::InsertTradeIntentionUserOutcomeCallable TrademarkClient::insertTradeIntentionUserCallable(const InsertTradeIntentionUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->insertTradeIntentionUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryTradeProduceDetailOutcome TrademarkClient::queryTradeProduceDetail(const QueryTradeProduceDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTradeProduceDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTradeProduceDetailOutcome(QueryTradeProduceDetailResult(outcome.result())); + else + return QueryTradeProduceDetailOutcome(outcome.error()); +} + +void TrademarkClient::queryTradeProduceDetailAsync(const QueryTradeProduceDetailRequest& request, const QueryTradeProduceDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTradeProduceDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryTradeProduceDetailOutcomeCallable TrademarkClient::queryTradeProduceDetailCallable(const QueryTradeProduceDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTradeProduceDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::SubmitSupplementOutcome TrademarkClient::submitSupplement(const SubmitSupplementRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitSupplementOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitSupplementOutcome(SubmitSupplementResult(outcome.result())); + else + return SubmitSupplementOutcome(outcome.error()); +} + +void TrademarkClient::submitSupplementAsync(const SubmitSupplementRequest& request, const SubmitSupplementAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitSupplement(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::SubmitSupplementOutcomeCallable TrademarkClient::submitSupplementCallable(const SubmitSupplementRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitSupplement(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryQrCodeUploadStatusOutcome TrademarkClient::queryQrCodeUploadStatus(const QueryQrCodeUploadStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryQrCodeUploadStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryQrCodeUploadStatusOutcome(QueryQrCodeUploadStatusResult(outcome.result())); + else + return QueryQrCodeUploadStatusOutcome(outcome.error()); +} + +void TrademarkClient::queryQrCodeUploadStatusAsync(const QueryQrCodeUploadStatusRequest& request, const QueryQrCodeUploadStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryQrCodeUploadStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryQrCodeUploadStatusOutcomeCallable TrademarkClient::queryQrCodeUploadStatusCallable(const QueryQrCodeUploadStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryQrCodeUploadStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::BindMaterialOutcome TrademarkClient::bindMaterial(const BindMaterialRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindMaterialOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindMaterialOutcome(BindMaterialResult(outcome.result())); + else + return BindMaterialOutcome(outcome.error()); +} + +void TrademarkClient::bindMaterialAsync(const BindMaterialRequest& request, const BindMaterialAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindMaterial(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::BindMaterialOutcomeCallable TrademarkClient::bindMaterialCallable(const BindMaterialRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindMaterial(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::StoreMaterialTemporarilyOutcome TrademarkClient::storeMaterialTemporarily(const StoreMaterialTemporarilyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StoreMaterialTemporarilyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StoreMaterialTemporarilyOutcome(StoreMaterialTemporarilyResult(outcome.result())); + else + return StoreMaterialTemporarilyOutcome(outcome.error()); +} + +void TrademarkClient::storeMaterialTemporarilyAsync(const StoreMaterialTemporarilyRequest& request, const StoreMaterialTemporarilyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, storeMaterialTemporarily(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::StoreMaterialTemporarilyOutcomeCallable TrademarkClient::storeMaterialTemporarilyCallable(const StoreMaterialTemporarilyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->storeMaterialTemporarily(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryTradeIntentionUserListOutcome TrademarkClient::queryTradeIntentionUserList(const QueryTradeIntentionUserListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTradeIntentionUserListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTradeIntentionUserListOutcome(QueryTradeIntentionUserListResult(outcome.result())); + else + return QueryTradeIntentionUserListOutcome(outcome.error()); +} + +void TrademarkClient::queryTradeIntentionUserListAsync(const QueryTradeIntentionUserListRequest& request, const QueryTradeIntentionUserListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTradeIntentionUserList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryTradeIntentionUserListOutcomeCallable TrademarkClient::queryTradeIntentionUserListCallable(const QueryTradeIntentionUserListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTradeIntentionUserList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::ListNotaryInfosOutcome TrademarkClient::listNotaryInfos(const ListNotaryInfosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNotaryInfosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNotaryInfosOutcome(ListNotaryInfosResult(outcome.result())); + else + return ListNotaryInfosOutcome(outcome.error()); +} + +void TrademarkClient::listNotaryInfosAsync(const ListNotaryInfosRequest& request, const ListNotaryInfosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNotaryInfos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::ListNotaryInfosOutcomeCallable TrademarkClient::listNotaryInfosCallable(const ListNotaryInfosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNotaryInfos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryCommunicationLogsOutcome TrademarkClient::queryCommunicationLogs(const QueryCommunicationLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCommunicationLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCommunicationLogsOutcome(QueryCommunicationLogsResult(outcome.result())); + else + return QueryCommunicationLogsOutcome(outcome.error()); +} + +void TrademarkClient::queryCommunicationLogsAsync(const QueryCommunicationLogsRequest& request, const QueryCommunicationLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCommunicationLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryCommunicationLogsOutcomeCallable TrademarkClient::queryCommunicationLogsCallable(const QueryCommunicationLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCommunicationLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::QueryTradeMarkApplicationDetailOutcome TrademarkClient::queryTradeMarkApplicationDetail(const QueryTradeMarkApplicationDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTradeMarkApplicationDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTradeMarkApplicationDetailOutcome(QueryTradeMarkApplicationDetailResult(outcome.result())); + else + return QueryTradeMarkApplicationDetailOutcome(outcome.error()); +} + +void TrademarkClient::queryTradeMarkApplicationDetailAsync(const QueryTradeMarkApplicationDetailRequest& request, const QueryTradeMarkApplicationDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTradeMarkApplicationDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryTradeMarkApplicationDetailOutcomeCallable TrademarkClient::queryTradeMarkApplicationDetailCallable(const QueryTradeMarkApplicationDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTradeMarkApplicationDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TrademarkClient::GenerateQrCodeOutcome TrademarkClient::generateQrCode(const GenerateQrCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateQrCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateQrCodeOutcome(GenerateQrCodeResult(outcome.result())); + else + return GenerateQrCodeOutcome(outcome.error()); +} + +void TrademarkClient::generateQrCodeAsync(const GenerateQrCodeRequest& request, const GenerateQrCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateQrCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::GenerateQrCodeOutcomeCallable TrademarkClient::generateQrCodeCallable(const GenerateQrCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateQrCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TrademarkClient::FillLogisticsOutcome TrademarkClient::fillLogistics(const FillLogisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,36 +1275,36 @@ TrademarkClient::ConvertImageToGrayOutcomeCallable TrademarkClient::convertImage return task->get_future(); } -TrademarkClient::QueryTrademarkMonitorResultsOutcome TrademarkClient::queryTrademarkMonitorResults(const QueryTrademarkMonitorResultsRequest &request) const +TrademarkClient::QueryIntentionListOutcome TrademarkClient::queryIntentionList(const QueryIntentionListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryTrademarkMonitorResultsOutcome(endpointOutcome.error()); + return QueryIntentionListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryTrademarkMonitorResultsOutcome(QueryTrademarkMonitorResultsResult(outcome.result())); + return QueryIntentionListOutcome(QueryIntentionListResult(outcome.result())); else - return QueryTrademarkMonitorResultsOutcome(outcome.error()); + return QueryIntentionListOutcome(outcome.error()); } -void TrademarkClient::queryTrademarkMonitorResultsAsync(const QueryTrademarkMonitorResultsRequest& request, const QueryTrademarkMonitorResultsAsyncHandler& handler, const std::shared_ptr& context) const +void TrademarkClient::queryIntentionListAsync(const QueryIntentionListRequest& request, const QueryIntentionListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryTrademarkMonitorResults(request), context); + handler(this, request, queryIntentionList(request), context); }; asyncExecute(new Runnable(fn)); } -TrademarkClient::QueryTrademarkMonitorResultsOutcomeCallable TrademarkClient::queryTrademarkMonitorResultsCallable(const QueryTrademarkMonitorResultsRequest &request) const +TrademarkClient::QueryIntentionListOutcomeCallable TrademarkClient::queryIntentionListCallable(const QueryIntentionListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryTrademarkMonitorResults(request); + return this->queryIntentionList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -375,78 +1347,6 @@ TrademarkClient::CombineLoaOutcomeCallable TrademarkClient::combineLoaCallable(c return task->get_future(); } -TrademarkClient::QueryTradeMarkApplicationsOutcome TrademarkClient::queryTradeMarkApplications(const QueryTradeMarkApplicationsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryTradeMarkApplicationsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryTradeMarkApplicationsOutcome(QueryTradeMarkApplicationsResult(outcome.result())); - else - return QueryTradeMarkApplicationsOutcome(outcome.error()); -} - -void TrademarkClient::queryTradeMarkApplicationsAsync(const QueryTradeMarkApplicationsRequest& request, const QueryTradeMarkApplicationsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryTradeMarkApplications(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryTradeMarkApplicationsOutcomeCallable TrademarkClient::queryTradeMarkApplicationsCallable(const QueryTradeMarkApplicationsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryTradeMarkApplications(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::CancelTradeOrderOutcome TrademarkClient::cancelTradeOrder(const CancelTradeOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CancelTradeOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CancelTradeOrderOutcome(CancelTradeOrderResult(outcome.result())); - else - return CancelTradeOrderOutcome(outcome.error()); -} - -void TrademarkClient::cancelTradeOrderAsync(const CancelTradeOrderRequest& request, const CancelTradeOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, cancelTradeOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::CancelTradeOrderOutcomeCallable TrademarkClient::cancelTradeOrderCallable(const CancelTradeOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->cancelTradeOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::QueryTrademarkPriceOutcome TrademarkClient::queryTrademarkPrice(const QueryTrademarkPriceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,78 +1383,6 @@ TrademarkClient::QueryTrademarkPriceOutcomeCallable TrademarkClient::queryTradem return task->get_future(); } -TrademarkClient::DeleteTmMonitorRuleOutcome TrademarkClient::deleteTmMonitorRule(const DeleteTmMonitorRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteTmMonitorRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteTmMonitorRuleOutcome(DeleteTmMonitorRuleResult(outcome.result())); - else - return DeleteTmMonitorRuleOutcome(outcome.error()); -} - -void TrademarkClient::deleteTmMonitorRuleAsync(const DeleteTmMonitorRuleRequest& request, const DeleteTmMonitorRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteTmMonitorRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::DeleteTmMonitorRuleOutcomeCallable TrademarkClient::deleteTmMonitorRuleCallable(const DeleteTmMonitorRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteTmMonitorRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::SaveTaskOutcome TrademarkClient::saveTask(const SaveTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SaveTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SaveTaskOutcome(SaveTaskResult(outcome.result())); - else - return SaveTaskOutcome(outcome.error()); -} - -void TrademarkClient::saveTaskAsync(const SaveTaskRequest& request, const SaveTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, saveTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::SaveTaskOutcomeCallable TrademarkClient::saveTaskCallable(const SaveTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->saveTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::FilterUnavailableCodesOutcome TrademarkClient::filterUnavailableCodes(const FilterUnavailableCodesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,42 +1419,6 @@ TrademarkClient::FilterUnavailableCodesOutcomeCallable TrademarkClient::filterUn return task->get_future(); } -TrademarkClient::UploadNotaryDataOutcome TrademarkClient::uploadNotaryData(const UploadNotaryDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UploadNotaryDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UploadNotaryDataOutcome(UploadNotaryDataResult(outcome.result())); - else - return UploadNotaryDataOutcome(outcome.error()); -} - -void TrademarkClient::uploadNotaryDataAsync(const UploadNotaryDataRequest& request, const UploadNotaryDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uploadNotaryData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::UploadNotaryDataOutcomeCallable TrademarkClient::uploadNotaryDataCallable(const UploadNotaryDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uploadNotaryData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::InsertMaterialOutcome TrademarkClient::insertMaterial(const InsertMaterialRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,42 +1527,6 @@ TrademarkClient::QueryMonitorKeywordsOutcomeCallable TrademarkClient::queryMonit return task->get_future(); } -TrademarkClient::GetNotaryOrderOutcome TrademarkClient::getNotaryOrder(const GetNotaryOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetNotaryOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetNotaryOrderOutcome(GetNotaryOrderResult(outcome.result())); - else - return GetNotaryOrderOutcome(outcome.error()); -} - -void TrademarkClient::getNotaryOrderAsync(const GetNotaryOrderRequest& request, const GetNotaryOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getNotaryOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::GetNotaryOrderOutcomeCallable TrademarkClient::getNotaryOrderCallable(const GetNotaryOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getNotaryOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::InsertTmMonitorRuleOutcome TrademarkClient::insertTmMonitorRule(const InsertTmMonitorRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,186 +1563,6 @@ TrademarkClient::InsertTmMonitorRuleOutcomeCallable TrademarkClient::insertTmMon return task->get_future(); } -TrademarkClient::InsertRenewInfoOutcome TrademarkClient::insertRenewInfo(const InsertRenewInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InsertRenewInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InsertRenewInfoOutcome(InsertRenewInfoResult(outcome.result())); - else - return InsertRenewInfoOutcome(outcome.error()); -} - -void TrademarkClient::insertRenewInfoAsync(const InsertRenewInfoRequest& request, const InsertRenewInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, insertRenewInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::InsertRenewInfoOutcomeCallable TrademarkClient::insertRenewInfoCallable(const InsertRenewInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->insertRenewInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::QuerySupplementDetailOutcome TrademarkClient::querySupplementDetail(const QuerySupplementDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySupplementDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySupplementDetailOutcome(QuerySupplementDetailResult(outcome.result())); - else - return QuerySupplementDetailOutcome(outcome.error()); -} - -void TrademarkClient::querySupplementDetailAsync(const QuerySupplementDetailRequest& request, const QuerySupplementDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySupplementDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QuerySupplementDetailOutcomeCallable TrademarkClient::querySupplementDetailCallable(const QuerySupplementDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySupplementDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::ApplyNotaryPostOutcome TrademarkClient::applyNotaryPost(const ApplyNotaryPostRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ApplyNotaryPostOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ApplyNotaryPostOutcome(ApplyNotaryPostResult(outcome.result())); - else - return ApplyNotaryPostOutcome(outcome.error()); -} - -void TrademarkClient::applyNotaryPostAsync(const ApplyNotaryPostRequest& request, const ApplyNotaryPostAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, applyNotaryPost(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::ApplyNotaryPostOutcomeCallable TrademarkClient::applyNotaryPostCallable(const ApplyNotaryPostRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->applyNotaryPost(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::QueryCredentialsInfoOutcome TrademarkClient::queryCredentialsInfo(const QueryCredentialsInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCredentialsInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCredentialsInfoOutcome(QueryCredentialsInfoResult(outcome.result())); - else - return QueryCredentialsInfoOutcome(outcome.error()); -} - -void TrademarkClient::queryCredentialsInfoAsync(const QueryCredentialsInfoRequest& request, const QueryCredentialsInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCredentialsInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryCredentialsInfoOutcomeCallable TrademarkClient::queryCredentialsInfoCallable(const QueryCredentialsInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCredentialsInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::QueryTrademarkMonitorRulesOutcome TrademarkClient::queryTrademarkMonitorRules(const QueryTrademarkMonitorRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryTrademarkMonitorRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryTrademarkMonitorRulesOutcome(QueryTrademarkMonitorRulesResult(outcome.result())); - else - return QueryTrademarkMonitorRulesOutcome(outcome.error()); -} - -void TrademarkClient::queryTrademarkMonitorRulesAsync(const QueryTrademarkMonitorRulesRequest& request, const QueryTrademarkMonitorRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryTrademarkMonitorRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryTrademarkMonitorRulesOutcomeCallable TrademarkClient::queryTrademarkMonitorRulesCallable(const QueryTrademarkMonitorRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryTrademarkMonitorRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::CheckLoaFillOutcome TrademarkClient::checkLoaFill(const CheckLoaFillRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1599,42 @@ TrademarkClient::CheckLoaFillOutcomeCallable TrademarkClient::checkLoaFillCallab return task->get_future(); } +TrademarkClient::QueryTrademarkMonitorRulesOutcome TrademarkClient::queryTrademarkMonitorRules(const QueryTrademarkMonitorRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTrademarkMonitorRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTrademarkMonitorRulesOutcome(QueryTrademarkMonitorRulesResult(outcome.result())); + else + return QueryTrademarkMonitorRulesOutcome(outcome.error()); +} + +void TrademarkClient::queryTrademarkMonitorRulesAsync(const QueryTrademarkMonitorRulesRequest& request, const QueryTrademarkMonitorRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTrademarkMonitorRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TrademarkClient::QueryTrademarkMonitorRulesOutcomeCallable TrademarkClient::queryTrademarkMonitorRulesCallable(const QueryTrademarkMonitorRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTrademarkMonitorRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TrademarkClient::QueryOssResourcesOutcome TrademarkClient::queryOssResources(const QueryOssResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,72 +1671,36 @@ TrademarkClient::QueryOssResourcesOutcomeCallable TrademarkClient::queryOssResou return task->get_future(); } -TrademarkClient::GenerateUploadFilePolicyOutcome TrademarkClient::generateUploadFilePolicy(const GenerateUploadFilePolicyRequest &request) const +TrademarkClient::CreateIntentionOrderOutcome TrademarkClient::createIntentionOrder(const CreateIntentionOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GenerateUploadFilePolicyOutcome(endpointOutcome.error()); + return CreateIntentionOrderOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GenerateUploadFilePolicyOutcome(GenerateUploadFilePolicyResult(outcome.result())); + return CreateIntentionOrderOutcome(CreateIntentionOrderResult(outcome.result())); else - return GenerateUploadFilePolicyOutcome(outcome.error()); + return CreateIntentionOrderOutcome(outcome.error()); } -void TrademarkClient::generateUploadFilePolicyAsync(const GenerateUploadFilePolicyRequest& request, const GenerateUploadFilePolicyAsyncHandler& handler, const std::shared_ptr& context) const +void TrademarkClient::createIntentionOrderAsync(const CreateIntentionOrderRequest& request, const CreateIntentionOrderAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, generateUploadFilePolicy(request), context); + handler(this, request, createIntentionOrder(request), context); }; asyncExecute(new Runnable(fn)); } -TrademarkClient::GenerateUploadFilePolicyOutcomeCallable TrademarkClient::generateUploadFilePolicyCallable(const GenerateUploadFilePolicyRequest &request) const +TrademarkClient::CreateIntentionOrderOutcomeCallable TrademarkClient::createIntentionOrderCallable(const CreateIntentionOrderRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->generateUploadFilePolicy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::DeleteMaterialOutcome TrademarkClient::deleteMaterial(const DeleteMaterialRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteMaterialOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteMaterialOutcome(DeleteMaterialResult(outcome.result())); - else - return DeleteMaterialOutcome(outcome.error()); -} - -void TrademarkClient::deleteMaterialAsync(const DeleteMaterialRequest& request, const DeleteMaterialAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteMaterial(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::DeleteMaterialOutcomeCallable TrademarkClient::deleteMaterialCallable(const DeleteMaterialRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteMaterial(request); + return this->createIntentionOrder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1167,42 +1743,6 @@ TrademarkClient::DenySupplementOutcomeCallable TrademarkClient::denySupplementCa return task->get_future(); } -TrademarkClient::InsertTradeIntentionUserOutcome TrademarkClient::insertTradeIntentionUser(const InsertTradeIntentionUserRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InsertTradeIntentionUserOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InsertTradeIntentionUserOutcome(InsertTradeIntentionUserResult(outcome.result())); - else - return InsertTradeIntentionUserOutcome(outcome.error()); -} - -void TrademarkClient::insertTradeIntentionUserAsync(const InsertTradeIntentionUserRequest& request, const InsertTradeIntentionUserAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, insertTradeIntentionUser(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::InsertTradeIntentionUserOutcomeCallable TrademarkClient::insertTradeIntentionUserCallable(const InsertTradeIntentionUserRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->insertTradeIntentionUser(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::ListNotaryOrdersOutcome TrademarkClient::listNotaryOrders(const ListNotaryOrdersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,114 +1779,6 @@ TrademarkClient::ListNotaryOrdersOutcomeCallable TrademarkClient::listNotaryOrde return task->get_future(); } -TrademarkClient::QueryTradeProduceDetailOutcome TrademarkClient::queryTradeProduceDetail(const QueryTradeProduceDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryTradeProduceDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryTradeProduceDetailOutcome(QueryTradeProduceDetailResult(outcome.result())); - else - return QueryTradeProduceDetailOutcome(outcome.error()); -} - -void TrademarkClient::queryTradeProduceDetailAsync(const QueryTradeProduceDetailRequest& request, const QueryTradeProduceDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryTradeProduceDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryTradeProduceDetailOutcomeCallable TrademarkClient::queryTradeProduceDetailCallable(const QueryTradeProduceDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryTradeProduceDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::SubmitSupplementOutcome TrademarkClient::submitSupplement(const SubmitSupplementRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitSupplementOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitSupplementOutcome(SubmitSupplementResult(outcome.result())); - else - return SubmitSupplementOutcome(outcome.error()); -} - -void TrademarkClient::submitSupplementAsync(const SubmitSupplementRequest& request, const SubmitSupplementAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitSupplement(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::SubmitSupplementOutcomeCallable TrademarkClient::submitSupplementCallable(const SubmitSupplementRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitSupplement(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::QueryQrCodeUploadStatusOutcome TrademarkClient::queryQrCodeUploadStatus(const QueryQrCodeUploadStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryQrCodeUploadStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryQrCodeUploadStatusOutcome(QueryQrCodeUploadStatusResult(outcome.result())); - else - return QueryQrCodeUploadStatusOutcome(outcome.error()); -} - -void TrademarkClient::queryQrCodeUploadStatusAsync(const QueryQrCodeUploadStatusRequest& request, const QueryQrCodeUploadStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryQrCodeUploadStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryQrCodeUploadStatusOutcomeCallable TrademarkClient::queryQrCodeUploadStatusCallable(const QueryQrCodeUploadStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryQrCodeUploadStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::QueryMaterialOutcome TrademarkClient::queryMaterial(const QueryMaterialRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,78 +1815,6 @@ TrademarkClient::QueryMaterialOutcomeCallable TrademarkClient::queryMaterialCall return task->get_future(); } -TrademarkClient::BindMaterialOutcome TrademarkClient::bindMaterial(const BindMaterialRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BindMaterialOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BindMaterialOutcome(BindMaterialResult(outcome.result())); - else - return BindMaterialOutcome(outcome.error()); -} - -void TrademarkClient::bindMaterialAsync(const BindMaterialRequest& request, const BindMaterialAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bindMaterial(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::BindMaterialOutcomeCallable TrademarkClient::bindMaterialCallable(const BindMaterialRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bindMaterial(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::QueryTradeIntentionUserListOutcome TrademarkClient::queryTradeIntentionUserList(const QueryTradeIntentionUserListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryTradeIntentionUserListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryTradeIntentionUserListOutcome(QueryTradeIntentionUserListResult(outcome.result())); - else - return QueryTradeIntentionUserListOutcome(outcome.error()); -} - -void TrademarkClient::queryTradeIntentionUserListAsync(const QueryTradeIntentionUserListRequest& request, const QueryTradeIntentionUserListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryTradeIntentionUserList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryTradeIntentionUserListOutcomeCallable TrademarkClient::queryTradeIntentionUserListCallable(const QueryTradeIntentionUserListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryTradeIntentionUserList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::UpdateTmMonitorRuleOutcome TrademarkClient::updateTmMonitorRule(const UpdateTmMonitorRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,42 +1851,6 @@ TrademarkClient::UpdateTmMonitorRuleOutcomeCallable TrademarkClient::updateTmMon return task->get_future(); } -TrademarkClient::StoreMaterialTemporarilyOutcome TrademarkClient::storeMaterialTemporarily(const StoreMaterialTemporarilyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StoreMaterialTemporarilyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StoreMaterialTemporarilyOutcome(StoreMaterialTemporarilyResult(outcome.result())); - else - return StoreMaterialTemporarilyOutcome(outcome.error()); -} - -void TrademarkClient::storeMaterialTemporarilyAsync(const StoreMaterialTemporarilyRequest& request, const StoreMaterialTemporarilyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, storeMaterialTemporarily(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::StoreMaterialTemporarilyOutcomeCallable TrademarkClient::storeMaterialTemporarilyCallable(const StoreMaterialTemporarilyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->storeMaterialTemporarily(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::StartNotaryOutcome TrademarkClient::startNotary(const StartNotaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,42 +1923,6 @@ TrademarkClient::QueryMaterialListOutcomeCallable TrademarkClient::queryMaterial return task->get_future(); } -TrademarkClient::CreateTrademarkOrderOutcome TrademarkClient::createTrademarkOrder(const CreateTrademarkOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateTrademarkOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateTrademarkOrderOutcome(CreateTrademarkOrderResult(outcome.result())); - else - return CreateTrademarkOrderOutcome(outcome.error()); -} - -void TrademarkClient::createTrademarkOrderAsync(const CreateTrademarkOrderRequest& request, const CreateTrademarkOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createTrademarkOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::CreateTrademarkOrderOutcomeCallable TrademarkClient::createTrademarkOrderCallable(const CreateTrademarkOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createTrademarkOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - TrademarkClient::UpdateSendMaterialNumOutcome TrademarkClient::updateSendMaterialNum(const UpdateSendMaterialNumRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,108 +1959,36 @@ TrademarkClient::UpdateSendMaterialNumOutcomeCallable TrademarkClient::updateSen return task->get_future(); } -TrademarkClient::ListNotaryInfosOutcome TrademarkClient::listNotaryInfos(const ListNotaryInfosRequest &request) const +TrademarkClient::CreateTrademarkOrderOutcome TrademarkClient::createTrademarkOrder(const CreateTrademarkOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListNotaryInfosOutcome(endpointOutcome.error()); + return CreateTrademarkOrderOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListNotaryInfosOutcome(ListNotaryInfosResult(outcome.result())); + return CreateTrademarkOrderOutcome(CreateTrademarkOrderResult(outcome.result())); else - return ListNotaryInfosOutcome(outcome.error()); + return CreateTrademarkOrderOutcome(outcome.error()); } -void TrademarkClient::listNotaryInfosAsync(const ListNotaryInfosRequest& request, const ListNotaryInfosAsyncHandler& handler, const std::shared_ptr& context) const +void TrademarkClient::createTrademarkOrderAsync(const CreateTrademarkOrderRequest& request, const CreateTrademarkOrderAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listNotaryInfos(request), context); + handler(this, request, createTrademarkOrder(request), context); }; asyncExecute(new Runnable(fn)); } -TrademarkClient::ListNotaryInfosOutcomeCallable TrademarkClient::listNotaryInfosCallable(const ListNotaryInfosRequest &request) const +TrademarkClient::CreateTrademarkOrderOutcomeCallable TrademarkClient::createTrademarkOrderCallable(const CreateTrademarkOrderRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listNotaryInfos(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::QueryCommunicationLogsOutcome TrademarkClient::queryCommunicationLogs(const QueryCommunicationLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryCommunicationLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryCommunicationLogsOutcome(QueryCommunicationLogsResult(outcome.result())); - else - return QueryCommunicationLogsOutcome(outcome.error()); -} - -void TrademarkClient::queryCommunicationLogsAsync(const QueryCommunicationLogsRequest& request, const QueryCommunicationLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryCommunicationLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryCommunicationLogsOutcomeCallable TrademarkClient::queryCommunicationLogsCallable(const QueryCommunicationLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryCommunicationLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -TrademarkClient::QueryTradeMarkApplicationDetailOutcome TrademarkClient::queryTradeMarkApplicationDetail(const QueryTradeMarkApplicationDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryTradeMarkApplicationDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryTradeMarkApplicationDetailOutcome(QueryTradeMarkApplicationDetailResult(outcome.result())); - else - return QueryTradeMarkApplicationDetailOutcome(outcome.error()); -} - -void TrademarkClient::queryTradeMarkApplicationDetailAsync(const QueryTradeMarkApplicationDetailRequest& request, const QueryTradeMarkApplicationDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryTradeMarkApplicationDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -TrademarkClient::QueryTradeMarkApplicationDetailOutcomeCallable TrademarkClient::queryTradeMarkApplicationDetailCallable(const QueryTradeMarkApplicationDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryTradeMarkApplicationDetail(request); + return this->createTrademarkOrder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/trademark/src/model/ApplyNotaryPostResult.cc b/trademark/src/model/ApplyNotaryPostResult.cc index 713ed6990..6b02e0ff8 100644 --- a/trademark/src/model/ApplyNotaryPostResult.cc +++ b/trademark/src/model/ApplyNotaryPostResult.cc @@ -35,10 +35,13 @@ ApplyNotaryPostResult::~ApplyNotaryPostResult() void ApplyNotaryPostResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/BindMaterialResult.cc b/trademark/src/model/BindMaterialResult.cc index a22f387e1..2f76b8294 100644 --- a/trademark/src/model/BindMaterialResult.cc +++ b/trademark/src/model/BindMaterialResult.cc @@ -35,10 +35,13 @@ BindMaterialResult::~BindMaterialResult() void BindMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/trademark/src/model/CancelTradeOrderResult.cc b/trademark/src/model/CancelTradeOrderResult.cc index 3a5a03544..a068bb09a 100644 --- a/trademark/src/model/CancelTradeOrderResult.cc +++ b/trademark/src/model/CancelTradeOrderResult.cc @@ -35,10 +35,13 @@ CancelTradeOrderResult::~CancelTradeOrderResult() void CancelTradeOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/CheckLoaFillResult.cc b/trademark/src/model/CheckLoaFillResult.cc index c71d41779..01b5f2c9c 100644 --- a/trademark/src/model/CheckLoaFillResult.cc +++ b/trademark/src/model/CheckLoaFillResult.cc @@ -35,10 +35,13 @@ CheckLoaFillResult::~CheckLoaFillResult() void CheckLoaFillResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["StampFill"].isNull()) diff --git a/trademark/src/model/CombineLoaResult.cc b/trademark/src/model/CombineLoaResult.cc index e19ed6cfd..87466eba9 100644 --- a/trademark/src/model/CombineLoaResult.cc +++ b/trademark/src/model/CombineLoaResult.cc @@ -35,10 +35,13 @@ CombineLoaResult::~CombineLoaResult() void CombineLoaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateCombineUrl"].isNull()) templateCombineUrl_ = value["TemplateCombineUrl"].asString(); diff --git a/trademark/src/model/ConvertImageToGrayResult.cc b/trademark/src/model/ConvertImageToGrayResult.cc index 8220feecb..a5e665bee 100644 --- a/trademark/src/model/ConvertImageToGrayResult.cc +++ b/trademark/src/model/ConvertImageToGrayResult.cc @@ -35,10 +35,13 @@ ConvertImageToGrayResult::~ConvertImageToGrayResult() void ConvertImageToGrayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SignatureUrl"].isNull()) signatureUrl_ = value["SignatureUrl"].asString(); diff --git a/trademark/src/model/CreateIntentionOrderRequest.cc b/trademark/src/model/CreateIntentionOrderRequest.cc new file mode 100644 index 000000000..5f6f3611a --- /dev/null +++ b/trademark/src/model/CreateIntentionOrderRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Trademark::Model::CreateIntentionOrderRequest; + +CreateIntentionOrderRequest::CreateIntentionOrderRequest() : + RpcServiceRequest("trademark", "2018-07-24", "CreateIntentionOrder") +{} + +CreateIntentionOrderRequest::~CreateIntentionOrderRequest() +{} + +std::string CreateIntentionOrderRequest::getChannel()const +{ + return channel_; +} + +void CreateIntentionOrderRequest::setChannel(const std::string& channel) +{ + channel_ = channel; + setCoreParameter("Channel", channel); +} + +std::string CreateIntentionOrderRequest::getIntentionBizId()const +{ + return intentionBizId_; +} + +void CreateIntentionOrderRequest::setIntentionBizId(const std::string& intentionBizId) +{ + intentionBizId_ = intentionBizId; + setCoreParameter("IntentionBizId", intentionBizId); +} + diff --git a/trademark/src/model/CreateIntentionOrderResult.cc b/trademark/src/model/CreateIntentionOrderResult.cc new file mode 100644 index 000000000..e6dde514d --- /dev/null +++ b/trademark/src/model/CreateIntentionOrderResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Trademark; +using namespace AlibabaCloud::Trademark::Model; + +CreateIntentionOrderResult::CreateIntentionOrderResult() : + ServiceResult() +{} + +CreateIntentionOrderResult::CreateIntentionOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIntentionOrderResult::~CreateIntentionOrderResult() +{} + +void CreateIntentionOrderResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["OrderIds"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + +} + +std::string CreateIntentionOrderResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector CreateIntentionOrderResult::getData()const +{ + return data_; +} + +bool CreateIntentionOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/trademark/src/model/CreateTrademarkOrderResult.cc b/trademark/src/model/CreateTrademarkOrderResult.cc index 454ab4f26..1b5527ee2 100644 --- a/trademark/src/model/CreateTrademarkOrderResult.cc +++ b/trademark/src/model/CreateTrademarkOrderResult.cc @@ -35,10 +35,13 @@ CreateTrademarkOrderResult::~CreateTrademarkOrderResult() void CreateTrademarkOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); diff --git a/trademark/src/model/DeleteMaterialResult.cc b/trademark/src/model/DeleteMaterialResult.cc index 7ce102708..0404cbdd7 100644 --- a/trademark/src/model/DeleteMaterialResult.cc +++ b/trademark/src/model/DeleteMaterialResult.cc @@ -35,10 +35,13 @@ DeleteMaterialResult::~DeleteMaterialResult() void DeleteMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/DeleteTmMonitorRuleResult.cc b/trademark/src/model/DeleteTmMonitorRuleResult.cc index 3cf11ac67..e071ab8f8 100644 --- a/trademark/src/model/DeleteTmMonitorRuleResult.cc +++ b/trademark/src/model/DeleteTmMonitorRuleResult.cc @@ -35,10 +35,13 @@ DeleteTmMonitorRuleResult::~DeleteTmMonitorRuleResult() void DeleteTmMonitorRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/DenySupplementResult.cc b/trademark/src/model/DenySupplementResult.cc index e4677a674..5d45e1f9e 100644 --- a/trademark/src/model/DenySupplementResult.cc +++ b/trademark/src/model/DenySupplementResult.cc @@ -35,10 +35,13 @@ DenySupplementResult::~DenySupplementResult() void DenySupplementResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/FillLogisticsResult.cc b/trademark/src/model/FillLogisticsResult.cc index 7b106ad95..212c99101 100644 --- a/trademark/src/model/FillLogisticsResult.cc +++ b/trademark/src/model/FillLogisticsResult.cc @@ -35,10 +35,13 @@ FillLogisticsResult::~FillLogisticsResult() void FillLogisticsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/FilterUnavailableCodesResult.cc b/trademark/src/model/FilterUnavailableCodesResult.cc index 509fff2d3..93eff07cb 100644 --- a/trademark/src/model/FilterUnavailableCodesResult.cc +++ b/trademark/src/model/FilterUnavailableCodesResult.cc @@ -35,10 +35,13 @@ FilterUnavailableCodesResult::~FilterUnavailableCodesResult() void FilterUnavailableCodesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Codes"]; for (const auto &item : allData) diff --git a/trademark/src/model/GenerateQrCodeResult.cc b/trademark/src/model/GenerateQrCodeResult.cc index e0af42326..53b463fca 100644 --- a/trademark/src/model/GenerateQrCodeResult.cc +++ b/trademark/src/model/GenerateQrCodeResult.cc @@ -35,10 +35,13 @@ GenerateQrCodeResult::~GenerateQrCodeResult() void GenerateQrCodeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Uuid"].isNull()) uuid_ = value["Uuid"].asString(); diff --git a/trademark/src/model/GenerateUploadFilePolicyResult.cc b/trademark/src/model/GenerateUploadFilePolicyResult.cc index 850e6d24c..8fc4ac4a3 100644 --- a/trademark/src/model/GenerateUploadFilePolicyResult.cc +++ b/trademark/src/model/GenerateUploadFilePolicyResult.cc @@ -35,10 +35,13 @@ GenerateUploadFilePolicyResult::~GenerateUploadFilePolicyResult() void GenerateUploadFilePolicyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["EncodedPolicy"].isNull()) encodedPolicy_ = value["EncodedPolicy"].asString(); diff --git a/trademark/src/model/GetNotaryOrderResult.cc b/trademark/src/model/GetNotaryOrderResult.cc index d718d99f0..bbc70ff1c 100644 --- a/trademark/src/model/GetNotaryOrderResult.cc +++ b/trademark/src/model/GetNotaryOrderResult.cc @@ -35,10 +35,13 @@ GetNotaryOrderResult::~GetNotaryOrderResult() void GetNotaryOrderResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["NotaryOrderId"].isNull()) notaryOrderId_ = std::stol(value["NotaryOrderId"].asString()); diff --git a/trademark/src/model/InsertMaterialResult.cc b/trademark/src/model/InsertMaterialResult.cc index aadb0eec2..242919c16 100644 --- a/trademark/src/model/InsertMaterialResult.cc +++ b/trademark/src/model/InsertMaterialResult.cc @@ -35,10 +35,13 @@ InsertMaterialResult::~InsertMaterialResult() void InsertMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/InsertRenewInfoResult.cc b/trademark/src/model/InsertRenewInfoResult.cc index a42e8cc3f..66756e751 100644 --- a/trademark/src/model/InsertRenewInfoResult.cc +++ b/trademark/src/model/InsertRenewInfoResult.cc @@ -35,10 +35,13 @@ InsertRenewInfoResult::~InsertRenewInfoResult() void InsertRenewInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/trademark/src/model/InsertTmMonitorRuleResult.cc b/trademark/src/model/InsertTmMonitorRuleResult.cc index e19b81251..1719baae4 100644 --- a/trademark/src/model/InsertTmMonitorRuleResult.cc +++ b/trademark/src/model/InsertTmMonitorRuleResult.cc @@ -35,10 +35,13 @@ InsertTmMonitorRuleResult::~InsertTmMonitorRuleResult() void InsertTmMonitorRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/InsertTradeIntentionUserRequest.cc b/trademark/src/model/InsertTradeIntentionUserRequest.cc index 3ecb8203e..5f8faa91d 100644 --- a/trademark/src/model/InsertTradeIntentionUserRequest.cc +++ b/trademark/src/model/InsertTradeIntentionUserRequest.cc @@ -36,6 +36,17 @@ void InsertTradeIntentionUserRequest::setMobile(const std::string& mobile) setCoreParameter("Mobile", mobile); } +std::string InsertTradeIntentionUserRequest::getDescription()const +{ + return description_; +} + +void InsertTradeIntentionUserRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + std::string InsertTradeIntentionUserRequest::getPartnerCode()const { return partnerCode_; diff --git a/trademark/src/model/InsertTradeIntentionUserResult.cc b/trademark/src/model/InsertTradeIntentionUserResult.cc index 5bc325e09..da08f3fc1 100644 --- a/trademark/src/model/InsertTradeIntentionUserResult.cc +++ b/trademark/src/model/InsertTradeIntentionUserResult.cc @@ -35,10 +35,13 @@ InsertTradeIntentionUserResult::~InsertTradeIntentionUserResult() void InsertTradeIntentionUserResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/ListNotaryInfosResult.cc b/trademark/src/model/ListNotaryInfosResult.cc index 8369c1cef..35badf86d 100644 --- a/trademark/src/model/ListNotaryInfosResult.cc +++ b/trademark/src/model/ListNotaryInfosResult.cc @@ -35,10 +35,13 @@ ListNotaryInfosResult::~ListNotaryInfosResult() void ListNotaryInfosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["NotaryInfo"]; for (auto value : allData) diff --git a/trademark/src/model/ListNotaryOrdersResult.cc b/trademark/src/model/ListNotaryOrdersResult.cc index 080186110..6fb5b5376 100644 --- a/trademark/src/model/ListNotaryOrdersResult.cc +++ b/trademark/src/model/ListNotaryOrdersResult.cc @@ -35,10 +35,13 @@ ListNotaryOrdersResult::~ListNotaryOrdersResult() void ListNotaryOrdersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["NotaryOrder"]; for (auto value : allData) diff --git a/trademark/src/model/QueryCommunicationLogsRequest.cc b/trademark/src/model/QueryCommunicationLogsRequest.cc index 5475ce464..227f36c21 100644 --- a/trademark/src/model/QueryCommunicationLogsRequest.cc +++ b/trademark/src/model/QueryCommunicationLogsRequest.cc @@ -36,3 +36,36 @@ void QueryCommunicationLogsRequest::setBizId(const std::string& bizId) setCoreParameter("BizId", bizId); } +int QueryCommunicationLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryCommunicationLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int QueryCommunicationLogsRequest::getType()const +{ + return type_; +} + +void QueryCommunicationLogsRequest::setType(int type) +{ + type_ = type; + setCoreParameter("Type", std::to_string(type)); +} + +int QueryCommunicationLogsRequest::getPageNum()const +{ + return pageNum_; +} + +void QueryCommunicationLogsRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/trademark/src/model/QueryCommunicationLogsResult.cc b/trademark/src/model/QueryCommunicationLogsResult.cc index ec95e2b24..3529f663e 100644 --- a/trademark/src/model/QueryCommunicationLogsResult.cc +++ b/trademark/src/model/QueryCommunicationLogsResult.cc @@ -35,10 +35,13 @@ QueryCommunicationLogsResult::~QueryCommunicationLogsResult() void QueryCommunicationLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TaskList"]; for (auto value : allData) diff --git a/trademark/src/model/QueryCredentialsInfoResult.cc b/trademark/src/model/QueryCredentialsInfoResult.cc index f9c17b762..eef2287a2 100644 --- a/trademark/src/model/QueryCredentialsInfoResult.cc +++ b/trademark/src/model/QueryCredentialsInfoResult.cc @@ -35,10 +35,13 @@ QueryCredentialsInfoResult::~QueryCredentialsInfoResult() void QueryCredentialsInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto credentialsInfoNode = value["CredentialsInfo"]; if(!credentialsInfoNode["CardNumber"].isNull()) diff --git a/trademark/src/model/QueryIntentionDetailRequest.cc b/trademark/src/model/QueryIntentionDetailRequest.cc new file mode 100644 index 000000000..a5f10b178 --- /dev/null +++ b/trademark/src/model/QueryIntentionDetailRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Trademark::Model::QueryIntentionDetailRequest; + +QueryIntentionDetailRequest::QueryIntentionDetailRequest() : + RpcServiceRequest("trademark", "2018-07-24", "QueryIntentionDetail") +{} + +QueryIntentionDetailRequest::~QueryIntentionDetailRequest() +{} + +std::string QueryIntentionDetailRequest::getBizId()const +{ + return bizId_; +} + +void QueryIntentionDetailRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + diff --git a/trademark/src/model/QueryIntentionDetailResult.cc b/trademark/src/model/QueryIntentionDetailResult.cc new file mode 100644 index 000000000..0b2576680 --- /dev/null +++ b/trademark/src/model/QueryIntentionDetailResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Trademark; +using namespace AlibabaCloud::Trademark::Model; + +QueryIntentionDetailResult::QueryIntentionDetailResult() : + ServiceResult() +{} + +QueryIntentionDetailResult::QueryIntentionDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryIntentionDetailResult::~QueryIntentionDetailResult() +{} + +void QueryIntentionDetailResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["UserId"].isNull()) + userId_ = value["UserId"].asString(); + if(!value["RegisterNumber"].isNull()) + registerNumber_ = value["RegisterNumber"].asString(); + if(!value["Classification"].isNull()) + classification_ = value["Classification"].asString(); + if(!value["Type"].isNull()) + type_ = std::stoi(value["Type"].asString()); + if(!value["BizId"].isNull()) + bizId_ = value["BizId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Status"].isNull()) + status_ = std::stoi(value["Status"].asString()); + if(!value["UpdateTime"].isNull()) + updateTime_ = std::stol(value["UpdateTime"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Mobile"].isNull()) + mobile_ = value["Mobile"].asString(); + if(!value["UserName"].isNull()) + userName_ = value["UserName"].asString(); + +} + +int QueryIntentionDetailResult::getStatus()const +{ + return status_; +} + +std::string QueryIntentionDetailResult::getRegisterNumber()const +{ + return registerNumber_; +} + +int QueryIntentionDetailResult::getType()const +{ + return type_; +} + +std::string QueryIntentionDetailResult::getDescription()const +{ + return description_; +} + +std::string QueryIntentionDetailResult::getUserName()const +{ + return userName_; +} + +std::string QueryIntentionDetailResult::getUserId()const +{ + return userId_; +} + +std::string QueryIntentionDetailResult::getClassification()const +{ + return classification_; +} + +long QueryIntentionDetailResult::getCreateTime()const +{ + return createTime_; +} + +long QueryIntentionDetailResult::getUpdateTime()const +{ + return updateTime_; +} + +std::string QueryIntentionDetailResult::getBizId()const +{ + return bizId_; +} + +std::string QueryIntentionDetailResult::getMobile()const +{ + return mobile_; +} + diff --git a/trademark/src/model/QueryIntentionListRequest.cc b/trademark/src/model/QueryIntentionListRequest.cc new file mode 100644 index 000000000..904cc0c3a --- /dev/null +++ b/trademark/src/model/QueryIntentionListRequest.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 + +using AlibabaCloud::Trademark::Model::QueryIntentionListRequest; + +QueryIntentionListRequest::QueryIntentionListRequest() : + RpcServiceRequest("trademark", "2018-07-24", "QueryIntentionList") +{} + +QueryIntentionListRequest::~QueryIntentionListRequest() +{} + +int QueryIntentionListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryIntentionListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryIntentionListRequest::getSortOrder()const +{ + return sortOrder_; +} + +void QueryIntentionListRequest::setSortOrder(const std::string& sortOrder) +{ + sortOrder_ = sortOrder; + setCoreParameter("SortOrder", sortOrder); +} + +int QueryIntentionListRequest::getType()const +{ + return type_; +} + +void QueryIntentionListRequest::setType(int type) +{ + type_ = type; + setCoreParameter("Type", std::to_string(type)); +} + +int QueryIntentionListRequest::getPageNum()const +{ + return pageNum_; +} + +void QueryIntentionListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); +} + +std::string QueryIntentionListRequest::getSortFiled()const +{ + return sortFiled_; +} + +void QueryIntentionListRequest::setSortFiled(const std::string& sortFiled) +{ + sortFiled_ = sortFiled; + setCoreParameter("SortFiled", sortFiled); +} + +int QueryIntentionListRequest::getStatus()const +{ + return status_; +} + +void QueryIntentionListRequest::setStatus(int status) +{ + status_ = status; + setCoreParameter("Status", std::to_string(status)); +} + diff --git a/trademark/src/model/QueryIntentionListResult.cc b/trademark/src/model/QueryIntentionListResult.cc new file mode 100644 index 000000000..c81cf7a66 --- /dev/null +++ b/trademark/src/model/QueryIntentionListResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Trademark; +using namespace AlibabaCloud::Trademark::Model; + +QueryIntentionListResult::QueryIntentionListResult() : + ServiceResult() +{} + +QueryIntentionListResult::QueryIntentionListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryIntentionListResult::~QueryIntentionListResult() +{} + +void QueryIntentionListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Intention"]; + for (auto value : allData) + { + Intention dataObject; + if(!value["UserId"].isNull()) + dataObject.userId = value["UserId"].asString(); + if(!value["RegisterNumber"].isNull()) + dataObject.registerNumber = value["RegisterNumber"].asString(); + if(!value["Classification"].isNull()) + dataObject.classification = value["Classification"].asString(); + if(!value["Type"].isNull()) + dataObject.type = std::stoi(value["Type"].asString()); + if(!value["BizId"].isNull()) + dataObject.bizId = value["BizId"].asString(); + if(!value["Description"].isNull()) + dataObject.description = value["Description"].asString(); + if(!value["Status"].isNull()) + dataObject.status = std::stoi(value["Status"].asString()); + if(!value["UpdateTime"].isNull()) + dataObject.updateTime = std::stol(value["UpdateTime"].asString()); + if(!value["CreateTime"].isNull()) + dataObject.createTime = std::stol(value["CreateTime"].asString()); + data_.push_back(dataObject); + } + if(!value["TotalItemNum"].isNull()) + totalItemNum_ = std::stoi(value["TotalItemNum"].asString()); + if(!value["CurrentPageNum"].isNull()) + currentPageNum_ = std::stoi(value["CurrentPageNum"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalPageNum"].isNull()) + totalPageNum_ = std::stoi(value["TotalPageNum"].asString()); + +} + +int QueryIntentionListResult::getCurrentPageNum()const +{ + return currentPageNum_; +} + +int QueryIntentionListResult::getPageSize()const +{ + return pageSize_; +} + +int QueryIntentionListResult::getTotalPageNum()const +{ + return totalPageNum_; +} + +std::vector QueryIntentionListResult::getData()const +{ + return data_; +} + +int QueryIntentionListResult::getTotalItemNum()const +{ + return totalItemNum_; +} + diff --git a/trademark/src/model/QueryMaterialListResult.cc b/trademark/src/model/QueryMaterialListResult.cc index ef26a3bb6..5590a6a39 100644 --- a/trademark/src/model/QueryMaterialListResult.cc +++ b/trademark/src/model/QueryMaterialListResult.cc @@ -35,10 +35,13 @@ QueryMaterialListResult::~QueryMaterialListResult() void QueryMaterialListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Trademark"]; for (auto value : allData) diff --git a/trademark/src/model/QueryMaterialResult.cc b/trademark/src/model/QueryMaterialResult.cc index db8de2fb1..d4c3e2675 100644 --- a/trademark/src/model/QueryMaterialResult.cc +++ b/trademark/src/model/QueryMaterialResult.cc @@ -35,10 +35,13 @@ QueryMaterialResult::~QueryMaterialResult() void QueryMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Type"].isNull()) type_ = std::stoi(value["Type"].asString()); diff --git a/trademark/src/model/QueryMonitorKeywordsResult.cc b/trademark/src/model/QueryMonitorKeywordsResult.cc index 67eea916e..49cfc57f8 100644 --- a/trademark/src/model/QueryMonitorKeywordsResult.cc +++ b/trademark/src/model/QueryMonitorKeywordsResult.cc @@ -35,10 +35,13 @@ QueryMonitorKeywordsResult::~QueryMonitorKeywordsResult() void QueryMonitorKeywordsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Keywords"]; for (const auto &item : allData) diff --git a/trademark/src/model/QueryOssResourcesResult.cc b/trademark/src/model/QueryOssResourcesResult.cc index 0e8284542..197901aaa 100644 --- a/trademark/src/model/QueryOssResourcesResult.cc +++ b/trademark/src/model/QueryOssResourcesResult.cc @@ -35,10 +35,13 @@ QueryOssResourcesResult::~QueryOssResourcesResult() void QueryOssResourcesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TaskList"]; for (auto value : allData) diff --git a/trademark/src/model/QueryQrCodeUploadStatusResult.cc b/trademark/src/model/QueryQrCodeUploadStatusResult.cc index bf6e076f2..b2bec6be2 100644 --- a/trademark/src/model/QueryQrCodeUploadStatusResult.cc +++ b/trademark/src/model/QueryQrCodeUploadStatusResult.cc @@ -35,10 +35,13 @@ QueryQrCodeUploadStatusResult::~QueryQrCodeUploadStatusResult() void QueryQrCodeUploadStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OssKey"].isNull()) ossKey_ = value["OssKey"].asString(); diff --git a/trademark/src/model/QuerySupplementDetailResult.cc b/trademark/src/model/QuerySupplementDetailResult.cc index 0980fd371..a7ad10eaf 100644 --- a/trademark/src/model/QuerySupplementDetailResult.cc +++ b/trademark/src/model/QuerySupplementDetailResult.cc @@ -35,10 +35,13 @@ QuerySupplementDetailResult::~QuerySupplementDetailResult() void QuerySupplementDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFileTemplateUrls = value["FileTemplateUrls"]["FileTemplateUrls"]; for (const auto &item : allFileTemplateUrls) diff --git a/trademark/src/model/QueryTaskListResult.cc b/trademark/src/model/QueryTaskListResult.cc index 58df4fcf4..549cccefc 100644 --- a/trademark/src/model/QueryTaskListResult.cc +++ b/trademark/src/model/QueryTaskListResult.cc @@ -35,10 +35,13 @@ QueryTaskListResult::~QueryTaskListResult() void QueryTaskListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TaskList"]; for (auto value : allData) diff --git a/trademark/src/model/QueryTradeIntentionUserListRequest.cc b/trademark/src/model/QueryTradeIntentionUserListRequest.cc index bacae07f5..ed8212133 100644 --- a/trademark/src/model/QueryTradeIntentionUserListRequest.cc +++ b/trademark/src/model/QueryTradeIntentionUserListRequest.cc @@ -25,6 +25,28 @@ QueryTradeIntentionUserListRequest::QueryTradeIntentionUserListRequest() : QueryTradeIntentionUserListRequest::~QueryTradeIntentionUserListRequest() {} +int QueryTradeIntentionUserListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryTradeIntentionUserListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryTradeIntentionUserListRequest::getBizId()const +{ + return bizId_; +} + +void QueryTradeIntentionUserListRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + long QueryTradeIntentionUserListRequest::getEnd()const { return end_; @@ -36,6 +58,17 @@ void QueryTradeIntentionUserListRequest::setEnd(long end) setCoreParameter("End", std::to_string(end)); } +int QueryTradeIntentionUserListRequest::getPageNum()const +{ + return pageNum_; +} + +void QueryTradeIntentionUserListRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); +} + long QueryTradeIntentionUserListRequest::getBegin()const { return begin_; @@ -47,3 +80,14 @@ void QueryTradeIntentionUserListRequest::setBegin(long begin) setCoreParameter("Begin", std::to_string(begin)); } +int QueryTradeIntentionUserListRequest::getStatus()const +{ + return status_; +} + +void QueryTradeIntentionUserListRequest::setStatus(int status) +{ + status_ = status; + setCoreParameter("Status", std::to_string(status)); +} + diff --git a/trademark/src/model/QueryTradeIntentionUserListResult.cc b/trademark/src/model/QueryTradeIntentionUserListResult.cc index ad485a84b..d97339e33 100644 --- a/trademark/src/model/QueryTradeIntentionUserListResult.cc +++ b/trademark/src/model/QueryTradeIntentionUserListResult.cc @@ -35,27 +35,32 @@ QueryTradeIntentionUserListResult::~QueryTradeIntentionUserListResult() void QueryTradeIntentionUserListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Trademark"]; for (auto value : allData) { Trademark dataObject; - if(!value["UserId"].isNull()) - dataObject.userId = value["UserId"].asString(); if(!value["RegisterNumber"].isNull()) dataObject.registerNumber = value["RegisterNumber"].asString(); if(!value["Classification"].isNull()) dataObject.classification = value["Classification"].asString(); if(!value["Mobile"].isNull()) dataObject.mobile = std::stoi(value["Mobile"].asString()); - if(!value["Id"].isNull()) - dataObject.id = std::stol(value["Id"].asString()); if(!value["UserName"].isNull()) dataObject.userName = value["UserName"].asString(); + if(!value["BizId"].isNull()) + dataObject.bizId = value["BizId"].asString(); + if(!value["Description"].isNull()) + dataObject.description = value["Description"].asString(); + if(!value["Status"].isNull()) + dataObject.status = std::stoi(value["Status"].asString()); data_.push_back(dataObject); } if(!value["TotalItemNum"].isNull()) diff --git a/trademark/src/model/QueryTradeMarkApplicationDetailResult.cc b/trademark/src/model/QueryTradeMarkApplicationDetailResult.cc index 862f21b62..c81d979ce 100644 --- a/trademark/src/model/QueryTradeMarkApplicationDetailResult.cc +++ b/trademark/src/model/QueryTradeMarkApplicationDetailResult.cc @@ -35,10 +35,13 @@ QueryTradeMarkApplicationDetailResult::~QueryTradeMarkApplicationDetailResult() void QueryTradeMarkApplicationDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allThirdClassification = value["ThirdClassification"]["ThirdClassifications"]; for (auto value : allThirdClassification) @@ -168,7 +171,7 @@ void QueryTradeMarkApplicationDetailResult::parse(const std::string &payload) if(!value["LoaUrl"].isNull()) loaUrl_ = value["LoaUrl"].asString(); if(!value["OrderPrice"].isNull()) - orderPrice_ = std::stoi(value["OrderPrice"].asString()); + orderPrice_ = std::stof(value["OrderPrice"].asString()); if(!value["TmIcon"].isNull()) tmIcon_ = value["TmIcon"].asString(); if(!value["OrderId"].isNull()) @@ -203,6 +206,10 @@ void QueryTradeMarkApplicationDetailResult::parse(const std::string &payload) recvUserLogistics_ = value["RecvUserLogistics"].asString(); if(!value["MaterialId"].isNull()) materialId_ = std::stol(value["MaterialId"].asString()); + if(!value["TotalPrice"].isNull()) + totalPrice_ = std::stof(value["TotalPrice"].asString()); + if(!value["ServicePrice"].isNull()) + servicePrice_ = std::stof(value["ServicePrice"].asString()); } @@ -256,6 +263,11 @@ std::string QueryTradeMarkApplicationDetailResult::getGrayIconUrl()const return grayIconUrl_; } +float QueryTradeMarkApplicationDetailResult::getServicePrice()const +{ + return servicePrice_; +} + QueryTradeMarkApplicationDetailResult::AdminUploads QueryTradeMarkApplicationDetailResult::getAdminUploads()const { return adminUploads_; @@ -301,7 +313,7 @@ long QueryTradeMarkApplicationDetailResult::getCreateTime()const return createTime_; } -int QueryTradeMarkApplicationDetailResult::getOrderPrice()const +float QueryTradeMarkApplicationDetailResult::getOrderPrice()const { return orderPrice_; } @@ -331,6 +343,11 @@ std::string QueryTradeMarkApplicationDetailResult::getNote()const return note_; } +float QueryTradeMarkApplicationDetailResult::getTotalPrice()const +{ + return totalPrice_; +} + std::string QueryTradeMarkApplicationDetailResult::getTmName()const { return tmName_; diff --git a/trademark/src/model/QueryTradeMarkApplicationLogsResult.cc b/trademark/src/model/QueryTradeMarkApplicationLogsResult.cc index 137c4eea8..ce9c5f9c1 100644 --- a/trademark/src/model/QueryTradeMarkApplicationLogsResult.cc +++ b/trademark/src/model/QueryTradeMarkApplicationLogsResult.cc @@ -35,10 +35,13 @@ QueryTradeMarkApplicationLogsResult::~QueryTradeMarkApplicationLogsResult() void QueryTradeMarkApplicationLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DataItem"]; for (auto value : allData) diff --git a/trademark/src/model/QueryTradeMarkApplicationsByIntentionRequest.cc b/trademark/src/model/QueryTradeMarkApplicationsByIntentionRequest.cc new file mode 100644 index 000000000..1681f03b4 --- /dev/null +++ b/trademark/src/model/QueryTradeMarkApplicationsByIntentionRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Trademark::Model::QueryTradeMarkApplicationsByIntentionRequest; + +QueryTradeMarkApplicationsByIntentionRequest::QueryTradeMarkApplicationsByIntentionRequest() : + RpcServiceRequest("trademark", "2018-07-24", "QueryTradeMarkApplicationsByIntention") +{} + +QueryTradeMarkApplicationsByIntentionRequest::~QueryTradeMarkApplicationsByIntentionRequest() +{} + +std::string QueryTradeMarkApplicationsByIntentionRequest::getChannel()const +{ + return channel_; +} + +void QueryTradeMarkApplicationsByIntentionRequest::setChannel(const std::string& channel) +{ + channel_ = channel; + setCoreParameter("Channel", channel); +} + +int QueryTradeMarkApplicationsByIntentionRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryTradeMarkApplicationsByIntentionRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryTradeMarkApplicationsByIntentionRequest::getIntentionBizId()const +{ + return intentionBizId_; +} + +void QueryTradeMarkApplicationsByIntentionRequest::setIntentionBizId(const std::string& intentionBizId) +{ + intentionBizId_ = intentionBizId; + setCoreParameter("IntentionBizId", intentionBizId); +} + +int QueryTradeMarkApplicationsByIntentionRequest::getPageNum()const +{ + return pageNum_; +} + +void QueryTradeMarkApplicationsByIntentionRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/trademark/src/model/QueryTradeMarkApplicationsByIntentionResult.cc b/trademark/src/model/QueryTradeMarkApplicationsByIntentionResult.cc new file mode 100644 index 000000000..bfb35e9e1 --- /dev/null +++ b/trademark/src/model/QueryTradeMarkApplicationsByIntentionResult.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Trademark; +using namespace AlibabaCloud::Trademark::Model; + +QueryTradeMarkApplicationsByIntentionResult::QueryTradeMarkApplicationsByIntentionResult() : + ServiceResult() +{} + +QueryTradeMarkApplicationsByIntentionResult::QueryTradeMarkApplicationsByIntentionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTradeMarkApplicationsByIntentionResult::~QueryTradeMarkApplicationsByIntentionResult() +{} + +void QueryTradeMarkApplicationsByIntentionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["TmProduces"]; + for (auto value : allData) + { + TmProduces dataObject; + if(!value["BizId"].isNull()) + dataObject.bizId = value["BizId"].asString(); + if(!value["MaterialName"].isNull()) + dataObject.materialName = value["MaterialName"].asString(); + if(!value["TmIcon"].isNull()) + dataObject.tmIcon = value["TmIcon"].asString(); + if(!value["TmName"].isNull()) + dataObject.tmName = value["TmName"].asString(); + if(!value["TmNumber"].isNull()) + dataObject.tmNumber = value["TmNumber"].asString(); + if(!value["CreateTime"].isNull()) + dataObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["Type"].isNull()) + dataObject.type = std::stoi(value["Type"].asString()); + if(!value["Status"].isNull()) + dataObject.status = std::stoi(value["Status"].asString()); + if(!value["OrderPrice"].isNull()) + dataObject.orderPrice = std::stof(value["OrderPrice"].asString()); + if(!value["MaterialId"].isNull()) + dataObject.materialId = value["MaterialId"].asString(); + if(!value["LoaUrl"].isNull()) + dataObject.loaUrl = value["LoaUrl"].asString(); + if(!value["Note"].isNull()) + dataObject.note = value["Note"].asString(); + if(!value["UpdateTime"].isNull()) + dataObject.updateTime = std::stol(value["UpdateTime"].asString()); + if(!value["SupplementStatus"].isNull()) + dataObject.supplementStatus = std::stoi(value["SupplementStatus"].asString()); + if(!value["SupplementId"].isNull()) + dataObject.supplementId = std::stol(value["SupplementId"].asString()); + if(!value["TotalPrice"].isNull()) + dataObject.totalPrice = std::stof(value["TotalPrice"].asString()); + if(!value["ServicePrice"].isNull()) + dataObject.servicePrice = std::stof(value["ServicePrice"].asString()); + auto allThirdClassification = value["ThirdClassification"]["ThirdClassifications"]; + for (auto value : allThirdClassification) + { + TmProduces::ThirdClassifications thirdClassificationObject; + if(!value["ClassificationCode"].isNull()) + thirdClassificationObject.classificationCode = value["ClassificationCode"].asString(); + if(!value["ClassificationName"].isNull()) + thirdClassificationObject.classificationName = value["ClassificationName"].asString(); + dataObject.thirdClassification.push_back(thirdClassificationObject); + } + auto firstClassificationNode = value["FirstClassification"]; + if(!firstClassificationNode["ClassificationCode"].isNull()) + dataObject.firstClassification.classificationCode = firstClassificationNode["ClassificationCode"].asString(); + if(!firstClassificationNode["ClassificationName"].isNull()) + dataObject.firstClassification.classificationName = firstClassificationNode["ClassificationName"].asString(); + data_.push_back(dataObject); + } + if(!value["TotalItemNum"].isNull()) + totalItemNum_ = std::stoi(value["TotalItemNum"].asString()); + if(!value["CurrentPageNum"].isNull()) + currentPageNum_ = std::stoi(value["CurrentPageNum"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalPageNum"].isNull()) + totalPageNum_ = std::stoi(value["TotalPageNum"].asString()); + +} + +int QueryTradeMarkApplicationsByIntentionResult::getCurrentPageNum()const +{ + return currentPageNum_; +} + +int QueryTradeMarkApplicationsByIntentionResult::getPageSize()const +{ + return pageSize_; +} + +int QueryTradeMarkApplicationsByIntentionResult::getTotalPageNum()const +{ + return totalPageNum_; +} + +std::vector QueryTradeMarkApplicationsByIntentionResult::getData()const +{ + return data_; +} + +int QueryTradeMarkApplicationsByIntentionResult::getTotalItemNum()const +{ + return totalItemNum_; +} + diff --git a/trademark/src/model/QueryTradeMarkApplicationsRequest.cc b/trademark/src/model/QueryTradeMarkApplicationsRequest.cc index 913a92477..b53125977 100644 --- a/trademark/src/model/QueryTradeMarkApplicationsRequest.cc +++ b/trademark/src/model/QueryTradeMarkApplicationsRequest.cc @@ -47,6 +47,17 @@ void QueryTradeMarkApplicationsRequest::setMaterialName(const std::string& mater setCoreParameter("MaterialName", materialName); } +int QueryTradeMarkApplicationsRequest::getHidden()const +{ + return hidden_; +} + +void QueryTradeMarkApplicationsRequest::setHidden(int hidden) +{ + hidden_ = hidden; + setCoreParameter("Hidden", std::to_string(hidden)); +} + std::string QueryTradeMarkApplicationsRequest::getOrderId()const { return orderId_; @@ -58,6 +69,50 @@ void QueryTradeMarkApplicationsRequest::setOrderId(const std::string& orderId) setCoreParameter("OrderId", orderId); } +std::string QueryTradeMarkApplicationsRequest::getTmNumber()const +{ + return tmNumber_; +} + +void QueryTradeMarkApplicationsRequest::setTmNumber(const std::string& tmNumber) +{ + tmNumber_ = tmNumber; + setCoreParameter("TmNumber", tmNumber); +} + +std::string QueryTradeMarkApplicationsRequest::getIntentionBizId()const +{ + return intentionBizId_; +} + +void QueryTradeMarkApplicationsRequest::setIntentionBizId(const std::string& intentionBizId) +{ + intentionBizId_ = intentionBizId; + setCoreParameter("IntentionBizId", intentionBizId); +} + +int QueryTradeMarkApplicationsRequest::getPageNum()const +{ + return pageNum_; +} + +void QueryTradeMarkApplicationsRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); +} + +std::string QueryTradeMarkApplicationsRequest::getType()const +{ + return type_; +} + +void QueryTradeMarkApplicationsRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + int QueryTradeMarkApplicationsRequest::getSupplementStatus()const { return supplementStatus_; @@ -91,17 +146,6 @@ void QueryTradeMarkApplicationsRequest::setBizId(const std::string& bizId) setCoreParameter("BizId", bizId); } -std::string QueryTradeMarkApplicationsRequest::getTmNumber()const -{ - return tmNumber_; -} - -void QueryTradeMarkApplicationsRequest::setTmNumber(const std::string& tmNumber) -{ - tmNumber_ = tmNumber; - setCoreParameter("TmNumber", tmNumber); -} - std::string QueryTradeMarkApplicationsRequest::getSortOrder()const { return sortOrder_; @@ -113,28 +157,6 @@ void QueryTradeMarkApplicationsRequest::setSortOrder(const std::string& sortOrde setCoreParameter("SortOrder", sortOrder); } -int QueryTradeMarkApplicationsRequest::getPageNum()const -{ - return pageNum_; -} - -void QueryTradeMarkApplicationsRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setCoreParameter("PageNum", std::to_string(pageNum)); -} - -std::string QueryTradeMarkApplicationsRequest::getType()const -{ - return type_; -} - -void QueryTradeMarkApplicationsRequest::setType(const std::string& type) -{ - type_ = type; - setCoreParameter("Type", type); -} - int QueryTradeMarkApplicationsRequest::getStatus()const { return status_; diff --git a/trademark/src/model/QueryTradeMarkApplicationsResult.cc b/trademark/src/model/QueryTradeMarkApplicationsResult.cc index 5dd9c3019..70f499efd 100644 --- a/trademark/src/model/QueryTradeMarkApplicationsResult.cc +++ b/trademark/src/model/QueryTradeMarkApplicationsResult.cc @@ -35,10 +35,13 @@ QueryTradeMarkApplicationsResult::~QueryTradeMarkApplicationsResult() void QueryTradeMarkApplicationsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TmProduces"]; for (auto value : allData) @@ -78,6 +81,10 @@ void QueryTradeMarkApplicationsResult::parse(const std::string &payload) dataObject.supplementStatus = std::stoi(value["SupplementStatus"].asString()); if(!value["SupplementId"].isNull()) dataObject.supplementId = std::stol(value["SupplementId"].asString()); + if(!value["TotalPrice"].isNull()) + dataObject.totalPrice = std::stof(value["TotalPrice"].asString()); + if(!value["ServicePrice"].isNull()) + dataObject.servicePrice = std::stof(value["ServicePrice"].asString()); auto allThirdClassification = value["ThirdClassification"]["ThirdClassifications"]; for (auto value : allThirdClassification) { diff --git a/trademark/src/model/QueryTradeProduceDetailResult.cc b/trademark/src/model/QueryTradeProduceDetailResult.cc index df1b443c3..ef84c37a0 100644 --- a/trademark/src/model/QueryTradeProduceDetailResult.cc +++ b/trademark/src/model/QueryTradeProduceDetailResult.cc @@ -35,10 +35,13 @@ QueryTradeProduceDetailResult::~QueryTradeProduceDetailResult() void QueryTradeProduceDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["BizId"].isNull()) diff --git a/trademark/src/model/QueryTradeProduceListResult.cc b/trademark/src/model/QueryTradeProduceListResult.cc index 91410495a..5727b145c 100644 --- a/trademark/src/model/QueryTradeProduceListResult.cc +++ b/trademark/src/model/QueryTradeProduceListResult.cc @@ -35,10 +35,13 @@ QueryTradeProduceListResult::~QueryTradeProduceListResult() void QueryTradeProduceListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TradeProduces"]; for (auto value : allData) @@ -70,6 +73,8 @@ void QueryTradeProduceListResult::parse(const std::string &payload) dataObject.updateTime = std::stol(value["UpdateTime"].asString()); if(!value["AllowCancel"].isNull()) dataObject.allowCancel = value["AllowCancel"].asString() == "true"; + if(!value["FailReason"].isNull()) + dataObject.failReason = std::stoi(value["FailReason"].asString()); data_.push_back(dataObject); } if(!value["TotalItemNum"].isNull()) diff --git a/trademark/src/model/QueryTrademarkMonitorResultsResult.cc b/trademark/src/model/QueryTrademarkMonitorResultsResult.cc index bdd26fc5a..70b462659 100644 --- a/trademark/src/model/QueryTrademarkMonitorResultsResult.cc +++ b/trademark/src/model/QueryTrademarkMonitorResultsResult.cc @@ -35,10 +35,13 @@ QueryTrademarkMonitorResultsResult::~QueryTrademarkMonitorResultsResult() void QueryTrademarkMonitorResultsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TmMonitorResult"]; for (auto value : allData) diff --git a/trademark/src/model/QueryTrademarkMonitorRulesResult.cc b/trademark/src/model/QueryTrademarkMonitorRulesResult.cc index 5607b2869..0134c7e81 100644 --- a/trademark/src/model/QueryTrademarkMonitorRulesResult.cc +++ b/trademark/src/model/QueryTrademarkMonitorRulesResult.cc @@ -35,10 +35,13 @@ QueryTrademarkMonitorRulesResult::~QueryTrademarkMonitorRulesResult() void QueryTrademarkMonitorRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["TmMonitorRule"]; for (auto value : allData) diff --git a/trademark/src/model/QueryTrademarkPriceResult.cc b/trademark/src/model/QueryTrademarkPriceResult.cc index 2c16483ac..f18531af6 100644 --- a/trademark/src/model/QueryTrademarkPriceResult.cc +++ b/trademark/src/model/QueryTrademarkPriceResult.cc @@ -35,10 +35,13 @@ QueryTrademarkPriceResult::~QueryTrademarkPriceResult() void QueryTrademarkPriceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPrices = value["Prices"]["PricesItem"]; for (auto value : allPrices) diff --git a/trademark/src/model/RefundProduceResult.cc b/trademark/src/model/RefundProduceResult.cc index 89e5d1ffc..e640eb7a4 100644 --- a/trademark/src/model/RefundProduceResult.cc +++ b/trademark/src/model/RefundProduceResult.cc @@ -35,10 +35,13 @@ RefundProduceResult::~RefundProduceResult() void RefundProduceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/SaveTaskResult.cc b/trademark/src/model/SaveTaskResult.cc index 12cd21392..135f91fe6 100644 --- a/trademark/src/model/SaveTaskResult.cc +++ b/trademark/src/model/SaveTaskResult.cc @@ -35,10 +35,13 @@ SaveTaskResult::~SaveTaskResult() void SaveTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/trademark/src/model/StartNotaryResult.cc b/trademark/src/model/StartNotaryResult.cc index ad43c968a..b40b5ab05 100644 --- a/trademark/src/model/StartNotaryResult.cc +++ b/trademark/src/model/StartNotaryResult.cc @@ -35,10 +35,13 @@ StartNotaryResult::~StartNotaryResult() void StartNotaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["NotaryUrl"].isNull()) notaryUrl_ = value["NotaryUrl"].asString(); diff --git a/trademark/src/model/StoreMaterialTemporarilyResult.cc b/trademark/src/model/StoreMaterialTemporarilyResult.cc index cebe03010..2aa42d1f7 100644 --- a/trademark/src/model/StoreMaterialTemporarilyResult.cc +++ b/trademark/src/model/StoreMaterialTemporarilyResult.cc @@ -35,10 +35,13 @@ StoreMaterialTemporarilyResult::~StoreMaterialTemporarilyResult() void StoreMaterialTemporarilyResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/SubmitSupplementResult.cc b/trademark/src/model/SubmitSupplementResult.cc index bf39b9fde..ced5ea9c7 100644 --- a/trademark/src/model/SubmitSupplementResult.cc +++ b/trademark/src/model/SubmitSupplementResult.cc @@ -35,10 +35,13 @@ SubmitSupplementResult::~SubmitSupplementResult() void SubmitSupplementResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/UpdateMaterialResult.cc b/trademark/src/model/UpdateMaterialResult.cc index 9b4132e59..c458cf1fa 100644 --- a/trademark/src/model/UpdateMaterialResult.cc +++ b/trademark/src/model/UpdateMaterialResult.cc @@ -35,10 +35,13 @@ UpdateMaterialResult::~UpdateMaterialResult() void UpdateMaterialResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/UpdateSendMaterialNumResult.cc b/trademark/src/model/UpdateSendMaterialNumResult.cc index 7adaa4321..446e4496c 100644 --- a/trademark/src/model/UpdateSendMaterialNumResult.cc +++ b/trademark/src/model/UpdateSendMaterialNumResult.cc @@ -35,10 +35,13 @@ UpdateSendMaterialNumResult::~UpdateSendMaterialNumResult() void UpdateSendMaterialNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/UpdateTmMonitorRuleResult.cc b/trademark/src/model/UpdateTmMonitorRuleResult.cc index 0c57eab03..00b18ea7d 100644 --- a/trademark/src/model/UpdateTmMonitorRuleResult.cc +++ b/trademark/src/model/UpdateTmMonitorRuleResult.cc @@ -35,10 +35,13 @@ UpdateTmMonitorRuleResult::~UpdateTmMonitorRuleResult() void UpdateTmMonitorRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/trademark/src/model/UploadNotaryDataResult.cc b/trademark/src/model/UploadNotaryDataResult.cc index 2b74f7743..c567bcba2 100644 --- a/trademark/src/model/UploadNotaryDataResult.cc +++ b/trademark/src/model/UploadNotaryDataResult.cc @@ -35,10 +35,13 @@ UploadNotaryDataResult::~UploadNotaryDataResult() void UploadNotaryDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["UserAuthUrl"].isNull()) userAuthUrl_ = value["UserAuthUrl"].asString(); diff --git a/trademark/src/model/WriteCommunicationLogRequest.cc b/trademark/src/model/WriteCommunicationLogRequest.cc new file mode 100644 index 000000000..34bccad9c --- /dev/null +++ b/trademark/src/model/WriteCommunicationLogRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Trademark::Model::WriteCommunicationLogRequest; + +WriteCommunicationLogRequest::WriteCommunicationLogRequest() : + RpcServiceRequest("trademark", "2018-07-24", "WriteCommunicationLog") +{} + +WriteCommunicationLogRequest::~WriteCommunicationLogRequest() +{} + +std::string WriteCommunicationLogRequest::getNote()const +{ + return note_; +} + +void WriteCommunicationLogRequest::setNote(const std::string& note) +{ + note_ = note; + setCoreParameter("Note", note); +} + +std::string WriteCommunicationLogRequest::getTargetId()const +{ + return targetId_; +} + +void WriteCommunicationLogRequest::setTargetId(const std::string& targetId) +{ + targetId_ = targetId; + setCoreParameter("TargetId", targetId); +} + +std::string WriteCommunicationLogRequest::getBizId()const +{ + return bizId_; +} + +void WriteCommunicationLogRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + diff --git a/trademark/src/model/WriteCommunicationLogResult.cc b/trademark/src/model/WriteCommunicationLogResult.cc new file mode 100644 index 000000000..0fb20cdd3 --- /dev/null +++ b/trademark/src/model/WriteCommunicationLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Trademark; +using namespace AlibabaCloud::Trademark::Model; + +WriteCommunicationLogResult::WriteCommunicationLogResult() : + ServiceResult() +{} + +WriteCommunicationLogResult::WriteCommunicationLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WriteCommunicationLogResult::~WriteCommunicationLogResult() +{} + +void WriteCommunicationLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string WriteCommunicationLogResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string WriteCommunicationLogResult::getErrorCode()const +{ + return errorCode_; +} + +bool WriteCommunicationLogResult::getSuccess()const +{ + return success_; +} + diff --git a/trademark/src/model/WriteIntentionCommunicationLogRequest.cc b/trademark/src/model/WriteIntentionCommunicationLogRequest.cc new file mode 100644 index 000000000..908991cad --- /dev/null +++ b/trademark/src/model/WriteIntentionCommunicationLogRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Trademark::Model::WriteIntentionCommunicationLogRequest; + +WriteIntentionCommunicationLogRequest::WriteIntentionCommunicationLogRequest() : + RpcServiceRequest("trademark", "2018-07-24", "WriteIntentionCommunicationLog") +{} + +WriteIntentionCommunicationLogRequest::~WriteIntentionCommunicationLogRequest() +{} + +std::string WriteIntentionCommunicationLogRequest::getNote()const +{ + return note_; +} + +void WriteIntentionCommunicationLogRequest::setNote(const std::string& note) +{ + note_ = note; + setCoreParameter("Note", note); +} + +bool WriteIntentionCommunicationLogRequest::getReject()const +{ + return reject_; +} + +void WriteIntentionCommunicationLogRequest::setReject(bool reject) +{ + reject_ = reject; + setCoreParameter("Reject", reject ? "true" : "false"); +} + +std::string WriteIntentionCommunicationLogRequest::getBizId()const +{ + return bizId_; +} + +void WriteIntentionCommunicationLogRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setCoreParameter("BizId", bizId); +} + diff --git a/trademark/src/model/WriteIntentionCommunicationLogResult.cc b/trademark/src/model/WriteIntentionCommunicationLogResult.cc new file mode 100644 index 000000000..40f06e155 --- /dev/null +++ b/trademark/src/model/WriteIntentionCommunicationLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Trademark; +using namespace AlibabaCloud::Trademark::Model; + +WriteIntentionCommunicationLogResult::WriteIntentionCommunicationLogResult() : + ServiceResult() +{} + +WriteIntentionCommunicationLogResult::WriteIntentionCommunicationLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WriteIntentionCommunicationLogResult::~WriteIntentionCommunicationLogResult() +{} + +void WriteIntentionCommunicationLogResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string WriteIntentionCommunicationLogResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string WriteIntentionCommunicationLogResult::getErrorCode()const +{ + return errorCode_; +} + +bool WriteIntentionCommunicationLogResult::getSuccess()const +{ + return success_; +} + diff --git a/ubsms/CMakeLists.txt b/ubsms/CMakeLists.txt index ef11ce71b..aaba036ae 100644 --- a/ubsms/CMakeLists.txt +++ b/ubsms/CMakeLists.txt @@ -21,19 +21,19 @@ set(ubsms_public_header include/alibabacloud/ubsms/UbsmsExport.h ) set(ubsms_public_header_model - include/alibabacloud/ubsms/model/NotifyUserBusinessCommandRequest.h - include/alibabacloud/ubsms/model/NotifyUserBusinessCommandResult.h include/alibabacloud/ubsms/model/DescribeBusinessStatusRequest.h include/alibabacloud/ubsms/model/DescribeBusinessStatusResult.h + include/alibabacloud/ubsms/model/NotifyUserBusinessCommandRequest.h + include/alibabacloud/ubsms/model/NotifyUserBusinessCommandResult.h include/alibabacloud/ubsms/model/SetUserBusinessStatusRequest.h include/alibabacloud/ubsms/model/SetUserBusinessStatusResult.h ) set(ubsms_src src/UbsmsClient.cc - src/model/NotifyUserBusinessCommandRequest.cc - src/model/NotifyUserBusinessCommandResult.cc src/model/DescribeBusinessStatusRequest.cc src/model/DescribeBusinessStatusResult.cc + src/model/NotifyUserBusinessCommandRequest.cc + src/model/NotifyUserBusinessCommandResult.cc src/model/SetUserBusinessStatusRequest.cc src/model/SetUserBusinessStatusResult.cc ) diff --git a/ubsms/include/alibabacloud/ubsms/UbsmsClient.h b/ubsms/include/alibabacloud/ubsms/UbsmsClient.h index f7f3cb3bd..ad7bbe987 100644 --- a/ubsms/include/alibabacloud/ubsms/UbsmsClient.h +++ b/ubsms/include/alibabacloud/ubsms/UbsmsClient.h @@ -22,10 +22,10 @@ #include #include #include "UbsmsExport.h" -#include "model/NotifyUserBusinessCommandRequest.h" -#include "model/NotifyUserBusinessCommandResult.h" #include "model/DescribeBusinessStatusRequest.h" #include "model/DescribeBusinessStatusResult.h" +#include "model/NotifyUserBusinessCommandRequest.h" +#include "model/NotifyUserBusinessCommandResult.h" #include "model/SetUserBusinessStatusRequest.h" #include "model/SetUserBusinessStatusResult.h" @@ -37,12 +37,12 @@ namespace AlibabaCloud class ALIBABACLOUD_UBSMS_EXPORT UbsmsClient : public RpcServiceClient { public: - typedef Outcome NotifyUserBusinessCommandOutcome; - typedef std::future NotifyUserBusinessCommandOutcomeCallable; - typedef std::function&)> NotifyUserBusinessCommandAsyncHandler; typedef Outcome DescribeBusinessStatusOutcome; typedef std::future DescribeBusinessStatusOutcomeCallable; typedef std::function&)> DescribeBusinessStatusAsyncHandler; + typedef Outcome NotifyUserBusinessCommandOutcome; + typedef std::future NotifyUserBusinessCommandOutcomeCallable; + typedef std::function&)> NotifyUserBusinessCommandAsyncHandler; typedef Outcome SetUserBusinessStatusOutcome; typedef std::future SetUserBusinessStatusOutcomeCallable; typedef std::function&)> SetUserBusinessStatusAsyncHandler; @@ -51,12 +51,12 @@ namespace AlibabaCloud UbsmsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); UbsmsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~UbsmsClient(); - NotifyUserBusinessCommandOutcome notifyUserBusinessCommand(const Model::NotifyUserBusinessCommandRequest &request)const; - void notifyUserBusinessCommandAsync(const Model::NotifyUserBusinessCommandRequest& request, const NotifyUserBusinessCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NotifyUserBusinessCommandOutcomeCallable notifyUserBusinessCommandCallable(const Model::NotifyUserBusinessCommandRequest& request) const; DescribeBusinessStatusOutcome describeBusinessStatus(const Model::DescribeBusinessStatusRequest &request)const; void describeBusinessStatusAsync(const Model::DescribeBusinessStatusRequest& request, const DescribeBusinessStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBusinessStatusOutcomeCallable describeBusinessStatusCallable(const Model::DescribeBusinessStatusRequest& request) const; + NotifyUserBusinessCommandOutcome notifyUserBusinessCommand(const Model::NotifyUserBusinessCommandRequest &request)const; + void notifyUserBusinessCommandAsync(const Model::NotifyUserBusinessCommandRequest& request, const NotifyUserBusinessCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NotifyUserBusinessCommandOutcomeCallable notifyUserBusinessCommandCallable(const Model::NotifyUserBusinessCommandRequest& request) const; SetUserBusinessStatusOutcome setUserBusinessStatus(const Model::SetUserBusinessStatusRequest &request)const; void setUserBusinessStatusAsync(const Model::SetUserBusinessStatusRequest& request, const SetUserBusinessStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetUserBusinessStatusOutcomeCallable setUserBusinessStatusCallable(const Model::SetUserBusinessStatusRequest& request) const; diff --git a/ubsms/src/UbsmsClient.cc b/ubsms/src/UbsmsClient.cc index dffc24aba..fc43a0a39 100644 --- a/ubsms/src/UbsmsClient.cc +++ b/ubsms/src/UbsmsClient.cc @@ -51,42 +51,6 @@ UbsmsClient::UbsmsClient(const std::string & accessKeyId, const std::string & ac UbsmsClient::~UbsmsClient() {} -UbsmsClient::NotifyUserBusinessCommandOutcome UbsmsClient::notifyUserBusinessCommand(const NotifyUserBusinessCommandRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NotifyUserBusinessCommandOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NotifyUserBusinessCommandOutcome(NotifyUserBusinessCommandResult(outcome.result())); - else - return NotifyUserBusinessCommandOutcome(outcome.error()); -} - -void UbsmsClient::notifyUserBusinessCommandAsync(const NotifyUserBusinessCommandRequest& request, const NotifyUserBusinessCommandAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, notifyUserBusinessCommand(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -UbsmsClient::NotifyUserBusinessCommandOutcomeCallable UbsmsClient::notifyUserBusinessCommandCallable(const NotifyUserBusinessCommandRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->notifyUserBusinessCommand(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - UbsmsClient::DescribeBusinessStatusOutcome UbsmsClient::describeBusinessStatus(const DescribeBusinessStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +87,42 @@ UbsmsClient::DescribeBusinessStatusOutcomeCallable UbsmsClient::describeBusiness return task->get_future(); } +UbsmsClient::NotifyUserBusinessCommandOutcome UbsmsClient::notifyUserBusinessCommand(const NotifyUserBusinessCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NotifyUserBusinessCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NotifyUserBusinessCommandOutcome(NotifyUserBusinessCommandResult(outcome.result())); + else + return NotifyUserBusinessCommandOutcome(outcome.error()); +} + +void UbsmsClient::notifyUserBusinessCommandAsync(const NotifyUserBusinessCommandRequest& request, const NotifyUserBusinessCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, notifyUserBusinessCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +UbsmsClient::NotifyUserBusinessCommandOutcomeCallable UbsmsClient::notifyUserBusinessCommandCallable(const NotifyUserBusinessCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->notifyUserBusinessCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + UbsmsClient::SetUserBusinessStatusOutcome UbsmsClient::setUserBusinessStatus(const SetUserBusinessStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ubsms/src/model/DescribeBusinessStatusRequest.cc b/ubsms/src/model/DescribeBusinessStatusRequest.cc index 17f4e462d..18e32cb69 100644 --- a/ubsms/src/model/DescribeBusinessStatusRequest.cc +++ b/ubsms/src/model/DescribeBusinessStatusRequest.cc @@ -33,7 +33,7 @@ std::string DescribeBusinessStatusRequest::getPassword()const void DescribeBusinessStatusRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } std::string DescribeBusinessStatusRequest::getCallerBid()const @@ -44,6 +44,6 @@ std::string DescribeBusinessStatusRequest::getCallerBid()const void DescribeBusinessStatusRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } diff --git a/ubsms/src/model/DescribeBusinessStatusResult.cc b/ubsms/src/model/DescribeBusinessStatusResult.cc index 63cfde954..0192e1464 100644 --- a/ubsms/src/model/DescribeBusinessStatusResult.cc +++ b/ubsms/src/model/DescribeBusinessStatusResult.cc @@ -35,10 +35,13 @@ DescribeBusinessStatusResult::~DescribeBusinessStatusResult() void DescribeBusinessStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserBusinessStatusList = value["UserBusinessStatusList"]["UserBusinessStatus"]; for (auto value : allUserBusinessStatusList) diff --git a/ubsms/src/model/NotifyUserBusinessCommandRequest.cc b/ubsms/src/model/NotifyUserBusinessCommandRequest.cc index 6639a6f1f..b4779a8dd 100644 --- a/ubsms/src/model/NotifyUserBusinessCommandRequest.cc +++ b/ubsms/src/model/NotifyUserBusinessCommandRequest.cc @@ -33,7 +33,7 @@ std::string NotifyUserBusinessCommandRequest::getUid()const void NotifyUserBusinessCommandRequest::setUid(const std::string& uid) { uid_ = uid; - setParameter("Uid", uid); + setCoreParameter("Uid", uid); } std::string NotifyUserBusinessCommandRequest::getPassword()const @@ -44,7 +44,7 @@ std::string NotifyUserBusinessCommandRequest::getPassword()const void NotifyUserBusinessCommandRequest::setPassword(const std::string& password) { password_ = password; - setParameter("Password", password); + setCoreParameter("Password", password); } std::string NotifyUserBusinessCommandRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string NotifyUserBusinessCommandRequest::getInstanceId()const void NotifyUserBusinessCommandRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string NotifyUserBusinessCommandRequest::getServiceCode()const @@ -66,7 +66,7 @@ std::string NotifyUserBusinessCommandRequest::getServiceCode()const void NotifyUserBusinessCommandRequest::setServiceCode(const std::string& serviceCode) { serviceCode_ = serviceCode; - setParameter("ServiceCode", serviceCode); + setCoreParameter("ServiceCode", serviceCode); } std::string NotifyUserBusinessCommandRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string NotifyUserBusinessCommandRequest::getClientToken()const void NotifyUserBusinessCommandRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string NotifyUserBusinessCommandRequest::getCmd()const @@ -88,7 +88,7 @@ std::string NotifyUserBusinessCommandRequest::getCmd()const void NotifyUserBusinessCommandRequest::setCmd(const std::string& cmd) { cmd_ = cmd; - setParameter("Cmd", cmd); + setCoreParameter("Cmd", cmd); } std::string NotifyUserBusinessCommandRequest::getRegion()const @@ -99,6 +99,6 @@ std::string NotifyUserBusinessCommandRequest::getRegion()const void NotifyUserBusinessCommandRequest::setRegion(const std::string& region) { region_ = region; - setParameter("Region", region); + setCoreParameter("Region", region); } diff --git a/ubsms/src/model/NotifyUserBusinessCommandResult.cc b/ubsms/src/model/NotifyUserBusinessCommandResult.cc index 6bd9ec44a..8f08e9734 100644 --- a/ubsms/src/model/NotifyUserBusinessCommandResult.cc +++ b/ubsms/src/model/NotifyUserBusinessCommandResult.cc @@ -35,10 +35,13 @@ NotifyUserBusinessCommandResult::~NotifyUserBusinessCommandResult() void NotifyUserBusinessCommandResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/ubsms/src/model/SetUserBusinessStatusRequest.cc b/ubsms/src/model/SetUserBusinessStatusRequest.cc index 2996aa227..4ff2f3e87 100644 --- a/ubsms/src/model/SetUserBusinessStatusRequest.cc +++ b/ubsms/src/model/SetUserBusinessStatusRequest.cc @@ -33,7 +33,7 @@ std::string SetUserBusinessStatusRequest::getUid()const void SetUserBusinessStatusRequest::setUid(const std::string& uid) { uid_ = uid; - setParameter("Uid", uid); + setCoreParameter("Uid", uid); } std::string SetUserBusinessStatusRequest::getStatusValue()const @@ -44,7 +44,7 @@ std::string SetUserBusinessStatusRequest::getStatusValue()const void SetUserBusinessStatusRequest::setStatusValue(const std::string& statusValue) { statusValue_ = statusValue; - setParameter("StatusValue", statusValue); + setCoreParameter("StatusValue", statusValue); } std::string SetUserBusinessStatusRequest::getService()const @@ -55,7 +55,7 @@ std::string SetUserBusinessStatusRequest::getService()const void SetUserBusinessStatusRequest::setService(const std::string& service) { service_ = service; - setParameter("Service", service); + setCoreParameter("Service", service); } std::string SetUserBusinessStatusRequest::getStatusKey()const @@ -66,6 +66,6 @@ std::string SetUserBusinessStatusRequest::getStatusKey()const void SetUserBusinessStatusRequest::setStatusKey(const std::string& statusKey) { statusKey_ = statusKey; - setParameter("StatusKey", statusKey); + setCoreParameter("StatusKey", statusKey); } diff --git a/ubsms/src/model/SetUserBusinessStatusResult.cc b/ubsms/src/model/SetUserBusinessStatusResult.cc index 347b3cc14..aa2ada567 100644 --- a/ubsms/src/model/SetUserBusinessStatusResult.cc +++ b/ubsms/src/model/SetUserBusinessStatusResult.cc @@ -35,10 +35,13 @@ SetUserBusinessStatusResult::~SetUserBusinessStatusResult() void SetUserBusinessStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/vod/CMakeLists.txt b/vod/CMakeLists.txt index d83e46797..da9d4d312 100644 --- a/vod/CMakeLists.txt +++ b/vod/CMakeLists.txt @@ -20,10 +20,510 @@ set(vod_public_header include/alibabacloud/vod/VodClient.h include/alibabacloud/vod/VodExport.h ) -set(vod_public_header_model ) +set(vod_public_header_model + include/alibabacloud/vod/model/SetDefaultAITemplateRequest.h + include/alibabacloud/vod/model/SetDefaultAITemplateResult.h + include/alibabacloud/vod/model/DeleteImageRequest.h + include/alibabacloud/vod/model/DeleteImageResult.h + include/alibabacloud/vod/model/AttachAppPolicyToIdentityRequest.h + include/alibabacloud/vod/model/AttachAppPolicyToIdentityResult.h + include/alibabacloud/vod/model/DeleteCategoryRequest.h + include/alibabacloud/vod/model/DeleteCategoryResult.h + include/alibabacloud/vod/model/DescribeVodDomainDetailRequest.h + include/alibabacloud/vod/model/DescribeVodDomainDetailResult.h + include/alibabacloud/vod/model/SetDefaultTranscodeTemplateGroupRequest.h + include/alibabacloud/vod/model/SetDefaultTranscodeTemplateGroupResult.h + include/alibabacloud/vod/model/BatchSetVodDomainConfigsRequest.h + include/alibabacloud/vod/model/BatchSetVodDomainConfigsResult.h + include/alibabacloud/vod/model/UpdateVideoInfosRequest.h + include/alibabacloud/vod/model/UpdateVideoInfosResult.h + include/alibabacloud/vod/model/UpdateEditingProjectRequest.h + include/alibabacloud/vod/model/UpdateEditingProjectResult.h + include/alibabacloud/vod/model/GetMediaAuditResultRequest.h + include/alibabacloud/vod/model/GetMediaAuditResultResult.h + include/alibabacloud/vod/model/GetMediaAuditResultTimelineRequest.h + include/alibabacloud/vod/model/GetMediaAuditResultTimelineResult.h + include/alibabacloud/vod/model/ListAuditSecurityIpRequest.h + include/alibabacloud/vod/model/ListAuditSecurityIpResult.h + include/alibabacloud/vod/model/GetAuditHistoryRequest.h + include/alibabacloud/vod/model/GetAuditHistoryResult.h + include/alibabacloud/vod/model/GetMediaDNAResultRequest.h + include/alibabacloud/vod/model/GetMediaDNAResultResult.h + include/alibabacloud/vod/model/SetVodDomainCertificateRequest.h + include/alibabacloud/vod/model/SetVodDomainCertificateResult.h + include/alibabacloud/vod/model/UpdateCategoryRequest.h + include/alibabacloud/vod/model/UpdateCategoryResult.h + include/alibabacloud/vod/model/RegisterMediaRequest.h + include/alibabacloud/vod/model/RegisterMediaResult.h + include/alibabacloud/vod/model/GetTranscodeTemplateGroupRequest.h + include/alibabacloud/vod/model/GetTranscodeTemplateGroupResult.h + include/alibabacloud/vod/model/GetDefaultAITemplateRequest.h + include/alibabacloud/vod/model/GetDefaultAITemplateResult.h + include/alibabacloud/vod/model/ProduceEditingProjectVideoRequest.h + include/alibabacloud/vod/model/ProduceEditingProjectVideoResult.h + include/alibabacloud/vod/model/GetVideoPlayAuthRequest.h + include/alibabacloud/vod/model/GetVideoPlayAuthResult.h + include/alibabacloud/vod/model/DeleteVodTemplateRequest.h + include/alibabacloud/vod/model/DeleteVodTemplateResult.h + include/alibabacloud/vod/model/GetAITemplateRequest.h + include/alibabacloud/vod/model/GetAITemplateResult.h + include/alibabacloud/vod/model/ListVodTemplateRequest.h + include/alibabacloud/vod/model/ListVodTemplateResult.h + include/alibabacloud/vod/model/DeleteAppInfoRequest.h + include/alibabacloud/vod/model/DeleteAppInfoResult.h + include/alibabacloud/vod/model/ListWatermarkRequest.h + include/alibabacloud/vod/model/ListWatermarkResult.h + include/alibabacloud/vod/model/AddWatermarkRequest.h + include/alibabacloud/vod/model/AddWatermarkResult.h + include/alibabacloud/vod/model/CreateUploadImageRequest.h + include/alibabacloud/vod/model/CreateUploadImageResult.h + include/alibabacloud/vod/model/DescribeVodDomainLogRequest.h + include/alibabacloud/vod/model/DescribeVodDomainLogResult.h + include/alibabacloud/vod/model/UpdateVideoInfoRequest.h + include/alibabacloud/vod/model/UpdateVideoInfoResult.h + include/alibabacloud/vod/model/AddAITemplateRequest.h + include/alibabacloud/vod/model/AddAITemplateResult.h + include/alibabacloud/vod/model/DescribePlayTopVideosRequest.h + include/alibabacloud/vod/model/DescribePlayTopVideosResult.h + include/alibabacloud/vod/model/RefreshVodObjectCachesRequest.h + include/alibabacloud/vod/model/RefreshVodObjectCachesResult.h + include/alibabacloud/vod/model/ListTranscodeTaskRequest.h + include/alibabacloud/vod/model/ListTranscodeTaskResult.h + include/alibabacloud/vod/model/SetDefaultWatermarkRequest.h + include/alibabacloud/vod/model/SetDefaultWatermarkResult.h + include/alibabacloud/vod/model/ListAITemplateRequest.h + include/alibabacloud/vod/model/ListAITemplateResult.h + include/alibabacloud/vod/model/DeleteMessageCallbackRequest.h + include/alibabacloud/vod/model/DeleteMessageCallbackResult.h + include/alibabacloud/vod/model/RefreshUploadVideoRequest.h + include/alibabacloud/vod/model/RefreshUploadVideoResult.h + include/alibabacloud/vod/model/GetEditingProjectRequest.h + include/alibabacloud/vod/model/GetEditingProjectResult.h + include/alibabacloud/vod/model/DeleteAITemplateRequest.h + include/alibabacloud/vod/model/DeleteAITemplateResult.h + include/alibabacloud/vod/model/CreateAuditRequest.h + include/alibabacloud/vod/model/CreateAuditResult.h + include/alibabacloud/vod/model/DeleteVodDomainRequest.h + include/alibabacloud/vod/model/DeleteVodDomainResult.h + include/alibabacloud/vod/model/DescribeVodDomainCertificateInfoRequest.h + include/alibabacloud/vod/model/DescribeVodDomainCertificateInfoResult.h + include/alibabacloud/vod/model/GetWatermarkRequest.h + include/alibabacloud/vod/model/GetWatermarkResult.h + include/alibabacloud/vod/model/UpdateVodTemplateRequest.h + include/alibabacloud/vod/model/UpdateVodTemplateResult.h + include/alibabacloud/vod/model/ListLiveRecordVideoRequest.h + include/alibabacloud/vod/model/ListLiveRecordVideoResult.h + include/alibabacloud/vod/model/UpdateAttachedMediaInfosRequest.h + include/alibabacloud/vod/model/UpdateAttachedMediaInfosResult.h + include/alibabacloud/vod/model/DescribePlayVideoStatisRequest.h + include/alibabacloud/vod/model/DescribePlayVideoStatisResult.h + include/alibabacloud/vod/model/GetMediaAuditResultDetailRequest.h + include/alibabacloud/vod/model/GetMediaAuditResultDetailResult.h + include/alibabacloud/vod/model/DeleteStreamRequest.h + include/alibabacloud/vod/model/DeleteStreamResult.h + include/alibabacloud/vod/model/UpdateAppInfoRequest.h + include/alibabacloud/vod/model/UpdateAppInfoResult.h + include/alibabacloud/vod/model/UploadMediaByURLRequest.h + include/alibabacloud/vod/model/UploadMediaByURLResult.h + include/alibabacloud/vod/model/DescribeVodDomainBpsDataRequest.h + include/alibabacloud/vod/model/DescribeVodDomainBpsDataResult.h + include/alibabacloud/vod/model/GetPlayInfoRequest.h + include/alibabacloud/vod/model/GetPlayInfoResult.h + include/alibabacloud/vod/model/UpdateVodDomainRequest.h + include/alibabacloud/vod/model/UpdateVodDomainResult.h + include/alibabacloud/vod/model/DeleteMezzaninesRequest.h + include/alibabacloud/vod/model/DeleteMezzaninesResult.h + include/alibabacloud/vod/model/AddEditingProjectRequest.h + include/alibabacloud/vod/model/AddEditingProjectResult.h + include/alibabacloud/vod/model/GetUploadDetailsRequest.h + include/alibabacloud/vod/model/GetUploadDetailsResult.h + include/alibabacloud/vod/model/GetAttachedMediaInfoRequest.h + include/alibabacloud/vod/model/GetAttachedMediaInfoResult.h + include/alibabacloud/vod/model/DeleteTranscodeTemplateGroupRequest.h + include/alibabacloud/vod/model/DeleteTranscodeTemplateGroupResult.h + include/alibabacloud/vod/model/DeleteVodSpecificConfigRequest.h + include/alibabacloud/vod/model/DeleteVodSpecificConfigResult.h + include/alibabacloud/vod/model/AddTranscodeTemplateGroupRequest.h + include/alibabacloud/vod/model/AddTranscodeTemplateGroupResult.h + include/alibabacloud/vod/model/DescribeVodCertificateListRequest.h + include/alibabacloud/vod/model/DescribeVodCertificateListResult.h + include/alibabacloud/vod/model/SetEditingProjectMaterialsRequest.h + include/alibabacloud/vod/model/SetEditingProjectMaterialsResult.h + include/alibabacloud/vod/model/DeleteVideoRequest.h + include/alibabacloud/vod/model/DeleteVideoResult.h + include/alibabacloud/vod/model/ListAppInfoRequest.h + include/alibabacloud/vod/model/ListAppInfoResult.h + include/alibabacloud/vod/model/AddVodTemplateRequest.h + include/alibabacloud/vod/model/AddVodTemplateResult.h + include/alibabacloud/vod/model/GetVodTemplateRequest.h + include/alibabacloud/vod/model/GetVodTemplateResult.h + include/alibabacloud/vod/model/GetTranscodeSummaryRequest.h + include/alibabacloud/vod/model/GetTranscodeSummaryResult.h + include/alibabacloud/vod/model/DescribePlayUserTotalRequest.h + include/alibabacloud/vod/model/DescribePlayUserTotalResult.h + include/alibabacloud/vod/model/DescribeVodStorageDataRequest.h + include/alibabacloud/vod/model/DescribeVodStorageDataResult.h + include/alibabacloud/vod/model/CreateUploadAttachedMediaRequest.h + include/alibabacloud/vod/model/CreateUploadAttachedMediaResult.h + include/alibabacloud/vod/model/DescribeVodRefreshQuotaRequest.h + include/alibabacloud/vod/model/DescribeVodRefreshQuotaResult.h + include/alibabacloud/vod/model/DescribeVodDomainTrafficDataRequest.h + include/alibabacloud/vod/model/DescribeVodDomainTrafficDataResult.h + include/alibabacloud/vod/model/ListSnapshotsRequest.h + include/alibabacloud/vod/model/ListSnapshotsResult.h + include/alibabacloud/vod/model/DescribeVodAIDataRequest.h + include/alibabacloud/vod/model/DescribeVodAIDataResult.h + include/alibabacloud/vod/model/DescribeVodRefreshTasksRequest.h + include/alibabacloud/vod/model/DescribeVodRefreshTasksResult.h + include/alibabacloud/vod/model/GetVideoListRequest.h + include/alibabacloud/vod/model/GetVideoListResult.h + include/alibabacloud/vod/model/GetVideoInfoRequest.h + include/alibabacloud/vod/model/GetVideoInfoResult.h + include/alibabacloud/vod/model/DeleteAttachedMediaRequest.h + include/alibabacloud/vod/model/DeleteAttachedMediaResult.h + include/alibabacloud/vod/model/SetMessageCallbackRequest.h + include/alibabacloud/vod/model/SetMessageCallbackResult.h + include/alibabacloud/vod/model/GetVideoInfosRequest.h + include/alibabacloud/vod/model/GetVideoInfosResult.h + include/alibabacloud/vod/model/GetEditingProjectMaterialsRequest.h + include/alibabacloud/vod/model/GetEditingProjectMaterialsResult.h + include/alibabacloud/vod/model/GetAppInfosRequest.h + include/alibabacloud/vod/model/GetAppInfosResult.h + include/alibabacloud/vod/model/CreateAppInfoRequest.h + include/alibabacloud/vod/model/CreateAppInfoResult.h + include/alibabacloud/vod/model/DescribeVodDomainConfigsRequest.h + include/alibabacloud/vod/model/DescribeVodDomainConfigsResult.h + include/alibabacloud/vod/model/DeleteWatermarkRequest.h + include/alibabacloud/vod/model/DeleteWatermarkResult.h + include/alibabacloud/vod/model/BatchStopVodDomainRequest.h + include/alibabacloud/vod/model/BatchStopVodDomainResult.h + include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyRequest.h + include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyResult.h + include/alibabacloud/vod/model/ListTranscodeTemplateGroupRequest.h + include/alibabacloud/vod/model/ListTranscodeTemplateGroupResult.h + include/alibabacloud/vod/model/ListAppPoliciesForIdentityRequest.h + include/alibabacloud/vod/model/ListAppPoliciesForIdentityResult.h + include/alibabacloud/vod/model/GetAIVideoTagResultRequest.h + include/alibabacloud/vod/model/GetAIVideoTagResultResult.h + include/alibabacloud/vod/model/BatchStartVodDomainRequest.h + include/alibabacloud/vod/model/BatchStartVodDomainResult.h + include/alibabacloud/vod/model/SubmitPreprocessJobsRequest.h + include/alibabacloud/vod/model/SubmitPreprocessJobsResult.h + include/alibabacloud/vod/model/ListAIJobRequest.h + include/alibabacloud/vod/model/ListAIJobResult.h + include/alibabacloud/vod/model/UpdateImageInfosRequest.h + include/alibabacloud/vod/model/UpdateImageInfosResult.h + include/alibabacloud/vod/model/DescribeVodDomainUsageDataRequest.h + include/alibabacloud/vod/model/DescribeVodDomainUsageDataResult.h + include/alibabacloud/vod/model/SearchMediaRequest.h + include/alibabacloud/vod/model/SearchMediaResult.h + include/alibabacloud/vod/model/PreloadVodObjectCachesRequest.h + include/alibabacloud/vod/model/PreloadVodObjectCachesResult.h + include/alibabacloud/vod/model/UpdateTranscodeTemplateGroupRequest.h + include/alibabacloud/vod/model/UpdateTranscodeTemplateGroupResult.h + include/alibabacloud/vod/model/AddCategoryRequest.h + include/alibabacloud/vod/model/AddCategoryResult.h + include/alibabacloud/vod/model/SubmitSnapshotJobRequest.h + include/alibabacloud/vod/model/SubmitSnapshotJobResult.h + include/alibabacloud/vod/model/UpdateAITemplateRequest.h + include/alibabacloud/vod/model/UpdateAITemplateResult.h + include/alibabacloud/vod/model/DeleteEditingProjectRequest.h + include/alibabacloud/vod/model/DeleteEditingProjectResult.h + include/alibabacloud/vod/model/DescribeVodTranscodeDataRequest.h + include/alibabacloud/vod/model/DescribeVodTranscodeDataResult.h + include/alibabacloud/vod/model/SearchEditingProjectRequest.h + include/alibabacloud/vod/model/SearchEditingProjectResult.h + include/alibabacloud/vod/model/DescribeVodUserDomainsRequest.h + include/alibabacloud/vod/model/DescribeVodUserDomainsResult.h + include/alibabacloud/vod/model/GetImageInfoRequest.h + include/alibabacloud/vod/model/GetImageInfoResult.h + include/alibabacloud/vod/model/UpdateWatermarkRequest.h + include/alibabacloud/vod/model/UpdateWatermarkResult.h + include/alibabacloud/vod/model/MoveAppResourceRequest.h + include/alibabacloud/vod/model/MoveAppResourceResult.h + include/alibabacloud/vod/model/GetMessageCallbackRequest.h + include/alibabacloud/vod/model/GetMessageCallbackResult.h + include/alibabacloud/vod/model/GetCategoriesRequest.h + include/alibabacloud/vod/model/GetCategoriesResult.h + include/alibabacloud/vod/model/GetAIMediaAuditJobRequest.h + include/alibabacloud/vod/model/GetAIMediaAuditJobResult.h + include/alibabacloud/vod/model/SubmitAIJobRequest.h + include/alibabacloud/vod/model/SubmitAIJobResult.h + include/alibabacloud/vod/model/SubmitTranscodeJobsRequest.h + include/alibabacloud/vod/model/SubmitTranscodeJobsResult.h + include/alibabacloud/vod/model/AddVodDomainRequest.h + include/alibabacloud/vod/model/AddVodDomainResult.h + include/alibabacloud/vod/model/CreateUploadVideoRequest.h + include/alibabacloud/vod/model/CreateUploadVideoResult.h + include/alibabacloud/vod/model/SetAuditSecurityIpRequest.h + include/alibabacloud/vod/model/SetAuditSecurityIpResult.h + include/alibabacloud/vod/model/DeleteMultipartUploadRequest.h + include/alibabacloud/vod/model/DeleteMultipartUploadResult.h + include/alibabacloud/vod/model/SubmitAIMediaAuditJobRequest.h + include/alibabacloud/vod/model/SubmitAIMediaAuditJobResult.h + include/alibabacloud/vod/model/GetTranscodeTaskRequest.h + include/alibabacloud/vod/model/GetTranscodeTaskResult.h + include/alibabacloud/vod/model/GetURLUploadInfosRequest.h + include/alibabacloud/vod/model/GetURLUploadInfosResult.h + include/alibabacloud/vod/model/GetMezzanineInfoRequest.h + include/alibabacloud/vod/model/GetMezzanineInfoResult.h + include/alibabacloud/vod/model/DetachAppPolicyFromIdentityRequest.h + include/alibabacloud/vod/model/DetachAppPolicyFromIdentityResult.h + include/alibabacloud/vod/model/DescribePlayUserAvgRequest.h + include/alibabacloud/vod/model/DescribePlayUserAvgResult.h ) set(vod_src - src/VodClient.cc ) + src/VodClient.cc + src/model/SetDefaultAITemplateRequest.cc + src/model/SetDefaultAITemplateResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc + src/model/AttachAppPolicyToIdentityRequest.cc + src/model/AttachAppPolicyToIdentityResult.cc + src/model/DeleteCategoryRequest.cc + src/model/DeleteCategoryResult.cc + src/model/DescribeVodDomainDetailRequest.cc + src/model/DescribeVodDomainDetailResult.cc + src/model/SetDefaultTranscodeTemplateGroupRequest.cc + src/model/SetDefaultTranscodeTemplateGroupResult.cc + src/model/BatchSetVodDomainConfigsRequest.cc + src/model/BatchSetVodDomainConfigsResult.cc + src/model/UpdateVideoInfosRequest.cc + src/model/UpdateVideoInfosResult.cc + src/model/UpdateEditingProjectRequest.cc + src/model/UpdateEditingProjectResult.cc + src/model/GetMediaAuditResultRequest.cc + src/model/GetMediaAuditResultResult.cc + src/model/GetMediaAuditResultTimelineRequest.cc + src/model/GetMediaAuditResultTimelineResult.cc + src/model/ListAuditSecurityIpRequest.cc + src/model/ListAuditSecurityIpResult.cc + src/model/GetAuditHistoryRequest.cc + src/model/GetAuditHistoryResult.cc + src/model/GetMediaDNAResultRequest.cc + src/model/GetMediaDNAResultResult.cc + src/model/SetVodDomainCertificateRequest.cc + src/model/SetVodDomainCertificateResult.cc + src/model/UpdateCategoryRequest.cc + src/model/UpdateCategoryResult.cc + src/model/RegisterMediaRequest.cc + src/model/RegisterMediaResult.cc + src/model/GetTranscodeTemplateGroupRequest.cc + src/model/GetTranscodeTemplateGroupResult.cc + src/model/GetDefaultAITemplateRequest.cc + src/model/GetDefaultAITemplateResult.cc + src/model/ProduceEditingProjectVideoRequest.cc + src/model/ProduceEditingProjectVideoResult.cc + src/model/GetVideoPlayAuthRequest.cc + src/model/GetVideoPlayAuthResult.cc + src/model/DeleteVodTemplateRequest.cc + src/model/DeleteVodTemplateResult.cc + src/model/GetAITemplateRequest.cc + src/model/GetAITemplateResult.cc + src/model/ListVodTemplateRequest.cc + src/model/ListVodTemplateResult.cc + src/model/DeleteAppInfoRequest.cc + src/model/DeleteAppInfoResult.cc + src/model/ListWatermarkRequest.cc + src/model/ListWatermarkResult.cc + src/model/AddWatermarkRequest.cc + src/model/AddWatermarkResult.cc + src/model/CreateUploadImageRequest.cc + src/model/CreateUploadImageResult.cc + src/model/DescribeVodDomainLogRequest.cc + src/model/DescribeVodDomainLogResult.cc + src/model/UpdateVideoInfoRequest.cc + src/model/UpdateVideoInfoResult.cc + src/model/AddAITemplateRequest.cc + src/model/AddAITemplateResult.cc + src/model/DescribePlayTopVideosRequest.cc + src/model/DescribePlayTopVideosResult.cc + src/model/RefreshVodObjectCachesRequest.cc + src/model/RefreshVodObjectCachesResult.cc + src/model/ListTranscodeTaskRequest.cc + src/model/ListTranscodeTaskResult.cc + src/model/SetDefaultWatermarkRequest.cc + src/model/SetDefaultWatermarkResult.cc + src/model/ListAITemplateRequest.cc + src/model/ListAITemplateResult.cc + src/model/DeleteMessageCallbackRequest.cc + src/model/DeleteMessageCallbackResult.cc + src/model/RefreshUploadVideoRequest.cc + src/model/RefreshUploadVideoResult.cc + src/model/GetEditingProjectRequest.cc + src/model/GetEditingProjectResult.cc + src/model/DeleteAITemplateRequest.cc + src/model/DeleteAITemplateResult.cc + src/model/CreateAuditRequest.cc + src/model/CreateAuditResult.cc + src/model/DeleteVodDomainRequest.cc + src/model/DeleteVodDomainResult.cc + src/model/DescribeVodDomainCertificateInfoRequest.cc + src/model/DescribeVodDomainCertificateInfoResult.cc + src/model/GetWatermarkRequest.cc + src/model/GetWatermarkResult.cc + src/model/UpdateVodTemplateRequest.cc + src/model/UpdateVodTemplateResult.cc + src/model/ListLiveRecordVideoRequest.cc + src/model/ListLiveRecordVideoResult.cc + src/model/UpdateAttachedMediaInfosRequest.cc + src/model/UpdateAttachedMediaInfosResult.cc + src/model/DescribePlayVideoStatisRequest.cc + src/model/DescribePlayVideoStatisResult.cc + src/model/GetMediaAuditResultDetailRequest.cc + src/model/GetMediaAuditResultDetailResult.cc + src/model/DeleteStreamRequest.cc + src/model/DeleteStreamResult.cc + src/model/UpdateAppInfoRequest.cc + src/model/UpdateAppInfoResult.cc + src/model/UploadMediaByURLRequest.cc + src/model/UploadMediaByURLResult.cc + src/model/DescribeVodDomainBpsDataRequest.cc + src/model/DescribeVodDomainBpsDataResult.cc + src/model/GetPlayInfoRequest.cc + src/model/GetPlayInfoResult.cc + src/model/UpdateVodDomainRequest.cc + src/model/UpdateVodDomainResult.cc + src/model/DeleteMezzaninesRequest.cc + src/model/DeleteMezzaninesResult.cc + src/model/AddEditingProjectRequest.cc + src/model/AddEditingProjectResult.cc + src/model/GetUploadDetailsRequest.cc + src/model/GetUploadDetailsResult.cc + src/model/GetAttachedMediaInfoRequest.cc + src/model/GetAttachedMediaInfoResult.cc + src/model/DeleteTranscodeTemplateGroupRequest.cc + src/model/DeleteTranscodeTemplateGroupResult.cc + src/model/DeleteVodSpecificConfigRequest.cc + src/model/DeleteVodSpecificConfigResult.cc + src/model/AddTranscodeTemplateGroupRequest.cc + src/model/AddTranscodeTemplateGroupResult.cc + src/model/DescribeVodCertificateListRequest.cc + src/model/DescribeVodCertificateListResult.cc + src/model/SetEditingProjectMaterialsRequest.cc + src/model/SetEditingProjectMaterialsResult.cc + src/model/DeleteVideoRequest.cc + src/model/DeleteVideoResult.cc + src/model/ListAppInfoRequest.cc + src/model/ListAppInfoResult.cc + src/model/AddVodTemplateRequest.cc + src/model/AddVodTemplateResult.cc + src/model/GetVodTemplateRequest.cc + src/model/GetVodTemplateResult.cc + src/model/GetTranscodeSummaryRequest.cc + src/model/GetTranscodeSummaryResult.cc + src/model/DescribePlayUserTotalRequest.cc + src/model/DescribePlayUserTotalResult.cc + src/model/DescribeVodStorageDataRequest.cc + src/model/DescribeVodStorageDataResult.cc + src/model/CreateUploadAttachedMediaRequest.cc + src/model/CreateUploadAttachedMediaResult.cc + src/model/DescribeVodRefreshQuotaRequest.cc + src/model/DescribeVodRefreshQuotaResult.cc + src/model/DescribeVodDomainTrafficDataRequest.cc + src/model/DescribeVodDomainTrafficDataResult.cc + src/model/ListSnapshotsRequest.cc + src/model/ListSnapshotsResult.cc + src/model/DescribeVodAIDataRequest.cc + src/model/DescribeVodAIDataResult.cc + src/model/DescribeVodRefreshTasksRequest.cc + src/model/DescribeVodRefreshTasksResult.cc + src/model/GetVideoListRequest.cc + src/model/GetVideoListResult.cc + src/model/GetVideoInfoRequest.cc + src/model/GetVideoInfoResult.cc + src/model/DeleteAttachedMediaRequest.cc + src/model/DeleteAttachedMediaResult.cc + src/model/SetMessageCallbackRequest.cc + src/model/SetMessageCallbackResult.cc + src/model/GetVideoInfosRequest.cc + src/model/GetVideoInfosResult.cc + src/model/GetEditingProjectMaterialsRequest.cc + src/model/GetEditingProjectMaterialsResult.cc + src/model/GetAppInfosRequest.cc + src/model/GetAppInfosResult.cc + src/model/CreateAppInfoRequest.cc + src/model/CreateAppInfoResult.cc + src/model/DescribeVodDomainConfigsRequest.cc + src/model/DescribeVodDomainConfigsResult.cc + src/model/DeleteWatermarkRequest.cc + src/model/DeleteWatermarkResult.cc + src/model/BatchStopVodDomainRequest.cc + src/model/BatchStopVodDomainResult.cc + src/model/ModifyVodDomainSchdmByPropertyRequest.cc + src/model/ModifyVodDomainSchdmByPropertyResult.cc + src/model/ListTranscodeTemplateGroupRequest.cc + src/model/ListTranscodeTemplateGroupResult.cc + src/model/ListAppPoliciesForIdentityRequest.cc + src/model/ListAppPoliciesForIdentityResult.cc + src/model/GetAIVideoTagResultRequest.cc + src/model/GetAIVideoTagResultResult.cc + src/model/BatchStartVodDomainRequest.cc + src/model/BatchStartVodDomainResult.cc + src/model/SubmitPreprocessJobsRequest.cc + src/model/SubmitPreprocessJobsResult.cc + src/model/ListAIJobRequest.cc + src/model/ListAIJobResult.cc + src/model/UpdateImageInfosRequest.cc + src/model/UpdateImageInfosResult.cc + src/model/DescribeVodDomainUsageDataRequest.cc + src/model/DescribeVodDomainUsageDataResult.cc + src/model/SearchMediaRequest.cc + src/model/SearchMediaResult.cc + src/model/PreloadVodObjectCachesRequest.cc + src/model/PreloadVodObjectCachesResult.cc + src/model/UpdateTranscodeTemplateGroupRequest.cc + src/model/UpdateTranscodeTemplateGroupResult.cc + src/model/AddCategoryRequest.cc + src/model/AddCategoryResult.cc + src/model/SubmitSnapshotJobRequest.cc + src/model/SubmitSnapshotJobResult.cc + src/model/UpdateAITemplateRequest.cc + src/model/UpdateAITemplateResult.cc + src/model/DeleteEditingProjectRequest.cc + src/model/DeleteEditingProjectResult.cc + src/model/DescribeVodTranscodeDataRequest.cc + src/model/DescribeVodTranscodeDataResult.cc + src/model/SearchEditingProjectRequest.cc + src/model/SearchEditingProjectResult.cc + src/model/DescribeVodUserDomainsRequest.cc + src/model/DescribeVodUserDomainsResult.cc + src/model/GetImageInfoRequest.cc + src/model/GetImageInfoResult.cc + src/model/UpdateWatermarkRequest.cc + src/model/UpdateWatermarkResult.cc + src/model/MoveAppResourceRequest.cc + src/model/MoveAppResourceResult.cc + src/model/GetMessageCallbackRequest.cc + src/model/GetMessageCallbackResult.cc + src/model/GetCategoriesRequest.cc + src/model/GetCategoriesResult.cc + src/model/GetAIMediaAuditJobRequest.cc + src/model/GetAIMediaAuditJobResult.cc + src/model/SubmitAIJobRequest.cc + src/model/SubmitAIJobResult.cc + src/model/SubmitTranscodeJobsRequest.cc + src/model/SubmitTranscodeJobsResult.cc + src/model/AddVodDomainRequest.cc + src/model/AddVodDomainResult.cc + src/model/CreateUploadVideoRequest.cc + src/model/CreateUploadVideoResult.cc + src/model/SetAuditSecurityIpRequest.cc + src/model/SetAuditSecurityIpResult.cc + src/model/DeleteMultipartUploadRequest.cc + src/model/DeleteMultipartUploadResult.cc + src/model/SubmitAIMediaAuditJobRequest.cc + src/model/SubmitAIMediaAuditJobResult.cc + src/model/GetTranscodeTaskRequest.cc + src/model/GetTranscodeTaskResult.cc + src/model/GetURLUploadInfosRequest.cc + src/model/GetURLUploadInfosResult.cc + src/model/GetMezzanineInfoRequest.cc + src/model/GetMezzanineInfoResult.cc + src/model/DetachAppPolicyFromIdentityRequest.cc + src/model/DetachAppPolicyFromIdentityResult.cc + src/model/DescribePlayUserAvgRequest.cc + src/model/DescribePlayUserAvgResult.cc ) add_library(vod ${LIB_TYPE} ${vod_public_header} diff --git a/vod/include/alibabacloud/vod/VodClient.h b/vod/include/alibabacloud/vod/VodClient.h index 22342773a..bbff96ba4 100644 --- a/vod/include/alibabacloud/vod/VodClient.h +++ b/vod/include/alibabacloud/vod/VodClient.h @@ -30,8 +30,12 @@ #include "model/AttachAppPolicyToIdentityResult.h" #include "model/DeleteCategoryRequest.h" #include "model/DeleteCategoryResult.h" +#include "model/DescribeVodDomainDetailRequest.h" +#include "model/DescribeVodDomainDetailResult.h" #include "model/SetDefaultTranscodeTemplateGroupRequest.h" #include "model/SetDefaultTranscodeTemplateGroupResult.h" +#include "model/BatchSetVodDomainConfigsRequest.h" +#include "model/BatchSetVodDomainConfigsResult.h" #include "model/UpdateVideoInfosRequest.h" #include "model/UpdateVideoInfosResult.h" #include "model/UpdateEditingProjectRequest.h" @@ -46,6 +50,8 @@ #include "model/GetAuditHistoryResult.h" #include "model/GetMediaDNAResultRequest.h" #include "model/GetMediaDNAResultResult.h" +#include "model/SetVodDomainCertificateRequest.h" +#include "model/SetVodDomainCertificateResult.h" #include "model/UpdateCategoryRequest.h" #include "model/UpdateCategoryResult.h" #include "model/RegisterMediaRequest.h" @@ -66,10 +72,10 @@ #include "model/ListVodTemplateResult.h" #include "model/DeleteAppInfoRequest.h" #include "model/DeleteAppInfoResult.h" -#include "model/AddWatermarkRequest.h" -#include "model/AddWatermarkResult.h" #include "model/ListWatermarkRequest.h" #include "model/ListWatermarkResult.h" +#include "model/AddWatermarkRequest.h" +#include "model/AddWatermarkResult.h" #include "model/CreateUploadImageRequest.h" #include "model/CreateUploadImageResult.h" #include "model/DescribeVodDomainLogRequest.h" @@ -78,12 +84,12 @@ #include "model/UpdateVideoInfoResult.h" #include "model/AddAITemplateRequest.h" #include "model/AddAITemplateResult.h" -#include "model/ListTranscodeTaskRequest.h" -#include "model/ListTranscodeTaskResult.h" -#include "model/RefreshVodObjectCachesRequest.h" -#include "model/RefreshVodObjectCachesResult.h" #include "model/DescribePlayTopVideosRequest.h" #include "model/DescribePlayTopVideosResult.h" +#include "model/RefreshVodObjectCachesRequest.h" +#include "model/RefreshVodObjectCachesResult.h" +#include "model/ListTranscodeTaskRequest.h" +#include "model/ListTranscodeTaskResult.h" #include "model/SetDefaultWatermarkRequest.h" #include "model/SetDefaultWatermarkResult.h" #include "model/ListAITemplateRequest.h" @@ -98,40 +104,50 @@ #include "model/DeleteAITemplateResult.h" #include "model/CreateAuditRequest.h" #include "model/CreateAuditResult.h" +#include "model/DeleteVodDomainRequest.h" +#include "model/DeleteVodDomainResult.h" +#include "model/DescribeVodDomainCertificateInfoRequest.h" +#include "model/DescribeVodDomainCertificateInfoResult.h" #include "model/GetWatermarkRequest.h" #include "model/GetWatermarkResult.h" #include "model/UpdateVodTemplateRequest.h" #include "model/UpdateVodTemplateResult.h" -#include "model/UpdateAttachedMediaInfosRequest.h" -#include "model/UpdateAttachedMediaInfosResult.h" #include "model/ListLiveRecordVideoRequest.h" #include "model/ListLiveRecordVideoResult.h" +#include "model/UpdateAttachedMediaInfosRequest.h" +#include "model/UpdateAttachedMediaInfosResult.h" #include "model/DescribePlayVideoStatisRequest.h" #include "model/DescribePlayVideoStatisResult.h" #include "model/GetMediaAuditResultDetailRequest.h" #include "model/GetMediaAuditResultDetailResult.h" #include "model/DeleteStreamRequest.h" #include "model/DeleteStreamResult.h" -#include "model/UploadMediaByURLRequest.h" -#include "model/UploadMediaByURLResult.h" #include "model/UpdateAppInfoRequest.h" #include "model/UpdateAppInfoResult.h" +#include "model/UploadMediaByURLRequest.h" +#include "model/UploadMediaByURLResult.h" #include "model/DescribeVodDomainBpsDataRequest.h" #include "model/DescribeVodDomainBpsDataResult.h" #include "model/GetPlayInfoRequest.h" #include "model/GetPlayInfoResult.h" -#include "model/AddEditingProjectRequest.h" -#include "model/AddEditingProjectResult.h" +#include "model/UpdateVodDomainRequest.h" +#include "model/UpdateVodDomainResult.h" #include "model/DeleteMezzaninesRequest.h" #include "model/DeleteMezzaninesResult.h" +#include "model/AddEditingProjectRequest.h" +#include "model/AddEditingProjectResult.h" #include "model/GetUploadDetailsRequest.h" #include "model/GetUploadDetailsResult.h" -#include "model/DeleteTranscodeTemplateGroupRequest.h" -#include "model/DeleteTranscodeTemplateGroupResult.h" #include "model/GetAttachedMediaInfoRequest.h" #include "model/GetAttachedMediaInfoResult.h" +#include "model/DeleteTranscodeTemplateGroupRequest.h" +#include "model/DeleteTranscodeTemplateGroupResult.h" +#include "model/DeleteVodSpecificConfigRequest.h" +#include "model/DeleteVodSpecificConfigResult.h" #include "model/AddTranscodeTemplateGroupRequest.h" #include "model/AddTranscodeTemplateGroupResult.h" +#include "model/DescribeVodCertificateListRequest.h" +#include "model/DescribeVodCertificateListResult.h" #include "model/SetEditingProjectMaterialsRequest.h" #include "model/SetEditingProjectMaterialsResult.h" #include "model/DeleteVideoRequest.h" @@ -176,14 +192,22 @@ #include "model/GetAppInfosResult.h" #include "model/CreateAppInfoRequest.h" #include "model/CreateAppInfoResult.h" +#include "model/DescribeVodDomainConfigsRequest.h" +#include "model/DescribeVodDomainConfigsResult.h" #include "model/DeleteWatermarkRequest.h" #include "model/DeleteWatermarkResult.h" +#include "model/BatchStopVodDomainRequest.h" +#include "model/BatchStopVodDomainResult.h" +#include "model/ModifyVodDomainSchdmByPropertyRequest.h" +#include "model/ModifyVodDomainSchdmByPropertyResult.h" #include "model/ListTranscodeTemplateGroupRequest.h" #include "model/ListTranscodeTemplateGroupResult.h" #include "model/ListAppPoliciesForIdentityRequest.h" #include "model/ListAppPoliciesForIdentityResult.h" #include "model/GetAIVideoTagResultRequest.h" #include "model/GetAIVideoTagResultResult.h" +#include "model/BatchStartVodDomainRequest.h" +#include "model/BatchStartVodDomainResult.h" #include "model/SubmitPreprocessJobsRequest.h" #include "model/SubmitPreprocessJobsResult.h" #include "model/ListAIJobRequest.h" @@ -210,14 +234,16 @@ #include "model/DescribeVodTranscodeDataResult.h" #include "model/SearchEditingProjectRequest.h" #include "model/SearchEditingProjectResult.h" +#include "model/DescribeVodUserDomainsRequest.h" +#include "model/DescribeVodUserDomainsResult.h" #include "model/GetImageInfoRequest.h" #include "model/GetImageInfoResult.h" #include "model/UpdateWatermarkRequest.h" #include "model/UpdateWatermarkResult.h" -#include "model/GetMessageCallbackRequest.h" -#include "model/GetMessageCallbackResult.h" #include "model/MoveAppResourceRequest.h" #include "model/MoveAppResourceResult.h" +#include "model/GetMessageCallbackRequest.h" +#include "model/GetMessageCallbackResult.h" #include "model/GetCategoriesRequest.h" #include "model/GetCategoriesResult.h" #include "model/GetAIMediaAuditJobRequest.h" @@ -226,6 +252,8 @@ #include "model/SubmitAIJobResult.h" #include "model/SubmitTranscodeJobsRequest.h" #include "model/SubmitTranscodeJobsResult.h" +#include "model/AddVodDomainRequest.h" +#include "model/AddVodDomainResult.h" #include "model/CreateUploadVideoRequest.h" #include "model/CreateUploadVideoResult.h" #include "model/SetAuditSecurityIpRequest.h" @@ -265,9 +293,15 @@ namespace AlibabaCloud typedef Outcome DeleteCategoryOutcome; typedef std::future DeleteCategoryOutcomeCallable; typedef std::function&)> DeleteCategoryAsyncHandler; + typedef Outcome DescribeVodDomainDetailOutcome; + typedef std::future DescribeVodDomainDetailOutcomeCallable; + typedef std::function&)> DescribeVodDomainDetailAsyncHandler; typedef Outcome SetDefaultTranscodeTemplateGroupOutcome; typedef std::future SetDefaultTranscodeTemplateGroupOutcomeCallable; typedef std::function&)> SetDefaultTranscodeTemplateGroupAsyncHandler; + typedef Outcome BatchSetVodDomainConfigsOutcome; + typedef std::future BatchSetVodDomainConfigsOutcomeCallable; + typedef std::function&)> BatchSetVodDomainConfigsAsyncHandler; typedef Outcome UpdateVideoInfosOutcome; typedef std::future UpdateVideoInfosOutcomeCallable; typedef std::function&)> UpdateVideoInfosAsyncHandler; @@ -289,6 +323,9 @@ namespace AlibabaCloud typedef Outcome GetMediaDNAResultOutcome; typedef std::future GetMediaDNAResultOutcomeCallable; typedef std::function&)> GetMediaDNAResultAsyncHandler; + typedef Outcome SetVodDomainCertificateOutcome; + typedef std::future SetVodDomainCertificateOutcomeCallable; + typedef std::function&)> SetVodDomainCertificateAsyncHandler; typedef Outcome UpdateCategoryOutcome; typedef std::future UpdateCategoryOutcomeCallable; typedef std::function&)> UpdateCategoryAsyncHandler; @@ -319,12 +356,12 @@ namespace AlibabaCloud typedef Outcome DeleteAppInfoOutcome; typedef std::future DeleteAppInfoOutcomeCallable; typedef std::function&)> DeleteAppInfoAsyncHandler; - typedef Outcome AddWatermarkOutcome; - typedef std::future AddWatermarkOutcomeCallable; - typedef std::function&)> AddWatermarkAsyncHandler; typedef Outcome ListWatermarkOutcome; typedef std::future ListWatermarkOutcomeCallable; typedef std::function&)> ListWatermarkAsyncHandler; + typedef Outcome AddWatermarkOutcome; + typedef std::future AddWatermarkOutcomeCallable; + typedef std::function&)> AddWatermarkAsyncHandler; typedef Outcome CreateUploadImageOutcome; typedef std::future CreateUploadImageOutcomeCallable; typedef std::function&)> CreateUploadImageAsyncHandler; @@ -337,15 +374,15 @@ namespace AlibabaCloud typedef Outcome AddAITemplateOutcome; typedef std::future AddAITemplateOutcomeCallable; typedef std::function&)> AddAITemplateAsyncHandler; - typedef Outcome ListTranscodeTaskOutcome; - typedef std::future ListTranscodeTaskOutcomeCallable; - typedef std::function&)> ListTranscodeTaskAsyncHandler; - typedef Outcome RefreshVodObjectCachesOutcome; - typedef std::future RefreshVodObjectCachesOutcomeCallable; - typedef std::function&)> RefreshVodObjectCachesAsyncHandler; typedef Outcome DescribePlayTopVideosOutcome; typedef std::future DescribePlayTopVideosOutcomeCallable; typedef std::function&)> DescribePlayTopVideosAsyncHandler; + typedef Outcome RefreshVodObjectCachesOutcome; + typedef std::future RefreshVodObjectCachesOutcomeCallable; + typedef std::function&)> RefreshVodObjectCachesAsyncHandler; + typedef Outcome ListTranscodeTaskOutcome; + typedef std::future ListTranscodeTaskOutcomeCallable; + typedef std::function&)> ListTranscodeTaskAsyncHandler; typedef Outcome SetDefaultWatermarkOutcome; typedef std::future SetDefaultWatermarkOutcomeCallable; typedef std::function&)> SetDefaultWatermarkAsyncHandler; @@ -367,18 +404,24 @@ namespace AlibabaCloud typedef Outcome CreateAuditOutcome; typedef std::future CreateAuditOutcomeCallable; typedef std::function&)> CreateAuditAsyncHandler; + typedef Outcome DeleteVodDomainOutcome; + typedef std::future DeleteVodDomainOutcomeCallable; + typedef std::function&)> DeleteVodDomainAsyncHandler; + typedef Outcome DescribeVodDomainCertificateInfoOutcome; + typedef std::future DescribeVodDomainCertificateInfoOutcomeCallable; + typedef std::function&)> DescribeVodDomainCertificateInfoAsyncHandler; typedef Outcome GetWatermarkOutcome; typedef std::future GetWatermarkOutcomeCallable; typedef std::function&)> GetWatermarkAsyncHandler; typedef Outcome UpdateVodTemplateOutcome; typedef std::future UpdateVodTemplateOutcomeCallable; typedef std::function&)> UpdateVodTemplateAsyncHandler; - typedef Outcome UpdateAttachedMediaInfosOutcome; - typedef std::future UpdateAttachedMediaInfosOutcomeCallable; - typedef std::function&)> UpdateAttachedMediaInfosAsyncHandler; typedef Outcome ListLiveRecordVideoOutcome; typedef std::future ListLiveRecordVideoOutcomeCallable; typedef std::function&)> ListLiveRecordVideoAsyncHandler; + typedef Outcome UpdateAttachedMediaInfosOutcome; + typedef std::future UpdateAttachedMediaInfosOutcomeCallable; + typedef std::function&)> UpdateAttachedMediaInfosAsyncHandler; typedef Outcome DescribePlayVideoStatisOutcome; typedef std::future DescribePlayVideoStatisOutcomeCallable; typedef std::function&)> DescribePlayVideoStatisAsyncHandler; @@ -388,36 +431,45 @@ namespace AlibabaCloud typedef Outcome DeleteStreamOutcome; typedef std::future DeleteStreamOutcomeCallable; typedef std::function&)> DeleteStreamAsyncHandler; - typedef Outcome UploadMediaByURLOutcome; - typedef std::future UploadMediaByURLOutcomeCallable; - typedef std::function&)> UploadMediaByURLAsyncHandler; typedef Outcome UpdateAppInfoOutcome; typedef std::future UpdateAppInfoOutcomeCallable; typedef std::function&)> UpdateAppInfoAsyncHandler; + typedef Outcome UploadMediaByURLOutcome; + typedef std::future UploadMediaByURLOutcomeCallable; + typedef std::function&)> UploadMediaByURLAsyncHandler; typedef Outcome DescribeVodDomainBpsDataOutcome; typedef std::future DescribeVodDomainBpsDataOutcomeCallable; typedef std::function&)> DescribeVodDomainBpsDataAsyncHandler; typedef Outcome GetPlayInfoOutcome; typedef std::future GetPlayInfoOutcomeCallable; typedef std::function&)> GetPlayInfoAsyncHandler; - typedef Outcome AddEditingProjectOutcome; - typedef std::future AddEditingProjectOutcomeCallable; - typedef std::function&)> AddEditingProjectAsyncHandler; + typedef Outcome UpdateVodDomainOutcome; + typedef std::future UpdateVodDomainOutcomeCallable; + typedef std::function&)> UpdateVodDomainAsyncHandler; typedef Outcome DeleteMezzaninesOutcome; typedef std::future DeleteMezzaninesOutcomeCallable; typedef std::function&)> DeleteMezzaninesAsyncHandler; + typedef Outcome AddEditingProjectOutcome; + typedef std::future AddEditingProjectOutcomeCallable; + typedef std::function&)> AddEditingProjectAsyncHandler; typedef Outcome GetUploadDetailsOutcome; typedef std::future GetUploadDetailsOutcomeCallable; typedef std::function&)> GetUploadDetailsAsyncHandler; - typedef Outcome DeleteTranscodeTemplateGroupOutcome; - typedef std::future DeleteTranscodeTemplateGroupOutcomeCallable; - typedef std::function&)> DeleteTranscodeTemplateGroupAsyncHandler; typedef Outcome GetAttachedMediaInfoOutcome; typedef std::future GetAttachedMediaInfoOutcomeCallable; typedef std::function&)> GetAttachedMediaInfoAsyncHandler; + typedef Outcome DeleteTranscodeTemplateGroupOutcome; + typedef std::future DeleteTranscodeTemplateGroupOutcomeCallable; + typedef std::function&)> DeleteTranscodeTemplateGroupAsyncHandler; + typedef Outcome DeleteVodSpecificConfigOutcome; + typedef std::future DeleteVodSpecificConfigOutcomeCallable; + typedef std::function&)> DeleteVodSpecificConfigAsyncHandler; typedef Outcome AddTranscodeTemplateGroupOutcome; typedef std::future AddTranscodeTemplateGroupOutcomeCallable; typedef std::function&)> AddTranscodeTemplateGroupAsyncHandler; + typedef Outcome DescribeVodCertificateListOutcome; + typedef std::future DescribeVodCertificateListOutcomeCallable; + typedef std::function&)> DescribeVodCertificateListAsyncHandler; typedef Outcome SetEditingProjectMaterialsOutcome; typedef std::future SetEditingProjectMaterialsOutcomeCallable; typedef std::function&)> SetEditingProjectMaterialsAsyncHandler; @@ -484,9 +536,18 @@ namespace AlibabaCloud typedef Outcome CreateAppInfoOutcome; typedef std::future CreateAppInfoOutcomeCallable; typedef std::function&)> CreateAppInfoAsyncHandler; + typedef Outcome DescribeVodDomainConfigsOutcome; + typedef std::future DescribeVodDomainConfigsOutcomeCallable; + typedef std::function&)> DescribeVodDomainConfigsAsyncHandler; typedef Outcome DeleteWatermarkOutcome; typedef std::future DeleteWatermarkOutcomeCallable; typedef std::function&)> DeleteWatermarkAsyncHandler; + typedef Outcome BatchStopVodDomainOutcome; + typedef std::future BatchStopVodDomainOutcomeCallable; + typedef std::function&)> BatchStopVodDomainAsyncHandler; + typedef Outcome ModifyVodDomainSchdmByPropertyOutcome; + typedef std::future ModifyVodDomainSchdmByPropertyOutcomeCallable; + typedef std::function&)> ModifyVodDomainSchdmByPropertyAsyncHandler; typedef Outcome ListTranscodeTemplateGroupOutcome; typedef std::future ListTranscodeTemplateGroupOutcomeCallable; typedef std::function&)> ListTranscodeTemplateGroupAsyncHandler; @@ -496,6 +557,9 @@ namespace AlibabaCloud typedef Outcome GetAIVideoTagResultOutcome; typedef std::future GetAIVideoTagResultOutcomeCallable; typedef std::function&)> GetAIVideoTagResultAsyncHandler; + typedef Outcome BatchStartVodDomainOutcome; + typedef std::future BatchStartVodDomainOutcomeCallable; + typedef std::function&)> BatchStartVodDomainAsyncHandler; typedef Outcome SubmitPreprocessJobsOutcome; typedef std::future SubmitPreprocessJobsOutcomeCallable; typedef std::function&)> SubmitPreprocessJobsAsyncHandler; @@ -535,18 +599,21 @@ namespace AlibabaCloud typedef Outcome SearchEditingProjectOutcome; typedef std::future SearchEditingProjectOutcomeCallable; typedef std::function&)> SearchEditingProjectAsyncHandler; + typedef Outcome DescribeVodUserDomainsOutcome; + typedef std::future DescribeVodUserDomainsOutcomeCallable; + typedef std::function&)> DescribeVodUserDomainsAsyncHandler; typedef Outcome GetImageInfoOutcome; typedef std::future GetImageInfoOutcomeCallable; typedef std::function&)> GetImageInfoAsyncHandler; typedef Outcome UpdateWatermarkOutcome; typedef std::future UpdateWatermarkOutcomeCallable; typedef std::function&)> UpdateWatermarkAsyncHandler; - typedef Outcome GetMessageCallbackOutcome; - typedef std::future GetMessageCallbackOutcomeCallable; - typedef std::function&)> GetMessageCallbackAsyncHandler; typedef Outcome MoveAppResourceOutcome; typedef std::future MoveAppResourceOutcomeCallable; typedef std::function&)> MoveAppResourceAsyncHandler; + typedef Outcome GetMessageCallbackOutcome; + typedef std::future GetMessageCallbackOutcomeCallable; + typedef std::function&)> GetMessageCallbackAsyncHandler; typedef Outcome GetCategoriesOutcome; typedef std::future GetCategoriesOutcomeCallable; typedef std::function&)> GetCategoriesAsyncHandler; @@ -559,6 +626,9 @@ namespace AlibabaCloud typedef Outcome SubmitTranscodeJobsOutcome; typedef std::future SubmitTranscodeJobsOutcomeCallable; typedef std::function&)> SubmitTranscodeJobsAsyncHandler; + typedef Outcome AddVodDomainOutcome; + typedef std::future AddVodDomainOutcomeCallable; + typedef std::function&)> AddVodDomainAsyncHandler; typedef Outcome CreateUploadVideoOutcome; typedef std::future CreateUploadVideoOutcomeCallable; typedef std::function&)> CreateUploadVideoAsyncHandler; @@ -603,9 +673,15 @@ namespace AlibabaCloud DeleteCategoryOutcome deleteCategory(const Model::DeleteCategoryRequest &request)const; void deleteCategoryAsync(const Model::DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCategoryOutcomeCallable deleteCategoryCallable(const Model::DeleteCategoryRequest& request) const; + DescribeVodDomainDetailOutcome describeVodDomainDetail(const Model::DescribeVodDomainDetailRequest &request)const; + void describeVodDomainDetailAsync(const Model::DescribeVodDomainDetailRequest& request, const DescribeVodDomainDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVodDomainDetailOutcomeCallable describeVodDomainDetailCallable(const Model::DescribeVodDomainDetailRequest& request) const; SetDefaultTranscodeTemplateGroupOutcome setDefaultTranscodeTemplateGroup(const Model::SetDefaultTranscodeTemplateGroupRequest &request)const; void setDefaultTranscodeTemplateGroupAsync(const Model::SetDefaultTranscodeTemplateGroupRequest& request, const SetDefaultTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDefaultTranscodeTemplateGroupOutcomeCallable setDefaultTranscodeTemplateGroupCallable(const Model::SetDefaultTranscodeTemplateGroupRequest& request) const; + BatchSetVodDomainConfigsOutcome batchSetVodDomainConfigs(const Model::BatchSetVodDomainConfigsRequest &request)const; + void batchSetVodDomainConfigsAsync(const Model::BatchSetVodDomainConfigsRequest& request, const BatchSetVodDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchSetVodDomainConfigsOutcomeCallable batchSetVodDomainConfigsCallable(const Model::BatchSetVodDomainConfigsRequest& request) const; UpdateVideoInfosOutcome updateVideoInfos(const Model::UpdateVideoInfosRequest &request)const; void updateVideoInfosAsync(const Model::UpdateVideoInfosRequest& request, const UpdateVideoInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateVideoInfosOutcomeCallable updateVideoInfosCallable(const Model::UpdateVideoInfosRequest& request) const; @@ -627,6 +703,9 @@ namespace AlibabaCloud GetMediaDNAResultOutcome getMediaDNAResult(const Model::GetMediaDNAResultRequest &request)const; void getMediaDNAResultAsync(const Model::GetMediaDNAResultRequest& request, const GetMediaDNAResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMediaDNAResultOutcomeCallable getMediaDNAResultCallable(const Model::GetMediaDNAResultRequest& request) const; + SetVodDomainCertificateOutcome setVodDomainCertificate(const Model::SetVodDomainCertificateRequest &request)const; + void setVodDomainCertificateAsync(const Model::SetVodDomainCertificateRequest& request, const SetVodDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetVodDomainCertificateOutcomeCallable setVodDomainCertificateCallable(const Model::SetVodDomainCertificateRequest& request) const; UpdateCategoryOutcome updateCategory(const Model::UpdateCategoryRequest &request)const; void updateCategoryAsync(const Model::UpdateCategoryRequest& request, const UpdateCategoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateCategoryOutcomeCallable updateCategoryCallable(const Model::UpdateCategoryRequest& request) const; @@ -657,12 +736,12 @@ namespace AlibabaCloud DeleteAppInfoOutcome deleteAppInfo(const Model::DeleteAppInfoRequest &request)const; void deleteAppInfoAsync(const Model::DeleteAppInfoRequest& request, const DeleteAppInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAppInfoOutcomeCallable deleteAppInfoCallable(const Model::DeleteAppInfoRequest& request) const; - AddWatermarkOutcome addWatermark(const Model::AddWatermarkRequest &request)const; - void addWatermarkAsync(const Model::AddWatermarkRequest& request, const AddWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddWatermarkOutcomeCallable addWatermarkCallable(const Model::AddWatermarkRequest& request) const; ListWatermarkOutcome listWatermark(const Model::ListWatermarkRequest &request)const; void listWatermarkAsync(const Model::ListWatermarkRequest& request, const ListWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListWatermarkOutcomeCallable listWatermarkCallable(const Model::ListWatermarkRequest& request) const; + AddWatermarkOutcome addWatermark(const Model::AddWatermarkRequest &request)const; + void addWatermarkAsync(const Model::AddWatermarkRequest& request, const AddWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddWatermarkOutcomeCallable addWatermarkCallable(const Model::AddWatermarkRequest& request) const; CreateUploadImageOutcome createUploadImage(const Model::CreateUploadImageRequest &request)const; void createUploadImageAsync(const Model::CreateUploadImageRequest& request, const CreateUploadImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUploadImageOutcomeCallable createUploadImageCallable(const Model::CreateUploadImageRequest& request) const; @@ -675,15 +754,15 @@ namespace AlibabaCloud AddAITemplateOutcome addAITemplate(const Model::AddAITemplateRequest &request)const; void addAITemplateAsync(const Model::AddAITemplateRequest& request, const AddAITemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddAITemplateOutcomeCallable addAITemplateCallable(const Model::AddAITemplateRequest& request) const; - ListTranscodeTaskOutcome listTranscodeTask(const Model::ListTranscodeTaskRequest &request)const; - void listTranscodeTaskAsync(const Model::ListTranscodeTaskRequest& request, const ListTranscodeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTranscodeTaskOutcomeCallable listTranscodeTaskCallable(const Model::ListTranscodeTaskRequest& request) const; - RefreshVodObjectCachesOutcome refreshVodObjectCaches(const Model::RefreshVodObjectCachesRequest &request)const; - void refreshVodObjectCachesAsync(const Model::RefreshVodObjectCachesRequest& request, const RefreshVodObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RefreshVodObjectCachesOutcomeCallable refreshVodObjectCachesCallable(const Model::RefreshVodObjectCachesRequest& request) const; DescribePlayTopVideosOutcome describePlayTopVideos(const Model::DescribePlayTopVideosRequest &request)const; void describePlayTopVideosAsync(const Model::DescribePlayTopVideosRequest& request, const DescribePlayTopVideosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePlayTopVideosOutcomeCallable describePlayTopVideosCallable(const Model::DescribePlayTopVideosRequest& request) const; + RefreshVodObjectCachesOutcome refreshVodObjectCaches(const Model::RefreshVodObjectCachesRequest &request)const; + void refreshVodObjectCachesAsync(const Model::RefreshVodObjectCachesRequest& request, const RefreshVodObjectCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshVodObjectCachesOutcomeCallable refreshVodObjectCachesCallable(const Model::RefreshVodObjectCachesRequest& request) const; + ListTranscodeTaskOutcome listTranscodeTask(const Model::ListTranscodeTaskRequest &request)const; + void listTranscodeTaskAsync(const Model::ListTranscodeTaskRequest& request, const ListTranscodeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTranscodeTaskOutcomeCallable listTranscodeTaskCallable(const Model::ListTranscodeTaskRequest& request) const; SetDefaultWatermarkOutcome setDefaultWatermark(const Model::SetDefaultWatermarkRequest &request)const; void setDefaultWatermarkAsync(const Model::SetDefaultWatermarkRequest& request, const SetDefaultWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDefaultWatermarkOutcomeCallable setDefaultWatermarkCallable(const Model::SetDefaultWatermarkRequest& request) const; @@ -705,18 +784,24 @@ namespace AlibabaCloud CreateAuditOutcome createAudit(const Model::CreateAuditRequest &request)const; void createAuditAsync(const Model::CreateAuditRequest& request, const CreateAuditAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAuditOutcomeCallable createAuditCallable(const Model::CreateAuditRequest& request) const; + DeleteVodDomainOutcome deleteVodDomain(const Model::DeleteVodDomainRequest &request)const; + void deleteVodDomainAsync(const Model::DeleteVodDomainRequest& request, const DeleteVodDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVodDomainOutcomeCallable deleteVodDomainCallable(const Model::DeleteVodDomainRequest& request) const; + DescribeVodDomainCertificateInfoOutcome describeVodDomainCertificateInfo(const Model::DescribeVodDomainCertificateInfoRequest &request)const; + void describeVodDomainCertificateInfoAsync(const Model::DescribeVodDomainCertificateInfoRequest& request, const DescribeVodDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVodDomainCertificateInfoOutcomeCallable describeVodDomainCertificateInfoCallable(const Model::DescribeVodDomainCertificateInfoRequest& request) const; GetWatermarkOutcome getWatermark(const Model::GetWatermarkRequest &request)const; void getWatermarkAsync(const Model::GetWatermarkRequest& request, const GetWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetWatermarkOutcomeCallable getWatermarkCallable(const Model::GetWatermarkRequest& request) const; UpdateVodTemplateOutcome updateVodTemplate(const Model::UpdateVodTemplateRequest &request)const; void updateVodTemplateAsync(const Model::UpdateVodTemplateRequest& request, const UpdateVodTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateVodTemplateOutcomeCallable updateVodTemplateCallable(const Model::UpdateVodTemplateRequest& request) const; - UpdateAttachedMediaInfosOutcome updateAttachedMediaInfos(const Model::UpdateAttachedMediaInfosRequest &request)const; - void updateAttachedMediaInfosAsync(const Model::UpdateAttachedMediaInfosRequest& request, const UpdateAttachedMediaInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateAttachedMediaInfosOutcomeCallable updateAttachedMediaInfosCallable(const Model::UpdateAttachedMediaInfosRequest& request) const; ListLiveRecordVideoOutcome listLiveRecordVideo(const Model::ListLiveRecordVideoRequest &request)const; void listLiveRecordVideoAsync(const Model::ListLiveRecordVideoRequest& request, const ListLiveRecordVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListLiveRecordVideoOutcomeCallable listLiveRecordVideoCallable(const Model::ListLiveRecordVideoRequest& request) const; + UpdateAttachedMediaInfosOutcome updateAttachedMediaInfos(const Model::UpdateAttachedMediaInfosRequest &request)const; + void updateAttachedMediaInfosAsync(const Model::UpdateAttachedMediaInfosRequest& request, const UpdateAttachedMediaInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAttachedMediaInfosOutcomeCallable updateAttachedMediaInfosCallable(const Model::UpdateAttachedMediaInfosRequest& request) const; DescribePlayVideoStatisOutcome describePlayVideoStatis(const Model::DescribePlayVideoStatisRequest &request)const; void describePlayVideoStatisAsync(const Model::DescribePlayVideoStatisRequest& request, const DescribePlayVideoStatisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePlayVideoStatisOutcomeCallable describePlayVideoStatisCallable(const Model::DescribePlayVideoStatisRequest& request) const; @@ -726,36 +811,45 @@ namespace AlibabaCloud DeleteStreamOutcome deleteStream(const Model::DeleteStreamRequest &request)const; void deleteStreamAsync(const Model::DeleteStreamRequest& request, const DeleteStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteStreamOutcomeCallable deleteStreamCallable(const Model::DeleteStreamRequest& request) const; - UploadMediaByURLOutcome uploadMediaByURL(const Model::UploadMediaByURLRequest &request)const; - void uploadMediaByURLAsync(const Model::UploadMediaByURLRequest& request, const UploadMediaByURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UploadMediaByURLOutcomeCallable uploadMediaByURLCallable(const Model::UploadMediaByURLRequest& request) const; UpdateAppInfoOutcome updateAppInfo(const Model::UpdateAppInfoRequest &request)const; void updateAppInfoAsync(const Model::UpdateAppInfoRequest& request, const UpdateAppInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAppInfoOutcomeCallable updateAppInfoCallable(const Model::UpdateAppInfoRequest& request) const; + UploadMediaByURLOutcome uploadMediaByURL(const Model::UploadMediaByURLRequest &request)const; + void uploadMediaByURLAsync(const Model::UploadMediaByURLRequest& request, const UploadMediaByURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadMediaByURLOutcomeCallable uploadMediaByURLCallable(const Model::UploadMediaByURLRequest& request) const; DescribeVodDomainBpsDataOutcome describeVodDomainBpsData(const Model::DescribeVodDomainBpsDataRequest &request)const; void describeVodDomainBpsDataAsync(const Model::DescribeVodDomainBpsDataRequest& request, const DescribeVodDomainBpsDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVodDomainBpsDataOutcomeCallable describeVodDomainBpsDataCallable(const Model::DescribeVodDomainBpsDataRequest& request) const; GetPlayInfoOutcome getPlayInfo(const Model::GetPlayInfoRequest &request)const; void getPlayInfoAsync(const Model::GetPlayInfoRequest& request, const GetPlayInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPlayInfoOutcomeCallable getPlayInfoCallable(const Model::GetPlayInfoRequest& request) const; - AddEditingProjectOutcome addEditingProject(const Model::AddEditingProjectRequest &request)const; - void addEditingProjectAsync(const Model::AddEditingProjectRequest& request, const AddEditingProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddEditingProjectOutcomeCallable addEditingProjectCallable(const Model::AddEditingProjectRequest& request) const; + UpdateVodDomainOutcome updateVodDomain(const Model::UpdateVodDomainRequest &request)const; + void updateVodDomainAsync(const Model::UpdateVodDomainRequest& request, const UpdateVodDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateVodDomainOutcomeCallable updateVodDomainCallable(const Model::UpdateVodDomainRequest& request) const; DeleteMezzaninesOutcome deleteMezzanines(const Model::DeleteMezzaninesRequest &request)const; void deleteMezzaninesAsync(const Model::DeleteMezzaninesRequest& request, const DeleteMezzaninesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteMezzaninesOutcomeCallable deleteMezzaninesCallable(const Model::DeleteMezzaninesRequest& request) const; + AddEditingProjectOutcome addEditingProject(const Model::AddEditingProjectRequest &request)const; + void addEditingProjectAsync(const Model::AddEditingProjectRequest& request, const AddEditingProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddEditingProjectOutcomeCallable addEditingProjectCallable(const Model::AddEditingProjectRequest& request) const; GetUploadDetailsOutcome getUploadDetails(const Model::GetUploadDetailsRequest &request)const; void getUploadDetailsAsync(const Model::GetUploadDetailsRequest& request, const GetUploadDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUploadDetailsOutcomeCallable getUploadDetailsCallable(const Model::GetUploadDetailsRequest& request) const; - DeleteTranscodeTemplateGroupOutcome deleteTranscodeTemplateGroup(const Model::DeleteTranscodeTemplateGroupRequest &request)const; - void deleteTranscodeTemplateGroupAsync(const Model::DeleteTranscodeTemplateGroupRequest& request, const DeleteTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteTranscodeTemplateGroupOutcomeCallable deleteTranscodeTemplateGroupCallable(const Model::DeleteTranscodeTemplateGroupRequest& request) const; GetAttachedMediaInfoOutcome getAttachedMediaInfo(const Model::GetAttachedMediaInfoRequest &request)const; void getAttachedMediaInfoAsync(const Model::GetAttachedMediaInfoRequest& request, const GetAttachedMediaInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAttachedMediaInfoOutcomeCallable getAttachedMediaInfoCallable(const Model::GetAttachedMediaInfoRequest& request) const; + DeleteTranscodeTemplateGroupOutcome deleteTranscodeTemplateGroup(const Model::DeleteTranscodeTemplateGroupRequest &request)const; + void deleteTranscodeTemplateGroupAsync(const Model::DeleteTranscodeTemplateGroupRequest& request, const DeleteTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTranscodeTemplateGroupOutcomeCallable deleteTranscodeTemplateGroupCallable(const Model::DeleteTranscodeTemplateGroupRequest& request) const; + DeleteVodSpecificConfigOutcome deleteVodSpecificConfig(const Model::DeleteVodSpecificConfigRequest &request)const; + void deleteVodSpecificConfigAsync(const Model::DeleteVodSpecificConfigRequest& request, const DeleteVodSpecificConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVodSpecificConfigOutcomeCallable deleteVodSpecificConfigCallable(const Model::DeleteVodSpecificConfigRequest& request) const; AddTranscodeTemplateGroupOutcome addTranscodeTemplateGroup(const Model::AddTranscodeTemplateGroupRequest &request)const; void addTranscodeTemplateGroupAsync(const Model::AddTranscodeTemplateGroupRequest& request, const AddTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTranscodeTemplateGroupOutcomeCallable addTranscodeTemplateGroupCallable(const Model::AddTranscodeTemplateGroupRequest& request) const; + DescribeVodCertificateListOutcome describeVodCertificateList(const Model::DescribeVodCertificateListRequest &request)const; + void describeVodCertificateListAsync(const Model::DescribeVodCertificateListRequest& request, const DescribeVodCertificateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVodCertificateListOutcomeCallable describeVodCertificateListCallable(const Model::DescribeVodCertificateListRequest& request) const; SetEditingProjectMaterialsOutcome setEditingProjectMaterials(const Model::SetEditingProjectMaterialsRequest &request)const; void setEditingProjectMaterialsAsync(const Model::SetEditingProjectMaterialsRequest& request, const SetEditingProjectMaterialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetEditingProjectMaterialsOutcomeCallable setEditingProjectMaterialsCallable(const Model::SetEditingProjectMaterialsRequest& request) const; @@ -822,9 +916,18 @@ namespace AlibabaCloud CreateAppInfoOutcome createAppInfo(const Model::CreateAppInfoRequest &request)const; void createAppInfoAsync(const Model::CreateAppInfoRequest& request, const CreateAppInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAppInfoOutcomeCallable createAppInfoCallable(const Model::CreateAppInfoRequest& request) const; + DescribeVodDomainConfigsOutcome describeVodDomainConfigs(const Model::DescribeVodDomainConfigsRequest &request)const; + void describeVodDomainConfigsAsync(const Model::DescribeVodDomainConfigsRequest& request, const DescribeVodDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVodDomainConfigsOutcomeCallable describeVodDomainConfigsCallable(const Model::DescribeVodDomainConfigsRequest& request) const; DeleteWatermarkOutcome deleteWatermark(const Model::DeleteWatermarkRequest &request)const; void deleteWatermarkAsync(const Model::DeleteWatermarkRequest& request, const DeleteWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteWatermarkOutcomeCallable deleteWatermarkCallable(const Model::DeleteWatermarkRequest& request) const; + BatchStopVodDomainOutcome batchStopVodDomain(const Model::BatchStopVodDomainRequest &request)const; + void batchStopVodDomainAsync(const Model::BatchStopVodDomainRequest& request, const BatchStopVodDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchStopVodDomainOutcomeCallable batchStopVodDomainCallable(const Model::BatchStopVodDomainRequest& request) const; + ModifyVodDomainSchdmByPropertyOutcome modifyVodDomainSchdmByProperty(const Model::ModifyVodDomainSchdmByPropertyRequest &request)const; + void modifyVodDomainSchdmByPropertyAsync(const Model::ModifyVodDomainSchdmByPropertyRequest& request, const ModifyVodDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVodDomainSchdmByPropertyOutcomeCallable modifyVodDomainSchdmByPropertyCallable(const Model::ModifyVodDomainSchdmByPropertyRequest& request) const; ListTranscodeTemplateGroupOutcome listTranscodeTemplateGroup(const Model::ListTranscodeTemplateGroupRequest &request)const; void listTranscodeTemplateGroupAsync(const Model::ListTranscodeTemplateGroupRequest& request, const ListTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTranscodeTemplateGroupOutcomeCallable listTranscodeTemplateGroupCallable(const Model::ListTranscodeTemplateGroupRequest& request) const; @@ -834,6 +937,9 @@ namespace AlibabaCloud GetAIVideoTagResultOutcome getAIVideoTagResult(const Model::GetAIVideoTagResultRequest &request)const; void getAIVideoTagResultAsync(const Model::GetAIVideoTagResultRequest& request, const GetAIVideoTagResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAIVideoTagResultOutcomeCallable getAIVideoTagResultCallable(const Model::GetAIVideoTagResultRequest& request) const; + BatchStartVodDomainOutcome batchStartVodDomain(const Model::BatchStartVodDomainRequest &request)const; + void batchStartVodDomainAsync(const Model::BatchStartVodDomainRequest& request, const BatchStartVodDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchStartVodDomainOutcomeCallable batchStartVodDomainCallable(const Model::BatchStartVodDomainRequest& request) const; SubmitPreprocessJobsOutcome submitPreprocessJobs(const Model::SubmitPreprocessJobsRequest &request)const; void submitPreprocessJobsAsync(const Model::SubmitPreprocessJobsRequest& request, const SubmitPreprocessJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitPreprocessJobsOutcomeCallable submitPreprocessJobsCallable(const Model::SubmitPreprocessJobsRequest& request) const; @@ -873,18 +979,21 @@ namespace AlibabaCloud SearchEditingProjectOutcome searchEditingProject(const Model::SearchEditingProjectRequest &request)const; void searchEditingProjectAsync(const Model::SearchEditingProjectRequest& request, const SearchEditingProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchEditingProjectOutcomeCallable searchEditingProjectCallable(const Model::SearchEditingProjectRequest& request) const; + DescribeVodUserDomainsOutcome describeVodUserDomains(const Model::DescribeVodUserDomainsRequest &request)const; + void describeVodUserDomainsAsync(const Model::DescribeVodUserDomainsRequest& request, const DescribeVodUserDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVodUserDomainsOutcomeCallable describeVodUserDomainsCallable(const Model::DescribeVodUserDomainsRequest& request) const; GetImageInfoOutcome getImageInfo(const Model::GetImageInfoRequest &request)const; void getImageInfoAsync(const Model::GetImageInfoRequest& request, const GetImageInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetImageInfoOutcomeCallable getImageInfoCallable(const Model::GetImageInfoRequest& request) const; UpdateWatermarkOutcome updateWatermark(const Model::UpdateWatermarkRequest &request)const; void updateWatermarkAsync(const Model::UpdateWatermarkRequest& request, const UpdateWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateWatermarkOutcomeCallable updateWatermarkCallable(const Model::UpdateWatermarkRequest& request) const; - GetMessageCallbackOutcome getMessageCallback(const Model::GetMessageCallbackRequest &request)const; - void getMessageCallbackAsync(const Model::GetMessageCallbackRequest& request, const GetMessageCallbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetMessageCallbackOutcomeCallable getMessageCallbackCallable(const Model::GetMessageCallbackRequest& request) const; MoveAppResourceOutcome moveAppResource(const Model::MoveAppResourceRequest &request)const; void moveAppResourceAsync(const Model::MoveAppResourceRequest& request, const MoveAppResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoveAppResourceOutcomeCallable moveAppResourceCallable(const Model::MoveAppResourceRequest& request) const; + GetMessageCallbackOutcome getMessageCallback(const Model::GetMessageCallbackRequest &request)const; + void getMessageCallbackAsync(const Model::GetMessageCallbackRequest& request, const GetMessageCallbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMessageCallbackOutcomeCallable getMessageCallbackCallable(const Model::GetMessageCallbackRequest& request) const; GetCategoriesOutcome getCategories(const Model::GetCategoriesRequest &request)const; void getCategoriesAsync(const Model::GetCategoriesRequest& request, const GetCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCategoriesOutcomeCallable getCategoriesCallable(const Model::GetCategoriesRequest& request) const; @@ -897,6 +1006,9 @@ namespace AlibabaCloud SubmitTranscodeJobsOutcome submitTranscodeJobs(const Model::SubmitTranscodeJobsRequest &request)const; void submitTranscodeJobsAsync(const Model::SubmitTranscodeJobsRequest& request, const SubmitTranscodeJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitTranscodeJobsOutcomeCallable submitTranscodeJobsCallable(const Model::SubmitTranscodeJobsRequest& request) const; + AddVodDomainOutcome addVodDomain(const Model::AddVodDomainRequest &request)const; + void addVodDomainAsync(const Model::AddVodDomainRequest& request, const AddVodDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddVodDomainOutcomeCallable addVodDomainCallable(const Model::AddVodDomainRequest& request) const; CreateUploadVideoOutcome createUploadVideo(const Model::CreateUploadVideoRequest &request)const; void createUploadVideoAsync(const Model::CreateUploadVideoRequest& request, const CreateUploadVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUploadVideoOutcomeCallable createUploadVideoCallable(const Model::CreateUploadVideoRequest& request) const; diff --git a/vod/include/alibabacloud/vod/model/ListAppInfoResult.h b/vod/include/alibabacloud/vod/model/ListAppInfoResult.h index 28f8344c3..9144bb394 100644 --- a/vod/include/alibabacloud/vod/model/ListAppInfoResult.h +++ b/vod/include/alibabacloud/vod/model/ListAppInfoResult.h @@ -47,11 +47,13 @@ namespace AlibabaCloud ListAppInfoResult(); explicit ListAppInfoResult(const std::string &payload); ~ListAppInfoResult(); + int getTotal()const; std::vector getAppInfoList()const; protected: void parse(const std::string &payload); private: + int total_; std::vector appInfoList_; }; diff --git a/vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyRequest.h b/vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyRequest.h new file mode 100644 index 000000000..b9841a58b --- /dev/null +++ b/vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYREQUEST_H_ +#define ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT ModifyVodDomainSchdmByPropertyRequest : public RpcServiceRequest + { + + public: + ModifyVodDomainSchdmByPropertyRequest(); + ~ModifyVodDomainSchdmByPropertyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getProperty()const; + void setProperty(const std::string& property); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getServiceCode()const; + void setServiceCode(const std::string& serviceCode); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string requestContent_; + std::string property_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string domainName_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string serviceCode_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYREQUEST_H_ \ No newline at end of file diff --git a/vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyResult.h b/vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyResult.h new file mode 100644 index 000000000..ce8fe597f --- /dev/null +++ b/vod/include/alibabacloud/vod/model/ModifyVodDomainSchdmByPropertyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYRESULT_H_ +#define ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT ModifyVodDomainSchdmByPropertyResult : public ServiceResult + { + public: + + + ModifyVodDomainSchdmByPropertyResult(); + explicit ModifyVodDomainSchdmByPropertyResult(const std::string &payload); + ~ModifyVodDomainSchdmByPropertyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYRESULT_H_ \ No newline at end of file diff --git a/vod/src/VodClient.cc b/vod/src/VodClient.cc index 886fb4721..57150b346 100644 --- a/vod/src/VodClient.cc +++ b/vod/src/VodClient.cc @@ -195,6 +195,42 @@ VodClient::DeleteCategoryOutcomeCallable VodClient::deleteCategoryCallable(const return task->get_future(); } +VodClient::DescribeVodDomainDetailOutcome VodClient::describeVodDomainDetail(const DescribeVodDomainDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVodDomainDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVodDomainDetailOutcome(DescribeVodDomainDetailResult(outcome.result())); + else + return DescribeVodDomainDetailOutcome(outcome.error()); +} + +void VodClient::describeVodDomainDetailAsync(const DescribeVodDomainDetailRequest& request, const DescribeVodDomainDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVodDomainDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DescribeVodDomainDetailOutcomeCallable VodClient::describeVodDomainDetailCallable(const DescribeVodDomainDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVodDomainDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::SetDefaultTranscodeTemplateGroupOutcome VodClient::setDefaultTranscodeTemplateGroup(const SetDefaultTranscodeTemplateGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +267,42 @@ VodClient::SetDefaultTranscodeTemplateGroupOutcomeCallable VodClient::setDefault return task->get_future(); } +VodClient::BatchSetVodDomainConfigsOutcome VodClient::batchSetVodDomainConfigs(const BatchSetVodDomainConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchSetVodDomainConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchSetVodDomainConfigsOutcome(BatchSetVodDomainConfigsResult(outcome.result())); + else + return BatchSetVodDomainConfigsOutcome(outcome.error()); +} + +void VodClient::batchSetVodDomainConfigsAsync(const BatchSetVodDomainConfigsRequest& request, const BatchSetVodDomainConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchSetVodDomainConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::BatchSetVodDomainConfigsOutcomeCallable VodClient::batchSetVodDomainConfigsCallable(const BatchSetVodDomainConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchSetVodDomainConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::UpdateVideoInfosOutcome VodClient::updateVideoInfos(const UpdateVideoInfosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +555,42 @@ VodClient::GetMediaDNAResultOutcomeCallable VodClient::getMediaDNAResultCallable return task->get_future(); } +VodClient::SetVodDomainCertificateOutcome VodClient::setVodDomainCertificate(const SetVodDomainCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetVodDomainCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetVodDomainCertificateOutcome(SetVodDomainCertificateResult(outcome.result())); + else + return SetVodDomainCertificateOutcome(outcome.error()); +} + +void VodClient::setVodDomainCertificateAsync(const SetVodDomainCertificateRequest& request, const SetVodDomainCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setVodDomainCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::SetVodDomainCertificateOutcomeCallable VodClient::setVodDomainCertificateCallable(const SetVodDomainCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setVodDomainCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::UpdateCategoryOutcome VodClient::updateCategory(const UpdateCategoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,42 +951,6 @@ VodClient::DeleteAppInfoOutcomeCallable VodClient::deleteAppInfoCallable(const D return task->get_future(); } -VodClient::AddWatermarkOutcome VodClient::addWatermark(const AddWatermarkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddWatermarkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddWatermarkOutcome(AddWatermarkResult(outcome.result())); - else - return AddWatermarkOutcome(outcome.error()); -} - -void VodClient::addWatermarkAsync(const AddWatermarkRequest& request, const AddWatermarkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addWatermark(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VodClient::AddWatermarkOutcomeCallable VodClient::addWatermarkCallable(const AddWatermarkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addWatermark(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VodClient::ListWatermarkOutcome VodClient::listWatermark(const ListWatermarkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +987,42 @@ VodClient::ListWatermarkOutcomeCallable VodClient::listWatermarkCallable(const L return task->get_future(); } +VodClient::AddWatermarkOutcome VodClient::addWatermark(const AddWatermarkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddWatermarkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddWatermarkOutcome(AddWatermarkResult(outcome.result())); + else + return AddWatermarkOutcome(outcome.error()); +} + +void VodClient::addWatermarkAsync(const AddWatermarkRequest& request, const AddWatermarkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addWatermark(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::AddWatermarkOutcomeCallable VodClient::addWatermarkCallable(const AddWatermarkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addWatermark(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::CreateUploadImageOutcome VodClient::createUploadImage(const CreateUploadImageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,36 +1167,36 @@ VodClient::AddAITemplateOutcomeCallable VodClient::addAITemplateCallable(const A return task->get_future(); } -VodClient::ListTranscodeTaskOutcome VodClient::listTranscodeTask(const ListTranscodeTaskRequest &request) const +VodClient::DescribePlayTopVideosOutcome VodClient::describePlayTopVideos(const DescribePlayTopVideosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListTranscodeTaskOutcome(endpointOutcome.error()); + return DescribePlayTopVideosOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListTranscodeTaskOutcome(ListTranscodeTaskResult(outcome.result())); + return DescribePlayTopVideosOutcome(DescribePlayTopVideosResult(outcome.result())); else - return ListTranscodeTaskOutcome(outcome.error()); + return DescribePlayTopVideosOutcome(outcome.error()); } -void VodClient::listTranscodeTaskAsync(const ListTranscodeTaskRequest& request, const ListTranscodeTaskAsyncHandler& handler, const std::shared_ptr& context) const +void VodClient::describePlayTopVideosAsync(const DescribePlayTopVideosRequest& request, const DescribePlayTopVideosAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listTranscodeTask(request), context); + handler(this, request, describePlayTopVideos(request), context); }; asyncExecute(new Runnable(fn)); } -VodClient::ListTranscodeTaskOutcomeCallable VodClient::listTranscodeTaskCallable(const ListTranscodeTaskRequest &request) const +VodClient::DescribePlayTopVideosOutcomeCallable VodClient::describePlayTopVideosCallable(const DescribePlayTopVideosRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listTranscodeTask(request); + return this->describePlayTopVideos(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1131,36 +1239,36 @@ VodClient::RefreshVodObjectCachesOutcomeCallable VodClient::refreshVodObjectCach return task->get_future(); } -VodClient::DescribePlayTopVideosOutcome VodClient::describePlayTopVideos(const DescribePlayTopVideosRequest &request) const +VodClient::ListTranscodeTaskOutcome VodClient::listTranscodeTask(const ListTranscodeTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribePlayTopVideosOutcome(endpointOutcome.error()); + return ListTranscodeTaskOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribePlayTopVideosOutcome(DescribePlayTopVideosResult(outcome.result())); + return ListTranscodeTaskOutcome(ListTranscodeTaskResult(outcome.result())); else - return DescribePlayTopVideosOutcome(outcome.error()); + return ListTranscodeTaskOutcome(outcome.error()); } -void VodClient::describePlayTopVideosAsync(const DescribePlayTopVideosRequest& request, const DescribePlayTopVideosAsyncHandler& handler, const std::shared_ptr& context) const +void VodClient::listTranscodeTaskAsync(const ListTranscodeTaskRequest& request, const ListTranscodeTaskAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describePlayTopVideos(request), context); + handler(this, request, listTranscodeTask(request), context); }; asyncExecute(new Runnable(fn)); } -VodClient::DescribePlayTopVideosOutcomeCallable VodClient::describePlayTopVideosCallable(const DescribePlayTopVideosRequest &request) const +VodClient::ListTranscodeTaskOutcomeCallable VodClient::listTranscodeTaskCallable(const ListTranscodeTaskRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describePlayTopVideos(request); + return this->listTranscodeTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1419,6 +1527,78 @@ VodClient::CreateAuditOutcomeCallable VodClient::createAuditCallable(const Creat return task->get_future(); } +VodClient::DeleteVodDomainOutcome VodClient::deleteVodDomain(const DeleteVodDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVodDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVodDomainOutcome(DeleteVodDomainResult(outcome.result())); + else + return DeleteVodDomainOutcome(outcome.error()); +} + +void VodClient::deleteVodDomainAsync(const DeleteVodDomainRequest& request, const DeleteVodDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVodDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DeleteVodDomainOutcomeCallable VodClient::deleteVodDomainCallable(const DeleteVodDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVodDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VodClient::DescribeVodDomainCertificateInfoOutcome VodClient::describeVodDomainCertificateInfo(const DescribeVodDomainCertificateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVodDomainCertificateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVodDomainCertificateInfoOutcome(DescribeVodDomainCertificateInfoResult(outcome.result())); + else + return DescribeVodDomainCertificateInfoOutcome(outcome.error()); +} + +void VodClient::describeVodDomainCertificateInfoAsync(const DescribeVodDomainCertificateInfoRequest& request, const DescribeVodDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVodDomainCertificateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DescribeVodDomainCertificateInfoOutcomeCallable VodClient::describeVodDomainCertificateInfoCallable(const DescribeVodDomainCertificateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVodDomainCertificateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::GetWatermarkOutcome VodClient::getWatermark(const GetWatermarkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,42 +1671,6 @@ VodClient::UpdateVodTemplateOutcomeCallable VodClient::updateVodTemplateCallable return task->get_future(); } -VodClient::UpdateAttachedMediaInfosOutcome VodClient::updateAttachedMediaInfos(const UpdateAttachedMediaInfosRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateAttachedMediaInfosOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateAttachedMediaInfosOutcome(UpdateAttachedMediaInfosResult(outcome.result())); - else - return UpdateAttachedMediaInfosOutcome(outcome.error()); -} - -void VodClient::updateAttachedMediaInfosAsync(const UpdateAttachedMediaInfosRequest& request, const UpdateAttachedMediaInfosAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateAttachedMediaInfos(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VodClient::UpdateAttachedMediaInfosOutcomeCallable VodClient::updateAttachedMediaInfosCallable(const UpdateAttachedMediaInfosRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateAttachedMediaInfos(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VodClient::ListLiveRecordVideoOutcome VodClient::listLiveRecordVideo(const ListLiveRecordVideoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1707,42 @@ VodClient::ListLiveRecordVideoOutcomeCallable VodClient::listLiveRecordVideoCall return task->get_future(); } +VodClient::UpdateAttachedMediaInfosOutcome VodClient::updateAttachedMediaInfos(const UpdateAttachedMediaInfosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAttachedMediaInfosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAttachedMediaInfosOutcome(UpdateAttachedMediaInfosResult(outcome.result())); + else + return UpdateAttachedMediaInfosOutcome(outcome.error()); +} + +void VodClient::updateAttachedMediaInfosAsync(const UpdateAttachedMediaInfosRequest& request, const UpdateAttachedMediaInfosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAttachedMediaInfos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::UpdateAttachedMediaInfosOutcomeCallable VodClient::updateAttachedMediaInfosCallable(const UpdateAttachedMediaInfosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAttachedMediaInfos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::DescribePlayVideoStatisOutcome VodClient::describePlayVideoStatis(const DescribePlayVideoStatisRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,42 +1851,6 @@ VodClient::DeleteStreamOutcomeCallable VodClient::deleteStreamCallable(const Del return task->get_future(); } -VodClient::UploadMediaByURLOutcome VodClient::uploadMediaByURL(const UploadMediaByURLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UploadMediaByURLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UploadMediaByURLOutcome(UploadMediaByURLResult(outcome.result())); - else - return UploadMediaByURLOutcome(outcome.error()); -} - -void VodClient::uploadMediaByURLAsync(const UploadMediaByURLRequest& request, const UploadMediaByURLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uploadMediaByURL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VodClient::UploadMediaByURLOutcomeCallable VodClient::uploadMediaByURLCallable(const UploadMediaByURLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uploadMediaByURL(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VodClient::UpdateAppInfoOutcome VodClient::updateAppInfo(const UpdateAppInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +1887,42 @@ VodClient::UpdateAppInfoOutcomeCallable VodClient::updateAppInfoCallable(const U return task->get_future(); } +VodClient::UploadMediaByURLOutcome VodClient::uploadMediaByURL(const UploadMediaByURLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadMediaByURLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadMediaByURLOutcome(UploadMediaByURLResult(outcome.result())); + else + return UploadMediaByURLOutcome(outcome.error()); +} + +void VodClient::uploadMediaByURLAsync(const UploadMediaByURLRequest& request, const UploadMediaByURLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadMediaByURL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::UploadMediaByURLOutcomeCallable VodClient::uploadMediaByURLCallable(const UploadMediaByURLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadMediaByURL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::DescribeVodDomainBpsDataOutcome VodClient::describeVodDomainBpsData(const DescribeVodDomainBpsDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1815,36 +1995,36 @@ VodClient::GetPlayInfoOutcomeCallable VodClient::getPlayInfoCallable(const GetPl return task->get_future(); } -VodClient::AddEditingProjectOutcome VodClient::addEditingProject(const AddEditingProjectRequest &request) const +VodClient::UpdateVodDomainOutcome VodClient::updateVodDomain(const UpdateVodDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddEditingProjectOutcome(endpointOutcome.error()); + return UpdateVodDomainOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddEditingProjectOutcome(AddEditingProjectResult(outcome.result())); + return UpdateVodDomainOutcome(UpdateVodDomainResult(outcome.result())); else - return AddEditingProjectOutcome(outcome.error()); + return UpdateVodDomainOutcome(outcome.error()); } -void VodClient::addEditingProjectAsync(const AddEditingProjectRequest& request, const AddEditingProjectAsyncHandler& handler, const std::shared_ptr& context) const +void VodClient::updateVodDomainAsync(const UpdateVodDomainRequest& request, const UpdateVodDomainAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addEditingProject(request), context); + handler(this, request, updateVodDomain(request), context); }; asyncExecute(new Runnable(fn)); } -VodClient::AddEditingProjectOutcomeCallable VodClient::addEditingProjectCallable(const AddEditingProjectRequest &request) const +VodClient::UpdateVodDomainOutcomeCallable VodClient::updateVodDomainCallable(const UpdateVodDomainRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addEditingProject(request); + return this->updateVodDomain(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1887,6 +2067,42 @@ VodClient::DeleteMezzaninesOutcomeCallable VodClient::deleteMezzaninesCallable(c return task->get_future(); } +VodClient::AddEditingProjectOutcome VodClient::addEditingProject(const AddEditingProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddEditingProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddEditingProjectOutcome(AddEditingProjectResult(outcome.result())); + else + return AddEditingProjectOutcome(outcome.error()); +} + +void VodClient::addEditingProjectAsync(const AddEditingProjectRequest& request, const AddEditingProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addEditingProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::AddEditingProjectOutcomeCallable VodClient::addEditingProjectCallable(const AddEditingProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addEditingProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::GetUploadDetailsOutcome VodClient::getUploadDetails(const GetUploadDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,42 +2139,6 @@ VodClient::GetUploadDetailsOutcomeCallable VodClient::getUploadDetailsCallable(c return task->get_future(); } -VodClient::DeleteTranscodeTemplateGroupOutcome VodClient::deleteTranscodeTemplateGroup(const DeleteTranscodeTemplateGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteTranscodeTemplateGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteTranscodeTemplateGroupOutcome(DeleteTranscodeTemplateGroupResult(outcome.result())); - else - return DeleteTranscodeTemplateGroupOutcome(outcome.error()); -} - -void VodClient::deleteTranscodeTemplateGroupAsync(const DeleteTranscodeTemplateGroupRequest& request, const DeleteTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteTranscodeTemplateGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VodClient::DeleteTranscodeTemplateGroupOutcomeCallable VodClient::deleteTranscodeTemplateGroupCallable(const DeleteTranscodeTemplateGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteTranscodeTemplateGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VodClient::GetAttachedMediaInfoOutcome VodClient::getAttachedMediaInfo(const GetAttachedMediaInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2175,78 @@ VodClient::GetAttachedMediaInfoOutcomeCallable VodClient::getAttachedMediaInfoCa return task->get_future(); } +VodClient::DeleteTranscodeTemplateGroupOutcome VodClient::deleteTranscodeTemplateGroup(const DeleteTranscodeTemplateGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTranscodeTemplateGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTranscodeTemplateGroupOutcome(DeleteTranscodeTemplateGroupResult(outcome.result())); + else + return DeleteTranscodeTemplateGroupOutcome(outcome.error()); +} + +void VodClient::deleteTranscodeTemplateGroupAsync(const DeleteTranscodeTemplateGroupRequest& request, const DeleteTranscodeTemplateGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTranscodeTemplateGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DeleteTranscodeTemplateGroupOutcomeCallable VodClient::deleteTranscodeTemplateGroupCallable(const DeleteTranscodeTemplateGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTranscodeTemplateGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VodClient::DeleteVodSpecificConfigOutcome VodClient::deleteVodSpecificConfig(const DeleteVodSpecificConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVodSpecificConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVodSpecificConfigOutcome(DeleteVodSpecificConfigResult(outcome.result())); + else + return DeleteVodSpecificConfigOutcome(outcome.error()); +} + +void VodClient::deleteVodSpecificConfigAsync(const DeleteVodSpecificConfigRequest& request, const DeleteVodSpecificConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVodSpecificConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DeleteVodSpecificConfigOutcomeCallable VodClient::deleteVodSpecificConfigCallable(const DeleteVodSpecificConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVodSpecificConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::AddTranscodeTemplateGroupOutcome VodClient::addTranscodeTemplateGroup(const AddTranscodeTemplateGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2283,42 @@ VodClient::AddTranscodeTemplateGroupOutcomeCallable VodClient::addTranscodeTempl return task->get_future(); } +VodClient::DescribeVodCertificateListOutcome VodClient::describeVodCertificateList(const DescribeVodCertificateListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVodCertificateListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVodCertificateListOutcome(DescribeVodCertificateListResult(outcome.result())); + else + return DescribeVodCertificateListOutcome(outcome.error()); +} + +void VodClient::describeVodCertificateListAsync(const DescribeVodCertificateListRequest& request, const DescribeVodCertificateListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVodCertificateList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DescribeVodCertificateListOutcomeCallable VodClient::describeVodCertificateListCallable(const DescribeVodCertificateListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVodCertificateList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::SetEditingProjectMaterialsOutcome VodClient::setEditingProjectMaterials(const SetEditingProjectMaterialsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2823,6 +3111,42 @@ VodClient::CreateAppInfoOutcomeCallable VodClient::createAppInfoCallable(const C return task->get_future(); } +VodClient::DescribeVodDomainConfigsOutcome VodClient::describeVodDomainConfigs(const DescribeVodDomainConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVodDomainConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVodDomainConfigsOutcome(DescribeVodDomainConfigsResult(outcome.result())); + else + return DescribeVodDomainConfigsOutcome(outcome.error()); +} + +void VodClient::describeVodDomainConfigsAsync(const DescribeVodDomainConfigsRequest& request, const DescribeVodDomainConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVodDomainConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DescribeVodDomainConfigsOutcomeCallable VodClient::describeVodDomainConfigsCallable(const DescribeVodDomainConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVodDomainConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::DeleteWatermarkOutcome VodClient::deleteWatermark(const DeleteWatermarkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3183,78 @@ VodClient::DeleteWatermarkOutcomeCallable VodClient::deleteWatermarkCallable(con return task->get_future(); } +VodClient::BatchStopVodDomainOutcome VodClient::batchStopVodDomain(const BatchStopVodDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchStopVodDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchStopVodDomainOutcome(BatchStopVodDomainResult(outcome.result())); + else + return BatchStopVodDomainOutcome(outcome.error()); +} + +void VodClient::batchStopVodDomainAsync(const BatchStopVodDomainRequest& request, const BatchStopVodDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchStopVodDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::BatchStopVodDomainOutcomeCallable VodClient::batchStopVodDomainCallable(const BatchStopVodDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchStopVodDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VodClient::ModifyVodDomainSchdmByPropertyOutcome VodClient::modifyVodDomainSchdmByProperty(const ModifyVodDomainSchdmByPropertyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVodDomainSchdmByPropertyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVodDomainSchdmByPropertyOutcome(ModifyVodDomainSchdmByPropertyResult(outcome.result())); + else + return ModifyVodDomainSchdmByPropertyOutcome(outcome.error()); +} + +void VodClient::modifyVodDomainSchdmByPropertyAsync(const ModifyVodDomainSchdmByPropertyRequest& request, const ModifyVodDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVodDomainSchdmByProperty(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::ModifyVodDomainSchdmByPropertyOutcomeCallable VodClient::modifyVodDomainSchdmByPropertyCallable(const ModifyVodDomainSchdmByPropertyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVodDomainSchdmByProperty(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::ListTranscodeTemplateGroupOutcome VodClient::listTranscodeTemplateGroup(const ListTranscodeTemplateGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,6 +3363,42 @@ VodClient::GetAIVideoTagResultOutcomeCallable VodClient::getAIVideoTagResultCall return task->get_future(); } +VodClient::BatchStartVodDomainOutcome VodClient::batchStartVodDomain(const BatchStartVodDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchStartVodDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchStartVodDomainOutcome(BatchStartVodDomainResult(outcome.result())); + else + return BatchStartVodDomainOutcome(outcome.error()); +} + +void VodClient::batchStartVodDomainAsync(const BatchStartVodDomainRequest& request, const BatchStartVodDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchStartVodDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::BatchStartVodDomainOutcomeCallable VodClient::batchStartVodDomainCallable(const BatchStartVodDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchStartVodDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::SubmitPreprocessJobsOutcome VodClient::submitPreprocessJobs(const SubmitPreprocessJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3435,6 +3867,42 @@ VodClient::SearchEditingProjectOutcomeCallable VodClient::searchEditingProjectCa return task->get_future(); } +VodClient::DescribeVodUserDomainsOutcome VodClient::describeVodUserDomains(const DescribeVodUserDomainsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVodUserDomainsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVodUserDomainsOutcome(DescribeVodUserDomainsResult(outcome.result())); + else + return DescribeVodUserDomainsOutcome(outcome.error()); +} + +void VodClient::describeVodUserDomainsAsync(const DescribeVodUserDomainsRequest& request, const DescribeVodUserDomainsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVodUserDomains(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DescribeVodUserDomainsOutcomeCallable VodClient::describeVodUserDomainsCallable(const DescribeVodUserDomainsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVodUserDomains(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::GetImageInfoOutcome VodClient::getImageInfo(const GetImageInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,42 +3975,6 @@ VodClient::UpdateWatermarkOutcomeCallable VodClient::updateWatermarkCallable(con return task->get_future(); } -VodClient::GetMessageCallbackOutcome VodClient::getMessageCallback(const GetMessageCallbackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetMessageCallbackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetMessageCallbackOutcome(GetMessageCallbackResult(outcome.result())); - else - return GetMessageCallbackOutcome(outcome.error()); -} - -void VodClient::getMessageCallbackAsync(const GetMessageCallbackRequest& request, const GetMessageCallbackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getMessageCallback(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VodClient::GetMessageCallbackOutcomeCallable VodClient::getMessageCallbackCallable(const GetMessageCallbackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getMessageCallback(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VodClient::MoveAppResourceOutcome VodClient::moveAppResource(const MoveAppResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +4011,42 @@ VodClient::MoveAppResourceOutcomeCallable VodClient::moveAppResourceCallable(con return task->get_future(); } +VodClient::GetMessageCallbackOutcome VodClient::getMessageCallback(const GetMessageCallbackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMessageCallbackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMessageCallbackOutcome(GetMessageCallbackResult(outcome.result())); + else + return GetMessageCallbackOutcome(outcome.error()); +} + +void VodClient::getMessageCallbackAsync(const GetMessageCallbackRequest& request, const GetMessageCallbackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMessageCallback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::GetMessageCallbackOutcomeCallable VodClient::getMessageCallbackCallable(const GetMessageCallbackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMessageCallback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::GetCategoriesOutcome VodClient::getCategories(const GetCategoriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3723,6 +4191,42 @@ VodClient::SubmitTranscodeJobsOutcomeCallable VodClient::submitTranscodeJobsCall return task->get_future(); } +VodClient::AddVodDomainOutcome VodClient::addVodDomain(const AddVodDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddVodDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddVodDomainOutcome(AddVodDomainResult(outcome.result())); + else + return AddVodDomainOutcome(outcome.error()); +} + +void VodClient::addVodDomainAsync(const AddVodDomainRequest& request, const AddVodDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addVodDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::AddVodDomainOutcomeCallable VodClient::addVodDomainCallable(const AddVodDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addVodDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::CreateUploadVideoOutcome VodClient::createUploadVideo(const CreateUploadVideoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/vod/src/model/AddAITemplateResult.cc b/vod/src/model/AddAITemplateResult.cc index c9f18c479..ce514b6b5 100644 --- a/vod/src/model/AddAITemplateResult.cc +++ b/vod/src/model/AddAITemplateResult.cc @@ -35,10 +35,13 @@ AddAITemplateResult::~AddAITemplateResult() void AddAITemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/vod/src/model/AddCategoryResult.cc b/vod/src/model/AddCategoryResult.cc index fd1ecb985..cd2db882c 100644 --- a/vod/src/model/AddCategoryResult.cc +++ b/vod/src/model/AddCategoryResult.cc @@ -35,10 +35,13 @@ AddCategoryResult::~AddCategoryResult() void AddCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto categoryNode = value["Category"]; if(!categoryNode["CateId"].isNull()) diff --git a/vod/src/model/AddEditingProjectResult.cc b/vod/src/model/AddEditingProjectResult.cc index 3d58adfd2..c321127ef 100644 --- a/vod/src/model/AddEditingProjectResult.cc +++ b/vod/src/model/AddEditingProjectResult.cc @@ -35,10 +35,13 @@ AddEditingProjectResult::~AddEditingProjectResult() void AddEditingProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto projectNode = value["Project"]; if(!projectNode["ProjectId"].isNull()) diff --git a/vod/src/model/AddTranscodeTemplateGroupResult.cc b/vod/src/model/AddTranscodeTemplateGroupResult.cc index 65b05c0eb..7927e75bd 100644 --- a/vod/src/model/AddTranscodeTemplateGroupResult.cc +++ b/vod/src/model/AddTranscodeTemplateGroupResult.cc @@ -35,10 +35,13 @@ AddTranscodeTemplateGroupResult::~AddTranscodeTemplateGroupResult() void AddTranscodeTemplateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TranscodeTemplateGroupId"].isNull()) transcodeTemplateGroupId_ = value["TranscodeTemplateGroupId"].asString(); diff --git a/vod/src/model/AddVodDomainResult.cc b/vod/src/model/AddVodDomainResult.cc index 6e6769dcb..66d36b11a 100644 --- a/vod/src/model/AddVodDomainResult.cc +++ b/vod/src/model/AddVodDomainResult.cc @@ -35,10 +35,13 @@ AddVodDomainResult::~AddVodDomainResult() void AddVodDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/AddVodTemplateResult.cc b/vod/src/model/AddVodTemplateResult.cc index 6b6401dcf..b96b94c19 100644 --- a/vod/src/model/AddVodTemplateResult.cc +++ b/vod/src/model/AddVodTemplateResult.cc @@ -35,10 +35,13 @@ AddVodTemplateResult::~AddVodTemplateResult() void AddVodTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VodTemplateId"].isNull()) vodTemplateId_ = value["VodTemplateId"].asString(); diff --git a/vod/src/model/AddWatermarkResult.cc b/vod/src/model/AddWatermarkResult.cc index e9f6816a8..f0b796485 100644 --- a/vod/src/model/AddWatermarkResult.cc +++ b/vod/src/model/AddWatermarkResult.cc @@ -35,10 +35,13 @@ AddWatermarkResult::~AddWatermarkResult() void AddWatermarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto watermarkInfoNode = value["WatermarkInfo"]; if(!watermarkInfoNode["CreationTime"].isNull()) diff --git a/vod/src/model/AttachAppPolicyToIdentityResult.cc b/vod/src/model/AttachAppPolicyToIdentityResult.cc index 96b981bd7..b0cf6f162 100644 --- a/vod/src/model/AttachAppPolicyToIdentityResult.cc +++ b/vod/src/model/AttachAppPolicyToIdentityResult.cc @@ -35,10 +35,13 @@ AttachAppPolicyToIdentityResult::~AttachAppPolicyToIdentityResult() void AttachAppPolicyToIdentityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistPolicyNames = value["NonExistPolicyNames"]["PolicyName"]; for (const auto &item : allNonExistPolicyNames) diff --git a/vod/src/model/BatchSetVodDomainConfigsResult.cc b/vod/src/model/BatchSetVodDomainConfigsResult.cc index 50b78f991..5724bf5b4 100644 --- a/vod/src/model/BatchSetVodDomainConfigsResult.cc +++ b/vod/src/model/BatchSetVodDomainConfigsResult.cc @@ -35,10 +35,13 @@ BatchSetVodDomainConfigsResult::~BatchSetVodDomainConfigsResult() void BatchSetVodDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/BatchStartVodDomainResult.cc b/vod/src/model/BatchStartVodDomainResult.cc index df0a319fd..a6799f897 100644 --- a/vod/src/model/BatchStartVodDomainResult.cc +++ b/vod/src/model/BatchStartVodDomainResult.cc @@ -35,10 +35,13 @@ BatchStartVodDomainResult::~BatchStartVodDomainResult() void BatchStartVodDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/BatchStopVodDomainResult.cc b/vod/src/model/BatchStopVodDomainResult.cc index 0844943ae..a43603324 100644 --- a/vod/src/model/BatchStopVodDomainResult.cc +++ b/vod/src/model/BatchStopVodDomainResult.cc @@ -35,10 +35,13 @@ BatchStopVodDomainResult::~BatchStopVodDomainResult() void BatchStopVodDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/CreateAppInfoResult.cc b/vod/src/model/CreateAppInfoResult.cc index 7652f5443..dcc6cbc53 100644 --- a/vod/src/model/CreateAppInfoResult.cc +++ b/vod/src/model/CreateAppInfoResult.cc @@ -35,10 +35,13 @@ CreateAppInfoResult::~CreateAppInfoResult() void CreateAppInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AppId"].isNull()) appId_ = value["AppId"].asString(); diff --git a/vod/src/model/CreateAuditResult.cc b/vod/src/model/CreateAuditResult.cc index 372487dec..270fc0ce1 100644 --- a/vod/src/model/CreateAuditResult.cc +++ b/vod/src/model/CreateAuditResult.cc @@ -35,10 +35,13 @@ CreateAuditResult::~CreateAuditResult() void CreateAuditResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/CreateUploadAttachedMediaResult.cc b/vod/src/model/CreateUploadAttachedMediaResult.cc index 7be3eab1c..7abf7cd41 100644 --- a/vod/src/model/CreateUploadAttachedMediaResult.cc +++ b/vod/src/model/CreateUploadAttachedMediaResult.cc @@ -35,10 +35,13 @@ CreateUploadAttachedMediaResult::~CreateUploadAttachedMediaResult() void CreateUploadAttachedMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MediaId"].isNull()) mediaId_ = value["MediaId"].asString(); diff --git a/vod/src/model/CreateUploadImageResult.cc b/vod/src/model/CreateUploadImageResult.cc index 0cb0e8d34..efb043fd8 100644 --- a/vod/src/model/CreateUploadImageResult.cc +++ b/vod/src/model/CreateUploadImageResult.cc @@ -35,10 +35,13 @@ CreateUploadImageResult::~CreateUploadImageResult() void CreateUploadImageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); diff --git a/vod/src/model/CreateUploadVideoResult.cc b/vod/src/model/CreateUploadVideoResult.cc index e8e846a31..41f64adf7 100644 --- a/vod/src/model/CreateUploadVideoResult.cc +++ b/vod/src/model/CreateUploadVideoResult.cc @@ -35,10 +35,13 @@ CreateUploadVideoResult::~CreateUploadVideoResult() void CreateUploadVideoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VideoId"].isNull()) videoId_ = value["VideoId"].asString(); diff --git a/vod/src/model/DeleteAITemplateResult.cc b/vod/src/model/DeleteAITemplateResult.cc index 2e1c50c35..4b253d735 100644 --- a/vod/src/model/DeleteAITemplateResult.cc +++ b/vod/src/model/DeleteAITemplateResult.cc @@ -35,10 +35,13 @@ DeleteAITemplateResult::~DeleteAITemplateResult() void DeleteAITemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/vod/src/model/DeleteAppInfoResult.cc b/vod/src/model/DeleteAppInfoResult.cc index 05b340e50..2e565b3be 100644 --- a/vod/src/model/DeleteAppInfoResult.cc +++ b/vod/src/model/DeleteAppInfoResult.cc @@ -35,10 +35,13 @@ DeleteAppInfoResult::~DeleteAppInfoResult() void DeleteAppInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteAttachedMediaResult.cc b/vod/src/model/DeleteAttachedMediaResult.cc index ad456b60a..15de980bb 100644 --- a/vod/src/model/DeleteAttachedMediaResult.cc +++ b/vod/src/model/DeleteAttachedMediaResult.cc @@ -35,10 +35,13 @@ DeleteAttachedMediaResult::~DeleteAttachedMediaResult() void DeleteAttachedMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistMediaIds = value["NonExistMediaIds"]["MeidaId"]; for (const auto &item : allNonExistMediaIds) diff --git a/vod/src/model/DeleteCategoryResult.cc b/vod/src/model/DeleteCategoryResult.cc index f21d202f4..4473e926b 100644 --- a/vod/src/model/DeleteCategoryResult.cc +++ b/vod/src/model/DeleteCategoryResult.cc @@ -35,10 +35,13 @@ DeleteCategoryResult::~DeleteCategoryResult() void DeleteCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteEditingProjectResult.cc b/vod/src/model/DeleteEditingProjectResult.cc index e844a6e5c..03acb673e 100644 --- a/vod/src/model/DeleteEditingProjectResult.cc +++ b/vod/src/model/DeleteEditingProjectResult.cc @@ -35,10 +35,13 @@ DeleteEditingProjectResult::~DeleteEditingProjectResult() void DeleteEditingProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteImageResult.cc b/vod/src/model/DeleteImageResult.cc index aa310804b..79acf0e03 100644 --- a/vod/src/model/DeleteImageResult.cc +++ b/vod/src/model/DeleteImageResult.cc @@ -35,10 +35,13 @@ DeleteImageResult::~DeleteImageResult() void DeleteImageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteMessageCallbackResult.cc b/vod/src/model/DeleteMessageCallbackResult.cc index 6e46bafd0..97351f1a5 100644 --- a/vod/src/model/DeleteMessageCallbackResult.cc +++ b/vod/src/model/DeleteMessageCallbackResult.cc @@ -35,10 +35,13 @@ DeleteMessageCallbackResult::~DeleteMessageCallbackResult() void DeleteMessageCallbackResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteMezzaninesResult.cc b/vod/src/model/DeleteMezzaninesResult.cc index f8ec7d0c5..5a1013472 100644 --- a/vod/src/model/DeleteMezzaninesResult.cc +++ b/vod/src/model/DeleteMezzaninesResult.cc @@ -35,10 +35,13 @@ DeleteMezzaninesResult::~DeleteMezzaninesResult() void DeleteMezzaninesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistVideoIds = value["NonExistVideoIds"]["VideoId"]; for (const auto &item : allNonExistVideoIds) diff --git a/vod/src/model/DeleteMultipartUploadResult.cc b/vod/src/model/DeleteMultipartUploadResult.cc index 8213010e2..2e21d66ff 100644 --- a/vod/src/model/DeleteMultipartUploadResult.cc +++ b/vod/src/model/DeleteMultipartUploadResult.cc @@ -35,10 +35,13 @@ DeleteMultipartUploadResult::~DeleteMultipartUploadResult() void DeleteMultipartUploadResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteStreamResult.cc b/vod/src/model/DeleteStreamResult.cc index 8205b59cf..15056e35d 100644 --- a/vod/src/model/DeleteStreamResult.cc +++ b/vod/src/model/DeleteStreamResult.cc @@ -35,10 +35,13 @@ DeleteStreamResult::~DeleteStreamResult() void DeleteStreamResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteTranscodeTemplateGroupResult.cc b/vod/src/model/DeleteTranscodeTemplateGroupResult.cc index 6e0fab39f..6920ee8f2 100644 --- a/vod/src/model/DeleteTranscodeTemplateGroupResult.cc +++ b/vod/src/model/DeleteTranscodeTemplateGroupResult.cc @@ -35,10 +35,13 @@ DeleteTranscodeTemplateGroupResult::~DeleteTranscodeTemplateGroupResult() void DeleteTranscodeTemplateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistTranscodeTemplateIds = value["NonExistTranscodeTemplateIds"]["TranscodeTemplateId"]; for (const auto &item : allNonExistTranscodeTemplateIds) diff --git a/vod/src/model/DeleteVideoResult.cc b/vod/src/model/DeleteVideoResult.cc index 8c36ae7a0..ae45f9e91 100644 --- a/vod/src/model/DeleteVideoResult.cc +++ b/vod/src/model/DeleteVideoResult.cc @@ -35,10 +35,13 @@ DeleteVideoResult::~DeleteVideoResult() void DeleteVideoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistVideoIds = value["NonExistVideoIds"]["VideoId"]; for (const auto &item : allNonExistVideoIds) diff --git a/vod/src/model/DeleteVodDomainResult.cc b/vod/src/model/DeleteVodDomainResult.cc index 94c2a2616..094d5ad80 100644 --- a/vod/src/model/DeleteVodDomainResult.cc +++ b/vod/src/model/DeleteVodDomainResult.cc @@ -35,10 +35,13 @@ DeleteVodDomainResult::~DeleteVodDomainResult() void DeleteVodDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteVodSpecificConfigResult.cc b/vod/src/model/DeleteVodSpecificConfigResult.cc index 001eeef88..838c9da84 100644 --- a/vod/src/model/DeleteVodSpecificConfigResult.cc +++ b/vod/src/model/DeleteVodSpecificConfigResult.cc @@ -35,10 +35,13 @@ DeleteVodSpecificConfigResult::~DeleteVodSpecificConfigResult() void DeleteVodSpecificConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DeleteVodTemplateResult.cc b/vod/src/model/DeleteVodTemplateResult.cc index 18cf24954..0399ad6fb 100644 --- a/vod/src/model/DeleteVodTemplateResult.cc +++ b/vod/src/model/DeleteVodTemplateResult.cc @@ -35,10 +35,13 @@ DeleteVodTemplateResult::~DeleteVodTemplateResult() void DeleteVodTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VodTemplateId"].isNull()) vodTemplateId_ = value["VodTemplateId"].asString(); diff --git a/vod/src/model/DeleteWatermarkResult.cc b/vod/src/model/DeleteWatermarkResult.cc index 75521a171..bb844bc67 100644 --- a/vod/src/model/DeleteWatermarkResult.cc +++ b/vod/src/model/DeleteWatermarkResult.cc @@ -35,10 +35,13 @@ DeleteWatermarkResult::~DeleteWatermarkResult() void DeleteWatermarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/DescribePlayTopVideosResult.cc b/vod/src/model/DescribePlayTopVideosResult.cc index f64dfbe63..3fe42098d 100644 --- a/vod/src/model/DescribePlayTopVideosResult.cc +++ b/vod/src/model/DescribePlayTopVideosResult.cc @@ -35,10 +35,13 @@ DescribePlayTopVideosResult::~DescribePlayTopVideosResult() void DescribePlayTopVideosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTopPlayVideos = value["TopPlayVideos"]["TopPlayVideoStatis"]; for (auto value : allTopPlayVideos) diff --git a/vod/src/model/DescribePlayUserAvgResult.cc b/vod/src/model/DescribePlayUserAvgResult.cc index 1226c72cc..814ec0a8e 100644 --- a/vod/src/model/DescribePlayUserAvgResult.cc +++ b/vod/src/model/DescribePlayUserAvgResult.cc @@ -35,10 +35,13 @@ DescribePlayUserAvgResult::~DescribePlayUserAvgResult() void DescribePlayUserAvgResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserPlayStatisAvgs = value["UserPlayStatisAvgs"]["UserPlayStatisAvg"]; for (auto value : allUserPlayStatisAvgs) diff --git a/vod/src/model/DescribePlayUserTotalResult.cc b/vod/src/model/DescribePlayUserTotalResult.cc index 0cbec72a5..a1ad2051b 100644 --- a/vod/src/model/DescribePlayUserTotalResult.cc +++ b/vod/src/model/DescribePlayUserTotalResult.cc @@ -35,10 +35,13 @@ DescribePlayUserTotalResult::~DescribePlayUserTotalResult() void DescribePlayUserTotalResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUserPlayStatisTotals = value["UserPlayStatisTotals"]["UserPlayStatisTotal"]; for (auto value : allUserPlayStatisTotals) diff --git a/vod/src/model/DescribePlayVideoStatisResult.cc b/vod/src/model/DescribePlayVideoStatisResult.cc index e5498cd90..adf927d5b 100644 --- a/vod/src/model/DescribePlayVideoStatisResult.cc +++ b/vod/src/model/DescribePlayVideoStatisResult.cc @@ -35,10 +35,13 @@ DescribePlayVideoStatisResult::~DescribePlayVideoStatisResult() void DescribePlayVideoStatisResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVideoPlayStatisDetails = value["VideoPlayStatisDetails"]["VideoPlayStatisDetail"]; for (auto value : allVideoPlayStatisDetails) diff --git a/vod/src/model/DescribeVodAIDataResult.cc b/vod/src/model/DescribeVodAIDataResult.cc index c72327c1c..6a21731c1 100644 --- a/vod/src/model/DescribeVodAIDataResult.cc +++ b/vod/src/model/DescribeVodAIDataResult.cc @@ -35,10 +35,13 @@ DescribeVodAIDataResult::~DescribeVodAIDataResult() void DescribeVodAIDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAIData = value["AIData"]["AIDataItem"]; for (auto value : allAIData) diff --git a/vod/src/model/DescribeVodCertificateListResult.cc b/vod/src/model/DescribeVodCertificateListResult.cc index d9be60890..5a76d04bb 100644 --- a/vod/src/model/DescribeVodCertificateListResult.cc +++ b/vod/src/model/DescribeVodCertificateListResult.cc @@ -35,10 +35,13 @@ DescribeVodCertificateListResult::~DescribeVodCertificateListResult() void DescribeVodCertificateListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto certificateListModelNode = value["CertificateListModel"]; if(!certificateListModelNode["Count"].isNull()) diff --git a/vod/src/model/DescribeVodDomainBpsDataResult.cc b/vod/src/model/DescribeVodDomainBpsDataResult.cc index de7c3ff00..008adfe01 100644 --- a/vod/src/model/DescribeVodDomainBpsDataResult.cc +++ b/vod/src/model/DescribeVodDomainBpsDataResult.cc @@ -35,10 +35,13 @@ DescribeVodDomainBpsDataResult::~DescribeVodDomainBpsDataResult() void DescribeVodDomainBpsDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"]; for (auto value : allBpsDataPerInterval) diff --git a/vod/src/model/DescribeVodDomainCertificateInfoResult.cc b/vod/src/model/DescribeVodDomainCertificateInfoResult.cc index a0843734d..3cb3b9ec8 100644 --- a/vod/src/model/DescribeVodDomainCertificateInfoResult.cc +++ b/vod/src/model/DescribeVodDomainCertificateInfoResult.cc @@ -35,10 +35,13 @@ DescribeVodDomainCertificateInfoResult::~DescribeVodDomainCertificateInfoResult( void DescribeVodDomainCertificateInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCertInfos = value["CertInfos"]["CertInfo"]; for (auto value : allCertInfos) diff --git a/vod/src/model/DescribeVodDomainConfigsResult.cc b/vod/src/model/DescribeVodDomainConfigsResult.cc index f1b307ab6..ff3b635f1 100644 --- a/vod/src/model/DescribeVodDomainConfigsResult.cc +++ b/vod/src/model/DescribeVodDomainConfigsResult.cc @@ -35,10 +35,13 @@ DescribeVodDomainConfigsResult::~DescribeVodDomainConfigsResult() void DescribeVodDomainConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainConfigs = value["DomainConfigs"]["DomainConfig"]; for (auto value : allDomainConfigs) diff --git a/vod/src/model/DescribeVodDomainDetailResult.cc b/vod/src/model/DescribeVodDomainDetailResult.cc index ba5561cf1..849784b14 100644 --- a/vod/src/model/DescribeVodDomainDetailResult.cc +++ b/vod/src/model/DescribeVodDomainDetailResult.cc @@ -35,10 +35,13 @@ DescribeVodDomainDetailResult::~DescribeVodDomainDetailResult() void DescribeVodDomainDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto domainDetailNode = value["DomainDetail"]; if(!domainDetailNode["GmtCreated"].isNull()) diff --git a/vod/src/model/DescribeVodDomainLogResult.cc b/vod/src/model/DescribeVodDomainLogResult.cc index 2ee2d4057..ab4f64220 100644 --- a/vod/src/model/DescribeVodDomainLogResult.cc +++ b/vod/src/model/DescribeVodDomainLogResult.cc @@ -35,10 +35,13 @@ DescribeVodDomainLogResult::~DescribeVodDomainLogResult() void DescribeVodDomainLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"]; for (auto value : allDomainLogDetails) diff --git a/vod/src/model/DescribeVodDomainTrafficDataResult.cc b/vod/src/model/DescribeVodDomainTrafficDataResult.cc index 4ff97f465..a498e284c 100644 --- a/vod/src/model/DescribeVodDomainTrafficDataResult.cc +++ b/vod/src/model/DescribeVodDomainTrafficDataResult.cc @@ -35,10 +35,13 @@ DescribeVodDomainTrafficDataResult::~DescribeVodDomainTrafficDataResult() void DescribeVodDomainTrafficDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTrafficDataPerInterval = value["TrafficDataPerInterval"]["DataModule"]; for (auto value : allTrafficDataPerInterval) diff --git a/vod/src/model/DescribeVodDomainUsageDataResult.cc b/vod/src/model/DescribeVodDomainUsageDataResult.cc index d34c8975b..0d138eaf5 100644 --- a/vod/src/model/DescribeVodDomainUsageDataResult.cc +++ b/vod/src/model/DescribeVodDomainUsageDataResult.cc @@ -35,10 +35,13 @@ DescribeVodDomainUsageDataResult::~DescribeVodDomainUsageDataResult() void DescribeVodDomainUsageDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUsageDataPerInterval = value["UsageDataPerInterval"]["DataModule"]; for (auto value : allUsageDataPerInterval) diff --git a/vod/src/model/DescribeVodRefreshQuotaResult.cc b/vod/src/model/DescribeVodRefreshQuotaResult.cc index 2eda24148..1df179b1b 100644 --- a/vod/src/model/DescribeVodRefreshQuotaResult.cc +++ b/vod/src/model/DescribeVodRefreshQuotaResult.cc @@ -35,10 +35,13 @@ DescribeVodRefreshQuotaResult::~DescribeVodRefreshQuotaResult() void DescribeVodRefreshQuotaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["UrlQuota"].isNull()) urlQuota_ = value["UrlQuota"].asString(); diff --git a/vod/src/model/DescribeVodRefreshTasksResult.cc b/vod/src/model/DescribeVodRefreshTasksResult.cc index 5a05f7a7c..652b5a603 100644 --- a/vod/src/model/DescribeVodRefreshTasksResult.cc +++ b/vod/src/model/DescribeVodRefreshTasksResult.cc @@ -35,10 +35,13 @@ DescribeVodRefreshTasksResult::~DescribeVodRefreshTasksResult() void DescribeVodRefreshTasksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTasks = value["Tasks"]["Task"]; for (auto value : allTasks) diff --git a/vod/src/model/DescribeVodStorageDataResult.cc b/vod/src/model/DescribeVodStorageDataResult.cc index 08e96a96c..e7d93e045 100644 --- a/vod/src/model/DescribeVodStorageDataResult.cc +++ b/vod/src/model/DescribeVodStorageDataResult.cc @@ -35,10 +35,13 @@ DescribeVodStorageDataResult::~DescribeVodStorageDataResult() void DescribeVodStorageDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allStorageData = value["StorageData"]["StorageDataItem"]; for (auto value : allStorageData) diff --git a/vod/src/model/DescribeVodTranscodeDataResult.cc b/vod/src/model/DescribeVodTranscodeDataResult.cc index e2395c969..f275bdd6f 100644 --- a/vod/src/model/DescribeVodTranscodeDataResult.cc +++ b/vod/src/model/DescribeVodTranscodeDataResult.cc @@ -35,10 +35,13 @@ DescribeVodTranscodeDataResult::~DescribeVodTranscodeDataResult() void DescribeVodTranscodeDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTranscodeData = value["TranscodeData"]["TranscodeDataItem"]; for (auto value : allTranscodeData) diff --git a/vod/src/model/DescribeVodUserDomainsResult.cc b/vod/src/model/DescribeVodUserDomainsResult.cc index 316ce92bc..80908fccd 100644 --- a/vod/src/model/DescribeVodUserDomainsResult.cc +++ b/vod/src/model/DescribeVodUserDomainsResult.cc @@ -35,10 +35,13 @@ DescribeVodUserDomainsResult::~DescribeVodUserDomainsResult() void DescribeVodUserDomainsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDomains = value["Domains"]["PageData"]; for (auto value : allDomains) diff --git a/vod/src/model/DetachAppPolicyFromIdentityResult.cc b/vod/src/model/DetachAppPolicyFromIdentityResult.cc index de6ba1e46..c5a8c8187 100644 --- a/vod/src/model/DetachAppPolicyFromIdentityResult.cc +++ b/vod/src/model/DetachAppPolicyFromIdentityResult.cc @@ -35,10 +35,13 @@ DetachAppPolicyFromIdentityResult::~DetachAppPolicyFromIdentityResult() void DetachAppPolicyFromIdentityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistPolicyNames = value["NonExistPolicyNames"]["PolicyName"]; for (const auto &item : allNonExistPolicyNames) diff --git a/vod/src/model/GetAIMediaAuditJobResult.cc b/vod/src/model/GetAIMediaAuditJobResult.cc index c5531b110..93f56c84d 100644 --- a/vod/src/model/GetAIMediaAuditJobResult.cc +++ b/vod/src/model/GetAIMediaAuditJobResult.cc @@ -35,10 +35,13 @@ GetAIMediaAuditJobResult::~GetAIMediaAuditJobResult() void GetAIMediaAuditJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaAuditJobNode = value["MediaAuditJob"]; if(!mediaAuditJobNode["JobId"].isNull()) diff --git a/vod/src/model/GetAITemplateResult.cc b/vod/src/model/GetAITemplateResult.cc index 449562246..4381f4ef5 100644 --- a/vod/src/model/GetAITemplateResult.cc +++ b/vod/src/model/GetAITemplateResult.cc @@ -35,10 +35,13 @@ GetAITemplateResult::~GetAITemplateResult() void GetAITemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto templateInfoNode = value["TemplateInfo"]; if(!templateInfoNode["TemplateId"].isNull()) diff --git a/vod/src/model/GetAIVideoTagResultResult.cc b/vod/src/model/GetAIVideoTagResultResult.cc index 68b06c616..05c86002f 100644 --- a/vod/src/model/GetAIVideoTagResultResult.cc +++ b/vod/src/model/GetAIVideoTagResultResult.cc @@ -35,10 +35,13 @@ GetAIVideoTagResultResult::~GetAIVideoTagResultResult() void GetAIVideoTagResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto videoTagResultNode = value["VideoTagResult"]; auto allCategory = value["Category"]["CategoryItem"]; diff --git a/vod/src/model/GetAppInfosResult.cc b/vod/src/model/GetAppInfosResult.cc index c95db6693..f426904ac 100644 --- a/vod/src/model/GetAppInfosResult.cc +++ b/vod/src/model/GetAppInfosResult.cc @@ -35,10 +35,13 @@ GetAppInfosResult::~GetAppInfosResult() void GetAppInfosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppInfoList = value["AppInfoList"]["AppInfo"]; for (auto value : allAppInfoList) diff --git a/vod/src/model/GetAttachedMediaInfoResult.cc b/vod/src/model/GetAttachedMediaInfoResult.cc index 4bd5c0f19..78bad2d66 100644 --- a/vod/src/model/GetAttachedMediaInfoResult.cc +++ b/vod/src/model/GetAttachedMediaInfoResult.cc @@ -35,10 +35,13 @@ GetAttachedMediaInfoResult::~GetAttachedMediaInfoResult() void GetAttachedMediaInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAttachedMediaList = value["AttachedMediaList"]["AttachedMedia"]; for (auto value : allAttachedMediaList) diff --git a/vod/src/model/GetAuditHistoryResult.cc b/vod/src/model/GetAuditHistoryResult.cc index ad3cd7453..d3c6c702b 100644 --- a/vod/src/model/GetAuditHistoryResult.cc +++ b/vod/src/model/GetAuditHistoryResult.cc @@ -35,10 +35,13 @@ GetAuditHistoryResult::~GetAuditHistoryResult() void GetAuditHistoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHistories = value["Histories"]["History"]; for (auto value : allHistories) diff --git a/vod/src/model/GetCategoriesResult.cc b/vod/src/model/GetCategoriesResult.cc index 3f883e238..f1f7bcd7a 100644 --- a/vod/src/model/GetCategoriesResult.cc +++ b/vod/src/model/GetCategoriesResult.cc @@ -35,10 +35,13 @@ GetCategoriesResult::~GetCategoriesResult() void GetCategoriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSubCategories = value["SubCategories"]["Category"]; for (auto value : allSubCategories) diff --git a/vod/src/model/GetDefaultAITemplateResult.cc b/vod/src/model/GetDefaultAITemplateResult.cc index 495611e0e..9704d8c2f 100644 --- a/vod/src/model/GetDefaultAITemplateResult.cc +++ b/vod/src/model/GetDefaultAITemplateResult.cc @@ -35,10 +35,13 @@ GetDefaultAITemplateResult::~GetDefaultAITemplateResult() void GetDefaultAITemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto templateInfoNode = value["TemplateInfo"]; if(!templateInfoNode["TemplateId"].isNull()) diff --git a/vod/src/model/GetEditingProjectMaterialsResult.cc b/vod/src/model/GetEditingProjectMaterialsResult.cc index 9a075a2fc..b14cc4f74 100644 --- a/vod/src/model/GetEditingProjectMaterialsResult.cc +++ b/vod/src/model/GetEditingProjectMaterialsResult.cc @@ -35,10 +35,13 @@ GetEditingProjectMaterialsResult::~GetEditingProjectMaterialsResult() void GetEditingProjectMaterialsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMaterialList = value["MaterialList"]["Material"]; for (auto value : allMaterialList) diff --git a/vod/src/model/GetEditingProjectResult.cc b/vod/src/model/GetEditingProjectResult.cc index dca6b50fb..9f6e6c3ac 100644 --- a/vod/src/model/GetEditingProjectResult.cc +++ b/vod/src/model/GetEditingProjectResult.cc @@ -35,10 +35,13 @@ GetEditingProjectResult::~GetEditingProjectResult() void GetEditingProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto projectNode = value["Project"]; if(!projectNode["ProjectId"].isNull()) diff --git a/vod/src/model/GetImageInfoResult.cc b/vod/src/model/GetImageInfoResult.cc index ec58cc590..af3030f4a 100644 --- a/vod/src/model/GetImageInfoResult.cc +++ b/vod/src/model/GetImageInfoResult.cc @@ -35,10 +35,13 @@ GetImageInfoResult::~GetImageInfoResult() void GetImageInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto imageInfoNode = value["ImageInfo"]; if(!imageInfoNode["ImageId"].isNull()) diff --git a/vod/src/model/GetMediaAuditResultDetailResult.cc b/vod/src/model/GetMediaAuditResultDetailResult.cc index efaae6ecf..5cddea8e8 100644 --- a/vod/src/model/GetMediaAuditResultDetailResult.cc +++ b/vod/src/model/GetMediaAuditResultDetailResult.cc @@ -35,10 +35,13 @@ GetMediaAuditResultDetailResult::~GetMediaAuditResultDetailResult() void GetMediaAuditResultDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaAuditResultDetailNode = value["MediaAuditResultDetail"]; if(!mediaAuditResultDetailNode["Total"].isNull()) diff --git a/vod/src/model/GetMediaAuditResultResult.cc b/vod/src/model/GetMediaAuditResultResult.cc index efbba6a04..9033f965d 100644 --- a/vod/src/model/GetMediaAuditResultResult.cc +++ b/vod/src/model/GetMediaAuditResultResult.cc @@ -35,10 +35,13 @@ GetMediaAuditResultResult::~GetMediaAuditResultResult() void GetMediaAuditResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaAuditResultNode = value["MediaAuditResult"]; if(!mediaAuditResultNode["AbnormalModules"].isNull()) diff --git a/vod/src/model/GetMediaAuditResultTimelineResult.cc b/vod/src/model/GetMediaAuditResultTimelineResult.cc index 9f4671e31..bb3565c3f 100644 --- a/vod/src/model/GetMediaAuditResultTimelineResult.cc +++ b/vod/src/model/GetMediaAuditResultTimelineResult.cc @@ -35,10 +35,13 @@ GetMediaAuditResultTimelineResult::~GetMediaAuditResultTimelineResult() void GetMediaAuditResultTimelineResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaAuditResultTimelineNode = value["MediaAuditResultTimeline"]; auto allPorn = value["Porn"]["PornItem"]; diff --git a/vod/src/model/GetMediaDNAResultResult.cc b/vod/src/model/GetMediaDNAResultResult.cc index 826b33026..20ec55370 100644 --- a/vod/src/model/GetMediaDNAResultResult.cc +++ b/vod/src/model/GetMediaDNAResultResult.cc @@ -35,10 +35,13 @@ GetMediaDNAResultResult::~GetMediaDNAResultResult() void GetMediaDNAResultResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dNAResultNode = value["DNAResult"]; auto allVideoDNA = value["VideoDNA"]["VideoDNAItem"]; diff --git a/vod/src/model/GetMessageCallbackResult.cc b/vod/src/model/GetMessageCallbackResult.cc index 15d64243c..18d49b3c9 100644 --- a/vod/src/model/GetMessageCallbackResult.cc +++ b/vod/src/model/GetMessageCallbackResult.cc @@ -35,10 +35,13 @@ GetMessageCallbackResult::~GetMessageCallbackResult() void GetMessageCallbackResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto messageCallbackNode = value["MessageCallback"]; if(!messageCallbackNode["CallbackType"].isNull()) diff --git a/vod/src/model/GetMezzanineInfoResult.cc b/vod/src/model/GetMezzanineInfoResult.cc index d627f23f6..289b99a41 100644 --- a/vod/src/model/GetMezzanineInfoResult.cc +++ b/vod/src/model/GetMezzanineInfoResult.cc @@ -35,10 +35,13 @@ GetMezzanineInfoResult::~GetMezzanineInfoResult() void GetMezzanineInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mezzanineNode = value["Mezzanine"]; if(!mezzanineNode["VideoId"].isNull()) diff --git a/vod/src/model/GetPlayInfoResult.cc b/vod/src/model/GetPlayInfoResult.cc index 0223933e7..9395b948c 100644 --- a/vod/src/model/GetPlayInfoResult.cc +++ b/vod/src/model/GetPlayInfoResult.cc @@ -35,10 +35,13 @@ GetPlayInfoResult::~GetPlayInfoResult() void GetPlayInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPlayInfoList = value["PlayInfoList"]["PlayInfo"]; for (auto value : allPlayInfoList) diff --git a/vod/src/model/GetTranscodeSummaryResult.cc b/vod/src/model/GetTranscodeSummaryResult.cc index 28f60323b..9cfc5995b 100644 --- a/vod/src/model/GetTranscodeSummaryResult.cc +++ b/vod/src/model/GetTranscodeSummaryResult.cc @@ -35,10 +35,13 @@ GetTranscodeSummaryResult::~GetTranscodeSummaryResult() void GetTranscodeSummaryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTranscodeSummaryList = value["TranscodeSummaryList"]["TranscodeSummary"]; for (auto value : allTranscodeSummaryList) diff --git a/vod/src/model/GetTranscodeTaskResult.cc b/vod/src/model/GetTranscodeTaskResult.cc index 743baba9a..482d5f8fe 100644 --- a/vod/src/model/GetTranscodeTaskResult.cc +++ b/vod/src/model/GetTranscodeTaskResult.cc @@ -35,10 +35,13 @@ GetTranscodeTaskResult::~GetTranscodeTaskResult() void GetTranscodeTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto transcodeTaskNode = value["TranscodeTask"]; if(!transcodeTaskNode["TranscodeTaskId"].isNull()) diff --git a/vod/src/model/GetTranscodeTemplateGroupResult.cc b/vod/src/model/GetTranscodeTemplateGroupResult.cc index 1886ed3e1..0397d88a0 100644 --- a/vod/src/model/GetTranscodeTemplateGroupResult.cc +++ b/vod/src/model/GetTranscodeTemplateGroupResult.cc @@ -35,10 +35,13 @@ GetTranscodeTemplateGroupResult::~GetTranscodeTemplateGroupResult() void GetTranscodeTemplateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto transcodeTemplateGroupNode = value["TranscodeTemplateGroup"]; if(!transcodeTemplateGroupNode["CreationTime"].isNull()) diff --git a/vod/src/model/GetURLUploadInfosResult.cc b/vod/src/model/GetURLUploadInfosResult.cc index aaa85ccc8..da6a67d4c 100644 --- a/vod/src/model/GetURLUploadInfosResult.cc +++ b/vod/src/model/GetURLUploadInfosResult.cc @@ -35,10 +35,13 @@ GetURLUploadInfosResult::~GetURLUploadInfosResult() void GetURLUploadInfosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allURLUploadInfoList = value["URLUploadInfoList"]["UrlUploadJobInfoDTO"]; for (auto value : allURLUploadInfoList) diff --git a/vod/src/model/GetUploadDetailsResult.cc b/vod/src/model/GetUploadDetailsResult.cc index 3ab3936a4..6267dba99 100644 --- a/vod/src/model/GetUploadDetailsResult.cc +++ b/vod/src/model/GetUploadDetailsResult.cc @@ -35,10 +35,13 @@ GetUploadDetailsResult::~GetUploadDetailsResult() void GetUploadDetailsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUploadDetails = value["UploadDetails"]["UploadDetail"]; for (auto value : allUploadDetails) diff --git a/vod/src/model/GetVideoInfoResult.cc b/vod/src/model/GetVideoInfoResult.cc index e67f5e0dc..6b5fb5080 100644 --- a/vod/src/model/GetVideoInfoResult.cc +++ b/vod/src/model/GetVideoInfoResult.cc @@ -35,10 +35,13 @@ GetVideoInfoResult::~GetVideoInfoResult() void GetVideoInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto videoNode = value["Video"]; if(!videoNode["VideoId"].isNull()) diff --git a/vod/src/model/GetVideoInfosResult.cc b/vod/src/model/GetVideoInfosResult.cc index 8a20b0a45..5a98b6617 100644 --- a/vod/src/model/GetVideoInfosResult.cc +++ b/vod/src/model/GetVideoInfosResult.cc @@ -35,10 +35,13 @@ GetVideoInfosResult::~GetVideoInfosResult() void GetVideoInfosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVideoList = value["VideoList"]["Video"]; for (auto value : allVideoList) diff --git a/vod/src/model/GetVideoListResult.cc b/vod/src/model/GetVideoListResult.cc index d197a3ad9..f593183b8 100644 --- a/vod/src/model/GetVideoListResult.cc +++ b/vod/src/model/GetVideoListResult.cc @@ -35,10 +35,13 @@ GetVideoListResult::~GetVideoListResult() void GetVideoListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVideoList = value["VideoList"]["Video"]; for (auto value : allVideoList) diff --git a/vod/src/model/GetVideoPlayAuthResult.cc b/vod/src/model/GetVideoPlayAuthResult.cc index 63b4e9af1..c151d3b57 100644 --- a/vod/src/model/GetVideoPlayAuthResult.cc +++ b/vod/src/model/GetVideoPlayAuthResult.cc @@ -35,10 +35,13 @@ GetVideoPlayAuthResult::~GetVideoPlayAuthResult() void GetVideoPlayAuthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto videoMetaNode = value["VideoMeta"]; if(!videoMetaNode["CoverURL"].isNull()) diff --git a/vod/src/model/GetVodTemplateResult.cc b/vod/src/model/GetVodTemplateResult.cc index cfd377fcd..46491e0e8 100644 --- a/vod/src/model/GetVodTemplateResult.cc +++ b/vod/src/model/GetVodTemplateResult.cc @@ -35,10 +35,13 @@ GetVodTemplateResult::~GetVodTemplateResult() void GetVodTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vodTemplateInfoNode = value["VodTemplateInfo"]; if(!vodTemplateInfoNode["Name"].isNull()) diff --git a/vod/src/model/GetWatermarkResult.cc b/vod/src/model/GetWatermarkResult.cc index fafd65625..6f95015c1 100644 --- a/vod/src/model/GetWatermarkResult.cc +++ b/vod/src/model/GetWatermarkResult.cc @@ -35,10 +35,13 @@ GetWatermarkResult::~GetWatermarkResult() void GetWatermarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto watermarkInfoNode = value["WatermarkInfo"]; if(!watermarkInfoNode["CreationTime"].isNull()) diff --git a/vod/src/model/ListAIJobResult.cc b/vod/src/model/ListAIJobResult.cc index 9395dc893..b6bab88ae 100644 --- a/vod/src/model/ListAIJobResult.cc +++ b/vod/src/model/ListAIJobResult.cc @@ -35,10 +35,13 @@ ListAIJobResult::~ListAIJobResult() void ListAIJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAIJobList = value["AIJobList"]["AIJob"]; for (auto value : allAIJobList) diff --git a/vod/src/model/ListAITemplateResult.cc b/vod/src/model/ListAITemplateResult.cc index e992b100a..d0361e54f 100644 --- a/vod/src/model/ListAITemplateResult.cc +++ b/vod/src/model/ListAITemplateResult.cc @@ -35,10 +35,13 @@ ListAITemplateResult::~ListAITemplateResult() void ListAITemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTemplateInfoList = value["TemplateInfoList"]["TemplateInfoListItem"]; for (auto value : allTemplateInfoList) diff --git a/vod/src/model/ListAppInfoResult.cc b/vod/src/model/ListAppInfoResult.cc index 52df998e2..bb74d7f91 100644 --- a/vod/src/model/ListAppInfoResult.cc +++ b/vod/src/model/ListAppInfoResult.cc @@ -35,10 +35,13 @@ ListAppInfoResult::~ListAppInfoResult() void ListAppInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppInfoList = value["AppInfoList"]["AppInfo"]; for (auto value : allAppInfoList) @@ -60,9 +63,16 @@ void ListAppInfoResult::parse(const std::string &payload) appInfoListObject.modificationTime = value["ModificationTime"].asString(); appInfoList_.push_back(appInfoListObject); } + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); } +int ListAppInfoResult::getTotal()const +{ + return total_; +} + std::vector ListAppInfoResult::getAppInfoList()const { return appInfoList_; diff --git a/vod/src/model/ListAppPoliciesForIdentityResult.cc b/vod/src/model/ListAppPoliciesForIdentityResult.cc index e9a7d97ab..bb342fa77 100644 --- a/vod/src/model/ListAppPoliciesForIdentityResult.cc +++ b/vod/src/model/ListAppPoliciesForIdentityResult.cc @@ -35,10 +35,13 @@ ListAppPoliciesForIdentityResult::~ListAppPoliciesForIdentityResult() void ListAppPoliciesForIdentityResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAppPolicyList = value["AppPolicyList"]["AppPolicy"]; for (auto value : allAppPolicyList) diff --git a/vod/src/model/ListAuditSecurityIpResult.cc b/vod/src/model/ListAuditSecurityIpResult.cc index 2de1d3c58..0953105cf 100644 --- a/vod/src/model/ListAuditSecurityIpResult.cc +++ b/vod/src/model/ListAuditSecurityIpResult.cc @@ -35,10 +35,13 @@ ListAuditSecurityIpResult::~ListAuditSecurityIpResult() void ListAuditSecurityIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSecurityIpList = value["SecurityIpList"]["SecurityIp"]; for (auto value : allSecurityIpList) diff --git a/vod/src/model/ListLiveRecordVideoResult.cc b/vod/src/model/ListLiveRecordVideoResult.cc index 08c3b88ad..155f8a846 100644 --- a/vod/src/model/ListLiveRecordVideoResult.cc +++ b/vod/src/model/ListLiveRecordVideoResult.cc @@ -35,10 +35,13 @@ ListLiveRecordVideoResult::~ListLiveRecordVideoResult() void ListLiveRecordVideoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allLiveRecordVideoList = value["LiveRecordVideoList"]["LiveRecordVideo"]; for (auto value : allLiveRecordVideoList) diff --git a/vod/src/model/ListSnapshotsResult.cc b/vod/src/model/ListSnapshotsResult.cc index 4dabe962e..d4d04a7a7 100644 --- a/vod/src/model/ListSnapshotsResult.cc +++ b/vod/src/model/ListSnapshotsResult.cc @@ -35,10 +35,13 @@ ListSnapshotsResult::~ListSnapshotsResult() void ListSnapshotsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto mediaSnapshotNode = value["MediaSnapshot"]; if(!mediaSnapshotNode["Total"].isNull()) diff --git a/vod/src/model/ListTranscodeTaskResult.cc b/vod/src/model/ListTranscodeTaskResult.cc index fcf754279..9ddc37283 100644 --- a/vod/src/model/ListTranscodeTaskResult.cc +++ b/vod/src/model/ListTranscodeTaskResult.cc @@ -35,10 +35,13 @@ ListTranscodeTaskResult::~ListTranscodeTaskResult() void ListTranscodeTaskResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTranscodeTaskList = value["TranscodeTaskList"]["TranscodeTask"]; for (auto value : allTranscodeTaskList) diff --git a/vod/src/model/ListTranscodeTemplateGroupResult.cc b/vod/src/model/ListTranscodeTemplateGroupResult.cc index ba53e75a7..4b00cde6c 100644 --- a/vod/src/model/ListTranscodeTemplateGroupResult.cc +++ b/vod/src/model/ListTranscodeTemplateGroupResult.cc @@ -35,10 +35,13 @@ ListTranscodeTemplateGroupResult::~ListTranscodeTemplateGroupResult() void ListTranscodeTemplateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTranscodeTemplateGroupList = value["TranscodeTemplateGroupList"]["TranscodeTemplateGroup"]; for (auto value : allTranscodeTemplateGroupList) diff --git a/vod/src/model/ListVodTemplateResult.cc b/vod/src/model/ListVodTemplateResult.cc index 3ad382f7e..bda097163 100644 --- a/vod/src/model/ListVodTemplateResult.cc +++ b/vod/src/model/ListVodTemplateResult.cc @@ -35,10 +35,13 @@ ListVodTemplateResult::~ListVodTemplateResult() void ListVodTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVodTemplateInfoList = value["VodTemplateInfoList"]["VodTemplateInfo"]; for (auto value : allVodTemplateInfoList) diff --git a/vod/src/model/ListWatermarkResult.cc b/vod/src/model/ListWatermarkResult.cc index 4bbe140ac..0adc5eb9a 100644 --- a/vod/src/model/ListWatermarkResult.cc +++ b/vod/src/model/ListWatermarkResult.cc @@ -35,10 +35,13 @@ ListWatermarkResult::~ListWatermarkResult() void ListWatermarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allWatermarkInfos = value["WatermarkInfos"]["WatermarkInfo"]; for (auto value : allWatermarkInfos) diff --git a/vod/src/model/ModifyVodDomainSchdmByPropertyRequest.cc b/vod/src/model/ModifyVodDomainSchdmByPropertyRequest.cc new file mode 100644 index 000000000..a2a8388bf --- /dev/null +++ b/vod/src/model/ModifyVodDomainSchdmByPropertyRequest.cc @@ -0,0 +1,302 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vod::Model::ModifyVodDomainSchdmByPropertyRequest; + +ModifyVodDomainSchdmByPropertyRequest::ModifyVodDomainSchdmByPropertyRequest() : + RpcServiceRequest("vod", "2017-03-21", "ModifyVodDomainSchdmByProperty") +{} + +ModifyVodDomainSchdmByPropertyRequest::~ModifyVodDomainSchdmByPropertyRequest() +{} + +long ModifyVodDomainSchdmByPropertyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyVodDomainSchdmByPropertyRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyVodDomainSchdmByPropertyRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getProperty()const +{ + return property_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setProperty(const std::string& property) +{ + property_ = property; + setCoreParameter("Property", property); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyVodDomainSchdmByPropertyRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getPopProduct()const +{ + return popProduct_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setCoreParameter("PopProduct", popProduct); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getDomainName()const +{ + return domainName_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setCoreParameter("DomainName", domainName); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long ModifyVodDomainSchdmByPropertyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getVersion()const +{ + return version_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setVersion(const std::string& version) +{ + version_ = version; + setCoreParameter("Version", version); +} + +bool ModifyVodDomainSchdmByPropertyRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ModifyVodDomainSchdmByPropertyRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ModifyVodDomainSchdmByPropertyRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getServiceCode()const +{ + return serviceCode_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setServiceCode(const std::string& serviceCode) +{ + serviceCode_ = serviceCode; + setCoreParameter("ServiceCode", serviceCode); +} + +std::string ModifyVodDomainSchdmByPropertyRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyVodDomainSchdmByPropertyRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vod/src/model/ModifyVodDomainSchdmByPropertyResult.cc b/vod/src/model/ModifyVodDomainSchdmByPropertyResult.cc new file mode 100644 index 000000000..451543f62 --- /dev/null +++ b/vod/src/model/ModifyVodDomainSchdmByPropertyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vod; +using namespace AlibabaCloud::Vod::Model; + +ModifyVodDomainSchdmByPropertyResult::ModifyVodDomainSchdmByPropertyResult() : + ServiceResult() +{} + +ModifyVodDomainSchdmByPropertyResult::ModifyVodDomainSchdmByPropertyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVodDomainSchdmByPropertyResult::~ModifyVodDomainSchdmByPropertyResult() +{} + +void ModifyVodDomainSchdmByPropertyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vod/src/model/MoveAppResourceResult.cc b/vod/src/model/MoveAppResourceResult.cc index 7273f9d3d..f3354d22a 100644 --- a/vod/src/model/MoveAppResourceResult.cc +++ b/vod/src/model/MoveAppResourceResult.cc @@ -35,10 +35,13 @@ MoveAppResourceResult::~MoveAppResourceResult() void MoveAppResourceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistResourceIds = value["NonExistResourceIds"]["ResourceId"]; for (const auto &item : allNonExistResourceIds) diff --git a/vod/src/model/PreloadVodObjectCachesResult.cc b/vod/src/model/PreloadVodObjectCachesResult.cc index 62477720c..976808f4d 100644 --- a/vod/src/model/PreloadVodObjectCachesResult.cc +++ b/vod/src/model/PreloadVodObjectCachesResult.cc @@ -35,10 +35,13 @@ PreloadVodObjectCachesResult::~PreloadVodObjectCachesResult() void PreloadVodObjectCachesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PreloadTaskId"].isNull()) preloadTaskId_ = value["PreloadTaskId"].asString(); diff --git a/vod/src/model/ProduceEditingProjectVideoResult.cc b/vod/src/model/ProduceEditingProjectVideoResult.cc index eb5fdc29e..f6a64e7fd 100644 --- a/vod/src/model/ProduceEditingProjectVideoResult.cc +++ b/vod/src/model/ProduceEditingProjectVideoResult.cc @@ -35,10 +35,13 @@ ProduceEditingProjectVideoResult::~ProduceEditingProjectVideoResult() void ProduceEditingProjectVideoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MediaId"].isNull()) mediaId_ = value["MediaId"].asString(); diff --git a/vod/src/model/RefreshUploadVideoResult.cc b/vod/src/model/RefreshUploadVideoResult.cc index b5d45ef68..7741fe17d 100644 --- a/vod/src/model/RefreshUploadVideoResult.cc +++ b/vod/src/model/RefreshUploadVideoResult.cc @@ -35,10 +35,13 @@ RefreshUploadVideoResult::~RefreshUploadVideoResult() void RefreshUploadVideoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["UploadAuth"].isNull()) uploadAuth_ = value["UploadAuth"].asString(); diff --git a/vod/src/model/RefreshVodObjectCachesResult.cc b/vod/src/model/RefreshVodObjectCachesResult.cc index 5a61c9243..97c339c54 100644 --- a/vod/src/model/RefreshVodObjectCachesResult.cc +++ b/vod/src/model/RefreshVodObjectCachesResult.cc @@ -35,10 +35,13 @@ RefreshVodObjectCachesResult::~RefreshVodObjectCachesResult() void RefreshVodObjectCachesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RefreshTaskId"].isNull()) refreshTaskId_ = value["RefreshTaskId"].asString(); diff --git a/vod/src/model/RegisterMediaResult.cc b/vod/src/model/RegisterMediaResult.cc index 91fae4c76..9fc970d93 100644 --- a/vod/src/model/RegisterMediaResult.cc +++ b/vod/src/model/RegisterMediaResult.cc @@ -35,10 +35,13 @@ RegisterMediaResult::~RegisterMediaResult() void RegisterMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegisteredMediaList = value["RegisteredMediaList"]["RegisteredMedia"]; for (auto value : allRegisteredMediaList) diff --git a/vod/src/model/SearchEditingProjectResult.cc b/vod/src/model/SearchEditingProjectResult.cc index f401e38fc..228ffdb6f 100644 --- a/vod/src/model/SearchEditingProjectResult.cc +++ b/vod/src/model/SearchEditingProjectResult.cc @@ -35,10 +35,13 @@ SearchEditingProjectResult::~SearchEditingProjectResult() void SearchEditingProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allProjectList = value["ProjectList"]["Project"]; for (auto value : allProjectList) diff --git a/vod/src/model/SearchMediaResult.cc b/vod/src/model/SearchMediaResult.cc index 40399e5e9..6d38fc89b 100644 --- a/vod/src/model/SearchMediaResult.cc +++ b/vod/src/model/SearchMediaResult.cc @@ -35,10 +35,13 @@ SearchMediaResult::~SearchMediaResult() void SearchMediaResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allMediaList = value["MediaList"]["Media"]; for (auto value : allMediaList) diff --git a/vod/src/model/SetAuditSecurityIpResult.cc b/vod/src/model/SetAuditSecurityIpResult.cc index c30c1ac35..7836fca32 100644 --- a/vod/src/model/SetAuditSecurityIpResult.cc +++ b/vod/src/model/SetAuditSecurityIpResult.cc @@ -35,10 +35,13 @@ SetAuditSecurityIpResult::~SetAuditSecurityIpResult() void SetAuditSecurityIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/SetDefaultAITemplateResult.cc b/vod/src/model/SetDefaultAITemplateResult.cc index 9cc79997c..53500b454 100644 --- a/vod/src/model/SetDefaultAITemplateResult.cc +++ b/vod/src/model/SetDefaultAITemplateResult.cc @@ -35,10 +35,13 @@ SetDefaultAITemplateResult::~SetDefaultAITemplateResult() void SetDefaultAITemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/vod/src/model/SetDefaultTranscodeTemplateGroupResult.cc b/vod/src/model/SetDefaultTranscodeTemplateGroupResult.cc index b730b7c4d..926f55058 100644 --- a/vod/src/model/SetDefaultTranscodeTemplateGroupResult.cc +++ b/vod/src/model/SetDefaultTranscodeTemplateGroupResult.cc @@ -35,10 +35,13 @@ SetDefaultTranscodeTemplateGroupResult::~SetDefaultTranscodeTemplateGroupResult( void SetDefaultTranscodeTemplateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/SetDefaultWatermarkResult.cc b/vod/src/model/SetDefaultWatermarkResult.cc index 4f0a8ce96..b3e60030e 100644 --- a/vod/src/model/SetDefaultWatermarkResult.cc +++ b/vod/src/model/SetDefaultWatermarkResult.cc @@ -35,10 +35,13 @@ SetDefaultWatermarkResult::~SetDefaultWatermarkResult() void SetDefaultWatermarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/SetEditingProjectMaterialsResult.cc b/vod/src/model/SetEditingProjectMaterialsResult.cc index acb1e6343..c1fcaadc2 100644 --- a/vod/src/model/SetEditingProjectMaterialsResult.cc +++ b/vod/src/model/SetEditingProjectMaterialsResult.cc @@ -35,10 +35,13 @@ SetEditingProjectMaterialsResult::~SetEditingProjectMaterialsResult() void SetEditingProjectMaterialsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/SetMessageCallbackResult.cc b/vod/src/model/SetMessageCallbackResult.cc index a5bc902ad..a6e14fcb4 100644 --- a/vod/src/model/SetMessageCallbackResult.cc +++ b/vod/src/model/SetMessageCallbackResult.cc @@ -35,10 +35,13 @@ SetMessageCallbackResult::~SetMessageCallbackResult() void SetMessageCallbackResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/SetVodDomainCertificateResult.cc b/vod/src/model/SetVodDomainCertificateResult.cc index 845c146cd..aa59e0c6f 100644 --- a/vod/src/model/SetVodDomainCertificateResult.cc +++ b/vod/src/model/SetVodDomainCertificateResult.cc @@ -35,10 +35,13 @@ SetVodDomainCertificateResult::~SetVodDomainCertificateResult() void SetVodDomainCertificateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/SubmitAIJobResult.cc b/vod/src/model/SubmitAIJobResult.cc index cda920119..651af61b2 100644 --- a/vod/src/model/SubmitAIJobResult.cc +++ b/vod/src/model/SubmitAIJobResult.cc @@ -35,10 +35,13 @@ SubmitAIJobResult::~SubmitAIJobResult() void SubmitAIJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAIJobList = value["AIJobList"]["AIJob"]; for (auto value : allAIJobList) diff --git a/vod/src/model/SubmitAIMediaAuditJobResult.cc b/vod/src/model/SubmitAIMediaAuditJobResult.cc index acc176bd5..947badfd4 100644 --- a/vod/src/model/SubmitAIMediaAuditJobResult.cc +++ b/vod/src/model/SubmitAIMediaAuditJobResult.cc @@ -35,10 +35,13 @@ SubmitAIMediaAuditJobResult::~SubmitAIMediaAuditJobResult() void SubmitAIMediaAuditJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["MediaId"].isNull()) mediaId_ = value["MediaId"].asString(); diff --git a/vod/src/model/SubmitPreprocessJobsResult.cc b/vod/src/model/SubmitPreprocessJobsResult.cc index 97feafb67..347c39e92 100644 --- a/vod/src/model/SubmitPreprocessJobsResult.cc +++ b/vod/src/model/SubmitPreprocessJobsResult.cc @@ -35,10 +35,13 @@ SubmitPreprocessJobsResult::~SubmitPreprocessJobsResult() void SubmitPreprocessJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPreprocessJobs = value["PreprocessJobs"]["PreprocessJob"]; for (auto value : allPreprocessJobs) diff --git a/vod/src/model/SubmitSnapshotJobResult.cc b/vod/src/model/SubmitSnapshotJobResult.cc index 7a5464f27..83dffc9d4 100644 --- a/vod/src/model/SubmitSnapshotJobResult.cc +++ b/vod/src/model/SubmitSnapshotJobResult.cc @@ -35,10 +35,13 @@ SubmitSnapshotJobResult::~SubmitSnapshotJobResult() void SubmitSnapshotJobResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto snapshotJobNode = value["SnapshotJob"]; if(!snapshotJobNode["JobId"].isNull()) diff --git a/vod/src/model/SubmitTranscodeJobsResult.cc b/vod/src/model/SubmitTranscodeJobsResult.cc index 46f2e62cf..eb34f4dd0 100644 --- a/vod/src/model/SubmitTranscodeJobsResult.cc +++ b/vod/src/model/SubmitTranscodeJobsResult.cc @@ -35,10 +35,13 @@ SubmitTranscodeJobsResult::~SubmitTranscodeJobsResult() void SubmitTranscodeJobsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTranscodeJobs = value["TranscodeJobs"]["TranscodeJob"]; for (auto value : allTranscodeJobs) diff --git a/vod/src/model/UpdateAITemplateResult.cc b/vod/src/model/UpdateAITemplateResult.cc index d8cba53eb..316c57e94 100644 --- a/vod/src/model/UpdateAITemplateResult.cc +++ b/vod/src/model/UpdateAITemplateResult.cc @@ -35,10 +35,13 @@ UpdateAITemplateResult::~UpdateAITemplateResult() void UpdateAITemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TemplateId"].isNull()) templateId_ = value["TemplateId"].asString(); diff --git a/vod/src/model/UpdateAppInfoResult.cc b/vod/src/model/UpdateAppInfoResult.cc index e3608d540..d39a171a0 100644 --- a/vod/src/model/UpdateAppInfoResult.cc +++ b/vod/src/model/UpdateAppInfoResult.cc @@ -35,10 +35,13 @@ UpdateAppInfoResult::~UpdateAppInfoResult() void UpdateAppInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/UpdateAttachedMediaInfosResult.cc b/vod/src/model/UpdateAttachedMediaInfosResult.cc index 56b1a6e77..ce42b0188 100644 --- a/vod/src/model/UpdateAttachedMediaInfosResult.cc +++ b/vod/src/model/UpdateAttachedMediaInfosResult.cc @@ -35,10 +35,13 @@ UpdateAttachedMediaInfosResult::~UpdateAttachedMediaInfosResult() void UpdateAttachedMediaInfosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistMediaIds = value["NonExistMediaIds"]["MediaId"]; for (const auto &item : allNonExistMediaIds) diff --git a/vod/src/model/UpdateCategoryResult.cc b/vod/src/model/UpdateCategoryResult.cc index 15a93a15f..62a725a81 100644 --- a/vod/src/model/UpdateCategoryResult.cc +++ b/vod/src/model/UpdateCategoryResult.cc @@ -35,10 +35,13 @@ UpdateCategoryResult::~UpdateCategoryResult() void UpdateCategoryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/UpdateEditingProjectResult.cc b/vod/src/model/UpdateEditingProjectResult.cc index d63eaac8c..3be382d02 100644 --- a/vod/src/model/UpdateEditingProjectResult.cc +++ b/vod/src/model/UpdateEditingProjectResult.cc @@ -35,10 +35,13 @@ UpdateEditingProjectResult::~UpdateEditingProjectResult() void UpdateEditingProjectResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/UpdateImageInfosResult.cc b/vod/src/model/UpdateImageInfosResult.cc index e5a7e2e86..66507b260 100644 --- a/vod/src/model/UpdateImageInfosResult.cc +++ b/vod/src/model/UpdateImageInfosResult.cc @@ -35,10 +35,13 @@ UpdateImageInfosResult::~UpdateImageInfosResult() void UpdateImageInfosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistImageIds = value["NonExistImageIds"]["ImageId"]; for (const auto &item : allNonExistImageIds) diff --git a/vod/src/model/UpdateTranscodeTemplateGroupResult.cc b/vod/src/model/UpdateTranscodeTemplateGroupResult.cc index 72f1f7518..718a025c0 100644 --- a/vod/src/model/UpdateTranscodeTemplateGroupResult.cc +++ b/vod/src/model/UpdateTranscodeTemplateGroupResult.cc @@ -35,10 +35,13 @@ UpdateTranscodeTemplateGroupResult::~UpdateTranscodeTemplateGroupResult() void UpdateTranscodeTemplateGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TranscodeTemplateGroupId"].isNull()) transcodeTemplateGroupId_ = value["TranscodeTemplateGroupId"].asString(); diff --git a/vod/src/model/UpdateVideoInfoResult.cc b/vod/src/model/UpdateVideoInfoResult.cc index d14be1339..20cbc2afb 100644 --- a/vod/src/model/UpdateVideoInfoResult.cc +++ b/vod/src/model/UpdateVideoInfoResult.cc @@ -35,10 +35,13 @@ UpdateVideoInfoResult::~UpdateVideoInfoResult() void UpdateVideoInfoResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/UpdateVideoInfosResult.cc b/vod/src/model/UpdateVideoInfosResult.cc index a03e09eb2..8312c4cac 100644 --- a/vod/src/model/UpdateVideoInfosResult.cc +++ b/vod/src/model/UpdateVideoInfosResult.cc @@ -35,10 +35,13 @@ UpdateVideoInfosResult::~UpdateVideoInfosResult() void UpdateVideoInfosResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNonExistVideoIds = value["NonExistVideoIds"]["VideoId"]; for (const auto &item : allNonExistVideoIds) diff --git a/vod/src/model/UpdateVodDomainResult.cc b/vod/src/model/UpdateVodDomainResult.cc index 69681fa42..66123b330 100644 --- a/vod/src/model/UpdateVodDomainResult.cc +++ b/vod/src/model/UpdateVodDomainResult.cc @@ -35,10 +35,13 @@ UpdateVodDomainResult::~UpdateVodDomainResult() void UpdateVodDomainResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vod/src/model/UpdateVodTemplateResult.cc b/vod/src/model/UpdateVodTemplateResult.cc index 0500567d1..f7b053f34 100644 --- a/vod/src/model/UpdateVodTemplateResult.cc +++ b/vod/src/model/UpdateVodTemplateResult.cc @@ -35,10 +35,13 @@ UpdateVodTemplateResult::~UpdateVodTemplateResult() void UpdateVodTemplateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VodTemplateId"].isNull()) vodTemplateId_ = value["VodTemplateId"].asString(); diff --git a/vod/src/model/UpdateWatermarkResult.cc b/vod/src/model/UpdateWatermarkResult.cc index 085e9aee9..aa138b8fc 100644 --- a/vod/src/model/UpdateWatermarkResult.cc +++ b/vod/src/model/UpdateWatermarkResult.cc @@ -35,10 +35,13 @@ UpdateWatermarkResult::~UpdateWatermarkResult() void UpdateWatermarkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto watermarkInfoNode = value["WatermarkInfo"]; if(!watermarkInfoNode["CreationTime"].isNull()) diff --git a/vod/src/model/UploadMediaByURLResult.cc b/vod/src/model/UploadMediaByURLResult.cc index fdb2610ab..8f74651a1 100644 --- a/vod/src/model/UploadMediaByURLResult.cc +++ b/vod/src/model/UploadMediaByURLResult.cc @@ -35,10 +35,13 @@ UploadMediaByURLResult::~UploadMediaByURLResult() void UploadMediaByURLResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allUploadJobs = value["UploadJobs"]["UploadJob"]; for (auto value : allUploadJobs) diff --git a/vpc/CMakeLists.txt b/vpc/CMakeLists.txt index 44117ac38..2e03c2595 100644 --- a/vpc/CMakeLists.txt +++ b/vpc/CMakeLists.txt @@ -21,174 +21,294 @@ set(vpc_public_header include/alibabacloud/vpc/VpcExport.h ) set(vpc_public_header_model - include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h - include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h - include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h - include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceResult.h - include/alibabacloud/vpc/model/DeleteIPv6TranslatorRequest.h - include/alibabacloud/vpc/model/DeleteIPv6TranslatorResult.h - include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h - include/alibabacloud/vpc/model/DescribeRouteTableListResult.h - include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h - include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h - include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h - include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h - include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h - include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesRequest.h include/alibabacloud/vpc/model/DescribeGlobalAccelerationInstancesResult.h include/alibabacloud/vpc/model/ModifySslVpnClientCertRequest.h include/alibabacloud/vpc/model/ModifySslVpnClientCertResult.h - include/alibabacloud/vpc/model/DeleteVpcRequest.h - include/alibabacloud/vpc/model/DeleteVpcResult.h include/alibabacloud/vpc/model/DescribeBgpNetworksRequest.h include/alibabacloud/vpc/model/DescribeBgpNetworksResult.h - include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h - include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpResult.h - include/alibabacloud/vpc/model/DescribeIPv6TranslatorsRequest.h - include/alibabacloud/vpc/model/DescribeIPv6TranslatorsResult.h + include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h + include/alibabacloud/vpc/model/UpdateNetworkAclEntriesResult.h include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecRequest.h include/alibabacloud/vpc/model/ModifyBandwidthPackageSpecResult.h include/alibabacloud/vpc/model/CreateNatGatewayRequest.h include/alibabacloud/vpc/model/CreateNatGatewayResult.h - include/alibabacloud/vpc/model/DeleteVSwitchRequest.h - include/alibabacloud/vpc/model/DeleteVSwitchResult.h include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryRequest.h include/alibabacloud/vpc/model/AddIPv6TranslatorAclListEntryResult.h - include/alibabacloud/vpc/model/CreateRouteTableRequest.h - include/alibabacloud/vpc/model/CreateRouteTableResult.h include/alibabacloud/vpc/model/CreateHaVipRequest.h include/alibabacloud/vpc/model/CreateHaVipResult.h include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h include/alibabacloud/vpc/model/DeleteIpv6GatewayResult.h - include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h - include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h - include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h - include/alibabacloud/vpc/model/RecoverVirtualBorderRouterResult.h include/alibabacloud/vpc/model/AssociateEipAddressRequest.h include/alibabacloud/vpc/model/AssociateEipAddressResult.h include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h include/alibabacloud/vpc/model/DescribeEipAddressesResult.h include/alibabacloud/vpc/model/ActivateRouterInterfaceRequest.h include/alibabacloud/vpc/model/ActivateRouterInterfaceResult.h - include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h - include/alibabacloud/vpc/model/CreateCustomerGatewayResult.h - include/alibabacloud/vpc/model/DeleteSslVpnServerRequest.h - include/alibabacloud/vpc/model/DeleteSslVpnServerResult.h - include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h - include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h - include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h - include/alibabacloud/vpc/model/DeleteBgpPeerResult.h - include/alibabacloud/vpc/model/DescribeIpv6GatewaysRequest.h - include/alibabacloud/vpc/model/DescribeIpv6GatewaysResult.h + include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h + include/alibabacloud/vpc/model/CopyNetworkAclEntriesResult.h include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/TerminateVirtualBorderRouterResult.h - include/alibabacloud/vpc/model/DeleteNqaRequest.h - include/alibabacloud/vpc/model/DeleteNqaResult.h - include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryRequest.h - include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryResult.h include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h include/alibabacloud/vpc/model/ModifyRouteEntryResult.h include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleRequest.h include/alibabacloud/vpc/model/CreateIpv6EgressOnlyRuleResult.h include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h include/alibabacloud/vpc/model/ModifyRouteTableAttributesResult.h - include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h - include/alibabacloud/vpc/model/ModifyForwardEntryResult.h include/alibabacloud/vpc/model/DeletePhysicalConnectionRequest.h include/alibabacloud/vpc/model/DeletePhysicalConnectionResult.h + include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h + include/alibabacloud/vpc/model/PublishVpnRouteEntryResult.h + include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h + include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryResult.h + include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h + include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h + include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h + include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecResult.h + include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h + include/alibabacloud/vpc/model/DescribeVpnSslServerLogsResult.h + include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h + include/alibabacloud/vpc/model/DeleteRouterInterfaceResult.h + include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h + include/alibabacloud/vpc/model/ModifyFlowLogAttributeResult.h + include/alibabacloud/vpc/model/DescribeNqasRequest.h + include/alibabacloud/vpc/model/DescribeNqasResult.h + include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h + include/alibabacloud/vpc/model/ModifyNatGatewayAttributeResult.h + include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h + include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h + include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h + include/alibabacloud/vpc/model/CreateExpressCloudConnectionResult.h + include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h + include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h + include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h + include/alibabacloud/vpc/model/AddBgpNetworkRequest.h + include/alibabacloud/vpc/model/AddBgpNetworkResult.h + include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesRequest.h + include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesResult.h + include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h + include/alibabacloud/vpc/model/ConnectRouterInterfaceResult.h + include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeRequest.h + include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeResult.h + include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h + include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h + include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h + include/alibabacloud/vpc/model/DeleteSnatEntryResult.h + include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h + include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecResult.h + include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h + include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h + include/alibabacloud/vpc/model/CreateSnatEntryRequest.h + include/alibabacloud/vpc/model/CreateSnatEntryResult.h + include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h + include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeResult.h + include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h + include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h + include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryRequest.h + include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryResult.h + include/alibabacloud/vpc/model/DeleteHaVipRequest.h + include/alibabacloud/vpc/model/DeleteHaVipResult.h + include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h + include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h + include/alibabacloud/vpc/model/CreateRouteEntryRequest.h + include/alibabacloud/vpc/model/CreateRouteEntryResult.h + include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h + include/alibabacloud/vpc/model/DisableVpcClassicLinkResult.h + include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h + include/alibabacloud/vpc/model/CreateRouterInterfaceResult.h + include/alibabacloud/vpc/model/TagResourcesRequest.h + include/alibabacloud/vpc/model/TagResourcesResult.h + include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h + include/alibabacloud/vpc/model/DescribeFlowLogsResult.h + include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesRequest.h + include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesResult.h + include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h + include/alibabacloud/vpc/model/ModifyNatGatewaySpecResult.h + include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h + include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h + include/alibabacloud/vpc/model/DeleteSslVpnClientCertRequest.h + include/alibabacloud/vpc/model/DeleteSslVpnClientCertResult.h + include/alibabacloud/vpc/model/CreateVSwitchRequest.h + include/alibabacloud/vpc/model/CreateVSwitchResult.h + include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h + include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h + include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h + include/alibabacloud/vpc/model/ModifyEipAddressAttributeResult.h + include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryRequest.h + include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryResult.h + include/alibabacloud/vpc/model/DescribePhysicalConnectionOrderRequest.h + include/alibabacloud/vpc/model/DescribePhysicalConnectionOrderResult.h + include/alibabacloud/vpc/model/DeactiveFlowLogRequest.h + include/alibabacloud/vpc/model/DeactiveFlowLogResult.h + include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h + include/alibabacloud/vpc/model/DeleteNatGatewayResult.h + include/alibabacloud/vpc/model/ActiveFlowLogRequest.h + include/alibabacloud/vpc/model/ActiveFlowLogResult.h + include/alibabacloud/vpc/model/DescribeZonesRequest.h + include/alibabacloud/vpc/model/DescribeZonesResult.h + include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h + include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleResult.h + include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h + include/alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h + include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h + include/alibabacloud/vpc/model/DescribeAccessPointsResult.h + include/alibabacloud/vpc/model/ModifySnatEntryRequest.h + include/alibabacloud/vpc/model/ModifySnatEntryResult.h + include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListRequest.h + include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListResult.h + include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h + include/alibabacloud/vpc/model/DeleteBgpGroupResult.h + include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h + include/alibabacloud/vpc/model/ReleaseEipAddressResult.h + include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h + include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthResult.h + include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h + include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h + include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h + include/alibabacloud/vpc/model/DescribeVSwitchesResult.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecResult.h + include/alibabacloud/vpc/model/DescribeVpcsRequest.h + include/alibabacloud/vpc/model/DescribeVpcsResult.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h + include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeResult.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h + include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesResult.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionNewRequest.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionNewResult.h + include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h + include/alibabacloud/vpc/model/ModifyBgpGroupAttributeResult.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeResult.h + include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h + include/alibabacloud/vpc/model/DeleteForwardEntryResult.h + include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h + include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h + include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h + include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthResult.h + include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h + include/alibabacloud/vpc/model/DescribeEipGatewayInfoResult.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h + include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h + include/alibabacloud/vpc/model/CreateBgpGroupRequest.h + include/alibabacloud/vpc/model/CreateBgpGroupResult.h + include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h + include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeResult.h + include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h + include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h + include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h + include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h + include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h + include/alibabacloud/vpc/model/DeleteExpressConnectResult.h + include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h + include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h + include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceRequest.h + include/alibabacloud/vpc/model/UnassociateGlobalAccelerationInstanceResult.h + include/alibabacloud/vpc/model/DeleteCustomerGatewayRequest.h + include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h + include/alibabacloud/vpc/model/DeleteIPv6TranslatorRequest.h + include/alibabacloud/vpc/model/DeleteIPv6TranslatorResult.h + include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h + include/alibabacloud/vpc/model/DescribeRouteTableListResult.h + include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h + include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h + include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceRequest.h + include/alibabacloud/vpc/model/DeleteGlobalAccelerationInstanceResult.h + include/alibabacloud/vpc/model/DeleteVpcRequest.h + include/alibabacloud/vpc/model/DeleteVpcResult.h + include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h + include/alibabacloud/vpc/model/DeleteVpnRouteEntryResult.h + include/alibabacloud/vpc/model/DownloadVpnConnectionConfigRequest.h + include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h + include/alibabacloud/vpc/model/DescribeIPv6TranslatorsRequest.h + include/alibabacloud/vpc/model/DescribeIPv6TranslatorsResult.h + include/alibabacloud/vpc/model/DeleteVSwitchRequest.h + include/alibabacloud/vpc/model/DeleteVSwitchResult.h + include/alibabacloud/vpc/model/CreateRouteTableRequest.h + include/alibabacloud/vpc/model/CreateRouteTableResult.h + include/alibabacloud/vpc/model/CreateBandwidthPackageRequest.h + include/alibabacloud/vpc/model/CreateBandwidthPackageResult.h + include/alibabacloud/vpc/model/RecoverVirtualBorderRouterRequest.h + include/alibabacloud/vpc/model/RecoverVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/DeleteSslVpnServerRequest.h + include/alibabacloud/vpc/model/DeleteSslVpnServerResult.h + include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h + include/alibabacloud/vpc/model/CreateCustomerGatewayResult.h + include/alibabacloud/vpc/model/DeleteBandwidthPackageRequest.h + include/alibabacloud/vpc/model/DeleteBandwidthPackageResult.h + include/alibabacloud/vpc/model/DescribeIpv6GatewaysRequest.h + include/alibabacloud/vpc/model/DescribeIpv6GatewaysResult.h + include/alibabacloud/vpc/model/DeleteBgpPeerRequest.h + include/alibabacloud/vpc/model/DeleteBgpPeerResult.h + include/alibabacloud/vpc/model/DeleteNqaRequest.h + include/alibabacloud/vpc/model/DeleteNqaResult.h + include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryRequest.h + include/alibabacloud/vpc/model/RemoveIPv6TranslatorAclListEntryResult.h + include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h + include/alibabacloud/vpc/model/ModifyForwardEntryResult.h include/alibabacloud/vpc/model/DeleteFlowLogRequest.h include/alibabacloud/vpc/model/DeleteFlowLogResult.h include/alibabacloud/vpc/model/CreateVpcRequest.h include/alibabacloud/vpc/model/CreateVpcResult.h include/alibabacloud/vpc/model/CreateIPv6TranslatorRequest.h include/alibabacloud/vpc/model/CreateIPv6TranslatorResult.h - include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryRequest.h - include/alibabacloud/vpc/model/CreateIPv6TranslatorEntryResult.h - include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h - include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeResult.h include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h include/alibabacloud/vpc/model/UnassociateEipAddressResult.h - include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h - include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h include/alibabacloud/vpc/model/DescribeVpnConnectionRequest.h include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h - include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecRequest.h - include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceSpecResult.h + include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h + include/alibabacloud/vpc/model/DeleteNetworkAclResult.h include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpRequest.h include/alibabacloud/vpc/model/AddGlobalAccelerationInstanceIpResult.h - include/alibabacloud/vpc/model/DeleteRouterInterfaceRequest.h - include/alibabacloud/vpc/model/DeleteRouterInterfaceResult.h include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h include/alibabacloud/vpc/model/CreateSslVpnServerResult.h - include/alibabacloud/vpc/model/DescribeNqasRequest.h - include/alibabacloud/vpc/model/DescribeNqasResult.h - include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h - include/alibabacloud/vpc/model/ModifyFlowLogAttributeResult.h include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeResult.h - include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h - include/alibabacloud/vpc/model/ModifyNatGatewayAttributeResult.h - include/alibabacloud/vpc/model/DescribeEipMonitorDataRequest.h - include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h include/alibabacloud/vpc/model/DeleteVpnGatewayRequest.h include/alibabacloud/vpc/model/DeleteVpnGatewayResult.h include/alibabacloud/vpc/model/DescribeCustomerGatewayRequest.h include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h - include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeRequest.h - include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthResult.h - include/alibabacloud/vpc/model/AddBgpNetworkRequest.h - include/alibabacloud/vpc/model/AddBgpNetworkResult.h include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h include/alibabacloud/vpc/model/ModifySslVpnServerResult.h - include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesRequest.h - include/alibabacloud/vpc/model/DescribeIPv6TranslatorEntriesResult.h include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeRequest.h include/alibabacloud/vpc/model/ModifyBandwidthPackageAttributeResult.h - include/alibabacloud/vpc/model/ConnectRouterInterfaceRequest.h - include/alibabacloud/vpc/model/ConnectRouterInterfaceResult.h include/alibabacloud/vpc/model/DescribeBgpPeersRequest.h include/alibabacloud/vpc/model/DescribeBgpPeersResult.h - include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeRequest.h - include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeResult.h - include/alibabacloud/vpc/model/DeleteSnatEntryRequest.h - include/alibabacloud/vpc/model/DeleteSnatEntryResult.h - include/alibabacloud/vpc/model/CreateNqaRequest.h - include/alibabacloud/vpc/model/CreateNqaResult.h + include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h + include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightResult.h include/alibabacloud/vpc/model/ConvertBandwidthPackageRequest.h include/alibabacloud/vpc/model/ConvertBandwidthPackageResult.h include/alibabacloud/vpc/model/DescribeHaVipsRequest.h include/alibabacloud/vpc/model/DescribeHaVipsResult.h - include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h - include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecResult.h + include/alibabacloud/vpc/model/CreateNqaRequest.h + include/alibabacloud/vpc/model/CreateNqaResult.h include/alibabacloud/vpc/model/GrantInstanceToCenRequest.h include/alibabacloud/vpc/model/GrantInstanceToCenResult.h + include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h + include/alibabacloud/vpc/model/ModifyBgpPeerAttributeResult.h include/alibabacloud/vpc/model/AddBandwidthPackageIpsRequest.h include/alibabacloud/vpc/model/AddBandwidthPackageIpsResult.h - include/alibabacloud/vpc/model/CreateSnatEntryRequest.h - include/alibabacloud/vpc/model/CreateSnatEntryResult.h - include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageRequest.h - include/alibabacloud/vpc/model/DeleteCommonBandwidthPackageResult.h - include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeRequest.h - include/alibabacloud/vpc/model/ModifyPhysicalConnectionAttributeResult.h include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h - include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h - include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h - include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryRequest.h - include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclListEntryResult.h - include/alibabacloud/vpc/model/EnableVpcClassicLinkRequest.h - include/alibabacloud/vpc/model/EnableVpcClassicLinkResult.h - include/alibabacloud/vpc/model/DeleteHaVipRequest.h - include/alibabacloud/vpc/model/DeleteHaVipResult.h + include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h + include/alibabacloud/vpc/model/ModifyNetworkAclAttributesResult.h include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h @@ -203,28 +323,18 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteVpnConnectionResult.h include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h include/alibabacloud/vpc/model/CreateIpv6GatewayResult.h - include/alibabacloud/vpc/model/CreateRouteEntryRequest.h - include/alibabacloud/vpc/model/CreateRouteEntryResult.h - include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h - include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h include/alibabacloud/vpc/model/DeleteBgpNetworkRequest.h include/alibabacloud/vpc/model/DeleteBgpNetworkResult.h - include/alibabacloud/vpc/model/DisableVpcClassicLinkRequest.h - include/alibabacloud/vpc/model/DisableVpcClassicLinkResult.h - include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h - include/alibabacloud/vpc/model/CreateRouterInterfaceResult.h + include/alibabacloud/vpc/model/DescribeBandwidthPackagesRequest.h + include/alibabacloud/vpc/model/DescribeBandwidthPackagesResult.h include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h - include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h - include/alibabacloud/vpc/model/DescribeFlowLogsResult.h - include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesRequest.h - include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListAttributesResult.h include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpResult.h - include/alibabacloud/vpc/model/ModifyNatGatewaySpecRequest.h - include/alibabacloud/vpc/model/ModifyNatGatewaySpecResult.h include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h include/alibabacloud/vpc/model/DescribeBgpGroupsResult.h + include/alibabacloud/vpc/model/ListTagResourcesRequest.h + include/alibabacloud/vpc/model/ListTagResourcesResult.h include/alibabacloud/vpc/model/DescribeGrantRulesToCenRequest.h include/alibabacloud/vpc/model/DescribeGrantRulesToCenResult.h include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h @@ -233,136 +343,104 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyVpcAttributeResult.h include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsRequest.h include/alibabacloud/vpc/model/RemoveBandwidthPackageIpsResult.h - include/alibabacloud/vpc/model/DeleteSslVpnClientCertRequest.h - include/alibabacloud/vpc/model/DeleteSslVpnClientCertResult.h - include/alibabacloud/vpc/model/CreateVSwitchRequest.h - include/alibabacloud/vpc/model/CreateVSwitchResult.h include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeRequest.h include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h include/alibabacloud/vpc/model/EnablePhysicalConnectionResult.h - include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h - include/alibabacloud/vpc/model/ModifyEipAddressAttributeResult.h + include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h + include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeRequest.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackagePayTypeResult.h include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h - include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryRequest.h - include/alibabacloud/vpc/model/ModifyIPv6TranslatorEntryResult.h include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h include/alibabacloud/vpc/model/CreateCommonBandwidthPackageResult.h - include/alibabacloud/vpc/model/DescribePhysicalConnectionOrderRequest.h - include/alibabacloud/vpc/model/DescribePhysicalConnectionOrderResult.h - include/alibabacloud/vpc/model/CreateForwardEntryRequest.h - include/alibabacloud/vpc/model/CreateForwardEntryResult.h include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h - include/alibabacloud/vpc/model/DeactiveFlowLogRequest.h - include/alibabacloud/vpc/model/DeactiveFlowLogResult.h + include/alibabacloud/vpc/model/CreateForwardEntryRequest.h + include/alibabacloud/vpc/model/CreateForwardEntryResult.h include/alibabacloud/vpc/model/CreateFlowLogRequest.h include/alibabacloud/vpc/model/CreateFlowLogResult.h - include/alibabacloud/vpc/model/DeleteNatGatewayRequest.h - include/alibabacloud/vpc/model/DeleteNatGatewayResult.h - include/alibabacloud/vpc/model/ActiveFlowLogRequest.h - include/alibabacloud/vpc/model/ActiveFlowLogResult.h - include/alibabacloud/vpc/model/DescribeZonesRequest.h - include/alibabacloud/vpc/model/DescribeZonesResult.h - include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleRequest.h - include/alibabacloud/vpc/model/DeleteIpv6EgressOnlyRuleResult.h - include/alibabacloud/vpc/model/DeactivateRouterInterfaceRequest.h - include/alibabacloud/vpc/model/DeactivateRouterInterfaceResult.h - include/alibabacloud/vpc/model/ModifySnatEntryRequest.h - include/alibabacloud/vpc/model/ModifySnatEntryResult.h + include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h + include/alibabacloud/vpc/model/UnassociateNetworkAclResult.h include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListsRequest.h include/alibabacloud/vpc/model/DescribeIPv6TranslatorAclListsResult.h - include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h - include/alibabacloud/vpc/model/DescribeAccessPointsResult.h include/alibabacloud/vpc/model/CreateSslVpnClientCertRequest.h include/alibabacloud/vpc/model/CreateSslVpnClientCertResult.h - include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListRequest.h - include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListResult.h include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/CreateVirtualBorderRouterResult.h - include/alibabacloud/vpc/model/DeleteBgpGroupRequest.h - include/alibabacloud/vpc/model/DeleteBgpGroupResult.h + include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h + include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryRequest.h include/alibabacloud/vpc/model/DeleteIPv6TranslatorEntryResult.h - include/alibabacloud/vpc/model/ReleaseEipAddressRequest.h - include/alibabacloud/vpc/model/ReleaseEipAddressResult.h + include/alibabacloud/vpc/model/UnTagResourcesRequest.h + include/alibabacloud/vpc/model/UnTagResourcesResult.h + include/alibabacloud/vpc/model/CreateNetworkAclRequest.h + include/alibabacloud/vpc/model/CreateNetworkAclResult.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderResult.h include/alibabacloud/vpc/model/CreateBgpPeerRequest.h include/alibabacloud/vpc/model/CreateBgpPeerResult.h include/alibabacloud/vpc/model/DescribeRouteTablesRequest.h include/alibabacloud/vpc/model/DescribeRouteTablesResult.h - include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h - include/alibabacloud/vpc/model/DescribeVSwitchesResult.h - include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecRequest.h - include/alibabacloud/vpc/model/ModifyRouterInterfaceSpecResult.h - include/alibabacloud/vpc/model/DescribeVpcsRequest.h - include/alibabacloud/vpc/model/DescribeVpcsResult.h + include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h + include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h include/alibabacloud/vpc/model/CreatePhysicalConnectionResult.h + include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h + include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOAResult.h include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h + include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryResult.h include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h include/alibabacloud/vpc/model/DescribeServerRelatedGlobalAccelerationInstancesResult.h include/alibabacloud/vpc/model/AssociateHaVipRequest.h include/alibabacloud/vpc/model/AssociateHaVipResult.h - include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeRequest.h - include/alibabacloud/vpc/model/ModifyRouterInterfaceAttributeResult.h include/alibabacloud/vpc/model/AssociateRouteTableRequest.h include/alibabacloud/vpc/model/AssociateRouteTableResult.h include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclAttributeRequest.h include/alibabacloud/vpc/model/ModifyIPv6TranslatorAclAttributeResult.h - include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h - include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h - include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesRequest.h - include/alibabacloud/vpc/model/ModifyGlobalAccelerationInstanceAttributesResult.h - include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h - include/alibabacloud/vpc/model/DeleteRouteEntryResult.h include/alibabacloud/vpc/model/DeleteVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/DeleteVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h + include/alibabacloud/vpc/model/AssociateNetworkAclResult.h + include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h + include/alibabacloud/vpc/model/DeleteRouteEntryResult.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecRequest.h include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageSpecResult.h - include/alibabacloud/vpc/model/CreatePhysicalConnectionNewRequest.h - include/alibabacloud/vpc/model/CreatePhysicalConnectionNewResult.h include/alibabacloud/vpc/model/TerminatePhysicalConnectionRequest.h include/alibabacloud/vpc/model/TerminatePhysicalConnectionResult.h include/alibabacloud/vpc/model/DescribeIpv6EgressOnlyRulesRequest.h include/alibabacloud/vpc/model/DescribeIpv6EgressOnlyRulesResult.h + include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h + include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h include/alibabacloud/vpc/model/RevokeInstanceFromCenRequest.h include/alibabacloud/vpc/model/RevokeInstanceFromCenResult.h include/alibabacloud/vpc/model/DeleteRouteTableRequest.h include/alibabacloud/vpc/model/DeleteRouteTableResult.h - include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h - include/alibabacloud/vpc/model/ModifyBgpGroupAttributeResult.h - include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeRequest.h - include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageAttributeResult.h + include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h + include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h include/alibabacloud/vpc/model/UnassociateRouteTableRequest.h include/alibabacloud/vpc/model/UnassociateRouteTableResult.h - include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h - include/alibabacloud/vpc/model/DeleteForwardEntryResult.h - include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpRequest.h - include/alibabacloud/vpc/model/AddCommonBandwidthPackageIpResult.h include/alibabacloud/vpc/model/DescribeRegionsRequest.h include/alibabacloud/vpc/model/DescribeRegionsResult.h - include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h - include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthResult.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h + include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthResult.h + include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h + include/alibabacloud/vpc/model/CompletePhysicalConnectionLOAResult.h include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h - include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h - include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h include/alibabacloud/vpc/model/CancelPhysicalConnectionRequest.h include/alibabacloud/vpc/model/CancelPhysicalConnectionResult.h include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceRequest.h include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceResult.h - include/alibabacloud/vpc/model/CreateBgpGroupRequest.h - include/alibabacloud/vpc/model/CreateBgpGroupResult.h include/alibabacloud/vpc/model/DescribeVRoutersRequest.h include/alibabacloud/vpc/model/DescribeVRoutersResult.h include/alibabacloud/vpc/model/ModifyNqaRequest.h @@ -373,18 +451,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h include/alibabacloud/vpc/model/UnassociateHaVipRequest.h include/alibabacloud/vpc/model/UnassociateHaVipResult.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h + include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesRequest.h include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h include/alibabacloud/vpc/model/ModifyHaVipAttributeResult.h include/alibabacloud/vpc/model/DeleteIPv6TranslatorAclListRequest.h include/alibabacloud/vpc/model/DeleteIPv6TranslatorAclListResult.h - include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h - include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h - include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h - include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h - include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h - include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h include/alibabacloud/vpc/model/ModifyVRouterAttributeResult.h include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h @@ -392,174 +466,294 @@ set(vpc_public_header_model set(vpc_src src/VpcClient.cc - src/model/DeleteCustomerGatewayRequest.cc - src/model/DeleteCustomerGatewayResult.cc - src/model/UnassociateGlobalAccelerationInstanceRequest.cc - src/model/UnassociateGlobalAccelerationInstanceResult.cc - src/model/DeleteIPv6TranslatorRequest.cc - src/model/DeleteIPv6TranslatorResult.cc - src/model/DescribeRouteTableListRequest.cc - src/model/DescribeRouteTableListResult.cc - src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc - src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc - src/model/DeleteGlobalAccelerationInstanceRequest.cc - src/model/DeleteGlobalAccelerationInstanceResult.cc - src/model/DescribeCustomerGatewaysRequest.cc - src/model/DescribeCustomerGatewaysResult.cc src/model/DescribeGlobalAccelerationInstancesRequest.cc src/model/DescribeGlobalAccelerationInstancesResult.cc src/model/ModifySslVpnClientCertRequest.cc src/model/ModifySslVpnClientCertResult.cc - src/model/DeleteVpcRequest.cc - src/model/DeleteVpcResult.cc src/model/DescribeBgpNetworksRequest.cc src/model/DescribeBgpNetworksResult.cc - src/model/DownloadVpnConnectionConfigRequest.cc - src/model/DownloadVpnConnectionConfigResult.cc src/model/RemoveCommonBandwidthPackageIpRequest.cc src/model/RemoveCommonBandwidthPackageIpResult.cc - src/model/DescribeIPv6TranslatorsRequest.cc - src/model/DescribeIPv6TranslatorsResult.cc + src/model/UpdateNetworkAclEntriesRequest.cc + src/model/UpdateNetworkAclEntriesResult.cc src/model/ModifyBandwidthPackageSpecRequest.cc src/model/ModifyBandwidthPackageSpecResult.cc src/model/CreateNatGatewayRequest.cc src/model/CreateNatGatewayResult.cc - src/model/DeleteVSwitchRequest.cc - src/model/DeleteVSwitchResult.cc src/model/AddIPv6TranslatorAclListEntryRequest.cc src/model/AddIPv6TranslatorAclListEntryResult.cc - src/model/CreateRouteTableRequest.cc - src/model/CreateRouteTableResult.cc src/model/CreateHaVipRequest.cc src/model/CreateHaVipResult.cc src/model/DeleteIpv6GatewayRequest.cc src/model/DeleteIpv6GatewayResult.cc - src/model/CreateBandwidthPackageRequest.cc - src/model/CreateBandwidthPackageResult.cc - src/model/RecoverVirtualBorderRouterRequest.cc - src/model/RecoverVirtualBorderRouterResult.cc src/model/AssociateEipAddressRequest.cc src/model/AssociateEipAddressResult.cc src/model/DescribeEipAddressesRequest.cc src/model/DescribeEipAddressesResult.cc src/model/ActivateRouterInterfaceRequest.cc src/model/ActivateRouterInterfaceResult.cc - src/model/CreateCustomerGatewayRequest.cc - src/model/CreateCustomerGatewayResult.cc - src/model/DeleteSslVpnServerRequest.cc - src/model/DeleteSslVpnServerResult.cc - src/model/DeleteBandwidthPackageRequest.cc - src/model/DeleteBandwidthPackageResult.cc - src/model/DeleteBgpPeerRequest.cc - src/model/DeleteBgpPeerResult.cc - src/model/DescribeIpv6GatewaysRequest.cc - src/model/DescribeIpv6GatewaysResult.cc + src/model/CopyNetworkAclEntriesRequest.cc + src/model/CopyNetworkAclEntriesResult.cc src/model/TerminateVirtualBorderRouterRequest.cc src/model/TerminateVirtualBorderRouterResult.cc - src/model/DeleteNqaRequest.cc - src/model/DeleteNqaResult.cc - src/model/RemoveIPv6TranslatorAclListEntryRequest.cc - src/model/RemoveIPv6TranslatorAclListEntryResult.cc src/model/ModifyRouteEntryRequest.cc src/model/ModifyRouteEntryResult.cc src/model/CreateIpv6EgressOnlyRuleRequest.cc src/model/CreateIpv6EgressOnlyRuleResult.cc src/model/ModifyRouteTableAttributesRequest.cc src/model/ModifyRouteTableAttributesResult.cc - src/model/ModifyForwardEntryRequest.cc - src/model/ModifyForwardEntryResult.cc src/model/DeletePhysicalConnectionRequest.cc src/model/DeletePhysicalConnectionResult.cc + src/model/PublishVpnRouteEntryRequest.cc + src/model/PublishVpnRouteEntryResult.cc + src/model/CreateIPv6TranslatorEntryRequest.cc + src/model/CreateIPv6TranslatorEntryResult.cc + src/model/DescribeForwardTableEntriesRequest.cc + src/model/DescribeForwardTableEntriesResult.cc + src/model/DescribeSslVpnClientCertsRequest.cc + src/model/DescribeSslVpnClientCertsResult.cc + src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc + src/model/ModifyGlobalAccelerationInstanceSpecResult.cc + src/model/DescribeVpnSslServerLogsRequest.cc + src/model/DescribeVpnSslServerLogsResult.cc + src/model/DeleteRouterInterfaceRequest.cc + src/model/DeleteRouterInterfaceResult.cc + src/model/ModifyFlowLogAttributeRequest.cc + src/model/ModifyFlowLogAttributeResult.cc + src/model/DescribeNqasRequest.cc + src/model/DescribeNqasResult.cc + src/model/ModifyNatGatewayAttributeRequest.cc + src/model/ModifyNatGatewayAttributeResult.cc + src/model/DescribeEipMonitorDataRequest.cc + src/model/DescribeEipMonitorDataResult.cc + src/model/CreateExpressCloudConnectionRequest.cc + src/model/CreateExpressCloudConnectionResult.cc + src/model/ModifyVpnRouteEntryWeightRequest.cc + src/model/ModifyVpnRouteEntryWeightResult.cc + src/model/ModifyVpnGatewayAttributeRequest.cc + src/model/ModifyVpnGatewayAttributeResult.cc + src/model/AddBgpNetworkRequest.cc + src/model/AddBgpNetworkResult.cc + src/model/DescribeIPv6TranslatorEntriesRequest.cc + src/model/DescribeIPv6TranslatorEntriesResult.cc + src/model/ConnectRouterInterfaceRequest.cc + src/model/ConnectRouterInterfaceResult.cc + src/model/DescribeIpv6GatewayAttributeRequest.cc + src/model/DescribeIpv6GatewayAttributeResult.cc + src/model/DescribeVpnPbrRouteEntriesRequest.cc + src/model/DescribeVpnPbrRouteEntriesResult.cc + src/model/DeleteSnatEntryRequest.cc + src/model/DeleteSnatEntryResult.cc + src/model/ModifyIpv6GatewaySpecRequest.cc + src/model/ModifyIpv6GatewaySpecResult.cc + src/model/DeleteCommonBandwidthPackageRequest.cc + src/model/DeleteCommonBandwidthPackageResult.cc + src/model/CreateSnatEntryRequest.cc + src/model/CreateSnatEntryResult.cc + src/model/ModifyPhysicalConnectionAttributeRequest.cc + src/model/ModifyPhysicalConnectionAttributeResult.cc + src/model/ModifyVSwitchAttributeRequest.cc + src/model/ModifyVSwitchAttributeResult.cc + src/model/EnableVpcClassicLinkRequest.cc + src/model/EnableVpcClassicLinkResult.cc + src/model/ModifyIPv6TranslatorAclListEntryRequest.cc + src/model/ModifyIPv6TranslatorAclListEntryResult.cc + src/model/DeleteHaVipRequest.cc + src/model/DeleteHaVipResult.cc + src/model/DescribeNetworkAclAttributesRequest.cc + src/model/DescribeNetworkAclAttributesResult.cc + src/model/CreateRouteEntryRequest.cc + src/model/CreateRouteEntryResult.cc + src/model/DisableVpcClassicLinkRequest.cc + src/model/DisableVpcClassicLinkResult.cc + src/model/CreateRouterInterfaceRequest.cc + src/model/CreateRouterInterfaceResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/DescribeFlowLogsRequest.cc + src/model/DescribeFlowLogsResult.cc + src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc + src/model/DescribeIPv6TranslatorAclListAttributesResult.cc + src/model/ModifyNatGatewaySpecRequest.cc + src/model/ModifyNatGatewaySpecResult.cc + src/model/DescribeExpressCloudConnectionsRequest.cc + src/model/DescribeExpressCloudConnectionsResult.cc + src/model/DeleteSslVpnClientCertRequest.cc + src/model/DeleteSslVpnClientCertResult.cc + src/model/CreateVSwitchRequest.cc + src/model/CreateVSwitchResult.cc + src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc + src/model/CancelCommonBandwidthPackageIpBandwidthResult.cc + src/model/ModifyEipAddressAttributeRequest.cc + src/model/ModifyEipAddressAttributeResult.cc + src/model/ModifyIPv6TranslatorEntryRequest.cc + src/model/ModifyIPv6TranslatorEntryResult.cc + src/model/DescribePhysicalConnectionOrderRequest.cc + src/model/DescribePhysicalConnectionOrderResult.cc + src/model/DeactiveFlowLogRequest.cc + src/model/DeactiveFlowLogResult.cc + src/model/DeleteNatGatewayRequest.cc + src/model/DeleteNatGatewayResult.cc + src/model/ActiveFlowLogRequest.cc + src/model/ActiveFlowLogResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DeleteIpv6EgressOnlyRuleRequest.cc + src/model/DeleteIpv6EgressOnlyRuleResult.cc + src/model/DeactivateRouterInterfaceRequest.cc + src/model/DeactivateRouterInterfaceResult.cc + src/model/DescribeAccessPointsRequest.cc + src/model/DescribeAccessPointsResult.cc + src/model/ModifySnatEntryRequest.cc + src/model/ModifySnatEntryResult.cc + src/model/CreateIPv6TranslatorAclListRequest.cc + src/model/CreateIPv6TranslatorAclListResult.cc + src/model/DeleteBgpGroupRequest.cc + src/model/DeleteBgpGroupResult.cc + src/model/ReleaseEipAddressRequest.cc + src/model/ReleaseEipAddressResult.cc + src/model/ModifyExpressCloudConnectionBandwidthRequest.cc + src/model/ModifyExpressCloudConnectionBandwidthResult.cc + src/model/CreateVpnPbrRouteEntryRequest.cc + src/model/CreateVpnPbrRouteEntryResult.cc + src/model/DescribeVSwitchesRequest.cc + src/model/DescribeVSwitchesResult.cc + src/model/ModifyRouterInterfaceSpecRequest.cc + src/model/ModifyRouterInterfaceSpecResult.cc + src/model/DescribeVpcsRequest.cc + src/model/DescribeVpcsResult.cc + src/model/ModifyRouterInterfaceAttributeRequest.cc + src/model/ModifyRouterInterfaceAttributeResult.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc + src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc + src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc + src/model/CreatePhysicalConnectionNewRequest.cc + src/model/CreatePhysicalConnectionNewResult.cc + src/model/ModifyBgpGroupAttributeRequest.cc + src/model/ModifyBgpGroupAttributeResult.cc + src/model/ModifyCommonBandwidthPackageAttributeRequest.cc + src/model/ModifyCommonBandwidthPackageAttributeResult.cc + src/model/DeleteForwardEntryRequest.cc + src/model/DeleteForwardEntryResult.cc + src/model/AddCommonBandwidthPackageIpRequest.cc + src/model/AddCommonBandwidthPackageIpResult.cc + src/model/ModifyIpv6InternetBandwidthRequest.cc + src/model/ModifyIpv6InternetBandwidthResult.cc + src/model/DescribeEipGatewayInfoRequest.cc + src/model/DescribeEipGatewayInfoResult.cc + src/model/DescribeVirtualBorderRoutersRequest.cc + src/model/DescribeVirtualBorderRoutersResult.cc + src/model/CreateBgpGroupRequest.cc + src/model/CreateBgpGroupResult.cc + src/model/ModifyExpressCloudConnectionAttributeRequest.cc + src/model/ModifyExpressCloudConnectionAttributeResult.cc + src/model/AssociateGlobalAccelerationInstanceRequest.cc + src/model/AssociateGlobalAccelerationInstanceResult.cc + src/model/DescribeSslVpnServersRequest.cc + src/model/DescribeSslVpnServersResult.cc + src/model/DeleteExpressConnectRequest.cc + src/model/DeleteExpressConnectResult.cc + src/model/DescribeSnatTableEntriesRequest.cc + src/model/DescribeSnatTableEntriesResult.cc + src/model/UnassociateGlobalAccelerationInstanceRequest.cc + src/model/UnassociateGlobalAccelerationInstanceResult.cc + src/model/DeleteCustomerGatewayRequest.cc + src/model/DeleteCustomerGatewayResult.cc + src/model/DeleteIPv6TranslatorRequest.cc + src/model/DeleteIPv6TranslatorResult.cc + src/model/DescribeRouteTableListRequest.cc + src/model/DescribeRouteTableListResult.cc + src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc + src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc + src/model/DescribeCustomerGatewaysRequest.cc + src/model/DescribeCustomerGatewaysResult.cc + src/model/DeleteGlobalAccelerationInstanceRequest.cc + src/model/DeleteGlobalAccelerationInstanceResult.cc + src/model/DeleteVpcRequest.cc + src/model/DeleteVpcResult.cc + src/model/DeleteVpnRouteEntryRequest.cc + src/model/DeleteVpnRouteEntryResult.cc + src/model/DownloadVpnConnectionConfigRequest.cc + src/model/DownloadVpnConnectionConfigResult.cc + src/model/DescribeIPv6TranslatorsRequest.cc + src/model/DescribeIPv6TranslatorsResult.cc + src/model/DeleteVSwitchRequest.cc + src/model/DeleteVSwitchResult.cc + src/model/CreateRouteTableRequest.cc + src/model/CreateRouteTableResult.cc + src/model/CreateBandwidthPackageRequest.cc + src/model/CreateBandwidthPackageResult.cc + src/model/RecoverVirtualBorderRouterRequest.cc + src/model/RecoverVirtualBorderRouterResult.cc + src/model/DeleteSslVpnServerRequest.cc + src/model/DeleteSslVpnServerResult.cc + src/model/CreateCustomerGatewayRequest.cc + src/model/CreateCustomerGatewayResult.cc + src/model/DeleteBandwidthPackageRequest.cc + src/model/DeleteBandwidthPackageResult.cc + src/model/DescribeIpv6GatewaysRequest.cc + src/model/DescribeIpv6GatewaysResult.cc + src/model/DeleteBgpPeerRequest.cc + src/model/DeleteBgpPeerResult.cc + src/model/DeleteNqaRequest.cc + src/model/DeleteNqaResult.cc + src/model/RemoveIPv6TranslatorAclListEntryRequest.cc + src/model/RemoveIPv6TranslatorAclListEntryResult.cc + src/model/ModifyForwardEntryRequest.cc + src/model/ModifyForwardEntryResult.cc src/model/DeleteFlowLogRequest.cc src/model/DeleteFlowLogResult.cc src/model/CreateVpcRequest.cc src/model/CreateVpcResult.cc src/model/CreateIPv6TranslatorRequest.cc src/model/CreateIPv6TranslatorResult.cc - src/model/CreateIPv6TranslatorEntryRequest.cc - src/model/CreateIPv6TranslatorEntryResult.cc - src/model/DescribeForwardTableEntriesRequest.cc - src/model/DescribeForwardTableEntriesResult.cc src/model/ModifyIpv6GatewayAttributeRequest.cc src/model/ModifyIpv6GatewayAttributeResult.cc src/model/UnassociateEipAddressRequest.cc src/model/UnassociateEipAddressResult.cc - src/model/DescribeSslVpnClientCertsRequest.cc - src/model/DescribeSslVpnClientCertsResult.cc src/model/DescribeVpnConnectionRequest.cc src/model/DescribeVpnConnectionResult.cc - src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc - src/model/ModifyGlobalAccelerationInstanceSpecResult.cc + src/model/DeleteNetworkAclRequest.cc + src/model/DeleteNetworkAclResult.cc src/model/AddGlobalAccelerationInstanceIpRequest.cc src/model/AddGlobalAccelerationInstanceIpResult.cc - src/model/DeleteRouterInterfaceRequest.cc - src/model/DeleteRouterInterfaceResult.cc src/model/CreateSslVpnServerRequest.cc src/model/CreateSslVpnServerResult.cc - src/model/DescribeNqasRequest.cc - src/model/DescribeNqasResult.cc - src/model/ModifyFlowLogAttributeRequest.cc - src/model/ModifyFlowLogAttributeResult.cc src/model/ModifyVirtualBorderRouterAttributeRequest.cc src/model/ModifyVirtualBorderRouterAttributeResult.cc - src/model/ModifyNatGatewayAttributeRequest.cc - src/model/ModifyNatGatewayAttributeResult.cc - src/model/DescribeEipMonitorDataRequest.cc - src/model/DescribeEipMonitorDataResult.cc src/model/DeleteVpnGatewayRequest.cc src/model/DeleteVpnGatewayResult.cc src/model/DescribeCustomerGatewayRequest.cc src/model/DescribeCustomerGatewayResult.cc - src/model/ModifyVpnGatewayAttributeRequest.cc - src/model/ModifyVpnGatewayAttributeResult.cc src/model/AllocateIpv6InternetBandwidthRequest.cc src/model/AllocateIpv6InternetBandwidthResult.cc - src/model/AddBgpNetworkRequest.cc - src/model/AddBgpNetworkResult.cc src/model/ModifySslVpnServerRequest.cc src/model/ModifySslVpnServerResult.cc - src/model/DescribeIPv6TranslatorEntriesRequest.cc - src/model/DescribeIPv6TranslatorEntriesResult.cc src/model/DescribeVpnConnectionsRequest.cc src/model/DescribeVpnConnectionsResult.cc src/model/ModifyBandwidthPackageAttributeRequest.cc src/model/ModifyBandwidthPackageAttributeResult.cc - src/model/ConnectRouterInterfaceRequest.cc - src/model/ConnectRouterInterfaceResult.cc src/model/DescribeBgpPeersRequest.cc src/model/DescribeBgpPeersResult.cc - src/model/DescribeIpv6GatewayAttributeRequest.cc - src/model/DescribeIpv6GatewayAttributeResult.cc - src/model/DeleteSnatEntryRequest.cc - src/model/DeleteSnatEntryResult.cc - src/model/CreateNqaRequest.cc - src/model/CreateNqaResult.cc + src/model/ModifyVpnPbrRouteEntryWeightRequest.cc + src/model/ModifyVpnPbrRouteEntryWeightResult.cc src/model/ConvertBandwidthPackageRequest.cc src/model/ConvertBandwidthPackageResult.cc src/model/DescribeHaVipsRequest.cc src/model/DescribeHaVipsResult.cc - src/model/ModifyIpv6GatewaySpecRequest.cc - src/model/ModifyIpv6GatewaySpecResult.cc + src/model/CreateNqaRequest.cc + src/model/CreateNqaResult.cc src/model/GrantInstanceToCenRequest.cc src/model/GrantInstanceToCenResult.cc + src/model/ModifyBgpPeerAttributeRequest.cc + src/model/ModifyBgpPeerAttributeResult.cc src/model/AddBandwidthPackageIpsRequest.cc src/model/AddBandwidthPackageIpsResult.cc - src/model/CreateSnatEntryRequest.cc - src/model/CreateSnatEntryResult.cc - src/model/DeleteCommonBandwidthPackageRequest.cc - src/model/DeleteCommonBandwidthPackageResult.cc - src/model/ModifyPhysicalConnectionAttributeRequest.cc - src/model/ModifyPhysicalConnectionAttributeResult.cc src/model/DescribeNatGatewaysRequest.cc src/model/DescribeNatGatewaysResult.cc - src/model/ModifyVSwitchAttributeRequest.cc - src/model/ModifyVSwitchAttributeResult.cc - src/model/ModifyIPv6TranslatorAclListEntryRequest.cc - src/model/ModifyIPv6TranslatorAclListEntryResult.cc - src/model/EnableVpcClassicLinkRequest.cc - src/model/EnableVpcClassicLinkResult.cc - src/model/DeleteHaVipRequest.cc - src/model/DeleteHaVipResult.cc + src/model/ModifyNetworkAclAttributesRequest.cc + src/model/ModifyNetworkAclAttributesResult.cc src/model/DescribeVpcAttributeRequest.cc src/model/DescribeVpcAttributeResult.cc src/model/ModifyIpv6AddressAttributeRequest.cc @@ -574,28 +768,18 @@ set(vpc_src src/model/DeleteVpnConnectionResult.cc src/model/CreateIpv6GatewayRequest.cc src/model/CreateIpv6GatewayResult.cc - src/model/CreateRouteEntryRequest.cc - src/model/CreateRouteEntryResult.cc - src/model/DescribeBandwidthPackagesRequest.cc - src/model/DescribeBandwidthPackagesResult.cc src/model/DeleteBgpNetworkRequest.cc src/model/DeleteBgpNetworkResult.cc - src/model/DisableVpcClassicLinkRequest.cc - src/model/DisableVpcClassicLinkResult.cc - src/model/CreateRouterInterfaceRequest.cc - src/model/CreateRouterInterfaceResult.cc + src/model/DescribeBandwidthPackagesRequest.cc + src/model/DescribeBandwidthPackagesResult.cc src/model/ModifyVpnConnectionAttributeRequest.cc src/model/ModifyVpnConnectionAttributeResult.cc - src/model/DescribeFlowLogsRequest.cc - src/model/DescribeFlowLogsResult.cc - src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc - src/model/DescribeIPv6TranslatorAclListAttributesResult.cc src/model/RemoveGlobalAccelerationInstanceIpRequest.cc src/model/RemoveGlobalAccelerationInstanceIpResult.cc - src/model/ModifyNatGatewaySpecRequest.cc - src/model/ModifyNatGatewaySpecResult.cc src/model/DescribeBgpGroupsRequest.cc src/model/DescribeBgpGroupsResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc src/model/DescribeGrantRulesToCenRequest.cc src/model/DescribeGrantRulesToCenResult.cc src/model/DeleteIpv6InternetBandwidthRequest.cc @@ -604,136 +788,104 @@ set(vpc_src src/model/ModifyVpcAttributeResult.cc src/model/RemoveBandwidthPackageIpsRequest.cc src/model/RemoveBandwidthPackageIpsResult.cc - src/model/DeleteSslVpnClientCertRequest.cc - src/model/DeleteSslVpnClientCertResult.cc - src/model/CreateVSwitchRequest.cc - src/model/CreateVSwitchResult.cc src/model/ModifyCustomerGatewayAttributeRequest.cc src/model/ModifyCustomerGatewayAttributeResult.cc src/model/EnablePhysicalConnectionRequest.cc src/model/EnablePhysicalConnectionResult.cc - src/model/ModifyEipAddressAttributeRequest.cc - src/model/ModifyEipAddressAttributeResult.cc + src/model/CreateVpnRouteEntryRequest.cc + src/model/CreateVpnRouteEntryResult.cc src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc src/model/ModifyCommonBandwidthPackagePayTypeResult.cc src/model/DescribeVSwitchAttributesRequest.cc src/model/DescribeVSwitchAttributesResult.cc - src/model/ModifyIPv6TranslatorEntryRequest.cc - src/model/ModifyIPv6TranslatorEntryResult.cc src/model/CreateCommonBandwidthPackageRequest.cc src/model/CreateCommonBandwidthPackageResult.cc - src/model/DescribePhysicalConnectionOrderRequest.cc - src/model/DescribePhysicalConnectionOrderResult.cc - src/model/CreateForwardEntryRequest.cc - src/model/CreateForwardEntryResult.cc src/model/DescribeRouterInterfacesRequest.cc src/model/DescribeRouterInterfacesResult.cc - src/model/DeactiveFlowLogRequest.cc - src/model/DeactiveFlowLogResult.cc + src/model/CreateForwardEntryRequest.cc + src/model/CreateForwardEntryResult.cc src/model/CreateFlowLogRequest.cc src/model/CreateFlowLogResult.cc - src/model/DeleteNatGatewayRequest.cc - src/model/DeleteNatGatewayResult.cc - src/model/ActiveFlowLogRequest.cc - src/model/ActiveFlowLogResult.cc - src/model/DescribeZonesRequest.cc - src/model/DescribeZonesResult.cc - src/model/DeleteIpv6EgressOnlyRuleRequest.cc - src/model/DeleteIpv6EgressOnlyRuleResult.cc - src/model/DeactivateRouterInterfaceRequest.cc - src/model/DeactivateRouterInterfaceResult.cc - src/model/ModifySnatEntryRequest.cc - src/model/ModifySnatEntryResult.cc + src/model/UnassociateNetworkAclRequest.cc + src/model/UnassociateNetworkAclResult.cc src/model/DescribeIPv6TranslatorAclListsRequest.cc src/model/DescribeIPv6TranslatorAclListsResult.cc - src/model/DescribeAccessPointsRequest.cc - src/model/DescribeAccessPointsResult.cc src/model/CreateSslVpnClientCertRequest.cc src/model/CreateSslVpnClientCertResult.cc - src/model/CreateIPv6TranslatorAclListRequest.cc - src/model/CreateIPv6TranslatorAclListResult.cc src/model/CreateVirtualBorderRouterRequest.cc src/model/CreateVirtualBorderRouterResult.cc - src/model/DeleteBgpGroupRequest.cc - src/model/DeleteBgpGroupResult.cc + src/model/DescribeNetworkAclsRequest.cc + src/model/DescribeNetworkAclsResult.cc src/model/DescribeIpv6AddressesRequest.cc src/model/DescribeIpv6AddressesResult.cc src/model/DeleteIPv6TranslatorEntryRequest.cc src/model/DeleteIPv6TranslatorEntryResult.cc - src/model/ReleaseEipAddressRequest.cc - src/model/ReleaseEipAddressResult.cc + src/model/UnTagResourcesRequest.cc + src/model/UnTagResourcesResult.cc + src/model/CreateNetworkAclRequest.cc + src/model/CreateNetworkAclResult.cc + src/model/CreatePhysicalConnectionSetupOrderRequest.cc + src/model/CreatePhysicalConnectionSetupOrderResult.cc src/model/CreateBgpPeerRequest.cc src/model/CreateBgpPeerResult.cc src/model/DescribeRouteTablesRequest.cc src/model/DescribeRouteTablesResult.cc - src/model/DescribeVSwitchesRequest.cc - src/model/DescribeVSwitchesResult.cc - src/model/ModifyRouterInterfaceSpecRequest.cc - src/model/ModifyRouterInterfaceSpecResult.cc - src/model/DescribeVpcsRequest.cc - src/model/DescribeVpcsResult.cc + src/model/DescribeRouteEntryListRequest.cc + src/model/DescribeRouteEntryListResult.cc src/model/CreatePhysicalConnectionRequest.cc src/model/CreatePhysicalConnectionResult.cc + src/model/ApplyPhysicalConnectionLOARequest.cc + src/model/ApplyPhysicalConnectionLOAResult.cc src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc + src/model/DeleteVpnPbrRouteEntryRequest.cc + src/model/DeleteVpnPbrRouteEntryResult.cc src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc src/model/AssociateHaVipRequest.cc src/model/AssociateHaVipResult.cc - src/model/ModifyRouterInterfaceAttributeRequest.cc - src/model/ModifyRouterInterfaceAttributeResult.cc src/model/AssociateRouteTableRequest.cc src/model/AssociateRouteTableResult.cc src/model/ModifyIPv6TranslatorAclAttributeRequest.cc src/model/ModifyIPv6TranslatorAclAttributeResult.cc - src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc - src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc - src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc - src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc - src/model/DeleteRouteEntryRequest.cc - src/model/DeleteRouteEntryResult.cc src/model/DeleteVirtualBorderRouterRequest.cc src/model/DeleteVirtualBorderRouterResult.cc + src/model/AssociateNetworkAclRequest.cc + src/model/AssociateNetworkAclResult.cc + src/model/DeleteRouteEntryRequest.cc + src/model/DeleteRouteEntryResult.cc src/model/ModifyCommonBandwidthPackageSpecRequest.cc src/model/ModifyCommonBandwidthPackageSpecResult.cc - src/model/CreatePhysicalConnectionNewRequest.cc - src/model/CreatePhysicalConnectionNewResult.cc src/model/TerminatePhysicalConnectionRequest.cc src/model/TerminatePhysicalConnectionResult.cc src/model/DescribeIpv6EgressOnlyRulesRequest.cc src/model/DescribeIpv6EgressOnlyRulesResult.cc + src/model/DescribePhysicalConnectionLOARequest.cc + src/model/DescribePhysicalConnectionLOAResult.cc src/model/DescribeVpnGatewayRequest.cc src/model/DescribeVpnGatewayResult.cc src/model/RevokeInstanceFromCenRequest.cc src/model/RevokeInstanceFromCenResult.cc src/model/DeleteRouteTableRequest.cc src/model/DeleteRouteTableResult.cc - src/model/ModifyBgpGroupAttributeRequest.cc - src/model/ModifyBgpGroupAttributeResult.cc - src/model/ModifyCommonBandwidthPackageAttributeRequest.cc - src/model/ModifyCommonBandwidthPackageAttributeResult.cc + src/model/DescribeVpnRouteEntriesRequest.cc + src/model/DescribeVpnRouteEntriesResult.cc src/model/UnassociateRouteTableRequest.cc src/model/UnassociateRouteTableResult.cc - src/model/DeleteForwardEntryRequest.cc - src/model/DeleteForwardEntryResult.cc - src/model/AddCommonBandwidthPackageIpRequest.cc - src/model/AddCommonBandwidthPackageIpResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc - src/model/ModifyIpv6InternetBandwidthRequest.cc - src/model/ModifyIpv6InternetBandwidthResult.cc + src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc + src/model/ModifyCommonBandwidthPackageIpBandwidthResult.cc + src/model/CompletePhysicalConnectionLOARequest.cc + src/model/CompletePhysicalConnectionLOAResult.cc src/model/DescribePhysicalConnectionsRequest.cc src/model/DescribePhysicalConnectionsResult.cc src/model/DescribeVpnGatewaysRequest.cc src/model/DescribeVpnGatewaysResult.cc - src/model/DescribeVirtualBorderRoutersRequest.cc - src/model/DescribeVirtualBorderRoutersResult.cc src/model/CancelPhysicalConnectionRequest.cc src/model/CancelPhysicalConnectionResult.cc src/model/CreateGlobalAccelerationInstanceRequest.cc src/model/CreateGlobalAccelerationInstanceResult.cc - src/model/CreateBgpGroupRequest.cc - src/model/CreateBgpGroupResult.cc src/model/DescribeVRoutersRequest.cc src/model/DescribeVRoutersResult.cc src/model/ModifyNqaRequest.cc @@ -744,18 +896,14 @@ set(vpc_src src/model/DescribeSslVpnClientCertResult.cc src/model/UnassociateHaVipRequest.cc src/model/UnassociateHaVipResult.cc + src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc + src/model/CreatePhysicalConnectionOccupancyOrderResult.cc src/model/DescribeCommonBandwidthPackagesRequest.cc src/model/DescribeCommonBandwidthPackagesResult.cc src/model/ModifyHaVipAttributeRequest.cc src/model/ModifyHaVipAttributeResult.cc src/model/DeleteIPv6TranslatorAclListRequest.cc src/model/DeleteIPv6TranslatorAclListResult.cc - src/model/AssociateGlobalAccelerationInstanceRequest.cc - src/model/AssociateGlobalAccelerationInstanceResult.cc - src/model/DescribeSslVpnServersRequest.cc - src/model/DescribeSslVpnServersResult.cc - src/model/DescribeSnatTableEntriesRequest.cc - src/model/DescribeSnatTableEntriesResult.cc src/model/ModifyVRouterAttributeRequest.cc src/model/ModifyVRouterAttributeResult.cc src/model/CreateVpnGatewayRequest.cc diff --git a/vpc/include/alibabacloud/vpc/VpcClient.h b/vpc/include/alibabacloud/vpc/VpcClient.h index f206d5f5d..9a90bd39e 100644 --- a/vpc/include/alibabacloud/vpc/VpcClient.h +++ b/vpc/include/alibabacloud/vpc/VpcClient.h @@ -22,174 +22,294 @@ #include #include #include "VpcExport.h" -#include "model/DeleteCustomerGatewayRequest.h" -#include "model/DeleteCustomerGatewayResult.h" -#include "model/UnassociateGlobalAccelerationInstanceRequest.h" -#include "model/UnassociateGlobalAccelerationInstanceResult.h" -#include "model/DeleteIPv6TranslatorRequest.h" -#include "model/DeleteIPv6TranslatorResult.h" -#include "model/DescribeRouteTableListRequest.h" -#include "model/DescribeRouteTableListResult.h" -#include "model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h" -#include "model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h" -#include "model/DeleteGlobalAccelerationInstanceRequest.h" -#include "model/DeleteGlobalAccelerationInstanceResult.h" -#include "model/DescribeCustomerGatewaysRequest.h" -#include "model/DescribeCustomerGatewaysResult.h" #include "model/DescribeGlobalAccelerationInstancesRequest.h" #include "model/DescribeGlobalAccelerationInstancesResult.h" #include "model/ModifySslVpnClientCertRequest.h" #include "model/ModifySslVpnClientCertResult.h" -#include "model/DeleteVpcRequest.h" -#include "model/DeleteVpcResult.h" #include "model/DescribeBgpNetworksRequest.h" #include "model/DescribeBgpNetworksResult.h" -#include "model/DownloadVpnConnectionConfigRequest.h" -#include "model/DownloadVpnConnectionConfigResult.h" #include "model/RemoveCommonBandwidthPackageIpRequest.h" #include "model/RemoveCommonBandwidthPackageIpResult.h" -#include "model/DescribeIPv6TranslatorsRequest.h" -#include "model/DescribeIPv6TranslatorsResult.h" +#include "model/UpdateNetworkAclEntriesRequest.h" +#include "model/UpdateNetworkAclEntriesResult.h" #include "model/ModifyBandwidthPackageSpecRequest.h" #include "model/ModifyBandwidthPackageSpecResult.h" #include "model/CreateNatGatewayRequest.h" #include "model/CreateNatGatewayResult.h" -#include "model/DeleteVSwitchRequest.h" -#include "model/DeleteVSwitchResult.h" #include "model/AddIPv6TranslatorAclListEntryRequest.h" #include "model/AddIPv6TranslatorAclListEntryResult.h" -#include "model/CreateRouteTableRequest.h" -#include "model/CreateRouteTableResult.h" #include "model/CreateHaVipRequest.h" #include "model/CreateHaVipResult.h" #include "model/DeleteIpv6GatewayRequest.h" #include "model/DeleteIpv6GatewayResult.h" -#include "model/CreateBandwidthPackageRequest.h" -#include "model/CreateBandwidthPackageResult.h" -#include "model/RecoverVirtualBorderRouterRequest.h" -#include "model/RecoverVirtualBorderRouterResult.h" #include "model/AssociateEipAddressRequest.h" #include "model/AssociateEipAddressResult.h" #include "model/DescribeEipAddressesRequest.h" #include "model/DescribeEipAddressesResult.h" #include "model/ActivateRouterInterfaceRequest.h" #include "model/ActivateRouterInterfaceResult.h" -#include "model/CreateCustomerGatewayRequest.h" -#include "model/CreateCustomerGatewayResult.h" -#include "model/DeleteSslVpnServerRequest.h" -#include "model/DeleteSslVpnServerResult.h" -#include "model/DeleteBandwidthPackageRequest.h" -#include "model/DeleteBandwidthPackageResult.h" -#include "model/DeleteBgpPeerRequest.h" -#include "model/DeleteBgpPeerResult.h" -#include "model/DescribeIpv6GatewaysRequest.h" -#include "model/DescribeIpv6GatewaysResult.h" +#include "model/CopyNetworkAclEntriesRequest.h" +#include "model/CopyNetworkAclEntriesResult.h" #include "model/TerminateVirtualBorderRouterRequest.h" #include "model/TerminateVirtualBorderRouterResult.h" -#include "model/DeleteNqaRequest.h" -#include "model/DeleteNqaResult.h" -#include "model/RemoveIPv6TranslatorAclListEntryRequest.h" -#include "model/RemoveIPv6TranslatorAclListEntryResult.h" #include "model/ModifyRouteEntryRequest.h" #include "model/ModifyRouteEntryResult.h" #include "model/CreateIpv6EgressOnlyRuleRequest.h" #include "model/CreateIpv6EgressOnlyRuleResult.h" #include "model/ModifyRouteTableAttributesRequest.h" #include "model/ModifyRouteTableAttributesResult.h" -#include "model/ModifyForwardEntryRequest.h" -#include "model/ModifyForwardEntryResult.h" #include "model/DeletePhysicalConnectionRequest.h" #include "model/DeletePhysicalConnectionResult.h" +#include "model/PublishVpnRouteEntryRequest.h" +#include "model/PublishVpnRouteEntryResult.h" +#include "model/CreateIPv6TranslatorEntryRequest.h" +#include "model/CreateIPv6TranslatorEntryResult.h" +#include "model/DescribeForwardTableEntriesRequest.h" +#include "model/DescribeForwardTableEntriesResult.h" +#include "model/DescribeSslVpnClientCertsRequest.h" +#include "model/DescribeSslVpnClientCertsResult.h" +#include "model/ModifyGlobalAccelerationInstanceSpecRequest.h" +#include "model/ModifyGlobalAccelerationInstanceSpecResult.h" +#include "model/DescribeVpnSslServerLogsRequest.h" +#include "model/DescribeVpnSslServerLogsResult.h" +#include "model/DeleteRouterInterfaceRequest.h" +#include "model/DeleteRouterInterfaceResult.h" +#include "model/ModifyFlowLogAttributeRequest.h" +#include "model/ModifyFlowLogAttributeResult.h" +#include "model/DescribeNqasRequest.h" +#include "model/DescribeNqasResult.h" +#include "model/ModifyNatGatewayAttributeRequest.h" +#include "model/ModifyNatGatewayAttributeResult.h" +#include "model/DescribeEipMonitorDataRequest.h" +#include "model/DescribeEipMonitorDataResult.h" +#include "model/CreateExpressCloudConnectionRequest.h" +#include "model/CreateExpressCloudConnectionResult.h" +#include "model/ModifyVpnRouteEntryWeightRequest.h" +#include "model/ModifyVpnRouteEntryWeightResult.h" +#include "model/ModifyVpnGatewayAttributeRequest.h" +#include "model/ModifyVpnGatewayAttributeResult.h" +#include "model/AddBgpNetworkRequest.h" +#include "model/AddBgpNetworkResult.h" +#include "model/DescribeIPv6TranslatorEntriesRequest.h" +#include "model/DescribeIPv6TranslatorEntriesResult.h" +#include "model/ConnectRouterInterfaceRequest.h" +#include "model/ConnectRouterInterfaceResult.h" +#include "model/DescribeIpv6GatewayAttributeRequest.h" +#include "model/DescribeIpv6GatewayAttributeResult.h" +#include "model/DescribeVpnPbrRouteEntriesRequest.h" +#include "model/DescribeVpnPbrRouteEntriesResult.h" +#include "model/DeleteSnatEntryRequest.h" +#include "model/DeleteSnatEntryResult.h" +#include "model/ModifyIpv6GatewaySpecRequest.h" +#include "model/ModifyIpv6GatewaySpecResult.h" +#include "model/DeleteCommonBandwidthPackageRequest.h" +#include "model/DeleteCommonBandwidthPackageResult.h" +#include "model/CreateSnatEntryRequest.h" +#include "model/CreateSnatEntryResult.h" +#include "model/ModifyPhysicalConnectionAttributeRequest.h" +#include "model/ModifyPhysicalConnectionAttributeResult.h" +#include "model/ModifyVSwitchAttributeRequest.h" +#include "model/ModifyVSwitchAttributeResult.h" +#include "model/EnableVpcClassicLinkRequest.h" +#include "model/EnableVpcClassicLinkResult.h" +#include "model/ModifyIPv6TranslatorAclListEntryRequest.h" +#include "model/ModifyIPv6TranslatorAclListEntryResult.h" +#include "model/DeleteHaVipRequest.h" +#include "model/DeleteHaVipResult.h" +#include "model/DescribeNetworkAclAttributesRequest.h" +#include "model/DescribeNetworkAclAttributesResult.h" +#include "model/CreateRouteEntryRequest.h" +#include "model/CreateRouteEntryResult.h" +#include "model/DisableVpcClassicLinkRequest.h" +#include "model/DisableVpcClassicLinkResult.h" +#include "model/CreateRouterInterfaceRequest.h" +#include "model/CreateRouterInterfaceResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/DescribeFlowLogsRequest.h" +#include "model/DescribeFlowLogsResult.h" +#include "model/DescribeIPv6TranslatorAclListAttributesRequest.h" +#include "model/DescribeIPv6TranslatorAclListAttributesResult.h" +#include "model/ModifyNatGatewaySpecRequest.h" +#include "model/ModifyNatGatewaySpecResult.h" +#include "model/DescribeExpressCloudConnectionsRequest.h" +#include "model/DescribeExpressCloudConnectionsResult.h" +#include "model/DeleteSslVpnClientCertRequest.h" +#include "model/DeleteSslVpnClientCertResult.h" +#include "model/CreateVSwitchRequest.h" +#include "model/CreateVSwitchResult.h" +#include "model/CancelCommonBandwidthPackageIpBandwidthRequest.h" +#include "model/CancelCommonBandwidthPackageIpBandwidthResult.h" +#include "model/ModifyEipAddressAttributeRequest.h" +#include "model/ModifyEipAddressAttributeResult.h" +#include "model/ModifyIPv6TranslatorEntryRequest.h" +#include "model/ModifyIPv6TranslatorEntryResult.h" +#include "model/DescribePhysicalConnectionOrderRequest.h" +#include "model/DescribePhysicalConnectionOrderResult.h" +#include "model/DeactiveFlowLogRequest.h" +#include "model/DeactiveFlowLogResult.h" +#include "model/DeleteNatGatewayRequest.h" +#include "model/DeleteNatGatewayResult.h" +#include "model/ActiveFlowLogRequest.h" +#include "model/ActiveFlowLogResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/DeleteIpv6EgressOnlyRuleRequest.h" +#include "model/DeleteIpv6EgressOnlyRuleResult.h" +#include "model/DeactivateRouterInterfaceRequest.h" +#include "model/DeactivateRouterInterfaceResult.h" +#include "model/DescribeAccessPointsRequest.h" +#include "model/DescribeAccessPointsResult.h" +#include "model/ModifySnatEntryRequest.h" +#include "model/ModifySnatEntryResult.h" +#include "model/CreateIPv6TranslatorAclListRequest.h" +#include "model/CreateIPv6TranslatorAclListResult.h" +#include "model/DeleteBgpGroupRequest.h" +#include "model/DeleteBgpGroupResult.h" +#include "model/ReleaseEipAddressRequest.h" +#include "model/ReleaseEipAddressResult.h" +#include "model/ModifyExpressCloudConnectionBandwidthRequest.h" +#include "model/ModifyExpressCloudConnectionBandwidthResult.h" +#include "model/CreateVpnPbrRouteEntryRequest.h" +#include "model/CreateVpnPbrRouteEntryResult.h" +#include "model/DescribeVSwitchesRequest.h" +#include "model/DescribeVSwitchesResult.h" +#include "model/ModifyRouterInterfaceSpecRequest.h" +#include "model/ModifyRouterInterfaceSpecResult.h" +#include "model/DescribeVpcsRequest.h" +#include "model/DescribeVpcsResult.h" +#include "model/ModifyRouterInterfaceAttributeRequest.h" +#include "model/ModifyRouterInterfaceAttributeResult.h" +#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h" +#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h" +#include "model/ModifyGlobalAccelerationInstanceAttributesRequest.h" +#include "model/ModifyGlobalAccelerationInstanceAttributesResult.h" +#include "model/CreatePhysicalConnectionNewRequest.h" +#include "model/CreatePhysicalConnectionNewResult.h" +#include "model/ModifyBgpGroupAttributeRequest.h" +#include "model/ModifyBgpGroupAttributeResult.h" +#include "model/ModifyCommonBandwidthPackageAttributeRequest.h" +#include "model/ModifyCommonBandwidthPackageAttributeResult.h" +#include "model/DeleteForwardEntryRequest.h" +#include "model/DeleteForwardEntryResult.h" +#include "model/AddCommonBandwidthPackageIpRequest.h" +#include "model/AddCommonBandwidthPackageIpResult.h" +#include "model/ModifyIpv6InternetBandwidthRequest.h" +#include "model/ModifyIpv6InternetBandwidthResult.h" +#include "model/DescribeEipGatewayInfoRequest.h" +#include "model/DescribeEipGatewayInfoResult.h" +#include "model/DescribeVirtualBorderRoutersRequest.h" +#include "model/DescribeVirtualBorderRoutersResult.h" +#include "model/CreateBgpGroupRequest.h" +#include "model/CreateBgpGroupResult.h" +#include "model/ModifyExpressCloudConnectionAttributeRequest.h" +#include "model/ModifyExpressCloudConnectionAttributeResult.h" +#include "model/AssociateGlobalAccelerationInstanceRequest.h" +#include "model/AssociateGlobalAccelerationInstanceResult.h" +#include "model/DescribeSslVpnServersRequest.h" +#include "model/DescribeSslVpnServersResult.h" +#include "model/DeleteExpressConnectRequest.h" +#include "model/DeleteExpressConnectResult.h" +#include "model/DescribeSnatTableEntriesRequest.h" +#include "model/DescribeSnatTableEntriesResult.h" +#include "model/UnassociateGlobalAccelerationInstanceRequest.h" +#include "model/UnassociateGlobalAccelerationInstanceResult.h" +#include "model/DeleteCustomerGatewayRequest.h" +#include "model/DeleteCustomerGatewayResult.h" +#include "model/DeleteIPv6TranslatorRequest.h" +#include "model/DeleteIPv6TranslatorResult.h" +#include "model/DescribeRouteTableListRequest.h" +#include "model/DescribeRouteTableListResult.h" +#include "model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.h" +#include "model/AssociatePhysicalConnectionToVirtualBorderRouterResult.h" +#include "model/DescribeCustomerGatewaysRequest.h" +#include "model/DescribeCustomerGatewaysResult.h" +#include "model/DeleteGlobalAccelerationInstanceRequest.h" +#include "model/DeleteGlobalAccelerationInstanceResult.h" +#include "model/DeleteVpcRequest.h" +#include "model/DeleteVpcResult.h" +#include "model/DeleteVpnRouteEntryRequest.h" +#include "model/DeleteVpnRouteEntryResult.h" +#include "model/DownloadVpnConnectionConfigRequest.h" +#include "model/DownloadVpnConnectionConfigResult.h" +#include "model/DescribeIPv6TranslatorsRequest.h" +#include "model/DescribeIPv6TranslatorsResult.h" +#include "model/DeleteVSwitchRequest.h" +#include "model/DeleteVSwitchResult.h" +#include "model/CreateRouteTableRequest.h" +#include "model/CreateRouteTableResult.h" +#include "model/CreateBandwidthPackageRequest.h" +#include "model/CreateBandwidthPackageResult.h" +#include "model/RecoverVirtualBorderRouterRequest.h" +#include "model/RecoverVirtualBorderRouterResult.h" +#include "model/DeleteSslVpnServerRequest.h" +#include "model/DeleteSslVpnServerResult.h" +#include "model/CreateCustomerGatewayRequest.h" +#include "model/CreateCustomerGatewayResult.h" +#include "model/DeleteBandwidthPackageRequest.h" +#include "model/DeleteBandwidthPackageResult.h" +#include "model/DescribeIpv6GatewaysRequest.h" +#include "model/DescribeIpv6GatewaysResult.h" +#include "model/DeleteBgpPeerRequest.h" +#include "model/DeleteBgpPeerResult.h" +#include "model/DeleteNqaRequest.h" +#include "model/DeleteNqaResult.h" +#include "model/RemoveIPv6TranslatorAclListEntryRequest.h" +#include "model/RemoveIPv6TranslatorAclListEntryResult.h" +#include "model/ModifyForwardEntryRequest.h" +#include "model/ModifyForwardEntryResult.h" #include "model/DeleteFlowLogRequest.h" #include "model/DeleteFlowLogResult.h" #include "model/CreateVpcRequest.h" #include "model/CreateVpcResult.h" #include "model/CreateIPv6TranslatorRequest.h" #include "model/CreateIPv6TranslatorResult.h" -#include "model/CreateIPv6TranslatorEntryRequest.h" -#include "model/CreateIPv6TranslatorEntryResult.h" -#include "model/DescribeForwardTableEntriesRequest.h" -#include "model/DescribeForwardTableEntriesResult.h" #include "model/ModifyIpv6GatewayAttributeRequest.h" #include "model/ModifyIpv6GatewayAttributeResult.h" #include "model/UnassociateEipAddressRequest.h" #include "model/UnassociateEipAddressResult.h" -#include "model/DescribeSslVpnClientCertsRequest.h" -#include "model/DescribeSslVpnClientCertsResult.h" #include "model/DescribeVpnConnectionRequest.h" #include "model/DescribeVpnConnectionResult.h" -#include "model/ModifyGlobalAccelerationInstanceSpecRequest.h" -#include "model/ModifyGlobalAccelerationInstanceSpecResult.h" +#include "model/DeleteNetworkAclRequest.h" +#include "model/DeleteNetworkAclResult.h" #include "model/AddGlobalAccelerationInstanceIpRequest.h" #include "model/AddGlobalAccelerationInstanceIpResult.h" -#include "model/DeleteRouterInterfaceRequest.h" -#include "model/DeleteRouterInterfaceResult.h" #include "model/CreateSslVpnServerRequest.h" #include "model/CreateSslVpnServerResult.h" -#include "model/DescribeNqasRequest.h" -#include "model/DescribeNqasResult.h" -#include "model/ModifyFlowLogAttributeRequest.h" -#include "model/ModifyFlowLogAttributeResult.h" #include "model/ModifyVirtualBorderRouterAttributeRequest.h" #include "model/ModifyVirtualBorderRouterAttributeResult.h" -#include "model/ModifyNatGatewayAttributeRequest.h" -#include "model/ModifyNatGatewayAttributeResult.h" -#include "model/DescribeEipMonitorDataRequest.h" -#include "model/DescribeEipMonitorDataResult.h" #include "model/DeleteVpnGatewayRequest.h" #include "model/DeleteVpnGatewayResult.h" #include "model/DescribeCustomerGatewayRequest.h" #include "model/DescribeCustomerGatewayResult.h" -#include "model/ModifyVpnGatewayAttributeRequest.h" -#include "model/ModifyVpnGatewayAttributeResult.h" #include "model/AllocateIpv6InternetBandwidthRequest.h" #include "model/AllocateIpv6InternetBandwidthResult.h" -#include "model/AddBgpNetworkRequest.h" -#include "model/AddBgpNetworkResult.h" #include "model/ModifySslVpnServerRequest.h" #include "model/ModifySslVpnServerResult.h" -#include "model/DescribeIPv6TranslatorEntriesRequest.h" -#include "model/DescribeIPv6TranslatorEntriesResult.h" #include "model/DescribeVpnConnectionsRequest.h" #include "model/DescribeVpnConnectionsResult.h" #include "model/ModifyBandwidthPackageAttributeRequest.h" #include "model/ModifyBandwidthPackageAttributeResult.h" -#include "model/ConnectRouterInterfaceRequest.h" -#include "model/ConnectRouterInterfaceResult.h" #include "model/DescribeBgpPeersRequest.h" #include "model/DescribeBgpPeersResult.h" -#include "model/DescribeIpv6GatewayAttributeRequest.h" -#include "model/DescribeIpv6GatewayAttributeResult.h" -#include "model/DeleteSnatEntryRequest.h" -#include "model/DeleteSnatEntryResult.h" -#include "model/CreateNqaRequest.h" -#include "model/CreateNqaResult.h" +#include "model/ModifyVpnPbrRouteEntryWeightRequest.h" +#include "model/ModifyVpnPbrRouteEntryWeightResult.h" #include "model/ConvertBandwidthPackageRequest.h" #include "model/ConvertBandwidthPackageResult.h" #include "model/DescribeHaVipsRequest.h" #include "model/DescribeHaVipsResult.h" -#include "model/ModifyIpv6GatewaySpecRequest.h" -#include "model/ModifyIpv6GatewaySpecResult.h" +#include "model/CreateNqaRequest.h" +#include "model/CreateNqaResult.h" #include "model/GrantInstanceToCenRequest.h" #include "model/GrantInstanceToCenResult.h" +#include "model/ModifyBgpPeerAttributeRequest.h" +#include "model/ModifyBgpPeerAttributeResult.h" #include "model/AddBandwidthPackageIpsRequest.h" #include "model/AddBandwidthPackageIpsResult.h" -#include "model/CreateSnatEntryRequest.h" -#include "model/CreateSnatEntryResult.h" -#include "model/DeleteCommonBandwidthPackageRequest.h" -#include "model/DeleteCommonBandwidthPackageResult.h" -#include "model/ModifyPhysicalConnectionAttributeRequest.h" -#include "model/ModifyPhysicalConnectionAttributeResult.h" #include "model/DescribeNatGatewaysRequest.h" #include "model/DescribeNatGatewaysResult.h" -#include "model/ModifyVSwitchAttributeRequest.h" -#include "model/ModifyVSwitchAttributeResult.h" -#include "model/ModifyIPv6TranslatorAclListEntryRequest.h" -#include "model/ModifyIPv6TranslatorAclListEntryResult.h" -#include "model/EnableVpcClassicLinkRequest.h" -#include "model/EnableVpcClassicLinkResult.h" -#include "model/DeleteHaVipRequest.h" -#include "model/DeleteHaVipResult.h" +#include "model/ModifyNetworkAclAttributesRequest.h" +#include "model/ModifyNetworkAclAttributesResult.h" #include "model/DescribeVpcAttributeRequest.h" #include "model/DescribeVpcAttributeResult.h" #include "model/ModifyIpv6AddressAttributeRequest.h" @@ -204,28 +324,18 @@ #include "model/DeleteVpnConnectionResult.h" #include "model/CreateIpv6GatewayRequest.h" #include "model/CreateIpv6GatewayResult.h" -#include "model/CreateRouteEntryRequest.h" -#include "model/CreateRouteEntryResult.h" -#include "model/DescribeBandwidthPackagesRequest.h" -#include "model/DescribeBandwidthPackagesResult.h" #include "model/DeleteBgpNetworkRequest.h" #include "model/DeleteBgpNetworkResult.h" -#include "model/DisableVpcClassicLinkRequest.h" -#include "model/DisableVpcClassicLinkResult.h" -#include "model/CreateRouterInterfaceRequest.h" -#include "model/CreateRouterInterfaceResult.h" +#include "model/DescribeBandwidthPackagesRequest.h" +#include "model/DescribeBandwidthPackagesResult.h" #include "model/ModifyVpnConnectionAttributeRequest.h" #include "model/ModifyVpnConnectionAttributeResult.h" -#include "model/DescribeFlowLogsRequest.h" -#include "model/DescribeFlowLogsResult.h" -#include "model/DescribeIPv6TranslatorAclListAttributesRequest.h" -#include "model/DescribeIPv6TranslatorAclListAttributesResult.h" #include "model/RemoveGlobalAccelerationInstanceIpRequest.h" #include "model/RemoveGlobalAccelerationInstanceIpResult.h" -#include "model/ModifyNatGatewaySpecRequest.h" -#include "model/ModifyNatGatewaySpecResult.h" #include "model/DescribeBgpGroupsRequest.h" #include "model/DescribeBgpGroupsResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" #include "model/DescribeGrantRulesToCenRequest.h" #include "model/DescribeGrantRulesToCenResult.h" #include "model/DeleteIpv6InternetBandwidthRequest.h" @@ -234,136 +344,104 @@ #include "model/ModifyVpcAttributeResult.h" #include "model/RemoveBandwidthPackageIpsRequest.h" #include "model/RemoveBandwidthPackageIpsResult.h" -#include "model/DeleteSslVpnClientCertRequest.h" -#include "model/DeleteSslVpnClientCertResult.h" -#include "model/CreateVSwitchRequest.h" -#include "model/CreateVSwitchResult.h" #include "model/ModifyCustomerGatewayAttributeRequest.h" #include "model/ModifyCustomerGatewayAttributeResult.h" #include "model/EnablePhysicalConnectionRequest.h" #include "model/EnablePhysicalConnectionResult.h" -#include "model/ModifyEipAddressAttributeRequest.h" -#include "model/ModifyEipAddressAttributeResult.h" +#include "model/CreateVpnRouteEntryRequest.h" +#include "model/CreateVpnRouteEntryResult.h" #include "model/ModifyCommonBandwidthPackagePayTypeRequest.h" #include "model/ModifyCommonBandwidthPackagePayTypeResult.h" #include "model/DescribeVSwitchAttributesRequest.h" #include "model/DescribeVSwitchAttributesResult.h" -#include "model/ModifyIPv6TranslatorEntryRequest.h" -#include "model/ModifyIPv6TranslatorEntryResult.h" #include "model/CreateCommonBandwidthPackageRequest.h" #include "model/CreateCommonBandwidthPackageResult.h" -#include "model/DescribePhysicalConnectionOrderRequest.h" -#include "model/DescribePhysicalConnectionOrderResult.h" -#include "model/CreateForwardEntryRequest.h" -#include "model/CreateForwardEntryResult.h" #include "model/DescribeRouterInterfacesRequest.h" #include "model/DescribeRouterInterfacesResult.h" -#include "model/DeactiveFlowLogRequest.h" -#include "model/DeactiveFlowLogResult.h" +#include "model/CreateForwardEntryRequest.h" +#include "model/CreateForwardEntryResult.h" #include "model/CreateFlowLogRequest.h" #include "model/CreateFlowLogResult.h" -#include "model/DeleteNatGatewayRequest.h" -#include "model/DeleteNatGatewayResult.h" -#include "model/ActiveFlowLogRequest.h" -#include "model/ActiveFlowLogResult.h" -#include "model/DescribeZonesRequest.h" -#include "model/DescribeZonesResult.h" -#include "model/DeleteIpv6EgressOnlyRuleRequest.h" -#include "model/DeleteIpv6EgressOnlyRuleResult.h" -#include "model/DeactivateRouterInterfaceRequest.h" -#include "model/DeactivateRouterInterfaceResult.h" -#include "model/ModifySnatEntryRequest.h" -#include "model/ModifySnatEntryResult.h" +#include "model/UnassociateNetworkAclRequest.h" +#include "model/UnassociateNetworkAclResult.h" #include "model/DescribeIPv6TranslatorAclListsRequest.h" #include "model/DescribeIPv6TranslatorAclListsResult.h" -#include "model/DescribeAccessPointsRequest.h" -#include "model/DescribeAccessPointsResult.h" #include "model/CreateSslVpnClientCertRequest.h" #include "model/CreateSslVpnClientCertResult.h" -#include "model/CreateIPv6TranslatorAclListRequest.h" -#include "model/CreateIPv6TranslatorAclListResult.h" #include "model/CreateVirtualBorderRouterRequest.h" #include "model/CreateVirtualBorderRouterResult.h" -#include "model/DeleteBgpGroupRequest.h" -#include "model/DeleteBgpGroupResult.h" +#include "model/DescribeNetworkAclsRequest.h" +#include "model/DescribeNetworkAclsResult.h" #include "model/DescribeIpv6AddressesRequest.h" #include "model/DescribeIpv6AddressesResult.h" #include "model/DeleteIPv6TranslatorEntryRequest.h" #include "model/DeleteIPv6TranslatorEntryResult.h" -#include "model/ReleaseEipAddressRequest.h" -#include "model/ReleaseEipAddressResult.h" +#include "model/UnTagResourcesRequest.h" +#include "model/UnTagResourcesResult.h" +#include "model/CreateNetworkAclRequest.h" +#include "model/CreateNetworkAclResult.h" +#include "model/CreatePhysicalConnectionSetupOrderRequest.h" +#include "model/CreatePhysicalConnectionSetupOrderResult.h" #include "model/CreateBgpPeerRequest.h" #include "model/CreateBgpPeerResult.h" #include "model/DescribeRouteTablesRequest.h" #include "model/DescribeRouteTablesResult.h" -#include "model/DescribeVSwitchesRequest.h" -#include "model/DescribeVSwitchesResult.h" -#include "model/ModifyRouterInterfaceSpecRequest.h" -#include "model/ModifyRouterInterfaceSpecResult.h" -#include "model/DescribeVpcsRequest.h" -#include "model/DescribeVpcsResult.h" +#include "model/DescribeRouteEntryListRequest.h" +#include "model/DescribeRouteEntryListResult.h" #include "model/CreatePhysicalConnectionRequest.h" #include "model/CreatePhysicalConnectionResult.h" +#include "model/ApplyPhysicalConnectionLOARequest.h" +#include "model/ApplyPhysicalConnectionLOAResult.h" #include "model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.h" #include "model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.h" +#include "model/DeleteVpnPbrRouteEntryRequest.h" +#include "model/DeleteVpnPbrRouteEntryResult.h" #include "model/DescribeServerRelatedGlobalAccelerationInstancesRequest.h" #include "model/DescribeServerRelatedGlobalAccelerationInstancesResult.h" #include "model/AssociateHaVipRequest.h" #include "model/AssociateHaVipResult.h" -#include "model/ModifyRouterInterfaceAttributeRequest.h" -#include "model/ModifyRouterInterfaceAttributeResult.h" #include "model/AssociateRouteTableRequest.h" #include "model/AssociateRouteTableResult.h" #include "model/ModifyIPv6TranslatorAclAttributeRequest.h" #include "model/ModifyIPv6TranslatorAclAttributeResult.h" -#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h" -#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h" -#include "model/ModifyGlobalAccelerationInstanceAttributesRequest.h" -#include "model/ModifyGlobalAccelerationInstanceAttributesResult.h" -#include "model/DeleteRouteEntryRequest.h" -#include "model/DeleteRouteEntryResult.h" #include "model/DeleteVirtualBorderRouterRequest.h" #include "model/DeleteVirtualBorderRouterResult.h" +#include "model/AssociateNetworkAclRequest.h" +#include "model/AssociateNetworkAclResult.h" +#include "model/DeleteRouteEntryRequest.h" +#include "model/DeleteRouteEntryResult.h" #include "model/ModifyCommonBandwidthPackageSpecRequest.h" #include "model/ModifyCommonBandwidthPackageSpecResult.h" -#include "model/CreatePhysicalConnectionNewRequest.h" -#include "model/CreatePhysicalConnectionNewResult.h" #include "model/TerminatePhysicalConnectionRequest.h" #include "model/TerminatePhysicalConnectionResult.h" #include "model/DescribeIpv6EgressOnlyRulesRequest.h" #include "model/DescribeIpv6EgressOnlyRulesResult.h" +#include "model/DescribePhysicalConnectionLOARequest.h" +#include "model/DescribePhysicalConnectionLOAResult.h" #include "model/DescribeVpnGatewayRequest.h" #include "model/DescribeVpnGatewayResult.h" #include "model/RevokeInstanceFromCenRequest.h" #include "model/RevokeInstanceFromCenResult.h" #include "model/DeleteRouteTableRequest.h" #include "model/DeleteRouteTableResult.h" -#include "model/ModifyBgpGroupAttributeRequest.h" -#include "model/ModifyBgpGroupAttributeResult.h" -#include "model/ModifyCommonBandwidthPackageAttributeRequest.h" -#include "model/ModifyCommonBandwidthPackageAttributeResult.h" +#include "model/DescribeVpnRouteEntriesRequest.h" +#include "model/DescribeVpnRouteEntriesResult.h" #include "model/UnassociateRouteTableRequest.h" #include "model/UnassociateRouteTableResult.h" -#include "model/DeleteForwardEntryRequest.h" -#include "model/DeleteForwardEntryResult.h" -#include "model/AddCommonBandwidthPackageIpRequest.h" -#include "model/AddCommonBandwidthPackageIpResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" -#include "model/ModifyIpv6InternetBandwidthRequest.h" -#include "model/ModifyIpv6InternetBandwidthResult.h" +#include "model/ModifyCommonBandwidthPackageIpBandwidthRequest.h" +#include "model/ModifyCommonBandwidthPackageIpBandwidthResult.h" +#include "model/CompletePhysicalConnectionLOARequest.h" +#include "model/CompletePhysicalConnectionLOAResult.h" #include "model/DescribePhysicalConnectionsRequest.h" #include "model/DescribePhysicalConnectionsResult.h" #include "model/DescribeVpnGatewaysRequest.h" #include "model/DescribeVpnGatewaysResult.h" -#include "model/DescribeVirtualBorderRoutersRequest.h" -#include "model/DescribeVirtualBorderRoutersResult.h" #include "model/CancelPhysicalConnectionRequest.h" #include "model/CancelPhysicalConnectionResult.h" #include "model/CreateGlobalAccelerationInstanceRequest.h" #include "model/CreateGlobalAccelerationInstanceResult.h" -#include "model/CreateBgpGroupRequest.h" -#include "model/CreateBgpGroupResult.h" #include "model/DescribeVRoutersRequest.h" #include "model/DescribeVRoutersResult.h" #include "model/ModifyNqaRequest.h" @@ -374,18 +452,14 @@ #include "model/DescribeSslVpnClientCertResult.h" #include "model/UnassociateHaVipRequest.h" #include "model/UnassociateHaVipResult.h" +#include "model/CreatePhysicalConnectionOccupancyOrderRequest.h" +#include "model/CreatePhysicalConnectionOccupancyOrderResult.h" #include "model/DescribeCommonBandwidthPackagesRequest.h" #include "model/DescribeCommonBandwidthPackagesResult.h" #include "model/ModifyHaVipAttributeRequest.h" #include "model/ModifyHaVipAttributeResult.h" #include "model/DeleteIPv6TranslatorAclListRequest.h" #include "model/DeleteIPv6TranslatorAclListResult.h" -#include "model/AssociateGlobalAccelerationInstanceRequest.h" -#include "model/AssociateGlobalAccelerationInstanceResult.h" -#include "model/DescribeSslVpnServersRequest.h" -#include "model/DescribeSslVpnServersResult.h" -#include "model/DescribeSnatTableEntriesRequest.h" -#include "model/DescribeSnatTableEntriesResult.h" #include "model/ModifyVRouterAttributeRequest.h" #include "model/ModifyVRouterAttributeResult.h" #include "model/CreateVpnGatewayRequest.h" @@ -399,75 +473,36 @@ namespace AlibabaCloud class ALIBABACLOUD_VPC_EXPORT VpcClient : public RpcServiceClient { public: - typedef Outcome DeleteCustomerGatewayOutcome; - typedef std::future DeleteCustomerGatewayOutcomeCallable; - typedef std::function&)> DeleteCustomerGatewayAsyncHandler; - typedef Outcome UnassociateGlobalAccelerationInstanceOutcome; - typedef std::future UnassociateGlobalAccelerationInstanceOutcomeCallable; - typedef std::function&)> UnassociateGlobalAccelerationInstanceAsyncHandler; - typedef Outcome DeleteIPv6TranslatorOutcome; - typedef std::future DeleteIPv6TranslatorOutcomeCallable; - typedef std::function&)> DeleteIPv6TranslatorAsyncHandler; - typedef Outcome DescribeRouteTableListOutcome; - typedef std::future DescribeRouteTableListOutcomeCallable; - typedef std::function&)> DescribeRouteTableListAsyncHandler; - typedef Outcome AssociatePhysicalConnectionToVirtualBorderRouterOutcome; - typedef std::future AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable; - typedef std::function&)> AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler; - typedef Outcome DeleteGlobalAccelerationInstanceOutcome; - typedef std::future DeleteGlobalAccelerationInstanceOutcomeCallable; - typedef std::function&)> DeleteGlobalAccelerationInstanceAsyncHandler; - typedef Outcome DescribeCustomerGatewaysOutcome; - typedef std::future DescribeCustomerGatewaysOutcomeCallable; - typedef std::function&)> DescribeCustomerGatewaysAsyncHandler; typedef Outcome DescribeGlobalAccelerationInstancesOutcome; typedef std::future DescribeGlobalAccelerationInstancesOutcomeCallable; typedef std::function&)> DescribeGlobalAccelerationInstancesAsyncHandler; typedef Outcome ModifySslVpnClientCertOutcome; typedef std::future ModifySslVpnClientCertOutcomeCallable; typedef std::function&)> ModifySslVpnClientCertAsyncHandler; - typedef Outcome DeleteVpcOutcome; - typedef std::future DeleteVpcOutcomeCallable; - typedef std::function&)> DeleteVpcAsyncHandler; typedef Outcome DescribeBgpNetworksOutcome; typedef std::future DescribeBgpNetworksOutcomeCallable; typedef std::function&)> DescribeBgpNetworksAsyncHandler; - typedef Outcome DownloadVpnConnectionConfigOutcome; - typedef std::future DownloadVpnConnectionConfigOutcomeCallable; - typedef std::function&)> DownloadVpnConnectionConfigAsyncHandler; typedef Outcome RemoveCommonBandwidthPackageIpOutcome; typedef std::future RemoveCommonBandwidthPackageIpOutcomeCallable; typedef std::function&)> RemoveCommonBandwidthPackageIpAsyncHandler; - typedef Outcome DescribeIPv6TranslatorsOutcome; - typedef std::future DescribeIPv6TranslatorsOutcomeCallable; - typedef std::function&)> DescribeIPv6TranslatorsAsyncHandler; + typedef Outcome UpdateNetworkAclEntriesOutcome; + typedef std::future UpdateNetworkAclEntriesOutcomeCallable; + typedef std::function&)> UpdateNetworkAclEntriesAsyncHandler; typedef Outcome ModifyBandwidthPackageSpecOutcome; typedef std::future ModifyBandwidthPackageSpecOutcomeCallable; typedef std::function&)> ModifyBandwidthPackageSpecAsyncHandler; typedef Outcome CreateNatGatewayOutcome; typedef std::future CreateNatGatewayOutcomeCallable; typedef std::function&)> CreateNatGatewayAsyncHandler; - typedef Outcome DeleteVSwitchOutcome; - typedef std::future DeleteVSwitchOutcomeCallable; - typedef std::function&)> DeleteVSwitchAsyncHandler; typedef Outcome AddIPv6TranslatorAclListEntryOutcome; typedef std::future AddIPv6TranslatorAclListEntryOutcomeCallable; typedef std::function&)> AddIPv6TranslatorAclListEntryAsyncHandler; - typedef Outcome CreateRouteTableOutcome; - typedef std::future CreateRouteTableOutcomeCallable; - typedef std::function&)> CreateRouteTableAsyncHandler; typedef Outcome CreateHaVipOutcome; typedef std::future CreateHaVipOutcomeCallable; typedef std::function&)> CreateHaVipAsyncHandler; typedef Outcome DeleteIpv6GatewayOutcome; typedef std::future DeleteIpv6GatewayOutcomeCallable; typedef std::function&)> DeleteIpv6GatewayAsyncHandler; - typedef Outcome CreateBandwidthPackageOutcome; - typedef std::future CreateBandwidthPackageOutcomeCallable; - typedef std::function&)> CreateBandwidthPackageAsyncHandler; - typedef Outcome RecoverVirtualBorderRouterOutcome; - typedef std::future RecoverVirtualBorderRouterOutcomeCallable; - typedef std::function&)> RecoverVirtualBorderRouterAsyncHandler; typedef Outcome AssociateEipAddressOutcome; typedef std::future AssociateEipAddressOutcomeCallable; typedef std::function&)> AssociateEipAddressAsyncHandler; @@ -477,30 +512,12 @@ namespace AlibabaCloud typedef Outcome ActivateRouterInterfaceOutcome; typedef std::future ActivateRouterInterfaceOutcomeCallable; typedef std::function&)> ActivateRouterInterfaceAsyncHandler; - typedef Outcome CreateCustomerGatewayOutcome; - typedef std::future CreateCustomerGatewayOutcomeCallable; - typedef std::function&)> CreateCustomerGatewayAsyncHandler; - typedef Outcome DeleteSslVpnServerOutcome; - typedef std::future DeleteSslVpnServerOutcomeCallable; - typedef std::function&)> DeleteSslVpnServerAsyncHandler; - typedef Outcome DeleteBandwidthPackageOutcome; - typedef std::future DeleteBandwidthPackageOutcomeCallable; - typedef std::function&)> DeleteBandwidthPackageAsyncHandler; - typedef Outcome DeleteBgpPeerOutcome; - typedef std::future DeleteBgpPeerOutcomeCallable; - typedef std::function&)> DeleteBgpPeerAsyncHandler; - typedef Outcome DescribeIpv6GatewaysOutcome; - typedef std::future DescribeIpv6GatewaysOutcomeCallable; - typedef std::function&)> DescribeIpv6GatewaysAsyncHandler; + typedef Outcome CopyNetworkAclEntriesOutcome; + typedef std::future CopyNetworkAclEntriesOutcomeCallable; + typedef std::function&)> CopyNetworkAclEntriesAsyncHandler; typedef Outcome TerminateVirtualBorderRouterOutcome; typedef std::future TerminateVirtualBorderRouterOutcomeCallable; typedef std::function&)> TerminateVirtualBorderRouterAsyncHandler; - typedef Outcome DeleteNqaOutcome; - typedef std::future DeleteNqaOutcomeCallable; - typedef std::function&)> DeleteNqaAsyncHandler; - typedef Outcome RemoveIPv6TranslatorAclListEntryOutcome; - typedef std::future RemoveIPv6TranslatorAclListEntryOutcomeCallable; - typedef std::function&)> RemoveIPv6TranslatorAclListEntryAsyncHandler; typedef Outcome ModifyRouteEntryOutcome; typedef std::future ModifyRouteEntryOutcomeCallable; typedef std::function&)> ModifyRouteEntryAsyncHandler; @@ -510,12 +527,306 @@ namespace AlibabaCloud typedef Outcome ModifyRouteTableAttributesOutcome; typedef std::future ModifyRouteTableAttributesOutcomeCallable; typedef std::function&)> ModifyRouteTableAttributesAsyncHandler; - typedef Outcome ModifyForwardEntryOutcome; - typedef std::future ModifyForwardEntryOutcomeCallable; - typedef std::function&)> ModifyForwardEntryAsyncHandler; typedef Outcome DeletePhysicalConnectionOutcome; typedef std::future DeletePhysicalConnectionOutcomeCallable; typedef std::function&)> DeletePhysicalConnectionAsyncHandler; + typedef Outcome PublishVpnRouteEntryOutcome; + typedef std::future PublishVpnRouteEntryOutcomeCallable; + typedef std::function&)> PublishVpnRouteEntryAsyncHandler; + typedef Outcome CreateIPv6TranslatorEntryOutcome; + typedef std::future CreateIPv6TranslatorEntryOutcomeCallable; + typedef std::function&)> CreateIPv6TranslatorEntryAsyncHandler; + typedef Outcome DescribeForwardTableEntriesOutcome; + typedef std::future DescribeForwardTableEntriesOutcomeCallable; + typedef std::function&)> DescribeForwardTableEntriesAsyncHandler; + typedef Outcome DescribeSslVpnClientCertsOutcome; + typedef std::future DescribeSslVpnClientCertsOutcomeCallable; + typedef std::function&)> DescribeSslVpnClientCertsAsyncHandler; + typedef Outcome ModifyGlobalAccelerationInstanceSpecOutcome; + typedef std::future ModifyGlobalAccelerationInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyGlobalAccelerationInstanceSpecAsyncHandler; + typedef Outcome DescribeVpnSslServerLogsOutcome; + typedef std::future DescribeVpnSslServerLogsOutcomeCallable; + typedef std::function&)> DescribeVpnSslServerLogsAsyncHandler; + typedef Outcome DeleteRouterInterfaceOutcome; + typedef std::future DeleteRouterInterfaceOutcomeCallable; + typedef std::function&)> DeleteRouterInterfaceAsyncHandler; + typedef Outcome ModifyFlowLogAttributeOutcome; + typedef std::future ModifyFlowLogAttributeOutcomeCallable; + typedef std::function&)> ModifyFlowLogAttributeAsyncHandler; + typedef Outcome DescribeNqasOutcome; + typedef std::future DescribeNqasOutcomeCallable; + typedef std::function&)> DescribeNqasAsyncHandler; + typedef Outcome ModifyNatGatewayAttributeOutcome; + typedef std::future ModifyNatGatewayAttributeOutcomeCallable; + typedef std::function&)> ModifyNatGatewayAttributeAsyncHandler; + typedef Outcome DescribeEipMonitorDataOutcome; + typedef std::future DescribeEipMonitorDataOutcomeCallable; + typedef std::function&)> DescribeEipMonitorDataAsyncHandler; + typedef Outcome CreateExpressCloudConnectionOutcome; + typedef std::future CreateExpressCloudConnectionOutcomeCallable; + typedef std::function&)> CreateExpressCloudConnectionAsyncHandler; + typedef Outcome ModifyVpnRouteEntryWeightOutcome; + typedef std::future ModifyVpnRouteEntryWeightOutcomeCallable; + typedef std::function&)> ModifyVpnRouteEntryWeightAsyncHandler; + typedef Outcome ModifyVpnGatewayAttributeOutcome; + typedef std::future ModifyVpnGatewayAttributeOutcomeCallable; + typedef std::function&)> ModifyVpnGatewayAttributeAsyncHandler; + typedef Outcome AddBgpNetworkOutcome; + typedef std::future AddBgpNetworkOutcomeCallable; + typedef std::function&)> AddBgpNetworkAsyncHandler; + typedef Outcome DescribeIPv6TranslatorEntriesOutcome; + typedef std::future DescribeIPv6TranslatorEntriesOutcomeCallable; + typedef std::function&)> DescribeIPv6TranslatorEntriesAsyncHandler; + typedef Outcome ConnectRouterInterfaceOutcome; + typedef std::future ConnectRouterInterfaceOutcomeCallable; + typedef std::function&)> ConnectRouterInterfaceAsyncHandler; + typedef Outcome DescribeIpv6GatewayAttributeOutcome; + typedef std::future DescribeIpv6GatewayAttributeOutcomeCallable; + typedef std::function&)> DescribeIpv6GatewayAttributeAsyncHandler; + typedef Outcome DescribeVpnPbrRouteEntriesOutcome; + typedef std::future DescribeVpnPbrRouteEntriesOutcomeCallable; + typedef std::function&)> DescribeVpnPbrRouteEntriesAsyncHandler; + typedef Outcome DeleteSnatEntryOutcome; + typedef std::future DeleteSnatEntryOutcomeCallable; + typedef std::function&)> DeleteSnatEntryAsyncHandler; + typedef Outcome ModifyIpv6GatewaySpecOutcome; + typedef std::future ModifyIpv6GatewaySpecOutcomeCallable; + typedef std::function&)> ModifyIpv6GatewaySpecAsyncHandler; + typedef Outcome DeleteCommonBandwidthPackageOutcome; + typedef std::future DeleteCommonBandwidthPackageOutcomeCallable; + typedef std::function&)> DeleteCommonBandwidthPackageAsyncHandler; + typedef Outcome CreateSnatEntryOutcome; + typedef std::future CreateSnatEntryOutcomeCallable; + typedef std::function&)> CreateSnatEntryAsyncHandler; + typedef Outcome ModifyPhysicalConnectionAttributeOutcome; + typedef std::future ModifyPhysicalConnectionAttributeOutcomeCallable; + typedef std::function&)> ModifyPhysicalConnectionAttributeAsyncHandler; + typedef Outcome ModifyVSwitchAttributeOutcome; + typedef std::future ModifyVSwitchAttributeOutcomeCallable; + typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; + typedef Outcome EnableVpcClassicLinkOutcome; + typedef std::future EnableVpcClassicLinkOutcomeCallable; + typedef std::function&)> EnableVpcClassicLinkAsyncHandler; + typedef Outcome ModifyIPv6TranslatorAclListEntryOutcome; + typedef std::future ModifyIPv6TranslatorAclListEntryOutcomeCallable; + typedef std::function&)> ModifyIPv6TranslatorAclListEntryAsyncHandler; + typedef Outcome DeleteHaVipOutcome; + typedef std::future DeleteHaVipOutcomeCallable; + typedef std::function&)> DeleteHaVipAsyncHandler; + typedef Outcome DescribeNetworkAclAttributesOutcome; + typedef std::future DescribeNetworkAclAttributesOutcomeCallable; + typedef std::function&)> DescribeNetworkAclAttributesAsyncHandler; + typedef Outcome CreateRouteEntryOutcome; + typedef std::future CreateRouteEntryOutcomeCallable; + typedef std::function&)> CreateRouteEntryAsyncHandler; + typedef Outcome DisableVpcClassicLinkOutcome; + typedef std::future DisableVpcClassicLinkOutcomeCallable; + typedef std::function&)> DisableVpcClassicLinkAsyncHandler; + typedef Outcome CreateRouterInterfaceOutcome; + typedef std::future CreateRouterInterfaceOutcomeCallable; + typedef std::function&)> CreateRouterInterfaceAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome DescribeFlowLogsOutcome; + typedef std::future DescribeFlowLogsOutcomeCallable; + typedef std::function&)> DescribeFlowLogsAsyncHandler; + typedef Outcome DescribeIPv6TranslatorAclListAttributesOutcome; + typedef std::future DescribeIPv6TranslatorAclListAttributesOutcomeCallable; + typedef std::function&)> DescribeIPv6TranslatorAclListAttributesAsyncHandler; + typedef Outcome ModifyNatGatewaySpecOutcome; + typedef std::future ModifyNatGatewaySpecOutcomeCallable; + typedef std::function&)> ModifyNatGatewaySpecAsyncHandler; + typedef Outcome DescribeExpressCloudConnectionsOutcome; + typedef std::future DescribeExpressCloudConnectionsOutcomeCallable; + typedef std::function&)> DescribeExpressCloudConnectionsAsyncHandler; + typedef Outcome DeleteSslVpnClientCertOutcome; + typedef std::future DeleteSslVpnClientCertOutcomeCallable; + typedef std::function&)> DeleteSslVpnClientCertAsyncHandler; + typedef Outcome CreateVSwitchOutcome; + typedef std::future CreateVSwitchOutcomeCallable; + typedef std::function&)> CreateVSwitchAsyncHandler; + typedef Outcome CancelCommonBandwidthPackageIpBandwidthOutcome; + typedef std::future CancelCommonBandwidthPackageIpBandwidthOutcomeCallable; + typedef std::function&)> CancelCommonBandwidthPackageIpBandwidthAsyncHandler; + typedef Outcome ModifyEipAddressAttributeOutcome; + typedef std::future ModifyEipAddressAttributeOutcomeCallable; + typedef std::function&)> ModifyEipAddressAttributeAsyncHandler; + typedef Outcome ModifyIPv6TranslatorEntryOutcome; + typedef std::future ModifyIPv6TranslatorEntryOutcomeCallable; + typedef std::function&)> ModifyIPv6TranslatorEntryAsyncHandler; + typedef Outcome DescribePhysicalConnectionOrderOutcome; + typedef std::future DescribePhysicalConnectionOrderOutcomeCallable; + typedef std::function&)> DescribePhysicalConnectionOrderAsyncHandler; + typedef Outcome DeactiveFlowLogOutcome; + typedef std::future DeactiveFlowLogOutcomeCallable; + typedef std::function&)> DeactiveFlowLogAsyncHandler; + typedef Outcome DeleteNatGatewayOutcome; + typedef std::future DeleteNatGatewayOutcomeCallable; + typedef std::function&)> DeleteNatGatewayAsyncHandler; + typedef Outcome ActiveFlowLogOutcome; + typedef std::future ActiveFlowLogOutcomeCallable; + typedef std::function&)> ActiveFlowLogAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DeleteIpv6EgressOnlyRuleOutcome; + typedef std::future DeleteIpv6EgressOnlyRuleOutcomeCallable; + typedef std::function&)> DeleteIpv6EgressOnlyRuleAsyncHandler; + typedef Outcome DeactivateRouterInterfaceOutcome; + typedef std::future DeactivateRouterInterfaceOutcomeCallable; + typedef std::function&)> DeactivateRouterInterfaceAsyncHandler; + typedef Outcome DescribeAccessPointsOutcome; + typedef std::future DescribeAccessPointsOutcomeCallable; + typedef std::function&)> DescribeAccessPointsAsyncHandler; + typedef Outcome ModifySnatEntryOutcome; + typedef std::future ModifySnatEntryOutcomeCallable; + typedef std::function&)> ModifySnatEntryAsyncHandler; + typedef Outcome CreateIPv6TranslatorAclListOutcome; + typedef std::future CreateIPv6TranslatorAclListOutcomeCallable; + typedef std::function&)> CreateIPv6TranslatorAclListAsyncHandler; + typedef Outcome DeleteBgpGroupOutcome; + typedef std::future DeleteBgpGroupOutcomeCallable; + typedef std::function&)> DeleteBgpGroupAsyncHandler; + typedef Outcome ReleaseEipAddressOutcome; + typedef std::future ReleaseEipAddressOutcomeCallable; + typedef std::function&)> ReleaseEipAddressAsyncHandler; + typedef Outcome ModifyExpressCloudConnectionBandwidthOutcome; + typedef std::future ModifyExpressCloudConnectionBandwidthOutcomeCallable; + typedef std::function&)> ModifyExpressCloudConnectionBandwidthAsyncHandler; + typedef Outcome CreateVpnPbrRouteEntryOutcome; + typedef std::future CreateVpnPbrRouteEntryOutcomeCallable; + typedef std::function&)> CreateVpnPbrRouteEntryAsyncHandler; + typedef Outcome DescribeVSwitchesOutcome; + typedef std::future DescribeVSwitchesOutcomeCallable; + typedef std::function&)> DescribeVSwitchesAsyncHandler; + typedef Outcome ModifyRouterInterfaceSpecOutcome; + typedef std::future ModifyRouterInterfaceSpecOutcomeCallable; + typedef std::function&)> ModifyRouterInterfaceSpecAsyncHandler; + typedef Outcome DescribeVpcsOutcome; + typedef std::future DescribeVpcsOutcomeCallable; + typedef std::function&)> DescribeVpcsAsyncHandler; + typedef Outcome ModifyRouterInterfaceAttributeOutcome; + typedef std::future ModifyRouterInterfaceAttributeOutcomeCallable; + typedef std::function&)> ModifyRouterInterfaceAttributeAsyncHandler; + typedef Outcome DescribeVirtualBorderRoutersForPhysicalConnectionOutcome; + typedef std::future DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable; + typedef std::function&)> DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler; + typedef Outcome ModifyGlobalAccelerationInstanceAttributesOutcome; + typedef std::future ModifyGlobalAccelerationInstanceAttributesOutcomeCallable; + typedef std::function&)> ModifyGlobalAccelerationInstanceAttributesAsyncHandler; + typedef Outcome CreatePhysicalConnectionNewOutcome; + typedef std::future CreatePhysicalConnectionNewOutcomeCallable; + typedef std::function&)> CreatePhysicalConnectionNewAsyncHandler; + typedef Outcome ModifyBgpGroupAttributeOutcome; + typedef std::future ModifyBgpGroupAttributeOutcomeCallable; + typedef std::function&)> ModifyBgpGroupAttributeAsyncHandler; + typedef Outcome ModifyCommonBandwidthPackageAttributeOutcome; + typedef std::future ModifyCommonBandwidthPackageAttributeOutcomeCallable; + typedef std::function&)> ModifyCommonBandwidthPackageAttributeAsyncHandler; + typedef Outcome DeleteForwardEntryOutcome; + typedef std::future DeleteForwardEntryOutcomeCallable; + typedef std::function&)> DeleteForwardEntryAsyncHandler; + typedef Outcome AddCommonBandwidthPackageIpOutcome; + typedef std::future AddCommonBandwidthPackageIpOutcomeCallable; + typedef std::function&)> AddCommonBandwidthPackageIpAsyncHandler; + typedef Outcome ModifyIpv6InternetBandwidthOutcome; + typedef std::future ModifyIpv6InternetBandwidthOutcomeCallable; + typedef std::function&)> ModifyIpv6InternetBandwidthAsyncHandler; + typedef Outcome DescribeEipGatewayInfoOutcome; + typedef std::future DescribeEipGatewayInfoOutcomeCallable; + typedef std::function&)> DescribeEipGatewayInfoAsyncHandler; + typedef Outcome DescribeVirtualBorderRoutersOutcome; + typedef std::future DescribeVirtualBorderRoutersOutcomeCallable; + typedef std::function&)> DescribeVirtualBorderRoutersAsyncHandler; + typedef Outcome CreateBgpGroupOutcome; + typedef std::future CreateBgpGroupOutcomeCallable; + typedef std::function&)> CreateBgpGroupAsyncHandler; + typedef Outcome ModifyExpressCloudConnectionAttributeOutcome; + typedef std::future ModifyExpressCloudConnectionAttributeOutcomeCallable; + typedef std::function&)> ModifyExpressCloudConnectionAttributeAsyncHandler; + typedef Outcome AssociateGlobalAccelerationInstanceOutcome; + typedef std::future AssociateGlobalAccelerationInstanceOutcomeCallable; + typedef std::function&)> AssociateGlobalAccelerationInstanceAsyncHandler; + typedef Outcome DescribeSslVpnServersOutcome; + typedef std::future DescribeSslVpnServersOutcomeCallable; + typedef std::function&)> DescribeSslVpnServersAsyncHandler; + typedef Outcome DeleteExpressConnectOutcome; + typedef std::future DeleteExpressConnectOutcomeCallable; + typedef std::function&)> DeleteExpressConnectAsyncHandler; + typedef Outcome DescribeSnatTableEntriesOutcome; + typedef std::future DescribeSnatTableEntriesOutcomeCallable; + typedef std::function&)> DescribeSnatTableEntriesAsyncHandler; + typedef Outcome UnassociateGlobalAccelerationInstanceOutcome; + typedef std::future UnassociateGlobalAccelerationInstanceOutcomeCallable; + typedef std::function&)> UnassociateGlobalAccelerationInstanceAsyncHandler; + typedef Outcome DeleteCustomerGatewayOutcome; + typedef std::future DeleteCustomerGatewayOutcomeCallable; + typedef std::function&)> DeleteCustomerGatewayAsyncHandler; + typedef Outcome DeleteIPv6TranslatorOutcome; + typedef std::future DeleteIPv6TranslatorOutcomeCallable; + typedef std::function&)> DeleteIPv6TranslatorAsyncHandler; + typedef Outcome DescribeRouteTableListOutcome; + typedef std::future DescribeRouteTableListOutcomeCallable; + typedef std::function&)> DescribeRouteTableListAsyncHandler; + typedef Outcome AssociatePhysicalConnectionToVirtualBorderRouterOutcome; + typedef std::future AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable; + typedef std::function&)> AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler; + typedef Outcome DescribeCustomerGatewaysOutcome; + typedef std::future DescribeCustomerGatewaysOutcomeCallable; + typedef std::function&)> DescribeCustomerGatewaysAsyncHandler; + typedef Outcome DeleteGlobalAccelerationInstanceOutcome; + typedef std::future DeleteGlobalAccelerationInstanceOutcomeCallable; + typedef std::function&)> DeleteGlobalAccelerationInstanceAsyncHandler; + typedef Outcome DeleteVpcOutcome; + typedef std::future DeleteVpcOutcomeCallable; + typedef std::function&)> DeleteVpcAsyncHandler; + typedef Outcome DeleteVpnRouteEntryOutcome; + typedef std::future DeleteVpnRouteEntryOutcomeCallable; + typedef std::function&)> DeleteVpnRouteEntryAsyncHandler; + typedef Outcome DownloadVpnConnectionConfigOutcome; + typedef std::future DownloadVpnConnectionConfigOutcomeCallable; + typedef std::function&)> DownloadVpnConnectionConfigAsyncHandler; + typedef Outcome DescribeIPv6TranslatorsOutcome; + typedef std::future DescribeIPv6TranslatorsOutcomeCallable; + typedef std::function&)> DescribeIPv6TranslatorsAsyncHandler; + typedef Outcome DeleteVSwitchOutcome; + typedef std::future DeleteVSwitchOutcomeCallable; + typedef std::function&)> DeleteVSwitchAsyncHandler; + typedef Outcome CreateRouteTableOutcome; + typedef std::future CreateRouteTableOutcomeCallable; + typedef std::function&)> CreateRouteTableAsyncHandler; + typedef Outcome CreateBandwidthPackageOutcome; + typedef std::future CreateBandwidthPackageOutcomeCallable; + typedef std::function&)> CreateBandwidthPackageAsyncHandler; + typedef Outcome RecoverVirtualBorderRouterOutcome; + typedef std::future RecoverVirtualBorderRouterOutcomeCallable; + typedef std::function&)> RecoverVirtualBorderRouterAsyncHandler; + typedef Outcome DeleteSslVpnServerOutcome; + typedef std::future DeleteSslVpnServerOutcomeCallable; + typedef std::function&)> DeleteSslVpnServerAsyncHandler; + typedef Outcome CreateCustomerGatewayOutcome; + typedef std::future CreateCustomerGatewayOutcomeCallable; + typedef std::function&)> CreateCustomerGatewayAsyncHandler; + typedef Outcome DeleteBandwidthPackageOutcome; + typedef std::future DeleteBandwidthPackageOutcomeCallable; + typedef std::function&)> DeleteBandwidthPackageAsyncHandler; + typedef Outcome DescribeIpv6GatewaysOutcome; + typedef std::future DescribeIpv6GatewaysOutcomeCallable; + typedef std::function&)> DescribeIpv6GatewaysAsyncHandler; + typedef Outcome DeleteBgpPeerOutcome; + typedef std::future DeleteBgpPeerOutcomeCallable; + typedef std::function&)> DeleteBgpPeerAsyncHandler; + typedef Outcome DeleteNqaOutcome; + typedef std::future DeleteNqaOutcomeCallable; + typedef std::function&)> DeleteNqaAsyncHandler; + typedef Outcome RemoveIPv6TranslatorAclListEntryOutcome; + typedef std::future RemoveIPv6TranslatorAclListEntryOutcomeCallable; + typedef std::function&)> RemoveIPv6TranslatorAclListEntryAsyncHandler; + typedef Outcome ModifyForwardEntryOutcome; + typedef std::future ModifyForwardEntryOutcomeCallable; + typedef std::function&)> ModifyForwardEntryAsyncHandler; typedef Outcome DeleteFlowLogOutcome; typedef std::future DeleteFlowLogOutcomeCallable; typedef std::function&)> DeleteFlowLogAsyncHandler; @@ -525,132 +836,75 @@ namespace AlibabaCloud typedef Outcome CreateIPv6TranslatorOutcome; typedef std::future CreateIPv6TranslatorOutcomeCallable; typedef std::function&)> CreateIPv6TranslatorAsyncHandler; - typedef Outcome CreateIPv6TranslatorEntryOutcome; - typedef std::future CreateIPv6TranslatorEntryOutcomeCallable; - typedef std::function&)> CreateIPv6TranslatorEntryAsyncHandler; - typedef Outcome DescribeForwardTableEntriesOutcome; - typedef std::future DescribeForwardTableEntriesOutcomeCallable; - typedef std::function&)> DescribeForwardTableEntriesAsyncHandler; typedef Outcome ModifyIpv6GatewayAttributeOutcome; typedef std::future ModifyIpv6GatewayAttributeOutcomeCallable; typedef std::function&)> ModifyIpv6GatewayAttributeAsyncHandler; typedef Outcome UnassociateEipAddressOutcome; typedef std::future UnassociateEipAddressOutcomeCallable; typedef std::function&)> UnassociateEipAddressAsyncHandler; - typedef Outcome DescribeSslVpnClientCertsOutcome; - typedef std::future DescribeSslVpnClientCertsOutcomeCallable; - typedef std::function&)> DescribeSslVpnClientCertsAsyncHandler; typedef Outcome DescribeVpnConnectionOutcome; typedef std::future DescribeVpnConnectionOutcomeCallable; typedef std::function&)> DescribeVpnConnectionAsyncHandler; - typedef Outcome ModifyGlobalAccelerationInstanceSpecOutcome; - typedef std::future ModifyGlobalAccelerationInstanceSpecOutcomeCallable; - typedef std::function&)> ModifyGlobalAccelerationInstanceSpecAsyncHandler; + typedef Outcome DeleteNetworkAclOutcome; + typedef std::future DeleteNetworkAclOutcomeCallable; + typedef std::function&)> DeleteNetworkAclAsyncHandler; typedef Outcome AddGlobalAccelerationInstanceIpOutcome; typedef std::future AddGlobalAccelerationInstanceIpOutcomeCallable; typedef std::function&)> AddGlobalAccelerationInstanceIpAsyncHandler; - typedef Outcome DeleteRouterInterfaceOutcome; - typedef std::future DeleteRouterInterfaceOutcomeCallable; - typedef std::function&)> DeleteRouterInterfaceAsyncHandler; typedef Outcome CreateSslVpnServerOutcome; typedef std::future CreateSslVpnServerOutcomeCallable; typedef std::function&)> CreateSslVpnServerAsyncHandler; - typedef Outcome DescribeNqasOutcome; - typedef std::future DescribeNqasOutcomeCallable; - typedef std::function&)> DescribeNqasAsyncHandler; - typedef Outcome ModifyFlowLogAttributeOutcome; - typedef std::future ModifyFlowLogAttributeOutcomeCallable; - typedef std::function&)> ModifyFlowLogAttributeAsyncHandler; typedef Outcome ModifyVirtualBorderRouterAttributeOutcome; typedef std::future ModifyVirtualBorderRouterAttributeOutcomeCallable; typedef std::function&)> ModifyVirtualBorderRouterAttributeAsyncHandler; - typedef Outcome ModifyNatGatewayAttributeOutcome; - typedef std::future ModifyNatGatewayAttributeOutcomeCallable; - typedef std::function&)> ModifyNatGatewayAttributeAsyncHandler; - typedef Outcome DescribeEipMonitorDataOutcome; - typedef std::future DescribeEipMonitorDataOutcomeCallable; - typedef std::function&)> DescribeEipMonitorDataAsyncHandler; typedef Outcome DeleteVpnGatewayOutcome; typedef std::future DeleteVpnGatewayOutcomeCallable; typedef std::function&)> DeleteVpnGatewayAsyncHandler; typedef Outcome DescribeCustomerGatewayOutcome; typedef std::future DescribeCustomerGatewayOutcomeCallable; typedef std::function&)> DescribeCustomerGatewayAsyncHandler; - typedef Outcome ModifyVpnGatewayAttributeOutcome; - typedef std::future ModifyVpnGatewayAttributeOutcomeCallable; - typedef std::function&)> ModifyVpnGatewayAttributeAsyncHandler; typedef Outcome AllocateIpv6InternetBandwidthOutcome; typedef std::future AllocateIpv6InternetBandwidthOutcomeCallable; typedef std::function&)> AllocateIpv6InternetBandwidthAsyncHandler; - typedef Outcome AddBgpNetworkOutcome; - typedef std::future AddBgpNetworkOutcomeCallable; - typedef std::function&)> AddBgpNetworkAsyncHandler; typedef Outcome ModifySslVpnServerOutcome; typedef std::future ModifySslVpnServerOutcomeCallable; typedef std::function&)> ModifySslVpnServerAsyncHandler; - typedef Outcome DescribeIPv6TranslatorEntriesOutcome; - typedef std::future DescribeIPv6TranslatorEntriesOutcomeCallable; - typedef std::function&)> DescribeIPv6TranslatorEntriesAsyncHandler; typedef Outcome DescribeVpnConnectionsOutcome; typedef std::future DescribeVpnConnectionsOutcomeCallable; typedef std::function&)> DescribeVpnConnectionsAsyncHandler; typedef Outcome ModifyBandwidthPackageAttributeOutcome; typedef std::future ModifyBandwidthPackageAttributeOutcomeCallable; typedef std::function&)> ModifyBandwidthPackageAttributeAsyncHandler; - typedef Outcome ConnectRouterInterfaceOutcome; - typedef std::future ConnectRouterInterfaceOutcomeCallable; - typedef std::function&)> ConnectRouterInterfaceAsyncHandler; typedef Outcome DescribeBgpPeersOutcome; typedef std::future DescribeBgpPeersOutcomeCallable; typedef std::function&)> DescribeBgpPeersAsyncHandler; - typedef Outcome DescribeIpv6GatewayAttributeOutcome; - typedef std::future DescribeIpv6GatewayAttributeOutcomeCallable; - typedef std::function&)> DescribeIpv6GatewayAttributeAsyncHandler; - typedef Outcome DeleteSnatEntryOutcome; - typedef std::future DeleteSnatEntryOutcomeCallable; - typedef std::function&)> DeleteSnatEntryAsyncHandler; - typedef Outcome CreateNqaOutcome; - typedef std::future CreateNqaOutcomeCallable; - typedef std::function&)> CreateNqaAsyncHandler; + typedef Outcome ModifyVpnPbrRouteEntryWeightOutcome; + typedef std::future ModifyVpnPbrRouteEntryWeightOutcomeCallable; + typedef std::function&)> ModifyVpnPbrRouteEntryWeightAsyncHandler; typedef Outcome ConvertBandwidthPackageOutcome; typedef std::future ConvertBandwidthPackageOutcomeCallable; typedef std::function&)> ConvertBandwidthPackageAsyncHandler; typedef Outcome DescribeHaVipsOutcome; typedef std::future DescribeHaVipsOutcomeCallable; typedef std::function&)> DescribeHaVipsAsyncHandler; - typedef Outcome ModifyIpv6GatewaySpecOutcome; - typedef std::future ModifyIpv6GatewaySpecOutcomeCallable; - typedef std::function&)> ModifyIpv6GatewaySpecAsyncHandler; + typedef Outcome CreateNqaOutcome; + typedef std::future CreateNqaOutcomeCallable; + typedef std::function&)> CreateNqaAsyncHandler; typedef Outcome GrantInstanceToCenOutcome; typedef std::future GrantInstanceToCenOutcomeCallable; typedef std::function&)> GrantInstanceToCenAsyncHandler; + typedef Outcome ModifyBgpPeerAttributeOutcome; + typedef std::future ModifyBgpPeerAttributeOutcomeCallable; + typedef std::function&)> ModifyBgpPeerAttributeAsyncHandler; typedef Outcome AddBandwidthPackageIpsOutcome; typedef std::future AddBandwidthPackageIpsOutcomeCallable; typedef std::function&)> AddBandwidthPackageIpsAsyncHandler; - typedef Outcome CreateSnatEntryOutcome; - typedef std::future CreateSnatEntryOutcomeCallable; - typedef std::function&)> CreateSnatEntryAsyncHandler; - typedef Outcome DeleteCommonBandwidthPackageOutcome; - typedef std::future DeleteCommonBandwidthPackageOutcomeCallable; - typedef std::function&)> DeleteCommonBandwidthPackageAsyncHandler; - typedef Outcome ModifyPhysicalConnectionAttributeOutcome; - typedef std::future ModifyPhysicalConnectionAttributeOutcomeCallable; - typedef std::function&)> ModifyPhysicalConnectionAttributeAsyncHandler; typedef Outcome DescribeNatGatewaysOutcome; typedef std::future DescribeNatGatewaysOutcomeCallable; typedef std::function&)> DescribeNatGatewaysAsyncHandler; - typedef Outcome ModifyVSwitchAttributeOutcome; - typedef std::future ModifyVSwitchAttributeOutcomeCallable; - typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; - typedef Outcome ModifyIPv6TranslatorAclListEntryOutcome; - typedef std::future ModifyIPv6TranslatorAclListEntryOutcomeCallable; - typedef std::function&)> ModifyIPv6TranslatorAclListEntryAsyncHandler; - typedef Outcome EnableVpcClassicLinkOutcome; - typedef std::future EnableVpcClassicLinkOutcomeCallable; - typedef std::function&)> EnableVpcClassicLinkAsyncHandler; - typedef Outcome DeleteHaVipOutcome; - typedef std::future DeleteHaVipOutcomeCallable; - typedef std::function&)> DeleteHaVipAsyncHandler; + typedef Outcome ModifyNetworkAclAttributesOutcome; + typedef std::future ModifyNetworkAclAttributesOutcomeCallable; + typedef std::function&)> ModifyNetworkAclAttributesAsyncHandler; typedef Outcome DescribeVpcAttributeOutcome; typedef std::future DescribeVpcAttributeOutcomeCallable; typedef std::function&)> DescribeVpcAttributeAsyncHandler; @@ -672,39 +926,24 @@ namespace AlibabaCloud typedef Outcome CreateIpv6GatewayOutcome; typedef std::future CreateIpv6GatewayOutcomeCallable; typedef std::function&)> CreateIpv6GatewayAsyncHandler; - typedef Outcome CreateRouteEntryOutcome; - typedef std::future CreateRouteEntryOutcomeCallable; - typedef std::function&)> CreateRouteEntryAsyncHandler; - typedef Outcome DescribeBandwidthPackagesOutcome; - typedef std::future DescribeBandwidthPackagesOutcomeCallable; - typedef std::function&)> DescribeBandwidthPackagesAsyncHandler; typedef Outcome DeleteBgpNetworkOutcome; typedef std::future DeleteBgpNetworkOutcomeCallable; typedef std::function&)> DeleteBgpNetworkAsyncHandler; - typedef Outcome DisableVpcClassicLinkOutcome; - typedef std::future DisableVpcClassicLinkOutcomeCallable; - typedef std::function&)> DisableVpcClassicLinkAsyncHandler; - typedef Outcome CreateRouterInterfaceOutcome; - typedef std::future CreateRouterInterfaceOutcomeCallable; - typedef std::function&)> CreateRouterInterfaceAsyncHandler; + typedef Outcome DescribeBandwidthPackagesOutcome; + typedef std::future DescribeBandwidthPackagesOutcomeCallable; + typedef std::function&)> DescribeBandwidthPackagesAsyncHandler; typedef Outcome ModifyVpnConnectionAttributeOutcome; typedef std::future ModifyVpnConnectionAttributeOutcomeCallable; typedef std::function&)> ModifyVpnConnectionAttributeAsyncHandler; - typedef Outcome DescribeFlowLogsOutcome; - typedef std::future DescribeFlowLogsOutcomeCallable; - typedef std::function&)> DescribeFlowLogsAsyncHandler; - typedef Outcome DescribeIPv6TranslatorAclListAttributesOutcome; - typedef std::future DescribeIPv6TranslatorAclListAttributesOutcomeCallable; - typedef std::function&)> DescribeIPv6TranslatorAclListAttributesAsyncHandler; typedef Outcome RemoveGlobalAccelerationInstanceIpOutcome; typedef std::future RemoveGlobalAccelerationInstanceIpOutcomeCallable; typedef std::function&)> RemoveGlobalAccelerationInstanceIpAsyncHandler; - typedef Outcome ModifyNatGatewaySpecOutcome; - typedef std::future ModifyNatGatewaySpecOutcomeCallable; - typedef std::function&)> ModifyNatGatewaySpecAsyncHandler; typedef Outcome DescribeBgpGroupsOutcome; typedef std::future DescribeBgpGroupsOutcomeCallable; typedef std::function&)> DescribeBgpGroupsAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome DescribeGrantRulesToCenOutcome; typedef std::future DescribeGrantRulesToCenOutcomeCallable; typedef std::function&)> DescribeGrantRulesToCenAsyncHandler; @@ -717,153 +956,117 @@ namespace AlibabaCloud typedef Outcome RemoveBandwidthPackageIpsOutcome; typedef std::future RemoveBandwidthPackageIpsOutcomeCallable; typedef std::function&)> RemoveBandwidthPackageIpsAsyncHandler; - typedef Outcome DeleteSslVpnClientCertOutcome; - typedef std::future DeleteSslVpnClientCertOutcomeCallable; - typedef std::function&)> DeleteSslVpnClientCertAsyncHandler; - typedef Outcome CreateVSwitchOutcome; - typedef std::future CreateVSwitchOutcomeCallable; - typedef std::function&)> CreateVSwitchAsyncHandler; typedef Outcome ModifyCustomerGatewayAttributeOutcome; typedef std::future ModifyCustomerGatewayAttributeOutcomeCallable; typedef std::function&)> ModifyCustomerGatewayAttributeAsyncHandler; typedef Outcome EnablePhysicalConnectionOutcome; typedef std::future EnablePhysicalConnectionOutcomeCallable; typedef std::function&)> EnablePhysicalConnectionAsyncHandler; - typedef Outcome ModifyEipAddressAttributeOutcome; - typedef std::future ModifyEipAddressAttributeOutcomeCallable; - typedef std::function&)> ModifyEipAddressAttributeAsyncHandler; + typedef Outcome CreateVpnRouteEntryOutcome; + typedef std::future CreateVpnRouteEntryOutcomeCallable; + typedef std::function&)> CreateVpnRouteEntryAsyncHandler; typedef Outcome ModifyCommonBandwidthPackagePayTypeOutcome; typedef std::future ModifyCommonBandwidthPackagePayTypeOutcomeCallable; typedef std::function&)> ModifyCommonBandwidthPackagePayTypeAsyncHandler; typedef Outcome DescribeVSwitchAttributesOutcome; typedef std::future DescribeVSwitchAttributesOutcomeCallable; typedef std::function&)> DescribeVSwitchAttributesAsyncHandler; - typedef Outcome ModifyIPv6TranslatorEntryOutcome; - typedef std::future ModifyIPv6TranslatorEntryOutcomeCallable; - typedef std::function&)> ModifyIPv6TranslatorEntryAsyncHandler; typedef Outcome CreateCommonBandwidthPackageOutcome; typedef std::future CreateCommonBandwidthPackageOutcomeCallable; typedef std::function&)> CreateCommonBandwidthPackageAsyncHandler; - typedef Outcome DescribePhysicalConnectionOrderOutcome; - typedef std::future DescribePhysicalConnectionOrderOutcomeCallable; - typedef std::function&)> DescribePhysicalConnectionOrderAsyncHandler; - typedef Outcome CreateForwardEntryOutcome; - typedef std::future CreateForwardEntryOutcomeCallable; - typedef std::function&)> CreateForwardEntryAsyncHandler; typedef Outcome DescribeRouterInterfacesOutcome; typedef std::future DescribeRouterInterfacesOutcomeCallable; typedef std::function&)> DescribeRouterInterfacesAsyncHandler; - typedef Outcome DeactiveFlowLogOutcome; - typedef std::future DeactiveFlowLogOutcomeCallable; - typedef std::function&)> DeactiveFlowLogAsyncHandler; + typedef Outcome CreateForwardEntryOutcome; + typedef std::future CreateForwardEntryOutcomeCallable; + typedef std::function&)> CreateForwardEntryAsyncHandler; typedef Outcome CreateFlowLogOutcome; typedef std::future CreateFlowLogOutcomeCallable; typedef std::function&)> CreateFlowLogAsyncHandler; - typedef Outcome DeleteNatGatewayOutcome; - typedef std::future DeleteNatGatewayOutcomeCallable; - typedef std::function&)> DeleteNatGatewayAsyncHandler; - typedef Outcome ActiveFlowLogOutcome; - typedef std::future ActiveFlowLogOutcomeCallable; - typedef std::function&)> ActiveFlowLogAsyncHandler; - typedef Outcome DescribeZonesOutcome; - typedef std::future DescribeZonesOutcomeCallable; - typedef std::function&)> DescribeZonesAsyncHandler; - typedef Outcome DeleteIpv6EgressOnlyRuleOutcome; - typedef std::future DeleteIpv6EgressOnlyRuleOutcomeCallable; - typedef std::function&)> DeleteIpv6EgressOnlyRuleAsyncHandler; - typedef Outcome DeactivateRouterInterfaceOutcome; - typedef std::future DeactivateRouterInterfaceOutcomeCallable; - typedef std::function&)> DeactivateRouterInterfaceAsyncHandler; - typedef Outcome ModifySnatEntryOutcome; - typedef std::future ModifySnatEntryOutcomeCallable; - typedef std::function&)> ModifySnatEntryAsyncHandler; + typedef Outcome UnassociateNetworkAclOutcome; + typedef std::future UnassociateNetworkAclOutcomeCallable; + typedef std::function&)> UnassociateNetworkAclAsyncHandler; typedef Outcome DescribeIPv6TranslatorAclListsOutcome; typedef std::future DescribeIPv6TranslatorAclListsOutcomeCallable; typedef std::function&)> DescribeIPv6TranslatorAclListsAsyncHandler; - typedef Outcome DescribeAccessPointsOutcome; - typedef std::future DescribeAccessPointsOutcomeCallable; - typedef std::function&)> DescribeAccessPointsAsyncHandler; typedef Outcome CreateSslVpnClientCertOutcome; typedef std::future CreateSslVpnClientCertOutcomeCallable; typedef std::function&)> CreateSslVpnClientCertAsyncHandler; - typedef Outcome CreateIPv6TranslatorAclListOutcome; - typedef std::future CreateIPv6TranslatorAclListOutcomeCallable; - typedef std::function&)> CreateIPv6TranslatorAclListAsyncHandler; typedef Outcome CreateVirtualBorderRouterOutcome; typedef std::future CreateVirtualBorderRouterOutcomeCallable; typedef std::function&)> CreateVirtualBorderRouterAsyncHandler; - typedef Outcome DeleteBgpGroupOutcome; - typedef std::future DeleteBgpGroupOutcomeCallable; - typedef std::function&)> DeleteBgpGroupAsyncHandler; + typedef Outcome DescribeNetworkAclsOutcome; + typedef std::future DescribeNetworkAclsOutcomeCallable; + typedef std::function&)> DescribeNetworkAclsAsyncHandler; typedef Outcome DescribeIpv6AddressesOutcome; typedef std::future DescribeIpv6AddressesOutcomeCallable; typedef std::function&)> DescribeIpv6AddressesAsyncHandler; typedef Outcome DeleteIPv6TranslatorEntryOutcome; typedef std::future DeleteIPv6TranslatorEntryOutcomeCallable; typedef std::function&)> DeleteIPv6TranslatorEntryAsyncHandler; - typedef Outcome ReleaseEipAddressOutcome; - typedef std::future ReleaseEipAddressOutcomeCallable; - typedef std::function&)> ReleaseEipAddressAsyncHandler; + typedef Outcome UnTagResourcesOutcome; + typedef std::future UnTagResourcesOutcomeCallable; + typedef std::function&)> UnTagResourcesAsyncHandler; + typedef Outcome CreateNetworkAclOutcome; + typedef std::future CreateNetworkAclOutcomeCallable; + typedef std::function&)> CreateNetworkAclAsyncHandler; + typedef Outcome CreatePhysicalConnectionSetupOrderOutcome; + typedef std::future CreatePhysicalConnectionSetupOrderOutcomeCallable; + typedef std::function&)> CreatePhysicalConnectionSetupOrderAsyncHandler; typedef Outcome CreateBgpPeerOutcome; typedef std::future CreateBgpPeerOutcomeCallable; typedef std::function&)> CreateBgpPeerAsyncHandler; typedef Outcome DescribeRouteTablesOutcome; typedef std::future DescribeRouteTablesOutcomeCallable; typedef std::function&)> DescribeRouteTablesAsyncHandler; - typedef Outcome DescribeVSwitchesOutcome; - typedef std::future DescribeVSwitchesOutcomeCallable; - typedef std::function&)> DescribeVSwitchesAsyncHandler; - typedef Outcome ModifyRouterInterfaceSpecOutcome; - typedef std::future ModifyRouterInterfaceSpecOutcomeCallable; - typedef std::function&)> ModifyRouterInterfaceSpecAsyncHandler; - typedef Outcome DescribeVpcsOutcome; - typedef std::future DescribeVpcsOutcomeCallable; - typedef std::function&)> DescribeVpcsAsyncHandler; + typedef Outcome DescribeRouteEntryListOutcome; + typedef std::future DescribeRouteEntryListOutcomeCallable; + typedef std::function&)> DescribeRouteEntryListAsyncHandler; typedef Outcome CreatePhysicalConnectionOutcome; typedef std::future CreatePhysicalConnectionOutcomeCallable; typedef std::function&)> CreatePhysicalConnectionAsyncHandler; + typedef Outcome ApplyPhysicalConnectionLOAOutcome; + typedef std::future ApplyPhysicalConnectionLOAOutcomeCallable; + typedef std::function&)> ApplyPhysicalConnectionLOAAsyncHandler; typedef Outcome UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome; typedef std::future UnassociatePhysicalConnectionFromVirtualBorderRouterOutcomeCallable; typedef std::function&)> UnassociatePhysicalConnectionFromVirtualBorderRouterAsyncHandler; + typedef Outcome DeleteVpnPbrRouteEntryOutcome; + typedef std::future DeleteVpnPbrRouteEntryOutcomeCallable; + typedef std::function&)> DeleteVpnPbrRouteEntryAsyncHandler; typedef Outcome DescribeServerRelatedGlobalAccelerationInstancesOutcome; typedef std::future DescribeServerRelatedGlobalAccelerationInstancesOutcomeCallable; typedef std::function&)> DescribeServerRelatedGlobalAccelerationInstancesAsyncHandler; typedef Outcome AssociateHaVipOutcome; typedef std::future AssociateHaVipOutcomeCallable; typedef std::function&)> AssociateHaVipAsyncHandler; - typedef Outcome ModifyRouterInterfaceAttributeOutcome; - typedef std::future ModifyRouterInterfaceAttributeOutcomeCallable; - typedef std::function&)> ModifyRouterInterfaceAttributeAsyncHandler; typedef Outcome AssociateRouteTableOutcome; typedef std::future AssociateRouteTableOutcomeCallable; typedef std::function&)> AssociateRouteTableAsyncHandler; typedef Outcome ModifyIPv6TranslatorAclAttributeOutcome; typedef std::future ModifyIPv6TranslatorAclAttributeOutcomeCallable; typedef std::function&)> ModifyIPv6TranslatorAclAttributeAsyncHandler; - typedef Outcome DescribeVirtualBorderRoutersForPhysicalConnectionOutcome; - typedef std::future DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable; - typedef std::function&)> DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler; - typedef Outcome ModifyGlobalAccelerationInstanceAttributesOutcome; - typedef std::future ModifyGlobalAccelerationInstanceAttributesOutcomeCallable; - typedef std::function&)> ModifyGlobalAccelerationInstanceAttributesAsyncHandler; - typedef Outcome DeleteRouteEntryOutcome; - typedef std::future DeleteRouteEntryOutcomeCallable; - typedef std::function&)> DeleteRouteEntryAsyncHandler; typedef Outcome DeleteVirtualBorderRouterOutcome; typedef std::future DeleteVirtualBorderRouterOutcomeCallable; typedef std::function&)> DeleteVirtualBorderRouterAsyncHandler; + typedef Outcome AssociateNetworkAclOutcome; + typedef std::future AssociateNetworkAclOutcomeCallable; + typedef std::function&)> AssociateNetworkAclAsyncHandler; + typedef Outcome DeleteRouteEntryOutcome; + typedef std::future DeleteRouteEntryOutcomeCallable; + typedef std::function&)> DeleteRouteEntryAsyncHandler; typedef Outcome ModifyCommonBandwidthPackageSpecOutcome; typedef std::future ModifyCommonBandwidthPackageSpecOutcomeCallable; typedef std::function&)> ModifyCommonBandwidthPackageSpecAsyncHandler; - typedef Outcome CreatePhysicalConnectionNewOutcome; - typedef std::future CreatePhysicalConnectionNewOutcomeCallable; - typedef std::function&)> CreatePhysicalConnectionNewAsyncHandler; typedef Outcome TerminatePhysicalConnectionOutcome; typedef std::future TerminatePhysicalConnectionOutcomeCallable; typedef std::function&)> TerminatePhysicalConnectionAsyncHandler; typedef Outcome DescribeIpv6EgressOnlyRulesOutcome; typedef std::future DescribeIpv6EgressOnlyRulesOutcomeCallable; typedef std::function&)> DescribeIpv6EgressOnlyRulesAsyncHandler; + typedef Outcome DescribePhysicalConnectionLOAOutcome; + typedef std::future DescribePhysicalConnectionLOAOutcomeCallable; + typedef std::function&)> DescribePhysicalConnectionLOAAsyncHandler; typedef Outcome DescribeVpnGatewayOutcome; typedef std::future DescribeVpnGatewayOutcomeCallable; typedef std::function&)> DescribeVpnGatewayAsyncHandler; @@ -873,45 +1076,33 @@ namespace AlibabaCloud typedef Outcome DeleteRouteTableOutcome; typedef std::future DeleteRouteTableOutcomeCallable; typedef std::function&)> DeleteRouteTableAsyncHandler; - typedef Outcome ModifyBgpGroupAttributeOutcome; - typedef std::future ModifyBgpGroupAttributeOutcomeCallable; - typedef std::function&)> ModifyBgpGroupAttributeAsyncHandler; - typedef Outcome ModifyCommonBandwidthPackageAttributeOutcome; - typedef std::future ModifyCommonBandwidthPackageAttributeOutcomeCallable; - typedef std::function&)> ModifyCommonBandwidthPackageAttributeAsyncHandler; + typedef Outcome DescribeVpnRouteEntriesOutcome; + typedef std::future DescribeVpnRouteEntriesOutcomeCallable; + typedef std::function&)> DescribeVpnRouteEntriesAsyncHandler; typedef Outcome UnassociateRouteTableOutcome; typedef std::future UnassociateRouteTableOutcomeCallable; typedef std::function&)> UnassociateRouteTableAsyncHandler; - typedef Outcome DeleteForwardEntryOutcome; - typedef std::future DeleteForwardEntryOutcomeCallable; - typedef std::function&)> DeleteForwardEntryAsyncHandler; - typedef Outcome AddCommonBandwidthPackageIpOutcome; - typedef std::future AddCommonBandwidthPackageIpOutcomeCallable; - typedef std::function&)> AddCommonBandwidthPackageIpAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; - typedef Outcome ModifyIpv6InternetBandwidthOutcome; - typedef std::future ModifyIpv6InternetBandwidthOutcomeCallable; - typedef std::function&)> ModifyIpv6InternetBandwidthAsyncHandler; + typedef Outcome ModifyCommonBandwidthPackageIpBandwidthOutcome; + typedef std::future ModifyCommonBandwidthPackageIpBandwidthOutcomeCallable; + typedef std::function&)> ModifyCommonBandwidthPackageIpBandwidthAsyncHandler; + typedef Outcome CompletePhysicalConnectionLOAOutcome; + typedef std::future CompletePhysicalConnectionLOAOutcomeCallable; + typedef std::function&)> CompletePhysicalConnectionLOAAsyncHandler; typedef Outcome DescribePhysicalConnectionsOutcome; typedef std::future DescribePhysicalConnectionsOutcomeCallable; typedef std::function&)> DescribePhysicalConnectionsAsyncHandler; typedef Outcome DescribeVpnGatewaysOutcome; typedef std::future DescribeVpnGatewaysOutcomeCallable; typedef std::function&)> DescribeVpnGatewaysAsyncHandler; - typedef Outcome DescribeVirtualBorderRoutersOutcome; - typedef std::future DescribeVirtualBorderRoutersOutcomeCallable; - typedef std::function&)> DescribeVirtualBorderRoutersAsyncHandler; typedef Outcome CancelPhysicalConnectionOutcome; typedef std::future CancelPhysicalConnectionOutcomeCallable; typedef std::function&)> CancelPhysicalConnectionAsyncHandler; typedef Outcome CreateGlobalAccelerationInstanceOutcome; typedef std::future CreateGlobalAccelerationInstanceOutcomeCallable; typedef std::function&)> CreateGlobalAccelerationInstanceAsyncHandler; - typedef Outcome CreateBgpGroupOutcome; - typedef std::future CreateBgpGroupOutcomeCallable; - typedef std::function&)> CreateBgpGroupAsyncHandler; typedef Outcome DescribeVRoutersOutcome; typedef std::future DescribeVRoutersOutcomeCallable; typedef std::function&)> DescribeVRoutersAsyncHandler; @@ -927,6 +1118,9 @@ namespace AlibabaCloud typedef Outcome UnassociateHaVipOutcome; typedef std::future UnassociateHaVipOutcomeCallable; typedef std::function&)> UnassociateHaVipAsyncHandler; + typedef Outcome CreatePhysicalConnectionOccupancyOrderOutcome; + typedef std::future CreatePhysicalConnectionOccupancyOrderOutcomeCallable; + typedef std::function&)> CreatePhysicalConnectionOccupancyOrderAsyncHandler; typedef Outcome DescribeCommonBandwidthPackagesOutcome; typedef std::future DescribeCommonBandwidthPackagesOutcomeCallable; typedef std::function&)> DescribeCommonBandwidthPackagesAsyncHandler; @@ -936,15 +1130,6 @@ namespace AlibabaCloud typedef Outcome DeleteIPv6TranslatorAclListOutcome; typedef std::future DeleteIPv6TranslatorAclListOutcomeCallable; typedef std::function&)> DeleteIPv6TranslatorAclListAsyncHandler; - typedef Outcome AssociateGlobalAccelerationInstanceOutcome; - typedef std::future AssociateGlobalAccelerationInstanceOutcomeCallable; - typedef std::function&)> AssociateGlobalAccelerationInstanceAsyncHandler; - typedef Outcome DescribeSslVpnServersOutcome; - typedef std::future DescribeSslVpnServersOutcomeCallable; - typedef std::function&)> DescribeSslVpnServersAsyncHandler; - typedef Outcome DescribeSnatTableEntriesOutcome; - typedef std::future DescribeSnatTableEntriesOutcomeCallable; - typedef std::function&)> DescribeSnatTableEntriesAsyncHandler; typedef Outcome ModifyVRouterAttributeOutcome; typedef std::future ModifyVRouterAttributeOutcomeCallable; typedef std::function&)> ModifyVRouterAttributeAsyncHandler; @@ -956,75 +1141,36 @@ namespace AlibabaCloud VpcClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); VpcClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~VpcClient(); - DeleteCustomerGatewayOutcome deleteCustomerGateway(const Model::DeleteCustomerGatewayRequest &request)const; - void deleteCustomerGatewayAsync(const Model::DeleteCustomerGatewayRequest& request, const DeleteCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCustomerGatewayOutcomeCallable deleteCustomerGatewayCallable(const Model::DeleteCustomerGatewayRequest& request) const; - UnassociateGlobalAccelerationInstanceOutcome unassociateGlobalAccelerationInstance(const Model::UnassociateGlobalAccelerationInstanceRequest &request)const; - void unassociateGlobalAccelerationInstanceAsync(const Model::UnassociateGlobalAccelerationInstanceRequest& request, const UnassociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnassociateGlobalAccelerationInstanceOutcomeCallable unassociateGlobalAccelerationInstanceCallable(const Model::UnassociateGlobalAccelerationInstanceRequest& request) const; - DeleteIPv6TranslatorOutcome deleteIPv6Translator(const Model::DeleteIPv6TranslatorRequest &request)const; - void deleteIPv6TranslatorAsync(const Model::DeleteIPv6TranslatorRequest& request, const DeleteIPv6TranslatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteIPv6TranslatorOutcomeCallable deleteIPv6TranslatorCallable(const Model::DeleteIPv6TranslatorRequest& request) const; - DescribeRouteTableListOutcome describeRouteTableList(const Model::DescribeRouteTableListRequest &request)const; - void describeRouteTableListAsync(const Model::DescribeRouteTableListRequest& request, const DescribeRouteTableListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRouteTableListOutcomeCallable describeRouteTableListCallable(const Model::DescribeRouteTableListRequest& request) const; - AssociatePhysicalConnectionToVirtualBorderRouterOutcome associatePhysicalConnectionToVirtualBorderRouter(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest &request)const; - void associatePhysicalConnectionToVirtualBorderRouterAsync(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest& request, const AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable associatePhysicalConnectionToVirtualBorderRouterCallable(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest& request) const; - DeleteGlobalAccelerationInstanceOutcome deleteGlobalAccelerationInstance(const Model::DeleteGlobalAccelerationInstanceRequest &request)const; - void deleteGlobalAccelerationInstanceAsync(const Model::DeleteGlobalAccelerationInstanceRequest& request, const DeleteGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteGlobalAccelerationInstanceOutcomeCallable deleteGlobalAccelerationInstanceCallable(const Model::DeleteGlobalAccelerationInstanceRequest& request) const; - DescribeCustomerGatewaysOutcome describeCustomerGateways(const Model::DescribeCustomerGatewaysRequest &request)const; - void describeCustomerGatewaysAsync(const Model::DescribeCustomerGatewaysRequest& request, const DescribeCustomerGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCustomerGatewaysOutcomeCallable describeCustomerGatewaysCallable(const Model::DescribeCustomerGatewaysRequest& request) const; DescribeGlobalAccelerationInstancesOutcome describeGlobalAccelerationInstances(const Model::DescribeGlobalAccelerationInstancesRequest &request)const; void describeGlobalAccelerationInstancesAsync(const Model::DescribeGlobalAccelerationInstancesRequest& request, const DescribeGlobalAccelerationInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGlobalAccelerationInstancesOutcomeCallable describeGlobalAccelerationInstancesCallable(const Model::DescribeGlobalAccelerationInstancesRequest& request) const; ModifySslVpnClientCertOutcome modifySslVpnClientCert(const Model::ModifySslVpnClientCertRequest &request)const; void modifySslVpnClientCertAsync(const Model::ModifySslVpnClientCertRequest& request, const ModifySslVpnClientCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySslVpnClientCertOutcomeCallable modifySslVpnClientCertCallable(const Model::ModifySslVpnClientCertRequest& request) const; - DeleteVpcOutcome deleteVpc(const Model::DeleteVpcRequest &request)const; - void deleteVpcAsync(const Model::DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteVpcOutcomeCallable deleteVpcCallable(const Model::DeleteVpcRequest& request) const; DescribeBgpNetworksOutcome describeBgpNetworks(const Model::DescribeBgpNetworksRequest &request)const; void describeBgpNetworksAsync(const Model::DescribeBgpNetworksRequest& request, const DescribeBgpNetworksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBgpNetworksOutcomeCallable describeBgpNetworksCallable(const Model::DescribeBgpNetworksRequest& request) const; - DownloadVpnConnectionConfigOutcome downloadVpnConnectionConfig(const Model::DownloadVpnConnectionConfigRequest &request)const; - void downloadVpnConnectionConfigAsync(const Model::DownloadVpnConnectionConfigRequest& request, const DownloadVpnConnectionConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DownloadVpnConnectionConfigOutcomeCallable downloadVpnConnectionConfigCallable(const Model::DownloadVpnConnectionConfigRequest& request) const; RemoveCommonBandwidthPackageIpOutcome removeCommonBandwidthPackageIp(const Model::RemoveCommonBandwidthPackageIpRequest &request)const; void removeCommonBandwidthPackageIpAsync(const Model::RemoveCommonBandwidthPackageIpRequest& request, const RemoveCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveCommonBandwidthPackageIpOutcomeCallable removeCommonBandwidthPackageIpCallable(const Model::RemoveCommonBandwidthPackageIpRequest& request) const; - DescribeIPv6TranslatorsOutcome describeIPv6Translators(const Model::DescribeIPv6TranslatorsRequest &request)const; - void describeIPv6TranslatorsAsync(const Model::DescribeIPv6TranslatorsRequest& request, const DescribeIPv6TranslatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeIPv6TranslatorsOutcomeCallable describeIPv6TranslatorsCallable(const Model::DescribeIPv6TranslatorsRequest& request) const; + UpdateNetworkAclEntriesOutcome updateNetworkAclEntries(const Model::UpdateNetworkAclEntriesRequest &request)const; + void updateNetworkAclEntriesAsync(const Model::UpdateNetworkAclEntriesRequest& request, const UpdateNetworkAclEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNetworkAclEntriesOutcomeCallable updateNetworkAclEntriesCallable(const Model::UpdateNetworkAclEntriesRequest& request) const; ModifyBandwidthPackageSpecOutcome modifyBandwidthPackageSpec(const Model::ModifyBandwidthPackageSpecRequest &request)const; void modifyBandwidthPackageSpecAsync(const Model::ModifyBandwidthPackageSpecRequest& request, const ModifyBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBandwidthPackageSpecOutcomeCallable modifyBandwidthPackageSpecCallable(const Model::ModifyBandwidthPackageSpecRequest& request) const; CreateNatGatewayOutcome createNatGateway(const Model::CreateNatGatewayRequest &request)const; void createNatGatewayAsync(const Model::CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateNatGatewayOutcomeCallable createNatGatewayCallable(const Model::CreateNatGatewayRequest& request) const; - DeleteVSwitchOutcome deleteVSwitch(const Model::DeleteVSwitchRequest &request)const; - void deleteVSwitchAsync(const Model::DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteVSwitchOutcomeCallable deleteVSwitchCallable(const Model::DeleteVSwitchRequest& request) const; AddIPv6TranslatorAclListEntryOutcome addIPv6TranslatorAclListEntry(const Model::AddIPv6TranslatorAclListEntryRequest &request)const; void addIPv6TranslatorAclListEntryAsync(const Model::AddIPv6TranslatorAclListEntryRequest& request, const AddIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddIPv6TranslatorAclListEntryOutcomeCallable addIPv6TranslatorAclListEntryCallable(const Model::AddIPv6TranslatorAclListEntryRequest& request) const; - CreateRouteTableOutcome createRouteTable(const Model::CreateRouteTableRequest &request)const; - void createRouteTableAsync(const Model::CreateRouteTableRequest& request, const CreateRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateRouteTableOutcomeCallable createRouteTableCallable(const Model::CreateRouteTableRequest& request) const; CreateHaVipOutcome createHaVip(const Model::CreateHaVipRequest &request)const; void createHaVipAsync(const Model::CreateHaVipRequest& request, const CreateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateHaVipOutcomeCallable createHaVipCallable(const Model::CreateHaVipRequest& request) const; DeleteIpv6GatewayOutcome deleteIpv6Gateway(const Model::DeleteIpv6GatewayRequest &request)const; void deleteIpv6GatewayAsync(const Model::DeleteIpv6GatewayRequest& request, const DeleteIpv6GatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteIpv6GatewayOutcomeCallable deleteIpv6GatewayCallable(const Model::DeleteIpv6GatewayRequest& request) const; - CreateBandwidthPackageOutcome createBandwidthPackage(const Model::CreateBandwidthPackageRequest &request)const; - void createBandwidthPackageAsync(const Model::CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateBandwidthPackageOutcomeCallable createBandwidthPackageCallable(const Model::CreateBandwidthPackageRequest& request) const; - RecoverVirtualBorderRouterOutcome recoverVirtualBorderRouter(const Model::RecoverVirtualBorderRouterRequest &request)const; - void recoverVirtualBorderRouterAsync(const Model::RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RecoverVirtualBorderRouterOutcomeCallable recoverVirtualBorderRouterCallable(const Model::RecoverVirtualBorderRouterRequest& request) const; AssociateEipAddressOutcome associateEipAddress(const Model::AssociateEipAddressRequest &request)const; void associateEipAddressAsync(const Model::AssociateEipAddressRequest& request, const AssociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateEipAddressOutcomeCallable associateEipAddressCallable(const Model::AssociateEipAddressRequest& request) const; @@ -1034,30 +1180,12 @@ namespace AlibabaCloud ActivateRouterInterfaceOutcome activateRouterInterface(const Model::ActivateRouterInterfaceRequest &request)const; void activateRouterInterfaceAsync(const Model::ActivateRouterInterfaceRequest& request, const ActivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ActivateRouterInterfaceOutcomeCallable activateRouterInterfaceCallable(const Model::ActivateRouterInterfaceRequest& request) const; - CreateCustomerGatewayOutcome createCustomerGateway(const Model::CreateCustomerGatewayRequest &request)const; - void createCustomerGatewayAsync(const Model::CreateCustomerGatewayRequest& request, const CreateCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCustomerGatewayOutcomeCallable createCustomerGatewayCallable(const Model::CreateCustomerGatewayRequest& request) const; - DeleteSslVpnServerOutcome deleteSslVpnServer(const Model::DeleteSslVpnServerRequest &request)const; - void deleteSslVpnServerAsync(const Model::DeleteSslVpnServerRequest& request, const DeleteSslVpnServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSslVpnServerOutcomeCallable deleteSslVpnServerCallable(const Model::DeleteSslVpnServerRequest& request) const; - DeleteBandwidthPackageOutcome deleteBandwidthPackage(const Model::DeleteBandwidthPackageRequest &request)const; - void deleteBandwidthPackageAsync(const Model::DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteBandwidthPackageOutcomeCallable deleteBandwidthPackageCallable(const Model::DeleteBandwidthPackageRequest& request) const; - DeleteBgpPeerOutcome deleteBgpPeer(const Model::DeleteBgpPeerRequest &request)const; - void deleteBgpPeerAsync(const Model::DeleteBgpPeerRequest& request, const DeleteBgpPeerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteBgpPeerOutcomeCallable deleteBgpPeerCallable(const Model::DeleteBgpPeerRequest& request) const; - DescribeIpv6GatewaysOutcome describeIpv6Gateways(const Model::DescribeIpv6GatewaysRequest &request)const; - void describeIpv6GatewaysAsync(const Model::DescribeIpv6GatewaysRequest& request, const DescribeIpv6GatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeIpv6GatewaysOutcomeCallable describeIpv6GatewaysCallable(const Model::DescribeIpv6GatewaysRequest& request) const; + CopyNetworkAclEntriesOutcome copyNetworkAclEntries(const Model::CopyNetworkAclEntriesRequest &request)const; + void copyNetworkAclEntriesAsync(const Model::CopyNetworkAclEntriesRequest& request, const CopyNetworkAclEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyNetworkAclEntriesOutcomeCallable copyNetworkAclEntriesCallable(const Model::CopyNetworkAclEntriesRequest& request) const; TerminateVirtualBorderRouterOutcome terminateVirtualBorderRouter(const Model::TerminateVirtualBorderRouterRequest &request)const; void terminateVirtualBorderRouterAsync(const Model::TerminateVirtualBorderRouterRequest& request, const TerminateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TerminateVirtualBorderRouterOutcomeCallable terminateVirtualBorderRouterCallable(const Model::TerminateVirtualBorderRouterRequest& request) const; - DeleteNqaOutcome deleteNqa(const Model::DeleteNqaRequest &request)const; - void deleteNqaAsync(const Model::DeleteNqaRequest& request, const DeleteNqaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNqaOutcomeCallable deleteNqaCallable(const Model::DeleteNqaRequest& request) const; - RemoveIPv6TranslatorAclListEntryOutcome removeIPv6TranslatorAclListEntry(const Model::RemoveIPv6TranslatorAclListEntryRequest &request)const; - void removeIPv6TranslatorAclListEntryAsync(const Model::RemoveIPv6TranslatorAclListEntryRequest& request, const RemoveIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveIPv6TranslatorAclListEntryOutcomeCallable removeIPv6TranslatorAclListEntryCallable(const Model::RemoveIPv6TranslatorAclListEntryRequest& request) const; ModifyRouteEntryOutcome modifyRouteEntry(const Model::ModifyRouteEntryRequest &request)const; void modifyRouteEntryAsync(const Model::ModifyRouteEntryRequest& request, const ModifyRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyRouteEntryOutcomeCallable modifyRouteEntryCallable(const Model::ModifyRouteEntryRequest& request) const; @@ -1067,12 +1195,306 @@ namespace AlibabaCloud ModifyRouteTableAttributesOutcome modifyRouteTableAttributes(const Model::ModifyRouteTableAttributesRequest &request)const; void modifyRouteTableAttributesAsync(const Model::ModifyRouteTableAttributesRequest& request, const ModifyRouteTableAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyRouteTableAttributesOutcomeCallable modifyRouteTableAttributesCallable(const Model::ModifyRouteTableAttributesRequest& request) const; - ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const; - void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const; DeletePhysicalConnectionOutcome deletePhysicalConnection(const Model::DeletePhysicalConnectionRequest &request)const; void deletePhysicalConnectionAsync(const Model::DeletePhysicalConnectionRequest& request, const DeletePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePhysicalConnectionOutcomeCallable deletePhysicalConnectionCallable(const Model::DeletePhysicalConnectionRequest& request) const; + PublishVpnRouteEntryOutcome publishVpnRouteEntry(const Model::PublishVpnRouteEntryRequest &request)const; + void publishVpnRouteEntryAsync(const Model::PublishVpnRouteEntryRequest& request, const PublishVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishVpnRouteEntryOutcomeCallable publishVpnRouteEntryCallable(const Model::PublishVpnRouteEntryRequest& request) const; + CreateIPv6TranslatorEntryOutcome createIPv6TranslatorEntry(const Model::CreateIPv6TranslatorEntryRequest &request)const; + void createIPv6TranslatorEntryAsync(const Model::CreateIPv6TranslatorEntryRequest& request, const CreateIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIPv6TranslatorEntryOutcomeCallable createIPv6TranslatorEntryCallable(const Model::CreateIPv6TranslatorEntryRequest& request) const; + DescribeForwardTableEntriesOutcome describeForwardTableEntries(const Model::DescribeForwardTableEntriesRequest &request)const; + void describeForwardTableEntriesAsync(const Model::DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeForwardTableEntriesOutcomeCallable describeForwardTableEntriesCallable(const Model::DescribeForwardTableEntriesRequest& request) const; + DescribeSslVpnClientCertsOutcome describeSslVpnClientCerts(const Model::DescribeSslVpnClientCertsRequest &request)const; + void describeSslVpnClientCertsAsync(const Model::DescribeSslVpnClientCertsRequest& request, const DescribeSslVpnClientCertsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSslVpnClientCertsOutcomeCallable describeSslVpnClientCertsCallable(const Model::DescribeSslVpnClientCertsRequest& request) const; + ModifyGlobalAccelerationInstanceSpecOutcome modifyGlobalAccelerationInstanceSpec(const Model::ModifyGlobalAccelerationInstanceSpecRequest &request)const; + void modifyGlobalAccelerationInstanceSpecAsync(const Model::ModifyGlobalAccelerationInstanceSpecRequest& request, const ModifyGlobalAccelerationInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGlobalAccelerationInstanceSpecOutcomeCallable modifyGlobalAccelerationInstanceSpecCallable(const Model::ModifyGlobalAccelerationInstanceSpecRequest& request) const; + DescribeVpnSslServerLogsOutcome describeVpnSslServerLogs(const Model::DescribeVpnSslServerLogsRequest &request)const; + void describeVpnSslServerLogsAsync(const Model::DescribeVpnSslServerLogsRequest& request, const DescribeVpnSslServerLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnSslServerLogsOutcomeCallable describeVpnSslServerLogsCallable(const Model::DescribeVpnSslServerLogsRequest& request) const; + DeleteRouterInterfaceOutcome deleteRouterInterface(const Model::DeleteRouterInterfaceRequest &request)const; + void deleteRouterInterfaceAsync(const Model::DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouterInterfaceOutcomeCallable deleteRouterInterfaceCallable(const Model::DeleteRouterInterfaceRequest& request) const; + ModifyFlowLogAttributeOutcome modifyFlowLogAttribute(const Model::ModifyFlowLogAttributeRequest &request)const; + void modifyFlowLogAttributeAsync(const Model::ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFlowLogAttributeOutcomeCallable modifyFlowLogAttributeCallable(const Model::ModifyFlowLogAttributeRequest& request) const; + DescribeNqasOutcome describeNqas(const Model::DescribeNqasRequest &request)const; + void describeNqasAsync(const Model::DescribeNqasRequest& request, const DescribeNqasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNqasOutcomeCallable describeNqasCallable(const Model::DescribeNqasRequest& request) const; + ModifyNatGatewayAttributeOutcome modifyNatGatewayAttribute(const Model::ModifyNatGatewayAttributeRequest &request)const; + void modifyNatGatewayAttributeAsync(const Model::ModifyNatGatewayAttributeRequest& request, const ModifyNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNatGatewayAttributeOutcomeCallable modifyNatGatewayAttributeCallable(const Model::ModifyNatGatewayAttributeRequest& request) const; + DescribeEipMonitorDataOutcome describeEipMonitorData(const Model::DescribeEipMonitorDataRequest &request)const; + void describeEipMonitorDataAsync(const Model::DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEipMonitorDataOutcomeCallable describeEipMonitorDataCallable(const Model::DescribeEipMonitorDataRequest& request) const; + CreateExpressCloudConnectionOutcome createExpressCloudConnection(const Model::CreateExpressCloudConnectionRequest &request)const; + void createExpressCloudConnectionAsync(const Model::CreateExpressCloudConnectionRequest& request, const CreateExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateExpressCloudConnectionOutcomeCallable createExpressCloudConnectionCallable(const Model::CreateExpressCloudConnectionRequest& request) const; + ModifyVpnRouteEntryWeightOutcome modifyVpnRouteEntryWeight(const Model::ModifyVpnRouteEntryWeightRequest &request)const; + void modifyVpnRouteEntryWeightAsync(const Model::ModifyVpnRouteEntryWeightRequest& request, const ModifyVpnRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnRouteEntryWeightOutcomeCallable modifyVpnRouteEntryWeightCallable(const Model::ModifyVpnRouteEntryWeightRequest& request) const; + ModifyVpnGatewayAttributeOutcome modifyVpnGatewayAttribute(const Model::ModifyVpnGatewayAttributeRequest &request)const; + void modifyVpnGatewayAttributeAsync(const Model::ModifyVpnGatewayAttributeRequest& request, const ModifyVpnGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnGatewayAttributeOutcomeCallable modifyVpnGatewayAttributeCallable(const Model::ModifyVpnGatewayAttributeRequest& request) const; + AddBgpNetworkOutcome addBgpNetwork(const Model::AddBgpNetworkRequest &request)const; + void addBgpNetworkAsync(const Model::AddBgpNetworkRequest& request, const AddBgpNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBgpNetworkOutcomeCallable addBgpNetworkCallable(const Model::AddBgpNetworkRequest& request) const; + DescribeIPv6TranslatorEntriesOutcome describeIPv6TranslatorEntries(const Model::DescribeIPv6TranslatorEntriesRequest &request)const; + void describeIPv6TranslatorEntriesAsync(const Model::DescribeIPv6TranslatorEntriesRequest& request, const DescribeIPv6TranslatorEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIPv6TranslatorEntriesOutcomeCallable describeIPv6TranslatorEntriesCallable(const Model::DescribeIPv6TranslatorEntriesRequest& request) const; + ConnectRouterInterfaceOutcome connectRouterInterface(const Model::ConnectRouterInterfaceRequest &request)const; + void connectRouterInterfaceAsync(const Model::ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConnectRouterInterfaceOutcomeCallable connectRouterInterfaceCallable(const Model::ConnectRouterInterfaceRequest& request) const; + DescribeIpv6GatewayAttributeOutcome describeIpv6GatewayAttribute(const Model::DescribeIpv6GatewayAttributeRequest &request)const; + void describeIpv6GatewayAttributeAsync(const Model::DescribeIpv6GatewayAttributeRequest& request, const DescribeIpv6GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpv6GatewayAttributeOutcomeCallable describeIpv6GatewayAttributeCallable(const Model::DescribeIpv6GatewayAttributeRequest& request) const; + DescribeVpnPbrRouteEntriesOutcome describeVpnPbrRouteEntries(const Model::DescribeVpnPbrRouteEntriesRequest &request)const; + void describeVpnPbrRouteEntriesAsync(const Model::DescribeVpnPbrRouteEntriesRequest& request, const DescribeVpnPbrRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnPbrRouteEntriesOutcomeCallable describeVpnPbrRouteEntriesCallable(const Model::DescribeVpnPbrRouteEntriesRequest& request) const; + DeleteSnatEntryOutcome deleteSnatEntry(const Model::DeleteSnatEntryRequest &request)const; + void deleteSnatEntryAsync(const Model::DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSnatEntryOutcomeCallable deleteSnatEntryCallable(const Model::DeleteSnatEntryRequest& request) const; + ModifyIpv6GatewaySpecOutcome modifyIpv6GatewaySpec(const Model::ModifyIpv6GatewaySpecRequest &request)const; + void modifyIpv6GatewaySpecAsync(const Model::ModifyIpv6GatewaySpecRequest& request, const ModifyIpv6GatewaySpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIpv6GatewaySpecOutcomeCallable modifyIpv6GatewaySpecCallable(const Model::ModifyIpv6GatewaySpecRequest& request) const; + DeleteCommonBandwidthPackageOutcome deleteCommonBandwidthPackage(const Model::DeleteCommonBandwidthPackageRequest &request)const; + void deleteCommonBandwidthPackageAsync(const Model::DeleteCommonBandwidthPackageRequest& request, const DeleteCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCommonBandwidthPackageOutcomeCallable deleteCommonBandwidthPackageCallable(const Model::DeleteCommonBandwidthPackageRequest& request) const; + CreateSnatEntryOutcome createSnatEntry(const Model::CreateSnatEntryRequest &request)const; + void createSnatEntryAsync(const Model::CreateSnatEntryRequest& request, const CreateSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSnatEntryOutcomeCallable createSnatEntryCallable(const Model::CreateSnatEntryRequest& request) const; + ModifyPhysicalConnectionAttributeOutcome modifyPhysicalConnectionAttribute(const Model::ModifyPhysicalConnectionAttributeRequest &request)const; + void modifyPhysicalConnectionAttributeAsync(const Model::ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPhysicalConnectionAttributeOutcomeCallable modifyPhysicalConnectionAttributeCallable(const Model::ModifyPhysicalConnectionAttributeRequest& request) const; + ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const; + void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const; + EnableVpcClassicLinkOutcome enableVpcClassicLink(const Model::EnableVpcClassicLinkRequest &request)const; + void enableVpcClassicLinkAsync(const Model::EnableVpcClassicLinkRequest& request, const EnableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableVpcClassicLinkOutcomeCallable enableVpcClassicLinkCallable(const Model::EnableVpcClassicLinkRequest& request) const; + ModifyIPv6TranslatorAclListEntryOutcome modifyIPv6TranslatorAclListEntry(const Model::ModifyIPv6TranslatorAclListEntryRequest &request)const; + void modifyIPv6TranslatorAclListEntryAsync(const Model::ModifyIPv6TranslatorAclListEntryRequest& request, const ModifyIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIPv6TranslatorAclListEntryOutcomeCallable modifyIPv6TranslatorAclListEntryCallable(const Model::ModifyIPv6TranslatorAclListEntryRequest& request) const; + DeleteHaVipOutcome deleteHaVip(const Model::DeleteHaVipRequest &request)const; + void deleteHaVipAsync(const Model::DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHaVipOutcomeCallable deleteHaVipCallable(const Model::DeleteHaVipRequest& request) const; + DescribeNetworkAclAttributesOutcome describeNetworkAclAttributes(const Model::DescribeNetworkAclAttributesRequest &request)const; + void describeNetworkAclAttributesAsync(const Model::DescribeNetworkAclAttributesRequest& request, const DescribeNetworkAclAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkAclAttributesOutcomeCallable describeNetworkAclAttributesCallable(const Model::DescribeNetworkAclAttributesRequest& request) const; + CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const; + void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const; + DisableVpcClassicLinkOutcome disableVpcClassicLink(const Model::DisableVpcClassicLinkRequest &request)const; + void disableVpcClassicLinkAsync(const Model::DisableVpcClassicLinkRequest& request, const DisableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableVpcClassicLinkOutcomeCallable disableVpcClassicLinkCallable(const Model::DisableVpcClassicLinkRequest& request) const; + CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const; + void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouterInterfaceOutcomeCallable createRouterInterfaceCallable(const Model::CreateRouterInterfaceRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + DescribeFlowLogsOutcome describeFlowLogs(const Model::DescribeFlowLogsRequest &request)const; + void describeFlowLogsAsync(const Model::DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFlowLogsOutcomeCallable describeFlowLogsCallable(const Model::DescribeFlowLogsRequest& request) const; + DescribeIPv6TranslatorAclListAttributesOutcome describeIPv6TranslatorAclListAttributes(const Model::DescribeIPv6TranslatorAclListAttributesRequest &request)const; + void describeIPv6TranslatorAclListAttributesAsync(const Model::DescribeIPv6TranslatorAclListAttributesRequest& request, const DescribeIPv6TranslatorAclListAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIPv6TranslatorAclListAttributesOutcomeCallable describeIPv6TranslatorAclListAttributesCallable(const Model::DescribeIPv6TranslatorAclListAttributesRequest& request) const; + ModifyNatGatewaySpecOutcome modifyNatGatewaySpec(const Model::ModifyNatGatewaySpecRequest &request)const; + void modifyNatGatewaySpecAsync(const Model::ModifyNatGatewaySpecRequest& request, const ModifyNatGatewaySpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNatGatewaySpecOutcomeCallable modifyNatGatewaySpecCallable(const Model::ModifyNatGatewaySpecRequest& request) const; + DescribeExpressCloudConnectionsOutcome describeExpressCloudConnections(const Model::DescribeExpressCloudConnectionsRequest &request)const; + void describeExpressCloudConnectionsAsync(const Model::DescribeExpressCloudConnectionsRequest& request, const DescribeExpressCloudConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExpressCloudConnectionsOutcomeCallable describeExpressCloudConnectionsCallable(const Model::DescribeExpressCloudConnectionsRequest& request) const; + DeleteSslVpnClientCertOutcome deleteSslVpnClientCert(const Model::DeleteSslVpnClientCertRequest &request)const; + void deleteSslVpnClientCertAsync(const Model::DeleteSslVpnClientCertRequest& request, const DeleteSslVpnClientCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSslVpnClientCertOutcomeCallable deleteSslVpnClientCertCallable(const Model::DeleteSslVpnClientCertRequest& request) const; + CreateVSwitchOutcome createVSwitch(const Model::CreateVSwitchRequest &request)const; + void createVSwitchAsync(const Model::CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVSwitchOutcomeCallable createVSwitchCallable(const Model::CreateVSwitchRequest& request) const; + CancelCommonBandwidthPackageIpBandwidthOutcome cancelCommonBandwidthPackageIpBandwidth(const Model::CancelCommonBandwidthPackageIpBandwidthRequest &request)const; + void cancelCommonBandwidthPackageIpBandwidthAsync(const Model::CancelCommonBandwidthPackageIpBandwidthRequest& request, const CancelCommonBandwidthPackageIpBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelCommonBandwidthPackageIpBandwidthOutcomeCallable cancelCommonBandwidthPackageIpBandwidthCallable(const Model::CancelCommonBandwidthPackageIpBandwidthRequest& request) const; + ModifyEipAddressAttributeOutcome modifyEipAddressAttribute(const Model::ModifyEipAddressAttributeRequest &request)const; + void modifyEipAddressAttributeAsync(const Model::ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEipAddressAttributeOutcomeCallable modifyEipAddressAttributeCallable(const Model::ModifyEipAddressAttributeRequest& request) const; + ModifyIPv6TranslatorEntryOutcome modifyIPv6TranslatorEntry(const Model::ModifyIPv6TranslatorEntryRequest &request)const; + void modifyIPv6TranslatorEntryAsync(const Model::ModifyIPv6TranslatorEntryRequest& request, const ModifyIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIPv6TranslatorEntryOutcomeCallable modifyIPv6TranslatorEntryCallable(const Model::ModifyIPv6TranslatorEntryRequest& request) const; + DescribePhysicalConnectionOrderOutcome describePhysicalConnectionOrder(const Model::DescribePhysicalConnectionOrderRequest &request)const; + void describePhysicalConnectionOrderAsync(const Model::DescribePhysicalConnectionOrderRequest& request, const DescribePhysicalConnectionOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhysicalConnectionOrderOutcomeCallable describePhysicalConnectionOrderCallable(const Model::DescribePhysicalConnectionOrderRequest& request) const; + DeactiveFlowLogOutcome deactiveFlowLog(const Model::DeactiveFlowLogRequest &request)const; + void deactiveFlowLogAsync(const Model::DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactiveFlowLogOutcomeCallable deactiveFlowLogCallable(const Model::DeactiveFlowLogRequest& request) const; + DeleteNatGatewayOutcome deleteNatGateway(const Model::DeleteNatGatewayRequest &request)const; + void deleteNatGatewayAsync(const Model::DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNatGatewayOutcomeCallable deleteNatGatewayCallable(const Model::DeleteNatGatewayRequest& request) const; + ActiveFlowLogOutcome activeFlowLog(const Model::ActiveFlowLogRequest &request)const; + void activeFlowLogAsync(const Model::ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActiveFlowLogOutcomeCallable activeFlowLogCallable(const Model::ActiveFlowLogRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + DeleteIpv6EgressOnlyRuleOutcome deleteIpv6EgressOnlyRule(const Model::DeleteIpv6EgressOnlyRuleRequest &request)const; + void deleteIpv6EgressOnlyRuleAsync(const Model::DeleteIpv6EgressOnlyRuleRequest& request, const DeleteIpv6EgressOnlyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIpv6EgressOnlyRuleOutcomeCallable deleteIpv6EgressOnlyRuleCallable(const Model::DeleteIpv6EgressOnlyRuleRequest& request) const; + DeactivateRouterInterfaceOutcome deactivateRouterInterface(const Model::DeactivateRouterInterfaceRequest &request)const; + void deactivateRouterInterfaceAsync(const Model::DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactivateRouterInterfaceOutcomeCallable deactivateRouterInterfaceCallable(const Model::DeactivateRouterInterfaceRequest& request) const; + DescribeAccessPointsOutcome describeAccessPoints(const Model::DescribeAccessPointsRequest &request)const; + void describeAccessPointsAsync(const Model::DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessPointsOutcomeCallable describeAccessPointsCallable(const Model::DescribeAccessPointsRequest& request) const; + ModifySnatEntryOutcome modifySnatEntry(const Model::ModifySnatEntryRequest &request)const; + void modifySnatEntryAsync(const Model::ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySnatEntryOutcomeCallable modifySnatEntryCallable(const Model::ModifySnatEntryRequest& request) const; + CreateIPv6TranslatorAclListOutcome createIPv6TranslatorAclList(const Model::CreateIPv6TranslatorAclListRequest &request)const; + void createIPv6TranslatorAclListAsync(const Model::CreateIPv6TranslatorAclListRequest& request, const CreateIPv6TranslatorAclListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIPv6TranslatorAclListOutcomeCallable createIPv6TranslatorAclListCallable(const Model::CreateIPv6TranslatorAclListRequest& request) const; + DeleteBgpGroupOutcome deleteBgpGroup(const Model::DeleteBgpGroupRequest &request)const; + void deleteBgpGroupAsync(const Model::DeleteBgpGroupRequest& request, const DeleteBgpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBgpGroupOutcomeCallable deleteBgpGroupCallable(const Model::DeleteBgpGroupRequest& request) const; + ReleaseEipAddressOutcome releaseEipAddress(const Model::ReleaseEipAddressRequest &request)const; + void releaseEipAddressAsync(const Model::ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseEipAddressOutcomeCallable releaseEipAddressCallable(const Model::ReleaseEipAddressRequest& request) const; + ModifyExpressCloudConnectionBandwidthOutcome modifyExpressCloudConnectionBandwidth(const Model::ModifyExpressCloudConnectionBandwidthRequest &request)const; + void modifyExpressCloudConnectionBandwidthAsync(const Model::ModifyExpressCloudConnectionBandwidthRequest& request, const ModifyExpressCloudConnectionBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExpressCloudConnectionBandwidthOutcomeCallable modifyExpressCloudConnectionBandwidthCallable(const Model::ModifyExpressCloudConnectionBandwidthRequest& request) const; + CreateVpnPbrRouteEntryOutcome createVpnPbrRouteEntry(const Model::CreateVpnPbrRouteEntryRequest &request)const; + void createVpnPbrRouteEntryAsync(const Model::CreateVpnPbrRouteEntryRequest& request, const CreateVpnPbrRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpnPbrRouteEntryOutcomeCallable createVpnPbrRouteEntryCallable(const Model::CreateVpnPbrRouteEntryRequest& request) const; + DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const; + void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const; + ModifyRouterInterfaceSpecOutcome modifyRouterInterfaceSpec(const Model::ModifyRouterInterfaceSpecRequest &request)const; + void modifyRouterInterfaceSpecAsync(const Model::ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRouterInterfaceSpecOutcomeCallable modifyRouterInterfaceSpecCallable(const Model::ModifyRouterInterfaceSpecRequest& request) const; + DescribeVpcsOutcome describeVpcs(const Model::DescribeVpcsRequest &request)const; + void describeVpcsAsync(const Model::DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcsOutcomeCallable describeVpcsCallable(const Model::DescribeVpcsRequest& request) const; + ModifyRouterInterfaceAttributeOutcome modifyRouterInterfaceAttribute(const Model::ModifyRouterInterfaceAttributeRequest &request)const; + void modifyRouterInterfaceAttributeAsync(const Model::ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRouterInterfaceAttributeOutcomeCallable modifyRouterInterfaceAttributeCallable(const Model::ModifyRouterInterfaceAttributeRequest& request) const; + DescribeVirtualBorderRoutersForPhysicalConnectionOutcome describeVirtualBorderRoutersForPhysicalConnection(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request)const; + void describeVirtualBorderRoutersForPhysicalConnectionAsync(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable describeVirtualBorderRoutersForPhysicalConnectionCallable(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request) const; + ModifyGlobalAccelerationInstanceAttributesOutcome modifyGlobalAccelerationInstanceAttributes(const Model::ModifyGlobalAccelerationInstanceAttributesRequest &request)const; + void modifyGlobalAccelerationInstanceAttributesAsync(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request, const ModifyGlobalAccelerationInstanceAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGlobalAccelerationInstanceAttributesOutcomeCallable modifyGlobalAccelerationInstanceAttributesCallable(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request) const; + CreatePhysicalConnectionNewOutcome createPhysicalConnectionNew(const Model::CreatePhysicalConnectionNewRequest &request)const; + void createPhysicalConnectionNewAsync(const Model::CreatePhysicalConnectionNewRequest& request, const CreatePhysicalConnectionNewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhysicalConnectionNewOutcomeCallable createPhysicalConnectionNewCallable(const Model::CreatePhysicalConnectionNewRequest& request) const; + ModifyBgpGroupAttributeOutcome modifyBgpGroupAttribute(const Model::ModifyBgpGroupAttributeRequest &request)const; + void modifyBgpGroupAttributeAsync(const Model::ModifyBgpGroupAttributeRequest& request, const ModifyBgpGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBgpGroupAttributeOutcomeCallable modifyBgpGroupAttributeCallable(const Model::ModifyBgpGroupAttributeRequest& request) const; + ModifyCommonBandwidthPackageAttributeOutcome modifyCommonBandwidthPackageAttribute(const Model::ModifyCommonBandwidthPackageAttributeRequest &request)const; + void modifyCommonBandwidthPackageAttributeAsync(const Model::ModifyCommonBandwidthPackageAttributeRequest& request, const ModifyCommonBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCommonBandwidthPackageAttributeOutcomeCallable modifyCommonBandwidthPackageAttributeCallable(const Model::ModifyCommonBandwidthPackageAttributeRequest& request) const; + DeleteForwardEntryOutcome deleteForwardEntry(const Model::DeleteForwardEntryRequest &request)const; + void deleteForwardEntryAsync(const Model::DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteForwardEntryOutcomeCallable deleteForwardEntryCallable(const Model::DeleteForwardEntryRequest& request) const; + AddCommonBandwidthPackageIpOutcome addCommonBandwidthPackageIp(const Model::AddCommonBandwidthPackageIpRequest &request)const; + void addCommonBandwidthPackageIpAsync(const Model::AddCommonBandwidthPackageIpRequest& request, const AddCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddCommonBandwidthPackageIpOutcomeCallable addCommonBandwidthPackageIpCallable(const Model::AddCommonBandwidthPackageIpRequest& request) const; + ModifyIpv6InternetBandwidthOutcome modifyIpv6InternetBandwidth(const Model::ModifyIpv6InternetBandwidthRequest &request)const; + void modifyIpv6InternetBandwidthAsync(const Model::ModifyIpv6InternetBandwidthRequest& request, const ModifyIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIpv6InternetBandwidthOutcomeCallable modifyIpv6InternetBandwidthCallable(const Model::ModifyIpv6InternetBandwidthRequest& request) const; + DescribeEipGatewayInfoOutcome describeEipGatewayInfo(const Model::DescribeEipGatewayInfoRequest &request)const; + void describeEipGatewayInfoAsync(const Model::DescribeEipGatewayInfoRequest& request, const DescribeEipGatewayInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEipGatewayInfoOutcomeCallable describeEipGatewayInfoCallable(const Model::DescribeEipGatewayInfoRequest& request) const; + DescribeVirtualBorderRoutersOutcome describeVirtualBorderRouters(const Model::DescribeVirtualBorderRoutersRequest &request)const; + void describeVirtualBorderRoutersAsync(const Model::DescribeVirtualBorderRoutersRequest& request, const DescribeVirtualBorderRoutersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVirtualBorderRoutersOutcomeCallable describeVirtualBorderRoutersCallable(const Model::DescribeVirtualBorderRoutersRequest& request) const; + CreateBgpGroupOutcome createBgpGroup(const Model::CreateBgpGroupRequest &request)const; + void createBgpGroupAsync(const Model::CreateBgpGroupRequest& request, const CreateBgpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBgpGroupOutcomeCallable createBgpGroupCallable(const Model::CreateBgpGroupRequest& request) const; + ModifyExpressCloudConnectionAttributeOutcome modifyExpressCloudConnectionAttribute(const Model::ModifyExpressCloudConnectionAttributeRequest &request)const; + void modifyExpressCloudConnectionAttributeAsync(const Model::ModifyExpressCloudConnectionAttributeRequest& request, const ModifyExpressCloudConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExpressCloudConnectionAttributeOutcomeCallable modifyExpressCloudConnectionAttributeCallable(const Model::ModifyExpressCloudConnectionAttributeRequest& request) const; + AssociateGlobalAccelerationInstanceOutcome associateGlobalAccelerationInstance(const Model::AssociateGlobalAccelerationInstanceRequest &request)const; + void associateGlobalAccelerationInstanceAsync(const Model::AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateGlobalAccelerationInstanceOutcomeCallable associateGlobalAccelerationInstanceCallable(const Model::AssociateGlobalAccelerationInstanceRequest& request) const; + DescribeSslVpnServersOutcome describeSslVpnServers(const Model::DescribeSslVpnServersRequest &request)const; + void describeSslVpnServersAsync(const Model::DescribeSslVpnServersRequest& request, const DescribeSslVpnServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSslVpnServersOutcomeCallable describeSslVpnServersCallable(const Model::DescribeSslVpnServersRequest& request) const; + DeleteExpressConnectOutcome deleteExpressConnect(const Model::DeleteExpressConnectRequest &request)const; + void deleteExpressConnectAsync(const Model::DeleteExpressConnectRequest& request, const DeleteExpressConnectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteExpressConnectOutcomeCallable deleteExpressConnectCallable(const Model::DeleteExpressConnectRequest& request) const; + DescribeSnatTableEntriesOutcome describeSnatTableEntries(const Model::DescribeSnatTableEntriesRequest &request)const; + void describeSnatTableEntriesAsync(const Model::DescribeSnatTableEntriesRequest& request, const DescribeSnatTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnatTableEntriesOutcomeCallable describeSnatTableEntriesCallable(const Model::DescribeSnatTableEntriesRequest& request) const; + UnassociateGlobalAccelerationInstanceOutcome unassociateGlobalAccelerationInstance(const Model::UnassociateGlobalAccelerationInstanceRequest &request)const; + void unassociateGlobalAccelerationInstanceAsync(const Model::UnassociateGlobalAccelerationInstanceRequest& request, const UnassociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateGlobalAccelerationInstanceOutcomeCallable unassociateGlobalAccelerationInstanceCallable(const Model::UnassociateGlobalAccelerationInstanceRequest& request) const; + DeleteCustomerGatewayOutcome deleteCustomerGateway(const Model::DeleteCustomerGatewayRequest &request)const; + void deleteCustomerGatewayAsync(const Model::DeleteCustomerGatewayRequest& request, const DeleteCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomerGatewayOutcomeCallable deleteCustomerGatewayCallable(const Model::DeleteCustomerGatewayRequest& request) const; + DeleteIPv6TranslatorOutcome deleteIPv6Translator(const Model::DeleteIPv6TranslatorRequest &request)const; + void deleteIPv6TranslatorAsync(const Model::DeleteIPv6TranslatorRequest& request, const DeleteIPv6TranslatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIPv6TranslatorOutcomeCallable deleteIPv6TranslatorCallable(const Model::DeleteIPv6TranslatorRequest& request) const; + DescribeRouteTableListOutcome describeRouteTableList(const Model::DescribeRouteTableListRequest &request)const; + void describeRouteTableListAsync(const Model::DescribeRouteTableListRequest& request, const DescribeRouteTableListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouteTableListOutcomeCallable describeRouteTableListCallable(const Model::DescribeRouteTableListRequest& request) const; + AssociatePhysicalConnectionToVirtualBorderRouterOutcome associatePhysicalConnectionToVirtualBorderRouter(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest &request)const; + void associatePhysicalConnectionToVirtualBorderRouterAsync(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest& request, const AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable associatePhysicalConnectionToVirtualBorderRouterCallable(const Model::AssociatePhysicalConnectionToVirtualBorderRouterRequest& request) const; + DescribeCustomerGatewaysOutcome describeCustomerGateways(const Model::DescribeCustomerGatewaysRequest &request)const; + void describeCustomerGatewaysAsync(const Model::DescribeCustomerGatewaysRequest& request, const DescribeCustomerGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomerGatewaysOutcomeCallable describeCustomerGatewaysCallable(const Model::DescribeCustomerGatewaysRequest& request) const; + DeleteGlobalAccelerationInstanceOutcome deleteGlobalAccelerationInstance(const Model::DeleteGlobalAccelerationInstanceRequest &request)const; + void deleteGlobalAccelerationInstanceAsync(const Model::DeleteGlobalAccelerationInstanceRequest& request, const DeleteGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGlobalAccelerationInstanceOutcomeCallable deleteGlobalAccelerationInstanceCallable(const Model::DeleteGlobalAccelerationInstanceRequest& request) const; + DeleteVpcOutcome deleteVpc(const Model::DeleteVpcRequest &request)const; + void deleteVpcAsync(const Model::DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpcOutcomeCallable deleteVpcCallable(const Model::DeleteVpcRequest& request) const; + DeleteVpnRouteEntryOutcome deleteVpnRouteEntry(const Model::DeleteVpnRouteEntryRequest &request)const; + void deleteVpnRouteEntryAsync(const Model::DeleteVpnRouteEntryRequest& request, const DeleteVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpnRouteEntryOutcomeCallable deleteVpnRouteEntryCallable(const Model::DeleteVpnRouteEntryRequest& request) const; + DownloadVpnConnectionConfigOutcome downloadVpnConnectionConfig(const Model::DownloadVpnConnectionConfigRequest &request)const; + void downloadVpnConnectionConfigAsync(const Model::DownloadVpnConnectionConfigRequest& request, const DownloadVpnConnectionConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadVpnConnectionConfigOutcomeCallable downloadVpnConnectionConfigCallable(const Model::DownloadVpnConnectionConfigRequest& request) const; + DescribeIPv6TranslatorsOutcome describeIPv6Translators(const Model::DescribeIPv6TranslatorsRequest &request)const; + void describeIPv6TranslatorsAsync(const Model::DescribeIPv6TranslatorsRequest& request, const DescribeIPv6TranslatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIPv6TranslatorsOutcomeCallable describeIPv6TranslatorsCallable(const Model::DescribeIPv6TranslatorsRequest& request) const; + DeleteVSwitchOutcome deleteVSwitch(const Model::DeleteVSwitchRequest &request)const; + void deleteVSwitchAsync(const Model::DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVSwitchOutcomeCallable deleteVSwitchCallable(const Model::DeleteVSwitchRequest& request) const; + CreateRouteTableOutcome createRouteTable(const Model::CreateRouteTableRequest &request)const; + void createRouteTableAsync(const Model::CreateRouteTableRequest& request, const CreateRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouteTableOutcomeCallable createRouteTableCallable(const Model::CreateRouteTableRequest& request) const; + CreateBandwidthPackageOutcome createBandwidthPackage(const Model::CreateBandwidthPackageRequest &request)const; + void createBandwidthPackageAsync(const Model::CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBandwidthPackageOutcomeCallable createBandwidthPackageCallable(const Model::CreateBandwidthPackageRequest& request) const; + RecoverVirtualBorderRouterOutcome recoverVirtualBorderRouter(const Model::RecoverVirtualBorderRouterRequest &request)const; + void recoverVirtualBorderRouterAsync(const Model::RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RecoverVirtualBorderRouterOutcomeCallable recoverVirtualBorderRouterCallable(const Model::RecoverVirtualBorderRouterRequest& request) const; + DeleteSslVpnServerOutcome deleteSslVpnServer(const Model::DeleteSslVpnServerRequest &request)const; + void deleteSslVpnServerAsync(const Model::DeleteSslVpnServerRequest& request, const DeleteSslVpnServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSslVpnServerOutcomeCallable deleteSslVpnServerCallable(const Model::DeleteSslVpnServerRequest& request) const; + CreateCustomerGatewayOutcome createCustomerGateway(const Model::CreateCustomerGatewayRequest &request)const; + void createCustomerGatewayAsync(const Model::CreateCustomerGatewayRequest& request, const CreateCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomerGatewayOutcomeCallable createCustomerGatewayCallable(const Model::CreateCustomerGatewayRequest& request) const; + DeleteBandwidthPackageOutcome deleteBandwidthPackage(const Model::DeleteBandwidthPackageRequest &request)const; + void deleteBandwidthPackageAsync(const Model::DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBandwidthPackageOutcomeCallable deleteBandwidthPackageCallable(const Model::DeleteBandwidthPackageRequest& request) const; + DescribeIpv6GatewaysOutcome describeIpv6Gateways(const Model::DescribeIpv6GatewaysRequest &request)const; + void describeIpv6GatewaysAsync(const Model::DescribeIpv6GatewaysRequest& request, const DescribeIpv6GatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpv6GatewaysOutcomeCallable describeIpv6GatewaysCallable(const Model::DescribeIpv6GatewaysRequest& request) const; + DeleteBgpPeerOutcome deleteBgpPeer(const Model::DeleteBgpPeerRequest &request)const; + void deleteBgpPeerAsync(const Model::DeleteBgpPeerRequest& request, const DeleteBgpPeerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBgpPeerOutcomeCallable deleteBgpPeerCallable(const Model::DeleteBgpPeerRequest& request) const; + DeleteNqaOutcome deleteNqa(const Model::DeleteNqaRequest &request)const; + void deleteNqaAsync(const Model::DeleteNqaRequest& request, const DeleteNqaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNqaOutcomeCallable deleteNqaCallable(const Model::DeleteNqaRequest& request) const; + RemoveIPv6TranslatorAclListEntryOutcome removeIPv6TranslatorAclListEntry(const Model::RemoveIPv6TranslatorAclListEntryRequest &request)const; + void removeIPv6TranslatorAclListEntryAsync(const Model::RemoveIPv6TranslatorAclListEntryRequest& request, const RemoveIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveIPv6TranslatorAclListEntryOutcomeCallable removeIPv6TranslatorAclListEntryCallable(const Model::RemoveIPv6TranslatorAclListEntryRequest& request) const; + ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const; + void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const; DeleteFlowLogOutcome deleteFlowLog(const Model::DeleteFlowLogRequest &request)const; void deleteFlowLogAsync(const Model::DeleteFlowLogRequest& request, const DeleteFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFlowLogOutcomeCallable deleteFlowLogCallable(const Model::DeleteFlowLogRequest& request) const; @@ -1082,132 +1504,75 @@ namespace AlibabaCloud CreateIPv6TranslatorOutcome createIPv6Translator(const Model::CreateIPv6TranslatorRequest &request)const; void createIPv6TranslatorAsync(const Model::CreateIPv6TranslatorRequest& request, const CreateIPv6TranslatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateIPv6TranslatorOutcomeCallable createIPv6TranslatorCallable(const Model::CreateIPv6TranslatorRequest& request) const; - CreateIPv6TranslatorEntryOutcome createIPv6TranslatorEntry(const Model::CreateIPv6TranslatorEntryRequest &request)const; - void createIPv6TranslatorEntryAsync(const Model::CreateIPv6TranslatorEntryRequest& request, const CreateIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateIPv6TranslatorEntryOutcomeCallable createIPv6TranslatorEntryCallable(const Model::CreateIPv6TranslatorEntryRequest& request) const; - DescribeForwardTableEntriesOutcome describeForwardTableEntries(const Model::DescribeForwardTableEntriesRequest &request)const; - void describeForwardTableEntriesAsync(const Model::DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeForwardTableEntriesOutcomeCallable describeForwardTableEntriesCallable(const Model::DescribeForwardTableEntriesRequest& request) const; ModifyIpv6GatewayAttributeOutcome modifyIpv6GatewayAttribute(const Model::ModifyIpv6GatewayAttributeRequest &request)const; void modifyIpv6GatewayAttributeAsync(const Model::ModifyIpv6GatewayAttributeRequest& request, const ModifyIpv6GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyIpv6GatewayAttributeOutcomeCallable modifyIpv6GatewayAttributeCallable(const Model::ModifyIpv6GatewayAttributeRequest& request) const; UnassociateEipAddressOutcome unassociateEipAddress(const Model::UnassociateEipAddressRequest &request)const; void unassociateEipAddressAsync(const Model::UnassociateEipAddressRequest& request, const UnassociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateEipAddressOutcomeCallable unassociateEipAddressCallable(const Model::UnassociateEipAddressRequest& request) const; - DescribeSslVpnClientCertsOutcome describeSslVpnClientCerts(const Model::DescribeSslVpnClientCertsRequest &request)const; - void describeSslVpnClientCertsAsync(const Model::DescribeSslVpnClientCertsRequest& request, const DescribeSslVpnClientCertsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSslVpnClientCertsOutcomeCallable describeSslVpnClientCertsCallable(const Model::DescribeSslVpnClientCertsRequest& request) const; DescribeVpnConnectionOutcome describeVpnConnection(const Model::DescribeVpnConnectionRequest &request)const; void describeVpnConnectionAsync(const Model::DescribeVpnConnectionRequest& request, const DescribeVpnConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnConnectionOutcomeCallable describeVpnConnectionCallable(const Model::DescribeVpnConnectionRequest& request) const; - ModifyGlobalAccelerationInstanceSpecOutcome modifyGlobalAccelerationInstanceSpec(const Model::ModifyGlobalAccelerationInstanceSpecRequest &request)const; - void modifyGlobalAccelerationInstanceSpecAsync(const Model::ModifyGlobalAccelerationInstanceSpecRequest& request, const ModifyGlobalAccelerationInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyGlobalAccelerationInstanceSpecOutcomeCallable modifyGlobalAccelerationInstanceSpecCallable(const Model::ModifyGlobalAccelerationInstanceSpecRequest& request) const; + DeleteNetworkAclOutcome deleteNetworkAcl(const Model::DeleteNetworkAclRequest &request)const; + void deleteNetworkAclAsync(const Model::DeleteNetworkAclRequest& request, const DeleteNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkAclOutcomeCallable deleteNetworkAclCallable(const Model::DeleteNetworkAclRequest& request) const; AddGlobalAccelerationInstanceIpOutcome addGlobalAccelerationInstanceIp(const Model::AddGlobalAccelerationInstanceIpRequest &request)const; void addGlobalAccelerationInstanceIpAsync(const Model::AddGlobalAccelerationInstanceIpRequest& request, const AddGlobalAccelerationInstanceIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddGlobalAccelerationInstanceIpOutcomeCallable addGlobalAccelerationInstanceIpCallable(const Model::AddGlobalAccelerationInstanceIpRequest& request) const; - DeleteRouterInterfaceOutcome deleteRouterInterface(const Model::DeleteRouterInterfaceRequest &request)const; - void deleteRouterInterfaceAsync(const Model::DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteRouterInterfaceOutcomeCallable deleteRouterInterfaceCallable(const Model::DeleteRouterInterfaceRequest& request) const; CreateSslVpnServerOutcome createSslVpnServer(const Model::CreateSslVpnServerRequest &request)const; void createSslVpnServerAsync(const Model::CreateSslVpnServerRequest& request, const CreateSslVpnServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSslVpnServerOutcomeCallable createSslVpnServerCallable(const Model::CreateSslVpnServerRequest& request) const; - DescribeNqasOutcome describeNqas(const Model::DescribeNqasRequest &request)const; - void describeNqasAsync(const Model::DescribeNqasRequest& request, const DescribeNqasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNqasOutcomeCallable describeNqasCallable(const Model::DescribeNqasRequest& request) const; - ModifyFlowLogAttributeOutcome modifyFlowLogAttribute(const Model::ModifyFlowLogAttributeRequest &request)const; - void modifyFlowLogAttributeAsync(const Model::ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyFlowLogAttributeOutcomeCallable modifyFlowLogAttributeCallable(const Model::ModifyFlowLogAttributeRequest& request) const; ModifyVirtualBorderRouterAttributeOutcome modifyVirtualBorderRouterAttribute(const Model::ModifyVirtualBorderRouterAttributeRequest &request)const; void modifyVirtualBorderRouterAttributeAsync(const Model::ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVirtualBorderRouterAttributeOutcomeCallable modifyVirtualBorderRouterAttributeCallable(const Model::ModifyVirtualBorderRouterAttributeRequest& request) const; - ModifyNatGatewayAttributeOutcome modifyNatGatewayAttribute(const Model::ModifyNatGatewayAttributeRequest &request)const; - void modifyNatGatewayAttributeAsync(const Model::ModifyNatGatewayAttributeRequest& request, const ModifyNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyNatGatewayAttributeOutcomeCallable modifyNatGatewayAttributeCallable(const Model::ModifyNatGatewayAttributeRequest& request) const; - DescribeEipMonitorDataOutcome describeEipMonitorData(const Model::DescribeEipMonitorDataRequest &request)const; - void describeEipMonitorDataAsync(const Model::DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeEipMonitorDataOutcomeCallable describeEipMonitorDataCallable(const Model::DescribeEipMonitorDataRequest& request) const; DeleteVpnGatewayOutcome deleteVpnGateway(const Model::DeleteVpnGatewayRequest &request)const; void deleteVpnGatewayAsync(const Model::DeleteVpnGatewayRequest& request, const DeleteVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVpnGatewayOutcomeCallable deleteVpnGatewayCallable(const Model::DeleteVpnGatewayRequest& request) const; DescribeCustomerGatewayOutcome describeCustomerGateway(const Model::DescribeCustomerGatewayRequest &request)const; void describeCustomerGatewayAsync(const Model::DescribeCustomerGatewayRequest& request, const DescribeCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCustomerGatewayOutcomeCallable describeCustomerGatewayCallable(const Model::DescribeCustomerGatewayRequest& request) const; - ModifyVpnGatewayAttributeOutcome modifyVpnGatewayAttribute(const Model::ModifyVpnGatewayAttributeRequest &request)const; - void modifyVpnGatewayAttributeAsync(const Model::ModifyVpnGatewayAttributeRequest& request, const ModifyVpnGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyVpnGatewayAttributeOutcomeCallable modifyVpnGatewayAttributeCallable(const Model::ModifyVpnGatewayAttributeRequest& request) const; AllocateIpv6InternetBandwidthOutcome allocateIpv6InternetBandwidth(const Model::AllocateIpv6InternetBandwidthRequest &request)const; void allocateIpv6InternetBandwidthAsync(const Model::AllocateIpv6InternetBandwidthRequest& request, const AllocateIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateIpv6InternetBandwidthOutcomeCallable allocateIpv6InternetBandwidthCallable(const Model::AllocateIpv6InternetBandwidthRequest& request) const; - AddBgpNetworkOutcome addBgpNetwork(const Model::AddBgpNetworkRequest &request)const; - void addBgpNetworkAsync(const Model::AddBgpNetworkRequest& request, const AddBgpNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddBgpNetworkOutcomeCallable addBgpNetworkCallable(const Model::AddBgpNetworkRequest& request) const; ModifySslVpnServerOutcome modifySslVpnServer(const Model::ModifySslVpnServerRequest &request)const; void modifySslVpnServerAsync(const Model::ModifySslVpnServerRequest& request, const ModifySslVpnServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySslVpnServerOutcomeCallable modifySslVpnServerCallable(const Model::ModifySslVpnServerRequest& request) const; - DescribeIPv6TranslatorEntriesOutcome describeIPv6TranslatorEntries(const Model::DescribeIPv6TranslatorEntriesRequest &request)const; - void describeIPv6TranslatorEntriesAsync(const Model::DescribeIPv6TranslatorEntriesRequest& request, const DescribeIPv6TranslatorEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeIPv6TranslatorEntriesOutcomeCallable describeIPv6TranslatorEntriesCallable(const Model::DescribeIPv6TranslatorEntriesRequest& request) const; DescribeVpnConnectionsOutcome describeVpnConnections(const Model::DescribeVpnConnectionsRequest &request)const; void describeVpnConnectionsAsync(const Model::DescribeVpnConnectionsRequest& request, const DescribeVpnConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnConnectionsOutcomeCallable describeVpnConnectionsCallable(const Model::DescribeVpnConnectionsRequest& request) const; ModifyBandwidthPackageAttributeOutcome modifyBandwidthPackageAttribute(const Model::ModifyBandwidthPackageAttributeRequest &request)const; void modifyBandwidthPackageAttributeAsync(const Model::ModifyBandwidthPackageAttributeRequest& request, const ModifyBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBandwidthPackageAttributeOutcomeCallable modifyBandwidthPackageAttributeCallable(const Model::ModifyBandwidthPackageAttributeRequest& request) const; - ConnectRouterInterfaceOutcome connectRouterInterface(const Model::ConnectRouterInterfaceRequest &request)const; - void connectRouterInterfaceAsync(const Model::ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConnectRouterInterfaceOutcomeCallable connectRouterInterfaceCallable(const Model::ConnectRouterInterfaceRequest& request) const; DescribeBgpPeersOutcome describeBgpPeers(const Model::DescribeBgpPeersRequest &request)const; void describeBgpPeersAsync(const Model::DescribeBgpPeersRequest& request, const DescribeBgpPeersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBgpPeersOutcomeCallable describeBgpPeersCallable(const Model::DescribeBgpPeersRequest& request) const; - DescribeIpv6GatewayAttributeOutcome describeIpv6GatewayAttribute(const Model::DescribeIpv6GatewayAttributeRequest &request)const; - void describeIpv6GatewayAttributeAsync(const Model::DescribeIpv6GatewayAttributeRequest& request, const DescribeIpv6GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeIpv6GatewayAttributeOutcomeCallable describeIpv6GatewayAttributeCallable(const Model::DescribeIpv6GatewayAttributeRequest& request) const; - DeleteSnatEntryOutcome deleteSnatEntry(const Model::DeleteSnatEntryRequest &request)const; - void deleteSnatEntryAsync(const Model::DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSnatEntryOutcomeCallable deleteSnatEntryCallable(const Model::DeleteSnatEntryRequest& request) const; - CreateNqaOutcome createNqa(const Model::CreateNqaRequest &request)const; - void createNqaAsync(const Model::CreateNqaRequest& request, const CreateNqaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateNqaOutcomeCallable createNqaCallable(const Model::CreateNqaRequest& request) const; + ModifyVpnPbrRouteEntryWeightOutcome modifyVpnPbrRouteEntryWeight(const Model::ModifyVpnPbrRouteEntryWeightRequest &request)const; + void modifyVpnPbrRouteEntryWeightAsync(const Model::ModifyVpnPbrRouteEntryWeightRequest& request, const ModifyVpnPbrRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpnPbrRouteEntryWeightOutcomeCallable modifyVpnPbrRouteEntryWeightCallable(const Model::ModifyVpnPbrRouteEntryWeightRequest& request) const; ConvertBandwidthPackageOutcome convertBandwidthPackage(const Model::ConvertBandwidthPackageRequest &request)const; void convertBandwidthPackageAsync(const Model::ConvertBandwidthPackageRequest& request, const ConvertBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConvertBandwidthPackageOutcomeCallable convertBandwidthPackageCallable(const Model::ConvertBandwidthPackageRequest& request) const; DescribeHaVipsOutcome describeHaVips(const Model::DescribeHaVipsRequest &request)const; void describeHaVipsAsync(const Model::DescribeHaVipsRequest& request, const DescribeHaVipsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeHaVipsOutcomeCallable describeHaVipsCallable(const Model::DescribeHaVipsRequest& request) const; - ModifyIpv6GatewaySpecOutcome modifyIpv6GatewaySpec(const Model::ModifyIpv6GatewaySpecRequest &request)const; - void modifyIpv6GatewaySpecAsync(const Model::ModifyIpv6GatewaySpecRequest& request, const ModifyIpv6GatewaySpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyIpv6GatewaySpecOutcomeCallable modifyIpv6GatewaySpecCallable(const Model::ModifyIpv6GatewaySpecRequest& request) const; + CreateNqaOutcome createNqa(const Model::CreateNqaRequest &request)const; + void createNqaAsync(const Model::CreateNqaRequest& request, const CreateNqaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNqaOutcomeCallable createNqaCallable(const Model::CreateNqaRequest& request) const; GrantInstanceToCenOutcome grantInstanceToCen(const Model::GrantInstanceToCenRequest &request)const; void grantInstanceToCenAsync(const Model::GrantInstanceToCenRequest& request, const GrantInstanceToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantInstanceToCenOutcomeCallable grantInstanceToCenCallable(const Model::GrantInstanceToCenRequest& request) const; + ModifyBgpPeerAttributeOutcome modifyBgpPeerAttribute(const Model::ModifyBgpPeerAttributeRequest &request)const; + void modifyBgpPeerAttributeAsync(const Model::ModifyBgpPeerAttributeRequest& request, const ModifyBgpPeerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBgpPeerAttributeOutcomeCallable modifyBgpPeerAttributeCallable(const Model::ModifyBgpPeerAttributeRequest& request) const; AddBandwidthPackageIpsOutcome addBandwidthPackageIps(const Model::AddBandwidthPackageIpsRequest &request)const; void addBandwidthPackageIpsAsync(const Model::AddBandwidthPackageIpsRequest& request, const AddBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddBandwidthPackageIpsOutcomeCallable addBandwidthPackageIpsCallable(const Model::AddBandwidthPackageIpsRequest& request) const; - CreateSnatEntryOutcome createSnatEntry(const Model::CreateSnatEntryRequest &request)const; - void createSnatEntryAsync(const Model::CreateSnatEntryRequest& request, const CreateSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateSnatEntryOutcomeCallable createSnatEntryCallable(const Model::CreateSnatEntryRequest& request) const; - DeleteCommonBandwidthPackageOutcome deleteCommonBandwidthPackage(const Model::DeleteCommonBandwidthPackageRequest &request)const; - void deleteCommonBandwidthPackageAsync(const Model::DeleteCommonBandwidthPackageRequest& request, const DeleteCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCommonBandwidthPackageOutcomeCallable deleteCommonBandwidthPackageCallable(const Model::DeleteCommonBandwidthPackageRequest& request) const; - ModifyPhysicalConnectionAttributeOutcome modifyPhysicalConnectionAttribute(const Model::ModifyPhysicalConnectionAttributeRequest &request)const; - void modifyPhysicalConnectionAttributeAsync(const Model::ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyPhysicalConnectionAttributeOutcomeCallable modifyPhysicalConnectionAttributeCallable(const Model::ModifyPhysicalConnectionAttributeRequest& request) const; DescribeNatGatewaysOutcome describeNatGateways(const Model::DescribeNatGatewaysRequest &request)const; void describeNatGatewaysAsync(const Model::DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNatGatewaysOutcomeCallable describeNatGatewaysCallable(const Model::DescribeNatGatewaysRequest& request) const; - ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const; - void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const; - ModifyIPv6TranslatorAclListEntryOutcome modifyIPv6TranslatorAclListEntry(const Model::ModifyIPv6TranslatorAclListEntryRequest &request)const; - void modifyIPv6TranslatorAclListEntryAsync(const Model::ModifyIPv6TranslatorAclListEntryRequest& request, const ModifyIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyIPv6TranslatorAclListEntryOutcomeCallable modifyIPv6TranslatorAclListEntryCallable(const Model::ModifyIPv6TranslatorAclListEntryRequest& request) const; - EnableVpcClassicLinkOutcome enableVpcClassicLink(const Model::EnableVpcClassicLinkRequest &request)const; - void enableVpcClassicLinkAsync(const Model::EnableVpcClassicLinkRequest& request, const EnableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableVpcClassicLinkOutcomeCallable enableVpcClassicLinkCallable(const Model::EnableVpcClassicLinkRequest& request) const; - DeleteHaVipOutcome deleteHaVip(const Model::DeleteHaVipRequest &request)const; - void deleteHaVipAsync(const Model::DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteHaVipOutcomeCallable deleteHaVipCallable(const Model::DeleteHaVipRequest& request) const; + ModifyNetworkAclAttributesOutcome modifyNetworkAclAttributes(const Model::ModifyNetworkAclAttributesRequest &request)const; + void modifyNetworkAclAttributesAsync(const Model::ModifyNetworkAclAttributesRequest& request, const ModifyNetworkAclAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNetworkAclAttributesOutcomeCallable modifyNetworkAclAttributesCallable(const Model::ModifyNetworkAclAttributesRequest& request) const; DescribeVpcAttributeOutcome describeVpcAttribute(const Model::DescribeVpcAttributeRequest &request)const; void describeVpcAttributeAsync(const Model::DescribeVpcAttributeRequest& request, const DescribeVpcAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpcAttributeOutcomeCallable describeVpcAttributeCallable(const Model::DescribeVpcAttributeRequest& request) const; @@ -1229,39 +1594,24 @@ namespace AlibabaCloud CreateIpv6GatewayOutcome createIpv6Gateway(const Model::CreateIpv6GatewayRequest &request)const; void createIpv6GatewayAsync(const Model::CreateIpv6GatewayRequest& request, const CreateIpv6GatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateIpv6GatewayOutcomeCallable createIpv6GatewayCallable(const Model::CreateIpv6GatewayRequest& request) const; - CreateRouteEntryOutcome createRouteEntry(const Model::CreateRouteEntryRequest &request)const; - void createRouteEntryAsync(const Model::CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateRouteEntryOutcomeCallable createRouteEntryCallable(const Model::CreateRouteEntryRequest& request) const; - DescribeBandwidthPackagesOutcome describeBandwidthPackages(const Model::DescribeBandwidthPackagesRequest &request)const; - void describeBandwidthPackagesAsync(const Model::DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeBandwidthPackagesOutcomeCallable describeBandwidthPackagesCallable(const Model::DescribeBandwidthPackagesRequest& request) const; DeleteBgpNetworkOutcome deleteBgpNetwork(const Model::DeleteBgpNetworkRequest &request)const; void deleteBgpNetworkAsync(const Model::DeleteBgpNetworkRequest& request, const DeleteBgpNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBgpNetworkOutcomeCallable deleteBgpNetworkCallable(const Model::DeleteBgpNetworkRequest& request) const; - DisableVpcClassicLinkOutcome disableVpcClassicLink(const Model::DisableVpcClassicLinkRequest &request)const; - void disableVpcClassicLinkAsync(const Model::DisableVpcClassicLinkRequest& request, const DisableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableVpcClassicLinkOutcomeCallable disableVpcClassicLinkCallable(const Model::DisableVpcClassicLinkRequest& request) const; - CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const; - void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateRouterInterfaceOutcomeCallable createRouterInterfaceCallable(const Model::CreateRouterInterfaceRequest& request) const; + DescribeBandwidthPackagesOutcome describeBandwidthPackages(const Model::DescribeBandwidthPackagesRequest &request)const; + void describeBandwidthPackagesAsync(const Model::DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBandwidthPackagesOutcomeCallable describeBandwidthPackagesCallable(const Model::DescribeBandwidthPackagesRequest& request) const; ModifyVpnConnectionAttributeOutcome modifyVpnConnectionAttribute(const Model::ModifyVpnConnectionAttributeRequest &request)const; void modifyVpnConnectionAttributeAsync(const Model::ModifyVpnConnectionAttributeRequest& request, const ModifyVpnConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVpnConnectionAttributeOutcomeCallable modifyVpnConnectionAttributeCallable(const Model::ModifyVpnConnectionAttributeRequest& request) const; - DescribeFlowLogsOutcome describeFlowLogs(const Model::DescribeFlowLogsRequest &request)const; - void describeFlowLogsAsync(const Model::DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFlowLogsOutcomeCallable describeFlowLogsCallable(const Model::DescribeFlowLogsRequest& request) const; - DescribeIPv6TranslatorAclListAttributesOutcome describeIPv6TranslatorAclListAttributes(const Model::DescribeIPv6TranslatorAclListAttributesRequest &request)const; - void describeIPv6TranslatorAclListAttributesAsync(const Model::DescribeIPv6TranslatorAclListAttributesRequest& request, const DescribeIPv6TranslatorAclListAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeIPv6TranslatorAclListAttributesOutcomeCallable describeIPv6TranslatorAclListAttributesCallable(const Model::DescribeIPv6TranslatorAclListAttributesRequest& request) const; RemoveGlobalAccelerationInstanceIpOutcome removeGlobalAccelerationInstanceIp(const Model::RemoveGlobalAccelerationInstanceIpRequest &request)const; void removeGlobalAccelerationInstanceIpAsync(const Model::RemoveGlobalAccelerationInstanceIpRequest& request, const RemoveGlobalAccelerationInstanceIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveGlobalAccelerationInstanceIpOutcomeCallable removeGlobalAccelerationInstanceIpCallable(const Model::RemoveGlobalAccelerationInstanceIpRequest& request) const; - ModifyNatGatewaySpecOutcome modifyNatGatewaySpec(const Model::ModifyNatGatewaySpecRequest &request)const; - void modifyNatGatewaySpecAsync(const Model::ModifyNatGatewaySpecRequest& request, const ModifyNatGatewaySpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyNatGatewaySpecOutcomeCallable modifyNatGatewaySpecCallable(const Model::ModifyNatGatewaySpecRequest& request) const; DescribeBgpGroupsOutcome describeBgpGroups(const Model::DescribeBgpGroupsRequest &request)const; void describeBgpGroupsAsync(const Model::DescribeBgpGroupsRequest& request, const DescribeBgpGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBgpGroupsOutcomeCallable describeBgpGroupsCallable(const Model::DescribeBgpGroupsRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; DescribeGrantRulesToCenOutcome describeGrantRulesToCen(const Model::DescribeGrantRulesToCenRequest &request)const; void describeGrantRulesToCenAsync(const Model::DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGrantRulesToCenOutcomeCallable describeGrantRulesToCenCallable(const Model::DescribeGrantRulesToCenRequest& request) const; @@ -1274,153 +1624,117 @@ namespace AlibabaCloud RemoveBandwidthPackageIpsOutcome removeBandwidthPackageIps(const Model::RemoveBandwidthPackageIpsRequest &request)const; void removeBandwidthPackageIpsAsync(const Model::RemoveBandwidthPackageIpsRequest& request, const RemoveBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveBandwidthPackageIpsOutcomeCallable removeBandwidthPackageIpsCallable(const Model::RemoveBandwidthPackageIpsRequest& request) const; - DeleteSslVpnClientCertOutcome deleteSslVpnClientCert(const Model::DeleteSslVpnClientCertRequest &request)const; - void deleteSslVpnClientCertAsync(const Model::DeleteSslVpnClientCertRequest& request, const DeleteSslVpnClientCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSslVpnClientCertOutcomeCallable deleteSslVpnClientCertCallable(const Model::DeleteSslVpnClientCertRequest& request) const; - CreateVSwitchOutcome createVSwitch(const Model::CreateVSwitchRequest &request)const; - void createVSwitchAsync(const Model::CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateVSwitchOutcomeCallable createVSwitchCallable(const Model::CreateVSwitchRequest& request) const; ModifyCustomerGatewayAttributeOutcome modifyCustomerGatewayAttribute(const Model::ModifyCustomerGatewayAttributeRequest &request)const; void modifyCustomerGatewayAttributeAsync(const Model::ModifyCustomerGatewayAttributeRequest& request, const ModifyCustomerGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCustomerGatewayAttributeOutcomeCallable modifyCustomerGatewayAttributeCallable(const Model::ModifyCustomerGatewayAttributeRequest& request) const; EnablePhysicalConnectionOutcome enablePhysicalConnection(const Model::EnablePhysicalConnectionRequest &request)const; void enablePhysicalConnectionAsync(const Model::EnablePhysicalConnectionRequest& request, const EnablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnablePhysicalConnectionOutcomeCallable enablePhysicalConnectionCallable(const Model::EnablePhysicalConnectionRequest& request) const; - ModifyEipAddressAttributeOutcome modifyEipAddressAttribute(const Model::ModifyEipAddressAttributeRequest &request)const; - void modifyEipAddressAttributeAsync(const Model::ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyEipAddressAttributeOutcomeCallable modifyEipAddressAttributeCallable(const Model::ModifyEipAddressAttributeRequest& request) const; + CreateVpnRouteEntryOutcome createVpnRouteEntry(const Model::CreateVpnRouteEntryRequest &request)const; + void createVpnRouteEntryAsync(const Model::CreateVpnRouteEntryRequest& request, const CreateVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVpnRouteEntryOutcomeCallable createVpnRouteEntryCallable(const Model::CreateVpnRouteEntryRequest& request) const; ModifyCommonBandwidthPackagePayTypeOutcome modifyCommonBandwidthPackagePayType(const Model::ModifyCommonBandwidthPackagePayTypeRequest &request)const; void modifyCommonBandwidthPackagePayTypeAsync(const Model::ModifyCommonBandwidthPackagePayTypeRequest& request, const ModifyCommonBandwidthPackagePayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCommonBandwidthPackagePayTypeOutcomeCallable modifyCommonBandwidthPackagePayTypeCallable(const Model::ModifyCommonBandwidthPackagePayTypeRequest& request) const; DescribeVSwitchAttributesOutcome describeVSwitchAttributes(const Model::DescribeVSwitchAttributesRequest &request)const; void describeVSwitchAttributesAsync(const Model::DescribeVSwitchAttributesRequest& request, const DescribeVSwitchAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVSwitchAttributesOutcomeCallable describeVSwitchAttributesCallable(const Model::DescribeVSwitchAttributesRequest& request) const; - ModifyIPv6TranslatorEntryOutcome modifyIPv6TranslatorEntry(const Model::ModifyIPv6TranslatorEntryRequest &request)const; - void modifyIPv6TranslatorEntryAsync(const Model::ModifyIPv6TranslatorEntryRequest& request, const ModifyIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyIPv6TranslatorEntryOutcomeCallable modifyIPv6TranslatorEntryCallable(const Model::ModifyIPv6TranslatorEntryRequest& request) const; CreateCommonBandwidthPackageOutcome createCommonBandwidthPackage(const Model::CreateCommonBandwidthPackageRequest &request)const; void createCommonBandwidthPackageAsync(const Model::CreateCommonBandwidthPackageRequest& request, const CreateCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCommonBandwidthPackageOutcomeCallable createCommonBandwidthPackageCallable(const Model::CreateCommonBandwidthPackageRequest& request) const; - DescribePhysicalConnectionOrderOutcome describePhysicalConnectionOrder(const Model::DescribePhysicalConnectionOrderRequest &request)const; - void describePhysicalConnectionOrderAsync(const Model::DescribePhysicalConnectionOrderRequest& request, const DescribePhysicalConnectionOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePhysicalConnectionOrderOutcomeCallable describePhysicalConnectionOrderCallable(const Model::DescribePhysicalConnectionOrderRequest& request) const; - CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; - void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; DescribeRouterInterfacesOutcome describeRouterInterfaces(const Model::DescribeRouterInterfacesRequest &request)const; void describeRouterInterfacesAsync(const Model::DescribeRouterInterfacesRequest& request, const DescribeRouterInterfacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRouterInterfacesOutcomeCallable describeRouterInterfacesCallable(const Model::DescribeRouterInterfacesRequest& request) const; - DeactiveFlowLogOutcome deactiveFlowLog(const Model::DeactiveFlowLogRequest &request)const; - void deactiveFlowLogAsync(const Model::DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeactiveFlowLogOutcomeCallable deactiveFlowLogCallable(const Model::DeactiveFlowLogRequest& request) const; + CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; + void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; CreateFlowLogOutcome createFlowLog(const Model::CreateFlowLogRequest &request)const; void createFlowLogAsync(const Model::CreateFlowLogRequest& request, const CreateFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFlowLogOutcomeCallable createFlowLogCallable(const Model::CreateFlowLogRequest& request) const; - DeleteNatGatewayOutcome deleteNatGateway(const Model::DeleteNatGatewayRequest &request)const; - void deleteNatGatewayAsync(const Model::DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNatGatewayOutcomeCallable deleteNatGatewayCallable(const Model::DeleteNatGatewayRequest& request) const; - ActiveFlowLogOutcome activeFlowLog(const Model::ActiveFlowLogRequest &request)const; - void activeFlowLogAsync(const Model::ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActiveFlowLogOutcomeCallable activeFlowLogCallable(const Model::ActiveFlowLogRequest& request) const; - DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; - void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; - DeleteIpv6EgressOnlyRuleOutcome deleteIpv6EgressOnlyRule(const Model::DeleteIpv6EgressOnlyRuleRequest &request)const; - void deleteIpv6EgressOnlyRuleAsync(const Model::DeleteIpv6EgressOnlyRuleRequest& request, const DeleteIpv6EgressOnlyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteIpv6EgressOnlyRuleOutcomeCallable deleteIpv6EgressOnlyRuleCallable(const Model::DeleteIpv6EgressOnlyRuleRequest& request) const; - DeactivateRouterInterfaceOutcome deactivateRouterInterface(const Model::DeactivateRouterInterfaceRequest &request)const; - void deactivateRouterInterfaceAsync(const Model::DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeactivateRouterInterfaceOutcomeCallable deactivateRouterInterfaceCallable(const Model::DeactivateRouterInterfaceRequest& request) const; - ModifySnatEntryOutcome modifySnatEntry(const Model::ModifySnatEntryRequest &request)const; - void modifySnatEntryAsync(const Model::ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySnatEntryOutcomeCallable modifySnatEntryCallable(const Model::ModifySnatEntryRequest& request) const; + UnassociateNetworkAclOutcome unassociateNetworkAcl(const Model::UnassociateNetworkAclRequest &request)const; + void unassociateNetworkAclAsync(const Model::UnassociateNetworkAclRequest& request, const UnassociateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateNetworkAclOutcomeCallable unassociateNetworkAclCallable(const Model::UnassociateNetworkAclRequest& request) const; DescribeIPv6TranslatorAclListsOutcome describeIPv6TranslatorAclLists(const Model::DescribeIPv6TranslatorAclListsRequest &request)const; void describeIPv6TranslatorAclListsAsync(const Model::DescribeIPv6TranslatorAclListsRequest& request, const DescribeIPv6TranslatorAclListsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIPv6TranslatorAclListsOutcomeCallable describeIPv6TranslatorAclListsCallable(const Model::DescribeIPv6TranslatorAclListsRequest& request) const; - DescribeAccessPointsOutcome describeAccessPoints(const Model::DescribeAccessPointsRequest &request)const; - void describeAccessPointsAsync(const Model::DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAccessPointsOutcomeCallable describeAccessPointsCallable(const Model::DescribeAccessPointsRequest& request) const; CreateSslVpnClientCertOutcome createSslVpnClientCert(const Model::CreateSslVpnClientCertRequest &request)const; void createSslVpnClientCertAsync(const Model::CreateSslVpnClientCertRequest& request, const CreateSslVpnClientCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSslVpnClientCertOutcomeCallable createSslVpnClientCertCallable(const Model::CreateSslVpnClientCertRequest& request) const; - CreateIPv6TranslatorAclListOutcome createIPv6TranslatorAclList(const Model::CreateIPv6TranslatorAclListRequest &request)const; - void createIPv6TranslatorAclListAsync(const Model::CreateIPv6TranslatorAclListRequest& request, const CreateIPv6TranslatorAclListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateIPv6TranslatorAclListOutcomeCallable createIPv6TranslatorAclListCallable(const Model::CreateIPv6TranslatorAclListRequest& request) const; CreateVirtualBorderRouterOutcome createVirtualBorderRouter(const Model::CreateVirtualBorderRouterRequest &request)const; void createVirtualBorderRouterAsync(const Model::CreateVirtualBorderRouterRequest& request, const CreateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVirtualBorderRouterOutcomeCallable createVirtualBorderRouterCallable(const Model::CreateVirtualBorderRouterRequest& request) const; - DeleteBgpGroupOutcome deleteBgpGroup(const Model::DeleteBgpGroupRequest &request)const; - void deleteBgpGroupAsync(const Model::DeleteBgpGroupRequest& request, const DeleteBgpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteBgpGroupOutcomeCallable deleteBgpGroupCallable(const Model::DeleteBgpGroupRequest& request) const; + DescribeNetworkAclsOutcome describeNetworkAcls(const Model::DescribeNetworkAclsRequest &request)const; + void describeNetworkAclsAsync(const Model::DescribeNetworkAclsRequest& request, const DescribeNetworkAclsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkAclsOutcomeCallable describeNetworkAclsCallable(const Model::DescribeNetworkAclsRequest& request) const; DescribeIpv6AddressesOutcome describeIpv6Addresses(const Model::DescribeIpv6AddressesRequest &request)const; void describeIpv6AddressesAsync(const Model::DescribeIpv6AddressesRequest& request, const DescribeIpv6AddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIpv6AddressesOutcomeCallable describeIpv6AddressesCallable(const Model::DescribeIpv6AddressesRequest& request) const; DeleteIPv6TranslatorEntryOutcome deleteIPv6TranslatorEntry(const Model::DeleteIPv6TranslatorEntryRequest &request)const; void deleteIPv6TranslatorEntryAsync(const Model::DeleteIPv6TranslatorEntryRequest& request, const DeleteIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteIPv6TranslatorEntryOutcomeCallable deleteIPv6TranslatorEntryCallable(const Model::DeleteIPv6TranslatorEntryRequest& request) const; - ReleaseEipAddressOutcome releaseEipAddress(const Model::ReleaseEipAddressRequest &request)const; - void releaseEipAddressAsync(const Model::ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReleaseEipAddressOutcomeCallable releaseEipAddressCallable(const Model::ReleaseEipAddressRequest& request) const; + UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const; + void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const; + CreateNetworkAclOutcome createNetworkAcl(const Model::CreateNetworkAclRequest &request)const; + void createNetworkAclAsync(const Model::CreateNetworkAclRequest& request, const CreateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkAclOutcomeCallable createNetworkAclCallable(const Model::CreateNetworkAclRequest& request) const; + CreatePhysicalConnectionSetupOrderOutcome createPhysicalConnectionSetupOrder(const Model::CreatePhysicalConnectionSetupOrderRequest &request)const; + void createPhysicalConnectionSetupOrderAsync(const Model::CreatePhysicalConnectionSetupOrderRequest& request, const CreatePhysicalConnectionSetupOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhysicalConnectionSetupOrderOutcomeCallable createPhysicalConnectionSetupOrderCallable(const Model::CreatePhysicalConnectionSetupOrderRequest& request) const; CreateBgpPeerOutcome createBgpPeer(const Model::CreateBgpPeerRequest &request)const; void createBgpPeerAsync(const Model::CreateBgpPeerRequest& request, const CreateBgpPeerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBgpPeerOutcomeCallable createBgpPeerCallable(const Model::CreateBgpPeerRequest& request) const; DescribeRouteTablesOutcome describeRouteTables(const Model::DescribeRouteTablesRequest &request)const; void describeRouteTablesAsync(const Model::DescribeRouteTablesRequest& request, const DescribeRouteTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRouteTablesOutcomeCallable describeRouteTablesCallable(const Model::DescribeRouteTablesRequest& request) const; - DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const; - void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const; - ModifyRouterInterfaceSpecOutcome modifyRouterInterfaceSpec(const Model::ModifyRouterInterfaceSpecRequest &request)const; - void modifyRouterInterfaceSpecAsync(const Model::ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyRouterInterfaceSpecOutcomeCallable modifyRouterInterfaceSpecCallable(const Model::ModifyRouterInterfaceSpecRequest& request) const; - DescribeVpcsOutcome describeVpcs(const Model::DescribeVpcsRequest &request)const; - void describeVpcsAsync(const Model::DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeVpcsOutcomeCallable describeVpcsCallable(const Model::DescribeVpcsRequest& request) const; + DescribeRouteEntryListOutcome describeRouteEntryList(const Model::DescribeRouteEntryListRequest &request)const; + void describeRouteEntryListAsync(const Model::DescribeRouteEntryListRequest& request, const DescribeRouteEntryListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouteEntryListOutcomeCallable describeRouteEntryListCallable(const Model::DescribeRouteEntryListRequest& request) const; CreatePhysicalConnectionOutcome createPhysicalConnection(const Model::CreatePhysicalConnectionRequest &request)const; void createPhysicalConnectionAsync(const Model::CreatePhysicalConnectionRequest& request, const CreatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePhysicalConnectionOutcomeCallable createPhysicalConnectionCallable(const Model::CreatePhysicalConnectionRequest& request) const; + ApplyPhysicalConnectionLOAOutcome applyPhysicalConnectionLOA(const Model::ApplyPhysicalConnectionLOARequest &request)const; + void applyPhysicalConnectionLOAAsync(const Model::ApplyPhysicalConnectionLOARequest& request, const ApplyPhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApplyPhysicalConnectionLOAOutcomeCallable applyPhysicalConnectionLOACallable(const Model::ApplyPhysicalConnectionLOARequest& request) const; UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome unassociatePhysicalConnectionFromVirtualBorderRouter(const Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest &request)const; void unassociatePhysicalConnectionFromVirtualBorderRouterAsync(const Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest& request, const UnassociatePhysicalConnectionFromVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociatePhysicalConnectionFromVirtualBorderRouterOutcomeCallable unassociatePhysicalConnectionFromVirtualBorderRouterCallable(const Model::UnassociatePhysicalConnectionFromVirtualBorderRouterRequest& request) const; + DeleteVpnPbrRouteEntryOutcome deleteVpnPbrRouteEntry(const Model::DeleteVpnPbrRouteEntryRequest &request)const; + void deleteVpnPbrRouteEntryAsync(const Model::DeleteVpnPbrRouteEntryRequest& request, const DeleteVpnPbrRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVpnPbrRouteEntryOutcomeCallable deleteVpnPbrRouteEntryCallable(const Model::DeleteVpnPbrRouteEntryRequest& request) const; DescribeServerRelatedGlobalAccelerationInstancesOutcome describeServerRelatedGlobalAccelerationInstances(const Model::DescribeServerRelatedGlobalAccelerationInstancesRequest &request)const; void describeServerRelatedGlobalAccelerationInstancesAsync(const Model::DescribeServerRelatedGlobalAccelerationInstancesRequest& request, const DescribeServerRelatedGlobalAccelerationInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeServerRelatedGlobalAccelerationInstancesOutcomeCallable describeServerRelatedGlobalAccelerationInstancesCallable(const Model::DescribeServerRelatedGlobalAccelerationInstancesRequest& request) const; AssociateHaVipOutcome associateHaVip(const Model::AssociateHaVipRequest &request)const; void associateHaVipAsync(const Model::AssociateHaVipRequest& request, const AssociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateHaVipOutcomeCallable associateHaVipCallable(const Model::AssociateHaVipRequest& request) const; - ModifyRouterInterfaceAttributeOutcome modifyRouterInterfaceAttribute(const Model::ModifyRouterInterfaceAttributeRequest &request)const; - void modifyRouterInterfaceAttributeAsync(const Model::ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyRouterInterfaceAttributeOutcomeCallable modifyRouterInterfaceAttributeCallable(const Model::ModifyRouterInterfaceAttributeRequest& request) const; AssociateRouteTableOutcome associateRouteTable(const Model::AssociateRouteTableRequest &request)const; void associateRouteTableAsync(const Model::AssociateRouteTableRequest& request, const AssociateRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateRouteTableOutcomeCallable associateRouteTableCallable(const Model::AssociateRouteTableRequest& request) const; ModifyIPv6TranslatorAclAttributeOutcome modifyIPv6TranslatorAclAttribute(const Model::ModifyIPv6TranslatorAclAttributeRequest &request)const; void modifyIPv6TranslatorAclAttributeAsync(const Model::ModifyIPv6TranslatorAclAttributeRequest& request, const ModifyIPv6TranslatorAclAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyIPv6TranslatorAclAttributeOutcomeCallable modifyIPv6TranslatorAclAttributeCallable(const Model::ModifyIPv6TranslatorAclAttributeRequest& request) const; - DescribeVirtualBorderRoutersForPhysicalConnectionOutcome describeVirtualBorderRoutersForPhysicalConnection(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request)const; - void describeVirtualBorderRoutersForPhysicalConnectionAsync(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable describeVirtualBorderRoutersForPhysicalConnectionCallable(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request) const; - ModifyGlobalAccelerationInstanceAttributesOutcome modifyGlobalAccelerationInstanceAttributes(const Model::ModifyGlobalAccelerationInstanceAttributesRequest &request)const; - void modifyGlobalAccelerationInstanceAttributesAsync(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request, const ModifyGlobalAccelerationInstanceAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyGlobalAccelerationInstanceAttributesOutcomeCallable modifyGlobalAccelerationInstanceAttributesCallable(const Model::ModifyGlobalAccelerationInstanceAttributesRequest& request) const; - DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; - void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; DeleteVirtualBorderRouterOutcome deleteVirtualBorderRouter(const Model::DeleteVirtualBorderRouterRequest &request)const; void deleteVirtualBorderRouterAsync(const Model::DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVirtualBorderRouterOutcomeCallable deleteVirtualBorderRouterCallable(const Model::DeleteVirtualBorderRouterRequest& request) const; + AssociateNetworkAclOutcome associateNetworkAcl(const Model::AssociateNetworkAclRequest &request)const; + void associateNetworkAclAsync(const Model::AssociateNetworkAclRequest& request, const AssociateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateNetworkAclOutcomeCallable associateNetworkAclCallable(const Model::AssociateNetworkAclRequest& request) const; + DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; + void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; ModifyCommonBandwidthPackageSpecOutcome modifyCommonBandwidthPackageSpec(const Model::ModifyCommonBandwidthPackageSpecRequest &request)const; void modifyCommonBandwidthPackageSpecAsync(const Model::ModifyCommonBandwidthPackageSpecRequest& request, const ModifyCommonBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCommonBandwidthPackageSpecOutcomeCallable modifyCommonBandwidthPackageSpecCallable(const Model::ModifyCommonBandwidthPackageSpecRequest& request) const; - CreatePhysicalConnectionNewOutcome createPhysicalConnectionNew(const Model::CreatePhysicalConnectionNewRequest &request)const; - void createPhysicalConnectionNewAsync(const Model::CreatePhysicalConnectionNewRequest& request, const CreatePhysicalConnectionNewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreatePhysicalConnectionNewOutcomeCallable createPhysicalConnectionNewCallable(const Model::CreatePhysicalConnectionNewRequest& request) const; TerminatePhysicalConnectionOutcome terminatePhysicalConnection(const Model::TerminatePhysicalConnectionRequest &request)const; void terminatePhysicalConnectionAsync(const Model::TerminatePhysicalConnectionRequest& request, const TerminatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TerminatePhysicalConnectionOutcomeCallable terminatePhysicalConnectionCallable(const Model::TerminatePhysicalConnectionRequest& request) const; DescribeIpv6EgressOnlyRulesOutcome describeIpv6EgressOnlyRules(const Model::DescribeIpv6EgressOnlyRulesRequest &request)const; void describeIpv6EgressOnlyRulesAsync(const Model::DescribeIpv6EgressOnlyRulesRequest& request, const DescribeIpv6EgressOnlyRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIpv6EgressOnlyRulesOutcomeCallable describeIpv6EgressOnlyRulesCallable(const Model::DescribeIpv6EgressOnlyRulesRequest& request) const; + DescribePhysicalConnectionLOAOutcome describePhysicalConnectionLOA(const Model::DescribePhysicalConnectionLOARequest &request)const; + void describePhysicalConnectionLOAAsync(const Model::DescribePhysicalConnectionLOARequest& request, const DescribePhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhysicalConnectionLOAOutcomeCallable describePhysicalConnectionLOACallable(const Model::DescribePhysicalConnectionLOARequest& request) const; DescribeVpnGatewayOutcome describeVpnGateway(const Model::DescribeVpnGatewayRequest &request)const; void describeVpnGatewayAsync(const Model::DescribeVpnGatewayRequest& request, const DescribeVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnGatewayOutcomeCallable describeVpnGatewayCallable(const Model::DescribeVpnGatewayRequest& request) const; @@ -1430,45 +1744,33 @@ namespace AlibabaCloud DeleteRouteTableOutcome deleteRouteTable(const Model::DeleteRouteTableRequest &request)const; void deleteRouteTableAsync(const Model::DeleteRouteTableRequest& request, const DeleteRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRouteTableOutcomeCallable deleteRouteTableCallable(const Model::DeleteRouteTableRequest& request) const; - ModifyBgpGroupAttributeOutcome modifyBgpGroupAttribute(const Model::ModifyBgpGroupAttributeRequest &request)const; - void modifyBgpGroupAttributeAsync(const Model::ModifyBgpGroupAttributeRequest& request, const ModifyBgpGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyBgpGroupAttributeOutcomeCallable modifyBgpGroupAttributeCallable(const Model::ModifyBgpGroupAttributeRequest& request) const; - ModifyCommonBandwidthPackageAttributeOutcome modifyCommonBandwidthPackageAttribute(const Model::ModifyCommonBandwidthPackageAttributeRequest &request)const; - void modifyCommonBandwidthPackageAttributeAsync(const Model::ModifyCommonBandwidthPackageAttributeRequest& request, const ModifyCommonBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyCommonBandwidthPackageAttributeOutcomeCallable modifyCommonBandwidthPackageAttributeCallable(const Model::ModifyCommonBandwidthPackageAttributeRequest& request) const; + DescribeVpnRouteEntriesOutcome describeVpnRouteEntries(const Model::DescribeVpnRouteEntriesRequest &request)const; + void describeVpnRouteEntriesAsync(const Model::DescribeVpnRouteEntriesRequest& request, const DescribeVpnRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnRouteEntriesOutcomeCallable describeVpnRouteEntriesCallable(const Model::DescribeVpnRouteEntriesRequest& request) const; UnassociateRouteTableOutcome unassociateRouteTable(const Model::UnassociateRouteTableRequest &request)const; void unassociateRouteTableAsync(const Model::UnassociateRouteTableRequest& request, const UnassociateRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateRouteTableOutcomeCallable unassociateRouteTableCallable(const Model::UnassociateRouteTableRequest& request) const; - DeleteForwardEntryOutcome deleteForwardEntry(const Model::DeleteForwardEntryRequest &request)const; - void deleteForwardEntryAsync(const Model::DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteForwardEntryOutcomeCallable deleteForwardEntryCallable(const Model::DeleteForwardEntryRequest& request) const; - AddCommonBandwidthPackageIpOutcome addCommonBandwidthPackageIp(const Model::AddCommonBandwidthPackageIpRequest &request)const; - void addCommonBandwidthPackageIpAsync(const Model::AddCommonBandwidthPackageIpRequest& request, const AddCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddCommonBandwidthPackageIpOutcomeCallable addCommonBandwidthPackageIpCallable(const Model::AddCommonBandwidthPackageIpRequest& request) const; DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; - ModifyIpv6InternetBandwidthOutcome modifyIpv6InternetBandwidth(const Model::ModifyIpv6InternetBandwidthRequest &request)const; - void modifyIpv6InternetBandwidthAsync(const Model::ModifyIpv6InternetBandwidthRequest& request, const ModifyIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyIpv6InternetBandwidthOutcomeCallable modifyIpv6InternetBandwidthCallable(const Model::ModifyIpv6InternetBandwidthRequest& request) const; + ModifyCommonBandwidthPackageIpBandwidthOutcome modifyCommonBandwidthPackageIpBandwidth(const Model::ModifyCommonBandwidthPackageIpBandwidthRequest &request)const; + void modifyCommonBandwidthPackageIpBandwidthAsync(const Model::ModifyCommonBandwidthPackageIpBandwidthRequest& request, const ModifyCommonBandwidthPackageIpBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCommonBandwidthPackageIpBandwidthOutcomeCallable modifyCommonBandwidthPackageIpBandwidthCallable(const Model::ModifyCommonBandwidthPackageIpBandwidthRequest& request) const; + CompletePhysicalConnectionLOAOutcome completePhysicalConnectionLOA(const Model::CompletePhysicalConnectionLOARequest &request)const; + void completePhysicalConnectionLOAAsync(const Model::CompletePhysicalConnectionLOARequest& request, const CompletePhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompletePhysicalConnectionLOAOutcomeCallable completePhysicalConnectionLOACallable(const Model::CompletePhysicalConnectionLOARequest& request) const; DescribePhysicalConnectionsOutcome describePhysicalConnections(const Model::DescribePhysicalConnectionsRequest &request)const; void describePhysicalConnectionsAsync(const Model::DescribePhysicalConnectionsRequest& request, const DescribePhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePhysicalConnectionsOutcomeCallable describePhysicalConnectionsCallable(const Model::DescribePhysicalConnectionsRequest& request) const; DescribeVpnGatewaysOutcome describeVpnGateways(const Model::DescribeVpnGatewaysRequest &request)const; void describeVpnGatewaysAsync(const Model::DescribeVpnGatewaysRequest& request, const DescribeVpnGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnGatewaysOutcomeCallable describeVpnGatewaysCallable(const Model::DescribeVpnGatewaysRequest& request) const; - DescribeVirtualBorderRoutersOutcome describeVirtualBorderRouters(const Model::DescribeVirtualBorderRoutersRequest &request)const; - void describeVirtualBorderRoutersAsync(const Model::DescribeVirtualBorderRoutersRequest& request, const DescribeVirtualBorderRoutersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeVirtualBorderRoutersOutcomeCallable describeVirtualBorderRoutersCallable(const Model::DescribeVirtualBorderRoutersRequest& request) const; CancelPhysicalConnectionOutcome cancelPhysicalConnection(const Model::CancelPhysicalConnectionRequest &request)const; void cancelPhysicalConnectionAsync(const Model::CancelPhysicalConnectionRequest& request, const CancelPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelPhysicalConnectionOutcomeCallable cancelPhysicalConnectionCallable(const Model::CancelPhysicalConnectionRequest& request) const; CreateGlobalAccelerationInstanceOutcome createGlobalAccelerationInstance(const Model::CreateGlobalAccelerationInstanceRequest &request)const; void createGlobalAccelerationInstanceAsync(const Model::CreateGlobalAccelerationInstanceRequest& request, const CreateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateGlobalAccelerationInstanceOutcomeCallable createGlobalAccelerationInstanceCallable(const Model::CreateGlobalAccelerationInstanceRequest& request) const; - CreateBgpGroupOutcome createBgpGroup(const Model::CreateBgpGroupRequest &request)const; - void createBgpGroupAsync(const Model::CreateBgpGroupRequest& request, const CreateBgpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateBgpGroupOutcomeCallable createBgpGroupCallable(const Model::CreateBgpGroupRequest& request) const; DescribeVRoutersOutcome describeVRouters(const Model::DescribeVRoutersRequest &request)const; void describeVRoutersAsync(const Model::DescribeVRoutersRequest& request, const DescribeVRoutersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVRoutersOutcomeCallable describeVRoutersCallable(const Model::DescribeVRoutersRequest& request) const; @@ -1484,6 +1786,9 @@ namespace AlibabaCloud UnassociateHaVipOutcome unassociateHaVip(const Model::UnassociateHaVipRequest &request)const; void unassociateHaVipAsync(const Model::UnassociateHaVipRequest& request, const UnassociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateHaVipOutcomeCallable unassociateHaVipCallable(const Model::UnassociateHaVipRequest& request) const; + CreatePhysicalConnectionOccupancyOrderOutcome createPhysicalConnectionOccupancyOrder(const Model::CreatePhysicalConnectionOccupancyOrderRequest &request)const; + void createPhysicalConnectionOccupancyOrderAsync(const Model::CreatePhysicalConnectionOccupancyOrderRequest& request, const CreatePhysicalConnectionOccupancyOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhysicalConnectionOccupancyOrderOutcomeCallable createPhysicalConnectionOccupancyOrderCallable(const Model::CreatePhysicalConnectionOccupancyOrderRequest& request) const; DescribeCommonBandwidthPackagesOutcome describeCommonBandwidthPackages(const Model::DescribeCommonBandwidthPackagesRequest &request)const; void describeCommonBandwidthPackagesAsync(const Model::DescribeCommonBandwidthPackagesRequest& request, const DescribeCommonBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCommonBandwidthPackagesOutcomeCallable describeCommonBandwidthPackagesCallable(const Model::DescribeCommonBandwidthPackagesRequest& request) const; @@ -1493,15 +1798,6 @@ namespace AlibabaCloud DeleteIPv6TranslatorAclListOutcome deleteIPv6TranslatorAclList(const Model::DeleteIPv6TranslatorAclListRequest &request)const; void deleteIPv6TranslatorAclListAsync(const Model::DeleteIPv6TranslatorAclListRequest& request, const DeleteIPv6TranslatorAclListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteIPv6TranslatorAclListOutcomeCallable deleteIPv6TranslatorAclListCallable(const Model::DeleteIPv6TranslatorAclListRequest& request) const; - AssociateGlobalAccelerationInstanceOutcome associateGlobalAccelerationInstance(const Model::AssociateGlobalAccelerationInstanceRequest &request)const; - void associateGlobalAccelerationInstanceAsync(const Model::AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AssociateGlobalAccelerationInstanceOutcomeCallable associateGlobalAccelerationInstanceCallable(const Model::AssociateGlobalAccelerationInstanceRequest& request) const; - DescribeSslVpnServersOutcome describeSslVpnServers(const Model::DescribeSslVpnServersRequest &request)const; - void describeSslVpnServersAsync(const Model::DescribeSslVpnServersRequest& request, const DescribeSslVpnServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSslVpnServersOutcomeCallable describeSslVpnServersCallable(const Model::DescribeSslVpnServersRequest& request) const; - DescribeSnatTableEntriesOutcome describeSnatTableEntries(const Model::DescribeSnatTableEntriesRequest &request)const; - void describeSnatTableEntriesAsync(const Model::DescribeSnatTableEntriesRequest& request, const DescribeSnatTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSnatTableEntriesOutcomeCallable describeSnatTableEntriesCallable(const Model::DescribeSnatTableEntriesRequest& request) const; ModifyVRouterAttributeOutcome modifyVRouterAttribute(const Model::ModifyVRouterAttributeRequest &request)const; void modifyVRouterAttributeAsync(const Model::ModifyVRouterAttributeRequest& request, const ModifyVRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVRouterAttributeOutcomeCallable modifyVRouterAttributeCallable(const Model::ModifyVRouterAttributeRequest& request) const; diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h index c99284cd1..a17fafe2f 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + long getActivityId()const; + void setActivityId(long activityId); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; @@ -76,6 +78,7 @@ namespace AlibabaCloud std::string iSP_; std::string ownerAccount_; long ownerId_; + long activityId_; std::string resourceGroupId_; std::string regionId_; std::string internetChargeType_; diff --git a/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h new file mode 100644 index 000000000..17b192ad5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOARequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ApplyPhysicalConnectionLOARequest : public RpcServiceRequest + { + struct PMInfo + { + std::string pMCertificateNo; + std::string pMName; + std::string pMCertificateType; + std::string pMContactInfo; + std::string pMGender; + }; + + public: + ApplyPhysicalConnectionLOARequest(); + ~ApplyPhysicalConnectionLOARequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPeerLocation()const; + void setPeerLocation(const std::string& peerLocation); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getLineType()const; + void setLineType(const std::string& lineType); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getConstructionTime()const; + void setConstructionTime(const std::string& constructionTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCompanyName()const; + void setCompanyName(const std::string& companyName); + std::string getSi()const; + void setSi(const std::string& si); + std::vector getPMInfo()const; + void setPMInfo(const std::vector& pMInfo); + + private: + long resourceOwnerId_; + std::string peerLocation_; + std::string clientToken_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string lineType_; + std::string ownerAccount_; + std::string constructionTime_; + long ownerId_; + std::string instanceId_; + std::string regionId_; + std::string companyName_; + std::string si_; + std::vector pMInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOAResult.h b/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOAResult.h new file mode 100644 index 000000000..b9463e198 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ApplyPhysicalConnectionLOAResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ApplyPhysicalConnectionLOAResult : public ServiceResult + { + public: + + + ApplyPhysicalConnectionLOAResult(); + explicit ApplyPhysicalConnectionLOAResult(const std::string &payload); + ~ApplyPhysicalConnectionLOAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_APPLYPHYSICALCONNECTIONLOARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h index abf826f87..472845c8f 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateEipAddressRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getPrivateIpAddress()const; void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getMode()const; + void setMode(const std::string& mode); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getInstanceId()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud private: std::string privateIpAddress_; + std::string mode_; long resourceOwnerId_; std::string instanceId_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h new file mode 100644 index 000000000..478d92e88 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateNetworkAclRequest : public RpcServiceRequest + { + struct Resource + { + std::string resourceType; + std::string resourceId; + }; + + public: + AssociateNetworkAclRequest(); + ~AssociateNetworkAclRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::vector getResource()const; + void setResource(const std::vector& resource); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::vector resource_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclResult.h b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclResult.h new file mode 100644 index 000000000..6bfbdac8d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AssociateNetworkAclResult : public ServiceResult + { + public: + + + AssociateNetworkAclResult(); + explicit AssociateNetworkAclResult(const std::string &payload); + ~AssociateNetworkAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.h new file mode 100644 index 000000000..9d0eca97a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthRequest.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_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CancelCommonBandwidthPackageIpBandwidthRequest : public RpcServiceRequest + { + + public: + CancelCommonBandwidthPackageIpBandwidthRequest(); + ~CancelCommonBandwidthPackageIpBandwidthRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEipId()const; + void setEipId(const std::string& eipId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string eipId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h b/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h new file mode 100644 index 000000000..6d985a06a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CancelCommonBandwidthPackageIpBandwidthResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CancelCommonBandwidthPackageIpBandwidthResult : public ServiceResult + { + public: + + + CancelCommonBandwidthPackageIpBandwidthResult(); + explicit CancelCommonBandwidthPackageIpBandwidthResult(const std::string &payload); + ~CancelCommonBandwidthPackageIpBandwidthResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CANCELCOMMONBANDWIDTHPACKAGEIPBANDWIDTHRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h new file mode 100644 index 000000000..2b180c7e1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.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_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CompletePhysicalConnectionLOARequest : public RpcServiceRequest + { + + public: + CompletePhysicalConnectionLOARequest(); + ~CompletePhysicalConnectionLOARequest(); + + std::string getLineLabel()const; + void setLineLabel(const std::string& lineLabel); + std::string getLineCode()const; + void setLineCode(const std::string& lineCode); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string lineLabel_; + std::string lineCode_; + long resourceOwnerId_; + std::string instanceId_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOAResult.h b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOAResult.h new file mode 100644 index 000000000..f0ffb463e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOAResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CompletePhysicalConnectionLOAResult : public ServiceResult + { + public: + + + CompletePhysicalConnectionLOAResult(); + explicit CompletePhysicalConnectionLOAResult(const std::string &payload); + ~CompletePhysicalConnectionLOAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_COMPLETEPHYSICALCONNECTIONLOARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h new file mode 100644 index 000000000..c5a186db3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CopyNetworkAclEntriesRequest : public RpcServiceRequest + { + + public: + CopyNetworkAclEntriesRequest(); + ~CopyNetworkAclEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getSourceNetworkAclId()const; + void setSourceNetworkAclId(const std::string& sourceNetworkAclId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string sourceNetworkAclId_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesResult.h b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesResult.h new file mode 100644 index 000000000..67f8fdb82 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CopyNetworkAclEntriesResult : public ServiceResult + { + public: + + + CopyNetworkAclEntriesResult(); + explicit CopyNetworkAclEntriesResult(const std::string &payload); + ~CopyNetworkAclEntriesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_COPYNETWORKACLENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h index 751ce3103..bea899c61 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateBgpPeerRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getEnableBfd()const; + void setEnableBfd(bool enableBfd); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; @@ -54,6 +56,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool enableBfd_; std::string resourceOwnerAccount_; std::string regionId_; std::string clientToken_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h new file mode 100644 index 000000000..d40301d95 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateExpressCloudConnectionRequest : public RpcServiceRequest + { + + public: + CreateExpressCloudConnectionRequest(); + ~CreateExpressCloudConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPeerLocation()const; + void setPeerLocation(const std::string& peerLocation); + std::string getPortType()const; + void setPortType(const std::string& portType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getPeerCity()const; + void setPeerCity(const std::string& peerCity); + std::string getIDCardNo()const; + void setIDCardNo(const std::string& iDCardNo); + std::string getRedundantEccId()const; + void setRedundantEccId(const std::string& redundantEccId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getContactMail()const; + void setContactMail(const std::string& contactMail); + std::string getContactTel()const; + void setContactTel(const std::string& contactTel); + std::string getIdcSP()const; + void setIdcSP(const std::string& idcSP); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::string peerLocation_; + std::string portType_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + std::string description_; + std::string peerCity_; + std::string iDCardNo_; + std::string redundantEccId_; + long ownerId_; + std::string contactMail_; + std::string contactTel_; + std::string idcSP_; + std::string regionId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionResult.h b/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionResult.h new file mode 100644 index 000000000..e3845e2ef --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressCloudConnectionResult.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_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateExpressCloudConnectionResult : public ServiceResult + { + public: + + + CreateExpressCloudConnectionResult(); + explicit CreateExpressCloudConnectionResult(const std::string &payload); + ~CreateExpressCloudConnectionResult(); + std::string getEccId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eccId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCLOUDCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h index 14848a170..fff6b89b1 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); std::string getDescription()const; void setDescription(const std::string& description); long getOwnerId()const; @@ -62,6 +64,7 @@ namespace AlibabaCloud std::string clientToken_; std::string regionId_; std::string ownerAccount_; + std::string name_; std::string description_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateHaVipResult.h b/vpc/include/alibabacloud/vpc/model/CreateHaVipResult.h index c1673a13a..f7eb4964e 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateHaVipResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateHaVipResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud CreateHaVipResult(); explicit CreateHaVipResult(const std::string &payload); ~CreateHaVipResult(); + std::string getIpAddress()const; std::string getHaVipId()const; protected: void parse(const std::string &payload); private: + std::string ipAddress_; std::string haVipId_; }; diff --git a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h new file mode 100644 index 000000000..cbca440da --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNetworkAclRequest : public RpcServiceRequest + { + + public: + CreateNetworkAclRequest(); + ~CreateNetworkAclRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getDescription()const; + void setDescription(const std::string& description); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getNetworkAclName()const; + void setNetworkAclName(const std::string& networkAclName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + std::string description_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string networkAclName_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h new file mode 100644 index 000000000..20fd47c24 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateNetworkAclResult : public ServiceResult + { + public: + struct NetworkAclAttribute + { + struct IngressAclEntry + { + std::string policy; + std::string entryType; + std::string description; + std::string sourceCidrIp; + std::string port; + std::string protocol; + std::string networkAclEntryName; + std::string networkAclEntryId; + }; + struct EgressAclEntry + { + std::string policy; + std::string destinationCidrIp; + std::string entryType; + std::string description; + std::string port; + std::string protocol; + std::string networkAclEntryName; + std::string networkAclEntryId; + }; + struct Resource + { + std::string status; + std::string resourceId; + std::string resourceType; + }; + std::vector ingressAclEntries; + std::string status; + std::string description; + std::string networkAclId; + std::string vpcId; + std::vector egressAclEntries; + std::string creationTime; + std::string networkAclName; + std::vector resources; + std::string regionId; + }; + + + CreateNetworkAclResult(); + explicit CreateNetworkAclResult(const std::string &payload); + ~CreateNetworkAclResult(); + std::string getNetworkAclId()const; + NetworkAclAttribute getNetworkAclAttribute()const; + + protected: + void parse(const std::string &payload); + private: + std::string networkAclId_; + NetworkAclAttribute networkAclAttribute_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h new file mode 100644 index 000000000..74e4a80b5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.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_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionOccupancyOrderRequest : public RpcServiceRequest + { + + public: + CreatePhysicalConnectionOccupancyOrderRequest(); + ~CreatePhysicalConnectionOccupancyOrderRequest(); + + int getPeriod()const; + void setPeriod(int period); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + int period_; + long resourceOwnerId_; + bool autoPay_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + long ownerId_; + std::string instanceChargeType_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h new file mode 100644 index 000000000..cc2b57bcf --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionOccupancyOrderResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionOccupancyOrderResult : public ServiceResult + { + public: + + + CreatePhysicalConnectionOccupancyOrderResult(); + explicit CreatePhysicalConnectionOccupancyOrderResult(const std::string &payload); + ~CreatePhysicalConnectionOccupancyOrderResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONOCCUPANCYORDERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.h new file mode 100644 index 000000000..ac5037e7c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderRequest.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_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionSetupOrderRequest : public RpcServiceRequest + { + + public: + CreatePhysicalConnectionSetupOrderRequest(); + ~CreatePhysicalConnectionSetupOrderRequest(); + + std::string getAccessPointId()const; + void setAccessPointId(const std::string& accessPointId); + std::string getRedundantPhysicalConnectionId()const; + void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType()const; + void setPortType(const std::string& portType); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLineOperator()const; + void setLineOperator(const std::string& lineOperator); + + private: + std::string accessPointId_; + std::string redundantPhysicalConnectionId_; + long resourceOwnerId_; + std::string portType_; + bool autoPay_; + std::string regionId_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string lineOperator_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderResult.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderResult.h new file mode 100644 index 000000000..c80338fad --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionSetupOrderResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionSetupOrderResult : public ServiceResult + { + public: + + + CreatePhysicalConnectionSetupOrderResult(); + explicit CreatePhysicalConnectionSetupOrderResult(const std::string &payload); + ~CreatePhysicalConnectionSetupOrderResult(); + std::string getPhysicalConnectionId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string physicalConnectionId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEPHYSICALCONNECTIONSETUPORDERRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h index af9c38bb7..5e0de26b6 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setRemoteSubnet(const std::string& remoteSubnet); bool getEffectImmediately()const; void setEffectImmediately(bool effectImmediately); + bool getAutoConfigRoute()const; + void setAutoConfigRoute(bool autoConfigRoute); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getClientToken()const; @@ -55,6 +57,8 @@ namespace AlibabaCloud void setVpnGatewayId(const std::string& vpnGatewayId); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getHealthCheckConfig()const; + void setHealthCheckConfig(const std::string& healthCheckConfig); std::string getCustomerGatewayId()const; void setCustomerGatewayId(const std::string& customerGatewayId); std::string getLocalSubnet()const; @@ -69,12 +73,14 @@ namespace AlibabaCloud long resourceOwnerId_; std::string remoteSubnet_; bool effectImmediately_; + bool autoConfigRoute_; std::string resourceOwnerAccount_; std::string clientToken_; std::string ownerAccount_; std::string ipsecConfig_; std::string vpnGatewayId_; long ownerId_; + std::string healthCheckConfig_; std::string customerGatewayId_; std::string localSubnet_; std::string regionId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h new file mode 100644 index 000000000..16b6037d3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpnPbrRouteEntryRequest : public RpcServiceRequest + { + + public: + CreateVpnPbrRouteEntryRequest(); + ~CreateVpnPbrRouteEntryRequest(); + + std::string getRouteSource()const; + void setRouteSource(const std::string& routeSource); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getWeight()const; + void setWeight(int weight); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouteDest()const; + void setRouteDest(const std::string& routeDest); + std::string getNextHop()const; + void setNextHop(const std::string& nextHop); + bool getPublishVpc()const; + void setPublishVpc(bool publishVpc); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOverlayMode()const; + void setOverlayMode(const std::string& overlayMode); + + private: + std::string routeSource_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int weight_; + std::string description_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + bool publishVpc_; + std::string regionId_; + std::string overlayMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.h new file mode 100644 index 000000000..7d198f5fd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryResult.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_VPC_MODEL_CREATEVPNPBRROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpnPbrRouteEntryResult : public ServiceResult + { + public: + + + CreateVpnPbrRouteEntryResult(); + explicit CreateVpnPbrRouteEntryResult(const std::string &payload); + ~CreateVpnPbrRouteEntryResult(); + std::string getVpnInstanceId()const; + std::string getRouteDest()const; + std::string getDescription()const; + std::string getOverlayMode()const; + std::string getNextHop()const; + std::string getState()const; + std::string getRouteSource()const; + long getCreateTime()const; + int getWeight()const; + + protected: + void parse(const std::string &payload); + private: + std::string vpnInstanceId_; + std::string routeDest_; + std::string description_; + std::string overlayMode_; + std::string nextHop_; + std::string state_; + std::string routeSource_; + long createTime_; + int weight_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNPBRROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h new file mode 100644 index 000000000..32715d202 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.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_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpnRouteEntryRequest : public RpcServiceRequest + { + + public: + CreateVpnRouteEntryRequest(); + ~CreateVpnRouteEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getWeight()const; + void setWeight(int weight); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouteDest()const; + void setRouteDest(const std::string& routeDest); + std::string getNextHop()const; + void setNextHop(const std::string& nextHop); + bool getPublishVpc()const; + void setPublishVpc(bool publishVpc); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOverlayMode()const; + void setOverlayMode(const std::string& overlayMode); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int weight_; + std::string description_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + bool publishVpc_; + std::string regionId_; + std::string overlayMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h new file mode 100644 index 000000000..fd6ec8889 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVpnRouteEntryResult : public ServiceResult + { + public: + + + CreateVpnRouteEntryResult(); + explicit CreateVpnRouteEntryResult(const std::string &payload); + ~CreateVpnRouteEntryResult(); + std::string getVpnInstanceId()const; + std::string getRouteDest()const; + std::string getDescription()const; + std::string getOverlayMode()const; + std::string getNextHop()const; + std::string getState()const; + long getCreateTime()const; + int getWeight()const; + + protected: + void parse(const std::string &payload); + private: + std::string vpnInstanceId_; + std::string routeDest_; + std::string description_; + std::string overlayMode_; + std::string nextHop_; + std::string state_; + long createTime_; + int weight_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVPNROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectRequest.h new file mode 100644 index 000000000..21eb78be3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectRequest.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_VPC_MODEL_DELETEEXPRESSCONNECTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectRequest : public RpcServiceRequest + { + + public: + DeleteExpressConnectRequest(); + ~DeleteExpressConnectRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getForce()const; + void setForce(bool force); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + bool force_; + std::string routerInterfaceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectResult.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectResult.h new file mode 100644 index 000000000..7304b90c6 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectResult : public ServiceResult + { + public: + + + DeleteExpressConnectResult(); + explicit DeleteExpressConnectResult(const std::string &payload); + ~DeleteExpressConnectResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h new file mode 100644 index 000000000..902a45bce --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.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_VPC_MODEL_DELETENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNetworkAclRequest : public RpcServiceRequest + { + + public: + DeleteNetworkAclRequest(); + ~DeleteNetworkAclRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclResult.h b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclResult.h new file mode 100644 index 000000000..c88980d8a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteNetworkAclResult : public ServiceResult + { + public: + + + DeleteNetworkAclResult(); + explicit DeleteNetworkAclResult(const std::string &payload); + ~DeleteNetworkAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h new file mode 100644 index 000000000..497718301 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnPbrRouteEntryRequest : public RpcServiceRequest + { + + public: + DeleteVpnPbrRouteEntryRequest(); + ~DeleteVpnPbrRouteEntryRequest(); + + std::string getRouteSource()const; + void setRouteSource(const std::string& routeSource); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getWeight()const; + void setWeight(int weight); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouteDest()const; + void setRouteDest(const std::string& routeDest); + std::string getNextHop()const; + void setNextHop(const std::string& nextHop); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOverlayMode()const; + void setOverlayMode(const std::string& overlayMode); + + private: + std::string routeSource_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + std::string regionId_; + std::string overlayMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryResult.h new file mode 100644 index 000000000..0f1417465 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnPbrRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnPbrRouteEntryResult : public ServiceResult + { + public: + + + DeleteVpnPbrRouteEntryResult(); + explicit DeleteVpnPbrRouteEntryResult(const std::string &payload); + ~DeleteVpnPbrRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNPBRROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.h new file mode 100644 index 000000000..80fa4cedb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryRequest.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_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnRouteEntryRequest : public RpcServiceRequest + { + + public: + DeleteVpnRouteEntryRequest(); + ~DeleteVpnRouteEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getWeight()const; + void setWeight(int weight); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouteDest()const; + void setRouteDest(const std::string& routeDest); + std::string getNextHop()const; + void setNextHop(const std::string& nextHop); + std::string getOverlayMode()const; + void setOverlayMode(const std::string& overlayMode); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + std::string overlayMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryResult.h new file mode 100644 index 000000000..11f6f25cd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpnRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVpnRouteEntryResult : public ServiceResult + { + public: + + + DeleteVpnRouteEntryResult(); + explicit DeleteVpnRouteEntryResult(const std::string &payload); + ~DeleteVpnRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVPNROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h index 1ccd1322a..f6371ff81 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeBgpPeersResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud std::string name; std::string bgpPeerId; std::string localAsn; + bool enableBfd; std::string bgpStatus; std::string authKey; std::string isFake; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h index effd84782..7298a9079 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h @@ -48,6 +48,7 @@ namespace AlibabaCloud std::vector availableRegions; std::string resourceGroupId; std::string allocationId; + bool secondLimited; std::string name; std::string reservationOrderType; std::string instanceRegionId; @@ -65,6 +66,7 @@ namespace AlibabaCloud std::string hasReservationData; std::string bandwidthPackageType; std::vector operationLocks; + std::string bandwidthPackageBandwidth; std::string internetChargeType; std::string reservationInternetChargeType; std::string allocationTime; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h new file mode 100644 index 000000000..63d2d1279 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.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_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeEipGatewayInfoRequest : public RpcServiceRequest + { + + public: + DescribeEipGatewayInfoRequest(); + ~DescribeEipGatewayInfoRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long callerParentId_; + std::string ownerAccount_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string instanceId_; + std::string regionId_; + std::string securityToken_; + std::string requestId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFOREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoResult.h new file mode 100644 index 000000000..a5183c737 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFORESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeEipGatewayInfoResult : public ServiceResult + { + public: + struct EipInfo + { + std::string ipMask; + std::string ipGw; + std::string ip; + }; + + + DescribeEipGatewayInfoResult(); + explicit DescribeEipGatewayInfoResult(const std::string &payload); + ~DescribeEipGatewayInfoResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getEipInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector eipInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEIPGATEWAYINFORESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.h new file mode 100644 index 000000000..3bae55a15 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsRequest.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_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeExpressCloudConnectionsRequest : public RpcServiceRequest + { + struct Filter + { + std::vector value; + std::string key; + }; + + public: + DescribeExpressCloudConnectionsRequest(); + ~DescribeExpressCloudConnectionsRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h new file mode 100644 index 000000000..c004b2490 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressCloudConnectionsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeExpressCloudConnectionsResult : public ServiceResult + { + public: + struct ExpressCloudConnectionType + { + struct VirtualBorderRouterModel + { + std::string instanceId; + std::string physicalConnectionId; + std::string accessPointId; + }; + std::string contactMail; + std::string description; + std::string endTime; + std::vector virtualBorderRouterModels; + std::string peerLocation; + std::string businessStatus; + std::string name; + std::string reservationOrderType; + std::string iDCardNo; + std::string contactTel; + std::string gmtModify; + std::string idcSP; + int bandwidth; + std::string reservationActiveTime; + std::string reservationBandwidth; + int distance; + std::string status; + std::string instanceId; + std::string circuitCode; + std::string isp; + std::string hasReservationData; + std::string redundantEccId; + std::string reservationInternetChargeType; + std::string applicationBandwidth; + std::string applicationType; + std::string gmtCreate; + std::string type; + std::string chargeType; + std::string applicationStatus; + std::string applicationId; + std::string peerCity; + std::string portType; + }; + + + DescribeExpressCloudConnectionsResult(); + explicit DescribeExpressCloudConnectionsResult(const std::string &payload); + ~DescribeExpressCloudConnectionsResult(); + std::vector getExpressCloudConnectionSet()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector expressCloudConnectionSet_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCLOUDCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h index 341423e26..63acb6720 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeHaVipsResult.h @@ -35,15 +35,17 @@ namespace AlibabaCloud struct HaVip { std::string status; - std::vector associatedInstances; std::string description; - std::string vpcId; std::vector associatedEipAddresses; - std::string masterInstanceId; std::string vSwitchId; std::string createTime; - std::string ipAddress; std::string haVipId; + std::string name; + std::vector associatedInstances; + std::string vpcId; + std::string masterInstanceId; + std::string chargeType; + std::string ipAddress; std::string regionId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h new file mode 100644 index 000000000..e675a3497 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.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_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclAttributesRequest : public RpcServiceRequest + { + + public: + DescribeNetworkAclAttributesRequest(); + ~DescribeNetworkAclAttributesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h new file mode 100644 index 000000000..3e18d98d1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.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_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclAttributesResult : public ServiceResult + { + public: + struct NetworkAclAttribute + { + struct IngressAclEntry + { + std::string policy; + std::string entryType; + std::string description; + std::string sourceCidrIp; + std::string port; + std::string protocol; + std::string networkAclEntryName; + std::string networkAclEntryId; + }; + struct EgressAclEntry + { + std::string policy; + std::string destinationCidrIp; + std::string entryType; + std::string description; + std::string port; + std::string protocol; + std::string networkAclEntryName; + std::string networkAclEntryId; + }; + struct Resource + { + std::string status; + std::string resourceId; + std::string resourceType; + }; + std::vector ingressAclEntries; + std::string status; + std::string description; + std::string networkAclId; + std::string vpcId; + std::vector egressAclEntries; + std::string creationTime; + std::string networkAclName; + std::vector resources; + std::string regionId; + }; + + + DescribeNetworkAclAttributesResult(); + explicit DescribeNetworkAclAttributesResult(const std::string &payload); + ~DescribeNetworkAclAttributesResult(); + NetworkAclAttribute getNetworkAclAttribute()const; + + protected: + void parse(const std::string &payload); + private: + NetworkAclAttribute networkAclAttribute_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h new file mode 100644 index 000000000..2700ffe97 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.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_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclsRequest : public RpcServiceRequest + { + + public: + DescribeNetworkAclsRequest(); + ~DescribeNetworkAclsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getNetworkAclName()const; + void setNetworkAclName(const std::string& networkAclName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + int pageNumber_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string networkAclName_; + std::string callerBid_; + long ownerId_; + std::string resourceType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h new file mode 100644 index 000000000..d1588a85f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNetworkAclsResult : public ServiceResult + { + public: + struct NetworkAcl + { + struct IngressAclEntry + { + std::string policy; + std::string entryType; + std::string description; + std::string sourceCidrIp; + std::string port; + std::string protocol; + std::string networkAclEntryName; + std::string networkAclEntryId; + }; + struct EgressAclEntry + { + std::string policy; + std::string destinationCidrIp; + std::string entryType; + std::string description; + std::string port; + std::string protocol; + std::string networkAclEntryName; + std::string networkAclEntryId; + }; + struct Resource + { + std::string status; + std::string resourceId; + std::string resourceType; + }; + std::vector ingressAclEntries; + std::string status; + std::string description; + std::string networkAclId; + std::string vpcId; + std::vector egressAclEntries; + std::string creationTime; + std::string networkAclName; + std::vector resources; + std::string regionId; + }; + + + DescribeNetworkAclsResult(); + explicit DescribeNetworkAclsResult(const std::string &payload); + ~DescribeNetworkAclsResult(); + std::vector getNetworkAcls()const; + std::string getTotalCount()const; + std::string getPageSize()const; + std::string getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector networkAcls_; + std::string totalCount_; + std::string pageSize_; + std::string pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENETWORKACLSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.h new file mode 100644 index 000000000..e234e605a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOARequest.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_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionLOARequest : public RpcServiceRequest + { + + public: + DescribePhysicalConnectionLOARequest(); + ~DescribePhysicalConnectionLOARequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOAREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h new file mode 100644 index 000000000..6841ce4b2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.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_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribePhysicalConnectionLOAResult : public ServiceResult + { + public: + struct PhysicalConnectionLOAType + { + struct PMInfoItem + { + std::string pMCertificateNo; + std::string pMCertificateType; + std::string pMContactInfo; + std::string pMGender; + std::string pMName; + }; + std::string status; + std::string companyName; + std::string constructionTime; + std::string instanceId; + std::string sI; + std::string companyLocalizedName; + std::vector pMInfo; + std::string loaUrl; + std::string lineType; + std::string lineCode; + std::string lineLabel; + }; + + + DescribePhysicalConnectionLOAResult(); + explicit DescribePhysicalConnectionLOAResult(const std::string &payload); + ~DescribePhysicalConnectionLOAResult(); + PhysicalConnectionLOAType getPhysicalConnectionLOAType()const; + + protected: + void parse(const std::string &payload); + private: + PhysicalConnectionLOAType physicalConnectionLOAType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEPHYSICALCONNECTIONLOARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h index 38eb86892..4d7ce0b90 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsRequest.h @@ -56,6 +56,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); long getOwnerId()const; void setOwnerId(long ownerId); + bool getIncludeReservationData()const; + void setIncludeReservationData(bool includeReservationData); int getPageNumber()const; void setPageNumber(int pageNumber); @@ -68,6 +70,7 @@ namespace AlibabaCloud std::string ownerAccount_; int pageSize_; long ownerId_; + bool includeReservationData_; int pageNumber_; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h index 31be70ad7..3ebd44109 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h @@ -34,18 +34,26 @@ namespace AlibabaCloud public: struct PhysicalConnectionType { - std::string status; std::string description; + std::string endTime; std::string lineOperator; - std::string circuitCode; std::string physicalConnectionId; std::string peerLocation; std::string redundantPhysicalConnectionId; std::string businessStatus; std::string name; - std::string type; + std::string reservationOrderType; + std::string loaStatus; std::string adLocation; long bandwidth; + std::string reservationActiveTime; + std::string status; + std::string circuitCode; + std::string hasReservationData; + std::string reservationInternetChargeType; + std::string spec1; + std::string type; + std::string chargeType; std::string accessPointId; std::string creationTime; std::string enabledTime; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h new file mode 100644 index 000000000..666fdaba8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListRequest.h @@ -0,0 +1,147 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouteEntryListRequest : public RpcServiceRequest + { + + public: + DescribeRouteEntryListRequest(); + ~DescribeRouteEntryListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRouteEntryName()const; + void setRouteEntryName(const std::string& routeEntryName); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getRouteEntryType()const; + void setRouteEntryType(const std::string& routeEntryType); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getIpVersion()const; + void setIpVersion(const std::string& ipVersion); + std::string getNextHopId()const; + void setNextHopId(const std::string& nextHopId); + std::string getNextHopType()const; + void setNextHopType(const std::string& nextHopType); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + int getMaxResult()const; + void setMaxResult(int maxResult); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRouteEntryId()const; + void setRouteEntryId(const std::string& routeEntryId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string routeEntryName_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string routeEntryType_; + std::string callerBidEmail_; + std::string ipVersion_; + std::string nextHopId_; + std::string nextHopType_; + std::string callerUidEmail_; + std::string routeTableId_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + int maxResult_; + bool security_transport_; + std::string routeEntryId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h new file mode 100644 index 000000000..b5760d03b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeRouteEntryListResult : public ServiceResult + { + public: + struct RouteEntry + { + struct NextHop + { + struct NextHopRelatedInfo + { + std::string instanceId; + std::string regionId; + std::string instanceType; + }; + std::string nextHopType; + std::string nextHopRegionId; + std::string nextHopId; + int enabled; + NextHopRelatedInfo nextHopRelatedInfo; + int weight; + }; + std::string status; + std::string routeEntryId; + std::string type; + std::string routeTableId; + std::string ipVersion; + std::vector nextHops; + std::string routeEntryName; + std::string destinationCidrBlock; + }; + + + DescribeRouteEntryListResult(); + explicit DescribeRouteEntryListResult(const std::string &payload); + ~DescribeRouteEntryListResult(); + std::string getNextToken()const; + std::vector getRouteEntrys()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector routeEntrys_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEROUTEENTRYLISTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h index f00cdb3bc..b69fee4e2 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string value; std::string key; }; + std::string status; std::string routeTableId; std::string description; std::string vpcId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h index b7917ecea..317872765 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTablesResult.h @@ -49,18 +49,21 @@ namespace AlibabaCloud }; std::string status; std::string nextHopOppsiteRegionId; - std::string nextHopType; - std::string nextHopRegionId; - std::string type; std::string routeTableId; std::string privateIpAddress; std::string instanceId; std::vector nextHops; std::string nextHopOppsiteType; - std::string nextHopOppsiteInstanceId; std::string destinationCidrBlock; + std::string nextHopType; + std::string routeEntryId; + std::string nextHopRegionId; + std::string type; + std::string routeEntryName; + std::string nextHopOppsiteInstanceId; }; std::string vRouterId; + std::string status; std::string routeTableId; std::string resourceGroupId; std::vector vSwitchIds; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h index 5140b838b..776e572e9 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setVSwitchId(const std::string& vSwitchId); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud private: std::string vSwitchId_; long resourceOwnerId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string regionId_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h index 27e7a8ca0..18f226877 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h @@ -52,6 +52,7 @@ namespace AlibabaCloud std::string getDescription()const; std::string getZoneId()const; std::string getResourceGroupId()const; + std::string getNetworkAclId()const; std::string getVSwitchId()const; long getAvailableIpAddressCount()const; std::string getCidrBlock()const; @@ -70,6 +71,7 @@ namespace AlibabaCloud std::string description_; std::string zoneId_; std::string resourceGroupId_; + std::string networkAclId_; std::string vSwitchId_; long availableIpAddressCount_; std::string cidrBlock_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h index 63e1cbba6..36b5f2e53 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h @@ -42,6 +42,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -73,6 +75,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h index 6c2ef72fe..8816812cd 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h @@ -49,6 +49,7 @@ namespace AlibabaCloud std::string description; std::string zoneId; std::string resourceGroupId; + std::string networkAclId; std::string vSwitchId; long availableIpAddressCount; std::string cidrBlock; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h index 8f0ab538a..da74d4dfa 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h @@ -34,17 +34,20 @@ namespace AlibabaCloud public: struct VirtualBorderRouterForPhysicalConnectionType { - std::string localGatewayIp; + std::string status; std::string peerGatewayIp; long vbrOwnerUid; std::string activationTime; std::string circuitCode; - std::string creationTime; std::string vbrId; std::string terminationTime; std::string peeringSubnetMask; - int vlanId; std::string recoveryTime; + std::string type; + std::string localGatewayIp; + std::string creationTime; + std::string eccId; + int vlanId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h index 243ebbdbf..ba4065063 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h @@ -53,13 +53,12 @@ namespace AlibabaCloud long cenOwnerId; std::string cenId; }; - std::string status; std::string peerGatewayIp; + long minRxInterval; std::string routeTableId; std::string description; std::vector associatedPhysicalConnections; std::string activationTime; - std::string circuitCode; std::string physicalConnectionId; std::string vlanInterfaceId; std::string physicalConnectionStatus; @@ -69,11 +68,17 @@ namespace AlibabaCloud std::string physicalConnectionOwnerUid; std::string recoveryTime; std::string name; - std::string localGatewayIp; std::vector associatedCens; + std::string eccId; + int vlanId; + std::string status; + std::string circuitCode; + long minTxInterval; + long detectMultiplier; + std::string localGatewayIp; + std::string type; std::string creationTime; std::string accessPointId; - int vlanId; std::string physicalConnectionBusinessStatus; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h index 28152d1e7..f593c28a6 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; @@ -52,6 +54,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string regionId_; std::string vpcId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h index 2e3963765..18687125b 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h @@ -56,6 +56,7 @@ namespace AlibabaCloud std::vector getVSwitchIds()const; std::string getCidrBlock()const; std::vector getUserCidrs()const; + std::string getNetworkAclNum()const; std::string getVRouterId()const; std::string getVpcId()const; std::vector getAssociatedCens()const; @@ -76,6 +77,7 @@ namespace AlibabaCloud std::vector vSwitchIds_; std::string cidrBlock_; std::vector userCidrs_; + std::string networkAclNum_; std::string vRouterId_; std::string vpcId_; std::vector associatedCens_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h index 6317b40eb..4b8b491eb 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h @@ -42,6 +42,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getDryRun()const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -67,6 +69,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h index 4fe0249fc..dbeae5dd7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h @@ -41,12 +41,14 @@ namespace AlibabaCloud }; std::string status; bool isDefault; + std::string cenStatus; std::string description; std::string resourceGroupId; std::vector vSwitchIds; std::string cidrBlock; std::vector routerTableIds; std::vector userCidrs; + std::string networkAclNum; std::string vRouterId; std::vector natGatewayIds; std::string vpcId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h index d24d0664e..ef24ca78c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h @@ -51,6 +51,15 @@ namespace AlibabaCloud std::string ipsecAuthAlg; long ipsecLifetime; }; + struct VcoHealthCheck + { + std::string status; + std::string enable; + std::string dip; + std::string sip; + int retry; + int interval; + }; DescribeVpnConnectionResult(); @@ -59,6 +68,7 @@ namespace AlibabaCloud std::string getLocalSubnet()const; bool getEffectImmediately()const; std::string getStatus()const; + VcoHealthCheck getVcoHealthCheck()const; std::string getRemoteSubnet()const; std::string getCustomerGatewayId()const; std::string getVpnGatewayId()const; @@ -74,6 +84,7 @@ namespace AlibabaCloud std::string localSubnet_; bool effectImmediately_; std::string status_; + VcoHealthCheck vcoHealthCheck_; std::string remoteSubnet_; std::string customerGatewayId_; std::string vpnGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h index 8cff30eea..aa39e2ee5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h @@ -53,9 +53,19 @@ namespace AlibabaCloud std::string ipsecAuthAlg; long ipsecLifetime; }; + struct VcoHealthCheck + { + std::string status; + std::string enable; + std::string dip; + std::string sip; + int retry; + int interval; + }; std::string localSubnet; bool effectImmediately; std::string status; + VcoHealthCheck vcoHealthCheck; std::string remoteSubnet; std::string customerGatewayId; std::string vpnGatewayId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h index f69f13a54..8fc079a9a 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud std::string getInternetIp()const; std::string getVpnGatewayId()const; std::string getChargeType()const; + std::string getTag()const; std::string getSpec()const; long getSslMaxConnections()const; @@ -69,6 +70,7 @@ namespace AlibabaCloud std::string internetIp_; std::string vpnGatewayId_; std::string chargeType_; + std::string tag_; std::string spec_; long sslMaxConnections_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h index 556c36c50..69cb912b9 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud std::string internetIp; std::string vpnGatewayId; std::string chargeType; + std::string tag; std::string spec; long sslMaxConnections; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h new file mode 100644 index 000000000..fa3ed10ce --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.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_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnPbrRouteEntriesRequest : public RpcServiceRequest + { + + public: + DescribeVpnPbrRouteEntriesRequest(); + ~DescribeVpnPbrRouteEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string vpnGatewayId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h new file mode 100644 index 000000000..a92545754 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.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_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnPbrRouteEntriesResult : public ServiceResult + { + public: + struct VpnPbrRouteEntry + { + std::string vpnInstanceId; + std::string routeDest; + std::string nextHop; + std::string state; + std::string routeSource; + long createTime; + int weight; + }; + + + DescribeVpnPbrRouteEntriesResult(); + explicit DescribeVpnPbrRouteEntriesResult(const std::string &payload); + ~DescribeVpnPbrRouteEntriesResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getVpnPbrRouteEntries()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector vpnPbrRouteEntries_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNPBRROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.h new file mode 100644 index 000000000..e15ca22bd --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesRequest.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_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnRouteEntriesRequest : public RpcServiceRequest + { + + public: + DescribeVpnRouteEntriesRequest(); + ~DescribeVpnRouteEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string vpnGatewayId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h new file mode 100644 index 000000000..94e1a2803 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.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_VPC_MODEL_DESCRIBEVPNROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnRouteEntriesResult : public ServiceResult + { + public: + struct VpnRouteEntry + { + std::string vpnInstanceId; + std::string routeDest; + std::string nextHop; + std::string state; + long createTime; + int weight; + }; + + + DescribeVpnRouteEntriesResult(); + explicit DescribeVpnRouteEntriesResult(const std::string &payload); + ~DescribeVpnRouteEntriesResult(); + int getTotalCount()const; + std::vector getVpnRouteEntries()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector vpnRouteEntries_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.h new file mode 100644 index 000000000..7b2537c47 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsRequest.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_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnSslServerLogsRequest : public RpcServiceRequest + { + + public: + DescribeVpnSslServerLogsRequest(); + ~DescribeVpnSslServerLogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getMinutePeriod()const; + void setMinutePeriod(int minutePeriod); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getVpnSslServerId()const; + void setVpnSslServerId(const std::string& vpnSslServerId); + int getFrom()const; + void setFrom(int from); + int getTo()const; + void setTo(int to); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + int minutePeriod_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string vpnSslServerId_; + int from_; + int to_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsResult.h new file mode 100644 index 000000000..4997b58cb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnSslServerLogsResult.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_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnSslServerLogsResult : public ServiceResult + { + public: + + + DescribeVpnSslServerLogsResult(); + explicit DescribeVpnSslServerLogsResult(const std::string &payload); + ~DescribeVpnSslServerLogsResult(); + int getPageSize()const; + int getPageNumber()const; + bool getIsCompleted()const; + std::vector getData()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + bool isCompleted_; + std::vector data_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNSSLSERVERLOGSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h b/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..3313f2c60 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::vector resourceId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h b/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.h new file mode 100644 index 000000000..db1149126 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListTagResourcesResult.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_VPC_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string tagKey; + std::string resourceType; + std::string tagValue; + std::string resourcId; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.h new file mode 100644 index 000000000..b13847dac --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeRequest.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_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBgpPeerAttributeRequest : public RpcServiceRequest + { + + public: + ModifyBgpPeerAttributeRequest(); + ~ModifyBgpPeerAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getEnableBfd()const; + void setEnableBfd(bool enableBfd); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBgpGroupId()const; + void setBgpGroupId(const std::string& bgpGroupId); + std::string getBgpPeerId()const; + void setBgpPeerId(const std::string& bgpPeerId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeerIpAddress()const; + void setPeerIpAddress(const std::string& peerIpAddress); + + private: + long resourceOwnerId_; + bool enableBfd_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string bgpGroupId_; + std::string bgpPeerId_; + long ownerId_; + std::string peerIpAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeResult.h new file mode 100644 index 000000000..cae1b5526 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyBgpPeerAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyBgpPeerAttributeResult : public ServiceResult + { + public: + + + ModifyBgpPeerAttributeResult(); + explicit ModifyBgpPeerAttributeResult(const std::string &payload); + ~ModifyBgpPeerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYBGPPEERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.h new file mode 100644 index 000000000..612d895b5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthRequest.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_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageIpBandwidthRequest : public RpcServiceRequest + { + + public: + ModifyCommonBandwidthPackageIpBandwidthRequest(); + ~ModifyCommonBandwidthPackageIpBandwidthRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEipId()const; + void setEipId(const std::string& eipId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string bandwidth_; + std::string ownerAccount_; + std::string eipId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthResult.h b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthResult.h new file mode 100644 index 000000000..55ef1c646 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyCommonBandwidthPackageIpBandwidthResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyCommonBandwidthPackageIpBandwidthResult : public ServiceResult + { + public: + + + ModifyCommonBandwidthPackageIpBandwidthResult(); + explicit ModifyCommonBandwidthPackageIpBandwidthResult(const std::string &payload); + ~ModifyCommonBandwidthPackageIpBandwidthResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYCOMMONBANDWIDTHPACKAGEIPBANDWIDTHRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h new file mode 100644 index 000000000..88239223d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.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_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionAttributeRequest : public RpcServiceRequest + { + + public: + ModifyExpressCloudConnectionAttributeRequest(); + ~ModifyExpressCloudConnectionAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getEccId()const; + void setEccId(const std::string& eccId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + std::string eccId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeResult.h new file mode 100644 index 000000000..a7dc16f8c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionAttributeResult : public ServiceResult + { + public: + + + ModifyExpressCloudConnectionAttributeResult(); + explicit ModifyExpressCloudConnectionAttributeResult(const std::string &payload); + ~ModifyExpressCloudConnectionAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h new file mode 100644 index 000000000..3b480b455 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.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_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionBandwidthRequest : public RpcServiceRequest + { + + public: + ModifyExpressCloudConnectionBandwidthRequest(); + ~ModifyExpressCloudConnectionBandwidthRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getEccId()const; + void setEccId(const std::string& eccId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string eccId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthResult.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthResult.h new file mode 100644 index 000000000..afc68adc1 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyExpressCloudConnectionBandwidthResult : public ServiceResult + { + public: + + + ModifyExpressCloudConnectionBandwidthResult(); + explicit ModifyExpressCloudConnectionBandwidthResult(const std::string &payload); + ~ModifyExpressCloudConnectionBandwidthResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCLOUDCONNECTIONBANDWIDTHRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h index 9dbbad13b..697ed1af8 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyHaVipAttributeRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); std::string getDescription()const; void setDescription(const std::string& description); long getOwnerId()const; @@ -59,6 +61,7 @@ namespace AlibabaCloud std::string clientToken_; std::string regionId_; std::string ownerAccount_; + std::string name_; std::string description_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h new file mode 100644 index 000000000..272c2299f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNetworkAclAttributesRequest : public RpcServiceRequest + { + + public: + ModifyNetworkAclAttributesRequest(); + ~ModifyNetworkAclAttributesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getDescription()const; + void setDescription(const std::string& description); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getNetworkAclName()const; + void setNetworkAclName(const std::string& networkAclName); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + std::string description_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string networkAclName_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesResult.h b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesResult.h new file mode 100644 index 000000000..81e99a1af --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyNetworkAclAttributesResult : public ServiceResult + { + public: + + + ModifyNetworkAclAttributesResult(); + explicit ModifyNetworkAclAttributesResult(const std::string &payload); + ~ModifyNetworkAclAttributesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYNETWORKACLATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h index 7fdabf272..341ea6e0f 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -55,8 +55,12 @@ namespace AlibabaCloud void setVbrId(const std::string& vbrId); long getOwnerId()const; void setOwnerId(long ownerId); + long getMinRxInterval()const; + void setMinRxInterval(long minRxInterval); std::string getPeerGatewayIp()const; void setPeerGatewayIp(const std::string& peerGatewayIp); + long getDetectMultiplier()const; + void setDetectMultiplier(long detectMultiplier); std::string getPeeringSubnetMask()const; void setPeeringSubnetMask(const std::string& peeringSubnetMask); std::string getRegionId()const; @@ -65,6 +69,8 @@ namespace AlibabaCloud void setName(const std::string& name); std::string getLocalGatewayIp()const; void setLocalGatewayIp(const std::string& localGatewayIp); + long getMinTxInterval()const; + void setMinTxInterval(long minTxInterval); private: long resourceOwnerId_; @@ -77,11 +83,14 @@ namespace AlibabaCloud std::string description_; std::string vbrId_; long ownerId_; + long minRxInterval_; std::string peerGatewayIp_; + long detectMultiplier_; std::string peeringSubnetMask_; std::string regionId_; std::string name_; std::string localGatewayIp_; + long minTxInterval_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h index 09566e29f..a98463f6c 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setRemoteSubnet(const std::string& remoteSubnet); bool getEffectImmediately()const; void setEffectImmediately(bool effectImmediately); + bool getAutoConfigRoute()const; + void setAutoConfigRoute(bool autoConfigRoute); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getClientToken()const; @@ -53,6 +55,8 @@ namespace AlibabaCloud void setIpsecConfig(const std::string& ipsecConfig); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getHealthCheckConfig()const; + void setHealthCheckConfig(const std::string& healthCheckConfig); std::string getLocalSubnet()const; void setLocalSubnet(const std::string& localSubnet); std::string getRegionId()const; @@ -67,11 +71,13 @@ namespace AlibabaCloud long resourceOwnerId_; std::string remoteSubnet_; bool effectImmediately_; + bool autoConfigRoute_; std::string resourceOwnerAccount_; std::string clientToken_; std::string ownerAccount_; std::string ipsecConfig_; long ownerId_; + std::string healthCheckConfig_; std::string localSubnet_; std::string regionId_; std::string vpnConnectionId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h index a63a80f91..3f46fb560 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h @@ -51,6 +51,14 @@ namespace AlibabaCloud std::string ipsecAuthAlg; long ipsecLifetime; }; + struct VcoHealthCheck + { + std::string enable; + std::string dip; + std::string sip; + int retry; + int interval; + }; ModifyVpnConnectionAttributeResult(); @@ -58,6 +66,7 @@ namespace AlibabaCloud ~ModifyVpnConnectionAttributeResult(); std::string getLocalSubnet()const; bool getEffectImmediately()const; + VcoHealthCheck getVcoHealthCheck()const; std::string getRemoteSubnet()const; std::string getDescription()const; std::string getCustomerGatewayId()const; @@ -73,6 +82,7 @@ namespace AlibabaCloud private: std::string localSubnet_; bool effectImmediately_; + VcoHealthCheck vcoHealthCheck_; std::string remoteSubnet_; std::string description_; std::string customerGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h new file mode 100644 index 000000000..daa000ed3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.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_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryWeightRequest : public RpcServiceRequest + { + + public: + ModifyVpnPbrRouteEntryWeightRequest(); + ~ModifyVpnPbrRouteEntryWeightRequest(); + + std::string getRouteSource()const; + void setRouteSource(const std::string& routeSource); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getWeight()const; + void setWeight(int weight); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getNewWeight()const; + void setNewWeight(int newWeight); + std::string getRouteDest()const; + void setRouteDest(const std::string& routeDest); + std::string getNextHop()const; + void setNextHop(const std::string& nextHop); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOverlayMode()const; + void setOverlayMode(const std::string& overlayMode); + + private: + std::string routeSource_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + int newWeight_; + std::string routeDest_; + std::string nextHop_; + std::string regionId_; + std::string overlayMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightResult.h new file mode 100644 index 000000000..a97ae0754 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnPbrRouteEntryWeightResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnPbrRouteEntryWeightResult : public ServiceResult + { + public: + + + ModifyVpnPbrRouteEntryWeightResult(); + explicit ModifyVpnPbrRouteEntryWeightResult(const std::string &payload); + ~ModifyVpnPbrRouteEntryWeightResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNPBRROUTEENTRYWEIGHTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h new file mode 100644 index 000000000..8dd47e632 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnRouteEntryWeightRequest : public RpcServiceRequest + { + + public: + ModifyVpnRouteEntryWeightRequest(); + ~ModifyVpnRouteEntryWeightRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getWeight()const; + void setWeight(int weight); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getNewWeight()const; + void setNewWeight(int newWeight); + std::string getRouteDest()const; + void setRouteDest(const std::string& routeDest); + std::string getNextHop()const; + void setNextHop(const std::string& nextHop); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOverlayMode()const; + void setOverlayMode(const std::string& overlayMode); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int weight_; + std::string vpnGatewayId_; + long ownerId_; + int newWeight_; + std::string routeDest_; + std::string nextHop_; + std::string regionId_; + std::string overlayMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h new file mode 100644 index 000000000..162653f6d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVpnRouteEntryWeightResult : public ServiceResult + { + public: + + + ModifyVpnRouteEntryWeightResult(); + explicit ModifyVpnRouteEntryWeightResult(const std::string &payload); + ~ModifyVpnRouteEntryWeightResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVPNROUTEENTRYWEIGHTRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h new file mode 100644 index 000000000..e422e1a0e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.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_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT PublishVpnRouteEntryRequest : public RpcServiceRequest + { + + public: + PublishVpnRouteEntryRequest(); + ~PublishVpnRouteEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getPublishVpc()const; + void setPublishVpc(bool publishVpc); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpnGatewayId()const; + void setVpnGatewayId(const std::string& vpnGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouteDest()const; + void setRouteDest(const std::string& routeDest); + std::string getNextHop()const; + void setNextHop(const std::string& nextHop); + std::string getRouteType()const; + void setRouteType(const std::string& routeType); + + private: + long resourceOwnerId_; + bool publishVpc_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; + std::string routeDest_; + std::string nextHop_; + std::string routeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryResult.h b/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryResult.h new file mode 100644 index 000000000..1433931a4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/PublishVpnRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT PublishVpnRouteEntryResult : public ServiceResult + { + public: + + + PublishVpnRouteEntryResult(); + explicit PublishVpnRouteEntryResult(const std::string &payload); + ~PublishVpnRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_PUBLISHVPNROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h b/vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h new file mode 100644 index 000000000..aa703d801 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TagResourcesRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::vector resourceId_; + std::string regionId_; + std::vector tag_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TagResourcesResult.h b/vpc/include/alibabacloud/vpc/model/TagResourcesResult.h new file mode 100644 index 000000000..e626cef16 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h b/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.h new file mode 100644 index 000000000..4e3effe68 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnTagResourcesRequest.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_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnTagResourcesRequest : public RpcServiceRequest + { + + public: + UnTagResourcesRequest(); + ~UnTagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::vector resourceId_; + std::string regionId_; + std::vector tagKey_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnTagResourcesResult.h b/vpc/include/alibabacloud/vpc/model/UnTagResourcesResult.h new file mode 100644 index 000000000..3aeb2541f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnTagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnTagResourcesResult : public ServiceResult + { + public: + + + UnTagResourcesResult(); + explicit UnTagResourcesResult(const std::string &payload); + ~UnTagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h new file mode 100644 index 000000000..570f49a6e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateNetworkAclRequest : public RpcServiceRequest + { + struct Resource + { + std::string resourceType; + std::string resourceId; + }; + + public: + UnassociateNetworkAclRequest(); + ~UnassociateNetworkAclRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::vector getResource()const; + void setResource(const std::vector& resource); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::vector resource_; + std::string resourceOwnerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclResult.h b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclResult.h new file mode 100644 index 000000000..62b123d9e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UnassociateNetworkAclResult : public ServiceResult + { + public: + + + UnassociateNetworkAclResult(); + explicit UnassociateNetworkAclResult(const std::string &payload); + ~UnassociateNetworkAclResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UNASSOCIATENETWORKACLRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h new file mode 100644 index 000000000..9347c1e22 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h @@ -0,0 +1,151 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateNetworkAclEntriesRequest : public RpcServiceRequest + { + struct EgressAclEntries + { + std::string networkAclEntryName; + std::string networkAclEntryId; + std::string policy; + std::string protocol; + std::string destinationCidrIp; + std::string port; + std::string entryType; + std::string description; + }; + struct IngressAclEntries + { + std::string networkAclEntryName; + std::string networkAclEntryId; + std::string policy; + std::string protocol; + std::string sourceCidrIp; + std::string port; + std::string entryType; + std::string description; + }; + + public: + UpdateNetworkAclEntriesRequest(); + ~UpdateNetworkAclEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getEgressAclEntries()const; + void setEgressAclEntries(const std::vector& egressAclEntries); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getNetworkAclId()const; + void setNetworkAclId(const std::string& networkAclId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + bool getUpdateIngressAclEntries()const; + void setUpdateIngressAclEntries(bool updateIngressAclEntries); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getUpdateEgressAclEntries()const; + void setUpdateEgressAclEntries(bool updateEgressAclEntries); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::vector getIngressAclEntries()const; + void setIngressAclEntries(const std::vector& ingressAclEntries); + + private: + long resourceOwnerId_; + std::vector egressAclEntries_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string callerType_; + std::string ownerIdLoginEmail_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string networkAclId_; + std::string callerUidEmail_; + bool updateIngressAclEntries_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + bool updateEgressAclEntries_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::vector ingressAclEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESREQUEST_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesResult.h b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesResult.h new file mode 100644 index 000000000..23d8a7152 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateNetworkAclEntriesResult : public ServiceResult + { + public: + + + UpdateNetworkAclEntriesResult(); + explicit UpdateNetworkAclEntriesResult(const std::string &payload); + ~UpdateNetworkAclEntriesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATENETWORKACLENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/src/VpcClient.cc b/vpc/src/VpcClient.cc index a9485ab23..741f42229 100644 --- a/vpc/src/VpcClient.cc +++ b/vpc/src/VpcClient.cc @@ -51,258 +51,6 @@ VpcClient::VpcClient(const std::string & accessKeyId, const std::string & access VpcClient::~VpcClient() {} -VpcClient::DeleteCustomerGatewayOutcome VpcClient::deleteCustomerGateway(const DeleteCustomerGatewayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteCustomerGatewayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteCustomerGatewayOutcome(DeleteCustomerGatewayResult(outcome.result())); - else - return DeleteCustomerGatewayOutcome(outcome.error()); -} - -void VpcClient::deleteCustomerGatewayAsync(const DeleteCustomerGatewayRequest& request, const DeleteCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteCustomerGateway(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteCustomerGatewayOutcomeCallable VpcClient::deleteCustomerGatewayCallable(const DeleteCustomerGatewayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteCustomerGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::UnassociateGlobalAccelerationInstanceOutcome VpcClient::unassociateGlobalAccelerationInstance(const UnassociateGlobalAccelerationInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnassociateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnassociateGlobalAccelerationInstanceOutcome(UnassociateGlobalAccelerationInstanceResult(outcome.result())); - else - return UnassociateGlobalAccelerationInstanceOutcome(outcome.error()); -} - -void VpcClient::unassociateGlobalAccelerationInstanceAsync(const UnassociateGlobalAccelerationInstanceRequest& request, const UnassociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unassociateGlobalAccelerationInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::UnassociateGlobalAccelerationInstanceOutcomeCallable VpcClient::unassociateGlobalAccelerationInstanceCallable(const UnassociateGlobalAccelerationInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unassociateGlobalAccelerationInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteIPv6TranslatorOutcome VpcClient::deleteIPv6Translator(const DeleteIPv6TranslatorRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteIPv6TranslatorOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteIPv6TranslatorOutcome(DeleteIPv6TranslatorResult(outcome.result())); - else - return DeleteIPv6TranslatorOutcome(outcome.error()); -} - -void VpcClient::deleteIPv6TranslatorAsync(const DeleteIPv6TranslatorRequest& request, const DeleteIPv6TranslatorAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteIPv6Translator(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteIPv6TranslatorOutcomeCallable VpcClient::deleteIPv6TranslatorCallable(const DeleteIPv6TranslatorRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteIPv6Translator(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeRouteTableListOutcome VpcClient::describeRouteTableList(const DescribeRouteTableListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRouteTableListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRouteTableListOutcome(DescribeRouteTableListResult(outcome.result())); - else - return DescribeRouteTableListOutcome(outcome.error()); -} - -void VpcClient::describeRouteTableListAsync(const DescribeRouteTableListRequest& request, const DescribeRouteTableListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRouteTableList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeRouteTableListOutcomeCallable VpcClient::describeRouteTableListCallable(const DescribeRouteTableListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRouteTableList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::AssociatePhysicalConnectionToVirtualBorderRouterOutcome VpcClient::associatePhysicalConnectionToVirtualBorderRouter(const AssociatePhysicalConnectionToVirtualBorderRouterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(AssociatePhysicalConnectionToVirtualBorderRouterResult(outcome.result())); - else - return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(outcome.error()); -} - -void VpcClient::associatePhysicalConnectionToVirtualBorderRouterAsync(const AssociatePhysicalConnectionToVirtualBorderRouterRequest& request, const AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, associatePhysicalConnectionToVirtualBorderRouter(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable VpcClient::associatePhysicalConnectionToVirtualBorderRouterCallable(const AssociatePhysicalConnectionToVirtualBorderRouterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->associatePhysicalConnectionToVirtualBorderRouter(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteGlobalAccelerationInstanceOutcome VpcClient::deleteGlobalAccelerationInstance(const DeleteGlobalAccelerationInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteGlobalAccelerationInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteGlobalAccelerationInstanceOutcome(DeleteGlobalAccelerationInstanceResult(outcome.result())); - else - return DeleteGlobalAccelerationInstanceOutcome(outcome.error()); -} - -void VpcClient::deleteGlobalAccelerationInstanceAsync(const DeleteGlobalAccelerationInstanceRequest& request, const DeleteGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteGlobalAccelerationInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteGlobalAccelerationInstanceOutcomeCallable VpcClient::deleteGlobalAccelerationInstanceCallable(const DeleteGlobalAccelerationInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteGlobalAccelerationInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeCustomerGatewaysOutcome VpcClient::describeCustomerGateways(const DescribeCustomerGatewaysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCustomerGatewaysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCustomerGatewaysOutcome(DescribeCustomerGatewaysResult(outcome.result())); - else - return DescribeCustomerGatewaysOutcome(outcome.error()); -} - -void VpcClient::describeCustomerGatewaysAsync(const DescribeCustomerGatewaysRequest& request, const DescribeCustomerGatewaysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCustomerGateways(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeCustomerGatewaysOutcomeCallable VpcClient::describeCustomerGatewaysCallable(const DescribeCustomerGatewaysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCustomerGateways(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeGlobalAccelerationInstancesOutcome VpcClient::describeGlobalAccelerationInstances(const DescribeGlobalAccelerationInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,42 +123,6 @@ VpcClient::ModifySslVpnClientCertOutcomeCallable VpcClient::modifySslVpnClientCe return task->get_future(); } -VpcClient::DeleteVpcOutcome VpcClient::deleteVpc(const DeleteVpcRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVpcOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVpcOutcome(DeleteVpcResult(outcome.result())); - else - return DeleteVpcOutcome(outcome.error()); -} - -void VpcClient::deleteVpcAsync(const DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVpc(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteVpcOutcomeCallable VpcClient::deleteVpcCallable(const DeleteVpcRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVpc(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeBgpNetworksOutcome VpcClient::describeBgpNetworks(const DescribeBgpNetworksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,42 +159,6 @@ VpcClient::DescribeBgpNetworksOutcomeCallable VpcClient::describeBgpNetworksCall return task->get_future(); } -VpcClient::DownloadVpnConnectionConfigOutcome VpcClient::downloadVpnConnectionConfig(const DownloadVpnConnectionConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DownloadVpnConnectionConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DownloadVpnConnectionConfigOutcome(DownloadVpnConnectionConfigResult(outcome.result())); - else - return DownloadVpnConnectionConfigOutcome(outcome.error()); -} - -void VpcClient::downloadVpnConnectionConfigAsync(const DownloadVpnConnectionConfigRequest& request, const DownloadVpnConnectionConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, downloadVpnConnectionConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DownloadVpnConnectionConfigOutcomeCallable VpcClient::downloadVpnConnectionConfigCallable(const DownloadVpnConnectionConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->downloadVpnConnectionConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::RemoveCommonBandwidthPackageIpOutcome VpcClient::removeCommonBandwidthPackageIp(const RemoveCommonBandwidthPackageIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,36 +195,36 @@ VpcClient::RemoveCommonBandwidthPackageIpOutcomeCallable VpcClient::removeCommon return task->get_future(); } -VpcClient::DescribeIPv6TranslatorsOutcome VpcClient::describeIPv6Translators(const DescribeIPv6TranslatorsRequest &request) const +VpcClient::UpdateNetworkAclEntriesOutcome VpcClient::updateNetworkAclEntries(const UpdateNetworkAclEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeIPv6TranslatorsOutcome(endpointOutcome.error()); + return UpdateNetworkAclEntriesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeIPv6TranslatorsOutcome(DescribeIPv6TranslatorsResult(outcome.result())); + return UpdateNetworkAclEntriesOutcome(UpdateNetworkAclEntriesResult(outcome.result())); else - return DescribeIPv6TranslatorsOutcome(outcome.error()); + return UpdateNetworkAclEntriesOutcome(outcome.error()); } -void VpcClient::describeIPv6TranslatorsAsync(const DescribeIPv6TranslatorsRequest& request, const DescribeIPv6TranslatorsAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::updateNetworkAclEntriesAsync(const UpdateNetworkAclEntriesRequest& request, const UpdateNetworkAclEntriesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeIPv6Translators(request), context); + handler(this, request, updateNetworkAclEntries(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::DescribeIPv6TranslatorsOutcomeCallable VpcClient::describeIPv6TranslatorsCallable(const DescribeIPv6TranslatorsRequest &request) const +VpcClient::UpdateNetworkAclEntriesOutcomeCallable VpcClient::updateNetworkAclEntriesCallable(const UpdateNetworkAclEntriesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeIPv6Translators(request); + return this->updateNetworkAclEntries(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -627,42 +303,6 @@ VpcClient::CreateNatGatewayOutcomeCallable VpcClient::createNatGatewayCallable(c return task->get_future(); } -VpcClient::DeleteVSwitchOutcome VpcClient::deleteVSwitch(const DeleteVSwitchRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVSwitchOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVSwitchOutcome(DeleteVSwitchResult(outcome.result())); - else - return DeleteVSwitchOutcome(outcome.error()); -} - -void VpcClient::deleteVSwitchAsync(const DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVSwitch(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteVSwitchOutcomeCallable VpcClient::deleteVSwitchCallable(const DeleteVSwitchRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVSwitch(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::AddIPv6TranslatorAclListEntryOutcome VpcClient::addIPv6TranslatorAclListEntry(const AddIPv6TranslatorAclListEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,42 +339,6 @@ VpcClient::AddIPv6TranslatorAclListEntryOutcomeCallable VpcClient::addIPv6Transl return task->get_future(); } -VpcClient::CreateRouteTableOutcome VpcClient::createRouteTable(const CreateRouteTableRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateRouteTableOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateRouteTableOutcome(CreateRouteTableResult(outcome.result())); - else - return CreateRouteTableOutcome(outcome.error()); -} - -void VpcClient::createRouteTableAsync(const CreateRouteTableRequest& request, const CreateRouteTableAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createRouteTable(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateRouteTableOutcomeCallable VpcClient::createRouteTableCallable(const CreateRouteTableRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createRouteTable(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::CreateHaVipOutcome VpcClient::createHaVip(const CreateHaVipRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,78 +411,6 @@ VpcClient::DeleteIpv6GatewayOutcomeCallable VpcClient::deleteIpv6GatewayCallable return task->get_future(); } -VpcClient::CreateBandwidthPackageOutcome VpcClient::createBandwidthPackage(const CreateBandwidthPackageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateBandwidthPackageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateBandwidthPackageOutcome(CreateBandwidthPackageResult(outcome.result())); - else - return CreateBandwidthPackageOutcome(outcome.error()); -} - -void VpcClient::createBandwidthPackageAsync(const CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createBandwidthPackage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateBandwidthPackageOutcomeCallable VpcClient::createBandwidthPackageCallable(const CreateBandwidthPackageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createBandwidthPackage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::RecoverVirtualBorderRouterOutcome VpcClient::recoverVirtualBorderRouter(const RecoverVirtualBorderRouterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RecoverVirtualBorderRouterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RecoverVirtualBorderRouterOutcome(RecoverVirtualBorderRouterResult(outcome.result())); - else - return RecoverVirtualBorderRouterOutcome(outcome.error()); -} - -void VpcClient::recoverVirtualBorderRouterAsync(const RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, recoverVirtualBorderRouter(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::RecoverVirtualBorderRouterOutcomeCallable VpcClient::recoverVirtualBorderRouterCallable(const RecoverVirtualBorderRouterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->recoverVirtualBorderRouter(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::AssociateEipAddressOutcome VpcClient::associateEipAddress(const AssociateEipAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,180 +519,36 @@ VpcClient::ActivateRouterInterfaceOutcomeCallable VpcClient::activateRouterInter return task->get_future(); } -VpcClient::CreateCustomerGatewayOutcome VpcClient::createCustomerGateway(const CreateCustomerGatewayRequest &request) const +VpcClient::CopyNetworkAclEntriesOutcome VpcClient::copyNetworkAclEntries(const CopyNetworkAclEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateCustomerGatewayOutcome(endpointOutcome.error()); + return CopyNetworkAclEntriesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateCustomerGatewayOutcome(CreateCustomerGatewayResult(outcome.result())); + return CopyNetworkAclEntriesOutcome(CopyNetworkAclEntriesResult(outcome.result())); else - return CreateCustomerGatewayOutcome(outcome.error()); + return CopyNetworkAclEntriesOutcome(outcome.error()); } -void VpcClient::createCustomerGatewayAsync(const CreateCustomerGatewayRequest& request, const CreateCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::copyNetworkAclEntriesAsync(const CopyNetworkAclEntriesRequest& request, const CopyNetworkAclEntriesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createCustomerGateway(request), context); + handler(this, request, copyNetworkAclEntries(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::CreateCustomerGatewayOutcomeCallable VpcClient::createCustomerGatewayCallable(const CreateCustomerGatewayRequest &request) const +VpcClient::CopyNetworkAclEntriesOutcomeCallable VpcClient::copyNetworkAclEntriesCallable(const CopyNetworkAclEntriesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createCustomerGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteSslVpnServerOutcome VpcClient::deleteSslVpnServer(const DeleteSslVpnServerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSslVpnServerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSslVpnServerOutcome(DeleteSslVpnServerResult(outcome.result())); - else - return DeleteSslVpnServerOutcome(outcome.error()); -} - -void VpcClient::deleteSslVpnServerAsync(const DeleteSslVpnServerRequest& request, const DeleteSslVpnServerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSslVpnServer(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteSslVpnServerOutcomeCallable VpcClient::deleteSslVpnServerCallable(const DeleteSslVpnServerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSslVpnServer(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteBandwidthPackageOutcome VpcClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteBandwidthPackageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteBandwidthPackageOutcome(DeleteBandwidthPackageResult(outcome.result())); - else - return DeleteBandwidthPackageOutcome(outcome.error()); -} - -void VpcClient::deleteBandwidthPackageAsync(const DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteBandwidthPackage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteBandwidthPackageOutcomeCallable VpcClient::deleteBandwidthPackageCallable(const DeleteBandwidthPackageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteBandwidthPackage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteBgpPeerOutcome VpcClient::deleteBgpPeer(const DeleteBgpPeerRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteBgpPeerOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteBgpPeerOutcome(DeleteBgpPeerResult(outcome.result())); - else - return DeleteBgpPeerOutcome(outcome.error()); -} - -void VpcClient::deleteBgpPeerAsync(const DeleteBgpPeerRequest& request, const DeleteBgpPeerAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteBgpPeer(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteBgpPeerOutcomeCallable VpcClient::deleteBgpPeerCallable(const DeleteBgpPeerRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteBgpPeer(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeIpv6GatewaysOutcome VpcClient::describeIpv6Gateways(const DescribeIpv6GatewaysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeIpv6GatewaysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeIpv6GatewaysOutcome(DescribeIpv6GatewaysResult(outcome.result())); - else - return DescribeIpv6GatewaysOutcome(outcome.error()); -} - -void VpcClient::describeIpv6GatewaysAsync(const DescribeIpv6GatewaysRequest& request, const DescribeIpv6GatewaysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeIpv6Gateways(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeIpv6GatewaysOutcomeCallable VpcClient::describeIpv6GatewaysCallable(const DescribeIpv6GatewaysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeIpv6Gateways(request); + return this->copyNetworkAclEntries(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1203,78 +591,6 @@ VpcClient::TerminateVirtualBorderRouterOutcomeCallable VpcClient::terminateVirtu return task->get_future(); } -VpcClient::DeleteNqaOutcome VpcClient::deleteNqa(const DeleteNqaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteNqaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteNqaOutcome(DeleteNqaResult(outcome.result())); - else - return DeleteNqaOutcome(outcome.error()); -} - -void VpcClient::deleteNqaAsync(const DeleteNqaRequest& request, const DeleteNqaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteNqa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteNqaOutcomeCallable VpcClient::deleteNqaCallable(const DeleteNqaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteNqa(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::RemoveIPv6TranslatorAclListEntryOutcome VpcClient::removeIPv6TranslatorAclListEntry(const RemoveIPv6TranslatorAclListEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveIPv6TranslatorAclListEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveIPv6TranslatorAclListEntryOutcome(RemoveIPv6TranslatorAclListEntryResult(outcome.result())); - else - return RemoveIPv6TranslatorAclListEntryOutcome(outcome.error()); -} - -void VpcClient::removeIPv6TranslatorAclListEntryAsync(const RemoveIPv6TranslatorAclListEntryRequest& request, const RemoveIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeIPv6TranslatorAclListEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::RemoveIPv6TranslatorAclListEntryOutcomeCallable VpcClient::removeIPv6TranslatorAclListEntryCallable(const RemoveIPv6TranslatorAclListEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeIPv6TranslatorAclListEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyRouteEntryOutcome VpcClient::modifyRouteEntry(const ModifyRouteEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,42 +699,6 @@ VpcClient::ModifyRouteTableAttributesOutcomeCallable VpcClient::modifyRouteTable return task->get_future(); } -VpcClient::ModifyForwardEntryOutcome VpcClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyForwardEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyForwardEntryOutcome(ModifyForwardEntryResult(outcome.result())); - else - return ModifyForwardEntryOutcome(outcome.error()); -} - -void VpcClient::modifyForwardEntryAsync(const ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyForwardEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyForwardEntryOutcomeCallable VpcClient::modifyForwardEntryCallable(const ModifyForwardEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyForwardEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DeletePhysicalConnectionOutcome VpcClient::deletePhysicalConnection(const DeletePhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +735,3570 @@ VpcClient::DeletePhysicalConnectionOutcomeCallable VpcClient::deletePhysicalConn return task->get_future(); } +VpcClient::PublishVpnRouteEntryOutcome VpcClient::publishVpnRouteEntry(const PublishVpnRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishVpnRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishVpnRouteEntryOutcome(PublishVpnRouteEntryResult(outcome.result())); + else + return PublishVpnRouteEntryOutcome(outcome.error()); +} + +void VpcClient::publishVpnRouteEntryAsync(const PublishVpnRouteEntryRequest& request, const PublishVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishVpnRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::PublishVpnRouteEntryOutcomeCallable VpcClient::publishVpnRouteEntryCallable(const PublishVpnRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishVpnRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateIPv6TranslatorEntryOutcome VpcClient::createIPv6TranslatorEntry(const CreateIPv6TranslatorEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIPv6TranslatorEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIPv6TranslatorEntryOutcome(CreateIPv6TranslatorEntryResult(outcome.result())); + else + return CreateIPv6TranslatorEntryOutcome(outcome.error()); +} + +void VpcClient::createIPv6TranslatorEntryAsync(const CreateIPv6TranslatorEntryRequest& request, const CreateIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIPv6TranslatorEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateIPv6TranslatorEntryOutcomeCallable VpcClient::createIPv6TranslatorEntryCallable(const CreateIPv6TranslatorEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIPv6TranslatorEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeForwardTableEntriesOutcome VpcClient::describeForwardTableEntries(const DescribeForwardTableEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeForwardTableEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeForwardTableEntriesOutcome(DescribeForwardTableEntriesResult(outcome.result())); + else + return DescribeForwardTableEntriesOutcome(outcome.error()); +} + +void VpcClient::describeForwardTableEntriesAsync(const DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeForwardTableEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeForwardTableEntriesOutcomeCallable VpcClient::describeForwardTableEntriesCallable(const DescribeForwardTableEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeForwardTableEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeSslVpnClientCertsOutcome VpcClient::describeSslVpnClientCerts(const DescribeSslVpnClientCertsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSslVpnClientCertsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSslVpnClientCertsOutcome(DescribeSslVpnClientCertsResult(outcome.result())); + else + return DescribeSslVpnClientCertsOutcome(outcome.error()); +} + +void VpcClient::describeSslVpnClientCertsAsync(const DescribeSslVpnClientCertsRequest& request, const DescribeSslVpnClientCertsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSslVpnClientCerts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeSslVpnClientCertsOutcomeCallable VpcClient::describeSslVpnClientCertsCallable(const DescribeSslVpnClientCertsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSslVpnClientCerts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyGlobalAccelerationInstanceSpecOutcome VpcClient::modifyGlobalAccelerationInstanceSpec(const ModifyGlobalAccelerationInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGlobalAccelerationInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGlobalAccelerationInstanceSpecOutcome(ModifyGlobalAccelerationInstanceSpecResult(outcome.result())); + else + return ModifyGlobalAccelerationInstanceSpecOutcome(outcome.error()); +} + +void VpcClient::modifyGlobalAccelerationInstanceSpecAsync(const ModifyGlobalAccelerationInstanceSpecRequest& request, const ModifyGlobalAccelerationInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGlobalAccelerationInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyGlobalAccelerationInstanceSpecOutcomeCallable VpcClient::modifyGlobalAccelerationInstanceSpecCallable(const ModifyGlobalAccelerationInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGlobalAccelerationInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpnSslServerLogsOutcome VpcClient::describeVpnSslServerLogs(const DescribeVpnSslServerLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnSslServerLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnSslServerLogsOutcome(DescribeVpnSslServerLogsResult(outcome.result())); + else + return DescribeVpnSslServerLogsOutcome(outcome.error()); +} + +void VpcClient::describeVpnSslServerLogsAsync(const DescribeVpnSslServerLogsRequest& request, const DescribeVpnSslServerLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnSslServerLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnSslServerLogsOutcomeCallable VpcClient::describeVpnSslServerLogsCallable(const DescribeVpnSslServerLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnSslServerLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteRouterInterfaceOutcome VpcClient::deleteRouterInterface(const DeleteRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRouterInterfaceOutcome(DeleteRouterInterfaceResult(outcome.result())); + else + return DeleteRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::deleteRouterInterfaceAsync(const DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteRouterInterfaceOutcomeCallable VpcClient::deleteRouterInterfaceCallable(const DeleteRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyFlowLogAttributeOutcome VpcClient::modifyFlowLogAttribute(const ModifyFlowLogAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFlowLogAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFlowLogAttributeOutcome(ModifyFlowLogAttributeResult(outcome.result())); + else + return ModifyFlowLogAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyFlowLogAttributeAsync(const ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFlowLogAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyFlowLogAttributeOutcomeCallable VpcClient::modifyFlowLogAttributeCallable(const ModifyFlowLogAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFlowLogAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeNqasOutcome VpcClient::describeNqas(const DescribeNqasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNqasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNqasOutcome(DescribeNqasResult(outcome.result())); + else + return DescribeNqasOutcome(outcome.error()); +} + +void VpcClient::describeNqasAsync(const DescribeNqasRequest& request, const DescribeNqasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNqas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeNqasOutcomeCallable VpcClient::describeNqasCallable(const DescribeNqasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNqas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyNatGatewayAttributeOutcome VpcClient::modifyNatGatewayAttribute(const ModifyNatGatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNatGatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNatGatewayAttributeOutcome(ModifyNatGatewayAttributeResult(outcome.result())); + else + return ModifyNatGatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyNatGatewayAttributeAsync(const ModifyNatGatewayAttributeRequest& request, const ModifyNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNatGatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyNatGatewayAttributeOutcomeCallable VpcClient::modifyNatGatewayAttributeCallable(const ModifyNatGatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNatGatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeEipMonitorDataOutcome VpcClient::describeEipMonitorData(const DescribeEipMonitorDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEipMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEipMonitorDataOutcome(DescribeEipMonitorDataResult(outcome.result())); + else + return DescribeEipMonitorDataOutcome(outcome.error()); +} + +void VpcClient::describeEipMonitorDataAsync(const DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEipMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeEipMonitorDataOutcomeCallable VpcClient::describeEipMonitorDataCallable(const DescribeEipMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEipMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateExpressCloudConnectionOutcome VpcClient::createExpressCloudConnection(const CreateExpressCloudConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateExpressCloudConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateExpressCloudConnectionOutcome(CreateExpressCloudConnectionResult(outcome.result())); + else + return CreateExpressCloudConnectionOutcome(outcome.error()); +} + +void VpcClient::createExpressCloudConnectionAsync(const CreateExpressCloudConnectionRequest& request, const CreateExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createExpressCloudConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateExpressCloudConnectionOutcomeCallable VpcClient::createExpressCloudConnectionCallable(const CreateExpressCloudConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createExpressCloudConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVpnRouteEntryWeightOutcome VpcClient::modifyVpnRouteEntryWeight(const ModifyVpnRouteEntryWeightRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpnRouteEntryWeightOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpnRouteEntryWeightOutcome(ModifyVpnRouteEntryWeightResult(outcome.result())); + else + return ModifyVpnRouteEntryWeightOutcome(outcome.error()); +} + +void VpcClient::modifyVpnRouteEntryWeightAsync(const ModifyVpnRouteEntryWeightRequest& request, const ModifyVpnRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpnRouteEntryWeight(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpnRouteEntryWeightOutcomeCallable VpcClient::modifyVpnRouteEntryWeightCallable(const ModifyVpnRouteEntryWeightRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpnRouteEntryWeight(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVpnGatewayAttributeOutcome VpcClient::modifyVpnGatewayAttribute(const ModifyVpnGatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpnGatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpnGatewayAttributeOutcome(ModifyVpnGatewayAttributeResult(outcome.result())); + else + return ModifyVpnGatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVpnGatewayAttributeAsync(const ModifyVpnGatewayAttributeRequest& request, const ModifyVpnGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpnGatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVpnGatewayAttributeOutcomeCallable VpcClient::modifyVpnGatewayAttributeCallable(const ModifyVpnGatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpnGatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AddBgpNetworkOutcome VpcClient::addBgpNetwork(const AddBgpNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddBgpNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBgpNetworkOutcome(AddBgpNetworkResult(outcome.result())); + else + return AddBgpNetworkOutcome(outcome.error()); +} + +void VpcClient::addBgpNetworkAsync(const AddBgpNetworkRequest& request, const AddBgpNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBgpNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddBgpNetworkOutcomeCallable VpcClient::addBgpNetworkCallable(const AddBgpNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBgpNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeIPv6TranslatorEntriesOutcome VpcClient::describeIPv6TranslatorEntries(const DescribeIPv6TranslatorEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIPv6TranslatorEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIPv6TranslatorEntriesOutcome(DescribeIPv6TranslatorEntriesResult(outcome.result())); + else + return DescribeIPv6TranslatorEntriesOutcome(outcome.error()); +} + +void VpcClient::describeIPv6TranslatorEntriesAsync(const DescribeIPv6TranslatorEntriesRequest& request, const DescribeIPv6TranslatorEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIPv6TranslatorEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeIPv6TranslatorEntriesOutcomeCallable VpcClient::describeIPv6TranslatorEntriesCallable(const DescribeIPv6TranslatorEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIPv6TranslatorEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ConnectRouterInterfaceOutcome VpcClient::connectRouterInterface(const ConnectRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConnectRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConnectRouterInterfaceOutcome(ConnectRouterInterfaceResult(outcome.result())); + else + return ConnectRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::connectRouterInterfaceAsync(const ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, connectRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ConnectRouterInterfaceOutcomeCallable VpcClient::connectRouterInterfaceCallable(const ConnectRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->connectRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeIpv6GatewayAttributeOutcome VpcClient::describeIpv6GatewayAttribute(const DescribeIpv6GatewayAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpv6GatewayAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpv6GatewayAttributeOutcome(DescribeIpv6GatewayAttributeResult(outcome.result())); + else + return DescribeIpv6GatewayAttributeOutcome(outcome.error()); +} + +void VpcClient::describeIpv6GatewayAttributeAsync(const DescribeIpv6GatewayAttributeRequest& request, const DescribeIpv6GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpv6GatewayAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeIpv6GatewayAttributeOutcomeCallable VpcClient::describeIpv6GatewayAttributeCallable(const DescribeIpv6GatewayAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpv6GatewayAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpnPbrRouteEntriesOutcome VpcClient::describeVpnPbrRouteEntries(const DescribeVpnPbrRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnPbrRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnPbrRouteEntriesOutcome(DescribeVpnPbrRouteEntriesResult(outcome.result())); + else + return DescribeVpnPbrRouteEntriesOutcome(outcome.error()); +} + +void VpcClient::describeVpnPbrRouteEntriesAsync(const DescribeVpnPbrRouteEntriesRequest& request, const DescribeVpnPbrRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnPbrRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnPbrRouteEntriesOutcomeCallable VpcClient::describeVpnPbrRouteEntriesCallable(const DescribeVpnPbrRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnPbrRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteSnatEntryOutcome VpcClient::deleteSnatEntry(const DeleteSnatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSnatEntryOutcome(DeleteSnatEntryResult(outcome.result())); + else + return DeleteSnatEntryOutcome(outcome.error()); +} + +void VpcClient::deleteSnatEntryAsync(const DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteSnatEntryOutcomeCallable VpcClient::deleteSnatEntryCallable(const DeleteSnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyIpv6GatewaySpecOutcome VpcClient::modifyIpv6GatewaySpec(const ModifyIpv6GatewaySpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIpv6GatewaySpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIpv6GatewaySpecOutcome(ModifyIpv6GatewaySpecResult(outcome.result())); + else + return ModifyIpv6GatewaySpecOutcome(outcome.error()); +} + +void VpcClient::modifyIpv6GatewaySpecAsync(const ModifyIpv6GatewaySpecRequest& request, const ModifyIpv6GatewaySpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIpv6GatewaySpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyIpv6GatewaySpecOutcomeCallable VpcClient::modifyIpv6GatewaySpecCallable(const ModifyIpv6GatewaySpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIpv6GatewaySpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteCommonBandwidthPackageOutcome VpcClient::deleteCommonBandwidthPackage(const DeleteCommonBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCommonBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCommonBandwidthPackageOutcome(DeleteCommonBandwidthPackageResult(outcome.result())); + else + return DeleteCommonBandwidthPackageOutcome(outcome.error()); +} + +void VpcClient::deleteCommonBandwidthPackageAsync(const DeleteCommonBandwidthPackageRequest& request, const DeleteCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCommonBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteCommonBandwidthPackageOutcomeCallable VpcClient::deleteCommonBandwidthPackageCallable(const DeleteCommonBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCommonBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateSnatEntryOutcome VpcClient::createSnatEntry(const CreateSnatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSnatEntryOutcome(CreateSnatEntryResult(outcome.result())); + else + return CreateSnatEntryOutcome(outcome.error()); +} + +void VpcClient::createSnatEntryAsync(const CreateSnatEntryRequest& request, const CreateSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateSnatEntryOutcomeCallable VpcClient::createSnatEntryCallable(const CreateSnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyPhysicalConnectionAttributeOutcome VpcClient::modifyPhysicalConnectionAttribute(const ModifyPhysicalConnectionAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPhysicalConnectionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPhysicalConnectionAttributeOutcome(ModifyPhysicalConnectionAttributeResult(outcome.result())); + else + return ModifyPhysicalConnectionAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyPhysicalConnectionAttributeAsync(const ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPhysicalConnectionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyPhysicalConnectionAttributeOutcomeCallable VpcClient::modifyPhysicalConnectionAttributeCallable(const ModifyPhysicalConnectionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPhysicalConnectionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyVSwitchAttributeOutcome VpcClient::modifyVSwitchAttribute(const ModifyVSwitchAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVSwitchAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVSwitchAttributeOutcome(ModifyVSwitchAttributeResult(outcome.result())); + else + return ModifyVSwitchAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVSwitchAttributeAsync(const ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVSwitchAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVSwitchAttributeOutcomeCallable VpcClient::modifyVSwitchAttributeCallable(const ModifyVSwitchAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVSwitchAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::EnableVpcClassicLinkOutcome VpcClient::enableVpcClassicLink(const EnableVpcClassicLinkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableVpcClassicLinkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableVpcClassicLinkOutcome(EnableVpcClassicLinkResult(outcome.result())); + else + return EnableVpcClassicLinkOutcome(outcome.error()); +} + +void VpcClient::enableVpcClassicLinkAsync(const EnableVpcClassicLinkRequest& request, const EnableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableVpcClassicLink(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::EnableVpcClassicLinkOutcomeCallable VpcClient::enableVpcClassicLinkCallable(const EnableVpcClassicLinkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableVpcClassicLink(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyIPv6TranslatorAclListEntryOutcome VpcClient::modifyIPv6TranslatorAclListEntry(const ModifyIPv6TranslatorAclListEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIPv6TranslatorAclListEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIPv6TranslatorAclListEntryOutcome(ModifyIPv6TranslatorAclListEntryResult(outcome.result())); + else + return ModifyIPv6TranslatorAclListEntryOutcome(outcome.error()); +} + +void VpcClient::modifyIPv6TranslatorAclListEntryAsync(const ModifyIPv6TranslatorAclListEntryRequest& request, const ModifyIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIPv6TranslatorAclListEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyIPv6TranslatorAclListEntryOutcomeCallable VpcClient::modifyIPv6TranslatorAclListEntryCallable(const ModifyIPv6TranslatorAclListEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIPv6TranslatorAclListEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteHaVipOutcome VpcClient::deleteHaVip(const DeleteHaVipRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteHaVipOutcome(DeleteHaVipResult(outcome.result())); + else + return DeleteHaVipOutcome(outcome.error()); +} + +void VpcClient::deleteHaVipAsync(const DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteHaVipOutcomeCallable VpcClient::deleteHaVipCallable(const DeleteHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeNetworkAclAttributesOutcome VpcClient::describeNetworkAclAttributes(const DescribeNetworkAclAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkAclAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkAclAttributesOutcome(DescribeNetworkAclAttributesResult(outcome.result())); + else + return DescribeNetworkAclAttributesOutcome(outcome.error()); +} + +void VpcClient::describeNetworkAclAttributesAsync(const DescribeNetworkAclAttributesRequest& request, const DescribeNetworkAclAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkAclAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeNetworkAclAttributesOutcomeCallable VpcClient::describeNetworkAclAttributesCallable(const DescribeNetworkAclAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkAclAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateRouteEntryOutcome VpcClient::createRouteEntry(const CreateRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouteEntryOutcome(CreateRouteEntryResult(outcome.result())); + else + return CreateRouteEntryOutcome(outcome.error()); +} + +void VpcClient::createRouteEntryAsync(const CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateRouteEntryOutcomeCallable VpcClient::createRouteEntryCallable(const CreateRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DisableVpcClassicLinkOutcome VpcClient::disableVpcClassicLink(const DisableVpcClassicLinkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableVpcClassicLinkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableVpcClassicLinkOutcome(DisableVpcClassicLinkResult(outcome.result())); + else + return DisableVpcClassicLinkOutcome(outcome.error()); +} + +void VpcClient::disableVpcClassicLinkAsync(const DisableVpcClassicLinkRequest& request, const DisableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableVpcClassicLink(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DisableVpcClassicLinkOutcomeCallable VpcClient::disableVpcClassicLinkCallable(const DisableVpcClassicLinkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableVpcClassicLink(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateRouterInterfaceOutcome VpcClient::createRouterInterface(const CreateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouterInterfaceOutcome(CreateRouterInterfaceResult(outcome.result())); + else + return CreateRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::createRouterInterfaceAsync(const CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateRouterInterfaceOutcomeCallable VpcClient::createRouterInterfaceCallable(const CreateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::TagResourcesOutcome VpcClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void VpcClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::TagResourcesOutcomeCallable VpcClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeFlowLogsOutcome VpcClient::describeFlowLogs(const DescribeFlowLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFlowLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFlowLogsOutcome(DescribeFlowLogsResult(outcome.result())); + else + return DescribeFlowLogsOutcome(outcome.error()); +} + +void VpcClient::describeFlowLogsAsync(const DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFlowLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeFlowLogsOutcomeCallable VpcClient::describeFlowLogsCallable(const DescribeFlowLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFlowLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeIPv6TranslatorAclListAttributesOutcome VpcClient::describeIPv6TranslatorAclListAttributes(const DescribeIPv6TranslatorAclListAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIPv6TranslatorAclListAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIPv6TranslatorAclListAttributesOutcome(DescribeIPv6TranslatorAclListAttributesResult(outcome.result())); + else + return DescribeIPv6TranslatorAclListAttributesOutcome(outcome.error()); +} + +void VpcClient::describeIPv6TranslatorAclListAttributesAsync(const DescribeIPv6TranslatorAclListAttributesRequest& request, const DescribeIPv6TranslatorAclListAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIPv6TranslatorAclListAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeIPv6TranslatorAclListAttributesOutcomeCallable VpcClient::describeIPv6TranslatorAclListAttributesCallable(const DescribeIPv6TranslatorAclListAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIPv6TranslatorAclListAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyNatGatewaySpecOutcome VpcClient::modifyNatGatewaySpec(const ModifyNatGatewaySpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNatGatewaySpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNatGatewaySpecOutcome(ModifyNatGatewaySpecResult(outcome.result())); + else + return ModifyNatGatewaySpecOutcome(outcome.error()); +} + +void VpcClient::modifyNatGatewaySpecAsync(const ModifyNatGatewaySpecRequest& request, const ModifyNatGatewaySpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNatGatewaySpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyNatGatewaySpecOutcomeCallable VpcClient::modifyNatGatewaySpecCallable(const ModifyNatGatewaySpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNatGatewaySpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeExpressCloudConnectionsOutcome VpcClient::describeExpressCloudConnections(const DescribeExpressCloudConnectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExpressCloudConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExpressCloudConnectionsOutcome(DescribeExpressCloudConnectionsResult(outcome.result())); + else + return DescribeExpressCloudConnectionsOutcome(outcome.error()); +} + +void VpcClient::describeExpressCloudConnectionsAsync(const DescribeExpressCloudConnectionsRequest& request, const DescribeExpressCloudConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExpressCloudConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeExpressCloudConnectionsOutcomeCallable VpcClient::describeExpressCloudConnectionsCallable(const DescribeExpressCloudConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExpressCloudConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteSslVpnClientCertOutcome VpcClient::deleteSslVpnClientCert(const DeleteSslVpnClientCertRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSslVpnClientCertOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSslVpnClientCertOutcome(DeleteSslVpnClientCertResult(outcome.result())); + else + return DeleteSslVpnClientCertOutcome(outcome.error()); +} + +void VpcClient::deleteSslVpnClientCertAsync(const DeleteSslVpnClientCertRequest& request, const DeleteSslVpnClientCertAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSslVpnClientCert(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteSslVpnClientCertOutcomeCallable VpcClient::deleteSslVpnClientCertCallable(const DeleteSslVpnClientCertRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSslVpnClientCert(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVSwitchOutcome VpcClient::createVSwitch(const CreateVSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVSwitchOutcome(CreateVSwitchResult(outcome.result())); + else + return CreateVSwitchOutcome(outcome.error()); +} + +void VpcClient::createVSwitchAsync(const CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVSwitchOutcomeCallable VpcClient::createVSwitchCallable(const CreateVSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CancelCommonBandwidthPackageIpBandwidthOutcome VpcClient::cancelCommonBandwidthPackageIpBandwidth(const CancelCommonBandwidthPackageIpBandwidthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelCommonBandwidthPackageIpBandwidthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelCommonBandwidthPackageIpBandwidthOutcome(CancelCommonBandwidthPackageIpBandwidthResult(outcome.result())); + else + return CancelCommonBandwidthPackageIpBandwidthOutcome(outcome.error()); +} + +void VpcClient::cancelCommonBandwidthPackageIpBandwidthAsync(const CancelCommonBandwidthPackageIpBandwidthRequest& request, const CancelCommonBandwidthPackageIpBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelCommonBandwidthPackageIpBandwidth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CancelCommonBandwidthPackageIpBandwidthOutcomeCallable VpcClient::cancelCommonBandwidthPackageIpBandwidthCallable(const CancelCommonBandwidthPackageIpBandwidthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelCommonBandwidthPackageIpBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyEipAddressAttributeOutcome VpcClient::modifyEipAddressAttribute(const ModifyEipAddressAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEipAddressAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEipAddressAttributeOutcome(ModifyEipAddressAttributeResult(outcome.result())); + else + return ModifyEipAddressAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyEipAddressAttributeAsync(const ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEipAddressAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyEipAddressAttributeOutcomeCallable VpcClient::modifyEipAddressAttributeCallable(const ModifyEipAddressAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEipAddressAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyIPv6TranslatorEntryOutcome VpcClient::modifyIPv6TranslatorEntry(const ModifyIPv6TranslatorEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIPv6TranslatorEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIPv6TranslatorEntryOutcome(ModifyIPv6TranslatorEntryResult(outcome.result())); + else + return ModifyIPv6TranslatorEntryOutcome(outcome.error()); +} + +void VpcClient::modifyIPv6TranslatorEntryAsync(const ModifyIPv6TranslatorEntryRequest& request, const ModifyIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIPv6TranslatorEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyIPv6TranslatorEntryOutcomeCallable VpcClient::modifyIPv6TranslatorEntryCallable(const ModifyIPv6TranslatorEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIPv6TranslatorEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribePhysicalConnectionOrderOutcome VpcClient::describePhysicalConnectionOrder(const DescribePhysicalConnectionOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhysicalConnectionOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhysicalConnectionOrderOutcome(DescribePhysicalConnectionOrderResult(outcome.result())); + else + return DescribePhysicalConnectionOrderOutcome(outcome.error()); +} + +void VpcClient::describePhysicalConnectionOrderAsync(const DescribePhysicalConnectionOrderRequest& request, const DescribePhysicalConnectionOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhysicalConnectionOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribePhysicalConnectionOrderOutcomeCallable VpcClient::describePhysicalConnectionOrderCallable(const DescribePhysicalConnectionOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhysicalConnectionOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeactiveFlowLogOutcome VpcClient::deactiveFlowLog(const DeactiveFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeactiveFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactiveFlowLogOutcome(DeactiveFlowLogResult(outcome.result())); + else + return DeactiveFlowLogOutcome(outcome.error()); +} + +void VpcClient::deactiveFlowLogAsync(const DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactiveFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeactiveFlowLogOutcomeCallable VpcClient::deactiveFlowLogCallable(const DeactiveFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactiveFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteNatGatewayOutcome VpcClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNatGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNatGatewayOutcome(DeleteNatGatewayResult(outcome.result())); + else + return DeleteNatGatewayOutcome(outcome.error()); +} + +void VpcClient::deleteNatGatewayAsync(const DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNatGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteNatGatewayOutcomeCallable VpcClient::deleteNatGatewayCallable(const DeleteNatGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNatGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ActiveFlowLogOutcome VpcClient::activeFlowLog(const ActiveFlowLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActiveFlowLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActiveFlowLogOutcome(ActiveFlowLogResult(outcome.result())); + else + return ActiveFlowLogOutcome(outcome.error()); +} + +void VpcClient::activeFlowLogAsync(const ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activeFlowLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ActiveFlowLogOutcomeCallable VpcClient::activeFlowLogCallable(const ActiveFlowLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activeFlowLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeZonesOutcome VpcClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void VpcClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeZonesOutcomeCallable VpcClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteIpv6EgressOnlyRuleOutcome VpcClient::deleteIpv6EgressOnlyRule(const DeleteIpv6EgressOnlyRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIpv6EgressOnlyRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIpv6EgressOnlyRuleOutcome(DeleteIpv6EgressOnlyRuleResult(outcome.result())); + else + return DeleteIpv6EgressOnlyRuleOutcome(outcome.error()); +} + +void VpcClient::deleteIpv6EgressOnlyRuleAsync(const DeleteIpv6EgressOnlyRuleRequest& request, const DeleteIpv6EgressOnlyRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIpv6EgressOnlyRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteIpv6EgressOnlyRuleOutcomeCallable VpcClient::deleteIpv6EgressOnlyRuleCallable(const DeleteIpv6EgressOnlyRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIpv6EgressOnlyRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeactivateRouterInterfaceOutcome VpcClient::deactivateRouterInterface(const DeactivateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeactivateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactivateRouterInterfaceOutcome(DeactivateRouterInterfaceResult(outcome.result())); + else + return DeactivateRouterInterfaceOutcome(outcome.error()); +} + +void VpcClient::deactivateRouterInterfaceAsync(const DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactivateRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeactivateRouterInterfaceOutcomeCallable VpcClient::deactivateRouterInterfaceCallable(const DeactivateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactivateRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeAccessPointsOutcome VpcClient::describeAccessPoints(const DescribeAccessPointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessPointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessPointsOutcome(DescribeAccessPointsResult(outcome.result())); + else + return DescribeAccessPointsOutcome(outcome.error()); +} + +void VpcClient::describeAccessPointsAsync(const DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessPoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeAccessPointsOutcomeCallable VpcClient::describeAccessPointsCallable(const DescribeAccessPointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessPoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifySnatEntryOutcome VpcClient::modifySnatEntry(const ModifySnatEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySnatEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySnatEntryOutcome(ModifySnatEntryResult(outcome.result())); + else + return ModifySnatEntryOutcome(outcome.error()); +} + +void VpcClient::modifySnatEntryAsync(const ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySnatEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifySnatEntryOutcomeCallable VpcClient::modifySnatEntryCallable(const ModifySnatEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySnatEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateIPv6TranslatorAclListOutcome VpcClient::createIPv6TranslatorAclList(const CreateIPv6TranslatorAclListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIPv6TranslatorAclListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIPv6TranslatorAclListOutcome(CreateIPv6TranslatorAclListResult(outcome.result())); + else + return CreateIPv6TranslatorAclListOutcome(outcome.error()); +} + +void VpcClient::createIPv6TranslatorAclListAsync(const CreateIPv6TranslatorAclListRequest& request, const CreateIPv6TranslatorAclListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIPv6TranslatorAclList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateIPv6TranslatorAclListOutcomeCallable VpcClient::createIPv6TranslatorAclListCallable(const CreateIPv6TranslatorAclListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIPv6TranslatorAclList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteBgpGroupOutcome VpcClient::deleteBgpGroup(const DeleteBgpGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBgpGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBgpGroupOutcome(DeleteBgpGroupResult(outcome.result())); + else + return DeleteBgpGroupOutcome(outcome.error()); +} + +void VpcClient::deleteBgpGroupAsync(const DeleteBgpGroupRequest& request, const DeleteBgpGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBgpGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteBgpGroupOutcomeCallable VpcClient::deleteBgpGroupCallable(const DeleteBgpGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBgpGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ReleaseEipAddressOutcome VpcClient::releaseEipAddress(const ReleaseEipAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseEipAddressOutcome(ReleaseEipAddressResult(outcome.result())); + else + return ReleaseEipAddressOutcome(outcome.error()); +} + +void VpcClient::releaseEipAddressAsync(const ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ReleaseEipAddressOutcomeCallable VpcClient::releaseEipAddressCallable(const ReleaseEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyExpressCloudConnectionBandwidthOutcome VpcClient::modifyExpressCloudConnectionBandwidth(const ModifyExpressCloudConnectionBandwidthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExpressCloudConnectionBandwidthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExpressCloudConnectionBandwidthOutcome(ModifyExpressCloudConnectionBandwidthResult(outcome.result())); + else + return ModifyExpressCloudConnectionBandwidthOutcome(outcome.error()); +} + +void VpcClient::modifyExpressCloudConnectionBandwidthAsync(const ModifyExpressCloudConnectionBandwidthRequest& request, const ModifyExpressCloudConnectionBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExpressCloudConnectionBandwidth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyExpressCloudConnectionBandwidthOutcomeCallable VpcClient::modifyExpressCloudConnectionBandwidthCallable(const ModifyExpressCloudConnectionBandwidthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExpressCloudConnectionBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateVpnPbrRouteEntryOutcome VpcClient::createVpnPbrRouteEntry(const CreateVpnPbrRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpnPbrRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpnPbrRouteEntryOutcome(CreateVpnPbrRouteEntryResult(outcome.result())); + else + return CreateVpnPbrRouteEntryOutcome(outcome.error()); +} + +void VpcClient::createVpnPbrRouteEntryAsync(const CreateVpnPbrRouteEntryRequest& request, const CreateVpnPbrRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpnPbrRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVpnPbrRouteEntryOutcomeCallable VpcClient::createVpnPbrRouteEntryCallable(const CreateVpnPbrRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpnPbrRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVSwitchesOutcome VpcClient::describeVSwitches(const DescribeVSwitchesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVSwitchesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result())); + else + return DescribeVSwitchesOutcome(outcome.error()); +} + +void VpcClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVSwitches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVSwitchesOutcomeCallable VpcClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVSwitches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyRouterInterfaceSpecOutcome VpcClient::modifyRouterInterfaceSpec(const ModifyRouterInterfaceSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRouterInterfaceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRouterInterfaceSpecOutcome(ModifyRouterInterfaceSpecResult(outcome.result())); + else + return ModifyRouterInterfaceSpecOutcome(outcome.error()); +} + +void VpcClient::modifyRouterInterfaceSpecAsync(const ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRouterInterfaceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyRouterInterfaceSpecOutcomeCallable VpcClient::modifyRouterInterfaceSpecCallable(const ModifyRouterInterfaceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRouterInterfaceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVpcsOutcome VpcClient::describeVpcs(const DescribeVpcsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcsOutcome(DescribeVpcsResult(outcome.result())); + else + return DescribeVpcsOutcome(outcome.error()); +} + +void VpcClient::describeVpcsAsync(const DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpcsOutcomeCallable VpcClient::describeVpcsCallable(const DescribeVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyRouterInterfaceAttributeOutcome VpcClient::modifyRouterInterfaceAttribute(const ModifyRouterInterfaceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRouterInterfaceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRouterInterfaceAttributeOutcome(ModifyRouterInterfaceAttributeResult(outcome.result())); + else + return ModifyRouterInterfaceAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyRouterInterfaceAttributeAsync(const ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRouterInterfaceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyRouterInterfaceAttributeOutcomeCallable VpcClient::modifyRouterInterfaceAttributeCallable(const ModifyRouterInterfaceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRouterInterfaceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcome VpcClient::describeVirtualBorderRoutersForPhysicalConnection(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(DescribeVirtualBorderRoutersForPhysicalConnectionResult(outcome.result())); + else + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::describeVirtualBorderRoutersForPhysicalConnectionAsync(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualBorderRoutersForPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable VpcClient::describeVirtualBorderRoutersForPhysicalConnectionCallable(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualBorderRoutersForPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyGlobalAccelerationInstanceAttributesOutcome VpcClient::modifyGlobalAccelerationInstanceAttributes(const ModifyGlobalAccelerationInstanceAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGlobalAccelerationInstanceAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGlobalAccelerationInstanceAttributesOutcome(ModifyGlobalAccelerationInstanceAttributesResult(outcome.result())); + else + return ModifyGlobalAccelerationInstanceAttributesOutcome(outcome.error()); +} + +void VpcClient::modifyGlobalAccelerationInstanceAttributesAsync(const ModifyGlobalAccelerationInstanceAttributesRequest& request, const ModifyGlobalAccelerationInstanceAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGlobalAccelerationInstanceAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyGlobalAccelerationInstanceAttributesOutcomeCallable VpcClient::modifyGlobalAccelerationInstanceAttributesCallable(const ModifyGlobalAccelerationInstanceAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGlobalAccelerationInstanceAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreatePhysicalConnectionNewOutcome VpcClient::createPhysicalConnectionNew(const CreatePhysicalConnectionNewRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePhysicalConnectionNewOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePhysicalConnectionNewOutcome(CreatePhysicalConnectionNewResult(outcome.result())); + else + return CreatePhysicalConnectionNewOutcome(outcome.error()); +} + +void VpcClient::createPhysicalConnectionNewAsync(const CreatePhysicalConnectionNewRequest& request, const CreatePhysicalConnectionNewAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPhysicalConnectionNew(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreatePhysicalConnectionNewOutcomeCallable VpcClient::createPhysicalConnectionNewCallable(const CreatePhysicalConnectionNewRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPhysicalConnectionNew(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyBgpGroupAttributeOutcome VpcClient::modifyBgpGroupAttribute(const ModifyBgpGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBgpGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBgpGroupAttributeOutcome(ModifyBgpGroupAttributeResult(outcome.result())); + else + return ModifyBgpGroupAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyBgpGroupAttributeAsync(const ModifyBgpGroupAttributeRequest& request, const ModifyBgpGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBgpGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyBgpGroupAttributeOutcomeCallable VpcClient::modifyBgpGroupAttributeCallable(const ModifyBgpGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBgpGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyCommonBandwidthPackageAttributeOutcome VpcClient::modifyCommonBandwidthPackageAttribute(const ModifyCommonBandwidthPackageAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCommonBandwidthPackageAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCommonBandwidthPackageAttributeOutcome(ModifyCommonBandwidthPackageAttributeResult(outcome.result())); + else + return ModifyCommonBandwidthPackageAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyCommonBandwidthPackageAttributeAsync(const ModifyCommonBandwidthPackageAttributeRequest& request, const ModifyCommonBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCommonBandwidthPackageAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyCommonBandwidthPackageAttributeOutcomeCallable VpcClient::modifyCommonBandwidthPackageAttributeCallable(const ModifyCommonBandwidthPackageAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCommonBandwidthPackageAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteForwardEntryOutcome VpcClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteForwardEntryOutcome(DeleteForwardEntryResult(outcome.result())); + else + return DeleteForwardEntryOutcome(outcome.error()); +} + +void VpcClient::deleteForwardEntryAsync(const DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteForwardEntryOutcomeCallable VpcClient::deleteForwardEntryCallable(const DeleteForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AddCommonBandwidthPackageIpOutcome VpcClient::addCommonBandwidthPackageIp(const AddCommonBandwidthPackageIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddCommonBandwidthPackageIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddCommonBandwidthPackageIpOutcome(AddCommonBandwidthPackageIpResult(outcome.result())); + else + return AddCommonBandwidthPackageIpOutcome(outcome.error()); +} + +void VpcClient::addCommonBandwidthPackageIpAsync(const AddCommonBandwidthPackageIpRequest& request, const AddCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addCommonBandwidthPackageIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AddCommonBandwidthPackageIpOutcomeCallable VpcClient::addCommonBandwidthPackageIpCallable(const AddCommonBandwidthPackageIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addCommonBandwidthPackageIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyIpv6InternetBandwidthOutcome VpcClient::modifyIpv6InternetBandwidth(const ModifyIpv6InternetBandwidthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIpv6InternetBandwidthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIpv6InternetBandwidthOutcome(ModifyIpv6InternetBandwidthResult(outcome.result())); + else + return ModifyIpv6InternetBandwidthOutcome(outcome.error()); +} + +void VpcClient::modifyIpv6InternetBandwidthAsync(const ModifyIpv6InternetBandwidthRequest& request, const ModifyIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIpv6InternetBandwidth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyIpv6InternetBandwidthOutcomeCallable VpcClient::modifyIpv6InternetBandwidthCallable(const ModifyIpv6InternetBandwidthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIpv6InternetBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeEipGatewayInfoOutcome VpcClient::describeEipGatewayInfo(const DescribeEipGatewayInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEipGatewayInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEipGatewayInfoOutcome(DescribeEipGatewayInfoResult(outcome.result())); + else + return DescribeEipGatewayInfoOutcome(outcome.error()); +} + +void VpcClient::describeEipGatewayInfoAsync(const DescribeEipGatewayInfoRequest& request, const DescribeEipGatewayInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEipGatewayInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeEipGatewayInfoOutcomeCallable VpcClient::describeEipGatewayInfoCallable(const DescribeEipGatewayInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEipGatewayInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeVirtualBorderRoutersOutcome VpcClient::describeVirtualBorderRouters(const DescribeVirtualBorderRoutersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualBorderRoutersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualBorderRoutersOutcome(DescribeVirtualBorderRoutersResult(outcome.result())); + else + return DescribeVirtualBorderRoutersOutcome(outcome.error()); +} + +void VpcClient::describeVirtualBorderRoutersAsync(const DescribeVirtualBorderRoutersRequest& request, const DescribeVirtualBorderRoutersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualBorderRouters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVirtualBorderRoutersOutcomeCallable VpcClient::describeVirtualBorderRoutersCallable(const DescribeVirtualBorderRoutersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualBorderRouters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateBgpGroupOutcome VpcClient::createBgpGroup(const CreateBgpGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBgpGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBgpGroupOutcome(CreateBgpGroupResult(outcome.result())); + else + return CreateBgpGroupOutcome(outcome.error()); +} + +void VpcClient::createBgpGroupAsync(const CreateBgpGroupRequest& request, const CreateBgpGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBgpGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateBgpGroupOutcomeCallable VpcClient::createBgpGroupCallable(const CreateBgpGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBgpGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyExpressCloudConnectionAttributeOutcome VpcClient::modifyExpressCloudConnectionAttribute(const ModifyExpressCloudConnectionAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExpressCloudConnectionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExpressCloudConnectionAttributeOutcome(ModifyExpressCloudConnectionAttributeResult(outcome.result())); + else + return ModifyExpressCloudConnectionAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyExpressCloudConnectionAttributeAsync(const ModifyExpressCloudConnectionAttributeRequest& request, const ModifyExpressCloudConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExpressCloudConnectionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyExpressCloudConnectionAttributeOutcomeCallable VpcClient::modifyExpressCloudConnectionAttributeCallable(const ModifyExpressCloudConnectionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExpressCloudConnectionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AssociateGlobalAccelerationInstanceOutcome VpcClient::associateGlobalAccelerationInstance(const AssociateGlobalAccelerationInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateGlobalAccelerationInstanceOutcome(AssociateGlobalAccelerationInstanceResult(outcome.result())); + else + return AssociateGlobalAccelerationInstanceOutcome(outcome.error()); +} + +void VpcClient::associateGlobalAccelerationInstanceAsync(const AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateGlobalAccelerationInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociateGlobalAccelerationInstanceOutcomeCallable VpcClient::associateGlobalAccelerationInstanceCallable(const AssociateGlobalAccelerationInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateGlobalAccelerationInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeSslVpnServersOutcome VpcClient::describeSslVpnServers(const DescribeSslVpnServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSslVpnServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSslVpnServersOutcome(DescribeSslVpnServersResult(outcome.result())); + else + return DescribeSslVpnServersOutcome(outcome.error()); +} + +void VpcClient::describeSslVpnServersAsync(const DescribeSslVpnServersRequest& request, const DescribeSslVpnServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSslVpnServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeSslVpnServersOutcomeCallable VpcClient::describeSslVpnServersCallable(const DescribeSslVpnServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSslVpnServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteExpressConnectOutcome VpcClient::deleteExpressConnect(const DeleteExpressConnectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteExpressConnectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteExpressConnectOutcome(DeleteExpressConnectResult(outcome.result())); + else + return DeleteExpressConnectOutcome(outcome.error()); +} + +void VpcClient::deleteExpressConnectAsync(const DeleteExpressConnectRequest& request, const DeleteExpressConnectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteExpressConnect(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteExpressConnectOutcomeCallable VpcClient::deleteExpressConnectCallable(const DeleteExpressConnectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteExpressConnect(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeSnatTableEntriesOutcome VpcClient::describeSnatTableEntries(const DescribeSnatTableEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnatTableEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnatTableEntriesOutcome(DescribeSnatTableEntriesResult(outcome.result())); + else + return DescribeSnatTableEntriesOutcome(outcome.error()); +} + +void VpcClient::describeSnatTableEntriesAsync(const DescribeSnatTableEntriesRequest& request, const DescribeSnatTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnatTableEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeSnatTableEntriesOutcomeCallable VpcClient::describeSnatTableEntriesCallable(const DescribeSnatTableEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnatTableEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::UnassociateGlobalAccelerationInstanceOutcome VpcClient::unassociateGlobalAccelerationInstance(const UnassociateGlobalAccelerationInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateGlobalAccelerationInstanceOutcome(UnassociateGlobalAccelerationInstanceResult(outcome.result())); + else + return UnassociateGlobalAccelerationInstanceOutcome(outcome.error()); +} + +void VpcClient::unassociateGlobalAccelerationInstanceAsync(const UnassociateGlobalAccelerationInstanceRequest& request, const UnassociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateGlobalAccelerationInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UnassociateGlobalAccelerationInstanceOutcomeCallable VpcClient::unassociateGlobalAccelerationInstanceCallable(const UnassociateGlobalAccelerationInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateGlobalAccelerationInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteCustomerGatewayOutcome VpcClient::deleteCustomerGateway(const DeleteCustomerGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomerGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomerGatewayOutcome(DeleteCustomerGatewayResult(outcome.result())); + else + return DeleteCustomerGatewayOutcome(outcome.error()); +} + +void VpcClient::deleteCustomerGatewayAsync(const DeleteCustomerGatewayRequest& request, const DeleteCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomerGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteCustomerGatewayOutcomeCallable VpcClient::deleteCustomerGatewayCallable(const DeleteCustomerGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomerGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteIPv6TranslatorOutcome VpcClient::deleteIPv6Translator(const DeleteIPv6TranslatorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIPv6TranslatorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIPv6TranslatorOutcome(DeleteIPv6TranslatorResult(outcome.result())); + else + return DeleteIPv6TranslatorOutcome(outcome.error()); +} + +void VpcClient::deleteIPv6TranslatorAsync(const DeleteIPv6TranslatorRequest& request, const DeleteIPv6TranslatorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIPv6Translator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteIPv6TranslatorOutcomeCallable VpcClient::deleteIPv6TranslatorCallable(const DeleteIPv6TranslatorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIPv6Translator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeRouteTableListOutcome VpcClient::describeRouteTableList(const DescribeRouteTableListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouteTableListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouteTableListOutcome(DescribeRouteTableListResult(outcome.result())); + else + return DescribeRouteTableListOutcome(outcome.error()); +} + +void VpcClient::describeRouteTableListAsync(const DescribeRouteTableListRequest& request, const DescribeRouteTableListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouteTableList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeRouteTableListOutcomeCallable VpcClient::describeRouteTableListCallable(const DescribeRouteTableListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouteTableList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::AssociatePhysicalConnectionToVirtualBorderRouterOutcome VpcClient::associatePhysicalConnectionToVirtualBorderRouter(const AssociatePhysicalConnectionToVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(AssociatePhysicalConnectionToVirtualBorderRouterResult(outcome.result())); + else + return AssociatePhysicalConnectionToVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::associatePhysicalConnectionToVirtualBorderRouterAsync(const AssociatePhysicalConnectionToVirtualBorderRouterRequest& request, const AssociatePhysicalConnectionToVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associatePhysicalConnectionToVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AssociatePhysicalConnectionToVirtualBorderRouterOutcomeCallable VpcClient::associatePhysicalConnectionToVirtualBorderRouterCallable(const AssociatePhysicalConnectionToVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associatePhysicalConnectionToVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeCustomerGatewaysOutcome VpcClient::describeCustomerGateways(const DescribeCustomerGatewaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomerGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomerGatewaysOutcome(DescribeCustomerGatewaysResult(outcome.result())); + else + return DescribeCustomerGatewaysOutcome(outcome.error()); +} + +void VpcClient::describeCustomerGatewaysAsync(const DescribeCustomerGatewaysRequest& request, const DescribeCustomerGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomerGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeCustomerGatewaysOutcomeCallable VpcClient::describeCustomerGatewaysCallable(const DescribeCustomerGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomerGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteGlobalAccelerationInstanceOutcome VpcClient::deleteGlobalAccelerationInstance(const DeleteGlobalAccelerationInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGlobalAccelerationInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGlobalAccelerationInstanceOutcome(DeleteGlobalAccelerationInstanceResult(outcome.result())); + else + return DeleteGlobalAccelerationInstanceOutcome(outcome.error()); +} + +void VpcClient::deleteGlobalAccelerationInstanceAsync(const DeleteGlobalAccelerationInstanceRequest& request, const DeleteGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGlobalAccelerationInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteGlobalAccelerationInstanceOutcomeCallable VpcClient::deleteGlobalAccelerationInstanceCallable(const DeleteGlobalAccelerationInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGlobalAccelerationInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVpcOutcome VpcClient::deleteVpc(const DeleteVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpcOutcome(DeleteVpcResult(outcome.result())); + else + return DeleteVpcOutcome(outcome.error()); +} + +void VpcClient::deleteVpcAsync(const DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpcOutcomeCallable VpcClient::deleteVpcCallable(const DeleteVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVpnRouteEntryOutcome VpcClient::deleteVpnRouteEntry(const DeleteVpnRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpnRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpnRouteEntryOutcome(DeleteVpnRouteEntryResult(outcome.result())); + else + return DeleteVpnRouteEntryOutcome(outcome.error()); +} + +void VpcClient::deleteVpnRouteEntryAsync(const DeleteVpnRouteEntryRequest& request, const DeleteVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpnRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpnRouteEntryOutcomeCallable VpcClient::deleteVpnRouteEntryCallable(const DeleteVpnRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpnRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DownloadVpnConnectionConfigOutcome VpcClient::downloadVpnConnectionConfig(const DownloadVpnConnectionConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadVpnConnectionConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadVpnConnectionConfigOutcome(DownloadVpnConnectionConfigResult(outcome.result())); + else + return DownloadVpnConnectionConfigOutcome(outcome.error()); +} + +void VpcClient::downloadVpnConnectionConfigAsync(const DownloadVpnConnectionConfigRequest& request, const DownloadVpnConnectionConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadVpnConnectionConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DownloadVpnConnectionConfigOutcomeCallable VpcClient::downloadVpnConnectionConfigCallable(const DownloadVpnConnectionConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadVpnConnectionConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeIPv6TranslatorsOutcome VpcClient::describeIPv6Translators(const DescribeIPv6TranslatorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIPv6TranslatorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIPv6TranslatorsOutcome(DescribeIPv6TranslatorsResult(outcome.result())); + else + return DescribeIPv6TranslatorsOutcome(outcome.error()); +} + +void VpcClient::describeIPv6TranslatorsAsync(const DescribeIPv6TranslatorsRequest& request, const DescribeIPv6TranslatorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIPv6Translators(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeIPv6TranslatorsOutcomeCallable VpcClient::describeIPv6TranslatorsCallable(const DescribeIPv6TranslatorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIPv6Translators(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteVSwitchOutcome VpcClient::deleteVSwitch(const DeleteVSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVSwitchOutcome(DeleteVSwitchResult(outcome.result())); + else + return DeleteVSwitchOutcome(outcome.error()); +} + +void VpcClient::deleteVSwitchAsync(const DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVSwitchOutcomeCallable VpcClient::deleteVSwitchCallable(const DeleteVSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateRouteTableOutcome VpcClient::createRouteTable(const CreateRouteTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouteTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouteTableOutcome(CreateRouteTableResult(outcome.result())); + else + return CreateRouteTableOutcome(outcome.error()); +} + +void VpcClient::createRouteTableAsync(const CreateRouteTableRequest& request, const CreateRouteTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouteTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateRouteTableOutcomeCallable VpcClient::createRouteTableCallable(const CreateRouteTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouteTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateBandwidthPackageOutcome VpcClient::createBandwidthPackage(const CreateBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBandwidthPackageOutcome(CreateBandwidthPackageResult(outcome.result())); + else + return CreateBandwidthPackageOutcome(outcome.error()); +} + +void VpcClient::createBandwidthPackageAsync(const CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateBandwidthPackageOutcomeCallable VpcClient::createBandwidthPackageCallable(const CreateBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RecoverVirtualBorderRouterOutcome VpcClient::recoverVirtualBorderRouter(const RecoverVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RecoverVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecoverVirtualBorderRouterOutcome(RecoverVirtualBorderRouterResult(outcome.result())); + else + return RecoverVirtualBorderRouterOutcome(outcome.error()); +} + +void VpcClient::recoverVirtualBorderRouterAsync(const RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recoverVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RecoverVirtualBorderRouterOutcomeCallable VpcClient::recoverVirtualBorderRouterCallable(const RecoverVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recoverVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteSslVpnServerOutcome VpcClient::deleteSslVpnServer(const DeleteSslVpnServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSslVpnServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSslVpnServerOutcome(DeleteSslVpnServerResult(outcome.result())); + else + return DeleteSslVpnServerOutcome(outcome.error()); +} + +void VpcClient::deleteSslVpnServerAsync(const DeleteSslVpnServerRequest& request, const DeleteSslVpnServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSslVpnServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteSslVpnServerOutcomeCallable VpcClient::deleteSslVpnServerCallable(const DeleteSslVpnServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSslVpnServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateCustomerGatewayOutcome VpcClient::createCustomerGateway(const CreateCustomerGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomerGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomerGatewayOutcome(CreateCustomerGatewayResult(outcome.result())); + else + return CreateCustomerGatewayOutcome(outcome.error()); +} + +void VpcClient::createCustomerGatewayAsync(const CreateCustomerGatewayRequest& request, const CreateCustomerGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomerGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateCustomerGatewayOutcomeCallable VpcClient::createCustomerGatewayCallable(const CreateCustomerGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomerGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteBandwidthPackageOutcome VpcClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBandwidthPackageOutcome(DeleteBandwidthPackageResult(outcome.result())); + else + return DeleteBandwidthPackageOutcome(outcome.error()); +} + +void VpcClient::deleteBandwidthPackageAsync(const DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteBandwidthPackageOutcomeCallable VpcClient::deleteBandwidthPackageCallable(const DeleteBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeIpv6GatewaysOutcome VpcClient::describeIpv6Gateways(const DescribeIpv6GatewaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpv6GatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpv6GatewaysOutcome(DescribeIpv6GatewaysResult(outcome.result())); + else + return DescribeIpv6GatewaysOutcome(outcome.error()); +} + +void VpcClient::describeIpv6GatewaysAsync(const DescribeIpv6GatewaysRequest& request, const DescribeIpv6GatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpv6Gateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeIpv6GatewaysOutcomeCallable VpcClient::describeIpv6GatewaysCallable(const DescribeIpv6GatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpv6Gateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteBgpPeerOutcome VpcClient::deleteBgpPeer(const DeleteBgpPeerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBgpPeerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBgpPeerOutcome(DeleteBgpPeerResult(outcome.result())); + else + return DeleteBgpPeerOutcome(outcome.error()); +} + +void VpcClient::deleteBgpPeerAsync(const DeleteBgpPeerRequest& request, const DeleteBgpPeerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBgpPeer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteBgpPeerOutcomeCallable VpcClient::deleteBgpPeerCallable(const DeleteBgpPeerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBgpPeer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteNqaOutcome VpcClient::deleteNqa(const DeleteNqaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNqaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNqaOutcome(DeleteNqaResult(outcome.result())); + else + return DeleteNqaOutcome(outcome.error()); +} + +void VpcClient::deleteNqaAsync(const DeleteNqaRequest& request, const DeleteNqaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNqa(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteNqaOutcomeCallable VpcClient::deleteNqaCallable(const DeleteNqaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNqa(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::RemoveIPv6TranslatorAclListEntryOutcome VpcClient::removeIPv6TranslatorAclListEntry(const RemoveIPv6TranslatorAclListEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveIPv6TranslatorAclListEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveIPv6TranslatorAclListEntryOutcome(RemoveIPv6TranslatorAclListEntryResult(outcome.result())); + else + return RemoveIPv6TranslatorAclListEntryOutcome(outcome.error()); +} + +void VpcClient::removeIPv6TranslatorAclListEntryAsync(const RemoveIPv6TranslatorAclListEntryRequest& request, const RemoveIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeIPv6TranslatorAclListEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::RemoveIPv6TranslatorAclListEntryOutcomeCallable VpcClient::removeIPv6TranslatorAclListEntryCallable(const RemoveIPv6TranslatorAclListEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeIPv6TranslatorAclListEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyForwardEntryOutcome VpcClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyForwardEntryOutcome(ModifyForwardEntryResult(outcome.result())); + else + return ModifyForwardEntryOutcome(outcome.error()); +} + +void VpcClient::modifyForwardEntryAsync(const ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyForwardEntryOutcomeCallable VpcClient::modifyForwardEntryCallable(const ModifyForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteFlowLogOutcome VpcClient::deleteFlowLog(const DeleteFlowLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,78 +4407,6 @@ VpcClient::CreateIPv6TranslatorOutcomeCallable VpcClient::createIPv6TranslatorCa return task->get_future(); } -VpcClient::CreateIPv6TranslatorEntryOutcome VpcClient::createIPv6TranslatorEntry(const CreateIPv6TranslatorEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateIPv6TranslatorEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateIPv6TranslatorEntryOutcome(CreateIPv6TranslatorEntryResult(outcome.result())); - else - return CreateIPv6TranslatorEntryOutcome(outcome.error()); -} - -void VpcClient::createIPv6TranslatorEntryAsync(const CreateIPv6TranslatorEntryRequest& request, const CreateIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createIPv6TranslatorEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateIPv6TranslatorEntryOutcomeCallable VpcClient::createIPv6TranslatorEntryCallable(const CreateIPv6TranslatorEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createIPv6TranslatorEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeForwardTableEntriesOutcome VpcClient::describeForwardTableEntries(const DescribeForwardTableEntriesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeForwardTableEntriesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeForwardTableEntriesOutcome(DescribeForwardTableEntriesResult(outcome.result())); - else - return DescribeForwardTableEntriesOutcome(outcome.error()); -} - -void VpcClient::describeForwardTableEntriesAsync(const DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeForwardTableEntries(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeForwardTableEntriesOutcomeCallable VpcClient::describeForwardTableEntriesCallable(const DescribeForwardTableEntriesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeForwardTableEntries(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyIpv6GatewayAttributeOutcome VpcClient::modifyIpv6GatewayAttribute(const ModifyIpv6GatewayAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,42 +4479,6 @@ VpcClient::UnassociateEipAddressOutcomeCallable VpcClient::unassociateEipAddress return task->get_future(); } -VpcClient::DescribeSslVpnClientCertsOutcome VpcClient::describeSslVpnClientCerts(const DescribeSslVpnClientCertsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSslVpnClientCertsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSslVpnClientCertsOutcome(DescribeSslVpnClientCertsResult(outcome.result())); - else - return DescribeSslVpnClientCertsOutcome(outcome.error()); -} - -void VpcClient::describeSslVpnClientCertsAsync(const DescribeSslVpnClientCertsRequest& request, const DescribeSslVpnClientCertsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSslVpnClientCerts(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeSslVpnClientCertsOutcomeCallable VpcClient::describeSslVpnClientCertsCallable(const DescribeSslVpnClientCertsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSslVpnClientCerts(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeVpnConnectionOutcome VpcClient::describeVpnConnection(const DescribeVpnConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,36 +4515,36 @@ VpcClient::DescribeVpnConnectionOutcomeCallable VpcClient::describeVpnConnection return task->get_future(); } -VpcClient::ModifyGlobalAccelerationInstanceSpecOutcome VpcClient::modifyGlobalAccelerationInstanceSpec(const ModifyGlobalAccelerationInstanceSpecRequest &request) const +VpcClient::DeleteNetworkAclOutcome VpcClient::deleteNetworkAcl(const DeleteNetworkAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyGlobalAccelerationInstanceSpecOutcome(endpointOutcome.error()); + return DeleteNetworkAclOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyGlobalAccelerationInstanceSpecOutcome(ModifyGlobalAccelerationInstanceSpecResult(outcome.result())); + return DeleteNetworkAclOutcome(DeleteNetworkAclResult(outcome.result())); else - return ModifyGlobalAccelerationInstanceSpecOutcome(outcome.error()); + return DeleteNetworkAclOutcome(outcome.error()); } -void VpcClient::modifyGlobalAccelerationInstanceSpecAsync(const ModifyGlobalAccelerationInstanceSpecRequest& request, const ModifyGlobalAccelerationInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::deleteNetworkAclAsync(const DeleteNetworkAclRequest& request, const DeleteNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyGlobalAccelerationInstanceSpec(request), context); + handler(this, request, deleteNetworkAcl(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyGlobalAccelerationInstanceSpecOutcomeCallable VpcClient::modifyGlobalAccelerationInstanceSpecCallable(const ModifyGlobalAccelerationInstanceSpecRequest &request) const +VpcClient::DeleteNetworkAclOutcomeCallable VpcClient::deleteNetworkAclCallable(const DeleteNetworkAclRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyGlobalAccelerationInstanceSpec(request); + return this->deleteNetworkAcl(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1851,42 +4587,6 @@ VpcClient::AddGlobalAccelerationInstanceIpOutcomeCallable VpcClient::addGlobalAc return task->get_future(); } -VpcClient::DeleteRouterInterfaceOutcome VpcClient::deleteRouterInterface(const DeleteRouterInterfaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteRouterInterfaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteRouterInterfaceOutcome(DeleteRouterInterfaceResult(outcome.result())); - else - return DeleteRouterInterfaceOutcome(outcome.error()); -} - -void VpcClient::deleteRouterInterfaceAsync(const DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteRouterInterface(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteRouterInterfaceOutcomeCallable VpcClient::deleteRouterInterfaceCallable(const DeleteRouterInterfaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteRouterInterface(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::CreateSslVpnServerOutcome VpcClient::createSslVpnServer(const CreateSslVpnServerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,78 +4623,6 @@ VpcClient::CreateSslVpnServerOutcomeCallable VpcClient::createSslVpnServerCallab return task->get_future(); } -VpcClient::DescribeNqasOutcome VpcClient::describeNqas(const DescribeNqasRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNqasOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNqasOutcome(DescribeNqasResult(outcome.result())); - else - return DescribeNqasOutcome(outcome.error()); -} - -void VpcClient::describeNqasAsync(const DescribeNqasRequest& request, const DescribeNqasAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNqas(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeNqasOutcomeCallable VpcClient::describeNqasCallable(const DescribeNqasRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNqas(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::ModifyFlowLogAttributeOutcome VpcClient::modifyFlowLogAttribute(const ModifyFlowLogAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyFlowLogAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyFlowLogAttributeOutcome(ModifyFlowLogAttributeResult(outcome.result())); - else - return ModifyFlowLogAttributeOutcome(outcome.error()); -} - -void VpcClient::modifyFlowLogAttributeAsync(const ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyFlowLogAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyFlowLogAttributeOutcomeCallable VpcClient::modifyFlowLogAttributeCallable(const ModifyFlowLogAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyFlowLogAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyVirtualBorderRouterAttributeOutcome VpcClient::modifyVirtualBorderRouterAttribute(const ModifyVirtualBorderRouterAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,78 +4659,6 @@ VpcClient::ModifyVirtualBorderRouterAttributeOutcomeCallable VpcClient::modifyVi return task->get_future(); } -VpcClient::ModifyNatGatewayAttributeOutcome VpcClient::modifyNatGatewayAttribute(const ModifyNatGatewayAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyNatGatewayAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyNatGatewayAttributeOutcome(ModifyNatGatewayAttributeResult(outcome.result())); - else - return ModifyNatGatewayAttributeOutcome(outcome.error()); -} - -void VpcClient::modifyNatGatewayAttributeAsync(const ModifyNatGatewayAttributeRequest& request, const ModifyNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyNatGatewayAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyNatGatewayAttributeOutcomeCallable VpcClient::modifyNatGatewayAttributeCallable(const ModifyNatGatewayAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyNatGatewayAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeEipMonitorDataOutcome VpcClient::describeEipMonitorData(const DescribeEipMonitorDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeEipMonitorDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeEipMonitorDataOutcome(DescribeEipMonitorDataResult(outcome.result())); - else - return DescribeEipMonitorDataOutcome(outcome.error()); -} - -void VpcClient::describeEipMonitorDataAsync(const DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeEipMonitorData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeEipMonitorDataOutcomeCallable VpcClient::describeEipMonitorDataCallable(const DescribeEipMonitorDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeEipMonitorData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DeleteVpnGatewayOutcome VpcClient::deleteVpnGateway(const DeleteVpnGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,42 +4731,6 @@ VpcClient::DescribeCustomerGatewayOutcomeCallable VpcClient::describeCustomerGat return task->get_future(); } -VpcClient::ModifyVpnGatewayAttributeOutcome VpcClient::modifyVpnGatewayAttribute(const ModifyVpnGatewayAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyVpnGatewayAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyVpnGatewayAttributeOutcome(ModifyVpnGatewayAttributeResult(outcome.result())); - else - return ModifyVpnGatewayAttributeOutcome(outcome.error()); -} - -void VpcClient::modifyVpnGatewayAttributeAsync(const ModifyVpnGatewayAttributeRequest& request, const ModifyVpnGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyVpnGatewayAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyVpnGatewayAttributeOutcomeCallable VpcClient::modifyVpnGatewayAttributeCallable(const ModifyVpnGatewayAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyVpnGatewayAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::AllocateIpv6InternetBandwidthOutcome VpcClient::allocateIpv6InternetBandwidth(const AllocateIpv6InternetBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,42 +4767,6 @@ VpcClient::AllocateIpv6InternetBandwidthOutcomeCallable VpcClient::allocateIpv6I return task->get_future(); } -VpcClient::AddBgpNetworkOutcome VpcClient::addBgpNetwork(const AddBgpNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddBgpNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddBgpNetworkOutcome(AddBgpNetworkResult(outcome.result())); - else - return AddBgpNetworkOutcome(outcome.error()); -} - -void VpcClient::addBgpNetworkAsync(const AddBgpNetworkRequest& request, const AddBgpNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addBgpNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::AddBgpNetworkOutcomeCallable VpcClient::addBgpNetworkCallable(const AddBgpNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addBgpNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifySslVpnServerOutcome VpcClient::modifySslVpnServer(const ModifySslVpnServerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2319,42 +4803,6 @@ VpcClient::ModifySslVpnServerOutcomeCallable VpcClient::modifySslVpnServerCallab return task->get_future(); } -VpcClient::DescribeIPv6TranslatorEntriesOutcome VpcClient::describeIPv6TranslatorEntries(const DescribeIPv6TranslatorEntriesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeIPv6TranslatorEntriesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeIPv6TranslatorEntriesOutcome(DescribeIPv6TranslatorEntriesResult(outcome.result())); - else - return DescribeIPv6TranslatorEntriesOutcome(outcome.error()); -} - -void VpcClient::describeIPv6TranslatorEntriesAsync(const DescribeIPv6TranslatorEntriesRequest& request, const DescribeIPv6TranslatorEntriesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeIPv6TranslatorEntries(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeIPv6TranslatorEntriesOutcomeCallable VpcClient::describeIPv6TranslatorEntriesCallable(const DescribeIPv6TranslatorEntriesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeIPv6TranslatorEntries(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeVpnConnectionsOutcome VpcClient::describeVpnConnections(const DescribeVpnConnectionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,42 +4875,6 @@ VpcClient::ModifyBandwidthPackageAttributeOutcomeCallable VpcClient::modifyBandw return task->get_future(); } -VpcClient::ConnectRouterInterfaceOutcome VpcClient::connectRouterInterface(const ConnectRouterInterfaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConnectRouterInterfaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConnectRouterInterfaceOutcome(ConnectRouterInterfaceResult(outcome.result())); - else - return ConnectRouterInterfaceOutcome(outcome.error()); -} - -void VpcClient::connectRouterInterfaceAsync(const ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, connectRouterInterface(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ConnectRouterInterfaceOutcomeCallable VpcClient::connectRouterInterfaceCallable(const ConnectRouterInterfaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->connectRouterInterface(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeBgpPeersOutcome VpcClient::describeBgpPeers(const DescribeBgpPeersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,108 +4911,36 @@ VpcClient::DescribeBgpPeersOutcomeCallable VpcClient::describeBgpPeersCallable(c return task->get_future(); } -VpcClient::DescribeIpv6GatewayAttributeOutcome VpcClient::describeIpv6GatewayAttribute(const DescribeIpv6GatewayAttributeRequest &request) const +VpcClient::ModifyVpnPbrRouteEntryWeightOutcome VpcClient::modifyVpnPbrRouteEntryWeight(const ModifyVpnPbrRouteEntryWeightRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeIpv6GatewayAttributeOutcome(endpointOutcome.error()); + return ModifyVpnPbrRouteEntryWeightOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeIpv6GatewayAttributeOutcome(DescribeIpv6GatewayAttributeResult(outcome.result())); + return ModifyVpnPbrRouteEntryWeightOutcome(ModifyVpnPbrRouteEntryWeightResult(outcome.result())); else - return DescribeIpv6GatewayAttributeOutcome(outcome.error()); + return ModifyVpnPbrRouteEntryWeightOutcome(outcome.error()); } -void VpcClient::describeIpv6GatewayAttributeAsync(const DescribeIpv6GatewayAttributeRequest& request, const DescribeIpv6GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::modifyVpnPbrRouteEntryWeightAsync(const ModifyVpnPbrRouteEntryWeightRequest& request, const ModifyVpnPbrRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeIpv6GatewayAttribute(request), context); + handler(this, request, modifyVpnPbrRouteEntryWeight(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::DescribeIpv6GatewayAttributeOutcomeCallable VpcClient::describeIpv6GatewayAttributeCallable(const DescribeIpv6GatewayAttributeRequest &request) const +VpcClient::ModifyVpnPbrRouteEntryWeightOutcomeCallable VpcClient::modifyVpnPbrRouteEntryWeightCallable(const ModifyVpnPbrRouteEntryWeightRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeIpv6GatewayAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteSnatEntryOutcome VpcClient::deleteSnatEntry(const DeleteSnatEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSnatEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSnatEntryOutcome(DeleteSnatEntryResult(outcome.result())); - else - return DeleteSnatEntryOutcome(outcome.error()); -} - -void VpcClient::deleteSnatEntryAsync(const DeleteSnatEntryRequest& request, const DeleteSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSnatEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteSnatEntryOutcomeCallable VpcClient::deleteSnatEntryCallable(const DeleteSnatEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSnatEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::CreateNqaOutcome VpcClient::createNqa(const CreateNqaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateNqaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateNqaOutcome(CreateNqaResult(outcome.result())); - else - return CreateNqaOutcome(outcome.error()); -} - -void VpcClient::createNqaAsync(const CreateNqaRequest& request, const CreateNqaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createNqa(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateNqaOutcomeCallable VpcClient::createNqaCallable(const CreateNqaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createNqa(request); + return this->modifyVpnPbrRouteEntryWeight(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2679,36 +5019,36 @@ VpcClient::DescribeHaVipsOutcomeCallable VpcClient::describeHaVipsCallable(const return task->get_future(); } -VpcClient::ModifyIpv6GatewaySpecOutcome VpcClient::modifyIpv6GatewaySpec(const ModifyIpv6GatewaySpecRequest &request) const +VpcClient::CreateNqaOutcome VpcClient::createNqa(const CreateNqaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyIpv6GatewaySpecOutcome(endpointOutcome.error()); + return CreateNqaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyIpv6GatewaySpecOutcome(ModifyIpv6GatewaySpecResult(outcome.result())); + return CreateNqaOutcome(CreateNqaResult(outcome.result())); else - return ModifyIpv6GatewaySpecOutcome(outcome.error()); + return CreateNqaOutcome(outcome.error()); } -void VpcClient::modifyIpv6GatewaySpecAsync(const ModifyIpv6GatewaySpecRequest& request, const ModifyIpv6GatewaySpecAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::createNqaAsync(const CreateNqaRequest& request, const CreateNqaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyIpv6GatewaySpec(request), context); + handler(this, request, createNqa(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyIpv6GatewaySpecOutcomeCallable VpcClient::modifyIpv6GatewaySpecCallable(const ModifyIpv6GatewaySpecRequest &request) const +VpcClient::CreateNqaOutcomeCallable VpcClient::createNqaCallable(const CreateNqaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyIpv6GatewaySpec(request); + return this->createNqa(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2751,6 +5091,42 @@ VpcClient::GrantInstanceToCenOutcomeCallable VpcClient::grantInstanceToCenCallab return task->get_future(); } +VpcClient::ModifyBgpPeerAttributeOutcome VpcClient::modifyBgpPeerAttribute(const ModifyBgpPeerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBgpPeerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBgpPeerAttributeOutcome(ModifyBgpPeerAttributeResult(outcome.result())); + else + return ModifyBgpPeerAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyBgpPeerAttributeAsync(const ModifyBgpPeerAttributeRequest& request, const ModifyBgpPeerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBgpPeerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyBgpPeerAttributeOutcomeCallable VpcClient::modifyBgpPeerAttributeCallable(const ModifyBgpPeerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBgpPeerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AddBandwidthPackageIpsOutcome VpcClient::addBandwidthPackageIps(const AddBandwidthPackageIpsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,114 +5163,6 @@ VpcClient::AddBandwidthPackageIpsOutcomeCallable VpcClient::addBandwidthPackageI return task->get_future(); } -VpcClient::CreateSnatEntryOutcome VpcClient::createSnatEntry(const CreateSnatEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSnatEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSnatEntryOutcome(CreateSnatEntryResult(outcome.result())); - else - return CreateSnatEntryOutcome(outcome.error()); -} - -void VpcClient::createSnatEntryAsync(const CreateSnatEntryRequest& request, const CreateSnatEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSnatEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateSnatEntryOutcomeCallable VpcClient::createSnatEntryCallable(const CreateSnatEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSnatEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteCommonBandwidthPackageOutcome VpcClient::deleteCommonBandwidthPackage(const DeleteCommonBandwidthPackageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteCommonBandwidthPackageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteCommonBandwidthPackageOutcome(DeleteCommonBandwidthPackageResult(outcome.result())); - else - return DeleteCommonBandwidthPackageOutcome(outcome.error()); -} - -void VpcClient::deleteCommonBandwidthPackageAsync(const DeleteCommonBandwidthPackageRequest& request, const DeleteCommonBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteCommonBandwidthPackage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteCommonBandwidthPackageOutcomeCallable VpcClient::deleteCommonBandwidthPackageCallable(const DeleteCommonBandwidthPackageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteCommonBandwidthPackage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::ModifyPhysicalConnectionAttributeOutcome VpcClient::modifyPhysicalConnectionAttribute(const ModifyPhysicalConnectionAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyPhysicalConnectionAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyPhysicalConnectionAttributeOutcome(ModifyPhysicalConnectionAttributeResult(outcome.result())); - else - return ModifyPhysicalConnectionAttributeOutcome(outcome.error()); -} - -void VpcClient::modifyPhysicalConnectionAttributeAsync(const ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyPhysicalConnectionAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyPhysicalConnectionAttributeOutcomeCallable VpcClient::modifyPhysicalConnectionAttributeCallable(const ModifyPhysicalConnectionAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyPhysicalConnectionAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeNatGatewaysOutcome VpcClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2931,144 +5199,36 @@ VpcClient::DescribeNatGatewaysOutcomeCallable VpcClient::describeNatGatewaysCall return task->get_future(); } -VpcClient::ModifyVSwitchAttributeOutcome VpcClient::modifyVSwitchAttribute(const ModifyVSwitchAttributeRequest &request) const +VpcClient::ModifyNetworkAclAttributesOutcome VpcClient::modifyNetworkAclAttributes(const ModifyNetworkAclAttributesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyVSwitchAttributeOutcome(endpointOutcome.error()); + return ModifyNetworkAclAttributesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyVSwitchAttributeOutcome(ModifyVSwitchAttributeResult(outcome.result())); + return ModifyNetworkAclAttributesOutcome(ModifyNetworkAclAttributesResult(outcome.result())); else - return ModifyVSwitchAttributeOutcome(outcome.error()); + return ModifyNetworkAclAttributesOutcome(outcome.error()); } -void VpcClient::modifyVSwitchAttributeAsync(const ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::modifyNetworkAclAttributesAsync(const ModifyNetworkAclAttributesRequest& request, const ModifyNetworkAclAttributesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyVSwitchAttribute(request), context); + handler(this, request, modifyNetworkAclAttributes(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyVSwitchAttributeOutcomeCallable VpcClient::modifyVSwitchAttributeCallable(const ModifyVSwitchAttributeRequest &request) const +VpcClient::ModifyNetworkAclAttributesOutcomeCallable VpcClient::modifyNetworkAclAttributesCallable(const ModifyNetworkAclAttributesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyVSwitchAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::ModifyIPv6TranslatorAclListEntryOutcome VpcClient::modifyIPv6TranslatorAclListEntry(const ModifyIPv6TranslatorAclListEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyIPv6TranslatorAclListEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyIPv6TranslatorAclListEntryOutcome(ModifyIPv6TranslatorAclListEntryResult(outcome.result())); - else - return ModifyIPv6TranslatorAclListEntryOutcome(outcome.error()); -} - -void VpcClient::modifyIPv6TranslatorAclListEntryAsync(const ModifyIPv6TranslatorAclListEntryRequest& request, const ModifyIPv6TranslatorAclListEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyIPv6TranslatorAclListEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyIPv6TranslatorAclListEntryOutcomeCallable VpcClient::modifyIPv6TranslatorAclListEntryCallable(const ModifyIPv6TranslatorAclListEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyIPv6TranslatorAclListEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::EnableVpcClassicLinkOutcome VpcClient::enableVpcClassicLink(const EnableVpcClassicLinkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EnableVpcClassicLinkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EnableVpcClassicLinkOutcome(EnableVpcClassicLinkResult(outcome.result())); - else - return EnableVpcClassicLinkOutcome(outcome.error()); -} - -void VpcClient::enableVpcClassicLinkAsync(const EnableVpcClassicLinkRequest& request, const EnableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, enableVpcClassicLink(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::EnableVpcClassicLinkOutcomeCallable VpcClient::enableVpcClassicLinkCallable(const EnableVpcClassicLinkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->enableVpcClassicLink(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteHaVipOutcome VpcClient::deleteHaVip(const DeleteHaVipRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteHaVipOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteHaVipOutcome(DeleteHaVipResult(outcome.result())); - else - return DeleteHaVipOutcome(outcome.error()); -} - -void VpcClient::deleteHaVipAsync(const DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteHaVip(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteHaVipOutcomeCallable VpcClient::deleteHaVipCallable(const DeleteHaVipRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteHaVip(request); + return this->modifyNetworkAclAttributes(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3327,36 +5487,36 @@ VpcClient::CreateIpv6GatewayOutcomeCallable VpcClient::createIpv6GatewayCallable return task->get_future(); } -VpcClient::CreateRouteEntryOutcome VpcClient::createRouteEntry(const CreateRouteEntryRequest &request) const +VpcClient::DeleteBgpNetworkOutcome VpcClient::deleteBgpNetwork(const DeleteBgpNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateRouteEntryOutcome(endpointOutcome.error()); + return DeleteBgpNetworkOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateRouteEntryOutcome(CreateRouteEntryResult(outcome.result())); + return DeleteBgpNetworkOutcome(DeleteBgpNetworkResult(outcome.result())); else - return CreateRouteEntryOutcome(outcome.error()); + return DeleteBgpNetworkOutcome(outcome.error()); } -void VpcClient::createRouteEntryAsync(const CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::deleteBgpNetworkAsync(const DeleteBgpNetworkRequest& request, const DeleteBgpNetworkAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createRouteEntry(request), context); + handler(this, request, deleteBgpNetwork(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::CreateRouteEntryOutcomeCallable VpcClient::createRouteEntryCallable(const CreateRouteEntryRequest &request) const +VpcClient::DeleteBgpNetworkOutcomeCallable VpcClient::deleteBgpNetworkCallable(const DeleteBgpNetworkRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createRouteEntry(request); + return this->deleteBgpNetwork(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3399,114 +5559,6 @@ VpcClient::DescribeBandwidthPackagesOutcomeCallable VpcClient::describeBandwidth return task->get_future(); } -VpcClient::DeleteBgpNetworkOutcome VpcClient::deleteBgpNetwork(const DeleteBgpNetworkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteBgpNetworkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteBgpNetworkOutcome(DeleteBgpNetworkResult(outcome.result())); - else - return DeleteBgpNetworkOutcome(outcome.error()); -} - -void VpcClient::deleteBgpNetworkAsync(const DeleteBgpNetworkRequest& request, const DeleteBgpNetworkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteBgpNetwork(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteBgpNetworkOutcomeCallable VpcClient::deleteBgpNetworkCallable(const DeleteBgpNetworkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteBgpNetwork(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DisableVpcClassicLinkOutcome VpcClient::disableVpcClassicLink(const DisableVpcClassicLinkRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DisableVpcClassicLinkOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DisableVpcClassicLinkOutcome(DisableVpcClassicLinkResult(outcome.result())); - else - return DisableVpcClassicLinkOutcome(outcome.error()); -} - -void VpcClient::disableVpcClassicLinkAsync(const DisableVpcClassicLinkRequest& request, const DisableVpcClassicLinkAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, disableVpcClassicLink(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DisableVpcClassicLinkOutcomeCallable VpcClient::disableVpcClassicLinkCallable(const DisableVpcClassicLinkRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->disableVpcClassicLink(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::CreateRouterInterfaceOutcome VpcClient::createRouterInterface(const CreateRouterInterfaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateRouterInterfaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateRouterInterfaceOutcome(CreateRouterInterfaceResult(outcome.result())); - else - return CreateRouterInterfaceOutcome(outcome.error()); -} - -void VpcClient::createRouterInterfaceAsync(const CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createRouterInterface(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateRouterInterfaceOutcomeCallable VpcClient::createRouterInterfaceCallable(const CreateRouterInterfaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createRouterInterface(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyVpnConnectionAttributeOutcome VpcClient::modifyVpnConnectionAttribute(const ModifyVpnConnectionAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3543,78 +5595,6 @@ VpcClient::ModifyVpnConnectionAttributeOutcomeCallable VpcClient::modifyVpnConne return task->get_future(); } -VpcClient::DescribeFlowLogsOutcome VpcClient::describeFlowLogs(const DescribeFlowLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFlowLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFlowLogsOutcome(DescribeFlowLogsResult(outcome.result())); - else - return DescribeFlowLogsOutcome(outcome.error()); -} - -void VpcClient::describeFlowLogsAsync(const DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFlowLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeFlowLogsOutcomeCallable VpcClient::describeFlowLogsCallable(const DescribeFlowLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFlowLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeIPv6TranslatorAclListAttributesOutcome VpcClient::describeIPv6TranslatorAclListAttributes(const DescribeIPv6TranslatorAclListAttributesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeIPv6TranslatorAclListAttributesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeIPv6TranslatorAclListAttributesOutcome(DescribeIPv6TranslatorAclListAttributesResult(outcome.result())); - else - return DescribeIPv6TranslatorAclListAttributesOutcome(outcome.error()); -} - -void VpcClient::describeIPv6TranslatorAclListAttributesAsync(const DescribeIPv6TranslatorAclListAttributesRequest& request, const DescribeIPv6TranslatorAclListAttributesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeIPv6TranslatorAclListAttributes(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeIPv6TranslatorAclListAttributesOutcomeCallable VpcClient::describeIPv6TranslatorAclListAttributesCallable(const DescribeIPv6TranslatorAclListAttributesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeIPv6TranslatorAclListAttributes(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::RemoveGlobalAccelerationInstanceIpOutcome VpcClient::removeGlobalAccelerationInstanceIp(const RemoveGlobalAccelerationInstanceIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3651,42 +5631,6 @@ VpcClient::RemoveGlobalAccelerationInstanceIpOutcomeCallable VpcClient::removeGl return task->get_future(); } -VpcClient::ModifyNatGatewaySpecOutcome VpcClient::modifyNatGatewaySpec(const ModifyNatGatewaySpecRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyNatGatewaySpecOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyNatGatewaySpecOutcome(ModifyNatGatewaySpecResult(outcome.result())); - else - return ModifyNatGatewaySpecOutcome(outcome.error()); -} - -void VpcClient::modifyNatGatewaySpecAsync(const ModifyNatGatewaySpecRequest& request, const ModifyNatGatewaySpecAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyNatGatewaySpec(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyNatGatewaySpecOutcomeCallable VpcClient::modifyNatGatewaySpecCallable(const ModifyNatGatewaySpecRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyNatGatewaySpec(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeBgpGroupsOutcome VpcClient::describeBgpGroups(const DescribeBgpGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3723,6 +5667,42 @@ VpcClient::DescribeBgpGroupsOutcomeCallable VpcClient::describeBgpGroupsCallable return task->get_future(); } +VpcClient::ListTagResourcesOutcome VpcClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void VpcClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListTagResourcesOutcomeCallable VpcClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeGrantRulesToCenOutcome VpcClient::describeGrantRulesToCen(const DescribeGrantRulesToCenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3867,78 +5847,6 @@ VpcClient::RemoveBandwidthPackageIpsOutcomeCallable VpcClient::removeBandwidthPa return task->get_future(); } -VpcClient::DeleteSslVpnClientCertOutcome VpcClient::deleteSslVpnClientCert(const DeleteSslVpnClientCertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSslVpnClientCertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSslVpnClientCertOutcome(DeleteSslVpnClientCertResult(outcome.result())); - else - return DeleteSslVpnClientCertOutcome(outcome.error()); -} - -void VpcClient::deleteSslVpnClientCertAsync(const DeleteSslVpnClientCertRequest& request, const DeleteSslVpnClientCertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSslVpnClientCert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteSslVpnClientCertOutcomeCallable VpcClient::deleteSslVpnClientCertCallable(const DeleteSslVpnClientCertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSslVpnClientCert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::CreateVSwitchOutcome VpcClient::createVSwitch(const CreateVSwitchRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateVSwitchOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateVSwitchOutcome(CreateVSwitchResult(outcome.result())); - else - return CreateVSwitchOutcome(outcome.error()); -} - -void VpcClient::createVSwitchAsync(const CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createVSwitch(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateVSwitchOutcomeCallable VpcClient::createVSwitchCallable(const CreateVSwitchRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createVSwitch(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyCustomerGatewayAttributeOutcome VpcClient::modifyCustomerGatewayAttribute(const ModifyCustomerGatewayAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,36 +5919,36 @@ VpcClient::EnablePhysicalConnectionOutcomeCallable VpcClient::enablePhysicalConn return task->get_future(); } -VpcClient::ModifyEipAddressAttributeOutcome VpcClient::modifyEipAddressAttribute(const ModifyEipAddressAttributeRequest &request) const +VpcClient::CreateVpnRouteEntryOutcome VpcClient::createVpnRouteEntry(const CreateVpnRouteEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyEipAddressAttributeOutcome(endpointOutcome.error()); + return CreateVpnRouteEntryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyEipAddressAttributeOutcome(ModifyEipAddressAttributeResult(outcome.result())); + return CreateVpnRouteEntryOutcome(CreateVpnRouteEntryResult(outcome.result())); else - return ModifyEipAddressAttributeOutcome(outcome.error()); + return CreateVpnRouteEntryOutcome(outcome.error()); } -void VpcClient::modifyEipAddressAttributeAsync(const ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::createVpnRouteEntryAsync(const CreateVpnRouteEntryRequest& request, const CreateVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyEipAddressAttribute(request), context); + handler(this, request, createVpnRouteEntry(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyEipAddressAttributeOutcomeCallable VpcClient::modifyEipAddressAttributeCallable(const ModifyEipAddressAttributeRequest &request) const +VpcClient::CreateVpnRouteEntryOutcomeCallable VpcClient::createVpnRouteEntryCallable(const CreateVpnRouteEntryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyEipAddressAttribute(request); + return this->createVpnRouteEntry(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4119,42 +6027,6 @@ VpcClient::DescribeVSwitchAttributesOutcomeCallable VpcClient::describeVSwitchAt return task->get_future(); } -VpcClient::ModifyIPv6TranslatorEntryOutcome VpcClient::modifyIPv6TranslatorEntry(const ModifyIPv6TranslatorEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyIPv6TranslatorEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyIPv6TranslatorEntryOutcome(ModifyIPv6TranslatorEntryResult(outcome.result())); - else - return ModifyIPv6TranslatorEntryOutcome(outcome.error()); -} - -void VpcClient::modifyIPv6TranslatorEntryAsync(const ModifyIPv6TranslatorEntryRequest& request, const ModifyIPv6TranslatorEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyIPv6TranslatorEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyIPv6TranslatorEntryOutcomeCallable VpcClient::modifyIPv6TranslatorEntryCallable(const ModifyIPv6TranslatorEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyIPv6TranslatorEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::CreateCommonBandwidthPackageOutcome VpcClient::createCommonBandwidthPackage(const CreateCommonBandwidthPackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4191,78 +6063,6 @@ VpcClient::CreateCommonBandwidthPackageOutcomeCallable VpcClient::createCommonBa return task->get_future(); } -VpcClient::DescribePhysicalConnectionOrderOutcome VpcClient::describePhysicalConnectionOrder(const DescribePhysicalConnectionOrderRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePhysicalConnectionOrderOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePhysicalConnectionOrderOutcome(DescribePhysicalConnectionOrderResult(outcome.result())); - else - return DescribePhysicalConnectionOrderOutcome(outcome.error()); -} - -void VpcClient::describePhysicalConnectionOrderAsync(const DescribePhysicalConnectionOrderRequest& request, const DescribePhysicalConnectionOrderAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePhysicalConnectionOrder(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribePhysicalConnectionOrderOutcomeCallable VpcClient::describePhysicalConnectionOrderCallable(const DescribePhysicalConnectionOrderRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePhysicalConnectionOrder(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::CreateForwardEntryOutcome VpcClient::createForwardEntry(const CreateForwardEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateForwardEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateForwardEntryOutcome(CreateForwardEntryResult(outcome.result())); - else - return CreateForwardEntryOutcome(outcome.error()); -} - -void VpcClient::createForwardEntryAsync(const CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createForwardEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateForwardEntryOutcomeCallable VpcClient::createForwardEntryCallable(const CreateForwardEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createForwardEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeRouterInterfacesOutcome VpcClient::describeRouterInterfaces(const DescribeRouterInterfacesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4299,36 +6099,36 @@ VpcClient::DescribeRouterInterfacesOutcomeCallable VpcClient::describeRouterInte return task->get_future(); } -VpcClient::DeactiveFlowLogOutcome VpcClient::deactiveFlowLog(const DeactiveFlowLogRequest &request) const +VpcClient::CreateForwardEntryOutcome VpcClient::createForwardEntry(const CreateForwardEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeactiveFlowLogOutcome(endpointOutcome.error()); + return CreateForwardEntryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeactiveFlowLogOutcome(DeactiveFlowLogResult(outcome.result())); + return CreateForwardEntryOutcome(CreateForwardEntryResult(outcome.result())); else - return DeactiveFlowLogOutcome(outcome.error()); + return CreateForwardEntryOutcome(outcome.error()); } -void VpcClient::deactiveFlowLogAsync(const DeactiveFlowLogRequest& request, const DeactiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::createForwardEntryAsync(const CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deactiveFlowLog(request), context); + handler(this, request, createForwardEntry(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::DeactiveFlowLogOutcomeCallable VpcClient::deactiveFlowLogCallable(const DeactiveFlowLogRequest &request) const +VpcClient::CreateForwardEntryOutcomeCallable VpcClient::createForwardEntryCallable(const CreateForwardEntryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deactiveFlowLog(request); + return this->createForwardEntry(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4371,216 +6171,36 @@ VpcClient::CreateFlowLogOutcomeCallable VpcClient::createFlowLogCallable(const C return task->get_future(); } -VpcClient::DeleteNatGatewayOutcome VpcClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const +VpcClient::UnassociateNetworkAclOutcome VpcClient::unassociateNetworkAcl(const UnassociateNetworkAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteNatGatewayOutcome(endpointOutcome.error()); + return UnassociateNetworkAclOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteNatGatewayOutcome(DeleteNatGatewayResult(outcome.result())); + return UnassociateNetworkAclOutcome(UnassociateNetworkAclResult(outcome.result())); else - return DeleteNatGatewayOutcome(outcome.error()); + return UnassociateNetworkAclOutcome(outcome.error()); } -void VpcClient::deleteNatGatewayAsync(const DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::unassociateNetworkAclAsync(const UnassociateNetworkAclRequest& request, const UnassociateNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteNatGateway(request), context); + handler(this, request, unassociateNetworkAcl(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::DeleteNatGatewayOutcomeCallable VpcClient::deleteNatGatewayCallable(const DeleteNatGatewayRequest &request) const +VpcClient::UnassociateNetworkAclOutcomeCallable VpcClient::unassociateNetworkAclCallable(const UnassociateNetworkAclRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteNatGateway(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::ActiveFlowLogOutcome VpcClient::activeFlowLog(const ActiveFlowLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ActiveFlowLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ActiveFlowLogOutcome(ActiveFlowLogResult(outcome.result())); - else - return ActiveFlowLogOutcome(outcome.error()); -} - -void VpcClient::activeFlowLogAsync(const ActiveFlowLogRequest& request, const ActiveFlowLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, activeFlowLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ActiveFlowLogOutcomeCallable VpcClient::activeFlowLogCallable(const ActiveFlowLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->activeFlowLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeZonesOutcome VpcClient::describeZones(const DescribeZonesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeZonesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); - else - return DescribeZonesOutcome(outcome.error()); -} - -void VpcClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeZones(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeZonesOutcomeCallable VpcClient::describeZonesCallable(const DescribeZonesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeZones(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeleteIpv6EgressOnlyRuleOutcome VpcClient::deleteIpv6EgressOnlyRule(const DeleteIpv6EgressOnlyRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteIpv6EgressOnlyRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteIpv6EgressOnlyRuleOutcome(DeleteIpv6EgressOnlyRuleResult(outcome.result())); - else - return DeleteIpv6EgressOnlyRuleOutcome(outcome.error()); -} - -void VpcClient::deleteIpv6EgressOnlyRuleAsync(const DeleteIpv6EgressOnlyRuleRequest& request, const DeleteIpv6EgressOnlyRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteIpv6EgressOnlyRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteIpv6EgressOnlyRuleOutcomeCallable VpcClient::deleteIpv6EgressOnlyRuleCallable(const DeleteIpv6EgressOnlyRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteIpv6EgressOnlyRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DeactivateRouterInterfaceOutcome VpcClient::deactivateRouterInterface(const DeactivateRouterInterfaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeactivateRouterInterfaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeactivateRouterInterfaceOutcome(DeactivateRouterInterfaceResult(outcome.result())); - else - return DeactivateRouterInterfaceOutcome(outcome.error()); -} - -void VpcClient::deactivateRouterInterfaceAsync(const DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deactivateRouterInterface(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeactivateRouterInterfaceOutcomeCallable VpcClient::deactivateRouterInterfaceCallable(const DeactivateRouterInterfaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deactivateRouterInterface(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::ModifySnatEntryOutcome VpcClient::modifySnatEntry(const ModifySnatEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySnatEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySnatEntryOutcome(ModifySnatEntryResult(outcome.result())); - else - return ModifySnatEntryOutcome(outcome.error()); -} - -void VpcClient::modifySnatEntryAsync(const ModifySnatEntryRequest& request, const ModifySnatEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySnatEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifySnatEntryOutcomeCallable VpcClient::modifySnatEntryCallable(const ModifySnatEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySnatEntry(request); + return this->unassociateNetworkAcl(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4623,42 +6243,6 @@ VpcClient::DescribeIPv6TranslatorAclListsOutcomeCallable VpcClient::describeIPv6 return task->get_future(); } -VpcClient::DescribeAccessPointsOutcome VpcClient::describeAccessPoints(const DescribeAccessPointsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAccessPointsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAccessPointsOutcome(DescribeAccessPointsResult(outcome.result())); - else - return DescribeAccessPointsOutcome(outcome.error()); -} - -void VpcClient::describeAccessPointsAsync(const DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAccessPoints(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeAccessPointsOutcomeCallable VpcClient::describeAccessPointsCallable(const DescribeAccessPointsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAccessPoints(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::CreateSslVpnClientCertOutcome VpcClient::createSslVpnClientCert(const CreateSslVpnClientCertRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4695,42 +6279,6 @@ VpcClient::CreateSslVpnClientCertOutcomeCallable VpcClient::createSslVpnClientCe return task->get_future(); } -VpcClient::CreateIPv6TranslatorAclListOutcome VpcClient::createIPv6TranslatorAclList(const CreateIPv6TranslatorAclListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateIPv6TranslatorAclListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateIPv6TranslatorAclListOutcome(CreateIPv6TranslatorAclListResult(outcome.result())); - else - return CreateIPv6TranslatorAclListOutcome(outcome.error()); -} - -void VpcClient::createIPv6TranslatorAclListAsync(const CreateIPv6TranslatorAclListRequest& request, const CreateIPv6TranslatorAclListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createIPv6TranslatorAclList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateIPv6TranslatorAclListOutcomeCallable VpcClient::createIPv6TranslatorAclListCallable(const CreateIPv6TranslatorAclListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createIPv6TranslatorAclList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::CreateVirtualBorderRouterOutcome VpcClient::createVirtualBorderRouter(const CreateVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4767,36 +6315,36 @@ VpcClient::CreateVirtualBorderRouterOutcomeCallable VpcClient::createVirtualBord return task->get_future(); } -VpcClient::DeleteBgpGroupOutcome VpcClient::deleteBgpGroup(const DeleteBgpGroupRequest &request) const +VpcClient::DescribeNetworkAclsOutcome VpcClient::describeNetworkAcls(const DescribeNetworkAclsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteBgpGroupOutcome(endpointOutcome.error()); + return DescribeNetworkAclsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteBgpGroupOutcome(DeleteBgpGroupResult(outcome.result())); + return DescribeNetworkAclsOutcome(DescribeNetworkAclsResult(outcome.result())); else - return DeleteBgpGroupOutcome(outcome.error()); + return DescribeNetworkAclsOutcome(outcome.error()); } -void VpcClient::deleteBgpGroupAsync(const DeleteBgpGroupRequest& request, const DeleteBgpGroupAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::describeNetworkAclsAsync(const DescribeNetworkAclsRequest& request, const DescribeNetworkAclsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteBgpGroup(request), context); + handler(this, request, describeNetworkAcls(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::DeleteBgpGroupOutcomeCallable VpcClient::deleteBgpGroupCallable(const DeleteBgpGroupRequest &request) const +VpcClient::DescribeNetworkAclsOutcomeCallable VpcClient::describeNetworkAclsCallable(const DescribeNetworkAclsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteBgpGroup(request); + return this->describeNetworkAcls(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4875,36 +6423,108 @@ VpcClient::DeleteIPv6TranslatorEntryOutcomeCallable VpcClient::deleteIPv6Transla return task->get_future(); } -VpcClient::ReleaseEipAddressOutcome VpcClient::releaseEipAddress(const ReleaseEipAddressRequest &request) const +VpcClient::UnTagResourcesOutcome VpcClient::unTagResources(const UnTagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ReleaseEipAddressOutcome(endpointOutcome.error()); + return UnTagResourcesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ReleaseEipAddressOutcome(ReleaseEipAddressResult(outcome.result())); + return UnTagResourcesOutcome(UnTagResourcesResult(outcome.result())); else - return ReleaseEipAddressOutcome(outcome.error()); + return UnTagResourcesOutcome(outcome.error()); } -void VpcClient::releaseEipAddressAsync(const ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::unTagResourcesAsync(const UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, releaseEipAddress(request), context); + handler(this, request, unTagResources(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ReleaseEipAddressOutcomeCallable VpcClient::releaseEipAddressCallable(const ReleaseEipAddressRequest &request) const +VpcClient::UnTagResourcesOutcomeCallable VpcClient::unTagResourcesCallable(const UnTagResourcesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->releaseEipAddress(request); + return this->unTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateNetworkAclOutcome VpcClient::createNetworkAcl(const CreateNetworkAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkAclOutcome(CreateNetworkAclResult(outcome.result())); + else + return CreateNetworkAclOutcome(outcome.error()); +} + +void VpcClient::createNetworkAclAsync(const CreateNetworkAclRequest& request, const CreateNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateNetworkAclOutcomeCallable VpcClient::createNetworkAclCallable(const CreateNetworkAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreatePhysicalConnectionSetupOrderOutcome VpcClient::createPhysicalConnectionSetupOrder(const CreatePhysicalConnectionSetupOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePhysicalConnectionSetupOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePhysicalConnectionSetupOrderOutcome(CreatePhysicalConnectionSetupOrderResult(outcome.result())); + else + return CreatePhysicalConnectionSetupOrderOutcome(outcome.error()); +} + +void VpcClient::createPhysicalConnectionSetupOrderAsync(const CreatePhysicalConnectionSetupOrderRequest& request, const CreatePhysicalConnectionSetupOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPhysicalConnectionSetupOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreatePhysicalConnectionSetupOrderOutcomeCallable VpcClient::createPhysicalConnectionSetupOrderCallable(const CreatePhysicalConnectionSetupOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPhysicalConnectionSetupOrder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -4983,108 +6603,36 @@ VpcClient::DescribeRouteTablesOutcomeCallable VpcClient::describeRouteTablesCall return task->get_future(); } -VpcClient::DescribeVSwitchesOutcome VpcClient::describeVSwitches(const DescribeVSwitchesRequest &request) const +VpcClient::DescribeRouteEntryListOutcome VpcClient::describeRouteEntryList(const DescribeRouteEntryListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeVSwitchesOutcome(endpointOutcome.error()); + return DescribeRouteEntryListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result())); + return DescribeRouteEntryListOutcome(DescribeRouteEntryListResult(outcome.result())); else - return DescribeVSwitchesOutcome(outcome.error()); + return DescribeRouteEntryListOutcome(outcome.error()); } -void VpcClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::describeRouteEntryListAsync(const DescribeRouteEntryListRequest& request, const DescribeRouteEntryListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeVSwitches(request), context); + handler(this, request, describeRouteEntryList(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::DescribeVSwitchesOutcomeCallable VpcClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const +VpcClient::DescribeRouteEntryListOutcomeCallable VpcClient::describeRouteEntryListCallable(const DescribeRouteEntryListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeVSwitches(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::ModifyRouterInterfaceSpecOutcome VpcClient::modifyRouterInterfaceSpec(const ModifyRouterInterfaceSpecRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyRouterInterfaceSpecOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyRouterInterfaceSpecOutcome(ModifyRouterInterfaceSpecResult(outcome.result())); - else - return ModifyRouterInterfaceSpecOutcome(outcome.error()); -} - -void VpcClient::modifyRouterInterfaceSpecAsync(const ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyRouterInterfaceSpec(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyRouterInterfaceSpecOutcomeCallable VpcClient::modifyRouterInterfaceSpecCallable(const ModifyRouterInterfaceSpecRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyRouterInterfaceSpec(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeVpcsOutcome VpcClient::describeVpcs(const DescribeVpcsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeVpcsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeVpcsOutcome(DescribeVpcsResult(outcome.result())); - else - return DescribeVpcsOutcome(outcome.error()); -} - -void VpcClient::describeVpcsAsync(const DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeVpcs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeVpcsOutcomeCallable VpcClient::describeVpcsCallable(const DescribeVpcsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeVpcs(request); + return this->describeRouteEntryList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5127,6 +6675,42 @@ VpcClient::CreatePhysicalConnectionOutcomeCallable VpcClient::createPhysicalConn return task->get_future(); } +VpcClient::ApplyPhysicalConnectionLOAOutcome VpcClient::applyPhysicalConnectionLOA(const ApplyPhysicalConnectionLOARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApplyPhysicalConnectionLOAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplyPhysicalConnectionLOAOutcome(ApplyPhysicalConnectionLOAResult(outcome.result())); + else + return ApplyPhysicalConnectionLOAOutcome(outcome.error()); +} + +void VpcClient::applyPhysicalConnectionLOAAsync(const ApplyPhysicalConnectionLOARequest& request, const ApplyPhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applyPhysicalConnectionLOA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ApplyPhysicalConnectionLOAOutcomeCallable VpcClient::applyPhysicalConnectionLOACallable(const ApplyPhysicalConnectionLOARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applyPhysicalConnectionLOA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UnassociatePhysicalConnectionFromVirtualBorderRouterOutcome VpcClient::unassociatePhysicalConnectionFromVirtualBorderRouter(const UnassociatePhysicalConnectionFromVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5163,6 +6747,42 @@ VpcClient::UnassociatePhysicalConnectionFromVirtualBorderRouterOutcomeCallable V return task->get_future(); } +VpcClient::DeleteVpnPbrRouteEntryOutcome VpcClient::deleteVpnPbrRouteEntry(const DeleteVpnPbrRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpnPbrRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpnPbrRouteEntryOutcome(DeleteVpnPbrRouteEntryResult(outcome.result())); + else + return DeleteVpnPbrRouteEntryOutcome(outcome.error()); +} + +void VpcClient::deleteVpnPbrRouteEntryAsync(const DeleteVpnPbrRouteEntryRequest& request, const DeleteVpnPbrRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpnPbrRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVpnPbrRouteEntryOutcomeCallable VpcClient::deleteVpnPbrRouteEntryCallable(const DeleteVpnPbrRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpnPbrRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeServerRelatedGlobalAccelerationInstancesOutcome VpcClient::describeServerRelatedGlobalAccelerationInstances(const DescribeServerRelatedGlobalAccelerationInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5235,42 +6855,6 @@ VpcClient::AssociateHaVipOutcomeCallable VpcClient::associateHaVipCallable(const return task->get_future(); } -VpcClient::ModifyRouterInterfaceAttributeOutcome VpcClient::modifyRouterInterfaceAttribute(const ModifyRouterInterfaceAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyRouterInterfaceAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyRouterInterfaceAttributeOutcome(ModifyRouterInterfaceAttributeResult(outcome.result())); - else - return ModifyRouterInterfaceAttributeOutcome(outcome.error()); -} - -void VpcClient::modifyRouterInterfaceAttributeAsync(const ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyRouterInterfaceAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyRouterInterfaceAttributeOutcomeCallable VpcClient::modifyRouterInterfaceAttributeCallable(const ModifyRouterInterfaceAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyRouterInterfaceAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::AssociateRouteTableOutcome VpcClient::associateRouteTable(const AssociateRouteTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5343,72 +6927,72 @@ VpcClient::ModifyIPv6TranslatorAclAttributeOutcomeCallable VpcClient::modifyIPv6 return task->get_future(); } -VpcClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcome VpcClient::describeVirtualBorderRoutersForPhysicalConnection(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +VpcClient::DeleteVirtualBorderRouterOutcome VpcClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(endpointOutcome.error()); + return DeleteVirtualBorderRouterOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(DescribeVirtualBorderRoutersForPhysicalConnectionResult(outcome.result())); + return DeleteVirtualBorderRouterOutcome(DeleteVirtualBorderRouterResult(outcome.result())); else - return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(outcome.error()); + return DeleteVirtualBorderRouterOutcome(outcome.error()); } -void VpcClient::describeVirtualBorderRoutersForPhysicalConnectionAsync(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::deleteVirtualBorderRouterAsync(const DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeVirtualBorderRoutersForPhysicalConnection(request), context); + handler(this, request, deleteVirtualBorderRouter(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable VpcClient::describeVirtualBorderRoutersForPhysicalConnectionCallable(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +VpcClient::DeleteVirtualBorderRouterOutcomeCallable VpcClient::deleteVirtualBorderRouterCallable(const DeleteVirtualBorderRouterRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeVirtualBorderRoutersForPhysicalConnection(request); + return this->deleteVirtualBorderRouter(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -VpcClient::ModifyGlobalAccelerationInstanceAttributesOutcome VpcClient::modifyGlobalAccelerationInstanceAttributes(const ModifyGlobalAccelerationInstanceAttributesRequest &request) const +VpcClient::AssociateNetworkAclOutcome VpcClient::associateNetworkAcl(const AssociateNetworkAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyGlobalAccelerationInstanceAttributesOutcome(endpointOutcome.error()); + return AssociateNetworkAclOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyGlobalAccelerationInstanceAttributesOutcome(ModifyGlobalAccelerationInstanceAttributesResult(outcome.result())); + return AssociateNetworkAclOutcome(AssociateNetworkAclResult(outcome.result())); else - return ModifyGlobalAccelerationInstanceAttributesOutcome(outcome.error()); + return AssociateNetworkAclOutcome(outcome.error()); } -void VpcClient::modifyGlobalAccelerationInstanceAttributesAsync(const ModifyGlobalAccelerationInstanceAttributesRequest& request, const ModifyGlobalAccelerationInstanceAttributesAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::associateNetworkAclAsync(const AssociateNetworkAclRequest& request, const AssociateNetworkAclAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyGlobalAccelerationInstanceAttributes(request), context); + handler(this, request, associateNetworkAcl(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyGlobalAccelerationInstanceAttributesOutcomeCallable VpcClient::modifyGlobalAccelerationInstanceAttributesCallable(const ModifyGlobalAccelerationInstanceAttributesRequest &request) const +VpcClient::AssociateNetworkAclOutcomeCallable VpcClient::associateNetworkAclCallable(const AssociateNetworkAclRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyGlobalAccelerationInstanceAttributes(request); + return this->associateNetworkAcl(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5451,42 +7035,6 @@ VpcClient::DeleteRouteEntryOutcomeCallable VpcClient::deleteRouteEntryCallable(c return task->get_future(); } -VpcClient::DeleteVirtualBorderRouterOutcome VpcClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteVirtualBorderRouterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteVirtualBorderRouterOutcome(DeleteVirtualBorderRouterResult(outcome.result())); - else - return DeleteVirtualBorderRouterOutcome(outcome.error()); -} - -void VpcClient::deleteVirtualBorderRouterAsync(const DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteVirtualBorderRouter(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteVirtualBorderRouterOutcomeCallable VpcClient::deleteVirtualBorderRouterCallable(const DeleteVirtualBorderRouterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteVirtualBorderRouter(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyCommonBandwidthPackageSpecOutcome VpcClient::modifyCommonBandwidthPackageSpec(const ModifyCommonBandwidthPackageSpecRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5523,42 +7071,6 @@ VpcClient::ModifyCommonBandwidthPackageSpecOutcomeCallable VpcClient::modifyComm return task->get_future(); } -VpcClient::CreatePhysicalConnectionNewOutcome VpcClient::createPhysicalConnectionNew(const CreatePhysicalConnectionNewRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreatePhysicalConnectionNewOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreatePhysicalConnectionNewOutcome(CreatePhysicalConnectionNewResult(outcome.result())); - else - return CreatePhysicalConnectionNewOutcome(outcome.error()); -} - -void VpcClient::createPhysicalConnectionNewAsync(const CreatePhysicalConnectionNewRequest& request, const CreatePhysicalConnectionNewAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createPhysicalConnectionNew(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreatePhysicalConnectionNewOutcomeCallable VpcClient::createPhysicalConnectionNewCallable(const CreatePhysicalConnectionNewRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createPhysicalConnectionNew(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::TerminatePhysicalConnectionOutcome VpcClient::terminatePhysicalConnection(const TerminatePhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5631,6 +7143,42 @@ VpcClient::DescribeIpv6EgressOnlyRulesOutcomeCallable VpcClient::describeIpv6Egr return task->get_future(); } +VpcClient::DescribePhysicalConnectionLOAOutcome VpcClient::describePhysicalConnectionLOA(const DescribePhysicalConnectionLOARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhysicalConnectionLOAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhysicalConnectionLOAOutcome(DescribePhysicalConnectionLOAResult(outcome.result())); + else + return DescribePhysicalConnectionLOAOutcome(outcome.error()); +} + +void VpcClient::describePhysicalConnectionLOAAsync(const DescribePhysicalConnectionLOARequest& request, const DescribePhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhysicalConnectionLOA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribePhysicalConnectionLOAOutcomeCallable VpcClient::describePhysicalConnectionLOACallable(const DescribePhysicalConnectionLOARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhysicalConnectionLOA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVpnGatewayOutcome VpcClient::describeVpnGateway(const DescribeVpnGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5739,72 +7287,36 @@ VpcClient::DeleteRouteTableOutcomeCallable VpcClient::deleteRouteTableCallable(c return task->get_future(); } -VpcClient::ModifyBgpGroupAttributeOutcome VpcClient::modifyBgpGroupAttribute(const ModifyBgpGroupAttributeRequest &request) const +VpcClient::DescribeVpnRouteEntriesOutcome VpcClient::describeVpnRouteEntries(const DescribeVpnRouteEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyBgpGroupAttributeOutcome(endpointOutcome.error()); + return DescribeVpnRouteEntriesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyBgpGroupAttributeOutcome(ModifyBgpGroupAttributeResult(outcome.result())); + return DescribeVpnRouteEntriesOutcome(DescribeVpnRouteEntriesResult(outcome.result())); else - return ModifyBgpGroupAttributeOutcome(outcome.error()); + return DescribeVpnRouteEntriesOutcome(outcome.error()); } -void VpcClient::modifyBgpGroupAttributeAsync(const ModifyBgpGroupAttributeRequest& request, const ModifyBgpGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::describeVpnRouteEntriesAsync(const DescribeVpnRouteEntriesRequest& request, const DescribeVpnRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyBgpGroupAttribute(request), context); + handler(this, request, describeVpnRouteEntries(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyBgpGroupAttributeOutcomeCallable VpcClient::modifyBgpGroupAttributeCallable(const ModifyBgpGroupAttributeRequest &request) const +VpcClient::DescribeVpnRouteEntriesOutcomeCallable VpcClient::describeVpnRouteEntriesCallable(const DescribeVpnRouteEntriesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyBgpGroupAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::ModifyCommonBandwidthPackageAttributeOutcome VpcClient::modifyCommonBandwidthPackageAttribute(const ModifyCommonBandwidthPackageAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyCommonBandwidthPackageAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyCommonBandwidthPackageAttributeOutcome(ModifyCommonBandwidthPackageAttributeResult(outcome.result())); - else - return ModifyCommonBandwidthPackageAttributeOutcome(outcome.error()); -} - -void VpcClient::modifyCommonBandwidthPackageAttributeAsync(const ModifyCommonBandwidthPackageAttributeRequest& request, const ModifyCommonBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyCommonBandwidthPackageAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyCommonBandwidthPackageAttributeOutcomeCallable VpcClient::modifyCommonBandwidthPackageAttributeCallable(const ModifyCommonBandwidthPackageAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyCommonBandwidthPackageAttribute(request); + return this->describeVpnRouteEntries(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -5847,78 +7359,6 @@ VpcClient::UnassociateRouteTableOutcomeCallable VpcClient::unassociateRouteTable return task->get_future(); } -VpcClient::DeleteForwardEntryOutcome VpcClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteForwardEntryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteForwardEntryOutcome(DeleteForwardEntryResult(outcome.result())); - else - return DeleteForwardEntryOutcome(outcome.error()); -} - -void VpcClient::deleteForwardEntryAsync(const DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteForwardEntry(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DeleteForwardEntryOutcomeCallable VpcClient::deleteForwardEntryCallable(const DeleteForwardEntryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteForwardEntry(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::AddCommonBandwidthPackageIpOutcome VpcClient::addCommonBandwidthPackageIp(const AddCommonBandwidthPackageIpRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddCommonBandwidthPackageIpOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddCommonBandwidthPackageIpOutcome(AddCommonBandwidthPackageIpResult(outcome.result())); - else - return AddCommonBandwidthPackageIpOutcome(outcome.error()); -} - -void VpcClient::addCommonBandwidthPackageIpAsync(const AddCommonBandwidthPackageIpRequest& request, const AddCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addCommonBandwidthPackageIp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::AddCommonBandwidthPackageIpOutcomeCallable VpcClient::addCommonBandwidthPackageIpCallable(const AddCommonBandwidthPackageIpRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addCommonBandwidthPackageIp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeRegionsOutcome VpcClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5955,36 +7395,72 @@ VpcClient::DescribeRegionsOutcomeCallable VpcClient::describeRegionsCallable(con return task->get_future(); } -VpcClient::ModifyIpv6InternetBandwidthOutcome VpcClient::modifyIpv6InternetBandwidth(const ModifyIpv6InternetBandwidthRequest &request) const +VpcClient::ModifyCommonBandwidthPackageIpBandwidthOutcome VpcClient::modifyCommonBandwidthPackageIpBandwidth(const ModifyCommonBandwidthPackageIpBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyIpv6InternetBandwidthOutcome(endpointOutcome.error()); + return ModifyCommonBandwidthPackageIpBandwidthOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyIpv6InternetBandwidthOutcome(ModifyIpv6InternetBandwidthResult(outcome.result())); + return ModifyCommonBandwidthPackageIpBandwidthOutcome(ModifyCommonBandwidthPackageIpBandwidthResult(outcome.result())); else - return ModifyIpv6InternetBandwidthOutcome(outcome.error()); + return ModifyCommonBandwidthPackageIpBandwidthOutcome(outcome.error()); } -void VpcClient::modifyIpv6InternetBandwidthAsync(const ModifyIpv6InternetBandwidthRequest& request, const ModifyIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +void VpcClient::modifyCommonBandwidthPackageIpBandwidthAsync(const ModifyCommonBandwidthPackageIpBandwidthRequest& request, const ModifyCommonBandwidthPackageIpBandwidthAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyIpv6InternetBandwidth(request), context); + handler(this, request, modifyCommonBandwidthPackageIpBandwidth(request), context); }; asyncExecute(new Runnable(fn)); } -VpcClient::ModifyIpv6InternetBandwidthOutcomeCallable VpcClient::modifyIpv6InternetBandwidthCallable(const ModifyIpv6InternetBandwidthRequest &request) const +VpcClient::ModifyCommonBandwidthPackageIpBandwidthOutcomeCallable VpcClient::modifyCommonBandwidthPackageIpBandwidthCallable(const ModifyCommonBandwidthPackageIpBandwidthRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyIpv6InternetBandwidth(request); + return this->modifyCommonBandwidthPackageIpBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CompletePhysicalConnectionLOAOutcome VpcClient::completePhysicalConnectionLOA(const CompletePhysicalConnectionLOARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompletePhysicalConnectionLOAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompletePhysicalConnectionLOAOutcome(CompletePhysicalConnectionLOAResult(outcome.result())); + else + return CompletePhysicalConnectionLOAOutcome(outcome.error()); +} + +void VpcClient::completePhysicalConnectionLOAAsync(const CompletePhysicalConnectionLOARequest& request, const CompletePhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, completePhysicalConnectionLOA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CompletePhysicalConnectionLOAOutcomeCallable VpcClient::completePhysicalConnectionLOACallable(const CompletePhysicalConnectionLOARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->completePhysicalConnectionLOA(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -6063,42 +7539,6 @@ VpcClient::DescribeVpnGatewaysOutcomeCallable VpcClient::describeVpnGatewaysCall return task->get_future(); } -VpcClient::DescribeVirtualBorderRoutersOutcome VpcClient::describeVirtualBorderRouters(const DescribeVirtualBorderRoutersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeVirtualBorderRoutersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeVirtualBorderRoutersOutcome(DescribeVirtualBorderRoutersResult(outcome.result())); - else - return DescribeVirtualBorderRoutersOutcome(outcome.error()); -} - -void VpcClient::describeVirtualBorderRoutersAsync(const DescribeVirtualBorderRoutersRequest& request, const DescribeVirtualBorderRoutersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeVirtualBorderRouters(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeVirtualBorderRoutersOutcomeCallable VpcClient::describeVirtualBorderRoutersCallable(const DescribeVirtualBorderRoutersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeVirtualBorderRouters(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::CancelPhysicalConnectionOutcome VpcClient::cancelPhysicalConnection(const CancelPhysicalConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6171,42 +7611,6 @@ VpcClient::CreateGlobalAccelerationInstanceOutcomeCallable VpcClient::createGlob return task->get_future(); } -VpcClient::CreateBgpGroupOutcome VpcClient::createBgpGroup(const CreateBgpGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateBgpGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateBgpGroupOutcome(CreateBgpGroupResult(outcome.result())); - else - return CreateBgpGroupOutcome(outcome.error()); -} - -void VpcClient::createBgpGroupAsync(const CreateBgpGroupRequest& request, const CreateBgpGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createBgpGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::CreateBgpGroupOutcomeCallable VpcClient::createBgpGroupCallable(const CreateBgpGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createBgpGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::DescribeVRoutersOutcome VpcClient::describeVRouters(const DescribeVRoutersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6387,6 +7791,42 @@ VpcClient::UnassociateHaVipOutcomeCallable VpcClient::unassociateHaVipCallable(c return task->get_future(); } +VpcClient::CreatePhysicalConnectionOccupancyOrderOutcome VpcClient::createPhysicalConnectionOccupancyOrder(const CreatePhysicalConnectionOccupancyOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePhysicalConnectionOccupancyOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePhysicalConnectionOccupancyOrderOutcome(CreatePhysicalConnectionOccupancyOrderResult(outcome.result())); + else + return CreatePhysicalConnectionOccupancyOrderOutcome(outcome.error()); +} + +void VpcClient::createPhysicalConnectionOccupancyOrderAsync(const CreatePhysicalConnectionOccupancyOrderRequest& request, const CreatePhysicalConnectionOccupancyOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPhysicalConnectionOccupancyOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreatePhysicalConnectionOccupancyOrderOutcomeCallable VpcClient::createPhysicalConnectionOccupancyOrderCallable(const CreatePhysicalConnectionOccupancyOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPhysicalConnectionOccupancyOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeCommonBandwidthPackagesOutcome VpcClient::describeCommonBandwidthPackages(const DescribeCommonBandwidthPackagesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6495,114 +7935,6 @@ VpcClient::DeleteIPv6TranslatorAclListOutcomeCallable VpcClient::deleteIPv6Trans return task->get_future(); } -VpcClient::AssociateGlobalAccelerationInstanceOutcome VpcClient::associateGlobalAccelerationInstance(const AssociateGlobalAccelerationInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AssociateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AssociateGlobalAccelerationInstanceOutcome(AssociateGlobalAccelerationInstanceResult(outcome.result())); - else - return AssociateGlobalAccelerationInstanceOutcome(outcome.error()); -} - -void VpcClient::associateGlobalAccelerationInstanceAsync(const AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, associateGlobalAccelerationInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::AssociateGlobalAccelerationInstanceOutcomeCallable VpcClient::associateGlobalAccelerationInstanceCallable(const AssociateGlobalAccelerationInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->associateGlobalAccelerationInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeSslVpnServersOutcome VpcClient::describeSslVpnServers(const DescribeSslVpnServersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSslVpnServersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSslVpnServersOutcome(DescribeSslVpnServersResult(outcome.result())); - else - return DescribeSslVpnServersOutcome(outcome.error()); -} - -void VpcClient::describeSslVpnServersAsync(const DescribeSslVpnServersRequest& request, const DescribeSslVpnServersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSslVpnServers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeSslVpnServersOutcomeCallable VpcClient::describeSslVpnServersCallable(const DescribeSslVpnServersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSslVpnServers(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VpcClient::DescribeSnatTableEntriesOutcome VpcClient::describeSnatTableEntries(const DescribeSnatTableEntriesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSnatTableEntriesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSnatTableEntriesOutcome(DescribeSnatTableEntriesResult(outcome.result())); - else - return DescribeSnatTableEntriesOutcome(outcome.error()); -} - -void VpcClient::describeSnatTableEntriesAsync(const DescribeSnatTableEntriesRequest& request, const DescribeSnatTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSnatTableEntries(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::DescribeSnatTableEntriesOutcomeCallable VpcClient::describeSnatTableEntriesCallable(const DescribeSnatTableEntriesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSnatTableEntries(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyVRouterAttributeOutcome VpcClient::modifyVRouterAttribute(const ModifyVRouterAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/vpc/src/model/ActivateRouterInterfaceRequest.cc b/vpc/src/model/ActivateRouterInterfaceRequest.cc index c71364838..8d53bfca4 100644 --- a/vpc/src/model/ActivateRouterInterfaceRequest.cc +++ b/vpc/src/model/ActivateRouterInterfaceRequest.cc @@ -33,7 +33,7 @@ long ActivateRouterInterfaceRequest::getResourceOwnerId()const void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ActivateRouterInterfaceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ActivateRouterInterfaceRequest::getRegionId()const void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long ActivateRouterInterfaceRequest::getOwnerId()const @@ -66,7 +66,7 @@ long ActivateRouterInterfaceRequest::getOwnerId()const void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const @@ -77,6 +77,6 @@ std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) { routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); + setCoreParameter("RouterInterfaceId", routerInterfaceId); } diff --git a/vpc/src/model/ActivateRouterInterfaceResult.cc b/vpc/src/model/ActivateRouterInterfaceResult.cc index 34bb496db..33a2117a1 100644 --- a/vpc/src/model/ActivateRouterInterfaceResult.cc +++ b/vpc/src/model/ActivateRouterInterfaceResult.cc @@ -35,10 +35,13 @@ ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult() void ActivateRouterInterfaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ActiveFlowLogRequest.cc b/vpc/src/model/ActiveFlowLogRequest.cc index 27c84e010..be1ada375 100644 --- a/vpc/src/model/ActiveFlowLogRequest.cc +++ b/vpc/src/model/ActiveFlowLogRequest.cc @@ -33,7 +33,7 @@ long ActiveFlowLogRequest::getResourceOwnerId()const void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ActiveFlowLogRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ActiveFlowLogRequest::getResourceOwnerAccount()const void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ActiveFlowLogRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ActiveFlowLogRequest::getRegionId()const void ActiveFlowLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ActiveFlowLogRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ActiveFlowLogRequest::getOwnerAccount()const void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ActiveFlowLogRequest::getOwnerId()const @@ -77,7 +77,7 @@ long ActiveFlowLogRequest::getOwnerId()const void ActiveFlowLogRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ActiveFlowLogRequest::getFlowLogId()const @@ -88,6 +88,6 @@ std::string ActiveFlowLogRequest::getFlowLogId()const void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) { flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); + setCoreParameter("FlowLogId", flowLogId); } diff --git a/vpc/src/model/ActiveFlowLogResult.cc b/vpc/src/model/ActiveFlowLogResult.cc index e934421c1..3aae151e0 100644 --- a/vpc/src/model/ActiveFlowLogResult.cc +++ b/vpc/src/model/ActiveFlowLogResult.cc @@ -35,10 +35,13 @@ ActiveFlowLogResult::~ActiveFlowLogResult() void ActiveFlowLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString(); diff --git a/vpc/src/model/AddBandwidthPackageIpsRequest.cc b/vpc/src/model/AddBandwidthPackageIpsRequest.cc index 6b9fa6fe0..950559496 100644 --- a/vpc/src/model/AddBandwidthPackageIpsRequest.cc +++ b/vpc/src/model/AddBandwidthPackageIpsRequest.cc @@ -33,7 +33,7 @@ long AddBandwidthPackageIpsRequest::getResourceOwnerId()const void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddBandwidthPackageIpsRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string AddBandwidthPackageIpsRequest::getRegionId()const void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddBandwidthPackageIpsRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string AddBandwidthPackageIpsRequest::getClientToken()const void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddBandwidthPackageIpsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long AddBandwidthPackageIpsRequest::getOwnerId()const void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddBandwidthPackageIpsRequest::getIpCount()const @@ -110,6 +110,6 @@ std::string AddBandwidthPackageIpsRequest::getIpCount()const void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount) { ipCount_ = ipCount; - setParameter("IpCount", ipCount); + setCoreParameter("IpCount", ipCount); } diff --git a/vpc/src/model/AddBandwidthPackageIpsResult.cc b/vpc/src/model/AddBandwidthPackageIpsResult.cc index c057e6f0c..f7b38e3b7 100644 --- a/vpc/src/model/AddBandwidthPackageIpsResult.cc +++ b/vpc/src/model/AddBandwidthPackageIpsResult.cc @@ -35,10 +35,13 @@ AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult() void AddBandwidthPackageIpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AddBgpNetworkRequest.cc b/vpc/src/model/AddBgpNetworkRequest.cc index fae55db50..d06c45ed9 100644 --- a/vpc/src/model/AddBgpNetworkRequest.cc +++ b/vpc/src/model/AddBgpNetworkRequest.cc @@ -33,7 +33,7 @@ long AddBgpNetworkRequest::getResourceOwnerId()const void AddBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddBgpNetworkRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddBgpNetworkRequest::getResourceOwnerAccount()const void AddBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddBgpNetworkRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string AddBgpNetworkRequest::getRegionId()const void AddBgpNetworkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddBgpNetworkRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string AddBgpNetworkRequest::getClientToken()const void AddBgpNetworkRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string AddBgpNetworkRequest::getRouterId()const @@ -77,7 +77,7 @@ std::string AddBgpNetworkRequest::getRouterId()const void AddBgpNetworkRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string AddBgpNetworkRequest::getVpcId()const @@ -88,7 +88,7 @@ std::string AddBgpNetworkRequest::getVpcId()const void AddBgpNetworkRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string AddBgpNetworkRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string AddBgpNetworkRequest::getOwnerAccount()const void AddBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AddBgpNetworkRequest::getOwnerId()const @@ -110,7 +110,7 @@ long AddBgpNetworkRequest::getOwnerId()const void AddBgpNetworkRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddBgpNetworkRequest::getDstCidrBlock()const @@ -121,6 +121,6 @@ std::string AddBgpNetworkRequest::getDstCidrBlock()const void AddBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock) { dstCidrBlock_ = dstCidrBlock; - setParameter("DstCidrBlock", dstCidrBlock); + setCoreParameter("DstCidrBlock", dstCidrBlock); } diff --git a/vpc/src/model/AddBgpNetworkResult.cc b/vpc/src/model/AddBgpNetworkResult.cc index 0ac314eb6..d7a3c780c 100644 --- a/vpc/src/model/AddBgpNetworkResult.cc +++ b/vpc/src/model/AddBgpNetworkResult.cc @@ -35,10 +35,13 @@ AddBgpNetworkResult::~AddBgpNetworkResult() void AddBgpNetworkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc index eb76741b1..da1ec766f 100644 --- a/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc +++ b/vpc/src/model/AddCommonBandwidthPackageIpRequest.cc @@ -33,7 +33,7 @@ long AddCommonBandwidthPackageIpRequest::getResourceOwnerId()const void AddCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string AddCommonBandwidthPackageIpRequest::getBandwidthPackageId()const void AddCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string AddCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const void AddCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddCommonBandwidthPackageIpRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string AddCommonBandwidthPackageIpRequest::getRegionId()const void AddCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string AddCommonBandwidthPackageIpRequest::getOwnerAccount()const void AddCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId()const @@ -88,7 +88,7 @@ std::string AddCommonBandwidthPackageIpRequest::getIpInstanceId()const void AddCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId) { ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); + setCoreParameter("IpInstanceId", ipInstanceId); } long AddCommonBandwidthPackageIpRequest::getOwnerId()const @@ -99,6 +99,6 @@ long AddCommonBandwidthPackageIpRequest::getOwnerId()const void AddCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/AddCommonBandwidthPackageIpResult.cc b/vpc/src/model/AddCommonBandwidthPackageIpResult.cc index 7dfe5141b..aac22cc66 100644 --- a/vpc/src/model/AddCommonBandwidthPackageIpResult.cc +++ b/vpc/src/model/AddCommonBandwidthPackageIpResult.cc @@ -35,10 +35,13 @@ AddCommonBandwidthPackageIpResult::~AddCommonBandwidthPackageIpResult() void AddCommonBandwidthPackageIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc b/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc index ada7ba03a..ac2508f5d 100644 --- a/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc +++ b/vpc/src/model/AddGlobalAccelerationInstanceIpRequest.cc @@ -33,7 +33,7 @@ long AddGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()con void AddGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddGlobalAccelerationInstanceIpRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getRegionId()const void AddGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getOwnerAccount()const void AddGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId()const @@ -77,7 +77,7 @@ std::string AddGlobalAccelerationInstanceIpRequest::getIpInstanceId()const void AddGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId) { ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); + setCoreParameter("IpInstanceId", ipInstanceId); } long AddGlobalAccelerationInstanceIpRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AddGlobalAccelerationInstanceIpRequest::getOwnerId()const void AddGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const @@ -99,6 +99,6 @@ std::string AddGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanc void AddGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } diff --git a/vpc/src/model/AddGlobalAccelerationInstanceIpResult.cc b/vpc/src/model/AddGlobalAccelerationInstanceIpResult.cc index c9a90654d..e3571e55a 100644 --- a/vpc/src/model/AddGlobalAccelerationInstanceIpResult.cc +++ b/vpc/src/model/AddGlobalAccelerationInstanceIpResult.cc @@ -35,10 +35,13 @@ AddGlobalAccelerationInstanceIpResult::~AddGlobalAccelerationInstanceIpResult() void AddGlobalAccelerationInstanceIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc b/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc index 51b06e9c8..bd8d5c156 100644 --- a/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc +++ b/vpc/src/model/AddIPv6TranslatorAclListEntryRequest.cc @@ -33,7 +33,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getAclId()const void AddIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long AddIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AddIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryIp()const @@ -55,7 +55,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryIp()const void AddIPv6TranslatorAclListEntryRequest::setAclEntryIp(const std::string& aclEntryIp) { aclEntryIp_ = aclEntryIp; - setParameter("AclEntryIp", aclEntryIp); + setCoreParameter("AclEntryIp", aclEntryIp); } std::string AddIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const void AddIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AddIPv6TranslatorAclListEntryRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getRegionId()const void AddIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AddIPv6TranslatorAclListEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getOwnerAccount()const void AddIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryComment()const @@ -99,7 +99,7 @@ std::string AddIPv6TranslatorAclListEntryRequest::getAclEntryComment()const void AddIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string& aclEntryComment) { aclEntryComment_ = aclEntryComment; - setParameter("AclEntryComment", aclEntryComment); + setCoreParameter("AclEntryComment", aclEntryComment); } long AddIPv6TranslatorAclListEntryRequest::getOwnerId()const @@ -110,6 +110,6 @@ long AddIPv6TranslatorAclListEntryRequest::getOwnerId()const void AddIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/AddIPv6TranslatorAclListEntryResult.cc b/vpc/src/model/AddIPv6TranslatorAclListEntryResult.cc index 34ee6bf9d..995cb5275 100644 --- a/vpc/src/model/AddIPv6TranslatorAclListEntryResult.cc +++ b/vpc/src/model/AddIPv6TranslatorAclListEntryResult.cc @@ -35,10 +35,13 @@ AddIPv6TranslatorAclListEntryResult::~AddIPv6TranslatorAclListEntryResult() void AddIPv6TranslatorAclListEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AclEntryId"].isNull()) aclEntryId_ = value["AclEntryId"].asString(); diff --git a/vpc/src/model/AllocateEipAddressRequest.cc b/vpc/src/model/AllocateEipAddressRequest.cc index f9a61acbf..1ab9b390c 100644 --- a/vpc/src/model/AllocateEipAddressRequest.cc +++ b/vpc/src/model/AllocateEipAddressRequest.cc @@ -33,7 +33,7 @@ long AllocateEipAddressRequest::getResourceOwnerId()const void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int AllocateEipAddressRequest::getPeriod()const @@ -44,7 +44,7 @@ int AllocateEipAddressRequest::getPeriod()const void AllocateEipAddressRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } bool AllocateEipAddressRequest::getAutoPay()const @@ -55,7 +55,7 @@ bool AllocateEipAddressRequest::getAutoPay()const void AllocateEipAddressRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string AllocateEipAddressRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string AllocateEipAddressRequest::getResourceOwnerAccount()const void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AllocateEipAddressRequest::getBandwidth()const @@ -77,7 +77,7 @@ std::string AllocateEipAddressRequest::getBandwidth()const void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string AllocateEipAddressRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string AllocateEipAddressRequest::getClientToken()const void AllocateEipAddressRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string AllocateEipAddressRequest::getISP()const @@ -99,7 +99,7 @@ std::string AllocateEipAddressRequest::getISP()const void AllocateEipAddressRequest::setISP(const std::string& iSP) { iSP_ = iSP; - setParameter("ISP", iSP); + setCoreParameter("ISP", iSP); } std::string AllocateEipAddressRequest::getOwnerAccount()const @@ -110,7 +110,7 @@ std::string AllocateEipAddressRequest::getOwnerAccount()const void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AllocateEipAddressRequest::getOwnerId()const @@ -121,7 +121,18 @@ long AllocateEipAddressRequest::getOwnerId()const void AllocateEipAddressRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long AllocateEipAddressRequest::getActivityId()const +{ + return activityId_; +} + +void AllocateEipAddressRequest::setActivityId(long activityId) +{ + activityId_ = activityId; + setCoreParameter("ActivityId", std::to_string(activityId)); } std::string AllocateEipAddressRequest::getResourceGroupId()const @@ -132,7 +143,7 @@ std::string AllocateEipAddressRequest::getResourceGroupId()const void AllocateEipAddressRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string AllocateEipAddressRequest::getRegionId()const @@ -143,7 +154,7 @@ std::string AllocateEipAddressRequest::getRegionId()const void AllocateEipAddressRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AllocateEipAddressRequest::getInternetChargeType()const @@ -154,7 +165,7 @@ std::string AllocateEipAddressRequest::getInternetChargeType()const void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } std::string AllocateEipAddressRequest::getNetmode()const @@ -165,7 +176,7 @@ std::string AllocateEipAddressRequest::getNetmode()const void AllocateEipAddressRequest::setNetmode(const std::string& netmode) { netmode_ = netmode; - setParameter("Netmode", netmode); + setCoreParameter("Netmode", netmode); } std::string AllocateEipAddressRequest::getPricingCycle()const @@ -176,7 +187,7 @@ std::string AllocateEipAddressRequest::getPricingCycle()const void AllocateEipAddressRequest::setPricingCycle(const std::string& pricingCycle) { pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); + setCoreParameter("PricingCycle", pricingCycle); } std::string AllocateEipAddressRequest::getInstanceChargeType()const @@ -187,6 +198,6 @@ std::string AllocateEipAddressRequest::getInstanceChargeType()const void AllocateEipAddressRequest::setInstanceChargeType(const std::string& instanceChargeType) { instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); + setCoreParameter("InstanceChargeType", instanceChargeType); } diff --git a/vpc/src/model/AllocateEipAddressResult.cc b/vpc/src/model/AllocateEipAddressResult.cc index b7712f706..602cd9971 100644 --- a/vpc/src/model/AllocateEipAddressResult.cc +++ b/vpc/src/model/AllocateEipAddressResult.cc @@ -35,10 +35,13 @@ AllocateEipAddressResult::~AllocateEipAddressResult() void AllocateEipAddressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AllocationId"].isNull()) allocationId_ = value["AllocationId"].asString(); diff --git a/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc b/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc index 976f1a662..82fe0a668 100644 --- a/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc @@ -33,7 +33,7 @@ long AllocateIpv6InternetBandwidthRequest::getResourceOwnerId()const void AllocateIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AllocateIpv6InternetBandwidthRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getClientToken()const void AllocateIpv6InternetBandwidthRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long AllocateIpv6InternetBandwidthRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long AllocateIpv6InternetBandwidthRequest::getCallerParentId()const void AllocateIpv6InternetBandwidthRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool AllocateIpv6InternetBandwidthRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool AllocateIpv6InternetBandwidthRequest::getProxy_original_security_transport( void AllocateIpv6InternetBandwidthRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string AllocateIpv6InternetBandwidthRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getProxy_original_source_ip()c void AllocateIpv6InternetBandwidthRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string AllocateIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const void AllocateIpv6InternetBandwidthRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string AllocateIpv6InternetBandwidthRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerType()const void AllocateIpv6InternetBandwidthRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string AllocateIpv6InternetBandwidthRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getAccessKeyId()const void AllocateIpv6InternetBandwidthRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AllocateIpv6InternetBandwidthRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getResourceGroupId()const void AllocateIpv6InternetBandwidthRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string AllocateIpv6InternetBandwidthRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getRegionId()const void AllocateIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AllocateIpv6InternetBandwidthRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getSecurityToken()const void AllocateIpv6InternetBandwidthRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool AllocateIpv6InternetBandwidthRequest::getEnable()const @@ -154,7 +154,7 @@ bool AllocateIpv6InternetBandwidthRequest::getEnable()const void AllocateIpv6InternetBandwidthRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string AllocateIpv6InternetBandwidthRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getRequestContent()const void AllocateIpv6InternetBandwidthRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string AllocateIpv6InternetBandwidthRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerBidEmail()const void AllocateIpv6InternetBandwidthRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string AllocateIpv6InternetBandwidthRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerUidEmail()const void AllocateIpv6InternetBandwidthRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long AllocateIpv6InternetBandwidthRequest::getCallerUid()const @@ -198,7 +198,7 @@ long AllocateIpv6InternetBandwidthRequest::getCallerUid()const void AllocateIpv6InternetBandwidthRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string AllocateIpv6InternetBandwidthRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getApp_ip()const void AllocateIpv6InternetBandwidthRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } int AllocateIpv6InternetBandwidthRequest::getBandwidth()const @@ -220,7 +220,7 @@ int AllocateIpv6InternetBandwidthRequest::getBandwidth()const void AllocateIpv6InternetBandwidthRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string AllocateIpv6InternetBandwidthRequest::getResourceOwnerAccount()const @@ -231,7 +231,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getResourceOwnerAccount()const void AllocateIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AllocateIpv6InternetBandwidthRequest::getOwnerAccount()const @@ -242,7 +242,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getOwnerAccount()const void AllocateIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AllocateIpv6InternetBandwidthRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getCallerBid()const void AllocateIpv6InternetBandwidthRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long AllocateIpv6InternetBandwidthRequest::getOwnerId()const @@ -264,7 +264,7 @@ long AllocateIpv6InternetBandwidthRequest::getOwnerId()const void AllocateIpv6InternetBandwidthRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool AllocateIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool AllocateIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const void AllocateIpv6InternetBandwidthRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool AllocateIpv6InternetBandwidthRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool AllocateIpv6InternetBandwidthRequest::getAk_mfa_present()const void AllocateIpv6InternetBandwidthRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool AllocateIpv6InternetBandwidthRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool AllocateIpv6InternetBandwidthRequest::getSecurity_transport()const void AllocateIpv6InternetBandwidthRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string AllocateIpv6InternetBandwidthRequest::getIpv6AddressId()const @@ -308,7 +308,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getIpv6AddressId()const void AllocateIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId) { ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); + setCoreParameter("Ipv6AddressId", ipv6AddressId); } std::string AllocateIpv6InternetBandwidthRequest::getInternetChargeType()const @@ -319,7 +319,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getInternetChargeType()const void AllocateIpv6InternetBandwidthRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } std::string AllocateIpv6InternetBandwidthRequest::getRequestId()const @@ -330,7 +330,7 @@ std::string AllocateIpv6InternetBandwidthRequest::getRequestId()const void AllocateIpv6InternetBandwidthRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string AllocateIpv6InternetBandwidthRequest::getIpv6GatewayId()const @@ -341,6 +341,6 @@ std::string AllocateIpv6InternetBandwidthRequest::getIpv6GatewayId()const void AllocateIpv6InternetBandwidthRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } diff --git a/vpc/src/model/AllocateIpv6InternetBandwidthResult.cc b/vpc/src/model/AllocateIpv6InternetBandwidthResult.cc index 54a77facb..4d68e98c1 100644 --- a/vpc/src/model/AllocateIpv6InternetBandwidthResult.cc +++ b/vpc/src/model/AllocateIpv6InternetBandwidthResult.cc @@ -35,10 +35,13 @@ AllocateIpv6InternetBandwidthResult::~AllocateIpv6InternetBandwidthResult() void AllocateIpv6InternetBandwidthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ipv6AddressId"].isNull()) ipv6AddressId_ = value["Ipv6AddressId"].asString(); diff --git a/vpc/src/model/ApplyPhysicalConnectionLOARequest.cc b/vpc/src/model/ApplyPhysicalConnectionLOARequest.cc new file mode 100644 index 000000000..b37994777 --- /dev/null +++ b/vpc/src/model/ApplyPhysicalConnectionLOARequest.cc @@ -0,0 +1,190 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::ApplyPhysicalConnectionLOARequest; + +ApplyPhysicalConnectionLOARequest::ApplyPhysicalConnectionLOARequest() : + RpcServiceRequest("vpc", "2016-04-28", "ApplyPhysicalConnectionLOA") +{} + +ApplyPhysicalConnectionLOARequest::~ApplyPhysicalConnectionLOARequest() +{} + +long ApplyPhysicalConnectionLOARequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ApplyPhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ApplyPhysicalConnectionLOARequest::getPeerLocation()const +{ + return peerLocation_; +} + +void ApplyPhysicalConnectionLOARequest::setPeerLocation(const std::string& peerLocation) +{ + peerLocation_ = peerLocation; + setCoreParameter("PeerLocation", peerLocation); +} + +std::string ApplyPhysicalConnectionLOARequest::getClientToken()const +{ + return clientToken_; +} + +void ApplyPhysicalConnectionLOARequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ApplyPhysicalConnectionLOARequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ApplyPhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int ApplyPhysicalConnectionLOARequest::getBandwidth()const +{ + return bandwidth_; +} + +void ApplyPhysicalConnectionLOARequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setCoreParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string ApplyPhysicalConnectionLOARequest::getLineType()const +{ + return lineType_; +} + +void ApplyPhysicalConnectionLOARequest::setLineType(const std::string& lineType) +{ + lineType_ = lineType; + setCoreParameter("LineType", lineType); +} + +std::string ApplyPhysicalConnectionLOARequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ApplyPhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ApplyPhysicalConnectionLOARequest::getConstructionTime()const +{ + return constructionTime_; +} + +void ApplyPhysicalConnectionLOARequest::setConstructionTime(const std::string& constructionTime) +{ + constructionTime_ = constructionTime; + setCoreParameter("ConstructionTime", constructionTime); +} + +long ApplyPhysicalConnectionLOARequest::getOwnerId()const +{ + return ownerId_; +} + +void ApplyPhysicalConnectionLOARequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ApplyPhysicalConnectionLOARequest::getInstanceId()const +{ + return instanceId_; +} + +void ApplyPhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string ApplyPhysicalConnectionLOARequest::getRegionId()const +{ + return regionId_; +} + +void ApplyPhysicalConnectionLOARequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ApplyPhysicalConnectionLOARequest::getCompanyName()const +{ + return companyName_; +} + +void ApplyPhysicalConnectionLOARequest::setCompanyName(const std::string& companyName) +{ + companyName_ = companyName; + setCoreParameter("CompanyName", companyName); +} + +std::string ApplyPhysicalConnectionLOARequest::getSi()const +{ + return si_; +} + +void ApplyPhysicalConnectionLOARequest::setSi(const std::string& si) +{ + si_ = si; + setCoreParameter("Si", si); +} + +std::vector ApplyPhysicalConnectionLOARequest::getPMInfo()const +{ + return pMInfo_; +} + +void ApplyPhysicalConnectionLOARequest::setPMInfo(const std::vector& pMInfo) +{ + pMInfo_ = pMInfo; + int i = 0; + for(int i = 0; i!= pMInfo.size(); i++) { + auto obj = pMInfo.at(i); + std::string str ="PMInfo."+ std::to_string(i); + setCoreParameter(str + ".PMCertificateNo", obj.pMCertificateNo); + setCoreParameter(str + ".PMName", obj.pMName); + setCoreParameter(str + ".PMCertificateType", obj.pMCertificateType); + setCoreParameter(str + ".PMContactInfo", obj.pMContactInfo); + setCoreParameter(str + ".PMGender", obj.pMGender); + } +} + diff --git a/vpc/src/model/ApplyPhysicalConnectionLOAResult.cc b/vpc/src/model/ApplyPhysicalConnectionLOAResult.cc new file mode 100644 index 000000000..b74bf0290 --- /dev/null +++ b/vpc/src/model/ApplyPhysicalConnectionLOAResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ApplyPhysicalConnectionLOAResult::ApplyPhysicalConnectionLOAResult() : + ServiceResult() +{} + +ApplyPhysicalConnectionLOAResult::ApplyPhysicalConnectionLOAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyPhysicalConnectionLOAResult::~ApplyPhysicalConnectionLOAResult() +{} + +void ApplyPhysicalConnectionLOAResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AssociateEipAddressRequest.cc b/vpc/src/model/AssociateEipAddressRequest.cc index 94e884c97..f5c82500e 100644 --- a/vpc/src/model/AssociateEipAddressRequest.cc +++ b/vpc/src/model/AssociateEipAddressRequest.cc @@ -33,7 +33,18 @@ std::string AssociateEipAddressRequest::getPrivateIpAddress()const void AssociateEipAddressRequest::setPrivateIpAddress(const std::string& privateIpAddress) { privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); + setCoreParameter("PrivateIpAddress", privateIpAddress); +} + +std::string AssociateEipAddressRequest::getMode()const +{ + return mode_; +} + +void AssociateEipAddressRequest::setMode(const std::string& mode) +{ + mode_ = mode; + setCoreParameter("Mode", mode); } long AssociateEipAddressRequest::getResourceOwnerId()const @@ -44,7 +55,7 @@ long AssociateEipAddressRequest::getResourceOwnerId()const void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AssociateEipAddressRequest::getInstanceId()const @@ -55,7 +66,7 @@ std::string AssociateEipAddressRequest::getInstanceId()const void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string AssociateEipAddressRequest::getResourceOwnerAccount()const @@ -66,7 +77,7 @@ std::string AssociateEipAddressRequest::getResourceOwnerAccount()const void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AssociateEipAddressRequest::getRegionId()const @@ -77,7 +88,7 @@ std::string AssociateEipAddressRequest::getRegionId()const void AssociateEipAddressRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AssociateEipAddressRequest::getInstanceRegionId()const @@ -88,7 +99,7 @@ std::string AssociateEipAddressRequest::getInstanceRegionId()const void AssociateEipAddressRequest::setInstanceRegionId(const std::string& instanceRegionId) { instanceRegionId_ = instanceRegionId; - setParameter("InstanceRegionId", instanceRegionId); + setCoreParameter("InstanceRegionId", instanceRegionId); } std::string AssociateEipAddressRequest::getOwnerAccount()const @@ -99,7 +110,7 @@ std::string AssociateEipAddressRequest::getOwnerAccount()const void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AssociateEipAddressRequest::getInstanceType()const @@ -110,7 +121,7 @@ std::string AssociateEipAddressRequest::getInstanceType()const void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } std::string AssociateEipAddressRequest::getAllocationId()const @@ -121,7 +132,7 @@ std::string AssociateEipAddressRequest::getAllocationId()const void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId) { allocationId_ = allocationId; - setParameter("AllocationId", allocationId); + setCoreParameter("AllocationId", allocationId); } long AssociateEipAddressRequest::getOwnerId()const @@ -132,6 +143,6 @@ long AssociateEipAddressRequest::getOwnerId()const void AssociateEipAddressRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/AssociateEipAddressResult.cc b/vpc/src/model/AssociateEipAddressResult.cc index 99d4b8ab7..21d167337 100644 --- a/vpc/src/model/AssociateEipAddressResult.cc +++ b/vpc/src/model/AssociateEipAddressResult.cc @@ -35,10 +35,13 @@ AssociateEipAddressResult::~AssociateEipAddressResult() void AssociateEipAddressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc index 74c3a6c0b..e81815f49 100644 --- a/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc @@ -33,7 +33,7 @@ long AssociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount( void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AssociateGlobalAccelerationInstanceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getRegionId()const void AssociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount()const void AssociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId()const @@ -77,7 +77,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId()cons void AssociateGlobalAccelerationInstanceRequest::setBackendServerId(const std::string& backendServerId) { backendServerId_ = backendServerId; - setParameter("BackendServerId", backendServerId); + setCoreParameter("BackendServerId", backendServerId); } long AssociateGlobalAccelerationInstanceRequest::getOwnerId()const @@ -88,7 +88,7 @@ long AssociateGlobalAccelerationInstanceRequest::getOwnerId()const void AssociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const @@ -99,7 +99,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationIns void AssociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId()const @@ -110,7 +110,7 @@ std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId void AssociateGlobalAccelerationInstanceRequest::setBackendServerRegionId(const std::string& backendServerRegionId) { backendServerRegionId_ = backendServerRegionId; - setParameter("BackendServerRegionId", backendServerRegionId); + setCoreParameter("BackendServerRegionId", backendServerRegionId); } std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType()const @@ -121,6 +121,6 @@ std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType()co void AssociateGlobalAccelerationInstanceRequest::setBackendServerType(const std::string& backendServerType) { backendServerType_ = backendServerType; - setParameter("BackendServerType", backendServerType); + setCoreParameter("BackendServerType", backendServerType); } diff --git a/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc b/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc index 9a4810a04..7c7f6ab65 100644 --- a/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc +++ b/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc @@ -35,10 +35,13 @@ AssociateGlobalAccelerationInstanceResult::~AssociateGlobalAccelerationInstanceR void AssociateGlobalAccelerationInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AssociateHaVipRequest.cc b/vpc/src/model/AssociateHaVipRequest.cc index 65136d1cd..bab4f4234 100644 --- a/vpc/src/model/AssociateHaVipRequest.cc +++ b/vpc/src/model/AssociateHaVipRequest.cc @@ -33,7 +33,7 @@ std::string AssociateHaVipRequest::getHaVipId()const void AssociateHaVipRequest::setHaVipId(const std::string& haVipId) { haVipId_ = haVipId; - setParameter("HaVipId", haVipId); + setCoreParameter("HaVipId", haVipId); } long AssociateHaVipRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long AssociateHaVipRequest::getResourceOwnerId()const void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AssociateHaVipRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string AssociateHaVipRequest::getInstanceId()const void AssociateHaVipRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string AssociateHaVipRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string AssociateHaVipRequest::getResourceOwnerAccount()const void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AssociateHaVipRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string AssociateHaVipRequest::getClientToken()const void AssociateHaVipRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string AssociateHaVipRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string AssociateHaVipRequest::getRegionId()const void AssociateHaVipRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AssociateHaVipRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string AssociateHaVipRequest::getOwnerAccount()const void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long AssociateHaVipRequest::getOwnerId()const @@ -110,6 +110,6 @@ long AssociateHaVipRequest::getOwnerId()const void AssociateHaVipRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/AssociateHaVipResult.cc b/vpc/src/model/AssociateHaVipResult.cc index 8ea4eecab..32daffce5 100644 --- a/vpc/src/model/AssociateHaVipResult.cc +++ b/vpc/src/model/AssociateHaVipResult.cc @@ -35,10 +35,13 @@ AssociateHaVipResult::~AssociateHaVipResult() void AssociateHaVipResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AssociateNetworkAclRequest.cc b/vpc/src/model/AssociateNetworkAclRequest.cc new file mode 100644 index 000000000..ab9b2a069 --- /dev/null +++ b/vpc/src/model/AssociateNetworkAclRequest.cc @@ -0,0 +1,308 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::AssociateNetworkAclRequest; + +AssociateNetworkAclRequest::AssociateNetworkAclRequest() : + RpcServiceRequest("vpc", "2016-04-28", "AssociateNetworkAcl") +{} + +AssociateNetworkAclRequest::~AssociateNetworkAclRequest() +{} + +long AssociateNetworkAclRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateNetworkAclRequest::getClientToken()const +{ + return clientToken_; +} + +void AssociateNetworkAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long AssociateNetworkAclRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void AssociateNetworkAclRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool AssociateNetworkAclRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void AssociateNetworkAclRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string AssociateNetworkAclRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void AssociateNetworkAclRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string AssociateNetworkAclRequest::getCallerType()const +{ + return callerType_; +} + +void AssociateNetworkAclRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string AssociateNetworkAclRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void AssociateNetworkAclRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string AssociateNetworkAclRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AssociateNetworkAclRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string AssociateNetworkAclRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateNetworkAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AssociateNetworkAclRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AssociateNetworkAclRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool AssociateNetworkAclRequest::getEnable()const +{ + return enable_; +} + +void AssociateNetworkAclRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string AssociateNetworkAclRequest::getRequestContent()const +{ + return requestContent_; +} + +void AssociateNetworkAclRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string AssociateNetworkAclRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void AssociateNetworkAclRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string AssociateNetworkAclRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void AssociateNetworkAclRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string AssociateNetworkAclRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void AssociateNetworkAclRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long AssociateNetworkAclRequest::getCallerUid()const +{ + return callerUid_; +} + +void AssociateNetworkAclRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string AssociateNetworkAclRequest::getApp_ip()const +{ + return app_ip_; +} + +void AssociateNetworkAclRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::vector AssociateNetworkAclRequest::getResource()const +{ + return resource_; +} + +void AssociateNetworkAclRequest::setResource(const std::vector& resource) +{ + resource_ = resource; + int i = 0; + for(int i = 0; i!= resource.size(); i++) { + auto obj = resource.at(i); + std::string str ="Resource."+ std::to_string(i); + setCoreParameter(str + ".ResourceType", obj.resourceType); + setCoreParameter(str + ".ResourceId", obj.resourceId); + } +} + +std::string AssociateNetworkAclRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateNetworkAclRequest::getCallerBid()const +{ + return callerBid_; +} + +void AssociateNetworkAclRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long AssociateNetworkAclRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateNetworkAclRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool AssociateNetworkAclRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AssociateNetworkAclRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool AssociateNetworkAclRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AssociateNetworkAclRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool AssociateNetworkAclRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AssociateNetworkAclRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string AssociateNetworkAclRequest::getRequestId()const +{ + return requestId_; +} + +void AssociateNetworkAclRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vpc/src/model/AssociateNetworkAclResult.cc b/vpc/src/model/AssociateNetworkAclResult.cc new file mode 100644 index 000000000..de0e9e957 --- /dev/null +++ b/vpc/src/model/AssociateNetworkAclResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AssociateNetworkAclResult::AssociateNetworkAclResult() : + ServiceResult() +{} + +AssociateNetworkAclResult::AssociateNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateNetworkAclResult::~AssociateNetworkAclResult() +{} + +void AssociateNetworkAclResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc index c81c5ab7e..910e8186b 100644 --- a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc +++ b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterRequest.cc @@ -33,7 +33,7 @@ long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerId void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitCode()const @@ -44,7 +44,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getCircuitC void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) { circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); + setCoreParameter("CircuitCode", circuitCode); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId()const @@ -55,7 +55,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVlanId() void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVlanId(const std::string& vlanId) { vlanId_ = vlanId; - setParameter("VlanId", vlanId); + setCoreParameter("VlanId", vlanId); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getResource void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getClientTo void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerAcc void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()const @@ -99,7 +99,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getVbrId()c void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) { vbrId_ = vbrId; - setParameter("VbrId", vbrId); + setCoreParameter("VbrId", vbrId); } long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId()const @@ -110,7 +110,7 @@ long AssociatePhysicalConnectionToVirtualBorderRouterRequest::getOwnerId()const void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGatewayIp()const @@ -121,7 +121,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeerGate void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) { peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); + setCoreParameter("PeerGatewayIp", peerGatewayIp); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringSubnetMask()const @@ -132,7 +132,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPeeringS void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) { peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); + setCoreParameter("PeeringSubnetMask", peeringSubnetMask); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getRegionId void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysicalConnectionId()const @@ -154,7 +154,7 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getPhysical void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGatewayIp()const @@ -165,6 +165,6 @@ std::string AssociatePhysicalConnectionToVirtualBorderRouterRequest::getLocalGat void AssociatePhysicalConnectionToVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) { localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); + setCoreParameter("LocalGatewayIp", localGatewayIp); } diff --git a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc index a42e9eedc..2ac05658a 100644 --- a/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc +++ b/vpc/src/model/AssociatePhysicalConnectionToVirtualBorderRouterResult.cc @@ -35,10 +35,13 @@ AssociatePhysicalConnectionToVirtualBorderRouterResult::~AssociatePhysicalConnec void AssociatePhysicalConnectionToVirtualBorderRouterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/AssociateRouteTableRequest.cc b/vpc/src/model/AssociateRouteTableRequest.cc index 2c5de183e..c1ce97c55 100644 --- a/vpc/src/model/AssociateRouteTableRequest.cc +++ b/vpc/src/model/AssociateRouteTableRequest.cc @@ -33,7 +33,7 @@ long AssociateRouteTableRequest::getResourceOwnerId()const void AssociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string AssociateRouteTableRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string AssociateRouteTableRequest::getClientToken()const void AssociateRouteTableRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long AssociateRouteTableRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long AssociateRouteTableRequest::getCallerParentId()const void AssociateRouteTableRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool AssociateRouteTableRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool AssociateRouteTableRequest::getProxy_original_security_transport()const void AssociateRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string AssociateRouteTableRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string AssociateRouteTableRequest::getProxy_original_source_ip()const void AssociateRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string AssociateRouteTableRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string AssociateRouteTableRequest::getOwnerIdLoginEmail()const void AssociateRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string AssociateRouteTableRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string AssociateRouteTableRequest::getCallerType()const void AssociateRouteTableRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string AssociateRouteTableRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string AssociateRouteTableRequest::getAccessKeyId()const void AssociateRouteTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string AssociateRouteTableRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string AssociateRouteTableRequest::getResourceGroupId()const void AssociateRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string AssociateRouteTableRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string AssociateRouteTableRequest::getRegionId()const void AssociateRouteTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string AssociateRouteTableRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string AssociateRouteTableRequest::getSecurityToken()const void AssociateRouteTableRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool AssociateRouteTableRequest::getEnable()const @@ -154,7 +154,7 @@ bool AssociateRouteTableRequest::getEnable()const void AssociateRouteTableRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string AssociateRouteTableRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string AssociateRouteTableRequest::getRequestContent()const void AssociateRouteTableRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string AssociateRouteTableRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string AssociateRouteTableRequest::getCallerBidEmail()const void AssociateRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string AssociateRouteTableRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string AssociateRouteTableRequest::getCallerUidEmail()const void AssociateRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string AssociateRouteTableRequest::getRouteTableId()const @@ -198,7 +198,7 @@ std::string AssociateRouteTableRequest::getRouteTableId()const void AssociateRouteTableRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } long AssociateRouteTableRequest::getCallerUid()const @@ -209,7 +209,7 @@ long AssociateRouteTableRequest::getCallerUid()const void AssociateRouteTableRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string AssociateRouteTableRequest::getApp_ip()const @@ -220,7 +220,7 @@ std::string AssociateRouteTableRequest::getApp_ip()const void AssociateRouteTableRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string AssociateRouteTableRequest::getResourceOwnerAccount()const @@ -231,7 +231,7 @@ std::string AssociateRouteTableRequest::getResourceOwnerAccount()const void AssociateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string AssociateRouteTableRequest::getOwnerAccount()const @@ -242,7 +242,7 @@ std::string AssociateRouteTableRequest::getOwnerAccount()const void AssociateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string AssociateRouteTableRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string AssociateRouteTableRequest::getCallerBid()const void AssociateRouteTableRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long AssociateRouteTableRequest::getOwnerId()const @@ -264,7 +264,7 @@ long AssociateRouteTableRequest::getOwnerId()const void AssociateRouteTableRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool AssociateRouteTableRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool AssociateRouteTableRequest::getProxy_trust_transport_info()const void AssociateRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool AssociateRouteTableRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool AssociateRouteTableRequest::getAk_mfa_present()const void AssociateRouteTableRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string AssociateRouteTableRequest::getVSwitchId()const @@ -297,7 +297,7 @@ std::string AssociateRouteTableRequest::getVSwitchId()const void AssociateRouteTableRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } bool AssociateRouteTableRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool AssociateRouteTableRequest::getSecurity_transport()const void AssociateRouteTableRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string AssociateRouteTableRequest::getRequestId()const @@ -319,6 +319,6 @@ std::string AssociateRouteTableRequest::getRequestId()const void AssociateRouteTableRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/vpc/src/model/AssociateRouteTableResult.cc b/vpc/src/model/AssociateRouteTableResult.cc index 986da4c08..30cd918b5 100644 --- a/vpc/src/model/AssociateRouteTableResult.cc +++ b/vpc/src/model/AssociateRouteTableResult.cc @@ -35,10 +35,13 @@ AssociateRouteTableResult::~AssociateRouteTableResult() void AssociateRouteTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc b/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.cc new file mode 100644 index 000000000..5f44e2d02 --- /dev/null +++ b/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthRequest.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 + +using AlibabaCloud::Vpc::Model::CancelCommonBandwidthPackageIpBandwidthRequest; + +CancelCommonBandwidthPackageIpBandwidthRequest::CancelCommonBandwidthPackageIpBandwidthRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CancelCommonBandwidthPackageIpBandwidth") +{} + +CancelCommonBandwidthPackageIpBandwidthRequest::~CancelCommonBandwidthPackageIpBandwidthRequest() +{} + +long CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setCoreParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getRegionId()const +{ + return regionId_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CancelCommonBandwidthPackageIpBandwidthRequest::getEipId()const +{ + return eipId_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setEipId(const std::string& eipId) +{ + eipId_ = eipId; + setCoreParameter("EipId", eipId); +} + +long CancelCommonBandwidthPackageIpBandwidthRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelCommonBandwidthPackageIpBandwidthRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthResult.cc b/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthResult.cc new file mode 100644 index 000000000..a05d96acf --- /dev/null +++ b/vpc/src/model/CancelCommonBandwidthPackageIpBandwidthResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CancelCommonBandwidthPackageIpBandwidthResult::CancelCommonBandwidthPackageIpBandwidthResult() : + ServiceResult() +{} + +CancelCommonBandwidthPackageIpBandwidthResult::CancelCommonBandwidthPackageIpBandwidthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelCommonBandwidthPackageIpBandwidthResult::~CancelCommonBandwidthPackageIpBandwidthResult() +{} + +void CancelCommonBandwidthPackageIpBandwidthResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/CancelPhysicalConnectionRequest.cc b/vpc/src/model/CancelPhysicalConnectionRequest.cc index 4d098244d..4253d8215 100644 --- a/vpc/src/model/CancelPhysicalConnectionRequest.cc +++ b/vpc/src/model/CancelPhysicalConnectionRequest.cc @@ -33,7 +33,7 @@ long CancelPhysicalConnectionRequest::getResourceOwnerId()const void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CancelPhysicalConnectionRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string CancelPhysicalConnectionRequest::getRegionId()const void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CancelPhysicalConnectionRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CancelPhysicalConnectionRequest::getClientToken()const void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const @@ -77,7 +77,7 @@ std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string CancelPhysicalConnectionRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CancelPhysicalConnectionRequest::getOwnerAccount()const void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CancelPhysicalConnectionRequest::getOwnerId()const @@ -99,6 +99,6 @@ long CancelPhysicalConnectionRequest::getOwnerId()const void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/CancelPhysicalConnectionResult.cc b/vpc/src/model/CancelPhysicalConnectionResult.cc index 5f74af7ad..65e7d9de3 100644 --- a/vpc/src/model/CancelPhysicalConnectionResult.cc +++ b/vpc/src/model/CancelPhysicalConnectionResult.cc @@ -35,10 +35,13 @@ CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult() void CancelPhysicalConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/CompletePhysicalConnectionLOARequest.cc b/vpc/src/model/CompletePhysicalConnectionLOARequest.cc new file mode 100644 index 000000000..188032164 --- /dev/null +++ b/vpc/src/model/CompletePhysicalConnectionLOARequest.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::Vpc::Model::CompletePhysicalConnectionLOARequest; + +CompletePhysicalConnectionLOARequest::CompletePhysicalConnectionLOARequest() : + RpcServiceRequest("vpc", "2016-04-28", "CompletePhysicalConnectionLOA") +{} + +CompletePhysicalConnectionLOARequest::~CompletePhysicalConnectionLOARequest() +{} + +std::string CompletePhysicalConnectionLOARequest::getLineLabel()const +{ + return lineLabel_; +} + +void CompletePhysicalConnectionLOARequest::setLineLabel(const std::string& lineLabel) +{ + lineLabel_ = lineLabel; + setCoreParameter("LineLabel", lineLabel); +} + +std::string CompletePhysicalConnectionLOARequest::getLineCode()const +{ + return lineCode_; +} + +void CompletePhysicalConnectionLOARequest::setLineCode(const std::string& lineCode) +{ + lineCode_ = lineCode; + setCoreParameter("LineCode", lineCode); +} + +long CompletePhysicalConnectionLOARequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CompletePhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CompletePhysicalConnectionLOARequest::getInstanceId()const +{ + return instanceId_; +} + +void CompletePhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CompletePhysicalConnectionLOARequest::getClientToken()const +{ + return clientToken_; +} + +void CompletePhysicalConnectionLOARequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CompletePhysicalConnectionLOARequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CompletePhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CompletePhysicalConnectionLOARequest::getRegionId()const +{ + return regionId_; +} + +void CompletePhysicalConnectionLOARequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CompletePhysicalConnectionLOARequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CompletePhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long CompletePhysicalConnectionLOARequest::getOwnerId()const +{ + return ownerId_; +} + +void CompletePhysicalConnectionLOARequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/CompletePhysicalConnectionLOAResult.cc b/vpc/src/model/CompletePhysicalConnectionLOAResult.cc new file mode 100644 index 000000000..d7fd19313 --- /dev/null +++ b/vpc/src/model/CompletePhysicalConnectionLOAResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CompletePhysicalConnectionLOAResult::CompletePhysicalConnectionLOAResult() : + ServiceResult() +{} + +CompletePhysicalConnectionLOAResult::CompletePhysicalConnectionLOAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CompletePhysicalConnectionLOAResult::~CompletePhysicalConnectionLOAResult() +{} + +void CompletePhysicalConnectionLOAResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ConnectRouterInterfaceRequest.cc b/vpc/src/model/ConnectRouterInterfaceRequest.cc index ab6e70f40..93b59123a 100644 --- a/vpc/src/model/ConnectRouterInterfaceRequest.cc +++ b/vpc/src/model/ConnectRouterInterfaceRequest.cc @@ -33,7 +33,7 @@ long ConnectRouterInterfaceRequest::getResourceOwnerId()const void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ConnectRouterInterfaceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ConnectRouterInterfaceRequest::getRegionId()const void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long ConnectRouterInterfaceRequest::getOwnerId()const @@ -66,7 +66,7 @@ long ConnectRouterInterfaceRequest::getOwnerId()const void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const @@ -77,6 +77,6 @@ std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) { routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); + setCoreParameter("RouterInterfaceId", routerInterfaceId); } diff --git a/vpc/src/model/ConnectRouterInterfaceResult.cc b/vpc/src/model/ConnectRouterInterfaceResult.cc index 428a9b5cf..e83ce1300 100644 --- a/vpc/src/model/ConnectRouterInterfaceResult.cc +++ b/vpc/src/model/ConnectRouterInterfaceResult.cc @@ -35,10 +35,13 @@ ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult() void ConnectRouterInterfaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ConvertBandwidthPackageRequest.cc b/vpc/src/model/ConvertBandwidthPackageRequest.cc index 0db7cc618..14dd82822 100644 --- a/vpc/src/model/ConvertBandwidthPackageRequest.cc +++ b/vpc/src/model/ConvertBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long ConvertBandwidthPackageRequest::getResourceOwnerId()const void ConvertBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ConvertBandwidthPackageRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string ConvertBandwidthPackageRequest::getClientToken()const void ConvertBandwidthPackageRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long ConvertBandwidthPackageRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long ConvertBandwidthPackageRequest::getCallerParentId()const void ConvertBandwidthPackageRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ConvertBandwidthPackageRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool ConvertBandwidthPackageRequest::getProxy_original_security_transport()const void ConvertBandwidthPackageRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ConvertBandwidthPackageRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string ConvertBandwidthPackageRequest::getProxy_original_source_ip()const void ConvertBandwidthPackageRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ConvertBandwidthPackageRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string ConvertBandwidthPackageRequest::getCallerType()const void ConvertBandwidthPackageRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string ConvertBandwidthPackageRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string ConvertBandwidthPackageRequest::getOwnerIdLoginEmail()const void ConvertBandwidthPackageRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ConvertBandwidthPackageRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string ConvertBandwidthPackageRequest::getAccessKeyId()const void ConvertBandwidthPackageRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ConvertBandwidthPackageRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string ConvertBandwidthPackageRequest::getRegionId()const void ConvertBandwidthPackageRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ConvertBandwidthPackageRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string ConvertBandwidthPackageRequest::getSecurityToken()const void ConvertBandwidthPackageRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool ConvertBandwidthPackageRequest::getEnable()const @@ -143,7 +143,7 @@ bool ConvertBandwidthPackageRequest::getEnable()const void ConvertBandwidthPackageRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string ConvertBandwidthPackageRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string ConvertBandwidthPackageRequest::getRequestContent()const void ConvertBandwidthPackageRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ConvertBandwidthPackageRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string ConvertBandwidthPackageRequest::getCallerBidEmail()const void ConvertBandwidthPackageRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ConvertBandwidthPackageRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string ConvertBandwidthPackageRequest::getCallerUidEmail()const void ConvertBandwidthPackageRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ConvertBandwidthPackageRequest::getCallerUid()const @@ -187,7 +187,7 @@ long ConvertBandwidthPackageRequest::getCallerUid()const void ConvertBandwidthPackageRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string ConvertBandwidthPackageRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string ConvertBandwidthPackageRequest::getApp_ip()const void ConvertBandwidthPackageRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ConvertBandwidthPackageRequest::getBandwidthPackageId()const @@ -209,7 +209,7 @@ std::string ConvertBandwidthPackageRequest::getBandwidthPackageId()const void ConvertBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string ConvertBandwidthPackageRequest::getResourceOwnerAccount()const @@ -220,7 +220,7 @@ std::string ConvertBandwidthPackageRequest::getResourceOwnerAccount()const void ConvertBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ConvertBandwidthPackageRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string ConvertBandwidthPackageRequest::getCallerBid()const void ConvertBandwidthPackageRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ConvertBandwidthPackageRequest::getOwnerId()const @@ -242,7 +242,7 @@ long ConvertBandwidthPackageRequest::getOwnerId()const void ConvertBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool ConvertBandwidthPackageRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool ConvertBandwidthPackageRequest::getProxy_trust_transport_info()const void ConvertBandwidthPackageRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ConvertBandwidthPackageRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool ConvertBandwidthPackageRequest::getAk_mfa_present()const void ConvertBandwidthPackageRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool ConvertBandwidthPackageRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool ConvertBandwidthPackageRequest::getSecurity_transport()const void ConvertBandwidthPackageRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ConvertBandwidthPackageRequest::getRequestId()const @@ -286,6 +286,6 @@ std::string ConvertBandwidthPackageRequest::getRequestId()const void ConvertBandwidthPackageRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/vpc/src/model/ConvertBandwidthPackageResult.cc b/vpc/src/model/ConvertBandwidthPackageResult.cc index c50b9c1c7..74d5716df 100644 --- a/vpc/src/model/ConvertBandwidthPackageResult.cc +++ b/vpc/src/model/ConvertBandwidthPackageResult.cc @@ -35,10 +35,13 @@ ConvertBandwidthPackageResult::~ConvertBandwidthPackageResult() void ConvertBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ConvertInstanceId"].isNull()) convertInstanceId_ = value["ConvertInstanceId"].asString(); diff --git a/vpc/src/model/CopyNetworkAclEntriesRequest.cc b/vpc/src/model/CopyNetworkAclEntriesRequest.cc new file mode 100644 index 000000000..a6e861ac8 --- /dev/null +++ b/vpc/src/model/CopyNetworkAclEntriesRequest.cc @@ -0,0 +1,302 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::CopyNetworkAclEntriesRequest; + +CopyNetworkAclEntriesRequest::CopyNetworkAclEntriesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CopyNetworkAclEntries") +{} + +CopyNetworkAclEntriesRequest::~CopyNetworkAclEntriesRequest() +{} + +long CopyNetworkAclEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CopyNetworkAclEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CopyNetworkAclEntriesRequest::getClientToken()const +{ + return clientToken_; +} + +void CopyNetworkAclEntriesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long CopyNetworkAclEntriesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CopyNetworkAclEntriesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CopyNetworkAclEntriesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CopyNetworkAclEntriesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CopyNetworkAclEntriesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CopyNetworkAclEntriesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CopyNetworkAclEntriesRequest::getCallerType()const +{ + return callerType_; +} + +void CopyNetworkAclEntriesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CopyNetworkAclEntriesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CopyNetworkAclEntriesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CopyNetworkAclEntriesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CopyNetworkAclEntriesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CopyNetworkAclEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void CopyNetworkAclEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CopyNetworkAclEntriesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CopyNetworkAclEntriesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool CopyNetworkAclEntriesRequest::getEnable()const +{ + return enable_; +} + +void CopyNetworkAclEntriesRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string CopyNetworkAclEntriesRequest::getRequestContent()const +{ + return requestContent_; +} + +void CopyNetworkAclEntriesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string CopyNetworkAclEntriesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CopyNetworkAclEntriesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string CopyNetworkAclEntriesRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void CopyNetworkAclEntriesRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string CopyNetworkAclEntriesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CopyNetworkAclEntriesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long CopyNetworkAclEntriesRequest::getCallerUid()const +{ + return callerUid_; +} + +void CopyNetworkAclEntriesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CopyNetworkAclEntriesRequest::getApp_ip()const +{ + return app_ip_; +} + +void CopyNetworkAclEntriesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string CopyNetworkAclEntriesRequest::getSourceNetworkAclId()const +{ + return sourceNetworkAclId_; +} + +void CopyNetworkAclEntriesRequest::setSourceNetworkAclId(const std::string& sourceNetworkAclId) +{ + sourceNetworkAclId_ = sourceNetworkAclId; + setCoreParameter("SourceNetworkAclId", sourceNetworkAclId); +} + +std::string CopyNetworkAclEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CopyNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CopyNetworkAclEntriesRequest::getCallerBid()const +{ + return callerBid_; +} + +void CopyNetworkAclEntriesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long CopyNetworkAclEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void CopyNetworkAclEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool CopyNetworkAclEntriesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CopyNetworkAclEntriesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CopyNetworkAclEntriesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CopyNetworkAclEntriesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CopyNetworkAclEntriesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CopyNetworkAclEntriesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CopyNetworkAclEntriesRequest::getRequestId()const +{ + return requestId_; +} + +void CopyNetworkAclEntriesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vpc/src/model/CopyNetworkAclEntriesResult.cc b/vpc/src/model/CopyNetworkAclEntriesResult.cc new file mode 100644 index 000000000..3bd341687 --- /dev/null +++ b/vpc/src/model/CopyNetworkAclEntriesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CopyNetworkAclEntriesResult::CopyNetworkAclEntriesResult() : + ServiceResult() +{} + +CopyNetworkAclEntriesResult::CopyNetworkAclEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyNetworkAclEntriesResult::~CopyNetworkAclEntriesResult() +{} + +void CopyNetworkAclEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/CreateBandwidthPackageRequest.cc b/vpc/src/model/CreateBandwidthPackageRequest.cc index e3e01485f..a6b39a682 100644 --- a/vpc/src/model/CreateBandwidthPackageRequest.cc +++ b/vpc/src/model/CreateBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long CreateBandwidthPackageRequest::getResourceOwnerId()const void CreateBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateBandwidthPackageRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CreateBandwidthPackageRequest::getResourceOwnerAccount()const void CreateBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateBandwidthPackageRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string CreateBandwidthPackageRequest::getClientToken()const void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } int CreateBandwidthPackageRequest::getBandwidth()const @@ -66,7 +66,7 @@ int CreateBandwidthPackageRequest::getBandwidth()const void CreateBandwidthPackageRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateBandwidthPackageRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateBandwidthPackageRequest::getOwnerAccount()const void CreateBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateBandwidthPackageRequest::getISP()const @@ -88,7 +88,7 @@ std::string CreateBandwidthPackageRequest::getISP()const void CreateBandwidthPackageRequest::setISP(const std::string& iSP) { iSP_ = iSP; - setParameter("ISP", iSP); + setCoreParameter("ISP", iSP); } std::string CreateBandwidthPackageRequest::getDescription()const @@ -99,7 +99,7 @@ std::string CreateBandwidthPackageRequest::getDescription()const void CreateBandwidthPackageRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateBandwidthPackageRequest::getOwnerId()const @@ -110,7 +110,7 @@ long CreateBandwidthPackageRequest::getOwnerId()const void CreateBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateBandwidthPackageRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string CreateBandwidthPackageRequest::getRegionId()const void CreateBandwidthPackageRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateBandwidthPackageRequest::getZone()const @@ -132,7 +132,7 @@ std::string CreateBandwidthPackageRequest::getZone()const void CreateBandwidthPackageRequest::setZone(const std::string& zone) { zone_ = zone; - setParameter("Zone", zone); + setCoreParameter("Zone", zone); } std::string CreateBandwidthPackageRequest::getInternetChargeType()const @@ -143,7 +143,7 @@ std::string CreateBandwidthPackageRequest::getInternetChargeType()const void CreateBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } std::string CreateBandwidthPackageRequest::getName()const @@ -154,7 +154,7 @@ std::string CreateBandwidthPackageRequest::getName()const void CreateBandwidthPackageRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateBandwidthPackageRequest::getNatGatewayId()const @@ -165,7 +165,7 @@ std::string CreateBandwidthPackageRequest::getNatGatewayId()const void CreateBandwidthPackageRequest::setNatGatewayId(const std::string& natGatewayId) { natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); + setCoreParameter("NatGatewayId", natGatewayId); } int CreateBandwidthPackageRequest::getIpCount()const @@ -176,6 +176,6 @@ int CreateBandwidthPackageRequest::getIpCount()const void CreateBandwidthPackageRequest::setIpCount(int ipCount) { ipCount_ = ipCount; - setParameter("IpCount", std::to_string(ipCount)); + setCoreParameter("IpCount", std::to_string(ipCount)); } diff --git a/vpc/src/model/CreateBandwidthPackageResult.cc b/vpc/src/model/CreateBandwidthPackageResult.cc index eeda06722..eb4cc8b5a 100644 --- a/vpc/src/model/CreateBandwidthPackageResult.cc +++ b/vpc/src/model/CreateBandwidthPackageResult.cc @@ -35,10 +35,13 @@ CreateBandwidthPackageResult::~CreateBandwidthPackageResult() void CreateBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BandwidthPackageId"].isNull()) bandwidthPackageId_ = value["BandwidthPackageId"].asString(); diff --git a/vpc/src/model/CreateBgpGroupRequest.cc b/vpc/src/model/CreateBgpGroupRequest.cc index bb42811f7..136ac55ce 100644 --- a/vpc/src/model/CreateBgpGroupRequest.cc +++ b/vpc/src/model/CreateBgpGroupRequest.cc @@ -33,7 +33,7 @@ std::string CreateBgpGroupRequest::getAuthKey()const void CreateBgpGroupRequest::setAuthKey(const std::string& authKey) { authKey_ = authKey; - setParameter("AuthKey", authKey); + setCoreParameter("AuthKey", authKey); } long CreateBgpGroupRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateBgpGroupRequest::getResourceOwnerId()const void CreateBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateBgpGroupRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateBgpGroupRequest::getResourceOwnerAccount()const void CreateBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateBgpGroupRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CreateBgpGroupRequest::getClientToken()const void CreateBgpGroupRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateBgpGroupRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateBgpGroupRequest::getOwnerAccount()const void CreateBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateBgpGroupRequest::getDescription()const @@ -88,7 +88,7 @@ std::string CreateBgpGroupRequest::getDescription()const void CreateBgpGroupRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateBgpGroupRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateBgpGroupRequest::getOwnerId()const void CreateBgpGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long CreateBgpGroupRequest::getPeerAsn()const @@ -110,7 +110,7 @@ long CreateBgpGroupRequest::getPeerAsn()const void CreateBgpGroupRequest::setPeerAsn(long peerAsn) { peerAsn_ = peerAsn; - setParameter("PeerAsn", std::to_string(peerAsn)); + setCoreParameter("PeerAsn", std::to_string(peerAsn)); } bool CreateBgpGroupRequest::getIsFakeAsn()const @@ -121,7 +121,7 @@ bool CreateBgpGroupRequest::getIsFakeAsn()const void CreateBgpGroupRequest::setIsFakeAsn(bool isFakeAsn) { isFakeAsn_ = isFakeAsn; - setParameter("IsFakeAsn", std::to_string(isFakeAsn)); + setCoreParameter("IsFakeAsn", isFakeAsn ? "true" : "false"); } std::string CreateBgpGroupRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateBgpGroupRequest::getRegionId()const void CreateBgpGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateBgpGroupRequest::getRouterId()const @@ -143,7 +143,7 @@ std::string CreateBgpGroupRequest::getRouterId()const void CreateBgpGroupRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string CreateBgpGroupRequest::getName()const @@ -154,6 +154,6 @@ std::string CreateBgpGroupRequest::getName()const void CreateBgpGroupRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/CreateBgpGroupResult.cc b/vpc/src/model/CreateBgpGroupResult.cc index 2d5239713..1128af92b 100644 --- a/vpc/src/model/CreateBgpGroupResult.cc +++ b/vpc/src/model/CreateBgpGroupResult.cc @@ -35,10 +35,13 @@ CreateBgpGroupResult::~CreateBgpGroupResult() void CreateBgpGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BgpGroupId"].isNull()) bgpGroupId_ = value["BgpGroupId"].asString(); diff --git a/vpc/src/model/CreateBgpPeerRequest.cc b/vpc/src/model/CreateBgpPeerRequest.cc index a1058ca89..3ba10da77 100644 --- a/vpc/src/model/CreateBgpPeerRequest.cc +++ b/vpc/src/model/CreateBgpPeerRequest.cc @@ -33,7 +33,18 @@ long CreateBgpPeerRequest::getResourceOwnerId()const void CreateBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool CreateBgpPeerRequest::getEnableBfd()const +{ + return enableBfd_; +} + +void CreateBgpPeerRequest::setEnableBfd(bool enableBfd) +{ + enableBfd_ = enableBfd; + setCoreParameter("EnableBfd", enableBfd ? "true" : "false"); } std::string CreateBgpPeerRequest::getResourceOwnerAccount()const @@ -44,7 +55,7 @@ std::string CreateBgpPeerRequest::getResourceOwnerAccount()const void CreateBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateBgpPeerRequest::getRegionId()const @@ -55,7 +66,7 @@ std::string CreateBgpPeerRequest::getRegionId()const void CreateBgpPeerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateBgpPeerRequest::getClientToken()const @@ -66,7 +77,7 @@ std::string CreateBgpPeerRequest::getClientToken()const void CreateBgpPeerRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateBgpPeerRequest::getOwnerAccount()const @@ -77,7 +88,7 @@ std::string CreateBgpPeerRequest::getOwnerAccount()const void CreateBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateBgpPeerRequest::getBgpGroupId()const @@ -88,7 +99,7 @@ std::string CreateBgpPeerRequest::getBgpGroupId()const void CreateBgpPeerRequest::setBgpGroupId(const std::string& bgpGroupId) { bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); + setCoreParameter("BgpGroupId", bgpGroupId); } long CreateBgpPeerRequest::getOwnerId()const @@ -99,7 +110,7 @@ long CreateBgpPeerRequest::getOwnerId()const void CreateBgpPeerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateBgpPeerRequest::getPeerIpAddress()const @@ -110,6 +121,6 @@ std::string CreateBgpPeerRequest::getPeerIpAddress()const void CreateBgpPeerRequest::setPeerIpAddress(const std::string& peerIpAddress) { peerIpAddress_ = peerIpAddress; - setParameter("PeerIpAddress", peerIpAddress); + setCoreParameter("PeerIpAddress", peerIpAddress); } diff --git a/vpc/src/model/CreateBgpPeerResult.cc b/vpc/src/model/CreateBgpPeerResult.cc index 6bdc20be4..05f86b38e 100644 --- a/vpc/src/model/CreateBgpPeerResult.cc +++ b/vpc/src/model/CreateBgpPeerResult.cc @@ -35,10 +35,13 @@ CreateBgpPeerResult::~CreateBgpPeerResult() void CreateBgpPeerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BgpPeerId"].isNull()) bgpPeerId_ = value["BgpPeerId"].asString(); diff --git a/vpc/src/model/CreateCommonBandwidthPackageRequest.cc b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc index e4444d8d7..e4c94aee6 100644 --- a/vpc/src/model/CreateCommonBandwidthPackageRequest.cc +++ b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long CreateCommonBandwidthPackageRequest::getResourceOwnerId()const void CreateCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount()const void CreateCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateCommonBandwidthPackageRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string CreateCommonBandwidthPackageRequest::getClientToken()const void CreateCommonBandwidthPackageRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } int CreateCommonBandwidthPackageRequest::getBandwidth()const @@ -66,7 +66,7 @@ int CreateCommonBandwidthPackageRequest::getBandwidth()const void CreateCommonBandwidthPackageRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateCommonBandwidthPackageRequest::getOwnerAccount()const void CreateCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateCommonBandwidthPackageRequest::getISP()const @@ -88,7 +88,7 @@ std::string CreateCommonBandwidthPackageRequest::getISP()const void CreateCommonBandwidthPackageRequest::setISP(const std::string& iSP) { iSP_ = iSP; - setParameter("ISP", iSP); + setCoreParameter("ISP", iSP); } std::string CreateCommonBandwidthPackageRequest::getDescription()const @@ -99,7 +99,7 @@ std::string CreateCommonBandwidthPackageRequest::getDescription()const void CreateCommonBandwidthPackageRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateCommonBandwidthPackageRequest::getOwnerId()const @@ -110,7 +110,7 @@ long CreateCommonBandwidthPackageRequest::getOwnerId()const void CreateCommonBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateCommonBandwidthPackageRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string CreateCommonBandwidthPackageRequest::getResourceGroupId()const void CreateCommonBandwidthPackageRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string CreateCommonBandwidthPackageRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateCommonBandwidthPackageRequest::getRegionId()const void CreateCommonBandwidthPackageRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateCommonBandwidthPackageRequest::getZone()const @@ -143,7 +143,7 @@ std::string CreateCommonBandwidthPackageRequest::getZone()const void CreateCommonBandwidthPackageRequest::setZone(const std::string& zone) { zone_ = zone; - setParameter("Zone", zone); + setCoreParameter("Zone", zone); } std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const @@ -154,7 +154,7 @@ std::string CreateCommonBandwidthPackageRequest::getInternetChargeType()const void CreateCommonBandwidthPackageRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } std::string CreateCommonBandwidthPackageRequest::getName()const @@ -165,7 +165,7 @@ std::string CreateCommonBandwidthPackageRequest::getName()const void CreateCommonBandwidthPackageRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int CreateCommonBandwidthPackageRequest::getRatio()const @@ -176,6 +176,6 @@ int CreateCommonBandwidthPackageRequest::getRatio()const void CreateCommonBandwidthPackageRequest::setRatio(int ratio) { ratio_ = ratio; - setParameter("Ratio", std::to_string(ratio)); + setCoreParameter("Ratio", std::to_string(ratio)); } diff --git a/vpc/src/model/CreateCommonBandwidthPackageResult.cc b/vpc/src/model/CreateCommonBandwidthPackageResult.cc index 6a45783da..b0b64f7bc 100644 --- a/vpc/src/model/CreateCommonBandwidthPackageResult.cc +++ b/vpc/src/model/CreateCommonBandwidthPackageResult.cc @@ -35,10 +35,13 @@ CreateCommonBandwidthPackageResult::~CreateCommonBandwidthPackageResult() void CreateCommonBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["BandwidthPackageId"].isNull()) bandwidthPackageId_ = value["BandwidthPackageId"].asString(); diff --git a/vpc/src/model/CreateCustomerGatewayRequest.cc b/vpc/src/model/CreateCustomerGatewayRequest.cc index a6c22b5a6..56560cadd 100644 --- a/vpc/src/model/CreateCustomerGatewayRequest.cc +++ b/vpc/src/model/CreateCustomerGatewayRequest.cc @@ -33,7 +33,7 @@ std::string CreateCustomerGatewayRequest::getIpAddress()const void CreateCustomerGatewayRequest::setIpAddress(const std::string& ipAddress) { ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); + setCoreParameter("IpAddress", ipAddress); } long CreateCustomerGatewayRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateCustomerGatewayRequest::getResourceOwnerId()const void CreateCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateCustomerGatewayRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateCustomerGatewayRequest::getResourceOwnerAccount()const void CreateCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateCustomerGatewayRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string CreateCustomerGatewayRequest::getRegionId()const void CreateCustomerGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateCustomerGatewayRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string CreateCustomerGatewayRequest::getClientToken()const void CreateCustomerGatewayRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateCustomerGatewayRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateCustomerGatewayRequest::getOwnerAccount()const void CreateCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateCustomerGatewayRequest::getName()const @@ -99,7 +99,7 @@ std::string CreateCustomerGatewayRequest::getName()const void CreateCustomerGatewayRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateCustomerGatewayRequest::getDescription()const @@ -110,7 +110,7 @@ std::string CreateCustomerGatewayRequest::getDescription()const void CreateCustomerGatewayRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateCustomerGatewayRequest::getOwnerId()const @@ -121,6 +121,6 @@ long CreateCustomerGatewayRequest::getOwnerId()const void CreateCustomerGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/CreateCustomerGatewayResult.cc b/vpc/src/model/CreateCustomerGatewayResult.cc index adfd90a01..54053ab47 100644 --- a/vpc/src/model/CreateCustomerGatewayResult.cc +++ b/vpc/src/model/CreateCustomerGatewayResult.cc @@ -35,10 +35,13 @@ CreateCustomerGatewayResult::~CreateCustomerGatewayResult() void CreateCustomerGatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CustomerGatewayId"].isNull()) customerGatewayId_ = value["CustomerGatewayId"].asString(); diff --git a/vpc/src/model/CreateExpressCloudConnectionRequest.cc b/vpc/src/model/CreateExpressCloudConnectionRequest.cc new file mode 100644 index 000000000..a3bbc3c58 --- /dev/null +++ b/vpc/src/model/CreateExpressCloudConnectionRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::CreateExpressCloudConnectionRequest; + +CreateExpressCloudConnectionRequest::CreateExpressCloudConnectionRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateExpressCloudConnection") +{} + +CreateExpressCloudConnectionRequest::~CreateExpressCloudConnectionRequest() +{} + +long CreateExpressCloudConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateExpressCloudConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateExpressCloudConnectionRequest::getPeerLocation()const +{ + return peerLocation_; +} + +void CreateExpressCloudConnectionRequest::setPeerLocation(const std::string& peerLocation) +{ + peerLocation_ = peerLocation; + setCoreParameter("PeerLocation", peerLocation); +} + +std::string CreateExpressCloudConnectionRequest::getPortType()const +{ + return portType_; +} + +void CreateExpressCloudConnectionRequest::setPortType(const std::string& portType) +{ + portType_ = portType; + setCoreParameter("PortType", portType); +} + +std::string CreateExpressCloudConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateExpressCloudConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int CreateExpressCloudConnectionRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateExpressCloudConnectionRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setCoreParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateExpressCloudConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateExpressCloudConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateExpressCloudConnectionRequest::getDescription()const +{ + return description_; +} + +void CreateExpressCloudConnectionRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateExpressCloudConnectionRequest::getPeerCity()const +{ + return peerCity_; +} + +void CreateExpressCloudConnectionRequest::setPeerCity(const std::string& peerCity) +{ + peerCity_ = peerCity; + setCoreParameter("PeerCity", peerCity); +} + +std::string CreateExpressCloudConnectionRequest::getIDCardNo()const +{ + return iDCardNo_; +} + +void CreateExpressCloudConnectionRequest::setIDCardNo(const std::string& iDCardNo) +{ + iDCardNo_ = iDCardNo; + setCoreParameter("IDCardNo", iDCardNo); +} + +std::string CreateExpressCloudConnectionRequest::getRedundantEccId()const +{ + return redundantEccId_; +} + +void CreateExpressCloudConnectionRequest::setRedundantEccId(const std::string& redundantEccId) +{ + redundantEccId_ = redundantEccId; + setCoreParameter("RedundantEccId", redundantEccId); +} + +long CreateExpressCloudConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateExpressCloudConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateExpressCloudConnectionRequest::getContactMail()const +{ + return contactMail_; +} + +void CreateExpressCloudConnectionRequest::setContactMail(const std::string& contactMail) +{ + contactMail_ = contactMail; + setCoreParameter("ContactMail", contactMail); +} + +std::string CreateExpressCloudConnectionRequest::getContactTel()const +{ + return contactTel_; +} + +void CreateExpressCloudConnectionRequest::setContactTel(const std::string& contactTel) +{ + contactTel_ = contactTel; + setCoreParameter("ContactTel", contactTel); +} + +std::string CreateExpressCloudConnectionRequest::getIdcSP()const +{ + return idcSP_; +} + +void CreateExpressCloudConnectionRequest::setIdcSP(const std::string& idcSP) +{ + idcSP_ = idcSP; + setCoreParameter("IdcSP", idcSP); +} + +std::string CreateExpressCloudConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void CreateExpressCloudConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateExpressCloudConnectionRequest::getName()const +{ + return name_; +} + +void CreateExpressCloudConnectionRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/vpc/src/model/CreateExpressCloudConnectionResult.cc b/vpc/src/model/CreateExpressCloudConnectionResult.cc new file mode 100644 index 000000000..b66af1b76 --- /dev/null +++ b/vpc/src/model/CreateExpressCloudConnectionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateExpressCloudConnectionResult::CreateExpressCloudConnectionResult() : + ServiceResult() +{} + +CreateExpressCloudConnectionResult::CreateExpressCloudConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateExpressCloudConnectionResult::~CreateExpressCloudConnectionResult() +{} + +void CreateExpressCloudConnectionResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["EccId"].isNull()) + eccId_ = value["EccId"].asString(); + +} + +std::string CreateExpressCloudConnectionResult::getEccId()const +{ + return eccId_; +} + diff --git a/vpc/src/model/CreateFlowLogRequest.cc b/vpc/src/model/CreateFlowLogRequest.cc index e46bf61e5..a4a515e39 100644 --- a/vpc/src/model/CreateFlowLogRequest.cc +++ b/vpc/src/model/CreateFlowLogRequest.cc @@ -33,7 +33,7 @@ long CreateFlowLogRequest::getResourceOwnerId()const void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateFlowLogRequest::getResourceId()const @@ -44,7 +44,7 @@ std::string CreateFlowLogRequest::getResourceId()const void CreateFlowLogRequest::setResourceId(const std::string& resourceId) { resourceId_ = resourceId; - setParameter("ResourceId", resourceId); + setCoreParameter("ResourceId", resourceId); } std::string CreateFlowLogRequest::getProjectName()const @@ -55,7 +55,7 @@ std::string CreateFlowLogRequest::getProjectName()const void CreateFlowLogRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } std::string CreateFlowLogRequest::getLogStoreName()const @@ -66,7 +66,7 @@ std::string CreateFlowLogRequest::getLogStoreName()const void CreateFlowLogRequest::setLogStoreName(const std::string& logStoreName) { logStoreName_ = logStoreName; - setParameter("LogStoreName", logStoreName); + setCoreParameter("LogStoreName", logStoreName); } std::string CreateFlowLogRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateFlowLogRequest::getResourceOwnerAccount()const void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateFlowLogRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateFlowLogRequest::getOwnerAccount()const void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateFlowLogRequest::getDescription()const @@ -99,7 +99,7 @@ std::string CreateFlowLogRequest::getDescription()const void CreateFlowLogRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateFlowLogRequest::getOwnerId()const @@ -110,7 +110,7 @@ long CreateFlowLogRequest::getOwnerId()const void CreateFlowLogRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateFlowLogRequest::getResourceType()const @@ -121,7 +121,7 @@ std::string CreateFlowLogRequest::getResourceType()const void CreateFlowLogRequest::setResourceType(const std::string& resourceType) { resourceType_ = resourceType; - setParameter("ResourceType", resourceType); + setCoreParameter("ResourceType", resourceType); } std::string CreateFlowLogRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateFlowLogRequest::getRegionId()const void CreateFlowLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateFlowLogRequest::getTrafficType()const @@ -143,7 +143,7 @@ std::string CreateFlowLogRequest::getTrafficType()const void CreateFlowLogRequest::setTrafficType(const std::string& trafficType) { trafficType_ = trafficType; - setParameter("TrafficType", trafficType); + setCoreParameter("TrafficType", trafficType); } std::string CreateFlowLogRequest::getFlowLogName()const @@ -154,6 +154,6 @@ std::string CreateFlowLogRequest::getFlowLogName()const void CreateFlowLogRequest::setFlowLogName(const std::string& flowLogName) { flowLogName_ = flowLogName; - setParameter("FlowLogName", flowLogName); + setCoreParameter("FlowLogName", flowLogName); } diff --git a/vpc/src/model/CreateFlowLogResult.cc b/vpc/src/model/CreateFlowLogResult.cc index ae2409c5e..90cb66e49 100644 --- a/vpc/src/model/CreateFlowLogResult.cc +++ b/vpc/src/model/CreateFlowLogResult.cc @@ -35,10 +35,13 @@ CreateFlowLogResult::~CreateFlowLogResult() void CreateFlowLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString(); diff --git a/vpc/src/model/CreateForwardEntryRequest.cc b/vpc/src/model/CreateForwardEntryRequest.cc index 525c8af7c..c4faf9c0a 100644 --- a/vpc/src/model/CreateForwardEntryRequest.cc +++ b/vpc/src/model/CreateForwardEntryRequest.cc @@ -33,7 +33,7 @@ long CreateForwardEntryRequest::getResourceOwnerId()const void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateForwardEntryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CreateForwardEntryRequest::getResourceOwnerAccount()const void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateForwardEntryRequest::getIpProtocol()const @@ -55,7 +55,7 @@ std::string CreateForwardEntryRequest::getIpProtocol()const void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) { ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); + setCoreParameter("IpProtocol", ipProtocol); } std::string CreateForwardEntryRequest::getForwardEntryName()const @@ -66,7 +66,7 @@ std::string CreateForwardEntryRequest::getForwardEntryName()const void CreateForwardEntryRequest::setForwardEntryName(const std::string& forwardEntryName) { forwardEntryName_ = forwardEntryName; - setParameter("ForwardEntryName", forwardEntryName); + setCoreParameter("ForwardEntryName", forwardEntryName); } std::string CreateForwardEntryRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateForwardEntryRequest::getOwnerAccount()const void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateForwardEntryRequest::getForwardTableId()const @@ -88,7 +88,7 @@ std::string CreateForwardEntryRequest::getForwardTableId()const void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) { forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); + setCoreParameter("ForwardTableId", forwardTableId); } long CreateForwardEntryRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateForwardEntryRequest::getOwnerId()const void CreateForwardEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateForwardEntryRequest::getInternalIp()const @@ -110,7 +110,7 @@ std::string CreateForwardEntryRequest::getInternalIp()const void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp) { internalIp_ = internalIp; - setParameter("InternalIp", internalIp); + setCoreParameter("InternalIp", internalIp); } std::string CreateForwardEntryRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string CreateForwardEntryRequest::getRegionId()const void CreateForwardEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateForwardEntryRequest::getInternalPort()const @@ -132,7 +132,7 @@ std::string CreateForwardEntryRequest::getInternalPort()const void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort) { internalPort_ = internalPort; - setParameter("InternalPort", internalPort); + setCoreParameter("InternalPort", internalPort); } std::string CreateForwardEntryRequest::getExternalIp()const @@ -143,7 +143,7 @@ std::string CreateForwardEntryRequest::getExternalIp()const void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp) { externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); + setCoreParameter("ExternalIp", externalIp); } std::string CreateForwardEntryRequest::getExternalPort()const @@ -154,6 +154,6 @@ std::string CreateForwardEntryRequest::getExternalPort()const void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort) { externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); + setCoreParameter("ExternalPort", externalPort); } diff --git a/vpc/src/model/CreateForwardEntryResult.cc b/vpc/src/model/CreateForwardEntryResult.cc index 50355b36e..8cf09e42f 100644 --- a/vpc/src/model/CreateForwardEntryResult.cc +++ b/vpc/src/model/CreateForwardEntryResult.cc @@ -35,10 +35,13 @@ CreateForwardEntryResult::~CreateForwardEntryResult() void CreateForwardEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["ForwardEntryId"].isNull()) forwardEntryId_ = value["ForwardEntryId"].asString(); diff --git a/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc index 9c2b08b0a..baa4ea111 100644 --- a/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/CreateGlobalAccelerationInstanceRequest.cc @@ -33,7 +33,7 @@ long CreateGlobalAccelerationInstanceRequest::getResourceOwnerId()const void CreateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType()const @@ -44,7 +44,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getBandwidthType()const void CreateGlobalAccelerationInstanceRequest::setBandwidthType(const std::string& bandwidthType) { bandwidthType_ = bandwidthType; - setParameter("BandwidthType", bandwidthType); + setCoreParameter("BandwidthType", bandwidthType); } std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()co void CreateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation()const @@ -66,7 +66,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getServiceLocation()const void CreateGlobalAccelerationInstanceRequest::setServiceLocation(const std::string& serviceLocation) { serviceLocation_ = serviceLocation; - setParameter("ServiceLocation", serviceLocation); + setCoreParameter("ServiceLocation", serviceLocation); } std::string CreateGlobalAccelerationInstanceRequest::getBandwidth()const @@ -77,7 +77,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getBandwidth()const void CreateGlobalAccelerationInstanceRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string CreateGlobalAccelerationInstanceRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getClientToken()const void CreateGlobalAccelerationInstanceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getOwnerAccount()const void CreateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateGlobalAccelerationInstanceRequest::getDescription()const @@ -110,7 +110,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getDescription()const void CreateGlobalAccelerationInstanceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateGlobalAccelerationInstanceRequest::getOwnerId()const @@ -121,7 +121,7 @@ long CreateGlobalAccelerationInstanceRequest::getOwnerId()const void CreateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateGlobalAccelerationInstanceRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getRegionId()const void CreateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateGlobalAccelerationInstanceRequest::getInternetChargeType()const @@ -143,7 +143,7 @@ std::string CreateGlobalAccelerationInstanceRequest::getInternetChargeType()cons void CreateGlobalAccelerationInstanceRequest::setInternetChargeType(const std::string& internetChargeType) { internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); + setCoreParameter("InternetChargeType", internetChargeType); } std::string CreateGlobalAccelerationInstanceRequest::getName()const @@ -154,6 +154,6 @@ std::string CreateGlobalAccelerationInstanceRequest::getName()const void CreateGlobalAccelerationInstanceRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/CreateGlobalAccelerationInstanceResult.cc b/vpc/src/model/CreateGlobalAccelerationInstanceResult.cc index 34604b3d4..ac826112d 100644 --- a/vpc/src/model/CreateGlobalAccelerationInstanceResult.cc +++ b/vpc/src/model/CreateGlobalAccelerationInstanceResult.cc @@ -35,10 +35,13 @@ CreateGlobalAccelerationInstanceResult::~CreateGlobalAccelerationInstanceResult( void CreateGlobalAccelerationInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["GlobalAccelerationInstanceId"].isNull()) globalAccelerationInstanceId_ = value["GlobalAccelerationInstanceId"].asString(); diff --git a/vpc/src/model/CreateHaVipRequest.cc b/vpc/src/model/CreateHaVipRequest.cc index ee9a7ad66..caa167400 100644 --- a/vpc/src/model/CreateHaVipRequest.cc +++ b/vpc/src/model/CreateHaVipRequest.cc @@ -33,7 +33,7 @@ std::string CreateHaVipRequest::getVSwitchId()const void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string CreateHaVipRequest::getIpAddress()const @@ -44,7 +44,7 @@ std::string CreateHaVipRequest::getIpAddress()const void CreateHaVipRequest::setIpAddress(const std::string& ipAddress) { ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); + setCoreParameter("IpAddress", ipAddress); } long CreateHaVipRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long CreateHaVipRequest::getResourceOwnerId()const void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateHaVipRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateHaVipRequest::getResourceOwnerAccount()const void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateHaVipRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string CreateHaVipRequest::getClientToken()const void CreateHaVipRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateHaVipRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string CreateHaVipRequest::getRegionId()const void CreateHaVipRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateHaVipRequest::getOwnerAccount()const @@ -99,7 +99,18 @@ std::string CreateHaVipRequest::getOwnerAccount()const void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateHaVipRequest::getName()const +{ + return name_; +} + +void CreateHaVipRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); } std::string CreateHaVipRequest::getDescription()const @@ -110,7 +121,7 @@ std::string CreateHaVipRequest::getDescription()const void CreateHaVipRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateHaVipRequest::getOwnerId()const @@ -121,6 +132,6 @@ long CreateHaVipRequest::getOwnerId()const void CreateHaVipRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/CreateHaVipResult.cc b/vpc/src/model/CreateHaVipResult.cc index cac316544..3340222e5 100644 --- a/vpc/src/model/CreateHaVipResult.cc +++ b/vpc/src/model/CreateHaVipResult.cc @@ -35,16 +35,26 @@ CreateHaVipResult::~CreateHaVipResult() void CreateHaVipResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["HaVipId"].isNull()) haVipId_ = value["HaVipId"].asString(); + if(!value["IpAddress"].isNull()) + ipAddress_ = value["IpAddress"].asString(); } +std::string CreateHaVipResult::getIpAddress()const +{ + return ipAddress_; +} + std::string CreateHaVipResult::getHaVipId()const { return haVipId_; diff --git a/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc b/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc index 032b88a11..1dd931e0d 100644 --- a/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc +++ b/vpc/src/model/CreateIPv6TranslatorAclListRequest.cc @@ -33,7 +33,7 @@ long CreateIPv6TranslatorAclListRequest::getResourceOwnerId()const void CreateIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateIPv6TranslatorAclListRequest::getAclName()const @@ -44,7 +44,7 @@ std::string CreateIPv6TranslatorAclListRequest::getAclName()const void CreateIPv6TranslatorAclListRequest::setAclName(const std::string& aclName) { aclName_ = aclName; - setParameter("AclName", aclName); + setCoreParameter("AclName", aclName); } std::string CreateIPv6TranslatorAclListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateIPv6TranslatorAclListRequest::getResourceOwnerAccount()const void CreateIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateIPv6TranslatorAclListRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string CreateIPv6TranslatorAclListRequest::getRegionId()const void CreateIPv6TranslatorAclListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateIPv6TranslatorAclListRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string CreateIPv6TranslatorAclListRequest::getClientToken()const void CreateIPv6TranslatorAclListRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateIPv6TranslatorAclListRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateIPv6TranslatorAclListRequest::getOwnerAccount()const void CreateIPv6TranslatorAclListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateIPv6TranslatorAclListRequest::getOwnerId()const @@ -99,6 +99,6 @@ long CreateIPv6TranslatorAclListRequest::getOwnerId()const void CreateIPv6TranslatorAclListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/CreateIPv6TranslatorAclListResult.cc b/vpc/src/model/CreateIPv6TranslatorAclListResult.cc index 37199bd41..fd7f0ae36 100644 --- a/vpc/src/model/CreateIPv6TranslatorAclListResult.cc +++ b/vpc/src/model/CreateIPv6TranslatorAclListResult.cc @@ -35,10 +35,13 @@ CreateIPv6TranslatorAclListResult::~CreateIPv6TranslatorAclListResult() void CreateIPv6TranslatorAclListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AclId"].isNull()) aclId_ = value["AclId"].asString(); diff --git a/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc b/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc index 56ebe1c2e..234e7934c 100644 --- a/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc +++ b/vpc/src/model/CreateIPv6TranslatorEntryRequest.cc @@ -33,7 +33,7 @@ int CreateIPv6TranslatorEntryRequest::getBackendIpv4Port()const void CreateIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port) { backendIpv4Port_ = backendIpv4Port; - setParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); + setCoreParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); } std::string CreateIPv6TranslatorEntryRequest::getAclId()const @@ -44,7 +44,7 @@ std::string CreateIPv6TranslatorEntryRequest::getAclId()const void CreateIPv6TranslatorEntryRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long CreateIPv6TranslatorEntryRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long CreateIPv6TranslatorEntryRequest::getResourceOwnerId()const void CreateIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateIPv6TranslatorEntryRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateIPv6TranslatorEntryRequest::getResourceOwnerAccount()const void CreateIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateIPv6TranslatorEntryRequest::getEntryName()const @@ -77,7 +77,7 @@ std::string CreateIPv6TranslatorEntryRequest::getEntryName()const void CreateIPv6TranslatorEntryRequest::setEntryName(const std::string& entryName) { entryName_ = entryName; - setParameter("EntryName", entryName); + setCoreParameter("EntryName", entryName); } std::string CreateIPv6TranslatorEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateIPv6TranslatorEntryRequest::getOwnerAccount()const void CreateIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateIPv6TranslatorEntryRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateIPv6TranslatorEntryRequest::getOwnerId()const void CreateIPv6TranslatorEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateIPv6TranslatorEntryRequest::getAclStatus()const @@ -110,7 +110,7 @@ std::string CreateIPv6TranslatorEntryRequest::getAclStatus()const void CreateIPv6TranslatorEntryRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } int CreateIPv6TranslatorEntryRequest::getEntryBandwidth()const @@ -121,7 +121,7 @@ int CreateIPv6TranslatorEntryRequest::getEntryBandwidth()const void CreateIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth) { entryBandwidth_ = entryBandwidth; - setParameter("EntryBandwidth", std::to_string(entryBandwidth)); + setCoreParameter("EntryBandwidth", std::to_string(entryBandwidth)); } std::string CreateIPv6TranslatorEntryRequest::getAclType()const @@ -132,7 +132,7 @@ std::string CreateIPv6TranslatorEntryRequest::getAclType()const void CreateIPv6TranslatorEntryRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } int CreateIPv6TranslatorEntryRequest::getAllocateIpv6Port()const @@ -143,7 +143,7 @@ int CreateIPv6TranslatorEntryRequest::getAllocateIpv6Port()const void CreateIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port) { allocateIpv6Port_ = allocateIpv6Port; - setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); + setCoreParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); } std::string CreateIPv6TranslatorEntryRequest::getEntryDescription()const @@ -154,7 +154,7 @@ std::string CreateIPv6TranslatorEntryRequest::getEntryDescription()const void CreateIPv6TranslatorEntryRequest::setEntryDescription(const std::string& entryDescription) { entryDescription_ = entryDescription; - setParameter("EntryDescription", entryDescription); + setCoreParameter("EntryDescription", entryDescription); } std::string CreateIPv6TranslatorEntryRequest::getRegionId()const @@ -165,7 +165,7 @@ std::string CreateIPv6TranslatorEntryRequest::getRegionId()const void CreateIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateIPv6TranslatorEntryRequest::getBackendIpv4Addr()const @@ -176,7 +176,7 @@ std::string CreateIPv6TranslatorEntryRequest::getBackendIpv4Addr()const void CreateIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr) { backendIpv4Addr_ = backendIpv4Addr; - setParameter("BackendIpv4Addr", backendIpv4Addr); + setCoreParameter("BackendIpv4Addr", backendIpv4Addr); } std::string CreateIPv6TranslatorEntryRequest::getTransProtocol()const @@ -187,7 +187,7 @@ std::string CreateIPv6TranslatorEntryRequest::getTransProtocol()const void CreateIPv6TranslatorEntryRequest::setTransProtocol(const std::string& transProtocol) { transProtocol_ = transProtocol; - setParameter("TransProtocol", transProtocol); + setCoreParameter("TransProtocol", transProtocol); } std::string CreateIPv6TranslatorEntryRequest::getIpv6TranslatorId()const @@ -198,6 +198,6 @@ std::string CreateIPv6TranslatorEntryRequest::getIpv6TranslatorId()const void CreateIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) { ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); + setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId); } diff --git a/vpc/src/model/CreateIPv6TranslatorEntryResult.cc b/vpc/src/model/CreateIPv6TranslatorEntryResult.cc index 675c63468..76b4197c4 100644 --- a/vpc/src/model/CreateIPv6TranslatorEntryResult.cc +++ b/vpc/src/model/CreateIPv6TranslatorEntryResult.cc @@ -35,10 +35,13 @@ CreateIPv6TranslatorEntryResult::~CreateIPv6TranslatorEntryResult() void CreateIPv6TranslatorEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ipv6TranslatorEntryId"].isNull()) ipv6TranslatorEntryId_ = value["Ipv6TranslatorEntryId"].asString(); diff --git a/vpc/src/model/CreateIPv6TranslatorRequest.cc b/vpc/src/model/CreateIPv6TranslatorRequest.cc index fdc3ef8c7..c0431f407 100644 --- a/vpc/src/model/CreateIPv6TranslatorRequest.cc +++ b/vpc/src/model/CreateIPv6TranslatorRequest.cc @@ -33,7 +33,7 @@ long CreateIPv6TranslatorRequest::getResourceOwnerId()const void CreateIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool CreateIPv6TranslatorRequest::getAutoPay()const @@ -44,7 +44,7 @@ bool CreateIPv6TranslatorRequest::getAutoPay()const void CreateIPv6TranslatorRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string CreateIPv6TranslatorRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateIPv6TranslatorRequest::getResourceOwnerAccount()const void CreateIPv6TranslatorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateIPv6TranslatorRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CreateIPv6TranslatorRequest::getClientToken()const void CreateIPv6TranslatorRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } int CreateIPv6TranslatorRequest::getBandwidth()const @@ -77,7 +77,7 @@ int CreateIPv6TranslatorRequest::getBandwidth()const void CreateIPv6TranslatorRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreateIPv6TranslatorRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateIPv6TranslatorRequest::getOwnerAccount()const void CreateIPv6TranslatorRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateIPv6TranslatorRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateIPv6TranslatorRequest::getOwnerId()const void CreateIPv6TranslatorRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateIPv6TranslatorRequest::getSpec()const @@ -110,7 +110,7 @@ std::string CreateIPv6TranslatorRequest::getSpec()const void CreateIPv6TranslatorRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } int CreateIPv6TranslatorRequest::getDuration()const @@ -121,7 +121,7 @@ int CreateIPv6TranslatorRequest::getDuration()const void CreateIPv6TranslatorRequest::setDuration(int duration) { duration_ = duration; - setParameter("Duration", std::to_string(duration)); + setCoreParameter("Duration", std::to_string(duration)); } std::string CreateIPv6TranslatorRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateIPv6TranslatorRequest::getRegionId()const void CreateIPv6TranslatorRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateIPv6TranslatorRequest::getName()const @@ -143,7 +143,7 @@ std::string CreateIPv6TranslatorRequest::getName()const void CreateIPv6TranslatorRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateIPv6TranslatorRequest::getPayType()const @@ -154,7 +154,7 @@ std::string CreateIPv6TranslatorRequest::getPayType()const void CreateIPv6TranslatorRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); } std::string CreateIPv6TranslatorRequest::getPricingCycle()const @@ -165,6 +165,6 @@ std::string CreateIPv6TranslatorRequest::getPricingCycle()const void CreateIPv6TranslatorRequest::setPricingCycle(const std::string& pricingCycle) { pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); + setCoreParameter("PricingCycle", pricingCycle); } diff --git a/vpc/src/model/CreateIPv6TranslatorResult.cc b/vpc/src/model/CreateIPv6TranslatorResult.cc index 5fd3aef85..dbb043cf6 100644 --- a/vpc/src/model/CreateIPv6TranslatorResult.cc +++ b/vpc/src/model/CreateIPv6TranslatorResult.cc @@ -35,10 +35,13 @@ CreateIPv6TranslatorResult::~CreateIPv6TranslatorResult() void CreateIPv6TranslatorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ipv6TranslatorId"].isNull()) ipv6TranslatorId_ = value["Ipv6TranslatorId"].asString(); diff --git a/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc b/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc index e7b9bc979..730de47a1 100644 --- a/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc +++ b/vpc/src/model/CreateIpv6EgressOnlyRuleRequest.cc @@ -33,7 +33,7 @@ long CreateIpv6EgressOnlyRuleRequest::getResourceOwnerId()const void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateIpv6EgressOnlyRuleRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getClientToken()const void CreateIpv6EgressOnlyRuleRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long CreateIpv6EgressOnlyRuleRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long CreateIpv6EgressOnlyRuleRequest::getCallerParentId()const void CreateIpv6EgressOnlyRuleRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string CreateIpv6EgressOnlyRuleRequest::getDescription()const @@ -66,7 +66,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getDescription()const void CreateIpv6EgressOnlyRuleRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } bool CreateIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()cons void CreateIpv6EgressOnlyRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string CreateIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const void CreateIpv6EgressOnlyRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string CreateIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const void CreateIpv6EgressOnlyRuleRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string CreateIpv6EgressOnlyRuleRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerType()const void CreateIpv6EgressOnlyRuleRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string CreateIpv6EgressOnlyRuleRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getAccessKeyId()const void CreateIpv6EgressOnlyRuleRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateIpv6EgressOnlyRuleRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getResourceGroupId()const void CreateIpv6EgressOnlyRuleRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string CreateIpv6EgressOnlyRuleRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getRegionId()const void CreateIpv6EgressOnlyRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateIpv6EgressOnlyRuleRequest::getSecurityToken()const @@ -154,7 +154,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getSecurityToken()const void CreateIpv6EgressOnlyRuleRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool CreateIpv6EgressOnlyRuleRequest::getEnable()const @@ -165,7 +165,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getEnable()const void CreateIpv6EgressOnlyRuleRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string CreateIpv6EgressOnlyRuleRequest::getRequestContent()const @@ -176,7 +176,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getRequestContent()const void CreateIpv6EgressOnlyRuleRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string CreateIpv6EgressOnlyRuleRequest::getInstanceType()const @@ -187,7 +187,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getInstanceType()const void CreateIpv6EgressOnlyRuleRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } std::string CreateIpv6EgressOnlyRuleRequest::getCallerBidEmail()const @@ -198,7 +198,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerBidEmail()const void CreateIpv6EgressOnlyRuleRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string CreateIpv6EgressOnlyRuleRequest::getCallerUidEmail()const @@ -209,7 +209,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerUidEmail()const void CreateIpv6EgressOnlyRuleRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long CreateIpv6EgressOnlyRuleRequest::getCallerUid()const @@ -220,7 +220,7 @@ long CreateIpv6EgressOnlyRuleRequest::getCallerUid()const void CreateIpv6EgressOnlyRuleRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string CreateIpv6EgressOnlyRuleRequest::getApp_ip()const @@ -231,7 +231,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getApp_ip()const void CreateIpv6EgressOnlyRuleRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string CreateIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const @@ -242,7 +242,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const void CreateIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateIpv6EgressOnlyRuleRequest::getOwnerAccount()const @@ -253,7 +253,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getOwnerAccount()const void CreateIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateIpv6EgressOnlyRuleRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getCallerBid()const void CreateIpv6EgressOnlyRuleRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long CreateIpv6EgressOnlyRuleRequest::getOwnerId()const @@ -275,7 +275,7 @@ long CreateIpv6EgressOnlyRuleRequest::getOwnerId()const void CreateIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool CreateIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const void CreateIpv6EgressOnlyRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool CreateIpv6EgressOnlyRuleRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getAk_mfa_present()const void CreateIpv6EgressOnlyRuleRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool CreateIpv6EgressOnlyRuleRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool CreateIpv6EgressOnlyRuleRequest::getSecurity_transport()const void CreateIpv6EgressOnlyRuleRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string CreateIpv6EgressOnlyRuleRequest::getInstanceId()const @@ -319,7 +319,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getInstanceId()const void CreateIpv6EgressOnlyRuleRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string CreateIpv6EgressOnlyRuleRequest::getRequestId()const @@ -330,7 +330,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getRequestId()const void CreateIpv6EgressOnlyRuleRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string CreateIpv6EgressOnlyRuleRequest::getIpv6GatewayId()const @@ -341,7 +341,7 @@ std::string CreateIpv6EgressOnlyRuleRequest::getIpv6GatewayId()const void CreateIpv6EgressOnlyRuleRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } std::string CreateIpv6EgressOnlyRuleRequest::getName()const @@ -352,6 +352,6 @@ std::string CreateIpv6EgressOnlyRuleRequest::getName()const void CreateIpv6EgressOnlyRuleRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/CreateIpv6EgressOnlyRuleResult.cc b/vpc/src/model/CreateIpv6EgressOnlyRuleResult.cc index 7675b92f2..7ab0dbeb4 100644 --- a/vpc/src/model/CreateIpv6EgressOnlyRuleResult.cc +++ b/vpc/src/model/CreateIpv6EgressOnlyRuleResult.cc @@ -35,10 +35,13 @@ CreateIpv6EgressOnlyRuleResult::~CreateIpv6EgressOnlyRuleResult() void CreateIpv6EgressOnlyRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ipv6EgressRuleId"].isNull()) ipv6EgressRuleId_ = value["Ipv6EgressRuleId"].asString(); diff --git a/vpc/src/model/CreateIpv6GatewayRequest.cc b/vpc/src/model/CreateIpv6GatewayRequest.cc index ffe2279e4..ded300a50 100644 --- a/vpc/src/model/CreateIpv6GatewayRequest.cc +++ b/vpc/src/model/CreateIpv6GatewayRequest.cc @@ -33,7 +33,7 @@ long CreateIpv6GatewayRequest::getResourceOwnerId()const void CreateIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateIpv6GatewayRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string CreateIpv6GatewayRequest::getClientToken()const void CreateIpv6GatewayRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long CreateIpv6GatewayRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long CreateIpv6GatewayRequest::getCallerParentId()const void CreateIpv6GatewayRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string CreateIpv6GatewayRequest::getDescription()const @@ -66,7 +66,7 @@ std::string CreateIpv6GatewayRequest::getDescription()const void CreateIpv6GatewayRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } bool CreateIpv6GatewayRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool CreateIpv6GatewayRequest::getProxy_original_security_transport()const void CreateIpv6GatewayRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string CreateIpv6GatewayRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string CreateIpv6GatewayRequest::getProxy_original_source_ip()const void CreateIpv6GatewayRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string CreateIpv6GatewayRequest::getSpec()const @@ -99,7 +99,7 @@ std::string CreateIpv6GatewayRequest::getSpec()const void CreateIpv6GatewayRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } std::string CreateIpv6GatewayRequest::getOwnerIdLoginEmail()const @@ -110,7 +110,7 @@ std::string CreateIpv6GatewayRequest::getOwnerIdLoginEmail()const void CreateIpv6GatewayRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string CreateIpv6GatewayRequest::getCallerType()const @@ -121,7 +121,7 @@ std::string CreateIpv6GatewayRequest::getCallerType()const void CreateIpv6GatewayRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string CreateIpv6GatewayRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string CreateIpv6GatewayRequest::getAccessKeyId()const void CreateIpv6GatewayRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateIpv6GatewayRequest::getResourceGroupId()const @@ -143,7 +143,7 @@ std::string CreateIpv6GatewayRequest::getResourceGroupId()const void CreateIpv6GatewayRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string CreateIpv6GatewayRequest::getRegionId()const @@ -154,7 +154,7 @@ std::string CreateIpv6GatewayRequest::getRegionId()const void CreateIpv6GatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateIpv6GatewayRequest::getSecurityToken()const @@ -165,7 +165,7 @@ std::string CreateIpv6GatewayRequest::getSecurityToken()const void CreateIpv6GatewayRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool CreateIpv6GatewayRequest::getEnable()const @@ -176,7 +176,7 @@ bool CreateIpv6GatewayRequest::getEnable()const void CreateIpv6GatewayRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string CreateIpv6GatewayRequest::getRequestContent()const @@ -187,7 +187,7 @@ std::string CreateIpv6GatewayRequest::getRequestContent()const void CreateIpv6GatewayRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string CreateIpv6GatewayRequest::getCallerBidEmail()const @@ -198,7 +198,7 @@ std::string CreateIpv6GatewayRequest::getCallerBidEmail()const void CreateIpv6GatewayRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string CreateIpv6GatewayRequest::getCallerUidEmail()const @@ -209,7 +209,7 @@ std::string CreateIpv6GatewayRequest::getCallerUidEmail()const void CreateIpv6GatewayRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long CreateIpv6GatewayRequest::getCallerUid()const @@ -220,7 +220,7 @@ long CreateIpv6GatewayRequest::getCallerUid()const void CreateIpv6GatewayRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string CreateIpv6GatewayRequest::getApp_ip()const @@ -231,7 +231,7 @@ std::string CreateIpv6GatewayRequest::getApp_ip()const void CreateIpv6GatewayRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string CreateIpv6GatewayRequest::getResourceOwnerAccount()const @@ -242,7 +242,7 @@ std::string CreateIpv6GatewayRequest::getResourceOwnerAccount()const void CreateIpv6GatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateIpv6GatewayRequest::getOwnerAccount()const @@ -253,7 +253,7 @@ std::string CreateIpv6GatewayRequest::getOwnerAccount()const void CreateIpv6GatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateIpv6GatewayRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string CreateIpv6GatewayRequest::getCallerBid()const void CreateIpv6GatewayRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long CreateIpv6GatewayRequest::getOwnerId()const @@ -275,7 +275,7 @@ long CreateIpv6GatewayRequest::getOwnerId()const void CreateIpv6GatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool CreateIpv6GatewayRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool CreateIpv6GatewayRequest::getProxy_trust_transport_info()const void CreateIpv6GatewayRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool CreateIpv6GatewayRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool CreateIpv6GatewayRequest::getAk_mfa_present()const void CreateIpv6GatewayRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool CreateIpv6GatewayRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool CreateIpv6GatewayRequest::getSecurity_transport()const void CreateIpv6GatewayRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string CreateIpv6GatewayRequest::getRequestId()const @@ -319,7 +319,7 @@ std::string CreateIpv6GatewayRequest::getRequestId()const void CreateIpv6GatewayRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string CreateIpv6GatewayRequest::getVpcId()const @@ -330,7 +330,7 @@ std::string CreateIpv6GatewayRequest::getVpcId()const void CreateIpv6GatewayRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string CreateIpv6GatewayRequest::getName()const @@ -341,6 +341,6 @@ std::string CreateIpv6GatewayRequest::getName()const void CreateIpv6GatewayRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/CreateIpv6GatewayResult.cc b/vpc/src/model/CreateIpv6GatewayResult.cc index f92003991..b9f147e2f 100644 --- a/vpc/src/model/CreateIpv6GatewayResult.cc +++ b/vpc/src/model/CreateIpv6GatewayResult.cc @@ -35,10 +35,13 @@ CreateIpv6GatewayResult::~CreateIpv6GatewayResult() void CreateIpv6GatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Ipv6GatewayId"].isNull()) ipv6GatewayId_ = value["Ipv6GatewayId"].asString(); diff --git a/vpc/src/model/CreateNatGatewayRequest.cc b/vpc/src/model/CreateNatGatewayRequest.cc index a24c3f41e..fca508b30 100644 --- a/vpc/src/model/CreateNatGatewayRequest.cc +++ b/vpc/src/model/CreateNatGatewayRequest.cc @@ -33,7 +33,7 @@ long CreateNatGatewayRequest::getResourceOwnerId()const void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool CreateNatGatewayRequest::getAutoPay()const @@ -44,7 +44,7 @@ bool CreateNatGatewayRequest::getAutoPay()const void CreateNatGatewayRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string CreateNatGatewayRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateNatGatewayRequest::getResourceOwnerAccount()const void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateNatGatewayRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CreateNatGatewayRequest::getClientToken()const void CreateNatGatewayRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateNatGatewayRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateNatGatewayRequest::getOwnerAccount()const void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateNatGatewayRequest::getDescription()const @@ -88,7 +88,7 @@ std::string CreateNatGatewayRequest::getDescription()const void CreateNatGatewayRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateNatGatewayRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateNatGatewayRequest::getOwnerId()const void CreateNatGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateNatGatewayRequest::getSpec()const @@ -110,7 +110,7 @@ std::string CreateNatGatewayRequest::getSpec()const void CreateNatGatewayRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } std::string CreateNatGatewayRequest::getDuration()const @@ -121,7 +121,7 @@ std::string CreateNatGatewayRequest::getDuration()const void CreateNatGatewayRequest::setDuration(const std::string& duration) { duration_ = duration; - setParameter("Duration", duration); + setCoreParameter("Duration", duration); } std::string CreateNatGatewayRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateNatGatewayRequest::getRegionId()const void CreateNatGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateNatGatewayRequest::getVpcId()const @@ -143,7 +143,7 @@ std::string CreateNatGatewayRequest::getVpcId()const void CreateNatGatewayRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string CreateNatGatewayRequest::getName()const @@ -154,7 +154,7 @@ std::string CreateNatGatewayRequest::getName()const void CreateNatGatewayRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::vector CreateNatGatewayRequest::getBandwidthPackage()const @@ -169,11 +169,11 @@ void CreateNatGatewayRequest::setBandwidthPackage(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; for (const auto &item : allForwardTableIds) diff --git a/vpc/src/model/CreateNetworkAclRequest.cc b/vpc/src/model/CreateNetworkAclRequest.cc new file mode 100644 index 000000000..4e26c612f --- /dev/null +++ b/vpc/src/model/CreateNetworkAclRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::CreateNetworkAclRequest; + +CreateNetworkAclRequest::CreateNetworkAclRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateNetworkAcl") +{} + +CreateNetworkAclRequest::~CreateNetworkAclRequest() +{} + +long CreateNetworkAclRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateNetworkAclRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateNetworkAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long CreateNetworkAclRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateNetworkAclRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string CreateNetworkAclRequest::getDescription()const +{ + return description_; +} + +void CreateNetworkAclRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +bool CreateNetworkAclRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateNetworkAclRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string CreateNetworkAclRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateNetworkAclRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateNetworkAclRequest::getCallerType()const +{ + return callerType_; +} + +void CreateNetworkAclRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string CreateNetworkAclRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateNetworkAclRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateNetworkAclRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateNetworkAclRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateNetworkAclRequest::getRegionId()const +{ + return regionId_; +} + +void CreateNetworkAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateNetworkAclRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateNetworkAclRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool CreateNetworkAclRequest::getEnable()const +{ + return enable_; +} + +void CreateNetworkAclRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string CreateNetworkAclRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateNetworkAclRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string CreateNetworkAclRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateNetworkAclRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateNetworkAclRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateNetworkAclRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long CreateNetworkAclRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateNetworkAclRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateNetworkAclRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateNetworkAclRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string CreateNetworkAclRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateNetworkAclRequest::getNetworkAclName()const +{ + return networkAclName_; +} + +void CreateNetworkAclRequest::setNetworkAclName(const std::string& networkAclName) +{ + networkAclName_ = networkAclName; + setCoreParameter("NetworkAclName", networkAclName); +} + +std::string CreateNetworkAclRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateNetworkAclRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long CreateNetworkAclRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateNetworkAclRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool CreateNetworkAclRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateNetworkAclRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool CreateNetworkAclRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateNetworkAclRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool CreateNetworkAclRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateNetworkAclRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string CreateNetworkAclRequest::getRequestId()const +{ + return requestId_; +} + +void CreateNetworkAclRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string CreateNetworkAclRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateNetworkAclRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + diff --git a/vpc/src/model/CreateNetworkAclResult.cc b/vpc/src/model/CreateNetworkAclResult.cc new file mode 100644 index 000000000..23f2c6744 --- /dev/null +++ b/vpc/src/model/CreateNetworkAclResult.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateNetworkAclResult::CreateNetworkAclResult() : + ServiceResult() +{} + +CreateNetworkAclResult::CreateNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkAclResult::~CreateNetworkAclResult() +{} + +void CreateNetworkAclResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto networkAclAttributeNode = value["NetworkAclAttribute"]; + if(!networkAclAttributeNode["NetworkAclId"].isNull()) + networkAclAttribute_.networkAclId = networkAclAttributeNode["NetworkAclId"].asString(); + if(!networkAclAttributeNode["RegionId"].isNull()) + networkAclAttribute_.regionId = networkAclAttributeNode["RegionId"].asString(); + if(!networkAclAttributeNode["NetworkAclName"].isNull()) + networkAclAttribute_.networkAclName = networkAclAttributeNode["NetworkAclName"].asString(); + if(!networkAclAttributeNode["Description"].isNull()) + networkAclAttribute_.description = networkAclAttributeNode["Description"].asString(); + if(!networkAclAttributeNode["VpcId"].isNull()) + networkAclAttribute_.vpcId = networkAclAttributeNode["VpcId"].asString(); + if(!networkAclAttributeNode["CreationTime"].isNull()) + networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString(); + if(!networkAclAttributeNode["Status"].isNull()) + networkAclAttribute_.status = networkAclAttributeNode["Status"].asString(); + auto allIngressAclEntries = value["IngressAclEntries"]["IngressAclEntry"]; + for (auto value : allIngressAclEntries) + { + NetworkAclAttribute::IngressAclEntry ingressAclEntryObject; + if(!value["NetworkAclEntryId"].isNull()) + ingressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString(); + if(!value["Policy"].isNull()) + ingressAclEntryObject.policy = value["Policy"].asString(); + if(!value["Protocol"].isNull()) + ingressAclEntryObject.protocol = value["Protocol"].asString(); + if(!value["SourceCidrIp"].isNull()) + ingressAclEntryObject.sourceCidrIp = value["SourceCidrIp"].asString(); + if(!value["Port"].isNull()) + ingressAclEntryObject.port = value["Port"].asString(); + if(!value["EntryType"].isNull()) + ingressAclEntryObject.entryType = value["EntryType"].asString(); + if(!value["NetworkAclEntryName"].isNull()) + ingressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString(); + if(!value["Description"].isNull()) + ingressAclEntryObject.description = value["Description"].asString(); + networkAclAttribute_.ingressAclEntries.push_back(ingressAclEntryObject); + } + auto allEgressAclEntries = value["EgressAclEntries"]["EgressAclEntry"]; + for (auto value : allEgressAclEntries) + { + NetworkAclAttribute::EgressAclEntry egressAclEntryObject; + if(!value["NetworkAclEntryId"].isNull()) + egressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString(); + if(!value["Policy"].isNull()) + egressAclEntryObject.policy = value["Policy"].asString(); + if(!value["Protocol"].isNull()) + egressAclEntryObject.protocol = value["Protocol"].asString(); + if(!value["DestinationCidrIp"].isNull()) + egressAclEntryObject.destinationCidrIp = value["DestinationCidrIp"].asString(); + if(!value["Port"].isNull()) + egressAclEntryObject.port = value["Port"].asString(); + if(!value["EntryType"].isNull()) + egressAclEntryObject.entryType = value["EntryType"].asString(); + if(!value["Description"].isNull()) + egressAclEntryObject.description = value["Description"].asString(); + if(!value["NetworkAclEntryName"].isNull()) + egressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString(); + networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject); + } + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + NetworkAclAttribute::Resource resourceObject; + if(!value["ResourceId"].isNull()) + resourceObject.resourceId = value["ResourceId"].asString(); + if(!value["ResourceType"].isNull()) + resourceObject.resourceType = value["ResourceType"].asString(); + if(!value["Status"].isNull()) + resourceObject.status = value["Status"].asString(); + networkAclAttribute_.resources.push_back(resourceObject); + } + if(!value["NetworkAclId"].isNull()) + networkAclId_ = value["NetworkAclId"].asString(); + +} + +std::string CreateNetworkAclResult::getNetworkAclId()const +{ + return networkAclId_; +} + +CreateNetworkAclResult::NetworkAclAttribute CreateNetworkAclResult::getNetworkAclAttribute()const +{ + return networkAclAttribute_; +} + diff --git a/vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc new file mode 100644 index 000000000..fa379f25b --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionOccupancyOrderRequest; + +CreatePhysicalConnectionOccupancyOrderRequest::CreatePhysicalConnectionOccupancyOrderRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionOccupancyOrder") +{} + +CreatePhysicalConnectionOccupancyOrderRequest::~CreatePhysicalConnectionOccupancyOrderRequest() +{} + +int CreatePhysicalConnectionOccupancyOrderRequest::getPeriod()const +{ + return period_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setPeriod(int period) +{ + period_ = period; + setCoreParameter("Period", std::to_string(period)); +} + +long CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool CreatePhysicalConnectionOccupancyOrderRequest::getAutoPay()const +{ + return autoPay_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string CreatePhysicalConnectionOccupancyOrderRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreatePhysicalConnectionOccupancyOrderRequest::getClientToken()const +{ + return clientToken_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreatePhysicalConnectionOccupancyOrderRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setCoreParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string CreatePhysicalConnectionOccupancyOrderRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long CreatePhysicalConnectionOccupancyOrderRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreatePhysicalConnectionOccupancyOrderRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setCoreParameter("InstanceChargeType", instanceChargeType); +} + +std::string CreatePhysicalConnectionOccupancyOrderRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void CreatePhysicalConnectionOccupancyOrderRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setCoreParameter("PricingCycle", pricingCycle); +} + diff --git a/vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc new file mode 100644 index 000000000..97bef91f0 --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionOccupancyOrderResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreatePhysicalConnectionOccupancyOrderResult::CreatePhysicalConnectionOccupancyOrderResult() : + ServiceResult() +{} + +CreatePhysicalConnectionOccupancyOrderResult::CreatePhysicalConnectionOccupancyOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePhysicalConnectionOccupancyOrderResult::~CreatePhysicalConnectionOccupancyOrderResult() +{} + +void CreatePhysicalConnectionOccupancyOrderResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/CreatePhysicalConnectionRequest.cc b/vpc/src/model/CreatePhysicalConnectionRequest.cc index 3ffb422cb..9df6f0323 100644 --- a/vpc/src/model/CreatePhysicalConnectionRequest.cc +++ b/vpc/src/model/CreatePhysicalConnectionRequest.cc @@ -33,7 +33,7 @@ std::string CreatePhysicalConnectionRequest::getAccessPointId()const void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId) { accessPointId_ = accessPointId; - setParameter("AccessPointId", accessPointId); + setCoreParameter("AccessPointId", accessPointId); } std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const @@ -44,7 +44,7 @@ std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()c void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) { redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; - setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); + setCoreParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); } std::string CreatePhysicalConnectionRequest::getPeerLocation()const @@ -55,7 +55,7 @@ std::string CreatePhysicalConnectionRequest::getPeerLocation()const void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation) { peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); + setCoreParameter("PeerLocation", peerLocation); } long CreatePhysicalConnectionRequest::getResourceOwnerId()const @@ -66,7 +66,7 @@ long CreatePhysicalConnectionRequest::getResourceOwnerId()const void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreatePhysicalConnectionRequest::getPortType()const @@ -77,7 +77,7 @@ std::string CreatePhysicalConnectionRequest::getPortType()const void CreatePhysicalConnectionRequest::setPortType(const std::string& portType) { portType_ = portType; - setParameter("PortType", portType); + setCoreParameter("PortType", portType); } std::string CreatePhysicalConnectionRequest::getCircuitCode()const @@ -88,7 +88,7 @@ std::string CreatePhysicalConnectionRequest::getCircuitCode()const void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode) { circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); + setCoreParameter("CircuitCode", circuitCode); } int CreatePhysicalConnectionRequest::getBandwidth()const @@ -99,7 +99,7 @@ int CreatePhysicalConnectionRequest::getBandwidth()const void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string CreatePhysicalConnectionRequest::getClientToken()const @@ -110,7 +110,7 @@ std::string CreatePhysicalConnectionRequest::getClientToken()const void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const @@ -121,7 +121,7 @@ std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreatePhysicalConnectionRequest::getOwnerAccount()const @@ -132,7 +132,7 @@ std::string CreatePhysicalConnectionRequest::getOwnerAccount()const void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreatePhysicalConnectionRequest::getDescription()const @@ -143,7 +143,7 @@ std::string CreatePhysicalConnectionRequest::getDescription()const void CreatePhysicalConnectionRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreatePhysicalConnectionRequest::getType()const @@ -154,7 +154,7 @@ std::string CreatePhysicalConnectionRequest::getType()const void CreatePhysicalConnectionRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } long CreatePhysicalConnectionRequest::getOwnerId()const @@ -165,7 +165,7 @@ long CreatePhysicalConnectionRequest::getOwnerId()const void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreatePhysicalConnectionRequest::getLineOperator()const @@ -176,7 +176,7 @@ std::string CreatePhysicalConnectionRequest::getLineOperator()const void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator) { lineOperator_ = lineOperator; - setParameter("LineOperator", lineOperator); + setCoreParameter("LineOperator", lineOperator); } std::string CreatePhysicalConnectionRequest::getRegionId()const @@ -187,7 +187,7 @@ std::string CreatePhysicalConnectionRequest::getRegionId()const void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreatePhysicalConnectionRequest::getName()const @@ -198,6 +198,6 @@ std::string CreatePhysicalConnectionRequest::getName()const void CreatePhysicalConnectionRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/CreatePhysicalConnectionResult.cc b/vpc/src/model/CreatePhysicalConnectionResult.cc index 766bcee73..1828ed0aa 100644 --- a/vpc/src/model/CreatePhysicalConnectionResult.cc +++ b/vpc/src/model/CreatePhysicalConnectionResult.cc @@ -35,10 +35,13 @@ CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult() void CreatePhysicalConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["PhysicalConnectionId"].isNull()) physicalConnectionId_ = value["PhysicalConnectionId"].asString(); diff --git a/vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc b/vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc new file mode 100644 index 000000000..dd0ba2bf2 --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionSetupOrderRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionSetupOrderRequest; + +CreatePhysicalConnectionSetupOrderRequest::CreatePhysicalConnectionSetupOrderRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionSetupOrder") +{} + +CreatePhysicalConnectionSetupOrderRequest::~CreatePhysicalConnectionSetupOrderRequest() +{} + +std::string CreatePhysicalConnectionSetupOrderRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setAccessPointId(const std::string& accessPointId) +{ + accessPointId_ = accessPointId; + setCoreParameter("AccessPointId", accessPointId); +} + +std::string CreatePhysicalConnectionSetupOrderRequest::getRedundantPhysicalConnectionId()const +{ + return redundantPhysicalConnectionId_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) +{ + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setCoreParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +} + +long CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreatePhysicalConnectionSetupOrderRequest::getPortType()const +{ + return portType_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setPortType(const std::string& portType) +{ + portType_ = portType; + setCoreParameter("PortType", portType); +} + +bool CreatePhysicalConnectionSetupOrderRequest::getAutoPay()const +{ + return autoPay_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string CreatePhysicalConnectionSetupOrderRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreatePhysicalConnectionSetupOrderRequest::getClientToken()const +{ + return clientToken_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreatePhysicalConnectionSetupOrderRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreatePhysicalConnectionSetupOrderRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long CreatePhysicalConnectionSetupOrderRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreatePhysicalConnectionSetupOrderRequest::getLineOperator()const +{ + return lineOperator_; +} + +void CreatePhysicalConnectionSetupOrderRequest::setLineOperator(const std::string& lineOperator) +{ + lineOperator_ = lineOperator; + setCoreParameter("LineOperator", lineOperator); +} + diff --git a/vpc/src/model/CreatePhysicalConnectionSetupOrderResult.cc b/vpc/src/model/CreatePhysicalConnectionSetupOrderResult.cc new file mode 100644 index 000000000..7cd4038ee --- /dev/null +++ b/vpc/src/model/CreatePhysicalConnectionSetupOrderResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreatePhysicalConnectionSetupOrderResult::CreatePhysicalConnectionSetupOrderResult() : + ServiceResult() +{} + +CreatePhysicalConnectionSetupOrderResult::CreatePhysicalConnectionSetupOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePhysicalConnectionSetupOrderResult::~CreatePhysicalConnectionSetupOrderResult() +{} + +void CreatePhysicalConnectionSetupOrderResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["PhysicalConnectionId"].isNull()) + physicalConnectionId_ = value["PhysicalConnectionId"].asString(); + +} + +std::string CreatePhysicalConnectionSetupOrderResult::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +std::string CreatePhysicalConnectionSetupOrderResult::getOrderId()const +{ + return orderId_; +} + diff --git a/vpc/src/model/CreateRouteEntryRequest.cc b/vpc/src/model/CreateRouteEntryRequest.cc index 98f77ee3e..bce245e92 100644 --- a/vpc/src/model/CreateRouteEntryRequest.cc +++ b/vpc/src/model/CreateRouteEntryRequest.cc @@ -33,7 +33,7 @@ long CreateRouteEntryRequest::getResourceOwnerId()const void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateRouteEntryRequest::getRouteEntryName()const @@ -44,7 +44,7 @@ std::string CreateRouteEntryRequest::getRouteEntryName()const void CreateRouteEntryRequest::setRouteEntryName(const std::string& routeEntryName) { routeEntryName_ = routeEntryName; - setParameter("RouteEntryName", routeEntryName); + setCoreParameter("RouteEntryName", routeEntryName); } std::string CreateRouteEntryRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateRouteEntryRequest::getResourceOwnerAccount()const void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateRouteEntryRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CreateRouteEntryRequest::getClientToken()const void CreateRouteEntryRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateRouteEntryRequest::getDestinationCidrBlock()const @@ -77,7 +77,7 @@ std::string CreateRouteEntryRequest::getDestinationCidrBlock()const void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) { destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); + setCoreParameter("DestinationCidrBlock", destinationCidrBlock); } std::string CreateRouteEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateRouteEntryRequest::getOwnerAccount()const void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateRouteEntryRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateRouteEntryRequest::getOwnerId()const void CreateRouteEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateRouteEntryRequest::getPrivateIpAddress()const @@ -110,7 +110,7 @@ std::string CreateRouteEntryRequest::getPrivateIpAddress()const void CreateRouteEntryRequest::setPrivateIpAddress(const std::string& privateIpAddress) { privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); + setCoreParameter("PrivateIpAddress", privateIpAddress); } std::string CreateRouteEntryRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string CreateRouteEntryRequest::getRegionId()const void CreateRouteEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateRouteEntryRequest::getNextHopId()const @@ -132,7 +132,7 @@ std::string CreateRouteEntryRequest::getNextHopId()const void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId) { nextHopId_ = nextHopId; - setParameter("NextHopId", nextHopId); + setCoreParameter("NextHopId", nextHopId); } std::string CreateRouteEntryRequest::getNextHopType()const @@ -143,7 +143,7 @@ std::string CreateRouteEntryRequest::getNextHopType()const void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType) { nextHopType_ = nextHopType; - setParameter("NextHopType", nextHopType); + setCoreParameter("NextHopType", nextHopType); } std::vector CreateRouteEntryRequest::getNextHopList()const @@ -158,9 +158,9 @@ void CreateRouteEntryRequest::setNextHopList(const std::vector& nex for(int i = 0; i!= nextHopList.size(); i++) { auto obj = nextHopList.at(i); std::string str ="NextHopList."+ std::to_string(i); - setParameter(str + ".Weight", std::to_string(obj.weight)); - setParameter(str + ".NextHopId", obj.nextHopId); - setParameter(str + ".NextHopType", obj.nextHopType); + setCoreParameter(str + ".Weight", std::to_string(obj.weight)); + setCoreParameter(str + ".NextHopId", obj.nextHopId); + setCoreParameter(str + ".NextHopType", obj.nextHopType); } } @@ -172,6 +172,6 @@ std::string CreateRouteEntryRequest::getRouteTableId()const void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } diff --git a/vpc/src/model/CreateRouteEntryResult.cc b/vpc/src/model/CreateRouteEntryResult.cc index da2e9aaaa..51a87d43a 100644 --- a/vpc/src/model/CreateRouteEntryResult.cc +++ b/vpc/src/model/CreateRouteEntryResult.cc @@ -35,10 +35,13 @@ CreateRouteEntryResult::~CreateRouteEntryResult() void CreateRouteEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/CreateRouteTableRequest.cc b/vpc/src/model/CreateRouteTableRequest.cc index 624b195c7..5389948d2 100644 --- a/vpc/src/model/CreateRouteTableRequest.cc +++ b/vpc/src/model/CreateRouteTableRequest.cc @@ -33,7 +33,7 @@ long CreateRouteTableRequest::getResourceOwnerId()const void CreateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateRouteTableRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string CreateRouteTableRequest::getClientToken()const void CreateRouteTableRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long CreateRouteTableRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long CreateRouteTableRequest::getCallerParentId()const void CreateRouteTableRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string CreateRouteTableRequest::getDescription()const @@ -66,7 +66,7 @@ std::string CreateRouteTableRequest::getDescription()const void CreateRouteTableRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } bool CreateRouteTableRequest::getProxy_original_security_transport()const @@ -77,7 +77,7 @@ bool CreateRouteTableRequest::getProxy_original_security_transport()const void CreateRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string CreateRouteTableRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string CreateRouteTableRequest::getProxy_original_source_ip()const void CreateRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string CreateRouteTableRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string CreateRouteTableRequest::getOwnerIdLoginEmail()const void CreateRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string CreateRouteTableRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string CreateRouteTableRequest::getCallerType()const void CreateRouteTableRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string CreateRouteTableRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string CreateRouteTableRequest::getAccessKeyId()const void CreateRouteTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string CreateRouteTableRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string CreateRouteTableRequest::getResourceGroupId()const void CreateRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string CreateRouteTableRequest::getRouteTableName()const @@ -143,7 +143,7 @@ std::string CreateRouteTableRequest::getRouteTableName()const void CreateRouteTableRequest::setRouteTableName(const std::string& routeTableName) { routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); + setCoreParameter("RouteTableName", routeTableName); } std::string CreateRouteTableRequest::getRegionId()const @@ -154,7 +154,7 @@ std::string CreateRouteTableRequest::getRegionId()const void CreateRouteTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateRouteTableRequest::getSecurityToken()const @@ -165,7 +165,7 @@ std::string CreateRouteTableRequest::getSecurityToken()const void CreateRouteTableRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool CreateRouteTableRequest::getEnable()const @@ -176,7 +176,7 @@ bool CreateRouteTableRequest::getEnable()const void CreateRouteTableRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string CreateRouteTableRequest::getRequestContent()const @@ -187,7 +187,7 @@ std::string CreateRouteTableRequest::getRequestContent()const void CreateRouteTableRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string CreateRouteTableRequest::getCallerBidEmail()const @@ -198,7 +198,7 @@ std::string CreateRouteTableRequest::getCallerBidEmail()const void CreateRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string CreateRouteTableRequest::getCallerUidEmail()const @@ -209,7 +209,7 @@ std::string CreateRouteTableRequest::getCallerUidEmail()const void CreateRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long CreateRouteTableRequest::getCallerUid()const @@ -220,7 +220,7 @@ long CreateRouteTableRequest::getCallerUid()const void CreateRouteTableRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string CreateRouteTableRequest::getApp_ip()const @@ -231,7 +231,7 @@ std::string CreateRouteTableRequest::getApp_ip()const void CreateRouteTableRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string CreateRouteTableRequest::getResourceOwnerAccount()const @@ -242,7 +242,7 @@ std::string CreateRouteTableRequest::getResourceOwnerAccount()const void CreateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateRouteTableRequest::getOwnerAccount()const @@ -253,7 +253,7 @@ std::string CreateRouteTableRequest::getOwnerAccount()const void CreateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateRouteTableRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string CreateRouteTableRequest::getCallerBid()const void CreateRouteTableRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long CreateRouteTableRequest::getOwnerId()const @@ -275,7 +275,7 @@ long CreateRouteTableRequest::getOwnerId()const void CreateRouteTableRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool CreateRouteTableRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool CreateRouteTableRequest::getProxy_trust_transport_info()const void CreateRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool CreateRouteTableRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool CreateRouteTableRequest::getAk_mfa_present()const void CreateRouteTableRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool CreateRouteTableRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool CreateRouteTableRequest::getSecurity_transport()const void CreateRouteTableRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string CreateRouteTableRequest::getRequestId()const @@ -319,7 +319,7 @@ std::string CreateRouteTableRequest::getRequestId()const void CreateRouteTableRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string CreateRouteTableRequest::getVpcId()const @@ -330,6 +330,6 @@ std::string CreateRouteTableRequest::getVpcId()const void CreateRouteTableRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } diff --git a/vpc/src/model/CreateRouteTableResult.cc b/vpc/src/model/CreateRouteTableResult.cc index d36a25849..3528d35a6 100644 --- a/vpc/src/model/CreateRouteTableResult.cc +++ b/vpc/src/model/CreateRouteTableResult.cc @@ -35,10 +35,13 @@ CreateRouteTableResult::~CreateRouteTableResult() void CreateRouteTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RouteTableId"].isNull()) routeTableId_ = value["RouteTableId"].asString(); diff --git a/vpc/src/model/CreateRouterInterfaceRequest.cc b/vpc/src/model/CreateRouterInterfaceRequest.cc index e859bb64a..3cf75e1cf 100644 --- a/vpc/src/model/CreateRouterInterfaceRequest.cc +++ b/vpc/src/model/CreateRouterInterfaceRequest.cc @@ -33,7 +33,7 @@ std::string CreateRouterInterfaceRequest::getAccessPointId()const void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId) { accessPointId_ = accessPointId; - setParameter("AccessPointId", accessPointId); + setCoreParameter("AccessPointId", accessPointId); } std::string CreateRouterInterfaceRequest::getOppositeRouterId()const @@ -44,7 +44,7 @@ std::string CreateRouterInterfaceRequest::getOppositeRouterId()const void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId) { oppositeRouterId_ = oppositeRouterId; - setParameter("OppositeRouterId", oppositeRouterId); + setCoreParameter("OppositeRouterId", oppositeRouterId); } std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const @@ -55,7 +55,7 @@ std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId) { oppositeAccessPointId_ = oppositeAccessPointId; - setParameter("OppositeAccessPointId", oppositeAccessPointId); + setCoreParameter("OppositeAccessPointId", oppositeAccessPointId); } long CreateRouterInterfaceRequest::getResourceOwnerId()const @@ -66,7 +66,7 @@ long CreateRouterInterfaceRequest::getResourceOwnerId()const void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateRouterInterfaceRequest::getRole()const @@ -77,7 +77,7 @@ std::string CreateRouterInterfaceRequest::getRole()const void CreateRouterInterfaceRequest::setRole(const std::string& role) { role_ = role; - setParameter("Role", role); + setCoreParameter("Role", role); } std::string CreateRouterInterfaceRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string CreateRouterInterfaceRequest::getClientToken()const void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const @@ -99,7 +99,7 @@ std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) { healthCheckTargetIp_ = healthCheckTargetIp; - setParameter("HealthCheckTargetIp", healthCheckTargetIp); + setCoreParameter("HealthCheckTargetIp", healthCheckTargetIp); } std::string CreateRouterInterfaceRequest::getDescription()const @@ -110,7 +110,7 @@ std::string CreateRouterInterfaceRequest::getDescription()const void CreateRouterInterfaceRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string CreateRouterInterfaceRequest::getSpec()const @@ -121,7 +121,7 @@ std::string CreateRouterInterfaceRequest::getSpec()const void CreateRouterInterfaceRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } std::string CreateRouterInterfaceRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string CreateRouterInterfaceRequest::getRegionId()const void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const @@ -143,7 +143,7 @@ std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) { oppositeInterfaceId_ = oppositeInterfaceId; - setParameter("OppositeInterfaceId", oppositeInterfaceId); + setCoreParameter("OppositeInterfaceId", oppositeInterfaceId); } std::string CreateRouterInterfaceRequest::getInstanceChargeType()const @@ -154,7 +154,7 @@ std::string CreateRouterInterfaceRequest::getInstanceChargeType()const void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType) { instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); + setCoreParameter("InstanceChargeType", instanceChargeType); } int CreateRouterInterfaceRequest::getPeriod()const @@ -165,7 +165,7 @@ int CreateRouterInterfaceRequest::getPeriod()const void CreateRouterInterfaceRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } bool CreateRouterInterfaceRequest::getAutoPay()const @@ -176,7 +176,7 @@ bool CreateRouterInterfaceRequest::getAutoPay()const void CreateRouterInterfaceRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const @@ -187,7 +187,7 @@ std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateRouterInterfaceRequest::getOppositeRegionId()const @@ -198,7 +198,7 @@ std::string CreateRouterInterfaceRequest::getOppositeRegionId()const void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId) { oppositeRegionId_ = oppositeRegionId; - setParameter("OppositeRegionId", oppositeRegionId); + setCoreParameter("OppositeRegionId", oppositeRegionId); } std::string CreateRouterInterfaceRequest::getOwnerAccount()const @@ -209,7 +209,7 @@ std::string CreateRouterInterfaceRequest::getOwnerAccount()const void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateRouterInterfaceRequest::getOwnerId()const @@ -220,7 +220,7 @@ long CreateRouterInterfaceRequest::getOwnerId()const void CreateRouterInterfaceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const @@ -231,7 +231,7 @@ std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId) { oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; - setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); + setCoreParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); } std::string CreateRouterInterfaceRequest::getRouterType()const @@ -242,7 +242,7 @@ std::string CreateRouterInterfaceRequest::getRouterType()const void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType) { routerType_ = routerType; - setParameter("RouterType", routerType); + setCoreParameter("RouterType", routerType); } std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const @@ -253,7 +253,7 @@ std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) { healthCheckSourceIp_ = healthCheckSourceIp; - setParameter("HealthCheckSourceIp", healthCheckSourceIp); + setCoreParameter("HealthCheckSourceIp", healthCheckSourceIp); } std::string CreateRouterInterfaceRequest::getRouterId()const @@ -264,7 +264,7 @@ std::string CreateRouterInterfaceRequest::getRouterId()const void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string CreateRouterInterfaceRequest::getOppositeRouterType()const @@ -275,7 +275,7 @@ std::string CreateRouterInterfaceRequest::getOppositeRouterType()const void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType) { oppositeRouterType_ = oppositeRouterType; - setParameter("OppositeRouterType", oppositeRouterType); + setCoreParameter("OppositeRouterType", oppositeRouterType); } std::string CreateRouterInterfaceRequest::getName()const @@ -286,7 +286,7 @@ std::string CreateRouterInterfaceRequest::getName()const void CreateRouterInterfaceRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateRouterInterfaceRequest::getPricingCycle()const @@ -297,6 +297,6 @@ std::string CreateRouterInterfaceRequest::getPricingCycle()const void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle) { pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); + setCoreParameter("PricingCycle", pricingCycle); } diff --git a/vpc/src/model/CreateRouterInterfaceResult.cc b/vpc/src/model/CreateRouterInterfaceResult.cc index f5cba6356..1c8dfc5c7 100644 --- a/vpc/src/model/CreateRouterInterfaceResult.cc +++ b/vpc/src/model/CreateRouterInterfaceResult.cc @@ -35,10 +35,13 @@ CreateRouterInterfaceResult::~CreateRouterInterfaceResult() void CreateRouterInterfaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RouterInterfaceId"].isNull()) routerInterfaceId_ = value["RouterInterfaceId"].asString(); diff --git a/vpc/src/model/CreateSnatEntryRequest.cc b/vpc/src/model/CreateSnatEntryRequest.cc index 3e569b20a..8ecea60c3 100644 --- a/vpc/src/model/CreateSnatEntryRequest.cc +++ b/vpc/src/model/CreateSnatEntryRequest.cc @@ -33,7 +33,7 @@ long CreateSnatEntryRequest::getResourceOwnerId()const void CreateSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateSnatEntryRequest::getSourceVSwitchId()const @@ -44,7 +44,7 @@ std::string CreateSnatEntryRequest::getSourceVSwitchId()const void CreateSnatEntryRequest::setSourceVSwitchId(const std::string& sourceVSwitchId) { sourceVSwitchId_ = sourceVSwitchId; - setParameter("SourceVSwitchId", sourceVSwitchId); + setCoreParameter("SourceVSwitchId", sourceVSwitchId); } std::string CreateSnatEntryRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateSnatEntryRequest::getResourceOwnerAccount()const void CreateSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateSnatEntryRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string CreateSnatEntryRequest::getRegionId()const void CreateSnatEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateSnatEntryRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateSnatEntryRequest::getOwnerAccount()const void CreateSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateSnatEntryRequest::getSnatEntryName()const @@ -88,7 +88,7 @@ std::string CreateSnatEntryRequest::getSnatEntryName()const void CreateSnatEntryRequest::setSnatEntryName(const std::string& snatEntryName) { snatEntryName_ = snatEntryName; - setParameter("SnatEntryName", snatEntryName); + setCoreParameter("SnatEntryName", snatEntryName); } std::string CreateSnatEntryRequest::getSourceCIDR()const @@ -99,7 +99,7 @@ std::string CreateSnatEntryRequest::getSourceCIDR()const void CreateSnatEntryRequest::setSourceCIDR(const std::string& sourceCIDR) { sourceCIDR_ = sourceCIDR; - setParameter("SourceCIDR", sourceCIDR); + setCoreParameter("SourceCIDR", sourceCIDR); } std::string CreateSnatEntryRequest::getSnatTableId()const @@ -110,7 +110,7 @@ std::string CreateSnatEntryRequest::getSnatTableId()const void CreateSnatEntryRequest::setSnatTableId(const std::string& snatTableId) { snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); + setCoreParameter("SnatTableId", snatTableId); } long CreateSnatEntryRequest::getOwnerId()const @@ -121,7 +121,7 @@ long CreateSnatEntryRequest::getOwnerId()const void CreateSnatEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateSnatEntryRequest::getSnatIp()const @@ -132,6 +132,6 @@ std::string CreateSnatEntryRequest::getSnatIp()const void CreateSnatEntryRequest::setSnatIp(const std::string& snatIp) { snatIp_ = snatIp; - setParameter("SnatIp", snatIp); + setCoreParameter("SnatIp", snatIp); } diff --git a/vpc/src/model/CreateSnatEntryResult.cc b/vpc/src/model/CreateSnatEntryResult.cc index c9d7cc5fd..d3d3604e4 100644 --- a/vpc/src/model/CreateSnatEntryResult.cc +++ b/vpc/src/model/CreateSnatEntryResult.cc @@ -35,10 +35,13 @@ CreateSnatEntryResult::~CreateSnatEntryResult() void CreateSnatEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SnatEntryId"].isNull()) snatEntryId_ = value["SnatEntryId"].asString(); diff --git a/vpc/src/model/CreateSslVpnClientCertRequest.cc b/vpc/src/model/CreateSslVpnClientCertRequest.cc index e11a80ad1..49a4d1d67 100644 --- a/vpc/src/model/CreateSslVpnClientCertRequest.cc +++ b/vpc/src/model/CreateSslVpnClientCertRequest.cc @@ -33,7 +33,7 @@ std::string CreateSslVpnClientCertRequest::getSslVpnServerId()const void CreateSslVpnClientCertRequest::setSslVpnServerId(const std::string& sslVpnServerId) { sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); + setCoreParameter("SslVpnServerId", sslVpnServerId); } long CreateSslVpnClientCertRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateSslVpnClientCertRequest::getResourceOwnerId()const void CreateSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateSslVpnClientCertRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string CreateSslVpnClientCertRequest::getResourceOwnerAccount()const void CreateSslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateSslVpnClientCertRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CreateSslVpnClientCertRequest::getClientToken()const void CreateSslVpnClientCertRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateSslVpnClientCertRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string CreateSslVpnClientCertRequest::getRegionId()const void CreateSslVpnClientCertRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateSslVpnClientCertRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateSslVpnClientCertRequest::getOwnerAccount()const void CreateSslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateSslVpnClientCertRequest::getName()const @@ -99,7 +99,7 @@ std::string CreateSslVpnClientCertRequest::getName()const void CreateSslVpnClientCertRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long CreateSslVpnClientCertRequest::getOwnerId()const @@ -110,6 +110,6 @@ long CreateSslVpnClientCertRequest::getOwnerId()const void CreateSslVpnClientCertRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/CreateSslVpnClientCertResult.cc b/vpc/src/model/CreateSslVpnClientCertResult.cc index de47d32d4..9d51d20c8 100644 --- a/vpc/src/model/CreateSslVpnClientCertResult.cc +++ b/vpc/src/model/CreateSslVpnClientCertResult.cc @@ -35,10 +35,13 @@ CreateSslVpnClientCertResult::~CreateSslVpnClientCertResult() void CreateSslVpnClientCertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Name"].isNull()) name_ = value["Name"].asString(); diff --git a/vpc/src/model/CreateSslVpnServerRequest.cc b/vpc/src/model/CreateSslVpnServerRequest.cc index 0cd9fa448..3b7db937f 100644 --- a/vpc/src/model/CreateSslVpnServerRequest.cc +++ b/vpc/src/model/CreateSslVpnServerRequest.cc @@ -33,7 +33,7 @@ std::string CreateSslVpnServerRequest::getCipher()const void CreateSslVpnServerRequest::setCipher(const std::string& cipher) { cipher_ = cipher; - setParameter("Cipher", cipher); + setCoreParameter("Cipher", cipher); } long CreateSslVpnServerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateSslVpnServerRequest::getResourceOwnerId()const void CreateSslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateSslVpnServerRequest::getClientIpPool()const @@ -55,7 +55,7 @@ std::string CreateSslVpnServerRequest::getClientIpPool()const void CreateSslVpnServerRequest::setClientIpPool(const std::string& clientIpPool) { clientIpPool_ = clientIpPool; - setParameter("ClientIpPool", clientIpPool); + setCoreParameter("ClientIpPool", clientIpPool); } std::string CreateSslVpnServerRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateSslVpnServerRequest::getResourceOwnerAccount()const void CreateSslVpnServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateSslVpnServerRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string CreateSslVpnServerRequest::getClientToken()const void CreateSslVpnServerRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } bool CreateSslVpnServerRequest::getCompress()const @@ -88,7 +88,7 @@ bool CreateSslVpnServerRequest::getCompress()const void CreateSslVpnServerRequest::setCompress(bool compress) { compress_ = compress; - setParameter("Compress", std::to_string(compress)); + setCoreParameter("Compress", compress ? "true" : "false"); } std::string CreateSslVpnServerRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string CreateSslVpnServerRequest::getOwnerAccount()const void CreateSslVpnServerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateSslVpnServerRequest::getVpnGatewayId()const @@ -110,7 +110,7 @@ std::string CreateSslVpnServerRequest::getVpnGatewayId()const void CreateSslVpnServerRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long CreateSslVpnServerRequest::getOwnerId()const @@ -121,7 +121,7 @@ long CreateSslVpnServerRequest::getOwnerId()const void CreateSslVpnServerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateSslVpnServerRequest::getLocalSubnet()const @@ -132,7 +132,7 @@ std::string CreateSslVpnServerRequest::getLocalSubnet()const void CreateSslVpnServerRequest::setLocalSubnet(const std::string& localSubnet) { localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); + setCoreParameter("LocalSubnet", localSubnet); } std::string CreateSslVpnServerRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string CreateSslVpnServerRequest::getRegionId()const void CreateSslVpnServerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int CreateSslVpnServerRequest::getPort()const @@ -154,7 +154,7 @@ int CreateSslVpnServerRequest::getPort()const void CreateSslVpnServerRequest::setPort(int port) { port_ = port; - setParameter("Port", std::to_string(port)); + setCoreParameter("Port", std::to_string(port)); } std::string CreateSslVpnServerRequest::getProto()const @@ -165,7 +165,7 @@ std::string CreateSslVpnServerRequest::getProto()const void CreateSslVpnServerRequest::setProto(const std::string& proto) { proto_ = proto; - setParameter("Proto", proto); + setCoreParameter("Proto", proto); } std::string CreateSslVpnServerRequest::getName()const @@ -176,6 +176,6 @@ std::string CreateSslVpnServerRequest::getName()const void CreateSslVpnServerRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/CreateSslVpnServerResult.cc b/vpc/src/model/CreateSslVpnServerResult.cc index ede01c0dd..5266cbc5b 100644 --- a/vpc/src/model/CreateSslVpnServerResult.cc +++ b/vpc/src/model/CreateSslVpnServerResult.cc @@ -35,10 +35,13 @@ CreateSslVpnServerResult::~CreateSslVpnServerResult() void CreateSslVpnServerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["SslVpnServerId"].isNull()) sslVpnServerId_ = value["SslVpnServerId"].asString(); diff --git a/vpc/src/model/CreateVSwitchRequest.cc b/vpc/src/model/CreateVSwitchRequest.cc index 2b1c8936f..ca2be3019 100644 --- a/vpc/src/model/CreateVSwitchRequest.cc +++ b/vpc/src/model/CreateVSwitchRequest.cc @@ -33,7 +33,7 @@ long CreateVSwitchRequest::getResourceOwnerId()const void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateVSwitchRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CreateVSwitchRequest::getResourceOwnerAccount()const void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateVSwitchRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string CreateVSwitchRequest::getClientToken()const void CreateVSwitchRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateVSwitchRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateVSwitchRequest::getOwnerAccount()const void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateVSwitchRequest::getDescription()const @@ -77,7 +77,7 @@ std::string CreateVSwitchRequest::getDescription()const void CreateVSwitchRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateVSwitchRequest::getOwnerId()const @@ -88,7 +88,7 @@ long CreateVSwitchRequest::getOwnerId()const void CreateVSwitchRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int CreateVSwitchRequest::getIpv6CidrBlock()const @@ -99,7 +99,7 @@ int CreateVSwitchRequest::getIpv6CidrBlock()const void CreateVSwitchRequest::setIpv6CidrBlock(int ipv6CidrBlock) { ipv6CidrBlock_ = ipv6CidrBlock; - setParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock)); + setCoreParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock)); } std::string CreateVSwitchRequest::getRegionId()const @@ -110,7 +110,7 @@ std::string CreateVSwitchRequest::getRegionId()const void CreateVSwitchRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateVSwitchRequest::getVpcId()const @@ -121,7 +121,7 @@ std::string CreateVSwitchRequest::getVpcId()const void CreateVSwitchRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string CreateVSwitchRequest::getVSwitchName()const @@ -132,7 +132,7 @@ std::string CreateVSwitchRequest::getVSwitchName()const void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName) { vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); + setCoreParameter("VSwitchName", vSwitchName); } std::string CreateVSwitchRequest::getCidrBlock()const @@ -143,7 +143,7 @@ std::string CreateVSwitchRequest::getCidrBlock()const void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock) { cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); + setCoreParameter("CidrBlock", cidrBlock); } std::string CreateVSwitchRequest::getZoneId()const @@ -154,6 +154,6 @@ std::string CreateVSwitchRequest::getZoneId()const void CreateVSwitchRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } diff --git a/vpc/src/model/CreateVSwitchResult.cc b/vpc/src/model/CreateVSwitchResult.cc index 3ab68479d..7377a631a 100644 --- a/vpc/src/model/CreateVSwitchResult.cc +++ b/vpc/src/model/CreateVSwitchResult.cc @@ -35,10 +35,13 @@ CreateVSwitchResult::~CreateVSwitchResult() void CreateVSwitchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VSwitchId"].isNull()) vSwitchId_ = value["VSwitchId"].asString(); diff --git a/vpc/src/model/CreateVirtualBorderRouterRequest.cc b/vpc/src/model/CreateVirtualBorderRouterRequest.cc index 71cafc280..856fae3c1 100644 --- a/vpc/src/model/CreateVirtualBorderRouterRequest.cc +++ b/vpc/src/model/CreateVirtualBorderRouterRequest.cc @@ -33,7 +33,7 @@ long CreateVirtualBorderRouterRequest::getResourceOwnerId()const void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateVirtualBorderRouterRequest::getCircuitCode()const @@ -44,7 +44,7 @@ std::string CreateVirtualBorderRouterRequest::getCircuitCode()const void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) { circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); + setCoreParameter("CircuitCode", circuitCode); } int CreateVirtualBorderRouterRequest::getVlanId()const @@ -55,7 +55,7 @@ int CreateVirtualBorderRouterRequest::getVlanId()const void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) { vlanId_ = vlanId; - setParameter("VlanId", std::to_string(vlanId)); + setCoreParameter("VlanId", std::to_string(vlanId)); } std::string CreateVirtualBorderRouterRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string CreateVirtualBorderRouterRequest::getClientToken()const void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateVirtualBorderRouterRequest::getDescription()const @@ -99,7 +99,7 @@ std::string CreateVirtualBorderRouterRequest::getDescription()const void CreateVirtualBorderRouterRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateVirtualBorderRouterRequest::getOwnerId()const @@ -110,7 +110,7 @@ long CreateVirtualBorderRouterRequest::getOwnerId()const void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const @@ -121,7 +121,7 @@ std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) { peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); + setCoreParameter("PeerGatewayIp", peerGatewayIp); } std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const @@ -132,7 +132,7 @@ std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) { peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); + setCoreParameter("PeeringSubnetMask", peeringSubnetMask); } std::string CreateVirtualBorderRouterRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string CreateVirtualBorderRouterRequest::getRegionId()const void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const @@ -154,7 +154,7 @@ std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string CreateVirtualBorderRouterRequest::getName()const @@ -165,7 +165,7 @@ std::string CreateVirtualBorderRouterRequest::getName()const void CreateVirtualBorderRouterRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const @@ -176,7 +176,7 @@ std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) { localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); + setCoreParameter("LocalGatewayIp", localGatewayIp); } long CreateVirtualBorderRouterRequest::getVbrOwnerId()const @@ -187,6 +187,6 @@ long CreateVirtualBorderRouterRequest::getVbrOwnerId()const void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) { vbrOwnerId_ = vbrOwnerId; - setParameter("VbrOwnerId", std::to_string(vbrOwnerId)); + setCoreParameter("VbrOwnerId", std::to_string(vbrOwnerId)); } diff --git a/vpc/src/model/CreateVirtualBorderRouterResult.cc b/vpc/src/model/CreateVirtualBorderRouterResult.cc index a58191801..d81fa8f64 100644 --- a/vpc/src/model/CreateVirtualBorderRouterResult.cc +++ b/vpc/src/model/CreateVirtualBorderRouterResult.cc @@ -35,10 +35,13 @@ CreateVirtualBorderRouterResult::~CreateVirtualBorderRouterResult() void CreateVirtualBorderRouterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VbrId"].isNull()) vbrId_ = value["VbrId"].asString(); diff --git a/vpc/src/model/CreateVpcRequest.cc b/vpc/src/model/CreateVpcRequest.cc index 9bceef64a..1d49743c6 100644 --- a/vpc/src/model/CreateVpcRequest.cc +++ b/vpc/src/model/CreateVpcRequest.cc @@ -33,7 +33,7 @@ long CreateVpcRequest::getResourceOwnerId()const void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateVpcRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string CreateVpcRequest::getResourceOwnerAccount()const void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateVpcRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string CreateVpcRequest::getClientToken()const void CreateVpcRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateVpcRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateVpcRequest::getOwnerAccount()const void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } bool CreateVpcRequest::getEnableIpv6()const @@ -77,7 +77,7 @@ bool CreateVpcRequest::getEnableIpv6()const void CreateVpcRequest::setEnableIpv6(bool enableIpv6) { enableIpv6_ = enableIpv6; - setParameter("EnableIpv6", std::to_string(enableIpv6)); + setCoreParameter("EnableIpv6", enableIpv6 ? "true" : "false"); } std::string CreateVpcRequest::getDescription()const @@ -88,7 +88,7 @@ std::string CreateVpcRequest::getDescription()const void CreateVpcRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long CreateVpcRequest::getOwnerId()const @@ -99,7 +99,7 @@ long CreateVpcRequest::getOwnerId()const void CreateVpcRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string CreateVpcRequest::getIpv6CidrBlock()const @@ -110,7 +110,7 @@ std::string CreateVpcRequest::getIpv6CidrBlock()const void CreateVpcRequest::setIpv6CidrBlock(const std::string& ipv6CidrBlock) { ipv6CidrBlock_ = ipv6CidrBlock; - setParameter("Ipv6CidrBlock", ipv6CidrBlock); + setCoreParameter("Ipv6CidrBlock", ipv6CidrBlock); } std::string CreateVpcRequest::getVpcName()const @@ -121,7 +121,7 @@ std::string CreateVpcRequest::getVpcName()const void CreateVpcRequest::setVpcName(const std::string& vpcName) { vpcName_ = vpcName; - setParameter("VpcName", vpcName); + setCoreParameter("VpcName", vpcName); } std::string CreateVpcRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string CreateVpcRequest::getResourceGroupId()const void CreateVpcRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string CreateVpcRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string CreateVpcRequest::getRegionId()const void CreateVpcRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateVpcRequest::getCidrBlock()const @@ -154,7 +154,7 @@ std::string CreateVpcRequest::getCidrBlock()const void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock) { cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); + setCoreParameter("CidrBlock", cidrBlock); } std::string CreateVpcRequest::getUserCidr()const @@ -165,6 +165,6 @@ std::string CreateVpcRequest::getUserCidr()const void CreateVpcRequest::setUserCidr(const std::string& userCidr) { userCidr_ = userCidr; - setParameter("UserCidr", userCidr); + setCoreParameter("UserCidr", userCidr); } diff --git a/vpc/src/model/CreateVpcResult.cc b/vpc/src/model/CreateVpcResult.cc index b1b94e17d..58312bc2f 100644 --- a/vpc/src/model/CreateVpcResult.cc +++ b/vpc/src/model/CreateVpcResult.cc @@ -35,10 +35,13 @@ CreateVpcResult::~CreateVpcResult() void CreateVpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); diff --git a/vpc/src/model/CreateVpnConnectionRequest.cc b/vpc/src/model/CreateVpnConnectionRequest.cc index 9cc32561d..a4a2b02e6 100644 --- a/vpc/src/model/CreateVpnConnectionRequest.cc +++ b/vpc/src/model/CreateVpnConnectionRequest.cc @@ -33,7 +33,7 @@ std::string CreateVpnConnectionRequest::getIkeConfig()const void CreateVpnConnectionRequest::setIkeConfig(const std::string& ikeConfig) { ikeConfig_ = ikeConfig; - setParameter("IkeConfig", ikeConfig); + setCoreParameter("IkeConfig", ikeConfig); } long CreateVpnConnectionRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long CreateVpnConnectionRequest::getResourceOwnerId()const void CreateVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string CreateVpnConnectionRequest::getRemoteSubnet()const @@ -55,7 +55,7 @@ std::string CreateVpnConnectionRequest::getRemoteSubnet()const void CreateVpnConnectionRequest::setRemoteSubnet(const std::string& remoteSubnet) { remoteSubnet_ = remoteSubnet; - setParameter("RemoteSubnet", remoteSubnet); + setCoreParameter("RemoteSubnet", remoteSubnet); } bool CreateVpnConnectionRequest::getEffectImmediately()const @@ -66,7 +66,18 @@ bool CreateVpnConnectionRequest::getEffectImmediately()const void CreateVpnConnectionRequest::setEffectImmediately(bool effectImmediately) { effectImmediately_ = effectImmediately; - setParameter("EffectImmediately", std::to_string(effectImmediately)); + setCoreParameter("EffectImmediately", effectImmediately ? "true" : "false"); +} + +bool CreateVpnConnectionRequest::getAutoConfigRoute()const +{ + return autoConfigRoute_; +} + +void CreateVpnConnectionRequest::setAutoConfigRoute(bool autoConfigRoute) +{ + autoConfigRoute_ = autoConfigRoute; + setCoreParameter("AutoConfigRoute", autoConfigRoute ? "true" : "false"); } std::string CreateVpnConnectionRequest::getResourceOwnerAccount()const @@ -77,7 +88,7 @@ std::string CreateVpnConnectionRequest::getResourceOwnerAccount()const void CreateVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string CreateVpnConnectionRequest::getClientToken()const @@ -88,7 +99,7 @@ std::string CreateVpnConnectionRequest::getClientToken()const void CreateVpnConnectionRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string CreateVpnConnectionRequest::getOwnerAccount()const @@ -99,7 +110,7 @@ std::string CreateVpnConnectionRequest::getOwnerAccount()const void CreateVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string CreateVpnConnectionRequest::getIpsecConfig()const @@ -110,7 +121,7 @@ std::string CreateVpnConnectionRequest::getIpsecConfig()const void CreateVpnConnectionRequest::setIpsecConfig(const std::string& ipsecConfig) { ipsecConfig_ = ipsecConfig; - setParameter("IpsecConfig", ipsecConfig); + setCoreParameter("IpsecConfig", ipsecConfig); } std::string CreateVpnConnectionRequest::getVpnGatewayId()const @@ -121,7 +132,7 @@ std::string CreateVpnConnectionRequest::getVpnGatewayId()const void CreateVpnConnectionRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long CreateVpnConnectionRequest::getOwnerId()const @@ -132,7 +143,18 @@ long CreateVpnConnectionRequest::getOwnerId()const void CreateVpnConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVpnConnectionRequest::getHealthCheckConfig()const +{ + return healthCheckConfig_; +} + +void CreateVpnConnectionRequest::setHealthCheckConfig(const std::string& healthCheckConfig) +{ + healthCheckConfig_ = healthCheckConfig; + setCoreParameter("HealthCheckConfig", healthCheckConfig); } std::string CreateVpnConnectionRequest::getCustomerGatewayId()const @@ -143,7 +165,7 @@ std::string CreateVpnConnectionRequest::getCustomerGatewayId()const void CreateVpnConnectionRequest::setCustomerGatewayId(const std::string& customerGatewayId) { customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); + setCoreParameter("CustomerGatewayId", customerGatewayId); } std::string CreateVpnConnectionRequest::getLocalSubnet()const @@ -154,7 +176,7 @@ std::string CreateVpnConnectionRequest::getLocalSubnet()const void CreateVpnConnectionRequest::setLocalSubnet(const std::string& localSubnet) { localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); + setCoreParameter("LocalSubnet", localSubnet); } std::string CreateVpnConnectionRequest::getRegionId()const @@ -165,7 +187,7 @@ std::string CreateVpnConnectionRequest::getRegionId()const void CreateVpnConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateVpnConnectionRequest::getName()const @@ -176,6 +198,6 @@ std::string CreateVpnConnectionRequest::getName()const void CreateVpnConnectionRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/CreateVpnConnectionResult.cc b/vpc/src/model/CreateVpnConnectionResult.cc index c7827e868..c96ce3d6f 100644 --- a/vpc/src/model/CreateVpnConnectionResult.cc +++ b/vpc/src/model/CreateVpnConnectionResult.cc @@ -35,10 +35,13 @@ CreateVpnConnectionResult::~CreateVpnConnectionResult() void CreateVpnConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VpnConnectionId"].isNull()) vpnConnectionId_ = value["VpnConnectionId"].asString(); diff --git a/vpc/src/model/CreateVpnGatewayRequest.cc b/vpc/src/model/CreateVpnGatewayRequest.cc index 50be9dde4..8522ebb25 100644 --- a/vpc/src/model/CreateVpnGatewayRequest.cc +++ b/vpc/src/model/CreateVpnGatewayRequest.cc @@ -33,7 +33,7 @@ long CreateVpnGatewayRequest::getResourceOwnerId()const void CreateVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int CreateVpnGatewayRequest::getPeriod()const @@ -44,7 +44,7 @@ int CreateVpnGatewayRequest::getPeriod()const void CreateVpnGatewayRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } bool CreateVpnGatewayRequest::getAutoPay()const @@ -55,7 +55,7 @@ bool CreateVpnGatewayRequest::getAutoPay()const void CreateVpnGatewayRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string CreateVpnGatewayRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string CreateVpnGatewayRequest::getResourceOwnerAccount()const void CreateVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } int CreateVpnGatewayRequest::getBandwidth()const @@ -77,7 +77,7 @@ int CreateVpnGatewayRequest::getBandwidth()const void CreateVpnGatewayRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } bool CreateVpnGatewayRequest::getEnableIpsec()const @@ -88,7 +88,7 @@ bool CreateVpnGatewayRequest::getEnableIpsec()const void CreateVpnGatewayRequest::setEnableIpsec(bool enableIpsec) { enableIpsec_ = enableIpsec; - setParameter("EnableIpsec", std::to_string(enableIpsec)); + setCoreParameter("EnableIpsec", enableIpsec ? "true" : "false"); } std::string CreateVpnGatewayRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string CreateVpnGatewayRequest::getOwnerAccount()const void CreateVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long CreateVpnGatewayRequest::getOwnerId()const @@ -110,7 +110,7 @@ long CreateVpnGatewayRequest::getOwnerId()const void CreateVpnGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool CreateVpnGatewayRequest::getEnableSsl()const @@ -121,7 +121,7 @@ bool CreateVpnGatewayRequest::getEnableSsl()const void CreateVpnGatewayRequest::setEnableSsl(bool enableSsl) { enableSsl_ = enableSsl; - setParameter("EnableSsl", std::to_string(enableSsl)); + setCoreParameter("EnableSsl", enableSsl ? "true" : "false"); } int CreateVpnGatewayRequest::getSslConnections()const @@ -132,7 +132,7 @@ int CreateVpnGatewayRequest::getSslConnections()const void CreateVpnGatewayRequest::setSslConnections(int sslConnections) { sslConnections_ = sslConnections; - setParameter("SslConnections", std::to_string(sslConnections)); + setCoreParameter("SslConnections", std::to_string(sslConnections)); } std::string CreateVpnGatewayRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string CreateVpnGatewayRequest::getRegionId()const void CreateVpnGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string CreateVpnGatewayRequest::getVpcId()const @@ -154,7 +154,7 @@ std::string CreateVpnGatewayRequest::getVpcId()const void CreateVpnGatewayRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string CreateVpnGatewayRequest::getName()const @@ -165,7 +165,7 @@ std::string CreateVpnGatewayRequest::getName()const void CreateVpnGatewayRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string CreateVpnGatewayRequest::getInstanceChargeType()const @@ -176,6 +176,6 @@ std::string CreateVpnGatewayRequest::getInstanceChargeType()const void CreateVpnGatewayRequest::setInstanceChargeType(const std::string& instanceChargeType) { instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); + setCoreParameter("InstanceChargeType", instanceChargeType); } diff --git a/vpc/src/model/CreateVpnGatewayResult.cc b/vpc/src/model/CreateVpnGatewayResult.cc index 27c88cb97..24a9603d9 100644 --- a/vpc/src/model/CreateVpnGatewayResult.cc +++ b/vpc/src/model/CreateVpnGatewayResult.cc @@ -35,10 +35,13 @@ CreateVpnGatewayResult::~CreateVpnGatewayResult() void CreateVpnGatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VpnGatewayId"].isNull()) vpnGatewayId_ = value["VpnGatewayId"].asString(); diff --git a/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc b/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc new file mode 100644 index 000000000..62c166e64 --- /dev/null +++ b/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVpnPbrRouteEntryRequest; + +CreateVpnPbrRouteEntryRequest::CreateVpnPbrRouteEntryRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateVpnPbrRouteEntry") +{} + +CreateVpnPbrRouteEntryRequest::~CreateVpnPbrRouteEntryRequest() +{} + +std::string CreateVpnPbrRouteEntryRequest::getRouteSource()const +{ + return routeSource_; +} + +void CreateVpnPbrRouteEntryRequest::setRouteSource(const std::string& routeSource) +{ + routeSource_ = routeSource; + setCoreParameter("RouteSource", routeSource); +} + +long CreateVpnPbrRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVpnPbrRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVpnPbrRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVpnPbrRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVpnPbrRouteEntryRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVpnPbrRouteEntryRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateVpnPbrRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVpnPbrRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int CreateVpnPbrRouteEntryRequest::getWeight()const +{ + return weight_; +} + +void CreateVpnPbrRouteEntryRequest::setWeight(int weight) +{ + weight_ = weight; + setCoreParameter("Weight", std::to_string(weight)); +} + +std::string CreateVpnPbrRouteEntryRequest::getDescription()const +{ + return description_; +} + +void CreateVpnPbrRouteEntryRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateVpnPbrRouteEntryRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void CreateVpnPbrRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long CreateVpnPbrRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVpnPbrRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVpnPbrRouteEntryRequest::getRouteDest()const +{ + return routeDest_; +} + +void CreateVpnPbrRouteEntryRequest::setRouteDest(const std::string& routeDest) +{ + routeDest_ = routeDest; + setCoreParameter("RouteDest", routeDest); +} + +std::string CreateVpnPbrRouteEntryRequest::getNextHop()const +{ + return nextHop_; +} + +void CreateVpnPbrRouteEntryRequest::setNextHop(const std::string& nextHop) +{ + nextHop_ = nextHop; + setCoreParameter("NextHop", nextHop); +} + +bool CreateVpnPbrRouteEntryRequest::getPublishVpc()const +{ + return publishVpc_; +} + +void CreateVpnPbrRouteEntryRequest::setPublishVpc(bool publishVpc) +{ + publishVpc_ = publishVpc; + setCoreParameter("PublishVpc", publishVpc ? "true" : "false"); +} + +std::string CreateVpnPbrRouteEntryRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVpnPbrRouteEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateVpnPbrRouteEntryRequest::getOverlayMode()const +{ + return overlayMode_; +} + +void CreateVpnPbrRouteEntryRequest::setOverlayMode(const std::string& overlayMode) +{ + overlayMode_ = overlayMode; + setCoreParameter("OverlayMode", overlayMode); +} + diff --git a/vpc/src/model/CreateVpnPbrRouteEntryResult.cc b/vpc/src/model/CreateVpnPbrRouteEntryResult.cc new file mode 100644 index 000000000..c3a23b2ac --- /dev/null +++ b/vpc/src/model/CreateVpnPbrRouteEntryResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVpnPbrRouteEntryResult::CreateVpnPbrRouteEntryResult() : + ServiceResult() +{} + +CreateVpnPbrRouteEntryResult::CreateVpnPbrRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpnPbrRouteEntryResult::~CreateVpnPbrRouteEntryResult() +{} + +void CreateVpnPbrRouteEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["VpnInstanceId"].isNull()) + vpnInstanceId_ = value["VpnInstanceId"].asString(); + if(!value["RouteSource"].isNull()) + routeSource_ = value["RouteSource"].asString(); + if(!value["RouteDest"].isNull()) + routeDest_ = value["RouteDest"].asString(); + if(!value["NextHop"].isNull()) + nextHop_ = value["NextHop"].asString(); + if(!value["Weight"].isNull()) + weight_ = std::stoi(value["Weight"].asString()); + if(!value["OverlayMode"].isNull()) + overlayMode_ = value["OverlayMode"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + +} + +std::string CreateVpnPbrRouteEntryResult::getVpnInstanceId()const +{ + return vpnInstanceId_; +} + +std::string CreateVpnPbrRouteEntryResult::getRouteDest()const +{ + return routeDest_; +} + +std::string CreateVpnPbrRouteEntryResult::getDescription()const +{ + return description_; +} + +std::string CreateVpnPbrRouteEntryResult::getOverlayMode()const +{ + return overlayMode_; +} + +std::string CreateVpnPbrRouteEntryResult::getNextHop()const +{ + return nextHop_; +} + +std::string CreateVpnPbrRouteEntryResult::getState()const +{ + return state_; +} + +std::string CreateVpnPbrRouteEntryResult::getRouteSource()const +{ + return routeSource_; +} + +long CreateVpnPbrRouteEntryResult::getCreateTime()const +{ + return createTime_; +} + +int CreateVpnPbrRouteEntryResult::getWeight()const +{ + return weight_; +} + diff --git a/vpc/src/model/CreateVpnRouteEntryRequest.cc b/vpc/src/model/CreateVpnRouteEntryRequest.cc new file mode 100644 index 000000000..e1cfd02f9 --- /dev/null +++ b/vpc/src/model/CreateVpnRouteEntryRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::CreateVpnRouteEntryRequest; + +CreateVpnRouteEntryRequest::CreateVpnRouteEntryRequest() : + RpcServiceRequest("vpc", "2016-04-28", "CreateVpnRouteEntry") +{} + +CreateVpnRouteEntryRequest::~CreateVpnRouteEntryRequest() +{} + +long CreateVpnRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVpnRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVpnRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVpnRouteEntryRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVpnRouteEntryRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateVpnRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVpnRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int CreateVpnRouteEntryRequest::getWeight()const +{ + return weight_; +} + +void CreateVpnRouteEntryRequest::setWeight(int weight) +{ + weight_ = weight; + setCoreParameter("Weight", std::to_string(weight)); +} + +std::string CreateVpnRouteEntryRequest::getDescription()const +{ + return description_; +} + +void CreateVpnRouteEntryRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateVpnRouteEntryRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void CreateVpnRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long CreateVpnRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVpnRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVpnRouteEntryRequest::getRouteDest()const +{ + return routeDest_; +} + +void CreateVpnRouteEntryRequest::setRouteDest(const std::string& routeDest) +{ + routeDest_ = routeDest; + setCoreParameter("RouteDest", routeDest); +} + +std::string CreateVpnRouteEntryRequest::getNextHop()const +{ + return nextHop_; +} + +void CreateVpnRouteEntryRequest::setNextHop(const std::string& nextHop) +{ + nextHop_ = nextHop; + setCoreParameter("NextHop", nextHop); +} + +bool CreateVpnRouteEntryRequest::getPublishVpc()const +{ + return publishVpc_; +} + +void CreateVpnRouteEntryRequest::setPublishVpc(bool publishVpc) +{ + publishVpc_ = publishVpc; + setCoreParameter("PublishVpc", publishVpc ? "true" : "false"); +} + +std::string CreateVpnRouteEntryRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVpnRouteEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateVpnRouteEntryRequest::getOverlayMode()const +{ + return overlayMode_; +} + +void CreateVpnRouteEntryRequest::setOverlayMode(const std::string& overlayMode) +{ + overlayMode_ = overlayMode; + setCoreParameter("OverlayMode", overlayMode); +} + diff --git a/vpc/src/model/CreateVpnRouteEntryResult.cc b/vpc/src/model/CreateVpnRouteEntryResult.cc new file mode 100644 index 000000000..86f0089ac --- /dev/null +++ b/vpc/src/model/CreateVpnRouteEntryResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVpnRouteEntryResult::CreateVpnRouteEntryResult() : + ServiceResult() +{} + +CreateVpnRouteEntryResult::CreateVpnRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpnRouteEntryResult::~CreateVpnRouteEntryResult() +{} + +void CreateVpnRouteEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["VpnInstanceId"].isNull()) + vpnInstanceId_ = value["VpnInstanceId"].asString(); + if(!value["RouteDest"].isNull()) + routeDest_ = value["RouteDest"].asString(); + if(!value["NextHop"].isNull()) + nextHop_ = value["NextHop"].asString(); + if(!value["Weight"].isNull()) + weight_ = std::stoi(value["Weight"].asString()); + if(!value["OverlayMode"].isNull()) + overlayMode_ = value["OverlayMode"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + +} + +std::string CreateVpnRouteEntryResult::getVpnInstanceId()const +{ + return vpnInstanceId_; +} + +std::string CreateVpnRouteEntryResult::getRouteDest()const +{ + return routeDest_; +} + +std::string CreateVpnRouteEntryResult::getDescription()const +{ + return description_; +} + +std::string CreateVpnRouteEntryResult::getOverlayMode()const +{ + return overlayMode_; +} + +std::string CreateVpnRouteEntryResult::getNextHop()const +{ + return nextHop_; +} + +std::string CreateVpnRouteEntryResult::getState()const +{ + return state_; +} + +long CreateVpnRouteEntryResult::getCreateTime()const +{ + return createTime_; +} + +int CreateVpnRouteEntryResult::getWeight()const +{ + return weight_; +} + diff --git a/vpc/src/model/DeactivateRouterInterfaceRequest.cc b/vpc/src/model/DeactivateRouterInterfaceRequest.cc index 4e9dee1f9..df23104a3 100644 --- a/vpc/src/model/DeactivateRouterInterfaceRequest.cc +++ b/vpc/src/model/DeactivateRouterInterfaceRequest.cc @@ -33,7 +33,7 @@ long DeactivateRouterInterfaceRequest::getResourceOwnerId()const void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeactivateRouterInterfaceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeactivateRouterInterfaceRequest::getRegionId()const void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long DeactivateRouterInterfaceRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DeactivateRouterInterfaceRequest::getOwnerId()const void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const @@ -77,6 +77,6 @@ std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) { routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); + setCoreParameter("RouterInterfaceId", routerInterfaceId); } diff --git a/vpc/src/model/DeactivateRouterInterfaceResult.cc b/vpc/src/model/DeactivateRouterInterfaceResult.cc index 50623d4b0..33b4f4c1f 100644 --- a/vpc/src/model/DeactivateRouterInterfaceResult.cc +++ b/vpc/src/model/DeactivateRouterInterfaceResult.cc @@ -35,10 +35,13 @@ DeactivateRouterInterfaceResult::~DeactivateRouterInterfaceResult() void DeactivateRouterInterfaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeactiveFlowLogRequest.cc b/vpc/src/model/DeactiveFlowLogRequest.cc index 3c496ce31..b082aa46d 100644 --- a/vpc/src/model/DeactiveFlowLogRequest.cc +++ b/vpc/src/model/DeactiveFlowLogRequest.cc @@ -33,7 +33,7 @@ long DeactiveFlowLogRequest::getResourceOwnerId()const void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeactiveFlowLogRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeactiveFlowLogRequest::getRegionId()const void DeactiveFlowLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeactiveFlowLogRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeactiveFlowLogRequest::getOwnerAccount()const void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeactiveFlowLogRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeactiveFlowLogRequest::getOwnerId()const void DeactiveFlowLogRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeactiveFlowLogRequest::getFlowLogId()const @@ -88,6 +88,6 @@ std::string DeactiveFlowLogRequest::getFlowLogId()const void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) { flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); + setCoreParameter("FlowLogId", flowLogId); } diff --git a/vpc/src/model/DeactiveFlowLogResult.cc b/vpc/src/model/DeactiveFlowLogResult.cc index 605a01b5b..f29a0d6ec 100644 --- a/vpc/src/model/DeactiveFlowLogResult.cc +++ b/vpc/src/model/DeactiveFlowLogResult.cc @@ -35,10 +35,13 @@ DeactiveFlowLogResult::~DeactiveFlowLogResult() void DeactiveFlowLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString(); diff --git a/vpc/src/model/DeleteBandwidthPackageRequest.cc b/vpc/src/model/DeleteBandwidthPackageRequest.cc index 885a59408..ef9916876 100644 --- a/vpc/src/model/DeleteBandwidthPackageRequest.cc +++ b/vpc/src/model/DeleteBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long DeleteBandwidthPackageRequest::getResourceOwnerId()const void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount()const void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteBandwidthPackageRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteBandwidthPackageRequest::getRegionId()const void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteBandwidthPackageRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteBandwidthPackageRequest::getOwnerAccount()const void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } bool DeleteBandwidthPackageRequest::getForce()const @@ -88,7 +88,7 @@ bool DeleteBandwidthPackageRequest::getForce()const void DeleteBandwidthPackageRequest::setForce(bool force) { force_ = force; - setParameter("Force", std::to_string(force)); + setCoreParameter("Force", force ? "true" : "false"); } long DeleteBandwidthPackageRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteBandwidthPackageRequest::getOwnerId()const void DeleteBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteBandwidthPackageResult.cc b/vpc/src/model/DeleteBandwidthPackageResult.cc index 4d5fc43fa..26cb3a22f 100644 --- a/vpc/src/model/DeleteBandwidthPackageResult.cc +++ b/vpc/src/model/DeleteBandwidthPackageResult.cc @@ -35,10 +35,13 @@ DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult() void DeleteBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteBgpGroupRequest.cc b/vpc/src/model/DeleteBgpGroupRequest.cc index c25d75d7c..2b8cb6041 100644 --- a/vpc/src/model/DeleteBgpGroupRequest.cc +++ b/vpc/src/model/DeleteBgpGroupRequest.cc @@ -33,7 +33,7 @@ long DeleteBgpGroupRequest::getResourceOwnerId()const void DeleteBgpGroupRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteBgpGroupRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteBgpGroupRequest::getResourceOwnerAccount()const void DeleteBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteBgpGroupRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteBgpGroupRequest::getRegionId()const void DeleteBgpGroupRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteBgpGroupRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteBgpGroupRequest::getClientToken()const void DeleteBgpGroupRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteBgpGroupRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteBgpGroupRequest::getOwnerAccount()const void DeleteBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteBgpGroupRequest::getBgpGroupId()const @@ -88,7 +88,7 @@ std::string DeleteBgpGroupRequest::getBgpGroupId()const void DeleteBgpGroupRequest::setBgpGroupId(const std::string& bgpGroupId) { bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); + setCoreParameter("BgpGroupId", bgpGroupId); } long DeleteBgpGroupRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteBgpGroupRequest::getOwnerId()const void DeleteBgpGroupRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteBgpGroupResult.cc b/vpc/src/model/DeleteBgpGroupResult.cc index 072e8aaee..84b2ab3b6 100644 --- a/vpc/src/model/DeleteBgpGroupResult.cc +++ b/vpc/src/model/DeleteBgpGroupResult.cc @@ -35,10 +35,13 @@ DeleteBgpGroupResult::~DeleteBgpGroupResult() void DeleteBgpGroupResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteBgpNetworkRequest.cc b/vpc/src/model/DeleteBgpNetworkRequest.cc index 2f625b3c6..470fc7ac3 100644 --- a/vpc/src/model/DeleteBgpNetworkRequest.cc +++ b/vpc/src/model/DeleteBgpNetworkRequest.cc @@ -33,7 +33,7 @@ long DeleteBgpNetworkRequest::getResourceOwnerId()const void DeleteBgpNetworkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteBgpNetworkRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteBgpNetworkRequest::getResourceOwnerAccount()const void DeleteBgpNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteBgpNetworkRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteBgpNetworkRequest::getRegionId()const void DeleteBgpNetworkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteBgpNetworkRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteBgpNetworkRequest::getClientToken()const void DeleteBgpNetworkRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteBgpNetworkRequest::getRouterId()const @@ -77,7 +77,7 @@ std::string DeleteBgpNetworkRequest::getRouterId()const void DeleteBgpNetworkRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string DeleteBgpNetworkRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteBgpNetworkRequest::getOwnerAccount()const void DeleteBgpNetworkRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteBgpNetworkRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DeleteBgpNetworkRequest::getOwnerId()const void DeleteBgpNetworkRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteBgpNetworkRequest::getDstCidrBlock()const @@ -110,6 +110,6 @@ std::string DeleteBgpNetworkRequest::getDstCidrBlock()const void DeleteBgpNetworkRequest::setDstCidrBlock(const std::string& dstCidrBlock) { dstCidrBlock_ = dstCidrBlock; - setParameter("DstCidrBlock", dstCidrBlock); + setCoreParameter("DstCidrBlock", dstCidrBlock); } diff --git a/vpc/src/model/DeleteBgpNetworkResult.cc b/vpc/src/model/DeleteBgpNetworkResult.cc index c8fb363f0..96e0cf8e9 100644 --- a/vpc/src/model/DeleteBgpNetworkResult.cc +++ b/vpc/src/model/DeleteBgpNetworkResult.cc @@ -35,10 +35,13 @@ DeleteBgpNetworkResult::~DeleteBgpNetworkResult() void DeleteBgpNetworkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteBgpPeerRequest.cc b/vpc/src/model/DeleteBgpPeerRequest.cc index 89aad0355..a413b44ce 100644 --- a/vpc/src/model/DeleteBgpPeerRequest.cc +++ b/vpc/src/model/DeleteBgpPeerRequest.cc @@ -33,7 +33,7 @@ long DeleteBgpPeerRequest::getResourceOwnerId()const void DeleteBgpPeerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteBgpPeerRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteBgpPeerRequest::getResourceOwnerAccount()const void DeleteBgpPeerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteBgpPeerRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteBgpPeerRequest::getRegionId()const void DeleteBgpPeerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteBgpPeerRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteBgpPeerRequest::getClientToken()const void DeleteBgpPeerRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteBgpPeerRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteBgpPeerRequest::getOwnerAccount()const void DeleteBgpPeerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteBgpPeerRequest::getBgpPeerId()const @@ -88,7 +88,7 @@ std::string DeleteBgpPeerRequest::getBgpPeerId()const void DeleteBgpPeerRequest::setBgpPeerId(const std::string& bgpPeerId) { bgpPeerId_ = bgpPeerId; - setParameter("BgpPeerId", bgpPeerId); + setCoreParameter("BgpPeerId", bgpPeerId); } long DeleteBgpPeerRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteBgpPeerRequest::getOwnerId()const void DeleteBgpPeerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteBgpPeerResult.cc b/vpc/src/model/DeleteBgpPeerResult.cc index e432759a2..9c87cf31e 100644 --- a/vpc/src/model/DeleteBgpPeerResult.cc +++ b/vpc/src/model/DeleteBgpPeerResult.cc @@ -35,10 +35,13 @@ DeleteBgpPeerResult::~DeleteBgpPeerResult() void DeleteBgpPeerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc b/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc index 6863b5d57..52aa6a6cf 100644 --- a/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc +++ b/vpc/src/model/DeleteCommonBandwidthPackageRequest.cc @@ -33,7 +33,7 @@ long DeleteCommonBandwidthPackageRequest::getResourceOwnerId()const void DeleteCommonBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCommonBandwidthPackageRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string DeleteCommonBandwidthPackageRequest::getBandwidthPackageId()const void DeleteCommonBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string DeleteCommonBandwidthPackageRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteCommonBandwidthPackageRequest::getResourceOwnerAccount()const void DeleteCommonBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteCommonBandwidthPackageRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteCommonBandwidthPackageRequest::getRegionId()const void DeleteCommonBandwidthPackageRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteCommonBandwidthPackageRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteCommonBandwidthPackageRequest::getOwnerAccount()const void DeleteCommonBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteCommonBandwidthPackageRequest::getForce()const @@ -88,7 +88,7 @@ std::string DeleteCommonBandwidthPackageRequest::getForce()const void DeleteCommonBandwidthPackageRequest::setForce(const std::string& force) { force_ = force; - setParameter("Force", force); + setCoreParameter("Force", force); } long DeleteCommonBandwidthPackageRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteCommonBandwidthPackageRequest::getOwnerId()const void DeleteCommonBandwidthPackageRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteCommonBandwidthPackageResult.cc b/vpc/src/model/DeleteCommonBandwidthPackageResult.cc index c09726c11..10f6c1d48 100644 --- a/vpc/src/model/DeleteCommonBandwidthPackageResult.cc +++ b/vpc/src/model/DeleteCommonBandwidthPackageResult.cc @@ -35,10 +35,13 @@ DeleteCommonBandwidthPackageResult::~DeleteCommonBandwidthPackageResult() void DeleteCommonBandwidthPackageResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteCustomerGatewayRequest.cc b/vpc/src/model/DeleteCustomerGatewayRequest.cc index 3689096fa..15e86858f 100644 --- a/vpc/src/model/DeleteCustomerGatewayRequest.cc +++ b/vpc/src/model/DeleteCustomerGatewayRequest.cc @@ -33,7 +33,7 @@ long DeleteCustomerGatewayRequest::getResourceOwnerId()const void DeleteCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteCustomerGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteCustomerGatewayRequest::getResourceOwnerAccount()const void DeleteCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteCustomerGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteCustomerGatewayRequest::getRegionId()const void DeleteCustomerGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteCustomerGatewayRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteCustomerGatewayRequest::getClientToken()const void DeleteCustomerGatewayRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteCustomerGatewayRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteCustomerGatewayRequest::getOwnerAccount()const void DeleteCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteCustomerGatewayRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DeleteCustomerGatewayRequest::getOwnerId()const void DeleteCustomerGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteCustomerGatewayRequest::getCustomerGatewayId()const @@ -99,6 +99,6 @@ std::string DeleteCustomerGatewayRequest::getCustomerGatewayId()const void DeleteCustomerGatewayRequest::setCustomerGatewayId(const std::string& customerGatewayId) { customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); + setCoreParameter("CustomerGatewayId", customerGatewayId); } diff --git a/vpc/src/model/DeleteCustomerGatewayResult.cc b/vpc/src/model/DeleteCustomerGatewayResult.cc index cc65896f1..722aadd81 100644 --- a/vpc/src/model/DeleteCustomerGatewayResult.cc +++ b/vpc/src/model/DeleteCustomerGatewayResult.cc @@ -35,10 +35,13 @@ DeleteCustomerGatewayResult::~DeleteCustomerGatewayResult() void DeleteCustomerGatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteExpressConnectRequest.cc b/vpc/src/model/DeleteExpressConnectRequest.cc new file mode 100644 index 000000000..6fbe20bc4 --- /dev/null +++ b/vpc/src/model/DeleteExpressConnectRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DeleteExpressConnectRequest; + +DeleteExpressConnectRequest::DeleteExpressConnectRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteExpressConnect") +{} + +DeleteExpressConnectRequest::~DeleteExpressConnectRequest() +{} + +long DeleteExpressConnectRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteExpressConnectRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteExpressConnectRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteExpressConnectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteExpressConnectRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteExpressConnectRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteExpressConnectRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteExpressConnectRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DeleteExpressConnectRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteExpressConnectRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +bool DeleteExpressConnectRequest::getForce()const +{ + return force_; +} + +void DeleteExpressConnectRequest::setForce(bool force) +{ + force_ = force; + setCoreParameter("Force", force ? "true" : "false"); +} + +std::string DeleteExpressConnectRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void DeleteExpressConnectRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setCoreParameter("RouterInterfaceId", routerInterfaceId); +} + +long DeleteExpressConnectRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteExpressConnectRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteExpressConnectResult.cc b/vpc/src/model/DeleteExpressConnectResult.cc new file mode 100644 index 000000000..7f10cf882 --- /dev/null +++ b/vpc/src/model/DeleteExpressConnectResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteExpressConnectResult::DeleteExpressConnectResult() : + ServiceResult() +{} + +DeleteExpressConnectResult::DeleteExpressConnectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteExpressConnectResult::~DeleteExpressConnectResult() +{} + +void DeleteExpressConnectResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteFlowLogRequest.cc b/vpc/src/model/DeleteFlowLogRequest.cc index ed79469a6..99a1f4a55 100644 --- a/vpc/src/model/DeleteFlowLogRequest.cc +++ b/vpc/src/model/DeleteFlowLogRequest.cc @@ -33,7 +33,7 @@ long DeleteFlowLogRequest::getResourceOwnerId()const void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteFlowLogRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteFlowLogRequest::getResourceOwnerAccount()const void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteFlowLogRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteFlowLogRequest::getRegionId()const void DeleteFlowLogRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteFlowLogRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteFlowLogRequest::getOwnerAccount()const void DeleteFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteFlowLogRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeleteFlowLogRequest::getOwnerId()const void DeleteFlowLogRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteFlowLogRequest::getFlowLogId()const @@ -88,6 +88,6 @@ std::string DeleteFlowLogRequest::getFlowLogId()const void DeleteFlowLogRequest::setFlowLogId(const std::string& flowLogId) { flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); + setCoreParameter("FlowLogId", flowLogId); } diff --git a/vpc/src/model/DeleteFlowLogResult.cc b/vpc/src/model/DeleteFlowLogResult.cc index 63e3fb930..749d00bcf 100644 --- a/vpc/src/model/DeleteFlowLogResult.cc +++ b/vpc/src/model/DeleteFlowLogResult.cc @@ -35,10 +35,13 @@ DeleteFlowLogResult::~DeleteFlowLogResult() void DeleteFlowLogResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString(); diff --git a/vpc/src/model/DeleteForwardEntryRequest.cc b/vpc/src/model/DeleteForwardEntryRequest.cc index 3dbc70f57..c46bf9475 100644 --- a/vpc/src/model/DeleteForwardEntryRequest.cc +++ b/vpc/src/model/DeleteForwardEntryRequest.cc @@ -33,7 +33,7 @@ long DeleteForwardEntryRequest::getResourceOwnerId()const void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteForwardEntryRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteForwardEntryRequest::getRegionId()const void DeleteForwardEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteForwardEntryRequest::getForwardEntryId()const @@ -66,7 +66,7 @@ std::string DeleteForwardEntryRequest::getForwardEntryId()const void DeleteForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) { forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); + setCoreParameter("ForwardEntryId", forwardEntryId); } std::string DeleteForwardEntryRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteForwardEntryRequest::getOwnerAccount()const void DeleteForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteForwardEntryRequest::getForwardTableId()const @@ -88,7 +88,7 @@ std::string DeleteForwardEntryRequest::getForwardTableId()const void DeleteForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) { forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); + setCoreParameter("ForwardTableId", forwardTableId); } long DeleteForwardEntryRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteForwardEntryRequest::getOwnerId()const void DeleteForwardEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteForwardEntryResult.cc b/vpc/src/model/DeleteForwardEntryResult.cc index ebb3c1000..29e4bfba8 100644 --- a/vpc/src/model/DeleteForwardEntryResult.cc +++ b/vpc/src/model/DeleteForwardEntryResult.cc @@ -35,10 +35,13 @@ DeleteForwardEntryResult::~DeleteForwardEntryResult() void DeleteForwardEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc b/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc index 8c60be038..dda996823 100644 --- a/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/DeleteGlobalAccelerationInstanceRequest.cc @@ -33,7 +33,7 @@ long DeleteGlobalAccelerationInstanceRequest::getResourceOwnerId()const void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteGlobalAccelerationInstanceRequest::getResourceOwnerAccount()co void DeleteGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteGlobalAccelerationInstanceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteGlobalAccelerationInstanceRequest::getRegionId()const void DeleteGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteGlobalAccelerationInstanceRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteGlobalAccelerationInstanceRequest::getOwnerAccount()const void DeleteGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteGlobalAccelerationInstanceRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DeleteGlobalAccelerationInstanceRequest::getOwnerId()const void DeleteGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const @@ -88,6 +88,6 @@ std::string DeleteGlobalAccelerationInstanceRequest::getGlobalAccelerationInstan void DeleteGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } diff --git a/vpc/src/model/DeleteGlobalAccelerationInstanceResult.cc b/vpc/src/model/DeleteGlobalAccelerationInstanceResult.cc index 8a4671bb0..8a7ec6aae 100644 --- a/vpc/src/model/DeleteGlobalAccelerationInstanceResult.cc +++ b/vpc/src/model/DeleteGlobalAccelerationInstanceResult.cc @@ -35,10 +35,13 @@ DeleteGlobalAccelerationInstanceResult::~DeleteGlobalAccelerationInstanceResult( void DeleteGlobalAccelerationInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteHaVipRequest.cc b/vpc/src/model/DeleteHaVipRequest.cc index 0619fae0e..cf4e5d1fd 100644 --- a/vpc/src/model/DeleteHaVipRequest.cc +++ b/vpc/src/model/DeleteHaVipRequest.cc @@ -33,7 +33,7 @@ std::string DeleteHaVipRequest::getHaVipId()const void DeleteHaVipRequest::setHaVipId(const std::string& haVipId) { haVipId_ = haVipId; - setParameter("HaVipId", haVipId); + setCoreParameter("HaVipId", haVipId); } long DeleteHaVipRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteHaVipRequest::getResourceOwnerId()const void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteHaVipRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteHaVipRequest::getResourceOwnerAccount()const void DeleteHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteHaVipRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteHaVipRequest::getClientToken()const void DeleteHaVipRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteHaVipRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteHaVipRequest::getRegionId()const void DeleteHaVipRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteHaVipRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteHaVipRequest::getOwnerAccount()const void DeleteHaVipRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteHaVipRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteHaVipRequest::getOwnerId()const void DeleteHaVipRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteHaVipResult.cc b/vpc/src/model/DeleteHaVipResult.cc index c3c18ef3f..e2546c636 100644 --- a/vpc/src/model/DeleteHaVipResult.cc +++ b/vpc/src/model/DeleteHaVipResult.cc @@ -35,10 +35,13 @@ DeleteHaVipResult::~DeleteHaVipResult() void DeleteHaVipResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc b/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc index d299f17d3..79ba72588 100644 --- a/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc +++ b/vpc/src/model/DeleteIPv6TranslatorAclListRequest.cc @@ -33,7 +33,7 @@ std::string DeleteIPv6TranslatorAclListRequest::getAclId()const void DeleteIPv6TranslatorAclListRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long DeleteIPv6TranslatorAclListRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteIPv6TranslatorAclListRequest::getResourceOwnerId()const void DeleteIPv6TranslatorAclListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteIPv6TranslatorAclListRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteIPv6TranslatorAclListRequest::getResourceOwnerAccount()const void DeleteIPv6TranslatorAclListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteIPv6TranslatorAclListRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteIPv6TranslatorAclListRequest::getClientToken()const void DeleteIPv6TranslatorAclListRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteIPv6TranslatorAclListRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteIPv6TranslatorAclListRequest::getRegionId()const void DeleteIPv6TranslatorAclListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteIPv6TranslatorAclListRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteIPv6TranslatorAclListRequest::getOwnerAccount()const void DeleteIPv6TranslatorAclListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteIPv6TranslatorAclListRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteIPv6TranslatorAclListRequest::getOwnerId()const void DeleteIPv6TranslatorAclListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteIPv6TranslatorAclListResult.cc b/vpc/src/model/DeleteIPv6TranslatorAclListResult.cc index 8b6943e6e..455dcb9ad 100644 --- a/vpc/src/model/DeleteIPv6TranslatorAclListResult.cc +++ b/vpc/src/model/DeleteIPv6TranslatorAclListResult.cc @@ -35,10 +35,13 @@ DeleteIPv6TranslatorAclListResult::~DeleteIPv6TranslatorAclListResult() void DeleteIPv6TranslatorAclListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc b/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc index 4fe93aaca..d826f588e 100644 --- a/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc +++ b/vpc/src/model/DeleteIPv6TranslatorEntryRequest.cc @@ -33,7 +33,7 @@ long DeleteIPv6TranslatorEntryRequest::getResourceOwnerId()const void DeleteIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId()const @@ -44,7 +44,7 @@ std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId()const void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId) { ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; - setParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); + setCoreParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); } std::string DeleteIPv6TranslatorEntryRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteIPv6TranslatorEntryRequest::getResourceOwnerAccount()const void DeleteIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteIPv6TranslatorEntryRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteIPv6TranslatorEntryRequest::getClientToken()const void DeleteIPv6TranslatorEntryRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteIPv6TranslatorEntryRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DeleteIPv6TranslatorEntryRequest::getRegionId()const void DeleteIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteIPv6TranslatorEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteIPv6TranslatorEntryRequest::getOwnerAccount()const void DeleteIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorId()const @@ -99,7 +99,7 @@ std::string DeleteIPv6TranslatorEntryRequest::getIpv6TranslatorId()const void DeleteIPv6TranslatorEntryRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) { ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); + setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId); } long DeleteIPv6TranslatorEntryRequest::getOwnerId()const @@ -110,6 +110,6 @@ long DeleteIPv6TranslatorEntryRequest::getOwnerId()const void DeleteIPv6TranslatorEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteIPv6TranslatorEntryResult.cc b/vpc/src/model/DeleteIPv6TranslatorEntryResult.cc index e8099d9fd..937c4f9a9 100644 --- a/vpc/src/model/DeleteIPv6TranslatorEntryResult.cc +++ b/vpc/src/model/DeleteIPv6TranslatorEntryResult.cc @@ -35,10 +35,13 @@ DeleteIPv6TranslatorEntryResult::~DeleteIPv6TranslatorEntryResult() void DeleteIPv6TranslatorEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteIPv6TranslatorRequest.cc b/vpc/src/model/DeleteIPv6TranslatorRequest.cc index 9c4148626..638e30033 100644 --- a/vpc/src/model/DeleteIPv6TranslatorRequest.cc +++ b/vpc/src/model/DeleteIPv6TranslatorRequest.cc @@ -33,7 +33,7 @@ long DeleteIPv6TranslatorRequest::getResourceOwnerId()const void DeleteIPv6TranslatorRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteIPv6TranslatorRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteIPv6TranslatorRequest::getResourceOwnerAccount()const void DeleteIPv6TranslatorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteIPv6TranslatorRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string DeleteIPv6TranslatorRequest::getClientToken()const void DeleteIPv6TranslatorRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteIPv6TranslatorRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteIPv6TranslatorRequest::getRegionId()const void DeleteIPv6TranslatorRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteIPv6TranslatorRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteIPv6TranslatorRequest::getOwnerAccount()const void DeleteIPv6TranslatorRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteIPv6TranslatorRequest::getIpv6TranslatorId()const @@ -88,7 +88,7 @@ std::string DeleteIPv6TranslatorRequest::getIpv6TranslatorId()const void DeleteIPv6TranslatorRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) { ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); + setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId); } long DeleteIPv6TranslatorRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteIPv6TranslatorRequest::getOwnerId()const void DeleteIPv6TranslatorRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteIPv6TranslatorResult.cc b/vpc/src/model/DeleteIPv6TranslatorResult.cc index 602a9f631..ef23dc75f 100644 --- a/vpc/src/model/DeleteIPv6TranslatorResult.cc +++ b/vpc/src/model/DeleteIPv6TranslatorResult.cc @@ -35,10 +35,13 @@ DeleteIPv6TranslatorResult::~DeleteIPv6TranslatorResult() void DeleteIPv6TranslatorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc b/vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc index b03b6045c..9ab7f4717 100644 --- a/vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc +++ b/vpc/src/model/DeleteIpv6EgressOnlyRuleRequest.cc @@ -33,7 +33,7 @@ long DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerId()const void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteIpv6EgressOnlyRuleRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getClientToken()const void DeleteIpv6EgressOnlyRuleRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long DeleteIpv6EgressOnlyRuleRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long DeleteIpv6EgressOnlyRuleRequest::getCallerParentId()const void DeleteIpv6EgressOnlyRuleRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool DeleteIpv6EgressOnlyRuleRequest::getProxy_original_security_transport()cons void DeleteIpv6EgressOnlyRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getProxy_original_source_ip()const void DeleteIpv6EgressOnlyRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerIdLoginEmail()const void DeleteIpv6EgressOnlyRuleRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteIpv6EgressOnlyRuleRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getCallerType()const void DeleteIpv6EgressOnlyRuleRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DeleteIpv6EgressOnlyRuleRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getAccessKeyId()const void DeleteIpv6EgressOnlyRuleRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeleteIpv6EgressOnlyRuleRequest::getIpv6EgressOnlyRuleId()const @@ -121,7 +121,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getIpv6EgressOnlyRuleId()const void DeleteIpv6EgressOnlyRuleRequest::setIpv6EgressOnlyRuleId(const std::string& ipv6EgressOnlyRuleId) { ipv6EgressOnlyRuleId_ = ipv6EgressOnlyRuleId; - setParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId); + setCoreParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId); } std::string DeleteIpv6EgressOnlyRuleRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getResourceGroupId()const void DeleteIpv6EgressOnlyRuleRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DeleteIpv6EgressOnlyRuleRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getRegionId()const void DeleteIpv6EgressOnlyRuleRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteIpv6EgressOnlyRuleRequest::getSecurityToken()const @@ -154,7 +154,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getSecurityToken()const void DeleteIpv6EgressOnlyRuleRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool DeleteIpv6EgressOnlyRuleRequest::getEnable()const @@ -165,7 +165,7 @@ bool DeleteIpv6EgressOnlyRuleRequest::getEnable()const void DeleteIpv6EgressOnlyRuleRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DeleteIpv6EgressOnlyRuleRequest::getRequestContent()const @@ -176,7 +176,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getRequestContent()const void DeleteIpv6EgressOnlyRuleRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DeleteIpv6EgressOnlyRuleRequest::getCallerBidEmail()const @@ -187,7 +187,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getCallerBidEmail()const void DeleteIpv6EgressOnlyRuleRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteIpv6EgressOnlyRuleRequest::getCallerUidEmail()const @@ -198,7 +198,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getCallerUidEmail()const void DeleteIpv6EgressOnlyRuleRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DeleteIpv6EgressOnlyRuleRequest::getCallerUid()const @@ -209,7 +209,7 @@ long DeleteIpv6EgressOnlyRuleRequest::getCallerUid()const void DeleteIpv6EgressOnlyRuleRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DeleteIpv6EgressOnlyRuleRequest::getApp_ip()const @@ -220,7 +220,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getApp_ip()const void DeleteIpv6EgressOnlyRuleRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const @@ -231,7 +231,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getResourceOwnerAccount()const void DeleteIpv6EgressOnlyRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerAccount()const @@ -242,7 +242,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getOwnerAccount()const void DeleteIpv6EgressOnlyRuleRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteIpv6EgressOnlyRuleRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getCallerBid()const void DeleteIpv6EgressOnlyRuleRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DeleteIpv6EgressOnlyRuleRequest::getOwnerId()const @@ -264,7 +264,7 @@ long DeleteIpv6EgressOnlyRuleRequest::getOwnerId()const void DeleteIpv6EgressOnlyRuleRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DeleteIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DeleteIpv6EgressOnlyRuleRequest::getProxy_trust_transport_info()const void DeleteIpv6EgressOnlyRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DeleteIpv6EgressOnlyRuleRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DeleteIpv6EgressOnlyRuleRequest::getAk_mfa_present()const void DeleteIpv6EgressOnlyRuleRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DeleteIpv6EgressOnlyRuleRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DeleteIpv6EgressOnlyRuleRequest::getSecurity_transport()const void DeleteIpv6EgressOnlyRuleRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DeleteIpv6EgressOnlyRuleRequest::getRequestId()const @@ -308,6 +308,6 @@ std::string DeleteIpv6EgressOnlyRuleRequest::getRequestId()const void DeleteIpv6EgressOnlyRuleRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/vpc/src/model/DeleteIpv6EgressOnlyRuleResult.cc b/vpc/src/model/DeleteIpv6EgressOnlyRuleResult.cc index 8b4023b57..f687102c9 100644 --- a/vpc/src/model/DeleteIpv6EgressOnlyRuleResult.cc +++ b/vpc/src/model/DeleteIpv6EgressOnlyRuleResult.cc @@ -35,10 +35,13 @@ DeleteIpv6EgressOnlyRuleResult::~DeleteIpv6EgressOnlyRuleResult() void DeleteIpv6EgressOnlyRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteIpv6GatewayRequest.cc b/vpc/src/model/DeleteIpv6GatewayRequest.cc index b495d5990..12c36ad80 100644 --- a/vpc/src/model/DeleteIpv6GatewayRequest.cc +++ b/vpc/src/model/DeleteIpv6GatewayRequest.cc @@ -33,7 +33,7 @@ long DeleteIpv6GatewayRequest::getResourceOwnerId()const void DeleteIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DeleteIpv6GatewayRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DeleteIpv6GatewayRequest::getCallerParentId()const void DeleteIpv6GatewayRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteIpv6GatewayRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DeleteIpv6GatewayRequest::getProxy_original_security_transport()const void DeleteIpv6GatewayRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteIpv6GatewayRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DeleteIpv6GatewayRequest::getProxy_original_source_ip()const void DeleteIpv6GatewayRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DeleteIpv6GatewayRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DeleteIpv6GatewayRequest::getOwnerIdLoginEmail()const void DeleteIpv6GatewayRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteIpv6GatewayRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DeleteIpv6GatewayRequest::getCallerType()const void DeleteIpv6GatewayRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DeleteIpv6GatewayRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DeleteIpv6GatewayRequest::getAccessKeyId()const void DeleteIpv6GatewayRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeleteIpv6GatewayRequest::getResourceGroupId()const @@ -110,7 +110,7 @@ std::string DeleteIpv6GatewayRequest::getResourceGroupId()const void DeleteIpv6GatewayRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DeleteIpv6GatewayRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string DeleteIpv6GatewayRequest::getRegionId()const void DeleteIpv6GatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteIpv6GatewayRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DeleteIpv6GatewayRequest::getSecurityToken()const void DeleteIpv6GatewayRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool DeleteIpv6GatewayRequest::getEnable()const @@ -143,7 +143,7 @@ bool DeleteIpv6GatewayRequest::getEnable()const void DeleteIpv6GatewayRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DeleteIpv6GatewayRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string DeleteIpv6GatewayRequest::getRequestContent()const void DeleteIpv6GatewayRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DeleteIpv6GatewayRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DeleteIpv6GatewayRequest::getCallerBidEmail()const void DeleteIpv6GatewayRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteIpv6GatewayRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string DeleteIpv6GatewayRequest::getCallerUidEmail()const void DeleteIpv6GatewayRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DeleteIpv6GatewayRequest::getCallerUid()const @@ -187,7 +187,7 @@ long DeleteIpv6GatewayRequest::getCallerUid()const void DeleteIpv6GatewayRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DeleteIpv6GatewayRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string DeleteIpv6GatewayRequest::getApp_ip()const void DeleteIpv6GatewayRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DeleteIpv6GatewayRequest::getResourceOwnerAccount()const @@ -209,7 +209,7 @@ std::string DeleteIpv6GatewayRequest::getResourceOwnerAccount()const void DeleteIpv6GatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteIpv6GatewayRequest::getOwnerAccount()const @@ -220,7 +220,7 @@ std::string DeleteIpv6GatewayRequest::getOwnerAccount()const void DeleteIpv6GatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteIpv6GatewayRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DeleteIpv6GatewayRequest::getCallerBid()const void DeleteIpv6GatewayRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DeleteIpv6GatewayRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DeleteIpv6GatewayRequest::getOwnerId()const void DeleteIpv6GatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DeleteIpv6GatewayRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DeleteIpv6GatewayRequest::getProxy_trust_transport_info()const void DeleteIpv6GatewayRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DeleteIpv6GatewayRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DeleteIpv6GatewayRequest::getAk_mfa_present()const void DeleteIpv6GatewayRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DeleteIpv6GatewayRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DeleteIpv6GatewayRequest::getSecurity_transport()const void DeleteIpv6GatewayRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DeleteIpv6GatewayRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DeleteIpv6GatewayRequest::getRequestId()const void DeleteIpv6GatewayRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DeleteIpv6GatewayRequest::getIpv6GatewayId()const @@ -297,6 +297,6 @@ std::string DeleteIpv6GatewayRequest::getIpv6GatewayId()const void DeleteIpv6GatewayRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } diff --git a/vpc/src/model/DeleteIpv6GatewayResult.cc b/vpc/src/model/DeleteIpv6GatewayResult.cc index 1a5fceb04..25f317856 100644 --- a/vpc/src/model/DeleteIpv6GatewayResult.cc +++ b/vpc/src/model/DeleteIpv6GatewayResult.cc @@ -35,10 +35,13 @@ DeleteIpv6GatewayResult::~DeleteIpv6GatewayResult() void DeleteIpv6GatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc b/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc index 60c0eff8e..6efe0d2a7 100644 --- a/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc @@ -33,7 +33,7 @@ long DeleteIpv6InternetBandwidthRequest::getResourceOwnerId()const void DeleteIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DeleteIpv6InternetBandwidthRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DeleteIpv6InternetBandwidthRequest::getCallerParentId()const void DeleteIpv6InternetBandwidthRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteIpv6InternetBandwidthRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DeleteIpv6InternetBandwidthRequest::getProxy_original_security_transport()c void DeleteIpv6InternetBandwidthRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId()const @@ -66,7 +66,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId()cons void DeleteIpv6InternetBandwidthRequest::setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId) { ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; - setParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); + setCoreParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); } std::string DeleteIpv6InternetBandwidthRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getProxy_original_source_ip()con void DeleteIpv6InternetBandwidthRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DeleteIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const void DeleteIpv6InternetBandwidthRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteIpv6InternetBandwidthRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getCallerType()const void DeleteIpv6InternetBandwidthRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DeleteIpv6InternetBandwidthRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getAccessKeyId()const void DeleteIpv6InternetBandwidthRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeleteIpv6InternetBandwidthRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getResourceGroupId()const void DeleteIpv6InternetBandwidthRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DeleteIpv6InternetBandwidthRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getRegionId()const void DeleteIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteIpv6InternetBandwidthRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getSecurityToken()const void DeleteIpv6InternetBandwidthRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool DeleteIpv6InternetBandwidthRequest::getEnable()const @@ -154,7 +154,7 @@ bool DeleteIpv6InternetBandwidthRequest::getEnable()const void DeleteIpv6InternetBandwidthRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DeleteIpv6InternetBandwidthRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getRequestContent()const void DeleteIpv6InternetBandwidthRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DeleteIpv6InternetBandwidthRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getCallerBidEmail()const void DeleteIpv6InternetBandwidthRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteIpv6InternetBandwidthRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getCallerUidEmail()const void DeleteIpv6InternetBandwidthRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DeleteIpv6InternetBandwidthRequest::getCallerUid()const @@ -198,7 +198,7 @@ long DeleteIpv6InternetBandwidthRequest::getCallerUid()const void DeleteIpv6InternetBandwidthRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DeleteIpv6InternetBandwidthRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getApp_ip()const void DeleteIpv6InternetBandwidthRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DeleteIpv6InternetBandwidthRequest::getResourceOwnerAccount()const @@ -220,7 +220,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getResourceOwnerAccount()const void DeleteIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteIpv6InternetBandwidthRequest::getOwnerAccount()const @@ -231,7 +231,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getOwnerAccount()const void DeleteIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteIpv6InternetBandwidthRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getCallerBid()const void DeleteIpv6InternetBandwidthRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DeleteIpv6InternetBandwidthRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DeleteIpv6InternetBandwidthRequest::getOwnerId()const void DeleteIpv6InternetBandwidthRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DeleteIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DeleteIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const void DeleteIpv6InternetBandwidthRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DeleteIpv6InternetBandwidthRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DeleteIpv6InternetBandwidthRequest::getAk_mfa_present()const void DeleteIpv6InternetBandwidthRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DeleteIpv6InternetBandwidthRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DeleteIpv6InternetBandwidthRequest::getSecurity_transport()const void DeleteIpv6InternetBandwidthRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DeleteIpv6InternetBandwidthRequest::getIpv6AddressId()const @@ -297,7 +297,7 @@ std::string DeleteIpv6InternetBandwidthRequest::getIpv6AddressId()const void DeleteIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId) { ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); + setCoreParameter("Ipv6AddressId", ipv6AddressId); } std::string DeleteIpv6InternetBandwidthRequest::getRequestId()const @@ -308,6 +308,6 @@ std::string DeleteIpv6InternetBandwidthRequest::getRequestId()const void DeleteIpv6InternetBandwidthRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/vpc/src/model/DeleteIpv6InternetBandwidthResult.cc b/vpc/src/model/DeleteIpv6InternetBandwidthResult.cc index 0e9d262be..c0fb441c4 100644 --- a/vpc/src/model/DeleteIpv6InternetBandwidthResult.cc +++ b/vpc/src/model/DeleteIpv6InternetBandwidthResult.cc @@ -35,10 +35,13 @@ DeleteIpv6InternetBandwidthResult::~DeleteIpv6InternetBandwidthResult() void DeleteIpv6InternetBandwidthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteNatGatewayRequest.cc b/vpc/src/model/DeleteNatGatewayRequest.cc index a0a518b6d..59e09e1de 100644 --- a/vpc/src/model/DeleteNatGatewayRequest.cc +++ b/vpc/src/model/DeleteNatGatewayRequest.cc @@ -33,7 +33,7 @@ long DeleteNatGatewayRequest::getResourceOwnerId()const void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteNatGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteNatGatewayRequest::getRegionId()const void DeleteNatGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteNatGatewayRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteNatGatewayRequest::getOwnerAccount()const void DeleteNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } bool DeleteNatGatewayRequest::getForce()const @@ -77,7 +77,7 @@ bool DeleteNatGatewayRequest::getForce()const void DeleteNatGatewayRequest::setForce(bool force) { force_ = force; - setParameter("Force", std::to_string(force)); + setCoreParameter("Force", force ? "true" : "false"); } std::string DeleteNatGatewayRequest::getNatGatewayId()const @@ -88,7 +88,7 @@ std::string DeleteNatGatewayRequest::getNatGatewayId()const void DeleteNatGatewayRequest::setNatGatewayId(const std::string& natGatewayId) { natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); + setCoreParameter("NatGatewayId", natGatewayId); } long DeleteNatGatewayRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteNatGatewayRequest::getOwnerId()const void DeleteNatGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteNatGatewayResult.cc b/vpc/src/model/DeleteNatGatewayResult.cc index 5fac512f3..78b38736f 100644 --- a/vpc/src/model/DeleteNatGatewayResult.cc +++ b/vpc/src/model/DeleteNatGatewayResult.cc @@ -35,10 +35,13 @@ DeleteNatGatewayResult::~DeleteNatGatewayResult() void DeleteNatGatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteNetworkAclRequest.cc b/vpc/src/model/DeleteNetworkAclRequest.cc new file mode 100644 index 000000000..532d18437 --- /dev/null +++ b/vpc/src/model/DeleteNetworkAclRequest.cc @@ -0,0 +1,291 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DeleteNetworkAclRequest; + +DeleteNetworkAclRequest::DeleteNetworkAclRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteNetworkAcl") +{} + +DeleteNetworkAclRequest::~DeleteNetworkAclRequest() +{} + +long DeleteNetworkAclRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteNetworkAclRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteNetworkAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long DeleteNetworkAclRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteNetworkAclRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteNetworkAclRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteNetworkAclRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DeleteNetworkAclRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteNetworkAclRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteNetworkAclRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteNetworkAclRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DeleteNetworkAclRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteNetworkAclRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteNetworkAclRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteNetworkAclRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteNetworkAclRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNetworkAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteNetworkAclRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteNetworkAclRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool DeleteNetworkAclRequest::getEnable()const +{ + return enable_; +} + +void DeleteNetworkAclRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string DeleteNetworkAclRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteNetworkAclRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DeleteNetworkAclRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteNetworkAclRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteNetworkAclRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void DeleteNetworkAclRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string DeleteNetworkAclRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteNetworkAclRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteNetworkAclRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteNetworkAclRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteNetworkAclRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteNetworkAclRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DeleteNetworkAclRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNetworkAclRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteNetworkAclRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DeleteNetworkAclRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNetworkAclRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool DeleteNetworkAclRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteNetworkAclRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DeleteNetworkAclRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteNetworkAclRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DeleteNetworkAclRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteNetworkAclRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DeleteNetworkAclRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteNetworkAclRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vpc/src/model/DeleteNetworkAclResult.cc b/vpc/src/model/DeleteNetworkAclResult.cc new file mode 100644 index 000000000..4a32ca2f4 --- /dev/null +++ b/vpc/src/model/DeleteNetworkAclResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteNetworkAclResult::DeleteNetworkAclResult() : + ServiceResult() +{} + +DeleteNetworkAclResult::DeleteNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkAclResult::~DeleteNetworkAclResult() +{} + +void DeleteNetworkAclResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeletePhysicalConnectionRequest.cc b/vpc/src/model/DeletePhysicalConnectionRequest.cc index 2b948e803..25068c7fb 100644 --- a/vpc/src/model/DeletePhysicalConnectionRequest.cc +++ b/vpc/src/model/DeletePhysicalConnectionRequest.cc @@ -33,7 +33,7 @@ long DeletePhysicalConnectionRequest::getResourceOwnerId()const void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeletePhysicalConnectionRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeletePhysicalConnectionRequest::getRegionId()const void DeletePhysicalConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeletePhysicalConnectionRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeletePhysicalConnectionRequest::getClientToken()const void DeletePhysicalConnectionRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const @@ -77,7 +77,7 @@ std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string DeletePhysicalConnectionRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeletePhysicalConnectionRequest::getOwnerAccount()const void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeletePhysicalConnectionRequest::getUserCidr()const @@ -99,7 +99,7 @@ std::string DeletePhysicalConnectionRequest::getUserCidr()const void DeletePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) { userCidr_ = userCidr; - setParameter("UserCidr", userCidr); + setCoreParameter("UserCidr", userCidr); } long DeletePhysicalConnectionRequest::getOwnerId()const @@ -110,6 +110,6 @@ long DeletePhysicalConnectionRequest::getOwnerId()const void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeletePhysicalConnectionResult.cc b/vpc/src/model/DeletePhysicalConnectionResult.cc index c87b394e8..031f92459 100644 --- a/vpc/src/model/DeletePhysicalConnectionResult.cc +++ b/vpc/src/model/DeletePhysicalConnectionResult.cc @@ -35,10 +35,13 @@ DeletePhysicalConnectionResult::~DeletePhysicalConnectionResult() void DeletePhysicalConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteRouteEntryRequest.cc b/vpc/src/model/DeleteRouteEntryRequest.cc index a698c6106..84d025335 100644 --- a/vpc/src/model/DeleteRouteEntryRequest.cc +++ b/vpc/src/model/DeleteRouteEntryRequest.cc @@ -33,7 +33,7 @@ long DeleteRouteEntryRequest::getResourceOwnerId()const void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteRouteEntryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteRouteEntryRequest::getResourceOwnerAccount()const void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteRouteEntryRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteRouteEntryRequest::getRegionId()const void DeleteRouteEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteRouteEntryRequest::getRouteEntryId()const @@ -66,7 +66,7 @@ std::string DeleteRouteEntryRequest::getRouteEntryId()const void DeleteRouteEntryRequest::setRouteEntryId(const std::string& routeEntryId) { routeEntryId_ = routeEntryId; - setParameter("RouteEntryId", routeEntryId); + setCoreParameter("RouteEntryId", routeEntryId); } std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const @@ -77,7 +77,7 @@ std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) { destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); + setCoreParameter("DestinationCidrBlock", destinationCidrBlock); } std::string DeleteRouteEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteRouteEntryRequest::getOwnerAccount()const void DeleteRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteRouteEntryRequest::getNextHopId()const @@ -99,7 +99,7 @@ std::string DeleteRouteEntryRequest::getNextHopId()const void DeleteRouteEntryRequest::setNextHopId(const std::string& nextHopId) { nextHopId_ = nextHopId; - setParameter("NextHopId", nextHopId); + setCoreParameter("NextHopId", nextHopId); } long DeleteRouteEntryRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DeleteRouteEntryRequest::getOwnerId()const void DeleteRouteEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::vector DeleteRouteEntryRequest::getNextHopList()const @@ -125,8 +125,8 @@ void DeleteRouteEntryRequest::setNextHopList(const std::vector& nex for(int i = 0; i!= nextHopList.size(); i++) { auto obj = nextHopList.at(i); std::string str ="NextHopList."+ std::to_string(i); - setParameter(str + ".NextHopId", obj.nextHopId); - setParameter(str + ".NextHopType", obj.nextHopType); + setCoreParameter(str + ".NextHopId", obj.nextHopId); + setCoreParameter(str + ".NextHopType", obj.nextHopType); } } @@ -138,6 +138,6 @@ std::string DeleteRouteEntryRequest::getRouteTableId()const void DeleteRouteEntryRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } diff --git a/vpc/src/model/DeleteRouteEntryResult.cc b/vpc/src/model/DeleteRouteEntryResult.cc index 41a9af680..a24344eca 100644 --- a/vpc/src/model/DeleteRouteEntryResult.cc +++ b/vpc/src/model/DeleteRouteEntryResult.cc @@ -35,10 +35,13 @@ DeleteRouteEntryResult::~DeleteRouteEntryResult() void DeleteRouteEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteRouteTableRequest.cc b/vpc/src/model/DeleteRouteTableRequest.cc index c086deb89..f68a33a1c 100644 --- a/vpc/src/model/DeleteRouteTableRequest.cc +++ b/vpc/src/model/DeleteRouteTableRequest.cc @@ -33,7 +33,7 @@ long DeleteRouteTableRequest::getResourceOwnerId()const void DeleteRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DeleteRouteTableRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DeleteRouteTableRequest::getCallerParentId()const void DeleteRouteTableRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DeleteRouteTableRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DeleteRouteTableRequest::getProxy_original_security_transport()const void DeleteRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DeleteRouteTableRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DeleteRouteTableRequest::getProxy_original_source_ip()const void DeleteRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DeleteRouteTableRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DeleteRouteTableRequest::getOwnerIdLoginEmail()const void DeleteRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DeleteRouteTableRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DeleteRouteTableRequest::getCallerType()const void DeleteRouteTableRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DeleteRouteTableRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DeleteRouteTableRequest::getAccessKeyId()const void DeleteRouteTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DeleteRouteTableRequest::getResourceGroupId()const @@ -110,7 +110,7 @@ std::string DeleteRouteTableRequest::getResourceGroupId()const void DeleteRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DeleteRouteTableRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string DeleteRouteTableRequest::getRegionId()const void DeleteRouteTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteRouteTableRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DeleteRouteTableRequest::getSecurityToken()const void DeleteRouteTableRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool DeleteRouteTableRequest::getEnable()const @@ -143,7 +143,7 @@ bool DeleteRouteTableRequest::getEnable()const void DeleteRouteTableRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DeleteRouteTableRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string DeleteRouteTableRequest::getRequestContent()const void DeleteRouteTableRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DeleteRouteTableRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DeleteRouteTableRequest::getCallerBidEmail()const void DeleteRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DeleteRouteTableRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string DeleteRouteTableRequest::getCallerUidEmail()const void DeleteRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string DeleteRouteTableRequest::getRouteTableId()const @@ -187,7 +187,7 @@ std::string DeleteRouteTableRequest::getRouteTableId()const void DeleteRouteTableRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } long DeleteRouteTableRequest::getCallerUid()const @@ -198,7 +198,7 @@ long DeleteRouteTableRequest::getCallerUid()const void DeleteRouteTableRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DeleteRouteTableRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string DeleteRouteTableRequest::getApp_ip()const void DeleteRouteTableRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DeleteRouteTableRequest::getResourceOwnerAccount()const @@ -220,7 +220,7 @@ std::string DeleteRouteTableRequest::getResourceOwnerAccount()const void DeleteRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteRouteTableRequest::getOwnerAccount()const @@ -231,7 +231,7 @@ std::string DeleteRouteTableRequest::getOwnerAccount()const void DeleteRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteRouteTableRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string DeleteRouteTableRequest::getCallerBid()const void DeleteRouteTableRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DeleteRouteTableRequest::getOwnerId()const @@ -253,7 +253,7 @@ long DeleteRouteTableRequest::getOwnerId()const void DeleteRouteTableRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DeleteRouteTableRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool DeleteRouteTableRequest::getProxy_trust_transport_info()const void DeleteRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DeleteRouteTableRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool DeleteRouteTableRequest::getAk_mfa_present()const void DeleteRouteTableRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DeleteRouteTableRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool DeleteRouteTableRequest::getSecurity_transport()const void DeleteRouteTableRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DeleteRouteTableRequest::getRequestId()const @@ -297,6 +297,6 @@ std::string DeleteRouteTableRequest::getRequestId()const void DeleteRouteTableRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/vpc/src/model/DeleteRouteTableResult.cc b/vpc/src/model/DeleteRouteTableResult.cc index 4be6b8237..b9f58a3d9 100644 --- a/vpc/src/model/DeleteRouteTableResult.cc +++ b/vpc/src/model/DeleteRouteTableResult.cc @@ -35,10 +35,13 @@ DeleteRouteTableResult::~DeleteRouteTableResult() void DeleteRouteTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteRouterInterfaceRequest.cc b/vpc/src/model/DeleteRouterInterfaceRequest.cc index a3e7733f7..0ef150261 100644 --- a/vpc/src/model/DeleteRouterInterfaceRequest.cc +++ b/vpc/src/model/DeleteRouterInterfaceRequest.cc @@ -33,7 +33,7 @@ long DeleteRouterInterfaceRequest::getResourceOwnerId()const void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteRouterInterfaceRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteRouterInterfaceRequest::getRegionId()const void DeleteRouterInterfaceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount()const void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteRouterInterfaceRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteRouterInterfaceRequest::getClientToken()const void DeleteRouterInterfaceRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteRouterInterfaceRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteRouterInterfaceRequest::getOwnerAccount()const void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteRouterInterfaceRequest::getRouterInterfaceId()const @@ -88,7 +88,7 @@ std::string DeleteRouterInterfaceRequest::getRouterInterfaceId()const void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) { routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); + setCoreParameter("RouterInterfaceId", routerInterfaceId); } long DeleteRouterInterfaceRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteRouterInterfaceRequest::getOwnerId()const void DeleteRouterInterfaceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteRouterInterfaceResult.cc b/vpc/src/model/DeleteRouterInterfaceResult.cc index 0269bb0a2..597715bb4 100644 --- a/vpc/src/model/DeleteRouterInterfaceResult.cc +++ b/vpc/src/model/DeleteRouterInterfaceResult.cc @@ -35,10 +35,13 @@ DeleteRouterInterfaceResult::~DeleteRouterInterfaceResult() void DeleteRouterInterfaceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteSnatEntryRequest.cc b/vpc/src/model/DeleteSnatEntryRequest.cc index 434ce6d70..ffee8b14d 100644 --- a/vpc/src/model/DeleteSnatEntryRequest.cc +++ b/vpc/src/model/DeleteSnatEntryRequest.cc @@ -33,7 +33,7 @@ long DeleteSnatEntryRequest::getResourceOwnerId()const void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteSnatEntryRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteSnatEntryRequest::getRegionId()const void DeleteSnatEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteSnatEntryRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DeleteSnatEntryRequest::getOwnerAccount()const void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteSnatEntryRequest::getSnatTableId()const @@ -77,7 +77,7 @@ std::string DeleteSnatEntryRequest::getSnatTableId()const void DeleteSnatEntryRequest::setSnatTableId(const std::string& snatTableId) { snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); + setCoreParameter("SnatTableId", snatTableId); } std::string DeleteSnatEntryRequest::getSnatEntryId()const @@ -88,7 +88,7 @@ std::string DeleteSnatEntryRequest::getSnatEntryId()const void DeleteSnatEntryRequest::setSnatEntryId(const std::string& snatEntryId) { snatEntryId_ = snatEntryId; - setParameter("SnatEntryId", snatEntryId); + setCoreParameter("SnatEntryId", snatEntryId); } long DeleteSnatEntryRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteSnatEntryRequest::getOwnerId()const void DeleteSnatEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteSnatEntryResult.cc b/vpc/src/model/DeleteSnatEntryResult.cc index 1be9f8345..5ae8239e0 100644 --- a/vpc/src/model/DeleteSnatEntryResult.cc +++ b/vpc/src/model/DeleteSnatEntryResult.cc @@ -35,10 +35,13 @@ DeleteSnatEntryResult::~DeleteSnatEntryResult() void DeleteSnatEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteSslVpnClientCertRequest.cc b/vpc/src/model/DeleteSslVpnClientCertRequest.cc index 1a478fe3a..5b7d329c6 100644 --- a/vpc/src/model/DeleteSslVpnClientCertRequest.cc +++ b/vpc/src/model/DeleteSslVpnClientCertRequest.cc @@ -33,7 +33,7 @@ long DeleteSslVpnClientCertRequest::getResourceOwnerId()const void DeleteSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteSslVpnClientCertRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteSslVpnClientCertRequest::getResourceOwnerAccount()const void DeleteSslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteSslVpnClientCertRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteSslVpnClientCertRequest::getRegionId()const void DeleteSslVpnClientCertRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteSslVpnClientCertRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteSslVpnClientCertRequest::getClientToken()const void DeleteSslVpnClientCertRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteSslVpnClientCertRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteSslVpnClientCertRequest::getOwnerAccount()const void DeleteSslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteSslVpnClientCertRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DeleteSslVpnClientCertRequest::getOwnerId()const void DeleteSslVpnClientCertRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DeleteSslVpnClientCertRequest::getSslVpnClientCertId()const @@ -99,6 +99,6 @@ std::string DeleteSslVpnClientCertRequest::getSslVpnClientCertId()const void DeleteSslVpnClientCertRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) { sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); + setCoreParameter("SslVpnClientCertId", sslVpnClientCertId); } diff --git a/vpc/src/model/DeleteSslVpnClientCertResult.cc b/vpc/src/model/DeleteSslVpnClientCertResult.cc index 41393db14..5cd2ad752 100644 --- a/vpc/src/model/DeleteSslVpnClientCertResult.cc +++ b/vpc/src/model/DeleteSslVpnClientCertResult.cc @@ -35,10 +35,13 @@ DeleteSslVpnClientCertResult::~DeleteSslVpnClientCertResult() void DeleteSslVpnClientCertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteSslVpnServerRequest.cc b/vpc/src/model/DeleteSslVpnServerRequest.cc index d341d7989..4cbdcc430 100644 --- a/vpc/src/model/DeleteSslVpnServerRequest.cc +++ b/vpc/src/model/DeleteSslVpnServerRequest.cc @@ -33,7 +33,7 @@ std::string DeleteSslVpnServerRequest::getSslVpnServerId()const void DeleteSslVpnServerRequest::setSslVpnServerId(const std::string& sslVpnServerId) { sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); + setCoreParameter("SslVpnServerId", sslVpnServerId); } long DeleteSslVpnServerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteSslVpnServerRequest::getResourceOwnerId()const void DeleteSslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteSslVpnServerRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteSslVpnServerRequest::getResourceOwnerAccount()const void DeleteSslVpnServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteSslVpnServerRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteSslVpnServerRequest::getRegionId()const void DeleteSslVpnServerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteSslVpnServerRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string DeleteSslVpnServerRequest::getClientToken()const void DeleteSslVpnServerRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteSslVpnServerRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteSslVpnServerRequest::getOwnerAccount()const void DeleteSslVpnServerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteSslVpnServerRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteSslVpnServerRequest::getOwnerId()const void DeleteSslVpnServerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteSslVpnServerResult.cc b/vpc/src/model/DeleteSslVpnServerResult.cc index facd201ed..57c9522cb 100644 --- a/vpc/src/model/DeleteSslVpnServerResult.cc +++ b/vpc/src/model/DeleteSslVpnServerResult.cc @@ -35,10 +35,13 @@ DeleteSslVpnServerResult::~DeleteSslVpnServerResult() void DeleteSslVpnServerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteVSwitchRequest.cc b/vpc/src/model/DeleteVSwitchRequest.cc index 72601b775..ea1280ddf 100644 --- a/vpc/src/model/DeleteVSwitchRequest.cc +++ b/vpc/src/model/DeleteVSwitchRequest.cc @@ -33,7 +33,7 @@ std::string DeleteVSwitchRequest::getVSwitchId()const void DeleteVSwitchRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } long DeleteVSwitchRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DeleteVSwitchRequest::getResourceOwnerId()const void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteVSwitchRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteVSwitchRequest::getResourceOwnerAccount()const void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteVSwitchRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DeleteVSwitchRequest::getRegionId()const void DeleteVSwitchRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteVSwitchRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteVSwitchRequest::getOwnerAccount()const void DeleteVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteVSwitchRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DeleteVSwitchRequest::getOwnerId()const void DeleteVSwitchRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVSwitchResult.cc b/vpc/src/model/DeleteVSwitchResult.cc index 0dd0611d3..4355d0cc1 100644 --- a/vpc/src/model/DeleteVSwitchResult.cc +++ b/vpc/src/model/DeleteVSwitchResult.cc @@ -35,10 +35,13 @@ DeleteVSwitchResult::~DeleteVSwitchResult() void DeleteVSwitchResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteVirtualBorderRouterRequest.cc b/vpc/src/model/DeleteVirtualBorderRouterRequest.cc index 816841a32..e75f98721 100644 --- a/vpc/src/model/DeleteVirtualBorderRouterRequest.cc +++ b/vpc/src/model/DeleteVirtualBorderRouterRequest.cc @@ -33,7 +33,7 @@ long DeleteVirtualBorderRouterRequest::getResourceOwnerId()const void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteVirtualBorderRouterRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string DeleteVirtualBorderRouterRequest::getRegionId()const void DeleteVirtualBorderRouterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount()const void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteVirtualBorderRouterRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteVirtualBorderRouterRequest::getClientToken()const void DeleteVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteVirtualBorderRouterRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteVirtualBorderRouterRequest::getOwnerAccount()const void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteVirtualBorderRouterRequest::getVbrId()const @@ -88,7 +88,7 @@ std::string DeleteVirtualBorderRouterRequest::getVbrId()const void DeleteVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) { vbrId_ = vbrId; - setParameter("VbrId", vbrId); + setCoreParameter("VbrId", vbrId); } long DeleteVirtualBorderRouterRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteVirtualBorderRouterRequest::getOwnerId()const void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVirtualBorderRouterResult.cc b/vpc/src/model/DeleteVirtualBorderRouterResult.cc index d10a42f6d..4c08d66a6 100644 --- a/vpc/src/model/DeleteVirtualBorderRouterResult.cc +++ b/vpc/src/model/DeleteVirtualBorderRouterResult.cc @@ -35,10 +35,13 @@ DeleteVirtualBorderRouterResult::~DeleteVirtualBorderRouterResult() void DeleteVirtualBorderRouterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteVpcRequest.cc b/vpc/src/model/DeleteVpcRequest.cc index 610187c72..ef9db47c1 100644 --- a/vpc/src/model/DeleteVpcRequest.cc +++ b/vpc/src/model/DeleteVpcRequest.cc @@ -33,7 +33,7 @@ long DeleteVpcRequest::getResourceOwnerId()const void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteVpcRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteVpcRequest::getResourceOwnerAccount()const void DeleteVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteVpcRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteVpcRequest::getRegionId()const void DeleteVpcRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteVpcRequest::getVpcId()const @@ -66,7 +66,7 @@ std::string DeleteVpcRequest::getVpcId()const void DeleteVpcRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DeleteVpcRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteVpcRequest::getOwnerAccount()const void DeleteVpcRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteVpcRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DeleteVpcRequest::getOwnerId()const void DeleteVpcRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVpcResult.cc b/vpc/src/model/DeleteVpcResult.cc index 7533daa40..d31898f48 100644 --- a/vpc/src/model/DeleteVpcResult.cc +++ b/vpc/src/model/DeleteVpcResult.cc @@ -35,10 +35,13 @@ DeleteVpcResult::~DeleteVpcResult() void DeleteVpcResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteVpnConnectionRequest.cc b/vpc/src/model/DeleteVpnConnectionRequest.cc index 7bae4f1b3..d147946c7 100644 --- a/vpc/src/model/DeleteVpnConnectionRequest.cc +++ b/vpc/src/model/DeleteVpnConnectionRequest.cc @@ -33,7 +33,7 @@ long DeleteVpnConnectionRequest::getResourceOwnerId()const void DeleteVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteVpnConnectionRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteVpnConnectionRequest::getResourceOwnerAccount()const void DeleteVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteVpnConnectionRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteVpnConnectionRequest::getRegionId()const void DeleteVpnConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteVpnConnectionRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteVpnConnectionRequest::getClientToken()const void DeleteVpnConnectionRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteVpnConnectionRequest::getVpnConnectionId()const @@ -77,7 +77,7 @@ std::string DeleteVpnConnectionRequest::getVpnConnectionId()const void DeleteVpnConnectionRequest::setVpnConnectionId(const std::string& vpnConnectionId) { vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); + setCoreParameter("VpnConnectionId", vpnConnectionId); } std::string DeleteVpnConnectionRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DeleteVpnConnectionRequest::getOwnerAccount()const void DeleteVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DeleteVpnConnectionRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteVpnConnectionRequest::getOwnerId()const void DeleteVpnConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVpnConnectionResult.cc b/vpc/src/model/DeleteVpnConnectionResult.cc index 9f78b4d36..61df813d7 100644 --- a/vpc/src/model/DeleteVpnConnectionResult.cc +++ b/vpc/src/model/DeleteVpnConnectionResult.cc @@ -35,10 +35,13 @@ DeleteVpnConnectionResult::~DeleteVpnConnectionResult() void DeleteVpnConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteVpnGatewayRequest.cc b/vpc/src/model/DeleteVpnGatewayRequest.cc index d40f129dc..5a5d9cfdb 100644 --- a/vpc/src/model/DeleteVpnGatewayRequest.cc +++ b/vpc/src/model/DeleteVpnGatewayRequest.cc @@ -33,7 +33,7 @@ long DeleteVpnGatewayRequest::getResourceOwnerId()const void DeleteVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DeleteVpnGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DeleteVpnGatewayRequest::getResourceOwnerAccount()const void DeleteVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DeleteVpnGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DeleteVpnGatewayRequest::getRegionId()const void DeleteVpnGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DeleteVpnGatewayRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DeleteVpnGatewayRequest::getClientToken()const void DeleteVpnGatewayRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DeleteVpnGatewayRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DeleteVpnGatewayRequest::getOwnerAccount()const void DeleteVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DeleteVpnGatewayRequest::getVpnGatewayId()const @@ -88,7 +88,7 @@ std::string DeleteVpnGatewayRequest::getVpnGatewayId()const void DeleteVpnGatewayRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long DeleteVpnGatewayRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DeleteVpnGatewayRequest::getOwnerId()const void DeleteVpnGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DeleteVpnGatewayResult.cc b/vpc/src/model/DeleteVpnGatewayResult.cc index d36019682..bc9830049 100644 --- a/vpc/src/model/DeleteVpnGatewayResult.cc +++ b/vpc/src/model/DeleteVpnGatewayResult.cc @@ -35,10 +35,13 @@ DeleteVpnGatewayResult::~DeleteVpnGatewayResult() void DeleteVpnGatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DeleteVpnPbrRouteEntryRequest.cc b/vpc/src/model/DeleteVpnPbrRouteEntryRequest.cc new file mode 100644 index 000000000..17f15d04e --- /dev/null +++ b/vpc/src/model/DeleteVpnPbrRouteEntryRequest.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 + +using AlibabaCloud::Vpc::Model::DeleteVpnPbrRouteEntryRequest; + +DeleteVpnPbrRouteEntryRequest::DeleteVpnPbrRouteEntryRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnPbrRouteEntry") +{} + +DeleteVpnPbrRouteEntryRequest::~DeleteVpnPbrRouteEntryRequest() +{} + +std::string DeleteVpnPbrRouteEntryRequest::getRouteSource()const +{ + return routeSource_; +} + +void DeleteVpnPbrRouteEntryRequest::setRouteSource(const std::string& routeSource) +{ + routeSource_ = routeSource; + setCoreParameter("RouteSource", routeSource); +} + +long DeleteVpnPbrRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVpnPbrRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVpnPbrRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVpnPbrRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVpnPbrRouteEntryRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteVpnPbrRouteEntryRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DeleteVpnPbrRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVpnPbrRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DeleteVpnPbrRouteEntryRequest::getWeight()const +{ + return weight_; +} + +void DeleteVpnPbrRouteEntryRequest::setWeight(int weight) +{ + weight_ = weight; + setCoreParameter("Weight", std::to_string(weight)); +} + +std::string DeleteVpnPbrRouteEntryRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DeleteVpnPbrRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long DeleteVpnPbrRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVpnPbrRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteVpnPbrRouteEntryRequest::getRouteDest()const +{ + return routeDest_; +} + +void DeleteVpnPbrRouteEntryRequest::setRouteDest(const std::string& routeDest) +{ + routeDest_ = routeDest; + setCoreParameter("RouteDest", routeDest); +} + +std::string DeleteVpnPbrRouteEntryRequest::getNextHop()const +{ + return nextHop_; +} + +void DeleteVpnPbrRouteEntryRequest::setNextHop(const std::string& nextHop) +{ + nextHop_ = nextHop; + setCoreParameter("NextHop", nextHop); +} + +std::string DeleteVpnPbrRouteEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteVpnPbrRouteEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteVpnPbrRouteEntryRequest::getOverlayMode()const +{ + return overlayMode_; +} + +void DeleteVpnPbrRouteEntryRequest::setOverlayMode(const std::string& overlayMode) +{ + overlayMode_ = overlayMode; + setCoreParameter("OverlayMode", overlayMode); +} + diff --git a/vpc/src/model/DeleteVpnPbrRouteEntryResult.cc b/vpc/src/model/DeleteVpnPbrRouteEntryResult.cc new file mode 100644 index 000000000..bba13df1d --- /dev/null +++ b/vpc/src/model/DeleteVpnPbrRouteEntryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpnPbrRouteEntryResult::DeleteVpnPbrRouteEntryResult() : + ServiceResult() +{} + +DeleteVpnPbrRouteEntryResult::DeleteVpnPbrRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpnPbrRouteEntryResult::~DeleteVpnPbrRouteEntryResult() +{} + +void DeleteVpnPbrRouteEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVpnRouteEntryRequest.cc b/vpc/src/model/DeleteVpnRouteEntryRequest.cc new file mode 100644 index 000000000..c97240cf0 --- /dev/null +++ b/vpc/src/model/DeleteVpnRouteEntryRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVpnRouteEntryRequest; + +DeleteVpnRouteEntryRequest::DeleteVpnRouteEntryRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DeleteVpnRouteEntry") +{} + +DeleteVpnRouteEntryRequest::~DeleteVpnRouteEntryRequest() +{} + +long DeleteVpnRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVpnRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVpnRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVpnRouteEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteVpnRouteEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteVpnRouteEntryRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteVpnRouteEntryRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DeleteVpnRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVpnRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DeleteVpnRouteEntryRequest::getWeight()const +{ + return weight_; +} + +void DeleteVpnRouteEntryRequest::setWeight(int weight) +{ + weight_ = weight; + setCoreParameter("Weight", std::to_string(weight)); +} + +std::string DeleteVpnRouteEntryRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DeleteVpnRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long DeleteVpnRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVpnRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteVpnRouteEntryRequest::getRouteDest()const +{ + return routeDest_; +} + +void DeleteVpnRouteEntryRequest::setRouteDest(const std::string& routeDest) +{ + routeDest_ = routeDest; + setCoreParameter("RouteDest", routeDest); +} + +std::string DeleteVpnRouteEntryRequest::getNextHop()const +{ + return nextHop_; +} + +void DeleteVpnRouteEntryRequest::setNextHop(const std::string& nextHop) +{ + nextHop_ = nextHop; + setCoreParameter("NextHop", nextHop); +} + +std::string DeleteVpnRouteEntryRequest::getOverlayMode()const +{ + return overlayMode_; +} + +void DeleteVpnRouteEntryRequest::setOverlayMode(const std::string& overlayMode) +{ + overlayMode_ = overlayMode; + setCoreParameter("OverlayMode", overlayMode); +} + diff --git a/vpc/src/model/DeleteVpnRouteEntryResult.cc b/vpc/src/model/DeleteVpnRouteEntryResult.cc new file mode 100644 index 000000000..60497c0a2 --- /dev/null +++ b/vpc/src/model/DeleteVpnRouteEntryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVpnRouteEntryResult::DeleteVpnRouteEntryResult() : + ServiceResult() +{} + +DeleteVpnRouteEntryResult::DeleteVpnRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpnRouteEntryResult::~DeleteVpnRouteEntryResult() +{} + +void DeleteVpnRouteEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DescribeAccessPointsRequest.cc b/vpc/src/model/DescribeAccessPointsRequest.cc index 23e256cea..bda26cbf7 100644 --- a/vpc/src/model/DescribeAccessPointsRequest.cc +++ b/vpc/src/model/DescribeAccessPointsRequest.cc @@ -37,8 +37,8 @@ void DescribeAccessPointsRequest::setFilter(const std::vector& filter) for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribeAccessPointsRequest::getResourceOwnerId()const void DescribeAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeAccessPointsRequest::getHostOperator()const @@ -61,7 +61,7 @@ std::string DescribeAccessPointsRequest::getHostOperator()const void DescribeAccessPointsRequest::setHostOperator(const std::string& hostOperator) { hostOperator_ = hostOperator; - setParameter("HostOperator", hostOperator); + setCoreParameter("HostOperator", hostOperator); } std::string DescribeAccessPointsRequest::getResourceOwnerAccount()const @@ -72,7 +72,7 @@ std::string DescribeAccessPointsRequest::getResourceOwnerAccount()const void DescribeAccessPointsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeAccessPointsRequest::getRegionId()const @@ -83,7 +83,7 @@ std::string DescribeAccessPointsRequest::getRegionId()const void DescribeAccessPointsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeAccessPointsRequest::getName()const @@ -94,7 +94,7 @@ std::string DescribeAccessPointsRequest::getName()const void DescribeAccessPointsRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int DescribeAccessPointsRequest::getPageSize()const @@ -105,7 +105,7 @@ int DescribeAccessPointsRequest::getPageSize()const void DescribeAccessPointsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeAccessPointsRequest::getOwnerId()const @@ -116,7 +116,7 @@ long DescribeAccessPointsRequest::getOwnerId()const void DescribeAccessPointsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeAccessPointsRequest::getType()const @@ -127,7 +127,7 @@ std::string DescribeAccessPointsRequest::getType()const void DescribeAccessPointsRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } int DescribeAccessPointsRequest::getPageNumber()const @@ -138,6 +138,6 @@ int DescribeAccessPointsRequest::getPageNumber()const void DescribeAccessPointsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeAccessPointsResult.cc b/vpc/src/model/DescribeAccessPointsResult.cc index 69a1a0594..e9de7a931 100644 --- a/vpc/src/model/DescribeAccessPointsResult.cc +++ b/vpc/src/model/DescribeAccessPointsResult.cc @@ -35,10 +35,13 @@ DescribeAccessPointsResult::~DescribeAccessPointsResult() void DescribeAccessPointsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAccessPointSet = value["AccessPointSet"]["AccessPointType"]; for (auto value : allAccessPointSet) diff --git a/vpc/src/model/DescribeBandwidthPackagesRequest.cc b/vpc/src/model/DescribeBandwidthPackagesRequest.cc index b80f3a8d7..d1c97fd50 100644 --- a/vpc/src/model/DescribeBandwidthPackagesRequest.cc +++ b/vpc/src/model/DescribeBandwidthPackagesRequest.cc @@ -33,7 +33,7 @@ long DescribeBandwidthPackagesRequest::getResourceOwnerId()const void DescribeBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeBandwidthPackagesRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string DescribeBandwidthPackagesRequest::getBandwidthPackageId()const void DescribeBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string DescribeBandwidthPackagesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeBandwidthPackagesRequest::getResourceOwnerAccount()const void DescribeBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeBandwidthPackagesRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeBandwidthPackagesRequest::getRegionId()const void DescribeBandwidthPackagesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeBandwidthPackagesRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeBandwidthPackagesRequest::getOwnerAccount()const void DescribeBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeBandwidthPackagesRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeBandwidthPackagesRequest::getPageSize()const void DescribeBandwidthPackagesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeBandwidthPackagesRequest::getNatGatewayId()const @@ -99,7 +99,7 @@ std::string DescribeBandwidthPackagesRequest::getNatGatewayId()const void DescribeBandwidthPackagesRequest::setNatGatewayId(const std::string& natGatewayId) { natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); + setCoreParameter("NatGatewayId", natGatewayId); } long DescribeBandwidthPackagesRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeBandwidthPackagesRequest::getOwnerId()const void DescribeBandwidthPackagesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeBandwidthPackagesRequest::getPageNumber()const @@ -121,6 +121,6 @@ int DescribeBandwidthPackagesRequest::getPageNumber()const void DescribeBandwidthPackagesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeBandwidthPackagesResult.cc b/vpc/src/model/DescribeBandwidthPackagesResult.cc index f27df609c..56813e48b 100644 --- a/vpc/src/model/DescribeBandwidthPackagesResult.cc +++ b/vpc/src/model/DescribeBandwidthPackagesResult.cc @@ -35,10 +35,13 @@ DescribeBandwidthPackagesResult::~DescribeBandwidthPackagesResult() void DescribeBandwidthPackagesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBandwidthPackages = value["BandwidthPackages"]["BandwidthPackage"]; for (auto value : allBandwidthPackages) diff --git a/vpc/src/model/DescribeBgpGroupsRequest.cc b/vpc/src/model/DescribeBgpGroupsRequest.cc index 045a3715f..d7d755564 100644 --- a/vpc/src/model/DescribeBgpGroupsRequest.cc +++ b/vpc/src/model/DescribeBgpGroupsRequest.cc @@ -33,7 +33,7 @@ long DescribeBgpGroupsRequest::getResourceOwnerId()const void DescribeBgpGroupsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeBgpGroupsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeBgpGroupsRequest::getResourceOwnerAccount()const void DescribeBgpGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeBgpGroupsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeBgpGroupsRequest::getRegionId()const void DescribeBgpGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeBgpGroupsRequest::getRouterId()const @@ -66,7 +66,7 @@ std::string DescribeBgpGroupsRequest::getRouterId()const void DescribeBgpGroupsRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string DescribeBgpGroupsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeBgpGroupsRequest::getOwnerAccount()const void DescribeBgpGroupsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeBgpGroupsRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeBgpGroupsRequest::getPageSize()const void DescribeBgpGroupsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeBgpGroupsRequest::getBgpGroupId()const @@ -99,7 +99,7 @@ std::string DescribeBgpGroupsRequest::getBgpGroupId()const void DescribeBgpGroupsRequest::setBgpGroupId(const std::string& bgpGroupId) { bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); + setCoreParameter("BgpGroupId", bgpGroupId); } bool DescribeBgpGroupsRequest::getIsDefault()const @@ -110,7 +110,7 @@ bool DescribeBgpGroupsRequest::getIsDefault()const void DescribeBgpGroupsRequest::setIsDefault(bool isDefault) { isDefault_ = isDefault; - setParameter("IsDefault", std::to_string(isDefault)); + setCoreParameter("IsDefault", isDefault ? "true" : "false"); } long DescribeBgpGroupsRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeBgpGroupsRequest::getOwnerId()const void DescribeBgpGroupsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeBgpGroupsRequest::getPageNumber()const @@ -132,6 +132,6 @@ int DescribeBgpGroupsRequest::getPageNumber()const void DescribeBgpGroupsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeBgpGroupsResult.cc b/vpc/src/model/DescribeBgpGroupsResult.cc index 916cd30c6..e79b41b9a 100644 --- a/vpc/src/model/DescribeBgpGroupsResult.cc +++ b/vpc/src/model/DescribeBgpGroupsResult.cc @@ -35,10 +35,13 @@ DescribeBgpGroupsResult::~DescribeBgpGroupsResult() void DescribeBgpGroupsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBgpGroups = value["BgpGroups"]["BgpGroup"]; for (auto value : allBgpGroups) diff --git a/vpc/src/model/DescribeBgpNetworksRequest.cc b/vpc/src/model/DescribeBgpNetworksRequest.cc index 035e3f6e5..9f0903368 100644 --- a/vpc/src/model/DescribeBgpNetworksRequest.cc +++ b/vpc/src/model/DescribeBgpNetworksRequest.cc @@ -33,7 +33,7 @@ long DescribeBgpNetworksRequest::getResourceOwnerId()const void DescribeBgpNetworksRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeBgpNetworksRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeBgpNetworksRequest::getResourceOwnerAccount()const void DescribeBgpNetworksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeBgpNetworksRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeBgpNetworksRequest::getRegionId()const void DescribeBgpNetworksRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeBgpNetworksRequest::getRouterId()const @@ -66,7 +66,7 @@ std::string DescribeBgpNetworksRequest::getRouterId()const void DescribeBgpNetworksRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string DescribeBgpNetworksRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeBgpNetworksRequest::getOwnerAccount()const void DescribeBgpNetworksRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeBgpNetworksRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeBgpNetworksRequest::getPageSize()const void DescribeBgpNetworksRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeBgpNetworksRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeBgpNetworksRequest::getOwnerId()const void DescribeBgpNetworksRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeBgpNetworksRequest::getPageNumber()const @@ -110,6 +110,6 @@ int DescribeBgpNetworksRequest::getPageNumber()const void DescribeBgpNetworksRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeBgpNetworksResult.cc b/vpc/src/model/DescribeBgpNetworksResult.cc index 8e5d1e70d..7da20ac64 100644 --- a/vpc/src/model/DescribeBgpNetworksResult.cc +++ b/vpc/src/model/DescribeBgpNetworksResult.cc @@ -35,10 +35,13 @@ DescribeBgpNetworksResult::~DescribeBgpNetworksResult() void DescribeBgpNetworksResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBgpNetworks = value["BgpNetworks"]["BgpNetwork"]; for (auto value : allBgpNetworks) diff --git a/vpc/src/model/DescribeBgpPeersRequest.cc b/vpc/src/model/DescribeBgpPeersRequest.cc index 38540d3fc..016df605d 100644 --- a/vpc/src/model/DescribeBgpPeersRequest.cc +++ b/vpc/src/model/DescribeBgpPeersRequest.cc @@ -33,7 +33,7 @@ long DescribeBgpPeersRequest::getResourceOwnerId()const void DescribeBgpPeersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeBgpPeersRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeBgpPeersRequest::getResourceOwnerAccount()const void DescribeBgpPeersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeBgpPeersRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeBgpPeersRequest::getRegionId()const void DescribeBgpPeersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeBgpPeersRequest::getRouterId()const @@ -66,7 +66,7 @@ std::string DescribeBgpPeersRequest::getRouterId()const void DescribeBgpPeersRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string DescribeBgpPeersRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeBgpPeersRequest::getOwnerAccount()const void DescribeBgpPeersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeBgpPeersRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeBgpPeersRequest::getPageSize()const void DescribeBgpPeersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeBgpPeersRequest::getBgpGroupId()const @@ -99,7 +99,7 @@ std::string DescribeBgpPeersRequest::getBgpGroupId()const void DescribeBgpPeersRequest::setBgpGroupId(const std::string& bgpGroupId) { bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); + setCoreParameter("BgpGroupId", bgpGroupId); } std::string DescribeBgpPeersRequest::getBgpPeerId()const @@ -110,7 +110,7 @@ std::string DescribeBgpPeersRequest::getBgpPeerId()const void DescribeBgpPeersRequest::setBgpPeerId(const std::string& bgpPeerId) { bgpPeerId_ = bgpPeerId; - setParameter("BgpPeerId", bgpPeerId); + setCoreParameter("BgpPeerId", bgpPeerId); } bool DescribeBgpPeersRequest::getIsDefault()const @@ -121,7 +121,7 @@ bool DescribeBgpPeersRequest::getIsDefault()const void DescribeBgpPeersRequest::setIsDefault(bool isDefault) { isDefault_ = isDefault; - setParameter("IsDefault", std::to_string(isDefault)); + setCoreParameter("IsDefault", isDefault ? "true" : "false"); } long DescribeBgpPeersRequest::getOwnerId()const @@ -132,7 +132,7 @@ long DescribeBgpPeersRequest::getOwnerId()const void DescribeBgpPeersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeBgpPeersRequest::getPageNumber()const @@ -143,6 +143,6 @@ int DescribeBgpPeersRequest::getPageNumber()const void DescribeBgpPeersRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeBgpPeersResult.cc b/vpc/src/model/DescribeBgpPeersResult.cc index 67c55331d..5df4c10c8 100644 --- a/vpc/src/model/DescribeBgpPeersResult.cc +++ b/vpc/src/model/DescribeBgpPeersResult.cc @@ -35,10 +35,13 @@ DescribeBgpPeersResult::~DescribeBgpPeersResult() void DescribeBgpPeersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allBgpPeers = value["BgpPeers"]["BgpPeer"]; for (auto value : allBgpPeers) @@ -76,6 +79,8 @@ void DescribeBgpPeersResult::parse(const std::string &payload) bgpPeersObject.routeLimit = value["RouteLimit"].asString(); if(!value["RegionId"].isNull()) bgpPeersObject.regionId = value["RegionId"].asString(); + if(!value["EnableBfd"].isNull()) + bgpPeersObject.enableBfd = value["EnableBfd"].asString() == "true"; bgpPeers_.push_back(bgpPeersObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc index c490161ff..f4413810b 100644 --- a/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc +++ b/vpc/src/model/DescribeCommonBandwidthPackagesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeCommonBandwidthPackagesRequest::getResourceGroupId()const void DescribeCommonBandwidthPackagesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } long DescribeCommonBandwidthPackagesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeCommonBandwidthPackagesRequest::getResourceOwnerId()const void DescribeCommonBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCommonBandwidthPackagesRequest::getBandwidthPackageId()const @@ -55,7 +55,7 @@ std::string DescribeCommonBandwidthPackagesRequest::getBandwidthPackageId()const void DescribeCommonBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string DescribeCommonBandwidthPackagesRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCommonBandwidthPackagesRequest::getResourceOwnerAccount()con void DescribeCommonBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCommonBandwidthPackagesRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeCommonBandwidthPackagesRequest::getRegionId()const void DescribeCommonBandwidthPackagesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeCommonBandwidthPackagesRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeCommonBandwidthPackagesRequest::getOwnerAccount()const void DescribeCommonBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeCommonBandwidthPackagesRequest::getName()const @@ -99,7 +99,7 @@ std::string DescribeCommonBandwidthPackagesRequest::getName()const void DescribeCommonBandwidthPackagesRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int DescribeCommonBandwidthPackagesRequest::getPageSize()const @@ -110,7 +110,7 @@ int DescribeCommonBandwidthPackagesRequest::getPageSize()const void DescribeCommonBandwidthPackagesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCommonBandwidthPackagesRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeCommonBandwidthPackagesRequest::getOwnerId()const void DescribeCommonBandwidthPackagesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeCommonBandwidthPackagesRequest::getIncludeReservationData()const @@ -132,7 +132,7 @@ bool DescribeCommonBandwidthPackagesRequest::getIncludeReservationData()const void DescribeCommonBandwidthPackagesRequest::setIncludeReservationData(bool includeReservationData) { includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", std::to_string(includeReservationData)); + setCoreParameter("IncludeReservationData", includeReservationData ? "true" : "false"); } int DescribeCommonBandwidthPackagesRequest::getPageNumber()const @@ -143,6 +143,6 @@ int DescribeCommonBandwidthPackagesRequest::getPageNumber()const void DescribeCommonBandwidthPackagesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc index bfe81a75b..2afeb9a16 100644 --- a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc +++ b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc @@ -35,10 +35,13 @@ DescribeCommonBandwidthPackagesResult::~DescribeCommonBandwidthPackagesResult() void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCommonBandwidthPackages = value["CommonBandwidthPackages"]["CommonBandwidthPackage"]; for (auto value : allCommonBandwidthPackages) diff --git a/vpc/src/model/DescribeCustomerGatewayRequest.cc b/vpc/src/model/DescribeCustomerGatewayRequest.cc index f92d884b0..b156c4b71 100644 --- a/vpc/src/model/DescribeCustomerGatewayRequest.cc +++ b/vpc/src/model/DescribeCustomerGatewayRequest.cc @@ -33,7 +33,7 @@ long DescribeCustomerGatewayRequest::getResourceOwnerId()const void DescribeCustomerGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCustomerGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCustomerGatewayRequest::getResourceOwnerAccount()const void DescribeCustomerGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCustomerGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeCustomerGatewayRequest::getRegionId()const void DescribeCustomerGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeCustomerGatewayRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCustomerGatewayRequest::getOwnerAccount()const void DescribeCustomerGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeCustomerGatewayRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeCustomerGatewayRequest::getOwnerId()const void DescribeCustomerGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCustomerGatewayRequest::getCustomerGatewayId()const @@ -88,6 +88,6 @@ std::string DescribeCustomerGatewayRequest::getCustomerGatewayId()const void DescribeCustomerGatewayRequest::setCustomerGatewayId(const std::string& customerGatewayId) { customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); + setCoreParameter("CustomerGatewayId", customerGatewayId); } diff --git a/vpc/src/model/DescribeCustomerGatewayResult.cc b/vpc/src/model/DescribeCustomerGatewayResult.cc index 834ae5156..e274979a5 100644 --- a/vpc/src/model/DescribeCustomerGatewayResult.cc +++ b/vpc/src/model/DescribeCustomerGatewayResult.cc @@ -35,10 +35,13 @@ DescribeCustomerGatewayResult::~DescribeCustomerGatewayResult() void DescribeCustomerGatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CustomerGatewayId"].isNull()) customerGatewayId_ = value["CustomerGatewayId"].asString(); diff --git a/vpc/src/model/DescribeCustomerGatewaysRequest.cc b/vpc/src/model/DescribeCustomerGatewaysRequest.cc index 94e3a8c4b..6e3bd8018 100644 --- a/vpc/src/model/DescribeCustomerGatewaysRequest.cc +++ b/vpc/src/model/DescribeCustomerGatewaysRequest.cc @@ -33,7 +33,7 @@ long DescribeCustomerGatewaysRequest::getResourceOwnerId()const void DescribeCustomerGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeCustomerGatewaysRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeCustomerGatewaysRequest::getResourceOwnerAccount()const void DescribeCustomerGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeCustomerGatewaysRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeCustomerGatewaysRequest::getRegionId()const void DescribeCustomerGatewaysRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeCustomerGatewaysRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeCustomerGatewaysRequest::getOwnerAccount()const void DescribeCustomerGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeCustomerGatewaysRequest::getPageSize()const @@ -77,7 +77,7 @@ int DescribeCustomerGatewaysRequest::getPageSize()const void DescribeCustomerGatewaysRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeCustomerGatewaysRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeCustomerGatewaysRequest::getOwnerId()const void DescribeCustomerGatewaysRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeCustomerGatewaysRequest::getCustomerGatewayId()const @@ -99,7 +99,7 @@ std::string DescribeCustomerGatewaysRequest::getCustomerGatewayId()const void DescribeCustomerGatewaysRequest::setCustomerGatewayId(const std::string& customerGatewayId) { customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); + setCoreParameter("CustomerGatewayId", customerGatewayId); } int DescribeCustomerGatewaysRequest::getPageNumber()const @@ -110,6 +110,6 @@ int DescribeCustomerGatewaysRequest::getPageNumber()const void DescribeCustomerGatewaysRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeCustomerGatewaysResult.cc b/vpc/src/model/DescribeCustomerGatewaysResult.cc index a703fcf0c..eae67179c 100644 --- a/vpc/src/model/DescribeCustomerGatewaysResult.cc +++ b/vpc/src/model/DescribeCustomerGatewaysResult.cc @@ -35,10 +35,13 @@ DescribeCustomerGatewaysResult::~DescribeCustomerGatewaysResult() void DescribeCustomerGatewaysResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCustomerGateways = value["CustomerGateways"]["CustomerGateway"]; for (auto value : allCustomerGateways) diff --git a/vpc/src/model/DescribeEipAddressesRequest.cc b/vpc/src/model/DescribeEipAddressesRequest.cc index de7f5f5e3..98587f404 100644 --- a/vpc/src/model/DescribeEipAddressesRequest.cc +++ b/vpc/src/model/DescribeEipAddressesRequest.cc @@ -33,7 +33,7 @@ long DescribeEipAddressesRequest::getResourceOwnerId()const void DescribeEipAddressesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeEipAddressesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeEipAddressesRequest::getResourceOwnerAccount()const void DescribeEipAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeEipAddressesRequest::getFilter2Value()const @@ -55,7 +55,7 @@ std::string DescribeEipAddressesRequest::getFilter2Value()const void DescribeEipAddressesRequest::setFilter2Value(const std::string& filter2Value) { filter2Value_ = filter2Value; - setParameter("Filter2Value", filter2Value); + setCoreParameter("Filter2Value", filter2Value); } std::string DescribeEipAddressesRequest::getISP()const @@ -66,7 +66,7 @@ std::string DescribeEipAddressesRequest::getISP()const void DescribeEipAddressesRequest::setISP(const std::string& iSP) { iSP_ = iSP; - setParameter("ISP", iSP); + setCoreParameter("ISP", iSP); } std::string DescribeEipAddressesRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeEipAddressesRequest::getOwnerAccount()const void DescribeEipAddressesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeEipAddressesRequest::getAllocationId()const @@ -88,7 +88,7 @@ std::string DescribeEipAddressesRequest::getAllocationId()const void DescribeEipAddressesRequest::setAllocationId(const std::string& allocationId) { allocationId_ = allocationId; - setParameter("AllocationId", allocationId); + setCoreParameter("AllocationId", allocationId); } std::string DescribeEipAddressesRequest::getFilter1Value()const @@ -99,7 +99,7 @@ std::string DescribeEipAddressesRequest::getFilter1Value()const void DescribeEipAddressesRequest::setFilter1Value(const std::string& filter1Value) { filter1Value_ = filter1Value; - setParameter("Filter1Value", filter1Value); + setCoreParameter("Filter1Value", filter1Value); } std::string DescribeEipAddressesRequest::getFilter2Key()const @@ -110,7 +110,7 @@ std::string DescribeEipAddressesRequest::getFilter2Key()const void DescribeEipAddressesRequest::setFilter2Key(const std::string& filter2Key) { filter2Key_ = filter2Key; - setParameter("Filter2Key", filter2Key); + setCoreParameter("Filter2Key", filter2Key); } long DescribeEipAddressesRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeEipAddressesRequest::getOwnerId()const void DescribeEipAddressesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeEipAddressesRequest::getIncludeReservationData()const @@ -132,7 +132,7 @@ bool DescribeEipAddressesRequest::getIncludeReservationData()const void DescribeEipAddressesRequest::setIncludeReservationData(bool includeReservationData) { includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", std::to_string(includeReservationData)); + setCoreParameter("IncludeReservationData", includeReservationData ? "true" : "false"); } std::string DescribeEipAddressesRequest::getEipAddress()const @@ -143,7 +143,7 @@ std::string DescribeEipAddressesRequest::getEipAddress()const void DescribeEipAddressesRequest::setEipAddress(const std::string& eipAddress) { eipAddress_ = eipAddress; - setParameter("EipAddress", eipAddress); + setCoreParameter("EipAddress", eipAddress); } int DescribeEipAddressesRequest::getPageNumber()const @@ -154,7 +154,7 @@ int DescribeEipAddressesRequest::getPageNumber()const void DescribeEipAddressesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeEipAddressesRequest::getResourceGroupId()const @@ -165,7 +165,7 @@ std::string DescribeEipAddressesRequest::getResourceGroupId()const void DescribeEipAddressesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeEipAddressesRequest::getLockReason()const @@ -176,7 +176,7 @@ std::string DescribeEipAddressesRequest::getLockReason()const void DescribeEipAddressesRequest::setLockReason(const std::string& lockReason) { lockReason_ = lockReason; - setParameter("LockReason", lockReason); + setCoreParameter("LockReason", lockReason); } std::string DescribeEipAddressesRequest::getFilter1Key()const @@ -187,7 +187,7 @@ std::string DescribeEipAddressesRequest::getFilter1Key()const void DescribeEipAddressesRequest::setFilter1Key(const std::string& filter1Key) { filter1Key_ = filter1Key; - setParameter("Filter1Key", filter1Key); + setCoreParameter("Filter1Key", filter1Key); } std::string DescribeEipAddressesRequest::getRegionId()const @@ -198,7 +198,7 @@ std::string DescribeEipAddressesRequest::getRegionId()const void DescribeEipAddressesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeEipAddressesRequest::getAssociatedInstanceType()const @@ -209,7 +209,7 @@ std::string DescribeEipAddressesRequest::getAssociatedInstanceType()const void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string& associatedInstanceType) { associatedInstanceType_ = associatedInstanceType; - setParameter("AssociatedInstanceType", associatedInstanceType); + setCoreParameter("AssociatedInstanceType", associatedInstanceType); } int DescribeEipAddressesRequest::getPageSize()const @@ -220,7 +220,7 @@ int DescribeEipAddressesRequest::getPageSize()const void DescribeEipAddressesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::vector DescribeEipAddressesRequest::getTag()const @@ -235,8 +235,8 @@ void DescribeEipAddressesRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -248,7 +248,7 @@ std::string DescribeEipAddressesRequest::getChargeType()const void DescribeEipAddressesRequest::setChargeType(const std::string& chargeType) { chargeType_ = chargeType; - setParameter("ChargeType", chargeType); + setCoreParameter("ChargeType", chargeType); } std::string DescribeEipAddressesRequest::getAssociatedInstanceId()const @@ -259,7 +259,7 @@ std::string DescribeEipAddressesRequest::getAssociatedInstanceId()const void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string& associatedInstanceId) { associatedInstanceId_ = associatedInstanceId; - setParameter("AssociatedInstanceId", associatedInstanceId); + setCoreParameter("AssociatedInstanceId", associatedInstanceId); } std::string DescribeEipAddressesRequest::getStatus()const @@ -270,6 +270,6 @@ std::string DescribeEipAddressesRequest::getStatus()const void DescribeEipAddressesRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/vpc/src/model/DescribeEipAddressesResult.cc b/vpc/src/model/DescribeEipAddressesResult.cc index 0f75332ad..96a7d20eb 100644 --- a/vpc/src/model/DescribeEipAddressesResult.cc +++ b/vpc/src/model/DescribeEipAddressesResult.cc @@ -35,10 +35,13 @@ DescribeEipAddressesResult::~DescribeEipAddressesResult() void DescribeEipAddressesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEipAddresses = value["EipAddresses"]["EipAddress"]; for (auto value : allEipAddresses) @@ -84,6 +87,8 @@ void DescribeEipAddressesResult::parse(const std::string &payload) eipAddressesObject.bandwidthPackageId = value["BandwidthPackageId"].asString(); if(!value["BandwidthPackageType"].isNull()) eipAddressesObject.bandwidthPackageType = value["BandwidthPackageType"].asString(); + if(!value["BandwidthPackageBandwidth"].isNull()) + eipAddressesObject.bandwidthPackageBandwidth = value["BandwidthPackageBandwidth"].asString(); if(!value["ResourceGroupId"].isNull()) eipAddressesObject.resourceGroupId = value["ResourceGroupId"].asString(); if(!value["HasReservationData"].isNull()) @@ -98,6 +103,8 @@ void DescribeEipAddressesResult::parse(const std::string &payload) eipAddressesObject.reservationOrderType = value["ReservationOrderType"].asString(); if(!value["Mode"].isNull()) eipAddressesObject.mode = value["Mode"].asString(); + if(!value["SecondLimited"].isNull()) + eipAddressesObject.secondLimited = value["SecondLimited"].asString() == "true"; auto allOperationLocks = value["OperationLocks"]["LockReason"]; for (auto value : allOperationLocks) { diff --git a/vpc/src/model/DescribeEipGatewayInfoRequest.cc b/vpc/src/model/DescribeEipGatewayInfoRequest.cc new file mode 100644 index 000000000..f4c39964a --- /dev/null +++ b/vpc/src/model/DescribeEipGatewayInfoRequest.cc @@ -0,0 +1,291 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DescribeEipGatewayInfoRequest; + +DescribeEipGatewayInfoRequest::DescribeEipGatewayInfoRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeEipGatewayInfo") +{} + +DescribeEipGatewayInfoRequest::~DescribeEipGatewayInfoRequest() +{} + +std::string DescribeEipGatewayInfoRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeEipGatewayInfoRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +long DescribeEipGatewayInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEipGatewayInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeEipGatewayInfoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeEipGatewayInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long DescribeEipGatewayInfoRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeEipGatewayInfoRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string DescribeEipGatewayInfoRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeEipGatewayInfoRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +bool DescribeEipGatewayInfoRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeEipGatewayInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeEipGatewayInfoRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeEipGatewayInfoRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeEipGatewayInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeEipGatewayInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeEipGatewayInfoRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeEipGatewayInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeEipGatewayInfoRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeEipGatewayInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeEipGatewayInfoRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeEipGatewayInfoRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +bool DescribeEipGatewayInfoRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeEipGatewayInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeEipGatewayInfoRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeEipGatewayInfoRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +std::string DescribeEipGatewayInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeEipGatewayInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +bool DescribeEipGatewayInfoRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeEipGatewayInfoRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeEipGatewayInfoRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeEipGatewayInfoRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeEipGatewayInfoRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeEipGatewayInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeEipGatewayInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeEipGatewayInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeEipGatewayInfoRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeEipGatewayInfoRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +bool DescribeEipGatewayInfoRequest::getEnable()const +{ + return enable_; +} + +void DescribeEipGatewayInfoRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string DescribeEipGatewayInfoRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeEipGatewayInfoRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeEipGatewayInfoRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeEipGatewayInfoRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeEipGatewayInfoRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeEipGatewayInfoRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeEipGatewayInfoRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeEipGatewayInfoRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/vpc/src/model/DescribeEipGatewayInfoResult.cc b/vpc/src/model/DescribeEipGatewayInfoResult.cc new file mode 100644 index 000000000..e93c94455 --- /dev/null +++ b/vpc/src/model/DescribeEipGatewayInfoResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeEipGatewayInfoResult::DescribeEipGatewayInfoResult() : + ServiceResult() +{} + +DescribeEipGatewayInfoResult::DescribeEipGatewayInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEipGatewayInfoResult::~DescribeEipGatewayInfoResult() +{} + +void DescribeEipGatewayInfoResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allEipInfos = value["EipInfos"]["EipInfo"]; + for (auto value : allEipInfos) + { + EipInfo eipInfosObject; + if(!value["Ip"].isNull()) + eipInfosObject.ip = value["Ip"].asString(); + if(!value["IpGw"].isNull()) + eipInfosObject.ipGw = value["IpGw"].asString(); + if(!value["IpMask"].isNull()) + eipInfosObject.ipMask = value["IpMask"].asString(); + eipInfos_.push_back(eipInfosObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeEipGatewayInfoResult::getMessage()const +{ + return message_; +} + +std::string DescribeEipGatewayInfoResult::getCode()const +{ + return code_; +} + +std::vector DescribeEipGatewayInfoResult::getEipInfos()const +{ + return eipInfos_; +} + diff --git a/vpc/src/model/DescribeEipMonitorDataRequest.cc b/vpc/src/model/DescribeEipMonitorDataRequest.cc index 2253c819d..ecd046ef9 100644 --- a/vpc/src/model/DescribeEipMonitorDataRequest.cc +++ b/vpc/src/model/DescribeEipMonitorDataRequest.cc @@ -33,7 +33,7 @@ long DescribeEipMonitorDataRequest::getResourceOwnerId()const void DescribeEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } int DescribeEipMonitorDataRequest::getPeriod()const @@ -44,7 +44,7 @@ int DescribeEipMonitorDataRequest::getPeriod()const void DescribeEipMonitorDataRequest::setPeriod(int period) { period_ = period; - setParameter("Period", std::to_string(period)); + setCoreParameter("Period", std::to_string(period)); } std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount()const void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeEipMonitorDataRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeEipMonitorDataRequest::getRegionId()const void DescribeEipMonitorDataRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeEipMonitorDataRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeEipMonitorDataRequest::getOwnerAccount()const void DescribeEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeEipMonitorDataRequest::getEndTime()const @@ -88,7 +88,7 @@ std::string DescribeEipMonitorDataRequest::getEndTime()const void DescribeEipMonitorDataRequest::setEndTime(const std::string& endTime) { endTime_ = endTime; - setParameter("EndTime", endTime); + setCoreParameter("EndTime", endTime); } std::string DescribeEipMonitorDataRequest::getAllocationId()const @@ -99,7 +99,7 @@ std::string DescribeEipMonitorDataRequest::getAllocationId()const void DescribeEipMonitorDataRequest::setAllocationId(const std::string& allocationId) { allocationId_ = allocationId; - setParameter("AllocationId", allocationId); + setCoreParameter("AllocationId", allocationId); } std::string DescribeEipMonitorDataRequest::getStartTime()const @@ -110,7 +110,7 @@ std::string DescribeEipMonitorDataRequest::getStartTime()const void DescribeEipMonitorDataRequest::setStartTime(const std::string& startTime) { startTime_ = startTime; - setParameter("StartTime", startTime); + setCoreParameter("StartTime", startTime); } long DescribeEipMonitorDataRequest::getOwnerId()const @@ -121,6 +121,6 @@ long DescribeEipMonitorDataRequest::getOwnerId()const void DescribeEipMonitorDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeEipMonitorDataResult.cc b/vpc/src/model/DescribeEipMonitorDataResult.cc index f407f2639..b0b586c76 100644 --- a/vpc/src/model/DescribeEipMonitorDataResult.cc +++ b/vpc/src/model/DescribeEipMonitorDataResult.cc @@ -35,10 +35,13 @@ DescribeEipMonitorDataResult::~DescribeEipMonitorDataResult() void DescribeEipMonitorDataResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"]; for (auto value : allEipMonitorDatas) diff --git a/vpc/src/model/DescribeExpressCloudConnectionsRequest.cc b/vpc/src/model/DescribeExpressCloudConnectionsRequest.cc new file mode 100644 index 000000000..c7f3ed5b3 --- /dev/null +++ b/vpc/src/model/DescribeExpressCloudConnectionsRequest.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DescribeExpressCloudConnectionsRequest; + +DescribeExpressCloudConnectionsRequest::DescribeExpressCloudConnectionsRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeExpressCloudConnections") +{} + +DescribeExpressCloudConnectionsRequest::~DescribeExpressCloudConnectionsRequest() +{} + +std::vector DescribeExpressCloudConnectionsRequest::getFilter()const +{ + return filter_; +} + +void DescribeExpressCloudConnectionsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); + } +} + +long DescribeExpressCloudConnectionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeExpressCloudConnectionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeExpressCloudConnectionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeExpressCloudConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeExpressCloudConnectionsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeExpressCloudConnectionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeExpressCloudConnectionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeExpressCloudConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeExpressCloudConnectionsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeExpressCloudConnectionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeExpressCloudConnectionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeExpressCloudConnectionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeExpressCloudConnectionsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeExpressCloudConnectionsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeExpressCloudConnectionsResult.cc b/vpc/src/model/DescribeExpressCloudConnectionsResult.cc new file mode 100644 index 000000000..554fa4e45 --- /dev/null +++ b/vpc/src/model/DescribeExpressCloudConnectionsResult.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeExpressCloudConnectionsResult::DescribeExpressCloudConnectionsResult() : + ServiceResult() +{} + +DescribeExpressCloudConnectionsResult::DescribeExpressCloudConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExpressCloudConnectionsResult::~DescribeExpressCloudConnectionsResult() +{} + +void DescribeExpressCloudConnectionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allExpressCloudConnectionSet = value["ExpressCloudConnectionSet"]["ExpressCloudConnectionType"]; + for (auto value : allExpressCloudConnectionSet) + { + ExpressCloudConnectionType expressCloudConnectionSetObject; + if(!value["InstanceId"].isNull()) + expressCloudConnectionSetObject.instanceId = value["InstanceId"].asString(); + if(!value["Status"].isNull()) + expressCloudConnectionSetObject.status = value["Status"].asString(); + if(!value["Name"].isNull()) + expressCloudConnectionSetObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + expressCloudConnectionSetObject.description = value["Description"].asString(); + if(!value["GmtCreate"].isNull()) + expressCloudConnectionSetObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModify"].isNull()) + expressCloudConnectionSetObject.gmtModify = value["GmtModify"].asString(); + if(!value["PeerCity"].isNull()) + expressCloudConnectionSetObject.peerCity = value["PeerCity"].asString(); + if(!value["PeerLocation"].isNull()) + expressCloudConnectionSetObject.peerLocation = value["PeerLocation"].asString(); + if(!value["PortType"].isNull()) + expressCloudConnectionSetObject.portType = value["PortType"].asString(); + if(!value["Bandwidth"].isNull()) + expressCloudConnectionSetObject.bandwidth = std::stoi(value["Bandwidth"].asString()); + if(!value["Distance"].isNull()) + expressCloudConnectionSetObject.distance = std::stoi(value["Distance"].asString()); + if(!value["RedundantEccId"].isNull()) + expressCloudConnectionSetObject.redundantEccId = value["RedundantEccId"].asString(); + if(!value["CircuitCode"].isNull()) + expressCloudConnectionSetObject.circuitCode = value["CircuitCode"].asString(); + if(!value["Isp"].isNull()) + expressCloudConnectionSetObject.isp = value["Isp"].asString(); + if(!value["Type"].isNull()) + expressCloudConnectionSetObject.type = value["Type"].asString(); + if(!value["IdcSP"].isNull()) + expressCloudConnectionSetObject.idcSP = value["IdcSP"].asString(); + if(!value["BusinessStatus"].isNull()) + expressCloudConnectionSetObject.businessStatus = value["BusinessStatus"].asString(); + if(!value["HasReservationData"].isNull()) + expressCloudConnectionSetObject.hasReservationData = value["HasReservationData"].asString(); + if(!value["ReservationBandwidth"].isNull()) + expressCloudConnectionSetObject.reservationBandwidth = value["ReservationBandwidth"].asString(); + if(!value["ReservationInternetChargeType"].isNull()) + expressCloudConnectionSetObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString(); + if(!value["ReservationActiveTime"].isNull()) + expressCloudConnectionSetObject.reservationActiveTime = value["ReservationActiveTime"].asString(); + if(!value["ReservationOrderType"].isNull()) + expressCloudConnectionSetObject.reservationOrderType = value["ReservationOrderType"].asString(); + if(!value["ApplicationType"].isNull()) + expressCloudConnectionSetObject.applicationType = value["ApplicationType"].asString(); + if(!value["ApplicationId"].isNull()) + expressCloudConnectionSetObject.applicationId = value["ApplicationId"].asString(); + if(!value["ApplicationStatus"].isNull()) + expressCloudConnectionSetObject.applicationStatus = value["ApplicationStatus"].asString(); + if(!value["ApplicationBandwidth"].isNull()) + expressCloudConnectionSetObject.applicationBandwidth = value["ApplicationBandwidth"].asString(); + if(!value["ContactTel"].isNull()) + expressCloudConnectionSetObject.contactTel = value["ContactTel"].asString(); + if(!value["ContactMail"].isNull()) + expressCloudConnectionSetObject.contactMail = value["ContactMail"].asString(); + if(!value["IDCardNo"].isNull()) + expressCloudConnectionSetObject.iDCardNo = value["IDCardNo"].asString(); + if(!value["EndTime"].isNull()) + expressCloudConnectionSetObject.endTime = value["EndTime"].asString(); + if(!value["ChargeType"].isNull()) + expressCloudConnectionSetObject.chargeType = value["ChargeType"].asString(); + auto allVirtualBorderRouterModels = value["VirtualBorderRouterModels"]["VirtualBorderRouterModel"]; + for (auto value : allVirtualBorderRouterModels) + { + ExpressCloudConnectionType::VirtualBorderRouterModel virtualBorderRouterModelsObject; + if(!value["InstanceId"].isNull()) + virtualBorderRouterModelsObject.instanceId = value["InstanceId"].asString(); + if(!value["AccessPointId"].isNull()) + virtualBorderRouterModelsObject.accessPointId = value["AccessPointId"].asString(); + if(!value["PhysicalConnectionId"].isNull()) + virtualBorderRouterModelsObject.physicalConnectionId = value["PhysicalConnectionId"].asString(); + expressCloudConnectionSetObject.virtualBorderRouterModels.push_back(virtualBorderRouterModelsObject); + } + expressCloudConnectionSet_.push_back(expressCloudConnectionSetObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeExpressCloudConnectionsResult::getExpressCloudConnectionSet()const +{ + return expressCloudConnectionSet_; +} + +int DescribeExpressCloudConnectionsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeExpressCloudConnectionsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeExpressCloudConnectionsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/vpc/src/model/DescribeFlowLogsRequest.cc b/vpc/src/model/DescribeFlowLogsRequest.cc index 4cb633126..70d24d4c3 100644 --- a/vpc/src/model/DescribeFlowLogsRequest.cc +++ b/vpc/src/model/DescribeFlowLogsRequest.cc @@ -33,7 +33,7 @@ long DescribeFlowLogsRequest::getResourceOwnerId()const void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeFlowLogsRequest::getResourceId()const @@ -44,7 +44,7 @@ std::string DescribeFlowLogsRequest::getResourceId()const void DescribeFlowLogsRequest::setResourceId(const std::string& resourceId) { resourceId_ = resourceId; - setParameter("ResourceId", resourceId); + setCoreParameter("ResourceId", resourceId); } std::string DescribeFlowLogsRequest::getProjectName()const @@ -55,7 +55,7 @@ std::string DescribeFlowLogsRequest::getProjectName()const void DescribeFlowLogsRequest::setProjectName(const std::string& projectName) { projectName_ = projectName; - setParameter("ProjectName", projectName); + setCoreParameter("ProjectName", projectName); } std::string DescribeFlowLogsRequest::getLogStoreName()const @@ -66,7 +66,7 @@ std::string DescribeFlowLogsRequest::getLogStoreName()const void DescribeFlowLogsRequest::setLogStoreName(const std::string& logStoreName) { logStoreName_ = logStoreName; - setParameter("LogStoreName", logStoreName); + setCoreParameter("LogStoreName", logStoreName); } std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeFlowLogsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeFlowLogsRequest::getOwnerAccount()const void DescribeFlowLogsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeFlowLogsRequest::getDescription()const @@ -99,7 +99,7 @@ std::string DescribeFlowLogsRequest::getDescription()const void DescribeFlowLogsRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long DescribeFlowLogsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeFlowLogsRequest::getOwnerId()const void DescribeFlowLogsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeFlowLogsRequest::getResourceType()const @@ -121,7 +121,7 @@ std::string DescribeFlowLogsRequest::getResourceType()const void DescribeFlowLogsRequest::setResourceType(const std::string& resourceType) { resourceType_ = resourceType; - setParameter("ResourceType", resourceType); + setCoreParameter("ResourceType", resourceType); } int DescribeFlowLogsRequest::getPageNumber()const @@ -132,7 +132,7 @@ int DescribeFlowLogsRequest::getPageNumber()const void DescribeFlowLogsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeFlowLogsRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string DescribeFlowLogsRequest::getRegionId()const void DescribeFlowLogsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeFlowLogsRequest::getPageSize()const @@ -154,7 +154,7 @@ int DescribeFlowLogsRequest::getPageSize()const void DescribeFlowLogsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeFlowLogsRequest::getTrafficType()const @@ -165,7 +165,7 @@ std::string DescribeFlowLogsRequest::getTrafficType()const void DescribeFlowLogsRequest::setTrafficType(const std::string& trafficType) { trafficType_ = trafficType; - setParameter("TrafficType", trafficType); + setCoreParameter("TrafficType", trafficType); } std::string DescribeFlowLogsRequest::getFlowLogId()const @@ -176,7 +176,7 @@ std::string DescribeFlowLogsRequest::getFlowLogId()const void DescribeFlowLogsRequest::setFlowLogId(const std::string& flowLogId) { flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); + setCoreParameter("FlowLogId", flowLogId); } std::string DescribeFlowLogsRequest::getFlowLogName()const @@ -187,7 +187,7 @@ std::string DescribeFlowLogsRequest::getFlowLogName()const void DescribeFlowLogsRequest::setFlowLogName(const std::string& flowLogName) { flowLogName_ = flowLogName; - setParameter("FlowLogName", flowLogName); + setCoreParameter("FlowLogName", flowLogName); } std::string DescribeFlowLogsRequest::getStatus()const @@ -198,6 +198,6 @@ std::string DescribeFlowLogsRequest::getStatus()const void DescribeFlowLogsRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/vpc/src/model/DescribeFlowLogsResult.cc b/vpc/src/model/DescribeFlowLogsResult.cc index 3db3249f3..99a92ae67 100644 --- a/vpc/src/model/DescribeFlowLogsResult.cc +++ b/vpc/src/model/DescribeFlowLogsResult.cc @@ -35,10 +35,13 @@ DescribeFlowLogsResult::~DescribeFlowLogsResult() void DescribeFlowLogsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allFlowLogs = value["FlowLogs"]["FlowLog"]; for (auto value : allFlowLogs) diff --git a/vpc/src/model/DescribeForwardTableEntriesRequest.cc b/vpc/src/model/DescribeForwardTableEntriesRequest.cc index 5c8da2694..fd02f1d7a 100644 --- a/vpc/src/model/DescribeForwardTableEntriesRequest.cc +++ b/vpc/src/model/DescribeForwardTableEntriesRequest.cc @@ -33,7 +33,7 @@ long DescribeForwardTableEntriesRequest::getResourceOwnerId()const void DescribeForwardTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount()const void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeForwardTableEntriesRequest::getIpProtocol()const @@ -55,7 +55,7 @@ std::string DescribeForwardTableEntriesRequest::getIpProtocol()const void DescribeForwardTableEntriesRequest::setIpProtocol(const std::string& ipProtocol) { ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); + setCoreParameter("IpProtocol", ipProtocol); } std::string DescribeForwardTableEntriesRequest::getForwardEntryName()const @@ -66,7 +66,7 @@ std::string DescribeForwardTableEntriesRequest::getForwardEntryName()const void DescribeForwardTableEntriesRequest::setForwardEntryName(const std::string& forwardEntryName) { forwardEntryName_ = forwardEntryName; - setParameter("ForwardEntryName", forwardEntryName); + setCoreParameter("ForwardEntryName", forwardEntryName); } std::string DescribeForwardTableEntriesRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeForwardTableEntriesRequest::getOwnerAccount()const void DescribeForwardTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeForwardTableEntriesRequest::getForwardTableId()const @@ -88,7 +88,7 @@ std::string DescribeForwardTableEntriesRequest::getForwardTableId()const void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string& forwardTableId) { forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); + setCoreParameter("ForwardTableId", forwardTableId); } long DescribeForwardTableEntriesRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeForwardTableEntriesRequest::getOwnerId()const void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeForwardTableEntriesRequest::getInternalIp()const @@ -110,7 +110,7 @@ std::string DescribeForwardTableEntriesRequest::getInternalIp()const void DescribeForwardTableEntriesRequest::setInternalIp(const std::string& internalIp) { internalIp_ = internalIp; - setParameter("InternalIp", internalIp); + setCoreParameter("InternalIp", internalIp); } int DescribeForwardTableEntriesRequest::getPageNumber()const @@ -121,7 +121,7 @@ int DescribeForwardTableEntriesRequest::getPageNumber()const void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeForwardTableEntriesRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string DescribeForwardTableEntriesRequest::getRegionId()const void DescribeForwardTableEntriesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const @@ -143,7 +143,7 @@ std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string& forwardEntryId) { forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); + setCoreParameter("ForwardEntryId", forwardEntryId); } std::string DescribeForwardTableEntriesRequest::getInternalPort()const @@ -154,7 +154,7 @@ std::string DescribeForwardTableEntriesRequest::getInternalPort()const void DescribeForwardTableEntriesRequest::setInternalPort(const std::string& internalPort) { internalPort_ = internalPort; - setParameter("InternalPort", internalPort); + setCoreParameter("InternalPort", internalPort); } int DescribeForwardTableEntriesRequest::getPageSize()const @@ -165,7 +165,7 @@ int DescribeForwardTableEntriesRequest::getPageSize()const void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeForwardTableEntriesRequest::getExternalIp()const @@ -176,7 +176,7 @@ std::string DescribeForwardTableEntriesRequest::getExternalIp()const void DescribeForwardTableEntriesRequest::setExternalIp(const std::string& externalIp) { externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); + setCoreParameter("ExternalIp", externalIp); } std::string DescribeForwardTableEntriesRequest::getExternalPort()const @@ -187,6 +187,6 @@ std::string DescribeForwardTableEntriesRequest::getExternalPort()const void DescribeForwardTableEntriesRequest::setExternalPort(const std::string& externalPort) { externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); + setCoreParameter("ExternalPort", externalPort); } diff --git a/vpc/src/model/DescribeForwardTableEntriesResult.cc b/vpc/src/model/DescribeForwardTableEntriesResult.cc index 54524f7db..2b5fcbfe8 100644 --- a/vpc/src/model/DescribeForwardTableEntriesResult.cc +++ b/vpc/src/model/DescribeForwardTableEntriesResult.cc @@ -35,10 +35,13 @@ DescribeForwardTableEntriesResult::~DescribeForwardTableEntriesResult() void DescribeForwardTableEntriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allForwardTableEntries = value["ForwardTableEntries"]["ForwardTableEntry"]; for (auto value : allForwardTableEntries) diff --git a/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc b/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc index cfbe8ba8d..d87e0bd3c 100644 --- a/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc +++ b/vpc/src/model/DescribeGlobalAccelerationInstancesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getIpAddress()const void DescribeGlobalAccelerationInstancesRequest::setIpAddress(const std::string& ipAddress) { ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); + setCoreParameter("IpAddress", ipAddress); } long DescribeGlobalAccelerationInstancesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeGlobalAccelerationInstancesRequest::getResourceOwnerId()const void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeGlobalAccelerationInstancesRequest::getBandwidthType()const @@ -55,7 +55,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getBandwidthType()const void DescribeGlobalAccelerationInstancesRequest::setBandwidthType(const std::string& bandwidthType) { bandwidthType_ = bandwidthType; - setParameter("BandwidthType", bandwidthType); + setCoreParameter("BandwidthType", bandwidthType); } std::string DescribeGlobalAccelerationInstancesRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getResourceOwnerAccount( void DescribeGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeGlobalAccelerationInstancesRequest::getServiceLocation()const @@ -77,7 +77,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getServiceLocation()cons void DescribeGlobalAccelerationInstancesRequest::setServiceLocation(const std::string& serviceLocation) { serviceLocation_ = serviceLocation; - setParameter("ServiceLocation", serviceLocation); + setCoreParameter("ServiceLocation", serviceLocation); } std::string DescribeGlobalAccelerationInstancesRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getOwnerAccount()const void DescribeGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeGlobalAccelerationInstancesRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeGlobalAccelerationInstancesRequest::getOwnerId()const void DescribeGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeGlobalAccelerationInstancesRequest::getIncludeReservationData()const @@ -110,7 +110,7 @@ bool DescribeGlobalAccelerationInstancesRequest::getIncludeReservationData()cons void DescribeGlobalAccelerationInstancesRequest::setIncludeReservationData(bool includeReservationData) { includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", std::to_string(includeReservationData)); + setCoreParameter("IncludeReservationData", includeReservationData ? "true" : "false"); } std::string DescribeGlobalAccelerationInstancesRequest::getGlobalAccelerationInstanceId()const @@ -121,7 +121,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getGlobalAccelerationIns void DescribeGlobalAccelerationInstancesRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } std::string DescribeGlobalAccelerationInstancesRequest::getServerId()const @@ -132,7 +132,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getServerId()const void DescribeGlobalAccelerationInstancesRequest::setServerId(const std::string& serverId) { serverId_ = serverId; - setParameter("ServerId", serverId); + setCoreParameter("ServerId", serverId); } int DescribeGlobalAccelerationInstancesRequest::getPageNumber()const @@ -143,7 +143,7 @@ int DescribeGlobalAccelerationInstancesRequest::getPageNumber()const void DescribeGlobalAccelerationInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeGlobalAccelerationInstancesRequest::getRegionId()const @@ -154,7 +154,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getRegionId()const void DescribeGlobalAccelerationInstancesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeGlobalAccelerationInstancesRequest::getName()const @@ -165,7 +165,7 @@ std::string DescribeGlobalAccelerationInstancesRequest::getName()const void DescribeGlobalAccelerationInstancesRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int DescribeGlobalAccelerationInstancesRequest::getPageSize()const @@ -176,7 +176,7 @@ int DescribeGlobalAccelerationInstancesRequest::getPageSize()const void DescribeGlobalAccelerationInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeGlobalAccelerationInstancesRequest::getStatus()const @@ -187,6 +187,6 @@ std::string DescribeGlobalAccelerationInstancesRequest::getStatus()const void DescribeGlobalAccelerationInstancesRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc index 2e23b6a1c..46a1d1b53 100644 --- a/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc +++ b/vpc/src/model/DescribeGlobalAccelerationInstancesResult.cc @@ -35,10 +35,13 @@ DescribeGlobalAccelerationInstancesResult::~DescribeGlobalAccelerationInstancesR void DescribeGlobalAccelerationInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGlobalAccelerationInstances = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"]; for (auto value : allGlobalAccelerationInstances) diff --git a/vpc/src/model/DescribeGrantRulesToCenRequest.cc b/vpc/src/model/DescribeGrantRulesToCenRequest.cc index b345ba39b..050e6b2a1 100644 --- a/vpc/src/model/DescribeGrantRulesToCenRequest.cc +++ b/vpc/src/model/DescribeGrantRulesToCenRequest.cc @@ -33,7 +33,7 @@ std::string DescribeGrantRulesToCenRequest::getResourceGroupId()const void DescribeGrantRulesToCenRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } long DescribeGrantRulesToCenRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeGrantRulesToCenRequest::getResourceOwnerId()const void DescribeGrantRulesToCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeGrantRulesToCenRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string DescribeGrantRulesToCenRequest::getInstanceId()const void DescribeGrantRulesToCenRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const void DescribeGrantRulesToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeGrantRulesToCenRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeGrantRulesToCenRequest::getRegionId()const void DescribeGrantRulesToCenRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeGrantRulesToCenRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string DescribeGrantRulesToCenRequest::getClientToken()const void DescribeGrantRulesToCenRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const void DescribeGrantRulesToCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeGrantRulesToCenRequest::getInstanceType()const @@ -110,7 +110,7 @@ std::string DescribeGrantRulesToCenRequest::getInstanceType()const void DescribeGrantRulesToCenRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } long DescribeGrantRulesToCenRequest::getOwnerId()const @@ -121,6 +121,6 @@ long DescribeGrantRulesToCenRequest::getOwnerId()const void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeGrantRulesToCenResult.cc b/vpc/src/model/DescribeGrantRulesToCenResult.cc index dbe3e3efa..af9121c8b 100644 --- a/vpc/src/model/DescribeGrantRulesToCenResult.cc +++ b/vpc/src/model/DescribeGrantRulesToCenResult.cc @@ -35,10 +35,13 @@ DescribeGrantRulesToCenResult::~DescribeGrantRulesToCenResult() void DescribeGrantRulesToCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCenGrantRules = value["CenGrantRules"]["CbnGrantRule"]; for (auto value : allCenGrantRules) diff --git a/vpc/src/model/DescribeHaVipsRequest.cc b/vpc/src/model/DescribeHaVipsRequest.cc index ca38251e8..50708833a 100644 --- a/vpc/src/model/DescribeHaVipsRequest.cc +++ b/vpc/src/model/DescribeHaVipsRequest.cc @@ -37,8 +37,8 @@ void DescribeHaVipsRequest::setFilter(const std::vector& filter) for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribeHaVipsRequest::getResourceOwnerId()const void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeHaVipsRequest::getResourceOwnerAccount()const @@ -61,7 +61,7 @@ std::string DescribeHaVipsRequest::getResourceOwnerAccount()const void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeHaVipsRequest::getRegionId()const @@ -72,7 +72,7 @@ std::string DescribeHaVipsRequest::getRegionId()const void DescribeHaVipsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeHaVipsRequest::getOwnerAccount()const @@ -83,7 +83,7 @@ std::string DescribeHaVipsRequest::getOwnerAccount()const void DescribeHaVipsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeHaVipsRequest::getPageSize()const @@ -94,7 +94,7 @@ int DescribeHaVipsRequest::getPageSize()const void DescribeHaVipsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeHaVipsRequest::getOwnerId()const @@ -105,7 +105,7 @@ long DescribeHaVipsRequest::getOwnerId()const void DescribeHaVipsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeHaVipsRequest::getPageNumber()const @@ -116,6 +116,6 @@ int DescribeHaVipsRequest::getPageNumber()const void DescribeHaVipsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeHaVipsResult.cc b/vpc/src/model/DescribeHaVipsResult.cc index 0962ef02c..456b5809b 100644 --- a/vpc/src/model/DescribeHaVipsResult.cc +++ b/vpc/src/model/DescribeHaVipsResult.cc @@ -35,10 +35,13 @@ DescribeHaVipsResult::~DescribeHaVipsResult() void DescribeHaVipsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allHaVips = value["HaVips"]["HaVip"]; for (auto value : allHaVips) @@ -60,6 +63,10 @@ void DescribeHaVipsResult::parse(const std::string &payload) haVipsObject.masterInstanceId = value["MasterInstanceId"].asString(); if(!value["Description"].isNull()) haVipsObject.description = value["Description"].asString(); + if(!value["Name"].isNull()) + haVipsObject.name = value["Name"].asString(); + if(!value["ChargeType"].isNull()) + haVipsObject.chargeType = value["ChargeType"].asString(); if(!value["CreateTime"].isNull()) haVipsObject.createTime = value["CreateTime"].asString(); auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"]; diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc index c2f3ffdfc..0c58bda29 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeIPv6TranslatorAclListAttributesRequest::getAclId()const void DescribeIPv6TranslatorAclListAttributesRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerId()const void DescribeIPv6TranslatorAclListAttributesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeIPv6TranslatorAclListAttributesRequest::getResourceOwnerAcco void DescribeIPv6TranslatorAclListAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIPv6TranslatorAclListAttributesRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeIPv6TranslatorAclListAttributesRequest::getRegionId()const void DescribeIPv6TranslatorAclListAttributesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeIPv6TranslatorAclListAttributesRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeIPv6TranslatorAclListAttributesRequest::getOwnerAccount()con void DescribeIPv6TranslatorAclListAttributesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeIPv6TranslatorAclListAttributesRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeIPv6TranslatorAclListAttributesRequest::getPageSize()const void DescribeIPv6TranslatorAclListAttributesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeIPv6TranslatorAclListAttributesRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeIPv6TranslatorAclListAttributesRequest::getOwnerId()const void DescribeIPv6TranslatorAclListAttributesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeIPv6TranslatorAclListAttributesRequest::getPageNumber()const @@ -110,6 +110,6 @@ int DescribeIPv6TranslatorAclListAttributesRequest::getPageNumber()const void DescribeIPv6TranslatorAclListAttributesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc index 4e6062192..e9094292d 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListAttributesResult.cc @@ -35,10 +35,13 @@ DescribeIPv6TranslatorAclListAttributesResult::~DescribeIPv6TranslatorAclListAtt void DescribeIPv6TranslatorAclListAttributesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAclEntries = value["AclEntries"]["AclEntry"]; for (auto value : allAclEntries) diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc b/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc index 8c06e344d..f4a6a2549 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeIPv6TranslatorAclListsRequest::getAclId()const void DescribeIPv6TranslatorAclListsRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long DescribeIPv6TranslatorAclListsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeIPv6TranslatorAclListsRequest::getResourceOwnerId()const void DescribeIPv6TranslatorAclListsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeIPv6TranslatorAclListsRequest::getAclName()const @@ -55,7 +55,7 @@ std::string DescribeIPv6TranslatorAclListsRequest::getAclName()const void DescribeIPv6TranslatorAclListsRequest::setAclName(const std::string& aclName) { aclName_ = aclName; - setParameter("AclName", aclName); + setCoreParameter("AclName", aclName); } std::string DescribeIPv6TranslatorAclListsRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeIPv6TranslatorAclListsRequest::getResourceOwnerAccount()cons void DescribeIPv6TranslatorAclListsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIPv6TranslatorAclListsRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string DescribeIPv6TranslatorAclListsRequest::getRegionId()const void DescribeIPv6TranslatorAclListsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeIPv6TranslatorAclListsRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DescribeIPv6TranslatorAclListsRequest::getOwnerAccount()const void DescribeIPv6TranslatorAclListsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeIPv6TranslatorAclListsRequest::getPageSize()const @@ -99,7 +99,7 @@ int DescribeIPv6TranslatorAclListsRequest::getPageSize()const void DescribeIPv6TranslatorAclListsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeIPv6TranslatorAclListsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeIPv6TranslatorAclListsRequest::getOwnerId()const void DescribeIPv6TranslatorAclListsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeIPv6TranslatorAclListsRequest::getPageNumber()const @@ -121,6 +121,6 @@ int DescribeIPv6TranslatorAclListsRequest::getPageNumber()const void DescribeIPv6TranslatorAclListsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc b/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc index 2064844ce..6ed5aadb5 100644 --- a/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorAclListsResult.cc @@ -35,10 +35,13 @@ DescribeIPv6TranslatorAclListsResult::~DescribeIPv6TranslatorAclListsResult() void DescribeIPv6TranslatorAclListsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIpv6TranslatorAcls = value["Ipv6TranslatorAcls"]["IPv6TranslatorAcl"]; for (auto value : allIpv6TranslatorAcls) diff --git a/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc b/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc index e8cd95e13..063275cc7 100644 --- a/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorEntriesRequest.cc @@ -33,7 +33,7 @@ int DescribeIPv6TranslatorEntriesRequest::getBackendIpv4Port()const void DescribeIPv6TranslatorEntriesRequest::setBackendIpv4Port(int backendIpv4Port) { backendIpv4Port_ = backendIpv4Port; - setParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); + setCoreParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); } std::string DescribeIPv6TranslatorEntriesRequest::getAclId()const @@ -44,7 +44,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getAclId()const void DescribeIPv6TranslatorEntriesRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long DescribeIPv6TranslatorEntriesRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long DescribeIPv6TranslatorEntriesRequest::getResourceOwnerId()const void DescribeIPv6TranslatorEntriesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorEntryId()const @@ -66,7 +66,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorEntryId()cons void DescribeIPv6TranslatorEntriesRequest::setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId) { ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; - setParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); + setCoreParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); } std::string DescribeIPv6TranslatorEntriesRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getResourceOwnerAccount()const void DescribeIPv6TranslatorEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIPv6TranslatorEntriesRequest::getEntryName()const @@ -88,7 +88,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getEntryName()const void DescribeIPv6TranslatorEntriesRequest::setEntryName(const std::string& entryName) { entryName_ = entryName; - setParameter("EntryName", entryName); + setCoreParameter("EntryName", entryName); } std::string DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Addr()const @@ -99,7 +99,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Addr()const void DescribeIPv6TranslatorEntriesRequest::setAllocateIpv6Addr(const std::string& allocateIpv6Addr) { allocateIpv6Addr_ = allocateIpv6Addr; - setParameter("AllocateIpv6Addr", allocateIpv6Addr); + setCoreParameter("AllocateIpv6Addr", allocateIpv6Addr); } std::string DescribeIPv6TranslatorEntriesRequest::getClientToken()const @@ -110,7 +110,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getClientToken()const void DescribeIPv6TranslatorEntriesRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DescribeIPv6TranslatorEntriesRequest::getOwnerAccount()const @@ -121,7 +121,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getOwnerAccount()const void DescribeIPv6TranslatorEntriesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeIPv6TranslatorEntriesRequest::getOwnerId()const @@ -132,7 +132,7 @@ long DescribeIPv6TranslatorEntriesRequest::getOwnerId()const void DescribeIPv6TranslatorEntriesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeIPv6TranslatorEntriesRequest::getAclStatus()const @@ -143,7 +143,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getAclStatus()const void DescribeIPv6TranslatorEntriesRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } int DescribeIPv6TranslatorEntriesRequest::getPageNumber()const @@ -154,7 +154,7 @@ int DescribeIPv6TranslatorEntriesRequest::getPageNumber()const void DescribeIPv6TranslatorEntriesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeIPv6TranslatorEntriesRequest::getAclType()const @@ -165,7 +165,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getAclType()const void DescribeIPv6TranslatorEntriesRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } int DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Port()const @@ -176,7 +176,7 @@ int DescribeIPv6TranslatorEntriesRequest::getAllocateIpv6Port()const void DescribeIPv6TranslatorEntriesRequest::setAllocateIpv6Port(int allocateIpv6Port) { allocateIpv6Port_ = allocateIpv6Port; - setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); + setCoreParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); } std::string DescribeIPv6TranslatorEntriesRequest::getRegionId()const @@ -187,7 +187,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getRegionId()const void DescribeIPv6TranslatorEntriesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeIPv6TranslatorEntriesRequest::getPageSize()const @@ -198,7 +198,7 @@ int DescribeIPv6TranslatorEntriesRequest::getPageSize()const void DescribeIPv6TranslatorEntriesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeIPv6TranslatorEntriesRequest::getBackendIpv4Addr()const @@ -209,7 +209,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getBackendIpv4Addr()const void DescribeIPv6TranslatorEntriesRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr) { backendIpv4Addr_ = backendIpv4Addr; - setParameter("BackendIpv4Addr", backendIpv4Addr); + setCoreParameter("BackendIpv4Addr", backendIpv4Addr); } std::string DescribeIPv6TranslatorEntriesRequest::getTransProtocol()const @@ -220,7 +220,7 @@ std::string DescribeIPv6TranslatorEntriesRequest::getTransProtocol()const void DescribeIPv6TranslatorEntriesRequest::setTransProtocol(const std::string& transProtocol) { transProtocol_ = transProtocol; - setParameter("TransProtocol", transProtocol); + setCoreParameter("TransProtocol", transProtocol); } std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorId()const @@ -231,6 +231,6 @@ std::string DescribeIPv6TranslatorEntriesRequest::getIpv6TranslatorId()const void DescribeIPv6TranslatorEntriesRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) { ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); + setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId); } diff --git a/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc b/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc index 41a40da21..def22ae13 100644 --- a/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorEntriesResult.cc @@ -35,10 +35,13 @@ DescribeIPv6TranslatorEntriesResult::~DescribeIPv6TranslatorEntriesResult() void DescribeIPv6TranslatorEntriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIpv6TranslatorEntries = value["Ipv6TranslatorEntries"]["Ipv6TranslatorEntry"]; for (auto value : allIpv6TranslatorEntries) diff --git a/vpc/src/model/DescribeIPv6TranslatorsRequest.cc b/vpc/src/model/DescribeIPv6TranslatorsRequest.cc index 1e9f21028..2e0465f70 100644 --- a/vpc/src/model/DescribeIPv6TranslatorsRequest.cc +++ b/vpc/src/model/DescribeIPv6TranslatorsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeIPv6TranslatorsRequest::getBusinessStatus()const void DescribeIPv6TranslatorsRequest::setBusinessStatus(const std::string& businessStatus) { businessStatus_ = businessStatus; - setParameter("BusinessStatus", businessStatus); + setCoreParameter("BusinessStatus", businessStatus); } long DescribeIPv6TranslatorsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeIPv6TranslatorsRequest::getResourceOwnerId()const void DescribeIPv6TranslatorsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeIPv6TranslatorsRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeIPv6TranslatorsRequest::getResourceOwnerAccount()const void DescribeIPv6TranslatorsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIPv6TranslatorsRequest::getAllocateIpv6Addr()const @@ -66,7 +66,7 @@ std::string DescribeIPv6TranslatorsRequest::getAllocateIpv6Addr()const void DescribeIPv6TranslatorsRequest::setAllocateIpv6Addr(const std::string& allocateIpv6Addr) { allocateIpv6Addr_ = allocateIpv6Addr; - setParameter("AllocateIpv6Addr", allocateIpv6Addr); + setCoreParameter("AllocateIpv6Addr", allocateIpv6Addr); } std::string DescribeIPv6TranslatorsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeIPv6TranslatorsRequest::getOwnerAccount()const void DescribeIPv6TranslatorsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeIPv6TranslatorsRequest::getAllocateIpv4Addr()const @@ -88,7 +88,7 @@ std::string DescribeIPv6TranslatorsRequest::getAllocateIpv4Addr()const void DescribeIPv6TranslatorsRequest::setAllocateIpv4Addr(const std::string& allocateIpv4Addr) { allocateIpv4Addr_ = allocateIpv4Addr; - setParameter("AllocateIpv4Addr", allocateIpv4Addr); + setCoreParameter("AllocateIpv4Addr", allocateIpv4Addr); } long DescribeIPv6TranslatorsRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeIPv6TranslatorsRequest::getOwnerId()const void DescribeIPv6TranslatorsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeIPv6TranslatorsRequest::getSpec()const @@ -110,7 +110,7 @@ std::string DescribeIPv6TranslatorsRequest::getSpec()const void DescribeIPv6TranslatorsRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } int DescribeIPv6TranslatorsRequest::getPageNumber()const @@ -121,7 +121,7 @@ int DescribeIPv6TranslatorsRequest::getPageNumber()const void DescribeIPv6TranslatorsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeIPv6TranslatorsRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string DescribeIPv6TranslatorsRequest::getRegionId()const void DescribeIPv6TranslatorsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeIPv6TranslatorsRequest::getName()const @@ -143,7 +143,7 @@ std::string DescribeIPv6TranslatorsRequest::getName()const void DescribeIPv6TranslatorsRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int DescribeIPv6TranslatorsRequest::getPageSize()const @@ -154,7 +154,7 @@ int DescribeIPv6TranslatorsRequest::getPageSize()const void DescribeIPv6TranslatorsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeIPv6TranslatorsRequest::getIpv6TranslatorId()const @@ -165,7 +165,7 @@ std::string DescribeIPv6TranslatorsRequest::getIpv6TranslatorId()const void DescribeIPv6TranslatorsRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) { ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); + setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId); } std::string DescribeIPv6TranslatorsRequest::getPayType()const @@ -176,7 +176,7 @@ std::string DescribeIPv6TranslatorsRequest::getPayType()const void DescribeIPv6TranslatorsRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); } std::string DescribeIPv6TranslatorsRequest::getStatus()const @@ -187,6 +187,6 @@ std::string DescribeIPv6TranslatorsRequest::getStatus()const void DescribeIPv6TranslatorsRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/vpc/src/model/DescribeIPv6TranslatorsResult.cc b/vpc/src/model/DescribeIPv6TranslatorsResult.cc index b7c15ba41..f2f7b1b5d 100644 --- a/vpc/src/model/DescribeIPv6TranslatorsResult.cc +++ b/vpc/src/model/DescribeIPv6TranslatorsResult.cc @@ -35,10 +35,13 @@ DescribeIPv6TranslatorsResult::~DescribeIPv6TranslatorsResult() void DescribeIPv6TranslatorsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIpv6Translators = value["Ipv6Translators"]["Ipv6Translator"]; for (auto value : allIpv6Translators) diff --git a/vpc/src/model/DescribeIpv6AddressesRequest.cc b/vpc/src/model/DescribeIpv6AddressesRequest.cc index c4cddc4b3..32927a046 100644 --- a/vpc/src/model/DescribeIpv6AddressesRequest.cc +++ b/vpc/src/model/DescribeIpv6AddressesRequest.cc @@ -33,7 +33,7 @@ long DescribeIpv6AddressesRequest::getResourceOwnerId()const void DescribeIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DescribeIpv6AddressesRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeIpv6AddressesRequest::getCallerParentId()const void DescribeIpv6AddressesRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeIpv6AddressesRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeIpv6AddressesRequest::getProxy_original_security_transport()const void DescribeIpv6AddressesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeIpv6AddressesRequest::getIpv6InternetBandwidthId()const @@ -66,7 +66,7 @@ std::string DescribeIpv6AddressesRequest::getIpv6InternetBandwidthId()const void DescribeIpv6AddressesRequest::setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId) { ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; - setParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); + setCoreParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); } std::string DescribeIpv6AddressesRequest::getNetworkType()const @@ -77,7 +77,7 @@ std::string DescribeIpv6AddressesRequest::getNetworkType()const void DescribeIpv6AddressesRequest::setNetworkType(const std::string& networkType) { networkType_ = networkType; - setParameter("NetworkType", networkType); + setCoreParameter("NetworkType", networkType); } std::string DescribeIpv6AddressesRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string DescribeIpv6AddressesRequest::getProxy_original_source_ip()const void DescribeIpv6AddressesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } int DescribeIpv6AddressesRequest::getPageNumber()const @@ -99,7 +99,7 @@ int DescribeIpv6AddressesRequest::getPageNumber()const void DescribeIpv6AddressesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeIpv6AddressesRequest::getOwnerIdLoginEmail()const @@ -110,7 +110,7 @@ std::string DescribeIpv6AddressesRequest::getOwnerIdLoginEmail()const void DescribeIpv6AddressesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeIpv6AddressesRequest::getCallerType()const @@ -121,7 +121,7 @@ std::string DescribeIpv6AddressesRequest::getCallerType()const void DescribeIpv6AddressesRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeIpv6AddressesRequest::getAccessKeyId()const @@ -132,7 +132,7 @@ std::string DescribeIpv6AddressesRequest::getAccessKeyId()const void DescribeIpv6AddressesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeIpv6AddressesRequest::getResourceGroupId()const @@ -143,7 +143,7 @@ std::string DescribeIpv6AddressesRequest::getResourceGroupId()const void DescribeIpv6AddressesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeIpv6AddressesRequest::getRegionId()const @@ -154,7 +154,7 @@ std::string DescribeIpv6AddressesRequest::getRegionId()const void DescribeIpv6AddressesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeIpv6AddressesRequest::getSecurityToken()const @@ -165,7 +165,7 @@ std::string DescribeIpv6AddressesRequest::getSecurityToken()const void DescribeIpv6AddressesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } std::string DescribeIpv6AddressesRequest::getAssociatedInstanceType()const @@ -176,7 +176,7 @@ std::string DescribeIpv6AddressesRequest::getAssociatedInstanceType()const void DescribeIpv6AddressesRequest::setAssociatedInstanceType(const std::string& associatedInstanceType) { associatedInstanceType_ = associatedInstanceType; - setParameter("AssociatedInstanceType", associatedInstanceType); + setCoreParameter("AssociatedInstanceType", associatedInstanceType); } bool DescribeIpv6AddressesRequest::getEnable()const @@ -187,7 +187,7 @@ bool DescribeIpv6AddressesRequest::getEnable()const void DescribeIpv6AddressesRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DescribeIpv6AddressesRequest::getRequestContent()const @@ -198,7 +198,7 @@ std::string DescribeIpv6AddressesRequest::getRequestContent()const void DescribeIpv6AddressesRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } int DescribeIpv6AddressesRequest::getPageSize()const @@ -209,7 +209,7 @@ int DescribeIpv6AddressesRequest::getPageSize()const void DescribeIpv6AddressesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeIpv6AddressesRequest::getCallerBidEmail()const @@ -220,7 +220,7 @@ std::string DescribeIpv6AddressesRequest::getCallerBidEmail()const void DescribeIpv6AddressesRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeIpv6AddressesRequest::getCallerUidEmail()const @@ -231,7 +231,7 @@ std::string DescribeIpv6AddressesRequest::getCallerUidEmail()const void DescribeIpv6AddressesRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeIpv6AddressesRequest::getCallerUid()const @@ -242,7 +242,7 @@ long DescribeIpv6AddressesRequest::getCallerUid()const void DescribeIpv6AddressesRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeIpv6AddressesRequest::getApp_ip()const @@ -253,7 +253,7 @@ std::string DescribeIpv6AddressesRequest::getApp_ip()const void DescribeIpv6AddressesRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeIpv6AddressesRequest::getResourceOwnerAccount()const @@ -264,7 +264,7 @@ std::string DescribeIpv6AddressesRequest::getResourceOwnerAccount()const void DescribeIpv6AddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIpv6AddressesRequest::getOwnerAccount()const @@ -275,7 +275,7 @@ std::string DescribeIpv6AddressesRequest::getOwnerAccount()const void DescribeIpv6AddressesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeIpv6AddressesRequest::getCallerBid()const @@ -286,7 +286,7 @@ std::string DescribeIpv6AddressesRequest::getCallerBid()const void DescribeIpv6AddressesRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeIpv6AddressesRequest::getOwnerId()const @@ -297,7 +297,7 @@ long DescribeIpv6AddressesRequest::getOwnerId()const void DescribeIpv6AddressesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeIpv6AddressesRequest::getProxy_trust_transport_info()const @@ -308,7 +308,7 @@ bool DescribeIpv6AddressesRequest::getProxy_trust_transport_info()const void DescribeIpv6AddressesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeIpv6AddressesRequest::getAk_mfa_present()const @@ -319,7 +319,7 @@ bool DescribeIpv6AddressesRequest::getAk_mfa_present()const void DescribeIpv6AddressesRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string DescribeIpv6AddressesRequest::getVSwitchId()const @@ -330,7 +330,7 @@ std::string DescribeIpv6AddressesRequest::getVSwitchId()const void DescribeIpv6AddressesRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } bool DescribeIpv6AddressesRequest::getSecurity_transport()const @@ -341,7 +341,7 @@ bool DescribeIpv6AddressesRequest::getSecurity_transport()const void DescribeIpv6AddressesRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeIpv6AddressesRequest::getIpv6AddressId()const @@ -352,7 +352,7 @@ std::string DescribeIpv6AddressesRequest::getIpv6AddressId()const void DescribeIpv6AddressesRequest::setIpv6AddressId(const std::string& ipv6AddressId) { ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); + setCoreParameter("Ipv6AddressId", ipv6AddressId); } std::string DescribeIpv6AddressesRequest::getRequestId()const @@ -363,7 +363,7 @@ std::string DescribeIpv6AddressesRequest::getRequestId()const void DescribeIpv6AddressesRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeIpv6AddressesRequest::getVpcId()const @@ -374,7 +374,7 @@ std::string DescribeIpv6AddressesRequest::getVpcId()const void DescribeIpv6AddressesRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeIpv6AddressesRequest::getName()const @@ -385,7 +385,7 @@ std::string DescribeIpv6AddressesRequest::getName()const void DescribeIpv6AddressesRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string DescribeIpv6AddressesRequest::getIpv6Address()const @@ -396,7 +396,7 @@ std::string DescribeIpv6AddressesRequest::getIpv6Address()const void DescribeIpv6AddressesRequest::setIpv6Address(const std::string& ipv6Address) { ipv6Address_ = ipv6Address; - setParameter("Ipv6Address", ipv6Address); + setCoreParameter("Ipv6Address", ipv6Address); } std::string DescribeIpv6AddressesRequest::getAssociatedInstanceId()const @@ -407,6 +407,6 @@ std::string DescribeIpv6AddressesRequest::getAssociatedInstanceId()const void DescribeIpv6AddressesRequest::setAssociatedInstanceId(const std::string& associatedInstanceId) { associatedInstanceId_ = associatedInstanceId; - setParameter("AssociatedInstanceId", associatedInstanceId); + setCoreParameter("AssociatedInstanceId", associatedInstanceId); } diff --git a/vpc/src/model/DescribeIpv6AddressesResult.cc b/vpc/src/model/DescribeIpv6AddressesResult.cc index 40db7ac45..2584da81c 100644 --- a/vpc/src/model/DescribeIpv6AddressesResult.cc +++ b/vpc/src/model/DescribeIpv6AddressesResult.cc @@ -35,10 +35,13 @@ DescribeIpv6AddressesResult::~DescribeIpv6AddressesResult() void DescribeIpv6AddressesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIpv6Addresses = value["Ipv6Addresses"]["Ipv6Address"]; for (auto value : allIpv6Addresses) diff --git a/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc b/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc index 5fad2eca4..313489988 100644 --- a/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc +++ b/vpc/src/model/DescribeIpv6EgressOnlyRulesRequest.cc @@ -33,7 +33,7 @@ long DescribeIpv6EgressOnlyRulesRequest::getResourceOwnerId()const void DescribeIpv6EgressOnlyRulesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DescribeIpv6EgressOnlyRulesRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeIpv6EgressOnlyRulesRequest::getCallerParentId()const void DescribeIpv6EgressOnlyRulesRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeIpv6EgressOnlyRulesRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeIpv6EgressOnlyRulesRequest::getProxy_original_security_transport()c void DescribeIpv6EgressOnlyRulesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeIpv6EgressOnlyRulesRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getProxy_original_source_ip()con void DescribeIpv6EgressOnlyRulesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } int DescribeIpv6EgressOnlyRulesRequest::getPageNumber()const @@ -77,7 +77,7 @@ int DescribeIpv6EgressOnlyRulesRequest::getPageNumber()const void DescribeIpv6EgressOnlyRulesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeIpv6EgressOnlyRulesRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getOwnerIdLoginEmail()const void DescribeIpv6EgressOnlyRulesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeIpv6EgressOnlyRulesRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getCallerType()const void DescribeIpv6EgressOnlyRulesRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeIpv6EgressOnlyRulesRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getAccessKeyId()const void DescribeIpv6EgressOnlyRulesRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6EgressOnlyRuleId()const @@ -121,7 +121,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6EgressOnlyRuleId()const void DescribeIpv6EgressOnlyRulesRequest::setIpv6EgressOnlyRuleId(const std::string& ipv6EgressOnlyRuleId) { ipv6EgressOnlyRuleId_ = ipv6EgressOnlyRuleId; - setParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId); + setCoreParameter("Ipv6EgressOnlyRuleId", ipv6EgressOnlyRuleId); } std::string DescribeIpv6EgressOnlyRulesRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getResourceGroupId()const void DescribeIpv6EgressOnlyRulesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeIpv6EgressOnlyRulesRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getRegionId()const void DescribeIpv6EgressOnlyRulesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeIpv6EgressOnlyRulesRequest::getSecurityToken()const @@ -154,7 +154,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getSecurityToken()const void DescribeIpv6EgressOnlyRulesRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool DescribeIpv6EgressOnlyRulesRequest::getEnable()const @@ -165,7 +165,7 @@ bool DescribeIpv6EgressOnlyRulesRequest::getEnable()const void DescribeIpv6EgressOnlyRulesRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DescribeIpv6EgressOnlyRulesRequest::getRequestContent()const @@ -176,7 +176,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getRequestContent()const void DescribeIpv6EgressOnlyRulesRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } int DescribeIpv6EgressOnlyRulesRequest::getPageSize()const @@ -187,7 +187,7 @@ int DescribeIpv6EgressOnlyRulesRequest::getPageSize()const void DescribeIpv6EgressOnlyRulesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceType()const @@ -198,7 +198,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceType()const void DescribeIpv6EgressOnlyRulesRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } std::string DescribeIpv6EgressOnlyRulesRequest::getCallerBidEmail()const @@ -209,7 +209,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getCallerBidEmail()const void DescribeIpv6EgressOnlyRulesRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeIpv6EgressOnlyRulesRequest::getCallerUidEmail()const @@ -220,7 +220,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getCallerUidEmail()const void DescribeIpv6EgressOnlyRulesRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeIpv6EgressOnlyRulesRequest::getCallerUid()const @@ -231,7 +231,7 @@ long DescribeIpv6EgressOnlyRulesRequest::getCallerUid()const void DescribeIpv6EgressOnlyRulesRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeIpv6EgressOnlyRulesRequest::getApp_ip()const @@ -242,7 +242,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getApp_ip()const void DescribeIpv6EgressOnlyRulesRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeIpv6EgressOnlyRulesRequest::getResourceOwnerAccount()const @@ -253,7 +253,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getResourceOwnerAccount()const void DescribeIpv6EgressOnlyRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIpv6EgressOnlyRulesRequest::getOwnerAccount()const @@ -264,7 +264,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getOwnerAccount()const void DescribeIpv6EgressOnlyRulesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeIpv6EgressOnlyRulesRequest::getCallerBid()const @@ -275,7 +275,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getCallerBid()const void DescribeIpv6EgressOnlyRulesRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeIpv6EgressOnlyRulesRequest::getOwnerId()const @@ -286,7 +286,7 @@ long DescribeIpv6EgressOnlyRulesRequest::getOwnerId()const void DescribeIpv6EgressOnlyRulesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeIpv6EgressOnlyRulesRequest::getProxy_trust_transport_info()const @@ -297,7 +297,7 @@ bool DescribeIpv6EgressOnlyRulesRequest::getProxy_trust_transport_info()const void DescribeIpv6EgressOnlyRulesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeIpv6EgressOnlyRulesRequest::getAk_mfa_present()const @@ -308,7 +308,7 @@ bool DescribeIpv6EgressOnlyRulesRequest::getAk_mfa_present()const void DescribeIpv6EgressOnlyRulesRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeIpv6EgressOnlyRulesRequest::getSecurity_transport()const @@ -319,7 +319,7 @@ bool DescribeIpv6EgressOnlyRulesRequest::getSecurity_transport()const void DescribeIpv6EgressOnlyRulesRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceId()const @@ -330,7 +330,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getInstanceId()const void DescribeIpv6EgressOnlyRulesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string DescribeIpv6EgressOnlyRulesRequest::getRequestId()const @@ -341,7 +341,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getRequestId()const void DescribeIpv6EgressOnlyRulesRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6GatewayId()const @@ -352,7 +352,7 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getIpv6GatewayId()const void DescribeIpv6EgressOnlyRulesRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } std::string DescribeIpv6EgressOnlyRulesRequest::getName()const @@ -363,6 +363,6 @@ std::string DescribeIpv6EgressOnlyRulesRequest::getName()const void DescribeIpv6EgressOnlyRulesRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc b/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc index 4641b4db5..14e45602c 100644 --- a/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc +++ b/vpc/src/model/DescribeIpv6EgressOnlyRulesResult.cc @@ -35,10 +35,13 @@ DescribeIpv6EgressOnlyRulesResult::~DescribeIpv6EgressOnlyRulesResult() void DescribeIpv6EgressOnlyRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIpv6EgressOnlyRules = value["Ipv6EgressOnlyRules"]["Ipv6EgressOnlyRule"]; for (auto value : allIpv6EgressOnlyRules) diff --git a/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc b/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc index da3150c53..64bd0ed7a 100644 --- a/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc +++ b/vpc/src/model/DescribeIpv6GatewayAttributeRequest.cc @@ -33,7 +33,7 @@ long DescribeIpv6GatewayAttributeRequest::getResourceOwnerId()const void DescribeIpv6GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DescribeIpv6GatewayAttributeRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeIpv6GatewayAttributeRequest::getCallerParentId()const void DescribeIpv6GatewayAttributeRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeIpv6GatewayAttributeRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeIpv6GatewayAttributeRequest::getProxy_original_security_transport() void DescribeIpv6GatewayAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeIpv6GatewayAttributeRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getProxy_original_source_ip()co void DescribeIpv6GatewayAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string DescribeIpv6GatewayAttributeRequest::getOwnerIdLoginEmail()const @@ -77,7 +77,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getOwnerIdLoginEmail()const void DescribeIpv6GatewayAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeIpv6GatewayAttributeRequest::getCallerType()const @@ -88,7 +88,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getCallerType()const void DescribeIpv6GatewayAttributeRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeIpv6GatewayAttributeRequest::getAccessKeyId()const @@ -99,7 +99,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getAccessKeyId()const void DescribeIpv6GatewayAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeIpv6GatewayAttributeRequest::getResourceGroupId()const @@ -110,7 +110,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getResourceGroupId()const void DescribeIpv6GatewayAttributeRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeIpv6GatewayAttributeRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getRegionId()const void DescribeIpv6GatewayAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeIpv6GatewayAttributeRequest::getSecurityToken()const @@ -132,7 +132,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getSecurityToken()const void DescribeIpv6GatewayAttributeRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool DescribeIpv6GatewayAttributeRequest::getEnable()const @@ -143,7 +143,7 @@ bool DescribeIpv6GatewayAttributeRequest::getEnable()const void DescribeIpv6GatewayAttributeRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DescribeIpv6GatewayAttributeRequest::getRequestContent()const @@ -154,7 +154,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getRequestContent()const void DescribeIpv6GatewayAttributeRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string DescribeIpv6GatewayAttributeRequest::getCallerBidEmail()const @@ -165,7 +165,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getCallerBidEmail()const void DescribeIpv6GatewayAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeIpv6GatewayAttributeRequest::getCallerUidEmail()const @@ -176,7 +176,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getCallerUidEmail()const void DescribeIpv6GatewayAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeIpv6GatewayAttributeRequest::getCallerUid()const @@ -187,7 +187,7 @@ long DescribeIpv6GatewayAttributeRequest::getCallerUid()const void DescribeIpv6GatewayAttributeRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeIpv6GatewayAttributeRequest::getApp_ip()const @@ -198,7 +198,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getApp_ip()const void DescribeIpv6GatewayAttributeRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeIpv6GatewayAttributeRequest::getResourceOwnerAccount()const @@ -209,7 +209,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getResourceOwnerAccount()const void DescribeIpv6GatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIpv6GatewayAttributeRequest::getOwnerAccount()const @@ -220,7 +220,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getOwnerAccount()const void DescribeIpv6GatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeIpv6GatewayAttributeRequest::getCallerBid()const @@ -231,7 +231,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getCallerBid()const void DescribeIpv6GatewayAttributeRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeIpv6GatewayAttributeRequest::getOwnerId()const @@ -242,7 +242,7 @@ long DescribeIpv6GatewayAttributeRequest::getOwnerId()const void DescribeIpv6GatewayAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeIpv6GatewayAttributeRequest::getProxy_trust_transport_info()const @@ -253,7 +253,7 @@ bool DescribeIpv6GatewayAttributeRequest::getProxy_trust_transport_info()const void DescribeIpv6GatewayAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeIpv6GatewayAttributeRequest::getAk_mfa_present()const @@ -264,7 +264,7 @@ bool DescribeIpv6GatewayAttributeRequest::getAk_mfa_present()const void DescribeIpv6GatewayAttributeRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeIpv6GatewayAttributeRequest::getSecurity_transport()const @@ -275,7 +275,7 @@ bool DescribeIpv6GatewayAttributeRequest::getSecurity_transport()const void DescribeIpv6GatewayAttributeRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeIpv6GatewayAttributeRequest::getRequestId()const @@ -286,7 +286,7 @@ std::string DescribeIpv6GatewayAttributeRequest::getRequestId()const void DescribeIpv6GatewayAttributeRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeIpv6GatewayAttributeRequest::getIpv6GatewayId()const @@ -297,6 +297,6 @@ std::string DescribeIpv6GatewayAttributeRequest::getIpv6GatewayId()const void DescribeIpv6GatewayAttributeRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } diff --git a/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc b/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc index f8cf89e7a..192928cc8 100644 --- a/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc +++ b/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc @@ -35,10 +35,13 @@ DescribeIpv6GatewayAttributeResult::~DescribeIpv6GatewayAttributeResult() void DescribeIpv6GatewayAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/vpc/src/model/DescribeIpv6GatewaysRequest.cc b/vpc/src/model/DescribeIpv6GatewaysRequest.cc index ced891dbe..af8c4d960 100644 --- a/vpc/src/model/DescribeIpv6GatewaysRequest.cc +++ b/vpc/src/model/DescribeIpv6GatewaysRequest.cc @@ -33,7 +33,7 @@ long DescribeIpv6GatewaysRequest::getResourceOwnerId()const void DescribeIpv6GatewaysRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long DescribeIpv6GatewaysRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long DescribeIpv6GatewaysRequest::getCallerParentId()const void DescribeIpv6GatewaysRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool DescribeIpv6GatewaysRequest::getProxy_original_security_transport()const @@ -55,7 +55,7 @@ bool DescribeIpv6GatewaysRequest::getProxy_original_security_transport()const void DescribeIpv6GatewaysRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string DescribeIpv6GatewaysRequest::getProxy_original_source_ip()const @@ -66,7 +66,7 @@ std::string DescribeIpv6GatewaysRequest::getProxy_original_source_ip()const void DescribeIpv6GatewaysRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } int DescribeIpv6GatewaysRequest::getPageNumber()const @@ -77,7 +77,7 @@ int DescribeIpv6GatewaysRequest::getPageNumber()const void DescribeIpv6GatewaysRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeIpv6GatewaysRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string DescribeIpv6GatewaysRequest::getOwnerIdLoginEmail()const void DescribeIpv6GatewaysRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string DescribeIpv6GatewaysRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string DescribeIpv6GatewaysRequest::getCallerType()const void DescribeIpv6GatewaysRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string DescribeIpv6GatewaysRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string DescribeIpv6GatewaysRequest::getAccessKeyId()const void DescribeIpv6GatewaysRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeIpv6GatewaysRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string DescribeIpv6GatewaysRequest::getResourceGroupId()const void DescribeIpv6GatewaysRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeIpv6GatewaysRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string DescribeIpv6GatewaysRequest::getRegionId()const void DescribeIpv6GatewaysRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeIpv6GatewaysRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string DescribeIpv6GatewaysRequest::getSecurityToken()const void DescribeIpv6GatewaysRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool DescribeIpv6GatewaysRequest::getEnable()const @@ -154,7 +154,7 @@ bool DescribeIpv6GatewaysRequest::getEnable()const void DescribeIpv6GatewaysRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string DescribeIpv6GatewaysRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string DescribeIpv6GatewaysRequest::getRequestContent()const void DescribeIpv6GatewaysRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } int DescribeIpv6GatewaysRequest::getPageSize()const @@ -176,7 +176,7 @@ int DescribeIpv6GatewaysRequest::getPageSize()const void DescribeIpv6GatewaysRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeIpv6GatewaysRequest::getCallerBidEmail()const @@ -187,7 +187,7 @@ std::string DescribeIpv6GatewaysRequest::getCallerBidEmail()const void DescribeIpv6GatewaysRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string DescribeIpv6GatewaysRequest::getCallerUidEmail()const @@ -198,7 +198,7 @@ std::string DescribeIpv6GatewaysRequest::getCallerUidEmail()const void DescribeIpv6GatewaysRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long DescribeIpv6GatewaysRequest::getCallerUid()const @@ -209,7 +209,7 @@ long DescribeIpv6GatewaysRequest::getCallerUid()const void DescribeIpv6GatewaysRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string DescribeIpv6GatewaysRequest::getApp_ip()const @@ -220,7 +220,7 @@ std::string DescribeIpv6GatewaysRequest::getApp_ip()const void DescribeIpv6GatewaysRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string DescribeIpv6GatewaysRequest::getResourceOwnerAccount()const @@ -231,7 +231,7 @@ std::string DescribeIpv6GatewaysRequest::getResourceOwnerAccount()const void DescribeIpv6GatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeIpv6GatewaysRequest::getOwnerAccount()const @@ -242,7 +242,7 @@ std::string DescribeIpv6GatewaysRequest::getOwnerAccount()const void DescribeIpv6GatewaysRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeIpv6GatewaysRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string DescribeIpv6GatewaysRequest::getCallerBid()const void DescribeIpv6GatewaysRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long DescribeIpv6GatewaysRequest::getOwnerId()const @@ -264,7 +264,7 @@ long DescribeIpv6GatewaysRequest::getOwnerId()const void DescribeIpv6GatewaysRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeIpv6GatewaysRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool DescribeIpv6GatewaysRequest::getProxy_trust_transport_info()const void DescribeIpv6GatewaysRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool DescribeIpv6GatewaysRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool DescribeIpv6GatewaysRequest::getAk_mfa_present()const void DescribeIpv6GatewaysRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool DescribeIpv6GatewaysRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool DescribeIpv6GatewaysRequest::getSecurity_transport()const void DescribeIpv6GatewaysRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string DescribeIpv6GatewaysRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string DescribeIpv6GatewaysRequest::getRequestId()const void DescribeIpv6GatewaysRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string DescribeIpv6GatewaysRequest::getVpcId()const @@ -319,7 +319,7 @@ std::string DescribeIpv6GatewaysRequest::getVpcId()const void DescribeIpv6GatewaysRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeIpv6GatewaysRequest::getIpv6GatewayId()const @@ -330,7 +330,7 @@ std::string DescribeIpv6GatewaysRequest::getIpv6GatewayId()const void DescribeIpv6GatewaysRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } std::string DescribeIpv6GatewaysRequest::getName()const @@ -341,6 +341,6 @@ std::string DescribeIpv6GatewaysRequest::getName()const void DescribeIpv6GatewaysRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/DescribeIpv6GatewaysResult.cc b/vpc/src/model/DescribeIpv6GatewaysResult.cc index 6fb75ecf2..dc0bab323 100644 --- a/vpc/src/model/DescribeIpv6GatewaysResult.cc +++ b/vpc/src/model/DescribeIpv6GatewaysResult.cc @@ -35,10 +35,13 @@ DescribeIpv6GatewaysResult::~DescribeIpv6GatewaysResult() void DescribeIpv6GatewaysResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allIpv6Gateways = value["Ipv6Gateways"]["Ipv6Gateway"]; for (auto value : allIpv6Gateways) diff --git a/vpc/src/model/DescribeNatGatewaysRequest.cc b/vpc/src/model/DescribeNatGatewaysRequest.cc index 7ef53ee6c..24d496eee 100644 --- a/vpc/src/model/DescribeNatGatewaysRequest.cc +++ b/vpc/src/model/DescribeNatGatewaysRequest.cc @@ -33,7 +33,7 @@ long DescribeNatGatewaysRequest::getResourceOwnerId()const void DescribeNatGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeNatGatewaysRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeNatGatewaysRequest::getResourceOwnerAccount()const void DescribeNatGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeNatGatewaysRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeNatGatewaysRequest::getOwnerAccount()const void DescribeNatGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeNatGatewaysRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DescribeNatGatewaysRequest::getOwnerId()const void DescribeNatGatewaysRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeNatGatewaysRequest::getSpec()const @@ -77,7 +77,7 @@ std::string DescribeNatGatewaysRequest::getSpec()const void DescribeNatGatewaysRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } int DescribeNatGatewaysRequest::getPageNumber()const @@ -88,7 +88,7 @@ int DescribeNatGatewaysRequest::getPageNumber()const void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeNatGatewaysRequest::getRegionId()const @@ -99,7 +99,7 @@ std::string DescribeNatGatewaysRequest::getRegionId()const void DescribeNatGatewaysRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeNatGatewaysRequest::getVpcId()const @@ -110,7 +110,7 @@ std::string DescribeNatGatewaysRequest::getVpcId()const void DescribeNatGatewaysRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeNatGatewaysRequest::getName()const @@ -121,7 +121,7 @@ std::string DescribeNatGatewaysRequest::getName()const void DescribeNatGatewaysRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int DescribeNatGatewaysRequest::getPageSize()const @@ -132,7 +132,7 @@ int DescribeNatGatewaysRequest::getPageSize()const void DescribeNatGatewaysRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeNatGatewaysRequest::getNatGatewayId()const @@ -143,7 +143,7 @@ std::string DescribeNatGatewaysRequest::getNatGatewayId()const void DescribeNatGatewaysRequest::setNatGatewayId(const std::string& natGatewayId) { natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); + setCoreParameter("NatGatewayId", natGatewayId); } std::string DescribeNatGatewaysRequest::getInstanceChargeType()const @@ -154,6 +154,6 @@ std::string DescribeNatGatewaysRequest::getInstanceChargeType()const void DescribeNatGatewaysRequest::setInstanceChargeType(const std::string& instanceChargeType) { instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); + setCoreParameter("InstanceChargeType", instanceChargeType); } diff --git a/vpc/src/model/DescribeNatGatewaysResult.cc b/vpc/src/model/DescribeNatGatewaysResult.cc index f86edfd3a..5673fefa2 100644 --- a/vpc/src/model/DescribeNatGatewaysResult.cc +++ b/vpc/src/model/DescribeNatGatewaysResult.cc @@ -35,10 +35,13 @@ DescribeNatGatewaysResult::~DescribeNatGatewaysResult() void DescribeNatGatewaysResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allNatGateways = value["NatGateways"]["NatGateway"]; for (auto value : allNatGateways) diff --git a/vpc/src/model/DescribeNetworkAclAttributesRequest.cc b/vpc/src/model/DescribeNetworkAclAttributesRequest.cc new file mode 100644 index 000000000..2491d0f53 --- /dev/null +++ b/vpc/src/model/DescribeNetworkAclAttributesRequest.cc @@ -0,0 +1,291 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DescribeNetworkAclAttributesRequest; + +DescribeNetworkAclAttributesRequest::DescribeNetworkAclAttributesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeNetworkAclAttributes") +{} + +DescribeNetworkAclAttributesRequest::~DescribeNetworkAclAttributesRequest() +{} + +long DescribeNetworkAclAttributesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNetworkAclAttributesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNetworkAclAttributesRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeNetworkAclAttributesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long DescribeNetworkAclAttributesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeNetworkAclAttributesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeNetworkAclAttributesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeNetworkAclAttributesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeNetworkAclAttributesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeNetworkAclAttributesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeNetworkAclAttributesRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeNetworkAclAttributesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeNetworkAclAttributesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeNetworkAclAttributesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeNetworkAclAttributesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeNetworkAclAttributesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeNetworkAclAttributesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNetworkAclAttributesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeNetworkAclAttributesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeNetworkAclAttributesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool DescribeNetworkAclAttributesRequest::getEnable()const +{ + return enable_; +} + +void DescribeNetworkAclAttributesRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string DescribeNetworkAclAttributesRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeNetworkAclAttributesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeNetworkAclAttributesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeNetworkAclAttributesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeNetworkAclAttributesRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void DescribeNetworkAclAttributesRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string DescribeNetworkAclAttributesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeNetworkAclAttributesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeNetworkAclAttributesRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeNetworkAclAttributesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeNetworkAclAttributesRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeNetworkAclAttributesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeNetworkAclAttributesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNetworkAclAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNetworkAclAttributesRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeNetworkAclAttributesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeNetworkAclAttributesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNetworkAclAttributesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeNetworkAclAttributesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeNetworkAclAttributesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeNetworkAclAttributesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeNetworkAclAttributesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeNetworkAclAttributesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeNetworkAclAttributesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeNetworkAclAttributesRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeNetworkAclAttributesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vpc/src/model/DescribeNetworkAclAttributesResult.cc b/vpc/src/model/DescribeNetworkAclAttributesResult.cc new file mode 100644 index 000000000..bda8a25ee --- /dev/null +++ b/vpc/src/model/DescribeNetworkAclAttributesResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNetworkAclAttributesResult::DescribeNetworkAclAttributesResult() : + ServiceResult() +{} + +DescribeNetworkAclAttributesResult::DescribeNetworkAclAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkAclAttributesResult::~DescribeNetworkAclAttributesResult() +{} + +void DescribeNetworkAclAttributesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto networkAclAttributeNode = value["NetworkAclAttribute"]; + if(!networkAclAttributeNode["NetworkAclId"].isNull()) + networkAclAttribute_.networkAclId = networkAclAttributeNode["NetworkAclId"].asString(); + if(!networkAclAttributeNode["RegionId"].isNull()) + networkAclAttribute_.regionId = networkAclAttributeNode["RegionId"].asString(); + if(!networkAclAttributeNode["NetworkAclName"].isNull()) + networkAclAttribute_.networkAclName = networkAclAttributeNode["NetworkAclName"].asString(); + if(!networkAclAttributeNode["Description"].isNull()) + networkAclAttribute_.description = networkAclAttributeNode["Description"].asString(); + if(!networkAclAttributeNode["VpcId"].isNull()) + networkAclAttribute_.vpcId = networkAclAttributeNode["VpcId"].asString(); + if(!networkAclAttributeNode["CreationTime"].isNull()) + networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString(); + if(!networkAclAttributeNode["Status"].isNull()) + networkAclAttribute_.status = networkAclAttributeNode["Status"].asString(); + auto allIngressAclEntries = value["IngressAclEntries"]["IngressAclEntry"]; + for (auto value : allIngressAclEntries) + { + NetworkAclAttribute::IngressAclEntry ingressAclEntryObject; + if(!value["NetworkAclEntryId"].isNull()) + ingressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString(); + if(!value["Policy"].isNull()) + ingressAclEntryObject.policy = value["Policy"].asString(); + if(!value["Protocol"].isNull()) + ingressAclEntryObject.protocol = value["Protocol"].asString(); + if(!value["SourceCidrIp"].isNull()) + ingressAclEntryObject.sourceCidrIp = value["SourceCidrIp"].asString(); + if(!value["Port"].isNull()) + ingressAclEntryObject.port = value["Port"].asString(); + if(!value["EntryType"].isNull()) + ingressAclEntryObject.entryType = value["EntryType"].asString(); + if(!value["NetworkAclEntryName"].isNull()) + ingressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString(); + if(!value["Description"].isNull()) + ingressAclEntryObject.description = value["Description"].asString(); + networkAclAttribute_.ingressAclEntries.push_back(ingressAclEntryObject); + } + auto allEgressAclEntries = value["EgressAclEntries"]["EgressAclEntry"]; + for (auto value : allEgressAclEntries) + { + NetworkAclAttribute::EgressAclEntry egressAclEntryObject; + if(!value["NetworkAclEntryId"].isNull()) + egressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString(); + if(!value["Policy"].isNull()) + egressAclEntryObject.policy = value["Policy"].asString(); + if(!value["Protocol"].isNull()) + egressAclEntryObject.protocol = value["Protocol"].asString(); + if(!value["DestinationCidrIp"].isNull()) + egressAclEntryObject.destinationCidrIp = value["DestinationCidrIp"].asString(); + if(!value["Port"].isNull()) + egressAclEntryObject.port = value["Port"].asString(); + if(!value["EntryType"].isNull()) + egressAclEntryObject.entryType = value["EntryType"].asString(); + if(!value["Description"].isNull()) + egressAclEntryObject.description = value["Description"].asString(); + if(!value["NetworkAclEntryName"].isNull()) + egressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString(); + networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject); + } + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + NetworkAclAttribute::Resource resourceObject; + if(!value["ResourceId"].isNull()) + resourceObject.resourceId = value["ResourceId"].asString(); + if(!value["ResourceType"].isNull()) + resourceObject.resourceType = value["ResourceType"].asString(); + if(!value["Status"].isNull()) + resourceObject.status = value["Status"].asString(); + networkAclAttribute_.resources.push_back(resourceObject); + } + +} + +DescribeNetworkAclAttributesResult::NetworkAclAttribute DescribeNetworkAclAttributesResult::getNetworkAclAttribute()const +{ + return networkAclAttribute_; +} + diff --git a/vpc/src/model/DescribeNetworkAclsRequest.cc b/vpc/src/model/DescribeNetworkAclsRequest.cc new file mode 100644 index 000000000..7af635bff --- /dev/null +++ b/vpc/src/model/DescribeNetworkAclsRequest.cc @@ -0,0 +1,357 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DescribeNetworkAclsRequest; + +DescribeNetworkAclsRequest::DescribeNetworkAclsRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeNetworkAcls") +{} + +DescribeNetworkAclsRequest::~DescribeNetworkAclsRequest() +{} + +long DescribeNetworkAclsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNetworkAclsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNetworkAclsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeNetworkAclsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long DescribeNetworkAclsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeNetworkAclsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeNetworkAclsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeNetworkAclsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeNetworkAclsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeNetworkAclsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +int DescribeNetworkAclsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNetworkAclsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeNetworkAclsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeNetworkAclsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeNetworkAclsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeNetworkAclsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeNetworkAclsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeNetworkAclsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeNetworkAclsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNetworkAclsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeNetworkAclsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeNetworkAclsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool DescribeNetworkAclsRequest::getEnable()const +{ + return enable_; +} + +void DescribeNetworkAclsRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string DescribeNetworkAclsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeNetworkAclsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +int DescribeNetworkAclsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNetworkAclsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeNetworkAclsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeNetworkAclsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeNetworkAclsRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void DescribeNetworkAclsRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string DescribeNetworkAclsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeNetworkAclsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeNetworkAclsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeNetworkAclsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeNetworkAclsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeNetworkAclsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeNetworkAclsRequest::getResourceId()const +{ + return resourceId_; +} + +void DescribeNetworkAclsRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setCoreParameter("ResourceId", resourceId); +} + +std::string DescribeNetworkAclsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNetworkAclsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNetworkAclsRequest::getNetworkAclName()const +{ + return networkAclName_; +} + +void DescribeNetworkAclsRequest::setNetworkAclName(const std::string& networkAclName) +{ + networkAclName_ = networkAclName; + setCoreParameter("NetworkAclName", networkAclName); +} + +std::string DescribeNetworkAclsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeNetworkAclsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeNetworkAclsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNetworkAclsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeNetworkAclsRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeNetworkAclsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +bool DescribeNetworkAclsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeNetworkAclsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeNetworkAclsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeNetworkAclsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool DescribeNetworkAclsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeNetworkAclsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeNetworkAclsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeNetworkAclsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::string DescribeNetworkAclsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeNetworkAclsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + diff --git a/vpc/src/model/DescribeNetworkAclsResult.cc b/vpc/src/model/DescribeNetworkAclsResult.cc new file mode 100644 index 000000000..20146cc01 --- /dev/null +++ b/vpc/src/model/DescribeNetworkAclsResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNetworkAclsResult::DescribeNetworkAclsResult() : + ServiceResult() +{} + +DescribeNetworkAclsResult::DescribeNetworkAclsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkAclsResult::~DescribeNetworkAclsResult() +{} + +void DescribeNetworkAclsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allNetworkAcls = value["NetworkAcls"]["NetworkAcl"]; + for (auto value : allNetworkAcls) + { + NetworkAcl networkAclsObject; + if(!value["NetworkAclId"].isNull()) + networkAclsObject.networkAclId = value["NetworkAclId"].asString(); + if(!value["RegionId"].isNull()) + networkAclsObject.regionId = value["RegionId"].asString(); + if(!value["NetworkAclName"].isNull()) + networkAclsObject.networkAclName = value["NetworkAclName"].asString(); + if(!value["Description"].isNull()) + networkAclsObject.description = value["Description"].asString(); + if(!value["VpcId"].isNull()) + networkAclsObject.vpcId = value["VpcId"].asString(); + if(!value["CreationTime"].isNull()) + networkAclsObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + networkAclsObject.status = value["Status"].asString(); + auto allIngressAclEntries = value["IngressAclEntries"]["IngressAclEntry"]; + for (auto value : allIngressAclEntries) + { + NetworkAcl::IngressAclEntry ingressAclEntriesObject; + if(!value["NetworkAclEntryId"].isNull()) + ingressAclEntriesObject.networkAclEntryId = value["NetworkAclEntryId"].asString(); + if(!value["Policy"].isNull()) + ingressAclEntriesObject.policy = value["Policy"].asString(); + if(!value["Protocol"].isNull()) + ingressAclEntriesObject.protocol = value["Protocol"].asString(); + if(!value["SourceCidrIp"].isNull()) + ingressAclEntriesObject.sourceCidrIp = value["SourceCidrIp"].asString(); + if(!value["Port"].isNull()) + ingressAclEntriesObject.port = value["Port"].asString(); + if(!value["EntryType"].isNull()) + ingressAclEntriesObject.entryType = value["EntryType"].asString(); + if(!value["NetworkAclEntryName"].isNull()) + ingressAclEntriesObject.networkAclEntryName = value["NetworkAclEntryName"].asString(); + if(!value["Description"].isNull()) + ingressAclEntriesObject.description = value["Description"].asString(); + networkAclsObject.ingressAclEntries.push_back(ingressAclEntriesObject); + } + auto allEgressAclEntries = value["EgressAclEntries"]["EgressAclEntry"]; + for (auto value : allEgressAclEntries) + { + NetworkAcl::EgressAclEntry egressAclEntriesObject; + if(!value["NetworkAclEntryId"].isNull()) + egressAclEntriesObject.networkAclEntryId = value["NetworkAclEntryId"].asString(); + if(!value["Policy"].isNull()) + egressAclEntriesObject.policy = value["Policy"].asString(); + if(!value["Protocol"].isNull()) + egressAclEntriesObject.protocol = value["Protocol"].asString(); + if(!value["DestinationCidrIp"].isNull()) + egressAclEntriesObject.destinationCidrIp = value["DestinationCidrIp"].asString(); + if(!value["Port"].isNull()) + egressAclEntriesObject.port = value["Port"].asString(); + if(!value["EntryType"].isNull()) + egressAclEntriesObject.entryType = value["EntryType"].asString(); + if(!value["Description"].isNull()) + egressAclEntriesObject.description = value["Description"].asString(); + if(!value["NetworkAclEntryName"].isNull()) + egressAclEntriesObject.networkAclEntryName = value["NetworkAclEntryName"].asString(); + networkAclsObject.egressAclEntries.push_back(egressAclEntriesObject); + } + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + NetworkAcl::Resource resourcesObject; + if(!value["ResourceId"].isNull()) + resourcesObject.resourceId = value["ResourceId"].asString(); + if(!value["ResourceType"].isNull()) + resourcesObject.resourceType = value["ResourceType"].asString(); + if(!value["Status"].isNull()) + resourcesObject.status = value["Status"].asString(); + networkAclsObject.resources.push_back(resourcesObject); + } + networkAcls_.push_back(networkAclsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + +} + +std::vector DescribeNetworkAclsResult::getNetworkAcls()const +{ + return networkAcls_; +} + +std::string DescribeNetworkAclsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeNetworkAclsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeNetworkAclsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/vpc/src/model/DescribePhysicalConnectionLOARequest.cc b/vpc/src/model/DescribePhysicalConnectionLOARequest.cc new file mode 100644 index 000000000..f32b667e9 --- /dev/null +++ b/vpc/src/model/DescribePhysicalConnectionLOARequest.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 + +using AlibabaCloud::Vpc::Model::DescribePhysicalConnectionLOARequest; + +DescribePhysicalConnectionLOARequest::DescribePhysicalConnectionLOARequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribePhysicalConnectionLOA") +{} + +DescribePhysicalConnectionLOARequest::~DescribePhysicalConnectionLOARequest() +{} + +long DescribePhysicalConnectionLOARequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePhysicalConnectionLOARequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribePhysicalConnectionLOARequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribePhysicalConnectionLOARequest::getRegionId()const +{ + return regionId_; +} + +void DescribePhysicalConnectionLOARequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribePhysicalConnectionLOARequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePhysicalConnectionLOARequest::getClientToken()const +{ + return clientToken_; +} + +void DescribePhysicalConnectionLOARequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DescribePhysicalConnectionLOARequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribePhysicalConnectionLOARequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribePhysicalConnectionLOARequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePhysicalConnectionLOARequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribePhysicalConnectionLOAResult.cc b/vpc/src/model/DescribePhysicalConnectionLOAResult.cc new file mode 100644 index 000000000..cc53ad20f --- /dev/null +++ b/vpc/src/model/DescribePhysicalConnectionLOAResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribePhysicalConnectionLOAResult::DescribePhysicalConnectionLOAResult() : + ServiceResult() +{} + +DescribePhysicalConnectionLOAResult::DescribePhysicalConnectionLOAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhysicalConnectionLOAResult::~DescribePhysicalConnectionLOAResult() +{} + +void DescribePhysicalConnectionLOAResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto physicalConnectionLOATypeNode = value["PhysicalConnectionLOAType"]; + if(!physicalConnectionLOATypeNode["InstanceId"].isNull()) + physicalConnectionLOAType_.instanceId = physicalConnectionLOATypeNode["InstanceId"].asString(); + if(!physicalConnectionLOATypeNode["CompanyName"].isNull()) + physicalConnectionLOAType_.companyName = physicalConnectionLOATypeNode["CompanyName"].asString(); + if(!physicalConnectionLOATypeNode["CompanyLocalizedName"].isNull()) + physicalConnectionLOAType_.companyLocalizedName = physicalConnectionLOATypeNode["CompanyLocalizedName"].asString(); + if(!physicalConnectionLOATypeNode["LineType"].isNull()) + physicalConnectionLOAType_.lineType = physicalConnectionLOATypeNode["LineType"].asString(); + if(!physicalConnectionLOATypeNode["LineCode"].isNull()) + physicalConnectionLOAType_.lineCode = physicalConnectionLOATypeNode["LineCode"].asString(); + if(!physicalConnectionLOATypeNode["LineLabel"].isNull()) + physicalConnectionLOAType_.lineLabel = physicalConnectionLOATypeNode["LineLabel"].asString(); + if(!physicalConnectionLOATypeNode["ConstructionTime"].isNull()) + physicalConnectionLOAType_.constructionTime = physicalConnectionLOATypeNode["ConstructionTime"].asString(); + if(!physicalConnectionLOATypeNode["Status"].isNull()) + physicalConnectionLOAType_.status = physicalConnectionLOATypeNode["Status"].asString(); + if(!physicalConnectionLOATypeNode["LoaUrl"].isNull()) + physicalConnectionLOAType_.loaUrl = physicalConnectionLOATypeNode["LoaUrl"].asString(); + if(!physicalConnectionLOATypeNode["SI"].isNull()) + physicalConnectionLOAType_.sI = physicalConnectionLOATypeNode["SI"].asString(); + auto allPMInfo = value["PMInfo"]["PMInfoItem"]; + for (auto value : allPMInfo) + { + PhysicalConnectionLOAType::PMInfoItem pMInfoItemObject; + if(!value["PMName"].isNull()) + pMInfoItemObject.pMName = value["PMName"].asString(); + if(!value["PMContactInfo"].isNull()) + pMInfoItemObject.pMContactInfo = value["PMContactInfo"].asString(); + if(!value["PMCertificateType"].isNull()) + pMInfoItemObject.pMCertificateType = value["PMCertificateType"].asString(); + if(!value["PMCertificateNo"].isNull()) + pMInfoItemObject.pMCertificateNo = value["PMCertificateNo"].asString(); + if(!value["PMGender"].isNull()) + pMInfoItemObject.pMGender = value["PMGender"].asString(); + physicalConnectionLOAType_.pMInfo.push_back(pMInfoItemObject); + } + +} + +DescribePhysicalConnectionLOAResult::PhysicalConnectionLOAType DescribePhysicalConnectionLOAResult::getPhysicalConnectionLOAType()const +{ + return physicalConnectionLOAType_; +} + diff --git a/vpc/src/model/DescribePhysicalConnectionsRequest.cc b/vpc/src/model/DescribePhysicalConnectionsRequest.cc index dd763daf4..b135d18c3 100644 --- a/vpc/src/model/DescribePhysicalConnectionsRequest.cc +++ b/vpc/src/model/DescribePhysicalConnectionsRequest.cc @@ -37,8 +37,8 @@ void DescribePhysicalConnectionsRequest::setFilter(const std::vector& fi for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribePhysicalConnectionsRequest::getResourceOwnerId()const void DescribePhysicalConnectionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribePhysicalConnectionsRequest::getRegionId()const @@ -61,7 +61,7 @@ std::string DescribePhysicalConnectionsRequest::getRegionId()const void DescribePhysicalConnectionsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount()const @@ -72,7 +72,7 @@ std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount()const void DescribePhysicalConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribePhysicalConnectionsRequest::getClientToken()const @@ -83,7 +83,7 @@ std::string DescribePhysicalConnectionsRequest::getClientToken()const void DescribePhysicalConnectionsRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DescribePhysicalConnectionsRequest::getOwnerAccount()const @@ -94,7 +94,7 @@ std::string DescribePhysicalConnectionsRequest::getOwnerAccount()const void DescribePhysicalConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribePhysicalConnectionsRequest::getPageSize()const @@ -105,7 +105,7 @@ int DescribePhysicalConnectionsRequest::getPageSize()const void DescribePhysicalConnectionsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribePhysicalConnectionsRequest::getOwnerId()const @@ -116,7 +116,18 @@ long DescribePhysicalConnectionsRequest::getOwnerId()const void DescribePhysicalConnectionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribePhysicalConnectionsRequest::getIncludeReservationData()const +{ + return includeReservationData_; +} + +void DescribePhysicalConnectionsRequest::setIncludeReservationData(bool includeReservationData) +{ + includeReservationData_ = includeReservationData; + setCoreParameter("IncludeReservationData", includeReservationData ? "true" : "false"); } int DescribePhysicalConnectionsRequest::getPageNumber()const @@ -127,6 +138,6 @@ int DescribePhysicalConnectionsRequest::getPageNumber()const void DescribePhysicalConnectionsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribePhysicalConnectionsResult.cc b/vpc/src/model/DescribePhysicalConnectionsResult.cc index a95bf1b75..2fda66d80 100644 --- a/vpc/src/model/DescribePhysicalConnectionsResult.cc +++ b/vpc/src/model/DescribePhysicalConnectionsResult.cc @@ -35,10 +35,13 @@ DescribePhysicalConnectionsResult::~DescribePhysicalConnectionsResult() void DescribePhysicalConnectionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allPhysicalConnectionSet = value["PhysicalConnectionSet"]["PhysicalConnectionType"]; for (auto value : allPhysicalConnectionSet) @@ -80,6 +83,22 @@ void DescribePhysicalConnectionsResult::parse(const std::string &payload) physicalConnectionSetObject.circuitCode = value["CircuitCode"].asString(); if(!value["Bandwidth"].isNull()) physicalConnectionSetObject.bandwidth = std::stol(value["Bandwidth"].asString()); + if(!value["LoaStatus"].isNull()) + physicalConnectionSetObject.loaStatus = value["LoaStatus"].asString(); + if(!value["Spec"].isNull()) + physicalConnectionSetObject.spec1 = value["Spec"].asString(); + if(!value["HasReservationData"].isNull()) + physicalConnectionSetObject.hasReservationData = value["HasReservationData"].asString(); + if(!value["ReservationInternetChargeType"].isNull()) + physicalConnectionSetObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString(); + if(!value["ReservationActiveTime"].isNull()) + physicalConnectionSetObject.reservationActiveTime = value["ReservationActiveTime"].asString(); + if(!value["ReservationOrderType"].isNull()) + physicalConnectionSetObject.reservationOrderType = value["ReservationOrderType"].asString(); + if(!value["EndTime"].isNull()) + physicalConnectionSetObject.endTime = value["EndTime"].asString(); + if(!value["ChargeType"].isNull()) + physicalConnectionSetObject.chargeType = value["ChargeType"].asString(); physicalConnectionSet_.push_back(physicalConnectionSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeRegionsRequest.cc b/vpc/src/model/DescribeRegionsRequest.cc index 64fa2a05b..5c6458606 100644 --- a/vpc/src/model/DescribeRegionsRequest.cc +++ b/vpc/src/model/DescribeRegionsRequest.cc @@ -33,7 +33,7 @@ long DescribeRegionsRequest::getResourceOwnerId()const void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRegionsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeRegionsRequest::getResourceOwnerAccount()const void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRegionsRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRegionsRequest::getOwnerAccount()const void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeRegionsRequest::getAcceptLanguage()const @@ -66,7 +66,7 @@ std::string DescribeRegionsRequest::getAcceptLanguage()const void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) { acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); + setCoreParameter("AcceptLanguage", acceptLanguage); } long DescribeRegionsRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeRegionsRequest::getOwnerId()const void DescribeRegionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRegionsRequest::getProductType()const @@ -88,6 +88,6 @@ std::string DescribeRegionsRequest::getProductType()const void DescribeRegionsRequest::setProductType(const std::string& productType) { productType_ = productType; - setParameter("ProductType", productType); + setCoreParameter("ProductType", productType); } diff --git a/vpc/src/model/DescribeRegionsResult.cc b/vpc/src/model/DescribeRegionsResult.cc index eee99f6c9..9aeb67b40 100644 --- a/vpc/src/model/DescribeRegionsResult.cc +++ b/vpc/src/model/DescribeRegionsResult.cc @@ -35,10 +35,13 @@ DescribeRegionsResult::~DescribeRegionsResult() void DescribeRegionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRegions = value["Regions"]["Region"]; for (auto value : allRegions) diff --git a/vpc/src/model/DescribeRouteEntryListRequest.cc b/vpc/src/model/DescribeRouteEntryListRequest.cc new file mode 100644 index 000000000..010298c26 --- /dev/null +++ b/vpc/src/model/DescribeRouteEntryListRequest.cc @@ -0,0 +1,401 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DescribeRouteEntryListRequest; + +DescribeRouteEntryListRequest::DescribeRouteEntryListRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeRouteEntryList") +{} + +DescribeRouteEntryListRequest::~DescribeRouteEntryListRequest() +{} + +long DescribeRouteEntryListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouteEntryListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouteEntryListRequest::getRouteEntryName()const +{ + return routeEntryName_; +} + +void DescribeRouteEntryListRequest::setRouteEntryName(const std::string& routeEntryName) +{ + routeEntryName_ = routeEntryName; + setCoreParameter("RouteEntryName", routeEntryName); +} + +long DescribeRouteEntryListRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRouteEntryListRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeRouteEntryListRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeRouteEntryListRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string DescribeRouteEntryListRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeRouteEntryListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeRouteEntryListRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeRouteEntryListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeRouteEntryListRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRouteEntryListRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string DescribeRouteEntryListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRouteEntryListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRouteEntryListRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeRouteEntryListRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeRouteEntryListRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRouteEntryListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeRouteEntryListRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeRouteEntryListRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::string DescribeRouteEntryListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRouteEntryListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool DescribeRouteEntryListRequest::getEnable()const +{ + return enable_; +} + +void DescribeRouteEntryListRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string DescribeRouteEntryListRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeRouteEntryListRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string DescribeRouteEntryListRequest::getRouteEntryType()const +{ + return routeEntryType_; +} + +void DescribeRouteEntryListRequest::setRouteEntryType(const std::string& routeEntryType) +{ + routeEntryType_ = routeEntryType; + setCoreParameter("RouteEntryType", routeEntryType); +} + +std::string DescribeRouteEntryListRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeRouteEntryListRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeRouteEntryListRequest::getIpVersion()const +{ + return ipVersion_; +} + +void DescribeRouteEntryListRequest::setIpVersion(const std::string& ipVersion) +{ + ipVersion_ = ipVersion; + setCoreParameter("IpVersion", ipVersion); +} + +std::string DescribeRouteEntryListRequest::getNextHopId()const +{ + return nextHopId_; +} + +void DescribeRouteEntryListRequest::setNextHopId(const std::string& nextHopId) +{ + nextHopId_ = nextHopId; + setCoreParameter("NextHopId", nextHopId); +} + +std::string DescribeRouteEntryListRequest::getNextHopType()const +{ + return nextHopType_; +} + +void DescribeRouteEntryListRequest::setNextHopType(const std::string& nextHopType) +{ + nextHopType_ = nextHopType; + setCoreParameter("NextHopType", nextHopType); +} + +std::string DescribeRouteEntryListRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeRouteEntryListRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +std::string DescribeRouteEntryListRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void DescribeRouteEntryListRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setCoreParameter("RouteTableId", routeTableId); +} + +long DescribeRouteEntryListRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRouteEntryListRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRouteEntryListRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeRouteEntryListRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string DescribeRouteEntryListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouteEntryListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouteEntryListRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DescribeRouteEntryListRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setCoreParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string DescribeRouteEntryListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRouteEntryListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRouteEntryListRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRouteEntryListRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long DescribeRouteEntryListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouteEntryListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeRouteEntryListRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeRouteEntryListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool DescribeRouteEntryListRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRouteEntryListRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +int DescribeRouteEntryListRequest::getMaxResult()const +{ + return maxResult_; +} + +void DescribeRouteEntryListRequest::setMaxResult(int maxResult) +{ + maxResult_ = maxResult; + setCoreParameter("MaxResult", std::to_string(maxResult)); +} + +bool DescribeRouteEntryListRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRouteEntryListRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string DescribeRouteEntryListRequest::getRouteEntryId()const +{ + return routeEntryId_; +} + +void DescribeRouteEntryListRequest::setRouteEntryId(const std::string& routeEntryId) +{ + routeEntryId_ = routeEntryId; + setCoreParameter("RouteEntryId", routeEntryId); +} + +std::string DescribeRouteEntryListRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRouteEntryListRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vpc/src/model/DescribeRouteEntryListResult.cc b/vpc/src/model/DescribeRouteEntryListResult.cc new file mode 100644 index 000000000..58b1246ed --- /dev/null +++ b/vpc/src/model/DescribeRouteEntryListResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeRouteEntryListResult::DescribeRouteEntryListResult() : + ServiceResult() +{} + +DescribeRouteEntryListResult::DescribeRouteEntryListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouteEntryListResult::~DescribeRouteEntryListResult() +{} + +void DescribeRouteEntryListResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRouteEntrys = value["RouteEntrys"]["RouteEntry"]; + for (auto value : allRouteEntrys) + { + RouteEntry routeEntrysObject; + if(!value["RouteTableId"].isNull()) + routeEntrysObject.routeTableId = value["RouteTableId"].asString(); + if(!value["DestinationCidrBlock"].isNull()) + routeEntrysObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + if(!value["Type"].isNull()) + routeEntrysObject.type = value["Type"].asString(); + if(!value["RouteEntryId"].isNull()) + routeEntrysObject.routeEntryId = value["RouteEntryId"].asString(); + if(!value["RouteEntryName"].isNull()) + routeEntrysObject.routeEntryName = value["RouteEntryName"].asString(); + if(!value["Status"].isNull()) + routeEntrysObject.status = value["Status"].asString(); + if(!value["IpVersion"].isNull()) + routeEntrysObject.ipVersion = value["IpVersion"].asString(); + auto allNextHops = value["NextHops"]["NextHop"]; + for (auto value : allNextHops) + { + RouteEntry::NextHop nextHopsObject; + if(!value["NextHopType"].isNull()) + nextHopsObject.nextHopType = value["NextHopType"].asString(); + if(!value["NextHopId"].isNull()) + nextHopsObject.nextHopId = value["NextHopId"].asString(); + if(!value["Enabled"].isNull()) + nextHopsObject.enabled = std::stoi(value["Enabled"].asString()); + if(!value["Weight"].isNull()) + nextHopsObject.weight = std::stoi(value["Weight"].asString()); + if(!value["NextHopRegionId"].isNull()) + nextHopsObject.nextHopRegionId = value["NextHopRegionId"].asString(); + auto nextHopRelatedInfoNode = value["NextHopRelatedInfo"]; + if(!nextHopRelatedInfoNode["InstanceType"].isNull()) + nextHopsObject.nextHopRelatedInfo.instanceType = nextHopRelatedInfoNode["InstanceType"].asString(); + if(!nextHopRelatedInfoNode["RegionId"].isNull()) + nextHopsObject.nextHopRelatedInfo.regionId = nextHopRelatedInfoNode["RegionId"].asString(); + if(!nextHopRelatedInfoNode["InstanceId"].isNull()) + nextHopsObject.nextHopRelatedInfo.instanceId = nextHopRelatedInfoNode["InstanceId"].asString(); + routeEntrysObject.nextHops.push_back(nextHopsObject); + } + routeEntrys_.push_back(routeEntrysObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeRouteEntryListResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeRouteEntryListResult::getRouteEntrys()const +{ + return routeEntrys_; +} + diff --git a/vpc/src/model/DescribeRouteTableListRequest.cc b/vpc/src/model/DescribeRouteTableListRequest.cc index 8cdbe4b58..332419933 100644 --- a/vpc/src/model/DescribeRouteTableListRequest.cc +++ b/vpc/src/model/DescribeRouteTableListRequest.cc @@ -33,7 +33,7 @@ long DescribeRouteTableListRequest::getResourceOwnerId()const void DescribeRouteTableListRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRouteTableListRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeRouteTableListRequest::getResourceOwnerAccount()const void DescribeRouteTableListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRouteTableListRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRouteTableListRequest::getOwnerAccount()const void DescribeRouteTableListRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeRouteTableListRequest::getOwnerId()const @@ -66,7 +66,7 @@ long DescribeRouteTableListRequest::getOwnerId()const void DescribeRouteTableListRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeRouteTableListRequest::getPageNumber()const @@ -77,7 +77,7 @@ int DescribeRouteTableListRequest::getPageNumber()const void DescribeRouteTableListRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeRouteTableListRequest::getRouterType()const @@ -88,7 +88,7 @@ std::string DescribeRouteTableListRequest::getRouterType()const void DescribeRouteTableListRequest::setRouterType(const std::string& routerType) { routerType_ = routerType; - setParameter("RouterType", routerType); + setCoreParameter("RouterType", routerType); } std::string DescribeRouteTableListRequest::getResourceGroupId()const @@ -99,7 +99,7 @@ std::string DescribeRouteTableListRequest::getResourceGroupId()const void DescribeRouteTableListRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeRouteTableListRequest::getRouteTableName()const @@ -110,7 +110,7 @@ std::string DescribeRouteTableListRequest::getRouteTableName()const void DescribeRouteTableListRequest::setRouteTableName(const std::string& routeTableName) { routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); + setCoreParameter("RouteTableName", routeTableName); } std::string DescribeRouteTableListRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string DescribeRouteTableListRequest::getRegionId()const void DescribeRouteTableListRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeRouteTableListRequest::getRouterId()const @@ -132,7 +132,7 @@ std::string DescribeRouteTableListRequest::getRouterId()const void DescribeRouteTableListRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } std::string DescribeRouteTableListRequest::getVpcId()const @@ -143,7 +143,7 @@ std::string DescribeRouteTableListRequest::getVpcId()const void DescribeRouteTableListRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } int DescribeRouteTableListRequest::getPageSize()const @@ -154,7 +154,7 @@ int DescribeRouteTableListRequest::getPageSize()const void DescribeRouteTableListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::vector DescribeRouteTableListRequest::getTag()const @@ -169,8 +169,8 @@ void DescribeRouteTableListRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -182,6 +182,6 @@ std::string DescribeRouteTableListRequest::getRouteTableId()const void DescribeRouteTableListRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } diff --git a/vpc/src/model/DescribeRouteTableListResult.cc b/vpc/src/model/DescribeRouteTableListResult.cc index 51c3cafcb..768ba28b1 100644 --- a/vpc/src/model/DescribeRouteTableListResult.cc +++ b/vpc/src/model/DescribeRouteTableListResult.cc @@ -35,10 +35,13 @@ DescribeRouteTableListResult::~DescribeRouteTableListResult() void DescribeRouteTableListResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRouterTableList = value["RouterTableList"]["RouterTableListType"]; for (auto value : allRouterTableList) @@ -62,6 +65,8 @@ void DescribeRouteTableListResult::parse(const std::string &payload) routerTableListObject.resourceGroupId = value["ResourceGroupId"].asString(); if(!value["CreationTime"].isNull()) routerTableListObject.creationTime = value["CreationTime"].asString(); + if(!value["Status"].isNull()) + routerTableListObject.status = value["Status"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { diff --git a/vpc/src/model/DescribeRouteTablesRequest.cc b/vpc/src/model/DescribeRouteTablesRequest.cc index 021882b5f..9643b3cb5 100644 --- a/vpc/src/model/DescribeRouteTablesRequest.cc +++ b/vpc/src/model/DescribeRouteTablesRequest.cc @@ -33,7 +33,7 @@ long DescribeRouteTablesRequest::getResourceOwnerId()const void DescribeRouteTablesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRouteTablesRequest::getVRouterId()const @@ -44,7 +44,7 @@ std::string DescribeRouteTablesRequest::getVRouterId()const void DescribeRouteTablesRequest::setVRouterId(const std::string& vRouterId) { vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); + setCoreParameter("VRouterId", vRouterId); } std::string DescribeRouteTablesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeRouteTablesRequest::getResourceOwnerAccount()const void DescribeRouteTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRouteTablesRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeRouteTablesRequest::getOwnerAccount()const void DescribeRouteTablesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeRouteTablesRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeRouteTablesRequest::getOwnerId()const void DescribeRouteTablesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeRouteTablesRequest::getType()const @@ -88,7 +88,7 @@ std::string DescribeRouteTablesRequest::getType()const void DescribeRouteTablesRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setCoreParameter("Type", type); } int DescribeRouteTablesRequest::getPageNumber()const @@ -99,7 +99,7 @@ int DescribeRouteTablesRequest::getPageNumber()const void DescribeRouteTablesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeRouteTablesRequest::getRouterType()const @@ -110,7 +110,7 @@ std::string DescribeRouteTablesRequest::getRouterType()const void DescribeRouteTablesRequest::setRouterType(const std::string& routerType) { routerType_ = routerType; - setParameter("RouterType", routerType); + setCoreParameter("RouterType", routerType); } std::string DescribeRouteTablesRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string DescribeRouteTablesRequest::getResourceGroupId()const void DescribeRouteTablesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeRouteTablesRequest::getRouteTableName()const @@ -132,7 +132,7 @@ std::string DescribeRouteTablesRequest::getRouteTableName()const void DescribeRouteTablesRequest::setRouteTableName(const std::string& routeTableName) { routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); + setCoreParameter("RouteTableName", routeTableName); } std::string DescribeRouteTablesRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string DescribeRouteTablesRequest::getRegionId()const void DescribeRouteTablesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeRouteTablesRequest::getRouterId()const @@ -154,7 +154,7 @@ std::string DescribeRouteTablesRequest::getRouterId()const void DescribeRouteTablesRequest::setRouterId(const std::string& routerId) { routerId_ = routerId; - setParameter("RouterId", routerId); + setCoreParameter("RouterId", routerId); } int DescribeRouteTablesRequest::getPageSize()const @@ -165,7 +165,7 @@ int DescribeRouteTablesRequest::getPageSize()const void DescribeRouteTablesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeRouteTablesRequest::getRouteTableId()const @@ -176,6 +176,6 @@ std::string DescribeRouteTablesRequest::getRouteTableId()const void DescribeRouteTablesRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } diff --git a/vpc/src/model/DescribeRouteTablesResult.cc b/vpc/src/model/DescribeRouteTablesResult.cc index d162a160c..5b6638ede 100644 --- a/vpc/src/model/DescribeRouteTablesResult.cc +++ b/vpc/src/model/DescribeRouteTablesResult.cc @@ -35,10 +35,13 @@ DescribeRouteTablesResult::~DescribeRouteTablesResult() void DescribeRouteTablesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRouteTables = value["RouteTables"]["RouteTable"]; for (auto value : allRouteTables) @@ -54,6 +57,8 @@ void DescribeRouteTablesResult::parse(const std::string &payload) routeTablesObject.creationTime = value["CreationTime"].asString(); if(!value["ResourceGroupId"].isNull()) routeTablesObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["Status"].isNull()) + routeTablesObject.status = value["Status"].asString(); auto allRouteEntrys = value["RouteEntrys"]["RouteEntry"]; for (auto value : allRouteEntrys) { @@ -70,6 +75,10 @@ void DescribeRouteTablesResult::parse(const std::string &payload) routeEntrysObject.instanceId = value["InstanceId"].asString(); if(!value["NextHopType"].isNull()) routeEntrysObject.nextHopType = value["NextHopType"].asString(); + if(!value["RouteEntryName"].isNull()) + routeEntrysObject.routeEntryName = value["RouteEntryName"].asString(); + if(!value["RouteEntryId"].isNull()) + routeEntrysObject.routeEntryId = value["RouteEntryId"].asString(); if(!value["NextHopRegionId"].isNull()) routeEntrysObject.nextHopRegionId = value["NextHopRegionId"].asString(); if(!value["NextHopOppsiteType"].isNull()) diff --git a/vpc/src/model/DescribeRouterInterfacesRequest.cc b/vpc/src/model/DescribeRouterInterfacesRequest.cc index 7c2dccecc..d4915723d 100644 --- a/vpc/src/model/DescribeRouterInterfacesRequest.cc +++ b/vpc/src/model/DescribeRouterInterfacesRequest.cc @@ -37,8 +37,8 @@ void DescribeRouterInterfacesRequest::setFilter(const std::vector& filte for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribeRouterInterfacesRequest::getResourceOwnerId()const void DescribeRouterInterfacesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount()const @@ -61,7 +61,7 @@ std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount()const void DescribeRouterInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeRouterInterfacesRequest::getRegionId()const @@ -72,7 +72,7 @@ std::string DescribeRouterInterfacesRequest::getRegionId()const void DescribeRouterInterfacesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeRouterInterfacesRequest::getPageSize()const @@ -83,7 +83,7 @@ int DescribeRouterInterfacesRequest::getPageSize()const void DescribeRouterInterfacesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeRouterInterfacesRequest::getOwnerId()const @@ -94,7 +94,7 @@ long DescribeRouterInterfacesRequest::getOwnerId()const void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool DescribeRouterInterfacesRequest::getIncludeReservationData()const @@ -105,7 +105,7 @@ bool DescribeRouterInterfacesRequest::getIncludeReservationData()const void DescribeRouterInterfacesRequest::setIncludeReservationData(bool includeReservationData) { includeReservationData_ = includeReservationData; - setParameter("IncludeReservationData", std::to_string(includeReservationData)); + setCoreParameter("IncludeReservationData", includeReservationData ? "true" : "false"); } int DescribeRouterInterfacesRequest::getPageNumber()const @@ -116,6 +116,6 @@ int DescribeRouterInterfacesRequest::getPageNumber()const void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeRouterInterfacesResult.cc b/vpc/src/model/DescribeRouterInterfacesResult.cc index efef16299..0d824867e 100644 --- a/vpc/src/model/DescribeRouterInterfacesResult.cc +++ b/vpc/src/model/DescribeRouterInterfacesResult.cc @@ -35,10 +35,13 @@ DescribeRouterInterfacesResult::~DescribeRouterInterfacesResult() void DescribeRouterInterfacesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allRouterInterfaceSet = value["RouterInterfaceSet"]["RouterInterfaceType"]; for (auto value : allRouterInterfaceSet) diff --git a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc index c45945f56..7e25e6fc2 100644 --- a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc +++ b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesRequest.cc @@ -33,7 +33,7 @@ long DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerId void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerType()const @@ -44,7 +44,7 @@ std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerTy void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerType(const std::string& serverType) { serverType_ = serverType; - setParameter("ServerType", serverType); + setCoreParameter("ServerType", serverType); } std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getResource void DescribeServerRelatedGlobalAccelerationInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getRegionId void DescribeServerRelatedGlobalAccelerationInstancesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerAcc void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeServerRelatedGlobalAccelerationInstancesRequest::getOwnerId()const void DescribeServerRelatedGlobalAccelerationInstancesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerId()const @@ -99,6 +99,6 @@ std::string DescribeServerRelatedGlobalAccelerationInstancesRequest::getServerId void DescribeServerRelatedGlobalAccelerationInstancesRequest::setServerId(const std::string& serverId) { serverId_ = serverId; - setParameter("ServerId", serverId); + setCoreParameter("ServerId", serverId); } diff --git a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc index 307ce30a5..4c44005d6 100644 --- a/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc +++ b/vpc/src/model/DescribeServerRelatedGlobalAccelerationInstancesResult.cc @@ -35,10 +35,13 @@ DescribeServerRelatedGlobalAccelerationInstancesResult::~DescribeServerRelatedGl void DescribeServerRelatedGlobalAccelerationInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allGlobalAccelerationInstances = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"]; for (auto value : allGlobalAccelerationInstances) diff --git a/vpc/src/model/DescribeSnatTableEntriesRequest.cc b/vpc/src/model/DescribeSnatTableEntriesRequest.cc index a059890c2..cb6d5f4cb 100644 --- a/vpc/src/model/DescribeSnatTableEntriesRequest.cc +++ b/vpc/src/model/DescribeSnatTableEntriesRequest.cc @@ -33,7 +33,7 @@ long DescribeSnatTableEntriesRequest::getResourceOwnerId()const void DescribeSnatTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeSnatTableEntriesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeSnatTableEntriesRequest::getResourceOwnerAccount()const void DescribeSnatTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeSnatTableEntriesRequest::getOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeSnatTableEntriesRequest::getOwnerAccount()const void DescribeSnatTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeSnatTableEntriesRequest::getSourceCIDR()const @@ -66,7 +66,7 @@ std::string DescribeSnatTableEntriesRequest::getSourceCIDR()const void DescribeSnatTableEntriesRequest::setSourceCIDR(const std::string& sourceCIDR) { sourceCIDR_ = sourceCIDR; - setParameter("SourceCIDR", sourceCIDR); + setCoreParameter("SourceCIDR", sourceCIDR); } std::string DescribeSnatTableEntriesRequest::getSnatTableId()const @@ -77,7 +77,7 @@ std::string DescribeSnatTableEntriesRequest::getSnatTableId()const void DescribeSnatTableEntriesRequest::setSnatTableId(const std::string& snatTableId) { snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); + setCoreParameter("SnatTableId", snatTableId); } long DescribeSnatTableEntriesRequest::getOwnerId()const @@ -88,7 +88,7 @@ long DescribeSnatTableEntriesRequest::getOwnerId()const void DescribeSnatTableEntriesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeSnatTableEntriesRequest::getSnatIp()const @@ -99,7 +99,7 @@ std::string DescribeSnatTableEntriesRequest::getSnatIp()const void DescribeSnatTableEntriesRequest::setSnatIp(const std::string& snatIp) { snatIp_ = snatIp; - setParameter("SnatIp", snatIp); + setCoreParameter("SnatIp", snatIp); } int DescribeSnatTableEntriesRequest::getPageNumber()const @@ -110,7 +110,7 @@ int DescribeSnatTableEntriesRequest::getPageNumber()const void DescribeSnatTableEntriesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeSnatTableEntriesRequest::getSourceVSwitchId()const @@ -121,7 +121,7 @@ std::string DescribeSnatTableEntriesRequest::getSourceVSwitchId()const void DescribeSnatTableEntriesRequest::setSourceVSwitchId(const std::string& sourceVSwitchId) { sourceVSwitchId_ = sourceVSwitchId; - setParameter("SourceVSwitchId", sourceVSwitchId); + setCoreParameter("SourceVSwitchId", sourceVSwitchId); } std::string DescribeSnatTableEntriesRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string DescribeSnatTableEntriesRequest::getRegionId()const void DescribeSnatTableEntriesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeSnatTableEntriesRequest::getSnatEntryName()const @@ -143,7 +143,7 @@ std::string DescribeSnatTableEntriesRequest::getSnatEntryName()const void DescribeSnatTableEntriesRequest::setSnatEntryName(const std::string& snatEntryName) { snatEntryName_ = snatEntryName; - setParameter("SnatEntryName", snatEntryName); + setCoreParameter("SnatEntryName", snatEntryName); } int DescribeSnatTableEntriesRequest::getPageSize()const @@ -154,7 +154,7 @@ int DescribeSnatTableEntriesRequest::getPageSize()const void DescribeSnatTableEntriesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeSnatTableEntriesRequest::getSnatEntryId()const @@ -165,6 +165,6 @@ std::string DescribeSnatTableEntriesRequest::getSnatEntryId()const void DescribeSnatTableEntriesRequest::setSnatEntryId(const std::string& snatEntryId) { snatEntryId_ = snatEntryId; - setParameter("SnatEntryId", snatEntryId); + setCoreParameter("SnatEntryId", snatEntryId); } diff --git a/vpc/src/model/DescribeSnatTableEntriesResult.cc b/vpc/src/model/DescribeSnatTableEntriesResult.cc index b25baccfe..6f7194561 100644 --- a/vpc/src/model/DescribeSnatTableEntriesResult.cc +++ b/vpc/src/model/DescribeSnatTableEntriesResult.cc @@ -35,10 +35,13 @@ DescribeSnatTableEntriesResult::~DescribeSnatTableEntriesResult() void DescribeSnatTableEntriesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSnatTableEntries = value["SnatTableEntries"]["SnatTableEntry"]; for (auto value : allSnatTableEntries) diff --git a/vpc/src/model/DescribeSslVpnClientCertRequest.cc b/vpc/src/model/DescribeSslVpnClientCertRequest.cc index 0750f9101..e1d584483 100644 --- a/vpc/src/model/DescribeSslVpnClientCertRequest.cc +++ b/vpc/src/model/DescribeSslVpnClientCertRequest.cc @@ -33,7 +33,7 @@ long DescribeSslVpnClientCertRequest::getResourceOwnerId()const void DescribeSslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeSslVpnClientCertRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeSslVpnClientCertRequest::getResourceOwnerAccount()const void DescribeSslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeSslVpnClientCertRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeSslVpnClientCertRequest::getRegionId()const void DescribeSslVpnClientCertRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeSslVpnClientCertRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeSslVpnClientCertRequest::getOwnerAccount()const void DescribeSslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeSslVpnClientCertRequest::getOwnerId()const @@ -77,7 +77,7 @@ long DescribeSslVpnClientCertRequest::getOwnerId()const void DescribeSslVpnClientCertRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeSslVpnClientCertRequest::getSslVpnClientCertId()const @@ -88,6 +88,6 @@ std::string DescribeSslVpnClientCertRequest::getSslVpnClientCertId()const void DescribeSslVpnClientCertRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) { sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); + setCoreParameter("SslVpnClientCertId", sslVpnClientCertId); } diff --git a/vpc/src/model/DescribeSslVpnClientCertResult.cc b/vpc/src/model/DescribeSslVpnClientCertResult.cc index 9f23bb29a..b543ad921 100644 --- a/vpc/src/model/DescribeSslVpnClientCertResult.cc +++ b/vpc/src/model/DescribeSslVpnClientCertResult.cc @@ -35,10 +35,13 @@ DescribeSslVpnClientCertResult::~DescribeSslVpnClientCertResult() void DescribeSslVpnClientCertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/vpc/src/model/DescribeSslVpnClientCertsRequest.cc b/vpc/src/model/DescribeSslVpnClientCertsRequest.cc index 16c4f2e95..266304b44 100644 --- a/vpc/src/model/DescribeSslVpnClientCertsRequest.cc +++ b/vpc/src/model/DescribeSslVpnClientCertsRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSslVpnClientCertsRequest::getSslVpnServerId()const void DescribeSslVpnClientCertsRequest::setSslVpnServerId(const std::string& sslVpnServerId) { sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); + setCoreParameter("SslVpnServerId", sslVpnServerId); } long DescribeSslVpnClientCertsRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeSslVpnClientCertsRequest::getResourceOwnerId()const void DescribeSslVpnClientCertsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeSslVpnClientCertsRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeSslVpnClientCertsRequest::getResourceOwnerAccount()const void DescribeSslVpnClientCertsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeSslVpnClientCertsRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeSslVpnClientCertsRequest::getRegionId()const void DescribeSslVpnClientCertsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeSslVpnClientCertsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeSslVpnClientCertsRequest::getOwnerAccount()const void DescribeSslVpnClientCertsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeSslVpnClientCertsRequest::getName()const @@ -88,7 +88,7 @@ std::string DescribeSslVpnClientCertsRequest::getName()const void DescribeSslVpnClientCertsRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int DescribeSslVpnClientCertsRequest::getPageSize()const @@ -99,7 +99,7 @@ int DescribeSslVpnClientCertsRequest::getPageSize()const void DescribeSslVpnClientCertsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeSslVpnClientCertsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeSslVpnClientCertsRequest::getOwnerId()const void DescribeSslVpnClientCertsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeSslVpnClientCertsRequest::getSslVpnClientCertId()const @@ -121,7 +121,7 @@ std::string DescribeSslVpnClientCertsRequest::getSslVpnClientCertId()const void DescribeSslVpnClientCertsRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) { sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); + setCoreParameter("SslVpnClientCertId", sslVpnClientCertId); } int DescribeSslVpnClientCertsRequest::getPageNumber()const @@ -132,6 +132,6 @@ int DescribeSslVpnClientCertsRequest::getPageNumber()const void DescribeSslVpnClientCertsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeSslVpnClientCertsResult.cc b/vpc/src/model/DescribeSslVpnClientCertsResult.cc index 9dcca3404..1bb3525a6 100644 --- a/vpc/src/model/DescribeSslVpnClientCertsResult.cc +++ b/vpc/src/model/DescribeSslVpnClientCertsResult.cc @@ -35,10 +35,13 @@ DescribeSslVpnClientCertsResult::~DescribeSslVpnClientCertsResult() void DescribeSslVpnClientCertsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSslVpnClientCertKeys = value["SslVpnClientCertKeys"]["SslVpnClientCertKey"]; for (auto value : allSslVpnClientCertKeys) diff --git a/vpc/src/model/DescribeSslVpnServersRequest.cc b/vpc/src/model/DescribeSslVpnServersRequest.cc index 7a6261bbc..1802feddb 100644 --- a/vpc/src/model/DescribeSslVpnServersRequest.cc +++ b/vpc/src/model/DescribeSslVpnServersRequest.cc @@ -33,7 +33,7 @@ std::string DescribeSslVpnServersRequest::getSslVpnServerId()const void DescribeSslVpnServersRequest::setSslVpnServerId(const std::string& sslVpnServerId) { sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); + setCoreParameter("SslVpnServerId", sslVpnServerId); } long DescribeSslVpnServersRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeSslVpnServersRequest::getResourceOwnerId()const void DescribeSslVpnServersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeSslVpnServersRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeSslVpnServersRequest::getResourceOwnerAccount()const void DescribeSslVpnServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeSslVpnServersRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeSslVpnServersRequest::getRegionId()const void DescribeSslVpnServersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeSslVpnServersRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeSslVpnServersRequest::getOwnerAccount()const void DescribeSslVpnServersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeSslVpnServersRequest::getName()const @@ -88,7 +88,7 @@ std::string DescribeSslVpnServersRequest::getName()const void DescribeSslVpnServersRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } int DescribeSslVpnServersRequest::getPageSize()const @@ -99,7 +99,7 @@ int DescribeSslVpnServersRequest::getPageSize()const void DescribeSslVpnServersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeSslVpnServersRequest::getVpnGatewayId()const @@ -110,7 +110,7 @@ std::string DescribeSslVpnServersRequest::getVpnGatewayId()const void DescribeSslVpnServersRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long DescribeSslVpnServersRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeSslVpnServersRequest::getOwnerId()const void DescribeSslVpnServersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeSslVpnServersRequest::getPageNumber()const @@ -132,6 +132,6 @@ int DescribeSslVpnServersRequest::getPageNumber()const void DescribeSslVpnServersRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeSslVpnServersResult.cc b/vpc/src/model/DescribeSslVpnServersResult.cc index b55e6f429..7c2dba356 100644 --- a/vpc/src/model/DescribeSslVpnServersResult.cc +++ b/vpc/src/model/DescribeSslVpnServersResult.cc @@ -35,10 +35,13 @@ DescribeSslVpnServersResult::~DescribeSslVpnServersResult() void DescribeSslVpnServersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allSslVpnServers = value["SslVpnServers"]["SslVpnServer"]; for (auto value : allSslVpnServers) diff --git a/vpc/src/model/DescribeVRoutersRequest.cc b/vpc/src/model/DescribeVRoutersRequest.cc index b7de3f3a4..de07184f4 100644 --- a/vpc/src/model/DescribeVRoutersRequest.cc +++ b/vpc/src/model/DescribeVRoutersRequest.cc @@ -33,7 +33,7 @@ long DescribeVRoutersRequest::getResourceOwnerId()const void DescribeVRoutersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVRoutersRequest::getVRouterId()const @@ -44,7 +44,7 @@ std::string DescribeVRoutersRequest::getVRouterId()const void DescribeVRoutersRequest::setVRouterId(const std::string& vRouterId) { vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); + setCoreParameter("VRouterId", vRouterId); } std::string DescribeVRoutersRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeVRoutersRequest::getResourceOwnerAccount()const void DescribeVRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVRoutersRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeVRoutersRequest::getRegionId()const void DescribeVRoutersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVRoutersRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeVRoutersRequest::getOwnerAccount()const void DescribeVRoutersRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeVRoutersRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeVRoutersRequest::getPageSize()const void DescribeVRoutersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeVRoutersRequest::getOwnerId()const @@ -99,7 +99,7 @@ long DescribeVRoutersRequest::getOwnerId()const void DescribeVRoutersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeVRoutersRequest::getPageNumber()const @@ -110,6 +110,6 @@ int DescribeVRoutersRequest::getPageNumber()const void DescribeVRoutersRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeVRoutersResult.cc b/vpc/src/model/DescribeVRoutersResult.cc index 5d80c89ee..23a632caa 100644 --- a/vpc/src/model/DescribeVRoutersResult.cc +++ b/vpc/src/model/DescribeVRoutersResult.cc @@ -35,10 +35,13 @@ DescribeVRoutersResult::~DescribeVRoutersResult() void DescribeVRoutersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVRouters = value["VRouters"]["VRouter"]; for (auto value : allVRouters) diff --git a/vpc/src/model/DescribeVSwitchAttributesRequest.cc b/vpc/src/model/DescribeVSwitchAttributesRequest.cc index 6e10b2e3b..637e1a5d5 100644 --- a/vpc/src/model/DescribeVSwitchAttributesRequest.cc +++ b/vpc/src/model/DescribeVSwitchAttributesRequest.cc @@ -33,7 +33,7 @@ std::string DescribeVSwitchAttributesRequest::getVSwitchId()const void DescribeVSwitchAttributesRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } long DescribeVSwitchAttributesRequest::getResourceOwnerId()const @@ -44,7 +44,18 @@ long DescribeVSwitchAttributesRequest::getResourceOwnerId()const void DescribeVSwitchAttributesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool DescribeVSwitchAttributesRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeVSwitchAttributesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setCoreParameter("DryRun", dryRun ? "true" : "false"); } std::string DescribeVSwitchAttributesRequest::getResourceOwnerAccount()const @@ -55,7 +66,7 @@ std::string DescribeVSwitchAttributesRequest::getResourceOwnerAccount()const void DescribeVSwitchAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVSwitchAttributesRequest::getRegionId()const @@ -66,7 +77,7 @@ std::string DescribeVSwitchAttributesRequest::getRegionId()const void DescribeVSwitchAttributesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVSwitchAttributesRequest::getOwnerAccount()const @@ -77,7 +88,7 @@ std::string DescribeVSwitchAttributesRequest::getOwnerAccount()const void DescribeVSwitchAttributesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeVSwitchAttributesRequest::getOwnerId()const @@ -88,6 +99,6 @@ long DescribeVSwitchAttributesRequest::getOwnerId()const void DescribeVSwitchAttributesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVSwitchAttributesResult.cc b/vpc/src/model/DescribeVSwitchAttributesResult.cc index 28be68ee4..59ccb1330 100644 --- a/vpc/src/model/DescribeVSwitchAttributesResult.cc +++ b/vpc/src/model/DescribeVSwitchAttributesResult.cc @@ -35,10 +35,13 @@ DescribeVSwitchAttributesResult::~DescribeVSwitchAttributesResult() void DescribeVSwitchAttributesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allCloudResources = value["CloudResources"]["CloudResourceSetType"]; for (auto value : allCloudResources) @@ -79,6 +82,8 @@ void DescribeVSwitchAttributesResult::parse(const std::string &payload) isDefault_ = value["IsDefault"].asString() == "true"; if(!value["ResourceGroupId"].isNull()) resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["NetworkAclId"].isNull()) + networkAclId_ = value["NetworkAclId"].asString(); } @@ -107,6 +112,11 @@ std::string DescribeVSwitchAttributesResult::getResourceGroupId()const return resourceGroupId_; } +std::string DescribeVSwitchAttributesResult::getNetworkAclId()const +{ + return networkAclId_; +} + std::string DescribeVSwitchAttributesResult::getVSwitchId()const { return vSwitchId_; diff --git a/vpc/src/model/DescribeVSwitchesRequest.cc b/vpc/src/model/DescribeVSwitchesRequest.cc index 67513d69e..271c92155 100644 --- a/vpc/src/model/DescribeVSwitchesRequest.cc +++ b/vpc/src/model/DescribeVSwitchesRequest.cc @@ -33,7 +33,18 @@ long DescribeVSwitchesRequest::getResourceOwnerId()const void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool DescribeVSwitchesRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeVSwitchesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setCoreParameter("DryRun", dryRun ? "true" : "false"); } std::string DescribeVSwitchesRequest::getResourceOwnerAccount()const @@ -44,7 +55,7 @@ std::string DescribeVSwitchesRequest::getResourceOwnerAccount()const void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVSwitchesRequest::getOwnerAccount()const @@ -55,7 +66,7 @@ std::string DescribeVSwitchesRequest::getOwnerAccount()const void DescribeVSwitchesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeVSwitchesRequest::getOwnerId()const @@ -66,7 +77,7 @@ long DescribeVSwitchesRequest::getOwnerId()const void DescribeVSwitchesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeVSwitchesRequest::getPageNumber()const @@ -77,7 +88,7 @@ int DescribeVSwitchesRequest::getPageNumber()const void DescribeVSwitchesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeVSwitchesRequest::getVSwitchId()const @@ -88,7 +99,7 @@ std::string DescribeVSwitchesRequest::getVSwitchId()const void DescribeVSwitchesRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } std::string DescribeVSwitchesRequest::getResourceGroupId()const @@ -99,7 +110,7 @@ std::string DescribeVSwitchesRequest::getResourceGroupId()const void DescribeVSwitchesRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeVSwitchesRequest::getRegionId()const @@ -110,7 +121,7 @@ std::string DescribeVSwitchesRequest::getRegionId()const void DescribeVSwitchesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVSwitchesRequest::getVpcId()const @@ -121,7 +132,7 @@ std::string DescribeVSwitchesRequest::getVpcId()const void DescribeVSwitchesRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeVSwitchesRequest::getVSwitchName()const @@ -132,7 +143,7 @@ std::string DescribeVSwitchesRequest::getVSwitchName()const void DescribeVSwitchesRequest::setVSwitchName(const std::string& vSwitchName) { vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); + setCoreParameter("VSwitchName", vSwitchName); } int DescribeVSwitchesRequest::getPageSize()const @@ -143,7 +154,7 @@ int DescribeVSwitchesRequest::getPageSize()const void DescribeVSwitchesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeVSwitchesRequest::getZoneId()const @@ -154,7 +165,7 @@ std::string DescribeVSwitchesRequest::getZoneId()const void DescribeVSwitchesRequest::setZoneId(const std::string& zoneId) { zoneId_ = zoneId; - setParameter("ZoneId", zoneId); + setCoreParameter("ZoneId", zoneId); } std::vector DescribeVSwitchesRequest::getTag()const @@ -169,8 +180,8 @@ void DescribeVSwitchesRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -182,7 +193,7 @@ bool DescribeVSwitchesRequest::getIsDefault()const void DescribeVSwitchesRequest::setIsDefault(bool isDefault) { isDefault_ = isDefault; - setParameter("IsDefault", std::to_string(isDefault)); + setCoreParameter("IsDefault", isDefault ? "true" : "false"); } std::string DescribeVSwitchesRequest::getRouteTableId()const @@ -193,6 +204,6 @@ std::string DescribeVSwitchesRequest::getRouteTableId()const void DescribeVSwitchesRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } diff --git a/vpc/src/model/DescribeVSwitchesResult.cc b/vpc/src/model/DescribeVSwitchesResult.cc index a67f8320f..b79b931b6 100644 --- a/vpc/src/model/DescribeVSwitchesResult.cc +++ b/vpc/src/model/DescribeVSwitchesResult.cc @@ -35,10 +35,13 @@ DescribeVSwitchesResult::~DescribeVSwitchesResult() void DescribeVSwitchesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVSwitches = value["VSwitches"]["VSwitch"]; for (auto value : allVSwitches) @@ -68,6 +71,8 @@ void DescribeVSwitchesResult::parse(const std::string &payload) vSwitchesObject.isDefault = value["IsDefault"].asString() == "true"; if(!value["ResourceGroupId"].isNull()) vSwitchesObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["NetworkAclId"].isNull()) + vSwitchesObject.networkAclId = value["NetworkAclId"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { diff --git a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc index 860ecbfb1..7d30962fd 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -37,8 +37,8 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setFilter(const s for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerI void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerAccount()const @@ -61,7 +61,7 @@ std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourc void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionId()const @@ -72,7 +72,7 @@ std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionI void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysicalConnectionId()const @@ -83,7 +83,7 @@ std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysica void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize()const @@ -94,7 +94,7 @@ int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize()const void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId()const @@ -105,7 +105,7 @@ long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId()const void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber()const @@ -116,6 +116,6 @@ int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber()con void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc index d60298f90..b5a73957c 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc @@ -35,10 +35,13 @@ DescribeVirtualBorderRoutersForPhysicalConnectionResult::~DescribeVirtualBorderR void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVirtualBorderRouterForPhysicalConnectionSet = value["VirtualBorderRouterForPhysicalConnectionSet"]["VirtualBorderRouterForPhysicalConnectionType"]; for (auto value : allVirtualBorderRouterForPhysicalConnectionSet) @@ -48,6 +51,10 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::s virtualBorderRouterForPhysicalConnectionSetObject.vbrId = value["VbrId"].asString(); if(!value["VbrOwnerUid"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.vbrOwnerUid = std::stol(value["VbrOwnerUid"].asString()); + if(!value["EccId"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.eccId = value["EccId"].asString(); + if(!value["Type"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.type = value["Type"].asString(); if(!value["CreationTime"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.creationTime = value["CreationTime"].asString(); if(!value["ActivationTime"].isNull()) @@ -58,6 +65,8 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::s virtualBorderRouterForPhysicalConnectionSetObject.recoveryTime = value["RecoveryTime"].asString(); if(!value["VlanId"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.vlanId = std::stoi(value["VlanId"].asString()); + if(!value["Status"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.status = value["Status"].asString(); if(!value["CircuitCode"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.circuitCode = value["CircuitCode"].asString(); if(!value["LocalGatewayIp"].isNull()) diff --git a/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc index 794326ac3..b234e13ab 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc @@ -37,8 +37,8 @@ void DescribeVirtualBorderRoutersRequest::setFilter(const std::vector& f for(int i = 0; i!= filter.size(); i++) { auto obj = filter.at(i); std::string str ="Filter."+ std::to_string(i); - for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); - setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setCoreParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setCoreParameter(str + ".Key", obj.key); } } @@ -50,7 +50,7 @@ long DescribeVirtualBorderRoutersRequest::getResourceOwnerId()const void DescribeVirtualBorderRoutersRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount()const @@ -61,7 +61,7 @@ std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount()const void DescribeVirtualBorderRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVirtualBorderRoutersRequest::getRegionId()const @@ -72,7 +72,7 @@ std::string DescribeVirtualBorderRoutersRequest::getRegionId()const void DescribeVirtualBorderRoutersRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int DescribeVirtualBorderRoutersRequest::getPageSize()const @@ -83,7 +83,7 @@ int DescribeVirtualBorderRoutersRequest::getPageSize()const void DescribeVirtualBorderRoutersRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } long DescribeVirtualBorderRoutersRequest::getOwnerId()const @@ -94,7 +94,7 @@ long DescribeVirtualBorderRoutersRequest::getOwnerId()const void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeVirtualBorderRoutersRequest::getPageNumber()const @@ -105,6 +105,6 @@ int DescribeVirtualBorderRoutersRequest::getPageNumber()const void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc index cf7caee14..9ee505087 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc @@ -35,10 +35,13 @@ DescribeVirtualBorderRoutersResult::~DescribeVirtualBorderRoutersResult() void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVirtualBorderRouterSet = value["VirtualBorderRouterSet"]["VirtualBorderRouterType"]; for (auto value : allVirtualBorderRouterSet) @@ -84,6 +87,16 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) virtualBorderRouterSetObject.name = value["Name"].asString(); if(!value["Description"].isNull()) virtualBorderRouterSetObject.description = value["Description"].asString(); + if(!value["EccId"].isNull()) + virtualBorderRouterSetObject.eccId = value["EccId"].asString(); + if(!value["Type"].isNull()) + virtualBorderRouterSetObject.type = value["Type"].asString(); + if(!value["MinTxInterval"].isNull()) + virtualBorderRouterSetObject.minTxInterval = std::stol(value["MinTxInterval"].asString()); + if(!value["MinRxInterval"].isNull()) + virtualBorderRouterSetObject.minRxInterval = std::stol(value["MinRxInterval"].asString()); + if(!value["DetectMultiplier"].isNull()) + virtualBorderRouterSetObject.detectMultiplier = std::stol(value["DetectMultiplier"].asString()); auto allAssociatedPhysicalConnections = value["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"]; for (auto value : allAssociatedPhysicalConnections) { diff --git a/vpc/src/model/DescribeVpcAttributeRequest.cc b/vpc/src/model/DescribeVpcAttributeRequest.cc index 5c2cf4b2b..2ae596c29 100644 --- a/vpc/src/model/DescribeVpcAttributeRequest.cc +++ b/vpc/src/model/DescribeVpcAttributeRequest.cc @@ -33,7 +33,18 @@ long DescribeVpcAttributeRequest::getResourceOwnerId()const void DescribeVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool DescribeVpcAttributeRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeVpcAttributeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setCoreParameter("DryRun", dryRun ? "true" : "false"); } std::string DescribeVpcAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +55,7 @@ std::string DescribeVpcAttributeRequest::getResourceOwnerAccount()const void DescribeVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVpcAttributeRequest::getRegionId()const @@ -55,7 +66,7 @@ std::string DescribeVpcAttributeRequest::getRegionId()const void DescribeVpcAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVpcAttributeRequest::getVpcId()const @@ -66,7 +77,7 @@ std::string DescribeVpcAttributeRequest::getVpcId()const void DescribeVpcAttributeRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DescribeVpcAttributeRequest::getOwnerAccount()const @@ -77,7 +88,7 @@ std::string DescribeVpcAttributeRequest::getOwnerAccount()const void DescribeVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } bool DescribeVpcAttributeRequest::getIsDefault()const @@ -88,7 +99,7 @@ bool DescribeVpcAttributeRequest::getIsDefault()const void DescribeVpcAttributeRequest::setIsDefault(bool isDefault) { isDefault_ = isDefault; - setParameter("IsDefault", std::to_string(isDefault)); + setCoreParameter("IsDefault", isDefault ? "true" : "false"); } long DescribeVpcAttributeRequest::getOwnerId()const @@ -99,6 +110,6 @@ long DescribeVpcAttributeRequest::getOwnerId()const void DescribeVpcAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVpcAttributeResult.cc b/vpc/src/model/DescribeVpcAttributeResult.cc index e97ae9c91..661bcf813 100644 --- a/vpc/src/model/DescribeVpcAttributeResult.cc +++ b/vpc/src/model/DescribeVpcAttributeResult.cc @@ -35,10 +35,13 @@ DescribeVpcAttributeResult::~DescribeVpcAttributeResult() void DescribeVpcAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allAssociatedCens = value["AssociatedCens"]["AssociatedCen"]; for (auto value : allAssociatedCens) @@ -92,6 +95,8 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) classicLinkEnabled_ = value["ClassicLinkEnabled"].asString() == "true"; if(!value["ResourceGroupId"].isNull()) resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["NetworkAclNum"].isNull()) + networkAclNum_ = value["NetworkAclNum"].asString(); } @@ -135,6 +140,11 @@ std::vector DescribeVpcAttributeResult::getUserCidrs()const return userCidrs_; } +std::string DescribeVpcAttributeResult::getNetworkAclNum()const +{ + return networkAclNum_; +} + std::string DescribeVpcAttributeResult::getVRouterId()const { return vRouterId_; diff --git a/vpc/src/model/DescribeVpcsRequest.cc b/vpc/src/model/DescribeVpcsRequest.cc index fd5ca27d4..8531bd56a 100644 --- a/vpc/src/model/DescribeVpcsRequest.cc +++ b/vpc/src/model/DescribeVpcsRequest.cc @@ -33,7 +33,18 @@ long DescribeVpcsRequest::getResourceOwnerId()const void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool DescribeVpcsRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeVpcsRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setCoreParameter("DryRun", dryRun ? "true" : "false"); } std::string DescribeVpcsRequest::getResourceOwnerAccount()const @@ -44,7 +55,7 @@ std::string DescribeVpcsRequest::getResourceOwnerAccount()const void DescribeVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVpcsRequest::getOwnerAccount()const @@ -55,7 +66,7 @@ std::string DescribeVpcsRequest::getOwnerAccount()const void DescribeVpcsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeVpcsRequest::getOwnerId()const @@ -66,7 +77,7 @@ long DescribeVpcsRequest::getOwnerId()const void DescribeVpcsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeVpcsRequest::getPageNumber()const @@ -77,7 +88,7 @@ int DescribeVpcsRequest::getPageNumber()const void DescribeVpcsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeVpcsRequest::getVpcName()const @@ -88,7 +99,7 @@ std::string DescribeVpcsRequest::getVpcName()const void DescribeVpcsRequest::setVpcName(const std::string& vpcName) { vpcName_ = vpcName; - setParameter("VpcName", vpcName); + setCoreParameter("VpcName", vpcName); } std::string DescribeVpcsRequest::getResourceGroupId()const @@ -99,7 +110,7 @@ std::string DescribeVpcsRequest::getResourceGroupId()const void DescribeVpcsRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string DescribeVpcsRequest::getRegionId()const @@ -110,7 +121,7 @@ std::string DescribeVpcsRequest::getRegionId()const void DescribeVpcsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVpcsRequest::getVpcId()const @@ -121,7 +132,7 @@ std::string DescribeVpcsRequest::getVpcId()const void DescribeVpcsRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } int DescribeVpcsRequest::getPageSize()const @@ -132,7 +143,7 @@ int DescribeVpcsRequest::getPageSize()const void DescribeVpcsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::vector DescribeVpcsRequest::getTag()const @@ -147,8 +158,8 @@ void DescribeVpcsRequest::setTag(const std::vector& tag) for(int i = 0; i!= tag.size(); i++) { auto obj = tag.at(i); std::string str ="Tag."+ std::to_string(i); - setParameter(str + ".Value", obj.value); - setParameter(str + ".Key", obj.key); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); } } @@ -160,6 +171,6 @@ bool DescribeVpcsRequest::getIsDefault()const void DescribeVpcsRequest::setIsDefault(bool isDefault) { isDefault_ = isDefault; - setParameter("IsDefault", std::to_string(isDefault)); + setCoreParameter("IsDefault", isDefault ? "true" : "false"); } diff --git a/vpc/src/model/DescribeVpcsResult.cc b/vpc/src/model/DescribeVpcsResult.cc index 58f06b3fd..1a91f0c79 100644 --- a/vpc/src/model/DescribeVpcsResult.cc +++ b/vpc/src/model/DescribeVpcsResult.cc @@ -35,10 +35,13 @@ DescribeVpcsResult::~DescribeVpcsResult() void DescribeVpcsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVpcs = value["Vpcs"]["Vpc"]; for (auto value : allVpcs) @@ -64,8 +67,12 @@ void DescribeVpcsResult::parse(const std::string &payload) vpcsObject.description = value["Description"].asString(); if(!value["IsDefault"].isNull()) vpcsObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["NetworkAclNum"].isNull()) + vpcsObject.networkAclNum = value["NetworkAclNum"].asString(); if(!value["ResourceGroupId"].isNull()) vpcsObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["CenStatus"].isNull()) + vpcsObject.cenStatus = value["CenStatus"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { diff --git a/vpc/src/model/DescribeVpnConnectionRequest.cc b/vpc/src/model/DescribeVpnConnectionRequest.cc index 9839f29ae..a78f1331d 100644 --- a/vpc/src/model/DescribeVpnConnectionRequest.cc +++ b/vpc/src/model/DescribeVpnConnectionRequest.cc @@ -33,7 +33,7 @@ long DescribeVpnConnectionRequest::getResourceOwnerId()const void DescribeVpnConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVpnConnectionRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeVpnConnectionRequest::getResourceOwnerAccount()const void DescribeVpnConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVpnConnectionRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeVpnConnectionRequest::getRegionId()const void DescribeVpnConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVpnConnectionRequest::getVpnConnectionId()const @@ -66,7 +66,7 @@ std::string DescribeVpnConnectionRequest::getVpnConnectionId()const void DescribeVpnConnectionRequest::setVpnConnectionId(const std::string& vpnConnectionId) { vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); + setCoreParameter("VpnConnectionId", vpnConnectionId); } std::string DescribeVpnConnectionRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeVpnConnectionRequest::getOwnerAccount()const void DescribeVpnConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeVpnConnectionRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DescribeVpnConnectionRequest::getOwnerId()const void DescribeVpnConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVpnConnectionResult.cc b/vpc/src/model/DescribeVpnConnectionResult.cc index a9851a8cc..eaf2918eb 100644 --- a/vpc/src/model/DescribeVpnConnectionResult.cc +++ b/vpc/src/model/DescribeVpnConnectionResult.cc @@ -35,10 +35,13 @@ DescribeVpnConnectionResult::~DescribeVpnConnectionResult() void DescribeVpnConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["Psk"].isNull()) @@ -68,6 +71,19 @@ void DescribeVpnConnectionResult::parse(const std::string &payload) ipsecConfig_.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); if(!ipsecConfigNode["IpsecLifetime"].isNull()) ipsecConfig_.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + auto vcoHealthCheckNode = value["VcoHealthCheck"]; + if(!vcoHealthCheckNode["Enable"].isNull()) + vcoHealthCheck_.enable = vcoHealthCheckNode["Enable"].asString(); + if(!vcoHealthCheckNode["Sip"].isNull()) + vcoHealthCheck_.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Dip"].isNull()) + vcoHealthCheck_.dip = vcoHealthCheckNode["Dip"].asString(); + if(!vcoHealthCheckNode["Interval"].isNull()) + vcoHealthCheck_.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); + if(!vcoHealthCheckNode["Retry"].isNull()) + vcoHealthCheck_.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); + if(!vcoHealthCheckNode["Status"].isNull()) + vcoHealthCheck_.status = vcoHealthCheckNode["Status"].asString(); if(!value["VpnConnectionId"].isNull()) vpnConnectionId_ = value["VpnConnectionId"].asString(); if(!value["CustomerGatewayId"].isNull()) @@ -104,6 +120,11 @@ std::string DescribeVpnConnectionResult::getStatus()const return status_; } +DescribeVpnConnectionResult::VcoHealthCheck DescribeVpnConnectionResult::getVcoHealthCheck()const +{ + return vcoHealthCheck_; +} + std::string DescribeVpnConnectionResult::getRemoteSubnet()const { return remoteSubnet_; diff --git a/vpc/src/model/DescribeVpnConnectionsRequest.cc b/vpc/src/model/DescribeVpnConnectionsRequest.cc index ce0a0c00b..7e7c750a1 100644 --- a/vpc/src/model/DescribeVpnConnectionsRequest.cc +++ b/vpc/src/model/DescribeVpnConnectionsRequest.cc @@ -33,7 +33,7 @@ long DescribeVpnConnectionsRequest::getResourceOwnerId()const void DescribeVpnConnectionsRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVpnConnectionsRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeVpnConnectionsRequest::getResourceOwnerAccount()const void DescribeVpnConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVpnConnectionsRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeVpnConnectionsRequest::getRegionId()const void DescribeVpnConnectionsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVpnConnectionsRequest::getVpnConnectionId()const @@ -66,7 +66,7 @@ std::string DescribeVpnConnectionsRequest::getVpnConnectionId()const void DescribeVpnConnectionsRequest::setVpnConnectionId(const std::string& vpnConnectionId) { vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); + setCoreParameter("VpnConnectionId", vpnConnectionId); } std::string DescribeVpnConnectionsRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeVpnConnectionsRequest::getOwnerAccount()const void DescribeVpnConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } int DescribeVpnConnectionsRequest::getPageSize()const @@ -88,7 +88,7 @@ int DescribeVpnConnectionsRequest::getPageSize()const void DescribeVpnConnectionsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeVpnConnectionsRequest::getVpnGatewayId()const @@ -99,7 +99,7 @@ std::string DescribeVpnConnectionsRequest::getVpnGatewayId()const void DescribeVpnConnectionsRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long DescribeVpnConnectionsRequest::getOwnerId()const @@ -110,7 +110,7 @@ long DescribeVpnConnectionsRequest::getOwnerId()const void DescribeVpnConnectionsRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string DescribeVpnConnectionsRequest::getCustomerGatewayId()const @@ -121,7 +121,7 @@ std::string DescribeVpnConnectionsRequest::getCustomerGatewayId()const void DescribeVpnConnectionsRequest::setCustomerGatewayId(const std::string& customerGatewayId) { customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); + setCoreParameter("CustomerGatewayId", customerGatewayId); } int DescribeVpnConnectionsRequest::getPageNumber()const @@ -132,6 +132,6 @@ int DescribeVpnConnectionsRequest::getPageNumber()const void DescribeVpnConnectionsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } diff --git a/vpc/src/model/DescribeVpnConnectionsResult.cc b/vpc/src/model/DescribeVpnConnectionsResult.cc index ee0a53bb1..e1b383796 100644 --- a/vpc/src/model/DescribeVpnConnectionsResult.cc +++ b/vpc/src/model/DescribeVpnConnectionsResult.cc @@ -35,10 +35,13 @@ DescribeVpnConnectionsResult::~DescribeVpnConnectionsResult() void DescribeVpnConnectionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVpnConnections = value["VpnConnections"]["VpnConnection"]; for (auto value : allVpnConnections) @@ -90,6 +93,19 @@ void DescribeVpnConnectionsResult::parse(const std::string &payload) vpnConnectionsObject.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); if(!ipsecConfigNode["IpsecLifetime"].isNull()) vpnConnectionsObject.ipsecConfig.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + auto vcoHealthCheckNode = value["VcoHealthCheck"]; + if(!vcoHealthCheckNode["Enable"].isNull()) + vpnConnectionsObject.vcoHealthCheck.enable = vcoHealthCheckNode["Enable"].asString(); + if(!vcoHealthCheckNode["Sip"].isNull()) + vpnConnectionsObject.vcoHealthCheck.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Dip"].isNull()) + vpnConnectionsObject.vcoHealthCheck.dip = vcoHealthCheckNode["Dip"].asString(); + if(!vcoHealthCheckNode["Interval"].isNull()) + vpnConnectionsObject.vcoHealthCheck.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); + if(!vcoHealthCheckNode["Retry"].isNull()) + vpnConnectionsObject.vcoHealthCheck.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); + if(!vcoHealthCheckNode["Status"].isNull()) + vpnConnectionsObject.vcoHealthCheck.status = vcoHealthCheckNode["Status"].asString(); vpnConnections_.push_back(vpnConnectionsObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeVpnGatewayRequest.cc b/vpc/src/model/DescribeVpnGatewayRequest.cc index 4c82f01ec..6a4d3a359 100644 --- a/vpc/src/model/DescribeVpnGatewayRequest.cc +++ b/vpc/src/model/DescribeVpnGatewayRequest.cc @@ -33,7 +33,7 @@ long DescribeVpnGatewayRequest::getResourceOwnerId()const void DescribeVpnGatewayRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVpnGatewayRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeVpnGatewayRequest::getResourceOwnerAccount()const void DescribeVpnGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVpnGatewayRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeVpnGatewayRequest::getRegionId()const void DescribeVpnGatewayRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVpnGatewayRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeVpnGatewayRequest::getOwnerAccount()const void DescribeVpnGatewayRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeVpnGatewayRequest::getVpnGatewayId()const @@ -77,7 +77,7 @@ std::string DescribeVpnGatewayRequest::getVpnGatewayId()const void DescribeVpnGatewayRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long DescribeVpnGatewayRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DescribeVpnGatewayRequest::getOwnerId()const void DescribeVpnGatewayRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeVpnGatewayResult.cc b/vpc/src/model/DescribeVpnGatewayResult.cc index 82d164809..e5c5557e0 100644 --- a/vpc/src/model/DescribeVpnGatewayResult.cc +++ b/vpc/src/model/DescribeVpnGatewayResult.cc @@ -35,10 +35,13 @@ DescribeVpnGatewayResult::~DescribeVpnGatewayResult() void DescribeVpnGatewayResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VpnGatewayId"].isNull()) vpnGatewayId_ = value["VpnGatewayId"].asString(); @@ -70,6 +73,8 @@ void DescribeVpnGatewayResult::parse(const std::string &payload) sslVpn_ = value["SslVpn"].asString(); if(!value["SslMaxConnections"].isNull()) sslMaxConnections_ = std::stol(value["SslMaxConnections"].asString()); + if(!value["Tag"].isNull()) + tag_ = value["Tag"].asString(); } @@ -138,6 +143,11 @@ std::string DescribeVpnGatewayResult::getChargeType()const return chargeType_; } +std::string DescribeVpnGatewayResult::getTag()const +{ + return tag_; +} + std::string DescribeVpnGatewayResult::getSpec()const { return spec_; diff --git a/vpc/src/model/DescribeVpnGatewaysRequest.cc b/vpc/src/model/DescribeVpnGatewaysRequest.cc index ed48da982..09eab1d90 100644 --- a/vpc/src/model/DescribeVpnGatewaysRequest.cc +++ b/vpc/src/model/DescribeVpnGatewaysRequest.cc @@ -33,7 +33,7 @@ std::string DescribeVpnGatewaysRequest::getBusinessStatus()const void DescribeVpnGatewaysRequest::setBusinessStatus(const std::string& businessStatus) { businessStatus_ = businessStatus; - setParameter("BusinessStatus", businessStatus); + setCoreParameter("BusinessStatus", businessStatus); } long DescribeVpnGatewaysRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long DescribeVpnGatewaysRequest::getResourceOwnerId()const void DescribeVpnGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeVpnGatewaysRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string DescribeVpnGatewaysRequest::getResourceOwnerAccount()const void DescribeVpnGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeVpnGatewaysRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string DescribeVpnGatewaysRequest::getRegionId()const void DescribeVpnGatewaysRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeVpnGatewaysRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DescribeVpnGatewaysRequest::getOwnerAccount()const void DescribeVpnGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string DescribeVpnGatewaysRequest::getVpcId()const @@ -88,7 +88,7 @@ std::string DescribeVpnGatewaysRequest::getVpcId()const void DescribeVpnGatewaysRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } int DescribeVpnGatewaysRequest::getPageSize()const @@ -99,7 +99,7 @@ int DescribeVpnGatewaysRequest::getPageSize()const void DescribeVpnGatewaysRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeVpnGatewaysRequest::getVpnGatewayId()const @@ -110,7 +110,7 @@ std::string DescribeVpnGatewaysRequest::getVpnGatewayId()const void DescribeVpnGatewaysRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long DescribeVpnGatewaysRequest::getOwnerId()const @@ -121,7 +121,7 @@ long DescribeVpnGatewaysRequest::getOwnerId()const void DescribeVpnGatewaysRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int DescribeVpnGatewaysRequest::getPageNumber()const @@ -132,7 +132,7 @@ int DescribeVpnGatewaysRequest::getPageNumber()const void DescribeVpnGatewaysRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeVpnGatewaysRequest::getStatus()const @@ -143,6 +143,6 @@ std::string DescribeVpnGatewaysRequest::getStatus()const void DescribeVpnGatewaysRequest::setStatus(const std::string& status) { status_ = status; - setParameter("Status", status); + setCoreParameter("Status", status); } diff --git a/vpc/src/model/DescribeVpnGatewaysResult.cc b/vpc/src/model/DescribeVpnGatewaysResult.cc index 1fb86dc55..edb05a893 100644 --- a/vpc/src/model/DescribeVpnGatewaysResult.cc +++ b/vpc/src/model/DescribeVpnGatewaysResult.cc @@ -35,10 +35,13 @@ DescribeVpnGatewaysResult::~DescribeVpnGatewaysResult() void DescribeVpnGatewaysResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allVpnGateways = value["VpnGateways"]["VpnGateway"]; for (auto value : allVpnGateways) @@ -74,6 +77,8 @@ void DescribeVpnGatewaysResult::parse(const std::string &payload) vpnGatewaysObject.sslVpn = value["SslVpn"].asString(); if(!value["SslMaxConnections"].isNull()) vpnGatewaysObject.sslMaxConnections = std::stol(value["SslMaxConnections"].asString()); + if(!value["Tag"].isNull()) + vpnGatewaysObject.tag = value["Tag"].asString(); vpnGateways_.push_back(vpnGatewaysObject); } if(!value["TotalCount"].isNull()) diff --git a/vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc b/vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc new file mode 100644 index 000000000..356918d6f --- /dev/null +++ b/vpc/src/model/DescribeVpnPbrRouteEntriesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DescribeVpnPbrRouteEntriesRequest; + +DescribeVpnPbrRouteEntriesRequest::DescribeVpnPbrRouteEntriesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnPbrRouteEntries") +{} + +DescribeVpnPbrRouteEntriesRequest::~DescribeVpnPbrRouteEntriesRequest() +{} + +long DescribeVpnPbrRouteEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpnPbrRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnPbrRouteEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpnPbrRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpnPbrRouteEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpnPbrRouteEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeVpnPbrRouteEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpnPbrRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeVpnPbrRouteEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpnPbrRouteEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVpnPbrRouteEntriesRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DescribeVpnPbrRouteEntriesRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long DescribeVpnPbrRouteEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpnPbrRouteEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVpnPbrRouteEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpnPbrRouteEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc b/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc new file mode 100644 index 000000000..3c7f76adb --- /dev/null +++ b/vpc/src/model/DescribeVpnPbrRouteEntriesResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnPbrRouteEntriesResult::DescribeVpnPbrRouteEntriesResult() : + ServiceResult() +{} + +DescribeVpnPbrRouteEntriesResult::DescribeVpnPbrRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnPbrRouteEntriesResult::~DescribeVpnPbrRouteEntriesResult() +{} + +void DescribeVpnPbrRouteEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allVpnPbrRouteEntries = value["VpnPbrRouteEntries"]["VpnPbrRouteEntry"]; + for (auto value : allVpnPbrRouteEntries) + { + VpnPbrRouteEntry vpnPbrRouteEntriesObject; + if(!value["VpnInstanceId"].isNull()) + vpnPbrRouteEntriesObject.vpnInstanceId = value["VpnInstanceId"].asString(); + if(!value["RouteSource"].isNull()) + vpnPbrRouteEntriesObject.routeSource = value["RouteSource"].asString(); + if(!value["RouteDest"].isNull()) + vpnPbrRouteEntriesObject.routeDest = value["RouteDest"].asString(); + if(!value["NextHop"].isNull()) + vpnPbrRouteEntriesObject.nextHop = value["NextHop"].asString(); + if(!value["Weight"].isNull()) + vpnPbrRouteEntriesObject.weight = std::stoi(value["Weight"].asString()); + if(!value["CreateTime"].isNull()) + vpnPbrRouteEntriesObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["State"].isNull()) + vpnPbrRouteEntriesObject.state = value["State"].asString(); + vpnPbrRouteEntries_.push_back(vpnPbrRouteEntriesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVpnPbrRouteEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeVpnPbrRouteEntriesResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeVpnPbrRouteEntriesResult::getVpnPbrRouteEntries()const +{ + return vpnPbrRouteEntries_; +} + +int DescribeVpnPbrRouteEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/vpc/src/model/DescribeVpnRouteEntriesRequest.cc b/vpc/src/model/DescribeVpnRouteEntriesRequest.cc new file mode 100644 index 000000000..a9738ea20 --- /dev/null +++ b/vpc/src/model/DescribeVpnRouteEntriesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::DescribeVpnRouteEntriesRequest; + +DescribeVpnRouteEntriesRequest::DescribeVpnRouteEntriesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnRouteEntries") +{} + +DescribeVpnRouteEntriesRequest::~DescribeVpnRouteEntriesRequest() +{} + +long DescribeVpnRouteEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpnRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnRouteEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpnRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpnRouteEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpnRouteEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeVpnRouteEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpnRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeVpnRouteEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpnRouteEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVpnRouteEntriesRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void DescribeVpnRouteEntriesRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long DescribeVpnRouteEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpnRouteEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVpnRouteEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpnRouteEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVpnRouteEntriesResult.cc b/vpc/src/model/DescribeVpnRouteEntriesResult.cc new file mode 100644 index 000000000..8c96a1bc1 --- /dev/null +++ b/vpc/src/model/DescribeVpnRouteEntriesResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnRouteEntriesResult::DescribeVpnRouteEntriesResult() : + ServiceResult() +{} + +DescribeVpnRouteEntriesResult::DescribeVpnRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnRouteEntriesResult::~DescribeVpnRouteEntriesResult() +{} + +void DescribeVpnRouteEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allVpnRouteEntries = value["VpnRouteEntries"]["VpnRouteEntry"]; + for (auto value : allVpnRouteEntries) + { + VpnRouteEntry vpnRouteEntriesObject; + if(!value["VpnInstanceId"].isNull()) + vpnRouteEntriesObject.vpnInstanceId = value["VpnInstanceId"].asString(); + if(!value["RouteDest"].isNull()) + vpnRouteEntriesObject.routeDest = value["RouteDest"].asString(); + if(!value["NextHop"].isNull()) + vpnRouteEntriesObject.nextHop = value["NextHop"].asString(); + if(!value["Weight"].isNull()) + vpnRouteEntriesObject.weight = std::stoi(value["Weight"].asString()); + if(!value["CreateTime"].isNull()) + vpnRouteEntriesObject.createTime = std::stol(value["CreateTime"].asString()); + if(!value["State"].isNull()) + vpnRouteEntriesObject.state = value["State"].asString(); + vpnRouteEntries_.push_back(vpnRouteEntriesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVpnRouteEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeVpnRouteEntriesResult::getVpnRouteEntries()const +{ + return vpnRouteEntries_; +} + +int DescribeVpnRouteEntriesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVpnRouteEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/vpc/src/model/DescribeVpnSslServerLogsRequest.cc b/vpc/src/model/DescribeVpnSslServerLogsRequest.cc new file mode 100644 index 000000000..4c5099ea2 --- /dev/null +++ b/vpc/src/model/DescribeVpnSslServerLogsRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnSslServerLogsRequest; + +DescribeVpnSslServerLogsRequest::DescribeVpnSslServerLogsRequest() : + RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnSslServerLogs") +{} + +DescribeVpnSslServerLogsRequest::~DescribeVpnSslServerLogsRequest() +{} + +long DescribeVpnSslServerLogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpnSslServerLogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeVpnSslServerLogsRequest::getMinutePeriod()const +{ + return minutePeriod_; +} + +void DescribeVpnSslServerLogsRequest::setMinutePeriod(int minutePeriod) +{ + minutePeriod_ = minutePeriod; + setCoreParameter("MinutePeriod", std::to_string(minutePeriod)); +} + +std::string DescribeVpnSslServerLogsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpnSslServerLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpnSslServerLogsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpnSslServerLogsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeVpnSslServerLogsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpnSslServerLogsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeVpnSslServerLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpnSslServerLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVpnSslServerLogsRequest::getVpnSslServerId()const +{ + return vpnSslServerId_; +} + +void DescribeVpnSslServerLogsRequest::setVpnSslServerId(const std::string& vpnSslServerId) +{ + vpnSslServerId_ = vpnSslServerId; + setCoreParameter("VpnSslServerId", vpnSslServerId); +} + +int DescribeVpnSslServerLogsRequest::getFrom()const +{ + return from_; +} + +void DescribeVpnSslServerLogsRequest::setFrom(int from) +{ + from_ = from; + setCoreParameter("From", std::to_string(from)); +} + +int DescribeVpnSslServerLogsRequest::getTo()const +{ + return to_; +} + +void DescribeVpnSslServerLogsRequest::setTo(int to) +{ + to_ = to; + setCoreParameter("To", std::to_string(to)); +} + +long DescribeVpnSslServerLogsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpnSslServerLogsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVpnSslServerLogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpnSslServerLogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/vpc/src/model/DescribeVpnSslServerLogsResult.cc b/vpc/src/model/DescribeVpnSslServerLogsResult.cc new file mode 100644 index 000000000..ba0f74f93 --- /dev/null +++ b/vpc/src/model/DescribeVpnSslServerLogsResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnSslServerLogsResult::DescribeVpnSslServerLogsResult() : + ServiceResult() +{} + +DescribeVpnSslServerLogsResult::DescribeVpnSslServerLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnSslServerLogsResult::~DescribeVpnSslServerLogsResult() +{} + +void DescribeVpnSslServerLogsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Logs"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["IsCompleted"].isNull()) + isCompleted_ = value["IsCompleted"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVpnSslServerLogsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVpnSslServerLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +bool DescribeVpnSslServerLogsResult::getIsCompleted()const +{ + return isCompleted_; +} + +std::vector DescribeVpnSslServerLogsResult::getData()const +{ + return data_; +} + +int DescribeVpnSslServerLogsResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/DescribeZonesRequest.cc b/vpc/src/model/DescribeZonesRequest.cc index 9ae009f78..85e494779 100644 --- a/vpc/src/model/DescribeZonesRequest.cc +++ b/vpc/src/model/DescribeZonesRequest.cc @@ -33,7 +33,7 @@ long DescribeZonesRequest::getResourceOwnerId()const void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DescribeZonesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DescribeZonesRequest::getResourceOwnerAccount()const void DescribeZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DescribeZonesRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DescribeZonesRequest::getRegionId()const void DescribeZonesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DescribeZonesRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string DescribeZonesRequest::getOwnerAccount()const void DescribeZonesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DescribeZonesRequest::getOwnerId()const @@ -77,6 +77,6 @@ long DescribeZonesRequest::getOwnerId()const void DescribeZonesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DescribeZonesResult.cc b/vpc/src/model/DescribeZonesResult.cc index e9699f628..3753d2a52 100644 --- a/vpc/src/model/DescribeZonesResult.cc +++ b/vpc/src/model/DescribeZonesResult.cc @@ -35,10 +35,13 @@ DescribeZonesResult::~DescribeZonesResult() void DescribeZonesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allZones = value["Zones"]["Zone"]; for (auto value : allZones) diff --git a/vpc/src/model/DisableVpcClassicLinkRequest.cc b/vpc/src/model/DisableVpcClassicLinkRequest.cc index 4f4f41cbf..f1ef7008d 100644 --- a/vpc/src/model/DisableVpcClassicLinkRequest.cc +++ b/vpc/src/model/DisableVpcClassicLinkRequest.cc @@ -33,7 +33,7 @@ long DisableVpcClassicLinkRequest::getResourceOwnerId()const void DisableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DisableVpcClassicLinkRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DisableVpcClassicLinkRequest::getResourceOwnerAccount()const void DisableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DisableVpcClassicLinkRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DisableVpcClassicLinkRequest::getRegionId()const void DisableVpcClassicLinkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DisableVpcClassicLinkRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string DisableVpcClassicLinkRequest::getClientToken()const void DisableVpcClassicLinkRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string DisableVpcClassicLinkRequest::getVpcId()const @@ -77,7 +77,7 @@ std::string DisableVpcClassicLinkRequest::getVpcId()const void DisableVpcClassicLinkRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string DisableVpcClassicLinkRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string DisableVpcClassicLinkRequest::getOwnerAccount()const void DisableVpcClassicLinkRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DisableVpcClassicLinkRequest::getOwnerId()const @@ -99,6 +99,6 @@ long DisableVpcClassicLinkRequest::getOwnerId()const void DisableVpcClassicLinkRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DisableVpcClassicLinkResult.cc b/vpc/src/model/DisableVpcClassicLinkResult.cc index 16e6a3d06..672795c30 100644 --- a/vpc/src/model/DisableVpcClassicLinkResult.cc +++ b/vpc/src/model/DisableVpcClassicLinkResult.cc @@ -35,10 +35,13 @@ DisableVpcClassicLinkResult::~DisableVpcClassicLinkResult() void DisableVpcClassicLinkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/DownloadVpnConnectionConfigRequest.cc b/vpc/src/model/DownloadVpnConnectionConfigRequest.cc index 1c1d2fd5d..339df8a1c 100644 --- a/vpc/src/model/DownloadVpnConnectionConfigRequest.cc +++ b/vpc/src/model/DownloadVpnConnectionConfigRequest.cc @@ -33,7 +33,7 @@ long DownloadVpnConnectionConfigRequest::getResourceOwnerId()const void DownloadVpnConnectionConfigRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string DownloadVpnConnectionConfigRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string DownloadVpnConnectionConfigRequest::getResourceOwnerAccount()const void DownloadVpnConnectionConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string DownloadVpnConnectionConfigRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string DownloadVpnConnectionConfigRequest::getRegionId()const void DownloadVpnConnectionConfigRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string DownloadVpnConnectionConfigRequest::getVpnConnectionId()const @@ -66,7 +66,7 @@ std::string DownloadVpnConnectionConfigRequest::getVpnConnectionId()const void DownloadVpnConnectionConfigRequest::setVpnConnectionId(const std::string& vpnConnectionId) { vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); + setCoreParameter("VpnConnectionId", vpnConnectionId); } std::string DownloadVpnConnectionConfigRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string DownloadVpnConnectionConfigRequest::getOwnerAccount()const void DownloadVpnConnectionConfigRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long DownloadVpnConnectionConfigRequest::getOwnerId()const @@ -88,6 +88,6 @@ long DownloadVpnConnectionConfigRequest::getOwnerId()const void DownloadVpnConnectionConfigRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/DownloadVpnConnectionConfigResult.cc b/vpc/src/model/DownloadVpnConnectionConfigResult.cc index 994c33356..a3f97b0a5 100644 --- a/vpc/src/model/DownloadVpnConnectionConfigResult.cc +++ b/vpc/src/model/DownloadVpnConnectionConfigResult.cc @@ -35,10 +35,13 @@ DownloadVpnConnectionConfigResult::~DownloadVpnConnectionConfigResult() void DownloadVpnConnectionConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto vpnConnectionConfigNode = value["VpnConnectionConfig"]; if(!vpnConnectionConfigNode["LocalSubnet"].isNull()) diff --git a/vpc/src/model/EnablePhysicalConnectionRequest.cc b/vpc/src/model/EnablePhysicalConnectionRequest.cc index 4f9eafa15..1faf7c712 100644 --- a/vpc/src/model/EnablePhysicalConnectionRequest.cc +++ b/vpc/src/model/EnablePhysicalConnectionRequest.cc @@ -33,7 +33,7 @@ long EnablePhysicalConnectionRequest::getResourceOwnerId()const void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string EnablePhysicalConnectionRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string EnablePhysicalConnectionRequest::getRegionId()const void EnablePhysicalConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount()const void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string EnablePhysicalConnectionRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string EnablePhysicalConnectionRequest::getClientToken()const void EnablePhysicalConnectionRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId()const @@ -77,7 +77,7 @@ std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId()const void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string EnablePhysicalConnectionRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string EnablePhysicalConnectionRequest::getOwnerAccount()const void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long EnablePhysicalConnectionRequest::getOwnerId()const @@ -99,6 +99,6 @@ long EnablePhysicalConnectionRequest::getOwnerId()const void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/EnablePhysicalConnectionResult.cc b/vpc/src/model/EnablePhysicalConnectionResult.cc index 2029b88bd..63f07d4de 100644 --- a/vpc/src/model/EnablePhysicalConnectionResult.cc +++ b/vpc/src/model/EnablePhysicalConnectionResult.cc @@ -35,10 +35,13 @@ EnablePhysicalConnectionResult::~EnablePhysicalConnectionResult() void EnablePhysicalConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/EnableVpcClassicLinkRequest.cc b/vpc/src/model/EnableVpcClassicLinkRequest.cc index 179e174ab..18e175993 100644 --- a/vpc/src/model/EnableVpcClassicLinkRequest.cc +++ b/vpc/src/model/EnableVpcClassicLinkRequest.cc @@ -33,7 +33,7 @@ long EnableVpcClassicLinkRequest::getResourceOwnerId()const void EnableVpcClassicLinkRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string EnableVpcClassicLinkRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string EnableVpcClassicLinkRequest::getResourceOwnerAccount()const void EnableVpcClassicLinkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string EnableVpcClassicLinkRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string EnableVpcClassicLinkRequest::getRegionId()const void EnableVpcClassicLinkRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string EnableVpcClassicLinkRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string EnableVpcClassicLinkRequest::getClientToken()const void EnableVpcClassicLinkRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string EnableVpcClassicLinkRequest::getVpcId()const @@ -77,7 +77,7 @@ std::string EnableVpcClassicLinkRequest::getVpcId()const void EnableVpcClassicLinkRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string EnableVpcClassicLinkRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string EnableVpcClassicLinkRequest::getOwnerAccount()const void EnableVpcClassicLinkRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long EnableVpcClassicLinkRequest::getOwnerId()const @@ -99,6 +99,6 @@ long EnableVpcClassicLinkRequest::getOwnerId()const void EnableVpcClassicLinkRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/EnableVpcClassicLinkResult.cc b/vpc/src/model/EnableVpcClassicLinkResult.cc index 80ef3717f..62146a1df 100644 --- a/vpc/src/model/EnableVpcClassicLinkResult.cc +++ b/vpc/src/model/EnableVpcClassicLinkResult.cc @@ -35,10 +35,13 @@ EnableVpcClassicLinkResult::~EnableVpcClassicLinkResult() void EnableVpcClassicLinkResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/GrantInstanceToCenRequest.cc b/vpc/src/model/GrantInstanceToCenRequest.cc index 21db1611a..f89f5b3ef 100644 --- a/vpc/src/model/GrantInstanceToCenRequest.cc +++ b/vpc/src/model/GrantInstanceToCenRequest.cc @@ -33,7 +33,7 @@ long GrantInstanceToCenRequest::getResourceOwnerId()const void GrantInstanceToCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string GrantInstanceToCenRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string GrantInstanceToCenRequest::getInstanceId()const void GrantInstanceToCenRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string GrantInstanceToCenRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string GrantInstanceToCenRequest::getResourceOwnerAccount()const void GrantInstanceToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string GrantInstanceToCenRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string GrantInstanceToCenRequest::getRegionId()const void GrantInstanceToCenRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string GrantInstanceToCenRequest::getCenId()const @@ -77,7 +77,7 @@ std::string GrantInstanceToCenRequest::getCenId()const void GrantInstanceToCenRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string GrantInstanceToCenRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string GrantInstanceToCenRequest::getClientToken()const void GrantInstanceToCenRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string GrantInstanceToCenRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string GrantInstanceToCenRequest::getOwnerAccount()const void GrantInstanceToCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string GrantInstanceToCenRequest::getInstanceType()const @@ -110,7 +110,7 @@ std::string GrantInstanceToCenRequest::getInstanceType()const void GrantInstanceToCenRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } long GrantInstanceToCenRequest::getCenOwnerId()const @@ -121,7 +121,7 @@ long GrantInstanceToCenRequest::getCenOwnerId()const void GrantInstanceToCenRequest::setCenOwnerId(long cenOwnerId) { cenOwnerId_ = cenOwnerId; - setParameter("CenOwnerId", std::to_string(cenOwnerId)); + setCoreParameter("CenOwnerId", std::to_string(cenOwnerId)); } long GrantInstanceToCenRequest::getOwnerId()const @@ -132,6 +132,6 @@ long GrantInstanceToCenRequest::getOwnerId()const void GrantInstanceToCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/GrantInstanceToCenResult.cc b/vpc/src/model/GrantInstanceToCenResult.cc index ab191b54e..10e15ec0e 100644 --- a/vpc/src/model/GrantInstanceToCenResult.cc +++ b/vpc/src/model/GrantInstanceToCenResult.cc @@ -35,10 +35,13 @@ GrantInstanceToCenResult::~GrantInstanceToCenResult() void GrantInstanceToCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ListTagResourcesRequest.cc b/vpc/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..2061bc3be --- /dev/null +++ b/vpc/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ListTagResources") +{} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/vpc/src/model/ListTagResourcesResult.cc b/vpc/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..146b6b3d1 --- /dev/null +++ b/vpc/src/model/ListTagResourcesResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allTagResources = value["TagResources"]["TagResource"]; + for (auto value : allTagResources) + { + TagResource tagResourcesObject; + if(!value["TagKey"].isNull()) + tagResourcesObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagResourcesObject.tagValue = value["TagValue"].asString(); + if(!value["ResourcId"].isNull()) + tagResourcesObject.resourcId = value["ResourcId"].asString(); + if(!value["ResourceType"].isNull()) + tagResourcesObject.resourceType = value["ResourceType"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc b/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc index e0a850c09..f1a1335ed 100644 --- a/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc +++ b/vpc/src/model/ModifyBandwidthPackageAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyBandwidthPackageAttributeRequest::getResourceOwnerId()const void ModifyBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyBandwidthPackageAttributeRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string ModifyBandwidthPackageAttributeRequest::getBandwidthPackageId()const void ModifyBandwidthPackageAttributeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string ModifyBandwidthPackageAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyBandwidthPackageAttributeRequest::getResourceOwnerAccount()con void ModifyBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyBandwidthPackageAttributeRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyBandwidthPackageAttributeRequest::getRegionId()const void ModifyBandwidthPackageAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyBandwidthPackageAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyBandwidthPackageAttributeRequest::getOwnerAccount()const void ModifyBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyBandwidthPackageAttributeRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyBandwidthPackageAttributeRequest::getName()const void ModifyBandwidthPackageAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyBandwidthPackageAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyBandwidthPackageAttributeRequest::getDescription()const void ModifyBandwidthPackageAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyBandwidthPackageAttributeRequest::getOwnerId()const @@ -110,6 +110,6 @@ long ModifyBandwidthPackageAttributeRequest::getOwnerId()const void ModifyBandwidthPackageAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc b/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc index 28cfb0a44..001f0f96a 100644 --- a/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc +++ b/vpc/src/model/ModifyBandwidthPackageAttributeResult.cc @@ -35,10 +35,13 @@ ModifyBandwidthPackageAttributeResult::~ModifyBandwidthPackageAttributeResult() void ModifyBandwidthPackageAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc b/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc index 0150dd12e..68164df9d 100644 --- a/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc +++ b/vpc/src/model/ModifyBandwidthPackageSpecRequest.cc @@ -33,7 +33,7 @@ long ModifyBandwidthPackageSpecRequest::getResourceOwnerId()const void ModifyBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyBandwidthPackageSpecRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string ModifyBandwidthPackageSpecRequest::getBandwidthPackageId()const void ModifyBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string ModifyBandwidthPackageSpecRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyBandwidthPackageSpecRequest::getResourceOwnerAccount()const void ModifyBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyBandwidthPackageSpecRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyBandwidthPackageSpecRequest::getRegionId()const void ModifyBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyBandwidthPackageSpecRequest::getBandwidth()const @@ -77,7 +77,7 @@ std::string ModifyBandwidthPackageSpecRequest::getBandwidth()const void ModifyBandwidthPackageSpecRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string ModifyBandwidthPackageSpecRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string ModifyBandwidthPackageSpecRequest::getOwnerAccount()const void ModifyBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyBandwidthPackageSpecRequest::getOwnerId()const @@ -99,6 +99,6 @@ long ModifyBandwidthPackageSpecRequest::getOwnerId()const void ModifyBandwidthPackageSpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyBandwidthPackageSpecResult.cc b/vpc/src/model/ModifyBandwidthPackageSpecResult.cc index 7eef64c54..5980eee5b 100644 --- a/vpc/src/model/ModifyBandwidthPackageSpecResult.cc +++ b/vpc/src/model/ModifyBandwidthPackageSpecResult.cc @@ -35,10 +35,13 @@ ModifyBandwidthPackageSpecResult::~ModifyBandwidthPackageSpecResult() void ModifyBandwidthPackageSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyBgpGroupAttributeRequest.cc b/vpc/src/model/ModifyBgpGroupAttributeRequest.cc index 8e8d65845..8dbd72418 100644 --- a/vpc/src/model/ModifyBgpGroupAttributeRequest.cc +++ b/vpc/src/model/ModifyBgpGroupAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyBgpGroupAttributeRequest::getAuthKey()const void ModifyBgpGroupAttributeRequest::setAuthKey(const std::string& authKey) { authKey_ = authKey; - setParameter("AuthKey", authKey); + setCoreParameter("AuthKey", authKey); } long ModifyBgpGroupAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyBgpGroupAttributeRequest::getResourceOwnerId()const void ModifyBgpGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyBgpGroupAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyBgpGroupAttributeRequest::getResourceOwnerAccount()const void ModifyBgpGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyBgpGroupAttributeRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string ModifyBgpGroupAttributeRequest::getClientToken()const void ModifyBgpGroupAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyBgpGroupAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyBgpGroupAttributeRequest::getOwnerAccount()const void ModifyBgpGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyBgpGroupAttributeRequest::getBgpGroupId()const @@ -88,7 +88,7 @@ std::string ModifyBgpGroupAttributeRequest::getBgpGroupId()const void ModifyBgpGroupAttributeRequest::setBgpGroupId(const std::string& bgpGroupId) { bgpGroupId_ = bgpGroupId; - setParameter("BgpGroupId", bgpGroupId); + setCoreParameter("BgpGroupId", bgpGroupId); } std::string ModifyBgpGroupAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyBgpGroupAttributeRequest::getDescription()const void ModifyBgpGroupAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyBgpGroupAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifyBgpGroupAttributeRequest::getOwnerId()const void ModifyBgpGroupAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } long ModifyBgpGroupAttributeRequest::getPeerAsn()const @@ -121,7 +121,7 @@ long ModifyBgpGroupAttributeRequest::getPeerAsn()const void ModifyBgpGroupAttributeRequest::setPeerAsn(long peerAsn) { peerAsn_ = peerAsn; - setParameter("PeerAsn", std::to_string(peerAsn)); + setCoreParameter("PeerAsn", std::to_string(peerAsn)); } bool ModifyBgpGroupAttributeRequest::getIsFakeAsn()const @@ -132,7 +132,7 @@ bool ModifyBgpGroupAttributeRequest::getIsFakeAsn()const void ModifyBgpGroupAttributeRequest::setIsFakeAsn(bool isFakeAsn) { isFakeAsn_ = isFakeAsn; - setParameter("IsFakeAsn", std::to_string(isFakeAsn)); + setCoreParameter("IsFakeAsn", isFakeAsn ? "true" : "false"); } std::string ModifyBgpGroupAttributeRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string ModifyBgpGroupAttributeRequest::getRegionId()const void ModifyBgpGroupAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyBgpGroupAttributeRequest::getName()const @@ -154,6 +154,6 @@ std::string ModifyBgpGroupAttributeRequest::getName()const void ModifyBgpGroupAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/ModifyBgpGroupAttributeResult.cc b/vpc/src/model/ModifyBgpGroupAttributeResult.cc index d7ced9689..5c7f16095 100644 --- a/vpc/src/model/ModifyBgpGroupAttributeResult.cc +++ b/vpc/src/model/ModifyBgpGroupAttributeResult.cc @@ -35,10 +35,13 @@ ModifyBgpGroupAttributeResult::~ModifyBgpGroupAttributeResult() void ModifyBgpGroupAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyBgpPeerAttributeRequest.cc b/vpc/src/model/ModifyBgpPeerAttributeRequest.cc new file mode 100644 index 000000000..6b5d6d899 --- /dev/null +++ b/vpc/src/model/ModifyBgpPeerAttributeRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::ModifyBgpPeerAttributeRequest; + +ModifyBgpPeerAttributeRequest::ModifyBgpPeerAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyBgpPeerAttribute") +{} + +ModifyBgpPeerAttributeRequest::~ModifyBgpPeerAttributeRequest() +{} + +long ModifyBgpPeerAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBgpPeerAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool ModifyBgpPeerAttributeRequest::getEnableBfd()const +{ + return enableBfd_; +} + +void ModifyBgpPeerAttributeRequest::setEnableBfd(bool enableBfd) +{ + enableBfd_ = enableBfd; + setCoreParameter("EnableBfd", enableBfd ? "true" : "false"); +} + +std::string ModifyBgpPeerAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyBgpPeerAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyBgpPeerAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyBgpPeerAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyBgpPeerAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyBgpPeerAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ModifyBgpPeerAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyBgpPeerAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyBgpPeerAttributeRequest::getBgpGroupId()const +{ + return bgpGroupId_; +} + +void ModifyBgpPeerAttributeRequest::setBgpGroupId(const std::string& bgpGroupId) +{ + bgpGroupId_ = bgpGroupId; + setCoreParameter("BgpGroupId", bgpGroupId); +} + +std::string ModifyBgpPeerAttributeRequest::getBgpPeerId()const +{ + return bgpPeerId_; +} + +void ModifyBgpPeerAttributeRequest::setBgpPeerId(const std::string& bgpPeerId) +{ + bgpPeerId_ = bgpPeerId; + setCoreParameter("BgpPeerId", bgpPeerId); +} + +long ModifyBgpPeerAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyBgpPeerAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyBgpPeerAttributeRequest::getPeerIpAddress()const +{ + return peerIpAddress_; +} + +void ModifyBgpPeerAttributeRequest::setPeerIpAddress(const std::string& peerIpAddress) +{ + peerIpAddress_ = peerIpAddress; + setCoreParameter("PeerIpAddress", peerIpAddress); +} + diff --git a/vpc/src/model/ModifyBgpPeerAttributeResult.cc b/vpc/src/model/ModifyBgpPeerAttributeResult.cc new file mode 100644 index 000000000..87858b78f --- /dev/null +++ b/vpc/src/model/ModifyBgpPeerAttributeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyBgpPeerAttributeResult::ModifyBgpPeerAttributeResult() : + ServiceResult() +{} + +ModifyBgpPeerAttributeResult::ModifyBgpPeerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBgpPeerAttributeResult::~ModifyBgpPeerAttributeResult() +{} + +void ModifyBgpPeerAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc index e40f7a879..2c304f344 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackageAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerId()const void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCommonBandwidthPackageAttributeRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string ModifyCommonBandwidthPackageAttributeRequest::getBandwidthPackageId( void ModifyCommonBandwidthPackageAttributeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyCommonBandwidthPackageAttributeRequest::getResourceOwnerAccoun void ModifyCommonBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyCommonBandwidthPackageAttributeRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyCommonBandwidthPackageAttributeRequest::getRegionId()const void ModifyCommonBandwidthPackageAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyCommonBandwidthPackageAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyCommonBandwidthPackageAttributeRequest::getOwnerAccount()const void ModifyCommonBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyCommonBandwidthPackageAttributeRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyCommonBandwidthPackageAttributeRequest::getName()const void ModifyCommonBandwidthPackageAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyCommonBandwidthPackageAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyCommonBandwidthPackageAttributeRequest::getDescription()const void ModifyCommonBandwidthPackageAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyCommonBandwidthPackageAttributeRequest::getOwnerId()const @@ -110,6 +110,6 @@ long ModifyCommonBandwidthPackageAttributeRequest::getOwnerId()const void ModifyCommonBandwidthPackageAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyCommonBandwidthPackageAttributeResult.cc b/vpc/src/model/ModifyCommonBandwidthPackageAttributeResult.cc index 4e106d57b..4cf36cfa5 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageAttributeResult.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackageAttributeResult.cc @@ -35,10 +35,13 @@ ModifyCommonBandwidthPackageAttributeResult::~ModifyCommonBandwidthPackageAttrib void ModifyCommonBandwidthPackageAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc new file mode 100644 index 000000000..8bccfd167 --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::ModifyCommonBandwidthPackageIpBandwidthRequest; + +ModifyCommonBandwidthPackageIpBandwidthRequest::ModifyCommonBandwidthPackageIpBandwidthRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyCommonBandwidthPackageIpBandwidth") +{} + +ModifyCommonBandwidthPackageIpBandwidthRequest::~ModifyCommonBandwidthPackageIpBandwidthRequest() +{} + +long ModifyCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setCoreParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setCoreParameter("Bandwidth", bandwidth); +} + +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyCommonBandwidthPackageIpBandwidthRequest::getEipId()const +{ + return eipId_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setEipId(const std::string& eipId) +{ + eipId_ = eipId; + setCoreParameter("EipId", eipId); +} + +long ModifyCommonBandwidthPackageIpBandwidthRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCommonBandwidthPackageIpBandwidthRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthResult.cc b/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthResult.cc new file mode 100644 index 000000000..ac76f1ede --- /dev/null +++ b/vpc/src/model/ModifyCommonBandwidthPackageIpBandwidthResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyCommonBandwidthPackageIpBandwidthResult::ModifyCommonBandwidthPackageIpBandwidthResult() : + ServiceResult() +{} + +ModifyCommonBandwidthPackageIpBandwidthResult::ModifyCommonBandwidthPackageIpBandwidthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCommonBandwidthPackageIpBandwidthResult::~ModifyCommonBandwidthPackageIpBandwidthResult() +{} + +void ModifyCommonBandwidthPackageIpBandwidthResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc index 691337f91..93d9b7988 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeRequest.cc @@ -33,7 +33,7 @@ long ModifyCommonBandwidthPackagePayTypeRequest::getResourceOwnerId()const void ModifyCommonBandwidthPackagePayTypeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidthPackageId()c void ModifyCommonBandwidthPackagePayTypeRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } bool ModifyCommonBandwidthPackagePayTypeRequest::getAutoPay()const @@ -55,7 +55,7 @@ bool ModifyCommonBandwidthPackagePayTypeRequest::getAutoPay()const void ModifyCommonBandwidthPackagePayTypeRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceOwnerAccount( void ModifyCommonBandwidthPackagePayTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidth()const @@ -77,7 +77,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getBandwidth()const void ModifyCommonBandwidthPackagePayTypeRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getOwnerAccount()const void ModifyCommonBandwidthPackagePayTypeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyCommonBandwidthPackagePayTypeRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifyCommonBandwidthPackagePayTypeRequest::getOwnerId()const void ModifyCommonBandwidthPackagePayTypeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int ModifyCommonBandwidthPackagePayTypeRequest::getDuration()const @@ -110,7 +110,7 @@ int ModifyCommonBandwidthPackagePayTypeRequest::getDuration()const void ModifyCommonBandwidthPackagePayTypeRequest::setDuration(int duration) { duration_ = duration; - setParameter("Duration", std::to_string(duration)); + setCoreParameter("Duration", std::to_string(duration)); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getKbpsBandwidth()const @@ -121,7 +121,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getKbpsBandwidth()const void ModifyCommonBandwidthPackagePayTypeRequest::setKbpsBandwidth(const std::string& kbpsBandwidth) { kbpsBandwidth_ = kbpsBandwidth; - setParameter("KbpsBandwidth", kbpsBandwidth); + setCoreParameter("KbpsBandwidth", kbpsBandwidth); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getRegionId()const void ModifyCommonBandwidthPackagePayTypeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long ModifyCommonBandwidthPackagePayTypeRequest::getResourceUid()const @@ -143,7 +143,7 @@ long ModifyCommonBandwidthPackagePayTypeRequest::getResourceUid()const void ModifyCommonBandwidthPackagePayTypeRequest::setResourceUid(long resourceUid) { resourceUid_ = resourceUid; - setParameter("ResourceUid", std::to_string(resourceUid)); + setCoreParameter("ResourceUid", std::to_string(resourceUid)); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceBid()const @@ -154,7 +154,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getResourceBid()const void ModifyCommonBandwidthPackagePayTypeRequest::setResourceBid(const std::string& resourceBid) { resourceBid_ = resourceBid; - setParameter("ResourceBid", resourceBid); + setCoreParameter("ResourceBid", resourceBid); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getPayType()const @@ -165,7 +165,7 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getPayType()const void ModifyCommonBandwidthPackagePayTypeRequest::setPayType(const std::string& payType) { payType_ = payType; - setParameter("PayType", payType); + setCoreParameter("PayType", payType); } std::string ModifyCommonBandwidthPackagePayTypeRequest::getPricingCycle()const @@ -176,6 +176,6 @@ std::string ModifyCommonBandwidthPackagePayTypeRequest::getPricingCycle()const void ModifyCommonBandwidthPackagePayTypeRequest::setPricingCycle(const std::string& pricingCycle) { pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); + setCoreParameter("PricingCycle", pricingCycle); } diff --git a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc index d31899112..b64fd2623 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackagePayTypeResult.cc @@ -35,10 +35,13 @@ ModifyCommonBandwidthPackagePayTypeResult::~ModifyCommonBandwidthPackagePayTypeR void ModifyCommonBandwidthPackagePayTypeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); diff --git a/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc b/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc index 91e9403d7..257cb4d7e 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackageSpecRequest.cc @@ -33,7 +33,7 @@ long ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerId()const void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidthPackageId()cons void ModifyCommonBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyCommonBandwidthPackageSpecRequest::getResourceOwnerAccount()co void ModifyCommonBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyCommonBandwidthPackageSpecRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyCommonBandwidthPackageSpecRequest::getRegionId()const void ModifyCommonBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidth()const @@ -77,7 +77,7 @@ std::string ModifyCommonBandwidthPackageSpecRequest::getBandwidth()const void ModifyCommonBandwidthPackageSpecRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string ModifyCommonBandwidthPackageSpecRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string ModifyCommonBandwidthPackageSpecRequest::getOwnerAccount()const void ModifyCommonBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyCommonBandwidthPackageSpecRequest::getOwnerId()const @@ -99,6 +99,6 @@ long ModifyCommonBandwidthPackageSpecRequest::getOwnerId()const void ModifyCommonBandwidthPackageSpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyCommonBandwidthPackageSpecResult.cc b/vpc/src/model/ModifyCommonBandwidthPackageSpecResult.cc index 3dbe72d4a..5eaa72e76 100644 --- a/vpc/src/model/ModifyCommonBandwidthPackageSpecResult.cc +++ b/vpc/src/model/ModifyCommonBandwidthPackageSpecResult.cc @@ -35,10 +35,13 @@ ModifyCommonBandwidthPackageSpecResult::~ModifyCommonBandwidthPackageSpecResult( void ModifyCommonBandwidthPackageSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc b/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc index f74407c72..46f1abb8d 100644 --- a/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyCustomerGatewayAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyCustomerGatewayAttributeRequest::getResourceOwnerId()const void ModifyCustomerGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyCustomerGatewayAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyCustomerGatewayAttributeRequest::getResourceOwnerAccount()cons void ModifyCustomerGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyCustomerGatewayAttributeRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyCustomerGatewayAttributeRequest::getRegionId()const void ModifyCustomerGatewayAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyCustomerGatewayAttributeRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string ModifyCustomerGatewayAttributeRequest::getClientToken()const void ModifyCustomerGatewayAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyCustomerGatewayAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyCustomerGatewayAttributeRequest::getOwnerAccount()const void ModifyCustomerGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyCustomerGatewayAttributeRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyCustomerGatewayAttributeRequest::getName()const void ModifyCustomerGatewayAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyCustomerGatewayAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyCustomerGatewayAttributeRequest::getDescription()const void ModifyCustomerGatewayAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyCustomerGatewayAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifyCustomerGatewayAttributeRequest::getOwnerId()const void ModifyCustomerGatewayAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyCustomerGatewayAttributeRequest::getCustomerGatewayId()const @@ -121,6 +121,6 @@ std::string ModifyCustomerGatewayAttributeRequest::getCustomerGatewayId()const void ModifyCustomerGatewayAttributeRequest::setCustomerGatewayId(const std::string& customerGatewayId) { customerGatewayId_ = customerGatewayId; - setParameter("CustomerGatewayId", customerGatewayId); + setCoreParameter("CustomerGatewayId", customerGatewayId); } diff --git a/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc index 9f3a67565..f6b896643 100644 --- a/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc @@ -35,10 +35,13 @@ ModifyCustomerGatewayAttributeResult::~ModifyCustomerGatewayAttributeResult() void ModifyCustomerGatewayAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CustomerGatewayId"].isNull()) customerGatewayId_ = value["CustomerGatewayId"].asString(); diff --git a/vpc/src/model/ModifyEipAddressAttributeRequest.cc b/vpc/src/model/ModifyEipAddressAttributeRequest.cc index 3c74d28e9..745a1c2d0 100644 --- a/vpc/src/model/ModifyEipAddressAttributeRequest.cc +++ b/vpc/src/model/ModifyEipAddressAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyEipAddressAttributeRequest::getResourceOwnerId()const void ModifyEipAddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount()const void ModifyEipAddressAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyEipAddressAttributeRequest::getBandwidth()const @@ -55,7 +55,7 @@ std::string ModifyEipAddressAttributeRequest::getBandwidth()const void ModifyEipAddressAttributeRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string ModifyEipAddressAttributeRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyEipAddressAttributeRequest::getRegionId()const void ModifyEipAddressAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyEipAddressAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyEipAddressAttributeRequest::getOwnerAccount()const void ModifyEipAddressAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyEipAddressAttributeRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyEipAddressAttributeRequest::getName()const void ModifyEipAddressAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyEipAddressAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyEipAddressAttributeRequest::getDescription()const void ModifyEipAddressAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyEipAddressAttributeRequest::getAllocationId()const @@ -110,7 +110,7 @@ std::string ModifyEipAddressAttributeRequest::getAllocationId()const void ModifyEipAddressAttributeRequest::setAllocationId(const std::string& allocationId) { allocationId_ = allocationId; - setParameter("AllocationId", allocationId); + setCoreParameter("AllocationId", allocationId); } long ModifyEipAddressAttributeRequest::getOwnerId()const @@ -121,6 +121,6 @@ long ModifyEipAddressAttributeRequest::getOwnerId()const void ModifyEipAddressAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyEipAddressAttributeResult.cc b/vpc/src/model/ModifyEipAddressAttributeResult.cc index 50fb9fa5c..1243a5776 100644 --- a/vpc/src/model/ModifyEipAddressAttributeResult.cc +++ b/vpc/src/model/ModifyEipAddressAttributeResult.cc @@ -35,10 +35,13 @@ ModifyEipAddressAttributeResult::~ModifyEipAddressAttributeResult() void ModifyEipAddressAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc b/vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc new file mode 100644 index 000000000..bbc27eb3b --- /dev/null +++ b/vpc/src/model/ModifyExpressCloudConnectionAttributeRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::ModifyExpressCloudConnectionAttributeRequest; + +ModifyExpressCloudConnectionAttributeRequest::ModifyExpressCloudConnectionAttributeRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressCloudConnectionAttribute") +{} + +ModifyExpressCloudConnectionAttributeRequest::~ModifyExpressCloudConnectionAttributeRequest() +{} + +long ModifyExpressCloudConnectionAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyExpressCloudConnectionAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyExpressCloudConnectionAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyExpressCloudConnectionAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyExpressCloudConnectionAttributeRequest::getName()const +{ + return name_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string ModifyExpressCloudConnectionAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long ModifyExpressCloudConnectionAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyExpressCloudConnectionAttributeRequest::getEccId()const +{ + return eccId_; +} + +void ModifyExpressCloudConnectionAttributeRequest::setEccId(const std::string& eccId) +{ + eccId_ = eccId; + setCoreParameter("EccId", eccId); +} + diff --git a/vpc/src/model/ModifyExpressCloudConnectionAttributeResult.cc b/vpc/src/model/ModifyExpressCloudConnectionAttributeResult.cc new file mode 100644 index 000000000..d166af116 --- /dev/null +++ b/vpc/src/model/ModifyExpressCloudConnectionAttributeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyExpressCloudConnectionAttributeResult::ModifyExpressCloudConnectionAttributeResult() : + ServiceResult() +{} + +ModifyExpressCloudConnectionAttributeResult::ModifyExpressCloudConnectionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyExpressCloudConnectionAttributeResult::~ModifyExpressCloudConnectionAttributeResult() +{} + +void ModifyExpressCloudConnectionAttributeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.cc b/vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.cc new file mode 100644 index 000000000..4f7b1786e --- /dev/null +++ b/vpc/src/model/ModifyExpressCloudConnectionBandwidthRequest.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 + +using AlibabaCloud::Vpc::Model::ModifyExpressCloudConnectionBandwidthRequest; + +ModifyExpressCloudConnectionBandwidthRequest::ModifyExpressCloudConnectionBandwidthRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressCloudConnectionBandwidth") +{} + +ModifyExpressCloudConnectionBandwidthRequest::~ModifyExpressCloudConnectionBandwidthRequest() +{} + +long ModifyExpressCloudConnectionBandwidthRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyExpressCloudConnectionBandwidthRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyExpressCloudConnectionBandwidthRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyExpressCloudConnectionBandwidthRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setCoreParameter("Bandwidth", bandwidth); +} + +std::string ModifyExpressCloudConnectionBandwidthRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ModifyExpressCloudConnectionBandwidthRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyExpressCloudConnectionBandwidthRequest::getEccId()const +{ + return eccId_; +} + +void ModifyExpressCloudConnectionBandwidthRequest::setEccId(const std::string& eccId) +{ + eccId_ = eccId; + setCoreParameter("EccId", eccId); +} + diff --git a/vpc/src/model/ModifyExpressCloudConnectionBandwidthResult.cc b/vpc/src/model/ModifyExpressCloudConnectionBandwidthResult.cc new file mode 100644 index 000000000..070f4e5e7 --- /dev/null +++ b/vpc/src/model/ModifyExpressCloudConnectionBandwidthResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyExpressCloudConnectionBandwidthResult::ModifyExpressCloudConnectionBandwidthResult() : + ServiceResult() +{} + +ModifyExpressCloudConnectionBandwidthResult::ModifyExpressCloudConnectionBandwidthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyExpressCloudConnectionBandwidthResult::~ModifyExpressCloudConnectionBandwidthResult() +{} + +void ModifyExpressCloudConnectionBandwidthResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyFlowLogAttributeRequest.cc b/vpc/src/model/ModifyFlowLogAttributeRequest.cc index e298b34fd..0326b8de0 100644 --- a/vpc/src/model/ModifyFlowLogAttributeRequest.cc +++ b/vpc/src/model/ModifyFlowLogAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyFlowLogAttributeRequest::getResourceOwnerId()const void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyFlowLogAttributeRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyFlowLogAttributeRequest::getRegionId()const void ModifyFlowLogAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyFlowLogAttributeRequest::getDescription()const @@ -77,7 +77,7 @@ std::string ModifyFlowLogAttributeRequest::getDescription()const void ModifyFlowLogAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyFlowLogAttributeRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ModifyFlowLogAttributeRequest::getOwnerId()const void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyFlowLogAttributeRequest::getFlowLogId()const @@ -99,7 +99,7 @@ std::string ModifyFlowLogAttributeRequest::getFlowLogId()const void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string& flowLogId) { flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); + setCoreParameter("FlowLogId", flowLogId); } std::string ModifyFlowLogAttributeRequest::getFlowLogName()const @@ -110,6 +110,6 @@ std::string ModifyFlowLogAttributeRequest::getFlowLogName()const void ModifyFlowLogAttributeRequest::setFlowLogName(const std::string& flowLogName) { flowLogName_ = flowLogName; - setParameter("FlowLogName", flowLogName); + setCoreParameter("FlowLogName", flowLogName); } diff --git a/vpc/src/model/ModifyFlowLogAttributeResult.cc b/vpc/src/model/ModifyFlowLogAttributeResult.cc index 7882369fa..2a6209bbf 100644 --- a/vpc/src/model/ModifyFlowLogAttributeResult.cc +++ b/vpc/src/model/ModifyFlowLogAttributeResult.cc @@ -35,10 +35,13 @@ ModifyFlowLogAttributeResult::~ModifyFlowLogAttributeResult() void ModifyFlowLogAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString(); diff --git a/vpc/src/model/ModifyForwardEntryRequest.cc b/vpc/src/model/ModifyForwardEntryRequest.cc index 371538baf..248eed16a 100644 --- a/vpc/src/model/ModifyForwardEntryRequest.cc +++ b/vpc/src/model/ModifyForwardEntryRequest.cc @@ -33,7 +33,7 @@ long ModifyForwardEntryRequest::getResourceOwnerId()const void ModifyForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyForwardEntryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyForwardEntryRequest::getResourceOwnerAccount()const void ModifyForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyForwardEntryRequest::getIpProtocol()const @@ -55,7 +55,7 @@ std::string ModifyForwardEntryRequest::getIpProtocol()const void ModifyForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) { ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); + setCoreParameter("IpProtocol", ipProtocol); } std::string ModifyForwardEntryRequest::getForwardEntryName()const @@ -66,7 +66,7 @@ std::string ModifyForwardEntryRequest::getForwardEntryName()const void ModifyForwardEntryRequest::setForwardEntryName(const std::string& forwardEntryName) { forwardEntryName_ = forwardEntryName; - setParameter("ForwardEntryName", forwardEntryName); + setCoreParameter("ForwardEntryName", forwardEntryName); } std::string ModifyForwardEntryRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyForwardEntryRequest::getOwnerAccount()const void ModifyForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyForwardEntryRequest::getForwardTableId()const @@ -88,7 +88,7 @@ std::string ModifyForwardEntryRequest::getForwardTableId()const void ModifyForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) { forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); + setCoreParameter("ForwardTableId", forwardTableId); } long ModifyForwardEntryRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifyForwardEntryRequest::getOwnerId()const void ModifyForwardEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyForwardEntryRequest::getInternalIp()const @@ -110,7 +110,7 @@ std::string ModifyForwardEntryRequest::getInternalIp()const void ModifyForwardEntryRequest::setInternalIp(const std::string& internalIp) { internalIp_ = internalIp; - setParameter("InternalIp", internalIp); + setCoreParameter("InternalIp", internalIp); } std::string ModifyForwardEntryRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string ModifyForwardEntryRequest::getRegionId()const void ModifyForwardEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyForwardEntryRequest::getForwardEntryId()const @@ -132,7 +132,7 @@ std::string ModifyForwardEntryRequest::getForwardEntryId()const void ModifyForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) { forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); + setCoreParameter("ForwardEntryId", forwardEntryId); } std::string ModifyForwardEntryRequest::getInternalPort()const @@ -143,7 +143,7 @@ std::string ModifyForwardEntryRequest::getInternalPort()const void ModifyForwardEntryRequest::setInternalPort(const std::string& internalPort) { internalPort_ = internalPort; - setParameter("InternalPort", internalPort); + setCoreParameter("InternalPort", internalPort); } std::string ModifyForwardEntryRequest::getExternalIp()const @@ -154,7 +154,7 @@ std::string ModifyForwardEntryRequest::getExternalIp()const void ModifyForwardEntryRequest::setExternalIp(const std::string& externalIp) { externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); + setCoreParameter("ExternalIp", externalIp); } std::string ModifyForwardEntryRequest::getExternalPort()const @@ -165,6 +165,6 @@ std::string ModifyForwardEntryRequest::getExternalPort()const void ModifyForwardEntryRequest::setExternalPort(const std::string& externalPort) { externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); + setCoreParameter("ExternalPort", externalPort); } diff --git a/vpc/src/model/ModifyForwardEntryResult.cc b/vpc/src/model/ModifyForwardEntryResult.cc index 1bfcbc8ea..b5564cb5a 100644 --- a/vpc/src/model/ModifyForwardEntryResult.cc +++ b/vpc/src/model/ModifyForwardEntryResult.cc @@ -35,10 +35,13 @@ ModifyForwardEntryResult::~ModifyForwardEntryResult() void ModifyForwardEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc index c5c889f54..568914115 100644 --- a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesRequest.cc @@ -33,7 +33,7 @@ long ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerId()cons void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyGlobalAccelerationInstanceAttributesRequest::getResourceOwnerA void ModifyGlobalAccelerationInstanceAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyGlobalAccelerationInstanceAttributesRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyGlobalAccelerationInstanceAttributesRequest::getRegionId()cons void ModifyGlobalAccelerationInstanceAttributesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerAccount() void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyGlobalAccelerationInstanceAttributesRequest::getName()const @@ -77,7 +77,7 @@ std::string ModifyGlobalAccelerationInstanceAttributesRequest::getName()const void ModifyGlobalAccelerationInstanceAttributesRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyGlobalAccelerationInstanceAttributesRequest::getDescription()const @@ -88,7 +88,7 @@ std::string ModifyGlobalAccelerationInstanceAttributesRequest::getDescription()c void ModifyGlobalAccelerationInstanceAttributesRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifyGlobalAccelerationInstanceAttributesRequest::getOwnerId()const void ModifyGlobalAccelerationInstanceAttributesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyGlobalAccelerationInstanceAttributesRequest::getGlobalAccelerationInstanceId()const @@ -110,6 +110,6 @@ std::string ModifyGlobalAccelerationInstanceAttributesRequest::getGlobalAccelera void ModifyGlobalAccelerationInstanceAttributesRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc index 7c49aafa6..0c5c87812 100644 --- a/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceAttributesResult.cc @@ -35,10 +35,13 @@ ModifyGlobalAccelerationInstanceAttributesResult::~ModifyGlobalAccelerationInsta void ModifyGlobalAccelerationInstanceAttributesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc index ac70d9324..52b266b29 100644 --- a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecRequest.cc @@ -33,7 +33,7 @@ long ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerId()const void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyGlobalAccelerationInstanceSpecRequest::getResourceOwnerAccount void ModifyGlobalAccelerationInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyGlobalAccelerationInstanceSpecRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyGlobalAccelerationInstanceSpecRequest::getRegionId()const void ModifyGlobalAccelerationInstanceSpecRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyGlobalAccelerationInstanceSpecRequest::getBandwidth()const @@ -66,7 +66,7 @@ std::string ModifyGlobalAccelerationInstanceSpecRequest::getBandwidth()const void ModifyGlobalAccelerationInstanceSpecRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string ModifyGlobalAccelerationInstanceSpecRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyGlobalAccelerationInstanceSpecRequest::getOwnerAccount()const void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyGlobalAccelerationInstanceSpecRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ModifyGlobalAccelerationInstanceSpecRequest::getOwnerId()const void ModifyGlobalAccelerationInstanceSpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyGlobalAccelerationInstanceSpecRequest::getGlobalAccelerationInstanceId()const @@ -99,6 +99,6 @@ std::string ModifyGlobalAccelerationInstanceSpecRequest::getGlobalAccelerationIn void ModifyGlobalAccelerationInstanceSpecRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } diff --git a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecResult.cc b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecResult.cc index 99ac06419..9c6b5953b 100644 --- a/vpc/src/model/ModifyGlobalAccelerationInstanceSpecResult.cc +++ b/vpc/src/model/ModifyGlobalAccelerationInstanceSpecResult.cc @@ -35,10 +35,13 @@ ModifyGlobalAccelerationInstanceSpecResult::~ModifyGlobalAccelerationInstanceSpe void ModifyGlobalAccelerationInstanceSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyHaVipAttributeRequest.cc b/vpc/src/model/ModifyHaVipAttributeRequest.cc index bc659fca1..3edf654d7 100644 --- a/vpc/src/model/ModifyHaVipAttributeRequest.cc +++ b/vpc/src/model/ModifyHaVipAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyHaVipAttributeRequest::getHaVipId()const void ModifyHaVipAttributeRequest::setHaVipId(const std::string& haVipId) { haVipId_ = haVipId; - setParameter("HaVipId", haVipId); + setCoreParameter("HaVipId", haVipId); } long ModifyHaVipAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyHaVipAttributeRequest::getResourceOwnerId()const void ModifyHaVipAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount()const void ModifyHaVipAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyHaVipAttributeRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string ModifyHaVipAttributeRequest::getClientToken()const void ModifyHaVipAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyHaVipAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string ModifyHaVipAttributeRequest::getRegionId()const void ModifyHaVipAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyHaVipAttributeRequest::getOwnerAccount()const @@ -88,7 +88,18 @@ std::string ModifyHaVipAttributeRequest::getOwnerAccount()const void ModifyHaVipAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyHaVipAttributeRequest::getName()const +{ + return name_; +} + +void ModifyHaVipAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); } std::string ModifyHaVipAttributeRequest::getDescription()const @@ -99,7 +110,7 @@ std::string ModifyHaVipAttributeRequest::getDescription()const void ModifyHaVipAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyHaVipAttributeRequest::getOwnerId()const @@ -110,6 +121,6 @@ long ModifyHaVipAttributeRequest::getOwnerId()const void ModifyHaVipAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyHaVipAttributeResult.cc b/vpc/src/model/ModifyHaVipAttributeResult.cc index f6d8e6d8e..9e1eb0d86 100644 --- a/vpc/src/model/ModifyHaVipAttributeResult.cc +++ b/vpc/src/model/ModifyHaVipAttributeResult.cc @@ -35,10 +35,13 @@ ModifyHaVipAttributeResult::~ModifyHaVipAttributeResult() void ModifyHaVipAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc b/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc index 995f154f2..fe2b79d7a 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAclAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyIPv6TranslatorAclAttributeRequest::getAclId()const void ModifyIPv6TranslatorAclAttributeRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerId()const void ModifyIPv6TranslatorAclAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyIPv6TranslatorAclAttributeRequest::getAclName()const @@ -55,7 +55,7 @@ std::string ModifyIPv6TranslatorAclAttributeRequest::getAclName()const void ModifyIPv6TranslatorAclAttributeRequest::setAclName(const std::string& aclName) { aclName_ = aclName; - setParameter("AclName", aclName); + setCoreParameter("AclName", aclName); } std::string ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyIPv6TranslatorAclAttributeRequest::getResourceOwnerAccount()co void ModifyIPv6TranslatorAclAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIPv6TranslatorAclAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string ModifyIPv6TranslatorAclAttributeRequest::getRegionId()const void ModifyIPv6TranslatorAclAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIPv6TranslatorAclAttributeRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string ModifyIPv6TranslatorAclAttributeRequest::getClientToken()const void ModifyIPv6TranslatorAclAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyIPv6TranslatorAclAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string ModifyIPv6TranslatorAclAttributeRequest::getOwnerAccount()const void ModifyIPv6TranslatorAclAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyIPv6TranslatorAclAttributeRequest::getOwnerId()const @@ -110,6 +110,6 @@ long ModifyIPv6TranslatorAclAttributeRequest::getOwnerId()const void ModifyIPv6TranslatorAclAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAclAttributeResult.cc b/vpc/src/model/ModifyIPv6TranslatorAclAttributeResult.cc index 4452f08f4..191470b21 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAclAttributeResult.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAclAttributeResult.cc @@ -35,10 +35,13 @@ ModifyIPv6TranslatorAclAttributeResult::~ModifyIPv6TranslatorAclAttributeResult( void ModifyIPv6TranslatorAclAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc b/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc index 22ef0889e..935dd769e 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAclListEntryRequest.cc @@ -33,7 +33,7 @@ std::string ModifyIPv6TranslatorAclListEntryRequest::getAclId()const void ModifyIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const void ModifyIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()co void ModifyIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIPv6TranslatorAclListEntryRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyIPv6TranslatorAclListEntryRequest::getRegionId()const void ModifyIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIPv6TranslatorAclListEntryRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyIPv6TranslatorAclListEntryRequest::getOwnerAccount()const void ModifyIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryComment()const @@ -88,7 +88,7 @@ std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryComment()const void ModifyIPv6TranslatorAclListEntryRequest::setAclEntryComment(const std::string& aclEntryComment) { aclEntryComment_ = aclEntryComment; - setParameter("AclEntryComment", aclEntryComment); + setCoreParameter("AclEntryComment", aclEntryComment); } long ModifyIPv6TranslatorAclListEntryRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifyIPv6TranslatorAclListEntryRequest::getOwnerId()const void ModifyIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryId()const @@ -110,6 +110,6 @@ std::string ModifyIPv6TranslatorAclListEntryRequest::getAclEntryId()const void ModifyIPv6TranslatorAclListEntryRequest::setAclEntryId(const std::string& aclEntryId) { aclEntryId_ = aclEntryId; - setParameter("AclEntryId", aclEntryId); + setCoreParameter("AclEntryId", aclEntryId); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAclListEntryResult.cc b/vpc/src/model/ModifyIPv6TranslatorAclListEntryResult.cc index bfe2396e8..5a9836646 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAclListEntryResult.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAclListEntryResult.cc @@ -35,10 +35,13 @@ ModifyIPv6TranslatorAclListEntryResult::~ModifyIPv6TranslatorAclListEntryResult( void ModifyIPv6TranslatorAclListEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc b/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc index ceb297240..fba5f34ec 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyIPv6TranslatorAttributeRequest::getResourceOwnerId()const void ModifyIPv6TranslatorAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyIPv6TranslatorAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyIPv6TranslatorAttributeRequest::getResourceOwnerAccount()const void ModifyIPv6TranslatorAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIPv6TranslatorAttributeRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyIPv6TranslatorAttributeRequest::getRegionId()const void ModifyIPv6TranslatorAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIPv6TranslatorAttributeRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string ModifyIPv6TranslatorAttributeRequest::getClientToken()const void ModifyIPv6TranslatorAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyIPv6TranslatorAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyIPv6TranslatorAttributeRequest::getOwnerAccount()const void ModifyIPv6TranslatorAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyIPv6TranslatorAttributeRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyIPv6TranslatorAttributeRequest::getName()const void ModifyIPv6TranslatorAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyIPv6TranslatorAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyIPv6TranslatorAttributeRequest::getDescription()const void ModifyIPv6TranslatorAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyIPv6TranslatorAttributeRequest::getIpv6TranslatorId()const @@ -110,7 +110,7 @@ std::string ModifyIPv6TranslatorAttributeRequest::getIpv6TranslatorId()const void ModifyIPv6TranslatorAttributeRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) { ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); + setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId); } long ModifyIPv6TranslatorAttributeRequest::getOwnerId()const @@ -121,6 +121,6 @@ long ModifyIPv6TranslatorAttributeRequest::getOwnerId()const void ModifyIPv6TranslatorAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyIPv6TranslatorAttributeResult.cc b/vpc/src/model/ModifyIPv6TranslatorAttributeResult.cc index f26ebb9b8..608eb92a4 100644 --- a/vpc/src/model/ModifyIPv6TranslatorAttributeResult.cc +++ b/vpc/src/model/ModifyIPv6TranslatorAttributeResult.cc @@ -35,10 +35,13 @@ ModifyIPv6TranslatorAttributeResult::~ModifyIPv6TranslatorAttributeResult() void ModifyIPv6TranslatorAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc b/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc index 3131fe2af..9438d998b 100644 --- a/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorBandwidthRequest.cc @@ -33,7 +33,7 @@ long ModifyIPv6TranslatorBandwidthRequest::getResourceOwnerId()const void ModifyIPv6TranslatorBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool ModifyIPv6TranslatorBandwidthRequest::getAutoPay()const @@ -44,7 +44,7 @@ bool ModifyIPv6TranslatorBandwidthRequest::getAutoPay()const void ModifyIPv6TranslatorBandwidthRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string ModifyIPv6TranslatorBandwidthRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyIPv6TranslatorBandwidthRequest::getResourceOwnerAccount()const void ModifyIPv6TranslatorBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIPv6TranslatorBandwidthRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyIPv6TranslatorBandwidthRequest::getRegionId()const void ModifyIPv6TranslatorBandwidthRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIPv6TranslatorBandwidthRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string ModifyIPv6TranslatorBandwidthRequest::getClientToken()const void ModifyIPv6TranslatorBandwidthRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } int ModifyIPv6TranslatorBandwidthRequest::getBandwidth()const @@ -88,7 +88,7 @@ int ModifyIPv6TranslatorBandwidthRequest::getBandwidth()const void ModifyIPv6TranslatorBandwidthRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string ModifyIPv6TranslatorBandwidthRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string ModifyIPv6TranslatorBandwidthRequest::getOwnerAccount()const void ModifyIPv6TranslatorBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyIPv6TranslatorBandwidthRequest::getIpv6TranslatorId()const @@ -110,7 +110,7 @@ std::string ModifyIPv6TranslatorBandwidthRequest::getIpv6TranslatorId()const void ModifyIPv6TranslatorBandwidthRequest::setIpv6TranslatorId(const std::string& ipv6TranslatorId) { ipv6TranslatorId_ = ipv6TranslatorId; - setParameter("Ipv6TranslatorId", ipv6TranslatorId); + setCoreParameter("Ipv6TranslatorId", ipv6TranslatorId); } long ModifyIPv6TranslatorBandwidthRequest::getOwnerId()const @@ -121,6 +121,6 @@ long ModifyIPv6TranslatorBandwidthRequest::getOwnerId()const void ModifyIPv6TranslatorBandwidthRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyIPv6TranslatorBandwidthResult.cc b/vpc/src/model/ModifyIPv6TranslatorBandwidthResult.cc index 2a43e6e89..2c95f561f 100644 --- a/vpc/src/model/ModifyIPv6TranslatorBandwidthResult.cc +++ b/vpc/src/model/ModifyIPv6TranslatorBandwidthResult.cc @@ -35,10 +35,13 @@ ModifyIPv6TranslatorBandwidthResult::~ModifyIPv6TranslatorBandwidthResult() void ModifyIPv6TranslatorBandwidthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc b/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc index 592f75a33..6b406258c 100644 --- a/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc +++ b/vpc/src/model/ModifyIPv6TranslatorEntryRequest.cc @@ -33,7 +33,7 @@ int ModifyIPv6TranslatorEntryRequest::getBackendIpv4Port()const void ModifyIPv6TranslatorEntryRequest::setBackendIpv4Port(int backendIpv4Port) { backendIpv4Port_ = backendIpv4Port; - setParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); + setCoreParameter("BackendIpv4Port", std::to_string(backendIpv4Port)); } std::string ModifyIPv6TranslatorEntryRequest::getAclId()const @@ -44,7 +44,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getAclId()const void ModifyIPv6TranslatorEntryRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long ModifyIPv6TranslatorEntryRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ModifyIPv6TranslatorEntryRequest::getResourceOwnerId()const void ModifyIPv6TranslatorEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId()const @@ -66,7 +66,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getIpv6TranslatorEntryId()const void ModifyIPv6TranslatorEntryRequest::setIpv6TranslatorEntryId(const std::string& ipv6TranslatorEntryId) { ipv6TranslatorEntryId_ = ipv6TranslatorEntryId; - setParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); + setCoreParameter("Ipv6TranslatorEntryId", ipv6TranslatorEntryId); } std::string ModifyIPv6TranslatorEntryRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getResourceOwnerAccount()const void ModifyIPv6TranslatorEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIPv6TranslatorEntryRequest::getEntryName()const @@ -88,7 +88,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getEntryName()const void ModifyIPv6TranslatorEntryRequest::setEntryName(const std::string& entryName) { entryName_ = entryName; - setParameter("EntryName", entryName); + setCoreParameter("EntryName", entryName); } std::string ModifyIPv6TranslatorEntryRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getOwnerAccount()const void ModifyIPv6TranslatorEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyIPv6TranslatorEntryRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifyIPv6TranslatorEntryRequest::getOwnerId()const void ModifyIPv6TranslatorEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyIPv6TranslatorEntryRequest::getAclStatus()const @@ -121,7 +121,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getAclStatus()const void ModifyIPv6TranslatorEntryRequest::setAclStatus(const std::string& aclStatus) { aclStatus_ = aclStatus; - setParameter("AclStatus", aclStatus); + setCoreParameter("AclStatus", aclStatus); } int ModifyIPv6TranslatorEntryRequest::getEntryBandwidth()const @@ -132,7 +132,7 @@ int ModifyIPv6TranslatorEntryRequest::getEntryBandwidth()const void ModifyIPv6TranslatorEntryRequest::setEntryBandwidth(int entryBandwidth) { entryBandwidth_ = entryBandwidth; - setParameter("EntryBandwidth", std::to_string(entryBandwidth)); + setCoreParameter("EntryBandwidth", std::to_string(entryBandwidth)); } std::string ModifyIPv6TranslatorEntryRequest::getAclType()const @@ -143,7 +143,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getAclType()const void ModifyIPv6TranslatorEntryRequest::setAclType(const std::string& aclType) { aclType_ = aclType; - setParameter("AclType", aclType); + setCoreParameter("AclType", aclType); } int ModifyIPv6TranslatorEntryRequest::getAllocateIpv6Port()const @@ -154,7 +154,7 @@ int ModifyIPv6TranslatorEntryRequest::getAllocateIpv6Port()const void ModifyIPv6TranslatorEntryRequest::setAllocateIpv6Port(int allocateIpv6Port) { allocateIpv6Port_ = allocateIpv6Port; - setParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); + setCoreParameter("AllocateIpv6Port", std::to_string(allocateIpv6Port)); } std::string ModifyIPv6TranslatorEntryRequest::getEntryDescription()const @@ -165,7 +165,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getEntryDescription()const void ModifyIPv6TranslatorEntryRequest::setEntryDescription(const std::string& entryDescription) { entryDescription_ = entryDescription; - setParameter("EntryDescription", entryDescription); + setCoreParameter("EntryDescription", entryDescription); } std::string ModifyIPv6TranslatorEntryRequest::getRegionId()const @@ -176,7 +176,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getRegionId()const void ModifyIPv6TranslatorEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIPv6TranslatorEntryRequest::getBackendIpv4Addr()const @@ -187,7 +187,7 @@ std::string ModifyIPv6TranslatorEntryRequest::getBackendIpv4Addr()const void ModifyIPv6TranslatorEntryRequest::setBackendIpv4Addr(const std::string& backendIpv4Addr) { backendIpv4Addr_ = backendIpv4Addr; - setParameter("BackendIpv4Addr", backendIpv4Addr); + setCoreParameter("BackendIpv4Addr", backendIpv4Addr); } std::string ModifyIPv6TranslatorEntryRequest::getTransProtocol()const @@ -198,6 +198,6 @@ std::string ModifyIPv6TranslatorEntryRequest::getTransProtocol()const void ModifyIPv6TranslatorEntryRequest::setTransProtocol(const std::string& transProtocol) { transProtocol_ = transProtocol; - setParameter("TransProtocol", transProtocol); + setCoreParameter("TransProtocol", transProtocol); } diff --git a/vpc/src/model/ModifyIPv6TranslatorEntryResult.cc b/vpc/src/model/ModifyIPv6TranslatorEntryResult.cc index 9cecd23f4..1a41668d2 100644 --- a/vpc/src/model/ModifyIPv6TranslatorEntryResult.cc +++ b/vpc/src/model/ModifyIPv6TranslatorEntryResult.cc @@ -35,10 +35,13 @@ ModifyIPv6TranslatorEntryResult::~ModifyIPv6TranslatorEntryResult() void ModifyIPv6TranslatorEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc b/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc index bf18a56e7..4e0dba23c 100644 --- a/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc +++ b/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyIpv6AddressAttributeRequest::getResourceOwnerId()const void ModifyIpv6AddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long ModifyIpv6AddressAttributeRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long ModifyIpv6AddressAttributeRequest::getCallerParentId()const void ModifyIpv6AddressAttributeRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string ModifyIpv6AddressAttributeRequest::getDescription()const @@ -55,7 +55,7 @@ std::string ModifyIpv6AddressAttributeRequest::getDescription()const void ModifyIpv6AddressAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } bool ModifyIpv6AddressAttributeRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool ModifyIpv6AddressAttributeRequest::getProxy_original_security_transport()co void ModifyIpv6AddressAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyIpv6AddressAttributeRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string ModifyIpv6AddressAttributeRequest::getProxy_original_source_ip()cons void ModifyIpv6AddressAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyIpv6AddressAttributeRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string ModifyIpv6AddressAttributeRequest::getOwnerIdLoginEmail()const void ModifyIpv6AddressAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyIpv6AddressAttributeRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string ModifyIpv6AddressAttributeRequest::getCallerType()const void ModifyIpv6AddressAttributeRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string ModifyIpv6AddressAttributeRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string ModifyIpv6AddressAttributeRequest::getAccessKeyId()const void ModifyIpv6AddressAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyIpv6AddressAttributeRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string ModifyIpv6AddressAttributeRequest::getResourceGroupId()const void ModifyIpv6AddressAttributeRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string ModifyIpv6AddressAttributeRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string ModifyIpv6AddressAttributeRequest::getRegionId()const void ModifyIpv6AddressAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIpv6AddressAttributeRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string ModifyIpv6AddressAttributeRequest::getSecurityToken()const void ModifyIpv6AddressAttributeRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool ModifyIpv6AddressAttributeRequest::getEnable()const @@ -154,7 +154,7 @@ bool ModifyIpv6AddressAttributeRequest::getEnable()const void ModifyIpv6AddressAttributeRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string ModifyIpv6AddressAttributeRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string ModifyIpv6AddressAttributeRequest::getRequestContent()const void ModifyIpv6AddressAttributeRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyIpv6AddressAttributeRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string ModifyIpv6AddressAttributeRequest::getCallerBidEmail()const void ModifyIpv6AddressAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyIpv6AddressAttributeRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string ModifyIpv6AddressAttributeRequest::getCallerUidEmail()const void ModifyIpv6AddressAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyIpv6AddressAttributeRequest::getCallerUid()const @@ -198,7 +198,7 @@ long ModifyIpv6AddressAttributeRequest::getCallerUid()const void ModifyIpv6AddressAttributeRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string ModifyIpv6AddressAttributeRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string ModifyIpv6AddressAttributeRequest::getApp_ip()const void ModifyIpv6AddressAttributeRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ModifyIpv6AddressAttributeRequest::getResourceOwnerAccount()const @@ -220,7 +220,7 @@ std::string ModifyIpv6AddressAttributeRequest::getResourceOwnerAccount()const void ModifyIpv6AddressAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIpv6AddressAttributeRequest::getOwnerAccount()const @@ -231,7 +231,7 @@ std::string ModifyIpv6AddressAttributeRequest::getOwnerAccount()const void ModifyIpv6AddressAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyIpv6AddressAttributeRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string ModifyIpv6AddressAttributeRequest::getCallerBid()const void ModifyIpv6AddressAttributeRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyIpv6AddressAttributeRequest::getOwnerId()const @@ -253,7 +253,7 @@ long ModifyIpv6AddressAttributeRequest::getOwnerId()const void ModifyIpv6AddressAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool ModifyIpv6AddressAttributeRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool ModifyIpv6AddressAttributeRequest::getProxy_trust_transport_info()const void ModifyIpv6AddressAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyIpv6AddressAttributeRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool ModifyIpv6AddressAttributeRequest::getAk_mfa_present()const void ModifyIpv6AddressAttributeRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool ModifyIpv6AddressAttributeRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool ModifyIpv6AddressAttributeRequest::getSecurity_transport()const void ModifyIpv6AddressAttributeRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyIpv6AddressAttributeRequest::getIpv6AddressId()const @@ -297,7 +297,7 @@ std::string ModifyIpv6AddressAttributeRequest::getIpv6AddressId()const void ModifyIpv6AddressAttributeRequest::setIpv6AddressId(const std::string& ipv6AddressId) { ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); + setCoreParameter("Ipv6AddressId", ipv6AddressId); } std::string ModifyIpv6AddressAttributeRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string ModifyIpv6AddressAttributeRequest::getRequestId()const void ModifyIpv6AddressAttributeRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ModifyIpv6AddressAttributeRequest::getName()const @@ -319,6 +319,6 @@ std::string ModifyIpv6AddressAttributeRequest::getName()const void ModifyIpv6AddressAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/ModifyIpv6AddressAttributeResult.cc b/vpc/src/model/ModifyIpv6AddressAttributeResult.cc index 8ec4f5f69..09cd7d2e4 100644 --- a/vpc/src/model/ModifyIpv6AddressAttributeResult.cc +++ b/vpc/src/model/ModifyIpv6AddressAttributeResult.cc @@ -35,10 +35,13 @@ ModifyIpv6AddressAttributeResult::~ModifyIpv6AddressAttributeResult() void ModifyIpv6AddressAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc b/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc index 00297f188..3ba1bd6a3 100644 --- a/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyIpv6GatewayAttributeRequest::getResourceOwnerId()const void ModifyIpv6GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } long ModifyIpv6GatewayAttributeRequest::getCallerParentId()const @@ -44,7 +44,7 @@ long ModifyIpv6GatewayAttributeRequest::getCallerParentId()const void ModifyIpv6GatewayAttributeRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } std::string ModifyIpv6GatewayAttributeRequest::getDescription()const @@ -55,7 +55,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getDescription()const void ModifyIpv6GatewayAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } bool ModifyIpv6GatewayAttributeRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool ModifyIpv6GatewayAttributeRequest::getProxy_original_security_transport()co void ModifyIpv6GatewayAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyIpv6GatewayAttributeRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getProxy_original_source_ip()cons void ModifyIpv6GatewayAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyIpv6GatewayAttributeRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getOwnerIdLoginEmail()const void ModifyIpv6GatewayAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyIpv6GatewayAttributeRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getCallerType()const void ModifyIpv6GatewayAttributeRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string ModifyIpv6GatewayAttributeRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getAccessKeyId()const void ModifyIpv6GatewayAttributeRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyIpv6GatewayAttributeRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getResourceGroupId()const void ModifyIpv6GatewayAttributeRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string ModifyIpv6GatewayAttributeRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getRegionId()const void ModifyIpv6GatewayAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIpv6GatewayAttributeRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getSecurityToken()const void ModifyIpv6GatewayAttributeRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool ModifyIpv6GatewayAttributeRequest::getEnable()const @@ -154,7 +154,7 @@ bool ModifyIpv6GatewayAttributeRequest::getEnable()const void ModifyIpv6GatewayAttributeRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string ModifyIpv6GatewayAttributeRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getRequestContent()const void ModifyIpv6GatewayAttributeRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyIpv6GatewayAttributeRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getCallerBidEmail()const void ModifyIpv6GatewayAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyIpv6GatewayAttributeRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getCallerUidEmail()const void ModifyIpv6GatewayAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyIpv6GatewayAttributeRequest::getCallerUid()const @@ -198,7 +198,7 @@ long ModifyIpv6GatewayAttributeRequest::getCallerUid()const void ModifyIpv6GatewayAttributeRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string ModifyIpv6GatewayAttributeRequest::getApp_ip()const @@ -209,7 +209,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getApp_ip()const void ModifyIpv6GatewayAttributeRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ModifyIpv6GatewayAttributeRequest::getResourceOwnerAccount()const @@ -220,7 +220,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getResourceOwnerAccount()const void ModifyIpv6GatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIpv6GatewayAttributeRequest::getOwnerAccount()const @@ -231,7 +231,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getOwnerAccount()const void ModifyIpv6GatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyIpv6GatewayAttributeRequest::getCallerBid()const @@ -242,7 +242,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getCallerBid()const void ModifyIpv6GatewayAttributeRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyIpv6GatewayAttributeRequest::getOwnerId()const @@ -253,7 +253,7 @@ long ModifyIpv6GatewayAttributeRequest::getOwnerId()const void ModifyIpv6GatewayAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool ModifyIpv6GatewayAttributeRequest::getProxy_trust_transport_info()const @@ -264,7 +264,7 @@ bool ModifyIpv6GatewayAttributeRequest::getProxy_trust_transport_info()const void ModifyIpv6GatewayAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyIpv6GatewayAttributeRequest::getAk_mfa_present()const @@ -275,7 +275,7 @@ bool ModifyIpv6GatewayAttributeRequest::getAk_mfa_present()const void ModifyIpv6GatewayAttributeRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool ModifyIpv6GatewayAttributeRequest::getSecurity_transport()const @@ -286,7 +286,7 @@ bool ModifyIpv6GatewayAttributeRequest::getSecurity_transport()const void ModifyIpv6GatewayAttributeRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyIpv6GatewayAttributeRequest::getRequestId()const @@ -297,7 +297,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getRequestId()const void ModifyIpv6GatewayAttributeRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ModifyIpv6GatewayAttributeRequest::getIpv6GatewayId()const @@ -308,7 +308,7 @@ std::string ModifyIpv6GatewayAttributeRequest::getIpv6GatewayId()const void ModifyIpv6GatewayAttributeRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } std::string ModifyIpv6GatewayAttributeRequest::getName()const @@ -319,6 +319,6 @@ std::string ModifyIpv6GatewayAttributeRequest::getName()const void ModifyIpv6GatewayAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/ModifyIpv6GatewayAttributeResult.cc b/vpc/src/model/ModifyIpv6GatewayAttributeResult.cc index fc58d86b2..c59457269 100644 --- a/vpc/src/model/ModifyIpv6GatewayAttributeResult.cc +++ b/vpc/src/model/ModifyIpv6GatewayAttributeResult.cc @@ -35,10 +35,13 @@ ModifyIpv6GatewayAttributeResult::~ModifyIpv6GatewayAttributeResult() void ModifyIpv6GatewayAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc b/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc index 2058d4741..b86399938 100644 --- a/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc +++ b/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc @@ -33,7 +33,7 @@ long ModifyIpv6GatewaySpecRequest::getResourceOwnerId()const void ModifyIpv6GatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyIpv6GatewaySpecRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string ModifyIpv6GatewaySpecRequest::getClientToken()const void ModifyIpv6GatewaySpecRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long ModifyIpv6GatewaySpecRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long ModifyIpv6GatewaySpecRequest::getCallerParentId()const void ModifyIpv6GatewaySpecRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ModifyIpv6GatewaySpecRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool ModifyIpv6GatewaySpecRequest::getProxy_original_security_transport()const void ModifyIpv6GatewaySpecRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyIpv6GatewaySpecRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string ModifyIpv6GatewaySpecRequest::getProxy_original_source_ip()const void ModifyIpv6GatewaySpecRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyIpv6GatewaySpecRequest::getSpec()const @@ -88,7 +88,7 @@ std::string ModifyIpv6GatewaySpecRequest::getSpec()const void ModifyIpv6GatewaySpecRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } std::string ModifyIpv6GatewaySpecRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string ModifyIpv6GatewaySpecRequest::getOwnerIdLoginEmail()const void ModifyIpv6GatewaySpecRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyIpv6GatewaySpecRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string ModifyIpv6GatewaySpecRequest::getCallerType()const void ModifyIpv6GatewaySpecRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string ModifyIpv6GatewaySpecRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ModifyIpv6GatewaySpecRequest::getAccessKeyId()const void ModifyIpv6GatewaySpecRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyIpv6GatewaySpecRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string ModifyIpv6GatewaySpecRequest::getResourceGroupId()const void ModifyIpv6GatewaySpecRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string ModifyIpv6GatewaySpecRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string ModifyIpv6GatewaySpecRequest::getRegionId()const void ModifyIpv6GatewaySpecRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIpv6GatewaySpecRequest::getSecurityToken()const @@ -154,7 +154,7 @@ std::string ModifyIpv6GatewaySpecRequest::getSecurityToken()const void ModifyIpv6GatewaySpecRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool ModifyIpv6GatewaySpecRequest::getEnable()const @@ -165,7 +165,7 @@ bool ModifyIpv6GatewaySpecRequest::getEnable()const void ModifyIpv6GatewaySpecRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string ModifyIpv6GatewaySpecRequest::getRequestContent()const @@ -176,7 +176,7 @@ std::string ModifyIpv6GatewaySpecRequest::getRequestContent()const void ModifyIpv6GatewaySpecRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyIpv6GatewaySpecRequest::getCallerBidEmail()const @@ -187,7 +187,7 @@ std::string ModifyIpv6GatewaySpecRequest::getCallerBidEmail()const void ModifyIpv6GatewaySpecRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyIpv6GatewaySpecRequest::getCallerUidEmail()const @@ -198,7 +198,7 @@ std::string ModifyIpv6GatewaySpecRequest::getCallerUidEmail()const void ModifyIpv6GatewaySpecRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyIpv6GatewaySpecRequest::getCallerUid()const @@ -209,7 +209,7 @@ long ModifyIpv6GatewaySpecRequest::getCallerUid()const void ModifyIpv6GatewaySpecRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string ModifyIpv6GatewaySpecRequest::getApp_ip()const @@ -220,7 +220,7 @@ std::string ModifyIpv6GatewaySpecRequest::getApp_ip()const void ModifyIpv6GatewaySpecRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string ModifyIpv6GatewaySpecRequest::getResourceOwnerAccount()const @@ -231,7 +231,7 @@ std::string ModifyIpv6GatewaySpecRequest::getResourceOwnerAccount()const void ModifyIpv6GatewaySpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIpv6GatewaySpecRequest::getOwnerAccount()const @@ -242,7 +242,7 @@ std::string ModifyIpv6GatewaySpecRequest::getOwnerAccount()const void ModifyIpv6GatewaySpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyIpv6GatewaySpecRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string ModifyIpv6GatewaySpecRequest::getCallerBid()const void ModifyIpv6GatewaySpecRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyIpv6GatewaySpecRequest::getOwnerId()const @@ -264,7 +264,7 @@ long ModifyIpv6GatewaySpecRequest::getOwnerId()const void ModifyIpv6GatewaySpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool ModifyIpv6GatewaySpecRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool ModifyIpv6GatewaySpecRequest::getProxy_trust_transport_info()const void ModifyIpv6GatewaySpecRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyIpv6GatewaySpecRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool ModifyIpv6GatewaySpecRequest::getAk_mfa_present()const void ModifyIpv6GatewaySpecRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool ModifyIpv6GatewaySpecRequest::getSecurity_transport()const @@ -297,7 +297,7 @@ bool ModifyIpv6GatewaySpecRequest::getSecurity_transport()const void ModifyIpv6GatewaySpecRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyIpv6GatewaySpecRequest::getRequestId()const @@ -308,7 +308,7 @@ std::string ModifyIpv6GatewaySpecRequest::getRequestId()const void ModifyIpv6GatewaySpecRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } std::string ModifyIpv6GatewaySpecRequest::getIpv6GatewayId()const @@ -319,6 +319,6 @@ std::string ModifyIpv6GatewaySpecRequest::getIpv6GatewayId()const void ModifyIpv6GatewaySpecRequest::setIpv6GatewayId(const std::string& ipv6GatewayId) { ipv6GatewayId_ = ipv6GatewayId; - setParameter("Ipv6GatewayId", ipv6GatewayId); + setCoreParameter("Ipv6GatewayId", ipv6GatewayId); } diff --git a/vpc/src/model/ModifyIpv6GatewaySpecResult.cc b/vpc/src/model/ModifyIpv6GatewaySpecResult.cc index 80bf60443..5756779a2 100644 --- a/vpc/src/model/ModifyIpv6GatewaySpecResult.cc +++ b/vpc/src/model/ModifyIpv6GatewaySpecResult.cc @@ -35,10 +35,13 @@ ModifyIpv6GatewaySpecResult::~ModifyIpv6GatewaySpecResult() void ModifyIpv6GatewaySpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc b/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc index 059b34eda..37209ad28 100644 --- a/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc @@ -33,7 +33,7 @@ long ModifyIpv6InternetBandwidthRequest::getResourceOwnerId()const void ModifyIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyIpv6InternetBandwidthRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getClientToken()const void ModifyIpv6InternetBandwidthRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long ModifyIpv6InternetBandwidthRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long ModifyIpv6InternetBandwidthRequest::getCallerParentId()const void ModifyIpv6InternetBandwidthRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool ModifyIpv6InternetBandwidthRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool ModifyIpv6InternetBandwidthRequest::getProxy_original_security_transport()c void ModifyIpv6InternetBandwidthRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string ModifyIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId()const @@ -77,7 +77,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId()cons void ModifyIpv6InternetBandwidthRequest::setIpv6InternetBandwidthId(const std::string& ipv6InternetBandwidthId) { ipv6InternetBandwidthId_ = ipv6InternetBandwidthId; - setParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); + setCoreParameter("Ipv6InternetBandwidthId", ipv6InternetBandwidthId); } std::string ModifyIpv6InternetBandwidthRequest::getProxy_original_source_ip()const @@ -88,7 +88,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getProxy_original_source_ip()con void ModifyIpv6InternetBandwidthRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string ModifyIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const @@ -99,7 +99,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getOwnerIdLoginEmail()const void ModifyIpv6InternetBandwidthRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string ModifyIpv6InternetBandwidthRequest::getCallerType()const @@ -110,7 +110,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getCallerType()const void ModifyIpv6InternetBandwidthRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string ModifyIpv6InternetBandwidthRequest::getAccessKeyId()const @@ -121,7 +121,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getAccessKeyId()const void ModifyIpv6InternetBandwidthRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string ModifyIpv6InternetBandwidthRequest::getResourceGroupId()const @@ -132,7 +132,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getResourceGroupId()const void ModifyIpv6InternetBandwidthRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string ModifyIpv6InternetBandwidthRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getRegionId()const void ModifyIpv6InternetBandwidthRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyIpv6InternetBandwidthRequest::getSecurityToken()const @@ -154,7 +154,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getSecurityToken()const void ModifyIpv6InternetBandwidthRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool ModifyIpv6InternetBandwidthRequest::getEnable()const @@ -165,7 +165,7 @@ bool ModifyIpv6InternetBandwidthRequest::getEnable()const void ModifyIpv6InternetBandwidthRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string ModifyIpv6InternetBandwidthRequest::getRequestContent()const @@ -176,7 +176,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getRequestContent()const void ModifyIpv6InternetBandwidthRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string ModifyIpv6InternetBandwidthRequest::getCallerBidEmail()const @@ -187,7 +187,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getCallerBidEmail()const void ModifyIpv6InternetBandwidthRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string ModifyIpv6InternetBandwidthRequest::getCallerUidEmail()const @@ -198,7 +198,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getCallerUidEmail()const void ModifyIpv6InternetBandwidthRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } long ModifyIpv6InternetBandwidthRequest::getCallerUid()const @@ -209,7 +209,7 @@ long ModifyIpv6InternetBandwidthRequest::getCallerUid()const void ModifyIpv6InternetBandwidthRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string ModifyIpv6InternetBandwidthRequest::getApp_ip()const @@ -220,7 +220,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getApp_ip()const void ModifyIpv6InternetBandwidthRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } long ModifyIpv6InternetBandwidthRequest::getBandwidth()const @@ -231,7 +231,7 @@ long ModifyIpv6InternetBandwidthRequest::getBandwidth()const void ModifyIpv6InternetBandwidthRequest::setBandwidth(long bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string ModifyIpv6InternetBandwidthRequest::getResourceOwnerAccount()const @@ -242,7 +242,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getResourceOwnerAccount()const void ModifyIpv6InternetBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyIpv6InternetBandwidthRequest::getOwnerAccount()const @@ -253,7 +253,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getOwnerAccount()const void ModifyIpv6InternetBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyIpv6InternetBandwidthRequest::getCallerBid()const @@ -264,7 +264,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getCallerBid()const void ModifyIpv6InternetBandwidthRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long ModifyIpv6InternetBandwidthRequest::getOwnerId()const @@ -275,7 +275,7 @@ long ModifyIpv6InternetBandwidthRequest::getOwnerId()const void ModifyIpv6InternetBandwidthRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool ModifyIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const @@ -286,7 +286,7 @@ bool ModifyIpv6InternetBandwidthRequest::getProxy_trust_transport_info()const void ModifyIpv6InternetBandwidthRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool ModifyIpv6InternetBandwidthRequest::getAk_mfa_present()const @@ -297,7 +297,7 @@ bool ModifyIpv6InternetBandwidthRequest::getAk_mfa_present()const void ModifyIpv6InternetBandwidthRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } bool ModifyIpv6InternetBandwidthRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool ModifyIpv6InternetBandwidthRequest::getSecurity_transport()const void ModifyIpv6InternetBandwidthRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string ModifyIpv6InternetBandwidthRequest::getIpv6AddressId()const @@ -319,7 +319,7 @@ std::string ModifyIpv6InternetBandwidthRequest::getIpv6AddressId()const void ModifyIpv6InternetBandwidthRequest::setIpv6AddressId(const std::string& ipv6AddressId) { ipv6AddressId_ = ipv6AddressId; - setParameter("Ipv6AddressId", ipv6AddressId); + setCoreParameter("Ipv6AddressId", ipv6AddressId); } std::string ModifyIpv6InternetBandwidthRequest::getRequestId()const @@ -330,6 +330,6 @@ std::string ModifyIpv6InternetBandwidthRequest::getRequestId()const void ModifyIpv6InternetBandwidthRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/vpc/src/model/ModifyIpv6InternetBandwidthResult.cc b/vpc/src/model/ModifyIpv6InternetBandwidthResult.cc index cd0b71e03..464a0fe94 100644 --- a/vpc/src/model/ModifyIpv6InternetBandwidthResult.cc +++ b/vpc/src/model/ModifyIpv6InternetBandwidthResult.cc @@ -35,10 +35,13 @@ ModifyIpv6InternetBandwidthResult::~ModifyIpv6InternetBandwidthResult() void ModifyIpv6InternetBandwidthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyNatGatewayAttributeRequest.cc b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc index cf2e00383..b4b61d045 100644 --- a/vpc/src/model/ModifyNatGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyNatGatewayAttributeRequest::getResourceOwnerId()const void ModifyNatGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyNatGatewayAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyNatGatewayAttributeRequest::getResourceOwnerAccount()const void ModifyNatGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyNatGatewayAttributeRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyNatGatewayAttributeRequest::getRegionId()const void ModifyNatGatewayAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyNatGatewayAttributeRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyNatGatewayAttributeRequest::getOwnerAccount()const void ModifyNatGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyNatGatewayAttributeRequest::getName()const @@ -77,7 +77,7 @@ std::string ModifyNatGatewayAttributeRequest::getName()const void ModifyNatGatewayAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyNatGatewayAttributeRequest::getDescription()const @@ -88,7 +88,7 @@ std::string ModifyNatGatewayAttributeRequest::getDescription()const void ModifyNatGatewayAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyNatGatewayAttributeRequest::getNatGatewayId()const @@ -99,7 +99,7 @@ std::string ModifyNatGatewayAttributeRequest::getNatGatewayId()const void ModifyNatGatewayAttributeRequest::setNatGatewayId(const std::string& natGatewayId) { natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); + setCoreParameter("NatGatewayId", natGatewayId); } long ModifyNatGatewayAttributeRequest::getOwnerId()const @@ -110,6 +110,6 @@ long ModifyNatGatewayAttributeRequest::getOwnerId()const void ModifyNatGatewayAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyNatGatewayAttributeResult.cc b/vpc/src/model/ModifyNatGatewayAttributeResult.cc index 2d5dba3bf..0905b5def 100644 --- a/vpc/src/model/ModifyNatGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyNatGatewayAttributeResult.cc @@ -35,10 +35,13 @@ ModifyNatGatewayAttributeResult::~ModifyNatGatewayAttributeResult() void ModifyNatGatewayAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyNatGatewaySpecRequest.cc b/vpc/src/model/ModifyNatGatewaySpecRequest.cc index 2c36ee974..25c2dcebf 100644 --- a/vpc/src/model/ModifyNatGatewaySpecRequest.cc +++ b/vpc/src/model/ModifyNatGatewaySpecRequest.cc @@ -33,7 +33,7 @@ long ModifyNatGatewaySpecRequest::getResourceOwnerId()const void ModifyNatGatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } bool ModifyNatGatewaySpecRequest::getAutoPay()const @@ -44,7 +44,7 @@ bool ModifyNatGatewaySpecRequest::getAutoPay()const void ModifyNatGatewaySpecRequest::setAutoPay(bool autoPay) { autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); + setCoreParameter("AutoPay", autoPay ? "true" : "false"); } std::string ModifyNatGatewaySpecRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyNatGatewaySpecRequest::getResourceOwnerAccount()const void ModifyNatGatewaySpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyNatGatewaySpecRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyNatGatewaySpecRequest::getRegionId()const void ModifyNatGatewaySpecRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyNatGatewaySpecRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string ModifyNatGatewaySpecRequest::getClientToken()const void ModifyNatGatewaySpecRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyNatGatewaySpecRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string ModifyNatGatewaySpecRequest::getOwnerAccount()const void ModifyNatGatewaySpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyNatGatewaySpecRequest::getNatGatewayId()const @@ -99,7 +99,7 @@ std::string ModifyNatGatewaySpecRequest::getNatGatewayId()const void ModifyNatGatewaySpecRequest::setNatGatewayId(const std::string& natGatewayId) { natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); + setCoreParameter("NatGatewayId", natGatewayId); } long ModifyNatGatewaySpecRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifyNatGatewaySpecRequest::getOwnerId()const void ModifyNatGatewaySpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyNatGatewaySpecRequest::getSpec()const @@ -121,6 +121,6 @@ std::string ModifyNatGatewaySpecRequest::getSpec()const void ModifyNatGatewaySpecRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } diff --git a/vpc/src/model/ModifyNatGatewaySpecResult.cc b/vpc/src/model/ModifyNatGatewaySpecResult.cc index 17c52c095..063f7eee0 100644 --- a/vpc/src/model/ModifyNatGatewaySpecResult.cc +++ b/vpc/src/model/ModifyNatGatewaySpecResult.cc @@ -35,10 +35,13 @@ ModifyNatGatewaySpecResult::~ModifyNatGatewaySpecResult() void ModifyNatGatewaySpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyNetworkAclAttributesRequest.cc b/vpc/src/model/ModifyNetworkAclAttributesRequest.cc new file mode 100644 index 000000000..86e3a0e1e --- /dev/null +++ b/vpc/src/model/ModifyNetworkAclAttributesRequest.cc @@ -0,0 +1,313 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::ModifyNetworkAclAttributesRequest; + +ModifyNetworkAclAttributesRequest::ModifyNetworkAclAttributesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyNetworkAclAttributes") +{} + +ModifyNetworkAclAttributesRequest::~ModifyNetworkAclAttributesRequest() +{} + +long ModifyNetworkAclAttributesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyNetworkAclAttributesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyNetworkAclAttributesRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyNetworkAclAttributesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long ModifyNetworkAclAttributesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyNetworkAclAttributesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string ModifyNetworkAclAttributesRequest::getDescription()const +{ + return description_; +} + +void ModifyNetworkAclAttributesRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +bool ModifyNetworkAclAttributesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyNetworkAclAttributesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string ModifyNetworkAclAttributesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyNetworkAclAttributesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyNetworkAclAttributesRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyNetworkAclAttributesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string ModifyNetworkAclAttributesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyNetworkAclAttributesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyNetworkAclAttributesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyNetworkAclAttributesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyNetworkAclAttributesRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyNetworkAclAttributesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyNetworkAclAttributesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyNetworkAclAttributesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool ModifyNetworkAclAttributesRequest::getEnable()const +{ + return enable_; +} + +void ModifyNetworkAclAttributesRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string ModifyNetworkAclAttributesRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyNetworkAclAttributesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string ModifyNetworkAclAttributesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyNetworkAclAttributesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyNetworkAclAttributesRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void ModifyNetworkAclAttributesRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string ModifyNetworkAclAttributesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyNetworkAclAttributesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyNetworkAclAttributesRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyNetworkAclAttributesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyNetworkAclAttributesRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyNetworkAclAttributesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string ModifyNetworkAclAttributesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyNetworkAclAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyNetworkAclAttributesRequest::getNetworkAclName()const +{ + return networkAclName_; +} + +void ModifyNetworkAclAttributesRequest::setNetworkAclName(const std::string& networkAclName) +{ + networkAclName_ = networkAclName; + setCoreParameter("NetworkAclName", networkAclName); +} + +std::string ModifyNetworkAclAttributesRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyNetworkAclAttributesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long ModifyNetworkAclAttributesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyNetworkAclAttributesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyNetworkAclAttributesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyNetworkAclAttributesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool ModifyNetworkAclAttributesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyNetworkAclAttributesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool ModifyNetworkAclAttributesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyNetworkAclAttributesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string ModifyNetworkAclAttributesRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyNetworkAclAttributesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vpc/src/model/ModifyNetworkAclAttributesResult.cc b/vpc/src/model/ModifyNetworkAclAttributesResult.cc new file mode 100644 index 000000000..dfbde7451 --- /dev/null +++ b/vpc/src/model/ModifyNetworkAclAttributesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyNetworkAclAttributesResult::ModifyNetworkAclAttributesResult() : + ServiceResult() +{} + +ModifyNetworkAclAttributesResult::ModifyNetworkAclAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNetworkAclAttributesResult::~ModifyNetworkAclAttributesResult() +{} + +void ModifyNetworkAclAttributesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc b/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc index cb9f1ffc8..26ce7f648 100644 --- a/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc +++ b/vpc/src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnec void ModifyPhysicalConnectionAttributeRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) { redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; - setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); + setCoreParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); } std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation()const @@ -44,7 +44,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation()const void ModifyPhysicalConnectionAttributeRequest::setPeerLocation(const std::string& peerLocation) { peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); + setCoreParameter("PeerLocation", peerLocation); } long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId()const @@ -55,7 +55,7 @@ long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId()const void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyPhysicalConnectionAttributeRequest::getPortType()const @@ -66,7 +66,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getPortType()const void ModifyPhysicalConnectionAttributeRequest::setPortType(const std::string& portType) { portType_ = portType; - setParameter("PortType", portType); + setCoreParameter("PortType", portType); } std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode()const @@ -77,7 +77,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode()const void ModifyPhysicalConnectionAttributeRequest::setCircuitCode(const std::string& circuitCode) { circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); + setCoreParameter("CircuitCode", circuitCode); } int ModifyPhysicalConnectionAttributeRequest::getBandwidth()const @@ -88,7 +88,7 @@ int ModifyPhysicalConnectionAttributeRequest::getBandwidth()const void ModifyPhysicalConnectionAttributeRequest::setBandwidth(int bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); + setCoreParameter("Bandwidth", std::to_string(bandwidth)); } std::string ModifyPhysicalConnectionAttributeRequest::getClientToken()const @@ -99,7 +99,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getClientToken()const void ModifyPhysicalConnectionAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount()const @@ -110,7 +110,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount()c void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount()const @@ -121,7 +121,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount()const void ModifyPhysicalConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyPhysicalConnectionAttributeRequest::getDescription()const @@ -132,7 +132,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getDescription()const void ModifyPhysicalConnectionAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyPhysicalConnectionAttributeRequest::getOwnerId()const @@ -143,7 +143,7 @@ long ModifyPhysicalConnectionAttributeRequest::getOwnerId()const void ModifyPhysicalConnectionAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator()const @@ -154,7 +154,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator()const void ModifyPhysicalConnectionAttributeRequest::setLineOperator(const std::string& lineOperator) { lineOperator_ = lineOperator; - setParameter("LineOperator", lineOperator); + setCoreParameter("LineOperator", lineOperator); } std::string ModifyPhysicalConnectionAttributeRequest::getRegionId()const @@ -165,7 +165,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getRegionId()const void ModifyPhysicalConnectionAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId()const @@ -176,7 +176,7 @@ std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId()c void ModifyPhysicalConnectionAttributeRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string ModifyPhysicalConnectionAttributeRequest::getName()const @@ -187,6 +187,6 @@ std::string ModifyPhysicalConnectionAttributeRequest::getName()const void ModifyPhysicalConnectionAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/ModifyPhysicalConnectionAttributeResult.cc b/vpc/src/model/ModifyPhysicalConnectionAttributeResult.cc index 9bf8e5b3a..f71663d0e 100644 --- a/vpc/src/model/ModifyPhysicalConnectionAttributeResult.cc +++ b/vpc/src/model/ModifyPhysicalConnectionAttributeResult.cc @@ -35,10 +35,13 @@ ModifyPhysicalConnectionAttributeResult::~ModifyPhysicalConnectionAttributeResul void ModifyPhysicalConnectionAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyRouteEntryRequest.cc b/vpc/src/model/ModifyRouteEntryRequest.cc index e4d929022..afd3249f6 100644 --- a/vpc/src/model/ModifyRouteEntryRequest.cc +++ b/vpc/src/model/ModifyRouteEntryRequest.cc @@ -33,7 +33,7 @@ std::string ModifyRouteEntryRequest::getRouteEntryName()const void ModifyRouteEntryRequest::setRouteEntryName(const std::string& routeEntryName) { routeEntryName_ = routeEntryName; - setParameter("RouteEntryName", routeEntryName); + setCoreParameter("RouteEntryName", routeEntryName); } std::string ModifyRouteEntryRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyRouteEntryRequest::getRegionId()const void ModifyRouteEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyRouteEntryRequest::getRouteEntryId()const @@ -55,7 +55,7 @@ std::string ModifyRouteEntryRequest::getRouteEntryId()const void ModifyRouteEntryRequest::setRouteEntryId(const std::string& routeEntryId) { routeEntryId_ = routeEntryId; - setParameter("RouteEntryId", routeEntryId); + setCoreParameter("RouteEntryId", routeEntryId); } std::string ModifyRouteEntryRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyRouteEntryRequest::getResourceOwnerAccount()const void ModifyRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyRouteEntryRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyRouteEntryRequest::getOwnerAccount()const void ModifyRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifyRouteEntryRequest::getOwnerId()const @@ -88,6 +88,6 @@ long ModifyRouteEntryRequest::getOwnerId()const void ModifyRouteEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyRouteEntryResult.cc b/vpc/src/model/ModifyRouteEntryResult.cc index 400aaef54..29ca7a66d 100644 --- a/vpc/src/model/ModifyRouteEntryResult.cc +++ b/vpc/src/model/ModifyRouteEntryResult.cc @@ -35,10 +35,13 @@ ModifyRouteEntryResult::~ModifyRouteEntryResult() void ModifyRouteEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyRouteTableAttributesRequest.cc b/vpc/src/model/ModifyRouteTableAttributesRequest.cc index 9450052e6..6e35e880a 100644 --- a/vpc/src/model/ModifyRouteTableAttributesRequest.cc +++ b/vpc/src/model/ModifyRouteTableAttributesRequest.cc @@ -33,7 +33,7 @@ long ModifyRouteTableAttributesRequest::getResourceOwnerId()const void ModifyRouteTableAttributesRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyRouteTableAttributesRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyRouteTableAttributesRequest::getResourceOwnerAccount()const void ModifyRouteTableAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyRouteTableAttributesRequest::getBandwidth()const @@ -55,7 +55,7 @@ std::string ModifyRouteTableAttributesRequest::getBandwidth()const void ModifyRouteTableAttributesRequest::setBandwidth(const std::string& bandwidth) { bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); + setCoreParameter("Bandwidth", bandwidth); } std::string ModifyRouteTableAttributesRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyRouteTableAttributesRequest::getOwnerAccount()const void ModifyRouteTableAttributesRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyRouteTableAttributesRequest::getDescription()const @@ -77,7 +77,7 @@ std::string ModifyRouteTableAttributesRequest::getDescription()const void ModifyRouteTableAttributesRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyRouteTableAttributesRequest::getOwnerId()const @@ -88,7 +88,7 @@ long ModifyRouteTableAttributesRequest::getOwnerId()const void ModifyRouteTableAttributesRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyRouteTableAttributesRequest::getKbpsBandwidth()const @@ -99,7 +99,7 @@ std::string ModifyRouteTableAttributesRequest::getKbpsBandwidth()const void ModifyRouteTableAttributesRequest::setKbpsBandwidth(const std::string& kbpsBandwidth) { kbpsBandwidth_ = kbpsBandwidth; - setParameter("KbpsBandwidth", kbpsBandwidth); + setCoreParameter("KbpsBandwidth", kbpsBandwidth); } std::string ModifyRouteTableAttributesRequest::getRouteTableName()const @@ -110,7 +110,7 @@ std::string ModifyRouteTableAttributesRequest::getRouteTableName()const void ModifyRouteTableAttributesRequest::setRouteTableName(const std::string& routeTableName) { routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); + setCoreParameter("RouteTableName", routeTableName); } std::string ModifyRouteTableAttributesRequest::getRegionId()const @@ -121,7 +121,7 @@ std::string ModifyRouteTableAttributesRequest::getRegionId()const void ModifyRouteTableAttributesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } long ModifyRouteTableAttributesRequest::getResourceUid()const @@ -132,7 +132,7 @@ long ModifyRouteTableAttributesRequest::getResourceUid()const void ModifyRouteTableAttributesRequest::setResourceUid(long resourceUid) { resourceUid_ = resourceUid; - setParameter("ResourceUid", std::to_string(resourceUid)); + setCoreParameter("ResourceUid", std::to_string(resourceUid)); } std::string ModifyRouteTableAttributesRequest::getResourceBid()const @@ -143,7 +143,7 @@ std::string ModifyRouteTableAttributesRequest::getResourceBid()const void ModifyRouteTableAttributesRequest::setResourceBid(const std::string& resourceBid) { resourceBid_ = resourceBid; - setParameter("ResourceBid", resourceBid); + setCoreParameter("ResourceBid", resourceBid); } std::string ModifyRouteTableAttributesRequest::getRouteTableId()const @@ -154,6 +154,6 @@ std::string ModifyRouteTableAttributesRequest::getRouteTableId()const void ModifyRouteTableAttributesRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } diff --git a/vpc/src/model/ModifyRouteTableAttributesResult.cc b/vpc/src/model/ModifyRouteTableAttributesResult.cc index 92599fd1b..3d1c0b0c2 100644 --- a/vpc/src/model/ModifyRouteTableAttributesResult.cc +++ b/vpc/src/model/ModifyRouteTableAttributesResult.cc @@ -35,10 +35,13 @@ ModifyRouteTableAttributesResult::~ModifyRouteTableAttributesResult() void ModifyRouteTableAttributesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); diff --git a/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc b/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc index c7f982312..48b9fa335 100644 --- a/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc +++ b/vpc/src/model/ModifyRouterInterfaceAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId()const void ModifyRouterInterfaceAttributeRequest::setOppositeRouterId(const std::string& oppositeRouterId) { oppositeRouterId_ = oppositeRouterId; - setParameter("OppositeRouterId", oppositeRouterId); + setCoreParameter("OppositeRouterId", oppositeRouterId); } long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId()const void ModifyRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount()cons void ModifyRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } bool ModifyRouterInterfaceAttributeRequest::getDeleteHealthCheckIp()const @@ -66,7 +66,7 @@ bool ModifyRouterInterfaceAttributeRequest::getDeleteHealthCheckIp()const void ModifyRouterInterfaceAttributeRequest::setDeleteHealthCheckIp(bool deleteHealthCheckIp) { deleteHealthCheckIp_ = deleteHealthCheckIp; - setParameter("DeleteHealthCheckIp", std::to_string(deleteHealthCheckIp)); + setCoreParameter("DeleteHealthCheckIp", deleteHealthCheckIp ? "true" : "false"); } std::string ModifyRouterInterfaceAttributeRequest::getDescription()const @@ -77,7 +77,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getDescription()const void ModifyRouterInterfaceAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp()const @@ -88,7 +88,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp()const void ModifyRouterInterfaceAttributeRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) { healthCheckTargetIp_ = healthCheckTargetIp; - setParameter("HealthCheckTargetIp", healthCheckTargetIp); + setCoreParameter("HealthCheckTargetIp", healthCheckTargetIp); } long ModifyRouterInterfaceAttributeRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifyRouterInterfaceAttributeRequest::getOwnerId()const void ModifyRouterInterfaceAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId()const @@ -110,7 +110,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId()const void ModifyRouterInterfaceAttributeRequest::setRouterInterfaceId(const std::string& routerInterfaceId) { routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); + setCoreParameter("RouterInterfaceId", routerInterfaceId); } long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId()const @@ -121,7 +121,7 @@ long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId()const void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId) { oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; - setParameter("OppositeInterfaceOwnerId", std::to_string(oppositeInterfaceOwnerId)); + setCoreParameter("OppositeInterfaceOwnerId", std::to_string(oppositeInterfaceOwnerId)); } std::string ModifyRouterInterfaceAttributeRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getRegionId()const void ModifyRouterInterfaceAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp()const @@ -143,7 +143,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp()const void ModifyRouterInterfaceAttributeRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) { healthCheckSourceIp_ = healthCheckSourceIp; - setParameter("HealthCheckSourceIp", healthCheckSourceIp); + setCoreParameter("HealthCheckSourceIp", healthCheckSourceIp); } std::string ModifyRouterInterfaceAttributeRequest::getName()const @@ -154,7 +154,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getName()const void ModifyRouterInterfaceAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType()const @@ -165,7 +165,7 @@ std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType()const void ModifyRouterInterfaceAttributeRequest::setOppositeRouterType(const std::string& oppositeRouterType) { oppositeRouterType_ = oppositeRouterType; - setParameter("OppositeRouterType", oppositeRouterType); + setCoreParameter("OppositeRouterType", oppositeRouterType); } std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId()const @@ -176,6 +176,6 @@ std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId()const void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) { oppositeInterfaceId_ = oppositeInterfaceId; - setParameter("OppositeInterfaceId", oppositeInterfaceId); + setCoreParameter("OppositeInterfaceId", oppositeInterfaceId); } diff --git a/vpc/src/model/ModifyRouterInterfaceAttributeResult.cc b/vpc/src/model/ModifyRouterInterfaceAttributeResult.cc index de390d926..6405e06b5 100644 --- a/vpc/src/model/ModifyRouterInterfaceAttributeResult.cc +++ b/vpc/src/model/ModifyRouterInterfaceAttributeResult.cc @@ -35,10 +35,13 @@ ModifyRouterInterfaceAttributeResult::~ModifyRouterInterfaceAttributeResult() void ModifyRouterInterfaceAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc b/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc index 9a0e84ad5..551775359 100644 --- a/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc +++ b/vpc/src/model/ModifyRouterInterfaceSpecRequest.cc @@ -33,7 +33,7 @@ long ModifyRouterInterfaceSpecRequest::getResourceOwnerId()const void ModifyRouterInterfaceSpecRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyRouterInterfaceSpecRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string ModifyRouterInterfaceSpecRequest::getRegionId()const void ModifyRouterInterfaceSpecRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount()const void ModifyRouterInterfaceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyRouterInterfaceSpecRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string ModifyRouterInterfaceSpecRequest::getClientToken()const void ModifyRouterInterfaceSpecRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount()const void ModifyRouterInterfaceSpecRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId()const @@ -88,7 +88,7 @@ std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId()const void ModifyRouterInterfaceSpecRequest::setRouterInterfaceId(const std::string& routerInterfaceId) { routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); + setCoreParameter("RouterInterfaceId", routerInterfaceId); } long ModifyRouterInterfaceSpecRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifyRouterInterfaceSpecRequest::getOwnerId()const void ModifyRouterInterfaceSpecRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifyRouterInterfaceSpecRequest::getSpec()const @@ -110,6 +110,6 @@ std::string ModifyRouterInterfaceSpecRequest::getSpec()const void ModifyRouterInterfaceSpecRequest::setSpec(const std::string& spec) { spec_ = spec; - setParameter("Spec", spec); + setCoreParameter("Spec", spec); } diff --git a/vpc/src/model/ModifyRouterInterfaceSpecResult.cc b/vpc/src/model/ModifyRouterInterfaceSpecResult.cc index cc7f75e9f..12cea0e0b 100644 --- a/vpc/src/model/ModifyRouterInterfaceSpecResult.cc +++ b/vpc/src/model/ModifyRouterInterfaceSpecResult.cc @@ -35,10 +35,13 @@ ModifyRouterInterfaceSpecResult::~ModifyRouterInterfaceSpecResult() void ModifyRouterInterfaceSpecResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Spec"].isNull()) spec_ = value["Spec"].asString(); diff --git a/vpc/src/model/ModifySnatEntryRequest.cc b/vpc/src/model/ModifySnatEntryRequest.cc index 0b7e151ce..82d65e82c 100644 --- a/vpc/src/model/ModifySnatEntryRequest.cc +++ b/vpc/src/model/ModifySnatEntryRequest.cc @@ -33,7 +33,7 @@ long ModifySnatEntryRequest::getResourceOwnerId()const void ModifySnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifySnatEntryRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifySnatEntryRequest::getResourceOwnerAccount()const void ModifySnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifySnatEntryRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifySnatEntryRequest::getRegionId()const void ModifySnatEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifySnatEntryRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifySnatEntryRequest::getOwnerAccount()const void ModifySnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifySnatEntryRequest::getSnatEntryName()const @@ -77,7 +77,7 @@ std::string ModifySnatEntryRequest::getSnatEntryName()const void ModifySnatEntryRequest::setSnatEntryName(const std::string& snatEntryName) { snatEntryName_ = snatEntryName; - setParameter("SnatEntryName", snatEntryName); + setCoreParameter("SnatEntryName", snatEntryName); } std::string ModifySnatEntryRequest::getSnatTableId()const @@ -88,7 +88,7 @@ std::string ModifySnatEntryRequest::getSnatTableId()const void ModifySnatEntryRequest::setSnatTableId(const std::string& snatTableId) { snatTableId_ = snatTableId; - setParameter("SnatTableId", snatTableId); + setCoreParameter("SnatTableId", snatTableId); } std::string ModifySnatEntryRequest::getSnatEntryId()const @@ -99,7 +99,7 @@ std::string ModifySnatEntryRequest::getSnatEntryId()const void ModifySnatEntryRequest::setSnatEntryId(const std::string& snatEntryId) { snatEntryId_ = snatEntryId; - setParameter("SnatEntryId", snatEntryId); + setCoreParameter("SnatEntryId", snatEntryId); } long ModifySnatEntryRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifySnatEntryRequest::getOwnerId()const void ModifySnatEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifySnatEntryRequest::getSnatIp()const @@ -121,6 +121,6 @@ std::string ModifySnatEntryRequest::getSnatIp()const void ModifySnatEntryRequest::setSnatIp(const std::string& snatIp) { snatIp_ = snatIp; - setParameter("SnatIp", snatIp); + setCoreParameter("SnatIp", snatIp); } diff --git a/vpc/src/model/ModifySnatEntryResult.cc b/vpc/src/model/ModifySnatEntryResult.cc index 6e5864254..4239a3a62 100644 --- a/vpc/src/model/ModifySnatEntryResult.cc +++ b/vpc/src/model/ModifySnatEntryResult.cc @@ -35,10 +35,13 @@ ModifySnatEntryResult::~ModifySnatEntryResult() void ModifySnatEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifySslVpnClientCertRequest.cc b/vpc/src/model/ModifySslVpnClientCertRequest.cc index 85c68535d..95b956760 100644 --- a/vpc/src/model/ModifySslVpnClientCertRequest.cc +++ b/vpc/src/model/ModifySslVpnClientCertRequest.cc @@ -33,7 +33,7 @@ long ModifySslVpnClientCertRequest::getResourceOwnerId()const void ModifySslVpnClientCertRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifySslVpnClientCertRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifySslVpnClientCertRequest::getResourceOwnerAccount()const void ModifySslVpnClientCertRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifySslVpnClientCertRequest::getClientToken()const @@ -55,7 +55,7 @@ std::string ModifySslVpnClientCertRequest::getClientToken()const void ModifySslVpnClientCertRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifySslVpnClientCertRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifySslVpnClientCertRequest::getRegionId()const void ModifySslVpnClientCertRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifySslVpnClientCertRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifySslVpnClientCertRequest::getOwnerAccount()const void ModifySslVpnClientCertRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifySslVpnClientCertRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifySslVpnClientCertRequest::getName()const void ModifySslVpnClientCertRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } long ModifySslVpnClientCertRequest::getOwnerId()const @@ -99,7 +99,7 @@ long ModifySslVpnClientCertRequest::getOwnerId()const void ModifySslVpnClientCertRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifySslVpnClientCertRequest::getSslVpnClientCertId()const @@ -110,6 +110,6 @@ std::string ModifySslVpnClientCertRequest::getSslVpnClientCertId()const void ModifySslVpnClientCertRequest::setSslVpnClientCertId(const std::string& sslVpnClientCertId) { sslVpnClientCertId_ = sslVpnClientCertId; - setParameter("SslVpnClientCertId", sslVpnClientCertId); + setCoreParameter("SslVpnClientCertId", sslVpnClientCertId); } diff --git a/vpc/src/model/ModifySslVpnClientCertResult.cc b/vpc/src/model/ModifySslVpnClientCertResult.cc index fe89eb011..f7b3a34fb 100644 --- a/vpc/src/model/ModifySslVpnClientCertResult.cc +++ b/vpc/src/model/ModifySslVpnClientCertResult.cc @@ -35,10 +35,13 @@ ModifySslVpnClientCertResult::~ModifySslVpnClientCertResult() void ModifySslVpnClientCertResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Name"].isNull()) name_ = value["Name"].asString(); diff --git a/vpc/src/model/ModifySslVpnServerRequest.cc b/vpc/src/model/ModifySslVpnServerRequest.cc index 277f566b0..c2c88b5cc 100644 --- a/vpc/src/model/ModifySslVpnServerRequest.cc +++ b/vpc/src/model/ModifySslVpnServerRequest.cc @@ -33,7 +33,7 @@ std::string ModifySslVpnServerRequest::getCipher()const void ModifySslVpnServerRequest::setCipher(const std::string& cipher) { cipher_ = cipher; - setParameter("Cipher", cipher); + setCoreParameter("Cipher", cipher); } long ModifySslVpnServerRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifySslVpnServerRequest::getResourceOwnerId()const void ModifySslVpnServerRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifySslVpnServerRequest::getClientIpPool()const @@ -55,7 +55,7 @@ std::string ModifySslVpnServerRequest::getClientIpPool()const void ModifySslVpnServerRequest::setClientIpPool(const std::string& clientIpPool) { clientIpPool_ = clientIpPool; - setParameter("ClientIpPool", clientIpPool); + setCoreParameter("ClientIpPool", clientIpPool); } std::string ModifySslVpnServerRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifySslVpnServerRequest::getResourceOwnerAccount()const void ModifySslVpnServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifySslVpnServerRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string ModifySslVpnServerRequest::getClientToken()const void ModifySslVpnServerRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } bool ModifySslVpnServerRequest::getCompress()const @@ -88,7 +88,7 @@ bool ModifySslVpnServerRequest::getCompress()const void ModifySslVpnServerRequest::setCompress(bool compress) { compress_ = compress; - setParameter("Compress", std::to_string(compress)); + setCoreParameter("Compress", compress ? "true" : "false"); } std::string ModifySslVpnServerRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string ModifySslVpnServerRequest::getOwnerAccount()const void ModifySslVpnServerRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long ModifySslVpnServerRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifySslVpnServerRequest::getOwnerId()const void ModifySslVpnServerRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string ModifySslVpnServerRequest::getSslVpnServerId()const @@ -121,7 +121,7 @@ std::string ModifySslVpnServerRequest::getSslVpnServerId()const void ModifySslVpnServerRequest::setSslVpnServerId(const std::string& sslVpnServerId) { sslVpnServerId_ = sslVpnServerId; - setParameter("SslVpnServerId", sslVpnServerId); + setCoreParameter("SslVpnServerId", sslVpnServerId); } std::string ModifySslVpnServerRequest::getLocalSubnet()const @@ -132,7 +132,7 @@ std::string ModifySslVpnServerRequest::getLocalSubnet()const void ModifySslVpnServerRequest::setLocalSubnet(const std::string& localSubnet) { localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); + setCoreParameter("LocalSubnet", localSubnet); } std::string ModifySslVpnServerRequest::getRegionId()const @@ -143,7 +143,7 @@ std::string ModifySslVpnServerRequest::getRegionId()const void ModifySslVpnServerRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } int ModifySslVpnServerRequest::getPort()const @@ -154,7 +154,7 @@ int ModifySslVpnServerRequest::getPort()const void ModifySslVpnServerRequest::setPort(int port) { port_ = port; - setParameter("Port", std::to_string(port)); + setCoreParameter("Port", std::to_string(port)); } std::string ModifySslVpnServerRequest::getProto()const @@ -165,7 +165,7 @@ std::string ModifySslVpnServerRequest::getProto()const void ModifySslVpnServerRequest::setProto(const std::string& proto) { proto_ = proto; - setParameter("Proto", proto); + setCoreParameter("Proto", proto); } std::string ModifySslVpnServerRequest::getName()const @@ -176,6 +176,6 @@ std::string ModifySslVpnServerRequest::getName()const void ModifySslVpnServerRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/ModifySslVpnServerResult.cc b/vpc/src/model/ModifySslVpnServerResult.cc index 3b1d4055b..776675a82 100644 --- a/vpc/src/model/ModifySslVpnServerResult.cc +++ b/vpc/src/model/ModifySslVpnServerResult.cc @@ -35,10 +35,13 @@ ModifySslVpnServerResult::~ModifySslVpnServerResult() void ModifySslVpnServerResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/vpc/src/model/ModifyVRouterAttributeRequest.cc b/vpc/src/model/ModifyVRouterAttributeRequest.cc index a10a94b5c..b37f0933f 100644 --- a/vpc/src/model/ModifyVRouterAttributeRequest.cc +++ b/vpc/src/model/ModifyVRouterAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyVRouterAttributeRequest::getVRouterName()const void ModifyVRouterAttributeRequest::setVRouterName(const std::string& vRouterName) { vRouterName_ = vRouterName; - setParameter("VRouterName", vRouterName); + setCoreParameter("VRouterName", vRouterName); } long ModifyVRouterAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyVRouterAttributeRequest::getResourceOwnerId()const void ModifyVRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyVRouterAttributeRequest::getVRouterId()const @@ -55,7 +55,7 @@ std::string ModifyVRouterAttributeRequest::getVRouterId()const void ModifyVRouterAttributeRequest::setVRouterId(const std::string& vRouterId) { vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); + setCoreParameter("VRouterId", vRouterId); } std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount()const void ModifyVRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyVRouterAttributeRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string ModifyVRouterAttributeRequest::getRegionId()const void ModifyVRouterAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyVRouterAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string ModifyVRouterAttributeRequest::getOwnerAccount()const void ModifyVRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyVRouterAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyVRouterAttributeRequest::getDescription()const void ModifyVRouterAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyVRouterAttributeRequest::getOwnerId()const @@ -110,6 +110,6 @@ long ModifyVRouterAttributeRequest::getOwnerId()const void ModifyVRouterAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyVRouterAttributeResult.cc b/vpc/src/model/ModifyVRouterAttributeResult.cc index 37397aeb8..640f18f3a 100644 --- a/vpc/src/model/ModifyVRouterAttributeResult.cc +++ b/vpc/src/model/ModifyVRouterAttributeResult.cc @@ -35,10 +35,13 @@ ModifyVRouterAttributeResult::~ModifyVRouterAttributeResult() void ModifyVRouterAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyVSwitchAttributeRequest.cc b/vpc/src/model/ModifyVSwitchAttributeRequest.cc index 2246dd73f..d5623dabc 100644 --- a/vpc/src/model/ModifyVSwitchAttributeRequest.cc +++ b/vpc/src/model/ModifyVSwitchAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyVSwitchAttributeRequest::getVSwitchId()const void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } long ModifyVSwitchAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyVSwitchAttributeRequest::getResourceOwnerId()const void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount()const void ModifyVSwitchAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyVSwitchAttributeRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyVSwitchAttributeRequest::getRegionId()const void ModifyVSwitchAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyVSwitchAttributeRequest::getVSwitchName()const @@ -77,7 +77,7 @@ std::string ModifyVSwitchAttributeRequest::getVSwitchName()const void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string& vSwitchName) { vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); + setCoreParameter("VSwitchName", vSwitchName); } std::string ModifyVSwitchAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string ModifyVSwitchAttributeRequest::getOwnerAccount()const void ModifyVSwitchAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyVSwitchAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyVSwitchAttributeRequest::getDescription()const void ModifyVSwitchAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyVSwitchAttributeRequest::getOwnerId()const @@ -110,7 +110,7 @@ long ModifyVSwitchAttributeRequest::getOwnerId()const void ModifyVSwitchAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } int ModifyVSwitchAttributeRequest::getIpv6CidrBlock()const @@ -121,6 +121,6 @@ int ModifyVSwitchAttributeRequest::getIpv6CidrBlock()const void ModifyVSwitchAttributeRequest::setIpv6CidrBlock(int ipv6CidrBlock) { ipv6CidrBlock_ = ipv6CidrBlock; - setParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock)); + setCoreParameter("Ipv6CidrBlock", std::to_string(ipv6CidrBlock)); } diff --git a/vpc/src/model/ModifyVSwitchAttributeResult.cc b/vpc/src/model/ModifyVSwitchAttributeResult.cc index 79fd6d2e4..1738574ef 100644 --- a/vpc/src/model/ModifyVSwitchAttributeResult.cc +++ b/vpc/src/model/ModifyVSwitchAttributeResult.cc @@ -35,10 +35,13 @@ ModifyVSwitchAttributeResult::~ModifyVSwitchAttributeResult() void ModifyVSwitchAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc index f6667f7c7..9a473bdf5 100644 --- a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc +++ b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId()const void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode()const @@ -44,7 +44,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode()const void ModifyVirtualBorderRouterAttributeRequest::setCircuitCode(const std::string& circuitCode) { circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); + setCoreParameter("CircuitCode", circuitCode); } std::string ModifyVirtualBorderRouterAttributeRequest::getAssociatedPhysicalConnections()const @@ -55,7 +55,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getAssociatedPhysicalConn void ModifyVirtualBorderRouterAttributeRequest::setAssociatedPhysicalConnections(const std::string& associatedPhysicalConnections) { associatedPhysicalConnections_ = associatedPhysicalConnections; - setParameter("AssociatedPhysicalConnections", associatedPhysicalConnections); + setCoreParameter("AssociatedPhysicalConnections", associatedPhysicalConnections); } int ModifyVirtualBorderRouterAttributeRequest::getVlanId()const @@ -66,7 +66,7 @@ int ModifyVirtualBorderRouterAttributeRequest::getVlanId()const void ModifyVirtualBorderRouterAttributeRequest::setVlanId(int vlanId) { vlanId_ = vlanId; - setParameter("VlanId", std::to_string(vlanId)); + setCoreParameter("VlanId", std::to_string(vlanId)); } std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount() void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken()const void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount()const void ModifyVirtualBorderRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyVirtualBorderRouterAttributeRequest::getDescription()const @@ -110,7 +110,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getDescription()const void ModifyVirtualBorderRouterAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId()const @@ -121,7 +121,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId()const void ModifyVirtualBorderRouterAttributeRequest::setVbrId(const std::string& vbrId) { vbrId_ = vbrId; - setParameter("VbrId", vbrId); + setCoreParameter("VbrId", vbrId); } long ModifyVirtualBorderRouterAttributeRequest::getOwnerId()const @@ -132,7 +132,18 @@ long ModifyVirtualBorderRouterAttributeRequest::getOwnerId()const void ModifyVirtualBorderRouterAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +long ModifyVirtualBorderRouterAttributeRequest::getMinRxInterval()const +{ + return minRxInterval_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setMinRxInterval(long minRxInterval) +{ + minRxInterval_ = minRxInterval; + setCoreParameter("MinRxInterval", std::to_string(minRxInterval)); } std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp()const @@ -143,7 +154,18 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp()const void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::string& peerGatewayIp) { peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); + setCoreParameter("PeerGatewayIp", peerGatewayIp); +} + +long ModifyVirtualBorderRouterAttributeRequest::getDetectMultiplier()const +{ + return detectMultiplier_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setDetectMultiplier(long detectMultiplier) +{ + detectMultiplier_ = detectMultiplier; + setCoreParameter("DetectMultiplier", std::to_string(detectMultiplier)); } std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask()const @@ -154,7 +176,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask()con void ModifyVirtualBorderRouterAttributeRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) { peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); + setCoreParameter("PeeringSubnetMask", peeringSubnetMask); } std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId()const @@ -165,7 +187,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId()const void ModifyVirtualBorderRouterAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyVirtualBorderRouterAttributeRequest::getName()const @@ -176,7 +198,7 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getName()const void ModifyVirtualBorderRouterAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp()const @@ -187,6 +209,17 @@ std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp()const void ModifyVirtualBorderRouterAttributeRequest::setLocalGatewayIp(const std::string& localGatewayIp) { localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); + setCoreParameter("LocalGatewayIp", localGatewayIp); +} + +long ModifyVirtualBorderRouterAttributeRequest::getMinTxInterval()const +{ + return minTxInterval_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setMinTxInterval(long minTxInterval) +{ + minTxInterval_ = minTxInterval; + setCoreParameter("MinTxInterval", std::to_string(minTxInterval)); } diff --git a/vpc/src/model/ModifyVirtualBorderRouterAttributeResult.cc b/vpc/src/model/ModifyVirtualBorderRouterAttributeResult.cc index 993c23607..d3698d9c4 100644 --- a/vpc/src/model/ModifyVirtualBorderRouterAttributeResult.cc +++ b/vpc/src/model/ModifyVirtualBorderRouterAttributeResult.cc @@ -35,10 +35,13 @@ ModifyVirtualBorderRouterAttributeResult::~ModifyVirtualBorderRouterAttributeRes void ModifyVirtualBorderRouterAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyVpcAttributeRequest.cc b/vpc/src/model/ModifyVpcAttributeRequest.cc index 901bb70df..f0eb505e5 100644 --- a/vpc/src/model/ModifyVpcAttributeRequest.cc +++ b/vpc/src/model/ModifyVpcAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyVpcAttributeRequest::getVpcName()const void ModifyVpcAttributeRequest::setVpcName(const std::string& vpcName) { vpcName_ = vpcName; - setParameter("VpcName", vpcName); + setCoreParameter("VpcName", vpcName); } long ModifyVpcAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyVpcAttributeRequest::getResourceOwnerId()const void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyVpcAttributeRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string ModifyVpcAttributeRequest::getRegionId()const void ModifyVpcAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyVpcAttributeRequest::getVpcId()const @@ -77,7 +77,7 @@ std::string ModifyVpcAttributeRequest::getVpcId()const void ModifyVpcAttributeRequest::setVpcId(const std::string& vpcId) { vpcId_ = vpcId; - setParameter("VpcId", vpcId); + setCoreParameter("VpcId", vpcId); } std::string ModifyVpcAttributeRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string ModifyVpcAttributeRequest::getOwnerAccount()const void ModifyVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyVpcAttributeRequest::getCidrBlock()const @@ -99,7 +99,7 @@ std::string ModifyVpcAttributeRequest::getCidrBlock()const void ModifyVpcAttributeRequest::setCidrBlock(const std::string& cidrBlock) { cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); + setCoreParameter("CidrBlock", cidrBlock); } bool ModifyVpcAttributeRequest::getEnableIPv6()const @@ -110,7 +110,7 @@ bool ModifyVpcAttributeRequest::getEnableIPv6()const void ModifyVpcAttributeRequest::setEnableIPv6(bool enableIPv6) { enableIPv6_ = enableIPv6; - setParameter("EnableIPv6", std::to_string(enableIPv6)); + setCoreParameter("EnableIPv6", enableIPv6 ? "true" : "false"); } std::string ModifyVpcAttributeRequest::getDescription()const @@ -121,7 +121,7 @@ std::string ModifyVpcAttributeRequest::getDescription()const void ModifyVpcAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } long ModifyVpcAttributeRequest::getOwnerId()const @@ -132,6 +132,6 @@ long ModifyVpcAttributeRequest::getOwnerId()const void ModifyVpcAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyVpcAttributeResult.cc b/vpc/src/model/ModifyVpcAttributeResult.cc index bbca30a38..e38362f11 100644 --- a/vpc/src/model/ModifyVpcAttributeResult.cc +++ b/vpc/src/model/ModifyVpcAttributeResult.cc @@ -35,10 +35,13 @@ ModifyVpcAttributeResult::~ModifyVpcAttributeResult() void ModifyVpcAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc index 3e0950455..5e68fbeae 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc @@ -33,7 +33,7 @@ std::string ModifyVpnConnectionAttributeRequest::getIkeConfig()const void ModifyVpnConnectionAttributeRequest::setIkeConfig(const std::string& ikeConfig) { ikeConfig_ = ikeConfig; - setParameter("IkeConfig", ikeConfig); + setCoreParameter("IkeConfig", ikeConfig); } long ModifyVpnConnectionAttributeRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long ModifyVpnConnectionAttributeRequest::getResourceOwnerId()const void ModifyVpnConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyVpnConnectionAttributeRequest::getRemoteSubnet()const @@ -55,7 +55,7 @@ std::string ModifyVpnConnectionAttributeRequest::getRemoteSubnet()const void ModifyVpnConnectionAttributeRequest::setRemoteSubnet(const std::string& remoteSubnet) { remoteSubnet_ = remoteSubnet; - setParameter("RemoteSubnet", remoteSubnet); + setCoreParameter("RemoteSubnet", remoteSubnet); } bool ModifyVpnConnectionAttributeRequest::getEffectImmediately()const @@ -66,7 +66,18 @@ bool ModifyVpnConnectionAttributeRequest::getEffectImmediately()const void ModifyVpnConnectionAttributeRequest::setEffectImmediately(bool effectImmediately) { effectImmediately_ = effectImmediately; - setParameter("EffectImmediately", std::to_string(effectImmediately)); + setCoreParameter("EffectImmediately", effectImmediately ? "true" : "false"); +} + +bool ModifyVpnConnectionAttributeRequest::getAutoConfigRoute()const +{ + return autoConfigRoute_; +} + +void ModifyVpnConnectionAttributeRequest::setAutoConfigRoute(bool autoConfigRoute) +{ + autoConfigRoute_ = autoConfigRoute; + setCoreParameter("AutoConfigRoute", autoConfigRoute ? "true" : "false"); } std::string ModifyVpnConnectionAttributeRequest::getResourceOwnerAccount()const @@ -77,7 +88,7 @@ std::string ModifyVpnConnectionAttributeRequest::getResourceOwnerAccount()const void ModifyVpnConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyVpnConnectionAttributeRequest::getClientToken()const @@ -88,7 +99,7 @@ std::string ModifyVpnConnectionAttributeRequest::getClientToken()const void ModifyVpnConnectionAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyVpnConnectionAttributeRequest::getOwnerAccount()const @@ -99,7 +110,7 @@ std::string ModifyVpnConnectionAttributeRequest::getOwnerAccount()const void ModifyVpnConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyVpnConnectionAttributeRequest::getIpsecConfig()const @@ -110,7 +121,7 @@ std::string ModifyVpnConnectionAttributeRequest::getIpsecConfig()const void ModifyVpnConnectionAttributeRequest::setIpsecConfig(const std::string& ipsecConfig) { ipsecConfig_ = ipsecConfig; - setParameter("IpsecConfig", ipsecConfig); + setCoreParameter("IpsecConfig", ipsecConfig); } long ModifyVpnConnectionAttributeRequest::getOwnerId()const @@ -121,7 +132,18 @@ long ModifyVpnConnectionAttributeRequest::getOwnerId()const void ModifyVpnConnectionAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyVpnConnectionAttributeRequest::getHealthCheckConfig()const +{ + return healthCheckConfig_; +} + +void ModifyVpnConnectionAttributeRequest::setHealthCheckConfig(const std::string& healthCheckConfig) +{ + healthCheckConfig_ = healthCheckConfig; + setCoreParameter("HealthCheckConfig", healthCheckConfig); } std::string ModifyVpnConnectionAttributeRequest::getLocalSubnet()const @@ -132,7 +154,7 @@ std::string ModifyVpnConnectionAttributeRequest::getLocalSubnet()const void ModifyVpnConnectionAttributeRequest::setLocalSubnet(const std::string& localSubnet) { localSubnet_ = localSubnet; - setParameter("LocalSubnet", localSubnet); + setCoreParameter("LocalSubnet", localSubnet); } std::string ModifyVpnConnectionAttributeRequest::getRegionId()const @@ -143,7 +165,7 @@ std::string ModifyVpnConnectionAttributeRequest::getRegionId()const void ModifyVpnConnectionAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyVpnConnectionAttributeRequest::getVpnConnectionId()const @@ -154,7 +176,7 @@ std::string ModifyVpnConnectionAttributeRequest::getVpnConnectionId()const void ModifyVpnConnectionAttributeRequest::setVpnConnectionId(const std::string& vpnConnectionId) { vpnConnectionId_ = vpnConnectionId; - setParameter("VpnConnectionId", vpnConnectionId); + setCoreParameter("VpnConnectionId", vpnConnectionId); } std::string ModifyVpnConnectionAttributeRequest::getName()const @@ -165,6 +187,6 @@ std::string ModifyVpnConnectionAttributeRequest::getName()const void ModifyVpnConnectionAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } diff --git a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc index 6ba00f713..5df2f57cd 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc @@ -35,10 +35,13 @@ ModifyVpnConnectionAttributeResult::~ModifyVpnConnectionAttributeResult() void ModifyVpnConnectionAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["Psk"].isNull()) @@ -68,6 +71,17 @@ void ModifyVpnConnectionAttributeResult::parse(const std::string &payload) ipsecConfig_.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); if(!ipsecConfigNode["IpsecLifetime"].isNull()) ipsecConfig_.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); + auto vcoHealthCheckNode = value["VcoHealthCheck"]; + if(!vcoHealthCheckNode["Enable"].isNull()) + vcoHealthCheck_.enable = vcoHealthCheckNode["Enable"].asString(); + if(!vcoHealthCheckNode["Sip"].isNull()) + vcoHealthCheck_.sip = vcoHealthCheckNode["Sip"].asString(); + if(!vcoHealthCheckNode["Dip"].isNull()) + vcoHealthCheck_.dip = vcoHealthCheckNode["Dip"].asString(); + if(!vcoHealthCheckNode["Interval"].isNull()) + vcoHealthCheck_.interval = std::stoi(vcoHealthCheckNode["Interval"].asString()); + if(!vcoHealthCheckNode["Retry"].isNull()) + vcoHealthCheck_.retry = std::stoi(vcoHealthCheckNode["Retry"].asString()); if(!value["VpnConnectionId"].isNull()) vpnConnectionId_ = value["VpnConnectionId"].asString(); if(!value["CustomerGatewayId"].isNull()) @@ -99,6 +113,11 @@ bool ModifyVpnConnectionAttributeResult::getEffectImmediately()const return effectImmediately_; } +ModifyVpnConnectionAttributeResult::VcoHealthCheck ModifyVpnConnectionAttributeResult::getVcoHealthCheck()const +{ + return vcoHealthCheck_; +} + std::string ModifyVpnConnectionAttributeResult::getRemoteSubnet()const { return remoteSubnet_; diff --git a/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc index 6dd6bbb0a..7f9a1a340 100644 --- a/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnGatewayAttributeRequest.cc @@ -33,7 +33,7 @@ long ModifyVpnGatewayAttributeRequest::getResourceOwnerId()const void ModifyVpnGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ModifyVpnGatewayAttributeRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ModifyVpnGatewayAttributeRequest::getResourceOwnerAccount()const void ModifyVpnGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ModifyVpnGatewayAttributeRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ModifyVpnGatewayAttributeRequest::getRegionId()const void ModifyVpnGatewayAttributeRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ModifyVpnGatewayAttributeRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string ModifyVpnGatewayAttributeRequest::getClientToken()const void ModifyVpnGatewayAttributeRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string ModifyVpnGatewayAttributeRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string ModifyVpnGatewayAttributeRequest::getOwnerAccount()const void ModifyVpnGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ModifyVpnGatewayAttributeRequest::getName()const @@ -88,7 +88,7 @@ std::string ModifyVpnGatewayAttributeRequest::getName()const void ModifyVpnGatewayAttributeRequest::setName(const std::string& name) { name_ = name; - setParameter("Name", name); + setCoreParameter("Name", name); } std::string ModifyVpnGatewayAttributeRequest::getDescription()const @@ -99,7 +99,7 @@ std::string ModifyVpnGatewayAttributeRequest::getDescription()const void ModifyVpnGatewayAttributeRequest::setDescription(const std::string& description) { description_ = description; - setParameter("Description", description); + setCoreParameter("Description", description); } std::string ModifyVpnGatewayAttributeRequest::getVpnGatewayId()const @@ -110,7 +110,7 @@ std::string ModifyVpnGatewayAttributeRequest::getVpnGatewayId()const void ModifyVpnGatewayAttributeRequest::setVpnGatewayId(const std::string& vpnGatewayId) { vpnGatewayId_ = vpnGatewayId; - setParameter("VpnGatewayId", vpnGatewayId); + setCoreParameter("VpnGatewayId", vpnGatewayId); } long ModifyVpnGatewayAttributeRequest::getOwnerId()const @@ -121,6 +121,6 @@ long ModifyVpnGatewayAttributeRequest::getOwnerId()const void ModifyVpnGatewayAttributeRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc index 490f7863b..8acf20662 100644 --- a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc @@ -35,10 +35,13 @@ ModifyVpnGatewayAttributeResult::~ModifyVpnGatewayAttributeResult() void ModifyVpnGatewayAttributeResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["VpnGatewayId"].isNull()) vpnGatewayId_ = value["VpnGatewayId"].asString(); diff --git a/vpc/src/model/ModifyVpnPbrRouteEntryWeightRequest.cc b/vpc/src/model/ModifyVpnPbrRouteEntryWeightRequest.cc new file mode 100644 index 000000000..133228c2e --- /dev/null +++ b/vpc/src/model/ModifyVpnPbrRouteEntryWeightRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::ModifyVpnPbrRouteEntryWeightRequest; + +ModifyVpnPbrRouteEntryWeightRequest::ModifyVpnPbrRouteEntryWeightRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnPbrRouteEntryWeight") +{} + +ModifyVpnPbrRouteEntryWeightRequest::~ModifyVpnPbrRouteEntryWeightRequest() +{} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteSource()const +{ + return routeSource_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setRouteSource(const std::string& routeSource) +{ + routeSource_ = routeSource; + setCoreParameter("RouteSource", routeSource); +} + +long ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int ModifyVpnPbrRouteEntryWeightRequest::getWeight()const +{ + return weight_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setWeight(int weight) +{ + weight_ = weight; + setCoreParameter("Weight", std::to_string(weight)); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long ModifyVpnPbrRouteEntryWeightRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyVpnPbrRouteEntryWeightRequest::getNewWeight()const +{ + return newWeight_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setNewWeight(int newWeight) +{ + newWeight_ = newWeight; + setCoreParameter("NewWeight", std::to_string(newWeight)); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteDest()const +{ + return routeDest_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setRouteDest(const std::string& routeDest) +{ + routeDest_ = routeDest; + setCoreParameter("RouteDest", routeDest); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getNextHop()const +{ + return nextHop_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setNextHop(const std::string& nextHop) +{ + nextHop_ = nextHop; + setCoreParameter("NextHop", nextHop); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyVpnPbrRouteEntryWeightRequest::getOverlayMode()const +{ + return overlayMode_; +} + +void ModifyVpnPbrRouteEntryWeightRequest::setOverlayMode(const std::string& overlayMode) +{ + overlayMode_ = overlayMode; + setCoreParameter("OverlayMode", overlayMode); +} + diff --git a/vpc/src/model/ModifyVpnPbrRouteEntryWeightResult.cc b/vpc/src/model/ModifyVpnPbrRouteEntryWeightResult.cc new file mode 100644 index 000000000..d329c682f --- /dev/null +++ b/vpc/src/model/ModifyVpnPbrRouteEntryWeightResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpnPbrRouteEntryWeightResult::ModifyVpnPbrRouteEntryWeightResult() : + ServiceResult() +{} + +ModifyVpnPbrRouteEntryWeightResult::ModifyVpnPbrRouteEntryWeightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpnPbrRouteEntryWeightResult::~ModifyVpnPbrRouteEntryWeightResult() +{} + +void ModifyVpnPbrRouteEntryWeightResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVpnRouteEntryWeightRequest.cc b/vpc/src/model/ModifyVpnRouteEntryWeightRequest.cc new file mode 100644 index 000000000..caaf0137c --- /dev/null +++ b/vpc/src/model/ModifyVpnRouteEntryWeightRequest.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 + +using AlibabaCloud::Vpc::Model::ModifyVpnRouteEntryWeightRequest; + +ModifyVpnRouteEntryWeightRequest::ModifyVpnRouteEntryWeightRequest() : + RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnRouteEntryWeight") +{} + +ModifyVpnRouteEntryWeightRequest::~ModifyVpnRouteEntryWeightRequest() +{} + +long ModifyVpnRouteEntryWeightRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVpnRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVpnRouteEntryWeightRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVpnRouteEntryWeightRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVpnRouteEntryWeightRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyVpnRouteEntryWeightRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string ModifyVpnRouteEntryWeightRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVpnRouteEntryWeightRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int ModifyVpnRouteEntryWeightRequest::getWeight()const +{ + return weight_; +} + +void ModifyVpnRouteEntryWeightRequest::setWeight(int weight) +{ + weight_ = weight; + setCoreParameter("Weight", std::to_string(weight)); +} + +std::string ModifyVpnRouteEntryWeightRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void ModifyVpnRouteEntryWeightRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long ModifyVpnRouteEntryWeightRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVpnRouteEntryWeightRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyVpnRouteEntryWeightRequest::getNewWeight()const +{ + return newWeight_; +} + +void ModifyVpnRouteEntryWeightRequest::setNewWeight(int newWeight) +{ + newWeight_ = newWeight; + setCoreParameter("NewWeight", std::to_string(newWeight)); +} + +std::string ModifyVpnRouteEntryWeightRequest::getRouteDest()const +{ + return routeDest_; +} + +void ModifyVpnRouteEntryWeightRequest::setRouteDest(const std::string& routeDest) +{ + routeDest_ = routeDest; + setCoreParameter("RouteDest", routeDest); +} + +std::string ModifyVpnRouteEntryWeightRequest::getNextHop()const +{ + return nextHop_; +} + +void ModifyVpnRouteEntryWeightRequest::setNextHop(const std::string& nextHop) +{ + nextHop_ = nextHop; + setCoreParameter("NextHop", nextHop); +} + +std::string ModifyVpnRouteEntryWeightRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyVpnRouteEntryWeightRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyVpnRouteEntryWeightRequest::getOverlayMode()const +{ + return overlayMode_; +} + +void ModifyVpnRouteEntryWeightRequest::setOverlayMode(const std::string& overlayMode) +{ + overlayMode_ = overlayMode; + setCoreParameter("OverlayMode", overlayMode); +} + diff --git a/vpc/src/model/ModifyVpnRouteEntryWeightResult.cc b/vpc/src/model/ModifyVpnRouteEntryWeightResult.cc new file mode 100644 index 000000000..050307c77 --- /dev/null +++ b/vpc/src/model/ModifyVpnRouteEntryWeightResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVpnRouteEntryWeightResult::ModifyVpnRouteEntryWeightResult() : + ServiceResult() +{} + +ModifyVpnRouteEntryWeightResult::ModifyVpnRouteEntryWeightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpnRouteEntryWeightResult::~ModifyVpnRouteEntryWeightResult() +{} + +void ModifyVpnRouteEntryWeightResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/PublishVpnRouteEntryRequest.cc b/vpc/src/model/PublishVpnRouteEntryRequest.cc new file mode 100644 index 000000000..511b93992 --- /dev/null +++ b/vpc/src/model/PublishVpnRouteEntryRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::PublishVpnRouteEntryRequest; + +PublishVpnRouteEntryRequest::PublishVpnRouteEntryRequest() : + RpcServiceRequest("vpc", "2016-04-28", "PublishVpnRouteEntry") +{} + +PublishVpnRouteEntryRequest::~PublishVpnRouteEntryRequest() +{} + +long PublishVpnRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PublishVpnRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool PublishVpnRouteEntryRequest::getPublishVpc()const +{ + return publishVpc_; +} + +void PublishVpnRouteEntryRequest::setPublishVpc(bool publishVpc) +{ + publishVpc_ = publishVpc; + setCoreParameter("PublishVpc", publishVpc ? "true" : "false"); +} + +std::string PublishVpnRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void PublishVpnRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string PublishVpnRouteEntryRequest::getRegionId()const +{ + return regionId_; +} + +void PublishVpnRouteEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string PublishVpnRouteEntryRequest::getClientToken()const +{ + return clientToken_; +} + +void PublishVpnRouteEntryRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string PublishVpnRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void PublishVpnRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string PublishVpnRouteEntryRequest::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +void PublishVpnRouteEntryRequest::setVpnGatewayId(const std::string& vpnGatewayId) +{ + vpnGatewayId_ = vpnGatewayId; + setCoreParameter("VpnGatewayId", vpnGatewayId); +} + +long PublishVpnRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void PublishVpnRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string PublishVpnRouteEntryRequest::getRouteDest()const +{ + return routeDest_; +} + +void PublishVpnRouteEntryRequest::setRouteDest(const std::string& routeDest) +{ + routeDest_ = routeDest; + setCoreParameter("RouteDest", routeDest); +} + +std::string PublishVpnRouteEntryRequest::getNextHop()const +{ + return nextHop_; +} + +void PublishVpnRouteEntryRequest::setNextHop(const std::string& nextHop) +{ + nextHop_ = nextHop; + setCoreParameter("NextHop", nextHop); +} + +std::string PublishVpnRouteEntryRequest::getRouteType()const +{ + return routeType_; +} + +void PublishVpnRouteEntryRequest::setRouteType(const std::string& routeType) +{ + routeType_ = routeType; + setCoreParameter("RouteType", routeType); +} + diff --git a/vpc/src/model/PublishVpnRouteEntryResult.cc b/vpc/src/model/PublishVpnRouteEntryResult.cc new file mode 100644 index 000000000..2d2f9d77f --- /dev/null +++ b/vpc/src/model/PublishVpnRouteEntryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +PublishVpnRouteEntryResult::PublishVpnRouteEntryResult() : + ServiceResult() +{} + +PublishVpnRouteEntryResult::PublishVpnRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishVpnRouteEntryResult::~PublishVpnRouteEntryResult() +{} + +void PublishVpnRouteEntryResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/RecoverVirtualBorderRouterRequest.cc b/vpc/src/model/RecoverVirtualBorderRouterRequest.cc index c9c875410..793ee9125 100644 --- a/vpc/src/model/RecoverVirtualBorderRouterRequest.cc +++ b/vpc/src/model/RecoverVirtualBorderRouterRequest.cc @@ -33,7 +33,7 @@ long RecoverVirtualBorderRouterRequest::getResourceOwnerId()const void RecoverVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RecoverVirtualBorderRouterRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string RecoverVirtualBorderRouterRequest::getRegionId()const void RecoverVirtualBorderRouterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount()const void RecoverVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RecoverVirtualBorderRouterRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string RecoverVirtualBorderRouterRequest::getClientToken()const void RecoverVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string RecoverVirtualBorderRouterRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string RecoverVirtualBorderRouterRequest::getOwnerAccount()const void RecoverVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RecoverVirtualBorderRouterRequest::getVbrId()const @@ -88,7 +88,7 @@ std::string RecoverVirtualBorderRouterRequest::getVbrId()const void RecoverVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) { vbrId_ = vbrId; - setParameter("VbrId", vbrId); + setCoreParameter("VbrId", vbrId); } long RecoverVirtualBorderRouterRequest::getOwnerId()const @@ -99,6 +99,6 @@ long RecoverVirtualBorderRouterRequest::getOwnerId()const void RecoverVirtualBorderRouterRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/RecoverVirtualBorderRouterResult.cc b/vpc/src/model/RecoverVirtualBorderRouterResult.cc index e15c4cd76..9c9ba9df6 100644 --- a/vpc/src/model/RecoverVirtualBorderRouterResult.cc +++ b/vpc/src/model/RecoverVirtualBorderRouterResult.cc @@ -35,10 +35,13 @@ RecoverVirtualBorderRouterResult::~RecoverVirtualBorderRouterResult() void RecoverVirtualBorderRouterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/ReleaseEipAddressRequest.cc b/vpc/src/model/ReleaseEipAddressRequest.cc index 2bf593d5e..d66687278 100644 --- a/vpc/src/model/ReleaseEipAddressRequest.cc +++ b/vpc/src/model/ReleaseEipAddressRequest.cc @@ -33,7 +33,7 @@ long ReleaseEipAddressRequest::getResourceOwnerId()const void ReleaseEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string ReleaseEipAddressRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string ReleaseEipAddressRequest::getResourceOwnerAccount()const void ReleaseEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string ReleaseEipAddressRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string ReleaseEipAddressRequest::getRegionId()const void ReleaseEipAddressRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string ReleaseEipAddressRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string ReleaseEipAddressRequest::getOwnerAccount()const void ReleaseEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string ReleaseEipAddressRequest::getAllocationId()const @@ -77,7 +77,7 @@ std::string ReleaseEipAddressRequest::getAllocationId()const void ReleaseEipAddressRequest::setAllocationId(const std::string& allocationId) { allocationId_ = allocationId; - setParameter("AllocationId", allocationId); + setCoreParameter("AllocationId", allocationId); } long ReleaseEipAddressRequest::getOwnerId()const @@ -88,6 +88,6 @@ long ReleaseEipAddressRequest::getOwnerId()const void ReleaseEipAddressRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/ReleaseEipAddressResult.cc b/vpc/src/model/ReleaseEipAddressResult.cc index be769bf1a..e25b73f21 100644 --- a/vpc/src/model/ReleaseEipAddressResult.cc +++ b/vpc/src/model/ReleaseEipAddressResult.cc @@ -35,10 +35,13 @@ ReleaseEipAddressResult::~ReleaseEipAddressResult() void ReleaseEipAddressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc b/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc index 2fbce01cf..a5fd88dcd 100644 --- a/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc +++ b/vpc/src/model/RemoveBandwidthPackageIpsRequest.cc @@ -34,7 +34,7 @@ void RemoveBandwidthPackageIpsRequest::setRemovedIpAddresses(const std::vectorparse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc index 2452cf0eb..c8655e22e 100644 --- a/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc +++ b/vpc/src/model/RemoveCommonBandwidthPackageIpRequest.cc @@ -33,7 +33,7 @@ long RemoveCommonBandwidthPackageIpRequest::getResourceOwnerId()const void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveCommonBandwidthPackageIpRequest::getBandwidthPackageId()const @@ -44,7 +44,7 @@ std::string RemoveCommonBandwidthPackageIpRequest::getBandwidthPackageId()const void RemoveCommonBandwidthPackageIpRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) { bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); + setCoreParameter("BandwidthPackageId", bandwidthPackageId); } std::string RemoveCommonBandwidthPackageIpRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string RemoveCommonBandwidthPackageIpRequest::getResourceOwnerAccount()cons void RemoveCommonBandwidthPackageIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveCommonBandwidthPackageIpRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string RemoveCommonBandwidthPackageIpRequest::getRegionId()const void RemoveCommonBandwidthPackageIpRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveCommonBandwidthPackageIpRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string RemoveCommonBandwidthPackageIpRequest::getOwnerAccount()const void RemoveCommonBandwidthPackageIpRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RemoveCommonBandwidthPackageIpRequest::getIpInstanceId()const @@ -88,7 +88,7 @@ std::string RemoveCommonBandwidthPackageIpRequest::getIpInstanceId()const void RemoveCommonBandwidthPackageIpRequest::setIpInstanceId(const std::string& ipInstanceId) { ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); + setCoreParameter("IpInstanceId", ipInstanceId); } long RemoveCommonBandwidthPackageIpRequest::getOwnerId()const @@ -99,6 +99,6 @@ long RemoveCommonBandwidthPackageIpRequest::getOwnerId()const void RemoveCommonBandwidthPackageIpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/RemoveCommonBandwidthPackageIpResult.cc b/vpc/src/model/RemoveCommonBandwidthPackageIpResult.cc index 3c3dec2ba..a8c3b185c 100644 --- a/vpc/src/model/RemoveCommonBandwidthPackageIpResult.cc +++ b/vpc/src/model/RemoveCommonBandwidthPackageIpResult.cc @@ -35,10 +35,13 @@ RemoveCommonBandwidthPackageIpResult::~RemoveCommonBandwidthPackageIpResult() void RemoveCommonBandwidthPackageIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc b/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc index 3c77473ba..a99f2d50d 100644 --- a/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc +++ b/vpc/src/model/RemoveGlobalAccelerationInstanceIpRequest.cc @@ -33,7 +33,7 @@ long RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerId()const void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string RemoveGlobalAccelerationInstanceIpRequest::getResourceOwnerAccount() void RemoveGlobalAccelerationInstanceIpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveGlobalAccelerationInstanceIpRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string RemoveGlobalAccelerationInstanceIpRequest::getRegionId()const void RemoveGlobalAccelerationInstanceIpRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveGlobalAccelerationInstanceIpRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string RemoveGlobalAccelerationInstanceIpRequest::getOwnerAccount()const void RemoveGlobalAccelerationInstanceIpRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RemoveGlobalAccelerationInstanceIpRequest::getIpInstanceId()const @@ -77,7 +77,7 @@ std::string RemoveGlobalAccelerationInstanceIpRequest::getIpInstanceId()const void RemoveGlobalAccelerationInstanceIpRequest::setIpInstanceId(const std::string& ipInstanceId) { ipInstanceId_ = ipInstanceId; - setParameter("IpInstanceId", ipInstanceId); + setCoreParameter("IpInstanceId", ipInstanceId); } long RemoveGlobalAccelerationInstanceIpRequest::getOwnerId()const @@ -88,7 +88,7 @@ long RemoveGlobalAccelerationInstanceIpRequest::getOwnerId()const void RemoveGlobalAccelerationInstanceIpRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInstanceId()const @@ -99,6 +99,6 @@ std::string RemoveGlobalAccelerationInstanceIpRequest::getGlobalAccelerationInst void RemoveGlobalAccelerationInstanceIpRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } diff --git a/vpc/src/model/RemoveGlobalAccelerationInstanceIpResult.cc b/vpc/src/model/RemoveGlobalAccelerationInstanceIpResult.cc index ae7c8d9e6..d6ca1d592 100644 --- a/vpc/src/model/RemoveGlobalAccelerationInstanceIpResult.cc +++ b/vpc/src/model/RemoveGlobalAccelerationInstanceIpResult.cc @@ -35,10 +35,13 @@ RemoveGlobalAccelerationInstanceIpResult::~RemoveGlobalAccelerationInstanceIpRes void RemoveGlobalAccelerationInstanceIpResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc b/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc index 9fa70829e..d537e5278 100644 --- a/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc +++ b/vpc/src/model/RemoveIPv6TranslatorAclListEntryRequest.cc @@ -33,7 +33,7 @@ std::string RemoveIPv6TranslatorAclListEntryRequest::getAclId()const void RemoveIPv6TranslatorAclListEntryRequest::setAclId(const std::string& aclId) { aclId_ = aclId; - setParameter("AclId", aclId); + setCoreParameter("AclId", aclId); } long RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerId()const void RemoveIPv6TranslatorAclListEntryRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string RemoveIPv6TranslatorAclListEntryRequest::getResourceOwnerAccount()co void RemoveIPv6TranslatorAclListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RemoveIPv6TranslatorAclListEntryRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string RemoveIPv6TranslatorAclListEntryRequest::getClientToken()const void RemoveIPv6TranslatorAclListEntryRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string RemoveIPv6TranslatorAclListEntryRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string RemoveIPv6TranslatorAclListEntryRequest::getRegionId()const void RemoveIPv6TranslatorAclListEntryRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RemoveIPv6TranslatorAclListEntryRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string RemoveIPv6TranslatorAclListEntryRequest::getOwnerAccount()const void RemoveIPv6TranslatorAclListEntryRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long RemoveIPv6TranslatorAclListEntryRequest::getOwnerId()const @@ -99,7 +99,7 @@ long RemoveIPv6TranslatorAclListEntryRequest::getOwnerId()const void RemoveIPv6TranslatorAclListEntryRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string RemoveIPv6TranslatorAclListEntryRequest::getAclEntryId()const @@ -110,6 +110,6 @@ std::string RemoveIPv6TranslatorAclListEntryRequest::getAclEntryId()const void RemoveIPv6TranslatorAclListEntryRequest::setAclEntryId(const std::string& aclEntryId) { aclEntryId_ = aclEntryId; - setParameter("AclEntryId", aclEntryId); + setCoreParameter("AclEntryId", aclEntryId); } diff --git a/vpc/src/model/RemoveIPv6TranslatorAclListEntryResult.cc b/vpc/src/model/RemoveIPv6TranslatorAclListEntryResult.cc index 0fd7ad8ab..53e5226f8 100644 --- a/vpc/src/model/RemoveIPv6TranslatorAclListEntryResult.cc +++ b/vpc/src/model/RemoveIPv6TranslatorAclListEntryResult.cc @@ -35,10 +35,13 @@ RemoveIPv6TranslatorAclListEntryResult::~RemoveIPv6TranslatorAclListEntryResult( void RemoveIPv6TranslatorAclListEntryResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/RevokeInstanceFromCenRequest.cc b/vpc/src/model/RevokeInstanceFromCenRequest.cc index ca5b60a0d..02fe1538f 100644 --- a/vpc/src/model/RevokeInstanceFromCenRequest.cc +++ b/vpc/src/model/RevokeInstanceFromCenRequest.cc @@ -33,7 +33,7 @@ long RevokeInstanceFromCenRequest::getResourceOwnerId()const void RevokeInstanceFromCenRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string RevokeInstanceFromCenRequest::getInstanceId()const @@ -44,7 +44,7 @@ std::string RevokeInstanceFromCenRequest::getInstanceId()const void RevokeInstanceFromCenRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string RevokeInstanceFromCenRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string RevokeInstanceFromCenRequest::getResourceOwnerAccount()const void RevokeInstanceFromCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string RevokeInstanceFromCenRequest::getRegionId()const @@ -66,7 +66,7 @@ std::string RevokeInstanceFromCenRequest::getRegionId()const void RevokeInstanceFromCenRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string RevokeInstanceFromCenRequest::getCenId()const @@ -77,7 +77,7 @@ std::string RevokeInstanceFromCenRequest::getCenId()const void RevokeInstanceFromCenRequest::setCenId(const std::string& cenId) { cenId_ = cenId; - setParameter("CenId", cenId); + setCoreParameter("CenId", cenId); } std::string RevokeInstanceFromCenRequest::getClientToken()const @@ -88,7 +88,7 @@ std::string RevokeInstanceFromCenRequest::getClientToken()const void RevokeInstanceFromCenRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string RevokeInstanceFromCenRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string RevokeInstanceFromCenRequest::getOwnerAccount()const void RevokeInstanceFromCenRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string RevokeInstanceFromCenRequest::getInstanceType()const @@ -110,7 +110,7 @@ std::string RevokeInstanceFromCenRequest::getInstanceType()const void RevokeInstanceFromCenRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } long RevokeInstanceFromCenRequest::getCenOwnerId()const @@ -121,7 +121,7 @@ long RevokeInstanceFromCenRequest::getCenOwnerId()const void RevokeInstanceFromCenRequest::setCenOwnerId(long cenOwnerId) { cenOwnerId_ = cenOwnerId; - setParameter("CenOwnerId", std::to_string(cenOwnerId)); + setCoreParameter("CenOwnerId", std::to_string(cenOwnerId)); } long RevokeInstanceFromCenRequest::getOwnerId()const @@ -132,6 +132,6 @@ long RevokeInstanceFromCenRequest::getOwnerId()const void RevokeInstanceFromCenRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/RevokeInstanceFromCenResult.cc b/vpc/src/model/RevokeInstanceFromCenResult.cc index 1967c9f65..61b55c02e 100644 --- a/vpc/src/model/RevokeInstanceFromCenResult.cc +++ b/vpc/src/model/RevokeInstanceFromCenResult.cc @@ -35,10 +35,13 @@ RevokeInstanceFromCenResult::~RevokeInstanceFromCenResult() void RevokeInstanceFromCenResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/TagResourcesRequest.cc b/vpc/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..324af07ec --- /dev/null +++ b/vpc/src/model/TagResourcesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Vpc::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "TagResources") +{} + +TagResourcesRequest::~TagResourcesRequest() +{} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/vpc/src/model/TagResourcesResult.cc b/vpc/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..fc399a589 --- /dev/null +++ b/vpc/src/model/TagResourcesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/TerminatePhysicalConnectionRequest.cc b/vpc/src/model/TerminatePhysicalConnectionRequest.cc index 9265a56b4..08cdd9421 100644 --- a/vpc/src/model/TerminatePhysicalConnectionRequest.cc +++ b/vpc/src/model/TerminatePhysicalConnectionRequest.cc @@ -33,7 +33,7 @@ long TerminatePhysicalConnectionRequest::getResourceOwnerId()const void TerminatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string TerminatePhysicalConnectionRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string TerminatePhysicalConnectionRequest::getRegionId()const void TerminatePhysicalConnectionRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount()const void TerminatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string TerminatePhysicalConnectionRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string TerminatePhysicalConnectionRequest::getClientToken()const void TerminatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId()const @@ -77,7 +77,7 @@ std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId()const void TerminatePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string TerminatePhysicalConnectionRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string TerminatePhysicalConnectionRequest::getOwnerAccount()const void TerminatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } long TerminatePhysicalConnectionRequest::getOwnerId()const @@ -99,6 +99,6 @@ long TerminatePhysicalConnectionRequest::getOwnerId()const void TerminatePhysicalConnectionRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/TerminatePhysicalConnectionResult.cc b/vpc/src/model/TerminatePhysicalConnectionResult.cc index 788b4259a..ddb9bb09c 100644 --- a/vpc/src/model/TerminatePhysicalConnectionResult.cc +++ b/vpc/src/model/TerminatePhysicalConnectionResult.cc @@ -35,10 +35,13 @@ TerminatePhysicalConnectionResult::~TerminatePhysicalConnectionResult() void TerminatePhysicalConnectionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/TerminateVirtualBorderRouterRequest.cc b/vpc/src/model/TerminateVirtualBorderRouterRequest.cc index 1e3e9e466..f78d1a3f8 100644 --- a/vpc/src/model/TerminateVirtualBorderRouterRequest.cc +++ b/vpc/src/model/TerminateVirtualBorderRouterRequest.cc @@ -33,7 +33,7 @@ long TerminateVirtualBorderRouterRequest::getResourceOwnerId()const void TerminateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string TerminateVirtualBorderRouterRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string TerminateVirtualBorderRouterRequest::getRegionId()const void TerminateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount()const void TerminateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string TerminateVirtualBorderRouterRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string TerminateVirtualBorderRouterRequest::getClientToken()const void TerminateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string TerminateVirtualBorderRouterRequest::getOwnerAccount()const @@ -77,7 +77,7 @@ std::string TerminateVirtualBorderRouterRequest::getOwnerAccount()const void TerminateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string TerminateVirtualBorderRouterRequest::getVbrId()const @@ -88,7 +88,7 @@ std::string TerminateVirtualBorderRouterRequest::getVbrId()const void TerminateVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) { vbrId_ = vbrId; - setParameter("VbrId", vbrId); + setCoreParameter("VbrId", vbrId); } long TerminateVirtualBorderRouterRequest::getOwnerId()const @@ -99,6 +99,6 @@ long TerminateVirtualBorderRouterRequest::getOwnerId()const void TerminateVirtualBorderRouterRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/TerminateVirtualBorderRouterResult.cc b/vpc/src/model/TerminateVirtualBorderRouterResult.cc index 682dff14f..9f2a9af34 100644 --- a/vpc/src/model/TerminateVirtualBorderRouterResult.cc +++ b/vpc/src/model/TerminateVirtualBorderRouterResult.cc @@ -35,10 +35,13 @@ TerminateVirtualBorderRouterResult::~TerminateVirtualBorderRouterResult() void TerminateVirtualBorderRouterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/UnTagResourcesRequest.cc b/vpc/src/model/UnTagResourcesRequest.cc new file mode 100644 index 000000000..75ebb63d1 --- /dev/null +++ b/vpc/src/model/UnTagResourcesRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::UnTagResourcesRequest; + +UnTagResourcesRequest::UnTagResourcesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UnTagResources") +{} + +UnTagResourcesRequest::~UnTagResourcesRequest() +{} + +std::vector UnTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UnTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string UnTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UnTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector UnTagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UnTagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int i = 0; i!= tagKey.size(); i++) + setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i)); +} + +std::string UnTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UnTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/vpc/src/model/UnTagResourcesResult.cc b/vpc/src/model/UnTagResourcesResult.cc new file mode 100644 index 000000000..0dfa5d467 --- /dev/null +++ b/vpc/src/model/UnTagResourcesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnTagResourcesResult::UnTagResourcesResult() : + ServiceResult() +{} + +UnTagResourcesResult::UnTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnTagResourcesResult::~UnTagResourcesResult() +{} + +void UnTagResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/UnassociateEipAddressRequest.cc b/vpc/src/model/UnassociateEipAddressRequest.cc index 879027fe8..5773f16d8 100644 --- a/vpc/src/model/UnassociateEipAddressRequest.cc +++ b/vpc/src/model/UnassociateEipAddressRequest.cc @@ -33,7 +33,7 @@ std::string UnassociateEipAddressRequest::getPrivateIpAddress()const void UnassociateEipAddressRequest::setPrivateIpAddress(const std::string& privateIpAddress) { privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); + setCoreParameter("PrivateIpAddress", privateIpAddress); } long UnassociateEipAddressRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UnassociateEipAddressRequest::getResourceOwnerId()const void UnassociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnassociateEipAddressRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string UnassociateEipAddressRequest::getInstanceId()const void UnassociateEipAddressRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string UnassociateEipAddressRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string UnassociateEipAddressRequest::getResourceOwnerAccount()const void UnassociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnassociateEipAddressRequest::getRegionId()const @@ -77,7 +77,7 @@ std::string UnassociateEipAddressRequest::getRegionId()const void UnassociateEipAddressRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UnassociateEipAddressRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string UnassociateEipAddressRequest::getOwnerAccount()const void UnassociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnassociateEipAddressRequest::getInstanceType()const @@ -99,7 +99,7 @@ std::string UnassociateEipAddressRequest::getInstanceType()const void UnassociateEipAddressRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } bool UnassociateEipAddressRequest::getForce()const @@ -110,7 +110,7 @@ bool UnassociateEipAddressRequest::getForce()const void UnassociateEipAddressRequest::setForce(bool force) { force_ = force; - setParameter("Force", std::to_string(force)); + setCoreParameter("Force", force ? "true" : "false"); } std::string UnassociateEipAddressRequest::getAllocationId()const @@ -121,7 +121,7 @@ std::string UnassociateEipAddressRequest::getAllocationId()const void UnassociateEipAddressRequest::setAllocationId(const std::string& allocationId) { allocationId_ = allocationId; - setParameter("AllocationId", allocationId); + setCoreParameter("AllocationId", allocationId); } long UnassociateEipAddressRequest::getOwnerId()const @@ -132,6 +132,6 @@ long UnassociateEipAddressRequest::getOwnerId()const void UnassociateEipAddressRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/UnassociateEipAddressResult.cc b/vpc/src/model/UnassociateEipAddressResult.cc index f9cbcaefd..d98a040b8 100644 --- a/vpc/src/model/UnassociateEipAddressResult.cc +++ b/vpc/src/model/UnassociateEipAddressResult.cc @@ -35,10 +35,13 @@ UnassociateEipAddressResult::~UnassociateEipAddressResult() void UnassociateEipAddressResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc index b07730dfe..a8c8dd039 100644 --- a/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc +++ b/vpc/src/model/UnassociateGlobalAccelerationInstanceRequest.cc @@ -33,7 +33,7 @@ long UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerId()const void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount()const @@ -44,7 +44,7 @@ std::string UnassociateGlobalAccelerationInstanceRequest::getResourceOwnerAccoun void UnassociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnassociateGlobalAccelerationInstanceRequest::getRegionId()const @@ -55,7 +55,7 @@ std::string UnassociateGlobalAccelerationInstanceRequest::getRegionId()const void UnassociateGlobalAccelerationInstanceRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UnassociateGlobalAccelerationInstanceRequest::getOwnerAccount()const @@ -66,7 +66,7 @@ std::string UnassociateGlobalAccelerationInstanceRequest::getOwnerAccount()const void UnassociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnassociateGlobalAccelerationInstanceRequest::getInstanceType()const @@ -77,7 +77,7 @@ std::string UnassociateGlobalAccelerationInstanceRequest::getInstanceType()const void UnassociateGlobalAccelerationInstanceRequest::setInstanceType(const std::string& instanceType) { instanceType_ = instanceType; - setParameter("InstanceType", instanceType); + setCoreParameter("InstanceType", instanceType); } long UnassociateGlobalAccelerationInstanceRequest::getOwnerId()const @@ -88,7 +88,7 @@ long UnassociateGlobalAccelerationInstanceRequest::getOwnerId()const void UnassociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string UnassociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId()const @@ -99,6 +99,6 @@ std::string UnassociateGlobalAccelerationInstanceRequest::getGlobalAccelerationI void UnassociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string& globalAccelerationInstanceId) { globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); + setCoreParameter("GlobalAccelerationInstanceId", globalAccelerationInstanceId); } diff --git a/vpc/src/model/UnassociateGlobalAccelerationInstanceResult.cc b/vpc/src/model/UnassociateGlobalAccelerationInstanceResult.cc index efaf12998..9c667fc3b 100644 --- a/vpc/src/model/UnassociateGlobalAccelerationInstanceResult.cc +++ b/vpc/src/model/UnassociateGlobalAccelerationInstanceResult.cc @@ -35,10 +35,13 @@ UnassociateGlobalAccelerationInstanceResult::~UnassociateGlobalAccelerationInsta void UnassociateGlobalAccelerationInstanceResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/UnassociateHaVipRequest.cc b/vpc/src/model/UnassociateHaVipRequest.cc index 9d63cf502..bf67e6472 100644 --- a/vpc/src/model/UnassociateHaVipRequest.cc +++ b/vpc/src/model/UnassociateHaVipRequest.cc @@ -33,7 +33,7 @@ std::string UnassociateHaVipRequest::getHaVipId()const void UnassociateHaVipRequest::setHaVipId(const std::string& haVipId) { haVipId_ = haVipId; - setParameter("HaVipId", haVipId); + setCoreParameter("HaVipId", haVipId); } long UnassociateHaVipRequest::getResourceOwnerId()const @@ -44,7 +44,7 @@ long UnassociateHaVipRequest::getResourceOwnerId()const void UnassociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnassociateHaVipRequest::getInstanceId()const @@ -55,7 +55,7 @@ std::string UnassociateHaVipRequest::getInstanceId()const void UnassociateHaVipRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; - setParameter("InstanceId", instanceId); + setCoreParameter("InstanceId", instanceId); } std::string UnassociateHaVipRequest::getResourceOwnerAccount()const @@ -66,7 +66,7 @@ std::string UnassociateHaVipRequest::getResourceOwnerAccount()const void UnassociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnassociateHaVipRequest::getClientToken()const @@ -77,7 +77,7 @@ std::string UnassociateHaVipRequest::getClientToken()const void UnassociateHaVipRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string UnassociateHaVipRequest::getRegionId()const @@ -88,7 +88,7 @@ std::string UnassociateHaVipRequest::getRegionId()const void UnassociateHaVipRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UnassociateHaVipRequest::getOwnerAccount()const @@ -99,7 +99,7 @@ std::string UnassociateHaVipRequest::getOwnerAccount()const void UnassociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnassociateHaVipRequest::getForce()const @@ -110,7 +110,7 @@ std::string UnassociateHaVipRequest::getForce()const void UnassociateHaVipRequest::setForce(const std::string& force) { force_ = force; - setParameter("Force", force); + setCoreParameter("Force", force); } long UnassociateHaVipRequest::getOwnerId()const @@ -121,6 +121,6 @@ long UnassociateHaVipRequest::getOwnerId()const void UnassociateHaVipRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/UnassociateHaVipResult.cc b/vpc/src/model/UnassociateHaVipResult.cc index 9adc7590a..e7a113ebd 100644 --- a/vpc/src/model/UnassociateHaVipResult.cc +++ b/vpc/src/model/UnassociateHaVipResult.cc @@ -35,10 +35,13 @@ UnassociateHaVipResult::~UnassociateHaVipResult() void UnassociateHaVipResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/UnassociateNetworkAclRequest.cc b/vpc/src/model/UnassociateNetworkAclRequest.cc new file mode 100644 index 000000000..b839711f3 --- /dev/null +++ b/vpc/src/model/UnassociateNetworkAclRequest.cc @@ -0,0 +1,308 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::UnassociateNetworkAclRequest; + +UnassociateNetworkAclRequest::UnassociateNetworkAclRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UnassociateNetworkAcl") +{} + +UnassociateNetworkAclRequest::~UnassociateNetworkAclRequest() +{} + +long UnassociateNetworkAclRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociateNetworkAclRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociateNetworkAclRequest::getClientToken()const +{ + return clientToken_; +} + +void UnassociateNetworkAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long UnassociateNetworkAclRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UnassociateNetworkAclRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UnassociateNetworkAclRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UnassociateNetworkAclRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UnassociateNetworkAclRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UnassociateNetworkAclRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string UnassociateNetworkAclRequest::getCallerType()const +{ + return callerType_; +} + +void UnassociateNetworkAclRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UnassociateNetworkAclRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void UnassociateNetworkAclRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string UnassociateNetworkAclRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnassociateNetworkAclRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string UnassociateNetworkAclRequest::getRegionId()const +{ + return regionId_; +} + +void UnassociateNetworkAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UnassociateNetworkAclRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UnassociateNetworkAclRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool UnassociateNetworkAclRequest::getEnable()const +{ + return enable_; +} + +void UnassociateNetworkAclRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string UnassociateNetworkAclRequest::getRequestContent()const +{ + return requestContent_; +} + +void UnassociateNetworkAclRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string UnassociateNetworkAclRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void UnassociateNetworkAclRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string UnassociateNetworkAclRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void UnassociateNetworkAclRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string UnassociateNetworkAclRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void UnassociateNetworkAclRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +long UnassociateNetworkAclRequest::getCallerUid()const +{ + return callerUid_; +} + +void UnassociateNetworkAclRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UnassociateNetworkAclRequest::getApp_ip()const +{ + return app_ip_; +} + +void UnassociateNetworkAclRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::vector UnassociateNetworkAclRequest::getResource()const +{ + return resource_; +} + +void UnassociateNetworkAclRequest::setResource(const std::vector& resource) +{ + resource_ = resource; + int i = 0; + for(int i = 0; i!= resource.size(); i++) { + auto obj = resource.at(i); + std::string str ="Resource."+ std::to_string(i); + setCoreParameter(str + ".ResourceType", obj.resourceType); + setCoreParameter(str + ".ResourceId", obj.resourceId); + } +} + +std::string UnassociateNetworkAclRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociateNetworkAclRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociateNetworkAclRequest::getCallerBid()const +{ + return callerBid_; +} + +void UnassociateNetworkAclRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long UnassociateNetworkAclRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociateNetworkAclRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool UnassociateNetworkAclRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UnassociateNetworkAclRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool UnassociateNetworkAclRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UnassociateNetworkAclRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UnassociateNetworkAclRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UnassociateNetworkAclRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UnassociateNetworkAclRequest::getRequestId()const +{ + return requestId_; +} + +void UnassociateNetworkAclRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + diff --git a/vpc/src/model/UnassociateNetworkAclResult.cc b/vpc/src/model/UnassociateNetworkAclResult.cc new file mode 100644 index 000000000..5094158a1 --- /dev/null +++ b/vpc/src/model/UnassociateNetworkAclResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UnassociateNetworkAclResult::UnassociateNetworkAclResult() : + ServiceResult() +{} + +UnassociateNetworkAclResult::UnassociateNetworkAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateNetworkAclResult::~UnassociateNetworkAclResult() +{} + +void UnassociateNetworkAclResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc index 3ee5502b0..fbeebcc62 100644 --- a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc +++ b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterRequest.cc @@ -33,7 +33,7 @@ long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwn void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getRegionId()const @@ -44,7 +44,7 @@ std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getRegi void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getResourceOwnerAccount()const @@ -55,7 +55,7 @@ std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getReso void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getClientToken()const @@ -66,7 +66,7 @@ std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getClie void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getPhysicalConnectionId()const @@ -77,7 +77,7 @@ std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getPhys void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) { physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); + setCoreParameter("PhysicalConnectionId", physicalConnectionId); } std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerAccount()const @@ -88,7 +88,7 @@ std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwne void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getVbrId()const @@ -99,7 +99,7 @@ std::string UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getVbrI void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) { vbrId_ = vbrId; - setParameter("VbrId", vbrId); + setCoreParameter("VbrId", vbrId); } long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerId()const @@ -110,6 +110,6 @@ long UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::getOwnerId()co void UnassociatePhysicalConnectionFromVirtualBorderRouterRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } diff --git a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc index fb22e719b..ae6030a75 100644 --- a/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc +++ b/vpc/src/model/UnassociatePhysicalConnectionFromVirtualBorderRouterResult.cc @@ -35,10 +35,13 @@ UnassociatePhysicalConnectionFromVirtualBorderRouterResult::~UnassociatePhysical void UnassociatePhysicalConnectionFromVirtualBorderRouterResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/UnassociateRouteTableRequest.cc b/vpc/src/model/UnassociateRouteTableRequest.cc index 8222e5456..572dc4892 100644 --- a/vpc/src/model/UnassociateRouteTableRequest.cc +++ b/vpc/src/model/UnassociateRouteTableRequest.cc @@ -33,7 +33,7 @@ long UnassociateRouteTableRequest::getResourceOwnerId()const void UnassociateRouteTableRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } std::string UnassociateRouteTableRequest::getClientToken()const @@ -44,7 +44,7 @@ std::string UnassociateRouteTableRequest::getClientToken()const void UnassociateRouteTableRequest::setClientToken(const std::string& clientToken) { clientToken_ = clientToken; - setParameter("ClientToken", clientToken); + setCoreParameter("ClientToken", clientToken); } long UnassociateRouteTableRequest::getCallerParentId()const @@ -55,7 +55,7 @@ long UnassociateRouteTableRequest::getCallerParentId()const void UnassociateRouteTableRequest::setCallerParentId(long callerParentId) { callerParentId_ = callerParentId; - setParameter("CallerParentId", std::to_string(callerParentId)); + setCoreParameter("CallerParentId", std::to_string(callerParentId)); } bool UnassociateRouteTableRequest::getProxy_original_security_transport()const @@ -66,7 +66,7 @@ bool UnassociateRouteTableRequest::getProxy_original_security_transport()const void UnassociateRouteTableRequest::setProxy_original_security_transport(bool proxy_original_security_transport) { proxy_original_security_transport_ = proxy_original_security_transport; - setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); } std::string UnassociateRouteTableRequest::getProxy_original_source_ip()const @@ -77,7 +77,7 @@ std::string UnassociateRouteTableRequest::getProxy_original_source_ip()const void UnassociateRouteTableRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) { proxy_original_source_ip_ = proxy_original_source_ip; - setParameter("Proxy_original_source_ip", proxy_original_source_ip); + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); } std::string UnassociateRouteTableRequest::getOwnerIdLoginEmail()const @@ -88,7 +88,7 @@ std::string UnassociateRouteTableRequest::getOwnerIdLoginEmail()const void UnassociateRouteTableRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) { ownerIdLoginEmail_ = ownerIdLoginEmail; - setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); } std::string UnassociateRouteTableRequest::getCallerType()const @@ -99,7 +99,7 @@ std::string UnassociateRouteTableRequest::getCallerType()const void UnassociateRouteTableRequest::setCallerType(const std::string& callerType) { callerType_ = callerType; - setParameter("CallerType", callerType); + setCoreParameter("CallerType", callerType); } std::string UnassociateRouteTableRequest::getAccessKeyId()const @@ -110,7 +110,7 @@ std::string UnassociateRouteTableRequest::getAccessKeyId()const void UnassociateRouteTableRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); + setCoreParameter("AccessKeyId", accessKeyId); } std::string UnassociateRouteTableRequest::getResourceGroupId()const @@ -121,7 +121,7 @@ std::string UnassociateRouteTableRequest::getResourceGroupId()const void UnassociateRouteTableRequest::setResourceGroupId(const std::string& resourceGroupId) { resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); + setCoreParameter("ResourceGroupId", resourceGroupId); } std::string UnassociateRouteTableRequest::getRegionId()const @@ -132,7 +132,7 @@ std::string UnassociateRouteTableRequest::getRegionId()const void UnassociateRouteTableRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setParameter("RegionId", regionId); + setCoreParameter("RegionId", regionId); } std::string UnassociateRouteTableRequest::getSecurityToken()const @@ -143,7 +143,7 @@ std::string UnassociateRouteTableRequest::getSecurityToken()const void UnassociateRouteTableRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); + setCoreParameter("SecurityToken", securityToken); } bool UnassociateRouteTableRequest::getEnable()const @@ -154,7 +154,7 @@ bool UnassociateRouteTableRequest::getEnable()const void UnassociateRouteTableRequest::setEnable(bool enable) { enable_ = enable; - setParameter("Enable", std::to_string(enable)); + setCoreParameter("Enable", enable ? "true" : "false"); } std::string UnassociateRouteTableRequest::getRequestContent()const @@ -165,7 +165,7 @@ std::string UnassociateRouteTableRequest::getRequestContent()const void UnassociateRouteTableRequest::setRequestContent(const std::string& requestContent) { requestContent_ = requestContent; - setParameter("RequestContent", requestContent); + setCoreParameter("RequestContent", requestContent); } std::string UnassociateRouteTableRequest::getCallerBidEmail()const @@ -176,7 +176,7 @@ std::string UnassociateRouteTableRequest::getCallerBidEmail()const void UnassociateRouteTableRequest::setCallerBidEmail(const std::string& callerBidEmail) { callerBidEmail_ = callerBidEmail; - setParameter("CallerBidEmail", callerBidEmail); + setCoreParameter("CallerBidEmail", callerBidEmail); } std::string UnassociateRouteTableRequest::getCallerUidEmail()const @@ -187,7 +187,7 @@ std::string UnassociateRouteTableRequest::getCallerUidEmail()const void UnassociateRouteTableRequest::setCallerUidEmail(const std::string& callerUidEmail) { callerUidEmail_ = callerUidEmail; - setParameter("CallerUidEmail", callerUidEmail); + setCoreParameter("CallerUidEmail", callerUidEmail); } std::string UnassociateRouteTableRequest::getRouteTableId()const @@ -198,7 +198,7 @@ std::string UnassociateRouteTableRequest::getRouteTableId()const void UnassociateRouteTableRequest::setRouteTableId(const std::string& routeTableId) { routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); + setCoreParameter("RouteTableId", routeTableId); } long UnassociateRouteTableRequest::getCallerUid()const @@ -209,7 +209,7 @@ long UnassociateRouteTableRequest::getCallerUid()const void UnassociateRouteTableRequest::setCallerUid(long callerUid) { callerUid_ = callerUid; - setParameter("CallerUid", std::to_string(callerUid)); + setCoreParameter("CallerUid", std::to_string(callerUid)); } std::string UnassociateRouteTableRequest::getApp_ip()const @@ -220,7 +220,7 @@ std::string UnassociateRouteTableRequest::getApp_ip()const void UnassociateRouteTableRequest::setApp_ip(const std::string& app_ip) { app_ip_ = app_ip; - setParameter("App_ip", app_ip); + setCoreParameter("App_ip", app_ip); } std::string UnassociateRouteTableRequest::getResourceOwnerAccount()const @@ -231,7 +231,7 @@ std::string UnassociateRouteTableRequest::getResourceOwnerAccount()const void UnassociateRouteTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::string UnassociateRouteTableRequest::getOwnerAccount()const @@ -242,7 +242,7 @@ std::string UnassociateRouteTableRequest::getOwnerAccount()const void UnassociateRouteTableRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); + setCoreParameter("OwnerAccount", ownerAccount); } std::string UnassociateRouteTableRequest::getCallerBid()const @@ -253,7 +253,7 @@ std::string UnassociateRouteTableRequest::getCallerBid()const void UnassociateRouteTableRequest::setCallerBid(const std::string& callerBid) { callerBid_ = callerBid; - setParameter("CallerBid", callerBid); + setCoreParameter("CallerBid", callerBid); } long UnassociateRouteTableRequest::getOwnerId()const @@ -264,7 +264,7 @@ long UnassociateRouteTableRequest::getOwnerId()const void UnassociateRouteTableRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + setCoreParameter("OwnerId", std::to_string(ownerId)); } bool UnassociateRouteTableRequest::getProxy_trust_transport_info()const @@ -275,7 +275,7 @@ bool UnassociateRouteTableRequest::getProxy_trust_transport_info()const void UnassociateRouteTableRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) { proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); } bool UnassociateRouteTableRequest::getAk_mfa_present()const @@ -286,7 +286,7 @@ bool UnassociateRouteTableRequest::getAk_mfa_present()const void UnassociateRouteTableRequest::setAk_mfa_present(bool ak_mfa_present) { ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); } std::string UnassociateRouteTableRequest::getVSwitchId()const @@ -297,7 +297,7 @@ std::string UnassociateRouteTableRequest::getVSwitchId()const void UnassociateRouteTableRequest::setVSwitchId(const std::string& vSwitchId) { vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); + setCoreParameter("VSwitchId", vSwitchId); } bool UnassociateRouteTableRequest::getSecurity_transport()const @@ -308,7 +308,7 @@ bool UnassociateRouteTableRequest::getSecurity_transport()const void UnassociateRouteTableRequest::setSecurity_transport(bool security_transport) { security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); + setCoreParameter("Security_transport", security_transport ? "true" : "false"); } std::string UnassociateRouteTableRequest::getRequestId()const @@ -319,6 +319,6 @@ std::string UnassociateRouteTableRequest::getRequestId()const void UnassociateRouteTableRequest::setRequestId(const std::string& requestId) { requestId_ = requestId; - setParameter("RequestId", requestId); + setCoreParameter("RequestId", requestId); } diff --git a/vpc/src/model/UnassociateRouteTableResult.cc b/vpc/src/model/UnassociateRouteTableResult.cc index 22db42052..4712568e3 100644 --- a/vpc/src/model/UnassociateRouteTableResult.cc +++ b/vpc/src/model/UnassociateRouteTableResult.cc @@ -35,10 +35,13 @@ UnassociateRouteTableResult::~UnassociateRouteTableResult() void UnassociateRouteTableResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/vpc/src/model/UpdateNetworkAclEntriesRequest.cc b/vpc/src/model/UpdateNetworkAclEntriesRequest.cc new file mode 100644 index 000000000..9cf181fc5 --- /dev/null +++ b/vpc/src/model/UpdateNetworkAclEntriesRequest.cc @@ -0,0 +1,359 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc::Model::UpdateNetworkAclEntriesRequest; + +UpdateNetworkAclEntriesRequest::UpdateNetworkAclEntriesRequest() : + RpcServiceRequest("vpc", "2016-04-28", "UpdateNetworkAclEntries") +{} + +UpdateNetworkAclEntriesRequest::~UpdateNetworkAclEntriesRequest() +{} + +long UpdateNetworkAclEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateNetworkAclEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector UpdateNetworkAclEntriesRequest::getEgressAclEntries()const +{ + return egressAclEntries_; +} + +void UpdateNetworkAclEntriesRequest::setEgressAclEntries(const std::vector& egressAclEntries) +{ + egressAclEntries_ = egressAclEntries; + int i = 0; + for(int i = 0; i!= egressAclEntries.size(); i++) { + auto obj = egressAclEntries.at(i); + std::string str ="EgressAclEntries."+ std::to_string(i); + setCoreParameter(str + ".NetworkAclEntryName", obj.networkAclEntryName); + setCoreParameter(str + ".NetworkAclEntryId", obj.networkAclEntryId); + setCoreParameter(str + ".Policy", obj.policy); + setCoreParameter(str + ".Protocol", obj.protocol); + setCoreParameter(str + ".DestinationCidrIp", obj.destinationCidrIp); + setCoreParameter(str + ".Port", obj.port); + setCoreParameter(str + ".EntryType", obj.entryType); + setCoreParameter(str + ".Description", obj.description); + } +} + +std::string UpdateNetworkAclEntriesRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateNetworkAclEntriesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +long UpdateNetworkAclEntriesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UpdateNetworkAclEntriesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setCoreParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UpdateNetworkAclEntriesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UpdateNetworkAclEntriesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false"); +} + +std::string UpdateNetworkAclEntriesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UpdateNetworkAclEntriesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string UpdateNetworkAclEntriesRequest::getCallerType()const +{ + return callerType_; +} + +void UpdateNetworkAclEntriesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setCoreParameter("CallerType", callerType); +} + +std::string UpdateNetworkAclEntriesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void UpdateNetworkAclEntriesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string UpdateNetworkAclEntriesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateNetworkAclEntriesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string UpdateNetworkAclEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateNetworkAclEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpdateNetworkAclEntriesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateNetworkAclEntriesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +bool UpdateNetworkAclEntriesRequest::getEnable()const +{ + return enable_; +} + +void UpdateNetworkAclEntriesRequest::setEnable(bool enable) +{ + enable_ = enable; + setCoreParameter("Enable", enable ? "true" : "false"); +} + +std::string UpdateNetworkAclEntriesRequest::getRequestContent()const +{ + return requestContent_; +} + +void UpdateNetworkAclEntriesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setCoreParameter("RequestContent", requestContent); +} + +std::string UpdateNetworkAclEntriesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void UpdateNetworkAclEntriesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setCoreParameter("CallerBidEmail", callerBidEmail); +} + +std::string UpdateNetworkAclEntriesRequest::getNetworkAclId()const +{ + return networkAclId_; +} + +void UpdateNetworkAclEntriesRequest::setNetworkAclId(const std::string& networkAclId) +{ + networkAclId_ = networkAclId; + setCoreParameter("NetworkAclId", networkAclId); +} + +std::string UpdateNetworkAclEntriesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void UpdateNetworkAclEntriesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setCoreParameter("CallerUidEmail", callerUidEmail); +} + +bool UpdateNetworkAclEntriesRequest::getUpdateIngressAclEntries()const +{ + return updateIngressAclEntries_; +} + +void UpdateNetworkAclEntriesRequest::setUpdateIngressAclEntries(bool updateIngressAclEntries) +{ + updateIngressAclEntries_ = updateIngressAclEntries; + setCoreParameter("UpdateIngressAclEntries", updateIngressAclEntries ? "true" : "false"); +} + +long UpdateNetworkAclEntriesRequest::getCallerUid()const +{ + return callerUid_; +} + +void UpdateNetworkAclEntriesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setCoreParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UpdateNetworkAclEntriesRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateNetworkAclEntriesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setCoreParameter("App_ip", app_ip); +} + +std::string UpdateNetworkAclEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool UpdateNetworkAclEntriesRequest::getUpdateEgressAclEntries()const +{ + return updateEgressAclEntries_; +} + +void UpdateNetworkAclEntriesRequest::setUpdateEgressAclEntries(bool updateEgressAclEntries) +{ + updateEgressAclEntries_ = updateEgressAclEntries; + setCoreParameter("UpdateEgressAclEntries", updateEgressAclEntries ? "true" : "false"); +} + +std::string UpdateNetworkAclEntriesRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateNetworkAclEntriesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setCoreParameter("CallerBid", callerBid); +} + +long UpdateNetworkAclEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateNetworkAclEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +bool UpdateNetworkAclEntriesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateNetworkAclEntriesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false"); +} + +bool UpdateNetworkAclEntriesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateNetworkAclEntriesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false"); +} + +bool UpdateNetworkAclEntriesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateNetworkAclEntriesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setCoreParameter("Security_transport", security_transport ? "true" : "false"); +} + +std::string UpdateNetworkAclEntriesRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateNetworkAclEntriesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setCoreParameter("RequestId", requestId); +} + +std::vector UpdateNetworkAclEntriesRequest::getIngressAclEntries()const +{ + return ingressAclEntries_; +} + +void UpdateNetworkAclEntriesRequest::setIngressAclEntries(const std::vector& ingressAclEntries) +{ + ingressAclEntries_ = ingressAclEntries; + int i = 0; + for(int i = 0; i!= ingressAclEntries.size(); i++) { + auto obj = ingressAclEntries.at(i); + std::string str ="IngressAclEntries."+ std::to_string(i); + setCoreParameter(str + ".NetworkAclEntryName", obj.networkAclEntryName); + setCoreParameter(str + ".NetworkAclEntryId", obj.networkAclEntryId); + setCoreParameter(str + ".Policy", obj.policy); + setCoreParameter(str + ".Protocol", obj.protocol); + setCoreParameter(str + ".SourceCidrIp", obj.sourceCidrIp); + setCoreParameter(str + ".Port", obj.port); + setCoreParameter(str + ".EntryType", obj.entryType); + setCoreParameter(str + ".Description", obj.description); + } +} + diff --git a/vpc/src/model/UpdateNetworkAclEntriesResult.cc b/vpc/src/model/UpdateNetworkAclEntriesResult.cc new file mode 100644 index 000000000..886b5fcf9 --- /dev/null +++ b/vpc/src/model/UpdateNetworkAclEntriesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateNetworkAclEntriesResult::UpdateNetworkAclEntriesResult() : + ServiceResult() +{} + +UpdateNetworkAclEntriesResult::UpdateNetworkAclEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNetworkAclEntriesResult::~UpdateNetworkAclEntriesResult() +{} + +void UpdateNetworkAclEntriesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/xspace/include/alibabacloud/xspace/model/QueryCustomerByIdResult.h b/xspace/include/alibabacloud/xspace/model/QueryCustomerByIdResult.h index 1306a1deb..099bb660c 100644 --- a/xspace/include/alibabacloud/xspace/model/QueryCustomerByIdResult.h +++ b/xspace/include/alibabacloud/xspace/model/QueryCustomerByIdResult.h @@ -36,8 +36,12 @@ namespace AlibabaCloud { struct CustomizeFields { + std::string mainAccountUid; std::string abcUrl; std::vector associatePersonList; + std::string distributionLevel; + std::string tag; + std::string associatePerson; std::string cid; }; std::string email; diff --git a/xspace/src/XspaceClient.cc b/xspace/src/XspaceClient.cc index a87a85ddf..1814274cd 100644 --- a/xspace/src/XspaceClient.cc +++ b/xspace/src/XspaceClient.cc @@ -31,21 +31,21 @@ XspaceClient::XspaceClient(const Credentials &credentials, const ClientConfigura RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "xspace"); } XspaceClient::XspaceClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "xspace"); } XspaceClient::XspaceClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "xspace"); } XspaceClient::~XspaceClient() diff --git a/xspace/src/model/QueryCustomerByIdRequest.cc b/xspace/src/model/QueryCustomerByIdRequest.cc index 854ae0a8e..8ff26fd34 100644 --- a/xspace/src/model/QueryCustomerByIdRequest.cc +++ b/xspace/src/model/QueryCustomerByIdRequest.cc @@ -33,6 +33,6 @@ std::string QueryCustomerByIdRequest::getId()const void QueryCustomerByIdRequest::setId(const std::string& id) { id_ = id; - setParameter("Id", id); + setCoreParameter("Id", id); } diff --git a/xspace/src/model/QueryCustomerByIdResult.cc b/xspace/src/model/QueryCustomerByIdResult.cc index 8c32eb7b6..7f1c6f3eb 100644 --- a/xspace/src/model/QueryCustomerByIdResult.cc +++ b/xspace/src/model/QueryCustomerByIdResult.cc @@ -35,10 +35,13 @@ QueryCustomerByIdResult::~QueryCustomerByIdResult() void QueryCustomerByIdResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; if(!dataNode["Id"].isNull()) @@ -62,6 +65,14 @@ void QueryCustomerByIdResult::parse(const std::string &payload) data_.customizeFields.cid = customizeFieldsNode["Cid"].asString(); if(!customizeFieldsNode["AbcUrl"].isNull()) data_.customizeFields.abcUrl = customizeFieldsNode["AbcUrl"].asString(); + if(!customizeFieldsNode["DistributionLevel"].isNull()) + data_.customizeFields.distributionLevel = customizeFieldsNode["DistributionLevel"].asString(); + if(!customizeFieldsNode["MainAccountUid"].isNull()) + data_.customizeFields.mainAccountUid = customizeFieldsNode["MainAccountUid"].asString(); + if(!customizeFieldsNode["AssociatePerson"].isNull()) + data_.customizeFields.associatePerson = customizeFieldsNode["AssociatePerson"].asString(); + if(!customizeFieldsNode["Tag"].isNull()) + data_.customizeFields.tag = customizeFieldsNode["Tag"].asString(); auto allAssociatePersonList = customizeFieldsNode["AssociatePersonList"]["AssociatePersonList"]; for (auto value : allAssociatePersonList) data_.customizeFields.associatePersonList.push_back(value.asString()); diff --git a/xspace/src/model/QueryCustomerByPhoneRequest.cc b/xspace/src/model/QueryCustomerByPhoneRequest.cc index 45cde4a98..96eb24657 100644 --- a/xspace/src/model/QueryCustomerByPhoneRequest.cc +++ b/xspace/src/model/QueryCustomerByPhoneRequest.cc @@ -33,6 +33,6 @@ std::string QueryCustomerByPhoneRequest::getPhone()const void QueryCustomerByPhoneRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); + setCoreParameter("Phone", phone); } diff --git a/xspace/src/model/QueryCustomerByPhoneResult.cc b/xspace/src/model/QueryCustomerByPhoneResult.cc index 61cda5f82..1a4f5aba2 100644 --- a/xspace/src/model/QueryCustomerByPhoneResult.cc +++ b/xspace/src/model/QueryCustomerByPhoneResult.cc @@ -35,10 +35,13 @@ QueryCustomerByPhoneResult::~QueryCustomerByPhoneResult() void QueryCustomerByPhoneResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["DataItem"]; for (auto value : allData) diff --git a/yundun-ds/CMakeLists.txt b/yundun-ds/CMakeLists.txt index dfaaa85e4..aa62cf5e9 100644 --- a/yundun-ds/CMakeLists.txt +++ b/yundun-ds/CMakeLists.txt @@ -20,10 +20,194 @@ set(yundun-ds_public_header include/alibabacloud/yundun-ds/Yundun_dsClient.h include/alibabacloud/yundun-ds/Yundun_dsExport.h ) -set(yundun-ds_public_header_model ) +set(yundun-ds_public_header_model + include/alibabacloud/yundun-ds/model/DescribeOssObjectDetailRequest.h + include/alibabacloud/yundun-ds/model/DescribeOssObjectDetailResult.h + include/alibabacloud/yundun-ds/model/DescribeRuleTotalCountRequest.h + include/alibabacloud/yundun-ds/model/DescribeRuleTotalCountResult.h + include/alibabacloud/yundun-ds/model/CreateConfigRequest.h + include/alibabacloud/yundun-ds/model/CreateConfigResult.h + include/alibabacloud/yundun-ds/model/DescribeEventTypesRequest.h + include/alibabacloud/yundun-ds/model/DescribeEventTypesResult.h + include/alibabacloud/yundun-ds/model/ModifyEventStatusRequest.h + include/alibabacloud/yundun-ds/model/ModifyEventStatusResult.h + include/alibabacloud/yundun-ds/model/DescribePackagesRequest.h + include/alibabacloud/yundun-ds/model/DescribePackagesResult.h + include/alibabacloud/yundun-ds/model/DescribeConfigsRequest.h + include/alibabacloud/yundun-ds/model/DescribeConfigsResult.h + include/alibabacloud/yundun-ds/model/DescribeAuthAccountsRequest.h + include/alibabacloud/yundun-ds/model/DescribeAuthAccountsResult.h + include/alibabacloud/yundun-ds/model/ValidateConnectorRequest.h + include/alibabacloud/yundun-ds/model/ValidateConnectorResult.h + include/alibabacloud/yundun-ds/model/DescribeDataAssetsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataAssetsResult.h + include/alibabacloud/yundun-ds/model/CreateRuleRequest.h + include/alibabacloud/yundun-ds/model/CreateRuleResult.h + include/alibabacloud/yundun-ds/model/DescribeDepartCountsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDepartCountsResult.h + include/alibabacloud/yundun-ds/model/CreateUserAuthRequest.h + include/alibabacloud/yundun-ds/model/CreateUserAuthResult.h + include/alibabacloud/yundun-ds/model/DeleteRuleRequest.h + include/alibabacloud/yundun-ds/model/DeleteRuleResult.h + include/alibabacloud/yundun-ds/model/DescribeDataHubConnectorsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataHubConnectorsResult.h + include/alibabacloud/yundun-ds/model/DescribeColumnsRequest.h + include/alibabacloud/yundun-ds/model/DescribeColumnsResult.h + include/alibabacloud/yundun-ds/model/DescribeRulesRequest.h + include/alibabacloud/yundun-ds/model/DescribeRulesResult.h + include/alibabacloud/yundun-ds/model/DeleteDataLimitRequest.h + include/alibabacloud/yundun-ds/model/DeleteDataLimitResult.h + include/alibabacloud/yundun-ds/model/ModifyRuleStatusRequest.h + include/alibabacloud/yundun-ds/model/ModifyRuleStatusResult.h + include/alibabacloud/yundun-ds/model/DescribeTransferEventCountsRequest.h + include/alibabacloud/yundun-ds/model/DescribeTransferEventCountsResult.h + include/alibabacloud/yundun-ds/model/DescribeAccountDetailRequest.h + include/alibabacloud/yundun-ds/model/DescribeAccountDetailResult.h + include/alibabacloud/yundun-ds/model/DescribeDepartsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDepartsResult.h + include/alibabacloud/yundun-ds/model/DescribeDataCountsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataCountsResult.h + include/alibabacloud/yundun-ds/model/DescribeDataHubSubscriptionsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataHubSubscriptionsResult.h + include/alibabacloud/yundun-ds/model/DescribeDataHubTopicsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataHubTopicsResult.h + include/alibabacloud/yundun-ds/model/DescribeAccountsRequest.h + include/alibabacloud/yundun-ds/model/DescribeAccountsResult.h + include/alibabacloud/yundun-ds/model/DescribeTotalCountRequest.h + include/alibabacloud/yundun-ds/model/DescribeTotalCountResult.h + include/alibabacloud/yundun-ds/model/DescribeOssObjectsRequest.h + include/alibabacloud/yundun-ds/model/DescribeOssObjectsResult.h + include/alibabacloud/yundun-ds/model/DescribeDataTotalCountRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataTotalCountResult.h + include/alibabacloud/yundun-ds/model/DescribeEventsRequest.h + include/alibabacloud/yundun-ds/model/DescribeEventsResult.h + include/alibabacloud/yundun-ds/model/CreateDataLimitRequest.h + include/alibabacloud/yundun-ds/model/CreateDataLimitResult.h + include/alibabacloud/yundun-ds/model/DescribeDataLimitSetRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataLimitSetResult.h + include/alibabacloud/yundun-ds/model/DescribeDepartTotalCountRequest.h + include/alibabacloud/yundun-ds/model/DescribeDepartTotalCountResult.h + include/alibabacloud/yundun-ds/model/ModifyRuleRequest.h + include/alibabacloud/yundun-ds/model/ModifyRuleResult.h + include/alibabacloud/yundun-ds/model/DescribeEventDetailRequest.h + include/alibabacloud/yundun-ds/model/DescribeEventDetailResult.h + include/alibabacloud/yundun-ds/model/DescribeTablesRequest.h + include/alibabacloud/yundun-ds/model/DescribeTablesResult.h + include/alibabacloud/yundun-ds/model/DescribePrivilegesRequest.h + include/alibabacloud/yundun-ds/model/DescribePrivilegesResult.h + include/alibabacloud/yundun-ds/model/DescribeDataHubProjectsRequest.h + include/alibabacloud/yundun-ds/model/DescribeDataHubProjectsResult.h + include/alibabacloud/yundun-ds/model/DescribeInstancesRequest.h + include/alibabacloud/yundun-ds/model/DescribeInstancesResult.h + include/alibabacloud/yundun-ds/model/ModifyEventTypeStatusRequest.h + include/alibabacloud/yundun-ds/model/ModifyEventTypeStatusResult.h + include/alibabacloud/yundun-ds/model/ModifyDefaultLevelRequest.h + include/alibabacloud/yundun-ds/model/ModifyDefaultLevelResult.h + include/alibabacloud/yundun-ds/model/DescribeUserStatusRequest.h + include/alibabacloud/yundun-ds/model/DescribeUserStatusResult.h + include/alibabacloud/yundun-ds/model/DescribeConditionsRequest.h + include/alibabacloud/yundun-ds/model/DescribeConditionsResult.h + include/alibabacloud/yundun-ds/model/DescribeEventCountsRequest.h + include/alibabacloud/yundun-ds/model/DescribeEventCountsResult.h + include/alibabacloud/yundun-ds/model/DescribeEventTotalCountRequest.h + include/alibabacloud/yundun-ds/model/DescribeEventTotalCountResult.h + include/alibabacloud/yundun-ds/model/DescribeFlowTotalCountRequest.h + include/alibabacloud/yundun-ds/model/DescribeFlowTotalCountResult.h ) set(yundun-ds_src - src/Yundun-dsClient.cc ) + src/Yundun-dsClient.cc + src/model/DescribeOssObjectDetailRequest.cc + src/model/DescribeOssObjectDetailResult.cc + src/model/DescribeRuleTotalCountRequest.cc + src/model/DescribeRuleTotalCountResult.cc + src/model/CreateConfigRequest.cc + src/model/CreateConfigResult.cc + src/model/DescribeEventTypesRequest.cc + src/model/DescribeEventTypesResult.cc + src/model/ModifyEventStatusRequest.cc + src/model/ModifyEventStatusResult.cc + src/model/DescribePackagesRequest.cc + src/model/DescribePackagesResult.cc + src/model/DescribeConfigsRequest.cc + src/model/DescribeConfigsResult.cc + src/model/DescribeAuthAccountsRequest.cc + src/model/DescribeAuthAccountsResult.cc + src/model/ValidateConnectorRequest.cc + src/model/ValidateConnectorResult.cc + src/model/DescribeDataAssetsRequest.cc + src/model/DescribeDataAssetsResult.cc + src/model/CreateRuleRequest.cc + src/model/CreateRuleResult.cc + src/model/DescribeDepartCountsRequest.cc + src/model/DescribeDepartCountsResult.cc + src/model/CreateUserAuthRequest.cc + src/model/CreateUserAuthResult.cc + src/model/DeleteRuleRequest.cc + src/model/DeleteRuleResult.cc + src/model/DescribeDataHubConnectorsRequest.cc + src/model/DescribeDataHubConnectorsResult.cc + src/model/DescribeColumnsRequest.cc + src/model/DescribeColumnsResult.cc + src/model/DescribeRulesRequest.cc + src/model/DescribeRulesResult.cc + src/model/DeleteDataLimitRequest.cc + src/model/DeleteDataLimitResult.cc + src/model/ModifyRuleStatusRequest.cc + src/model/ModifyRuleStatusResult.cc + src/model/DescribeTransferEventCountsRequest.cc + src/model/DescribeTransferEventCountsResult.cc + src/model/DescribeAccountDetailRequest.cc + src/model/DescribeAccountDetailResult.cc + src/model/DescribeDepartsRequest.cc + src/model/DescribeDepartsResult.cc + src/model/DescribeDataCountsRequest.cc + src/model/DescribeDataCountsResult.cc + src/model/DescribeDataHubSubscriptionsRequest.cc + src/model/DescribeDataHubSubscriptionsResult.cc + src/model/DescribeDataHubTopicsRequest.cc + src/model/DescribeDataHubTopicsResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/DescribeTotalCountRequest.cc + src/model/DescribeTotalCountResult.cc + src/model/DescribeOssObjectsRequest.cc + src/model/DescribeOssObjectsResult.cc + src/model/DescribeDataTotalCountRequest.cc + src/model/DescribeDataTotalCountResult.cc + src/model/DescribeEventsRequest.cc + src/model/DescribeEventsResult.cc + src/model/CreateDataLimitRequest.cc + src/model/CreateDataLimitResult.cc + src/model/DescribeDataLimitSetRequest.cc + src/model/DescribeDataLimitSetResult.cc + src/model/DescribeDepartTotalCountRequest.cc + src/model/DescribeDepartTotalCountResult.cc + src/model/ModifyRuleRequest.cc + src/model/ModifyRuleResult.cc + src/model/DescribeEventDetailRequest.cc + src/model/DescribeEventDetailResult.cc + src/model/DescribeTablesRequest.cc + src/model/DescribeTablesResult.cc + src/model/DescribePrivilegesRequest.cc + src/model/DescribePrivilegesResult.cc + src/model/DescribeDataHubProjectsRequest.cc + src/model/DescribeDataHubProjectsResult.cc + src/model/DescribeInstancesRequest.cc + src/model/DescribeInstancesResult.cc + src/model/ModifyEventTypeStatusRequest.cc + src/model/ModifyEventTypeStatusResult.cc + src/model/ModifyDefaultLevelRequest.cc + src/model/ModifyDefaultLevelResult.cc + src/model/DescribeUserStatusRequest.cc + src/model/DescribeUserStatusResult.cc + src/model/DescribeConditionsRequest.cc + src/model/DescribeConditionsResult.cc + src/model/DescribeEventCountsRequest.cc + src/model/DescribeEventCountsResult.cc + src/model/DescribeEventTotalCountRequest.cc + src/model/DescribeEventTotalCountResult.cc + src/model/DescribeFlowTotalCountRequest.cc + src/model/DescribeFlowTotalCountResult.cc ) add_library(yundun-ds ${LIB_TYPE} ${yundun-ds_public_header} diff --git a/yundun-ds/include/alibabacloud/yundun-ds/Yundun_dsClient.h b/yundun-ds/include/alibabacloud/yundun-ds/Yundun_dsClient.h index c513b5228..b43115c3e 100644 --- a/yundun-ds/include/alibabacloud/yundun-ds/Yundun_dsClient.h +++ b/yundun-ds/include/alibabacloud/yundun-ds/Yundun_dsClient.h @@ -30,36 +30,36 @@ #include "model/CreateConfigResult.h" #include "model/DescribeEventTypesRequest.h" #include "model/DescribeEventTypesResult.h" -#include "model/DescribePackagesRequest.h" -#include "model/DescribePackagesResult.h" #include "model/ModifyEventStatusRequest.h" #include "model/ModifyEventStatusResult.h" +#include "model/DescribePackagesRequest.h" +#include "model/DescribePackagesResult.h" #include "model/DescribeConfigsRequest.h" #include "model/DescribeConfigsResult.h" #include "model/DescribeAuthAccountsRequest.h" #include "model/DescribeAuthAccountsResult.h" -#include "model/DescribeDataAssetsRequest.h" -#include "model/DescribeDataAssetsResult.h" #include "model/ValidateConnectorRequest.h" #include "model/ValidateConnectorResult.h" +#include "model/DescribeDataAssetsRequest.h" +#include "model/DescribeDataAssetsResult.h" #include "model/CreateRuleRequest.h" #include "model/CreateRuleResult.h" -#include "model/CreateUserAuthRequest.h" -#include "model/CreateUserAuthResult.h" #include "model/DescribeDepartCountsRequest.h" #include "model/DescribeDepartCountsResult.h" +#include "model/CreateUserAuthRequest.h" +#include "model/CreateUserAuthResult.h" #include "model/DeleteRuleRequest.h" #include "model/DeleteRuleResult.h" #include "model/DescribeDataHubConnectorsRequest.h" #include "model/DescribeDataHubConnectorsResult.h" -#include "model/DescribeRulesRequest.h" -#include "model/DescribeRulesResult.h" #include "model/DescribeColumnsRequest.h" #include "model/DescribeColumnsResult.h" -#include "model/ModifyRuleStatusRequest.h" -#include "model/ModifyRuleStatusResult.h" +#include "model/DescribeRulesRequest.h" +#include "model/DescribeRulesResult.h" #include "model/DeleteDataLimitRequest.h" #include "model/DeleteDataLimitResult.h" +#include "model/ModifyRuleStatusRequest.h" +#include "model/ModifyRuleStatusResult.h" #include "model/DescribeTransferEventCountsRequest.h" #include "model/DescribeTransferEventCountsResult.h" #include "model/DescribeAccountDetailRequest.h" @@ -72,10 +72,10 @@ #include "model/DescribeDataHubSubscriptionsResult.h" #include "model/DescribeDataHubTopicsRequest.h" #include "model/DescribeDataHubTopicsResult.h" -#include "model/DescribeTotalCountRequest.h" -#include "model/DescribeTotalCountResult.h" #include "model/DescribeAccountsRequest.h" #include "model/DescribeAccountsResult.h" +#include "model/DescribeTotalCountRequest.h" +#include "model/DescribeTotalCountResult.h" #include "model/DescribeOssObjectsRequest.h" #include "model/DescribeOssObjectsResult.h" #include "model/DescribeDataTotalCountRequest.h" @@ -86,10 +86,10 @@ #include "model/CreateDataLimitResult.h" #include "model/DescribeDataLimitSetRequest.h" #include "model/DescribeDataLimitSetResult.h" -#include "model/ModifyRuleRequest.h" -#include "model/ModifyRuleResult.h" #include "model/DescribeDepartTotalCountRequest.h" #include "model/DescribeDepartTotalCountResult.h" +#include "model/ModifyRuleRequest.h" +#include "model/ModifyRuleResult.h" #include "model/DescribeEventDetailRequest.h" #include "model/DescribeEventDetailResult.h" #include "model/DescribeTablesRequest.h" @@ -100,10 +100,10 @@ #include "model/DescribeDataHubProjectsResult.h" #include "model/DescribeInstancesRequest.h" #include "model/DescribeInstancesResult.h" -#include "model/ModifyDefaultLevelRequest.h" -#include "model/ModifyDefaultLevelResult.h" #include "model/ModifyEventTypeStatusRequest.h" #include "model/ModifyEventTypeStatusResult.h" +#include "model/ModifyDefaultLevelRequest.h" +#include "model/ModifyDefaultLevelResult.h" #include "model/DescribeUserStatusRequest.h" #include "model/DescribeUserStatusResult.h" #include "model/DescribeConditionsRequest.h" @@ -135,51 +135,51 @@ namespace AlibabaCloud typedef Outcome DescribeEventTypesOutcome; typedef std::future DescribeEventTypesOutcomeCallable; typedef std::function&)> DescribeEventTypesAsyncHandler; - typedef Outcome DescribePackagesOutcome; - typedef std::future DescribePackagesOutcomeCallable; - typedef std::function&)> DescribePackagesAsyncHandler; typedef Outcome ModifyEventStatusOutcome; typedef std::future ModifyEventStatusOutcomeCallable; typedef std::function&)> ModifyEventStatusAsyncHandler; + typedef Outcome DescribePackagesOutcome; + typedef std::future DescribePackagesOutcomeCallable; + typedef std::function&)> DescribePackagesAsyncHandler; typedef Outcome DescribeConfigsOutcome; typedef std::future DescribeConfigsOutcomeCallable; typedef std::function&)> DescribeConfigsAsyncHandler; typedef Outcome DescribeAuthAccountsOutcome; typedef std::future DescribeAuthAccountsOutcomeCallable; typedef std::function&)> DescribeAuthAccountsAsyncHandler; - typedef Outcome DescribeDataAssetsOutcome; - typedef std::future DescribeDataAssetsOutcomeCallable; - typedef std::function&)> DescribeDataAssetsAsyncHandler; typedef Outcome ValidateConnectorOutcome; typedef std::future ValidateConnectorOutcomeCallable; typedef std::function&)> ValidateConnectorAsyncHandler; + typedef Outcome DescribeDataAssetsOutcome; + typedef std::future DescribeDataAssetsOutcomeCallable; + typedef std::function&)> DescribeDataAssetsAsyncHandler; typedef Outcome CreateRuleOutcome; typedef std::future CreateRuleOutcomeCallable; typedef std::function&)> CreateRuleAsyncHandler; - typedef Outcome CreateUserAuthOutcome; - typedef std::future CreateUserAuthOutcomeCallable; - typedef std::function&)> CreateUserAuthAsyncHandler; typedef Outcome DescribeDepartCountsOutcome; typedef std::future DescribeDepartCountsOutcomeCallable; typedef std::function&)> DescribeDepartCountsAsyncHandler; + typedef Outcome CreateUserAuthOutcome; + typedef std::future CreateUserAuthOutcomeCallable; + typedef std::function&)> CreateUserAuthAsyncHandler; typedef Outcome DeleteRuleOutcome; typedef std::future DeleteRuleOutcomeCallable; typedef std::function&)> DeleteRuleAsyncHandler; typedef Outcome DescribeDataHubConnectorsOutcome; typedef std::future DescribeDataHubConnectorsOutcomeCallable; typedef std::function&)> DescribeDataHubConnectorsAsyncHandler; - typedef Outcome DescribeRulesOutcome; - typedef std::future DescribeRulesOutcomeCallable; - typedef std::function&)> DescribeRulesAsyncHandler; typedef Outcome DescribeColumnsOutcome; typedef std::future DescribeColumnsOutcomeCallable; typedef std::function&)> DescribeColumnsAsyncHandler; - typedef Outcome ModifyRuleStatusOutcome; - typedef std::future ModifyRuleStatusOutcomeCallable; - typedef std::function&)> ModifyRuleStatusAsyncHandler; + typedef Outcome DescribeRulesOutcome; + typedef std::future DescribeRulesOutcomeCallable; + typedef std::function&)> DescribeRulesAsyncHandler; typedef Outcome DeleteDataLimitOutcome; typedef std::future DeleteDataLimitOutcomeCallable; typedef std::function&)> DeleteDataLimitAsyncHandler; + typedef Outcome ModifyRuleStatusOutcome; + typedef std::future ModifyRuleStatusOutcomeCallable; + typedef std::function&)> ModifyRuleStatusAsyncHandler; typedef Outcome DescribeTransferEventCountsOutcome; typedef std::future DescribeTransferEventCountsOutcomeCallable; typedef std::function&)> DescribeTransferEventCountsAsyncHandler; @@ -198,12 +198,12 @@ namespace AlibabaCloud typedef Outcome DescribeDataHubTopicsOutcome; typedef std::future DescribeDataHubTopicsOutcomeCallable; typedef std::function&)> DescribeDataHubTopicsAsyncHandler; - typedef Outcome DescribeTotalCountOutcome; - typedef std::future DescribeTotalCountOutcomeCallable; - typedef std::function&)> DescribeTotalCountAsyncHandler; typedef Outcome DescribeAccountsOutcome; typedef std::future DescribeAccountsOutcomeCallable; typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribeTotalCountOutcome; + typedef std::future DescribeTotalCountOutcomeCallable; + typedef std::function&)> DescribeTotalCountAsyncHandler; typedef Outcome DescribeOssObjectsOutcome; typedef std::future DescribeOssObjectsOutcomeCallable; typedef std::function&)> DescribeOssObjectsAsyncHandler; @@ -219,12 +219,12 @@ namespace AlibabaCloud typedef Outcome DescribeDataLimitSetOutcome; typedef std::future DescribeDataLimitSetOutcomeCallable; typedef std::function&)> DescribeDataLimitSetAsyncHandler; - typedef Outcome ModifyRuleOutcome; - typedef std::future ModifyRuleOutcomeCallable; - typedef std::function&)> ModifyRuleAsyncHandler; typedef Outcome DescribeDepartTotalCountOutcome; typedef std::future DescribeDepartTotalCountOutcomeCallable; typedef std::function&)> DescribeDepartTotalCountAsyncHandler; + typedef Outcome ModifyRuleOutcome; + typedef std::future ModifyRuleOutcomeCallable; + typedef std::function&)> ModifyRuleAsyncHandler; typedef Outcome DescribeEventDetailOutcome; typedef std::future DescribeEventDetailOutcomeCallable; typedef std::function&)> DescribeEventDetailAsyncHandler; @@ -240,12 +240,12 @@ namespace AlibabaCloud typedef Outcome DescribeInstancesOutcome; typedef std::future DescribeInstancesOutcomeCallable; typedef std::function&)> DescribeInstancesAsyncHandler; - typedef Outcome ModifyDefaultLevelOutcome; - typedef std::future ModifyDefaultLevelOutcomeCallable; - typedef std::function&)> ModifyDefaultLevelAsyncHandler; typedef Outcome ModifyEventTypeStatusOutcome; typedef std::future ModifyEventTypeStatusOutcomeCallable; typedef std::function&)> ModifyEventTypeStatusAsyncHandler; + typedef Outcome ModifyDefaultLevelOutcome; + typedef std::future ModifyDefaultLevelOutcomeCallable; + typedef std::function&)> ModifyDefaultLevelAsyncHandler; typedef Outcome DescribeUserStatusOutcome; typedef std::future DescribeUserStatusOutcomeCallable; typedef std::function&)> DescribeUserStatusAsyncHandler; @@ -278,51 +278,51 @@ namespace AlibabaCloud DescribeEventTypesOutcome describeEventTypes(const Model::DescribeEventTypesRequest &request)const; void describeEventTypesAsync(const Model::DescribeEventTypesRequest& request, const DescribeEventTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEventTypesOutcomeCallable describeEventTypesCallable(const Model::DescribeEventTypesRequest& request) const; - DescribePackagesOutcome describePackages(const Model::DescribePackagesRequest &request)const; - void describePackagesAsync(const Model::DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePackagesOutcomeCallable describePackagesCallable(const Model::DescribePackagesRequest& request) const; ModifyEventStatusOutcome modifyEventStatus(const Model::ModifyEventStatusRequest &request)const; void modifyEventStatusAsync(const Model::ModifyEventStatusRequest& request, const ModifyEventStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEventStatusOutcomeCallable modifyEventStatusCallable(const Model::ModifyEventStatusRequest& request) const; + DescribePackagesOutcome describePackages(const Model::DescribePackagesRequest &request)const; + void describePackagesAsync(const Model::DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePackagesOutcomeCallable describePackagesCallable(const Model::DescribePackagesRequest& request) const; DescribeConfigsOutcome describeConfigs(const Model::DescribeConfigsRequest &request)const; void describeConfigsAsync(const Model::DescribeConfigsRequest& request, const DescribeConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeConfigsOutcomeCallable describeConfigsCallable(const Model::DescribeConfigsRequest& request) const; DescribeAuthAccountsOutcome describeAuthAccounts(const Model::DescribeAuthAccountsRequest &request)const; void describeAuthAccountsAsync(const Model::DescribeAuthAccountsRequest& request, const DescribeAuthAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuthAccountsOutcomeCallable describeAuthAccountsCallable(const Model::DescribeAuthAccountsRequest& request) const; - DescribeDataAssetsOutcome describeDataAssets(const Model::DescribeDataAssetsRequest &request)const; - void describeDataAssetsAsync(const Model::DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataAssetsOutcomeCallable describeDataAssetsCallable(const Model::DescribeDataAssetsRequest& request) const; ValidateConnectorOutcome validateConnector(const Model::ValidateConnectorRequest &request)const; void validateConnectorAsync(const Model::ValidateConnectorRequest& request, const ValidateConnectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ValidateConnectorOutcomeCallable validateConnectorCallable(const Model::ValidateConnectorRequest& request) const; + DescribeDataAssetsOutcome describeDataAssets(const Model::DescribeDataAssetsRequest &request)const; + void describeDataAssetsAsync(const Model::DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataAssetsOutcomeCallable describeDataAssetsCallable(const Model::DescribeDataAssetsRequest& request) const; CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; - CreateUserAuthOutcome createUserAuth(const Model::CreateUserAuthRequest &request)const; - void createUserAuthAsync(const Model::CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateUserAuthOutcomeCallable createUserAuthCallable(const Model::CreateUserAuthRequest& request) const; DescribeDepartCountsOutcome describeDepartCounts(const Model::DescribeDepartCountsRequest &request)const; void describeDepartCountsAsync(const Model::DescribeDepartCountsRequest& request, const DescribeDepartCountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDepartCountsOutcomeCallable describeDepartCountsCallable(const Model::DescribeDepartCountsRequest& request) const; + CreateUserAuthOutcome createUserAuth(const Model::CreateUserAuthRequest &request)const; + void createUserAuthAsync(const Model::CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserAuthOutcomeCallable createUserAuthCallable(const Model::CreateUserAuthRequest& request) const; DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; DescribeDataHubConnectorsOutcome describeDataHubConnectors(const Model::DescribeDataHubConnectorsRequest &request)const; void describeDataHubConnectorsAsync(const Model::DescribeDataHubConnectorsRequest& request, const DescribeDataHubConnectorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataHubConnectorsOutcomeCallable describeDataHubConnectorsCallable(const Model::DescribeDataHubConnectorsRequest& request) const; - DescribeRulesOutcome describeRules(const Model::DescribeRulesRequest &request)const; - void describeRulesAsync(const Model::DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRulesOutcomeCallable describeRulesCallable(const Model::DescribeRulesRequest& request) const; DescribeColumnsOutcome describeColumns(const Model::DescribeColumnsRequest &request)const; void describeColumnsAsync(const Model::DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeColumnsOutcomeCallable describeColumnsCallable(const Model::DescribeColumnsRequest& request) const; - ModifyRuleStatusOutcome modifyRuleStatus(const Model::ModifyRuleStatusRequest &request)const; - void modifyRuleStatusAsync(const Model::ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyRuleStatusOutcomeCallable modifyRuleStatusCallable(const Model::ModifyRuleStatusRequest& request) const; + DescribeRulesOutcome describeRules(const Model::DescribeRulesRequest &request)const; + void describeRulesAsync(const Model::DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRulesOutcomeCallable describeRulesCallable(const Model::DescribeRulesRequest& request) const; DeleteDataLimitOutcome deleteDataLimit(const Model::DeleteDataLimitRequest &request)const; void deleteDataLimitAsync(const Model::DeleteDataLimitRequest& request, const DeleteDataLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDataLimitOutcomeCallable deleteDataLimitCallable(const Model::DeleteDataLimitRequest& request) const; + ModifyRuleStatusOutcome modifyRuleStatus(const Model::ModifyRuleStatusRequest &request)const; + void modifyRuleStatusAsync(const Model::ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleStatusOutcomeCallable modifyRuleStatusCallable(const Model::ModifyRuleStatusRequest& request) const; DescribeTransferEventCountsOutcome describeTransferEventCounts(const Model::DescribeTransferEventCountsRequest &request)const; void describeTransferEventCountsAsync(const Model::DescribeTransferEventCountsRequest& request, const DescribeTransferEventCountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTransferEventCountsOutcomeCallable describeTransferEventCountsCallable(const Model::DescribeTransferEventCountsRequest& request) const; @@ -341,12 +341,12 @@ namespace AlibabaCloud DescribeDataHubTopicsOutcome describeDataHubTopics(const Model::DescribeDataHubTopicsRequest &request)const; void describeDataHubTopicsAsync(const Model::DescribeDataHubTopicsRequest& request, const DescribeDataHubTopicsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataHubTopicsOutcomeCallable describeDataHubTopicsCallable(const Model::DescribeDataHubTopicsRequest& request) const; - DescribeTotalCountOutcome describeTotalCount(const Model::DescribeTotalCountRequest &request)const; - void describeTotalCountAsync(const Model::DescribeTotalCountRequest& request, const DescribeTotalCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTotalCountOutcomeCallable describeTotalCountCallable(const Model::DescribeTotalCountRequest& request) const; DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; + DescribeTotalCountOutcome describeTotalCount(const Model::DescribeTotalCountRequest &request)const; + void describeTotalCountAsync(const Model::DescribeTotalCountRequest& request, const DescribeTotalCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTotalCountOutcomeCallable describeTotalCountCallable(const Model::DescribeTotalCountRequest& request) const; DescribeOssObjectsOutcome describeOssObjects(const Model::DescribeOssObjectsRequest &request)const; void describeOssObjectsAsync(const Model::DescribeOssObjectsRequest& request, const DescribeOssObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssObjectsOutcomeCallable describeOssObjectsCallable(const Model::DescribeOssObjectsRequest& request) const; @@ -362,12 +362,12 @@ namespace AlibabaCloud DescribeDataLimitSetOutcome describeDataLimitSet(const Model::DescribeDataLimitSetRequest &request)const; void describeDataLimitSetAsync(const Model::DescribeDataLimitSetRequest& request, const DescribeDataLimitSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataLimitSetOutcomeCallable describeDataLimitSetCallable(const Model::DescribeDataLimitSetRequest& request) const; - ModifyRuleOutcome modifyRule(const Model::ModifyRuleRequest &request)const; - void modifyRuleAsync(const Model::ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyRuleOutcomeCallable modifyRuleCallable(const Model::ModifyRuleRequest& request) const; DescribeDepartTotalCountOutcome describeDepartTotalCount(const Model::DescribeDepartTotalCountRequest &request)const; void describeDepartTotalCountAsync(const Model::DescribeDepartTotalCountRequest& request, const DescribeDepartTotalCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDepartTotalCountOutcomeCallable describeDepartTotalCountCallable(const Model::DescribeDepartTotalCountRequest& request) const; + ModifyRuleOutcome modifyRule(const Model::ModifyRuleRequest &request)const; + void modifyRuleAsync(const Model::ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRuleOutcomeCallable modifyRuleCallable(const Model::ModifyRuleRequest& request) const; DescribeEventDetailOutcome describeEventDetail(const Model::DescribeEventDetailRequest &request)const; void describeEventDetailAsync(const Model::DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEventDetailOutcomeCallable describeEventDetailCallable(const Model::DescribeEventDetailRequest& request) const; @@ -383,12 +383,12 @@ namespace AlibabaCloud DescribeInstancesOutcome describeInstances(const Model::DescribeInstancesRequest &request)const; void describeInstancesAsync(const Model::DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstancesOutcomeCallable describeInstancesCallable(const Model::DescribeInstancesRequest& request) const; - ModifyDefaultLevelOutcome modifyDefaultLevel(const Model::ModifyDefaultLevelRequest &request)const; - void modifyDefaultLevelAsync(const Model::ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDefaultLevelOutcomeCallable modifyDefaultLevelCallable(const Model::ModifyDefaultLevelRequest& request) const; ModifyEventTypeStatusOutcome modifyEventTypeStatus(const Model::ModifyEventTypeStatusRequest &request)const; void modifyEventTypeStatusAsync(const Model::ModifyEventTypeStatusRequest& request, const ModifyEventTypeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEventTypeStatusOutcomeCallable modifyEventTypeStatusCallable(const Model::ModifyEventTypeStatusRequest& request) const; + ModifyDefaultLevelOutcome modifyDefaultLevel(const Model::ModifyDefaultLevelRequest &request)const; + void modifyDefaultLevelAsync(const Model::ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDefaultLevelOutcomeCallable modifyDefaultLevelCallable(const Model::ModifyDefaultLevelRequest& request) const; DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const; void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserStatusOutcomeCallable describeUserStatusCallable(const Model::DescribeUserStatusRequest& request) const; diff --git a/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataCountsResult.h b/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataCountsResult.h index adac34dea..7ef47ec45 100644 --- a/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataCountsResult.h +++ b/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataCountsResult.h @@ -50,7 +50,7 @@ namespace AlibabaCloud long sensitiveCount; long lastCount; }; - struct PackageInDescribeDataCounts + struct Package { long totalCount; long count; @@ -79,7 +79,7 @@ namespace AlibabaCloud Column column; std::string productCode; long productId; - PackageInDescribeDataCounts packageInDescribeDataCounts; + Package package; Oss oss; }; diff --git a/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataLimitSetResult.h b/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataLimitSetResult.h index cf32390c9..8124f4346 100644 --- a/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataLimitSetResult.h +++ b/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataLimitSetResult.h @@ -40,8 +40,10 @@ namespace AlibabaCloud std::string connector; long gmtCreate; std::string userName; + int checkStatus; std::string regionId; long id; + std::string checkStatusName; std::string localName; }; struct OssBucket diff --git a/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataTotalCountResult.h b/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataTotalCountResult.h index ef19fcaab..9fbc114ac 100644 --- a/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataTotalCountResult.h +++ b/yundun-ds/include/alibabacloud/yundun-ds/model/DescribeDataTotalCountResult.h @@ -64,7 +64,7 @@ namespace AlibabaCloud long sensitiveCount; long lastCount; }; - struct PackageInDescribeDataTotalCount + struct Package { struct RiskCount4 { @@ -112,7 +112,7 @@ namespace AlibabaCloud Table table; Instance instance; Column column; - PackageInDescribeDataTotalCount packageInDescribeDataTotalCount; + Package package; Oss oss; }; diff --git a/yundun-ds/src/Yundun-dsClient.cc b/yundun-ds/src/Yundun-dsClient.cc index 46251b9ac..c878ab7f9 100644 --- a/yundun-ds/src/Yundun-dsClient.cc +++ b/yundun-ds/src/Yundun-dsClient.cc @@ -31,21 +31,21 @@ Yundun_dsClient::Yundun_dsClient(const Credentials &credentials, const ClientCon RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "sddp"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "yundun-ds"); } Yundun_dsClient::Yundun_dsClient(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, "sddp"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "yundun-ds"); } Yundun_dsClient::Yundun_dsClient(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, "sddp"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "yundun-ds"); } Yundun_dsClient::~Yundun_dsClient() @@ -195,42 +195,6 @@ Yundun_dsClient::DescribeEventTypesOutcomeCallable Yundun_dsClient::describeEven return task->get_future(); } -Yundun_dsClient::DescribePackagesOutcome Yundun_dsClient::describePackages(const DescribePackagesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePackagesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePackagesOutcome(DescribePackagesResult(outcome.result())); - else - return DescribePackagesOutcome(outcome.error()); -} - -void Yundun_dsClient::describePackagesAsync(const DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePackages(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Yundun_dsClient::DescribePackagesOutcomeCallable Yundun_dsClient::describePackagesCallable(const DescribePackagesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePackages(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Yundun_dsClient::ModifyEventStatusOutcome Yundun_dsClient::modifyEventStatus(const ModifyEventStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +231,42 @@ Yundun_dsClient::ModifyEventStatusOutcomeCallable Yundun_dsClient::modifyEventSt return task->get_future(); } +Yundun_dsClient::DescribePackagesOutcome Yundun_dsClient::describePackages(const DescribePackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePackagesOutcome(DescribePackagesResult(outcome.result())); + else + return DescribePackagesOutcome(outcome.error()); +} + +void Yundun_dsClient::describePackagesAsync(const DescribePackagesRequest& request, const DescribePackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Yundun_dsClient::DescribePackagesOutcomeCallable Yundun_dsClient::describePackagesCallable(const DescribePackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Yundun_dsClient::DescribeConfigsOutcome Yundun_dsClient::describeConfigs(const DescribeConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,42 +339,6 @@ Yundun_dsClient::DescribeAuthAccountsOutcomeCallable Yundun_dsClient::describeAu return task->get_future(); } -Yundun_dsClient::DescribeDataAssetsOutcome Yundun_dsClient::describeDataAssets(const DescribeDataAssetsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataAssetsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataAssetsOutcome(DescribeDataAssetsResult(outcome.result())); - else - return DescribeDataAssetsOutcome(outcome.error()); -} - -void Yundun_dsClient::describeDataAssetsAsync(const DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataAssets(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Yundun_dsClient::DescribeDataAssetsOutcomeCallable Yundun_dsClient::describeDataAssetsCallable(const DescribeDataAssetsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataAssets(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Yundun_dsClient::ValidateConnectorOutcome Yundun_dsClient::validateConnector(const ValidateConnectorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +375,42 @@ Yundun_dsClient::ValidateConnectorOutcomeCallable Yundun_dsClient::validateConne return task->get_future(); } +Yundun_dsClient::DescribeDataAssetsOutcome Yundun_dsClient::describeDataAssets(const DescribeDataAssetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataAssetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataAssetsOutcome(DescribeDataAssetsResult(outcome.result())); + else + return DescribeDataAssetsOutcome(outcome.error()); +} + +void Yundun_dsClient::describeDataAssetsAsync(const DescribeDataAssetsRequest& request, const DescribeDataAssetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataAssets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Yundun_dsClient::DescribeDataAssetsOutcomeCallable Yundun_dsClient::describeDataAssetsCallable(const DescribeDataAssetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataAssets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Yundun_dsClient::CreateRuleOutcome Yundun_dsClient::createRule(const CreateRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,42 +447,6 @@ Yundun_dsClient::CreateRuleOutcomeCallable Yundun_dsClient::createRuleCallable(c return task->get_future(); } -Yundun_dsClient::CreateUserAuthOutcome Yundun_dsClient::createUserAuth(const CreateUserAuthRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateUserAuthOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateUserAuthOutcome(CreateUserAuthResult(outcome.result())); - else - return CreateUserAuthOutcome(outcome.error()); -} - -void Yundun_dsClient::createUserAuthAsync(const CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createUserAuth(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Yundun_dsClient::CreateUserAuthOutcomeCallable Yundun_dsClient::createUserAuthCallable(const CreateUserAuthRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createUserAuth(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Yundun_dsClient::DescribeDepartCountsOutcome Yundun_dsClient::describeDepartCounts(const DescribeDepartCountsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +483,42 @@ Yundun_dsClient::DescribeDepartCountsOutcomeCallable Yundun_dsClient::describeDe return task->get_future(); } +Yundun_dsClient::CreateUserAuthOutcome Yundun_dsClient::createUserAuth(const CreateUserAuthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserAuthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserAuthOutcome(CreateUserAuthResult(outcome.result())); + else + return CreateUserAuthOutcome(outcome.error()); +} + +void Yundun_dsClient::createUserAuthAsync(const CreateUserAuthRequest& request, const CreateUserAuthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserAuth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Yundun_dsClient::CreateUserAuthOutcomeCallable Yundun_dsClient::createUserAuthCallable(const CreateUserAuthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserAuth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Yundun_dsClient::DeleteRuleOutcome Yundun_dsClient::deleteRule(const DeleteRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,42 +591,6 @@ Yundun_dsClient::DescribeDataHubConnectorsOutcomeCallable Yundun_dsClient::descr return task->get_future(); } -Yundun_dsClient::DescribeRulesOutcome Yundun_dsClient::describeRules(const DescribeRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRulesOutcome(DescribeRulesResult(outcome.result())); - else - return DescribeRulesOutcome(outcome.error()); -} - -void Yundun_dsClient::describeRulesAsync(const DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Yundun_dsClient::DescribeRulesOutcomeCallable Yundun_dsClient::describeRulesCallable(const DescribeRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Yundun_dsClient::DescribeColumnsOutcome Yundun_dsClient::describeColumns(const DescribeColumnsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,36 +627,36 @@ Yundun_dsClient::DescribeColumnsOutcomeCallable Yundun_dsClient::describeColumns return task->get_future(); } -Yundun_dsClient::ModifyRuleStatusOutcome Yundun_dsClient::modifyRuleStatus(const ModifyRuleStatusRequest &request) const +Yundun_dsClient::DescribeRulesOutcome Yundun_dsClient::describeRules(const DescribeRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyRuleStatusOutcome(endpointOutcome.error()); + return DescribeRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyRuleStatusOutcome(ModifyRuleStatusResult(outcome.result())); + return DescribeRulesOutcome(DescribeRulesResult(outcome.result())); else - return ModifyRuleStatusOutcome(outcome.error()); + return DescribeRulesOutcome(outcome.error()); } -void Yundun_dsClient::modifyRuleStatusAsync(const ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context) const +void Yundun_dsClient::describeRulesAsync(const DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyRuleStatus(request), context); + handler(this, request, describeRules(request), context); }; asyncExecute(new Runnable(fn)); } -Yundun_dsClient::ModifyRuleStatusOutcomeCallable Yundun_dsClient::modifyRuleStatusCallable(const ModifyRuleStatusRequest &request) const +Yundun_dsClient::DescribeRulesOutcomeCallable Yundun_dsClient::describeRulesCallable(const DescribeRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyRuleStatus(request); + return this->describeRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -735,6 +699,42 @@ Yundun_dsClient::DeleteDataLimitOutcomeCallable Yundun_dsClient::deleteDataLimit return task->get_future(); } +Yundun_dsClient::ModifyRuleStatusOutcome Yundun_dsClient::modifyRuleStatus(const ModifyRuleStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRuleStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRuleStatusOutcome(ModifyRuleStatusResult(outcome.result())); + else + return ModifyRuleStatusOutcome(outcome.error()); +} + +void Yundun_dsClient::modifyRuleStatusAsync(const ModifyRuleStatusRequest& request, const ModifyRuleStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRuleStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Yundun_dsClient::ModifyRuleStatusOutcomeCallable Yundun_dsClient::modifyRuleStatusCallable(const ModifyRuleStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRuleStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Yundun_dsClient::DescribeTransferEventCountsOutcome Yundun_dsClient::describeTransferEventCounts(const DescribeTransferEventCountsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,42 +951,6 @@ Yundun_dsClient::DescribeDataHubTopicsOutcomeCallable Yundun_dsClient::describeD return task->get_future(); } -Yundun_dsClient::DescribeTotalCountOutcome Yundun_dsClient::describeTotalCount(const DescribeTotalCountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTotalCountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTotalCountOutcome(DescribeTotalCountResult(outcome.result())); - else - return DescribeTotalCountOutcome(outcome.error()); -} - -void Yundun_dsClient::describeTotalCountAsync(const DescribeTotalCountRequest& request, const DescribeTotalCountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTotalCount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Yundun_dsClient::DescribeTotalCountOutcomeCallable Yundun_dsClient::describeTotalCountCallable(const DescribeTotalCountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTotalCount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Yundun_dsClient::DescribeAccountsOutcome Yundun_dsClient::describeAccounts(const DescribeAccountsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +987,42 @@ Yundun_dsClient::DescribeAccountsOutcomeCallable Yundun_dsClient::describeAccoun return task->get_future(); } +Yundun_dsClient::DescribeTotalCountOutcome Yundun_dsClient::describeTotalCount(const DescribeTotalCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTotalCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTotalCountOutcome(DescribeTotalCountResult(outcome.result())); + else + return DescribeTotalCountOutcome(outcome.error()); +} + +void Yundun_dsClient::describeTotalCountAsync(const DescribeTotalCountRequest& request, const DescribeTotalCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTotalCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Yundun_dsClient::DescribeTotalCountOutcomeCallable Yundun_dsClient::describeTotalCountCallable(const DescribeTotalCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTotalCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Yundun_dsClient::DescribeOssObjectsOutcome Yundun_dsClient::describeOssObjects(const DescribeOssObjectsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,42 +1203,6 @@ Yundun_dsClient::DescribeDataLimitSetOutcomeCallable Yundun_dsClient::describeDa return task->get_future(); } -Yundun_dsClient::ModifyRuleOutcome Yundun_dsClient::modifyRule(const ModifyRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyRuleOutcome(ModifyRuleResult(outcome.result())); - else - return ModifyRuleOutcome(outcome.error()); -} - -void Yundun_dsClient::modifyRuleAsync(const ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Yundun_dsClient::ModifyRuleOutcomeCallable Yundun_dsClient::modifyRuleCallable(const ModifyRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Yundun_dsClient::DescribeDepartTotalCountOutcome Yundun_dsClient::describeDepartTotalCount(const DescribeDepartTotalCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1239,42 @@ Yundun_dsClient::DescribeDepartTotalCountOutcomeCallable Yundun_dsClient::descri return task->get_future(); } +Yundun_dsClient::ModifyRuleOutcome Yundun_dsClient::modifyRule(const ModifyRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRuleOutcome(ModifyRuleResult(outcome.result())); + else + return ModifyRuleOutcome(outcome.error()); +} + +void Yundun_dsClient::modifyRuleAsync(const ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Yundun_dsClient::ModifyRuleOutcomeCallable Yundun_dsClient::modifyRuleCallable(const ModifyRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Yundun_dsClient::DescribeEventDetailOutcome Yundun_dsClient::describeEventDetail(const DescribeEventDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,42 +1455,6 @@ Yundun_dsClient::DescribeInstancesOutcomeCallable Yundun_dsClient::describeInsta return task->get_future(); } -Yundun_dsClient::ModifyDefaultLevelOutcome Yundun_dsClient::modifyDefaultLevel(const ModifyDefaultLevelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDefaultLevelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDefaultLevelOutcome(ModifyDefaultLevelResult(outcome.result())); - else - return ModifyDefaultLevelOutcome(outcome.error()); -} - -void Yundun_dsClient::modifyDefaultLevelAsync(const ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDefaultLevel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Yundun_dsClient::ModifyDefaultLevelOutcomeCallable Yundun_dsClient::modifyDefaultLevelCallable(const ModifyDefaultLevelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDefaultLevel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Yundun_dsClient::ModifyEventTypeStatusOutcome Yundun_dsClient::modifyEventTypeStatus(const ModifyEventTypeStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1491,42 @@ Yundun_dsClient::ModifyEventTypeStatusOutcomeCallable Yundun_dsClient::modifyEve return task->get_future(); } +Yundun_dsClient::ModifyDefaultLevelOutcome Yundun_dsClient::modifyDefaultLevel(const ModifyDefaultLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDefaultLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDefaultLevelOutcome(ModifyDefaultLevelResult(outcome.result())); + else + return ModifyDefaultLevelOutcome(outcome.error()); +} + +void Yundun_dsClient::modifyDefaultLevelAsync(const ModifyDefaultLevelRequest& request, const ModifyDefaultLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDefaultLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Yundun_dsClient::ModifyDefaultLevelOutcomeCallable Yundun_dsClient::modifyDefaultLevelCallable(const ModifyDefaultLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDefaultLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Yundun_dsClient::DescribeUserStatusOutcome Yundun_dsClient::describeUserStatus(const DescribeUserStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/yundun-ds/src/model/CreateConfigResult.cc b/yundun-ds/src/model/CreateConfigResult.cc index 190647933..beed8f90b 100644 --- a/yundun-ds/src/model/CreateConfigResult.cc +++ b/yundun-ds/src/model/CreateConfigResult.cc @@ -35,10 +35,13 @@ CreateConfigResult::~CreateConfigResult() void CreateConfigResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/CreateDataLimitResult.cc b/yundun-ds/src/model/CreateDataLimitResult.cc index 407934ab2..56bfb2dd9 100644 --- a/yundun-ds/src/model/CreateDataLimitResult.cc +++ b/yundun-ds/src/model/CreateDataLimitResult.cc @@ -35,10 +35,13 @@ CreateDataLimitResult::~CreateDataLimitResult() void CreateDataLimitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/CreateRuleResult.cc b/yundun-ds/src/model/CreateRuleResult.cc index 468032314..6ffd132c7 100644 --- a/yundun-ds/src/model/CreateRuleResult.cc +++ b/yundun-ds/src/model/CreateRuleResult.cc @@ -35,10 +35,13 @@ CreateRuleResult::~CreateRuleResult() void CreateRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/CreateUserAuthResult.cc b/yundun-ds/src/model/CreateUserAuthResult.cc index 87654a300..0db07bc12 100644 --- a/yundun-ds/src/model/CreateUserAuthResult.cc +++ b/yundun-ds/src/model/CreateUserAuthResult.cc @@ -35,10 +35,13 @@ CreateUserAuthResult::~CreateUserAuthResult() void CreateUserAuthResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/DeleteDataLimitResult.cc b/yundun-ds/src/model/DeleteDataLimitResult.cc index 1a6e2dc41..e8a65a129 100644 --- a/yundun-ds/src/model/DeleteDataLimitResult.cc +++ b/yundun-ds/src/model/DeleteDataLimitResult.cc @@ -35,10 +35,13 @@ DeleteDataLimitResult::~DeleteDataLimitResult() void DeleteDataLimitResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/DeleteRuleResult.cc b/yundun-ds/src/model/DeleteRuleResult.cc index e381cbd4e..bed3740d8 100644 --- a/yundun-ds/src/model/DeleteRuleResult.cc +++ b/yundun-ds/src/model/DeleteRuleResult.cc @@ -35,10 +35,13 @@ DeleteRuleResult::~DeleteRuleResult() void DeleteRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/DescribeAccountDetailResult.cc b/yundun-ds/src/model/DescribeAccountDetailResult.cc index f4820f885..21db96866 100644 --- a/yundun-ds/src/model/DescribeAccountDetailResult.cc +++ b/yundun-ds/src/model/DescribeAccountDetailResult.cc @@ -35,10 +35,13 @@ DescribeAccountDetailResult::~DescribeAccountDetailResult() void DescribeAccountDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto accountNode = value["Account"]; if(!accountNode["Id"].isNull()) diff --git a/yundun-ds/src/model/DescribeAccountsResult.cc b/yundun-ds/src/model/DescribeAccountsResult.cc index b07137f64..49350137b 100644 --- a/yundun-ds/src/model/DescribeAccountsResult.cc +++ b/yundun-ds/src/model/DescribeAccountsResult.cc @@ -35,10 +35,13 @@ DescribeAccountsResult::~DescribeAccountsResult() void DescribeAccountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Account"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeAuthAccountsResult.cc b/yundun-ds/src/model/DescribeAuthAccountsResult.cc index e65a79cbf..b451a7476 100644 --- a/yundun-ds/src/model/DescribeAuthAccountsResult.cc +++ b/yundun-ds/src/model/DescribeAuthAccountsResult.cc @@ -35,10 +35,13 @@ DescribeAuthAccountsResult::~DescribeAuthAccountsResult() void DescribeAuthAccountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Account"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeColumnsResult.cc b/yundun-ds/src/model/DescribeColumnsResult.cc index 276a42e6a..42451eb6f 100644 --- a/yundun-ds/src/model/DescribeColumnsResult.cc +++ b/yundun-ds/src/model/DescribeColumnsResult.cc @@ -35,10 +35,13 @@ DescribeColumnsResult::~DescribeColumnsResult() void DescribeColumnsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Column"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeConditionsResult.cc b/yundun-ds/src/model/DescribeConditionsResult.cc index 6b41bcfba..2a59741c6 100644 --- a/yundun-ds/src/model/DescribeConditionsResult.cc +++ b/yundun-ds/src/model/DescribeConditionsResult.cc @@ -35,10 +35,13 @@ DescribeConditionsResult::~DescribeConditionsResult() void DescribeConditionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto conditionNode = value["Condition"]; auto allRiskLevelList = value["RiskLevelList"]["RiskLevel"]; diff --git a/yundun-ds/src/model/DescribeConfigsResult.cc b/yundun-ds/src/model/DescribeConfigsResult.cc index 2b62b73b1..55fd040e0 100644 --- a/yundun-ds/src/model/DescribeConfigsResult.cc +++ b/yundun-ds/src/model/DescribeConfigsResult.cc @@ -35,10 +35,13 @@ DescribeConfigsResult::~DescribeConfigsResult() void DescribeConfigsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allConfigList = value["ConfigList"]["Config"]; for (auto value : allConfigList) diff --git a/yundun-ds/src/model/DescribeDataAssetsResult.cc b/yundun-ds/src/model/DescribeDataAssetsResult.cc index 27a065998..d74731424 100644 --- a/yundun-ds/src/model/DescribeDataAssetsResult.cc +++ b/yundun-ds/src/model/DescribeDataAssetsResult.cc @@ -35,10 +35,13 @@ DescribeDataAssetsResult::~DescribeDataAssetsResult() void DescribeDataAssetsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Asset"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeDataCountsResult.cc b/yundun-ds/src/model/DescribeDataCountsResult.cc index 109d5ebfc..79c824246 100644 --- a/yundun-ds/src/model/DescribeDataCountsResult.cc +++ b/yundun-ds/src/model/DescribeDataCountsResult.cc @@ -35,10 +35,13 @@ DescribeDataCountsResult::~DescribeDataCountsResult() void DescribeDataCountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allDataCountList = value["DataCountList"]["DataCount"]; for (auto value : allDataCountList) @@ -70,17 +73,17 @@ void DescribeDataCountsResult::parse(const std::string &payload) dataCountListObject.table.lastCount = std::stol(tableNode["LastCount"].asString()); if(!tableNode["LastSensitiveCount"].isNull()) dataCountListObject.table.lastSensitiveCount = std::stol(tableNode["LastSensitiveCount"].asString()); - auto packageInDescribeDataCountsNode = value["Package"]; - if(!packageInDescribeDataCountsNode["TotalCount"].isNull()) - dataCountListObject.packageInDescribeDataCounts.totalCount = std::stol(packageInDescribeDataCountsNode["TotalCount"].asString()); - if(!packageInDescribeDataCountsNode["Count"].isNull()) - dataCountListObject.packageInDescribeDataCounts.count = std::stol(packageInDescribeDataCountsNode["Count"].asString()); - if(!packageInDescribeDataCountsNode["SensitiveCount"].isNull()) - dataCountListObject.packageInDescribeDataCounts.sensitiveCount = std::stol(packageInDescribeDataCountsNode["SensitiveCount"].asString()); - if(!packageInDescribeDataCountsNode["LastCount"].isNull()) - dataCountListObject.packageInDescribeDataCounts.lastCount = std::stol(packageInDescribeDataCountsNode["LastCount"].asString()); - if(!packageInDescribeDataCountsNode["LastSensitiveCount"].isNull()) - dataCountListObject.packageInDescribeDataCounts.lastSensitiveCount = std::stol(packageInDescribeDataCountsNode["LastSensitiveCount"].asString()); + auto packageNode = value["Package"]; + if(!packageNode["TotalCount"].isNull()) + dataCountListObject.package.totalCount = std::stol(packageNode["TotalCount"].asString()); + if(!packageNode["Count"].isNull()) + dataCountListObject.package.count = std::stol(packageNode["Count"].asString()); + if(!packageNode["SensitiveCount"].isNull()) + dataCountListObject.package.sensitiveCount = std::stol(packageNode["SensitiveCount"].asString()); + if(!packageNode["LastCount"].isNull()) + dataCountListObject.package.lastCount = std::stol(packageNode["LastCount"].asString()); + if(!packageNode["LastSensitiveCount"].isNull()) + dataCountListObject.package.lastSensitiveCount = std::stol(packageNode["LastSensitiveCount"].asString()); auto columnNode = value["Column"]; if(!columnNode["TotalCount"].isNull()) dataCountListObject.column.totalCount = std::stol(columnNode["TotalCount"].asString()); diff --git a/yundun-ds/src/model/DescribeDataHubConnectorsResult.cc b/yundun-ds/src/model/DescribeDataHubConnectorsResult.cc index a10058750..0a5d3f300 100644 --- a/yundun-ds/src/model/DescribeDataHubConnectorsResult.cc +++ b/yundun-ds/src/model/DescribeDataHubConnectorsResult.cc @@ -35,10 +35,13 @@ DescribeDataHubConnectorsResult::~DescribeDataHubConnectorsResult() void DescribeDataHubConnectorsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Connector"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeDataHubProjectsResult.cc b/yundun-ds/src/model/DescribeDataHubProjectsResult.cc index 6ef674bcc..17970d361 100644 --- a/yundun-ds/src/model/DescribeDataHubProjectsResult.cc +++ b/yundun-ds/src/model/DescribeDataHubProjectsResult.cc @@ -35,10 +35,13 @@ DescribeDataHubProjectsResult::~DescribeDataHubProjectsResult() void DescribeDataHubProjectsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Project"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeDataHubSubscriptionsResult.cc b/yundun-ds/src/model/DescribeDataHubSubscriptionsResult.cc index bc818533a..8729868f9 100644 --- a/yundun-ds/src/model/DescribeDataHubSubscriptionsResult.cc +++ b/yundun-ds/src/model/DescribeDataHubSubscriptionsResult.cc @@ -35,10 +35,13 @@ DescribeDataHubSubscriptionsResult::~DescribeDataHubSubscriptionsResult() void DescribeDataHubSubscriptionsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Subscription"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeDataHubTopicsResult.cc b/yundun-ds/src/model/DescribeDataHubTopicsResult.cc index 7339134c9..a3966dbe4 100644 --- a/yundun-ds/src/model/DescribeDataHubTopicsResult.cc +++ b/yundun-ds/src/model/DescribeDataHubTopicsResult.cc @@ -35,10 +35,13 @@ DescribeDataHubTopicsResult::~DescribeDataHubTopicsResult() void DescribeDataHubTopicsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Topic"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeDataLimitSetResult.cc b/yundun-ds/src/model/DescribeDataLimitSetResult.cc index 626d3fbfd..5d44d8d98 100644 --- a/yundun-ds/src/model/DescribeDataLimitSetResult.cc +++ b/yundun-ds/src/model/DescribeDataLimitSetResult.cc @@ -35,10 +35,13 @@ DescribeDataLimitSetResult::~DescribeDataLimitSetResult() void DescribeDataLimitSetResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataLimitSetNode = value["DataLimitSet"]; if(!dataLimitSetNode["ResourceType"].isNull()) @@ -61,6 +64,10 @@ void DescribeDataLimitSetResult::parse(const std::string &payload) dataLimitObject.gmtCreate = std::stol(value["GmtCreate"].asString()); if(!value["Connector"].isNull()) dataLimitObject.connector = value["Connector"].asString(); + if(!value["CheckStatus"].isNull()) + dataLimitObject.checkStatus = std::stoi(value["CheckStatus"].asString()); + if(!value["CheckStatusName"].isNull()) + dataLimitObject.checkStatusName = value["CheckStatusName"].asString(); dataLimitSet_.dataLimitList.push_back(dataLimitObject); } auto allOssBucketList = value["OssBucketList"]["OssBucket"]; diff --git a/yundun-ds/src/model/DescribeDataTotalCountResult.cc b/yundun-ds/src/model/DescribeDataTotalCountResult.cc index 31da472d6..561523dab 100644 --- a/yundun-ds/src/model/DescribeDataTotalCountResult.cc +++ b/yundun-ds/src/model/DescribeDataTotalCountResult.cc @@ -35,10 +35,13 @@ DescribeDataTotalCountResult::~DescribeDataTotalCountResult() void DescribeDataTotalCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataCountNode = value["DataCount"]; auto instanceNode = dataCountNode["Instance"]; @@ -87,28 +90,28 @@ void DescribeDataTotalCountResult::parse(const std::string &payload) riskCount2Object.count = std::stol(value["Count"].asString()); dataCount_.table.riskCountList1.push_back(riskCount2Object); } - auto packageInDescribeDataTotalCountNode = dataCountNode["Package"]; - if(!packageInDescribeDataTotalCountNode["TotalCount"].isNull()) - dataCount_.packageInDescribeDataTotalCount.totalCount = std::stol(packageInDescribeDataTotalCountNode["TotalCount"].asString()); - if(!packageInDescribeDataTotalCountNode["Count"].isNull()) - dataCount_.packageInDescribeDataTotalCount.count = std::stol(packageInDescribeDataTotalCountNode["Count"].asString()); - if(!packageInDescribeDataTotalCountNode["SensitiveCount"].isNull()) - dataCount_.packageInDescribeDataTotalCount.sensitiveCount = std::stol(packageInDescribeDataTotalCountNode["SensitiveCount"].asString()); - if(!packageInDescribeDataTotalCountNode["LastCount"].isNull()) - dataCount_.packageInDescribeDataTotalCount.lastCount = std::stol(packageInDescribeDataTotalCountNode["LastCount"].asString()); - if(!packageInDescribeDataTotalCountNode["LastSensitiveCount"].isNull()) - dataCount_.packageInDescribeDataTotalCount.lastSensitiveCount = std::stol(packageInDescribeDataTotalCountNode["LastSensitiveCount"].asString()); + auto packageNode = dataCountNode["Package"]; + if(!packageNode["TotalCount"].isNull()) + dataCount_.package.totalCount = std::stol(packageNode["TotalCount"].asString()); + if(!packageNode["Count"].isNull()) + dataCount_.package.count = std::stol(packageNode["Count"].asString()); + if(!packageNode["SensitiveCount"].isNull()) + dataCount_.package.sensitiveCount = std::stol(packageNode["SensitiveCount"].asString()); + if(!packageNode["LastCount"].isNull()) + dataCount_.package.lastCount = std::stol(packageNode["LastCount"].asString()); + if(!packageNode["LastSensitiveCount"].isNull()) + dataCount_.package.lastSensitiveCount = std::stol(packageNode["LastSensitiveCount"].asString()); auto allRiskCountList3 = value["RiskCountList"]["RiskCount"]; for (auto value : allRiskCountList3) { - DataCount::PackageInDescribeDataTotalCount::RiskCount4 riskCount4Object; + DataCount::Package::RiskCount4 riskCount4Object; if(!value["Id"].isNull()) riskCount4Object.id = std::stol(value["Id"].asString()); if(!value["Name"].isNull()) riskCount4Object.name = value["Name"].asString(); if(!value["Count"].isNull()) riskCount4Object.count = std::stol(value["Count"].asString()); - dataCount_.packageInDescribeDataTotalCount.riskCountList3.push_back(riskCount4Object); + dataCount_.package.riskCountList3.push_back(riskCount4Object); } auto columnNode = dataCountNode["Column"]; if(!columnNode["TotalCount"].isNull()) diff --git a/yundun-ds/src/model/DescribeDepartCountsResult.cc b/yundun-ds/src/model/DescribeDepartCountsResult.cc index c7fc8de94..8e70f76bf 100644 --- a/yundun-ds/src/model/DescribeDepartCountsResult.cc +++ b/yundun-ds/src/model/DescribeDepartCountsResult.cc @@ -35,10 +35,13 @@ DescribeDepartCountsResult::~DescribeDepartCountsResult() void DescribeDepartCountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["DepartCount"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeDepartTotalCountResult.cc b/yundun-ds/src/model/DescribeDepartTotalCountResult.cc index 68adcf39a..fd9a0d3ea 100644 --- a/yundun-ds/src/model/DescribeDepartTotalCountResult.cc +++ b/yundun-ds/src/model/DescribeDepartTotalCountResult.cc @@ -35,10 +35,13 @@ DescribeDepartTotalCountResult::~DescribeDepartTotalCountResult() void DescribeDepartTotalCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto departCountNode = value["DepartCount"]; if(!departCountNode["DepartCount"].isNull()) diff --git a/yundun-ds/src/model/DescribeDepartsResult.cc b/yundun-ds/src/model/DescribeDepartsResult.cc index ffdde4970..a291a1a35 100644 --- a/yundun-ds/src/model/DescribeDepartsResult.cc +++ b/yundun-ds/src/model/DescribeDepartsResult.cc @@ -35,10 +35,13 @@ DescribeDepartsResult::~DescribeDepartsResult() void DescribeDepartsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Depart"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeEventCountsResult.cc b/yundun-ds/src/model/DescribeEventCountsResult.cc index 2cbfece44..84cc09e63 100644 --- a/yundun-ds/src/model/DescribeEventCountsResult.cc +++ b/yundun-ds/src/model/DescribeEventCountsResult.cc @@ -35,10 +35,13 @@ DescribeEventCountsResult::~DescribeEventCountsResult() void DescribeEventCountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEventCountList = value["EventCountList"]["EventCount"]; for (auto value : allEventCountList) diff --git a/yundun-ds/src/model/DescribeEventDetailResult.cc b/yundun-ds/src/model/DescribeEventDetailResult.cc index f7be94d4d..4370f9344 100644 --- a/yundun-ds/src/model/DescribeEventDetailResult.cc +++ b/yundun-ds/src/model/DescribeEventDetailResult.cc @@ -35,10 +35,13 @@ DescribeEventDetailResult::~DescribeEventDetailResult() void DescribeEventDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto eventNode = value["Event"]; if(!eventNode["Id"].isNull()) diff --git a/yundun-ds/src/model/DescribeEventTotalCountResult.cc b/yundun-ds/src/model/DescribeEventTotalCountResult.cc index 0cdef2db2..10ec26b26 100644 --- a/yundun-ds/src/model/DescribeEventTotalCountResult.cc +++ b/yundun-ds/src/model/DescribeEventTotalCountResult.cc @@ -35,10 +35,13 @@ DescribeEventTotalCountResult::~DescribeEventTotalCountResult() void DescribeEventTotalCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto eventCountNode = value["EventCount"]; if(!eventCountNode["TypeCode"].isNull()) diff --git a/yundun-ds/src/model/DescribeEventTypesResult.cc b/yundun-ds/src/model/DescribeEventTypesResult.cc index 6fec67e9b..c3feccdb0 100644 --- a/yundun-ds/src/model/DescribeEventTypesResult.cc +++ b/yundun-ds/src/model/DescribeEventTypesResult.cc @@ -35,10 +35,13 @@ DescribeEventTypesResult::~DescribeEventTypesResult() void DescribeEventTypesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allEventTypeList = value["EventTypeList"]["EventType"]; for (auto value : allEventTypeList) diff --git a/yundun-ds/src/model/DescribeEventsResult.cc b/yundun-ds/src/model/DescribeEventsResult.cc index 886e452e5..abb7cca5d 100644 --- a/yundun-ds/src/model/DescribeEventsResult.cc +++ b/yundun-ds/src/model/DescribeEventsResult.cc @@ -35,10 +35,13 @@ DescribeEventsResult::~DescribeEventsResult() void DescribeEventsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Event"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeFlowTotalCountResult.cc b/yundun-ds/src/model/DescribeFlowTotalCountResult.cc index 7f3ea91e2..723935eb6 100644 --- a/yundun-ds/src/model/DescribeFlowTotalCountResult.cc +++ b/yundun-ds/src/model/DescribeFlowTotalCountResult.cc @@ -35,10 +35,13 @@ DescribeFlowTotalCountResult::~DescribeFlowTotalCountResult() void DescribeFlowTotalCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto flowCountNode = value["FlowCount"]; auto dataHubNode = flowCountNode["DataHub"]; diff --git a/yundun-ds/src/model/DescribeInstancesResult.cc b/yundun-ds/src/model/DescribeInstancesResult.cc index 0ca01e301..b88e95411 100644 --- a/yundun-ds/src/model/DescribeInstancesResult.cc +++ b/yundun-ds/src/model/DescribeInstancesResult.cc @@ -35,10 +35,13 @@ DescribeInstancesResult::~DescribeInstancesResult() void DescribeInstancesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Instance"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeOssObjectDetailResult.cc b/yundun-ds/src/model/DescribeOssObjectDetailResult.cc index 379c60b35..3df6bf278 100644 --- a/yundun-ds/src/model/DescribeOssObjectDetailResult.cc +++ b/yundun-ds/src/model/DescribeOssObjectDetailResult.cc @@ -35,10 +35,13 @@ DescribeOssObjectDetailResult::~DescribeOssObjectDetailResult() void DescribeOssObjectDetailResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto ossObjectDetailNode = value["OssObjectDetail"]; if(!ossObjectDetailNode["Name"].isNull()) diff --git a/yundun-ds/src/model/DescribeOssObjectsResult.cc b/yundun-ds/src/model/DescribeOssObjectsResult.cc index 138143967..8878b8b83 100644 --- a/yundun-ds/src/model/DescribeOssObjectsResult.cc +++ b/yundun-ds/src/model/DescribeOssObjectsResult.cc @@ -35,10 +35,13 @@ DescribeOssObjectsResult::~DescribeOssObjectsResult() void DescribeOssObjectsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Column"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribePackagesResult.cc b/yundun-ds/src/model/DescribePackagesResult.cc index 934a7326c..a2cc37c62 100644 --- a/yundun-ds/src/model/DescribePackagesResult.cc +++ b/yundun-ds/src/model/DescribePackagesResult.cc @@ -35,10 +35,13 @@ DescribePackagesResult::~DescribePackagesResult() void DescribePackagesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Package"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribePrivilegesResult.cc b/yundun-ds/src/model/DescribePrivilegesResult.cc index c5cf0b8f1..cbec8c17b 100644 --- a/yundun-ds/src/model/DescribePrivilegesResult.cc +++ b/yundun-ds/src/model/DescribePrivilegesResult.cc @@ -35,10 +35,13 @@ DescribePrivilegesResult::~DescribePrivilegesResult() void DescribePrivilegesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Privilege"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeRuleTotalCountResult.cc b/yundun-ds/src/model/DescribeRuleTotalCountResult.cc index dbc6e1dbe..4656fe4b1 100644 --- a/yundun-ds/src/model/DescribeRuleTotalCountResult.cc +++ b/yundun-ds/src/model/DescribeRuleTotalCountResult.cc @@ -35,10 +35,13 @@ DescribeRuleTotalCountResult::~DescribeRuleTotalCountResult() void DescribeRuleTotalCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto ruleCountNode = value["RuleCount"]; if(!ruleCountNode["TotalCount"].isNull()) diff --git a/yundun-ds/src/model/DescribeRulesResult.cc b/yundun-ds/src/model/DescribeRulesResult.cc index 10cb60f41..60caf5c2b 100644 --- a/yundun-ds/src/model/DescribeRulesResult.cc +++ b/yundun-ds/src/model/DescribeRulesResult.cc @@ -35,10 +35,13 @@ DescribeRulesResult::~DescribeRulesResult() void DescribeRulesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Rule"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeTablesResult.cc b/yundun-ds/src/model/DescribeTablesResult.cc index 554250650..fac7ef68e 100644 --- a/yundun-ds/src/model/DescribeTablesResult.cc +++ b/yundun-ds/src/model/DescribeTablesResult.cc @@ -35,10 +35,13 @@ DescribeTablesResult::~DescribeTablesResult() void DescribeTablesResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allItems = value["Items"]["Table"]; for (auto value : allItems) diff --git a/yundun-ds/src/model/DescribeTotalCountResult.cc b/yundun-ds/src/model/DescribeTotalCountResult.cc index 1cdc442a3..e43066702 100644 --- a/yundun-ds/src/model/DescribeTotalCountResult.cc +++ b/yundun-ds/src/model/DescribeTotalCountResult.cc @@ -35,10 +35,13 @@ DescribeTotalCountResult::~DescribeTotalCountResult() void DescribeTotalCountResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto dataCountNode = value["DataCount"]; auto instanceNode = dataCountNode["Instance"]; diff --git a/yundun-ds/src/model/DescribeTransferEventCountsResult.cc b/yundun-ds/src/model/DescribeTransferEventCountsResult.cc index f20fcee55..b1869d99c 100644 --- a/yundun-ds/src/model/DescribeTransferEventCountsResult.cc +++ b/yundun-ds/src/model/DescribeTransferEventCountsResult.cc @@ -35,10 +35,13 @@ DescribeTransferEventCountsResult::~DescribeTransferEventCountsResult() void DescribeTransferEventCountsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allTransferEventCountList = value["TransferEventCountList"]["Transfer"]; for (auto value : allTransferEventCountList) diff --git a/yundun-ds/src/model/DescribeUserStatusResult.cc b/yundun-ds/src/model/DescribeUserStatusResult.cc index 5cdfbb3b5..308dd6ddc 100644 --- a/yundun-ds/src/model/DescribeUserStatusResult.cc +++ b/yundun-ds/src/model/DescribeUserStatusResult.cc @@ -35,10 +35,13 @@ DescribeUserStatusResult::~DescribeUserStatusResult() void DescribeUserStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto userStatusNode = value["UserStatus"]; if(!userStatusNode["Authed"].isNull()) diff --git a/yundun-ds/src/model/ModifyDefaultLevelResult.cc b/yundun-ds/src/model/ModifyDefaultLevelResult.cc index 906d4d881..5b2848278 100644 --- a/yundun-ds/src/model/ModifyDefaultLevelResult.cc +++ b/yundun-ds/src/model/ModifyDefaultLevelResult.cc @@ -35,10 +35,13 @@ ModifyDefaultLevelResult::~ModifyDefaultLevelResult() void ModifyDefaultLevelResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/ModifyEventStatusResult.cc b/yundun-ds/src/model/ModifyEventStatusResult.cc index fa1291e46..d10dab2ed 100644 --- a/yundun-ds/src/model/ModifyEventStatusResult.cc +++ b/yundun-ds/src/model/ModifyEventStatusResult.cc @@ -35,10 +35,13 @@ ModifyEventStatusResult::~ModifyEventStatusResult() void ModifyEventStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/ModifyEventTypeStatusResult.cc b/yundun-ds/src/model/ModifyEventTypeStatusResult.cc index e5ca5a72c..1cf9b3dcf 100644 --- a/yundun-ds/src/model/ModifyEventTypeStatusResult.cc +++ b/yundun-ds/src/model/ModifyEventTypeStatusResult.cc @@ -35,10 +35,13 @@ ModifyEventTypeStatusResult::~ModifyEventTypeStatusResult() void ModifyEventTypeStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/ModifyRuleResult.cc b/yundun-ds/src/model/ModifyRuleResult.cc index 6b1181bae..f5bdd36d9 100644 --- a/yundun-ds/src/model/ModifyRuleResult.cc +++ b/yundun-ds/src/model/ModifyRuleResult.cc @@ -35,10 +35,13 @@ ModifyRuleResult::~ModifyRuleResult() void ModifyRuleResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/ModifyRuleStatusResult.cc b/yundun-ds/src/model/ModifyRuleStatusResult.cc index 529f70cd0..9a071b5c6 100644 --- a/yundun-ds/src/model/ModifyRuleStatusResult.cc +++ b/yundun-ds/src/model/ModifyRuleStatusResult.cc @@ -35,10 +35,13 @@ ModifyRuleStatusResult::~ModifyRuleStatusResult() void ModifyRuleStatusResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); } diff --git a/yundun-ds/src/model/ValidateConnectorResult.cc b/yundun-ds/src/model/ValidateConnectorResult.cc index 04e7bfdac..d5e0fe424 100644 --- a/yundun-ds/src/model/ValidateConnectorResult.cc +++ b/yundun-ds/src/model/ValidateConnectorResult.cc @@ -35,10 +35,13 @@ ValidateConnectorResult::~ValidateConnectorResult() void ValidateConnectorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Connected"].isNull()) connected_ = value["Connected"].asString() == "true"; diff --git a/yundun/CMakeLists.txt b/yundun/CMakeLists.txt index 7901df74a..49cb5d858 100644 --- a/yundun/CMakeLists.txt +++ b/yundun/CMakeLists.txt @@ -25,12 +25,12 @@ set(yundun_public_header_model include/alibabacloud/yundun/model/TodayqpsByRegionResult.h include/alibabacloud/yundun/model/TodayAllppsRequest.h include/alibabacloud/yundun/model/TodayAllppsResult.h - include/alibabacloud/yundun/model/TodayBackdoorRequest.h - include/alibabacloud/yundun/model/TodayBackdoorResult.h - include/alibabacloud/yundun/model/TodayCrackInterceptRequest.h - include/alibabacloud/yundun/model/TodayCrackInterceptResult.h include/alibabacloud/yundun/model/AllMalwareNumRequest.h include/alibabacloud/yundun/model/AllMalwareNumResult.h + include/alibabacloud/yundun/model/TodayCrackInterceptRequest.h + include/alibabacloud/yundun/model/TodayCrackInterceptResult.h + include/alibabacloud/yundun/model/TodayBackdoorRequest.h + include/alibabacloud/yundun/model/TodayBackdoorResult.h include/alibabacloud/yundun/model/TodayMalwareNumRequest.h include/alibabacloud/yundun/model/TodayMalwareNumResult.h include/alibabacloud/yundun/model/WebAttackNumRequest.h @@ -48,12 +48,12 @@ set(yundun_src src/model/TodayqpsByRegionResult.cc src/model/TodayAllppsRequest.cc src/model/TodayAllppsResult.cc - src/model/TodayBackdoorRequest.cc - src/model/TodayBackdoorResult.cc - src/model/TodayCrackInterceptRequest.cc - src/model/TodayCrackInterceptResult.cc src/model/AllMalwareNumRequest.cc src/model/AllMalwareNumResult.cc + src/model/TodayCrackInterceptRequest.cc + src/model/TodayCrackInterceptResult.cc + src/model/TodayBackdoorRequest.cc + src/model/TodayBackdoorResult.cc src/model/TodayMalwareNumRequest.cc src/model/TodayMalwareNumResult.cc src/model/WebAttackNumRequest.cc diff --git a/yundun/include/alibabacloud/yundun/YundunClient.h b/yundun/include/alibabacloud/yundun/YundunClient.h index 28aa6d335..393241374 100644 --- a/yundun/include/alibabacloud/yundun/YundunClient.h +++ b/yundun/include/alibabacloud/yundun/YundunClient.h @@ -26,12 +26,12 @@ #include "model/TodayqpsByRegionResult.h" #include "model/TodayAllppsRequest.h" #include "model/TodayAllppsResult.h" -#include "model/TodayBackdoorRequest.h" -#include "model/TodayBackdoorResult.h" -#include "model/TodayCrackInterceptRequest.h" -#include "model/TodayCrackInterceptResult.h" #include "model/AllMalwareNumRequest.h" #include "model/AllMalwareNumResult.h" +#include "model/TodayCrackInterceptRequest.h" +#include "model/TodayCrackInterceptResult.h" +#include "model/TodayBackdoorRequest.h" +#include "model/TodayBackdoorResult.h" #include "model/TodayMalwareNumRequest.h" #include "model/TodayMalwareNumResult.h" #include "model/WebAttackNumRequest.h" @@ -57,15 +57,15 @@ namespace AlibabaCloud typedef Outcome TodayAllppsOutcome; typedef std::future TodayAllppsOutcomeCallable; typedef std::function&)> TodayAllppsAsyncHandler; - typedef Outcome TodayBackdoorOutcome; - typedef std::future TodayBackdoorOutcomeCallable; - typedef std::function&)> TodayBackdoorAsyncHandler; - typedef Outcome TodayCrackInterceptOutcome; - typedef std::future TodayCrackInterceptOutcomeCallable; - typedef std::function&)> TodayCrackInterceptAsyncHandler; typedef Outcome AllMalwareNumOutcome; typedef std::future AllMalwareNumOutcomeCallable; typedef std::function&)> AllMalwareNumAsyncHandler; + typedef Outcome TodayCrackInterceptOutcome; + typedef std::future TodayCrackInterceptOutcomeCallable; + typedef std::function&)> TodayCrackInterceptAsyncHandler; + typedef Outcome TodayBackdoorOutcome; + typedef std::future TodayBackdoorOutcomeCallable; + typedef std::function&)> TodayBackdoorAsyncHandler; typedef Outcome TodayMalwareNumOutcome; typedef std::future TodayMalwareNumOutcomeCallable; typedef std::function&)> TodayMalwareNumAsyncHandler; @@ -92,15 +92,15 @@ namespace AlibabaCloud TodayAllppsOutcome todayAllpps(const Model::TodayAllppsRequest &request)const; void todayAllppsAsync(const Model::TodayAllppsRequest& request, const TodayAllppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TodayAllppsOutcomeCallable todayAllppsCallable(const Model::TodayAllppsRequest& request) const; - TodayBackdoorOutcome todayBackdoor(const Model::TodayBackdoorRequest &request)const; - void todayBackdoorAsync(const Model::TodayBackdoorRequest& request, const TodayBackdoorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TodayBackdoorOutcomeCallable todayBackdoorCallable(const Model::TodayBackdoorRequest& request) const; - TodayCrackInterceptOutcome todayCrackIntercept(const Model::TodayCrackInterceptRequest &request)const; - void todayCrackInterceptAsync(const Model::TodayCrackInterceptRequest& request, const TodayCrackInterceptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TodayCrackInterceptOutcomeCallable todayCrackInterceptCallable(const Model::TodayCrackInterceptRequest& request) const; AllMalwareNumOutcome allMalwareNum(const Model::AllMalwareNumRequest &request)const; void allMalwareNumAsync(const Model::AllMalwareNumRequest& request, const AllMalwareNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllMalwareNumOutcomeCallable allMalwareNumCallable(const Model::AllMalwareNumRequest& request) const; + TodayCrackInterceptOutcome todayCrackIntercept(const Model::TodayCrackInterceptRequest &request)const; + void todayCrackInterceptAsync(const Model::TodayCrackInterceptRequest& request, const TodayCrackInterceptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TodayCrackInterceptOutcomeCallable todayCrackInterceptCallable(const Model::TodayCrackInterceptRequest& request) const; + TodayBackdoorOutcome todayBackdoor(const Model::TodayBackdoorRequest &request)const; + void todayBackdoorAsync(const Model::TodayBackdoorRequest& request, const TodayBackdoorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TodayBackdoorOutcomeCallable todayBackdoorCallable(const Model::TodayBackdoorRequest& request) const; TodayMalwareNumOutcome todayMalwareNum(const Model::TodayMalwareNumRequest &request)const; void todayMalwareNumAsync(const Model::TodayMalwareNumRequest& request, const TodayMalwareNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TodayMalwareNumOutcomeCallable todayMalwareNumCallable(const Model::TodayMalwareNumRequest& request) const; diff --git a/yundun/src/YundunClient.cc b/yundun/src/YundunClient.cc index 8f6ac3bb7..7f2f94998 100644 --- a/yundun/src/YundunClient.cc +++ b/yundun/src/YundunClient.cc @@ -123,36 +123,36 @@ YundunClient::TodayAllppsOutcomeCallable YundunClient::todayAllppsCallable(const return task->get_future(); } -YundunClient::TodayBackdoorOutcome YundunClient::todayBackdoor(const TodayBackdoorRequest &request) const +YundunClient::AllMalwareNumOutcome YundunClient::allMalwareNum(const AllMalwareNumRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return TodayBackdoorOutcome(endpointOutcome.error()); + return AllMalwareNumOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return TodayBackdoorOutcome(TodayBackdoorResult(outcome.result())); + return AllMalwareNumOutcome(AllMalwareNumResult(outcome.result())); else - return TodayBackdoorOutcome(outcome.error()); + return AllMalwareNumOutcome(outcome.error()); } -void YundunClient::todayBackdoorAsync(const TodayBackdoorRequest& request, const TodayBackdoorAsyncHandler& handler, const std::shared_ptr& context) const +void YundunClient::allMalwareNumAsync(const AllMalwareNumRequest& request, const AllMalwareNumAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, todayBackdoor(request), context); + handler(this, request, allMalwareNum(request), context); }; asyncExecute(new Runnable(fn)); } -YundunClient::TodayBackdoorOutcomeCallable YundunClient::todayBackdoorCallable(const TodayBackdoorRequest &request) const +YundunClient::AllMalwareNumOutcomeCallable YundunClient::allMalwareNumCallable(const AllMalwareNumRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->todayBackdoor(request); + return this->allMalwareNum(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -195,36 +195,36 @@ YundunClient::TodayCrackInterceptOutcomeCallable YundunClient::todayCrackInterce return task->get_future(); } -YundunClient::AllMalwareNumOutcome YundunClient::allMalwareNum(const AllMalwareNumRequest &request) const +YundunClient::TodayBackdoorOutcome YundunClient::todayBackdoor(const TodayBackdoorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AllMalwareNumOutcome(endpointOutcome.error()); + return TodayBackdoorOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AllMalwareNumOutcome(AllMalwareNumResult(outcome.result())); + return TodayBackdoorOutcome(TodayBackdoorResult(outcome.result())); else - return AllMalwareNumOutcome(outcome.error()); + return TodayBackdoorOutcome(outcome.error()); } -void YundunClient::allMalwareNumAsync(const AllMalwareNumRequest& request, const AllMalwareNumAsyncHandler& handler, const std::shared_ptr& context) const +void YundunClient::todayBackdoorAsync(const TodayBackdoorRequest& request, const TodayBackdoorAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, allMalwareNum(request), context); + handler(this, request, todayBackdoor(request), context); }; asyncExecute(new Runnable(fn)); } -YundunClient::AllMalwareNumOutcomeCallable YundunClient::allMalwareNumCallable(const AllMalwareNumRequest &request) const +YundunClient::TodayBackdoorOutcomeCallable YundunClient::todayBackdoorCallable(const TodayBackdoorRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->allMalwareNum(request); + return this->todayBackdoor(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/yundun/src/model/AllMalwareNumResult.cc b/yundun/src/model/AllMalwareNumResult.cc index 316841a74..6d0af04cd 100644 --- a/yundun/src/model/AllMalwareNumResult.cc +++ b/yundun/src/model/AllMalwareNumResult.cc @@ -35,10 +35,13 @@ AllMalwareNumResult::~AllMalwareNumResult() void AllMalwareNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["AllMalwareNum"].isNull()) allMalwareNum_ = std::stol(value["AllMalwareNum"].asString()); diff --git a/yundun/src/model/CurrentDdosAttackNumResult.cc b/yundun/src/model/CurrentDdosAttackNumResult.cc index aa41f57eb..bdcc61136 100644 --- a/yundun/src/model/CurrentDdosAttackNumResult.cc +++ b/yundun/src/model/CurrentDdosAttackNumResult.cc @@ -35,10 +35,13 @@ CurrentDdosAttackNumResult::~CurrentDdosAttackNumResult() void CurrentDdosAttackNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["CurrentDdosAttackNum"].isNull()) currentDdosAttackNum_ = std::stol(value["CurrentDdosAttackNum"].asString()); diff --git a/yundun/src/model/TodayAegisOnlineRateResult.cc b/yundun/src/model/TodayAegisOnlineRateResult.cc index f9d7aacee..5715a8a55 100644 --- a/yundun/src/model/TodayAegisOnlineRateResult.cc +++ b/yundun/src/model/TodayAegisOnlineRateResult.cc @@ -35,10 +35,13 @@ TodayAegisOnlineRateResult::~TodayAegisOnlineRateResult() void TodayAegisOnlineRateResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Rate"].isNull()) rate_ = std::stol(value["Rate"].asString()); diff --git a/yundun/src/model/TodayAllkbpsResult.cc b/yundun/src/model/TodayAllkbpsResult.cc index 5fcc1f499..9d99ad736 100644 --- a/yundun/src/model/TodayAllkbpsResult.cc +++ b/yundun/src/model/TodayAllkbpsResult.cc @@ -35,10 +35,13 @@ TodayAllkbpsResult::~TodayAllkbpsResult() void TodayAllkbpsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Kbps"].isNull()) kbps_ = std::stol(value["Kbps"].asString()); diff --git a/yundun/src/model/TodayAllppsResult.cc b/yundun/src/model/TodayAllppsResult.cc index 97af41041..53b396906 100644 --- a/yundun/src/model/TodayAllppsResult.cc +++ b/yundun/src/model/TodayAllppsResult.cc @@ -35,10 +35,13 @@ TodayAllppsResult::~TodayAllppsResult() void TodayAllppsResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Pps"].isNull()) pps_ = std::stol(value["Pps"].asString()); diff --git a/yundun/src/model/TodayBackdoorResult.cc b/yundun/src/model/TodayBackdoorResult.cc index f4b847d80..aa5a0a23f 100644 --- a/yundun/src/model/TodayBackdoorResult.cc +++ b/yundun/src/model/TodayBackdoorResult.cc @@ -35,10 +35,13 @@ TodayBackdoorResult::~TodayBackdoorResult() void TodayBackdoorResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["Backdoor"].isNull()) backdoor_ = std::stol(value["Backdoor"].asString()); diff --git a/yundun/src/model/TodayCrackInterceptResult.cc b/yundun/src/model/TodayCrackInterceptResult.cc index 6d5fe6849..eff57c0a9 100644 --- a/yundun/src/model/TodayCrackInterceptResult.cc +++ b/yundun/src/model/TodayCrackInterceptResult.cc @@ -35,10 +35,13 @@ TodayCrackInterceptResult::~TodayCrackInterceptResult() void TodayCrackInterceptResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["InterceptNum"].isNull()) interceptNum_ = std::stol(value["InterceptNum"].asString()); diff --git a/yundun/src/model/TodayMalwareNumResult.cc b/yundun/src/model/TodayMalwareNumResult.cc index 62e9c5152..bc54bf771 100644 --- a/yundun/src/model/TodayMalwareNumResult.cc +++ b/yundun/src/model/TodayMalwareNumResult.cc @@ -35,10 +35,13 @@ TodayMalwareNumResult::~TodayMalwareNumResult() void TodayMalwareNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["TodayMalwareNum"].isNull()) todayMalwareNum_ = std::stol(value["TodayMalwareNum"].asString()); diff --git a/yundun/src/model/TodayqpsByRegionResult.cc b/yundun/src/model/TodayqpsByRegionResult.cc index d3dd5fb11..aebfd87ff 100644 --- a/yundun/src/model/TodayqpsByRegionResult.cc +++ b/yundun/src/model/TodayqpsByRegionResult.cc @@ -35,10 +35,13 @@ TodayqpsByRegionResult::~TodayqpsByRegionResult() void TodayqpsByRegionResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); auto allData = value["Data"]["Region"]; for (auto value : allData) diff --git a/yundun/src/model/WebAttackNumResult.cc b/yundun/src/model/WebAttackNumResult.cc index ab51d304a..bf649779c 100644 --- a/yundun/src/model/WebAttackNumResult.cc +++ b/yundun/src/model/WebAttackNumResult.cc @@ -35,10 +35,13 @@ WebAttackNumResult::~WebAttackNumResult() void WebAttackNumResult::parse(const std::string &payload) { - Json::Reader reader; + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; Json::Value value; - reader.parse(payload, value); - + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; setRequestId(value["RequestId"].asString()); if(!value["WebAttackNum"].isNull()) webAttackNum_ = std::stol(value["WebAttackNum"].asString());